@crystaldesign/web-planner-logic 24.12.0-rc.9 → 24.12.1

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 (28) hide show
  1. package/build/cjs/{DivaBoxPlanner-b7e55e06.js → DivaBoxPlanner-303a552b.js} +318 -317
  2. package/build/cjs/{DivaStandardPlanner-ea3f2bef.js → DivaStandardPlanner-2f994125.js} +82 -82
  3. package/build/cjs/{DoorPlanner-d413201e.js → DoorPlanner-1faa1593.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-32992efe.js → Host3DSignalR-a9bc4c70.js} +53 -53
  5. package/build/cjs/{LiviqueWWSHandler-f836a820.js → LiviqueWWSHandler-e9462b37.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-dda11a4f.js → PfisterWWSHandler-65b5992f.js} +6 -6
  7. package/build/cjs/{PlannerHandler2D-8d7f9d8f.js → PlannerHandler2D-9ce74b8c.js} +189 -189
  8. package/build/cjs/{SeriousBasketHandler-c93a6fdb.js → SeriousBasketHandler-c0d4f0f5.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-525f4f29.js → ShelfPlanner-642594d4.js} +86 -86
  10. package/build/cjs/{StandardWWSHandler-d46d5952.js → StandardWWSHandler-c7833d13.js} +1 -1
  11. package/build/cjs/{index-6e62b4f0.js → index-530d9304.js} +722 -692
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-f2e768dd.js → DivaBoxPlanner-0748b14a.js} +318 -317
  14. package/build/esm/{DivaStandardPlanner-d1899ff9.js → DivaStandardPlanner-2c8858b2.js} +82 -82
  15. package/build/esm/{DoorPlanner-6ee992d7.js → DoorPlanner-c640fd24.js} +1 -1
  16. package/build/esm/{Host3DSignalR-f028ca78.js → Host3DSignalR-aa3a4b4d.js} +53 -53
  17. package/build/esm/{LiviqueWWSHandler-bff29a8a.js → LiviqueWWSHandler-8d2570dd.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-e5a11f30.js → PfisterWWSHandler-c046e3ee.js} +6 -6
  19. package/build/esm/{PlannerHandler2D-d4b88e85.js → PlannerHandler2D-844fc811.js} +189 -189
  20. package/build/esm/{SeriousBasketHandler-e152241d.js → SeriousBasketHandler-b8e1b0da.js} +1 -1
  21. package/build/esm/{ShelfPlanner-75bc4ec2.js → ShelfPlanner-f3218c50.js} +86 -86
  22. package/build/esm/{StandardWWSHandler-a918f7f0.js → StandardWWSHandler-a3c5246b.js} +1 -1
  23. package/build/esm/{index-06932812.js → index-3870ea62.js} +722 -692
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  26. package/build/types/web-planner-logic/src/logic/Product/DivaProductHandler.d.ts +5 -0
  27. package/build/types/web-planner-logic/src/logic/Product/DivaProductHandler.d.ts.map +1 -1
  28. package/package.json +2 -2
@@ -15916,9 +15916,9 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
15916
15916
  _mask$properties;
15917
15917
  _classCallCheck(this, OptionValueCatalogData);
15918
15918
  _defineProperty(this, "opv", void 0);
15919
- /**
15920
- * this function mapps the ral colors to color groups for the color filtering
15921
- * @returns
15919
+ /**
15920
+ * this function mapps the ral colors to color groups for the color filtering
15921
+ * @returns
15922
15922
  */
15923
15923
  _defineProperty(this, "mapRALColorToGroup", function () {
15924
15924
  var _this$opv$rals;
@@ -16981,15 +16981,15 @@ var CatalogArticleData = /*#__PURE__*/function () {
16981
16981
  key: "getOPTDefaultInVisible",
16982
16982
  value: function getOPTDefaultInVisible(optionCodex) {
16983
16983
  return this.catalogArticle.articleOptions[optionCodex].isInvisible;
16984
- /*if (this.catalogArticle.articleOptions[optionCodex]) {
16985
- return this.catalogArticle.articleOptions[optionCodex].isInvisible;
16986
- }
16984
+ /*if (this.catalogArticle.articleOptions[optionCodex]) {
16985
+ return this.catalogArticle.articleOptions[optionCodex].isInvisible;
16986
+ }
16987
16987
  return false;*/
16988
16988
  }
16989
16989
 
16990
- /*following functions contain Loadingprocess of the ArticleData recived by the API. It includes
16991
- loading more specific Articles Information like "articleRelations" && "partListArticles" && "j3D"(for Regalplanner z.B. Jutzler)
16992
- && "articleOptions" && "articleOptionvalues" && "decisions" && "partlistDecisions" && "articlePrices"
16990
+ /*following functions contain Loadingprocess of the ArticleData recived by the API. It includes
16991
+ loading more specific Articles Information like "articleRelations" && "partListArticles" && "j3D"(for Regalplanner z.B. Jutzler)
16992
+ && "articleOptions" && "articleOptionvalues" && "decisions" && "partlistDecisions" && "articlePrices"
16993
16993
  */
16994
16994
  }, {
16995
16995
  key: "initCatalogPlannerArticle",
@@ -17338,10 +17338,10 @@ var Vector2 = /*#__PURE__*/function () {
17338
17338
  return new Vector2(vec1.x + vec2.x, vec1.y + vec2.y);
17339
17339
  }
17340
17340
 
17341
- /**
17342
- * Returns the direction vector from the fromVec to the toVec
17343
- * @param toVec The position the direction is pointing to
17344
- * @param fromVec The source position of the direction
17341
+ /**
17342
+ * Returns the direction vector from the fromVec to the toVec
17343
+ * @param toVec The position the direction is pointing to
17344
+ * @param fromVec The source position of the direction
17345
17345
  */
17346
17346
  }, {
17347
17347
  key: "getDirection",
@@ -17349,10 +17349,10 @@ var Vector2 = /*#__PURE__*/function () {
17349
17349
  return new Vector2(toVec.x - fromVec.x, toVec.y - fromVec.y);
17350
17350
  }
17351
17351
 
17352
- /**
17353
- * This function returns the distance between two Vectors (Eucledian)
17354
- * @param toVec
17355
- * @param fromVec
17352
+ /**
17353
+ * This function returns the distance between two Vectors (Eucledian)
17354
+ * @param toVec
17355
+ * @param fromVec
17356
17356
  */
17357
17357
  }, {
17358
17358
  key: "getDistance",
@@ -17390,10 +17390,10 @@ var Vector2 = /*#__PURE__*/function () {
17390
17390
  return undefined;
17391
17391
  }
17392
17392
 
17393
- /**
17394
- * This function computes the rotation of a vector around the origin of the coordinate system
17395
- * @param vec The position that is rotated
17396
- * @param angleDeg The amount of rotation in degrees
17393
+ /**
17394
+ * This function computes the rotation of a vector around the origin of the coordinate system
17395
+ * @param vec The position that is rotated
17396
+ * @param angleDeg The amount of rotation in degrees
17397
17397
  */
17398
17398
  }, {
17399
17399
  key: "rotateOrigin",
@@ -17405,11 +17405,11 @@ var Vector2 = /*#__PURE__*/function () {
17405
17405
  return result;
17406
17406
  }
17407
17407
 
17408
- /**
17409
- * This function computes the rotation of a vector around a specific rotation point
17410
- * @param vec The position that is rotated
17411
- * @param vecRotCenter The center of the rotation
17412
- * @param angleDeg the amount of rotation in degrees
17408
+ /**
17409
+ * This function computes the rotation of a vector around a specific rotation point
17410
+ * @param vec The position that is rotated
17411
+ * @param vecRotCenter The center of the rotation
17412
+ * @param angleDeg the amount of rotation in degrees
17413
17413
  */
17414
17414
  }, {
17415
17415
  key: "rotateAround",
@@ -17425,10 +17425,10 @@ var Vector2 = /*#__PURE__*/function () {
17425
17425
  return result;
17426
17426
  }
17427
17427
 
17428
- /**
17429
- * Returns the angle between the two vectors in radiants
17430
- * @param vec1
17431
- * @param vec2
17428
+ /**
17429
+ * Returns the angle between the two vectors in radiants
17430
+ * @param vec1
17431
+ * @param vec2
17432
17432
  */
17433
17433
  }, {
17434
17434
  key: "angleRad",
@@ -17437,10 +17437,10 @@ var Vector2 = /*#__PURE__*/function () {
17437
17437
  return Math.acos(dot);
17438
17438
  }
17439
17439
  //
17440
- /**
17441
- *Returns the angle between the two vectors in degrees
17442
- * @param vec1
17443
- * @param vec2
17440
+ /**
17441
+ *Returns the angle between the two vectors in degrees
17442
+ * @param vec1
17443
+ * @param vec2
17444
17444
  */
17445
17445
  }, {
17446
17446
  key: "angleDeg",
@@ -18113,8 +18113,8 @@ function ownKeys$e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
18113
18113
  function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
18114
18114
  var LOG$e = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
18115
18115
 
18116
- /*
18117
- Diese KLasse enthält Inforamtion zu einem Catalog (C)
18116
+ /*
18117
+ Diese KLasse enthält Inforamtion zu einem Catalog (C)
18118
18118
  */
18119
18119
  var DivaCatalogData = /*#__PURE__*/function () {
18120
18120
  function DivaCatalogData(json, orderSet, api, additionalModelInfos) {
@@ -21348,8 +21348,8 @@ var DivaArticle = /*#__PURE__*/function () {
21348
21348
  this.article.doorPlannerData = val;
21349
21349
  }
21350
21350
 
21351
- /**
21352
- * return the neighbour on AVR or AVL
21351
+ /**
21352
+ * return the neighbour on AVR or AVL
21353
21353
  */
21354
21354
  }, {
21355
21355
  key: "j3D",
@@ -21878,8 +21878,8 @@ var DivaArticle = /*#__PURE__*/function () {
21878
21878
  }
21879
21879
  return options;
21880
21880
  }
21881
- /**
21882
- * If a Accessoire with SVG is not dockable it should still be loaded as an article but not planned and visualized
21881
+ /**
21882
+ * If a Accessoire with SVG is not dockable it should still be loaded as an article but not planned and visualized
21883
21883
  */
21884
21884
  }, {
21885
21885
  key: "doNotDeleteAccWhenNotDocked",
@@ -21989,10 +21989,10 @@ var DivaArticle = /*#__PURE__*/function () {
21989
21989
  }, {
21990
21990
  key: "checkDefaultGlobalOpt",
21991
21991
  value: function checkDefaultGlobalOpt(optToChange, ignoreOPVIsValid) {
21992
- /*
21993
- This function checks if the option that should be changed is a global option, that influenced other options.
21994
- If a option To Influence is found, the function checks if the new OPV is valid for this option. If not a warning is printed. If it is valued the option to influence is changed as well.
21995
- If the option to influence (eg. OPTBE of Kopfteil) is not configured yet, the optionvalue is set as a default.
21992
+ /*
21993
+ This function checks if the option that should be changed is a global option, that influenced other options.
21994
+ If a option To Influence is found, the function checks if the new OPV is valid for this option. If not a warning is printed. If it is valued the option to influence is changed as well.
21995
+ If the option to influence (eg. OPTBE of Kopfteil) is not configured yet, the optionvalue is set as a default.
21996
21996
  */
21997
21997
  var actArticleOptionState = this.articleOptionStates;
21998
21998
  //Schauen ob andere Optionen auf gesetzt werden müssen
@@ -23325,8 +23325,8 @@ var DivaArticle = /*#__PURE__*/function () {
23325
23325
  }
23326
23326
  }
23327
23327
 
23328
- /**
23329
- * @deprecated
23328
+ /**
23329
+ * @deprecated
23330
23330
  */
23331
23331
  }, {
23332
23332
  key: "evalType2Decisions",
@@ -23420,8 +23420,8 @@ var DivaArticle = /*#__PURE__*/function () {
23420
23420
  }
23421
23421
  }
23422
23422
 
23423
- /**
23424
- * @deprecated
23423
+ /**
23424
+ * @deprecated
23425
23425
  */
23426
23426
  }, {
23427
23427
  key: "checkDisableDecision",
@@ -23584,7 +23584,7 @@ var DivaArticle = /*#__PURE__*/function () {
23584
23584
  break;
23585
23585
  }
23586
23586
  _context.next = 4;
23587
- return import('./ShelfPlanner-75bc4ec2.js');
23587
+ return import('./ShelfPlanner-f3218c50.js');
23588
23588
  case 4:
23589
23589
  _yield$import = _context.sent;
23590
23590
  ShelfPlanner = _yield$import["default"];
@@ -24049,8 +24049,8 @@ var DivaArticle = /*#__PURE__*/function () {
24049
24049
  }
24050
24050
  }
24051
24051
  }
24052
- /**
24053
- * this functions updates the images of OPVs that depend on rules
24052
+ /**
24053
+ * this functions updates the images of OPVs that depend on rules
24054
24054
  */
24055
24055
  }, {
24056
24056
  key: "updateOPVImages",
@@ -24078,9 +24078,9 @@ var DivaArticle = /*#__PURE__*/function () {
24078
24078
  }
24079
24079
  }
24080
24080
 
24081
- /**
24082
- * this function calculates an Svg to the current configuration if neccessary (SVG Tausch)
24083
- * if the Article has no SVG Tausch nothing is done
24081
+ /**
24082
+ * this function calculates an Svg to the current configuration if neccessary (SVG Tausch)
24083
+ * if the Article has no SVG Tausch nothing is done
24084
24084
  */
24085
24085
  }, {
24086
24086
  key: "updateArticleSVG",
@@ -24169,8 +24169,8 @@ var DivaArticle = /*#__PURE__*/function () {
24169
24169
  }
24170
24170
  }
24171
24171
 
24172
- /**
24173
- * this function return the config and material info of article. This is used for the planner visualisation
24172
+ /**
24173
+ * this function return the config and material info of article. This is used for the planner visualisation
24174
24174
  */
24175
24175
  }, {
24176
24176
  key: "getPlannerConfigData",
@@ -24314,10 +24314,10 @@ var DivaArticle = /*#__PURE__*/function () {
24314
24314
  }
24315
24315
 
24316
24316
  /********************************************************Artikel speichern*********************************************************/
24317
- /**
24318
- * Diese Funktion liefert zu einem Artikel eine oder mehrere Orderline aus. Diese wird im Basket gespeichert und dient zur wiederherstellung eines Artikels!
24319
- *
24320
- * Des weiteren kann es ZubehörOrderlines geben Optionsbaum aus und generiert daraus evtl. Zubehöroderlines??
24317
+ /**
24318
+ * Diese Funktion liefert zu einem Artikel eine oder mehrere Orderline aus. Diese wird im Basket gespeichert und dient zur wiederherstellung eines Artikels!
24319
+ *
24320
+ * Des weiteren kann es ZubehörOrderlines geben Optionsbaum aus und generiert daraus evtl. Zubehöroderlines??
24321
24321
  */
24322
24322
  }, {
24323
24323
  key: "getVariantBasketData",
@@ -25111,14 +25111,14 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25111
25111
  }
25112
25112
  return setValidVariantValues;
25113
25113
  }()
25114
- /**
25115
- * This function recalcs the configuration the a specific Article considering all the different and complicated rules
25116
- * you can add the newConfigValues to change the configuration. these get set if they are valid and these can influence
25117
- * other depending configvalues
25118
- * this includes the Price and the loaded Partlistarticles
25119
- * @param article specific Article
25120
- * @param newConfigValues newConfigValues to change the configuration
25121
- * @param alreadyInitializedValues these Values are filled when the article gets initialized from for expample a BasisKonfigurat. These are more important then default Values which get init by evalSetFeatureDefaultDecisions.
25114
+ /**
25115
+ * This function recalcs the configuration the a specific Article considering all the different and complicated rules
25116
+ * you can add the newConfigValues to change the configuration. these get set if they are valid and these can influence
25117
+ * other depending configvalues
25118
+ * this includes the Price and the loaded Partlistarticles
25119
+ * @param article specific Article
25120
+ * @param newConfigValues newConfigValues to change the configuration
25121
+ * @param alreadyInitializedValues these Values are filled when the article gets initialized from for expample a BasisKonfigurat. These are more important then default Values which get init by evalSetFeatureDefaultDecisions.
25122
25122
  */
25123
25123
  }, {
25124
25124
  key: "updateCfgValues",
@@ -25821,9 +25821,9 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25821
25821
  return ret;
25822
25822
  }
25823
25823
 
