tf-checkout-react 1.6.6-beta.25 → 1.6.6-beta.26

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/index.d.ts CHANGED
@@ -6,7 +6,6 @@ export { currencyNormalizerCreator, createFixedFloatNormalizer } from './normali
6
6
  export { LoginModal } from './components/loginModal';
7
7
  export { MyTicketsContainer } from './components/myTicketsContainer';
8
8
  export { OrderDetailsContainer } from './components/orderDetailsContainer';
9
- export { setConfigs } from './utils/setConfigs';
10
9
  export { DEFAULT_FEES_STYLE } from './constants/index';
11
10
  export { TicketResaleContainer } from './components';
12
11
  export { RedirectModal } from './components/common/RedirectModal';
@@ -23,3 +22,5 @@ export { PoweredBy } from './components/common/PoweredBy';
23
22
  export { SeatMapContainer } from './components/seatMapContainer';
24
23
  export { IDVerification } from './components/idVerificationContainer';
25
24
  export { VERIFICATION_STATUSES } from './components/idVerificationContainer/constants';
25
+ export { setConfigs } from './utils/setConfigs';
26
+ export { logoutUser } from './utils/auth';
@@ -501,6 +501,15 @@ var publicRequest = /*#__PURE__*/axios.create({
501
501
  baseURL: 'https://www.ticketfairy.com/api',
502
502
  headers: headers
503
503
  });
504
+ publicRequest.interceptors.request.use(function (config) {
505
+ if (getCookieByName('X-TF-ECOMMERCE')) {
506
+ var updatedHeaders = _extends({}, config.headers, {
507
+ 'X-TF-ECOMMERCE': getCookieByName('X-TF-ECOMMERCE')
508
+ });
509
+ config.headers = updatedHeaders;
510
+ }
511
+ return config;
512
+ });
504
513
  publicRequest.setBaseUrl = function (baseUrl) {
505
514
  return publicRequest.defaults.baseURL = baseUrl + '/api';
506
515
  };
@@ -783,6 +792,41 @@ var setLoggedUserData = function setLoggedUserData(data) {
783
792
  zip: (data == null ? void 0 : data.zipCode) || ''
784
793
  };
785
794
  };
795
+ var logoutUser = /*#__PURE__*/function () {
796
+ var _ref2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
797
+ var onLogoutSuccess, onLogoutError, setIsLogged, event;
798
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
799
+ while (1) switch (_context.prev = _context.next) {
800
+ case 0:
801
+ onLogoutSuccess = _ref.onLogoutSuccess, onLogoutError = _ref.onLogoutError, setIsLogged = _ref.setIsLogged;
802
+ _context.prev = 1;
803
+ _context.next = 4;
804
+ return logout();
805
+ case 4:
806
+ onLogoutSuccess && onLogoutSuccess();
807
+ if (isBrowser) {
808
+ window.localStorage.removeItem('user_data');
809
+ setIsLogged && setIsLogged(false);
810
+ event = new window.CustomEvent('tf-logout');
811
+ deleteCookieByName('X-TF-ECOMMERCE');
812
+ window.document.dispatchEvent(event);
813
+ }
814
+ _context.next = 11;
815
+ break;
816
+ case 8:
817
+ _context.prev = 8;
818
+ _context.t0 = _context["catch"](1);
819
+ onLogoutError && onLogoutError(_context.t0);
820
+ case 11:
821
+ case "end":
822
+ return _context.stop();
823
+ }
824
+ }, _callee, null, [[1, 8]]);
825
+ }));
826
+ return function logoutUser(_x) {
827
+ return _ref2.apply(this, arguments);
828
+ };
829
+ }();
786
830
 
787
831
  var getDataWithCustomFields = function getDataWithCustomFields(initialData, ticketHoldersFields, customFields) {
788
832
  // Custom Fields are not specified case
@@ -8193,40 +8237,13 @@ var TicketsContainer = function TicketsContainer(_ref) {
8193
8237
  });
8194
8238
  }
8195
8239
  }, [isLogged]);
