thm-p3-configurator 0.0.263 → 0.0.264

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.
@@ -144,6 +144,7 @@ function _toPrimitive(t, r) {
144
144
 
145
145
  const ProductCartTable = () => {
146
146
  const formula = (0, _FormulaContext.useFormula)();
147
+ const isThc = formula === _constants__.CONFIGURATOR_FORMULAS.THC;
147
148
  const isTmg = (0, _useIsTmg.useIsTmg)();
148
149
  const isTowmotive = (0, _useIsTowmotive.useIsTowmotive)();
149
150
  const [isToggled, setIsToggled] = (0, _react.useState)(false);
@@ -545,7 +546,7 @@ const ProductCartTable = () => {
545
546
  isRequired: false,
546
547
  onChange: v => handleVehicleCodingDiscountChange(v, articleNumber)
547
548
  })));
548
- const renderMontageRateInput = () => /*#__PURE__*/_react.default.createElement("div", {
549
+ const renderMontageRateInput = () => isThc ? null : /*#__PURE__*/_react.default.createElement("div", {
549
550
  className: (0, _helpers__.withStyle)('d-flex flex-column align-items-end justify-content-end gap-1')
550
551
  }, /*#__PURE__*/_react.default.createElement(_DecimalInput.default, {
551
552
  label: "Montage tarief",
@@ -571,11 +572,11 @@ const ProductCartTable = () => {
571
572
  return /*#__PURE__*/_react.default.createElement(_FullPageSpinner.default, null);
572
573
  }
573
574
  const headerColumns = (0, _cartTable2.getCartTableHeaderColumns)(displayMode);
574
- const montageRateInputCell = {
575
+ const montageRateInputCell = isThc ? {} : {
575
576
  text: renderMontageRateInput(),
576
577
  className: _cartTable.CART_TABLE_PRICE_CELL_CLASS
577
578
  };
578
- const montageRateCellOverrides = APP_CONFIG.internal && renderMontageRateInput ? displayMode === _cartTable.CART_TABLE_DISPLAY_MODES.TOGGLED_STANDARD ? {
579
+ const montageRateCellOverrides = APP_CONFIG.internal && !isThc && renderMontageRateInput ? displayMode === _cartTable.CART_TABLE_DISPLAY_MODES.TOGGLED_STANDARD ? {
579
580
  // Show input in discount column; keep price column as price
580
581
  discountCell: montageRateInputCell
581
582
  } : displayMode === _cartTable.CART_TABLE_DISPLAY_MODES.DEFAULT ? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thm-p3-configurator",
3
- "version": "0.0.263",
3
+ "version": "0.0.264",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",