25824
- /**
25825
- * if prices are calculated due to product rabatt it may be possible that due to rounding rest the sum of all the orderlines is not identical to the overwritten productprice
25826
- * for that rounding problematic we calculate the rest and add that to an orderline with price.
25824
+ /**
25825
+ * if prices are calculated due to product rabatt it may be possible that due to rounding rest the sum of all the orderlines is not identical to the overwritten productprice
25826
+ * for that rounding problematic we calculate the rest and add that to an orderline with price.
25827
25827
  */
25828
25828
  }, {
25829
25829
  key: "checkForRoundingError",
@@ -25962,14 +25962,14 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25962
25962
  }
25963
25963
  return returnValue;
25964
25964
  }
25965
- /**
25966
- * This function corrects the partlist based on different rules.
25967
- * Rule bundleRules: Combines multiple partlist articles to a combination of them
25968
- * Rule doChangeRetailArticleNumbers Based on some rule it can happen, that some SAP or ZKAT numbers have to change. All Partlist articles with an origRetailArticleNr get the new one.
25969
- * @param article
25970
- * @param partlistArticlesToLoad
25971
- * @param bundleRules
25972
- * @param doChangeRetailArticleNumbers
25965
+ /**
25966
+ * This function corrects the partlist based on different rules.
25967
+ * Rule bundleRules: Combines multiple partlist articles to a combination of them
25968
+ * Rule doChangeRetailArticleNumbers Based on some rule it can happen, that some SAP or ZKAT numbers have to change. All Partlist articles with an origRetailArticleNr get the new one.
25969
+ * @param article
25970
+ * @param partlistArticlesToLoad
25971
+ * @param bundleRules
25972
+ * @param doChangeRetailArticleNumbers
25973
25973
  */
25974
25974
  }, {
25975
25975
  key: "correctPartlistArticlesByGlobalRules",
@@ -26957,8 +26957,8 @@ var DivaSet = /*#__PURE__*/function () {
26957
26957
  _defineProperty(this, "favoritesChanged", false);
26958
26958
  _defineProperty(this, "setState", void 0);
26959
26959
  _defineProperty(this, "modifiedJ3D", []);
26960
- /**
26961
- * This function is called when the docking of two Elements is changed
26960
+ /**
26961
+ * This function is called when the docking of two Elements is changed
26962
26962
  */
26963
26963
  _defineProperty(this, "onDockingChanged", function (elementId1, elementId2, state, dockType) {
26964
26964
  //Suche beide Artikel.
@@ -27079,7 +27079,7 @@ var DivaSet = /*#__PURE__*/function () {
27079
27079
  if (article) return article.basketId;
27080
27080
  return '';
27081
27081
  });
27082
- /*This function returns the parent Basket Id of an accessoire article. If the article does not exist or the current article is not an accessoire -> return undefined
27082
+ /*This function returns the parent Basket Id of an accessoire article. If the article does not exist or the current article is not an accessoire -> return undefined
27083
27083
  */
27084
27084
  _defineProperty(this, "getParentBasketIdOfElementId", function (elementId) {
27085
27085
  var _article$accessoirePa;
@@ -27445,10 +27445,10 @@ var DivaSet = /*#__PURE__*/function () {
27445
27445
  }
27446
27446
  return setPrice;
27447
27447
  }
27448
- /**
27449
- *
27450
- * @param discoultOnly ignore usecase for "verschönerter" price
27451
- * @returns
27448
+ /**
27449
+ *
27450
+ * @param discoultOnly ignore usecase for "verschönerter" price
27451
+ * @returns
27452
27452
  */
27453
27453
  }, {
27454
27454
  key: "getBruttoSetPrice",
@@ -27469,9 +27469,9 @@ var DivaSet = /*#__PURE__*/function () {
27469
27469
  return undefined;
27470
27470
  }
27471
27471
 
27472
- /**
27473
- * This function returns the currency of one catalog. it runs through all articles and if one has set a currency, then it is used for the whole set
27474
- * @returns
27472
+ /**
27473
+ * This function returns the currency of one catalog. it runs through all articles and if one has set a currency, then it is used for the whole set
27474
+ * @returns
27475
27475
  */
27476
27476
  }, {
27477
27477
  key: "getSetPriceFormat",
@@ -27515,10 +27515,10 @@ var DivaSet = /*#__PURE__*/function () {
27515
27515
  }
27516
27516
  return (_this$setState$config = this.setState.configuratorTitle) !== null && _this$setState$config !== void 0 ? _this$setState$config : this.getSetName();
27517
27517
  }
27518
- /**
27519
- * This function returns the base parent article of an accessoire. It runs through a chain of accessoires recursively.
27520
- * If the current article is no Accessoire the function returns himself.
27521
- * @param accBasketId BasketID of the accessoire article
27518
+ /**
27519
+ * This function returns the base parent article of an accessoire. It runs through a chain of accessoires recursively.
27520
+ * If the current article is no Accessoire the function returns himself.
27521
+ * @param accBasketId BasketID of the accessoire article
27522
27522
  */
27523
27523
  }, {
27524
27524
  key: "getBaseParentArticleOfAccessoire",
@@ -27850,8 +27850,8 @@ var DivaSet = /*#__PURE__*/function () {
27850
27850
  }
27851
27851
  return ret;
27852
27852
  }
27853
- /**
27854
- * return text thats added to the end of the setName depending on predefined options and their selection (For example Headboards at bed modells)
27853
+ /**
27854
+ * return text thats added to the end of the setName depending on predefined options and their selection (For example Headboards at bed modells)
27855
27855
  */
27856
27856
  }, {
27857
27857
  key: "ProductSetName",
@@ -28117,7 +28117,7 @@ var DivaSet = /*#__PURE__*/function () {
28117
28117
  break;
28118
28118
  }
28119
28119
  _context4.next = 3;
28120
- return import('./DoorPlanner-6ee992d7.js');
28120
+ return import('./DoorPlanner-c640fd24.js');
28121
28121
  case 3:
28122
28122
  _yield$import = _context4.sent;
28123
28123
  DoorPlanner = _yield$import["default"];
@@ -28191,9 +28191,9 @@ var DivaSet = /*#__PURE__*/function () {
28191
28191
  this._onlyCalcVariants = val;
28192
28192
  }
28193
28193
 
28194
- /**
28195
- *
28196
- * @returns
28194
+ /**
28195
+ *
28196
+ * @returns
28197
28197
  */
28198
28198
  }, {
28199
28199
  key: "getCurrentDisountPercentage",
@@ -28220,9 +28220,9 @@ var DivaSet = /*#__PURE__*/function () {
28220
28220
  this._oldConfigVariants = oldConfigVariants;
28221
28221
  }
28222
28222
 
28223
- /**
28224
- * This function returns true when the current Set has a list of static rooms.
28225
- * This is only the case if the currently loaded catalog in the actSet has a list of rooms and if the configurator itself can display a roomlist
28223
+ /**
28224
+ * This function returns true when the current Set has a list of static rooms.
28225
+ * This is only the case if the currently loaded catalog in the actSet has a list of rooms and if the configurator itself can display a roomlist
28226
28226
  */
28227
28227
  }, {
28228
28228
  key: "hasStaticRoomList",
@@ -29481,10 +29481,10 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29481
29481
  }
29482
29482
  }
29483
29483
 
29484
- /**
29485
- * this function checks for the usecase when the user tries to select different opvs at the same option for different elements
29486
- * This functionality is not supported for an option to have different variants depending on the element
29487
- * @returns true if the described usecase is really the case
29484
+ /**
29485
+ * this function checks for the usecase when the user tries to select different opvs at the same option for different elements
29486
+ * This functionality is not supported for an option to have different variants depending on the element
29487
+ * @returns true if the described usecase is really the case
29488
29488
  */
29489
29489
  }, {
29490
29490
  key: "checkForInvalidSelection",
@@ -30576,10 +30576,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30576
30576
  }
30577
30577
  return false;
30578
30578
  }
30579
- /**
30580
- * diese Funktion überprüft bei der öffnung eines Baskets ob ConfigSingle true sein soll. Dies is abhängig davon ob es eine Option gib mit
30581
- * headerPosVariationType == "K" wo die selektierten OptionValueCodex sich unterhalb der Artikel unterscheiden
30582
- * @param optionStatesOfArticles Konfiguration der Artikel
30579
+ /**
30580
+ * diese Funktion überprüft bei der öffnung eines Baskets ob ConfigSingle true sein soll. Dies is abhängig davon ob es eine Option gib mit
30581
+ * headerPosVariationType == "K" wo die selektierten OptionValueCodex sich unterhalb der Artikel unterscheiden
30582
+ * @param optionStatesOfArticles Konfiguration der Artikel
30583
30583
  */
30584
30584
  }, {
30585
30585
  key: "checkIfLoadedArticlesAreConfigSingle",
@@ -30758,6 +30758,34 @@ var DivaProductHandler = /*#__PURE__*/function () {
30758
30758
  }
30759
30759
  return updateProducts;
30760
30760
  }()
30761
+ }, {
30762
+ key: "getBestMatch",
30763
+ value: function getBestMatch(articles, products) {
30764
+ var OPTION_CODEX = 'KOPFTEIL';
30765
+ if (!articles) return;
30766
+ for (var key in articles) {
30767
+ var _article$VariantValue;
30768
+ var article = articles[key];
30769
+ var opv = (_article$VariantValue = article.VariantValues['OPT' + OPTION_CODEX]) === null || _article$VariantValue === void 0 ? void 0 : _article$VariantValue.replace('OPV', '');
30770
+ if (!products || !opv) continue;
30771
+ for (var i = 0; i < products.length; i++) {
30772
+ var _products$i$affiliate;
30773
+ if ((_products$i$affiliate = products[i].affiliate) !== null && _products$i$affiliate !== void 0 && _products$i$affiliate.length) if (this.findOPVCodexInVariantValues(products[i], OPTION_CODEX, opv)) {
30774
+ return products[i];
30775
+ }
30776
+ }
30777
+ }
30778
+ return undefined;
30779
+ }
30780
+ }, {
30781
+ key: "findOPVCodexInVariantValues",
30782
+ value: function findOPVCodexInVariantValues(product, opt, opv) {
30783
+ return product.articles.find(function (article) {
30784
+ return article.variantValues.find(function (variant) {
30785
+ return variant.OPT === opt && variant.OPV === opv;
30786
+ });
30787
+ });
30788
+ }
30761
30789
  }]);
30762
30790
  }();
30763
30791
  var productHandlerInstance = new DivaProductHandler();
@@ -30766,12 +30794,12 @@ function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
30766
30794
  function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30767
30795
  var LOG$8 = DivaUtils.initLog('Planner', 'DIVA-SET-HANDLER');
30768
30796
 
30769
- /*
30770
- Diese Klasse speichert alle Sets, die in einer Planung sind
30771
- WICHTIG: jedes Set kann einen anderen Katalog haben
30772
-
30773
- Hier wird auch der PlannerHandler Initialisiert
30774
- Der SetHandler bekommt alle Events die auch für den PLannerHandler bestimmt sind
30797
+ /*
30798
+ Diese Klasse speichert alle Sets, die in einer Planung sind
30799
+ WICHTIG: jedes Set kann einen anderen Katalog haben
30800
+
30801
+ Hier wird auch der PlannerHandler Initialisiert
30802
+ Der SetHandler bekommt alle Events die auch für den PLannerHandler bestimmt sind
30775
30803
  */
30776
30804
  var DivaSetHandler = /*#__PURE__*/function () {
30777
30805
  function DivaSetHandler() {
@@ -31157,11 +31185,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
31157
31185
  return orderSets.length === index + 1 && orderSets[index].OrderLines.length != 0 || !!orderSets[index + 1] && orderSets[index + 1].OrderLines.length === 0;
31158
31186
  }
31159
31187
 
31160
- /**
31161
- * When loading a product, the relative position of the whole set should be in the origin.
31162
- * When a product was saved with position information in the world, the values are corrected here
31163
- * @param orderSets
31164
- * @returns
31188
+ /**
31189
+ * When loading a product, the relative position of the whole set should be in the origin.
31190
+ * When a product was saved with position information in the world, the values are corrected here
31191
+ * @param orderSets
31192
+ * @returns
31165
31193
  */
31166
31194
  }, {
31167
31195
  key: "correctPivotPosInOrderSets",
@@ -31277,9 +31305,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
31277
31305
  }
31278
31306
  return initSet;
31279
31307
  }()
31280
- /**
31281
- * This function destroyes the plannerHandler of the actSet. For Setplanner. Eventuell von alle sets zerstören - je nach use case
31282
- * @param doDestroy3DHostConnection Do clear 3D host connection and clear render Cache
31308
+ /**
31309
+ * This function destroyes the plannerHandler of the actSet. For Setplanner. Eventuell von alle sets zerstören - je nach use case
31310
+ * @param doDestroy3DHostConnection Do clear 3D host connection and clear render Cache
31283
31311
  */
31284
31312
  }, {
31285
31313
  key: "destroyPlannerHandler",
@@ -31323,8 +31351,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
31323
31351
  value: function getFirstConfigStep(set) {
31324
31352
  return set.configTree.getFirstConfigStepKey();
31325
31353
  }
31326
- /*
31327
- This function is called when the user clicks on an Element in the ArticlePalette in the PLANNER TAB
31354
+ /*
31355
+ This function is called when the user clicks on an Element in the ArticlePalette in the PLANNER TAB
31328
31356
  */
31329
31357
  }, {
31330
31358
  key: "addPlannerElement",
@@ -31364,15 +31392,15 @@ var DivaSetHandler = /*#__PURE__*/function () {
31364
31392
  }
31365
31393
  return addPlannerElement;
31366
31394
  }()
31367
- /**
31368
- * This function copys an Element. Depending on the planner, copying one element can result in copying multiple elements.
31369
- * It first creates an article for each planner element to copy.
31370
- * Then it adds the Elements to the planner
31371
- * @param setId
31372
- * @param elementId
31373
- * @param copyInfo
31374
- *
31375
- * @returns this function returns the new selected article
31395
+ /**
31396
+ * This function copys an Element. Depending on the planner, copying one element can result in copying multiple elements.
31397
+ * It first creates an article for each planner element to copy.
31398
+ * Then it adds the Elements to the planner
31399
+ * @param setId
31400
+ * @param elementId
31401
+ * @param copyInfo
31402
+ *
31403
+ * @returns this function returns the new selected article
31376
31404
  */
31377
31405
  )
31378
31406
  }, {
@@ -31450,9 +31478,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
31450
31478
  return set.plannerHandler.getAllViewPlannerElements();
31451
31479
  }
31452
31480
 
31453
- /**
31454
- * This function returns all planner elements that do not have an SVG and are an Accessoire of another element. They are visualized in the 3D Client and sent as single elements.
31455
- * @returns
31481
+ /**
31482
+ * This function returns all planner elements that do not have an SVG and are an Accessoire of another element. They are visualized in the 3D Client and sent as single elements.
31483
+ * @returns
31456
31484
  */
31457
31485
  }, {
31458
31486
  key: "getAllVisualiedNotPlannedElements",
@@ -31486,9 +31514,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
31486
31514
  return set.plannerHandler.get2DViewPlannerBoundingBox();
31487
31515
  }
31488
31516
 
31489
- /**
31490
- * This function copys one Article by elementId. It creates a new article with the same attributes as the original and returns it
31491
- * @param elementId
31517
+ /**
31518
+ * This function copys one Article by elementId. It creates a new article with the same attributes as the original and returns it
31519
+ * @param elementId
31492
31520
  */
31493
31521
  }, {
31494
31522
  key: "copyArticleByElementId",
@@ -32269,12 +32297,12 @@ var DivaSetHandler = /*#__PURE__*/function () {
32269
32297
  }
32270
32298
  return deleteAccessoire;
32271
32299
  }()
32272
- /**
32273
- * Invokes a new rendering
32274
- * @param renderSize
32275
- * @param planner3DGridEnabled
32276
- * @param mediaServiceSaveMode
32277
- * @param alternateRenderInfo Contains information if the rendering is an alternate rendering (Zubehörbild)
32300
+ /**
32301
+ * Invokes a new rendering
32302
+ * @param renderSize
32303
+ * @param planner3DGridEnabled
32304
+ * @param mediaServiceSaveMode
32305
+ * @param alternateRenderInfo Contains information if the rendering is an alternate rendering (Zubehörbild)
32278
32306
  */
