@crystaldesign/web-planner-logic 25.11.0-beta.32 → 25.11.0-beta.34

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 (46) hide show
  1. package/build/cjs/{DivaBoxPlanner-911fbe6e.js → DivaBoxPlanner-068408eb.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-25a3c2bf.js → DivaStandardPlanner-18c232b4.js} +2 -2
  3. package/build/cjs/{DoorPlanner-bf4ff19a.js → DoorPlanner-54a98952.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-443b2eb9.js → Host3DSignalR-bcb9ba81.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-2a9a7479.js → LiviqueWWSHandler-828c7fc3.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-a61d6f21.js → PfisterWWSHandler-f7c37e49.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-90ac949a.js → PlannerHandler2D-3282c804.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-e41f9d33.js → SeriousBasketHandler-2869b96b.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-6a3c8450.js → ShelfPlanner-23f182ca.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-1eb5d321.js → StandardWWSHandler-5e529471.js} +1 -1
  11. package/build/cjs/{index-2479cd5d.js → index-ccc5bbc9.js} +144 -211
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-4e3e70cf.js → DivaBoxPlanner-04afed4e.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-edff123f.js → DivaStandardPlanner-763569d5.js} +2 -2
  15. package/build/esm/{DoorPlanner-65ea1b86.js → DoorPlanner-38ed4f7f.js} +1 -1
  16. package/build/esm/{Host3DSignalR-c697d0a7.js → Host3DSignalR-4c7daa17.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-01d2b11c.js → LiviqueWWSHandler-08395179.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-0740ceca.js → PfisterWWSHandler-6ebe05df.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-4a799f74.js → PlannerHandler2D-cb593ec8.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-4c55911d.js → SeriousBasketHandler-835d1e59.js} +1 -1
  21. package/build/esm/{ShelfPlanner-9301ca8d.js → ShelfPlanner-9e37b51c.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-cf645d32.js → StandardWWSHandler-c5f8be7a.js} +1 -1
  23. package/build/esm/{index-1451b098.js → index-0eb9d40c.js} +144 -211
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/index.d.ts +0 -1
  26. package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts +1 -0
  28. package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/API/TemplateConfigType.d.ts +0 -1
  30. package/build/types/web-planner-logic/src/interface/API/TemplateConfigType.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/Basket/BasketEvent.d.ts +1 -1
  32. package/build/types/web-planner-logic/src/interface/Basket/BasketEvent.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/Configuration.d.ts +1 -30
  34. package/build/types/web-planner-logic/src/interface/Configuration.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +0 -20
  36. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts +2 -2
  38. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +1 -1
  40. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +0 -1
  41. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  42. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +1 -9
  43. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  44. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +1 -1
  45. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts +1 -1
  46. package/package.json +2 -2
