tf-checkout-react 1.0.99-beta.19 → 1.0.99-beta.21

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.
@@ -1,4 +1,4 @@
1
- import React, { Component, useState, useRef, useEffect, Fragment } from 'react';
1
+ import React, { Component, useState, memo, useRef, useEffect, Fragment } from 'react';
2
2
  import { connect, Formik, Form, Field } from 'formik';
3
3
  import Button from '@mui/material/Button';
4
4
  import _identity from 'lodash-es/identity';
@@ -20,15 +20,17 @@ import FormControlLabel from '@mui/material/FormControlLabel';
20
20
  import Checkbox from '@mui/material/Checkbox';
21
21
  import { useTheme } from '@mui/styles';
22
22
  import TextField$1 from '@mui/material/TextField';
23
- import moment from 'moment-timezone';
24
23
  import MuiPhoneNumber from 'material-ui-phone-number';
25
24
  import CircularProgress from '@mui/material/CircularProgress';
26
25
  import Select from '@mui/material/Select';
27
- import { createTheme, ThemeProvider } from '@mui/material/styles';
26
+ import { ThemeProvider, createTheme } from '@mui/material/styles';
28
27
  import Backdrop from '@mui/material/Backdrop';
29
28
  import Countdown$1 from 'react-countdown';
30
29
  import _isNumber from 'lodash-es/isNumber';
31
30
  import SVG from 'react-inlinesvg';
31
+ import DatePicker from '@mui/lab/DatePicker';
32
+ import AdapterMoment from '@mui/lab/AdapterMoment';
33
+ import LocalizationProvider from '@mui/lab/LocalizationProvider';
32
34
  import Container from '@mui/material/Container';
33
35
  import Alert$1 from '@mui/material/Alert';
34
36
  import { useStripe, useElements, CardNumberElement, CardExpiryElement, CardCvcElement, Elements } from '@stripe/react-stripe-js';
@@ -41,6 +43,7 @@ import jwt_decode from 'jwt-decode';
41
43
  import _sortBy from 'lodash-es/sortBy';
42
44
  import FormControl$1 from '@mui/material/FormControl';
43
45
  import MenuItem from '@mui/material/MenuItem';
46
+ import moment from 'moment-timezone';
44
47
  import { ThemeProvider as ThemeProvider$1 } from '@mui/private-theming';
45
48
  import Table from '@mui/material/Table';
46
49
  import TableBody from '@mui/material/TableBody';