32279
32307
  }, {
32280
32308
  key: "update3DPlannerView",
@@ -32352,10 +32380,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
32352
32380
  return configTreeHandler.fillConfigStepKeysInAccessoireItem([article], set.configTree, (_article$articleRelat = article.articleRelations) !== null && _article$articleRelat !== void 0 ? _article$articleRelat : []);
32353
32381
  }
32354
32382
 
32355
- /**
32356
- * This function returns the element ids of a list of articles. The articles are specified by an array of basketIds
32357
- * @param setId
32358
- * @param targetArticles
32383
+ /**
32384
+ * This function returns the element ids of a list of articles. The articles are specified by an array of basketIds
32385
+ * @param setId
32386
+ * @param targetArticles
32359
32387
  */
32360
32388
  }, {
32361
32389
  key: "getElementIdsOfArticles",
@@ -32371,10 +32399,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
32371
32399
  return elementIds;
32372
32400
  }
32373
32401
 
32374
- /**
32375
- * This function returns the base Parent Article of an Accessoire. it runs through the whole accessoire chain until it finds an article that is not an accessoire.
32376
- * If the current Article is no accessoire, it returns itself
32377
- * @param accBasketId BasketID of the accessoire
32402
+ /**
32403
+ * This function returns the base Parent Article of an Accessoire. it runs through the whole accessoire chain until it finds an article that is not an accessoire.
32404
+ * If the current Article is no accessoire, it returns itself
32405
+ * @param accBasketId BasketID of the accessoire
32378
32406
  */
32379
32407
  }, {
32380
32408
  key: "getBaseParentArticleOfAccessoire",
@@ -32382,12 +32410,12 @@ var DivaSetHandler = /*#__PURE__*/function () {
32382
32410
  var article = set.getBaseParentArticleOfAccessoire(accBasketId);
32383
32411
  return article;
32384
32412
  }
32385
- /**
32386
- * This function changes the State of Config-Single. If it goes form true to false there is a Posibility that now articles have in the same step different values set.
32387
- * Because of that @param groupedOptions is send aswell to configure all articles with Values of the first article of the Options of @param groupedOptions
32388
- * @param newIsConfigSingle
32389
- * @param groupedOptions
32390
- * @param groupedArticles
32413
+ /**
32414
+ * This function changes the State of Config-Single. If it goes form true to false there is a Posibility that now articles have in the same step different values set.
32415
+ * Because of that @param groupedOptions is send aswell to configure all articles with Values of the first article of the Options of @param groupedOptions
32416
+ * @param newIsConfigSingle
32417
+ * @param groupedOptions
32418
+ * @param groupedArticles
32391
32419
  */
32392
32420
  }, {
32393
32421
  key: "configSingleIsChanged",
@@ -32569,13 +32597,13 @@ var DivaSetHandler = /*#__PURE__*/function () {
32569
32597
  return configItems;
32570
32598
  }
32571
32599
 
32572
- /**
32573
- * here if needed the all the visible variants get precalced for price information or to check if a product is in stock
32574
- * similar usecases where the values need to be precalced like this the usecase can easliy be added and the required infos can be gathered in the function: calcVariants
32575
- * @param configItems
32576
- * @param configStepKey
32577
- * @param paletteType
32578
- * @returns
32600
+ /**
32601
+ * here if needed the all the visible variants get precalced for price information or to check if a product is in stock
32602
+ * similar usecases where the values need to be precalced like this the usecase can easliy be added and the required infos can be gathered in the function: calcVariants
32603
+ * @param configItems
32604
+ * @param configStepKey
32605
+ * @param paletteType
32606
+ * @returns
32579
32607
  */
32580
32608
  }, {
32581
32609
  key: "variantsEvaluator",
@@ -32736,11 +32764,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
32736
32764
  }
32737
32765
  }
32738
32766
 
32739
- /**
32740
- * This function updates the option values of the articles
32741
- * @param myValues
32742
- * @param targetArticles
32743
- * @returns returns true if the configuration changed something in the elementCount (deleted or add a new article)
32767
+ /**
32768
+ * This function updates the option values of the articles
32769
+ * @param myValues
32770
+ * @param targetArticles
32771
+ * @returns returns true if the configuration changed something in the elementCount (deleted or add a new article)
32744
32772
  */
32745
32773
  }, {
32746
32774
  key: "updateArticlesOptionStatesOfActSet",
@@ -33185,8 +33213,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
33185
33213
  return price;
33186
33214
  }
33187
33215
 
33188
- /**
33189
- * This function returns the price format of the current catalog
33216
+ /**
33217
+ * This function returns the price format of the current catalog
33190
33218
  */
33191
33219
  }, {
33192
33220
  key: "getActSetPriceFormat",
@@ -33515,10 +33543,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
33515
33543
  }
33516
33544
  return getOrderSet;
33517
33545
  }()
33518
- /**
33519
- * This function saves the rendering of the current planning/configuration. It saves it permanent
33520
- * @param set
33521
- * @param overwriteLastSavedRendering If set to true, it always asks for a new rendering. If false it returns the previously saved rendering (When entering Summary)
33546
+ /**
33547
+ * This function saves the rendering of the current planning/configuration. It saves it permanent
33548
+ * @param set
33549
+ * @param overwriteLastSavedRendering If set to true, it always asks for a new rendering. If false it returns the previously saved rendering (When entering Summary)
33522
33550
  */
33523
33551
  }, {
33524
33552
  key: "getSetImage",
@@ -33617,11 +33645,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33617
33645
  }
33618
33646
  return getHQRenderScript;
33619
33647
  }()
33620
- /**
33621
- * This function saves the rendering of the current planning/configuration. It saves it permanent
33622
- * The alternateSet Images are returned in a basket compatible datastructure
33623
- * @param set
33624
- * @param overwriteLastSavedRendering If set to true, it always asks for a new rendering. If false it returns the previously saved rendering (When entering Summary)
33648
+ /**
33649
+ * This function saves the rendering of the current planning/configuration. It saves it permanent
33650
+ * The alternateSet Images are returned in a basket compatible datastructure
33651
+ * @param set
33652
+ * @param overwriteLastSavedRendering If set to true, it always asks for a new rendering. If false it returns the previously saved rendering (When entering Summary)
33625
33653
  */
33626
33654
  }, {
33627
33655
  key: "getAlternateSetImages",
@@ -33803,8 +33831,8 @@ var DivaBasketHandler = /*#__PURE__*/function () {
33803
33831
  _defineProperty(this, "startProductId", void 0);
33804
33832
  //Only helper variable
33805
33833
  _defineProperty(this, "origConfiguration", {});
33806
- /**
33807
- * This function returns the originalConfiguration options
33834
+ /**
33835
+ * This function returns the originalConfiguration options
33808
33836
  */
33809
33837
  _defineProperty(this, "getOrigConfiguration", function () {
33810
33838
  return _this.origConfiguration;
@@ -34775,7 +34803,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34775
34803
  break;
34776
34804
  case 3:
34777
34805
  _context12.next = 5;
34778
- return import('./PfisterWWSHandler-e5a11f30.js');
34806
+ return import('./PfisterWWSHandler-c046e3ee.js');
34779
34807
  case 5:
34780
34808
  _yield$import = _context12.sent;
34781
34809
  PfisterWWSHandler = _yield$import["default"];
@@ -34783,7 +34811,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34783
34811
  return _context12.abrupt("break", 27);
34784
34812
  case 9:
34785
34813
  _context12.next = 11;
34786
- return import('./LiviqueWWSHandler-bff29a8a.js');
34814
+ return import('./LiviqueWWSHandler-8d2570dd.js');
34787
34815
  case 11:
34788
34816
  _yield$import2 = _context12.sent;
34789
34817
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34791,7 +34819,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34791
34819
  return _context12.abrupt("break", 27);
34792
34820
  case 15:
34793
34821
  _context12.next = 17;
34794
- return import('./SeriousBasketHandler-e152241d.js');
34822
+ return import('./SeriousBasketHandler-b8e1b0da.js');
34795
34823
  case 17:
34796
34824
  _yield$import3 = _context12.sent;
34797
34825
  SeriousWWSHandler = _yield$import3["default"];
@@ -34799,7 +34827,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34799
34827
  return _context12.abrupt("break", 27);
34800
34828
  case 21:
34801
34829
  _context12.next = 23;
34802
- return import('./StandardWWSHandler-a918f7f0.js');
34830
+ return import('./StandardWWSHandler-a3c5246b.js');
34803
34831
  case 23:
34804
34832
  _yield$import4 = _context12.sent;
34805
34833
  StandardWWSHandler = _yield$import4["default"];
@@ -34906,9 +34934,9 @@ var ViewPointHandler = /*#__PURE__*/function () {
34906
34934
  this.vpInfosByRoom = new Map();
34907
34935
  }
34908
34936
 
34909
- /**
34910
- * This function returns the room from te roomlist info.
34911
- * @param roomCodex
34937
+ /**
34938
+ * This function returns the room from te roomlist info.
34939
+ * @param roomCodex
34912
34940
  */
34913
34941
  return _createClass(ViewPointHandler, [{
34914
34942
  key: "getRoomInfo",
@@ -34920,10 +34948,10 @@ var ViewPointHandler = /*#__PURE__*/function () {
34920
34948
  }
34921
34949
  return undefined;
34922
34950
  }
34923
- /**
34924
- * This function returns the viewpoint from te roomlist info.
34925
- * @param roomCodex
34926
- * @param vpCodex
34951
+ /**
34952
+ * This function returns the viewpoint from te roomlist info.
34953
+ * @param roomCodex
34954
+ * @param vpCodex
34927
34955
  */
34928
34956
  }, {
34929
34957
  key: "getVPInfo",
@@ -34951,10 +34979,10 @@ var ViewPointHandler = /*#__PURE__*/function () {
34951
34979
  return this.defaultWhiteroom;
34952
34980
  }
34953
34981
 
34954
- /**
34955
- * This function resets the viewpoint.
34956
- * If the 3d host has retuned some viewpoint information about the rotation - then set it to the start rotation information.
34957
- * The function returns true, if the orbit cube should be updated
34982
+ /**
34983
+ * This function resets the viewpoint.
34984
+ * If the 3d host has retuned some viewpoint information about the rotation - then set it to the start rotation information.
34985
+ * The function returns true, if the orbit cube should be updated
34958
34986
  */
34959
34987
  }, {
34960
34988
  key: "resetViewPoint",
@@ -35066,11 +35094,11 @@ var ViewPointHandler = /*#__PURE__*/function () {
35066
35094
  }
35067
35095
  //------------------------------------------------Functionen Roomlist------------------------------------------------
35068
35096
 
35069
- /**
35070
- * This function handles which roomlist is saved for which category.
35071
- * This information is used to change the Url to the preview Images of the viewpoints. There it can be that the previewimages vary per category
35072
- * @param roomlist The list of codexes of the rooms
35073
- * @param mainCategory The main Category of a catalog. e.g. bed / sofa
35097
+ /**
35098
+ * This function handles which roomlist is saved for which category.
35099
+ * This information is used to change the Url to the preview Images of the viewpoints. There it can be that the previewimages vary per category
35100
+ * @param roomlist The list of codexes of the rooms
35101
+ * @param mainCategory The main Category of a catalog. e.g. bed / sofa
35074
35102
  */
35075
35103
  }, {
35076
35104
  key: "setMainCategoryOfStaticRoom",
@@ -35086,9 +35114,9 @@ var ViewPointHandler = /*#__PURE__*/function () {
35086
35114
  }
35087
35115
  }
35088
35116
 
35089
- /**
35090
- *This function is called when the webPlanner receives the list of rooms with all frontend Viewpoints from the 3D host .
35091
- * @param roomlist
35117
+ /**
35118
+ *This function is called when the webPlanner receives the list of rooms with all frontend Viewpoints from the 3D host .
35119
+ * @param roomlist
35092
35120
  */
35093
35121
  }, {
35094
35122
  key: "initRoomList",
@@ -35183,25 +35211,25 @@ var ViewPointHandler = /*#__PURE__*/function () {
35183
35211
  roomIsSel = false;
35184
35212
  }
35185
35213
  }
35186
- /**
35187
- * Returns all room lists in the String - that contains a list of roomCodexes separated with a ; - that are not cached already. Only these have to be downloaded
35188
- * @param roomlist
35214
+ /**
35215
+ * Returns all room lists in the String - that contains a list of roomCodexes separated with a ; - that are not cached already. Only these have to be downloaded
35216
+ * @param roomlist
35189
35217
  */
35190
- /*
35191
- public getNotChachedRoomlist(roomlist: string[]): string[] {
35192
- var uncached: string[] = [];
35193
- for (var i = 0; i < roomlist.length; i++) {
35194
- var notCached = true;
35195
- for (var j = 0; j < this.roomListInfo.length; j++) {
35196
- if (roomlist[i] == this.roomListInfo[j].codex) {
35197
- notCached = false;
35198
- break;
35199
- }
35200
- }
35201
- if (notCached) uncached.push(roomlist[i]);
35202
- }
35203
- return uncached;
35204
- }
35218
+ /*
35219
+ public getNotChachedRoomlist(roomlist: string[]): string[] {
35220
+ var uncached: string[] = [];
35221
+ for (var i = 0; i < roomlist.length; i++) {
35222
+ var notCached = true;
35223
+ for (var j = 0; j < this.roomListInfo.length; j++) {
35224
+ if (roomlist[i] == this.roomListInfo[j].codex) {
35225
+ notCached = false;
35226
+ break;
35227
+ }
35228
+ }
35229
+ if (notCached) uncached.push(roomlist[i]);
35230
+ }
35231
+ return uncached;
35232
+ }
35205
35233
  */
35206
35234
  }, {
35207
35235
  key: "getStaticRoomList",
@@ -35267,11 +35295,11 @@ var ViewPointHandler = /*#__PURE__*/function () {
35267
35295
  return result;
35268
35296
  }
35269
35297
 
35270
- /**
35271
- * This function updates the vpInformation from the host. The information is updated every time a new viewpoint is set
35272
- * @param roomCodex
35273
- * @param vpName
35274
- * @param vpInfo
35298
+ /**
35299
+ * This function updates the vpInformation from the host. The information is updated every time a new viewpoint is set
35300
+ * @param roomCodex
35301
+ * @param vpName
35302
+ * @param vpInfo
35275
35303
  */
35276
35304
  }, {
35277
35305
  key: "setVpInfoByRoomCodex",
@@ -35284,10 +35312,10 @@ var ViewPointHandler = /*#__PURE__*/function () {
35284
35312
  return this.getVpInfoByRoomCodex(roomCodex, vpName);
35285
35313
  }
35286
35314
 
35287
- /**
35288
- * Get the vpInformation of the viewPoint on the host.
35289
- * @param roomCodex
35290
- * @param vpName
35315
+ /**
35316
+ * Get the vpInformation of the viewPoint on the host.
35317
+ * @param roomCodex
35318
+ * @param vpName
35291
35319
  */
35292
35320
  }, {
35293
35321
  key: "getVpInfoByRoomCodex",
@@ -35301,8 +35329,8 @@ var ViewPointHandler = /*#__PURE__*/function () {
35301
35329
 
35302
35330
  //------------------------------------------------------------Functions needed for 3D Rendering------------------------------------------------------------
35303
35331
 
35304
- /**
35305
- * This function returns the shadow Information of the current selected room
35332
+ /**
35333
+ * This function returns the shadow Information of the current selected room
35306
35334
  */
35307
35335
  }, {
35308
35336
  key: "getCurRoomShadowInfo",
@@ -35319,15 +35347,15 @@ var ViewPointHandler = /*#__PURE__*/function () {
35319
35347
  return undefined;
35320
35348
  }
35321
35349
 
35322
- /**
35323
- * This function returns if the current room/VP enables navigation (e.g. weissraum).
35324
- * Static background rooms disable navigation
35350
+ /**
35351
+ * This function returns if the current room/VP enables navigation (e.g. weissraum).
35352
+ * Static background rooms disable navigation
35325
35353
  */
35326
- /*
35327
- public curVPHasStaticBG(): boolean {
35328
- let vpInfo = this.getVPInfo(this.curRoomCodex, this.curViewPointName);
35329
- if (vpInfo != undefined) return vpInfo.isStatic;
35330
- return false;
35354
+ /*
35355
+ public curVPHasStaticBG(): boolean {
35356
+ let vpInfo = this.getVPInfo(this.curRoomCodex, this.curViewPointName);
35357
+ if (vpInfo != undefined) return vpInfo.isStatic;
35358
+ return false;
35331
35359
  }*/
35332
35360
  }, {
35333
35361
  key: "getCurRoomlistVP",
@@ -35676,11 +35704,11 @@ var Rendering = /*#__PURE__*/function () {
35676
35704
  value: function hasUIInfo() {
35677
35705
  return this.uiInfo != '';
35678
35706
  }
35679
- /**
35680
- * This function adds a blobImage to the rendering .
35681
- * It is parsed to a base64 image.
35682
- * @param blob The blob contains the image
35683
- * @param isLayerMask True if the Image is the layer mask image
35707
+ /**
35708
+ * This function adds a blobImage to the rendering .
35709
+ * It is parsed to a base64 image.
35710
+ * @param blob The blob contains the image
35711
+ * @param isLayerMask True if the Image is the layer mask image
35684
35712
  */
35685
35713
  }, {
35686
35714
  key: "addImgAsBlob",
@@ -35893,16 +35921,16 @@ var RenderSettings = /*#__PURE__*/function () {
35893
35921
  }
35894
35922
  }]);
35895
35923
  }();
35896
- /*
35897
- * don't lower without checking boxspring !Multiple times:
35898
- * set image get's "pre-called" when switching into checkout,
35899
- * this reduces loading time and works fine. However on Boxspring
35900
- * there is no checkout, thats why the pre-call and the real get
35901
- * renderings get called at the same time, which causes
35902
- * !this.handler3D.hasLastSavedRendering() to be true.
35903
- * And if hasLastSavedRendering is true there won't happen the request
35904
- * and the waiting time for getlastsavedrendering is lower than normal.
35905
- * (Due To no interval)
35924
+ /*
35925
+ * don't lower without checking boxspring !Multiple times:
35926
+ * set image get's "pre-called" when switching into checkout,
35927
+ * this reduces loading time and works fine. However on Boxspring
35928
+ * there is no checkout, thats why the pre-call and the real get
35929
+ * renderings get called at the same time, which causes
35930
+ * !this.handler3D.hasLastSavedRendering() to be true.
35931
+ * And if hasLastSavedRendering is true there won't happen the request
35932
+ * and the waiting time for getlastsavedrendering is lower than normal.
35933
+ * (Due To no interval)
35906
35934
  */
35907
35935
  _defineProperty(RenderSettings, "TIMEOUT_WAITFORSAVEDRENDERING_MS", 9000);
35908
35936
 
@@ -35984,10 +36012,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
35984
36012
  _defineProperty(this, "todoAfterLogin", void 0);
35985
36013
  _defineProperty(this, "jwt", void 0);
35986
36014
  _defineProperty(this, "latestCamera", void 0);
35987
- /**
35988
- * This function is called from the connectionHandler when something happens during requesting rendering.
35989
- * Eg. there is no free renderClient
35990
- * @param info
36015
+ /**
36016
+ * This function is called from the connectionHandler when something happens during requesting rendering.
36017
+ * Eg. there is no free renderClient
36018
+ * @param info
35991
36019
  */
35992
36020
  _defineProperty(this, "onErrorRequestingRendering", function (hash, size, option) {
35993
36021
  var rendering = _this.waitForRenderings.get(hash);
@@ -36062,9 +36090,9 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36062
36090
  this.jwt = jwt;
36063
36091
  }
36064
36092
 
36065
- /**
36066
- * This function handels the initialization of the viewpoints of a whiteroom
36067
- * @param standardWhiteRoom
36093
+ /**
36094
+ * This function handels the initialization of the viewpoints of a whiteroom
36095
+ * @param standardWhiteRoom
36068
36096
  */
36069
36097
  }, {
36070
36098
  key: "initializeViewPoint",
@@ -36102,10 +36130,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36102
36130
  }
36103
36131
  return initializeViewPoint;
36104
36132
  }()
36105
- /**
36106
- * This function is called to load the viewPoint lists associated to a list of room Indices. Contains an array of all static rooms
36107
- * @param staticRoomList
36108
- * @param catalogMainCategory Die Warengruppe des Catalogs mit diesen Räumen
36133
+ /**
36134
+ * This function is called to load the viewPoint lists associated to a list of room Indices. Contains an array of all static rooms
36135
+ * @param staticRoomList
36136
+ * @param catalogMainCategory Die Warengruppe des Catalogs mit diesen Räumen
36109
36137
  */
36110
36138
  )
