tf-checkout-react 1.3.20 → 1.3.23

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.
@@ -1344,11 +1344,16 @@ function getEvent(id, pk) {
1344
1344
  }
1345
1345
  function getTickets(id, promoCode, pk) {
1346
1346
  var invitationHash = getQueryVariable('invitation-hash');
1347
+ var params = {
1348
+ pk: pk
1349
+ };
1350
+
1351
+ if (invitationHash) {
1352
+ params['invitation-hash'] = invitationHash;
1353
+ }
1354
+
1347
1355
  var response = publicRequest.get("v1/event/" + id + "/tickets", {
1348
- params: {
1349
- pk: pk,
1350
- 'invitation-hash': invitationHash
1351
- },
1356
+ params: params,
1352
1357
  headers: promoCode ? _extends({}, ttfHeaders, {
1353
1358
  'Promotion-Event': String(id),
1354
1359
  'Promotion-Code': promoCode
@@ -5436,7 +5441,7 @@ var TicketsSection = function TicketsSection(_ref) {
5436
5441
  }
5437
5442
 
5438
5443
  var ticketIsFree = +ticket.price === 0;
5439
- var ticketPrice = isSoldOut ? 'SOLD OUT' : ticketIsFree ? 'FREE' : "$ " + (+ticket.price).toFixed(2);
5444
+ var ticketPrice = isSoldOut ? 'SOLD OUT' : ticketIsFree ? 'FREE' : "\xA3 " + (+ticket.price).toFixed(2);
5440
5445
  return React.createElement("div", {
5441
5446
  key: ticket.id || ticket.name,
5442
5447
  className: "event-detail__tier " + (isSoldOut ? 'disabled' : '')
@@ -5448,7 +5453,7 @@ var TicketsSection = function TicketsSection(_ref) {
5448
5453
  className: "event-detail__tier-price"
5449
5454
  }, ticketIsDiscounted && React.createElement("p", {
5450
5455
  className: "old-price"
5451
- }, "$ ", (+ticket.oldPrice).toFixed(2)), React.createElement("p", {
5456
+ }, "\xA3 ", (+ticket.oldPrice).toFixed(2)), React.createElement("p", {
5452
5457
  className: isSoldOut ? 'sold-out' : ''
5453
5458
  }, ticketPrice), !isSoldOut && !ticketIsFree && React.createElement("p", {
5454
5459
  className: "fees"
@@ -6562,7 +6567,9 @@ var TicketsTable = function TicketsTable(_ref) {
6562
6567
  return _map(columns, function (column, columnIndex) {
6563
6568
  if (column.key === 'download') {
6564
6569
  var ticketIsDownloading = pdfDownload.loading && pdfDownload.hash === ticket.hash;
6565
- if (!ticket.pdf_link || ticket.status === 'Sold' || ticket.is_on_sale) return null;
6570
+ if (!ticket.pdf_link || ticket.status === 'Sold' || ticket.is_on_sale) return React.createElement(TableCell, {
6571
+ key: columnIndex
6572
+ }, null);
6566
6573
  return React.createElement(TableCell, {
6567
6574
  key: columnIndex
6568
6575
  }, Boolean(icon) && React.createElement("img", {
@@ -6735,7 +6742,8 @@ var OrderDetailsContainer = function OrderDetailsContainer(_ref) {
6735
6742
  personalLinkIcon = _ref$personalLinkIcon === void 0 ? '' : _ref$personalLinkIcon,
6736
6743
  _ref$displayColumnNam = _ref.displayColumnNameInRow,
6737
6744
  displayColumnNameInRow = _ref$displayColumnNam === void 0 ? false : _ref$displayColumnNam,
6738
- ticketsTableColumns = _ref.ticketsTableColumns;
6745
+ ticketsTableColumns = _ref.ticketsTableColumns,
6746
+ ordersPath = _ref.ordersPath;
6739
6747
 
6740
6748
  var _useState = useState({}),
6741
6749
  data = _useState[0],
@@ -6994,7 +7002,7 @@ var OrderDetailsContainer = function OrderDetailsContainer(_ref) {
6994
7002
  className: "return-button",
6995
7003
  onClick: function onClick() {
6996
7004
  if (typeof window !== 'undefined') {
6997
- window.location.assign('/orders');
7005
+ window.location.assign(ordersPath != null ? ordersPath : '/orders');
6998
7006
  }
6999
7007
  }
7000
7008
  }, "Back to Orders")))), !(data != null && data.disable_referral) && React.createElement("div", {
@@ -7062,7 +7070,7 @@ var OrderDetailsContainer = function OrderDetailsContainer(_ref) {
7062
7070
  if (onReturnButtonClick) {
7063
7071
  onReturnButtonClick(data);
7064
7072
  } else if (typeof window !== 'undefined') {
7065
- window.location.assign('/orders');
7073
+ window.location.assign(ordersPath != null ? ordersPath : '/orders');
7066
7074
  }
7067
7075
  }
7068
7076
  }, "Return to Order History"))), showResaleModal && React.createElement(TicketResaleModal, {