8196
- var handleLogout = /*#__PURE__*/function () {
8197
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8198
- var _event;
8199
- return _regeneratorRuntime().wrap(function _callee$(_context) {
8200
- while (1) switch (_context.prev = _context.next) {
8201
- case 0:
8202
- _context.prev = 0;
8203
- _context.next = 3;
8204
- return logout();
8205
- case 3:
8206
- onLogoutSuccess();
8207
- if (isBrowser) {
8208
- window.localStorage.removeItem('user_data');
8209
- setIsLogged(false);
8210
- _event = new window.CustomEvent('tf-logout');
8211
- deleteCookieByName('X-TF-ECOMMERCE');
8212
- window.document.dispatchEvent(_event);
8213
- }
8214
- _context.next = 10;
8215
- break;
8216
- case 7:
8217
- _context.prev = 7;
8218
- _context.t0 = _context["catch"](0);
8219
- onLogoutError(_context.t0);
8220
- case 10:
8221
- case "end":
8222
- return _context.stop();
8223
- }
8224
- }, _callee, null, [[0, 7]]);
8225
- }));
8226
- return function handleLogout() {
8227
- return _ref2.apply(this, arguments);
8228
- };
8229
- }();
8240
+ var handleLogout = function handleLogout() {
8241
+ logoutUser({
8242
+ onLogoutError: onLogoutError,
8243
+ onLogoutSuccess: onLogoutSuccess,
8244
+ setIsLogged: setIsLogged
8245
+ });
8246
+ };
8230
8247
  var handleExternalLogin = function handleExternalLogin() {
8231
8248
  setIsLogged(true);
8232
8249
  };
@@ -8241,23 +8258,23 @@ var TicketsContainer = function TicketsContainer(_ref) {
8241
8258
  }
8242
8259
  };
8243
8260
  var getTimeSlots = /*#__PURE__*/function () {
8244
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(date, type) {
8261
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(date, type) {
8245
8262
  var _timeSlotsResponse$da, timeSlotsResponse, groupedTickets, attributes;
8246
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
8247
- while (1) switch (_context2.prev = _context2.next) {
8263
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
8264
+ while (1) switch (_context.prev = _context.next) {
8248
8265
  case 0:
8249
8266
  if (date) {
8250
- _context2.next = 3;
8267
+ _context.next = 3;
8251
8268
  break;
8252
8269
  }
8253
8270
  setShowPromoCodeSection(false);
8254
- return _context2.abrupt("return");
8271
+ return _context.abrupt("return");
8255
8272
  case 3:
8256
- _context2.prev = 3;
8257
- _context2.next = 6;
8273
+ _context.prev = 3;
8274
+ _context.next = 6;
8258
8275
  return getTimeSlotsByDate(eventId, moment(date).format('YYYY-MM-DD'), code);
8259
8276
  case 6:
8260
- timeSlotsResponse = _context2.sent;
8277
+ timeSlotsResponse = _context.sent;
8261
8278
  groupedTickets = {};
8262
8279
  _map(timeSlotsResponse.data.attributes.timeslots, function (timeslots, date) {
8263
8280
  var dateKeyChunks = date.split('-');
@@ -8280,63 +8297,63 @@ var TicketsContainer = function TicketsContainer(_ref) {
8280
8297
  setShowAccessCodeSection(attributes.is_access_code);
8281
8298
  setShowPromoCodeSection(attributes.isPromotionsEnabled);
8282
8299
  }
8283
- _context2.next = 17;
8300
+ _context.next = 17;
8284
8301
  break;
8285
8302
  case 15:
8286
- _context2.prev = 15;
8287
- _context2.t0 = _context2["catch"](3);
8303
+ _context.prev = 15;
8304
+ _context.t0 = _context["catch"](3);
8288
8305
  case 17:
8289
8306
  case "end":
8290
- return _context2.stop();
8307
+ return _context.stop();
8291
8308
  }
8292
- }, _callee2, null, [[3, 15]]);
8309
+ }, _callee, null, [[3, 15]]);
8293
8310
  }));
8294
8311
  return function getTimeSlots(_x, _x2) {
8295
- return _ref3.apply(this, arguments);
8312
+ return _ref2.apply(this, arguments);
8296
8313
  };
8297
8314
  }();
8298
8315
  function getTicketsApi(_x3, _x4) {
8299
8316
  return _getTicketsApi.apply(this, arguments);
8300
8317
  }