36111
36139
  }, {
@@ -36145,9 +36173,9 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36145
36173
  }
36146
36174
  return initializeStaticRoomList;
36147
36175
  }()
36148
- /**
36149
- * This function sets all the callback methods that are used to communicate with the view
36150
- * @param params
36176
+ /**
36177
+ * This function sets all the callback methods that are used to communicate with the view
36178
+ * @param params
36151
36179
  */
36152
36180
  )
36153
36181
  }, {
@@ -36189,7 +36217,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36189
36217
  while (1) switch (_context3.prev = _context3.next) {
36190
36218
  case 0:
36191
36219
  _context3.next = 2;
36192
- return import('./Host3DSignalR-f028ca78.js');
36220
+ return import('./Host3DSignalR-aa3a4b4d.js');
36193
36221
  case 2:
36194
36222
  _yield$import = _context3.sent;
36195
36223
  Host3DSignalR = _yield$import["default"];
@@ -36306,12 +36334,12 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36306
36334
  }, {
36307
36335
  key: "handleReceiveRendering",
36308
36336
  value:
36309
- /**
36310
- * This function is called when a rendering is sent over the socketIO of the MediaService
36311
- *
36312
- * @param divaNr
36313
- * @param hash
36314
- * @param buffer
36337
+ /**
36338
+ * This function is called when a rendering is sent over the socketIO of the MediaService
36339
+ *
36340
+ * @param divaNr
36341
+ * @param hash
36342
+ * @param buffer
36315
36343
  */
36316
36344
  function handleReceiveRendering(params) {
36317
36345
  LOG$4.debug('handleReceiveRendering ' + params.hash + '; SameMode: ' + params.saveMode);
@@ -36351,10 +36379,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36351
36379
  }
36352
36380
  //-----------------------------------Private methods---------------------------------------------
36353
36381
 
36354
- /**
36355
- * This function is called when a new rendering has to be sent to the frontend for visualization.
36356
- * This function is called in the DivaWebPlanner and sent do the view
36357
- * @param rendering
36382
+ /**
36383
+ * This function is called when a new rendering has to be sent to the frontend for visualization.
36384
+ * This function is called in the DivaWebPlanner and sent do the view
36385
+ * @param rendering
36358
36386
  */
36359
36387
  }, {
36360
36388
  key: "updatePlannerRendering",
@@ -36367,11 +36395,11 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36367
36395
  this.updatePlannerRenderingInView(rendering);
36368
36396
  }
36369
36397
 
36370
- /**
36371
- * This function is called, when a rendering is finished downloading.
36372
- * This contains the additional RenderInfo Json string, the rendering itself and the layermask (if needed)
36373
- * @param hash
36374
- * @param rendering
36398
+ /**
36399
+ * This function is called, when a rendering is finished downloading.
36400
+ * This contains the additional RenderInfo Json string, the rendering itself and the layermask (if needed)
36401
+ * @param hash
36402
+ * @param rendering
36375
36403
  */
36376
36404
  }, {
36377
36405
  key: "checkRenderingReady",
@@ -36382,8 +36410,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36382
36410
  LOG$4.debug('Send to view. CurrentHash: ' + hash + '; lastRequestedHash: ' + this.lastRequestedRenderHash);
36383
36411
  return true;
36384
36412
  }
36385
- /**
36386
- * This function returns true if an image is still rendered. Sometimes it can happen, that an image gets lost. In This case this function deletes it from the images to wait.
36413
+ /**
36414
+ * This function returns true if an image is still rendered. Sometimes it can happen, that an image gets lost. In This case this function deletes it from the images to wait.
36387
36415
  */
36388
36416
  }, {
36389
36417
  key: "checkWaitForImage",
@@ -36410,10 +36438,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36410
36438
  return true;
36411
36439
  }
36412
36440
 
36413
- /**
36414
- * This function computes the renderWidth and renderHeight that must be requested. This depends if a background img is used, or if the images are loaded from the cache.
36415
- * @param containerWidth
36416
- * @param containerHeight
36441
+ /**
36442
+ * This function computes the renderWidth and renderHeight that must be requested. This depends if a background img is used, or if the images are loaded from the cache.
36443
+ * @param containerWidth
36444
+ * @param containerHeight
36417
36445
  */
36418
36446
  }, {
36419
36447
  key: "adjustRenderSize",
@@ -36443,8 +36471,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36443
36471
 
36444
36472
  //-----------------------------------Methods called from PlannerHandler----------------------------
36445
36473
 
36446
- /**
36447
- * Returns the rendering that is currently displayed on the screen
36474
+ /**
36475
+ * Returns the rendering that is currently displayed on the screen
36448
36476
  */
36449
36477
  }, {
36450
36478
  key: "getCurrRendering",
@@ -36459,8 +36487,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36459
36487
  });
36460
36488
  }
36461
36489
 
36462
- /**
36463
- * This function returns the last rendering that was saved. Everytime the application enters the summary page - a Rendering is saved temporarily and returns an url.
36490
+ /**
36491
+ * This function returns the last rendering that was saved. Everytime the application enters the summary page - a Rendering is saved temporarily and returns an url.
36464
36492
  */
36465
36493
  }, {
36466
36494
  key: "getLastSavedRendering",
@@ -36517,8 +36545,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36517
36545
  return !!this.lastSavedRendering;
36518
36546
  }
36519
36547
 
36520
- /**
36521
- * This function returns the last alternate renderings that were saved. Everytime the application enters the summary page - a Rendering is saved temporarily and returns an url.
36548
+ /**
36549
+ * This function returns the last alternate renderings that were saved. Everytime the application enters the summary page - a Rendering is saved temporarily and returns an url.
36522
36550
  */
36523
36551
  }, {
36524
36552
  key: "getLastSavedAlternateRenderings",
@@ -36576,8 +36604,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36576
36604
  }
36577
36605
  return getLastSavedAlternateRenderings;
36578
36606
  }()
36579
- /**
36580
- * This function returns the structure of the planningJson Data. This planningJson is used by the 3D renderer to parse the current scene.
36607
+ /**
36608
+ * This function returns the structure of the planningJson Data. This planningJson is used by the 3D renderer to parse the current scene.
36581
36609
  */
36582
36610
  )
36583
36611
  }, {
@@ -36622,20 +36650,20 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36622
36650
  };
36623
36651
  }
36624
36652
 
36625
- /**
36626
- * This function is used to get a new rendering from the 3D Host
36627
- * @param divaNr The current DivaNr
36628
- * @param planningData The construction information of the current planning
36629
- * @param width The width of the requested image
36630
- * @param height The height of the requested image
36631
- * @param isFullscreenRendering Is the image a fullscreen Rendering
36632
- * @param planner3DGridEnabled When the planner3D Grid is enabled - request a rendering and a layermask
36633
- * @param mediaServiceSaveMode Specifies if the rendering should only streamed from the renderer to the client - or if it should be saved temporarily by the media service.
36634
- * @param catalogCodex The CatalogCodex in the planning
36635
- * @param catalogGUID The CatalogGUID in the planning
36636
- * @param forceReloadPlanning Force reload whole planning even if only viewPoint has changed. This is used when for example no 3D Render Client has loaded the current planning
36637
- * @param camera The RTV Camera Information for Unity/RTV KOMBI
36638
- * @param useLatestCamera should the latest camera be used ? default yes when requesting the start viewpoint via the configurator button not
36653
+ /**
36654
+ * This function is used to get a new rendering from the 3D Host
36655
+ * @param divaNr The current DivaNr
36656
+ * @param planningData The construction information of the current planning
36657
+ * @param width The width of the requested image
36658
+ * @param height The height of the requested image
36659
+ * @param isFullscreenRendering Is the image a fullscreen Rendering
36660
+ * @param planner3DGridEnabled When the planner3D Grid is enabled - request a rendering and a layermask
36661
+ * @param mediaServiceSaveMode Specifies if the rendering should only streamed from the renderer to the client - or if it should be saved temporarily by the media service.
36662
+ * @param catalogCodex The CatalogCodex in the planning
36663
+ * @param catalogGUID The CatalogGUID in the planning
36664
+ * @param forceReloadPlanning Force reload whole planning even if only viewPoint has changed. This is used when for example no 3D Render Client has loaded the current planning
36665
+ * @param camera The RTV Camera Information for Unity/RTV KOMBI
36666
+ * @param useLatestCamera should the latest camera be used ? default yes when requesting the start viewpoint via the configurator button not
36639
36667
  */
36640
36668
  }, {
36641
36669
  key: "request3D",
@@ -36809,10 +36837,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36809
36837
  return true;
36810
36838
  }
36811
36839
 
36812
- /**
36813
- *
36814
- * @param planningData
36815
- * @returns
36840
+ /**
36841
+ *
36842
+ * @param planningData
36843
+ * @returns
36816
36844
  */
36817
36845
  }, {
36818
36846
  key: "getProductHash",
@@ -36856,10 +36884,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36856
36884
  }
36857
36885
  }
36858
36886
 
36859
- /**
36860
- * This function is caleld when the navigation in the frontend changed (zoom/fullscreen/Swipe/ElementFocus...)
36861
- * @param mode Should the viewpoint change zoom/fullscreen/swipe...
36862
- * @param params Parameters used by the mode
36887
+ /**
36888
+ * This function is caleld when the navigation in the frontend changed (zoom/fullscreen/Swipe/ElementFocus...)
36889
+ * @param mode Should the viewpoint change zoom/fullscreen/swipe...
36890
+ * @param params Parameters used by the mode
36863
36891
  */
36864
36892
  }, {
36865
36893
  key: "handle3DVisualizationChanged",
@@ -36923,8 +36951,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36923
36951
  }
36924
36952
  }
36925
36953
 
36926
- /**
36927
- * This function resets the viewpoint to default.
36954
+ /**
36955
+ * This function resets the viewpoint to default.
36928
36956
  */
36929
36957
  }, {
36930
36958
  key: "resetNav3D",
@@ -36936,8 +36964,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36936
36964
  }
36937
36965
  }
36938
36966
 
36939
- /**
36940
- * This function returns all StaticRoomList items that should be displayed in the view
36967
+ /**
36968
+ * This function returns all StaticRoomList items that should be displayed in the view
36941
36969
  */
36942
36970
  }, {
36943
36971
  key: "getStaticRoomListItems",
@@ -37201,8 +37229,8 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
37201
37229
  }();
37202
37230
  var mediaServiceHandler = new DivaMediaServiceHandler();
37203
37231
 
37204
- /**
37205
- * This class saves a Bounding box. This bounding box can be of one Planner (one Set) or for several planner elements (multiple Sets)
37232
+ /**
37233
+ * This class saves a Bounding box. This bounding box can be of one Planner (one Set) or for several planner elements (multiple Sets)
37206
37234
  */
