thm-p3-configurator 0.0.48 → 0.0.50

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.
@@ -273,7 +273,7 @@ const useSingleOrderArticles = exports.useSingleOrderArticles = function useSing
273
273
  totalCount
274
274
  } = await (0, _singleOrderArticles.fetchArticlesByArticleNumbers)([articleNumber]));
275
275
  }
276
- if (totalCount === 0) {
276
+ if (totalCount === 0 || !articles.length) {
277
277
  return {
278
278
  articles: [],
279
279
  totalArticles: 0
@@ -101,6 +101,7 @@ const DropdownInput = _ref => {
101
101
  noOptionsMessage: _noOptionsMessage = 'Geen opties beschikbaar',
102
102
  placeholder = 'Maak een keuze',
103
103
  onChange,
104
+ className,
104
105
  form,
105
106
  initialValue = '',
106
107
  errorMessage = '',
@@ -117,7 +118,7 @@ const DropdownInput = _ref => {
117
118
  onChange(option);
118
119
  };
119
120
  return /*#__PURE__*/_react.default.createElement("div", {
120
- className: (0, _helpers__.withStyle)("form-group form-select__group ".concat(errorMessage !== null && errorMessage !== void 0 && errorMessage.length ? 'is-invalid' : ''))
121
+ className: (0, _helpers__.withStyle)("form-group form-select__group ".concat(errorMessage !== null && errorMessage !== void 0 && errorMessage.length ? 'is-invalid' : '', " ").concat(className))
121
122
  }, /*#__PURE__*/_react.default.createElement("label", {
122
123
  htmlFor: name,
123
124
  className: (0, _helpers__.withStyle)('form-label')
@@ -52,7 +52,8 @@ const TextInput = _ref => {
52
52
  isRequired = true,
53
53
  form,
54
54
  label,
55
- errorMessage = ''
55
+ errorMessage = '',
56
+ className = ''
56
57
  } = _ref;
57
58
  const [value, setValue] = (0, _react.useState)(initialValue);
58
59
  (0, _react.useEffect)(() => {
@@ -65,7 +66,7 @@ const TextInput = _ref => {
65
66
  onChange(newValue);
66
67
  };
67
68
  return /*#__PURE__*/_react.default.createElement("div", {
68
- className: (0, _helpers__.withStyle)('form-group')
69
+ className: (0, _helpers__.withStyle)("form-group ".concat(className))
69
70
  }, label && /*#__PURE__*/_react.default.createElement("label", {
70
71
  htmlFor: name,
71
72
  className: (0, _helpers__.withStyle)('form-label')
@@ -81,7 +81,7 @@ const ProductSpecifications = _ref3 => {
81
81
  };
82
82
  const ProductActions = _ref4 => {
83
83
  let {
84
- isDisabled,
84
+ isOutOfStock,
85
85
  quantity,
86
86
  productId,
87
87
  handleQuantityChange,
@@ -92,11 +92,11 @@ const ProductActions = _ref4 => {
92
92
  className: (0, _helpers__.withStyle)('d-flex justify-content-end')
93
93
  }, /*#__PURE__*/_react.default.createElement("div", {
94
94
  className: (0, _helpers__.withStyle)('d-flex flex-column align-items-end')
95
- }, isDisabled && /*#__PURE__*/_react.default.createElement("div", {
95
+ }, isOutOfStock && /*#__PURE__*/_react.default.createElement("div", {
96
96
  className: (0, _helpers__.withStyle)('text-danger mb-1')
97
- }, "Out of stock"), /*#__PURE__*/_react.default.createElement("div", {
97
+ }, "Niet op voorraad"), /*#__PURE__*/_react.default.createElement("div", {
98
98
  className: (0, _helpers__.withStyle)('d-flex align-items-center')
99
- }, !isDisabled && /*#__PURE__*/_react.default.createElement(_NumericInput.default, {
99
+ }, /*#__PURE__*/_react.default.createElement(_NumericInput.default, {
100
100
  className: (0, _helpers__.withStyle)('me-2 rounded'),
101
101
  width: "100px",
102
102
  height: "55px",
@@ -105,7 +105,6 @@ const ProductActions = _ref4 => {
105
105
  buttonTransformY: 40
106
106
  }), quantity === 0 ? /*#__PURE__*/_react.default.createElement(_PrimaryButton.default, {
107
107
  onClick: () => handleSelected(productId, quantity + 1),
108
- isDisabled: isDisabled,
109
108
  label: "Toevoegen"
110
109
  }) : /*#__PURE__*/_react.default.createElement(_OutlinedButton.default, {
111
110
  onClick: () => removeFromCart(productId),
@@ -116,7 +115,7 @@ const SingleOrderProductCard = _ref5 => {
116
115
  let {
117
116
  productId,
118
117
  isSelected,
119
- isDisabled,
118
+ isOutOfStock,
120
119
  handleSelected,
121
120
  productImage,
122
121
  productTitle,
@@ -129,8 +128,7 @@ const SingleOrderProductCard = _ref5 => {
129
128
  } = _ref5;
130
129
  return /*#__PURE__*/_react.default.createElement("div", {
131
130
  key: productId + "-".concat(Date.now()),
132
- className: (0, _helpers__.withStyle)("card card__horizontal card__link ".concat(isSelected ? 'active' : '', " container-fluid p-0 my-3")),
133
- disabled: isDisabled
131
+ className: (0, _helpers__.withStyle)("card card__horizontal card__link ".concat(isSelected ? 'active' : '', " container-fluid p-0 my-3"))
134
132
  }, /*#__PURE__*/_react.default.createElement("div", {
135
133
  className: (0, _helpers__.withStyle)('row g-0')
136
134
  }, /*#__PURE__*/_react.default.createElement(ProductImage, {
@@ -148,7 +146,7 @@ const SingleOrderProductCard = _ref5 => {
148
146
  }), /*#__PURE__*/_react.default.createElement(ProductSpecifications, {
149
147
  specifications: productSpecifications
150
148
  })), /*#__PURE__*/_react.default.createElement(ProductActions, {
151
- isDisabled: isDisabled,
149
+ isOutOfStock: isOutOfStock,
152
150
  quantity: quantity,
153
151
  productId: productId,
154
152
  handleQuantityChange: handleQuantityChange,
@@ -26,11 +26,11 @@ var _queries = require("../../__api__/queries");
26
26
  var _constants__ = require("../../__constants__");
27
27
  var _OrderSessionContext = require("../../__context__/OrderSessionContext");
28
28
  var _helpers__ = require("../../__helpers__");
29
- var _LinkButton = _interopRequireDefault(require("../Buttons/LinkButton"));
30
29
  var _LocalStorageWorker = require("../../__services__/LocalStorageWorker");
30
+ var _LinkButton = _interopRequireDefault(require("../Buttons/LinkButton"));
31
31
  var _CardWide = _interopRequireDefault(require("../Cards/CardWide"));
32
- var _TextInput = _interopRequireDefault(require("../Form/TextInput"));
33
32
  var _DropdownInput = _interopRequireDefault(require("../Form/DropdownInput"));
33
+ var _TextInput = _interopRequireDefault(require("../Form/TextInput"));
34
34
  function _interopRequireDefault(e) {
35
35
  return e && e.__esModule ? e : {
36
36
  default: e
@@ -111,11 +111,7 @@ const customerDetailsFormSchema = (0, _yup.object)({
111
111
  infix: (0, _yup.string)().nullable(),
112
112
  lastName: (0, _yup.string)().required(_constants__.FORM_ERROR_MESSAGES.required),
113
113
  email: (0, _yup.string)().email(_constants__.FORM_ERROR_MESSAGES.email).required(_constants__.FORM_ERROR_MESSAGES.required),
114
- phoneNumber: (0, _yup.string)().required(_constants__.FORM_ERROR_MESSAGES.required),
115
- zipCode: (0, _yup.string)().required(_constants__.FORM_ERROR_MESSAGES.required),
116
- houseNumber: (0, _yup.string)().required(_constants__.FORM_ERROR_MESSAGES.required),
117
- streetName: (0, _yup.string)().required(_constants__.FORM_ERROR_MESSAGES.required),
118
- city: (0, _yup.string)().required(_constants__.FORM_ERROR_MESSAGES.required)
114
+ phoneNumber: (0, _yup.string)().required(_constants__.FORM_ERROR_MESSAGES.required)
119
115
  });
120
116
  const InternalCustomerDetailsForm = (_ref, ref) => {
121
117
  var _branchTypes$byId$aut, _authSession$branch;
@@ -160,24 +156,6 @@ const InternalCustomerDetailsForm = (_ref, ref) => {
160
156
  phoneNumber: branchById === null || branchById === void 0 ? void 0 : branchById.phone
161
157
  }
162
158
  });
163
- dispatch({
164
- type: _OrderSessionContext.orderSessionActions.SET_CUSTOMER_ZIP_CODE,
165
- payload: {
166
- zipCode: branchById === null || branchById === void 0 ? void 0 : branchById.postalCode
167
- }
168
- });
169
- dispatch({
170
- type: _OrderSessionContext.orderSessionActions.SET_CUSTOMER_STREET_NAME,
171
- payload: {
172
- streetName: branchById === null || branchById === void 0 ? void 0 : branchById.street
173
- }
174
- });
175
- dispatch({
176
- type: _OrderSessionContext.orderSessionActions.SET_CUSTOMER_CITY,
177
- payload: {
178
- city: branchById === null || branchById === void 0 ? void 0 : branchById.city
179
- }
180
- });
181
159
  };
182
160
  const validateForm = async () => {
183
161
  try {
@@ -213,9 +191,8 @@ const InternalCustomerDetailsForm = (_ref, ref) => {
213
191
  label: 'Vestiginggegevens invullen?',
214
192
  onClick: handleAutofillButtonClicked,
215
193
  isDisabled: !branchById
216
- })), /*#__PURE__*/_react.default.createElement("div", {
217
- className: (0, _helpers__.withStyle)('col-12 col-md-6 mb-2')
218
- }, /*#__PURE__*/_react.default.createElement(_DropdownInput.default, {
194
+ })), /*#__PURE__*/_react.default.createElement(_DropdownInput.default, {
195
+ className: 'col-12 col-md-6',
219
196
  options: marketingChannels === null || marketingChannels === void 0 ? void 0 : marketingChannels.map(channel => ({
220
197
  label: channel === null || channel === void 0 ? void 0 : channel.title,
221
198
  value: channel
@@ -251,6 +228,7 @@ const InternalCustomerDetailsForm = (_ref, ref) => {
251
228
  });
252
229
  }
253
230
  }), /*#__PURE__*/_react.default.createElement(_TextInput.default, {
231
+ className: 'col-12 col-md-6',
254
232
  placeholder: "",
255
233
  initialValue: customer.firstName,
256
234
  name: "firstName",
@@ -265,6 +243,7 @@ const InternalCustomerDetailsForm = (_ref, ref) => {
265
243
  label: "Voornaam:",
266
244
  errorMessage: errors === null || errors === void 0 ? void 0 : errors['firstName']
267
245
  }), /*#__PURE__*/_react.default.createElement(_TextInput.default, {
246
+ className: 'col-12 col-md-6',
268
247
  placeholder: "",
269
248
  initialValue: customer.infix,
270
249
  name: "infix",
@@ -279,6 +258,7 @@ const InternalCustomerDetailsForm = (_ref, ref) => {
279
258
  label: "Tussenvoegsel:",
280
259
  errorMessage: errors === null || errors === void 0 ? void 0 : errors['infix']
281
260
  }), /*#__PURE__*/_react.default.createElement(_TextInput.default, {
261
+ className: 'col-12 col-md-6',
282
262
  placeholder: "",
283
263
  initialValue: customer.lastName,
284
264
  name: "lastName",
@@ -293,6 +273,7 @@ const InternalCustomerDetailsForm = (_ref, ref) => {
293
273
  label: "Achternaam:",
294
274
  errorMessage: errors === null || errors === void 0 ? void 0 : errors['lastName']
295
275
  }), /*#__PURE__*/_react.default.createElement(_TextInput.default, {
276
+ className: 'col-12 col-md-6',
296
277
  placeholder: "",
297
278
  initialValue: customer.email,
298
279
  name: "email",
@@ -306,9 +287,8 @@ const InternalCustomerDetailsForm = (_ref, ref) => {
306
287
  form: form,
307
288
  label: "E-mailadres:",
308
289
  errorMessage: errors === null || errors === void 0 ? void 0 : errors['email']
309
- })), /*#__PURE__*/_react.default.createElement("div", {
310
- className: (0, _helpers__.withStyle)('col-12 col-md-6')
311
- }, /*#__PURE__*/_react.default.createElement(_TextInput.default, {
290
+ }), /*#__PURE__*/_react.default.createElement(_TextInput.default, {
291
+ className: 'col-12 col-md-6',
312
292
  placeholder: "",
313
293
  initialValue: customer.phoneNumber,
314
294
  name: "phoneNumber",
@@ -322,62 +302,6 @@ const InternalCustomerDetailsForm = (_ref, ref) => {
322
302
  isRequired: true,
323
303
  label: "Telefoonnummer:",
324
304
  errorMessage: errors === null || errors === void 0 ? void 0 : errors['phoneNumber']
325
- }), /*#__PURE__*/_react.default.createElement(_TextInput.default, {
326
- placeholder: "",
327
- initialValue: customer.zipCode,
328
- name: "zipCode",
329
- onChange: value => dispatch({
330
- type: _OrderSessionContext.orderSessionActions.SET_CUSTOMER_ZIP_CODE,
331
- payload: {
332
- zipCode: value
333
- }
334
- }),
335
- form: form,
336
- isRequired: true,
337
- label: "Postcode:",
338
- errorMessage: errors === null || errors === void 0 ? void 0 : errors['zipCode']
339
- }), /*#__PURE__*/_react.default.createElement(_TextInput.default, {
340
- placeholder: "",
341
- initialValue: customer.houseNumber,
342
- name: "houseNumber",
343
- onChange: value => dispatch({
344
- type: _OrderSessionContext.orderSessionActions.SET_CUSTOMER_HOUSE_NUMBER,
345
- payload: {
346
- houseNumber: value
347
- }
348
- }),
349
- form: form,
350
- isRequired: true,
351
- label: "Huisnummer:",
352
- errorMessage: errors === null || errors === void 0 ? void 0 : errors['houseNumber']
353
- }), /*#__PURE__*/_react.default.createElement(_TextInput.default, {
354
- placeholder: "",
355
- initialValue: customer.streetName,
356
- name: "streetName",
357
- onChange: value => dispatch({
358
- type: _OrderSessionContext.orderSessionActions.SET_CUSTOMER_STREET_NAME,
359
- payload: {
360
- streetName: value
361
- }
362
- }),
363
- form: form,
364
- isRequired: true,
365
- label: "Straat:",
366
- errorMessage: errors === null || errors === void 0 ? void 0 : errors['streetName']
367
- }), /*#__PURE__*/_react.default.createElement(_TextInput.default, {
368
- placeholder: "",
369
- initialValue: customer.city,
370
- name: "city",
371
- onChange: value => dispatch({
372
- type: _OrderSessionContext.orderSessionActions.SET_CUSTOMER_CITY,
373
- payload: {
374
- city: value
375
- }
376
- }),
377
- form: form,
378
- isRequired: true,
379
- label: "Stad:",
380
- errorMessage: errors === null || errors === void 0 ? void 0 : errors['city']
381
- })))));
305
+ }))));
382
306
  };
383
307
  var _default = exports.default = /*#__PURE__*/(0, _react.forwardRef)(InternalCustomerDetailsForm);
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- 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.LOCALE = exports.FORM_ERROR_MESSAGES = exports.DOSSIER_TYPES = exports.DISCOUNT_TYPES = exports.DEFAULT_MAP_LONGITUDE = exports.DEFAULT_MAP_LATITUDE = exports.DEFAULT_ARTICLE_BRAND = 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.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.LOCALE = exports.FORM_ERROR_MESSAGES = exports.DOSSIER_TYPES = exports.DISCOUNT_TYPES = exports.DEFAULT_MAP_LONGITUDE = exports.DEFAULT_MAP_LATITUDE = exports.DEFAULT_ARTICLE_BRAND = 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',
@@ -130,6 +130,7 @@ const CONFIGURATOR_FORMULAS = exports.CONFIGURATOR_FORMULAS = {
130
130
  THC: 'THC'
131
131
  };
132
132
  const TMG_ORGANIZATION_TYPE = exports.TMG_ORGANIZATION_TYPE = 'TowMotive Group';
133
+ const LOCATION_TYPE = exports.LOCATION_TYPE = 'Vestiging';
133
134
  const ANWB_DISCOUNT_CODE = exports.ANWB_DISCOUNT_CODE = 'ANWBTHC25';
134
135
  const AUTH_SESSION_KEY = exports.AUTH_SESSION_KEY = '__authSession';
135
136
  const VEHICLE_OWNERSHIP_TYPE = exports.VEHICLE_OWNERSHIP_TYPE = {
@@ -64,6 +64,10 @@ const InternalBranchSelectorModal = () => {
64
64
  var _branchTypes$byId$aut, _authSession$branch;
65
65
  return (branchTypes === null || branchTypes === void 0 || (_branchTypes$byId$aut = branchTypes.byId[authSession === null || authSession === void 0 || (_authSession$branch = authSession.branch) === null || _authSession$branch === void 0 || (_authSession$branch = _authSession$branch.organisatietype) === null || _authSession$branch === void 0 ? void 0 : _authSession$branch[0]]) === null || _branchTypes$byId$aut === void 0 ? void 0 : _branchTypes$byId$aut.title) === _constants__.TMG_ORGANIZATION_TYPE;
66
66
  }, [branchTypes, authSession]);
67
+ const isLocation = _react.default.useMemo(() => {
68
+ var _branchTypes$byId$aut2, _authSession$branch2;
69
+ return (branchTypes === null || branchTypes === void 0 || (_branchTypes$byId$aut2 = branchTypes.byId[authSession === null || authSession === void 0 || (_authSession$branch2 = authSession.branch) === null || _authSession$branch2 === void 0 || (_authSession$branch2 = _authSession$branch2.organisatietype) === null || _authSession$branch2 === void 0 ? void 0 : _authSession$branch2[0]]) === null || _branchTypes$byId$aut2 === void 0 ? void 0 : _branchTypes$byId$aut2.title) === _constants__.LOCATION_TYPE;
70
+ }, [branchTypes, authSession]);
67
71
  const {
68
72
  myBranches,
69
73
  isLoadingMyBranches
@@ -87,7 +91,7 @@ const InternalBranchSelectorModal = () => {
87
91
  }, dispatch] = (0, _OrderSessionContext.useOrderSession)();
88
92
  (0, _react.useEffect)(() => {
89
93
  var _branches$;
90
- const shouldAutoSelect = !isSingleOrderPage && !existingDossierId && !isTMGOrganization && (_branches === null || _branches === void 0 ? void 0 : _branches.length) === 1 && !selectedBranch;
94
+ const shouldAutoSelect = !isSingleOrderPage && !isLocation && !existingDossierId && !isTMGOrganization && (_branches === null || _branches === void 0 ? void 0 : _branches.length) === 1 && !selectedBranch;
91
95
  if (!shouldAutoSelect) return;
92
96
  dispatch({
93
97
  type: _OrderSessionContext.orderSessionActions.SET_SELECTED_BRANCH,
@@ -95,7 +99,18 @@ const InternalBranchSelectorModal = () => {
95
99
  branchId: (_branches$ = _branches[0]) === null || _branches$ === void 0 ? void 0 : _branches$.entityId
96
100
  }
97
101
  });
98
- }, [selectedBranch, branchTypes, authSession, existingDossierId, isSingleOrderPage]);
102
+ }, [selectedBranch, branchTypes, authSession, isLocation, existingDossierId, isSingleOrderPage]);
103
+ (0, _react.useEffect)(() => {
104
+ if (isLocation && !selectedBranch) {
105
+ var _authSession$branch3;
106
+ dispatch({
107
+ type: _OrderSessionContext.orderSessionActions.SET_SELECTED_BRANCH,
108
+ payload: {
109
+ branchId: authSession === null || authSession === void 0 || (_authSession$branch3 = authSession.branch) === null || _authSession$branch3 === void 0 ? void 0 : _authSession$branch3.entityId
110
+ }
111
+ });
112
+ }
113
+ }, [dispatch, isLocation, authSession, selectedBranch]);
99
114
  const handlePrimaryButtonClicked = () => {
100
115
  dispatch({
101
116
  type: _OrderSessionContext.orderSessionActions.SET_SELECTED_BRANCH,
@@ -73,13 +73,13 @@ function InternalSingleOrderFilters(_ref) {
73
73
  resetFilters();
74
74
  };
75
75
  (0, _react.useEffect)(() => {
76
- onFilterChange('articleType', selectedArticleType);
76
+ onFilterChange('type', selectedArticleType);
77
77
  }, [selectedArticleType]);
78
78
  (0, _react.useEffect)(() => {
79
- onFilterChange('articleGroup', selectedArticleGroup);
79
+ onFilterChange('group', selectedArticleGroup);
80
80
  }, [selectedArticleGroup]);
81
81
  (0, _react.useEffect)(() => {
82
- onFilterChange('articleSubGroup', selectedArticleSubGroup);
82
+ onFilterChange('subgroup', selectedArticleSubGroup);
83
83
  }, [selectedArticleSubGroup]);
84
84
  (0, _react.useEffect)(() => {
85
85
  onFilterChange('articleNumber', selectedArticleNumber);
@@ -91,7 +91,7 @@ const InternalSingleOrderProductOverview = _ref => {
91
91
  licensePlate,
92
92
  model,
93
93
  selectedBranch
94
- }, dispatch] = (0, _OrderSessionContext.useOrderSession)();
94
+ }] = (0, _OrderSessionContext.useOrderSession)();
95
95
  const formula = (0, _FormulaContext.useFormula)();
96
96
  const mergedFilters = _objectSpread(_objectSpread({}, filters), {}, {
97
97
  licensePlate,
@@ -117,7 +117,7 @@ const InternalSingleOrderProductOverview = _ref => {
117
117
  productId: article.articleNumber,
118
118
  quantity: (_cart$find$quantity = (_cart$find = cart.find(product => product.articleNumber === article.articleNumber)) === null || _cart$find === void 0 ? void 0 : _cart$find.quantity) !== null && _cart$find$quantity !== void 0 ? _cart$find$quantity : 0,
119
119
  isSelected: false,
120
- isDisabled: (article === null || article === void 0 || (_article$locationPric = article.locationPrices) === null || _article$locationPric === void 0 || (_article$locationPric = _article$locationPric.stock) === null || _article$locationPric === void 0 ? void 0 : _article$locationPric.status) == _constants__.StockStatus.OutOfStock,
120
+ isOutOfStock: (article === null || article === void 0 || (_article$locationPric = article.locationPrices) === null || _article$locationPric === void 0 || (_article$locationPric = _article$locationPric.stock) === null || _article$locationPric === void 0 ? void 0 : _article$locationPric.status) == _constants__.StockStatus.OutOfStock,
121
121
  handleSelected: () => handleQuantityChange(article.articleNumber, 1),
122
122
  handleQuantityChange: handleQuantityChange,
123
123
  productSpecifications: article === null || article === void 0 ? void 0 : article.specifications,
@@ -112,9 +112,9 @@ const InternalSingleOrderPage = () => {
112
112
  const [showProductOverview, setShowProductOverview] = (0, _react.useState)(true);
113
113
  const [customerErrors, setCustomerErrors] = (0, _react.useState)({});
114
114
  const [filters, setFilters] = (0, _react.useState)({
115
- articleType: null,
116
- articleGroup: null,
117
- articleSubGroup: null,
115
+ type: null,
116
+ group: null,
117
+ subgroup: null,
118
118
  articleNumber: null,
119
119
  model: null,
120
120
  page: 1
@@ -151,7 +151,7 @@ const InternalSingleOrderPage = () => {
151
151
  const handleSelectedFilterChange = (0, _react.useCallback)((filter, value) => {
152
152
  filters.licensePlate = null;
153
153
  filters.model = null;
154
- if (['articleType', 'articleGroup', 'articleSubGroup', 'articleNumber'].includes(filter)) {
154
+ if (['type', 'group', 'subgroup', 'articleNumber'].includes(filter)) {
155
155
  dispatch({
156
156
  type: _OrderSessionContext.orderSessionActions.RESET_VEHICLE_FILTERS
157
157
  });
@@ -162,9 +162,9 @@ const InternalSingleOrderPage = () => {
162
162
  }, [filters]);
163
163
  const resetFilters = (0, _react.useCallback)(() => {
164
164
  setFilters({
165
- articleType: null,
166
- articleGroup: null,
167
- articleSubGroup: null,
165
+ type: null,
166
+ group: null,
167
+ subgroup: null,
168
168
  articleNumber: null,
169
169
  model: null,
170
170
  page: 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thm-p3-configurator",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",