tf-checkout-react 1.0.38 → 1.0.42

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.
@@ -19,6 +19,7 @@ import Container from '@mui/material/Container';
19
19
  import Alert from '@mui/material/Alert';
20
20
  import { useStripe, useElements, CardNumberElement, CardExpiryElement, CardCvcElement, Elements } from '@stripe/react-stripe-js';
21
21
  import { loadStripe } from '@stripe/stripe-js';
22
+ import CircularProgress from '@mui/material/CircularProgress';
22
23
  import SVG from 'react-inlinesvg';
23
24
  import _sortBy from 'lodash-es/sortBy';
24
25
  import _has from 'lodash-es/has';
@@ -30,7 +31,6 @@ import _isObject from 'lodash-es/isObject';
30
31
  import FormControl from '@mui/material/FormControl';
31
32
  import MenuItem from '@mui/material/MenuItem';
32
33
  import Select from '@mui/material/Select';
33
- import CircularProgress from '@mui/material/CircularProgress';
34
34
  import Button$1 from 'react-bootstrap/Button';
35
35
  import jwt_decode from 'jwt-decode';
36
36
 
@@ -890,7 +890,7 @@ function styleInject(css, ref) {
890
890
  }
891
891
  }
892
892
 
893
- var css_248z = ".style_billing-info-container__3ZE3J{margin:0 auto;max-width:800px}.style_billing-info-container__3ZE3J .style_is-half__1W_rP{width:49%}.style_billing-info-container__3ZE3J p{color:#000}.style_billing-info-container__twoFields__2tDqt{display:flex;justify-content:space-between;margin-top:15px}.style_billing-info-container__singleField__2bcsf{margin-top:15px}button{margin-top:10px}.style_account-actions-block__16OH-{color:#182026;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,Icons16,sans-serif;margin-top:10px}.style_login-register-button__fGgZf,.style_MuiButtonBase-root__1UBk9.style_MuiButton-root__3NzEO,.style_MuiButtonBase-root__1UBk9.style_MuiButton-root__3NzEO:hover{background-color:#212529;border:#f28051;border-radius:5px;color:#fff;cursor:pointer;display:block;font-family:Inter-Bold;font-size:26px;font-weight:700;line-height:1.15;margin-top:10px;min-height:46px;outline:none;overflow:hidden;padding:14px 12px 12px;position:relative;text-align:center;text-overflow:ellipsis;text-transform:uppercase;width:49%}.style_logo-image-container__2A2uH{margin-top:5px;text-align:center;width:49%}.style_logo-image-container__2A2uH img{height:30px}.style_login-block__22kcN{align-items:center;display:flex;flex-direction:column}.style_group-label__2as-0{color:#000;font-size:24px;margin-bottom:0;margin-top:10px}.style_login-register-block__36tu5{display:flex;justify-content:space-between}";
893
+ var css_248z = ".style_billing-info-container__3ZE3J{margin:0 auto;max-width:800px}.style_billing-info-container__3ZE3J .style_is-half__1W_rP{width:49%}.style_billing-info-container__3ZE3J p{color:#000}.style_billing-info-container__3ZE3J .style_main-header__2OFWa{font-size:2rem;font-weight:600}.style_billing-info-container__twoFields__2tDqt{display:flex;justify-content:space-between;margin-top:15px}.style_billing-info-container__singleField__2bcsf{margin-top:15px}button{margin-top:10px}.style_account-actions-block__16OH-{color:#182026;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,Icons16,sans-serif;margin-top:10px}.style_login-register-button__fGgZf,.style_MuiButtonBase-root__1UBk9.style_MuiButton-root__3NzEO,.style_MuiButtonBase-root__1UBk9.style_MuiButton-root__3NzEO:hover{background-color:#212529;border:#f28051;border-radius:5px;color:#fff;cursor:pointer;display:block;font-family:Inter-Bold;font-size:26px;font-weight:700;line-height:1.15;margin-top:10px;min-height:46px;outline:none;overflow:hidden;padding:14px 12px 12px;position:relative;text-align:center;text-overflow:ellipsis;text-transform:uppercase;width:49%}.style_logo-image-container__2A2uH{margin-top:5px;text-align:center;width:49%}.style_logo-image-container__2A2uH img{height:30px}.style_login-block__22kcN{align-items:center;display:flex;flex-direction:column}.style_login-register-button__fGgZf:hover{background-color:#505050!important;border-color:#505050!important}.style_login-register-block__36tu5{display:flex;justify-content:space-between}";
894
894
  styleInject(css_248z);
