@crystaldesign/web-planner-logic 24.15.0-beta.4 → 24.15.0-beta.40

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.
Files changed (80) hide show
  1. package/build/cjs/{DivaBoxPlanner-059d8dbf.js → DivaBoxPlanner-bda99ee4.js} +9 -2
  2. package/build/cjs/{DivaStandardPlanner-2f823e05.js → DivaStandardPlanner-01a25f14.js} +8 -2
  3. package/build/cjs/{DoorPlanner-faebb0a3.js → DoorPlanner-f55d0a9a.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-8f6e6051.js → Host3DSignalR-a8ce75a9.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-3971939b.js → LiviqueWWSHandler-78d7443a.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-9cd478e3.js → PfisterWWSHandler-0bb1d800.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-fe903b12.js → PlannerHandler2D-d2f835da.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-5fa059fb.js → SeriousBasketHandler-b9dbaeb5.js} +38 -4
  9. package/build/cjs/{ShelfPlanner-dd941184.js → ShelfPlanner-5c3bb271.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-6a401019.js → StandardWWSHandler-3efed4eb.js} +1 -1
  11. package/build/cjs/{index-79241c54.js → index-d354bd29.js} +988 -847
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-18367f59.js → DivaBoxPlanner-aa4bc780.js} +9 -2
  14. package/build/esm/{DivaStandardPlanner-3144203b.js → DivaStandardPlanner-9b694f4b.js} +8 -2
  15. package/build/esm/{DoorPlanner-f77fb147.js → DoorPlanner-96d07576.js} +1 -1
  16. package/build/esm/{Host3DSignalR-b98770f5.js → Host3DSignalR-1b45e08f.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-17318cbe.js → LiviqueWWSHandler-443d209a.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-79ba55d2.js → PfisterWWSHandler-75d136dc.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-a09bebd5.js → PlannerHandler2D-f2e3d4e1.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-be547be8.js → SeriousBasketHandler-2a50c503.js} +38 -4
  21. package/build/esm/{ShelfPlanner-35be475a.js → ShelfPlanner-5438eddb.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-9b4be27d.js → StandardWWSHandler-9b90b06a.js} +1 -1
  23. package/build/esm/{index-50587193.js → index-ab834318.js} +988 -847
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +1 -0
  26. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts +1 -0
  28. package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/Configuration.d.ts +1 -0
  30. package/build/types/web-planner-logic/src/interface/Configuration.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +1 -0
  32. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +1 -0
  34. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionValueView.d.ts +3 -1
  36. package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionValueView.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/Planner/IDivaPlanner.d.ts +2 -0
  38. package/build/types/web-planner-logic/src/interface/Planner/IDivaPlanner.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +2 -1
  40. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +7 -0
  42. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  44. package/build/types/web-planner-logic/src/logic/Basket/SeriousBasketHandler.d.ts +1 -0
  45. package/build/types/web-planner-logic/src/logic/Basket/SeriousBasketHandler.d.ts.map +1 -1
  46. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts +3 -16
  47. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts.map +1 -1
  48. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts +1 -6
  49. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  50. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +1 -1
  51. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  52. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +5 -2
  53. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  54. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts +1 -0
  55. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts.map +1 -1
  56. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +4 -2
  57. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
  58. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts +1 -0
  59. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
  60. package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts.map +1 -1
  61. package/build/types/web-planner-logic/src/logic/Planner/Rendering/Rendering.d.ts +16 -4
  62. package/build/types/web-planner-logic/src/logic/Planner/Rendering/Rendering.d.ts.map +1 -1
  63. package/build/types/web-planner-logic/src/logic/Planner/Rendering/ViewPointHandler.d.ts +3 -21
  64. package/build/types/web-planner-logic/src/logic/Planner/Rendering/ViewPointHandler.d.ts.map +1 -1
  65. package/build/types/web-planner-logic/src/logic/Planner/Rendering/types.d.ts +2 -1
  66. package/build/types/web-planner-logic/src/logic/Planner/Rendering/types.d.ts.map +1 -1
  67. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +1 -14
  68. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts.map +1 -1
  69. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +2 -2
  70. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  71. package/build/types/web-planner-logic/src/logic/Set/FavoritesHandler.d.ts.map +1 -1
  72. package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts.map +1 -1
  73. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +22 -2
  74. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
  75. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +1 -1
  76. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
  77. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
  78. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts +1 -1
  79. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
  80. package/package.json +2 -2
@@ -26,8 +26,8 @@ import _typeof from '@babel/runtime/helpers/typeof';
26
26
  })();
27
27
 
28
28
  var _excluded = ["type"];
29
- 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; }
30
- 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; }
29
+ 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; }
30
+ 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; }
31
31
  var LOG$h = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
32
32
  var JsonDataCache = /*#__PURE__*/function () {
33
33
  function JsonDataCache() {
@@ -232,8 +232,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
232
232
  if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig2 = this.apiConfig) !== null && _this$apiConfig2 !== void 0 && _this$apiConfig2.api2.web) {
233
233
  api2Url = this.apiConfig.api2.web;
234
234
  }
235
- _context2.t0 = _objectSpread$g;
236
- _context2.t1 = _objectSpread$g({}, init.config.headers);
235
+ _context2.t0 = _objectSpread$h;
236
+ _context2.t1 = _objectSpread$h({}, init.config.headers);
237
237
  _context2.t2 = {};
238
238
  _context2.next = 20;
239
239
  return this.getSessionGuid('V', undefined, this.OrganizationId, api2Url);