8301
8318
  function _getTicketsApi() {
8302
- _getTicketsApi = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(isUpdatingCode, type) {
8303
- var previewKey, eventResponse, _event2, _event2$timeslotSetti, _event2$timeslotSetti2, response, _response$data, attributes;
8304
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
8305
- while (1) switch (_context5.prev = _context5.next) {
8319
+ _getTicketsApi = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(isUpdatingCode, type) {
8320
+ var previewKey, eventResponse, _event, _event$timeslotSettin, _event$timeslotSettin2, response, _response$data, attributes;
8321
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
8322
+ while (1) switch (_context4.prev = _context4.next) {
8306
8323
  case 0:
8307
- _context5.prev = 0;
8324
+ _context4.prev = 0;
8308
8325
  if (isUpdatingCode) {
8309
8326
  setCodeIsLoading(true);
8310
8327
  } else {
8311
8328
  setIsLoading(true);
8312
8329
  }
8313
8330
  previewKey = getQueryVariable('pk') || undefined;
8314
- _context5.next = 5;
8331
+ _context4.next = 5;
8315
8332
  return getEvent(eventId, previewKey);
8316
8333
  case 5:
8317
- eventResponse = _context5.sent;
8334
+ eventResponse = _context4.sent;
8318
8335
  if (!eventResponse.success) {
8319
- _context5.next = 14;
8336
+ _context4.next = 14;
8320
8337
  break;
8321
8338
  }
8322
- _event2 = eventResponse.data.attributes;
8323
- setEvent(_event2);
8324
- if (_event2.country && isBrowser) {
8325
- window.localStorage.setItem('eventCountry', _event2.country);
8339
+ _event = eventResponse.data.attributes;
8340
+ setEvent(_event);
8341
+ if (_event.country && isBrowser) {
8342
+ window.localStorage.setItem('eventCountry', _event.country);
8326
8343
  }
8327
- if (!_event2.isTimeSlotEvent) {
8328
- _context5.next = 14;
8344
+ if (!_event.isTimeSlotEvent) {
8345
+ _context4.next = 14;
8329
8346
  break;
8330
8347
  }
8331
8348
  getTimeSlots(selectedDate, code);
8332
8349
  // For timeslots we shouldn't fetch all tickets at once
8333
- setAvailableDates((_event2$timeslotSetti = _event2 == null ? void 0 : (_event2$timeslotSetti2 = _event2.timeslotSettings) == null ? void 0 : _event2$timeslotSetti2.availableDates) != null ? _event2$timeslotSetti : []);
8334
- return _context5.abrupt("return");
8350
+ setAvailableDates((_event$timeslotSettin = _event == null ? void 0 : (_event$timeslotSettin2 = _event.timeslotSettings) == null ? void 0 : _event$timeslotSettin2.availableDates) != null ? _event$timeslotSettin : []);
8351
+ return _context4.abrupt("return");
8335
8352
  case 14:
8336
- _context5.next = 16;
8353
+ _context4.next = 16;
8337
8354
  return getTickets(eventId, code, previewKey);
8338
8355
  case 16:
8339
- response = _context5.sent;
8356
+ response = _context4.sent;
8340
8357
  if (response.success) {
8341
8358
  attributes = response == null ? void 0 : (_response$data = response.data) == null ? void 0 : _response$data.attributes;
8342
8359
  type === 'promo' && setCodeIsApplied(attributes.ValidPromoCode);
@@ -8355,26 +8372,26 @@ var TicketsContainer = function TicketsContainer(_ref) {
8355
8372
  setShowAccessCodeSection(attributes.is_access_code);
8356
8373
  setShowPromoCodeSection(attributes.isPromotionsEnabled);
8357
8374
  }
8358
- _context5.next = 23;
8375
+ _context4.next = 23;
8359
8376
  break;
8360
8377
  case 20:
8361
- _context5.prev = 20;
8362
- _context5.t0 = _context5["catch"](0);
8363
- if (axios.isAxiosError(_context5.t0)) {
8364
- onGetTicketsError(_context5.t0);
8365
- setError(_get(_context5.t0, 'response.data.message', ''));
8378
+ _context4.prev = 20;
8379
+ _context4.t0 = _context4["catch"](0);
8380
+ if (axios.isAxiosError(_context4.t0)) {
8381
+ onGetTicketsError(_context4.t0);
8382
+ setError(_get(_context4.t0, 'response.data.message', ''));
8366
8383
  window.localStorage.removeItem('appliedPromoCode');
8367
8384
  }
8368
8385
  case 23:
8369
- _context5.prev = 23;
8386
+ _context4.prev = 23;
8370
8387
  setIsLoading(false);
8371
8388
  setCodeIsLoading(false);
8372
- return _context5.finish(23);
8389
+ return _context4.finish(23);
8373
8390
  case 27:
8374
8391
  case "end":
8375
- return _context5.stop();
8392
+ return _context4.stop();
8376
8393
  }
8377
- }, _callee5, null, [[0, 20, 23, 27]]);
8394
+ }, _callee4, null, [[0, 20, 23, 27]]);
8378
8395
  }));
8379
8396
  return _getTicketsApi.apply(this, arguments);
8380
8397
  }
