@tripian/react 9.2.7 → 9.2.9
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.
- package/index.js +8 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -58262,6 +58262,7 @@ const PoiInfo = ({ poi, favorite, toggleFavorite, close, addRemoveReplacePoi, da
|
|
|
58262
58262
|
RESTAURANT_RESERVATION_PROVIDER_IDS, myOffers, isLoadingOffer, offerButtonClick, offerCardClicked, hideOffers,
|
|
58263
58263
|
// offerClicked,
|
|
58264
58264
|
loadingFeedback, feedbackSubjects, isBookingClicked, timezone = 'UTC', sendFeedback, redeemClicked, onImageModalChange, t, }) => {
|
|
58265
|
+
var _a, _b, _c;
|
|
58265
58266
|
const [optInModalWarningMessage, setOptInModalWarningMessage] = (0, react_1.useState)([]);
|
|
58266
58267
|
const [showShareModal, setShowShareModal] = (0, react_1.useState)(false);
|
|
58267
58268
|
const offerRef = react_1.default.createRef();
|
|
@@ -58276,7 +58277,13 @@ loadingFeedback, feedbackSubjects, isBookingClicked, timezone = 'UTC', sendFeedb
|
|
|
58276
58277
|
react_1.default.createElement("div", { className: "hide-m" }, !isNaN(parseFloat(poi.id)) && react_1.default.createElement(PoiInfoImageMobile_1.default, { poi: poi, square: square, favorite: favorite, favoriteLoading: favoriteLoading, toggleFavorite: toggleFavorite, hideFavoriteIcon: hideFavoriteIcon, close: close, t: t })),
|
|
58277
58278
|
react_1.default.createElement("div", { className: PoiInfo_scss_1.default.poiInfo },
|
|
58278
58279
|
react_1.default.createElement("div", { className: PoiInfo_scss_1.default.header },
|
|
58279
|
-
react_1.default.createElement("h1", { className: PoiInfo_scss_1.default.title },
|
|
58280
|
+
react_1.default.createElement("h1", { className: PoiInfo_scss_1.default.title },
|
|
58281
|
+
poi.name,
|
|
58282
|
+
((_a = window.tconfig) === null || _a === void 0 ? void 0 : _a.ELIGIBILITY_TYPE) === 'visa' && poi.externalUrl && (react_1.default.createElement("button", { type: "button", onClick: (e) => {
|
|
58283
|
+
e.stopPropagation();
|
|
58284
|
+
window.open(poi.externalUrl, '_blank', 'noopener,noreferrer');
|
|
58285
|
+
}, style: { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', marginLeft: '0.25rem', verticalAlign: 'middle', background: 'none', border: 'none', padding: 0, cursor: 'pointer' }, "aria-label": "External link" },
|
|
58286
|
+
react_1.default.createElement("img", { src: (_c = (_b = window.tconfig) === null || _b === void 0 ? void 0 : _b.IMAGE_PATHS) === null || _c === void 0 ? void 0 : _c.LOGO_PATH_LIGHT, alt: "External link", style: { height: '0.6rem', width: 'auto', objectFit: 'contain' } })))),
|
|
58280
58287
|
react_1.default.createElement("div", { className: PoiInfo_scss_1.default.actions },
|
|
58281
58288
|
react_1.default.createElement(ShareIconButton_1.default, { className: PoiInfo_scss_1.default.shareIconButton, clicked: () => setShowShareModal(true) }),
|
|
58282
58289
|
!hideFavoriteIcon && (react_1.default.createElement(FavoriteIconButton_1.default, { className: PoiInfo_scss_1.default.favoriteIconButton, clicked: () => {
|