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

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
@@ -43,8 +43,8 @@ var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
43
43
  })();
44
44
 
45
45
  var _excluded = ["type"];
46
- 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; }
47
- 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__default["default"](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; }
46
+ 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; }
47
+ 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__default["default"](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; }
48
48
  var LOG$h = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
49
49
  var JsonDataCache = /*#__PURE__*/function () {
50
50
  function JsonDataCache() {
@@ -249,8 +249,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
249
249
  if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig2 = this.apiConfig) !== null && _this$apiConfig2 !== void 0 && _this$apiConfig2.api2.web) {
250
250
  api2Url = this.apiConfig.api2.web;
251
251
  }
252
- _context2.t0 = _objectSpread$g;
253
- _context2.t1 = _objectSpread$g({}, init.config.headers);
252
+ _context2.t0 = _objectSpread$h;
253
+ _context2.t1 = _objectSpread$h({}, init.config.headers);
254
254
  _context2.t2 = {};
255
255
  _context2.next = 20;
256
256
  return this.getSessionGuid('V', undefined, this.OrganizationId, api2Url);
@@ -280,11 +280,12 @@ var DivaApiHandler = /*#__PURE__*/function () {
280
280
  key: "getDataCache",
281
281
  value: function () {
282
282
  var _getDataCache = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee3(queryString, cacheMD5, accountSessionGuid, useWebServiceApi, method, data) {
283
- var myQS, url, init, addSession, _this$apiConfig3, _this$apiConfig4, api2Url, result;
283
+ var _this$divaWebConfigDa, _this$divaWebConfigDa2, _this$divaWebConfigDa3;
284
+ var myQS, url, init, addSession, cacheHit, _this$apiConfig3, _this$apiConfig4, api2Url, result;
284
285
  return _regeneratorRuntime__default["default"].wrap(function _callee3$(_context3) {
285
286
  while (1) switch (_context3.prev = _context3.next) {
286
287
  case 0:
287
- myQS = DivaUtils.md5(queryString.toLowerCase()).toUpperCase();
288
+ myQS = DivaUtils.md5(queryString.toLowerCase() + ((_this$divaWebConfigDa = this.divaWebConfigData) !== null && _this$divaWebConfigDa !== void 0 && _this$divaWebConfigDa.addOrganizationIdToCacheKey ? this.OrganizationId : '')).toUpperCase();
288
289
  url = this.apiUrl(queryString, useWebServiceApi);
289
290
  init = {
290
291
  method: method,
@@ -292,80 +293,82 @@ var DivaApiHandler = /*#__PURE__*/function () {
292
293
  data: data !== null && data !== void 0 ? data : {}
293
294
  };
294
295
  addSession = true;
295
- if (!(this.jsonDataCache.get(myQS) || cacheMD5 && this.jsonDataCache.get(cacheMD5))) {
296
- _context3.next = 9;
296
+ cacheHit = this.jsonDataCache.get(myQS);
297
+ if (!cacheHit) {
298
+ _context3.next = 8;
297
299
  break;
298
300
  }
299
301
  LOG$h.debug('getDataFromInternalCache: ' + queryString);
300
- if (!this.jsonDataCache.get(myQS)) {
301
- _context3.next = 8;
302
+ return _context3.abrupt("return", cacheHit);
303
+ case 8:
304
+ if (!(cacheMD5 && this.jsonDataCache.get(cacheMD5) && !((_this$divaWebConfigDa2 = this.divaWebConfigData) !== null && _this$divaWebConfigDa2 !== void 0 && _this$divaWebConfigDa2.addOrganizationIdToCacheKey))) {
305
+ _context3.next = 11;
302
306
  break;
303
307
  }
304
- return _context3.abrupt("return", this.jsonDataCache.get(myQS));
305
- case 8:
308
+ LOG$h.debug('getDataFromInternalCache: ' + queryString);
306
309
  return _context3.abrupt("return", this.jsonDataCache.get(cacheMD5));
307
- case 9:
310
+ case 11:
308
311
  if (!addSession) {
309
- _context3.next = 31;
312
+ _context3.next = 33;
310
313
  break;
311
314
  }
312
315
  if (!useWebServiceApi) {
313
- _context3.next = 22;
316
+ _context3.next = 24;
314
317
  break;
315
318
  }
316
319
  if (!this.jwt) {
317
- _context3.next = 15;
320
+ _context3.next = 17;
318
321
  break;
319
322
  }
320
323
  init.config.headers = {
321
324
  Authorization: 'Bearer ' + this.jwt
322
325
  };
323
- _context3.next = 20;
326
+ _context3.next = 22;
324
327
  break;
325
- case 15:
328
+ case 17:
326
329
  if (!this.apiKey) {
327
- _context3.next = 19;
330
+ _context3.next = 21;
328
331
  break;
329
332
  }
330
333
  init.config.headers = {
331
334
  'X-API-KEY': this.apiKey
332
335
  };
333
- _context3.next = 20;
336
+ _context3.next = 22;
334
337
  break;
335
- case 19:
338
+ case 21:
336
339
  throw new Error('not jwt or API Key Found');
337
- case 20:
338
- _context3.next = 31;
339
- break;
340
340
  case 22:
341
+ _context3.next = 33;
342
+ break;
343
+ case 24:
341
344
  api2Url = (_this$apiConfig3 = this.apiConfig) === null || _this$apiConfig3 === void 0 ? void 0 : _this$apiConfig3.api2["default"];
342
345
  if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig4 = this.apiConfig) !== null && _this$apiConfig4 !== void 0 && _this$apiConfig4.api2.web) {
343
346
  api2Url = this.apiConfig.api2.web;
344
347
  }
345
348
  _context3.t0 = accountSessionGuid;
346
349
  if (_context3.t0) {
347
- _context3.next = 29;
350
+ _context3.next = 31;
348
351
  break;
349
352
  }
350
- _context3.next = 28;
353
+ _context3.next = 30;
351
354
  return this.getSessionGuid('V', undefined, this.OrganizationId, api2Url);
352
- case 28:
355
+ case 30:
353
356
  _context3.t0 = _context3.sent;
354
- case 29:
357
+ case 31:
355
358
  _context3.t1 = _context3.t0;
356
359
  init.config.headers = {
357
360
  sessionGuid: _context3.t1
358
361
  };
359
- case 31:
360
- _context3.next = 33;
361
- return this.fetchData(url, init);
362
362
  case 33:
363
+ _context3.next = 35;
364
+ return this.fetchData(url, init);
365
+ case 35:
363
366
  result = _context3.sent;
364
367
  if (method !== 'POST') this.jsonDataCache.set(myQS, result);
365
- if (cacheMD5) this.jsonDataCache.set(cacheMD5, result);
368
+ if (cacheMD5 && !((_this$divaWebConfigDa3 = this.divaWebConfigData) !== null && _this$divaWebConfigDa3 !== void 0 && _this$divaWebConfigDa3.addOrganizationIdToCacheKey)) this.jsonDataCache.set(cacheMD5, result);
366
369
  LOG$h.debug('getDataFromApi: ' + queryString);
367
370
  return _context3.abrupt("return", result);
368
- case 38:
371
+ case 40:
369
372
  case "end":
370
373
  return _context3.stop();
371
374
  }
@@ -449,7 +452,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
449
452
  dontLoadAdditionalModelInfos: data.dontLoadAdditionalModelInfos,
450
453
  arViewerUrl: data.arViewerUrl,
451
454
  useMask: data.useMask,
452
- loadProductBasketParams: data.loadProductBasketParams
455
+ loadProductBasketParams: data.loadProductBasketParams,
456
+ addOrganizationIdToCacheKey: data.addOrganizationIdToCacheKey
453
457
  };
454
458
  }
455
459
  }, {
@@ -485,8 +489,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
485
489
  }, {
486
490
  key: "getLoadProductBasketParams",
487
491
  value: function getLoadProductBasketParams() {
488
- var _this$divaWebConfigDa;
489
- return (_this$divaWebConfigDa = this.divaWebConfigData) === null || _this$divaWebConfigDa === void 0 ? void 0 : _this$divaWebConfigDa.loadProductBasketParams;
492
+ var _this$divaWebConfigDa4;
493
+ return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.loadProductBasketParams;
490
494
  }
491
495
  }, {
492
496
  key: "get3DServerUrl",
@@ -497,26 +501,26 @@ var DivaApiHandler = /*#__PURE__*/function () {
497
501
  }, {
498
502
  key: "doCheckForProductsPrice",
499
503
  value: function doCheckForProductsPrice() {
500
- var _this$divaWebConfigDa2;
501
- return (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.checkForProductsPrice;
504
+ var _this$divaWebConfigDa5;
505
+ return (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.checkForProductsPrice;
502
506
  }
503
507
  }, {
504
508
  key: "doCheckForProductsMatch",
505
509
  value: function doCheckForProductsMatch() {
506
- var _this$divaWebConfigDa3;
507
- return (_this$divaWebConfigDa3 = this.divaWebConfigData) === null || _this$divaWebConfigDa3 === void 0 ? void 0 : _this$divaWebConfigDa3.checkForProductsMatch;
510
+ var _this$divaWebConfigDa6;
511
+ return (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.checkForProductsMatch;
508
512
  }
509
513
  }, {
510
514
  key: "getReportConfigIdentifier",
511
515
  value: function getReportConfigIdentifier() {
512
- var _this$divaWebConfigDa4;
513
- return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.reportConfigIdentifier;
516
+ var _this$divaWebConfigDa7;
517
+ return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.reportConfigIdentifier;
514
518
  }
515
519
  }, {
516
520
  key: "getPrintOptions",
517
521
  value: function getPrintOptions() {
518
- var _this$divaWebConfigDa5;
519
- var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.reportConfig;
522
+ var _this$divaWebConfigDa8;
523
+ var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.reportConfig;
520
524
  return {
521
525
  Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
522
526
  PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
@@ -536,8 +540,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
536
540
  }, {
537
541
  key: "get3DRenderGroup",
538
542
  value: function get3DRenderGroup() {
539
- var _this$divaWebConfigDa6, _this$divaWebConfigDa7;
540
- return (_this$divaWebConfigDa6 = (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.diva3dRenderGroup) !== null && _this$divaWebConfigDa6 !== void 0 ? _this$divaWebConfigDa6 : '';
543
+ var _this$divaWebConfigDa9, _this$divaWebConfigDa10;
544
+ return (_this$divaWebConfigDa9 = (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3dRenderGroup) !== null && _this$divaWebConfigDa9 !== void 0 ? _this$divaWebConfigDa9 : '';
541
545
  }
542
546
  }, {
543
547
  key: "getServerId",
@@ -574,73 +578,74 @@ var DivaApiHandler = /*#__PURE__*/function () {
574
578
  }, {
575
579
  key: "getDiva3dStaticBGImage",
576
580
  value: function getDiva3dStaticBGImage() {
577
- var _this$divaWebConfigDa8;
578
- return (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.diva3dStaticBGImage;
581
+ var _this$divaWebConfigDa11;
582
+ return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.diva3dStaticBGImage;
579
583
  }
580
584
  }, {
581
585
  key: "getDiva3dStaticBGImage_DefaultRoomList",
582
586
  value: function getDiva3dStaticBGImage_DefaultRoomList() {
583
- var _this$divaWebConfigDa9, _this$divaWebConfigDa10;
584
- 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;
587
+ var _this$divaWebConfigDa12, _this$divaWebConfigDa13;
588
+ 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;
585
589
  }
586
590
  }, {
587
591
  key: "getDiva3DAllowDefaultCatRoomList",
588
592
  value: function getDiva3DAllowDefaultCatRoomList() {
589
- var _this$divaWebConfigDa11;
590
- return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.diva3DAllowDefaultCatRoomList;
593
+ var _this$divaWebConfigDa14;
594
+ return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.diva3DAllowDefaultCatRoomList;
591
595
  }
592
596
  }, {
593
597
  key: "doAllowSetPlanner",
594
598
  value: function doAllowSetPlanner() {
595
- var _this$divaWebConfigDa12;
596
- return (_this$divaWebConfigDa12 = this.divaWebConfigData) === null || _this$divaWebConfigDa12 === void 0 ? void 0 : _this$divaWebConfigDa12.doAllowSetPlanner;
599
+ var _this$divaWebConfigDa15;
600
+ return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.doAllowSetPlanner;
597
601
  }
598
602
  }, {
599
603
  key: "getHidePlanner",
600
604
  value: function getHidePlanner() {
601
- var _this$divaWebConfigDa13;
602
- return !!((_this$divaWebConfigDa13 = this.divaWebConfigData) !== null && _this$divaWebConfigDa13 !== void 0 && (_this$divaWebConfigDa13 = _this$divaWebConfigDa13.viewConfig) !== null && _this$divaWebConfigDa13 !== void 0 && _this$divaWebConfigDa13.hidePlanner);
605
+ var _this$divaWebConfigDa16;
606
+ return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && (_this$divaWebConfigDa16 = _this$divaWebConfigDa16.viewConfig) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.hidePlanner);
603
607
  }
604
608
  }, {
605
609
  key: "getEnableRTVUnityKombi",
606
610
  value: function getEnableRTVUnityKombi() {
607
- return !!this.organization.settings.enableRTV;
611
+ var _this$organization$se;
612
+ return !!((_this$organization$se = this.organization.settings) !== null && _this$organization$se !== void 0 && _this$organization$se.enableRTV);
608
613
  }
609
614
  }, {
610
615
  key: "getDoDisablePlanner2D",
611
616
  value: function getDoDisablePlanner2D() {
612
- var _this$divaWebConfigDa14;
613
- return !!((_this$divaWebConfigDa14 = this.divaWebConfigData) !== null && _this$divaWebConfigDa14 !== void 0 && _this$divaWebConfigDa14.doDisablePlanner2D);
617
+ var _this$divaWebConfigDa17;
618
+ return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.doDisablePlanner2D);
614
619
  }
615
620
  }, {
616
621
  key: "getRoomListInProduct",
617
622
  value: function getRoomListInProduct() {
618
- var _this$divaWebConfigDa15;
619
- return !!((_this$divaWebConfigDa15 = this.divaWebConfigData) !== null && _this$divaWebConfigDa15 !== void 0 && (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) !== null && _this$divaWebConfigDa15 !== void 0 && _this$divaWebConfigDa15.roomListInProduct);
623
+ var _this$divaWebConfigDa18;
624
+ return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && (_this$divaWebConfigDa18 = _this$divaWebConfigDa18.viewConfig) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.roomListInProduct);
620
625
  }
621
626
  }, {
622
627
  key: "getPlannerType",
623
628
  value: function getPlannerType() {
624
- var _this$divaWebConfigDa16;
625
- 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;
629
+ var _this$divaWebConfigDa19;
630
+ 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;
626
631
  }
627
632
  }, {
628
633
  key: "getLoadSupplierColors",
629
634
  value: function getLoadSupplierColors() {
630
- var _this$divaWebConfigDa17;
631
- return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.loadSupplierColors);
635
+ var _this$divaWebConfigDa20;
636
+ return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.loadSupplierColors);
632
637
  }
633
638
  }, {
634
639
  key: "showSelectionModeZero",
635
640
  value: function showSelectionModeZero() {
636
- var _this$divaWebConfigDa18;
637
- return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.showSelectionModeZero);
641
+ var _this$divaWebConfigDa21;
642
+ return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.showSelectionModeZero);
638
643
  }
639
644
  }, {
640
645
  key: "ruleDescSeperator",
641
646
  value: function ruleDescSeperator() {
642
- var _this$organization$se, _this$organization2;
643
- 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 : ', ';
647
+ var _this$organization$se2, _this$organization2;
648
+ 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 : ', ';
644
649
  // \n is escaped in url and therefore needs to be set via keyword
645
650
  if (seperator == 'newLine') return '\n';
646
651
  return seperator;
@@ -742,50 +747,50 @@ var DivaApiHandler = /*#__PURE__*/function () {
742
747
  }, {
743
748
  key: "getViewConfig",
744
749
  value: function getViewConfig() {
745
- var _this$divaWebConfigDa19;
746
- return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.viewConfig;
750
+ var _this$divaWebConfigDa22;
751
+ return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.viewConfig;
747
752
  }
748
753
  }, {
749
754
  key: "getEmailConfig",
750
755
  value: function getEmailConfig() {
751
- var _this$divaWebConfigDa20;
752
- return (_this$divaWebConfigDa20 = this.divaWebConfigData) === null || _this$divaWebConfigDa20 === void 0 ? void 0 : _this$divaWebConfigDa20.emailConfig;
756
+ var _this$divaWebConfigDa23;
757
+ return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.emailConfig;
753
758
  }
754
759
  }, {
755
760
  key: "getABTestCases",
756
761
  value: function getABTestCases() {
757
- var _this$divaWebConfigDa21, _this$divaWebConfigDa22;
758
- return (_this$divaWebConfigDa21 = (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.abTestCases) !== null && _this$divaWebConfigDa21 !== void 0 ? _this$divaWebConfigDa21 : [];
762
+ var _this$divaWebConfigDa24, _this$divaWebConfigDa25;
763
+ return (_this$divaWebConfigDa24 = (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.abTestCases) !== null && _this$divaWebConfigDa24 !== void 0 ? _this$divaWebConfigDa24 : [];
759
764
  }
760
765
  }, {
761
766
  key: "getBarrierConfig",
762
767
  value: function getBarrierConfig() {
763
- var _this$divaWebConfigDa23;
764
- return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.barrierConfig;
768
+ var _this$divaWebConfigDa26;
769
+ return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.barrierConfig;
765
770
  }
766
771
  }, {
767
772
  key: "getTemplateConfig",
768
773
  value: function getTemplateConfig() {
769
- var _this$divaWebConfigDa24;
770
- return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.templateConfig;
774
+ var _this$divaWebConfigDa27;
775
+ return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.templateConfig;
771
776
  }
772
777
  }, {
773
778
  key: "showDivaNr",
774
779
  value: function showDivaNr() {
775
- var _this$divaWebConfigDa25;
776
- return (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.showDivaNr;
780
+ var _this$divaWebConfigDa28;
781
+ return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.showDivaNr;
777
782
  }
778
783
  }, {
779
784
  key: "onErrorHandling",
780
785
  value: function onErrorHandling() {
781
- var _this$divaWebConfigDa26;
782
- return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.onErrorHandling;
786
+ var _this$divaWebConfigDa29;
787
+ return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.onErrorHandling;
783
788
  }
784
789
  }, {
785
790
  key: "diva3DRenderingDefault",
786
791
  value: function diva3DRenderingDefault() {
787
- var _this$divaWebConfigDa27;
788
- return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.diva3DRenderingDefault;
792
+ var _this$divaWebConfigDa30;
793
+ return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.diva3DRenderingDefault;
789
794
  }
790
795
  }, {
791
796
  key: "getJwt",
@@ -800,8 +805,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
800
805
  }, {
801
806
  key: "getUseMask",
802
807
  value: function getUseMask() {
803
- var _this$divaWebConfigDa28;
804
- return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.useMask;
808
+ var _this$divaWebConfigDa31;
809
+ return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.useMask;
805
810
  }
806
811
  }, {
807
812
  key: "apiUrl",
@@ -1316,14 +1321,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1316
1321
  }, {
1317
1322
  key: "dontLoadAdditionalModelInfos",
1318
1323
  get: function get() {
1319
- var _this$divaWebConfigDa29;
1320
- return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.dontLoadAdditionalModelInfos;
1324
+ var _this$divaWebConfigDa32;
1325
+ return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.dontLoadAdditionalModelInfos;
1321
1326
  }
1322
1327
  }, {
1323
1328
  key: "dontLoadCatalogEditorLiteMask",
1324
1329
  get: function get() {
1325
- var _this$divaWebConfigDa30;
1326
- return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.dontLoadCatalogEditorLiteMask;
1330
+ var _this$divaWebConfigDa33;
1331
+ return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadCatalogEditorLiteMask;
1327
1332
  }
1328
1333
  }, {
1329
1334
  key: "OrganizationId",
@@ -1758,7 +1763,8 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1758
1763
  }, {
1759
1764
  key: "isNotRelevant",
1760
1765
  get: function get() {
1761
- return this.opv.catalogOPV.isNotRelevant;
1766
+ var _this$opv$catalogOPV$, _this$ocd;
1767
+ 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);
1762
1768
  }
1763
1769
  }, {
1764
1770
  key: "vCodex",
@@ -2009,11 +2015,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
2009
2015
  }, {
2010
2016
  key: "metaDataView",
2011
2017
  get: function get() {
2012
- var _this$ocd;
2018
+ var _this$ocd2;
2013
2019
  return [].concat(_toConsumableArray__default["default"](this.opv.catalogOPV.metaDataView), [{
2014
2020
  codex: 'codex',
2015
2021
  name: '',
2016
- values: [((_this$ocd = this.ocd) !== null && _this$ocd !== void 0 ? _this$ocd : this.codex).replace('OPVOPV_', 'OPV_')],
2022
+ values: [((_this$ocd2 = this.ocd) !== null && _this$ocd2 !== void 0 ? _this$ocd2 : this.codex).replace('OPVOPV_', 'OPV_')],
2017
2023
  values_locales: []
2018
2024
  }]);
2019
2025
  }
@@ -15900,13 +15906,13 @@ var ralClassics = [{
15900
15906
  }];
15901
15907
 
15902
15908
  var OptionValueCatalogData = /*#__PURE__*/function () {
15903
- function OptionValueCatalogData(_codex, jsonOPV, catalog) {
15909
+ function OptionValueCatalogData(_codex, jsonOPV, catalogData) {
15904
15910
  var _this = this,
15905
- _catalog$catalogMask$,
15906
- _catalog$catalogMask,
15907
- _catalog$catalogMask2,
15911
+ _catalogData$catalogM,
15912
+ _catalogData$catalogM2,
15913
+ _catalogData$catalogM3,
15908
15914
  _optionvalues$_codex,
15909
- _mask$name$catalog$ap,
15915
+ _mask$name$catalogDat,
15910
15916
  _mask$name,
15911
15917
  _mask$name2,
15912
15918
  _mask$groupname$catal,
@@ -15969,12 +15975,12 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
15969
15975
  }
15970
15976
  return undefined;
15971
15977
  });
15972
- 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;
15978
+ 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;
15973
15979
  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;
15974
15980
  this.opv = {
15975
15981
  codex: _codex,
15976
15982
  vCodex: jsonOPV.VCodex,
15977
- 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,
15983
+ 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,
15978
15984
  origName: jsonOPV.Name,
15979
15985
  name_locales: (_mask$name2 = mask === null || mask === void 0 ? void 0 : mask.name) !== null && _mask$name2 !== void 0 ? _mask$name2 : jsonOPV.Name_locales,
15980
15986
  image: jsonOPV.Image && jsonOPV.Image != '' ? jsonOPV.Image : undefined,
@@ -15982,7 +15988,7 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
15982
15988
  isTexture: jsonOPV.IsTexture && jsonOPV.IsTexture == 'True' ? true : false,
15983
15989
  description: jsonOPV.Description,
15984
15990
  description_locales: jsonOPV.Description_locales,
15985
- 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,
15991
+ 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,
15986
15992
  groupName_locales: (_mask$groupname2 = mask === null || mask === void 0 ? void 0 : mask.groupname) !== null && _mask$groupname2 !== void 0 ? _mask$groupname2 : jsonOPV.GroupName_locales,
15987
15993
  hiddenByMask: mask === null || mask === void 0 ? void 0 : mask.hidden,
15988
15994
  textureName: jsonOPV.TextureName && jsonOPV.TextureName != '' ? jsonOPV.TextureName : jsonOPV.PFTFile && jsonOPV.PFTFile != '' ? jsonOPV.PFTFile : undefined,
@@ -16020,7 +16026,7 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16020
16026
  this.opv.images.push({
16021
16027
  fileName: image.FileName,
16022
16028
  functiontype: image.Functiontype,
16023
- jsFormula: image.JsFormula ? DivaUtils__default["default"].getRuleByFormula(image.JsFormula, catalog.catalogCodex, catalog.multiselectOptions) : '',
16029
+ jsFormula: image.JsFormula ? DivaUtils__default["default"].getRuleByFormula(image.JsFormula, catalogData.catalogCodex, catalogData.multiselectOptions) : '',
16024
16030
  name: image.Name,
16025
16031
  replaceMainImage: image.ReplaceMainImage
16026
16032
  });
@@ -16030,56 +16036,76 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16030
16036
  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++) {
16031
16037
  var _this$opv$property$le, _this$opv$property, _this$opv$property2;
16032
16038
  var prop = (_this$opv$property2 = this.opv.property) === null || _this$opv$property2 === void 0 ? void 0 : _this$opv$property2[_i];
16033
- if (prop.Codex === 'INFO_URL') {
16034
- this.opv.url = prop.Value;
16035
- } else if (prop.Codex === 'INFO_PDF') {
16036
- this.opv.pdfUrl = prop.Value;
16037
- } else if (prop.Codex === 'SAME_OPV') {
16038
- this.opv.sameopv = prop.Value;
16039
- } else if (prop.Codex === 'ONLY_VISIBLE_IF_NOT_UNDOCK') {
16040
- this.opv.onlyVisibleIfNotDocked = prop.Value;
16041
- } else if (prop.Codex === 'DEFAULT_VALUE') {
16042
- this.opv.defaultValue = prop.Value;
16043
- } else if (prop.Codex === 'SUMMARY_CODEX') {
16044
- this.opv.summaryCodex = prop.Value;
16045
- } else if (prop.Codex === 'VIEWPOINTNAME') {
16046
- this.opv.viewPointName = prop.Value;
16047
- } else if (prop.Codex === 'HIDE_IN_SUMMARY') {
16048
- this.opv.hideInSummary = !!prop.Value;
16049
- } else if (prop.Codex === 'SETNAME') {
16050
- this.opv.setName = prop.Value;
16051
- } else if (prop.Codex === 'SET_CONFIG') {
16052
- this.opv.setConfig = prop.Value;
16053
- } else if (prop.Codex === 'ON_RULE') {
16054
- this.opv.onRule = prop.Value;
16055
- } else if (prop.Codex === 'CONTENT_ITEM') {
16056
- this.opv.contentItemId = prop.Value;
16057
- } else if (prop.Codex === 'IS_NOT_RELEVANT') {
16058
- this.opv.isNotRelevant = prop.Value;
16059
- } else if (prop.Codex === 'GROUP_CONTENT_ITEM') {
16060
- this.opv.groupContentItemId = prop.Value;
16061
- } else if (prop.Codex === 'SET_BY_RULE') {
16062
- this.opv.setByRule = prop.Value;
16063
- } else {
16064
- var values_locales = [];
16065
- if (prop.Value_locales) {
16066
- var _prop$Value_locales;
16067
- var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16068
- for (var j = 0; j < langs.length; j++) {
16069
- var lang = langs[j];
16070
- var values = prop.Value_locales[lang].split(';');
16071
- for (var m = 0; m < values.length; m++) {
16072
- if (!values_locales[m]) values_locales[m] = {};
16073
- values_locales[m][lang] = values[m];
16039
+ var key = prop.Codex;
16040
+ if (key.startsWith(catalogData.catalogCodex + '__')) key = key.replace(catalogData.catalogCodex + '__', '');
16041
+ switch (key) {
16042
+ case 'INFO_URL':
16043
+ this.opv.url = prop.Value;
16044
+ break;
16045
+ case 'INFO_PDF':
16046
+ this.opv.pdfUrl = prop.Value;
16047
+ break;
16048
+ case 'SAME_OPV':
16049
+ this.opv.sameopv = prop.Value;
16050
+ break;
16051
+ case 'ONLY_VISIBLE_IF_NOT_UNDOCK':
16052
+ this.opv.onlyVisibleIfNotDocked = prop.Value;
16053
+ break;
16054
+ case 'DEFAULT_VALUE':
16055
+ this.opv.defaultValue = prop.Value;
16056
+ break;
16057
+ case 'SUMMARY_CODEX':
16058
+ this.opv.summaryCodex = prop.Value;
16059
+ break;
16060
+ case 'VIEWPOINTNAME':
16061
+ this.opv.viewPointName = prop.Value;
16062
+ break;
16063
+ case 'HIDE_IN_SUMMARY':
16064
+ this.opv.hideInSummary = !!prop.Value;
16065
+ break;
16066
+ case 'SETNAME':
16067
+ this.opv.setName = prop.Value;
16068
+ break;
16069
+ case 'SET_CONFIG':
16070
+ this.opv.setConfig = prop.Value;
16071
+ break;
16072
+ case 'ON_RULE':
16073
+ this.opv.onRule = prop.Value;
16074
+ break;
16075
+ case 'CONTENT_ITEM':
16076
+ this.opv.contentItemId = prop.Value;
16077
+ break;
16078
+ case 'IS_NOT_RELEVANT':
16079
+ this.opv.isNotRelevant = prop.Value;
16080
+ break;
16081
+ case 'GROUP_CONTENT_ITEM':
16082
+ this.opv.groupContentItemId = prop.Value;
16083
+ break;
16084
+ case 'SET_BY_RULE':
16085
+ this.opv.setByRule = prop.Value;
16086
+ break;
16087
+ default:
16088
+ if (key.includes('__')) break;
16089
+ var values_locales = [];
16090
+ if (prop.Value_locales) {
16091
+ var _prop$Value_locales;
16092
+ var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16093
+ for (var j = 0; j < langs.length; j++) {
16094
+ var lang = langs[j];
16095
+ var values = prop.Value_locales[lang].split(';');
16096
+ for (var m = 0; m < values.length; m++) {
16097
+ if (!values_locales[m]) values_locales[m] = {};
16098
+ values_locales[m][lang] = values[m];
16099
+ }
16074
16100
  }
16075
16101
  }
16076
- }
16077
- metaDatas.push({
16078
- codex: prop.Codex,
16079
- name: prop.Name,
16080
- values: prop.Value.split(';'),
16081
- values_locales: values_locales
16082
- });
16102
+ metaDatas.push({
16103
+ codex: prop.Codex,
16104
+ name: prop.Name,
16105
+ values: prop.Value.split(';'),
16106
+ values_locales: values_locales
16107
+ });
16108
+ break;
16083
16109
  }
16084
16110
  }
16085
16111
  this.opv.metaData = metaDatas;
@@ -16437,70 +16463,95 @@ var CatalogArticleData = /*#__PURE__*/function () {
16437
16463
  for (var i = 0; i < this.catalogArticle.properties.length; i++) {
16438
16464
  var prop = this.catalogArticle.properties[i];
16439
16465
  var _key = prop.Codex;
16440
- if (_key == 'BUNDLE_RULES') {
16441
- this.catalogArticle.bundleRules = JSON.parse(prop.Value);
16442
- } else if (_key == 'HEIGHTGRIDUSED') {
16443
- this.catalogArticle.heightGridUsed = Number(prop.Value);
16444
- } else if (_key == 'HEIGHTGRIDBELOW') {
16445
- this.catalogArticle.heightGridBelow = Number(prop.Value);
16446
- } else if (_key == 'HEIGHTGRIDABOVE') {
16447
- this.catalogArticle.heightGridAbove = Number(prop.Value);
16448
- } else if (_key == 'OVERWRITE_PARENT_WIDTH') {
16449
- this.catalogArticle.overwriteParentWidth = prop.Value;
16450
- } else if (_key == 'OVERWRITE_PARENT_HEIGHT') {
16451
- this.catalogArticle.overwriteParentHeight = prop.Value;
16452
- } else if (_key == 'OVERWRITE_PARENT_DEPTH') {
16453
- this.catalogArticle.overwriteParentDepth = prop.Value;
16454
- } else if (_key == 'DO_NOT_DEL_ACC_IF_NOT_DOCKED') {
16455
- this.catalogArticle.doNotDelAccIfNotDocked = prop.Value;
16456
- } else if (_key == 'HEIGHT_HAS_PRICE') {
16457
- this.catalogArticle.heightHasPrice = prop.Value;
16458
- } else if (_key == 'DEPTH_HAS_PRICE') {
16459
- this.catalogArticle.depthHasPrice = prop.Value;
16460
- } else if (_key == 'WIDTH_HAS_PRICE') {
16461
- this.catalogArticle.widthHasPrice = prop.Value;
16462
- } else if (_key == 'BASIC_UNIT_PRICE') {
16463
- this.catalogArticle.basicUnitPrice = Number(prop.Value);
16464
- } else if (_key == 'INVALID_ACCESSORIES') {
16465
- this.catalogArticle.invalidAccessoires = prop.Value.split(',');
16466
- } else if (_key == 'ON_CONFIG_OPTION') {
16467
- this.catalogArticle.onConfigOption = prop.Value;
16468
- } else if (_key == 'ON_SET_CONFIG_OPTION') {
16469
- this.catalogArticle.onSetConfigOtpion = prop.Value;
16470
- } else if (_key == 'ORDER_POSNR') {
16471
- this.catalogArticle.orderPosNr = prop.Value;
16472
- } else if (_key == 'HIDE_IN_PLANNERSTEP') {
16473
- this.catalogArticle.hideInPlannerStep = !!prop.Value;
16474
- } else if (_key == 'MAX_PLANNING_COUNT') {
16475
- this.catalogArticle.maxPlanningCount = Number(prop.Value);
16476
- } else if (_key == 'CONTENT_ITEM') {
16477
- this.catalogArticle.contentItemId = prop.Value;
16478
- } else if (_key == 'GROUP_CONTENT_ITEM') {
16479
- this.catalogArticle.groupContentItemId = prop.Value;
16480
- } else if (_key == 'HAS3D') {
16481
- this.catalogArticle.isVisualized = prop.Value;
16482
- } else {
16483
- var values = prop.Value.split(';');
16484
- var values_locales = [];
16485
- if (prop.Value_locales) {
16486
- var _prop$Value_locales;
16487
- var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16488
- for (var j = 0; j < langs.length; j++) {
16489
- var lang = langs[j];
16490
- if (!prop.Value_locales[lang]) continue;
16491
- var _values = prop.Value_locales[lang].split(';');
16492
- for (var m = 0; m < _values.length; m++) {
16493
- if (!values_locales[m]) values_locales[m] = {};
16494
- values_locales[m][lang] = _values[m];
16466
+ if (_key.startsWith(this.catalogCodex + '__')) _key = _key.replace(this.catalogCodex + '__', '');
16467
+ switch (_key) {
16468
+ case 'BUNDLE_RULES':
16469
+ this.catalogArticle.bundleRules = JSON.parse(prop.Value);
16470
+ break;
16471
+ case 'HEIGHTGRIDUSED':
16472
+ this.catalogArticle.heightGridUsed = Number(prop.Value);
16473
+ break;
16474
+ case 'HEIGHTGRIDBELOW':
16475
+ this.catalogArticle.heightGridBelow = Number(prop.Value);
16476
+ break;
16477
+ case 'HEIGHTGRIDABOVE':
16478
+ this.catalogArticle.heightGridAbove = Number(prop.Value);
16479
+ break;
16480
+ case 'OVERWRITE_PARENT_WIDTH':
16481
+ this.catalogArticle.overwriteParentWidth = prop.Value;
16482
+ break;
16483
+ case 'OVERWRITE_PARENT_HEIGHT':
16484
+ this.catalogArticle.overwriteParentHeight = prop.Value;
16485
+ break;
16486
+ case 'OVERWRITE_PARENT_DEPTH':
16487
+ this.catalogArticle.overwriteParentDepth = prop.Value;
16488
+ break;
16489
+ case 'DO_NOT_DEL_ACC_IF_NOT_DOCKED':
16490
+ this.catalogArticle.doNotDelAccIfNotDocked = prop.Value;
16491
+ break;
16492
+ case 'HEIGHT_HAS_PRICE':
16493
+ this.catalogArticle.heightHasPrice = prop.Value;
16494
+ break;
16495
+ case 'DEPTH_HAS_PRICE':
16496
+ this.catalogArticle.depthHasPrice = prop.Value;
16497
+ break;
16498
+ case 'WIDTH_HAS_PRICE':
16499
+ this.catalogArticle.widthHasPrice = prop.Value;
16500
+ break;
16501
+ case 'BASIC_UNIT_PRICE':
16502
+ this.catalogArticle.basicUnitPrice = Number(prop.Value);
16503
+ break;
16504
+ case 'INVALID_ACCESSORIES':
16505
+ this.catalogArticle.invalidAccessoires = prop.Value.split(',');
16506
+ break;
16507
+ case 'ON_CONFIG_OPTION':
16508
+ this.catalogArticle.onConfigOption = prop.Value;
16509
+ break;
16510
+ case 'ON_SET_CONFIG_OPTION':
16511
+ this.catalogArticle.onSetConfigOtpion = prop.Value;
16512
+ break;
16513
+ case 'ORDER_POSNR':
16514
+ this.catalogArticle.orderPosNr = prop.Value;
16515
+ break;
16516
+ case 'HIDE_IN_PLANNERSTEP':
16517
+ this.catalogArticle.hideInPlannerStep = !!prop.Value;
16518
+ break;
16519
+ case 'MAX_PLANNING_COUNT':
16520
+ this.catalogArticle.maxPlanningCount = Number(prop.Value);
16521
+ break;
16522
+ case 'CONTENT_ITEM':
16523
+ this.catalogArticle.contentItemId = prop.Value;
16524
+ break;
16525
+ case 'GROUP_CONTENT_ITEM':
16526
+ this.catalogArticle.groupContentItemId = prop.Value;
16527
+ break;
16528
+ case 'HAS3D':
16529
+ this.catalogArticle.isVisualized = prop.Value;
16530
+ break;
16531
+ default:
16532
+ if (_key.includes('__')) break;
16533
+ var values = prop.Value.split(';');
16534
+ var values_locales = [];
16535
+ if (prop.Value_locales) {
16536
+ var _prop$Value_locales;
16537
+ var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16538
+ for (var j = 0; j < langs.length; j++) {
16539
+ var lang = langs[j];
16540
+ if (!prop.Value_locales[lang]) continue;
16541
+ var _values = prop.Value_locales[lang].split(';');
16542
+ for (var m = 0; m < _values.length; m++) {
16543
+ if (!values_locales[m]) values_locales[m] = {};
16544
+ values_locales[m][lang] = _values[m];
16545
+ }
16495
16546
  }
16496
16547
  }
16497
- }
16498
- metaDatas.push({
16499
- codex: _key,
16500
- values: values,
16501
- name: this.catalogArticle.properties[i].Name,
16502
- values_locales: values_locales
16503
- });
16548
+ metaDatas.push({
16549
+ codex: _key,
16550
+ values: values,
16551
+ name: this.catalogArticle.properties[i].Name,
16552
+ values_locales: values_locales
16553
+ });
16554
+ break;
16504
16555
  }
16505
16556
  }
16506
16557
  this.catalogArticle.metaData = metaDatas;
@@ -17876,7 +17927,9 @@ var OptionCatalogData = /*#__PURE__*/function () {
17876
17927
  for (var i = 0; i < ((_this$opt$property = this.opt.property) === null || _this$opt$property === void 0 ? void 0 : _this$opt$property.length); i++) {
17877
17928
  var _this$opt$property;
17878
17929
  var prop = this.opt.property[i];
17879
- switch (prop.Codex) {
17930
+ var key = prop.Codex;
17931
+ if (key.startsWith(catalogData.catalogCodex + '__')) key = key.replace(catalogData.catalogCodex + '__', '');
17932
+ switch (key) {
17880
17933
  case 'INFO_URL':
17881
17934
  this.opt.url = prop.Value;
17882
17935
  break;
@@ -18149,8 +18202,8 @@ var OptionCatalogData = /*#__PURE__*/function () {
18149
18202
  }]);
18150
18203
  }();
18151
18204
 
18152
- 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; }
18153
- 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__default["default"](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; }
18205
+ 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; }
18206
+ 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__default["default"](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; }
18154
18207
  var LOG$f = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
18155
18208
 
18156
18209
  /*
@@ -18168,7 +18221,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18168
18221
  _defineProperty__default["default"](this, "catalogPlannerArticles", {});
18169
18222
  //Dictionary
18170
18223
  _defineProperty__default["default"](this, "origProperties", []);
18171
- // private catalogPlannerArticlesView: CatalogPlannerArticleViewDataType[]; //array von CatalogPlannerArticleViewDataType
18224
+ _defineProperty__default["default"](this, "variantsPriceHashObj", {});
18172
18225
  _defineProperty__default["default"](this, "plannerPaletteViewInfo", void 0);
18173
18226
  _defineProperty__default["default"](this, "_api", void 0);
18174
18227
  this._api = api;
@@ -18323,6 +18376,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18323
18376
  usePosCountValue: false,
18324
18377
  // old tag
18325
18378
  useDecisionPosCountValue: false,
18379
+ ignoreIsDefinedCheck: false,
18380
+ // if true, on summary click does not check and show the dialob that some articles have options that were not visited
18326
18381
  useShelfPlannerRTV: false,
18327
18382
  notificationsRules: [{
18328
18383
  rules: [{
@@ -18432,40 +18487,43 @@ var DivaCatalogData = /*#__PURE__*/function () {
18432
18487
  var diva3DRenderingIsSet = false;
18433
18488
  properties.forEach(function (item, index) {
18434
18489
  //3D Allgemein
18435
- if (item.Codex == 'DIVA3D_ROOM') {
18490
+
18491
+ var key = item.Codex;
18492
+ if (key.startsWith(_this.catalogCodex + '__')) key = key.replace(_this.catalogCodex + '__', '');
18493
+ if (key == 'DIVA3D_ROOM') {
18436
18494
  _this.catalogData.diva3dRoom = item.Value;
18437
18495
  if (_this.catalogData.diva3dRoom == 'raumatlantis') _this.catalogData.diva3dRoom = 'weissraumatlantis';
18438
- } else if (item.Codex == 'DIVA3D_RENDERING') {
18496
+ } else if (key == 'DIVA3D_RENDERING') {
18439
18497
  //Ist Unity Rendering von Catalogeinstellungen abhängig?
18440
18498
  diva3DRenderingIsSet = item.Value == '1' || item.Value.toLowerCase() == 'true';
18441
18499
  if (_this.catalogData.diva3dShowRenderingByCatalogData) {
18442
18500
  _this.catalogData.has3dModels = _this.catalogData.has3dModels && diva3DRenderingIsSet;
18443
18501
  }
18444
- } else if (item.Codex == 'DIVA3D_AR_READY') {
18502
+ } else if (key == 'DIVA3D_AR_READY') {
18445
18503
  _this.catalogData.divaArReady = !!item.Value;
18446
- } else if (item.Codex == 'DIVA3D_AR_FORCERTV') {
18504
+ } else if (key == 'DIVA3D_AR_FORCERTV') {
18447
18505
  _this.catalogData.divaForceRTV = !!item.Value;
18448
- } else if (item.Codex == 'HEADER_DIMENSION_IDS') {
18506
+ } else if (key == 'HEADER_DIMENSION_IDS') {
18449
18507
  _this.catalogData.headerDimensionIds = item.Value.split(';');
18450
- } else if (item.Codex == 'DONTCALCBASEPRICE') {
18508
+ } else if (key == 'DONTCALCBASEPRICE') {
18451
18509
  _this.catalogData.dontShowBasePrice = item.Value == '1';
18452
- } else if (item.Codex == 'DIVA3D_STATIC_BG_IMAGE_ROOMLIST') {
18510
+ } else if (key == 'DIVA3D_STATIC_BG_IMAGE_ROOMLIST') {
18453
18511
  _this.catalogData.roomList3DStaticBGImage.set('3D_STATBG_ROOMLIST', item.Value.split(';'));
18454
- } else if (item.Codex.startsWith('3D_STATBG_ROOMLIST')) {
18512
+ } else if (key.startsWith('3D_STATBG_ROOMLIST')) {
18455
18513
  // item.Value =
18456
18514
  // "weissraum_LUECK;backgroundimgroom_lueck_modern;backgroundimgroom_lueck_romantic;backgroundimgroom_lueck_loft;backgroundimgroom_lueck_night";
18457
18515
  _this.catalogData.roomList3DStaticBGImage.set(item.Codex, item.Value.split(';'));
18458
- } else if (item.Codex.startsWith('3D_STANDARD_WHITEROOM')) {
18516
+ } else if (key.startsWith('3D_STANDARD_WHITEROOM')) {
18459
18517
  _this.catalogData.diva3dStandardWhiteroom = item.Value;
18460
- } else if (item.Codex == '3D_COMPATIBLE_WITH_IMAGE_CACHE') {
18518
+ } else if (key == '3D_COMPATIBLE_WITH_IMAGE_CACHE') {
18461
18519
  _this.catalogData.diva3dCompatibleWithImageCache = item.Value == '1';
18462
- } else if (item.Codex == 'ENABLE_DO_SHOW_3DDIMENSIONS') {
18520
+ } else if (key == 'ENABLE_DO_SHOW_3DDIMENSIONS') {
18463
18521
  _this.catalogData.doShow3DDimensionLines = item.Value == '1' || item.Value.toLowerCase() == 'true';
18464
- } else if (item.Codex == 'IS_IDM3D_CAT') {
18522
+ } else if (key == 'IS_IDM3D_CAT') {
18465
18523
  _this.catalogData.isIDM3DCat = item.Value == '1' || item.Value.toLowerCase() == 'true';
18466
- } else if (item.Codex == 'IDM3D_CAT_CODEX') {
18524
+ } else if (key == 'IDM3D_CAT_CODEX') {
18467
18525
  _this.catalogData.IDM3DCatCodex = item.Value;
18468
- } else if (item.Codex.startsWith('DIVA3D_IMAGE')) {
18526
+ } else if (key.startsWith('DIVA3D_IMAGE')) {
18469
18527
  //this.Value = "ON.ZUBEHOER_KORPUS1;ON.ZUBEHOER_KORPUS2;ON.ZUBEHOER_KORPUS3:HIDEOPTIONS.FAF;PANEEL;ACP:VIEWPOINTNAME.START_RECHTS";
18470
18528
  //Diese Regel gilt für Optionen ZUBEHOER_KORPUS1, ZUBEHOER_KORPUS2 und ZUBEHOER_KORPUS3
18471
18529
 
@@ -18531,145 +18589,147 @@ var DivaCatalogData = /*#__PURE__*/function () {
18531
18589
  //hier findest du die richtigen option Codexe this.options
18532
18590
  }
18533
18591
  //Planner Themen
18534
- else if (item.Codex == 'DIVA3D_PLANER_DIGITS') {
18592
+ else if (key == 'DIVA3D_PLANER_DIGITS') {
18535
18593
  _this.catalogData.divaPlanerDigits = Number(item.Value);
18536
- } else if (item.Codex == 'DIVA3D_PLANER_SHOW_ARTICLE_SVG') {
18594
+ } else if (key == 'DIVA3D_PLANER_SHOW_ARTICLE_SVG') {
18537
18595
  _this.catalogData.diva3dPlanerShowArticleAsSvg = item.Value == '1';
18538
- } else if (item.Codex == 'SHOWTYPENRINPLANNER') {
18596
+ } else if (key == 'SHOWTYPENRINPLANNER') {
18539
18597
  _this.catalogData.showTypeNrInPlanner = item.Value == '1';
18540
- } else if (item.Codex == 'STARTFILTERPARAMS') {
18598
+ } else if (key == 'STARTFILTERPARAMS') {
18541
18599
  _this.catalogData.startFilterParams = String(item.Value);
18542
- } else if (item.Codex == 'STARTHIDEARTICLES') {
18600
+ } else if (key == 'STARTHIDEARTICLES') {
18543
18601
  _this.catalogData.startHideArticles = item.Value.split(';');
18544
- } else if (item.Codex == 'USEGLOBALSVGSCALE') {
18602
+ } else if (key == 'USEGLOBALSVGSCALE') {
18545
18603
  _this.catalogData.useGlobalSVGScale = item.Value == '1';
18546
- } else if (item.Codex == 'USEBOXPLANNER') {
18604
+ } else if (key == 'USEBOXPLANNER') {
18547
18605
  _this.catalogData.useBoxPlanner = item.Value == '1';
18548
- } else if (item.Codex == 'START_PLANNER_ARTICLE') {
18606
+ } else if (key == 'START_PLANNER_ARTICLE') {
18549
18607
  _this.catalogData.startPlannerArticle = item.Value;
18550
- } else if (item.Codex == 'ACCESSOIRE_STEP_AS_PLANNER') {
18608
+ } else if (key == 'ACCESSOIRE_STEP_AS_PLANNER') {
18551
18609
  _this.catalogData.accessorieStepAsPlanner = item.Value == '1';
18552
- } else if (item.Codex == 'DONT_SAVE_ALTERNATIVERENDERINGS') {
18610
+ } else if (key == 'DONT_SAVE_ALTERNATIVERENDERINGS') {
18553
18611
  _this.catalogData.dontSaveAlternativeRenderings = item.Value == '1';
18554
- } else if (item.Codex == 'SHOW_ALL_ITEMS_IN_PLANNER') {
18612
+ } else if (key == 'SHOW_ALL_ITEMS_IN_PLANNER') {
18555
18613
  _this.catalogData.showAllItemsInPlanner = item.Value == '1';
18556
- } else if (item.Codex == 'HIDE_AV_BUTTONS') {
18614
+ } else if (key == 'HIDE_AV_BUTTONS') {
18557
18615
  _this.catalogData.hideAVButtons = item.Value;
18558
- } else if (item.Codex == 'PLANNER_REPLACE_MODE') {
18616
+ } else if (key == 'PLANNER_REPLACE_MODE') {
18559
18617
  _this.catalogData.replaceModeActive = item.Value == '1';
18560
- } else if (item.Codex == 'HIDE_PLANNER_UI_ICONS') {
18618
+ } else if (key == 'HIDE_PLANNER_UI_ICONS') {
18561
18619
  _this.catalogData.hidePlannerUiIcons = item.Value == '1';
18562
18620
  }
18563
18621
 
18564
18622
  //Warnings
18565
- else if (item.Codex == 'HIDECONSTRUCTIONWARNING') {
18623
+ else if (key == 'HIDECONSTRUCTIONWARNING') {
18566
18624
  _this.catalogData.doCheckConstructionWarnings = item.Value == '0';
18567
- } else if (item.Codex == 'FORCECONSTRUCTIONWARNINGARTICLES') {
18625
+ } else if (key == 'FORCECONSTRUCTIONWARNINGARTICLES') {
18568
18626
  _this.catalogData.forceConstructionWarningForArticles = item.Value.split(';');
18569
- } else if (item.Codex == 'HIDECOMPLETENESSWARNING') {
18627
+ } else if (key == 'HIDECOMPLETENESSWARNING') {
18570
18628
  _this.catalogData.hideCompletenessWarning = item.Value == '1';
18571
18629
  }
18572
18630
 
18573
18631
  //DP Logik
18574
- else if (item.Codex == 'IGNORELAYERAVC') {
18632
+ else if (key == 'IGNORELAYERAVC') {
18575
18633
  _this.catalogData.ignoreLayerAVC = item.Value == '1';
18576
- } else if (item.Codex == 'IGNORELAYERAVOAVU') {
18634
+ } else if (key == 'IGNORELAYERAVOAVU') {
18577
18635
  _this.catalogData.ignoreLayerAVOAVU = item.Value == '1';
18578
- } else if (item.Codex == 'IGNORELAYERAVNAVS') {
18636
+ } else if (key == 'IGNORELAYERAVNAVS') {
18579
18637
  _this.catalogData.ignoreLayerAVNAVS = item.Value == '1';
18580
- } else if (item.Codex == 'DOCKACCONAVOONLY') {
18638
+ } else if (key == 'DOCKACCONAVOONLY') {
18581
18639
  //Accessoires können nur aufwärts verplant werden. (Für Küssnacht)
18582
18640
  _this.catalogData.dockAccOnAvoOnly = item.Value == '1';
18583
- } else if (item.Codex == 'SHOWACCONDPONLY') {
18641
+ } else if (key == 'SHOWACCONDPONLY') {
18584
18642
  //Accessoires werden nur angezeigt falls das Plus (DockingPoint) selcetiert ist. (Für Küssnacht)
18585
18643
  _this.catalogData.showAccOnDpOnly = item.Value == '1';
18586
- } else if (item.Codex == 'RECONFIG_AFTER_ARTICLE_DOCKED') {
18644
+ } else if (key == 'RECONFIG_AFTER_ARTICLE_DOCKED') {
18587
18645
  _this.catalogData.reconfigAfterArticleDocked = item.Value == '1';
18588
18646
  }
18589
18647
  //Konfiguration
18590
- else if (item.Codex == 'USEPRGASOPVARTICLENR') {
18648
+ else if (key == 'USEPRGASOPVARTICLENR') {
18591
18649
  _this.catalogData.UsePrgAsOpvArticleNr = item.Value == '1';
18592
- } else if (item.Codex == 'ARTICLECONFIGSINGLE') {
18650
+ } else if (key == 'ARTICLECONFIGSINGLE') {
18593
18651
  _this.catalogData.articleConfigSingle = item.Value == '1';
18594
- } else if (item.Codex == 'DEFAULT_GROUPS_CLOSED') {
18652
+ } else if (key == 'DEFAULT_GROUPS_CLOSED') {
18595
18653
  if (item.Value != '1' && item.Value != '0') {
18596
18654
  _this.catalogData.defaultGroupsClosed = item.Value.split(';');
18597
18655
  } else {
18598
18656
  _this.catalogData.defaultGroupsClosed = item.Value == '1';
18599
18657
  }
18600
- } else if (item.Codex == 'ARTICLECONFIGALL') {
18658
+ } else if (key == 'ARTICLECONFIGALL') {
18601
18659
  _this.catalogData.articleConfigAll = item.Value == '1';
18602
- } else if (item.Codex == 'HIDE_PRICE_GROUPS_OF_OPGS') {
18660
+ } else if (key == 'HIDE_PRICE_GROUPS_OF_OPGS') {
18603
18661
  _this.catalogData.hidePriceGroupsOfOPGs = item.Value == '1';
18604
- } else if (item.Codex == 'DONTHIDEOPTION') {
18662
+ } else if (key == 'DONTHIDEOPTION') {
18605
18663
  _this.catalogData.dontHideOption = String(item.Value).split(',');
18606
- } else if (item.Codex == 'SHOWACCESSOIREONLASTTAB') {
18664
+ } else if (key == 'SHOWACCESSOIREONLASTTAB') {
18607
18665
  _this.catalogData.showAccessioreOnLastTab = item.Value == '1';
18608
- } else if (item.Codex == 'FORCE_CONFIG_ALL_ACCESSOIRES') {
18666
+ } else if (key == 'FORCE_CONFIG_ALL_ACCESSOIRES') {
18609
18667
  _this.catalogData.forceConfigAllAccessoires = item.Value == '1';
18610
- } else if (item.Codex == 'CONFIG_ACCESSOIRES') {
18668
+ } else if (key == 'CONFIG_ACCESSOIRES') {
18611
18669
  _this.catalogData.configAccessoires = item.Value == '1';
18612
- } else if (item.Codex == 'CONFIG_ONLY_ACCESSOIRES') {
18670
+ } else if (key == 'CONFIG_ONLY_ACCESSOIRES') {
18613
18671
  _this.catalogData.configOnlyAccessoires = item.Value == '1';
18614
- } else if (item.Codex == 'IGNORE_ARTICLERELATIONS') {
18672
+ } else if (key == 'IGNORE_ARTICLERELATIONS') {
18615
18673
  _this.catalogData.ignoreArticleRelations = item.Value == '1';
18616
- } else if (item.Codex == 'REPAIR_VARIANT_VALUES') {
18674
+ } else if (key == 'REPAIR_VARIANT_VALUES') {
18617
18675
  var entries = item.Value.split(';;');
18618
18676
  _this.catalogData.repairVariantValues = {};
18619
18677
  for (var _i = 0; _i < entries.length; _i++) {
18620
18678
  var keyValuePair = entries[_i].split(';');
18621
18679
  _this.catalogData.repairVariantValues['OPT' + keyValuePair[0].replace(':', ':OPV')] = 'OPT' + keyValuePair[1].replace(':', ':OPV');
18622
18680
  }
18623
- } else if (item.Codex == 'DO_USE_RULEDESC_FOR_PARTLIST') {
18681
+ } else if (key == 'DO_USE_RULEDESC_FOR_PARTLIST') {
18624
18682
  _this.catalogData.doUseRuleDescForPartListArticles = item.Value == '1';
18625
- } else if (item.Codex == 'USEPOSCOUNTVALUE') {
18683
+ } else if (key == 'USEPOSCOUNTVALUE') {
18626
18684
  _this.catalogData.usePosCountValue = item.Value == '1';
18627
- } else if (item.Codex == 'USE_DECISION_POS_COUNT_VALUE') {
18685
+ } else if (key == 'USE_DECISION_POS_COUNT_VALUE') {
18628
18686
  _this.catalogData.useDecisionPosCountValue = item.Value == '1';
18629
- } else if (item.Codex == 'USE_SHELFPLANNER_RTV') {
18687
+ } else if (key == 'USE_SHELFPLANNER_RTV') {
18630
18688
  _this.catalogData.useShelfPlannerRTV = item.Value == '1';
18631
- } else if (item.Codex == 'DONT_SHOW_ACC_STEP') {
18689
+ } else if (key == 'DONT_SHOW_ACC_STEP') {
18632
18690
  _this.catalogData.dontShowAccStep = item.Value == '1';
18633
- } else if (item.Codex == 'MERGE_OPTIONS_TO_SAME_OPTION') {
18691
+ } else if (key == 'MERGE_OPTIONS_TO_SAME_OPTION') {
18634
18692
  _this.catalogData.mergeOptionsToSameOption = [];
18635
18693
  var options = item.Value.split(';');
18636
18694
  for (var _i2 = 0; _i2 < options.length; _i2++) {
18637
18695
  _this.catalogData.mergeOptionsToSameOption.push(options[_i2].split(','));
18638
18696
  }
18639
- } else if (item.Codex == 'FORCE_CONFIG_SINGLE') {
18697
+ } else if (key == 'FORCE_CONFIG_SINGLE') {
18640
18698
  _this.catalogData.forceConfigSingle = item.Value == '1';
18641
- } else if (item.Codex == 'SHOW_PRICEPREVIEW_ON_OPTIONS') {
18699
+ } else if (key == 'SHOW_PRICEPREVIEW_ON_OPTIONS') {
18642
18700
  _this.catalogData.showPricePreviewOnlyOnOptions = item.Value.split(';').map(function (option) {
18643
18701
  return 'OPT' + option;
18644
18702
  });
18645
- } else if (item.Codex == 'DOUBLE_CLICK_ON_CONFIG') {
18703
+ } else if (key == 'DOUBLE_CLICK_ON_CONFIG') {
18646
18704
  _this.catalogData.doubleClickOnConfig = item.Value == '1';
18647
- } else if (item.Codex == 'INIT_OPTIONTREE_TWICE') {
18705
+ } else if (key == 'INIT_OPTIONTREE_TWICE') {
18648
18706
  _this.catalogData.initOptionTreeTwice = item.Value == '1';
18649
- } else if (item.Codex == 'USE_TYPENR_AS_ARTICLENR_EKTEXT') {
18707
+ } else if (key == 'USE_TYPENR_AS_ARTICLENR_EKTEXT') {
18650
18708
  _this.catalogData.useTypeNrAsArticleNrEKText = item.Value == '1';
18651
- } else if (item.Codex == 'ADD_NEW_LINE_BEFOR_RULEDESC') {
18709
+ } else if (key == 'ADD_NEW_LINE_BEFOR_RULEDESC') {
18652
18710
  _this.catalogData.addNewLineBeforRuleDesc = item.Value == '1';
18653
- } else if (item.Codex == 'ONCONFIG_SINGLE_DONT_GENERALIZE') {
18711
+ } else if (key == 'ONCONFIG_SINGLE_DONT_GENERALIZE') {
18654
18712
  _this.catalogData.onConfigSingleDontGeneralize = item.Value == '1';
18655
- } else if (item.Codex == 'SUMMARY_TABGROUP_POSITION') {
18713
+ } else if (key == 'SUMMARY_TABGROUP_POSITION') {
18656
18714
  _this.catalogData.summaryTabGroupPosition = item.Value.split(';');
18657
- } else if (item.Codex == 'BUNDLE_RULES') {
18715
+ } else if (key == 'BUNDLE_RULES') {
18658
18716
  _this.catalogData.bundleRules = JSON.parse(item.Value);
18659
- } else if (item.Codex == 'NOTIFICATIONS') {
18717
+ } else if (key == 'NOTIFICATIONS') {
18660
18718
  _this.catalogData.notificationsRules = JSON.parse(item.Value);
18661
- } else if (item.Codex == 'WARNINGS') {
18719
+ } else if (key == 'WARNINGS') {
18662
18720
  _this.catalogData.warningRules = JSON.parse(item.Value);
18663
- } else if (item.Codex == 'BANNER') {
18721
+ } else if (key == 'BANNER') {
18664
18722
  _this.catalogData.bannerRules = JSON.parse(item.Value);
18665
- } else if (item.Codex == 'IGNORE_MAX_PRICE_AS_BASEPRICE') {
18723
+ } else if (key == 'IGNORE_MAX_PRICE_AS_BASEPRICE') {
18666
18724
  _this.catalogData.ignoreMaxPriceAsBP = item.Value == '1';
18667
- } else if (item.Codex == 'DONT_USE_VCODEX_FOR_BASKET') {
18725
+ } else if (key == 'DONT_USE_VCODEX_FOR_BASKET') {
18668
18726
  _this.catalogData.dontUseVCodexInBasket = item.Value == '1';
18727
+ } else if (key == 'IGNORE_ISDEFINED_CHECK') {
18728
+ _this.catalogData.ignoreIsDefinedCheck = item.Value == '1';
18669
18729
  }
18670
18730
 
18671
18731
  //HOTFIX wied später ausgebaut Philipp mus Properties in der Artikelliste ausgeben
18672
- else if (item.Codex == 'ADD_PA_ON_EDO') {
18732
+ else if (key == 'ADD_PA_ON_EDO') {
18673
18733
  var _properties$find;
18674
18734
  var thisCodex = (_properties$find = properties.find(function (item) {
18675
18735
  return item.Codex == 'ADD_PA_ON_EDO_ARTICLECODEX';
@@ -19428,6 +19488,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19428
19488
  get: function get() {
19429
19489
  return this.catalogData.useBoxPlanner;
19430
19490
  }
19491
+ }, {
19492
+ key: "ignoreIsDefinedCheck",
19493
+ get: function get() {
19494
+ return this.catalogData.ignoreIsDefinedCheck;
19495
+ }
19431
19496
  }, {
19432
19497
  key: "startPlannerArticle",
19433
19498
  get: function get() {
@@ -19705,12 +19770,24 @@ var DivaCatalogData = /*#__PURE__*/function () {
19705
19770
  }
19706
19771
  return updateMask;
19707
19772
  }()
19773
+ }, {
19774
+ key: "getVariantsPriceByHash",
19775
+ value: function getVariantsPriceByHash(hash) {
19776
+ return this.variantsPriceHashObj[hash];
19777
+ }
19778
+ }, {
19779
+ key: "setVariantsPriceByHash",
19780
+ value: function setVariantsPriceByHash(hash, data) {
19781
+ this.variantsPriceHashObj[hash] = _objectSpread$g(_objectSpread$g({}, data), {}, {
19782
+ calcTime: -1
19783
+ });
19784
+ }
19708
19785
  }]);
19709
19786
  }();
19710
19787
  var mapMask = function mapMask(mask) {
19711
19788
  var _mappedMask$catalog;
19712
19789
  if (!mask) return undefined;
19713
- var mappedMask = _objectSpread$f({}, mask);
19790
+ var mappedMask = _objectSpread$g({}, mask);
19714
19791
  var mapProperties = function mapProperties(props) {
19715
19792
  if (Array.isArray(props)) return props;
19716
19793
  var mappedProps = [];
@@ -19873,6 +19950,8 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
19873
19950
  }();
19874
19951
  var catalogHandlerInstance = new DivaCatalogHandler();
19875
19952
 
19953
+ 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; }
19954
+ 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__default["default"](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; }
19876
19955
  var ArticleOptionStateData = /*#__PURE__*/function () {
19877
19956
  function ArticleOptionStateData(option, defaultOPV, useIsOptionDefinedWarning) {
19878
19957
  _classCallCheck__default["default"](this, ArticleOptionStateData);
@@ -20008,9 +20087,9 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20008
20087
  key: "multiselectValCodex",
20009
20088
  get: function get() {
20010
20089
  var _this$multiSelects$ma, _this$multiSelects2;
20011
- return (_this$multiSelects$ma = (_this$multiSelects2 = this.multiSelects) === null || _this$multiSelects2 === void 0 ? void 0 : _this$multiSelects2.map(function (v) {
20090
+ return [this.valCodex].concat(_toConsumableArray__default["default"]((_this$multiSelects$ma = (_this$multiSelects2 = this.multiSelects) === null || _this$multiSelects2 === void 0 ? void 0 : _this$multiSelects2.map(function (v) {
20012
20091
  return v.codex;
20013
- })) !== null && _this$multiSelects$ma !== void 0 ? _this$multiSelects$ma : [];
20092
+ })) !== null && _this$multiSelects$ma !== void 0 ? _this$multiSelects$ma : []));
20014
20093
  }
20015
20094
  }, {
20016
20095
  key: "measureValue",
@@ -20505,6 +20584,18 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20505
20584
  set: function set(val) {
20506
20585
  this.articleOptionState.isDifferentOption = val;
20507
20586
  }
20587
+ }, {
20588
+ key: "cloneOptionState",
20589
+ value: function cloneOptionState() {
20590
+ var clonedOps = new ArticleOptionStateData(this.option);
20591
+ clonedOps.articleOptionState = _objectSpread$f(_objectSpread$f({}, this.articleOptionState), {}, {
20592
+ imageOPVs: _objectSpread$f({}, this.articleOptionState.imageOPVs),
20593
+ visibleOPVs: _objectSpread$f({}, this.articleOptionState.visibleOPVs),
20594
+ visibleOPVsImages: _objectSpread$f({}, this.articleOptionState.visibleOPVsImages),
20595
+ favoriteOPVs: _objectSpread$f({}, this.articleOptionState.favoriteOPVs)
20596
+ });
20597
+ return clonedOps;
20598
+ }
20508
20599
  }]);
20509
20600
  }();
20510
20601
 
@@ -20545,7 +20636,7 @@ var DivaArticle = /*#__PURE__*/function () {
20545
20636
  quantity: initParams.quantity ? initParams.quantity : initParams.Quantity ? initParams.Quantity : 1,
20546
20637
  actDescription: initParams.actDescription,
20547
20638
  actDescription_locales: initParams.actDescription_locales,
20548
- price: initParams.price ? initParams.price : articleData.articlePrice ? articleData.articlePrice : 0,
20639
+ price: initParams.price !== undefined ? initParams.price : articleData.articlePrice ? articleData.articlePrice : 0,
20549
20640
  relatedToBasketId: initParams.relatedToBasketId ? initParams.relatedToBasketId : initParams.relatedToBasketID,
20550
20641
  isPartlistArticle: initParams.isPartlistArticle ? initParams.isPartlistArticle : false,
20551
20642
  relatedToSubItem: initParams.relatedToSubItem,
@@ -21220,6 +21311,15 @@ var DivaArticle = /*#__PURE__*/function () {
21220
21311
  var _this$partListParentA6, _this$partListParentA7, _this$partListParentA8, _this$partListParentA9, _this$accessoireParen3, _this$accessoireParen4, _this$accessoireParen5, _this$accessoireParen6;
21221
21312
  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 : {});
21222
21313
  }
21314
+ }, {
21315
+ key: "getAllArticleOptionsStates",
21316
+ value: function getAllArticleOptionsStates() {
21317
+ var opss = _objectSpread$e({}, this.articleOptionStates);
21318
+ for (var key in this.partlistArticles) {
21319
+ opss = _objectSpread$e(_objectSpread$e({}, opss), this.partlistArticles[key].getAllArticleOptionsStates());
21320
+ }
21321
+ return opss;
21322
+ }
21223
21323
  }, {
21224
21324
  key: "clearArticleOptionStates",
21225
21325
  value: function clearArticleOptionStates() {
@@ -21855,6 +21955,22 @@ var DivaArticle = /*#__PURE__*/function () {
21855
21955
  }
21856
21956
  return ret;
21857
21957
  }
21958
+ }, {
21959
+ key: "VisibleVariantValues",
21960
+ get: function get() {
21961
+ var ret = {};
21962
+ var opss = this.getAllArticleOptionsStates();
21963
+ for (var key in opss) {
21964
+ var myOPS = opss[key];
21965
+ if (myOPS.isDoShow && myOPS.valCodex && !myOPS.isInvisible && !['I', 'U'].includes(myOPS.headerPosVariationType)) {
21966
+ ret[myOPS.optionCodex] = myOPS.valCodex;
21967
+ if (myOPS.freeText) {
21968
+ ret[myOPS.optionCodex + '_val'] = myOPS.freeText;
21969
+ }
21970
+ }
21971
+ }
21972
+ return ret;
21973
+ }
21858
21974
  }, {
21859
21975
  key: "VariantValuesWithoutFreetext",
21860
21976
  get: function get() {
@@ -21982,6 +22098,7 @@ var DivaArticle = /*#__PURE__*/function () {
21982
22098
  }, {
21983
22099
  key: "areAllOptionsDefined",
21984
22100
  get: function get() {
22101
+ if (this.CatalogData.ignoreIsDefinedCheck) return true;
21985
22102
  for (var key in this.articleOptionStates) {
21986
22103
  if (!this.articleOptionStates[key].isDefined) {
21987
22104
  return false;
@@ -22711,7 +22828,12 @@ var DivaArticle = /*#__PURE__*/function () {
22711
22828
  //Das hier wird Doppelt initialisiert und am ende stehen bei den AVL /AVR Filter die Filter Doppelt drinnen
22712
22829
  if (myArtOPS && myArtOPS.isDoShow) {
22713
22830
  if (myItem) {
22714
- if (myItem.subRetailArticleNr) this.subRetailArticleNr = myItem.subRetailArticleNr;
22831
+ if (myItem.subRetailArticleNr) {
22832
+ if (this.isPartListArticle) {
22833
+ LOG$d.error(new DivaUtils.DivaError('SubRetailArticleNr is not allowed for PartListArticles'));
22834
+ }
22835
+ this.subRetailArticleNr = myItem.subRetailArticleNr;
22836
+ }
22715
22837
  if (myItem.subRetailTypeNr) this.subRetailTypeNr = myItem.subRetailTypeNr;
22716
22838
  }
22717
22839
  this.updateIDMSpecificFeature(myArtOPS);
@@ -23708,7 +23830,7 @@ var DivaArticle = /*#__PURE__*/function () {
23708
23830
  break;
23709
23831
  }
23710
23832
  _context.next = 4;
23711
- return Promise.resolve().then(function () { return require('./ShelfPlanner-dd941184.js'); });
23833
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-5c3bb271.js'); });
23712
23834
  case 4:
23713
23835
  _yield$import = _context.sent;
23714
23836
  ShelfPlanner = _yield$import["default"];
@@ -24101,7 +24223,7 @@ var DivaArticle = /*#__PURE__*/function () {
24101
24223
  }
24102
24224
  }
24103
24225
  for (var _key3 in myValues) {
24104
- var ops = this.articleOptionStates[_key3];
24226
+ var ops = this.getArticleOptionState(_key3);
24105
24227
  var opv = ops === null || ops === void 0 ? void 0 : ops.visibleOptionValues[myValues[_key3]];
24106
24228
  if (opv) {
24107
24229
  var value = opv.setConfig;
@@ -24133,7 +24255,7 @@ var DivaArticle = /*#__PURE__*/function () {
24133
24255
  var _ops7 = this.getArticleOptionState(_key4);
24134
24256
  if (_ops7) {
24135
24257
  validValues[_key4] = myValues[_key4];
24136
- } else if (_key4.endsWith('_val') && this.articleOptionStates[_key4.replace(/_val/g, '')]) {
24258
+ } else if (_key4.endsWith('_val') && this.getArticleOptionState(_key4.replace(/_val/g, ''))) {
24137
24259
  validValues[_key4] = myValues[_key4];
24138
24260
  } else {
24139
24261
  for (var _opt in this.articleOptionStates) {
@@ -24625,6 +24747,19 @@ var DivaArticle = /*#__PURE__*/function () {
24625
24747
  get: function get() {
24626
24748
  return this.article.catalogArticle.shelfHeightAbove;
24627
24749
  }
24750
+ }, {
24751
+ key: "cloneArticle",
24752
+ value: function cloneArticle(set) {
24753
+ var clonedArticle = new DivaArticle(set, this.basketId, _objectSpread$e({}, this.article), this.article.catalogArticle, set.CatalogData);
24754
+ for (var key in this.articleOptionStates) {
24755
+ clonedArticle.articleOptionStates[key] = this.articleOptionStates[key].cloneOptionState();
24756
+ }
24757
+ clonedArticle.article.partlistArticles = {};
24758
+ for (var _key6 in this.partlistArticles) {
24759
+ clonedArticle.article.partlistArticles[_key6] = this.partlistArticles[_key6].cloneArticle(set);
24760
+ }
24761
+ return clonedArticle;
24762
+ }
24628
24763
  }]);
24629
24764
  }();
24630
24765
 
@@ -24957,33 +25092,37 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24957
25092
  _context6.next = 42;
24958
25093
  break;
24959
25094
  case 53:
25095
+ if (!(from !== 'calcVariant')) {
25096
+ _context6.next = 65;
25097
+ break;
25098
+ }
24960
25099
  _i = 0;
24961
- case 54:
25100
+ case 55:
24962
25101
  if (!(_i < targetArticlesToUpdate.length)) {
24963
- _context6.next = 64;
25102
+ _context6.next = 65;
24964
25103
  break;
24965
25104
  }
24966
25105
  _actArticle2 = articles[targetArticlesToUpdate[_i]];
24967
25106
  if (!(_actArticle2.CatalogData.doubleClickOnConfig || _actArticle2.hasType1Dependencies)) {
24968
- _context6.next = 61;
25107
+ _context6.next = 62;
24969
25108
  break;
24970
25109
  }
24971
- _context6.next = 59;
24972
- return this.updateCfgValues(_actArticle2, valuesArray[_i], {}, undefined, undefined, from == 'calcVariant');
24973
- case 59:
24974
- _context6.next = 61;
24975
- return this.updateCfgValues(_actArticle2, valuesArray[_i], {}, undefined, undefined, from == 'calcVariant');
24976
- case 61:
25110
+ _context6.next = 60;
25111
+ return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
25112
+ case 60:
25113
+ _context6.next = 62;
25114
+ return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
25115
+ case 62:
24977
25116
  _i++;
24978
- _context6.next = 54;
25117
+ _context6.next = 55;
24979
25118
  break;
24980
- case 64:
25119
+ case 65:
24981
25120
  return _context6.abrupt("return", {
24982
25121
  newEDOExtraArticles: newEDOExtraArticles,
24983
25122
  targetArticlesToUpdate: targetArticlesToUpdate,
24984
25123
  partlistArticlesToLoad: partlistArticlesToLoad
24985
25124
  });
24986
- case 65:
25125
+ case 66:
24987
25126
  case "end":
24988
25127
  return _context6.stop();
24989
25128
  }
@@ -25305,12 +25444,14 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25305
25444
  //danach Preise berechnen
25306
25445
  if (!dontCalcPrice) {
25307
25446
  article.calcConfigPrice(maxPriceOfGroupCodex, 2);
25308
- //evtl articlebild berechnen
25309
- article.updateArticleImage();
25310
- //evtl SVG tausch berechnen
25311
- article.updateArticleSVG();
25312
- //evtl opv images mit rules updaten
25313
- article.updateOPVImages();
25447
+ if (!calcVariantPrice) {
25448
+ //evtl articlebild berechnen
25449
+ article.updateArticleImage();
25450
+ //evtl SVG tausch berechnen
25451
+ article.updateArticleSVG();
25452
+ //evtl opv images mit rules updaten
25453
+ article.updateOPVImages();
25454
+ }
25314
25455
  }
25315
25456
  return _context10.abrupt("return", partlistArticlesToLoad);
25316
25457
  case 18:
@@ -26686,14 +26827,16 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26686
26827
  }
26687
26828
  }, {
26688
26829
  key: "getCurPaletteType",
26689
- value: function getCurPaletteType(set, configStepKey, articles) {
26830
+ value: function getCurPaletteType(set, configStepKey) {
26831
+ var _set$api$ReturnToFrom;
26690
26832
  var step = this.getAllByKey(configStepKey);
26691
26833
  var configStep = step === null || step === void 0 ? void 0 : step.configStep;
26692
26834
  var optionStep = step === null || step === void 0 ? void 0 : step.optionStep;
26693
26835
  var paletteType = 'SMALL';
26694
26836
  if (configStep && optionStep) {
26695
- var optionState = articles[configStep.targetArticles[0]][configStep.option];
26696
- 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) {
26837
+ var _set$getDivaArticles$;
26838
+ var optionState = (_set$getDivaArticles$ = set.getDivaArticles()[configStep.targetArticles[0]]) === null || _set$getDivaArticles$ === void 0 ? void 0 : _set$getDivaArticles$.getArticleOptionState(configStep.option);
26839
+ 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) {
26697
26840
  paletteType = 'GAL';
26698
26841
  }
26699
26842
  if (configStep.option == 'OPTBA' && !optionState.option.layout) {
@@ -26720,11 +26863,14 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26720
26863
  paletteType = 'GAL';
26721
26864
  }
26722
26865
  }
26866
+ 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') {
26867
+ paletteType = 'SMALL';
26868
+ }
26723
26869
  return paletteType;
26724
26870
  }
26725
26871
  }, {
26726
26872
  key: "getStepInfo",
26727
- value: function getStepInfo(configStepKey, optionStatesOfArticle) {
26873
+ value: function getStepInfo(configStepKey) {
26728
26874
  var allSteps = this.getAllByKey(configStepKey);
26729
26875
  if (allSteps !== null && allSteps !== void 0 && allSteps.optionStep) ;
26730
26876
  if (allSteps !== null && allSteps !== void 0 && allSteps.configStep.warning) return allSteps.configStep.warning;
@@ -26756,7 +26902,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26756
26902
  }
26757
26903
  }, {
26758
26904
  key: "getCurFilterType",
26759
- value: function getCurFilterType(configStepKey, articles, confgiItems) {
26905
+ value: function getCurFilterType(configStepKey, confgiItems) {
26760
26906
  var configStep = this.getConfigStepByKey(configStepKey);
26761
26907
  var filterType = '';
26762
26908
  if (configStep) {
@@ -27047,7 +27193,6 @@ var DivaSet = /*#__PURE__*/function () {
27047
27193
  _defineProperty__default["default"](this, "setId", void 0);
27048
27194
  _defineProperty__default["default"](this, "_isActSet", false);
27049
27195
  _defineProperty__default["default"](this, "setData", void 0);
27050
- _defineProperty__default["default"](this, "_onlyCalcVariants", void 0);
27051
27196
  _defineProperty__default["default"](this, "divaArticles", void 0);
27052
27197
  //Schlüssel ist basketId
27053
27198
  _defineProperty__default["default"](this, "configSingleData", void 0);
@@ -27063,7 +27208,6 @@ var DivaSet = /*#__PURE__*/function () {
27063
27208
  _defineProperty__default["default"](this, "doorPlannerHandler", void 0);
27064
27209
  _defineProperty__default["default"](this, "matchingProduct", void 0);
27065
27210
  _defineProperty__default["default"](this, "matchingOrigProduct", void 0);
27066
- _defineProperty__default["default"](this, "_dontCalcPricePreviewDueToPerformanceIssues", false);
27067
27211
  _defineProperty__default["default"](this, "_supplierColors", void 0);
27068
27212
  /**Favorits state */
27069
27213
  _defineProperty__default["default"](this, "_handlelingCurrentFavorites", false);
@@ -27838,16 +27982,6 @@ var DivaSet = /*#__PURE__*/function () {
27838
27982
  value: function addArticle(newArticle) {
27839
27983
  this.divaArticles[newArticle.basketId] = newArticle;
27840
27984
  }
27841
- }, {
27842
- key: "getOptionStatesOfArticles",
27843
- value: function getOptionStatesOfArticles() {
27844
- var articles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.divaArticles;
27845
- var ret = {};
27846
- for (var key in articles) {
27847
- ret[key] = articles[key].articleOptionStates;
27848
- }
27849
- return ret;
27850
- }
27851
27985
  }, {
27852
27986
  key: "sortDivaArticlesByArticlePosNr",
27853
27987
  value: function sortDivaArticlesByArticlePosNr() {
@@ -28231,7 +28365,7 @@ var DivaSet = /*#__PURE__*/function () {
28231
28365
  break;
28232
28366
  }
28233
28367
  _context4.next = 3;
28234
- return Promise.resolve().then(function () { return require('./DoorPlanner-faebb0a3.js'); });
28368
+ return Promise.resolve().then(function () { return require('./DoorPlanner-f55d0a9a.js'); });
28235
28369
  case 3:
28236
28370
  _yield$import = _context4.sent;
28237
28371
  DoorPlanner = _yield$import["default"];
@@ -28296,14 +28430,6 @@ var DivaSet = /*#__PURE__*/function () {
28296
28430
  get: function get() {
28297
28431
  return this.setState;
28298
28432
  }
28299
- }, {
28300
- key: "onlyCalcVariants",
28301
- get: function get() {
28302
- return this._onlyCalcVariants;
28303
- },
28304
- set: function set(val) {
28305
- this._onlyCalcVariants = val;
28306
- }
28307
28433
 
28308
28434
  /**
28309
28435
  *
@@ -28354,14 +28480,6 @@ var DivaSet = /*#__PURE__*/function () {
28354
28480
  }
28355
28481
  return false;
28356
28482
  }
28357
- }, {
28358
- key: "dontCalcPricePreviewDueToPerformanceIssues",
28359
- get: function get() {
28360
- return this._dontCalcPricePreviewDueToPerformanceIssues;
28361
- },
28362
- set: function set(val) {
28363
- this._dontCalcPricePreviewDueToPerformanceIssues = val;
28364
- }
28365
28483
  }, {
28366
28484
  key: "plannerHandler",
28367
28485
  get: function get() {
@@ -28417,6 +28535,20 @@ var DivaSet = /*#__PURE__*/function () {
28417
28535
  var _this$ViewConfig2;
28418
28536
  return !!(this.catalogData.configAccessoires || this.catalogData.configOnlyAccessoires || (_this$ViewConfig2 = this.ViewConfig) !== null && _this$ViewConfig2 !== void 0 && _this$ViewConfig2.selectAccessoiresWithToggle);
28419
28537
  }
28538
+ }, {
28539
+ key: "cloneSet",
28540
+ value: function cloneSet() {
28541
+ var clonedSet = new DivaSet(this.CatalogData, this.setId, {}, _objectSpread$c({}, this.setState));
28542
+ clonedSet.setData = this.setData;
28543
+ clonedSet.configSingle = this.configSingle;
28544
+ var articles = this.getDivaArticles();
28545
+ //if boxplanner needs to be working, the planner needs to be cloned too
28546
+ //this.setState.plannerHandler = this.setState.plannerHandler.clonePlannerHandler(clonedSet, this);
28547
+ for (var key in articles) {
28548
+ clonedSet.addArticle(articles[key].cloneArticle(clonedSet));
28549
+ }
28550
+ return clonedSet;
28551
+ }
28420
28552
  }]);
28421
28553
  }();
28422
28554
 
@@ -29755,7 +29887,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29755
29887
  key: "getValidVariants",
29756
29888
  value: function () {
29757
29889
  var _getValidVariants = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee3(set, useCache) {
29758
- var allvariants, validVariants, i, _set$onlyCalcVariants;
29890
+ var allvariants, validVariants, i;
29759
29891
  return _regeneratorRuntime__default["default"].wrap(function _callee3$(_context4) {
29760
29892
  while (1) switch (_context4.prev = _context4.next) {
29761
29893
  case 0:
@@ -29775,11 +29907,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29775
29907
  allvariants = _context4.t0;
29776
29908
  validVariants = [];
29777
29909
  for (i = 0; i < allvariants.length; i++) {
29778
- if (!set.disabledVariants.includes(allvariants[i].id)) {
29779
- if (!((_set$onlyCalcVariants = set.onlyCalcVariants) !== null && _set$onlyCalcVariants !== void 0 && _set$onlyCalcVariants.length) || set.onlyCalcVariants.includes(allvariants[i].id)) {
29780
- validVariants.push(allvariants[i]);
29781
- }
29782
- }
29910
+ if (!set.disabledVariants.includes(allvariants[i].id)) validVariants.push(allvariants[i]);
29783
29911
  }
29784
29912
  return _context4.abrupt("return", validVariants);
29785
29913
  case 11:
@@ -30441,25 +30569,24 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30441
30569
  key: "getConifgItemsForView",
30442
30570
  value: function () {
30443
30571
  var _getConifgItemsForView = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(set, configStepKey) {
30444
- 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;
30572
+ 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;
30445
30573
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
30446
30574
  while (1) switch (_context.prev = _context.next) {
30447
30575
  case 0:
30448
- optionStatesOfArticles = set.getOptionStatesOfArticles(set.getDivaArticles(true));
30449
30576
  articles = set.getDivaArticles(true);
30450
30577
  step = set.configTree.getAllByKey(configStepKey);
30451
30578
  retValues = this.getConfigItems(configStepKey, articles, set.configTree);
30452
30579
  optionCodex = undefined;
30453
30580
  if (!(retValues && step != null)) {
30454
- _context.next = 55;
30581
+ _context.next = 54;
30455
30582
  break;
30456
30583
  }
30457
30584
  configItems = [];
30458
30585
  selectedItems = retValues.selectedVals;
30459
- optionState = optionStatesOfArticles[retValues.targetArticles[0]][retValues.optionCodex];
30586
+ optionState = articles[retValues.targetArticles[0]].getArticleOptionState(retValues.optionCodex);
30460
30587
  optionCodex = optionState.optionCodex;
30461
30588
  if (!retValues.isOPG) {
30462
- _context.next = 14;
30589
+ _context.next = 13;
30463
30590
  break;
30464
30591
  }
30465
30592
  for (key in retValues.configItems) {
@@ -30471,26 +30598,26 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30471
30598
  configItems = configItems.concat(retVal.myConfigItemsForView);
30472
30599
  }
30473
30600
  }
30474
- _context.next = 52;
30601
+ _context.next = 51;
30475
30602
  break;
30476
- case 14:
30603
+ case 13:
30477
30604
  if (!(step.optionStep.mergesToOPG == undefined)) {
30478
- _context.next = 19;
30605
+ _context.next = 18;
30479
30606
  break;
30480
30607
  }
30481
30608
  _retVal = this.prepareConfigItemsForView(set, optionState, retValues.configItems, retValues.constructionRules, selectedItems, step.configStep.targetArticles, undefined, undefined, undefined, undefined, retValues.freeTextValue, retValues.freeTextLang);
30482
30609
  configItems = _retVal.myConfigItemsForView;
30483
- _context.next = 52;
30610
+ _context.next = 51;
30484
30611
  break;
30485
- case 19:
30612
+ case 18:
30486
30613
  if (!(typeof step.optionStep.mergesToOPG == 'string' && step.tabGroup.options[step.optionStep.mergesToOPG])) {
30487
- _context.next = 52;
30614
+ _context.next = 51;
30488
30615
  break;
30489
30616
  }
30490
30617
  //IDM Bezugschritte werden zusammengefasst zu OPG und OPV
30491
30618
  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
30492
30619
  if (!configStepOPV) {
30493
- _context.next = 52;
30620
+ _context.next = 51;
30494
30621
  break;
30495
30622
  }
30496
30623
  targetArticle = articles[configStepOPG.targetArticles[0]];
@@ -30501,9 +30628,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30501
30628
  seomethingChanged = false;
30502
30629
  variantValues = {};
30503
30630
  _context.t0 = _regeneratorRuntime__default["default"].keys(opg.visibleOptionValues);
30504
- case 30:
30631
+ case 29:
30505
30632
  if ((_context.t1 = _context.t0()).done) {
30506
- _context.next = 48;
30633
+ _context.next = 47;
30507
30634
  break;
30508
30635
  }
30509
30636
  _key = _context.t1.value;
@@ -30511,7 +30638,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30511
30638
  variantValues[opg.optionCodex] = opg.visibleOptionValues[_key].codex;
30512
30639
  alreadyCalcedVisibleOPVs = targetArticle.getMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues[_key].codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)));
30513
30640
  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)) {
30514
- _context.next = 39;
30641
+ _context.next = 38;
30515
30642
  break;
30516
30643
  }
30517
30644
  //die merged OPG wurde bereist ausgerechnet und kann wiederverwendet werden. nur die Selected value muss repariert werden
@@ -30523,35 +30650,35 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30523
30650
  }
30524
30651
  }
30525
30652
  configItems = configItems.concat(alreadyCalcedVisibleOPVs);
30526
- _context.next = 46;
30653
+ _context.next = 45;
30527
30654
  break;
30528
- case 39:
30655
+ case 38:
30529
30656
  seomethingChanged = true;
30530
- _context.next = 42;
30657
+ _context.next = 41;
30531
30658
  return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true, true, true);
30532
- case 42:
30659
+ case 41:
30533
30660
  _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);
30534
30661
  configItems = configItems.concat(_retVal2.myConfigItemsForView);
30535
30662
  clonedConfigItemsForView = JSON.parse(JSON.stringify(_retVal2.myConfigItemsForView));
30536
30663
  targetArticle.addMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues[_key].codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)), clonedConfigItemsForView);
30537
- case 46:
30538
- _context.next = 30;
30664
+ case 45:
30665
+ _context.next = 29;
30539
30666
  break;
30540
- case 48:
30667
+ case 47:
30541
30668
  if (!seomethingChanged) {
30542
- _context.next = 51;
30669
+ _context.next = 50;
30543
30670
  break;
30544
30671
  }
30545
- _context.next = 51;
30672
+ _context.next = 50;
30546
30673
  return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, originalVariantValues, [targetArticle.basketId], true, 'calcVariant');
30547
- case 51:
30674
+ case 50:
30548
30675
  for (_i = 0; _i < configItems.length; _i++) {
30549
30676
  if (configItems[_i].codex == (selectedOpv === null || selectedOpv === void 0 ? void 0 : selectedOpv.codex)) {
30550
30677
  selectedItems = [selectedOpv.codex];
30551
30678
  configItems[_i].sel = true;
30552
30679
  }
30553
30680
  }
30554
- case 52:
30681
+ case 51:
30555
30682
  return _context.abrupt("return", {
30556
30683
  configItems: configItems,
30557
30684
  option: optionCodex ? set.CatalogData.getOption(optionCodex) : undefined,
@@ -30562,13 +30689,13 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30562
30689
  }),
30563
30690
  notTotallyMatichingOPVs: !set.CatalogData.articleConfigAll ? retValues.notTotallyMatichingOPVs : undefined
30564
30691
  });
30565
- case 55:
30692
+ case 54:
30566
30693
  _configItems = [];
30567
30694
  return _context.abrupt("return", {
30568
30695
  configItems: _configItems,
30569
30696
  selectedItems: []
30570
30697
  });
30571
- case 57:
30698
+ case 56:
30572
30699
  case "end":
30573
30700
  return _context.stop();
30574
30701
  }
@@ -30595,10 +30722,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30595
30722
  notTotallyMatichingOPVs = false,
30596
30723
  myOptionState = undefined;
30597
30724
  for (var i = 0; i < configStep.targetArticles.length; i++) {
30725
+ var _myOptionState;
30598
30726
  var article = articles[configStep.targetArticles[i]];
30599
- var myOptions = article.articleOptionStates;
30600
- myOptionState = myOptions[configStep.option];
30601
- if (myOptionState.option.hasOPG) isOPG = true;
30727
+ myOptionState = article.getArticleOptionState(configStep.option);
30728
+ if ((_myOptionState = myOptionState) !== null && _myOptionState !== void 0 && (_myOptionState = _myOptionState.option) !== null && _myOptionState !== void 0 && _myOptionState.hasOPG) isOPG = true;
30602
30729
  selectedVals = selectedVals.concat(myOptionState.getSelectedVals);
30603
30730
  if (myOptionState.isFreeText && myOptionState.freeText) {
30604
30731
  freeTextValue = myOptionState.freeText;
@@ -30711,12 +30838,13 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30711
30838
  */
30712
30839
  }, {
30713
30840
  key: "checkIfLoadedArticlesAreConfigSingle",
30714
- value: function checkIfLoadedArticlesAreConfigSingle(optionStatesOfArticles) {
30841
+ value: function checkIfLoadedArticlesAreConfigSingle(set) {
30715
30842
  var optionValues = {},
30716
30843
  ret = false;
30717
- for (var ikey in optionStatesOfArticles) {
30718
- for (var jKey in optionStatesOfArticles[ikey]) {
30719
- var optionState = optionStatesOfArticles[ikey][jKey];
30844
+ var articles = set.getDivaArticles();
30845
+ for (var basketId in articles) {
30846
+ for (var jKey in articles[basketId].articleOptionStates) {
30847
+ var optionState = articles[basketId].articleOptionStates[jKey];
30720
30848
  if (optionState.headerPosVariationType == 'K') {
30721
30849
  if (optionValues[optionState.optionCodex] == undefined) {
30722
30850
  optionValues[optionState.optionCodex] = optionState.valCodex ? optionState.valCodex : null;
@@ -30740,7 +30868,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30740
30868
  var myConfigItemsForView = [],
30741
30869
  objectKeys = Object.keys(myConfigItems);
30742
30870
  var _loop8 = function _loop8() {
30743
- var _ops$optionOcd3, _item$colorGroups, _item$pdfUrl, _item$url;
30871
+ var _ops$optionOcd3, _item$images, _item$colorGroups, _item$pdfUrl, _item$url;
30744
30872
  var item = myConfigItems[objectKeys[i]];
30745
30873
  var key = objectKeys[i];
30746
30874
  var groupName = item.groupName ? item.groupName : idmOpgGroupName;
@@ -30769,7 +30897,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30769
30897
  codex: item.codex,
30770
30898
  ocd: item.ocd,
30771
30899
  vCodex: item.vCodex,
30772
- layout: item.isTexture ? 'TEXTURE' : item.image ? 'IMAGE' : 'TEXT',
30900
+ layout: item.isTexture ? 'TEXTURE' : item.image || (_item$images = item.images) !== null && _item$images !== void 0 && _item$images.length ? 'IMAGE' : 'TEXT',
30773
30901
  image: image,
30774
30902
  zoomImage: zoomImage,
30775
30903
  hexColor: item.hexColor,
@@ -30788,6 +30916,8 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30788
30916
  //if a opv has isFreeText = true and its selected a Textbox sould appear in the OptionValue
30789
30917
  //if the text is empty the opv is really selected
30790
30918
  contentItemId: item.contentItemId,
30919
+ isOPVG: item.isOPVG,
30920
+ isParentOPVG: item.parent.codex.startsWith('OPV'),
30791
30921
  groupContentItemId: item.groupContentItemId,
30792
30922
  idmOpgOptionCodex: idmOpgOptionCodex,
30793
30923
  idmOpgValCodex: idmOpgValCodex,
@@ -31161,7 +31291,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
31161
31291
  _context4.next = 72;
31162
31292
  break;
31163
31293
  case 85:
31164
- set.configSingle = configTreeHandler.checkIfLoadedArticlesAreConfigSingle(set.getOptionStatesOfArticles());
31294
+ set.configSingle = configTreeHandler.checkIfLoadedArticlesAreConfigSingle(set);
31165
31295
  _context4.next = 88;
31166
31296
  return this.updateArticlesOptionStatesOfActSet(set, {}, [], undefined, 'initializing');
31167
31297
  case 88:
@@ -32398,18 +32528,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
32398
32528
  */
32399
32529
  }, {
32400
32530
  key: "update3DPlannerView",
32401
- value: function update3DPlannerView(doRequestRendering, doRequestHqRenderScript, set, renderSize, planner3DGridEnabled, mediaServiceSaveMode, doShow3DDimensionLines, alternateRenderInfo, hybrid3DInfo) {
32531
+ value: function update3DPlannerView(doRequestRendering, doRequestHqRenderScript, set, renderSize, planner3DGridEnabled, mediaServiceSaveMode, doShow3DDimensionLines, alternateRenderInfo, hybrid3DInfo, useLatestHybridInfo) {
32402
32532
  var _set$plannerHandler, _set$getAlternateRend2;
32403
32533
  var width = renderSize.imgWidth;
32404
32534
  var height = renderSize.imgHeight;
32405
- (_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, {
32535
+ (_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, {
32406
32536
  width: width,
32407
32537
  height: height,
32408
32538
  isFullscreenRendering: false,
32409
32539
  planner3DGridEnabled: planner3DGridEnabled,
32410
32540
  mediaServiceSaveMode: mediaServiceSaveMode,
32411
32541
  doShow3DDimensionLines: !!doShow3DDimensionLines
32412
- }, hybrid3DInfo);
32542
+ }, hybrid3DInfo, useLatestHybridInfo);
32413
32543
  }
32414
32544
  }, {
32415
32545
  key: "getPlannerPaletteViewInfo",
@@ -32637,23 +32767,22 @@ var DivaSetHandler = /*#__PURE__*/function () {
32637
32767
  value: function () {
32638
32768
  var _loadConfigItemsOfActSetByConfigStepKey = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee22(set, configStepKey, visible) {
32639
32769
  var _configItems$option;
32640
- var optionStatesOfArticle, configItems, paletteType, filterType, stepInfo, contentItemId;
32770
+ var configItems, paletteType, filterType, stepInfo, contentItemId;
32641
32771
  return _regeneratorRuntime__default["default"].wrap(function _callee22$(_context24) {
32642
32772
  while (1) switch (_context24.prev = _context24.next) {
32643
32773
  case 0:
32644
- optionStatesOfArticle = set.getOptionStatesOfArticles(set.getDivaArticles(true));
32645
- _context24.next = 3;
32774
+ _context24.next = 2;
32646
32775
  return configTreeHandler.getConifgItemsForView(set, configStepKey);
32647
- case 3:
32776
+ case 2:
32648
32777
  configItems = _context24.sent;
32649
- paletteType = set.configTree.getCurPaletteType(set, configStepKey, optionStatesOfArticle);
32778
+ paletteType = set.configTree.getCurPaletteType(set, configStepKey);
32650
32779
  configItems.configItems = this.removeDockingInfluencableconfigItems(set, configItems.configItems, configStepKey);
32651
- _context24.next = 8;
32780
+ _context24.next = 7;
32652
32781
  return this.variantsEvaluator(set, configItems.configItems, configStepKey, paletteType);
32653
- case 8:
32782
+ case 7:
32654
32783
  configItems.configItems = _context24.sent;
32655
- filterType = set.configTree.getCurFilterType(configStepKey, optionStatesOfArticle, configItems.configItems);
32656
- stepInfo = set.configTree.getStepInfo(configStepKey, optionStatesOfArticle);
32784
+ filterType = set.configTree.getCurFilterType(configStepKey, configItems.configItems);
32785
+ stepInfo = set.configTree.getStepInfo(configStepKey);
32657
32786
  contentItemId = (_configItems$option = configItems.option) === null || _configItems$option === void 0 ? void 0 : _configItems$option.contentItemId;
32658
32787
  return _context24.abrupt("return", _objectSpread$9(_objectSpread$9(_objectSpread$9({
32659
32788
  isRenderedNotInSettingPalette: set.configTree.isRenderedNotInSettingPalette(configStepKey),
@@ -32666,7 +32795,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32666
32795
  }, set.configTree.getOptionStuff(configStepKey, set)), {}, {
32667
32796
  contentItemId: contentItemId
32668
32797
  }));
32669
- case 13:
32798
+ case 12:
32670
32799
  case "end":
32671
32800
  return _context24.stop();
32672
32801
  }
@@ -32715,45 +32844,31 @@ var DivaSetHandler = /*#__PURE__*/function () {
32715
32844
  key: "variantsEvaluator",
32716
32845
  value: (function () {
32717
32846
  var _variantsEvaluator = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee23(set, configItems, configStepKey, paletteType) {
32718
- var _set$ViewConfig, _configItems$;
32719
- var opt, calcVariantsForPricePreview, previewType, _set$api$ReturnToFrom, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
32847
+ var _set$ViewConfig, _set$api$ReturnToFrom, _set$CatalogData$show;
32848
+ var opt, previewType, targetArticles, variants;
32720
32849
  return _regeneratorRuntime__default["default"].wrap(function _callee23$(_context25) {
32721
32850
  while (1) switch (_context25.prev = _context25.next) {
32722
32851
  case 0:
32723
32852
  opt = set.CatalogData.getOption(configItems[0].op);
32724
- if (opt) {
32725
- _context25.next = 3;
32726
- break;
32727
- }
32728
- return _context25.abrupt("return", configItems);
32729
- case 3:
32730
- calcVariantsForPricePreview = false;
32731
32853
  previewType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.pricePreview;
32732
- if (previewType) {
32733
- 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));
32734
- }
32735
- if (set.PlannerMode === 'BoxPlanner') calcVariantsForPricePreview = false;
32736
- if (paletteType == 'GAL' && ((_configItems$ = configItems[0]) === null || _configItems$ === void 0 ? void 0 : _configItems$.groupName) === undefined || paletteType == 'TEXTBOX' || paletteType == 'NUMBERBOX' || paletteType == 'RANGE') {
32737
- calcVariantsForPricePreview = false;
32738
- }
32739
- if (!calcVariantsForPricePreview) {
32740
- _context25.next = 17;
32854
+ 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))) {
32855
+ _context25.next = 4;
32741
32856
  break;
32742
32857
  }
32858
+ return _context25.abrupt("return", configItems);
32859
+ case 4:
32743
32860
  targetArticles = set.configTree.getTargetArticles(configStepKey);
32744
- startTime = new Date();
32745
- _context25.next = 13;
32746
- return this.calcVariants(set, configItems, targetArticles);
32747
- case 13:
32861
+ _context25.next = 7;
32862
+ return this.calcVariants(set, configItems, targetArticles, opt.codex);
32863
+ case 7:
32748
32864
  variants = _context25.sent;
32749
- endTime = new Date();
32750
- if (endTime.getTime() - startTime.getTime() > 1000) set.dontCalcPricePreviewDueToPerformanceIssues = true;
32751
32865
  if (previewType) {
32752
- this.calcPricePreview(set, configItems, variants);
32866
+ configItems.map(function (c, index) {
32867
+ return c.pricePreviewPromise = variants[index];
32868
+ });
32753
32869
  }
32754
- case 17:
32755
32870
  return _context25.abrupt("return", configItems);
32756
- case 18:
32871
+ case 10:
32757
32872
  case "end":
32758
32873
  return _context25.stop();
32759
32874
  }
@@ -32767,109 +32882,167 @@ var DivaSetHandler = /*#__PURE__*/function () {
32767
32882
  }, {
32768
32883
  key: "calcVariants",
32769
32884
  value: function () {
32770
- var _calcVariants = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee24(set, configItems, targetArticles) {
32771
- var variantInfo, articles, origConfigs, i, item, variantValues, doUseConfigs, targetIndex, origConfig, key, _targetIndex;
32885
+ var _calcVariants = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee24(realSet, configItems, targetArticles, optionCodex) {
32886
+ var variantInfo, set, articles, origPrice, articleConfigs, i, basketId, totalConfig, key, parentNames, _i5, configItem;
32772
32887
  return _regeneratorRuntime__default["default"].wrap(function _callee24$(_context26) {
32773
32888
  while (1) switch (_context26.prev = _context26.next) {
32774
32889
  case 0:
32775
32890
  variantInfo = [];
32891
+ set = realSet.cloneSet();
32776
32892
  articles = set.getDivaArticles();
32777
- origConfigs = targetArticles.map(function (basketId) {
32778
- return articles[basketId].VariantValues;
32779
- });
32780
- i = 0;
32781
- case 4:
32782
- if (!(i < configItems.length)) {
32893
+ origPrice = set.getSetPrice();
32894
+ articleConfigs = {};
32895
+ for (i = 0; i < targetArticles.length; i++) {
32896
+ basketId = targetArticles[i];
32897
+ articleConfigs[basketId] = {
32898
+ config: articles[basketId].VisibleVariantValues,
32899
+ articleCodex: articles[basketId].articleCodex
32900
+ };
32901
+ }
32902
+ totalConfig = {};
32903
+ for (key in articles) {
32904
+ totalConfig[key] = {
32905
+ config: articles[key].VisibleVariantValues,
32906
+ articleCodex: articles[key].articleCodex
32907
+ };
32908
+ }
32909
+ parentNames = [];
32910
+ _i5 = 0;
32911
+ case 10:
32912
+ if (!(_i5 < configItems.length)) {
32783
32913
  _context26.next = 23;
32784
32914
  break;
32785
32915
  }
32786
- item = configItems[i];
32787
- variantValues = {};
32788
- doUseConfigs = false;
32789
- targetIndex = 0;
32790
- case 9:
32791
- if (!(targetIndex < origConfigs.length)) {
32916
+ configItem = configItems[_i5];
32917
+ if (!(configItem.parentName && configItem.isParentOPVG)) {
32792
32918
  _context26.next = 19;
32793
32919
  break;
32794
32920
  }
32795
- origConfig = origConfigs[targetIndex];
32796
- for (key in origConfig) {
32797
- if (key == item.op || key == item.idmOpgOptionCodex) {
32798
- doUseConfigs = true;
32799
- } else if (doUseConfigs) variantValues[key] = origConfig[key];
32921
+ if (!parentNames.includes(configItem.parentName)) {
32922
+ _context26.next = 18;
32923
+ break;
32800
32924
  }
32801
- variantValues[item.op] = item.codex;
32802
- if (item.idmOpgOptionCodex) variantValues[item.idmOpgOptionCodex] = item.idmOpgValCodex;
32803
- _context26.next = 16;
32804
- return this.updateArticlesOptionStatesOfActSet(set, variantValues, [targetArticles[targetIndex]], true, 'calcVariant');
32805
- case 16:
32806
- targetIndex++;
32807
- _context26.next = 9;
32808
- break;
32925
+ variantInfo.push(variantInfo[_i5 - 1]);
32926
+ return _context26.abrupt("continue", 20);
32927
+ case 18:
32928
+ parentNames.push(configItem.parentName);
32809
32929
  case 19:
32810
- variantInfo.push({
32811
- price: set.getSetPrice(),
32812
- variants: set.getGeneralVariantValues(targetArticles),
32813
- opt: item.op
32814
- });
32930
+ variantInfo.push(this.getVariant(set, configItem, articleConfigs, totalConfig, targetArticles, optionCodex, origPrice, _i5, variantInfo[_i5 - 1]));
32815
32931
  case 20:
32816
- i++;
32817
- _context26.next = 4;
32932
+ _i5++;
32933
+ _context26.next = 10;
32818
32934
  break;
32819
32935
  case 23:
32820
- _targetIndex = 0;
32821
- case 24:
32822
- if (!(_targetIndex < origConfigs.length)) {
32823
- _context26.next = 30;
32824
- break;
32825
- }
32826
- _context26.next = 27;
32827
- return this.updateArticlesOptionStatesOfActSet(set, origConfigs[_targetIndex], [targetArticles[_targetIndex]], true);
32828
- case 27:
32829
- _targetIndex++;
32830
- _context26.next = 24;
32831
- break;
32832
- case 30:
32833
32936
  return _context26.abrupt("return", variantInfo);
32834
- case 31:
32937
+ case 24:
32835
32938
  case "end":
32836
32939
  return _context26.stop();
32837
32940
  }
32838
32941
  }, _callee24, this);
32839
32942
  }));
32840
- function calcVariants(_x85, _x86, _x87) {
32943
+ function calcVariants(_x85, _x86, _x87, _x88) {
32841
32944
  return _calcVariants.apply(this, arguments);
32842
32945
  }
32843
32946
  return calcVariants;
32844
32947
  }()
32845
32948
  }, {
32846
- key: "calcPricePreview",
32847
- value: function calcPricePreview(set, configItems, variantsInfo) {
32848
- var _set$ViewConfig2;
32849
- var previewType = (_set$ViewConfig2 = set.ViewConfig) === null || _set$ViewConfig2 === void 0 ? void 0 : _set$ViewConfig2.pricePreview;
32850
- var origPrice = set.getSetPrice();
32851
- var firstPrice;
32852
- if (configItems.length < 20) {
32853
- for (var i = 0; i < configItems.length; i++) {
32854
- var item = configItems[i];
32855
- var variant = variantsInfo[i];
32856
- switch (previewType) {
32857
- case 'fromCurrentPrice':
32858
- item.deltaPrice = variant.price - origPrice;
32949
+ key: "getVariant",
32950
+ value: function () {
32951
+ var _getVariant = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee25(set, item, origConfigs, totalConfig, targetArticles, optionCodex, origPrice, index, previousPromise) {
32952
+ var firstPrice, startTime, doUseConfigs, hashVariantValues, variantValues, i, basketId, origConfig, key, hash, dataHash, _i6, endTime, calcTime, priceObj;
32953
+ return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context27) {
32954
+ while (1) switch (_context27.prev = _context27.next) {
32955
+ case 0:
32956
+ firstPrice = undefined;
32957
+ if (!previousPromise) {
32958
+ _context27.next = 7;
32959
+ break;
32960
+ }
32961
+ _context27.next = 4;
32962
+ return previousPromise;
32963
+ case 4:
32964
+ firstPrice = _context27.sent.firstPrice;
32965
+ _context27.next = 8;
32859
32966
  break;
32860
- case 'fromBasePrice':
32861
- if (firstPrice === undefined) {
32862
- firstPrice = variant.price;
32863
- item.deltaPrice = 0;
32864
- } else {
32865
- item.deltaPrice = variant.price - firstPrice;
32967
+ case 7:
32968
+ firstPrice = set.getSetPrice();
32969
+ case 8:
32970
+ startTime = new Date();
32971
+ doUseConfigs = false;
32972
+ hashVariantValues = [];
32973
+ variantValues = [];
32974
+ i = 0;
32975
+ for (basketId in origConfigs) {
32976
+ hashVariantValues[i] = {
32977
+ articleCodex: origConfigs[basketId].articleCodex
32978
+ };
32979
+ variantValues[i] = {};
32980
+ origConfig = origConfigs[basketId].config;
32981
+ for (key in origConfig) {
32982
+ if (key == item.op || key == item.idmOpgOptionCodex) {
32983
+ doUseConfigs = true;
32984
+ } else if (doUseConfigs) {
32985
+ variantValues[i][key] = origConfig[key];
32986
+ }
32987
+ hashVariantValues[i][key] = origConfig[key];
32988
+ }
32989
+ variantValues[i][item.op] = item.codex;
32990
+ hashVariantValues[i][item.op] = item.codex;
32991
+ totalConfig[basketId].config[item.op] = item.codex;
32992
+ if (item.idmOpgOptionCodex) variantValues[i][item.idmOpgOptionCodex] = item.idmOpgValCodex;
32993
+ i++;
32994
+ }
32995
+ hash = DivaUtils.md5(JSON.stringify([].concat(hashVariantValues, _toConsumableArray__default["default"](Object.values(totalConfig)))));
32996
+ dataHash = set.CatalogData.getVariantsPriceByHash(hash);
32997
+ if (!dataHash) {
32998
+ _context27.next = 19;
32999
+ break;
33000
+ }
33001
+ LOG$9.debug('calcingVariant from Option:' + optionCodex + ' and index: ' + index + ' hash hit!', dataHash, [].concat(hashVariantValues, _toConsumableArray__default["default"](Object.values(totalConfig))), targetArticles);
33002
+ return _context27.abrupt("return", _objectSpread$9(_objectSpread$9({}, dataHash), {}, {
33003
+ origPrice: origPrice,
33004
+ firstPrice: firstPrice
33005
+ }));
33006
+ case 19:
33007
+ _i6 = 0;
33008
+ case 20:
33009
+ if (!(_i6 < variantValues.length)) {
33010
+ _context27.next = 26;
33011
+ break;
32866
33012
  }
33013
+ _context27.next = 23;
33014
+ return this.updateArticlesOptionStatesOfActSet(set, variantValues[_i6], [targetArticles[_i6]], true, 'calcVariant');
33015
+ case 23:
33016
+ _i6++;
33017
+ _context27.next = 20;
32867
33018
  break;
33019
+ case 26:
33020
+ endTime = new Date();
33021
+ calcTime = endTime.getTime() - startTime.getTime();
33022
+ LOG$9.debug('calcingVariant Time from Option:' + optionCodex + ' and index: ' + index + ' time is: ' + calcTime + 'ms' + targetArticles.join(';'), [].concat(hashVariantValues, _toConsumableArray__default["default"](Object.values(totalConfig))));
33023
+ priceObj = {
33024
+ price: set.getSetPrice(),
33025
+ opt: item.op,
33026
+ opv: item.codex,
33027
+ origPrice: origPrice,
33028
+ calcTime: calcTime,
33029
+ firstPrice: firstPrice,
33030
+ variantValues: hashVariantValues,
33031
+ hashObj: [].concat(hashVariantValues, _toConsumableArray__default["default"](Object.values(totalConfig)))
33032
+ };
33033
+ set.CatalogData.setVariantsPriceByHash(hash, priceObj);
33034
+ return _context27.abrupt("return", priceObj);
33035
+ case 32:
33036
+ case "end":
33037
+ return _context27.stop();
32868
33038
  }
32869
- }
33039
+ }, _callee25, this);
33040
+ }));
33041
+ function getVariant(_x89, _x90, _x91, _x92, _x93, _x94, _x95, _x96, _x97) {
33042
+ return _getVariant.apply(this, arguments);
32870
33043
  }
32871
- }
32872
-
33044
+ return getVariant;
33045
+ }()
32873
33046
  /**
32874
33047
  * This function updates the option values of the articles
32875
33048
  * @param myValues
@@ -32879,11 +33052,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
32879
33052
  }, {
32880
33053
  key: "updateArticlesOptionStatesOfActSet",
32881
33054
  value: (function () {
32882
- var _updateArticlesOptionStatesOfActSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee25(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
33055
+ var _updateArticlesOptionStatesOfActSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
32883
33056
  var _Object$keys, _resultPlannerUpdate;
32884
33057
  var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, articleCopyRelation, newArticle;
32885
- return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context27) {
32886
- while (1) switch (_context27.prev = _context27.next) {
33058
+ return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context28) {
33059
+ while (1) switch (_context28.prev = _context28.next) {
32887
33060
  case 0:
32888
33061
  elementsToDeleteById = [];
32889
33062
  targetArticlesToUpdateOnly = [];
@@ -32895,54 +33068,54 @@ var DivaSetHandler = /*#__PURE__*/function () {
32895
33068
  } else {
32896
33069
  targetArticlesToUpdateOnly = targetArticlesWithNewValues;
32897
33070
  }
32898
- _context27.next = 5;
33071
+ _context28.next = 5;
32899
33072
  return articleHandlerInstance.updateArticlesOptionStates(myValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
32900
33073
  case 5:
32901
- retValues = _context27.sent;
33074
+ retValues = _context28.sent;
32902
33075
  targetArticlesWithNewValues = retValues.targetArticlesToUpdate;
32903
33076
  if (!(retValues.partlistArticlesToLoad.length > 0)) {
32904
- _context27.next = 16;
33077
+ _context28.next = 16;
32905
33078
  break;
32906
33079
  }
32907
33080
  diff = targetArticlesToUpdateOnly.length - Object.keys(set.getDivaArticles()).length;
32908
33081
  if (!(diff == 0 || partlistDiff == diff)) {
32909
- _context27.next = 14;
33082
+ _context28.next = 14;
32910
33083
  break;
32911
33084
  }
32912
- _context27.next = 12;
33085
+ _context28.next = 12;
32913
33086
  return articleHandlerInstance.correctPartlistArticlesByGlobalRules(set, retValues.partlistArticlesToLoad, set.CatalogData.bundleRules, {
32914
33087
  doChange: false
32915
33088
  });
32916
33089
  case 12:
32917
- _context27.next = 16;
33090
+ _context28.next = 16;
32918
33091
  break;
32919
33092
  case 14:
32920
- _context27.next = 16;
33093
+ _context28.next = 16;
32921
33094
  return this.updateArticlesOptionStatesOfActSet(set, {}, targetArticlesWithNewValues, ignorePlanner, from, diff);
32922
33095
  case 16:
32923
33096
  if (!(from !== 'initializingPartlist')) {
32924
- _context27.next = 19;
33097
+ _context28.next = 19;
32925
33098
  break;
32926
33099
  }
32927
- _context27.next = 19;
33100
+ _context28.next = 19;
32928
33101
  return this.updateEdoArticles(set, retValues.newEDOExtraArticles);
32929
33102
  case 19:
32930
33103
  if (set.CatalogData.hasAlternateRenderings) set.CatalogData.updateAlternativeRenderings(set.getDivaArticles());
32931
33104
 
32932
33105
  //Update Planner - check if planner data changed
32933
33106
  if (!(!ignorePlanner && from != 'calcVariant')) {
32934
- _context27.next = 48;
33107
+ _context28.next = 49;
32935
33108
  break;
32936
33109
  }
32937
33110
  targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
32938
- _context27.next = 24;
33111
+ _context28.next = 24;
32939
33112
  return set.plannerHandler.updatePlanner(set.getSetId(), myValues, targetElementIds);
32940
33113
  case 24:
32941
- resultPlannerUpdate = _context27.sent;
33114
+ resultPlannerUpdate = _context28.sent;
32942
33115
  i = 0;
32943
33116
  case 26:
32944
33117
  if (!(i < resultPlannerUpdate.elemIdsToDelete.length)) {
32945
- _context27.next = 35;
33118
+ _context28.next = 35;
32946
33119
  break;
32947
33120
  }
32948
33121
  articleToDel = set.getArticleByElementId(resultPlannerUpdate.elemIdsToDelete[i]);
@@ -32950,15 +33123,15 @@ var DivaSetHandler = /*#__PURE__*/function () {
32950
33123
  if (index > -1) {
32951
33124
  targetArticlesWithNewValues.splice(index, 1);
32952
33125
  }
32953
- _context27.next = 32;
33126
+ _context28.next = 32;
32954
33127
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[i], false, resultPlannerUpdate.deletionType);
32955
33128
  case 32:
32956
33129
  i++;
32957
- _context27.next = 26;
33130
+ _context28.next = 26;
32958
33131
  break;
32959
33132
  case 35:
32960
33133
  if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
32961
- _context27.next = 48;
33134
+ _context28.next = 48;
32962
33135
  break;
32963
33136
  }
32964
33137
  //Todo copy these elements
@@ -32966,20 +33139,20 @@ var DivaSetHandler = /*#__PURE__*/function () {
32966
33139
  i = 0;
32967
33140
  case 38:
32968
33141
  if (!(i < resultPlannerUpdate.elementIdToCopy.length)) {
32969
- _context27.next = 46;
33142
+ _context28.next = 46;
32970
33143
  break;
32971
33144
  }
32972
- _context27.next = 41;
33145
+ _context28.next = 41;
32973
33146
  return this.copyArticleByElementId(set, resultPlannerUpdate.elementIdToCopy[i], resultPlannerUpdate.ignoreOptionsToCopy);
32974
33147
  case 41:
32975
- newArticle = _context27.sent;
33148
+ newArticle = _context28.sent;
32976
33149
  articleCopyRelation.set(resultPlannerUpdate.elementIdToCopy[i], newArticle.basketId);
32977
33150
  case 43:
32978
33151
  i++;
32979
- _context27.next = 38;
33152
+ _context28.next = 38;
32980
33153
  break;
32981
33154
  case 46:
32982
- _context27.next = 48;
33155
+ _context28.next = 48;
32983
33156
  return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
32984
33157
  dpType: resultPlannerUpdate.copyDPType ? resultPlannerUpdate.copyDPType : 'NO',
32985
33158
  copyType: resultPlannerUpdate.copyType,
@@ -32988,21 +33161,22 @@ var DivaSetHandler = /*#__PURE__*/function () {
32988
33161
  });
32989
33162
  case 48:
32990
33163
  this.updatePosNrOfAccessoiresOfTargetArticles(set, targetArticlesWithNewValues);
33164
+ case 49:
32991
33165
  if (from == 'FromViewClick' && (_Object$keys = Object.keys(myValues)) !== null && _Object$keys !== void 0 && _Object$keys.length) {
32992
33166
  this.confirmOptionsInMetric(set, [Object.keys(myValues)[0]]);
32993
33167
  }
32994
- return _context27.abrupt("return", {
33168
+ return _context28.abrupt("return", {
32995
33169
  articleCountChanged: elementsToDeleteById.length > 0,
32996
33170
  elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
32997
33171
  setId: set.getSetId()
32998
33172
  });
32999
33173
  case 51:
33000
33174
  case "end":
33001
- return _context27.stop();
33175
+ return _context28.stop();
33002
33176
  }
33003
- }, _callee25, this);
33177
+ }, _callee26, this);
33004
33178
  }));
33005
- function updateArticlesOptionStatesOfActSet(_x88, _x89, _x90, _x91, _x92, _x93) {
33179
+ function updateArticlesOptionStatesOfActSet(_x98, _x99, _x100, _x101, _x102, _x103) {
33006
33180
  return _updateArticlesOptionStatesOfActSet.apply(this, arguments);
33007
33181
  }
33008
33182
  return updateArticlesOptionStatesOfActSet;
@@ -33056,63 +33230,63 @@ var DivaSetHandler = /*#__PURE__*/function () {
33056
33230
  }, {
33057
33231
  key: "updateEdoArticles",
33058
33232
  value: function () {
33059
- var _updateEdoArticles = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(set, edoArticlesToLoad) {
33060
- var oldBasketIds, i, article, newArticles, _i5, _i6;
33061
- return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context28) {
33062
- while (1) switch (_context28.prev = _context28.next) {
33233
+ var _updateEdoArticles = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee27(set, edoArticlesToLoad) {
33234
+ var oldBasketIds, i, article, newArticles, _i7, _i8;
33235
+ return _regeneratorRuntime__default["default"].wrap(function _callee27$(_context29) {
33236
+ while (1) switch (_context29.prev = _context29.next) {
33063
33237
  case 0:
33064
33238
  if (!(set.edoExtraArticles.length > 0 || edoArticlesToLoad.length > 0)) {
33065
- _context28.next = 22;
33239
+ _context29.next = 22;
33066
33240
  break;
33067
33241
  }
33068
33242
  oldBasketIds = _toConsumableArray__default["default"](set.edoExtraArticles);
33069
33243
  i = 0;
33070
33244
  case 3:
33071
33245
  if (!(i < set.edoExtraArticles.length)) {
33072
- _context28.next = 11;
33246
+ _context29.next = 11;
33073
33247
  break;
33074
33248
  }
33075
33249
  article = set.getArticleByBasketId(set.edoExtraArticles[i]);
33076
33250
  if (!article) {
33077
- _context28.next = 8;
33251
+ _context29.next = 8;
33078
33252
  break;
33079
33253
  }
33080
- _context28.next = 8;
33254
+ _context29.next = 8;
33081
33255
  return this.deleteElementFromSet(set, article);
33082
33256
  case 8:
33083
33257
  i++;
33084
- _context28.next = 3;
33258
+ _context29.next = 3;
33085
33259
  break;
33086
33260
  case 11:
33087
33261
  set.edoExtraArticles = [];
33088
33262
  newArticles = [];
33089
- _i5 = 0;
33263
+ _i7 = 0;
33090
33264
  case 14:
33091
- if (!(_i5 < edoArticlesToLoad.length)) {
33092
- _context28.next = 21;
33265
+ if (!(_i7 < edoArticlesToLoad.length)) {
33266
+ _context29.next = 21;
33093
33267
  break;
33094
33268
  }
33095
- _context28.next = 17;
33096
- return this.addArticleToActSet(set, edoArticlesToLoad[_i5].ArticleCodex, _objectSpread$9(_objectSpread$9({}, edoArticlesToLoad[_i5]), {}, {
33097
- basketId: oldBasketIds[_i5]
33269
+ _context29.next = 17;
33270
+ return this.addArticleToActSet(set, edoArticlesToLoad[_i7].ArticleCodex, _objectSpread$9(_objectSpread$9({}, edoArticlesToLoad[_i7]), {}, {
33271
+ basketId: oldBasketIds[_i7]
33098
33272
  }), true);
33099
33273
  case 17:
33100
- newArticles[_i5] = _context28.sent;
33274
+ newArticles[_i7] = _context29.sent;
33101
33275
  case 18:
33102
- _i5++;
33103
- _context28.next = 14;
33276
+ _i7++;
33277
+ _context29.next = 14;
33104
33278
  break;
33105
33279
  case 21:
33106
- for (_i6 = 0; _i6 < newArticles.length; _i6++) {
33107
- set.edoExtraArticles.push(newArticles[_i6].basketId);
33280
+ for (_i8 = 0; _i8 < newArticles.length; _i8++) {
33281
+ set.edoExtraArticles.push(newArticles[_i8].basketId);
33108
33282
  }
33109
33283
  case 22:
33110
33284
  case "end":
33111
- return _context28.stop();
33285
+ return _context29.stop();
33112
33286
  }
33113
- }, _callee26, this);
33287
+ }, _callee27, this);
33114
33288
  }));
33115
- function updateEdoArticles(_x94, _x95) {
33289
+ function updateEdoArticles(_x104, _x105) {
33116
33290
  return _updateEdoArticles.apply(this, arguments);
33117
33291
  }
33118
33292
  return updateEdoArticles;
@@ -33278,11 +33452,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33278
33452
  }, {
33279
33453
  key: "fillOrderLinesAndOrderSets",
33280
33454
  value: function () {
33281
- var _fillOrderLinesAndOrderSets = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee27(sets, divaBasketHandler, repairOnly, setPlanner, returnTo) {
33455
+ var _fillOrderLinesAndOrderSets = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(sets, divaBasketHandler, repairOnly, setPlanner, returnTo) {
33282
33456
  var _set$getMatchingProdu2, _set$getMatchingProdu3;
33283
33457
  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;
33284
- return _regeneratorRuntime__default["default"].wrap(function _callee27$(_context29) {
33285
- while (1) switch (_context29.prev = _context29.next) {
33458
+ return _regeneratorRuntime__default["default"].wrap(function _callee28$(_context30) {
33459
+ while (1) switch (_context30.prev = _context30.next) {
33286
33460
  case 0:
33287
33461
  orderSets = [];
33288
33462
  basketData = divaBasketHandler.actBasket;
@@ -33295,29 +33469,29 @@ var DivaSetHandler = /*#__PURE__*/function () {
33295
33469
  }
33296
33470
  basketData.MatchingProductId = set === null || set === void 0 || (_set$getMatchingProdu2 = set.getMatchingProduct()) === null || _set$getMatchingProdu2 === void 0 ? void 0 : _set$getMatchingProdu2._id;
33297
33471
  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();
33298
- _context29.t0 = _regeneratorRuntime__default["default"].keys(sets);
33472
+ _context30.t0 = _regeneratorRuntime__default["default"].keys(sets);
33299
33473
  case 9:
33300
- if ((_context29.t1 = _context29.t0()).done) {
33301
- _context29.next = 31;
33474
+ if ((_context30.t1 = _context30.t0()).done) {
33475
+ _context30.next = 31;
33302
33476
  break;
33303
33477
  }
33304
- key = _context29.t1.value;
33478
+ key = _context30.t1.value;
33305
33479
  setPosNr++;
33306
33480
  _set = sets[key];
33307
33481
  catalogData = _set.CatalogData;
33308
33482
  articles = _set.getDivaArticles();
33309
- _context29.next = 17;
33483
+ _context30.next = 17;
33310
33484
  return this.getOrderSet(_set, catalogData, setPosNr, divaBasketHandler.actDivaNr, repairOnly, returnTo);
33311
33485
  case 17:
33312
- newOrderSet = _context29.sent;
33486
+ newOrderSet = _context30.sent;
33313
33487
  basketData.setIsPlanning(_set.SetType == 'PLANNING' ? '1' : '0');
33314
33488
  OrderLinesOfActSet = articleHandlerInstance.getOrderLinesOfArticles(articles, repairOnly, !!((_set$basketConfigVari = _set.basketConfigVariants) !== null && _set$basketConfigVari !== void 0 && _set$basketConfigVari.length));
33315
33489
  articleHandlerInstance.checkForRoundingError(OrderLinesOfActSet, _set);
33316
33490
  if (OrderLinesOfActSet.length) {
33317
- _context29.next = 23;
33491
+ _context30.next = 23;
33318
33492
  break;
33319
33493
  }
33320
- return _context29.abrupt("continue", 9);
33494
+ return _context30.abrupt("continue", 9);
33321
33495
  case 23:
33322
33496
  OrderLinesOfActSet = divaBasketHandler.divaWWSHandler.repairWWSFlags(articles, OrderLinesOfActSet);
33323
33497
  if (newOrderSet.SetImage == '' && (_OrderLinesOfActSet$ = OrderLinesOfActSet[0]) !== null && _OrderLinesOfActSet$ !== void 0 && _OrderLinesOfActSet$.Image && _set.PlannerMode == 'No') {
@@ -33339,7 +33513,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33339
33513
  }
33340
33514
  newOrderSet.setOrderLines(OrderLinesOfActSet);
33341
33515
  orderSets.push(newOrderSet);
33342
- _context29.next = 9;
33516
+ _context30.next = 9;
33343
33517
  break;
33344
33518
  case 31:
33345
33519
  //fill diva3DProject for renderings & AR Converter
@@ -33347,7 +33521,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33347
33521
  i = 0;
33348
33522
  case 33:
33349
33523
  if (!(i < ((_basketData$OrderSets = basketData.OrderSets) === null || _basketData$OrderSets === void 0 ? void 0 : _basketData$OrderSets.length))) {
33350
- _context29.next = 48;
33524
+ _context30.next = 48;
33351
33525
  break;
33352
33526
  }
33353
33527
  oderSetsIsInActPlanning = false;
@@ -33355,18 +33529,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
33355
33529
  j = 0;
33356
33530
  case 37:
33357
33531
  if (!(j < orderSets.length)) {
33358
- _context29.next = 44;
33532
+ _context30.next = 44;
33359
33533
  break;
33360
33534
  }
33361
33535
  if (!(orderSets[j].SetID == setId)) {
33362
- _context29.next = 41;
33536
+ _context30.next = 41;
33363
33537
  break;
33364
33538
  }
33365
33539
  oderSetsIsInActPlanning = true;
33366
- return _context29.abrupt("break", 44);
33540
+ return _context30.abrupt("break", 44);
33367
33541
  case 41:
33368
33542
  j++;
33369
- _context29.next = 37;
33543
+ _context30.next = 37;
33370
33544
  break;
33371
33545
  case 44:
33372
33546
  if (!oderSetsIsInActPlanning && !((_basketData$SetPlanne = basketData.SetPlannerInfos) !== null && _basketData$SetPlanne !== void 0 && _basketData$SetPlanne.InvolvedSetIds.includes(setId))) {
@@ -33374,7 +33548,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33374
33548
  }
33375
33549
  case 45:
33376
33550
  i++;
33377
- _context29.next = 33;
33551
+ _context30.next = 33;
33378
33552
  break;
33379
33553
  case 48:
33380
33554
  basketData.SetPlannerInfos = setPlanner ? this.getSetPlannerInfos(Object.keys(sets), orderSets) : undefined;
@@ -33383,14 +33557,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33383
33557
  } else {
33384
33558
  basketData.setOrderSets(orderSets);
33385
33559
  }
33386
- return _context29.abrupt("return", basketData);
33560
+ return _context30.abrupt("return", basketData);
33387
33561
  case 51:
33388
33562
  case "end":
33389
- return _context29.stop();
33563
+ return _context30.stop();
33390
33564
  }
33391
- }, _callee27, this);
33565
+ }, _callee28, this);
33392
33566
  }));
33393
- function fillOrderLinesAndOrderSets(_x96, _x97, _x98, _x99, _x100) {
33567
+ function fillOrderLinesAndOrderSets(_x106, _x107, _x108, _x109, _x110) {
33394
33568
  return _fillOrderLinesAndOrderSets.apply(this, arguments);
33395
33569
  }
33396
33570
  return fillOrderLinesAndOrderSets;
@@ -33474,11 +33648,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33474
33648
  }, {
33475
33649
  key: "getOrderSet",
33476
33650
  value: function () {
33477
- var _getOrderSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(set, catalogData, posNr, divaNr, repairOnly, returnTo) {
33651
+ var _getOrderSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee29(set, catalogData, posNr, divaNr, repairOnly, returnTo) {
33478
33652
  var _Object$values$, _set$getDivaArticles, _hqRenderScript, _set$basketConfigVari2, _set$basketConfigVari3;
33479
33653
  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;
33480
- return _regeneratorRuntime__default["default"].wrap(function _callee28$(_context30) {
33481
- while (1) switch (_context30.prev = _context30.next) {
33654
+ return _regeneratorRuntime__default["default"].wrap(function _callee29$(_context31) {
33655
+ while (1) switch (_context31.prev = _context31.next) {
33482
33656
  case 0:
33483
33657
  dontGenerateImages = repairOnly || returnTo == 'DONT_SAVE_BASKET' || returnTo == 'TEST_CONFIGURATORLOGIC';
33484
33658
  DivaUtils__default["default"].startSpanOfApm('GetSet3D und 2D Image');
@@ -33490,7 +33664,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33490
33664
  hqRenderScript = undefined;
33491
33665
  dimensions = {};
33492
33666
  if (dontGenerateImages) {
33493
- _context30.next = 28;
33667
+ _context31.next = 28;
33494
33668
  break;
33495
33669
  }
33496
33670
  promise3D = this.getSetImage(set, typeof window === 'undefined');
@@ -33498,10 +33672,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
33498
33672
  if (!catalogData.dontSaveAlternativeRenderings && set.CatalogData.alternateRenderingsForSummary.length) {
33499
33673
  promise3DAlternate = this.getAlternateSetImages(set);
33500
33674
  }
33501
- _context30.next = 15;
33675
+ _context31.next = 15;
33502
33676
  return Promise.all([promise3D, promise2D, promise3DAlternate]);
33503
33677
  case 15:
33504
- _yield$Promise$all = _context30.sent;
33678
+ _yield$Promise$all = _context31.sent;
33505
33679
  _yield$Promise$all2 = _slicedToArray__default["default"](_yield$Promise$all, 3);
33506
33680
  _yield$Promise$all2$ = _yield$Promise$all2[0];
33507
33681
  setImage = _yield$Promise$all2$.url;
@@ -33509,10 +33683,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
33509
33683
  urlToPlanning2D = _yield$Promise$all2[1];
33510
33684
  alternateSetImages = _yield$Promise$all2[2];
33511
33685
  promiseHQRenderScript = this.getHQRenderScript(set, divaNr);
33512
- _context30.next = 25;
33686
+ _context31.next = 25;
33513
33687
  return Promise.all([promiseHQRenderScript]);
33514
33688
  case 25:
33515
- _yield$Promise$all3 = _context30.sent;
33689
+ _yield$Promise$all3 = _context31.sent;
33516
33690
  _yield$Promise$all4 = _slicedToArray__default["default"](_yield$Promise$all3, 1);
33517
33691
  hqRenderScript = _yield$Promise$all4[0];
33518
33692
  case 28:
@@ -33574,14 +33748,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33574
33748
  MetaData: !((_set$basketConfigVari2 = set.basketConfigVariants) !== null && _set$basketConfigVari2 !== void 0 && _set$basketConfigVari2.length) ? set.MetaData : undefined,
33575
33749
  MetaData_locales: !((_set$basketConfigVari3 = set.basketConfigVariants) !== null && _set$basketConfigVari3 !== void 0 && _set$basketConfigVari3.length) ? set.MetaData_locales : undefined
33576
33750
  });
33577
- return _context30.abrupt("return", orderSet);
33751
+ return _context31.abrupt("return", orderSet);
33578
33752
  case 34:
33579
33753
  case "end":
33580
- return _context30.stop();
33754
+ return _context31.stop();
33581
33755
  }
33582
- }, _callee28, this);
33756
+ }, _callee29, this);
33583
33757
  }));
33584
- function getOrderSet(_x101, _x102, _x103, _x104, _x105, _x106) {
33758
+ function getOrderSet(_x111, _x112, _x113, _x114, _x115, _x116) {
33585
33759
  return _getOrderSet.apply(this, arguments);
33586
33760
  }
33587
33761
  return getOrderSet;
@@ -33594,31 +33768,31 @@ var DivaSetHandler = /*#__PURE__*/function () {
33594
33768
  }, {
33595
33769
  key: "getSetImage",
33596
33770
  value: (function () {
33597
- var _getSetImage = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee29(set, overwriteLastSavedRendering) {
33771
+ var _getSetImage = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee30(set, overwriteLastSavedRendering) {
33598
33772
  var is3D, _yield$set$plannerHan, dimensions, url;
33599
- return _regeneratorRuntime__default["default"].wrap(function _callee29$(_context31) {
33600
- while (1) switch (_context31.prev = _context31.next) {
33773
+ return _regeneratorRuntime__default["default"].wrap(function _callee30$(_context32) {
33774
+ while (1) switch (_context32.prev = _context32.next) {
33601
33775
  case 0:
33602
33776
  is3D = ['3DImage', '3DCOMB', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
33603
33777
  if (!is3D) {
33604
- _context31.next = 10;
33778
+ _context32.next = 10;
33605
33779
  break;
33606
33780
  }
33607
- _context31.next = 4;
33781
+ _context32.next = 4;
33608
33782
  return set.plannerHandler.saveSetImage(overwriteLastSavedRendering);
33609
33783
  case 4:
33610
- _context31.next = 6;
33784
+ _context32.next = 6;
33611
33785
  return set.plannerHandler.getSetImageAsUrl(set.getSetId());
33612
33786
  case 6:
33613
- _yield$set$plannerHan = _context31.sent;
33787
+ _yield$set$plannerHan = _context32.sent;
33614
33788
  dimensions = _yield$set$plannerHan.dimensions;
33615
33789
  url = _yield$set$plannerHan.url;
33616
- return _context31.abrupt("return", {
33790
+ return _context32.abrupt("return", {
33617
33791
  dimensions: dimensions,
33618
33792
  url: url
33619
33793
  });
33620
33794
  case 10:
33621
- return _context31.abrupt("return", {
33795
+ return _context32.abrupt("return", {
33622
33796
  dimensions: {
33623
33797
  w: undefined,
33624
33798
  h: undefined,
@@ -33627,11 +33801,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33627
33801
  });
33628
33802
  case 11:
33629
33803
  case "end":
33630
- return _context31.stop();
33804
+ return _context32.stop();
33631
33805
  }
33632
- }, _callee29);
33806
+ }, _callee30);
33633
33807
  }));
33634
- function getSetImage(_x107, _x108) {
33808
+ function getSetImage(_x117, _x118) {
33635
33809
  return _getSetImage.apply(this, arguments);
33636
33810
  }
33637
33811
  return getSetImage;
@@ -33639,45 +33813,45 @@ var DivaSetHandler = /*#__PURE__*/function () {
33639
33813
  }, {
33640
33814
  key: "getHQRenderScript",
33641
33815
  value: function () {
33642
- var _getHQRenderScript = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee30(set, divaNr) {
33816
+ var _getHQRenderScript = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(set, divaNr) {
33643
33817
  var is3D, hqRenderScript, createdHQRenderScript;
33644
- return _regeneratorRuntime__default["default"].wrap(function _callee30$(_context32) {
33645
- while (1) switch (_context32.prev = _context32.next) {
33818
+ return _regeneratorRuntime__default["default"].wrap(function _callee31$(_context33) {
33819
+ while (1) switch (_context33.prev = _context33.next) {
33646
33820
  case 0:
33647
33821
  //if not 3d
33648
33822
  is3D = ['3DImage', '3DCOMB', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
33649
33823
  if (is3D) {
33650
- _context32.next = 3;
33824
+ _context33.next = 3;
33651
33825
  break;
33652
33826
  }
33653
- return _context32.abrupt("return");
33827
+ return _context33.abrupt("return");
33654
33828
  case 3:
33655
- _context32.next = 5;
33829
+ _context33.next = 5;
33656
33830
  return set.plannerHandler.saveSetHQRenderScript();
33657
33831
  case 5:
33658
33832
  hqRenderScript = set.plannerHandler.getSetHQRenderScript();
33659
33833
  if (hqRenderScript) {
33660
- _context32.next = 8;
33834
+ _context33.next = 8;
33661
33835
  break;
33662
33836
  }
33663
- return _context32.abrupt("return");
33837
+ return _context33.abrupt("return");
33664
33838
  case 8:
33665
- _context32.next = 10;
33839
+ _context33.next = 10;
33666
33840
  return set.api.postHQRenderScript({
33667
33841
  divaNr: divaNr,
33668
33842
  hqRenderscript: hqRenderScript,
33669
33843
  organization: set.api.OrganizationId
33670
33844
  });
33671
33845
  case 10:
33672
- createdHQRenderScript = _context32.sent;
33673
- return _context32.abrupt("return", createdHQRenderScript);
33846
+ createdHQRenderScript = _context33.sent;
33847
+ return _context33.abrupt("return", createdHQRenderScript);
33674
33848
  case 12:
33675
33849
  case "end":
33676
- return _context32.stop();
33850
+ return _context33.stop();
33677
33851
  }
33678
- }, _callee30);
33852
+ }, _callee31);
33679
33853
  }));
33680
- function getHQRenderScript(_x109, _x110) {
33854
+ function getHQRenderScript(_x119, _x120) {
33681
33855
  return _getHQRenderScript.apply(this, arguments);
33682
33856
  }
33683
33857
  return getHQRenderScript;
@@ -33691,34 +33865,34 @@ var DivaSetHandler = /*#__PURE__*/function () {
33691
33865
  }, {
33692
33866
  key: "getAlternateSetImages",
33693
33867
  value: (function () {
33694
- var _getAlternateSetImages = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(set) {
33868
+ var _getAlternateSetImages = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee32(set) {
33695
33869
  var is2D, catalogData, setImages;
33696
- return _regeneratorRuntime__default["default"].wrap(function _callee31$(_context33) {
33697
- while (1) switch (_context33.prev = _context33.next) {
33870
+ return _regeneratorRuntime__default["default"].wrap(function _callee32$(_context34) {
33871
+ while (1) switch (_context34.prev = _context34.next) {
33698
33872
  case 0:
33699
33873
  is2D = !['3DImage', '3DCOMB', 'BoxPlanner'].includes(set.getPlannerMode());
33700
33874
  if (!(is2D || set.onlyRunLogic)) {
33701
- _context33.next = 3;
33875
+ _context34.next = 3;
33702
33876
  break;
33703
33877
  }
33704
- return _context33.abrupt("return", []);
33878
+ return _context34.abrupt("return", []);
33705
33879
  case 3:
33706
33880
  catalogData = set.CatalogData;
33707
- _context33.next = 6;
33881
+ _context34.next = 6;
33708
33882
  return set.plannerHandler.saveAlternateSetImages(catalogData.catalogCodex, catalogData.catalogGuid);
33709
33883
  case 6:
33710
- _context33.next = 8;
33884
+ _context34.next = 8;
33711
33885
  return set.plannerHandler.getAlternateSetImagesAsSetImageData(set.getSetId());
33712
33886
  case 8:
33713
- setImages = _context33.sent;
33714
- return _context33.abrupt("return", setImages);
33887
+ setImages = _context34.sent;
33888
+ return _context34.abrupt("return", setImages);
33715
33889
  case 10:
33716
33890
  case "end":
33717
- return _context33.stop();
33891
+ return _context34.stop();
33718
33892
  }
33719
- }, _callee31);
33893
+ }, _callee32);
33720
33894
  }));
33721
- function getAlternateSetImages(_x111) {
33895
+ function getAlternateSetImages(_x121) {
33722
33896
  return _getAlternateSetImages.apply(this, arguments);
33723
33897
  }
33724
33898
  return getAlternateSetImages;
@@ -33726,30 +33900,30 @@ var DivaSetHandler = /*#__PURE__*/function () {
33726
33900
  }, {
33727
33901
  key: "get2DSetImage",
33728
33902
  value: function () {
33729
- var _get2DSetImage = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee32(set) {
33903
+ var _get2DSetImage = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee33(set) {
33730
33904
  var urlToPlanning2D, catalogData, planning2DAsJPGBase64;
33731
- return _regeneratorRuntime__default["default"].wrap(function _callee32$(_context34) {
33732
- while (1) switch (_context34.prev = _context34.next) {
33905
+ return _regeneratorRuntime__default["default"].wrap(function _callee33$(_context35) {
33906
+ while (1) switch (_context35.prev = _context35.next) {
33733
33907
  case 0:
33734
33908
  urlToPlanning2D = undefined, catalogData = set.CatalogData;
33735
33909
  planning2DAsJPGBase64 = set.getPlanning2DAsJpg();
33736
33910
  if (!(planning2DAsJPGBase64 != undefined && planning2DAsJPGBase64 != '' && planning2DAsJPGBase64 != 'data:,')) {
33737
- _context34.next = 6;
33911
+ _context35.next = 6;
33738
33912
  break;
33739
33913
  }
33740
- _context34.next = 5;
33914
+ _context35.next = 5;
33741
33915
  return set.plannerHandler.saveSet2DImage(set.getSetId(), catalogData.catalogCodex, catalogData.catalogGuid, planning2DAsJPGBase64);
33742
33916
  case 5:
33743
- urlToPlanning2D = _context34.sent;
33917
+ urlToPlanning2D = _context35.sent;
33744
33918
  case 6:
33745
- return _context34.abrupt("return", urlToPlanning2D);
33919
+ return _context35.abrupt("return", urlToPlanning2D);
33746
33920
  case 7:
33747
33921
  case "end":
33748
- return _context34.stop();
33922
+ return _context35.stop();
33749
33923
  }
33750
- }, _callee32);
33924
+ }, _callee33);
33751
33925
  }));
33752
- function get2DSetImage(_x112) {
33926
+ function get2DSetImage(_x122) {
33753
33927
  return _get2DSetImage.apply(this, arguments);
33754
33928
  }
33755
33929
  return get2DSetImage;
@@ -33788,25 +33962,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
33788
33962
  }, {
33789
33963
  key: "addOrderSetArticlesToExistingSet",
33790
33964
  value: function () {
33791
- var _addOrderSetArticlesToExistingSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee33(set, orderSet, lastSetToInitialize) {
33792
- return _regeneratorRuntime__default["default"].wrap(function _callee33$(_context35) {
33793
- while (1) switch (_context35.prev = _context35.next) {
33965
+ var _addOrderSetArticlesToExistingSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee34(set, orderSet, lastSetToInitialize) {
33966
+ return _regeneratorRuntime__default["default"].wrap(function _callee34$(_context36) {
33967
+ while (1) switch (_context36.prev = _context36.next) {
33794
33968
  case 0:
33795
33969
  //TODO: GLOBAL STUFF
33796
33970
  //this.updateActSet(set);
33797
33971
  orderSet.changeBasketIds();
33798
- _context35.next = 3;
33972
+ _context36.next = 3;
33799
33973
  return this.initOrderLineArticles(set, orderSet);
33800
33974
  case 3:
33801
- _context35.next = 5;
33975
+ _context36.next = 5;
33802
33976
  return set.plannerHandler.extendSet(set, orderSet.SetPlanData, lastSetToInitialize);
33803
33977
  case 5:
33804
33978
  case "end":
33805
- return _context35.stop();
33979
+ return _context36.stop();
33806
33980
  }
33807
- }, _callee33, this);
33981
+ }, _callee34, this);
33808
33982
  }));
33809
- function addOrderSetArticlesToExistingSet(_x113, _x114, _x115) {
33983
+ function addOrderSetArticlesToExistingSet(_x123, _x124, _x125) {
33810
33984
  return _addOrderSetArticlesToExistingSet.apply(this, arguments);
33811
33985
  }
33812
33986
  return addOrderSetArticlesToExistingSet;
@@ -34857,7 +35031,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34857
35031
  break;
34858
35032
  case 3:
34859
35033
  _context12.next = 5;
34860
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-9cd478e3.js'); });
35034
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-0bb1d800.js'); });
34861
35035
  case 5:
34862
35036
  _yield$import = _context12.sent;
34863
35037
  PfisterWWSHandler = _yield$import["default"];
@@ -34865,7 +35039,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34865
35039
  return _context12.abrupt("break", 27);
34866
35040
  case 9:
34867
35041
  _context12.next = 11;
34868
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-3971939b.js'); });
35042
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-78d7443a.js'); });
34869
35043
  case 11:
34870
35044
  _yield$import2 = _context12.sent;
34871
35045
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34873,7 +35047,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34873
35047
  return _context12.abrupt("break", 27);
34874
35048
  case 15:
34875
35049
  _context12.next = 17;
34876
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-5fa059fb.js'); });
35050
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-b9dbaeb5.js'); });
34877
35051
  case 17:
34878
35052
  _yield$import3 = _context12.sent;
34879
35053
  SeriousWWSHandler = _yield$import3["default"];
@@ -34881,7 +35055,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34881
35055
  return _context12.abrupt("break", 27);
34882
35056
  case 21:
34883
35057
  _context12.next = 23;
34884
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-6a401019.js'); });
35058
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-3efed4eb.js'); });
34885
35059
  case 23:
34886
35060
  _yield$import4 = _context12.sent;
34887
35061
  StandardWWSHandler = _yield$import4["default"];
@@ -35079,7 +35253,7 @@ var ViewPointHandler = /*#__PURE__*/function () {
35079
35253
  _defineProperty__default["default"](this, "curViewPointRenderName", void 0);
35080
35254
  //Even if the viewpoint should be Start, it can contain the value Frontal. In this case the start is set using the rotation
35081
35255
  _defineProperty__default["default"](this, "curRoomCodex", void 0);
35082
- _defineProperty__default["default"](this, "defaultWhiteroom", 'weissraum');
35256
+ _defineProperty__default["default"](this, "whiteroom", 'weissraum');
35083
35257
  _defineProperty__default["default"](this, "roomListInfo", void 0);
35084
35258
  //this saves all ViewPoint Infos per room
35085
35259
  _defineProperty__default["default"](this, "staticRoomMainCategories", void 0);
@@ -35097,7 +35271,7 @@ var ViewPointHandler = /*#__PURE__*/function () {
35097
35271
  this.roomListInfo = [];
35098
35272
  this.curViewPointName = 'Start';
35099
35273
  this.curViewPointRenderName = 'Start';
35100
- this.curRoomCodex = this.defaultWhiteroom;
35274
+ this.curRoomCodex = this.whiteroom;
35101
35275
  this.staticRoomMainCategories = new Map();
35102
35276
  this.vpInfosByRoom = new Map();
35103
35277
  }
@@ -35135,17 +35309,6 @@ var ViewPointHandler = /*#__PURE__*/function () {
35135
35309
  }
35136
35310
 
35137
35311
  //------------------------------------------------Functions needed for frontend Navigation------------------------------------------------
35138
- }, {
35139
- key: "setDefaultWhiteroom",
35140
- value: function setDefaultWhiteroom(defaultWhiteroom) {
35141
- this.defaultWhiteroom = defaultWhiteroom;
35142
- this.curRoomCodex = defaultWhiteroom;
35143
- }
35144
- }, {
35145
- key: "getDefaultWhiteRoom",
35146
- value: function getDefaultWhiteRoom() {
35147
- return this.defaultWhiteroom;
35148
- }
35149
35312
 
35150
35313
  /**
35151
35314
  * This function resets the viewpoint.
@@ -35155,29 +35318,10 @@ var ViewPointHandler = /*#__PURE__*/function () {
35155
35318
  }, {
35156
35319
  key: "resetViewPoint",
35157
35320
  value: function resetViewPoint() {
35158
- var _this$vpInfosByRoom$g;
35159
35321
  this.navInfo3D.zoom = 0;
35160
35322
  this.navInfo3D.focusOnElement = '';
35161
35323
  this.navInfo3D.rotVert = 0;
35162
35324
  this.navInfo3D.rotHori = 0;
35163
- 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')) {
35164
- var _this$vpInfosByRoom$g2;
35165
- var vp = (_this$vpInfosByRoom$g2 = this.vpInfosByRoom.get(this.defaultWhiteroom)) === null || _this$vpInfosByRoom$g2 === void 0 ? void 0 : _this$vpInfosByRoom$g2.get('start');
35166
- if (vp && vp.M.toLowerCase() == 'orbit') {
35167
- this.curViewPointName = 'Start';
35168
- this.curViewPointRenderName = 'Frontal';
35169
- this.navInfo3D.rotVert = vp.CRV;
35170
- this.navInfo3D.rotHori = vp.CRH;
35171
- return {
35172
- updateOrbitCube: true,
35173
- rotVert: vp.CRV,
35174
- rotHori: vp.CRH
35175
- };
35176
- }
35177
- }
35178
- return {
35179
- updateOrbitCube: false
35180
- };
35181
35325
  }
35182
35326
  }, {
35183
35327
  key: "zoomIn",
@@ -35221,27 +35365,9 @@ var ViewPointHandler = /*#__PURE__*/function () {
35221
35365
  }, {
35222
35366
  key: "setVpName",
35223
35367
  value: function setVpName(vpName) {
35224
- var _this$vpInfosByRoom$g3;
35225
35368
  //if the viewpoint name is get from3D host update it correctly
35226
- 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())) {
35227
- var _this$vpInfosByRoom$g4;
35228
- var vp = (_this$vpInfosByRoom$g4 = this.vpInfosByRoom.get(this.defaultWhiteroom)) === null || _this$vpInfosByRoom$g4 === void 0 ? void 0 : _this$vpInfosByRoom$g4.get(vpName.toLowerCase());
35229
- if (vp) {
35230
- this.curViewPointName = vpName;
35231
- this.setVpByVal(vp.CRH, vp.CRV);
35232
- return {
35233
- updateOrbitCube: true,
35234
- rotVert: vp.CRV,
35235
- rotHori: vp.CRH
35236
- };
35237
- }
35238
- } else {
35239
- this.curViewPointName = vpName;
35240
- this.curViewPointRenderName = vpName;
35241
- }
35242
- return {
35243
- updateOrbitCube: false
35244
- };
35369
+ this.curViewPointName = vpName;
35370
+ this.curViewPointRenderName = vpName;
35245
35371
  }
35246
35372
  }, {
35247
35373
  key: "focusOnElementId",
@@ -35379,26 +35505,6 @@ var ViewPointHandler = /*#__PURE__*/function () {
35379
35505
  roomIsSel = false;
35380
35506
  }
35381
35507
  }
35382
- /**
35383
- * 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
35384
- * @param roomlist
35385
- */
35386
- /*
35387
- public getNotChachedRoomlist(roomlist: string[]): string[] {
35388
- var uncached: string[] = [];
35389
- for (var i = 0; i < roomlist.length; i++) {
35390
- var notCached = true;
35391
- for (var j = 0; j < this.roomListInfo.length; j++) {
35392
- if (roomlist[i] == this.roomListInfo[j].codex) {
35393
- notCached = false;
35394
- break;
35395
- }
35396
- }
35397
- if (notCached) uncached.push(roomlist[i]);
35398
- }
35399
- return uncached;
35400
- }
35401
- */
35402
35508
  }, {
35403
35509
  key: "getStaticRoomList",
35404
35510
  value: function getStaticRoomList() {
@@ -35488,10 +35594,10 @@ var ViewPointHandler = /*#__PURE__*/function () {
35488
35594
  }, {
35489
35595
  key: "getVpInfoByRoomCodex",
35490
35596
  value: function getVpInfoByRoomCodex(roomCodex, vpName) {
35491
- var _this$vpInfosByRoom$g5;
35597
+ var _this$vpInfosByRoom$g;
35492
35598
  // roomCodex = roomCodex.toLowerCase();
35493
35599
  vpName = vpName.toLowerCase();
35494
- 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);
35600
+ 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);
35495
35601
  return undefined;
35496
35602
  }
35497
35603
 
@@ -35514,17 +35620,6 @@ var ViewPointHandler = /*#__PURE__*/function () {
35514
35620
  }
35515
35621
  return undefined;
35516
35622
  }
35517
-
35518
- /**
35519
- * This function returns if the current room/VP enables navigation (e.g. weissraum).
35520
- * Static background rooms disable navigation
35521
- */
35522
- /*
35523
- public curVPHasStaticBG(): boolean {
35524
- let vpInfo = this.getVPInfo(this.curRoomCodex, this.curViewPointName);
35525
- if (vpInfo != undefined) return vpInfo.isStatic;
35526
- return false;
35527
- }*/
35528
35623
  }, {
35529
35624
  key: "getCurRoomlistVP",
35530
35625
  value: function getCurRoomlistVP() {
@@ -35555,7 +35650,7 @@ var ViewPointHandler = /*#__PURE__*/function () {
35555
35650
  }, {
35556
35651
  key: "getDefaultRoom",
35557
35652
  value: function getDefaultRoom() {
35558
- return this.defaultWhiteroom;
35653
+ return this.whiteroom;
35559
35654
  }
35560
35655
  }, {
35561
35656
  key: "getCurVPIsStart",
@@ -35696,6 +35791,7 @@ var Rendering = /*#__PURE__*/function () {
35696
35791
  }, {
35697
35792
  key: "hasUIInfosOfElement",
35698
35793
  value: function hasUIInfosOfElement(setId, elementid) {
35794
+ if (this.hasStaticBackground) return false; //when the rendering has static background, no UI Info is loaded d
35699
35795
  if (this.uiInfo[setId] == undefined && this.uiInfo['S1'] != undefined) {
35700
35796
  return this.uiInfo['S1']['E' + elementid] != undefined;
35701
35797
  } else {
@@ -35825,20 +35921,29 @@ var Rendering = /*#__PURE__*/function () {
35825
35921
  return undefined;
35826
35922
  }
35827
35923
  }, {
35828
- key: "getUnityCamPos",
35829
- value: function getUnityCamPos() {
35830
- return new Vector3(parseFloat(this.uiInfo['CAM']['X']), parseFloat(this.uiInfo['CAM']['Y']), parseFloat(this.uiInfo['CAM']['Z']));
35924
+ key: "getCamInfo",
35925
+ value: function getCamInfo() {
35926
+ if (!this.uiInfo['CAM']) return undefined;
35927
+ return this.uiInfo['CAM'];
35831
35928
  }
35832
35929
  }, {
35833
- key: "getUnityCamRot",
35834
- value: function getUnityCamRot() {
35835
- var quatVec = new Vector4(parseFloat(this.uiInfo['CAM']['QX']), parseFloat(this.uiInfo['CAM']['QY']), parseFloat(this.uiInfo['CAM']['QZ']), parseFloat(this.uiInfo['CAM']['QW']));
35836
- return quatVec;
35837
- }
35838
- }, {
35839
- key: "getUnityFOV",
35840
- value: function getUnityFOV() {
35841
- return parseFloat(this.uiInfo['CAM']['FOV']);
35930
+ key: "getCamCubeRotation",
35931
+ value: function getCamCubeRotation() {
35932
+ if (this.getCamInfo() == undefined) return {
35933
+ rotHoriDeg: 0,
35934
+ rotVertDeg: 0
35935
+ };
35936
+ var camInfo = this.getCamInfo();
35937
+ var dirVec = new Vector3(camInfo.targetPos.x - camInfo.pos.x, camInfo.targetPos.y - camInfo.pos.y, camInfo.targetPos.z - camInfo.pos.z);
35938
+ var rotHori_rad = Math.atan2(dirVec.x, dirVec.z);
35939
+ var rotHori = rotHori_rad * 180 / Math.PI;
35940
+ rotHori = -((rotHori - 180) % 360);
35941
+ var rotVert_rad = Math.atan2(dirVec.y, Math.sqrt(Math.pow(dirVec.x, 2) + Math.pow(dirVec.z, 2)));
35942
+ var rotVert = -(rotVert_rad * 180 / Math.PI);
35943
+ return {
35944
+ rotHoriDeg: rotHori,
35945
+ rotVertDeg: rotVert
35946
+ };
35842
35947
  }
35843
35948
  }, {
35844
35949
  key: "get3DDimInfo",
@@ -36276,27 +36381,24 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36276
36381
  value: (function () {
36277
36382
  var _initializeViewPoint = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(standardWhiteRoom) {
36278
36383
  var _this$connectionHandl;
36279
- var res, info;
36384
+ var res;
36280
36385
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
36281
36386
  while (1) switch (_context.prev = _context.next) {
36282
36387
  case 0:
36283
36388
  if ((_this$connectionHandl = this.connectionHandler) !== null && _this$connectionHandl !== void 0 && _this$connectionHandl.getConnectionReady()) {
36284
- _context.next = 4;
36389
+ _context.next = 3;
36285
36390
  break;
36286
36391
  }
36287
36392
  this.todoAfterLogin.initViewPoint.doUpdate = true;
36288
- this.todoAfterLogin.initViewPoint.stdWhiteRoom = standardWhiteRoom;
36289
36393
  return _context.abrupt("return");
36290
- case 4:
36394
+ case 3:
36291
36395
  this.todoAfterLogin.initViewPoint.doUpdate = false;
36292
- this.viewPointHandler.setDefaultWhiteroom(standardWhiteRoom);
36293
- _context.next = 8;
36396
+ _context.next = 6;
36294
36397
  return this.connectionHandler.getViewPointInfo(this.viewPointHandler.getCurViewPointName(), standardWhiteRoom);
36295
- case 8:
36398
+ case 6:
36296
36399
  res = _context.sent;
36297
- if (res) info = this.viewPointHandler.setVpInfoByRoomCodex(standardWhiteRoom, this.viewPointHandler.getCurViewPointName(), res);
36298
- if (info && this.setRotationOfOrbitCube) this.setRotationOfOrbitCube(this.viewPointHandler.getCurRoomCodex() == standardWhiteRoom ? true : false, info.CRH, info.CRV);
36299
- case 11:
36400
+ if (res) this.viewPointHandler.setVpInfoByRoomCodex(standardWhiteRoom, this.viewPointHandler.getCurViewPointName(), res);
36401
+ case 8:
36300
36402
  case "end":
36301
36403
  return _context.stop();
36302
36404
  }
@@ -36394,7 +36496,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36394
36496
  while (1) switch (_context3.prev = _context3.next) {
36395
36497
  case 0:
36396
36498
  _context3.next = 2;
36397
- return Promise.resolve().then(function () { return require('./Host3DSignalR-8f6e6051.js'); });
36499
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-a8ce75a9.js'); });
36398
36500
  case 2:
36399
36501
  _yield$import = _context3.sent;
36400
36502
  Host3DSignalR = _yield$import["default"];
@@ -36567,6 +36669,14 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36567
36669
  value: function updatePlannerRendering(rendering) {
36568
36670
  if (this.lastRequestedRenderHash != rendering.RenderHash) return;
36569
36671
  this.currRendering = rendering;
36672
+
36673
+ //Update cube rotation
36674
+ if (rendering.getCamInfo() != undefined && this.setRotationOfOrbitCube) {
36675
+ //now update the rotation of the orbit cube
36676
+ //Update orbit cube
36677
+ var cubeRotInfo = rendering.getCamCubeRotation();
36678
+ this.setRotationOfOrbitCube(false, cubeRotInfo.rotHoriDeg, cubeRotInfo.rotVertDeg);
36679
+ }
36570
36680
  if (rendering.MediaServiceSaveMode == 'PERMANENT') {
36571
36681
  if (rendering.getIsAlternateRendering()) this.addAlternateRenderingToSavedAlternateRenderings(rendering);else this.lastSavedRendering = rendering;
36572
36682
  }
@@ -36892,7 +37002,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36892
37002
  requestHqRenderScriptFrom3DHost = false;
36893
37003
  if (params.doRequestHqRenderScript) {
36894
37004
  rendering = this.hqRenderScriptCache.get(planningHash);
36895
- if (rendering && !params.useLatestCamera) {
37005
+ if (rendering && !params.useLatestHybridInfo) {
36896
37006
  LOG$4.debug('Get HQRenderScript from cache');
36897
37007
  this.lastSavedHQRenderScript = JSON.parse(rendering.HQRenderScript);
36898
37008
  this.updatePlannerHqRenderScriptInView(rendering);
@@ -37080,7 +37190,6 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37080
37190
  key: "handle3DVisualizationChanged",
37081
37191
  value: function handle3DVisualizationChanged(mode, params) {
37082
37192
  var _params$nav3DZoom, _params$nav3DZoom2, _params$nav3DZoom3, _params$nav3DSwipe, _params$nav3DSwipe2, _params$nav3DSwipe3, _params$nav3DSwipe4;
37083
- var info;
37084
37193
  switch (mode) {
37085
37194
  case 'Nav3DFullScreen':
37086
37195
  break;
@@ -37108,20 +37217,12 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37108
37217
  this.viewPointHandler.focusOnElementId(params.nav3DFocus.setId, params.nav3DFocus.focusElementId);
37109
37218
  break;
37110
37219
  case 'Nav3DPlannerMode':
37111
- // this.viewPointHandler.resetViewPoint();
37112
- info = this.viewPointHandler.setVpName('Start');
37113
- if (info && this.setRotationOfOrbitCube) {
37114
- this.setRotationOfOrbitCube(true, info.rotHori, info.rotVert);
37115
- }
37220
+ this.viewPointHandler.resetViewPoint();
37221
+ this.viewPointHandler.setVpName('Start');
37116
37222
  break;
37117
37223
  case 'Nav3DSetVPByName':
37118
- if (params.nav3DSetVPByName.clearNav) {
37119
- this.viewPointHandler.resetViewPoint();
37120
- }
37121
- info = this.viewPointHandler.setVpName(params.nav3DSetVPByName.vpName);
37122
- if (info && info.updateOrbitCube && this.setRotationOfOrbitCube) {
37123
- this.setRotationOfOrbitCube(true, info.rotHori, info.rotVert);
37124
- }
37224
+ this.viewPointHandler.resetViewPoint();
37225
+ this.viewPointHandler.setVpName(params.nav3DSetVPByName.vpName);
37125
37226
  break;
37126
37227
  case 'Nav3DSetVPByVal':
37127
37228
  this.viewPointHandler.setVpByVal(params.nav3DSetVPByVal.rotX, params.nav3DSetVPByVal.rotY);
@@ -37133,7 +37234,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37133
37234
  this.handleStaticVP(params.staticVP.codex);
37134
37235
  break;
37135
37236
  case 'Nav3DResetNavParams':
37136
- this.handleStaticVP('Start');
37237
+ this.viewPointHandler.resetViewPoint();
37238
+ this.viewPointHandler.setVpName('Start');
37137
37239
  break;
37138
37240
  }
37139
37241
  }
@@ -37144,11 +37246,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
37144
37246
  }, {
37145
37247
  key: "resetNav3D",
37146
37248
  value: function resetNav3D() {
37147
- var resetInfo = this.viewPointHandler.resetViewPoint();
37148
- if (resetInfo.updateOrbitCube) {
37149
- var _this$setRotationOfOr;
37150
- (_this$setRotationOfOr = this.setRotationOfOrbitCube) === null || _this$setRotationOfOr === void 0 || _this$setRotationOfOr.call(this, true, resetInfo.rotHori, resetInfo.rotVert);
37151
- }
37249
+ this.viewPointHandler.resetViewPoint();
37152
37250
  }
37153
37251
 
37154
37252
  /**
@@ -37725,7 +37823,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37725
37823
  */
37726
37824
  _defineProperty__default["default"](this, "noRenderClientFound", function (doMakeRendering, doMakeHQRenderScript, width, height, isFullscreenRendering, planner3DGridEnabled, doShow3DDimensionLines, plannerMeasureDigits, alternateRendererInfo, alternateRenderingsExist) {
37727
37825
  LOG$2.debug('noRenderClientFound - Request rendering again by sending all planningData');
37728
- _this.request3D(doMakeRendering, doMakeHQRenderScript, true, !!alternateRenderingsExist, alternateRendererInfo, true, {
37826
+ _this.request3D(doMakeRendering, doMakeHQRenderScript, !!alternateRenderingsExist, alternateRendererInfo, true, {
37729
37827
  width: width,
37730
37828
  height: height,
37731
37829
  isFullscreenRendering: isFullscreenRendering,
@@ -37774,7 +37872,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37774
37872
  updatePlannerRendering: this.plannerHandlerFunctions.updatePlannerRendering,
37775
37873
  updatePlannerHqRenderScriptInView: this.plannerHandlerFunctions.updatePlannerHqRenderScript,
37776
37874
  setRotationOrbitCubeCallback: this.plannerHandlerFunctions.setRotationOrbitCube,
37777
- onRoomListLoaded: this.plannerHandlerFunctions.onRoomListLoaded
37875
+ onRoomListLoaded: this.plannerHandlerFunctions.onRoomListLoaded,
37876
+ updateCamInfo: this.plannerHandlerFunctions.updateCamInfo
37778
37877
  });
37779
37878
  this.handler3D.setJwt(initSetState.api.getJwt());
37780
37879
  //Only use if only 1 Planner/Set is used. Not possible in setPlanner
@@ -37953,7 +38052,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37953
38052
  break;
37954
38053
  case 8:
37955
38054
  _context4.next = 10;
37956
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-2f823e05.js'); });
38055
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-01a25f14.js'); });
37957
38056
  case 10:
37958
38057
  _yield$import = _context4.sent;
37959
38058
  DivaStandardPlanner = _yield$import["default"];
@@ -37964,7 +38063,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37964
38063
  return _context4.abrupt("break", 21);
37965
38064
  case 15:
37966
38065
  _context4.next = 17;
37967
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-059d8dbf.js'); });
38066
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-bda99ee4.js'); });
37968
38067
  case 17:
37969
38068
  _yield$import2 = _context4.sent;
37970
38069
  DivaBoxPlanner = _yield$import2["default"];
@@ -38237,7 +38336,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38237
38336
  case 0:
38238
38337
  DivaUtils__default["default"].startSpanOfApm('DivaPlannerHandler saveSetHQRenderScript');
38239
38338
  _context9.next = 3;
38240
- return this.request3D(false, true, true);
38339
+ return this.request3D(false, true);
38241
38340
  case 3:
38242
38341
  hashes = _context9.sent;
38243
38342
  if (hashes) {
@@ -38294,7 +38393,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38294
38393
  break;
38295
38394
  }
38296
38395
  _context10.next = 4;
38297
- return this.request3D(true, false, true, false, undefined, true, {
38396
+ return this.request3D(true, false, false, undefined, true, {
38298
38397
  width: 100,
38299
38398
  height: 100,
38300
38399
  isFullscreenRendering: false,
@@ -38707,7 +38806,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38707
38806
  key: "handle3DVisualizationChanged",
38708
38807
  value: function handle3DVisualizationChanged(mode, params, doShow3DDimensionLines, alternateRenderingsExist) {
38709
38808
  if (mode == 'Nav3DFullScreen') {
38710
- this.request3D(true, false, true, alternateRenderingsExist, undefined, false, {
38809
+ this.request3D(true, false, alternateRenderingsExist, undefined, false, {
38711
38810
  width: params.nav3DFullScreen.renderWidth,
38712
38811
  height: params.nav3DFullScreen.renderHeight,
38713
38812
  isFullscreenRendering: true,
@@ -38747,7 +38846,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38747
38846
  }, {
38748
38847
  key: "request3D",
38749
38848
  value: function () {
38750
- var _request3D = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee16(doRequestRendering, doRequestHqRenderScript, useLatestCamera, alternateRenderingsExist, alternateRenderInfo, forceReloadPlanning, renderRequestInfos, hybrid3DInfo) {
38849
+ var _request3D = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee16(doRequestRendering, doRequestHqRenderScript, alternateRenderingsExist, alternateRenderInfo, forceReloadPlanning, renderRequestInfos, hybrid3DInfo, useLatestHybridInfo) {
38751
38850
  var _this3 = this;
38752
38851
  var plannerData, loadedCatData, plannerExists, savedSetId;
38753
38852
  return _regeneratorRuntime__default["default"].wrap(function _callee16$(_context16) {
@@ -38819,7 +38918,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38819
38918
  alternateRenderInfo: alternateRenderInfo,
38820
38919
  alternateRenderingsExist: alternateRenderingsExist,
38821
38920
  hybrid3DInfo: hybrid3DInfo,
38822
- useLatestCamera: useLatestCamera
38921
+ useLatestHybridInfo: useLatestHybridInfo
38823
38922
  });
38824
38923
  case 18:
38825
38924
  return _context16.abrupt("return", _context16.sent);
@@ -38905,6 +39004,31 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38905
39004
  value: function updateCamPosition(cam) {
38906
39005
  return this.handler3D.updateCamPosition(cam);
38907
39006
  }
39007
+ }, {
39008
+ key: "clonePlannerHandler",
39009
+ value: function clonePlannerHandler(set, origSet) {
39010
+ var _this6 = this;
39011
+ var clone = new DivaPlannerHandler(true);
39012
+ clone.initPlanner(set.getSetState, {
39013
+ updatePlannerRendering: function updatePlannerRendering() {},
39014
+ updatePlannerHqRenderScript: function updatePlannerHqRenderScript() {},
39015
+ setRotationOrbitCube: function setRotationOrbitCube() {},
39016
+ onRoomListLoaded: function onRoomListLoaded() {},
39017
+ getOrigConfiguration: function getOrigConfiguration() {
39018
+ return {};
39019
+ },
39020
+ doAllowSetPlanner: function doAllowSetPlanner() {
39021
+ return false;
39022
+ },
39023
+ updatePlannerMsgContainer: function updatePlannerMsgContainer() {}
39024
+ });
39025
+ var setData = DivaUtils__default["default"].encodeBase64(JSON.stringify(set.plannerHandler.savePlanner(origSet.getSetId())));
39026
+ this.plannerList.forEach(function (v) {
39027
+ clone.plannerList.set(set.getSetId(), v.clonePlanner(set, _this6.plannerIDCount, setData));
39028
+ _this6.plannerIDCount++;
39029
+ });
39030
+ return clone;
39031
+ }
38908
39032
  }]);
38909
39033
  }();
38910
39034
 
@@ -38981,9 +39105,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
38981
39105
  });
38982
39106
  _defineProperty__default["default"](this, "api", void 0);
38983
39107
  _defineProperty__default["default"](this, "setHQRenderScript", void 0);
39108
+ _defineProperty__default["default"](this, "setCamInfo", void 0);
38984
39109
  _defineProperty__default["default"](this, "initializationType", void 0);
38985
39110
  _defineProperty__default["default"](this, "getPlannerHandlerFunctions", function () {
38986
39111
  return {
39112
+ updateCamInfo: _this.setCamInfo,
38987
39113
  updatePlannerRendering: _this.updatePlannerRendering,
38988
39114
  updatePlannerHqRenderScript: _this.updatePlannerHqRenderScript,
38989
39115
  setRotationOrbitCube: _this.setRotationOrbitCube,
@@ -39721,7 +39847,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39721
39847
  case 29:
39722
39848
  set = this.actSet();
39723
39849
  oldProductId = this.divaBasketHandler.actBasket.MatchingProductId || this.divaBasketHandler.actBasket.OrigProductId;
39724
- if (!(oldProductId && set)) {
39850
+ if (!(oldProductId && set && set !== null && set !== void 0 && set.api.doCheckForProductsPrice())) {
39725
39851
  _context13.next = 38;
39726
39852
  break;
39727
39853
  }
@@ -40178,6 +40304,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40178
40304
  value: function registerSetHQRenderScript(setHQRenderScript) {
40179
40305
  this.setHQRenderScript = setHQRenderScript;
40180
40306
  }
40307
+ }, {
40308
+ key: "registerSetCamInfo",
40309
+ value: function registerSetCamInfo(setCamInfo) {
40310
+ this.setCamInfo = setCamInfo;
40311
+ }
40181
40312
 
40182
40313
  /**
40183
40314
  * This function is called when the planner view should be updated
@@ -40227,7 +40358,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40227
40358
  focus: hybridInfo.focus,
40228
40359
  forceRTCam: true,
40229
40360
  currentCamera: hybridInfo.currentCamera
40230
- } : undefined);
40361
+ } : undefined, callingFrom == 'HANDLE_3D_VIS_CHANGED' ? false : true // handle 3d vis changed = start viepointtrue,
40362
+ );
40231
40363
  break;
40232
40364
  case 'RTViewer':
40233
40365
  //Request HQRenderscript + rendering
@@ -40275,7 +40407,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40275
40407
  }
40276
40408
  }
40277
40409
  }
40278
- 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));
40410
+ 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);
40279
40411
  }
40280
40412
  }
40281
40413
  }, {
@@ -40610,6 +40742,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40610
40742
  value: function eventIsManagedByClient(event) {
40611
40743
  return this.api.eventIsManagedByClient(event);
40612
40744
  }
40745
+ }, {
40746
+ key: "showModal",
40747
+ value: function showModal(data) {
40748
+ var _this$actions21;
40749
+ (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.openModal(data);
40750
+ }
40613
40751
  }, {
40614
40752
  key: "logGA",
40615
40753
  value: function logGA(action) {
@@ -40627,25 +40765,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40627
40765
  }, {
40628
40766
  key: "callEvent",
40629
40767
  value: function callEvent(event, param) {
40630
- var _this$actions21, _this$actions22, _this$actions23, _this$actions24;
40768
+ var _this$actions22, _this$actions23, _this$actions24, _this$actions25;
40631
40769
  switch (event) {
40632
40770
  case 'onFullscreenClose':
40633
- (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.onEvent({
40771
+ (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40634
40772
  type: 'onFullscreenClose'
40635
40773
  });
40636
40774
  break;
40637
40775
  case 'onWebPlanerClose':
40638
- (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40776
+ (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40639
40777
  type: 'onWebPlanerClose'
40640
40778
  });
40641
40779
  break;
40642
40780
  case 'onWebPlanerHelp':
40643
- (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40781
+ (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40644
40782
  type: 'onWebPlanerHelp'
40645
40783
  });
40646
40784
  break;
40647
40785
  case 'onWebPlanerZoomClick':
40648
- (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40786
+ (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40649
40787
  type: 'onWebPlanerZoomClick',
40650
40788
  data: param
40651
40789
  });
@@ -40656,14 +40794,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40656
40794
  key: "saveToBasketWrapper",
40657
40795
  value: function () {
40658
40796
  var _saveToBasketWrapper = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee25(event, repairOnly, force) {
40659
- var _this$actions26,
40660
- _this$actions26$toggl,
40661
- _this$actions27,
40797
+ var _this$actions27,
40662
40798
  _this$actions27$toggl,
40799
+ _this$actions28,
40800
+ _this$actions28$toggl,
40663
40801
  _this2 = this,
40664
- _this$actions31,
40802
+ _this$actions32,
40665
40803
  _this$i18n14;
40666
- 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;
40804
+ 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;
40667
40805
  return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context25) {
40668
40806
  while (1) switch (_context25.prev = _context25.next) {
40669
40807
  case 0:
@@ -40702,25 +40840,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40702
40840
  _context25.next = 20;
40703
40841
  break;
40704
40842
  }
40705
- (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40843
+ (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
40706
40844
  type: finalEvent.event
40707
40845
  });
40708
40846
  return _context25.abrupt("return", 'canceled');
40709
40847
  case 20:
40710
40848
  returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40711
40849
  case 21:
40712
- (_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);
40850
+ (_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);
40713
40851
  _context25.next = 24;
40714
40852
  return this.saveToBasket(finalEvent.event, repairOnly, force);
40715
40853
  case 24:
40716
40854
  result = _context25.sent;
40717
- (_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);
40855
+ (_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);
40718
40856
  if (!(result === 'canceled')) {
40719
40857
  _context25.next = 30;
40720
40858
  break;
40721
40859
  }
40722
40860
  LOG$1.error(new DivaUtils.DivaError('failed to save Basket'));
40723
- (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
40861
+ (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40724
40862
  text: ((_this$i18n8 = this.i18n()) === null || _this$i18n8 === void 0 ? void 0 : _this$i18n8.t('modal.general_error')) + ' --- ' + DivaUtils__default["default"].formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils__default["default"].getCurrentTraceId() ? ((_this$i18n9 = this.i18n()) === null || _this$i18n9 === void 0 ? void 0 : _this$i18n9.t('modal.errorcode')) + ': ' + DivaUtils__default["default"].getCurrentTraceId() : '',
40725
40863
  accept: true
40726
40864
  });
@@ -40734,12 +40872,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40734
40872
  LOG$1.error(new DivaUtils.DivaError('PDF url is missing in basket', {
40735
40873
  code: 'WC_0010'
40736
40874
  }));
40737
- (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40875
+ (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40738
40876
  text: ((_this$i18n10 = this.i18n()) === null || _this$i18n10 === void 0 ? void 0 : _this$i18n10.t('modal.general_error')) + ' --- ' + DivaUtils__default["default"].formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils__default["default"].getCurrentTraceId() ? ((_this$i18n11 = this.i18n()) === null || _this$i18n11 === void 0 ? void 0 : _this$i18n11.t('modal.errorcode')) + ': ' + DivaUtils__default["default"].getCurrentTraceId() : '',
40739
40877
  accept: true
40740
40878
  });
40741
40879
  } else {
40742
- (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40880
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40743
40881
  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'),
40744
40882
  accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
40745
40883
  callback: function callback() {
@@ -40749,7 +40887,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40749
40887
  }
40750
40888
  return _context25.abrupt("break", 36);
40751
40889
  case 35:
40752
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40890
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
40753
40891
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
40754
40892
  accept: true
40755
40893
  });
@@ -40777,7 +40915,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40777
40915
  key: "saveToBasket",
40778
40916
  value: function () {
40779
40917
  var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, force) {
40780
- var _returnTo, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34, _this$divaBasketHandl2;
40918
+ var _returnTo, _returnTo2, _returnTo3, _this$actions33, _this$actions34, _this$actions35, _this$divaBasketHandl2;
40781
40919
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
40782
40920
  return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
40783
40921
  while (1) switch (_context26.prev = _context26.next) {
@@ -40834,8 +40972,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40834
40972
  _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;
40835
40973
  break;
40836
40974
  case 28:
40837
- (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.toggleLoading('buildScene', false, false);
40838
- (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
40975
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.toggleLoading('buildScene', false, false);
40976
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40839
40977
  type: 'SELLER',
40840
40978
  parameters: {
40841
40979
  module: 'PCreator',
@@ -40847,7 +40985,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40847
40985
  });
40848
40986
  return _context26.abrupt("break", 52);
40849
40987
  case 31:
40850
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40988
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
40851
40989
  type: 'SELLER',
40852
40990
  parameters: {
40853
40991
  module: 'Basket',
@@ -40961,7 +41099,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40961
41099
  }
40962
41100
  }
40963
41101
  if (plannerType === 'JUMP_OVER_PLANNER') {
40964
- ret = 'PLANNER';
41102
+ if (doShowPlanner) ret = 'PLANNER';
40965
41103
  plannerType = undefined;
40966
41104
  }
40967
41105
  if (plannerType === 'CUSTOMER_OPTIMIZED_PLANNER') {
@@ -40985,7 +41123,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40985
41123
  }
40986
41124
  if (plannerType) return plannerType;
40987
41125
  if (doShowPlanner) {
40988
- // deprected; plannerType should only be used
40989
41126
  ret = 'PLANNER';
40990
41127
  }
40991
41128
  return ret;
@@ -41171,17 +41308,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41171
41308
  key: "addToBasket",
41172
41309
  value: function () {
41173
41310
  var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(actBasket) {
41174
- var _this$actions35,
41175
- _this$actions36,
41311
+ var _this$actions36,
41176
41312
  _this$actions37,
41177
41313
  _this$actions38,
41178
41314
  _this$actions39,
41315
+ _this$actions40,
41179
41316
  _this$divaBasketHandl4,
41180
41317
  _this3 = this,
41181
- _this$actions40,
41182
41318
  _this$actions41,
41183
41319
  _this$actions42,
41184
- _this$actions43;
41320
+ _this$actions43,
41321
+ _this$actions44;
41185
41322
  var event,
41186
41323
  emailConfig,
41187
41324
  _emailConfig$to$split,
@@ -41198,31 +41335,31 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41198
41335
  _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;
41199
41336
  break;
41200
41337
  case 5:
41201
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
41338
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41202
41339
  type: 'onWebPlanerPrint',
41203
41340
  data: actBasket.getAsJson()
41204
41341
  });
41205
41342
  return _context28.abrupt("break", 32);
41206
41343
  case 7:
41207
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41344
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41208
41345
  type: 'onWebPlanerSave',
41209
41346
  data: actBasket.getAsJson()
41210
41347
  });
41211
41348
  return _context28.abrupt("break", 32);
41212
41349
  case 9:
41213
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41350
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41214
41351
  type: 'onWebPlanerShare',
41215
41352
  data: actBasket.getAsJson()
41216
41353
  });
41217
41354
  return _context28.abrupt("break", 32);
41218
41355
  case 11:
41219
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41356
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41220
41357
  type: 'onRequestConsulation',
41221
41358
  data: actBasket.getAsJson()
41222
41359
  });
41223
41360
  return _context28.abrupt("break", 32);
41224
41361
  case 13:
41225
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41362
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41226
41363
  type: 'onSave',
41227
41364
  data: actBasket.getAsJson()
41228
41365
  });
@@ -41257,7 +41394,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41257
41394
  });
41258
41395
  });
41259
41396
  }
41260
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41397
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41261
41398
  type: 'onAddToBasket',
41262
41399
  data: actBasket.getAsJson()
41263
41400
  });
@@ -41268,7 +41405,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41268
41405
  return this.api.saveAsProduct(this.sets, actBasket);
41269
41406
  case 23:
41270
41407
  products = _context28.sent;
41271
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41408
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41272
41409
  type: 'onAddToBasket',
41273
41410
  data: actBasket.getAsJson()
41274
41411
  });
@@ -41279,13 +41416,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41279
41416
  return _context28.abrupt("return", products[0]);
41280
41417
  case 27:
41281
41418
  case 28:
41282
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41419
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41283
41420
  type: 'onAddToBasket',
41284
41421
  data: actBasket.getAsJson()
41285
41422
  });
41286
41423
  return _context28.abrupt("break", 32);
41287
41424
  case 30:
41288
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41425
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
41289
41426
  type: event,
41290
41427
  data: actBasket.getAsJson()
41291
41428
  });
@@ -41306,8 +41443,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41306
41443
  }, {
41307
41444
  key: "openPDFpostAsEvent",
41308
41445
  value: function openPDFpostAsEvent(mongoDBId) {
41309
- var _this$actions44, _this$actions45, _this$actions46;
41310
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.updateBreadcrumbs({
41446
+ var _this$actions45, _this$actions46, _this$actions47;
41447
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41311
41448
  type: 'update',
41312
41449
  param: {
41313
41450
  groupId: 'SHOWROOM',
@@ -41321,7 +41458,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41321
41458
  }
41322
41459
  }
41323
41460
  });
41324
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41461
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.updateBreadcrumbs({
41325
41462
  type: 'update',
41326
41463
  param: {
41327
41464
  groupId: 'SHOWROOM',
@@ -41335,7 +41472,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41335
41472
  }
41336
41473
  }
41337
41474
  });
41338
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.openComponent({
41475
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.openComponent({
41339
41476
  type: 'REPORT',
41340
41477
  parameters: {
41341
41478
  id: mongoDBId
@@ -41555,14 +41692,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41555
41692
  }, {
41556
41693
  key: "subscribeToWebPlannerEvents",
41557
41694
  value: function subscribeToWebPlannerEvents() {
41558
- var _this$actions47;
41559
- (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.subscribeEvents(this.addToBasketEventFunction);
41695
+ var _this$actions48;
41696
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.subscribeEvents(this.addToBasketEventFunction);
41560
41697
  }
41561
41698
  }, {
41562
41699
  key: "unsubscribeFromWebPlannerEvents",
41563
41700
  value: function unsubscribeFromWebPlannerEvents() {
41564
- var _this$actions48;
41565
- (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.unSubscribeEvents(this.addToBasketEventFunction);
41701
+ var _this$actions49;
41702
+ (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.unSubscribeEvents(this.addToBasketEventFunction);
41566
41703
  }
41567
41704
  }, {
41568
41705
  key: "initApiForLogicOnly",
@@ -41630,7 +41767,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41630
41767
  }, {
41631
41768
  key: "initBasket",
41632
41769
  value: function () {
41633
- var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(init3D, ignoreFavorites, onlyCalcVariants) {
41770
+ var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(init3D, ignoreFavorites) {
41634
41771
  var initSetState, set, basket;
41635
41772
  return _regeneratorRuntime__default["default"].wrap(function _callee31$(_context31) {
41636
41773
  while (1) switch (_context31.prev = _context31.next) {
@@ -41643,27 +41780,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41643
41780
  case 5:
41644
41781
  //TODO check if when basket gets repaired the product match gets called
41645
41782
  set = this.actSet();
41646
- if (set) set.onlyCalcVariants = onlyCalcVariants;
41647
41783
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
41648
41784
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
41649
- _context31.next = 11;
41785
+ _context31.next = 10;
41650
41786
  break;
41651
41787
  }
41652
- _context31.next = 11;
41788
+ _context31.next = 10;
41653
41789
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
41654
- case 11:
41655
- _context31.next = 13;
41790
+ case 10:
41791
+ _context31.next = 12;
41656
41792
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
41657
- case 13:
41793
+ case 12:
41658
41794
  basket = _context31.sent;
41659
41795
  return _context31.abrupt("return", basket);
41660
- case 15:
41796
+ case 14:
41661
41797
  case "end":
41662
41798
  return _context31.stop();
41663
41799
  }
41664
41800
  }, _callee31, this);
41665
41801
  }));
41666
- function initBasket(_x79, _x80, _x81) {
41802
+ function initBasket(_x79, _x80) {
41667
41803
  return _initBasket.apply(this, arguments);
41668
41804
  }
41669
41805
  return initBasket;
@@ -41740,7 +41876,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41740
41876
  }
41741
41877
  }, _callee33, this);
41742
41878
  }));
41743
- function handleFavorites(_x82) {
41879
+ function handleFavorites(_x81) {
41744
41880
  return _handleFavorites.apply(this, arguments);
41745
41881
  }
41746
41882
  return handleFavorites;
@@ -41794,7 +41930,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41794
41930
  }
41795
41931
  }, _callee34, this);
41796
41932
  }));
41797
- function initSapOrderLinesFromBasket(_x83, _x84, _x85) {
41933
+ function initSapOrderLinesFromBasket(_x82, _x83, _x84) {
41798
41934
  return _initSapOrderLinesFromBasket.apply(this, arguments);
41799
41935
  }
41800
41936
  return initSapOrderLinesFromBasket;
@@ -41861,7 +41997,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41861
41997
  var articleCodex = [];
41862
41998
  var accesoriesCodex = [];
41863
41999
  var articles = [];
42000
+ var actualBasketvalue = 0;
41864
42001
  if (set) {
42002
+ actualBasketvalue = set === null || set === void 0 ? void 0 : set.getSetPrice();
41865
42003
  for (var _i = 0, _Object$values = Object.values(set.getDivaArticles()); _i < _Object$values.length; _i++) {
41866
42004
  var article = _Object$values[_i];
41867
42005
  if (article.relatedToBasketId) {
@@ -41899,8 +42037,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41899
42037
  article_nested: articles
41900
42038
  }
41901
42039
  });
41902
- LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + this.getCurSetPrice(), {
41903
- basketValue: this.getCurSetPrice()
42040
+ LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + actualBasketvalue, {
42041
+ basketValue: actualBasketvalue
41904
42042
  });
41905
42043
  }
41906
42044
  }, {
@@ -41912,7 +42050,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41912
42050
  var allOpv = [];
41913
42051
  var latestOpv = {};
41914
42052
  var latestOpt = {};
42053
+ var actualBasketvalue = 0;
41915
42054
  if (set) {
42055
+ actualBasketvalue = set === null || set === void 0 ? void 0 : set.getSetPrice();
41916
42056
  if (myValues) {
41917
42057
  var _set$CatalogData$getO, _set$CatalogData$getO2;
41918
42058
  latestOpt = {
@@ -41992,8 +42132,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41992
42132
  configuration_nested: configuration
41993
42133
  }
41994
42134
  });
41995
- LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + this.getCurSetPrice(), {
41996
- basketValue: this.getCurSetPrice()
42135
+ LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + actualBasketvalue, {
42136
+ basketValue: actualBasketvalue
41997
42137
  });
41998
42138
  }
41999
42139
  }, {
@@ -42041,6 +42181,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
42041
42181
  this.updateViewButtonsDependigOnConfigStructure = undefined;
42042
42182
  this.initViewApiDependencies = undefined;
42043
42183
  this.setHQRenderScript = undefined;
42184
+ this.setCamInfo = undefined;
42044
42185
  }
42045
42186
  }]);
42046
42187
  }();