thm-p3-configurator 0.0.133 → 0.0.135

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.
@@ -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");
@@ -265,7 +266,6 @@ const ProductCartTable = () => {
265
266
  if (isLoadingProducts) {
266
267
  return /*#__PURE__*/_react.default.createElement(_FullPageSpinner.default, null);
267
268
  }
268
- console.log('dit is de applicatie config', APP_CONFIG);
269
269
  return /*#__PURE__*/_react.default.createElement("div", {
270
270
  className: (0, _helpers__.withStyle)("content col-lg")
271
271
  }, /*#__PURE__*/_react.default.createElement(_TogglableCard.default, {
@@ -316,7 +316,7 @@ const ProductCartTable = () => {
316
316
  text: (0, _helpers__.formatPrice)(salesPrice),
317
317
  className: 'cart__table-price text-end'
318
318
  }] : [{}, {}, {
319
- 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) : '',
320
320
  className: 'cart__table-price text-end'
321
321
  }])]
322
322
  });
@@ -468,7 +468,7 @@ const ProductCartTable = () => {
468
468
  text: (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.totalBeforeDiscountExclVat),
469
469
  className: 'text-end pt-2'
470
470
  }] : [{
471
- text: APP_CONFIG.internal ? (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.totalBeforeDiscountInclVat) : (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.totalAfterDiscountExclVat),
471
+ text: (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.totalAfterDiscountExclVat),
472
472
  className: 'text-end pt-2'
473
473
  }])], [{}, {}, {}, ...(isToggled ? [{
474
474
  text: '',
@@ -486,7 +486,7 @@ const ProductCartTable = () => {
486
486
  text: (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.totalVatBeforeDiscount),
487
487
  className: 'text-end'
488
488
  }] : [{
489
- text: APP_CONFIG.internal ? (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.totalVatBeforeDiscountInclVat) : (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.totalVatAfterDiscount),
489
+ text: APP_CONFIG.internal ? (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.totalVatAfterDiscount) : (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.totalVatAfterDiscount),
490
490
  className: 'text-end'
491
491
  }])], [{}, {}, {}, ...(isToggled ? [{
492
492
  text: '',
@@ -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: 'Bereken uw trekhaakmontage.'
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: 'Bereken uw trekhaakmontage.'
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: 'Bereken uw trekhaakmontage.'
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: 'Bereken uw trekhaakmontage.'
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, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thm-p3-configurator",
3
- "version": "0.0.133",
3
+ "version": "0.0.135",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",