ba-js-common-header 0.0.69 → 0.0.72

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.
@@ -15044,7 +15044,7 @@ function Notifications() {
15044
15044
  } = useSelector((state) => state.notifications);
15045
15045
  const hideNotificationsBell = isMobileOrTablet && isOpen;
15046
15046
  const styles = useSpring({
15047
- opacity: hideNotificationsBell ? 0 : 1
15047
+ opacity: hideNotificationsBell || notificationsLang.length === 0 ? 0 : 1
15048
15048
  });
15049
15049
  const ref = useRef();
15050
15050
  const dispatch = useDispatch();
@@ -15112,8 +15112,6 @@ function Notifications() {
15112
15112
  }
15113
15113
  }
15114
15114
  }, [notificationDate]);
15115
- if (!notificationsLang || notificationsLang.length === 0)
15116
- return null;
15117
15115
  return /* @__PURE__ */ jsx(animated.div, {
15118
15116
  className: cn("col-auto", "pe-lg-0", "order-lg-4", {
15119
15117
  "hd-ringing": !notified
@@ -16544,7 +16542,7 @@ function HotelFinder(props) {
16544
16542
  i18n
16545
16543
  } = useI18n();
16546
16544
  if (noMatchHotel.length === 1) {
16547
- noMatchHotel.unshift(i18n.translate("No_matches_please_try_again").fetch());
16545
+ noMatchHotel.unshift(i18n.translate("header.no_matches_please_try_again").fetch());
16548
16546
  }
16549
16547
  const [inputHotels, setInputHotels] = useState([]);
16550
16548
  const [ctrlInputValue, setCtrlInputValue] = useState(defaultHotel && defaultHotel[0] || "");
@@ -16641,7 +16639,7 @@ function HotelFinder(props) {
16641
16639
  })), {
16642
16640
  type: "text",
16643
16641
  className: "form-control",
16644
- placeholder: i18n.translate("hotel_name").fetch(),
16642
+ placeholder: i18n.translate("header.type_property_name").fetch(),
16645
16643
  id: "hd-property-input",
16646
16644
  value: ctrlInputValue
16647
16645
  })), /* @__PURE__ */ jsx("ul", __spreadProps(__spreadValues({
@@ -16656,7 +16654,7 @@ function HotelFinder(props) {
16656
16654
  index: index2
16657
16655
  })), {
16658
16656
  children: [hotel[0], hotel === selectedHotel && /* @__PURE__ */ jsx(commonThin.Tick, {
16659
- className: "hd-icon hd-icon-tick text-success float-end"
16657
+ className: "hd-icon hd-icon-tick float-end"
16660
16658
  })]
16661
16659
  }), hotel[1]))
16662
16660
  })), /* @__PURE__ */ jsx(commonThin.Search, {
@@ -17130,6 +17128,9 @@ function Title() {
17130
17128
  config: config.stiff
17131
17129
  });
17132
17130
  const dispatch = useDispatch();
17131
+ const {
17132
+ i18n
17133
+ } = useI18n();
17133
17134
  useEffect(() => {
17134
17135
  var _a2;
17135
17136
  const menuItemLabel = ((_a2 = items.find((item) => item.id === subMenus[subMenus.length - 1])) == null ? void 0 : _a2.label) || subMenus[subMenus.length - 1];
@@ -17154,7 +17155,7 @@ function Title() {
17154
17155
  }), /* @__PURE__ */ jsx("span", {
17155
17156
  className: "ms-3",
17156
17157
  id: "hd-submenu-title",
17157
- children: label
17158
+ children: label && i18n.translate(label).fetch()
17158
17159
  })]
17159
17160
  }));
17160
17161
  }