ba-js-common-header 0.0.61 → 0.0.64

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.
@@ -15903,9 +15903,6 @@ function PropertySelector(props) {
15903
15903
  const {
15904
15904
  handleHotelChange
15905
15905
  } = props;
15906
- const [
15907
- subMenuItem
15908
- ] = useState("Select property");
15909
15906
  const [displayName, setDisplayName] = useState("");
15910
15907
  const userInfo = useSelector((state) => state.userInfo);
15911
15908
  const {
@@ -15940,6 +15937,9 @@ function PropertySelector(props) {
15940
15937
  clamp: true
15941
15938
  })
15942
15939
  });
15940
+ const {
15941
+ i18n
15942
+ } = useI18n();
15943
15943
  const dispatch = useDispatch();
15944
15944
  useEffect(() => {
15945
15945
  (async () => {
@@ -15980,6 +15980,9 @@ function PropertySelector(props) {
15980
15980
  setDisplayName(name);
15981
15981
  }
15982
15982
  }, [userInfo, selectedHotel]);
15983
+ const {
15984
+ label
15985
+ } = propertySelector || {};
15983
15986
  const showHotelFinder = userInfo.group && hotelFinderHotels.length > 1;
15984
15987
  return transitions((styles, item) => item && /* @__PURE__ */ jsx(animated.div, {
15985
15988
  className: "col-12 col-lg me-lg-auto px-0 order-lg-3",
@@ -15994,7 +15997,7 @@ function PropertySelector(props) {
15994
15997
  className: "col-lg-auto align-items-center",
15995
15998
  onClick: () => {
15996
15999
  if (showHotelFinder) {
15997
- dispatch(addSubMenu(subMenuItem));
16000
+ dispatch(addSubMenu(label));
15998
16001
  }
15999
16002
  },
16000
16003
  children: /* @__PURE__ */ jsxs("div", {
@@ -16012,7 +16015,7 @@ function PropertySelector(props) {
16012
16015
  className: "col",
16013
16016
  children: [showHotelFinder && /* @__PURE__ */ jsx("small", {
16014
16017
  className: "pt-2",
16015
- children: subMenuItem
16018
+ children: i18n.translate(label).fetch()
16016
16019
  }), /* @__PURE__ */ jsx("span", {
16017
16020
  className: "d-block",
16018
16021
  id: "hd-property-name",
@@ -16030,7 +16033,7 @@ function PropertySelector(props) {
16030
16033
  defaultHotel,
16031
16034
  selectedHotel,
16032
16035
  handleHotelChange,
16033
- subMenuItem
16036
+ subMenuItem: label
16034
16037
  })]
16035
16038
  })
16036
16039
  })
@@ -16068,7 +16071,7 @@ function HelpCenter() {
16068
16071
  className: "ps-lg-3 pe-3 py-2 d-block",
16069
16072
  children: [/* @__PURE__ */ jsx("span", {
16070
16073
  className: "ps-lg-2",
16071
- children: label
16074
+ children: i18n.translate(label).fetch()
16072
16075
  }), /* @__PURE__ */ jsx("span", {
16073
16076
  className: "d-none d-lg-inline ms-2",
16074
16077
  children: /* @__PURE__ */ jsx(commonThin.ArrowAngleDown, {
@@ -16139,9 +16142,9 @@ function UserManager() {
16139
16142
  className: "col py-2 py-lg-0 px-0",
16140
16143
  children: [/* @__PURE__ */ jsx("small", {
16141
16144
  className: "pt-2 d-lg-none",
16142
- children: label
16145
+ children: i18n.translate(label).fetch()
16143
16146
  }), /* @__PURE__ */ jsxs("span", {
16144
- className: "ps-lg-3 pe-3 pb-2 d-block",
16147
+ className: "ps-lg-3 pe-3 pt-lg-2 pb-2 d-block",
16145
16148
  children: [/* @__PURE__ */ jsx("span", {
16146
16149
  className: "d-none d-lg-inline",
16147
16150
  children: /* @__PURE__ */ jsx(commonThin.User, {
@@ -16202,6 +16205,9 @@ function UserLanguage(props) {
16202
16205
  subMenus
16203
16206
  } = useSelector((state) => state.headerInfo);
16204
16207
  const dispatch = useDispatch();
16208
+ const {
16209
+ i18n
16210
+ } = useI18n();
16205
16211
  useEffect(() => {
16206
16212
  if (languageSelector) {
16207
16213
  const {
@@ -16254,7 +16260,7 @@ function UserLanguage(props) {
16254
16260
  className: "col py-2 py-lg-0 px-0",
16255
16261
  children: [/* @__PURE__ */ jsx("small", {
16256
16262
  className: "pt-2 d-lg-none",
16257
- children: label
16263
+ children: i18n.translate(label).fetch()
16258
16264
  }), /* @__PURE__ */ jsxs("span", {
16259
16265
  className: "ps-lg-3 pe-3 pt-lg-2 pb-2 d-block",
16260
16266
  children: [selectedLanguageName, /* @__PURE__ */ jsx("span", {