895
895
 
896
896
  var combineValidators = function combineValidators() {
@@ -935,10 +935,6 @@ if (isWindowDefined && localStorage.getItem('auth_guest_token')) {
935
935
  ttfHeaders['Authorization-Guest'] = /*#__PURE__*/localStorage.getItem('auth_guest_token');
936
936
  }
937
937
 
938
- if (isWindowDefined && window.location.origin !== 'https://www.houseofx.nyc' && window.location.origin !== 'https://tickets-staging.houseofx.nyc') {
939
- ttfHeaders['X-Source-Origin'] = 'houseofx.com';
940
- }
941
-
942
938
  var publicRequest = /*#__PURE__*/axios.create({
943
939
  baseURL: ENV.BASE_URL ,
944
940
  headers: ttfHeaders
@@ -946,7 +942,9 @@ var publicRequest = /*#__PURE__*/axios.create({
946
942
  publicRequest.interceptors.response.use(function (response) {
947
943
  return response;
948
944
  }, function (error) {
949
- if (error.response.status === 401) {
945
+ var _error$response;
946
+
947
+ if ((error == null ? void 0 : (_error$response = error.response) == null ? void 0 : _error$response.status) === 401) {
950
948
  if (isWindowDefined) {
951
949
  window.localStorage.removeItem('auth_guest_token');
952
950
  window.localStorage.removeItem('user_data');
@@ -954,7 +952,7 @@ publicRequest.interceptors.response.use(function (response) {
954
952
  }
955
953
  }
956
954
 
957
- return error;
955
+ return Promise.reject(error);
958
956
  });
959
957
  publicRequest.interceptors.request.use(function (config) {
960
958
  var guestToken = isWindowDefined ? window.localStorage.getItem('auth_guest_token') : null;
@@ -980,9 +978,7 @@ publicRequest.interceptors.request.use(function (config) {
980
978
  }
981
979
 
982
980
  if (isWindowDefined && window.location.origin !== 'https://www.houseofx.nyc' && window.location.origin !== 'https://tickets-staging.houseofx.nyc') {
983
- var _updatedHeaders2 = _extends({}, config.headers, {
984
- 'X-Source-Origin': 'houseofx.com'
985
- });
981
+ var _updatedHeaders2 = _extends({}, config.headers);
986
982
 
987
983
  config.headers = _updatedHeaders2;
988
984
  }
@@ -1089,7 +1085,7 @@ var getStates = function getStates(countryId) {
1089
1085
  return publicRequest.get("/countries/" + countryId + "/states/");
1090
1086
  };
1091
1087
 
1092
- var css_248z$1 = ".style_modal-title__2sUq_{align-items:center;background-color:#fff;display:flex;font-family:Inter;font-size:18px;font-weight:700;height:49px;line-height:22px;padding-left:25px;position:relative}.style_login-modal-body__2sFg5{padding:15px 25px}.style_login-modal-body__2sFg5 input{background:#fff!important}.style_login-modal-body__email__2nnEH,.style_login-modal-body__password__qS3g7{margin-bottom:20px}.style_login-action-button__1g9qt button{background-color:#212529;border:none;border-radius:0;color:#fff;cursor:pointer;font-size:26px;font-weight:600;height:45px;line-height:18px;margin:10px 0;outline:none;padding:10px;width:100%}.style_server_auth__error__1340S{color:red;font-family:Inter;font-size:12px;font-style:normal;padding-left:25px;padding-top:15px}.style_info-text-for-login__28JQf{font-size:14px;margin-bottom:4px;padding-left:10px}";
1088
+ var css_248z$1 = ".style_modal-title__2sUq_{align-items:center;background-color:#fff;display:flex;font-family:Inter;font-size:18px;font-weight:700;height:49px;line-height:22px;padding-left:25px;position:relative}.style_login-modal-body__2sFg5{padding:15px 25px}.style_login-modal-body__2sFg5 input{background:#fff!important}.style_login-modal-body__email__2nnEH,.style_login-modal-body__password__qS3g7{margin-bottom:20px}.style_login-action-button__1g9qt button{background-color:#212529;border:none;border-radius:0;color:#fff;cursor:pointer;font-size:26px;font-weight:600;height:45px;line-height:18px;margin:10px 0;outline:none;padding:10px;width:100%}.style_login-action-button__1g9qt button:hover{background-color:#505050;border-color:#505050}.style_server_auth__error__1340S{color:red;font-family:Inter;font-size:12px;font-style:normal;padding-left:25px;padding-top:15px}.style_info-text-for-login__28JQf{font-size:14px;margin-bottom:4px;padding-left:10px}";
1093
1089
  styleInject(css_248z$1);
1094
1090
 
1095
1091
  var style = {
@@ -1486,7 +1482,7 @@ var setLoggedUserData = function setLoggedUserData(data) {
1486
1482
  city: (data == null ? void 0 : data.city) || '',
1487
1483
  country: (data == null ? void 0 : data.country) || '',
1488
1484
  phone: (data == null ? void 0 : data.phone) || '',
1489
- street_address: (data == null ? void 0 : data.street_address) || '',
1485
+ street_address: (data == null ? void 0 : data.streetAddress) || '',
1490
1486
  state: (data == null ? void 0 : data.state) || '',
1491
1487
  zip: (data == null ? void 0 : data.zip) || (data == null ? void 0 : data.zipCode) || ''
1492
1488
  };
@@ -1994,6 +1990,7 @@ var BillingInfoContainer = function BillingInfoContainer(_ref4) {
1994
1990
 
1995
1991
  if (error != null && error.password) {
1996
1992
  formikHelpers.setFieldError('password', error.password);
1993
+ formikHelpers.setFieldError('confirmPassword', error.password);
1997
1994
  }
1998
1995
 
1999
1996
  if (error != null && error.email) {
@@ -2049,6 +2046,7 @@ var BillingInfoContainer = function BillingInfoContainer(_ref4) {
2049
2046
  }, "Login"))), _map(data, function (item) {
2050
2047
  var id = item.id,
2051
2048
  label = item.label,
2049
+ labelClassName = item.labelClassName,
2052
2050
  fields = item.fields;
2053
2051
 
2054
2052
  if (label === 'Ticket Holders' && !showTicketHolderName && !showDOB) {
@@ -2057,7 +2055,9 @@ var BillingInfoContainer = function BillingInfoContainer(_ref4) {
2057
2055
 
2058
2056
  return React.createElement(SectionContainer, {
2059
2057
  key: id
2060
- }, React.createElement("p", null, label), _map(fields, function (group, index) {
2058
+ }, React.createElement("p", {
2059
+ className: labelClassName
2060
+ }, label), _map(fields, function (group, index) {
2061
2061
  var groupClassname = group.groupClassname,
2062
2062
  groupItems = group.groupItems,
2063
2063
  groupLabel = group.groupLabel,
@@ -2226,7 +2226,11 @@ var CheckoutForm = function CheckoutForm(_ref) {
2226
2226
  error = _ref$error === void 0 ? null : _ref$error,
2227
2227
  stripe_client_secret = _ref.stripe_client_secret,
2228
2228
  currency = _ref.currency,
2229
- billing_info = _ref.billing_info;
2229
+ billing_info = _ref.billing_info,
2230
+ _ref$isLoading = _ref.isLoading,
2231
+ isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
2232
+ _ref$handleSetLoading = _ref.handleSetLoading,
2233
+ handleSetLoading = _ref$handleSetLoading === void 0 ? function () {} : _ref$handleSetLoading;
2230
2234
  var stripe = useStripe();
2231
2235
  var elements = useElements();
2232
2236
 
@@ -2246,26 +2250,31 @@ var CheckoutForm = function CheckoutForm(_ref) {
2246
2250
  while (1) {
2247
2251
  switch (_context.prev = _context.next) {
2248
2252
  case 0:
2249
- _context.prev = 0;
2253
+ handleSetLoading(true);
2254
+ _context.prev = 1;
2250
2255
  event.preventDefault();
2251
2256
 
2252
2257
  if (postalCode) {
2253
- _context.next = 5;
2258
+ _context.next = 7;
2254
2259
  break;
2255
2260
  }
2256
2261
 
2257
2262
  setStripeError("Please enter your zip code.");
2263
+ handleSetLoading(false);
2258
2264
  return _context.abrupt("return");
2259
2265
 
2260
- case 5:
2266
+ case 7:
2261
2267
  if (!(!stripe || !elements)) {
2262
- _context.next = 7;
2268
+ _context.next = 10;
2263
2269
  break;
2264
2270
  }
2265
2271
 
2272
+ // Stripe.js has not loaded yet. Make sure to disable
2273
+ // form submission until Stripe.js has loaded.
2274
+ handleSetLoading(false);
2266
2275
  return _context.abrupt("return");
2267
2276
 
2268
- case 7:
2277
+ case 10:
2269
2278
  card = elements.getElement(CardNumberElement);
2270
2279
  address = {
2271
2280
  city: billing_info.city,
@@ -2273,7 +2282,7 @@ var CheckoutForm = function CheckoutForm(_ref) {
2273
2282
  state: billing_info.state,
2274
2283
  postal_code: postalCode
2275
2284
  };
2276
- _context.next = 11;
2285
+ _context.next = 14;
2277
2286
  return stripe.createPaymentMethod({
2278
2287
  type: 'card',
2279
2288
  card: card || {
@@ -2284,51 +2293,53 @@ var CheckoutForm = function CheckoutForm(_ref) {
2284
2293
  }
2285
2294
  });
2286
2295
 
2287
- case 11:
2296
+ case 14:
2288
2297
  paymentMethodReq = _context.sent;
2289
2298
 
2290
2299
  if (!paymentMethodReq.error) {
2291
- _context.next = 15;
2300
+ _context.next = 19;
2292
2301
  break;
2293
2302
  }
2294
2303
 
2295
2304
  setStripeError(paymentMethodReq.error.message || null);
2305
+ handleSetLoading(false);
2296
2306
  return _context.abrupt("return");
2297
2307
 
2298
- case 15:
2299
- _context.next = 17;
2308
+ case 19:
2309
+ _context.next = 21;
2300
2310
  return stripe.confirmCardPayment(stripe_client_secret, {
2301
2311
  payment_method: paymentMethodReq.paymentMethod.id
2302
2312
  });
2303
2313
 
2304
- case 17:
2314
+ case 21:
2305
2315
  _yield$stripe$confirm = _context.sent;
2306
2316
  _error = _yield$stripe$confirm.error;
2307
2317
 
2308
2318
  if (!_error) {
2309
- _context.next = 22;
2319
+ _context.next = 27;
2310
2320
  break;
2311
2321
  }
2312
2322
 
2313
2323
  setStripeError(_error.message);
2324
+ handleSetLoading(false);
2314
2325
  return _context.abrupt("return");
2315
2326
 
2316
- case 22:
2327
+ case 27:
2317
2328
  onSubmit(null);
2318
- _context.next = 28;
2329
+ _context.next = 33;
2319
2330
  break;
2320
2331
 
2321
- case 25:
2322
- _context.prev = 25;
2323
- _context.t0 = _context["catch"](0);
2332
+ case 30:
2333
+ _context.prev = 30;
2334
+ _context.t0 = _context["catch"](1);
2324
2335
  onSubmit(_context.t0);
2325
2336
 
2326
- case 28:
2337
+ case 33:
2327
2338
  case "end":
2328
2339
  return _context.stop();
2329
2340
  }
2330
2341
  }
2331
- }, _callee, null, [[0, 25]]);
2342
+ }, _callee, null, [[1, 30]]);
2332
2343
  }));
2333
2344
 
2334
2345
  return function handleSubmit(_x) {
@@ -2340,7 +2351,18 @@ var CheckoutForm = function CheckoutForm(_ref) {
2340
2351
  setPostalCode(e.target.value);
2341
2352
  };
2342
2353
 
2343
- return React.createElement("div", null, !!stripeError && React.createElement("div", {
2354
+ useEffect(function () {
2355
+ if (typeof window !== 'undefined') {
2356
+ var userData = JSON.parse(window.localStorage.getItem('user_data') || '');
2357
+
2358
+ var zipCode = _get(userData, 'zip', '');
2359
+
2360
+ zipCode && setPostalCode(zipCode);
2361
+ }
2362
+ }, []);
2363
+ return React.createElement("div", {
2364
+ className: "stripe_payment_container"
2365
+ }, !!stripeError && React.createElement("div", {
2344
2366
  className: "checkout_error_block"
2345
2367
  }, stripeError), React.createElement("form", {
2346
2368
  onSubmit: handleSubmit
@@ -2380,9 +2402,9 @@ var CheckoutForm = function CheckoutForm(_ref) {
2380
2402
  }))), React.createElement("div", {
2381
2403
  className: "payment_button"
2382
2404
  }, React.createElement("button", {
2383
- disabled: !stripe || !!error,
2405
+ disabled: !stripe || !!error || isLoading,
2384
2406
  type: "submit"
2385
- }, "Pay " + getCurrencySymbolByCurrency(currency) + total))));
2407
+ }, isLoading ? React.createElement(CircularProgress, null) : "Pay " + getCurrencySymbolByCurrency(currency) + total))));
2386
2408
  };
2387
2409
 
2388
2410
  var testId = ENV.STRIPE_PUBLISHABLE_KEY ;
@@ -2428,6 +2450,10 @@ var PaymentContainer = function PaymentContainer(_ref) {
2428
2450
  error = _useState3[0],
2429
2451
  setError = _useState3[1];
2430
2452
 
2453
+ var _useState4 = useState(false),
2454
+ paymentIsLoading = _useState4[0],
2455
+ setPaymentIsLoading = _useState4[1];
2456
+
2431
2457
  var showFormTitle = Boolean(formTitle);
2432
2458
  var showErrorText = Boolean(errorText);
2433
2459
  useEffect(function () {
@@ -2492,38 +2518,40 @@ var PaymentContainer = function PaymentContainer(_ref) {
2492
2518
  _context2.prev = 0;
2493
2519
 
2494
2520
  if (!error) {
2495
- _context2.next = 3;
2521
+ _context2.next = 4;
2496
2522
  break;
2497
2523
  }
2498
2524
 
2525
+ setPaymentIsLoading(false);
2499
2526
  throw error;
2500
2527
 
2501
- case 3:
2528
+ case 4:
2502
2529
  order_hash = reviewData.order_details.order_hash;
2503
- _context2.next = 6;
2530
+ _context2.next = 7;
2504
2531
  return handlePaymentSuccess(order_hash);
2505
2532
 
2506
- case 6:
2533
+ case 7:
2507
2534
  paymentSuccessResponse = _context2.sent;
2508
2535
 
2509
2536
  if (paymentSuccessResponse.status === 200) {
2510
2537
  handlePayment(paymentSuccessResponse);
2538
+ setPaymentIsLoading(false);
2511
2539
  }
2512
2540
 
2513
- _context2.next = 13;
2541
+ _context2.next = 14;
2514
2542
  break;
2515
2543
 
2516
- case 10:
2517
- _context2.prev = 10;
2544
+ case 11:
2545
+ _context2.prev = 11;
2518
2546
  _context2.t0 = _context2["catch"](0);
2519
2547
  setError(_get(_context2.t0, 'response.data.message'));
2520
2548
 
2521
- case 13:
2549
+ case 14:
2522
2550
  case "end":
2523
2551
  return _context2.stop();
2524
2552
  }
2525
2553
  }
2526
- }, _callee2, null, [[0, 10]]);
2554
+ }, _callee2, null, [[0, 11]]);
2527
2555
  }));
2528
2556
 
2529
2557
  return function handlePaymentMiddleWare(_x) {
@@ -2572,7 +2600,11 @@ var PaymentContainer = function PaymentContainer(_ref) {
2572
2600
  onSubmit: handlePaymentMiddleWare,
2573
2601
  error: error,
2574
2602
  currency: orderData.currency,
2575
- billing_info: reviewData.billing_info
2603
+ billing_info: reviewData.billing_info,
2604
+ isLoading: paymentIsLoading,
2605
+ handleSetLoading: function handleSetLoading(value) {
2606
+ return setPaymentIsLoading(value);
2607
+ }
2576
2608
  }))))));
2577
2609
  };
2578
2610
 
@@ -2737,7 +2769,7 @@ var ConfirmationContainer = function ConfirmationContainer(_ref) {
2737
2769
  })))));