37207
37235
  var BoundingBox = /*#__PURE__*/function () {
37208
37236
  //y depth / z height
@@ -37215,10 +37243,10 @@ var BoundingBox = /*#__PURE__*/function () {
37215
37243
  this.size = new Vector3(0, 0, 0);
37216
37244
  }
37217
37245
 
37218
- /**
37219
- * This function initializes the new BoundingBox of a single Planner based on the boundingbox of the whole set.
37220
- * The new Boundingbox has the world size one meter on the right of the global BoundingBox
37221
- * @param globalBoundingBox
37246
+ /**
37247
+ * This function initializes the new BoundingBox of a single Planner based on the boundingbox of the whole set.
37248
+ * The new Boundingbox has the world size one meter on the right of the global BoundingBox
37249
+ * @param globalBoundingBox
37222
37250
  */
37223
37251
  return _createClass(BoundingBox, [{
37224
37252
  key: "initPlannerBBox",
@@ -37306,9 +37334,9 @@ var BoundingBox = /*#__PURE__*/function () {
37306
37334
  this.size.z = globalMaxZ - globalMinZ;
37307
37335
  }
37308
37336
 
37309
- /**
37310
- * This function returns the with of the bounding box
37311
- * @param digitsAfterComma The number of numbers after the comma
37337
+ /**
37338
+ * This function returns the with of the bounding box
37339
+ * @param digitsAfterComma The number of numbers after the comma
37312
37340
  */
37313
37341
  }, {
37314
37342
  key: "getWidth",
@@ -37331,9 +37359,9 @@ var BoundingBox = /*#__PURE__*/function () {
37331
37359
  return Math.round(this.Size.x);
37332
37360
  }
37333
37361
 
37334
- /**
37335
- * This function returns the depth of the bounding box
37336
- * @param digitsAfterComma The number of numbers after the comma
37362
+ /**
37363
+ * This function returns the depth of the bounding box
37364
+ * @param digitsAfterComma The number of numbers after the comma
37337
37365
  */
37338
37366
  }, {
37339
37367
  key: "getDepth",
@@ -37356,9 +37384,9 @@ var BoundingBox = /*#__PURE__*/function () {
37356
37384
  return Math.round(this.Size.z);
37357
37385
  }
37358
37386
 
37359
- /**
37360
- * This function returns the height of the bounding box
37361
- * @param digitsAfterComma The number of numbers after the comma
37387
+ /**
37388
+ * This function returns the height of the bounding box
37389
+ * @param digitsAfterComma The number of numbers after the comma
37362
37390
  */
37363
37391
  }, {
37364
37392
  key: "getHeight",
@@ -37393,8 +37421,8 @@ var BoundingBox = /*#__PURE__*/function () {
37393
37421
  }]);
37394
37422
  }();
37395
37423
 
37396
- /**
37397
- * This class saves information and makes calculations that are necessary for the whole set
37424
+ /**
37425
+ * This class saves information and makes calculations that are necessary for the whole set
37398
37426
  */
37399
37427
  var SetPlannerHandler = /*#__PURE__*/function () {
37400
37428
  function SetPlannerHandler() {
@@ -37403,11 +37431,11 @@ var SetPlannerHandler = /*#__PURE__*/function () {
37403
37431
  this.globalBoundingBox = new BoundingBox();
37404
37432
  }
37405
37433
 
37406
- /**
37407
- * This function updates the posNr of the elements over all sets
37408
- * So all elements in one set have pos nr going from 1 - n.
37409
- * However, the setposnr start from the first set from 1 -n and in the second set it starts from n+1
37410
- * @param plannerList
37434
+ /**
37435
+ * This function updates the posNr of the elements over all sets
37436
+ * So all elements in one set have pos nr going from 1 - n.
37437
+ * However, the setposnr start from the first set from 1 -n and in the second set it starts from n+1
37438
+ * @param plannerList
37411
37439
  */
37412
37440
  return _createClass(SetPlannerHandler, [{
37413
37441
  key: "updateSetPosNr",
@@ -37439,9 +37467,9 @@ var SetPlannerHandler = /*#__PURE__*/function () {
37439
37467
  }
37440
37468
  }
37441
37469
 
37442
- /**
37443
- * This function returns the combined bounding Box of all planner bounding boxes
37444
- * @param plannerList
37470
+ /**
37471
+ * This function returns the combined bounding Box of all planner bounding boxes
37472
+ * @param plannerList
37445
37473
  */
37446
37474
  }, {
37447
37475
  key: "getGlobalBoundingBoxForView",
@@ -37463,9 +37491,9 @@ var SetPlannerHandler = /*#__PURE__*/function () {
37463
37491
  };
37464
37492
  }
37465
37493
 
37466
- /**
37467
- * This function calculates the combined bounding Box of all planner bounding boxes
37468
- * @param plannerList
37494
+ /**
37495
+ * This function calculates the combined bounding Box of all planner bounding boxes
37496
+ * @param plannerList
37469
37497
  */
37470
37498
  }, {
37471
37499
  key: "calcGlobalBoundingBox",
@@ -37481,9 +37509,9 @@ var SetPlannerHandler = /*#__PURE__*/function () {
37481
37509
  this.globalBoundingBox = setBoundingBox;
37482
37510
  }
37483
37511
 
37484
- /**
37485
- * This function returns the global bounding Box
37486
- * @returns
37512
+ /**
37513
+ * This function returns the global bounding Box
37514
+ * @returns
37487
37515
  */
37488
37516
  }, {
37489
37517
  key: "getGlobalBoundingBox",
@@ -37505,9 +37533,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37505
37533
  _defineProperty(this, "divaNr", void 0);
37506
37534
  _defineProperty(this, "plannerHandlerFunctions", void 0);
37507
37535
  _defineProperty(this, "plannerIDCount", 1);
37508
- /**
37509
- * This function is called when the program only wants to update the view - it does not send the whole planning.
37510
- * However, if no 3D Client has loaded the current planning the request has to be sent again and force to load the whole planning
37536
+ /**
37537
+ * This function is called when the program only wants to update the view - it does not send the whole planning.
37538
+ * However, if no 3D Client has loaded the current planning the request has to be sent again and force to load the whole planning
37511
37539
  */
37512
37540
  _defineProperty(this, "noRenderClientFound", function (doMakeRendering, doMakeHQRenderScript, width, height, isFullscreenRendering, planner3DGridEnabled, doShow3DDimensionLines, plannerMeasureDigits, alternateRendererInfo, alternateRenderingsExist) {
37513
37541
  LOG$2.debug('noRenderClientFound - Request rendering again by sending all planningData');
@@ -37527,9 +37555,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37527
37555
  this.handler3D = new PlannerHandler3D('WebPlanner', 'PfisterWebConfigurator', '', '', this.noRenderClientFound, onlyRunLogic);
37528
37556
  }
37529
37557
 
37530
- /**
37531
- * This method is called when a new planning is started. This happens when a new Planning is started or a Planning is loaded.
37532
- * @param divaNr The divaNr of the planning
37558
+ /**
37559
+ * This method is called when a new planning is started. This happens when a new Planning is started or a Planning is loaded.
37560
+ * @param divaNr The divaNr of the planning
37533
37561
  */
37534
37562
  return _createClass(DivaPlannerHandler, [{
37535
37563
  key: "initPlanner",
@@ -37601,9 +37629,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37601
37629
  }
37602
37630
  return initPlanner;
37603
37631
  }()
37604
- /**
37605
- * This function updates the Planner. It is called after a configuration changed.
37606
- * @returns it returns all elementIds that should be deleted
37632
+ /**
37633
+ * This function updates the Planner. It is called after a configuration changed.
37634
+ * @returns it returns all elementIds that should be deleted
37607
37635
  */
37608
37636
  )
37609
37637
  }, {
@@ -37645,10 +37673,10 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37645
37673
  }
37646
37674
  return updatePlanner;
37647
37675
  }()
37648
- /**
37649
- * This function is called when a product is added to a existing set
37650
- * @param set
37651
- * @param setPlanData
37676
+ /**
37677
+ * This function is called when a product is added to a existing set
37678
+ * @param set
37679
+ * @param setPlanData
37652
37680
  */
37653
37681
  )
37654
37682
  }, {
@@ -37690,11 +37718,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37690
37718
  }
37691
37719
  return extendSet;
37692
37720
  }()
37693
- /**
37694
- * This function is called to initialize a new Planner - SetPlandata is used to initialize it if a already existing planning is loaded.
37695
- * If it is empty a empty Planner is init.
37696
- * @param set
37697
- * @param setPlanData
37721
+ /**
37722
+ * This function is called to initialize a new Planner - SetPlandata is used to initialize it if a already existing planning is loaded.
37723
+ * If it is empty a empty Planner is init.
37724
+ * @param set
37725
+ * @param setPlanData
37698
37726
  */
37699
37727
  )
37700
37728
  }, {
@@ -37741,7 +37769,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37741
37769
  break;
37742
37770
  case 8:
37743
37771
  _context4.next = 10;
37744
- return import('./DivaStandardPlanner-d1899ff9.js');
37772
+ return import('./DivaStandardPlanner-2c8858b2.js');
37745
37773
  case 10:
37746
37774
  _yield$import = _context4.sent;
37747
37775
  DivaStandardPlanner = _yield$import["default"];
@@ -37752,7 +37780,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37752
37780
  return _context4.abrupt("break", 21);
37753
37781
  case 15:
37754
37782
  _context4.next = 17;
37755
- return import('./DivaBoxPlanner-f2e768dd.js');
37783
+ return import('./DivaBoxPlanner-0748b14a.js');
37756
37784
  case 17:
37757
37785
  _yield$import2 = _context4.sent;
37758
37786
  DivaBoxPlanner = _yield$import2["default"];
@@ -37793,8 +37821,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37793
37821
  });
37794
37822
  }
37795
37823
 
37796
- /**
37797
- * This function returns a JSON Object of the whole planner Saving
37824
+ /**
37825
+ * This function returns a JSON Object of the whole planner Saving
37798
37826
  */
37799
37827
  }, {
37800
37828
  key: "savePlanner",
@@ -37833,9 +37861,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37833
37861
  };
37834
37862
  }
37835
37863
 
37836
- /**
37837
- * This function returns the base 64 representation of the current displaying rendering
37838
- * @param setId
37864
+ /**
37865
+ * This function returns the base 64 representation of the current displaying rendering
37866
+ * @param setId
37839
37867
  */
37840
37868
  }, {
37841
37869
  key: "getSetImageAsBase64",
@@ -37846,9 +37874,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37846
37874
  return result;
37847
37875
  }
37848
37876
 
37849
- /**
37850
- * This function returns the rendering of the last saved rendering
37851
- * @param setId
37877
+ /**
37878
+ * This function returns the rendering of the last saved rendering
37879
+ * @param setId
37852
37880
  */
37853
37881
  }, {
37854
37882
  key: "getSetRendering",
@@ -37877,9 +37905,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37877
37905
  }
37878
37906
  return getSetRendering;
37879
37907
  }()
37880
- /**
37881
- * This function returns the URL of the last saved rendering
37882
- * @param setId
37908
+ /**
37909
+ * This function returns the URL of the last saved rendering
37910
+ * @param setId
37883
37911
  */
37884
37912
  )
37885
37913
  }, {
@@ -37922,10 +37950,10 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37922
37950
  return hqRenderScript;
37923
37951
  }
37924
37952
 
37925
- /**
37926
- * This function returns all lastsaved alternate Set Renderings as renderings
37927
- * @param setId
37928
- * @returns
37953
+ /**
37954
+ * This function returns all lastsaved alternate Set Renderings as renderings
37955
+ * @param setId
37956
+ * @returns
37929
37957
  */
37930
37958
  }, {
37931
37959
  key: "getAlternateSetRenderings",
@@ -37959,9 +37987,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37959
37987
  }
37960
37988
  return getAlternateSetRenderings;
37961
37989
  }()
37962
- /**
37963
- * returns the URLs of all saved alternate renderings
37964
- * @param setId
37990
+ /**
37991
+ * returns the URLs of all saved alternate renderings
37992
+ * @param setId
37965
37993
  */
37966
37994
  )
37967
37995
  }, {
@@ -38138,11 +38166,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38138
38166
  }
38139
38167
  return saveSetImage;
38140
38168
  }()
38141
- /**
38142
- * This function makes shure that all alternate set images are saved
38143
- * @param catCodex
38144
- * @param catGUID
38145
- * @returns
38169
+ /**
38170
+ * This function makes shure that all alternate set images are saved
38171
+ * @param catCodex
38172
+ * @param catGUID
38173
+ * @returns
38146
38174
  */
38147
38175
  }, {
38148
38176
  key: "saveAlternateSetImages",
@@ -38233,10 +38261,10 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38233
38261
  }
38234
38262
  return saveSet2DImage;
38235
38263
  }()
38236
- /**
38237
- * This function is called in order to destroy a planner. All elements are cleared all saved resources are cleared.
38238
- * @param setId The setID the planner belongs to
38239
- * @return Returns true when the planner was destroyed successfully
38264
+ /**
38265
+ * This function is called in order to destroy a planner. All elements are cleared all saved resources are cleared.
38266
+ * @param setId The setID the planner belongs to
38267
+ * @return Returns true when the planner was destroyed successfully
38240
38268
  */
38241
38269
  }, {
38242
38270
  key: "destroyPlanner",
@@ -38253,8 +38281,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38253
38281
  return false;
38254
38282
  }
38255
38283
 
38256
- /**
38257
- * This function destroys all planner elements that are currently loaded.
38284
+ /**
38285
+ * This function destroys all planner elements that are currently loaded.
38258
38286
  */
38259
38287
  }, {
38260
38288
  key: "destroyAllPlanner",
@@ -38272,8 +38300,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38272
38300
  return true;
38273
38301
  }
38274
38302
 
38275
- /**
38276
- * This function is called in order to clear all renderings in the render cache
38303
+ /**
38304
+ * This function is called in order to clear all renderings in the render cache
38277
38305
  */
38278
38306
  }, {
38279
38307
  key: "clearHandler3D",
@@ -38353,11 +38381,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38353
38381
  }
38354
38382
  return deletePlannerElement;
38355
38383
  }()
38356
- /**
38357
- * This function gets all Elements that are copyied when copying one element.
38358
- * @param setId
38359
- * @param elementId
38360
- * @param copyInfo
38384
+ /**
38385
+ * This function gets all Elements that are copyied when copying one element.
38386
+ * @param setId
38387
+ * @param elementId
38388
+ * @param copyInfo
38361
38389
  */
38362
38390
  }, {
38363
38391
  key: "getPlannerElementsInfluencedByCopy",
@@ -38368,11 +38396,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38368
38396
  return this.plannerList.get(setId).getPlannerElementsInfluencedByCopy(elementId, copyInfo);
38369
38397
  }
38370
38398
 
38371
- /**
38372
- * This function is used to copy an element in the planner
38373
- * @param setId
38374
- * @param articleCopyRelation
38375
- * @param copyInfo
38399
+ /**
38400
+ * This function is used to copy an element in the planner
38401
+ * @param setId
38402
+ * @param articleCopyRelation
38403
+ * @param copyInfo
38376
38404
  */
38377
38405
  }, {
38378
38406
  key: "copyPlannerElements",
@@ -38406,13 +38434,13 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38406
38434
  }
38407
38435
  return copyPlannerElements;
38408
38436
  }()
38409
- /**
38410
- * This function is called when the planner Elements position or rotation are modified in the view.
38411
- *@param setId The set id of the planning
38412
- * @param plannerElementID This is the element ID of the planner Element that is changed.
38413
- *@param deltaMove This is the delta in centimeters the element was moved in each direction
38414
- * @param deltaAngleDeg This is the angle the element was rotated in degrees
38415
- * @param doUpdate This indicates if the element Should be updated with the new position. If false it can only be used to check if there are possible DockingPoints
38437
+ /**
38438
+ * This function is called when the planner Elements position or rotation are modified in the view.
38439
+ *@param setId The set id of the planning
38440
+ * @param plannerElementID This is the element ID of the planner Element that is changed.
38441
+ *@param deltaMove This is the delta in centimeters the element was moved in each direction
38442
+ * @param deltaAngleDeg This is the angle the element was rotated in degrees
38443
+ * @param doUpdate This indicates if the element Should be updated with the new position. If false it can only be used to check if there are possible DockingPoints
38416
38444
  */
38417
38445
  )
38418
38446
  }, {
@@ -38437,13 +38465,13 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38437
38465
  return allPlanningsAreComplete;
38438
38466
  }
38439
38467
 
38440
- /**
38441
- * This function returns the neighbor elements of a specific elements based on a given docking Type.
38442
- * E.g. dockingType "AVR" returns the element that is docking to the AVR vector
38443
- * @param setId The current setId of the element
38444
- * @param elementId The elementId of the element
38445
- * @param dockingType The dockingType
38446
- * @returns An array of all elements indicated by the elementId
38468
+ /**
38469
+ * This function returns the neighbor elements of a specific elements based on a given docking Type.
38470
+ * E.g. dockingType "AVR" returns the element that is docking to the AVR vector
38471
+ * @param setId The current setId of the element
38472
+ * @param elementId The elementId of the element
38473
+ * @param dockingType The dockingType
38474
+ * @returns An array of all elements indicated by the elementId
38447
38475
  */
38448
38476
  }, {
38449
38477
  key: "getNeighborElementIds",
@@ -38494,8 +38522,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38494
38522
  }
38495
38523
  }
38496
38524
 
38497
- /**
38498
- * This function returns all viewPlannerElements of all planner
38525
+ /**
38526
+ * This function returns all viewPlannerElements of all planner
38499
38527
  */
38500
38528
  }, {
38501
38529
  key: "getAllViewPlannerElements",
@@ -38610,10 +38638,10 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38610
38638
  }
38611
38639
  return request3D;
38612
38640
  }()
38613
- /**
38614
- * This function returns the Project (JSON) of the planning data of a specific set.
38615
- * @param setId Only contains planner Information of this set
38616
- * @returns The JSON of the planning data
38641
+ /**
38642
+ * This function returns the Project (JSON) of the planning data of a specific set.
38643
+ * @param setId Only contains planner Information of this set
38644
+ * @returns The JSON of the planning data
38617
38645
  */
