thm-p3-configurator 0.0.134 → 0.0.136
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/README.md +2 -1
- package/dist/src/shared/__components__/ProductCard/ProductCardSpecifications.js +17 -3
- package/dist/src/shared/__components__/ProductCard/index.js +2 -1
- package/dist/src/shared/__constants__/index.js +2 -1
- package/dist/src/shared/__containers__/ProductsCartOverview.js +2 -1
- package/dist/src/shared/__containers__/QuestionsForm.js +1 -2
- package/dist/src/shared/__pages__/LicensePlatePage.js +1 -1
- package/dist/src/shared/__pages__/ManualSelectionPage.js +1 -1
- package/dist/src/shared/__pages__/internal/InternalLicensePlatePage.js +1 -1
- package/dist/src/shared/__pages__/internal/InternalManualSelectionPage.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,6 +15,7 @@ To set up and test internal pages locally:
|
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
17
|
```
|
|
18
|
+
- Make sure to set "INTERNAL=true" and "NODE_ENV=development" in the .env file
|
|
18
19
|
- Add this import at the top of the file:
|
|
19
20
|
```javascript
|
|
20
21
|
import TEST_ONLY_INTERNAL_ROUTES from './__pages__/internal/__TEST_ONLY_INTERNAL_ROUTES';
|
|
@@ -33,7 +34,7 @@ To set up and test internal pages locally:
|
|
|
33
34
|
- Paste the copied value as `__authSession`
|
|
34
35
|
- Refresh the page
|
|
35
36
|
|
|
36
|
-
You should now be able to access the internal pages locally, you can test this by navigating to one of the internal pages in your code editor, change some text and see if it updates.
|
|
37
|
+
You should now be able to access the internal pages locally, you can test this by navigating to one of the internal pages in your code editor (`src/shared/__pages__/internal`), change some text and see if it updates.
|
|
37
38
|
|
|
38
39
|
3. Reauthenticating (Optional)
|
|
39
40
|
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.array.includes.js");
|
|
4
|
+
require("core-js/modules/es.string.includes.js");
|
|
5
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
6
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
3
7
|
require("core-js/modules/esnext.iterator.map.js");
|
|
4
8
|
Object.defineProperty(exports, "__esModule", {
|
|
5
9
|
value: true
|
|
6
10
|
});
|
|
7
11
|
exports.default = void 0;
|
|
12
|
+
require("core-js/modules/es.array.includes.js");
|
|
13
|
+
require("core-js/modules/es.string.includes.js");
|
|
14
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
15
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
8
16
|
require("core-js/modules/esnext.iterator.map.js");
|
|
9
17
|
var _react = _interopRequireDefault(require("react"));
|
|
10
18
|
var _helpers__ = require("../../__helpers__");
|
|
@@ -16,18 +24,24 @@ function _interopRequireDefault(e) {
|
|
|
16
24
|
const ProductCardSpecifications = _ref => {
|
|
17
25
|
let {
|
|
18
26
|
specifications = [],
|
|
19
|
-
className = ''
|
|
27
|
+
className = '',
|
|
28
|
+
excludeKeys = []
|
|
20
29
|
} = _ref;
|
|
21
30
|
if (!specifications.length) {
|
|
22
31
|
return null;
|
|
23
32
|
}
|
|
24
33
|
return /*#__PURE__*/_react.default.createElement("ul", {
|
|
25
34
|
className: (0, _helpers__.withStyle)("col-12 col-md-6 list-unstyled product-critera__text mt-2 mb-2 ".concat(className))
|
|
26
|
-
}, specifications.
|
|
35
|
+
}, specifications.filter(_ref2 => {
|
|
36
|
+
let {
|
|
37
|
+
key
|
|
38
|
+
} = _ref2;
|
|
39
|
+
return !excludeKeys.includes(key);
|
|
40
|
+
}).map(_ref3 => {
|
|
27
41
|
let {
|
|
28
42
|
key,
|
|
29
43
|
value
|
|
30
|
-
} =
|
|
44
|
+
} = _ref3;
|
|
31
45
|
return /*#__PURE__*/_react.default.createElement("li", {
|
|
32
46
|
key: key + value,
|
|
33
47
|
className: (0, _helpers__.withStyle)('d-flex justify-content-between card-text__criterea')
|
|
@@ -140,7 +140,8 @@ const ProductCard = _ref => {
|
|
|
140
140
|
key: (productFieldLabels === null || productFieldLabels === void 0 ? void 0 : productFieldLabels[key]) || key,
|
|
141
141
|
value
|
|
142
142
|
};
|
|
143
|
-
})
|
|
143
|
+
}),
|
|
144
|
+
excludeKeys: ['brand']
|
|
144
145
|
}), /*#__PURE__*/_react.default.createElement(_ProductCardDescription.default, {
|
|
145
146
|
description: productDescription
|
|
146
147
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.VESTIGING_TYPE_ID = exports.VEHICLE_SINGLE_ORDER_OWNERSHIP_TYPE = exports.VEHICLE_OWNERSHIP_TYPE = exports.USER_GEOLOCATION_KEY = exports.TMG_ORGANIZATION_TYPE = exports.StockStatus = exports.PRODUCT_CATEGORIES = exports.PRIVATE_SINGLE_ORDER_SESSION_KEY = exports.ORDER_SESSION_KEY = exports.NAVIGATION_STEPS_INTERNAL = exports.NAVIGATION_STEPS_EXTERNAL = exports.NAVIGATION_BUTTONS = exports.MOUSE_EXIT_INTENT_THROTTLE = exports.MOUSE_EXIT_INTENT_OFFSET = exports.LOCATION_TYPE = exports.LOCATION_CHANGE_BUTTON_LABEL = exports.LOCALE = exports.FORM_ERROR_MESSAGES = exports.DOSSIER_TYPES = exports.DISCOUNT_TYPES = exports.DEFAULT_MAP_LONGITUDE = exports.DEFAULT_MAP_LATITUDE = exports.DEFAULT_ARTICLE_BRAND = exports.DAY_NAMES = exports.CONFIGURATOR_FORMULAS = exports.BOARD_COMPUTER_DISABLED_KEY = exports.AUTH_SESSION_KEY = exports.ARTICLES_SYSTEM_FIELDS = exports.API_ERROR_CODES = exports.ANWB_DISCOUNT_CODE = exports.ALL_EXPERIMENTS = exports.ACTIVE_VARIANTS = void 0;
|
|
6
|
+
exports.VESTIGING_TYPE_ID = exports.VEHICLE_SINGLE_ORDER_OWNERSHIP_TYPE = exports.VEHICLE_OWNERSHIP_TYPE = exports.VEHICLE_CODING_SUBGROUP_NAME = exports.USER_GEOLOCATION_KEY = exports.TMG_ORGANIZATION_TYPE = exports.StockStatus = exports.PRODUCT_CATEGORIES = exports.PRIVATE_SINGLE_ORDER_SESSION_KEY = exports.ORDER_SESSION_KEY = exports.NAVIGATION_STEPS_INTERNAL = exports.NAVIGATION_STEPS_EXTERNAL = exports.NAVIGATION_BUTTONS = exports.MOUSE_EXIT_INTENT_THROTTLE = exports.MOUSE_EXIT_INTENT_OFFSET = exports.LOCATION_TYPE = exports.LOCATION_CHANGE_BUTTON_LABEL = exports.LOCALE = exports.FORM_ERROR_MESSAGES = exports.DOSSIER_TYPES = exports.DISCOUNT_TYPES = exports.DEFAULT_MAP_LONGITUDE = exports.DEFAULT_MAP_LATITUDE = exports.DEFAULT_ARTICLE_BRAND = exports.DAY_NAMES = exports.CONFIGURATOR_FORMULAS = exports.BOARD_COMPUTER_DISABLED_KEY = exports.AUTH_SESSION_KEY = exports.ARTICLES_SYSTEM_FIELDS = exports.API_ERROR_CODES = exports.ANWB_DISCOUNT_CODE = exports.ALL_EXPERIMENTS = exports.ACTIVE_VARIANTS = void 0;
|
|
7
7
|
const DOSSIER_TYPES = exports.DOSSIER_TYPES = {
|
|
8
8
|
Quotation: 'quotation',
|
|
9
9
|
AppointmentRequest: 'appointment-request',
|
|
@@ -27,6 +27,7 @@ const DAY_NAMES = exports.DAY_NAMES = {
|
|
|
27
27
|
saturday: 'Zaterdag',
|
|
28
28
|
sunday: 'Zondag'
|
|
29
29
|
};
|
|
30
|
+
const VEHICLE_CODING_SUBGROUP_NAME = exports.VEHICLE_CODING_SUBGROUP_NAME = 'Voertuigcodering trekhaak';
|
|
30
31
|
const VESTIGING_TYPE_ID = exports.VESTIGING_TYPE_ID = 'kyDouClQsfmXWWloLdwzG';
|
|
31
32
|
const NAVIGATION_STEPS_INTERNAL = exports.NAVIGATION_STEPS_INTERNAL = [{
|
|
32
33
|
to: '/configurator/trekhaakpakket',
|
|
@@ -46,6 +46,7 @@ var _ProductTableTotal = _interopRequireDefault(require("../__components__/Produ
|
|
|
46
46
|
var _FullPageSpinner = _interopRequireDefault(require("../__components__/Spinners/FullPageSpinner"));
|
|
47
47
|
var _FormulaContext = require("../__context__/FormulaContext");
|
|
48
48
|
var _OrderSessionContext = require("../__context__/OrderSessionContext");
|
|
49
|
+
var _constants__ = require("../__constants__");
|
|
49
50
|
var _helpers__ = require("../__helpers__");
|
|
50
51
|
var _image = require("../__helpers__/image");
|
|
51
52
|
var _product = require("../__helpers__/product");
|
|
@@ -315,7 +316,7 @@ const ProductCartTable = () => {
|
|
|
315
316
|
text: (0, _helpers__.formatPrice)(salesPrice),
|
|
316
317
|
className: 'cart__table-price text-end'
|
|
317
318
|
}] : [{}, {}, {
|
|
318
|
-
text: APP_CONFIG.internal && salesPrice > 0 ? (0, _helpers__.formatPrice)(salesPrice) : '',
|
|
319
|
+
text: APP_CONFIG.internal && salesPrice > 0 ? (0, _helpers__.formatPrice)(salesPrice) : product.subgroupName === _constants__.VEHICLE_CODING_SUBGROUP_NAME ? (0, _helpers__.formatPrice)(salesPrice) : '',
|
|
319
320
|
className: 'cart__table-price text-end'
|
|
320
321
|
}])]
|
|
321
322
|
});
|
|
@@ -313,8 +313,7 @@ const QuestionsForm = _ref => {
|
|
|
313
313
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
314
314
|
className: (0, _helpers__.withStyle)('card-body__loading')
|
|
315
315
|
}, /*#__PURE__*/_react.default.createElement(_TextSpinner.default, {
|
|
316
|
-
title: 'Zoeken naar mogelijke opties'
|
|
317
|
-
description: 'Dit kan ongeveer 15 seconden duren'
|
|
316
|
+
title: 'Zoeken naar mogelijke opties'
|
|
318
317
|
}));
|
|
319
318
|
}
|
|
320
319
|
if (!(durationOptions !== null && durationOptions !== void 0 && durationOptions.length) && !(execution1Options !== null && execution1Options !== void 0 && execution1Options.length) && !(execution2Options !== null && execution2Options !== void 0 && execution2Options.length) && !(execution2AnswerOptions !== null && execution2AnswerOptions !== void 0 && execution2AnswerOptions.length) && !(execution1AnswerOptions !== null && execution1AnswerOptions !== void 0 && execution1AnswerOptions.length) && !(durationQuestion !== null && durationQuestion !== void 0 && durationQuestion.length)) {
|
|
@@ -161,7 +161,7 @@ const LicensePlatePage = () => {
|
|
|
161
161
|
}, /*#__PURE__*/_react.default.createElement(_Card.default, {
|
|
162
162
|
isCentered: true,
|
|
163
163
|
isScrollable: true,
|
|
164
|
-
title: '
|
|
164
|
+
title: 'Wij zoeken naar de beste oplossing'
|
|
165
165
|
}, widgetOrEntityId && isLoadingBranchById && /*#__PURE__*/_react.default.createElement(_TextSpinner.default, null), Steps[activeStep], /*#__PURE__*/_react.default.createElement("div", {
|
|
166
166
|
className: (0, _helpers__.withStyle)('align-items-center justify-content-center text-center mt-2')
|
|
167
167
|
}, /*#__PURE__*/_react.default.createElement(_FormSteps.default, {
|
|
@@ -147,7 +147,7 @@ const ManualSelectionPage = () => {
|
|
|
147
147
|
isCentered: true,
|
|
148
148
|
isWide: activeStep === 0,
|
|
149
149
|
isScrollable: false,
|
|
150
|
-
title: '
|
|
150
|
+
title: 'Wij zoeken naar de beste oplossing'
|
|
151
151
|
}, widgetOrEntityId && isLoadingBranchById && /*#__PURE__*/_react.default.createElement(_TextSpinner.default, null), Steps[activeStep], /*#__PURE__*/_react.default.createElement("div", {
|
|
152
152
|
className: (0, _helpers__.withStyle)('align-items-center justify-content-center text-center mt-2')
|
|
153
153
|
}, /*#__PURE__*/_react.default.createElement(_FormSteps.default, {
|
|
@@ -135,7 +135,7 @@ const InternalLicensePlatePage = () => {
|
|
|
135
135
|
}, /*#__PURE__*/_react.default.createElement(_Card.default, {
|
|
136
136
|
isCentered: true,
|
|
137
137
|
isScrollable: true,
|
|
138
|
-
title: '
|
|
138
|
+
title: 'Wij zoeken naar de beste oplossing'
|
|
139
139
|
}, Steps[activeStep], /*#__PURE__*/_react.default.createElement("div", {
|
|
140
140
|
className: (0, _helpers__.withStyle)('align-items-center justify-content-center text-center mt-2')
|
|
141
141
|
}, /*#__PURE__*/_react.default.createElement(_FormSteps.default, {
|
|
@@ -147,7 +147,7 @@ const InternalManualSelectionPage = _ref2 => {
|
|
|
147
147
|
isCentered: true,
|
|
148
148
|
isWide: activeStep === 0,
|
|
149
149
|
isScrollable: false,
|
|
150
|
-
title: '
|
|
150
|
+
title: 'Wij zoeken naar de beste oplossing'
|
|
151
151
|
}, Steps[activeStep], /*#__PURE__*/_react.default.createElement("div", {
|
|
152
152
|
className: (0, _helpers__.withStyle)('align-items-center justify-content-center text-center mt-2')
|
|
153
153
|
}, /*#__PURE__*/_react.default.createElement(_FormSteps.default, {
|