tf-checkout-react 1.5.2 → 1.5.3

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,6 +5960,7 @@ function Countdown(_ref) {
5960
5960
  }, message)));
5961
5961
  }
5962
5962
 
5963
+ var _excluded$2 = ["ticketTypeId"];
5963
5964
  var generateQuantity = function generateQuantity(n) {
5964
5965
  var quantityList = [];
5965
5966
  for (var i = 1; i <= n; i++) {
@@ -5992,33 +5993,37 @@ var WaitingList = function WaitingList(_ref) {
5992
5993
  var showTicketsField = Boolean(ticketTypesList.length);
5993
5994
  var handleSubmit = /*#__PURE__*/function () {
5994
5995
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(values) {
5995
- var response;
5996
+ var ticketTypeId, attributes, response;
5996
5997
  return _regeneratorRuntime().wrap(function _callee$(_context) {
5997
5998
  while (1) switch (_context.prev = _context.next) {
5998
5999
  case 0:
5999
6000
  _context.prev = 0;
6001
+ ticketTypeId = values.ticketTypeId, attributes = _objectWithoutPropertiesLoose(values, _excluded$2);
6000
6002
  setLoading(true);
6001
- _context.next = 4;
6002
- return addToWaitingList(eventId, values);
6003
- case 4:
6003
+ _context.next = 5;
6004
+ return addToWaitingList(eventId, {
6005
+ attributes: attributes,
6006
+ ticketTypeId: ticketTypeId
6007
+ });
6008
+ case 5:
6004
6009
  response = _context.sent;
6005
6010
  if (response.success) {
6006
6011
  setShowSuccessMessage(true);
6007
6012
  }
6008
- _context.next = 10;
6013
+ _context.next = 11;
6009
6014
  break;
6010
- case 8:
6011
- _context.prev = 8;
6015
+ case 9:
6016
+ _context.prev = 9;
6012
6017
  _context.t0 = _context["catch"](0);
6013
- case 10:
6014
- _context.prev = 10;
6018
+ case 11:
6019
+ _context.prev = 11;
6015
6020
  setLoading(false);
6016
- return _context.finish(10);
6017
- case 13:
6021
+ return _context.finish(11);
6022
+ case 14:
6018
6023
  case "end":
6019
6024
  return _context.stop();
6020
6025
  }
6021
- }, _callee, null, [[0, 8, 10, 13]]);
6026
+ }, _callee, null, [[0, 9, 11, 14]]);
6022
6027
  }));
6023
6028
  return function handleSubmit(_x) {
6024
6029
  return _ref2.apply(this, arguments);
@@ -7533,11 +7538,11 @@ var EmailSvg = "<svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\
7533
7538
 
7534
7539
  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>";
7535
7540
 
7536
- var _excluded$2 = ["label", "field", "theme", "disableDropdown"];
7541
+ var _excluded$3 = ["label", "field", "theme", "disableDropdown"];
7537
7542
  var RadioField = function RadioField(_ref) {
7538
7543
  var label = _ref.label,
7539
7544
  field = _ref.field,
7540
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);
7545
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
7541
7546
  var customTheme = styles$1.useTheme();
7542
7547
  return React__default.createElement(FormGroup, null, React__default.createElement(FormControlLabel, {
7543
7548
  control: React__default.createElement(Radio, Object.assign({}, field, rest)),