tf-checkout-react 1.4.4 → 1.4.5
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/tf-checkout-react.cjs.development.js +31 -22
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +31 -22
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/seatMapContainer/index.tsx +5 -2
|
@@ -8367,21 +8367,24 @@ var SeatMapContainer = function SeatMapContainer(props) {
|
|
|
8367
8367
|
var _useState5 = React.useState(true),
|
|
8368
8368
|
isLoadingSeatMapData = _useState5[0],
|
|
8369
8369
|
setIsLoadingSeatMapData = _useState5[1];
|
|
8370
|
-
var _useState6 = React.useState(
|
|
8371
|
-
|
|
8372
|
-
|
|
8370
|
+
var _useState6 = React.useState(true),
|
|
8371
|
+
isLoadingStatuses = _useState6[0],
|
|
8372
|
+
setIsLoadingStatuses = _useState6[1];
|
|
8373
8373
|
var _useState7 = React.useState(false),
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
var _useState8 = React.useState(
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
var _useState9 = React.useState(
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
var _useState10 = React.useState(
|
|
8383
|
-
|
|
8384
|
-
|
|
8374
|
+
isReserving = _useState7[0],
|
|
8375
|
+
setIsReserving = _useState7[1];
|
|
8376
|
+
var _useState8 = React.useState(false),
|
|
8377
|
+
isAddingToCart = _useState8[0],
|
|
8378
|
+
setIsAddingToCart = _useState8[1];
|
|
8379
|
+
var _useState9 = React.useState(null),
|
|
8380
|
+
error = _useState9[0],
|
|
8381
|
+
setError = _useState9[1];
|
|
8382
|
+
var _useState10 = React.useState(Date.now() <= Number(localStorage.getItem("reservationStart-" + eventId))),
|
|
8383
|
+
showTimer = _useState10[0],
|
|
8384
|
+
setShowTimer = _useState10[1];
|
|
8385
|
+
var _useState11 = React.useState({}),
|
|
8386
|
+
guestCounts = _useState11[0],
|
|
8387
|
+
setGuestCounts = _useState11[1];
|
|
8385
8388
|
var updateGuestCounts = function updateGuestCounts(data) {
|
|
8386
8389
|
_forEach(data, function (item) {
|
|
8387
8390
|
var tierTickets = ticketTypeTierRelationsRef.current[item.tierId];
|
|
@@ -8475,10 +8478,14 @@ var SeatMapContainer = function SeatMapContainer(props) {
|
|
|
8475
8478
|
_context2.t0 = _context2["catch"](0);
|
|
8476
8479
|
setError('Something went wrong');
|
|
8477
8480
|
case 17:
|
|
8481
|
+
_context2.prev = 17;
|
|
8482
|
+
setIsLoadingStatuses(false);
|
|
8483
|
+
return _context2.finish(17);
|
|
8484
|
+
case 20:
|
|
8478
8485
|
case "end":
|
|
8479
8486
|
return _context2.stop();
|
|
8480
8487
|
}
|
|
8481
|
-
}, _callee2, null, [[0, 14]]);
|
|
8488
|
+
}, _callee2, null, [[0, 14, 17, 20]]);
|
|
8482
8489
|
})), [eventId]);
|
|
8483
8490
|
var startTimer = React.useCallback(function (duration) {
|
|
8484
8491
|
setShowTimer(true);
|
|
@@ -8682,18 +8689,20 @@ var SeatMapContainer = function SeatMapContainer(props) {
|
|
|
8682
8689
|
_context7.next = 3;
|
|
8683
8690
|
return fetchSeatMapData();
|
|
8684
8691
|
case 3:
|
|
8685
|
-
|
|
8686
|
-
|
|
8692
|
+
_context7.next = 5;
|
|
8693
|
+
return fetchSeatMapReservations();
|
|
8694
|
+
case 5:
|
|
8695
|
+
_context7.next = 10;
|
|
8687
8696
|
break;
|
|
8688
|
-
case
|
|
8689
|
-
_context7.prev =
|
|
8697
|
+
case 7:
|
|
8698
|
+
_context7.prev = 7;
|
|
8690
8699
|
_context7.t0 = _context7["catch"](0);
|
|
8691
8700
|
setError('Something went wrong');
|
|
8692
|
-
case
|
|
8701
|
+
case 10:
|
|
8693
8702
|
case "end":
|
|
8694
8703
|
return _context7.stop();
|
|
8695
8704
|
}
|
|
8696
|
-
}, _callee7, null, [[0,
|
|
8705
|
+
}, _callee7, null, [[0, 7]]);
|
|
8697
8706
|
}));
|
|
8698
8707
|
return function makeRequests() {
|
|
8699
8708
|
return _ref7.apply(this, arguments);
|
|
@@ -8738,7 +8747,7 @@ var SeatMapContainer = function SeatMapContainer(props) {
|
|
|
8738
8747
|
onCountdownFinish();
|
|
8739
8748
|
}
|
|
8740
8749
|
}
|
|
8741
|
-
}), !isLoadingSeatMapData && React__default.createElement(ReferralLogic, {
|
|
8750
|
+
}), !isLoadingSeatMapData && !isLoadingStatuses && React__default.createElement(ReferralLogic, {
|
|
8742
8751
|
eventId: eventId
|
|
8743
8752
|
}), React__default.createElement(TicketsSection$1, {
|
|
8744
8753
|
selectedTickets: selectedTickets,
|