@@ -1429,6 +1432,12 @@ var logout = function logout() {
1429
1432
  var processTicket = function processTicket(hash) {
1430
1433
  return publicRequest.post("v1/ticket/" + hash + "/process/");
1431
1434
  };
1435
+ var declineInvitation = function declineInvitation(hash) {
1436
+ return publicRequest.post("v1/ticket/" + hash + "/decline");
1437
+ };
1438
+ var sendRSVPInfo = function sendRSVPInfo(eventId, data) {
1439
+ return publicRequest.post("v1/event/" + eventId + "/send-rsvp-info", data);
1440
+ };
1432
1441
 
1433
1442
  var style = {
1434
1443
  position: 'absolute',
@@ -1857,6 +1866,7 @@ var createRegisterFormData = function createRegisterFormData(values, checkoutBod
1857
1866
  bodyFormData.append('password_confirmation', values.confirmPassword);
1858
1867
  bodyFormData.append('client_id', CONFIGS.CLIENT_ID || 'e9d8f8922797b4621e562255afe90dbf');
1859
1868
  bodyFormData.append('client_secret', CONFIGS.CLIENT_SECRET || 'b89c191eff22fdcf84ac9bfd88d005355a151ec2c83b26b9');
1869
+ bodyFormData.append('check_cart_expiration', 'true');
1860
1870
 
1861
1871
  _forEach(checkoutBody.attributes, function (item, key) {
1862
1872
  bodyFormData.append(key, item);
@@ -2031,7 +2041,12 @@ var CustomField = function CustomField(_ref) {
2031
2041
  touched = _ref$form.touched,
2032
2042
  errors = _ref$form.errors,
2033
2043
  submitCount = _ref$form.submitCount,
2034
- theme = _ref.theme;
2044
+ theme = _ref.theme,
2045
+ _ref$inputProps = _ref.inputProps,
2046
+ pInputProps = _ref$inputProps === void 0 ? {} : _ref$inputProps,
2047
+ _ref$InputProps = _ref.InputProps,
2048
+ InputProps = _ref$InputProps === void 0 ? {} : _ref$InputProps,
2049
+ inputRef = _ref.inputRef;
2035
2050
  var isSelectField = type === 'select';
2036
2051
 
2037
2052
  var error = _get(errors, field.name);
@@ -2041,11 +2056,6 @@ var CustomField = function CustomField(_ref) {
2041
2056
  var inputProps = {
2042
2057
  sx: customTheme == null ? void 0 : customTheme.input
2043
2058
  };
2044
-
2045
- if (type === 'date') {
2046
- inputProps.max = moment().format('YYYY-MM-DD');
2047
- }
2048
-
2049
2059
  return React.createElement(TextField$1, Object.assign({
2050
2060
  id: field.name,
2051
2061
  label: label,
@@ -2062,10 +2072,11 @@ var CustomField = function CustomField(_ref) {
2062
2072
  }
2063
2073
  },
2064
2074
  InputLabelProps: {
2065
- sx: customTheme == null ? void 0 : customTheme.input,
2066
- shrink: field.name === 'holderAge' ? true : undefined
2075
+ sx: customTheme == null ? void 0 : customTheme.input
2067
2076
  },
2068
- inputProps: inputProps
2077
+ InputProps: InputProps,
2078
+ inputProps: _extends({}, inputProps, pInputProps),
2079
+ inputRef: inputRef
2069
2080
  }, field), isSelectField ? _map(selectOptions, function (option) {
2070
2081
  return React.createElement("option", {
2071
2082
  key: option.value,
@@ -2335,6 +2346,8 @@ var TimerWidget = function TimerWidget(_ref) {
2335
2346
  })))) : null;
2336
2347
  };
2337
2348
 
2349
+ var TimerWidget$1 = /*#__PURE__*/memo(TimerWidget);
2350
+
2338
2351
  var SnackbarAlert = function SnackbarAlert(_ref) {
2339
2352
  var isOpen = _ref.isOpen,
2340
2353
  message = _ref.message,
@@ -2371,6 +2384,77 @@ var SnackbarAlert = function SnackbarAlert(_ref) {
2371
2384
  }, message)));
2372
2385
  };
2373
2386
 
2387
+ var DATE_SIZE = 32;
2388
+ var compactStyles = {
2389
+ '& > div': {
2390
+ minWidth: 256
2391
+ },
2392
+ '& > div > div, & > div > div > div, & .MuiCalendarPicker-root': {
2393
+ width: 256
2394
+ },
2395
+ '& .MuiTypography-caption': {
2396
+ width: DATE_SIZE,
2397
+ margin: 0
2398
+ },
2399
+ '& .PrivatePickersSlideTransition-root': {
2400
+ minHeight: DATE_SIZE * 6
2401
+ },
2402
+ '& .PrivatePickersSlideTransition-root [role="row"]': {
2403
+ margin: 0
2404
+ },
2405
+ '& .MuiPickersDay-dayWithMargin': {
2406
+ margin: 0
2407
+ },
2408
+ '& .MuiPickersDay-root': {
2409
+ width: DATE_SIZE,
2410
+ height: DATE_SIZE
2411
+ }
2412
+ };
2413
+ var compactStyleTheme = /*#__PURE__*/createTheme({
2414
+ components: {
2415
+ MuiPaper: {
2416
+ defaultProps: {
2417
+ sx: compactStyles
2418
+ }
2419
+ }
2420
+ }
2421
+ });
2422
+ var DatePickerField = function DatePickerField(_ref) {
2423
+ var label = _ref.label,
2424
+ field = _ref.field,
2425
+ form = _ref.form,
2426
+ theme = _ref.theme,
2427
+ _ref$useCompact = _ref.useCompact,
2428
+ useCompact = _ref$useCompact === void 0 ? true : _ref$useCompact;
2429
+ return React.createElement(ThemeProvider, {
2430
+ theme: useCompact ? compactStyleTheme : {}
2431
+ }, React.createElement(LocalizationProvider, {
2432
+ dateAdapter: AdapterMoment
2433
+ }, React.createElement(DatePicker, {
2434
+ value: field.value || '',
2435
+ onChange: function onChange(value) {
2436
+ return form.setFieldValue(field.name, value);
2437
+ },
2438
+ PopperProps: {
2439
+ placement: 'bottom-start'
2440
+ },
2441
+ showDaysOutsideCurrentMonth: true,
2442
+ disableFuture: true,
2443
+ renderInput: function renderInput(params) {
2444
+ return React.createElement(CustomField, Object.assign({}, params, {
2445
+ inputProps: _extends({}, params.inputProps, {
2446
+ placeholder: 'dd/mm/yyyy'
2447
+ }),
2448
+ theme: theme,
2449
+ field: field,
2450
+ form: form,
2451
+ label: label,
2452
+ type: "tel"
2453
+ }));
2454
+ }
2455
+ })));
2456
+ };
2457
+
2374
2458
  var LogicRunner = function LogicRunner(_ref) {
2375
2459
  var values = _ref.values,
2376
2460
  setStates = _ref.setStates,
@@ -2913,7 +2997,7 @@ var BillingInfoContainer = function BillingInfoContainer(_ref3) {
2913
2997
  open: true
2914
2998
  }, React.createElement(CircularProgress$1, {
2915
2999
  color: "inherit"
2916
- })), !!expirationTime && enableTimer && React.createElement(TimerWidget, {
3000
+ })), !!expirationTime && enableTimer && React.createElement(TimerWidget$1, {
2917
3001
  expires_at: expirationTime,
2918
3002
  onCountdownFinish: onCountdownFinish
2919
3003
  }), React.createElement(Formik, {
@@ -3174,7 +3258,7 @@ var BillingInfoContainer = function BillingInfoContainer(_ref3) {
3174
3258
  validate: getValidateFunctions(element, states, props.values),
3175
3259
  setFieldValue: props.setFieldValue,
3176
3260
  onBlur: props.handleBlur,
3177
- component: element.type === 'checkbox' ? CheckboxField : element.type === 'select' ? SelectField : element.type === 'phone' ? FormikPhoneNumberField : CustomField,
3261
+ component: element.type === 'checkbox' ? CheckboxField : element.type === 'select' ? SelectField : element.type === 'phone' ? FormikPhoneNumberField : element.type === 'date' ? DatePickerField : CustomField,
3178
3262
  selectOptions: element.name === 'country' ? countries : element.name === 'state' ? states : [],
3179
3263
  theme: theme
3180
3264
  })));
@@ -3785,7 +3869,7 @@ var PaymentContainer = function PaymentContainer(_ref) {
3785
3869
  theme: themeMui
3786
3870
  }, React.createElement("div", {
3787
3871
  className: "payment_page"
3788
- }, enableTimer && React.createElement(TimerWidget, {
3872
+ }, enableTimer && React.createElement(TimerWidget$1, {
3789
3873
  expires_at: _get(reviewData, 'expires_at', 0),
3790
3874
  buyLoading: paymentIsLoading,
3791
3875
  onCountdownFinish: onCountdownFinish
@@ -5152,7 +5236,8 @@ var TicketsContainer = function TicketsContainer(_ref) {
5152
5236
 
5153
5237
  var bookButtonIsDisabled = handleBookIsLoading || _isEmpty(selectedTickets) || Object.values(selectedTickets)[0] === 0;
5154
5238
  var wrappedActionsSectionComponent = React.isValidElement(ActionsSectionComponent) ? React.cloneElement(ActionsSectionComponent, {
5155
- handleGetTicketClick: handleGetTicketClick
5239
+ handleGetTicketClick: handleGetTicketClick,
5240
+ isTicketOnSale: isTicketOnSale
5156
5241
  }) : null;
5157
5242
  var externalUrl = event == null ? void 0 : event.redirectUrl;
5158
5243
  var eventSaleIsNotStarted = !(event != null && event.salesStarted) && (event == null ? void 0 : event.salesStart);
@@ -5196,7 +5281,7 @@ var TicketsContainer = function TicketsContainer(_ref) {
5196
5281
  setShowPromoInput: setShowPromoInput,
5197
5282
  setCode: setCode,
5198
5283
  updateTickets: updateTickets
5199
- }) : null, wrappedActionsSectionComponent, !wrappedActionsSectionComponent && !eventSaleIsNotStarted && (isTicketOnSale || !(event != null && event.salesEnded)) && !externalUrl && React.createElement(Button$1, {
5284
+ }) : null, wrappedActionsSectionComponent, !wrappedActionsSectionComponent && !eventSaleIsNotStarted && isTicketOnSale && !(event != null && event.salesEnded) && !externalUrl && React.createElement(Button$1, {
5200
5285
  "aria-hidden": true,
5201
5286
  className: "book-button \n " + (bookButtonIsDisabled ? 'disabled' : '') + " \n " + (isButtonScrollable ? 'is-scrollable' : '') + "\n " + (!isLoggedIn ? 'on-bottom' : '') + "\n ",
5202
5287
  onClick: handleGetTicketClick
@@ -6045,75 +6130,110 @@ var TicketResaleContainer = function TicketResaleContainer(_ref) {
6045
6130
  onProcessTicketSuccess = _ref$onProcessTicketS === void 0 ? function () {} : _ref$onProcessTicketS,
6046
6131
  _ref$onProcessTicketE = _ref.onProcessTicketError,
6047
6132
  onProcessTicketError = _ref$onProcessTicketE === void 0 ? function () {} : _ref$onProcessTicketE,
6133
+ _ref$onDeclineTicketP = _ref.onDeclineTicketPurchaseSuccess,
6134
+ onDeclineTicketPurchaseSuccess = _ref$onDeclineTicketP === void 0 ? function () {} : _ref$onDeclineTicketP,
6135
+ _ref$onDeclineTicketP2 = _ref.onDeclineTicketPurchaseError,
6136
+ onDeclineTicketPurchaseError = _ref$onDeclineTicketP2 === void 0 ? function () {} : _ref$onDeclineTicketP2,
6048
6137
  orderHash = _ref.orderHash;
6049
6138
  var isWindowDefined = typeof window !== 'undefined';
6050
6139
 
6051
- var _useState = useState(null),
6140
+ var _useState = useState(''),
6052
6141
  error = _useState[0],
6053
6142
  setError = _useState[1];
6054
6143
 
6144
+ var _useState2 = useState(''),
6145
+ successMessage = _useState2[0],
6146
+ setSuccessMessage = _useState2[1];
6147
+
6055
6148
  useEffect(function () {
6056
6149
  _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee() {
6057
- var params, hash, response, data, age_required, names_required, event_id, _error$response, _error$response$data;
6150
+ var params, hash, isDeclined, response, _error$response, _error$response$data, _response, data, age_required, names_required, event_id, _error$response2, _error$response2$data;
6058
6151
 
6059
6152
  return runtime_1.wrap(function _callee$(_context) {
6060
6153
  while (1) {
6061
6154
  switch (_context.prev = _context.next) {
6062
6155
  case 0:
6063
6156
  if (!isWindowDefined) {
6064
- _context.next = 23;
6157
+ _context.next = 38;
6065
6158
  break;
6066
6159
  }
6067
6160
 
6068
6161
  params = new URL("" + window.location).searchParams;
6069
6162
  hash = params.get('invitation_hash') || orderHash || null;
6163
+ isDeclined = params.get('decline') || false;
6070
6164
 
6071
6165
  if (!hash) {
6072
- _context.next = 22;
6166
+ _context.next = 37;
6073
6167
  break;
6074
6168
  }
6075
6169
 
6076
- _context.prev = 4;
6077
- _context.next = 7;
6078
- return processTicket(hash);
6170
+ if (!isDeclined) {
6171
+ _context.next = 19;
6172
+ break;
6173
+ }
6079
6174
 
6080
- case 7:
6175
+ _context.prev = 6;
6176
+ _context.next = 9;
6177
+ return declineInvitation(hash);
6178
+
6179
+ case 9:
6081
6180
  response = _context.sent;
6082
- data = _get(response, 'data.data.attributes');
6181
+ onDeclineTicketPurchaseSuccess(response);
6182
+ setSuccessMessage("Thanks for letting us know! We'll offer this ticket to someone else!");
6183
+ _context.next = 18;
6184
+ break;
6185
+
6186
+ case 14:
6187
+ _context.prev = 14;
6188
+ _context.t0 = _context["catch"](6);
6189
+ setError(_context.t0 == null ? void 0 : (_error$response = _context.t0.response) == null ? void 0 : (_error$response$data = _error$response.data) == null ? void 0 : _error$response$data.message);
6190
+ onDeclineTicketPurchaseError(_context.t0.response);
6191
+
6192
+ case 18:
6193
+ return _context.abrupt("return");
6194
+
6195
+ case 19:
6196
+ _context.prev = 19;
6197
+ _context.next = 22;
6198
+ return processTicket(hash);
6199
+
6200
+ case 22:
6201
+ _response = _context.sent;
6202
+ data = _get(_response, 'data.data.attributes');
6083
6203
  age_required = _get(data, 'age_required', false);
6084
6204
  names_required = _get(data, 'names_required', false);
6085
6205
  event_id = _get(data, 'event_id');
6086
- onProcessTicketSuccess(response.data);
6206
+ onProcessTicketSuccess(_response.data);
6087
6207
  window.location.href = "/billing/billing-info/?age_required=" + age_required + "&names_required=" + names_required + "&event_id=" + event_id;
6088
- _context.next = 20;
6208
+ _context.next = 35;
6089
6209
  break;
6090
6210
 
6091
- case 16:
6092
- _context.prev = 16;
6093
- _context.t0 = _context["catch"](4);
6094
- setError(_context.t0 == null ? void 0 : (_error$response = _context.t0.response) == null ? void 0 : (_error$response$data = _error$response.data) == null ? void 0 : _error$response$data.message);
6095
- onProcessTicketError(_context.t0.response);
6211
+ case 31:
6212
+ _context.prev = 31;
6213
+ _context.t1 = _context["catch"](19);
6214
+ setError(_context.t1 == null ? void 0 : (_error$response2 = _context.t1.response) == null ? void 0 : (_error$response2$data = _error$response2.data) == null ? void 0 : _error$response2$data.message);
6215
+ onProcessTicketError(_context.t1.response);
6096
6216
 
6097
- case 20:
6098
- _context.next = 23;
6217
+ case 35:
6218
+ _context.next = 38;
6099
6219
  break;
6100
6220
 
6101
- case 22:
6221
+ case 37:
6102
6222
  window.location.href = '/';
6103
6223
 
6104
- case 23:
6224
+ case 38:
6105
6225
  case "end":
6106
6226
  return _context.stop();
6107
6227
  }
6108
6228
  }
6109
- }, _callee, null, [[4, 16]]);
6229
+ }, _callee, null, [[6, 14], [19, 31]]);
6110
6230
  }))();
6111
6231
  }, []);
6112
6232
  return React.createElement("div", {
6113
6233
  className: "ticket-resale-page"
6114
6234
  }, React.createElement("div", {
6115
- className: "error-block"
6116
- }, React.createElement("h3", null, error)));
6235
+ className: "" + (successMessage ? 'success-block' : 'error-block')
6236
+ }, React.createElement("h3", null, successMessage ? successMessage : error)));
6117
6237
  };
