tf-checkout-react 1.0.37 → 1.0.41

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() {
@@ -946,7 +946,9 @@ var publicRequest = /*#__PURE__*/axios.create({
946
946
  publicRequest.interceptors.response.use(function (response) {
947
947
  return response;
948
948
  }, function (error) {
949
- if (error.response.status === 401) {
949
+ var _error$response;
950
+
951
+ if ((error == null ? void 0 : (_error$response = error.response) == null ? void 0 : _error$response.status) === 401) {
950
952
  if (isWindowDefined) {
951
953
  window.localStorage.removeItem('auth_guest_token');
952
954
  window.localStorage.removeItem('user_data');
@@ -954,7 +956,7 @@ publicRequest.interceptors.response.use(function (response) {
954
956
  }
955
957
  }
956
958
 
957
- return error;
959
+ return Promise.reject(error);
958
960
  });
959
961
  publicRequest.interceptors.request.use(function (config) {
960
962
  var guestToken = isWindowDefined ? window.localStorage.getItem('auth_guest_token') : null;
@@ -1089,7 +1091,7 @@ var getStates = function getStates(countryId) {
1089
1091
  return publicRequest.get("/countries/" + countryId + "/states/");
1090
1092
  };
1091
1093
 
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}";
1094
+ 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
1095
  styleInject(css_248z$1);
1094
1096
 
1095
1097
  var style = {
@@ -1486,7 +1488,7 @@ var setLoggedUserData = function setLoggedUserData(data) {
1486
1488
  city: (data == null ? void 0 : data.city) || '',
1487
1489
  country: (data == null ? void 0 : data.country) || '',
1488
1490
  phone: (data == null ? void 0 : data.phone) || '',
1489
- street_address: (data == null ? void 0 : data.street_address) || '',
1491
+ street_address: (data == null ? void 0 : data.streetAddress) || '',
1490
1492
  state: (data == null ? void 0 : data.state) || '',
1491
1493
  zip: (data == null ? void 0 : data.zip) || (data == null ? void 0 : data.zipCode) || ''
1492
1494
  };
@@ -1650,7 +1652,7 @@ var LogicRunner = function LogicRunner(_ref) {
1650
1652
 
1651
1653
  fetchStates();
1652
1654
  }, [values.country, setStates, setFieldValue]);
1653
- var userDataEncoded = typeof window !== undefined ? window.localStorage.getItem('user_data') : '';
1655
+ var userDataEncoded = typeof window !== 'undefined' ? window.localStorage.getItem('user_data') : '';
1654
1656
  useEffect(function () {
1655
1657
  // set user data from local storage
1656
1658
  var getStoredUserData = function getStoredUserData() {
@@ -1994,6 +1996,7 @@ var BillingInfoContainer = function BillingInfoContainer(_ref4) {
1994
1996
 
1995
1997
  if (error != null && error.password) {
1996
1998
  formikHelpers.setFieldError('password', error.password);
1999
+ formikHelpers.setFieldError('confirmPassword', error.password);
1997
2000
  }
1998
2001
 
1999
2002
  if (error != null && error.email) {
@@ -2049,6 +2052,7 @@ var BillingInfoContainer = function BillingInfoContainer(_ref4) {
2049
2052
  }, "Login"))), _map(data, function (item) {
2050
2053
  var id = item.id,
2051
2054
  label = item.label,
2055
+ labelClassName = item.labelClassName,
2052
2056
  fields = item.fields;
2053
2057
 
2054
2058
  if (label === 'Ticket Holders' && !showTicketHolderName && !showDOB) {
@@ -2057,7 +2061,9 @@ var BillingInfoContainer = function BillingInfoContainer(_ref4) {
2057
2061
 
2058
2062
  return React.createElement(SectionContainer, {
2059
2063
  key: id
2060
- }, React.createElement("p", null, label), _map(fields, function (group, index) {
2064
+ }, React.createElement("p", {
2065
+ className: labelClassName
2066
+ }, label), _map(fields, function (group, index) {
2061
2067
  var groupClassname = group.groupClassname,
2062
2068
  groupItems = group.groupItems,
2063
2069
  groupLabel = group.groupLabel,
@@ -2226,7 +2232,11 @@ var CheckoutForm = function CheckoutForm(_ref) {
2226
2232
  error = _ref$error === void 0 ? null : _ref$error,
2227
2233
  stripe_client_secret = _ref.stripe_client_secret,
2228
2234
  currency = _ref.currency,
2229
- billing_info = _ref.billing_info;
2235
+ billing_info = _ref.billing_info,
2236
+ _ref$isLoading = _ref.isLoading,
2237
+ isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
2238
+ _ref$handleSetLoading = _ref.handleSetLoading,
2239
+ handleSetLoading = _ref$handleSetLoading === void 0 ? function () {} : _ref$handleSetLoading;
2230
2240
  var stripe = useStripe();
2231
2241
  var elements = useElements();
2232
2242
 
@@ -2246,26 +2256,31 @@ var CheckoutForm = function CheckoutForm(_ref) {
2246
2256
  while (1) {
2247
2257
  switch (_context.prev = _context.next) {
2248
2258
  case 0:
2249
- _context.prev = 0;
2259
+ handleSetLoading(true);
2260
+ _context.prev = 1;
2250
2261
  event.preventDefault();
2251
2262
 
2252
2263
  if (postalCode) {
2253
- _context.next = 5;
2264
+ _context.next = 7;
2254
2265
  break;
2255
2266
  }
2256
2267
 
2257
2268
  setStripeError("Please enter your zip code.");
2269
+ handleSetLoading(false);
2258
2270
  return _context.abrupt("return");
2259
2271
 
2260
- case 5:
2272
+ case 7:
2261
2273
  if (!(!stripe || !elements)) {
2262
- _context.next = 7;
2274
+ _context.next = 10;
2263
2275
  break;
2264
2276
  }
2265
2277
 
2278
+ // Stripe.js has not loaded yet. Make sure to disable
2279
+ // form submission until Stripe.js has loaded.
2280
+ handleSetLoading(false);
2266
2281
  return _context.abrupt("return");
2267
2282
 
2268
- case 7:
2283
+ case 10:
2269
2284
  card = elements.getElement(CardNumberElement);
2270
2285
  address = {
2271
2286
  city: billing_info.city,
@@ -2273,7 +2288,7 @@ var CheckoutForm = function CheckoutForm(_ref) {
2273
2288
  state: billing_info.state,
2274
2289
  postal_code: postalCode
2275
2290
  };
2276
- _context.next = 11;
2291
+ _context.next = 14;
2277
2292
  return stripe.createPaymentMethod({
2278
2293
  type: 'card',
2279
2294
  card: card || {
@@ -2284,51 +2299,53 @@ var CheckoutForm = function CheckoutForm(_ref) {
2284
2299
  }
2285
2300
  });
2286
2301
 
2287
- case 11:
2302
+ case 14:
2288
2303
  paymentMethodReq = _context.sent;
2289
2304
 
2290
2305
  if (!paymentMethodReq.error) {
2291
- _context.next = 15;
2306
+ _context.next = 19;
2292
2307
  break;
2293
2308
  }
2294
2309
 
2295
2310
  setStripeError(paymentMethodReq.error.message || null);
2311
+ handleSetLoading(false);
2296
2312
  return _context.abrupt("return");
2297
2313
 
2298
- case 15:
2299
- _context.next = 17;
2314
+ case 19:
2315
+ _context.next = 21;
2300
2316
  return stripe.confirmCardPayment(stripe_client_secret, {
2301
2317
  payment_method: paymentMethodReq.paymentMethod.id
2302
2318
  });
2303
2319
 
2304
- case 17:
2320
+ case 21:
2305
2321
  _yield$stripe$confirm = _context.sent;
2306
2322
  _error = _yield$stripe$confirm.error;
2307
2323
 
2308
2324
  if (!_error) {
2309
- _context.next = 22;
2325
+ _context.next = 27;
2310
2326
  break;
2311
2327
  }
2312
2328
 
2313
2329
  setStripeError(_error.message);
2330
+ handleSetLoading(false);
2314
2331
  return _context.abrupt("return");
2315
2332
 
2316
- case 22:
2333
+ case 27:
2317
2334
  onSubmit(null);
2318
- _context.next = 28;
2335
+ _context.next = 33;
2319
2336
  break;
2320
2337
 
2321
- case 25:
2322
- _context.prev = 25;
2323
- _context.t0 = _context["catch"](0);
2338
+ case 30:
2339
+ _context.prev = 30;
2340
+ _context.t0 = _context["catch"](1);
2324
2341
  onSubmit(_context.t0);
2325
2342
 
2326
- case 28:
2343
+ case 33:
2327
2344
  case "end":
2328
2345
  return _context.stop();
2329
2346
  }
2330
2347
  }
2331
- }, _callee, null, [[0, 25]]);
2348
+ }, _callee, null, [[1, 30]]);
2332
2349
  }));
2333
2350
 
2334
2351
  return function handleSubmit(_x) {
@@ -2340,7 +2357,18 @@ var CheckoutForm = function CheckoutForm(_ref) {
2340
2357
  setPostalCode(e.target.value);
2341
2358
  };
2342
2359
 
2343
- return React.createElement("div", null, !!stripeError && React.createElement("div", {
2360
+ useEffect(function () {
2361
+ if (typeof window !== 'undefined') {
2362
+ var userData = JSON.parse(window.localStorage.getItem('user_data') || '');
2363
+
2364
+ var zipCode = _get(userData, 'zip', '');
2365
+
2366
+ zipCode && setPostalCode(zipCode);
2367
+ }
2368
+ }, []);
2369
+ return React.createElement("div", {
2370
+ className: "stripe_payment_container"
2371
+ }, !!stripeError && React.createElement("div", {
2344
2372
  className: "checkout_error_block"
2345
2373
  }, stripeError), React.createElement("form", {
2346
2374
  onSubmit: handleSubmit
@@ -2380,9 +2408,9 @@ var CheckoutForm = function CheckoutForm(_ref) {
2380
2408
  }))), React.createElement("div", {
2381
2409
  className: "payment_button"
2382
2410
  }, React.createElement("button", {
2383
- disabled: !stripe || !!error,
2411
+ disabled: !stripe || !!error || isLoading,
2384
2412
  type: "submit"
2385
- }, "Pay " + getCurrencySymbolByCurrency(currency) + total))));
2413
+ }, isLoading ? React.createElement(CircularProgress, null) : "Pay " + getCurrencySymbolByCurrency(currency) + total))));
2386
2414
  };
2387
2415
 
2388
2416
  var testId = ENV.STRIPE_PUBLISHABLE_KEY ;
@@ -2428,6 +2456,10 @@ var PaymentContainer = function PaymentContainer(_ref) {
2428
2456
  error = _useState3[0],
2429
2457
  setError = _useState3[1];
2430
2458
 
2459
+ var _useState4 = useState(false),
2460
+ paymentIsLoading = _useState4[0],
2461
+ setPaymentIsLoading = _useState4[1];
2462
+
2431
2463
  var showFormTitle = Boolean(formTitle);
2432
2464
  var showErrorText = Boolean(errorText);
2433
2465
  useEffect(function () {
@@ -2492,38 +2524,40 @@ var PaymentContainer = function PaymentContainer(_ref) {
2492
2524
  _context2.prev = 0;
2493
2525
 
2494
2526
  if (!error) {
2495
- _context2.next = 3;
2527
+ _context2.next = 4;
2496
2528
  break;
2497
2529
  }
2498
2530
 
2531
+ setPaymentIsLoading(false);
2499
2532
  throw error;
2500
2533
 
2501
- case 3:
2534
+ case 4:
2502
2535
  order_hash = reviewData.order_details.order_hash;
2503
- _context2.next = 6;
2536
+ _context2.next = 7;
2504
2537
  return handlePaymentSuccess(order_hash);
2505
2538
 
2506
- case 6:
2539
+ case 7:
2507
2540
  paymentSuccessResponse = _context2.sent;
2508
2541
 
2509
2542
  if (paymentSuccessResponse.status === 200) {
2510
2543
  handlePayment(paymentSuccessResponse);
2544
+ setPaymentIsLoading(false);
2511
2545
  }
2512
2546
 
2513
- _context2.next = 13;
2547
+ _context2.next = 14;
2514
2548
  break;
2515
2549
 
2516
- case 10:
2517
- _context2.prev = 10;
2550
+ case 11:
2551
+ _context2.prev = 11;
2518
2552
  _context2.t0 = _context2["catch"](0);
2519
2553
  setError(_get(_context2.t0, 'response.data.message'));
2520
2554
 
2521
- case 13:
2555
+ case 14:
2522
2556
  case "end":
2523
2557
  return _context2.stop();
2524
2558
  }
2525
2559
  }
2526
- }, _callee2, null, [[0, 10]]);
2560
+ }, _callee2, null, [[0, 11]]);
2527
2561
  }));
2528
2562
 
2529
2563
  return function handlePaymentMiddleWare(_x) {
@@ -2572,7 +2606,11 @@ var PaymentContainer = function PaymentContainer(_ref) {
2572
2606
  onSubmit: handlePaymentMiddleWare,
2573
2607
  error: error,
2574
2608
  currency: orderData.currency,
2575
- billing_info: reviewData.billing_info
2609
+ billing_info: reviewData.billing_info,
2610
+ isLoading: paymentIsLoading,
2611
+ handleSetLoading: function handleSetLoading(value) {
2612
+ return setPaymentIsLoading(value);
2613
+ }
2576
2614
  }))))));
