ba-js-common-header 0.0.55 → 0.0.58

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.
@@ -14555,25 +14555,34 @@ function HotelFinder(props) {
14555
14555
  })), /* @__PURE__ */ jsx("ul", __spreadProps(__spreadValues({
14556
14556
  className: "mb-0 px-3 list-unstyled shadow"
14557
14557
  }, getMenuProps()), {
14558
- children: isOpen && inputHotels.map((hotel, index2) => /* @__PURE__ */ jsx("li", __spreadProps(__spreadValues({
14559
- className: "py-3 py-lg-2"
14560
- }, getItemProps({
14561
- hotel,
14562
- index: index2
14563
- })), {
14564
- children: /* @__PURE__ */ jsxs("div", {
14565
- style: __spreadValues({
14566
- display: "flex",
14567
- justifyContent: "space-between",
14568
- alignItems: "center"
14569
- }, highlightedIndex === index2 && {
14570
- backgroundColor: "#81bf8c"
14571
- }),
14572
- children: [/* @__PURE__ */ jsx("div", {
14573
- children: hotel[0]
14574
- }), hotel === selectedHotel && /* @__PURE__ */ jsx(commonThin.Tick, {})]
14575
- })
14576
- }), hotel[1]))
14558
+ children: isOpen && inputHotels.map((hotel, index2) => {
14559
+ const disabled = hotel === noMatchHotel || hotel === selectedHotel;
14560
+ return /* @__PURE__ */ jsx("li", __spreadProps(__spreadValues(__spreadValues({
14561
+ className: "py-3 py-lg-2"
14562
+ }, getItemProps(__spreadValues({
14563
+ hotel,
14564
+ index: index2
14565
+ }, disabled && {
14566
+ disabled: true
14567
+ }))), disabled && {
14568
+ style: {
14569
+ cursor: "default"
14570
+ }
14571
+ }), {
14572
+ children: /* @__PURE__ */ jsxs("div", {
14573
+ style: __spreadValues({
14574
+ display: "flex",
14575
+ justifyContent: "space-between",
14576
+ alignItems: "center"
14577
+ }, highlightedIndex === index2 && {
14578
+ backgroundColor: "#81bf8c"
14579
+ }),
14580
+ children: [/* @__PURE__ */ jsx("div", {
14581
+ children: hotel[0]
14582
+ }), hotel === selectedHotel && /* @__PURE__ */ jsx(commonThin.Tick, {})]
14583
+ })
14584
+ }), hotel[1]);
14585
+ })
14577
14586
  })), /* @__PURE__ */ jsx(commonThin.Search, {
14578
14587
  className: "hd-icon hd-icon-search"
14579
14588
  }), /* @__PURE__ */ jsx(commonThin.Close, {
@@ -14742,31 +14751,73 @@ function HelpCenter() {
14742
14751
  const {
14743
14752
  i18n
14744
14753
  } = useI18n();
14754
+ const {
14755
+ subMenus
14756
+ } = useSelector((state) => state.headerInfo);
14745
14757
  const {
14746
14758
  help
14747
14759
  } = useSelector((state) => state.titleBar);
14760
+ const dispatch = useDispatch();
14748
14761
  if (!help)
14749
14762
  return null;
14750
14763
  const {
14751
14764
  label,
14752
- href
14765
+ children
14753
14766
  } = help;
14754
- return /* @__PURE__ */ jsx("li", {
14767
+ const subMenuOpen = subMenus.find((id2) => id2 === label);
14768
+ return /* @__PURE__ */ jsxs("li", {
14755
14769
  className: "col-lg-auto p-0",
14756
- children: /* @__PURE__ */ jsx("div", {
14770
+ onClick: () => {
14771
+ dispatch(addSubMenu(label));
14772
+ },
14773
+ children: [/* @__PURE__ */ jsxs("div", {
14757
14774
  className: "row m-0 py-lg-0 align-items-center",
14758
- children: /* @__PURE__ */ jsx("div", {
14775
+ children: [/* @__PURE__ */ jsxs("div", {
14759
14776
  className: "col py-2 py-lg-0 px-0",
14760
- children: /* @__PURE__ */ jsx("a", {
14777
+ children: [/* @__PURE__ */ jsx("small", {
14778
+ className: "pt-2 d-lg-none",
14779
+ children: label
14780
+ }), /* @__PURE__ */ jsxs("span", {
14761
14781
  className: "ps-lg-3 pe-3 py-2 d-block",
14762
- title: "Help",
14763
- href,
14764
- target: "_blank",
14765
- rel: "noreferrer",
14766
- children: i18n.translate(label).fetch()
14782
+ children: [/* @__PURE__ */ jsx("span", {
14783
+ className: "ps-lg-2",
14784
+ children: label
14785
+ }), /* @__PURE__ */ jsx("span", {
14786
+ className: "d-none d-lg-inline ms-2",
14787
+ children: /* @__PURE__ */ jsx(commonThin.ArrowAngleDown, {
14788
+ className: "hd-icon hd-icon-arrow-angle-down"
14789
+ })
14790
+ })]
14791
+ })]
14792
+ }), /* @__PURE__ */ jsx("div", {
14793
+ className: "col-auto p-2 d-block d-lg-none",
14794
+ children: /* @__PURE__ */ jsx(commonThin.ArrowAngleRight, {
14795
+ className: "hd-icon hd-icon-arrow-angle-right"
14767
14796
  })
14768
- })
14769
- })
14797
+ })]
14798
+ }), /* @__PURE__ */ jsx("ul", {
14799
+ className: cn("py-3", "list-unstyled", "hd-nav-second-level", {
14800
+ "hd-submenu-opened": subMenuOpen
14801
+ }),
14802
+ children: children.map(({
14803
+ href,
14804
+ label: lbl
14805
+ }) => /* @__PURE__ */ jsx("li", {
14806
+ children: /* @__PURE__ */ jsx("div", {
14807
+ className: "row m-0 py-lg-0 align-items-center",
14808
+ children: /* @__PURE__ */ jsx("div", {
14809
+ className: "col py-2 py-lg-0 px-0",
14810
+ children: /* @__PURE__ */ jsx("a", {
14811
+ className: "px-lg-4 py-2 d-block",
14812
+ href,
14813
+ target: "_blank",
14814
+ rel: "noreferrer",
14815
+ children: i18n.translate(lbl).fetch()
14816
+ })
14817
+ })
14818
+ })
14819
+ }, nanoid()))
14820
+ })]
14770
14821
  });
14771
14822
  }
14772
14823
  function UserManager() {