@crystaldesign/web-planner-logic 25.14.0-beta.3 → 25.14.0-beta.31
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-1b90896a.js → DivaBoxPlanner-590fa04b.js} +619 -315
- package/build/cjs/{DivaStandardPlanner-816f7344.js → DivaStandardPlanner-14f641eb.js} +98 -88
- package/build/cjs/{DoorPlanner-b5c5993b.js → DoorPlanner-2fd36cbe.js} +1 -1
- package/build/cjs/{Host3DSignalR-6bbb3036.js → Host3DSignalR-01d03fbe.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-69df31a9.js → LiviqueWWSHandler-ce234c4d.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-c15ee67a.js → PfisterWWSHandler-14763bec.js} +1 -1
- package/build/cjs/{PlannerHandler2D-2f00b260.js → PlannerHandler2D-69bf367e.js} +2 -2
- package/build/cjs/{SeriousBasketHandler-f2a7887a.js → SeriousBasketHandler-3284d8e6.js} +1 -1
- package/build/cjs/{ShelfPlanner-613aae50.js → ShelfPlanner-fdf5c5ea.js} +1 -1
- package/build/cjs/{StandardWWSHandler-71564218.js → StandardWWSHandler-75b86bd6.js} +1 -1
- package/build/cjs/{index-f1a70eb3.js → index-d851c847.js} +285 -199
- package/build/cjs/index.js +1 -3
- package/build/esm/{DivaBoxPlanner-c3688dbb.js → DivaBoxPlanner-90c95fe0.js} +618 -315
- package/build/esm/{DivaStandardPlanner-5908d45b.js → DivaStandardPlanner-15cc1700.js} +98 -88
- package/build/esm/{DoorPlanner-63d43d9b.js → DoorPlanner-6e3a0841.js} +1 -1
- package/build/esm/{Host3DSignalR-e0fd5c5e.js → Host3DSignalR-e8cf0b3e.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-aa489385.js → LiviqueWWSHandler-108cb348.js} +1 -1
- package/build/esm/{PfisterWWSHandler-88f3bc2f.js → PfisterWWSHandler-41c995d8.js} +1 -1
- package/build/esm/{PlannerHandler2D-43910df5.js → PlannerHandler2D-67320283.js} +2 -2
- package/build/esm/{SeriousBasketHandler-6a8f0e2d.js → SeriousBasketHandler-23209e7b.js} +1 -1
- package/build/esm/{ShelfPlanner-e548f714.js → ShelfPlanner-ac57278a.js} +1 -1
- package/build/esm/{StandardWWSHandler-f2e16ec1.js → StandardWWSHandler-6959f79c.js} +1 -1
- package/build/esm/{index-14f79ee4.js → index-8f6efc60.js} +286 -198
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/index.d.ts +0 -1
- package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/AiImageResult.d.ts +0 -2
- package/build/types/web-planner-logic/src/interface/API/AiImageResult.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts +5 -0
- package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ReturnTypes/index.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/ReturnTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts +0 -1
- package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts +2 -1
- 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 +3 -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 +5 -3
- 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 +4 -4
- 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 +1 -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 +4 -1
- 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 +4 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts +4 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.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/model/Articles/Article/CatalogArticleData.d.ts +7 -1
- package/build/types/web-planner-logic/src/model/Articles/Article/CatalogArticleData.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/Catalog/CatalogData.d.ts +1 -0
- package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/IDMCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -61,6 +61,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
61
61
|
_defineProperty(this, "jwt", void 0);
|
|
62
62
|
_defineProperty(this, "apiKey", void 0);
|
|
63
63
|
_defineProperty(this, "actions", void 0);
|
|
64
|
+
_defineProperty(this, "state", void 0);
|
|
64
65
|
_defineProperty(this, "i18n", void 0);
|
|
65
66
|
_defineProperty(this, "getSessionGuid", void 0);
|
|
66
67
|
_defineProperty(this, "useEkPrices", false);
|
|
@@ -729,6 +730,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
729
730
|
value: function setActions(actions) {
|
|
730
731
|
this.actions = actions;
|
|
731
732
|
}
|
|
733
|
+
}, {
|
|
734
|
+
key: "setState",
|
|
735
|
+
value: function setState(state) {
|
|
736
|
+
this.state = state;
|
|
737
|
+
}
|
|
732
738
|
}, {
|
|
733
739
|
key: "getI18n",
|
|
734
740
|
value: function getI18n() {
|
|
@@ -739,7 +745,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
739
745
|
key: "setAccountSessionGuid",
|
|
740
746
|
value: function () {
|
|
741
747
|
var _setAccountSessionGuid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(_ref) {
|
|
742
|
-
var os, accountGuid, catalogGuid, response, _this$actions;
|
|
748
|
+
var os, accountGuid, catalogGuid, response, _this$actions, _this$state$navigatio, _this$state;
|
|
743
749
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
744
750
|
while (1) switch (_context5.prev = _context5.next) {
|
|
745
751
|
case 0:
|
|
@@ -778,7 +784,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
778
784
|
break;
|
|
779
785
|
case 16:
|
|
780
786
|
if (this.applicationEnvironment == 'SELLER') {
|
|
781
|
-
(_this$actions = this.actions) === null || _this$actions === void 0 || _this$actions.openComponent({
|
|
787
|
+
(_this$actions = this.actions) === null || _this$actions === void 0 || _this$actions.openComponent((_this$state$navigatio = (_this$state = this.state) === null || _this$state === void 0 || (_this$state = _this$state.navigationConfiguration) === null || _this$state === void 0 ? void 0 : _this$state.logoAction) !== null && _this$state$navigatio !== void 0 ? _this$state$navigatio : {
|
|
782
788
|
type: 'SELLER',
|
|
783
789
|
parameters: {
|
|
784
790
|
module: 'Collections'
|
|
@@ -1097,7 +1103,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1097
1103
|
value: function getIDMItems(catalogId, serieId, typeNos) {
|
|
1098
1104
|
return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + serieId + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
|
|
1099
1105
|
return encodeURIComponent('typeNo==' + t);
|
|
1100
|
-
}).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');
|
|
1106
|
+
}).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;avrFilter;avlFilter');
|
|
1101
1107
|
}
|
|
1102
1108
|
}, {
|
|
1103
1109
|
key: "getIDMItem",
|
|
@@ -16701,10 +16707,11 @@ function _unsupportedIterableToArray$b(r, a) { if (r) { if ("string" == typeof r
|
|
|
16701
16707
|
function _arrayLikeToArray$b(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
16702
16708
|
//kaufmännischer Artikel
|
|
16703
16709
|
var CatalogArticleData = /*#__PURE__*/function () {
|
|
16704
|
-
function CatalogArticleData(catalogArticle) {
|
|
16710
|
+
function CatalogArticleData(catalogArticle, catalogData) {
|
|
16705
16711
|
var _this = this;
|
|
16706
16712
|
_classCallCheck(this, CatalogArticleData);
|
|
16707
16713
|
_defineProperty(this, "_catalogArticle", void 0);
|
|
16714
|
+
_defineProperty(this, "useShortNameAsName", void 0);
|
|
16708
16715
|
_defineProperty(this, "getMetaData", function (locales) {
|
|
16709
16716
|
var metaData = {};
|
|
16710
16717
|
if (!_this._catalogArticle.metaData) return metaData;
|
|
@@ -16715,6 +16722,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
|
|
|
16715
16722
|
return metaData;
|
|
16716
16723
|
});
|
|
16717
16724
|
this._catalogArticle = catalogArticle;
|
|
16725
|
+
this.useShortNameAsName = catalogData.catalogProps.useShortNameAsName;
|
|
16718
16726
|
var metaDatas = [];
|
|
16719
16727
|
for (var i = 0; i < this._catalogArticle.properties.length; i++) {
|
|
16720
16728
|
var prop = this._catalogArticle.properties[i];
|
|
@@ -16868,18 +16876,37 @@ var CatalogArticleData = /*#__PURE__*/function () {
|
|
|
16868
16876
|
}, {
|
|
16869
16877
|
key: "name",
|
|
16870
16878
|
get: function get() {
|
|
16879
|
+
if (this.useShortNameAsName && this._catalogArticle.shortName) {
|
|
16880
|
+
return this._catalogArticle.shortName;
|
|
16881
|
+
}
|
|
16871
16882
|
return this._catalogArticle.name;
|
|
16872
16883
|
}
|
|
16873
16884
|
}, {
|
|
16874
16885
|
key: "origName",
|
|
16875
16886
|
get: function get() {
|
|
16887
|
+
if (this.useShortNameAsName && this._catalogArticle.origShortName) {
|
|
16888
|
+
return this._catalogArticle.origShortName;
|
|
16889
|
+
}
|
|
16876
16890
|
return this._catalogArticle.origName;
|
|
16877
16891
|
}
|
|
16878
16892
|
}, {
|
|
16879
16893
|
key: "name_locales",
|
|
16880
16894
|
get: function get() {
|
|
16895
|
+
if (this.useShortNameAsName && this._catalogArticle.shortName_locales) {
|
|
16896
|
+
return this._catalogArticle.shortName_locales;
|
|
16897
|
+
}
|
|
16881
16898
|
return this._catalogArticle.name_locales;
|
|
16882
16899
|
}
|
|
16900
|
+
}, {
|
|
16901
|
+
key: "shortName",
|
|
16902
|
+
get: function get() {
|
|
16903
|
+
return this._catalogArticle.shortName;
|
|
16904
|
+
}
|
|
16905
|
+
}, {
|
|
16906
|
+
key: "shortName_locales",
|
|
16907
|
+
get: function get() {
|
|
16908
|
+
return this._catalogArticle.shortName_locales;
|
|
16909
|
+
}
|
|
16883
16910
|
}, {
|
|
16884
16911
|
key: "longDescription",
|
|
16885
16912
|
get: function get() {
|
|
@@ -17532,7 +17559,7 @@ function initDivaCatalogData(json, orderSet, api) {
|
|
|
17532
17559
|
function initDivaArticles(articleJson, plannerElementsJson, catalogData) {
|
|
17533
17560
|
if (articleJson.Articles && articleJson.Articles.length > 0) {
|
|
17534
17561
|
for (var i = 0; i < articleJson.Articles.length; i++) {
|
|
17535
|
-
var catalogArticle = new CatalogArticleData(getCatalogArticle$1(articleJson.Articles[i], catalogData));
|
|
17562
|
+
var catalogArticle = new CatalogArticleData(getCatalogArticle$1(articleJson.Articles[i], catalogData), catalogData);
|
|
17536
17563
|
catalogData.allCatalogArticles[catalogArticle.articleCodex] = catalogArticle;
|
|
17537
17564
|
}
|
|
17538
17565
|
} else {
|
|
@@ -17576,10 +17603,12 @@ function setCatalogPlannsCompletely(catalogData) {
|
|
|
17576
17603
|
}
|
|
17577
17604
|
}
|
|
17578
17605
|
function getCatalogArticle$1(jsonArticle, catalogData) {
|
|
17579
|
-
var _catalogData$catalogM, _catalogData$catalogM2, _catalogData$catalogM3, _articleMask$name$cat, _articleMask$name, _jsonArticle$Metadata, _articleMask$groupnam, _articleMask$groupnam2, _articleMask$hidden;
|
|
17606
|
+
var _catalogData$catalogM, _catalogData$catalogM2, _catalogData$catalogM3, _articleMask$name$cat, _articleMask$name, _articleMask$shortNam, _articleMask$shortNam2, _jsonArticle$Metadata, _articleMask$groupnam, _articleMask$groupnam2, _articleMask$hidden;
|
|
17580
17607
|
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[jsonArticle.Codex];
|
|
17581
17608
|
var maskProperties = getPropertiesForItemNo((_catalogData$catalogM2 = (_catalogData$catalogM3 = catalogData.catalogMask) === null || _catalogData$catalogM3 === void 0 ? void 0 : _catalogData$catalogM3.properties) !== null && _catalogData$catalogM2 !== void 0 ? _catalogData$catalogM2 : [], jsonArticle.Codex, catalogData.api.getLanguage());
|
|
17582
17609
|
//parse den Json Article und erstelle CatalogArticle
|
|
17610
|
+
var name = (_articleMask$name$cat = articleMask === null || articleMask === void 0 || (_articleMask$name = articleMask.name) === null || _articleMask$name === void 0 ? void 0 : _articleMask$name[catalogData.api.getLanguage()]) !== null && _articleMask$name$cat !== void 0 ? _articleMask$name$cat : jsonArticle.Name;
|
|
17611
|
+
var shortName = (_articleMask$shortNam = articleMask === null || articleMask === void 0 || (_articleMask$shortNam2 = articleMask.shortName) === null || _articleMask$shortNam2 === void 0 ? void 0 : _articleMask$shortNam2[catalogData.api.getLanguage()]) !== null && _articleMask$shortNam !== void 0 ? _articleMask$shortNam : jsonArticle.ShortName;
|
|
17583
17612
|
return {
|
|
17584
17613
|
articleCodex: jsonArticle.Codex,
|
|
17585
17614
|
catalogName: jsonArticle.CatalogName,
|
|
@@ -17588,8 +17617,10 @@ function getCatalogArticle$1(jsonArticle, catalogData) {
|
|
|
17588
17617
|
typeNr: jsonArticle.TypeNr,
|
|
17589
17618
|
articleType: jsonArticle.ArticleType ? jsonArticle.ArticleType : 'OPTION',
|
|
17590
17619
|
guid: jsonArticle.GUID,
|
|
17591
|
-
name:
|
|
17620
|
+
name: name,
|
|
17592
17621
|
origName: jsonArticle.Name,
|
|
17622
|
+
shortName: shortName,
|
|
17623
|
+
origShortName: jsonArticle.ShortName,
|
|
17593
17624
|
areOptionsLoaded: false,
|
|
17594
17625
|
arePricesLoaded: false,
|
|
17595
17626
|
articleOptions: {},
|
|
@@ -18071,7 +18102,9 @@ function getPropertiesForFeatureNo(properties, typeNo, featureNo, lang) {
|
|
|
18071
18102
|
function getPropertiesForOptionKey(properties, featureNo, optionKey, lang) {
|
|
18072
18103
|
return properties.filter(function (p) {
|
|
18073
18104
|
var _p$featureNos2, _p$optionKeys2;
|
|
18074
|
-
return (!((_p$featureNos2 = p.featureNos) !== null && _p$featureNos2 !== void 0 && _p$featureNos2.length) || featureNo !== undefined && p.featureNos.includes(featureNo)) && ((_p$optionKeys2 = p.optionKeys) === null || _p$optionKeys2 === void 0
|
|
18105
|
+
return (!((_p$featureNos2 = p.featureNos) !== null && _p$featureNos2 !== void 0 && _p$featureNos2.length) || featureNo !== undefined && p.featureNos.includes(featureNo)) && ((_p$optionKeys2 = p.optionKeys) === null || _p$optionKeys2 === void 0 || (_p$optionKeys2 = _p$optionKeys2.map(function (o) {
|
|
18106
|
+
return o.startsWith('OPV') ? o : 'OPV' + o;
|
|
18107
|
+
})) === null || _p$optionKeys2 === void 0 ? void 0 : _p$optionKeys2.includes(optionKey));
|
|
18075
18108
|
}).map(function (p) {
|
|
18076
18109
|
return {
|
|
18077
18110
|
Value: DivaUtils.getLocals(p.value, lang),
|
|
@@ -18661,15 +18694,20 @@ var ArticleOptionData = /*#__PURE__*/function () {
|
|
|
18661
18694
|
key: "hasImages",
|
|
18662
18695
|
get: function get() {
|
|
18663
18696
|
if (this.opt.hasImages === undefined) {
|
|
18664
|
-
var _this$opt$
|
|
18665
|
-
|
|
18666
|
-
|
|
18667
|
-
|
|
18668
|
-
|
|
18669
|
-
|
|
18670
|
-
|
|
18671
|
-
|
|
18672
|
-
|
|
18697
|
+
var _this$opt$catalogOPT$;
|
|
18698
|
+
if ((_this$opt$catalogOPT$ = this.opt.catalogOPT.layout) !== null && _this$opt$catalogOPT$ !== void 0 && _this$opt$catalogOPT$.includes('GAL')) {
|
|
18699
|
+
this.opt.hasImages = true;
|
|
18700
|
+
} else {
|
|
18701
|
+
var _this$opt$articleOpti, _this$opt$articleOpti2;
|
|
18702
|
+
var opvs = Array.from((_this$opt$articleOpti = (_this$opt$articleOpti2 = this.opt.articleOptionValues) === null || _this$opt$articleOpti2 === void 0 ? void 0 : _this$opt$articleOpti2.values()) !== null && _this$opt$articleOpti !== void 0 ? _this$opt$articleOpti : []);
|
|
18703
|
+
if (opvs.length > 0) {
|
|
18704
|
+
this.opt.hasImages = opvs.some(function (v) {
|
|
18705
|
+
var _v$articleOptionValue;
|
|
18706
|
+
return v.hasImages || ((_v$articleOptionValue = v.articleOptionValues) === null || _v$articleOptionValue === void 0 || (_v$articleOptionValue = _v$articleOptionValue.values()) === null || _v$articleOptionValue === void 0 ? void 0 : _v$articleOptionValue.some(function (v) {
|
|
18707
|
+
return v.hasImages;
|
|
18708
|
+
}));
|
|
18709
|
+
});
|
|
18710
|
+
}
|
|
18673
18711
|
}
|
|
18674
18712
|
}
|
|
18675
18713
|
return this.opt.hasImages;
|
|
@@ -18959,6 +18997,7 @@ function _loadMoreFromDivaArticle() {
|
|
|
18959
18997
|
if (json.EAN) catalogArticle.articleEAN = json.EAN;
|
|
18960
18998
|
if (json.LongDescription && json.LongDescription != '') catalogArticle.longDescription = json.LongDescription;
|
|
18961
18999
|
catalogArticle.name_locales = json.Name_locales;
|
|
19000
|
+
catalogArticle.shortName_locales = json.ShortName_locales;
|
|
18962
19001
|
catalogArticle.groupName_locales = json.GroupName_locales;
|
|
18963
19002
|
catalogArticle.longDescription_locales = json.LongDescription_locales;
|
|
18964
19003
|
decisionsUsedForPartlists = [];
|
|
@@ -19001,22 +19040,22 @@ function _loadMoreFromDivaArticle() {
|
|
|
19001
19040
|
catalogArticle.showroomImages = json.ShowroomImages;
|
|
19002
19041
|
}
|
|
19003
19042
|
if (!catalogArticle.templateCodex) {
|
|
19004
|
-
_context.next =
|
|
19043
|
+
_context.next = 32;
|
|
19005
19044
|
break;
|
|
19006
19045
|
}
|
|
19007
19046
|
promises = [catalog.api.loadArticlePricesQS(catalogArticle.articleCodex, catalog.catalogCodex, catalog.accountSessionGuid), catalog.api.getJsonOptionTree(catalogArticle.templateCodex, catalog.catalogCodex, catalog.accountSessionGuid)];
|
|
19008
|
-
_context.next =
|
|
19047
|
+
_context.next = 26;
|
|
19009
19048
|
return Promise.all(promises);
|
|
19010
|
-
case
|
|
19049
|
+
case 26:
|
|
19011
19050
|
_yield$Promise$all = _context.sent;
|
|
19012
19051
|
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
|
|
19013
19052
|
jsonPrices = _yield$Promise$all2[0];
|
|
19014
19053
|
jsonOption = _yield$Promise$all2[1];
|
|
19015
19054
|
loadPrices(jsonPrices, catalogArticleData, catalog);
|
|
19016
19055
|
loadArticleOptions(jsonOption, catalogArticleData, set);
|
|
19017
|
-
case 31:
|
|
19018
|
-
catalogArticle.areOptionsLoaded = true;
|
|
19019
19056
|
case 32:
|
|
19057
|
+
catalogArticle.areOptionsLoaded = true;
|
|
19058
|
+
case 33:
|
|
19020
19059
|
case "end":
|
|
19021
19060
|
return _context.stop();
|
|
19022
19061
|
}
|
|
@@ -19109,9 +19148,13 @@ function loadArticleOptions(json, catalogArticleData, set) {
|
|
|
19109
19148
|
if (!(catOPV !== null && catOPV !== void 0 && catOPV.groupName) && catOPG) catOPV.groupName = catOPG.name;
|
|
19110
19149
|
var myOPV = new ArticleOptionValueData(getArticleOptionValueType(set, tmpOPV.Codex, tmpOPV, catOPV, catalogArticleData, true, newOPG, multiselectOptions), set.CatalogData);
|
|
19111
19150
|
allOPVsOfOPG.set(tmpOPV.Codex, myOPV);
|
|
19151
|
+
} else {
|
|
19152
|
+
LOG$l.error(new Error('OPV not found: ' + tmpOPV.Codex));
|
|
19112
19153
|
}
|
|
19113
19154
|
}
|
|
19114
19155
|
newOPG.initOPVsInOPG(allOPVsOfOPG);
|
|
19156
|
+
} else {
|
|
19157
|
+
LOG$l.error(new Error('OPG not found: ' + tmpOPG.Codex));
|
|
19115
19158
|
}
|
|
19116
19159
|
}
|
|
19117
19160
|
if ((_myOPT$OPV = myOPT.OPV) !== null && _myOPT$OPV !== void 0 && _myOPT$OPV.length) {
|
|
@@ -19126,8 +19169,12 @@ function loadArticleOptions(json, catalogArticleData, set) {
|
|
|
19126
19169
|
if (_catOPV) {
|
|
19127
19170
|
var _myOPV = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPG.Codex, _tmpOPG, _catOPV, catalogArticleData, true, _newOPG, multiselectOptions), set.CatalogData);
|
|
19128
19171
|
_allOPVsOfOPG.set(_tmpOPG.Codex, _myOPV);
|
|
19172
|
+
} else {
|
|
19173
|
+
LOG$l.error(new Error('OPV not found: ' + _tmpOPG.Codex));
|
|
19129
19174
|
}
|
|
19130
19175
|
_newOPG.initOPVsInOPG(_allOPVsOfOPG);
|
|
19176
|
+
} else {
|
|
19177
|
+
LOG$l.error(new Error('OPG not found: ' + _tmpOPG.Codex));
|
|
19131
19178
|
}
|
|
19132
19179
|
}
|
|
19133
19180
|
}
|
|
@@ -19138,6 +19185,8 @@ function loadArticleOptions(json, catalogArticleData, set) {
|
|
|
19138
19185
|
if (_catOPV2) {
|
|
19139
19186
|
var _myOPV2 = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPV.Codex, _tmpOPV, _catOPV2, catalogArticleData, true, newOPT, multiselectOptions), set.CatalogData);
|
|
19140
19187
|
allOPVsOfOPT.set(_tmpOPV.Codex, _myOPV2);
|
|
19188
|
+
} else {
|
|
19189
|
+
LOG$l.error(new Error('OPV not found: ' + _tmpOPV.Codex));
|
|
19141
19190
|
}
|
|
19142
19191
|
}
|
|
19143
19192
|
}
|
|
@@ -19999,7 +20048,7 @@ function initIDMCatalogData(serie, orderSet, api) {
|
|
|
19999
20048
|
function initIDMArticles(jsonItems, catalogData) {
|
|
20000
20049
|
if (jsonItems !== null && jsonItems !== void 0 && jsonItems.length) {
|
|
20001
20050
|
for (var i = 0; i < jsonItems.length; i++) {
|
|
20002
|
-
var catalogArticle = new CatalogArticleData(getCatalogArticle(jsonItems[i], catalogData));
|
|
20051
|
+
var catalogArticle = new CatalogArticleData(getCatalogArticle(jsonItems[i], catalogData), catalogData);
|
|
20003
20052
|
catalogData.allCatalogArticles[catalogArticle.articleCodex] = catalogArticle;
|
|
20004
20053
|
}
|
|
20005
20054
|
} else {
|
|
@@ -20021,7 +20070,7 @@ function initIDMArticles(jsonItems, catalogData) {
|
|
|
20021
20070
|
}
|
|
20022
20071
|
}
|
|
20023
20072
|
function getCatalogArticle(article, catalogData) {
|
|
20024
|
-
var _catalogData$catalogM,
|
|
20073
|
+
var _catalogData$catalogM, _articleMask$name, _article$fullText, _article$fullText2, _articleMask$properti, _article$depthBasicSh, _article$depthBasicSh2, _article$depthBasicSh3, _article$widthBasicSh, _article$widthBasicSh2, _article$widthBasicSh3, _article$heightBasicS, _article$heightBasicS2, _article$heightBasicS3, _article$weightNetto, _article$detailInfos, _article$detailInfos2, _article$detailInfos3, _articleMask$groupnam, _articleMask$groupnam2;
|
|
20025
20074
|
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];
|
|
20026
20075
|
var lang = catalogData.api.getLanguageLowercase();
|
|
20027
20076
|
var featureProperties = convertProperties(article.properties, lang, 'featureNos');
|
|
@@ -20044,11 +20093,14 @@ function getCatalogArticle(article, catalogData) {
|
|
|
20044
20093
|
hasArticleRelations: false,
|
|
20045
20094
|
hasPartlistArticle: !!article.partListRef,
|
|
20046
20095
|
hasType1Dependencies: false,
|
|
20047
|
-
name: DivaUtils.getLocals((
|
|
20096
|
+
name: DivaUtils.getLocals((_articleMask$name = articleMask === null || articleMask === void 0 ? void 0 : articleMask.name) !== null && _articleMask$name !== void 0 ? _articleMask$name : article.fullText, lang),
|
|
20048
20097
|
longDescription: DivaUtils.getLocals((_article$fullText = article.fullText) !== null && _article$fullText !== void 0 ? _article$fullText : article.shortText, lang),
|
|
20049
20098
|
longDescription_locales: (_article$fullText2 = article.fullText) !== null && _article$fullText2 !== void 0 ? _article$fullText2 : article.shortText,
|
|
20050
20099
|
isHidden: !!(articleMask !== null && articleMask !== void 0 && articleMask.hidden),
|
|
20051
|
-
origName: DivaUtils.getLocals(
|
|
20100
|
+
origName: DivaUtils.getLocals(article.fullText, lang),
|
|
20101
|
+
shortName: DivaUtils.getLocals(article.shortText, lang),
|
|
20102
|
+
origShortName: DivaUtils.getLocals(article.shortText, lang),
|
|
20103
|
+
shortName_locales: article.shortText,
|
|
20052
20104
|
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 : [])),
|
|
20053
20105
|
optionProperties: optionProperties,
|
|
20054
20106
|
featureProperties: featureProperties,
|
|
@@ -20149,15 +20201,24 @@ function mapProp() {
|
|
|
20149
20201
|
});
|
|
20150
20202
|
}
|
|
20151
20203
|
function getCatalogPlanner(article, catalogArticle) {
|
|
20152
|
-
var
|
|
20204
|
+
var _article$avlFilter, _article$avrFilter, _article$depthBasicSh4, _article$depthBasicSh5, _article$depthBasicSh6, _article$widthBasicSh4, _article$widthBasicSh5, _article$widthBasicSh6, _article$heightBasicS4, _article$heightBasicS5, _article$heightBasicS6, _catalogArticle$svgs;
|
|
20153
20205
|
return {
|
|
20154
20206
|
articleCodex: article.typeNo,
|
|
20155
|
-
avlFilter: [],
|
|
20156
|
-
avrFilter: [],
|
|
20157
20207
|
basePrice: 0,
|
|
20158
20208
|
catalogArticle: catalogArticle,
|
|
20159
20209
|
id: Number(article.typeKey),
|
|
20160
20210
|
isArticleRelation: false,
|
|
20211
|
+
avlFilter: (_article$avlFilter = article.avlFilter) !== null && _article$avlFilter !== void 0 ? _article$avlFilter : [],
|
|
20212
|
+
avrFilter: (_article$avrFilter = article.avrFilter) !== null && _article$avrFilter !== void 0 ? _article$avrFilter : [],
|
|
20213
|
+
articleSizeY: article.depthBasicShapeNominalValue !== undefined ? Math.floor(((_article$depthBasicSh4 = article.depthBasicShapeNominalValue) !== null && _article$depthBasicSh4 !== void 0 ? _article$depthBasicSh4 : 0) / 10) : undefined,
|
|
20214
|
+
articleSizeYFrom: article.depthBasicShapeFrom !== undefined ? Math.floor(((_article$depthBasicSh5 = article.depthBasicShapeFrom) !== null && _article$depthBasicSh5 !== void 0 ? _article$depthBasicSh5 : 0) / 10) : undefined,
|
|
20215
|
+
articleSizeYTo: article.depthBasicShapeTo !== undefined ? Math.floor(((_article$depthBasicSh6 = article.depthBasicShapeTo) !== null && _article$depthBasicSh6 !== void 0 ? _article$depthBasicSh6 : 0) / 10) : undefined,
|
|
20216
|
+
articleSizeX: article.widthBasicShapeNominalValue !== undefined ? Math.floor(((_article$widthBasicSh4 = article.widthBasicShapeNominalValue) !== null && _article$widthBasicSh4 !== void 0 ? _article$widthBasicSh4 : 0) / 10) : undefined,
|
|
20217
|
+
articleSizeXFrom: article.widthBasicShapeFrom !== undefined ? Math.floor(((_article$widthBasicSh5 = article.widthBasicShapeFrom) !== null && _article$widthBasicSh5 !== void 0 ? _article$widthBasicSh5 : 0) / 10) : undefined,
|
|
20218
|
+
articleSizeXTo: article.widthBasicShapeTo !== undefined ? Math.floor(((_article$widthBasicSh6 = article.widthBasicShapeTo) !== null && _article$widthBasicSh6 !== void 0 ? _article$widthBasicSh6 : 0) / 10) : undefined,
|
|
20219
|
+
articleSizeZ: article.heightBasicShapeNominalValue !== undefined ? Math.floor(((_article$heightBasicS4 = article.heightBasicShapeNominalValue) !== null && _article$heightBasicS4 !== void 0 ? _article$heightBasicS4 : 0) / 10) : undefined,
|
|
20220
|
+
articleSizeZFrom: article.heightBasicShapeFrom !== undefined ? Math.floor(((_article$heightBasicS5 = article.heightBasicShapeFrom) !== null && _article$heightBasicS5 !== void 0 ? _article$heightBasicS5 : 0) / 10) : undefined,
|
|
20221
|
+
articleSizeZTo: article.heightBasicShapeTo !== undefined ? Math.floor(((_article$heightBasicS6 = article.heightBasicShapeTo) !== null && _article$heightBasicS6 !== void 0 ? _article$heightBasicS6 : 0) / 10) : undefined,
|
|
20161
20222
|
//TODO fill all these infos when implemented in backend
|
|
20162
20223
|
topAVC: 0,
|
|
20163
20224
|
topAVN: 0,
|
|
@@ -20168,15 +20229,6 @@ function getCatalogPlanner(article, catalogArticle) {
|
|
|
20168
20229
|
topHasAVR: false,
|
|
20169
20230
|
topSvg: (_catalogArticle$svgs = catalogArticle.svgs) === null || _catalogArticle$svgs === void 0 || (_catalogArticle$svgs = _catalogArticle$svgs[0]) === null || _catalogArticle$svgs === void 0 ? void 0 : _catalogArticle$svgs.url,
|
|
20170
20231
|
topLayer: 30,
|
|
20171
|
-
articleSizeY: article.depthBasicShapeNominalValue !== undefined ? Math.floor(((_article$depthBasicSh4 = article.depthBasicShapeNominalValue) !== null && _article$depthBasicSh4 !== void 0 ? _article$depthBasicSh4 : 0) / 10) : undefined,
|
|
20172
|
-
articleSizeYFrom: article.depthBasicShapeFrom !== undefined ? Math.floor(((_article$depthBasicSh5 = article.depthBasicShapeFrom) !== null && _article$depthBasicSh5 !== void 0 ? _article$depthBasicSh5 : 0) / 10) : undefined,
|
|
20173
|
-
articleSizeYTo: article.depthBasicShapeTo !== undefined ? Math.floor(((_article$depthBasicSh6 = article.depthBasicShapeTo) !== null && _article$depthBasicSh6 !== void 0 ? _article$depthBasicSh6 : 0) / 10) : undefined,
|
|
20174
|
-
articleSizeX: article.widthBasicShapeNominalValue !== undefined ? Math.floor(((_article$widthBasicSh4 = article.widthBasicShapeNominalValue) !== null && _article$widthBasicSh4 !== void 0 ? _article$widthBasicSh4 : 0) / 10) : undefined,
|
|
20175
|
-
articleSizeXFrom: article.widthBasicShapeFrom !== undefined ? Math.floor(((_article$widthBasicSh5 = article.widthBasicShapeFrom) !== null && _article$widthBasicSh5 !== void 0 ? _article$widthBasicSh5 : 0) / 10) : undefined,
|
|
20176
|
-
articleSizeXTo: article.widthBasicShapeTo !== undefined ? Math.floor(((_article$widthBasicSh6 = article.widthBasicShapeTo) !== null && _article$widthBasicSh6 !== void 0 ? _article$widthBasicSh6 : 0) / 10) : undefined,
|
|
20177
|
-
articleSizeZ: article.heightBasicShapeNominalValue !== undefined ? Math.floor(((_article$heightBasicS4 = article.heightBasicShapeNominalValue) !== null && _article$heightBasicS4 !== void 0 ? _article$heightBasicS4 : 0) / 10) : undefined,
|
|
20178
|
-
articleSizeZFrom: article.heightBasicShapeFrom !== undefined ? Math.floor(((_article$heightBasicS5 = article.heightBasicShapeFrom) !== null && _article$heightBasicS5 !== void 0 ? _article$heightBasicS5 : 0) / 10) : undefined,
|
|
20179
|
-
articleSizeZTo: article.heightBasicShapeTo !== undefined ? Math.floor(((_article$heightBasicS6 = article.heightBasicShapeTo) !== null && _article$heightBasicS6 !== void 0 ? _article$heightBasicS6 : 0) / 10) : undefined,
|
|
20180
20232
|
filterType: 'DockNone'
|
|
20181
20233
|
};
|
|
20182
20234
|
}
|
|
@@ -20205,7 +20257,16 @@ function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps
|
|
|
20205
20257
|
price: catPlanArticle.basePrice,
|
|
20206
20258
|
svgSrc: (_catPlanArticle$svgs = catPlanArticle.svgs) === null || _catPlanArticle$svgs === void 0 || (_catPlanArticle$svgs = _catPlanArticle$svgs[0]) === null || _catPlanArticle$svgs === void 0 ? void 0 : _catPlanArticle$svgs.url,
|
|
20207
20259
|
title: catPlanArticle.name,
|
|
20208
|
-
typeNr: catPlanArticle.typeNr
|
|
20260
|
+
typeNr: catPlanArticle.typeNr,
|
|
20261
|
+
width: catPlanArticle.articleSizeX,
|
|
20262
|
+
height: catPlanArticle.articleSizeZ,
|
|
20263
|
+
depth: catPlanArticle.articleSizeY,
|
|
20264
|
+
widthFrom: catPlanArticle.articleSizeXFrom,
|
|
20265
|
+
heightFrom: catPlanArticle.articleSizeZFrom,
|
|
20266
|
+
depthFrom: catPlanArticle.articleSizeYFrom,
|
|
20267
|
+
widthTo: catPlanArticle.articleSizeXTo,
|
|
20268
|
+
heightTo: catPlanArticle.articleSizeZTo,
|
|
20269
|
+
depthTo: catPlanArticle.articleSizeYTo
|
|
20209
20270
|
});
|
|
20210
20271
|
}
|
|
20211
20272
|
|
|
@@ -20321,6 +20382,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20321
20382
|
// is a string that can define which DPs are hidden. semicolon splitted eg: "AVC;AVR"
|
|
20322
20383
|
|
|
20323
20384
|
//Konfiguration
|
|
20385
|
+
useShortNameAsName: false,
|
|
20386
|
+
// use the short name as name if true
|
|
20324
20387
|
useDiomexConfigLogic: false,
|
|
20325
20388
|
// configurationslogik von diomex wird angewannt. Diese erlaubt dass optionen auch keinen wert aktuell gewählt haben. hier wird nicht standardmäßig der erste wert selektiert, falls der alter wert nicht miehr gültig ist.
|
|
20326
20389
|
UsePrgAsOpvArticleNr: false,
|
|
@@ -20347,6 +20410,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20347
20410
|
// jegliche artikle Realtions welche von den Daten kommen werden ignoriert
|
|
20348
20411
|
repairVariantValues: undefined,
|
|
20349
20412
|
// Mapping von OPT und OPV um beim öffnen von BK's die variantValues zu updaten
|
|
20413
|
+
filterForCheckoutButtons: [],
|
|
20414
|
+
// Array von Keys welche im Checkout Buttons gefiltert werden
|
|
20350
20415
|
showPricePreviewOnlyOnOptions: [],
|
|
20351
20416
|
hidePricePreviewOnlyOnOptions: [],
|
|
20352
20417
|
forceConfigSingle: false,
|
|
@@ -21148,6 +21213,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
21148
21213
|
get: function get() {
|
|
21149
21214
|
return this.catalogProps.headerDimensionIds;
|
|
21150
21215
|
}
|
|
21216
|
+
}, {
|
|
21217
|
+
key: "filterForCheckoutButtons",
|
|
21218
|
+
get: function get() {
|
|
21219
|
+
return this.catalogProps.filterForCheckoutButtons;
|
|
21220
|
+
}
|
|
21151
21221
|
}, {
|
|
21152
21222
|
key: "discountPercentage",
|
|
21153
21223
|
get: function get() {
|
|
@@ -21465,6 +21535,10 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
21465
21535
|
_this5.catalogProps.reconfigAfterArticleDocked = item.Value == '1';
|
|
21466
21536
|
break;
|
|
21467
21537
|
// Configuration
|
|
21538
|
+
|
|
21539
|
+
case 'USE_SHORT_NAME_AS_NAME':
|
|
21540
|
+
_this5.catalogProps.useShortNameAsName = item.Value == '1';
|
|
21541
|
+
break;
|
|
21468
21542
|
case 'USE_DIOMEX_CONFIG_LOGIC':
|
|
21469
21543
|
_this5.catalogProps.useDiomexConfigLogic = item.Value == '1';
|
|
21470
21544
|
break;
|
|
@@ -21521,6 +21595,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
21521
21595
|
_this5.catalogProps.repairVariantValues['OPT' + vals[0].replace(':', ':OPV')] = 'OPT' + vals[1].replace(':', ':OPV');
|
|
21522
21596
|
}
|
|
21523
21597
|
break;
|
|
21598
|
+
case 'FILTER_FOR_CHECKOUT_BUTTONS':
|
|
21599
|
+
_this5.catalogProps.filterForCheckoutButtons = item.Value.split(';').map(function (t) {
|
|
21600
|
+
return t;
|
|
21601
|
+
});
|
|
21602
|
+
break;
|
|
21524
21603
|
case 'DO_USE_RULEDESC_FOR_PARTLIST':
|
|
21525
21604
|
_this5.catalogProps.doUseRuleDescForPartListArticles = '1' == item.Value;
|
|
21526
21605
|
break;
|
|
@@ -22977,7 +23056,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22977
23056
|
return ops.optionCodex == iKey;
|
|
22978
23057
|
});
|
|
22979
23058
|
if (_ops !== null && _ops !== void 0 && _ops.valCodex) {
|
|
22980
|
-
var foundItem = _this.article.checkOptionAndOptionValue(
|
|
23059
|
+
var foundItem = _this.article.checkOptionAndOptionValue(OP, _ops.valCodex);
|
|
22981
23060
|
if ((foundItem === null || foundItem === void 0 ? void 0 : foundItem.opv) instanceof ArticleOptionValueData) {
|
|
22982
23061
|
if (_ops.visibleOptionValues.get(foundItem.opv.codex) || _ops.visibleOptionValues.get(foundItem.opv.parentCodex)) {
|
|
22983
23062
|
myItem = foundItem.opv;
|
|
@@ -28682,7 +28761,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28682
28761
|
break;
|
|
28683
28762
|
}
|
|
28684
28763
|
_context.next = 4;
|
|
28685
|
-
return import('./ShelfPlanner-
|
|
28764
|
+
return import('./ShelfPlanner-ac57278a.js');
|
|
28686
28765
|
case 4:
|
|
28687
28766
|
_yield$import = _context.sent;
|
|
28688
28767
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -33328,7 +33407,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
33328
33407
|
break;
|
|
33329
33408
|
}
|
|
33330
33409
|
_context5.next = 3;
|
|
33331
|
-
return import('./DoorPlanner-
|
|
33410
|
+
return import('./DoorPlanner-6e3a0841.js');
|
|
33332
33411
|
case 3:
|
|
33333
33412
|
_yield$import = _context5.sent;
|
|
33334
33413
|
DoorPlanner = _yield$import["default"];
|
|
@@ -36209,7 +36288,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36209
36288
|
return _context2.abrupt("return", 1);
|
|
36210
36289
|
case 3:
|
|
36211
36290
|
if (!orderline.IsPartlistArticle) {
|
|
36212
|
-
variantValues = catalogData.repairVariantValues(orderline.getVariantValues(), orderline.ArticleCodex);
|
|
36291
|
+
variantValues = catalogData.repairVariantValues(orderline.getVariantValues(set.CatalogData.isIDMFormat), orderline.ArticleCodex);
|
|
36213
36292
|
toLoadArticles.push({
|
|
36214
36293
|
catalogCodex: catalogData.catalogCodex,
|
|
36215
36294
|
articleCodex: orderline.ArticleCodex,
|
|
@@ -36751,10 +36830,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36751
36830
|
return _regeneratorRuntime.wrap(function _callee7$(_context9) {
|
|
36752
36831
|
while (1) switch (_context9.prev = _context9.next) {
|
|
36753
36832
|
case 0:
|
|
36754
|
-
|
|
36755
|
-
_context9.next = 3;
|
|
36833
|
+
_context9.next = 2;
|
|
36756
36834
|
return set.plannerHandler.movePlannerElements(set.getSetId(), elementId, absoluteMoveIndex);
|
|
36757
|
-
case
|
|
36835
|
+
case 2:
|
|
36758
36836
|
case "end":
|
|
36759
36837
|
return _context9.stop();
|
|
36760
36838
|
}
|
|
@@ -36785,7 +36863,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36785
36863
|
while (1) switch (_context10.prev = _context10.next) {
|
|
36786
36864
|
case 0:
|
|
36787
36865
|
allElementsToCopy = set.plannerHandler.getPlannerElementsInfluencedByCopy(set.getSetId(), elementId, copyInfo);
|
|
36788
|
-
articleCopyRelation =
|
|
36866
|
+
articleCopyRelation = []; // array because can be multiple times the same obj
|
|
36789
36867
|
newSelectedArticle = undefined;
|
|
36790
36868
|
i = 0;
|
|
36791
36869
|
case 4:
|
|
@@ -36798,7 +36876,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36798
36876
|
case 7:
|
|
36799
36877
|
newArticle = _context10.sent;
|
|
36800
36878
|
if (newSelectedArticle == undefined) newSelectedArticle = newArticle;
|
|
36801
|
-
articleCopyRelation.
|
|
36879
|
+
articleCopyRelation.push({
|
|
36880
|
+
key: allElementsToCopy[i],
|
|
36881
|
+
value: newArticle.basketId
|
|
36882
|
+
});
|
|
36802
36883
|
case 10:
|
|
36803
36884
|
i++;
|
|
36804
36885
|
_context10.next = 4;
|
|
@@ -38415,7 +38496,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38415
38496
|
value: (function () {
|
|
38416
38497
|
var _updateArticlesOptionStatesOfActSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
|
|
38417
38498
|
var _resultPlannerUpdate;
|
|
38418
|
-
var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle, rpu, copyIndex;
|
|
38499
|
+
var elementsToDeleteById, targetArticlesToUpdateOnly, previousValues, articles, article, optState, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle, rpu, copyIndex;
|
|
38419
38500
|
return _regeneratorRuntime.wrap(function _callee28$(_context30) {
|
|
38420
38501
|
while (1) switch (_context30.prev = _context30.next) {
|
|
38421
38502
|
case 0:
|
|
@@ -38429,50 +38510,64 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38429
38510
|
} else {
|
|
38430
38511
|
targetArticlesToUpdateOnly = targetArticlesWithNewValues;
|
|
38431
38512
|
}
|
|
38432
|
-
|
|
38513
|
+
previousValues = {};
|
|
38514
|
+
articles = set.getDivaArticles();
|
|
38515
|
+
if (articles && targetArticlesWithNewValues && targetArticlesWithNewValues.length > 0 && myValues) {
|
|
38516
|
+
article = articles[targetArticlesWithNewValues[0]];
|
|
38517
|
+
optState = article === null || article === void 0 ? void 0 : article.getArticleJsonVariantValues();
|
|
38518
|
+
previousValues = structuredClone(optState);
|
|
38519
|
+
}
|
|
38520
|
+
_context30.next = 8;
|
|
38433
38521
|
return articleHandlerInstance.updateArticlesOptionStates(myValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
|
|
38434
|
-
case
|
|
38522
|
+
case 8:
|
|
38435
38523
|
retValues = _context30.sent;
|
|
38436
38524
|
targetArticlesWithNewValues = retValues.targetArticlesToUpdate;
|
|
38437
38525
|
if (!(retValues.partlistArticlesToLoad.length > 0)) {
|
|
38438
|
-
_context30.next =
|
|
38526
|
+
_context30.next = 19;
|
|
38439
38527
|
break;
|
|
38440
38528
|
}
|
|
38441
38529
|
diff = targetArticlesToUpdateOnly.length - Object.keys(set.getDivaArticles()).length;
|
|
38442
38530
|
if (!(diff == 0 || partlistDiff == diff)) {
|
|
38443
|
-
_context30.next =
|
|
38531
|
+
_context30.next = 17;
|
|
38444
38532
|
break;
|
|
38445
38533
|
}
|
|
38446
|
-
_context30.next =
|
|
38534
|
+
_context30.next = 15;
|
|
38447
38535
|
return articleHandlerInstance.correctPartlistArticlesByGlobalRules(set, retValues.partlistArticlesToLoad, set.CatalogData.bundleRules, {
|
|
38448
38536
|
doChange: false
|
|
38449
38537
|
});
|
|
38450
|
-
case
|
|
38451
|
-
_context30.next =
|
|
38538
|
+
case 15:
|
|
38539
|
+
_context30.next = 19;
|
|
38452
38540
|
break;
|
|
38453
|
-
case
|
|
38454
|
-
_context30.next =
|
|
38541
|
+
case 17:
|
|
38542
|
+
_context30.next = 19;
|
|
38455
38543
|
return this.updateArticlesOptionStatesOfActSet(set, {}, targetArticlesWithNewValues, ignorePlanner, from, diff);
|
|
38456
|
-
case
|
|
38544
|
+
case 19:
|
|
38457
38545
|
if (!(from !== 'initializingPartlist')) {
|
|
38458
|
-
_context30.next =
|
|
38546
|
+
_context30.next = 22;
|
|
38459
38547
|
break;
|
|
38460
38548
|
}
|
|
38461
|
-
_context30.next =
|
|
38549
|
+
_context30.next = 22;
|
|
38462
38550
|
return this.updateEdoArticles(set, retValues.newEDOExtraArticles);
|
|
38463
|
-
case
|
|
38551
|
+
case 22:
|
|
38464
38552
|
if (set.CatalogData.hasAlternateRenderings) set.CatalogData.updateAlternativeRenderings(set.getDivaArticles());
|
|
38465
38553
|
|
|
38466
38554
|
//Update Planner - check if planner data changed
|
|
38467
38555
|
if (!(!ignorePlanner && from != 'calcVariant')) {
|
|
38468
|
-
_context30.next =
|
|
38556
|
+
_context30.next = 64;
|
|
38469
38557
|
break;
|
|
38470
38558
|
}
|
|
38471
38559
|
targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
|
|
38472
|
-
_context30.next =
|
|
38560
|
+
_context30.next = 27;
|
|
38473
38561
|
return set.plannerHandler.updatePlanner(set.getSetId(), myValues, targetElementIds);
|
|
38474
|
-
case
|
|
38562
|
+
case 27:
|
|
38475
38563
|
resultPlannerUpdate = _context30.sent;
|
|
38564
|
+
if (!resultPlannerUpdate.failed) {
|
|
38565
|
+
_context30.next = 31;
|
|
38566
|
+
break;
|
|
38567
|
+
}
|
|
38568
|
+
_context30.next = 31;
|
|
38569
|
+
return articleHandlerInstance.updateArticlesOptionStates(previousValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
|
|
38570
|
+
case 31:
|
|
38476
38571
|
elementsToDeleteById = resultPlannerUpdate.elemIdsToDelete;
|
|
38477
38572
|
for (i = 0; i < resultPlannerUpdate.elemIdsToDelete.length; i++) {
|
|
38478
38573
|
articleToDel = set.getArticleByElementId(resultPlannerUpdate.elemIdsToDelete[i]);
|
|
@@ -38482,55 +38577,58 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38482
38577
|
}
|
|
38483
38578
|
}
|
|
38484
38579
|
if (!resultPlannerUpdate.doDeleteBackGrid) {
|
|
38485
|
-
_context30.next =
|
|
38580
|
+
_context30.next = 40;
|
|
38486
38581
|
break;
|
|
38487
38582
|
}
|
|
38488
|
-
_context30.next =
|
|
38583
|
+
_context30.next = 36;
|
|
38489
38584
|
return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[0], false, resultPlannerUpdate.deletionType);
|
|
38490
|
-
case
|
|
38585
|
+
case 36:
|
|
38491
38586
|
result = _context30.sent;
|
|
38492
38587
|
//Others are deleted recursive
|
|
38493
38588
|
if (result.selectElementId) {
|
|
38494
38589
|
resultPlannerUpdate.elementIdsToUpdateSelection = [result.selectElementId];
|
|
38495
38590
|
}
|
|
38496
|
-
_context30.next =
|
|
38591
|
+
_context30.next = 47;
|
|
38497
38592
|
break;
|
|
38498
|
-
case
|
|
38593
|
+
case 40:
|
|
38499
38594
|
i = 0;
|
|
38500
|
-
case
|
|
38595
|
+
case 41:
|
|
38501
38596
|
if (!(i < resultPlannerUpdate.elemIdsToDelete.length)) {
|
|
38502
|
-
_context30.next =
|
|
38597
|
+
_context30.next = 47;
|
|
38503
38598
|
break;
|
|
38504
38599
|
}
|
|
38505
|
-
_context30.next =
|
|
38600
|
+
_context30.next = 44;
|
|
38506
38601
|
return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[i], false, resultPlannerUpdate.deletionType);
|
|
38507
|
-
case
|
|
38602
|
+
case 44:
|
|
38508
38603
|
i++;
|
|
38509
|
-
_context30.next =
|
|
38604
|
+
_context30.next = 41;
|
|
38510
38605
|
break;
|
|
38511
|
-
case
|
|
38606
|
+
case 47:
|
|
38512
38607
|
if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
|
|
38513
|
-
_context30.next =
|
|
38608
|
+
_context30.next = 63;
|
|
38514
38609
|
break;
|
|
38515
38610
|
}
|
|
38516
38611
|
//Todo copy these elements
|
|
38517
|
-
articleCopyRelation =
|
|
38612
|
+
articleCopyRelation = [];
|
|
38518
38613
|
i = 0;
|
|
38519
|
-
case
|
|
38614
|
+
case 50:
|
|
38520
38615
|
if (!(i < resultPlannerUpdate.elementIdToCopy.length)) {
|
|
38521
|
-
_context30.next =
|
|
38616
|
+
_context30.next = 58;
|
|
38522
38617
|
break;
|
|
38523
38618
|
}
|
|
38524
|
-
_context30.next =
|
|
38619
|
+
_context30.next = 53;
|
|
38525
38620
|
return this.copyArticleByElementId(set, resultPlannerUpdate.elementIdToCopy[i], resultPlannerUpdate.ignoreOptionsToCopy);
|
|
38526
|
-
case
|
|
38621
|
+
case 53:
|
|
38527
38622
|
newArticle = _context30.sent;
|
|
38528
|
-
articleCopyRelation.
|
|
38529
|
-
|
|
38623
|
+
articleCopyRelation.push({
|
|
38624
|
+
key: resultPlannerUpdate.elementIdToCopy[i],
|
|
38625
|
+
value: newArticle.basketId
|
|
38626
|
+
});
|
|
38627
|
+
case 55:
|
|
38530
38628
|
i++;
|
|
38531
|
-
_context30.next =
|
|
38629
|
+
_context30.next = 50;
|
|
38532
38630
|
break;
|
|
38533
|
-
case
|
|
38631
|
+
case 58:
|
|
38534
38632
|
rpu = resultPlannerUpdate;
|
|
38535
38633
|
copyIndex = {
|
|
38536
38634
|
x: rpu.copyDPType == 'AVL' ? -1 : rpu.copyDPType == 'AVR' ? 1 : 0,
|
|
@@ -38538,25 +38636,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38538
38636
|
z: rpu.copyType == 'BoxPlanner_backside' ? -1 : 0
|
|
38539
38637
|
};
|
|
38540
38638
|
if (!(resultPlannerUpdate.copyType == 'BoxPlanner_backside')) {
|
|
38541
|
-
_context30.next =
|
|
38639
|
+
_context30.next = 63;
|
|
38542
38640
|
break;
|
|
38543
38641
|
}
|
|
38544
|
-
_context30.next =
|
|
38642
|
+
_context30.next = 63;
|
|
38545
38643
|
return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
|
|
38546
38644
|
copyIndex: copyIndex,
|
|
38547
38645
|
copyType: resultPlannerUpdate.copyType,
|
|
38548
38646
|
changedOPT: resultPlannerUpdate.changedOPT,
|
|
38549
38647
|
targetElements: resultPlannerUpdate.targetElements
|
|
38550
38648
|
});
|
|
38551
|
-
case
|
|
38649
|
+
case 63:
|
|
38552
38650
|
this.updatePosNrOfAccessoiresOfTargetArticles(set, targetArticlesWithNewValues);
|
|
38553
|
-
case
|
|
38651
|
+
case 64:
|
|
38554
38652
|
return _context30.abrupt("return", {
|
|
38555
38653
|
articleCountChanged: elementsToDeleteById.length > 0,
|
|
38556
38654
|
elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
|
|
38557
38655
|
setId: set.getSetId()
|
|
38558
38656
|
});
|
|
38559
|
-
case
|
|
38657
|
+
case 65:
|
|
38560
38658
|
case "end":
|
|
38561
38659
|
return _context30.stop();
|
|
38562
38660
|
}
|
|
@@ -39086,7 +39184,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
39086
39184
|
BasketModelDesc: catalogData.longDescription,
|
|
39087
39185
|
BasketModelDesc_locales: catalogData.longDescription_locales,
|
|
39088
39186
|
CatalogCodex: catalogData.catalogCodex,
|
|
39089
|
-
SerieId: catalogData.isIDMFormat ? catalogData.
|
|
39187
|
+
SerieId: catalogData.isIDMFormat ? catalogData.serieId : undefined,
|
|
39090
39188
|
CatalogName: catalogData.origCatalogName,
|
|
39091
39189
|
CatalogName_locales: catalogData.name_locales,
|
|
39092
39190
|
CatalogOfflineVersion: catalogData.offlineVersion,
|
|
@@ -40369,7 +40467,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40369
40467
|
}
|
|
40370
40468
|
}, {
|
|
40371
40469
|
key: "fillBaksetforOnWebPlanerConfigChange",
|
|
40372
|
-
value: function fillBaksetforOnWebPlanerConfigChange(set, newBasket, options, isInit) {
|
|
40470
|
+
value: function fillBaksetforOnWebPlanerConfigChange(set, newBasket, options, isInit, eventKey) {
|
|
40373
40471
|
var _this$plannerConfig$a6;
|
|
40374
40472
|
this.setBasketData(this.actDivaNr, newBasket);
|
|
40375
40473
|
var changedValues = {};
|
|
@@ -40480,7 +40578,8 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40480
40578
|
changedValues: changedValues,
|
|
40481
40579
|
variantValues: variantValues,
|
|
40482
40580
|
isInit: isInit,
|
|
40483
|
-
sendToSap: sendToSap
|
|
40581
|
+
sendToSap: sendToSap,
|
|
40582
|
+
eventKey: eventKey
|
|
40484
40583
|
});
|
|
40485
40584
|
(_this$plannerConfig$a6 = this.plannerConfig.actions) === null || _this$plannerConfig$a6 === void 0 || _this$plannerConfig$a6.onEvent({
|
|
40486
40585
|
type: 'onWebPlanerConfigChange',
|
|
@@ -40501,7 +40600,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40501
40600
|
break;
|
|
40502
40601
|
case 3:
|
|
40503
40602
|
_context12.next = 5;
|
|
40504
|
-
return import('./PfisterWWSHandler-
|
|
40603
|
+
return import('./PfisterWWSHandler-41c995d8.js');
|
|
40505
40604
|
case 5:
|
|
40506
40605
|
_yield$import = _context12.sent;
|
|
40507
40606
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -40509,7 +40608,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40509
40608
|
return _context12.abrupt("break", 27);
|
|
40510
40609
|
case 9:
|
|
40511
40610
|
_context12.next = 11;
|
|
40512
|
-
return import('./LiviqueWWSHandler-
|
|
40611
|
+
return import('./LiviqueWWSHandler-108cb348.js');
|
|
40513
40612
|
case 11:
|
|
40514
40613
|
_yield$import2 = _context12.sent;
|
|
40515
40614
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -40517,7 +40616,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40517
40616
|
return _context12.abrupt("break", 27);
|
|
40518
40617
|
case 15:
|
|
40519
40618
|
_context12.next = 17;
|
|
40520
|
-
return import('./SeriousBasketHandler-
|
|
40619
|
+
return import('./SeriousBasketHandler-23209e7b.js');
|
|
40521
40620
|
case 17:
|
|
40522
40621
|
_yield$import3 = _context12.sent;
|
|
40523
40622
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -40525,7 +40624,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40525
40624
|
return _context12.abrupt("break", 27);
|
|
40526
40625
|
case 21:
|
|
40527
40626
|
_context12.next = 23;
|
|
40528
|
-
return import('./StandardWWSHandler-
|
|
40627
|
+
return import('./StandardWWSHandler-6959f79c.js');
|
|
40529
40628
|
case 23:
|
|
40530
40629
|
_yield$import4 = _context12.sent;
|
|
40531
40630
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -41949,7 +42048,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
41949
42048
|
while (1) switch (_context3.prev = _context3.next) {
|
|
41950
42049
|
case 0:
|
|
41951
42050
|
_context3.next = 2;
|
|
41952
|
-
return import('./Host3DSignalR-
|
|
42051
|
+
return import('./Host3DSignalR-e8cf0b3e.js');
|
|
41953
42052
|
case 2:
|
|
41954
42053
|
_yield$import = _context3.sent;
|
|
41955
42054
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -43475,7 +43574,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43475
43574
|
key: "updatePlanner",
|
|
43476
43575
|
value: (function () {
|
|
43477
43576
|
var _updatePlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(setId, changedOPT, targetElementIds) {
|
|
43478
|
-
var
|
|
43577
|
+
var _this$plannerHandlerF, _this$plannerHandlerF2;
|
|
43578
|
+
var result;
|
|
43479
43579
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
43480
43580
|
while (1) switch (_context2.prev = _context2.next) {
|
|
43481
43581
|
case 0:
|
|
@@ -43485,7 +43585,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43485
43585
|
}
|
|
43486
43586
|
return _context2.abrupt("return", {
|
|
43487
43587
|
elemIdsToDelete: [],
|
|
43488
|
-
doDeleteBackGrid: false
|
|
43588
|
+
doDeleteBackGrid: false,
|
|
43589
|
+
failed: false
|
|
43489
43590
|
});
|
|
43490
43591
|
case 2:
|
|
43491
43592
|
//Nothing changes, so do nothing
|
|
@@ -43494,9 +43595,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43494
43595
|
return this.plannerList.get(setId).updatePlanner(changedOPT, targetElementIds);
|
|
43495
43596
|
case 5:
|
|
43496
43597
|
result = _context2.sent;
|
|
43497
|
-
if (result.viewMessageCodex && result.viewMessageCodex != '')
|
|
43498
|
-
(_this$plannerHandlerF = (_this$plannerHandlerF2 = this.plannerHandlerFunctions).updatePlannerMsgContainer) === null || _this$plannerHandlerF === void 0 || _this$plannerHandlerF.call(_this$plannerHandlerF2, 'UPDATEPLANNER_INFO', true, 'INFO', result.viewMessageCodex, true, 5000);
|
|
43499
|
-
}
|
|
43598
|
+
if (result.viewMessageCodex && result.viewMessageCodex != '') (_this$plannerHandlerF = (_this$plannerHandlerF2 = this.plannerHandlerFunctions).updatePlannerMsgContainer) === null || _this$plannerHandlerF === void 0 || _this$plannerHandlerF.call(_this$plannerHandlerF2, 'UPDATEPLANNER_INFO', true, 'INFO', result.viewMessageCodex, true, 5000);
|
|
43500
43599
|
this.setPlannerHandler.updateSetPosNr(this.plannerList);
|
|
43501
43600
|
DivaUtils.endSpanOfApm('DivaPlannerHandler updatePlanner');
|
|
43502
43601
|
return _context2.abrupt("return", result);
|
|
@@ -43607,7 +43706,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43607
43706
|
break;
|
|
43608
43707
|
case 8:
|
|
43609
43708
|
_context4.next = 10;
|
|
43610
|
-
return import('./DivaStandardPlanner-
|
|
43709
|
+
return import('./DivaStandardPlanner-15cc1700.js');
|
|
43611
43710
|
case 10:
|
|
43612
43711
|
_yield$import = _context4.sent;
|
|
43613
43712
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -43618,7 +43717,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43618
43717
|
return _context4.abrupt("break", 21);
|
|
43619
43718
|
case 15:
|
|
43620
43719
|
_context4.next = 17;
|
|
43621
|
-
return import('./DivaBoxPlanner-
|
|
43720
|
+
return import('./DivaBoxPlanner-90c95fe0.js');
|
|
43622
43721
|
case 17:
|
|
43623
43722
|
_yield$import2 = _context4.sent;
|
|
43624
43723
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -45024,7 +45123,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45024
45123
|
deletionResult = _context4.sent;
|
|
45025
45124
|
(_this$actions7 = _this.actions) === null || _this$actions7 === void 0 || (_this$actions7$toggle = _this$actions7.toggleLoading) === null || _this$actions7$toggle === void 0 || _this$actions7$toggle.call(_this$actions7, 'plannerswitch' + articleCodex, false, true);
|
|
45026
45125
|
initParams.oldPlannerTransform = deletionResult.oldTransform;
|
|
45027
|
-
initParams.variantValues = _objectSpread$6(_objectSpread$6({}, variantValues), {}, _defineProperty({}, (!set.CatalogData.isIDMFormat ? 'OPT' : '') + 'PLANNERSWITCH', (!set.CatalogData.isIDMFormat ? '
|
|
45126
|
+
initParams.variantValues = _objectSpread$6(_objectSpread$6({}, variantValues), {}, _defineProperty({}, (!set.CatalogData.isIDMFormat ? 'OPT' : '') + 'PLANNERSWITCH', (!set.CatalogData.isIDMFormat ? 'OPV' : '') + articleCodex));
|
|
45028
45127
|
_context4.next = 11;
|
|
45029
45128
|
return setHandlerInstance.addPlannerElement(set, articleCodex, initParams);
|
|
45030
45129
|
case 11:
|
|
@@ -45069,7 +45168,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45069
45168
|
retVal = _context5.sent;
|
|
45070
45169
|
(_this$actions10 = _this.actions) === null || _this$actions10 === void 0 || (_this$actions10$toggl = _this$actions10.toggleLoading) === null || _this$actions10$toggl === void 0 || _this$actions10$toggl.call(_this$actions10, 'LoadingArticle', false, false);
|
|
45071
45170
|
if (retVal !== false) {
|
|
45072
|
-
_this.loadShelfPlannerItems(paletteId, configStepKey, '
|
|
45171
|
+
_this.loadShelfPlannerItems(paletteId, configStepKey, 'add_accessoire');
|
|
45073
45172
|
_this.updateConfigStructure();
|
|
45074
45173
|
_this.updatePriceInView();
|
|
45075
45174
|
_this.updateViewButtonsDependigOnConfigStructure();
|
|
@@ -45315,7 +45414,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45315
45414
|
*/
|
|
45316
45415
|
//onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
|
|
45317
45416
|
_defineProperty(this, "doConfigure", /*#__PURE__*/function () {
|
|
45318
|
-
var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents) {
|
|
45417
|
+
var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents, eventKey) {
|
|
45319
45418
|
var _this$actions13, _this$actions13$toggl, _this$actions14, _this$actions14$toggl;
|
|
45320
45419
|
var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4;
|
|
45321
45420
|
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
@@ -45353,7 +45452,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45353
45452
|
break;
|
|
45354
45453
|
}
|
|
45355
45454
|
_context12.next = 21;
|
|
45356
|
-
return _this.fillBaksetforOnWebPlanerConfigChange(myValues);
|
|
45455
|
+
return _this.fillBaksetforOnWebPlanerConfigChange(myValues, undefined, eventKey);
|
|
45357
45456
|
case 21:
|
|
45358
45457
|
_this.configuratorChangeLog('onConfiguratorStep', myValues);
|
|
45359
45458
|
case 22:
|
|
@@ -45362,12 +45461,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45362
45461
|
}
|
|
45363
45462
|
}, _callee12);
|
|
45364
45463
|
}));
|
|
45365
|
-
return function (_x47, _x48, _x49, _x50) {
|
|
45464
|
+
return function (_x47, _x48, _x49, _x50, _x51) {
|
|
45366
45465
|
return _ref12.apply(this, arguments);
|
|
45367
45466
|
};
|
|
45368
45467
|
}());
|
|
45369
45468
|
_defineProperty(this, "fillBaksetforOnWebPlanerConfigChange", /*#__PURE__*/function () {
|
|
45370
|
-
var _ref13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(myValues, isInit) {
|
|
45469
|
+
var _ref13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(myValues, isInit, eventKey) {
|
|
45371
45470
|
var _myValues;
|
|
45372
45471
|
var set, articles, article;
|
|
45373
45472
|
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
@@ -45409,14 +45508,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45409
45508
|
_context13.t2 = _context13.sent;
|
|
45410
45509
|
_context13.t3 = Object.keys((_myValues = myValues) !== null && _myValues !== void 0 ? _myValues : {});
|
|
45411
45510
|
_context13.t4 = isInit;
|
|
45412
|
-
|
|
45413
|
-
|
|
45511
|
+
_context13.t5 = eventKey;
|
|
45512
|
+
return _context13.abrupt("return", _context13.t0.fillBaksetforOnWebPlanerConfigChange.call(_context13.t0, _context13.t1, _context13.t2, _context13.t3, _context13.t4, _context13.t5));
|
|
45513
|
+
case 20:
|
|
45414
45514
|
case "end":
|
|
45415
45515
|
return _context13.stop();
|
|
45416
45516
|
}
|
|
45417
45517
|
}, _callee13);
|
|
45418
45518
|
}));
|
|
45419
|
-
return function (
|
|
45519
|
+
return function (_x52, _x53, _x54) {
|
|
45420
45520
|
return _ref13.apply(this, arguments);
|
|
45421
45521
|
};
|
|
45422
45522
|
}());
|
|
@@ -45463,6 +45563,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45463
45563
|
this.api = new DivaApiHandler(this.plannerConfig, this.handler);
|
|
45464
45564
|
this.api.setI18n(this.i18n);
|
|
45465
45565
|
this.api.setActions(this.actions);
|
|
45566
|
+
this.api.setState(this.state);
|
|
45466
45567
|
this.ReturnTo = this.plannerConfig.returnTo;
|
|
45467
45568
|
LOG$1.startTransaction({
|
|
45468
45569
|
event: 'onInitializeConfigurator',
|
|
@@ -45471,26 +45572,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45471
45572
|
warningTime: 2000,
|
|
45472
45573
|
errorTime: 4000
|
|
45473
45574
|
});
|
|
45474
|
-
_context14.next =
|
|
45575
|
+
_context14.next = 8;
|
|
45475
45576
|
return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
|
|
45476
|
-
case
|
|
45577
|
+
case 8:
|
|
45477
45578
|
this.plannerHandler = new DivaPlannerHandler(false);
|
|
45478
45579
|
viewReadyPromise = this.initViewApiDependencies();
|
|
45479
|
-
_context14.next =
|
|
45580
|
+
_context14.next = 12;
|
|
45480
45581
|
return this.divaBasketHandler.initializeBasket(this.api);
|
|
45481
|
-
case
|
|
45582
|
+
case 12:
|
|
45482
45583
|
loadSuccessful = _context14.sent;
|
|
45483
45584
|
if (this.plannerConfig.configuratorSessionId === undefined && (!this.divaBasketHandler.hasConfiguratorSessionIdGetter || DivaUtils.businessMetrics.getConfiguratorSessionId() === undefined)) {
|
|
45484
45585
|
DivaUtils.businessMetrics.setConfiguratorSessionId();
|
|
45485
45586
|
}
|
|
45486
45587
|
if (!loadSuccessful) {
|
|
45487
|
-
_context14.next =
|
|
45588
|
+
_context14.next = 31;
|
|
45488
45589
|
break;
|
|
45489
45590
|
}
|
|
45490
|
-
_context14.prev =
|
|
45491
|
-
_context14.next =
|
|
45591
|
+
_context14.prev = 15;
|
|
45592
|
+
_context14.next = 18;
|
|
45492
45593
|
return this.initializeSets(loadSuccessful, viewReadyPromise);
|
|
45493
|
-
case
|
|
45594
|
+
case 18:
|
|
45494
45595
|
ret = _context14.sent;
|
|
45495
45596
|
set = this.actSet();
|
|
45496
45597
|
if (ret && set && set.CatalogData.archived) {
|
|
@@ -45501,25 +45602,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45501
45602
|
});
|
|
45502
45603
|
}
|
|
45503
45604
|
return _context14.abrupt("return", ret);
|
|
45504
|
-
case
|
|
45505
|
-
_context14.prev =
|
|
45506
|
-
_context14.t0 = _context14["catch"](
|
|
45605
|
+
case 24:
|
|
45606
|
+
_context14.prev = 24;
|
|
45607
|
+
_context14.t0 = _context14["catch"](15);
|
|
45507
45608
|
LOG$1.error(_context14.t0);
|
|
45508
45609
|
this.onInitializationError(_context14.t0);
|
|
45509
45610
|
return _context14.abrupt("return", false);
|
|
45510
|
-
case
|
|
45511
|
-
_context14.next =
|
|
45611
|
+
case 29:
|
|
45612
|
+
_context14.next = 34;
|
|
45512
45613
|
break;
|
|
45513
|
-
case
|
|
45614
|
+
case 31:
|
|
45514
45615
|
this.onInitializationError();
|
|
45515
45616
|
//fehler beim laden vom basket..
|
|
45516
45617
|
LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
|
|
45517
45618
|
return _context14.abrupt("return", false);
|
|
45518
|
-
case
|
|
45619
|
+
case 34:
|
|
45519
45620
|
case "end":
|
|
45520
45621
|
return _context14.stop();
|
|
45521
45622
|
}
|
|
45522
|
-
}, _callee14, this, [[
|
|
45623
|
+
}, _callee14, this, [[15, 24]]);
|
|
45523
45624
|
}));
|
|
45524
45625
|
function initialize() {
|
|
45525
45626
|
return _initialize.apply(this, arguments);
|
|
@@ -45635,7 +45736,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45635
45736
|
}
|
|
45636
45737
|
}, _callee15, this);
|
|
45637
45738
|
}));
|
|
45638
|
-
function initializeSets(
|
|
45739
|
+
function initializeSets(_x55, _x56) {
|
|
45639
45740
|
return _initializeSets.apply(this, arguments);
|
|
45640
45741
|
}
|
|
45641
45742
|
return initializeSets;
|
|
@@ -45892,7 +45993,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45892
45993
|
}
|
|
45893
45994
|
}, _callee17, this);
|
|
45894
45995
|
}));
|
|
45895
|
-
function runInitMode(
|
|
45996
|
+
function runInitMode(_x57) {
|
|
45896
45997
|
return _runInitMode.apply(this, arguments);
|
|
45897
45998
|
}
|
|
45898
45999
|
return runInitMode;
|
|
@@ -45956,7 +46057,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45956
46057
|
}
|
|
45957
46058
|
}, _callee18, this);
|
|
45958
46059
|
}));
|
|
45959
|
-
function addSetToActPlanningByDivaNr(
|
|
46060
|
+
function addSetToActPlanningByDivaNr(_x58) {
|
|
45960
46061
|
return _addSetToActPlanningByDivaNr.apply(this, arguments);
|
|
45961
46062
|
}
|
|
45962
46063
|
return addSetToActPlanningByDivaNr;
|
|
@@ -46010,7 +46111,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46010
46111
|
}
|
|
46011
46112
|
}, _callee19, this);
|
|
46012
46113
|
}));
|
|
46013
|
-
function setActSetCurConfigStepKey(
|
|
46114
|
+
function setActSetCurConfigStepKey(_x59) {
|
|
46014
46115
|
return _setActSetCurConfigStepKey.apply(this, arguments);
|
|
46015
46116
|
}
|
|
46016
46117
|
return setActSetCurConfigStepKey;
|
|
@@ -46079,7 +46180,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46079
46180
|
if (!curPlannerViewMode) return;
|
|
46080
46181
|
LOG$1.debug('updatePlannerView in mode: ' + curPlannerViewMode + '; called from ' + callingFrom);
|
|
46081
46182
|
//delete me if you see this
|
|
46082
|
-
|
|
46183
|
+
|
|
46083
46184
|
switch (curPlannerViewMode) {
|
|
46084
46185
|
case '3DCOMB':
|
|
46085
46186
|
setHandlerInstance.update3DPlannerView(true, !hybridInfo || hybridInfo && hybridInfo.focus.adjustZoomInUnity, set, this.getPlannerRenderingSize(), this.getPlanner3DGridEnabled(), 'STREAM', (_this$getDoShow3DDime2 = this.getDoShow3DDimensionLines) === null || _this$getDoShow3DDime2 === void 0 ? void 0 : _this$getDoShow3DDime2.call(this), alternateRenderInfo, hybridInfo ? {
|
|
@@ -46192,16 +46293,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46192
46293
|
}
|
|
46193
46294
|
}, _callee20, this);
|
|
46194
46295
|
}));
|
|
46195
|
-
function deletePlannerElement(
|
|
46296
|
+
function deletePlannerElement(_x60, _x61, _x62) {
|
|
46196
46297
|
return _deletePlannerElement.apply(this, arguments);
|
|
46197
46298
|
}
|
|
46198
46299
|
return deletePlannerElement;
|
|
46199
46300
|
}()
|
|
46200
|
-
/**
|
|
46301
|
+
/**
|
|
46201
46302
|
* This function moves an element from its origin to the desired index
|
|
46202
46303
|
* current implementation is only for the new boxplanner
|
|
46203
|
-
*
|
|
46204
|
-
|
|
46304
|
+
*
|
|
46305
|
+
*/
|
|
46205
46306
|
}, {
|
|
46206
46307
|
key: "movePlannerElement",
|
|
46207
46308
|
value: (function () {
|
|
@@ -46215,19 +46316,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46215
46316
|
_context21.next = 3;
|
|
46216
46317
|
return setHandlerInstance.movePlannerElement(set, elementId, absoluteIndex);
|
|
46217
46318
|
case 3:
|
|
46218
|
-
_context21.sent;
|
|
46219
46319
|
this.updateConfigStructure();
|
|
46220
46320
|
(_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
|
|
46221
46321
|
this.updatePlannerView('MOVE_PLANNER_ELEMENT');
|
|
46222
46322
|
this.updatePriceInView();
|
|
46223
46323
|
this.updateViewButtonsDependigOnConfigStructure();
|
|
46224
|
-
case
|
|
46324
|
+
case 8:
|
|
46225
46325
|
case "end":
|
|
46226
46326
|
return _context21.stop();
|
|
46227
46327
|
}
|
|
46228
46328
|
}, _callee21, this);
|
|
46229
46329
|
}));
|
|
46230
|
-
function movePlannerElement(
|
|
46330
|
+
function movePlannerElement(_x63, _x64, _x65, _x66) {
|
|
46231
46331
|
return _movePlannerElement.apply(this, arguments);
|
|
46232
46332
|
}
|
|
46233
46333
|
return movePlannerElement;
|
|
@@ -46279,7 +46379,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46279
46379
|
}
|
|
46280
46380
|
}, _callee22, this);
|
|
46281
46381
|
}));
|
|
46282
|
-
function copyPlannerElement(
|
|
46382
|
+
function copyPlannerElement(_x67, _x68, _x69, _x70) {
|
|
46283
46383
|
return _copyPlannerElement.apply(this, arguments);
|
|
46284
46384
|
}
|
|
46285
46385
|
return copyPlannerElement;
|
|
@@ -46336,7 +46436,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46336
46436
|
case 10:
|
|
46337
46437
|
freeShelfGrids = _context23.t0;
|
|
46338
46438
|
plannedShelfGrids = setHandlerInstance.getPlannedShelfGrids(set);
|
|
46339
|
-
LOG$1.debug('TOULA', 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
|
|
46340
46439
|
LOG$1.debug('update free from: ' + from, 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
|
|
46341
46440
|
(_this$updateFreePlace = this.updateFreePlacesOnGrids) === null || _this$updateFreePlace === void 0 || _this$updateFreePlace.call(this, {
|
|
46342
46441
|
freeShelfGrids: freeShelfGrids,
|
|
@@ -46346,13 +46445,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46346
46445
|
freeShelfGrids: freeShelfGrids,
|
|
46347
46446
|
plannedShelfGrids: plannedShelfGrids
|
|
46348
46447
|
});
|
|
46349
|
-
case
|
|
46448
|
+
case 15:
|
|
46350
46449
|
case "end":
|
|
46351
46450
|
return _context23.stop();
|
|
46352
46451
|
}
|
|
46353
46452
|
}, _callee23, this);
|
|
46354
46453
|
}));
|
|
46355
|
-
function getFreePlacesOnGrids(
|
|
46454
|
+
function getFreePlacesOnGrids(_x71, _x72) {
|
|
46356
46455
|
return _getFreePlacesOnGrids.apply(this, arguments);
|
|
46357
46456
|
}
|
|
46358
46457
|
return getFreePlacesOnGrids;
|
|
@@ -46363,7 +46462,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46363
46462
|
var set = this.actSet();
|
|
46364
46463
|
if (!set) return undefined;
|
|
46365
46464
|
var freeShelfGrids = setHandlerInstance.getFreeToMoveShelfGrids(set, gridName, basketId);
|
|
46366
|
-
LOG$1.debug('TOULA', 'freeShelfGridsMOVING', freeShelfGrids);
|
|
46367
46465
|
return freeShelfGrids;
|
|
46368
46466
|
}
|
|
46369
46467
|
}, {
|
|
@@ -46398,7 +46496,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46398
46496
|
}
|
|
46399
46497
|
}, _callee24, this);
|
|
46400
46498
|
}));
|
|
46401
|
-
function moveShelfItemToGrid(
|
|
46499
|
+
function moveShelfItemToGrid(_x73, _x74, _x75, _x76) {
|
|
46402
46500
|
return _moveShelfItemToGrid.apply(this, arguments);
|
|
46403
46501
|
}
|
|
46404
46502
|
return moveShelfItemToGrid;
|
|
@@ -46440,7 +46538,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46440
46538
|
}
|
|
46441
46539
|
}, _callee25, this);
|
|
46442
46540
|
}));
|
|
46443
|
-
function resetArticle(
|
|
46541
|
+
function resetArticle(_x77) {
|
|
46444
46542
|
return _resetArticle.apply(this, arguments);
|
|
46445
46543
|
}
|
|
46446
46544
|
return resetArticle;
|
|
@@ -46500,7 +46598,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46500
46598
|
}
|
|
46501
46599
|
}, _callee26, this);
|
|
46502
46600
|
}));
|
|
46503
|
-
function checkMatchingProducts(
|
|
46601
|
+
function checkMatchingProducts(_x78) {
|
|
46504
46602
|
return _checkMatchingProducts.apply(this, arguments);
|
|
46505
46603
|
}
|
|
46506
46604
|
return checkMatchingProducts;
|
|
@@ -46652,7 +46750,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46652
46750
|
}
|
|
46653
46751
|
}, _callee27, this);
|
|
46654
46752
|
}));
|
|
46655
|
-
function saveToBasketWrapper(
|
|
46753
|
+
function saveToBasketWrapper(_x79, _x80, _x81, _x82) {
|
|
46656
46754
|
return _saveToBasketWrapper.apply(this, arguments);
|
|
46657
46755
|
}
|
|
46658
46756
|
return saveToBasketWrapper;
|
|
@@ -46793,7 +46891,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46793
46891
|
}
|
|
46794
46892
|
}, _callee28, this);
|
|
46795
46893
|
}));
|
|
46796
|
-
function saveToBasket(
|
|
46894
|
+
function saveToBasket(_x83, _x84, _x85) {
|
|
46797
46895
|
return _saveToBasket.apply(this, arguments);
|
|
46798
46896
|
}
|
|
46799
46897
|
return saveToBasket;
|
|
@@ -46827,7 +46925,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46827
46925
|
}
|
|
46828
46926
|
}, _callee29, this);
|
|
46829
46927
|
}));
|
|
46830
|
-
function generateAiImageWithReferenceImages(
|
|
46928
|
+
function generateAiImageWithReferenceImages(_x86, _x87) {
|
|
46831
46929
|
return _generateAiImageWithReferenceImages.apply(this, arguments);
|
|
46832
46930
|
}
|
|
46833
46931
|
return generateAiImageWithReferenceImages;
|
|
@@ -46902,7 +47000,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46902
47000
|
}
|
|
46903
47001
|
}, _callee32, this);
|
|
46904
47002
|
}));
|
|
46905
|
-
function createLeadKey(
|
|
47003
|
+
function createLeadKey(_x88) {
|
|
46906
47004
|
return _createLeadKey.apply(this, arguments);
|
|
46907
47005
|
}
|
|
46908
47006
|
return createLeadKey;
|
|
@@ -47125,21 +47223,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47125
47223
|
var _this$actSet28;
|
|
47126
47224
|
return this.api.getHidePlanner() || !!((_this$actSet28 = this.actSet()) !== null && _this$actSet28 !== void 0 && _this$actSet28.CatalogData.useBoxPlanner);
|
|
47127
47225
|
}
|
|
47226
|
+
}, {
|
|
47227
|
+
key: "getFilterForCheckoutButtons",
|
|
47228
|
+
value: function getFilterForCheckoutButtons() {
|
|
47229
|
+
var _this$actSet$CatalogD, _this$actSet29;
|
|
47230
|
+
return (_this$actSet$CatalogD = (_this$actSet29 = this.actSet()) === null || _this$actSet29 === void 0 ? void 0 : _this$actSet29.CatalogData.filterForCheckoutButtons) !== null && _this$actSet$CatalogD !== void 0 ? _this$actSet$CatalogD : [];
|
|
47231
|
+
}
|
|
47128
47232
|
}, {
|
|
47129
47233
|
key: "getAllowRTV",
|
|
47130
47234
|
value: function getAllowRTV() {
|
|
47131
|
-
var _this$state9, _this$
|
|
47235
|
+
var _this$state9, _this$actSet30, _this$state10, _this$actSet31;
|
|
47132
47236
|
if (this.getEnableUnityRtvKombi()) return false;
|
|
47133
47237
|
if ((_this$state9 = this.state) !== null && _this$state9 !== void 0 && _this$state9.organization.settings.forceRTV) return true;
|
|
47134
|
-
if ((_this$
|
|
47135
|
-
if ((_this$state10 = this.state) !== null && _this$state10 !== void 0 && _this$state10.organization.settings.enableRTV && (_this$
|
|
47238
|
+
if ((_this$actSet30 = this.actSet()) !== null && _this$actSet30 !== void 0 && _this$actSet30.CatalogData.divaForceRTV) return true;
|
|
47239
|
+
if ((_this$state10 = this.state) !== null && _this$state10 !== void 0 && _this$state10.organization.settings.enableRTV && (_this$actSet31 = this.actSet()) !== null && _this$actSet31 !== void 0 && _this$actSet31.CatalogData.divaArReady) return true;
|
|
47136
47240
|
return false;
|
|
47137
47241
|
}
|
|
47138
47242
|
}, {
|
|
47139
47243
|
key: "getForceRTV",
|
|
47140
47244
|
value: function getForceRTV() {
|
|
47141
|
-
var _this$
|
|
47142
|
-
return !!((_this$
|
|
47245
|
+
var _this$actSet32;
|
|
47246
|
+
return !!((_this$actSet32 = this.actSet()) !== null && _this$actSet32 !== void 0 && _this$actSet32.CatalogData.divaForceRTV);
|
|
47143
47247
|
}
|
|
47144
47248
|
}, {
|
|
47145
47249
|
key: "getPricePreview",
|
|
@@ -47149,29 +47253,29 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47149
47253
|
}, {
|
|
47150
47254
|
key: "hide2DPlanner",
|
|
47151
47255
|
value: function hide2DPlanner() {
|
|
47152
|
-
var _this$
|
|
47153
|
-
return (_this$
|
|
47256
|
+
var _this$actSet33;
|
|
47257
|
+
return (_this$actSet33 = this.actSet()) === null || _this$actSet33 === void 0 ? void 0 : _this$actSet33.CatalogData.hide2DPlanner;
|
|
47154
47258
|
}
|
|
47155
47259
|
}, {
|
|
47156
47260
|
key: "getAllowQRCodeAR",
|
|
47157
47261
|
value: function getAllowQRCodeAR() {
|
|
47158
|
-
var _this$
|
|
47159
|
-
if (this.api.enableAR && (_this$
|
|
47262
|
+
var _this$actSet34;
|
|
47263
|
+
if (this.api.enableAR && (_this$actSet34 = this.actSet()) !== null && _this$actSet34 !== void 0 && _this$actSet34.CatalogData.divaArReady) return true;
|
|
47160
47264
|
return false;
|
|
47161
47265
|
}
|
|
47162
47266
|
}, {
|
|
47163
47267
|
key: "getEnableUnityRtvKombi",
|
|
47164
47268
|
value: function getEnableUnityRtvKombi() {
|
|
47165
|
-
var _this$
|
|
47269
|
+
var _this$actSet35, _this$actSet36;
|
|
47166
47270
|
// if force rtv disable unity kombi - biohort
|
|
47167
|
-
if ((_this$
|
|
47168
|
-
return ((_this$
|
|
47271
|
+
if ((_this$actSet35 = this.actSet()) !== null && _this$actSet35 !== void 0 && _this$actSet35.CatalogData.divaForceRTV) return false;
|
|
47272
|
+
return ((_this$actSet36 = this.actSet()) === null || _this$actSet36 === void 0 ? void 0 : _this$actSet36.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
|
|
47169
47273
|
}
|
|
47170
47274
|
}, {
|
|
47171
47275
|
key: "getShelfPlannerRTV",
|
|
47172
47276
|
value: function getShelfPlannerRTV() {
|
|
47173
|
-
var _this$
|
|
47174
|
-
return (_this$
|
|
47277
|
+
var _this$actSet37;
|
|
47278
|
+
return (_this$actSet37 = this.actSet()) === null || _this$actSet37 === void 0 ? void 0 : _this$actSet37.CatalogData.useShelfPlannerRTV;
|
|
47175
47279
|
}
|
|
47176
47280
|
}, {
|
|
47177
47281
|
key: "getBasketData",
|
|
@@ -47212,8 +47316,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47212
47316
|
}, {
|
|
47213
47317
|
key: "getCatalogData",
|
|
47214
47318
|
value: function getCatalogData() {
|
|
47215
|
-
var _this$
|
|
47216
|
-
return (_this$
|
|
47319
|
+
var _this$actSet38;
|
|
47320
|
+
return (_this$actSet38 = this.actSet()) === null || _this$actSet38 === void 0 ? void 0 : _this$actSet38.CatalogData;
|
|
47217
47321
|
}
|
|
47218
47322
|
}, {
|
|
47219
47323
|
key: "ReturnTo",
|
|
@@ -47355,7 +47459,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47355
47459
|
}
|
|
47356
47460
|
}, _callee34, this);
|
|
47357
47461
|
}));
|
|
47358
|
-
function addToBasket(
|
|
47462
|
+
function addToBasket(_x89) {
|
|
47359
47463
|
return _addToBasket.apply(this, arguments);
|
|
47360
47464
|
}
|
|
47361
47465
|
return addToBasket;
|
|
@@ -47411,11 +47515,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47411
47515
|
key: "getCurrentBasket",
|
|
47412
47516
|
value: function () {
|
|
47413
47517
|
var _getCurrentBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(event, force, returnTo, dontGoToSummary, hideLoading) {
|
|
47414
|
-
var _this$
|
|
47518
|
+
var _this$actSet39, _this$divaBasketHandl5, _this$onClickAddToBas3;
|
|
47415
47519
|
return _regeneratorRuntime.wrap(function _callee35$(_context35) {
|
|
47416
47520
|
while (1) switch (_context35.prev = _context35.next) {
|
|
47417
47521
|
case 0:
|
|
47418
|
-
if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$
|
|
47522
|
+
if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet39 = this.actSet()) === null || _this$actSet39 === void 0 ? void 0 : _this$actSet39.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) && !(returnTo !== null && returnTo !== void 0 && returnTo.includes('OPEN')))) {
|
|
47419
47523
|
_context35.next = 2;
|
|
47420
47524
|
break;
|
|
47421
47525
|
}
|
|
@@ -47431,7 +47535,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47431
47535
|
}
|
|
47432
47536
|
}, _callee35, this);
|
|
47433
47537
|
}));
|
|
47434
|
-
function getCurrentBasket(
|
|
47538
|
+
function getCurrentBasket(_x90, _x91, _x92, _x93, _x94) {
|
|
47435
47539
|
return _getCurrentBasket.apply(this, arguments);
|
|
47436
47540
|
}
|
|
47437
47541
|
return getCurrentBasket;
|
|
@@ -47678,7 +47782,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47678
47782
|
}
|
|
47679
47783
|
}, _callee36, this);
|
|
47680
47784
|
}));
|
|
47681
|
-
function initApiForLogicOnly(
|
|
47785
|
+
function initApiForLogicOnly(_x95, _x96, _x97, _x98, _x99, _x100, _x101) {
|
|
47682
47786
|
return _initApiForLogicOnly.apply(this, arguments);
|
|
47683
47787
|
}
|
|
47684
47788
|
return initApiForLogicOnly;
|
|
@@ -47747,7 +47851,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47747
47851
|
}
|
|
47748
47852
|
}, _callee38, this);
|
|
47749
47853
|
}));
|
|
47750
|
-
function initBasket(
|
|
47854
|
+
function initBasket(_x102, _x103) {
|
|
47751
47855
|
return _initBasket.apply(this, arguments);
|
|
47752
47856
|
}
|
|
47753
47857
|
return initBasket;
|
|
@@ -47755,9 +47859,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47755
47859
|
}, {
|
|
47756
47860
|
key: "getFavoriteAiRoomKeysFromSet",
|
|
47757
47861
|
value: function getFavoriteAiRoomKeysFromSet() {
|
|
47758
|
-
var _this$
|
|
47862
|
+
var _this$actSet40;
|
|
47759
47863
|
var orderSets = this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr);
|
|
47760
|
-
var actSetId = (_this$
|
|
47864
|
+
var actSetId = (_this$actSet40 = this.actSet()) === null || _this$actSet40 === void 0 ? void 0 : _this$actSet40.getSetId();
|
|
47761
47865
|
var orderSet = orderSets.find(function (os) {
|
|
47762
47866
|
return os.SetID === actSetId;
|
|
47763
47867
|
});
|
|
@@ -47841,7 +47945,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47841
47945
|
}
|
|
47842
47946
|
}, _callee40, this);
|
|
47843
47947
|
}));
|
|
47844
|
-
function handleFavorites(
|
|
47948
|
+
function handleFavorites(_x104) {
|
|
47845
47949
|
return _handleFavorites.apply(this, arguments);
|
|
47846
47950
|
}
|
|
47847
47951
|
return handleFavorites;
|
|
@@ -47895,7 +47999,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47895
47999
|
}
|
|
47896
48000
|
}, _callee41, this);
|
|
47897
48001
|
}));
|
|
47898
|
-
function initSapOrderLinesFromBasket(
|
|
48002
|
+
function initSapOrderLinesFromBasket(_x105, _x106, _x107) {
|
|
47899
48003
|
return _initSapOrderLinesFromBasket.apply(this, arguments);
|
|
47900
48004
|
}
|
|
47901
48005
|
return initSapOrderLinesFromBasket;
|
|
@@ -67538,20 +67642,4 @@ var getOrigProductId = /*#__PURE__*/function () {
|
|
|
67538
67642
|
};
|
|
67539
67643
|
}();
|
|
67540
67644
|
|
|
67541
|
-
|
|
67542
|
-
|
|
67543
|
-
// Simplified usage limits (for anonymous users)
|
|
67544
|
-
|
|
67545
|
-
// Union type to support both formats
|
|
67546
|
-
|
|
67547
|
-
// Type guard to check if usage limits are simplified (anonymous user format)
|
|
67548
|
-
function isSimplifiedUsageLimits(limits) {
|
|
67549
|
-
return 'budget' in limits;
|
|
67550
|
-
}
|
|
67551
|
-
|
|
67552
|
-
// Type guard to check if usage limits are full (authenticated user format)
|
|
67553
|
-
function isFullUsageLimits(limits) {
|
|
67554
|
-
return 'daily' in limits;
|
|
67555
|
-
}
|
|
67556
|
-
|
|
67557
|
-
export { BoundingBox as B, Cell as C, DockingPoint as D, Grid as G, HQRenderScript as H, OptionCatalogData as O, PlannerElementData as P, Rendering as R, Vector3 as V, articleHandlerInstance as a, setHandlerInstance as b, Vector2 as c, DivaWebPlanner as d, DivaArticle as e, DivaCatalogData as f, DivaBasketHandler as g, CatalogPlannerArticleData as h, Vector4 as i, creatRenderOrders as j, getOrigProductId as k, loadAndRepairBasket as l, isSimplifiedUsageLimits as m, isFullUsageLimits as n, summaryHandlerInstance as s };
|
|
67645
|
+
export { BoundingBox as B, Cell as C, DockingPoint as D, Grid as G, HQRenderScript as H, OptionCatalogData as O, PlannerElementData as P, Rendering as R, Vector3 as V, articleHandlerInstance as a, setHandlerInstance as b, Vector2 as c, DivaWebPlanner as d, DivaArticle as e, DivaCatalogData as f, DivaBasketHandler as g, CatalogPlannerArticleData as h, Vector4 as i, creatRenderOrders as j, getOrigProductId as k, loadAndRepairBasket as l, summaryHandlerInstance as s };
|