ba-js-common-header 0.0.60 → 0.0.63
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.
|
@@ -15859,7 +15859,9 @@ function HotelFinder(props) {
|
|
|
15859
15859
|
className: "mb-0 list-unstyled shadow"
|
|
15860
15860
|
}, getMenuProps()), {
|
|
15861
15861
|
children: isOpen && inputHotels.map((hotel, index2) => /* @__PURE__ */ jsxs("li", __spreadProps(__spreadValues({
|
|
15862
|
-
className: "px-3 py-3 py-lg-2"
|
|
15862
|
+
className: cn("px-3", "py-3", "py-lg-2", {
|
|
15863
|
+
"hd-active": highlightedIndex === index2
|
|
15864
|
+
})
|
|
15863
15865
|
}, getItemProps({
|
|
15864
15866
|
hotel,
|
|
15865
15867
|
index: index2
|
|
@@ -15901,9 +15903,6 @@ function PropertySelector(props) {
|
|
|
15901
15903
|
const {
|
|
15902
15904
|
handleHotelChange
|
|
15903
15905
|
} = props;
|
|
15904
|
-
const [
|
|
15905
|
-
subMenuItem
|
|
15906
|
-
] = useState("Select property");
|
|
15907
15906
|
const [displayName, setDisplayName] = useState("");
|
|
15908
15907
|
const userInfo = useSelector((state) => state.userInfo);
|
|
15909
15908
|
const {
|
|
@@ -15938,6 +15937,9 @@ function PropertySelector(props) {
|
|
|
15938
15937
|
clamp: true
|
|
15939
15938
|
})
|
|
15940
15939
|
});
|
|
15940
|
+
const {
|
|
15941
|
+
i18n
|
|
15942
|
+
} = useI18n();
|
|
15941
15943
|
const dispatch = useDispatch();
|
|
15942
15944
|
useEffect(() => {
|
|
15943
15945
|
(async () => {
|
|
@@ -15978,6 +15980,9 @@ function PropertySelector(props) {
|
|
|
15978
15980
|
setDisplayName(name);
|
|
15979
15981
|
}
|
|
15980
15982
|
}, [userInfo, selectedHotel]);
|
|
15983
|
+
const {
|
|
15984
|
+
label
|
|
15985
|
+
} = propertySelector || {};
|
|
15981
15986
|
const showHotelFinder = userInfo.group && hotelFinderHotels.length > 1;
|
|
15982
15987
|
return transitions((styles, item) => item && /* @__PURE__ */ jsx(animated.div, {
|
|
15983
15988
|
className: "col-12 col-lg me-lg-auto px-0 order-lg-3",
|
|
@@ -15992,7 +15997,7 @@ function PropertySelector(props) {
|
|
|
15992
15997
|
className: "col-lg-auto align-items-center",
|
|
15993
15998
|
onClick: () => {
|
|
15994
15999
|
if (showHotelFinder) {
|
|
15995
|
-
dispatch(addSubMenu(
|
|
16000
|
+
dispatch(addSubMenu(label));
|
|
15996
16001
|
}
|
|
15997
16002
|
},
|
|
15998
16003
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -16010,7 +16015,7 @@ function PropertySelector(props) {
|
|
|
16010
16015
|
className: "col",
|
|
16011
16016
|
children: [showHotelFinder && /* @__PURE__ */ jsx("small", {
|
|
16012
16017
|
className: "pt-2",
|
|
16013
|
-
children:
|
|
16018
|
+
children: i18n.translate(label).fetch()
|
|
16014
16019
|
}), /* @__PURE__ */ jsx("span", {
|
|
16015
16020
|
className: "d-block",
|
|
16016
16021
|
id: "hd-property-name",
|
|
@@ -16028,7 +16033,7 @@ function PropertySelector(props) {
|
|
|
16028
16033
|
defaultHotel,
|
|
16029
16034
|
selectedHotel,
|
|
16030
16035
|
handleHotelChange,
|
|
16031
|
-
subMenuItem
|
|
16036
|
+
subMenuItem: label
|
|
16032
16037
|
})]
|
|
16033
16038
|
})
|
|
16034
16039
|
})
|
|
@@ -16139,7 +16144,7 @@ function UserManager() {
|
|
|
16139
16144
|
className: "pt-2 d-lg-none",
|
|
16140
16145
|
children: label
|
|
16141
16146
|
}), /* @__PURE__ */ jsxs("span", {
|
|
16142
|
-
className: "ps-lg-3 pe-3 pb-2 d-block",
|
|
16147
|
+
className: "ps-lg-3 pe-3 pt-lg-2 pb-2 d-block",
|
|
16143
16148
|
children: [/* @__PURE__ */ jsx("span", {
|
|
16144
16149
|
className: "d-none d-lg-inline",
|
|
16145
16150
|
children: /* @__PURE__ */ jsx(commonThin.User, {
|
|
@@ -16868,6 +16873,9 @@ var filterObj = function(obj, predicate) {
|
|
|
16868
16873
|
return exports.pick(input, exclusionFilter, options);
|
|
16869
16874
|
};
|
|
16870
16875
|
})(queryString);
|
|
16876
|
+
function isExternalLink(href) {
|
|
16877
|
+
return href.match(/^(http|www).+/);
|
|
16878
|
+
}
|
|
16871
16879
|
function Row(props) {
|
|
16872
16880
|
var _a2;
|
|
16873
16881
|
const {
|
|
@@ -16963,14 +16971,17 @@ function Row(props) {
|
|
|
16963
16971
|
className: "row m-0 py-lg-0 align-items-center",
|
|
16964
16972
|
children: [/* @__PURE__ */ jsx("div", {
|
|
16965
16973
|
className: "col py-2 py-lg-0 px-0",
|
|
16966
|
-
children: href ? /* @__PURE__ */ jsx("a", {
|
|
16974
|
+
children: href ? /* @__PURE__ */ jsx("a", __spreadProps(__spreadValues({
|
|
16967
16975
|
className: "ps-lg-3 pe-3 py-2",
|
|
16968
|
-
href
|
|
16976
|
+
href
|
|
16977
|
+
}, isExternalLink(href) && {
|
|
16978
|
+
target: "_blank"
|
|
16979
|
+
}), {
|
|
16969
16980
|
onClick: () => {
|
|
16970
16981
|
dispatch(setSelectedItem(id2));
|
|
16971
16982
|
},
|
|
16972
16983
|
children: i18n.translate(label).fetch()
|
|
16973
|
-
}) : /* @__PURE__ */ jsx("span", {
|
|
16984
|
+
})) : /* @__PURE__ */ jsx("span", {
|
|
16974
16985
|
className: "ps-lg-3 pe-3 py-2",
|
|
16975
16986
|
children: i18n.translate(label).fetch()
|
|
16976
16987
|
})
|
|
@@ -17009,14 +17020,17 @@ function Row(props) {
|
|
|
17009
17020
|
className: "row m-0 py-lg-0 align-items-center",
|
|
17010
17021
|
children: [/* @__PURE__ */ jsx("div", {
|
|
17011
17022
|
className: "col py-2 py-lg-0 px-0",
|
|
17012
|
-
children: href ? /* @__PURE__ */ jsx("a", {
|
|
17023
|
+
children: href ? /* @__PURE__ */ jsx("a", __spreadProps(__spreadValues({
|
|
17013
17024
|
className: "px-lg-3 py-2 d-block",
|
|
17014
|
-
href
|
|
17025
|
+
href
|
|
17026
|
+
}, isExternalLink(href) && {
|
|
17027
|
+
target: "_blank"
|
|
17028
|
+
}), {
|
|
17015
17029
|
onClick: () => {
|
|
17016
17030
|
dispatch(setSelectedItem(id2));
|
|
17017
17031
|
},
|
|
17018
17032
|
children: i18n.translate(label).fetch()
|
|
17019
|
-
}) : /* @__PURE__ */ jsx("span", {
|
|
17033
|
+
})) : /* @__PURE__ */ jsx("span", {
|
|
17020
17034
|
className: "px-lg-3 py-2 d-block",
|
|
17021
17035
|
children: i18n.translate(label).fetch()
|
|
17022
17036
|
})
|
|
@@ -17044,14 +17058,17 @@ function Row(props) {
|
|
|
17044
17058
|
className: "row m-0 py-1 py-lg-0 align-items-center",
|
|
17045
17059
|
children: /* @__PURE__ */ jsx("div", {
|
|
17046
17060
|
className: "col p-lg-0",
|
|
17047
|
-
children: /* @__PURE__ */ jsx("a", {
|
|
17061
|
+
children: /* @__PURE__ */ jsx("a", __spreadProps(__spreadValues({
|
|
17048
17062
|
className: "px-lg-3 py-2 d-block",
|
|
17049
|
-
href
|
|
17063
|
+
href
|
|
17064
|
+
}, isExternalLink(href) && {
|
|
17065
|
+
target: "_blank"
|
|
17066
|
+
}), {
|
|
17050
17067
|
onClick: () => {
|
|
17051
17068
|
dispatch(setSelectedItem(id2));
|
|
17052
17069
|
},
|
|
17053
17070
|
children: i18n.translate(label).fetch()
|
|
17054
|
-
})
|
|
17071
|
+
}))
|
|
17055
17072
|
})
|
|
17056
17073
|
})
|
|
17057
17074
|
});
|