ba-js-common-header 0.0.68 → 0.0.71
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.
|
@@ -14719,7 +14719,7 @@ function Row(props) {
|
|
|
14719
14719
|
children: /* @__PURE__ */ jsx("div", {
|
|
14720
14720
|
className: "col py-2 py-lg-0 px-0",
|
|
14721
14721
|
children: /* @__PURE__ */ jsxs("span", {
|
|
14722
|
-
className: "px-lg-3 py-2 d-block",
|
|
14722
|
+
className: "px-lg-3 py-2 py-lg-1 d-block",
|
|
14723
14723
|
children: [i18n.translate("label").fetch(), /* @__PURE__ */ jsx("span", {
|
|
14724
14724
|
className: "float-end",
|
|
14725
14725
|
children: /* @__PURE__ */ jsx(commonThin.Lock, {
|
|
@@ -14802,7 +14802,7 @@ function Row(props) {
|
|
|
14802
14802
|
if (level === 2) {
|
|
14803
14803
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
14804
14804
|
children: [isFirstInGroup && /* @__PURE__ */ jsx("div", {
|
|
14805
|
-
className: "row m-0 pt-3 hd-nav-section",
|
|
14805
|
+
className: "row m-0 pt-3 pb-1 hd-nav-section",
|
|
14806
14806
|
children: /* @__PURE__ */ jsx("div", {
|
|
14807
14807
|
className: "col py-2 py-lg-0 px-0",
|
|
14808
14808
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -14821,7 +14821,7 @@ function Row(props) {
|
|
|
14821
14821
|
children: [/* @__PURE__ */ jsx("div", {
|
|
14822
14822
|
className: "col py-2 py-lg-0 px-0",
|
|
14823
14823
|
children: href ? /* @__PURE__ */ jsx("a", __spreadProps(__spreadValues({
|
|
14824
|
-
className: "px-lg-3 py-2 d-block",
|
|
14824
|
+
className: "px-lg-3 py-2 py-lg-1 d-block",
|
|
14825
14825
|
href
|
|
14826
14826
|
}, isExternalLink(href) && {
|
|
14827
14827
|
target: "_blank"
|
|
@@ -14831,13 +14831,13 @@ function Row(props) {
|
|
|
14831
14831
|
},
|
|
14832
14832
|
children: i18n.translate(label).fetch()
|
|
14833
14833
|
})) : /* @__PURE__ */ jsx("span", {
|
|
14834
|
-
className: "px-lg-3 py-2 d-block",
|
|
14834
|
+
className: "px-lg-3 py-2 py-lg-1 d-block",
|
|
14835
14835
|
children: i18n.translate(label).fetch()
|
|
14836
14836
|
})
|
|
14837
14837
|
}), hasChildren && /* @__PURE__ */ jsx("div", {
|
|
14838
14838
|
className: "col-auto px-0",
|
|
14839
14839
|
children: /* @__PURE__ */ jsx("span", {
|
|
14840
|
-
className: "p-2 d-lg-block",
|
|
14840
|
+
className: "p-2 py-lg-1 d-lg-block",
|
|
14841
14841
|
children: /* @__PURE__ */ jsx(commonThin.ArrowAngleRight, {
|
|
14842
14842
|
className: "hd-icon hd-icon-arrow-angle-right"
|
|
14843
14843
|
})
|
|
@@ -14859,7 +14859,7 @@ function Row(props) {
|
|
|
14859
14859
|
children: /* @__PURE__ */ jsx("div", {
|
|
14860
14860
|
className: "col p-lg-0",
|
|
14861
14861
|
children: /* @__PURE__ */ jsx("a", __spreadProps(__spreadValues({
|
|
14862
|
-
className: "px-lg-3 py-2 d-block",
|
|
14862
|
+
className: "px-lg-3 py-2 py-lg-1 d-block",
|
|
14863
14863
|
href
|
|
14864
14864
|
}, isExternalLink(href) && {
|
|
14865
14865
|
target: "_blank"
|
|
@@ -16544,7 +16544,7 @@ function HotelFinder(props) {
|
|
|
16544
16544
|
i18n
|
|
16545
16545
|
} = useI18n();
|
|
16546
16546
|
if (noMatchHotel.length === 1) {
|
|
16547
|
-
noMatchHotel.unshift(i18n.translate("
|
|
16547
|
+
noMatchHotel.unshift(i18n.translate("header.no_matches_please_try_again").fetch());
|
|
16548
16548
|
}
|
|
16549
16549
|
const [inputHotels, setInputHotels] = useState([]);
|
|
16550
16550
|
const [ctrlInputValue, setCtrlInputValue] = useState(defaultHotel && defaultHotel[0] || "");
|
|
@@ -16641,7 +16641,7 @@ function HotelFinder(props) {
|
|
|
16641
16641
|
})), {
|
|
16642
16642
|
type: "text",
|
|
16643
16643
|
className: "form-control",
|
|
16644
|
-
placeholder: i18n.translate("
|
|
16644
|
+
placeholder: i18n.translate("header.type_property_name").fetch(),
|
|
16645
16645
|
id: "hd-property-input",
|
|
16646
16646
|
value: ctrlInputValue
|
|
16647
16647
|
})), /* @__PURE__ */ jsx("ul", __spreadProps(__spreadValues({
|
|
@@ -16656,7 +16656,7 @@ function HotelFinder(props) {
|
|
|
16656
16656
|
index: index2
|
|
16657
16657
|
})), {
|
|
16658
16658
|
children: [hotel[0], hotel === selectedHotel && /* @__PURE__ */ jsx(commonThin.Tick, {
|
|
16659
|
-
className: "hd-icon hd-icon-tick
|
|
16659
|
+
className: "hd-icon hd-icon-tick float-end"
|
|
16660
16660
|
})]
|
|
16661
16661
|
}), hotel[1]))
|
|
16662
16662
|
})), /* @__PURE__ */ jsx(commonThin.Search, {
|
|
@@ -16798,11 +16798,11 @@ function PropertySelector(props) {
|
|
|
16798
16798
|
className: "ps-lg-3 py-3 py-lg-0 d-block",
|
|
16799
16799
|
id: userInfo.group ? "hd-group-name" : "hd-hotel-name",
|
|
16800
16800
|
children: displayName
|
|
16801
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
16801
|
+
}), showHotelFinder && /* @__PURE__ */ jsxs("div", {
|
|
16802
16802
|
className: "row me-0 d-lg-none align-items-center",
|
|
16803
16803
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
16804
16804
|
className: "col",
|
|
16805
|
-
children: [
|
|
16805
|
+
children: [/* @__PURE__ */ jsx("small", {
|
|
16806
16806
|
className: "pt-2",
|
|
16807
16807
|
children: i18n.translate(label).fetch()
|
|
16808
16808
|
}), /* @__PURE__ */ jsx("span", {
|
|
@@ -16810,7 +16810,7 @@ function PropertySelector(props) {
|
|
|
16810
16810
|
id: "hd-property-name",
|
|
16811
16811
|
children: selectedHotel && selectedHotel[0] || defaultHotel && defaultHotel[0]
|
|
16812
16812
|
})]
|
|
16813
|
-
}),
|
|
16813
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
16814
16814
|
className: "col-auto p-2 d-block",
|
|
16815
16815
|
children: /* @__PURE__ */ jsx(commonThin.ArrowAngleRight, {
|
|
16816
16816
|
className: "hd-icon hd-icon-arrow-angle-right"
|
|
@@ -17130,6 +17130,9 @@ function Title() {
|
|
|
17130
17130
|
config: config.stiff
|
|
17131
17131
|
});
|
|
17132
17132
|
const dispatch = useDispatch();
|
|
17133
|
+
const {
|
|
17134
|
+
i18n
|
|
17135
|
+
} = useI18n();
|
|
17133
17136
|
useEffect(() => {
|
|
17134
17137
|
var _a2;
|
|
17135
17138
|
const menuItemLabel = ((_a2 = items.find((item) => item.id === subMenus[subMenus.length - 1])) == null ? void 0 : _a2.label) || subMenus[subMenus.length - 1];
|
|
@@ -17154,7 +17157,7 @@ function Title() {
|
|
|
17154
17157
|
}), /* @__PURE__ */ jsx("span", {
|
|
17155
17158
|
className: "ms-3",
|
|
17156
17159
|
id: "hd-submenu-title",
|
|
17157
|
-
children: label
|
|
17160
|
+
children: label && i18n.translate(label).fetch()
|
|
17158
17161
|
})]
|
|
17159
17162
|
}));
|
|
17160
17163
|
}
|