@crystaldesign/web-planner-logic 25.10.0-beta.3 → 25.10.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-04bf6318.js → DivaBoxPlanner-77eca68a.js} +20 -17
- package/build/cjs/{DivaStandardPlanner-77476193.js → DivaStandardPlanner-3a5228f8.js} +7 -6
- package/build/cjs/{DoorPlanner-f5c079a9.js → DoorPlanner-6d19aafe.js} +1 -1
- package/build/cjs/{Host3DSignalR-57e23024.js → Host3DSignalR-1bae3fb6.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-47a27ec7.js → LiviqueWWSHandler-65ef19a0.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-e44293f5.js → PfisterWWSHandler-5886e9be.js} +1 -1
- package/build/cjs/{PlannerHandler2D-be01ece6.js → PlannerHandler2D-3b1cba3c.js} +9 -876
- package/build/cjs/{SeriousBasketHandler-6934e260.js → SeriousBasketHandler-a3d62cca.js} +1 -1
- package/build/cjs/{ShelfPlanner-d409ac3e.js → ShelfPlanner-7ae2d55f.js} +1 -1
- package/build/cjs/{StandardWWSHandler-5dd8d94a.js → StandardWWSHandler-71759c0e.js} +1 -1
- package/build/cjs/{index-a366532b.js → index-feba8a77.js} +989 -127
- package/build/cjs/index.js +2 -1
- package/build/esm/{DivaBoxPlanner-b09f2e76.js → DivaBoxPlanner-8dc0cf54.js} +17 -14
- package/build/esm/{DivaStandardPlanner-a186b727.js → DivaStandardPlanner-ac2f8d99.js} +3 -2
- package/build/esm/{DoorPlanner-5bdbe66c.js → DoorPlanner-51c94a39.js} +1 -1
- package/build/esm/{Host3DSignalR-b3bc2b02.js → Host3DSignalR-d90e198d.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-1a326919.js → LiviqueWWSHandler-67cd9cc6.js} +1 -1
- package/build/esm/{PfisterWWSHandler-fd75b316.js → PfisterWWSHandler-764e2866.js} +1 -1
- package/build/esm/{PlannerHandler2D-35519ef0.js → PlannerHandler2D-91e5833a.js} +8 -874
- package/build/esm/{SeriousBasketHandler-def7e867.js → SeriousBasketHandler-5de88b02.js} +1 -1
- package/build/esm/{ShelfPlanner-ffbf54ca.js → ShelfPlanner-9e0e3822.js} +1 -1
- package/build/esm/{StandardWWSHandler-91ba6b7c.js → StandardWWSHandler-36fdcc6c.js} +1 -1
- package/build/esm/{index-949457fc.js → index-34ac60e2.js} +989 -128
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/index.d.ts +3 -2
- package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Configuration.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Configuration.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionDataTypes.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/PlannerDataType.d.ts +2 -2
- package/build/types/web-planner-logic/src/interface/Planner/PlannerDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/PlannerElementDataType.d.ts +1 -2
- package/build/types/web-planner-logic/src/interface/Planner/PlannerElementDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts +1 -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/Article/DivaArticle.d.ts +4 -3
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +3 -2
- 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.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts +7 -11
- 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 +9 -8
- 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 +7 -11
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/PlannerHandler2D.d.ts +2 -2
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/PlannerHandler2D.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/SetPlannerHandler.d.ts +4 -4
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/SetPlannerHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +1 -2
- package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +13 -2
- 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/DivaCatalogArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts +4 -8
- package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts.map +1 -1
- package/package.json +2 -2
- package/build/types/web-planner-logic/src/interface/Planner/IDivaPlanner.d.ts +0 -57
- package/build/types/web-planner-logic/src/interface/Planner/IDivaPlanner.d.ts.map +0 -1
- package/build/types/web-planner-logic/src/interface/Planner/IDivaSetPlanner.d.ts +0 -50
- package/build/types/web-planner-logic/src/interface/Planner/IDivaSetPlanner.d.ts.map +0 -1
- package/build/types/web-planner-logic/src/interface/Planner/IDivaViewPlannerElement.d.ts +0 -63
- package/build/types/web-planner-logic/src/interface/Planner/IDivaViewPlannerElement.d.ts.map +0 -1
|
@@ -26,8 +26,8 @@ import _typeof from '@babel/runtime/helpers/typeof';
|
|
|
26
26
|
})();
|
|
27
27
|
|
|
28
28
|
var _excluded = ["type"];
|
|
29
|
-
function ownKeys$
|
|
30
|
-
function _objectSpread$
|
|
29
|
+
function ownKeys$k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
30
|
+
function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31
31
|
var LOG$p = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
32
32
|
var JsonDataCache = /*#__PURE__*/function () {
|
|
33
33
|
function JsonDataCache() {
|
|
@@ -238,8 +238,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
238
238
|
if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig2 = this.apiConfig) !== null && _this$apiConfig2 !== void 0 && _this$apiConfig2.api2.web) {
|
|
239
239
|
api2Url = this.apiConfig.api2.web;
|
|
240
240
|
}
|
|
241
|
-
_context2.t0 = _objectSpread$
|
|
242
|
-
_context2.t1 = _objectSpread$
|
|
241
|
+
_context2.t0 = _objectSpread$k;
|
|
242
|
+
_context2.t1 = _objectSpread$k({}, init.config.headers);
|
|
243
243
|
_context2.t2 = {};
|
|
244
244
|
_context2.next = 21;
|
|
245
245
|
return this.getSessionGuid('V', undefined, this.OrganizationId, api2Url);
|
|
@@ -459,7 +459,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
459
459
|
dontLoadDimensions: data.dontLoadDimensions,
|
|
460
460
|
useIDMService: data.useIDMService,
|
|
461
461
|
useEnricherService: data.useEnricherService,
|
|
462
|
-
packageId: plannerConfig.packageId
|
|
462
|
+
packageId: plannerConfig.packageId,
|
|
463
|
+
basketStatus: plannerConfig.basketStatus
|
|
463
464
|
};
|
|
464
465
|
}
|
|
465
466
|
}, {
|
|
@@ -18640,7 +18641,7 @@ function _loadMoreFromDivaArticle() {
|
|
|
18640
18641
|
jsonPrices = _yield$Promise$all2[0];
|
|
18641
18642
|
jsonOption = _yield$Promise$all2[1];
|
|
18642
18643
|
loadPrices(jsonPrices, catalogArticleData, catalog);
|
|
18643
|
-
loadArticleOptions(jsonOption, catalogArticleData, set
|
|
18644
|
+
loadArticleOptions(jsonOption, catalogArticleData, set);
|
|
18644
18645
|
case 31:
|
|
18645
18646
|
catalogArticle.areOptionsLoaded = true;
|
|
18646
18647
|
case 32:
|
|
@@ -18705,7 +18706,7 @@ function initArticleRelations(articleRelations, catalogArticleData, catalog) {
|
|
|
18705
18706
|
}
|
|
18706
18707
|
}
|
|
18707
18708
|
}
|
|
18708
|
-
function loadArticleOptions(json, catalogArticleData, set
|
|
18709
|
+
function loadArticleOptions(json, catalogArticleData, set) {
|
|
18709
18710
|
var catalogArticle = catalogArticleData.catalogArticle;
|
|
18710
18711
|
var multiselectOptions = json.OPT.filter(function (o) {
|
|
18711
18712
|
var _o$OCD;
|
|
@@ -18878,8 +18879,10 @@ function initDecisions(catalog, catalogArticleData) {
|
|
|
18878
18879
|
}
|
|
18879
18880
|
}
|
|
18880
18881
|
function getArticleOptionType(myOPT, set) {
|
|
18882
|
+
var _set$CatalogData$cata, _set$CatalogData$cata2, _set$CatalogData$cata3, _optionMask$hidden;
|
|
18881
18883
|
var OP = myOPT.OCD ? myOPT.OCD : myOPT.Codex;
|
|
18882
18884
|
var catOPT = set.CatalogData.getOption(OP);
|
|
18885
|
+
var optionMask = (_set$CatalogData$cata = (_set$CatalogData$cata2 = set.CatalogData.catalogMask) === null || _set$CatalogData$cata2 === void 0 || (_set$CatalogData$cata2 = _set$CatalogData$cata2.options) === null || _set$CatalogData$cata2 === void 0 ? void 0 : _set$CatalogData$cata2[OP]) !== null && _set$CatalogData$cata !== void 0 ? _set$CatalogData$cata : OP.startsWith('OPT') ? (_set$CatalogData$cata3 = set.CatalogData.catalogMask) === null || _set$CatalogData$cata3 === void 0 || (_set$CatalogData$cata3 = _set$CatalogData$cata3.options) === null || _set$CatalogData$cata3 === void 0 ? void 0 : _set$CatalogData$cata3[OP.substring(3)] : undefined;
|
|
18883
18886
|
if (!catOPT) throw new Error('Option: ' + OP + ' not in CatalogData');
|
|
18884
18887
|
var optHasOpg = myOPT.OPG && myOPT.OPG.length > 0;
|
|
18885
18888
|
return {
|
|
@@ -18894,7 +18897,8 @@ function getArticleOptionType(myOPT, set) {
|
|
|
18894
18897
|
sendToSAP: myOPT.SendToSAP && myOPT.SendToSAP != '-1' ? myOPT.SendToSAP : undefined,
|
|
18895
18898
|
articlePlaceholder: myOPT.ArticlePlaceholder,
|
|
18896
18899
|
hasOPG: optHasOpg,
|
|
18897
|
-
|
|
18900
|
+
hasImages: false,
|
|
18901
|
+
invisible: (_optionMask$hidden = optionMask === null || optionMask === void 0 ? void 0 : optionMask.hidden) !== null && _optionMask$hidden !== void 0 ? _optionMask$hidden : myOPT.Invisible == 'True' ? true : myOPT.Invisible == 'False' ? false : undefined,
|
|
18898
18902
|
parentOptionCodex: myOPT.ParentOptionCodex
|
|
18899
18903
|
};
|
|
18900
18904
|
}
|
|
@@ -18993,8 +18997,8 @@ function getArticleOptionValueType(codex, jsonOPV, catalogOPV, myArticle, isPare
|
|
|
18993
18997
|
return opv;
|
|
18994
18998
|
}
|
|
18995
18999
|
|
|
18996
|
-
function ownKeys$
|
|
18997
|
-
function _objectSpread$
|
|
19000
|
+
function ownKeys$j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19001
|
+
function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18998
19002
|
var LOG$k = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
18999
19003
|
function loadMoreFromIDMArticles(_x, _x2) {
|
|
19000
19004
|
return _loadMoreFromIDMArticles.apply(this, arguments);
|
|
@@ -19278,11 +19282,11 @@ var getPriceFeatureGroups = function getPriceFeatureGroups(catalogArticleDatas,
|
|
|
19278
19282
|
var initializeDecision = function initializeDecision(decision, idmOptionGroups) {
|
|
19279
19283
|
var _decision$optionCombi;
|
|
19280
19284
|
var optionCombinations = (_decision$optionCombi = decision.optionCombinations) === null || _decision$optionCombi === void 0 ? void 0 : _decision$optionCombi.map(function (c) {
|
|
19281
|
-
return _objectSpread$
|
|
19285
|
+
return _objectSpread$j(_objectSpread$j({}, c), {}, {
|
|
19282
19286
|
projectOptionsSetRefs: parseOptionSetRef(c.projectOptionsSetRefs, idmOptionGroups)
|
|
19283
19287
|
});
|
|
19284
19288
|
});
|
|
19285
|
-
return _objectSpread$
|
|
19289
|
+
return _objectSpread$j(_objectSpread$j({}, decision), {}, {
|
|
19286
19290
|
optionCombinations: optionCombinations === null || optionCombinations === void 0 ? void 0 : optionCombinations.sort(function (a, b) {
|
|
19287
19291
|
return a.sequence - b.sequence;
|
|
19288
19292
|
})
|
|
@@ -19291,11 +19295,11 @@ var initializeDecision = function initializeDecision(decision, idmOptionGroups)
|
|
|
19291
19295
|
var initializePriceFeatureGroups = function initializePriceFeatureGroups(priceFeatureGroup, idmOptionGroups) {
|
|
19292
19296
|
var _priceFeatureGroup$pr;
|
|
19293
19297
|
var finishes = (_priceFeatureGroup$pr = priceFeatureGroup.projectFinishes) === null || _priceFeatureGroup$pr === void 0 ? void 0 : _priceFeatureGroup$pr.map(function (c) {
|
|
19294
|
-
return _objectSpread$
|
|
19298
|
+
return _objectSpread$j(_objectSpread$j({}, c), {}, {
|
|
19295
19299
|
projectOptionsSetRefs: c.optionsSetRef ? parseOptionSetRef(c.optionsSetRef, idmOptionGroups) : []
|
|
19296
19300
|
});
|
|
19297
19301
|
});
|
|
19298
|
-
return _objectSpread$
|
|
19302
|
+
return _objectSpread$j(_objectSpread$j({}, priceFeatureGroup), {}, {
|
|
19299
19303
|
projectFinishes: finishes === null || finishes === void 0 ? void 0 : finishes.sort(function (a, b) {
|
|
19300
19304
|
return a.sequence - b.sequence;
|
|
19301
19305
|
})
|
|
@@ -19376,8 +19380,9 @@ var initFeature = function initFeature(feature, catalogArticleData, set) {
|
|
|
19376
19380
|
catalogArticleData.articleOptions[newArticleFeature.codex] = newArticleFeature;
|
|
19377
19381
|
};
|
|
19378
19382
|
function getCatalogFeatureType(feature, catalogArticleData, set) {
|
|
19379
|
-
var _feature$detailInfos, _ref, _feature$properties, _feature$options
|
|
19383
|
+
var _set$CatalogData$cata, _feature$detailInfos, _ref, _feature$properties, _feature$options$, _optionMask$hidden;
|
|
19380
19384
|
var featureClass = set.CatalogData.getFeatureClass(catalogArticleData.featureClassRefNo);
|
|
19385
|
+
var optionMask = (_set$CatalogData$cata = set.CatalogData.catalogMask) === null || _set$CatalogData$cata === void 0 || (_set$CatalogData$cata = _set$CatalogData$cata.options) === null || _set$CatalogData$cata === void 0 ? void 0 : _set$CatalogData$cata[feature.featureNo];
|
|
19381
19386
|
return {
|
|
19382
19387
|
name: DivaUtils.getLocals(feature.featureText, set.api.getLanguageLowercase()),
|
|
19383
19388
|
origName: DivaUtils.getLocals(feature.featureText, set.api.getLanguageLowercase()),
|
|
@@ -19396,7 +19401,7 @@ function getCatalogFeatureType(feature, catalogArticleData, set) {
|
|
|
19396
19401
|
})) === null || _feature$properties === void 0 ? void 0 : _feature$properties.value) !== null && _ref !== void 0 ? _ref : (_feature$options$ = feature.options[0]) !== null && _feature$options$ !== void 0 && (_feature$options$ = _feature$options$.detailInfos) !== null && _feature$options$ !== void 0 && _feature$options$.find(function (d) {
|
|
19397
19402
|
return d.functionType == 'OPV';
|
|
19398
19403
|
}) ? 'IMAGE' : 'TEXT',
|
|
19399
|
-
invisible: !!(featureClass !== null && featureClass !== void 0 && featureClass.featureRefs[feature.featureNo])
|
|
19404
|
+
invisible: (_optionMask$hidden = optionMask === null || optionMask === void 0 ? void 0 : optionMask.hidden) !== null && _optionMask$hidden !== void 0 ? _optionMask$hidden : !!(featureClass !== null && featureClass !== void 0 && featureClass.featureRefs[feature.featureNo])
|
|
19400
19405
|
};
|
|
19401
19406
|
}
|
|
19402
19407
|
function getArticleFeatureType(feature, catalogArticleData, catOPT, set) {
|
|
@@ -19832,8 +19837,8 @@ function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps
|
|
|
19832
19837
|
});
|
|
19833
19838
|
}
|
|
19834
19839
|
|
|
19835
|
-
function ownKeys$
|
|
19836
|
-
function _objectSpread$
|
|
19840
|
+
function ownKeys$i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19841
|
+
function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19837
19842
|
|
|
19838
19843
|
/*
|
|
19839
19844
|
Diese KLasse enthält Inforamtion zu einem Catalog (C)
|
|
@@ -20872,7 +20877,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20872
20877
|
}, {
|
|
20873
20878
|
key: "setVariantsPriceByHash",
|
|
20874
20879
|
value: function setVariantsPriceByHash(hash, data) {
|
|
20875
|
-
this.variantsPriceHashObj[hash] = _objectSpread$
|
|
20880
|
+
this.variantsPriceHashObj[hash] = _objectSpread$i(_objectSpread$i({}, data), {}, {
|
|
20876
20881
|
calcTime: -1
|
|
20877
20882
|
});
|
|
20878
20883
|
}
|
|
@@ -21137,12 +21142,12 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
21137
21142
|
break;
|
|
21138
21143
|
case 'SHOW_PRICEPREVIEW_ON_OPTIONS':
|
|
21139
21144
|
_this5.catalogProps.showPricePreviewOnlyOnOptions = item.Value.split(';').map(function (t) {
|
|
21140
|
-
return
|
|
21145
|
+
return t;
|
|
21141
21146
|
});
|
|
21142
21147
|
break;
|
|
21143
21148
|
case 'HIDE_PRICEPREVIEW_ON_OPTIONS':
|
|
21144
21149
|
_this5.catalogProps.hidePricePreviewOnlyOnOptions = item.Value.split(';').map(function (t) {
|
|
21145
|
-
return
|
|
21150
|
+
return t;
|
|
21146
21151
|
});
|
|
21147
21152
|
break;
|
|
21148
21153
|
case 'INIT_OPTIONTREE_TWICE':
|
|
@@ -21371,7 +21376,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
21371
21376
|
var mapMask = function mapMask(mask) {
|
|
21372
21377
|
var _mappedMask$catalog;
|
|
21373
21378
|
if (!mask) return undefined;
|
|
21374
|
-
var mappedMask = _objectSpread$
|
|
21379
|
+
var mappedMask = _objectSpread$i({}, mask);
|
|
21375
21380
|
var mapProperties = function mapProperties(props) {
|
|
21376
21381
|
if (Array.isArray(props)) return props;
|
|
21377
21382
|
var mappedProps = [];
|
|
@@ -21400,8 +21405,8 @@ var mapMask = function mapMask(mask) {
|
|
|
21400
21405
|
return mappedMask;
|
|
21401
21406
|
};
|
|
21402
21407
|
|
|
21403
|
-
function ownKeys$
|
|
21404
|
-
function _objectSpread$
|
|
21408
|
+
function ownKeys$h(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21409
|
+
function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21405
21410
|
//import IDMCatalogData from '../model/Catalog/IDMCatalogData';
|
|
21406
21411
|
|
|
21407
21412
|
var LOG$h = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
@@ -21619,7 +21624,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
|
|
|
21619
21624
|
}
|
|
21620
21625
|
throw new Error('Serie not found: ' + serieNo);
|
|
21621
21626
|
case 11:
|
|
21622
|
-
catalogData = new DivaCatalogData(_objectSpread$
|
|
21627
|
+
catalogData = new DivaCatalogData(_objectSpread$h(_objectSpread$h({}, serieData[0]), {}, {
|
|
21623
21628
|
catalogData: catalogApiData
|
|
21624
21629
|
}), serieNo, orderSet, state.api, itemsList, undefined, true, additionalModelInfos);
|
|
21625
21630
|
return _context4.abrupt("return", catalogData);
|
|
@@ -21666,8 +21671,8 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
|
|
|
21666
21671
|
}();
|
|
21667
21672
|
var catalogHandlerInstance = new DivaCatalogHandler();
|
|
21668
21673
|
|
|
21669
|
-
function ownKeys$
|
|
21670
|
-
function _objectSpread$
|
|
21674
|
+
function ownKeys$g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21675
|
+
function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21671
21676
|
function _createForOfIteratorHelper$9(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$9(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
21672
21677
|
function _unsupportedIterableToArray$9(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$9(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$9(r, a) : void 0; } }
|
|
21673
21678
|
function _arrayLikeToArray$9(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; }
|
|
@@ -22404,11 +22409,11 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
22404
22409
|
key: "cloneOptionState",
|
|
22405
22410
|
value: function cloneOptionState(getIsConfigSingle) {
|
|
22406
22411
|
var clonedOps = new ArticleOptionStateData(this.option, getIsConfigSingle);
|
|
22407
|
-
clonedOps.articleOptionState = _objectSpread$
|
|
22408
|
-
imageOPVs: _objectSpread$
|
|
22412
|
+
clonedOps.articleOptionState = _objectSpread$g(_objectSpread$g({}, this.articleOptionState), {}, {
|
|
22413
|
+
imageOPVs: _objectSpread$g({}, this.articleOptionState.imageOPVs),
|
|
22409
22414
|
visibleOPVs: new Map(this.articleOptionState.visibleOPVs),
|
|
22410
22415
|
visibleOPVsImages: new Map(this.articleOptionState.visibleOPVsImages),
|
|
22411
|
-
favoriteOPVs: _objectSpread$
|
|
22416
|
+
favoriteOPVs: _objectSpread$g({}, this.articleOptionState.favoriteOPVs)
|
|
22412
22417
|
});
|
|
22413
22418
|
return clonedOps;
|
|
22414
22419
|
}
|
|
@@ -24390,8 +24395,8 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
24390
24395
|
}]);
|
|
24391
24396
|
}();
|
|
24392
24397
|
|
|
24393
|
-
function ownKeys$
|
|
24394
|
-
function _objectSpread$
|
|
24398
|
+
function ownKeys$f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24399
|
+
function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24395
24400
|
function _createForOfIteratorHelper$7(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$7(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
24396
24401
|
function _unsupportedIterableToArray$7(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$7(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$7(r, a) : void 0; } }
|
|
24397
24402
|
function _arrayLikeToArray$7(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; }
|
|
@@ -25005,7 +25010,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
25005
25010
|
nr: priceFeatureGroup.priceFeatureGroupNo,
|
|
25006
25011
|
variantValues: this.article.VariantValues,
|
|
25007
25012
|
text: DivaUtils.getLocals(priceFeatureGroup.priceFeatureGroupText, this.article.set.api.getLanguage()) + ' ' + (finish ? (_this$article$catalog3 = this.article.catalogArticle.idmPrices) === null || _this$article$catalog3 === void 0 || (_this$article$catalog3 = _this$article$catalog3.prices['PRFG' + priceFeatureGroup.priceFeatureGroupNo + '_' + finish.priceField]) === null || _this$article$catalog3 === void 0 ? void 0 : _this$article$catalog3.toString() : ''),
|
|
25008
|
-
priceFeatureGroup: _objectSpread$
|
|
25013
|
+
priceFeatureGroup: _objectSpread$f(_objectSpread$f({}, priceFeatureGroup), {}, {
|
|
25009
25014
|
activeCombination: finish === null || finish === void 0 ? void 0 : finish.sequence
|
|
25010
25015
|
})
|
|
25011
25016
|
});
|
|
@@ -25566,8 +25571,8 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
25566
25571
|
function _createForOfIteratorHelper$6(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$6(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
25567
25572
|
function _unsupportedIterableToArray$6(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$6(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$6(r, a) : void 0; } }
|
|
25568
25573
|
function _arrayLikeToArray$6(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; }
|
|
25569
|
-
function ownKeys$
|
|
25570
|
-
function _objectSpread$
|
|
25574
|
+
function ownKeys$e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
25575
|
+
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25571
25576
|
var LOG$e = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
25572
25577
|
var DivaArticle = /*#__PURE__*/function () {
|
|
25573
25578
|
function DivaArticle(set, _basketId, initParams, articleData, catalogData) {
|
|
@@ -25807,7 +25812,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25807
25812
|
var partlistArticle = this.partlistArticles[basketId];
|
|
25808
25813
|
if (!onlyVisible || partlistArticle.partlistArticleVisibleInTree || !excludeStandalonePla && partlistArticle.partlistArticleStandalone) partlistArticles[basketId] = partlistArticle;
|
|
25809
25814
|
if (partlistArticle.hasPartlistArticle) {
|
|
25810
|
-
partlistArticles = _objectSpread$
|
|
25815
|
+
partlistArticles = _objectSpread$e(_objectSpread$e({}, partlistArticles), partlistArticle.getRecursivePartlistArticles(onlyVisible, excludeStandalonePla));
|
|
25811
25816
|
}
|
|
25812
25817
|
}
|
|
25813
25818
|
return partlistArticles;
|
|
@@ -25816,8 +25821,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25816
25821
|
key: "variantValuesForPla",
|
|
25817
25822
|
value: function variantValuesForPla(configurationMode, previousPartlistArticleVariantValues, newConfigValues) {
|
|
25818
25823
|
//if configurationMode is true its previous values are more important than the values of the parentelement because its standalone configurable
|
|
25819
|
-
if (configurationMode) return _objectSpread$
|
|
25820
|
-
return _objectSpread$
|
|
25824
|
+
if (configurationMode) return _objectSpread$e(_objectSpread$e({}, newConfigValues !== null && newConfigValues !== void 0 ? newConfigValues : {}), previousPartlistArticleVariantValues !== null && previousPartlistArticleVariantValues !== void 0 ? previousPartlistArticleVariantValues : {});
|
|
25825
|
+
return _objectSpread$e(_objectSpread$e({}, previousPartlistArticleVariantValues !== null && previousPartlistArticleVariantValues !== void 0 ? previousPartlistArticleVariantValues : {}), newConfigValues !== null && newConfigValues !== void 0 ? newConfigValues : {});
|
|
25821
25826
|
}
|
|
25822
25827
|
}, {
|
|
25823
25828
|
key: "partlistArticlesAsArray",
|
|
@@ -27503,6 +27508,11 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27503
27508
|
key: "addPartlistArticle",
|
|
27504
27509
|
value: function addPartlistArticle(newPartlistArticle) {
|
|
27505
27510
|
//falls der hauptartikel
|
|
27511
|
+
if (!!newPartlistArticle.catalogArticle.overwriteParentDepth && this.plannerData && newPartlistArticle.depth) {
|
|
27512
|
+
var _newPartlistArticle$d, _newPartlistArticle$d2;
|
|
27513
|
+
this.plannerData.depth = (_newPartlistArticle$d = newPartlistArticle.depth) !== null && _newPartlistArticle$d !== void 0 ? _newPartlistArticle$d : -1;
|
|
27514
|
+
this.article.calcDepth = (_newPartlistArticle$d2 = newPartlistArticle.depth) !== null && _newPartlistArticle$d2 !== void 0 ? _newPartlistArticle$d2 : -1;
|
|
27515
|
+
}
|
|
27506
27516
|
newPartlistArticle.hasPartlistArticleInitialized = this.hasPartlistArticleInitialized;
|
|
27507
27517
|
this.article.partlistArticles[newPartlistArticle.basketId] = newPartlistArticle;
|
|
27508
27518
|
}
|
|
@@ -28167,7 +28177,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28167
28177
|
var newVvs2 = this.engine.getValuesInfluencingOPT(key, vv[key]);
|
|
28168
28178
|
if (newVvs2.length) {
|
|
28169
28179
|
for (var j = 0; j < newVvs2.length; j++) {
|
|
28170
|
-
newVvs[j] = _objectSpread$
|
|
28180
|
+
newVvs[j] = _objectSpread$e(_objectSpread$e({}, vv), newVvs2[j]);
|
|
28171
28181
|
}
|
|
28172
28182
|
}
|
|
28173
28183
|
}
|
|
@@ -28246,7 +28256,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28246
28256
|
break;
|
|
28247
28257
|
}
|
|
28248
28258
|
_context.next = 4;
|
|
28249
|
-
return import('./ShelfPlanner-
|
|
28259
|
+
return import('./ShelfPlanner-9e0e3822.js');
|
|
28250
28260
|
case 4:
|
|
28251
28261
|
_yield$import = _context.sent;
|
|
28252
28262
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -28845,7 +28855,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28845
28855
|
}, {
|
|
28846
28856
|
key: "cloneArticle",
|
|
28847
28857
|
value: function cloneArticle(set) {
|
|
28848
|
-
var clonedArticle = new DivaArticle(set, this.basketId, _objectSpread$
|
|
28858
|
+
var clonedArticle = new DivaArticle(set, this.basketId, _objectSpread$e({}, this.article), this.article.catalogArticle, set.CatalogData);
|
|
28849
28859
|
clonedArticle.articleOptionStatesData = new Map();
|
|
28850
28860
|
var _iterator40 = _createForOfIteratorHelper$6(this.articleOptionStates.values()),
|
|
28851
28861
|
_step40;
|
|
@@ -28873,8 +28883,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28873
28883
|
function _createForOfIteratorHelper$5(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$5(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
28874
28884
|
function _unsupportedIterableToArray$5(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$5(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$5(r, a) : void 0; } }
|
|
28875
28885
|
function _arrayLikeToArray$5(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; }
|
|
28876
|
-
function ownKeys$
|
|
28877
|
-
function _objectSpread$
|
|
28886
|
+
function ownKeys$d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28887
|
+
function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28878
28888
|
var LOG$d = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
28879
28889
|
|
|
28880
28890
|
//Diese Klasse verwaltet den Optionsbaum und ladelogik etc. eines Artikels
|
|
@@ -28893,7 +28903,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28893
28903
|
while (1) switch (_context.prev = _context.next) {
|
|
28894
28904
|
case 0:
|
|
28895
28905
|
_context.next = 2;
|
|
28896
|
-
return this.preLoadArticles(set, [_objectSpread$
|
|
28906
|
+
return this.preLoadArticles(set, [_objectSpread$d(_objectSpread$d({}, initParams), {}, {
|
|
28897
28907
|
articleCodex: articleCodex
|
|
28898
28908
|
})]);
|
|
28899
28909
|
case 2:
|
|
@@ -29153,7 +29163,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
29153
29163
|
return _context6.abrupt("continue", 37);
|
|
29154
29164
|
case 12:
|
|
29155
29165
|
if (targetArticlesWithNewValues.includes(targetArticlesToUpdate[i])) {
|
|
29156
|
-
valuesArray[i] = actArticle.getValidValues(_objectSpread$
|
|
29166
|
+
valuesArray[i] = actArticle.getValidValues(_objectSpread$d({}, myValues), actArticle.CatalogData.mergeOptionsToSameOption);
|
|
29157
29167
|
}
|
|
29158
29168
|
|
|
29159
29169
|
//only set config if valuesArray are not empty or the article is initializing
|
|
@@ -30060,7 +30070,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
30060
30070
|
if (ruleValid) break;
|
|
30061
30071
|
}
|
|
30062
30072
|
if (ruleValid) {
|
|
30063
|
-
returnValue.push(_objectSpread$
|
|
30073
|
+
returnValue.push(_objectSpread$d(_objectSpread$d({}, entry), {}, {
|
|
30064
30074
|
index: i
|
|
30065
30075
|
}));
|
|
30066
30076
|
break;
|
|
@@ -31100,7 +31110,10 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
|
|
|
31100
31110
|
var paletteType = (_set$api$getViewConfi = (_set$api$getViewConfi2 = set.api.getViewConfig()) === null || _set$api$getViewConfi2 === void 0 ? void 0 : _set$api$getViewConfi2.defaultOptionType) !== null && _set$api$getViewConfi !== void 0 ? _set$api$getViewConfi : 'SMALL';
|
|
31101
31111
|
if (configStep && optionStep) {
|
|
31102
31112
|
if (configStep.option == 'OPTVINYL' || configStep.option == 'OPTVINYL_1' || configStep.option == 'OPTFABRIC' || configStep.option == 'OPTBE' || configStep.option == 'OPTBE_AUSSEN' || configStep.option == 'OPTBE_INNEN' || configStep.option == 'OPTBE_PANEELE' || configStep.option == 'OPTMATRATZE_BE' || configStep.option == 'OPTBE_UG' || configStep.option == 'OPTBEZUG' || configStep.option == 'OPTKO' || configStep.option == 'OPTFR' || configStep.option == 'OPTNI' || configStep.option == 'OPTUF_FA' || configStep.option == 'OPTBE_NETZ' || configStep.option == 'OPTBE_AL' || configStep.option == 'OPTKISSEN_BE' || configStep.option == 'OPTKP_BE' || configStep.option == 'OPTARM_BE' || configStep.option == 'OPTBE_KT' || configStep.option == 'OPT3' || configStep.option == 'OPT5' || configStep.option == 'OPTBE_KNOEPFE' || configStep.option == 'OPTSK_FARBE' || configStep.option == 'OPTBANDFARBE' || configStep.option == 'OPTBE_BOX' || configStep.option == 'OPTMA_AF_BE' || configStep.option == 'OPTTOPPER_BE' || optionState !== null && optionState !== void 0 && optionState.option.hasOPG && optionState.hasImages || optionStep.mergesToOPG) {
|
|
31103
|
-
paletteType = 'GAL_TEXT';
|
|
31113
|
+
if (!paletteType.includes('GAL_')) paletteType = 'GAL_TEXT';
|
|
31114
|
+
}
|
|
31115
|
+
if (paletteType.includes('GAL_') && !(optionState !== null && optionState !== void 0 && optionState.hasImages)) {
|
|
31116
|
+
paletteType = 'SMALL';
|
|
31104
31117
|
}
|
|
31105
31118
|
if (configStep.option == 'OPTBA' && !(optionState !== null && optionState !== void 0 && optionState.option.layout)) {
|
|
31106
31119
|
paletteType = 'VERY_SMALL';
|
|
@@ -31440,8 +31453,8 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
|
|
|
31440
31453
|
function _createForOfIteratorHelper$4(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$4(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
31441
31454
|
function _unsupportedIterableToArray$4(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$4(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$4(r, a) : void 0; } }
|
|
31442
31455
|
function _arrayLikeToArray$4(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; }
|
|
31443
|
-
function ownKeys$
|
|
31444
|
-
function _objectSpread$
|
|
31456
|
+
function ownKeys$c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
31457
|
+
function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31445
31458
|
var LOG$b = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
31446
31459
|
//plz delete me
|
|
31447
31460
|
var DivaSet = /*#__PURE__*/function () {
|
|
@@ -31541,7 +31554,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31541
31554
|
_context.next = 10;
|
|
31542
31555
|
break;
|
|
31543
31556
|
}
|
|
31544
|
-
validValues = repairVariantValuesAndPlanner ? article.getValidValues(_objectSpread$
|
|
31557
|
+
validValues = repairVariantValuesAndPlanner ? article.getValidValues(_objectSpread$c({}, variantValues), article.CatalogData.mergeOptionsToSameOption) : {};
|
|
31545
31558
|
_context.t0 = partlistArticlesToLoad;
|
|
31546
31559
|
_context.next = 8;
|
|
31547
31560
|
return articleHandlerInstance.updateCfgValues(article, repairVariantValuesAndPlanner ? validValues : variantValues, {}, undefined, loadPlas);
|
|
@@ -32111,8 +32124,8 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
32111
32124
|
var articles = {};
|
|
32112
32125
|
for (var basketId in this.divaArticles) {
|
|
32113
32126
|
articles[basketId] = this.divaArticles[basketId];
|
|
32114
|
-
if (allPartlistArticlesAlso) articles = _objectSpread$
|
|
32115
|
-
if (visiblePartlistArticlesAlso) articles = _objectSpread$
|
|
32127
|
+
if (allPartlistArticlesAlso) articles = _objectSpread$c(_objectSpread$c({}, articles), articles[basketId].getRecursivePartlistArticles());
|
|
32128
|
+
if (visiblePartlistArticlesAlso) articles = _objectSpread$c(_objectSpread$c({}, articles), articles[basketId].getRecursivePartlistArticles(true));
|
|
32116
32129
|
}
|
|
32117
32130
|
return articles;
|
|
32118
32131
|
}
|
|
@@ -32744,7 +32757,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
32744
32757
|
break;
|
|
32745
32758
|
}
|
|
32746
32759
|
_context5.next = 3;
|
|
32747
|
-
return import('./DoorPlanner-
|
|
32760
|
+
return import('./DoorPlanner-51c94a39.js');
|
|
32748
32761
|
case 3:
|
|
32749
32762
|
_yield$import = _context5.sent;
|
|
32750
32763
|
DoorPlanner = _yield$import["default"];
|
|
@@ -32933,8 +32946,8 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
32933
32946
|
}, {
|
|
32934
32947
|
key: "cloneSet",
|
|
32935
32948
|
value: function cloneSet() {
|
|
32936
|
-
var clonedSet = new DivaSet(this.CatalogData, this.setId, {}, _objectSpread$
|
|
32937
|
-
clonedSet.setData = _objectSpread$
|
|
32949
|
+
var clonedSet = new DivaSet(this.CatalogData, this.setId, {}, _objectSpread$c({}, this.setState));
|
|
32950
|
+
clonedSet.setData = _objectSpread$c({}, this.setData);
|
|
32938
32951
|
clonedSet.configSingle = this.configSingle;
|
|
32939
32952
|
clonedSet.logTotalStateForVariants = this.logTotalStateForVariants;
|
|
32940
32953
|
var articles = this.getDivaArticles();
|
|
@@ -33781,8 +33794,8 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
33781
33794
|
}();
|
|
33782
33795
|
var summaryHandlerInstance = new SummaryHandler();
|
|
33783
33796
|
|
|
33784
|
-
function ownKeys$
|
|
33785
|
-
function _objectSpread$
|
|
33797
|
+
function ownKeys$b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33798
|
+
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33786
33799
|
DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
33787
33800
|
var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
33788
33801
|
function DivaFavoritesHandler() {
|
|
@@ -34471,7 +34484,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
34471
34484
|
if (targetArticle[opt] && !variantValues[opt]) variantValues[opt] = targetArticle[opt];
|
|
34472
34485
|
}
|
|
34473
34486
|
}
|
|
34474
|
-
configVariant = new ConfigVariantData(variant.id, set.setName, set.setName_locales, setImage, (_hQRenderScript = hQRenderScript) === null || _hQRenderScript === void 0 ? void 0 : _hQRenderScript._id, DivaUtils.encodeBase64(set.plannerHandler.getProject3D(set.getSetId())), set.getVariantsDescription(), set.SetArticleNr, set.getSetPrice(), set.setHash, 1, set.getVariantBasketData(), articleHandlerInstance.getCompactOrderLine(_objectSpread$
|
|
34487
|
+
configVariant = new ConfigVariantData(variant.id, set.setName, set.setName_locales, setImage, (_hQRenderScript = hQRenderScript) === null || _hQRenderScript === void 0 ? void 0 : _hQRenderScript._id, DivaUtils.encodeBase64(set.plannerHandler.getProject3D(set.getSetId())), set.getVariantsDescription(), set.SetArticleNr, set.getSetPrice(), set.setHash, 1, set.getVariantBasketData(), articleHandlerInstance.getCompactOrderLine(_objectSpread$b(_objectSpread$b({}, set.getDivaArticles()), set.getPartlistArticlesOfSet())), variantValues, summaryHandlerInstance.convertSummaryItemsToSummaryInfo(set), plannerData != undefined ? DivaUtils.encodeBase64(JSON.stringify(plannerData)) : '', urlToPlanning2D, setHandlerInstance.getBBoxObject(set, dimensions), set.getBruttoSetPrice(), undefined, undefined, set.MetaData, set.MetaData_locales, DivaUtils.stripTagsFromDict(set.getVariantsDescription_locales()), (_basket$OrderSets$set = basket.OrderSets[setindex].ConfigVariants) === null || _basket$OrderSets$set === void 0 || (_basket$OrderSets$set = _basket$OrderSets$set[set.basketConfigVariants.length]) === null || _basket$OrderSets$set === void 0 ? void 0 : _basket$OrderSets$set.SetOrderText, (_basket$OrderSets$set2 = basket.OrderSets[setindex].ConfigVariants) === null || _basket$OrderSets$set2 === void 0 || (_basket$OrderSets$set2 = _basket$OrderSets$set2[set.basketConfigVariants.length]) === null || _basket$OrderSets$set2 === void 0 ? void 0 : _basket$OrderSets$set2.SetOrderText_locales);
|
|
34475
34488
|
set.basketConfigVariants.push(configVariant);
|
|
34476
34489
|
case 31:
|
|
34477
34490
|
case "end":
|
|
@@ -35488,10 +35501,15 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
35488
35501
|
}();
|
|
35489
35502
|
var configTreeHandler = new DivaConfigTreeHandler();
|
|
35490
35503
|
|
|
35491
|
-
function ownKeys$
|
|
35492
|
-
function _objectSpread$
|
|
35504
|
+
function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35505
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35493
35506
|
var LOG$9 = DivaUtils.initLog('Planner', 'DIVA-SET-HANDLER');
|
|
35494
35507
|
|
|
35508
|
+
/**
|
|
35509
|
+
* This interface describes planner elements for the view, that are not planned but visualized through the 3D Exe.
|
|
35510
|
+
* This can be accessoires in the shelf planner.They do not have a SVG but are sent to the 3D Exe as single elements.
|
|
35511
|
+
* The parentElementId can be a string when working with shelf planner inside the shelf planner (T element)
|
|
35512
|
+
*/
|
|
35495
35513
|
/*
|
|
35496
35514
|
Diese Klasse speichert alle Sets, die in einer Planung sind
|
|
35497
35515
|
WICHTIG: jedes Set kann einen anderen Katalog haben
|
|
@@ -35976,7 +35994,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
35976
35994
|
}
|
|
35977
35995
|
variantValues = (_initSetState$initVar = initSetState.initVariantValues) !== null && _initSetState$initVar !== void 0 ? _initSetState$initVar : catalogData === null || catalogData === void 0 || (_catalogData$promoted = catalogData.promotedOpvs) === null || _catalogData$promoted === void 0 || (_catalogData$promoted = _catalogData$promoted.articles) === null || _catalogData$promoted === void 0 || (_catalogData$promoted = _catalogData$promoted[articlesToInitialize[j]]) === null || _catalogData$promoted === void 0 || (_catalogData$promoted = _catalogData$promoted[0]) === null || _catalogData$promoted === void 0 ? void 0 : _catalogData$promoted.variantValues;
|
|
35978
35996
|
_context6.next = 18;
|
|
35979
|
-
return this.addPlannerElement(set, articlesToInitialize[j], _objectSpread$
|
|
35997
|
+
return this.addPlannerElement(set, articlesToInitialize[j], _objectSpread$a(_objectSpread$a({}, params), variantValues ? {
|
|
35980
35998
|
variantValues: variantValues
|
|
35981
35999
|
} : {}));
|
|
35982
36000
|
case 18:
|
|
@@ -36614,7 +36632,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36614
36632
|
_context16.next = 24;
|
|
36615
36633
|
break;
|
|
36616
36634
|
}
|
|
36617
|
-
return _context16.abrupt("return", _objectSpread$
|
|
36635
|
+
return _context16.abrupt("return", _objectSpread$a(_objectSpread$a({}, doesFit), {}, {
|
|
36618
36636
|
accessoire: accessoire
|
|
36619
36637
|
}));
|
|
36620
36638
|
case 24:
|
|
@@ -37084,7 +37102,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
37084
37102
|
var articlecodex = plannerElement.articleCodex;
|
|
37085
37103
|
if (type == 'PLANNERSWITCH' && selectedArticle) {
|
|
37086
37104
|
if (plannerViewInfo.catalogPlannerArticles[i].filterType == 'Accessoire') continue;
|
|
37087
|
-
cleanedCaltaogPlannerArticles.push(_objectSpread$
|
|
37105
|
+
cleanedCaltaogPlannerArticles.push(_objectSpread$a(_objectSpread$a({}, plannerElement), {}, {
|
|
37088
37106
|
sel: articlecodex == selectedArticle,
|
|
37089
37107
|
groupName: ''
|
|
37090
37108
|
}));
|
|
@@ -37098,12 +37116,12 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
37098
37116
|
plannerViewInfo.plannerConfiguration.updatePaletteAfterPlanningChanged = true;
|
|
37099
37117
|
}
|
|
37100
37118
|
}
|
|
37101
|
-
if (!dontPushElement) cleanedCaltaogPlannerArticles.push(_objectSpread$
|
|
37119
|
+
if (!dontPushElement) cleanedCaltaogPlannerArticles.push(_objectSpread$a(_objectSpread$a({}, plannerElement), {}, {
|
|
37102
37120
|
sel: articlecodex == selectedArticle
|
|
37103
37121
|
}));
|
|
37104
37122
|
}
|
|
37105
37123
|
}
|
|
37106
|
-
return _objectSpread$
|
|
37124
|
+
return _objectSpread$a(_objectSpread$a({}, plannerViewInfo), {}, {
|
|
37107
37125
|
catalogPlannerArticles: cleanedCaltaogPlannerArticles
|
|
37108
37126
|
});
|
|
37109
37127
|
}
|
|
@@ -37367,7 +37385,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
37367
37385
|
filterType = set.configTree.getCurFilterType(configStepKey, configItems.configItems);
|
|
37368
37386
|
stepInfo = set.configTree.getStepInfo(configStepKey);
|
|
37369
37387
|
contentItemId = (_configItems$option = configItems.option) === null || _configItems$option === void 0 ? void 0 : _configItems$option.contentItemId;
|
|
37370
|
-
return _context24.abrupt("return", _objectSpread$
|
|
37388
|
+
return _context24.abrupt("return", _objectSpread$a(_objectSpread$a(_objectSpread$a({
|
|
37371
37389
|
isRenderedNotInSettingPalette: set.configTree.isRenderedNotInSettingPalette(configStepKey),
|
|
37372
37390
|
isRenderedInAccessorieStep: set.configTree.isRenderedInAccessorieStep(configStepKey),
|
|
37373
37391
|
visible: set.configTree.getVisibility(configStepKey, visible, set.CatalogData)
|
|
@@ -37611,7 +37629,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
37611
37629
|
break;
|
|
37612
37630
|
}
|
|
37613
37631
|
LOG$9.debug('calcingVariant from Option:' + optionCodex + ' and index: ' + index + ' hash hit!', dataHash, [].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig))), targetArticles);
|
|
37614
|
-
return _context27.abrupt("return", _objectSpread$
|
|
37632
|
+
return _context27.abrupt("return", _objectSpread$a(_objectSpread$a({}, dataHash), {}, {
|
|
37615
37633
|
origPrice: origPrice,
|
|
37616
37634
|
firstPrice: firstPrice
|
|
37617
37635
|
}));
|
|
@@ -37933,7 +37951,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
37933
37951
|
break;
|
|
37934
37952
|
}
|
|
37935
37953
|
_context30.next = 17;
|
|
37936
|
-
return this.addArticleToActSet(set, edoArticlesToLoad[_i7].ArticleCodex, _objectSpread$
|
|
37954
|
+
return this.addArticleToActSet(set, edoArticlesToLoad[_i7].ArticleCodex, _objectSpread$a(_objectSpread$a({}, edoArticlesToLoad[_i7]), {}, {
|
|
37937
37955
|
basketId: oldBasketIds[_i7]
|
|
37938
37956
|
}), true);
|
|
37939
37957
|
case 17:
|
|
@@ -38298,7 +38316,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38298
38316
|
var _origOrderSet$ConfigV;
|
|
38299
38317
|
var configVariant = (_origOrderSet$ConfigV = origOrderSet.ConfigVariants) === null || _origOrderSet$ConfigV === void 0 ? void 0 : _origOrderSet$ConfigV[index];
|
|
38300
38318
|
if (!configVariant) return variant;
|
|
38301
|
-
return _objectSpread$
|
|
38319
|
+
return _objectSpread$a(_objectSpread$a({}, variant), {}, {
|
|
38302
38320
|
SetImage: configVariant.SetImage,
|
|
38303
38321
|
HQRenderScript: configVariant.HQRenderScript,
|
|
38304
38322
|
Set2DImage: configVariant.Set2DImage,
|
|
@@ -38620,7 +38638,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38620
38638
|
dim.Z = article === null || article === void 0 ? void 0 : article.height;
|
|
38621
38639
|
}
|
|
38622
38640
|
var t = (_set$api$getI18n = set.api.getI18n()) === null || _set$api$getI18n === void 0 ? void 0 : _set$api$getI18n.t;
|
|
38623
|
-
return _objectSpread$
|
|
38641
|
+
return _objectSpread$a(_objectSpread$a({}, dim), {}, {
|
|
38624
38642
|
Info: ((_t = t === null || t === void 0 ? void 0 : t('utils.width_first_letter', 'B')) !== null && _t !== void 0 ? _t : 'B') + ': ' + dim.X + ' cm x ' + ((_t2 = t === null || t === void 0 ? void 0 : t('utils.depth_first_letter', 'T')) !== null && _t2 !== void 0 ? _t2 : 'T') + ': ' + dim.Y + ' cm' + (dim.Z ? ' x ' + ((_t3 = t === null || t === void 0 ? void 0 : t('utils.height_first_letter', 'H')) !== null && _t3 !== void 0 ? _t3 : 'H') + ': ' + dim.Z + ' cm' : '')
|
|
38625
38643
|
});
|
|
38626
38644
|
}
|
|
@@ -38676,8 +38694,8 @@ var setHandlerInstance = new DivaSetHandler();
|
|
|
38676
38694
|
function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
38677
38695
|
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
|
|
38678
38696
|
function _arrayLikeToArray$1(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; }
|
|
38679
|
-
function ownKeys$
|
|
38680
|
-
function _objectSpread$
|
|
38697
|
+
function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
38698
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
38681
38699
|
var LOG$8 = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
38682
38700
|
var DivaBasketHandler = /*#__PURE__*/function () {
|
|
38683
38701
|
function DivaBasketHandler(plannerConfig) {
|
|
@@ -39132,15 +39150,15 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39132
39150
|
value: function () {
|
|
39133
39151
|
var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(api, divaNr, dataFromApi, keepOldDivaNr, origProductId) {
|
|
39134
39152
|
var _dataFromApi$basket;
|
|
39135
|
-
var basketFromAPI, basket, i, _basket$SetPlannerInf, oldSetId, newSetId, foundIndex, newDivaNr, _this$plannerConfig$
|
|
39153
|
+
var basketFromAPI, basket, _this$plannerConfig$s7, i, _basket$SetPlannerInf, oldSetId, newSetId, foundIndex, newDivaNr, _this$plannerConfig$s8, _dataFromApi$NewestDo, _i, os;
|
|
39136
39154
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
39137
39155
|
while (1) switch (_context5.prev = _context5.next) {
|
|
39138
39156
|
case 0:
|
|
39139
39157
|
basketFromAPI = (_dataFromApi$basket = dataFromApi.basket) !== null && _dataFromApi$basket !== void 0 ? _dataFromApi$basket : dataFromApi.Basket; //evaluateRopoEffect(basketFromAPI,);
|
|
39140
39158
|
if (origProductId) basketFromAPI.OrigProductId = origProductId;
|
|
39141
|
-
basket = _objectSpread$
|
|
39159
|
+
basket = _objectSpread$9({}, basketFromAPI);
|
|
39142
39160
|
if (!basketFromAPI) {
|
|
39143
|
-
_context5.next =
|
|
39161
|
+
_context5.next = 51;
|
|
39144
39162
|
break;
|
|
39145
39163
|
}
|
|
39146
39164
|
LOG$8.debug('divaNr: ' + divaNr + ' was loaded successfully from server!');
|
|
@@ -39158,6 +39176,9 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39158
39176
|
basket.StatusKey = 'USER_CONFIGURATION';
|
|
39159
39177
|
basket.Status = 'LEAFLET'; // maybe set here a default Status form config
|
|
39160
39178
|
}
|
|
39179
|
+
if ((_this$plannerConfig$s7 = this.plannerConfig.settings) !== null && _this$plannerConfig$s7 !== void 0 && _this$plannerConfig$s7.basketStatus) {
|
|
39180
|
+
basket.Status = this.plannerConfig.settings.basketStatus;
|
|
39181
|
+
}
|
|
39161
39182
|
if (!basket.CustomerJourneyId) basket.CustomerJourneyId = nanoid();
|
|
39162
39183
|
if (this.plannerConfig.addDivaNr || this.plannerConfig.productId) {
|
|
39163
39184
|
for (i = 0; i < basket.OrderSets.length; i++) {
|
|
@@ -39171,22 +39192,22 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39171
39192
|
}
|
|
39172
39193
|
}
|
|
39173
39194
|
if (!this.assignNewDivaNr) {
|
|
39174
|
-
_context5.next =
|
|
39195
|
+
_context5.next = 30;
|
|
39175
39196
|
break;
|
|
39176
39197
|
}
|
|
39177
|
-
if (!((_this$plannerConfig$
|
|
39178
|
-
_context5.next =
|
|
39198
|
+
if (!((_this$plannerConfig$s8 = this.plannerConfig.startDivaNr) !== null && _this$plannerConfig$s8 !== void 0)) {
|
|
39199
|
+
_context5.next = 15;
|
|
39179
39200
|
break;
|
|
39180
39201
|
}
|
|
39181
|
-
_context5.t0 = _this$plannerConfig$
|
|
39182
|
-
_context5.next =
|
|
39202
|
+
_context5.t0 = _this$plannerConfig$s8;
|
|
39203
|
+
_context5.next = 18;
|
|
39183
39204
|
break;
|
|
39184
|
-
case
|
|
39185
|
-
_context5.next =
|
|
39205
|
+
case 15:
|
|
39206
|
+
_context5.next = 17;
|
|
39186
39207
|
return this.createNewDivaNr(api);
|
|
39187
|
-
case 16:
|
|
39188
|
-
_context5.t0 = _context5.sent;
|
|
39189
39208
|
case 17:
|
|
39209
|
+
_context5.t0 = _context5.sent;
|
|
39210
|
+
case 18:
|
|
39190
39211
|
newDivaNr = _context5.t0;
|
|
39191
39212
|
basket.DivaNr = newDivaNr;
|
|
39192
39213
|
basket.UniqueID = new Date().getTime().toString();
|
|
@@ -39197,14 +39218,14 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39197
39218
|
basket.SalespersonID = undefined;
|
|
39198
39219
|
basket.Salesperson = undefined;
|
|
39199
39220
|
basket.OrderStatus = undefined;
|
|
39200
|
-
_context5.next =
|
|
39221
|
+
_context5.next = 33;
|
|
39201
39222
|
break;
|
|
39202
|
-
case
|
|
39223
|
+
case 30:
|
|
39203
39224
|
//falls alte DivaNummer übernommen wird das "-1" am nicht mitnehmen!
|
|
39204
39225
|
basket.DivaNr = divaNr.split('-').length == 3 ? divaNr.split('-')[0] + '-' + divaNr.split('-')[1] : divaNr;
|
|
39205
39226
|
basket.DocumentVersion = (_dataFromApi$NewestDo = dataFromApi.NewestDocumentVersion) !== null && _dataFromApi$NewestDo !== void 0 ? _dataFromApi$NewestDo : dataFromApi.newestDocumentVersion;
|
|
39206
39227
|
newDivaNr = basket.DivaNr + '-' + basket.DocumentVersion.toString();
|
|
39207
|
-
case
|
|
39228
|
+
case 33:
|
|
39208
39229
|
if (DivaUtils.bridge) DivaUtils.bridge.sendMessage({
|
|
39209
39230
|
type: 'ABN',
|
|
39210
39231
|
bEvent: {
|
|
@@ -39214,31 +39235,31 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39214
39235
|
if (!(this.plannerConfig.loginMode != 'offline' || basket.OrderSets.find(function (os) {
|
|
39215
39236
|
return !os.AccountSessionGUID;
|
|
39216
39237
|
}))) {
|
|
39217
|
-
_context5.next =
|
|
39238
|
+
_context5.next = 44;
|
|
39218
39239
|
break;
|
|
39219
39240
|
}
|
|
39220
39241
|
_i = 0;
|
|
39221
|
-
case
|
|
39242
|
+
case 36:
|
|
39222
39243
|
if (!(_i < basket.OrderSets.length)) {
|
|
39223
|
-
_context5.next =
|
|
39244
|
+
_context5.next = 44;
|
|
39224
39245
|
break;
|
|
39225
39246
|
}
|
|
39226
39247
|
os = basket.OrderSets[_i];
|
|
39227
39248
|
if (os.IsIDMFormat) {
|
|
39228
|
-
_context5.next =
|
|
39249
|
+
_context5.next = 41;
|
|
39229
39250
|
break;
|
|
39230
39251
|
}
|
|
39231
|
-
_context5.next =
|
|
39252
|
+
_context5.next = 41;
|
|
39232
39253
|
return api.setAccountSessionGuid({
|
|
39233
39254
|
os: os,
|
|
39234
39255
|
catalogGuid: os.CatalogGUID,
|
|
39235
39256
|
accountGuid: os.AccountGUID
|
|
39236
39257
|
});
|
|
39237
|
-
case
|
|
39258
|
+
case 41:
|
|
39238
39259
|
_i++;
|
|
39239
|
-
_context5.next =
|
|
39260
|
+
_context5.next = 36;
|
|
39240
39261
|
break;
|
|
39241
|
-
case
|
|
39262
|
+
case 44:
|
|
39242
39263
|
this.baskets[newDivaNr] = new BasketData(basket);
|
|
39243
39264
|
this.baskets[newDivaNr].clearRenderData();
|
|
39244
39265
|
if (!keepOldDivaNr) this.divaNr = newDivaNr;
|
|
@@ -39247,9 +39268,9 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39247
39268
|
this.baskets[newDivaNr].ProductSetName = '';
|
|
39248
39269
|
}
|
|
39249
39270
|
return _context5.abrupt("return", true);
|
|
39250
|
-
case 50:
|
|
39251
|
-
return _context5.abrupt("return", false);
|
|
39252
39271
|
case 51:
|
|
39272
|
+
return _context5.abrupt("return", false);
|
|
39273
|
+
case 52:
|
|
39253
39274
|
case "end":
|
|
39254
39275
|
return _context5.stop();
|
|
39255
39276
|
}
|
|
@@ -39284,7 +39305,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39284
39305
|
key: "loadBasketByCatalogCodex",
|
|
39285
39306
|
value: function () {
|
|
39286
39307
|
var _loadBasketByCatalogCodex = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(api) {
|
|
39287
|
-
var _this$plannerConfig$
|
|
39308
|
+
var _this$plannerConfig$s9;
|
|
39288
39309
|
var newBasket, _this$baskets$this$di;
|
|
39289
39310
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
39290
39311
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -39295,11 +39316,11 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39295
39316
|
if (this.plannerConfig.articleCodexes) {
|
|
39296
39317
|
this.origConfiguration.originArticleCodexes = this.plannerConfig.articleCodexes;
|
|
39297
39318
|
}
|
|
39298
|
-
if (!((_this$plannerConfig$
|
|
39319
|
+
if (!((_this$plannerConfig$s9 = this.plannerConfig.startDivaNr) !== null && _this$plannerConfig$s9 !== void 0)) {
|
|
39299
39320
|
_context6.next = 6;
|
|
39300
39321
|
break;
|
|
39301
39322
|
}
|
|
39302
|
-
_context6.t0 = _this$plannerConfig$
|
|
39323
|
+
_context6.t0 = _this$plannerConfig$s9;
|
|
39303
39324
|
_context6.next = 9;
|
|
39304
39325
|
break;
|
|
39305
39326
|
case 6:
|
|
@@ -39533,7 +39554,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39533
39554
|
key: "saveToBasket",
|
|
39534
39555
|
value: function () {
|
|
39535
39556
|
var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(api, actBasket, returnTo, arReady) {
|
|
39536
|
-
var _this$plannerConfig$
|
|
39557
|
+
var _this$plannerConfig$s10, _this$plannerConfig$c4, _this$_basketHandler, _api$getJwt;
|
|
39537
39558
|
var response;
|
|
39538
39559
|
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
39539
39560
|
while (1) switch (_context11.prev = _context11.next) {
|
|
@@ -39545,7 +39566,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39545
39566
|
actBasket.PrintOptions = api.getPrintOptions(this.reportConfig, !!arReady);
|
|
39546
39567
|
actBasket.ClientLanguage = api.getLanguage();
|
|
39547
39568
|
_context11.next = 8;
|
|
39548
|
-
return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser, (_this$plannerConfig$
|
|
39569
|
+
return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser, (_this$plannerConfig$s10 = this.plannerConfig.settings) === null || _this$plannerConfig$s10 === void 0 ? void 0 : _this$plannerConfig$s10.keepSalesPersonDataInBasket);
|
|
39549
39570
|
case 8:
|
|
39550
39571
|
actBasket.UserLanguage = api.getLanguage();
|
|
39551
39572
|
actBasket.PrintRetailLogo = (_this$plannerConfig$c4 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c4 === void 0 ? void 0 : _this$plannerConfig$c4.logoUrl;
|
|
@@ -39699,7 +39720,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39699
39720
|
if (_loop2()) continue;
|
|
39700
39721
|
}
|
|
39701
39722
|
var variantValues = article.VariantValuesParentOption;
|
|
39702
|
-
var data = _objectSpread$
|
|
39723
|
+
var data = _objectSpread$9(_objectSpread$9({}, this.actBasket), {}, {
|
|
39703
39724
|
changedValues: changedValues,
|
|
39704
39725
|
variantValues: variantValues,
|
|
39705
39726
|
isInit: isInit,
|
|
@@ -39724,7 +39745,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39724
39745
|
break;
|
|
39725
39746
|
case 3:
|
|
39726
39747
|
_context12.next = 5;
|
|
39727
|
-
return import('./PfisterWWSHandler-
|
|
39748
|
+
return import('./PfisterWWSHandler-764e2866.js');
|
|
39728
39749
|
case 5:
|
|
39729
39750
|
_yield$import = _context12.sent;
|
|
39730
39751
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -39732,7 +39753,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39732
39753
|
return _context12.abrupt("break", 27);
|
|
39733
39754
|
case 9:
|
|
39734
39755
|
_context12.next = 11;
|
|
39735
|
-
return import('./LiviqueWWSHandler-
|
|
39756
|
+
return import('./LiviqueWWSHandler-67cd9cc6.js');
|
|
39736
39757
|
case 11:
|
|
39737
39758
|
_yield$import2 = _context12.sent;
|
|
39738
39759
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -39740,7 +39761,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39740
39761
|
return _context12.abrupt("break", 27);
|
|
39741
39762
|
case 15:
|
|
39742
39763
|
_context12.next = 17;
|
|
39743
|
-
return import('./SeriousBasketHandler-
|
|
39764
|
+
return import('./SeriousBasketHandler-5de88b02.js');
|
|
39744
39765
|
case 17:
|
|
39745
39766
|
_yield$import3 = _context12.sent;
|
|
39746
39767
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -39748,7 +39769,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39748
39769
|
return _context12.abrupt("break", 27);
|
|
39749
39770
|
case 21:
|
|
39750
39771
|
_context12.next = 23;
|
|
39751
|
-
return import('./StandardWWSHandler-
|
|
39772
|
+
return import('./StandardWWSHandler-36fdcc6c.js');
|
|
39752
39773
|
case 23:
|
|
39753
39774
|
_yield$import4 = _context12.sent;
|
|
39754
39775
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -39768,8 +39789,8 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39768
39789
|
}]);
|
|
39769
39790
|
}();
|
|
39770
39791
|
|
|
39771
|
-
function ownKeys$
|
|
39772
|
-
function _objectSpread$
|
|
39792
|
+
function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
39793
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
39773
39794
|
var LOG$7 = DivaUtils.initLog('Products', 'WEB-PLANNER-LOGIC');
|
|
39774
39795
|
var DivaProductHandler = /*#__PURE__*/function () {
|
|
39775
39796
|
function DivaProductHandler() {
|
|
@@ -39814,7 +39835,7 @@ var DivaProductHandler = /*#__PURE__*/function () {
|
|
|
39814
39835
|
})
|
|
39815
39836
|
};
|
|
39816
39837
|
_context.next = 12;
|
|
39817
|
-
return api.getDataCache(api.checkMatchingProducts(), md5(JSON.stringify(_objectSpread$
|
|
39838
|
+
return api.getDataCache(api.checkMatchingProducts(), md5(JSON.stringify(_objectSpread$8(_objectSpread$8({}, data), {}, {
|
|
39818
39839
|
organizationId: api.OrganizationId
|
|
39819
39840
|
}))), '', 'catalog', 'POST', data);
|
|
39820
39841
|
case 12:
|
|
@@ -40916,8 +40937,8 @@ var HQRenderScript = /*#__PURE__*/function () {
|
|
|
40916
40937
|
}]);
|
|
40917
40938
|
}();
|
|
40918
40939
|
|
|
40919
|
-
function ownKeys$
|
|
40920
|
-
function _objectSpread$
|
|
40940
|
+
function ownKeys$7(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
40941
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
40921
40942
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
40922
40943
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
40923
40944
|
function _arrayLikeToArray(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; }
|
|
@@ -41177,7 +41198,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
41177
41198
|
while (1) switch (_context3.prev = _context3.next) {
|
|
41178
41199
|
case 0:
|
|
41179
41200
|
_context3.next = 2;
|
|
41180
|
-
return import('./Host3DSignalR-
|
|
41201
|
+
return import('./Host3DSignalR-d90e198d.js');
|
|
41181
41202
|
case 2:
|
|
41182
41203
|
_yield$import = _context3.sent;
|
|
41183
41204
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -41669,8 +41690,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
41669
41690
|
if (params.alternateRenderInfo && (params.alternateRenderInfo.overwrittenViewPointName || params.alternateRenderInfo.viewPointName)) this.handleStaticVP(params.alternateRenderInfo.overwrittenViewPointName ? params.alternateRenderInfo.overwrittenViewPointName : params.alternateRenderInfo.viewPointName);
|
|
41670
41691
|
hybridInfo = params.hybrid3DInfo;
|
|
41671
41692
|
if (params.useLatestHybridInfo && this.latestHybridInfo) {
|
|
41672
|
-
hybridInfo = _objectSpread$
|
|
41673
|
-
focus: _objectSpread$
|
|
41693
|
+
hybridInfo = _objectSpread$7(_objectSpread$7({}, this.latestHybridInfo), {}, {
|
|
41694
|
+
focus: _objectSpread$7(_objectSpread$7({}, this.latestHybridInfo.focus), {}, {
|
|
41674
41695
|
rotationCenter: this.currentCamera.targetPos,
|
|
41675
41696
|
adjustZoomInUnity: true,
|
|
41676
41697
|
onlyAdjustZoomBBChanged: true
|
|
@@ -41836,12 +41857,12 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
41836
41857
|
key: "getProductHash",
|
|
41837
41858
|
value: function getProductHash(planningData) {
|
|
41838
41859
|
return md5(JSON.stringify(planningData.SCE.ROO[0].SET.map(function (set) {
|
|
41839
|
-
return _objectSpread$
|
|
41860
|
+
return _objectSpread$7(_objectSpread$7({}, set), {}, {
|
|
41840
41861
|
TechSize: undefined,
|
|
41841
41862
|
ShowDim: undefined,
|
|
41842
41863
|
AlternateImg: undefined,
|
|
41843
41864
|
ELE: set.ELE.map(function (el) {
|
|
41844
|
-
return _objectSpread$
|
|
41865
|
+
return _objectSpread$7(_objectSpread$7({}, el), {}, {
|
|
41845
41866
|
TechSize: undefined
|
|
41846
41867
|
});
|
|
41847
41868
|
})
|
|
@@ -42028,7 +42049,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
42028
42049
|
});
|
|
42029
42050
|
_this2.liveArSocket.on('connected', function (data) {
|
|
42030
42051
|
LOG$4.debug('AR Socket connected ' + data.connectionId);
|
|
42031
|
-
_this2.liveArSocket.auth = _objectSpread$
|
|
42052
|
+
_this2.liveArSocket.auth = _objectSpread$7(_objectSpread$7({}, _this2.liveArSocket.auth), {}, {
|
|
42032
42053
|
connectionId: data.connectionId
|
|
42033
42054
|
});
|
|
42034
42055
|
var applyConfiguratorSessionId = DivaUtils.ConfigurationId ? '&configurationId=' + DivaUtils.ConfigurationId : '';
|
|
@@ -42735,7 +42756,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
42735
42756
|
break;
|
|
42736
42757
|
case 8:
|
|
42737
42758
|
_context4.next = 10;
|
|
42738
|
-
return import('./DivaStandardPlanner-
|
|
42759
|
+
return import('./DivaStandardPlanner-ac2f8d99.js');
|
|
42739
42760
|
case 10:
|
|
42740
42761
|
_yield$import = _context4.sent;
|
|
42741
42762
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -42746,7 +42767,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
42746
42767
|
return _context4.abrupt("break", 21);
|
|
42747
42768
|
case 15:
|
|
42748
42769
|
_context4.next = 17;
|
|
42749
|
-
return import('./DivaBoxPlanner-
|
|
42770
|
+
return import('./DivaBoxPlanner-8dc0cf54.js');
|
|
42750
42771
|
case 17:
|
|
42751
42772
|
_yield$import2 = _context4.sent;
|
|
42752
42773
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -43731,8 +43752,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43731
43752
|
}]);
|
|
43732
43753
|
}();
|
|
43733
43754
|
|
|
43734
|
-
function ownKeys$
|
|
43735
|
-
function _objectSpread$
|
|
43755
|
+
function ownKeys$6(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
43756
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
43736
43757
|
/*
|
|
43737
43758
|
Das ist der Konstruktor für den ganzen Web Planner.
|
|
43738
43759
|
Er baut alle Klassen und initialisiert sie.
|
|
@@ -44079,7 +44100,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44079
44100
|
deletionResult = _context4.sent;
|
|
44080
44101
|
(_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);
|
|
44081
44102
|
initParams.oldPlannerTransform = deletionResult.oldTransform;
|
|
44082
|
-
initParams.variantValues = _objectSpread$
|
|
44103
|
+
initParams.variantValues = _objectSpread$6(_objectSpread$6({}, variantValues), {}, _defineProperty({}, (!set.CatalogData.isIDMFormat ? 'OPT' : '') + 'PLANNERSWITCH', (!set.CatalogData.isIDMFormat ? 'OPT' : '') + articleCodex));
|
|
44083
44104
|
_context4.next = 11;
|
|
44084
44105
|
return setHandlerInstance.addPlannerElement(set, articleCodex, initParams);
|
|
44085
44106
|
case 11:
|
|
@@ -46596,7 +46617,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46596
46617
|
while (1) switch (_context31.prev = _context31.next) {
|
|
46597
46618
|
case 0:
|
|
46598
46619
|
//empty services
|
|
46599
|
-
this.api = new DivaApiHandler(_objectSpread$
|
|
46620
|
+
this.api = new DivaApiHandler(_objectSpread$6(_objectSpread$6({}, this.plannerConfig), {}, {
|
|
46600
46621
|
actions: {
|
|
46601
46622
|
getSessionGuid: getSessionGuid
|
|
46602
46623
|
},
|
|
@@ -47456,8 +47477,8 @@ var Cell = /*#__PURE__*/function () {
|
|
|
47456
47477
|
}]);
|
|
47457
47478
|
}();
|
|
47458
47479
|
|
|
47459
|
-
function ownKeys$
|
|
47460
|
-
function _objectSpread$
|
|
47480
|
+
function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
47481
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
47461
47482
|
var Grid = /*#__PURE__*/function () {
|
|
47462
47483
|
function Grid(index, article, data) {
|
|
47463
47484
|
_classCallCheck(this, Grid);
|
|
@@ -48665,7 +48686,7 @@ var Grid = /*#__PURE__*/function () {
|
|
|
48665
48686
|
get: function get() {
|
|
48666
48687
|
var _this$articleRelation2;
|
|
48667
48688
|
return (_this$articleRelation2 = this.articleRelationsForOtherGroups) === null || _this$articleRelation2 === void 0 ? void 0 : _this$articleRelation2.map(function (g) {
|
|
48668
|
-
return _objectSpread$
|
|
48689
|
+
return _objectSpread$5(_objectSpread$5({}, g), {}, {
|
|
48669
48690
|
Group: 'SHELFARTICLE_' + g.Group
|
|
48670
48691
|
});
|
|
48671
48692
|
});
|
|
@@ -48699,6 +48720,846 @@ var Grid = /*#__PURE__*/function () {
|
|
|
48699
48720
|
}]);
|
|
48700
48721
|
}();
|
|
48701
48722
|
|
|
48723
|
+
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
48724
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
48725
|
+
var PlannerElementData = /*#__PURE__*/function () {
|
|
48726
|
+
function PlannerElementData(setId, basketId, _elementId, plannerType) {
|
|
48727
|
+
_classCallCheck(this, PlannerElementData);
|
|
48728
|
+
_defineProperty(this, "planElement", void 0);
|
|
48729
|
+
_defineProperty(this, "plannerStateHash", void 0);
|
|
48730
|
+
//this value saves the state of the plannerData - used to check if plannerData state changed
|
|
48731
|
+
// private dockingPoints: Map<string, DockingPoint[]>; //This map saves all docking Points accessioated to a type
|
|
48732
|
+
_defineProperty(this, "dockingPoints", void 0);
|
|
48733
|
+
//This map saves all docking Points accessioated to a type
|
|
48734
|
+
_defineProperty(this, "tempDockingPoints", void 0);
|
|
48735
|
+
//When reloading the element this array saves the previous docking points for redocking
|
|
48736
|
+
_defineProperty(this, "plannerType", void 0);
|
|
48737
|
+
_defineProperty(this, "basketId", void 0);
|
|
48738
|
+
_defineProperty(this, "doSetWidthFromSVG", void 0);
|
|
48739
|
+
this.basketId = basketId;
|
|
48740
|
+
this.planElement = {
|
|
48741
|
+
elementId: _elementId,
|
|
48742
|
+
setId: setId,
|
|
48743
|
+
worldPosCenter: new Vector3(0, 0, 0),
|
|
48744
|
+
//welt Position der linken hinteren unteren Ecke des Elementes
|
|
48745
|
+
rotDeg: 0,
|
|
48746
|
+
posNr: -1,
|
|
48747
|
+
setPosNr: -1,
|
|
48748
|
+
oltHeight: 0,
|
|
48749
|
+
oltWidth: 0,
|
|
48750
|
+
oltLeft: 0,
|
|
48751
|
+
oltTop: 0
|
|
48752
|
+
};
|
|
48753
|
+
// this.dockingPoints = new Map<string, DockingPoint[]>();
|
|
48754
|
+
this.dockingPoints = [];
|
|
48755
|
+
this.tempDockingPoints = [];
|
|
48756
|
+
this.plannerStateHash = '';
|
|
48757
|
+
this.plannerType = plannerType;
|
|
48758
|
+
this.doSetWidthFromSVG = false;
|
|
48759
|
+
}
|
|
48760
|
+
return _createClass(PlannerElementData, [{
|
|
48761
|
+
key: "destroy",
|
|
48762
|
+
value: function destroy() {
|
|
48763
|
+
this.planElement.svgShapeOLF2D = null;
|
|
48764
|
+
this.planElement.svgShapeOLT2D = null;
|
|
48765
|
+
this.planElement.svgAsHTMLCanvas = undefined;
|
|
48766
|
+
this.dockingPoints = [];
|
|
48767
|
+
this.tempDockingPoints = [];
|
|
48768
|
+
}
|
|
48769
|
+
}, {
|
|
48770
|
+
key: "getTempDockingPoints",
|
|
48771
|
+
value: function getTempDockingPoints() {
|
|
48772
|
+
return this.tempDockingPoints;
|
|
48773
|
+
}
|
|
48774
|
+
}, {
|
|
48775
|
+
key: "clearTempDockingPoints",
|
|
48776
|
+
value: function clearTempDockingPoints() {
|
|
48777
|
+
this.tempDockingPoints = [];
|
|
48778
|
+
}
|
|
48779
|
+
}, {
|
|
48780
|
+
key: "getDockingPoints",
|
|
48781
|
+
value: function getDockingPoints() {
|
|
48782
|
+
return this.dockingPoints;
|
|
48783
|
+
}
|
|
48784
|
+
|
|
48785
|
+
/**
|
|
48786
|
+
* This function returns true if any docking Point of the type is docking. For example, the type is AVL. if no AVL is docking - return false. If at least one AVL is docking - return true.
|
|
48787
|
+
* @param type Type of the docking point
|
|
48788
|
+
*/
|
|
48789
|
+
}, {
|
|
48790
|
+
key: "dockingTypeIsDocking",
|
|
48791
|
+
value: function dockingTypeIsDocking(type) {
|
|
48792
|
+
var dockingPoints = this.getDockingPointsByType(type);
|
|
48793
|
+
for (var i = 0; i < dockingPoints.length; i++) {
|
|
48794
|
+
if (dockingPoints[i].IsDocking) return true;
|
|
48795
|
+
}
|
|
48796
|
+
return false;
|
|
48797
|
+
}
|
|
48798
|
+
|
|
48799
|
+
/**
|
|
48800
|
+
* This function returns all docking DPs of a specific type.
|
|
48801
|
+
* @param type The type of the docking Point , e.g. AVL
|
|
48802
|
+
*/
|
|
48803
|
+
}, {
|
|
48804
|
+
key: "getDockingDockingPointsByType",
|
|
48805
|
+
value: function getDockingDockingPointsByType(type) {
|
|
48806
|
+
var dockingPoints = this.getDockingPointsByType(type);
|
|
48807
|
+
var ret = [];
|
|
48808
|
+
for (var i = 0; i < dockingPoints.length; i++) {
|
|
48809
|
+
if (dockingPoints[i].IsDocking) ret.push(dockingPoints[i]);
|
|
48810
|
+
}
|
|
48811
|
+
return ret;
|
|
48812
|
+
}
|
|
48813
|
+
|
|
48814
|
+
/**
|
|
48815
|
+
* This function returns all docking DPs of any type.
|
|
48816
|
+
*/
|
|
48817
|
+
}, {
|
|
48818
|
+
key: "getDockingDockingPoints",
|
|
48819
|
+
value: function getDockingDockingPoints() {
|
|
48820
|
+
var ret = [];
|
|
48821
|
+
for (var i = 0; i < this.dockingPoints.length; i++) {
|
|
48822
|
+
if (this.dockingPoints[i].IsDocking) ret.push(this.dockingPoints[i]);
|
|
48823
|
+
}
|
|
48824
|
+
return ret;
|
|
48825
|
+
}
|
|
48826
|
+
|
|
48827
|
+
/**
|
|
48828
|
+
* This function returns all notDocking DPs of a specific type.
|
|
48829
|
+
* @param type The type of the docking Point , e.g. AVL
|
|
48830
|
+
*/
|
|
48831
|
+
}, {
|
|
48832
|
+
key: "getFreeDockingPointsByType",
|
|
48833
|
+
value: function getFreeDockingPointsByType(type) {
|
|
48834
|
+
var dockingPoints = this.getDockingPointsByType(type);
|
|
48835
|
+
var ret = [];
|
|
48836
|
+
for (var i = 0; i < dockingPoints.length; i++) {
|
|
48837
|
+
if (!dockingPoints[i].IsDocking) ret.push(dockingPoints[i]);
|
|
48838
|
+
}
|
|
48839
|
+
return ret;
|
|
48840
|
+
}
|
|
48841
|
+
|
|
48842
|
+
/**
|
|
48843
|
+
* This function returns the free docking with the specific type and number
|
|
48844
|
+
* @param type
|
|
48845
|
+
* @param number
|
|
48846
|
+
*/
|
|
48847
|
+
}, {
|
|
48848
|
+
key: "getFreeDockingPointByTypeAndNumber",
|
|
48849
|
+
value: function getFreeDockingPointByTypeAndNumber(type, number) {
|
|
48850
|
+
for (var i = 0; i < this.dockingPoints.length; i++) {
|
|
48851
|
+
if (!this.dockingPoints[i].IsDocking && this.dockingPoints[i].Type == type && this.dockingPoints[i].Number == number) return this.dockingPoints[i];
|
|
48852
|
+
}
|
|
48853
|
+
return undefined;
|
|
48854
|
+
}
|
|
48855
|
+
|
|
48856
|
+
/**
|
|
48857
|
+
* This function returns all docking points of the element. It returns docking and not docking points with any type.
|
|
48858
|
+
*/
|
|
48859
|
+
}, {
|
|
48860
|
+
key: "getAllDockingPoints",
|
|
48861
|
+
value: function getAllDockingPoints() {
|
|
48862
|
+
return this.dockingPoints;
|
|
48863
|
+
}
|
|
48864
|
+
}, {
|
|
48865
|
+
key: "getDockingPointsByType",
|
|
48866
|
+
value: function getDockingPointsByType(type) {
|
|
48867
|
+
var dps = [];
|
|
48868
|
+
for (var i = 0; i < this.dockingPoints.length; i++) {
|
|
48869
|
+
if (this.dockingPoints[i].Type == type) {
|
|
48870
|
+
dps.push(this.dockingPoints[i]);
|
|
48871
|
+
}
|
|
48872
|
+
}
|
|
48873
|
+
return dps;
|
|
48874
|
+
}
|
|
48875
|
+
}, {
|
|
48876
|
+
key: "getDockingPointById",
|
|
48877
|
+
value: function getDockingPointById(id) {
|
|
48878
|
+
for (var i = 0; i < this.dockingPoints.length; i++) {
|
|
48879
|
+
if (this.dockingPoints[i].DpId == id) {
|
|
48880
|
+
return this.dockingPoints[i];
|
|
48881
|
+
}
|
|
48882
|
+
}
|
|
48883
|
+
return undefined;
|
|
48884
|
+
}
|
|
48885
|
+
/**
|
|
48886
|
+
* This function retuns the DockingPoint info in a string format that is used for the 3D image rendering planningData.
|
|
48887
|
+
*/
|
|
48888
|
+
}, {
|
|
48889
|
+
key: "getDockingPointJS3D",
|
|
48890
|
+
value: function getDockingPointJS3D() {
|
|
48891
|
+
var dpJS = '';
|
|
48892
|
+
for (var i = 0; i < this.dockingPoints.length; i++) {
|
|
48893
|
+
var dockingPoint = this.dockingPoints[i];
|
|
48894
|
+
if (dockingPoint.IsDocking) {
|
|
48895
|
+
if (dpJS != '') dpJS += ',';
|
|
48896
|
+
dpJS += dockingPoint.Name + ':' + 'E' + dockingPoint.OnElementId;
|
|
48897
|
+
}
|
|
48898
|
+
}
|
|
48899
|
+
return dpJS;
|
|
48900
|
+
}
|
|
48901
|
+
}, {
|
|
48902
|
+
key: "ArticleCodex",
|
|
48903
|
+
get: function get() {
|
|
48904
|
+
var _this$planElement$pla, _this$planElement$pla2;
|
|
48905
|
+
return (_this$planElement$pla = this.planElement.plannerData) !== null && _this$planElement$pla !== void 0 && _this$planElement$pla.articleCodex ? (_this$planElement$pla2 = this.planElement.plannerData) === null || _this$planElement$pla2 === void 0 ? void 0 : _this$planElement$pla2.articleCodex : '';
|
|
48906
|
+
}
|
|
48907
|
+
/**
|
|
48908
|
+
* Returns true if the accessoire is docked to another element in the planner (relatedToBasketID is set).
|
|
48909
|
+
*/
|
|
48910
|
+
}, {
|
|
48911
|
+
key: "IsDockedAccessoire",
|
|
48912
|
+
get: function get() {
|
|
48913
|
+
return this.planElement.plannerData ? this.planElement.plannerData.isAccessoire : false;
|
|
48914
|
+
}
|
|
48915
|
+
|
|
48916
|
+
//this.planElement.plannerData && this.planElement.plannerData.isAccessoire -> Becomes true if the accessoire is placed in the planner and docked to an element - this must not be true when loading the accessoire for the first time
|
|
48917
|
+
//this.planElement.plannerData?.filterType == "Accessoire" -> This is always true - The Accesssoire article is listed as accessoire
|
|
48918
|
+
}, {
|
|
48919
|
+
key: "IsAccessoire",
|
|
48920
|
+
get: function get() {
|
|
48921
|
+
var _this$planElement$pla3, _this$planElement$pla4;
|
|
48922
|
+
return ((_this$planElement$pla3 = this.planElement.plannerData) === null || _this$planElement$pla3 === void 0 ? void 0 : _this$planElement$pla3.filterType) == 'Accessoire' || ((_this$planElement$pla4 = this.planElement.plannerData) === null || _this$planElement$pla4 === void 0 ? void 0 : _this$planElement$pla4.isAccessoire);
|
|
48923
|
+
}
|
|
48924
|
+
}, {
|
|
48925
|
+
key: "FilterAVL",
|
|
48926
|
+
get: function get() {
|
|
48927
|
+
return this.getFilterAVL();
|
|
48928
|
+
}
|
|
48929
|
+
}, {
|
|
48930
|
+
key: "FilterAVR",
|
|
48931
|
+
get: function get() {
|
|
48932
|
+
return this.getFilterAVR();
|
|
48933
|
+
}
|
|
48934
|
+
}, {
|
|
48935
|
+
key: "PosNr",
|
|
48936
|
+
get: function get() {
|
|
48937
|
+
return this.planElement.posNr;
|
|
48938
|
+
},
|
|
48939
|
+
set: function set(posNr) {
|
|
48940
|
+
this.planElement.posNr = posNr;
|
|
48941
|
+
}
|
|
48942
|
+
}, {
|
|
48943
|
+
key: "SetPosNr",
|
|
48944
|
+
set: function set(setPosNr) {
|
|
48945
|
+
this.planElement.setPosNr = setPosNr;
|
|
48946
|
+
}
|
|
48947
|
+
}, {
|
|
48948
|
+
key: "AccessoirePosNr",
|
|
48949
|
+
get: function get() {
|
|
48950
|
+
return this.planElement.posNrAcc != undefined ? this.planElement.posNrAcc : -1;
|
|
48951
|
+
},
|
|
48952
|
+
set: function set(posNr) {
|
|
48953
|
+
this.planElement.posNrAcc = posNr;
|
|
48954
|
+
}
|
|
48955
|
+
}, {
|
|
48956
|
+
key: "WorldPosCenter",
|
|
48957
|
+
get: function get() {
|
|
48958
|
+
return this.planElement.worldPosCenter;
|
|
48959
|
+
},
|
|
48960
|
+
set: function set(pos) {
|
|
48961
|
+
this.planElement.worldPosCenter = pos;
|
|
48962
|
+
}
|
|
48963
|
+
}, {
|
|
48964
|
+
key: "WorldPosCenterIgnoreOLF",
|
|
48965
|
+
get: function get() {
|
|
48966
|
+
var olfCorner = this.WorldPosCorner;
|
|
48967
|
+
var centerDir = new Vector2(this.planElement.oltLeft + this.planElement.oltWidth / 2.0, this.planElement.oltTop + this.planElement.oltHeight / 2.0);
|
|
48968
|
+
centerDir = Vector2.rotateOrigin(centerDir, this.planElement.rotDeg);
|
|
48969
|
+
var worldPosCornerIgnoreOLF = new Vector3(olfCorner.x + centerDir.x, this.WorldPosCenter.y, olfCorner.z + centerDir.y);
|
|
48970
|
+
return worldPosCornerIgnoreOLF;
|
|
48971
|
+
}
|
|
48972
|
+
|
|
48973
|
+
/**
|
|
48974
|
+
* This function returns the world pos of the top left bottom corner.
|
|
48975
|
+
*/
|
|
48976
|
+
}, {
|
|
48977
|
+
key: "WorldPosCorner",
|
|
48978
|
+
get: function get() {
|
|
48979
|
+
if (this.planElement.plannerData == null) return new Vector3(0, 0, 0);
|
|
48980
|
+
var cornerDir = new Vector2(-this.planElement.plannerData.width / 2, -this.planElement.plannerData.depth / 2);
|
|
48981
|
+
cornerDir = Vector2.rotateOrigin(cornerDir, this.planElement.rotDeg);
|
|
48982
|
+
return new Vector3(this.planElement.worldPosCenter.x + cornerDir.x, this.planElement.worldPosCenter.y - this.planElement.plannerData.height / 2, this.planElement.worldPosCenter.z + cornerDir.y);
|
|
48983
|
+
},
|
|
48984
|
+
set: function set(cornerPos) {
|
|
48985
|
+
if (!this.planElement.plannerData) return;
|
|
48986
|
+
var centerDir = new Vector2(this.planElement.plannerData.width / 2, this.planElement.plannerData.depth / 2);
|
|
48987
|
+
centerDir = Vector2.rotateOrigin(centerDir, this.planElement.rotDeg);
|
|
48988
|
+
this.planElement.worldPosCenter = new Vector3(cornerPos.x + centerDir.x, cornerPos.y + this.planElement.plannerData.height / 2, cornerPos.z + centerDir.y);
|
|
48989
|
+
}
|
|
48990
|
+
|
|
48991
|
+
/**
|
|
48992
|
+
* This function updates the world position and rotation of the element based of some delta Elements
|
|
48993
|
+
* @param deltaMove delta translation in cm
|
|
48994
|
+
* @param deltaRotDeg delta rotation in degrees
|
|
48995
|
+
* @param rotCorrection Specifies the degrees the rotation is corrected. For Example if rotCorrection is 5 degrees and the final angle is between 20 and 25: Then the final angle is rounded to the nearest angle
|
|
48996
|
+
*/
|
|
48997
|
+
}, {
|
|
48998
|
+
key: "updateDeltaTrans",
|
|
48999
|
+
value: function updateDeltaTrans(deltaMove, deltaRotDeg, rotCorrection, correctAngle) {
|
|
49000
|
+
this.WorldPosCenter = new Vector3(this.WorldPosCenter.x + deltaMove.x, this.WorldPosCenter.y + deltaMove.y, this.WorldPosCenter.z + deltaMove.z);
|
|
49001
|
+
if (deltaRotDeg != 0 || correctAngle) {
|
|
49002
|
+
if (correctAngle) {
|
|
49003
|
+
var newRot = this.RotDeg + deltaRotDeg;
|
|
49004
|
+
if (rotCorrection != 0) {
|
|
49005
|
+
if (Math.abs(newRot % rotCorrection) > rotCorrection / 2) {
|
|
49006
|
+
deltaRotDeg = deltaRotDeg + rotCorrection - Math.abs(newRot % rotCorrection);
|
|
49007
|
+
} else {
|
|
49008
|
+
deltaRotDeg = deltaRotDeg + Math.abs(newRot % rotCorrection);
|
|
49009
|
+
}
|
|
49010
|
+
}
|
|
49011
|
+
}
|
|
49012
|
+
this.processCenterRot(deltaRotDeg);
|
|
49013
|
+
}
|
|
49014
|
+
}
|
|
49015
|
+
}, {
|
|
49016
|
+
key: "processCenterRot",
|
|
49017
|
+
value: function processCenterRot(deltaRot) {
|
|
49018
|
+
this.RotDeg = this.RotDeg + deltaRot;
|
|
49019
|
+
}
|
|
49020
|
+
/**
|
|
49021
|
+
* Returns the position in world coordinates of the DP of the element depending on the position and rotation of the planner element
|
|
49022
|
+
* @param dpID
|
|
49023
|
+
*/
|
|
49024
|
+
}, {
|
|
49025
|
+
key: "getWorldPosOfDP",
|
|
49026
|
+
value: function getWorldPosOfDP(dpID) {
|
|
49027
|
+
var dp = this.getDockingPointById(dpID);
|
|
49028
|
+
if (dp == undefined) return new Vector3(0, 0, 0);
|
|
49029
|
+
var rotatedDir = Vector2.rotateOrigin(new Vector2(dp === null || dp === void 0 ? void 0 : dp.LocalWorldPos.x, dp === null || dp === void 0 ? void 0 : dp.LocalWorldPos.z), this.RotDeg);
|
|
49030
|
+
return new Vector3(this.WorldPosCorner.x + rotatedDir.x, this.WorldPosCorner.y, this.WorldPosCorner.z + rotatedDir.y);
|
|
49031
|
+
}
|
|
49032
|
+
|
|
49033
|
+
/**
|
|
49034
|
+
* Returns the outlines of the bounding box in world coordinates
|
|
49035
|
+
*/
|
|
49036
|
+
}, {
|
|
49037
|
+
key: "getWorld2DBBoxOutline",
|
|
49038
|
+
value: function getWorld2DBBoxOutline() {
|
|
49039
|
+
var bboxPoints = [];
|
|
49040
|
+
bboxPoints.push(new Vector2(this.WorldPosCorner.x, this.WorldPosCorner.z));
|
|
49041
|
+
var helper = Vector2.rotateOrigin(new Vector2(this.getGlobalWidth(), 0), this.RotDeg);
|
|
49042
|
+
bboxPoints.push(new Vector2(this.WorldPosCorner.x + helper.x, this.WorldPosCorner.z + helper.y));
|
|
49043
|
+
helper = Vector2.rotateOrigin(new Vector2(this.getGlobalWidth(), this.getGlobalDepth()), this.RotDeg);
|
|
49044
|
+
bboxPoints.push(new Vector2(this.WorldPosCorner.x + helper.x, this.WorldPosCorner.z + helper.y));
|
|
49045
|
+
helper = Vector2.rotateOrigin(new Vector2(0, this.getGlobalDepth()), this.RotDeg);
|
|
49046
|
+
bboxPoints.push(new Vector2(this.WorldPosCorner.x + helper.x, this.WorldPosCorner.z + helper.y));
|
|
49047
|
+
return bboxPoints;
|
|
49048
|
+
}
|
|
49049
|
+
}, {
|
|
49050
|
+
key: "RotDeg",
|
|
49051
|
+
get: function get() {
|
|
49052
|
+
return this.planElement.rotDeg;
|
|
49053
|
+
}
|
|
49054
|
+
|
|
49055
|
+
/**
|
|
49056
|
+
* Saves the current docking point state
|
|
49057
|
+
*/,
|
|
49058
|
+
set: function set(rot) {
|
|
49059
|
+
this.planElement.rotDeg = rot;
|
|
49060
|
+
}
|
|
49061
|
+
}, {
|
|
49062
|
+
key: "saveCurrentDPState",
|
|
49063
|
+
value: function saveCurrentDPState() {
|
|
49064
|
+
if (this.dockingPoints && this.dockingPoints.length > 0) {
|
|
49065
|
+
this.tempDockingPoints = [];
|
|
49066
|
+
for (var i = 0; i < this.dockingPoints.length; i++) {
|
|
49067
|
+
this.tempDockingPoints.push(this.dockingPoints[i].clone());
|
|
49068
|
+
}
|
|
49069
|
+
}
|
|
49070
|
+
}
|
|
49071
|
+
}, {
|
|
49072
|
+
key: "clearAllDockingPoints",
|
|
49073
|
+
value: function clearAllDockingPoints() {
|
|
49074
|
+
this.dockingPoints = [];
|
|
49075
|
+
}
|
|
49076
|
+
}, {
|
|
49077
|
+
key: "addDockingPoint",
|
|
49078
|
+
value: function addDockingPoint(dockingPoint) {
|
|
49079
|
+
this.dockingPoints.push(dockingPoint);
|
|
49080
|
+
}
|
|
49081
|
+
|
|
49082
|
+
//Sets the planner Data. Returns true if something changed -> Reload
|
|
49083
|
+
}, {
|
|
49084
|
+
key: "updatePlannerData",
|
|
49085
|
+
value: function updatePlannerData(data) {
|
|
49086
|
+
//The plannerData ist keine Kopie, sondern ein verweis - wenn im Konfigurator das PlannerData Object geändert wird, dann wird es das hier auch.
|
|
49087
|
+
if ((data === null || data === void 0 ? void 0 : data.width) == undefined || data.width == -1) {
|
|
49088
|
+
this.doSetWidthFromSVG = true;
|
|
49089
|
+
} else {
|
|
49090
|
+
this.doSetWidthFromSVG = false;
|
|
49091
|
+
}
|
|
49092
|
+
if (this.planElement.plannerData == null && data != null) {
|
|
49093
|
+
this.planElement.plannerData = data;
|
|
49094
|
+
this.plannerStateHash = md5(JSON.stringify(this.planElement.plannerData));
|
|
49095
|
+
return true;
|
|
49096
|
+
}
|
|
49097
|
+
if (data != null) this.planElement.plannerData = data;
|
|
49098
|
+
if (!this.planElement.plannerData) return false;
|
|
49099
|
+
var plannerDataForCache = _objectSpread$4(_objectSpread$4({}, this.planElement.plannerData), {}, {
|
|
49100
|
+
currentAccessorires: []
|
|
49101
|
+
});
|
|
49102
|
+
var currentHash = md5(JSON.stringify(plannerDataForCache));
|
|
49103
|
+
if (this.plannerStateHash != currentHash) {
|
|
49104
|
+
this.plannerStateHash = currentHash;
|
|
49105
|
+
return true;
|
|
49106
|
+
}
|
|
49107
|
+
return false;
|
|
49108
|
+
}
|
|
49109
|
+
}, {
|
|
49110
|
+
key: "cleanShapeOLF2D",
|
|
49111
|
+
value: function cleanShapeOLF2D() {
|
|
49112
|
+
this.planElement.svgShapeOLF2D = undefined;
|
|
49113
|
+
}
|
|
49114
|
+
}, {
|
|
49115
|
+
key: "cleanShapeOLT2D",
|
|
49116
|
+
value: function cleanShapeOLT2D() {
|
|
49117
|
+
this.planElement.svgShapeOLT2D = undefined;
|
|
49118
|
+
}
|
|
49119
|
+
}, {
|
|
49120
|
+
key: "DoSetWidthFromSVG",
|
|
49121
|
+
get: function get() {
|
|
49122
|
+
return this.doSetWidthFromSVG;
|
|
49123
|
+
}
|
|
49124
|
+
}, {
|
|
49125
|
+
key: "WidthFromSVG",
|
|
49126
|
+
set: function set(svgWidth) {
|
|
49127
|
+
if (this.planElement.plannerData) this.planElement.plannerData.width = svgWidth;
|
|
49128
|
+
this.doSetWidthFromSVG = false;
|
|
49129
|
+
}
|
|
49130
|
+
}, {
|
|
49131
|
+
key: "ElementId",
|
|
49132
|
+
get: function get() {
|
|
49133
|
+
return this.planElement.elementId;
|
|
49134
|
+
}
|
|
49135
|
+
}, {
|
|
49136
|
+
key: "SvgFileName",
|
|
49137
|
+
get: function get() {
|
|
49138
|
+
var _this$planElement$pla5;
|
|
49139
|
+
return (_this$planElement$pla5 = this.planElement.plannerData) === null || _this$planElement$pla5 === void 0 ? void 0 : _this$planElement$pla5.curSVG;
|
|
49140
|
+
}
|
|
49141
|
+
}, {
|
|
49142
|
+
key: "Width",
|
|
49143
|
+
get: function get() {
|
|
49144
|
+
var _this$planElement$pla6;
|
|
49145
|
+
return (_this$planElement$pla6 = this.planElement.plannerData) === null || _this$planElement$pla6 === void 0 ? void 0 : _this$planElement$pla6.width;
|
|
49146
|
+
}
|
|
49147
|
+
}, {
|
|
49148
|
+
key: "Height",
|
|
49149
|
+
get: function get() {
|
|
49150
|
+
var _this$planElement$pla7;
|
|
49151
|
+
return (_this$planElement$pla7 = this.planElement.plannerData) === null || _this$planElement$pla7 === void 0 ? void 0 : _this$planElement$pla7.height;
|
|
49152
|
+
}
|
|
49153
|
+
}, {
|
|
49154
|
+
key: "Depth",
|
|
49155
|
+
get: function get() {
|
|
49156
|
+
var _this$planElement$pla8;
|
|
49157
|
+
return (_this$planElement$pla8 = this.planElement.plannerData) === null || _this$planElement$pla8 === void 0 ? void 0 : _this$planElement$pla8.depth;
|
|
49158
|
+
}
|
|
49159
|
+
}, {
|
|
49160
|
+
key: "HasAVL",
|
|
49161
|
+
get: function get() {
|
|
49162
|
+
var _this$planElement$pla9;
|
|
49163
|
+
return (_this$planElement$pla9 = this.planElement.plannerData) === null || _this$planElement$pla9 === void 0 ? void 0 : _this$planElement$pla9.hasAVL;
|
|
49164
|
+
}
|
|
49165
|
+
}, {
|
|
49166
|
+
key: "HasAVR",
|
|
49167
|
+
get: function get() {
|
|
49168
|
+
var _this$planElement$pla10;
|
|
49169
|
+
return (_this$planElement$pla10 = this.planElement.plannerData) === null || _this$planElement$pla10 === void 0 ? void 0 : _this$planElement$pla10.hasAVR;
|
|
49170
|
+
}
|
|
49171
|
+
}, {
|
|
49172
|
+
key: "HasAVO",
|
|
49173
|
+
get: function get() {
|
|
49174
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVO > 0 ? true : false : false;
|
|
49175
|
+
}
|
|
49176
|
+
}, {
|
|
49177
|
+
key: "HasAVU",
|
|
49178
|
+
get: function get() {
|
|
49179
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVU > 0 ? true : false : false;
|
|
49180
|
+
}
|
|
49181
|
+
}, {
|
|
49182
|
+
key: "HasAVC",
|
|
49183
|
+
get: function get() {
|
|
49184
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVC > 0 ? true : false : false;
|
|
49185
|
+
}
|
|
49186
|
+
}, {
|
|
49187
|
+
key: "HasAVN",
|
|
49188
|
+
get: function get() {
|
|
49189
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVN > 0 ? true : false : false;
|
|
49190
|
+
}
|
|
49191
|
+
}, {
|
|
49192
|
+
key: "HasAVS",
|
|
49193
|
+
get: function get() {
|
|
49194
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVS > 0 ? true : false : false;
|
|
49195
|
+
}
|
|
49196
|
+
}, {
|
|
49197
|
+
key: "SvgShapeOLF2D",
|
|
49198
|
+
get: function get() {
|
|
49199
|
+
return this.planElement.svgShapeOLF2D;
|
|
49200
|
+
},
|
|
49201
|
+
set: function set(shape) {
|
|
49202
|
+
this.planElement.svgShapeOLF2D = shape;
|
|
49203
|
+
}
|
|
49204
|
+
}, {
|
|
49205
|
+
key: "SvgShapeOLT2D",
|
|
49206
|
+
get: function get() {
|
|
49207
|
+
return this.planElement.svgShapeOLT2D;
|
|
49208
|
+
},
|
|
49209
|
+
set: function set(shape) {
|
|
49210
|
+
this.planElement.svgShapeOLT2D = shape;
|
|
49211
|
+
}
|
|
49212
|
+
}, {
|
|
49213
|
+
key: "OLTPolygon",
|
|
49214
|
+
get: function get() {
|
|
49215
|
+
return this.planElement.oltPolygon;
|
|
49216
|
+
},
|
|
49217
|
+
set: function set(polygon) {
|
|
49218
|
+
this.planElement.oltPolygon = polygon;
|
|
49219
|
+
}
|
|
49220
|
+
}, {
|
|
49221
|
+
key: "OLTTop",
|
|
49222
|
+
set: function set(top) {
|
|
49223
|
+
this.planElement.oltTop = top / DivaUtils.UnitRecalc;
|
|
49224
|
+
}
|
|
49225
|
+
}, {
|
|
49226
|
+
key: "OLTLeft",
|
|
49227
|
+
set: function set(left) {
|
|
49228
|
+
this.planElement.oltLeft = left / DivaUtils.UnitRecalc;
|
|
49229
|
+
}
|
|
49230
|
+
}, {
|
|
49231
|
+
key: "OLTWidth",
|
|
49232
|
+
set: function set(width) {
|
|
49233
|
+
this.planElement.oltWidth = width / DivaUtils.UnitRecalc;
|
|
49234
|
+
}
|
|
49235
|
+
}, {
|
|
49236
|
+
key: "OLTHeight",
|
|
49237
|
+
set: function set(height) {
|
|
49238
|
+
this.planElement.oltHeight = height / DivaUtils.UnitRecalc;
|
|
49239
|
+
}
|
|
49240
|
+
}, {
|
|
49241
|
+
key: "setupOLF",
|
|
49242
|
+
value: function setupOLF(polygon, olfWidth, olfHeight) {
|
|
49243
|
+
this.planElement.olfPolygon = polygon;
|
|
49244
|
+
this.planElement.olfWidth = olfWidth;
|
|
49245
|
+
}
|
|
49246
|
+
}, {
|
|
49247
|
+
key: "clearOLF",
|
|
49248
|
+
value: function clearOLF() {
|
|
49249
|
+
this.planElement.olfPolygon = undefined;
|
|
49250
|
+
this.planElement.olfWidth = undefined;
|
|
49251
|
+
}
|
|
49252
|
+
}, {
|
|
49253
|
+
key: "getGlobalWidth",
|
|
49254
|
+
value: function getGlobalWidth() {
|
|
49255
|
+
if (this.HasOLFPolygon) {
|
|
49256
|
+
return this.planElement.olfWidth / DivaUtils.UnitRecalc;
|
|
49257
|
+
}
|
|
49258
|
+
return this.Width;
|
|
49259
|
+
}
|
|
49260
|
+
}, {
|
|
49261
|
+
key: "getGlobalDepth",
|
|
49262
|
+
value: function getGlobalDepth() {
|
|
49263
|
+
return this.Depth;
|
|
49264
|
+
}
|
|
49265
|
+
}, {
|
|
49266
|
+
key: "HasOLTPolygon",
|
|
49267
|
+
get: function get() {
|
|
49268
|
+
return this.planElement.oltPolygon != null;
|
|
49269
|
+
}
|
|
49270
|
+
}, {
|
|
49271
|
+
key: "HasOLFPolygon",
|
|
49272
|
+
get: function get() {
|
|
49273
|
+
return this.planElement.olfPolygon != null;
|
|
49274
|
+
}
|
|
49275
|
+
}, {
|
|
49276
|
+
key: "svgBefore",
|
|
49277
|
+
get: function get() {
|
|
49278
|
+
var _this$planElement$pla11;
|
|
49279
|
+
return (_this$planElement$pla11 = this.planElement.plannerData) === null || _this$planElement$pla11 === void 0 ? void 0 : _this$planElement$pla11.svgBefore;
|
|
49280
|
+
},
|
|
49281
|
+
set: function set(svg) {
|
|
49282
|
+
if (this.planElement.plannerData) this.planElement.plannerData.svgBefore = svg;
|
|
49283
|
+
}
|
|
49284
|
+
}, {
|
|
49285
|
+
key: "svgAfter",
|
|
49286
|
+
get: function get() {
|
|
49287
|
+
var _this$planElement$pla12;
|
|
49288
|
+
return (_this$planElement$pla12 = this.planElement.plannerData) === null || _this$planElement$pla12 === void 0 ? void 0 : _this$planElement$pla12.svgAfter;
|
|
49289
|
+
},
|
|
49290
|
+
set: function set(svg) {
|
|
49291
|
+
if (this.planElement.plannerData) this.planElement.plannerData.svgAfter = svg;
|
|
49292
|
+
}
|
|
49293
|
+
}, {
|
|
49294
|
+
key: "getOLTPolygonWorldPos",
|
|
49295
|
+
value: function getOLTPolygonWorldPos() {
|
|
49296
|
+
if (!this.planElement.oltPolygon) return [];
|
|
49297
|
+
var polygon = [];
|
|
49298
|
+
for (var i = 0; i < this.planElement.oltPolygon.length; i++) {
|
|
49299
|
+
var localWorldPos = new Vector2(this.planElement.oltPolygon[i].x / DivaUtils.UnitRecalc, this.planElement.oltPolygon[i].y / DivaUtils.UnitRecalc);
|
|
49300
|
+
localWorldPos = Vector2.rotateOrigin(localWorldPos, this.RotDeg);
|
|
49301
|
+
polygon.push(new Vector2(this.WorldPosCorner.x + localWorldPos.x, this.WorldPosCorner.z + localWorldPos.y));
|
|
49302
|
+
}
|
|
49303
|
+
return polygon;
|
|
49304
|
+
}
|
|
49305
|
+
}, {
|
|
49306
|
+
key: "getOLFPolygonWorldPos",
|
|
49307
|
+
value: function getOLFPolygonWorldPos() {
|
|
49308
|
+
var polygon = [];
|
|
49309
|
+
if (!this.planElement.olfPolygon) return [];
|
|
49310
|
+
for (var i = 0; i < this.planElement.olfPolygon.length; i++) {
|
|
49311
|
+
var localWorldPos = new Vector2(this.planElement.olfPolygon[i].x / DivaUtils.UnitRecalc, this.planElement.olfPolygon[i].y / DivaUtils.UnitRecalc);
|
|
49312
|
+
localWorldPos = Vector2.rotateOrigin(localWorldPos, this.RotDeg);
|
|
49313
|
+
polygon.push(new Vector2(this.WorldPosCorner.x + localWorldPos.x, this.WorldPosCorner.z + localWorldPos.y));
|
|
49314
|
+
}
|
|
49315
|
+
return polygon;
|
|
49316
|
+
}
|
|
49317
|
+
}, {
|
|
49318
|
+
key: "SvgData",
|
|
49319
|
+
get: function get() {
|
|
49320
|
+
return this.planElement.svgData ? this.planElement.svgData : '';
|
|
49321
|
+
},
|
|
49322
|
+
set: function set(svgData) {
|
|
49323
|
+
this.planElement.svgData = svgData;
|
|
49324
|
+
}
|
|
49325
|
+
}, {
|
|
49326
|
+
key: "SvgDataOLTBase64",
|
|
49327
|
+
set: function set(svgData) {
|
|
49328
|
+
this.planElement.SvgDataOLTBase64 = svgData;
|
|
49329
|
+
}
|
|
49330
|
+
}, {
|
|
49331
|
+
key: "Layer",
|
|
49332
|
+
get: function get() {
|
|
49333
|
+
return this.planElement.plannerData.layer;
|
|
49334
|
+
}
|
|
49335
|
+
}, {
|
|
49336
|
+
key: "HasSvgAsHTMLCanvas",
|
|
49337
|
+
get: function get() {
|
|
49338
|
+
return this.planElement.svgAsHTMLCanvas == undefined ? false : true;
|
|
49339
|
+
}
|
|
49340
|
+
}, {
|
|
49341
|
+
key: "SvgAsHTMLCanvas",
|
|
49342
|
+
get: function get() {
|
|
49343
|
+
return this.planElement.svgAsHTMLCanvas;
|
|
49344
|
+
}
|
|
49345
|
+
|
|
49346
|
+
/** ---------------------------------Getter und setter for the view------------------------- */,
|
|
49347
|
+
set: function set(ctx) {
|
|
49348
|
+
this.planElement.svgAsHTMLCanvas = ctx;
|
|
49349
|
+
}
|
|
49350
|
+
}, {
|
|
49351
|
+
key: "getArticleCodex",
|
|
49352
|
+
value: function getArticleCodex() {
|
|
49353
|
+
return this.ArticleCodex;
|
|
49354
|
+
}
|
|
49355
|
+
}, {
|
|
49356
|
+
key: "getPosNr",
|
|
49357
|
+
value: function getPosNr() {
|
|
49358
|
+
return this.planElement.setPosNr;
|
|
49359
|
+
}
|
|
49360
|
+
}, {
|
|
49361
|
+
key: "getIsDockedAccessoire",
|
|
49362
|
+
value: function getIsDockedAccessoire() {
|
|
49363
|
+
return this.IsDockedAccessoire;
|
|
49364
|
+
}
|
|
49365
|
+
}, {
|
|
49366
|
+
key: "getIsNotDockedAccessoire",
|
|
49367
|
+
value: function getIsNotDockedAccessoire() {
|
|
49368
|
+
var _this$planElement$pla13;
|
|
49369
|
+
return !!((_this$planElement$pla13 = this.planElement.plannerData) !== null && _this$planElement$pla13 !== void 0 && _this$planElement$pla13.isNotDockedAccessoire);
|
|
49370
|
+
}
|
|
49371
|
+
}, {
|
|
49372
|
+
key: "getParentElementId",
|
|
49373
|
+
value: function getParentElementId() {
|
|
49374
|
+
var _this$planElement$pla14;
|
|
49375
|
+
return (_this$planElement$pla14 = this.planElement.plannerData) === null || _this$planElement$pla14 === void 0 ? void 0 : _this$planElement$pla14.parentElementId;
|
|
49376
|
+
}
|
|
49377
|
+
}, {
|
|
49378
|
+
key: "getElementId",
|
|
49379
|
+
value: function getElementId() {
|
|
49380
|
+
return this.planElement.elementId;
|
|
49381
|
+
}
|
|
49382
|
+
}, {
|
|
49383
|
+
key: "getBasketId",
|
|
49384
|
+
value: function getBasketId() {
|
|
49385
|
+
return this.basketId;
|
|
49386
|
+
}
|
|
49387
|
+
}, {
|
|
49388
|
+
key: "getSetId",
|
|
49389
|
+
value: function getSetId() {
|
|
49390
|
+
return this.planElement.setId;
|
|
49391
|
+
}
|
|
49392
|
+
}, {
|
|
49393
|
+
key: "getWorldPosCorner",
|
|
49394
|
+
value: function getWorldPosCorner() {
|
|
49395
|
+
return this.WorldPosCorner;
|
|
49396
|
+
}
|
|
49397
|
+
|
|
49398
|
+
/**
|
|
49399
|
+
* This function returns the position in world coordinates of the CENTER of the plannerElement
|
|
49400
|
+
*/
|
|
49401
|
+
}, {
|
|
49402
|
+
key: "getWorldPosCenter",
|
|
49403
|
+
value: function getWorldPosCenter() {
|
|
49404
|
+
return this.WorldPosCenter;
|
|
49405
|
+
}
|
|
49406
|
+
}, {
|
|
49407
|
+
key: "getRotDeg",
|
|
49408
|
+
value: function getRotDeg() {
|
|
49409
|
+
return this.planElement.rotDeg;
|
|
49410
|
+
}
|
|
49411
|
+
}, {
|
|
49412
|
+
key: "getRotRad",
|
|
49413
|
+
value: function getRotRad() {
|
|
49414
|
+
return this.planElement.rotDeg * Math.PI / 180;
|
|
49415
|
+
}
|
|
49416
|
+
}, {
|
|
49417
|
+
key: "getHasAVL",
|
|
49418
|
+
value: function getHasAVL() {
|
|
49419
|
+
return this.planElement.plannerData ? this.planElement.plannerData.hasAVL : false;
|
|
49420
|
+
}
|
|
49421
|
+
}, {
|
|
49422
|
+
key: "getHasAVR",
|
|
49423
|
+
value: function getHasAVR() {
|
|
49424
|
+
return this.planElement.plannerData ? this.planElement.plannerData.hasAVR : false;
|
|
49425
|
+
}
|
|
49426
|
+
}, {
|
|
49427
|
+
key: "getHasAVO",
|
|
49428
|
+
value: function getHasAVO() {
|
|
49429
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVO > 0 ? true : false : false;
|
|
49430
|
+
}
|
|
49431
|
+
}, {
|
|
49432
|
+
key: "getHasAVU",
|
|
49433
|
+
value: function getHasAVU() {
|
|
49434
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVU > 0 ? true : false : false;
|
|
49435
|
+
}
|
|
49436
|
+
}, {
|
|
49437
|
+
key: "getHasAVC",
|
|
49438
|
+
value: function getHasAVC() {
|
|
49439
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVC > 0 ? true : false : false;
|
|
49440
|
+
}
|
|
49441
|
+
}, {
|
|
49442
|
+
key: "getHasAVN",
|
|
49443
|
+
value: function getHasAVN() {
|
|
49444
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVN > 0 ? true : false : false;
|
|
49445
|
+
}
|
|
49446
|
+
}, {
|
|
49447
|
+
key: "getHasAVS",
|
|
49448
|
+
value: function getHasAVS() {
|
|
49449
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVS > 0 ? true : false : false;
|
|
49450
|
+
}
|
|
49451
|
+
}, {
|
|
49452
|
+
key: "getFilterAVL",
|
|
49453
|
+
value: function getFilterAVL() {
|
|
49454
|
+
var _this$planElement$pla15;
|
|
49455
|
+
return this.planElement.plannerData ? (_this$planElement$pla15 = this.planElement.plannerData) === null || _this$planElement$pla15 === void 0 ? void 0 : _this$planElement$pla15.AVLFilter : [];
|
|
49456
|
+
}
|
|
49457
|
+
}, {
|
|
49458
|
+
key: "getFilterAVR",
|
|
49459
|
+
value: function getFilterAVR() {
|
|
49460
|
+
return this.planElement.plannerData ? this.planElement.plannerData.AVRFilter : [];
|
|
49461
|
+
}
|
|
49462
|
+
}, {
|
|
49463
|
+
key: "getSVGShapeOLF2D",
|
|
49464
|
+
value: function getSVGShapeOLF2D() {
|
|
49465
|
+
return this.planElement.svgShapeOLF2D;
|
|
49466
|
+
}
|
|
49467
|
+
}, {
|
|
49468
|
+
key: "getSVGShapeOLT2D",
|
|
49469
|
+
value: function getSVGShapeOLT2D() {
|
|
49470
|
+
return this.planElement.svgShapeOLT2D;
|
|
49471
|
+
}
|
|
49472
|
+
}, {
|
|
49473
|
+
key: "getPlannerType",
|
|
49474
|
+
value: function getPlannerType() {
|
|
49475
|
+
return this.plannerType;
|
|
49476
|
+
}
|
|
49477
|
+
|
|
49478
|
+
/**
|
|
49479
|
+
* Returns the original svg XML
|
|
49480
|
+
*/
|
|
49481
|
+
}, {
|
|
49482
|
+
key: "getSVGData",
|
|
49483
|
+
value: function getSVGData() {
|
|
49484
|
+
return this.planElement.svgData ? this.planElement.svgData : '';
|
|
49485
|
+
}
|
|
49486
|
+
}, {
|
|
49487
|
+
key: "getWidth",
|
|
49488
|
+
value: function getWidth() {
|
|
49489
|
+
return this.planElement.plannerData ? this.planElement.plannerData.width : -1;
|
|
49490
|
+
}
|
|
49491
|
+
}, {
|
|
49492
|
+
key: "getHeight",
|
|
49493
|
+
value: function getHeight() {
|
|
49494
|
+
return this.planElement.plannerData ? this.planElement.plannerData.height : -1;
|
|
49495
|
+
}
|
|
49496
|
+
}, {
|
|
49497
|
+
key: "getDepth",
|
|
49498
|
+
value: function getDepth() {
|
|
49499
|
+
return this.planElement.plannerData ? this.planElement.plannerData.depth : -1;
|
|
49500
|
+
}
|
|
49501
|
+
}, {
|
|
49502
|
+
key: "getHeightOLT",
|
|
49503
|
+
value: function getHeightOLT() {
|
|
49504
|
+
return this.Height ? this.Height : -1;
|
|
49505
|
+
}
|
|
49506
|
+
}, {
|
|
49507
|
+
key: "getWidthOLT",
|
|
49508
|
+
value: function getWidthOLT() {
|
|
49509
|
+
return this.Width ? this.Width : -1;
|
|
49510
|
+
}
|
|
49511
|
+
}, {
|
|
49512
|
+
key: "getLayer",
|
|
49513
|
+
value: function getLayer() {
|
|
49514
|
+
return this.planElement.plannerData ? this.planElement.plannerData.layer : 20;
|
|
49515
|
+
}
|
|
49516
|
+
}, {
|
|
49517
|
+
key: "hasSvgAsHtmlCanvas",
|
|
49518
|
+
value: function hasSvgAsHtmlCanvas() {
|
|
49519
|
+
return this.planElement.svgAsHTMLCanvas == undefined ? false : true;
|
|
49520
|
+
}
|
|
49521
|
+
}, {
|
|
49522
|
+
key: "getSvgAsHtmlCanvas",
|
|
49523
|
+
value: function getSvgAsHtmlCanvas() {
|
|
49524
|
+
return this.planElement.svgAsHTMLCanvas;
|
|
49525
|
+
}
|
|
49526
|
+
}, {
|
|
49527
|
+
key: "hasSvgDataOLTBase64",
|
|
49528
|
+
value: function hasSvgDataOLTBase64() {
|
|
49529
|
+
return this.planElement.SvgDataOLTBase64 != undefined && this.planElement.SvgDataOLTBase64 != '';
|
|
49530
|
+
}
|
|
49531
|
+
}, {
|
|
49532
|
+
key: "getSvgDataOLTBase64",
|
|
49533
|
+
value: function getSvgDataOLTBase64() {
|
|
49534
|
+
return this.planElement.SvgDataOLTBase64 != undefined ? this.planElement.SvgDataOLTBase64 : '';
|
|
49535
|
+
}
|
|
49536
|
+
}, {
|
|
49537
|
+
key: "getAccessoires",
|
|
49538
|
+
value: function getAccessoires() {
|
|
49539
|
+
var _this$planElement$pla16;
|
|
49540
|
+
return this.planElement.plannerData ? (_this$planElement$pla16 = this.planElement.plannerData) === null || _this$planElement$pla16 === void 0 ? void 0 : _this$planElement$pla16.accessoireList : [];
|
|
49541
|
+
}
|
|
49542
|
+
}, {
|
|
49543
|
+
key: "getSVGsWithFormula",
|
|
49544
|
+
value: function getSVGsWithFormula() {
|
|
49545
|
+
var _this$planElement$pla17;
|
|
49546
|
+
return (_this$planElement$pla17 = this.planElement.plannerData) === null || _this$planElement$pla17 === void 0 ? void 0 : _this$planElement$pla17.svgsWithFormula;
|
|
49547
|
+
}
|
|
49548
|
+
}, {
|
|
49549
|
+
key: "getVaraintValuesInfluencingAVLAVRFilter",
|
|
49550
|
+
value: function getVaraintValuesInfluencingAVLAVRFilter() {
|
|
49551
|
+
var _this$planElement$pla18;
|
|
49552
|
+
return (_this$planElement$pla18 = this.planElement.plannerData) === null || _this$planElement$pla18 === void 0 ? void 0 : _this$planElement$pla18.varaintValuesInfluencingAVLAVRFilter;
|
|
49553
|
+
}
|
|
49554
|
+
}, {
|
|
49555
|
+
key: "getCurrentAccessorires",
|
|
49556
|
+
value: function getCurrentAccessorires() {
|
|
49557
|
+
var _this$planElement$pla19;
|
|
49558
|
+
return this.planElement.plannerData ? (_this$planElement$pla19 = this.planElement.plannerData) === null || _this$planElement$pla19 === void 0 ? void 0 : _this$planElement$pla19.currentAccessorires : [];
|
|
49559
|
+
}
|
|
49560
|
+
}]);
|
|
49561
|
+
}();
|
|
49562
|
+
|
|
48702
49563
|
var a$a = [{
|
|
48703
49564
|
divaNr: 'DIVA-52553-1',
|
|
48704
49565
|
supplier: 'ADA_U',
|
|
@@ -65587,4 +66448,4 @@ var getOrigProductId = /*#__PURE__*/function () {
|
|
|
65587
66448
|
};
|
|
65588
66449
|
}();
|
|
65589
66450
|
|
|
65590
|
-
export { BoundingBox as B, Cell as C, DockingPoint as D, Grid as G, HQRenderScript as H, OptionCatalogData as O, 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 };
|
|
66451
|
+
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 };
|