@@ -8382,32 +8399,32 @@ var TicketsContainer = function TicketsContainer(_ref) {
8382
8399
  return _fetchPreregisteredData.apply(this, arguments);
8383
8400
  }
8384
8401
  function _fetchPreregisteredData() {
8385
- _fetchPreregisteredData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
8402
+ _fetchPreregisteredData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
8386
8403
  var preregistrationData;
8387
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
8388
- while (1) switch (_context6.prev = _context6.next) {
8404
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
8405
+ while (1) switch (_context5.prev = _context5.next) {
8389
8406
  case 0:
8390
- _context6.prev = 0;
8391
- _context6.next = 3;
8407
+ _context5.prev = 0;
8408
+ _context5.next = 3;
8392
8409
  return getPreRegistrationInfluencers({
8393
8410
  eventId: eventId
8394
8411
  });
8395
8412
  case 3:
8396
- preregistrationData = _context6.sent;
8413
+ preregistrationData = _context5.sent;
8397
8414
  setPreregisteredUsers(preregistrationData.data.attributes.influencers);
8398
- _context6.next = 10;
8415
+ _context5.next = 10;
8399
8416
  break;
8400
8417
  case 7:
8401
- _context6.prev = 7;
8402
- _context6.t0 = _context6["catch"](0);
8403
- if (axios.isAxiosError(_context6.t0)) {
8404
- setError(_get(_context6.t0, 'response.data.message', ''));
8418
+ _context5.prev = 7;
8419
+ _context5.t0 = _context5["catch"](0);
8420
+ if (axios.isAxiosError(_context5.t0)) {
8421
+ setError(_get(_context5.t0, 'response.data.message', ''));
8405
8422
  }
8406
8423
  case 10:
8407
8424
  case "end":
8408
- return _context6.stop();
8425
+ return _context5.stop();
8409
8426
  }
8410
- }, _callee6, null, [[0, 7]]);
8427
+ }, _callee5, null, [[0, 7]]);
8411
8428
  }));
8412
8429
  return _fetchPreregisteredData.apply(this, arguments);
8413
8430
  }
@@ -8417,11 +8434,11 @@ var TicketsContainer = function TicketsContainer(_ref) {
8417
8434
  }
8418
8435
  localStorage.setItem('selectedTicketsQuantity', value.toString());
8419
8436
  setSelectedTickets(function (prevState) {
8420
- var _ref4;
8437
+ var _ref3;
8421
8438
  if (Object.keys(prevState)[0] !== key && !value) {
8422
8439
  return prevState;
8423
8440
  }
8424
- return _ref4 = {}, _ref4[key] = value, _ref4.isTable = isTable, _ref4;
8441
+ return _ref3 = {}, _ref3[key] = value, _ref3.isTable = isTable, _ref3;
8425
8442
  });
8426
8443
  };
