@crystaldesign/web-planner-logic 24.12.1 → 24.12.2
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-303a552b.js → DivaBoxPlanner-1c78ef85.js} +317 -318
- package/build/cjs/{DivaStandardPlanner-2f994125.js → DivaStandardPlanner-eb45e763.js} +82 -82
- package/build/cjs/{DoorPlanner-1faa1593.js → DoorPlanner-3a199423.js} +1 -1
- package/build/cjs/{Host3DSignalR-a9bc4c70.js → Host3DSignalR-c52991a0.js} +43 -43
- package/build/cjs/{LiviqueWWSHandler-e9462b37.js → LiviqueWWSHandler-6607e52f.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-65b5992f.js → PfisterWWSHandler-2ea37e1d.js} +6 -6
- package/build/cjs/{PlannerHandler2D-9ce74b8c.js → PlannerHandler2D-de64a752.js} +189 -189
- package/build/cjs/{SeriousBasketHandler-c0d4f0f5.js → SeriousBasketHandler-03648231.js} +1 -1
- package/build/cjs/{ShelfPlanner-642594d4.js → ShelfPlanner-4402bf3e.js} +86 -86
- package/build/cjs/{StandardWWSHandler-c7833d13.js → StandardWWSHandler-62bc3cc6.js} +1 -1
- package/build/cjs/{index-530d9304.js → index-e86ab943.js} +632 -632
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-0748b14a.js → DivaBoxPlanner-655a32f3.js} +317 -318
- package/build/esm/{DivaStandardPlanner-2c8858b2.js → DivaStandardPlanner-e1faf2c9.js} +82 -82
- package/build/esm/{DoorPlanner-c640fd24.js → DoorPlanner-cfebaef8.js} +1 -1
- package/build/esm/{Host3DSignalR-aa3a4b4d.js → Host3DSignalR-5d924d77.js} +43 -43
- package/build/esm/{LiviqueWWSHandler-8d2570dd.js → LiviqueWWSHandler-62ff852e.js} +1 -1
- package/build/esm/{PfisterWWSHandler-c046e3ee.js → PfisterWWSHandler-1cf1fce6.js} +6 -6
- package/build/esm/{PlannerHandler2D-844fc811.js → PlannerHandler2D-ad96ee8d.js} +189 -189
- package/build/esm/{SeriousBasketHandler-b8e1b0da.js → SeriousBasketHandler-9e031da4.js} +1 -1
- package/build/esm/{ShelfPlanner-f3218c50.js → ShelfPlanner-4f446e61.js} +86 -86
- package/build/esm/{StandardWWSHandler-a3c5246b.js → StandardWWSHandler-e72ecb08.js} +1 -1
- package/build/esm/{index-3870ea62.js → index-84339e2f.js} +632 -632
- package/build/esm/index.js +1 -1
- package/package.json +2 -2
|
@@ -15933,9 +15933,9 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
15933
15933
|
_mask$properties;
|
|
15934
15934
|
_classCallCheck__default["default"](this, OptionValueCatalogData);
|
|
15935
15935
|
_defineProperty__default["default"](this, "opv", void 0);
|
|
15936
|
-
/**
|
|
15937
|
-
* this function mapps the ral colors to color groups for the color filtering
|
|
15938
|
-
* @returns
|
|
15936
|
+
/**
|
|
15937
|
+
* this function mapps the ral colors to color groups for the color filtering
|
|
15938
|
+
* @returns
|
|
15939
15939
|
*/
|
|
15940
15940
|
_defineProperty__default["default"](this, "mapRALColorToGroup", function () {
|
|
15941
15941
|
var _this$opv$rals;
|
|
@@ -16998,15 +16998,15 @@ var CatalogArticleData = /*#__PURE__*/function () {
|
|
|
16998
16998
|
key: "getOPTDefaultInVisible",
|
|
16999
16999
|
value: function getOPTDefaultInVisible(optionCodex) {
|
|
17000
17000
|
return this.catalogArticle.articleOptions[optionCodex].isInvisible;
|
|
17001
|
-
/*if (this.catalogArticle.articleOptions[optionCodex]) {
|
|
17002
|
-
return this.catalogArticle.articleOptions[optionCodex].isInvisible;
|
|
17003
|
-
}
|
|
17001
|
+
/*if (this.catalogArticle.articleOptions[optionCodex]) {
|
|
17002
|
+
return this.catalogArticle.articleOptions[optionCodex].isInvisible;
|
|
17003
|
+
}
|
|
17004
17004
|
return false;*/
|
|
17005
17005
|
}
|
|
17006
17006
|
|
|
17007
|
-
/*following functions contain Loadingprocess of the ArticleData recived by the API. It includes
|
|
17008
|
-
loading more specific Articles Information like "articleRelations" && "partListArticles" && "j3D"(for Regalplanner z.B. Jutzler)
|
|
17009
|
-
&& "articleOptions" && "articleOptionvalues" && "decisions" && "partlistDecisions" && "articlePrices"
|
|
17007
|
+
/*following functions contain Loadingprocess of the ArticleData recived by the API. It includes
|
|
17008
|
+
loading more specific Articles Information like "articleRelations" && "partListArticles" && "j3D"(for Regalplanner z.B. Jutzler)
|
|
17009
|
+
&& "articleOptions" && "articleOptionvalues" && "decisions" && "partlistDecisions" && "articlePrices"
|
|
17010
17010
|
*/
|
|
17011
17011
|
}, {
|
|
17012
17012
|
key: "initCatalogPlannerArticle",
|
|
@@ -17355,10 +17355,10 @@ var Vector2 = /*#__PURE__*/function () {
|
|
|
17355
17355
|
return new Vector2(vec1.x + vec2.x, vec1.y + vec2.y);
|
|
17356
17356
|
}
|
|
17357
17357
|
|
|
17358
|
-
/**
|
|
17359
|
-
* Returns the direction vector from the fromVec to the toVec
|
|
17360
|
-
* @param toVec The position the direction is pointing to
|
|
17361
|
-
* @param fromVec The source position of the direction
|
|
17358
|
+
/**
|
|
17359
|
+
* Returns the direction vector from the fromVec to the toVec
|
|
17360
|
+
* @param toVec The position the direction is pointing to
|
|
17361
|
+
* @param fromVec The source position of the direction
|
|
17362
17362
|
*/
|
|
17363
17363
|
}, {
|
|
17364
17364
|
key: "getDirection",
|
|
@@ -17366,10 +17366,10 @@ var Vector2 = /*#__PURE__*/function () {
|
|
|
17366
17366
|
return new Vector2(toVec.x - fromVec.x, toVec.y - fromVec.y);
|
|
17367
17367
|
}
|
|
17368
17368
|
|
|
17369
|
-
/**
|
|
17370
|
-
* This function returns the distance between two Vectors (Eucledian)
|
|
17371
|
-
* @param toVec
|
|
17372
|
-
* @param fromVec
|
|
17369
|
+
/**
|
|
17370
|
+
* This function returns the distance between two Vectors (Eucledian)
|
|
17371
|
+
* @param toVec
|
|
17372
|
+
* @param fromVec
|
|
17373
17373
|
*/
|
|
17374
17374
|
}, {
|
|
17375
17375
|
key: "getDistance",
|
|
@@ -17407,10 +17407,10 @@ var Vector2 = /*#__PURE__*/function () {
|
|
|
17407
17407
|
return undefined;
|
|
17408
17408
|
}
|
|
17409
17409
|
|
|
17410
|
-
/**
|
|
17411
|
-
* This function computes the rotation of a vector around the origin of the coordinate system
|
|
17412
|
-
* @param vec The position that is rotated
|
|
17413
|
-
* @param angleDeg The amount of rotation in degrees
|
|
17410
|
+
/**
|
|
17411
|
+
* This function computes the rotation of a vector around the origin of the coordinate system
|
|
17412
|
+
* @param vec The position that is rotated
|
|
17413
|
+
* @param angleDeg The amount of rotation in degrees
|
|
17414
17414
|
*/
|
|
17415
17415
|
}, {
|
|
17416
17416
|
key: "rotateOrigin",
|
|
@@ -17422,11 +17422,11 @@ var Vector2 = /*#__PURE__*/function () {
|
|
|
17422
17422
|
return result;
|
|
17423
17423
|
}
|
|
17424
17424
|
|
|
17425
|
-
/**
|
|
17426
|
-
* This function computes the rotation of a vector around a specific rotation point
|
|
17427
|
-
* @param vec The position that is rotated
|
|
17428
|
-
* @param vecRotCenter The center of the rotation
|
|
17429
|
-
* @param angleDeg the amount of rotation in degrees
|
|
17425
|
+
/**
|
|
17426
|
+
* This function computes the rotation of a vector around a specific rotation point
|
|
17427
|
+
* @param vec The position that is rotated
|
|
17428
|
+
* @param vecRotCenter The center of the rotation
|
|
17429
|
+
* @param angleDeg the amount of rotation in degrees
|
|
17430
17430
|
*/
|
|
17431
17431
|
}, {
|
|
17432
17432
|
key: "rotateAround",
|
|
@@ -17442,10 +17442,10 @@ var Vector2 = /*#__PURE__*/function () {
|
|
|
17442
17442
|
return result;
|
|
17443
17443
|
}
|
|
17444
17444
|
|
|
17445
|
-
/**
|
|
17446
|
-
* Returns the angle between the two vectors in radiants
|
|
17447
|
-
* @param vec1
|
|
17448
|
-
* @param vec2
|
|
17445
|
+
/**
|
|
17446
|
+
* Returns the angle between the two vectors in radiants
|
|
17447
|
+
* @param vec1
|
|
17448
|
+
* @param vec2
|
|
17449
17449
|
*/
|
|
17450
17450
|
}, {
|
|
17451
17451
|
key: "angleRad",
|
|
@@ -17454,10 +17454,10 @@ var Vector2 = /*#__PURE__*/function () {
|
|
|
17454
17454
|
return Math.acos(dot);
|
|
17455
17455
|
}
|
|
17456
17456
|
//
|
|
17457
|
-
/**
|
|
17458
|
-
*Returns the angle between the two vectors in degrees
|
|
17459
|
-
* @param vec1
|
|
17460
|
-
* @param vec2
|
|
17457
|
+
/**
|
|
17458
|
+
*Returns the angle between the two vectors in degrees
|
|
17459
|
+
* @param vec1
|
|
17460
|
+
* @param vec2
|
|
17461
17461
|
*/
|
|
17462
17462
|
}, {
|
|
17463
17463
|
key: "angleDeg",
|
|
@@ -18130,8 +18130,8 @@ function ownKeys$e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
18130
18130
|
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__default["default"](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; }
|
|
18131
18131
|
var LOG$e = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
18132
18132
|
|
|
18133
|
-
/*
|
|
18134
|
-
Diese KLasse enthält Inforamtion zu einem Catalog (C)
|
|
18133
|
+
/*
|
|
18134
|
+
Diese KLasse enthält Inforamtion zu einem Catalog (C)
|
|
18135
18135
|
*/
|
|
18136
18136
|
var DivaCatalogData = /*#__PURE__*/function () {
|
|
18137
18137
|
function DivaCatalogData(json, orderSet, api, additionalModelInfos) {
|
|
@@ -21365,8 +21365,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
21365
21365
|
this.article.doorPlannerData = val;
|
|
21366
21366
|
}
|
|
21367
21367
|
|
|
21368
|
-
/**
|
|
21369
|
-
* return the neighbour on AVR or AVL
|
|
21368
|
+
/**
|
|
21369
|
+
* return the neighbour on AVR or AVL
|
|
21370
21370
|
*/
|
|
21371
21371
|
}, {
|
|
21372
21372
|
key: "j3D",
|
|
@@ -21895,8 +21895,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
21895
21895
|
}
|
|
21896
21896
|
return options;
|
|
21897
21897
|
}
|
|
21898
|
-
/**
|
|
21899
|
-
* If a Accessoire with SVG is not dockable it should still be loaded as an article but not planned and visualized
|
|
21898
|
+
/**
|
|
21899
|
+
* If a Accessoire with SVG is not dockable it should still be loaded as an article but not planned and visualized
|
|
21900
21900
|
*/
|
|
21901
21901
|
}, {
|
|
21902
21902
|
key: "doNotDeleteAccWhenNotDocked",
|
|
@@ -22006,10 +22006,10 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
22006
22006
|
}, {
|
|
22007
22007
|
key: "checkDefaultGlobalOpt",
|
|
22008
22008
|
value: function checkDefaultGlobalOpt(optToChange, ignoreOPVIsValid) {
|
|
22009
|
-
/*
|
|
22010
|
-
This function checks if the option that should be changed is a global option, that influenced other options.
|
|
22011
|
-
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.
|
|
22012
|
-
If the option to influence (eg. OPTBE of Kopfteil) is not configured yet, the optionvalue is set as a default.
|
|
22009
|
+
/*
|
|
22010
|
+
This function checks if the option that should be changed is a global option, that influenced other options.
|
|
22011
|
+
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.
|
|
22012
|
+
If the option to influence (eg. OPTBE of Kopfteil) is not configured yet, the optionvalue is set as a default.
|
|
22013
22013
|
*/
|
|
22014
22014
|
var actArticleOptionState = this.articleOptionStates;
|
|
22015
22015
|
//Schauen ob andere Optionen auf gesetzt werden müssen
|
|
@@ -23342,8 +23342,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23342
23342
|
}
|
|
23343
23343
|
}
|
|
23344
23344
|
|
|
23345
|
-
/**
|
|
23346
|
-
* @deprecated
|
|
23345
|
+
/**
|
|
23346
|
+
* @deprecated
|
|
23347
23347
|
*/
|
|
23348
23348
|
}, {
|
|
23349
23349
|
key: "evalType2Decisions",
|
|
@@ -23437,8 +23437,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23437
23437
|
}
|
|
23438
23438
|
}
|
|
23439
23439
|
|
|
23440
|
-
/**
|
|
23441
|
-
* @deprecated
|
|
23440
|
+
/**
|
|
23441
|
+
* @deprecated
|
|
23442
23442
|
*/
|
|
23443
23443
|
}, {
|
|
23444
23444
|
key: "checkDisableDecision",
|
|
@@ -23601,7 +23601,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23601
23601
|
break;
|
|
23602
23602
|
}
|
|
23603
23603
|
_context.next = 4;
|
|
23604
|
-
return Promise.resolve().then(function () { return require('./ShelfPlanner-
|
|
23604
|
+
return Promise.resolve().then(function () { return require('./ShelfPlanner-4402bf3e.js'); });
|
|
23605
23605
|
case 4:
|
|
23606
23606
|
_yield$import = _context.sent;
|
|
23607
23607
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -24066,8 +24066,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24066
24066
|
}
|
|
24067
24067
|
}
|
|
24068
24068
|
}
|
|
24069
|
-
/**
|
|
24070
|
-
* this functions updates the images of OPVs that depend on rules
|
|
24069
|
+
/**
|
|
24070
|
+
* this functions updates the images of OPVs that depend on rules
|
|
24071
24071
|
*/
|
|
24072
24072
|
}, {
|
|
24073
24073
|
key: "updateOPVImages",
|
|
@@ -24095,9 +24095,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24095
24095
|
}
|
|
24096
24096
|
}
|
|
24097
24097
|
|
|
24098
|
-
/**
|
|
24099
|
-
* this function calculates an Svg to the current configuration if neccessary (SVG Tausch)
|
|
24100
|
-
* if the Article has no SVG Tausch nothing is done
|
|
24098
|
+
/**
|
|
24099
|
+
* this function calculates an Svg to the current configuration if neccessary (SVG Tausch)
|
|
24100
|
+
* if the Article has no SVG Tausch nothing is done
|
|
24101
24101
|
*/
|
|
24102
24102
|
}, {
|
|
24103
24103
|
key: "updateArticleSVG",
|
|
@@ -24186,8 +24186,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24186
24186
|
}
|
|
24187
24187
|
}
|
|
24188
24188
|
|
|
24189
|
-
/**
|
|
24190
|
-
* this function return the config and material info of article. This is used for the planner visualisation
|
|
24189
|
+
/**
|
|
24190
|
+
* this function return the config and material info of article. This is used for the planner visualisation
|
|
24191
24191
|
*/
|
|
24192
24192
|
}, {
|
|
24193
24193
|
key: "getPlannerConfigData",
|
|
@@ -24331,10 +24331,10 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24331
24331
|
}
|
|
24332
24332
|
|
|
24333
24333
|
/********************************************************Artikel speichern*********************************************************/
|
|
24334
|
-
/**
|
|
24335
|
-
* Diese Funktion liefert zu einem Artikel eine oder mehrere Orderline aus. Diese wird im Basket gespeichert und dient zur wiederherstellung eines Artikels!
|
|
24336
|
-
*
|
|
24337
|
-
* Des weiteren kann es ZubehörOrderlines geben Optionsbaum aus und generiert daraus evtl. Zubehöroderlines??
|
|
24334
|
+
/**
|
|
24335
|
+
* Diese Funktion liefert zu einem Artikel eine oder mehrere Orderline aus. Diese wird im Basket gespeichert und dient zur wiederherstellung eines Artikels!
|
|
24336
|
+
*
|
|
24337
|
+
* Des weiteren kann es ZubehörOrderlines geben Optionsbaum aus und generiert daraus evtl. Zubehöroderlines??
|
|
24338
24338
|
*/
|
|
24339
24339
|
}, {
|
|
24340
24340
|
key: "getVariantBasketData",
|
|
@@ -25128,14 +25128,14 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25128
25128
|
}
|
|
25129
25129
|
return setValidVariantValues;
|
|
25130
25130
|
}()
|
|
25131
|
-
/**
|
|
25132
|
-
* This function recalcs the configuration the a specific Article considering all the different and complicated rules
|
|
25133
|
-
* you can add the newConfigValues to change the configuration. these get set if they are valid and these can influence
|
|
25134
|
-
* other depending configvalues
|
|
25135
|
-
* this includes the Price and the loaded Partlistarticles
|
|
25136
|
-
* @param article specific Article
|
|
25137
|
-
* @param newConfigValues newConfigValues to change the configuration
|
|
25138
|
-
* @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.
|
|
25131
|
+
/**
|
|
25132
|
+
* This function recalcs the configuration the a specific Article considering all the different and complicated rules
|
|
25133
|
+
* you can add the newConfigValues to change the configuration. these get set if they are valid and these can influence
|
|
25134
|
+
* other depending configvalues
|
|
25135
|
+
* this includes the Price and the loaded Partlistarticles
|
|
25136
|
+
* @param article specific Article
|
|
25137
|
+
* @param newConfigValues newConfigValues to change the configuration
|
|
25138
|
+
* @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.
|
|
25139
25139
|
*/
|
|
25140
25140
|
}, {
|
|
25141
25141
|
key: "updateCfgValues",
|
|
@@ -25838,9 +25838,9 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25838
25838
|
return ret;
|
|
25839
25839
|
}
|
|
25840
25840
|
|
|
25841
|
-
/**
|
|
25842
|
-
* 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
|
|
25843
|
-
* for that rounding problematic we calculate the rest and add that to an orderline with price.
|
|
25841
|
+
/**
|
|
25842
|
+
* 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
|
|
25843
|
+
* for that rounding problematic we calculate the rest and add that to an orderline with price.
|
|
25844
25844
|
*/
|
|
25845
25845
|
}, {
|
|
25846
25846
|
key: "checkForRoundingError",
|
|
@@ -25979,14 +25979,14 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25979
25979
|
}
|
|
25980
25980
|
return returnValue;
|
|
25981
25981
|
}
|
|
25982
|
-
/**
|
|
25983
|
-
* This function corrects the partlist based on different rules.
|
|
25984
|
-
* Rule bundleRules: Combines multiple partlist articles to a combination of them
|
|
25985
|
-
* 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.
|
|
25986
|
-
* @param article
|
|
25987
|
-
* @param partlistArticlesToLoad
|
|
25988
|
-
* @param bundleRules
|
|
25989
|
-
* @param doChangeRetailArticleNumbers
|
|
25982
|
+
/**
|
|
25983
|
+
* This function corrects the partlist based on different rules.
|
|
25984
|
+
* Rule bundleRules: Combines multiple partlist articles to a combination of them
|
|
25985
|
+
* 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.
|
|
25986
|
+
* @param article
|
|
25987
|
+
* @param partlistArticlesToLoad
|
|
25988
|
+
* @param bundleRules
|
|
25989
|
+
* @param doChangeRetailArticleNumbers
|
|
25990
25990
|
*/
|
|
25991
25991
|
}, {
|
|
25992
25992
|
key: "correctPartlistArticlesByGlobalRules",
|
|
@@ -26974,8 +26974,8 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
26974
26974
|
_defineProperty__default["default"](this, "favoritesChanged", false);
|
|
26975
26975
|
_defineProperty__default["default"](this, "setState", void 0);
|
|
26976
26976
|
_defineProperty__default["default"](this, "modifiedJ3D", []);
|
|
26977
|
-
/**
|
|
26978
|
-
* This function is called when the docking of two Elements is changed
|
|
26977
|
+
/**
|
|
26978
|
+
* This function is called when the docking of two Elements is changed
|
|
26979
26979
|
*/
|
|
26980
26980
|
_defineProperty__default["default"](this, "onDockingChanged", function (elementId1, elementId2, state, dockType) {
|
|
26981
26981
|
//Suche beide Artikel.
|
|
@@ -27096,7 +27096,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
27096
27096
|
if (article) return article.basketId;
|
|
27097
27097
|
return '';
|
|
27098
27098
|
});
|
|
27099
|
-
/*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
|
|
27099
|
+
/*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
|
|
27100
27100
|
*/
|
|
27101
27101
|
_defineProperty__default["default"](this, "getParentBasketIdOfElementId", function (elementId) {
|
|
27102
27102
|
var _article$accessoirePa;
|
|
@@ -27462,10 +27462,10 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
27462
27462
|
}
|
|
27463
27463
|
return setPrice;
|
|
27464
27464
|
}
|
|
27465
|
-
/**
|
|
27466
|
-
*
|
|
27467
|
-
* @param discoultOnly ignore usecase for "verschönerter" price
|
|
27468
|
-
* @returns
|
|
27465
|
+
/**
|
|
27466
|
+
*
|
|
27467
|
+
* @param discoultOnly ignore usecase for "verschönerter" price
|
|
27468
|
+
* @returns
|
|
27469
27469
|
*/
|
|
27470
27470
|
}, {
|
|
27471
27471
|
key: "getBruttoSetPrice",
|
|
@@ -27486,9 +27486,9 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
27486
27486
|
return undefined;
|
|
27487
27487
|
}
|
|
27488
27488
|
|
|
27489
|
-
/**
|
|
27490
|
-
* 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
|
|
27491
|
-
* @returns
|
|
27489
|
+
/**
|
|
27490
|
+
* 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
|
|
27491
|
+
* @returns
|
|
27492
27492
|
*/
|
|
27493
27493
|
}, {
|
|
27494
27494
|
key: "getSetPriceFormat",
|
|
@@ -27532,10 +27532,10 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
27532
27532
|
}
|
|
27533
27533
|
return (_this$setState$config = this.setState.configuratorTitle) !== null && _this$setState$config !== void 0 ? _this$setState$config : this.getSetName();
|
|
27534
27534
|
}
|
|
27535
|
-
/**
|
|
27536
|
-
* This function returns the base parent article of an accessoire. It runs through a chain of accessoires recursively.
|
|
27537
|
-
* If the current article is no Accessoire the function returns himself.
|
|
27538
|
-
* @param accBasketId BasketID of the accessoire article
|
|
27535
|
+
/**
|
|
27536
|
+
* This function returns the base parent article of an accessoire. It runs through a chain of accessoires recursively.
|
|
27537
|
+
* If the current article is no Accessoire the function returns himself.
|
|
27538
|
+
* @param accBasketId BasketID of the accessoire article
|
|
27539
27539
|
*/
|
|
27540
27540
|
}, {
|
|
27541
27541
|
key: "getBaseParentArticleOfAccessoire",
|
|
@@ -27867,8 +27867,8 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
27867
27867
|
}
|
|
27868
27868
|
return ret;
|
|
27869
27869
|
}
|
|
27870
|
-
/**
|
|
27871
|
-
* return text thats added to the end of the setName depending on predefined options and their selection (For example Headboards at bed modells)
|
|
27870
|
+
/**
|
|
27871
|
+
* return text thats added to the end of the setName depending on predefined options and their selection (For example Headboards at bed modells)
|
|
27872
27872
|
*/
|
|
27873
27873
|
}, {
|
|
27874
27874
|
key: "ProductSetName",
|
|
@@ -28134,7 +28134,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
28134
28134
|
break;
|
|
28135
28135
|
}
|
|
28136
28136
|
_context4.next = 3;
|
|
28137
|
-
return Promise.resolve().then(function () { return require('./DoorPlanner-
|
|
28137
|
+
return Promise.resolve().then(function () { return require('./DoorPlanner-3a199423.js'); });
|
|
28138
28138
|
case 3:
|
|
28139
28139
|
_yield$import = _context4.sent;
|
|
28140
28140
|
DoorPlanner = _yield$import["default"];
|
|
@@ -28208,9 +28208,9 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
28208
28208
|
this._onlyCalcVariants = val;
|
|
28209
28209
|
}
|
|
28210
28210
|
|
|
28211
|
-
/**
|
|
28212
|
-
*
|
|
28213
|
-
* @returns
|
|
28211
|
+
/**
|
|
28212
|
+
*
|
|
28213
|
+
* @returns
|
|
28214
28214
|
*/
|
|
28215
28215
|
}, {
|
|
28216
28216
|
key: "getCurrentDisountPercentage",
|
|
@@ -28237,9 +28237,9 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
28237
28237
|
this._oldConfigVariants = oldConfigVariants;
|
|
28238
28238
|
}
|
|
28239
28239
|
|
|
28240
|
-
/**
|
|
28241
|
-
* This function returns true when the current Set has a list of static rooms.
|
|
28242
|
-
* 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
|
|
28240
|
+
/**
|
|
28241
|
+
* This function returns true when the current Set has a list of static rooms.
|
|
28242
|
+
* 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
|
|
28243
28243
|
*/
|
|
28244
28244
|
}, {
|
|
28245
28245
|
key: "hasStaticRoomList",
|
|
@@ -29498,10 +29498,10 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
29498
29498
|
}
|
|
29499
29499
|
}
|
|
29500
29500
|
|
|
29501
|
-
/**
|
|
29502
|
-
* this function checks for the usecase when the user tries to select different opvs at the same option for different elements
|
|
29503
|
-
* This functionality is not supported for an option to have different variants depending on the element
|
|
29504
|
-
* @returns true if the described usecase is really the case
|
|
29501
|
+
/**
|
|
29502
|
+
* this function checks for the usecase when the user tries to select different opvs at the same option for different elements
|
|
29503
|
+
* This functionality is not supported for an option to have different variants depending on the element
|
|
29504
|
+
* @returns true if the described usecase is really the case
|
|
29505
29505
|
*/
|
|
29506
29506
|
}, {
|
|
29507
29507
|
key: "checkForInvalidSelection",
|
|
@@ -30593,10 +30593,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30593
30593
|
}
|
|
30594
30594
|
return false;
|
|
30595
30595
|
}
|
|
30596
|
-
/**
|
|
30597
|
-
* 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
|
|
30598
|
-
* headerPosVariationType == "K" wo die selektierten OptionValueCodex sich unterhalb der Artikel unterscheiden
|
|
30599
|
-
* @param optionStatesOfArticles Konfiguration der Artikel
|
|
30596
|
+
/**
|
|
30597
|
+
* 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
|
|
30598
|
+
* headerPosVariationType == "K" wo die selektierten OptionValueCodex sich unterhalb der Artikel unterscheiden
|
|
30599
|
+
* @param optionStatesOfArticles Konfiguration der Artikel
|
|
30600
30600
|
*/
|
|
30601
30601
|
}, {
|
|
30602
30602
|
key: "checkIfLoadedArticlesAreConfigSingle",
|
|
@@ -30811,12 +30811,12 @@ function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
30811
30811
|
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__default["default"](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; }
|
|
30812
30812
|
var LOG$8 = DivaUtils__default["default"].initLog('Planner', 'DIVA-SET-HANDLER');
|
|
30813
30813
|
|
|
30814
|
-
/*
|
|
30815
|
-
Diese Klasse speichert alle Sets, die in einer Planung sind
|
|
30816
|
-
WICHTIG: jedes Set kann einen anderen Katalog haben
|
|
30817
|
-
|
|
30818
|
-
Hier wird auch der PlannerHandler Initialisiert
|
|
30819
|
-
Der SetHandler bekommt alle Events die auch für den PLannerHandler bestimmt sind
|
|
30814
|
+
/*
|
|
30815
|
+
Diese Klasse speichert alle Sets, die in einer Planung sind
|
|
30816
|
+
WICHTIG: jedes Set kann einen anderen Katalog haben
|
|
30817
|
+
|
|
30818
|
+
Hier wird auch der PlannerHandler Initialisiert
|
|
30819
|
+
Der SetHandler bekommt alle Events die auch für den PLannerHandler bestimmt sind
|
|
30820
30820
|
*/
|
|
30821
30821
|
var DivaSetHandler = /*#__PURE__*/function () {
|
|
30822
30822
|
function DivaSetHandler() {
|
|
@@ -31202,11 +31202,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31202
31202
|
return orderSets.length === index + 1 && orderSets[index].OrderLines.length != 0 || !!orderSets[index + 1] && orderSets[index + 1].OrderLines.length === 0;
|
|
31203
31203
|
}
|
|
31204
31204
|
|
|
31205
|
-
/**
|
|
31206
|
-
* When loading a product, the relative position of the whole set should be in the origin.
|
|
31207
|
-
* When a product was saved with position information in the world, the values are corrected here
|
|
31208
|
-
* @param orderSets
|
|
31209
|
-
* @returns
|
|
31205
|
+
/**
|
|
31206
|
+
* When loading a product, the relative position of the whole set should be in the origin.
|
|
31207
|
+
* When a product was saved with position information in the world, the values are corrected here
|
|
31208
|
+
* @param orderSets
|
|
31209
|
+
* @returns
|
|
31210
31210
|
*/
|
|
31211
31211
|
}, {
|
|
31212
31212
|
key: "correctPivotPosInOrderSets",
|
|
@@ -31322,9 +31322,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31322
31322
|
}
|
|
31323
31323
|
return initSet;
|
|
31324
31324
|
}()
|
|
31325
|
-
/**
|
|
31326
|
-
* This function destroyes the plannerHandler of the actSet. For Setplanner. Eventuell von alle sets zerstören - je nach use case
|
|
31327
|
-
* @param doDestroy3DHostConnection Do clear 3D host connection and clear render Cache
|
|
31325
|
+
/**
|
|
31326
|
+
* This function destroyes the plannerHandler of the actSet. For Setplanner. Eventuell von alle sets zerstören - je nach use case
|
|
31327
|
+
* @param doDestroy3DHostConnection Do clear 3D host connection and clear render Cache
|
|
31328
31328
|
*/
|
|
31329
31329
|
}, {
|
|
31330
31330
|
key: "destroyPlannerHandler",
|
|
@@ -31368,8 +31368,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31368
31368
|
value: function getFirstConfigStep(set) {
|
|
31369
31369
|
return set.configTree.getFirstConfigStepKey();
|
|
31370
31370
|
}
|
|
31371
|
-
/*
|
|
31372
|
-
This function is called when the user clicks on an Element in the ArticlePalette in the PLANNER TAB
|
|
31371
|
+
/*
|
|
31372
|
+
This function is called when the user clicks on an Element in the ArticlePalette in the PLANNER TAB
|
|
31373
31373
|
*/
|
|
31374
31374
|
}, {
|
|
31375
31375
|
key: "addPlannerElement",
|
|
@@ -31409,15 +31409,15 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31409
31409
|
}
|
|
31410
31410
|
return addPlannerElement;
|
|
31411
31411
|
}()
|
|
31412
|
-
/**
|
|
31413
|
-
* This function copys an Element. Depending on the planner, copying one element can result in copying multiple elements.
|
|
31414
|
-
* It first creates an article for each planner element to copy.
|
|
31415
|
-
* Then it adds the Elements to the planner
|
|
31416
|
-
* @param setId
|
|
31417
|
-
* @param elementId
|
|
31418
|
-
* @param copyInfo
|
|
31419
|
-
*
|
|
31420
|
-
* @returns this function returns the new selected article
|
|
31412
|
+
/**
|
|
31413
|
+
* This function copys an Element. Depending on the planner, copying one element can result in copying multiple elements.
|
|
31414
|
+
* It first creates an article for each planner element to copy.
|
|
31415
|
+
* Then it adds the Elements to the planner
|
|
31416
|
+
* @param setId
|
|
31417
|
+
* @param elementId
|
|
31418
|
+
* @param copyInfo
|
|
31419
|
+
*
|
|
31420
|
+
* @returns this function returns the new selected article
|
|
31421
31421
|
*/
|
|
31422
31422
|
)
|
|
31423
31423
|
}, {
|
|
@@ -31495,9 +31495,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31495
31495
|
return set.plannerHandler.getAllViewPlannerElements();
|
|
31496
31496
|
}
|
|
31497
31497
|
|
|
31498
|
-
/**
|
|
31499
|
-
* 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.
|
|
31500
|
-
* @returns
|
|
31498
|
+
/**
|
|
31499
|
+
* 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.
|
|
31500
|
+
* @returns
|
|
31501
31501
|
*/
|
|
31502
31502
|
}, {
|
|
31503
31503
|
key: "getAllVisualiedNotPlannedElements",
|
|
@@ -31531,9 +31531,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31531
31531
|
return set.plannerHandler.get2DViewPlannerBoundingBox();
|
|
31532
31532
|
}
|
|
31533
31533
|
|
|
31534
|
-
/**
|
|
31535
|
-
* This function copys one Article by elementId. It creates a new article with the same attributes as the original and returns it
|
|
31536
|
-
* @param elementId
|
|
31534
|
+
/**
|
|
31535
|
+
* This function copys one Article by elementId. It creates a new article with the same attributes as the original and returns it
|
|
31536
|
+
* @param elementId
|
|
31537
31537
|
*/
|
|
31538
31538
|
}, {
|
|
31539
31539
|
key: "copyArticleByElementId",
|
|
@@ -32314,12 +32314,12 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32314
32314
|
}
|
|
32315
32315
|
return deleteAccessoire;
|
|
32316
32316
|
}()
|
|
32317
|
-
/**
|
|
32318
|
-
* Invokes a new rendering
|
|
32319
|
-
* @param renderSize
|
|
32320
|
-
* @param planner3DGridEnabled
|
|
32321
|
-
* @param mediaServiceSaveMode
|
|
32322
|
-
* @param alternateRenderInfo Contains information if the rendering is an alternate rendering (Zubehörbild)
|
|
32317
|
+
/**
|
|
32318
|
+
* Invokes a new rendering
|
|
32319
|
+
* @param renderSize
|
|
32320
|
+
* @param planner3DGridEnabled
|
|
32321
|
+
* @param mediaServiceSaveMode
|
|
32322
|
+
* @param alternateRenderInfo Contains information if the rendering is an alternate rendering (Zubehörbild)
|
|
32323
32323
|
*/
|
|
32324
32324
|
}, {
|
|
32325
32325
|
key: "update3DPlannerView",
|
|
@@ -32397,10 +32397,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32397
32397
|
return configTreeHandler.fillConfigStepKeysInAccessoireItem([article], set.configTree, (_article$articleRelat = article.articleRelations) !== null && _article$articleRelat !== void 0 ? _article$articleRelat : []);
|
|
32398
32398
|
}
|
|
32399
32399
|
|
|
32400
|
-
/**
|
|
32401
|
-
* This function returns the element ids of a list of articles. The articles are specified by an array of basketIds
|
|
32402
|
-
* @param setId
|
|
32403
|
-
* @param targetArticles
|
|
32400
|
+
/**
|
|
32401
|
+
* This function returns the element ids of a list of articles. The articles are specified by an array of basketIds
|
|
32402
|
+
* @param setId
|
|
32403
|
+
* @param targetArticles
|
|
32404
32404
|
*/
|
|
32405
32405
|
}, {
|
|
32406
32406
|
key: "getElementIdsOfArticles",
|
|
@@ -32416,10 +32416,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32416
32416
|
return elementIds;
|
|
32417
32417
|
}
|
|
32418
32418
|
|
|
32419
|
-
/**
|
|
32420
|
-
* 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.
|
|
32421
|
-
* If the current Article is no accessoire, it returns itself
|
|
32422
|
-
* @param accBasketId BasketID of the accessoire
|
|
32419
|
+
/**
|
|
32420
|
+
* 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.
|
|
32421
|
+
* If the current Article is no accessoire, it returns itself
|
|
32422
|
+
* @param accBasketId BasketID of the accessoire
|
|
32423
32423
|
*/
|
|
32424
32424
|
}, {
|
|
32425
32425
|
key: "getBaseParentArticleOfAccessoire",
|
|
@@ -32427,12 +32427,12 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32427
32427
|
var article = set.getBaseParentArticleOfAccessoire(accBasketId);
|
|
32428
32428
|
return article;
|
|
32429
32429
|
}
|
|
32430
|
-
/**
|
|
32431
|
-
* 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.
|
|
32432
|
-
* Because of that @param groupedOptions is send aswell to configure all articles with Values of the first article of the Options of @param groupedOptions
|
|
32433
|
-
* @param newIsConfigSingle
|
|
32434
|
-
* @param groupedOptions
|
|
32435
|
-
* @param groupedArticles
|
|
32430
|
+
/**
|
|
32431
|
+
* 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.
|
|
32432
|
+
* Because of that @param groupedOptions is send aswell to configure all articles with Values of the first article of the Options of @param groupedOptions
|
|
32433
|
+
* @param newIsConfigSingle
|
|
32434
|
+
* @param groupedOptions
|
|
32435
|
+
* @param groupedArticles
|
|
32436
32436
|
*/
|
|
32437
32437
|
}, {
|
|
32438
32438
|
key: "configSingleIsChanged",
|
|
@@ -32614,13 +32614,13 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32614
32614
|
return configItems;
|
|
32615
32615
|
}
|
|
32616
32616
|
|
|
32617
|
-
/**
|
|
32618
|
-
* here if needed the all the visible variants get precalced for price information or to check if a product is in stock
|
|
32619
|
-
* 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
|
|
32620
|
-
* @param configItems
|
|
32621
|
-
* @param configStepKey
|
|
32622
|
-
* @param paletteType
|
|
32623
|
-
* @returns
|
|
32617
|
+
/**
|
|
32618
|
+
* here if needed the all the visible variants get precalced for price information or to check if a product is in stock
|
|
32619
|
+
* 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
|
|
32620
|
+
* @param configItems
|
|
32621
|
+
* @param configStepKey
|
|
32622
|
+
* @param paletteType
|
|
32623
|
+
* @returns
|
|
32624
32624
|
*/
|
|
32625
32625
|
}, {
|
|
32626
32626
|
key: "variantsEvaluator",
|
|
@@ -32781,11 +32781,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32781
32781
|
}
|
|
32782
32782
|
}
|
|
32783
32783
|
|
|
32784
|
-
/**
|
|
32785
|
-
* This function updates the option values of the articles
|
|
32786
|
-
* @param myValues
|
|
32787
|
-
* @param targetArticles
|
|
32788
|
-
* @returns returns true if the configuration changed something in the elementCount (deleted or add a new article)
|
|
32784
|
+
/**
|
|
32785
|
+
* This function updates the option values of the articles
|
|
32786
|
+
* @param myValues
|
|
32787
|
+
* @param targetArticles
|
|
32788
|
+
* @returns returns true if the configuration changed something in the elementCount (deleted or add a new article)
|
|
32789
32789
|
*/
|
|
32790
32790
|
}, {
|
|
32791
32791
|
key: "updateArticlesOptionStatesOfActSet",
|
|
@@ -33230,8 +33230,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33230
33230
|
return price;
|
|
33231
33231
|
}
|
|
33232
33232
|
|
|
33233
|
-
/**
|
|
33234
|
-
* This function returns the price format of the current catalog
|
|
33233
|
+
/**
|
|
33234
|
+
* This function returns the price format of the current catalog
|
|
33235
33235
|
*/
|
|
33236
33236
|
}, {
|
|
33237
33237
|
key: "getActSetPriceFormat",
|
|
@@ -33560,10 +33560,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33560
33560
|
}
|
|
33561
33561
|
return getOrderSet;
|
|
33562
33562
|
}()
|
|
33563
|
-
/**
|
|
33564
|
-
* This function saves the rendering of the current planning/configuration. It saves it permanent
|
|
33565
|
-
* @param set
|
|
33566
|
-
* @param overwriteLastSavedRendering If set to true, it always asks for a new rendering. If false it returns the previously saved rendering (When entering Summary)
|
|
33563
|
+
/**
|
|
33564
|
+
* This function saves the rendering of the current planning/configuration. It saves it permanent
|
|
33565
|
+
* @param set
|
|
33566
|
+
* @param overwriteLastSavedRendering If set to true, it always asks for a new rendering. If false it returns the previously saved rendering (When entering Summary)
|
|
33567
33567
|
*/
|
|
33568
33568
|
}, {
|
|
33569
33569
|
key: "getSetImage",
|
|
@@ -33662,11 +33662,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33662
33662
|
}
|
|
33663
33663
|
return getHQRenderScript;
|
|
33664
33664
|
}()
|
|
33665
|
-
/**
|
|
33666
|
-
* This function saves the rendering of the current planning/configuration. It saves it permanent
|
|
33667
|
-
* The alternateSet Images are returned in a basket compatible datastructure
|
|
33668
|
-
* @param set
|
|
33669
|
-
* @param overwriteLastSavedRendering If set to true, it always asks for a new rendering. If false it returns the previously saved rendering (When entering Summary)
|
|
33665
|
+
/**
|
|
33666
|
+
* This function saves the rendering of the current planning/configuration. It saves it permanent
|
|
33667
|
+
* The alternateSet Images are returned in a basket compatible datastructure
|
|
33668
|
+
* @param set
|
|
33669
|
+
* @param overwriteLastSavedRendering If set to true, it always asks for a new rendering. If false it returns the previously saved rendering (When entering Summary)
|
|
33670
33670
|
*/
|
|
33671
33671
|
}, {
|
|
33672
33672
|
key: "getAlternateSetImages",
|
|
@@ -33848,8 +33848,8 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
33848
33848
|
_defineProperty__default["default"](this, "startProductId", void 0);
|
|
33849
33849
|
//Only helper variable
|
|
33850
33850
|
_defineProperty__default["default"](this, "origConfiguration", {});
|
|
33851
|
-
/**
|
|
33852
|
-
* This function returns the originalConfiguration options
|
|
33851
|
+
/**
|
|
33852
|
+
* This function returns the originalConfiguration options
|
|
33853
33853
|
*/
|
|
33854
33854
|
_defineProperty__default["default"](this, "getOrigConfiguration", function () {
|
|
33855
33855
|
return _this.origConfiguration;
|
|
@@ -34820,7 +34820,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34820
34820
|
break;
|
|
34821
34821
|
case 3:
|
|
34822
34822
|
_context12.next = 5;
|
|
34823
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
34823
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-2ea37e1d.js'); });
|
|
34824
34824
|
case 5:
|
|
34825
34825
|
_yield$import = _context12.sent;
|
|
34826
34826
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -34828,7 +34828,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34828
34828
|
return _context12.abrupt("break", 27);
|
|
34829
34829
|
case 9:
|
|
34830
34830
|
_context12.next = 11;
|
|
34831
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
34831
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-6607e52f.js'); });
|
|
34832
34832
|
case 11:
|
|
34833
34833
|
_yield$import2 = _context12.sent;
|
|
34834
34834
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -34836,7 +34836,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34836
34836
|
return _context12.abrupt("break", 27);
|
|
34837
34837
|
case 15:
|
|
34838
34838
|
_context12.next = 17;
|
|
34839
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
34839
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-03648231.js'); });
|
|
34840
34840
|
case 17:
|
|
34841
34841
|
_yield$import3 = _context12.sent;
|
|
34842
34842
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -34844,7 +34844,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34844
34844
|
return _context12.abrupt("break", 27);
|
|
34845
34845
|
case 21:
|
|
34846
34846
|
_context12.next = 23;
|
|
34847
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
34847
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-62bc3cc6.js'); });
|
|
34848
34848
|
case 23:
|
|
34849
34849
|
_yield$import4 = _context12.sent;
|
|
34850
34850
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -34951,9 +34951,9 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
34951
34951
|
this.vpInfosByRoom = new Map();
|
|
34952
34952
|
}
|
|
34953
34953
|
|
|
34954
|
-
/**
|
|
34955
|
-
* This function returns the room from te roomlist info.
|
|
34956
|
-
* @param roomCodex
|
|
34954
|
+
/**
|
|
34955
|
+
* This function returns the room from te roomlist info.
|
|
34956
|
+
* @param roomCodex
|
|
34957
34957
|
*/
|
|
34958
34958
|
return _createClass__default["default"](ViewPointHandler, [{
|
|
34959
34959
|
key: "getRoomInfo",
|
|
@@ -34965,10 +34965,10 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
34965
34965
|
}
|
|
34966
34966
|
return undefined;
|
|
34967
34967
|
}
|
|
34968
|
-
/**
|
|
34969
|
-
* This function returns the viewpoint from te roomlist info.
|
|
34970
|
-
* @param roomCodex
|
|
34971
|
-
* @param vpCodex
|
|
34968
|
+
/**
|
|
34969
|
+
* This function returns the viewpoint from te roomlist info.
|
|
34970
|
+
* @param roomCodex
|
|
34971
|
+
* @param vpCodex
|
|
34972
34972
|
*/
|
|
34973
34973
|
}, {
|
|
34974
34974
|
key: "getVPInfo",
|
|
@@ -34996,10 +34996,10 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
34996
34996
|
return this.defaultWhiteroom;
|
|
34997
34997
|
}
|
|
34998
34998
|
|
|
34999
|
-
/**
|
|
35000
|
-
* This function resets the viewpoint.
|
|
35001
|
-
* If the 3d host has retuned some viewpoint information about the rotation - then set it to the start rotation information.
|
|
35002
|
-
* The function returns true, if the orbit cube should be updated
|
|
34999
|
+
/**
|
|
35000
|
+
* This function resets the viewpoint.
|
|
35001
|
+
* If the 3d host has retuned some viewpoint information about the rotation - then set it to the start rotation information.
|
|
35002
|
+
* The function returns true, if the orbit cube should be updated
|
|
35003
35003
|
*/
|
|
35004
35004
|
}, {
|
|
35005
35005
|
key: "resetViewPoint",
|
|
@@ -35111,11 +35111,11 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35111
35111
|
}
|
|
35112
35112
|
//------------------------------------------------Functionen Roomlist------------------------------------------------
|
|
35113
35113
|
|
|
35114
|
-
/**
|
|
35115
|
-
* This function handles which roomlist is saved for which category.
|
|
35116
|
-
* 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
|
|
35117
|
-
* @param roomlist The list of codexes of the rooms
|
|
35118
|
-
* @param mainCategory The main Category of a catalog. e.g. bed / sofa
|
|
35114
|
+
/**
|
|
35115
|
+
* This function handles which roomlist is saved for which category.
|
|
35116
|
+
* 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
|
|
35117
|
+
* @param roomlist The list of codexes of the rooms
|
|
35118
|
+
* @param mainCategory The main Category of a catalog. e.g. bed / sofa
|
|
35119
35119
|
*/
|
|
35120
35120
|
}, {
|
|
35121
35121
|
key: "setMainCategoryOfStaticRoom",
|
|
@@ -35131,9 +35131,9 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35131
35131
|
}
|
|
35132
35132
|
}
|
|
35133
35133
|
|
|
35134
|
-
/**
|
|
35135
|
-
*This function is called when the webPlanner receives the list of rooms with all frontend Viewpoints from the 3D host .
|
|
35136
|
-
* @param roomlist
|
|
35134
|
+
/**
|
|
35135
|
+
*This function is called when the webPlanner receives the list of rooms with all frontend Viewpoints from the 3D host .
|
|
35136
|
+
* @param roomlist
|
|
35137
35137
|
*/
|
|
35138
35138
|
}, {
|
|
35139
35139
|
key: "initRoomList",
|
|
@@ -35228,25 +35228,25 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35228
35228
|
roomIsSel = false;
|
|
35229
35229
|
}
|
|
35230
35230
|
}
|
|
35231
|
-
/**
|
|
35232
|
-
* 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
|
|
35233
|
-
* @param roomlist
|
|
35231
|
+
/**
|
|
35232
|
+
* 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
|
|
35233
|
+
* @param roomlist
|
|
35234
35234
|
*/
|
|
35235
|
-
/*
|
|
35236
|
-
public getNotChachedRoomlist(roomlist: string[]): string[] {
|
|
35237
|
-
var uncached: string[] = [];
|
|
35238
|
-
for (var i = 0; i < roomlist.length; i++) {
|
|
35239
|
-
var notCached = true;
|
|
35240
|
-
for (var j = 0; j < this.roomListInfo.length; j++) {
|
|
35241
|
-
if (roomlist[i] == this.roomListInfo[j].codex) {
|
|
35242
|
-
notCached = false;
|
|
35243
|
-
break;
|
|
35244
|
-
}
|
|
35245
|
-
}
|
|
35246
|
-
if (notCached) uncached.push(roomlist[i]);
|
|
35247
|
-
}
|
|
35248
|
-
return uncached;
|
|
35249
|
-
}
|
|
35235
|
+
/*
|
|
35236
|
+
public getNotChachedRoomlist(roomlist: string[]): string[] {
|
|
35237
|
+
var uncached: string[] = [];
|
|
35238
|
+
for (var i = 0; i < roomlist.length; i++) {
|
|
35239
|
+
var notCached = true;
|
|
35240
|
+
for (var j = 0; j < this.roomListInfo.length; j++) {
|
|
35241
|
+
if (roomlist[i] == this.roomListInfo[j].codex) {
|
|
35242
|
+
notCached = false;
|
|
35243
|
+
break;
|
|
35244
|
+
}
|
|
35245
|
+
}
|
|
35246
|
+
if (notCached) uncached.push(roomlist[i]);
|
|
35247
|
+
}
|
|
35248
|
+
return uncached;
|
|
35249
|
+
}
|
|
35250
35250
|
*/
|
|
35251
35251
|
}, {
|
|
35252
35252
|
key: "getStaticRoomList",
|
|
@@ -35312,11 +35312,11 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35312
35312
|
return result;
|
|
35313
35313
|
}
|
|
35314
35314
|
|
|
35315
|
-
/**
|
|
35316
|
-
* This function updates the vpInformation from the host. The information is updated every time a new viewpoint is set
|
|
35317
|
-
* @param roomCodex
|
|
35318
|
-
* @param vpName
|
|
35319
|
-
* @param vpInfo
|
|
35315
|
+
/**
|
|
35316
|
+
* This function updates the vpInformation from the host. The information is updated every time a new viewpoint is set
|
|
35317
|
+
* @param roomCodex
|
|
35318
|
+
* @param vpName
|
|
35319
|
+
* @param vpInfo
|
|
35320
35320
|
*/
|
|
35321
35321
|
}, {
|
|
35322
35322
|
key: "setVpInfoByRoomCodex",
|
|
@@ -35329,10 +35329,10 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35329
35329
|
return this.getVpInfoByRoomCodex(roomCodex, vpName);
|
|
35330
35330
|
}
|
|
35331
35331
|
|
|
35332
|
-
/**
|
|
35333
|
-
* Get the vpInformation of the viewPoint on the host.
|
|
35334
|
-
* @param roomCodex
|
|
35335
|
-
* @param vpName
|
|
35332
|
+
/**
|
|
35333
|
+
* Get the vpInformation of the viewPoint on the host.
|
|
35334
|
+
* @param roomCodex
|
|
35335
|
+
* @param vpName
|
|
35336
35336
|
*/
|
|
35337
35337
|
}, {
|
|
35338
35338
|
key: "getVpInfoByRoomCodex",
|
|
@@ -35346,8 +35346,8 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35346
35346
|
|
|
35347
35347
|
//------------------------------------------------------------Functions needed for 3D Rendering------------------------------------------------------------
|
|
35348
35348
|
|
|
35349
|
-
/**
|
|
35350
|
-
* This function returns the shadow Information of the current selected room
|
|
35349
|
+
/**
|
|
35350
|
+
* This function returns the shadow Information of the current selected room
|
|
35351
35351
|
*/
|
|
35352
35352
|
}, {
|
|
35353
35353
|
key: "getCurRoomShadowInfo",
|
|
@@ -35364,15 +35364,15 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35364
35364
|
return undefined;
|
|
35365
35365
|
}
|
|
35366
35366
|
|
|
35367
|
-
/**
|
|
35368
|
-
* This function returns if the current room/VP enables navigation (e.g. weissraum).
|
|
35369
|
-
* Static background rooms disable navigation
|
|
35367
|
+
/**
|
|
35368
|
+
* This function returns if the current room/VP enables navigation (e.g. weissraum).
|
|
35369
|
+
* Static background rooms disable navigation
|
|
35370
35370
|
*/
|
|
35371
|
-
/*
|
|
35372
|
-
public curVPHasStaticBG(): boolean {
|
|
35373
|
-
let vpInfo = this.getVPInfo(this.curRoomCodex, this.curViewPointName);
|
|
35374
|
-
if (vpInfo != undefined) return vpInfo.isStatic;
|
|
35375
|
-
return false;
|
|
35371
|
+
/*
|
|
35372
|
+
public curVPHasStaticBG(): boolean {
|
|
35373
|
+
let vpInfo = this.getVPInfo(this.curRoomCodex, this.curViewPointName);
|
|
35374
|
+
if (vpInfo != undefined) return vpInfo.isStatic;
|
|
35375
|
+
return false;
|
|
35376
35376
|
}*/
|
|
35377
35377
|
}, {
|
|
35378
35378
|
key: "getCurRoomlistVP",
|
|
@@ -35721,11 +35721,11 @@ var Rendering = /*#__PURE__*/function () {
|
|
|
35721
35721
|
value: function hasUIInfo() {
|
|
35722
35722
|
return this.uiInfo != '';
|
|
35723
35723
|
}
|
|
35724
|
-
/**
|
|
35725
|
-
* This function adds a blobImage to the rendering .
|
|
35726
|
-
* It is parsed to a base64 image.
|
|
35727
|
-
* @param blob The blob contains the image
|
|
35728
|
-
* @param isLayerMask True if the Image is the layer mask image
|
|
35724
|
+
/**
|
|
35725
|
+
* This function adds a blobImage to the rendering .
|
|
35726
|
+
* It is parsed to a base64 image.
|
|
35727
|
+
* @param blob The blob contains the image
|
|
35728
|
+
* @param isLayerMask True if the Image is the layer mask image
|
|
35729
35729
|
*/
|
|
35730
35730
|
}, {
|
|
35731
35731
|
key: "addImgAsBlob",
|
|
@@ -35938,16 +35938,16 @@ var RenderSettings = /*#__PURE__*/function () {
|
|
|
35938
35938
|
}
|
|
35939
35939
|
}]);
|
|
35940
35940
|
}();
|
|
35941
|
-
/*
|
|
35942
|
-
* don't lower without checking boxspring !Multiple times:
|
|
35943
|
-
* set image get's "pre-called" when switching into checkout,
|
|
35944
|
-
* this reduces loading time and works fine. However on Boxspring
|
|
35945
|
-
* there is no checkout, thats why the pre-call and the real get
|
|
35946
|
-
* renderings get called at the same time, which causes
|
|
35947
|
-
* !this.handler3D.hasLastSavedRendering() to be true.
|
|
35948
|
-
* And if hasLastSavedRendering is true there won't happen the request
|
|
35949
|
-
* and the waiting time for getlastsavedrendering is lower than normal.
|
|
35950
|
-
* (Due To no interval)
|
|
35941
|
+
/*
|
|
35942
|
+
* don't lower without checking boxspring !Multiple times:
|
|
35943
|
+
* set image get's "pre-called" when switching into checkout,
|
|
35944
|
+
* this reduces loading time and works fine. However on Boxspring
|
|
35945
|
+
* there is no checkout, thats why the pre-call and the real get
|
|
35946
|
+
* renderings get called at the same time, which causes
|
|
35947
|
+
* !this.handler3D.hasLastSavedRendering() to be true.
|
|
35948
|
+
* And if hasLastSavedRendering is true there won't happen the request
|
|
35949
|
+
* and the waiting time for getlastsavedrendering is lower than normal.
|
|
35950
|
+
* (Due To no interval)
|
|
35951
35951
|
*/
|
|
35952
35952
|
_defineProperty__default["default"](RenderSettings, "TIMEOUT_WAITFORSAVEDRENDERING_MS", 9000);
|
|
35953
35953
|
|
|
@@ -36029,10 +36029,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36029
36029
|
_defineProperty__default["default"](this, "todoAfterLogin", void 0);
|
|
36030
36030
|
_defineProperty__default["default"](this, "jwt", void 0);
|
|
36031
36031
|
_defineProperty__default["default"](this, "latestCamera", void 0);
|
|
36032
|
-
/**
|
|
36033
|
-
* This function is called from the connectionHandler when something happens during requesting rendering.
|
|
36034
|
-
* Eg. there is no free renderClient
|
|
36035
|
-
* @param info
|
|
36032
|
+
/**
|
|
36033
|
+
* This function is called from the connectionHandler when something happens during requesting rendering.
|
|
36034
|
+
* Eg. there is no free renderClient
|
|
36035
|
+
* @param info
|
|
36036
36036
|
*/
|
|
36037
36037
|
_defineProperty__default["default"](this, "onErrorRequestingRendering", function (hash, size, option) {
|
|
36038
36038
|
var rendering = _this.waitForRenderings.get(hash);
|
|
@@ -36107,9 +36107,9 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36107
36107
|
this.jwt = jwt;
|
|
36108
36108
|
}
|
|
36109
36109
|
|
|
36110
|
-
/**
|
|
36111
|
-
* This function handels the initialization of the viewpoints of a whiteroom
|
|
36112
|
-
* @param standardWhiteRoom
|
|
36110
|
+
/**
|
|
36111
|
+
* This function handels the initialization of the viewpoints of a whiteroom
|
|
36112
|
+
* @param standardWhiteRoom
|
|
36113
36113
|
*/
|
|
36114
36114
|
}, {
|
|
36115
36115
|
key: "initializeViewPoint",
|
|
@@ -36147,10 +36147,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36147
36147
|
}
|
|
36148
36148
|
return initializeViewPoint;
|
|
36149
36149
|
}()
|
|
36150
|
-
/**
|
|
36151
|
-
* This function is called to load the viewPoint lists associated to a list of room Indices. Contains an array of all static rooms
|
|
36152
|
-
* @param staticRoomList
|
|
36153
|
-
* @param catalogMainCategory Die Warengruppe des Catalogs mit diesen Räumen
|
|
36150
|
+
/**
|
|
36151
|
+
* This function is called to load the viewPoint lists associated to a list of room Indices. Contains an array of all static rooms
|
|
36152
|
+
* @param staticRoomList
|
|
36153
|
+
* @param catalogMainCategory Die Warengruppe des Catalogs mit diesen Räumen
|
|
36154
36154
|
*/
|
|
36155
36155
|
)
|
|
36156
36156
|
}, {
|
|
@@ -36190,9 +36190,9 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36190
36190
|
}
|
|
36191
36191
|
return initializeStaticRoomList;
|
|
36192
36192
|
}()
|
|
36193
|
-
/**
|
|
36194
|
-
* This function sets all the callback methods that are used to communicate with the view
|
|
36195
|
-
* @param params
|
|
36193
|
+
/**
|
|
36194
|
+
* This function sets all the callback methods that are used to communicate with the view
|
|
36195
|
+
* @param params
|
|
36196
36196
|
*/
|
|
36197
36197
|
)
|
|
36198
36198
|
}, {
|
|
@@ -36234,7 +36234,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36234
36234
|
while (1) switch (_context3.prev = _context3.next) {
|
|
36235
36235
|
case 0:
|
|
36236
36236
|
_context3.next = 2;
|
|
36237
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
36237
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-c52991a0.js'); });
|
|
36238
36238
|
case 2:
|
|
36239
36239
|
_yield$import = _context3.sent;
|
|
36240
36240
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -36351,12 +36351,12 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36351
36351
|
}, {
|
|
36352
36352
|
key: "handleReceiveRendering",
|
|
36353
36353
|
value:
|
|
36354
|
-
/**
|
|
36355
|
-
* This function is called when a rendering is sent over the socketIO of the MediaService
|
|
36356
|
-
*
|
|
36357
|
-
* @param divaNr
|
|
36358
|
-
* @param hash
|
|
36359
|
-
* @param buffer
|
|
36354
|
+
/**
|
|
36355
|
+
* This function is called when a rendering is sent over the socketIO of the MediaService
|
|
36356
|
+
*
|
|
36357
|
+
* @param divaNr
|
|
36358
|
+
* @param hash
|
|
36359
|
+
* @param buffer
|
|
36360
36360
|
*/
|
|
36361
36361
|
function handleReceiveRendering(params) {
|
|
36362
36362
|
LOG$4.debug('handleReceiveRendering ' + params.hash + '; SameMode: ' + params.saveMode);
|
|
@@ -36396,10 +36396,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36396
36396
|
}
|
|
36397
36397
|
//-----------------------------------Private methods---------------------------------------------
|
|
36398
36398
|
|
|
36399
|
-
/**
|
|
36400
|
-
* This function is called when a new rendering has to be sent to the frontend for visualization.
|
|
36401
|
-
* This function is called in the DivaWebPlanner and sent do the view
|
|
36402
|
-
* @param rendering
|
|
36399
|
+
/**
|
|
36400
|
+
* This function is called when a new rendering has to be sent to the frontend for visualization.
|
|
36401
|
+
* This function is called in the DivaWebPlanner and sent do the view
|
|
36402
|
+
* @param rendering
|
|
36403
36403
|
*/
|
|
36404
36404
|
}, {
|
|
36405
36405
|
key: "updatePlannerRendering",
|
|
@@ -36412,11 +36412,11 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36412
36412
|
this.updatePlannerRenderingInView(rendering);
|
|
36413
36413
|
}
|
|
36414
36414
|
|
|
36415
|
-
/**
|
|
36416
|
-
* This function is called, when a rendering is finished downloading.
|
|
36417
|
-
* This contains the additional RenderInfo Json string, the rendering itself and the layermask (if needed)
|
|
36418
|
-
* @param hash
|
|
36419
|
-
* @param rendering
|
|
36415
|
+
/**
|
|
36416
|
+
* This function is called, when a rendering is finished downloading.
|
|
36417
|
+
* This contains the additional RenderInfo Json string, the rendering itself and the layermask (if needed)
|
|
36418
|
+
* @param hash
|
|
36419
|
+
* @param rendering
|
|
36420
36420
|
*/
|
|
36421
36421
|
}, {
|
|
36422
36422
|
key: "checkRenderingReady",
|
|
@@ -36427,8 +36427,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36427
36427
|
LOG$4.debug('Send to view. CurrentHash: ' + hash + '; lastRequestedHash: ' + this.lastRequestedRenderHash);
|
|
36428
36428
|
return true;
|
|
36429
36429
|
}
|
|
36430
|
-
/**
|
|
36431
|
-
* 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.
|
|
36430
|
+
/**
|
|
36431
|
+
* 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.
|
|
36432
36432
|
*/
|
|
36433
36433
|
}, {
|
|
36434
36434
|
key: "checkWaitForImage",
|
|
@@ -36455,10 +36455,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36455
36455
|
return true;
|
|
36456
36456
|
}
|
|
36457
36457
|
|
|
36458
|
-
/**
|
|
36459
|
-
* 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.
|
|
36460
|
-
* @param containerWidth
|
|
36461
|
-
* @param containerHeight
|
|
36458
|
+
/**
|
|
36459
|
+
* 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.
|
|
36460
|
+
* @param containerWidth
|
|
36461
|
+
* @param containerHeight
|
|
36462
36462
|
*/
|
|
36463
36463
|
}, {
|
|
36464
36464
|
key: "adjustRenderSize",
|
|
@@ -36488,8 +36488,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36488
36488
|
|
|
36489
36489
|
//-----------------------------------Methods called from PlannerHandler----------------------------
|
|
36490
36490
|
|
|
36491
|
-
/**
|
|
36492
|
-
* Returns the rendering that is currently displayed on the screen
|
|
36491
|
+
/**
|
|
36492
|
+
* Returns the rendering that is currently displayed on the screen
|
|
36493
36493
|
*/
|
|
36494
36494
|
}, {
|
|
36495
36495
|
key: "getCurrRendering",
|
|
@@ -36504,8 +36504,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36504
36504
|
});
|
|
36505
36505
|
}
|
|
36506
36506
|
|
|
36507
|
-
/**
|
|
36508
|
-
* 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.
|
|
36507
|
+
/**
|
|
36508
|
+
* 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.
|
|
36509
36509
|
*/
|
|
36510
36510
|
}, {
|
|
36511
36511
|
key: "getLastSavedRendering",
|
|
@@ -36562,8 +36562,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36562
36562
|
return !!this.lastSavedRendering;
|
|
36563
36563
|
}
|
|
36564
36564
|
|
|
36565
|
-
/**
|
|
36566
|
-
* 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.
|
|
36565
|
+
/**
|
|
36566
|
+
* 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.
|
|
36567
36567
|
*/
|
|
36568
36568
|
}, {
|
|
36569
36569
|
key: "getLastSavedAlternateRenderings",
|
|
@@ -36621,8 +36621,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36621
36621
|
}
|
|
36622
36622
|
return getLastSavedAlternateRenderings;
|
|
36623
36623
|
}()
|
|
36624
|
-
/**
|
|
36625
|
-
* This function returns the structure of the planningJson Data. This planningJson is used by the 3D renderer to parse the current scene.
|
|
36624
|
+
/**
|
|
36625
|
+
* This function returns the structure of the planningJson Data. This planningJson is used by the 3D renderer to parse the current scene.
|
|
36626
36626
|
*/
|
|
36627
36627
|
)
|
|
36628
36628
|
}, {
|
|
@@ -36667,20 +36667,20 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36667
36667
|
};
|
|
36668
36668
|
}
|
|
36669
36669
|
|
|
36670
|
-
/**
|
|
36671
|
-
* This function is used to get a new rendering from the 3D Host
|
|
36672
|
-
* @param divaNr The current DivaNr
|
|
36673
|
-
* @param planningData The construction information of the current planning
|
|
36674
|
-
* @param width The width of the requested image
|
|
36675
|
-
* @param height The height of the requested image
|
|
36676
|
-
* @param isFullscreenRendering Is the image a fullscreen Rendering
|
|
36677
|
-
* @param planner3DGridEnabled When the planner3D Grid is enabled - request a rendering and a layermask
|
|
36678
|
-
* @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.
|
|
36679
|
-
* @param catalogCodex The CatalogCodex in the planning
|
|
36680
|
-
* @param catalogGUID The CatalogGUID in the planning
|
|
36681
|
-
* @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
|
|
36682
|
-
* @param camera The RTV Camera Information for Unity/RTV KOMBI
|
|
36683
|
-
* @param useLatestCamera should the latest camera be used ? default yes when requesting the start viewpoint via the configurator button not
|
|
36670
|
+
/**
|
|
36671
|
+
* This function is used to get a new rendering from the 3D Host
|
|
36672
|
+
* @param divaNr The current DivaNr
|
|
36673
|
+
* @param planningData The construction information of the current planning
|
|
36674
|
+
* @param width The width of the requested image
|
|
36675
|
+
* @param height The height of the requested image
|
|
36676
|
+
* @param isFullscreenRendering Is the image a fullscreen Rendering
|
|
36677
|
+
* @param planner3DGridEnabled When the planner3D Grid is enabled - request a rendering and a layermask
|
|
36678
|
+
* @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.
|
|
36679
|
+
* @param catalogCodex The CatalogCodex in the planning
|
|
36680
|
+
* @param catalogGUID The CatalogGUID in the planning
|
|
36681
|
+
* @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
|
|
36682
|
+
* @param camera The RTV Camera Information for Unity/RTV KOMBI
|
|
36683
|
+
* @param useLatestCamera should the latest camera be used ? default yes when requesting the start viewpoint via the configurator button not
|
|
36684
36684
|
*/
|
|
36685
36685
|
}, {
|
|
36686
36686
|
key: "request3D",
|
|
@@ -36854,10 +36854,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36854
36854
|
return true;
|
|
36855
36855
|
}
|
|
36856
36856
|
|
|
36857
|
-
/**
|
|
36858
|
-
*
|
|
36859
|
-
* @param planningData
|
|
36860
|
-
* @returns
|
|
36857
|
+
/**
|
|
36858
|
+
*
|
|
36859
|
+
* @param planningData
|
|
36860
|
+
* @returns
|
|
36861
36861
|
*/
|
|
36862
36862
|
}, {
|
|
36863
36863
|
key: "getProductHash",
|
|
@@ -36901,10 +36901,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36901
36901
|
}
|
|
36902
36902
|
}
|
|
36903
36903
|
|
|
36904
|
-
/**
|
|
36905
|
-
* This function is caleld when the navigation in the frontend changed (zoom/fullscreen/Swipe/ElementFocus...)
|
|
36906
|
-
* @param mode Should the viewpoint change zoom/fullscreen/swipe...
|
|
36907
|
-
* @param params Parameters used by the mode
|
|
36904
|
+
/**
|
|
36905
|
+
* This function is caleld when the navigation in the frontend changed (zoom/fullscreen/Swipe/ElementFocus...)
|
|
36906
|
+
* @param mode Should the viewpoint change zoom/fullscreen/swipe...
|
|
36907
|
+
* @param params Parameters used by the mode
|
|
36908
36908
|
*/
|
|
36909
36909
|
}, {
|
|
36910
36910
|
key: "handle3DVisualizationChanged",
|
|
@@ -36968,8 +36968,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36968
36968
|
}
|
|
36969
36969
|
}
|
|
36970
36970
|
|
|
36971
|
-
/**
|
|
36972
|
-
* This function resets the viewpoint to default.
|
|
36971
|
+
/**
|
|
36972
|
+
* This function resets the viewpoint to default.
|
|
36973
36973
|
*/
|
|
36974
36974
|
}, {
|
|
36975
36975
|
key: "resetNav3D",
|
|
@@ -36981,8 +36981,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36981
36981
|
}
|
|
36982
36982
|
}
|
|
36983
36983
|
|
|
36984
|
-
/**
|
|
36985
|
-
* This function returns all StaticRoomList items that should be displayed in the view
|
|
36984
|
+
/**
|
|
36985
|
+
* This function returns all StaticRoomList items that should be displayed in the view
|
|
36986
36986
|
*/
|
|
36987
36987
|
}, {
|
|
36988
36988
|
key: "getStaticRoomListItems",
|
|
@@ -37246,8 +37246,8 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
|
|
|
37246
37246
|
}();
|
|
37247
37247
|
var mediaServiceHandler = new DivaMediaServiceHandler();
|
|
37248
37248
|
|
|
37249
|
-
/**
|
|
37250
|
-
* This class saves a Bounding box. This bounding box can be of one Planner (one Set) or for several planner elements (multiple Sets)
|
|
37249
|
+
/**
|
|
37250
|
+
* This class saves a Bounding box. This bounding box can be of one Planner (one Set) or for several planner elements (multiple Sets)
|
|
37251
37251
|
*/
|
|
37252
37252
|
var BoundingBox = /*#__PURE__*/function () {
|
|
37253
37253
|
//y depth / z height
|
|
@@ -37260,10 +37260,10 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
37260
37260
|
this.size = new Vector3(0, 0, 0);
|
|
37261
37261
|
}
|
|
37262
37262
|
|
|
37263
|
-
/**
|
|
37264
|
-
* This function initializes the new BoundingBox of a single Planner based on the boundingbox of the whole set.
|
|
37265
|
-
* The new Boundingbox has the world size one meter on the right of the global BoundingBox
|
|
37266
|
-
* @param globalBoundingBox
|
|
37263
|
+
/**
|
|
37264
|
+
* This function initializes the new BoundingBox of a single Planner based on the boundingbox of the whole set.
|
|
37265
|
+
* The new Boundingbox has the world size one meter on the right of the global BoundingBox
|
|
37266
|
+
* @param globalBoundingBox
|
|
37267
37267
|
*/
|
|
37268
37268
|
return _createClass__default["default"](BoundingBox, [{
|
|
37269
37269
|
key: "initPlannerBBox",
|
|
@@ -37351,9 +37351,9 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
37351
37351
|
this.size.z = globalMaxZ - globalMinZ;
|
|
37352
37352
|
}
|
|
37353
37353
|
|
|
37354
|
-
/**
|
|
37355
|
-
* This function returns the with of the bounding box
|
|
37356
|
-
* @param digitsAfterComma The number of numbers after the comma
|
|
37354
|
+
/**
|
|
37355
|
+
* This function returns the with of the bounding box
|
|
37356
|
+
* @param digitsAfterComma The number of numbers after the comma
|
|
37357
37357
|
*/
|
|
37358
37358
|
}, {
|
|
37359
37359
|
key: "getWidth",
|
|
@@ -37376,9 +37376,9 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
37376
37376
|
return Math.round(this.Size.x);
|
|
37377
37377
|
}
|
|
37378
37378
|
|
|
37379
|
-
/**
|
|
37380
|
-
* This function returns the depth of the bounding box
|
|
37381
|
-
* @param digitsAfterComma The number of numbers after the comma
|
|
37379
|
+
/**
|
|
37380
|
+
* This function returns the depth of the bounding box
|
|
37381
|
+
* @param digitsAfterComma The number of numbers after the comma
|
|
37382
37382
|
*/
|
|
37383
37383
|
}, {
|
|
37384
37384
|
key: "getDepth",
|
|
@@ -37401,9 +37401,9 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
37401
37401
|
return Math.round(this.Size.z);
|
|
37402
37402
|
}
|
|
37403
37403
|
|
|
37404
|
-
/**
|
|
37405
|
-
* This function returns the height of the bounding box
|
|
37406
|
-
* @param digitsAfterComma The number of numbers after the comma
|
|
37404
|
+
/**
|
|
37405
|
+
* This function returns the height of the bounding box
|
|
37406
|
+
* @param digitsAfterComma The number of numbers after the comma
|
|
37407
37407
|
*/
|
|
37408
37408
|
}, {
|
|
37409
37409
|
key: "getHeight",
|
|
@@ -37438,8 +37438,8 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
37438
37438
|
}]);
|
|
37439
37439
|
}();
|
|
37440
37440
|
|
|
37441
|
-
/**
|
|
37442
|
-
* This class saves information and makes calculations that are necessary for the whole set
|
|
37441
|
+
/**
|
|
37442
|
+
* This class saves information and makes calculations that are necessary for the whole set
|
|
37443
37443
|
*/
|
|
37444
37444
|
var SetPlannerHandler = /*#__PURE__*/function () {
|
|
37445
37445
|
function SetPlannerHandler() {
|
|
@@ -37448,11 +37448,11 @@ var SetPlannerHandler = /*#__PURE__*/function () {
|
|
|
37448
37448
|
this.globalBoundingBox = new BoundingBox();
|
|
37449
37449
|
}
|
|
37450
37450
|
|
|
37451
|
-
/**
|
|
37452
|
-
* This function updates the posNr of the elements over all sets
|
|
37453
|
-
* So all elements in one set have pos nr going from 1 - n.
|
|
37454
|
-
* However, the setposnr start from the first set from 1 -n and in the second set it starts from n+1
|
|
37455
|
-
* @param plannerList
|
|
37451
|
+
/**
|
|
37452
|
+
* This function updates the posNr of the elements over all sets
|
|
37453
|
+
* So all elements in one set have pos nr going from 1 - n.
|
|
37454
|
+
* However, the setposnr start from the first set from 1 -n and in the second set it starts from n+1
|
|
37455
|
+
* @param plannerList
|
|
37456
37456
|
*/
|
|
37457
37457
|
return _createClass__default["default"](SetPlannerHandler, [{
|
|
37458
37458
|
key: "updateSetPosNr",
|
|
@@ -37484,9 +37484,9 @@ var SetPlannerHandler = /*#__PURE__*/function () {
|
|
|
37484
37484
|
}
|
|
37485
37485
|
}
|
|
37486
37486
|
|
|
37487
|
-
/**
|
|
37488
|
-
* This function returns the combined bounding Box of all planner bounding boxes
|
|
37489
|
-
* @param plannerList
|
|
37487
|
+
/**
|
|
37488
|
+
* This function returns the combined bounding Box of all planner bounding boxes
|
|
37489
|
+
* @param plannerList
|
|
37490
37490
|
*/
|
|
37491
37491
|
}, {
|
|
37492
37492
|
key: "getGlobalBoundingBoxForView",
|
|
@@ -37508,9 +37508,9 @@ var SetPlannerHandler = /*#__PURE__*/function () {
|
|
|
37508
37508
|
};
|
|
37509
37509
|
}
|
|
37510
37510
|
|
|
37511
|
-
/**
|
|
37512
|
-
* This function calculates the combined bounding Box of all planner bounding boxes
|
|
37513
|
-
* @param plannerList
|
|
37511
|
+
/**
|
|
37512
|
+
* This function calculates the combined bounding Box of all planner bounding boxes
|
|
37513
|
+
* @param plannerList
|
|
37514
37514
|
*/
|
|
37515
37515
|
}, {
|
|
37516
37516
|
key: "calcGlobalBoundingBox",
|
|
@@ -37526,9 +37526,9 @@ var SetPlannerHandler = /*#__PURE__*/function () {
|
|
|
37526
37526
|
this.globalBoundingBox = setBoundingBox;
|
|
37527
37527
|
}
|
|
37528
37528
|
|
|
37529
|
-
/**
|
|
37530
|
-
* This function returns the global bounding Box
|
|
37531
|
-
* @returns
|
|
37529
|
+
/**
|
|
37530
|
+
* This function returns the global bounding Box
|
|
37531
|
+
* @returns
|
|
37532
37532
|
*/
|
|
37533
37533
|
}, {
|
|
37534
37534
|
key: "getGlobalBoundingBox",
|
|
@@ -37550,9 +37550,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37550
37550
|
_defineProperty__default["default"](this, "divaNr", void 0);
|
|
37551
37551
|
_defineProperty__default["default"](this, "plannerHandlerFunctions", void 0);
|
|
37552
37552
|
_defineProperty__default["default"](this, "plannerIDCount", 1);
|
|
37553
|
-
/**
|
|
37554
|
-
* This function is called when the program only wants to update the view - it does not send the whole planning.
|
|
37555
|
-
* However, if no 3D Client has loaded the current planning the request has to be sent again and force to load the whole planning
|
|
37553
|
+
/**
|
|
37554
|
+
* This function is called when the program only wants to update the view - it does not send the whole planning.
|
|
37555
|
+
* However, if no 3D Client has loaded the current planning the request has to be sent again and force to load the whole planning
|
|
37556
37556
|
*/
|
|
37557
37557
|
_defineProperty__default["default"](this, "noRenderClientFound", function (doMakeRendering, doMakeHQRenderScript, width, height, isFullscreenRendering, planner3DGridEnabled, doShow3DDimensionLines, plannerMeasureDigits, alternateRendererInfo, alternateRenderingsExist) {
|
|
37558
37558
|
LOG$2.debug('noRenderClientFound - Request rendering again by sending all planningData');
|
|
@@ -37572,9 +37572,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37572
37572
|
this.handler3D = new PlannerHandler3D('WebPlanner', 'PfisterWebConfigurator', '', '', this.noRenderClientFound, onlyRunLogic);
|
|
37573
37573
|
}
|
|
37574
37574
|
|
|
37575
|
-
/**
|
|
37576
|
-
* This method is called when a new planning is started. This happens when a new Planning is started or a Planning is loaded.
|
|
37577
|
-
* @param divaNr The divaNr of the planning
|
|
37575
|
+
/**
|
|
37576
|
+
* This method is called when a new planning is started. This happens when a new Planning is started or a Planning is loaded.
|
|
37577
|
+
* @param divaNr The divaNr of the planning
|
|
37578
37578
|
*/
|
|
37579
37579
|
return _createClass__default["default"](DivaPlannerHandler, [{
|
|
37580
37580
|
key: "initPlanner",
|
|
@@ -37646,9 +37646,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37646
37646
|
}
|
|
37647
37647
|
return initPlanner;
|
|
37648
37648
|
}()
|
|
37649
|
-
/**
|
|
37650
|
-
* This function updates the Planner. It is called after a configuration changed.
|
|
37651
|
-
* @returns it returns all elementIds that should be deleted
|
|
37649
|
+
/**
|
|
37650
|
+
* This function updates the Planner. It is called after a configuration changed.
|
|
37651
|
+
* @returns it returns all elementIds that should be deleted
|
|
37652
37652
|
*/
|
|
37653
37653
|
)
|
|
37654
37654
|
}, {
|
|
@@ -37690,10 +37690,10 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37690
37690
|
}
|
|
37691
37691
|
return updatePlanner;
|
|
37692
37692
|
}()
|
|
37693
|
-
/**
|
|
37694
|
-
* This function is called when a product is added to a existing set
|
|
37695
|
-
* @param set
|
|
37696
|
-
* @param setPlanData
|
|
37693
|
+
/**
|
|
37694
|
+
* This function is called when a product is added to a existing set
|
|
37695
|
+
* @param set
|
|
37696
|
+
* @param setPlanData
|
|
37697
37697
|
*/
|
|
37698
37698
|
)
|
|
37699
37699
|
}, {
|
|
@@ -37735,11 +37735,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37735
37735
|
}
|
|
37736
37736
|
return extendSet;
|
|
37737
37737
|
}()
|
|
37738
|
-
/**
|
|
37739
|
-
* This function is called to initialize a new Planner - SetPlandata is used to initialize it if a already existing planning is loaded.
|
|
37740
|
-
* If it is empty a empty Planner is init.
|
|
37741
|
-
* @param set
|
|
37742
|
-
* @param setPlanData
|
|
37738
|
+
/**
|
|
37739
|
+
* This function is called to initialize a new Planner - SetPlandata is used to initialize it if a already existing planning is loaded.
|
|
37740
|
+
* If it is empty a empty Planner is init.
|
|
37741
|
+
* @param set
|
|
37742
|
+
* @param setPlanData
|
|
37743
37743
|
*/
|
|
37744
37744
|
)
|
|
37745
37745
|
}, {
|
|
@@ -37786,7 +37786,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37786
37786
|
break;
|
|
37787
37787
|
case 8:
|
|
37788
37788
|
_context4.next = 10;
|
|
37789
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
37789
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-eb45e763.js'); });
|
|
37790
37790
|
case 10:
|
|
37791
37791
|
_yield$import = _context4.sent;
|
|
37792
37792
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -37797,7 +37797,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37797
37797
|
return _context4.abrupt("break", 21);
|
|
37798
37798
|
case 15:
|
|
37799
37799
|
_context4.next = 17;
|
|
37800
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
37800
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-1c78ef85.js'); });
|
|
37801
37801
|
case 17:
|
|
37802
37802
|
_yield$import2 = _context4.sent;
|
|
37803
37803
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -37838,8 +37838,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37838
37838
|
});
|
|
37839
37839
|
}
|
|
37840
37840
|
|
|
37841
|
-
/**
|
|
37842
|
-
* This function returns a JSON Object of the whole planner Saving
|
|
37841
|
+
/**
|
|
37842
|
+
* This function returns a JSON Object of the whole planner Saving
|
|
37843
37843
|
*/
|
|
37844
37844
|
}, {
|
|
37845
37845
|
key: "savePlanner",
|
|
@@ -37878,9 +37878,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37878
37878
|
};
|
|
37879
37879
|
}
|
|
37880
37880
|
|
|
37881
|
-
/**
|
|
37882
|
-
* This function returns the base 64 representation of the current displaying rendering
|
|
37883
|
-
* @param setId
|
|
37881
|
+
/**
|
|
37882
|
+
* This function returns the base 64 representation of the current displaying rendering
|
|
37883
|
+
* @param setId
|
|
37884
37884
|
*/
|
|
37885
37885
|
}, {
|
|
37886
37886
|
key: "getSetImageAsBase64",
|
|
@@ -37891,9 +37891,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37891
37891
|
return result;
|
|
37892
37892
|
}
|
|
37893
37893
|
|
|
37894
|
-
/**
|
|
37895
|
-
* This function returns the rendering of the last saved rendering
|
|
37896
|
-
* @param setId
|
|
37894
|
+
/**
|
|
37895
|
+
* This function returns the rendering of the last saved rendering
|
|
37896
|
+
* @param setId
|
|
37897
37897
|
*/
|
|
37898
37898
|
}, {
|
|
37899
37899
|
key: "getSetRendering",
|
|
@@ -37922,9 +37922,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37922
37922
|
}
|
|
37923
37923
|
return getSetRendering;
|
|
37924
37924
|
}()
|
|
37925
|
-
/**
|
|
37926
|
-
* This function returns the URL of the last saved rendering
|
|
37927
|
-
* @param setId
|
|
37925
|
+
/**
|
|
37926
|
+
* This function returns the URL of the last saved rendering
|
|
37927
|
+
* @param setId
|
|
37928
37928
|
*/
|
|
37929
37929
|
)
|
|
37930
37930
|
}, {
|
|
@@ -37967,10 +37967,10 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37967
37967
|
return hqRenderScript;
|
|
37968
37968
|
}
|
|
37969
37969
|
|
|
37970
|
-
/**
|
|
37971
|
-
* This function returns all lastsaved alternate Set Renderings as renderings
|
|
37972
|
-
* @param setId
|
|
37973
|
-
* @returns
|
|
37970
|
+
/**
|
|
37971
|
+
* This function returns all lastsaved alternate Set Renderings as renderings
|
|
37972
|
+
* @param setId
|
|
37973
|
+
* @returns
|
|
37974
37974
|
*/
|
|
37975
37975
|
}, {
|
|
37976
37976
|
key: "getAlternateSetRenderings",
|
|
@@ -38004,9 +38004,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38004
38004
|
}
|
|
38005
38005
|
return getAlternateSetRenderings;
|
|
38006
38006
|
}()
|
|
38007
|
-
/**
|
|
38008
|
-
* returns the URLs of all saved alternate renderings
|
|
38009
|
-
* @param setId
|
|
38007
|
+
/**
|
|
38008
|
+
* returns the URLs of all saved alternate renderings
|
|
38009
|
+
* @param setId
|
|
38010
38010
|
*/
|
|
38011
38011
|
)
|
|
38012
38012
|
}, {
|
|
@@ -38183,11 +38183,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38183
38183
|
}
|
|
38184
38184
|
return saveSetImage;
|
|
38185
38185
|
}()
|
|
38186
|
-
/**
|
|
38187
|
-
* This function makes shure that all alternate set images are saved
|
|
38188
|
-
* @param catCodex
|
|
38189
|
-
* @param catGUID
|
|
38190
|
-
* @returns
|
|
38186
|
+
/**
|
|
38187
|
+
* This function makes shure that all alternate set images are saved
|
|
38188
|
+
* @param catCodex
|
|
38189
|
+
* @param catGUID
|
|
38190
|
+
* @returns
|
|
38191
38191
|
*/
|
|
38192
38192
|
}, {
|
|
38193
38193
|
key: "saveAlternateSetImages",
|
|
@@ -38278,10 +38278,10 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38278
38278
|
}
|
|
38279
38279
|
return saveSet2DImage;
|
|
38280
38280
|
}()
|
|
38281
|
-
/**
|
|
38282
|
-
* This function is called in order to destroy a planner. All elements are cleared all saved resources are cleared.
|
|
38283
|
-
* @param setId The setID the planner belongs to
|
|
38284
|
-
* @return Returns true when the planner was destroyed successfully
|
|
38281
|
+
/**
|
|
38282
|
+
* This function is called in order to destroy a planner. All elements are cleared all saved resources are cleared.
|
|
38283
|
+
* @param setId The setID the planner belongs to
|
|
38284
|
+
* @return Returns true when the planner was destroyed successfully
|
|
38285
38285
|
*/
|
|
38286
38286
|
}, {
|
|
38287
38287
|
key: "destroyPlanner",
|
|
@@ -38298,8 +38298,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38298
38298
|
return false;
|
|
38299
38299
|
}
|
|
38300
38300
|
|
|
38301
|
-
/**
|
|
38302
|
-
* This function destroys all planner elements that are currently loaded.
|
|
38301
|
+
/**
|
|
38302
|
+
* This function destroys all planner elements that are currently loaded.
|
|
38303
38303
|
*/
|
|
38304
38304
|
}, {
|
|
38305
38305
|
key: "destroyAllPlanner",
|
|
@@ -38317,8 +38317,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38317
38317
|
return true;
|
|
38318
38318
|
}
|
|
38319
38319
|
|
|
38320
|
-
/**
|
|
38321
|
-
* This function is called in order to clear all renderings in the render cache
|
|
38320
|
+
/**
|
|
38321
|
+
* This function is called in order to clear all renderings in the render cache
|
|
38322
38322
|
*/
|
|
38323
38323
|
}, {
|
|
38324
38324
|
key: "clearHandler3D",
|
|
@@ -38398,11 +38398,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38398
38398
|
}
|
|
38399
38399
|
return deletePlannerElement;
|
|
38400
38400
|
}()
|
|
38401
|
-
/**
|
|
38402
|
-
* This function gets all Elements that are copyied when copying one element.
|
|
38403
|
-
* @param setId
|
|
38404
|
-
* @param elementId
|
|
38405
|
-
* @param copyInfo
|
|
38401
|
+
/**
|
|
38402
|
+
* This function gets all Elements that are copyied when copying one element.
|
|
38403
|
+
* @param setId
|
|
38404
|
+
* @param elementId
|
|
38405
|
+
* @param copyInfo
|
|
38406
38406
|
*/
|
|
38407
38407
|
}, {
|
|
38408
38408
|
key: "getPlannerElementsInfluencedByCopy",
|
|
@@ -38413,11 +38413,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38413
38413
|
return this.plannerList.get(setId).getPlannerElementsInfluencedByCopy(elementId, copyInfo);
|
|
38414
38414
|
}
|
|
38415
38415
|
|
|
38416
|
-
/**
|
|
38417
|
-
* This function is used to copy an element in the planner
|
|
38418
|
-
* @param setId
|
|
38419
|
-
* @param articleCopyRelation
|
|
38420
|
-
* @param copyInfo
|
|
38416
|
+
/**
|
|
38417
|
+
* This function is used to copy an element in the planner
|
|
38418
|
+
* @param setId
|
|
38419
|
+
* @param articleCopyRelation
|
|
38420
|
+
* @param copyInfo
|
|
38421
38421
|
*/
|
|
38422
38422
|
}, {
|
|
38423
38423
|
key: "copyPlannerElements",
|
|
@@ -38451,13 +38451,13 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38451
38451
|
}
|
|
38452
38452
|
return copyPlannerElements;
|
|
38453
38453
|
}()
|
|
38454
|
-
/**
|
|
38455
|
-
* This function is called when the planner Elements position or rotation are modified in the view.
|
|
38456
|
-
*@param setId The set id of the planning
|
|
38457
|
-
* @param plannerElementID This is the element ID of the planner Element that is changed.
|
|
38458
|
-
*@param deltaMove This is the delta in centimeters the element was moved in each direction
|
|
38459
|
-
* @param deltaAngleDeg This is the angle the element was rotated in degrees
|
|
38460
|
-
* @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
|
|
38454
|
+
/**
|
|
38455
|
+
* This function is called when the planner Elements position or rotation are modified in the view.
|
|
38456
|
+
*@param setId The set id of the planning
|
|
38457
|
+
* @param plannerElementID This is the element ID of the planner Element that is changed.
|
|
38458
|
+
*@param deltaMove This is the delta in centimeters the element was moved in each direction
|
|
38459
|
+
* @param deltaAngleDeg This is the angle the element was rotated in degrees
|
|
38460
|
+
* @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
|
|
38461
38461
|
*/
|
|
38462
38462
|
)
|
|
38463
38463
|
}, {
|
|
@@ -38482,13 +38482,13 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38482
38482
|
return allPlanningsAreComplete;
|
|
38483
38483
|
}
|
|
38484
38484
|
|
|
38485
|
-
/**
|
|
38486
|
-
* This function returns the neighbor elements of a specific elements based on a given docking Type.
|
|
38487
|
-
* E.g. dockingType "AVR" returns the element that is docking to the AVR vector
|
|
38488
|
-
* @param setId The current setId of the element
|
|
38489
|
-
* @param elementId The elementId of the element
|
|
38490
|
-
* @param dockingType The dockingType
|
|
38491
|
-
* @returns An array of all elements indicated by the elementId
|
|
38485
|
+
/**
|
|
38486
|
+
* This function returns the neighbor elements of a specific elements based on a given docking Type.
|
|
38487
|
+
* E.g. dockingType "AVR" returns the element that is docking to the AVR vector
|
|
38488
|
+
* @param setId The current setId of the element
|
|
38489
|
+
* @param elementId The elementId of the element
|
|
38490
|
+
* @param dockingType The dockingType
|
|
38491
|
+
* @returns An array of all elements indicated by the elementId
|
|
38492
38492
|
*/
|
|
38493
38493
|
}, {
|
|
38494
38494
|
key: "getNeighborElementIds",
|
|
@@ -38539,8 +38539,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38539
38539
|
}
|
|
38540
38540
|
}
|
|
38541
38541
|
|
|
38542
|
-
/**
|
|
38543
|
-
* This function returns all viewPlannerElements of all planner
|
|
38542
|
+
/**
|
|
38543
|
+
* This function returns all viewPlannerElements of all planner
|
|
38544
38544
|
*/
|
|
38545
38545
|
}, {
|
|
38546
38546
|
key: "getAllViewPlannerElements",
|
|
@@ -38655,10 +38655,10 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38655
38655
|
}
|
|
38656
38656
|
return request3D;
|
|
38657
38657
|
}()
|
|
38658
|
-
/**
|
|
38659
|
-
* This function returns the Project (JSON) of the planning data of a specific set.
|
|
38660
|
-
* @param setId Only contains planner Information of this set
|
|
38661
|
-
* @returns The JSON of the planning data
|
|
38658
|
+
/**
|
|
38659
|
+
* This function returns the Project (JSON) of the planning data of a specific set.
|
|
38660
|
+
* @param setId Only contains planner Information of this set
|
|
38661
|
+
* @returns The JSON of the planning data
|
|
38662
38662
|
*/
|
|
38663
38663
|
}, {
|
|
38664
38664
|
key: "getProject3D",
|
|
@@ -38690,8 +38690,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38690
38690
|
}, {
|
|
38691
38691
|
key: "createPlanningHash",
|
|
38692
38692
|
value:
|
|
38693
|
-
/**
|
|
38694
|
-
* 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.
|
|
38693
|
+
/**
|
|
38694
|
+
* 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.
|
|
38695
38695
|
*/
|
|
38696
38696
|
function createPlanningHash() {
|
|
38697
38697
|
var _this5 = this;
|
|
@@ -38724,12 +38724,12 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38724
38724
|
|
|
38725
38725
|
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; }
|
|
38726
38726
|
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__default["default"](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; }
|
|
38727
|
-
/*
|
|
38728
|
-
Das ist der Konstruktor für den ganzen Web Planner.
|
|
38729
|
-
Er baut alle Klassen und initialisiert sie.
|
|
38730
|
-
Ist der BOSS initialisieren und Kommunikation handeln
|
|
38731
|
-
Arbeitet wie ein Verkehrspolizist
|
|
38732
|
-
Diese Klasse ist die Schnittstelle zwischen den Logic Klassen und der View
|
|
38727
|
+
/*
|
|
38728
|
+
Das ist der Konstruktor für den ganzen Web Planner.
|
|
38729
|
+
Er baut alle Klassen und initialisiert sie.
|
|
38730
|
+
Ist der BOSS initialisieren und Kommunikation handeln
|
|
38731
|
+
Arbeitet wie ein Verkehrspolizist
|
|
38732
|
+
Diese Klasse ist die Schnittstelle zwischen den Logic Klassen und der View
|
|
38733
38733
|
*/
|
|
38734
38734
|
|
|
38735
38735
|
var LOG$1 = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
@@ -38824,9 +38824,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38824
38824
|
}
|
|
38825
38825
|
return somethingChanged;
|
|
38826
38826
|
});
|
|
38827
|
-
/**
|
|
38828
|
-
* 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
|
|
38829
|
-
* @param succ
|
|
38827
|
+
/**
|
|
38828
|
+
* 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
|
|
38829
|
+
* @param succ
|
|
38830
38830
|
*/
|
|
38831
38831
|
_defineProperty__default["default"](this, "onRoomListLoaded", function () {
|
|
38832
38832
|
var set = _this.actSet();
|
|
@@ -38835,9 +38835,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38835
38835
|
(_this$updateStaticRoo = _this.updateStaticRoomListItems) === null || _this$updateStaticRoo === void 0 || _this$updateStaticRoo.call(_this, setHandlerInstance.getStaticRoomListItems(set), _this.api.getRoomListInProduct() || _this.plannerConfig.initMode);
|
|
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__default["default"](this, "updatePlannerRendering", function (rendering) {
|
|
38843
38843
|
var _this$state;
|
|
@@ -38852,9 +38852,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38852
38852
|
_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);
|
|
38853
38853
|
}
|
|
38854
38854
|
});
|
|
38855
|
-
/**
|
|
38856
|
-
* This function is called when the planner Rendering should be updated
|
|
38857
|
-
* @param rendering The new rendering that should be loaded into the view
|
|
38855
|
+
/**
|
|
38856
|
+
* This function is called when the planner Rendering should be updated
|
|
38857
|
+
* @param rendering The new rendering that should be loaded into the view
|
|
38858
38858
|
*/
|
|
38859
38859
|
_defineProperty__default["default"](this, "updatePlannerHqRenderScript", function (hqRenderscript) {
|
|
38860
38860
|
var _this$setHQRenderScri;
|
|
@@ -38880,8 +38880,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38880
38880
|
}
|
|
38881
38881
|
return false;
|
|
38882
38882
|
});
|
|
38883
|
-
/**
|
|
38884
|
-
* This Function ist call from the View when all Planner Article are Requested for listing
|
|
38883
|
+
/**
|
|
38884
|
+
* This Function ist call from the View when all Planner Article are Requested for listing
|
|
38885
38885
|
*/
|
|
38886
38886
|
_defineProperty__default["default"](this, "loadCatalogPlannerArticles", function (paletteeId, isUpdate, type, dockFilter, actStepName, stepKey) {
|
|
38887
38887
|
var _this$updateCatalogPl;
|
|
@@ -38889,18 +38889,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38889
38889
|
//Von diesem Katalog müssen wir die CatalogPlannerArticles laden.
|
|
38890
38890
|
(_this$updateCatalogPl = _this.updateCatalogPlannerArticles) === null || _this$updateCatalogPl === void 0 || _this$updateCatalogPl.call(_this, setHandlerInstance.getPlannerPaletteViewInfo(_this.actSet(), type), paletteeId, isUpdate, type, dockFilter, actStepName, stepKey);
|
|
38891
38891
|
});
|
|
38892
|
-
/**
|
|
38893
|
-
* this fuction loads the accessoires of a specific article -> could be more than one article in the future
|
|
38894
|
-
* @param targetArticles the article of which we load the accessoires
|
|
38892
|
+
/**
|
|
38893
|
+
* this fuction loads the accessoires of a specific article -> could be more than one article in the future
|
|
38894
|
+
* @param targetArticles the article of which we load the accessoires
|
|
38895
38895
|
*/
|
|
38896
38896
|
_defineProperty__default["default"](this, "loadAccessoiresOfArticles", function (targetArticles) {
|
|
38897
38897
|
var set = _this.actSet();
|
|
38898
38898
|
if (!set) return;
|
|
38899
38899
|
_this.updateAccessoiresPalette(setHandlerInstance.getAccessoriesOfArticles(_this.actSet(), targetArticles), set.configAccessoiresInAccessoireStep ? 'ACC_CONFIG' : 'ACC');
|
|
38900
38900
|
});
|
|
38901
|
-
/**
|
|
38902
|
-
* this function is called when all Items of a ConfigStep are requested
|
|
38903
|
-
* @param configStepKey unique indentifier for configStep
|
|
38901
|
+
/**
|
|
38902
|
+
* this function is called when all Items of a ConfigStep are requested
|
|
38903
|
+
* @param configStepKey unique indentifier for configStep
|
|
38904
38904
|
*/
|
|
38905
38905
|
_defineProperty__default["default"](this, "loadConfigItemsOfOptions", /*#__PURE__*/function () {
|
|
38906
38906
|
var _ref = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(configStepKey, paletteId, isUpdate, visible) {
|
|
@@ -38924,8 +38924,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38924
38924
|
return _ref.apply(this, arguments);
|
|
38925
38925
|
};
|
|
38926
38926
|
}());
|
|
38927
|
-
/**
|
|
38928
|
-
* this function laods the summary Items
|
|
38927
|
+
/**
|
|
38928
|
+
* this function laods the summary Items
|
|
38929
38929
|
*/
|
|
38930
38930
|
_defineProperty__default["default"](this, "loadSummaryItems", /*#__PURE__*/_asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2() {
|
|
38931
38931
|
var _this$actions, _this$actions$toggleL, _this$updateSummaryIt, _this$actions2, _this$actions2$toggle;
|
|
@@ -38969,18 +38969,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38969
38969
|
var _this$updateDoorPlann;
|
|
38970
38970
|
(_this$updateDoorPlann = _this.updateDoorPlannerItems) === null || _this$updateDoorPlann === void 0 || _this$updateDoorPlann.call(_this, setHandlerInstance.getDoorPlannerItems(_this.actSet(), configStepKey), configStepKey);
|
|
38971
38971
|
});
|
|
38972
|
-
/**
|
|
38973
|
-
* This function is called when switching from one planning to another. All Planner handler are destroyed.
|
|
38974
|
-
* @param doDestroy3DHostConnection The whole renderCache is cleared and the connection to the 3D render host is cleared
|
|
38972
|
+
/**
|
|
38973
|
+
* This function is called when switching from one planning to another. All Planner handler are destroyed.
|
|
38974
|
+
* @param doDestroy3DHostConnection The whole renderCache is cleared and the connection to the 3D render host is cleared
|
|
38975
38975
|
*/
|
|
38976
38976
|
_defineProperty__default["default"](this, "destroyPlannerHandler", function (doDestroy3DHostConnection) {
|
|
38977
38977
|
setHandlerInstance.destroyPlannerHandler(_this.actSet(), doDestroy3DHostConnection);
|
|
38978
38978
|
if (_this.getCurPlannerViewMode) _this.updatePlannerView('DESTROY_PLANNER');
|
|
38979
38979
|
});
|
|
38980
|
-
/**
|
|
38981
|
-
* this Function is called when new Planner Article is Loaded
|
|
38982
|
-
* @param elementCodex unique Codex to identify the article
|
|
38983
|
-
* @param parentElement ElementID of the parent element used for docking
|
|
38980
|
+
/**
|
|
38981
|
+
* this Function is called when new Planner Article is Loaded
|
|
38982
|
+
* @param elementCodex unique Codex to identify the article
|
|
38983
|
+
* @param parentElement ElementID of the parent element used for docking
|
|
38984
38984
|
*/
|
|
38985
38985
|
_defineProperty__default["default"](this, "addPlannerElement", /*#__PURE__*/function () {
|
|
38986
38986
|
var _ref3 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee3(elementCodex, initParams, dontUpdateView) {
|
|
@@ -39043,11 +39043,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39043
39043
|
return _ref3.apply(this, arguments);
|
|
39044
39044
|
};
|
|
39045
39045
|
}());
|
|
39046
|
-
/**
|
|
39047
|
-
* this function implements a switch logic of 2 elements also called "Tauschfunktion"
|
|
39048
|
-
* @param setId actSet
|
|
39049
|
-
* @param elementId Id of the element that gets deleted
|
|
39050
|
-
* @param articleCodex articleCodex of the new Element
|
|
39046
|
+
/**
|
|
39047
|
+
* this function implements a switch logic of 2 elements also called "Tauschfunktion"
|
|
39048
|
+
* @param setId actSet
|
|
39049
|
+
* @param elementId Id of the element that gets deleted
|
|
39050
|
+
* @param articleCodex articleCodex of the new Element
|
|
39051
39051
|
*/
|
|
39052
39052
|
_defineProperty__default["default"](this, "switchPlannerElement", /*#__PURE__*/function () {
|
|
39053
39053
|
var _ref4 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee4(setId, elementId, articleCodex, initParams) {
|
|
@@ -39172,12 +39172,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39172
39172
|
return _ref6.apply(this, arguments);
|
|
39173
39173
|
};
|
|
39174
39174
|
}());
|
|
39175
|
-
/**
|
|
39176
|
-
* This function is called every time the transformation of an Element is changed
|
|
39177
|
-
* @param plannerElementID
|
|
39178
|
-
* @param deltaMove
|
|
39179
|
-
* @param deltaAngleDeg
|
|
39180
|
-
* @param transState
|
|
39175
|
+
/**
|
|
39176
|
+
* This function is called every time the transformation of an Element is changed
|
|
39177
|
+
* @param plannerElementID
|
|
39178
|
+
* @param deltaMove
|
|
39179
|
+
* @param deltaAngleDeg
|
|
39180
|
+
* @param transState
|
|
39181
39181
|
*/
|
|
39182
39182
|
_defineProperty__default["default"](this, "updatePlannerTrans", /*#__PURE__*/function () {
|
|
39183
39183
|
var _ref7 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee7(setId, plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance) {
|
|
@@ -39202,10 +39202,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39202
39202
|
return _ref7.apply(this, arguments);
|
|
39203
39203
|
};
|
|
39204
39204
|
}());
|
|
39205
|
-
/**
|
|
39206
|
-
* This function is called when the user interacts with the navigation in the 3D Image view.
|
|
39207
|
-
* The mode indicates what should be done in the navigation like zooming or swiping.
|
|
39208
|
-
* @param avoidUpdateRendering If this parameter is set to true, the function only updates the viewPointHandler - no rendering is made.
|
|
39205
|
+
/**
|
|
39206
|
+
* This function is called when the user interacts with the navigation in the 3D Image view.
|
|
39207
|
+
* The mode indicates what should be done in the navigation like zooming or swiping.
|
|
39208
|
+
* @param avoidUpdateRendering If this parameter is set to true, the function only updates the viewPointHandler - no rendering is made.
|
|
39209
39209
|
*/
|
|
39210
39210
|
_defineProperty__default["default"](this, "handle3DVisualizationChanged", function (mode, params, avoidUpdateRendering) {
|
|
39211
39211
|
var _this$getDoShow3DDime;
|
|
@@ -39292,10 +39292,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39292
39292
|
_defineProperty__default["default"](this, "getBasketIdsOfElementIdLogic", function (elementId) {
|
|
39293
39293
|
return setHandlerInstance.getBasketIdOfElementId(_this.actSet(), elementId);
|
|
39294
39294
|
});
|
|
39295
|
-
/**
|
|
39296
|
-
* This function is called when the the checkBox to ConfigSingle is triggered
|
|
39297
|
-
* @param doConfigSingle new ConfigSingle value
|
|
39298
|
-
* @param configStepKey act ConfigStep
|
|
39295
|
+
/**
|
|
39296
|
+
* This function is called when the the checkBox to ConfigSingle is triggered
|
|
39297
|
+
* @param doConfigSingle new ConfigSingle value
|
|
39298
|
+
* @param configStepKey act ConfigStep
|
|
39299
39299
|
*/
|
|
39300
39300
|
_defineProperty__default["default"](this, "configSingleIsChanged", /*#__PURE__*/function () {
|
|
39301
39301
|
var _ref10 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee10(doConfigSingle, configStepKey, groupedOptions, groupedArticles, optionCodex, tabGroupKey) {
|
|
@@ -39325,14 +39325,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39325
39325
|
return _ref10.apply(this, arguments);
|
|
39326
39326
|
};
|
|
39327
39327
|
}());
|
|
39328
|
-
/**
|
|
39329
|
-
* this function is called when the an ConfigItem is clicked
|
|
39330
|
-
* the configuration of targetArticles gets updated
|
|
39331
|
-
*
|
|
39332
|
-
* @param myValues a dictionary with the key of the OptionCodex and the value of the OptionValueCodex
|
|
39333
|
-
* @param targetArticles array if BasketIds
|
|
39334
|
-
* @param freeText freeText is null when specificly set to null. When nopt set at all its undefined
|
|
39335
|
-
*
|
|
39328
|
+
/**
|
|
39329
|
+
* this function is called when the an ConfigItem is clicked
|
|
39330
|
+
* the configuration of targetArticles gets updated
|
|
39331
|
+
*
|
|
39332
|
+
* @param myValues a dictionary with the key of the OptionCodex and the value of the OptionValueCodex
|
|
39333
|
+
* @param targetArticles array if BasketIds
|
|
39334
|
+
* @param freeText freeText is null when specificly set to null. When nopt set at all its undefined
|
|
39335
|
+
*
|
|
39336
39336
|
*/
|
|
39337
39337
|
//onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
|
|
39338
39338
|
_defineProperty__default["default"](this, "doConfigure", /*#__PURE__*/function () {
|
|
@@ -39597,17 +39597,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39597
39597
|
this.onInitializationError();
|
|
39598
39598
|
//fehler beim laden vom basket..
|
|
39599
39599
|
LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {
|
|
39600
|
-
/*
|
|
39601
|
-
origProductId: basket.OrigProductId,
|
|
39602
|
-
origDivaNr: this.divaBasketHandler.origConfiguration.originDivaNr,
|
|
39603
|
-
bv: (set?.getSetPrice() ?? 0) / 1000,
|
|
39604
|
-
cat: catalogData?.catalogCodex,
|
|
39605
|
-
catName: catalogData?.catalogName,
|
|
39606
|
-
accountName: catalogData?.accountName,
|
|
39607
|
-
sup: catalogData?.supplierGuid,
|
|
39608
|
-
journeyId: basket.CustomerJourneyId,
|
|
39609
|
-
divaNr: basket.DivaNr,
|
|
39610
|
-
documentVersion: basket.DocumentVersion,
|
|
39600
|
+
/*
|
|
39601
|
+
origProductId: basket.OrigProductId,
|
|
39602
|
+
origDivaNr: this.divaBasketHandler.origConfiguration.originDivaNr,
|
|
39603
|
+
bv: (set?.getSetPrice() ?? 0) / 1000,
|
|
39604
|
+
cat: catalogData?.catalogCodex,
|
|
39605
|
+
catName: catalogData?.catalogName,
|
|
39606
|
+
accountName: catalogData?.accountName,
|
|
39607
|
+
sup: catalogData?.supplierGuid,
|
|
39608
|
+
journeyId: basket.CustomerJourneyId,
|
|
39609
|
+
divaNr: basket.DivaNr,
|
|
39610
|
+
documentVersion: basket.DocumentVersion,
|
|
39611
39611
|
plannerMode: this.getCurImageMode(),*/
|
|
39612
39612
|
});
|
|
39613
39613
|
return _context13.abrupt("return", false);
|
|
@@ -39754,8 +39754,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39754
39754
|
return this.plannerHandler;
|
|
39755
39755
|
}
|
|
39756
39756
|
|
|
39757
|
-
/*
|
|
39758
|
-
Wenn eine Planung geladen wurde, dann muss die View initialisiert werden
|
|
39757
|
+
/*
|
|
39758
|
+
Wenn eine Planung geladen wurde, dann muss die View initialisiert werden
|
|
39759
39759
|
*/
|
|
39760
39760
|
}, {
|
|
39761
39761
|
key: "initView",
|
|
@@ -40006,10 +40006,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40006
40006
|
this.setHQRenderScript = setHQRenderScript;
|
|
40007
40007
|
}
|
|
40008
40008
|
|
|
40009
|
-
/**
|
|
40010
|
-
* This function is called when the planner view should be updated
|
|
40011
|
-
* @param callingFrom This parameter is used for debug Reasons. It can have information from where in the code the updatePlannerView is called
|
|
40012
|
-
* @param viewpoint This parameter is used to send the viewpoint information from the rtv to unity
|
|
40009
|
+
/**
|
|
40010
|
+
* This function is called when the planner view should be updated
|
|
40011
|
+
* @param callingFrom This parameter is used for debug Reasons. It can have information from where in the code the updatePlannerView is called
|
|
40012
|
+
* @param viewpoint This parameter is used to send the viewpoint information from the rtv to unity
|
|
40013
40013
|
*/
|
|
40014
40014
|
}, {
|
|
40015
40015
|
key: "updatePlannerView",
|
|
@@ -40075,12 +40075,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40075
40075
|
}
|
|
40076
40076
|
}
|
|
40077
40077
|
|
|
40078
|
-
/**
|
|
40079
|
-
* This function forces loading the 3D image of a planning and the 2D planner.
|
|
40080
|
-
* @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.
|
|
40081
|
-
* If TEMP is used the rendered image is saved temporarily on the MediaService - DEPRECTED
|
|
40082
|
-
* If PERMANENT the rendering is saved permanent in the MediaService
|
|
40083
|
-
* @param doLoadAllAltnerateRenderings Force load all alternate renderings - eg entering summary page load rendering with doors and without doors
|
|
40078
|
+
/**
|
|
40079
|
+
* This function forces loading the 3D image of a planning and the 2D planner.
|
|
40080
|
+
* @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.
|
|
40081
|
+
* If TEMP is used the rendered image is saved temporarily on the MediaService - DEPRECTED
|
|
40082
|
+
* If PERMANENT the rendering is saved permanent in the MediaService
|
|
40083
|
+
* @param doLoadAllAltnerateRenderings Force load all alternate renderings - eg entering summary page load rendering with doors and without doors
|
|
40084
40084
|
*/
|
|
40085
40085
|
}, {
|
|
40086
40086
|
key: "forceUpdatePlannerView",
|
|
@@ -40110,8 +40110,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40110
40110
|
}, {
|
|
40111
40111
|
key: "destroyWebPlanner",
|
|
40112
40112
|
value:
|
|
40113
|
-
/**
|
|
40114
|
-
* 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.
|
|
40113
|
+
/**
|
|
40114
|
+
* 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.
|
|
40115
40115
|
*/
|
|
40116
40116
|
|
|
40117
40117
|
function destroyWebPlanner() {
|
|
@@ -40159,11 +40159,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40159
40159
|
}
|
|
40160
40160
|
return deletePlannerElement;
|
|
40161
40161
|
}()
|
|
40162
|
-
/**
|
|
40163
|
-
* This function is called when a element should be copied.
|
|
40164
|
-
* @param setId the setId the element to copy belongs too
|
|
40165
|
-
* @param elementId The elementId that should be copied
|
|
40166
|
-
* @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.
|
|
40162
|
+
/**
|
|
40163
|
+
* This function is called when a element should be copied.
|
|
40164
|
+
* @param setId the setId the element to copy belongs too
|
|
40165
|
+
* @param elementId The elementId that should be copied
|
|
40166
|
+
* @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.
|
|
40167
40167
|
*/
|
|
40168
40168
|
}, {
|
|
40169
40169
|
key: "copyPlannerElement",
|
|
@@ -40210,8 +40210,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40210
40210
|
}, {
|
|
40211
40211
|
key: "getPlanningIsComplete",
|
|
40212
40212
|
value:
|
|
40213
|
-
/**
|
|
40214
|
-
* This function returns true if all Plannings are complete. Otherwise it returns false (Open AVL and AVR).
|
|
40213
|
+
/**
|
|
40214
|
+
* This function returns true if all Plannings are complete. Otherwise it returns false (Open AVL and AVR).
|
|
40215
40215
|
*/
|
|
40216
40216
|
function getPlanningIsComplete(forceCheck) {
|
|
40217
40217
|
return setHandlerInstance.getPlanningIsComplete(this.actSet(), forceCheck);
|
|
@@ -40407,9 +40407,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40407
40407
|
(_this$actSet8 = this.actSet()) === null || _this$actSet8 === void 0 || _this$actSet8.setDifferentOptions(options);
|
|
40408
40408
|
}
|
|
40409
40409
|
|
|
40410
|
-
/**
|
|
40411
|
-
* Updated the Price in the View.
|
|
40412
|
-
* Should always be called after something was changed!
|
|
40410
|
+
/**
|
|
40411
|
+
* Updated the Price in the View.
|
|
40412
|
+
* Should always be called after something was changed!
|
|
40413
40413
|
*/
|
|
40414
40414
|
}, {
|
|
40415
40415
|
key: "updatePriceInView",
|
|
@@ -40419,9 +40419,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40419
40419
|
(_this$updatePrice = this.updatePrice) === null || _this$updatePrice === void 0 || _this$updatePrice.call(this, setHandlerInstance.getTotalPrice(this.sets), this.actSet().getSetPrice(), setHandlerInstance.getTotalBruttoPrice(this.sets));
|
|
40420
40420
|
}
|
|
40421
40421
|
|
|
40422
|
-
/**
|
|
40423
|
-
* 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
|
|
40424
|
-
* @param event to identify which event
|
|
40422
|
+
/**
|
|
40423
|
+
* 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
|
|
40424
|
+
* @param event to identify which event
|
|
40425
40425
|
*/
|
|
40426
40426
|
}, {
|
|
40427
40427
|
key: "eventIsManagedByClient",
|
|
@@ -40437,10 +40437,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40437
40437
|
DivaUtils__default["default"].addToDataLayer(category, action, this.divaNr);
|
|
40438
40438
|
}
|
|
40439
40439
|
|
|
40440
|
-
/**
|
|
40441
|
-
* this function calls genericly any event and passes specific params
|
|
40442
|
-
* @param event to identify which event
|
|
40443
|
-
* @param param parameters to pass over the event
|
|
40440
|
+
/**
|
|
40441
|
+
* this function calls genericly any event and passes specific params
|
|
40442
|
+
* @param event to identify which event
|
|
40443
|
+
* @param param parameters to pass over the event
|
|
40444
40444
|
*/
|
|
40445
40445
|
}, {
|
|
40446
40446
|
key: "callEvent",
|
|
@@ -40758,11 +40758,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40758
40758
|
return setHandlerInstance.checkBannerRules(set, visitedOptions, event);
|
|
40759
40759
|
}
|
|
40760
40760
|
|
|
40761
|
-
/**
|
|
40762
|
-
* This function returns true if the Planner Mode should be visible and the planner Step should be shown.
|
|
40763
|
-
* The planner step is not shown if:
|
|
40764
|
-
* - There is no viewer Option set for the Planner
|
|
40765
|
-
* - The box Planner is loaded
|
|
40761
|
+
/**
|
|
40762
|
+
* This function returns true if the Planner Mode should be visible and the planner Step should be shown.
|
|
40763
|
+
* The planner step is not shown if:
|
|
40764
|
+
* - There is no viewer Option set for the Planner
|
|
40765
|
+
* - The box Planner is loaded
|
|
40766
40766
|
*/
|
|
40767
40767
|
}, {
|
|
40768
40768
|
key: "getCurPlannerType",
|
|
@@ -41688,8 +41688,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41688
41688
|
return Object.values(this.sets);
|
|
41689
41689
|
}
|
|
41690
41690
|
|
|
41691
|
-
/**
|
|
41692
|
-
* This function returns the planner mode.
|
|
41691
|
+
/**
|
|
41692
|
+
* This function returns the planner mode.
|
|
41693
41693
|
*/
|
|
41694
41694
|
}, {
|
|
41695
41695
|
key: "getPlannerMode",
|
|
@@ -41807,8 +41807,8 @@ var DockingPoint = /*#__PURE__*/function () {
|
|
|
41807
41807
|
this.layer = layer;
|
|
41808
41808
|
}
|
|
41809
41809
|
|
|
41810
|
-
/**
|
|
41811
|
-
* Creates a clone of the current dockingPoint
|
|
41810
|
+
/**
|
|
41811
|
+
* Creates a clone of the current dockingPoint
|
|
41812
41812
|
*/
|
|
41813
41813
|
return _createClass__default["default"](DockingPoint, [{
|
|
41814
41814
|
key: "clone",
|
|
@@ -41887,10 +41887,10 @@ var DockingPoint = /*#__PURE__*/function () {
|
|
|
41887
41887
|
get: function get() {
|
|
41888
41888
|
return this.dockingPoint.dpFilter;
|
|
41889
41889
|
}
|
|
41890
|
-
/**
|
|
41891
|
-
* This function is called when the dockingPoint is docked to another dockingPoint
|
|
41892
|
-
* @param refDockingPoint The reference dockingpoint, this is docked to
|
|
41893
|
-
* @param refElementId The elementId of the reference DockingPoint
|
|
41890
|
+
/**
|
|
41891
|
+
* This function is called when the dockingPoint is docked to another dockingPoint
|
|
41892
|
+
* @param refDockingPoint The reference dockingpoint, this is docked to
|
|
41893
|
+
* @param refElementId The elementId of the reference DockingPoint
|
|
41894
41894
|
*/
|
|
41895
41895
|
}, {
|
|
41896
41896
|
key: "doDock",
|
|
@@ -41900,8 +41900,8 @@ var DockingPoint = /*#__PURE__*/function () {
|
|
|
41900
41900
|
this.dockingPoint.onElementId = refElementId;
|
|
41901
41901
|
}
|
|
41902
41902
|
|
|
41903
|
-
/**
|
|
41904
|
-
* This function is called when the dockingpoint should be undocked
|
|
41903
|
+
/**
|
|
41904
|
+
* This function is called when the dockingpoint should be undocked
|
|
41905
41905
|
*/
|
|
41906
41906
|
}, {
|
|
41907
41907
|
key: "undock",
|
|
@@ -41911,9 +41911,9 @@ var DockingPoint = /*#__PURE__*/function () {
|
|
|
41911
41911
|
this.dockingPoint.onElementId = undefined;
|
|
41912
41912
|
}
|
|
41913
41913
|
|
|
41914
|
-
/**
|
|
41915
|
-
* This function is used to disable the dp temporarily. It is ignored in the planer
|
|
41916
|
-
* @param doDisable
|
|
41914
|
+
/**
|
|
41915
|
+
* This function is used to disable the dp temporarily. It is ignored in the planer
|
|
41916
|
+
* @param doDisable
|
|
41917
41917
|
*/
|
|
41918
41918
|
}, {
|
|
41919
41919
|
key: "disableDP",
|
|
@@ -42221,24 +42221,24 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42221
42221
|
}
|
|
42222
42222
|
this.updateRequredCells();
|
|
42223
42223
|
}
|
|
42224
|
-
/**
|
|
42225
|
-
* this logic tries to fit in an accessoire on certain index
|
|
42226
|
-
* if gridAllowedOnCells is not undefined it means the accessoire has some certain indexes where it can be placed.
|
|
42227
|
-
* @param size cellsize of the accessoire
|
|
42228
|
-
* @param index place where try to fit
|
|
42229
|
-
* @param gridAllowedOnCells specific rules bounded with a parentCodex
|
|
42230
|
-
* @returns
|
|
42231
|
-
*
|
|
42232
|
-
* type:
|
|
42233
|
-
* "fitsOn" | -> accessoires has space
|
|
42234
|
-
* "fitsOnParentRule" | -> accessoires has space on the specific parent rule
|
|
42235
|
-
* "doesNotFit" | -> accessoires has not space
|
|
42236
|
-
* "notAllowedByParentRule" -> accessoires has not space on the specific parent rule
|
|
42237
|
-
* "fitsOnParentRuleButOriginalNotAllowed" -> accessoires has space somewhere eles but not on the original space
|
|
42238
|
-
*
|
|
42239
|
-
* index?: number -> final index where the accessoire has enough space to be placed
|
|
42240
|
-
* size: number
|
|
42241
|
-
* canOnlyFitOn?: number[] -> made for the error message to tell the user where the accessoire only can take place
|
|
42224
|
+
/**
|
|
42225
|
+
* this logic tries to fit in an accessoire on certain index
|
|
42226
|
+
* if gridAllowedOnCells is not undefined it means the accessoire has some certain indexes where it can be placed.
|
|
42227
|
+
* @param size cellsize of the accessoire
|
|
42228
|
+
* @param index place where try to fit
|
|
42229
|
+
* @param gridAllowedOnCells specific rules bounded with a parentCodex
|
|
42230
|
+
* @returns
|
|
42231
|
+
*
|
|
42232
|
+
* type:
|
|
42233
|
+
* "fitsOn" | -> accessoires has space
|
|
42234
|
+
* "fitsOnParentRule" | -> accessoires has space on the specific parent rule
|
|
42235
|
+
* "doesNotFit" | -> accessoires has not space
|
|
42236
|
+
* "notAllowedByParentRule" -> accessoires has not space on the specific parent rule
|
|
42237
|
+
* "fitsOnParentRuleButOriginalNotAllowed" -> accessoires has space somewhere eles but not on the original space
|
|
42238
|
+
*
|
|
42239
|
+
* index?: number -> final index where the accessoire has enough space to be placed
|
|
42240
|
+
* size: number
|
|
42241
|
+
* canOnlyFitOn?: number[] -> made for the error message to tell the user where the accessoire only can take place
|
|
42242
42242
|
*/
|
|
42243
42243
|
return _createClass__default["default"](Grid, [{
|
|
42244
42244
|
key: "tryFitOnShelf",
|
|
@@ -42364,12 +42364,12 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42364
42364
|
});
|
|
42365
42365
|
}
|
|
42366
42366
|
|
|
42367
|
-
/**
|
|
42368
|
-
* new accessoire gets placed in the grid
|
|
42369
|
-
* @param index
|
|
42370
|
-
* @param accessoire
|
|
42371
|
-
* @param type
|
|
42372
|
-
* @param onlyPlaceHolder
|
|
42367
|
+
/**
|
|
42368
|
+
* new accessoire gets placed in the grid
|
|
42369
|
+
* @param index
|
|
42370
|
+
* @param accessoire
|
|
42371
|
+
* @param type
|
|
42372
|
+
* @param onlyPlaceHolder
|
|
42373
42373
|
*/
|
|
42374
42374
|
}, {
|
|
42375
42375
|
key: "addAccessoireInCells",
|
|
@@ -42429,9 +42429,9 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42429
42429
|
}
|
|
42430
42430
|
}
|
|
42431
42431
|
|
|
42432
|
-
/**
|
|
42433
|
-
* accessoire gets deleted in the grid
|
|
42434
|
-
* @param index
|
|
42432
|
+
/**
|
|
42433
|
+
* accessoire gets deleted in the grid
|
|
42434
|
+
* @param index
|
|
42435
42435
|
*/
|
|
42436
42436
|
}, {
|
|
42437
42437
|
key: "deleteAccessoireInCells",
|
|
@@ -42670,9 +42670,9 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42670
42670
|
})) return false;
|
|
42671
42671
|
return true;
|
|
42672
42672
|
}
|
|
42673
|
-
/**
|
|
42674
|
-
* here the rules in heightGridCellCountOnRule get checked and controlled if the new rules != the current rule
|
|
42675
|
-
* @returns
|
|
42673
|
+
/**
|
|
42674
|
+
* here the rules in heightGridCellCountOnRule get checked and controlled if the new rules != the current rule
|
|
42675
|
+
* @returns
|
|
42676
42676
|
*/
|
|
42677
42677
|
}, {
|
|
42678
42678
|
key: "onConfigChanged",
|
|
@@ -42698,11 +42698,11 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42698
42698
|
return returnTypes;
|
|
42699
42699
|
}
|
|
42700
42700
|
|
|
42701
|
-
/**
|
|
42702
|
-
* complicated but well testet logic to move accessoires with drag and drop in the grid
|
|
42703
|
-
* @param initialIndex from index
|
|
42704
|
-
* @param finalIndex to index
|
|
42705
|
-
* @returns
|
|
42701
|
+
/**
|
|
42702
|
+
* complicated but well testet logic to move accessoires with drag and drop in the grid
|
|
42703
|
+
* @param initialIndex from index
|
|
42704
|
+
* @param finalIndex to index
|
|
42705
|
+
* @returns
|
|
42706
42706
|
*/
|
|
42707
42707
|
}, {
|
|
42708
42708
|
key: "moveCell",
|
|
@@ -42841,9 +42841,9 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42841
42841
|
return resetCells ? 'RESETTED_CELLS' : 'SUCCESS';
|
|
42842
42842
|
}
|
|
42843
42843
|
|
|
42844
|
-
/**
|
|
42845
|
-
*
|
|
42846
|
-
* @returns if one or more cells a still required return true
|
|
42844
|
+
/**
|
|
42845
|
+
*
|
|
42846
|
+
* @returns if one or more cells a still required return true
|
|
42847
42847
|
*/
|
|
42848
42848
|
}, {
|
|
42849
42849
|
key: "areCellsStillRequired",
|
|
@@ -42857,9 +42857,9 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42857
42857
|
return false;
|
|
42858
42858
|
}
|
|
42859
42859
|
|
|
42860
|
-
/**
|
|
42861
|
-
* here the heightGridCellRequired gets evaluated and updated in the cells
|
|
42862
|
-
* gets always called after something was added, moved or removed in the cells
|
|
42860
|
+
/**
|
|
42861
|
+
* here the heightGridCellRequired gets evaluated and updated in the cells
|
|
42862
|
+
* gets always called after something was added, moved or removed in the cells
|
|
42863
42863
|
*/
|
|
42864
42864
|
}, {
|
|
42865
42865
|
key: "updateRequredCells",
|
|
@@ -43086,9 +43086,9 @@ var Grid = /*#__PURE__*/function () {
|
|
|
43086
43086
|
})) || [];
|
|
43087
43087
|
}
|
|
43088
43088
|
|
|
43089
|
-
/**
|
|
43090
|
-
* helperfuntion to get the parentshelfId of an shelfPlanner eg: T-Stück
|
|
43091
|
-
* @returns
|
|
43089
|
+
/**
|
|
43090
|
+
* helperfuntion to get the parentshelfId of an shelfPlanner eg: T-Stück
|
|
43091
|
+
* @returns
|
|
43092
43092
|
*/
|
|
43093
43093
|
}, {
|
|
43094
43094
|
key: "getShelfParentShelfId",
|
|
@@ -59075,10 +59075,10 @@ var ProductHandler = /*#__PURE__*/function () {
|
|
|
59075
59075
|
this.livingArea = livingArea;
|
|
59076
59076
|
this.mainCategory = mainCategory;
|
|
59077
59077
|
this.subCategory = subCategory;
|
|
59078
|
-
/**
|
|
59079
|
-
* Saves the products in the current state
|
|
59080
|
-
* @param basket the basket data for which products get created/loaded
|
|
59081
|
-
* @param catalogData the catalog data for this basket
|
|
59078
|
+
/**
|
|
59079
|
+
* Saves the products in the current state
|
|
59080
|
+
* @param basket the basket data for which products get created/loaded
|
|
59081
|
+
* @param catalogData the catalog data for this basket
|
|
59082
59082
|
*/
|
|
59083
59083
|
_defineProperty__default["default"](this, "createAndSave", /*#__PURE__*/function () {
|
|
59084
59084
|
var _ref2 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(_ref) {
|
|
@@ -59114,12 +59114,12 @@ var ProductHandler = /*#__PURE__*/function () {
|
|
|
59114
59114
|
return _ref2.apply(this, arguments);
|
|
59115
59115
|
};
|
|
59116
59116
|
}());
|
|
59117
|
-
/**
|
|
59118
|
-
* Saves the products in the current state
|
|
59119
|
-
* @param basket the basket data for which products get created/loaded
|
|
59120
|
-
* @param catalogData the catalog data for this basket
|
|
59121
|
-
* @param catalogServiceUrl the url for the catalog service
|
|
59122
|
-
* @param productData an optional list of products, if set no products get loaded from the server
|
|
59117
|
+
/**
|
|
59118
|
+
* Saves the products in the current state
|
|
59119
|
+
* @param basket the basket data for which products get created/loaded
|
|
59120
|
+
* @param catalogData the catalog data for this basket
|
|
59121
|
+
* @param catalogServiceUrl the url for the catalog service
|
|
59122
|
+
* @param productData an optional list of products, if set no products get loaded from the server
|
|
59123
59123
|
*/
|
|
59124
59124
|
_defineProperty__default["default"](this, "loadProducts", /*#__PURE__*/function () {
|
|
59125
59125
|
var _ref4 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(_ref3) {
|
|
@@ -59357,14 +59357,14 @@ var ProductHandler = /*#__PURE__*/function () {
|
|
|
59357
59357
|
return _ref4.apply(this, arguments);
|
|
59358
59358
|
};
|
|
59359
59359
|
}());
|
|
59360
|
-
/**
|
|
59361
|
-
* Saves the products in the current state
|
|
59362
|
-
* @param baseData the basedata of the base product
|
|
59363
|
-
* @param classificationData the classification data of the base product
|
|
59364
|
-
* @param variantData the list of varinat products
|
|
59365
|
-
* @param removedProducts the ids of products that get removed
|
|
59366
|
-
* @param removedMedia the list of media items that get removed
|
|
59367
|
-
* @param classificationFields the lists of classification fields used
|
|
59360
|
+
/**
|
|
59361
|
+
* Saves the products in the current state
|
|
59362
|
+
* @param baseData the basedata of the base product
|
|
59363
|
+
* @param classificationData the classification data of the base product
|
|
59364
|
+
* @param variantData the list of varinat products
|
|
59365
|
+
* @param removedProducts the ids of products that get removed
|
|
59366
|
+
* @param removedMedia the list of media items that get removed
|
|
59367
|
+
* @param classificationFields the lists of classification fields used
|
|
59368
59368
|
*/
|
|
59369
59369
|
_defineProperty__default["default"](this, "saveData", /*#__PURE__*/function () {
|
|
59370
59370
|
var _ref10 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee3(_ref9) {
|
|
@@ -59458,12 +59458,12 @@ var ProductHandler = /*#__PURE__*/function () {
|
|
|
59458
59458
|
return _createClass__default["default"](ProductHandler, [{
|
|
59459
59459
|
key: "initVariant",
|
|
59460
59460
|
value:
|
|
59461
|
-
/**
|
|
59462
|
-
* Calculates the inital state of one varinat data entry
|
|
59463
|
-
*
|
|
59464
|
-
* @param baseData the inital base data
|
|
59465
|
-
* @param param1 one variant data entry
|
|
59466
|
-
* @returns the inital state of one varinat data entry
|
|
59461
|
+
/**
|
|
59462
|
+
* Calculates the inital state of one varinat data entry
|
|
59463
|
+
*
|
|
59464
|
+
* @param baseData the inital base data
|
|
59465
|
+
* @param param1 one variant data entry
|
|
59466
|
+
* @returns the inital state of one varinat data entry
|
|
59467
59467
|
*/
|
|
59468
59468
|
function initVariant(baseData, baseClassification, cv, product, classificationFields) {
|
|
59469
59469
|
var _cv$VariantDescriptio, _baseData$articles, _classificationFields;
|