6118
6238
 
6119
6239
  var style$3 = {
@@ -6148,5 +6268,152 @@ var RedirectModal = function RedirectModal(_ref) {
6148
6268
  }, "OK"))));
6149
6269
  };
6150
6270
 
6151
- export { BillingInfoContainer, ConfirmationContainer, LoginModal, MyTicketsContainer, OrderDetailsContainer, PaymentContainer, RedirectModal, TicketResaleContainer, TicketsContainer, createFixedFloatNormalizer, currencyNormalizerCreator, setConfigs };
6271
+ var style$4 = {
6272
+ position: 'absolute',
6273
+ top: '50%',
6274
+ left: '50%',
6275
+ transform: 'translate(-50%, -50%)',
6276
+ minWidth: 480,
6277
+ backgroundColor: '#e3e3e3',
6278
+ border: '1px solid white',
6279
+ outline: 'none',
6280
+ padding: '14px',
6281
+ maxHeight: '85vh',
6282
+ overflow: 'auto'
6283
+ };
6284
+ var RsvpContainer = function RsvpContainer(_ref) {
6285
+ var _ref$showSection = _ref.showSection,
6286
+ showSection = _ref$showSection === void 0 ? false : _ref$showSection,
6287
+ eventId = _ref.eventId;
6288
+ var userDataEncoded = typeof window !== 'undefined' ? window.localStorage.getItem('user_data') : '';
6289
+ var parsedData = JSON.parse(userDataEncoded || '{}');
6290
+
6291
+ var _useState = useState(false),
6292
+ loading = _useState[0],
6293
+ setLoading = _useState[1];
6294
+
6295
+ var _useState2 = useState({
6296
+ isOpen: false,
6297
+ text: ''
6298
+ }),
6299
+ modal = _useState2[0],
6300
+ setModal = _useState2[1];
6301
+
6302
+ var handleModalClose = function handleModalClose() {
6303
+ setModal({
6304
+ isOpen: false,
6305
+ text: ''
6306
+ });
6307
+ };
6308
+
6309
+ var handleSubmit = /*#__PURE__*/function () {
6310
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(values) {
6311
+ var requestData, _yield$sendRSVPInfo, data, _error$response$data;
6312
+
6313
+ return runtime_1.wrap(function _callee$(_context) {
6314
+ while (1) {
6315
+ switch (_context.prev = _context.next) {
6316
+ case 0:
6317
+ _context.prev = 0;
6318
+ setLoading(true);
6319
+ requestData = {
6320
+ data: {
6321
+ email: values.email
6322
+ }
6323
+ };
6324
+ _context.next = 5;
6325
+ return sendRSVPInfo(eventId, requestData);
6326
+
6327
+ case 5:
6328
+ _yield$sendRSVPInfo = _context.sent;
6329
+ data = _yield$sendRSVPInfo.data;
6330
+ setModal({
6331
+ isOpen: true,
6332
+ text: data.message
6333
+ });
6334
+ _context.next = 13;
6335
+ break;
6336
+
6337
+ case 10:
6338
+ _context.prev = 10;
6339
+ _context.t0 = _context["catch"](0);
6340
+
6341
+ if (_context.t0.response.status === 403) {
6342
+ setModal({
6343
+ isOpen: true,
6344
+ text: (_error$response$data = _context.t0.response.data) == null ? void 0 : _error$response$data.message
6345
+ });
6346
+ }
6347
+
6348
+ case 13:
6349
+ _context.prev = 13;
6350
+ setLoading(false);
6351
+ return _context.finish(13);
6352
+
6353
+ case 16:
6354
+ case "end":
6355
+ return _context.stop();
6356
+ }
6357
+ }
6358
+ }, _callee, null, [[0, 10, 13, 16]]);
6359
+ }));
6360
+
6361
+ return function handleSubmit(_x) {
6362
+ return _ref2.apply(this, arguments);
6363
+ };
6364
+ }();
6365
+
6366
+ if (!showSection) {
6367
+ return null;
6368
+ }
6369
+
6370
+ return React.createElement(React.Fragment, null, React.createElement(Modal, {
6371
+ open: modal.isOpen,
6372
+ onClose: handleModalClose,
6373
+ "aria-labelledby": "modal-modal-title",
6374
+ "aria-describedby": "modal-modal-description",
6375
+ className: "rsvp-modal"
6376
+ }, React.createElement(Box, {
6377
+ style: style$4,
6378
+ className: "rsvp-modal-box"
6379
+ }, React.createElement("div", {
6380
+ className: "rsvp-modal-container"
6381
+ }, React.createElement("div", {
6382
+ className: "rsvp-modal-header"
6383
+ }, modal.text), React.createElement("div", {
6384
+ className: "rsvp-modal-button"
6385
+ }, React.createElement("button", {
6386
+ onClick: handleModalClose
6387
+ }, "OK"))))), React.createElement("div", {
6388
+ className: "rsvp-container"
6389
+ }, loading ? React.createElement(Loader, null) : React.createElement(React.Fragment, null, React.createElement("div", {
6390
+ className: "rsvp-header"
6391
+ }, "RSVP"), React.createElement("div", {
6392
+ className: "rsvp-email-container"
6393
+ }, React.createElement(Formik, {
6394
+ initialValues: {
6395
+ email: (parsedData == null ? void 0 : parsedData.email) || ''
6396
+ },
6397
+ onSubmit: handleSubmit,
6398
+ enableReinitialize: true
6399
+ }, React.createElement(Form, null, React.createElement("div", {
6400
+ className: "rsvp-email-input-container"
6401
+ }, React.createElement(Field, {
6402
+ name: "email",
6403
+ label: "EMAIL ADDRESS",
6404
+ type: "email",
6405
+ validate: combineValidators(function (value) {
6406
+ return requiredValidator(value, 'Please enter your Email');
6407
+ }, function (value) {
6408
+ return emailValidator(value);
6409
+ }),
6410
+ component: CustomField
6411
+ })), React.createElement("div", {
6412
+ className: "rsvp-button-container"
6413
+ }, React.createElement(Button, {
6414
+ type: "submit"
6415
+ }, "RSVP"))))))));
6416
+ };
6417
+
6418
+ export { BillingInfoContainer, ConfirmationContainer, LoginModal, MyTicketsContainer, OrderDetailsContainer, PaymentContainer, RedirectModal, RsvpContainer, TicketResaleContainer, TicketsContainer, createFixedFloatNormalizer, currencyNormalizerCreator, setConfigs };
6152
6419
  //# sourceMappingURL=tf-checkout-react.esm.js.map