2738
2770
  };
2739
2771
 
2740
- var css_248z$6 = "body{margin:0;padding:0}.style_get-tickets-page__11KeR{width:100%}.style_event-detail__tier__2CcMs{background-color:#fff;padding:17px 35px 20px}.style_event-detail__tier-name__116US{color:#000;font-family:Inter-Bold;font-family:Bebas Neue;font-size:.85rem;font-weight:700;letter-spacing:.2em;line-height:1.3;margin-bottom:8px;margin-top:16px;overflow:hidden;padding-right:20%;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.style_event-detail__tier-status__IbqO1{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;margin-top:8px;width:100%}.style_event-detail__tier-status__IbqO1.style_ticket-button__Nty1u{background-color:#212529;border:3px solid #000;border-radius:0;color:#fff;cursor:pointer;font-weight:700;letter-spacing:.2em;line-height:1.5;margin-bottom:10px;width:200px}.style_event-tickets-container__3vdaQ{align-items:center;display:flex;justify-content:space-between}.style_event-detail__tier-status__IbqO1.style_ticket-button__Nty1u.style_true__g6yhC{background-color:#c1c3c6;border-color:#afb0b1}.style_event-detail__tier-price__3doIb{color:#000;font-family:Inter-Bold;font-size:1.5rem;font-weight:700;line-height:1;text-align:center}.style_event-detail__tier-price__3doIb p{margin:0}.style_event-detail__tier-price__3doIb .style_old-price__2mSOJ{color:red;font-size:1.3rem;margin-bottom:5px;text-decoration:line-through}.style_alert-info__24Mx5{background-color:#d9edf7;border:1px solid #bce8f1;border-radius:4px;color:#3a87ad;font-size:1em;margin:0 35px;padding:8px 15px;text-align:center;text-shadow:0 1px 0 hsla(0,0%,100%,.5)}.style_event-detail__tier-state__2ethF{color:#30bc9d;font-family:Inter-Bold;font-size:.75rem;font-weight:300;line-height:1;text-align:right;text-transform:uppercase}.style_book-button__1krJI{background-color:#212529;border:3px solid #000;border-radius:0;color:#fff;cursor:pointer;display:block;font-size:26px;font-weight:700;height:50px;letter-spacing:.2em;line-height:1.5;margin:25px auto 10px;text-align:center;width:100%}.style_loader-container__3iPe2{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.style_get-tickets-paper__3ZF-f::-webkit-scrollbar{width:5px}.style_get-tickets-paper__3ZF-f::-webkit-scrollbar-track{background:#f1f1f1}.style_get-tickets-paper__3ZF-f::-webkit-scrollbar-thumb{background:#888}.style_get-tickets-paper__3ZF-f::-webkit-scrollbar-thumb:hover{background:#555}.style_get-tickets__3Sghy .style_get-tickets__selectbox__2ApAj{width:100%}.style_disabled__310xq{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.style_hidden__ceCor{display:none}";
2772
+ var css_248z$6 = "body{margin:0;padding:0}.style_get-tickets-page__11KeR{width:100%}.style_event-detail__tier__2CcMs{background-color:#fff;padding:17px 35px 20px}.style_event-detail__tier-name__116US{color:#000;font-family:Inter-Bold;font-family:Bebas Neue;font-size:.85rem;font-weight:700;letter-spacing:.2em;line-height:1.3;margin-bottom:8px;margin-top:16px;padding-right:20%;text-transform:uppercase}.style_event-detail__tier-status__IbqO1{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;margin-top:8px;width:100%}.style_event-detail__tier-status__IbqO1.style_ticket-button__Nty1u{background-color:#212529;border:3px solid #000;border-radius:0;color:#fff;cursor:pointer;font-weight:700;letter-spacing:.2em;line-height:1.5;margin-bottom:10px;width:200px}.style_event-tickets-container__3vdaQ{align-items:center;display:flex;justify-content:space-between}.style_event-detail__tier-status__IbqO1.style_ticket-button__Nty1u.style_true__g6yhC{background-color:#c1c3c6;border-color:#afb0b1}.style_event-detail__tier-price__3doIb{color:#000;font-family:Inter-Bold;font-size:1.5rem;font-weight:700;line-height:1;text-align:center}.style_event-detail__tier-price__3doIb p{margin:0}.style_event-detail__tier-price__3doIb .style_fees__19QjH{font-size:14px;font-weight:400;margin-top:4px;text-align:left}.style_event-detail__tier-price__3doIb .style_old-price__2mSOJ{color:red;font-size:1.3rem;margin-bottom:5px;text-decoration:line-through}.style_alert-info__24Mx5{background-color:#d9edf7;border:1px solid #bce8f1;border-radius:4px;color:#3a87ad;font-size:1em;margin:0 35px;padding:8px 15px;text-align:center;text-shadow:0 1px 0 hsla(0,0%,100%,.5)}.style_event-detail__tier-state__2ethF{color:#30bc9d;font-family:Inter-Bold;font-size:.75rem;font-weight:300;line-height:1;text-align:right;text-transform:uppercase}.style_promo-code-block__ttqVr input{font-size:14px;padding:1px 8px}.style_book-button__1krJI{background-color:#212529;border:3px solid #000;border-radius:0;color:#fff;cursor:pointer;display:block;font-size:26px;font-weight:700;height:50px;letter-spacing:.2em;line-height:1.5;margin:25px auto 10px;text-align:center;width:100%}.style_book-button__1krJI:hover{background-color:#505050;border-color:#505050}.style_loader-container__3iPe2{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.style_get-tickets-paper__3ZF-f::-webkit-scrollbar{width:5px}.style_get-tickets-paper__3ZF-f::-webkit-scrollbar-track{background:#f1f1f1}.style_get-tickets-paper__3ZF-f::-webkit-scrollbar-thumb{background:#888}.style_get-tickets-paper__3ZF-f::-webkit-scrollbar-thumb:hover{background:#555}.style_get-tickets__3Sghy .style_get-tickets__selectbox__2ApAj{width:100%}.style_disabled__310xq{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.style_hidden__ceCor{display:none}";
2741
2773
  styleInject(css_248z$6);
