@crystaldesign/web-planner-logic 25.4.0-beta.37 → 25.4.0-beta.39

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 (30) hide show
  1. package/build/cjs/{DivaBoxPlanner-bdba29be.js → DivaBoxPlanner-279f7ff0.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-ded3927f.js → DivaStandardPlanner-220ad18f.js} +2 -2
  3. package/build/cjs/{DoorPlanner-977c7939.js → DoorPlanner-ef40c2fa.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-7c7b0e72.js → Host3DSignalR-0b3858de.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-db6e15b8.js → LiviqueWWSHandler-3a0a2138.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-c3db27fb.js → PfisterWWSHandler-0ddf18e6.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-e726119b.js → PlannerHandler2D-600738e4.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-3919fc64.js → SeriousBasketHandler-d8989a15.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-d5667b0a.js → ShelfPlanner-3dc2d043.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-e3244909.js → StandardWWSHandler-10424023.js} +1 -1
  11. package/build/cjs/{index-0bcfafc8.js → index-c793234a.js} +99 -84
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-f03cb8f2.js → DivaBoxPlanner-b47a40cc.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-4d500655.js → DivaStandardPlanner-28832376.js} +2 -2
  15. package/build/esm/{DoorPlanner-6300bf8d.js → DoorPlanner-6cc64c03.js} +1 -1
  16. package/build/esm/{Host3DSignalR-4ac73340.js → Host3DSignalR-972eb1c9.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-18a06139.js → LiviqueWWSHandler-7a5491f4.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-e9263d8a.js → PfisterWWSHandler-d1cbdee7.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-a0835889.js → PlannerHandler2D-aa8d1958.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-4bd4a253.js → SeriousBasketHandler-1b3c345f.js} +1 -1
  21. package/build/esm/{ShelfPlanner-556b6a40.js → ShelfPlanner-0228fd5f.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-d5df49a9.js → StandardWWSHandler-c40c6498.js} +1 -1
  23. package/build/esm/{index-bfed1140.js → index-336e44e8.js} +99 -84
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts +1 -0
  26. package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  28. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +1 -0
  29. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
  30. package/package.json +2 -2
@@ -20145,6 +20145,12 @@ var DivaCatalogData = /*#__PURE__*/function () {
20145
20145
  }
20146
20146
  return undefined;
20147
20147
  }
