@tripian/react 9.2.9 → 9.3.0
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 +10 -2
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -58283,7 +58283,7 @@ loadingFeedback, feedbackSubjects, isBookingClicked, timezone = 'UTC', sendFeedb
|
|
|
58283
58283
|
e.stopPropagation();
|
|
58284
58284
|
window.open(poi.externalUrl, '_blank', 'noopener,noreferrer');
|
|
58285
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.
|
|
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.9rem', width: 'auto', objectFit: 'contain' } })))),
|
|
58287
58287
|
react_1.default.createElement("div", { className: PoiInfo_scss_1.default.actions },
|
|
58288
58288
|
react_1.default.createElement(ShareIconButton_1.default, { className: PoiInfo_scss_1.default.shareIconButton, clicked: () => setShowShareModal(true) }),
|
|
58289
58289
|
!hideFavoriteIcon && (react_1.default.createElement(FavoriteIconButton_1.default, { className: PoiInfo_scss_1.default.favoriteIconButton, clicked: () => {
|
|
@@ -89123,7 +89123,7 @@ const luggageImage_1 = __importDefault(__webpack_require__(1064));
|
|
|
89123
89123
|
const StepCard = ({ step, clicked, alternativePois, TOUR_PROVIDER_IDS, TICKET_PROVIDER_IDS, RESTAURANT_RESERVATION_PROVIDER_IDS, hideReservationIcon, hideTourTicketIcons,
|
|
89124
89124
|
// hideOfferIcon,
|
|
89125
89125
|
gygTourIds, bbTourIds, viatorTourIds, toristyTourIds, alternativeReplace, timesClicked, userReactionRemoveStep, hideStepsTime = false, hideCuisine = false, isWidget = false, tourTicketProductsLoading, onBookClick, t, }) => {
|
|
89126
|
-
var _a;
|
|
89126
|
+
var _a, _b, _c, _d;
|
|
89127
89127
|
const [showStepTimes, setShowStepTimes] = (0, react_1.useState)(false);
|
|
89128
89128
|
const [showMobileButtons, setShowMobileButtons] = (0, react_1.useState)(false);
|
|
89129
89129
|
let placeImg = step.poi.image === null ? emptyImage_1.default : model_1.helper.imgUrl(`${step.poi.image.url}`, 256, 256);
|
|
@@ -89256,6 +89256,14 @@ gygTourIds, bbTourIds, viatorTourIds, toristyTourIds, alternativeReplace, timesC
|
|
|
89256
89256
|
!hideStepsTime ? stepsTime : react_1.default.createElement("div", null),
|
|
89257
89257
|
react_1.default.createElement("div", { className: StepCard_scss_1.default.stepInfoHeaderButtons },
|
|
89258
89258
|
react_1.default.createElement("div", { className: StepCard_scss_1.default.iconButtonsDesktop },
|
|
89259
|
+
((_b = window.tconfig) === null || _b === void 0 ? void 0 : _b.ELIGIBILITY_TYPE) === 'visa' && step.poi.externalUrl && (
|
|
89260
|
+
// eslint-disable-next-line react/button-has-type
|
|
89261
|
+
react_1.default.createElement("button", { onClick: (e) => {
|
|
89262
|
+
e.stopPropagation();
|
|
89263
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
89264
|
+
window.open(step.poi.externalUrl, '_blank', 'noopener,noreferrer');
|
|
89265
|
+
}, className: "inline-flex items-center justify-center ml-1 align-middle", "aria-label": "External link" },
|
|
89266
|
+
react_1.default.createElement("img", { src: (_d = (_c = window.tconfig) === null || _c === void 0 ? void 0 : _c.IMAGE_PATHS) === null || _d === void 0 ? void 0 : _d.LOGO_PATH_LIGHT, alt: "External link", className: "w-auto object-contain hover:opacity-80 transition-opacity", style: { height: '0.8rem' } }))),
|
|
89259
89267
|
alternativePois.length > 0 && (react_1.default.createElement("div", { className: StepCard_scss_1.default.replaceButton, onKeyDown: () => { }, role: "button", tabIndex: 0, onClick: (event) => {
|
|
89260
89268
|
event.stopPropagation();
|
|
89261
89269
|
const randomPoi = alternativePois[Math.floor(Math.random() * alternativePois.length)];
|