@@ -263,11 +263,12 @@ var DivaApiHandler = /*#__PURE__*/function () {
263
263
  key: "getDataCache",
264
264
  value: function () {
265
265
  var _getDataCache = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(queryString, cacheMD5, accountSessionGuid, useWebServiceApi, method, data) {
266
- var myQS, url, init, addSession, _this$apiConfig3, _this$apiConfig4, api2Url, result;
266
+ var _this$divaWebConfigDa, _this$divaWebConfigDa2, _this$divaWebConfigDa3;
267
+ var myQS, url, init, addSession, cacheHit, _this$apiConfig3, _this$apiConfig4, api2Url, result;
267
268
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
268
269
  while (1) switch (_context3.prev = _context3.next) {
269
270
  case 0:
270
- myQS = md5(queryString.toLowerCase()).toUpperCase();
271
+ myQS = md5(queryString.toLowerCase() + ((_this$divaWebConfigDa = this.divaWebConfigData) !== null && _this$divaWebConfigDa !== void 0 && _this$divaWebConfigDa.addOrganizationIdToCacheKey ? this.OrganizationId : '')).toUpperCase();
271
272
  url = this.apiUrl(queryString, useWebServiceApi);
272
273
  init = {
273
274
  method: method,
@@ -275,80 +276,82 @@ var DivaApiHandler = /*#__PURE__*/function () {
275
276
  data: data !== null && data !== void 0 ? data : {}
276
277
  };
277
278
  addSession = true;
278
- if (!(this.jsonDataCache.get(myQS) || cacheMD5 && this.jsonDataCache.get(cacheMD5))) {
279
- _context3.next = 9;
279
+ cacheHit = this.jsonDataCache.get(myQS);
280
+ if (!cacheHit) {
281
+ _context3.next = 8;
280
282
  break;
281
283
  }
282
284
  LOG$h.debug('getDataFromInternalCache: ' + queryString);
283
- if (!this.jsonDataCache.get(myQS)) {
284
- _context3.next = 8;
285
+ return _context3.abrupt("return", cacheHit);
286
+ case 8:
287
+ if (!(cacheMD5 && this.jsonDataCache.get(cacheMD5) && !((_this$divaWebConfigDa2 = this.divaWebConfigData) !== null && _this$divaWebConfigDa2 !== void 0 && _this$divaWebConfigDa2.addOrganizationIdToCacheKey))) {
288
+ _context3.next = 11;
285
289
  break;
286
290
  }
287
- return _context3.abrupt("return", this.jsonDataCache.get(myQS));
288
- case 8:
291
+ LOG$h.debug('getDataFromInternalCache: ' + queryString);
289
292
  return _context3.abrupt("return", this.jsonDataCache.get(cacheMD5));
290
- case 9:
293
+ case 11:
291
294
  if (!addSession) {
292
- _context3.next = 31;
295
+ _context3.next = 33;
293
296
  break;
294
297
  }
295
298
  if (!useWebServiceApi) {
296
- _context3.next = 22;
299
+ _context3.next = 24;
297
300
  break;
298
301
  }
299
302
  if (!this.jwt) {
300
- _context3.next = 15;
303
+ _context3.next = 17;
301
304
  break;
302
305
  }
303
306
  init.config.headers = {
304
307
  Authorization: 'Bearer ' + this.jwt
305
308
  };
306
- _context3.next = 20;
309
+ _context3.next = 22;
307
310
  break;
308
- case 15:
311
+ case 17:
309
312
  if (!this.apiKey) {
310
- _context3.next = 19;
313
+ _context3.next = 21;
311
314
  break;
312
315
  }
313
316
  init.config.headers = {
314
317
  'X-API-KEY': this.apiKey
315
318
  };
316
- _context3.next = 20;
319
+ _context3.next = 22;
317
320
  break;
318
- case 19:
321
+ case 21:
319
322
  throw new Error('not jwt or API Key Found');
320
- case 20:
321
- _context3.next = 31;
322
- break;
323
323
  case 22:
324
+ _context3.next = 33;
325
+ break;
326
+ case 24:
324
327
  api2Url = (_this$apiConfig3 = this.apiConfig) === null || _this$apiConfig3 === void 0 ? void 0 : _this$apiConfig3.api2["default"];
325
328
  if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig4 = this.apiConfig) !== null && _this$apiConfig4 !== void 0 && _this$apiConfig4.api2.web) {
326
329
  api2Url = this.apiConfig.api2.web;
327
330
  }
328
331
  _context3.t0 = accountSessionGuid;
329
332
  if (_context3.t0) {
330
- _context3.next = 29;
333
+ _context3.next = 31;
331
334
  break;
332
335
  }
333
- _context3.next = 28;
336
+ _context3.next = 30;
334
337
  return this.getSessionGuid('V', undefined, this.OrganizationId, api2Url);
335
- case 28:
338
+ case 30:
336
339
  _context3.t0 = _context3.sent;
337
- case 29:
340
+ case 31:
338
341
  _context3.t1 = _context3.t0;
339
342
  init.config.headers = {
340
343
  sessionGuid: _context3.t1
341
344
  };
342
- case 31:
343
- _context3.next = 33;
344
- return this.fetchData(url, init);
345
345
  case 33:
346
+ _context3.next = 35;
347
+ return this.fetchData(url, init);
348
+ case 35:
346
349
  result = _context3.sent;
347
350
  if (method !== 'POST') this.jsonDataCache.set(myQS, result);
348
- if (cacheMD5) this.jsonDataCache.set(cacheMD5, result);
351
+ if (cacheMD5 && !((_this$divaWebConfigDa3 = this.divaWebConfigData) !== null && _this$divaWebConfigDa3 !== void 0 && _this$divaWebConfigDa3.addOrganizationIdToCacheKey)) this.jsonDataCache.set(cacheMD5, result);
349
352
  LOG$h.debug('getDataFromApi: ' + queryString);
350
353
  return _context3.abrupt("return", result);
351
- case 38:
354
+ case 40:
352
355
  case "end":
353
356
  return _context3.stop();
354
357
  }
@@ -432,7 +435,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
432
435
  dontLoadAdditionalModelInfos: data.dontLoadAdditionalModelInfos,
433
436
  arViewerUrl: data.arViewerUrl,
434
437
  useMask: data.useMask,
435
- loadProductBasketParams: data.loadProductBasketParams
438
+ loadProductBasketParams: data.loadProductBasketParams,
439
+ addOrganizationIdToCacheKey: data.addOrganizationIdToCacheKey
436
440
  };
437
441
  }
438
442
  }, {
@@ -468,8 +472,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
468
472
  }, {
469
473
  key: "getLoadProductBasketParams",
470
474
  value: function getLoadProductBasketParams() {
471
- var _this$divaWebConfigDa;
472
- return (_this$divaWebConfigDa = this.divaWebConfigData) === null || _this$divaWebConfigDa === void 0 ? void 0 : _this$divaWebConfigDa.loadProductBasketParams;
475
+ var _this$divaWebConfigDa4;
476
+ return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.loadProductBasketParams;
473
477
  }
474
478
  }, {
475
479
  key: "get3DServerUrl",
@@ -480,26 +484,26 @@ var DivaApiHandler = /*#__PURE__*/function () {
480
484
  }, {
481
485
  key: "doCheckForProductsPrice",
482
486
  value: function doCheckForProductsPrice() {
483
- var _this$divaWebConfigDa2;
484
- return (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.checkForProductsPrice;
487
+ var _this$divaWebConfigDa5;
488
+ return (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.checkForProductsPrice;
485
489
  }
486
490
  }, {
487
491
  key: "doCheckForProductsMatch",
488
492
  value: function doCheckForProductsMatch() {
489
- var _this$divaWebConfigDa3;
490
- return (_this$divaWebConfigDa3 = this.divaWebConfigData) === null || _this$divaWebConfigDa3 === void 0 ? void 0 : _this$divaWebConfigDa3.checkForProductsMatch;
493
+ var _this$divaWebConfigDa6;
494
+ return (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.checkForProductsMatch;
491
495
  }
492
496
  }, {
493
497
  key: "getReportConfigIdentifier",
494
498
  value: function getReportConfigIdentifier() {
495
- var _this$divaWebConfigDa4;
496
- return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.reportConfigIdentifier;
499
+ var _this$divaWebConfigDa7;
500
+ return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.reportConfigIdentifier;
497
501
  }
498
502
  }, {
499
503
  key: "getPrintOptions",
500
504
  value: function getPrintOptions() {
501
- var _this$divaWebConfigDa5;
502
- var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.reportConfig;
505
+ var _this$divaWebConfigDa8;
506
+ var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.reportConfig;
503
507
  return {
504
508
  Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
505
509
  PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
@@ -519,8 +523,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
519
523
  }, {
520
524
  key: "get3DRenderGroup",
521
525
  value: function get3DRenderGroup() {
522
- var _this$divaWebConfigDa6, _this$divaWebConfigDa7;
523
- return (_this$divaWebConfigDa6 = (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.diva3dRenderGroup) !== null && _this$divaWebConfigDa6 !== void 0 ? _this$divaWebConfigDa6 : '';
526
+ var _this$divaWebConfigDa9, _this$divaWebConfigDa10;
527
+ return (_this$divaWebConfigDa9 = (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3dRenderGroup) !== null && _this$divaWebConfigDa9 !== void 0 ? _this$divaWebConfigDa9 : '';
524
528
  }
525
529
  }, {
526
530
  key: "getServerId",
@@ -557,73 +561,74 @@ var DivaApiHandler = /*#__PURE__*/function () {
557
561
  }, {
558
562
  key: "getDiva3dStaticBGImage",
559
563
  value: function getDiva3dStaticBGImage() {
560
- var _this$divaWebConfigDa8;
561
- return (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.diva3dStaticBGImage;
564
+ var _this$divaWebConfigDa11;
565
+ return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.diva3dStaticBGImage;
562
566
  }
563
567
  }, {
564
568
  key: "getDiva3dStaticBGImage_DefaultRoomList",
565
569
  value: function getDiva3dStaticBGImage_DefaultRoomList() {
566
- var _this$divaWebConfigDa9, _this$divaWebConfigDa10;
567
- return ((_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3dStaticBGImage_DefaultRoomList;
570
+ var _this$divaWebConfigDa12, _this$divaWebConfigDa13;
571
+ return ((_this$divaWebConfigDa12 = this.divaWebConfigData) === null || _this$divaWebConfigDa12 === void 0 ? void 0 : _this$divaWebConfigDa12.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.diva3dStaticBGImage_DefaultRoomList;
568
572
  }
569
573
  }, {
570
574
  key: "getDiva3DAllowDefaultCatRoomList",
571
575
  value: function getDiva3DAllowDefaultCatRoomList() {
572
- var _this$divaWebConfigDa11;
573
- return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.diva3DAllowDefaultCatRoomList;
576
+ var _this$divaWebConfigDa14;
577
+ return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.diva3DAllowDefaultCatRoomList;
574
578
  }
575
579
  }, {
576
580
  key: "doAllowSetPlanner",
577
581
  value: function doAllowSetPlanner() {
578
- var _this$divaWebConfigDa12;
579
- return (_this$divaWebConfigDa12 = this.divaWebConfigData) === null || _this$divaWebConfigDa12 === void 0 ? void 0 : _this$divaWebConfigDa12.doAllowSetPlanner;
582
+ var _this$divaWebConfigDa15;
583
+ return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.doAllowSetPlanner;
580
584
  }
581
585
  }, {
582
586
  key: "getHidePlanner",
583
587
  value: function getHidePlanner() {
584
- var _this$divaWebConfigDa13;
585
- return !!((_this$divaWebConfigDa13 = this.divaWebConfigData) !== null && _this$divaWebConfigDa13 !== void 0 && (_this$divaWebConfigDa13 = _this$divaWebConfigDa13.viewConfig) !== null && _this$divaWebConfigDa13 !== void 0 && _this$divaWebConfigDa13.hidePlanner);
588
+ var _this$divaWebConfigDa16;
589
+ return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && (_this$divaWebConfigDa16 = _this$divaWebConfigDa16.viewConfig) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.hidePlanner);
586
590
  }
587
591
  }, {
588
592
  key: "getEnableRTVUnityKombi",
589
593
  value: function getEnableRTVUnityKombi() {
590
- return !!this.organization.settings.enableRTV;
594
+ var _this$organization$se;
595
+ return !!((_this$organization$se = this.organization.settings) !== null && _this$organization$se !== void 0 && _this$organization$se.enableRTV);
591
596
  }
592
597
  }, {
593
598
  key: "getDoDisablePlanner2D",
594
599
  value: function getDoDisablePlanner2D() {
595
- var _this$divaWebConfigDa14;
596
- return !!((_this$divaWebConfigDa14 = this.divaWebConfigData) !== null && _this$divaWebConfigDa14 !== void 0 && _this$divaWebConfigDa14.doDisablePlanner2D);
600
+ var _this$divaWebConfigDa17;
601
+ return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.doDisablePlanner2D);
597
602
  }
598
603
  }, {
599
604
  key: "getRoomListInProduct",
600
605
  value: function getRoomListInProduct() {
601
- var _this$divaWebConfigDa15;
602
- return !!((_this$divaWebConfigDa15 = this.divaWebConfigData) !== null && _this$divaWebConfigDa15 !== void 0 && (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) !== null && _this$divaWebConfigDa15 !== void 0 && _this$divaWebConfigDa15.roomListInProduct);
606
+ var _this$divaWebConfigDa18;
607
+ return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && (_this$divaWebConfigDa18 = _this$divaWebConfigDa18.viewConfig) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.roomListInProduct);
603
608
  }
604
609
  }, {
605
610
  key: "getPlannerType",
606
611
  value: function getPlannerType() {
607
- var _this$divaWebConfigDa16;
608
- return (_this$divaWebConfigDa16 = this.divaWebConfigData) === null || _this$divaWebConfigDa16 === void 0 || (_this$divaWebConfigDa16 = _this$divaWebConfigDa16.viewConfig) === null || _this$divaWebConfigDa16 === void 0 ? void 0 : _this$divaWebConfigDa16.plannerType;
612
+ var _this$divaWebConfigDa19;
613
+ return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 || (_this$divaWebConfigDa19 = _this$divaWebConfigDa19.viewConfig) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.plannerType;
609
614
  }
610
615
  }, {
611
616
  key: "getLoadSupplierColors",
612
617
  value: function getLoadSupplierColors() {
613
- var _this$divaWebConfigDa17;
614
- return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.loadSupplierColors);
618
+ var _this$divaWebConfigDa20;
619
+ return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.loadSupplierColors);
615
620
  }
616
621
  }, {
617
622
  key: "showSelectionModeZero",
618
623
  value: function showSelectionModeZero() {
619
- var _this$divaWebConfigDa18;
620
- return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.showSelectionModeZero);
624
+ var _this$divaWebConfigDa21;
625
+ return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.showSelectionModeZero);
621
626
  }
622
627
  }, {
623
628
  key: "ruleDescSeperator",
624
629
  value: function ruleDescSeperator() {
625
- var _this$organization$se, _this$organization2;
626
- var seperator = (_this$organization$se = (_this$organization2 = this.organization) === null || _this$organization2 === void 0 || (_this$organization2 = _this$organization2.settings) === null || _this$organization2 === void 0 ? void 0 : _this$organization2.ruleDescSeperator) !== null && _this$organization$se !== void 0 ? _this$organization$se : ', ';
630
+ var _this$organization$se2, _this$organization2;
631
+ var seperator = (_this$organization$se2 = (_this$organization2 = this.organization) === null || _this$organization2 === void 0 || (_this$organization2 = _this$organization2.settings) === null || _this$organization2 === void 0 ? void 0 : _this$organization2.ruleDescSeperator) !== null && _this$organization$se2 !== void 0 ? _this$organization$se2 : ', ';
627
632
  // \n is escaped in url and therefore needs to be set via keyword
628
633
  if (seperator == 'newLine') return '\n';
629
634
  return seperator;
@@ -725,50 +730,50 @@ var DivaApiHandler = /*#__PURE__*/function () {
725
730
  }, {
726
731
  key: "getViewConfig",
727
732
  value: function getViewConfig() {
728
- var _this$divaWebConfigDa19;
729
- return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.viewConfig;
733
+ var _this$divaWebConfigDa22;
734
+ return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.viewConfig;
730
735
  }
731
736
  }, {
732
737
  key: "getEmailConfig",
733
738
  value: function getEmailConfig() {
734
- var _this$divaWebConfigDa20;
735
- return (_this$divaWebConfigDa20 = this.divaWebConfigData) === null || _this$divaWebConfigDa20 === void 0 ? void 0 : _this$divaWebConfigDa20.emailConfig;
739
+ var _this$divaWebConfigDa23;
740
+ return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.emailConfig;
736
741
  }
737
742
  }, {
738
743
  key: "getABTestCases",
739
744
  value: function getABTestCases() {
740
- var _this$divaWebConfigDa21, _this$divaWebConfigDa22;
741
- return (_this$divaWebConfigDa21 = (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.abTestCases) !== null && _this$divaWebConfigDa21 !== void 0 ? _this$divaWebConfigDa21 : [];
745
+ var _this$divaWebConfigDa24, _this$divaWebConfigDa25;
746
+ return (_this$divaWebConfigDa24 = (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.abTestCases) !== null && _this$divaWebConfigDa24 !== void 0 ? _this$divaWebConfigDa24 : [];
742
747
  }
743
748
  }, {
744
749
  key: "getBarrierConfig",
745
750
  value: function getBarrierConfig() {
746
- var _this$divaWebConfigDa23;
747
- return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.barrierConfig;
751
+ var _this$divaWebConfigDa26;
752
+ return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.barrierConfig;
748
753
  }
749
754
  }, {
750
755
  key: "getTemplateConfig",
751
756
  value: function getTemplateConfig() {
752
- var _this$divaWebConfigDa24;
753
- return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.templateConfig;
757
+ var _this$divaWebConfigDa27;
758
+ return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.templateConfig;
754
759
  }
755
760
  }, {
756
761
  key: "showDivaNr",
757
762
  value: function showDivaNr() {
758
- var _this$divaWebConfigDa25;
759
- return (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.showDivaNr;
763
+ var _this$divaWebConfigDa28;
764
+ return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.showDivaNr;
760
765
  }
761
766
  }, {
762
767
  key: "onErrorHandling",
763
768
  value: function onErrorHandling() {
764
- var _this$divaWebConfigDa26;
765
- return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.onErrorHandling;
769
+ var _this$divaWebConfigDa29;
770
+ return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.onErrorHandling;
766
771
  }
767
772
  }, {
768
773
  key: "diva3DRenderingDefault",
769
774
  value: function diva3DRenderingDefault() {
770
- var _this$divaWebConfigDa27;
771
- return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.diva3DRenderingDefault;
775
+ var _this$divaWebConfigDa30;
776
+ return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.diva3DRenderingDefault;
772
777
  }
773
778
  }, {
774
779
  key: "getJwt",
@@ -783,8 +788,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
783
788
  }, {
784
789
  key: "getUseMask",
785
790
  value: function getUseMask() {
786
- var _this$divaWebConfigDa28;
787
- return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.useMask;
791
+ var _this$divaWebConfigDa31;
792
+ return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.useMask;
788
793
  }
789
794
  }, {
790
795
  key: "apiUrl",
@@ -1299,14 +1304,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1299
1304
  }, {
1300
1305
  key: "dontLoadAdditionalModelInfos",
1301
1306
  get: function get() {
1302
- var _this$divaWebConfigDa29;
1303
- return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.dontLoadAdditionalModelInfos;
1307
+ var _this$divaWebConfigDa32;
1308
+ return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.dontLoadAdditionalModelInfos;
1304
1309
  }
1305
1310
  }, {
1306
1311
  key: "dontLoadCatalogEditorLiteMask",
1307
1312
  get: function get() {
1308
- var _this$divaWebConfigDa30;
1309
- return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.dontLoadCatalogEditorLiteMask;
1313
+ var _this$divaWebConfigDa33;
1314
+ return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadCatalogEditorLiteMask;
1310
1315
  }
1311
1316
  }, {
1312
1317
  key: "OrganizationId",
@@ -1741,7 +1746,8 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1741
1746
  }, {
1742
1747
  key: "isNotRelevant",
1743
1748
  get: function get() {
1744
- return this.opv.catalogOPV.isNotRelevant;
1749
+ var _this$opv$catalogOPV$, _this$ocd;
1750
+ return (_this$opv$catalogOPV$ = this.opv.catalogOPV.isNotRelevant) !== null && _this$opv$catalogOPV$ !== void 0 ? _this$opv$catalogOPV$ : ['OPVNR', 'OPVNRR', 'OPVNR_0'].includes((_this$ocd = this.ocd) !== null && _this$ocd !== void 0 ? _this$ocd : this.codex);
1745
1751
  }
1746
1752
  }, {
1747
1753
  key: "vCodex",
@@ -1992,11 +1998,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1992
1998
  }, {
1993
1999
  key: "metaDataView",
1994
2000
  get: function get() {
1995
- var _this$ocd;
2001
+ var _this$ocd2;
1996
2002
  return [].concat(_toConsumableArray(this.opv.catalogOPV.metaDataView), [{
1997
2003
  codex: 'codex',
1998
2004
  name: '',
1999
- values: [((_this$ocd = this.ocd) !== null && _this$ocd !== void 0 ? _this$ocd : this.codex).replace('OPVOPV_', 'OPV_')],
2005
+ values: [((_this$ocd2 = this.ocd) !== null && _this$ocd2 !== void 0 ? _this$ocd2 : this.codex).replace('OPVOPV_', 'OPV_')],
2000
2006
  values_locales: []
2001
2007
  }]);
2002
2008
  }
@@ -15883,13 +15889,13 @@ var ralClassics = [{
15883
15889
  }];
15884
15890
 
15885
15891
  var OptionValueCatalogData = /*#__PURE__*/function () {
15886
- function OptionValueCatalogData(_codex, jsonOPV, catalog) {
15892
+ function OptionValueCatalogData(_codex, jsonOPV, catalogData) {
15887
15893
  var _this = this,
15888
- _catalog$catalogMask$,
15889
- _catalog$catalogMask,
15890
- _catalog$catalogMask2,
15894
+ _catalogData$catalogM,
15895
+ _catalogData$catalogM2,
15896
+ _catalogData$catalogM3,
15891
15897
  _optionvalues$_codex,
15892
- _mask$name$catalog$ap,
15898
+ _mask$name$catalogDat,
15893
15899
  _mask$name,
15894
15900
  _mask$name2,
15895
15901
  _mask$groupname$catal,
@@ -15952,12 +15958,12 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
15952
15958
  }
15953
15959
  return undefined;
15954
15960
  });
15955
- var optionvalues = (_catalog$catalogMask$ = (_catalog$catalogMask = catalog.catalogMask) === null || _catalog$catalogMask === void 0 ? void 0 : _catalog$catalogMask.optionvalues) !== null && _catalog$catalogMask$ !== void 0 ? _catalog$catalogMask$ : (_catalog$catalogMask2 = catalog.catalogMask) === null || _catalog$catalogMask2 === void 0 ? void 0 : _catalog$catalogMask2.optionValues;
15961
+ var optionvalues = (_catalogData$catalogM = (_catalogData$catalogM2 = catalogData.catalogMask) === null || _catalogData$catalogM2 === void 0 ? void 0 : _catalogData$catalogM2.optionvalues) !== null && _catalogData$catalogM !== void 0 ? _catalogData$catalogM : (_catalogData$catalogM3 = catalogData.catalogMask) === null || _catalogData$catalogM3 === void 0 ? void 0 : _catalogData$catalogM3.optionValues;
15956
15962
  var mask = (_optionvalues$_codex = optionvalues === null || optionvalues === void 0 ? void 0 : optionvalues[_codex]) !== null && _optionvalues$_codex !== void 0 ? _optionvalues$_codex : _codex.startsWith('OPV') ? optionvalues === null || optionvalues === void 0 ? void 0 : optionvalues[_codex.substring(3)] : undefined;
15957
15963
  this.opv = {
15958
15964
  codex: _codex,
15959
15965
  vCodex: jsonOPV.VCodex,
15960
- name: (_mask$name$catalog$ap = mask === null || mask === void 0 || (_mask$name = mask.name) === null || _mask$name === void 0 ? void 0 : _mask$name[catalog.api.getLanguage()]) !== null && _mask$name$catalog$ap !== void 0 ? _mask$name$catalog$ap : jsonOPV.Name,
15966
+ name: (_mask$name$catalogDat = mask === null || mask === void 0 || (_mask$name = mask.name) === null || _mask$name === void 0 ? void 0 : _mask$name[catalogData.api.getLanguage()]) !== null && _mask$name$catalogDat !== void 0 ? _mask$name$catalogDat : jsonOPV.Name,
15961
15967
  origName: jsonOPV.Name,
15962
15968
  name_locales: (_mask$name2 = mask === null || mask === void 0 ? void 0 : mask.name) !== null && _mask$name2 !== void 0 ? _mask$name2 : jsonOPV.Name_locales,
15963
15969
  image: jsonOPV.Image && jsonOPV.Image != '' ? jsonOPV.Image : undefined,
@@ -15965,7 +15971,7 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
15965
15971
  isTexture: jsonOPV.IsTexture && jsonOPV.IsTexture == 'True' ? true : false,
15966
15972
  description: jsonOPV.Description,
15967
15973
  description_locales: jsonOPV.Description_locales,
15968
- groupName: (_mask$groupname$catal = mask === null || mask === void 0 || (_mask$groupname = mask.groupname) === null || _mask$groupname === void 0 ? void 0 : _mask$groupname[catalog.api.getLanguage()]) !== null && _mask$groupname$catal !== void 0 ? _mask$groupname$catal : jsonOPV.GroupName && jsonOPV.GroupName != '' ? jsonOPV.GroupName : undefined,
15974
+ groupName: (_mask$groupname$catal = mask === null || mask === void 0 || (_mask$groupname = mask.groupname) === null || _mask$groupname === void 0 ? void 0 : _mask$groupname[catalogData.api.getLanguage()]) !== null && _mask$groupname$catal !== void 0 ? _mask$groupname$catal : jsonOPV.GroupName && jsonOPV.GroupName != '' ? jsonOPV.GroupName : undefined,
15969
15975
  groupName_locales: (_mask$groupname2 = mask === null || mask === void 0 ? void 0 : mask.groupname) !== null && _mask$groupname2 !== void 0 ? _mask$groupname2 : jsonOPV.GroupName_locales,
15970
15976
  hiddenByMask: mask === null || mask === void 0 ? void 0 : mask.hidden,
15971
15977
  textureName: jsonOPV.TextureName && jsonOPV.TextureName != '' ? jsonOPV.TextureName : jsonOPV.PFTFile && jsonOPV.PFTFile != '' ? jsonOPV.PFTFile : undefined,
@@ -16003,7 +16009,7 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16003
16009
  this.opv.images.push({
16004
16010
  fileName: image.FileName,
16005
16011
  functiontype: image.Functiontype,
16006
- jsFormula: image.JsFormula ? DivaUtils.getRuleByFormula(image.JsFormula, catalog.catalogCodex, catalog.multiselectOptions) : '',
16012
+ jsFormula: image.JsFormula ? DivaUtils.getRuleByFormula(image.JsFormula, catalogData.catalogCodex, catalogData.multiselectOptions) : '',
16007
16013
  name: image.Name,
16008
16014
  replaceMainImage: image.ReplaceMainImage
16009
16015
  });
@@ -16013,56 +16019,76 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16013
16019
  for (var _i = 0; _i < ((_this$opv$property$le = (_this$opv$property = this.opv.property) === null || _this$opv$property === void 0 ? void 0 : _this$opv$property.length) !== null && _this$opv$property$le !== void 0 ? _this$opv$property$le : 0); _i++) {
16014
16020
  var _this$opv$property$le, _this$opv$property, _this$opv$property2;
16015
16021
  var prop = (_this$opv$property2 = this.opv.property) === null || _this$opv$property2 === void 0 ? void 0 : _this$opv$property2[_i];
16016
- if (prop.Codex === 'INFO_URL') {
16017
- this.opv.url = prop.Value;
16018
- } else if (prop.Codex === 'INFO_PDF') {
16019
- this.opv.pdfUrl = prop.Value;
16020
- } else if (prop.Codex === 'SAME_OPV') {
16021
- this.opv.sameopv = prop.Value;
16022
- } else if (prop.Codex === 'ONLY_VISIBLE_IF_NOT_UNDOCK') {
16023
- this.opv.onlyVisibleIfNotDocked = prop.Value;
16024
- } else if (prop.Codex === 'DEFAULT_VALUE') {
16025
- this.opv.defaultValue = prop.Value;
16026
- } else if (prop.Codex === 'SUMMARY_CODEX') {
16027
- this.opv.summaryCodex = prop.Value;
16028
- } else if (prop.Codex === 'VIEWPOINTNAME') {
16029
- this.opv.viewPointName = prop.Value;
16030
- } else if (prop.Codex === 'HIDE_IN_SUMMARY') {
16031
- this.opv.hideInSummary = !!prop.Value;
16032
- } else if (prop.Codex === 'SETNAME') {
16033
- this.opv.setName = prop.Value;
16034
- } else if (prop.Codex === 'SET_CONFIG') {
16035
- this.opv.setConfig = prop.Value;
16036
- } else if (prop.Codex === 'ON_RULE') {
16037
- this.opv.onRule = prop.Value;
16038
- } else if (prop.Codex === 'CONTENT_ITEM') {
16039
- this.opv.contentItemId = prop.Value;
16040
- } else if (prop.Codex === 'IS_NOT_RELEVANT') {
16041
- this.opv.isNotRelevant = prop.Value;
16042
- } else if (prop.Codex === 'GROUP_CONTENT_ITEM') {
16043
- this.opv.groupContentItemId = prop.Value;
16044
- } else if (prop.Codex === 'SET_BY_RULE') {
16045
- this.opv.setByRule = prop.Value;
16046
- } else {
16047
- var values_locales = [];
16048
- if (prop.Value_locales) {
16049
- var _prop$Value_locales;
16050
- var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16051
- for (var j = 0; j < langs.length; j++) {
16052
- var lang = langs[j];
16053
- var values = prop.Value_locales[lang].split(';');
16054
- for (var m = 0; m < values.length; m++) {
16055
- if (!values_locales[m]) values_locales[m] = {};
16056
- values_locales[m][lang] = values[m];
16022
+ var key = prop.Codex;
16023
+ if (key.startsWith(catalogData.catalogCodex + '__')) key = key.replace(catalogData.catalogCodex + '__', '');
16024
+ switch (key) {
16025
+ case 'INFO_URL':
16026
+ this.opv.url = prop.Value;
16027
+ break;
16028
+ case 'INFO_PDF':
16029
+ this.opv.pdfUrl = prop.Value;
16030
+ break;
16031
+ case 'SAME_OPV':
16032
+ this.opv.sameopv = prop.Value;
16033
+ break;
16034
+ case 'ONLY_VISIBLE_IF_NOT_UNDOCK':
16035
+ this.opv.onlyVisibleIfNotDocked = prop.Value;
16036
+ break;
16037
+ case 'DEFAULT_VALUE':
16038
+ this.opv.defaultValue = prop.Value;
16039
+ break;
16040
+ case 'SUMMARY_CODEX':
16041
+ this.opv.summaryCodex = prop.Value;
16042
+ break;
16043
+ case 'VIEWPOINTNAME':
16044
+ this.opv.viewPointName = prop.Value;
16045
+ break;
16046
+ case 'HIDE_IN_SUMMARY':
16047
+ this.opv.hideInSummary = !!prop.Value;
16048
+ break;
16049
+ case 'SETNAME':
16050
+ this.opv.setName = prop.Value;
16051
+ break;
16052
+ case 'SET_CONFIG':
16053
+ this.opv.setConfig = prop.Value;
16054
+ break;
16055
+ case 'ON_RULE':
16056
+ this.opv.onRule = prop.Value;
16057
+ break;
16058
+ case 'CONTENT_ITEM':
16059
+ this.opv.contentItemId = prop.Value;
16060
+ break;
16061
+ case 'IS_NOT_RELEVANT':
16062
+ this.opv.isNotRelevant = prop.Value;
16063
+ break;
16064
+ case 'GROUP_CONTENT_ITEM':
16065
+ this.opv.groupContentItemId = prop.Value;
16066
+ break;
16067
+ case 'SET_BY_RULE':
16068
+ this.opv.setByRule = prop.Value;
16069
+ break;
16070
+ default:
16071
+ if (key.includes('__')) break;
16072
+ var values_locales = [];
16073
+ if (prop.Value_locales) {
16074
+ var _prop$Value_locales;
16075
+ var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16076
+ for (var j = 0; j < langs.length; j++) {
16077
+ var lang = langs[j];
16078
+ var values = prop.Value_locales[lang].split(';');
16079
+ for (var m = 0; m < values.length; m++) {
16080
+ if (!values_locales[m]) values_locales[m] = {};
16081
+ values_locales[m][lang] = values[m];
16082
+ }
16057
16083
  }
16058
16084
  }
16059
- }
16060
- metaDatas.push({
16061
- codex: prop.Codex,
16062
- name: prop.Name,
16063
- values: prop.Value.split(';'),
16064
- values_locales: values_locales
16065
- });
16085
+ metaDatas.push({
16086
+ codex: prop.Codex,
16087
+ name: prop.Name,
16088
+ values: prop.Value.split(';'),
16089
+ values_locales: values_locales
16090
+ });
16091
+ break;
16066
16092
  }
16067
16093
  }
16068
16094
  this.opv.metaData = metaDatas;
@@ -16420,70 +16446,95 @@ var CatalogArticleData = /*#__PURE__*/function () {
16420
16446
  for (var i = 0; i < this.catalogArticle.properties.length; i++) {
16421
16447
  var prop = this.catalogArticle.properties[i];
16422
16448
  var _key = prop.Codex;
16423
- if (_key == 'BUNDLE_RULES') {
16424
- this.catalogArticle.bundleRules = JSON.parse(prop.Value);
16425
- } else if (_key == 'HEIGHTGRIDUSED') {
16426
- this.catalogArticle.heightGridUsed = Number(prop.Value);
16427
- } else if (_key == 'HEIGHTGRIDBELOW') {
16428
- this.catalogArticle.heightGridBelow = Number(prop.Value);
16429
- } else if (_key == 'HEIGHTGRIDABOVE') {
16430
- this.catalogArticle.heightGridAbove = Number(prop.Value);
16431
- } else if (_key == 'OVERWRITE_PARENT_WIDTH') {
16432
- this.catalogArticle.overwriteParentWidth = prop.Value;
16433
- } else if (_key == 'OVERWRITE_PARENT_HEIGHT') {
16434
- this.catalogArticle.overwriteParentHeight = prop.Value;
16435
- } else if (_key == 'OVERWRITE_PARENT_DEPTH') {
16436
- this.catalogArticle.overwriteParentDepth = prop.Value;
16437
- } else if (_key == 'DO_NOT_DEL_ACC_IF_NOT_DOCKED') {
16438
- this.catalogArticle.doNotDelAccIfNotDocked = prop.Value;
16439
- } else if (_key == 'HEIGHT_HAS_PRICE') {
16440
- this.catalogArticle.heightHasPrice = prop.Value;
16441
- } else if (_key == 'DEPTH_HAS_PRICE') {
16442
- this.catalogArticle.depthHasPrice = prop.Value;
16443
- } else if (_key == 'WIDTH_HAS_PRICE') {
16444
- this.catalogArticle.widthHasPrice = prop.Value;
16445
- } else if (_key == 'BASIC_UNIT_PRICE') {
16446
- this.catalogArticle.basicUnitPrice = Number(prop.Value);
16447
- } else if (_key == 'INVALID_ACCESSORIES') {
16448
- this.catalogArticle.invalidAccessoires = prop.Value.split(',');
16449
- } else if (_key == 'ON_CONFIG_OPTION') {
16450
- this.catalogArticle.onConfigOption = prop.Value;
16451
- } else if (_key == 'ON_SET_CONFIG_OPTION') {
16452
- this.catalogArticle.onSetConfigOtpion = prop.Value;
16453
- } else if (_key == 'ORDER_POSNR') {
16454
- this.catalogArticle.orderPosNr = prop.Value;
16455
- } else if (_key == 'HIDE_IN_PLANNERSTEP') {
16456
- this.catalogArticle.hideInPlannerStep = !!prop.Value;
16457
- } else if (_key == 'MAX_PLANNING_COUNT') {
16458
- this.catalogArticle.maxPlanningCount = Number(prop.Value);
16459
- } else if (_key == 'CONTENT_ITEM') {
16460
- this.catalogArticle.contentItemId = prop.Value;
16461
- } else if (_key == 'GROUP_CONTENT_ITEM') {
16462
- this.catalogArticle.groupContentItemId = prop.Value;
16463
- } else if (_key == 'HAS3D') {
16464
- this.catalogArticle.isVisualized = prop.Value;
16465
- } else {
16466
- var values = prop.Value.split(';');
16467
- var values_locales = [];
16468
- if (prop.Value_locales) {
16469
- var _prop$Value_locales;
16470
- var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16471
- for (var j = 0; j < langs.length; j++) {
16472
- var lang = langs[j];
16473
- if (!prop.Value_locales[lang]) continue;
16474
- var _values = prop.Value_locales[lang].split(';');
16475
- for (var m = 0; m < _values.length; m++) {
16476
- if (!values_locales[m]) values_locales[m] = {};
16477
- values_locales[m][lang] = _values[m];
16449
+ if (_key.startsWith(this.catalogCodex + '__')) _key = _key.replace(this.catalogCodex + '__', '');
16450
+ switch (_key) {
16451
+ case 'BUNDLE_RULES':
16452
+ this.catalogArticle.bundleRules = JSON.parse(prop.Value);
16453
+ break;
16454
+ case 'HEIGHTGRIDUSED':
16455
+ this.catalogArticle.heightGridUsed = Number(prop.Value);
16456
+ break;
16457
+ case 'HEIGHTGRIDBELOW':
16458
+ this.catalogArticle.heightGridBelow = Number(prop.Value);
16459
+ break;
16460
+ case 'HEIGHTGRIDABOVE':
16461
+ this.catalogArticle.heightGridAbove = Number(prop.Value);
16462
+ break;
16463
+ case 'OVERWRITE_PARENT_WIDTH':
16464
+ this.catalogArticle.overwriteParentWidth = prop.Value;
16465
+ break;
16466
+ case 'OVERWRITE_PARENT_HEIGHT':
16467
+ this.catalogArticle.overwriteParentHeight = prop.Value;
16468
+ break;
16469
+ case 'OVERWRITE_PARENT_DEPTH':
16470
+ this.catalogArticle.overwriteParentDepth = prop.Value;
16471
+ break;
16472
+ case 'DO_NOT_DEL_ACC_IF_NOT_DOCKED':
16473
+ this.catalogArticle.doNotDelAccIfNotDocked = prop.Value;
16474
+ break;
16475
+ case 'HEIGHT_HAS_PRICE':
16476
+ this.catalogArticle.heightHasPrice = prop.Value;
16477
+ break;
16478
+ case 'DEPTH_HAS_PRICE':
16479
+ this.catalogArticle.depthHasPrice = prop.Value;
16480
+ break;
16481
+ case 'WIDTH_HAS_PRICE':
16482
+ this.catalogArticle.widthHasPrice = prop.Value;
16483
+ break;
16484
+ case 'BASIC_UNIT_PRICE':
16485
+ this.catalogArticle.basicUnitPrice = Number(prop.Value);
16486
+ break;
16487
+ case 'INVALID_ACCESSORIES':
16488
+ this.catalogArticle.invalidAccessoires = prop.Value.split(',');
16489
+ break;
16490
+ case 'ON_CONFIG_OPTION':
16491
+ this.catalogArticle.onConfigOption = prop.Value;
16492
+ break;
16493
+ case 'ON_SET_CONFIG_OPTION':
16494
+ this.catalogArticle.onSetConfigOtpion = prop.Value;
16495
+ break;
16496
+ case 'ORDER_POSNR':
16497
+ this.catalogArticle.orderPosNr = prop.Value;
16498
+ break;
16499
+ case 'HIDE_IN_PLANNERSTEP':
16500
+ this.catalogArticle.hideInPlannerStep = !!prop.Value;
16501
+ break;
16502
+ case 'MAX_PLANNING_COUNT':
16503
+ this.catalogArticle.maxPlanningCount = Number(prop.Value);
16504
+ break;
16505
+ case 'CONTENT_ITEM':
16506
+ this.catalogArticle.contentItemId = prop.Value;
16507
+ break;
16508
+ case 'GROUP_CONTENT_ITEM':
16509
+ this.catalogArticle.groupContentItemId = prop.Value;
16510
+ break;
16511
+ case 'HAS3D':
16512
+ this.catalogArticle.isVisualized = prop.Value;
16513
+ break;
16514
+ default:
16515
+ if (_key.includes('__')) break;
16516
+ var values = prop.Value.split(';');
16517
+ var values_locales = [];
16518
+ if (prop.Value_locales) {
16519
+ var _prop$Value_locales;
16520
+ var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16521
+ for (var j = 0; j < langs.length; j++) {
16522
+ var lang = langs[j];
16523
+ if (!prop.Value_locales[lang]) continue;
16524
+ var _values = prop.Value_locales[lang].split(';');
16525
+ for (var m = 0; m < _values.length; m++) {
16526
+ if (!values_locales[m]) values_locales[m] = {};
16527
+ values_locales[m][lang] = _values[m];
16528
+ }
16478
16529
  }
16479
16530
  }
16480
- }
16481
- metaDatas.push({
16482
- codex: _key,
16483
- values: values,
16484
- name: this.catalogArticle.properties[i].Name,
16485
- values_locales: values_locales
16486
- });
16531
+ metaDatas.push({
16532
+ codex: _key,
16533
+ values: values,
16534
+ name: this.catalogArticle.properties[i].Name,
16535
+ values_locales: values_locales
16536
+ });
16537
+ break;
16487
16538
  }
16488
16539
  }
16489
16540
  this.catalogArticle.metaData = metaDatas;
@@ -17859,7 +17910,9 @@ var OptionCatalogData = /*#__PURE__*/function () {
17859
17910
  for (var i = 0; i < ((_this$opt$property = this.opt.property) === null || _this$opt$property === void 0 ? void 0 : _this$opt$property.length); i++) {
17860
17911
  var _this$opt$property;
17861
17912
  var prop = this.opt.property[i];
17862
- switch (prop.Codex) {
17913
+ var key = prop.Codex;
17914
+ if (key.startsWith(catalogData.catalogCodex + '__')) key = key.replace(catalogData.catalogCodex + '__', '');
17915
+ switch (key) {
17863
17916
  case 'INFO_URL':
17864
17917
  this.opt.url = prop.Value;
17865
17918
  break;
@@ -18132,8 +18185,8 @@ var OptionCatalogData = /*#__PURE__*/function () {
18132
18185
  }]);
18133
18186
  }();
18134
18187
 
18135
- 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; }
18136
- 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; }
18188
+ 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; }
18189
+ 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; }
18137
18190
  var LOG$f = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
18138
18191
 
18139
18192
  /*
@@ -18151,7 +18204,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18151
18204
  _defineProperty(this, "catalogPlannerArticles", {});
18152
18205
  //Dictionary
18153
18206
  _defineProperty(this, "origProperties", []);
18154
- // private catalogPlannerArticlesView: CatalogPlannerArticleViewDataType[]; //array von CatalogPlannerArticleViewDataType
18207
+ _defineProperty(this, "variantsPriceHashObj", {});
18155
18208
  _defineProperty(this, "plannerPaletteViewInfo", void 0);
18156
18209
  _defineProperty(this, "_api", void 0);
18157
18210
  this._api = api;
@@ -18306,6 +18359,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18306
18359
  usePosCountValue: false,
18307
18360
  // old tag
18308
18361
  useDecisionPosCountValue: false,
18362
+ ignoreIsDefinedCheck: false,
18363
+ // if true, on summary click does not check and show the dialob that some articles have options that were not visited
18309
18364
  useShelfPlannerRTV: false,
18310
18365
  notificationsRules: [{
18311
18366
  rules: [{
@@ -18415,40 +18470,43 @@ var DivaCatalogData = /*#__PURE__*/function () {
18415
18470
  var diva3DRenderingIsSet = false;
18416
18471
  properties.forEach(function (item, index) {
18417
18472
  //3D Allgemein
18418
- if (item.Codex == 'DIVA3D_ROOM') {
18473
+
18474
+ var key = item.Codex;
18475
+ if (key.startsWith(_this.catalogCodex + '__')) key = key.replace(_this.catalogCodex + '__', '');
18476
+ if (key == 'DIVA3D_ROOM') {
18419
18477
  _this.catalogData.diva3dRoom = item.Value;
18420
18478
  if (_this.catalogData.diva3dRoom == 'raumatlantis') _this.catalogData.diva3dRoom = 'weissraumatlantis';
18421
- } else if (item.Codex == 'DIVA3D_RENDERING') {
18479
+ } else if (key == 'DIVA3D_RENDERING') {
18422
18480
  //Ist Unity Rendering von Catalogeinstellungen abhängig?
18423
18481
  diva3DRenderingIsSet = item.Value == '1' || item.Value.toLowerCase() == 'true';
18424
18482
  if (_this.catalogData.diva3dShowRenderingByCatalogData) {
18425
18483
  _this.catalogData.has3dModels = _this.catalogData.has3dModels && diva3DRenderingIsSet;
18426
18484
  }
18427
- } else if (item.Codex == 'DIVA3D_AR_READY') {
18485
+ } else if (key == 'DIVA3D_AR_READY') {
18428
18486
  _this.catalogData.divaArReady = !!item.Value;
18429
- } else if (item.Codex == 'DIVA3D_AR_FORCERTV') {
18487
+ } else if (key == 'DIVA3D_AR_FORCERTV') {
18430
18488
  _this.catalogData.divaForceRTV = !!item.Value;
18431
- } else if (item.Codex == 'HEADER_DIMENSION_IDS') {
18489
+ } else if (key == 'HEADER_DIMENSION_IDS') {
18432
18490
  _this.catalogData.headerDimensionIds = item.Value.split(';');
18433
- } else if (item.Codex == 'DONTCALCBASEPRICE') {
18491
+ } else if (key == 'DONTCALCBASEPRICE') {
18434
18492
  _this.catalogData.dontShowBasePrice = item.Value == '1';
18435
- } else if (item.Codex == 'DIVA3D_STATIC_BG_IMAGE_ROOMLIST') {
18493
+ } else if (key == 'DIVA3D_STATIC_BG_IMAGE_ROOMLIST') {
18436
18494
  _this.catalogData.roomList3DStaticBGImage.set('3D_STATBG_ROOMLIST', item.Value.split(';'));
18437
- } else if (item.Codex.startsWith('3D_STATBG_ROOMLIST')) {
18495
+ } else if (key.startsWith('3D_STATBG_ROOMLIST')) {
18438
18496
  // item.Value =
18439
18497
  // "weissraum_LUECK;backgroundimgroom_lueck_modern;backgroundimgroom_lueck_romantic;backgroundimgroom_lueck_loft;backgroundimgroom_lueck_night";
18440
18498
  _this.catalogData.roomList3DStaticBGImage.set(item.Codex, item.Value.split(';'));
18441
- } else if (item.Codex.startsWith('3D_STANDARD_WHITEROOM')) {
18499
+ } else if (key.startsWith('3D_STANDARD_WHITEROOM')) {
18442
18500
  _this.catalogData.diva3dStandardWhiteroom = item.Value;
18443
- } else if (item.Codex == '3D_COMPATIBLE_WITH_IMAGE_CACHE') {
18501
+ } else if (key == '3D_COMPATIBLE_WITH_IMAGE_CACHE') {
18444
18502
  _this.catalogData.diva3dCompatibleWithImageCache = item.Value == '1';
18445
- } else if (item.Codex == 'ENABLE_DO_SHOW_3DDIMENSIONS') {
18503
+ } else if (key == 'ENABLE_DO_SHOW_3DDIMENSIONS') {
18446
18504
  _this.catalogData.doShow3DDimensionLines = item.Value == '1' || item.Value.toLowerCase() == 'true';
18447
- } else if (item.Codex == 'IS_IDM3D_CAT') {
18505
+ } else if (key == 'IS_IDM3D_CAT') {
18448
18506
  _this.catalogData.isIDM3DCat = item.Value == '1' || item.Value.toLowerCase() == 'true';
18449
- } else if (item.Codex == 'IDM3D_CAT_CODEX') {
18507
+ } else if (key == 'IDM3D_CAT_CODEX') {
18450
18508
  _this.catalogData.IDM3DCatCodex = item.Value;
18451
- } else if (item.Codex.startsWith('DIVA3D_IMAGE')) {
18509
+ } else if (key.startsWith('DIVA3D_IMAGE')) {
18452
18510
  //this.Value = "ON.ZUBEHOER_KORPUS1;ON.ZUBEHOER_KORPUS2;ON.ZUBEHOER_KORPUS3:HIDEOPTIONS.FAF;PANEEL;ACP:VIEWPOINTNAME.START_RECHTS";
18453
18511
  //Diese Regel gilt für Optionen ZUBEHOER_KORPUS1, ZUBEHOER_KORPUS2 und ZUBEHOER_KORPUS3
18454
18512
 
@@ -18514,145 +18572,147 @@ var DivaCatalogData = /*#__PURE__*/function () {
18514
18572
  //hier findest du die richtigen option Codexe this.options
18515
18573
  }
18516
18574
  //Planner Themen
18517
- else if (item.Codex == 'DIVA3D_PLANER_DIGITS') {
18575
+ else if (key == 'DIVA3D_PLANER_DIGITS') {
18518
18576
  _this.catalogData.divaPlanerDigits = Number(item.Value);
18519
- } else if (item.Codex == 'DIVA3D_PLANER_SHOW_ARTICLE_SVG') {
18577
+ } else if (key == 'DIVA3D_PLANER_SHOW_ARTICLE_SVG') {
18520
18578
  _this.catalogData.diva3dPlanerShowArticleAsSvg = item.Value == '1';
18521
- } else if (item.Codex == 'SHOWTYPENRINPLANNER') {
18579
+ } else if (key == 'SHOWTYPENRINPLANNER') {
18522
18580
  _this.catalogData.showTypeNrInPlanner = item.Value == '1';
18523
- } else if (item.Codex == 'STARTFILTERPARAMS') {
18581
+ } else if (key == 'STARTFILTERPARAMS') {
18524
18582
  _this.catalogData.startFilterParams = String(item.Value);
18525
- } else if (item.Codex == 'STARTHIDEARTICLES') {
18583
+ } else if (key == 'STARTHIDEARTICLES') {
18526
18584
  _this.catalogData.startHideArticles = item.Value.split(';');
18527
- } else if (item.Codex == 'USEGLOBALSVGSCALE') {
18585
+ } else if (key == 'USEGLOBALSVGSCALE') {
18528
18586
  _this.catalogData.useGlobalSVGScale = item.Value == '1';
18529
- } else if (item.Codex == 'USEBOXPLANNER') {
18587
+ } else if (key == 'USEBOXPLANNER') {
18530
18588
  _this.catalogData.useBoxPlanner = item.Value == '1';
18531
- } else if (item.Codex == 'START_PLANNER_ARTICLE') {
18589
+ } else if (key == 'START_PLANNER_ARTICLE') {
18532
18590
  _this.catalogData.startPlannerArticle = item.Value;
18533
- } else if (item.Codex == 'ACCESSOIRE_STEP_AS_PLANNER') {
18591
+ } else if (key == 'ACCESSOIRE_STEP_AS_PLANNER') {
18534
18592
  _this.catalogData.accessorieStepAsPlanner = item.Value == '1';
18535
- } else if (item.Codex == 'DONT_SAVE_ALTERNATIVERENDERINGS') {
18593
+ } else if (key == 'DONT_SAVE_ALTERNATIVERENDERINGS') {
18536
18594
  _this.catalogData.dontSaveAlternativeRenderings = item.Value == '1';
18537
- } else if (item.Codex == 'SHOW_ALL_ITEMS_IN_PLANNER') {
18595
+ } else if (key == 'SHOW_ALL_ITEMS_IN_PLANNER') {
18538
18596
  _this.catalogData.showAllItemsInPlanner = item.Value == '1';
18539
- } else if (item.Codex == 'HIDE_AV_BUTTONS') {
18597
+ } else if (key == 'HIDE_AV_BUTTONS') {
18540
18598
  _this.catalogData.hideAVButtons = item.Value;
18541
- } else if (item.Codex == 'PLANNER_REPLACE_MODE') {
18599
+ } else if (key == 'PLANNER_REPLACE_MODE') {
18542
18600
  _this.catalogData.replaceModeActive = item.Value == '1';
18543
- } else if (item.Codex == 'HIDE_PLANNER_UI_ICONS') {
18601
+ } else if (key == 'HIDE_PLANNER_UI_ICONS') {
18544
18602
  _this.catalogData.hidePlannerUiIcons = item.Value == '1';
18545
18603
  }
18546
18604
 
18547
18605
  //Warnings
18548
- else if (item.Codex == 'HIDECONSTRUCTIONWARNING') {
18606
+ else if (key == 'HIDECONSTRUCTIONWARNING') {
18549
18607
  _this.catalogData.doCheckConstructionWarnings = item.Value == '0';
18550
- } else if (item.Codex == 'FORCECONSTRUCTIONWARNINGARTICLES') {
18608
+ } else if (key == 'FORCECONSTRUCTIONWARNINGARTICLES') {
18551
18609
  _this.catalogData.forceConstructionWarningForArticles = item.Value.split(';');
18552
- } else if (item.Codex == 'HIDECOMPLETENESSWARNING') {
18610
+ } else if (key == 'HIDECOMPLETENESSWARNING') {
18553
18611
  _this.catalogData.hideCompletenessWarning = item.Value == '1';
18554
18612
  }
18555
18613
 
18556
18614
  //DP Logik
18557
- else if (item.Codex == 'IGNORELAYERAVC') {
18615
+ else if (key == 'IGNORELAYERAVC') {
18558
18616
  _this.catalogData.ignoreLayerAVC = item.Value == '1';
18559
- } else if (item.Codex == 'IGNORELAYERAVOAVU') {
18617
+ } else if (key == 'IGNORELAYERAVOAVU') {
18560
18618
  _this.catalogData.ignoreLayerAVOAVU = item.Value == '1';
18561
- } else if (item.Codex == 'IGNORELAYERAVNAVS') {
18619
+ } else if (key == 'IGNORELAYERAVNAVS') {
18562
18620
  _this.catalogData.ignoreLayerAVNAVS = item.Value == '1';
18563
- } else if (item.Codex == 'DOCKACCONAVOONLY') {
18621
+ } else if (key == 'DOCKACCONAVOONLY') {
18564
18622
  //Accessoires können nur aufwärts verplant werden. (Für Küssnacht)
18565
18623
  _this.catalogData.dockAccOnAvoOnly = item.Value == '1';
18566
- } else if (item.Codex == 'SHOWACCONDPONLY') {
18624
+ } else if (key == 'SHOWACCONDPONLY') {
18567
18625
  //Accessoires werden nur angezeigt falls das Plus (DockingPoint) selcetiert ist. (Für Küssnacht)
18568
18626
  _this.catalogData.showAccOnDpOnly = item.Value == '1';
18569
- } else if (item.Codex == 'RECONFIG_AFTER_ARTICLE_DOCKED') {
18627
+ } else if (key == 'RECONFIG_AFTER_ARTICLE_DOCKED') {
18570
18628
  _this.catalogData.reconfigAfterArticleDocked = item.Value == '1';
18571
18629
  }
18572
18630
  //Konfiguration
18573
- else if (item.Codex == 'USEPRGASOPVARTICLENR') {
18631
+ else if (key == 'USEPRGASOPVARTICLENR') {
18574
18632
  _this.catalogData.UsePrgAsOpvArticleNr = item.Value == '1';
18575
- } else if (item.Codex == 'ARTICLECONFIGSINGLE') {
18633
+ } else if (key == 'ARTICLECONFIGSINGLE') {
18576
18634
  _this.catalogData.articleConfigSingle = item.Value == '1';
18577
- } else if (item.Codex == 'DEFAULT_GROUPS_CLOSED') {
18635
+ } else if (key == 'DEFAULT_GROUPS_CLOSED') {
18578
18636
  if (item.Value != '1' && item.Value != '0') {
18579
18637
  _this.catalogData.defaultGroupsClosed = item.Value.split(';');
18580
18638
  } else {
18581
18639
  _this.catalogData.defaultGroupsClosed = item.Value == '1';
18582
18640
  }
18583
- } else if (item.Codex == 'ARTICLECONFIGALL') {
18641
+ } else if (key == 'ARTICLECONFIGALL') {
18584
18642
  _this.catalogData.articleConfigAll = item.Value == '1';
18585
- } else if (item.Codex == 'HIDE_PRICE_GROUPS_OF_OPGS') {
18643
+ } else if (key == 'HIDE_PRICE_GROUPS_OF_OPGS') {
18586
18644
  _this.catalogData.hidePriceGroupsOfOPGs = item.Value == '1';
18587
- } else if (item.Codex == 'DONTHIDEOPTION') {
18645
+ } else if (key == 'DONTHIDEOPTION') {
18588
18646
  _this.catalogData.dontHideOption = String(item.Value).split(',');
18589
- } else if (item.Codex == 'SHOWACCESSOIREONLASTTAB') {
18647
+ } else if (key == 'SHOWACCESSOIREONLASTTAB') {
18590
18648
  _this.catalogData.showAccessioreOnLastTab = item.Value == '1';
18591
- } else if (item.Codex == 'FORCE_CONFIG_ALL_ACCESSOIRES') {
18649
+ } else if (key == 'FORCE_CONFIG_ALL_ACCESSOIRES') {
18592
18650
  _this.catalogData.forceConfigAllAccessoires = item.Value == '1';
18593
- } else if (item.Codex == 'CONFIG_ACCESSOIRES') {
18651
+ } else if (key == 'CONFIG_ACCESSOIRES') {
18594
18652
  _this.catalogData.configAccessoires = item.Value == '1';
18595
- } else if (item.Codex == 'CONFIG_ONLY_ACCESSOIRES') {
18653
+ } else if (key == 'CONFIG_ONLY_ACCESSOIRES') {
18596
18654
  _this.catalogData.configOnlyAccessoires = item.Value == '1';
18597
- } else if (item.Codex == 'IGNORE_ARTICLERELATIONS') {
18655
+ } else if (key == 'IGNORE_ARTICLERELATIONS') {
18598
18656
  _this.catalogData.ignoreArticleRelations = item.Value == '1';
18599
- } else if (item.Codex == 'REPAIR_VARIANT_VALUES') {
18657
+ } else if (key == 'REPAIR_VARIANT_VALUES') {
18600
18658
  var entries = item.Value.split(';;');
18601
18659
  _this.catalogData.repairVariantValues = {};
18602
18660
  for (var _i = 0; _i < entries.length; _i++) {
18603
18661
  var keyValuePair = entries[_i].split(';');
18604
18662
  _this.catalogData.repairVariantValues['OPT' + keyValuePair[0].replace(':', ':OPV')] = 'OPT' + keyValuePair[1].replace(':', ':OPV');
18605
18663
  }
18606
- } else if (item.Codex == 'DO_USE_RULEDESC_FOR_PARTLIST') {
18664
+ } else if (key == 'DO_USE_RULEDESC_FOR_PARTLIST') {
18607
18665
  _this.catalogData.doUseRuleDescForPartListArticles = item.Value == '1';
18608
- } else if (item.Codex == 'USEPOSCOUNTVALUE') {
18666
+ } else if (key == 'USEPOSCOUNTVALUE') {
18609
18667
  _this.catalogData.usePosCountValue = item.Value == '1';
18610
- } else if (item.Codex == 'USE_DECISION_POS_COUNT_VALUE') {
18668
+ } else if (key == 'USE_DECISION_POS_COUNT_VALUE') {
18611
18669
  _this.catalogData.useDecisionPosCountValue = item.Value == '1';
18612
- } else if (item.Codex == 'USE_SHELFPLANNER_RTV') {
18670
+ } else if (key == 'USE_SHELFPLANNER_RTV') {
18613
18671
  _this.catalogData.useShelfPlannerRTV = item.Value == '1';
18614
- } else if (item.Codex == 'DONT_SHOW_ACC_STEP') {
18672
+ } else if (key == 'DONT_SHOW_ACC_STEP') {
18615
18673
  _this.catalogData.dontShowAccStep = item.Value == '1';
18616
- } else if (item.Codex == 'MERGE_OPTIONS_TO_SAME_OPTION') {
18674
+ } else if (key == 'MERGE_OPTIONS_TO_SAME_OPTION') {
18617
18675
  _this.catalogData.mergeOptionsToSameOption = [];
18618
18676
  var options = item.Value.split(';');
18619
18677
  for (var _i2 = 0; _i2 < options.length; _i2++) {
18620
18678
  _this.catalogData.mergeOptionsToSameOption.push(options[_i2].split(','));
18621
18679
  }
18622
- } else if (item.Codex == 'FORCE_CONFIG_SINGLE') {
18680
+ } else if (key == 'FORCE_CONFIG_SINGLE') {
18623
18681
  _this.catalogData.forceConfigSingle = item.Value == '1';
18624
- } else if (item.Codex == 'SHOW_PRICEPREVIEW_ON_OPTIONS') {
18682
+ } else if (key == 'SHOW_PRICEPREVIEW_ON_OPTIONS') {
18625
18683
  _this.catalogData.showPricePreviewOnlyOnOptions = item.Value.split(';').map(function (option) {
18626
18684
  return 'OPT' + option;
18627
18685
  });
18628
- } else if (item.Codex == 'DOUBLE_CLICK_ON_CONFIG') {
18686
+ } else if (key == 'DOUBLE_CLICK_ON_CONFIG') {
18629
18687
  _this.catalogData.doubleClickOnConfig = item.Value == '1';
18630
- } else if (item.Codex == 'INIT_OPTIONTREE_TWICE') {
18688
+ } else if (key == 'INIT_OPTIONTREE_TWICE') {
18631
18689
  _this.catalogData.initOptionTreeTwice = item.Value == '1';
18632
- } else if (item.Codex == 'USE_TYPENR_AS_ARTICLENR_EKTEXT') {
18690
+ } else if (key == 'USE_TYPENR_AS_ARTICLENR_EKTEXT') {
18633
18691
  _this.catalogData.useTypeNrAsArticleNrEKText = item.Value == '1';
18634
- } else if (item.Codex == 'ADD_NEW_LINE_BEFOR_RULEDESC') {
18692
+ } else if (key == 'ADD_NEW_LINE_BEFOR_RULEDESC') {
18635
18693
  _this.catalogData.addNewLineBeforRuleDesc = item.Value == '1';
18636
- } else if (item.Codex == 'ONCONFIG_SINGLE_DONT_GENERALIZE') {
18694
+ } else if (key == 'ONCONFIG_SINGLE_DONT_GENERALIZE') {
18637
18695
  _this.catalogData.onConfigSingleDontGeneralize = item.Value == '1';
18638
- } else if (item.Codex == 'SUMMARY_TABGROUP_POSITION') {
18696
+ } else if (key == 'SUMMARY_TABGROUP_POSITION') {
18639
18697
  _this.catalogData.summaryTabGroupPosition = item.Value.split(';');
18640
- } else if (item.Codex == 'BUNDLE_RULES') {
18698
+ } else if (key == 'BUNDLE_RULES') {
18641
18699
  _this.catalogData.bundleRules = JSON.parse(item.Value);
18642
- } else if (item.Codex == 'NOTIFICATIONS') {
18700
+ } else if (key == 'NOTIFICATIONS') {
18643
18701
  _this.catalogData.notificationsRules = JSON.parse(item.Value);
18644
- } else if (item.Codex == 'WARNINGS') {
18702
+ } else if (key == 'WARNINGS') {
18645
18703
  _this.catalogData.warningRules = JSON.parse(item.Value);
18646
- } else if (item.Codex == 'BANNER') {
18704
+ } else if (key == 'BANNER') {
18647
18705
  _this.catalogData.bannerRules = JSON.parse(item.Value);
18648
- } else if (item.Codex == 'IGNORE_MAX_PRICE_AS_BASEPRICE') {
18706
+ } else if (key == 'IGNORE_MAX_PRICE_AS_BASEPRICE') {
18649
18707
  _this.catalogData.ignoreMaxPriceAsBP = item.Value == '1';
18650
- } else if (item.Codex == 'DONT_USE_VCODEX_FOR_BASKET') {
18708
+ } else if (key == 'DONT_USE_VCODEX_FOR_BASKET') {
18651
18709
  _this.catalogData.dontUseVCodexInBasket = item.Value == '1';
18710
+ } else if (key == 'IGNORE_ISDEFINED_CHECK') {
18711
+ _this.catalogData.ignoreIsDefinedCheck = item.Value == '1';
18652
18712
  }
18653
18713
 
18654
18714
  //HOTFIX wied später ausgebaut Philipp mus Properties in der Artikelliste ausgeben
18655
- else if (item.Codex == 'ADD_PA_ON_EDO') {
18715
+ else if (key == 'ADD_PA_ON_EDO') {
18656
18716
  var _properties$find;
18657
18717
  var thisCodex = (_properties$find = properties.find(function (item) {
18658
18718
  return item.Codex == 'ADD_PA_ON_EDO_ARTICLECODEX';
@@ -19411,6 +19471,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19411
19471
  get: function get() {
19412
19472
  return this.catalogData.useBoxPlanner;
19413
19473
  }
19474
+ }, {
19475
+ key: "ignoreIsDefinedCheck",
19476
+ get: function get() {
19477
+ return this.catalogData.ignoreIsDefinedCheck;
19478
+ }
19414
19479
  }, {
19415
19480
  key: "startPlannerArticle",
19416
19481
  get: function get() {
@@ -19688,12 +19753,24 @@ var DivaCatalogData = /*#__PURE__*/function () {
19688
19753
  }
19689
19754
  return updateMask;
19690
19755
  }()
19756
+ }, {
19757
+ key: "getVariantsPriceByHash",
19758
+ value: function getVariantsPriceByHash(hash) {
19759
+ return this.variantsPriceHashObj[hash];
19760
+ }
19761
+ }, {
19762
+ key: "setVariantsPriceByHash",
19763
+ value: function setVariantsPriceByHash(hash, data) {
19764
+ this.variantsPriceHashObj[hash] = _objectSpread$g(_objectSpread$g({}, data), {}, {
19765
+ calcTime: -1
19766
+ });
19767
+ }
19691
19768
  }]);
19692
19769
  }();
19693
19770
  var mapMask = function mapMask(mask) {
19694
19771
  var _mappedMask$catalog;
19695
19772
  if (!mask) return undefined;
19696
- var mappedMask = _objectSpread$f({}, mask);
19773
+ var mappedMask = _objectSpread$g({}, mask);
19697
19774
  var mapProperties = function mapProperties(props) {
19698
19775
  if (Array.isArray(props)) return props;
19699
19776
  var mappedProps = [];
@@ -19856,6 +19933,8 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
19856
19933
  }();
19857
19934
  var catalogHandlerInstance = new DivaCatalogHandler();
19858
19935
 
19936
+ 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; }
19937
+ 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; }
19859
19938
  var ArticleOptionStateData = /*#__PURE__*/function () {
19860
19939
  function ArticleOptionStateData(option, defaultOPV, useIsOptionDefinedWarning) {
19861
19940
  _classCallCheck(this, ArticleOptionStateData);
@@ -19991,9 +20070,9 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
19991
20070
  key: "multiselectValCodex",
19992
20071
  get: function get() {
19993
20072
  var _this$multiSelects$ma, _this$multiSelects2;
19994
- return (_this$multiSelects$ma = (_this$multiSelects2 = this.multiSelects) === null || _this$multiSelects2 === void 0 ? void 0 : _this$multiSelects2.map(function (v) {
20073
+ return [this.valCodex].concat(_toConsumableArray((_this$multiSelects$ma = (_this$multiSelects2 = this.multiSelects) === null || _this$multiSelects2 === void 0 ? void 0 : _this$multiSelects2.map(function (v) {
19995
20074
  return v.codex;
19996
- })) !== null && _this$multiSelects$ma !== void 0 ? _this$multiSelects$ma : [];
20075
+ })) !== null && _this$multiSelects$ma !== void 0 ? _this$multiSelects$ma : []));
19997
20076
  }
19998
20077
  }, {
19999
20078
  key: "measureValue",
@@ -20488,6 +20567,18 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20488
20567
  set: function set(val) {
20489
20568
  this.articleOptionState.isDifferentOption = val;
20490
20569
  }
20570
+ }, {
20571
+ key: "cloneOptionState",
20572
+ value: function cloneOptionState() {
20573
+ var clonedOps = new ArticleOptionStateData(this.option);
20574
+ clonedOps.articleOptionState = _objectSpread$f(_objectSpread$f({}, this.articleOptionState), {}, {
20575
+ imageOPVs: _objectSpread$f({}, this.articleOptionState.imageOPVs),
20576
+ visibleOPVs: _objectSpread$f({}, this.articleOptionState.visibleOPVs),
20577
+ visibleOPVsImages: _objectSpread$f({}, this.articleOptionState.visibleOPVsImages),
20578
+ favoriteOPVs: _objectSpread$f({}, this.articleOptionState.favoriteOPVs)
20579
+ });
20580
+ return clonedOps;
20581
+ }
20491
20582
  }]);
20492
20583
  }();
20493
20584
 
@@ -20528,7 +20619,7 @@ var DivaArticle = /*#__PURE__*/function () {
20528
20619
  quantity: initParams.quantity ? initParams.quantity : initParams.Quantity ? initParams.Quantity : 1,
20529
20620
  actDescription: initParams.actDescription,
20530
20621
  actDescription_locales: initParams.actDescription_locales,
20531
- price: initParams.price ? initParams.price : articleData.articlePrice ? articleData.articlePrice : 0,
20622
+ price: initParams.price !== undefined ? initParams.price : articleData.articlePrice ? articleData.articlePrice : 0,
20532
20623
  relatedToBasketId: initParams.relatedToBasketId ? initParams.relatedToBasketId : initParams.relatedToBasketID,
20533
20624
  isPartlistArticle: initParams.isPartlistArticle ? initParams.isPartlistArticle : false,
20534
20625
  relatedToSubItem: initParams.relatedToSubItem,
@@ -21203,6 +21294,15 @@ var DivaArticle = /*#__PURE__*/function () {
21203
21294
  var _this$partListParentA6, _this$partListParentA7, _this$partListParentA8, _this$partListParentA9, _this$accessoireParen3, _this$accessoireParen4, _this$accessoireParen5, _this$accessoireParen6;
21204
21295
  return _objectSpread$e(_objectSpread$e(_objectSpread$e(_objectSpread$e({}, (_this$partListParentA6 = (_this$partListParentA7 = this.partListParentArticle) === null || _this$partListParentA7 === void 0 ? void 0 : _this$partListParentA7.articleOptionStatesData) !== null && _this$partListParentA6 !== void 0 ? _this$partListParentA6 : {}), (_this$partListParentA8 = (_this$partListParentA9 = this.partListParentArticle) === null || _this$partListParentA9 === void 0 ? void 0 : _this$partListParentA9.getReqursiveArticleOptionStates()) !== null && _this$partListParentA8 !== void 0 ? _this$partListParentA8 : {}), (_this$accessoireParen3 = (_this$accessoireParen4 = this.accessoireParentArticle) === null || _this$accessoireParen4 === void 0 ? void 0 : _this$accessoireParen4.articleOptionStatesData) !== null && _this$accessoireParen3 !== void 0 ? _this$accessoireParen3 : {}), (_this$accessoireParen5 = (_this$accessoireParen6 = this.accessoireParentArticle) === null || _this$accessoireParen6 === void 0 ? void 0 : _this$accessoireParen6.getReqursiveArticleOptionStates()) !== null && _this$accessoireParen5 !== void 0 ? _this$accessoireParen5 : {});
21205
21296
  }
21297
+ }, {
21298
+ key: "getAllArticleOptionsStates",
21299
+ value: function getAllArticleOptionsStates() {
21300
+ var opss = _objectSpread$e({}, this.articleOptionStates);
21301
+ for (var key in this.partlistArticles) {
21302
+ opss = _objectSpread$e(_objectSpread$e({}, opss), this.partlistArticles[key].getAllArticleOptionsStates());
21303
+ }
21304
+ return opss;
21305
+ }
21206
21306
  }, {
21207
21307
  key: "clearArticleOptionStates",
21208
21308
  value: function clearArticleOptionStates() {
@@ -21838,6 +21938,22 @@ var DivaArticle = /*#__PURE__*/function () {
21838
21938
  }
21839
21939
  return ret;
21840
21940
  }
21941
+ }, {
21942
+ key: "VisibleVariantValues",
21943
+ get: function get() {
21944
+ var ret = {};
21945
+ var opss = this.getAllArticleOptionsStates();
21946
+ for (var key in opss) {
21947
+ var myOPS = opss[key];
21948
+ if (myOPS.isDoShow && myOPS.valCodex && !myOPS.isInvisible && !['I', 'U'].includes(myOPS.headerPosVariationType)) {
21949
+ ret[myOPS.optionCodex] = myOPS.valCodex;
21950
+ if (myOPS.freeText) {
21951
+ ret[myOPS.optionCodex + '_val'] = myOPS.freeText;
21952
+ }
21953
+ }
21954
+ }
21955
+ return ret;
21956
+ }
21841
21957
  }, {
21842
21958
  key: "VariantValuesWithoutFreetext",
21843
21959
  get: function get() {
@@ -21965,6 +22081,7 @@ var DivaArticle = /*#__PURE__*/function () {
21965
22081
  }, {
21966
22082
  key: "areAllOptionsDefined",
21967
22083
  get: function get() {
22084
+ if (this.CatalogData.ignoreIsDefinedCheck) return true;
21968
22085
  for (var key in this.articleOptionStates) {
21969
22086
  if (!this.articleOptionStates[key].isDefined) {
21970
22087
  return false;
@@ -22694,7 +22811,12 @@ var DivaArticle = /*#__PURE__*/function () {
22694
22811
  //Das hier wird Doppelt initialisiert und am ende stehen bei den AVL /AVR Filter die Filter Doppelt drinnen
22695
22812
  if (myArtOPS && myArtOPS.isDoShow) {
22696
22813
  if (myItem) {
22697
- if (myItem.subRetailArticleNr) this.subRetailArticleNr = myItem.subRetailArticleNr;
22814
+ if (myItem.subRetailArticleNr) {
22815
+ if (this.isPartListArticle) {
22816
+ LOG$d.error(new DivaError('SubRetailArticleNr is not allowed for PartListArticles'));
22817
+ }
22818
+ this.subRetailArticleNr = myItem.subRetailArticleNr;
22819
+ }
22698
22820
  if (myItem.subRetailTypeNr) this.subRetailTypeNr = myItem.subRetailTypeNr;
22699
22821
  }
22700
22822
  this.updateIDMSpecificFeature(myArtOPS);
@@ -23691,7 +23813,7 @@ var DivaArticle = /*#__PURE__*/function () {
23691
23813
  break;
23692
23814
  }
23693
23815
  _context.next = 4;
23694
- return import('./ShelfPlanner-35be475a.js');
23816
+ return import('./ShelfPlanner-5438eddb.js');
23695
23817
  case 4:
23696
23818
  _yield$import = _context.sent;
23697
23819
  ShelfPlanner = _yield$import["default"];
@@ -24084,7 +24206,7 @@ var DivaArticle = /*#__PURE__*/function () {
24084
24206
  }
24085
24207
  }
24086
24208
  for (var _key3 in myValues) {
24087
- var ops = this.articleOptionStates[_key3];
24209
+ var ops = this.getArticleOptionState(_key3);
24088
24210
  var opv = ops === null || ops === void 0 ? void 0 : ops.visibleOptionValues[myValues[_key3]];
24089
24211
  if (opv) {
24090
24212
  var value = opv.setConfig;
@@ -24116,7 +24238,7 @@ var DivaArticle = /*#__PURE__*/function () {
24116
24238
  var _ops7 = this.getArticleOptionState(_key4);
24117
24239
  if (_ops7) {
24118
24240
  validValues[_key4] = myValues[_key4];
24119
- } else if (_key4.endsWith('_val') && this.articleOptionStates[_key4.replace(/_val/g, '')]) {
24241
+ } else if (_key4.endsWith('_val') && this.getArticleOptionState(_key4.replace(/_val/g, ''))) {
24120
24242
  validValues[_key4] = myValues[_key4];
24121
24243
  } else {
24122
24244
  for (var _opt in this.articleOptionStates) {
@@ -24608,6 +24730,19 @@ var DivaArticle = /*#__PURE__*/function () {
24608
24730
  get: function get() {
24609
24731
  return this.article.catalogArticle.shelfHeightAbove;
24610
24732
  }
24733
+ }, {
24734
+ key: "cloneArticle",
24735
+ value: function cloneArticle(set) {
24736
+ var clonedArticle = new DivaArticle(set, this.basketId, _objectSpread$e({}, this.article), this.article.catalogArticle, set.CatalogData);
24737
+ for (var key in this.articleOptionStates) {
24738
+ clonedArticle.articleOptionStates[key] = this.articleOptionStates[key].cloneOptionState();
24739
+ }
24740
+ clonedArticle.article.partlistArticles = {};
24741
+ for (var _key6 in this.partlistArticles) {
24742
+ clonedArticle.article.partlistArticles[_key6] = this.partlistArticles[_key6].cloneArticle(set);
24743
+ }
24744
+ return clonedArticle;
24745
+ }
24611
24746
  }]);
24612
24747
  }();
24613
24748
 
@@ -24940,33 +25075,37 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24940
25075
  _context6.next = 42;
24941
25076
  break;
24942
25077
  case 53:
25078
+ if (!(from !== 'calcVariant')) {
25079
+ _context6.next = 65;
25080
+ break;
25081
+ }
24943
25082
  _i = 0;
24944
- case 54:
25083
+ case 55:
24945
25084
  if (!(_i < targetArticlesToUpdate.length)) {
24946
- _context6.next = 64;
25085
+ _context6.next = 65;
24947
25086
  break;
24948
25087
  }
24949
25088
  _actArticle2 = articles[targetArticlesToUpdate[_i]];
24950
25089
  if (!(_actArticle2.CatalogData.doubleClickOnConfig || _actArticle2.hasType1Dependencies)) {
24951
- _context6.next = 61;
25090
+ _context6.next = 62;
24952
25091
  break;
24953
25092
  }
24954
- _context6.next = 59;
24955
- return this.updateCfgValues(_actArticle2, valuesArray[_i], {}, undefined, undefined, from == 'calcVariant');
24956
- case 59:
24957
- _context6.next = 61;
24958
- return this.updateCfgValues(_actArticle2, valuesArray[_i], {}, undefined, undefined, from == 'calcVariant');
24959
- case 61:
25093
+ _context6.next = 60;
25094
+ return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
25095
+ case 60:
25096
+ _context6.next = 62;
25097
+ return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
25098
+ case 62:
24960
25099
  _i++;
24961
- _context6.next = 54;
25100
+ _context6.next = 55;
24962
25101
  break;
24963
- case 64:
25102
+ case 65:
24964
25103
  return _context6.abrupt("return", {
24965
25104
  newEDOExtraArticles: newEDOExtraArticles,
24966
25105
  targetArticlesToUpdate: targetArticlesToUpdate,
24967
25106
  partlistArticlesToLoad: partlistArticlesToLoad
24968
25107
  });
24969
- case 65:
25108
+ case 66:
24970
25109
  case "end":
24971
25110
  return _context6.stop();
24972
25111
  }
@@ -25288,12 +25427,14 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25288
25427
  //danach Preise berechnen
25289
25428
  if (!dontCalcPrice) {
25290
25429
  article.calcConfigPrice(maxPriceOfGroupCodex, 2);
25291
- //evtl articlebild berechnen
25292
- article.updateArticleImage();
25293
- //evtl SVG tausch berechnen
25294
- article.updateArticleSVG();
25295
- //evtl opv images mit rules updaten
25296
- article.updateOPVImages();
25430
+ if (!calcVariantPrice) {
25431
+ //evtl articlebild berechnen
25432
+ article.updateArticleImage();
25433
+ //evtl SVG tausch berechnen
25434
+ article.updateArticleSVG();
25435
+ //evtl opv images mit rules updaten
25436
+ article.updateOPVImages();
25437
+ }
25297
25438
  }
25298
25439
  return _context10.abrupt("return", partlistArticlesToLoad);
25299
25440
  case 18:
@@ -26669,14 +26810,16 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26669
26810
  }
26670
26811
  }, {
26671
26812
  key: "getCurPaletteType",
26672
- value: function getCurPaletteType(set, configStepKey, articles) {
26813
+ value: function getCurPaletteType(set, configStepKey) {
26814
+ var _set$api$ReturnToFrom;
26673
26815
  var step = this.getAllByKey(configStepKey);
26674
26816
  var configStep = step === null || step === void 0 ? void 0 : step.configStep;
26675
26817
  var optionStep = step === null || step === void 0 ? void 0 : step.optionStep;
26676
26818
  var paletteType = 'SMALL';
26677
26819
  if (configStep && optionStep) {
26678
- var optionState = articles[configStep.targetArticles[0]][configStep.option];
26679
- if (configStep.option == 'OPTVINYL' || configStep.option == 'OPTVINYL_1' || configStep.option == 'OPTFABRIC' || configStep.option == 'OPTBE' || configStep.option == 'OPTBE_AUSSEN' || configStep.option == 'OPTBE_INNEN' || configStep.option == 'OPTBE_PANEELE' || configStep.option == 'OPTMATRATZE_BE' || configStep.option == 'OPTBE_UG' || configStep.option == 'OPTBEZUG' || configStep.option == 'OPTKO' || configStep.option == 'OPTFR' || configStep.option == 'OPTNI' || configStep.option == 'OPTUF_FA' || configStep.option == 'OPTBE_NETZ' || configStep.option == 'OPTBE_AL' || configStep.option == 'OPTKISSEN_BE' || configStep.option == 'OPTKP_BE' || configStep.option == 'OPTARM_BE' || configStep.option == 'OPTBE_KT' || configStep.option == 'OPT3' || configStep.option == 'OPT5' || configStep.option == 'OPTBE_KNOEPFE' || configStep.option == 'OPTSK_FARBE' || configStep.option == 'OPTBANDFARBE' || configStep.option == 'OPTBE_BOX' || configStep.option == 'OPTMA_AF_BE' || configStep.option == 'OPTTOPPER_BE' || optionState.option.hasOPG && optionState.hasImages || optionStep.mergesToOPG) {
26820
+ var _set$getDivaArticles$;
26821
+ var optionState = (_set$getDivaArticles$ = set.getDivaArticles()[configStep.targetArticles[0]]) === null || _set$getDivaArticles$ === void 0 ? void 0 : _set$getDivaArticles$.getArticleOptionState(configStep.option);
26822
+ if (configStep.option == 'OPTVINYL' || configStep.option == 'OPTVINYL_1' || configStep.option == 'OPTFABRIC' || configStep.option == 'OPTBE' || configStep.option == 'OPTBE_AUSSEN' || configStep.option == 'OPTBE_INNEN' || configStep.option == 'OPTBE_PANEELE' || configStep.option == 'OPTMATRATZE_BE' || configStep.option == 'OPTBE_UG' || configStep.option == 'OPTBEZUG' || configStep.option == 'OPTKO' || configStep.option == 'OPTFR' || configStep.option == 'OPTNI' || configStep.option == 'OPTUF_FA' || configStep.option == 'OPTBE_NETZ' || configStep.option == 'OPTBE_AL' || configStep.option == 'OPTKISSEN_BE' || configStep.option == 'OPTKP_BE' || configStep.option == 'OPTARM_BE' || configStep.option == 'OPTBE_KT' || configStep.option == 'OPT3' || configStep.option == 'OPT5' || configStep.option == 'OPTBE_KNOEPFE' || configStep.option == 'OPTSK_FARBE' || configStep.option == 'OPTBANDFARBE' || configStep.option == 'OPTBE_BOX' || configStep.option == 'OPTMA_AF_BE' || configStep.option == 'OPTTOPPER_BE' || optionState !== null && optionState !== void 0 && optionState.option.hasOPG && optionState.hasImages || optionStep.mergesToOPG) {
26680
26823
  paletteType = 'GAL';
26681
26824
  }
26682
26825
  if (configStep.option == 'OPTBA' && !optionState.option.layout) {
@@ -26703,11 +26846,14 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26703
26846
  paletteType = 'GAL';
26704
26847
  }
26705
26848
  }
26849
+ if ((_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('FAVORITS')) if (paletteType == 'DROPDOWN_IMAGE' || paletteType == 'DROPDOWN_TEXT' || paletteType == 'TOGGLE_NAME' || paletteType == 'TOGGLE') {
26850
+ paletteType = 'SMALL';
26851
+ }
26706
26852
  return paletteType;
26707
26853
  }
26708
26854
  }, {
26709
26855
  key: "getStepInfo",
26710
- value: function getStepInfo(configStepKey, optionStatesOfArticle) {
26856
+ value: function getStepInfo(configStepKey) {
26711
26857
  var allSteps = this.getAllByKey(configStepKey);
26712
26858
  if (allSteps !== null && allSteps !== void 0 && allSteps.optionStep) ;
26713
26859
  if (allSteps !== null && allSteps !== void 0 && allSteps.configStep.warning) return allSteps.configStep.warning;
@@ -26739,7 +26885,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26739
26885
  }
26740
26886
  }, {
26741
26887
  key: "getCurFilterType",
26742
- value: function getCurFilterType(configStepKey, articles, confgiItems) {
26888
+ value: function getCurFilterType(configStepKey, confgiItems) {
26743
26889
  var configStep = this.getConfigStepByKey(configStepKey);
26744
26890
  var filterType = '';
26745
26891
  if (configStep) {
@@ -27030,7 +27176,6 @@ var DivaSet = /*#__PURE__*/function () {
27030
27176
  _defineProperty(this, "setId", void 0);
27031
27177
  _defineProperty(this, "_isActSet", false);
27032
27178
  _defineProperty(this, "setData", void 0);
27033
- _defineProperty(this, "_onlyCalcVariants", void 0);
27034
27179
  _defineProperty(this, "divaArticles", void 0);
27035
27180
  //Schlüssel ist basketId
27036
27181
  _defineProperty(this, "configSingleData", void 0);
@@ -27046,7 +27191,6 @@ var DivaSet = /*#__PURE__*/function () {
27046
27191
  _defineProperty(this, "doorPlannerHandler", void 0);
27047
27192
  _defineProperty(this, "matchingProduct", void 0);
27048
27193
  _defineProperty(this, "matchingOrigProduct", void 0);
27049
- _defineProperty(this, "_dontCalcPricePreviewDueToPerformanceIssues", false);
27050
27194
  _defineProperty(this, "_supplierColors", void 0);
27051
27195
  /**Favorits state */
27052
27196
  _defineProperty(this, "_handlelingCurrentFavorites", false);
@@ -27821,16 +27965,6 @@ var DivaSet = /*#__PURE__*/function () {
27821
27965
  value: function addArticle(newArticle) {
27822
27966
  this.divaArticles[newArticle.basketId] = newArticle;
27823
27967
  }
27824
- }, {
27825
- key: "getOptionStatesOfArticles",
27826
- value: function getOptionStatesOfArticles() {
27827
- var articles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.divaArticles;
27828
- var ret = {};
27829
- for (var key in articles) {
27830
- ret[key] = articles[key].articleOptionStates;
27831
- }
27832
- return ret;
27833
- }
27834
27968
  }, {
27835
27969
  key: "sortDivaArticlesByArticlePosNr",
27836
27970
  value: function sortDivaArticlesByArticlePosNr() {
@@ -28214,7 +28348,7 @@ var DivaSet = /*#__PURE__*/function () {
28214
28348
  break;
28215
28349
  }
28216
28350
  _context4.next = 3;
28217
- return import('./DoorPlanner-f77fb147.js');
28351
+ return import('./DoorPlanner-96d07576.js');
28218
28352
  case 3:
28219
28353
  _yield$import = _context4.sent;
28220
28354
  DoorPlanner = _yield$import["default"];
@@ -28279,14 +28413,6 @@ var DivaSet = /*#__PURE__*/function () {
28279
28413
  get: function get() {
28280
28414
  return this.setState;
28281
28415
  }
28282
- }, {
28283
- key: "onlyCalcVariants",
28284
- get: function get() {
28285
- return this._onlyCalcVariants;
28286
- },
28287
- set: function set(val) {
28288
- this._onlyCalcVariants = val;
28289
- }
28290
28416
 
28291
28417
  /**
28292
28418
  *
@@ -28337,14 +28463,6 @@ var DivaSet = /*#__PURE__*/function () {
28337
28463
  }
28338
28464
  return false;
28339
28465
  }
28340
- }, {
28341
- key: "dontCalcPricePreviewDueToPerformanceIssues",
28342
- get: function get() {
28343
- return this._dontCalcPricePreviewDueToPerformanceIssues;
28344
- },
28345
- set: function set(val) {
28346
- this._dontCalcPricePreviewDueToPerformanceIssues = val;
28347
- }
28348
28466
  }, {
28349
28467
  key: "plannerHandler",
28350
28468
  get: function get() {
@@ -28400,6 +28518,20 @@ var DivaSet = /*#__PURE__*/function () {
28400
28518
  var _this$ViewConfig2;
28401
28519
  return !!(this.catalogData.configAccessoires || this.catalogData.configOnlyAccessoires || (_this$ViewConfig2 = this.ViewConfig) !== null && _this$ViewConfig2 !== void 0 && _this$ViewConfig2.selectAccessoiresWithToggle);
28402
28520
  }
28521
+ }, {
28522
+ key: "cloneSet",
28523
+ value: function cloneSet() {
28524
+ var clonedSet = new DivaSet(this.CatalogData, this.setId, {}, _objectSpread$c({}, this.setState));
28525
+ clonedSet.setData = this.setData;
28526
+ clonedSet.configSingle = this.configSingle;
28527
+ var articles = this.getDivaArticles();
28528
+ //if boxplanner needs to be working, the planner needs to be cloned too
28529
+ //this.setState.plannerHandler = this.setState.plannerHandler.clonePlannerHandler(clonedSet, this);
28530
+ for (var key in articles) {
28531
+ clonedSet.addArticle(articles[key].cloneArticle(clonedSet));
28532
+ }
28533
+ return clonedSet;
28534
+ }
28403
28535
  }]);
28404
28536
  }();
28405
28537
 
@@ -29738,7 +29870,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29738
29870
  key: "getValidVariants",
29739
29871
  value: function () {
29740
29872
  var _getValidVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(set, useCache) {
29741
- var allvariants, validVariants, i, _set$onlyCalcVariants;
29873
+ var allvariants, validVariants, i;
29742
29874
  return _regeneratorRuntime.wrap(function _callee3$(_context4) {
29743
29875
  while (1) switch (_context4.prev = _context4.next) {
29744
29876
  case 0:
@@ -29758,11 +29890,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29758
29890
  allvariants = _context4.t0;
29759
29891
  validVariants = [];
29760
29892
  for (i = 0; i < allvariants.length; i++) {
29761
- if (!set.disabledVariants.includes(allvariants[i].id)) {
29762
- if (!((_set$onlyCalcVariants = set.onlyCalcVariants) !== null && _set$onlyCalcVariants !== void 0 && _set$onlyCalcVariants.length) || set.onlyCalcVariants.includes(allvariants[i].id)) {
29763
- validVariants.push(allvariants[i]);
29764
- }
29765
- }
29893
+ if (!set.disabledVariants.includes(allvariants[i].id)) validVariants.push(allvariants[i]);
29766
29894
  }
29767
29895
  return _context4.abrupt("return", validVariants);
29768
29896
  case 11:
@@ -30424,25 +30552,24 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30424
30552
  key: "getConifgItemsForView",
30425
30553
  value: function () {
30426
30554
  var _getConifgItemsForView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(set, configStepKey) {
30427
- var optionStatesOfArticles, articles, step, retValues, optionCodex, configItems, selectedItems, optionState, key, _configItem$parent$oc, configItem, configItemsInOPG, retVal, _retVal, configStepOPG, configStepOPV, targetArticle, opg, ops, selectedOpv, originalVariantValues, seomethingChanged, variantValues, _key, _set$favorites$Varian, _set$favorites, alreadyCalcedVisibleOPVs, i, _ops$optionOcd2, _retVal2, clonedConfigItemsForView, _i, _configItems;
30555
+ var articles, step, retValues, optionCodex, configItems, selectedItems, optionState, key, _configItem$parent$oc, configItem, configItemsInOPG, retVal, _retVal, configStepOPG, configStepOPV, targetArticle, opg, ops, selectedOpv, originalVariantValues, seomethingChanged, variantValues, _key, _set$favorites$Varian, _set$favorites, alreadyCalcedVisibleOPVs, i, _ops$optionOcd2, _retVal2, clonedConfigItemsForView, _i, _configItems;
30428
30556
  return _regeneratorRuntime.wrap(function _callee$(_context) {
30429
30557
  while (1) switch (_context.prev = _context.next) {
30430
30558
  case 0:
30431
- optionStatesOfArticles = set.getOptionStatesOfArticles(set.getDivaArticles(true));
30432
30559
  articles = set.getDivaArticles(true);
30433
30560
  step = set.configTree.getAllByKey(configStepKey);
30434
30561
  retValues = this.getConfigItems(configStepKey, articles, set.configTree);
30435
30562
  optionCodex = undefined;
30436
30563
  if (!(retValues && step != null)) {
30437
- _context.next = 55;
30564
+ _context.next = 54;
30438
30565
  break;
30439
30566
  }
30440
30567
  configItems = [];
30441
30568
  selectedItems = retValues.selectedVals;
30442
- optionState = optionStatesOfArticles[retValues.targetArticles[0]][retValues.optionCodex];
30569
+ optionState = articles[retValues.targetArticles[0]].getArticleOptionState(retValues.optionCodex);
30443
30570
  optionCodex = optionState.optionCodex;
30444
30571
  if (!retValues.isOPG) {
30445
- _context.next = 14;
30572
+ _context.next = 13;
30446
30573
  break;
30447
30574
  }
30448
30575
  for (key in retValues.configItems) {
@@ -30454,26 +30581,26 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30454
30581
  configItems = configItems.concat(retVal.myConfigItemsForView);
30455
30582
  }
30456
30583
  }
30457
- _context.next = 52;
30584
+ _context.next = 51;
30458
30585
  break;
30459
- case 14:
30586
+ case 13:
30460
30587
  if (!(step.optionStep.mergesToOPG == undefined)) {
30461
- _context.next = 19;
30588
+ _context.next = 18;
30462
30589
  break;
30463
30590
  }
30464
30591
  _retVal = this.prepareConfigItemsForView(set, optionState, retValues.configItems, retValues.constructionRules, selectedItems, step.configStep.targetArticles, undefined, undefined, undefined, undefined, retValues.freeTextValue, retValues.freeTextLang);
30465
30592
  configItems = _retVal.myConfigItemsForView;
30466
- _context.next = 52;
30593
+ _context.next = 51;
30467
30594
  break;
30468
- case 19:
30595
+ case 18:
30469
30596
  if (!(typeof step.optionStep.mergesToOPG == 'string' && step.tabGroup.options[step.optionStep.mergesToOPG])) {
30470
- _context.next = 52;
30597
+ _context.next = 51;
30471
30598
  break;
30472
30599
  }
30473
30600
  //IDM Bezugschritte werden zusammengefasst zu OPG und OPV
30474
30601
  configStepOPG = step.configStep, configStepOPV = set.configTree.getConfigStepBasketIdAndOptionCodex(configStepOPG.targetArticles[0], step.optionStep.mergesToOPG); //falls mehrere Artikel im Schritt sind werden trotzdem nur die Values des erster verwendet um die z.B. OPT2 und OPT3 zu vereinen
30475
30602
  if (!configStepOPV) {
30476
- _context.next = 52;
30603
+ _context.next = 51;
30477
30604
  break;
30478
30605
  }
30479
30606
  targetArticle = articles[configStepOPG.targetArticles[0]];
@@ -30484,9 +30611,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30484
30611
  seomethingChanged = false;
30485
30612
  variantValues = {};
30486
30613
  _context.t0 = _regeneratorRuntime.keys(opg.visibleOptionValues);
30487
- case 30:
30614
+ case 29:
30488
30615
  if ((_context.t1 = _context.t0()).done) {
30489
- _context.next = 48;
30616
+ _context.next = 47;
30490
30617
  break;
30491
30618
  }
30492
30619
  _key = _context.t1.value;
@@ -30494,7 +30621,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30494
30621
  variantValues[opg.optionCodex] = opg.visibleOptionValues[_key].codex;
30495
30622
  alreadyCalcedVisibleOPVs = targetArticle.getMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues[_key].codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)));
30496
30623
  if (!(alreadyCalcedVisibleOPVs != undefined && Object.keys((_set$favorites$Varian = (_set$favorites = set.favorites) === null || _set$favorites === void 0 ? void 0 : _set$favorites.VariantValues) !== null && _set$favorites$Varian !== void 0 ? _set$favorites$Varian : {}).length == 0)) {
30497
- _context.next = 39;
30624
+ _context.next = 38;
30498
30625
  break;
30499
30626
  }
30500
30627
  //die merged OPG wurde bereist ausgerechnet und kann wiederverwendet werden. nur die Selected value muss repariert werden
@@ -30506,35 +30633,35 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30506
30633
  }
30507
30634
  }
30508
30635
  configItems = configItems.concat(alreadyCalcedVisibleOPVs);
30509
- _context.next = 46;
30636
+ _context.next = 45;
30510
30637
  break;
30511
- case 39:
30638
+ case 38:
30512
30639
  seomethingChanged = true;
30513
- _context.next = 42;
30640
+ _context.next = 41;
30514
30641
  return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true, true, true);
30515
- case 42:
30642
+ case 41:
30516
30643
  _retVal2 = this.prepareConfigItemsForView(set, optionState, targetArticle.getArticleOptionState(ops.optionCodex).visibleOptionValues, retValues.constructionRules, [], step.configStep.targetArticles, (_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.optionCodex, opg.visibleOptionValues[_key].name, opg.visibleOptionValues[_key].codex, opg.optionCodex);
30517
30644
  configItems = configItems.concat(_retVal2.myConfigItemsForView);
30518
30645
  clonedConfigItemsForView = JSON.parse(JSON.stringify(_retVal2.myConfigItemsForView));
30519
30646
  targetArticle.addMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues[_key].codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)), clonedConfigItemsForView);
30520
- case 46:
30521
- _context.next = 30;
30647
+ case 45:
30648
+ _context.next = 29;
30522
30649
  break;
30523
- case 48:
30650
+ case 47:
30524
30651
  if (!seomethingChanged) {
30525
- _context.next = 51;
30652
+ _context.next = 50;
30526
30653
  break;
30527
30654
  }
30528
- _context.next = 51;
30655
+ _context.next = 50;
30529
30656
  return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, originalVariantValues, [targetArticle.basketId], true, 'calcVariant');
30530
- case 51:
30657
+ case 50:
30531
30658
  for (_i = 0; _i < configItems.length; _i++) {
30532
30659
  if (configItems[_i].codex == (selectedOpv === null || selectedOpv === void 0 ? void 0 : selectedOpv.codex)) {
30533
30660
  selectedItems = [selectedOpv.codex];
30534
30661
  configItems[_i].sel = true;
30535
30662
  }
30536
30663
  }
30537
- case 52:
30664
+ case 51:
30538
30665
  return _context.abrupt("return", {
30539
30666
  configItems: configItems,
30540
30667
  option: optionCodex ? set.CatalogData.getOption(optionCodex) : undefined,
@@ -30545,13 +30672,13 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30545
30672
  }),
30546
30673
  notTotallyMatichingOPVs: !set.CatalogData.articleConfigAll ? retValues.notTotallyMatichingOPVs : undefined
30547
30674
  });
30548
- case 55:
30675
+ case 54:
30549
30676
  _configItems = [];
30550
30677
  return _context.abrupt("return", {
30551
30678
  configItems: _configItems,
30552
30679
  selectedItems: []
30553
30680
  });
30554
- case 57:
30681
+ case 56:
30555
30682
  case "end":
30556
30683
  return _context.stop();
30557
30684
  }
@@ -30578,10 +30705,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30578
30705
  notTotallyMatichingOPVs = false,
30579
30706
  myOptionState = undefined;
30580
30707
  for (var i = 0; i < configStep.targetArticles.length; i++) {
30708
+ var _myOptionState;
30581
30709
  var article = articles[configStep.targetArticles[i]];
30582
- var myOptions = article.articleOptionStates;
30583
- myOptionState = myOptions[configStep.option];
30584
- if (myOptionState.option.hasOPG) isOPG = true;
30710
+ myOptionState = article.getArticleOptionState(configStep.option);
30711
+ if ((_myOptionState = myOptionState) !== null && _myOptionState !== void 0 && (_myOptionState = _myOptionState.option) !== null && _myOptionState !== void 0 && _myOptionState.hasOPG) isOPG = true;
30585
30712
  selectedVals = selectedVals.concat(myOptionState.getSelectedVals);
30586
30713
  if (myOptionState.isFreeText && myOptionState.freeText) {
30587
30714
  freeTextValue = myOptionState.freeText;
@@ -30694,12 +30821,13 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30694
30821
  */
30695
30822
  }, {
30696
30823
  key: "checkIfLoadedArticlesAreConfigSingle",
30697
- value: function checkIfLoadedArticlesAreConfigSingle(optionStatesOfArticles) {
30824
+ value: function checkIfLoadedArticlesAreConfigSingle(set) {
30698
30825
  var optionValues = {},
30699
30826
  ret = false;
30700
- for (var ikey in optionStatesOfArticles) {
30701
- for (var jKey in optionStatesOfArticles[ikey]) {
30702
- var optionState = optionStatesOfArticles[ikey][jKey];
30827
+ var articles = set.getDivaArticles();
30828
+ for (var basketId in articles) {
30829
+ for (var jKey in articles[basketId].articleOptionStates) {
30830
+ var optionState = articles[basketId].articleOptionStates[jKey];
30703
30831
  if (optionState.headerPosVariationType == 'K') {
30704
30832
  if (optionValues[optionState.optionCodex] == undefined) {
30705
30833
  optionValues[optionState.optionCodex] = optionState.valCodex ? optionState.valCodex : null;
@@ -30723,7 +30851,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30723
30851
  var myConfigItemsForView = [],
30724
30852
  objectKeys = Object.keys(myConfigItems);
30725
30853
  var _loop8 = function _loop8() {
30726
- var _ops$optionOcd3, _item$colorGroups, _item$pdfUrl, _item$url;
30854
+ var _ops$optionOcd3, _item$images, _item$colorGroups, _item$pdfUrl, _item$url;
30727
30855
  var item = myConfigItems[objectKeys[i]];
30728
30856
  var key = objectKeys[i];
30729
30857
  var groupName = item.groupName ? item.groupName : idmOpgGroupName;
@@ -30752,7 +30880,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30752
30880
  codex: item.codex,
30753
30881
  ocd: item.ocd,
30754
30882
  vCodex: item.vCodex,
30755
- layout: item.isTexture ? 'TEXTURE' : item.image ? 'IMAGE' : 'TEXT',
30883
+ layout: item.isTexture ? 'TEXTURE' : item.image || (_item$images = item.images) !== null && _item$images !== void 0 && _item$images.length ? 'IMAGE' : 'TEXT',
30756
30884
  image: image,
30757
30885
  zoomImage: zoomImage,
30758
30886
  hexColor: item.hexColor,
@@ -30771,6 +30899,8 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30771
30899
  //if a opv has isFreeText = true and its selected a Textbox sould appear in the OptionValue
30772
30900
  //if the text is empty the opv is really selected
30773
30901
  contentItemId: item.contentItemId,
30902
+ isOPVG: item.isOPVG,
30903
+ isParentOPVG: item.parent.codex.startsWith('OPV'),
30774
30904
  groupContentItemId: item.groupContentItemId,
30775
30905
  idmOpgOptionCodex: idmOpgOptionCodex,
30776
30906
  idmOpgValCodex: idmOpgValCodex,
@@ -31144,7 +31274,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
31144
31274
  _context4.next = 72;
31145
31275
  break;
31146
31276
  case 85:
31147
- set.configSingle = configTreeHandler.checkIfLoadedArticlesAreConfigSingle(set.getOptionStatesOfArticles());
31277
+ set.configSingle = configTreeHandler.checkIfLoadedArticlesAreConfigSingle(set);
31148
31278
  _context4.next = 88;
31149
31279
  return this.updateArticlesOptionStatesOfActSet(set, {}, [], undefined, 'initializing');
31150
31280
  case 88:
@@ -32381,18 +32511,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
32381
32511
  */
32382
32512
  }, {
32383
32513
  key: "update3DPlannerView",
32384
- value: function update3DPlannerView(doRequestRendering, doRequestHqRenderScript, set, renderSize, planner3DGridEnabled, mediaServiceSaveMode, doShow3DDimensionLines, alternateRenderInfo, hybrid3DInfo) {
32514
+ value: function update3DPlannerView(doRequestRendering, doRequestHqRenderScript, set, renderSize, planner3DGridEnabled, mediaServiceSaveMode, doShow3DDimensionLines, alternateRenderInfo, hybrid3DInfo, useLatestHybridInfo) {
32385
32515
  var _set$plannerHandler, _set$getAlternateRend2;
32386
32516
  var width = renderSize.imgWidth;
32387
32517
  var height = renderSize.imgHeight;
32388
- (_set$plannerHandler = set.plannerHandler) === null || _set$plannerHandler === void 0 || _set$plannerHandler.request3D(doRequestRendering, doRequestHqRenderScript, true, (set === null || set === void 0 || (_set$getAlternateRend2 = set.getAlternateRenderInfo()) === null || _set$getAlternateRend2 === void 0 ? void 0 : _set$getAlternateRend2.length) > 0, alternateRenderInfo, undefined, {
32518
+ (_set$plannerHandler = set.plannerHandler) === null || _set$plannerHandler === void 0 || _set$plannerHandler.request3D(doRequestRendering, doRequestHqRenderScript, (set === null || set === void 0 || (_set$getAlternateRend2 = set.getAlternateRenderInfo()) === null || _set$getAlternateRend2 === void 0 ? void 0 : _set$getAlternateRend2.length) > 0, alternateRenderInfo, undefined, {
32389
32519
  width: width,
32390
32520
  height: height,
32391
32521
  isFullscreenRendering: false,
32392
32522
  planner3DGridEnabled: planner3DGridEnabled,
32393
32523
  mediaServiceSaveMode: mediaServiceSaveMode,
32394
32524
  doShow3DDimensionLines: !!doShow3DDimensionLines
32395
- }, hybrid3DInfo);
32525
+ }, hybrid3DInfo, useLatestHybridInfo);
32396
32526
  }
32397
32527
  }, {
32398
32528
  key: "getPlannerPaletteViewInfo",
@@ -32620,23 +32750,22 @@ var DivaSetHandler = /*#__PURE__*/function () {
32620
32750
  value: function () {
32621
32751
  var _loadConfigItemsOfActSetByConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(set, configStepKey, visible) {
32622
32752
  var _configItems$option;
32623
- var optionStatesOfArticle, configItems, paletteType, filterType, stepInfo, contentItemId;
32753
+ var configItems, paletteType, filterType, stepInfo, contentItemId;
32624
32754
  return _regeneratorRuntime.wrap(function _callee22$(_context24) {
32625
32755
  while (1) switch (_context24.prev = _context24.next) {
32626
32756
  case 0:
32627
- optionStatesOfArticle = set.getOptionStatesOfArticles(set.getDivaArticles(true));
32628
- _context24.next = 3;
32757
+ _context24.next = 2;
32629
32758
  return configTreeHandler.getConifgItemsForView(set, configStepKey);
32630
- case 3:
32759
+ case 2:
32631
32760
  configItems = _context24.sent;
32632
- paletteType = set.configTree.getCurPaletteType(set, configStepKey, optionStatesOfArticle);
32761
+ paletteType = set.configTree.getCurPaletteType(set, configStepKey);
32633
32762
  configItems.configItems = this.removeDockingInfluencableconfigItems(set, configItems.configItems, configStepKey);
32634
- _context24.next = 8;
32763
+ _context24.next = 7;
32635
32764
  return this.variantsEvaluator(set, configItems.configItems, configStepKey, paletteType);
32636
- case 8:
32765
+ case 7:
32637
32766
  configItems.configItems = _context24.sent;
32638
- filterType = set.configTree.getCurFilterType(configStepKey, optionStatesOfArticle, configItems.configItems);
32639
- stepInfo = set.configTree.getStepInfo(configStepKey, optionStatesOfArticle);
32767
+ filterType = set.configTree.getCurFilterType(configStepKey, configItems.configItems);
32768
+ stepInfo = set.configTree.getStepInfo(configStepKey);
32640
32769
  contentItemId = (_configItems$option = configItems.option) === null || _configItems$option === void 0 ? void 0 : _configItems$option.contentItemId;
32641
32770
  return _context24.abrupt("return", _objectSpread$9(_objectSpread$9(_objectSpread$9({
32642
32771
  isRenderedNotInSettingPalette: set.configTree.isRenderedNotInSettingPalette(configStepKey),
@@ -32649,7 +32778,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32649
32778
  }, set.configTree.getOptionStuff(configStepKey, set)), {}, {
32650
32779
  contentItemId: contentItemId
32651
32780
  }));
32652
- case 13:
32781
+ case 12:
32653
32782
  case "end":
32654
32783
  return _context24.stop();
32655
32784
  }
@@ -32698,45 +32827,31 @@ var DivaSetHandler = /*#__PURE__*/function () {
32698
32827
  key: "variantsEvaluator",
32699
32828
  value: (function () {
32700
32829
  var _variantsEvaluator = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(set, configItems, configStepKey, paletteType) {
32701
- var _set$ViewConfig, _configItems$;
32702
- var opt, calcVariantsForPricePreview, previewType, _set$api$ReturnToFrom, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
32830
+ var _set$ViewConfig, _set$api$ReturnToFrom, _set$CatalogData$show;
32831
+ var opt, previewType, targetArticles, variants;
32703
32832
  return _regeneratorRuntime.wrap(function _callee23$(_context25) {
32704
32833
  while (1) switch (_context25.prev = _context25.next) {
32705
32834
  case 0:
32706
32835
  opt = set.CatalogData.getOption(configItems[0].op);
32707
- if (opt) {
32708
- _context25.next = 3;
32709
- break;
32710
- }
32711
- return _context25.abrupt("return", configItems);
32712
- case 3:
32713
- calcVariantsForPricePreview = false;
32714
32836
  previewType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.pricePreview;
32715
- if (previewType) {
32716
- calcVariantsForPricePreview = !set.dontCalcPricePreviewDueToPerformanceIssues && !((_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR')) && !opt.showOnSeparatTabgroup && (!((_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length) || set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex));
32717
- }
32718
- if (set.PlannerMode === 'BoxPlanner') calcVariantsForPricePreview = false;
32719
- if (paletteType == 'GAL' && ((_configItems$ = configItems[0]) === null || _configItems$ === void 0 ? void 0 : _configItems$.groupName) === undefined || paletteType == 'TEXTBOX' || paletteType == 'NUMBERBOX' || paletteType == 'RANGE') {
32720
- calcVariantsForPricePreview = false;
32721
- }
32722
- if (!calcVariantsForPricePreview) {
32723
- _context25.next = 17;
32837
+ if (!(!opt || !previewType || opt.mergeIDMToOPG || opt.isDescribingState || configItems[0].isOPVG || configItems.length == 1 || opt.showOnSeparatTabgroup || set.PlannerMode === 'BoxPlanner' || ['TEXTBOX', 'NUMBERBOX', 'RANGE'].includes(paletteType) || (_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR') || (_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length && !set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex))) {
32838
+ _context25.next = 4;
32724
32839
  break;
32725
32840
  }
32841
+ return _context25.abrupt("return", configItems);
32842
+ case 4:
32726
32843
  targetArticles = set.configTree.getTargetArticles(configStepKey);
32727
- startTime = new Date();
32728
- _context25.next = 13;
32729
- return this.calcVariants(set, configItems, targetArticles);
32730
- case 13:
32844
+ _context25.next = 7;
32845
+ return this.calcVariants(set, configItems, targetArticles, opt.codex);
32846
+ case 7:
32731
32847
  variants = _context25.sent;
32732
- endTime = new Date();
32733
- if (endTime.getTime() - startTime.getTime() > 1000) set.dontCalcPricePreviewDueToPerformanceIssues = true;
32734
32848
  if (previewType) {
32735
- this.calcPricePreview(set, configItems, variants);
32849
+ configItems.map(function (c, index) {
32850
+ return c.pricePreviewPromise = variants[index];
32851
+ });
32736
32852
  }
32737
- case 17:
32738
32853
  return _context25.abrupt("return", configItems);
32739
- case 18:
32854
+ case 10:
32740
32855
  case "end":
32741
32856
  return _context25.stop();
32742
32857
  }
@@ -32750,109 +32865,167 @@ var DivaSetHandler = /*#__PURE__*/function () {
32750
32865
  }, {
32751
32866
  key: "calcVariants",
32752
32867
  value: function () {
32753
- var _calcVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(set, configItems, targetArticles) {
32754
- var variantInfo, articles, origConfigs, i, item, variantValues, doUseConfigs, targetIndex, origConfig, key, _targetIndex;
32868
+ var _calcVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(realSet, configItems, targetArticles, optionCodex) {
32869
+ var variantInfo, set, articles, origPrice, articleConfigs, i, basketId, totalConfig, key, parentNames, _i5, configItem;
32755
32870
  return _regeneratorRuntime.wrap(function _callee24$(_context26) {
32756
32871
  while (1) switch (_context26.prev = _context26.next) {
32757
32872
  case 0:
32758
32873
  variantInfo = [];
32874
+ set = realSet.cloneSet();
32759
32875
  articles = set.getDivaArticles();
32760
- origConfigs = targetArticles.map(function (basketId) {
32761
- return articles[basketId].VariantValues;
32762
- });
32763
- i = 0;
32764
- case 4:
32765
- if (!(i < configItems.length)) {
32876
+ origPrice = set.getSetPrice();
32877
+ articleConfigs = {};
32878
+ for (i = 0; i < targetArticles.length; i++) {
32879
+ basketId = targetArticles[i];
32880
+ articleConfigs[basketId] = {
32881
+ config: articles[basketId].VisibleVariantValues,
32882
+ articleCodex: articles[basketId].articleCodex
32883
+ };
32884
+ }
32885
+ totalConfig = {};
32886
+ for (key in articles) {
32887
+ totalConfig[key] = {
32888
+ config: articles[key].VisibleVariantValues,
32889
+ articleCodex: articles[key].articleCodex
32890
+ };
32891
+ }
32892
+ parentNames = [];
32893
+ _i5 = 0;
32894
+ case 10:
32895
+ if (!(_i5 < configItems.length)) {
32766
32896
  _context26.next = 23;
32767
32897
  break;
32768
32898
  }
32769
- item = configItems[i];
32770
- variantValues = {};
32771
- doUseConfigs = false;
32772
- targetIndex = 0;
32773
- case 9:
32774
- if (!(targetIndex < origConfigs.length)) {
32899
+ configItem = configItems[_i5];
32900
+ if (!(configItem.parentName && configItem.isParentOPVG)) {
32775
32901
  _context26.next = 19;
32776
32902
  break;
32777
32903
  }
32778
- origConfig = origConfigs[targetIndex];
32779
- for (key in origConfig) {
32780
- if (key == item.op || key == item.idmOpgOptionCodex) {
32781
- doUseConfigs = true;
32782
- } else if (doUseConfigs) variantValues[key] = origConfig[key];
32904
+ if (!parentNames.includes(configItem.parentName)) {
32905
+ _context26.next = 18;
32906
+ break;
32783
32907
  }
32784
- variantValues[item.op] = item.codex;
32785
- if (item.idmOpgOptionCodex) variantValues[item.idmOpgOptionCodex] = item.idmOpgValCodex;
32786
- _context26.next = 16;
32787
- return this.updateArticlesOptionStatesOfActSet(set, variantValues, [targetArticles[targetIndex]], true, 'calcVariant');
32788
- case 16:
32789
- targetIndex++;
32790
- _context26.next = 9;
32791
- break;
32908
+ variantInfo.push(variantInfo[_i5 - 1]);
32909
+ return _context26.abrupt("continue", 20);
32910
+ case 18:
32911
+ parentNames.push(configItem.parentName);
32792
32912
  case 19:
32793
- variantInfo.push({
32794
- price: set.getSetPrice(),
32795
- variants: set.getGeneralVariantValues(targetArticles),
32796
- opt: item.op
32797
- });
32913
+ variantInfo.push(this.getVariant(set, configItem, articleConfigs, totalConfig, targetArticles, optionCodex, origPrice, _i5, variantInfo[_i5 - 1]));
32798
32914
  case 20:
32799
- i++;
32800
- _context26.next = 4;
32915
+ _i5++;
32916
+ _context26.next = 10;
32801
32917
  break;
32802
32918
  case 23:
32803
- _targetIndex = 0;
32804
- case 24:
32805
- if (!(_targetIndex < origConfigs.length)) {
32806
- _context26.next = 30;
32807
- break;
32808
- }
32809
- _context26.next = 27;
32810
- return this.updateArticlesOptionStatesOfActSet(set, origConfigs[_targetIndex], [targetArticles[_targetIndex]], true);
32811
- case 27:
32812
- _targetIndex++;
32813
- _context26.next = 24;
32814
- break;
32815
- case 30:
32816
32919
  return _context26.abrupt("return", variantInfo);
32817
- case 31:
32920
+ case 24:
32818
32921
  case "end":
32819
32922
  return _context26.stop();
32820
32923
  }
32821
32924
  }, _callee24, this);
32822
32925
  }));
32823
- function calcVariants(_x85, _x86, _x87) {
32926
+ function calcVariants(_x85, _x86, _x87, _x88) {
32824
32927
  return _calcVariants.apply(this, arguments);
32825
32928
  }
32826
32929
  return calcVariants;
32827
32930
  }()
32828
32931
  }, {
32829
- key: "calcPricePreview",
32830
- value: function calcPricePreview(set, configItems, variantsInfo) {
32831
- var _set$ViewConfig2;
32832
- var previewType = (_set$ViewConfig2 = set.ViewConfig) === null || _set$ViewConfig2 === void 0 ? void 0 : _set$ViewConfig2.pricePreview;
32833
- var origPrice = set.getSetPrice();
32834
- var firstPrice;
32835
- if (configItems.length < 20) {
32836
- for (var i = 0; i < configItems.length; i++) {
32837
- var item = configItems[i];
32838
- var variant = variantsInfo[i];
32839
- switch (previewType) {
32840
- case 'fromCurrentPrice':
32841
- item.deltaPrice = variant.price - origPrice;
32932
+ key: "getVariant",
32933
+ value: function () {
32934
+ var _getVariant = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(set, item, origConfigs, totalConfig, targetArticles, optionCodex, origPrice, index, previousPromise) {
32935
+ var firstPrice, startTime, doUseConfigs, hashVariantValues, variantValues, i, basketId, origConfig, key, hash, dataHash, _i6, endTime, calcTime, priceObj;
32936
+ return _regeneratorRuntime.wrap(function _callee25$(_context27) {
32937
+ while (1) switch (_context27.prev = _context27.next) {
32938
+ case 0:
32939
+ firstPrice = undefined;
32940
+ if (!previousPromise) {
32941
+ _context27.next = 7;
32942
+ break;
32943
+ }
32944
+ _context27.next = 4;
32945
+ return previousPromise;
32946
+ case 4:
32947
+ firstPrice = _context27.sent.firstPrice;
32948
+ _context27.next = 8;
32842
32949
  break;
32843
- case 'fromBasePrice':
32844
- if (firstPrice === undefined) {
32845
- firstPrice = variant.price;
32846
- item.deltaPrice = 0;
32847
- } else {
32848
- item.deltaPrice = variant.price - firstPrice;
32950
+ case 7:
32951
+ firstPrice = set.getSetPrice();
32952
+ case 8:
32953
+ startTime = new Date();
32954
+ doUseConfigs = false;
32955
+ hashVariantValues = [];
32956
+ variantValues = [];
32957
+ i = 0;
32958
+ for (basketId in origConfigs) {
32959
+ hashVariantValues[i] = {
32960
+ articleCodex: origConfigs[basketId].articleCodex
32961
+ };
32962
+ variantValues[i] = {};
32963
+ origConfig = origConfigs[basketId].config;
32964
+ for (key in origConfig) {
32965
+ if (key == item.op || key == item.idmOpgOptionCodex) {
32966
+ doUseConfigs = true;
32967
+ } else if (doUseConfigs) {
32968
+ variantValues[i][key] = origConfig[key];
32969
+ }
32970
+ hashVariantValues[i][key] = origConfig[key];
32971
+ }
32972
+ variantValues[i][item.op] = item.codex;
32973
+ hashVariantValues[i][item.op] = item.codex;
32974
+ totalConfig[basketId].config[item.op] = item.codex;
32975
+ if (item.idmOpgOptionCodex) variantValues[i][item.idmOpgOptionCodex] = item.idmOpgValCodex;
32976
+ i++;
32977
+ }
32978
+ hash = md5(JSON.stringify([].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig)))));
32979
+ dataHash = set.CatalogData.getVariantsPriceByHash(hash);
32980
+ if (!dataHash) {
32981
+ _context27.next = 19;
32982
+ break;
32983
+ }
32984
+ LOG$9.debug('calcingVariant from Option:' + optionCodex + ' and index: ' + index + ' hash hit!', dataHash, [].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig))), targetArticles);
32985
+ return _context27.abrupt("return", _objectSpread$9(_objectSpread$9({}, dataHash), {}, {
32986
+ origPrice: origPrice,
32987
+ firstPrice: firstPrice
32988
+ }));
32989
+ case 19:
32990
+ _i6 = 0;
32991
+ case 20:
32992
+ if (!(_i6 < variantValues.length)) {
32993
+ _context27.next = 26;
32994
+ break;
32849
32995
  }
32996
+ _context27.next = 23;
32997
+ return this.updateArticlesOptionStatesOfActSet(set, variantValues[_i6], [targetArticles[_i6]], true, 'calcVariant');
32998
+ case 23:
32999
+ _i6++;
33000
+ _context27.next = 20;
32850
33001
  break;
33002
+ case 26:
33003
+ endTime = new Date();
33004
+ calcTime = endTime.getTime() - startTime.getTime();
33005
+ LOG$9.debug('calcingVariant Time from Option:' + optionCodex + ' and index: ' + index + ' time is: ' + calcTime + 'ms' + targetArticles.join(';'), [].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig))));
33006
+ priceObj = {
33007
+ price: set.getSetPrice(),
33008
+ opt: item.op,
33009
+ opv: item.codex,
33010
+ origPrice: origPrice,
33011
+ calcTime: calcTime,
33012
+ firstPrice: firstPrice,
33013
+ variantValues: hashVariantValues,
33014
+ hashObj: [].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig)))
33015
+ };
33016
+ set.CatalogData.setVariantsPriceByHash(hash, priceObj);
33017
+ return _context27.abrupt("return", priceObj);
33018
+ case 32:
33019
+ case "end":
33020
+ return _context27.stop();
32851
33021
  }
32852
- }
33022
+ }, _callee25, this);
33023
+ }));
33024
+ function getVariant(_x89, _x90, _x91, _x92, _x93, _x94, _x95, _x96, _x97) {
33025
+ return _getVariant.apply(this, arguments);
32853
33026
  }
32854
- }
32855
-
33027
+ return getVariant;
33028
+ }()
32856
33029
  /**
32857
33030
  * This function updates the option values of the articles
32858
33031
  * @param myValues
@@ -32862,11 +33035,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
32862
33035
  }, {
32863
33036
  key: "updateArticlesOptionStatesOfActSet",
32864
33037
  value: (function () {
32865
- var _updateArticlesOptionStatesOfActSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
33038
+ var _updateArticlesOptionStatesOfActSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
32866
33039
  var _Object$keys, _resultPlannerUpdate;
32867
33040
  var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, articleCopyRelation, newArticle;
32868
- return _regeneratorRuntime.wrap(function _callee25$(_context27) {
32869
- while (1) switch (_context27.prev = _context27.next) {
33041
+ return _regeneratorRuntime.wrap(function _callee26$(_context28) {
33042
+ while (1) switch (_context28.prev = _context28.next) {
32870
33043
  case 0:
32871
33044
  elementsToDeleteById = [];
32872
33045
  targetArticlesToUpdateOnly = [];
@@ -32878,54 +33051,54 @@ var DivaSetHandler = /*#__PURE__*/function () {
32878
33051
  } else {
32879
33052
  targetArticlesToUpdateOnly = targetArticlesWithNewValues;
32880
33053
  }
32881
- _context27.next = 5;
33054
+ _context28.next = 5;
32882
33055
  return articleHandlerInstance.updateArticlesOptionStates(myValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
32883
33056
  case 5:
32884
- retValues = _context27.sent;
33057
+ retValues = _context28.sent;
32885
33058
  targetArticlesWithNewValues = retValues.targetArticlesToUpdate;
32886
33059
  if (!(retValues.partlistArticlesToLoad.length > 0)) {
32887
- _context27.next = 16;
33060
+ _context28.next = 16;
32888
33061
  break;
32889
33062
  }
32890
33063
  diff = targetArticlesToUpdateOnly.length - Object.keys(set.getDivaArticles()).length;
32891
33064
  if (!(diff == 0 || partlistDiff == diff)) {
32892
- _context27.next = 14;
33065
+ _context28.next = 14;
32893
33066
  break;
32894
33067
  }
32895
- _context27.next = 12;
33068
+ _context28.next = 12;
32896
33069
  return articleHandlerInstance.correctPartlistArticlesByGlobalRules(set, retValues.partlistArticlesToLoad, set.CatalogData.bundleRules, {
32897
33070
  doChange: false
32898
33071
  });
32899
33072
  case 12:
32900
- _context27.next = 16;
33073
+ _context28.next = 16;
32901
33074
  break;
32902
33075
  case 14:
32903
- _context27.next = 16;
33076
+ _context28.next = 16;
32904
33077
  return this.updateArticlesOptionStatesOfActSet(set, {}, targetArticlesWithNewValues, ignorePlanner, from, diff);
32905
33078
  case 16:
32906
33079
  if (!(from !== 'initializingPartlist')) {
32907
- _context27.next = 19;
33080
+ _context28.next = 19;
32908
33081
  break;
32909
33082
  }
32910
- _context27.next = 19;
33083
+ _context28.next = 19;
32911
33084
  return this.updateEdoArticles(set, retValues.newEDOExtraArticles);
32912
33085
  case 19:
32913
33086
  if (set.CatalogData.hasAlternateRenderings) set.CatalogData.updateAlternativeRenderings(set.getDivaArticles());
32914
33087
 
32915
33088
  //Update Planner - check if planner data changed
32916
33089
  if (!(!ignorePlanner && from != 'calcVariant')) {
32917
- _context27.next = 48;
33090
+ _context28.next = 49;
32918
33091
  break;
32919
33092
  }
32920
33093
  targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
32921
- _context27.next = 24;
33094
+ _context28.next = 24;
32922
33095
  return set.plannerHandler.updatePlanner(set.getSetId(), myValues, targetElementIds);
32923
33096
  case 24:
32924
- resultPlannerUpdate = _context27.sent;
33097
+ resultPlannerUpdate = _context28.sent;
32925
33098
  i = 0;
32926
33099
  case 26:
32927
33100
  if (!(i < resultPlannerUpdate.elemIdsToDelete.length)) {
32928
- _context27.next = 35;
33101
+ _context28.next = 35;
32929
33102
  break;
32930
33103
  }
32931
33104
  articleToDel = set.getArticleByElementId(resultPlannerUpdate.elemIdsToDelete[i]);
@@ -32933,15 +33106,15 @@ var DivaSetHandler = /*#__PURE__*/function () {
32933
33106
  if (index > -1) {
32934
33107
  targetArticlesWithNewValues.splice(index, 1);
32935
33108
  }
32936
- _context27.next = 32;
33109
+ _context28.next = 32;
32937
33110
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[i], false, resultPlannerUpdate.deletionType);
32938
33111
  case 32:
32939
33112
  i++;
32940
- _context27.next = 26;
33113
+ _context28.next = 26;
32941
33114
  break;
32942
33115
  case 35:
32943
33116
  if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
32944
- _context27.next = 48;
33117
+ _context28.next = 48;
32945
33118
  break;
32946
33119
  }
32947
33120
  //Todo copy these elements
@@ -32949,20 +33122,20 @@ var DivaSetHandler = /*#__PURE__*/function () {
32949
33122
  i = 0;
32950
33123
  case 38:
32951
33124
  if (!(i < resultPlannerUpdate.elementIdToCopy.length)) {
32952
- _context27.next = 46;
33125
+ _context28.next = 46;
32953
33126
  break;
32954
33127
  }
32955
- _context27.next = 41;
33128
+ _context28.next = 41;
32956
33129
  return this.copyArticleByElementId(set, resultPlannerUpdate.elementIdToCopy[i], resultPlannerUpdate.ignoreOptionsToCopy);
32957
33130
  case 41:
32958
- newArticle = _context27.sent;
33131
+ newArticle = _context28.sent;
32959
33132
  articleCopyRelation.set(resultPlannerUpdate.elementIdToCopy[i], newArticle.basketId);
32960
33133
  case 43:
32961
33134
  i++;
32962
- _context27.next = 38;
33135
+ _context28.next = 38;
32963
33136
  break;
32964
33137
  case 46:
32965
- _context27.next = 48;
33138
+ _context28.next = 48;
32966
33139
  return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
32967
33140
  dpType: resultPlannerUpdate.copyDPType ? resultPlannerUpdate.copyDPType : 'NO',
32968
33141
  copyType: resultPlannerUpdate.copyType,
@@ -32971,21 +33144,22 @@ var DivaSetHandler = /*#__PURE__*/function () {
32971
33144
  });
32972
33145
  case 48:
32973
33146
  this.updatePosNrOfAccessoiresOfTargetArticles(set, targetArticlesWithNewValues);
33147
+ case 49:
32974
33148
  if (from == 'FromViewClick' && (_Object$keys = Object.keys(myValues)) !== null && _Object$keys !== void 0 && _Object$keys.length) {
32975
33149
  this.confirmOptionsInMetric(set, [Object.keys(myValues)[0]]);
32976
33150
  }
32977
- return _context27.abrupt("return", {
33151
+ return _context28.abrupt("return", {
32978
33152
  articleCountChanged: elementsToDeleteById.length > 0,
32979
33153
  elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
32980
33154
  setId: set.getSetId()
32981
33155
  });
32982
33156
  case 51:
32983
33157
  case "end":
32984
- return _context27.stop();
33158
+ return _context28.stop();
32985
33159
  }
32986
- }, _callee25, this);
33160
+ }, _callee26, this);
32987
33161
  }));
32988
- function updateArticlesOptionStatesOfActSet(_x88, _x89, _x90, _x91, _x92, _x93) {
33162
+ function updateArticlesOptionStatesOfActSet(_x98, _x99, _x100, _x101, _x102, _x103) {
32989
33163
  return _updateArticlesOptionStatesOfActSet.apply(this, arguments);
32990
33164
  }
32991
33165
  return updateArticlesOptionStatesOfActSet;
@@ -33039,63 +33213,63 @@ var DivaSetHandler = /*#__PURE__*/function () {
33039
33213
  }, {
33040
33214
  key: "updateEdoArticles",
33041
33215
  value: function () {
33042
- var _updateEdoArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(set, edoArticlesToLoad) {
33043
- var oldBasketIds, i, article, newArticles, _i5, _i6;
33044
- return _regeneratorRuntime.wrap(function _callee26$(_context28) {
33045
- while (1) switch (_context28.prev = _context28.next) {
33216
+ var _updateEdoArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(set, edoArticlesToLoad) {
33217
+ var oldBasketIds, i, article, newArticles, _i7, _i8;
33218
+ return _regeneratorRuntime.wrap(function _callee27$(_context29) {
33219
+ while (1) switch (_context29.prev = _context29.next) {
33046
33220
  case 0:
33047
33221
  if (!(set.edoExtraArticles.length > 0 || edoArticlesToLoad.length > 0)) {
33048
- _context28.next = 22;
33222
+ _context29.next = 22;
33049
33223
  break;
33050
33224
  }
33051
33225
  oldBasketIds = _toConsumableArray(set.edoExtraArticles);
33052
33226
  i = 0;
33053
33227
  case 3:
33054
33228
  if (!(i < set.edoExtraArticles.length)) {
33055
- _context28.next = 11;
33229
+ _context29.next = 11;
33056
33230
  break;
33057
33231
  }
33058
33232
  article = set.getArticleByBasketId(set.edoExtraArticles[i]);
33059
33233
  if (!article) {
33060
- _context28.next = 8;
33234
+ _context29.next = 8;
33061
33235
  break;
33062
33236
  }
33063
- _context28.next = 8;
33237
+ _context29.next = 8;
33064
33238
  return this.deleteElementFromSet(set, article);
33065
33239
  case 8:
33066
33240
  i++;
33067
- _context28.next = 3;
33241
+ _context29.next = 3;
33068
33242
  break;
33069
33243
  case 11:
33070
33244
  set.edoExtraArticles = [];
33071
33245
  newArticles = [];
33072
- _i5 = 0;
33246
+ _i7 = 0;
33073
33247
  case 14:
33074
- if (!(_i5 < edoArticlesToLoad.length)) {
33075
- _context28.next = 21;
33248
+ if (!(_i7 < edoArticlesToLoad.length)) {
33249
+ _context29.next = 21;
33076
33250
  break;
33077
33251
  }
33078
- _context28.next = 17;
33079
- return this.addArticleToActSet(set, edoArticlesToLoad[_i5].ArticleCodex, _objectSpread$9(_objectSpread$9({}, edoArticlesToLoad[_i5]), {}, {
33080
- basketId: oldBasketIds[_i5]
33252
+ _context29.next = 17;
33253
+ return this.addArticleToActSet(set, edoArticlesToLoad[_i7].ArticleCodex, _objectSpread$9(_objectSpread$9({}, edoArticlesToLoad[_i7]), {}, {
33254
+ basketId: oldBasketIds[_i7]
33081
33255
  }), true);
33082
33256
  case 17:
33083
- newArticles[_i5] = _context28.sent;
33257
+ newArticles[_i7] = _context29.sent;
33084
33258
  case 18:
33085
- _i5++;
33086
- _context28.next = 14;
33259
+ _i7++;
33260
+ _context29.next = 14;
33087
33261
  break;
33088
33262
  case 21:
33089
- for (_i6 = 0; _i6 < newArticles.length; _i6++) {
33090
- set.edoExtraArticles.push(newArticles[_i6].basketId);
33263
+ for (_i8 = 0; _i8 < newArticles.length; _i8++) {
33264
+ set.edoExtraArticles.push(newArticles[_i8].basketId);
33091
33265
  }
33092
33266
  case 22:
33093
33267
  case "end":
33094
- return _context28.stop();
33268
+ return _context29.stop();
33095
33269
  }
33096
- }, _callee26, this);
33270
+ }, _callee27, this);
33097
33271
  }));
33098
- function updateEdoArticles(_x94, _x95) {
33272
+ function updateEdoArticles(_x104, _x105) {
33099
33273
  return _updateEdoArticles.apply(this, arguments);
33100
33274
  }
33101
33275
  return updateEdoArticles;
@@ -33261,11 +33435,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33261
33435
  }, {
33262
33436
  key: "fillOrderLinesAndOrderSets",
33263
33437
  value: function () {
33264
- var _fillOrderLinesAndOrderSets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(sets, divaBasketHandler, repairOnly, setPlanner, returnTo) {
33438
+ var _fillOrderLinesAndOrderSets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(sets, divaBasketHandler, repairOnly, setPlanner, returnTo) {
33265
33439
  var _set$getMatchingProdu2, _set$getMatchingProdu3;
33266
33440
  var orderSets, basketData, set, setPosNr, _set$getMatchingProdu, key, _set$basketConfigVari, _OrderLinesOfActSet$, _set, catalogData, articles, newOrderSet, OrderLinesOfActSet, ret, _key2, i, _basketData$OrderSets, _basketData$SetPlanne, oderSetsIsInActPlanning, setId, j;
33267
- return _regeneratorRuntime.wrap(function _callee27$(_context29) {
33268
- while (1) switch (_context29.prev = _context29.next) {
33441
+ return _regeneratorRuntime.wrap(function _callee28$(_context30) {
33442
+ while (1) switch (_context30.prev = _context30.next) {
33269
33443
  case 0:
33270
33444
  orderSets = [];
33271
33445
  basketData = divaBasketHandler.actBasket;
@@ -33278,29 +33452,29 @@ var DivaSetHandler = /*#__PURE__*/function () {
33278
33452
  }
33279
33453
  basketData.MatchingProductId = set === null || set === void 0 || (_set$getMatchingProdu2 = set.getMatchingProduct()) === null || _set$getMatchingProdu2 === void 0 ? void 0 : _set$getMatchingProdu2._id;
33280
33454
  basketData.MatchingProductRetailerArticleNr = set === null || set === void 0 || (_set$getMatchingProdu3 = set.getMatchingProduct()) === null || _set$getMatchingProdu3 === void 0 || (_set$getMatchingProdu3 = _set$getMatchingProdu3.retailerArticleNr) === null || _set$getMatchingProdu3 === void 0 ? void 0 : _set$getMatchingProdu3.toString();
33281
- _context29.t0 = _regeneratorRuntime.keys(sets);
33455
+ _context30.t0 = _regeneratorRuntime.keys(sets);
33282
33456
  case 9:
33283
- if ((_context29.t1 = _context29.t0()).done) {
33284
- _context29.next = 31;
33457
+ if ((_context30.t1 = _context30.t0()).done) {
33458
+ _context30.next = 31;
33285
33459
  break;
33286
33460
  }
33287
- key = _context29.t1.value;
33461
+ key = _context30.t1.value;
33288
33462
  setPosNr++;
33289
33463
  _set = sets[key];
33290
33464
  catalogData = _set.CatalogData;
33291
33465
  articles = _set.getDivaArticles();
33292
- _context29.next = 17;
33466
+ _context30.next = 17;
33293
33467
  return this.getOrderSet(_set, catalogData, setPosNr, divaBasketHandler.actDivaNr, repairOnly, returnTo);
33294
33468
  case 17:
33295
- newOrderSet = _context29.sent;
33469
+ newOrderSet = _context30.sent;
33296
33470
  basketData.setIsPlanning(_set.SetType == 'PLANNING' ? '1' : '0');
33297
33471
  OrderLinesOfActSet = articleHandlerInstance.getOrderLinesOfArticles(articles, repairOnly, !!((_set$basketConfigVari = _set.basketConfigVariants) !== null && _set$basketConfigVari !== void 0 && _set$basketConfigVari.length));
33298
33472
  articleHandlerInstance.checkForRoundingError(OrderLinesOfActSet, _set);
33299
33473
  if (OrderLinesOfActSet.length) {
33300
- _context29.next = 23;
33474
+ _context30.next = 23;
33301
33475
  break;
33302
33476
  }
33303
- return _context29.abrupt("continue", 9);
33477
+ return _context30.abrupt("continue", 9);
33304
33478
  case 23:
33305
33479
  OrderLinesOfActSet = divaBasketHandler.divaWWSHandler.repairWWSFlags(articles, OrderLinesOfActSet);
33306
33480
  if (newOrderSet.SetImage == '' && (_OrderLinesOfActSet$ = OrderLinesOfActSet[0]) !== null && _OrderLinesOfActSet$ !== void 0 && _OrderLinesOfActSet$.Image && _set.PlannerMode == 'No') {
@@ -33322,7 +33496,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33322
33496
  }
33323
33497
  newOrderSet.setOrderLines(OrderLinesOfActSet);
33324
33498
  orderSets.push(newOrderSet);
33325
- _context29.next = 9;
33499
+ _context30.next = 9;
33326
33500
  break;
33327
33501
  case 31:
33328
33502
  //fill diva3DProject for renderings & AR Converter
@@ -33330,7 +33504,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33330
33504
  i = 0;
33331
33505
  case 33:
33332
33506
  if (!(i < ((_basketData$OrderSets = basketData.OrderSets) === null || _basketData$OrderSets === void 0 ? void 0 : _basketData$OrderSets.length))) {
33333
- _context29.next = 48;
33507
+ _context30.next = 48;
33334
33508
  break;
33335
33509
  }
33336
33510
  oderSetsIsInActPlanning = false;
@@ -33338,18 +33512,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
33338
33512
  j = 0;
33339
33513
  case 37:
33340
33514
  if (!(j < orderSets.length)) {
33341
- _context29.next = 44;
33515
+ _context30.next = 44;
33342
33516
  break;
33343
33517
  }
33344
33518
  if (!(orderSets[j].SetID == setId)) {
33345
- _context29.next = 41;
33519
+ _context30.next = 41;
33346
33520
  break;
33347
33521
  }
33348
33522
  oderSetsIsInActPlanning = true;
33349
- return _context29.abrupt("break", 44);
33523
+ return _context30.abrupt("break", 44);
33350
33524
  case 41:
33351
33525
  j++;
33352
- _context29.next = 37;
33526
+ _context30.next = 37;
33353
33527
  break;
33354
33528
  case 44:
33355
33529
  if (!oderSetsIsInActPlanning && !((_basketData$SetPlanne = basketData.SetPlannerInfos) !== null && _basketData$SetPlanne !== void 0 && _basketData$SetPlanne.InvolvedSetIds.includes(setId))) {
@@ -33357,7 +33531,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33357
33531
  }
33358
33532
  case 45:
33359
33533
  i++;
33360
- _context29.next = 33;
33534
+ _context30.next = 33;
33361
33535
  break;
33362
33536
  case 48:
33363
33537
  basketData.SetPlannerInfos = setPlanner ? this.getSetPlannerInfos(Object.keys(sets), orderSets) : undefined;
@@ -33366,14 +33540,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33366
33540
  } else {
33367
33541
  basketData.setOrderSets(orderSets);
33368
33542
  }
33369
- return _context29.abrupt("return", basketData);
33543
+ return _context30.abrupt("return", basketData);
33370
33544
  case 51:
33371
33545
  case "end":
33372
- return _context29.stop();
33546
+ return _context30.stop();
33373
33547
  }
33374
- }, _callee27, this);
33548
+ }, _callee28, this);
33375
33549
  }));
33376
- function fillOrderLinesAndOrderSets(_x96, _x97, _x98, _x99, _x100) {
33550
+ function fillOrderLinesAndOrderSets(_x106, _x107, _x108, _x109, _x110) {
33377
33551
  return _fillOrderLinesAndOrderSets.apply(this, arguments);
33378
33552
  }
33379
33553
  return fillOrderLinesAndOrderSets;
@@ -33457,11 +33631,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33457
33631
  }, {
33458
33632
  key: "getOrderSet",
33459
33633
  value: function () {
33460
- var _getOrderSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(set, catalogData, posNr, divaNr, repairOnly, returnTo) {
33634
+ var _getOrderSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(set, catalogData, posNr, divaNr, repairOnly, returnTo) {
33461
33635
  var _Object$values$, _set$getDivaArticles, _hqRenderScript, _set$basketConfigVari2, _set$basketConfigVari3;
33462
33636
  var dontGenerateImages, orderSet, GroupType, plannerData, setImage, urlToPlanning2D, alternateSetImages, hqRenderScript, dimensions, promise3D, promise2D, promise3DAlternate, _yield$Promise$all, _yield$Promise$all2, _yield$Promise$all2$, promiseHQRenderScript, _yield$Promise$all3, _yield$Promise$all4, plannerWarnings, bruttoPrice;
33463
- return _regeneratorRuntime.wrap(function _callee28$(_context30) {
33464
- while (1) switch (_context30.prev = _context30.next) {
33637
+ return _regeneratorRuntime.wrap(function _callee29$(_context31) {
33638
+ while (1) switch (_context31.prev = _context31.next) {
33465
33639
  case 0:
33466
33640
  dontGenerateImages = repairOnly || returnTo == 'DONT_SAVE_BASKET' || returnTo == 'TEST_CONFIGURATORLOGIC';
33467
33641
  DivaUtils.startSpanOfApm('GetSet3D und 2D Image');
@@ -33473,7 +33647,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33473
33647
  hqRenderScript = undefined;
33474
33648
  dimensions = {};
33475
33649
  if (dontGenerateImages) {
33476
- _context30.next = 28;
33650
+ _context31.next = 28;
33477
33651
  break;
33478
33652
  }
33479
33653
  promise3D = this.getSetImage(set, typeof window === 'undefined');
@@ -33481,10 +33655,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
33481
33655
  if (!catalogData.dontSaveAlternativeRenderings && set.CatalogData.alternateRenderingsForSummary.length) {
33482
33656
  promise3DAlternate = this.getAlternateSetImages(set);
33483
33657
  }
33484
- _context30.next = 15;
33658
+ _context31.next = 15;
33485
33659
  return Promise.all([promise3D, promise2D, promise3DAlternate]);
33486
33660
  case 15:
33487
- _yield$Promise$all = _context30.sent;
33661
+ _yield$Promise$all = _context31.sent;
33488
33662
  _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 3);
33489
33663
  _yield$Promise$all2$ = _yield$Promise$all2[0];
33490
33664
  setImage = _yield$Promise$all2$.url;
@@ -33492,10 +33666,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
33492
33666
  urlToPlanning2D = _yield$Promise$all2[1];
33493
33667
  alternateSetImages = _yield$Promise$all2[2];
33494
33668
  promiseHQRenderScript = this.getHQRenderScript(set, divaNr);
33495
- _context30.next = 25;
33669
+ _context31.next = 25;
33496
33670
  return Promise.all([promiseHQRenderScript]);
33497
33671
  case 25:
33498
- _yield$Promise$all3 = _context30.sent;
33672
+ _yield$Promise$all3 = _context31.sent;
33499
33673
  _yield$Promise$all4 = _slicedToArray(_yield$Promise$all3, 1);
33500
33674
  hqRenderScript = _yield$Promise$all4[0];
33501
33675
  case 28:
@@ -33557,14 +33731,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33557
33731
  MetaData: !((_set$basketConfigVari2 = set.basketConfigVariants) !== null && _set$basketConfigVari2 !== void 0 && _set$basketConfigVari2.length) ? set.MetaData : undefined,
33558
33732
  MetaData_locales: !((_set$basketConfigVari3 = set.basketConfigVariants) !== null && _set$basketConfigVari3 !== void 0 && _set$basketConfigVari3.length) ? set.MetaData_locales : undefined
33559
33733
  });
33560
- return _context30.abrupt("return", orderSet);
33734
+ return _context31.abrupt("return", orderSet);
33561
33735
  case 34:
33562
33736
  case "end":
33563
- return _context30.stop();
33737
+ return _context31.stop();
33564
33738
  }
33565
- }, _callee28, this);
33739
+ }, _callee29, this);
33566
33740
  }));
33567
- function getOrderSet(_x101, _x102, _x103, _x104, _x105, _x106) {
33741
+ function getOrderSet(_x111, _x112, _x113, _x114, _x115, _x116) {
33568
33742
  return _getOrderSet.apply(this, arguments);
33569
33743
  }
33570
33744
  return getOrderSet;
@@ -33577,31 +33751,31 @@ var DivaSetHandler = /*#__PURE__*/function () {
33577
33751
  }, {
33578
33752
  key: "getSetImage",
33579
33753
  value: (function () {
33580
- var _getSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(set, overwriteLastSavedRendering) {
33754
+ var _getSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(set, overwriteLastSavedRendering) {
33581
33755
  var is3D, _yield$set$plannerHan, dimensions, url;
33582
- return _regeneratorRuntime.wrap(function _callee29$(_context31) {
33583
- while (1) switch (_context31.prev = _context31.next) {
33756
+ return _regeneratorRuntime.wrap(function _callee30$(_context32) {
33757
+ while (1) switch (_context32.prev = _context32.next) {
33584
33758
  case 0:
33585
33759
  is3D = ['3DImage', '3DCOMB', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
33586
33760
  if (!is3D) {
33587
- _context31.next = 10;
33761
+ _context32.next = 10;
33588
33762
  break;
33589
33763
  }
33590
- _context31.next = 4;
33764
+ _context32.next = 4;
33591
33765
  return set.plannerHandler.saveSetImage(overwriteLastSavedRendering);
33592
33766
  case 4:
33593
- _context31.next = 6;
33767
+ _context32.next = 6;
33594
33768
  return set.plannerHandler.getSetImageAsUrl(set.getSetId());
33595
33769
  case 6:
33596
- _yield$set$plannerHan = _context31.sent;
33770
+ _yield$set$plannerHan = _context32.sent;
33597
33771
  dimensions = _yield$set$plannerHan.dimensions;
33598
33772
  url = _yield$set$plannerHan.url;
33599
- return _context31.abrupt("return", {
33773
+ return _context32.abrupt("return", {
33600
33774
  dimensions: dimensions,
33601
33775
  url: url
33602
33776
  });
33603
33777
  case 10:
33604
- return _context31.abrupt("return", {
33778
+ return _context32.abrupt("return", {
33605
33779
  dimensions: {
33606
33780
  w: undefined,
33607
33781
  h: undefined,
@@ -33610,11 +33784,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33610
33784
  });
33611
33785
  case 11:
33612
33786
  case "end":
33613
- return _context31.stop();
33787
+ return _context32.stop();
33614
33788
  }
33615
- }, _callee29);
33789
+ }, _callee30);
33616
33790
  }));
33617
- function getSetImage(_x107, _x108) {
33791
+ function getSetImage(_x117, _x118) {
33618
33792
  return _getSetImage.apply(this, arguments);
33619
33793
  }
33620
33794
  return getSetImage;
@@ -33622,45 +33796,45 @@ var DivaSetHandler = /*#__PURE__*/function () {
33622
33796
  }, {
33623
33797
  key: "getHQRenderScript",
33624
33798
  value: function () {
33625
- var _getHQRenderScript = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(set, divaNr) {
33799
+ var _getHQRenderScript = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(set, divaNr) {
33626
33800
  var is3D, hqRenderScript, createdHQRenderScript;
33627
- return _regeneratorRuntime.wrap(function _callee30$(_context32) {
33628
- while (1) switch (_context32.prev = _context32.next) {
33801
+ return _regeneratorRuntime.wrap(function _callee31$(_context33) {
33802
+ while (1) switch (_context33.prev = _context33.next) {
33629
33803
  case 0:
33630
33804
  //if not 3d
33631
33805
  is3D = ['3DImage', '3DCOMB', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
33632
33806
  if (is3D) {
33633
- _context32.next = 3;
33807
+ _context33.next = 3;
33634
33808
  break;
33635
33809
  }
33636
- return _context32.abrupt("return");
33810
+ return _context33.abrupt("return");
33637
33811
  case 3:
33638
- _context32.next = 5;
33812
+ _context33.next = 5;
33639
33813
  return set.plannerHandler.saveSetHQRenderScript();
33640
33814
  case 5:
33641
33815
  hqRenderScript = set.plannerHandler.getSetHQRenderScript();
33642
33816
  if (hqRenderScript) {
33643
- _context32.next = 8;
33817
+ _context33.next = 8;
33644
33818
  break;
33645
33819
  }
33646
- return _context32.abrupt("return");
33820
+ return _context33.abrupt("return");
33647
33821
  case 8:
33648
- _context32.next = 10;
33822
+ _context33.next = 10;
33649
33823
  return set.api.postHQRenderScript({
33650
33824
  divaNr: divaNr,
33651
33825
  hqRenderscript: hqRenderScript,
33652
33826
  organization: set.api.OrganizationId
33653
33827
  });
33654
33828
  case 10:
33655
- createdHQRenderScript = _context32.sent;
33656
- return _context32.abrupt("return", createdHQRenderScript);
33829
+ createdHQRenderScript = _context33.sent;
33830
+ return _context33.abrupt("return", createdHQRenderScript);
33657
33831
  case 12:
33658
33832
  case "end":
33659
- return _context32.stop();
33833
+ return _context33.stop();
33660
33834
  }
33661
- }, _callee30);
33835
+ }, _callee31);
33662
33836
  }));
33663
- function getHQRenderScript(_x109, _x110) {
33837
+ function getHQRenderScript(_x119, _x120) {
33664
33838
  return _getHQRenderScript.apply(this, arguments);
33665
33839
  }
33666
33840
  return getHQRenderScript;
@@ -33674,34 +33848,34 @@ var DivaSetHandler = /*#__PURE__*/function () {
33674
33848
  }, {
33675
33849
  key: "getAlternateSetImages",
33676
33850
  value: (function () {
33677
- var _getAlternateSetImages = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(set) {
33851
+ var _getAlternateSetImages = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(set) {
33678
33852
  var is2D, catalogData, setImages;
33679
- return _regeneratorRuntime.wrap(function _callee31$(_context33) {
33680
- while (1) switch (_context33.prev = _context33.next) {
33853
+ return _regeneratorRuntime.wrap(function _callee32$(_context34) {
33854
+ while (1) switch (_context34.prev = _context34.next) {
33681
33855
  case 0:
33682
33856
  is2D = !['3DImage', '3DCOMB', 'BoxPlanner'].includes(set.getPlannerMode());
33683
33857
  if (!(is2D || set.onlyRunLogic)) {
33684
- _context33.next = 3;
33858
+ _context34.next = 3;
33685
33859
  break;
33686
33860
  }
33687
- return _context33.abrupt("return", []);
33861
+ return _context34.abrupt("return", []);
33688
33862
  case 3:
33689
33863
  catalogData = set.CatalogData;
33690
- _context33.next = 6;
33864
+ _context34.next = 6;
33691
33865
  return set.plannerHandler.saveAlternateSetImages(catalogData.catalogCodex, catalogData.catalogGuid);
33692
33866
  case 6:
33693
- _context33.next = 8;
33867
+ _context34.next = 8;
33694
33868
  return set.plannerHandler.getAlternateSetImagesAsSetImageData(set.getSetId());
33695
33869
  case 8:
33696
- setImages = _context33.sent;
33697
- return _context33.abrupt("return", setImages);
33870
+ setImages = _context34.sent;
33871
+ return _context34.abrupt("return", setImages);
33698
33872
  case 10:
33699
33873
  case "end":
33700
- return _context33.stop();
33874
+ return _context34.stop();
33701
33875
  }
33702
- }, _callee31);
33876
+ }, _callee32);
33703
33877
  }));
33704
- function getAlternateSetImages(_x111) {
33878
+ function getAlternateSetImages(_x121) {
33705
33879
  return _getAlternateSetImages.apply(this, arguments);
33706
33880
  }
33707
33881
  return getAlternateSetImages;
@@ -33709,30 +33883,30 @@ var DivaSetHandler = /*#__PURE__*/function () {
33709
33883
  }, {
33710
33884
  key: "get2DSetImage",
33711
33885
  value: function () {
33712
- var _get2DSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(set) {
33886
+ var _get2DSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(set) {
33713
33887
  var urlToPlanning2D, catalogData, planning2DAsJPGBase64;
33714
- return _regeneratorRuntime.wrap(function _callee32$(_context34) {
33715
- while (1) switch (_context34.prev = _context34.next) {
33888
+ return _regeneratorRuntime.wrap(function _callee33$(_context35) {
33889
+ while (1) switch (_context35.prev = _context35.next) {
33716
33890
  case 0:
33717
33891
  urlToPlanning2D = undefined, catalogData = set.CatalogData;
33718
33892
  planning2DAsJPGBase64 = set.getPlanning2DAsJpg();
33719
33893
  if (!(planning2DAsJPGBase64 != undefined && planning2DAsJPGBase64 != '' && planning2DAsJPGBase64 != 'data:,')) {
33720
- _context34.next = 6;
33894
+ _context35.next = 6;
33721
33895
  break;
33722
33896
  }
33723
- _context34.next = 5;
33897
+ _context35.next = 5;
33724
33898
  return set.plannerHandler.saveSet2DImage(set.getSetId(), catalogData.catalogCodex, catalogData.catalogGuid, planning2DAsJPGBase64);
33725
33899
  case 5:
33726
- urlToPlanning2D = _context34.sent;
33900
+ urlToPlanning2D = _context35.sent;
33727
33901
  case 6:
33728
- return _context34.abrupt("return", urlToPlanning2D);
33902
+ return _context35.abrupt("return", urlToPlanning2D);
33729
33903
  case 7:
33730
33904
  case "end":
33731
- return _context34.stop();
33905
+ return _context35.stop();
33732
33906
  }
33733
- }, _callee32);
33907
+ }, _callee33);
33734
33908
  }));
33735
- function get2DSetImage(_x112) {
33909
+ function get2DSetImage(_x122) {
33736
33910
  return _get2DSetImage.apply(this, arguments);
33737
33911
  }
33738
33912
  return get2DSetImage;
@@ -33771,25 +33945,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
33771
33945
  }, {
33772
33946
  key: "addOrderSetArticlesToExistingSet",
33773
33947
  value: function () {
33774
- var _addOrderSetArticlesToExistingSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(set, orderSet, lastSetToInitialize) {
33775
- return _regeneratorRuntime.wrap(function _callee33$(_context35) {
33776
- while (1) switch (_context35.prev = _context35.next) {
33948
+ var _addOrderSetArticlesToExistingSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(set, orderSet, lastSetToInitialize) {
33949
+ return _regeneratorRuntime.wrap(function _callee34$(_context36) {
33950
+ while (1) switch (_context36.prev = _context36.next) {
33777
33951
  case 0:
33778
33952
  //TODO: GLOBAL STUFF
33779
33953
  //this.updateActSet(set);
33780
33954
  orderSet.changeBasketIds();
33781
- _context35.next = 3;
33955
+ _context36.next = 3;
33782
33956
  return this.initOrderLineArticles(set, orderSet);
33783
33957
  case 3:
33784
- _context35.next = 5;
33958
+ _context36.next = 5;
33785
33959
  return set.plannerHandler.extendSet(set, orderSet.SetPlanData, lastSetToInitialize);
33786
33960
  case 5:
33787
33961
  case "end":
33788
- return _context35.stop();
33962
+ return _context36.stop();
33789
33963
  }
33790
- }, _callee33, this);
33964
+ }, _callee34, this);
33791
33965
  }));
33792
- function addOrderSetArticlesToExistingSet(_x113, _x114, _x115) {
33966
+ function addOrderSetArticlesToExistingSet(_x123, _x124, _x125) {
33793
33967
  return _addOrderSetArticlesToExistingSet.apply(this, arguments);
33794
33968
  }
33795
33969
  return addOrderSetArticlesToExistingSet;
@@ -34840,7 +35014,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34840
35014
  break;
34841
35015
  case 3:
34842
35016
  _context12.next = 5;
34843
- return import('./PfisterWWSHandler-79ba55d2.js');
35017
+ return import('./PfisterWWSHandler-75d136dc.js');
34844
35018
  case 5:
34845
35019
  _yield$import = _context12.sent;
34846
35020
  PfisterWWSHandler = _yield$import["default"];
@@ -34848,7 +35022,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34848
35022
  return _context12.abrupt("break", 27);
34849
35023
  case 9:
34850
35024
  _context12.next = 11;
34851
- return import('./LiviqueWWSHandler-17318cbe.js');
35025
+ return import('./LiviqueWWSHandler-443d209a.js');
34852
35026
  case 11:
34853
35027
  _yield$import2 = _context12.sent;
34854
35028
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34856,7 +35030,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34856
35030
  return _context12.abrupt("break", 27);
34857
35031
  case 15:
34858
35032
  _context12.next = 17;
34859
- return import('./SeriousBasketHandler-be547be8.js');
35033
+ return import('./SeriousBasketHandler-2a50c503.js');
34860
35034
  case 17:
34861
35035
  _yield$import3 = _context12.sent;
34862
35036
  SeriousWWSHandler = _yield$import3["default"];
@@ -34864,7 +35038,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34864
35038
  return _context12.abrupt("break", 27);
34865
35039
  case 21:
34866
35040
  _context12.next = 23;
34867
- return import('./StandardWWSHandler-9b4be27d.js');
35041
+ return import('./StandardWWSHandler-9b90b06a.js');
34868
35042
  case 23:
34869
35043
  _yield$import4 = _context12.sent;
34870
35044
  StandardWWSHandler = _yield$import4["default"];
@@ -35062,7 +35236,7 @@ var ViewPointHandler = /*#__PURE__*/function () {
35062
35236
  _defineProperty(this, "curViewPointRenderName", void 0);
35063
35237
  //Even if the viewpoint should be Start, it can contain the value Frontal. In this case the start is set using the rotation
35064
35238
  _defineProperty(this, "curRoomCodex", void 0);
35065
- _defineProperty(this, "defaultWhiteroom", 'weissraum');
35239
+ _defineProperty(this, "whiteroom", 'weissraum');
35066
35240
  _defineProperty(this, "roomListInfo", void 0);
35067
35241
  //this saves all ViewPoint Infos per room
35068
35242
  _defineProperty(this, "staticRoomMainCategories", void 0);
@@ -35080,7 +35254,7 @@ var ViewPointHandler = /*#__PURE__*/function () {
35080
35254
  this.roomListInfo = [];
35081
35255
  this.curViewPointName = 'Start';
35082
35256
  this.curViewPointRenderName = 'Start';
35083
- this.curRoomCodex = this.defaultWhiteroom;
35257
+ this.curRoomCodex = this.whiteroom;
35084
35258
  this.staticRoomMainCategories = new Map();
35085
35259
  this.vpInfosByRoom = new Map();
35086
35260
  }
@@ -35118,17 +35292,6 @@ var ViewPointHandler = /*#__PURE__*/function () {
35118
35292
  }
35119
35293
 
35120
35294
  //------------------------------------------------Functions needed for frontend Navigation------------------------------------------------
35121
- }, {
35122
- key: "setDefaultWhiteroom",
35123
- value: function setDefaultWhiteroom(defaultWhiteroom) {
35124
- this.defaultWhiteroom = defaultWhiteroom;
35125
- this.curRoomCodex = defaultWhiteroom;
35126
- }
35127
- }, {
35128
- key: "getDefaultWhiteRoom",
35129
- value: function getDefaultWhiteRoom() {
35130
- return this.defaultWhiteroom;
35131
- }
35132
35295
 
35133
35296
  /**
35134
35297
  * This function resets the viewpoint.
@@ -35138,29 +35301,10 @@ var ViewPointHandler = /*#__PURE__*/function () {
35138
35301
  }, {
35139
35302
  key: "resetViewPoint",
35140
35303
  value: function resetViewPoint() {
35141
- var _this$vpInfosByRoom$g;
35142
35304
  this.navInfo3D.zoom = 0;
35143
35305
  this.navInfo3D.focusOnElement = '';
35144
35306
  this.navInfo3D.rotVert = 0;
35145
35307
  this.navInfo3D.rotHori = 0;
35146
- if (this.vpInfosByRoom.has(this.defaultWhiteroom) && (_this$vpInfosByRoom$g = this.vpInfosByRoom.get(this.defaultWhiteroom)) !== null && _this$vpInfosByRoom$g !== void 0 && _this$vpInfosByRoom$g.has('start')) {
35147
- var _this$vpInfosByRoom$g2;
35148
- var vp = (_this$vpInfosByRoom$g2 = this.vpInfosByRoom.get(this.defaultWhiteroom)) === null || _this$vpInfosByRoom$g2 === void 0 ? void 0 : _this$vpInfosByRoom$g2.get('start');
35149
- if (vp && vp.M.toLowerCase() == 'orbit') {
35150
- this.curViewPointName = 'Start';
35151
- this.curViewPointRenderName = 'Frontal';
35152
- this.navInfo3D.rotVert = vp.CRV;
35153
- this.navInfo3D.rotHori = vp.CRH;
35154
- return {
35155
- updateOrbitCube: true,
35156
- rotVert: vp.CRV,
35157
- rotHori: vp.CRH
35158
- };
35159
- }
35160
- }
35161
- return {
35162
- updateOrbitCube: false
35163
- };
35164
35308
  }
35165
35309
  }, {
35166
35310
  key: "zoomIn",
@@ -35204,27 +35348,9 @@ var ViewPointHandler = /*#__PURE__*/function () {
35204
35348
  }, {
35205
35349
  key: "setVpName",
35206
35350
  value: function setVpName(vpName) {
35207
- var _this$vpInfosByRoom$g3;
35208
35351
  //if the viewpoint name is get from3D host update it correctly
35209
- if (this.curRoomCodex == this.defaultWhiteroom && this.vpInfosByRoom.has(this.defaultWhiteroom) && (_this$vpInfosByRoom$g3 = this.vpInfosByRoom.get(this.defaultWhiteroom)) !== null && _this$vpInfosByRoom$g3 !== void 0 && _this$vpInfosByRoom$g3.has(vpName.toLowerCase())) {
35210
- var _this$vpInfosByRoom$g4;
35211
- var vp = (_this$vpInfosByRoom$g4 = this.vpInfosByRoom.get(this.defaultWhiteroom)) === null || _this$vpInfosByRoom$g4 === void 0 ? void 0 : _this$vpInfosByRoom$g4.get(vpName.toLowerCase());
35212
- if (vp) {
35213
- this.curViewPointName = vpName;
35214
- this.setVpByVal(vp.CRH, vp.CRV);
35215
- return {
35216
- updateOrbitCube: true,
35217
- rotVert: vp.CRV,
35218
- rotHori: vp.CRH
35219
- };
35220
- }
35221
- } else {
35222
- this.curViewPointName = vpName;
35223
- this.curViewPointRenderName = vpName;
35224
- }
35225
- return {
35226
- updateOrbitCube: false
35227
- };
35352
+ this.curViewPointName = vpName;
35353
+ this.curViewPointRenderName = vpName;
35228
35354
  }
35229
35355
  }, {
35230
35356
  key: "focusOnElementId",
@@ -35362,26 +35488,6 @@ var ViewPointHandler = /*#__PURE__*/function () {
35362
35488
  roomIsSel = false;
35363
35489
  }
35364
35490
  }
35365
- /**
35366
- * Returns all room lists in the String - that contains a list of roomCodexes separated with a ; - that are not cached already. Only these have to be downloaded
35367
- * @param roomlist
35368
- */
35369
- /*
35370
- public getNotChachedRoomlist(roomlist: string[]): string[] {
35371
- var uncached: string[] = [];
35372
- for (var i = 0; i < roomlist.length; i++) {
35373
- var notCached = true;
35374
- for (var j = 0; j < this.roomListInfo.length; j++) {
35375
- if (roomlist[i] == this.roomListInfo[j].codex) {
35376
- notCached = false;
35377
- break;
35378
- }
35379
- }
35380
- if (notCached) uncached.push(roomlist[i]);
35381
- }
35382
- return uncached;
35383
- }
35384
- */
35385
35491
  }, {
35386
35492
  key: "getStaticRoomList",
35387
35493
  value: function getStaticRoomList() {
@@ -35471,10 +35577,10 @@ var ViewPointHandler = /*#__PURE__*/function () {
35471
35577
  }, {
35472
35578
  key: "getVpInfoByRoomCodex",
35473
35579
  value: function getVpInfoByRoomCodex(roomCodex, vpName) {
35474
- var _this$vpInfosByRoom$g5;
35580
+ var _this$vpInfosByRoom$g;
35475
35581
  // roomCodex = roomCodex.toLowerCase();
35476
35582
  vpName = vpName.toLowerCase();
35477
- if (this.vpInfosByRoom.has(roomCodex) && (_this$vpInfosByRoom$g5 = this.vpInfosByRoom.get(roomCodex)) !== null && _this$vpInfosByRoom$g5 !== void 0 && _this$vpInfosByRoom$g5.has(vpName)) return this.vpInfosByRoom.get(roomCodex).get(vpName);
35583
+ if (this.vpInfosByRoom.has(roomCodex) && (_this$vpInfosByRoom$g = this.vpInfosByRoom.get(roomCodex)) !== null && _this$vpInfosByRoom$g !== void 0 && _this$vpInfosByRoom$g.has(vpName)) return this.vpInfosByRoom.get(roomCodex).get(vpName);
35478
35584
  return undefined;
35479
35585
  }
35480
35586
 
@@ -35497,17 +35603,6 @@ var ViewPointHandler = /*#__PURE__*/function () {
35497
35603
  }
35498
35604
  return undefined;
35499
35605
  }
35500
-
35501
- /**
35502
- * This function returns if the current room/VP enables navigation (e.g. weissraum).
35503
- * Static background rooms disable navigation
35504
- */
35505
- /*
35506
- public curVPHasStaticBG(): boolean {
35507
- let vpInfo = this.getVPInfo(this.curRoomCodex, this.curViewPointName);
35508
- if (vpInfo != undefined) return vpInfo.isStatic;
35509
- return false;
35510
- }*/
35511
35606
  }, {
35512
35607
  key: "getCurRoomlistVP",
35513
35608
  value: function getCurRoomlistVP() {
@@ -35538,7 +35633,7 @@ var ViewPointHandler = /*#__PURE__*/function () {
35538
35633
  }, {
35539
35634
  key: "getDefaultRoom",
35540
35635
  value: function getDefaultRoom() {
35541
- return this.defaultWhiteroom;
35636
+ return this.whiteroom;
35542
35637
  }
35543
35638
  }, {
35544
35639
  key: "getCurVPIsStart",
@@ -35679,6 +35774,7 @@ var Rendering = /*#__PURE__*/function () {
35679
35774
  }, {
35680
35775
  key: "hasUIInfosOfElement",
35681
35776
  value: function hasUIInfosOfElement(setId, elementid) {
35777
+ if (this.hasStaticBackground) return false; //when the rendering has static background, no UI Info is loaded d
35682
35778
  if (this.uiInfo[setId] == undefined && this.uiInfo['S1'] != undefined) {
35683
35779
  return this.uiInfo['S1']['E' + elementid] != undefined;
35684
35780
  } else {
@@ -35808,20 +35904,29 @@ var Rendering = /*#__PURE__*/function () {
35808
35904
  return undefined;
35809
35905
  }
35810
35906
  }, {
35811
- key: "getUnityCamPos",
35812
- value: function getUnityCamPos() {
35813
- return new Vector3(parseFloat(this.uiInfo['CAM']['X']), parseFloat(this.uiInfo['CAM']['Y']), parseFloat(this.uiInfo['CAM']['Z']));
35907
+ key: "getCamInfo",
35908
+ value: function getCamInfo() {
35909
+ if (!this.uiInfo['CAM']) return undefined;
35910
+ return this.uiInfo['CAM'];
35814
35911
  }
35815
35912
  }, {
35816
- key: "getUnityCamRot",
35817
- value: function getUnityCamRot() {
35818
- var quatVec = new Vector4(parseFloat(this.uiInfo['CAM']['QX']), parseFloat(this.uiInfo['CAM']['QY']), parseFloat(this.uiInfo['CAM']['QZ']), parseFloat(this.uiInfo['CAM']['QW']));
35819
- return quatVec;
35820
- }
35821
- }, {
35822
- key: "getUnityFOV",
35823
- value: function getUnityFOV() {
35824
- return parseFloat(this.uiInfo['CAM']['FOV']);
35913
+ key: "getCamCubeRotation",
35914
+ value: function getCamCubeRotation() {
35915
+ if (this.getCamInfo() == undefined) return {
35916
+ rotHoriDeg: 0,
35917
+ rotVertDeg: 0
35918
+ };
35919
+ var camInfo = this.getCamInfo();
35920
+ var dirVec = new Vector3(camInfo.targetPos.x - camInfo.pos.x, camInfo.targetPos.y - camInfo.pos.y, camInfo.targetPos.z - camInfo.pos.z);
35921
+ var rotHori_rad = Math.atan2(dirVec.x, dirVec.z);
35922
+ var rotHori = rotHori_rad * 180 / Math.PI;
35923
+ rotHori = -((rotHori - 180) % 360);
35924
+ var rotVert_rad = Math.atan2(dirVec.y, Math.sqrt(Math.pow(dirVec.x, 2) + Math.pow(dirVec.z, 2)));
35925
+ var rotVert = -(rotVert_rad * 180 / Math.PI);
35926
+ return {
35927
+ rotHoriDeg: rotHori,
35928
+ rotVertDeg: rotVert
35929
+ };
35825
35930
  }
35826
35931
  }, {
35827
35932
  key: "get3DDimInfo",
@@ -36259,27 +36364,24 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36259
36364
  value: (function () {
36260
36365
  var _initializeViewPoint = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(standardWhiteRoom) {
36261
36366
  var _this$connectionHandl;
36262
- var res, info;
36367
+ var res;
36263
36368
  return _regeneratorRuntime.wrap(function _callee$(_context) {
36264
36369
  while (1) switch (_context.prev = _context.next) {
36265
36370
  case 0:
36266
36371
  if ((_this$connectionHandl = this.connectionHandler) !== null && _this$connectionHandl !== void 0 && _this$connectionHandl.getConnectionReady()) {
36267
- _context.next = 4;
36372
+ _context.next = 3;
36268
36373
  break;
36269
36374
  }
36270
36375
  this.todoAfterLogin.initViewPoint.doUpdate = true;
36271
- this.todoAfterLogin.initViewPoint.stdWhiteRoom = standardWhiteRoom;
36272
36376
  return _context.abrupt("return");
36273
- case 4:
36377
+ case 3:
36274
36378
  this.todoAfterLogin.initViewPoint.doUpdate = false;
36275
- this.viewPointHandler.setDefaultWhiteroom(standardWhiteRoom);
36276
- _context.next = 8;
36379
+ _context.next = 6;
36277
36380
  return this.connectionHandler.getViewPointInfo(this.viewPointHandler.getCurViewPointName(), standardWhiteRoom);
36278
- case 8:
36381
+ case 6:
36279
36382
  res = _context.sent;
36280
- if (res) info = this.viewPointHandler.setVpInfoByRoomCodex(standardWhiteRoom, this.viewPointHandler.getCurViewPointName(), res);
36281
- if (info && this.setRotationOfOrbitCube) this.setRotationOfOrbitCube(this.viewPointHandler.getCurRoomCodex() == standardWhiteRoom ? true : false, info.CRH, info.CRV);
36282
- case 11:
36383
+ if (res) this.viewPointHandler.setVpInfoByRoomCodex(standardWhiteRoom, this.viewPointHandler.getCurViewPointName(), res);
36384
+ case 8:
36283
36385
  case "end":
36284
36386
  return _context.stop();
36285
36387
  }
@@ -36377,7 +36479,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36377
36479
  while (1) switch (_context3.prev = _context3.next) {
36378
36480
  case 0:
36379
36481
  _context3.next = 2;
36380
- return import('./Host3DSignalR-b98770f5.js');
36482
+ return import('./Host3DSignalR-1b45e08f.js');
36381
36483
  case 2:
36382
36484
  _yield$import = _context3.sent;
36383
36485
  Host3DSignalR = _yield$import["default"];
@@ -36550,6 +36652,14 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36550
36652
  value: function updatePlannerRendering(rendering) {
36551
36653
  if (this.lastRequestedRenderHash != rendering.RenderHash) return;
36552
36654
  this.currRendering = rendering;
36655
+
36656
+ //Update cube rotation
36657
+ if (rendering.getCamInfo() != undefined && this.setRotationOfOrbitCube) {
36658
+ //now update the rotation of the orbit cube
36659
+ //Update orbit cube
36660
+ var cubeRotInfo = rendering.getCamCubeRotation();
36661
+ this.setRotationOfOrbitCube(false, cubeRotInfo.rotHoriDeg, cubeRotInfo.rotVertDeg);
36662
+ }
36553
36663
  if (rendering.MediaServiceSaveMode == 'PERMANENT') {
36554
36664
  if (rendering.getIsAlternateRendering()) this.addAlternateRenderingToSavedAlternateRenderings(rendering);else this.lastSavedRendering = rendering;
36555
36665
  }
@@ -36875,7 +36985,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36875
36985
  requestHqRenderScriptFrom3DHost = false;
36876
36986
  if (params.doRequestHqRenderScript) {
36877
36987
  rendering = this.hqRenderScriptCache.get(planningHash);
36878
- if (rendering && !params.useLatestCamera) {
36988
+ if (rendering && !params.useLatestHybridInfo) {
36879
36989
  LOG$4.debug('Get HQRenderScript from cache');
36880
36990
  this.lastSavedHQRenderScript = JSON.parse(rendering.HQRenderScript);
36881
36991
  this.updatePlannerHqRenderScriptInView(rendering);
@@ -37063,7 +37173,6 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37063
37173
  key: "handle3DVisualizationChanged",
37064
37174
  value: function handle3DVisualizationChanged(mode, params) {
37065
37175
  var _params$nav3DZoom, _params$nav3DZoom2, _params$nav3DZoom3, _params$nav3DSwipe, _params$nav3DSwipe2, _params$nav3DSwipe3, _params$nav3DSwipe4;
37066
- var info;
37067
37176
  switch (mode) {
37068
37177
  case 'Nav3DFullScreen':
37069
37178
  break;
@@ -37091,20 +37200,12 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37091
37200
  this.viewPointHandler.focusOnElementId(params.nav3DFocus.setId, params.nav3DFocus.focusElementId);
37092
37201
  break;
37093
37202
  case 'Nav3DPlannerMode':
37094
- // this.viewPointHandler.resetViewPoint();
37095
- info = this.viewPointHandler.setVpName('Start');
37096
- if (info && this.setRotationOfOrbitCube) {
37097
- this.setRotationOfOrbitCube(true, info.rotHori, info.rotVert);
37098
- }
37203
+ this.viewPointHandler.resetViewPoint();
37204
+ this.viewPointHandler.setVpName('Start');
37099
37205
  break;
37100
37206
  case 'Nav3DSetVPByName':
37101
- if (params.nav3DSetVPByName.clearNav) {
37102
- this.viewPointHandler.resetViewPoint();
37103
- }
37104
- info = this.viewPointHandler.setVpName(params.nav3DSetVPByName.vpName);
37105
- if (info && info.updateOrbitCube && this.setRotationOfOrbitCube) {
37106
- this.setRotationOfOrbitCube(true, info.rotHori, info.rotVert);
37107
- }
37207
+ this.viewPointHandler.resetViewPoint();
37208
+ this.viewPointHandler.setVpName(params.nav3DSetVPByName.vpName);
37108
37209
  break;
37109
37210
  case 'Nav3DSetVPByVal':
37110
37211
  this.viewPointHandler.setVpByVal(params.nav3DSetVPByVal.rotX, params.nav3DSetVPByVal.rotY);
@@ -37116,7 +37217,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37116
37217
  this.handleStaticVP(params.staticVP.codex);
37117
37218
  break;
37118
37219
  case 'Nav3DResetNavParams':
37119
- this.handleStaticVP('Start');
37220
+ this.viewPointHandler.resetViewPoint();
37221
+ this.viewPointHandler.setVpName('Start');
37120
37222
  break;
37121
37223
  }
37122
37224
  }
@@ -37127,11 +37229,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37127
37229
  }, {
37128
37230
  key: "resetNav3D",
37129
37231
  value: function resetNav3D() {
37130
- var resetInfo = this.viewPointHandler.resetViewPoint();
37131
- if (resetInfo.updateOrbitCube) {
37132
- var _this$setRotationOfOr;
37133
- (_this$setRotationOfOr = this.setRotationOfOrbitCube) === null || _this$setRotationOfOr === void 0 || _this$setRotationOfOr.call(this, true, resetInfo.rotHori, resetInfo.rotVert);
37134
- }
37232
+ this.viewPointHandler.resetViewPoint();
37135
37233
  }
37136
37234
 
37137
37235
  /**
@@ -37708,7 +37806,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37708
37806
  */
37709
37807
  _defineProperty(this, "noRenderClientFound", function (doMakeRendering, doMakeHQRenderScript, width, height, isFullscreenRendering, planner3DGridEnabled, doShow3DDimensionLines, plannerMeasureDigits, alternateRendererInfo, alternateRenderingsExist) {
37710
37808
  LOG$2.debug('noRenderClientFound - Request rendering again by sending all planningData');
37711
- _this.request3D(doMakeRendering, doMakeHQRenderScript, true, !!alternateRenderingsExist, alternateRendererInfo, true, {
37809
+ _this.request3D(doMakeRendering, doMakeHQRenderScript, !!alternateRenderingsExist, alternateRendererInfo, true, {
37712
37810
  width: width,
37713
37811
  height: height,
37714
37812
  isFullscreenRendering: isFullscreenRendering,
@@ -37757,7 +37855,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37757
37855
  updatePlannerRendering: this.plannerHandlerFunctions.updatePlannerRendering,
37758
37856
  updatePlannerHqRenderScriptInView: this.plannerHandlerFunctions.updatePlannerHqRenderScript,
37759
37857
  setRotationOrbitCubeCallback: this.plannerHandlerFunctions.setRotationOrbitCube,
37760
- onRoomListLoaded: this.plannerHandlerFunctions.onRoomListLoaded
37858
+ onRoomListLoaded: this.plannerHandlerFunctions.onRoomListLoaded,
37859
+ updateCamInfo: this.plannerHandlerFunctions.updateCamInfo
37761
37860
  });
37762
37861
  this.handler3D.setJwt(initSetState.api.getJwt());
37763
37862
  //Only use if only 1 Planner/Set is used. Not possible in setPlanner
@@ -37936,7 +38035,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37936
38035
  break;
37937
38036
  case 8:
37938
38037
  _context4.next = 10;
37939
- return import('./DivaStandardPlanner-3144203b.js');
38038
+ return import('./DivaStandardPlanner-9b694f4b.js');
37940
38039
  case 10:
37941
38040
  _yield$import = _context4.sent;
37942
38041
  DivaStandardPlanner = _yield$import["default"];
@@ -37947,7 +38046,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37947
38046
  return _context4.abrupt("break", 21);
37948
38047
  case 15:
37949
38048
  _context4.next = 17;
37950
- return import('./DivaBoxPlanner-18367f59.js');
38049
+ return import('./DivaBoxPlanner-aa4bc780.js');
37951
38050
  case 17:
37952
38051
  _yield$import2 = _context4.sent;
37953
38052
  DivaBoxPlanner = _yield$import2["default"];
@@ -38220,7 +38319,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38220
38319
  case 0:
38221
38320
  DivaUtils.startSpanOfApm('DivaPlannerHandler saveSetHQRenderScript');
38222
38321
  _context9.next = 3;
38223
- return this.request3D(false, true, true);
38322
+ return this.request3D(false, true);
38224
38323
  case 3:
38225
38324
  hashes = _context9.sent;
38226
38325
  if (hashes) {
@@ -38277,7 +38376,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38277
38376
  break;
38278
38377
  }
38279
38378
  _context10.next = 4;
38280
- return this.request3D(true, false, true, false, undefined, true, {
38379
+ return this.request3D(true, false, false, undefined, true, {
38281
38380
  width: 100,
38282
38381
  height: 100,
38283
38382
  isFullscreenRendering: false,
@@ -38690,7 +38789,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38690
38789
  key: "handle3DVisualizationChanged",
38691
38790
  value: function handle3DVisualizationChanged(mode, params, doShow3DDimensionLines, alternateRenderingsExist) {
38692
38791
  if (mode == 'Nav3DFullScreen') {
38693
- this.request3D(true, false, true, alternateRenderingsExist, undefined, false, {
38792
+ this.request3D(true, false, alternateRenderingsExist, undefined, false, {
38694
38793
  width: params.nav3DFullScreen.renderWidth,
38695
38794
  height: params.nav3DFullScreen.renderHeight,
38696
38795
  isFullscreenRendering: true,
@@ -38730,7 +38829,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38730
38829
  }, {
38731
38830
  key: "request3D",
38732
38831
  value: function () {
38733
- var _request3D = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(doRequestRendering, doRequestHqRenderScript, useLatestCamera, alternateRenderingsExist, alternateRenderInfo, forceReloadPlanning, renderRequestInfos, hybrid3DInfo) {
38832
+ var _request3D = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(doRequestRendering, doRequestHqRenderScript, alternateRenderingsExist, alternateRenderInfo, forceReloadPlanning, renderRequestInfos, hybrid3DInfo, useLatestHybridInfo) {
38734
38833
  var _this3 = this;
38735
38834
  var plannerData, loadedCatData, plannerExists, savedSetId;
38736
38835
  return _regeneratorRuntime.wrap(function _callee16$(_context16) {
@@ -38802,7 +38901,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38802
38901
  alternateRenderInfo: alternateRenderInfo,
38803
38902
  alternateRenderingsExist: alternateRenderingsExist,
38804
38903
  hybrid3DInfo: hybrid3DInfo,
38805
- useLatestCamera: useLatestCamera
38904
+ useLatestHybridInfo: useLatestHybridInfo
38806
38905
  });
38807
38906
  case 18:
38808
38907
  return _context16.abrupt("return", _context16.sent);
@@ -38888,6 +38987,31 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38888
38987
  value: function updateCamPosition(cam) {
38889
38988
  return this.handler3D.updateCamPosition(cam);
38890
38989
  }
38990
+ }, {
38991
+ key: "clonePlannerHandler",
38992
+ value: function clonePlannerHandler(set, origSet) {
38993
+ var _this6 = this;
38994
+ var clone = new DivaPlannerHandler(true);
38995
+ clone.initPlanner(set.getSetState, {
38996
+ updatePlannerRendering: function updatePlannerRendering() {},
38997
+ updatePlannerHqRenderScript: function updatePlannerHqRenderScript() {},
38998
+ setRotationOrbitCube: function setRotationOrbitCube() {},
38999
+ onRoomListLoaded: function onRoomListLoaded() {},
39000
+ getOrigConfiguration: function getOrigConfiguration() {
39001
+ return {};
39002
+ },
39003
+ doAllowSetPlanner: function doAllowSetPlanner() {
39004
+ return false;
39005
+ },
39006
+ updatePlannerMsgContainer: function updatePlannerMsgContainer() {}
39007
+ });
39008
+ var setData = DivaUtils.encodeBase64(JSON.stringify(set.plannerHandler.savePlanner(origSet.getSetId())));
39009
+ this.plannerList.forEach(function (v) {
39010
+ clone.plannerList.set(set.getSetId(), v.clonePlanner(set, _this6.plannerIDCount, setData));
39011
+ _this6.plannerIDCount++;
39012
+ });
39013
+ return clone;
39014
+ }
38891
39015
  }]);
38892
39016
  }();
38893
39017
 
@@ -38964,9 +39088,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
38964
39088
  });
38965
39089
  _defineProperty(this, "api", void 0);
38966
39090
  _defineProperty(this, "setHQRenderScript", void 0);
39091
+ _defineProperty(this, "setCamInfo", void 0);
38967
39092
  _defineProperty(this, "initializationType", void 0);
38968
39093
  _defineProperty(this, "getPlannerHandlerFunctions", function () {
38969
39094
  return {
39095
+ updateCamInfo: _this.setCamInfo,
38970
39096
  updatePlannerRendering: _this.updatePlannerRendering,
38971
39097
  updatePlannerHqRenderScript: _this.updatePlannerHqRenderScript,
38972
39098
  setRotationOrbitCube: _this.setRotationOrbitCube,
@@ -39704,7 +39830,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39704
39830
  case 29:
39705
39831
  set = this.actSet();
39706
39832
  oldProductId = this.divaBasketHandler.actBasket.MatchingProductId || this.divaBasketHandler.actBasket.OrigProductId;
39707
- if (!(oldProductId && set)) {
39833
+ if (!(oldProductId && set && set !== null && set !== void 0 && set.api.doCheckForProductsPrice())) {
39708
39834
  _context13.next = 38;
39709
39835
  break;
39710
39836
  }
@@ -40161,6 +40287,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40161
40287
  value: function registerSetHQRenderScript(setHQRenderScript) {
40162
40288
  this.setHQRenderScript = setHQRenderScript;
40163
40289
  }
40290
+ }, {
40291
+ key: "registerSetCamInfo",
40292
+ value: function registerSetCamInfo(setCamInfo) {
40293
+ this.setCamInfo = setCamInfo;
40294
+ }
40164
40295
 
40165
40296
  /**
40166
40297
  * This function is called when the planner view should be updated
@@ -40210,7 +40341,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40210
40341
  focus: hybridInfo.focus,
40211
40342
  forceRTCam: true,
40212
40343
  currentCamera: hybridInfo.currentCamera
40213
- } : undefined);
40344
+ } : undefined, callingFrom == 'HANDLE_3D_VIS_CHANGED' ? false : true // handle 3d vis changed = start viepointtrue,
40345
+ );
40214
40346
  break;
40215
40347
  case 'RTViewer':
40216
40348
  //Request HQRenderscript + rendering
@@ -40258,7 +40390,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40258
40390
  }
40259
40391
  }
40260
40392
  }
40261
- setHandlerInstance.update3DPlannerView(true, !!this.doLoadHQR, set, this.getPlannerRenderingSize(), false, renderSavingMode, (_this$getDoShow3DDime7 = this.getDoShow3DDimensionLines) === null || _this$getDoShow3DDime7 === void 0 ? void 0 : _this$getDoShow3DDime7.call(this));
40393
+ setHandlerInstance.update3DPlannerView(true, !!this.doLoadHQR, set, this.getPlannerRenderingSize(), false, renderSavingMode, (_this$getDoShow3DDime7 = this.getDoShow3DDimensionLines) === null || _this$getDoShow3DDime7 === void 0 ? void 0 : _this$getDoShow3DDime7.call(this), undefined, undefined, false);
40262
40394
  }
40263
40395
  }
40264
40396
  }, {
@@ -40593,6 +40725,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40593
40725
  value: function eventIsManagedByClient(event) {
40594
40726
  return this.api.eventIsManagedByClient(event);
40595
40727
  }
40728
+ }, {
40729
+ key: "showModal",
40730
+ value: function showModal(data) {
40731
+ var _this$actions21;
40732
+ (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.openModal(data);
40733
+ }
40596
40734
  }, {
40597
40735
  key: "logGA",
40598
40736
  value: function logGA(action) {
@@ -40610,25 +40748,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40610
40748
  }, {
40611
40749
  key: "callEvent",
40612
40750
  value: function callEvent(event, param) {
40613
- var _this$actions21, _this$actions22, _this$actions23, _this$actions24;
40751
+ var _this$actions22, _this$actions23, _this$actions24, _this$actions25;
40614
40752
  switch (event) {
40615
40753
  case 'onFullscreenClose':
40616
- (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.onEvent({
40754
+ (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40617
40755
  type: 'onFullscreenClose'
40618
40756
  });
40619
40757
  break;
40620
40758
  case 'onWebPlanerClose':
40621
- (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40759
+ (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40622
40760
  type: 'onWebPlanerClose'
40623
40761
  });
40624
40762
  break;
40625
40763
  case 'onWebPlanerHelp':
40626
- (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40764
+ (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40627
40765
  type: 'onWebPlanerHelp'
40628
40766
  });
40629
40767
  break;
40630
40768
  case 'onWebPlanerZoomClick':
40631
- (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40769
+ (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40632
40770
  type: 'onWebPlanerZoomClick',
40633
40771
  data: param
40634
40772
  });
@@ -40639,14 +40777,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40639
40777
  key: "saveToBasketWrapper",
40640
40778
  value: function () {
40641
40779
  var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(event, repairOnly, force) {
40642
- var _this$actions26,
40643
- _this$actions26$toggl,
40644
- _this$actions27,
40780
+ var _this$actions27,
40645
40781
  _this$actions27$toggl,
40782
+ _this$actions28,
40783
+ _this$actions28$toggl,
40646
40784
  _this2 = this,
40647
- _this$actions31,
40785
+ _this$actions32,
40648
40786
  _this$i18n14;
40649
- var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, _this$actions25, result, _this$actions28, _this$i18n8, _this$i18n9, _this$actions29, _this$i18n10, _this$i18n11, _this$actions30, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40787
+ var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, _this$actions26, result, _this$actions29, _this$i18n8, _this$i18n9, _this$actions30, _this$i18n10, _this$i18n11, _this$actions31, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40650
40788
  return _regeneratorRuntime.wrap(function _callee25$(_context25) {
40651
40789
  while (1) switch (_context25.prev = _context25.next) {
40652
40790
  case 0:
@@ -40685,25 +40823,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40685
40823
  _context25.next = 20;
40686
40824
  break;
40687
40825
  }
40688
- (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40826
+ (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
40689
40827
  type: finalEvent.event
40690
40828
  });
40691
40829
  return _context25.abrupt("return", 'canceled');
40692
40830
  case 20:
40693
40831
  returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40694
40832
  case 21:
40695
- (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || (_this$actions26$toggl = _this$actions26.toggleLoading) === null || _this$actions26$toggl === void 0 || _this$actions26$toggl.call(_this$actions26, 'Planner_Saving', false, true);
40833
+ (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || (_this$actions27$toggl = _this$actions27.toggleLoading) === null || _this$actions27$toggl === void 0 || _this$actions27$toggl.call(_this$actions27, 'Planner_Saving', false, true);
40696
40834
  _context25.next = 24;
40697
40835
  return this.saveToBasket(finalEvent.event, repairOnly, force);
40698
40836
  case 24:
40699
40837
  result = _context25.sent;
40700
- (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || (_this$actions27$toggl = _this$actions27.toggleLoading) === null || _this$actions27$toggl === void 0 || _this$actions27$toggl.call(_this$actions27, 'Planner_Saving', false, false);
40838
+ (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || (_this$actions28$toggl = _this$actions28.toggleLoading) === null || _this$actions28$toggl === void 0 || _this$actions28$toggl.call(_this$actions28, 'Planner_Saving', false, false);
40701
40839
  if (!(result === 'canceled')) {
40702
40840
  _context25.next = 30;
40703
40841
  break;
40704
40842
  }
40705
40843
  LOG$1.error(new DivaError('failed to save Basket'));
40706
- (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
40844
+ (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40707
40845
  text: ((_this$i18n8 = this.i18n()) === null || _this$i18n8 === void 0 ? void 0 : _this$i18n8.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n9 = this.i18n()) === null || _this$i18n9 === void 0 ? void 0 : _this$i18n9.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
40708
40846
  accept: true
40709
40847
  });
@@ -40717,12 +40855,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40717
40855
  LOG$1.error(new DivaError('PDF url is missing in basket', {
40718
40856
  code: 'WC_0010'
40719
40857
  }));
40720
- (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40858
+ (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40721
40859
  text: ((_this$i18n10 = this.i18n()) === null || _this$i18n10 === void 0 ? void 0 : _this$i18n10.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n11 = this.i18n()) === null || _this$i18n11 === void 0 ? void 0 : _this$i18n11.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
40722
40860
  accept: true
40723
40861
  });
40724
40862
  } else {
40725
- (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40863
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40726
40864
  text: (_this$i18n12 = this.i18n()) === null || _this$i18n12 === void 0 ? void 0 : _this$i18n12.t(this.divaBasketHandler.actBasket.Status === 'ORDER' ? 'modal.open_order_pdf_now' : 'modal.open_leaflet_pdf_now'),
40727
40865
  accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
40728
40866
  callback: function callback() {
@@ -40732,7 +40870,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40732
40870
  }
40733
40871
  return _context25.abrupt("break", 36);
40734
40872
  case 35:
40735
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40873
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
40736
40874
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
40737
40875
  accept: true
40738
40876
  });
@@ -40760,7 +40898,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40760
40898
  key: "saveToBasket",
40761
40899
  value: function () {
40762
40900
  var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
40763
- var _returnTo, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34, _this$divaBasketHandl2;
40901
+ var _returnTo, _returnTo2, _returnTo3, _this$actions33, _this$actions34, _this$actions35, _this$divaBasketHandl2;
40764
40902
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
40765
40903
  return _regeneratorRuntime.wrap(function _callee26$(_context26) {
40766
40904
  while (1) switch (_context26.prev = _context26.next) {
@@ -40817,8 +40955,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40817
40955
  _context26.next = _context26.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 28 : _context26.t3 === 'OPEN_SELLER_BASKET' ? 31 : _context26.t3 === 'OPEN_PDF' ? 33 : _context26.t3 === 'SAVE_BASKET_WITH_MODAL' ? 33 : _context26.t3 === 'SAVE_BASKET' ? 33 : _context26.t3 === 'SAVE_BASKET_SYNC' ? 33 : _context26.t3 === 'OPEN_LEAFLET_BARRIER' ? 33 : 52;
40818
40956
  break;
40819
40957
  case 28:
40820
- (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.toggleLoading('buildScene', false, false);
40821
- (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
40958
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.toggleLoading('buildScene', false, false);
40959
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40822
40960
  type: 'SELLER',
40823
40961
  parameters: {
40824
40962
  module: 'PCreator',
@@ -40830,7 +40968,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40830
40968
  });
40831
40969
  return _context26.abrupt("break", 52);
40832
40970
  case 31:
40833
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40971
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
40834
40972
  type: 'SELLER',
40835
40973
  parameters: {
40836
40974
  module: 'Basket',
@@ -40944,7 +41082,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40944
41082
  }
40945
41083
  }
40946
41084
  if (plannerType === 'JUMP_OVER_PLANNER') {
40947
- ret = 'PLANNER';
41085
+ if (doShowPlanner) ret = 'PLANNER';
40948
41086
  plannerType = undefined;
40949
41087
  }
40950
41088
  if (plannerType === 'CUSTOMER_OPTIMIZED_PLANNER') {
@@ -40968,7 +41106,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40968
41106
  }
40969
41107
  if (plannerType) return plannerType;
40970
41108
  if (doShowPlanner) {
40971
- // deprected; plannerType should only be used
40972
41109
  ret = 'PLANNER';
40973
41110
  }
40974
41111
  return ret;
@@ -41154,17 +41291,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41154
41291
  key: "addToBasket",
41155
41292
  value: function () {
41156
41293
  var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(actBasket) {
41157
- var _this$actions35,
41158
- _this$actions36,
41294
+ var _this$actions36,
41159
41295
  _this$actions37,
41160
41296
  _this$actions38,
41161
41297
  _this$actions39,
41298
+ _this$actions40,
41162
41299
  _this$divaBasketHandl4,
41163
41300
  _this3 = this,
41164
- _this$actions40,
41165
41301
  _this$actions41,
41166
41302
  _this$actions42,
41167
- _this$actions43;
41303
+ _this$actions43,
41304
+ _this$actions44;
41168
41305
  var event,
41169
41306
  emailConfig,
41170
41307
  _emailConfig$to$split,
@@ -41181,31 +41318,31 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41181
41318
  _context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 7 : _context28.t0 === 'onWebPlanerShare' ? 9 : _context28.t0 === 'onRequestConsulation' ? 11 : _context28.t0 === 'onSave' ? 13 : _context28.t0 === 'onSendEmail' ? 15 : _context28.t0 === 'onSaveProduct' ? 20 : _context28.t0 === 'dontSaveBasket' ? 27 : _context28.t0 === 'onAddToBasket' ? 28 : 30;
41182
41319
  break;
41183
41320
  case 5:
41184
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
41321
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41185
41322
  type: 'onWebPlanerPrint',
41186
41323
  data: actBasket.getAsJson()
41187
41324
  });
41188
41325
  return _context28.abrupt("break", 32);
41189
41326
  case 7:
41190
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41327
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41191
41328
  type: 'onWebPlanerSave',
41192
41329
  data: actBasket.getAsJson()
41193
41330
  });
41194
41331
  return _context28.abrupt("break", 32);
41195
41332
  case 9:
41196
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41333
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41197
41334
  type: 'onWebPlanerShare',
41198
41335
  data: actBasket.getAsJson()
41199
41336
  });
41200
41337
  return _context28.abrupt("break", 32);
41201
41338
  case 11:
41202
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41339
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41203
41340
  type: 'onRequestConsulation',
41204
41341
  data: actBasket.getAsJson()
41205
41342
  });
41206
41343
  return _context28.abrupt("break", 32);
41207
41344
  case 13:
41208
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41345
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41209
41346
  type: 'onSave',
41210
41347
  data: actBasket.getAsJson()
41211
41348
  });
@@ -41240,7 +41377,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41240
41377
  });
41241
41378
  });
41242
41379
  }
41243
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41380
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41244
41381
  type: 'onAddToBasket',
41245
41382
  data: actBasket.getAsJson()
41246
41383
  });
@@ -41251,7 +41388,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41251
41388
  return this.api.saveAsProduct(this.sets, actBasket);
41252
41389
  case 23:
41253
41390
  products = _context28.sent;
41254
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41391
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41255
41392
  type: 'onAddToBasket',
41256
41393
  data: actBasket.getAsJson()
41257
41394
  });
@@ -41262,13 +41399,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41262
41399
  return _context28.abrupt("return", products[0]);
41263
41400
  case 27:
41264
41401
  case 28:
41265
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41402
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41266
41403
  type: 'onAddToBasket',
41267
41404
  data: actBasket.getAsJson()
41268
41405
  });
41269
41406
  return _context28.abrupt("break", 32);
41270
41407
  case 30:
41271
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41408
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
41272
41409
  type: event,
41273
41410
  data: actBasket.getAsJson()
41274
41411
  });
@@ -41289,8 +41426,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41289
41426
  }, {
41290
41427
  key: "openPDFpostAsEvent",
41291
41428
  value: function openPDFpostAsEvent(mongoDBId) {
41292
- var _this$actions44, _this$actions45, _this$actions46;
41293
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.updateBreadcrumbs({
41429
+ var _this$actions45, _this$actions46, _this$actions47;
41430
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41294
41431
  type: 'update',
41295
41432
  param: {
41296
41433
  groupId: 'SHOWROOM',
@@ -41304,7 +41441,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41304
41441
  }
41305
41442
  }
41306
41443
  });
41307
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41444
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.updateBreadcrumbs({
41308
41445
  type: 'update',
41309
41446
  param: {
41310
41447
  groupId: 'SHOWROOM',
@@ -41318,7 +41455,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41318
41455
  }
41319
41456
  }
41320
41457
  });
41321
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.openComponent({
41458
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.openComponent({
41322
41459
  type: 'REPORT',
41323
41460
  parameters: {
41324
41461
  id: mongoDBId
@@ -41538,14 +41675,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41538
41675
  }, {
41539
41676
  key: "subscribeToWebPlannerEvents",
41540
41677
  value: function subscribeToWebPlannerEvents() {
41541
- var _this$actions47;
41542
- (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.subscribeEvents(this.addToBasketEventFunction);
41678
+ var _this$actions48;
41679
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.subscribeEvents(this.addToBasketEventFunction);
41543
41680
  }
41544
41681
  }, {
41545
41682
  key: "unsubscribeFromWebPlannerEvents",
41546
41683
  value: function unsubscribeFromWebPlannerEvents() {
41547
- var _this$actions48;
41548
- (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.unSubscribeEvents(this.addToBasketEventFunction);
41684
+ var _this$actions49;
41685
+ (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.unSubscribeEvents(this.addToBasketEventFunction);
41549
41686
  }
41550
41687
  }, {
41551
41688
  key: "initApiForLogicOnly",
@@ -41613,7 +41750,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41613
41750
  }, {
41614
41751
  key: "initBasket",
41615
41752
  value: function () {
41616
- var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites, onlyCalcVariants) {
41753
+ var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites) {
41617
41754
  var initSetState, set, basket;
41618
41755
  return _regeneratorRuntime.wrap(function _callee31$(_context31) {
41619
41756
  while (1) switch (_context31.prev = _context31.next) {
@@ -41626,27 +41763,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41626
41763
  case 5:
41627
41764
  //TODO check if when basket gets repaired the product match gets called
41628
41765
  set = this.actSet();
41629
- if (set) set.onlyCalcVariants = onlyCalcVariants;
41630
41766
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
41631
41767
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
41632
- _context31.next = 11;
41768
+ _context31.next = 10;
41633
41769
  break;
41634
41770
  }
41635
- _context31.next = 11;
41771
+ _context31.next = 10;
41636
41772
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
41637
- case 11:
41638
- _context31.next = 13;
41773
+ case 10:
41774
+ _context31.next = 12;
41639
41775
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
41640
- case 13:
41776
+ case 12:
41641
41777
  basket = _context31.sent;
41642
41778
  return _context31.abrupt("return", basket);
41643
- case 15:
41779
+ case 14:
41644
41780
  case "end":
41645
41781
  return _context31.stop();
41646
41782
  }
41647
41783
  }, _callee31, this);
41648
41784
  }));
41649
- function initBasket(_x79, _x80, _x81) {
41785
+ function initBasket(_x79, _x80) {
41650
41786
  return _initBasket.apply(this, arguments);
41651
41787
  }
41652
41788
  return initBasket;
@@ -41723,7 +41859,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41723
41859
  }
41724
41860
  }, _callee33, this);
41725
41861
  }));
41726
- function handleFavorites(_x82) {
41862
+ function handleFavorites(_x81) {
41727
41863
  return _handleFavorites.apply(this, arguments);
41728
41864
  }
41729
41865
  return handleFavorites;
@@ -41777,7 +41913,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41777
41913
  }
41778
41914
  }, _callee34, this);
41779
41915
  }));
41780
- function initSapOrderLinesFromBasket(_x83, _x84, _x85) {
41916
+ function initSapOrderLinesFromBasket(_x82, _x83, _x84) {
41781
41917
  return _initSapOrderLinesFromBasket.apply(this, arguments);
41782
41918
  }
41783
41919
  return initSapOrderLinesFromBasket;
@@ -41844,7 +41980,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41844
41980
  var articleCodex = [];
41845
41981
  var accesoriesCodex = [];
41846
41982
  var articles = [];
41983
+ var actualBasketvalue = 0;
41847
41984
  if (set) {
41985
+ actualBasketvalue = set === null || set === void 0 ? void 0 : set.getSetPrice();
41848
41986
  for (var _i = 0, _Object$values = Object.values(set.getDivaArticles()); _i < _Object$values.length; _i++) {
41849
41987
  var article = _Object$values[_i];
41850
41988
  if (article.relatedToBasketId) {
@@ -41882,8 +42020,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41882
42020
  article_nested: articles
41883
42021
  }
41884
42022
  });
41885
- LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + this.getCurSetPrice(), {
41886
- basketValue: this.getCurSetPrice()
42023
+ LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + actualBasketvalue, {
42024
+ basketValue: actualBasketvalue
41887
42025
  });
41888
42026
  }
41889
42027
  }, {
@@ -41895,7 +42033,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41895
42033
  var allOpv = [];
41896
42034
  var latestOpv = {};
41897
42035
  var latestOpt = {};
42036
+ var actualBasketvalue = 0;
41898
42037
  if (set) {
42038
+ actualBasketvalue = set === null || set === void 0 ? void 0 : set.getSetPrice();
41899
42039
  if (myValues) {
41900
42040
  var _set$CatalogData$getO, _set$CatalogData$getO2;
41901
42041
  latestOpt = {
@@ -41975,8 +42115,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41975
42115
  configuration_nested: configuration
41976
42116
  }
41977
42117
  });
41978
- LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + this.getCurSetPrice(), {
41979
- basketValue: this.getCurSetPrice()
42118
+ LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + actualBasketvalue, {
42119
+ basketValue: actualBasketvalue
41980
42120
  });
41981
42121
  }
41982
42122
  }, {
@@ -42024,6 +42164,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42024
42164
  this.updateViewButtonsDependigOnConfigStructure = undefined;
42025
42165
  this.initViewApiDependencies = undefined;
42026
42166
  this.setHQRenderScript = undefined;
42167
+ this.setCamInfo = undefined;
42027
42168
  }
42028
42169
  }]);
42029
42170
  }();