@@ -466,7 +466,6 @@ var DivaApiHandler = /*#__PURE__*/function () {
466
466
  dontLoadCatalogEditorLiteMask: data.dontLoadCatalogEditorLiteMask,
467
467
  emailConfig: data.emailConfig,
468
468
  reportConfig: data.reportConfig,
469
- barrierConfig: data.barrierConfig,
470
469
  dontLoadAdditionalModelInfos: data.dontLoadAdditionalModelInfos,
471
470
  arViewerUrl: data.arViewerUrl,
472
471
  arViewerIframe: data.arViewerIframe,
@@ -807,41 +806,35 @@ var DivaApiHandler = /*#__PURE__*/function () {
807
806
  var _this$divaWebConfigDa27, _this$divaWebConfigDa28;
808
807
  return (_this$divaWebConfigDa27 = (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.abTestCases) !== null && _this$divaWebConfigDa27 !== void 0 ? _this$divaWebConfigDa27 : [];
809
808
  }
810
- }, {
811
- key: "getBarrierConfig",
812
- value: function getBarrierConfig() {
813
- var _this$divaWebConfigDa29;
814
- return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.barrierConfig;
815
- }
816
809
  }, {
817
810
  key: "getTemplateConfig",
818
811
  value: function getTemplateConfig() {
819
- var _this$divaWebConfigDa30;
820
- return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.templateConfig;
812
+ var _this$divaWebConfigDa29;
813
+ return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.templateConfig;
821
814
  }
822
815
  }, {
823
816
  key: "showDivaNr",
824
817
  value: function showDivaNr() {
825
- var _this$divaWebConfigDa31;
826
- return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.showDivaNr;
818
+ var _this$divaWebConfigDa30;
819
+ return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.showDivaNr;
827
820
  }
828
821
  }, {
829
822
  key: "dontLoadDimensions",
830
823
  value: function dontLoadDimensions() {
831
- var _this$divaWebConfigDa32;
832
- return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.dontLoadDimensions;
824
+ var _this$divaWebConfigDa31;
825
+ return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.dontLoadDimensions;
833
826
  }
834
827
  }, {
835
828
  key: "onErrorHandling",
836
829
  value: function onErrorHandling() {
837
- var _this$divaWebConfigDa33;
838
- return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.onErrorHandling;
830
+ var _this$divaWebConfigDa32;
831
+ return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.onErrorHandling;
839
832
  }
840
833
  }, {
841
834
  key: "diva3DRenderingDefault",
842
835
  value: function diva3DRenderingDefault() {
843
- var _this$divaWebConfigDa34;
844
- return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.diva3DRenderingDefault;
836
+ var _this$divaWebConfigDa33;
837
+ return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.diva3DRenderingDefault;
845
838
  }
846
839
  }, {
847
840
  key: "getJwt",
@@ -856,8 +849,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
856
849
  }, {
857
850
  key: "getUseMask",
858
851
  value: function getUseMask() {
859
- var _this$divaWebConfigDa35;
860
- return (_this$divaWebConfigDa35 = this.divaWebConfigData) === null || _this$divaWebConfigDa35 === void 0 ? void 0 : _this$divaWebConfigDa35.useMask;
852
+ var _this$divaWebConfigDa34;
853
+ return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.useMask;
861
854
  }
862
855
  }, {
863
856
  key: "apiUrl",
@@ -1421,14 +1414,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1421
1414
  }, {
1422
1415
  key: "dontLoadAdditionalModelInfos",
1423
1416
  get: function get() {
1424
- var _this$divaWebConfigDa36;
1425
- return (_this$divaWebConfigDa36 = this.divaWebConfigData) === null || _this$divaWebConfigDa36 === void 0 ? void 0 : _this$divaWebConfigDa36.dontLoadAdditionalModelInfos;
1417
+ var _this$divaWebConfigDa35;
1418
+ return (_this$divaWebConfigDa35 = this.divaWebConfigData) === null || _this$divaWebConfigDa35 === void 0 ? void 0 : _this$divaWebConfigDa35.dontLoadAdditionalModelInfos;
1426
1419
  }
1427
1420
  }, {
1428
1421
  key: "dontLoadCatalogEditorLiteMask",
1429
1422
  get: function get() {
1430
- var _this$divaWebConfigDa37;
1431
- return (_this$divaWebConfigDa37 = this.divaWebConfigData) === null || _this$divaWebConfigDa37 === void 0 ? void 0 : _this$divaWebConfigDa37.dontLoadCatalogEditorLiteMask;
1423
+ var _this$divaWebConfigDa36;
1424
+ return (_this$divaWebConfigDa36 = this.divaWebConfigData) === null || _this$divaWebConfigDa36 === void 0 ? void 0 : _this$divaWebConfigDa36.dontLoadCatalogEditorLiteMask;
1432
1425
  }
1433
1426
  }, {
1434
1427
  key: "OrganizationId",
@@ -28333,7 +28326,7 @@ var DivaArticle = /*#__PURE__*/function () {
28333
28326
  break;
28334
28327
  }
28335
28328
  _context.next = 4;
28336
- return Promise.resolve().then(function () { return require('./ShelfPlanner-6a3c8450.js'); });
28329
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-23f182ca.js'); });
28337
28330
  case 4:
28338
28331
  _yield$import = _context.sent;
28339
28332
  ShelfPlanner = _yield$import["default"];
@@ -32840,7 +32833,7 @@ var DivaSet = /*#__PURE__*/function () {
32840
32833
  break;
32841
32834
  }
32842
32835
  _context5.next = 3;
32843
- return Promise.resolve().then(function () { return require('./DoorPlanner-bf4ff19a.js'); });
32836
+ return Promise.resolve().then(function () { return require('./DoorPlanner-54a98952.js'); });
32844
32837
  case 3:
32845
32838
  _yield$import = _context5.sent;
32846
32839
  DoorPlanner = _yield$import["default"];
@@ -39833,7 +39826,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39833
39826
  break;
39834
39827
  case 3:
39835
39828
  _context12.next = 5;
39836
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-a61d6f21.js'); });
39829
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-f7c37e49.js'); });
39837
39830
  case 5:
39838
39831
  _yield$import = _context12.sent;
39839
39832
  PfisterWWSHandler = _yield$import["default"];
@@ -39841,7 +39834,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39841
39834
  return _context12.abrupt("break", 27);
39842
39835
  case 9:
39843
39836
  _context12.next = 11;
39844
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-2a9a7479.js'); });
39837
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-828c7fc3.js'); });
39845
39838
  case 11:
39846
39839
  _yield$import2 = _context12.sent;
39847
39840
  LiviqueWWSHandler = _yield$import2["default"];
@@ -39849,7 +39842,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39849
39842
  return _context12.abrupt("break", 27);
39850
39843
  case 15:
39851
39844
  _context12.next = 17;
39852
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-e41f9d33.js'); });
39845
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-2869b96b.js'); });
39853
39846
  case 17:
39854
39847
  _yield$import3 = _context12.sent;
39855
39848
  SeriousWWSHandler = _yield$import3["default"];
@@ -39857,7 +39850,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39857
39850
  return _context12.abrupt("break", 27);
39858
39851
  case 21:
39859
39852
  _context12.next = 23;
39860
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-1eb5d321.js'); });
39853
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-5e529471.js'); });
39861
39854
  case 23:
39862
39855
  _yield$import4 = _context12.sent;
39863
39856
  StandardWWSHandler = _yield$import4["default"];
@@ -41286,7 +41279,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
41286
41279
  while (1) switch (_context3.prev = _context3.next) {
41287
41280
  case 0:
41288
41281
  _context3.next = 2;
41289
- return Promise.resolve().then(function () { return require('./Host3DSignalR-443b2eb9.js'); });
41282
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-bcb9ba81.js'); });
41290
41283
  case 2:
41291
41284
  _yield$import = _context3.sent;
41292
41285
  Host3DSignalR = _yield$import["default"];
@@ -42844,7 +42837,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
42844
42837
  break;
42845
42838
  case 8:
42846
42839
  _context4.next = 10;
42847
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-25a3c2bf.js'); });
42840
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-18c232b4.js'); });
42848
42841
  case 10:
42849
42842
  _yield$import = _context4.sent;
42850
42843
  DivaStandardPlanner = _yield$import["default"];
@@ -42855,7 +42848,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
42855
42848
  return _context4.abrupt("break", 21);
42856
42849
  case 15:
42857
42850
  _context4.next = 17;
42858
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-911fbe6e.js'); });
42851
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-068408eb.js'); });
42859
42852
  case 17:
42860
42853
  _yield$import2 = _context4.sent;
42861
42854
  DivaBoxPlanner = _yield$import2["default"];
@@ -43856,8 +43849,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
43856
43849
  var _this = this;
43857
43850
  _classCallCheck__default["default"](this, DivaWebPlanner);
43858
43851
  _defineProperty__default["default"](this, "divaBasketHandler", void 0);
43859
- _defineProperty__default["default"](this, "openLeafeltBarrier", void 0);
43860
- _defineProperty__default["default"](this, "openContactForm", void 0);
43861
43852
  _defineProperty__default["default"](this, "onClickAddToBasket", void 0);
43862
43853
  //Öffentliche Funktionen für die View
43863
43854
  _defineProperty__default["default"](this, "initPlannerView", void 0);
@@ -45016,21 +45007,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45016
45007
  while (1) switch (_context17.prev = _context17.next) {
45017
45008
  case 0:
45018
45009
  doDefault = true;
45019
- if (!['OPEN_LEAFLET_BARRIER', 'SHOW_PDF'].includes((_this$plannerConfig$i = this.plannerConfig.initMode) !== null && _this$plannerConfig$i !== void 0 ? _this$plannerConfig$i : '')) {
45020
- _context17.next = 10;
45010
+ if (!['SHOW_PDF'].includes((_this$plannerConfig$i = this.plannerConfig.initMode) !== null && _this$plannerConfig$i !== void 0 ? _this$plannerConfig$i : '')) {
45011
+ _context17.next = 9;
45021
45012
  break;
45022
45013
  }
45023
- if (this.plannerConfig.initMode == 'OPEN_LEAFLET_BARRIER') this.ReturnTo = 'OPEN_LEAFLET_BARRIER';
45024
45014
  if (this.plannerConfig.initMode == 'SHOW_PDF') this.ReturnTo = 'OPEN_PDF';
45025
45015
  (_this$navigateToTabGr2 = this.navigateToTabGroup) === null || _this$navigateToTabGr2 === void 0 || _this$navigateToTabGr2.call(this, 'SUMMARY', undefined, true);
45026
45016
  //TODO lea bug das hier ist nur ein temporäre lößung https://app.asana.com/0/1200869909950432/1200998848659806
45027
- _context17.next = 7;
45017
+ _context17.next = 6;
45028
45018
  return this.saveToBasketWrapper();
45029
- case 7:
45019
+ case 6:
45030
45020
  doDefault = false;
45031
- _context17.next = 11;
45021
+ _context17.next = 10;
45032
45022
  break;
45033
- case 10:
45023
+ case 9:
45034
45024
  if (this.plannerConfig.initMode == 'OPENCONFIGTABGROUP' || this.api.getPlannerType() == 'JUMP_OVER_PLANNER' || this.api.getPlannerType() == 'JUMP_OVER_PLANNER_ONLY_MOBILE' && (_this$state3 = this.state) !== null && _this$state3 !== void 0 && _this$state3.dimensions.isMobile) {
45035
45025
  configStepKey = this.plannerConfig.opt ? setHandlerInstance.getConfigStepKeyOfOption(this.actSet(), this.plannerConfig.opt) : setHandlerInstance.getFirstConfigStep(this.actSet());
45036
45026
  if (configStepKey) {
@@ -45040,7 +45030,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45040
45030
  LOG$1.warn('Option: ' + this.plannerConfig.opt + ' could not be found');
45041
45031
  }
45042
45032
  }
45043
- case 11:
45033
+ case 10:
45044
45034
  if (doDefault) {
45045
45035
  if (plannerMode == 'ProductList') {
45046
45036
  (_this$navigateToTabGr3 = this.navigateToTabGroup) === null || _this$navigateToTabGr3 === void 0 || _this$navigateToTabGr3.call(this, 'PRODUCTS');
@@ -45050,7 +45040,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45050
45040
  (_this$navigateToTabGr5 = this.navigateToTabGroup) === null || _this$navigateToTabGr5 === void 0 || _this$navigateToTabGr5.call(this, this.getCurPlannerType(true), true);
45051
45041
  }
45052
45042
  }
45053
- case 12:
45043
+ case 11:
45054
45044
  case "end":
45055
45045
  return _context17.stop();
45056
45046
  }
@@ -45703,14 +45693,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45703
45693
  key: "saveToBasketWrapper",
45704
45694
  value: function () {
45705
45695
  var _saveToBasketWrapper = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, returnToParam, hideLoading) {
45706
- var _this$actions29,
45696
+ var _this$actions28,
45697
+ _this$actions28$toggl,
45698
+ _this$actions29,
45707
45699
  _this$actions29$toggl,
45708
- _this$actions30,
45709
- _this$actions30$toggl,
45710
45700
  _this3 = this,
45711
- _this$actions34,
45701
+ _this$actions33,
45712
45702
  _this$i18n18;
45713
- var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet10, url, _result, _this$actions28, result, _this$actions31, _this$i18n12, _this$i18n13, _this$actions32, _this$i18n14, _this$i18n15, _this$actions33, _this$i18n16, _this$i18n17, _this$updatePlannerMs2;
45703
+ var returnTo, finalEvent, result, _this$actions30, _this$i18n12, _this$i18n13, _this$actions31, _this$i18n14, _this$i18n15, _this$actions32, _this$i18n16, _this$i18n17, _this$updatePlannerMs2;
45714
45704
  return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
45715
45705
  while (1) switch (_context26.prev = _context26.next) {
45716
45706
  case 0:
@@ -45719,74 +45709,37 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45719
45709
  event: event,
45720
45710
  saveBasket: true
45721
45711
  };
45722
- if (!(returnTo == 'OPEN_LEAFLET_BARRIER')) {
45723
- _context26.next = 21;
45724
- break;
45725
- }
45726
- product = undefined;
45727
- if (!((_this$api$getBarrierC = this.api.getBarrierConfig()) !== null && _this$api$getBarrierC !== void 0 && _this$api$getBarrierC.affiliate)) {
45728
- _context26.next = 10;
45729
- break;
45730
- }
45731
- url = this.api.getCatalogProductUrl(this.actSet().getCatalogCodex());
45732
- _context26.next = 8;
45733
- return this.api.getDataCache(url, url, undefined, 'catalog');
45734
- case 8:
45735
- _result = _context26.sent;
45736
- product = productHandlerInstance.getBestMatch((_this$actSet10 = this.actSet()) === null || _this$actSet10 === void 0 ? void 0 : _this$actSet10.getDivaArticles(), _result);
45737
- case 10:
45738
- _context26.next = 12;
45739
- return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
45740
- case 12:
45741
- finalEvent = _context26.sent;
45742
- if (finalEvent) {
45743
- _context26.next = 17;
45744
- break;
45745
- }
45746
- return _context26.abrupt("return", 'canceled');
45747
- case 17:
45748
- if (!(!finalEvent.saveBasket && finalEvent.event)) {
45749
- _context26.next = 20;
45750
- break;
45751
- }
45752
- (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.onEvent({
45753
- type: finalEvent.event
45754
- });
45755
- return _context26.abrupt("return", 'canceled');
45756
- case 20:
45757
- returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
45758
- case 21:
45759
- if (!hideLoading) (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || (_this$actions29$toggl = _this$actions29.toggleLoading) === null || _this$actions29$toggl === void 0 || _this$actions29$toggl.call(_this$actions29, 'Planner_Saving', false, true);
45760
- _context26.next = 24;
45712
+ if (!hideLoading) (_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, true);
45713
+ _context26.next = 5;
45761
45714
  return this.saveToBasket(returnTo, finalEvent.event, repairOnly);
45762
- case 24:
45715
+ case 5:
45763
45716
  result = _context26.sent;
45764
- if (!hideLoading) (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || (_this$actions30$toggl = _this$actions30.toggleLoading) === null || _this$actions30$toggl === void 0 || _this$actions30$toggl.call(_this$actions30, 'Planner_Saving', false, false);
45717
+ if (!hideLoading) (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || (_this$actions29$toggl = _this$actions29.toggleLoading) === null || _this$actions29$toggl === void 0 || _this$actions29$toggl.call(_this$actions29, 'Planner_Saving', false, false);
45765
45718
  if (!(result === 'canceled')) {
45766
- _context26.next = 30;
45719
+ _context26.next = 11;
45767
45720
  break;
45768
45721
  }
45769
45722
  LOG$1.error(new DivaUtils.DivaError('failed to save Basket'));
45770
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
45723
+ (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
45771
45724
  text: ((_this$i18n12 = this.i18n()) === null || _this$i18n12 === void 0 ? void 0 : _this$i18n12.t('modal.general_error')) + ' --- ' + DivaUtils__default["default"].formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils__default["default"].getCurrentTraceId() ? ((_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modal.errorcode')) + ': ' + DivaUtils__default["default"].getCurrentTraceId() : '',
45772
45725
  accept: true
45773
45726
  });
45774
45727
  return _context26.abrupt("return", result);
45775
- case 30:
45728
+ case 11:
45776
45729
  _context26.t0 = returnTo;
45777
- _context26.next = _context26.t0 === 'OPEN_PDF' ? 33 : _context26.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : _context26.t0 === 'OPEN_CONTACT_FORM' ? 36 : 36;
45730
+ _context26.next = _context26.t0 === 'OPEN_PDF' ? 14 : _context26.t0 === 'SAVE_BASKET_WITH_MODAL' ? 16 : _context26.t0 === 'OPEN_CONTACT_FORM' ? 17 : 17;
45778
45731
  break;
45779
- case 33:
45732
+ case 14:
45780
45733
  if (!this.getBasket().PDFDocumentURL) {
45781
45734
  LOG$1.error(new DivaUtils.DivaError('PDF url is missing in basket', {
45782
45735
  code: 'WC_0010'
45783
45736
  }));
45784
- (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
45737
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
45785
45738
  text: ((_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.general_error')) + ' --- ' + DivaUtils__default["default"].formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils__default["default"].getCurrentTraceId() ? ((_this$i18n15 = this.i18n()) === null || _this$i18n15 === void 0 ? void 0 : _this$i18n15.t('modal.errorcode')) + ': ' + DivaUtils__default["default"].getCurrentTraceId() : '',
45786
45739
  accept: true
45787
45740
  });
45788
45741
  } else {
45789
- (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openModal({
45742
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
45790
45743
  text: (_this$i18n16 = this.i18n()) === null || _this$i18n16 === void 0 ? void 0 : _this$i18n16.t(this.divaBasketHandler.actBasket.Status === 'ORDER' ? 'modal.open_order_pdf_now' : 'modal.open_leaflet_pdf_now'),
45791
45744
  accept: (_this$i18n17 = this.i18n()) === null || _this$i18n17 === void 0 ? void 0 : _this$i18n17.t('modals.open_now'),
45792
45745
  callback: function callback() {
@@ -45794,22 +45747,22 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45794
45747
  }
45795
45748
  });
45796
45749
  }
45797
- return _context26.abrupt("break", 36);
45798
- case 35:
45799
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openModal({
45750
+ return _context26.abrupt("break", 17);
45751
+ case 16:
45752
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openModal({
45800
45753
  text: (_this$i18n18 = this.i18n()) === null || _this$i18n18 === void 0 ? void 0 : _this$i18n18.t('modal.planning_saved'),
45801
45754
  accept: true
45802
45755
  });
45803
- case 36:
45756
+ case 17:
45804
45757
  if (!(result == 'noArticleToSave')) {
45805
- _context26.next = 39;
45758
+ _context26.next = 20;
45806
45759
  break;
45807
45760
  }
45808
45761
  (_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
45809
45762
  return _context26.abrupt("return", 'canceled');
45810
- case 39:
45763
+ case 20:
45811
45764
  return _context26.abrupt("return", result);
45812
- case 40:
45765
+ case 21:
45813
45766
  case "end":
45814
45767
  return _context26.stop();
45815
45768
  }
@@ -45824,8 +45777,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45824
45777
  key: "saveToBasket",
45825
45778
  value: function () {
45826
45779
  var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee27(returnTo, event, repairOnly) {
45827
- var _returnTo, _returnTo2, _returnTo3, _this$actions35, _this$actions36, _this$divaBasketHandl2;
45828
- var set, actBasket, oldReturnTo, result, newDivaNr, _this$actSet11, arReady, _result2, product;
45780
+ var _returnTo, _returnTo2, _returnTo3, _this$actions34, _this$actions35, _this$divaBasketHandl2;
45781
+ var set, actBasket, oldReturnTo, result, newDivaNr, _this$actSet10, arReady, _result, product;
45829
45782
  return _regeneratorRuntime__default["default"].wrap(function _callee27$(_context27) {
45830
45783
  while (1) switch (_context27.prev = _context27.next) {
45831
45784
  case 0:
@@ -45877,10 +45830,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45877
45830
  break;
45878
45831
  }
45879
45832
  _context27.t3 = returnTo;
45880
- _context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 27 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 29 : _context27.t3 === 'OPEN_PDF' ? 32 : _context27.t3 === 'SAVE_BASKET_WITH_MODAL' ? 32 : _context27.t3 === 'SAVE_BASKET' ? 32 : _context27.t3 === 'SAVE_BASKET_SYNC' ? 32 : _context27.t3 === 'OPEN_LEAFLET_BARRIER' ? 32 : 52;
45833
+ _context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 27 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 29 : _context27.t3 === 'OPEN_PDF' ? 32 : _context27.t3 === 'SAVE_BASKET_WITH_MODAL' ? 32 : _context27.t3 === 'SAVE_BASKET' ? 32 : _context27.t3 === 'SAVE_BASKET_SYNC' ? 32 : 52;
45881
45834
  break;
45882
45835
  case 27:
45883
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
45836
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
45884
45837
  type: 'SELLER',
45885
45838
  parameters: {
45886
45839
  module: 'PCreator',
@@ -45895,7 +45848,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45895
45848
  if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
45896
45849
  actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
45897
45850
  }
45898
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.openComponent({
45851
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
45899
45852
  type: 'SELLER',
45900
45853
  parameters: {
45901
45854
  module: 'Basket',
@@ -45930,12 +45883,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45930
45883
  }
45931
45884
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
45932
45885
  actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
45933
- arReady = !!((_this$actSet11 = this.actSet()) !== null && _this$actSet11 !== void 0 && _this$actSet11.CatalogData.divaArReady);
45886
+ arReady = !!((_this$actSet10 = this.actSet()) !== null && _this$actSet10 !== void 0 && _this$actSet10.CatalogData.divaArReady);
45934
45887
  _context27.next = 48;
45935
45888
  return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo, arReady);
45936
45889
  case 48:
45937
- _result2 = _context27.sent;
45938
- if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
45890
+ _result = _context27.sent;
45891
+ if (!(_result === 'ERROR_NO_BASKET_SAVED' || _result === 'ERROR_BASKET_AFTER_SAVE')) {
45939
45892
  _context27.next = 51;
45940
45893
  break;
45941
45894
  }
@@ -45999,8 +45952,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45999
45952
  var doTryOptimize = plannerType == 'CUSTOMER_OPTIMIZED_PLANNER' || plannerType == 'JUMP_OVER_PLANNER_ONLY_MOBILE' || plannerType == 'JUMP_OVER_PLANNER';
46000
45953
  //if planner is hidden by config but nothing is planned initially
46001
45954
  if (plannerType === 'NONE') {
46002
- var _this$plannerConfig$a8, _this$actSet12;
46003
- if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex !== undefined && !((_this$plannerConfig$a8 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a8 !== void 0 && _this$plannerConfig$a8.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet12 = this.actSet()) !== null && _this$actSet12 !== void 0 && (_this$actSet12 = _this$actSet12.CatalogData.startPlannerArticle) !== null && _this$actSet12 !== void 0 && _this$actSet12.length)) {
45955
+ var _this$plannerConfig$a8, _this$actSet11;
45956
+ if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex !== undefined && !((_this$plannerConfig$a8 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a8 !== void 0 && _this$plannerConfig$a8.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet11 = this.actSet()) !== null && _this$actSet11 !== void 0 && (_this$actSet11 = _this$actSet11.CatalogData.startPlannerArticle) !== null && _this$actSet11 !== void 0 && _this$actSet11.length)) {
46004
45957
  plannerType = 'PLANNER';
46005
45958
  }
46006
45959
  }
@@ -46044,38 +45997,38 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46044
45997
  }, {
46045
45998
  key: "getCurCatalogCodex",
46046
45999
  value: function getCurCatalogCodex() {
46047
- var _this$actSet13;
46048
- return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getCatalogCodex();
46000
+ var _this$actSet12;
46001
+ return (_this$actSet12 = this.actSet()) === null || _this$actSet12 === void 0 ? void 0 : _this$actSet12.getCatalogCodex();
46049
46002
  }
46050
46003
  }, {
46051
46004
  key: "getCurCatalogName",
46052
46005
  value: function getCurCatalogName() {
46053
- var _this$actSet14;
46054
- return (_this$actSet14 = this.actSet()) === null || _this$actSet14 === void 0 ? void 0 : _this$actSet14.getCatalogName();
46006
+ var _this$actSet13;
46007
+ return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getCatalogName();
46055
46008
  }
46056
46009
  }, {
46057
46010
  key: "getCurAccountName",
46058
46011
  value: function getCurAccountName() {
46059
- var _this$actSet15;
46060
- return (_this$actSet15 = this.actSet()) === null || _this$actSet15 === void 0 ? void 0 : _this$actSet15.getAccountName();
46012
+ var _this$actSet14;
46013
+ return (_this$actSet14 = this.actSet()) === null || _this$actSet14 === void 0 ? void 0 : _this$actSet14.getAccountName();
46061
46014
  }
46062
46015
  }, {
46063
46016
  key: "getCurSupplierGuid",
46064
46017
  value: function getCurSupplierGuid() {
46065
- var _this$actSet16;
46066
- return (_this$actSet16 = this.actSet()) === null || _this$actSet16 === void 0 ? void 0 : _this$actSet16.getSupplierGuid();
46018
+ var _this$actSet15;
46019
+ return (_this$actSet15 = this.actSet()) === null || _this$actSet15 === void 0 ? void 0 : _this$actSet15.getSupplierGuid();
46067
46020
  }
46068
46021
  }, {
46069
46022
  key: "getCurSetPrice",
46070
46023
  value: function getCurSetPrice() {
46071
- var _this$actSet$getSetPr, _this$actSet17;
46072
- return (_this$actSet$getSetPr = (_this$actSet17 = this.actSet()) === null || _this$actSet17 === void 0 ? void 0 : _this$actSet17.getSetPrice()) !== null && _this$actSet$getSetPr !== void 0 ? _this$actSet$getSetPr : 0;
46024
+ var _this$actSet$getSetPr, _this$actSet16;
46025
+ return (_this$actSet$getSetPr = (_this$actSet16 = this.actSet()) === null || _this$actSet16 === void 0 ? void 0 : _this$actSet16.getSetPrice()) !== null && _this$actSet$getSetPr !== void 0 ? _this$actSet$getSetPr : 0;
46073
46026
  }
46074
46027
  }, {
46075
46028
  key: "getCurImageMode",
46076
46029
  value: function getCurImageMode() {
46077
- var _this$actSet18;
46078
- return (_this$actSet18 = this.actSet()) !== null && _this$actSet18 !== void 0 && (_this$actSet18 = _this$actSet18.CatalogData) !== null && _this$actSet18 !== void 0 && _this$actSet18.has3dModels ? '3D' : '2D';
46030
+ var _this$actSet17;
46031
+ return (_this$actSet17 = this.actSet()) !== null && _this$actSet17 !== void 0 && (_this$actSet17 = _this$actSet17.CatalogData) !== null && _this$actSet17 !== void 0 && _this$actSet17.has3dModels ? '3D' : '2D';
46079
46032
  }
46080
46033
  }, {
46081
46034
  key: "getViewConfig",
@@ -46111,68 +46064,68 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46111
46064
  }, {
46112
46065
  key: "doShow3DDimensionLines",
46113
46066
  value: function doShow3DDimensionLines() {
46114
- var _this$actSet19;
46115
- return (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 || (_this$actSet19 = _this$actSet19.CatalogData) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.doShow3DDimensionLines;
46067
+ var _this$actSet18;
46068
+ return (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 || (_this$actSet18 = _this$actSet18.CatalogData) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.doShow3DDimensionLines;
46116
46069
  }
46117
46070
  }, {
46118
46071
  key: "defaultDimensionsActive",
46119
46072
  value: function defaultDimensionsActive() {
46120
- var _this$actSet20;
46121
- return (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 || (_this$actSet20 = _this$actSet20.CatalogData) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.defaultDimensionsActive;
46073
+ var _this$actSet19;
46074
+ return (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 || (_this$actSet19 = _this$actSet19.CatalogData) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.defaultDimensionsActive;
46122
46075
  }
46123
46076
  }, {
46124
46077
  key: "autoOpenContentItem",
46125
46078
  value: function autoOpenContentItem() {
46126
- var _this$actSet21;
46127
- return (_this$actSet21 = this.actSet()) === null || _this$actSet21 === void 0 || (_this$actSet21 = _this$actSet21.CatalogData) === null || _this$actSet21 === void 0 ? void 0 : _this$actSet21.autoOpenContentItem;
46079
+ var _this$actSet20;
46080
+ return (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 || (_this$actSet20 = _this$actSet20.CatalogData) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.autoOpenContentItem;
46128
46081
  }
46129
46082
  }, {
46130
46083
  key: "hidePlannerUiIcons",
46131
46084
  value: function hidePlannerUiIcons() {
46132
- var _this$actSet22;
46133
- return (_this$actSet22 = this.actSet()) === null || _this$actSet22 === void 0 || (_this$actSet22 = _this$actSet22.CatalogData) === null || _this$actSet22 === void 0 ? void 0 : _this$actSet22.hidePlannerUiIcons;
46085
+ var _this$actSet21;
46086
+ return (_this$actSet21 = this.actSet()) === null || _this$actSet21 === void 0 || (_this$actSet21 = _this$actSet21.CatalogData) === null || _this$actSet21 === void 0 ? void 0 : _this$actSet21.hidePlannerUiIcons;
46134
46087
  }
46135
46088
  }, {
46136
46089
  key: "getPlanner2Dot0Active",
46137
46090
  value: function getPlanner2Dot0Active() {
46138
- var _this$actSet23;
46139
- return (_this$actSet23 = this.actSet()) === null || _this$actSet23 === void 0 || (_this$actSet23 = _this$actSet23.CatalogData) === null || _this$actSet23 === void 0 ? void 0 : _this$actSet23.planner2Dot0;
46091
+ var _this$actSet22;
46092
+ return (_this$actSet22 = this.actSet()) === null || _this$actSet22 === void 0 || (_this$actSet22 = _this$actSet22.CatalogData) === null || _this$actSet22 === void 0 ? void 0 : _this$actSet22.planner2Dot0;
46140
46093
  }
46141
46094
  }, {
46142
46095
  key: "doShowPlannerReplaceMode",
46143
46096
  value: function doShowPlannerReplaceMode() {
46144
- var _this$actSet24, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
46145
- var catalogData = (_this$actSet24 = this.actSet()) === null || _this$actSet24 === void 0 ? void 0 : _this$actSet24.CatalogData;
46097
+ var _this$actSet23, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
46098
+ var catalogData = (_this$actSet23 = this.actSet()) === null || _this$actSet23 === void 0 ? void 0 : _this$actSet23.CatalogData;
46146
46099
  return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.replaceModeActive) && ((_this$api$getViewConf2 = this.api.getViewConfig()) === null || _this$api$getViewConf2 === void 0 ? void 0 : _this$api$getViewConf2.showReplaceFunctionInPlanner) && Object.entries(catalogData.allCatalogPlannerArticles).length > 1 && Object.entries((_catalogData$PlannerP = (_catalogData$PlannerP2 = catalogData.PlannerPaletteViewInfo) === null || _catalogData$PlannerP2 === void 0 ? void 0 : _catalogData$PlannerP2.catalogPlannerArticles) !== null && _catalogData$PlannerP !== void 0 ? _catalogData$PlannerP : {}).length > 1;
46147
46100
  }
46148
46101
  }, {
46149
46102
  key: "doPlannerReplaceAutoSwitch",
46150
46103
  value: function doPlannerReplaceAutoSwitch() {
46151
- var _this$actSet25, _this$api$getViewConf3;
46152
- var catalogData = (_this$actSet25 = this.actSet()) === null || _this$actSet25 === void 0 ? void 0 : _this$actSet25.CatalogData;
46104
+ var _this$actSet24, _this$api$getViewConf3;
46105
+ var catalogData = (_this$actSet24 = this.actSet()) === null || _this$actSet24 === void 0 ? void 0 : _this$actSet24.CatalogData;
46153
46106
  return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.catalogPlannsCompletely) && this.doShowPlannerReplaceMode() && ((_this$api$getViewConf3 = this.api.getViewConfig()) === null || _this$api$getViewConf3 === void 0 ? void 0 : _this$api$getViewConf3.allowAutoSwitchInReplaceFunctionInPlanner);
46154
46107
  }
46155
46108
  }, {
46156
46109
  key: "getHidePlanner",
46157
46110
  value: function getHidePlanner() {
46158
- var _this$actSet26;
46159
- return this.api.getHidePlanner() || !!((_this$actSet26 = this.actSet()) !== null && _this$actSet26 !== void 0 && _this$actSet26.CatalogData.useBoxPlanner);
46111
+ var _this$actSet25;
46112
+ return this.api.getHidePlanner() || !!((_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.useBoxPlanner);
46160
46113
  }
46161
46114
  }, {
46162
46115
  key: "getAllowRTV",
46163
46116
  value: function getAllowRTV() {
46164
- var _this$state5, _this$actSet27, _this$state6, _this$actSet28;
46117
+ var _this$state5, _this$actSet26, _this$state6, _this$actSet27;
46165
46118
  if (this.getEnableUnityRtvKombi()) return false;
46166
46119
  if ((_this$state5 = this.state) !== null && _this$state5 !== void 0 && _this$state5.organization.settings.forceRTV) return true;
46167
- if ((_this$actSet27 = this.actSet()) !== null && _this$actSet27 !== void 0 && _this$actSet27.CatalogData.divaForceRTV) return true;
46168
- if ((_this$state6 = this.state) !== null && _this$state6 !== void 0 && _this$state6.organization.settings.enableRTV && (_this$actSet28 = this.actSet()) !== null && _this$actSet28 !== void 0 && _this$actSet28.CatalogData.divaArReady) return true;
46120
+ if ((_this$actSet26 = this.actSet()) !== null && _this$actSet26 !== void 0 && _this$actSet26.CatalogData.divaForceRTV) return true;
46121
+ if ((_this$state6 = this.state) !== null && _this$state6 !== void 0 && _this$state6.organization.settings.enableRTV && (_this$actSet27 = this.actSet()) !== null && _this$actSet27 !== void 0 && _this$actSet27.CatalogData.divaArReady) return true;
46169
46122
  return false;
46170
46123
  }
46171
46124
  }, {
46172
46125
  key: "getForceRTV",
46173
46126
  value: function getForceRTV() {
46174
- var _this$actSet29;
46175
- return !!((_this$actSet29 = this.actSet()) !== null && _this$actSet29 !== void 0 && _this$actSet29.CatalogData.divaForceRTV);
46127
+ var _this$actSet28;
46128
+ return !!((_this$actSet28 = this.actSet()) !== null && _this$actSet28 !== void 0 && _this$actSet28.CatalogData.divaForceRTV);
46176
46129
  }
46177
46130
  }, {
46178
46131
  key: "getPricePreview",
@@ -46182,29 +46135,29 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46182
46135
  }, {
46183
46136
  key: "hide2DPlanner",
46184
46137
  value: function hide2DPlanner() {
46185
- var _this$actSet30;
46186
- return (_this$actSet30 = this.actSet()) === null || _this$actSet30 === void 0 ? void 0 : _this$actSet30.CatalogData.hide2DPlanner;
46138
+ var _this$actSet29;
46139
+ return (_this$actSet29 = this.actSet()) === null || _this$actSet29 === void 0 ? void 0 : _this$actSet29.CatalogData.hide2DPlanner;
46187
46140
  }
46188
46141
  }, {
46189
46142
  key: "getAllowQRCodeAR",
46190
46143
  value: function getAllowQRCodeAR() {
46191
- var _this$actSet31;
46192
- if (this.api.enableAR && (_this$actSet31 = this.actSet()) !== null && _this$actSet31 !== void 0 && _this$actSet31.CatalogData.divaArReady) return true;
46144
+ var _this$actSet30;
46145
+ if (this.api.enableAR && (_this$actSet30 = this.actSet()) !== null && _this$actSet30 !== void 0 && _this$actSet30.CatalogData.divaArReady) return true;
46193
46146
  return false;
46194
46147
  }
46195
46148
  }, {
46196
46149
  key: "getEnableUnityRtvKombi",
46197
46150
  value: function getEnableUnityRtvKombi() {
46198
- var _this$actSet32, _this$actSet33;
46151
+ var _this$actSet31, _this$actSet32;
46199
46152
  // if force rtv disable unity kombi - biohort
46200
- if ((_this$actSet32 = this.actSet()) !== null && _this$actSet32 !== void 0 && _this$actSet32.CatalogData.divaForceRTV) return false;
46201
- return ((_this$actSet33 = this.actSet()) === null || _this$actSet33 === void 0 ? void 0 : _this$actSet33.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
46153
+ if ((_this$actSet31 = this.actSet()) !== null && _this$actSet31 !== void 0 && _this$actSet31.CatalogData.divaForceRTV) return false;
46154
+ return ((_this$actSet32 = this.actSet()) === null || _this$actSet32 === void 0 ? void 0 : _this$actSet32.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
46202
46155
  }
46203
46156
  }, {
46204
46157
  key: "getShelfPlannerRTV",
46205
46158
  value: function getShelfPlannerRTV() {
46206
- var _this$actSet34;
46207
- return (_this$actSet34 = this.actSet()) === null || _this$actSet34 === void 0 ? void 0 : _this$actSet34.CatalogData.useShelfPlannerRTV;
46159
+ var _this$actSet33;
46160
+ return (_this$actSet33 = this.actSet()) === null || _this$actSet33 === void 0 ? void 0 : _this$actSet33.CatalogData.useShelfPlannerRTV;
46208
46161
  }
46209
46162
  }, {
46210
46163
  key: "getBasketData",
@@ -46245,8 +46198,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46245
46198
  }, {
46246
46199
  key: "getCatalogData",
46247
46200
  value: function getCatalogData() {
46248
- var _this$actSet35;
46249
- return (_this$actSet35 = this.actSet()) === null || _this$actSet35 === void 0 ? void 0 : _this$actSet35.CatalogData;
46201
+ var _this$actSet34;
46202
+ return (_this$actSet34 = this.actSet()) === null || _this$actSet34 === void 0 ? void 0 : _this$actSet34.CatalogData;
46250
46203
  }
46251
46204
  }, {
46252
46205
  key: "ReturnTo",
@@ -46262,18 +46215,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46262
46215
  key: "addToBasket",
46263
46216
  value: function () {
46264
46217
  var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee29(actBasket) {
46265
- var _this$actions37,
46218
+ var _this$actions36,
46219
+ _this$actions37,
46266
46220
  _this$actions38,
46267
46221
  _this$actions39,
46268
46222
  _this$actions40,
46269
- _this$actions41,
46270
46223
  _this$divaBasketHandl4,
46271
46224
  _this4 = this,
46225
+ _this$actions41,
46272
46226
  _this$actions42,
46273
46227
  _this$actions43,
46274
- _this$actions44,
46275
- _this$actions45,
46276
- _this$actions46;
46228
+ _this$actions44;
46277
46229
  var event,
46278
46230
  emailConfig,
46279
46231
  _emailConfig$to$split,
@@ -46287,38 +46239,38 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46287
46239
  case 0:
46288
46240
  event = _args29.length > 1 && _args29[1] !== undefined ? _args29[1] : 'onAddToBasket';
46289
46241
  _context29.t0 = event;
46290
- _context29.next = _context29.t0 === 'onWebPlanerPrint' ? 4 : _context29.t0 === 'onWebPlanerSave' ? 6 : _context29.t0 === 'onWebPlanerShare' ? 8 : _context29.t0 === 'onRequestConsulation' ? 10 : _context29.t0 === 'onSave' ? 12 : _context29.t0 === 'onSendEmail' ? 14 : _context29.t0 === 'onSaveProduct' ? 19 : _context29.t0 === 'dontSaveBasket' ? 26 : _context29.t0 === 'onAddToBasket' ? 26 : _context29.t0 === 'onSendContactForm' ? 28 : 31;
46242
+ _context29.next = _context29.t0 === 'onWebPlanerPrint' ? 4 : _context29.t0 === 'onWebPlanerSave' ? 6 : _context29.t0 === 'onWebPlanerShare' ? 8 : _context29.t0 === 'onRequestConsulation' ? 10 : _context29.t0 === 'onSave' ? 12 : _context29.t0 === 'onSendEmail' ? 14 : _context29.t0 === 'onSaveProduct' ? 19 : _context29.t0 === 'dontSaveBasket' ? 26 : _context29.t0 === 'onAddToBasket' ? 26 : 28;
46291
46243
  break;
46292
46244
  case 4:
46293
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
46245
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
46294
46246
  type: 'onWebPlanerPrint',
46295
46247
  data: actBasket.getAsJson()
46296
46248
  });
46297
- return _context29.abrupt("break", 33);
46249
+ return _context29.abrupt("break", 30);
46298
46250
  case 6:
46299
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
46251
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
46300
46252
  type: 'onWebPlanerSave',
46301
46253
  data: actBasket.getAsJson()
46302
46254
  });
46303
- return _context29.abrupt("break", 33);
46255
+ return _context29.abrupt("break", 30);
46304
46256
  case 8:
46305
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
46257
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
46306
46258
  type: 'onWebPlanerShare',
46307
46259
  data: actBasket.getAsJson()
46308
46260
  });
46309
- return _context29.abrupt("break", 33);
46261
+ return _context29.abrupt("break", 30);
46310
46262
  case 10:
46311
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
46263
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
46312
46264
  type: 'onRequestConsulation',
46313
46265
  data: actBasket.getAsJson()
46314
46266
  });
46315
- return _context29.abrupt("break", 33);
46267
+ return _context29.abrupt("break", 30);
46316
46268
  case 12:
46317
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
46269
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
46318
46270
  type: 'onSave',
46319
46271
  data: actBasket.getAsJson()
46320
46272
  });
46321
- return _context29.abrupt("break", 33);
46273
+ return _context29.abrupt("break", 30);
46322
46274
  case 14:
46323
46275
  emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
46324
46276
  this.divaBasketHandler.emailConfig = undefined;
@@ -46349,18 +46301,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46349
46301
  });
46350
46302
  });
46351
46303
  }
46352
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
46304
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
46353
46305
  type: 'onAddToBasket',
46354
46306
  data: actBasket.getAsJson()
46355
46307
  });
46356
- return _context29.abrupt("break", 33);
46308
+ return _context29.abrupt("break", 30);
46357
46309
  case 19:
46358
46310
  this.actSet().CatalogData;
46359
46311
  _context29.next = 22;
46360
46312
  return this.api.saveAsProduct(this.sets, actBasket);
46361
46313
  case 22:
46362
46314
  products = _context29.sent;
46363
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
46315
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
46364
46316
  type: 'onAddToBasket',
46365
46317
  data: actBasket.getAsJson()
46366
46318
  });
@@ -46370,27 +46322,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46370
46322
  }
46371
46323
  return _context29.abrupt("return", products[0]);
46372
46324
  case 26:
46373
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
46325
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
46374
46326
  type: 'onAddToBasket',
46375
46327
  data: actBasket.getAsJson()
46376
46328
  });
46377
- return _context29.abrupt("break", 33);
46329
+ return _context29.abrupt("break", 30);
46378
46330
  case 28:
46379
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
46380
- type: 'onAddToBasket',
46381
- data: actBasket.getAsJson()
46382
- });
46383
- this.openContactForm(this.divaBasketHandler);
46384
- return _context29.abrupt("break", 33);
46385
- case 31:
46386
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.onEvent({
46331
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
46387
46332
  type: event,
46388
46333
  data: actBasket.getAsJson()
46389
46334
  });
46390
- return _context29.abrupt("break", 33);
46391
- case 33:
46335
+ return _context29.abrupt("break", 30);
46336
+ case 30:
46392
46337
  return _context29.abrupt("return");
46393
- case 34:
46338
+ case 31:
46394
46339
  case "end":
46395
46340
  return _context29.stop();
46396
46341
  }
@@ -46404,8 +46349,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46404
46349
  }, {
46405
46350
  key: "openPDFpostAsEvent",
46406
46351
  value: function openPDFpostAsEvent(mongoDBId) {
46407
- var _this$actions47, _this$actions48, _this$actions49;
46408
- (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.updateBreadcrumbs({
46352
+ var _this$actions45, _this$actions46, _this$actions47;
46353
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
46409
46354
  type: 'update',
46410
46355
  param: {
46411
46356
  groupId: 'SHOWROOM',
@@ -46419,7 +46364,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46419
46364
  }
46420
46365
  }
46421
46366
  });
46422
- (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.updateBreadcrumbs({
46367
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.updateBreadcrumbs({
46423
46368
  type: 'update',
46424
46369
  param: {
46425
46370
  groupId: 'SHOWROOM',
@@ -46433,7 +46378,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46433
46378
  }
46434
46379
  }
46435
46380
  });
46436
- (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.openComponent({
46381
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.openComponent({
46437
46382
  type: 'REPORT',
46438
46383
  parameters: {
46439
46384
  id: mongoDBId
@@ -46452,11 +46397,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46452
46397
  key: "getCurrentBasket",
46453
46398
  value: function () {
46454
46399
  var _getCurrentBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee30(event, force, returnTo, dontGoToSummary, hideLoading) {
46455
- var _this$actSet36, _this$divaBasketHandl5, _this$onClickAddToBas3;
46400
+ var _this$actSet35, _this$divaBasketHandl5, _this$onClickAddToBas3;
46456
46401
  return _regeneratorRuntime__default["default"].wrap(function _callee30$(_context30) {
46457
46402
  while (1) switch (_context30.prev = _context30.next) {
46458
46403
  case 0:
46459
- if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet36 = this.actSet()) === null || _this$actSet36 === void 0 ? void 0 : _this$actSet36.setHash) === ((_this$divaBasketHandl5 = this.divaBasketHandler.actBasket) === null || _this$divaBasketHandl5 === void 0 || (_this$divaBasketHandl5 = _this$divaBasketHandl5.OrderSets) === null || _this$divaBasketHandl5 === void 0 ? void 0 : _this$divaBasketHandl5[0].SetHash) && !(returnTo !== null && returnTo !== void 0 && returnTo.includes('OPEN')))) {
46404
+ if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet35 = this.actSet()) === null || _this$actSet35 === void 0 ? void 0 : _this$actSet35.setHash) === ((_this$divaBasketHandl5 = this.divaBasketHandler.actBasket) === null || _this$divaBasketHandl5 === void 0 || (_this$divaBasketHandl5 = _this$divaBasketHandl5.OrderSets) === null || _this$divaBasketHandl5 === void 0 ? void 0 : _this$divaBasketHandl5[0].SetHash) && !(returnTo !== null && returnTo !== void 0 && returnTo.includes('OPEN')))) {
46460
46405
  _context30.next = 2;
46461
46406
  break;
46462
46407
  }
@@ -46671,16 +46616,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46671
46616
  value: function registerUpdateViewButtonsDependigOnConfigStructure(updateViewButtonsDependigOnConfigStructure) {
46672
46617
  this.updateViewButtonsDependigOnConfigStructure = updateViewButtonsDependigOnConfigStructure;
46673
46618
  }
46674
- }, {
46675
- key: "registerOpenLeafeltBarrier",
46676
- value: function registerOpenLeafeltBarrier(openLeafeltBarrier) {
46677
- this.openLeafeltBarrier = openLeafeltBarrier;
46678
- }
46679
- }, {
46680
- key: "registerOpenContactForm",
46681
- value: function registerOpenContactForm(openContactForm) {
46682
- this.openContactForm = openContactForm;
46683
- }
46684
46619
  }, {
46685
46620
  key: "registerOnClickAddToBasket",
46686
46621
  value: function registerOnClickAddToBasket(onClickAddToBasket) {
@@ -46691,14 +46626,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46691
46626
  }, {
46692
46627
  key: "subscribeToWebPlannerEvents",
46693
46628
  value: function subscribeToWebPlannerEvents() {
46694
- var _this$actions50;
46695
- (_this$actions50 = this.actions) === null || _this$actions50 === void 0 || _this$actions50.subscribeEvents(this.addToBasketEventFunction);
46629
+ var _this$actions48;
46630
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.subscribeEvents(this.addToBasketEventFunction);
46696
46631
  }
46697
46632
  }, {
46698
46633
  key: "unsubscribeFromWebPlannerEvents",
46699
46634
  value: function unsubscribeFromWebPlannerEvents() {
46700
- var _this$actions51;
46701
- (_this$actions51 = this.actions) === null || _this$actions51 === void 0 || _this$actions51.unSubscribeEvents(this.addToBasketEventFunction);
46635
+ var _this$actions49;
46636
+ (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.unSubscribeEvents(this.addToBasketEventFunction);
46702
46637
  }
46703
46638
  }, {
46704
46639
  key: "initApiForLogicOnly",
@@ -47188,13 +47123,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47188
47123
  this.updateFreePlacesOnGrids = undefined;
47189
47124
  this.updateDoorPlannerItems = undefined;
47190
47125
  this.updatePrice = undefined;
47191
- this.openLeafeltBarrier = undefined;
47192
47126
  this.onClickAddToBasket = undefined;
47193
47127
  this.updateViewButtonsDependigOnConfigStructure = undefined;
47194
47128
  this.initViewApiDependencies = undefined;
47195
47129
  this.setHQRenderScript = undefined;
47196
47130
  this.setCamInfo = undefined;
47197
- this.openContactForm = undefined;
47198
47131
  }
47199
47132
  }]);
47200
47133
  }();