38618
38646
  }, {
38619
38647
  key: "getProject3D",
@@ -38645,8 +38673,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38645
38673
  }, {
38646
38674
  key: "createPlanningHash",
38647
38675
  value:
38648
- /**
38649
- * This function creates the hash for the current PLANNING. It ignores viewpoint/rendering3D related aspects like size of the rendered image or the room it is displayed in.
38676
+ /**
38677
+ * This function creates the hash for the current PLANNING. It ignores viewpoint/rendering3D related aspects like size of the rendered image or the room it is displayed in.
38650
38678
  */
38651
38679
  function createPlanningHash() {
38652
38680
  var _this5 = this;
@@ -38679,12 +38707,12 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38679
38707
 
38680
38708
  function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
38681
38709
  function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
38682
- /*
38683
- Das ist der Konstruktor für den ganzen Web Planner.
38684
- Er baut alle Klassen und initialisiert sie.
38685
- Ist der BOSS initialisieren und Kommunikation handeln
38686
- Arbeitet wie ein Verkehrspolizist
38687
- Diese Klasse ist die Schnittstelle zwischen den Logic Klassen und der View
38710
+ /*
38711
+ Das ist der Konstruktor für den ganzen Web Planner.
38712
+ Er baut alle Klassen und initialisiert sie.
38713
+ Ist der BOSS initialisieren und Kommunikation handeln
38714
+ Arbeitet wie ein Verkehrspolizist
38715
+ Diese Klasse ist die Schnittstelle zwischen den Logic Klassen und der View
38688
38716
  */
38689
38717
 
38690
38718
  var LOG$1 = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
@@ -38779,9 +38807,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
38779
38807
  }
38780
38808
  return somethingChanged;
38781
38809
  });
38782
- /**
38783
- * This function is called when the RoomList is loaded from the 3D host. Now we have to update the TabGroup View - if the configurator is currently in the Roomlist state
38784
- * @param succ
38810
+ /**
38811
+ * This function is called when the RoomList is loaded from the 3D host. Now we have to update the TabGroup View - if the configurator is currently in the Roomlist state
38812
+ * @param succ
38785
38813
  */
38786
38814
  _defineProperty(this, "onRoomListLoaded", function () {
38787
38815
  var set = _this.actSet();
@@ -38790,9 +38818,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
38790
38818
  (_this$updateStaticRoo = _this.updateStaticRoomListItems) === null || _this$updateStaticRoo === void 0 || _this$updateStaticRoo.call(_this, setHandlerInstance.getStaticRoomListItems(set), _this.api.getRoomListInProduct() || _this.plannerConfig.initMode);
38791
38819
  }
38792
38820
  });
38793
- /**
38794
- * This function is called when the planner Rendering should be updated
38795
- * @param rendering The new rendering that should be loaded into the view
38821
+ /**
38822
+ * This function is called when the planner Rendering should be updated
38823
+ * @param rendering The new rendering that should be loaded into the view
38796
38824
  */
38797
38825
  _defineProperty(this, "updatePlannerRendering", function (rendering) {
38798
38826
  var _this$state;
@@ -38807,9 +38835,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
38807
38835
  _this.api.postPlanningInfo((_this$actSet2 = _this.actSet()) === null || _this$actSet2 === void 0 ? void 0 : _this$actSet2.getVariantBasketData(), _this.divaNr, rendering.getImageForSrc(), _this.getCurSetPrice() + setHandlerInstance.getActSetPriceFormat(_this.actSet()), _this.getCurCatalogName(), (_this$state$user = _this.state.user) === null || _this$state$user === void 0 ? void 0 : _this$state$user._id, (_this$state$user2 = _this.state.user) === null || _this$state$user2 === void 0 ? void 0 : _this$state$user2.name, (_this$state$user3 = _this.state.user) === null || _this$state$user3 === void 0 ? void 0 : _this$state$user3.familyName, _this.state.organization._id);
38808
38836
  }
38809
38837
  });
38810
- /**
38811
- * This function is called when the planner Rendering should be updated
38812
- * @param rendering The new rendering that should be loaded into the view
38838
+ /**
38839
+ * This function is called when the planner Rendering should be updated
38840
+ * @param rendering The new rendering that should be loaded into the view
38813
38841
  */
38814
38842
  _defineProperty(this, "updatePlannerHqRenderScript", function (hqRenderscript) {
38815
38843
  var _this$setHQRenderScri;
@@ -38835,8 +38863,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
38835
38863
  }
38836
38864
  return false;
38837
38865
  });
38838
- /**
38839
- * This Function ist call from the View when all Planner Article are Requested for listing
38866
+ /**
38867
+ * This Function ist call from the View when all Planner Article are Requested for listing
38840
38868
  */
38841
38869
  _defineProperty(this, "loadCatalogPlannerArticles", function (paletteeId, isUpdate, type, dockFilter, actStepName, stepKey) {
38842
38870
  var _this$updateCatalogPl;
@@ -38844,18 +38872,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
38844
38872
  //Von diesem Katalog müssen wir die CatalogPlannerArticles laden.
38845
38873
  (_this$updateCatalogPl = _this.updateCatalogPlannerArticles) === null || _this$updateCatalogPl === void 0 || _this$updateCatalogPl.call(_this, setHandlerInstance.getPlannerPaletteViewInfo(_this.actSet(), type), paletteeId, isUpdate, type, dockFilter, actStepName, stepKey);
38846
38874
  });
38847
- /**
38848
- * this fuction loads the accessoires of a specific article -> could be more than one article in the future
38849
- * @param targetArticles the article of which we load the accessoires
38875
+ /**
38876
+ * this fuction loads the accessoires of a specific article -> could be more than one article in the future
38877
+ * @param targetArticles the article of which we load the accessoires
38850
38878
  */
38851
38879
  _defineProperty(this, "loadAccessoiresOfArticles", function (targetArticles) {
38852
38880
  var set = _this.actSet();
38853
38881
  if (!set) return;
38854
38882
  _this.updateAccessoiresPalette(setHandlerInstance.getAccessoriesOfArticles(_this.actSet(), targetArticles), set.configAccessoiresInAccessoireStep ? 'ACC_CONFIG' : 'ACC');
38855
38883
  });
38856
- /**
38857
- * this function is called when all Items of a ConfigStep are requested
38858
- * @param configStepKey unique indentifier for configStep
38884
+ /**
38885
+ * this function is called when all Items of a ConfigStep are requested
38886
+ * @param configStepKey unique indentifier for configStep
38859
38887
  */
38860
38888
  _defineProperty(this, "loadConfigItemsOfOptions", /*#__PURE__*/function () {
38861
38889
  var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(configStepKey, paletteId, isUpdate, visible) {
@@ -38879,8 +38907,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
38879
38907
  return _ref.apply(this, arguments);
38880
38908
  };
38881
38909
  }());
38882
- /**
38883
- * this function laods the summary Items
38910
+ /**
38911
+ * this function laods the summary Items
38884
38912
  */
38885
38913
  _defineProperty(this, "loadSummaryItems", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
38886
38914
  var _this$actions, _this$actions$toggleL, _this$updateSummaryIt, _this$actions2, _this$actions2$toggle;
@@ -38924,18 +38952,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
38924
38952
  var _this$updateDoorPlann;
38925
38953
  (_this$updateDoorPlann = _this.updateDoorPlannerItems) === null || _this$updateDoorPlann === void 0 || _this$updateDoorPlann.call(_this, setHandlerInstance.getDoorPlannerItems(_this.actSet(), configStepKey), configStepKey);
38926
38954
  });
38927
- /**
38928
- * This function is called when switching from one planning to another. All Planner handler are destroyed.
38929
- * @param doDestroy3DHostConnection The whole renderCache is cleared and the connection to the 3D render host is cleared
38955
+ /**
38956
+ * This function is called when switching from one planning to another. All Planner handler are destroyed.
38957
+ * @param doDestroy3DHostConnection The whole renderCache is cleared and the connection to the 3D render host is cleared
38930
38958
  */
38931
38959
  _defineProperty(this, "destroyPlannerHandler", function (doDestroy3DHostConnection) {
38932
38960
  setHandlerInstance.destroyPlannerHandler(_this.actSet(), doDestroy3DHostConnection);
38933
38961
  if (_this.getCurPlannerViewMode) _this.updatePlannerView('DESTROY_PLANNER');
38934
38962
  });
38935
- /**
38936
- * this Function is called when new Planner Article is Loaded
38937
- * @param elementCodex unique Codex to identify the article
38938
- * @param parentElement ElementID of the parent element used for docking
38963
+ /**
38964
+ * this Function is called when new Planner Article is Loaded
38965
+ * @param elementCodex unique Codex to identify the article
38966
+ * @param parentElement ElementID of the parent element used for docking
38939
38967
  */
38940
38968
  _defineProperty(this, "addPlannerElement", /*#__PURE__*/function () {
38941
38969
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(elementCodex, initParams, dontUpdateView) {
@@ -38998,11 +39026,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
38998
39026
  return _ref3.apply(this, arguments);
38999
39027
  };
39000
39028
  }());
39001
- /**
39002
- * this function implements a switch logic of 2 elements also called "Tauschfunktion"
39003
- * @param setId actSet
39004
- * @param elementId Id of the element that gets deleted
39005
- * @param articleCodex articleCodex of the new Element
39029
+ /**
39030
+ * this function implements a switch logic of 2 elements also called "Tauschfunktion"
39031
+ * @param setId actSet
39032
+ * @param elementId Id of the element that gets deleted
39033
+ * @param articleCodex articleCodex of the new Element
39006
39034
  */
39007
39035
  _defineProperty(this, "switchPlannerElement", /*#__PURE__*/function () {
39008
39036
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(setId, elementId, articleCodex, initParams) {
@@ -39127,12 +39155,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39127
39155
  return _ref6.apply(this, arguments);
39128
39156
  };
39129
39157
  }());
39130
- /**
39131
- * This function is called every time the transformation of an Element is changed
39132
- * @param plannerElementID
39133
- * @param deltaMove
39134
- * @param deltaAngleDeg
39135
- * @param transState
39158
+ /**
39159
+ * This function is called every time the transformation of an Element is changed
39160
+ * @param plannerElementID
39161
+ * @param deltaMove
39162
+ * @param deltaAngleDeg
39163
+ * @param transState
39136
39164
  */
39137
39165
  _defineProperty(this, "updatePlannerTrans", /*#__PURE__*/function () {
39138
39166
  var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(setId, plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance) {
@@ -39157,10 +39185,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39157
39185
  return _ref7.apply(this, arguments);
39158
39186
  };
39159
39187
  }());
39160
- /**
39161
- * This function is called when the user interacts with the navigation in the 3D Image view.
39162
- * The mode indicates what should be done in the navigation like zooming or swiping.
39163
- * @param avoidUpdateRendering If this parameter is set to true, the function only updates the viewPointHandler - no rendering is made.
39188
+ /**
39189
+ * This function is called when the user interacts with the navigation in the 3D Image view.
39190
+ * The mode indicates what should be done in the navigation like zooming or swiping.
39191
+ * @param avoidUpdateRendering If this parameter is set to true, the function only updates the viewPointHandler - no rendering is made.
39164
39192
  */
39165
39193
  _defineProperty(this, "handle3DVisualizationChanged", function (mode, params, avoidUpdateRendering) {
39166
39194
  var _this$getDoShow3DDime;
@@ -39247,10 +39275,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39247
39275
  _defineProperty(this, "getBasketIdsOfElementIdLogic", function (elementId) {
39248
39276
  return setHandlerInstance.getBasketIdOfElementId(_this.actSet(), elementId);
39249
39277
  });
39250
- /**
39251
- * This function is called when the the checkBox to ConfigSingle is triggered
39252
- * @param doConfigSingle new ConfigSingle value
39253
- * @param configStepKey act ConfigStep
39278
+ /**
39279
+ * This function is called when the the checkBox to ConfigSingle is triggered
39280
+ * @param doConfigSingle new ConfigSingle value
39281
+ * @param configStepKey act ConfigStep
39254
39282
  */
39255
39283
  _defineProperty(this, "configSingleIsChanged", /*#__PURE__*/function () {
39256
39284
  var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(doConfigSingle, configStepKey, groupedOptions, groupedArticles, optionCodex, tabGroupKey) {
@@ -39280,14 +39308,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39280
39308
  return _ref10.apply(this, arguments);
39281
39309
  };
39282
39310
  }());
39283
- /**
39284
- * this function is called when the an ConfigItem is clicked
39285
- * the configuration of targetArticles gets updated
39286
- *
39287
- * @param myValues a dictionary with the key of the OptionCodex and the value of the OptionValueCodex
39288
- * @param targetArticles array if BasketIds
39289
- * @param freeText freeText is null when specificly set to null. When nopt set at all its undefined
39290
- *
39311
+ /**
39312
+ * this function is called when the an ConfigItem is clicked
39313
+ * the configuration of targetArticles gets updated
39314
+ *
39315
+ * @param myValues a dictionary with the key of the OptionCodex and the value of the OptionValueCodex
39316
+ * @param targetArticles array if BasketIds
39317
+ * @param freeText freeText is null when specificly set to null. When nopt set at all its undefined
39318
+ *
39291
39319
  */
39292
39320
  //onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
39293
39321
  _defineProperty(this, "doConfigure", /*#__PURE__*/function () {
@@ -39552,17 +39580,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39552
39580
  this.onInitializationError();
39553
39581
  //fehler beim laden vom basket..
39554
39582
  LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {
39555
- /*
39556
- origProductId: basket.OrigProductId,
39557
- origDivaNr: this.divaBasketHandler.origConfiguration.originDivaNr,
39558
- bv: (set?.getSetPrice() ?? 0) / 1000,
39559
- cat: catalogData?.catalogCodex,
39560
- catName: catalogData?.catalogName,
39561
- accountName: catalogData?.accountName,
39562
- sup: catalogData?.supplierGuid,
39563
- journeyId: basket.CustomerJourneyId,
39564
- divaNr: basket.DivaNr,
39565
- documentVersion: basket.DocumentVersion,
39583
+ /*
39584
+ origProductId: basket.OrigProductId,
39585
+ origDivaNr: this.divaBasketHandler.origConfiguration.originDivaNr,
39586
+ bv: (set?.getSetPrice() ?? 0) / 1000,
39587
+ cat: catalogData?.catalogCodex,
39588
+ catName: catalogData?.catalogName,
39589
+ accountName: catalogData?.accountName,
39590
+ sup: catalogData?.supplierGuid,
39591
+ journeyId: basket.CustomerJourneyId,
39592
+ divaNr: basket.DivaNr,
39593
+ documentVersion: basket.DocumentVersion,
39566
39594
  plannerMode: this.getCurImageMode(),*/
39567
39595
  });
39568
39596
  return _context13.abrupt("return", false);
@@ -39709,8 +39737,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39709
39737
  return this.plannerHandler;
39710
39738
  }
39711
39739
 
39712
- /*
39713
- Wenn eine Planung geladen wurde, dann muss die View initialisiert werden
39740
+ /*
39741
+ Wenn eine Planung geladen wurde, dann muss die View initialisiert werden
39714
39742
  */
39715
39743
  }, {
39716
39744
  key: "initView",
@@ -39961,10 +39989,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39961
39989
  this.setHQRenderScript = setHQRenderScript;
39962
39990
  }
39963
39991
 
39964
- /**
39965
- * This function is called when the planner view should be updated
39966
- * @param callingFrom This parameter is used for debug Reasons. It can have information from where in the code the updatePlannerView is called
39967
- * @param viewpoint This parameter is used to send the viewpoint information from the rtv to unity
39992
+ /**
39993
+ * This function is called when the planner view should be updated
39994
+ * @param callingFrom This parameter is used for debug Reasons. It can have information from where in the code the updatePlannerView is called
39995
+ * @param viewpoint This parameter is used to send the viewpoint information from the rtv to unity
39968
39996
  */
39969
39997
  }, {
39970
39998
  key: "updatePlannerView",
@@ -40030,12 +40058,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40030
40058
  }
40031
40059
  }
40032
40060
 
