ba-js-common-header 0.0.60 → 0.0.61
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
|
|
@@ -16868,6 +16870,9 @@ var filterObj = function(obj, predicate) {
|
|
|
16868
16870
|
return exports.pick(input, exclusionFilter, options);
|
|
16869
16871
|
};
|
|
16870
16872
|
})(queryString);
|
|
16873
|
+
function isExternalLink(href) {
|
|
16874
|
+
return href.match(/^(http|www).+/);
|
|
16875
|
+
}
|
|
16871
16876
|
function Row(props) {
|
|
16872
16877
|
var _a2;
|
|
16873
16878
|
const {
|
|
@@ -16963,14 +16968,17 @@ function Row(props) {
|
|
|
16963
16968
|
className: "row m-0 py-lg-0 align-items-center",
|
|
16964
16969
|
children: [/* @__PURE__ */ jsx("div", {
|
|
16965
16970
|
className: "col py-2 py-lg-0 px-0",
|
|
16966
|
-
children: href ? /* @__PURE__ */ jsx("a", {
|
|
16971
|
+
children: href ? /* @__PURE__ */ jsx("a", __spreadProps(__spreadValues({
|
|
16967
16972
|
className: "ps-lg-3 pe-3 py-2",
|
|
16968
|
-
href
|
|
16973
|
+
href
|
|
16974
|
+
}, isExternalLink(href) && {
|
|
16975
|
+
target: "_blank"
|
|
16976
|
+
}), {
|
|
16969
16977
|
onClick: () => {
|
|
16970
16978
|
dispatch(setSelectedItem(id2));
|
|
16971
16979
|
},
|
|
16972
16980
|
children: i18n.translate(label).fetch()
|
|
16973
|
-
}) : /* @__PURE__ */ jsx("span", {
|
|
16981
|
+
})) : /* @__PURE__ */ jsx("span", {
|
|
16974
16982
|
className: "ps-lg-3 pe-3 py-2",
|
|
16975
16983
|
children: i18n.translate(label).fetch()
|
|
16976
16984
|
})
|
|
@@ -17009,14 +17017,17 @@ function Row(props) {
|
|
|
17009
17017
|
className: "row m-0 py-lg-0 align-items-center",
|
|
17010
17018
|
children: [/* @__PURE__ */ jsx("div", {
|
|
17011
17019
|
className: "col py-2 py-lg-0 px-0",
|
|
17012
|
-
children: href ? /* @__PURE__ */ jsx("a", {
|
|
17020
|
+
children: href ? /* @__PURE__ */ jsx("a", __spreadProps(__spreadValues({
|
|
17013
17021
|
className: "px-lg-3 py-2 d-block",
|
|
17014
|
-
href
|
|
17022
|
+
href
|
|
17023
|
+
}, isExternalLink(href) && {
|
|
17024
|
+
target: "_blank"
|
|
17025
|
+
}), {
|
|
17015
17026
|
onClick: () => {
|
|
17016
17027
|
dispatch(setSelectedItem(id2));
|
|
17017
17028
|
},
|
|
17018
17029
|
children: i18n.translate(label).fetch()
|
|
17019
|
-
}) : /* @__PURE__ */ jsx("span", {
|
|
17030
|
+
})) : /* @__PURE__ */ jsx("span", {
|
|
17020
17031
|
className: "px-lg-3 py-2 d-block",
|
|
17021
17032
|
children: i18n.translate(label).fetch()
|
|
17022
17033
|
})
|
|
@@ -17044,14 +17055,17 @@ function Row(props) {
|
|
|
17044
17055
|
className: "row m-0 py-1 py-lg-0 align-items-center",
|
|
17045
17056
|
children: /* @__PURE__ */ jsx("div", {
|
|
17046
17057
|
className: "col p-lg-0",
|
|
17047
|
-
children: /* @__PURE__ */ jsx("a", {
|
|
17058
|
+
children: /* @__PURE__ */ jsx("a", __spreadProps(__spreadValues({
|
|
17048
17059
|
className: "px-lg-3 py-2 d-block",
|
|
17049
|
-
href
|
|
17060
|
+
href
|
|
17061
|
+
}, isExternalLink(href) && {
|
|
17062
|
+
target: "_blank"
|
|
17063
|
+
}), {
|
|
17050
17064
|
onClick: () => {
|
|
17051
17065
|
dispatch(setSelectedItem(id2));
|
|
17052
17066
|
},
|
|
17053
17067
|
children: i18n.translate(label).fetch()
|
|
17054
|
-
})
|
|
17068
|
+
}))
|
|
17055
17069
|
})
|
|
17056
17070
|
})
|
|
17057
17071
|
});
|