iticket-seatingplan-dev 1.0.26 → 1.0.28

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("".concat(baseUrl, "/legacy/").concat(countryCode, "/shop/events/").concat(eventId, "/").concat(eventVenueId, "/showings/").concat(showingId, "/tickets/allocated/").concat(areaId), {
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
- console.log(height, width);
216
+
217
+ // console.log(height, width)
216
218
  // return seating plan
217
219
  return /*#__PURE__*/_react.default.createElement("div", {
218
220
  style: {
@@ -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.0302 - s.y * 0.6 - height * (height > 700 ? 0.0001 : 0.0006) - 0.17, s.x * 0.6 + 0.25 - 0.17], [height * 0.0302 - s.y * 0.6 - height * (height > 700 ? 0.0001 : 0.0006) + 0.17, s.x * 0.6 + 0.25 + 0.17]],
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.0302 - s.y * 0.6 - height * (height > 700 ? 0.0001 : 0.0006), s.x * 0.6 + 0.25
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),
@@ -281,7 +283,7 @@ const SeatingPlan = _ref => {
281
283
  }, /*#__PURE__*/_react.default.createElement(_reactLeaflet.Tooltip, {
282
284
  direction: 'top',
283
285
  offset: [0, height * 0.03 + -30]
284
- }, s.y), s.s === 1 && !processing && /*#__PURE__*/_react.default.createElement(_reactLeaflet.Popup, null, /*#__PURE__*/_react.default.createElement("p", {
286
+ }, s.r + '-' + s.c, ' '), s.s === 1 && !processing && /*#__PURE__*/_react.default.createElement(_reactLeaflet.Popup, null, /*#__PURE__*/_react.default.createElement("p", {
285
287
  style: {
286
288
  marginTop: '0.2rem',
287
289
  marginBottom: '0.2rem',
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.0.26",
5
+ "version": "1.0.28",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "iticket",