8427
8444
  var handleOrdersClick = function handleOrdersClick() {
@@ -8433,11 +8450,11 @@ var TicketsContainer = function TicketsContainer(_ref) {
8433
8450
  setError(null);
8434
8451
  };
8435
8452
  var handleBook = /*#__PURE__*/function () {
8436
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
8453
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
8437
8454
  var _product_options, _product_options2, _ticket_types;
8438
8455
  var timeSlotTickets, ticket, optionName, ticketId, isTableType, productCartQuantity, ticketQuantity, data, result, pageConfigsDataResponse, _pageConfigsData$skip, _pageConfigsData$has_, _pageConfigsData$free, pageConfigsData, skipBillingPage, hasAddOn, freeTicket, hash, total, _checkoutResponse$dat, _checkoutResponse$dat2, _checkoutResponse$dat3, _checkoutResponse$dat4, userData, checkoutBody, checkoutResponse, _errorResponse$data, _errorResponse$data$d, errorResponse, _errorResponse$data2, message, _isInvalidLinkError, _isNotInvitedError;
8439
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
8440
- while (1) switch (_context3.prev = _context3.next) {
8456
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
8457
+ while (1) switch (_context2.prev = _context2.next) {
8441
8458
  case 0:
8442
8459
  timeSlotTickets = _flatten(_map(timeSlotGroups, function (slots) {
8443
8460
  return slots;
@@ -8465,33 +8482,33 @@ var TicketsContainer = function TicketsContainer(_ref) {
8465
8482
  }, _ticket_types)
8466
8483
  }
8467
8484
  };
8468
- _context3.prev = 9;
8485
+ _context2.prev = 9;
8469
8486
  onGetTicketsPress();
8470
- _context3.next = 13;
8487
+ _context2.next = 13;
8471
8488
  return addToCart(eventId, data);
8472
8489
  case 13:
8473
- result = _context3.sent;
8490
+ result = _context2.sent;
8474
8491
  if (!enableAddOns) {
8475
- _context3.next = 20;
8492
+ _context2.next = 20;
8476
8493
  break;
8477
8494
  }
8478
- _context3.next = 17;
8495
+ _context2.next = 17;
8479
8496
  return getCheckoutPageConfigs();
8480
8497
  case 17:
8481
- _context3.t0 = _context3.sent;
8482
- _context3.next = 21;
8498
+ _context2.t0 = _context2.sent;
8499
+ _context2.next = 21;
8483
8500
  break;
8484
8501
  case 20:
8485
- _context3.t0 = {
8502
+ _context2.t0 = {
8486
8503
  status: 200,
8487
8504
  data: {
8488
8505
  attributes: _get(result, 'data.attributes')
8489
8506
  }
8490
8507
  };
8491
8508
  case 21:
8492
- pageConfigsDataResponse = _context3.t0;
8509
+ pageConfigsDataResponse = _context2.t0;
8493
8510
  if (!(result.status === 200 && pageConfigsDataResponse.status === 200)) {
8494
- _context3.next = 44;
8511
+ _context2.next = 44;
8495
8512
  break;
8496
8513
  }
8497
8514
  pageConfigsData = _get(pageConfigsDataResponse, 'data.attributes') || {};
@@ -8502,26 +8519,26 @@ var TicketsContainer = function TicketsContainer(_ref) {
8502
8519
  total = '';
8503
8520
  isBrowser && window.localStorage.removeItem('add_ons');
8504
8521
  if (!(skipBillingPage && !hasAddOn)) {
8505
- _context3.next = 43;
8522
+ _context2.next = 43;
8506
8523
  break;
8507
8524
  }
8508
8525
  // Get user data for checkout data
8509
8526
  userData = isBrowser && window.localStorage.getItem('user_data') ? JSON.parse(window.localStorage.getItem('user_data') || '') : {};
8510
8527
  checkoutBody = createCheckoutDataBodyWithDefaultHolder(ticketQuantity, userData);
8511
8528
  if (!enableBillingInfoAutoCreate) {
8512
- _context3.next = 39;
8529
+ _context2.next = 39;
8513
8530
  break;
8514
8531
  }
8515
- _context3.next = 36;
8532
+ _context2.next = 36;
8516
8533
  return postOnCheckout(checkoutBody, freeTicket);
8517
8534
  case 36:
8518
- _context3.t1 = _context3.sent;
8519
- _context3.next = 40;
8535
+ _context2.t1 = _context2.sent;
8536
+ _context2.next = 40;
8520
8537
  break;
8521
8538
  case 39:
8522
- _context3.t1 = null;
8539
+ _context2.t1 = null;
8523
8540
  case 40:
8524
- checkoutResponse = _context3.t1;
8541
+ checkoutResponse = _context2.t1;
8525
8542
  hash = (checkoutResponse == null ? void 0 : (_checkoutResponse$dat = checkoutResponse.data) == null ? void 0 : (_checkoutResponse$dat2 = _checkoutResponse$dat.attributes) == null ? void 0 : _checkoutResponse$dat2.hash) || '';
8526
8543
  total = (checkoutResponse == null ? void 0 : (_checkoutResponse$dat3 = checkoutResponse.data) == null ? void 0 : (_checkoutResponse$dat4 = _checkoutResponse$dat3.attributes) == null ? void 0 : _checkoutResponse$dat4.total) || '';
8527
8544
  case 43:
@@ -8533,17 +8550,17 @@ var TicketsContainer = function TicketsContainer(_ref) {
8533
8550
  hasAddOn: hasAddOn
8534
8551
  });
8535
8552
  case 44:
8536
- _context3.next = 50;
8553
+ _context2.next = 50;
8537
8554
  break;
8538
8555
  case 46:
8539
- _context3.prev = 46;
8540
- _context3.t2 = _context3["catch"](9);
8541
- errorResponse = _get(_context3.t2, 'response', {});
8556
+ _context2.prev = 46;
8557
+ _context2.t2 = _context2["catch"](9);
8558
+ errorResponse = _get(_context2.t2, 'response', {});
8542
8559
  if (errorResponse != null && (_errorResponse$data = errorResponse.data) != null && (_errorResponse$data$d = _errorResponse$data.data) != null && _errorResponse$data$d.hasUnverifiedOrder) {
8543
8560
  setPendingVerificationMessage(errorResponse == null ? void 0 : (_errorResponse$data2 = errorResponse.data) == null ? void 0 : _errorResponse$data2.message);
8544
- } else if (axios.isAxiosError(_context3.t2)) {
8545
- onAddToCartError(_context3.t2);
8546
- message = _get(_context3.t2, 'response.data.message', '');
8561
+ } else if (axios.isAxiosError(_context2.t2)) {
8562
+ onAddToCartError(_context2.t2);
8563
+ message = _get(_context2.t2, 'response.data.message', '');
8547
8564
  _isInvalidLinkError = _includes(message, 'No more of this ticket type are available right now');
8548
8565
  _isNotInvitedError = _includes(message, 'You must have been invited to this event to attend');
8549
8566
  if (_isInvalidLinkError) {
@@ -8555,43 +8572,43 @@ var TicketsContainer = function TicketsContainer(_ref) {
8555
8572
  }
8556
8573
  }
8557
8574
  case 50:
8558
- _context3.prev = 50;
8575
+ _context2.prev = 50;
8559
8576
  setHandleBookIsLoading(false);
8560
- return _context3.finish(50);
8577
+ return _context2.finish(50);
8561
8578
  case 53:
8562
8579
  case "end":
8563
- return _context3.stop();
8580
+ return _context2.stop();
8564
8581
  }
8565
- }, _callee3, null, [[9, 46, 50, 53]]);
8582
+ }, _callee2, null, [[9, 46, 50, 53]]);
8566
8583
  }));
