thm-p3-configurator 0.0.209 → 0.0.211
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.
|
@@ -481,9 +481,9 @@ const useProductsQuery = orderParameters => {
|
|
|
481
481
|
'uitvoering #2': productsQuery === null || productsQuery === void 0 || (_productsQuery$data13 = productsQuery.data) === null || _productsQuery$data13 === void 0 || (_productsQuery$data13 = _productsQuery$data13.answers) === null || _productsQuery$data13 === void 0 ? void 0 : _productsQuery$data13.execution2
|
|
482
482
|
} : {}), licensePlate ? {
|
|
483
483
|
Geimporteerd: productsQuery !== null && productsQuery !== void 0 && (_productsQuery$data14 = productsQuery.data) !== null && _productsQuery$data14 !== void 0 && (_productsQuery$data14 = _productsQuery$data14.vehicleInfo) !== null && _productsQuery$data14 !== void 0 && (_productsQuery$data14 = _productsQuery$data14.vehicle) !== null && _productsQuery$data14 !== void 0 && _productsQuery$data14.isImported ? 'Ja' : 'Nee',
|
|
484
|
-
'Trekgewicht op kenteken': Boolean(productsQuery === null || productsQuery === void 0 || (_productsQuery$data15 = productsQuery.data) === null || _productsQuery$data15 === void 0 || (_productsQuery$data15 = _productsQuery$data15.vehicleInfo) === null || _productsQuery$data15 === void 0 || (_productsQuery$data15 = _productsQuery$data15.vehicle) === null || _productsQuery$data15 === void 0 ? void 0 : _productsQuery$data15.maxTowingMassBraked) ? 'Ja' : 'Nee'
|
|
485
|
-
bouwjaar: buildYear
|
|
484
|
+
'Trekgewicht op kenteken': Boolean(productsQuery === null || productsQuery === void 0 || (_productsQuery$data15 = productsQuery.data) === null || _productsQuery$data15 === void 0 || (_productsQuery$data15 = _productsQuery$data15.vehicleInfo) === null || _productsQuery$data15 === void 0 || (_productsQuery$data15 = _productsQuery$data15.vehicle) === null || _productsQuery$data15 === void 0 ? void 0 : _productsQuery$data15.maxTowingMassBraked) ? 'Ja' : 'Nee'
|
|
486
485
|
} : {}), {}, {
|
|
486
|
+
bouwjaar: buildYear,
|
|
487
487
|
'Max. Trekgewicht, geremd': productsQuery === null || productsQuery === void 0 || (_productsQuery$data16 = productsQuery.data) === null || _productsQuery$data16 === void 0 || (_productsQuery$data16 = _productsQuery$data16.vehicleInfo) === null || _productsQuery$data16 === void 0 || (_productsQuery$data16 = _productsQuery$data16.vehicle) === null || _productsQuery$data16 === void 0 ? void 0 : _productsQuery$data16.maxTowingMassBraked,
|
|
488
488
|
'Max. Trekgewicht, niet geremd': productsQuery === null || productsQuery === void 0 || (_productsQuery$data17 = productsQuery.data) === null || _productsQuery$data17 === void 0 || (_productsQuery$data17 = _productsQuery$data17.vehicleInfo) === null || _productsQuery$data17 === void 0 || (_productsQuery$data17 = _productsQuery$data17.vehicle) === null || _productsQuery$data17 === void 0 ? void 0 : _productsQuery$data17.maxTowingMassUnbraked,
|
|
489
489
|
kType: productsQuery === null || productsQuery === void 0 || (_productsQuery$data18 = productsQuery.data) === null || _productsQuery$data18 === void 0 || (_productsQuery$data18 = _productsQuery$data18.vehicleInfo) === null || _productsQuery$data18 === void 0 || (_productsQuery$data18 = _productsQuery$data18.model) === null || _productsQuery$data18 === void 0 ? void 0 : _productsQuery$data18.kType,
|
|
@@ -213,9 +213,9 @@ const enrichArticlesWithBrandsAndPrices = exports.enrichArticlesWithBrandsAndPri
|
|
|
213
213
|
}
|
|
214
214
|
const articlesWithBrands = articles.map(article => {
|
|
215
215
|
return _objectSpread(_objectSpread({}, article), {}, {
|
|
216
|
-
brand: ((_ref3, _brandData$
|
|
216
|
+
brand: ((_ref3, _brandData$brandNumbe) => {
|
|
217
217
|
const brandData = brandResponse.data.find(brand => brand.articleNumber === article.articleNumber);
|
|
218
|
-
return (_ref3 = (_brandData$
|
|
218
|
+
return (_ref3 = (_brandData$brandNumbe = brandData === null || brandData === void 0 ? void 0 : brandData.brandNumber) !== null && _brandData$brandNumbe !== void 0 ? _brandData$brandNumbe : brandData === null || brandData === void 0 ? void 0 : brandData.preferredPartBrandNumber) !== null && _ref3 !== void 0 ? _ref3 : _index2.DEFAULT_ARTICLE_BRAND;
|
|
219
219
|
})()
|
|
220
220
|
});
|
|
221
221
|
}).filter(article => article.brand);
|