@asdp/ferryui 0.1.22-dev.10841 → 0.1.22-dev.10844

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/dist/index.js CHANGED
@@ -13488,7 +13488,15 @@ var CardVehicleOwnerForm = ({
13488
13488
  /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Col, { lg: 12, children: [
13489
13489
  /* @__PURE__ */ jsxRuntime.jsx("div", { style: { height: "1rem" } }),
13490
13490
  /* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Body1, { className: styles.label, children: [
13491
- mergedLabels.estimatedVehicleWeightLabel,
13491
+ (() => {
13492
+ if (selectedLoadType === LOAD_TYPE.PASSENGER_VEHICLE) {
13493
+ return mergedLabels.estimatedVehicleWeightLabel;
13494
+ } else if (selectedLoadType === LOAD_TYPE.GOODS_VEHICLE || selectedLoadType === LOAD_TYPE.LOOSE_LOAD_WITH_VEHICLE) {
13495
+ return hasLoad ? mergedLabels.estimatedVehicleAndCargoWeightLabel : mergedLabels.estimatedVehicleWeightLabel;
13496
+ } else if (selectedLoadType === LOAD_TYPE.LOOSE_LOAD_WITHOUT_VEHICLE) {
13497
+ return mergedLabels.estimatedCargoWeightLabel;
13498
+ }
13499
+ })(),
13492
13500
  " ",
13493
13501
  /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "red" }, children: "*" })
13494
13502
  ] }),