@crystaldesign/web-planner-logic 24.12.0 → 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.
- package/build/cjs/{DivaBoxPlanner-1c78ef85.js → DivaBoxPlanner-303a552b.js} +318 -317
- package/build/cjs/{DivaStandardPlanner-eb45e763.js → DivaStandardPlanner-2f994125.js} +82 -82
- package/build/cjs/{DoorPlanner-3a199423.js → DoorPlanner-1faa1593.js} +1 -1
- package/build/cjs/{Host3DSignalR-c52991a0.js → Host3DSignalR-a9bc4c70.js} +43 -43
- package/build/cjs/{LiviqueWWSHandler-6607e52f.js → LiviqueWWSHandler-e9462b37.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-2ea37e1d.js → PfisterWWSHandler-65b5992f.js} +6 -6
- package/build/cjs/{PlannerHandler2D-de64a752.js → PlannerHandler2D-9ce74b8c.js} +189 -189
- package/build/cjs/{SeriousBasketHandler-03648231.js → SeriousBasketHandler-c0d4f0f5.js} +1 -1
- package/build/cjs/{ShelfPlanner-4402bf3e.js → ShelfPlanner-642594d4.js} +86 -86
- package/build/cjs/{StandardWWSHandler-62bc3cc6.js → StandardWWSHandler-c7833d13.js} +1 -1
- package/build/cjs/{index-e86ab943.js → index-530d9304.js} +632 -632
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-655a32f3.js → DivaBoxPlanner-0748b14a.js} +318 -317
- package/build/esm/{DivaStandardPlanner-e1faf2c9.js → DivaStandardPlanner-2c8858b2.js} +82 -82
- package/build/esm/{DoorPlanner-cfebaef8.js → DoorPlanner-c640fd24.js} +1 -1
- package/build/esm/{Host3DSignalR-5d924d77.js → Host3DSignalR-aa3a4b4d.js} +43 -43
- package/build/esm/{LiviqueWWSHandler-62ff852e.js → LiviqueWWSHandler-8d2570dd.js} +1 -1
- package/build/esm/{PfisterWWSHandler-1cf1fce6.js → PfisterWWSHandler-c046e3ee.js} +6 -6
- package/build/esm/{PlannerHandler2D-ad96ee8d.js → PlannerHandler2D-844fc811.js} +189 -189
- package/build/esm/{SeriousBasketHandler-9e031da4.js → SeriousBasketHandler-b8e1b0da.js} +1 -1
- package/build/esm/{ShelfPlanner-4f446e61.js → ShelfPlanner-f3218c50.js} +86 -86
- package/build/esm/{StandardWWSHandler-e72ecb08.js → StandardWWSHandler-a3c5246b.js} +1 -1
- package/build/esm/{index-84339e2f.js → index-3870ea62.js} +632 -632
- package/build/esm/index.js +1 -1
- 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-
|
|
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-
|
|
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",
|
|
@@ -30794,12 +30794,12 @@ function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
30794
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; }
|
|
30795
30795
|
var LOG$8 = DivaUtils.initLog('Planner', 'DIVA-SET-HANDLER');
|
|
30796
30796
|
|
|
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
|
|
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
|
|
30803
30803
|
*/
|
|
30804
30804
|
var DivaSetHandler = /*#__PURE__*/function () {
|
|
30805
30805
|
function DivaSetHandler() {
|
|
@@ -31185,11 +31185,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31185
31185
|
return orderSets.length === index + 1 && orderSets[index].OrderLines.length != 0 || !!orderSets[index + 1] && orderSets[index + 1].OrderLines.length === 0;
|
|
31186
31186
|
}
|
|
31187
31187
|
|
|
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
|
|
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
|
|
31193
31193
|
*/
|
|
31194
31194
|
}, {
|
|
31195
31195
|
key: "correctPivotPosInOrderSets",
|
|
@@ -31305,9 +31305,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31305
31305
|
}
|
|
31306
31306
|
return initSet;
|
|
31307
31307
|
}()
|
|
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
|
|
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
|
|
31311
31311
|
*/
|
|
31312
31312
|
}, {
|
|
31313
31313
|
key: "destroyPlannerHandler",
|
|
@@ -31351,8 +31351,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31351
31351
|
value: function getFirstConfigStep(set) {
|
|
31352
31352
|
return set.configTree.getFirstConfigStepKey();
|
|
31353
31353
|
}
|
|
31354
|
-
/*
|
|
31355
|
-
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
|
|
31356
31356
|
*/
|
|
31357
31357
|
}, {
|
|
31358
31358
|
key: "addPlannerElement",
|
|
@@ -31392,15 +31392,15 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31392
31392
|
}
|
|
31393
31393
|
return addPlannerElement;
|
|
31394
31394
|
}()
|
|
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
|
|
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
|
|
31404
31404
|
*/
|
|
31405
31405
|
)
|
|
31406
31406
|
}, {
|
|
@@ -31478,9 +31478,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31478
31478
|
return set.plannerHandler.getAllViewPlannerElements();
|
|
31479
31479
|
}
|
|
31480
31480
|
|
|
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
|
|
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
|
|
31484
31484
|
*/
|
|
31485
31485
|
}, {
|
|
31486
31486
|
key: "getAllVisualiedNotPlannedElements",
|
|
@@ -31514,9 +31514,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31514
31514
|
return set.plannerHandler.get2DViewPlannerBoundingBox();
|
|
31515
31515
|
}
|
|
31516
31516
|
|
|
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
|
|
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
|
|
31520
31520
|
*/
|
|
31521
31521
|
}, {
|
|
31522
31522
|
key: "copyArticleByElementId",
|
|
@@ -32297,12 +32297,12 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32297
32297
|
}
|
|
32298
32298
|
return deleteAccessoire;
|
|
32299
32299
|
}()
|
|
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)
|
|
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)
|
|
32306
32306
|
*/
|
|
32307
32307
|
}, {
|
|
32308
32308
|
key: "update3DPlannerView",
|
|
@@ -32380,10 +32380,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32380
32380
|
return configTreeHandler.fillConfigStepKeysInAccessoireItem([article], set.configTree, (_article$articleRelat = article.articleRelations) !== null && _article$articleRelat !== void 0 ? _article$articleRelat : []);
|
|
32381
32381
|
}
|
|
32382
32382
|
|
|
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
|
|
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
|
|
32387
32387
|
*/
|
|
32388
32388
|
}, {
|
|
32389
32389
|
key: "getElementIdsOfArticles",
|
|
@@ -32399,10 +32399,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32399
32399
|
return elementIds;
|
|
32400
32400
|
}
|
|
32401
32401
|
|
|
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
|
|
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
|
|
32406
32406
|
*/
|
|
32407
32407
|
}, {
|
|
32408
32408
|
key: "getBaseParentArticleOfAccessoire",
|
|
@@ -32410,12 +32410,12 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32410
32410
|
var article = set.getBaseParentArticleOfAccessoire(accBasketId);
|
|
32411
32411
|
return article;
|
|
32412
32412
|
}
|
|
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
|
|
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
|
|
32419
32419
|
*/
|
|
32420
32420
|
}, {
|
|
32421
32421
|
key: "configSingleIsChanged",
|
|
@@ -32597,13 +32597,13 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32597
32597
|
return configItems;
|
|
32598
32598
|
}
|
|
32599
32599
|
|
|
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
|
|
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
|
|
32607
32607
|
*/
|
|
32608
32608
|
}, {
|
|
32609
32609
|
key: "variantsEvaluator",
|
|
@@ -32764,11 +32764,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32764
32764
|
}
|
|
32765
32765
|
}
|
|
32766
32766
|
|
|
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)
|
|
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)
|
|
32772
32772
|
*/
|
|
32773
32773
|
}, {
|
|
32774
32774
|
key: "updateArticlesOptionStatesOfActSet",
|
|
@@ -33213,8 +33213,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33213
33213
|
return price;
|
|
33214
33214
|
}
|
|
33215
33215
|
|
|
33216
|
-
/**
|
|
33217
|
-
* This function returns the price format of the current catalog
|
|
33216
|
+
/**
|
|
33217
|
+
* This function returns the price format of the current catalog
|
|
33218
33218
|
*/
|
|
33219
33219
|
}, {
|
|
33220
33220
|
key: "getActSetPriceFormat",
|
|
@@ -33543,10 +33543,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33543
33543
|
}
|
|
33544
33544
|
return getOrderSet;
|
|
33545
33545
|
}()
|
|
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)
|
|
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)
|
|
33550
33550
|
*/
|
|
33551
33551
|
}, {
|
|
33552
33552
|
key: "getSetImage",
|
|
@@ -33645,11 +33645,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33645
33645
|
}
|
|
33646
33646
|
return getHQRenderScript;
|
|
33647
33647
|
}()
|
|
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)
|
|
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)
|
|
33653
33653
|
*/
|
|
33654
33654
|
}, {
|
|
33655
33655
|
key: "getAlternateSetImages",
|
|
@@ -33831,8 +33831,8 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
33831
33831
|
_defineProperty(this, "startProductId", void 0);
|
|
33832
33832
|
//Only helper variable
|
|
33833
33833
|
_defineProperty(this, "origConfiguration", {});
|
|
33834
|
-
/**
|
|
33835
|
-
* This function returns the originalConfiguration options
|
|
33834
|
+
/**
|
|
33835
|
+
* This function returns the originalConfiguration options
|
|
33836
33836
|
*/
|
|
33837
33837
|
_defineProperty(this, "getOrigConfiguration", function () {
|
|
33838
33838
|
return _this.origConfiguration;
|
|
@@ -34803,7 +34803,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34803
34803
|
break;
|
|
34804
34804
|
case 3:
|
|
34805
34805
|
_context12.next = 5;
|
|
34806
|
-
return import('./PfisterWWSHandler-
|
|
34806
|
+
return import('./PfisterWWSHandler-c046e3ee.js');
|
|
34807
34807
|
case 5:
|
|
34808
34808
|
_yield$import = _context12.sent;
|
|
34809
34809
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -34811,7 +34811,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34811
34811
|
return _context12.abrupt("break", 27);
|
|
34812
34812
|
case 9:
|
|
34813
34813
|
_context12.next = 11;
|
|
34814
|
-
return import('./LiviqueWWSHandler-
|
|
34814
|
+
return import('./LiviqueWWSHandler-8d2570dd.js');
|
|
34815
34815
|
case 11:
|
|
34816
34816
|
_yield$import2 = _context12.sent;
|
|
34817
34817
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -34819,7 +34819,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34819
34819
|
return _context12.abrupt("break", 27);
|
|
34820
34820
|
case 15:
|
|
34821
34821
|
_context12.next = 17;
|
|
34822
|
-
return import('./SeriousBasketHandler-
|
|
34822
|
+
return import('./SeriousBasketHandler-b8e1b0da.js');
|
|
34823
34823
|
case 17:
|
|
34824
34824
|
_yield$import3 = _context12.sent;
|
|
34825
34825
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -34827,7 +34827,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34827
34827
|
return _context12.abrupt("break", 27);
|
|
34828
34828
|
case 21:
|
|
34829
34829
|
_context12.next = 23;
|
|
34830
|
-
return import('./StandardWWSHandler-
|
|
34830
|
+
return import('./StandardWWSHandler-a3c5246b.js');
|
|
34831
34831
|
case 23:
|
|
34832
34832
|
_yield$import4 = _context12.sent;
|
|
34833
34833
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -34934,9 +34934,9 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
34934
34934
|
this.vpInfosByRoom = new Map();
|
|
34935
34935
|
}
|
|
34936
34936
|
|
|
34937
|
-
/**
|
|
34938
|
-
* This function returns the room from te roomlist info.
|
|
34939
|
-
* @param roomCodex
|
|
34937
|
+
/**
|
|
34938
|
+
* This function returns the room from te roomlist info.
|
|
34939
|
+
* @param roomCodex
|
|
34940
34940
|
*/
|
|
34941
34941
|
return _createClass(ViewPointHandler, [{
|
|
34942
34942
|
key: "getRoomInfo",
|
|
@@ -34948,10 +34948,10 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
34948
34948
|
}
|
|
34949
34949
|
return undefined;
|
|
34950
34950
|
}
|
|
34951
|
-
/**
|
|
34952
|
-
* This function returns the viewpoint from te roomlist info.
|
|
34953
|
-
* @param roomCodex
|
|
34954
|
-
* @param vpCodex
|
|
34951
|
+
/**
|
|
34952
|
+
* This function returns the viewpoint from te roomlist info.
|
|
34953
|
+
* @param roomCodex
|
|
34954
|
+
* @param vpCodex
|
|
34955
34955
|
*/
|
|
34956
34956
|
}, {
|
|
34957
34957
|
key: "getVPInfo",
|
|
@@ -34979,10 +34979,10 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
34979
34979
|
return this.defaultWhiteroom;
|
|
34980
34980
|
}
|
|
34981
34981
|
|
|
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
|
|
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
|
|
34986
34986
|
*/
|
|
34987
34987
|
}, {
|
|
34988
34988
|
key: "resetViewPoint",
|
|
@@ -35094,11 +35094,11 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35094
35094
|
}
|
|
35095
35095
|
//------------------------------------------------Functionen Roomlist------------------------------------------------
|
|
35096
35096
|
|
|
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
|
|
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
|
|
35102
35102
|
*/
|
|
35103
35103
|
}, {
|
|
35104
35104
|
key: "setMainCategoryOfStaticRoom",
|
|
@@ -35114,9 +35114,9 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35114
35114
|
}
|
|
35115
35115
|
}
|
|
35116
35116
|
|
|
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
|
|
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
|
|
35120
35120
|
*/
|
|
35121
35121
|
}, {
|
|
35122
35122
|
key: "initRoomList",
|
|
@@ -35211,25 +35211,25 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35211
35211
|
roomIsSel = false;
|
|
35212
35212
|
}
|
|
35213
35213
|
}
|
|
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
|
|
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
|
|
35217
35217
|
*/
|
|
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
|
-
}
|
|
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
|
+
}
|
|
35233
35233
|
*/
|
|
35234
35234
|
}, {
|
|
35235
35235
|
key: "getStaticRoomList",
|
|
@@ -35295,11 +35295,11 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35295
35295
|
return result;
|
|
35296
35296
|
}
|
|
35297
35297
|
|
|
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
|
|
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
|
|
35303
35303
|
*/
|
|
35304
35304
|
}, {
|
|
35305
35305
|
key: "setVpInfoByRoomCodex",
|
|
@@ -35312,10 +35312,10 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35312
35312
|
return this.getVpInfoByRoomCodex(roomCodex, vpName);
|
|
35313
35313
|
}
|
|
35314
35314
|
|
|
35315
|
-
/**
|
|
35316
|
-
* Get the vpInformation of the viewPoint on the host.
|
|
35317
|
-
* @param roomCodex
|
|
35318
|
-
* @param vpName
|
|
35315
|
+
/**
|
|
35316
|
+
* Get the vpInformation of the viewPoint on the host.
|
|
35317
|
+
* @param roomCodex
|
|
35318
|
+
* @param vpName
|
|
35319
35319
|
*/
|
|
35320
35320
|
}, {
|
|
35321
35321
|
key: "getVpInfoByRoomCodex",
|
|
@@ -35329,8 +35329,8 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35329
35329
|
|
|
35330
35330
|
//------------------------------------------------------------Functions needed for 3D Rendering------------------------------------------------------------
|
|
35331
35331
|
|
|
35332
|
-
/**
|
|
35333
|
-
* This function returns the shadow Information of the current selected room
|
|
35332
|
+
/**
|
|
35333
|
+
* This function returns the shadow Information of the current selected room
|
|
35334
35334
|
*/
|
|
35335
35335
|
}, {
|
|
35336
35336
|
key: "getCurRoomShadowInfo",
|
|
@@ -35347,15 +35347,15 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35347
35347
|
return undefined;
|
|
35348
35348
|
}
|
|
35349
35349
|
|
|
35350
|
-
/**
|
|
35351
|
-
* This function returns if the current room/VP enables navigation (e.g. weissraum).
|
|
35352
|
-
* 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
|
|
35353
35353
|
*/
|
|
35354
|
-
/*
|
|
35355
|
-
public curVPHasStaticBG(): boolean {
|
|
35356
|
-
let vpInfo = this.getVPInfo(this.curRoomCodex, this.curViewPointName);
|
|
35357
|
-
if (vpInfo != undefined) return vpInfo.isStatic;
|
|
35358
|
-
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;
|
|
35359
35359
|
}*/
|
|
35360
35360
|
}, {
|
|
35361
35361
|
key: "getCurRoomlistVP",
|
|
@@ -35704,11 +35704,11 @@ var Rendering = /*#__PURE__*/function () {
|
|
|
35704
35704
|
value: function hasUIInfo() {
|
|
35705
35705
|
return this.uiInfo != '';
|
|
35706
35706
|
}
|
|
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
|
|
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
|
|
35712
35712
|
*/
|
|
35713
35713
|
}, {
|
|
35714
35714
|
key: "addImgAsBlob",
|
|
@@ -35921,16 +35921,16 @@ var RenderSettings = /*#__PURE__*/function () {
|
|
|
35921
35921
|
}
|
|
35922
35922
|
}]);
|
|
35923
35923
|
}();
|
|
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)
|
|
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)
|
|
35934
35934
|
*/
|
|
35935
35935
|
_defineProperty(RenderSettings, "TIMEOUT_WAITFORSAVEDRENDERING_MS", 9000);
|
|
35936
35936
|
|
|
@@ -36012,10 +36012,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36012
36012
|
_defineProperty(this, "todoAfterLogin", void 0);
|
|
36013
36013
|
_defineProperty(this, "jwt", void 0);
|
|
36014
36014
|
_defineProperty(this, "latestCamera", void 0);
|
|
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
|
|
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
|
|
36019
36019
|
*/
|
|
36020
36020
|
_defineProperty(this, "onErrorRequestingRendering", function (hash, size, option) {
|
|
36021
36021
|
var rendering = _this.waitForRenderings.get(hash);
|
|
@@ -36090,9 +36090,9 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36090
36090
|
this.jwt = jwt;
|
|
36091
36091
|
}
|
|
36092
36092
|
|
|
36093
|
-
/**
|
|
36094
|
-
* This function handels the initialization of the viewpoints of a whiteroom
|
|
36095
|
-
* @param standardWhiteRoom
|
|
36093
|
+
/**
|
|
36094
|
+
* This function handels the initialization of the viewpoints of a whiteroom
|
|
36095
|
+
* @param standardWhiteRoom
|
|
36096
36096
|
*/
|
|
36097
36097
|
}, {
|
|
36098
36098
|
key: "initializeViewPoint",
|
|
@@ -36130,10 +36130,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36130
36130
|
}
|
|
36131
36131
|
return initializeViewPoint;
|
|
36132
36132
|
}()
|
|
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
|
|
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
|
|
36137
36137
|
*/
|
|
36138
36138
|
)
|
|
36139
36139
|
}, {
|
|
@@ -36173,9 +36173,9 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36173
36173
|
}
|
|
36174
36174
|
return initializeStaticRoomList;
|
|
36175
36175
|
}()
|
|
36176
|
-
/**
|
|
36177
|
-
* This function sets all the callback methods that are used to communicate with the view
|
|
36178
|
-
* @param params
|
|
36176
|
+
/**
|
|
36177
|
+
* This function sets all the callback methods that are used to communicate with the view
|
|
36178
|
+
* @param params
|
|
36179
36179
|
*/
|
|
36180
36180
|
)
|
|
36181
36181
|
}, {
|
|
@@ -36217,7 +36217,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36217
36217
|
while (1) switch (_context3.prev = _context3.next) {
|
|
36218
36218
|
case 0:
|
|
36219
36219
|
_context3.next = 2;
|
|
36220
|
-
return import('./Host3DSignalR-
|
|
36220
|
+
return import('./Host3DSignalR-aa3a4b4d.js');
|
|
36221
36221
|
case 2:
|
|
36222
36222
|
_yield$import = _context3.sent;
|
|
36223
36223
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -36334,12 +36334,12 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36334
36334
|
}, {
|
|
36335
36335
|
key: "handleReceiveRendering",
|
|
36336
36336
|
value:
|
|
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
|
|
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
|
|
36343
36343
|
*/
|
|
36344
36344
|
function handleReceiveRendering(params) {
|
|
36345
36345
|
LOG$4.debug('handleReceiveRendering ' + params.hash + '; SameMode: ' + params.saveMode);
|
|
@@ -36379,10 +36379,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36379
36379
|
}
|
|
36380
36380
|
//-----------------------------------Private methods---------------------------------------------
|
|
36381
36381
|
|
|
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
|
|
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
|
|
36386
36386
|
*/
|
|
36387
36387
|
}, {
|
|
36388
36388
|
key: "updatePlannerRendering",
|
|
@@ -36395,11 +36395,11 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36395
36395
|
this.updatePlannerRenderingInView(rendering);
|
|
36396
36396
|
}
|
|
36397
36397
|
|
|
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
|
|
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
|
|
36403
36403
|
*/
|
|
36404
36404
|
}, {
|
|
36405
36405
|
key: "checkRenderingReady",
|
|
@@ -36410,8 +36410,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36410
36410
|
LOG$4.debug('Send to view. CurrentHash: ' + hash + '; lastRequestedHash: ' + this.lastRequestedRenderHash);
|
|
36411
36411
|
return true;
|
|
36412
36412
|
}
|
|
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.
|
|
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.
|
|
36415
36415
|
*/
|
|
36416
36416
|
}, {
|
|
36417
36417
|
key: "checkWaitForImage",
|
|
@@ -36438,10 +36438,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36438
36438
|
return true;
|
|
36439
36439
|
}
|
|
36440
36440
|
|
|
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
|
|
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
|
|
36445
36445
|
*/
|
|
36446
36446
|
}, {
|
|
36447
36447
|
key: "adjustRenderSize",
|
|
@@ -36471,8 +36471,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36471
36471
|
|
|
36472
36472
|
//-----------------------------------Methods called from PlannerHandler----------------------------
|
|
36473
36473
|
|
|
36474
|
-
/**
|
|
36475
|
-
* Returns the rendering that is currently displayed on the screen
|
|
36474
|
+
/**
|
|
36475
|
+
* Returns the rendering that is currently displayed on the screen
|
|
36476
36476
|
*/
|
|
36477
36477
|
}, {
|
|
36478
36478
|
key: "getCurrRendering",
|
|
@@ -36487,8 +36487,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36487
36487
|
});
|
|
36488
36488
|
}
|
|
36489
36489
|
|
|
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.
|
|
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.
|
|
36492
36492
|
*/
|
|
36493
36493
|
}, {
|
|
36494
36494
|
key: "getLastSavedRendering",
|
|
@@ -36545,8 +36545,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36545
36545
|
return !!this.lastSavedRendering;
|
|
36546
36546
|
}
|
|
36547
36547
|
|
|
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.
|
|
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.
|
|
36550
36550
|
*/
|
|
36551
36551
|
}, {
|
|
36552
36552
|
key: "getLastSavedAlternateRenderings",
|
|
@@ -36604,8 +36604,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36604
36604
|
}
|
|
36605
36605
|
return getLastSavedAlternateRenderings;
|
|
36606
36606
|
}()
|
|
36607
|
-
/**
|
|
36608
|
-
* 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.
|
|
36609
36609
|
*/
|
|
36610
36610
|
)
|
|
36611
36611
|
}, {
|
|
@@ -36650,20 +36650,20 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36650
36650
|
};
|
|
36651
36651
|
}
|
|
36652
36652
|
|
|
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
|
|
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
|
|
36667
36667
|
*/
|
|
36668
36668
|
}, {
|
|
36669
36669
|
key: "request3D",
|
|
@@ -36837,10 +36837,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36837
36837
|
return true;
|
|
36838
36838
|
}
|
|
36839
36839
|
|
|
36840
|
-
/**
|
|
36841
|
-
*
|
|
36842
|
-
* @param planningData
|
|
36843
|
-
* @returns
|
|
36840
|
+
/**
|
|
36841
|
+
*
|
|
36842
|
+
* @param planningData
|
|
36843
|
+
* @returns
|
|
36844
36844
|
*/
|
|
36845
36845
|
}, {
|
|
36846
36846
|
key: "getProductHash",
|
|
@@ -36884,10 +36884,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36884
36884
|
}
|
|
36885
36885
|
}
|
|
36886
36886
|
|
|
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
|
|
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
|
|
36891
36891
|
*/
|
|
36892
36892
|
}, {
|
|
36893
36893
|
key: "handle3DVisualizationChanged",
|
|
@@ -36951,8 +36951,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36951
36951
|
}
|
|
36952
36952
|
}
|
|
36953
36953
|
|
|
36954
|
-
/**
|
|
36955
|
-
* This function resets the viewpoint to default.
|
|
36954
|
+
/**
|
|
36955
|
+
* This function resets the viewpoint to default.
|
|
36956
36956
|
*/
|
|
36957
36957
|
}, {
|
|
36958
36958
|
key: "resetNav3D",
|
|
@@ -36964,8 +36964,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36964
36964
|
}
|
|
36965
36965
|
}
|
|
36966
36966
|
|
|
36967
|
-
/**
|
|
36968
|
-
* 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
|
|
36969
36969
|
*/
|
|
36970
36970
|
}, {
|
|
36971
36971
|
key: "getStaticRoomListItems",
|
|
@@ -37229,8 +37229,8 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
|
|
|
37229
37229
|
}();
|
|
37230
37230
|
var mediaServiceHandler = new DivaMediaServiceHandler();
|
|
37231
37231
|
|
|
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)
|
|
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)
|
|
37234
37234
|
*/
|
|
37235
37235
|
var BoundingBox = /*#__PURE__*/function () {
|
|
37236
37236
|
//y depth / z height
|
|
@@ -37243,10 +37243,10 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
37243
37243
|
this.size = new Vector3(0, 0, 0);
|
|
37244
37244
|
}
|
|
37245
37245
|
|
|
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
|
|
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
|
|
37250
37250
|
*/
|
|
37251
37251
|
return _createClass(BoundingBox, [{
|
|
37252
37252
|
key: "initPlannerBBox",
|
|
@@ -37334,9 +37334,9 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
37334
37334
|
this.size.z = globalMaxZ - globalMinZ;
|
|
37335
37335
|
}
|
|
37336
37336
|
|
|
37337
|
-
/**
|
|
37338
|
-
* This function returns the with of the bounding box
|
|
37339
|
-
* @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
|
|
37340
37340
|
*/
|
|
37341
37341
|
}, {
|
|
37342
37342
|
key: "getWidth",
|
|
@@ -37359,9 +37359,9 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
37359
37359
|
return Math.round(this.Size.x);
|
|
37360
37360
|
}
|
|
37361
37361
|
|
|
37362
|
-
/**
|
|
37363
|
-
* This function returns the depth of the bounding box
|
|
37364
|
-
* @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
|
|
37365
37365
|
*/
|
|
37366
37366
|
}, {
|
|
37367
37367
|
key: "getDepth",
|
|
@@ -37384,9 +37384,9 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
37384
37384
|
return Math.round(this.Size.z);
|
|
37385
37385
|
}
|
|
37386
37386
|
|
|
37387
|
-
/**
|
|
37388
|
-
* This function returns the height of the bounding box
|
|
37389
|
-
* @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
|
|
37390
37390
|
*/
|
|
37391
37391
|
}, {
|
|
37392
37392
|
key: "getHeight",
|
|
@@ -37421,8 +37421,8 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
37421
37421
|
}]);
|
|
37422
37422
|
}();
|
|
37423
37423
|
|
|
37424
|
-
/**
|
|
37425
|
-
* 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
|
|
37426
37426
|
*/
|
|
37427
37427
|
var SetPlannerHandler = /*#__PURE__*/function () {
|
|
37428
37428
|
function SetPlannerHandler() {
|
|
@@ -37431,11 +37431,11 @@ var SetPlannerHandler = /*#__PURE__*/function () {
|
|
|
37431
37431
|
this.globalBoundingBox = new BoundingBox();
|
|
37432
37432
|
}
|
|
37433
37433
|
|
|
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
|
|
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
|
|
37439
37439
|
*/
|
|
37440
37440
|
return _createClass(SetPlannerHandler, [{
|
|
37441
37441
|
key: "updateSetPosNr",
|
|
@@ -37467,9 +37467,9 @@ var SetPlannerHandler = /*#__PURE__*/function () {
|
|
|
37467
37467
|
}
|
|
37468
37468
|
}
|
|
37469
37469
|
|
|
37470
|
-
/**
|
|
37471
|
-
* This function returns the combined bounding Box of all planner bounding boxes
|
|
37472
|
-
* @param plannerList
|
|
37470
|
+
/**
|
|
37471
|
+
* This function returns the combined bounding Box of all planner bounding boxes
|
|
37472
|
+
* @param plannerList
|
|
37473
37473
|
*/
|
|
37474
37474
|
}, {
|
|
37475
37475
|
key: "getGlobalBoundingBoxForView",
|
|
@@ -37491,9 +37491,9 @@ var SetPlannerHandler = /*#__PURE__*/function () {
|
|
|
37491
37491
|
};
|
|
37492
37492
|
}
|
|
37493
37493
|
|
|
37494
|
-
/**
|
|
37495
|
-
* This function calculates the combined bounding Box of all planner bounding boxes
|
|
37496
|
-
* @param plannerList
|
|
37494
|
+
/**
|
|
37495
|
+
* This function calculates the combined bounding Box of all planner bounding boxes
|
|
37496
|
+
* @param plannerList
|
|
37497
37497
|
*/
|
|
37498
37498
|
}, {
|
|
37499
37499
|
key: "calcGlobalBoundingBox",
|
|
@@ -37509,9 +37509,9 @@ var SetPlannerHandler = /*#__PURE__*/function () {
|
|
|
37509
37509
|
this.globalBoundingBox = setBoundingBox;
|
|
37510
37510
|
}
|
|
37511
37511
|
|
|
37512
|
-
/**
|
|
37513
|
-
* This function returns the global bounding Box
|
|
37514
|
-
* @returns
|
|
37512
|
+
/**
|
|
37513
|
+
* This function returns the global bounding Box
|
|
37514
|
+
* @returns
|
|
37515
37515
|
*/
|
|
37516
37516
|
}, {
|
|
37517
37517
|
key: "getGlobalBoundingBox",
|
|
@@ -37533,9 +37533,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37533
37533
|
_defineProperty(this, "divaNr", void 0);
|
|
37534
37534
|
_defineProperty(this, "plannerHandlerFunctions", void 0);
|
|
37535
37535
|
_defineProperty(this, "plannerIDCount", 1);
|
|
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
|
|
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
|
|
37539
37539
|
*/
|
|
37540
37540
|
_defineProperty(this, "noRenderClientFound", function (doMakeRendering, doMakeHQRenderScript, width, height, isFullscreenRendering, planner3DGridEnabled, doShow3DDimensionLines, plannerMeasureDigits, alternateRendererInfo, alternateRenderingsExist) {
|
|
37541
37541
|
LOG$2.debug('noRenderClientFound - Request rendering again by sending all planningData');
|
|
@@ -37555,9 +37555,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37555
37555
|
this.handler3D = new PlannerHandler3D('WebPlanner', 'PfisterWebConfigurator', '', '', this.noRenderClientFound, onlyRunLogic);
|
|
37556
37556
|
}
|
|
37557
37557
|
|
|
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
|
|
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
|
|
37561
37561
|
*/
|
|
37562
37562
|
return _createClass(DivaPlannerHandler, [{
|
|
37563
37563
|
key: "initPlanner",
|
|
@@ -37629,9 +37629,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37629
37629
|
}
|
|
37630
37630
|
return initPlanner;
|
|
37631
37631
|
}()
|
|
37632
|
-
/**
|
|
37633
|
-
* This function updates the Planner. It is called after a configuration changed.
|
|
37634
|
-
* @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
|
|
37635
37635
|
*/
|
|
37636
37636
|
)
|
|
37637
37637
|
}, {
|
|
@@ -37673,10 +37673,10 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37673
37673
|
}
|
|
37674
37674
|
return updatePlanner;
|
|
37675
37675
|
}()
|
|
37676
|
-
/**
|
|
37677
|
-
* This function is called when a product is added to a existing set
|
|
37678
|
-
* @param set
|
|
37679
|
-
* @param setPlanData
|
|
37676
|
+
/**
|
|
37677
|
+
* This function is called when a product is added to a existing set
|
|
37678
|
+
* @param set
|
|
37679
|
+
* @param setPlanData
|
|
37680
37680
|
*/
|
|
37681
37681
|
)
|
|
37682
37682
|
}, {
|
|
@@ -37718,11 +37718,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37718
37718
|
}
|
|
37719
37719
|
return extendSet;
|
|
37720
37720
|
}()
|
|
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
|
|
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
|
|
37726
37726
|
*/
|
|
37727
37727
|
)
|
|
37728
37728
|
}, {
|
|
@@ -37769,7 +37769,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37769
37769
|
break;
|
|
37770
37770
|
case 8:
|
|
37771
37771
|
_context4.next = 10;
|
|
37772
|
-
return import('./DivaStandardPlanner-
|
|
37772
|
+
return import('./DivaStandardPlanner-2c8858b2.js');
|
|
37773
37773
|
case 10:
|
|
37774
37774
|
_yield$import = _context4.sent;
|
|
37775
37775
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -37780,7 +37780,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37780
37780
|
return _context4.abrupt("break", 21);
|
|
37781
37781
|
case 15:
|
|
37782
37782
|
_context4.next = 17;
|
|
37783
|
-
return import('./DivaBoxPlanner-
|
|
37783
|
+
return import('./DivaBoxPlanner-0748b14a.js');
|
|
37784
37784
|
case 17:
|
|
37785
37785
|
_yield$import2 = _context4.sent;
|
|
37786
37786
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -37821,8 +37821,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37821
37821
|
});
|
|
37822
37822
|
}
|
|
37823
37823
|
|
|
37824
|
-
/**
|
|
37825
|
-
* This function returns a JSON Object of the whole planner Saving
|
|
37824
|
+
/**
|
|
37825
|
+
* This function returns a JSON Object of the whole planner Saving
|
|
37826
37826
|
*/
|
|
37827
37827
|
}, {
|
|
37828
37828
|
key: "savePlanner",
|
|
@@ -37861,9 +37861,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37861
37861
|
};
|
|
37862
37862
|
}
|
|
37863
37863
|
|
|
37864
|
-
/**
|
|
37865
|
-
* This function returns the base 64 representation of the current displaying rendering
|
|
37866
|
-
* @param setId
|
|
37864
|
+
/**
|
|
37865
|
+
* This function returns the base 64 representation of the current displaying rendering
|
|
37866
|
+
* @param setId
|
|
37867
37867
|
*/
|
|
37868
37868
|
}, {
|
|
37869
37869
|
key: "getSetImageAsBase64",
|
|
@@ -37874,9 +37874,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37874
37874
|
return result;
|
|
37875
37875
|
}
|
|
37876
37876
|
|
|
37877
|
-
/**
|
|
37878
|
-
* This function returns the rendering of the last saved rendering
|
|
37879
|
-
* @param setId
|
|
37877
|
+
/**
|
|
37878
|
+
* This function returns the rendering of the last saved rendering
|
|
37879
|
+
* @param setId
|
|
37880
37880
|
*/
|
|
37881
37881
|
}, {
|
|
37882
37882
|
key: "getSetRendering",
|
|
@@ -37905,9 +37905,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37905
37905
|
}
|
|
37906
37906
|
return getSetRendering;
|
|
37907
37907
|
}()
|
|
37908
|
-
/**
|
|
37909
|
-
* This function returns the URL of the last saved rendering
|
|
37910
|
-
* @param setId
|
|
37908
|
+
/**
|
|
37909
|
+
* This function returns the URL of the last saved rendering
|
|
37910
|
+
* @param setId
|
|
37911
37911
|
*/
|
|
37912
37912
|
)
|
|
37913
37913
|
}, {
|
|
@@ -37950,10 +37950,10 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37950
37950
|
return hqRenderScript;
|
|
37951
37951
|
}
|
|
37952
37952
|
|
|
37953
|
-
/**
|
|
37954
|
-
* This function returns all lastsaved alternate Set Renderings as renderings
|
|
37955
|
-
* @param setId
|
|
37956
|
-
* @returns
|
|
37953
|
+
/**
|
|
37954
|
+
* This function returns all lastsaved alternate Set Renderings as renderings
|
|
37955
|
+
* @param setId
|
|
37956
|
+
* @returns
|
|
37957
37957
|
*/
|
|
37958
37958
|
}, {
|
|
37959
37959
|
key: "getAlternateSetRenderings",
|
|
@@ -37987,9 +37987,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37987
37987
|
}
|
|
37988
37988
|
return getAlternateSetRenderings;
|
|
37989
37989
|
}()
|
|
37990
|
-
/**
|
|
37991
|
-
* returns the URLs of all saved alternate renderings
|
|
37992
|
-
* @param setId
|
|
37990
|
+
/**
|
|
37991
|
+
* returns the URLs of all saved alternate renderings
|
|
37992
|
+
* @param setId
|
|
37993
37993
|
*/
|
|
37994
37994
|
)
|
|
37995
37995
|
}, {
|
|
@@ -38166,11 +38166,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38166
38166
|
}
|
|
38167
38167
|
return saveSetImage;
|
|
38168
38168
|
}()
|
|
38169
|
-
/**
|
|
38170
|
-
* This function makes shure that all alternate set images are saved
|
|
38171
|
-
* @param catCodex
|
|
38172
|
-
* @param catGUID
|
|
38173
|
-
* @returns
|
|
38169
|
+
/**
|
|
38170
|
+
* This function makes shure that all alternate set images are saved
|
|
38171
|
+
* @param catCodex
|
|
38172
|
+
* @param catGUID
|
|
38173
|
+
* @returns
|
|
38174
38174
|
*/
|
|
38175
38175
|
}, {
|
|
38176
38176
|
key: "saveAlternateSetImages",
|
|
@@ -38261,10 +38261,10 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38261
38261
|
}
|
|
38262
38262
|
return saveSet2DImage;
|
|
38263
38263
|
}()
|
|
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
|
|
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
|
|
38268
38268
|
*/
|
|
38269
38269
|
}, {
|
|
38270
38270
|
key: "destroyPlanner",
|
|
@@ -38281,8 +38281,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38281
38281
|
return false;
|
|
38282
38282
|
}
|
|
38283
38283
|
|
|
38284
|
-
/**
|
|
38285
|
-
* This function destroys all planner elements that are currently loaded.
|
|
38284
|
+
/**
|
|
38285
|
+
* This function destroys all planner elements that are currently loaded.
|
|
38286
38286
|
*/
|
|
38287
38287
|
}, {
|
|
38288
38288
|
key: "destroyAllPlanner",
|
|
@@ -38300,8 +38300,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38300
38300
|
return true;
|
|
38301
38301
|
}
|
|
38302
38302
|
|
|
38303
|
-
/**
|
|
38304
|
-
* 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
|
|
38305
38305
|
*/
|
|
38306
38306
|
}, {
|
|
38307
38307
|
key: "clearHandler3D",
|
|
@@ -38381,11 +38381,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38381
38381
|
}
|
|
38382
38382
|
return deletePlannerElement;
|
|
38383
38383
|
}()
|
|
38384
|
-
/**
|
|
38385
|
-
* This function gets all Elements that are copyied when copying one element.
|
|
38386
|
-
* @param setId
|
|
38387
|
-
* @param elementId
|
|
38388
|
-
* @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
|
|
38389
38389
|
*/
|
|
38390
38390
|
}, {
|
|
38391
38391
|
key: "getPlannerElementsInfluencedByCopy",
|
|
@@ -38396,11 +38396,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38396
38396
|
return this.plannerList.get(setId).getPlannerElementsInfluencedByCopy(elementId, copyInfo);
|
|
38397
38397
|
}
|
|
38398
38398
|
|
|
38399
|
-
/**
|
|
38400
|
-
* This function is used to copy an element in the planner
|
|
38401
|
-
* @param setId
|
|
38402
|
-
* @param articleCopyRelation
|
|
38403
|
-
* @param copyInfo
|
|
38399
|
+
/**
|
|
38400
|
+
* This function is used to copy an element in the planner
|
|
38401
|
+
* @param setId
|
|
38402
|
+
* @param articleCopyRelation
|
|
38403
|
+
* @param copyInfo
|
|
38404
38404
|
*/
|
|
38405
38405
|
}, {
|
|
38406
38406
|
key: "copyPlannerElements",
|
|
@@ -38434,13 +38434,13 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38434
38434
|
}
|
|
38435
38435
|
return copyPlannerElements;
|
|
38436
38436
|
}()
|
|
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
|
|
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
|
|
38444
38444
|
*/
|
|
38445
38445
|
)
|
|
38446
38446
|
}, {
|
|
@@ -38465,13 +38465,13 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38465
38465
|
return allPlanningsAreComplete;
|
|
38466
38466
|
}
|
|
38467
38467
|
|
|
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
|
|
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
|
|
38475
38475
|
*/
|
|
38476
38476
|
}, {
|
|
38477
38477
|
key: "getNeighborElementIds",
|
|
@@ -38522,8 +38522,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38522
38522
|
}
|
|
38523
38523
|
}
|
|
38524
38524
|
|
|
38525
|
-
/**
|
|
38526
|
-
* This function returns all viewPlannerElements of all planner
|
|
38525
|
+
/**
|
|
38526
|
+
* This function returns all viewPlannerElements of all planner
|
|
38527
38527
|
*/
|
|
38528
38528
|
}, {
|
|
38529
38529
|
key: "getAllViewPlannerElements",
|
|
@@ -38638,10 +38638,10 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38638
38638
|
}
|
|
38639
38639
|
return request3D;
|
|
38640
38640
|
}()
|
|
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
|
|
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
|
|
38645
38645
|
*/
|
|
38646
38646
|
}, {
|
|
38647
38647
|
key: "getProject3D",
|
|
@@ -38673,8 +38673,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38673
38673
|
}, {
|
|
38674
38674
|
key: "createPlanningHash",
|
|
38675
38675
|
value:
|
|
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.
|
|
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.
|
|
38678
38678
|
*/
|
|
38679
38679
|
function createPlanningHash() {
|
|
38680
38680
|
var _this5 = this;
|
|
@@ -38707,12 +38707,12 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38707
38707
|
|
|
38708
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; }
|
|
38709
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; }
|
|
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
|
|
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
|
|
38716
38716
|
*/
|
|
38717
38717
|
|
|
38718
38718
|
var LOG$1 = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
@@ -38807,9 +38807,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38807
38807
|
}
|
|
38808
38808
|
return somethingChanged;
|
|
38809
38809
|
});
|
|
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
|
|
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
|
|
38813
38813
|
*/
|
|
38814
38814
|
_defineProperty(this, "onRoomListLoaded", function () {
|
|
38815
38815
|
var set = _this.actSet();
|
|
@@ -38818,9 +38818,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38818
38818
|
(_this$updateStaticRoo = _this.updateStaticRoomListItems) === null || _this$updateStaticRoo === void 0 || _this$updateStaticRoo.call(_this, setHandlerInstance.getStaticRoomListItems(set), _this.api.getRoomListInProduct() || _this.plannerConfig.initMode);
|
|
38819
38819
|
}
|
|
38820
38820
|
});
|
|
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
|
|
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
|
|
38824
38824
|
*/
|
|
38825
38825
|
_defineProperty(this, "updatePlannerRendering", function (rendering) {
|
|
38826
38826
|
var _this$state;
|
|
@@ -38835,9 +38835,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38835
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);
|
|
38836
38836
|
}
|
|
38837
38837
|
});
|
|
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
|
|
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
|
|
38841
38841
|
*/
|
|
38842
38842
|
_defineProperty(this, "updatePlannerHqRenderScript", function (hqRenderscript) {
|
|
38843
38843
|
var _this$setHQRenderScri;
|
|
@@ -38863,8 +38863,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38863
38863
|
}
|
|
38864
38864
|
return false;
|
|
38865
38865
|
});
|
|
38866
|
-
/**
|
|
38867
|
-
* 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
|
|
38868
38868
|
*/
|
|
38869
38869
|
_defineProperty(this, "loadCatalogPlannerArticles", function (paletteeId, isUpdate, type, dockFilter, actStepName, stepKey) {
|
|
38870
38870
|
var _this$updateCatalogPl;
|
|
@@ -38872,18 +38872,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38872
38872
|
//Von diesem Katalog müssen wir die CatalogPlannerArticles laden.
|
|
38873
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);
|
|
38874
38874
|
});
|
|
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
|
|
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
|
|
38878
38878
|
*/
|
|
38879
38879
|
_defineProperty(this, "loadAccessoiresOfArticles", function (targetArticles) {
|
|
38880
38880
|
var set = _this.actSet();
|
|
38881
38881
|
if (!set) return;
|
|
38882
38882
|
_this.updateAccessoiresPalette(setHandlerInstance.getAccessoriesOfArticles(_this.actSet(), targetArticles), set.configAccessoiresInAccessoireStep ? 'ACC_CONFIG' : 'ACC');
|
|
38883
38883
|
});
|
|
38884
|
-
/**
|
|
38885
|
-
* this function is called when all Items of a ConfigStep are requested
|
|
38886
|
-
* @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
|
|
38887
38887
|
*/
|
|
38888
38888
|
_defineProperty(this, "loadConfigItemsOfOptions", /*#__PURE__*/function () {
|
|
38889
38889
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(configStepKey, paletteId, isUpdate, visible) {
|
|
@@ -38907,8 +38907,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38907
38907
|
return _ref.apply(this, arguments);
|
|
38908
38908
|
};
|
|
38909
38909
|
}());
|
|
38910
|
-
/**
|
|
38911
|
-
* this function laods the summary Items
|
|
38910
|
+
/**
|
|
38911
|
+
* this function laods the summary Items
|
|
38912
38912
|
*/
|
|
38913
38913
|
_defineProperty(this, "loadSummaryItems", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
38914
38914
|
var _this$actions, _this$actions$toggleL, _this$updateSummaryIt, _this$actions2, _this$actions2$toggle;
|
|
@@ -38952,18 +38952,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38952
38952
|
var _this$updateDoorPlann;
|
|
38953
38953
|
(_this$updateDoorPlann = _this.updateDoorPlannerItems) === null || _this$updateDoorPlann === void 0 || _this$updateDoorPlann.call(_this, setHandlerInstance.getDoorPlannerItems(_this.actSet(), configStepKey), configStepKey);
|
|
38954
38954
|
});
|
|
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
|
|
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
|
|
38958
38958
|
*/
|
|
38959
38959
|
_defineProperty(this, "destroyPlannerHandler", function (doDestroy3DHostConnection) {
|
|
38960
38960
|
setHandlerInstance.destroyPlannerHandler(_this.actSet(), doDestroy3DHostConnection);
|
|
38961
38961
|
if (_this.getCurPlannerViewMode) _this.updatePlannerView('DESTROY_PLANNER');
|
|
38962
38962
|
});
|
|
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
|
|
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
|
|
38967
38967
|
*/
|
|
38968
38968
|
_defineProperty(this, "addPlannerElement", /*#__PURE__*/function () {
|
|
38969
38969
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(elementCodex, initParams, dontUpdateView) {
|
|
@@ -39026,11 +39026,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39026
39026
|
return _ref3.apply(this, arguments);
|
|
39027
39027
|
};
|
|
39028
39028
|
}());
|
|
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
|
|
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
|
|
39034
39034
|
*/
|
|
39035
39035
|
_defineProperty(this, "switchPlannerElement", /*#__PURE__*/function () {
|
|
39036
39036
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(setId, elementId, articleCodex, initParams) {
|
|
@@ -39155,12 +39155,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39155
39155
|
return _ref6.apply(this, arguments);
|
|
39156
39156
|
};
|
|
39157
39157
|
}());
|
|
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
|
|
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
|
|
39164
39164
|
*/
|
|
39165
39165
|
_defineProperty(this, "updatePlannerTrans", /*#__PURE__*/function () {
|
|
39166
39166
|
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(setId, plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance) {
|
|
@@ -39185,10 +39185,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39185
39185
|
return _ref7.apply(this, arguments);
|
|
39186
39186
|
};
|
|
39187
39187
|
}());
|
|
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.
|
|
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.
|
|
39192
39192
|
*/
|
|
39193
39193
|
_defineProperty(this, "handle3DVisualizationChanged", function (mode, params, avoidUpdateRendering) {
|
|
39194
39194
|
var _this$getDoShow3DDime;
|
|
@@ -39275,10 +39275,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39275
39275
|
_defineProperty(this, "getBasketIdsOfElementIdLogic", function (elementId) {
|
|
39276
39276
|
return setHandlerInstance.getBasketIdOfElementId(_this.actSet(), elementId);
|
|
39277
39277
|
});
|
|
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
|
|
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
|
|
39282
39282
|
*/
|
|
39283
39283
|
_defineProperty(this, "configSingleIsChanged", /*#__PURE__*/function () {
|
|
39284
39284
|
var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(doConfigSingle, configStepKey, groupedOptions, groupedArticles, optionCodex, tabGroupKey) {
|
|
@@ -39308,14 +39308,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39308
39308
|
return _ref10.apply(this, arguments);
|
|
39309
39309
|
};
|
|
39310
39310
|
}());
|
|
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
|
-
*
|
|
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
|
+
*
|
|
39319
39319
|
*/
|
|
39320
39320
|
//onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
|
|
39321
39321
|
_defineProperty(this, "doConfigure", /*#__PURE__*/function () {
|
|
@@ -39580,17 +39580,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39580
39580
|
this.onInitializationError();
|
|
39581
39581
|
//fehler beim laden vom basket..
|
|
39582
39582
|
LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {
|
|
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,
|
|
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,
|
|
39594
39594
|
plannerMode: this.getCurImageMode(),*/
|
|
39595
39595
|
});
|
|
39596
39596
|
return _context13.abrupt("return", false);
|
|
@@ -39737,8 +39737,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39737
39737
|
return this.plannerHandler;
|
|
39738
39738
|
}
|
|
39739
39739
|
|
|
39740
|
-
/*
|
|
39741
|
-
Wenn eine Planung geladen wurde, dann muss die View initialisiert werden
|
|
39740
|
+
/*
|
|
39741
|
+
Wenn eine Planung geladen wurde, dann muss die View initialisiert werden
|
|
39742
39742
|
*/
|
|
39743
39743
|
}, {
|
|
39744
39744
|
key: "initView",
|
|
@@ -39989,10 +39989,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39989
39989
|
this.setHQRenderScript = setHQRenderScript;
|
|
39990
39990
|
}
|
|
39991
39991
|
|
|
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
|
|
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
|
|
39996
39996
|
*/
|
|
39997
39997
|
}, {
|
|
39998
39998
|
key: "updatePlannerView",
|
|
@@ -40058,12 +40058,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40058
40058
|
}
|
|
40059
40059
|
}
|
|
40060
40060
|
|
|
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
|
|
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
|
|
40067
40067
|
*/
|
|
40068
40068
|
}, {
|
|
40069
40069
|
key: "forceUpdatePlannerView",
|
|
@@ -40093,8 +40093,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40093
40093
|
}, {
|
|
40094
40094
|
key: "destroyWebPlanner",
|
|
40095
40095
|
value:
|
|
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.
|
|
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.
|
|
40098
40098
|
*/
|
|
40099
40099
|
|
|
40100
40100
|
function destroyWebPlanner() {
|
|
@@ -40142,11 +40142,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40142
40142
|
}
|
|
40143
40143
|
return deletePlannerElement;
|
|
40144
40144
|
}()
|
|
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.
|
|
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.
|
|
40150
40150
|
*/
|
|
40151
40151
|
}, {
|
|
40152
40152
|
key: "copyPlannerElement",
|
|
@@ -40193,8 +40193,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40193
40193
|
}, {
|
|
40194
40194
|
key: "getPlanningIsComplete",
|
|
40195
40195
|
value:
|
|
40196
|
-
/**
|
|
40197
|
-
* 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).
|
|
40198
40198
|
*/
|
|
40199
40199
|
function getPlanningIsComplete(forceCheck) {
|
|
40200
40200
|
return setHandlerInstance.getPlanningIsComplete(this.actSet(), forceCheck);
|
|
@@ -40390,9 +40390,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40390
40390
|
(_this$actSet8 = this.actSet()) === null || _this$actSet8 === void 0 || _this$actSet8.setDifferentOptions(options);
|
|
40391
40391
|
}
|
|
40392
40392
|
|
|
40393
|
-
/**
|
|
40394
|
-
* Updated the Price in the View.
|
|
40395
|
-
* 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!
|
|
40396
40396
|
*/
|
|
40397
40397
|
}, {
|
|
40398
40398
|
key: "updatePriceInView",
|
|
@@ -40402,9 +40402,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40402
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));
|
|
40403
40403
|
}
|
|
40404
40404
|
|
|
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
|
|
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
|
|
40408
40408
|
*/
|
|
40409
40409
|
}, {
|
|
40410
40410
|
key: "eventIsManagedByClient",
|
|
@@ -40420,10 +40420,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40420
40420
|
DivaUtils.addToDataLayer(category, action, this.divaNr);
|
|
40421
40421
|
}
|
|
40422
40422
|
|
|
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
|
|
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
|
|
40427
40427
|
*/
|
|
40428
40428
|
}, {
|
|
40429
40429
|
key: "callEvent",
|
|
@@ -40741,11 +40741,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40741
40741
|
return setHandlerInstance.checkBannerRules(set, visitedOptions, event);
|
|
40742
40742
|
}
|
|
40743
40743
|
|
|
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
|
|
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
|
|
40749
40749
|
*/
|
|
40750
40750
|
}, {
|
|
40751
40751
|
key: "getCurPlannerType",
|
|
@@ -41671,8 +41671,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41671
41671
|
return Object.values(this.sets);
|
|
41672
41672
|
}
|
|
41673
41673
|
|
|
41674
|
-
/**
|
|
41675
|
-
* This function returns the planner mode.
|
|
41674
|
+
/**
|
|
41675
|
+
* This function returns the planner mode.
|
|
41676
41676
|
*/
|
|
41677
41677
|
}, {
|
|
41678
41678
|
key: "getPlannerMode",
|
|
@@ -41790,8 +41790,8 @@ var DockingPoint = /*#__PURE__*/function () {
|
|
|
41790
41790
|
this.layer = layer;
|
|
41791
41791
|
}
|
|
41792
41792
|
|
|
41793
|
-
/**
|
|
41794
|
-
* Creates a clone of the current dockingPoint
|
|
41793
|
+
/**
|
|
41794
|
+
* Creates a clone of the current dockingPoint
|
|
41795
41795
|
*/
|
|
41796
41796
|
return _createClass(DockingPoint, [{
|
|
41797
41797
|
key: "clone",
|
|
@@ -41870,10 +41870,10 @@ var DockingPoint = /*#__PURE__*/function () {
|
|
|
41870
41870
|
get: function get() {
|
|
41871
41871
|
return this.dockingPoint.dpFilter;
|
|
41872
41872
|
}
|
|
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
|
|
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
|
|
41877
41877
|
*/
|
|
41878
41878
|
}, {
|
|
41879
41879
|
key: "doDock",
|
|
@@ -41883,8 +41883,8 @@ var DockingPoint = /*#__PURE__*/function () {
|
|
|
41883
41883
|
this.dockingPoint.onElementId = refElementId;
|
|
41884
41884
|
}
|
|
41885
41885
|
|
|
41886
|
-
/**
|
|
41887
|
-
* This function is called when the dockingpoint should be undocked
|
|
41886
|
+
/**
|
|
41887
|
+
* This function is called when the dockingpoint should be undocked
|
|
41888
41888
|
*/
|
|
41889
41889
|
}, {
|
|
41890
41890
|
key: "undock",
|
|
@@ -41894,9 +41894,9 @@ var DockingPoint = /*#__PURE__*/function () {
|
|
|
41894
41894
|
this.dockingPoint.onElementId = undefined;
|
|
41895
41895
|
}
|
|
41896
41896
|
|
|
41897
|
-
/**
|
|
41898
|
-
* This function is used to disable the dp temporarily. It is ignored in the planer
|
|
41899
|
-
* @param doDisable
|
|
41897
|
+
/**
|
|
41898
|
+
* This function is used to disable the dp temporarily. It is ignored in the planer
|
|
41899
|
+
* @param doDisable
|
|
41900
41900
|
*/
|
|
41901
41901
|
}, {
|
|
41902
41902
|
key: "disableDP",
|
|
@@ -42204,24 +42204,24 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42204
42204
|
}
|
|
42205
42205
|
this.updateRequredCells();
|
|
42206
42206
|
}
|
|
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
|
|
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
|
|
42225
42225
|
*/
|
|
42226
42226
|
return _createClass(Grid, [{
|
|
42227
42227
|
key: "tryFitOnShelf",
|
|
@@ -42347,12 +42347,12 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42347
42347
|
});
|
|
42348
42348
|
}
|
|
42349
42349
|
|
|
42350
|
-
/**
|
|
42351
|
-
* new accessoire gets placed in the grid
|
|
42352
|
-
* @param index
|
|
42353
|
-
* @param accessoire
|
|
42354
|
-
* @param type
|
|
42355
|
-
* @param onlyPlaceHolder
|
|
42350
|
+
/**
|
|
42351
|
+
* new accessoire gets placed in the grid
|
|
42352
|
+
* @param index
|
|
42353
|
+
* @param accessoire
|
|
42354
|
+
* @param type
|
|
42355
|
+
* @param onlyPlaceHolder
|
|
42356
42356
|
*/
|
|
42357
42357
|
}, {
|
|
42358
42358
|
key: "addAccessoireInCells",
|
|
@@ -42412,9 +42412,9 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42412
42412
|
}
|
|
42413
42413
|
}
|
|
42414
42414
|
|
|
42415
|
-
/**
|
|
42416
|
-
* accessoire gets deleted in the grid
|
|
42417
|
-
* @param index
|
|
42415
|
+
/**
|
|
42416
|
+
* accessoire gets deleted in the grid
|
|
42417
|
+
* @param index
|
|
42418
42418
|
*/
|
|
42419
42419
|
}, {
|
|
42420
42420
|
key: "deleteAccessoireInCells",
|
|
@@ -42653,9 +42653,9 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42653
42653
|
})) return false;
|
|
42654
42654
|
return true;
|
|
42655
42655
|
}
|
|
42656
|
-
/**
|
|
42657
|
-
* here the rules in heightGridCellCountOnRule get checked and controlled if the new rules != the current rule
|
|
42658
|
-
* @returns
|
|
42656
|
+
/**
|
|
42657
|
+
* here the rules in heightGridCellCountOnRule get checked and controlled if the new rules != the current rule
|
|
42658
|
+
* @returns
|
|
42659
42659
|
*/
|
|
42660
42660
|
}, {
|
|
42661
42661
|
key: "onConfigChanged",
|
|
@@ -42681,11 +42681,11 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42681
42681
|
return returnTypes;
|
|
42682
42682
|
}
|
|
42683
42683
|
|
|
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
|
|
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
|
|
42689
42689
|
*/
|
|
42690
42690
|
}, {
|
|
42691
42691
|
key: "moveCell",
|
|
@@ -42824,9 +42824,9 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42824
42824
|
return resetCells ? 'RESETTED_CELLS' : 'SUCCESS';
|
|
42825
42825
|
}
|
|
42826
42826
|
|
|
42827
|
-
/**
|
|
42828
|
-
*
|
|
42829
|
-
* @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
|
|
42830
42830
|
*/
|
|
42831
42831
|
}, {
|
|
42832
42832
|
key: "areCellsStillRequired",
|
|
@@ -42840,9 +42840,9 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42840
42840
|
return false;
|
|
42841
42841
|
}
|
|
42842
42842
|
|
|
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
|
|
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
|
|
42846
42846
|
*/
|
|
42847
42847
|
}, {
|
|
42848
42848
|
key: "updateRequredCells",
|
|
@@ -43069,9 +43069,9 @@ var Grid = /*#__PURE__*/function () {
|
|
|
43069
43069
|
})) || [];
|
|
43070
43070
|
}
|
|
43071
43071
|
|
|
43072
|
-
/**
|
|
43073
|
-
* helperfuntion to get the parentshelfId of an shelfPlanner eg: T-Stück
|
|
43074
|
-
* @returns
|
|
43072
|
+
/**
|
|
43073
|
+
* helperfuntion to get the parentshelfId of an shelfPlanner eg: T-Stück
|
|
43074
|
+
* @returns
|
|
43075
43075
|
*/
|
|
43076
43076
|
}, {
|
|
43077
43077
|
key: "getShelfParentShelfId",
|
|
@@ -59058,10 +59058,10 @@ var ProductHandler = /*#__PURE__*/function () {
|
|
|
59058
59058
|
this.livingArea = livingArea;
|
|
59059
59059
|
this.mainCategory = mainCategory;
|
|
59060
59060
|
this.subCategory = subCategory;
|
|
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
|
|
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
|
|
59065
59065
|
*/
|
|
59066
59066
|
_defineProperty(this, "createAndSave", /*#__PURE__*/function () {
|
|
59067
59067
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref) {
|
|
@@ -59097,12 +59097,12 @@ var ProductHandler = /*#__PURE__*/function () {
|
|
|
59097
59097
|
return _ref2.apply(this, arguments);
|
|
59098
59098
|
};
|
|
59099
59099
|
}());
|
|
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
|
|
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
|
|
59106
59106
|
*/
|
|
59107
59107
|
_defineProperty(this, "loadProducts", /*#__PURE__*/function () {
|
|
59108
59108
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(_ref3) {
|
|
@@ -59340,14 +59340,14 @@ var ProductHandler = /*#__PURE__*/function () {
|
|
|
59340
59340
|
return _ref4.apply(this, arguments);
|
|
59341
59341
|
};
|
|
59342
59342
|
}());
|
|
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
|
|
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
|
|
59351
59351
|
*/
|
|
59352
59352
|
_defineProperty(this, "saveData", /*#__PURE__*/function () {
|
|
59353
59353
|
var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_ref9) {
|
|
@@ -59441,12 +59441,12 @@ var ProductHandler = /*#__PURE__*/function () {
|
|
|
59441
59441
|
return _createClass(ProductHandler, [{
|
|
59442
59442
|
key: "initVariant",
|
|
59443
59443
|
value:
|
|
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
|
|
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
|
|
59450
59450
|
*/
|
|
59451
59451
|
function initVariant(baseData, baseClassification, cv, product, classificationFields) {
|
|
59452
59452
|
var _cv$VariantDescriptio, _baseData$articles, _classificationFields;
|