20148
+ }, {
20149
+ key: "catalogState",
20150
+ get: function get() {
20151
+ var _this$additionalModel, _this$additionalModel2;
20152
+ return (_this$additionalModel = (_this$additionalModel2 = this.additionalModelInfos) === null || _this$additionalModel2 === void 0 ? void 0 : _this$additionalModel2.state) !== null && _this$additionalModel !== void 0 ? _this$additionalModel : 0;
20153
+ }
20148
20154
  }, {
20149
20155
  key: "divaArReady",
20150
20156
  get: function get() {
@@ -20563,15 +20569,15 @@ var DivaCatalogData = /*#__PURE__*/function () {
20563
20569
  }, {
20564
20570
  key: "discountPercentage",
20565
20571
  get: function get() {
20566
- var _this$additionalModel;
20572
+ var _this$additionalModel3;
20567
20573
  if (this.useEkPrices) return undefined;
20568
- return (_this$additionalModel = this.additionalModelInfos) === null || _this$additionalModel === void 0 ? void 0 : _this$additionalModel.discountPercentage;
20574
+ return (_this$additionalModel3 = this.additionalModelInfos) === null || _this$additionalModel3 === void 0 ? void 0 : _this$additionalModel3.discountPercentage;
20569
20575
  }
20570
20576
  }, {
20571
20577
  key: "promotedOpvs",
20572
20578
  get: function get() {
20573
- var _this$additionalModel2;
20574
- return (_this$additionalModel2 = this.additionalModelInfos) === null || _this$additionalModel2 === void 0 ? void 0 : _this$additionalModel2.promotedOpvs;
20579
+ var _this$additionalModel4;
20580
+ return (_this$additionalModel4 = this.additionalModelInfos) === null || _this$additionalModel4 === void 0 ? void 0 : _this$additionalModel4.promotedOpvs;
20575
20581
  }
20576
20582
  }, {
20577
20583
  key: "addNewLineBeforRuleDesc",
@@ -20620,8 +20626,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
20620
20626
  }, {
20621
20627
  key: "catalogMask",
20622
20628
  get: function get() {
20623
- var _this$additionalModel3;
20624
- if (this.api.getUseMask()) return (_this$additionalModel3 = this.additionalModelInfos) === null || _this$additionalModel3 === void 0 ? void 0 : _this$additionalModel3.catalogMask;
20629
+ var _this$additionalModel5;
20630
+ if (this.api.getUseMask()) return (_this$additionalModel5 = this.additionalModelInfos) === null || _this$additionalModel5 === void 0 ? void 0 : _this$additionalModel5.catalogMask;
20625
20631
  return undefined;
20626
20632
  },
20627
20633
  set: function set(newMask) {
@@ -26954,7 +26960,7 @@ var DivaArticle = /*#__PURE__*/function () {
26954
26960
  break;
26955
26961
  }
26956
26962
  _context.next = 4;
26957
- return Promise.resolve().then(function () { return require('./ShelfPlanner-d5667b0a.js'); });
26963
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-3dc2d043.js'); });
26958
26964
  case 4:
26959
26965
  _yield$import = _context.sent;
26960
26966
  ShelfPlanner = _yield$import["default"];
@@ -31558,7 +31564,7 @@ var DivaSet = /*#__PURE__*/function () {
31558
31564
  break;
31559
31565
  }
31560
31566
  _context5.next = 3;
31561
- return Promise.resolve().then(function () { return require('./DoorPlanner-977c7939.js'); });
31567
+ return Promise.resolve().then(function () { return require('./DoorPlanner-ef40c2fa.js'); });
31562
31568
  case 3:
31563
31569
  _yield$import = _context5.sent;
31564
31570
  DoorPlanner = _yield$import["default"];
@@ -38405,7 +38411,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38405
38411
  break;
38406
38412
  case 3:
38407
38413
  _context12.next = 5;
38408
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-c3db27fb.js'); });
38414
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-0ddf18e6.js'); });
38409
38415
  case 5:
38410
38416
  _yield$import = _context12.sent;
38411
38417
  PfisterWWSHandler = _yield$import["default"];
@@ -38413,7 +38419,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38413
38419
  return _context12.abrupt("break", 27);
38414
38420
  case 9:
38415
38421
  _context12.next = 11;
38416
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-db6e15b8.js'); });
38422
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-3a0a2138.js'); });
38417
38423
  case 11:
38418
38424
  _yield$import2 = _context12.sent;
38419
38425
  LiviqueWWSHandler = _yield$import2["default"];
@@ -38421,7 +38427,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38421
38427
  return _context12.abrupt("break", 27);
38422
38428
  case 15:
38423
38429
  _context12.next = 17;
38424
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-3919fc64.js'); });
38430
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-d8989a15.js'); });
38425
38431
  case 17:
38426
38432
  _yield$import3 = _context12.sent;
38427
38433
  SeriousWWSHandler = _yield$import3["default"];
@@ -38429,7 +38435,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38429
38435
  return _context12.abrupt("break", 27);
38430
38436
  case 21:
38431
38437
  _context12.next = 23;
38432
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-e3244909.js'); });
38438
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-10424023.js'); });
38433
38439
  case 23:
38434
38440
  _yield$import4 = _context12.sent;
38435
38441
  StandardWWSHandler = _yield$import4["default"];
@@ -39857,7 +39863,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
39857
39863
  while (1) switch (_context3.prev = _context3.next) {
39858
39864
  case 0:
39859
39865
  _context3.next = 2;
39860
- return Promise.resolve().then(function () { return require('./Host3DSignalR-7c7b0e72.js'); });
39866
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-0b3858de.js'); });
39861
39867
  case 2:
39862
39868
  _yield$import = _context3.sent;
39863
39869
  Host3DSignalR = _yield$import["default"];
@@ -41411,7 +41417,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
41411
41417
  break;
41412
41418
  case 8:
41413
41419
  _context4.next = 10;
41414
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-ded3927f.js'); });
41420
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-220ad18f.js'); });
41415
41421
  case 10:
41416
41422
  _yield$import = _context4.sent;
41417
41423
  DivaStandardPlanner = _yield$import["default"];
@@ -41422,7 +41428,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
41422
41428
  return _context4.abrupt("break", 21);
41423
41429
  case 15:
41424
41430
  _context4.next = 17;
41425
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-bdba29be.js'); });
41431
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-279f7ff0.js'); });
41426
41432
  case 17:
41427
41433
  _yield$import2 = _context4.sent;
41428
41434
  DivaBoxPlanner = _yield$import2["default"];
@@ -43174,7 +43180,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
43174
43180
  key: "initialize",
43175
43181
  value: function () {
43176
43182
  var _initialize = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee14() {
43177
- var viewReadyPromise, loadSuccessful;
43183
+ var viewReadyPromise, loadSuccessful, ret, set, _this$actions15, _set$i18n, _set$i18n2;
43178
43184
  return _regeneratorRuntime__default["default"].wrap(function _callee14$(_context14) {
43179
43185
  while (1) switch (_context14.prev = _context14.next) {
43180
43186
  case 0:
@@ -43202,33 +43208,42 @@ var DivaWebPlanner = /*#__PURE__*/function () {
43202
43208
  DivaUtils__default["default"].businessMetrics.setConfiguratorSessionId();
43203
43209
  }
43204
43210
  if (!loadSuccessful) {
43205
- _context14.next = 27;
43211
+ _context14.next = 30;
43206
43212
  break;
43207
43213
  }
43208
43214
  _context14.prev = 14;
43209
43215
  _context14.next = 17;
43210
43216
  return this.initializeSets(loadSuccessful, viewReadyPromise);
43211
43217
  case 17:
43212
- return _context14.abrupt("return", _context14.sent);
43213
- case 20:
43214
- _context14.prev = 20;
43218
+ ret = _context14.sent;
43219
+ set = this.actSet();
43220
+ if (ret && set && set.CatalogData.catalogState !== 0) {
43221
+ (_this$actions15 = this.actions) === null || _this$actions15 === void 0 || _this$actions15.openModal({
43222
+ accept: true,
43223
+ title: (_set$i18n = set.i18n) === null || _set$i18n === void 0 ? void 0 : _set$i18n.t('configurator.catalog_not_listed_title'),
43224
+ text: (_set$i18n2 = set.i18n) === null || _set$i18n2 === void 0 ? void 0 : _set$i18n2.t('configurator.catalog_not_listed_text')
43225
+ });
43226
+ }
43227
+ return _context14.abrupt("return", ret);
43228
+ case 23:
43229
+ _context14.prev = 23;
43215
43230
  _context14.t0 = _context14["catch"](14);
43216
43231
  LOG$1.error(_context14.t0);
43217
43232
  this.onInitializationError(_context14.t0);
43218
43233
  return _context14.abrupt("return", false);
43219
- case 25:
43220
- _context14.next = 30;
43234
+ case 28:
43235
+ _context14.next = 33;
43221
43236
  break;
43222
- case 27:
43237
+ case 30:
43223
43238
  this.onInitializationError();
43224
43239
  //fehler beim laden vom basket..
43225
43240
  LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
43226
43241
  return _context14.abrupt("return", false);
43227
- case 30:
43242
+ case 33:
43228
43243
  case "end":
43229
43244
  return _context14.stop();
43230
43245
  }
43231
- }, _callee14, this, [[14, 20]]);
43246
+ }, _callee14, this, [[14, 23]]);
43232
43247
  }));
43233
43248
  function initialize() {
43234
43249
  return _initialize.apply(this, arguments);
@@ -43239,8 +43254,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
43239
43254
  key: "initializeSets",
43240
43255
  value: function () {
43241
43256
  var _initializeSets = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee15(loadSuccessful, viewReadyPromise) {
43242
- var _this$actions16, _set$getDivaArticles;
43243
- var _this$actions15, _this$actions15$toggl, initSetState, set, oldProductId, result, _this$actions17, catalogData, initializationId, _this$plannerConfig$a;
43257
+ var _this$actions17, _set$getDivaArticles;
43258
+ var _this$actions16, _this$actions16$toggl, initSetState, set, oldProductId, result, _this$actions18, catalogData, initializationId, _this$plannerConfig$a;
43244
43259
  return _regeneratorRuntime__default["default"].wrap(function _callee15$(_context15) {
43245
43260
  while (1) switch (_context15.prev = _context15.next) {
43246
43261
  case 0:
@@ -43259,7 +43274,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
43259
43274
  return this.initView();
43260
43275
  case 6:
43261
43276
  this.subscribeToWebPlannerEvents();
43262
- (_this$actions15 = this.actions) === null || _this$actions15 === void 0 || (_this$actions15$toggl = _this$actions15.toggleLoading) === null || _this$actions15$toggl === void 0 || _this$actions15$toggl.call(_this$actions15, 'Planner_Loading', false, false);
43277
+ (_this$actions16 = this.actions) === null || _this$actions16 === void 0 || (_this$actions16$toggl = _this$actions16.toggleLoading) === null || _this$actions16$toggl === void 0 || _this$actions16$toggl.call(_this$actions16, 'Planner_Loading', false, false);
43263
43278
  return _context15.abrupt("return", true);
43264
43279
  case 9:
43265
43280
  this.divaNr = this.divaBasketHandler.actDivaNr;
@@ -43294,11 +43309,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
43294
43309
  _context15.next = 28;
43295
43310
  return this.initView();
43296
43311
  case 28:
43297
- (_this$actions16 = this.actions) === null || _this$actions16 === void 0 || _this$actions16.onEvent({
43312
+ (_this$actions17 = this.actions) === null || _this$actions17 === void 0 || _this$actions17.onEvent({
43298
43313
  type: 'onConfiguratorReady'
43299
43314
  });
43300
43315
  if (Object.keys((_set$getDivaArticles = set === null || set === void 0 ? void 0 : set.getDivaArticles()) !== null && _set$getDivaArticles !== void 0 ? _set$getDivaArticles : {}).length) {
43301
- (_this$actions17 = this.actions) === null || _this$actions17 === void 0 || _this$actions17.onEvent({
43316
+ (_this$actions18 = this.actions) === null || _this$actions18 === void 0 || _this$actions18.onEvent({
43302
43317
  type: 'onArticleInitialized'
43303
43318
  });
43304
43319
  }
@@ -43388,13 +43403,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
43388
43403
  key: "onInitializationError",
43389
43404
  value: function onInitializationError(e) {
43390
43405
  var _e$message,
43391
- _this$actions18,
43406
+ _this$actions19,
43392
43407
  _this$state2,
43393
43408
  _this2 = this,
43394
- _this$actions20,
43395
- _this$actions20$toggl;
43409
+ _this$actions21,
43410
+ _this$actions21$toggl;
43396
43411
  var onErrorHandling = this.api.onErrorHandling();
43397
- if (e !== null && e !== void 0 && (_e$message = e.message) !== null && _e$message !== void 0 && _e$message.startsWith('No ConfiguratorStep was generated') && (_this$actions18 = this.actions) !== null && _this$actions18 !== void 0 && _this$actions18.openModal) {
43412
+ if (e !== null && e !== void 0 && (_e$message = e.message) !== null && _e$message !== void 0 && _e$message.startsWith('No ConfiguratorStep was generated') && (_this$actions19 = this.actions) !== null && _this$actions19 !== void 0 && _this$actions19.openModal) {
43398
43413
  var _this$i18n4, _this$i18n5;
43399
43414
  this.actions.openModal({
43400
43415
  title: (_this$i18n4 = this.i18n) === null || _this$i18n4 === void 0 || (_this$i18n4 = _this$i18n4.call(this)) === null || _this$i18n4 === void 0 ? void 0 : _this$i18n4.t('configurator.error.no_planning'),
@@ -43405,8 +43420,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
43405
43420
  return;
43406
43421
  }
43407
43422
  if ((_this$state2 = this.state) !== null && _this$state2 !== void 0 && _this$state2.isFullscreenComponent) {
43408
- var _this$actions19;
43409
- (_this$actions19 = this.actions) === null || _this$actions19 === void 0 || _this$actions19.closeComponentInFullscreen();
43423
+ var _this$actions20;
43424
+ (_this$actions20 = this.actions) === null || _this$actions20 === void 0 || _this$actions20.closeComponentInFullscreen();
43410
43425
  return;
43411
43426
  }
43412
43427
  if (onErrorHandling) {
@@ -43455,7 +43470,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
43455
43470
  });
43456
43471
  }
43457
43472
  }
43458
- (_this$actions20 = this.actions) === null || _this$actions20 === void 0 || (_this$actions20$toggl = _this$actions20.toggleLoading) === null || _this$actions20$toggl === void 0 || _this$actions20$toggl.call(_this$actions20, 'Planner_Loading', false, false);
43473
+ (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || (_this$actions21$toggl = _this$actions21.toggleLoading) === null || _this$actions21$toggl === void 0 || _this$actions21$toggl.call(_this$actions21, 'Planner_Loading', false, false);
43459
43474
  }
43460
43475
  }, {
43461
43476
  key: "getDivaArticles",
@@ -44102,8 +44117,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44102
44117
  }, {
44103
44118
  key: "changeOnFavorites",
44104
44119
  value: function changeOnFavorites(opt, opvs, targetArticles, remove) {
44105
- var _this$actions21;
44106
- favoritesHandlerInstance.changeOnFavorites(this.actSet(), opt, opvs, targetArticles, remove, (_this$actions21 = this.actions) === null || _this$actions21 === void 0 ? void 0 : _this$actions21.openModal);
44120
+ var _this$actions22;
44121
+ favoritesHandlerInstance.changeOnFavorites(this.actSet(), opt, opvs, targetArticles, remove, (_this$actions22 = this.actions) === null || _this$actions22 === void 0 ? void 0 : _this$actions22.openModal);
44107
44122
  }
44108
44123
  }, {
44109
44124
  key: "setDifferentOptions",
@@ -44173,8 +44188,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44173
44188
  }, {
44174
44189
  key: "showModal",
44175
44190
  value: function showModal(data) {
44176
- var _this$actions22;
44177
- (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.openModal(data);
44191
+ var _this$actions23;
44192
+ (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.openModal(data);
44178
44193
  }
44179
44194
  }, {
44180
44195
  key: "logGA",
@@ -44193,25 +44208,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44193
44208
  }, {
44194
44209
  key: "callEvent",
44195
44210
  value: function callEvent(event, param) {
44196
- var _this$actions23, _this$actions24, _this$actions25, _this$actions26;
44211
+ var _this$actions24, _this$actions25, _this$actions26, _this$actions27;
44197
44212
  switch (event) {
44198
44213
  case 'onFullscreenClose':
44199
- (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
44214
+ (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
44200
44215
  type: 'onFullscreenClose'
44201
44216
  });
44202
44217
  break;
44203
44218
  case 'onWebPlanerClose':
44204
- (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
44219
+ (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
44205
44220
  type: 'onWebPlanerClose'
44206
44221
  });
44207
44222
  break;
44208
44223
  case 'onWebPlanerHelp':
44209
- (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
44224
+ (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
44210
44225
  type: 'onWebPlanerHelp'
44211
44226
  });
44212
44227
  break;
44213
44228
  case 'onWebPlanerZoomClick':
44214
- (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
44229
+ (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || _this$actions27.onEvent({
44215
44230
  type: 'onWebPlanerZoomClick',
44216
44231
  data: param
44217
44232
  });
@@ -44222,14 +44237,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44222
44237
  key: "saveToBasketWrapper",
44223
44238
  value: function () {
44224
44239
  var _saveToBasketWrapper = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, returnToParam) {
44225
- var _this$actions28,
44226
- _this$actions28$toggl,
44227
- _this$actions29,
44240
+ var _this$actions29,
44228
44241
  _this$actions29$toggl,
44242
+ _this$actions30,
44243
+ _this$actions30$toggl,
44229
44244
  _this3 = this,
44230
- _this$actions33,
44245
+ _this$actions34,
44231
44246
  _this$i18n16;
44232
- var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet10, url, _result, _this$actions27, result, _this$actions30, _this$i18n10, _this$i18n11, _this$actions31, _this$i18n12, _this$i18n13, _this$actions32, _this$i18n14, _this$i18n15, _this$updatePlannerMs2;
44247
+ var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet10, url, _result, _this$actions28, result, _this$actions31, _this$i18n10, _this$i18n11, _this$actions32, _this$i18n12, _this$i18n13, _this$actions33, _this$i18n14, _this$i18n15, _this$updatePlannerMs2;
44233
44248
  return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
44234
44249
  while (1) switch (_context26.prev = _context26.next) {
44235
44250
  case 0:
@@ -44268,25 +44283,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44268
44283
  _context26.next = 20;
44269
44284
  break;
44270
44285
  }
44271
- (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || _this$actions27.onEvent({
44286
+ (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.onEvent({
44272
44287
  type: finalEvent.event
44273
44288
  });
44274
44289
  return _context26.abrupt("return", 'canceled');
44275
44290
  case 20:
44276
44291
  returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
44277
44292
  case 21:
44278
- (_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);
44293
+ (_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);
44279
44294
  _context26.next = 24;
44280
44295
  return this.saveToBasket(returnTo, finalEvent.event, repairOnly);
44281
44296
  case 24:
44282
44297
  result = _context26.sent;
44283
- (_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);
44298
+ (_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);
44284
44299
  if (!(result === 'canceled')) {
44285
44300
  _context26.next = 30;
44286
44301
  break;
44287
44302
  }
44288
44303
  LOG$1.error(new DivaUtils.DivaError('failed to save Basket'));
44289
- (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
44304
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
44290
44305
  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() : '',
44291
44306
  accept: true
44292
44307
  });
@@ -44300,12 +44315,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44300
44315
  LOG$1.error(new DivaUtils.DivaError('PDF url is missing in basket', {
44301
44316
  code: 'WC_0010'
44302
44317
  }));
44303
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
44318
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
44304
44319
  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() : '',
44305
44320
  accept: true
44306
44321
  });
44307
44322
  } else {
44308
- (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
44323
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openModal({
44309
44324
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t(this.divaBasketHandler.actBasket.Status === 'ORDER' ? 'modal.open_order_pdf_now' : 'modal.open_leaflet_pdf_now'),
44310
44325
  accept: (_this$i18n15 = this.i18n()) === null || _this$i18n15 === void 0 ? void 0 : _this$i18n15.t('modals.open_now'),
44311
44326
  callback: function callback() {
@@ -44315,7 +44330,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44315
44330
  }
44316
44331
  return _context26.abrupt("break", 36);
44317
44332
  case 35:
44318
- (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openModal({
44333
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openModal({
44319
44334
  text: (_this$i18n16 = this.i18n()) === null || _this$i18n16 === void 0 ? void 0 : _this$i18n16.t('modal.planning_saved'),
44320
44335
  accept: true
44321
44336
  });
@@ -44343,7 +44358,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44343
44358
  key: "saveToBasket",
44344
44359
  value: function () {
44345
44360
  var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee27(returnTo, event, repairOnly) {
44346
- var _returnTo, _returnTo2, _returnTo3, _this$actions34, _this$actions35, _this$actions36, _this$divaBasketHandl2;
44361
+ var _returnTo, _returnTo2, _returnTo3, _this$actions35, _this$actions36, _this$actions37, _this$divaBasketHandl2;
44347
44362
  var set, actBasket, oldReturnTo, result, newDivaNr, _result2, product;
44348
44363
  return _regeneratorRuntime__default["default"].wrap(function _callee27$(_context27) {
44349
44364
  while (1) switch (_context27.prev = _context27.next) {
@@ -44399,8 +44414,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44399
44414
  _context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 27 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 30 : _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 : 51;
44400
44415
  break;
44401
44416
  case 27:
44402
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.toggleLoading('buildScene', false, false);
44403
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
44417
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.toggleLoading('buildScene', false, false);
44418
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.openComponent({
44404
44419
  type: 'SELLER',
44405
44420
  parameters: {
44406
44421
  module: 'PCreator',
@@ -44412,7 +44427,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44412
44427
  });
44413
44428
  return _context27.abrupt("break", 51);
44414
44429
  case 30:
44415
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.openComponent({
44430
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.openComponent({
44416
44431
  type: 'SELLER',
44417
44432
  parameters: {
44418
44433
  module: 'Basket',
@@ -44766,18 +44781,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44766
44781
  key: "addToBasket",
44767
44782
  value: function () {
44768
44783
  var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee29(actBasket) {
44769
- var _this$actions37,
44770
- _this$actions38,
44784
+ var _this$actions38,
44771
44785
  _this$actions39,
44772
44786
  _this$actions40,
44773
44787
  _this$actions41,
44788
+ _this$actions42,
44774
44789
  _this$divaBasketHandl4,
44775
44790
  _this4 = this,
44776
- _this$actions42,
44777
44791
  _this$actions43,
44778
44792
  _this$actions44,
44779
44793
  _this$actions45,
44780
- _this$actions46;
44794
+ _this$actions46,
44795
+ _this$actions47;
44781
44796
  var event,
44782
44797
  emailConfig,
44783
44798
  _emailConfig$to$split,
@@ -44794,31 +44809,31 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44794
44809
  _context29.next = _context29.t0 === 'onWebPlanerPrint' ? 5 : _context29.t0 === 'onWebPlanerSave' ? 7 : _context29.t0 === 'onWebPlanerShare' ? 9 : _context29.t0 === 'onRequestConsulation' ? 11 : _context29.t0 === 'onSave' ? 13 : _context29.t0 === 'onSendEmail' ? 15 : _context29.t0 === 'onSaveProduct' ? 20 : _context29.t0 === 'dontSaveBasket' ? 27 : _context29.t0 === 'onAddToBasket' ? 28 : _context29.t0 === 'onSendContactForm' ? 30 : 33;
44795
44810
  break;
44796
44811
  case 5:
44797
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
44812
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
44798
44813
  type: 'onWebPlanerPrint',
44799
44814
  data: actBasket.getAsJson()
44800
44815
  });
44801
44816
  return _context29.abrupt("break", 35);
44802
44817
  case 7:
44803
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
44818
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
44804
44819
  type: 'onWebPlanerSave',
44805
44820
  data: actBasket.getAsJson()
44806
44821
  });
44807
44822
  return _context29.abrupt("break", 35);
44808
44823
  case 9:
44809
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
44824
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
44810
44825
  type: 'onWebPlanerShare',
44811
44826
  data: actBasket.getAsJson()
44812
44827
  });
44813
44828
  return _context29.abrupt("break", 35);
44814
44829
  case 11:
44815
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
44830
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
44816
44831
  type: 'onRequestConsulation',
44817
44832
  data: actBasket.getAsJson()
44818
44833
  });
44819
44834
  return _context29.abrupt("break", 35);
44820
44835
  case 13:
44821
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
44836
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
44822
44837
  type: 'onSave',
44823
44838
  data: actBasket.getAsJson()
44824
44839
  });
@@ -44853,7 +44868,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44853
44868
  });
44854
44869
  });
44855
44870
  }
44856
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
44871
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
44857
44872
  type: 'onAddToBasket',
44858
44873
  data: actBasket.getAsJson()
44859
44874
  });
@@ -44864,7 +44879,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44864
44879
  return this.api.saveAsProduct(this.sets, actBasket);
44865
44880
  case 23:
44866
44881
  products = _context29.sent;
44867
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
44882
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
44868
44883
  type: 'onAddToBasket',
44869
44884
  data: actBasket.getAsJson()
44870
44885
  });
@@ -44875,20 +44890,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44875
44890
  return _context29.abrupt("return", products[0]);
44876
44891
  case 27:
44877
44892
  case 28:
44878
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
44893
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
44879
44894
  type: 'onAddToBasket',
44880
44895
  data: actBasket.getAsJson()
44881
44896
  });
44882
44897
  return _context29.abrupt("break", 35);
44883
44898
  case 30:
44884
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
44899
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.onEvent({
44885
44900
  type: 'onAddToBasket',
44886
44901
  data: actBasket.getAsJson()
44887
44902
  });
44888
44903
  this.openContactForm(this.divaBasketHandler);
44889
44904
  return _context29.abrupt("break", 35);
44890
44905
  case 33:
44891
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.onEvent({
44906
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.onEvent({
44892
44907
  type: event,
44893
44908
  data: actBasket.getAsJson()
44894
44909
  });
@@ -44909,8 +44924,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44909
44924
  }, {
44910
44925
  key: "openPDFpostAsEvent",
44911
44926
  value: function openPDFpostAsEvent(mongoDBId) {
44912
- var _this$actions47, _this$actions48, _this$actions49;
44913
- (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.updateBreadcrumbs({
44927
+ var _this$actions48, _this$actions49, _this$actions50;
44928
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.updateBreadcrumbs({
44914
44929
  type: 'update',
44915
44930
  param: {
44916
44931
  groupId: 'SHOWROOM',
@@ -44924,7 +44939,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44924
44939
  }
44925
44940
  }
44926
44941
  });
44927
- (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.updateBreadcrumbs({
44942
+ (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.updateBreadcrumbs({
44928
44943
  type: 'update',
44929
44944
  param: {
44930
44945
  groupId: 'SHOWROOM',
@@ -44938,7 +44953,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44938
44953
  }
44939
44954
  }
44940
44955
  });
44941
- (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.openComponent({
44956
+ (_this$actions50 = this.actions) === null || _this$actions50 === void 0 || _this$actions50.openComponent({
44942
44957
  type: 'REPORT',
44943
44958
  parameters: {
44944
44959
  id: mongoDBId
@@ -45163,14 +45178,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45163
45178
  }, {
45164
45179
  key: "subscribeToWebPlannerEvents",
45165
45180
  value: function subscribeToWebPlannerEvents() {
45166
- var _this$actions50;
45167
- (_this$actions50 = this.actions) === null || _this$actions50 === void 0 || _this$actions50.subscribeEvents(this.addToBasketEventFunction);
45181
+ var _this$actions51;
45182
+ (_this$actions51 = this.actions) === null || _this$actions51 === void 0 || _this$actions51.subscribeEvents(this.addToBasketEventFunction);
45168
45183
  }
45169
45184
  }, {
45170
45185
  key: "unsubscribeFromWebPlannerEvents",
45171
45186
  value: function unsubscribeFromWebPlannerEvents() {
45172
- var _this$actions51;
45173
- (_this$actions51 = this.actions) === null || _this$actions51 === void 0 || _this$actions51.unSubscribeEvents(this.addToBasketEventFunction);
45187
+ var _this$actions52;
45188
+ (_this$actions52 = this.actions) === null || _this$actions52 === void 0 || _this$actions52.unSubscribeEvents(this.addToBasketEventFunction);
45174
45189
  }
45175
45190
  }, {
45176
45191
  key: "initApiForLogicOnly",
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-0bcfafc8.js');
5
+ var index = require('./index-c793234a.js');
6
6
  require('@babel/runtime/helpers/slicedToArray');
7
7
  require('@babel/runtime/helpers/asyncToGenerator');
8
8
  require('@babel/runtime/helpers/classCallCheck');
@@ -3,10 +3,10 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
3
  import _createClass from '@babel/runtime/helpers/createClass';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
5
  import _regeneratorRuntime from '@babel/runtime/regenerator';
6
- import { c as Vector2, V as Vector3, B as BoundingBox } from './index-bfed1140.js';
6
+ import { c as Vector2, V as Vector3, B as BoundingBox } from './index-336e44e8.js';
7
7
  import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
8
8
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
9
- import { d as dockingPointHandlerInst, P as PlannerElementData, h as handler2D } from './PlannerHandler2D-a0835889.js';
9
+ import { d as dockingPointHandlerInst, P as PlannerElementData, h as handler2D } from './PlannerHandler2D-aa8d1958.js';
10
10
  import '@babel/runtime/helpers/slicedToArray';
11
11
  import '@babel/runtime/helpers/objectWithoutProperties';
12
12
  import 'axios';
@@ -3,8 +3,8 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
3
  import _createClass from '@babel/runtime/helpers/createClass';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
5
  import _regeneratorRuntime from '@babel/runtime/regenerator';
6
- import { V as Vector3, c as Vector2, B as BoundingBox } from './index-bfed1140.js';
7
- import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-a0835889.js';
6
+ import { V as Vector3, c as Vector2, B as BoundingBox } from './index-336e44e8.js';
7
+ import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-aa8d1958.js';
8
8
  import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
9
9
  import '@babel/runtime/helpers/slicedToArray';
10
10
  import '@babel/runtime/helpers/objectWithoutProperties';
@@ -1,7 +1,7 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
3
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
4
- import './index-bfed1140.js';
4
+ import './index-336e44e8.js';
5
5
  import DivaUtils from '@crystaldesign/diva-utils';
6
6
  import '@babel/runtime/helpers/slicedToArray';
7
7
  import '@babel/runtime/helpers/asyncToGenerator';
@@ -3,7 +3,7 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
3
  import _createClass from '@babel/runtime/helpers/createClass';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
5
  import _regeneratorRuntime from '@babel/runtime/regenerator';
6
- import { R as Rendering, H as HQRenderScript } from './index-bfed1140.js';
6
+ import { R as Rendering, H as HQRenderScript } from './index-336e44e8.js';
7
7
  import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
8
8
  import { HubConnectionBuilder, LogLevel } from '@microsoft/signalr';
9
9
  import io from 'socket.io-client';
@@ -1,6 +1,6 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
- import './index-bfed1140.js';
3
+ import './index-336e44e8.js';
4
4
  import '@babel/runtime/helpers/slicedToArray';
5
5
  import '@babel/runtime/helpers/asyncToGenerator';
6
6
  import '@babel/runtime/helpers/defineProperty';