iticket-seatingplan-dev 0.0.2 → 0.0.4

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.
@@ -17,6 +17,7 @@ const SeatingPlan = _ref => {
17
17
  sessionId,
18
18
  showingId,
19
19
  priceAgeId,
20
+ priceSectionId,
20
21
  price,
21
22
  quantity,
22
23
  callbackFunction,
@@ -154,10 +155,10 @@ const SeatingPlan = _ref => {
154
155
  };
155
156
  (0, _react.useEffect)(() => {
156
157
  if (!position && !error) {
157
- fetch("https://ecommerce-main-7edd4c0.zuplo.app/ecommerce/v1/events/".concat(eventId, "/showings/").concat(showingUid, "/seats?priceage=").concat(priceAgeId), {
158
+ fetch("https://ecommerce-main-f0c3c0b.d2.zuplo.dev/ecommerce/v1/events/".concat(eventId, "/showings/").concat(showingUid, "/seats?priceage=").concat(priceAgeId), {
158
159
  headers: {
159
160
  'session-id': sessionId,
160
- 'Authorization': "Bearer ".concat(apiKey)
161
+ Authorization: "Bearer ".concat(apiKey)
161
162
  }
162
163
  }).then(response => response.json() || null).then(data => {
163
164
  const img = new Image();
@@ -231,7 +232,7 @@ const SeatingPlan = _ref => {
231
232
  bounds: [[height * 0.03 - s.raw_y * 0.61 - 0.2, s.raw_x * 0.615 - 0.2], [height * 0.03 - s.raw_y * 0.61 + 0.2, s.raw_x * 0.615 + 0.2]],
232
233
  opacity: chosenSeat && chosenSeat.seat.showingSeatId === s.showingSeatId ? 100 : 0,
233
234
  zIndex: 10
234
- }), s.status === 6 ? /*#__PURE__*/_react.default.createElement(_reactLeaflet.ImageOverlay, {
235
+ }), !priceSectionId || s.priceSectionId === priceSectionId ? s.status === 6 ? /*#__PURE__*/_react.default.createElement(_reactLeaflet.ImageOverlay, {
235
236
  url: wheelchairSeat,
236
237
  bounds: [[height * 0.03 - s.raw_y * 0.61 - 0.17, s.raw_x * 0.615 - 0.17], [height * 0.03 - s.raw_y * 0.61 + 0.17, s.raw_x * 0.615 + 0.17]],
237
238
  zIndex: 10
@@ -249,7 +250,7 @@ const SeatingPlan = _ref => {
249
250
  }, /*#__PURE__*/_react.default.createElement(_reactLeaflet.Tooltip, {
250
251
  direction: 'top',
251
252
  offset: [0, height * 0.03 + -30]
252
- }, s.rowName + '-' + s.columnName))))) : /*#__PURE__*/_react.default.createElement("div", {
253
+ }, s.rowName + '-' + s.columnName)) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null)))) : /*#__PURE__*/_react.default.createElement("div", {
253
254
  className: "loading"
254
255
  }, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("svg", {
255
256
  width: "105",
@@ -359,7 +360,7 @@ const SeatingPlan = _ref => {
359
360
  repeatCount: "indefinite"
360
361
  })))), /*#__PURE__*/_react.default.createElement("div", {
361
362
  style: {
362
- 'marginTop': '2rem'
363
+ marginTop: '2rem'
363
364
  }
364
365
  }, "Initialising seating plan...")));
365
366
  };
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": "0.0.2",
5
+ "version": "0.0.4",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "iticket",