@crystaldesign/web-planner-logic 24.12.0-beta.7 → 24.12.0-beta.8
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-18f1ae44.js → DivaBoxPlanner-7b508f32.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-dc3a795f.js → DivaStandardPlanner-c73e6e57.js} +2 -2
- package/build/cjs/{DoorPlanner-d96cea1c.js → DoorPlanner-ffa7af62.js} +1 -1
- package/build/cjs/{Host3DSignalR-4aa3fc0b.js → Host3DSignalR-d3830717.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-297878d2.js → LiviqueWWSHandler-85a1dc89.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-d1400c5f.js → PfisterWWSHandler-b47dba23.js} +1 -1
- package/build/cjs/{PlannerHandler2D-df72a9db.js → PlannerHandler2D-9d9d1af9.js} +1 -1
- package/build/cjs/{ProductBasketHandler-19c99496.js → ProductBasketHandler-22cb7ee4.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-0199731a.js → SeriousBasketHandler-28f031fa.js} +1 -1
- package/build/cjs/{ShelfPlanner-6ff6daf5.js → ShelfPlanner-4b697826.js} +1 -1
- package/build/cjs/{StandardWWSHandler-dc3d7475.js → StandardWWSHandler-ab0c107b.js} +1 -1
- package/build/cjs/{index-83a7edd3.js → index-bceec53b.js} +145 -104
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-bef89c9b.js → DivaBoxPlanner-81bbe89c.js} +2 -2
- package/build/esm/{DivaStandardPlanner-855876a6.js → DivaStandardPlanner-c3f7e518.js} +2 -2
- package/build/esm/{DoorPlanner-eb0b94a0.js → DoorPlanner-f4b338c4.js} +1 -1
- package/build/esm/{Host3DSignalR-ed2088a2.js → Host3DSignalR-45bb9e24.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-99e43d3a.js → LiviqueWWSHandler-d401b8c4.js} +1 -1
- package/build/esm/{PfisterWWSHandler-794e96d4.js → PfisterWWSHandler-ebfad71d.js} +1 -1
- package/build/esm/{PlannerHandler2D-58932ae5.js → PlannerHandler2D-fb755d99.js} +1 -1
- package/build/esm/{ProductBasketHandler-5ab958f7.js → ProductBasketHandler-68443648.js} +1 -1
- package/build/esm/{SeriousBasketHandler-c9decc55.js → SeriousBasketHandler-53ff90b8.js} +1 -1
- package/build/esm/{ShelfPlanner-ff141873.js → ShelfPlanner-569fe7f0.js} +1 -1
- package/build/esm/{StandardWWSHandler-92f613fa.js → StandardWWSHandler-b903e37c.js} +1 -1
- package/build/esm/{index-6805291d.js → index-3bbc6483.js} +145 -104
- 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/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/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/DivaWebPlanner.d.ts +9 -2
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +5 -2
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.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/package.json +2 -2
|
@@ -18293,7 +18293,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18293
18293
|
DE: 'Achtung alle änderungen gehen verlohren... Bist du sicher?'
|
|
18294
18294
|
}
|
|
18295
18295
|
}],
|
|
18296
|
-
|
|
18296
|
+
warningRules: [],
|
|
18297
|
+
bannerRules: [],
|
|
18297
18298
|
summaryTabGroupPosition: undefined,
|
|
18298
18299
|
onConfigSingleDontGeneralize: false,
|
|
18299
18300
|
ignoreMaxPriceAsBP: false,
|
|
@@ -18598,7 +18599,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18598
18599
|
} else if (item.Codex == 'NOTIFICATIONS') {
|
|
18599
18600
|
_this.catalogData.notificationsRules = JSON.parse(item.Value);
|
|
18600
18601
|
} else if (item.Codex == 'WARNINGS') {
|
|
18601
|
-
_this.catalogData.
|
|
18602
|
+
_this.catalogData.warningRules = JSON.parse(item.Value);
|
|
18603
|
+
} else if (item.Codex == 'BANNER') {
|
|
18604
|
+
_this.catalogData.bannerRules = JSON.parse(item.Value);
|
|
18602
18605
|
} else if (item.Codex == 'IGNORE_MAX_PRICE_AS_BASEPRICE') {
|
|
18603
18606
|
_this.catalogData.ignoreMaxPriceAsBP = item.Value == '1';
|
|
18604
18607
|
} else if (item.Codex == 'DONT_USE_VCODEX_FOR_BASKET') {
|
|
@@ -19466,9 +19469,14 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19466
19469
|
return this.catalogData.notificationsRules;
|
|
19467
19470
|
}
|
|
19468
19471
|
}, {
|
|
19469
|
-
key: "
|
|
19472
|
+
key: "warningRules",
|
|
19470
19473
|
get: function get() {
|
|
19471
|
-
return this.catalogData.
|
|
19474
|
+
return this.catalogData.warningRules;
|
|
19475
|
+
}
|
|
19476
|
+
}, {
|
|
19477
|
+
key: "bannerRules",
|
|
19478
|
+
get: function get() {
|
|
19479
|
+
return this.catalogData.bannerRules;
|
|
19472
19480
|
}
|
|
19473
19481
|
}, {
|
|
19474
19482
|
key: "dontSaveAlternativeRenderings",
|
|
@@ -23551,7 +23559,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23551
23559
|
break;
|
|
23552
23560
|
}
|
|
23553
23561
|
_context.next = 4;
|
|
23554
|
-
return import('./ShelfPlanner-
|
|
23562
|
+
return import('./ShelfPlanner-569fe7f0.js');
|
|
23555
23563
|
case 4:
|
|
23556
23564
|
_yield$import = _context.sent;
|
|
23557
23565
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -25415,6 +25423,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25415
25423
|
}, {
|
|
25416
25424
|
key: "evalOpvsOnOpvsConstructionRules",
|
|
25417
25425
|
value: function evalOpvsOnOpvsConstructionRules(article) {
|
|
25426
|
+
var _article$CatalogData$;
|
|
25418
25427
|
var somethingChanged = false;
|
|
25419
25428
|
var previousRules = {};
|
|
25420
25429
|
if (article.updatedOPVbyOPVConstructionRules) {
|
|
@@ -25478,19 +25487,20 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25478
25487
|
}
|
|
25479
25488
|
}
|
|
25480
25489
|
}
|
|
25481
|
-
|
|
25482
|
-
|
|
25483
|
-
|
|
25484
|
-
var
|
|
25485
|
-
|
|
25486
|
-
|
|
25487
|
-
|
|
25488
|
-
|
|
25489
|
-
|
|
25490
|
+
if ((_article$CatalogData$ = article.CatalogData.warningRules) !== null && _article$CatalogData$ !== void 0 && _article$CatalogData$.length) {
|
|
25491
|
+
var notifications = this.checkNotificationRules(article.CatalogData.warningRules, _defineProperty({}, article.basketId, article), {});
|
|
25492
|
+
if (notifications !== null && notifications !== void 0 && notifications.length) {
|
|
25493
|
+
for (var _i3 = 0; _i3 < notifications.length; _i3++) {
|
|
25494
|
+
var _item = notifications[_i3];
|
|
25495
|
+
if (!_item.showAsWarning) continue;
|
|
25496
|
+
article.addUpdatedOPVbyOPVConstructionRules(_item.showAsWarning.option + ';' + _item.showAsWarning.optionValue, article.updateOPVConstruction('OPT' + _item.showAsWarning.option, 'OPV' + _item.showAsWarning.optionValue, {
|
|
25497
|
+
message: _item.message,
|
|
25498
|
+
type: _item.type == 'error' ? 'DISABLE' : 'WARNING'
|
|
25499
|
+
}));
|
|
25500
|
+
}
|
|
25501
|
+
somethingChanged = true;
|
|
25490
25502
|
}
|
|
25491
|
-
somethingChanged = true;
|
|
25492
25503
|
}
|
|
25493
|
-
|
|
25494
25504
|
//falls die vorherigen reglen anders sind wie die neuen, artiklekonfiguration neu laden
|
|
25495
25505
|
if (somethingChanged && JSON.stringify(previousRules) != JSON.stringify(article.updatedOPVbyOPVConstructionRules)) {
|
|
25496
25506
|
this.updateCfgValues(article, {}, {});
|
|
@@ -25506,7 +25516,6 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25506
25516
|
}, {
|
|
25507
25517
|
key: "checkNotificationRules",
|
|
25508
25518
|
value: function checkNotificationRules(toCheckRules, articles, visitedOptions, event) {
|
|
25509
|
-
if (!(toCheckRules !== null && toCheckRules !== void 0 && toCheckRules.length)) return;
|
|
25510
25519
|
var returnValue = [];
|
|
25511
25520
|
for (var i = 0; i < toCheckRules.length; i++) {
|
|
25512
25521
|
var entry = toCheckRules[i];
|
|
@@ -25514,27 +25523,12 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25514
25523
|
var ruleValid = false;
|
|
25515
25524
|
for (var j = 0; j < rules.length; j++) {
|
|
25516
25525
|
for (var basketId in articles) {
|
|
25517
|
-
var _rule$articles;
|
|
25518
25526
|
ruleValid = false;
|
|
25519
25527
|
var rule = rules[j];
|
|
25520
25528
|
var article = articles[basketId];
|
|
25521
|
-
if ((
|
|
25522
|
-
if (rule.variantValues && !this.objectIncudesObject(rule.variantValues, article.VariantValuesWithoutOPTandOPV)) continue;
|
|
25523
|
-
if (rule.visitedOptions && !this.arrayIncludesArray(rule.visitedOptions, visitedOptions[basketId])) continue;
|
|
25524
|
-
if (rule.jsFormula && !article.evalRule(DivaUtils.getRuleByFormula(rule.jsFormula))) continue;
|
|
25525
|
-
if (rule.sizes) console.error('size logic not jet implemented');
|
|
25529
|
+
if (!this.checkRule(rule, article, visitedOptions)) continue;
|
|
25526
25530
|
if ((event === null || event === void 0 ? void 0 : event.type) == 'config' && entry.type == 'notification') {
|
|
25527
|
-
|
|
25528
|
-
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;
|
|
25529
|
-
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;
|
|
25530
|
-
if (checkOPT) {
|
|
25531
|
-
if (Array.isArray(checkOPT) && !checkOPT.includes(event.data.optionCodex)) continue;
|
|
25532
|
-
if (!Array.isArray(checkOPT) && checkOPT !== event.data.optionCodex) continue;
|
|
25533
|
-
}
|
|
25534
|
-
if (checkOPV) {
|
|
25535
|
-
if (Array.isArray(checkOPV) && !checkOPV.includes(event.data.optionValueCodex)) continue;
|
|
25536
|
-
if (!Array.isArray(checkOPV) && checkOPV !== event.data.optionValueCodex) continue;
|
|
25537
|
-
}
|
|
25531
|
+
if (!this.checkOnEvent(event.checkOnEvents, event.data)) continue;
|
|
25538
25532
|
}
|
|
25539
25533
|
ruleValid = true;
|
|
25540
25534
|
break;
|
|
@@ -25550,6 +25544,35 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25550
25544
|
}
|
|
25551
25545
|
return returnValue;
|
|
25552
25546
|
}
|
|
25547
|
+
}, {
|
|
25548
|
+
key: "checkRule",
|
|
25549
|
+
value: function checkRule(rule, article, visitedOptions) {
|
|
25550
|
+
var _rule$articles;
|
|
25551
|
+
if ((_rule$articles = rule.articles) !== null && _rule$articles !== void 0 && _rule$articles.length && !rule.articles.includes(article.articleCodex)) return false;
|
|
25552
|
+
if (rule.variantValues && !this.objectIncudesObject(rule.variantValues, article.VariantValuesWithoutOPTandOPV)) return false;
|
|
25553
|
+
if (rule.visitedOptions && !this.arrayIncludesArray(rule.visitedOptions, visitedOptions[article.basketId])) return false;
|
|
25554
|
+
if (rule.jsFormula && !article.evalRule(DivaUtils.getRuleByFormula(rule.jsFormula))) return false;
|
|
25555
|
+
if (rule.sizes) {
|
|
25556
|
+
console.error('size logic not jet implemented');
|
|
25557
|
+
return false;
|
|
25558
|
+
}
|
|
25559
|
+
return true;
|
|
25560
|
+
}
|
|
25561
|
+
}, {
|
|
25562
|
+
key: "checkOnEvent",
|
|
25563
|
+
value: function checkOnEvent(event, data) {
|
|
25564
|
+
var checkOPT = event !== null && event !== void 0 && event.option ? 'OPT' + (event === null || event === void 0 ? void 0 : event.option) : undefined;
|
|
25565
|
+
var checkOPV = event !== null && event !== void 0 && event.optionValue ? 'OPV' + (event === null || event === void 0 ? void 0 : event.optionValue) : undefined;
|
|
25566
|
+
if (checkOPT) {
|
|
25567
|
+
if (Array.isArray(checkOPT) && !checkOPT.includes(data.optionCodex)) return false;
|
|
25568
|
+
if (!Array.isArray(checkOPT) && checkOPT !== data.optionCodex) return false;
|
|
25569
|
+
}
|
|
25570
|
+
if (checkOPV) {
|
|
25571
|
+
if (Array.isArray(checkOPV) && !checkOPV.includes(data.optionValueCodex)) return false;
|
|
25572
|
+
if (!Array.isArray(checkOPV) && checkOPV !== data.optionValueCodex) return false;
|
|
25573
|
+
}
|
|
25574
|
+
return true;
|
|
25575
|
+
}
|
|
25553
25576
|
}, {
|
|
25554
25577
|
key: "objectIncudesObject",
|
|
25555
25578
|
value: function objectIncudesObject(smallerObject, biggerObject) {
|
|
@@ -28066,7 +28089,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
28066
28089
|
break;
|
|
28067
28090
|
}
|
|
28068
28091
|
_context4.next = 3;
|
|
28069
|
-
return import('./DoorPlanner-
|
|
28092
|
+
return import('./DoorPlanner-f4b338c4.js');
|
|
28070
28093
|
case 3:
|
|
28071
28094
|
_yield$import = _context4.sent;
|
|
28072
28095
|
DoorPlanner = _yield$import["default"];
|
|
@@ -33419,6 +33442,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33419
33442
|
_loop3();
|
|
33420
33443
|
}
|
|
33421
33444
|
}
|
|
33445
|
+
}, {
|
|
33446
|
+
key: "checkBannerRules",
|
|
33447
|
+
value: function checkBannerRules(set, visitedOptions, event) {
|
|
33448
|
+
var bannerRules = set.CatalogData.bannerRules;
|
|
33449
|
+
if (!bannerRules) return;
|
|
33450
|
+
var rules = articleHandlerInstance.checkNotificationRules(bannerRules, set.getDivaArticles(), visitedOptions, event);
|
|
33451
|
+
return rules === null || rules === void 0 ? void 0 : rules[0];
|
|
33452
|
+
}
|
|
33422
33453
|
}, {
|
|
33423
33454
|
key: "checkNotificationRules",
|
|
33424
33455
|
value: function checkNotificationRules(set, targetArticles, visitedOptions, event) {
|
|
@@ -35330,7 +35361,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35330
35361
|
break;
|
|
35331
35362
|
case 3:
|
|
35332
35363
|
_context13.next = 5;
|
|
35333
|
-
return import('./PfisterWWSHandler-
|
|
35364
|
+
return import('./PfisterWWSHandler-ebfad71d.js');
|
|
35334
35365
|
case 5:
|
|
35335
35366
|
_yield$import = _context13.sent;
|
|
35336
35367
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -35338,7 +35369,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35338
35369
|
return _context13.abrupt("break", 33);
|
|
35339
35370
|
case 9:
|
|
35340
35371
|
_context13.next = 11;
|
|
35341
|
-
return import('./LiviqueWWSHandler-
|
|
35372
|
+
return import('./LiviqueWWSHandler-d401b8c4.js');
|
|
35342
35373
|
case 11:
|
|
35343
35374
|
_yield$import2 = _context13.sent;
|
|
35344
35375
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -35346,7 +35377,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35346
35377
|
return _context13.abrupt("break", 33);
|
|
35347
35378
|
case 15:
|
|
35348
35379
|
_context13.next = 17;
|
|
35349
|
-
return import('./SeriousBasketHandler-
|
|
35380
|
+
return import('./SeriousBasketHandler-53ff90b8.js');
|
|
35350
35381
|
case 17:
|
|
35351
35382
|
_yield$import3 = _context13.sent;
|
|
35352
35383
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -35354,7 +35385,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35354
35385
|
return _context13.abrupt("break", 33);
|
|
35355
35386
|
case 21:
|
|
35356
35387
|
_context13.next = 23;
|
|
35357
|
-
return import('./ProductBasketHandler-
|
|
35388
|
+
return import('./ProductBasketHandler-68443648.js');
|
|
35358
35389
|
case 23:
|
|
35359
35390
|
_yield$import4 = _context13.sent;
|
|
35360
35391
|
ProductWWSHandler = _yield$import4["default"];
|
|
@@ -35362,7 +35393,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35362
35393
|
return _context13.abrupt("break", 33);
|
|
35363
35394
|
case 27:
|
|
35364
35395
|
_context13.next = 29;
|
|
35365
|
-
return import('./StandardWWSHandler-
|
|
35396
|
+
return import('./StandardWWSHandler-b903e37c.js');
|
|
35366
35397
|
case 29:
|
|
35367
35398
|
_yield$import5 = _context13.sent;
|
|
35368
35399
|
StandardWWSHandler = _yield$import5["default"];
|
|
@@ -36747,7 +36778,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36747
36778
|
while (1) switch (_context3.prev = _context3.next) {
|
|
36748
36779
|
case 0:
|
|
36749
36780
|
_context3.next = 2;
|
|
36750
|
-
return import('./Host3DSignalR-
|
|
36781
|
+
return import('./Host3DSignalR-45bb9e24.js');
|
|
36751
36782
|
case 2:
|
|
36752
36783
|
_yield$import = _context3.sent;
|
|
36753
36784
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -38299,7 +38330,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38299
38330
|
break;
|
|
38300
38331
|
case 8:
|
|
38301
38332
|
_context4.next = 10;
|
|
38302
|
-
return import('./DivaStandardPlanner-
|
|
38333
|
+
return import('./DivaStandardPlanner-c3f7e518.js');
|
|
38303
38334
|
case 10:
|
|
38304
38335
|
_yield$import = _context4.sent;
|
|
38305
38336
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -38310,7 +38341,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38310
38341
|
return _context4.abrupt("break", 21);
|
|
38311
38342
|
case 15:
|
|
38312
38343
|
_context4.next = 17;
|
|
38313
|
-
return import('./DivaBoxPlanner-
|
|
38344
|
+
return import('./DivaBoxPlanner-81bbe89c.js');
|
|
38314
38345
|
case 17:
|
|
38315
38346
|
_yield$import2 = _context4.sent;
|
|
38316
38347
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -39841,19 +39872,22 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39841
39872
|
//onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
|
|
39842
39873
|
_defineProperty(this, "doConfigure", /*#__PURE__*/function () {
|
|
39843
39874
|
var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents) {
|
|
39875
|
+
var _this$actions13, _this$actions13$toggl, _this$actions14, _this$actions14$toggl;
|
|
39844
39876
|
var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4;
|
|
39845
39877
|
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
39846
39878
|
while (1) switch (_context11.prev = _context11.next) {
|
|
39847
39879
|
case 0:
|
|
39848
39880
|
set = _this.actSet();
|
|
39849
|
-
|
|
39881
|
+
(_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);
|
|
39882
|
+
_context11.next = 4;
|
|
39850
39883
|
return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, myValues, targetArticles, undefined, 'FromViewClick');
|
|
39851
|
-
case
|
|
39884
|
+
case 4:
|
|
39852
39885
|
returnValues = _context11.sent;
|
|
39886
|
+
(_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);
|
|
39853
39887
|
structure = setHandlerInstance.loadConfigStructureOfActSet(set, _this.getCurPlannerType());
|
|
39854
39888
|
_this.checkVariantData();
|
|
39855
39889
|
if (dontUpdatePlannerView) {
|
|
39856
|
-
_context11.next =
|
|
39890
|
+
_context11.next = 18;
|
|
39857
39891
|
break;
|
|
39858
39892
|
}
|
|
39859
39893
|
_this.updateConfiguratorStructure(structure);
|
|
@@ -39867,16 +39901,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39867
39901
|
_this.updateViewButtonsDependigOnConfigStructure();
|
|
39868
39902
|
_this.updatePlannerView('DO_CONFIGURE', myValues);
|
|
39869
39903
|
_this.updateWebConfiguratorTitle();
|
|
39870
|
-
_context11.next =
|
|
39904
|
+
_context11.next = 18;
|
|
39871
39905
|
return _this.getFreePlacesOnGrids(undefined, 'doConfigure');
|
|
39872
|
-
case
|
|
39906
|
+
case 18:
|
|
39873
39907
|
if (dontCallEvents) {
|
|
39874
|
-
_context11.next =
|
|
39908
|
+
_context11.next = 21;
|
|
39875
39909
|
break;
|
|
39876
39910
|
}
|
|
39877
|
-
_context11.next =
|
|
39911
|
+
_context11.next = 21;
|
|
39878
39912
|
return _this.fillBaksetforOnWebPlanerConfigChange(myValues);
|
|
39879
|
-
case
|
|
39913
|
+
case 21:
|
|
39880
39914
|
case "end":
|
|
39881
39915
|
return _context11.stop();
|
|
39882
39916
|
}
|
|
@@ -39976,7 +40010,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39976
40010
|
key: "initialize",
|
|
39977
40011
|
value: function () {
|
|
39978
40012
|
var _initialize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13() {
|
|
39979
|
-
var viewReadyPromise, loadSuccessful, _initSetState$api$web, _this$
|
|
40013
|
+
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;
|
|
39980
40014
|
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
39981
40015
|
while (1) switch (_context13.prev = _context13.next) {
|
|
39982
40016
|
case 0:
|
|
@@ -40020,7 +40054,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40020
40054
|
return this.initView();
|
|
40021
40055
|
case 20:
|
|
40022
40056
|
this.subscribeToWebPlannerEvents();
|
|
40023
|
-
(_this$
|
|
40057
|
+
(_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);
|
|
40024
40058
|
return _context13.abrupt("return", true);
|
|
40025
40059
|
case 23:
|
|
40026
40060
|
//TODO: get prices of matching product with more than one element
|
|
@@ -40070,11 +40104,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40070
40104
|
_context13.next = 44;
|
|
40071
40105
|
return this.initView();
|
|
40072
40106
|
case 44:
|
|
40073
|
-
(_this$
|
|
40107
|
+
(_this$actions16 = this.actions) === null || _this$actions16 === void 0 || _this$actions16.onEvent({
|
|
40074
40108
|
type: 'onConfiguratorReady'
|
|
40075
40109
|
});
|
|
40076
40110
|
if (Object.keys((_set$getDivaArticles = set === null || set === void 0 ? void 0 : set.getDivaArticles()) !== null && _set$getDivaArticles !== void 0 ? _set$getDivaArticles : {}).length) {
|
|
40077
|
-
(_this$
|
|
40111
|
+
(_this$actions17 = this.actions) === null || _this$actions17 === void 0 || _this$actions17.onEvent({
|
|
40078
40112
|
type: 'onArticleInitialized'
|
|
40079
40113
|
});
|
|
40080
40114
|
}
|
|
@@ -40169,11 +40203,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40169
40203
|
}, {
|
|
40170
40204
|
key: "onInitializationError",
|
|
40171
40205
|
value: function onInitializationError() {
|
|
40172
|
-
var _this$state2, _this$
|
|
40206
|
+
var _this$state2, _this$actions19, _this$actions19$toggl;
|
|
40173
40207
|
var onErrorHandling = this.api.onErrorHandling();
|
|
40174
40208
|
if ((_this$state2 = this.state) !== null && _this$state2 !== void 0 && _this$state2.isFullscreenComponent) {
|
|
40175
|
-
var _this$
|
|
40176
|
-
(_this$
|
|
40209
|
+
var _this$actions18;
|
|
40210
|
+
(_this$actions18 = this.actions) === null || _this$actions18 === void 0 || _this$actions18.closeComponentInFullscreen();
|
|
40177
40211
|
return;
|
|
40178
40212
|
}
|
|
40179
40213
|
if (onErrorHandling) {
|
|
@@ -40214,7 +40248,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40214
40248
|
});
|
|
40215
40249
|
}
|
|
40216
40250
|
}
|
|
40217
|
-
(_this$
|
|
40251
|
+
(_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);
|
|
40218
40252
|
}
|
|
40219
40253
|
}, {
|
|
40220
40254
|
key: "getDivaArticles",
|
|
@@ -40928,8 +40962,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40928
40962
|
}, {
|
|
40929
40963
|
key: "changeOnFavorites",
|
|
40930
40964
|
value: function changeOnFavorites(opt, opvs, targetArticles, remove) {
|
|
40931
|
-
var _this$
|
|
40932
|
-
favoritesHandlerInstance.changeOnFavorites(this.actSet(), opt, opvs, targetArticles, remove, (_this$
|
|
40965
|
+
var _this$actions20;
|
|
40966
|
+
favoritesHandlerInstance.changeOnFavorites(this.actSet(), opt, opvs, targetArticles, remove, (_this$actions20 = this.actions) === null || _this$actions20 === void 0 ? void 0 : _this$actions20.openModal);
|
|
40933
40967
|
}
|
|
40934
40968
|
}, {
|
|
40935
40969
|
key: "setDifferentOptions",
|
|
@@ -40976,25 +41010,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40976
41010
|
}, {
|
|
40977
41011
|
key: "callEvent",
|
|
40978
41012
|
value: function callEvent(event, param) {
|
|
40979
|
-
var _this$
|
|
41013
|
+
var _this$actions21, _this$actions22, _this$actions23, _this$actions24;
|
|
40980
41014
|
switch (event) {
|
|
40981
41015
|
case 'onFullscreenClose':
|
|
40982
|
-
(_this$
|
|
41016
|
+
(_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.onEvent({
|
|
40983
41017
|
type: 'onFullscreenClose'
|
|
40984
41018
|
});
|
|
40985
41019
|
break;
|
|
40986
41020
|
case 'onWebPlanerClose':
|
|
40987
|
-
(_this$
|
|
41021
|
+
(_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
|
|
40988
41022
|
type: 'onWebPlanerClose'
|
|
40989
41023
|
});
|
|
40990
41024
|
break;
|
|
40991
41025
|
case 'onWebPlanerHelp':
|
|
40992
|
-
(_this$
|
|
41026
|
+
(_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
|
|
40993
41027
|
type: 'onWebPlanerHelp'
|
|
40994
41028
|
});
|
|
40995
41029
|
break;
|
|
40996
41030
|
case 'onWebPlanerZoomClick':
|
|
40997
|
-
(_this$
|
|
41031
|
+
(_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
|
|
40998
41032
|
type: 'onWebPlanerZoomClick',
|
|
40999
41033
|
data: param
|
|
41000
41034
|
});
|
|
@@ -41005,14 +41039,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41005
41039
|
key: "saveToBasketWrapper",
|
|
41006
41040
|
value: function () {
|
|
41007
41041
|
var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
|
|
41008
|
-
var _this$
|
|
41009
|
-
_this$
|
|
41010
|
-
_this$
|
|
41011
|
-
_this$
|
|
41042
|
+
var _this$actions25,
|
|
41043
|
+
_this$actions25$toggl,
|
|
41044
|
+
_this$actions26,
|
|
41045
|
+
_this$actions26$toggl,
|
|
41012
41046
|
_this2 = this,
|
|
41013
|
-
_this$
|
|
41047
|
+
_this$actions30,
|
|
41014
41048
|
_this$i18n14;
|
|
41015
|
-
var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _result, result, _this$
|
|
41049
|
+
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;
|
|
41016
41050
|
return _regeneratorRuntime.wrap(function _callee26$(_context26) {
|
|
41017
41051
|
while (1) switch (_context26.prev = _context26.next) {
|
|
41018
41052
|
case 0:
|
|
@@ -41046,18 +41080,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41046
41080
|
case 15:
|
|
41047
41081
|
returnTo = finalEvent == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
|
|
41048
41082
|
case 16:
|
|
41049
|
-
(_this$
|
|
41083
|
+
(_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);
|
|
41050
41084
|
_context26.next = 19;
|
|
41051
41085
|
return this.saveToBasket(finalEvent, repairOnly, force);
|
|
41052
41086
|
case 19:
|
|
41053
41087
|
result = _context26.sent;
|
|
41054
|
-
(_this$
|
|
41088
|
+
(_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);
|
|
41055
41089
|
if (!(result === 'canceled')) {
|
|
41056
41090
|
_context26.next = 25;
|
|
41057
41091
|
break;
|
|
41058
41092
|
}
|
|
41059
41093
|
LOG$1.error(new DivaError('failed to save Basket'));
|
|
41060
|
-
(_this$
|
|
41094
|
+
(_this$actions27 = this.actions) === null || _this$actions27 === void 0 || _this$actions27.openModal({
|
|
41061
41095
|
text: ((_this$i18n8 = this.i18n()) === null || _this$i18n8 === void 0 ? void 0 : _this$i18n8.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n9 = this.i18n()) === null || _this$i18n9 === void 0 ? void 0 : _this$i18n9.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
|
|
41062
41096
|
accept: true
|
|
41063
41097
|
});
|
|
@@ -41071,12 +41105,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41071
41105
|
LOG$1.error(new DivaError('PDF url is missing in basket', {
|
|
41072
41106
|
code: 'WC_0010'
|
|
41073
41107
|
}));
|
|
41074
|
-
(_this$
|
|
41108
|
+
(_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
|
|
41075
41109
|
text: ((_this$i18n10 = this.i18n()) === null || _this$i18n10 === void 0 ? void 0 : _this$i18n10.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n11 = this.i18n()) === null || _this$i18n11 === void 0 ? void 0 : _this$i18n11.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
|
|
41076
41110
|
accept: true
|
|
41077
41111
|
});
|
|
41078
41112
|
} else {
|
|
41079
|
-
(_this$
|
|
41113
|
+
(_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
|
|
41080
41114
|
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'),
|
|
41081
41115
|
accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
|
|
41082
41116
|
callback: function callback() {
|
|
@@ -41086,7 +41120,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41086
41120
|
}
|
|
41087
41121
|
return _context26.abrupt("break", 31);
|
|
41088
41122
|
case 30:
|
|
41089
|
-
(_this$
|
|
41123
|
+
(_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
|
|
41090
41124
|
text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
|
|
41091
41125
|
accept: true
|
|
41092
41126
|
});
|
|
@@ -41102,7 +41136,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41102
41136
|
_context26.next = 37;
|
|
41103
41137
|
break;
|
|
41104
41138
|
}
|
|
41105
|
-
(_this$
|
|
41139
|
+
(_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
|
|
41106
41140
|
accept: true,
|
|
41107
41141
|
text: (_this$i18n15 = this.i18n()) === null || _this$i18n15 === void 0 ? void 0 : _this$i18n15.t('configurator.PAYLOAD_TO_BIG'),
|
|
41108
41142
|
title: 'modals.error_saving'
|
|
@@ -41125,7 +41159,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41125
41159
|
key: "saveToBasket",
|
|
41126
41160
|
value: function () {
|
|
41127
41161
|
var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(event, repairOnly, force) {
|
|
41128
|
-
var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$
|
|
41162
|
+
var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions32, _this$actions33;
|
|
41129
41163
|
var set, actBasket, returnTo, oldReturnTo, count, basketData, bytes, result, newDivaNr, _result2, _event4, product;
|
|
41130
41164
|
return _regeneratorRuntime.wrap(function _callee27$(_context27) {
|
|
41131
41165
|
while (1) switch (_context27.prev = _context27.next) {
|
|
@@ -41212,7 +41246,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41212
41246
|
_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;
|
|
41213
41247
|
break;
|
|
41214
41248
|
case 39:
|
|
41215
|
-
(_this$
|
|
41249
|
+
(_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openComponent({
|
|
41216
41250
|
type: 'SELLER',
|
|
41217
41251
|
parameters: {
|
|
41218
41252
|
module: 'PCreator',
|
|
@@ -41225,7 +41259,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41225
41259
|
});
|
|
41226
41260
|
return _context27.abrupt("break", 63);
|
|
41227
41261
|
case 41:
|
|
41228
|
-
(_this$
|
|
41262
|
+
(_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
|
|
41229
41263
|
type: 'SELLER',
|
|
41230
41264
|
parameters: {
|
|
41231
41265
|
module: 'Basket',
|
|
@@ -41307,6 +41341,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41307
41341
|
if (!set) return;
|
|
41308
41342
|
return setHandlerInstance.checkNotificationRules(set, targetArticles, visitedOptions, event);
|
|
41309
41343
|
}
|
|
41344
|
+
}, {
|
|
41345
|
+
key: "checkBannerRules",
|
|
41346
|
+
value: function checkBannerRules(visitedOptions, event) {
|
|
41347
|
+
var set = this.actSet();
|
|
41348
|
+
if (!set) return;
|
|
41349
|
+
return setHandlerInstance.checkBannerRules(set, visitedOptions, event);
|
|
41350
|
+
}
|
|
41310
41351
|
|
|
41311
41352
|
/**
|
|
41312
41353
|
* This function returns true if the Planner Mode should be visible and the planner Step should be shown.
|
|
@@ -41551,16 +41592,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41551
41592
|
key: "addToBasket",
|
|
41552
41593
|
value: function () {
|
|
41553
41594
|
var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(actBasket) {
|
|
41554
|
-
var _this$
|
|
41555
|
-
_this$actions33,
|
|
41556
|
-
_this$actions34,
|
|
41595
|
+
var _this$actions34,
|
|
41557
41596
|
_this$actions35,
|
|
41558
41597
|
_this$actions36,
|
|
41559
|
-
_this$divaBasketHandl3,
|
|
41560
|
-
_this3 = this,
|
|
41561
41598
|
_this$actions37,
|
|
41562
41599
|
_this$actions38,
|
|
41563
|
-
_this$
|
|
41600
|
+
_this$divaBasketHandl3,
|
|
41601
|
+
_this3 = this,
|
|
41602
|
+
_this$actions39,
|
|
41603
|
+
_this$actions40,
|
|
41604
|
+
_this$actions41;
|
|
41564
41605
|
var event,
|
|
41565
41606
|
addToBasketLog,
|
|
41566
41607
|
emailConfig,
|
|
@@ -41580,35 +41621,35 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41580
41621
|
break;
|
|
41581
41622
|
case 5:
|
|
41582
41623
|
this.handleSuccessTransaction('onPrintBasket', actBasket);
|
|
41583
|
-
(_this$
|
|
41624
|
+
(_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.onEvent({
|
|
41584
41625
|
type: 'onWebPlanerPrint',
|
|
41585
41626
|
data: actBasket.getAsJson()
|
|
41586
41627
|
});
|
|
41587
41628
|
return _context29.abrupt("break", 38);
|
|
41588
41629
|
case 8:
|
|
41589
41630
|
this.handleSuccessTransaction('onSaveBasket', actBasket);
|
|
41590
|
-
(_this$
|
|
41631
|
+
(_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
|
|
41591
41632
|
type: 'onWebPlanerSave',
|
|
41592
41633
|
data: actBasket.getAsJson()
|
|
41593
41634
|
});
|
|
41594
41635
|
return _context29.abrupt("break", 38);
|
|
41595
41636
|
case 11:
|
|
41596
41637
|
this.handleSuccessTransaction('onShareBasket', actBasket);
|
|
41597
|
-
(_this$
|
|
41638
|
+
(_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
|
|
41598
41639
|
type: 'onWebPlanerShare',
|
|
41599
41640
|
data: actBasket.getAsJson()
|
|
41600
41641
|
});
|
|
41601
41642
|
return _context29.abrupt("break", 38);
|
|
41602
41643
|
case 14:
|
|
41603
41644
|
this.handleSuccessTransaction('onRequestConsulation', actBasket);
|
|
41604
|
-
(_this$
|
|
41645
|
+
(_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
|
|
41605
41646
|
type: 'onRequestConsulation',
|
|
41606
41647
|
data: actBasket.getAsJson()
|
|
41607
41648
|
});
|
|
41608
41649
|
return _context29.abrupt("break", 38);
|
|
41609
41650
|
case 17:
|
|
41610
41651
|
this.handleSuccessTransaction('onSave', actBasket);
|
|
41611
|
-
(_this$
|
|
41652
|
+
(_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
|
|
41612
41653
|
type: 'onSave',
|
|
41613
41654
|
data: actBasket.getAsJson()
|
|
41614
41655
|
});
|
|
@@ -41644,7 +41685,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41644
41685
|
});
|
|
41645
41686
|
this.handleSuccessTransaction('onSendEmail', actBasket);
|
|
41646
41687
|
}
|
|
41647
|
-
(_this$
|
|
41688
|
+
(_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
|
|
41648
41689
|
type: 'onAddToBasket',
|
|
41649
41690
|
data: actBasket.getAsJson()
|
|
41650
41691
|
});
|
|
@@ -41656,7 +41697,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41656
41697
|
case 28:
|
|
41657
41698
|
products = _context29.sent;
|
|
41658
41699
|
this.handleSuccessTransaction('onSaveProduct', actBasket);
|
|
41659
|
-
(_this$
|
|
41700
|
+
(_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
|
|
41660
41701
|
type: 'onAddToBasket',
|
|
41661
41702
|
data: actBasket.getAsJson()
|
|
41662
41703
|
});
|
|
@@ -41670,7 +41711,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41670
41711
|
addToBasketLog = false;
|
|
41671
41712
|
case 35:
|
|
41672
41713
|
if (addToBasketLog) this.handleSuccessTransaction('onAddToBasket', actBasket);
|
|
41673
|
-
(_this$
|
|
41714
|
+
(_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
|
|
41674
41715
|
type: 'onAddToBasket',
|
|
41675
41716
|
data: actBasket.getAsJson()
|
|
41676
41717
|
});
|
|
@@ -41702,8 +41743,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41702
41743
|
}, {
|
|
41703
41744
|
key: "openPDFpostAsEvent",
|
|
41704
41745
|
value: function openPDFpostAsEvent(mongoDBId) {
|
|
41705
|
-
var _this$
|
|
41706
|
-
(_this$
|
|
41746
|
+
var _this$actions42, _this$actions43, _this$actions44;
|
|
41747
|
+
(_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.updateBreadcrumbs({
|
|
41707
41748
|
type: 'update',
|
|
41708
41749
|
param: {
|
|
41709
41750
|
groupId: 'SHOWROOM',
|
|
@@ -41717,7 +41758,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41717
41758
|
}
|
|
41718
41759
|
}
|
|
41719
41760
|
});
|
|
41720
|
-
(_this$
|
|
41761
|
+
(_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.updateBreadcrumbs({
|
|
41721
41762
|
type: 'update',
|
|
41722
41763
|
param: {
|
|
41723
41764
|
groupId: 'SHOWROOM',
|
|
@@ -41731,7 +41772,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41731
41772
|
}
|
|
41732
41773
|
}
|
|
41733
41774
|
});
|
|
41734
|
-
(_this$
|
|
41775
|
+
(_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.openComponent({
|
|
41735
41776
|
type: 'REPORT',
|
|
41736
41777
|
parameters: {
|
|
41737
41778
|
id: mongoDBId
|
|
@@ -41951,14 +41992,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41951
41992
|
}, {
|
|
41952
41993
|
key: "subscribeToWebPlannerEvents",
|
|
41953
41994
|
value: function subscribeToWebPlannerEvents() {
|
|
41954
|
-
var _this$
|
|
41955
|
-
(_this$
|
|
41995
|
+
var _this$actions45;
|
|
41996
|
+
(_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.subscribeEvents(this.addToBasketEventFunction);
|
|
41956
41997
|
}
|
|
41957
41998
|
}, {
|
|
41958
41999
|
key: "unsubscribeFromWebPlannerEvents",
|
|
41959
42000
|
value: function unsubscribeFromWebPlannerEvents() {
|
|
41960
|
-
var _this$
|
|
41961
|
-
(_this$
|
|
42001
|
+
var _this$actions46;
|
|
42002
|
+
(_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.unSubscribeEvents(this.addToBasketEventFunction);
|
|
41962
42003
|
}
|
|
41963
42004
|
}, {
|
|
41964
42005
|
key: "initApiForLogicOnly",
|