@crystaldesign/web-planner-logic 24.12.0-rc.9 → 24.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/{DivaBoxPlanner-b7e55e06.js → DivaBoxPlanner-303a552b.js} +318 -317
- package/build/cjs/{DivaStandardPlanner-ea3f2bef.js → DivaStandardPlanner-2f994125.js} +82 -82
- package/build/cjs/{DoorPlanner-d413201e.js → DoorPlanner-1faa1593.js} +1 -1
- package/build/cjs/{Host3DSignalR-32992efe.js → Host3DSignalR-a9bc4c70.js} +53 -53
- package/build/cjs/{LiviqueWWSHandler-f836a820.js → LiviqueWWSHandler-e9462b37.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-dda11a4f.js → PfisterWWSHandler-65b5992f.js} +6 -6
- package/build/cjs/{PlannerHandler2D-8d7f9d8f.js → PlannerHandler2D-9ce74b8c.js} +189 -189
- package/build/cjs/{SeriousBasketHandler-c93a6fdb.js → SeriousBasketHandler-c0d4f0f5.js} +1 -1
- package/build/cjs/{ShelfPlanner-525f4f29.js → ShelfPlanner-642594d4.js} +86 -86
- package/build/cjs/{StandardWWSHandler-d46d5952.js → StandardWWSHandler-c7833d13.js} +1 -1
- package/build/cjs/{index-6e62b4f0.js → index-530d9304.js} +722 -692
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-f2e768dd.js → DivaBoxPlanner-0748b14a.js} +318 -317
- package/build/esm/{DivaStandardPlanner-d1899ff9.js → DivaStandardPlanner-2c8858b2.js} +82 -82
- package/build/esm/{DoorPlanner-6ee992d7.js → DoorPlanner-c640fd24.js} +1 -1
- package/build/esm/{Host3DSignalR-f028ca78.js → Host3DSignalR-aa3a4b4d.js} +53 -53
- package/build/esm/{LiviqueWWSHandler-bff29a8a.js → LiviqueWWSHandler-8d2570dd.js} +1 -1
- package/build/esm/{PfisterWWSHandler-e5a11f30.js → PfisterWWSHandler-c046e3ee.js} +6 -6
- package/build/esm/{PlannerHandler2D-d4b88e85.js → PlannerHandler2D-844fc811.js} +189 -189
- package/build/esm/{SeriousBasketHandler-e152241d.js → SeriousBasketHandler-b8e1b0da.js} +1 -1
- package/build/esm/{ShelfPlanner-75bc4ec2.js → ShelfPlanner-f3218c50.js} +86 -86
- package/build/esm/{StandardWWSHandler-a918f7f0.js → StandardWWSHandler-a3c5246b.js} +1 -1
- package/build/esm/{index-06932812.js → index-3870ea62.js} +722 -692
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Product/DivaProductHandler.d.ts +5 -0
- package/build/types/web-planner-logic/src/logic/Product/DivaProductHandler.d.ts.map +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-642594d4.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-1faa1593.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",
|
|
@@ -30775,6 +30775,34 @@ var DivaProductHandler = /*#__PURE__*/function () {
|
|
|
30775
30775
|
}
|
|
30776
30776
|
return updateProducts;
|
|
30777
30777
|
}()
|
|
30778
|
+
}, {
|
|
30779
|
+
key: "getBestMatch",
|
|
30780
|
+
value: function getBestMatch(articles, products) {
|
|
30781
|
+
var OPTION_CODEX = 'KOPFTEIL';
|
|
30782
|
+
if (!articles) return;
|
|
30783
|
+
for (var key in articles) {
|
|
30784
|
+
var _article$VariantValue;
|
|
30785
|
+
var article = articles[key];
|
|
30786
|
+
var opv = (_article$VariantValue = article.VariantValues['OPT' + OPTION_CODEX]) === null || _article$VariantValue === void 0 ? void 0 : _article$VariantValue.replace('OPV', '');
|
|
30787
|
+
if (!products || !opv) continue;
|
|
30788
|
+
for (var i = 0; i < products.length; i++) {
|
|
30789
|
+
var _products$i$affiliate;
|
|
30790
|
+
if ((_products$i$affiliate = products[i].affiliate) !== null && _products$i$affiliate !== void 0 && _products$i$affiliate.length) if (this.findOPVCodexInVariantValues(products[i], OPTION_CODEX, opv)) {
|
|
30791
|
+
return products[i];
|
|
30792
|
+
}
|
|
30793
|
+
}
|
|
30794
|
+
}
|
|
30795
|
+
return undefined;
|
|
30796
|
+
}
|
|
30797
|
+
}, {
|
|
30798
|
+
key: "findOPVCodexInVariantValues",
|
|
30799
|
+
value: function findOPVCodexInVariantValues(product, opt, opv) {
|
|
30800
|
+
return product.articles.find(function (article) {
|
|
30801
|
+
return article.variantValues.find(function (variant) {
|
|
30802
|
+
return variant.OPT === opt && variant.OPV === opv;
|
|
30803
|
+
});
|
|
30804
|
+
});
|
|
30805
|
+
}
|
|
30778
30806
|
}]);
|
|
30779
30807
|
}();
|
|
30780
30808
|
var productHandlerInstance = new DivaProductHandler();
|
|
@@ -30783,12 +30811,12 @@ function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
30783
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; }
|
|
30784
30812
|
var LOG$8 = DivaUtils__default["default"].initLog('Planner', 'DIVA-SET-HANDLER');
|
|
30785
30813
|
|
|
30786
|
-
/*
|
|
30787
|
-
Diese Klasse speichert alle Sets, die in einer Planung sind
|
|
30788
|
-
WICHTIG: jedes Set kann einen anderen Katalog haben
|
|
30789
|
-
|
|
30790
|
-
Hier wird auch der PlannerHandler Initialisiert
|
|
30791
|
-
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
|
|
30792
30820
|
*/
|
|
30793
30821
|
var DivaSetHandler = /*#__PURE__*/function () {
|
|
30794
30822
|
function DivaSetHandler() {
|
|
@@ -31174,11 +31202,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31174
31202
|
return orderSets.length === index + 1 && orderSets[index].OrderLines.length != 0 || !!orderSets[index + 1] && orderSets[index + 1].OrderLines.length === 0;
|
|
31175
31203
|
}
|
|
31176
31204
|
|
|
31177
|
-
/**
|
|
31178
|
-
* When loading a product, the relative position of the whole set should be in the origin.
|
|
31179
|
-
* When a product was saved with position information in the world, the values are corrected here
|
|
31180
|
-
* @param orderSets
|
|
31181
|
-
* @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
|
|
31182
31210
|
*/
|
|
31183
31211
|
}, {
|
|
31184
31212
|
key: "correctPivotPosInOrderSets",
|
|
@@ -31294,9 +31322,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31294
31322
|
}
|
|
31295
31323
|
return initSet;
|
|
31296
31324
|
}()
|
|
31297
|
-
/**
|
|
31298
|
-
* This function destroyes the plannerHandler of the actSet. For Setplanner. Eventuell von alle sets zerstören - je nach use case
|
|
31299
|
-
* @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
|
|
31300
31328
|
*/
|
|
31301
31329
|
}, {
|
|
31302
31330
|
key: "destroyPlannerHandler",
|
|
@@ -31340,8 +31368,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31340
31368
|
value: function getFirstConfigStep(set) {
|
|
31341
31369
|
return set.configTree.getFirstConfigStepKey();
|
|
31342
31370
|
}
|
|
31343
|
-
/*
|
|
31344
|
-
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
|
|
31345
31373
|
*/
|
|
31346
31374
|
}, {
|
|
31347
31375
|
key: "addPlannerElement",
|
|
@@ -31381,15 +31409,15 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31381
31409
|
}
|
|
31382
31410
|
return addPlannerElement;
|
|
31383
31411
|
}()
|
|
31384
|
-
/**
|
|
31385
|
-
* This function copys an Element. Depending on the planner, copying one element can result in copying multiple elements.
|
|
31386
|
-
* It first creates an article for each planner element to copy.
|
|
31387
|
-
* Then it adds the Elements to the planner
|
|
31388
|
-
* @param setId
|
|
31389
|
-
* @param elementId
|
|
31390
|
-
* @param copyInfo
|
|
31391
|
-
*
|
|
31392
|
-
* @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
|
|
31393
31421
|
*/
|
|
31394
31422
|
)
|
|
31395
31423
|
}, {
|
|
@@ -31467,9 +31495,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31467
31495
|
return set.plannerHandler.getAllViewPlannerElements();
|
|
31468
31496
|
}
|
|
31469
31497
|
|
|
31470
|
-
/**
|
|
31471
|
-
* 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.
|
|
31472
|
-
* @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
|
|
31473
31501
|
*/
|
|
31474
31502
|
}, {
|
|
31475
31503
|
key: "getAllVisualiedNotPlannedElements",
|
|
@@ -31503,9 +31531,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31503
31531
|
return set.plannerHandler.get2DViewPlannerBoundingBox();
|
|
31504
31532
|
}
|
|
31505
31533
|
|
|
31506
|
-
/**
|
|
31507
|
-
* This function copys one Article by elementId. It creates a new article with the same attributes as the original and returns it
|
|
31508
|
-
* @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
|
|
31509
31537
|
*/
|
|
31510
31538
|
}, {
|
|
31511
31539
|
key: "copyArticleByElementId",
|
|
@@ -32286,12 +32314,12 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32286
32314
|
}
|
|
32287
32315
|
return deleteAccessoire;
|
|
32288
32316
|
}()
|
|
32289
|
-
/**
|
|
32290
|
-
* Invokes a new rendering
|
|
32291
|
-
* @param renderSize
|
|
32292
|
-
* @param planner3DGridEnabled
|
|
32293
|
-
* @param mediaServiceSaveMode
|
|
32294
|
-
* @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)
|
|
32295
32323
|
*/
|
|
32296
32324
|
}, {
|
|
32297
32325
|
key: "update3DPlannerView",
|
|
@@ -32369,10 +32397,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32369
32397
|
return configTreeHandler.fillConfigStepKeysInAccessoireItem([article], set.configTree, (_article$articleRelat = article.articleRelations) !== null && _article$articleRelat !== void 0 ? _article$articleRelat : []);
|
|
32370
32398
|
}
|
|
32371
32399
|
|
|
32372
|
-
/**
|
|
32373
|
-
* This function returns the element ids of a list of articles. The articles are specified by an array of basketIds
|
|
32374
|
-
* @param setId
|
|
32375
|
-
* @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
|
|
32376
32404
|
*/
|
|
32377
32405
|
}, {
|
|
32378
32406
|
key: "getElementIdsOfArticles",
|
|
@@ -32388,10 +32416,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32388
32416
|
return elementIds;
|
|
32389
32417
|
}
|
|
32390
32418
|
|
|
32391
|
-
/**
|
|
32392
|
-
* 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.
|
|
32393
|
-
* If the current Article is no accessoire, it returns itself
|
|
32394
|
-
* @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
|
|
32395
32423
|
*/
|
|
32396
32424
|
}, {
|
|
32397
32425
|
key: "getBaseParentArticleOfAccessoire",
|
|
@@ -32399,12 +32427,12 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32399
32427
|
var article = set.getBaseParentArticleOfAccessoire(accBasketId);
|
|
32400
32428
|
return article;
|
|
32401
32429
|
}
|
|
32402
|
-
/**
|
|
32403
|
-
* 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.
|
|
32404
|
-
* Because of that @param groupedOptions is send aswell to configure all articles with Values of the first article of the Options of @param groupedOptions
|
|
32405
|
-
* @param newIsConfigSingle
|
|
32406
|
-
* @param groupedOptions
|
|
32407
|
-
* @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
|
|
32408
32436
|
*/
|
|
32409
32437
|
}, {
|
|
32410
32438
|
key: "configSingleIsChanged",
|
|
@@ -32586,13 +32614,13 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32586
32614
|
return configItems;
|
|
32587
32615
|
}
|
|
32588
32616
|
|
|
32589
|
-
/**
|
|
32590
|
-
* here if needed the all the visible variants get precalced for price information or to check if a product is in stock
|
|
32591
|
-
* 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
|
|
32592
|
-
* @param configItems
|
|
32593
|
-
* @param configStepKey
|
|
32594
|
-
* @param paletteType
|
|
32595
|
-
* @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
|
|
32596
32624
|
*/
|
|
32597
32625
|
}, {
|
|
32598
32626
|
key: "variantsEvaluator",
|
|
@@ -32753,11 +32781,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32753
32781
|
}
|
|
32754
32782
|
}
|
|
32755
32783
|
|
|
32756
|
-
/**
|
|
32757
|
-
* This function updates the option values of the articles
|
|
32758
|
-
* @param myValues
|
|
32759
|
-
* @param targetArticles
|
|
32760
|
-
* @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)
|
|
32761
32789
|
*/
|
|
32762
32790
|
}, {
|
|
32763
32791
|
key: "updateArticlesOptionStatesOfActSet",
|
|
@@ -33202,8 +33230,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33202
33230
|
return price;
|
|
33203
33231
|
}
|
|
33204
33232
|
|
|
33205
|
-
/**
|
|
33206
|
-
* This function returns the price format of the current catalog
|
|
33233
|
+
/**
|
|
33234
|
+
* This function returns the price format of the current catalog
|
|
33207
33235
|
*/
|
|
33208
33236
|
}, {
|
|
33209
33237
|
key: "getActSetPriceFormat",
|
|
@@ -33532,10 +33560,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33532
33560
|
}
|
|
33533
33561
|
return getOrderSet;
|
|
33534
33562
|
}()
|
|
33535
|
-
/**
|
|
33536
|
-
* This function saves the rendering of the current planning/configuration. It saves it permanent
|
|
33537
|
-
* @param set
|
|
33538
|
-
* @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)
|
|
33539
33567
|
*/
|
|
33540
33568
|
}, {
|
|
33541
33569
|
key: "getSetImage",
|
|
@@ -33634,11 +33662,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33634
33662
|
}
|
|
33635
33663
|
return getHQRenderScript;
|
|
33636
33664
|
}()
|
|
33637
|
-
/**
|
|
33638
|
-
* This function saves the rendering of the current planning/configuration. It saves it permanent
|
|
33639
|
-
* The alternateSet Images are returned in a basket compatible datastructure
|
|
33640
|
-
* @param set
|
|
33641
|
-
* @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)
|
|
33642
33670
|
*/
|
|
33643
33671
|
}, {
|
|
33644
33672
|
key: "getAlternateSetImages",
|
|
@@ -33820,8 +33848,8 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
33820
33848
|
_defineProperty__default["default"](this, "startProductId", void 0);
|
|
33821
33849
|
//Only helper variable
|
|
33822
33850
|
_defineProperty__default["default"](this, "origConfiguration", {});
|
|
33823
|
-
/**
|
|
33824
|
-
* This function returns the originalConfiguration options
|
|
33851
|
+
/**
|
|
33852
|
+
* This function returns the originalConfiguration options
|
|
33825
33853
|
*/
|
|
33826
33854
|
_defineProperty__default["default"](this, "getOrigConfiguration", function () {
|
|
33827
33855
|
return _this.origConfiguration;
|
|
@@ -34792,7 +34820,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34792
34820
|
break;
|
|
34793
34821
|
case 3:
|
|
34794
34822
|
_context12.next = 5;
|
|
34795
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
34823
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-65b5992f.js'); });
|
|
34796
34824
|
case 5:
|
|
34797
34825
|
_yield$import = _context12.sent;
|
|
34798
34826
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -34800,7 +34828,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34800
34828
|
return _context12.abrupt("break", 27);
|
|
34801
34829
|
case 9:
|
|
34802
34830
|
_context12.next = 11;
|
|
34803
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
34831
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-e9462b37.js'); });
|
|
34804
34832
|
case 11:
|
|
34805
34833
|
_yield$import2 = _context12.sent;
|
|
34806
34834
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -34808,7 +34836,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34808
34836
|
return _context12.abrupt("break", 27);
|
|
34809
34837
|
case 15:
|
|
34810
34838
|
_context12.next = 17;
|
|
34811
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
34839
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-c0d4f0f5.js'); });
|
|
34812
34840
|
case 17:
|
|
34813
34841
|
_yield$import3 = _context12.sent;
|
|
34814
34842
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -34816,7 +34844,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34816
34844
|
return _context12.abrupt("break", 27);
|
|
34817
34845
|
case 21:
|
|
34818
34846
|
_context12.next = 23;
|
|
34819
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
34847
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-c7833d13.js'); });
|
|
34820
34848
|
case 23:
|
|
34821
34849
|
_yield$import4 = _context12.sent;
|
|
34822
34850
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -34923,9 +34951,9 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
34923
34951
|
this.vpInfosByRoom = new Map();
|
|
34924
34952
|
}
|
|
34925
34953
|
|
|
34926
|
-
/**
|
|
34927
|
-
* This function returns the room from te roomlist info.
|
|
34928
|
-
* @param roomCodex
|
|
34954
|
+
/**
|
|
34955
|
+
* This function returns the room from te roomlist info.
|
|
34956
|
+
* @param roomCodex
|
|
34929
34957
|
*/
|
|
34930
34958
|
return _createClass__default["default"](ViewPointHandler, [{
|
|
34931
34959
|
key: "getRoomInfo",
|
|
@@ -34937,10 +34965,10 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
34937
34965
|
}
|
|
34938
34966
|
return undefined;
|
|
34939
34967
|
}
|
|
34940
|
-
/**
|
|
34941
|
-
* This function returns the viewpoint from te roomlist info.
|
|
34942
|
-
* @param roomCodex
|
|
34943
|
-
* @param vpCodex
|
|
34968
|
+
/**
|
|
34969
|
+
* This function returns the viewpoint from te roomlist info.
|
|
34970
|
+
* @param roomCodex
|
|
34971
|
+
* @param vpCodex
|
|
34944
34972
|
*/
|
|
34945
34973
|
}, {
|
|
34946
34974
|
key: "getVPInfo",
|
|
@@ -34968,10 +34996,10 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
34968
34996
|
return this.defaultWhiteroom;
|
|
34969
34997
|
}
|
|
34970
34998
|
|
|
34971
|
-
/**
|
|
34972
|
-
* This function resets the viewpoint.
|
|
34973
|
-
* If the 3d host has retuned some viewpoint information about the rotation - then set it to the start rotation information.
|
|
34974
|
-
* 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
|
|
34975
35003
|
*/
|
|
34976
35004
|
}, {
|
|
34977
35005
|
key: "resetViewPoint",
|
|
@@ -35083,11 +35111,11 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35083
35111
|
}
|
|
35084
35112
|
//------------------------------------------------Functionen Roomlist------------------------------------------------
|
|
35085
35113
|
|
|
35086
|
-
/**
|
|
35087
|
-
* This function handles which roomlist is saved for which category.
|
|
35088
|
-
* 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
|
|
35089
|
-
* @param roomlist The list of codexes of the rooms
|
|
35090
|
-
* @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
|
|
35091
35119
|
*/
|
|
35092
35120
|
}, {
|
|
35093
35121
|
key: "setMainCategoryOfStaticRoom",
|
|
@@ -35103,9 +35131,9 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35103
35131
|
}
|
|
35104
35132
|
}
|
|
35105
35133
|
|
|
35106
|
-
/**
|
|
35107
|
-
*This function is called when the webPlanner receives the list of rooms with all frontend Viewpoints from the 3D host .
|
|
35108
|
-
* @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
|
|
35109
35137
|
*/
|
|
35110
35138
|
}, {
|
|
35111
35139
|
key: "initRoomList",
|
|
@@ -35200,25 +35228,25 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35200
35228
|
roomIsSel = false;
|
|
35201
35229
|
}
|
|
35202
35230
|
}
|
|
35203
|
-
/**
|
|
35204
|
-
* 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
|
|
35205
|
-
* @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
|
|
35206
35234
|
*/
|
|
35207
|
-
/*
|
|
35208
|
-
public getNotChachedRoomlist(roomlist: string[]): string[] {
|
|
35209
|
-
var uncached: string[] = [];
|
|
35210
|
-
for (var i = 0; i < roomlist.length; i++) {
|
|
35211
|
-
var notCached = true;
|
|
35212
|
-
for (var j = 0; j < this.roomListInfo.length; j++) {
|
|
35213
|
-
if (roomlist[i] == this.roomListInfo[j].codex) {
|
|
35214
|
-
notCached = false;
|
|
35215
|
-
break;
|
|
35216
|
-
}
|
|
35217
|
-
}
|
|
35218
|
-
if (notCached) uncached.push(roomlist[i]);
|
|
35219
|
-
}
|
|
35220
|
-
return uncached;
|
|
35221
|
-
}
|
|
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
|
+
}
|
|
35222
35250
|
*/
|
|
35223
35251
|
}, {
|
|
35224
35252
|
key: "getStaticRoomList",
|
|
@@ -35284,11 +35312,11 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35284
35312
|
return result;
|
|
35285
35313
|
}
|
|
35286
35314
|
|
|
35287
|
-
/**
|
|
35288
|
-
* This function updates the vpInformation from the host. The information is updated every time a new viewpoint is set
|
|
35289
|
-
* @param roomCodex
|
|
35290
|
-
* @param vpName
|
|
35291
|
-
* @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
|
|
35292
35320
|
*/
|
|
35293
35321
|
}, {
|
|
35294
35322
|
key: "setVpInfoByRoomCodex",
|
|
@@ -35301,10 +35329,10 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35301
35329
|
return this.getVpInfoByRoomCodex(roomCodex, vpName);
|
|
35302
35330
|
}
|
|
35303
35331
|
|
|
35304
|
-
/**
|
|
35305
|
-
* Get the vpInformation of the viewPoint on the host.
|
|
35306
|
-
* @param roomCodex
|
|
35307
|
-
* @param vpName
|
|
35332
|
+
/**
|
|
35333
|
+
* Get the vpInformation of the viewPoint on the host.
|
|
35334
|
+
* @param roomCodex
|
|
35335
|
+
* @param vpName
|
|
35308
35336
|
*/
|
|
35309
35337
|
}, {
|
|
35310
35338
|
key: "getVpInfoByRoomCodex",
|
|
@@ -35318,8 +35346,8 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35318
35346
|
|
|
35319
35347
|
//------------------------------------------------------------Functions needed for 3D Rendering------------------------------------------------------------
|
|
35320
35348
|
|
|
35321
|
-
/**
|
|
35322
|
-
* This function returns the shadow Information of the current selected room
|
|
35349
|
+
/**
|
|
35350
|
+
* This function returns the shadow Information of the current selected room
|
|
35323
35351
|
*/
|
|
35324
35352
|
}, {
|
|
35325
35353
|
key: "getCurRoomShadowInfo",
|
|
@@ -35336,15 +35364,15 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35336
35364
|
return undefined;
|
|
35337
35365
|
}
|
|
35338
35366
|
|
|
35339
|
-
/**
|
|
35340
|
-
* This function returns if the current room/VP enables navigation (e.g. weissraum).
|
|
35341
|
-
* 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
|
|
35342
35370
|
*/
|
|
35343
|
-
/*
|
|
35344
|
-
public curVPHasStaticBG(): boolean {
|
|
35345
|
-
let vpInfo = this.getVPInfo(this.curRoomCodex, this.curViewPointName);
|
|
35346
|
-
if (vpInfo != undefined) return vpInfo.isStatic;
|
|
35347
|
-
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;
|
|
35348
35376
|
}*/
|
|
35349
35377
|
}, {
|
|
35350
35378
|
key: "getCurRoomlistVP",
|
|
@@ -35693,11 +35721,11 @@ var Rendering = /*#__PURE__*/function () {
|
|
|
35693
35721
|
value: function hasUIInfo() {
|
|
35694
35722
|
return this.uiInfo != '';
|
|
35695
35723
|
}
|
|
35696
|
-
/**
|
|
35697
|
-
* This function adds a blobImage to the rendering .
|
|
35698
|
-
* It is parsed to a base64 image.
|
|
35699
|
-
* @param blob The blob contains the image
|
|
35700
|
-
* @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
|
|
35701
35729
|
*/
|
|
35702
35730
|
}, {
|
|
35703
35731
|
key: "addImgAsBlob",
|
|
@@ -35910,16 +35938,16 @@ var RenderSettings = /*#__PURE__*/function () {
|
|
|
35910
35938
|
}
|
|
35911
35939
|
}]);
|
|
35912
35940
|
}();
|
|
35913
|
-
/*
|
|
35914
|
-
* don't lower without checking boxspring !Multiple times:
|
|
35915
|
-
* set image get's "pre-called" when switching into checkout,
|
|
35916
|
-
* this reduces loading time and works fine. However on Boxspring
|
|
35917
|
-
* there is no checkout, thats why the pre-call and the real get
|
|
35918
|
-
* renderings get called at the same time, which causes
|
|
35919
|
-
* !this.handler3D.hasLastSavedRendering() to be true.
|
|
35920
|
-
* And if hasLastSavedRendering is true there won't happen the request
|
|
35921
|
-
* and the waiting time for getlastsavedrendering is lower than normal.
|
|
35922
|
-
* (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)
|
|
35923
35951
|
*/
|
|
35924
35952
|
_defineProperty__default["default"](RenderSettings, "TIMEOUT_WAITFORSAVEDRENDERING_MS", 9000);
|
|
35925
35953
|
|
|
@@ -36001,10 +36029,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36001
36029
|
_defineProperty__default["default"](this, "todoAfterLogin", void 0);
|
|
36002
36030
|
_defineProperty__default["default"](this, "jwt", void 0);
|
|
36003
36031
|
_defineProperty__default["default"](this, "latestCamera", void 0);
|
|
36004
|
-
/**
|
|
36005
|
-
* This function is called from the connectionHandler when something happens during requesting rendering.
|
|
36006
|
-
* Eg. there is no free renderClient
|
|
36007
|
-
* @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
|
|
36008
36036
|
*/
|
|
36009
36037
|
_defineProperty__default["default"](this, "onErrorRequestingRendering", function (hash, size, option) {
|
|
36010
36038
|
var rendering = _this.waitForRenderings.get(hash);
|
|
@@ -36079,9 +36107,9 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36079
36107
|
this.jwt = jwt;
|
|
36080
36108
|
}
|
|
36081
36109
|
|
|
36082
|
-
/**
|
|
36083
|
-
* This function handels the initialization of the viewpoints of a whiteroom
|
|
36084
|
-
* @param standardWhiteRoom
|
|
36110
|
+
/**
|
|
36111
|
+
* This function handels the initialization of the viewpoints of a whiteroom
|
|
36112
|
+
* @param standardWhiteRoom
|
|
36085
36113
|
*/
|
|
36086
36114
|
}, {
|
|
36087
36115
|
key: "initializeViewPoint",
|
|
@@ -36119,10 +36147,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36119
36147
|
}
|
|
36120
36148
|
return initializeViewPoint;
|
|
36121
36149
|
}()
|
|
36122
|
-
/**
|
|
36123
|
-
* This function is called to load the viewPoint lists associated to a list of room Indices. Contains an array of all static rooms
|
|
36124
|
-
* @param staticRoomList
|
|
36125
|
-
* @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
|
|
36126
36154
|
*/
|
|
36127
36155
|
)
|
|
36128
36156
|
}, {
|
|
@@ -36162,9 +36190,9 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36162
36190
|
}
|
|
36163
36191
|
return initializeStaticRoomList;
|
|
36164
36192
|
}()
|
|
36165
|
-
/**
|
|
36166
|
-
* This function sets all the callback methods that are used to communicate with the view
|
|
36167
|
-
* @param params
|
|
36193
|
+
/**
|
|
36194
|
+
* This function sets all the callback methods that are used to communicate with the view
|
|
36195
|
+
* @param params
|
|
36168
36196
|
*/
|
|
36169
36197
|
)
|
|
36170
36198
|
}, {
|
|
@@ -36206,7 +36234,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36206
36234
|
while (1) switch (_context3.prev = _context3.next) {
|
|
36207
36235
|
case 0:
|
|
36208
36236
|
_context3.next = 2;
|
|
36209
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
36237
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-a9bc4c70.js'); });
|
|
36210
36238
|
case 2:
|
|
36211
36239
|
_yield$import = _context3.sent;
|
|
36212
36240
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -36323,12 +36351,12 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36323
36351
|
}, {
|
|
36324
36352
|
key: "handleReceiveRendering",
|
|
36325
36353
|
value:
|
|
36326
|
-
/**
|
|
36327
|
-
* This function is called when a rendering is sent over the socketIO of the MediaService
|
|
36328
|
-
*
|
|
36329
|
-
* @param divaNr
|
|
36330
|
-
* @param hash
|
|
36331
|
-
* @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
|
|
36332
36360
|
*/
|
|
36333
36361
|
function handleReceiveRendering(params) {
|
|
36334
36362
|
LOG$4.debug('handleReceiveRendering ' + params.hash + '; SameMode: ' + params.saveMode);
|
|
@@ -36368,10 +36396,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36368
36396
|
}
|
|
36369
36397
|
//-----------------------------------Private methods---------------------------------------------
|
|
36370
36398
|
|
|
36371
|
-
/**
|
|
36372
|
-
* This function is called when a new rendering has to be sent to the frontend for visualization.
|
|
36373
|
-
* This function is called in the DivaWebPlanner and sent do the view
|
|
36374
|
-
* @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
|
|
36375
36403
|
*/
|
|
36376
36404
|
}, {
|
|
36377
36405
|
key: "updatePlannerRendering",
|
|
@@ -36384,11 +36412,11 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36384
36412
|
this.updatePlannerRenderingInView(rendering);
|
|
36385
36413
|
}
|
|
36386
36414
|
|
|
36387
|
-
/**
|
|
36388
|
-
* This function is called, when a rendering is finished downloading.
|
|
36389
|
-
* This contains the additional RenderInfo Json string, the rendering itself and the layermask (if needed)
|
|
36390
|
-
* @param hash
|
|
36391
|
-
* @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
|
|
36392
36420
|
*/
|
|
36393
36421
|
}, {
|
|
36394
36422
|
key: "checkRenderingReady",
|
|
@@ -36399,8 +36427,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36399
36427
|
LOG$4.debug('Send to view. CurrentHash: ' + hash + '; lastRequestedHash: ' + this.lastRequestedRenderHash);
|
|
36400
36428
|
return true;
|
|
36401
36429
|
}
|
|
36402
|
-
/**
|
|
36403
|
-
* 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.
|
|
36404
36432
|
*/
|
|
36405
36433
|
}, {
|
|
36406
36434
|
key: "checkWaitForImage",
|
|
@@ -36427,10 +36455,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36427
36455
|
return true;
|
|
36428
36456
|
}
|
|
36429
36457
|
|
|
36430
|
-
/**
|
|
36431
|
-
* 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.
|
|
36432
|
-
* @param containerWidth
|
|
36433
|
-
* @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
|
|
36434
36462
|
*/
|
|
36435
36463
|
}, {
|
|
36436
36464
|
key: "adjustRenderSize",
|
|
@@ -36460,8 +36488,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36460
36488
|
|
|
36461
36489
|
//-----------------------------------Methods called from PlannerHandler----------------------------
|
|
36462
36490
|
|
|
36463
|
-
/**
|
|
36464
|
-
* Returns the rendering that is currently displayed on the screen
|
|
36491
|
+
/**
|
|
36492
|
+
* Returns the rendering that is currently displayed on the screen
|
|
36465
36493
|
*/
|
|
36466
36494
|
}, {
|
|
36467
36495
|
key: "getCurrRendering",
|
|
@@ -36476,8 +36504,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36476
36504
|
});
|
|
36477
36505
|
}
|
|
36478
36506
|
|
|
36479
|
-
/**
|
|
36480
|
-
* 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.
|
|
36481
36509
|
*/
|
|
36482
36510
|
}, {
|
|
36483
36511
|
key: "getLastSavedRendering",
|
|
@@ -36534,8 +36562,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36534
36562
|
return !!this.lastSavedRendering;
|
|
36535
36563
|
}
|
|
36536
36564
|
|
|
36537
|
-
/**
|
|
36538
|
-
* 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.
|
|
36539
36567
|
*/
|
|
36540
36568
|
}, {
|
|
36541
36569
|
key: "getLastSavedAlternateRenderings",
|
|
@@ -36593,8 +36621,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36593
36621
|
}
|
|
36594
36622
|
return getLastSavedAlternateRenderings;
|
|
36595
36623
|
}()
|
|
36596
|
-
/**
|
|
36597
|
-
* 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.
|
|
36598
36626
|
*/
|
|
36599
36627
|
)
|
|
36600
36628
|
}, {
|
|
@@ -36639,20 +36667,20 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36639
36667
|
};
|
|
36640
36668
|
}
|
|
36641
36669
|
|
|
36642
|
-
/**
|
|
36643
|
-
* This function is used to get a new rendering from the 3D Host
|
|
36644
|
-
* @param divaNr The current DivaNr
|
|
36645
|
-
* @param planningData The construction information of the current planning
|
|
36646
|
-
* @param width The width of the requested image
|
|
36647
|
-
* @param height The height of the requested image
|
|
36648
|
-
* @param isFullscreenRendering Is the image a fullscreen Rendering
|
|
36649
|
-
* @param planner3DGridEnabled When the planner3D Grid is enabled - request a rendering and a layermask
|
|
36650
|
-
* @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.
|
|
36651
|
-
* @param catalogCodex The CatalogCodex in the planning
|
|
36652
|
-
* @param catalogGUID The CatalogGUID in the planning
|
|
36653
|
-
* @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
|
|
36654
|
-
* @param camera The RTV Camera Information for Unity/RTV KOMBI
|
|
36655
|
-
* @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
|
|
36656
36684
|
*/
|
|
36657
36685
|
}, {
|
|
36658
36686
|
key: "request3D",
|
|
@@ -36826,10 +36854,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36826
36854
|
return true;
|
|
36827
36855
|
}
|
|
36828
36856
|
|
|
36829
|
-
/**
|
|
36830
|
-
*
|
|
36831
|
-
* @param planningData
|
|
36832
|
-
* @returns
|
|
36857
|
+
/**
|
|
36858
|
+
*
|
|
36859
|
+
* @param planningData
|
|
36860
|
+
* @returns
|
|
36833
36861
|
*/
|
|
36834
36862
|
}, {
|
|
36835
36863
|
key: "getProductHash",
|
|
@@ -36873,10 +36901,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36873
36901
|
}
|
|
36874
36902
|
}
|
|
36875
36903
|
|
|
36876
|
-
/**
|
|
36877
|
-
* This function is caleld when the navigation in the frontend changed (zoom/fullscreen/Swipe/ElementFocus...)
|
|
36878
|
-
* @param mode Should the viewpoint change zoom/fullscreen/swipe...
|
|
36879
|
-
* @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
|
|
36880
36908
|
*/
|
|
36881
36909
|
}, {
|
|
36882
36910
|
key: "handle3DVisualizationChanged",
|
|
@@ -36940,8 +36968,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36940
36968
|
}
|
|
36941
36969
|
}
|
|
36942
36970
|
|
|
36943
|
-
/**
|
|
36944
|
-
* This function resets the viewpoint to default.
|
|
36971
|
+
/**
|
|
36972
|
+
* This function resets the viewpoint to default.
|
|
36945
36973
|
*/
|
|
36946
36974
|
}, {
|
|
36947
36975
|
key: "resetNav3D",
|
|
@@ -36953,8 +36981,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36953
36981
|
}
|
|
36954
36982
|
}
|
|
36955
36983
|
|
|
36956
|
-
/**
|
|
36957
|
-
* 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
|
|
36958
36986
|
*/
|
|
36959
36987
|
}, {
|
|
36960
36988
|
key: "getStaticRoomListItems",
|
|
@@ -37218,8 +37246,8 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
|
|
|
37218
37246
|
}();
|
|
37219
37247
|
var mediaServiceHandler = new DivaMediaServiceHandler();
|
|
37220
37248
|
|
|
37221
|
-
/**
|
|
37222
|
-
* 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)
|
|
37223
37251
|
*/
|
|
37224
37252
|
var BoundingBox = /*#__PURE__*/function () {
|
|
37225
37253
|
//y depth / z height
|
|
@@ -37232,10 +37260,10 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
37232
37260
|
this.size = new Vector3(0, 0, 0);
|
|
37233
37261
|
}
|
|
37234
37262
|
|
|
37235
|
-
/**
|
|
37236
|
-
* This function initializes the new BoundingBox of a single Planner based on the boundingbox of the whole set.
|
|
37237
|
-
* The new Boundingbox has the world size one meter on the right of the global BoundingBox
|
|
37238
|
-
* @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
|
|
37239
37267
|
*/
|
|
37240
37268
|
return _createClass__default["default"](BoundingBox, [{
|
|
37241
37269
|
key: "initPlannerBBox",
|
|
@@ -37323,9 +37351,9 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
37323
37351
|
this.size.z = globalMaxZ - globalMinZ;
|
|
37324
37352
|
}
|
|
37325
37353
|
|
|
37326
|
-
/**
|
|
37327
|
-
* This function returns the with of the bounding box
|
|
37328
|
-
* @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
|
|
37329
37357
|
*/
|
|
37330
37358
|
}, {
|
|
37331
37359
|
key: "getWidth",
|
|
@@ -37348,9 +37376,9 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
37348
37376
|
return Math.round(this.Size.x);
|
|
37349
37377
|
}
|
|
37350
37378
|
|
|
37351
|
-
/**
|
|
37352
|
-
* This function returns the depth of the bounding box
|
|
37353
|
-
* @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
|
|
37354
37382
|
*/
|
|
37355
37383
|
}, {
|
|
37356
37384
|
key: "getDepth",
|
|
@@ -37373,9 +37401,9 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
37373
37401
|
return Math.round(this.Size.z);
|
|
37374
37402
|
}
|
|
37375
37403
|
|
|
37376
|
-
/**
|
|
37377
|
-
* This function returns the height of the bounding box
|
|
37378
|
-
* @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
|
|
37379
37407
|
*/
|
|
37380
37408
|
}, {
|
|
37381
37409
|
key: "getHeight",
|
|
@@ -37410,8 +37438,8 @@ var BoundingBox = /*#__PURE__*/function () {
|
|
|
37410
37438
|
}]);
|
|
37411
37439
|
}();
|
|
37412
37440
|
|
|
37413
|
-
/**
|
|
37414
|
-
* 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
|
|
37415
37443
|
*/
|
|
37416
37444
|
var SetPlannerHandler = /*#__PURE__*/function () {
|
|
37417
37445
|
function SetPlannerHandler() {
|
|
@@ -37420,11 +37448,11 @@ var SetPlannerHandler = /*#__PURE__*/function () {
|
|
|
37420
37448
|
this.globalBoundingBox = new BoundingBox();
|
|
37421
37449
|
}
|
|
37422
37450
|
|
|
37423
|
-
/**
|
|
37424
|
-
* This function updates the posNr of the elements over all sets
|
|
37425
|
-
* So all elements in one set have pos nr going from 1 - n.
|
|
37426
|
-
* However, the setposnr start from the first set from 1 -n and in the second set it starts from n+1
|
|
37427
|
-
* @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
|
|
37428
37456
|
*/
|
|
37429
37457
|
return _createClass__default["default"](SetPlannerHandler, [{
|
|
37430
37458
|
key: "updateSetPosNr",
|
|
@@ -37456,9 +37484,9 @@ var SetPlannerHandler = /*#__PURE__*/function () {
|
|
|
37456
37484
|
}
|
|
37457
37485
|
}
|
|
37458
37486
|
|
|
37459
|
-
/**
|
|
37460
|
-
* This function returns the combined bounding Box of all planner bounding boxes
|
|
37461
|
-
* @param plannerList
|
|
37487
|
+
/**
|
|
37488
|
+
* This function returns the combined bounding Box of all planner bounding boxes
|
|
37489
|
+
* @param plannerList
|
|
37462
37490
|
*/
|
|
37463
37491
|
}, {
|
|
37464
37492
|
key: "getGlobalBoundingBoxForView",
|
|
@@ -37480,9 +37508,9 @@ var SetPlannerHandler = /*#__PURE__*/function () {
|
|
|
37480
37508
|
};
|
|
37481
37509
|
}
|
|
37482
37510
|
|
|
37483
|
-
/**
|
|
37484
|
-
* This function calculates the combined bounding Box of all planner bounding boxes
|
|
37485
|
-
* @param plannerList
|
|
37511
|
+
/**
|
|
37512
|
+
* This function calculates the combined bounding Box of all planner bounding boxes
|
|
37513
|
+
* @param plannerList
|
|
37486
37514
|
*/
|
|
37487
37515
|
}, {
|
|
37488
37516
|
key: "calcGlobalBoundingBox",
|
|
@@ -37498,9 +37526,9 @@ var SetPlannerHandler = /*#__PURE__*/function () {
|
|
|
37498
37526
|
this.globalBoundingBox = setBoundingBox;
|
|
37499
37527
|
}
|
|
37500
37528
|
|
|
37501
|
-
/**
|
|
37502
|
-
* This function returns the global bounding Box
|
|
37503
|
-
* @returns
|
|
37529
|
+
/**
|
|
37530
|
+
* This function returns the global bounding Box
|
|
37531
|
+
* @returns
|
|
37504
37532
|
*/
|
|
37505
37533
|
}, {
|
|
37506
37534
|
key: "getGlobalBoundingBox",
|
|
@@ -37522,9 +37550,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37522
37550
|
_defineProperty__default["default"](this, "divaNr", void 0);
|
|
37523
37551
|
_defineProperty__default["default"](this, "plannerHandlerFunctions", void 0);
|
|
37524
37552
|
_defineProperty__default["default"](this, "plannerIDCount", 1);
|
|
37525
|
-
/**
|
|
37526
|
-
* This function is called when the program only wants to update the view - it does not send the whole planning.
|
|
37527
|
-
* 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
|
|
37528
37556
|
*/
|
|
37529
37557
|
_defineProperty__default["default"](this, "noRenderClientFound", function (doMakeRendering, doMakeHQRenderScript, width, height, isFullscreenRendering, planner3DGridEnabled, doShow3DDimensionLines, plannerMeasureDigits, alternateRendererInfo, alternateRenderingsExist) {
|
|
37530
37558
|
LOG$2.debug('noRenderClientFound - Request rendering again by sending all planningData');
|
|
@@ -37544,9 +37572,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37544
37572
|
this.handler3D = new PlannerHandler3D('WebPlanner', 'PfisterWebConfigurator', '', '', this.noRenderClientFound, onlyRunLogic);
|
|
37545
37573
|
}
|
|
37546
37574
|
|
|
37547
|
-
/**
|
|
37548
|
-
* This method is called when a new planning is started. This happens when a new Planning is started or a Planning is loaded.
|
|
37549
|
-
* @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
|
|
37550
37578
|
*/
|
|
37551
37579
|
return _createClass__default["default"](DivaPlannerHandler, [{
|
|
37552
37580
|
key: "initPlanner",
|
|
@@ -37618,9 +37646,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37618
37646
|
}
|
|
37619
37647
|
return initPlanner;
|
|
37620
37648
|
}()
|
|
37621
|
-
/**
|
|
37622
|
-
* This function updates the Planner. It is called after a configuration changed.
|
|
37623
|
-
* @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
|
|
37624
37652
|
*/
|
|
37625
37653
|
)
|
|
37626
37654
|
}, {
|
|
@@ -37662,10 +37690,10 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37662
37690
|
}
|
|
37663
37691
|
return updatePlanner;
|
|
37664
37692
|
}()
|
|
37665
|
-
/**
|
|
37666
|
-
* This function is called when a product is added to a existing set
|
|
37667
|
-
* @param set
|
|
37668
|
-
* @param setPlanData
|
|
37693
|
+
/**
|
|
37694
|
+
* This function is called when a product is added to a existing set
|
|
37695
|
+
* @param set
|
|
37696
|
+
* @param setPlanData
|
|
37669
37697
|
*/
|
|
37670
37698
|
)
|
|
37671
37699
|
}, {
|
|
@@ -37707,11 +37735,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37707
37735
|
}
|
|
37708
37736
|
return extendSet;
|
|
37709
37737
|
}()
|
|
37710
|
-
/**
|
|
37711
|
-
* This function is called to initialize a new Planner - SetPlandata is used to initialize it if a already existing planning is loaded.
|
|
37712
|
-
* If it is empty a empty Planner is init.
|
|
37713
|
-
* @param set
|
|
37714
|
-
* @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
|
|
37715
37743
|
*/
|
|
37716
37744
|
)
|
|
37717
37745
|
}, {
|
|
@@ -37758,7 +37786,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37758
37786
|
break;
|
|
37759
37787
|
case 8:
|
|
37760
37788
|
_context4.next = 10;
|
|
37761
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
37789
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-2f994125.js'); });
|
|
37762
37790
|
case 10:
|
|
37763
37791
|
_yield$import = _context4.sent;
|
|
37764
37792
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -37769,7 +37797,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37769
37797
|
return _context4.abrupt("break", 21);
|
|
37770
37798
|
case 15:
|
|
37771
37799
|
_context4.next = 17;
|
|
37772
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
37800
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-303a552b.js'); });
|
|
37773
37801
|
case 17:
|
|
37774
37802
|
_yield$import2 = _context4.sent;
|
|
37775
37803
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -37810,8 +37838,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37810
37838
|
});
|
|
37811
37839
|
}
|
|
37812
37840
|
|
|
37813
|
-
/**
|
|
37814
|
-
* This function returns a JSON Object of the whole planner Saving
|
|
37841
|
+
/**
|
|
37842
|
+
* This function returns a JSON Object of the whole planner Saving
|
|
37815
37843
|
*/
|
|
37816
37844
|
}, {
|
|
37817
37845
|
key: "savePlanner",
|
|
@@ -37850,9 +37878,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37850
37878
|
};
|
|
37851
37879
|
}
|
|
37852
37880
|
|
|
37853
|
-
/**
|
|
37854
|
-
* This function returns the base 64 representation of the current displaying rendering
|
|
37855
|
-
* @param setId
|
|
37881
|
+
/**
|
|
37882
|
+
* This function returns the base 64 representation of the current displaying rendering
|
|
37883
|
+
* @param setId
|
|
37856
37884
|
*/
|
|
37857
37885
|
}, {
|
|
37858
37886
|
key: "getSetImageAsBase64",
|
|
@@ -37863,9 +37891,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37863
37891
|
return result;
|
|
37864
37892
|
}
|
|
37865
37893
|
|
|
37866
|
-
/**
|
|
37867
|
-
* This function returns the rendering of the last saved rendering
|
|
37868
|
-
* @param setId
|
|
37894
|
+
/**
|
|
37895
|
+
* This function returns the rendering of the last saved rendering
|
|
37896
|
+
* @param setId
|
|
37869
37897
|
*/
|
|
37870
37898
|
}, {
|
|
37871
37899
|
key: "getSetRendering",
|
|
@@ -37894,9 +37922,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37894
37922
|
}
|
|
37895
37923
|
return getSetRendering;
|
|
37896
37924
|
}()
|
|
37897
|
-
/**
|
|
37898
|
-
* This function returns the URL of the last saved rendering
|
|
37899
|
-
* @param setId
|
|
37925
|
+
/**
|
|
37926
|
+
* This function returns the URL of the last saved rendering
|
|
37927
|
+
* @param setId
|
|
37900
37928
|
*/
|
|
37901
37929
|
)
|
|
37902
37930
|
}, {
|
|
@@ -37939,10 +37967,10 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37939
37967
|
return hqRenderScript;
|
|
37940
37968
|
}
|
|
37941
37969
|
|
|
37942
|
-
/**
|
|
37943
|
-
* This function returns all lastsaved alternate Set Renderings as renderings
|
|
37944
|
-
* @param setId
|
|
37945
|
-
* @returns
|
|
37970
|
+
/**
|
|
37971
|
+
* This function returns all lastsaved alternate Set Renderings as renderings
|
|
37972
|
+
* @param setId
|
|
37973
|
+
* @returns
|
|
37946
37974
|
*/
|
|
37947
37975
|
}, {
|
|
37948
37976
|
key: "getAlternateSetRenderings",
|
|
@@ -37976,9 +38004,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37976
38004
|
}
|
|
37977
38005
|
return getAlternateSetRenderings;
|
|
37978
38006
|
}()
|
|
37979
|
-
/**
|
|
37980
|
-
* returns the URLs of all saved alternate renderings
|
|
37981
|
-
* @param setId
|
|
38007
|
+
/**
|
|
38008
|
+
* returns the URLs of all saved alternate renderings
|
|
38009
|
+
* @param setId
|
|
37982
38010
|
*/
|
|
37983
38011
|
)
|
|
37984
38012
|
}, {
|
|
@@ -38155,11 +38183,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38155
38183
|
}
|
|
38156
38184
|
return saveSetImage;
|
|
38157
38185
|
}()
|
|
38158
|
-
/**
|
|
38159
|
-
* This function makes shure that all alternate set images are saved
|
|
38160
|
-
* @param catCodex
|
|
38161
|
-
* @param catGUID
|
|
38162
|
-
* @returns
|
|
38186
|
+
/**
|
|
38187
|
+
* This function makes shure that all alternate set images are saved
|
|
38188
|
+
* @param catCodex
|
|
38189
|
+
* @param catGUID
|
|
38190
|
+
* @returns
|
|
38163
38191
|
*/
|
|
38164
38192
|
}, {
|
|
38165
38193
|
key: "saveAlternateSetImages",
|
|
@@ -38250,10 +38278,10 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38250
38278
|
}
|
|
38251
38279
|
return saveSet2DImage;
|
|
38252
38280
|
}()
|
|
38253
|
-
/**
|
|
38254
|
-
* This function is called in order to destroy a planner. All elements are cleared all saved resources are cleared.
|
|
38255
|
-
* @param setId The setID the planner belongs to
|
|
38256
|
-
* @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
|
|
38257
38285
|
*/
|
|
38258
38286
|
}, {
|
|
38259
38287
|
key: "destroyPlanner",
|
|
@@ -38270,8 +38298,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38270
38298
|
return false;
|
|
38271
38299
|
}
|
|
38272
38300
|
|
|
38273
|
-
/**
|
|
38274
|
-
* This function destroys all planner elements that are currently loaded.
|
|
38301
|
+
/**
|
|
38302
|
+
* This function destroys all planner elements that are currently loaded.
|
|
38275
38303
|
*/
|
|
38276
38304
|
}, {
|
|
38277
38305
|
key: "destroyAllPlanner",
|
|
@@ -38289,8 +38317,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38289
38317
|
return true;
|
|
38290
38318
|
}
|
|
38291
38319
|
|
|
38292
|
-
/**
|
|
38293
|
-
* 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
|
|
38294
38322
|
*/
|
|
38295
38323
|
}, {
|
|
38296
38324
|
key: "clearHandler3D",
|
|
@@ -38370,11 +38398,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38370
38398
|
}
|
|
38371
38399
|
return deletePlannerElement;
|
|
38372
38400
|
}()
|
|
38373
|
-
/**
|
|
38374
|
-
* This function gets all Elements that are copyied when copying one element.
|
|
38375
|
-
* @param setId
|
|
38376
|
-
* @param elementId
|
|
38377
|
-
* @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
|
|
38378
38406
|
*/
|
|
38379
38407
|
}, {
|
|
38380
38408
|
key: "getPlannerElementsInfluencedByCopy",
|
|
@@ -38385,11 +38413,11 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38385
38413
|
return this.plannerList.get(setId).getPlannerElementsInfluencedByCopy(elementId, copyInfo);
|
|
38386
38414
|
}
|
|
38387
38415
|
|
|
38388
|
-
/**
|
|
38389
|
-
* This function is used to copy an element in the planner
|
|
38390
|
-
* @param setId
|
|
38391
|
-
* @param articleCopyRelation
|
|
38392
|
-
* @param copyInfo
|
|
38416
|
+
/**
|
|
38417
|
+
* This function is used to copy an element in the planner
|
|
38418
|
+
* @param setId
|
|
38419
|
+
* @param articleCopyRelation
|
|
38420
|
+
* @param copyInfo
|
|
38393
38421
|
*/
|
|
38394
38422
|
}, {
|
|
38395
38423
|
key: "copyPlannerElements",
|
|
@@ -38423,13 +38451,13 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38423
38451
|
}
|
|
38424
38452
|
return copyPlannerElements;
|
|
38425
38453
|
}()
|
|
38426
|
-
/**
|
|
38427
|
-
* This function is called when the planner Elements position or rotation are modified in the view.
|
|
38428
|
-
*@param setId The set id of the planning
|
|
38429
|
-
* @param plannerElementID This is the element ID of the planner Element that is changed.
|
|
38430
|
-
*@param deltaMove This is the delta in centimeters the element was moved in each direction
|
|
38431
|
-
* @param deltaAngleDeg This is the angle the element was rotated in degrees
|
|
38432
|
-
* @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
|
|
38433
38461
|
*/
|
|
38434
38462
|
)
|
|
38435
38463
|
}, {
|
|
@@ -38454,13 +38482,13 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38454
38482
|
return allPlanningsAreComplete;
|
|
38455
38483
|
}
|
|
38456
38484
|
|
|
38457
|
-
/**
|
|
38458
|
-
* This function returns the neighbor elements of a specific elements based on a given docking Type.
|
|
38459
|
-
* E.g. dockingType "AVR" returns the element that is docking to the AVR vector
|
|
38460
|
-
* @param setId The current setId of the element
|
|
38461
|
-
* @param elementId The elementId of the element
|
|
38462
|
-
* @param dockingType The dockingType
|
|
38463
|
-
* @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
|
|
38464
38492
|
*/
|
|
38465
38493
|
}, {
|
|
38466
38494
|
key: "getNeighborElementIds",
|
|
@@ -38511,8 +38539,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38511
38539
|
}
|
|
38512
38540
|
}
|
|
38513
38541
|
|
|
38514
|
-
/**
|
|
38515
|
-
* This function returns all viewPlannerElements of all planner
|
|
38542
|
+
/**
|
|
38543
|
+
* This function returns all viewPlannerElements of all planner
|
|
38516
38544
|
*/
|
|
38517
38545
|
}, {
|
|
38518
38546
|
key: "getAllViewPlannerElements",
|
|
@@ -38627,10 +38655,10 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38627
38655
|
}
|
|
38628
38656
|
return request3D;
|
|
38629
38657
|
}()
|
|
38630
|
-
/**
|
|
38631
|
-
* This function returns the Project (JSON) of the planning data of a specific set.
|
|
38632
|
-
* @param setId Only contains planner Information of this set
|
|
38633
|
-
* @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
|
|
38634
38662
|
*/
|
|
38635
38663
|
}, {
|
|
38636
38664
|
key: "getProject3D",
|
|
@@ -38662,8 +38690,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38662
38690
|
}, {
|
|
38663
38691
|
key: "createPlanningHash",
|
|
38664
38692
|
value:
|
|
38665
|
-
/**
|
|
38666
|
-
* 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.
|
|
38667
38695
|
*/
|
|
38668
38696
|
function createPlanningHash() {
|
|
38669
38697
|
var _this5 = this;
|
|
@@ -38696,12 +38724,12 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38696
38724
|
|
|
38697
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; }
|
|
38698
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; }
|
|
38699
|
-
/*
|
|
38700
|
-
Das ist der Konstruktor für den ganzen Web Planner.
|
|
38701
|
-
Er baut alle Klassen und initialisiert sie.
|
|
38702
|
-
Ist der BOSS initialisieren und Kommunikation handeln
|
|
38703
|
-
Arbeitet wie ein Verkehrspolizist
|
|
38704
|
-
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
|
|
38705
38733
|
*/
|
|
38706
38734
|
|
|
38707
38735
|
var LOG$1 = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
@@ -38796,9 +38824,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38796
38824
|
}
|
|
38797
38825
|
return somethingChanged;
|
|
38798
38826
|
});
|
|
38799
|
-
/**
|
|
38800
|
-
* 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
|
|
38801
|
-
* @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
|
|
38802
38830
|
*/
|
|
38803
38831
|
_defineProperty__default["default"](this, "onRoomListLoaded", function () {
|
|
38804
38832
|
var set = _this.actSet();
|
|
@@ -38807,9 +38835,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38807
38835
|
(_this$updateStaticRoo = _this.updateStaticRoomListItems) === null || _this$updateStaticRoo === void 0 || _this$updateStaticRoo.call(_this, setHandlerInstance.getStaticRoomListItems(set), _this.api.getRoomListInProduct() || _this.plannerConfig.initMode);
|
|
38808
38836
|
}
|
|
38809
38837
|
});
|
|
38810
|
-
/**
|
|
38811
|
-
* This function is called when the planner Rendering should be updated
|
|
38812
|
-
* @param rendering The new rendering that should be loaded into the view
|
|
38838
|
+
/**
|
|
38839
|
+
* This function is called when the planner Rendering should be updated
|
|
38840
|
+
* @param rendering The new rendering that should be loaded into the view
|
|
38813
38841
|
*/
|
|
38814
38842
|
_defineProperty__default["default"](this, "updatePlannerRendering", function (rendering) {
|
|
38815
38843
|
var _this$state;
|
|
@@ -38824,9 +38852,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38824
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);
|
|
38825
38853
|
}
|
|
38826
38854
|
});
|
|
38827
|
-
/**
|
|
38828
|
-
* This function is called when the planner Rendering should be updated
|
|
38829
|
-
* @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
|
|
38830
38858
|
*/
|
|
38831
38859
|
_defineProperty__default["default"](this, "updatePlannerHqRenderScript", function (hqRenderscript) {
|
|
38832
38860
|
var _this$setHQRenderScri;
|
|
@@ -38852,8 +38880,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38852
38880
|
}
|
|
38853
38881
|
return false;
|
|
38854
38882
|
});
|
|
38855
|
-
/**
|
|
38856
|
-
* 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
|
|
38857
38885
|
*/
|
|
38858
38886
|
_defineProperty__default["default"](this, "loadCatalogPlannerArticles", function (paletteeId, isUpdate, type, dockFilter, actStepName, stepKey) {
|
|
38859
38887
|
var _this$updateCatalogPl;
|
|
@@ -38861,18 +38889,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38861
38889
|
//Von diesem Katalog müssen wir die CatalogPlannerArticles laden.
|
|
38862
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);
|
|
38863
38891
|
});
|
|
38864
|
-
/**
|
|
38865
|
-
* this fuction loads the accessoires of a specific article -> could be more than one article in the future
|
|
38866
|
-
* @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
|
|
38867
38895
|
*/
|
|
38868
38896
|
_defineProperty__default["default"](this, "loadAccessoiresOfArticles", function (targetArticles) {
|
|
38869
38897
|
var set = _this.actSet();
|
|
38870
38898
|
if (!set) return;
|
|
38871
38899
|
_this.updateAccessoiresPalette(setHandlerInstance.getAccessoriesOfArticles(_this.actSet(), targetArticles), set.configAccessoiresInAccessoireStep ? 'ACC_CONFIG' : 'ACC');
|
|
38872
38900
|
});
|
|
38873
|
-
/**
|
|
38874
|
-
* this function is called when all Items of a ConfigStep are requested
|
|
38875
|
-
* @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
|
|
38876
38904
|
*/
|
|
38877
38905
|
_defineProperty__default["default"](this, "loadConfigItemsOfOptions", /*#__PURE__*/function () {
|
|
38878
38906
|
var _ref = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(configStepKey, paletteId, isUpdate, visible) {
|
|
@@ -38896,8 +38924,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38896
38924
|
return _ref.apply(this, arguments);
|
|
38897
38925
|
};
|
|
38898
38926
|
}());
|
|
38899
|
-
/**
|
|
38900
|
-
* this function laods the summary Items
|
|
38927
|
+
/**
|
|
38928
|
+
* this function laods the summary Items
|
|
38901
38929
|
*/
|
|
38902
38930
|
_defineProperty__default["default"](this, "loadSummaryItems", /*#__PURE__*/_asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2() {
|
|
38903
38931
|
var _this$actions, _this$actions$toggleL, _this$updateSummaryIt, _this$actions2, _this$actions2$toggle;
|
|
@@ -38941,18 +38969,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
38941
38969
|
var _this$updateDoorPlann;
|
|
38942
38970
|
(_this$updateDoorPlann = _this.updateDoorPlannerItems) === null || _this$updateDoorPlann === void 0 || _this$updateDoorPlann.call(_this, setHandlerInstance.getDoorPlannerItems(_this.actSet(), configStepKey), configStepKey);
|
|
38943
38971
|
});
|
|
38944
|
-
/**
|
|
38945
|
-
* This function is called when switching from one planning to another. All Planner handler are destroyed.
|
|
38946
|
-
* @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
|
|
38947
38975
|
*/
|
|
38948
38976
|
_defineProperty__default["default"](this, "destroyPlannerHandler", function (doDestroy3DHostConnection) {
|
|
38949
38977
|
setHandlerInstance.destroyPlannerHandler(_this.actSet(), doDestroy3DHostConnection);
|
|
38950
38978
|
if (_this.getCurPlannerViewMode) _this.updatePlannerView('DESTROY_PLANNER');
|
|
38951
38979
|
});
|
|
38952
|
-
/**
|
|
38953
|
-
* this Function is called when new Planner Article is Loaded
|
|
38954
|
-
* @param elementCodex unique Codex to identify the article
|
|
38955
|
-
* @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
|
|
38956
38984
|
*/
|
|
38957
38985
|
_defineProperty__default["default"](this, "addPlannerElement", /*#__PURE__*/function () {
|
|
38958
38986
|
var _ref3 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee3(elementCodex, initParams, dontUpdateView) {
|
|
@@ -39015,11 +39043,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39015
39043
|
return _ref3.apply(this, arguments);
|
|
39016
39044
|
};
|
|
39017
39045
|
}());
|
|
39018
|
-
/**
|
|
39019
|
-
* this function implements a switch logic of 2 elements also called "Tauschfunktion"
|
|
39020
|
-
* @param setId actSet
|
|
39021
|
-
* @param elementId Id of the element that gets deleted
|
|
39022
|
-
* @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
|
|
39023
39051
|
*/
|
|
39024
39052
|
_defineProperty__default["default"](this, "switchPlannerElement", /*#__PURE__*/function () {
|
|
39025
39053
|
var _ref4 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee4(setId, elementId, articleCodex, initParams) {
|
|
@@ -39144,12 +39172,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39144
39172
|
return _ref6.apply(this, arguments);
|
|
39145
39173
|
};
|
|
39146
39174
|
}());
|
|
39147
|
-
/**
|
|
39148
|
-
* This function is called every time the transformation of an Element is changed
|
|
39149
|
-
* @param plannerElementID
|
|
39150
|
-
* @param deltaMove
|
|
39151
|
-
* @param deltaAngleDeg
|
|
39152
|
-
* @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
|
|
39153
39181
|
*/
|
|
39154
39182
|
_defineProperty__default["default"](this, "updatePlannerTrans", /*#__PURE__*/function () {
|
|
39155
39183
|
var _ref7 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee7(setId, plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance) {
|
|
@@ -39174,10 +39202,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39174
39202
|
return _ref7.apply(this, arguments);
|
|
39175
39203
|
};
|
|
39176
39204
|
}());
|
|
39177
|
-
/**
|
|
39178
|
-
* This function is called when the user interacts with the navigation in the 3D Image view.
|
|
39179
|
-
* The mode indicates what should be done in the navigation like zooming or swiping.
|
|
39180
|
-
* @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.
|
|
39181
39209
|
*/
|
|
39182
39210
|
_defineProperty__default["default"](this, "handle3DVisualizationChanged", function (mode, params, avoidUpdateRendering) {
|
|
39183
39211
|
var _this$getDoShow3DDime;
|
|
@@ -39264,10 +39292,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39264
39292
|
_defineProperty__default["default"](this, "getBasketIdsOfElementIdLogic", function (elementId) {
|
|
39265
39293
|
return setHandlerInstance.getBasketIdOfElementId(_this.actSet(), elementId);
|
|
39266
39294
|
});
|
|
39267
|
-
/**
|
|
39268
|
-
* This function is called when the the checkBox to ConfigSingle is triggered
|
|
39269
|
-
* @param doConfigSingle new ConfigSingle value
|
|
39270
|
-
* @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
|
|
39271
39299
|
*/
|
|
39272
39300
|
_defineProperty__default["default"](this, "configSingleIsChanged", /*#__PURE__*/function () {
|
|
39273
39301
|
var _ref10 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee10(doConfigSingle, configStepKey, groupedOptions, groupedArticles, optionCodex, tabGroupKey) {
|
|
@@ -39297,14 +39325,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39297
39325
|
return _ref10.apply(this, arguments);
|
|
39298
39326
|
};
|
|
39299
39327
|
}());
|
|
39300
|
-
/**
|
|
39301
|
-
* this function is called when the an ConfigItem is clicked
|
|
39302
|
-
* the configuration of targetArticles gets updated
|
|
39303
|
-
*
|
|
39304
|
-
* @param myValues a dictionary with the key of the OptionCodex and the value of the OptionValueCodex
|
|
39305
|
-
* @param targetArticles array if BasketIds
|
|
39306
|
-
* @param freeText freeText is null when specificly set to null. When nopt set at all its undefined
|
|
39307
|
-
*
|
|
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
|
+
*
|
|
39308
39336
|
*/
|
|
39309
39337
|
//onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
|
|
39310
39338
|
_defineProperty__default["default"](this, "doConfigure", /*#__PURE__*/function () {
|
|
@@ -39569,17 +39597,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39569
39597
|
this.onInitializationError();
|
|
39570
39598
|
//fehler beim laden vom basket..
|
|
39571
39599
|
LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {
|
|
39572
|
-
/*
|
|
39573
|
-
origProductId: basket.OrigProductId,
|
|
39574
|
-
origDivaNr: this.divaBasketHandler.origConfiguration.originDivaNr,
|
|
39575
|
-
bv: (set?.getSetPrice() ?? 0) / 1000,
|
|
39576
|
-
cat: catalogData?.catalogCodex,
|
|
39577
|
-
catName: catalogData?.catalogName,
|
|
39578
|
-
accountName: catalogData?.accountName,
|
|
39579
|
-
sup: catalogData?.supplierGuid,
|
|
39580
|
-
journeyId: basket.CustomerJourneyId,
|
|
39581
|
-
divaNr: basket.DivaNr,
|
|
39582
|
-
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,
|
|
39583
39611
|
plannerMode: this.getCurImageMode(),*/
|
|
39584
39612
|
});
|
|
39585
39613
|
return _context13.abrupt("return", false);
|
|
@@ -39726,8 +39754,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39726
39754
|
return this.plannerHandler;
|
|
39727
39755
|
}
|
|
39728
39756
|
|
|
39729
|
-
/*
|
|
39730
|
-
Wenn eine Planung geladen wurde, dann muss die View initialisiert werden
|
|
39757
|
+
/*
|
|
39758
|
+
Wenn eine Planung geladen wurde, dann muss die View initialisiert werden
|
|
39731
39759
|
*/
|
|
39732
39760
|
}, {
|
|
39733
39761
|
key: "initView",
|
|
@@ -39978,10 +40006,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39978
40006
|
this.setHQRenderScript = setHQRenderScript;
|
|
39979
40007
|
}
|
|
39980
40008
|
|
|
39981
|
-
/**
|
|
39982
|
-
* This function is called when the planner view should be updated
|
|
39983
|
-
* @param callingFrom This parameter is used for debug Reasons. It can have information from where in the code the updatePlannerView is called
|
|
39984
|
-
* @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
|
|
39985
40013
|
*/
|
|
39986
40014
|
}, {
|
|
39987
40015
|
key: "updatePlannerView",
|
|
@@ -40047,12 +40075,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40047
40075
|
}
|
|
40048
40076
|
}
|
|
40049
40077
|
|
|
40050
|
-
/**
|
|
40051
|
-
* This function forces loading the 3D image of a planning and the 2D planner.
|
|
40052
|
-
* @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.
|
|
40053
|
-
* If TEMP is used the rendered image is saved temporarily on the MediaService - DEPRECTED
|
|
40054
|
-
* If PERMANENT the rendering is saved permanent in the MediaService
|
|
40055
|
-
* @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
|
|
40056
40084
|
*/
|
|
40057
40085
|
}, {
|
|
40058
40086
|
key: "forceUpdatePlannerView",
|
|
@@ -40082,8 +40110,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40082
40110
|
}, {
|
|
40083
40111
|
key: "destroyWebPlanner",
|
|
40084
40112
|
value:
|
|
40085
|
-
/**
|
|
40086
|
-
* 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.
|
|
40087
40115
|
*/
|
|
40088
40116
|
|
|
40089
40117
|
function destroyWebPlanner() {
|
|
@@ -40131,11 +40159,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40131
40159
|
}
|
|
40132
40160
|
return deletePlannerElement;
|
|
40133
40161
|
}()
|
|
40134
|
-
/**
|
|
40135
|
-
* This function is called when a element should be copied.
|
|
40136
|
-
* @param setId the setId the element to copy belongs too
|
|
40137
|
-
* @param elementId The elementId that should be copied
|
|
40138
|
-
* @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.
|
|
40139
40167
|
*/
|
|
40140
40168
|
}, {
|
|
40141
40169
|
key: "copyPlannerElement",
|
|
@@ -40182,8 +40210,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40182
40210
|
}, {
|
|
40183
40211
|
key: "getPlanningIsComplete",
|
|
40184
40212
|
value:
|
|
40185
|
-
/**
|
|
40186
|
-
* 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).
|
|
40187
40215
|
*/
|
|
40188
40216
|
function getPlanningIsComplete(forceCheck) {
|
|
40189
40217
|
return setHandlerInstance.getPlanningIsComplete(this.actSet(), forceCheck);
|
|
@@ -40379,9 +40407,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40379
40407
|
(_this$actSet8 = this.actSet()) === null || _this$actSet8 === void 0 || _this$actSet8.setDifferentOptions(options);
|
|
40380
40408
|
}
|
|
40381
40409
|
|
|
40382
|
-
/**
|
|
40383
|
-
* Updated the Price in the View.
|
|
40384
|
-
* 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!
|
|
40385
40413
|
*/
|
|
40386
40414
|
}, {
|
|
40387
40415
|
key: "updatePriceInView",
|
|
@@ -40391,9 +40419,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40391
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));
|
|
40392
40420
|
}
|
|
40393
40421
|
|
|
40394
|
-
/**
|
|
40395
|
-
* 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
|
|
40396
|
-
* @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
|
|
40397
40425
|
*/
|
|
40398
40426
|
}, {
|
|
40399
40427
|
key: "eventIsManagedByClient",
|
|
@@ -40409,10 +40437,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40409
40437
|
DivaUtils__default["default"].addToDataLayer(category, action, this.divaNr);
|
|
40410
40438
|
}
|
|
40411
40439
|
|
|
40412
|
-
/**
|
|
40413
|
-
* this function calls genericly any event and passes specific params
|
|
40414
|
-
* @param event to identify which event
|
|
40415
|
-
* @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
|
|
40416
40444
|
*/
|
|
40417
40445
|
}, {
|
|
40418
40446
|
key: "callEvent",
|
|
@@ -40453,46 +40481,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40453
40481
|
_this2 = this,
|
|
40454
40482
|
_this$actions30,
|
|
40455
40483
|
_this$i18n14;
|
|
40456
|
-
var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, result, _this$actions27, _this$i18n8, _this$i18n9, _this$actions28, _this$i18n10, _this$i18n11, _this$actions29, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
|
|
40484
|
+
var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, result, _this$actions27, _this$i18n8, _this$i18n9, _this$actions28, _this$i18n10, _this$i18n11, _this$actions29, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
|
|
40457
40485
|
return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context25) {
|
|
40458
40486
|
while (1) switch (_context25.prev = _context25.next) {
|
|
40459
40487
|
case 0:
|
|
40460
40488
|
returnTo = this.getReturnTo(event);
|
|
40461
40489
|
finalEvent = event;
|
|
40462
40490
|
if (!(returnTo == 'OPEN_LEAFLET_BARRIER')) {
|
|
40463
|
-
_context25.next =
|
|
40491
|
+
_context25.next = 16;
|
|
40464
40492
|
break;
|
|
40465
40493
|
}
|
|
40466
40494
|
product = undefined;
|
|
40467
40495
|
if (!((_this$api$getBarrierC = this.api.getBarrierConfig()) !== null && _this$api$getBarrierC !== void 0 && _this$api$getBarrierC.affiliate)) {
|
|
40468
|
-
_context25.next =
|
|
40496
|
+
_context25.next = 10;
|
|
40469
40497
|
break;
|
|
40470
40498
|
}
|
|
40471
|
-
|
|
40472
|
-
|
|
40473
|
-
|
|
40474
|
-
_context25.sent;
|
|
40499
|
+
url = this.api.getCatalogProductUrl(this.actSet().getCatalogCodex());
|
|
40500
|
+
_context25.next = 8;
|
|
40501
|
+
return this.api.getDataCache(url, url, undefined, 'catalog');
|
|
40475
40502
|
case 8:
|
|
40476
|
-
|
|
40477
|
-
|
|
40503
|
+
_result = _context25.sent;
|
|
40504
|
+
product = productHandlerInstance.getBestMatch((_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getDivaArticles(), _result);
|
|
40478
40505
|
case 10:
|
|
40506
|
+
_context25.next = 12;
|
|
40507
|
+
return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
|
|
40508
|
+
case 12:
|
|
40479
40509
|
finalEvent = _context25.sent;
|
|
40480
40510
|
if (finalEvent) {
|
|
40481
|
-
_context25.next =
|
|
40511
|
+
_context25.next = 15;
|
|
40482
40512
|
break;
|
|
40483
40513
|
}
|
|
40484
40514
|
return _context25.abrupt("return", 'canceled');
|
|
40485
|
-
case
|
|
40515
|
+
case 15:
|
|
40486
40516
|
returnTo = finalEvent == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
|
|
40487
|
-
case
|
|
40517
|
+
case 16:
|
|
40488
40518
|
(_this$actions25 = this.actions) === null || _this$actions25 === void 0 || (_this$actions25$toggl = _this$actions25.toggleLoading) === null || _this$actions25$toggl === void 0 || _this$actions25$toggl.call(_this$actions25, 'Planner_Saving', false, true);
|
|
40489
|
-
_context25.next =
|
|
40519
|
+
_context25.next = 19;
|
|
40490
40520
|
return this.saveToBasket(finalEvent, repairOnly, force);
|
|
40491
|
-
case
|
|
40521
|
+
case 19:
|
|
40492
40522
|
result = _context25.sent;
|
|
40493
40523
|
(_this$actions26 = this.actions) === null || _this$actions26 === void 0 || (_this$actions26$toggl = _this$actions26.toggleLoading) === null || _this$actions26$toggl === void 0 || _this$actions26$toggl.call(_this$actions26, 'Planner_Saving', false, false);
|
|
40494
40524
|
if (!(result === 'canceled')) {
|
|
40495
|
-
_context25.next =
|
|
40525
|
+
_context25.next = 25;
|
|
40496
40526
|
break;
|
|
40497
40527
|
}
|
|
40498
40528
|
LOG$1.error(new DivaUtils.DivaError('failed to save Basket'));
|
|
@@ -40501,11 +40531,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40501
40531
|
accept: true
|
|
40502
40532
|
});
|
|
40503
40533
|
return _context25.abrupt("return", result);
|
|
40504
|
-
case
|
|
40534
|
+
case 25:
|
|
40505
40535
|
_context25.t0 = returnTo;
|
|
40506
|
-
_context25.next = _context25.t0 === 'OPEN_PDF' ?
|
|
40536
|
+
_context25.next = _context25.t0 === 'OPEN_PDF' ? 28 : _context25.t0 === 'SAVE_BASKET_WITH_MODAL' ? 30 : 31;
|
|
40507
40537
|
break;
|
|
40508
|
-
case
|
|
40538
|
+
case 28:
|
|
40509
40539
|
if (!this.getBasket().PDFDocumentURL) {
|
|
40510
40540
|
LOG$1.error(new DivaUtils.DivaError('PDF url is missing in basket', {
|
|
40511
40541
|
code: 'WC_0010'
|
|
@@ -40523,22 +40553,22 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40523
40553
|
}
|
|
40524
40554
|
});
|
|
40525
40555
|
}
|
|
40526
|
-
return _context25.abrupt("break",
|
|
40527
|
-
case
|
|
40556
|
+
return _context25.abrupt("break", 31);
|
|
40557
|
+
case 30:
|
|
40528
40558
|
(_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
|
|
40529
40559
|
text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
|
|
40530
40560
|
accept: true
|
|
40531
40561
|
});
|
|
40532
|
-
case
|
|
40562
|
+
case 31:
|
|
40533
40563
|
if (!(result == 'noArticleToSave')) {
|
|
40534
|
-
_context25.next =
|
|
40564
|
+
_context25.next = 34;
|
|
40535
40565
|
break;
|
|
40536
40566
|
}
|
|
40537
40567
|
(_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
|
|
40538
40568
|
return _context25.abrupt("return", 'canceled');
|
|
40539
|
-
case
|
|
40569
|
+
case 34:
|
|
40540
40570
|
return _context25.abrupt("return", result);
|
|
40541
|
-
case
|
|
40571
|
+
case 35:
|
|
40542
40572
|
case "end":
|
|
40543
40573
|
return _context25.stop();
|
|
40544
40574
|
}
|
|
@@ -40728,11 +40758,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40728
40758
|
return setHandlerInstance.checkBannerRules(set, visitedOptions, event);
|
|
40729
40759
|
}
|
|
40730
40760
|
|
|
40731
|
-
/**
|
|
40732
|
-
* This function returns true if the Planner Mode should be visible and the planner Step should be shown.
|
|
40733
|
-
* The planner step is not shown if:
|
|
40734
|
-
* - There is no viewer Option set for the Planner
|
|
40735
|
-
* - 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
|
|
40736
40766
|
*/
|
|
40737
40767
|
}, {
|
|
40738
40768
|
key: "getCurPlannerType",
|
|
@@ -40752,8 +40782,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40752
40782
|
|
|
40753
40783
|
//if planner is hidden by config but nothing is planned initially
|
|
40754
40784
|
if (plannerType === 'NONE') {
|
|
40755
|
-
var _this$plannerConfig$a7, _this$
|
|
40756
|
-
if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a7 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a7 !== void 0 && _this$plannerConfig$a7.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$
|
|
40785
|
+
var _this$plannerConfig$a7, _this$actSet10;
|
|
40786
|
+
if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a7 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a7 !== void 0 && _this$plannerConfig$a7.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet10 = this.actSet()) !== null && _this$actSet10 !== void 0 && (_this$actSet10 = _this$actSet10.CatalogData.startPlannerArticle) !== null && _this$actSet10 !== void 0 && _this$actSet10.length)) {
|
|
40757
40787
|
plannerType = 'PLANNER';
|
|
40758
40788
|
}
|
|
40759
40789
|
}
|
|
@@ -40793,38 +40823,38 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40793
40823
|
}, {
|
|
40794
40824
|
key: "getCurCatalogCodex",
|
|
40795
40825
|
value: function getCurCatalogCodex() {
|
|
40796
|
-
var _this$
|
|
40797
|
-
return (_this$
|
|
40826
|
+
var _this$actSet11;
|
|
40827
|
+
return (_this$actSet11 = this.actSet()) === null || _this$actSet11 === void 0 ? void 0 : _this$actSet11.getCatalogCodex();
|
|
40798
40828
|
}
|
|
40799
40829
|
}, {
|
|
40800
40830
|
key: "getCurCatalogName",
|
|
40801
40831
|
value: function getCurCatalogName() {
|
|
40802
|
-
var _this$
|
|
40803
|
-
return (_this$
|
|
40832
|
+
var _this$actSet12;
|
|
40833
|
+
return (_this$actSet12 = this.actSet()) === null || _this$actSet12 === void 0 ? void 0 : _this$actSet12.getCatalogName();
|
|
40804
40834
|
}
|
|
40805
40835
|
}, {
|
|
40806
40836
|
key: "getCurAccountName",
|
|
40807
40837
|
value: function getCurAccountName() {
|
|
40808
|
-
var _this$
|
|
40809
|
-
return (_this$
|
|
40838
|
+
var _this$actSet13;
|
|
40839
|
+
return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getAccountName();
|
|
40810
40840
|
}
|
|
40811
40841
|
}, {
|
|
40812
40842
|
key: "getCurSupplierGuid",
|
|
40813
40843
|
value: function getCurSupplierGuid() {
|
|
40814
|
-
var _this$
|
|
40815
|
-
return (_this$
|
|
40844
|
+
var _this$actSet14;
|
|
40845
|
+
return (_this$actSet14 = this.actSet()) === null || _this$actSet14 === void 0 ? void 0 : _this$actSet14.getSupplierGuid();
|
|
40816
40846
|
}
|
|
40817
40847
|
}, {
|
|
40818
40848
|
key: "getCurSetPrice",
|
|
40819
40849
|
value: function getCurSetPrice() {
|
|
40820
|
-
var _this$actSet$getSetPr, _this$
|
|
40821
|
-
return (_this$actSet$getSetPr = (_this$
|
|
40850
|
+
var _this$actSet$getSetPr, _this$actSet15;
|
|
40851
|
+
return (_this$actSet$getSetPr = (_this$actSet15 = this.actSet()) === null || _this$actSet15 === void 0 ? void 0 : _this$actSet15.getSetPrice()) !== null && _this$actSet$getSetPr !== void 0 ? _this$actSet$getSetPr : 0;
|
|
40822
40852
|
}
|
|
40823
40853
|
}, {
|
|
40824
40854
|
key: "getCurImageMode",
|
|
40825
40855
|
value: function getCurImageMode() {
|
|
40826
|
-
var _this$
|
|
40827
|
-
return (_this$
|
|
40856
|
+
var _this$actSet16;
|
|
40857
|
+
return (_this$actSet16 = this.actSet()) !== null && _this$actSet16 !== void 0 && (_this$actSet16 = _this$actSet16.CatalogData) !== null && _this$actSet16 !== void 0 && _this$actSet16.has3dModels ? '3D' : '2D';
|
|
40828
40858
|
}
|
|
40829
40859
|
}, {
|
|
40830
40860
|
key: "getViewConfig",
|
|
@@ -40855,65 +40885,65 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40855
40885
|
}, {
|
|
40856
40886
|
key: "doShow3DDimensionLines",
|
|
40857
40887
|
value: function doShow3DDimensionLines() {
|
|
40858
|
-
var _this$
|
|
40859
|
-
return (_this$
|
|
40888
|
+
var _this$actSet17;
|
|
40889
|
+
return (_this$actSet17 = this.actSet()) === null || _this$actSet17 === void 0 || (_this$actSet17 = _this$actSet17.CatalogData) === null || _this$actSet17 === void 0 ? void 0 : _this$actSet17.doShow3DDimensionLines;
|
|
40860
40890
|
}
|
|
40861
40891
|
}, {
|
|
40862
40892
|
key: "hidePlannerUiIcons",
|
|
40863
40893
|
value: function hidePlannerUiIcons() {
|
|
40864
|
-
var _this$
|
|
40865
|
-
return (_this$
|
|
40894
|
+
var _this$actSet18;
|
|
40895
|
+
return (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 || (_this$actSet18 = _this$actSet18.CatalogData) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.hidePlannerUiIcons;
|
|
40866
40896
|
}
|
|
40867
40897
|
}, {
|
|
40868
40898
|
key: "doShowPlannerReplaceMode",
|
|
40869
40899
|
value: function doShowPlannerReplaceMode() {
|
|
40870
|
-
var _this$
|
|
40871
|
-
var catalogData = (_this$
|
|
40900
|
+
var _this$actSet19, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
|
|
40901
|
+
var catalogData = (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.CatalogData;
|
|
40872
40902
|
return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.replaceModeActive) && ((_this$api$getViewConf2 = this.api.getViewConfig()) === null || _this$api$getViewConf2 === void 0 ? void 0 : _this$api$getViewConf2.showReplaceFunctionInPlanner) && Object.entries(catalogData.allCatalogPlannerArticles).length > 1 && Object.entries((_catalogData$PlannerP = (_catalogData$PlannerP2 = catalogData.PlannerPaletteViewInfo) === null || _catalogData$PlannerP2 === void 0 ? void 0 : _catalogData$PlannerP2.catalogPlannerArticles) !== null && _catalogData$PlannerP !== void 0 ? _catalogData$PlannerP : {}).length > 1;
|
|
40873
40903
|
}
|
|
40874
40904
|
}, {
|
|
40875
40905
|
key: "doPlannerReplaceAutoSwitch",
|
|
40876
40906
|
value: function doPlannerReplaceAutoSwitch() {
|
|
40877
|
-
var _this$
|
|
40878
|
-
var catalogData = (_this$
|
|
40907
|
+
var _this$actSet20, _this$api$getViewConf3;
|
|
40908
|
+
var catalogData = (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.CatalogData;
|
|
40879
40909
|
return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.catalogPlannsCompletely) && this.doShowPlannerReplaceMode() && ((_this$api$getViewConf3 = this.api.getViewConfig()) === null || _this$api$getViewConf3 === void 0 ? void 0 : _this$api$getViewConf3.allowAutoSwitchInReplaceFunctionInPlanner);
|
|
40880
40910
|
}
|
|
40881
40911
|
}, {
|
|
40882
40912
|
key: "getHidePlanner",
|
|
40883
40913
|
value: function getHidePlanner() {
|
|
40884
|
-
var _this$
|
|
40885
|
-
return this.api.getHidePlanner() || !!((_this$
|
|
40914
|
+
var _this$actSet21;
|
|
40915
|
+
return this.api.getHidePlanner() || !!((_this$actSet21 = this.actSet()) !== null && _this$actSet21 !== void 0 && _this$actSet21.CatalogData.useBoxPlanner);
|
|
40886
40916
|
}
|
|
40887
40917
|
}, {
|
|
40888
40918
|
key: "getAllowRTV",
|
|
40889
40919
|
value: function getAllowRTV() {
|
|
40890
|
-
var _this$
|
|
40920
|
+
var _this$actSet22, _this$actSet23;
|
|
40891
40921
|
if (this.getEnableUnityRtvKombi()) return false;
|
|
40892
40922
|
if (this.api.forceShowRTV()) return true;
|
|
40893
|
-
if ((_this$
|
|
40894
|
-
if (this.api.getDoShowRTV() && (_this$
|
|
40923
|
+
if ((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaForceRTV) return true;
|
|
40924
|
+
if (this.api.getDoShowRTV() && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
|
|
40895
40925
|
return false;
|
|
40896
40926
|
}
|
|
40897
40927
|
}, {
|
|
40898
40928
|
key: "geAllowQRCodeAR",
|
|
40899
40929
|
value: function geAllowQRCodeAR() {
|
|
40900
|
-
var _this$
|
|
40901
|
-
if (this.api.getDoShowAR() && (_this$
|
|
40930
|
+
var _this$actSet24;
|
|
40931
|
+
if (this.api.getDoShowAR() && (_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaArReady) return true;
|
|
40902
40932
|
return false;
|
|
40903
40933
|
}
|
|
40904
40934
|
}, {
|
|
40905
40935
|
key: "getEnableUnityRtvKombi",
|
|
40906
40936
|
value: function getEnableUnityRtvKombi() {
|
|
40907
|
-
var _this$
|
|
40937
|
+
var _this$actSet25, _this$actSet26;
|
|
40908
40938
|
// if force rtv disable unity kombi - biohort
|
|
40909
|
-
if ((_this$
|
|
40910
|
-
return ((_this$
|
|
40939
|
+
if ((_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.divaForceRTV) return false;
|
|
40940
|
+
return ((_this$actSet26 = this.actSet()) === null || _this$actSet26 === void 0 ? void 0 : _this$actSet26.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
|
|
40911
40941
|
}
|
|
40912
40942
|
}, {
|
|
40913
40943
|
key: "getShelfPlannerRTV",
|
|
40914
40944
|
value: function getShelfPlannerRTV() {
|
|
40915
|
-
var _this$
|
|
40916
|
-
return (_this$
|
|
40945
|
+
var _this$actSet27;
|
|
40946
|
+
return (_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData.useShelfPlannerRTV;
|
|
40917
40947
|
}
|
|
40918
40948
|
}, {
|
|
40919
40949
|
key: "getBasketData",
|
|
@@ -40954,8 +40984,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40954
40984
|
}, {
|
|
40955
40985
|
key: "getCatalogData",
|
|
40956
40986
|
value: function getCatalogData() {
|
|
40957
|
-
var _this$
|
|
40958
|
-
return (_this$
|
|
40987
|
+
var _this$actSet28;
|
|
40988
|
+
return (_this$actSet28 = this.actSet()) === null || _this$actSet28 === void 0 ? void 0 : _this$actSet28.CatalogData;
|
|
40959
40989
|
}
|
|
40960
40990
|
}, {
|
|
40961
40991
|
key: "ReturnTo",
|
|
@@ -41658,8 +41688,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41658
41688
|
return Object.values(this.sets);
|
|
41659
41689
|
}
|
|
41660
41690
|
|
|
41661
|
-
/**
|
|
41662
|
-
* This function returns the planner mode.
|
|
41691
|
+
/**
|
|
41692
|
+
* This function returns the planner mode.
|
|
41663
41693
|
*/
|
|
41664
41694
|
}, {
|
|
41665
41695
|
key: "getPlannerMode",
|
|
@@ -41777,8 +41807,8 @@ var DockingPoint = /*#__PURE__*/function () {
|
|
|
41777
41807
|
this.layer = layer;
|
|
41778
41808
|
}
|
|
41779
41809
|
|
|
41780
|
-
/**
|
|
41781
|
-
* Creates a clone of the current dockingPoint
|
|
41810
|
+
/**
|
|
41811
|
+
* Creates a clone of the current dockingPoint
|
|
41782
41812
|
*/
|
|
41783
41813
|
return _createClass__default["default"](DockingPoint, [{
|
|
41784
41814
|
key: "clone",
|
|
@@ -41857,10 +41887,10 @@ var DockingPoint = /*#__PURE__*/function () {
|
|
|
41857
41887
|
get: function get() {
|
|
41858
41888
|
return this.dockingPoint.dpFilter;
|
|
41859
41889
|
}
|
|
41860
|
-
/**
|
|
41861
|
-
* This function is called when the dockingPoint is docked to another dockingPoint
|
|
41862
|
-
* @param refDockingPoint The reference dockingpoint, this is docked to
|
|
41863
|
-
* @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
|
|
41864
41894
|
*/
|
|
41865
41895
|
}, {
|
|
41866
41896
|
key: "doDock",
|
|
@@ -41870,8 +41900,8 @@ var DockingPoint = /*#__PURE__*/function () {
|
|
|
41870
41900
|
this.dockingPoint.onElementId = refElementId;
|
|
41871
41901
|
}
|
|
41872
41902
|
|
|
41873
|
-
/**
|
|
41874
|
-
* This function is called when the dockingpoint should be undocked
|
|
41903
|
+
/**
|
|
41904
|
+
* This function is called when the dockingpoint should be undocked
|
|
41875
41905
|
*/
|
|
41876
41906
|
}, {
|
|
41877
41907
|
key: "undock",
|
|
@@ -41881,9 +41911,9 @@ var DockingPoint = /*#__PURE__*/function () {
|
|
|
41881
41911
|
this.dockingPoint.onElementId = undefined;
|
|
41882
41912
|
}
|
|
41883
41913
|
|
|
41884
|
-
/**
|
|
41885
|
-
* This function is used to disable the dp temporarily. It is ignored in the planer
|
|
41886
|
-
* @param doDisable
|
|
41914
|
+
/**
|
|
41915
|
+
* This function is used to disable the dp temporarily. It is ignored in the planer
|
|
41916
|
+
* @param doDisable
|
|
41887
41917
|
*/
|
|
41888
41918
|
}, {
|
|
41889
41919
|
key: "disableDP",
|
|
@@ -42191,24 +42221,24 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42191
42221
|
}
|
|
42192
42222
|
this.updateRequredCells();
|
|
42193
42223
|
}
|
|
42194
|
-
/**
|
|
42195
|
-
* this logic tries to fit in an accessoire on certain index
|
|
42196
|
-
* if gridAllowedOnCells is not undefined it means the accessoire has some certain indexes where it can be placed.
|
|
42197
|
-
* @param size cellsize of the accessoire
|
|
42198
|
-
* @param index place where try to fit
|
|
42199
|
-
* @param gridAllowedOnCells specific rules bounded with a parentCodex
|
|
42200
|
-
* @returns
|
|
42201
|
-
*
|
|
42202
|
-
* type:
|
|
42203
|
-
* "fitsOn" | -> accessoires has space
|
|
42204
|
-
* "fitsOnParentRule" | -> accessoires has space on the specific parent rule
|
|
42205
|
-
* "doesNotFit" | -> accessoires has not space
|
|
42206
|
-
* "notAllowedByParentRule" -> accessoires has not space on the specific parent rule
|
|
42207
|
-
* "fitsOnParentRuleButOriginalNotAllowed" -> accessoires has space somewhere eles but not on the original space
|
|
42208
|
-
*
|
|
42209
|
-
* index?: number -> final index where the accessoire has enough space to be placed
|
|
42210
|
-
* size: number
|
|
42211
|
-
* 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
|
|
42212
42242
|
*/
|
|
42213
42243
|
return _createClass__default["default"](Grid, [{
|
|
42214
42244
|
key: "tryFitOnShelf",
|
|
@@ -42334,12 +42364,12 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42334
42364
|
});
|
|
42335
42365
|
}
|
|
42336
42366
|
|
|
42337
|
-
/**
|
|
42338
|
-
* new accessoire gets placed in the grid
|
|
42339
|
-
* @param index
|
|
42340
|
-
* @param accessoire
|
|
42341
|
-
* @param type
|
|
42342
|
-
* @param onlyPlaceHolder
|
|
42367
|
+
/**
|
|
42368
|
+
* new accessoire gets placed in the grid
|
|
42369
|
+
* @param index
|
|
42370
|
+
* @param accessoire
|
|
42371
|
+
* @param type
|
|
42372
|
+
* @param onlyPlaceHolder
|
|
42343
42373
|
*/
|
|
42344
42374
|
}, {
|
|
42345
42375
|
key: "addAccessoireInCells",
|
|
@@ -42399,9 +42429,9 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42399
42429
|
}
|
|
42400
42430
|
}
|
|
42401
42431
|
|
|
42402
|
-
/**
|
|
42403
|
-
* accessoire gets deleted in the grid
|
|
42404
|
-
* @param index
|
|
42432
|
+
/**
|
|
42433
|
+
* accessoire gets deleted in the grid
|
|
42434
|
+
* @param index
|
|
42405
42435
|
*/
|
|
42406
42436
|
}, {
|
|
42407
42437
|
key: "deleteAccessoireInCells",
|
|
@@ -42640,9 +42670,9 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42640
42670
|
})) return false;
|
|
42641
42671
|
return true;
|
|
42642
42672
|
}
|
|
42643
|
-
/**
|
|
42644
|
-
* here the rules in heightGridCellCountOnRule get checked and controlled if the new rules != the current rule
|
|
42645
|
-
* @returns
|
|
42673
|
+
/**
|
|
42674
|
+
* here the rules in heightGridCellCountOnRule get checked and controlled if the new rules != the current rule
|
|
42675
|
+
* @returns
|
|
42646
42676
|
*/
|
|
42647
42677
|
}, {
|
|
42648
42678
|
key: "onConfigChanged",
|
|
@@ -42668,11 +42698,11 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42668
42698
|
return returnTypes;
|
|
42669
42699
|
}
|
|
42670
42700
|
|
|
42671
|
-
/**
|
|
42672
|
-
* complicated but well testet logic to move accessoires with drag and drop in the grid
|
|
42673
|
-
* @param initialIndex from index
|
|
42674
|
-
* @param finalIndex to index
|
|
42675
|
-
* @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
|
|
42676
42706
|
*/
|
|
42677
42707
|
}, {
|
|
42678
42708
|
key: "moveCell",
|
|
@@ -42811,9 +42841,9 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42811
42841
|
return resetCells ? 'RESETTED_CELLS' : 'SUCCESS';
|
|
42812
42842
|
}
|
|
42813
42843
|
|
|
42814
|
-
/**
|
|
42815
|
-
*
|
|
42816
|
-
* @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
|
|
42817
42847
|
*/
|
|
42818
42848
|
}, {
|
|
42819
42849
|
key: "areCellsStillRequired",
|
|
@@ -42827,9 +42857,9 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42827
42857
|
return false;
|
|
42828
42858
|
}
|
|
42829
42859
|
|
|
42830
|
-
/**
|
|
42831
|
-
* here the heightGridCellRequired gets evaluated and updated in the cells
|
|
42832
|
-
* 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
|
|
42833
42863
|
*/
|
|
42834
42864
|
}, {
|
|
42835
42865
|
key: "updateRequredCells",
|
|
@@ -43056,9 +43086,9 @@ var Grid = /*#__PURE__*/function () {
|
|
|
43056
43086
|
})) || [];
|
|
43057
43087
|
}
|
|
43058
43088
|
|
|
43059
|
-
/**
|
|
43060
|
-
* helperfuntion to get the parentshelfId of an shelfPlanner eg: T-Stück
|
|
43061
|
-
* @returns
|
|
43089
|
+
/**
|
|
43090
|
+
* helperfuntion to get the parentshelfId of an shelfPlanner eg: T-Stück
|
|
43091
|
+
* @returns
|
|
43062
43092
|
*/
|
|
43063
43093
|
}, {
|
|
43064
43094
|
key: "getShelfParentShelfId",
|
|
@@ -59045,10 +59075,10 @@ var ProductHandler = /*#__PURE__*/function () {
|
|
|
59045
59075
|
this.livingArea = livingArea;
|
|
59046
59076
|
this.mainCategory = mainCategory;
|
|
59047
59077
|
this.subCategory = subCategory;
|
|
59048
|
-
/**
|
|
59049
|
-
* Saves the products in the current state
|
|
59050
|
-
* @param basket the basket data for which products get created/loaded
|
|
59051
|
-
* @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
|
|
59052
59082
|
*/
|
|
59053
59083
|
_defineProperty__default["default"](this, "createAndSave", /*#__PURE__*/function () {
|
|
59054
59084
|
var _ref2 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(_ref) {
|
|
@@ -59084,12 +59114,12 @@ var ProductHandler = /*#__PURE__*/function () {
|
|
|
59084
59114
|
return _ref2.apply(this, arguments);
|
|
59085
59115
|
};
|
|
59086
59116
|
}());
|
|
59087
|
-
/**
|
|
59088
|
-
* Saves the products in the current state
|
|
59089
|
-
* @param basket the basket data for which products get created/loaded
|
|
59090
|
-
* @param catalogData the catalog data for this basket
|
|
59091
|
-
* @param catalogServiceUrl the url for the catalog service
|
|
59092
|
-
* @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
|
|
59093
59123
|
*/
|
|
59094
59124
|
_defineProperty__default["default"](this, "loadProducts", /*#__PURE__*/function () {
|
|
59095
59125
|
var _ref4 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(_ref3) {
|
|
@@ -59327,14 +59357,14 @@ var ProductHandler = /*#__PURE__*/function () {
|
|
|
59327
59357
|
return _ref4.apply(this, arguments);
|
|
59328
59358
|
};
|
|
59329
59359
|
}());
|
|
59330
|
-
/**
|
|
59331
|
-
* Saves the products in the current state
|
|
59332
|
-
* @param baseData the basedata of the base product
|
|
59333
|
-
* @param classificationData the classification data of the base product
|
|
59334
|
-
* @param variantData the list of varinat products
|
|
59335
|
-
* @param removedProducts the ids of products that get removed
|
|
59336
|
-
* @param removedMedia the list of media items that get removed
|
|
59337
|
-
* @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
|
|
59338
59368
|
*/
|
|
59339
59369
|
_defineProperty__default["default"](this, "saveData", /*#__PURE__*/function () {
|
|
59340
59370
|
var _ref10 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee3(_ref9) {
|
|
@@ -59428,12 +59458,12 @@ var ProductHandler = /*#__PURE__*/function () {
|
|
|
59428
59458
|
return _createClass__default["default"](ProductHandler, [{
|
|
59429
59459
|
key: "initVariant",
|
|
59430
59460
|
value:
|
|
59431
|
-
/**
|
|
59432
|
-
* Calculates the inital state of one varinat data entry
|
|
59433
|
-
*
|
|
59434
|
-
* @param baseData the inital base data
|
|
59435
|
-
* @param param1 one variant data entry
|
|
59436
|
-
* @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
|
|
59437
59467
|
*/
|
|
59438
59468
|
function initVariant(baseData, baseClassification, cv, product, classificationFields) {
|
|
59439
59469
|
var _cv$VariantDescriptio, _baseData$articles, _classificationFields;
|