40033
- /**
40034
- * This function forces loading the 3D image of a planning and the 2D planner.
40035
- * @param renderSavingMode Specifies if the rendering should be saved or not. If Stream is used, the rendering is only streamed from the 3DRenderer to the client and not saved.
40036
- * If TEMP is used the rendered image is saved temporarily on the MediaService - DEPRECTED
40037
- * If PERMANENT the rendering is saved permanent in the MediaService
40038
- * @param doLoadAllAltnerateRenderings Force load all alternate renderings - eg entering summary page load rendering with doors and without doors
40061
+ /**
40062
+ * This function forces loading the 3D image of a planning and the 2D planner.
40063
+ * @param renderSavingMode Specifies if the rendering should be saved or not. If Stream is used, the rendering is only streamed from the 3DRenderer to the client and not saved.
40064
+ * If TEMP is used the rendered image is saved temporarily on the MediaService - DEPRECTED
40065
+ * If PERMANENT the rendering is saved permanent in the MediaService
40066
+ * @param doLoadAllAltnerateRenderings Force load all alternate renderings - eg entering summary page load rendering with doors and without doors
40039
40067
  */
40040
40068
  }, {
40041
40069
  key: "forceUpdatePlannerView",
@@ -40065,8 +40093,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40065
40093
  }, {
40066
40094
  key: "destroyWebPlanner",
40067
40095
  value:
40068
- /**
40069
- * this function destroys some instances of the webPlanner bevor a new one gets created. Goal of this function is that the old webPlanner object doesnt make any trouble.
40096
+ /**
40097
+ * this function destroys some instances of the webPlanner bevor a new one gets created. Goal of this function is that the old webPlanner object doesnt make any trouble.
40070
40098
  */
40071
40099
 
40072
40100
  function destroyWebPlanner() {
@@ -40114,11 +40142,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40114
40142
  }
40115
40143
  return deletePlannerElement;
40116
40144
  }()
40117
- /**
40118
- * This function is called when a element should be copied.
40119
- * @param setId the setId the element to copy belongs too
40120
- * @param elementId The elementId that should be copied
40121
- * @param copyInfo This objects hold information that is needed for copying. For example when copying an element in the box planner, the information in which direction it should be copied is important.
40145
+ /**
40146
+ * This function is called when a element should be copied.
40147
+ * @param setId the setId the element to copy belongs too
40148
+ * @param elementId The elementId that should be copied
40149
+ * @param copyInfo This objects hold information that is needed for copying. For example when copying an element in the box planner, the information in which direction it should be copied is important.
40122
40150
  */
40123
40151
  }, {
40124
40152
  key: "copyPlannerElement",
@@ -40165,8 +40193,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40165
40193
  }, {
40166
40194
  key: "getPlanningIsComplete",
40167
40195
  value:
40168
- /**
40169
- * This function returns true if all Plannings are complete. Otherwise it returns false (Open AVL and AVR).
40196
+ /**
40197
+ * This function returns true if all Plannings are complete. Otherwise it returns false (Open AVL and AVR).
40170
40198
  */
40171
40199
  function getPlanningIsComplete(forceCheck) {
40172
40200
  return setHandlerInstance.getPlanningIsComplete(this.actSet(), forceCheck);
@@ -40362,9 +40390,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40362
40390
  (_this$actSet8 = this.actSet()) === null || _this$actSet8 === void 0 || _this$actSet8.setDifferentOptions(options);
40363
40391
  }
40364
40392
 
40365
- /**
40366
- * Updated the Price in the View.
40367
- * Should always be called after something was changed!
40393
+ /**
40394
+ * Updated the Price in the View.
40395
+ * Should always be called after something was changed!
40368
40396
  */
40369
40397
  }, {
40370
40398
  key: "updatePriceInView",
@@ -40374,9 +40402,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40374
40402
  (_this$updatePrice = this.updatePrice) === null || _this$updatePrice === void 0 || _this$updatePrice.call(this, setHandlerInstance.getTotalPrice(this.sets), this.actSet().getSetPrice(), setHandlerInstance.getTotalBruttoPrice(this.sets));
40375
40403
  }
40376
40404
 
40377
- /**
40378
- * this functions check if a specific event is taken care of by our client or if we have to do something. For example opening the Fullscreen 3D-Image window
40379
- * @param event to identify which event
40405
+ /**
40406
+ * this functions check if a specific event is taken care of by our client or if we have to do something. For example opening the Fullscreen 3D-Image window
40407
+ * @param event to identify which event
40380
40408
  */
40381
40409
  }, {
40382
40410
  key: "eventIsManagedByClient",
@@ -40392,10 +40420,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40392
40420
  DivaUtils.addToDataLayer(category, action, this.divaNr);
40393
40421
  }
40394
40422
 
40395
- /**
40396
- * this function calls genericly any event and passes specific params
40397
- * @param event to identify which event
40398
- * @param param parameters to pass over the event
40423
+ /**
40424
+ * this function calls genericly any event and passes specific params
40425
+ * @param event to identify which event
40426
+ * @param param parameters to pass over the event
40399
40427
  */
40400
40428
  }, {
40401
40429
  key: "callEvent",
@@ -40436,46 +40464,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40436
40464
  _this2 = this,
40437
40465
  _this$actions30,
40438
40466
  _this$i18n14;
40439
- var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, result, _this$actions27, _this$i18n8, _this$i18n9, _this$actions28, _this$i18n10, _this$i18n11, _this$actions29, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40467
+ var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, result, _this$actions27, _this$i18n8, _this$i18n9, _this$actions28, _this$i18n10, _this$i18n11, _this$actions29, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40440
40468
  return _regeneratorRuntime.wrap(function _callee25$(_context25) {
40441
40469
  while (1) switch (_context25.prev = _context25.next) {
40442
40470
  case 0:
40443
40471
  returnTo = this.getReturnTo(event);
40444
40472
  finalEvent = event;
40445
40473
  if (!(returnTo == 'OPEN_LEAFLET_BARRIER')) {
40446
- _context25.next = 14;
40474
+ _context25.next = 16;
40447
40475
  break;
40448
40476
  }
40449
40477
  product = undefined;
40450
40478
  if (!((_this$api$getBarrierC = this.api.getBarrierConfig()) !== null && _this$api$getBarrierC !== void 0 && _this$api$getBarrierC.affiliate)) {
40451
- _context25.next = 8;
40479
+ _context25.next = 10;
40452
40480
  break;
40453
40481
  }
40454
- _context25.next = 7;
40455
- return this.api.getDataCache(this.api.getCatalogProductUrl(this.actSet().getCatalogCodex()), undefined, undefined, 'catalog');
40456
- case 7:
40457
- _context25.sent;
40482
+ url = this.api.getCatalogProductUrl(this.actSet().getCatalogCodex());
40483
+ _context25.next = 8;
40484
+ return this.api.getDataCache(url, url, undefined, 'catalog');
40458
40485
  case 8:
40459
- _context25.next = 10;
40460
- return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
40486
+ _result = _context25.sent;
40487
+ product = productHandlerInstance.getBestMatch((_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getDivaArticles(), _result);
40461
40488
  case 10:
40489
+ _context25.next = 12;
40490
+ return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
40491
+ case 12:
40462
40492
  finalEvent = _context25.sent;
40463
40493
  if (finalEvent) {
40464
- _context25.next = 13;
40494
+ _context25.next = 15;
40465
40495
  break;
40466
40496
  }
40467
40497
  return _context25.abrupt("return", 'canceled');
40468
- case 13:
40498
+ case 15:
40469
40499
  returnTo = finalEvent == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40470
- case 14:
40500
+ case 16:
40471
40501
  (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || (_this$actions25$toggl = _this$actions25.toggleLoading) === null || _this$actions25$toggl === void 0 || _this$actions25$toggl.call(_this$actions25, 'Planner_Saving', false, true);
40472
- _context25.next = 17;
40502
+ _context25.next = 19;
40473
40503
  return this.saveToBasket(finalEvent, repairOnly, force);
40474
- case 17:
40504
+ case 19:
40475
40505
  result = _context25.sent;
40476
40506
  (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || (_this$actions26$toggl = _this$actions26.toggleLoading) === null || _this$actions26$toggl === void 0 || _this$actions26$toggl.call(_this$actions26, 'Planner_Saving', false, false);
40477
40507
  if (!(result === 'canceled')) {
40478
- _context25.next = 23;
40508
+ _context25.next = 25;
40479
40509
  break;
40480
40510
  }
40481
40511
  LOG$1.error(new DivaError('failed to save Basket'));
@@ -40484,11 +40514,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40484
40514
  accept: true
40485
40515
  });
40486
40516
  return _context25.abrupt("return", result);
40487
- case 23:
40517
+ case 25:
40488
40518
  _context25.t0 = returnTo;
40489
- _context25.next = _context25.t0 === 'OPEN_PDF' ? 26 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 28 : 29;
40519
+ _context25.next = _context25.t0 === 'OPEN_PDF' ? 28 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 30 : 31;
40490
40520
  break;
40491
- case 26:
40521
+ case 28:
40492
40522
  if (!this.getBasket().PDFDocumentURL) {
40493
40523
  LOG$1.error(new DivaError('PDF url is missing in basket', {
40494
40524
  code: 'WC_0010'
@@ -40506,22 +40536,22 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40506
40536
  }
40507
40537
  });
40508
40538
  }
40509
- return _context25.abrupt("break", 29);
40510
- case 28:
40539
+ return _context25.abrupt("break", 31);
40540
+ case 30:
40511
40541
  (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40512
40542
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
40513
40543
  accept: true
40514
40544
  });
40515
- case 29:
40545
+ case 31:
40516
40546
  if (!(result == 'noArticleToSave')) {
40517
- _context25.next = 32;
40547
+ _context25.next = 34;
40518
40548
  break;
40519
40549
  }
40520
40550
  (_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
40521
40551
  return _context25.abrupt("return", 'canceled');
40522
- case 32:
40552
+ case 34:
40523
40553
  return _context25.abrupt("return", result);
40524
- case 33:
40554
+ case 35:
40525
40555
  case "end":
40526
40556
  return _context25.stop();
40527
40557
  }
@@ -40711,11 +40741,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40711
40741
  return setHandlerInstance.checkBannerRules(set, visitedOptions, event);
40712
40742
  }
40713
40743
 
40714
- /**
40715
- * This function returns true if the Planner Mode should be visible and the planner Step should be shown.
40716
- * The planner step is not shown if:
40717
- * - There is no viewer Option set for the Planner
40718
- * - The box Planner is loaded
40744
+ /**
40745
+ * This function returns true if the Planner Mode should be visible and the planner Step should be shown.
40746
+ * The planner step is not shown if:
40747
+ * - There is no viewer Option set for the Planner
40748
+ * - The box Planner is loaded
40719
40749
  */
40720
40750
  }, {
40721
40751
  key: "getCurPlannerType",
@@ -40735,8 +40765,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40735
40765
 
40736
40766
  //if planner is hidden by config but nothing is planned initially
40737
40767
  if (plannerType === 'NONE') {
40738
- var _this$plannerConfig$a7, _this$actSet9;
40739
- if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a7 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a7 !== void 0 && _this$plannerConfig$a7.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet9 = this.actSet()) !== null && _this$actSet9 !== void 0 && (_this$actSet9 = _this$actSet9.CatalogData.startPlannerArticle) !== null && _this$actSet9 !== void 0 && _this$actSet9.length)) {
40768
+ var _this$plannerConfig$a7, _this$actSet10;
40769
+ if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a7 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a7 !== void 0 && _this$plannerConfig$a7.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet10 = this.actSet()) !== null && _this$actSet10 !== void 0 && (_this$actSet10 = _this$actSet10.CatalogData.startPlannerArticle) !== null && _this$actSet10 !== void 0 && _this$actSet10.length)) {
40740
40770
  plannerType = 'PLANNER';
40741
40771
  }
40742
40772
  }
