@tripian/react 9.0.36 → 9.0.37
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
CHANGED
|
@@ -82509,6 +82509,20 @@ var ItineraryCardSlider = function (_a) {
|
|
|
82509
82509
|
nextEl: '.swiper-button-next',
|
|
82510
82510
|
prevEl: '.swiper-button-prev',
|
|
82511
82511
|
},
|
|
82512
|
+
breakpoints: {
|
|
82513
|
+
320: {
|
|
82514
|
+
slidesPerView: 2,
|
|
82515
|
+
},
|
|
82516
|
+
640: {
|
|
82517
|
+
slidesPerView: 3,
|
|
82518
|
+
},
|
|
82519
|
+
1024: {
|
|
82520
|
+
slidesPerView: 4,
|
|
82521
|
+
},
|
|
82522
|
+
2048: {
|
|
82523
|
+
slidesPerView: 6,
|
|
82524
|
+
},
|
|
82525
|
+
},
|
|
82512
82526
|
renderPrevButton: function () { return (react_1.default.createElement("div", { className: "swiper-button-prev" },
|
|
82513
82527
|
react_1.default.createElement(Icons_1.PreviousArrow, { size: "2rem" }))); },
|
|
82514
82528
|
renderNextButton: function () { return (react_1.default.createElement("div", { className: "swiper-button-next" },
|
|
@@ -84822,12 +84836,12 @@ var emptyImage_1 = __importDefault(__webpack_require__(70));
|
|
|
84822
84836
|
var StepCardUserReaction_scss_1 = __importDefault(__webpack_require__(914));
|
|
84823
84837
|
var StepCardUserReaction = function (_a) {
|
|
84824
84838
|
var _b;
|
|
84825
|
-
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, thumbs = _a.thumbs, thumbsLoading = _a.thumbsLoading, thumbsClicked = _a.thumbsClicked, timesClicked = _a.timesClicked, userReactionUndo = _a.userReactionUndo, userReactionRemoveStep = _a.userReactionRemoveStep,
|
|
84839
|
+
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,
|
|
84826
84840
|
// userReactionComment,
|
|
84827
|
-
TOUR_PROVIDER_IDS = _a.TOUR_PROVIDER_IDS, TICKET_PROVIDER_IDS = _a.TICKET_PROVIDER_IDS, RESTAURANT_RESERVATION_PROVIDER_IDS = _a.RESTAURANT_RESERVATION_PROVIDER_IDS,
|
|
84841
|
+
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;
|
|
84828
84842
|
var myRef = react_1.default.createRef();
|
|
84829
84843
|
var ref = react_1.default.createRef();
|
|
84830
|
-
var
|
|
84844
|
+
var _k = (0, react_1.useState)(false), show = _k[0], setShow = _k[1];
|
|
84831
84845
|
var placeImg = step.poi.image === null ? emptyImage_1.default : model_1.helper.imgUrl("".concat(step.poi.image.url), 256, 256);
|
|
84832
84846
|
var attraction = model_1.helper.getCategoryGroup(step.poi.category[0].id) === model_1.default.POI_CATEGORY_GROUP.ATTRACTION;
|
|
84833
84847
|
var shopping = model_1.helper.getCategoryGroup(step.poi.category[0].id) === model_1.default.POI_CATEGORY_GROUP.SHOPPING;
|
|
@@ -84957,7 +84971,7 @@ var StepCardUserReaction = function (_a) {
|
|
|
84957
84971
|
": "),
|
|
84958
84972
|
step.poi.tags.length > 0 ? step.poi.tags.join(', ') : 'empty')) : null)));
|
|
84959
84973
|
}
|
|
84960
|
-
return (react_1.default.createElement("div", { className: StepCardUserReaction_scss_1.default.stepCardMain },
|
|
84974
|
+
return (react_1.default.createElement("div", { style: { marginLeft: isWidget ? '1.5rem' : '0' }, className: StepCardUserReaction_scss_1.default.stepCardMain },
|
|
84961
84975
|
react_1.default.createElement("div", { className: StepCardUserReaction_scss_1.default.stepCard, onKeyDown: function () { }, role: "button", tabIndex: 0, onClick: function () {
|
|
84962
84976
|
clicked(step);
|
|
84963
84977
|
}, ref: myRef },
|