iticket-seatingplan-dev 1.0.27 → 1.0.29
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.
|
@@ -163,7 +163,8 @@ const SeatingPlan = _ref => {
|
|
|
163
163
|
// https://ecommerce-main-f0c3c0b.d2.zuplo.dev
|
|
164
164
|
(0, _react.useEffect)(() => {
|
|
165
165
|
if (!position && !error) {
|
|
166
|
-
fetch(
|
|
166
|
+
fetch( // `http://localhost:3155/api/legacy/shop/events/4230/4639/showings/102359/tickets/allocated/1603`,
|
|
167
|
+
"".concat(baseUrl, "/legacy/").concat(countryCode, "/shop/events/").concat(eventId, "/").concat(eventVenueId, "/showings/").concat(showingId, "/tickets/allocated/").concat(areaId), {
|
|
167
168
|
headers: {
|
|
168
169
|
'basket-key': sessionId,
|
|
169
170
|
Authorization: "Bearer ".concat(apiKey)
|
|
@@ -212,7 +213,8 @@ const SeatingPlan = _ref => {
|
|
|
212
213
|
});
|
|
213
214
|
}
|
|
214
215
|
}, [chosenSeat, processing]);
|
|
215
|
-
|
|
216
|
+
|
|
217
|
+
// console.log(height, width)
|
|
216
218
|
// return seating plan
|
|
217
219
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
218
220
|
style: {
|
|
@@ -238,7 +240,7 @@ const SeatingPlan = _ref => {
|
|
|
238
240
|
key: i
|
|
239
241
|
}, /*#__PURE__*/_react.default.createElement(_reactLeaflet.ImageOverlay, {
|
|
240
242
|
url: "https://iticketseatingplan.blob.core.windows.net/embed/static/media/rippleload.08e6a08dd832819226ef.gif",
|
|
241
|
-
bounds: [[height * 0.
|
|
243
|
+
bounds: [[height * 0.0305 - s.y * 0.57 - height * (height > 700 ? 0.0001 : 0.0006) - 0.3, s.x * 0.6 + 0.25 - 0.3], [height * 0.0305 - s.y * 0.57 - height * (height > 700 ? 0.0001 : 0.0006) + 0.3, s.x * 0.6 + 0.25 + 0.3]
|
|
242
244
|
// [height * 0.0302 - s.y * 0.602 - 0.3, s.x * 0.61 - 0.3],
|
|
243
245
|
// [height * 0.0302 - s.y * 0.602 + 0.3, s.x * 0.61 + 0.3],
|
|
244
246
|
// [height * 0.0302 - s.y * 0.602 - 0.17, s.x * 0.61 - 0.17],
|
|
@@ -258,13 +260,13 @@ const SeatingPlan = _ref => {
|
|
|
258
260
|
// height * 0.0302 - s.y * 0.602 + 0.17,
|
|
259
261
|
// s.x * 0.61 + 0.17,
|
|
260
262
|
// ],
|
|
261
|
-
[height * 0.
|
|
263
|
+
[height * 0.0305 - s.y * 0.57 - height * (height > 700 ? 0.0001 : 0.0006) - 0.17, s.x * 0.6 + 0.25 - 0.17], [height * 0.0305 - s.y * 0.57 - height * (height > 700 ? 0.0001 : 0.0006) + 0.17, s.x * 0.6 + 0.25 + 0.17]],
|
|
262
264
|
zIndex: 10
|
|
263
265
|
}) : /*#__PURE__*/_react.default.createElement(_reactLeaflet.Circle, {
|
|
264
266
|
center: [
|
|
265
267
|
// (width * 0.03 - (s.y - 11.5)) * 0.65,
|
|
266
268
|
// s.x * 0.64,
|
|
267
|
-
height * 0.
|
|
269
|
+
height * 0.0305 - s.y * 0.57 - height * (height > 700 ? 0.0001 : 0.0006), s.x * 0.6 + 0.25
|
|
268
270
|
// s.y,
|
|
269
271
|
// s.x * 0.6 + 0.25,
|
|
270
272
|
// height * 0.03 - s.y * (height * 0.000535),
|