@crystaldesign/web-planner-logic 24.13.0-beta.12 → 24.13.0-beta.14
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-df030103.js → DivaBoxPlanner-62ae8c3d.js} +80 -6
- package/build/cjs/{DivaStandardPlanner-ec161f05.js → DivaStandardPlanner-e431ce7c.js} +14 -3
- package/build/cjs/{DoorPlanner-d649d3e0.js → DoorPlanner-33299e6b.js} +1 -1
- package/build/cjs/{Host3DSignalR-4ff8a82c.js → Host3DSignalR-694281ef.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-8b969a35.js → LiviqueWWSHandler-00e56666.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-67f6f800.js → PfisterWWSHandler-6a249328.js} +1 -1
- package/build/cjs/{PlannerHandler2D-2123a819.js → PlannerHandler2D-d92d10ba.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-cecca329.js → SeriousBasketHandler-05b6c560.js} +1 -1
- package/build/cjs/{ShelfPlanner-1f6c17bd.js → ShelfPlanner-1f0ad013.js} +1 -1
- package/build/cjs/{StandardWWSHandler-84c14168.js → StandardWWSHandler-a69ee926.js} +1 -1
- package/build/cjs/{index-55163fb5.js → index-fc87bc19.js} +280 -163
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-c5f19be3.js → DivaBoxPlanner-ef40824e.js} +80 -6
- package/build/esm/{DivaStandardPlanner-b5403631.js → DivaStandardPlanner-cb2a20dd.js} +14 -3
- package/build/esm/{DoorPlanner-53e38ab9.js → DoorPlanner-530f2474.js} +1 -1
- package/build/esm/{Host3DSignalR-be8b605a.js → Host3DSignalR-8006f253.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-d88c02c3.js → LiviqueWWSHandler-8f2e906e.js} +1 -1
- package/build/esm/{PfisterWWSHandler-5458c5ab.js → PfisterWWSHandler-f7d8d811.js} +1 -1
- package/build/esm/{PlannerHandler2D-61827907.js → PlannerHandler2D-171e3246.js} +1 -1
- package/build/esm/{SeriousBasketHandler-d4db882d.js → SeriousBasketHandler-10891b7b.js} +1 -1
- package/build/esm/{ShelfPlanner-2ea25ecc.js → ShelfPlanner-c6f81e51.js} +1 -1
- package/build/esm/{StandardWWSHandler-5391f27a.js → StandardWWSHandler-e270d54d.js} +1 -1
- package/build/esm/{index-d51f7edd.js → index-afab35d7.js} +280 -163
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +3 -0
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Basket/BasketEvent.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/Basket/BasketEvent.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Configuration.d.ts +2 -2
- package/build/types/web-planner-logic/src/interface/Configuration.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +0 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/IDivaPlanner.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Planner/IDivaPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts +2 -4
- package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +6 -5
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts +13 -0
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts +5 -0
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts +7 -0
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +6 -0
- 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 +6 -0
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Product/DivaProductHandler.d.ts +5 -0
- package/build/types/web-planner-logic/src/logic/Product/DivaProductHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +3 -0
- 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.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/FavoritesHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts +2 -0
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts +2 -0
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -883,8 +883,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
883
883
|
return '/v1/products/' + productId + '/list';
|
|
884
884
|
}
|
|
885
885
|
}, {
|
|
886
|
-
key: "
|
|
887
|
-
value: function
|
|
886
|
+
key: "getProductByKeyValueUrl",
|
|
887
|
+
value: function getProductByKeyValueUrl(key, value) {
|
|
888
888
|
return "/v1/products/basket?key=".concat(key, "&value=").concat(value);
|
|
889
889
|
}
|
|
890
890
|
}, {
|
|
@@ -1597,6 +1597,16 @@ var ArticleOptionData = /*#__PURE__*/function () {
|
|
|
1597
1597
|
get: function get() {
|
|
1598
1598
|
return this.opt.catalogOPT.contentItemId;
|
|
1599
1599
|
}
|
|
1600
|
+
}, {
|
|
1601
|
+
key: "showSearchbar",
|
|
1602
|
+
get: function get() {
|
|
1603
|
+
return this.opt.catalogOPT.showSearchbar;
|
|
1604
|
+
}
|
|
1605
|
+
}, {
|
|
1606
|
+
key: "showFilter",
|
|
1607
|
+
get: function get() {
|
|
1608
|
+
return this.opt.catalogOPT.showFilter;
|
|
1609
|
+
}
|
|
1600
1610
|
}, {
|
|
1601
1611
|
key: "pdfUrl",
|
|
1602
1612
|
get: function get() {
|
|
@@ -17830,6 +17840,12 @@ var OptionCatalogData = /*#__PURE__*/function () {
|
|
|
17830
17840
|
case 'INFO_URL':
|
|
17831
17841
|
this.opt.url = prop.Value;
|
|
17832
17842
|
break;
|
|
17843
|
+
case 'SHOW_SEARCHBAR':
|
|
17844
|
+
this.opt.showSearchbar = prop.Value;
|
|
17845
|
+
break;
|
|
17846
|
+
case 'SHOW_FILTER':
|
|
17847
|
+
this.opt.showFilter = prop.Value;
|
|
17848
|
+
break;
|
|
17833
17849
|
case 'INFO_PDF':
|
|
17834
17850
|
this.opt.pdfUrl = prop.Value;
|
|
17835
17851
|
break;
|
|
@@ -18030,6 +18046,16 @@ var OptionCatalogData = /*#__PURE__*/function () {
|
|
|
18030
18046
|
get: function get() {
|
|
18031
18047
|
return this.opt.url;
|
|
18032
18048
|
}
|
|
18049
|
+
}, {
|
|
18050
|
+
key: "showSearchbar",
|
|
18051
|
+
get: function get() {
|
|
18052
|
+
return this.opt.showSearchbar;
|
|
18053
|
+
}
|
|
18054
|
+
}, {
|
|
18055
|
+
key: "showFilter",
|
|
18056
|
+
get: function get() {
|
|
18057
|
+
return this.opt.showFilter;
|
|
18058
|
+
}
|
|
18033
18059
|
}, {
|
|
18034
18060
|
key: "pdfUrl",
|
|
18035
18061
|
get: function get() {
|
|
@@ -18126,7 +18152,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18126
18152
|
brandName: json.Brandname,
|
|
18127
18153
|
mediaUrl: '',
|
|
18128
18154
|
// https://retail.diva-portal.de/files/33/9680c4a3-fc60-4541-8738-4859d9b24e9d/";
|
|
18129
|
-
imageBaseUrl: '',
|
|
18130
18155
|
subFolder: json.SubFolder,
|
|
18131
18156
|
longDescription: json.LongDescription,
|
|
18132
18157
|
longDescription_locales: json.LongDescription_locales,
|
|
@@ -18328,9 +18353,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18328
18353
|
key: "getMediaURL",
|
|
18329
18354
|
value: function getMediaURL(subFolder) {
|
|
18330
18355
|
var retval = '';
|
|
18331
|
-
if (this.
|
|
18332
|
-
retval = this.catalogData.imageBaseUrl;
|
|
18333
|
-
} else if (this.api.getBaseUrl().substring(0, 4) == 'http') {
|
|
18356
|
+
if (this.api.getBaseUrl().substring(0, 4) == 'http') {
|
|
18334
18357
|
retval = this.api.getBaseUrl() + '/' + this.api.getServerId() + '/';
|
|
18335
18358
|
}
|
|
18336
18359
|
if (subFolder != '') retval += subFolder + '/';
|
|
@@ -23561,7 +23584,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23561
23584
|
break;
|
|
23562
23585
|
}
|
|
23563
23586
|
_context.next = 4;
|
|
23564
|
-
return import('./ShelfPlanner-
|
|
23587
|
+
return import('./ShelfPlanner-c6f81e51.js');
|
|
23565
23588
|
case 4:
|
|
23566
23589
|
_yield$import = _context.sent;
|
|
23567
23590
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -26904,6 +26927,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
26904
26927
|
_defineProperty(this, "setId", void 0);
|
|
26905
26928
|
_defineProperty(this, "_isActSet", false);
|
|
26906
26929
|
_defineProperty(this, "setData", void 0);
|
|
26930
|
+
_defineProperty(this, "_onlyCalcVariants", void 0);
|
|
26907
26931
|
_defineProperty(this, "divaArticles", void 0);
|
|
26908
26932
|
//Schlüssel ist basketId
|
|
26909
26933
|
_defineProperty(this, "configSingleData", void 0);
|
|
@@ -28093,7 +28117,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
28093
28117
|
break;
|
|
28094
28118
|
}
|
|
28095
28119
|
_context4.next = 3;
|
|
28096
|
-
return import('./DoorPlanner-
|
|
28120
|
+
return import('./DoorPlanner-530f2474.js');
|
|
28097
28121
|
case 3:
|
|
28098
28122
|
_yield$import = _context4.sent;
|
|
28099
28123
|
DoorPlanner = _yield$import["default"];
|
|
@@ -28158,6 +28182,14 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
28158
28182
|
get: function get() {
|
|
28159
28183
|
return this.setState;
|
|
28160
28184
|
}
|
|
28185
|
+
}, {
|
|
28186
|
+
key: "onlyCalcVariants",
|
|
28187
|
+
get: function get() {
|
|
28188
|
+
return this._onlyCalcVariants;
|
|
28189
|
+
},
|
|
28190
|
+
set: function set(val) {
|
|
28191
|
+
this._onlyCalcVariants = val;
|
|
28192
|
+
}
|
|
28161
28193
|
|
|
28162
28194
|
/**
|
|
28163
28195
|
*
|
|
@@ -29598,7 +29630,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
29598
29630
|
key: "getValidVariants",
|
|
29599
29631
|
value: function () {
|
|
29600
29632
|
var _getValidVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(set, useCache) {
|
|
29601
|
-
var allvariants, validVariants, i;
|
|
29633
|
+
var allvariants, validVariants, i, _set$onlyCalcVariants;
|
|
29602
29634
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
|
29603
29635
|
while (1) switch (_context4.prev = _context4.next) {
|
|
29604
29636
|
case 0:
|
|
@@ -29619,7 +29651,9 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
29619
29651
|
validVariants = [];
|
|
29620
29652
|
for (i = 0; i < allvariants.length; i++) {
|
|
29621
29653
|
if (!set.disabledVariants.includes(allvariants[i].id)) {
|
|
29622
|
-
|
|
29654
|
+
if (!((_set$onlyCalcVariants = set.onlyCalcVariants) !== null && _set$onlyCalcVariants !== void 0 && _set$onlyCalcVariants.length) || set.onlyCalcVariants.includes(allvariants[i].id)) {
|
|
29655
|
+
validVariants.push(allvariants[i]);
|
|
29656
|
+
}
|
|
29623
29657
|
}
|
|
29624
29658
|
}
|
|
29625
29659
|
return _context4.abrupt("return", validVariants);
|
|
@@ -30724,6 +30758,34 @@ var DivaProductHandler = /*#__PURE__*/function () {
|
|
|
30724
30758
|
}
|
|
30725
30759
|
return updateProducts;
|
|
30726
30760
|
}()
|
|
30761
|
+
}, {
|
|
30762
|
+
key: "getBestMatch",
|
|
30763
|
+
value: function getBestMatch(articles, products) {
|
|
30764
|
+
var OPTION_CODEX = 'KOPFTEIL';
|
|
30765
|
+
if (!articles) return;
|
|
30766
|
+
for (var key in articles) {
|
|
30767
|
+
var _article$VariantValue;
|
|
30768
|
+
var article = articles[key];
|
|
30769
|
+
var opv = (_article$VariantValue = article.VariantValues['OPT' + OPTION_CODEX]) === null || _article$VariantValue === void 0 ? void 0 : _article$VariantValue.replace('OPV', '');
|
|
30770
|
+
if (!products || !opv) continue;
|
|
30771
|
+
for (var i = 0; i < products.length; i++) {
|
|
30772
|
+
var _products$i$affiliate;
|
|
30773
|
+
if ((_products$i$affiliate = products[i].affiliate) !== null && _products$i$affiliate !== void 0 && _products$i$affiliate.length) if (this.findOPVCodexInVariantValues(products[i], OPTION_CODEX, opv)) {
|
|
30774
|
+
return products[i];
|
|
30775
|
+
}
|
|
30776
|
+
}
|
|
30777
|
+
}
|
|
30778
|
+
return undefined;
|
|
30779
|
+
}
|
|
30780
|
+
}, {
|
|
30781
|
+
key: "findOPVCodexInVariantValues",
|
|
30782
|
+
value: function findOPVCodexInVariantValues(product, opt, opv) {
|
|
30783
|
+
return product.articles.find(function (article) {
|
|
30784
|
+
return article.variantValues.find(function (variant) {
|
|
30785
|
+
return variant.OPT === opt && variant.OPV === opv;
|
|
30786
|
+
});
|
|
30787
|
+
});
|
|
30788
|
+
}
|
|
30727
30789
|
}]);
|
|
30728
30790
|
}();
|
|
30729
30791
|
var productHandlerInstance = new DivaProductHandler();
|
|
@@ -31699,8 +31761,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31699
31761
|
key: "deleteElementFromSet",
|
|
31700
31762
|
value: function () {
|
|
31701
31763
|
var _deleteElementFromSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(set, article, autoCorrectAVL_AVR, deletionType, dontReload) {
|
|
31702
|
-
var _deletedArticle$doorP, _set$CatalogData;
|
|
31703
|
-
var setId, deletedArticle, articles, key, newSelectedElement, oldTransform, result, _set$getArticleByBask3, elementDeleted;
|
|
31764
|
+
var setId, allElementsToDelete, success, newSelectedElement, i, _deletedArticle$doorP, _set$CatalogData, deletedArticle, articles, key, oldTransform, result, _set$getArticleByBask3;
|
|
31704
31765
|
return _regeneratorRuntime.wrap(function _callee14$(_context16) {
|
|
31705
31766
|
while (1) switch (_context16.prev = _context16.next) {
|
|
31706
31767
|
case 0:
|
|
@@ -31715,35 +31776,44 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31715
31776
|
setId: setId
|
|
31716
31777
|
});
|
|
31717
31778
|
case 3:
|
|
31779
|
+
allElementsToDelete = set.plannerHandler.getPlannerElementsInfluencedByDeletion(setId, article.elementId);
|
|
31780
|
+
success = false;
|
|
31781
|
+
newSelectedElement = undefined;
|
|
31782
|
+
i = 0;
|
|
31783
|
+
case 7:
|
|
31784
|
+
if (!(i < allElementsToDelete.length)) {
|
|
31785
|
+
_context16.next = 35;
|
|
31786
|
+
break;
|
|
31787
|
+
}
|
|
31788
|
+
article = set.getArticleByElementId(allElementsToDelete[i]);
|
|
31718
31789
|
deletedArticle = article; //accessoires löschen
|
|
31719
31790
|
articles = set.getAccessoiresOfBasketId(article.basketId);
|
|
31720
31791
|
_context16.t0 = _regeneratorRuntime.keys(articles);
|
|
31721
|
-
case
|
|
31792
|
+
case 12:
|
|
31722
31793
|
if ((_context16.t1 = _context16.t0()).done) {
|
|
31723
|
-
_context16.next =
|
|
31794
|
+
_context16.next = 18;
|
|
31724
31795
|
break;
|
|
31725
31796
|
}
|
|
31726
31797
|
key = _context16.t1.value;
|
|
31727
|
-
_context16.next =
|
|
31798
|
+
_context16.next = 16;
|
|
31728
31799
|
return this.deleteElementFromSet(set, articles[key]);
|
|
31729
|
-
case
|
|
31730
|
-
_context16.next =
|
|
31800
|
+
case 16:
|
|
31801
|
+
_context16.next = 12;
|
|
31731
31802
|
break;
|
|
31732
|
-
case
|
|
31733
|
-
newSelectedElement = undefined;
|
|
31803
|
+
case 18:
|
|
31734
31804
|
oldTransform = undefined;
|
|
31735
31805
|
if (deletedArticle) deletedArticle.deleted = true;
|
|
31736
31806
|
if (!(deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.hasCatalogPlannerArticle)) {
|
|
31737
|
-
_context16.next =
|
|
31807
|
+
_context16.next = 26;
|
|
31738
31808
|
break;
|
|
31739
31809
|
}
|
|
31740
|
-
_context16.next =
|
|
31810
|
+
_context16.next = 23;
|
|
31741
31811
|
return set.plannerHandler.deletePlannerElement(setId, deletedArticle.elementId, autoCorrectAVL_AVR, deletionType);
|
|
31742
|
-
case
|
|
31812
|
+
case 23:
|
|
31743
31813
|
result = _context16.sent;
|
|
31744
31814
|
newSelectedElement = result.newElementToSelect;
|
|
31745
31815
|
oldTransform = result.transform;
|
|
31746
|
-
case
|
|
31816
|
+
case 26:
|
|
31747
31817
|
//falls ein Accessoire gelöscht wurde wird das Accessoire auch wo es beim Parent hinterlegt war auch gelöscht
|
|
31748
31818
|
if (deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.relatedToBasketId) {
|
|
31749
31819
|
(_set$getArticleByBask3 = set.getArticleByBasketId(deletedArticle.relatedToBasketId)) === null || _set$getArticleByBask3 === void 0 || _set$getArticleByBask3.removeAccessoire(deletedArticle.basketId);
|
|
@@ -31751,21 +31821,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31751
31821
|
|
|
31752
31822
|
//doorplanner resetted
|
|
31753
31823
|
deletedArticle === null || deletedArticle === void 0 || (_deletedArticle$doorP = deletedArticle.doorPlanner) === null || _deletedArticle$doorP === void 0 || _deletedArticle$doorP.deleteElement(deletedArticle.basketId);
|
|
31754
|
-
|
|
31824
|
+
success = set.deleteArticle(article.basketId);
|
|
31755
31825
|
if (!((set.CatalogData.bundleRules || set.CatalogData.reconfigAfterArticleDocked || set !== null && set !== void 0 && (_set$CatalogData = set.CatalogData) !== null && _set$CatalogData !== void 0 && _set$CatalogData.getOption('OPTLASTSTACKEDARTICLE')) && !dontReload)) {
|
|
31756
|
-
_context16.next =
|
|
31826
|
+
_context16.next = 32;
|
|
31757
31827
|
break;
|
|
31758
31828
|
}
|
|
31759
|
-
_context16.next =
|
|
31829
|
+
_context16.next = 32;
|
|
31760
31830
|
return this.updateArticlesOptionStatesOfActSet(set, {}, []);
|
|
31761
|
-
case
|
|
31831
|
+
case 32:
|
|
31832
|
+
i++;
|
|
31833
|
+
_context16.next = 7;
|
|
31834
|
+
break;
|
|
31835
|
+
case 35:
|
|
31762
31836
|
return _context16.abrupt("return", {
|
|
31763
|
-
success:
|
|
31837
|
+
success: success,
|
|
31764
31838
|
selectElementId: newSelectedElement,
|
|
31765
31839
|
setId: setId,
|
|
31766
31840
|
oldTransform: oldTransform
|
|
31767
31841
|
});
|
|
31768
|
-
case
|
|
31842
|
+
case 36:
|
|
31769
31843
|
case "end":
|
|
31770
31844
|
return _context16.stop();
|
|
31771
31845
|
}
|
|
@@ -32548,7 +32622,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32548
32622
|
value: (function () {
|
|
32549
32623
|
var _variantsEvaluator = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(set, configItems, configStepKey, paletteType) {
|
|
32550
32624
|
var _set$ViewConfig, _configItems$;
|
|
32551
|
-
var opt, calcVariantsForPricePreview, previewType, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
|
|
32625
|
+
var opt, calcVariantsForPricePreview, previewType, _set$api$ReturnToFrom, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
|
|
32552
32626
|
return _regeneratorRuntime.wrap(function _callee23$(_context25) {
|
|
32553
32627
|
while (1) switch (_context25.prev = _context25.next) {
|
|
32554
32628
|
case 0:
|
|
@@ -32562,7 +32636,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32562
32636
|
calcVariantsForPricePreview = false;
|
|
32563
32637
|
previewType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.pricePreview;
|
|
32564
32638
|
if (previewType) {
|
|
32565
|
-
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));
|
|
32639
|
+
calcVariantsForPricePreview = !set.dontCalcPricePreviewDueToPerformanceIssues && !((_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR')) && !opt.showOnSeparatTabgroup && (!((_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length) || set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex));
|
|
32566
32640
|
}
|
|
32567
32641
|
if (set.PlannerMode === 'BoxPlanner') calcVariantsForPricePreview = false;
|
|
32568
32642
|
if (paletteType == 'GAL' && ((_configItems$ = configItems[0]) === null || _configItems$ === void 0 ? void 0 : _configItems$.groupName) === undefined || paletteType == 'TEXTBOX' || paletteType == 'NUMBERBOX' || paletteType == 'RANGE') {
|
|
@@ -34052,7 +34126,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34052
34126
|
key: "initProductId",
|
|
34053
34127
|
value: function () {
|
|
34054
34128
|
var _initProductId = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(api, productId) {
|
|
34055
|
-
var result;
|
|
34129
|
+
var result, successful;
|
|
34056
34130
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
34057
34131
|
while (1) switch (_context2.prev = _context2.next) {
|
|
34058
34132
|
case 0:
|
|
@@ -34064,10 +34138,17 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34064
34138
|
_context2.next = 6;
|
|
34065
34139
|
return this.initBasket(api, result.divaNr, {
|
|
34066
34140
|
basket: result.configuration
|
|
34067
|
-
}, false);
|
|
34141
|
+
}, false, productId);
|
|
34068
34142
|
case 6:
|
|
34069
|
-
|
|
34070
|
-
|
|
34143
|
+
successful = _context2.sent;
|
|
34144
|
+
if (!successful) {
|
|
34145
|
+
_context2.next = 9;
|
|
34146
|
+
break;
|
|
34147
|
+
}
|
|
34148
|
+
return _context2.abrupt("return", result);
|
|
34149
|
+
case 9:
|
|
34150
|
+
return _context2.abrupt("return", false);
|
|
34151
|
+
case 10:
|
|
34071
34152
|
case "end":
|
|
34072
34153
|
return _context2.stop();
|
|
34073
34154
|
}
|
|
@@ -34414,7 +34495,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34414
34495
|
case 0:
|
|
34415
34496
|
_context8.prev = 0;
|
|
34416
34497
|
_context8.next = 3;
|
|
34417
|
-
return api.getDataCache(api.
|
|
34498
|
+
return api.getDataCache(api.getProductByKeyValueUrl(key, productId), undefined, undefined, 'catalog', 'POST', {
|
|
34418
34499
|
fields: fields !== null && fields !== void 0 && fields.length ? fields : undefined
|
|
34419
34500
|
});
|
|
34420
34501
|
case 3:
|
|
@@ -34747,7 +34828,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34747
34828
|
break;
|
|
34748
34829
|
case 3:
|
|
34749
34830
|
_context12.next = 5;
|
|
34750
|
-
return import('./PfisterWWSHandler-
|
|
34831
|
+
return import('./PfisterWWSHandler-f7d8d811.js');
|
|
34751
34832
|
case 5:
|
|
34752
34833
|
_yield$import = _context12.sent;
|
|
34753
34834
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -34755,7 +34836,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34755
34836
|
return _context12.abrupt("break", 27);
|
|
34756
34837
|
case 9:
|
|
34757
34838
|
_context12.next = 11;
|
|
34758
|
-
return import('./LiviqueWWSHandler-
|
|
34839
|
+
return import('./LiviqueWWSHandler-8f2e906e.js');
|
|
34759
34840
|
case 11:
|
|
34760
34841
|
_yield$import2 = _context12.sent;
|
|
34761
34842
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -34763,7 +34844,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34763
34844
|
return _context12.abrupt("break", 27);
|
|
34764
34845
|
case 15:
|
|
34765
34846
|
_context12.next = 17;
|
|
34766
|
-
return import('./SeriousBasketHandler-
|
|
34847
|
+
return import('./SeriousBasketHandler-10891b7b.js');
|
|
34767
34848
|
case 17:
|
|
34768
34849
|
_yield$import3 = _context12.sent;
|
|
34769
34850
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -34771,7 +34852,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34771
34852
|
return _context12.abrupt("break", 27);
|
|
34772
34853
|
case 21:
|
|
34773
34854
|
_context12.next = 23;
|
|
34774
|
-
return import('./StandardWWSHandler-
|
|
34855
|
+
return import('./StandardWWSHandler-e270d54d.js');
|
|
34775
34856
|
case 23:
|
|
34776
34857
|
_yield$import4 = _context12.sent;
|
|
34777
34858
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -36161,7 +36242,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36161
36242
|
while (1) switch (_context3.prev = _context3.next) {
|
|
36162
36243
|
case 0:
|
|
36163
36244
|
_context3.next = 2;
|
|
36164
|
-
return import('./Host3DSignalR-
|
|
36245
|
+
return import('./Host3DSignalR-8006f253.js');
|
|
36165
36246
|
case 2:
|
|
36166
36247
|
_yield$import = _context3.sent;
|
|
36167
36248
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -37516,7 +37597,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37516
37597
|
this.plannerHandlerFunctions = plannerHandlerFunctions;
|
|
37517
37598
|
diva3dServerUrl = initSetState.api.get3DServerUrl();
|
|
37518
37599
|
divaMediaServiceUrl = initSetState.api.getDivaMediaServiceUrl();
|
|
37519
|
-
mediaServiceApiKey = initSetState.api.getDivaMediaServiceApiKey(); //renderGroup = 'LeaTest';
|
|
37600
|
+
mediaServiceApiKey = initSetState.api.getDivaMediaServiceApiKey(); // renderGroup = 'LeaTest';
|
|
37520
37601
|
//diva3dServerUrl = "https://test-einkauf-onboarding.pfister.ch/diva3d/diva3dhost2/";
|
|
37521
37602
|
// diva3dServerUrl = "https://diva3dhost.diva-portal.com/diva3d/diva3dhost2/";
|
|
37522
37603
|
//diva3dServerUrl = 'https://localhost:44315/';
|
|
@@ -37713,7 +37794,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37713
37794
|
break;
|
|
37714
37795
|
case 8:
|
|
37715
37796
|
_context4.next = 10;
|
|
37716
|
-
return import('./DivaStandardPlanner-
|
|
37797
|
+
return import('./DivaStandardPlanner-cb2a20dd.js');
|
|
37717
37798
|
case 10:
|
|
37718
37799
|
_yield$import = _context4.sent;
|
|
37719
37800
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -37724,7 +37805,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37724
37805
|
return _context4.abrupt("break", 21);
|
|
37725
37806
|
case 15:
|
|
37726
37807
|
_context4.next = 17;
|
|
37727
|
-
return import('./DivaBoxPlanner-
|
|
37808
|
+
return import('./DivaBoxPlanner-ef40824e.js');
|
|
37728
37809
|
case 17:
|
|
37729
37810
|
_yield$import2 = _context4.sent;
|
|
37730
37811
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -38340,6 +38421,20 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38340
38421
|
return this.plannerList.get(setId).getPlannerElementsInfluencedByCopy(elementId, copyInfo);
|
|
38341
38422
|
}
|
|
38342
38423
|
|
|
38424
|
+
/**
|
|
38425
|
+
* This function gets all Elements that are deleted when deleting one element.
|
|
38426
|
+
* @param setId
|
|
38427
|
+
* @param elementId
|
|
38428
|
+
*/
|
|
38429
|
+
}, {
|
|
38430
|
+
key: "getPlannerElementsInfluencedByDeletion",
|
|
38431
|
+
value: function getPlannerElementsInfluencedByDeletion(setId, elementId) {
|
|
38432
|
+
if (!this.plannerList.has(setId)) {
|
|
38433
|
+
return [];
|
|
38434
|
+
}
|
|
38435
|
+
return this.plannerList.get(setId).getPlannerElementsInfluencedByDeletion(elementId);
|
|
38436
|
+
}
|
|
38437
|
+
|
|
38343
38438
|
/**
|
|
38344
38439
|
* This function is used to copy an element in the planner
|
|
38345
38440
|
* @param setId
|
|
@@ -40401,76 +40496,90 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40401
40496
|
key: "saveToBasketWrapper",
|
|
40402
40497
|
value: function () {
|
|
40403
40498
|
var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(event, repairOnly, force) {
|
|
40404
|
-
var _this$
|
|
40405
|
-
_this$actions25$toggl,
|
|
40406
|
-
_this$actions26,
|
|
40499
|
+
var _this$actions26,
|
|
40407
40500
|
_this$actions26$toggl,
|
|
40501
|
+
_this$actions27,
|
|
40502
|
+
_this$actions27$toggl,
|
|
40408
40503
|
_this2 = this,
|
|
40409
|
-
_this$
|
|
40504
|
+
_this$actions31,
|
|
40410
40505
|
_this$i18n14;
|
|
40411
|
-
var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, result, _this$
|
|
40506
|
+
var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, _this$actions25, result, _this$actions28, _this$i18n8, _this$i18n9, _this$actions29, _this$i18n10, _this$i18n11, _this$actions30, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
|
|
40412
40507
|
return _regeneratorRuntime.wrap(function _callee25$(_context25) {
|
|
40413
40508
|
while (1) switch (_context25.prev = _context25.next) {
|
|
40414
40509
|
case 0:
|
|
40415
40510
|
returnTo = this.getReturnTo(event);
|
|
40416
|
-
finalEvent =
|
|
40511
|
+
finalEvent = {
|
|
40512
|
+
event: event,
|
|
40513
|
+
saveBasket: true
|
|
40514
|
+
};
|
|
40417
40515
|
if (!(returnTo == 'OPEN_LEAFLET_BARRIER')) {
|
|
40418
|
-
_context25.next =
|
|
40516
|
+
_context25.next = 21;
|
|
40419
40517
|
break;
|
|
40420
40518
|
}
|
|
40421
40519
|
product = undefined;
|
|
40422
40520
|
if (!((_this$api$getBarrierC = this.api.getBarrierConfig()) !== null && _this$api$getBarrierC !== void 0 && _this$api$getBarrierC.affiliate)) {
|
|
40423
|
-
_context25.next =
|
|
40521
|
+
_context25.next = 10;
|
|
40424
40522
|
break;
|
|
40425
40523
|
}
|
|
40426
|
-
|
|
40427
|
-
|
|
40428
|
-
|
|
40429
|
-
_context25.sent;
|
|
40524
|
+
url = this.api.getCatalogProductUrl(this.actSet().getCatalogCodex());
|
|
40525
|
+
_context25.next = 8;
|
|
40526
|
+
return this.api.getDataCache(url, url, undefined, 'catalog');
|
|
40430
40527
|
case 8:
|
|
40431
|
-
|
|
40432
|
-
|
|
40528
|
+
_result = _context25.sent;
|
|
40529
|
+
product = productHandlerInstance.getBestMatch((_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getDivaArticles(), _result);
|
|
40433
40530
|
case 10:
|
|
40531
|
+
_context25.next = 12;
|
|
40532
|
+
return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
|
|
40533
|
+
case 12:
|
|
40434
40534
|
finalEvent = _context25.sent;
|
|
40435
40535
|
if (finalEvent) {
|
|
40436
|
-
_context25.next =
|
|
40536
|
+
_context25.next = 17;
|
|
40437
40537
|
break;
|
|
40438
40538
|
}
|
|
40439
40539
|
return _context25.abrupt("return", 'canceled');
|
|
40440
|
-
case 13:
|
|
40441
|
-
returnTo = finalEvent == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
|
|
40442
|
-
case 14:
|
|
40443
|
-
(_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);
|
|
40444
|
-
_context25.next = 17;
|
|
40445
|
-
return this.saveToBasket(finalEvent, repairOnly, force);
|
|
40446
40540
|
case 17:
|
|
40541
|
+
if (!(!finalEvent.saveBasket && finalEvent.event)) {
|
|
40542
|
+
_context25.next = 20;
|
|
40543
|
+
break;
|
|
40544
|
+
}
|
|
40545
|
+
(_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
|
|
40546
|
+
type: finalEvent.event
|
|
40547
|
+
});
|
|
40548
|
+
return _context25.abrupt("return", 'canceled');
|
|
40549
|
+
case 20:
|
|
40550
|
+
returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
|
|
40551
|
+
case 21:
|
|
40552
|
+
(_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, true);
|
|
40553
|
+
_context25.next = 24;
|
|
40554
|
+
return this.saveToBasket(finalEvent.event, repairOnly, force);
|
|
40555
|
+
case 24:
|
|
40447
40556
|
result = _context25.sent;
|
|
40448
|
-
(_this$
|
|
40557
|
+
(_this$actions27 = this.actions) === null || _this$actions27 === void 0 || (_this$actions27$toggl = _this$actions27.toggleLoading) === null || _this$actions27$toggl === void 0 || _this$actions27$toggl.call(_this$actions27, 'Planner_Saving', false, false);
|
|
40449
40558
|
if (!(result === 'canceled')) {
|
|
40450
|
-
_context25.next =
|
|
40559
|
+
_context25.next = 30;
|
|
40451
40560
|
break;
|
|
40452
40561
|
}
|
|
40453
40562
|
LOG$1.error(new DivaError('failed to save Basket'));
|
|
40454
|
-
(_this$
|
|
40563
|
+
(_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
|
|
40455
40564
|
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() : '',
|
|
40456
40565
|
accept: true
|
|
40457
40566
|
});
|
|
40458
40567
|
return _context25.abrupt("return", result);
|
|
40459
|
-
case
|
|
40568
|
+
case 30:
|
|
40460
40569
|
_context25.t0 = returnTo;
|
|
40461
|
-
_context25.next = _context25.t0 === 'OPEN_PDF' ?
|
|
40570
|
+
_context25.next = _context25.t0 === 'OPEN_PDF' ? 33 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : 36;
|
|
40462
40571
|
break;
|
|
40463
|
-
case
|
|
40572
|
+
case 33:
|
|
40464
40573
|
if (!this.getBasket().PDFDocumentURL) {
|
|
40465
40574
|
LOG$1.error(new DivaError('PDF url is missing in basket', {
|
|
40466
40575
|
code: 'WC_0010'
|
|
40467
40576
|
}));
|
|
40468
|
-
(_this$
|
|
40577
|
+
(_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
|
|
40469
40578
|
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() : '',
|
|
40470
40579
|
accept: true
|
|
40471
40580
|
});
|
|
40472
40581
|
} else {
|
|
40473
|
-
(_this$
|
|
40582
|
+
(_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
|
|
40474
40583
|
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'),
|
|
40475
40584
|
accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
|
|
40476
40585
|
callback: function callback() {
|
|
@@ -40478,22 +40587,22 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40478
40587
|
}
|
|
40479
40588
|
});
|
|
40480
40589
|
}
|
|
40481
|
-
return _context25.abrupt("break",
|
|
40482
|
-
case
|
|
40483
|
-
(_this$
|
|
40590
|
+
return _context25.abrupt("break", 36);
|
|
40591
|
+
case 35:
|
|
40592
|
+
(_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
|
|
40484
40593
|
text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
|
|
40485
40594
|
accept: true
|
|
40486
40595
|
});
|
|
40487
|
-
case
|
|
40596
|
+
case 36:
|
|
40488
40597
|
if (!(result == 'noArticleToSave')) {
|
|
40489
|
-
_context25.next =
|
|
40598
|
+
_context25.next = 39;
|
|
40490
40599
|
break;
|
|
40491
40600
|
}
|
|
40492
40601
|
(_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
|
|
40493
40602
|
return _context25.abrupt("return", 'canceled');
|
|
40494
|
-
case
|
|
40603
|
+
case 39:
|
|
40495
40604
|
return _context25.abrupt("return", result);
|
|
40496
|
-
case
|
|
40605
|
+
case 40:
|
|
40497
40606
|
case "end":
|
|
40498
40607
|
return _context25.stop();
|
|
40499
40608
|
}
|
|
@@ -40508,7 +40617,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40508
40617
|
key: "saveToBasket",
|
|
40509
40618
|
value: function () {
|
|
40510
40619
|
var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
|
|
40511
|
-
var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$
|
|
40620
|
+
var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34;
|
|
40512
40621
|
var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, _event4, product;
|
|
40513
40622
|
return _regeneratorRuntime.wrap(function _callee26$(_context26) {
|
|
40514
40623
|
while (1) switch (_context26.prev = _context26.next) {
|
|
@@ -40580,8 +40689,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40580
40689
|
_context26.next = _context26.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 30 : _context26.t3 === 'OPEN_SELLER_BASKET' ? 33 : _context26.t3 === 'OPEN_PDF' ? 35 : _context26.t3 === 'SAVE_BASKET_WITH_MODAL' ? 35 : _context26.t3 === 'SAVE_BASKET' ? 35 : _context26.t3 === 'SAVE_BASKET_SYNC' ? 35 : _context26.t3 === 'OPEN_LEAFLET_BARRIER' ? 35 : 55;
|
|
40581
40690
|
break;
|
|
40582
40691
|
case 30:
|
|
40583
|
-
(_this$
|
|
40584
|
-
(_this$
|
|
40692
|
+
(_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.toggleLoading('buildScene', false, false);
|
|
40693
|
+
(_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
|
|
40585
40694
|
type: 'SELLER',
|
|
40586
40695
|
parameters: {
|
|
40587
40696
|
module: 'PCreator',
|
|
@@ -40593,7 +40702,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40593
40702
|
});
|
|
40594
40703
|
return _context26.abrupt("break", 55);
|
|
40595
40704
|
case 33:
|
|
40596
|
-
(_this$
|
|
40705
|
+
(_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
|
|
40597
40706
|
type: 'SELLER',
|
|
40598
40707
|
parameters: {
|
|
40599
40708
|
module: 'Basket',
|
|
@@ -40647,12 +40756,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40647
40756
|
return _context26.abrupt("break", 55);
|
|
40648
40757
|
case 55:
|
|
40649
40758
|
if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
|
|
40650
|
-
|
|
40759
|
+
actBasket = this.divaBasketHandler.getBasketData(actBasket.DivaNr); //get pdf documenturl from saved basket
|
|
40760
|
+
_context26.next = 59;
|
|
40651
40761
|
return this.addToBasket(actBasket, event);
|
|
40652
|
-
case
|
|
40762
|
+
case 59:
|
|
40653
40763
|
product = _context26.sent;
|
|
40654
40764
|
return _context26.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
|
|
40655
|
-
case
|
|
40765
|
+
case 61:
|
|
40656
40766
|
case "end":
|
|
40657
40767
|
return _context26.stop();
|
|
40658
40768
|
}
|
|
@@ -40707,8 +40817,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40707
40817
|
|
|
40708
40818
|
//if planner is hidden by config but nothing is planned initially
|
|
40709
40819
|
if (plannerType === 'NONE') {
|
|
40710
|
-
var _this$plannerConfig$a7, _this$
|
|
40711
|
-
if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a7 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a7 !== void 0 && _this$plannerConfig$a7.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$
|
|
40820
|
+
var _this$plannerConfig$a7, _this$actSet10;
|
|
40821
|
+
if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a7 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a7 !== void 0 && _this$plannerConfig$a7.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet10 = this.actSet()) !== null && _this$actSet10 !== void 0 && (_this$actSet10 = _this$actSet10.CatalogData.startPlannerArticle) !== null && _this$actSet10 !== void 0 && _this$actSet10.length)) {
|
|
40712
40822
|
plannerType = 'PLANNER';
|
|
40713
40823
|
}
|
|
40714
40824
|
}
|
|
@@ -40748,38 +40858,38 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40748
40858
|
}, {
|
|
40749
40859
|
key: "getCurCatalogCodex",
|
|
40750
40860
|
value: function getCurCatalogCodex() {
|
|
40751
|
-
var _this$
|
|
40752
|
-
return (_this$
|
|
40861
|
+
var _this$actSet11;
|
|
40862
|
+
return (_this$actSet11 = this.actSet()) === null || _this$actSet11 === void 0 ? void 0 : _this$actSet11.getCatalogCodex();
|
|
40753
40863
|
}
|
|
40754
40864
|
}, {
|
|
40755
40865
|
key: "getCurCatalogName",
|
|
40756
40866
|
value: function getCurCatalogName() {
|
|
40757
|
-
var _this$
|
|
40758
|
-
return (_this$
|
|
40867
|
+
var _this$actSet12;
|
|
40868
|
+
return (_this$actSet12 = this.actSet()) === null || _this$actSet12 === void 0 ? void 0 : _this$actSet12.getCatalogName();
|
|
40759
40869
|
}
|
|
40760
40870
|
}, {
|
|
40761
40871
|
key: "getCurAccountName",
|
|
40762
40872
|
value: function getCurAccountName() {
|
|
40763
|
-
var _this$
|
|
40764
|
-
return (_this$
|
|
40873
|
+
var _this$actSet13;
|
|
40874
|
+
return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getAccountName();
|
|
40765
40875
|
}
|
|
40766
40876
|
}, {
|
|
40767
40877
|
key: "getCurSupplierGuid",
|
|
40768
40878
|
value: function getCurSupplierGuid() {
|
|
40769
|
-
var _this$
|
|
40770
|
-
return (_this$
|
|
40879
|
+
var _this$actSet14;
|
|
40880
|
+
return (_this$actSet14 = this.actSet()) === null || _this$actSet14 === void 0 ? void 0 : _this$actSet14.getSupplierGuid();
|
|
40771
40881
|
}
|
|
40772
40882
|
}, {
|
|
40773
40883
|
key: "getCurSetPrice",
|
|
40774
40884
|
value: function getCurSetPrice() {
|
|
40775
|
-
var _this$actSet$getSetPr, _this$
|
|
40776
|
-
return (_this$actSet$getSetPr = (_this$
|
|
40885
|
+
var _this$actSet$getSetPr, _this$actSet15;
|
|
40886
|
+
return (_this$actSet$getSetPr = (_this$actSet15 = this.actSet()) === null || _this$actSet15 === void 0 ? void 0 : _this$actSet15.getSetPrice()) !== null && _this$actSet$getSetPr !== void 0 ? _this$actSet$getSetPr : 0;
|
|
40777
40887
|
}
|
|
40778
40888
|
}, {
|
|
40779
40889
|
key: "getCurImageMode",
|
|
40780
40890
|
value: function getCurImageMode() {
|
|
40781
|
-
var _this$
|
|
40782
|
-
return (_this$
|
|
40891
|
+
var _this$actSet16;
|
|
40892
|
+
return (_this$actSet16 = this.actSet()) !== null && _this$actSet16 !== void 0 && (_this$actSet16 = _this$actSet16.CatalogData) !== null && _this$actSet16 !== void 0 && _this$actSet16.has3dModels ? '3D' : '2D';
|
|
40783
40893
|
}
|
|
40784
40894
|
}, {
|
|
40785
40895
|
key: "getViewConfig",
|
|
@@ -40810,65 +40920,65 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40810
40920
|
}, {
|
|
40811
40921
|
key: "doShow3DDimensionLines",
|
|
40812
40922
|
value: function doShow3DDimensionLines() {
|
|
40813
|
-
var _this$
|
|
40814
|
-
return (_this$
|
|
40923
|
+
var _this$actSet17;
|
|
40924
|
+
return (_this$actSet17 = this.actSet()) === null || _this$actSet17 === void 0 || (_this$actSet17 = _this$actSet17.CatalogData) === null || _this$actSet17 === void 0 ? void 0 : _this$actSet17.doShow3DDimensionLines;
|
|
40815
40925
|
}
|
|
40816
40926
|
}, {
|
|
40817
40927
|
key: "hidePlannerUiIcons",
|
|
40818
40928
|
value: function hidePlannerUiIcons() {
|
|
40819
|
-
var _this$
|
|
40820
|
-
return (_this$
|
|
40929
|
+
var _this$actSet18;
|
|
40930
|
+
return (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 || (_this$actSet18 = _this$actSet18.CatalogData) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.hidePlannerUiIcons;
|
|
40821
40931
|
}
|
|
40822
40932
|
}, {
|
|
40823
40933
|
key: "doShowPlannerReplaceMode",
|
|
40824
40934
|
value: function doShowPlannerReplaceMode() {
|
|
40825
|
-
var _this$
|
|
40826
|
-
var catalogData = (_this$
|
|
40935
|
+
var _this$actSet19, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
|
|
40936
|
+
var catalogData = (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.CatalogData;
|
|
40827
40937
|
return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.replaceModeActive) && ((_this$api$getViewConf2 = this.api.getViewConfig()) === null || _this$api$getViewConf2 === void 0 ? void 0 : _this$api$getViewConf2.showReplaceFunctionInPlanner) && Object.entries(catalogData.allCatalogPlannerArticles).length > 1 && Object.entries((_catalogData$PlannerP = (_catalogData$PlannerP2 = catalogData.PlannerPaletteViewInfo) === null || _catalogData$PlannerP2 === void 0 ? void 0 : _catalogData$PlannerP2.catalogPlannerArticles) !== null && _catalogData$PlannerP !== void 0 ? _catalogData$PlannerP : {}).length > 1;
|
|
40828
40938
|
}
|
|
40829
40939
|
}, {
|
|
40830
40940
|
key: "doPlannerReplaceAutoSwitch",
|
|
40831
40941
|
value: function doPlannerReplaceAutoSwitch() {
|
|
40832
|
-
var _this$
|
|
40833
|
-
var catalogData = (_this$
|
|
40942
|
+
var _this$actSet20, _this$api$getViewConf3;
|
|
40943
|
+
var catalogData = (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.CatalogData;
|
|
40834
40944
|
return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.catalogPlannsCompletely) && this.doShowPlannerReplaceMode() && ((_this$api$getViewConf3 = this.api.getViewConfig()) === null || _this$api$getViewConf3 === void 0 ? void 0 : _this$api$getViewConf3.allowAutoSwitchInReplaceFunctionInPlanner);
|
|
40835
40945
|
}
|
|
40836
40946
|
}, {
|
|
40837
40947
|
key: "getHidePlanner",
|
|
40838
40948
|
value: function getHidePlanner() {
|
|
40839
|
-
var _this$
|
|
40840
|
-
return this.api.getHidePlanner() || !!((_this$
|
|
40949
|
+
var _this$actSet21;
|
|
40950
|
+
return this.api.getHidePlanner() || !!((_this$actSet21 = this.actSet()) !== null && _this$actSet21 !== void 0 && _this$actSet21.CatalogData.useBoxPlanner);
|
|
40841
40951
|
}
|
|
40842
40952
|
}, {
|
|
40843
40953
|
key: "getAllowRTV",
|
|
40844
40954
|
value: function getAllowRTV() {
|
|
40845
|
-
var _this$
|
|
40955
|
+
var _this$actSet22, _this$actSet23;
|
|
40846
40956
|
if (this.getEnableUnityRtvKombi()) return false;
|
|
40847
40957
|
if (this.api.forceShowRTV()) return true;
|
|
40848
|
-
if ((_this$
|
|
40849
|
-
if (this.api.getDoShowRTV() && (_this$
|
|
40958
|
+
if ((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaForceRTV) return true;
|
|
40959
|
+
if (this.api.getDoShowRTV() && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
|
|
40850
40960
|
return false;
|
|
40851
40961
|
}
|
|
40852
40962
|
}, {
|
|
40853
40963
|
key: "geAllowQRCodeAR",
|
|
40854
40964
|
value: function geAllowQRCodeAR() {
|
|
40855
|
-
var _this$
|
|
40856
|
-
if (this.api.getDoShowAR() && (_this$
|
|
40965
|
+
var _this$actSet24;
|
|
40966
|
+
if (this.api.getDoShowAR() && (_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaArReady) return true;
|
|
40857
40967
|
return false;
|
|
40858
40968
|
}
|
|
40859
40969
|
}, {
|
|
40860
40970
|
key: "getEnableUnityRtvKombi",
|
|
40861
40971
|
value: function getEnableUnityRtvKombi() {
|
|
40862
|
-
var _this$
|
|
40972
|
+
var _this$actSet25, _this$actSet26;
|
|
40863
40973
|
// if force rtv disable unity kombi - biohort
|
|
40864
|
-
if ((_this$
|
|
40865
|
-
return ((_this$
|
|
40974
|
+
if ((_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.divaForceRTV) return false;
|
|
40975
|
+
return ((_this$actSet26 = this.actSet()) === null || _this$actSet26 === void 0 ? void 0 : _this$actSet26.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
|
|
40866
40976
|
}
|
|
40867
40977
|
}, {
|
|
40868
40978
|
key: "getShelfPlannerRTV",
|
|
40869
40979
|
value: function getShelfPlannerRTV() {
|
|
40870
|
-
var _this$
|
|
40871
|
-
return (_this$
|
|
40980
|
+
var _this$actSet27;
|
|
40981
|
+
return (_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData.useShelfPlannerRTV;
|
|
40872
40982
|
}
|
|
40873
40983
|
}, {
|
|
40874
40984
|
key: "getBasketData",
|
|
@@ -40909,8 +41019,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40909
41019
|
}, {
|
|
40910
41020
|
key: "getCatalogData",
|
|
40911
41021
|
value: function getCatalogData() {
|
|
40912
|
-
var _this$
|
|
40913
|
-
return (_this$
|
|
41022
|
+
var _this$actSet28;
|
|
41023
|
+
return (_this$actSet28 = this.actSet()) === null || _this$actSet28 === void 0 ? void 0 : _this$actSet28.CatalogData;
|
|
40914
41024
|
}
|
|
40915
41025
|
}, {
|
|
40916
41026
|
key: "ReturnTo",
|
|
@@ -40926,16 +41036,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40926
41036
|
key: "addToBasket",
|
|
40927
41037
|
value: function () {
|
|
40928
41038
|
var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(actBasket) {
|
|
40929
|
-
var _this$
|
|
40930
|
-
_this$actions35,
|
|
41039
|
+
var _this$actions35,
|
|
40931
41040
|
_this$actions36,
|
|
40932
41041
|
_this$actions37,
|
|
40933
41042
|
_this$actions38,
|
|
41043
|
+
_this$actions39,
|
|
40934
41044
|
_this$divaBasketHandl3,
|
|
40935
41045
|
_this3 = this,
|
|
40936
|
-
_this$actions39,
|
|
40937
41046
|
_this$actions40,
|
|
40938
|
-
_this$actions41
|
|
41047
|
+
_this$actions41,
|
|
41048
|
+
_this$actions42,
|
|
41049
|
+
_this$actions43;
|
|
40939
41050
|
var event,
|
|
40940
41051
|
addToBasketLog,
|
|
40941
41052
|
emailConfig,
|
|
@@ -40951,43 +41062,43 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40951
41062
|
event = _args28.length > 1 && _args28[1] !== undefined ? _args28[1] : 'onAddToBasket';
|
|
40952
41063
|
addToBasketLog = true;
|
|
40953
41064
|
_context28.t0 = event;
|
|
40954
|
-
_context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 8 : _context28.t0 === 'onWebPlanerShare' ? 11 : _context28.t0 === 'onRequestConsulation' ? 14 : _context28.t0 === 'onSave' ? 17 : _context28.t0 === 'onSendEmail' ? 20 : _context28.t0 === 'onSaveProduct' ? 25 : _context28.t0 === 'dontSaveBasket' ? 33 : _context28.t0 === 'onAddToBasket' ? 35 :
|
|
41065
|
+
_context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 8 : _context28.t0 === 'onWebPlanerShare' ? 11 : _context28.t0 === 'onRequestConsulation' ? 14 : _context28.t0 === 'onSave' ? 17 : _context28.t0 === 'onSendEmail' ? 20 : _context28.t0 === 'onSaveProduct' ? 25 : _context28.t0 === 'dontSaveBasket' ? 33 : _context28.t0 === 'onAddToBasket' ? 35 : 38;
|
|
40955
41066
|
break;
|
|
40956
41067
|
case 5:
|
|
40957
41068
|
this.handleSuccessTransaction('onPrintBasket', actBasket);
|
|
40958
|
-
(_this$
|
|
41069
|
+
(_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
|
|
40959
41070
|
type: 'onWebPlanerPrint',
|
|
40960
41071
|
data: actBasket.getAsJson()
|
|
40961
41072
|
});
|
|
40962
|
-
return _context28.abrupt("break",
|
|
41073
|
+
return _context28.abrupt("break", 40);
|
|
40963
41074
|
case 8:
|
|
40964
41075
|
this.handleSuccessTransaction('onSaveBasket', actBasket);
|
|
40965
|
-
(_this$
|
|
41076
|
+
(_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
|
|
40966
41077
|
type: 'onWebPlanerSave',
|
|
40967
41078
|
data: actBasket.getAsJson()
|
|
40968
41079
|
});
|
|
40969
|
-
return _context28.abrupt("break",
|
|
41080
|
+
return _context28.abrupt("break", 40);
|
|
40970
41081
|
case 11:
|
|
40971
41082
|
this.handleSuccessTransaction('onShareBasket', actBasket);
|
|
40972
|
-
(_this$
|
|
41083
|
+
(_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
|
|
40973
41084
|
type: 'onWebPlanerShare',
|
|
40974
41085
|
data: actBasket.getAsJson()
|
|
40975
41086
|
});
|
|
40976
|
-
return _context28.abrupt("break",
|
|
41087
|
+
return _context28.abrupt("break", 40);
|
|
40977
41088
|
case 14:
|
|
40978
41089
|
this.handleSuccessTransaction('onRequestConsulation', actBasket);
|
|
40979
|
-
(_this$
|
|
41090
|
+
(_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
|
|
40980
41091
|
type: 'onRequestConsulation',
|
|
40981
41092
|
data: actBasket.getAsJson()
|
|
40982
41093
|
});
|
|
40983
|
-
return _context28.abrupt("break",
|
|
41094
|
+
return _context28.abrupt("break", 40);
|
|
40984
41095
|
case 17:
|
|
40985
41096
|
this.handleSuccessTransaction('onSave', actBasket);
|
|
40986
|
-
(_this$
|
|
41097
|
+
(_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
|
|
40987
41098
|
type: 'onSave',
|
|
40988
41099
|
data: actBasket.getAsJson()
|
|
40989
41100
|
});
|
|
40990
|
-
return _context28.abrupt("break",
|
|
41101
|
+
return _context28.abrupt("break", 40);
|
|
40991
41102
|
case 20:
|
|
40992
41103
|
emailConfig = (_this$divaBasketHandl3 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl3 !== void 0 ? _this$divaBasketHandl3 : this.getEmailConfig(); //reset the emailConfig
|
|
40993
41104
|
this.divaBasketHandler.emailConfig = undefined;
|
|
@@ -41019,11 +41130,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41019
41130
|
});
|
|
41020
41131
|
this.handleSuccessTransaction('onSendEmail', actBasket);
|
|
41021
41132
|
}
|
|
41022
|
-
(_this$
|
|
41133
|
+
(_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
|
|
41023
41134
|
type: 'onAddToBasket',
|
|
41024
41135
|
data: actBasket.getAsJson()
|
|
41025
41136
|
});
|
|
41026
|
-
return _context28.abrupt("break",
|
|
41137
|
+
return _context28.abrupt("break", 40);
|
|
41027
41138
|
case 25:
|
|
41028
41139
|
this.actSet().CatalogData;
|
|
41029
41140
|
_context28.next = 28;
|
|
@@ -41031,7 +41142,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41031
41142
|
case 28:
|
|
41032
41143
|
products = _context28.sent;
|
|
41033
41144
|
this.handleSuccessTransaction('onSaveProduct', actBasket);
|
|
41034
|
-
(_this$
|
|
41145
|
+
(_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
|
|
41035
41146
|
type: 'onAddToBasket',
|
|
41036
41147
|
data: actBasket.getAsJson()
|
|
41037
41148
|
});
|
|
@@ -41045,14 +41156,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41045
41156
|
addToBasketLog = false;
|
|
41046
41157
|
case 35:
|
|
41047
41158
|
if (addToBasketLog) this.handleSuccessTransaction('onAddToBasket', actBasket);
|
|
41048
|
-
(_this$
|
|
41159
|
+
(_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
|
|
41049
41160
|
type: 'onAddToBasket',
|
|
41050
41161
|
data: actBasket.getAsJson()
|
|
41051
41162
|
});
|
|
41052
|
-
return _context28.abrupt("break",
|
|
41163
|
+
return _context28.abrupt("break", 40);
|
|
41053
41164
|
case 38:
|
|
41165
|
+
(_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
|
|
41166
|
+
type: event,
|
|
41167
|
+
data: actBasket.getAsJson()
|
|
41168
|
+
});
|
|
41169
|
+
return _context28.abrupt("break", 40);
|
|
41170
|
+
case 40:
|
|
41054
41171
|
return _context28.abrupt("return");
|
|
41055
|
-
case
|
|
41172
|
+
case 41:
|
|
41056
41173
|
case "end":
|
|
41057
41174
|
return _context28.stop();
|
|
41058
41175
|
}
|
|
@@ -41077,8 +41194,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41077
41194
|
}, {
|
|
41078
41195
|
key: "openPDFpostAsEvent",
|
|
41079
41196
|
value: function openPDFpostAsEvent(mongoDBId) {
|
|
41080
|
-
var _this$
|
|
41081
|
-
(_this$
|
|
41197
|
+
var _this$actions44, _this$actions45, _this$actions46;
|
|
41198
|
+
(_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.updateBreadcrumbs({
|
|
41082
41199
|
type: 'update',
|
|
41083
41200
|
param: {
|
|
41084
41201
|
groupId: 'SHOWROOM',
|
|
@@ -41092,7 +41209,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41092
41209
|
}
|
|
41093
41210
|
}
|
|
41094
41211
|
});
|
|
41095
|
-
(_this$
|
|
41212
|
+
(_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
|
|
41096
41213
|
type: 'update',
|
|
41097
41214
|
param: {
|
|
41098
41215
|
groupId: 'SHOWROOM',
|
|
@@ -41106,7 +41223,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41106
41223
|
}
|
|
41107
41224
|
}
|
|
41108
41225
|
});
|
|
41109
|
-
(_this$
|
|
41226
|
+
(_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.openComponent({
|
|
41110
41227
|
type: 'REPORT',
|
|
41111
41228
|
parameters: {
|
|
41112
41229
|
id: mongoDBId
|
|
@@ -41326,14 +41443,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41326
41443
|
}, {
|
|
41327
41444
|
key: "subscribeToWebPlannerEvents",
|
|
41328
41445
|
value: function subscribeToWebPlannerEvents() {
|
|
41329
|
-
var _this$
|
|
41330
|
-
(_this$
|
|
41446
|
+
var _this$actions47;
|
|
41447
|
+
(_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.subscribeEvents(this.addToBasketEventFunction);
|
|
41331
41448
|
}
|
|
41332
41449
|
}, {
|
|
41333
41450
|
key: "unsubscribeFromWebPlannerEvents",
|
|
41334
41451
|
value: function unsubscribeFromWebPlannerEvents() {
|
|
41335
|
-
var _this$
|
|
41336
|
-
(_this$
|
|
41452
|
+
var _this$actions48;
|
|
41453
|
+
(_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.unSubscribeEvents(this.addToBasketEventFunction);
|
|
41337
41454
|
}
|
|
41338
41455
|
}, {
|
|
41339
41456
|
key: "initApiForLogicOnly",
|
|
@@ -41401,7 +41518,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41401
41518
|
}, {
|
|
41402
41519
|
key: "initBasket",
|
|
41403
41520
|
value: function () {
|
|
41404
|
-
var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites) {
|
|
41521
|
+
var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites, onlyCalcVariants) {
|
|
41405
41522
|
var _initSetState$api$web2;
|
|
41406
41523
|
var initSetState, sets, result, _sets$, set, basket;
|
|
41407
41524
|
return _regeneratorRuntime.wrap(function _callee31$(_context31) {
|
|
@@ -41430,28 +41547,28 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41430
41547
|
(_sets$ = sets[0]) === null || _sets$ === void 0 || _sets$.remindPriceForHash(result);
|
|
41431
41548
|
}
|
|
41432
41549
|
case 12:
|
|
41433
|
-
//TODO: GLOBAL STUFF
|
|
41434
41550
|
set = this.actSet();
|
|
41551
|
+
if (set) set.onlyCalcVariants = onlyCalcVariants;
|
|
41435
41552
|
setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
|
|
41436
41553
|
if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
|
|
41437
|
-
_context31.next =
|
|
41554
|
+
_context31.next = 18;
|
|
41438
41555
|
break;
|
|
41439
41556
|
}
|
|
41440
|
-
_context31.next =
|
|
41557
|
+
_context31.next = 18;
|
|
41441
41558
|
return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
|
|
41442
|
-
case
|
|
41443
|
-
_context31.next =
|
|
41559
|
+
case 18:
|
|
41560
|
+
_context31.next = 20;
|
|
41444
41561
|
return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
|
|
41445
|
-
case
|
|
41562
|
+
case 20:
|
|
41446
41563
|
basket = _context31.sent;
|
|
41447
41564
|
return _context31.abrupt("return", basket);
|
|
41448
|
-
case
|
|
41565
|
+
case 22:
|
|
41449
41566
|
case "end":
|
|
41450
41567
|
return _context31.stop();
|
|
41451
41568
|
}
|
|
41452
41569
|
}, _callee31, this);
|
|
41453
41570
|
}));
|
|
41454
|
-
function initBasket(_x78, _x79) {
|
|
41571
|
+
function initBasket(_x78, _x79, _x80) {
|
|
41455
41572
|
return _initBasket.apply(this, arguments);
|
|
41456
41573
|
}
|
|
41457
41574
|
return initBasket;
|
|
@@ -41528,7 +41645,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41528
41645
|
}
|
|
41529
41646
|
}, _callee33, this);
|
|
41530
41647
|
}));
|
|
41531
|
-
function handleFavorites(
|
|
41648
|
+
function handleFavorites(_x81) {
|
|
41532
41649
|
return _handleFavorites.apply(this, arguments);
|
|
41533
41650
|
}
|
|
41534
41651
|
return handleFavorites;
|
|
@@ -41582,7 +41699,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41582
41699
|
}
|
|
41583
41700
|
}, _callee34, this);
|
|
41584
41701
|
}));
|
|
41585
|
-
function initSapOrderLinesFromBasket(
|
|
41702
|
+
function initSapOrderLinesFromBasket(_x82, _x83, _x84) {
|
|
41586
41703
|
return _initSapOrderLinesFromBasket.apply(this, arguments);
|
|
41587
41704
|
}
|
|
41588
41705
|
return initSapOrderLinesFromBasket;
|