2577
2615
  };
2578
2616
 
@@ -2737,7 +2775,7 @@ var ConfirmationContainer = function ConfirmationContainer(_ref) {
2737
2775
  })))));
2738
2776
  };
2739
2777
 
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}";
2778
+ 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
2779
  styleInject(css_248z$6);
2742
2780
 
2743
2781
  var getTicketSelectOptions = function getTicketSelectOptions(maxCount, minCount, multiplier) {
@@ -2834,7 +2872,9 @@ var renderTiers = function renderTiers(boxOffice, selectedTickets, handleTicketS
2834
2872
  className: "event-detail__tier-price"
2835
2873
  }, ticketIsDiscounted && React.createElement("p", {
2836
2874
  className: "old-price"
2837
- }, "$ ", (+tier.oldPrice).toFixed(2)), React.createElement("p", null, isSoldOut ? 'SOLD OUT' : "$ " + (+tier.cost || +tier.price).toFixed(2))), React.createElement("div", {
2875
+ }, "$ ", (+tier.oldPrice).toFixed(2)), React.createElement("p", null, isSoldOut ? 'SOLD OUT' : "$ " + (+tier.cost || +tier.price).toFixed(2)), !isSoldOut && React.createElement("p", {
2876
+ className: 'fees'
2877
+ }, tier.taxesIncluded ? '(incl. Fees)' : '(excl. Fees)')), React.createElement("div", {
2838
2878
  className: "event-detail__tier-state",
2839
2879
  style: {
2840
2880
  minWidth: 55
@@ -3049,14 +3089,19 @@ var TicketsContainer = function TicketsContainer(_ref) {
3049
3089
  return React.createElement("div", {
3050
3090
  className: "get-tickets-page",
3051
3091
  style: contentStyle
3052
- }, isLoading ? React.createElement(Loader, null) : React.createElement("div", null, renderTiers(tickets, selectedTickets, handleTicketSelect, promoCodeIsApplied), promoCodeIsApplied && React.createElement("div", {
3092
+ }, isLoading ? React.createElement(Loader, null) : React.createElement("div", null, renderTiers(tickets, selectedTickets, handleTicketSelect, promoCodeIsApplied), promoCodeIsApplied ? React.createElement("div", {
3053
3093
  className: "alert-info"
3054
- }, "Your promo code was applied successfully."), showPromoInput && React.createElement("div", {
3094
+ }, "Your promo code was applied successfully.") : null, showPromoInput && React.createElement("div", {
3055
3095
  className: "promo-code-block"
3056
3096
  }, React.createElement("input", {
3057
3097
  placeholder: "Promo Code",
3058
3098
  onChange: function onChange(e) {
3059
3099
  setPromoCode(e.target.value);
3100
+ },
3101
+ onKeyPress: function onKeyPress(event) {
3102
+ if (event.key === 'Enter') {
3103
+ setPromoCodeUpdated(promoCode);
3104
+ }
3060
3105
  }
3061
3106
  }), React.createElement(Button$1, {
3062
3107
  className: "promo-apply-button",