@crystaldesign/web-planner-logic 25.10.0-beta.17 → 25.10.0-beta.19
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-daf135d3.js → DivaBoxPlanner-fc5a962d.js} +16 -14
- package/build/cjs/{DivaStandardPlanner-8b5d9d28.js → DivaStandardPlanner-f09fa7e9.js} +7 -6
- package/build/cjs/{DoorPlanner-66e84eb5.js → DoorPlanner-5ab59c7b.js} +1 -1
- package/build/cjs/{Host3DSignalR-e5f3c0fa.js → Host3DSignalR-14301399.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-67cff226.js → LiviqueWWSHandler-34307071.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-9a523e18.js → PfisterWWSHandler-e995f1a4.js} +1 -1
- package/build/cjs/{PlannerHandler2D-210feecf.js → PlannerHandler2D-977068cd.js} +5 -869
- package/build/cjs/{SeriousBasketHandler-7185c401.js → SeriousBasketHandler-69b52486.js} +1 -1
- package/build/cjs/{ShelfPlanner-c9e399cf.js → ShelfPlanner-45fdd5ee.js} +1 -1
- package/build/cjs/{StandardWWSHandler-49d2f0fa.js → StandardWWSHandler-e9ea0835.js} +1 -1
- package/build/cjs/{index-beec9a79.js → index-48339e17.js} +958 -89
- package/build/cjs/index.js +2 -1
- package/build/esm/{DivaBoxPlanner-7a34062d.js → DivaBoxPlanner-b5606f5a.js} +13 -11
- package/build/esm/{DivaStandardPlanner-d924453c.js → DivaStandardPlanner-c2dcc724.js} +3 -2
- package/build/esm/{DoorPlanner-251b03f4.js → DoorPlanner-98493e3e.js} +1 -1
- package/build/esm/{Host3DSignalR-322716c5.js → Host3DSignalR-2a6bc1d8.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-fc3782ee.js → LiviqueWWSHandler-740ebe8a.js} +1 -1
- package/build/esm/{PfisterWWSHandler-f3853d58.js → PfisterWWSHandler-bbad4a79.js} +1 -1
- package/build/esm/{PlannerHandler2D-bb31a9fa.js → PlannerHandler2D-606688dc.js} +4 -867
- package/build/esm/{SeriousBasketHandler-bbfaa19c.js → SeriousBasketHandler-e15ee63f.js} +1 -1
- package/build/esm/{ShelfPlanner-263cbab2.js → ShelfPlanner-4f2847bb.js} +1 -1
- package/build/esm/{StandardWWSHandler-070be300.js → StandardWWSHandler-bc2261e1.js} +1 -1
- package/build/esm/{index-5172ded8.js → index-228f4a0a.js} +958 -90
- 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/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/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/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/Planner/PlannerElementData.d.ts +2 -3
- 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);
|
|
@@ -18997,8 +18997,8 @@ function getArticleOptionValueType(codex, jsonOPV, catalogOPV, myArticle, isPare
|
|
|
18997
18997
|
return opv;
|
|
18998
18998
|
}
|
|
18999
18999
|
|
|
19000
|
-
function ownKeys$
|
|
19001
|
-
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; }
|
|
19002
19002
|
var LOG$k = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
19003
19003
|
function loadMoreFromIDMArticles(_x, _x2) {
|
|
19004
19004
|
return _loadMoreFromIDMArticles.apply(this, arguments);
|
|
@@ -19282,11 +19282,11 @@ var getPriceFeatureGroups = function getPriceFeatureGroups(catalogArticleDatas,
|
|
|
19282
19282
|
var initializeDecision = function initializeDecision(decision, idmOptionGroups) {
|
|
19283
19283
|
var _decision$optionCombi;
|
|
19284
19284
|
var optionCombinations = (_decision$optionCombi = decision.optionCombinations) === null || _decision$optionCombi === void 0 ? void 0 : _decision$optionCombi.map(function (c) {
|
|
19285
|
-
return _objectSpread$
|
|
19285
|
+
return _objectSpread$j(_objectSpread$j({}, c), {}, {
|
|
19286
19286
|
projectOptionsSetRefs: parseOptionSetRef(c.projectOptionsSetRefs, idmOptionGroups)
|
|
19287
19287
|
});
|
|
19288
19288
|
});
|
|
19289
|
-
return _objectSpread$
|
|
19289
|
+
return _objectSpread$j(_objectSpread$j({}, decision), {}, {
|
|
19290
19290
|
optionCombinations: optionCombinations === null || optionCombinations === void 0 ? void 0 : optionCombinations.sort(function (a, b) {
|
|
19291
19291
|
return a.sequence - b.sequence;
|
|
19292
19292
|
})
|
|
@@ -19295,11 +19295,11 @@ var initializeDecision = function initializeDecision(decision, idmOptionGroups)
|
|
|
19295
19295
|
var initializePriceFeatureGroups = function initializePriceFeatureGroups(priceFeatureGroup, idmOptionGroups) {
|
|
19296
19296
|
var _priceFeatureGroup$pr;
|
|
19297
19297
|
var finishes = (_priceFeatureGroup$pr = priceFeatureGroup.projectFinishes) === null || _priceFeatureGroup$pr === void 0 ? void 0 : _priceFeatureGroup$pr.map(function (c) {
|
|
19298
|
-
return _objectSpread$
|
|
19298
|
+
return _objectSpread$j(_objectSpread$j({}, c), {}, {
|
|
19299
19299
|
projectOptionsSetRefs: c.optionsSetRef ? parseOptionSetRef(c.optionsSetRef, idmOptionGroups) : []
|
|
19300
19300
|
});
|
|
19301
19301
|
});
|
|
19302
|
-
return _objectSpread$
|
|
19302
|
+
return _objectSpread$j(_objectSpread$j({}, priceFeatureGroup), {}, {
|
|
19303
19303
|
projectFinishes: finishes === null || finishes === void 0 ? void 0 : finishes.sort(function (a, b) {
|
|
19304
19304
|
return a.sequence - b.sequence;
|
|
19305
19305
|
})
|
|
@@ -19837,8 +19837,8 @@ function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps
|
|
|
19837
19837
|
});
|
|
19838
19838
|
}
|
|
19839
19839
|
|
|
19840
|
-
function ownKeys$
|
|
19841
|
-
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; }
|
|
19842
19842
|
|
|
19843
19843
|
/*
|
|
19844
19844
|
Diese KLasse enthält Inforamtion zu einem Catalog (C)
|
|
@@ -20877,7 +20877,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20877
20877
|
}, {
|
|
20878
20878
|
key: "setVariantsPriceByHash",
|
|
20879
20879
|
value: function setVariantsPriceByHash(hash, data) {
|
|
20880
|
-
this.variantsPriceHashObj[hash] = _objectSpread$
|
|
20880
|
+
this.variantsPriceHashObj[hash] = _objectSpread$i(_objectSpread$i({}, data), {}, {
|
|
20881
20881
|
calcTime: -1
|
|
20882
20882
|
});
|
|
20883
20883
|
}
|
|
@@ -21376,7 +21376,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
21376
21376
|
var mapMask = function mapMask(mask) {
|
|
21377
21377
|
var _mappedMask$catalog;
|
|
21378
21378
|
if (!mask) return undefined;
|
|
21379
|
-
var mappedMask = _objectSpread$
|
|
21379
|
+
var mappedMask = _objectSpread$i({}, mask);
|
|
21380
21380
|
var mapProperties = function mapProperties(props) {
|
|
21381
21381
|
if (Array.isArray(props)) return props;
|
|
21382
21382
|
var mappedProps = [];
|
|
@@ -21405,8 +21405,8 @@ var mapMask = function mapMask(mask) {
|
|
|
21405
21405
|
return mappedMask;
|
|
21406
21406
|
};
|
|
21407
21407
|
|
|
21408
|
-
function ownKeys$
|
|
21409
|
-
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; }
|
|
21410
21410
|
//import IDMCatalogData from '../model/Catalog/IDMCatalogData';
|
|
21411
21411
|
|
|
21412
21412
|
var LOG$h = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
@@ -21624,7 +21624,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
|
|
|
21624
21624
|
}
|
|
21625
21625
|
throw new Error('Serie not found: ' + serieNo);
|
|
21626
21626
|
case 11:
|
|
21627
|
-
catalogData = new DivaCatalogData(_objectSpread$
|
|
21627
|
+
catalogData = new DivaCatalogData(_objectSpread$h(_objectSpread$h({}, serieData[0]), {}, {
|
|
21628
21628
|
catalogData: catalogApiData
|
|
21629
21629
|
}), serieNo, orderSet, state.api, itemsList, undefined, true, additionalModelInfos);
|
|
21630
21630
|
return _context4.abrupt("return", catalogData);
|
|
@@ -21671,8 +21671,8 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
|
|
|
21671
21671
|
}();
|
|
21672
21672
|
var catalogHandlerInstance = new DivaCatalogHandler();
|
|
21673
21673
|
|
|
21674
|
-
function ownKeys$
|
|
21675
|
-
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; }
|
|
21676
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; } } }; }
|
|
21677
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; } }
|
|
21678
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; }
|
|
@@ -22409,11 +22409,11 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
22409
22409
|
key: "cloneOptionState",
|
|
22410
22410
|
value: function cloneOptionState(getIsConfigSingle) {
|
|
22411
22411
|
var clonedOps = new ArticleOptionStateData(this.option, getIsConfigSingle);
|
|
22412
|
-
clonedOps.articleOptionState = _objectSpread$
|
|
22413
|
-
imageOPVs: _objectSpread$
|
|
22412
|
+
clonedOps.articleOptionState = _objectSpread$g(_objectSpread$g({}, this.articleOptionState), {}, {
|
|
22413
|
+
imageOPVs: _objectSpread$g({}, this.articleOptionState.imageOPVs),
|
|
22414
22414
|
visibleOPVs: new Map(this.articleOptionState.visibleOPVs),
|
|
22415
22415
|
visibleOPVsImages: new Map(this.articleOptionState.visibleOPVsImages),
|
|
22416
|
-
favoriteOPVs: _objectSpread$
|
|
22416
|
+
favoriteOPVs: _objectSpread$g({}, this.articleOptionState.favoriteOPVs)
|
|
22417
22417
|
});
|
|
22418
22418
|
return clonedOps;
|
|
22419
22419
|
}
|
|
@@ -24395,8 +24395,8 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
24395
24395
|
}]);
|
|
24396
24396
|
}();
|
|
24397
24397
|
|
|
24398
|
-
function ownKeys$
|
|
24399
|
-
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; }
|
|
24400
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; } } }; }
|
|
24401
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; } }
|
|
24402
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; }
|
|
@@ -25010,7 +25010,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
25010
25010
|
nr: priceFeatureGroup.priceFeatureGroupNo,
|
|
25011
25011
|
variantValues: this.article.VariantValues,
|
|
25012
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() : ''),
|
|
25013
|
-
priceFeatureGroup: _objectSpread$
|
|
25013
|
+
priceFeatureGroup: _objectSpread$f(_objectSpread$f({}, priceFeatureGroup), {}, {
|
|
25014
25014
|
activeCombination: finish === null || finish === void 0 ? void 0 : finish.sequence
|
|
25015
25015
|
})
|
|
25016
25016
|
});
|
|
@@ -25571,8 +25571,8 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
25571
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; } } }; }
|
|
25572
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; } }
|
|
25573
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; }
|
|
25574
|
-
function ownKeys$
|
|
25575
|
-
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; }
|
|
25576
25576
|
var LOG$e = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
25577
25577
|
var DivaArticle = /*#__PURE__*/function () {
|
|
25578
25578
|
function DivaArticle(set, _basketId, initParams, articleData, catalogData) {
|
|
@@ -25812,7 +25812,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25812
25812
|
var partlistArticle = this.partlistArticles[basketId];
|
|
25813
25813
|
if (!onlyVisible || partlistArticle.partlistArticleVisibleInTree || !excludeStandalonePla && partlistArticle.partlistArticleStandalone) partlistArticles[basketId] = partlistArticle;
|
|
25814
25814
|
if (partlistArticle.hasPartlistArticle) {
|
|
25815
|
-
partlistArticles = _objectSpread$
|
|
25815
|
+
partlistArticles = _objectSpread$e(_objectSpread$e({}, partlistArticles), partlistArticle.getRecursivePartlistArticles(onlyVisible, excludeStandalonePla));
|
|
25816
25816
|
}
|
|
25817
25817
|
}
|
|
25818
25818
|
return partlistArticles;
|
|
@@ -25821,8 +25821,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25821
25821
|
key: "variantValuesForPla",
|
|
25822
25822
|
value: function variantValuesForPla(configurationMode, previousPartlistArticleVariantValues, newConfigValues) {
|
|
25823
25823
|
//if configurationMode is true its previous values are more important than the values of the parentelement because its standalone configurable
|
|
25824
|
-
if (configurationMode) return _objectSpread$
|
|
25825
|
-
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 : {});
|
|
25826
25826
|
}
|
|
25827
25827
|
}, {
|
|
25828
25828
|
key: "partlistArticlesAsArray",
|
|
@@ -28172,7 +28172,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28172
28172
|
var newVvs2 = this.engine.getValuesInfluencingOPT(key, vv[key]);
|
|
28173
28173
|
if (newVvs2.length) {
|
|
28174
28174
|
for (var j = 0; j < newVvs2.length; j++) {
|
|
28175
|
-
newVvs[j] = _objectSpread$
|
|
28175
|
+
newVvs[j] = _objectSpread$e(_objectSpread$e({}, vv), newVvs2[j]);
|
|
28176
28176
|
}
|
|
28177
28177
|
}
|
|
28178
28178
|
}
|
|
@@ -28251,7 +28251,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28251
28251
|
break;
|
|
28252
28252
|
}
|
|
28253
28253
|
_context.next = 4;
|
|
28254
|
-
return import('./ShelfPlanner-
|
|
28254
|
+
return import('./ShelfPlanner-4f2847bb.js');
|
|
28255
28255
|
case 4:
|
|
28256
28256
|
_yield$import = _context.sent;
|
|
28257
28257
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -28850,7 +28850,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28850
28850
|
}, {
|
|
28851
28851
|
key: "cloneArticle",
|
|
28852
28852
|
value: function cloneArticle(set) {
|
|
28853
|
-
var clonedArticle = new DivaArticle(set, this.basketId, _objectSpread$
|
|
28853
|
+
var clonedArticle = new DivaArticle(set, this.basketId, _objectSpread$e({}, this.article), this.article.catalogArticle, set.CatalogData);
|
|
28854
28854
|
clonedArticle.articleOptionStatesData = new Map();
|
|
28855
28855
|
var _iterator40 = _createForOfIteratorHelper$6(this.articleOptionStates.values()),
|
|
28856
28856
|
_step40;
|
|
@@ -28878,8 +28878,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28878
28878
|
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; } } }; }
|
|
28879
28879
|
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; } }
|
|
28880
28880
|
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; }
|
|
28881
|
-
function ownKeys$
|
|
28882
|
-
function _objectSpread$
|
|
28881
|
+
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; }
|
|
28882
|
+
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; }
|
|
28883
28883
|
var LOG$d = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
28884
28884
|
|
|
28885
28885
|
//Diese Klasse verwaltet den Optionsbaum und ladelogik etc. eines Artikels
|
|
@@ -28898,7 +28898,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28898
28898
|
while (1) switch (_context.prev = _context.next) {
|
|
28899
28899
|
case 0:
|
|
28900
28900
|
_context.next = 2;
|
|
28901
|
-
return this.preLoadArticles(set, [_objectSpread$
|
|
28901
|
+
return this.preLoadArticles(set, [_objectSpread$d(_objectSpread$d({}, initParams), {}, {
|
|
28902
28902
|
articleCodex: articleCodex
|
|
28903
28903
|
})]);
|
|
28904
28904
|
case 2:
|
|
@@ -29158,7 +29158,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
29158
29158
|
return _context6.abrupt("continue", 37);
|
|
29159
29159
|
case 12:
|
|
29160
29160
|
if (targetArticlesWithNewValues.includes(targetArticlesToUpdate[i])) {
|
|
29161
|
-
valuesArray[i] = actArticle.getValidValues(_objectSpread$
|
|
29161
|
+
valuesArray[i] = actArticle.getValidValues(_objectSpread$d({}, myValues), actArticle.CatalogData.mergeOptionsToSameOption);
|
|
29162
29162
|
}
|
|
29163
29163
|
|
|
29164
29164
|
//only set config if valuesArray are not empty or the article is initializing
|
|
@@ -30065,7 +30065,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
30065
30065
|
if (ruleValid) break;
|
|
30066
30066
|
}
|
|
30067
30067
|
if (ruleValid) {
|
|
30068
|
-
returnValue.push(_objectSpread$
|
|
30068
|
+
returnValue.push(_objectSpread$d(_objectSpread$d({}, entry), {}, {
|
|
30069
30069
|
index: i
|
|
30070
30070
|
}));
|
|
30071
30071
|
break;
|
|
@@ -31448,8 +31448,8 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
|
|
|
31448
31448
|
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; } } }; }
|
|
31449
31449
|
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; } }
|
|
31450
31450
|
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; }
|
|
31451
|
-
function ownKeys$
|
|
31452
|
-
function _objectSpread$
|
|
31451
|
+
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; }
|
|
31452
|
+
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; }
|
|
31453
31453
|
var LOG$b = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
31454
31454
|
//plz delete me
|
|
31455
31455
|
var DivaSet = /*#__PURE__*/function () {
|
|
@@ -31549,7 +31549,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31549
31549
|
_context.next = 10;
|
|
31550
31550
|
break;
|
|
31551
31551
|
}
|
|
31552
|
-
validValues = repairVariantValuesAndPlanner ? article.getValidValues(_objectSpread$
|
|
31552
|
+
validValues = repairVariantValuesAndPlanner ? article.getValidValues(_objectSpread$c({}, variantValues), article.CatalogData.mergeOptionsToSameOption) : {};
|
|
31553
31553
|
_context.t0 = partlistArticlesToLoad;
|
|
31554
31554
|
_context.next = 8;
|
|
31555
31555
|
return articleHandlerInstance.updateCfgValues(article, repairVariantValuesAndPlanner ? validValues : variantValues, {}, undefined, loadPlas);
|
|
@@ -32119,8 +32119,8 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
32119
32119
|
var articles = {};
|
|
32120
32120
|
for (var basketId in this.divaArticles) {
|
|
32121
32121
|
articles[basketId] = this.divaArticles[basketId];
|
|
32122
|
-
if (allPartlistArticlesAlso) articles = _objectSpread$
|
|
32123
|
-
if (visiblePartlistArticlesAlso) articles = _objectSpread$
|
|
32122
|
+
if (allPartlistArticlesAlso) articles = _objectSpread$c(_objectSpread$c({}, articles), articles[basketId].getRecursivePartlistArticles());
|
|
32123
|
+
if (visiblePartlistArticlesAlso) articles = _objectSpread$c(_objectSpread$c({}, articles), articles[basketId].getRecursivePartlistArticles(true));
|
|
32124
32124
|
}
|
|
32125
32125
|
return articles;
|
|
32126
32126
|
}
|
|
@@ -32752,7 +32752,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
32752
32752
|
break;
|
|
32753
32753
|
}
|
|
32754
32754
|
_context5.next = 3;
|
|
32755
|
-
return import('./DoorPlanner-
|
|
32755
|
+
return import('./DoorPlanner-98493e3e.js');
|
|
32756
32756
|
case 3:
|
|
32757
32757
|
_yield$import = _context5.sent;
|
|
32758
32758
|
DoorPlanner = _yield$import["default"];
|
|
@@ -32941,8 +32941,8 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
32941
32941
|
}, {
|
|
32942
32942
|
key: "cloneSet",
|
|
32943
32943
|
value: function cloneSet() {
|
|
32944
|
-
var clonedSet = new DivaSet(this.CatalogData, this.setId, {}, _objectSpread$
|
|
32945
|
-
clonedSet.setData = _objectSpread$
|
|
32944
|
+
var clonedSet = new DivaSet(this.CatalogData, this.setId, {}, _objectSpread$c({}, this.setState));
|
|
32945
|
+
clonedSet.setData = _objectSpread$c({}, this.setData);
|
|
32946
32946
|
clonedSet.configSingle = this.configSingle;
|
|
32947
32947
|
clonedSet.logTotalStateForVariants = this.logTotalStateForVariants;
|
|
32948
32948
|
var articles = this.getDivaArticles();
|
|
@@ -33789,8 +33789,8 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
33789
33789
|
}();
|
|
33790
33790
|
var summaryHandlerInstance = new SummaryHandler();
|
|
33791
33791
|
|
|
33792
|
-
function ownKeys$
|
|
33793
|
-
function _objectSpread$
|
|
33792
|
+
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; }
|
|
33793
|
+
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; }
|
|
33794
33794
|
DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
33795
33795
|
var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
33796
33796
|
function DivaFavoritesHandler() {
|
|
@@ -34479,7 +34479,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
34479
34479
|
if (targetArticle[opt] && !variantValues[opt]) variantValues[opt] = targetArticle[opt];
|
|
34480
34480
|
}
|
|
34481
34481
|
}
|
|
34482
|
-
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$
|
|
34482
|
+
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);
|
|
34483
34483
|
set.basketConfigVariants.push(configVariant);
|
|
34484
34484
|
case 31:
|
|
34485
34485
|
case "end":
|
|
@@ -35496,10 +35496,15 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
35496
35496
|
}();
|
|
35497
35497
|
var configTreeHandler = new DivaConfigTreeHandler();
|
|
35498
35498
|
|
|
35499
|
-
function ownKeys$
|
|
35500
|
-
function _objectSpread$
|
|
35499
|
+
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; }
|
|
35500
|
+
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; }
|
|
35501
35501
|
var LOG$9 = DivaUtils.initLog('Planner', 'DIVA-SET-HANDLER');
|
|
35502
35502
|
|
|
35503
|
+
/**
|
|
35504
|
+
* This interface describes planner elements for the view, that are not planned but visualized through the 3D Exe.
|
|
35505
|
+
* This can be accessoires in the shelf planner.They do not have a SVG but are sent to the 3D Exe as single elements.
|
|
35506
|
+
* The parentElementId can be a string when working with shelf planner inside the shelf planner (T element)
|
|
35507
|
+
*/
|
|
35503
35508
|
/*
|
|
35504
35509
|
Diese Klasse speichert alle Sets, die in einer Planung sind
|
|
35505
35510
|
WICHTIG: jedes Set kann einen anderen Katalog haben
|
|
@@ -35984,7 +35989,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
35984
35989
|
}
|
|
35985
35990
|
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;
|
|
35986
35991
|
_context6.next = 18;
|
|
35987
|
-
return this.addPlannerElement(set, articlesToInitialize[j], _objectSpread$
|
|
35992
|
+
return this.addPlannerElement(set, articlesToInitialize[j], _objectSpread$a(_objectSpread$a({}, params), variantValues ? {
|
|
35988
35993
|
variantValues: variantValues
|
|
35989
35994
|
} : {}));
|
|
35990
35995
|
case 18:
|
|
@@ -36622,7 +36627,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36622
36627
|
_context16.next = 24;
|
|
36623
36628
|
break;
|
|
36624
36629
|
}
|
|
36625
|
-
return _context16.abrupt("return", _objectSpread$
|
|
36630
|
+
return _context16.abrupt("return", _objectSpread$a(_objectSpread$a({}, doesFit), {}, {
|
|
36626
36631
|
accessoire: accessoire
|
|
36627
36632
|
}));
|
|
36628
36633
|
case 24:
|
|
@@ -37092,7 +37097,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
37092
37097
|
var articlecodex = plannerElement.articleCodex;
|
|
37093
37098
|
if (type == 'PLANNERSWITCH' && selectedArticle) {
|
|
37094
37099
|
if (plannerViewInfo.catalogPlannerArticles[i].filterType == 'Accessoire') continue;
|
|
37095
|
-
cleanedCaltaogPlannerArticles.push(_objectSpread$
|
|
37100
|
+
cleanedCaltaogPlannerArticles.push(_objectSpread$a(_objectSpread$a({}, plannerElement), {}, {
|
|
37096
37101
|
sel: articlecodex == selectedArticle,
|
|
37097
37102
|
groupName: ''
|
|
37098
37103
|
}));
|
|
@@ -37106,12 +37111,12 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
37106
37111
|
plannerViewInfo.plannerConfiguration.updatePaletteAfterPlanningChanged = true;
|
|
37107
37112
|
}
|
|
37108
37113
|
}
|
|
37109
|
-
if (!dontPushElement) cleanedCaltaogPlannerArticles.push(_objectSpread$
|
|
37114
|
+
if (!dontPushElement) cleanedCaltaogPlannerArticles.push(_objectSpread$a(_objectSpread$a({}, plannerElement), {}, {
|
|
37110
37115
|
sel: articlecodex == selectedArticle
|
|
37111
37116
|
}));
|
|
37112
37117
|
}
|
|
37113
37118
|
}
|
|
37114
|
-
return _objectSpread$
|
|
37119
|
+
return _objectSpread$a(_objectSpread$a({}, plannerViewInfo), {}, {
|
|
37115
37120
|
catalogPlannerArticles: cleanedCaltaogPlannerArticles
|
|
37116
37121
|
});
|
|
37117
37122
|
}
|
|
@@ -37375,7 +37380,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
37375
37380
|
filterType = set.configTree.getCurFilterType(configStepKey, configItems.configItems);
|
|
37376
37381
|
stepInfo = set.configTree.getStepInfo(configStepKey);
|
|
37377
37382
|
contentItemId = (_configItems$option = configItems.option) === null || _configItems$option === void 0 ? void 0 : _configItems$option.contentItemId;
|
|
37378
|
-
return _context24.abrupt("return", _objectSpread$
|
|
37383
|
+
return _context24.abrupt("return", _objectSpread$a(_objectSpread$a(_objectSpread$a({
|
|
37379
37384
|
isRenderedNotInSettingPalette: set.configTree.isRenderedNotInSettingPalette(configStepKey),
|
|
37380
37385
|
isRenderedInAccessorieStep: set.configTree.isRenderedInAccessorieStep(configStepKey),
|
|
37381
37386
|
visible: set.configTree.getVisibility(configStepKey, visible, set.CatalogData)
|
|
@@ -37619,7 +37624,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
37619
37624
|
break;
|
|
37620
37625
|
}
|
|
37621
37626
|
LOG$9.debug('calcingVariant from Option:' + optionCodex + ' and index: ' + index + ' hash hit!', dataHash, [].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig))), targetArticles);
|
|
37622
|
-
return _context27.abrupt("return", _objectSpread$
|
|
37627
|
+
return _context27.abrupt("return", _objectSpread$a(_objectSpread$a({}, dataHash), {}, {
|
|
37623
37628
|
origPrice: origPrice,
|
|
37624
37629
|
firstPrice: firstPrice
|
|
37625
37630
|
}));
|
|
@@ -37941,7 +37946,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
37941
37946
|
break;
|
|
37942
37947
|
}
|
|
37943
37948
|
_context30.next = 17;
|
|
37944
|
-
return this.addArticleToActSet(set, edoArticlesToLoad[_i7].ArticleCodex, _objectSpread$
|
|
37949
|
+
return this.addArticleToActSet(set, edoArticlesToLoad[_i7].ArticleCodex, _objectSpread$a(_objectSpread$a({}, edoArticlesToLoad[_i7]), {}, {
|
|
37945
37950
|
basketId: oldBasketIds[_i7]
|
|
37946
37951
|
}), true);
|
|
37947
37952
|
case 17:
|
|
@@ -38306,7 +38311,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38306
38311
|
var _origOrderSet$ConfigV;
|
|
38307
38312
|
var configVariant = (_origOrderSet$ConfigV = origOrderSet.ConfigVariants) === null || _origOrderSet$ConfigV === void 0 ? void 0 : _origOrderSet$ConfigV[index];
|
|
38308
38313
|
if (!configVariant) return variant;
|
|
38309
|
-
return _objectSpread$
|
|
38314
|
+
return _objectSpread$a(_objectSpread$a({}, variant), {}, {
|
|
38310
38315
|
SetImage: configVariant.SetImage,
|
|
38311
38316
|
HQRenderScript: configVariant.HQRenderScript,
|
|
38312
38317
|
Set2DImage: configVariant.Set2DImage,
|
|
@@ -38628,7 +38633,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38628
38633
|
dim.Z = article === null || article === void 0 ? void 0 : article.height;
|
|
38629
38634
|
}
|
|
38630
38635
|
var t = (_set$api$getI18n = set.api.getI18n()) === null || _set$api$getI18n === void 0 ? void 0 : _set$api$getI18n.t;
|
|
38631
|
-
return _objectSpread$
|
|
38636
|
+
return _objectSpread$a(_objectSpread$a({}, dim), {}, {
|
|
38632
38637
|
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' : '')
|
|
38633
38638
|
});
|
|
38634
38639
|
}
|
|
@@ -38684,8 +38689,8 @@ var setHandlerInstance = new DivaSetHandler();
|
|
|
38684
38689
|
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; } } }; }
|
|
38685
38690
|
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; } }
|
|
38686
38691
|
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; }
|
|
38687
|
-
function ownKeys$
|
|
38688
|
-
function _objectSpread$
|
|
38692
|
+
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; }
|
|
38693
|
+
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; }
|
|
38689
38694
|
var LOG$8 = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
38690
38695
|
var DivaBasketHandler = /*#__PURE__*/function () {
|
|
38691
38696
|
function DivaBasketHandler(plannerConfig) {
|
|
@@ -39146,7 +39151,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39146
39151
|
case 0:
|
|
39147
39152
|
basketFromAPI = (_dataFromApi$basket = dataFromApi.basket) !== null && _dataFromApi$basket !== void 0 ? _dataFromApi$basket : dataFromApi.Basket; //evaluateRopoEffect(basketFromAPI,);
|
|
39148
39153
|
if (origProductId) basketFromAPI.OrigProductId = origProductId;
|
|
39149
|
-
basket = _objectSpread$
|
|
39154
|
+
basket = _objectSpread$9({}, basketFromAPI);
|
|
39150
39155
|
if (!basketFromAPI) {
|
|
39151
39156
|
_context5.next = 51;
|
|
39152
39157
|
break;
|
|
@@ -39710,7 +39715,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39710
39715
|
if (_loop2()) continue;
|
|
39711
39716
|
}
|
|
39712
39717
|
var variantValues = article.VariantValuesParentOption;
|
|
39713
|
-
var data = _objectSpread$
|
|
39718
|
+
var data = _objectSpread$9(_objectSpread$9({}, this.actBasket), {}, {
|
|
39714
39719
|
changedValues: changedValues,
|
|
39715
39720
|
variantValues: variantValues,
|
|
39716
39721
|
isInit: isInit,
|
|
@@ -39735,7 +39740,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39735
39740
|
break;
|
|
39736
39741
|
case 3:
|
|
39737
39742
|
_context12.next = 5;
|
|
39738
|
-
return import('./PfisterWWSHandler-
|
|
39743
|
+
return import('./PfisterWWSHandler-bbad4a79.js');
|
|
39739
39744
|
case 5:
|
|
39740
39745
|
_yield$import = _context12.sent;
|
|
39741
39746
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -39743,7 +39748,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39743
39748
|
return _context12.abrupt("break", 27);
|
|
39744
39749
|
case 9:
|
|
39745
39750
|
_context12.next = 11;
|
|
39746
|
-
return import('./LiviqueWWSHandler-
|
|
39751
|
+
return import('./LiviqueWWSHandler-740ebe8a.js');
|
|
39747
39752
|
case 11:
|
|
39748
39753
|
_yield$import2 = _context12.sent;
|
|
39749
39754
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -39751,7 +39756,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39751
39756
|
return _context12.abrupt("break", 27);
|
|
39752
39757
|
case 15:
|
|
39753
39758
|
_context12.next = 17;
|
|
39754
|
-
return import('./SeriousBasketHandler-
|
|
39759
|
+
return import('./SeriousBasketHandler-e15ee63f.js');
|
|
39755
39760
|
case 17:
|
|
39756
39761
|
_yield$import3 = _context12.sent;
|
|
39757
39762
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -39759,7 +39764,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39759
39764
|
return _context12.abrupt("break", 27);
|
|
39760
39765
|
case 21:
|
|
39761
39766
|
_context12.next = 23;
|
|
39762
|
-
return import('./StandardWWSHandler-
|
|
39767
|
+
return import('./StandardWWSHandler-bc2261e1.js');
|
|
39763
39768
|
case 23:
|
|
39764
39769
|
_yield$import4 = _context12.sent;
|
|
39765
39770
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -39779,8 +39784,8 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39779
39784
|
}]);
|
|
39780
39785
|
}();
|
|
39781
39786
|
|
|
39782
|
-
function ownKeys$
|
|
39783
|
-
function _objectSpread$
|
|
39787
|
+
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; }
|
|
39788
|
+
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; }
|
|
39784
39789
|
var LOG$7 = DivaUtils.initLog('Products', 'WEB-PLANNER-LOGIC');
|
|
39785
39790
|
var DivaProductHandler = /*#__PURE__*/function () {
|
|
39786
39791
|
function DivaProductHandler() {
|
|
@@ -39825,7 +39830,7 @@ var DivaProductHandler = /*#__PURE__*/function () {
|
|
|
39825
39830
|
})
|
|
39826
39831
|
};
|
|
39827
39832
|
_context.next = 12;
|
|
39828
|
-
return api.getDataCache(api.checkMatchingProducts(), md5(JSON.stringify(_objectSpread$
|
|
39833
|
+
return api.getDataCache(api.checkMatchingProducts(), md5(JSON.stringify(_objectSpread$8(_objectSpread$8({}, data), {}, {
|
|
39829
39834
|
organizationId: api.OrganizationId
|
|
39830
39835
|
}))), '', 'catalog', 'POST', data);
|
|
39831
39836
|
case 12:
|
|
@@ -40927,8 +40932,8 @@ var HQRenderScript = /*#__PURE__*/function () {
|
|
|
40927
40932
|
}]);
|
|
40928
40933
|
}();
|
|
40929
40934
|
|
|
40930
|
-
function ownKeys$
|
|
40931
|
-
function _objectSpread$
|
|
40935
|
+
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; }
|
|
40936
|
+
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; }
|
|
40932
40937
|
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; } } }; }
|
|
40933
40938
|
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; } }
|
|
40934
40939
|
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; }
|
|
@@ -41188,7 +41193,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
41188
41193
|
while (1) switch (_context3.prev = _context3.next) {
|
|
41189
41194
|
case 0:
|
|
41190
41195
|
_context3.next = 2;
|
|
41191
|
-
return import('./Host3DSignalR-
|
|
41196
|
+
return import('./Host3DSignalR-2a6bc1d8.js');
|
|
41192
41197
|
case 2:
|
|
41193
41198
|
_yield$import = _context3.sent;
|
|
41194
41199
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -41680,8 +41685,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
41680
41685
|
if (params.alternateRenderInfo && (params.alternateRenderInfo.overwrittenViewPointName || params.alternateRenderInfo.viewPointName)) this.handleStaticVP(params.alternateRenderInfo.overwrittenViewPointName ? params.alternateRenderInfo.overwrittenViewPointName : params.alternateRenderInfo.viewPointName);
|
|
41681
41686
|
hybridInfo = params.hybrid3DInfo;
|
|
41682
41687
|
if (params.useLatestHybridInfo && this.latestHybridInfo) {
|
|
41683
|
-
hybridInfo = _objectSpread$
|
|
41684
|
-
focus: _objectSpread$
|
|
41688
|
+
hybridInfo = _objectSpread$7(_objectSpread$7({}, this.latestHybridInfo), {}, {
|
|
41689
|
+
focus: _objectSpread$7(_objectSpread$7({}, this.latestHybridInfo.focus), {}, {
|
|
41685
41690
|
rotationCenter: this.currentCamera.targetPos,
|
|
41686
41691
|
adjustZoomInUnity: true,
|
|
41687
41692
|
onlyAdjustZoomBBChanged: true
|
|
@@ -41847,12 +41852,12 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
41847
41852
|
key: "getProductHash",
|
|
41848
41853
|
value: function getProductHash(planningData) {
|
|
41849
41854
|
return md5(JSON.stringify(planningData.SCE.ROO[0].SET.map(function (set) {
|
|
41850
|
-
return _objectSpread$
|
|
41855
|
+
return _objectSpread$7(_objectSpread$7({}, set), {}, {
|
|
41851
41856
|
TechSize: undefined,
|
|
41852
41857
|
ShowDim: undefined,
|
|
41853
41858
|
AlternateImg: undefined,
|
|
41854
41859
|
ELE: set.ELE.map(function (el) {
|
|
41855
|
-
return _objectSpread$
|
|
41860
|
+
return _objectSpread$7(_objectSpread$7({}, el), {}, {
|
|
41856
41861
|
TechSize: undefined
|
|
41857
41862
|
});
|
|
41858
41863
|
})
|
|
@@ -42039,7 +42044,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
42039
42044
|
});
|
|
42040
42045
|
_this2.liveArSocket.on('connected', function (data) {
|
|
42041
42046
|
LOG$4.debug('AR Socket connected ' + data.connectionId);
|
|
42042
|
-
_this2.liveArSocket.auth = _objectSpread$
|
|
42047
|
+
_this2.liveArSocket.auth = _objectSpread$7(_objectSpread$7({}, _this2.liveArSocket.auth), {}, {
|
|
42043
42048
|
connectionId: data.connectionId
|
|
42044
42049
|
});
|
|
42045
42050
|
var applyConfiguratorSessionId = DivaUtils.ConfigurationId ? '&configurationId=' + DivaUtils.ConfigurationId : '';
|
|
@@ -42746,7 +42751,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
42746
42751
|
break;
|
|
42747
42752
|
case 8:
|
|
42748
42753
|
_context4.next = 10;
|
|
42749
|
-
return import('./DivaStandardPlanner-
|
|
42754
|
+
return import('./DivaStandardPlanner-c2dcc724.js');
|
|
42750
42755
|
case 10:
|
|
42751
42756
|
_yield$import = _context4.sent;
|
|
42752
42757
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -42757,7 +42762,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
42757
42762
|
return _context4.abrupt("break", 21);
|
|
42758
42763
|
case 15:
|
|
42759
42764
|
_context4.next = 17;
|
|
42760
|
-
return import('./DivaBoxPlanner-
|
|
42765
|
+
return import('./DivaBoxPlanner-b5606f5a.js');
|
|
42761
42766
|
case 17:
|
|
42762
42767
|
_yield$import2 = _context4.sent;
|
|
42763
42768
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -43742,8 +43747,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43742
43747
|
}]);
|
|
43743
43748
|
}();
|
|
43744
43749
|
|
|
43745
|
-
function ownKeys$
|
|
43746
|
-
function _objectSpread$
|
|
43750
|
+
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; }
|
|
43751
|
+
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; }
|
|
43747
43752
|
/*
|
|
43748
43753
|
Das ist der Konstruktor für den ganzen Web Planner.
|
|
43749
43754
|
Er baut alle Klassen und initialisiert sie.
|
|
@@ -44090,7 +44095,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44090
44095
|
deletionResult = _context4.sent;
|
|
44091
44096
|
(_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);
|
|
44092
44097
|
initParams.oldPlannerTransform = deletionResult.oldTransform;
|
|
44093
|
-
initParams.variantValues = _objectSpread$
|
|
44098
|
+
initParams.variantValues = _objectSpread$6(_objectSpread$6({}, variantValues), {}, _defineProperty({}, (!set.CatalogData.isIDMFormat ? 'OPT' : '') + 'PLANNERSWITCH', (!set.CatalogData.isIDMFormat ? 'OPT' : '') + articleCodex));
|
|
44094
44099
|
_context4.next = 11;
|
|
44095
44100
|
return setHandlerInstance.addPlannerElement(set, articleCodex, initParams);
|
|
44096
44101
|
case 11:
|
|
@@ -46607,7 +46612,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46607
46612
|
while (1) switch (_context31.prev = _context31.next) {
|
|
46608
46613
|
case 0:
|
|
46609
46614
|
//empty services
|
|
46610
|
-
this.api = new DivaApiHandler(_objectSpread$
|
|
46615
|
+
this.api = new DivaApiHandler(_objectSpread$6(_objectSpread$6({}, this.plannerConfig), {}, {
|
|
46611
46616
|
actions: {
|
|
46612
46617
|
getSessionGuid: getSessionGuid
|
|
46613
46618
|
},
|
|
@@ -47467,8 +47472,8 @@ var Cell = /*#__PURE__*/function () {
|
|
|
47467
47472
|
}]);
|
|
47468
47473
|
}();
|
|
47469
47474
|
|
|
47470
|
-
function ownKeys$
|
|
47471
|
-
function _objectSpread$
|
|
47475
|
+
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; }
|
|
47476
|
+
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; }
|
|
47472
47477
|
var Grid = /*#__PURE__*/function () {
|
|
47473
47478
|
function Grid(index, article, data) {
|
|
47474
47479
|
_classCallCheck(this, Grid);
|
|
@@ -48676,7 +48681,7 @@ var Grid = /*#__PURE__*/function () {
|
|
|
48676
48681
|
get: function get() {
|
|
48677
48682
|
var _this$articleRelation2;
|
|
48678
48683
|
return (_this$articleRelation2 = this.articleRelationsForOtherGroups) === null || _this$articleRelation2 === void 0 ? void 0 : _this$articleRelation2.map(function (g) {
|
|
48679
|
-
return _objectSpread$
|
|
48684
|
+
return _objectSpread$5(_objectSpread$5({}, g), {}, {
|
|
48680
48685
|
Group: 'SHELFARTICLE_' + g.Group
|
|
48681
48686
|
});
|
|
48682
48687
|
});
|
|
@@ -48710,6 +48715,869 @@ var Grid = /*#__PURE__*/function () {
|
|
|
48710
48715
|
}]);
|
|
48711
48716
|
}();
|
|
48712
48717
|
|
|
48718
|
+
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; }
|
|
48719
|
+
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; }
|
|
48720
|
+
var PlannerElementData = /*#__PURE__*/function () {
|
|
48721
|
+
function PlannerElementData(setId, basketId, _elementId, plannerType) {
|
|
48722
|
+
_classCallCheck(this, PlannerElementData);
|
|
48723
|
+
_defineProperty(this, "planElement", void 0);
|
|
48724
|
+
_defineProperty(this, "plannerStateHash", void 0);
|
|
48725
|
+
//this value saves the state of the plannerData - used to check if plannerData state changed
|
|
48726
|
+
// private dockingPoints: Map<string, DockingPoint[]>; //This map saves all docking Points accessioated to a type
|
|
48727
|
+
_defineProperty(this, "dockingPoints", void 0);
|
|
48728
|
+
//This map saves all docking Points accessioated to a type
|
|
48729
|
+
_defineProperty(this, "tempDockingPoints", void 0);
|
|
48730
|
+
//When reloading the element this array saves the previous docking points for redocking
|
|
48731
|
+
_defineProperty(this, "plannerType", void 0);
|
|
48732
|
+
_defineProperty(this, "basketId", void 0);
|
|
48733
|
+
_defineProperty(this, "doSetWidthFromSVG", void 0);
|
|
48734
|
+
_defineProperty(this, "doSetDepthFromSVG", void 0);
|
|
48735
|
+
this.basketId = basketId;
|
|
48736
|
+
this.planElement = {
|
|
48737
|
+
elementId: _elementId,
|
|
48738
|
+
setId: setId,
|
|
48739
|
+
worldPosCenter: new Vector3(0, 0, 0),
|
|
48740
|
+
//welt Position der linken hinteren unteren Ecke des Elementes
|
|
48741
|
+
rotDeg: 0,
|
|
48742
|
+
posNr: -1,
|
|
48743
|
+
setPosNr: -1,
|
|
48744
|
+
oltDepth: 0,
|
|
48745
|
+
oltWidth: 0,
|
|
48746
|
+
oltLeft: 0,
|
|
48747
|
+
oltTop: 0
|
|
48748
|
+
};
|
|
48749
|
+
// this.dockingPoints = new Map<string, DockingPoint[]>();
|
|
48750
|
+
this.dockingPoints = [];
|
|
48751
|
+
this.tempDockingPoints = [];
|
|
48752
|
+
this.plannerStateHash = '';
|
|
48753
|
+
this.plannerType = plannerType;
|
|
48754
|
+
this.doSetWidthFromSVG = false;
|
|
48755
|
+
this.doSetDepthFromSVG = false;
|
|
48756
|
+
}
|
|
48757
|
+
return _createClass(PlannerElementData, [{
|
|
48758
|
+
key: "destroy",
|
|
48759
|
+
value: function destroy() {
|
|
48760
|
+
this.planElement.svgShapeOLF2D = null;
|
|
48761
|
+
this.planElement.svgShapeOLT2D = null;
|
|
48762
|
+
this.planElement.svgAsHTMLCanvas = undefined;
|
|
48763
|
+
this.dockingPoints = [];
|
|
48764
|
+
this.tempDockingPoints = [];
|
|
48765
|
+
}
|
|
48766
|
+
}, {
|
|
48767
|
+
key: "getTempDockingPoints",
|
|
48768
|
+
value: function getTempDockingPoints() {
|
|
48769
|
+
return this.tempDockingPoints;
|
|
48770
|
+
}
|
|
48771
|
+
}, {
|
|
48772
|
+
key: "clearTempDockingPoints",
|
|
48773
|
+
value: function clearTempDockingPoints() {
|
|
48774
|
+
this.tempDockingPoints = [];
|
|
48775
|
+
}
|
|
48776
|
+
}, {
|
|
48777
|
+
key: "getDockingPoints",
|
|
48778
|
+
value: function getDockingPoints() {
|
|
48779
|
+
return this.dockingPoints;
|
|
48780
|
+
}
|
|
48781
|
+
|
|
48782
|
+
/**
|
|
48783
|
+
* 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.
|
|
48784
|
+
* @param type Type of the docking point
|
|
48785
|
+
*/
|
|
48786
|
+
}, {
|
|
48787
|
+
key: "dockingTypeIsDocking",
|
|
48788
|
+
value: function dockingTypeIsDocking(type) {
|
|
48789
|
+
var dockingPoints = this.getDockingPointsByType(type);
|
|
48790
|
+
for (var i = 0; i < dockingPoints.length; i++) {
|
|
48791
|
+
if (dockingPoints[i].IsDocking) return true;
|
|
48792
|
+
}
|
|
48793
|
+
return false;
|
|
48794
|
+
}
|
|
48795
|
+
|
|
48796
|
+
/**
|
|
48797
|
+
* This function returns all docking DPs of a specific type.
|
|
48798
|
+
* @param type The type of the docking Point , e.g. AVL
|
|
48799
|
+
*/
|
|
48800
|
+
}, {
|
|
48801
|
+
key: "getDockingDockingPointsByType",
|
|
48802
|
+
value: function getDockingDockingPointsByType(type) {
|
|
48803
|
+
var dockingPoints = this.getDockingPointsByType(type);
|
|
48804
|
+
var ret = [];
|
|
48805
|
+
for (var i = 0; i < dockingPoints.length; i++) {
|
|
48806
|
+
if (dockingPoints[i].IsDocking) ret.push(dockingPoints[i]);
|
|
48807
|
+
}
|
|
48808
|
+
return ret;
|
|
48809
|
+
}
|
|
48810
|
+
|
|
48811
|
+
/**
|
|
48812
|
+
* This function returns all docking DPs of any type.
|
|
48813
|
+
*/
|
|
48814
|
+
}, {
|
|
48815
|
+
key: "getDockingDockingPoints",
|
|
48816
|
+
value: function getDockingDockingPoints() {
|
|
48817
|
+
var ret = [];
|
|
48818
|
+
for (var i = 0; i < this.dockingPoints.length; i++) {
|
|
48819
|
+
if (this.dockingPoints[i].IsDocking) ret.push(this.dockingPoints[i]);
|
|
48820
|
+
}
|
|
48821
|
+
return ret;
|
|
48822
|
+
}
|
|
48823
|
+
|
|
48824
|
+
/**
|
|
48825
|
+
* This function returns all notDocking DPs of a specific type.
|
|
48826
|
+
* @param type The type of the docking Point , e.g. AVL
|
|
48827
|
+
*/
|
|
48828
|
+
}, {
|
|
48829
|
+
key: "getFreeDockingPointsByType",
|
|
48830
|
+
value: function getFreeDockingPointsByType(type) {
|
|
48831
|
+
var dockingPoints = this.getDockingPointsByType(type);
|
|
48832
|
+
var ret = [];
|
|
48833
|
+
for (var i = 0; i < dockingPoints.length; i++) {
|
|
48834
|
+
if (!dockingPoints[i].IsDocking) ret.push(dockingPoints[i]);
|
|
48835
|
+
}
|
|
48836
|
+
return ret;
|
|
48837
|
+
}
|
|
48838
|
+
|
|
48839
|
+
/**
|
|
48840
|
+
* This function returns the free docking with the specific type and number
|
|
48841
|
+
* @param type
|
|
48842
|
+
* @param number
|
|
48843
|
+
*/
|
|
48844
|
+
}, {
|
|
48845
|
+
key: "getFreeDockingPointByTypeAndNumber",
|
|
48846
|
+
value: function getFreeDockingPointByTypeAndNumber(type, number) {
|
|
48847
|
+
for (var i = 0; i < this.dockingPoints.length; i++) {
|
|
48848
|
+
if (!this.dockingPoints[i].IsDocking && this.dockingPoints[i].Type == type && this.dockingPoints[i].Number == number) return this.dockingPoints[i];
|
|
48849
|
+
}
|
|
48850
|
+
return undefined;
|
|
48851
|
+
}
|
|
48852
|
+
|
|
48853
|
+
/**
|
|
48854
|
+
* This function returns all docking points of the element. It returns docking and not docking points with any type.
|
|
48855
|
+
*/
|
|
48856
|
+
}, {
|
|
48857
|
+
key: "getAllDockingPoints",
|
|
48858
|
+
value: function getAllDockingPoints() {
|
|
48859
|
+
return this.dockingPoints;
|
|
48860
|
+
}
|
|
48861
|
+
}, {
|
|
48862
|
+
key: "getDockingPointsByType",
|
|
48863
|
+
value: function getDockingPointsByType(type) {
|
|
48864
|
+
var dps = [];
|
|
48865
|
+
for (var i = 0; i < this.dockingPoints.length; i++) {
|
|
48866
|
+
if (this.dockingPoints[i].Type == type) {
|
|
48867
|
+
dps.push(this.dockingPoints[i]);
|
|
48868
|
+
}
|
|
48869
|
+
}
|
|
48870
|
+
return dps;
|
|
48871
|
+
}
|
|
48872
|
+
}, {
|
|
48873
|
+
key: "getDockingPointById",
|
|
48874
|
+
value: function getDockingPointById(id) {
|
|
48875
|
+
for (var i = 0; i < this.dockingPoints.length; i++) {
|
|
48876
|
+
if (this.dockingPoints[i].DpId == id) {
|
|
48877
|
+
return this.dockingPoints[i];
|
|
48878
|
+
}
|
|
48879
|
+
}
|
|
48880
|
+
return undefined;
|
|
48881
|
+
}
|
|
48882
|
+
/**
|
|
48883
|
+
* This function retuns the DockingPoint info in a string format that is used for the 3D image rendering planningData.
|
|
48884
|
+
*/
|
|
48885
|
+
}, {
|
|
48886
|
+
key: "getDockingPointJS3D",
|
|
48887
|
+
value: function getDockingPointJS3D() {
|
|
48888
|
+
var dpJS = '';
|
|
48889
|
+
for (var i = 0; i < this.dockingPoints.length; i++) {
|
|
48890
|
+
var dockingPoint = this.dockingPoints[i];
|
|
48891
|
+
if (dockingPoint.IsDocking) {
|
|
48892
|
+
if (dpJS != '') dpJS += ',';
|
|
48893
|
+
dpJS += dockingPoint.Name + ':' + 'E' + dockingPoint.OnElementId;
|
|
48894
|
+
}
|
|
48895
|
+
}
|
|
48896
|
+
return dpJS;
|
|
48897
|
+
}
|
|
48898
|
+
}, {
|
|
48899
|
+
key: "ArticleCodex",
|
|
48900
|
+
get: function get() {
|
|
48901
|
+
var _this$planElement$pla, _this$planElement$pla2;
|
|
48902
|
+
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 : '';
|
|
48903
|
+
}
|
|
48904
|
+
/**
|
|
48905
|
+
* Returns true if the accessoire is docked to another element in the planner (relatedToBasketID is set).
|
|
48906
|
+
*/
|
|
48907
|
+
}, {
|
|
48908
|
+
key: "IsDockedAccessoire",
|
|
48909
|
+
get: function get() {
|
|
48910
|
+
return this.planElement.plannerData ? this.planElement.plannerData.isAccessoire : false;
|
|
48911
|
+
}
|
|
48912
|
+
|
|
48913
|
+
//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
|
|
48914
|
+
//this.planElement.plannerData?.filterType == "Accessoire" -> This is always true - The Accesssoire article is listed as accessoire
|
|
48915
|
+
}, {
|
|
48916
|
+
key: "IsAccessoire",
|
|
48917
|
+
get: function get() {
|
|
48918
|
+
var _this$planElement$pla3, _this$planElement$pla4;
|
|
48919
|
+
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);
|
|
48920
|
+
}
|
|
48921
|
+
}, {
|
|
48922
|
+
key: "FilterAVL",
|
|
48923
|
+
get: function get() {
|
|
48924
|
+
return this.getFilterAVL();
|
|
48925
|
+
}
|
|
48926
|
+
}, {
|
|
48927
|
+
key: "FilterAVR",
|
|
48928
|
+
get: function get() {
|
|
48929
|
+
return this.getFilterAVR();
|
|
48930
|
+
}
|
|
48931
|
+
}, {
|
|
48932
|
+
key: "PosNr",
|
|
48933
|
+
get: function get() {
|
|
48934
|
+
return this.planElement.posNr;
|
|
48935
|
+
},
|
|
48936
|
+
set: function set(posNr) {
|
|
48937
|
+
this.planElement.posNr = posNr;
|
|
48938
|
+
}
|
|
48939
|
+
}, {
|
|
48940
|
+
key: "SetPosNr",
|
|
48941
|
+
set: function set(setPosNr) {
|
|
48942
|
+
this.planElement.setPosNr = setPosNr;
|
|
48943
|
+
}
|
|
48944
|
+
}, {
|
|
48945
|
+
key: "AccessoirePosNr",
|
|
48946
|
+
get: function get() {
|
|
48947
|
+
return this.planElement.posNrAcc != undefined ? this.planElement.posNrAcc : -1;
|
|
48948
|
+
},
|
|
48949
|
+
set: function set(posNr) {
|
|
48950
|
+
this.planElement.posNrAcc = posNr;
|
|
48951
|
+
}
|
|
48952
|
+
}, {
|
|
48953
|
+
key: "WorldPosCenter",
|
|
48954
|
+
get: function get() {
|
|
48955
|
+
return this.planElement.worldPosCenter;
|
|
48956
|
+
},
|
|
48957
|
+
set: function set(pos) {
|
|
48958
|
+
this.planElement.worldPosCenter = pos;
|
|
48959
|
+
}
|
|
48960
|
+
}, {
|
|
48961
|
+
key: "WorldPosCenterIgnoreOLF",
|
|
48962
|
+
get: function get() {
|
|
48963
|
+
var olfCorner = this.WorldPosCorner;
|
|
48964
|
+
var centerDir = new Vector2(this.planElement.oltLeft + this.planElement.oltWidth / 2.0, this.planElement.oltTop + this.planElement.oltDepth / 2.0);
|
|
48965
|
+
centerDir = Vector2.rotateOrigin(centerDir, this.planElement.rotDeg);
|
|
48966
|
+
var worldPosCornerIgnoreOLF = new Vector3(olfCorner.x + centerDir.x, this.WorldPosCenter.y, olfCorner.z + centerDir.y);
|
|
48967
|
+
return worldPosCornerIgnoreOLF;
|
|
48968
|
+
}
|
|
48969
|
+
|
|
48970
|
+
/**
|
|
48971
|
+
* This function returns the world pos of the top left bottom corner.
|
|
48972
|
+
*/
|
|
48973
|
+
}, {
|
|
48974
|
+
key: "WorldPosCorner",
|
|
48975
|
+
get: function get() {
|
|
48976
|
+
if (this.planElement.plannerData == null) return new Vector3(0, 0, 0);
|
|
48977
|
+
var cornerDir = new Vector2(-this.planElement.plannerData.width / 2, -this.planElement.plannerData.depth / 2);
|
|
48978
|
+
cornerDir = Vector2.rotateOrigin(cornerDir, this.planElement.rotDeg);
|
|
48979
|
+
return new Vector3(this.planElement.worldPosCenter.x + cornerDir.x, this.planElement.worldPosCenter.y - this.planElement.plannerData.height / 2, this.planElement.worldPosCenter.z + cornerDir.y);
|
|
48980
|
+
},
|
|
48981
|
+
set: function set(cornerPos) {
|
|
48982
|
+
if (!this.planElement.plannerData) return;
|
|
48983
|
+
var centerDir = new Vector2(this.planElement.plannerData.width / 2, this.planElement.plannerData.depth / 2);
|
|
48984
|
+
centerDir = Vector2.rotateOrigin(centerDir, this.planElement.rotDeg);
|
|
48985
|
+
this.planElement.worldPosCenter = new Vector3(cornerPos.x + centerDir.x, cornerPos.y + this.planElement.plannerData.height / 2, cornerPos.z + centerDir.y);
|
|
48986
|
+
}
|
|
48987
|
+
|
|
48988
|
+
/**
|
|
48989
|
+
* This function updates the world position and rotation of the element based of some delta Elements
|
|
48990
|
+
* @param deltaMove delta translation in cm
|
|
48991
|
+
* @param deltaRotDeg delta rotation in degrees
|
|
48992
|
+
* @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
|
|
48993
|
+
*/
|
|
48994
|
+
}, {
|
|
48995
|
+
key: "updateDeltaTrans",
|
|
48996
|
+
value: function updateDeltaTrans(deltaMove, deltaRotDeg, rotCorrection, correctAngle) {
|
|
48997
|
+
this.WorldPosCenter = new Vector3(this.WorldPosCenter.x + deltaMove.x, this.WorldPosCenter.y + deltaMove.y, this.WorldPosCenter.z + deltaMove.z);
|
|
48998
|
+
if (deltaRotDeg != 0 || correctAngle) {
|
|
48999
|
+
if (correctAngle) {
|
|
49000
|
+
var newRot = this.RotDeg + deltaRotDeg;
|
|
49001
|
+
if (rotCorrection != 0) {
|
|
49002
|
+
if (Math.abs(newRot % rotCorrection) > rotCorrection / 2) {
|
|
49003
|
+
deltaRotDeg = deltaRotDeg + rotCorrection - Math.abs(newRot % rotCorrection);
|
|
49004
|
+
} else {
|
|
49005
|
+
deltaRotDeg = deltaRotDeg + Math.abs(newRot % rotCorrection);
|
|
49006
|
+
}
|
|
49007
|
+
}
|
|
49008
|
+
}
|
|
49009
|
+
this.processCenterRot(deltaRotDeg);
|
|
49010
|
+
}
|
|
49011
|
+
}
|
|
49012
|
+
}, {
|
|
49013
|
+
key: "processCenterRot",
|
|
49014
|
+
value: function processCenterRot(deltaRot) {
|
|
49015
|
+
this.RotDeg = this.RotDeg + deltaRot;
|
|
49016
|
+
}
|
|
49017
|
+
/**
|
|
49018
|
+
* Returns the position in world coordinates of the DP of the element depending on the position and rotation of the planner element
|
|
49019
|
+
* @param dpID
|
|
49020
|
+
*/
|
|
49021
|
+
}, {
|
|
49022
|
+
key: "getWorldPosOfDP",
|
|
49023
|
+
value: function getWorldPosOfDP(dpID) {
|
|
49024
|
+
var dp = this.getDockingPointById(dpID);
|
|
49025
|
+
if (dp == undefined) return new Vector3(0, 0, 0);
|
|
49026
|
+
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);
|
|
49027
|
+
return new Vector3(this.WorldPosCorner.x + rotatedDir.x, this.WorldPosCorner.y, this.WorldPosCorner.z + rotatedDir.y);
|
|
49028
|
+
}
|
|
49029
|
+
|
|
49030
|
+
/**
|
|
49031
|
+
* Returns the outlines of the bounding box in world coordinates
|
|
49032
|
+
*/
|
|
49033
|
+
}, {
|
|
49034
|
+
key: "getWorld2DBBoxOutline",
|
|
49035
|
+
value: function getWorld2DBBoxOutline() {
|
|
49036
|
+
var bboxPoints = [];
|
|
49037
|
+
bboxPoints.push(new Vector2(this.WorldPosCorner.x, this.WorldPosCorner.z));
|
|
49038
|
+
var helper = Vector2.rotateOrigin(new Vector2(this.getGlobalWidth(), 0), this.RotDeg);
|
|
49039
|
+
bboxPoints.push(new Vector2(this.WorldPosCorner.x + helper.x, this.WorldPosCorner.z + helper.y));
|
|
49040
|
+
helper = Vector2.rotateOrigin(new Vector2(this.getGlobalWidth(), this.getGlobalDepth()), this.RotDeg);
|
|
49041
|
+
bboxPoints.push(new Vector2(this.WorldPosCorner.x + helper.x, this.WorldPosCorner.z + helper.y));
|
|
49042
|
+
helper = Vector2.rotateOrigin(new Vector2(0, this.getGlobalDepth()), this.RotDeg);
|
|
49043
|
+
bboxPoints.push(new Vector2(this.WorldPosCorner.x + helper.x, this.WorldPosCorner.z + helper.y));
|
|
49044
|
+
return bboxPoints;
|
|
49045
|
+
}
|
|
49046
|
+
}, {
|
|
49047
|
+
key: "RotDeg",
|
|
49048
|
+
get: function get() {
|
|
49049
|
+
return this.planElement.rotDeg;
|
|
49050
|
+
}
|
|
49051
|
+
|
|
49052
|
+
/**
|
|
49053
|
+
* Saves the current docking point state
|
|
49054
|
+
*/,
|
|
49055
|
+
set: function set(rot) {
|
|
49056
|
+
this.planElement.rotDeg = rot;
|
|
49057
|
+
}
|
|
49058
|
+
}, {
|
|
49059
|
+
key: "saveCurrentDPState",
|
|
49060
|
+
value: function saveCurrentDPState() {
|
|
49061
|
+
if (this.dockingPoints && this.dockingPoints.length > 0) {
|
|
49062
|
+
this.tempDockingPoints = [];
|
|
49063
|
+
for (var i = 0; i < this.dockingPoints.length; i++) {
|
|
49064
|
+
this.tempDockingPoints.push(this.dockingPoints[i].clone());
|
|
49065
|
+
}
|
|
49066
|
+
}
|
|
49067
|
+
}
|
|
49068
|
+
}, {
|
|
49069
|
+
key: "clearAllDockingPoints",
|
|
49070
|
+
value: function clearAllDockingPoints() {
|
|
49071
|
+
this.dockingPoints = [];
|
|
49072
|
+
}
|
|
49073
|
+
}, {
|
|
49074
|
+
key: "addDockingPoint",
|
|
49075
|
+
value: function addDockingPoint(dockingPoint) {
|
|
49076
|
+
this.dockingPoints.push(dockingPoint);
|
|
49077
|
+
}
|
|
49078
|
+
|
|
49079
|
+
//Sets the planner Data. Returns true if something changed -> Reload
|
|
49080
|
+
}, {
|
|
49081
|
+
key: "updatePlannerData",
|
|
49082
|
+
value: function updatePlannerData(data) {
|
|
49083
|
+
//The plannerData ist keine Kopie, sondern ein verweis - wenn im Konfigurator das PlannerData Object geändert wird, dann wird es das hier auch.
|
|
49084
|
+
if ((data === null || data === void 0 ? void 0 : data.width) == undefined || data.width == -1) {
|
|
49085
|
+
this.doSetWidthFromSVG = true;
|
|
49086
|
+
} else {
|
|
49087
|
+
this.doSetWidthFromSVG = false;
|
|
49088
|
+
}
|
|
49089
|
+
if ((data === null || data === void 0 ? void 0 : data.depth) == undefined || data.depth == -1) {
|
|
49090
|
+
this.doSetDepthFromSVG = true;
|
|
49091
|
+
} else {
|
|
49092
|
+
this.doSetDepthFromSVG = false;
|
|
49093
|
+
}
|
|
49094
|
+
if (this.planElement.plannerData == null && data != null) {
|
|
49095
|
+
this.planElement.plannerData = data;
|
|
49096
|
+
this.plannerStateHash = md5(JSON.stringify(this.planElement.plannerData));
|
|
49097
|
+
return true;
|
|
49098
|
+
}
|
|
49099
|
+
if (data != null) this.planElement.plannerData = data;
|
|
49100
|
+
if (!this.planElement.plannerData) return false;
|
|
49101
|
+
var plannerDataForCache = _objectSpread$4(_objectSpread$4({}, this.planElement.plannerData), {}, {
|
|
49102
|
+
currentAccessorires: []
|
|
49103
|
+
});
|
|
49104
|
+
var currentHash = md5(JSON.stringify(plannerDataForCache));
|
|
49105
|
+
if (this.plannerStateHash != currentHash) {
|
|
49106
|
+
this.plannerStateHash = currentHash;
|
|
49107
|
+
return true;
|
|
49108
|
+
}
|
|
49109
|
+
return false;
|
|
49110
|
+
}
|
|
49111
|
+
}, {
|
|
49112
|
+
key: "cleanShapeOLF2D",
|
|
49113
|
+
value: function cleanShapeOLF2D() {
|
|
49114
|
+
this.planElement.svgShapeOLF2D = undefined;
|
|
49115
|
+
}
|
|
49116
|
+
}, {
|
|
49117
|
+
key: "cleanShapeOLT2D",
|
|
49118
|
+
value: function cleanShapeOLT2D() {
|
|
49119
|
+
this.planElement.svgShapeOLT2D = undefined;
|
|
49120
|
+
}
|
|
49121
|
+
}, {
|
|
49122
|
+
key: "DoSetWidthFromSVG",
|
|
49123
|
+
get: function get() {
|
|
49124
|
+
return this.doSetWidthFromSVG;
|
|
49125
|
+
}
|
|
49126
|
+
}, {
|
|
49127
|
+
key: "DoSetDepthFromSVG",
|
|
49128
|
+
get: function get() {
|
|
49129
|
+
return this.doSetDepthFromSVG;
|
|
49130
|
+
}
|
|
49131
|
+
}, {
|
|
49132
|
+
key: "WidthFromSVG",
|
|
49133
|
+
set: function set(svgWidth) {
|
|
49134
|
+
if (this.planElement.plannerData) this.planElement.plannerData.width = svgWidth;
|
|
49135
|
+
this.doSetWidthFromSVG = false;
|
|
49136
|
+
}
|
|
49137
|
+
}, {
|
|
49138
|
+
key: "DepthFromSVG",
|
|
49139
|
+
set: function set(svgDepth) {
|
|
49140
|
+
if (this.planElement.plannerData) this.planElement.plannerData.depth = svgDepth;
|
|
49141
|
+
this.doSetDepthFromSVG = false;
|
|
49142
|
+
}
|
|
49143
|
+
}, {
|
|
49144
|
+
key: "ElementId",
|
|
49145
|
+
get: function get() {
|
|
49146
|
+
return this.planElement.elementId;
|
|
49147
|
+
}
|
|
49148
|
+
}, {
|
|
49149
|
+
key: "SvgFileName",
|
|
49150
|
+
get: function get() {
|
|
49151
|
+
var _this$planElement$pla5;
|
|
49152
|
+
return (_this$planElement$pla5 = this.planElement.plannerData) === null || _this$planElement$pla5 === void 0 ? void 0 : _this$planElement$pla5.curSVG;
|
|
49153
|
+
}
|
|
49154
|
+
}, {
|
|
49155
|
+
key: "Width",
|
|
49156
|
+
get: function get() {
|
|
49157
|
+
var _this$planElement$pla6;
|
|
49158
|
+
return (_this$planElement$pla6 = this.planElement.plannerData) === null || _this$planElement$pla6 === void 0 ? void 0 : _this$planElement$pla6.width;
|
|
49159
|
+
}
|
|
49160
|
+
}, {
|
|
49161
|
+
key: "Height",
|
|
49162
|
+
get: function get() {
|
|
49163
|
+
var _this$planElement$pla7;
|
|
49164
|
+
return (_this$planElement$pla7 = this.planElement.plannerData) === null || _this$planElement$pla7 === void 0 ? void 0 : _this$planElement$pla7.height;
|
|
49165
|
+
}
|
|
49166
|
+
}, {
|
|
49167
|
+
key: "Depth",
|
|
49168
|
+
get: function get() {
|
|
49169
|
+
var _this$planElement$pla8;
|
|
49170
|
+
return (_this$planElement$pla8 = this.planElement.plannerData) === null || _this$planElement$pla8 === void 0 ? void 0 : _this$planElement$pla8.depth;
|
|
49171
|
+
}
|
|
49172
|
+
}, {
|
|
49173
|
+
key: "HasAVL",
|
|
49174
|
+
get: function get() {
|
|
49175
|
+
var _this$planElement$pla9;
|
|
49176
|
+
return (_this$planElement$pla9 = this.planElement.plannerData) === null || _this$planElement$pla9 === void 0 ? void 0 : _this$planElement$pla9.hasAVL;
|
|
49177
|
+
}
|
|
49178
|
+
}, {
|
|
49179
|
+
key: "HasAVR",
|
|
49180
|
+
get: function get() {
|
|
49181
|
+
var _this$planElement$pla10;
|
|
49182
|
+
return (_this$planElement$pla10 = this.planElement.plannerData) === null || _this$planElement$pla10 === void 0 ? void 0 : _this$planElement$pla10.hasAVR;
|
|
49183
|
+
}
|
|
49184
|
+
}, {
|
|
49185
|
+
key: "HasAVO",
|
|
49186
|
+
get: function get() {
|
|
49187
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVO > 0 ? true : false : false;
|
|
49188
|
+
}
|
|
49189
|
+
}, {
|
|
49190
|
+
key: "HasAVU",
|
|
49191
|
+
get: function get() {
|
|
49192
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVU > 0 ? true : false : false;
|
|
49193
|
+
}
|
|
49194
|
+
}, {
|
|
49195
|
+
key: "HasAVC",
|
|
49196
|
+
get: function get() {
|
|
49197
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVC > 0 ? true : false : false;
|
|
49198
|
+
}
|
|
49199
|
+
}, {
|
|
49200
|
+
key: "HasAVN",
|
|
49201
|
+
get: function get() {
|
|
49202
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVN > 0 ? true : false : false;
|
|
49203
|
+
}
|
|
49204
|
+
}, {
|
|
49205
|
+
key: "HasAVS",
|
|
49206
|
+
get: function get() {
|
|
49207
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVS > 0 ? true : false : false;
|
|
49208
|
+
}
|
|
49209
|
+
}, {
|
|
49210
|
+
key: "SvgShapeOLF2D",
|
|
49211
|
+
get: function get() {
|
|
49212
|
+
return this.planElement.svgShapeOLF2D;
|
|
49213
|
+
},
|
|
49214
|
+
set: function set(shape) {
|
|
49215
|
+
this.planElement.svgShapeOLF2D = shape;
|
|
49216
|
+
}
|
|
49217
|
+
}, {
|
|
49218
|
+
key: "SvgShapeOLT2D",
|
|
49219
|
+
get: function get() {
|
|
49220
|
+
return this.planElement.svgShapeOLT2D;
|
|
49221
|
+
},
|
|
49222
|
+
set: function set(shape) {
|
|
49223
|
+
this.planElement.svgShapeOLT2D = shape;
|
|
49224
|
+
}
|
|
49225
|
+
}, {
|
|
49226
|
+
key: "OLTPolygon",
|
|
49227
|
+
get: function get() {
|
|
49228
|
+
return this.planElement.oltPolygon;
|
|
49229
|
+
},
|
|
49230
|
+
set: function set(polygon) {
|
|
49231
|
+
this.planElement.oltPolygon = polygon;
|
|
49232
|
+
}
|
|
49233
|
+
}, {
|
|
49234
|
+
key: "OLTTop",
|
|
49235
|
+
set: function set(top) {
|
|
49236
|
+
this.planElement.oltTop = top / DivaUtils.UnitRecalc;
|
|
49237
|
+
}
|
|
49238
|
+
}, {
|
|
49239
|
+
key: "OLTLeft",
|
|
49240
|
+
set: function set(left) {
|
|
49241
|
+
this.planElement.oltLeft = left / DivaUtils.UnitRecalc;
|
|
49242
|
+
}
|
|
49243
|
+
}, {
|
|
49244
|
+
key: "OLTWidth",
|
|
49245
|
+
set: function set(width) {
|
|
49246
|
+
this.planElement.oltWidth = width / DivaUtils.UnitRecalc;
|
|
49247
|
+
}
|
|
49248
|
+
}, {
|
|
49249
|
+
key: "OLTDepth",
|
|
49250
|
+
set: function set(depth) {
|
|
49251
|
+
this.planElement.oltDepth = depth / DivaUtils.UnitRecalc;
|
|
49252
|
+
}
|
|
49253
|
+
}, {
|
|
49254
|
+
key: "setupOLF",
|
|
49255
|
+
value: function setupOLF(polygon, olfWidth, olfHeight) {
|
|
49256
|
+
this.planElement.olfPolygon = polygon;
|
|
49257
|
+
this.planElement.olfDepth = olfHeight;
|
|
49258
|
+
this.planElement.olfWidth = olfWidth;
|
|
49259
|
+
}
|
|
49260
|
+
}, {
|
|
49261
|
+
key: "clearOLF",
|
|
49262
|
+
value: function clearOLF() {
|
|
49263
|
+
this.planElement.olfPolygon = undefined;
|
|
49264
|
+
this.planElement.olfDepth = undefined;
|
|
49265
|
+
this.planElement.olfWidth = undefined;
|
|
49266
|
+
}
|
|
49267
|
+
}, {
|
|
49268
|
+
key: "getGlobalWidth",
|
|
49269
|
+
value: function getGlobalWidth() {
|
|
49270
|
+
if (this.HasOLFPolygon) {
|
|
49271
|
+
return this.planElement.olfWidth / DivaUtils.UnitRecalc;
|
|
49272
|
+
}
|
|
49273
|
+
return this.Width;
|
|
49274
|
+
}
|
|
49275
|
+
}, {
|
|
49276
|
+
key: "getGlobalDepth",
|
|
49277
|
+
value: function getGlobalDepth() {
|
|
49278
|
+
if (this.HasOLFPolygon) {
|
|
49279
|
+
return this.planElement.olfDepth / DivaUtils.UnitRecalc;
|
|
49280
|
+
}
|
|
49281
|
+
return this.Depth;
|
|
49282
|
+
}
|
|
49283
|
+
}, {
|
|
49284
|
+
key: "HasOLTPolygon",
|
|
49285
|
+
get: function get() {
|
|
49286
|
+
return this.planElement.oltPolygon != null;
|
|
49287
|
+
}
|
|
49288
|
+
}, {
|
|
49289
|
+
key: "HasOLFPolygon",
|
|
49290
|
+
get: function get() {
|
|
49291
|
+
return this.planElement.olfPolygon != null;
|
|
49292
|
+
}
|
|
49293
|
+
}, {
|
|
49294
|
+
key: "svgBefore",
|
|
49295
|
+
get: function get() {
|
|
49296
|
+
var _this$planElement$pla11;
|
|
49297
|
+
return (_this$planElement$pla11 = this.planElement.plannerData) === null || _this$planElement$pla11 === void 0 ? void 0 : _this$planElement$pla11.svgBefore;
|
|
49298
|
+
},
|
|
49299
|
+
set: function set(svg) {
|
|
49300
|
+
if (this.planElement.plannerData) this.planElement.plannerData.svgBefore = svg;
|
|
49301
|
+
}
|
|
49302
|
+
}, {
|
|
49303
|
+
key: "svgAfter",
|
|
49304
|
+
get: function get() {
|
|
49305
|
+
var _this$planElement$pla12;
|
|
49306
|
+
return (_this$planElement$pla12 = this.planElement.plannerData) === null || _this$planElement$pla12 === void 0 ? void 0 : _this$planElement$pla12.svgAfter;
|
|
49307
|
+
},
|
|
49308
|
+
set: function set(svg) {
|
|
49309
|
+
if (this.planElement.plannerData) this.planElement.plannerData.svgAfter = svg;
|
|
49310
|
+
}
|
|
49311
|
+
}, {
|
|
49312
|
+
key: "getOLTPolygonWorldPos",
|
|
49313
|
+
value: function getOLTPolygonWorldPos() {
|
|
49314
|
+
if (!this.planElement.oltPolygon) return [];
|
|
49315
|
+
var polygon = [];
|
|
49316
|
+
for (var i = 0; i < this.planElement.oltPolygon.length; i++) {
|
|
49317
|
+
var localWorldPos = new Vector2(this.planElement.oltPolygon[i].x / DivaUtils.UnitRecalc, this.planElement.oltPolygon[i].y / DivaUtils.UnitRecalc);
|
|
49318
|
+
localWorldPos = Vector2.rotateOrigin(localWorldPos, this.RotDeg);
|
|
49319
|
+
polygon.push(new Vector2(this.WorldPosCorner.x + localWorldPos.x, this.WorldPosCorner.z + localWorldPos.y));
|
|
49320
|
+
}
|
|
49321
|
+
return polygon;
|
|
49322
|
+
}
|
|
49323
|
+
}, {
|
|
49324
|
+
key: "getOLFPolygonWorldPos",
|
|
49325
|
+
value: function getOLFPolygonWorldPos() {
|
|
49326
|
+
var polygon = [];
|
|
49327
|
+
if (!this.planElement.olfPolygon) return [];
|
|
49328
|
+
for (var i = 0; i < this.planElement.olfPolygon.length; i++) {
|
|
49329
|
+
var localWorldPos = new Vector2(this.planElement.olfPolygon[i].x / DivaUtils.UnitRecalc, this.planElement.olfPolygon[i].y / DivaUtils.UnitRecalc);
|
|
49330
|
+
localWorldPos = Vector2.rotateOrigin(localWorldPos, this.RotDeg);
|
|
49331
|
+
polygon.push(new Vector2(this.WorldPosCorner.x + localWorldPos.x, this.WorldPosCorner.z + localWorldPos.y));
|
|
49332
|
+
}
|
|
49333
|
+
return polygon;
|
|
49334
|
+
}
|
|
49335
|
+
}, {
|
|
49336
|
+
key: "SvgData",
|
|
49337
|
+
get: function get() {
|
|
49338
|
+
return this.planElement.svgData ? this.planElement.svgData : '';
|
|
49339
|
+
},
|
|
49340
|
+
set: function set(svgData) {
|
|
49341
|
+
this.planElement.svgData = svgData;
|
|
49342
|
+
}
|
|
49343
|
+
}, {
|
|
49344
|
+
key: "SvgDataOLTBase64",
|
|
49345
|
+
set: function set(svgData) {
|
|
49346
|
+
this.planElement.SvgDataOLTBase64 = svgData;
|
|
49347
|
+
}
|
|
49348
|
+
}, {
|
|
49349
|
+
key: "Layer",
|
|
49350
|
+
get: function get() {
|
|
49351
|
+
return this.planElement.plannerData.layer;
|
|
49352
|
+
}
|
|
49353
|
+
}, {
|
|
49354
|
+
key: "HasSvgAsHTMLCanvas",
|
|
49355
|
+
get: function get() {
|
|
49356
|
+
return this.planElement.svgAsHTMLCanvas == undefined ? false : true;
|
|
49357
|
+
}
|
|
49358
|
+
}, {
|
|
49359
|
+
key: "SvgAsHTMLCanvas",
|
|
49360
|
+
get: function get() {
|
|
49361
|
+
return this.planElement.svgAsHTMLCanvas;
|
|
49362
|
+
}
|
|
49363
|
+
|
|
49364
|
+
/** ---------------------------------Getter und setter for the view------------------------- */,
|
|
49365
|
+
set: function set(ctx) {
|
|
49366
|
+
this.planElement.svgAsHTMLCanvas = ctx;
|
|
49367
|
+
}
|
|
49368
|
+
}, {
|
|
49369
|
+
key: "getArticleCodex",
|
|
49370
|
+
value: function getArticleCodex() {
|
|
49371
|
+
return this.ArticleCodex;
|
|
49372
|
+
}
|
|
49373
|
+
}, {
|
|
49374
|
+
key: "getPosNr",
|
|
49375
|
+
value: function getPosNr() {
|
|
49376
|
+
return this.planElement.setPosNr;
|
|
49377
|
+
}
|
|
49378
|
+
}, {
|
|
49379
|
+
key: "getIsDockedAccessoire",
|
|
49380
|
+
value: function getIsDockedAccessoire() {
|
|
49381
|
+
return this.IsDockedAccessoire;
|
|
49382
|
+
}
|
|
49383
|
+
}, {
|
|
49384
|
+
key: "getIsNotDockedAccessoire",
|
|
49385
|
+
value: function getIsNotDockedAccessoire() {
|
|
49386
|
+
var _this$planElement$pla13;
|
|
49387
|
+
return !!((_this$planElement$pla13 = this.planElement.plannerData) !== null && _this$planElement$pla13 !== void 0 && _this$planElement$pla13.isNotDockedAccessoire);
|
|
49388
|
+
}
|
|
49389
|
+
}, {
|
|
49390
|
+
key: "getParentElementId",
|
|
49391
|
+
value: function getParentElementId() {
|
|
49392
|
+
var _this$planElement$pla14;
|
|
49393
|
+
return (_this$planElement$pla14 = this.planElement.plannerData) === null || _this$planElement$pla14 === void 0 ? void 0 : _this$planElement$pla14.parentElementId;
|
|
49394
|
+
}
|
|
49395
|
+
}, {
|
|
49396
|
+
key: "getElementId",
|
|
49397
|
+
value: function getElementId() {
|
|
49398
|
+
return this.planElement.elementId;
|
|
49399
|
+
}
|
|
49400
|
+
}, {
|
|
49401
|
+
key: "getBasketId",
|
|
49402
|
+
value: function getBasketId() {
|
|
49403
|
+
return this.basketId;
|
|
49404
|
+
}
|
|
49405
|
+
}, {
|
|
49406
|
+
key: "getSetId",
|
|
49407
|
+
value: function getSetId() {
|
|
49408
|
+
return this.planElement.setId;
|
|
49409
|
+
}
|
|
49410
|
+
}, {
|
|
49411
|
+
key: "getWorldPosCorner",
|
|
49412
|
+
value: function getWorldPosCorner() {
|
|
49413
|
+
return this.WorldPosCorner;
|
|
49414
|
+
}
|
|
49415
|
+
|
|
49416
|
+
/**
|
|
49417
|
+
* This function returns the position in world coordinates of the CENTER of the plannerElement
|
|
49418
|
+
*/
|
|
49419
|
+
}, {
|
|
49420
|
+
key: "getWorldPosCenter",
|
|
49421
|
+
value: function getWorldPosCenter() {
|
|
49422
|
+
return this.WorldPosCenter;
|
|
49423
|
+
}
|
|
49424
|
+
}, {
|
|
49425
|
+
key: "getRotDeg",
|
|
49426
|
+
value: function getRotDeg() {
|
|
49427
|
+
return this.planElement.rotDeg;
|
|
49428
|
+
}
|
|
49429
|
+
}, {
|
|
49430
|
+
key: "getRotRad",
|
|
49431
|
+
value: function getRotRad() {
|
|
49432
|
+
return this.planElement.rotDeg * Math.PI / 180;
|
|
49433
|
+
}
|
|
49434
|
+
}, {
|
|
49435
|
+
key: "getHasAVL",
|
|
49436
|
+
value: function getHasAVL() {
|
|
49437
|
+
return this.planElement.plannerData ? this.planElement.plannerData.hasAVL : false;
|
|
49438
|
+
}
|
|
49439
|
+
}, {
|
|
49440
|
+
key: "getHasAVR",
|
|
49441
|
+
value: function getHasAVR() {
|
|
49442
|
+
return this.planElement.plannerData ? this.planElement.plannerData.hasAVR : false;
|
|
49443
|
+
}
|
|
49444
|
+
}, {
|
|
49445
|
+
key: "getHasAVO",
|
|
49446
|
+
value: function getHasAVO() {
|
|
49447
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVO > 0 ? true : false : false;
|
|
49448
|
+
}
|
|
49449
|
+
}, {
|
|
49450
|
+
key: "getHasAVU",
|
|
49451
|
+
value: function getHasAVU() {
|
|
49452
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVU > 0 ? true : false : false;
|
|
49453
|
+
}
|
|
49454
|
+
}, {
|
|
49455
|
+
key: "getHasAVC",
|
|
49456
|
+
value: function getHasAVC() {
|
|
49457
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVC > 0 ? true : false : false;
|
|
49458
|
+
}
|
|
49459
|
+
}, {
|
|
49460
|
+
key: "getHasAVN",
|
|
49461
|
+
value: function getHasAVN() {
|
|
49462
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVN > 0 ? true : false : false;
|
|
49463
|
+
}
|
|
49464
|
+
}, {
|
|
49465
|
+
key: "getHasAVS",
|
|
49466
|
+
value: function getHasAVS() {
|
|
49467
|
+
return this.planElement.plannerData != undefined ? this.planElement.plannerData.countAVS > 0 ? true : false : false;
|
|
49468
|
+
}
|
|
49469
|
+
}, {
|
|
49470
|
+
key: "getFilterAVL",
|
|
49471
|
+
value: function getFilterAVL() {
|
|
49472
|
+
var _this$planElement$pla15;
|
|
49473
|
+
return this.planElement.plannerData ? (_this$planElement$pla15 = this.planElement.plannerData) === null || _this$planElement$pla15 === void 0 ? void 0 : _this$planElement$pla15.AVLFilter : [];
|
|
49474
|
+
}
|
|
49475
|
+
}, {
|
|
49476
|
+
key: "getFilterAVR",
|
|
49477
|
+
value: function getFilterAVR() {
|
|
49478
|
+
return this.planElement.plannerData ? this.planElement.plannerData.AVRFilter : [];
|
|
49479
|
+
}
|
|
49480
|
+
}, {
|
|
49481
|
+
key: "getSVGShapeOLF2D",
|
|
49482
|
+
value: function getSVGShapeOLF2D() {
|
|
49483
|
+
return this.planElement.svgShapeOLF2D;
|
|
49484
|
+
}
|
|
49485
|
+
}, {
|
|
49486
|
+
key: "getSVGShapeOLT2D",
|
|
49487
|
+
value: function getSVGShapeOLT2D() {
|
|
49488
|
+
return this.planElement.svgShapeOLT2D;
|
|
49489
|
+
}
|
|
49490
|
+
}, {
|
|
49491
|
+
key: "getPlannerType",
|
|
49492
|
+
value: function getPlannerType() {
|
|
49493
|
+
return this.plannerType;
|
|
49494
|
+
}
|
|
49495
|
+
|
|
49496
|
+
/**
|
|
49497
|
+
* Returns the original svg XML
|
|
49498
|
+
*/
|
|
49499
|
+
}, {
|
|
49500
|
+
key: "getSVGData",
|
|
49501
|
+
value: function getSVGData() {
|
|
49502
|
+
return this.planElement.svgData ? this.planElement.svgData : '';
|
|
49503
|
+
}
|
|
49504
|
+
}, {
|
|
49505
|
+
key: "getWidth",
|
|
49506
|
+
value: function getWidth() {
|
|
49507
|
+
return this.planElement.plannerData ? this.getGlobalWidth() : -1;
|
|
49508
|
+
}
|
|
49509
|
+
}, {
|
|
49510
|
+
key: "getHeight",
|
|
49511
|
+
value: function getHeight() {
|
|
49512
|
+
return this.planElement.plannerData ? this.planElement.plannerData.height : -1;
|
|
49513
|
+
}
|
|
49514
|
+
}, {
|
|
49515
|
+
key: "getDepth",
|
|
49516
|
+
value: function getDepth() {
|
|
49517
|
+
return this.planElement.plannerData ? this.getGlobalDepth() : -1;
|
|
49518
|
+
}
|
|
49519
|
+
}, {
|
|
49520
|
+
key: "getDepthOLT",
|
|
49521
|
+
value: function getDepthOLT() {
|
|
49522
|
+
return this.Depth ? this.Depth : -1;
|
|
49523
|
+
}
|
|
49524
|
+
}, {
|
|
49525
|
+
key: "getWidthOLT",
|
|
49526
|
+
value: function getWidthOLT() {
|
|
49527
|
+
return this.Width ? this.Width : -1;
|
|
49528
|
+
}
|
|
49529
|
+
}, {
|
|
49530
|
+
key: "getLayer",
|
|
49531
|
+
value: function getLayer() {
|
|
49532
|
+
return this.planElement.plannerData ? this.planElement.plannerData.layer : 20;
|
|
49533
|
+
}
|
|
49534
|
+
}, {
|
|
49535
|
+
key: "hasSvgAsHtmlCanvas",
|
|
49536
|
+
value: function hasSvgAsHtmlCanvas() {
|
|
49537
|
+
return this.planElement.svgAsHTMLCanvas == undefined ? false : true;
|
|
49538
|
+
}
|
|
49539
|
+
}, {
|
|
49540
|
+
key: "getSvgAsHtmlCanvas",
|
|
49541
|
+
value: function getSvgAsHtmlCanvas() {
|
|
49542
|
+
return this.planElement.svgAsHTMLCanvas;
|
|
49543
|
+
}
|
|
49544
|
+
}, {
|
|
49545
|
+
key: "hasSvgDataOLTBase64",
|
|
49546
|
+
value: function hasSvgDataOLTBase64() {
|
|
49547
|
+
return this.planElement.SvgDataOLTBase64 != undefined && this.planElement.SvgDataOLTBase64 != '';
|
|
49548
|
+
}
|
|
49549
|
+
}, {
|
|
49550
|
+
key: "getSvgDataOLTBase64",
|
|
49551
|
+
value: function getSvgDataOLTBase64() {
|
|
49552
|
+
return this.planElement.SvgDataOLTBase64 != undefined ? this.planElement.SvgDataOLTBase64 : '';
|
|
49553
|
+
}
|
|
49554
|
+
}, {
|
|
49555
|
+
key: "getAccessoires",
|
|
49556
|
+
value: function getAccessoires() {
|
|
49557
|
+
var _this$planElement$pla16;
|
|
49558
|
+
return this.planElement.plannerData ? (_this$planElement$pla16 = this.planElement.plannerData) === null || _this$planElement$pla16 === void 0 ? void 0 : _this$planElement$pla16.accessoireList : [];
|
|
49559
|
+
}
|
|
49560
|
+
}, {
|
|
49561
|
+
key: "getSVGsWithFormula",
|
|
49562
|
+
value: function getSVGsWithFormula() {
|
|
49563
|
+
var _this$planElement$pla17;
|
|
49564
|
+
return (_this$planElement$pla17 = this.planElement.plannerData) === null || _this$planElement$pla17 === void 0 ? void 0 : _this$planElement$pla17.svgsWithFormula;
|
|
49565
|
+
}
|
|
49566
|
+
}, {
|
|
49567
|
+
key: "getVaraintValuesInfluencingAVLAVRFilter",
|
|
49568
|
+
value: function getVaraintValuesInfluencingAVLAVRFilter() {
|
|
49569
|
+
var _this$planElement$pla18;
|
|
49570
|
+
return (_this$planElement$pla18 = this.planElement.plannerData) === null || _this$planElement$pla18 === void 0 ? void 0 : _this$planElement$pla18.varaintValuesInfluencingAVLAVRFilter;
|
|
49571
|
+
}
|
|
49572
|
+
}, {
|
|
49573
|
+
key: "getCurrentAccessorires",
|
|
49574
|
+
value: function getCurrentAccessorires() {
|
|
49575
|
+
var _this$planElement$pla19;
|
|
49576
|
+
return this.planElement.plannerData ? (_this$planElement$pla19 = this.planElement.plannerData) === null || _this$planElement$pla19 === void 0 ? void 0 : _this$planElement$pla19.currentAccessorires : [];
|
|
49577
|
+
}
|
|
49578
|
+
}]);
|
|
49579
|
+
}();
|
|
49580
|
+
|
|
48713
49581
|
var a$a = [{
|
|
48714
49582
|
divaNr: 'DIVA-52553-1',
|
|
48715
49583
|
supplier: 'ADA_U',
|
|
@@ -65598,4 +66466,4 @@ var getOrigProductId = /*#__PURE__*/function () {
|
|
|
65598
66466
|
};
|
|
65599
66467
|
}();
|
|
65600
66468
|
|
|
65601
|
-
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 };
|
|
66469
|
+
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 };
|