iticket-seatingplan-dev 1.7.6 → 1.7.7

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.
@@ -430,6 +430,7 @@ function SeatMap(_ref) {
430
430
  const seatPrices = ((_seats$pricing3 = seats.pricing) === null || _seats$pricing3 === void 0 ? void 0 : _seats$pricing3.filter(price => (!priceSectionIds || priceSectionIds.includes(price.psId)) && price.psId === s.psId)) || [];
431
431
  const hasSeatPrices = (seatPrices === null || seatPrices === void 0 ? void 0 : seatPrices.length) > 0;
432
432
  const isSingleFlexi = seatPrices.length === 1 && !!seatPrices[0].pMax && !!seatPrices[0].pMin && seatPrices[0].pMax > seatPrices[0].pMin;
433
+ const isOrphanMode = seats.preventOrphanedSeats && desiredSeatQuantity > 0;
433
434
  return /*#__PURE__*/_react.default.createElement("div", {
434
435
  key: i
435
436
  }, (s.loading || ticketPopupOpen && (chosenSeat === null || chosenSeat === void 0 || (_chosenSeat$seat = chosenSeat.seat) === null || _chosenSeat$seat === void 0 ? void 0 : _chosenSeat$seat.ssId) === s.ssId) && /*#__PURE__*/_react.default.createElement(_reactLeaflet.ImageOverlay, {
@@ -458,7 +459,7 @@ function SeatMap(_ref) {
458
459
  }
459
460
 
460
461
  // orphan multi-select mode
461
- if (seats.preventOrphanedSeats && desiredSeatQuantity > 0) {
462
+ if (isOrphanMode) {
462
463
  map.closePopup();
463
464
  if (s.s === _utils.statuses.USER_PENDING) {
464
465
  const newSeatsToRemove = (0, _utils.getAdjacentBookedSeats)(s, seatsMap);
@@ -524,7 +525,7 @@ function SeatMap(_ref) {
524
525
  setIsHoveringOnSeat(true);
525
526
  setHoveredSeat(s);
526
527
  setClickedSeat(s.ssId);
527
- if (seats.preventOrphanedSeats && desiredSeatQuantity > 0 && s.s === _utils.statuses.UNSOLD && mode === _utils.modes.SINGLE) {
528
+ if (isOrphanMode && s.s === _utils.statuses.UNSOLD && mode === _utils.modes.SINGLE) {
528
529
  const seatsToBook = (0, _utils.getValidSeats)(s, seatsMap, desiredSeatQuantity);
529
530
  if (seatsToBook.valid) {
530
531
  setHighlightedSeats(seatsToBook.seats);
@@ -562,11 +563,11 @@ function SeatMap(_ref) {
562
563
  });
563
564
  }
564
565
  }
565
- }, (0, _utils.isTouchScreen)() && /*#__PURE__*/_react.default.createElement(_reactLeaflet.Tooltip, {
566
+ }, (0, _utils.isTouchScreen)() && !isSingleFlexi && (seatPrices.length === 1 || isOrphanMode && highlightedSeats.length > 1) ? /*#__PURE__*/_react.default.createElement(_reactLeaflet.Tooltip, {
566
567
  className: "mobile-tooltip",
567
568
  direction: "top",
568
569
  offset: [0, height * 0.03 + -60]
569
- }, "Tap again to select these seats"), s.s === _utils.statuses.UNSOLD && hasSeatPrices ? /*#__PURE__*/_react.default.createElement(_reactLeaflet.Popup, {
570
+ }, "Tap again to select", " ", isOrphanMode && (highlightedSeats === null || highlightedSeats === void 0 ? void 0 : highlightedSeats.length) > 1 ? "these seats" : "this seat") : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), s.s === _utils.statuses.UNSOLD && hasSeatPrices ? /*#__PURE__*/_react.default.createElement(_reactLeaflet.Popup, {
570
571
  className: "ticket-popup popup-".concat(s.sId)
571
572
  }, isSingleFlexi ? /*#__PURE__*/_react.default.createElement("div", {
572
573
  className: "single-flexi"
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "iticket-seatingplan-dev",
3
3
  "description": "Seating plan with FLEXi pricing",
4
4
  "author": "gedwyne",
5
- "version": "1.7.6",
5
+ "version": "1.7.7",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "iticket",