iticket-seatingplan-dev 1.6.0 → 1.6.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.
@@ -377,17 +377,17 @@ function Map(_ref) {
377
377
  bounds: [[0, 0], [height * 0.03, width * 0.03]],
378
378
  zIndex: 10
379
379
  }), seats && seats.seats && seats.seats.map((s, i) => {
380
- var _chosenSeat$seat;
380
+ var _chosenSeat$seat, _chosenSeat$seat2;
381
381
  const isIcon = (!priceSectionIds || priceSectionIds.includes(s.psId)) && (s.s === _utils.statuses.WHEELCHAIR_ACCESS || s.s === _utils.statuses.USER_PENDING && s.m);
382
382
  const seatCenter = getSeatCenterLatLng(s, isIcon);
383
383
  const seatPrices = seats.pricing.filter(price => (!priceSectionIds || priceSectionIds.includes(price.psId)) && price.psId === s.psId);
384
384
  const isSingleFlexi = seatPrices.length === 1 && !!seatPrices[0].pMax && !!seatPrices[0].pMin && seatPrices[0].pMax > seatPrices[0].pMin;
385
385
  return /*#__PURE__*/_react.default.createElement("div", {
386
386
  key: i
387
- }, /*#__PURE__*/_react.default.createElement(_reactLeaflet.ImageOverlay, {
387
+ }, (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, {
388
388
  url: "https://iticketseatingplan.blob.core.windows.net/embed/static/media/rippleload.08e6a08dd832819226ef.gif",
389
389
  bounds: [[(s.r.includes("NORTH") ? getNorthSeatLat(s) : seatCenter.lat) - 0.11, seatCenter.lng - 0.11], [(s.r.includes("NORTH") ? getNorthSeatLat(s) : seatCenter.lat) + 0.11, seatCenter.lng + 0.11]],
390
- opacity: s.loading || ticketPopupOpen && (chosenSeat === null || chosenSeat === void 0 || (_chosenSeat$seat = chosenSeat.seat) === null || _chosenSeat$seat === void 0 ? void 0 : _chosenSeat$seat.ssId) === s.ssId ? 100 : 0,
390
+ opacity: s.loading || ticketPopupOpen && (chosenSeat === null || chosenSeat === void 0 || (_chosenSeat$seat2 = chosenSeat.seat) === null || _chosenSeat$seat2 === void 0 ? void 0 : _chosenSeat$seat2.ssId) === s.ssId ? 100 : 0,
391
391
  zIndex: 10
392
392
  }), !priceSectionIds || priceSectionIds.includes(s.psId) ? s.s === _utils.statuses.WHEELCHAIR_ACCESS ? /*#__PURE__*/_react.default.createElement(_reactLeaflet.ImageOverlay, {
393
393
  url: _encodedSvgs.wheelchairIcon,
@@ -490,7 +490,8 @@ const SeatingPlan = _ref => {
490
490
  bounds: bounds
491
491
  // @ts-ignore
492
492
  ,
493
- whenReady: setMap
493
+ whenReady: setMap,
494
+ preferCanvas: true
494
495
  }, /*#__PURE__*/_react.default.createElement(_Map.default, {
495
496
  seats: seats,
496
497
  height: height,
@@ -18,7 +18,8 @@ const getInitialColor = (s, price, selected) => {
18
18
  return {
19
19
  fillColor: s.s === _enums.statuses.UNSOLD ? _enums.statusColors.available : s.s === _enums.statuses.USER_PENDING ? s.bookedPrice === price ? _enums.statusColors.booked : _enums.statusColors.bookedWithDifferentPrice : _enums.statusColors.sold,
20
20
  color: "none",
21
- fillOpacity: s.loading ? 0 : 1
21
+ fillOpacity: s.loading ? 0 : 1,
22
+ stroke: false
22
23
  };
23
24
  };
24
25
  exports.getInitialColor = getInitialColor;
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.6.0",
5
+ "version": "1.6.1",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "iticket",