@tripian/react 9.1.0 → 9.1.1
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/components/PoiInfo/PoiInfo.d.ts +3 -0
- package/components/PoiInfo/PoiInfoText/PoiInfoText.d.ts +3 -0
- package/components/StepCard/StepCard.d.ts +2 -0
- package/components/StepCardUserReaction/StepCardUserReaction.d.ts +2 -0
- package/components/StepInfo/StepInfo.d.ts +3 -0
- package/index.js +27 -25
- package/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -14,6 +14,9 @@ interface IPoiInfo {
|
|
|
14
14
|
hideActionButtons?: boolean;
|
|
15
15
|
hideFavoriteIcon?: boolean;
|
|
16
16
|
hideScore?: boolean;
|
|
17
|
+
hidePartOfDay?: boolean;
|
|
18
|
+
hideFeatures?: boolean;
|
|
19
|
+
hideCuisine?: boolean;
|
|
17
20
|
planDate?: string;
|
|
18
21
|
bookingButtonClick?: (productId: string, poi: Model.Poi) => void;
|
|
19
22
|
favoriteLoading: boolean;
|
|
@@ -3,6 +3,9 @@ import Model from '@tripian/model';
|
|
|
3
3
|
interface IPoiInfoText {
|
|
4
4
|
poi: Model.Poi;
|
|
5
5
|
hideFavoriteIcon: boolean;
|
|
6
|
+
hidePartOfDay?: boolean;
|
|
7
|
+
hideFeatures?: boolean;
|
|
8
|
+
hideCuisine?: boolean;
|
|
6
9
|
favorite: boolean;
|
|
7
10
|
favoriteLoading: boolean;
|
|
8
11
|
favoriteClick: (favorite: boolean) => void;
|
|
@@ -25,6 +25,8 @@ interface IStepCardUserReaction {
|
|
|
25
25
|
hideReservationIcon: boolean;
|
|
26
26
|
hideTourTicketIcons: boolean;
|
|
27
27
|
hideOfferIcon: boolean;
|
|
28
|
+
hideFeatures?: boolean;
|
|
29
|
+
hideCuisine?: boolean;
|
|
28
30
|
t: (value: Model.TranslationKey) => string;
|
|
29
31
|
}
|
|
30
32
|
declare const StepCardUserReaction: React.FC<IStepCardUserReaction>;
|
|
@@ -10,6 +10,9 @@ interface IStepInfo {
|
|
|
10
10
|
hideActionButtons?: boolean;
|
|
11
11
|
hideFavoriteIcon?: boolean;
|
|
12
12
|
hideScore?: boolean;
|
|
13
|
+
hidePartOfDay?: boolean;
|
|
14
|
+
hideFeatures?: boolean;
|
|
15
|
+
hideCuisine?: boolean;
|
|
13
16
|
planDate?: string;
|
|
14
17
|
bookingButtonClick?: (productId: string, poi: Model.Poi) => void;
|
|
15
18
|
favoriteLoading: boolean;
|
package/index.js
CHANGED
|
@@ -56955,12 +56955,12 @@ var Modal_1 = __importDefault(__webpack_require__(57));
|
|
|
56955
56955
|
var scoreDetailHeaders = ['Distance', 'Keywords', 'Rating', 'Popularity', 'Crowd'];
|
|
56956
56956
|
var PoiInfo = function (_a) {
|
|
56957
56957
|
var _b, _c;
|
|
56958
|
-
var score = _a.score, scoreDetails = _a.scoreDetails, poi = _a.poi, favorite = _a.favorite, toggleFavorite = _a.toggleFavorite, close = _a.close, addRemoveReplacePoi = _a.addRemoveReplacePoi, dayNumbers = _a.dayNumbers, _d = _a.stepOrder, stepOrder = _d === void 0 ? -1 : _d, _e = _a.replace, replace = _e === void 0 ? false : _e, _f = _a.hideActionButtons, hideActionButtons = _f === void 0 ? false : _f, _g = _a.hideFavoriteIcon, hideFavoriteIcon = _g === void 0 ? false : _g, _h = _a.hideScore, hideScore = _h === void 0 ? false : _h, bookingButtonClick = _a.bookingButtonClick, planDate = _a.planDate, favoriteLoading = _a.favoriteLoading, reservationUrl = _a.reservationUrl, hideBookingButton = _a.hideBookingButton,
|
|
56958
|
+
var score = _a.score, scoreDetails = _a.scoreDetails, poi = _a.poi, favorite = _a.favorite, toggleFavorite = _a.toggleFavorite, close = _a.close, addRemoveReplacePoi = _a.addRemoveReplacePoi, dayNumbers = _a.dayNumbers, _d = _a.stepOrder, stepOrder = _d === void 0 ? -1 : _d, _e = _a.replace, replace = _e === void 0 ? false : _e, _f = _a.hideActionButtons, hideActionButtons = _f === void 0 ? false : _f, _g = _a.hideFavoriteIcon, hideFavoriteIcon = _g === void 0 ? false : _g, _h = _a.hideScore, hideScore = _h === void 0 ? false : _h, _j = _a.hidePartOfDay, hidePartOfDay = _j === void 0 ? false : _j, _k = _a.hideFeatures, hideFeatures = _k === void 0 ? false : _k, _l = _a.hideCuisine, hideCuisine = _l === void 0 ? false : _l, bookingButtonClick = _a.bookingButtonClick, planDate = _a.planDate, favoriteLoading = _a.favoriteLoading, reservationUrl = _a.reservationUrl, hideBookingButton = _a.hideBookingButton, _m = _a.square, square = _m === void 0 ? true : _m, hideTours = _a.hideTours, getTourInfo = _a.getTourInfo, TOUR_PROVIDER_IDS = _a.TOUR_PROVIDER_IDS, TICKET_PROVIDER_IDS = _a.TICKET_PROVIDER_IDS, RESTAURANT_RESERVATION_PROVIDER_IDS = _a.RESTAURANT_RESERVATION_PROVIDER_IDS, myOffers = _a.myOffers, isLoadingOffer = _a.isLoadingOffer, offerButtonClick = _a.offerButtonClick, offerCardClicked = _a.offerCardClicked, hideOffers = _a.hideOffers,
|
|
56959
56959
|
// offerClicked,
|
|
56960
56960
|
loadingFeedback = _a.loadingFeedback, feedbackSubjects = _a.feedbackSubjects, sendFeedback = _a.sendFeedback, placeInfoCallBack = _a.placeInfoCallBack, redeemClicked = _a.redeemClicked, t = _a.t;
|
|
56961
|
-
var
|
|
56962
|
-
var
|
|
56963
|
-
var
|
|
56961
|
+
var _o = (0, react_1.useState)(false), openTours = _o[0], setOpenTours = _o[1];
|
|
56962
|
+
var _p = (0, react_1.useState)(false), showFeedbackModal = _p[0], setShowFeedbackModal = _p[1];
|
|
56963
|
+
var _q = (0, react_1.useState)([]), optInModalWarningMessage = _q[0], setOptInModalWarningMessage = _q[1];
|
|
56964
56964
|
var offerRef = react_1.default.createRef();
|
|
56965
56965
|
var myRef = react_1.default.createRef();
|
|
56966
56966
|
moment_1.default.locale(window.twindow.langCode);
|
|
@@ -57002,7 +57002,7 @@ var PoiInfo = function (_a) {
|
|
|
57002
57002
|
react_1.default.createElement("span", null, Math.round(scoreDetail.scored)),
|
|
57003
57003
|
" ",
|
|
57004
57004
|
react_1.default.createElement("div", { className: PoiInfo_scss_1.default.bar, style: { width: "".concat(Math.round(scoreDetail.scored), "%") } }))); }))),
|
|
57005
|
-
react_1.default.createElement(PoiInfoText_1.default, { poi: poi, hideFavoriteIcon: hideFavoriteIcon, favorite: favorite, favoriteLoading: favoriteLoading, favoriteClick: function (fav) {
|
|
57005
|
+
react_1.default.createElement(PoiInfoText_1.default, { poi: poi, hideFavoriteIcon: hideFavoriteIcon, hidePartOfDay: hidePartOfDay, hideFeatures: hideFeatures, hideCuisine: hideCuisine, favorite: favorite, favoriteLoading: favoriteLoading, favoriteClick: function (fav) {
|
|
57006
57006
|
toggleFavorite(poi, fav);
|
|
57007
57007
|
}, stepOrder: stepOrder, replace: replace, addRemoveReplacePoi: addRemoveReplacePoi, hideActionButtons: hideActionButtons, dayNumbers: dayNumbers, planDate: planDate, reservationUrl: reservationUrl, hideBookingButton: hideBookingButton, bookingButtonClick: bookingButtonClick, RESTAURANT_RESERVATION_PROVIDER_IDS: RESTAURANT_RESERVATION_PROVIDER_IDS, t: t }),
|
|
57008
57008
|
!hideOffers && poi.offers && poi.offers.length > 0 && (react_1.default.createElement("div", { className: "col col12 px5 pb5" },
|
|
@@ -57248,7 +57248,7 @@ var POI_CARD_ACTION;
|
|
|
57248
57248
|
})(POI_CARD_ACTION || (POI_CARD_ACTION = {}));
|
|
57249
57249
|
var PoiInfoText = function (_a) {
|
|
57250
57250
|
var _b;
|
|
57251
|
-
var poi = _a.poi, hideFavoriteIcon = _a.hideFavoriteIcon, favorite = _a.favorite, favoriteLoading = _a.favoriteLoading, favoriteClick = _a.favoriteClick, _c = _a.stepOrder, stepOrder = _c === void 0 ? -1 : _c, replace = _a.replace, hideActionButtons = _a.hideActionButtons, addRemoveReplacePoi = _a.addRemoveReplacePoi, dayNumbers = _a.dayNumbers, planDate = _a.planDate, reservationUrl = _a.reservationUrl, _d = _a.hideBookingButton, hideBookingButton = _d === void 0 ? false : _d, bookingButtonClick = _a.bookingButtonClick, RESTAURANT_RESERVATION_PROVIDER_IDS = _a.RESTAURANT_RESERVATION_PROVIDER_IDS, t = _a.t;
|
|
57251
|
+
var poi = _a.poi, hideFavoriteIcon = _a.hideFavoriteIcon, hidePartOfDay = _a.hidePartOfDay, hideFeatures = _a.hideFeatures, hideCuisine = _a.hideCuisine, favorite = _a.favorite, favoriteLoading = _a.favoriteLoading, favoriteClick = _a.favoriteClick, _c = _a.stepOrder, stepOrder = _c === void 0 ? -1 : _c, replace = _a.replace, hideActionButtons = _a.hideActionButtons, addRemoveReplacePoi = _a.addRemoveReplacePoi, dayNumbers = _a.dayNumbers, planDate = _a.planDate, reservationUrl = _a.reservationUrl, _d = _a.hideBookingButton, hideBookingButton = _d === void 0 ? false : _d, bookingButtonClick = _a.bookingButtonClick, RESTAURANT_RESERVATION_PROVIDER_IDS = _a.RESTAURANT_RESERVATION_PROVIDER_IDS, t = _a.t;
|
|
57252
57252
|
var _e = (0, react_1.useState)(false), show = _e[0], setShow = _e[1];
|
|
57253
57253
|
// const isAttraction = helper.getCategoryGroup(poi.category[0].id) === Model.POI_CATEGORY_GROUP.ATTRACTION;
|
|
57254
57254
|
var isRestaurant = poi.bookings.some(function (booking) { return RESTAURANT_RESERVATION_PROVIDER_IDS.includes(booking.providerId); }) && model_1.helper.getCategoryGroup(poi.category[0].id) === model_1.default.POI_CATEGORY_GROUP.RESTAURANT;
|
|
@@ -57342,7 +57342,7 @@ var PoiInfoText = function (_a) {
|
|
|
57342
57342
|
.join(', '), " ").concat(t('trips.myTrips.itinerary.step.poi.and'), " ").concat(dayNumbers[dayNumbers.length - 1]);
|
|
57343
57343
|
else
|
|
57344
57344
|
header = "".concat(header, " ").concat(dayNumbers[0]);
|
|
57345
|
-
partOfDay = (react_1.default.createElement(PoiInfoTextRow_1.default, null,
|
|
57345
|
+
partOfDay = !hidePartOfDay && (react_1.default.createElement(PoiInfoTextRow_1.default, null,
|
|
57346
57346
|
react_1.default.createElement(PoiInfoTextRow_1.PoiInfoTextRowHeader, { header: header }),
|
|
57347
57347
|
react_1.default.createElement(TapRight_1.default, null)));
|
|
57348
57348
|
}
|
|
@@ -57432,7 +57432,7 @@ var PoiInfoText = function (_a) {
|
|
|
57432
57432
|
*/
|
|
57433
57433
|
var cuisinesArray = ((_b = poi.cuisines) === null || _b === void 0 ? void 0 : _b.split(', ')) || [];
|
|
57434
57434
|
var uniqueCuisines = model_1.helper.removeDuplicateValues(cuisinesArray, function (s1, s2) { return s1 === s2; });
|
|
57435
|
-
var poiCuisines = uniqueCuisines.length > 0 ? (react_1.default.createElement(react_1.default.Fragment, null,
|
|
57435
|
+
var poiCuisines = uniqueCuisines.length > 0 && !hideCuisine ? (react_1.default.createElement(react_1.default.Fragment, null,
|
|
57436
57436
|
react_1.default.createElement(PoiInfoTextRow_1.default, { border: false },
|
|
57437
57437
|
react_1.default.createElement(PoiInfoTextRow_1.PoiInfoTextRowHeader, { header: t('trips.myTrips.itinerary.step.poi.cuisine') })),
|
|
57438
57438
|
react_1.default.createElement(PoiInfoTextRow_1.default, { border: false, height: "auto" },
|
|
@@ -57440,7 +57440,7 @@ var PoiInfoText = function (_a) {
|
|
|
57440
57440
|
/**
|
|
57441
57441
|
* Features
|
|
57442
57442
|
*/
|
|
57443
|
-
var poiFeatures = poi.tags.length > 0 ? (react_1.default.createElement(react_1.default.Fragment, null,
|
|
57443
|
+
var poiFeatures = poi.tags.length > 0 && !hideFeatures ? (react_1.default.createElement(react_1.default.Fragment, null,
|
|
57444
57444
|
react_1.default.createElement(PoiInfoTextRow_1.default, { border: false },
|
|
57445
57445
|
react_1.default.createElement(PoiInfoTextRow_1.PoiInfoTextRowHeader, { header: t('trips.myTrips.itinerary.step.poi.tags.title') })),
|
|
57446
57446
|
react_1.default.createElement(PoiInfoTextRow_1.default, { border: false, height: "auto" },
|
|
@@ -79807,7 +79807,7 @@ var helper_1 = __webpack_require__(88);
|
|
|
79807
79807
|
var GMarkerProviderTourBase = function (_a) {
|
|
79808
79808
|
var coordinate = _a.coordinate, animation = _a.animation, clusterer = _a.clusterer, color = _a.color, markerTourClicked = _a.markerTourClicked;
|
|
79809
79809
|
var markerIcon = (0, react_1.useMemo)(function () { return ({
|
|
79810
|
-
url: (0, helper_1.iconUrl)('
|
|
79810
|
+
url: (0, helper_1.iconUrl)('Camel', color),
|
|
79811
79811
|
scaledSize: new google.maps.Size(28, 40),
|
|
79812
79812
|
}); }, [color]);
|
|
79813
79813
|
return (react_1.default.createElement(api_1.Marker, { position: coordinate, icon: markerIcon, onClick: function () {
|
|
@@ -82808,7 +82808,9 @@ var MapCategory = function (_a) {
|
|
|
82808
82808
|
clearCategories();
|
|
82809
82809
|
}, onKeyDown: function () { }, tabIndex: 0, role: "button" }, "CLEAR ALL"))),
|
|
82810
82810
|
categoryGroups &&
|
|
82811
|
-
categoryGroups
|
|
82811
|
+
categoryGroups
|
|
82812
|
+
.sort(function (a, b) { return a.group.localeCompare(b.group); })
|
|
82813
|
+
.map(function (categoryGroup) { return (react_1.default.createElement("li", { className: "".concat(MapCategory_scss_1.default.category, " ").concat(categoryGroup.ids.every(function (id) { return selectedPoiCategoryIds.includes(id); }) ? MapCategory_scss_1.default.selectedCategory : ''), key: categoryGroup.group },
|
|
82812
82814
|
react_1.default.createElement("label", null,
|
|
82813
82815
|
react_1.default.createElement("input", { className: MapCategory_scss_1.default.categoryInput, type: "checkbox", checked: categoryGroup.ids.every(function (id) { return selectedPoiCategoryIds.includes(id); }), onChange: function () { return handleCategoryGroupChange(categoryGroup); } }),
|
|
82814
82816
|
categoryGroup.group))); })));
|
|
@@ -84986,8 +84988,8 @@ var StepCard = function (_a) {
|
|
|
84986
84988
|
// isSortableStepListCard,
|
|
84987
84989
|
clicked = _a.clicked, alternativePois = _a.alternativePois, alternativePoisDays = _a.alternativePoisDays, alternativePoiCardClicked = _a.alternativePoiCardClicked, alternativeReplace = _a.alternativeReplace, showAlternativesChange = _a.showAlternativesChange, _c = _a.showAlternatives, showAlternatives = _c === void 0 ? false : _c, timesClicked = _a.timesClicked,
|
|
84988
84990
|
// dragHandle,
|
|
84989
|
-
TOUR_PROVIDER_IDS = _a.TOUR_PROVIDER_IDS, TICKET_PROVIDER_IDS = _a.TICKET_PROVIDER_IDS, RESTAURANT_RESERVATION_PROVIDER_IDS = _a.RESTAURANT_RESERVATION_PROVIDER_IDS, _d = _a.hideReservationIcon, hideReservationIcon = _d === void 0 ? false : _d, _e = _a.hideTourTicketIcons, hideTourTicketIcons = _e === void 0 ? false : _e, hideOfferIcon = _a.hideOfferIcon, _f = _a.hideScore, hideScore = _f === void 0 ? false : _f, _g = _a.hideStepsTime, hideStepsTime = _g === void 0 ? false : _g, _h = _a.
|
|
84990
|
-
var
|
|
84991
|
+
TOUR_PROVIDER_IDS = _a.TOUR_PROVIDER_IDS, TICKET_PROVIDER_IDS = _a.TICKET_PROVIDER_IDS, RESTAURANT_RESERVATION_PROVIDER_IDS = _a.RESTAURANT_RESERVATION_PROVIDER_IDS, _d = _a.hideReservationIcon, hideReservationIcon = _d === void 0 ? false : _d, _e = _a.hideTourTicketIcons, hideTourTicketIcons = _e === void 0 ? false : _e, hideOfferIcon = _a.hideOfferIcon, _f = _a.hideScore, hideScore = _f === void 0 ? false : _f, _g = _a.hideStepsTime, hideStepsTime = _g === void 0 ? false : _g, _h = _a.hideFeatures, hideFeatures = _h === void 0 ? false : _h, _j = _a.hideCuisine, hideCuisine = _j === void 0 ? false : _j, _k = _a.isWidget, isWidget = _k === void 0 ? false : _k, t = _a.t;
|
|
84992
|
+
var _l = (0, react_1.useState)(false), show = _l[0], setShow = _l[1];
|
|
84991
84993
|
var placeImg = step.poi.image === null ? emptyImage_1.default : model_1.helper.imgUrl("".concat(step.poi.image.url), 256, 256);
|
|
84992
84994
|
var attraction = model_1.helper.getCategoryGroup(step.poi.category[0].id) === model_1.default.POI_CATEGORY_GROUP.ATTRACTION;
|
|
84993
84995
|
var notCategorized = model_1.helper.getCategoryGroup(step.poi.category[0].id) === model_1.default.POI_CATEGORY_GROUP.NOTCATEGORIZED;
|
|
@@ -85071,17 +85073,17 @@ var StepCard = function (_a) {
|
|
|
85071
85073
|
react_1.default.createElement("span", { className: "".concat(StepCard_scss_1.default.stepCardBull, " px3") }, "\u2022"),
|
|
85072
85074
|
react_1.default.createElement(Price_1.default, { price: step.poi.price }))) : null),
|
|
85073
85075
|
react_1.default.createElement("div", { className: StepCard_scss_1.default.stepInfo },
|
|
85074
|
-
uniqueCuisines.length > 0
|
|
85076
|
+
uniqueCuisines.length > 0 && !hideCuisine && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
85075
85077
|
react_1.default.createElement("span", { className: "".concat(StepCard_scss_1.default.cuisines, " mt1") },
|
|
85076
85078
|
react_1.default.createElement("b", null,
|
|
85077
85079
|
t('trips.myTrips.itinerary.step.cuisine'),
|
|
85078
85080
|
": "),
|
|
85079
|
-
uniqueCuisines.join(', '))))
|
|
85080
|
-
step.poi.tags.length > 0
|
|
85081
|
+
uniqueCuisines.join(', ')))),
|
|
85082
|
+
step.poi.tags.length > 0 && !hideFeatures && (react_1.default.createElement("span", { className: StepCard_scss_1.default.features },
|
|
85081
85083
|
react_1.default.createElement("b", null,
|
|
85082
85084
|
t('trips.myTrips.itinerary.step.features'),
|
|
85083
85085
|
": "),
|
|
85084
|
-
step.poi.tags.length > 0 ? step.poi.tags.join(', ') : 'empty'))
|
|
85086
|
+
step.poi.tags.length > 0 ? step.poi.tags.join(', ') : 'empty')))));
|
|
85085
85087
|
}
|
|
85086
85088
|
/* if (isSortableStepListCard) {
|
|
85087
85089
|
return <SortableStepListCard poiName={step.poi.name} poiImageUrl={step.poi.image.url} stepOrder={step.order} dragHandle={dragHandle} />;
|
|
@@ -85200,10 +85202,10 @@ var StepCardUserReaction = function (_a) {
|
|
|
85200
85202
|
var _b;
|
|
85201
85203
|
var step = _a.step, clicked = _a.clicked, alternativePois = _a.alternativePois, alternativePoisDays = _a.alternativePoisDays, alternativePoiCardClicked = _a.alternativePoiCardClicked, alternativeReplace = _a.alternativeReplace, showAlternativesChange = _a.showAlternativesChange, _c = _a.showAlternatives, showAlternatives = _c === void 0 ? false : _c, _d = _a.showRemoveReplaceButtons, showRemoveReplaceButtons = _d === void 0 ? true : _d, _e = _a.hideScore, hideScore = _e === void 0 ? false : _e, _f = _a.hideStepsTime, hideStepsTime = _f === void 0 ? false : _f, _g = _a.isWidget, isWidget = _g === void 0 ? false : _g, thumbs = _a.thumbs, thumbsLoading = _a.thumbsLoading, thumbsClicked = _a.thumbsClicked, timesClicked = _a.timesClicked, userReactionUndo = _a.userReactionUndo, userReactionRemoveStep = _a.userReactionRemoveStep,
|
|
85202
85204
|
// userReactionComment,
|
|
85203
|
-
TOUR_PROVIDER_IDS = _a.TOUR_PROVIDER_IDS, TICKET_PROVIDER_IDS = _a.TICKET_PROVIDER_IDS, RESTAURANT_RESERVATION_PROVIDER_IDS = _a.RESTAURANT_RESERVATION_PROVIDER_IDS, _h = _a.hideReservationIcon, hideReservationIcon = _h === void 0 ? false : _h, _j = _a.hideTourTicketIcons, hideTourTicketIcons = _j === void 0 ? false : _j, hideOfferIcon = _a.hideOfferIcon, t = _a.t;
|
|
85205
|
+
TOUR_PROVIDER_IDS = _a.TOUR_PROVIDER_IDS, TICKET_PROVIDER_IDS = _a.TICKET_PROVIDER_IDS, RESTAURANT_RESERVATION_PROVIDER_IDS = _a.RESTAURANT_RESERVATION_PROVIDER_IDS, _h = _a.hideReservationIcon, hideReservationIcon = _h === void 0 ? false : _h, _j = _a.hideTourTicketIcons, hideTourTicketIcons = _j === void 0 ? false : _j, hideOfferIcon = _a.hideOfferIcon, _k = _a.hideFeatures, hideFeatures = _k === void 0 ? false : _k, _l = _a.hideCuisine, hideCuisine = _l === void 0 ? false : _l, t = _a.t;
|
|
85204
85206
|
var myRef = react_1.default.createRef();
|
|
85205
85207
|
var ref = react_1.default.createRef();
|
|
85206
|
-
var
|
|
85208
|
+
var _m = (0, react_1.useState)(false), show = _m[0], setShow = _m[1];
|
|
85207
85209
|
var placeImg = step.poi.image === null ? emptyImage_1.default : model_1.helper.imgUrl("".concat(step.poi.image.url), 256, 256);
|
|
85208
85210
|
var attraction = model_1.helper.getCategoryGroup(step.poi.category[0].id) === model_1.default.POI_CATEGORY_GROUP.ATTRACTION;
|
|
85209
85211
|
var shopping = model_1.helper.getCategoryGroup(step.poi.category[0].id) === model_1.default.POI_CATEGORY_GROUP.SHOPPING;
|
|
@@ -85321,17 +85323,17 @@ var StepCardUserReaction = function (_a) {
|
|
|
85321
85323
|
react_1.default.createElement("span", { className: "".concat(StepCardUserReaction_scss_1.default.stepCardBull, " px3") }, "\u2022"),
|
|
85322
85324
|
react_1.default.createElement(Price_1.default, { price: step.poi.price }))) : null),
|
|
85323
85325
|
react_1.default.createElement("div", { className: StepCardUserReaction_scss_1.default.stepInfo },
|
|
85324
|
-
uniqueCuisines.length > 0
|
|
85326
|
+
uniqueCuisines.length > 0 && !hideCuisine && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
85325
85327
|
react_1.default.createElement("span", { className: "".concat(StepCardUserReaction_scss_1.default.cuisines, " mt1") },
|
|
85326
85328
|
react_1.default.createElement("b", null,
|
|
85327
85329
|
t('trips.myTrips.itinerary.step.cuisine'),
|
|
85328
85330
|
": "),
|
|
85329
|
-
uniqueCuisines.join(', '))))
|
|
85330
|
-
step.poi.tags.length > 0
|
|
85331
|
+
uniqueCuisines.join(', ')))),
|
|
85332
|
+
step.poi.tags.length > 0 && !hideFeatures && (react_1.default.createElement("span", { className: StepCardUserReaction_scss_1.default.features },
|
|
85331
85333
|
react_1.default.createElement("b", null,
|
|
85332
85334
|
t('trips.myTrips.itinerary.step.features'),
|
|
85333
85335
|
": "),
|
|
85334
|
-
step.poi.tags.length > 0 ? step.poi.tags.join(', ') : 'empty'))
|
|
85336
|
+
step.poi.tags.length > 0 ? step.poi.tags.join(', ') : 'empty')))));
|
|
85335
85337
|
}
|
|
85336
85338
|
return (react_1.default.createElement("div", { style: { marginLeft: isWidget ? '1.5rem' : '0' }, className: StepCardUserReaction_scss_1.default.stepCardMain },
|
|
85337
85339
|
react_1.default.createElement("div", { className: StepCardUserReaction_scss_1.default.stepCard, onKeyDown: function () { }, role: "button", tabIndex: 0, onClick: function () {
|
|
@@ -85396,10 +85398,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
85396
85398
|
var react_1 = __importDefault(__webpack_require__(0));
|
|
85397
85399
|
var PoiInfo_1 = __importDefault(__webpack_require__(411));
|
|
85398
85400
|
var StepInfo = function (_a) {
|
|
85399
|
-
var step = _a.step, favorite = _a.favorite, toggleFavorite = _a.toggleFavorite, removeStep = _a.removeStep, close = _a.close, dayNumbers = _a.dayNumbers, hideActionButtons = _a.hideActionButtons, _b = _a.hideFavoriteIcon, hideFavoriteIcon = _b === void 0 ? false : _b, hideScore = _a.hideScore, bookingButtonClick = _a.bookingButtonClick, planDate = _a.planDate, favoriteLoading = _a.favoriteLoading, reservationUrl = _a.reservationUrl, hideBookingButton = _a.hideBookingButton, hideTours = _a.hideTours, getTourInfo = _a.getTourInfo, TOUR_PROVIDER_IDS = _a.TOUR_PROVIDER_IDS, TICKET_PROVIDER_IDS = _a.TICKET_PROVIDER_IDS, RESTAURANT_RESERVATION_PROVIDER_IDS = _a.RESTAURANT_RESERVATION_PROVIDER_IDS, myOffers = _a.myOffers, isLoadingOffer = _a.isLoadingOffer, offerButtonClick = _a.offerButtonClick, offerCardClicked = _a.offerCardClicked, hideOffers = _a.hideOffers, loadingFeedback = _a.loadingFeedback, feedbackSubjects = _a.feedbackSubjects, sendFeedback = _a.sendFeedback, placeInfoCallBack = _a.placeInfoCallBack, showStepScoreDetails = _a.showStepScoreDetails, t = _a.t;
|
|
85401
|
+
var step = _a.step, favorite = _a.favorite, toggleFavorite = _a.toggleFavorite, removeStep = _a.removeStep, close = _a.close, dayNumbers = _a.dayNumbers, hideActionButtons = _a.hideActionButtons, _b = _a.hideFavoriteIcon, hideFavoriteIcon = _b === void 0 ? false : _b, hideScore = _a.hideScore, hidePartOfDay = _a.hidePartOfDay, hideFeatures = _a.hideFeatures, hideCuisine = _a.hideCuisine, bookingButtonClick = _a.bookingButtonClick, planDate = _a.planDate, favoriteLoading = _a.favoriteLoading, reservationUrl = _a.reservationUrl, hideBookingButton = _a.hideBookingButton, hideTours = _a.hideTours, getTourInfo = _a.getTourInfo, TOUR_PROVIDER_IDS = _a.TOUR_PROVIDER_IDS, TICKET_PROVIDER_IDS = _a.TICKET_PROVIDER_IDS, RESTAURANT_RESERVATION_PROVIDER_IDS = _a.RESTAURANT_RESERVATION_PROVIDER_IDS, myOffers = _a.myOffers, isLoadingOffer = _a.isLoadingOffer, offerButtonClick = _a.offerButtonClick, offerCardClicked = _a.offerCardClicked, hideOffers = _a.hideOffers, loadingFeedback = _a.loadingFeedback, feedbackSubjects = _a.feedbackSubjects, sendFeedback = _a.sendFeedback, placeInfoCallBack = _a.placeInfoCallBack, showStepScoreDetails = _a.showStepScoreDetails, t = _a.t;
|
|
85400
85402
|
return (react_1.default.createElement(PoiInfo_1.default, { score: step.score, scoreDetails: showStepScoreDetails ? step.scoreDetails : undefined, dayNumbers: dayNumbers, poi: step.poi, favorite: favorite, toggleFavorite: toggleFavorite, close: close, addRemoveReplacePoi: function () {
|
|
85401
85403
|
removeStep(step.id);
|
|
85402
|
-
}, stepOrder: step.order, hideActionButtons: hideActionButtons, hideFavoriteIcon: hideFavoriteIcon, hideScore: hideScore, bookingButtonClick: bookingButtonClick, planDate: planDate, favoriteLoading: favoriteLoading, reservationUrl: reservationUrl, hideBookingButton: hideBookingButton, square: false, hideTours: hideTours, getTourInfo: getTourInfo, TOUR_PROVIDER_IDS: TOUR_PROVIDER_IDS, TICKET_PROVIDER_IDS: TICKET_PROVIDER_IDS, RESTAURANT_RESERVATION_PROVIDER_IDS: RESTAURANT_RESERVATION_PROVIDER_IDS, myOffers: myOffers, isLoadingOffer: isLoadingOffer, offerButtonClick: offerButtonClick, offerCardClicked: offerCardClicked, hideOffers: hideOffers, loadingFeedback: loadingFeedback, feedbackSubjects: feedbackSubjects, sendFeedback: sendFeedback, placeInfoCallBack: placeInfoCallBack, t: t }));
|
|
85404
|
+
}, stepOrder: step.order, hideActionButtons: hideActionButtons, hideFavoriteIcon: hideFavoriteIcon, hideScore: hideScore, hidePartOfDay: hidePartOfDay, hideFeatures: hideFeatures, hideCuisine: hideCuisine, bookingButtonClick: bookingButtonClick, planDate: planDate, favoriteLoading: favoriteLoading, reservationUrl: reservationUrl, hideBookingButton: hideBookingButton, square: false, hideTours: hideTours, getTourInfo: getTourInfo, TOUR_PROVIDER_IDS: TOUR_PROVIDER_IDS, TICKET_PROVIDER_IDS: TICKET_PROVIDER_IDS, RESTAURANT_RESERVATION_PROVIDER_IDS: RESTAURANT_RESERVATION_PROVIDER_IDS, myOffers: myOffers, isLoadingOffer: isLoadingOffer, offerButtonClick: offerButtonClick, offerCardClicked: offerCardClicked, hideOffers: hideOffers, loadingFeedback: loadingFeedback, feedbackSubjects: feedbackSubjects, sendFeedback: sendFeedback, placeInfoCallBack: placeInfoCallBack, t: t }));
|
|
85403
85405
|
};
|
|
85404
85406
|
exports.default = StepInfo;
|
|
85405
85407
|
|