@crystaldesign/web-planner-logic 25.5.0-beta.15 → 25.5.0-beta.17
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-ff2f986d.js → DivaBoxPlanner-73fddb22.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-8a59d409.js → DivaStandardPlanner-e159ffdf.js} +2 -2
- package/build/cjs/{DoorPlanner-92d2ed33.js → DoorPlanner-38260fda.js} +1 -1
- package/build/cjs/{Host3DSignalR-7500feb2.js → Host3DSignalR-1321ba3e.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-f00e2d17.js → LiviqueWWSHandler-4e042067.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-3e73d208.js → PfisterWWSHandler-03ac6c45.js} +1 -1
- package/build/cjs/{PlannerHandler2D-30779985.js → PlannerHandler2D-8da042a7.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-f479a822.js → SeriousBasketHandler-d6fabfed.js} +1 -1
- package/build/cjs/{ShelfPlanner-2d0d06a1.js → ShelfPlanner-8bf6edf8.js} +2 -1
- package/build/cjs/{StandardWWSHandler-65e8119d.js → StandardWWSHandler-c8991704.js} +1 -1
- package/build/cjs/{index-f1b2d3e6.js → index-68678e41.js} +190 -147
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-4e37b1d1.js → DivaBoxPlanner-e46cdeb2.js} +2 -2
- package/build/esm/{DivaStandardPlanner-078f2241.js → DivaStandardPlanner-328685f2.js} +2 -2
- package/build/esm/{DoorPlanner-f41a1c57.js → DoorPlanner-9763ad19.js} +1 -1
- package/build/esm/{Host3DSignalR-bf39ea03.js → Host3DSignalR-6530f4d6.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-5f14a49b.js → LiviqueWWSHandler-851c7845.js} +1 -1
- package/build/esm/{PfisterWWSHandler-90aae195.js → PfisterWWSHandler-d764fc01.js} +1 -1
- package/build/esm/{PlannerHandler2D-3768f78a.js → PlannerHandler2D-2617f1b1.js} +1 -1
- package/build/esm/{SeriousBasketHandler-322c3f3d.js → SeriousBasketHandler-5b9717fa.js} +1 -1
- package/build/esm/{ShelfPlanner-19bba8dc.js → ShelfPlanner-c42aa862.js} +2 -1
- package/build/esm/{StandardWWSHandler-343896c6.js → StandardWWSHandler-edf6baad.js} +1 -1
- package/build/esm/{index-fc6438e1.js → index-1eb3af5e.js} +190 -147
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts +4 -1
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/ShelfAccessoiresView.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/ShelfAccessoiresView.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +1 -0
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/CatalogPlannerArticleData.d.ts +1 -0
- package/build/types/web-planner-logic/src/model/Articles/CatalogPlannerArticleData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1015,7 +1015,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1015
1015
|
value: function getIDMItems(catalogId, serieId, typeNos) {
|
|
1016
1016
|
return '/live/v3.0/catalogs/' + catalogId + '/series/' + serieId + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
|
|
1017
1017
|
return encodeURIComponent('typeNo==' + t);
|
|
1018
|
-
}).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber');
|
|
1018
|
+
}).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;detailInfos;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber');
|
|
1019
1019
|
}
|
|
1020
1020
|
}, {
|
|
1021
1021
|
key: "getIDMItem",
|
|
@@ -1619,6 +1619,11 @@ var CatalogPlannerArticleData = /*#__PURE__*/function () {
|
|
|
1619
1619
|
get: function get() {
|
|
1620
1620
|
return this.catPlanArt.articleCodex;
|
|
1621
1621
|
}
|
|
1622
|
+
}, {
|
|
1623
|
+
key: "longDescription",
|
|
1624
|
+
get: function get() {
|
|
1625
|
+
return this.catPlanArt.catalogArticle.longDescription;
|
|
1626
|
+
}
|
|
1622
1627
|
}, {
|
|
1623
1628
|
key: "svgs",
|
|
1624
1629
|
get: function get() {
|
|
@@ -17587,6 +17592,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17587
17592
|
articleCodex: catPlanArticle.codex,
|
|
17588
17593
|
catalogCodex: catalogData.catalogCodex,
|
|
17589
17594
|
title: title,
|
|
17595
|
+
longDescription: catPlanArticle.longDescription,
|
|
17590
17596
|
width: catPlanArticle.articleSizeX,
|
|
17591
17597
|
height: catPlanArticle.articleSizeZ,
|
|
17592
17598
|
depth: catPlanArticle.articleSizeY,
|
|
@@ -17647,6 +17653,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17647
17653
|
articleCodex: catPlanArticle.codex,
|
|
17648
17654
|
catalogCodex: catalogData.catalogCodex,
|
|
17649
17655
|
title: title,
|
|
17656
|
+
longDescription: catPlanArticle.longDescription,
|
|
17650
17657
|
width: catPlanArticle.articleSizeX,
|
|
17651
17658
|
height: catPlanArticle.articleSizeZ,
|
|
17652
17659
|
depth: catPlanArticle.articleSizeY,
|
|
@@ -18550,6 +18557,7 @@ function initArticleRelations(articleRelations, catalogArticleData, catalog) {
|
|
|
18550
18557
|
price: !catalog.dontShowBasePrice ? (_myAcc$BasePrice = myAcc.BasePrice) !== null && _myAcc$BasePrice !== void 0 ? _myAcc$BasePrice : catalogArticleData.articlePrice : 0,
|
|
18551
18558
|
articleCodex: myAcc.Codex,
|
|
18552
18559
|
catalogCodex: myAcc.CatalogCodex,
|
|
18560
|
+
longDescription: myAcc.longDescription,
|
|
18553
18561
|
positionGroupNr: myAcc.PositionGroupNr,
|
|
18554
18562
|
typeNr: _catalogArticle.typeNr,
|
|
18555
18563
|
image: _catalogArticle.image ? catalog.getCatImageURL(_catalogArticle.image, '') : undefined,
|
|
@@ -19503,7 +19511,7 @@ function initIDMArticles(jsonItems, catalogData) {
|
|
|
19503
19511
|
}
|
|
19504
19512
|
}
|
|
19505
19513
|
function getCatalogArticle(article, catalogData) {
|
|
19506
|
-
var _catalogData$catalogM, _articleMask$name, _articleMask$properti, _article$weightNetto, _article$detailInfos, _article$detailInfos2;
|
|
19514
|
+
var _catalogData$catalogM, _ref, _articleMask$name, _article$fullText, _article$fullText2, _article$shortText, _articleMask$properti, _article$weightNetto, _article$detailInfos, _article$detailInfos2, _articleMask$groupnam, _articleMask$groupnam2;
|
|
19507
19515
|
var articleMask = (_catalogData$catalogM = catalogData.catalogMask) === null || _catalogData$catalogM === void 0 || (_catalogData$catalogM = _catalogData$catalogM.articles) === null || _catalogData$catalogM === void 0 ? void 0 : _catalogData$catalogM[article.typeNo];
|
|
19508
19516
|
var lang = catalogData.api.getLanguageLowercase();
|
|
19509
19517
|
var featureProperties = convertProperties(article.properties, lang, 'featureNos');
|
|
@@ -19526,11 +19534,11 @@ function getCatalogArticle(article, catalogData) {
|
|
|
19526
19534
|
hasArticleRelations: false,
|
|
19527
19535
|
hasPartlistArticle: !!article.partListRef,
|
|
19528
19536
|
hasType1Dependencies: false,
|
|
19529
|
-
name: DivaUtils.getLocals((_articleMask$name = articleMask === null || articleMask === void 0 ? void 0 : articleMask.name) !== null && _articleMask$name !== void 0 ? _articleMask$name : article.fullText, lang),
|
|
19530
|
-
longDescription: DivaUtils.getLocals(article.fullText, lang),
|
|
19531
|
-
longDescription_locales: article.fullText,
|
|
19537
|
+
name: DivaUtils.getLocals((_ref = (_articleMask$name = articleMask === null || articleMask === void 0 ? void 0 : articleMask.name) !== null && _articleMask$name !== void 0 ? _articleMask$name : article.shortText) !== null && _ref !== void 0 ? _ref : article.fullText, lang),
|
|
19538
|
+
longDescription: DivaUtils.getLocals((_article$fullText = article.fullText) !== null && _article$fullText !== void 0 ? _article$fullText : article.shortText, lang),
|
|
19539
|
+
longDescription_locales: (_article$fullText2 = article.fullText) !== null && _article$fullText2 !== void 0 ? _article$fullText2 : article.shortText,
|
|
19532
19540
|
isHidden: !!(articleMask !== null && articleMask !== void 0 && articleMask.hidden),
|
|
19533
|
-
origName: DivaUtils.getLocals(article.fullText, lang),
|
|
19541
|
+
origName: DivaUtils.getLocals((_article$shortText = article.shortText) !== null && _article$shortText !== void 0 ? _article$shortText : article.fullText, lang),
|
|
19534
19542
|
properties: [].concat(_toConsumableArray(convertProperties(article.properties, lang)), _toConsumableArray((_articleMask$properti = articleMask === null || articleMask === void 0 ? void 0 : articleMask.properties) !== null && _articleMask$properti !== void 0 ? _articleMask$properti : [])),
|
|
19535
19543
|
optionProperties: optionProperties,
|
|
19536
19544
|
featureProperties: featureProperties,
|
|
@@ -19562,12 +19570,12 @@ function getCatalogArticle(article, catalogData) {
|
|
|
19562
19570
|
url: d.url,
|
|
19563
19571
|
detailInfoNo: d.detailInfoNo
|
|
19564
19572
|
};
|
|
19565
|
-
})
|
|
19573
|
+
}),
|
|
19574
|
+
groupName: (_articleMask$groupnam = articleMask === null || articleMask === void 0 || (_articleMask$groupnam2 = articleMask.groupname) === null || _articleMask$groupnam2 === void 0 ? void 0 : _articleMask$groupnam2[catalogData.api.getLanguage()]) !== null && _articleMask$groupnam !== void 0 ? _articleMask$groupnam : article.typeKey
|
|
19566
19575
|
};
|
|
19567
19576
|
}
|
|
19568
19577
|
|
|
19569
19578
|
/*
|
|
19570
|
-
groupName: articleMask?.groupname?.[catalogData.api.getLanguage()] ?? jsonArticle.GroupName,
|
|
19571
19579
|
mainCategory: jsonArticle.MainCategory && jsonArticle.MainCategory != '' ? jsonArticle.MainCategory : undefined,
|
|
19572
19580
|
price: jsonArticle.VKP1 && isNaN(jsonArticle.VKP1) ? Number(jsonArticle.VKP1.replace(',', '.')) : jsonArticle.VKP1,
|
|
19573
19581
|
priceGroup: jsonArticle.PriceGroup,
|
|
@@ -19646,15 +19654,16 @@ function getCatalogPlanner(article, catalogArticle) {
|
|
|
19646
19654
|
};
|
|
19647
19655
|
}
|
|
19648
19656
|
function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps, plannerPaletteViewInfo) {
|
|
19649
|
-
var _catPlanArticle$filte, _catPlanArticle$svgs;
|
|
19657
|
+
var _catPlanArticle$filte, _catPlanArticle$group, _catPlanArticle$svgs;
|
|
19650
19658
|
plannerPaletteViewInfo.catalogPlannerArticles.push({
|
|
19651
19659
|
articleCodex: catPlanArticle.codex,
|
|
19652
19660
|
avlFilter: catPlanArticle.avlFilter,
|
|
19653
19661
|
avrFilter: catPlanArticle.avrFilter,
|
|
19662
|
+
longDescription: catPlanArticle.longDescription,
|
|
19654
19663
|
catalogCodex: catPlanArticle.catalogCodex,
|
|
19655
19664
|
codex: catPlanArticle.codex,
|
|
19656
19665
|
filterType: (_catPlanArticle$filte = catPlanArticle.filterType) !== null && _catPlanArticle$filte !== void 0 ? _catPlanArticle$filte : 'DockNone',
|
|
19657
|
-
groupName: '',
|
|
19666
|
+
groupName: (_catPlanArticle$group = catPlanArticle.groupName) !== null && _catPlanArticle$group !== void 0 ? _catPlanArticle$group : '',
|
|
19658
19667
|
hasAVC: !!catPlanArticle.topAVC,
|
|
19659
19668
|
hasAVN: !!catPlanArticle.topAVN,
|
|
19660
19669
|
hasAVO: !!catPlanArticle.topAVO,
|
|
@@ -21589,12 +21598,12 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
21589
21598
|
}, {
|
|
21590
21599
|
key: "IsDockingFilterFeature",
|
|
21591
21600
|
get: function get() {
|
|
21592
|
-
return this.option.idmVariantenArt ? [89, 90].includes(this.option.idmVariantenArt) : false;
|
|
21601
|
+
return this.option.idmVariantenArt ? [89, 90, 1089, 1090].includes(this.option.idmVariantenArt) : false;
|
|
21593
21602
|
}
|
|
21594
21603
|
}, {
|
|
21595
21604
|
key: "IsIDMSpecialFeature",
|
|
21596
21605
|
get: function get() {
|
|
21597
|
-
return this.option.idmVariantenArt ? [95, 96, 97, 89, 90].includes(this.option.idmVariantenArt) : false;
|
|
21606
|
+
return this.option.idmVariantenArt ? [95, 96, 97, 89, 90, 1095, 1096, 1097, 1089, 1090].includes(this.option.idmVariantenArt) : false;
|
|
21598
21607
|
}
|
|
21599
21608
|
}, {
|
|
21600
21609
|
key: "visibleOptionValues",
|
|
@@ -22289,8 +22298,9 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22289
22298
|
}, {
|
|
22290
22299
|
key: "updateIDMSpecificFeature",
|
|
22291
22300
|
value: function updateIDMSpecificFeature(ops) {
|
|
22301
|
+
var _ops$option$idmVarian, _ops$option$idmVarian2, _ops$option$idmVarian3, _ops$option$idmVarian4, _ops$option$idmVarian5;
|
|
22292
22302
|
if (!this.article.parentHasSameOption(ops.optionCodex)) return;
|
|
22293
|
-
if (ops.option.idmVariantenArt
|
|
22303
|
+
if ([90, 1090].includes((_ops$option$idmVarian = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian !== void 0 ? _ops$option$idmVarian : 0)) {
|
|
22294
22304
|
//R (Anschlusstyp R) - AVR
|
|
22295
22305
|
var newAVRFilter = [],
|
|
22296
22306
|
visibleOPVs = ops.visibleOptionValues;
|
|
@@ -22299,7 +22309,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22299
22309
|
}
|
|
22300
22310
|
this.article.newPossibleAVRFilters = newAVRFilter;
|
|
22301
22311
|
}
|
|
22302
|
-
if (ops.option.idmVariantenArt
|
|
22312
|
+
if ([89, 1089].includes((_ops$option$idmVarian2 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian2 !== void 0 ? _ops$option$idmVarian2 : 0)) {
|
|
22303
22313
|
//L (Anschlusstyp L) - AVL
|
|
22304
22314
|
var newAVLFilter = [],
|
|
22305
22315
|
_visibleOPVs = ops.visibleOptionValues;
|
|
@@ -22309,7 +22319,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22309
22319
|
this.article.newPossibleAVLFilters = newAVLFilter;
|
|
22310
22320
|
}
|
|
22311
22321
|
//beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
|
|
22312
|
-
if (ops.option.idmVariantenArt
|
|
22322
|
+
if ([97, 1097].includes((_ops$option$idmVarian3 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian3 !== void 0 ? _ops$option$idmVarian3 : 0)) {
|
|
22313
22323
|
//Planungshöhe
|
|
22314
22324
|
try {
|
|
22315
22325
|
var _ops$freeText;
|
|
@@ -22322,7 +22332,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22322
22332
|
}
|
|
22323
22333
|
}
|
|
22324
22334
|
//beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
|
|
22325
|
-
if (ops.option.idmVariantenArt
|
|
22335
|
+
if ([96, 1096].includes((_ops$option$idmVarian4 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian4 !== void 0 ? _ops$option$idmVarian4 : 0) || ops.option.diameter) {
|
|
22326
22336
|
//Planungstiefe
|
|
22327
22337
|
try {
|
|
22328
22338
|
var _ops$freeText2;
|
|
@@ -22335,7 +22345,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22335
22345
|
}
|
|
22336
22346
|
}
|
|
22337
22347
|
//beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
|
|
22338
|
-
if (ops.option.idmVariantenArt
|
|
22348
|
+
if ([95, 1095].includes((_ops$option$idmVarian5 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian5 !== void 0 ? _ops$option$idmVarian5 : 0) || ops.option.diameter) {
|
|
22339
22349
|
//Planungsbreite - ACHTUNG Fehler wenn mm
|
|
22340
22350
|
|
|
22341
22351
|
try {
|
|
@@ -24572,16 +24582,17 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24572
24582
|
}, {
|
|
24573
24583
|
key: "updateIDMSpecificFeature",
|
|
24574
24584
|
value: function updateIDMSpecificFeature(myArtOPS) {
|
|
24585
|
+
var _myArtOPS$option$idmV, _myArtOPS$option$idmV2, _myArtOPS$option$idmV3, _myArtOPS$option$idmV4, _myArtOPS$option$idmV5;
|
|
24575
24586
|
if (!this.article.parentHasSameOption(myArtOPS.optionCodex)) return;
|
|
24576
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24587
|
+
if ([90, 1090].includes((_myArtOPS$option$idmV = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV !== void 0 ? _myArtOPS$option$idmV : 0)) {
|
|
24577
24588
|
//R (Anschlusstyp R) - AVR
|
|
24578
24589
|
this.article.newPossibleAVRFilters = Object.keys(myArtOPS.visibleOptionValues);
|
|
24579
24590
|
}
|
|
24580
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24591
|
+
if ([89, 1089].includes((_myArtOPS$option$idmV2 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV2 !== void 0 ? _myArtOPS$option$idmV2 : 0)) {
|
|
24581
24592
|
//L (Anschlusstyp L) - AVL
|
|
24582
24593
|
this.article.newPossibleAVLFilters = Object.keys(myArtOPS.visibleOptionValues);
|
|
24583
24594
|
}
|
|
24584
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24595
|
+
if ([97, 1097].includes((_myArtOPS$option$idmV3 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV3 !== void 0 ? _myArtOPS$option$idmV3 : 0)) {
|
|
24585
24596
|
try {
|
|
24586
24597
|
var _myArtOPS$measureValu;
|
|
24587
24598
|
this.article.doUpdatePlannerSize = true;
|
|
@@ -24590,7 +24601,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24590
24601
|
LOG$e.warn('Invalid Planungdepth - IDMVariantenArt 97: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
|
|
24591
24602
|
}
|
|
24592
24603
|
}
|
|
24593
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24604
|
+
if ([96, 1096].includes((_myArtOPS$option$idmV4 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV4 !== void 0 ? _myArtOPS$option$idmV4 : 0) || myArtOPS.option.diameter) {
|
|
24594
24605
|
try {
|
|
24595
24606
|
var _myArtOPS$measureValu2;
|
|
24596
24607
|
this.article.doUpdatePlannerSize = true;
|
|
@@ -24599,7 +24610,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24599
24610
|
LOG$e.warn('Invalid Planungdepth - IDMVariantenArt 96: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
|
|
24600
24611
|
}
|
|
24601
24612
|
}
|
|
24602
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24613
|
+
if ([95, 1095].includes((_myArtOPS$option$idmV5 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV5 !== void 0 ? _myArtOPS$option$idmV5 : 0) || myArtOPS.option.diameter) {
|
|
24603
24614
|
try {
|
|
24604
24615
|
var _myArtOPS$measureValu3;
|
|
24605
24616
|
this.article.doUpdatePlannerSize = true;
|
|
@@ -26398,8 +26409,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26398
26409
|
_step14;
|
|
26399
26410
|
try {
|
|
26400
26411
|
for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
|
|
26412
|
+
var _ops$idmVariantenArt;
|
|
26401
26413
|
var ops = _step14.value;
|
|
26402
|
-
if (ops.isDoShow && (!(ops.idmVariantenArt
|
|
26414
|
+
if (ops.isDoShow && (![95, 96, 97, 1095, 1096, 1097].includes((_ops$idmVariantenArt = ops.idmVariantenArt) !== null && _ops$idmVariantenArt !== void 0 ? _ops$idmVariantenArt : 0) || ops.isVisibleFreeText) && ops.val && ops.visibleCount > 0 && !ops.isDescribingState) {
|
|
26403
26415
|
variantValues.push((this.CatalogData.isIDMFormat ? ops.optionCodex : ops.optionCodex.substring(3)) + '_' + (this.CatalogData.isIDMFormat ? ops.val.codex : ops.val.codex.substring(3)) + (ops.freeText ? '_' + ops.freeText : ops.value ? '_' + ops.value : ''));
|
|
26404
26416
|
}
|
|
26405
26417
|
}
|
|
@@ -27167,7 +27179,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27167
27179
|
break;
|
|
27168
27180
|
}
|
|
27169
27181
|
_context.next = 4;
|
|
27170
|
-
return import('./ShelfPlanner-
|
|
27182
|
+
return import('./ShelfPlanner-c42aa862.js');
|
|
27171
27183
|
case 4:
|
|
27172
27184
|
_yield$import = _context.sent;
|
|
27173
27185
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -27676,7 +27688,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27676
27688
|
var ops = _step28.value;
|
|
27677
27689
|
var OP = ops.optionCodex;
|
|
27678
27690
|
if (ops) {
|
|
27679
|
-
var
|
|
27691
|
+
var _ops$idmVariantenArt2;
|
|
27692
|
+
var doHideSizeOption = [95, 96, 97, 1095, 1096, 1097].includes((_ops$idmVariantenArt2 = ops.idmVariantenArt) !== null && _ops$idmVariantenArt2 !== void 0 ? _ops$idmVariantenArt2 : 0);
|
|
27680
27693
|
if (ops.isVisibleFreeText == true) {
|
|
27681
27694
|
doHideSizeOption = false;
|
|
27682
27695
|
}
|
|
@@ -31815,7 +31828,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31815
31828
|
break;
|
|
31816
31829
|
}
|
|
31817
31830
|
_context5.next = 3;
|
|
31818
|
-
return import('./DoorPlanner-
|
|
31831
|
+
return import('./DoorPlanner-9763ad19.js');
|
|
31819
31832
|
case 3:
|
|
31820
31833
|
_yield$import = _context5.sent;
|
|
31821
31834
|
DoorPlanner = _yield$import["default"];
|
|
@@ -34215,7 +34228,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34215
34228
|
notTotallyMatichingOPVs = false,
|
|
34216
34229
|
myOptionState = undefined;
|
|
34217
34230
|
for (var i = 0; i < configStep.targetArticles.length; i++) {
|
|
34218
|
-
var _myOptionState;
|
|
34231
|
+
var _myOptionState, _myOptionState$idmVar;
|
|
34219
34232
|
var article = articles[configStep.targetArticles[i]];
|
|
34220
34233
|
myOptionState = article.getArticleOptionState(configStep.option);
|
|
34221
34234
|
if (!myOptionState) throw new Error('myOptionState ' + configStep.option + ' is undefined');
|
|
@@ -34227,7 +34240,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34227
34240
|
if (myOptionState.isFreeText && myOptionState.freeTextLang) {
|
|
34228
34241
|
freeTextLang = myOptionState.freeTextLang;
|
|
34229
34242
|
}
|
|
34230
|
-
if (myOptionState.headerPosVariationType == 'V' || myOptionState.idmVariantenArt
|
|
34243
|
+
if (myOptionState.headerPosVariationType == 'V' || [35, 1035].includes((_myOptionState$idmVar = myOptionState.idmVariantenArt) !== null && _myOptionState$idmVar !== void 0 ? _myOptionState$idmVar : 0)) {
|
|
34231
34244
|
// 35 is the seatingheight. Articles should not be albe to have different seatheight
|
|
34232
34245
|
//get schnittmenge of all the articles
|
|
34233
34246
|
if (i === 0) {
|
|
@@ -37684,7 +37697,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
37684
37697
|
this.plannerConfig = plannerConfig;
|
|
37685
37698
|
this.assignNewDivaNr = !!this.plannerConfig.assignNewDivaNr;
|
|
37686
37699
|
this._handler = plannerConfig.handler;
|
|
37687
|
-
if (this.plannerConfig.divaNr == undefined && this.plannerConfig.basketData == undefined && this.plannerConfig.catalogCodex
|
|
37700
|
+
if (this.plannerConfig.divaNr == undefined && this.plannerConfig.basketData == undefined && this.plannerConfig.catalogCodex === undefined && this.plannerConfig.productId == undefined && this.plannerConfig.customProductId == undefined && this.plannerConfig.returnTo != 'TEST_CONFIGURATORLOGIC' && !((_this$plannerConfig$s = this.plannerConfig.settings) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.viewConfig) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.plannerType) !== null && _this$plannerConfig$s !== void 0 && _this$plannerConfig$s.includes('PRODUCTS') || (_this$plannerConfig$s2 = this.plannerConfig.settings) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.viewConfig) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.plannerType) !== null && _this$plannerConfig$s2 !== void 0 && _this$plannerConfig$s2.includes('PROMOTED'))) {
|
|
37688
37701
|
LOG$8.error(new DivaError('Keine Öffnungsparameter', {
|
|
37689
37702
|
code: 'WC_0003'
|
|
37690
37703
|
}));
|
|
@@ -37811,7 +37824,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
37811
37824
|
case 22:
|
|
37812
37825
|
this.baskets[this.divaNr] = this.plannerConfig.basketData;
|
|
37813
37826
|
if (!this.baskets[this.divaNr].CustomerJourneyId) this.baskets[this.divaNr].CustomerJourneyId = nanoid();
|
|
37814
|
-
if (this.actBasket.OrigCatalogCodex) {
|
|
37827
|
+
if (this.actBasket.OrigCatalogCodex !== undefined) {
|
|
37815
37828
|
this.origConfiguration.originCatalogCodex = this.actBasket.OrigCatalogCodex;
|
|
37816
37829
|
this.origConfiguration.originArticleCodexes = this.actBasket.OrigArticleCodexes;
|
|
37817
37830
|
} else if (this.actBasket.OrigDivaNr) {
|
|
@@ -37822,7 +37835,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
37822
37835
|
this.hasConfiguratorSessionId = true;
|
|
37823
37836
|
returnSuccessfully = true;
|
|
37824
37837
|
case 29:
|
|
37825
|
-
if (!this.plannerConfig.catalogCodex) {
|
|
37838
|
+
if (!(this.plannerConfig.catalogCodex !== undefined)) {
|
|
37826
37839
|
_context.next = 33;
|
|
37827
37840
|
break;
|
|
37828
37841
|
}
|
|
@@ -38117,7 +38130,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38117
38130
|
LOG$8.debug('divaNr: ' + divaNr + ' was loaded successfully from server!');
|
|
38118
38131
|
if (basketFromAPI.OrigDivaNr) {
|
|
38119
38132
|
this.origConfiguration.originDivaNr = basketFromAPI.OrigDivaNr;
|
|
38120
|
-
} else if (basketFromAPI.OrigCatalogCodex) {
|
|
38133
|
+
} else if (basketFromAPI.OrigCatalogCodex !== undefined) {
|
|
38121
38134
|
this.origConfiguration.originCatalogCodex = basketFromAPI.OrigCatalogCodex;
|
|
38122
38135
|
this.origConfiguration.originArticleCodexes = basketFromAPI.OrigArticleCodexes;
|
|
38123
38136
|
} else {
|
|
@@ -38487,7 +38500,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38487
38500
|
}, {
|
|
38488
38501
|
key: "fillOrigConfigurations",
|
|
38489
38502
|
value: function fillOrigConfigurations() {
|
|
38490
|
-
if (this.origConfiguration.originCatalogCodex) {
|
|
38503
|
+
if (this.origConfiguration.originCatalogCodex !== undefined) {
|
|
38491
38504
|
this.actBasket.OrigCatalogCodex = this.origConfiguration.originCatalogCodex;
|
|
38492
38505
|
this.actBasket.OrigArticleCodexes = this.origConfiguration.originArticleCodexes;
|
|
38493
38506
|
this.actBasket.OrigDivaNr = undefined;
|
|
@@ -38690,7 +38703,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38690
38703
|
break;
|
|
38691
38704
|
case 3:
|
|
38692
38705
|
_context12.next = 5;
|
|
38693
|
-
return import('./PfisterWWSHandler-
|
|
38706
|
+
return import('./PfisterWWSHandler-d764fc01.js');
|
|
38694
38707
|
case 5:
|
|
38695
38708
|
_yield$import = _context12.sent;
|
|
38696
38709
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -38698,7 +38711,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38698
38711
|
return _context12.abrupt("break", 27);
|
|
38699
38712
|
case 9:
|
|
38700
38713
|
_context12.next = 11;
|
|
38701
|
-
return import('./LiviqueWWSHandler-
|
|
38714
|
+
return import('./LiviqueWWSHandler-851c7845.js');
|
|
38702
38715
|
case 11:
|
|
38703
38716
|
_yield$import2 = _context12.sent;
|
|
38704
38717
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -38706,7 +38719,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38706
38719
|
return _context12.abrupt("break", 27);
|
|
38707
38720
|
case 15:
|
|
38708
38721
|
_context12.next = 17;
|
|
38709
|
-
return import('./SeriousBasketHandler-
|
|
38722
|
+
return import('./SeriousBasketHandler-5b9717fa.js');
|
|
38710
38723
|
case 17:
|
|
38711
38724
|
_yield$import3 = _context12.sent;
|
|
38712
38725
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -38714,7 +38727,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38714
38727
|
return _context12.abrupt("break", 27);
|
|
38715
38728
|
case 21:
|
|
38716
38729
|
_context12.next = 23;
|
|
38717
|
-
return import('./StandardWWSHandler-
|
|
38730
|
+
return import('./StandardWWSHandler-edf6baad.js');
|
|
38718
38731
|
case 23:
|
|
38719
38732
|
_yield$import4 = _context12.sent;
|
|
38720
38733
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -40142,7 +40155,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
40142
40155
|
while (1) switch (_context3.prev = _context3.next) {
|
|
40143
40156
|
case 0:
|
|
40144
40157
|
_context3.next = 2;
|
|
40145
|
-
return import('./Host3DSignalR-
|
|
40158
|
+
return import('./Host3DSignalR-6530f4d6.js');
|
|
40146
40159
|
case 2:
|
|
40147
40160
|
_yield$import = _context3.sent;
|
|
40148
40161
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -41699,7 +41712,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
41699
41712
|
break;
|
|
41700
41713
|
case 8:
|
|
41701
41714
|
_context4.next = 10;
|
|
41702
|
-
return import('./DivaStandardPlanner-
|
|
41715
|
+
return import('./DivaStandardPlanner-328685f2.js');
|
|
41703
41716
|
case 10:
|
|
41704
41717
|
_yield$import = _context4.sent;
|
|
41705
41718
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -41710,7 +41723,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
41710
41723
|
return _context4.abrupt("break", 21);
|
|
41711
41724
|
case 15:
|
|
41712
41725
|
_context4.next = 17;
|
|
41713
|
-
return import('./DivaBoxPlanner-
|
|
41726
|
+
return import('./DivaBoxPlanner-e46cdeb2.js');
|
|
41714
41727
|
case 17:
|
|
41715
41728
|
_yield$import2 = _context4.sent;
|
|
41716
41729
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -44690,11 +44703,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44690
44703
|
this.divaBasketHandler.fillOrigConfigurations();
|
|
44691
44704
|
actBasket.Updated = Date.now();
|
|
44692
44705
|
if (!returnTo) {
|
|
44693
|
-
_context27.next =
|
|
44706
|
+
_context27.next = 52;
|
|
44694
44707
|
break;
|
|
44695
44708
|
}
|
|
44696
44709
|
_context27.t3 = returnTo;
|
|
44697
|
-
_context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 27 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 30 : _context27.t3 === 'OPEN_PDF' ?
|
|
44710
|
+
_context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 27 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 30 : _context27.t3 === 'OPEN_PDF' ? 33 : _context27.t3 === 'SAVE_BASKET_WITH_MODAL' ? 33 : _context27.t3 === 'SAVE_BASKET' ? 33 : _context27.t3 === 'SAVE_BASKET_SYNC' ? 33 : _context27.t3 === 'OPEN_LEAFLET_BARRIER' ? 33 : 52;
|
|
44698
44711
|
break;
|
|
44699
44712
|
case 27:
|
|
44700
44713
|
(_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.toggleLoading('buildScene', false, false);
|
|
@@ -44708,8 +44721,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44708
44721
|
basketData: actBasket
|
|
44709
44722
|
}
|
|
44710
44723
|
});
|
|
44711
|
-
return _context27.abrupt("break",
|
|
44724
|
+
return _context27.abrupt("break", 52);
|
|
44712
44725
|
case 30:
|
|
44726
|
+
if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
|
|
44727
|
+
actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
|
|
44728
|
+
}
|
|
44713
44729
|
(_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.openComponent({
|
|
44714
44730
|
type: 'SELLER',
|
|
44715
44731
|
parameters: {
|
|
@@ -44720,51 +44736,51 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44720
44736
|
basketData: actBasket
|
|
44721
44737
|
}
|
|
44722
44738
|
});
|
|
44723
|
-
return _context27.abrupt("break",
|
|
44724
|
-
case
|
|
44739
|
+
return _context27.abrupt("break", 52);
|
|
44740
|
+
case 33:
|
|
44725
44741
|
if (!(event == 'onSaveProduct')) {
|
|
44726
|
-
_context27.next =
|
|
44742
|
+
_context27.next = 43;
|
|
44727
44743
|
break;
|
|
44728
44744
|
}
|
|
44729
44745
|
//copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
|
|
44730
44746
|
actBasket = new BasketData(JSON.parse(JSON.stringify(actBasket)));
|
|
44731
|
-
_context27.next =
|
|
44747
|
+
_context27.next = 37;
|
|
44732
44748
|
return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
|
|
44733
|
-
case
|
|
44734
|
-
_context27.next =
|
|
44749
|
+
case 37:
|
|
44750
|
+
_context27.next = 39;
|
|
44735
44751
|
return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
|
|
44736
|
-
case
|
|
44752
|
+
case 39:
|
|
44737
44753
|
newDivaNr = _context27.sent;
|
|
44738
44754
|
actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
|
|
44739
|
-
_context27.next =
|
|
44755
|
+
_context27.next = 51;
|
|
44740
44756
|
break;
|
|
44741
|
-
case
|
|
44757
|
+
case 43:
|
|
44742
44758
|
if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
|
|
44743
44759
|
this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = undefined;
|
|
44744
44760
|
actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
|
|
44745
44761
|
}
|
|
44746
44762
|
this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
|
|
44747
44763
|
actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
|
|
44748
|
-
_context27.next =
|
|
44764
|
+
_context27.next = 48;
|
|
44749
44765
|
return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo);
|
|
44750
|
-
case
|
|
44766
|
+
case 48:
|
|
44751
44767
|
_result2 = _context27.sent;
|
|
44752
44768
|
if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
|
|
44753
|
-
_context27.next =
|
|
44769
|
+
_context27.next = 51;
|
|
44754
44770
|
break;
|
|
44755
44771
|
}
|
|
44756
44772
|
return _context27.abrupt("return", 'canceled');
|
|
44757
|
-
case 50:
|
|
44758
|
-
return _context27.abrupt("break", 51);
|
|
44759
44773
|
case 51:
|
|
44774
|
+
return _context27.abrupt("break", 52);
|
|
44775
|
+
case 52:
|
|
44760
44776
|
if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
|
|
44761
44777
|
actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
|
|
44762
|
-
_context27.next =
|
|
44778
|
+
_context27.next = 56;
|
|
44763
44779
|
return this.addToBasket(actBasket, event);
|
|
44764
|
-
case
|
|
44780
|
+
case 56:
|
|
44765
44781
|
product = _context27.sent;
|
|
44766
44782
|
return _context27.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
|
|
44767
|
-
case
|
|
44783
|
+
case 58:
|
|
44768
44784
|
case "end":
|
|
44769
44785
|
return _context27.stop();
|
|
44770
44786
|
}
|
|
@@ -44814,7 +44830,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44814
44830
|
//if planner is hidden by config but nothing is planned initially
|
|
44815
44831
|
if (plannerType === 'NONE') {
|
|
44816
44832
|
var _this$plannerConfig$a8, _this$actSet11;
|
|
44817
|
-
if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a8 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a8 !== void 0 && _this$plannerConfig$a8.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet11 = this.actSet()) !== null && _this$actSet11 !== void 0 && (_this$actSet11 = _this$actSet11.CatalogData.startPlannerArticle) !== null && _this$actSet11 !== void 0 && _this$actSet11.length)) {
|
|
44833
|
+
if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex !== undefined && !((_this$plannerConfig$a8 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a8 !== void 0 && _this$plannerConfig$a8.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet11 = this.actSet()) !== null && _this$actSet11 !== void 0 && (_this$actSet11 = _this$actSet11.CatalogData.startPlannerArticle) !== null && _this$actSet11 !== void 0 && _this$actSet11.length)) {
|
|
44818
44834
|
plannerType = 'PLANNER';
|
|
44819
44835
|
}
|
|
44820
44836
|
}
|
|
@@ -45089,39 +45105,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45089
45105
|
case 0:
|
|
45090
45106
|
event = _args29.length > 1 && _args29[1] !== undefined ? _args29[1] : 'onAddToBasket';
|
|
45091
45107
|
_context29.t0 = event;
|
|
45092
|
-
_context29.next = _context29.t0 === 'onWebPlanerPrint' ?
|
|
45108
|
+
_context29.next = _context29.t0 === 'onWebPlanerPrint' ? 4 : _context29.t0 === 'onWebPlanerSave' ? 6 : _context29.t0 === 'onWebPlanerShare' ? 8 : _context29.t0 === 'onRequestConsulation' ? 10 : _context29.t0 === 'onSave' ? 12 : _context29.t0 === 'onSendEmail' ? 14 : _context29.t0 === 'onSaveProduct' ? 19 : _context29.t0 === 'dontSaveBasket' ? 26 : _context29.t0 === 'onAddToBasket' ? 26 : _context29.t0 === 'onSendContactForm' ? 28 : 31;
|
|
45093
45109
|
break;
|
|
45094
|
-
case
|
|
45110
|
+
case 4:
|
|
45095
45111
|
(_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
|
|
45096
45112
|
type: 'onWebPlanerPrint',
|
|
45097
45113
|
data: actBasket.getAsJson()
|
|
45098
45114
|
});
|
|
45099
|
-
return _context29.abrupt("break",
|
|
45100
|
-
case
|
|
45115
|
+
return _context29.abrupt("break", 33);
|
|
45116
|
+
case 6:
|
|
45101
45117
|
(_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
|
|
45102
45118
|
type: 'onWebPlanerSave',
|
|
45103
45119
|
data: actBasket.getAsJson()
|
|
45104
45120
|
});
|
|
45105
|
-
return _context29.abrupt("break",
|
|
45106
|
-
case
|
|
45121
|
+
return _context29.abrupt("break", 33);
|
|
45122
|
+
case 8:
|
|
45107
45123
|
(_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
|
|
45108
45124
|
type: 'onWebPlanerShare',
|
|
45109
45125
|
data: actBasket.getAsJson()
|
|
45110
45126
|
});
|
|
45111
|
-
return _context29.abrupt("break",
|
|
45112
|
-
case
|
|
45127
|
+
return _context29.abrupt("break", 33);
|
|
45128
|
+
case 10:
|
|
45113
45129
|
(_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
|
|
45114
45130
|
type: 'onRequestConsulation',
|
|
45115
45131
|
data: actBasket.getAsJson()
|
|
45116
45132
|
});
|
|
45117
|
-
return _context29.abrupt("break",
|
|
45118
|
-
case
|
|
45133
|
+
return _context29.abrupt("break", 33);
|
|
45134
|
+
case 12:
|
|
45119
45135
|
(_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
|
|
45120
45136
|
type: 'onSave',
|
|
45121
45137
|
data: actBasket.getAsJson()
|
|
45122
45138
|
});
|
|
45123
|
-
return _context29.abrupt("break",
|
|
45124
|
-
case
|
|
45139
|
+
return _context29.abrupt("break", 33);
|
|
45140
|
+
case 14:
|
|
45125
45141
|
emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
|
|
45126
45142
|
this.divaBasketHandler.emailConfig = undefined;
|
|
45127
45143
|
if (emailConfig) {
|
|
@@ -45155,45 +45171,44 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45155
45171
|
type: 'onAddToBasket',
|
|
45156
45172
|
data: actBasket.getAsJson()
|
|
45157
45173
|
});
|
|
45158
|
-
return _context29.abrupt("break",
|
|
45159
|
-
case
|
|
45174
|
+
return _context29.abrupt("break", 33);
|
|
45175
|
+
case 19:
|
|
45160
45176
|
this.actSet().CatalogData;
|
|
45161
|
-
_context29.next =
|
|
45177
|
+
_context29.next = 22;
|
|
45162
45178
|
return this.api.saveAsProduct(this.sets, actBasket);
|
|
45163
|
-
case
|
|
45179
|
+
case 22:
|
|
45164
45180
|
products = _context29.sent;
|
|
45165
45181
|
(_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
|
|
45166
45182
|
type: 'onAddToBasket',
|
|
45167
45183
|
data: actBasket.getAsJson()
|
|
45168
45184
|
});
|
|
45169
45185
|
if (!products) {
|
|
45170
|
-
_context29.next =
|
|
45186
|
+
_context29.next = 26;
|
|
45171
45187
|
break;
|
|
45172
45188
|
}
|
|
45173
45189
|
return _context29.abrupt("return", products[0]);
|
|
45174
|
-
case
|
|
45175
|
-
case 28:
|
|
45190
|
+
case 26:
|
|
45176
45191
|
(_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
|
|
45177
45192
|
type: 'onAddToBasket',
|
|
45178
45193
|
data: actBasket.getAsJson()
|
|
45179
45194
|
});
|
|
45180
|
-
return _context29.abrupt("break",
|
|
45181
|
-
case
|
|
45195
|
+
return _context29.abrupt("break", 33);
|
|
45196
|
+
case 28:
|
|
45182
45197
|
(_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.onEvent({
|
|
45183
45198
|
type: 'onAddToBasket',
|
|
45184
45199
|
data: actBasket.getAsJson()
|
|
45185
45200
|
});
|
|
45186
45201
|
this.openContactForm(this.divaBasketHandler);
|
|
45187
|
-
return _context29.abrupt("break",
|
|
45188
|
-
case
|
|
45202
|
+
return _context29.abrupt("break", 33);
|
|
45203
|
+
case 31:
|
|
45189
45204
|
(_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.onEvent({
|
|
45190
45205
|
type: event,
|
|
45191
45206
|
data: actBasket.getAsJson()
|
|
45192
45207
|
});
|
|
45193
|
-
return _context29.abrupt("break",
|
|
45194
|
-
case
|
|
45208
|
+
return _context29.abrupt("break", 33);
|
|
45209
|
+
case 33:
|
|
45195
45210
|
return _context29.abrupt("return");
|
|
45196
|
-
case
|
|
45211
|
+
case 34:
|
|
45197
45212
|
case "end":
|
|
45198
45213
|
return _context29.stop();
|
|
45199
45214
|
}
|
|
@@ -45251,7 +45266,35 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45251
45266
|
(_this$api = this.api) === null || _this$api === void 0 || _this$api.clearCache();
|
|
45252
45267
|
this.divaCatalogs = {};
|
|
45253
45268
|
}
|
|
45254
|
-
|
|
45269
|
+
}, {
|
|
45270
|
+
key: "getCurrentBasket",
|
|
45271
|
+
value: function () {
|
|
45272
|
+
var _getCurrentBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(event, force, returnTo, dontGoToSummary) {
|
|
45273
|
+
var _this$actSet33, _this$divaBasketHandl5, _this$onClickAddToBas3;
|
|
45274
|
+
return _regeneratorRuntime.wrap(function _callee30$(_context30) {
|
|
45275
|
+
while (1) switch (_context30.prev = _context30.next) {
|
|
45276
|
+
case 0:
|
|
45277
|
+
if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet33 = this.actSet()) === null || _this$actSet33 === void 0 ? void 0 : _this$actSet33.setHash) === ((_this$divaBasketHandl5 = this.divaBasketHandler.actBasket) === null || _this$divaBasketHandl5 === void 0 || (_this$divaBasketHandl5 = _this$divaBasketHandl5.OrderSets) === null || _this$divaBasketHandl5 === void 0 ? void 0 : _this$divaBasketHandl5[0].SetHash))) {
|
|
45278
|
+
_context30.next = 2;
|
|
45279
|
+
break;
|
|
45280
|
+
}
|
|
45281
|
+
return _context30.abrupt("return", true);
|
|
45282
|
+
case 2:
|
|
45283
|
+
_context30.next = 4;
|
|
45284
|
+
return (_this$onClickAddToBas3 = this.onClickAddToBasket) === null || _this$onClickAddToBas3 === void 0 ? void 0 : _this$onClickAddToBas3.call(this, event, force, returnTo, dontGoToSummary);
|
|
45285
|
+
case 4:
|
|
45286
|
+
return _context30.abrupt("return", !!_context30.sent);
|
|
45287
|
+
case 5:
|
|
45288
|
+
case "end":
|
|
45289
|
+
return _context30.stop();
|
|
45290
|
+
}
|
|
45291
|
+
}, _callee30, this);
|
|
45292
|
+
}));
|
|
45293
|
+
function getCurrentBasket(_x80, _x81, _x82, _x83) {
|
|
45294
|
+
return _getCurrentBasket.apply(this, arguments);
|
|
45295
|
+
}
|
|
45296
|
+
return getCurrentBasket;
|
|
45297
|
+
}()
|
|
45255
45298
|
/*********************************END Functions in Logik called From View END *************************************/
|
|
45256
45299
|
/*********************************** Register Funictions from Logik to View ***************************************/
|
|
45257
45300
|
}, {
|
|
@@ -45474,9 +45517,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45474
45517
|
key: "initApiForLogicOnly",
|
|
45475
45518
|
value: //just for testing purposes
|
|
45476
45519
|
function () {
|
|
45477
|
-
var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
45478
|
-
return _regeneratorRuntime.wrap(function
|
|
45479
|
-
while (1) switch (
|
|
45520
|
+
var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
|
|
45521
|
+
return _regeneratorRuntime.wrap(function _callee31$(_context31) {
|
|
45522
|
+
while (1) switch (_context31.prev = _context31.next) {
|
|
45480
45523
|
case 0:
|
|
45481
45524
|
//empty services
|
|
45482
45525
|
this.api = new DivaApiHandler(_objectSpread$5(_objectSpread$5({}, this.plannerConfig), {}, {
|
|
@@ -45489,17 +45532,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45489
45532
|
jwt: jwt,
|
|
45490
45533
|
apiKey: apiKey
|
|
45491
45534
|
}), handler);
|
|
45492
|
-
|
|
45535
|
+
_context31.next = 3;
|
|
45493
45536
|
return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
|
|
45494
45537
|
case 3:
|
|
45495
45538
|
this.plannerHandler = new DivaPlannerHandler(true);
|
|
45496
45539
|
case 4:
|
|
45497
45540
|
case "end":
|
|
45498
|
-
return
|
|
45541
|
+
return _context31.stop();
|
|
45499
45542
|
}
|
|
45500
|
-
},
|
|
45543
|
+
}, _callee31, this);
|
|
45501
45544
|
}));
|
|
45502
|
-
function initApiForLogicOnly(
|
|
45545
|
+
function initApiForLogicOnly(_x84, _x85, _x86, _x87, _x88, _x89, _x90) {
|
|
45503
45546
|
return _initApiForLogicOnly.apply(this, arguments);
|
|
45504
45547
|
}
|
|
45505
45548
|
return initApiForLogicOnly;
|
|
@@ -45512,16 +45555,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45512
45555
|
}, {
|
|
45513
45556
|
key: "loadBasket",
|
|
45514
45557
|
value: function () {
|
|
45515
|
-
var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
45516
|
-
return _regeneratorRuntime.wrap(function
|
|
45517
|
-
while (1) switch (
|
|
45558
|
+
var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {
|
|
45559
|
+
return _regeneratorRuntime.wrap(function _callee32$(_context32) {
|
|
45560
|
+
while (1) switch (_context32.prev = _context32.next) {
|
|
45518
45561
|
case 0:
|
|
45519
|
-
return
|
|
45562
|
+
return _context32.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
|
|
45520
45563
|
case 1:
|
|
45521
45564
|
case "end":
|
|
45522
|
-
return
|
|
45565
|
+
return _context32.stop();
|
|
45523
45566
|
}
|
|
45524
|
-
},
|
|
45567
|
+
}, _callee32, this);
|
|
45525
45568
|
}));
|
|
45526
45569
|
function loadBasket() {
|
|
45527
45570
|
return _loadBasket.apply(this, arguments);
|
|
@@ -45536,39 +45579,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45536
45579
|
}, {
|
|
45537
45580
|
key: "initBasket",
|
|
45538
45581
|
value: function () {
|
|
45539
|
-
var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
45582
|
+
var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(init3D, ignoreFavorites) {
|
|
45540
45583
|
var initSetState, set, basket;
|
|
45541
|
-
return _regeneratorRuntime.wrap(function
|
|
45542
|
-
while (1) switch (
|
|
45584
|
+
return _regeneratorRuntime.wrap(function _callee33$(_context33) {
|
|
45585
|
+
while (1) switch (_context33.prev = _context33.next) {
|
|
45543
45586
|
case 0:
|
|
45544
45587
|
this.divaNr = this.divaBasketHandler.actDivaNr;
|
|
45545
45588
|
initSetState = this.getInitStateForSet(!init3D);
|
|
45546
45589
|
this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
|
|
45547
|
-
|
|
45590
|
+
_context33.next = 5;
|
|
45548
45591
|
return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
|
|
45549
45592
|
case 5:
|
|
45550
45593
|
//TODO check if when basket gets repaired the product match gets called
|
|
45551
45594
|
set = this.actSet();
|
|
45552
45595
|
setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
|
|
45553
45596
|
if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
|
|
45554
|
-
|
|
45597
|
+
_context33.next = 10;
|
|
45555
45598
|
break;
|
|
45556
45599
|
}
|
|
45557
|
-
|
|
45600
|
+
_context33.next = 10;
|
|
45558
45601
|
return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
|
|
45559
45602
|
case 10:
|
|
45560
|
-
|
|
45603
|
+
_context33.next = 12;
|
|
45561
45604
|
return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
|
|
45562
45605
|
case 12:
|
|
45563
|
-
basket =
|
|
45564
|
-
return
|
|
45606
|
+
basket = _context33.sent;
|
|
45607
|
+
return _context33.abrupt("return", basket);
|
|
45565
45608
|
case 14:
|
|
45566
45609
|
case "end":
|
|
45567
|
-
return
|
|
45610
|
+
return _context33.stop();
|
|
45568
45611
|
}
|
|
45569
|
-
},
|
|
45612
|
+
}, _callee33, this);
|
|
45570
45613
|
}));
|
|
45571
|
-
function initBasket(
|
|
45614
|
+
function initBasket(_x91, _x92) {
|
|
45572
45615
|
return _initBasket.apply(this, arguments);
|
|
45573
45616
|
}
|
|
45574
45617
|
return initBasket;
|
|
@@ -45582,21 +45625,21 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45582
45625
|
}, {
|
|
45583
45626
|
key: "getValidVariantsLength",
|
|
45584
45627
|
value: function () {
|
|
45585
|
-
var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
45628
|
+
var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34() {
|
|
45586
45629
|
var set;
|
|
45587
|
-
return _regeneratorRuntime.wrap(function
|
|
45588
|
-
while (1) switch (
|
|
45630
|
+
return _regeneratorRuntime.wrap(function _callee34$(_context34) {
|
|
45631
|
+
while (1) switch (_context34.prev = _context34.next) {
|
|
45589
45632
|
case 0:
|
|
45590
45633
|
set = this.actSet();
|
|
45591
|
-
|
|
45634
|
+
_context34.next = 3;
|
|
45592
45635
|
return favoritesHandlerInstance.getValidVariants(set, true);
|
|
45593
45636
|
case 3:
|
|
45594
|
-
return
|
|
45637
|
+
return _context34.abrupt("return", _context34.sent.length);
|
|
45595
45638
|
case 4:
|
|
45596
45639
|
case "end":
|
|
45597
|
-
return
|
|
45640
|
+
return _context34.stop();
|
|
45598
45641
|
}
|
|
45599
|
-
},
|
|
45642
|
+
}, _callee34, this);
|
|
45600
45643
|
}));
|
|
45601
45644
|
function getValidVariantsLength() {
|
|
45602
45645
|
return _getValidVariantsLength.apply(this, arguments);
|
|
@@ -45606,46 +45649,46 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45606
45649
|
}, {
|
|
45607
45650
|
key: "handleFavorites",
|
|
45608
45651
|
value: function () {
|
|
45609
|
-
var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
45652
|
+
var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(mode) {
|
|
45610
45653
|
var _this5 = this;
|
|
45611
45654
|
var set, i;
|
|
45612
|
-
return _regeneratorRuntime.wrap(function
|
|
45613
|
-
while (1) switch (
|
|
45655
|
+
return _regeneratorRuntime.wrap(function _callee35$(_context35) {
|
|
45656
|
+
while (1) switch (_context35.prev = _context35.next) {
|
|
45614
45657
|
case 0:
|
|
45615
45658
|
set = this.actSet();
|
|
45616
45659
|
i = 0;
|
|
45617
45660
|
case 2:
|
|
45618
45661
|
if (!favoritesHandlerInstance.IsCalcForSummary) {
|
|
45619
|
-
|
|
45662
|
+
_context35.next = 11;
|
|
45620
45663
|
break;
|
|
45621
45664
|
}
|
|
45622
|
-
|
|
45665
|
+
_context35.next = 5;
|
|
45623
45666
|
return DivaUtils.Sleep(200);
|
|
45624
45667
|
case 5:
|
|
45625
45668
|
i++;
|
|
45626
45669
|
if (!(i > 1000)) {
|
|
45627
|
-
|
|
45670
|
+
_context35.next = 9;
|
|
45628
45671
|
break;
|
|
45629
45672
|
}
|
|
45630
45673
|
LOG$1.error(new DivaError('error on generating Variants of Summary'));
|
|
45631
|
-
return
|
|
45674
|
+
return _context35.abrupt("break", 11);
|
|
45632
45675
|
case 9:
|
|
45633
|
-
|
|
45676
|
+
_context35.next = 2;
|
|
45634
45677
|
break;
|
|
45635
45678
|
case 11:
|
|
45636
|
-
|
|
45679
|
+
_context35.next = 13;
|
|
45637
45680
|
return favoritesHandlerInstance.handleFavorites(set, mode, this.divaBasketHandler.actBasket, this.saveToBasketWrapper.bind(this), this.doConfigure.bind(this), function () {
|
|
45638
45681
|
return _this5.update2DGrid(set);
|
|
45639
45682
|
}, this.actions);
|
|
45640
45683
|
case 13:
|
|
45641
|
-
return
|
|
45684
|
+
return _context35.abrupt("return", _context35.sent);
|
|
45642
45685
|
case 14:
|
|
45643
45686
|
case "end":
|
|
45644
|
-
return
|
|
45687
|
+
return _context35.stop();
|
|
45645
45688
|
}
|
|
45646
|
-
},
|
|
45689
|
+
}, _callee35, this);
|
|
45647
45690
|
}));
|
|
45648
|
-
function handleFavorites(
|
|
45691
|
+
function handleFavorites(_x93) {
|
|
45649
45692
|
return _handleFavorites.apply(this, arguments);
|
|
45650
45693
|
}
|
|
45651
45694
|
return handleFavorites;
|
|
@@ -45658,48 +45701,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45658
45701
|
}, {
|
|
45659
45702
|
key: "initSapOrderLinesFromBasket",
|
|
45660
45703
|
value: function () {
|
|
45661
|
-
var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
45704
|
+
var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee36(divaNr, init3D, onlyLoadOldBakset) {
|
|
45662
45705
|
var result, oldBasket, basket;
|
|
45663
|
-
return _regeneratorRuntime.wrap(function
|
|
45664
|
-
while (1) switch (
|
|
45706
|
+
return _regeneratorRuntime.wrap(function _callee36$(_context36) {
|
|
45707
|
+
while (1) switch (_context36.prev = _context36.next) {
|
|
45665
45708
|
case 0:
|
|
45666
45709
|
if (divaNr) this.divaBasketHandler.updateDivaNrInBasket(divaNr);
|
|
45667
|
-
|
|
45710
|
+
_context36.next = 3;
|
|
45668
45711
|
return this.loadBasket();
|
|
45669
45712
|
case 3:
|
|
45670
|
-
result =
|
|
45713
|
+
result = _context36.sent;
|
|
45671
45714
|
if (!onlyLoadOldBakset) {
|
|
45672
|
-
|
|
45715
|
+
_context36.next = 6;
|
|
45673
45716
|
break;
|
|
45674
45717
|
}
|
|
45675
|
-
return
|
|
45718
|
+
return _context36.abrupt("return", {
|
|
45676
45719
|
oldBasket: new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket))),
|
|
45677
45720
|
cache: {}
|
|
45678
45721
|
});
|
|
45679
45722
|
case 6:
|
|
45680
45723
|
if (!(result === false)) {
|
|
45681
|
-
|
|
45724
|
+
_context36.next = 8;
|
|
45682
45725
|
break;
|
|
45683
45726
|
}
|
|
45684
45727
|
throw new Error('Could not load basket! ' + divaNr);
|
|
45685
45728
|
case 8:
|
|
45686
45729
|
oldBasket = new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket)));
|
|
45687
|
-
|
|
45730
|
+
_context36.next = 11;
|
|
45688
45731
|
return this.initBasket(init3D);
|
|
45689
45732
|
case 11:
|
|
45690
|
-
basket =
|
|
45691
|
-
return
|
|
45733
|
+
basket = _context36.sent;
|
|
45734
|
+
return _context36.abrupt("return", {
|
|
45692
45735
|
basket: basket,
|
|
45693
45736
|
oldBasket: oldBasket,
|
|
45694
45737
|
cache: this.api.getJsonDataCache()
|
|
45695
45738
|
});
|
|
45696
45739
|
case 13:
|
|
45697
45740
|
case "end":
|
|
45698
|
-
return
|
|
45741
|
+
return _context36.stop();
|
|
45699
45742
|
}
|
|
45700
|
-
},
|
|
45743
|
+
}, _callee36, this);
|
|
45701
45744
|
}));
|
|
45702
|
-
function initSapOrderLinesFromBasket(
|
|
45745
|
+
function initSapOrderLinesFromBasket(_x94, _x95, _x96) {
|
|
45703
45746
|
return _initSapOrderLinesFromBasket.apply(this, arguments);
|
|
45704
45747
|
}
|
|
45705
45748
|
return initSapOrderLinesFromBasket;
|