@crystaldesign/web-planner-logic 24.11.0 → 24.12.0-beta.10
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-6ef0bf4c.js → DivaBoxPlanner-815fbf90.js} +3 -3
- package/build/cjs/{DivaStandardPlanner-9974ac31.js → DivaStandardPlanner-ae253974.js} +17 -81
- package/build/cjs/{DoorPlanner-e01de0a3.js → DoorPlanner-5fc29017.js} +1 -1
- package/build/cjs/{Host3DSignalR-216db383.js → Host3DSignalR-dec9a0b8.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-8b720511.js → LiviqueWWSHandler-fbcd6772.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-50891028.js → PfisterWWSHandler-e607705c.js} +1 -1
- package/build/cjs/{PlannerHandler2D-1eed77a3.js → PlannerHandler2D-8acbb06c.js} +27 -37
- package/build/cjs/{ProductBasketHandler-b769b0a3.js → ProductBasketHandler-67c19e6d.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-f91fd16f.js → SeriousBasketHandler-e665dd62.js} +1 -1
- package/build/cjs/{ShelfPlanner-94f0d930.js → ShelfPlanner-1c1708c2.js} +1 -1
- package/build/cjs/{StandardWWSHandler-8e674518.js → StandardWWSHandler-26b802ca.js} +1 -1
- package/build/cjs/{index-891fd83f.js → index-6f5de64a.js} +385 -259
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-eea433d9.js → DivaBoxPlanner-0880d2b3.js} +3 -3
- package/build/esm/{DivaStandardPlanner-5d70e6cb.js → DivaStandardPlanner-562b5379.js} +17 -81
- package/build/esm/{DoorPlanner-2b5d3b18.js → DoorPlanner-9508f0e4.js} +1 -1
- package/build/esm/{Host3DSignalR-172f818d.js → Host3DSignalR-912df5a5.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-74a3155e.js → LiviqueWWSHandler-19bb2392.js} +1 -1
- package/build/esm/{PfisterWWSHandler-808e9166.js → PfisterWWSHandler-a3b013b1.js} +1 -1
- package/build/esm/{PlannerHandler2D-55713da4.js → PlannerHandler2D-7f7d2ddf.js} +27 -37
- package/build/esm/{ProductBasketHandler-dc89c0d9.js → ProductBasketHandler-b53ee156.js} +1 -1
- package/build/esm/{SeriousBasketHandler-ea077e19.js → SeriousBasketHandler-1cb21861.js} +1 -1
- package/build/esm/{ShelfPlanner-9d063406.js → ShelfPlanner-a813161d.js} +1 -1
- package/build/esm/{StandardWWSHandler-3838bdae.js → StandardWWSHandler-c05fd7ed.js} +1 -1
- package/build/esm/{index-7ddbc00f.js → index-67fdef39.js} +385 -259
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/index.d.ts +1 -1
- package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +3 -2
- 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 +2 -2
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/IDivaSetPlanner.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/IDivaSetPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/IDivaViewPlannerElement.d.ts +0 -2
- package/build/types/web-planner-logic/src/interface/Planner/IDivaViewPlannerElement.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Rules/NotificationRule.d.ts +15 -7
- package/build/types/web-planner-logic/src/interface/Rules/NotificationRule.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts +7 -3
- package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +5 -1
- 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 +9 -2
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts +2 -0
- 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/types.d.ts +1 -0
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/types.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +2 -3
- package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +27 -6
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts +1 -0
- package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +3 -2
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts +1 -3
- package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -16667,6 +16667,12 @@ var CatalogArticleData = /*#__PURE__*/function () {
|
|
|
16667
16667
|
get: function get() {
|
|
16668
16668
|
return this.catalogArticle.hasPartlistArticle;
|
|
16669
16669
|
}
|
|
16670
|
+
}, {
|
|
16671
|
+
key: "possiblePartlistCodexes",
|
|
16672
|
+
get: function get() {
|
|
16673
|
+
var _this$catalogArticle$2;
|
|
16674
|
+
return (_this$catalogArticle$2 = this.catalogArticle.partListArticles) === null || _this$catalogArticle$2 === void 0 ? void 0 : _this$catalogArticle$2.join(';');
|
|
16675
|
+
}
|
|
16670
16676
|
}, {
|
|
16671
16677
|
key: "articleDecisions",
|
|
16672
16678
|
get: function get() {
|
|
@@ -16933,8 +16939,8 @@ var CatalogArticleData = /*#__PURE__*/function () {
|
|
|
16933
16939
|
}, {
|
|
16934
16940
|
key: "metaDataView",
|
|
16935
16941
|
get: function get() {
|
|
16936
|
-
var _this$catalogArticle$
|
|
16937
|
-
return (_this$catalogArticle$
|
|
16942
|
+
var _this$catalogArticle$3;
|
|
16943
|
+
return (_this$catalogArticle$3 = this.catalogArticle.metaData) !== null && _this$catalogArticle$3 !== void 0 ? _this$catalogArticle$3 : [];
|
|
16938
16944
|
}
|
|
16939
16945
|
}, {
|
|
16940
16946
|
key: "getMergesToOPG",
|
|
@@ -18304,7 +18310,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18304
18310
|
DE: 'Achtung alle änderungen gehen verlohren... Bist du sicher?'
|
|
18305
18311
|
}
|
|
18306
18312
|
}],
|
|
18307
|
-
|
|
18313
|
+
warningRules: [],
|
|
18314
|
+
bannerRules: [],
|
|
18308
18315
|
summaryTabGroupPosition: undefined,
|
|
18309
18316
|
onConfigSingleDontGeneralize: false,
|
|
18310
18317
|
ignoreMaxPriceAsBP: false,
|
|
@@ -18609,7 +18616,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18609
18616
|
} else if (item.Codex == 'NOTIFICATIONS') {
|
|
18610
18617
|
_this.catalogData.notificationsRules = JSON.parse(item.Value);
|
|
18611
18618
|
} else if (item.Codex == 'WARNINGS') {
|
|
18612
|
-
_this.catalogData.
|
|
18619
|
+
_this.catalogData.warningRules = JSON.parse(item.Value);
|
|
18620
|
+
} else if (item.Codex == 'BANNER') {
|
|
18621
|
+
_this.catalogData.bannerRules = JSON.parse(item.Value);
|
|
18613
18622
|
} else if (item.Codex == 'IGNORE_MAX_PRICE_AS_BASEPRICE') {
|
|
18614
18623
|
_this.catalogData.ignoreMaxPriceAsBP = item.Value == '1';
|
|
18615
18624
|
} else if (item.Codex == 'DONT_USE_VCODEX_FOR_BASKET') {
|
|
@@ -18810,7 +18819,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18810
18819
|
is3DModell: catPlanArticle.modelName3D && catPlanArticle.modelName3D != '' ? true : false,
|
|
18811
18820
|
groupName: groupTitle,
|
|
18812
18821
|
metaData: this.catalogArticles[catPlanArticle.codex].metaDataView,
|
|
18813
|
-
contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId
|
|
18822
|
+
contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
|
|
18823
|
+
partlistcodexes: this.catalogArticles[catPlanArticle.codex].possiblePartlistCodexes
|
|
18814
18824
|
};
|
|
18815
18825
|
this.plannerPaletteViewInfo.catalogPlannerArticles.push(catPlanArtView);
|
|
18816
18826
|
}
|
|
@@ -18867,7 +18877,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18867
18877
|
is3DModell: catPlanArticle.modelName3D && catPlanArticle.modelName3D != '' ? true : false,
|
|
18868
18878
|
groupName: groupTitle,
|
|
18869
18879
|
metaData: this.catalogArticles[catPlanArticle.codex].metaDataView,
|
|
18870
|
-
contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId
|
|
18880
|
+
contentItemId: this.catalogArticles[catPlanArticle.codex].contentItemId,
|
|
18881
|
+
partlistcodexes: this.catalogArticles[catPlanArticle.codex].possiblePartlistCodexes
|
|
18871
18882
|
};
|
|
18872
18883
|
//nicht ausmultiplizierte Elemente
|
|
18873
18884
|
this.plannerPaletteViewInfo.catalogPlannerArticles.push(_catPlanArtView);
|
|
@@ -19475,9 +19486,14 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19475
19486
|
return this.catalogData.notificationsRules;
|
|
19476
19487
|
}
|
|
19477
19488
|
}, {
|
|
19478
|
-
key: "
|
|
19489
|
+
key: "warningRules",
|
|
19490
|
+
get: function get() {
|
|
19491
|
+
return this.catalogData.warningRules;
|
|
19492
|
+
}
|
|
19493
|
+
}, {
|
|
19494
|
+
key: "bannerRules",
|
|
19479
19495
|
get: function get() {
|
|
19480
|
-
return this.catalogData.
|
|
19496
|
+
return this.catalogData.bannerRules;
|
|
19481
19497
|
}
|
|
19482
19498
|
}, {
|
|
19483
19499
|
key: "dontSaveAlternativeRenderings",
|
|
@@ -23560,7 +23576,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23560
23576
|
break;
|
|
23561
23577
|
}
|
|
23562
23578
|
_context.next = 4;
|
|
23563
|
-
return Promise.resolve().then(function () { return require('./ShelfPlanner-
|
|
23579
|
+
return Promise.resolve().then(function () { return require('./ShelfPlanner-1c1708c2.js'); });
|
|
23564
23580
|
case 4:
|
|
23565
23581
|
_yield$import = _context.sent;
|
|
23566
23582
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -25424,6 +25440,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25424
25440
|
}, {
|
|
25425
25441
|
key: "evalOpvsOnOpvsConstructionRules",
|
|
25426
25442
|
value: function evalOpvsOnOpvsConstructionRules(article) {
|
|
25443
|
+
var _article$CatalogData$;
|
|
25427
25444
|
var somethingChanged = false;
|
|
25428
25445
|
var previousRules = {};
|
|
25429
25446
|
if (article.updatedOPVbyOPVConstructionRules) {
|
|
@@ -25487,19 +25504,20 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25487
25504
|
}
|
|
25488
25505
|
}
|
|
25489
25506
|
}
|
|
25490
|
-
|
|
25491
|
-
|
|
25492
|
-
|
|
25493
|
-
var
|
|
25494
|
-
|
|
25495
|
-
|
|
25496
|
-
|
|
25497
|
-
|
|
25498
|
-
|
|
25507
|
+
if ((_article$CatalogData$ = article.CatalogData.warningRules) !== null && _article$CatalogData$ !== void 0 && _article$CatalogData$.length) {
|
|
25508
|
+
var notifications = this.checkNotificationRules(article.CatalogData.warningRules, _defineProperty__default["default"]({}, article.basketId, article), {});
|
|
25509
|
+
if (notifications !== null && notifications !== void 0 && notifications.length) {
|
|
25510
|
+
for (var _i3 = 0; _i3 < notifications.length; _i3++) {
|
|
25511
|
+
var _item = notifications[_i3];
|
|
25512
|
+
if (!_item.showAsWarning) continue;
|
|
25513
|
+
article.addUpdatedOPVbyOPVConstructionRules(_item.showAsWarning.option + ';' + _item.showAsWarning.optionValue, article.updateOPVConstruction('OPT' + _item.showAsWarning.option, 'OPV' + _item.showAsWarning.optionValue, {
|
|
25514
|
+
message: _item.message,
|
|
25515
|
+
type: _item.type == 'error' ? 'DISABLE' : 'WARNING'
|
|
25516
|
+
}));
|
|
25517
|
+
}
|
|
25518
|
+
somethingChanged = true;
|
|
25499
25519
|
}
|
|
25500
|
-
somethingChanged = true;
|
|
25501
25520
|
}
|
|
25502
|
-
|
|
25503
25521
|
//falls die vorherigen reglen anders sind wie die neuen, artiklekonfiguration neu laden
|
|
25504
25522
|
if (somethingChanged && JSON.stringify(previousRules) != JSON.stringify(article.updatedOPVbyOPVConstructionRules)) {
|
|
25505
25523
|
this.updateCfgValues(article, {}, {});
|
|
@@ -25515,7 +25533,6 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25515
25533
|
}, {
|
|
25516
25534
|
key: "checkNotificationRules",
|
|
25517
25535
|
value: function checkNotificationRules(toCheckRules, articles, visitedOptions, event) {
|
|
25518
|
-
if (!(toCheckRules !== null && toCheckRules !== void 0 && toCheckRules.length)) return;
|
|
25519
25536
|
var returnValue = [];
|
|
25520
25537
|
for (var i = 0; i < toCheckRules.length; i++) {
|
|
25521
25538
|
var entry = toCheckRules[i];
|
|
@@ -25523,27 +25540,12 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25523
25540
|
var ruleValid = false;
|
|
25524
25541
|
for (var j = 0; j < rules.length; j++) {
|
|
25525
25542
|
for (var basketId in articles) {
|
|
25526
|
-
var _rule$articles;
|
|
25527
25543
|
ruleValid = false;
|
|
25528
25544
|
var rule = rules[j];
|
|
25529
25545
|
var article = articles[basketId];
|
|
25530
|
-
if ((
|
|
25531
|
-
if (rule.variantValues && !this.objectIncudesObject(rule.variantValues, article.VariantValuesWithoutOPTandOPV)) continue;
|
|
25532
|
-
if (rule.visitedOptions && !this.arrayIncludesArray(rule.visitedOptions, visitedOptions[basketId])) continue;
|
|
25533
|
-
if (rule.jsFormula && !article.evalRule(DivaUtils__default["default"].getRuleByFormula(rule.jsFormula))) continue;
|
|
25534
|
-
if (rule.sizes) console.error('size logic not jet implemented');
|
|
25546
|
+
if (!this.checkRule(rule, article, visitedOptions)) continue;
|
|
25535
25547
|
if ((event === null || event === void 0 ? void 0 : event.type) == 'config' && entry.type == 'notification') {
|
|
25536
|
-
|
|
25537
|
-
var checkOPT = (_entry$checkOnEvents = entry.checkOnEvents) !== null && _entry$checkOnEvents !== void 0 && _entry$checkOnEvents.option ? 'OPT' + ((_entry$checkOnEvents2 = entry.checkOnEvents) === null || _entry$checkOnEvents2 === void 0 ? void 0 : _entry$checkOnEvents2.option) : undefined;
|
|
25538
|
-
var checkOPV = (_entry$checkOnEvents3 = entry.checkOnEvents) !== null && _entry$checkOnEvents3 !== void 0 && _entry$checkOnEvents3.optionValue ? 'OPV' + ((_entry$checkOnEvents4 = entry.checkOnEvents) === null || _entry$checkOnEvents4 === void 0 ? void 0 : _entry$checkOnEvents4.optionValue) : undefined;
|
|
25539
|
-
if (checkOPT) {
|
|
25540
|
-
if (Array.isArray(checkOPT) && !checkOPT.includes(event.data.optionCodex)) continue;
|
|
25541
|
-
if (!Array.isArray(checkOPT) && checkOPT !== event.data.optionCodex) continue;
|
|
25542
|
-
}
|
|
25543
|
-
if (checkOPV) {
|
|
25544
|
-
if (Array.isArray(checkOPV) && !checkOPV.includes(event.data.optionValueCodex)) continue;
|
|
25545
|
-
if (!Array.isArray(checkOPV) && checkOPV !== event.data.optionValueCodex) continue;
|
|
25546
|
-
}
|
|
25548
|
+
if (!this.checkOnEvent(event.checkOnEvents, event.data)) continue;
|
|
25547
25549
|
}
|
|
25548
25550
|
ruleValid = true;
|
|
25549
25551
|
break;
|
|
@@ -25559,6 +25561,35 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25559
25561
|
}
|
|
25560
25562
|
return returnValue;
|
|
25561
25563
|
}
|
|
25564
|
+
}, {
|
|
25565
|
+
key: "checkRule",
|
|
25566
|
+
value: function checkRule(rule, article, visitedOptions) {
|
|
25567
|
+
var _rule$articles;
|
|
25568
|
+
if ((_rule$articles = rule.articles) !== null && _rule$articles !== void 0 && _rule$articles.length && !rule.articles.includes(article.articleCodex)) return false;
|
|
25569
|
+
if (rule.variantValues && !this.objectIncudesObject(rule.variantValues, article.VariantValuesWithoutOPTandOPV)) return false;
|
|
25570
|
+
if (rule.visitedOptions && !this.arrayIncludesArray(rule.visitedOptions, visitedOptions[article.basketId])) return false;
|
|
25571
|
+
if (rule.jsFormula && !article.evalRule(DivaUtils__default["default"].getRuleByFormula(rule.jsFormula))) return false;
|
|
25572
|
+
if (rule.sizes) {
|
|
25573
|
+
console.error('size logic not jet implemented');
|
|
25574
|
+
return false;
|
|
25575
|
+
}
|
|
25576
|
+
return true;
|
|
25577
|
+
}
|
|
25578
|
+
}, {
|
|
25579
|
+
key: "checkOnEvent",
|
|
25580
|
+
value: function checkOnEvent(event, data) {
|
|
25581
|
+
var checkOPT = event !== null && event !== void 0 && event.option ? 'OPT' + (event === null || event === void 0 ? void 0 : event.option) : undefined;
|
|
25582
|
+
var checkOPV = event !== null && event !== void 0 && event.optionValue ? 'OPV' + (event === null || event === void 0 ? void 0 : event.optionValue) : undefined;
|
|
25583
|
+
if (checkOPT) {
|
|
25584
|
+
if (Array.isArray(checkOPT) && !checkOPT.includes(data.optionCodex)) return false;
|
|
25585
|
+
if (!Array.isArray(checkOPT) && checkOPT !== data.optionCodex) return false;
|
|
25586
|
+
}
|
|
25587
|
+
if (checkOPV) {
|
|
25588
|
+
if (Array.isArray(checkOPV) && !checkOPV.includes(data.optionValueCodex)) return false;
|
|
25589
|
+
if (!Array.isArray(checkOPV) && checkOPV !== data.optionValueCodex) return false;
|
|
25590
|
+
}
|
|
25591
|
+
return true;
|
|
25592
|
+
}
|
|
25562
25593
|
}, {
|
|
25563
25594
|
key: "objectIncudesObject",
|
|
25564
25595
|
value: function objectIncudesObject(smallerObject, biggerObject) {
|
|
@@ -27021,14 +27052,9 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
27021
27052
|
return _ref.apply(this, arguments);
|
|
27022
27053
|
};
|
|
27023
27054
|
}());
|
|
27024
|
-
_defineProperty__default["default"](this, "setPosNr", function (elementId, posNr
|
|
27055
|
+
_defineProperty__default["default"](this, "setPosNr", function (elementId, posNr) {
|
|
27025
27056
|
var article = _this.getArticleByElementId(elementId);
|
|
27026
|
-
if (article)
|
|
27027
|
-
article.posNr = posNr;
|
|
27028
|
-
if (accNr != undefined) {
|
|
27029
|
-
article.posNr = Number(posNr + '.' + (accNr < 10 ? '0' : '') + accNr.toString());
|
|
27030
|
-
}
|
|
27031
|
-
}
|
|
27057
|
+
if (article) article.posNr = posNr;
|
|
27032
27058
|
_this.sortDivaArticlesByArticlePosNr();
|
|
27033
27059
|
});
|
|
27034
27060
|
_defineProperty__default["default"](this, "setElementId", function (basketID, elementId) {
|
|
@@ -27279,54 +27305,56 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
27279
27305
|
}, {
|
|
27280
27306
|
key: "giveAccNewPosNrByBasketId",
|
|
27281
27307
|
value: function giveAccNewPosNrByBasketId(BasketIdParent) {
|
|
27282
|
-
var curNum = this.
|
|
27308
|
+
var curNum = this.giveAccPosNrByBasketId(BasketIdParent);
|
|
27283
27309
|
this.givePartlistAccPosNrByBasketId(BasketIdParent, curNum);
|
|
27284
27310
|
this.sortDivaArticlesByArticlePosNr();
|
|
27285
27311
|
}
|
|
27286
27312
|
}, {
|
|
27287
|
-
key: "
|
|
27288
|
-
value: function
|
|
27313
|
+
key: "giveAccPosNrByBasketId",
|
|
27314
|
+
value: function giveAccPosNrByBasketId(basketId) {
|
|
27315
|
+
var curNum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
27289
27316
|
var allAccs = [];
|
|
27290
27317
|
var articles = this.getDivaArticles();
|
|
27291
|
-
|
|
27292
|
-
|
|
27293
|
-
var
|
|
27318
|
+
var article = articles[basketId];
|
|
27319
|
+
if (!article) throw new Error('article ' + basketId + ' does not exist');
|
|
27320
|
+
var myParentArticle = article.getBaseParent();
|
|
27321
|
+
var _this$getSplitPlanned = this.getSplitPlannedAccessoiresOfBasketId(basketId),
|
|
27294
27322
|
notPlannedAcc = _this$getSplitPlanned.notPlannedAcc,
|
|
27295
27323
|
plannedAcc = _this$getSplitPlanned.plannedAcc;
|
|
27296
|
-
|
|
27297
|
-
|
|
27298
|
-
|
|
27324
|
+
for (var key in plannedAcc) {
|
|
27325
|
+
allAccs.push(plannedAcc[key]);
|
|
27326
|
+
}
|
|
27327
|
+
for (var _key3 in notPlannedAcc) {
|
|
27328
|
+
allAccs.push(notPlannedAcc[_key3]);
|
|
27299
27329
|
}
|
|
27300
27330
|
for (var i = 0; i < allAccs.length; i++) {
|
|
27331
|
+
var accessoire = allAccs[i];
|
|
27301
27332
|
curNum++;
|
|
27302
|
-
|
|
27303
|
-
if (
|
|
27304
|
-
curNum = this.
|
|
27333
|
+
accessoire.posNr = Number(parseFloat((myParentArticle.posNr + curNum / 100).toString()).toFixed(2));
|
|
27334
|
+
if (accessoire.shelfAccessoires || Object.keys(accessoire.accessoires).length !== 0) {
|
|
27335
|
+
curNum = this.giveAccPosNrByBasketId(accessoire.basketId, curNum);
|
|
27336
|
+
}
|
|
27337
|
+
if (accessoire.hasPartlistArticle) {
|
|
27338
|
+
curNum = this.givePartlistAccPosNrByBasketId(accessoire.basketId, curNum);
|
|
27305
27339
|
}
|
|
27306
|
-
}
|
|
27307
|
-
for (var _key3 in plannedAcc) {
|
|
27308
|
-
curNum = this.giveNotPlannedAccPosNrByBasketId(BasketIdParent, _key3, curNum);
|
|
27309
27340
|
}
|
|
27310
27341
|
return curNum;
|
|
27311
27342
|
}
|
|
27312
27343
|
}, {
|
|
27313
27344
|
key: "givePartlistAccPosNrByBasketId",
|
|
27314
|
-
value: function givePartlistAccPosNrByBasketId(
|
|
27315
|
-
var
|
|
27316
|
-
if (!
|
|
27317
|
-
var
|
|
27318
|
-
var
|
|
27319
|
-
|
|
27320
|
-
|
|
27321
|
-
var
|
|
27322
|
-
if (
|
|
27323
|
-
|
|
27324
|
-
|
|
27325
|
-
if (accessoire.hasPartlistArticle && accessoire.isPartListArticle && !accessoire.partlistArticleVisibleInTree) continue;
|
|
27326
|
-
curNum++;
|
|
27327
|
-
accessoire.posNr = Number(parseFloat((myParentArticle.posNr + curNum / 100).toString()).toFixed(2));
|
|
27328
|
-
}
|
|
27345
|
+
value: function givePartlistAccPosNrByBasketId(basketId, curNum) {
|
|
27346
|
+
var article = this.getArticleByBasketId(basketId);
|
|
27347
|
+
if (!article) return curNum;
|
|
27348
|
+
var baseParent = article.getBaseParent();
|
|
27349
|
+
var partlistArticles = this.getPartlistArticlesOfArticle(article);
|
|
27350
|
+
for (var j = 0; j < ((_partlistArticles$len = partlistArticles === null || partlistArticles === void 0 ? void 0 : partlistArticles.length) !== null && _partlistArticles$len !== void 0 ? _partlistArticles$len : 0); j++) {
|
|
27351
|
+
var _partlistArticles$len;
|
|
27352
|
+
var accessoire = partlistArticles[j];
|
|
27353
|
+
if (accessoire.hasPartlistArticle && accessoire.isPartListArticle && !accessoire.partlistArticleVisibleInTree) continue;
|
|
27354
|
+
curNum++;
|
|
27355
|
+
accessoire.posNr = Number(parseFloat((baseParent.posNr + curNum / 100).toString()).toFixed(2));
|
|
27329
27356
|
}
|
|
27357
|
+
return curNum;
|
|
27330
27358
|
}
|
|
27331
27359
|
}, {
|
|
27332
27360
|
key: "getAccessoiresOfBasketId",
|
|
@@ -27358,11 +27386,6 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
27358
27386
|
notPlannedAcc: notPlannedAcc
|
|
27359
27387
|
};
|
|
27360
27388
|
}
|
|
27361
|
-
}, {
|
|
27362
|
-
key: "getStartingPosNr",
|
|
27363
|
-
value: function getStartingPosNr(basketid) {
|
|
27364
|
-
return this.getAccessoiresOfArticleRecursive(basketid, 'onlyPlanner').length;
|
|
27365
|
-
}
|
|
27366
27389
|
}, {
|
|
27367
27390
|
key: "getAccessoiresOfBasketIdAsArray",
|
|
27368
27391
|
value: function getAccessoiresOfBasketIdAsArray(basketId, filter) {
|
|
@@ -27683,7 +27706,9 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
27683
27706
|
value: function getArticleByBasketId(basketId) {
|
|
27684
27707
|
if (this.divaArticles[basketId]) return this.divaArticles[basketId];
|
|
27685
27708
|
for (var key in this.divaArticles) {
|
|
27686
|
-
|
|
27709
|
+
var article = this.divaArticles[key];
|
|
27710
|
+
var plArticles = article.getRecursivePartlistArticles();
|
|
27711
|
+
if (plArticles[basketId]) return plArticles[basketId];
|
|
27687
27712
|
}
|
|
27688
27713
|
return undefined;
|
|
27689
27714
|
}
|
|
@@ -28081,7 +28106,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
28081
28106
|
break;
|
|
28082
28107
|
}
|
|
28083
28108
|
_context4.next = 3;
|
|
28084
|
-
return Promise.resolve().then(function () { return require('./DoorPlanner-
|
|
28109
|
+
return Promise.resolve().then(function () { return require('./DoorPlanner-5fc29017.js'); });
|
|
28085
28110
|
case 3:
|
|
28086
28111
|
_yield$import = _context4.sent;
|
|
28087
28112
|
DoorPlanner = _yield$import["default"];
|
|
@@ -30345,46 +30370,49 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
30345
30370
|
value: function () {
|
|
30346
30371
|
var _saveConfigVariantsInBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee5(set, basket, variant, repairOnly) {
|
|
30347
30372
|
var _hQRenderScript, _basket$OrderSets$set, _basket$OrderSets$set2;
|
|
30348
|
-
var setindex, setImage, urlToPlanning2D, hQRenderScript, plannerData, promises, _yield$Promise$all, _yield$Promise$all2, i, optionsSorted, variantValues, _i3, opt, key, targetArticle, configVariant;
|
|
30373
|
+
var setindex, setImage, dimensions, urlToPlanning2D, hQRenderScript, plannerData, promises, _yield$Promise$all, _yield$Promise$all2, _yield$Promise$all2$, i, optionsSorted, variantValues, _i3, opt, key, targetArticle, configVariant;
|
|
30349
30374
|
return _regeneratorRuntime__default["default"].wrap(function _callee5$(_context6) {
|
|
30350
30375
|
while (1) switch (_context6.prev = _context6.next) {
|
|
30351
30376
|
case 0:
|
|
30352
30377
|
setindex = -1;
|
|
30353
30378
|
setImage = undefined;
|
|
30379
|
+
dimensions = {};
|
|
30354
30380
|
urlToPlanning2D = undefined;
|
|
30355
30381
|
hQRenderScript = undefined;
|
|
30356
30382
|
plannerData = set.plannerHandler.savePlanner(set.getSetId());
|
|
30357
30383
|
if (repairOnly) {
|
|
30358
|
-
_context6.next =
|
|
30384
|
+
_context6.next = 17;
|
|
30359
30385
|
break;
|
|
30360
30386
|
}
|
|
30361
30387
|
promises = [setHandlerInstance.getSetImage(set, true), setHandlerInstance.get2DSetImage(set), setHandlerInstance.getHQRenderScript(set, basket.DivaNr)];
|
|
30362
|
-
_context6.next =
|
|
30388
|
+
_context6.next = 10;
|
|
30363
30389
|
return Promise.all(promises);
|
|
30364
|
-
case
|
|
30390
|
+
case 10:
|
|
30365
30391
|
_yield$Promise$all = _context6.sent;
|
|
30366
30392
|
_yield$Promise$all2 = _slicedToArray__default["default"](_yield$Promise$all, 3);
|
|
30367
|
-
|
|
30393
|
+
_yield$Promise$all2$ = _yield$Promise$all2[0];
|
|
30394
|
+
setImage = _yield$Promise$all2$.url;
|
|
30395
|
+
dimensions = _yield$Promise$all2$.dimensions;
|
|
30368
30396
|
urlToPlanning2D = _yield$Promise$all2[1];
|
|
30369
30397
|
hQRenderScript = _yield$Promise$all2[2];
|
|
30370
|
-
case
|
|
30398
|
+
case 17:
|
|
30371
30399
|
i = 0;
|
|
30372
|
-
case
|
|
30400
|
+
case 18:
|
|
30373
30401
|
if (!(i < basket.OrderSets.length)) {
|
|
30374
|
-
_context6.next =
|
|
30402
|
+
_context6.next = 25;
|
|
30375
30403
|
break;
|
|
30376
30404
|
}
|
|
30377
30405
|
if (!(set.getSetId() == basket.OrderSets[i].SetID)) {
|
|
30378
|
-
_context6.next =
|
|
30406
|
+
_context6.next = 22;
|
|
30379
30407
|
break;
|
|
30380
30408
|
}
|
|
30381
30409
|
setindex = i;
|
|
30382
|
-
return _context6.abrupt("break",
|
|
30383
|
-
case
|
|
30410
|
+
return _context6.abrupt("break", 25);
|
|
30411
|
+
case 22:
|
|
30384
30412
|
i++;
|
|
30385
|
-
_context6.next =
|
|
30413
|
+
_context6.next = 18;
|
|
30386
30414
|
break;
|
|
30387
|
-
case
|
|
30415
|
+
case 25:
|
|
30388
30416
|
if (!basket.OrderSets[setindex].ConfigVariants) basket.OrderSets[setindex].ConfigVariants = [];
|
|
30389
30417
|
optionsSorted = set.CatalogData.getOptionsPosition();
|
|
30390
30418
|
variantValues = {};
|
|
@@ -30395,9 +30423,9 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
30395
30423
|
if (targetArticle[opt] && !variantValues[opt]) variantValues[opt] = targetArticle[opt];
|
|
30396
30424
|
}
|
|
30397
30425
|
}
|
|
30398
|
-
configVariant = new basketModel.ConfigVariantData(variant.id, set.setName, set.setName_locales, setImage, (_hQRenderScript = hQRenderScript) === null || _hQRenderScript === void 0 ? void 0 : _hQRenderScript._id, DivaUtils__default["default"].encodeBase64(set.plannerHandler.getProject3D(set.getSetId())), set.getVariantsDescription(), set.SetArticleNr, set.getSetPrice(), set.setHash, 1, set.getVariantBasketData(), articleHandlerInstance.getCompactOrderLine(_objectSpread$a(_objectSpread$a({}, set.getDivaArticles()), set.getPartlistArticlesOfSet())), variantValues, summaryHandlerInstance.convertSummaryItemsToSummaryInfo(set), plannerData != undefined ? DivaUtils__default["default"].encodeBase64(JSON.stringify(plannerData)) : '', urlToPlanning2D, setHandlerInstance.getBBoxObject(set), set.getBruttoSetPrice(), undefined, undefined, set.MetaData, set.MetaData_locales, DivaUtils__default["default"].stripTagsFromDict(set.getVariantsDescription_locales()), (_basket$OrderSets$set = basket.OrderSets[setindex].ConfigVariants) === null || _basket$OrderSets$set === void 0 || (_basket$OrderSets$set = _basket$OrderSets$set[set.basketConfigVariants.length]) === null || _basket$OrderSets$set === void 0 ? void 0 : _basket$OrderSets$set.SetOrderText, (_basket$OrderSets$set2 = basket.OrderSets[setindex].ConfigVariants) === null || _basket$OrderSets$set2 === void 0 || (_basket$OrderSets$set2 = _basket$OrderSets$set2[set.basketConfigVariants.length]) === null || _basket$OrderSets$set2 === void 0 ? void 0 : _basket$OrderSets$set2.SetOrderText_locales);
|
|
30426
|
+
configVariant = new basketModel.ConfigVariantData(variant.id, set.setName, set.setName_locales, setImage, (_hQRenderScript = hQRenderScript) === null || _hQRenderScript === void 0 ? void 0 : _hQRenderScript._id, DivaUtils__default["default"].encodeBase64(set.plannerHandler.getProject3D(set.getSetId())), set.getVariantsDescription(), set.SetArticleNr, set.getSetPrice(), set.setHash, 1, set.getVariantBasketData(), articleHandlerInstance.getCompactOrderLine(_objectSpread$a(_objectSpread$a({}, set.getDivaArticles()), set.getPartlistArticlesOfSet())), variantValues, summaryHandlerInstance.convertSummaryItemsToSummaryInfo(set), plannerData != undefined ? DivaUtils__default["default"].encodeBase64(JSON.stringify(plannerData)) : '', urlToPlanning2D, setHandlerInstance.getBBoxObject(set, dimensions), set.getBruttoSetPrice(), undefined, undefined, set.MetaData, set.MetaData_locales, DivaUtils__default["default"].stripTagsFromDict(set.getVariantsDescription_locales()), (_basket$OrderSets$set = basket.OrderSets[setindex].ConfigVariants) === null || _basket$OrderSets$set === void 0 || (_basket$OrderSets$set = _basket$OrderSets$set[set.basketConfigVariants.length]) === null || _basket$OrderSets$set === void 0 ? void 0 : _basket$OrderSets$set.SetOrderText, (_basket$OrderSets$set2 = basket.OrderSets[setindex].ConfigVariants) === null || _basket$OrderSets$set2 === void 0 || (_basket$OrderSets$set2 = _basket$OrderSets$set2[set.basketConfigVariants.length]) === null || _basket$OrderSets$set2 === void 0 ? void 0 : _basket$OrderSets$set2.SetOrderText_locales);
|
|
30399
30427
|
set.basketConfigVariants.push(configVariant);
|
|
30400
|
-
case
|
|
30428
|
+
case 31:
|
|
30401
30429
|
case "end":
|
|
30402
30430
|
return _context6.stop();
|
|
30403
30431
|
}
|
|
@@ -32799,7 +32827,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32799
32827
|
*/
|
|
32800
32828
|
}, {
|
|
32801
32829
|
key: "update3DPlannerView",
|
|
32802
|
-
value: function update3DPlannerView(doRequestRendering, doRequestHqRenderScript, set, renderSize, planner3DGridEnabled, mediaServiceSaveMode, doShow3DDimensionLines, alternateRenderInfo, viewpoint) {
|
|
32830
|
+
value: function update3DPlannerView(doRequestRendering, doRequestHqRenderScript, set, renderSize, planner3DGridEnabled, mediaServiceSaveMode, doShow3DDimensionLines, alternateRenderInfo, viewpoint, useLatestViewpoint) {
|
|
32803
32831
|
var _set$plannerHandler, _set$getAlternateRend2;
|
|
32804
32832
|
var width = renderSize.imgWidth;
|
|
32805
32833
|
var height = renderSize.imgHeight;
|
|
@@ -32810,7 +32838,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32810
32838
|
planner3DGridEnabled: planner3DGridEnabled,
|
|
32811
32839
|
mediaServiceSaveMode: mediaServiceSaveMode,
|
|
32812
32840
|
doShow3DDimensionLines: !!doShow3DDimensionLines
|
|
32813
|
-
}, viewpoint);
|
|
32841
|
+
}, viewpoint, useLatestViewpoint);
|
|
32814
32842
|
}
|
|
32815
32843
|
}, {
|
|
32816
32844
|
key: "getPlannerPaletteViewInfo",
|
|
@@ -33102,33 +33130,37 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33102
33130
|
key: "variantsEvaluator",
|
|
33103
33131
|
value: (function () {
|
|
33104
33132
|
var _variantsEvaluator = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee23(set, configItems, configStepKey, paletteType) {
|
|
33105
|
-
var _set$WebConfig, _set$
|
|
33106
|
-
var
|
|
33133
|
+
var _set$WebConfig, _set$ViewConfig, _configItems$;
|
|
33134
|
+
var opt, checkForProductsInStock, calcVariantsForPricePreview, previewType, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
|
|
33107
33135
|
return _regeneratorRuntime__default["default"].wrap(function _callee23$(_context25) {
|
|
33108
33136
|
while (1) switch (_context25.prev = _context25.next) {
|
|
33109
33137
|
case 0:
|
|
33138
|
+
opt = set.CatalogData.getOption(configItems[0].op);
|
|
33139
|
+
if (opt) {
|
|
33140
|
+
_context25.next = 3;
|
|
33141
|
+
break;
|
|
33142
|
+
}
|
|
33143
|
+
return _context25.abrupt("return", configItems);
|
|
33144
|
+
case 3:
|
|
33145
|
+
checkForProductsInStock = ((_set$WebConfig = set.WebConfig) === null || _set$WebConfig === void 0 ? void 0 : _set$WebConfig.checkForProductsInStock) && !(opt !== null && opt !== void 0 && opt.isDescribingState);
|
|
33110
33146
|
calcVariantsForPricePreview = false;
|
|
33111
|
-
checkForProductsInStock = ((_set$WebConfig = set.WebConfig) === null || _set$WebConfig === void 0 ? void 0 : _set$WebConfig.checkForProductsInStock) && !((_set$CatalogData$getO = set.CatalogData.getOption(configItems[0].op)) !== null && _set$CatalogData$getO !== void 0 && _set$CatalogData$getO.isDescribingState);
|
|
33112
33147
|
previewType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.pricePreview;
|
|
33113
33148
|
if (previewType) {
|
|
33114
|
-
calcVariantsForPricePreview = !set.dontCalcPricePreviewDueToPerformanceIssues;
|
|
33115
|
-
if (calcVariantsForPricePreview && (_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length) {
|
|
33116
|
-
calcVariantsForPricePreview = !!configItems[0] && set.CatalogData.showPricePreviewOnlyOnOptions.includes(configItems[0].op);
|
|
33117
|
-
}
|
|
33149
|
+
calcVariantsForPricePreview = !set.dontCalcPricePreviewDueToPerformanceIssues && !opt.showOnSeparatTabgroup && (!((_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length) || set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex));
|
|
33118
33150
|
}
|
|
33119
33151
|
if (set.PlannerMode === 'BoxPlanner') calcVariantsForPricePreview = false;
|
|
33120
33152
|
if (paletteType == 'GAL' && ((_configItems$ = configItems[0]) === null || _configItems$ === void 0 ? void 0 : _configItems$.groupName) === undefined || paletteType == 'TEXTBOX' || paletteType == 'NUMBERBOX' || paletteType == 'RANGE') {
|
|
33121
33153
|
calcVariantsForPricePreview = false;
|
|
33122
33154
|
}
|
|
33123
33155
|
if (!(checkForProductsInStock || calcVariantsForPricePreview)) {
|
|
33124
|
-
_context25.next =
|
|
33156
|
+
_context25.next = 19;
|
|
33125
33157
|
break;
|
|
33126
33158
|
}
|
|
33127
33159
|
targetArticles = set.configTree.getTargetArticles(configStepKey);
|
|
33128
33160
|
startTime = new Date();
|
|
33129
|
-
_context25.next =
|
|
33161
|
+
_context25.next = 14;
|
|
33130
33162
|
return this.calcVariants(set, configItems, targetArticles);
|
|
33131
|
-
case
|
|
33163
|
+
case 14:
|
|
33132
33164
|
variants = _context25.sent;
|
|
33133
33165
|
endTime = new Date();
|
|
33134
33166
|
if (endTime.getTime() - startTime.getTime() > 1000) set.dontCalcPricePreviewDueToPerformanceIssues = true;
|
|
@@ -33138,9 +33170,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33138
33170
|
if (checkForProductsInStock) {
|
|
33139
33171
|
configItems = productHandlerInstance.checkProductInStock(configItems, variants, set.getDivaArticles(), targetArticles);
|
|
33140
33172
|
}
|
|
33141
|
-
case
|
|
33173
|
+
case 19:
|
|
33142
33174
|
return _context25.abrupt("return", configItems);
|
|
33143
|
-
case
|
|
33175
|
+
case 20:
|
|
33144
33176
|
case "end":
|
|
33145
33177
|
return _context25.stop();
|
|
33146
33178
|
}
|
|
@@ -33155,21 +33187,31 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33155
33187
|
key: "calcVariants",
|
|
33156
33188
|
value: function () {
|
|
33157
33189
|
var _calcVariants = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee24(set, configItems, targetArticles) {
|
|
33158
|
-
var variantInfo,
|
|
33190
|
+
var variantInfo, articles, origConfigs, i, item, variantValues, doUseConfigs, targetIndex, origConfig, key, _targetIndex;
|
|
33159
33191
|
return _regeneratorRuntime__default["default"].wrap(function _callee24$(_context26) {
|
|
33160
33192
|
while (1) switch (_context26.prev = _context26.next) {
|
|
33161
33193
|
case 0:
|
|
33162
33194
|
variantInfo = [];
|
|
33163
|
-
|
|
33195
|
+
articles = set.getDivaArticles();
|
|
33196
|
+
origConfigs = targetArticles.map(function (basketId) {
|
|
33197
|
+
return articles[basketId].VariantValues;
|
|
33198
|
+
});
|
|
33164
33199
|
i = 0;
|
|
33165
|
-
case
|
|
33200
|
+
case 4:
|
|
33166
33201
|
if (!(i < configItems.length)) {
|
|
33167
|
-
_context26.next =
|
|
33202
|
+
_context26.next = 23;
|
|
33168
33203
|
break;
|
|
33169
33204
|
}
|
|
33170
33205
|
item = configItems[i];
|
|
33171
33206
|
variantValues = {};
|
|
33172
33207
|
doUseConfigs = false;
|
|
33208
|
+
targetIndex = 0;
|
|
33209
|
+
case 9:
|
|
33210
|
+
if (!(targetIndex < origConfigs.length)) {
|
|
33211
|
+
_context26.next = 19;
|
|
33212
|
+
break;
|
|
33213
|
+
}
|
|
33214
|
+
origConfig = origConfigs[targetIndex];
|
|
33173
33215
|
for (key in origConfig) {
|
|
33174
33216
|
if (key == item.op || key == item.idmOpgOptionCodex) {
|
|
33175
33217
|
doUseConfigs = true;
|
|
@@ -33177,24 +33219,38 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33177
33219
|
}
|
|
33178
33220
|
variantValues[item.op] = item.codex;
|
|
33179
33221
|
if (item.idmOpgOptionCodex) variantValues[item.idmOpgOptionCodex] = item.idmOpgValCodex;
|
|
33180
|
-
_context26.next =
|
|
33181
|
-
return this.updateArticlesOptionStatesOfActSet(set, variantValues, targetArticles, true, 'calcVariant');
|
|
33182
|
-
case
|
|
33222
|
+
_context26.next = 16;
|
|
33223
|
+
return this.updateArticlesOptionStatesOfActSet(set, variantValues, [targetArticles[targetIndex]], true, 'calcVariant');
|
|
33224
|
+
case 16:
|
|
33225
|
+
targetIndex++;
|
|
33226
|
+
_context26.next = 9;
|
|
33227
|
+
break;
|
|
33228
|
+
case 19:
|
|
33183
33229
|
variantInfo.push({
|
|
33184
33230
|
price: set.getSetPrice(),
|
|
33185
33231
|
variants: set.getGeneralVariantValues(targetArticles),
|
|
33186
33232
|
opt: item.op
|
|
33187
33233
|
});
|
|
33188
|
-
case
|
|
33234
|
+
case 20:
|
|
33189
33235
|
i++;
|
|
33190
|
-
_context26.next =
|
|
33236
|
+
_context26.next = 4;
|
|
33191
33237
|
break;
|
|
33192
|
-
case
|
|
33193
|
-
|
|
33194
|
-
|
|
33195
|
-
|
|
33238
|
+
case 23:
|
|
33239
|
+
_targetIndex = 0;
|
|
33240
|
+
case 24:
|
|
33241
|
+
if (!(_targetIndex < origConfigs.length)) {
|
|
33242
|
+
_context26.next = 30;
|
|
33243
|
+
break;
|
|
33244
|
+
}
|
|
33245
|
+
_context26.next = 27;
|
|
33246
|
+
return this.updateArticlesOptionStatesOfActSet(set, origConfigs[_targetIndex], [targetArticles[_targetIndex]], true);
|
|
33247
|
+
case 27:
|
|
33248
|
+
_targetIndex++;
|
|
33249
|
+
_context26.next = 24;
|
|
33250
|
+
break;
|
|
33251
|
+
case 30:
|
|
33196
33252
|
return _context26.abrupt("return", variantInfo);
|
|
33197
|
-
case
|
|
33253
|
+
case 31:
|
|
33198
33254
|
case "end":
|
|
33199
33255
|
return _context26.stop();
|
|
33200
33256
|
}
|
|
@@ -33403,6 +33459,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33403
33459
|
_loop3();
|
|
33404
33460
|
}
|
|
33405
33461
|
}
|
|
33462
|
+
}, {
|
|
33463
|
+
key: "checkBannerRules",
|
|
33464
|
+
value: function checkBannerRules(set, visitedOptions, event) {
|
|
33465
|
+
var bannerRules = set.CatalogData.bannerRules;
|
|
33466
|
+
if (!bannerRules) return;
|
|
33467
|
+
var rules = articleHandlerInstance.checkNotificationRules(bannerRules, set.getDivaArticles(), visitedOptions, event);
|
|
33468
|
+
return rules === null || rules === void 0 ? void 0 : rules[0];
|
|
33469
|
+
}
|
|
33406
33470
|
}, {
|
|
33407
33471
|
key: "checkNotificationRules",
|
|
33408
33472
|
value: function checkNotificationRules(set, targetArticles, visitedOptions, event) {
|
|
@@ -33891,7 +33955,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33891
33955
|
value: function () {
|
|
33892
33956
|
var _getOrderSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee29(set, catalogData, posNr, divaNr, repairOnly, returnTo) {
|
|
33893
33957
|
var _hqRenderScript, _set$basketConfigVari2, _set$basketConfigVari3;
|
|
33894
|
-
var dontGenerateImages, orderSet, GroupType, plannerData, setImage, urlToPlanning2D, alternateSetImages, hqRenderScript, promise3D, promise2D, promise3DAlternate, _yield$Promise$all, _yield$Promise$all2, promiseHQRenderScript, _yield$Promise$all3, _yield$Promise$all4, plannerWarnings, bruttoPrice;
|
|
33958
|
+
var dontGenerateImages, orderSet, GroupType, plannerData, setImage, urlToPlanning2D, alternateSetImages, hqRenderScript, dimensions, promise3D, promise2D, promise3DAlternate, _yield$Promise$all, _yield$Promise$all2, _yield$Promise$all2$, promiseHQRenderScript, _yield$Promise$all3, _yield$Promise$all4, plannerWarnings, bruttoPrice;
|
|
33895
33959
|
return _regeneratorRuntime__default["default"].wrap(function _callee29$(_context31) {
|
|
33896
33960
|
while (1) switch (_context31.prev = _context31.next) {
|
|
33897
33961
|
case 0:
|
|
@@ -33903,8 +33967,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33903
33967
|
urlToPlanning2D = undefined;
|
|
33904
33968
|
alternateSetImages = undefined;
|
|
33905
33969
|
hqRenderScript = undefined;
|
|
33970
|
+
dimensions = {};
|
|
33906
33971
|
if (dontGenerateImages) {
|
|
33907
|
-
_context31.next =
|
|
33972
|
+
_context31.next = 28;
|
|
33908
33973
|
break;
|
|
33909
33974
|
}
|
|
33910
33975
|
promise3D = this.getSetImage(set, typeof window === 'undefined');
|
|
@@ -33912,22 +33977,24 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33912
33977
|
if (!catalogData.dontSaveAlternativeRenderings && set.CatalogData.alternateRenderingsForSummary.length) {
|
|
33913
33978
|
promise3DAlternate = this.getAlternateSetImages(set);
|
|
33914
33979
|
}
|
|
33915
|
-
_context31.next =
|
|
33980
|
+
_context31.next = 15;
|
|
33916
33981
|
return Promise.all([promise3D, promise2D, promise3DAlternate]);
|
|
33917
|
-
case
|
|
33982
|
+
case 15:
|
|
33918
33983
|
_yield$Promise$all = _context31.sent;
|
|
33919
33984
|
_yield$Promise$all2 = _slicedToArray__default["default"](_yield$Promise$all, 3);
|
|
33920
|
-
|
|
33985
|
+
_yield$Promise$all2$ = _yield$Promise$all2[0];
|
|
33986
|
+
setImage = _yield$Promise$all2$.url;
|
|
33987
|
+
dimensions = _yield$Promise$all2$.dimensions;
|
|
33921
33988
|
urlToPlanning2D = _yield$Promise$all2[1];
|
|
33922
33989
|
alternateSetImages = _yield$Promise$all2[2];
|
|
33923
33990
|
promiseHQRenderScript = this.getHQRenderScript(set, divaNr);
|
|
33924
|
-
_context31.next =
|
|
33991
|
+
_context31.next = 25;
|
|
33925
33992
|
return Promise.all([promiseHQRenderScript]);
|
|
33926
|
-
case
|
|
33993
|
+
case 25:
|
|
33927
33994
|
_yield$Promise$all3 = _context31.sent;
|
|
33928
33995
|
_yield$Promise$all4 = _slicedToArray__default["default"](_yield$Promise$all3, 1);
|
|
33929
33996
|
hqRenderScript = _yield$Promise$all4[0];
|
|
33930
|
-
case
|
|
33997
|
+
case 28:
|
|
33931
33998
|
LOG$8.startTransaction({
|
|
33932
33999
|
event: 'FillBakset',
|
|
33933
34000
|
eventId: 'FILL_BASKET',
|
|
@@ -33959,7 +34026,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33959
34026
|
OfflineData: catalogData.offlineData,
|
|
33960
34027
|
SetArticleNr: set.SetArticleNr ? set.SetArticleNr : catalogData.retailArticleNr,
|
|
33961
34028
|
SetArticleNrPrefix: set.SetArticleNrPrefix,
|
|
33962
|
-
BBox: this.getBBoxObject(set),
|
|
34029
|
+
BBox: this.getBBoxObject(set, dimensions),
|
|
33963
34030
|
SetVariantBasketDatas: set.getVariantBasketData(),
|
|
33964
34031
|
SetImage: setImage,
|
|
33965
34032
|
//Add url string of current rendering.
|
|
@@ -33993,7 +34060,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33993
34060
|
MetaData_locales: !((_set$basketConfigVari3 = set.basketConfigVariants) !== null && _set$basketConfigVari3 !== void 0 && _set$basketConfigVari3.length) ? set.MetaData_locales : undefined
|
|
33994
34061
|
});
|
|
33995
34062
|
return _context31.abrupt("return", orderSet);
|
|
33996
|
-
case
|
|
34063
|
+
case 35:
|
|
33997
34064
|
case "end":
|
|
33998
34065
|
return _context31.stop();
|
|
33999
34066
|
}
|
|
@@ -34013,14 +34080,13 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
34013
34080
|
key: "getSetImage",
|
|
34014
34081
|
value: (function () {
|
|
34015
34082
|
var _getSetImage = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee30(set, overwriteLastSavedRendering) {
|
|
34016
|
-
var
|
|
34083
|
+
var is3D, _yield$set$plannerHan, dimensions, url;
|
|
34017
34084
|
return _regeneratorRuntime__default["default"].wrap(function _callee30$(_context32) {
|
|
34018
34085
|
while (1) switch (_context32.prev = _context32.next) {
|
|
34019
34086
|
case 0:
|
|
34020
|
-
|
|
34021
|
-
is3D = ['3DImage', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
|
|
34087
|
+
is3D = ['3DImage', '3DCOMB', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
|
|
34022
34088
|
if (!is3D) {
|
|
34023
|
-
_context32.next =
|
|
34089
|
+
_context32.next = 12;
|
|
34024
34090
|
break;
|
|
34025
34091
|
}
|
|
34026
34092
|
LOG$8.startTransaction({
|
|
@@ -34028,17 +34094,29 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
34028
34094
|
message: 'render 3D Image',
|
|
34029
34095
|
eventId: 'RENDER_3D_IMAGE'
|
|
34030
34096
|
});
|
|
34031
|
-
_context32.next =
|
|
34097
|
+
_context32.next = 5;
|
|
34032
34098
|
return set.plannerHandler.saveSetImage(overwriteLastSavedRendering);
|
|
34033
|
-
case
|
|
34034
|
-
_context32.next =
|
|
34099
|
+
case 5:
|
|
34100
|
+
_context32.next = 7;
|
|
34035
34101
|
return set.plannerHandler.getSetImageAsUrl(set.getSetId());
|
|
34036
|
-
case
|
|
34037
|
-
|
|
34102
|
+
case 7:
|
|
34103
|
+
_yield$set$plannerHan = _context32.sent;
|
|
34104
|
+
dimensions = _yield$set$plannerHan.dimensions;
|
|
34105
|
+
url = _yield$set$plannerHan.url;
|
|
34038
34106
|
LOG$8.successTransaction('RENDER_3D_IMAGE');
|
|
34039
|
-
|
|
34040
|
-
|
|
34041
|
-
|
|
34107
|
+
return _context32.abrupt("return", {
|
|
34108
|
+
dimensions: dimensions,
|
|
34109
|
+
url: url
|
|
34110
|
+
});
|
|
34111
|
+
case 12:
|
|
34112
|
+
return _context32.abrupt("return", {
|
|
34113
|
+
dimensions: {
|
|
34114
|
+
w: undefined,
|
|
34115
|
+
h: undefined,
|
|
34116
|
+
d: undefined
|
|
34117
|
+
}
|
|
34118
|
+
});
|
|
34119
|
+
case 13:
|
|
34042
34120
|
case "end":
|
|
34043
34121
|
return _context32.stop();
|
|
34044
34122
|
}
|
|
@@ -34058,7 +34136,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
34058
34136
|
while (1) switch (_context33.prev = _context33.next) {
|
|
34059
34137
|
case 0:
|
|
34060
34138
|
//if not 3d
|
|
34061
|
-
is3D = ['3DImage', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
|
|
34139
|
+
is3D = ['3DImage', '3DCOMB', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
|
|
34062
34140
|
if (is3D) {
|
|
34063
34141
|
_context33.next = 3;
|
|
34064
34142
|
break;
|
|
@@ -34114,7 +34192,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
34114
34192
|
message: 'render 3D alternative Image',
|
|
34115
34193
|
eventId: 'RENDER_3D_ALTERNATIVE_IMAGE'
|
|
34116
34194
|
});
|
|
34117
|
-
is2D = !['3DImage', 'BoxPlanner'].includes(set.getPlannerMode());
|
|
34195
|
+
is2D = !['3DImage', '3DCOMB', 'BoxPlanner'].includes(set.getPlannerMode());
|
|
34118
34196
|
if (!(is2D || set.onlyRunLogic)) {
|
|
34119
34197
|
_context34.next = 4;
|
|
34120
34198
|
break;
|
|
@@ -34181,14 +34259,17 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
34181
34259
|
}()
|
|
34182
34260
|
}, {
|
|
34183
34261
|
key: "getBBoxObject",
|
|
34184
|
-
value: function getBBoxObject(set) {
|
|
34262
|
+
value: function getBBoxObject(set, dimensions) {
|
|
34263
|
+
var _dimensions$w, _dimensions$d, _dimensions$h, _set$api$getI18n$t, _set$api$getI18n, _set$api$getI18n$t2, _set$api$getI18n$t3, _set$api$getI18n2, _set$api$getI18n2$t, _set$api$getI18n$t4, _set$api$getI18n3, _set$api$getI18n3$t;
|
|
34185
34264
|
var bbox = set.plannerHandler.getSetBoundingBox(set.getSetId());
|
|
34186
|
-
|
|
34187
|
-
X: bbox.width,
|
|
34188
|
-
Y: bbox.depth,
|
|
34189
|
-
Z: bbox.height
|
|
34190
|
-
Info: bbox.width + 'cm x ' + bbox.depth + 'cm'
|
|
34265
|
+
var dim = {
|
|
34266
|
+
X: (_dimensions$w = dimensions === null || dimensions === void 0 ? void 0 : dimensions.w) !== null && _dimensions$w !== void 0 ? _dimensions$w : bbox.width,
|
|
34267
|
+
Y: (_dimensions$d = dimensions === null || dimensions === void 0 ? void 0 : dimensions.d) !== null && _dimensions$d !== void 0 ? _dimensions$d : bbox.depth,
|
|
34268
|
+
Z: (_dimensions$h = dimensions === null || dimensions === void 0 ? void 0 : dimensions.h) !== null && _dimensions$h !== void 0 ? _dimensions$h : bbox.height
|
|
34191
34269
|
};
|
|
34270
|
+
return _objectSpread$8(_objectSpread$8({}, dim), {}, {
|
|
34271
|
+
Info: ((_set$api$getI18n$t = (_set$api$getI18n = set.api.getI18n()) === null || _set$api$getI18n === void 0 || (_set$api$getI18n$t2 = _set$api$getI18n.t) === null || _set$api$getI18n$t2 === void 0 ? void 0 : _set$api$getI18n$t2.call(_set$api$getI18n, 'utils.width_first_letter', 'B')) !== null && _set$api$getI18n$t !== void 0 ? _set$api$getI18n$t : 'B') + ': ' + dim.X + ' cm x ' + ((_set$api$getI18n$t3 = (_set$api$getI18n2 = set.api.getI18n()) === null || _set$api$getI18n2 === void 0 || (_set$api$getI18n2$t = _set$api$getI18n2.t) === null || _set$api$getI18n2$t === void 0 ? void 0 : _set$api$getI18n2$t.call(_set$api$getI18n2, 'utils.depth_first_letter', 'T')) !== null && _set$api$getI18n$t3 !== void 0 ? _set$api$getI18n$t3 : 'T') + ': ' + dim.Y + ' cm' + (dim.Z ? ' x ' + ((_set$api$getI18n$t4 = (_set$api$getI18n3 = set.api.getI18n()) === null || _set$api$getI18n3 === void 0 || (_set$api$getI18n3$t = _set$api$getI18n3.t) === null || _set$api$getI18n3$t === void 0 ? void 0 : _set$api$getI18n3$t.call(_set$api$getI18n3, 'utils.height_first_letter', 'H')) !== null && _set$api$getI18n$t4 !== void 0 ? _set$api$getI18n$t4 : 'H') + ': ' + dim.X + ' cm' : '')
|
|
34272
|
+
});
|
|
34192
34273
|
}
|
|
34193
34274
|
}, {
|
|
34194
34275
|
key: "loadProductsOfSets",
|
|
@@ -34915,7 +34996,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34915
34996
|
case 9:
|
|
34916
34997
|
_context7.prev = 9;
|
|
34917
34998
|
_context7.t0 = _context7["catch"](0);
|
|
34918
|
-
LOG$7.error(new DivaUtils.DivaError('
|
|
34999
|
+
LOG$7.error(new DivaUtils.DivaError('ProductId cannot be found in Database', {
|
|
34919
35000
|
code: 'WC_0004',
|
|
34920
35001
|
custom: {
|
|
34921
35002
|
divaNr: divaNr
|
|
@@ -34941,30 +35022,44 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34941
35022
|
return _regeneratorRuntime__default["default"].wrap(function _callee8$(_context8) {
|
|
34942
35023
|
while (1) switch (_context8.prev = _context8.next) {
|
|
34943
35024
|
case 0:
|
|
34944
|
-
_context8.
|
|
35025
|
+
_context8.prev = 0;
|
|
35026
|
+
_context8.next = 3;
|
|
34945
35027
|
return api.getDataCache(api.getProductBasketUrl(key, productId), undefined, undefined, 'catalog', 'POST', {
|
|
34946
35028
|
fields: fields !== null && fields !== void 0 && fields.length ? fields : undefined
|
|
34947
35029
|
});
|
|
34948
|
-
case
|
|
35030
|
+
case 3:
|
|
34949
35031
|
variantData = _context8.sent;
|
|
34950
35032
|
if (!(variantData.Error || !variantData.basket)) {
|
|
34951
|
-
_context8.next =
|
|
35033
|
+
_context8.next = 9;
|
|
34952
35034
|
break;
|
|
34953
35035
|
}
|
|
34954
|
-
LOG$7.error(new DivaUtils.DivaError('ProductId
|
|
35036
|
+
LOG$7.error(new DivaUtils.DivaError('ProductId cannot be found in Database', {
|
|
34955
35037
|
code: 'WC_0005',
|
|
34956
35038
|
custom: {
|
|
34957
35039
|
productId: productId
|
|
34958
35040
|
}
|
|
34959
35041
|
}));
|
|
34960
35042
|
return _context8.abrupt("return", false);
|
|
34961
|
-
case 8:
|
|
34962
|
-
return _context8.abrupt("return", this.initBasket(api, variantData.basket.DivaNr, variantData, undefined, productId));
|
|
34963
35043
|
case 9:
|
|
35044
|
+
return _context8.abrupt("return", this.initBasket(api, variantData.basket.DivaNr, variantData, undefined, productId));
|
|
35045
|
+
case 10:
|
|
35046
|
+
_context8.next = 16;
|
|
35047
|
+
break;
|
|
35048
|
+
case 12:
|
|
35049
|
+
_context8.prev = 12;
|
|
35050
|
+
_context8.t0 = _context8["catch"](0);
|
|
35051
|
+
LOG$7.error(new DivaUtils.DivaError('Error while fetching product data', {
|
|
35052
|
+
code: 'WC_0005',
|
|
35053
|
+
custom: {
|
|
35054
|
+
productId: productId
|
|
35055
|
+
}
|
|
35056
|
+
}));
|
|
35057
|
+
return _context8.abrupt("return", false);
|
|
35058
|
+
case 16:
|
|
34964
35059
|
case "end":
|
|
34965
35060
|
return _context8.stop();
|
|
34966
35061
|
}
|
|
34967
|
-
}, _callee8, this);
|
|
35062
|
+
}, _callee8, this, [[0, 12]]);
|
|
34968
35063
|
}));
|
|
34969
35064
|
function loadBasketByCustomProductId(_x17, _x18, _x19, _x20) {
|
|
34970
35065
|
return _loadBasketByCustomProductId.apply(this, arguments);
|
|
@@ -35297,7 +35392,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35297
35392
|
break;
|
|
35298
35393
|
case 3:
|
|
35299
35394
|
_context13.next = 5;
|
|
35300
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
35395
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-e607705c.js'); });
|
|
35301
35396
|
case 5:
|
|
35302
35397
|
_yield$import = _context13.sent;
|
|
35303
35398
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -35305,7 +35400,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35305
35400
|
return _context13.abrupt("break", 33);
|
|
35306
35401
|
case 9:
|
|
35307
35402
|
_context13.next = 11;
|
|
35308
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
35403
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-fbcd6772.js'); });
|
|
35309
35404
|
case 11:
|
|
35310
35405
|
_yield$import2 = _context13.sent;
|
|
35311
35406
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -35313,7 +35408,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35313
35408
|
return _context13.abrupt("break", 33);
|
|
35314
35409
|
case 15:
|
|
35315
35410
|
_context13.next = 17;
|
|
35316
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
35411
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-e665dd62.js'); });
|
|
35317
35412
|
case 17:
|
|
35318
35413
|
_yield$import3 = _context13.sent;
|
|
35319
35414
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -35321,7 +35416,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35321
35416
|
return _context13.abrupt("break", 33);
|
|
35322
35417
|
case 21:
|
|
35323
35418
|
_context13.next = 23;
|
|
35324
|
-
return Promise.resolve().then(function () { return require('./ProductBasketHandler-
|
|
35419
|
+
return Promise.resolve().then(function () { return require('./ProductBasketHandler-67c19e6d.js'); });
|
|
35325
35420
|
case 23:
|
|
35326
35421
|
_yield$import4 = _context13.sent;
|
|
35327
35422
|
ProductWWSHandler = _yield$import4["default"];
|
|
@@ -35329,7 +35424,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35329
35424
|
return _context13.abrupt("break", 33);
|
|
35330
35425
|
case 27:
|
|
35331
35426
|
_context13.next = 29;
|
|
35332
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
35427
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-26b802ca.js'); });
|
|
35333
35428
|
case 29:
|
|
35334
35429
|
_yield$import5 = _context13.sent;
|
|
35335
35430
|
StandardWWSHandler = _yield$import5["default"];
|
|
@@ -36714,7 +36809,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36714
36809
|
while (1) switch (_context3.prev = _context3.next) {
|
|
36715
36810
|
case 0:
|
|
36716
36811
|
_context3.next = 2;
|
|
36717
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
36812
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-dec9a0b8.js'); });
|
|
36718
36813
|
case 2:
|
|
36719
36814
|
_yield$import = _context3.sent;
|
|
36720
36815
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -37159,13 +37254,15 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
37159
37254
|
* @param catalogCodex The CatalogCodex in the planning
|
|
37160
37255
|
* @param catalogGUID The CatalogGUID in the planning
|
|
37161
37256
|
* @param forceReloadPlanning Force reload whole planning even if only viewPoint has changed. This is used when for example no 3D Render Client has loaded the current planning
|
|
37257
|
+
* @param camera The RTV Camera Information for Unity/RTV KOMBI
|
|
37258
|
+
* @param useLatestCamera should the latest camera be used ? default yes when requesting the start viewpoint via the configurator button not
|
|
37162
37259
|
*/
|
|
37163
37260
|
}, {
|
|
37164
37261
|
key: "request3D",
|
|
37165
37262
|
value: (function () {
|
|
37166
37263
|
var _request3D = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee7(params) {
|
|
37167
37264
|
var _params$renderRequest, _params$renderRequest2, _params$renderRequest3, _params$renderRequest4, _params$renderRequest5, _params$renderRequest6, _this$viewPointHandle;
|
|
37168
|
-
var room, newRenderSize, doReloadWholePlanning, planningHash, requestRenderingFrom3DHost, requestHqRenderScriptFrom3DHost, rendering, renderHash, viewPointName, functionType,
|
|
37265
|
+
var room, newRenderSize, doReloadWholePlanning, camera, planningHash, requestRenderingFrom3DHost, requestHqRenderScriptFrom3DHost, rendering, renderHash, viewPointName, functionType, sizeInfo, _rendering, fullscreenRendering, renderingInCacheFound, _this$connectionHandl6, _plannerMeasureDigits, returnRequest;
|
|
37169
37266
|
return _regeneratorRuntime__default["default"].wrap(function _callee7$(_context7) {
|
|
37170
37267
|
while (1) switch (_context7.prev = _context7.next) {
|
|
37171
37268
|
case 0:
|
|
@@ -37191,7 +37288,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
37191
37288
|
//Check if viewPoint is changed based on alternateRendering
|
|
37192
37289
|
//Do check if viewpoint has to be changed
|
|
37193
37290
|
if (params.alternateRenderInfo && (params.alternateRenderInfo.overwrittenViewPointName || params.alternateRenderInfo.viewPointName)) this.handleStaticVP(params.alternateRenderInfo.overwrittenViewPointName ? params.alternateRenderInfo.overwrittenViewPointName : params.alternateRenderInfo.viewPointName);
|
|
37194
|
-
|
|
37291
|
+
camera = params.camera ? params.camera : params.useLatestCamera ? this.latestCamera : undefined;
|
|
37292
|
+
planningHash = DivaUtils.md5(JSON.stringify(params.planningData) + JSON.stringify(camera));
|
|
37195
37293
|
if (planningHash == this.lastFramePlanningHash) doReloadWholePlanning = false;
|
|
37196
37294
|
if (params.forceReloadPlanning || (_this$viewPointHandle = this.viewPointHandler.getCurRoomlistVP()) !== null && _this$viewPointHandle !== void 0 && _this$viewPointHandle.isStatic) doReloadWholePlanning = true;
|
|
37197
37295
|
this.lastFramePlanningHash = planningHash;
|
|
@@ -37199,7 +37297,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
37199
37297
|
requestHqRenderScriptFrom3DHost = false;
|
|
37200
37298
|
if (params.doRequestHqRenderScript) {
|
|
37201
37299
|
rendering = this.hqRenderScriptCache.get(planningHash);
|
|
37202
|
-
if (rendering) {
|
|
37300
|
+
if (rendering && !params.useLatestCamera) {
|
|
37203
37301
|
LOG$4.debug('Get HQRenderScript from cache');
|
|
37204
37302
|
this.lastSavedHQRenderScript = JSON.parse(rendering.HQRenderScript);
|
|
37205
37303
|
this.updatePlannerHqRenderScriptInView(rendering);
|
|
@@ -37220,7 +37318,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
37220
37318
|
if (params.doRequestRendering) {
|
|
37221
37319
|
viewPointName = this.viewPointHandler.getCurViewPointToRender();
|
|
37222
37320
|
sizeInfo = params.renderRequestInfos.width + ':' + params.renderRequestInfos.height;
|
|
37223
|
-
renderHash = DivaUtils.md5(JSON.stringify(params.planningData) + '#' + room + '#' + viewPointName + '#' + sizeInfo + '#' + JSON.stringify(
|
|
37321
|
+
renderHash = DivaUtils.md5(JSON.stringify(params.planningData) + '#' + room + '#' + viewPointName + '#' + sizeInfo + '#' + JSON.stringify(camera));
|
|
37224
37322
|
this.lastRequestedRenderHash = renderHash;
|
|
37225
37323
|
LOG$4.debug('Request New Rendering with hash ' + renderHash + '; and planningHash: ' + planningHash, 'PlannerHandler3D');
|
|
37226
37324
|
if (this.checkIsRenderingCached(renderHash, params.renderRequestInfos.planner3DGridEnabled, params.renderRequestInfos.mediaServiceSaveMode)) {
|
|
@@ -37253,7 +37351,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
37253
37351
|
}
|
|
37254
37352
|
}
|
|
37255
37353
|
if (!(requestHqRenderScriptFrom3DHost || requestRenderingFrom3DHost)) {
|
|
37256
|
-
_context7.next =
|
|
37354
|
+
_context7.next = 32;
|
|
37257
37355
|
break;
|
|
37258
37356
|
}
|
|
37259
37357
|
if (params.catalogData.lang) params.planningData.SCE.Lang = params.catalogData.lang;
|
|
@@ -37280,20 +37378,20 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
37280
37378
|
viewPointInfo: this.viewPointHandler.getCurRoomlistVP(),
|
|
37281
37379
|
alternateRenderingsExist: params.alternateRenderingsExist,
|
|
37282
37380
|
alternateRenderInfo: params.alternateRenderInfo,
|
|
37283
|
-
camera:
|
|
37284
|
-
forceUseCam: !!
|
|
37381
|
+
camera: camera,
|
|
37382
|
+
forceUseCam: !!camera
|
|
37285
37383
|
} : undefined
|
|
37286
37384
|
});
|
|
37287
37385
|
if (params.camera) this.latestCamera = params.camera;
|
|
37288
37386
|
if (!(returnRequest === undefined || requestHqRenderScriptFrom3DHost && returnRequest.hqRenderScript == undefined || requestRenderingFrom3DHost && returnRequest.rendering == undefined)) {
|
|
37289
|
-
_context7.next =
|
|
37387
|
+
_context7.next = 30;
|
|
37290
37388
|
break;
|
|
37291
37389
|
}
|
|
37292
37390
|
LOG$4.error(new DivaUtils.DivaError('Error requesting the 3D from host. RequestHqRenderScript: ' + requestHqRenderScriptFrom3DHost + '; RequestRendering: ' + requestRenderingFrom3DHost, {
|
|
37293
37391
|
code: 'WC_0013'
|
|
37294
37392
|
}));
|
|
37295
37393
|
return _context7.abrupt("return");
|
|
37296
|
-
case
|
|
37394
|
+
case 30:
|
|
37297
37395
|
if (requestHqRenderScriptFrom3DHost) {
|
|
37298
37396
|
if (this.waitForHQRenderScript.has(planningHash)) this.waitForHQRenderScript["delete"](planningHash);
|
|
37299
37397
|
this.waitForHQRenderScript.set(planningHash, returnRequest.hqRenderScript);
|
|
@@ -37305,12 +37403,12 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
37305
37403
|
if (returnRequest.rendering.getIsAlternateRendering()) this.addAlternateRenderingToSavedAlternateRenderings(returnRequest.rendering);else this.lastSavedRendering = returnRequest.rendering;
|
|
37306
37404
|
}
|
|
37307
37405
|
}
|
|
37308
|
-
case
|
|
37406
|
+
case 32:
|
|
37309
37407
|
return _context7.abrupt("return", {
|
|
37310
37408
|
planningHash: planningHash,
|
|
37311
37409
|
renderHash: renderHash
|
|
37312
37410
|
});
|
|
37313
|
-
case
|
|
37411
|
+
case 33:
|
|
37314
37412
|
case "end":
|
|
37315
37413
|
return _context7.stop();
|
|
37316
37414
|
}
|
|
@@ -38263,7 +38361,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38263
38361
|
break;
|
|
38264
38362
|
case 8:
|
|
38265
38363
|
_context4.next = 10;
|
|
38266
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
38364
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-ae253974.js'); });
|
|
38267
38365
|
case 10:
|
|
38268
38366
|
_yield$import = _context4.sent;
|
|
38269
38367
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -38274,7 +38372,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38274
38372
|
return _context4.abrupt("break", 21);
|
|
38275
38373
|
case 15:
|
|
38276
38374
|
_context4.next = 17;
|
|
38277
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
38375
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-815fbf90.js'); });
|
|
38278
38376
|
case 17:
|
|
38279
38377
|
_yield$import2 = _context4.sent;
|
|
38280
38378
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -38417,7 +38515,14 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38417
38515
|
case 2:
|
|
38418
38516
|
rendering = _context6.sent;
|
|
38419
38517
|
LOG$2.debug('SAVE SET IMAGE DIM3D width: ' + (rendering === null || rendering === void 0 ? void 0 : rendering.get3DDimInfo().w) + ', height: ' + (rendering === null || rendering === void 0 ? void 0 : rendering.get3DDimInfo().h) + ', depth: ' + (rendering === null || rendering === void 0 ? void 0 : rendering.get3DDimInfo().d));
|
|
38420
|
-
return _context6.abrupt("return",
|
|
38518
|
+
return _context6.abrupt("return", {
|
|
38519
|
+
url: rendering === null || rendering === void 0 ? void 0 : rendering.UrlToSavedRendering,
|
|
38520
|
+
dimensions: {
|
|
38521
|
+
w: rendering === null || rendering === void 0 ? void 0 : rendering.get3DDimInfo().w,
|
|
38522
|
+
h: rendering === null || rendering === void 0 ? void 0 : rendering.get3DDimInfo().h,
|
|
38523
|
+
d: rendering === null || rendering === void 0 ? void 0 : rendering.get3DDimInfo().d
|
|
38524
|
+
}
|
|
38525
|
+
});
|
|
38421
38526
|
case 5:
|
|
38422
38527
|
case "end":
|
|
38423
38528
|
return _context6.stop();
|
|
@@ -39002,7 +39107,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
39002
39107
|
planner3DGridEnabled: false,
|
|
39003
39108
|
mediaServiceSaveMode: 'STREAM',
|
|
39004
39109
|
doShow3DDimensionLines: !!doShow3DDimensionLines
|
|
39005
|
-
});
|
|
39110
|
+
}, undefined, true);
|
|
39006
39111
|
} else {
|
|
39007
39112
|
this.handler3D.handle3DVisualizationChanged(mode, params);
|
|
39008
39113
|
}
|
|
@@ -39035,7 +39140,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
39035
39140
|
}, {
|
|
39036
39141
|
key: "request3D",
|
|
39037
39142
|
value: function () {
|
|
39038
|
-
var _request3D = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee16(doRequestRendering, doRequestHqRenderScript, alternateRenderingsExist, alternateRenderInfo, forceReloadPlanning, renderRequestInfos, viewpoint) {
|
|
39143
|
+
var _request3D = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee16(doRequestRendering, doRequestHqRenderScript, alternateRenderingsExist, alternateRenderInfo, forceReloadPlanning, renderRequestInfos, viewpoint, useLatestCamera) {
|
|
39039
39144
|
var _this3 = this;
|
|
39040
39145
|
var plannerData, loadedCatData, plannerExists, savedSetId;
|
|
39041
39146
|
return _regeneratorRuntime__default["default"].wrap(function _callee16$(_context16) {
|
|
@@ -39106,7 +39211,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
39106
39211
|
forceReloadPlanning: forceReloadPlanning,
|
|
39107
39212
|
alternateRenderInfo: alternateRenderInfo,
|
|
39108
39213
|
alternateRenderingsExist: alternateRenderingsExist,
|
|
39109
|
-
camera: viewpoint
|
|
39214
|
+
camera: viewpoint,
|
|
39215
|
+
useLatestCamera: useLatestCamera
|
|
39110
39216
|
});
|
|
39111
39217
|
case 18:
|
|
39112
39218
|
return _context16.abrupt("return", _context16.sent);
|
|
@@ -39118,7 +39224,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
39118
39224
|
}
|
|
39119
39225
|
}, _callee16, this);
|
|
39120
39226
|
}));
|
|
39121
|
-
function request3D(_x33, _x34, _x35, _x36, _x37, _x38, _x39) {
|
|
39227
|
+
function request3D(_x33, _x34, _x35, _x36, _x37, _x38, _x39, _x40) {
|
|
39122
39228
|
return _request3D.apply(this, arguments);
|
|
39123
39229
|
}
|
|
39124
39230
|
return request3D;
|
|
@@ -39797,19 +39903,22 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39797
39903
|
//onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
|
|
39798
39904
|
_defineProperty__default["default"](this, "doConfigure", /*#__PURE__*/function () {
|
|
39799
39905
|
var _ref11 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee11(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents) {
|
|
39906
|
+
var _this$actions13, _this$actions13$toggl, _this$actions14, _this$actions14$toggl;
|
|
39800
39907
|
var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4;
|
|
39801
39908
|
return _regeneratorRuntime__default["default"].wrap(function _callee11$(_context11) {
|
|
39802
39909
|
while (1) switch (_context11.prev = _context11.next) {
|
|
39803
39910
|
case 0:
|
|
39804
39911
|
set = _this.actSet();
|
|
39805
|
-
|
|
39912
|
+
(_this$actions13 = _this.actions) === null || _this$actions13 === void 0 || (_this$actions13$toggl = _this$actions13.toggleLoading) === null || _this$actions13$toggl === void 0 || _this$actions13$toggl.call(_this$actions13, 'doConfigure', false, true);
|
|
39913
|
+
_context11.next = 4;
|
|
39806
39914
|
return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, myValues, targetArticles, undefined, 'FromViewClick');
|
|
39807
|
-
case
|
|
39915
|
+
case 4:
|
|
39808
39916
|
returnValues = _context11.sent;
|
|
39917
|
+
(_this$actions14 = _this.actions) === null || _this$actions14 === void 0 || (_this$actions14$toggl = _this$actions14.toggleLoading) === null || _this$actions14$toggl === void 0 || _this$actions14$toggl.call(_this$actions14, 'doConfigure', false, false);
|
|
39809
39918
|
structure = setHandlerInstance.loadConfigStructureOfActSet(set, _this.getCurPlannerType());
|
|
39810
39919
|
_this.checkVariantData();
|
|
39811
39920
|
if (dontUpdatePlannerView) {
|
|
39812
|
-
_context11.next =
|
|
39921
|
+
_context11.next = 18;
|
|
39813
39922
|
break;
|
|
39814
39923
|
}
|
|
39815
39924
|
_this.updateConfiguratorStructure(structure);
|
|
@@ -39823,16 +39932,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39823
39932
|
_this.updateViewButtonsDependigOnConfigStructure();
|
|
39824
39933
|
_this.updatePlannerView('DO_CONFIGURE', myValues);
|
|
39825
39934
|
_this.updateWebConfiguratorTitle();
|
|
39826
|
-
_context11.next =
|
|
39935
|
+
_context11.next = 18;
|
|
39827
39936
|
return _this.getFreePlacesOnGrids(undefined, 'doConfigure');
|
|
39828
|
-
case
|
|
39937
|
+
case 18:
|
|
39829
39938
|
if (dontCallEvents) {
|
|
39830
|
-
_context11.next =
|
|
39939
|
+
_context11.next = 21;
|
|
39831
39940
|
break;
|
|
39832
39941
|
}
|
|
39833
|
-
_context11.next =
|
|
39942
|
+
_context11.next = 21;
|
|
39834
39943
|
return _this.fillBaksetforOnWebPlanerConfigChange(myValues);
|
|
39835
|
-
case
|
|
39944
|
+
case 21:
|
|
39836
39945
|
case "end":
|
|
39837
39946
|
return _context11.stop();
|
|
39838
39947
|
}
|
|
@@ -39896,6 +40005,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39896
40005
|
return _ref12.apply(this, arguments);
|
|
39897
40006
|
};
|
|
39898
40007
|
}());
|
|
40008
|
+
_defineProperty__default["default"](this, "getPosNr", function (basketId) {
|
|
40009
|
+
var _set$getArticleByBask;
|
|
40010
|
+
var set = _this.actSet();
|
|
40011
|
+
if (!set) throw new Error('set undefined');
|
|
40012
|
+
return (_set$getArticleByBask = set.getArticleByBasketId(basketId)) === null || _set$getArticleByBask === void 0 ? void 0 : _set$getArticleByBask.posNr;
|
|
40013
|
+
});
|
|
39899
40014
|
_defineProperty__default["default"](this, "getReturnTo", function (event) {
|
|
39900
40015
|
var returnTo = _this.ReturnTo;
|
|
39901
40016
|
if (returnTo == undefined) {
|
|
@@ -39926,7 +40041,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39926
40041
|
key: "initialize",
|
|
39927
40042
|
value: function () {
|
|
39928
40043
|
var _initialize = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee13() {
|
|
39929
|
-
var viewReadyPromise, loadSuccessful, _initSetState$api$web, _this$
|
|
40044
|
+
var viewReadyPromise, loadSuccessful, _initSetState$api$web, _this$actions16, _set$getDivaArticles, _set$getSetPrice, _this$actions15, _this$actions15$toggl, initSetState, set, products, result, _this$actions17, basket, catalogData;
|
|
39930
40045
|
return _regeneratorRuntime__default["default"].wrap(function _callee13$(_context13) {
|
|
39931
40046
|
while (1) switch (_context13.prev = _context13.next) {
|
|
39932
40047
|
case 0:
|
|
@@ -39970,7 +40085,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39970
40085
|
return this.initView();
|
|
39971
40086
|
case 20:
|
|
39972
40087
|
this.subscribeToWebPlannerEvents();
|
|
39973
|
-
(_this$
|
|
40088
|
+
(_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);
|
|
39974
40089
|
return _context13.abrupt("return", true);
|
|
39975
40090
|
case 23:
|
|
39976
40091
|
//TODO: get prices of matching product with more than one element
|
|
@@ -40020,11 +40135,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40020
40135
|
_context13.next = 44;
|
|
40021
40136
|
return this.initView();
|
|
40022
40137
|
case 44:
|
|
40023
|
-
(_this$
|
|
40138
|
+
(_this$actions16 = this.actions) === null || _this$actions16 === void 0 || _this$actions16.onEvent({
|
|
40024
40139
|
type: 'onConfiguratorReady'
|
|
40025
40140
|
});
|
|
40026
40141
|
if (Object.keys((_set$getDivaArticles = set === null || set === void 0 ? void 0 : set.getDivaArticles()) !== null && _set$getDivaArticles !== void 0 ? _set$getDivaArticles : {}).length) {
|
|
40027
|
-
(_this$
|
|
40142
|
+
(_this$actions17 = this.actions) === null || _this$actions17 === void 0 || _this$actions17.onEvent({
|
|
40028
40143
|
type: 'onArticleInitialized'
|
|
40029
40144
|
});
|
|
40030
40145
|
}
|
|
@@ -40119,11 +40234,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40119
40234
|
}, {
|
|
40120
40235
|
key: "onInitializationError",
|
|
40121
40236
|
value: function onInitializationError() {
|
|
40122
|
-
var _this$state2, _this$
|
|
40237
|
+
var _this$state2, _this$actions19, _this$actions19$toggl;
|
|
40123
40238
|
var onErrorHandling = this.api.onErrorHandling();
|
|
40124
40239
|
if ((_this$state2 = this.state) !== null && _this$state2 !== void 0 && _this$state2.isFullscreenComponent) {
|
|
40125
|
-
var _this$
|
|
40126
|
-
(_this$
|
|
40240
|
+
var _this$actions18;
|
|
40241
|
+
(_this$actions18 = this.actions) === null || _this$actions18 === void 0 || _this$actions18.closeComponentInFullscreen();
|
|
40127
40242
|
return;
|
|
40128
40243
|
}
|
|
40129
40244
|
if (onErrorHandling) {
|
|
@@ -40164,7 +40279,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40164
40279
|
});
|
|
40165
40280
|
}
|
|
40166
40281
|
}
|
|
40167
|
-
(_this$
|
|
40282
|
+
(_this$actions19 = this.actions) === null || _this$actions19 === void 0 || (_this$actions19$toggl = _this$actions19.toggleLoading) === null || _this$actions19$toggl === void 0 || _this$actions19$toggl.call(_this$actions19, 'Planner_Loading', false, false);
|
|
40168
40283
|
}
|
|
40169
40284
|
}, {
|
|
40170
40285
|
key: "getDivaArticles",
|
|
@@ -40497,7 +40612,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40497
40612
|
}, {
|
|
40498
40613
|
key: "updatePlannerView",
|
|
40499
40614
|
value: function updatePlannerView(callingFrom, onDoConfigureValues, viewpoint) {
|
|
40500
|
-
var _this$getCurrentAlter, _set$getAlternateRend, _this$getDoShow3DDime2, _this$getDoShow3DDime3;
|
|
40615
|
+
var _this$getCurrentAlter, _set$getAlternateRend, _this$getDoShow3DDime2, _this$getDoShow3DDime3, _this$getDoShow3DDime4;
|
|
40501
40616
|
var set = this.actSet();
|
|
40502
40617
|
if (!set) return;
|
|
40503
40618
|
var alternateRenderInfo = (_this$getCurrentAlter = this.getCurrentAlternativRendering) === null || _this$getCurrentAlter === void 0 || (_this$getCurrentAlter = _this$getCurrentAlter.call(this)) === null || _this$getCurrentAlter === void 0 ? void 0 : _this$getCurrentAlter[0];
|
|
@@ -40532,24 +40647,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40532
40647
|
//delete me if you see this
|
|
40533
40648
|
LOG$1.debug('lvl 1: ', this.getCurPlannerViewMode());
|
|
40534
40649
|
switch (this.getCurPlannerViewMode()) {
|
|
40650
|
+
case '3DCOMB':
|
|
40651
|
+
setHandlerInstance.update3DPlannerView(true, true, set, this.getPlannerRenderingSize(), this.getPlanner3DGridEnabled(), 'STREAM', (_this$getDoShow3DDime2 = this.getDoShow3DDimensionLines) === null || _this$getDoShow3DDime2 === void 0 ? void 0 : _this$getDoShow3DDime2.call(this), alternateRenderInfo, viewpoint, callingFrom != 'HANDLE_3D_VIS_CHANGED');
|
|
40652
|
+
break;
|
|
40535
40653
|
case 'RTViewer':
|
|
40536
40654
|
//Request HQRenderscript + rendering
|
|
40537
40655
|
//Request new Rendering
|
|
40538
|
-
setHandlerInstance.update3DPlannerView(true, true, set, this.getPlannerRenderingSize(), this.getPlanner3DGridEnabled(), 'STREAM', (_this$
|
|
40656
|
+
setHandlerInstance.update3DPlannerView(true, true, set, this.getPlannerRenderingSize(), this.getPlanner3DGridEnabled(), 'STREAM', (_this$getDoShow3DDime3 = this.getDoShow3DDimensionLines) === null || _this$getDoShow3DDime3 === void 0 ? void 0 : _this$getDoShow3DDime3.call(this), alternateRenderInfo, viewpoint);
|
|
40539
40657
|
break;
|
|
40540
40658
|
case '3DImage':
|
|
40541
40659
|
//Request new Rendering
|
|
40542
|
-
setHandlerInstance.update3DPlannerView(true, !!this.doLoadHQR, set, this.getPlannerRenderingSize(), this.getPlanner3DGridEnabled(), 'STREAM', (_this$
|
|
40660
|
+
setHandlerInstance.update3DPlannerView(true, !!this.doLoadHQR, set, this.getPlannerRenderingSize(), this.getPlanner3DGridEnabled(), 'STREAM', (_this$getDoShow3DDime4 = this.getDoShow3DDimensionLines) === null || _this$getDoShow3DDime4 === void 0 ? void 0 : _this$getDoShow3DDime4.call(this), alternateRenderInfo);
|
|
40543
40661
|
break;
|
|
40544
40662
|
case '2DGrid':
|
|
40545
40663
|
var boundingBox = setHandlerInstance.get2DViewPlannerBoundingBox(set);
|
|
40546
40664
|
if (boundingBox) {
|
|
40547
40665
|
this.updatePlanner2DGrid(boundingBox);
|
|
40548
40666
|
}
|
|
40549
|
-
if (['3DImage'].includes(this.getInitPlannerViewMode())) {
|
|
40550
|
-
var _this$
|
|
40667
|
+
if (['3DImage', '3DCOMB'].includes(this.getInitPlannerViewMode())) {
|
|
40668
|
+
var _this$getDoShow3DDime5;
|
|
40551
40669
|
//update 3D image always even if you are in the 2DGrid mode
|
|
40552
|
-
setHandlerInstance.update3DPlannerView(true, !!this.doLoadHQR, set, this.getPlannerRenderingSize(), this.getPlanner3DGridEnabled(), 'STREAM', (_this$
|
|
40670
|
+
setHandlerInstance.update3DPlannerView(true, !!this.doLoadHQR, set, this.getPlannerRenderingSize(), this.getPlanner3DGridEnabled(), 'STREAM', (_this$getDoShow3DDime5 = this.getDoShow3DDimensionLines) === null || _this$getDoShow3DDime5 === void 0 ? void 0 : _this$getDoShow3DDime5.call(this), alternateRenderInfo);
|
|
40553
40671
|
}
|
|
40554
40672
|
break;
|
|
40555
40673
|
}
|
|
@@ -40567,18 +40685,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40567
40685
|
value: function forceUpdatePlannerView(renderSavingMode, doLoadAllAlternateRenderings) {
|
|
40568
40686
|
var set = this.actSet();
|
|
40569
40687
|
this.update2DGrid(set);
|
|
40570
|
-
if (['3DImage', 'BoxPlanner'].includes(this.getInitPlannerViewMode())) {
|
|
40571
|
-
var _this$
|
|
40688
|
+
if (['3DImage', '3DCOMB', 'BoxPlanner'].includes(this.getInitPlannerViewMode())) {
|
|
40689
|
+
var _this$getDoShow3DDime7;
|
|
40572
40690
|
if (doLoadAllAlternateRenderings) {
|
|
40573
40691
|
var alternateRenderings = set.CatalogData.alternateRenderingsForSummary;
|
|
40574
40692
|
for (var i = 0; i < alternateRenderings.length; i++) {
|
|
40575
40693
|
if (alternateRenderings[i].hideOptionsIn3DImage && alternateRenderings[i].hideOptionsIn3DImage.length > 0) {
|
|
40576
|
-
var _this$
|
|
40577
|
-
setHandlerInstance.update3DPlannerView(true, !!this.doLoadHQR, set, this.getPlannerRenderingSize(), false, renderSavingMode, (_this$
|
|
40694
|
+
var _this$getDoShow3DDime6;
|
|
40695
|
+
setHandlerInstance.update3DPlannerView(true, !!this.doLoadHQR, set, this.getPlannerRenderingSize(), false, renderSavingMode, (_this$getDoShow3DDime6 = this.getDoShow3DDimensionLines) === null || _this$getDoShow3DDime6 === void 0 ? void 0 : _this$getDoShow3DDime6.call(this), alternateRenderings[i]);
|
|
40578
40696
|
}
|
|
40579
40697
|
}
|
|
40580
40698
|
}
|
|
40581
|
-
setHandlerInstance.update3DPlannerView(true, !!this.doLoadHQR, set, this.getPlannerRenderingSize(), false, renderSavingMode, (_this$
|
|
40699
|
+
setHandlerInstance.update3DPlannerView(true, !!this.doLoadHQR, set, this.getPlannerRenderingSize(), false, renderSavingMode, (_this$getDoShow3DDime7 = this.getDoShow3DDimensionLines) === null || _this$getDoShow3DDime7 === void 0 ? void 0 : _this$getDoShow3DDime7.call(this));
|
|
40582
40700
|
}
|
|
40583
40701
|
}
|
|
40584
40702
|
}, {
|
|
@@ -40875,8 +40993,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40875
40993
|
}, {
|
|
40876
40994
|
key: "changeOnFavorites",
|
|
40877
40995
|
value: function changeOnFavorites(opt, opvs, targetArticles, remove) {
|
|
40878
|
-
var _this$
|
|
40879
|
-
favoritesHandlerInstance.changeOnFavorites(this.actSet(), opt, opvs, targetArticles, remove, (_this$
|
|
40996
|
+
var _this$actions20;
|
|
40997
|
+
favoritesHandlerInstance.changeOnFavorites(this.actSet(), opt, opvs, targetArticles, remove, (_this$actions20 = this.actions) === null || _this$actions20 === void 0 ? void 0 : _this$actions20.openModal);
|
|
40880
40998
|
}
|
|
40881
40999
|
}, {
|
|
40882
41000
|
key: "setDifferentOptions",
|
|
@@ -40923,25 +41041,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40923
41041
|
}, {
|
|
40924
41042
|
key: "callEvent",
|
|
40925
41043
|
value: function callEvent(event, param) {
|
|
40926
|
-
var _this$
|
|
41044
|
+
var _this$actions21, _this$actions22, _this$actions23, _this$actions24;
|
|
40927
41045
|
switch (event) {
|
|
40928
41046
|
case 'onFullscreenClose':
|
|
40929
|
-
(_this$
|
|
41047
|
+
(_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.onEvent({
|
|
40930
41048
|
type: 'onFullscreenClose'
|
|
40931
41049
|
});
|
|
40932
41050
|
break;
|
|
40933
41051
|
case 'onWebPlanerClose':
|
|
40934
|
-
(_this$
|
|
41052
|
+
(_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
|
|
40935
41053
|
type: 'onWebPlanerClose'
|
|
40936
41054
|
});
|
|
40937
41055
|
break;
|
|
40938
41056
|
case 'onWebPlanerHelp':
|
|
40939
|
-
(_this$
|
|
41057
|
+
(_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
|
|
40940
41058
|
type: 'onWebPlanerHelp'
|
|
40941
41059
|
});
|
|
40942
41060
|
break;
|
|
40943
41061
|
case 'onWebPlanerZoomClick':
|
|
40944
|
-
(_this$
|
|
41062
|
+
(_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
|
|
40945
41063
|
type: 'onWebPlanerZoomClick',
|
|
40946
41064
|
data: param
|
|
40947
41065
|
});
|
|
@@ -40952,14 +41070,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40952
41070
|
key: "saveToBasketWrapper",
|
|
40953
41071
|
value: function () {
|
|
40954
41072
|
var _saveToBasketWrapper = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, force) {
|
|
40955
|
-
var _this$
|
|
40956
|
-
_this$
|
|
40957
|
-
_this$
|
|
40958
|
-
_this$
|
|
41073
|
+
var _this$actions25,
|
|
41074
|
+
_this$actions25$toggl,
|
|
41075
|
+
_this$actions26,
|
|
41076
|
+
_this$actions26$toggl,
|
|
40959
41077
|
_this2 = this,
|
|
40960
|
-
_this$
|
|
41078
|
+
_this$actions30,
|
|
40961
41079
|
_this$i18n14;
|
|
40962
|
-
var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _result, result, _this$
|
|
41080
|
+
var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _result, result, _this$actions27, _this$i18n8, _this$i18n9, _this$actions28, _this$i18n10, _this$i18n11, _this$actions29, _this$i18n12, _this$i18n13, _this$updatePlannerMs2, _this$actions31, _this$i18n15;
|
|
40963
41081
|
return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
|
|
40964
41082
|
while (1) switch (_context26.prev = _context26.next) {
|
|
40965
41083
|
case 0:
|
|
@@ -40993,18 +41111,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40993
41111
|
case 15:
|
|
40994
41112
|
returnTo = finalEvent == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
|
|
40995
41113
|
case 16:
|
|
40996
|
-
(_this$
|
|
41114
|
+
(_this$actions25 = this.actions) === null || _this$actions25 === void 0 || (_this$actions25$toggl = _this$actions25.toggleLoading) === null || _this$actions25$toggl === void 0 || _this$actions25$toggl.call(_this$actions25, 'Planner_Saving', false, true);
|
|
40997
41115
|
_context26.next = 19;
|
|
40998
41116
|
return this.saveToBasket(finalEvent, repairOnly, force);
|
|
40999
41117
|
case 19:
|
|
41000
41118
|
result = _context26.sent;
|
|
41001
|
-
(_this$
|
|
41119
|
+
(_this$actions26 = this.actions) === null || _this$actions26 === void 0 || (_this$actions26$toggl = _this$actions26.toggleLoading) === null || _this$actions26$toggl === void 0 || _this$actions26$toggl.call(_this$actions26, 'Planner_Saving', false, false);
|
|
41002
41120
|
if (!(result === 'canceled')) {
|
|
41003
41121
|
_context26.next = 25;
|
|
41004
41122
|
break;
|
|
41005
41123
|
}
|
|
41006
41124
|
LOG$1.error(new DivaUtils.DivaError('failed to save Basket'));
|
|
41007
|
-
(_this$
|
|
41125
|
+
(_this$actions27 = this.actions) === null || _this$actions27 === void 0 || _this$actions27.openModal({
|
|
41008
41126
|
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() : '',
|
|
41009
41127
|
accept: true
|
|
41010
41128
|
});
|
|
@@ -41018,12 +41136,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41018
41136
|
LOG$1.error(new DivaUtils.DivaError('PDF url is missing in basket', {
|
|
41019
41137
|
code: 'WC_0010'
|
|
41020
41138
|
}));
|
|
41021
|
-
(_this$
|
|
41139
|
+
(_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
|
|
41022
41140
|
text: ((_this$i18n10 = this.i18n()) === null || _this$i18n10 === void 0 ? void 0 : _this$i18n10.t('modal.general_error')) + ' --- ' + DivaUtils__default["default"].formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils__default["default"].getCurrentTraceId() ? ((_this$i18n11 = this.i18n()) === null || _this$i18n11 === void 0 ? void 0 : _this$i18n11.t('modal.errorcode')) + ': ' + DivaUtils__default["default"].getCurrentTraceId() : '',
|
|
41023
41141
|
accept: true
|
|
41024
41142
|
});
|
|
41025
41143
|
} else {
|
|
41026
|
-
(_this$
|
|
41144
|
+
(_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
|
|
41027
41145
|
text: (_this$i18n12 = this.i18n()) === null || _this$i18n12 === void 0 ? void 0 : _this$i18n12.t(this.divaBasketHandler.actBasket.Status === 'ORDER' ? 'modal.open_order_pdf_now' : 'modal.open_leaflet_pdf_now'),
|
|
41028
41146
|
accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
|
|
41029
41147
|
callback: function callback() {
|
|
@@ -41033,7 +41151,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41033
41151
|
}
|
|
41034
41152
|
return _context26.abrupt("break", 31);
|
|
41035
41153
|
case 30:
|
|
41036
|
-
(_this$
|
|
41154
|
+
(_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
|
|
41037
41155
|
text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
|
|
41038
41156
|
accept: true
|
|
41039
41157
|
});
|
|
@@ -41049,7 +41167,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41049
41167
|
_context26.next = 37;
|
|
41050
41168
|
break;
|
|
41051
41169
|
}
|
|
41052
|
-
(_this$
|
|
41170
|
+
(_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
|
|
41053
41171
|
accept: true,
|
|
41054
41172
|
text: (_this$i18n15 = this.i18n()) === null || _this$i18n15 === void 0 ? void 0 : _this$i18n15.t('configurator.PAYLOAD_TO_BIG'),
|
|
41055
41173
|
title: 'modals.error_saving'
|
|
@@ -41072,7 +41190,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41072
41190
|
key: "saveToBasket",
|
|
41073
41191
|
value: function () {
|
|
41074
41192
|
var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee27(event, repairOnly, force) {
|
|
41075
|
-
var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$
|
|
41193
|
+
var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions32, _this$actions33;
|
|
41076
41194
|
var set, actBasket, returnTo, oldReturnTo, count, basketData, bytes, result, newDivaNr, _result2, _event4, product;
|
|
41077
41195
|
return _regeneratorRuntime__default["default"].wrap(function _callee27$(_context27) {
|
|
41078
41196
|
while (1) switch (_context27.prev = _context27.next) {
|
|
@@ -41159,7 +41277,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41159
41277
|
_context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 39 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 41 : _context27.t3 === 'OPEN_PDF' ? 43 : _context27.t3 === 'SAVE_BASKET_WITH_MODAL' ? 43 : _context27.t3 === 'SAVE_BASKET' ? 43 : _context27.t3 === 'SAVE_BASKET_SYNC' ? 43 : _context27.t3 === 'OPEN_LEAFLET_BARRIER' ? 43 : 63;
|
|
41160
41278
|
break;
|
|
41161
41279
|
case 39:
|
|
41162
|
-
(_this$
|
|
41280
|
+
(_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openComponent({
|
|
41163
41281
|
type: 'SELLER',
|
|
41164
41282
|
parameters: {
|
|
41165
41283
|
module: 'PCreator',
|
|
@@ -41172,7 +41290,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41172
41290
|
});
|
|
41173
41291
|
return _context27.abrupt("break", 63);
|
|
41174
41292
|
case 41:
|
|
41175
|
-
(_this$
|
|
41293
|
+
(_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
|
|
41176
41294
|
type: 'SELLER',
|
|
41177
41295
|
parameters: {
|
|
41178
41296
|
module: 'Basket',
|
|
@@ -41254,6 +41372,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41254
41372
|
if (!set) return;
|
|
41255
41373
|
return setHandlerInstance.checkNotificationRules(set, targetArticles, visitedOptions, event);
|
|
41256
41374
|
}
|
|
41375
|
+
}, {
|
|
41376
|
+
key: "checkBannerRules",
|
|
41377
|
+
value: function checkBannerRules(visitedOptions, event) {
|
|
41378
|
+
var set = this.actSet();
|
|
41379
|
+
if (!set) return;
|
|
41380
|
+
return setHandlerInstance.checkBannerRules(set, visitedOptions, event);
|
|
41381
|
+
}
|
|
41257
41382
|
|
|
41258
41383
|
/**
|
|
41259
41384
|
* This function returns true if the Planner Mode should be visible and the planner Step should be shown.
|
|
@@ -41415,6 +41540,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41415
41540
|
key: "getAllowRTV",
|
|
41416
41541
|
value: function getAllowRTV() {
|
|
41417
41542
|
var _this$actSet21, _this$actSet22;
|
|
41543
|
+
if (this.getEnableUnityRtvKombi()) return false;
|
|
41418
41544
|
if (this.api.forceShowRTV()) return true;
|
|
41419
41545
|
if ((_this$actSet21 = this.actSet()) !== null && _this$actSet21 !== void 0 && _this$actSet21.CatalogData.divaForceRTV) return true;
|
|
41420
41546
|
if (this.api.getDoShowRTV() && (_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaArReady) return true;
|
|
@@ -41497,16 +41623,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41497
41623
|
key: "addToBasket",
|
|
41498
41624
|
value: function () {
|
|
41499
41625
|
var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee29(actBasket) {
|
|
41500
|
-
var _this$
|
|
41501
|
-
_this$actions33,
|
|
41502
|
-
_this$actions34,
|
|
41626
|
+
var _this$actions34,
|
|
41503
41627
|
_this$actions35,
|
|
41504
41628
|
_this$actions36,
|
|
41505
|
-
_this$divaBasketHandl3,
|
|
41506
|
-
_this3 = this,
|
|
41507
41629
|
_this$actions37,
|
|
41508
41630
|
_this$actions38,
|
|
41509
|
-
_this$
|
|
41631
|
+
_this$divaBasketHandl3,
|
|
41632
|
+
_this3 = this,
|
|
41633
|
+
_this$actions39,
|
|
41634
|
+
_this$actions40,
|
|
41635
|
+
_this$actions41;
|
|
41510
41636
|
var event,
|
|
41511
41637
|
addToBasketLog,
|
|
41512
41638
|
emailConfig,
|
|
@@ -41526,35 +41652,35 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41526
41652
|
break;
|
|
41527
41653
|
case 5:
|
|
41528
41654
|
this.handleSuccessTransaction('onPrintBasket', actBasket);
|
|
41529
|
-
(_this$
|
|
41655
|
+
(_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.onEvent({
|
|
41530
41656
|
type: 'onWebPlanerPrint',
|
|
41531
41657
|
data: actBasket.getAsJson()
|
|
41532
41658
|
});
|
|
41533
41659
|
return _context29.abrupt("break", 38);
|
|
41534
41660
|
case 8:
|
|
41535
41661
|
this.handleSuccessTransaction('onSaveBasket', actBasket);
|
|
41536
|
-
(_this$
|
|
41662
|
+
(_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
|
|
41537
41663
|
type: 'onWebPlanerSave',
|
|
41538
41664
|
data: actBasket.getAsJson()
|
|
41539
41665
|
});
|
|
41540
41666
|
return _context29.abrupt("break", 38);
|
|
41541
41667
|
case 11:
|
|
41542
41668
|
this.handleSuccessTransaction('onShareBasket', actBasket);
|
|
41543
|
-
(_this$
|
|
41669
|
+
(_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
|
|
41544
41670
|
type: 'onWebPlanerShare',
|
|
41545
41671
|
data: actBasket.getAsJson()
|
|
41546
41672
|
});
|
|
41547
41673
|
return _context29.abrupt("break", 38);
|
|
41548
41674
|
case 14:
|
|
41549
41675
|
this.handleSuccessTransaction('onRequestConsulation', actBasket);
|
|
41550
|
-
(_this$
|
|
41676
|
+
(_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
|
|
41551
41677
|
type: 'onRequestConsulation',
|
|
41552
41678
|
data: actBasket.getAsJson()
|
|
41553
41679
|
});
|
|
41554
41680
|
return _context29.abrupt("break", 38);
|
|
41555
41681
|
case 17:
|
|
41556
41682
|
this.handleSuccessTransaction('onSave', actBasket);
|
|
41557
|
-
(_this$
|
|
41683
|
+
(_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
|
|
41558
41684
|
type: 'onSave',
|
|
41559
41685
|
data: actBasket.getAsJson()
|
|
41560
41686
|
});
|
|
@@ -41590,7 +41716,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41590
41716
|
});
|
|
41591
41717
|
this.handleSuccessTransaction('onSendEmail', actBasket);
|
|
41592
41718
|
}
|
|
41593
|
-
(_this$
|
|
41719
|
+
(_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
|
|
41594
41720
|
type: 'onAddToBasket',
|
|
41595
41721
|
data: actBasket.getAsJson()
|
|
41596
41722
|
});
|
|
@@ -41602,7 +41728,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41602
41728
|
case 28:
|
|
41603
41729
|
products = _context29.sent;
|
|
41604
41730
|
this.handleSuccessTransaction('onSaveProduct', actBasket);
|
|
41605
|
-
(_this$
|
|
41731
|
+
(_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
|
|
41606
41732
|
type: 'onAddToBasket',
|
|
41607
41733
|
data: actBasket.getAsJson()
|
|
41608
41734
|
});
|
|
@@ -41616,7 +41742,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41616
41742
|
addToBasketLog = false;
|
|
41617
41743
|
case 35:
|
|
41618
41744
|
if (addToBasketLog) this.handleSuccessTransaction('onAddToBasket', actBasket);
|
|
41619
|
-
(_this$
|
|
41745
|
+
(_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
|
|
41620
41746
|
type: 'onAddToBasket',
|
|
41621
41747
|
data: actBasket.getAsJson()
|
|
41622
41748
|
});
|
|
@@ -41648,8 +41774,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41648
41774
|
}, {
|
|
41649
41775
|
key: "openPDFpostAsEvent",
|
|
41650
41776
|
value: function openPDFpostAsEvent(mongoDBId) {
|
|
41651
|
-
var _this$
|
|
41652
|
-
(_this$
|
|
41777
|
+
var _this$actions42, _this$actions43, _this$actions44;
|
|
41778
|
+
(_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.updateBreadcrumbs({
|
|
41653
41779
|
type: 'update',
|
|
41654
41780
|
param: {
|
|
41655
41781
|
groupId: 'SHOWROOM',
|
|
@@ -41663,7 +41789,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41663
41789
|
}
|
|
41664
41790
|
}
|
|
41665
41791
|
});
|
|
41666
|
-
(_this$
|
|
41792
|
+
(_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.updateBreadcrumbs({
|
|
41667
41793
|
type: 'update',
|
|
41668
41794
|
param: {
|
|
41669
41795
|
groupId: 'SHOWROOM',
|
|
@@ -41677,7 +41803,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41677
41803
|
}
|
|
41678
41804
|
}
|
|
41679
41805
|
});
|
|
41680
|
-
(_this$
|
|
41806
|
+
(_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.openComponent({
|
|
41681
41807
|
type: 'REPORT',
|
|
41682
41808
|
parameters: {
|
|
41683
41809
|
id: mongoDBId
|
|
@@ -41897,14 +42023,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41897
42023
|
}, {
|
|
41898
42024
|
key: "subscribeToWebPlannerEvents",
|
|
41899
42025
|
value: function subscribeToWebPlannerEvents() {
|
|
41900
|
-
var _this$
|
|
41901
|
-
(_this$
|
|
42026
|
+
var _this$actions45;
|
|
42027
|
+
(_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.subscribeEvents(this.addToBasketEventFunction);
|
|
41902
42028
|
}
|
|
41903
42029
|
}, {
|
|
41904
42030
|
key: "unsubscribeFromWebPlannerEvents",
|
|
41905
42031
|
value: function unsubscribeFromWebPlannerEvents() {
|
|
41906
|
-
var _this$
|
|
41907
|
-
(_this$
|
|
42032
|
+
var _this$actions46;
|
|
42033
|
+
(_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.unSubscribeEvents(this.addToBasketEventFunction);
|
|
41908
42034
|
}
|
|
41909
42035
|
}, {
|
|
41910
42036
|
key: "initApiForLogicOnly",
|