iticket-seatingplan-dev 1.5.9 → 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.
package/dist/components/Map.js
CHANGED
|
@@ -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$
|
|
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,
|
|
@@ -24,12 +24,16 @@ button {
|
|
|
24
24
|
width: 100%;
|
|
25
25
|
height: 100%;
|
|
26
26
|
position: relative;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.seating-plan-container {
|
|
27
30
|
--accent: rgb(99 102 241);
|
|
28
31
|
--accent-dark: rgb(55 48 163);
|
|
29
32
|
--accent-light: rgb(224 231 255);
|
|
30
33
|
--flexi-accent: rgb(227 38 100);
|
|
31
34
|
--flexi-accent-light: rgb(255 211 226);
|
|
32
35
|
--flexi-accent-dark: rgb(190 0 63);
|
|
36
|
+
font-family: inherit;
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
.legendBox {
|
package/dist/utils/helpers.js
CHANGED
|
@@ -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;
|