8567
8584
  return function handleBook() {
8568
- return _ref5.apply(this, arguments);
8585
+ return _ref4.apply(this, arguments);
8569
8586
  };
8570
8587
  }();
8571
8588
  var updateTickets = function updateTickets(isUpdatingCode, type) {
8572
8589
  getTicketsApi(isUpdatingCode, type);
8573
8590
  };
8574
8591
  var fetchUserData = /*#__PURE__*/function () {
8575
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
8592
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
8576
8593
  var userDataResponse, profileData, profileDataObj;
8577
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
8578
- while (1) switch (_context4.prev = _context4.next) {
8594
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
8595
+ while (1) switch (_context3.prev = _context3.next) {
8579
8596
  case 0:
8580
- _context4.next = 2;
8597
+ _context3.next = 2;
8581
8598
  return getProfileData();
8582
8599
  case 2:
8583
- userDataResponse = _context4.sent;
8600
+ userDataResponse = _context3.sent;
8584
8601
  profileData = _get(userDataResponse, 'data');
8585
8602
  profileDataObj = setLoggedUserData(profileData);
8586
- return _context4.abrupt("return", profileDataObj);
8603
+ return _context3.abrupt("return", profileDataObj);
8587
8604
  case 6:
8588
8605
  case "end":
8589
- return _context4.stop();
8606
+ return _context3.stop();
8590
8607
  }
8591
- }, _callee4);
8608
+ }, _callee3);
8592
8609
  }));
8593
8610
  return function fetchUserData() {
8594
- return _ref6.apply(this, arguments);
8611
+ return _ref5.apply(this, arguments);
8595
8612
  };
8596
8613
  }();
8597
8614
  var isTicketOnSale = event != null && event.isTimeSlotEvent ? true : _some(tickets, function (item) {
@@ -13922,6 +13939,7 @@ exports.TicketsContainer = TicketsContainer;
13922
13939
  exports.VERIFICATION_STATUSES = VERIFICATION_STATUSES;
13923
13940
  exports.createFixedFloatNormalizer = createFixedFloatNormalizer;
13924
13941
  exports.currencyNormalizerCreator = currencyNormalizerCreator;
13942
+ exports.logoutUser = logoutUser;
13925
13943
  exports.setConfigs = setConfigs;
13926
13944
  exports.useCookieListener = useCookieListener;
13927
13945
  //# sourceMappingURL=tf-checkout-react.cjs.development.js.map