tf-checkout-react 1.5.3 → 1.5.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.
@@ -5960,7 +5960,6 @@ function Countdown(_ref) {
5960
5960
  }, message)));
5961
5961
  }
5962
5962
 
5963
- var _excluded$2 = ["ticketTypeId"];
5964
5963
  var generateQuantity = function generateQuantity(n) {
5965
5964
  var quantityList = [];
5966
5965
  for (var i = 1; i <= n; i++) {
@@ -5993,37 +5992,35 @@ var WaitingList = function WaitingList(_ref) {
5993
5992
  var showTicketsField = Boolean(ticketTypesList.length);
5994
5993
  var handleSubmit = /*#__PURE__*/function () {
5995
5994
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(values) {
5996
- var ticketTypeId, attributes, response;
5995
+ var response;
5997
5996
  return _regeneratorRuntime().wrap(function _callee$(_context) {
5998
5997
  while (1) switch (_context.prev = _context.next) {
5999
5998
  case 0:
6000
5999
  _context.prev = 0;
6001
- ticketTypeId = values.ticketTypeId, attributes = _objectWithoutPropertiesLoose(values, _excluded$2);
6002
6000
  setLoading(true);
6003
- _context.next = 5;
6001
+ _context.next = 4;
6004
6002
  return addToWaitingList(eventId, {
6005
- attributes: attributes,
6006
- ticketTypeId: ticketTypeId
6003
+ attributes: values
6007
6004
  });
6008
- case 5:
6005
+ case 4:
6009
6006
  response = _context.sent;
6010
6007
  if (response.success) {
6011
6008
  setShowSuccessMessage(true);
6012
6009
  }
6013
- _context.next = 11;
6010
+ _context.next = 10;
6014
6011
  break;
6015
- case 9:
6016
- _context.prev = 9;
6012
+ case 8:
6013
+ _context.prev = 8;
6017
6014
  _context.t0 = _context["catch"](0);
6018
- case 11:
6019
- _context.prev = 11;
6015
+ case 10:
6016
+ _context.prev = 10;
6020
6017
  setLoading(false);
6021
- return _context.finish(11);
6022
- case 14:
6018
+ return _context.finish(10);
6019
+ case 13:
6023
6020
  case "end":
6024
6021
  return _context.stop();
6025
6022
  }
6026
- }, _callee, null, [[0, 9, 11, 14]]);
6023
+ }, _callee, null, [[0, 8, 10, 13]]);
6027
6024
  }));
6028
6025
  return function handleSubmit(_x) {
6029
6026
  return _ref2.apply(this, arguments);
@@ -7538,11 +7535,11 @@ var EmailSvg = "<svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\
7538
7535
 
7539
7536
  var UserSvg = "<svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"user\" class=\"svg-inline--fa fa-user fa-w-14\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path fill=\"currentColor\" d=\"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z\"></path></svg>";
7540
7537
 
7541
- var _excluded$3 = ["label", "field", "theme", "disableDropdown"];
7538
+ var _excluded$2 = ["label", "field", "theme", "disableDropdown"];
7542
7539
  var RadioField = function RadioField(_ref) {
7543
7540
  var label = _ref.label,
7544
7541
  field = _ref.field,
7545
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
7542
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);
7546
7543
  var customTheme = styles$1.useTheme();
7547
7544
  return React__default.createElement(FormGroup, null, React__default.createElement(FormControlLabel, {
7548
7545
  control: React__default.createElement(Radio, Object.assign({}, field, rest)),