2742
2774
 
2743
2775
  var getTicketSelectOptions = function getTicketSelectOptions(maxCount, minCount, multiplier) {
@@ -2834,7 +2866,9 @@ var renderTiers = function renderTiers(boxOffice, selectedTickets, handleTicketS
2834
2866
  className: "event-detail__tier-price"
2835
2867
  }, ticketIsDiscounted && React.createElement("p", {
2836
2868
  className: "old-price"
2837
- }, "$ ", (+tier.oldPrice).toFixed(2)), React.createElement("p", null, isSoldOut ? 'SOLD OUT' : "$ " + (+tier.cost || +tier.price).toFixed(2))), React.createElement("div", {
2869
+ }, "$ ", (+tier.oldPrice).toFixed(2)), React.createElement("p", null, isSoldOut ? 'SOLD OUT' : "$ " + (+tier.cost || +tier.price).toFixed(2)), !isSoldOut && React.createElement("p", {
2870
+ className: 'fees'
2871
+ }, tier.taxesIncluded ? '(incl. Fees)' : '(excl. Fees)')), React.createElement("div", {
2838
2872
  className: "event-detail__tier-state",
2839
2873
  style: {
2840
2874
  minWidth: 55
@@ -3049,14 +3083,19 @@ var TicketsContainer = function TicketsContainer(_ref) {
3049
3083
  return React.createElement("div", {
3050
3084
  className: "get-tickets-page",
3051
3085
  style: contentStyle
3052
- }, isLoading ? React.createElement(Loader, null) : React.createElement("div", null, renderTiers(tickets, selectedTickets, handleTicketSelect, promoCodeIsApplied), promoCodeIsApplied && React.createElement("div", {
3086
+ }, isLoading ? React.createElement(Loader, null) : React.createElement("div", null, renderTiers(tickets, selectedTickets, handleTicketSelect, promoCodeIsApplied), promoCodeIsApplied ? React.createElement("div", {
3053
3087
  className: "alert-info"
3054
- }, "Your promo code was applied successfully."), showPromoInput && React.createElement("div", {
3088
+ }, "Your promo code was applied successfully.") : null, showPromoInput && React.createElement("div", {
3055
3089
  className: "promo-code-block"
3056
3090
  }, React.createElement("input", {
3057
3091
  placeholder: "Promo Code",
3058
3092
  onChange: function onChange(e) {
3059
3093
  setPromoCode(e.target.value);
3094
+ },
3095
+ onKeyPress: function onKeyPress(event) {
3096
+ if (event.key === 'Enter') {
3097
+ setPromoCodeUpdated(promoCode);
3098
+ }
3060
3099
  }
3061
3100
  }), React.createElement(Button$1, {
3062
3101
  className: "promo-apply-button",