@@ -40776,38 +40806,38 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40776
40806
  }, {
40777
40807
  key: "getCurCatalogCodex",
40778
40808
  value: function getCurCatalogCodex() {
40779
- var _this$actSet10;
40780
- return (_this$actSet10 = this.actSet()) === null || _this$actSet10 === void 0 ? void 0 : _this$actSet10.getCatalogCodex();
40809
+ var _this$actSet11;
40810
+ return (_this$actSet11 = this.actSet()) === null || _this$actSet11 === void 0 ? void 0 : _this$actSet11.getCatalogCodex();
40781
40811
  }
40782
40812
  }, {
40783
40813
  key: "getCurCatalogName",
40784
40814
  value: function getCurCatalogName() {
40785
- var _this$actSet11;
40786
- return (_this$actSet11 = this.actSet()) === null || _this$actSet11 === void 0 ? void 0 : _this$actSet11.getCatalogName();
40815
+ var _this$actSet12;
40816
+ return (_this$actSet12 = this.actSet()) === null || _this$actSet12 === void 0 ? void 0 : _this$actSet12.getCatalogName();
40787
40817
  }
40788
40818
  }, {
40789
40819
  key: "getCurAccountName",
40790
40820
  value: function getCurAccountName() {
40791
- var _this$actSet12;
40792
- return (_this$actSet12 = this.actSet()) === null || _this$actSet12 === void 0 ? void 0 : _this$actSet12.getAccountName();
40821
+ var _this$actSet13;
40822
+ return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getAccountName();
40793
40823
  }
40794
40824
  }, {
40795
40825
  key: "getCurSupplierGuid",
40796
40826
  value: function getCurSupplierGuid() {
40797
- var _this$actSet13;
40798
- return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getSupplierGuid();
40827
+ var _this$actSet14;
40828
+ return (_this$actSet14 = this.actSet()) === null || _this$actSet14 === void 0 ? void 0 : _this$actSet14.getSupplierGuid();
40799
40829
  }
40800
40830
  }, {
40801
40831
  key: "getCurSetPrice",
40802
40832
  value: function getCurSetPrice() {
40803
- var _this$actSet$getSetPr, _this$actSet14;
40804
- return (_this$actSet$getSetPr = (_this$actSet14 = this.actSet()) === null || _this$actSet14 === void 0 ? void 0 : _this$actSet14.getSetPrice()) !== null && _this$actSet$getSetPr !== void 0 ? _this$actSet$getSetPr : 0;
40833
+ var _this$actSet$getSetPr, _this$actSet15;
40834
+ return (_this$actSet$getSetPr = (_this$actSet15 = this.actSet()) === null || _this$actSet15 === void 0 ? void 0 : _this$actSet15.getSetPrice()) !== null && _this$actSet$getSetPr !== void 0 ? _this$actSet$getSetPr : 0;
40805
40835
  }
40806
40836
  }, {
40807
40837
  key: "getCurImageMode",
40808
40838
  value: function getCurImageMode() {
40809
- var _this$actSet15;
40810
- return (_this$actSet15 = this.actSet()) !== null && _this$actSet15 !== void 0 && (_this$actSet15 = _this$actSet15.CatalogData) !== null && _this$actSet15 !== void 0 && _this$actSet15.has3dModels ? '3D' : '2D';
40839
+ var _this$actSet16;
40840
+ return (_this$actSet16 = this.actSet()) !== null && _this$actSet16 !== void 0 && (_this$actSet16 = _this$actSet16.CatalogData) !== null && _this$actSet16 !== void 0 && _this$actSet16.has3dModels ? '3D' : '2D';
40811
40841
  }
40812
40842
  }, {
40813
40843
  key: "getViewConfig",
@@ -40838,65 +40868,65 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40838
40868
  }, {
40839
40869
  key: "doShow3DDimensionLines",
40840
40870
  value: function doShow3DDimensionLines() {
40841
- var _this$actSet16;
40842
- return (_this$actSet16 = this.actSet()) === null || _this$actSet16 === void 0 || (_this$actSet16 = _this$actSet16.CatalogData) === null || _this$actSet16 === void 0 ? void 0 : _this$actSet16.doShow3DDimensionLines;
40871
+ var _this$actSet17;
40872
+ return (_this$actSet17 = this.actSet()) === null || _this$actSet17 === void 0 || (_this$actSet17 = _this$actSet17.CatalogData) === null || _this$actSet17 === void 0 ? void 0 : _this$actSet17.doShow3DDimensionLines;
40843
40873
  }
40844
40874
  }, {
40845
40875
  key: "hidePlannerUiIcons",
40846
40876
  value: function hidePlannerUiIcons() {
40847
- var _this$actSet17;
40848
- return (_this$actSet17 = this.actSet()) === null || _this$actSet17 === void 0 || (_this$actSet17 = _this$actSet17.CatalogData) === null || _this$actSet17 === void 0 ? void 0 : _this$actSet17.hidePlannerUiIcons;
40877
+ var _this$actSet18;
40878
+ return (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 || (_this$actSet18 = _this$actSet18.CatalogData) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.hidePlannerUiIcons;
40849
40879
  }
40850
40880
  }, {
40851
40881
  key: "doShowPlannerReplaceMode",
40852
40882
  value: function doShowPlannerReplaceMode() {
40853
- var _this$actSet18, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
40854
- var catalogData = (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.CatalogData;
40883
+ var _this$actSet19, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
40884
+ var catalogData = (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.CatalogData;
40855
40885
  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;
40856
40886
  }
40857
40887
  }, {
40858
40888
  key: "doPlannerReplaceAutoSwitch",
40859
40889
  value: function doPlannerReplaceAutoSwitch() {
40860
- var _this$actSet19, _this$api$getViewConf3;
40861
- var catalogData = (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.CatalogData;
40890
+ var _this$actSet20, _this$api$getViewConf3;
40891
+ var catalogData = (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.CatalogData;
40862
40892
  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);
40863
40893
  }
40864
40894
  }, {
40865
40895
  key: "getHidePlanner",
40866
40896
  value: function getHidePlanner() {
40867
- var _this$actSet20;
40868
- return this.api.getHidePlanner() || !!((_this$actSet20 = this.actSet()) !== null && _this$actSet20 !== void 0 && _this$actSet20.CatalogData.useBoxPlanner);
40897
+ var _this$actSet21;
40898
+ return this.api.getHidePlanner() || !!((_this$actSet21 = this.actSet()) !== null && _this$actSet21 !== void 0 && _this$actSet21.CatalogData.useBoxPlanner);
40869
40899
  }
40870
40900
  }, {
40871
40901
  key: "getAllowRTV",
40872
40902
  value: function getAllowRTV() {
40873
- var _this$actSet21, _this$actSet22;
40903
+ var _this$actSet22, _this$actSet23;
40874
40904
  if (this.getEnableUnityRtvKombi()) return false;
40875
40905
  if (this.api.forceShowRTV()) return true;
40876
- if ((_this$actSet21 = this.actSet()) !== null && _this$actSet21 !== void 0 && _this$actSet21.CatalogData.divaForceRTV) return true;
40877
- if (this.api.getDoShowRTV() && (_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaArReady) return true;
40906
+ if ((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaForceRTV) return true;
40907
+ if (this.api.getDoShowRTV() && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
40878
40908
  return false;
40879
40909
  }
40880
40910
  }, {
40881
40911
  key: "geAllowQRCodeAR",
40882
40912
  value: function geAllowQRCodeAR() {
40883
- var _this$actSet23;
40884
- if (this.api.getDoShowAR() && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
40913
+ var _this$actSet24;
40914
+ if (this.api.getDoShowAR() && (_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaArReady) return true;
40885
40915
  return false;
40886
40916
  }
40887
40917
  }, {
40888
40918
  key: "getEnableUnityRtvKombi",
40889
40919
  value: function getEnableUnityRtvKombi() {
40890
- var _this$actSet24, _this$actSet25;
40920
+ var _this$actSet25, _this$actSet26;
40891
40921
  // if force rtv disable unity kombi - biohort
40892
- if ((_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaForceRTV) return false;
40893
- return ((_this$actSet25 = this.actSet()) === null || _this$actSet25 === void 0 ? void 0 : _this$actSet25.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
40922
+ if ((_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.divaForceRTV) return false;
40923
+ return ((_this$actSet26 = this.actSet()) === null || _this$actSet26 === void 0 ? void 0 : _this$actSet26.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
40894
40924
  }
40895
40925
  }, {
40896
40926
  key: "getShelfPlannerRTV",
40897
40927
  value: function getShelfPlannerRTV() {
40898
- var _this$actSet26;
40899
- return (_this$actSet26 = this.actSet()) === null || _this$actSet26 === void 0 ? void 0 : _this$actSet26.CatalogData.useShelfPlannerRTV;
40928
+ var _this$actSet27;
40929
+ return (_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData.useShelfPlannerRTV;
40900
40930
  }
40901
40931
  }, {
40902
40932
  key: "getBasketData",
@@ -40937,8 +40967,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40937
40967
  }, {
40938
40968
  key: "getCatalogData",
40939
40969
  value: function getCatalogData() {
40940
- var _this$actSet27;
40941
- return (_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData;
40970
+ var _this$actSet28;
40971
+ return (_this$actSet28 = this.actSet()) === null || _this$actSet28 === void 0 ? void 0 : _this$actSet28.CatalogData;
40942
40972
  }
40943
40973
  }, {
40944
40974
  key: "ReturnTo",
@@ -41641,8 +41671,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41641
41671
  return Object.values(this.sets);
41642
41672
  }
41643
41673
 
41644
- /**
41645
- * This function returns the planner mode.
41674
+ /**
41675
+ * This function returns the planner mode.
41646
41676
  */
41647
41677
  }, {
41648
41678
  key: "getPlannerMode",
@@ -41760,8 +41790,8 @@ var DockingPoint = /*#__PURE__*/function () {
41760
41790
  this.layer = layer;
41761
41791
  }
41762
41792
 
41763
- /**
41764
- * Creates a clone of the current dockingPoint
41793
+ /**
41794
+ * Creates a clone of the current dockingPoint
41765
41795
  */
41766
41796
  return _createClass(DockingPoint, [{
41767
41797
  key: "clone",
@@ -41840,10 +41870,10 @@ var DockingPoint = /*#__PURE__*/function () {
41840
41870
  get: function get() {
41841
41871
  return this.dockingPoint.dpFilter;
41842
41872
  }
41843
- /**
41844
- * This function is called when the dockingPoint is docked to another dockingPoint
41845
- * @param refDockingPoint The reference dockingpoint, this is docked to
41846
- * @param refElementId The elementId of the reference DockingPoint
41873
+ /**
41874
+ * This function is called when the dockingPoint is docked to another dockingPoint
41875
+ * @param refDockingPoint The reference dockingpoint, this is docked to
41876
+ * @param refElementId The elementId of the reference DockingPoint
41847
41877
  */
41848
41878
  }, {
41849
41879
  key: "doDock",
@@ -41853,8 +41883,8 @@ var DockingPoint = /*#__PURE__*/function () {
41853
41883
  this.dockingPoint.onElementId = refElementId;
41854
41884
  }
41855
41885
 
41856
- /**
41857
- * This function is called when the dockingpoint should be undocked
41886
+ /**
41887
+ * This function is called when the dockingpoint should be undocked
41858
41888
  */
41859
41889
  }, {
41860
41890
  key: "undock",
@@ -41864,9 +41894,9 @@ var DockingPoint = /*#__PURE__*/function () {
41864
41894
  this.dockingPoint.onElementId = undefined;
41865
41895
  }
41866
41896
 
41867
- /**
41868
- * This function is used to disable the dp temporarily. It is ignored in the planer
41869
- * @param doDisable
41897
+ /**
41898
+ * This function is used to disable the dp temporarily. It is ignored in the planer
41899
+ * @param doDisable
41870
41900
  */
41871
41901
  }, {
41872
41902
  key: "disableDP",
@@ -42174,24 +42204,24 @@ var Grid = /*#__PURE__*/function () {
42174
42204
  }
42175
42205
  this.updateRequredCells();
42176
42206
  }
42177
- /**
42178
- * this logic tries to fit in an accessoire on certain index
42179
- * if gridAllowedOnCells is not undefined it means the accessoire has some certain indexes where it can be placed.
42180
- * @param size cellsize of the accessoire
42181
- * @param index place where try to fit
42182
- * @param gridAllowedOnCells specific rules bounded with a parentCodex
42183
- * @returns
42184
- *
42185
- * type:
42186
- * "fitsOn" | -> accessoires has space
42187
- * "fitsOnParentRule" | -> accessoires has space on the specific parent rule
42188
- * "doesNotFit" | -> accessoires has not space
42189
- * "notAllowedByParentRule" -> accessoires has not space on the specific parent rule
42190
- * "fitsOnParentRuleButOriginalNotAllowed" -> accessoires has space somewhere eles but not on the original space
42191
- *
42192
- * index?: number -> final index where the accessoire has enough space to be placed
42193
- * size: number
42194
- * canOnlyFitOn?: number[] -> made for the error message to tell the user where the accessoire only can take place
42207
+ /**
42208
+ * this logic tries to fit in an accessoire on certain index
42209
+ * if gridAllowedOnCells is not undefined it means the accessoire has some certain indexes where it can be placed.
42210
+ * @param size cellsize of the accessoire
42211
+ * @param index place where try to fit
42212
+ * @param gridAllowedOnCells specific rules bounded with a parentCodex
42213
+ * @returns
42214
+ *
42215
+ * type:
42216
+ * "fitsOn" | -> accessoires has space
42217
+ * "fitsOnParentRule" | -> accessoires has space on the specific parent rule
42218
+ * "doesNotFit" | -> accessoires has not space
42219
+ * "notAllowedByParentRule" -> accessoires has not space on the specific parent rule
42220
+ * "fitsOnParentRuleButOriginalNotAllowed" -> accessoires has space somewhere eles but not on the original space
42221
+ *
42222
+ * index?: number -> final index where the accessoire has enough space to be placed
42223
+ * size: number
42224
+ * canOnlyFitOn?: number[] -> made for the error message to tell the user where the accessoire only can take place
42195
42225
  */
42196
42226
  return _createClass(Grid, [{
42197
42227
  key: "tryFitOnShelf",
@@ -42317,12 +42347,12 @@ var Grid = /*#__PURE__*/function () {
42317
42347
  });
42318
42348
  }
42319
42349
 
42320
- /**
42321
- * new accessoire gets placed in the grid
42322
- * @param index
42323
- * @param accessoire
42324
- * @param type
42325
- * @param onlyPlaceHolder
42350
+ /**
42351
+ * new accessoire gets placed in the grid
42352
+ * @param index
42353
+ * @param accessoire
42354
+ * @param type
42355
+ * @param onlyPlaceHolder
42326
42356
  */
42327
42357
  }, {
42328
42358
  key: "addAccessoireInCells",
@@ -42382,9 +42412,9 @@ var Grid = /*#__PURE__*/function () {
42382
42412
  }
42383
42413
  }
42384
42414
 
42385
- /**
42386
- * accessoire gets deleted in the grid
42387
- * @param index
42415
+ /**
42416
+ * accessoire gets deleted in the grid
42417
+ * @param index
42388
42418
  */
42389
42419
  }, {
42390
42420
  key: "deleteAccessoireInCells",
@@ -42623,9 +42653,9 @@ var Grid = /*#__PURE__*/function () {
42623
42653
  })) return false;
42624
42654
  return true;
42625
42655
  }
42626
- /**
42627
- * here the rules in heightGridCellCountOnRule get checked and controlled if the new rules != the current rule
42628
- * @returns
42656
+ /**
42657
+ * here the rules in heightGridCellCountOnRule get checked and controlled if the new rules != the current rule
42658
+ * @returns
42629
42659
  */
42630
42660
  }, {
42631
42661
  key: "onConfigChanged",
@@ -42651,11 +42681,11 @@ var Grid = /*#__PURE__*/function () {
42651
42681
  return returnTypes;
42652
42682
  }
42653
42683
 
42654
- /**
42655
- * complicated but well testet logic to move accessoires with drag and drop in the grid
42656
- * @param initialIndex from index
42657
- * @param finalIndex to index
42658
- * @returns
42684
+ /**
42685
+ * complicated but well testet logic to move accessoires with drag and drop in the grid
42686
+ * @param initialIndex from index
42687
+ * @param finalIndex to index
42688
+ * @returns
42659
42689
  */
42660
42690
  }, {
42661
42691
  key: "moveCell",
@@ -42794,9 +42824,9 @@ var Grid = /*#__PURE__*/function () {
42794
42824
  return resetCells ? 'RESETTED_CELLS' : 'SUCCESS';
42795
42825
  }
42796
42826
 
42797
- /**
42798
- *
42799
- * @returns if one or more cells a still required return true
42827
+ /**
42828
+ *
42829
+ * @returns if one or more cells a still required return true
42800
42830
  */
42801
42831
  }, {
42802
42832
  key: "areCellsStillRequired",
@@ -42810,9 +42840,9 @@ var Grid = /*#__PURE__*/function () {
42810
42840
  return false;
42811
42841
  }
42812
42842
 
42813
- /**
42814
- * here the heightGridCellRequired gets evaluated and updated in the cells
42815
- * gets always called after something was added, moved or removed in the cells
42843
+ /**
42844
+ * here the heightGridCellRequired gets evaluated and updated in the cells
42845
+ * gets always called after something was added, moved or removed in the cells
42816
42846
  */
42817
42847
  }, {
42818
42848
  key: "updateRequredCells",
@@ -43039,9 +43069,9 @@ var Grid = /*#__PURE__*/function () {
43039
43069
  })) || [];
43040
43070
  }
43041
43071
 
43042
- /**
43043
- * helperfuntion to get the parentshelfId of an shelfPlanner eg: T-Stück
43044
- * @returns
43072
+ /**
43073
+ * helperfuntion to get the parentshelfId of an shelfPlanner eg: T-Stück
43074
+ * @returns
43045
43075
  */
43046
43076
  }, {
43047
43077
  key: "getShelfParentShelfId",
@@ -59028,10 +59058,10 @@ var ProductHandler = /*#__PURE__*/function () {
59028
59058
  this.livingArea = livingArea;
59029
59059
  this.mainCategory = mainCategory;
59030
59060
  this.subCategory = subCategory;
59031
- /**
59032
- * Saves the products in the current state
59033
- * @param basket the basket data for which products get created/loaded
59034
- * @param catalogData the catalog data for this basket
59061
+ /**
59062
+ * Saves the products in the current state
59063
+ * @param basket the basket data for which products get created/loaded
59064
+ * @param catalogData the catalog data for this basket
59035
59065
  */
59036
59066
  _defineProperty(this, "createAndSave", /*#__PURE__*/function () {
59037
59067
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref) {
@@ -59067,12 +59097,12 @@ var ProductHandler = /*#__PURE__*/function () {
59067
59097
  return _ref2.apply(this, arguments);
59068
59098
  };
59069
59099
  }());
59070
- /**
59071
- * Saves the products in the current state
59072
- * @param basket the basket data for which products get created/loaded
59073
- * @param catalogData the catalog data for this basket
59074
- * @param catalogServiceUrl the url for the catalog service
59075
- * @param productData an optional list of products, if set no products get loaded from the server
59100
+ /**
59101
+ * Saves the products in the current state
59102
+ * @param basket the basket data for which products get created/loaded
59103
+ * @param catalogData the catalog data for this basket
59104
+ * @param catalogServiceUrl the url for the catalog service
59105
+ * @param productData an optional list of products, if set no products get loaded from the server
59076
59106
  */
59077
59107
  _defineProperty(this, "loadProducts", /*#__PURE__*/function () {
59078
59108
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(_ref3) {
@@ -59310,14 +59340,14 @@ var ProductHandler = /*#__PURE__*/function () {
59310
59340
  return _ref4.apply(this, arguments);
59311
59341
  };
59312
59342
  }());
59313
- /**
59314
- * Saves the products in the current state
59315
- * @param baseData the basedata of the base product
59316
- * @param classificationData the classification data of the base product
59317
- * @param variantData the list of varinat products
59318
- * @param removedProducts the ids of products that get removed
59319
- * @param removedMedia the list of media items that get removed
59320
- * @param classificationFields the lists of classification fields used
59343
+ /**
59344
+ * Saves the products in the current state
59345
+ * @param baseData the basedata of the base product
59346
+ * @param classificationData the classification data of the base product
59347
+ * @param variantData the list of varinat products
59348
+ * @param removedProducts the ids of products that get removed
59349
+ * @param removedMedia the list of media items that get removed
59350
+ * @param classificationFields the lists of classification fields used
59321
59351
  */
59322
59352
  _defineProperty(this, "saveData", /*#__PURE__*/function () {
59323
59353
  var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_ref9) {
@@ -59411,12 +59441,12 @@ var ProductHandler = /*#__PURE__*/function () {
59411
59441
  return _createClass(ProductHandler, [{
59412
59442
  key: "initVariant",
59413
59443
  value:
59414
- /**
59415
- * Calculates the inital state of one varinat data entry
59416
- *
59417
- * @param baseData the inital base data
59418
- * @param param1 one variant data entry
59419
- * @returns the inital state of one varinat data entry
59444
+ /**
59445
+ * Calculates the inital state of one varinat data entry
59446
+ *
59447
+ * @param baseData the inital base data
59448
+ * @param param1 one variant data entry
59449
+ * @returns the inital state of one varinat data entry
59420
59450
  */
59421
59451
  function initVariant(baseData, baseClassification, cv, product, classificationFields) {
59422
59452
  var _cv$VariantDescriptio, _baseData$articles, _classificationFields;