tf-checkout-react 1.3.37 → 1.3.38-beta.2
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.
- package/{src/components → dist}/.DS_Store +0 -0
- package/dist/components/waitingList/index.d.ts +2 -1
- package/dist/tf-checkout-react.cjs.development.js +39 -6
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +39 -6
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/assets/.DS_Store +0 -0
- package/src/components/confirmationContainer/index.tsx +30 -2
- package/src/components/confirmationContainer/social-buttons.tsx +11 -8
- package/src/components/ticketsContainer/index.tsx +1 -1
- package/src/components/waitingList/index.tsx +3 -2
- package/src/components/common/dist/PhoneNumberField.js +0 -96
|
@@ -4879,7 +4879,9 @@ var SocialButtons = function SocialButtons(_ref2) {
|
|
|
4879
4879
|
return React.createElement(SocialComponent, Object.assign({
|
|
4880
4880
|
key: index
|
|
4881
4881
|
}, shareButton));
|
|
4882
|
-
})), (showDefaultShareButtons || shareButtons.length) && React.createElement("p", null, "We ", React.createElement("strong", null, "never"), " post on Facebook without your permission!")
|
|
4882
|
+
})), (showDefaultShareButtons || shareButtons.length) && React.createElement("p", null, "We ", React.createElement("strong", null, "never"), " post on Facebook without your permission!"), React.createElement("p", {
|
|
4883
|
+
className: 'note-message'
|
|
4884
|
+
}, React.createElement("span", null, "*Please note, only purchases made from a different Ticket Fairy account can count towards your referrals"), React.createElement("span", null, " so please make sure you ask your friends to buy their own tickets using their own Ticket Fairy account!")));
|
|
4883
4885
|
};
|
|
4884
4886
|
|
|
4885
4887
|
var ConfirmationContainer = function ConfirmationContainer(_ref) {
|
|
@@ -4975,6 +4977,14 @@ var ConfirmationContainer = function ConfirmationContainer(_ref) {
|
|
|
4975
4977
|
}))();
|
|
4976
4978
|
}, []);
|
|
4977
4979
|
|
|
4980
|
+
var _useState2 = useState(false),
|
|
4981
|
+
showCopyModal = _useState2[0],
|
|
4982
|
+
setShowCopyModal = _useState2[1];
|
|
4983
|
+
|
|
4984
|
+
var onClose = function onClose() {
|
|
4985
|
+
setShowCopyModal(false);
|
|
4986
|
+
};
|
|
4987
|
+
|
|
4978
4988
|
var onChangeShareLink = function onChangeShareLink(e) {
|
|
4979
4989
|
var newData = _extends({}, data, {
|
|
4980
4990
|
personal_share_link: e.target.value
|
|
@@ -4991,11 +5001,28 @@ var ConfirmationContainer = function ConfirmationContainer(_ref) {
|
|
|
4991
5001
|
confirmationHelper = _confirmationLabels$c3 === void 0 ? 'Please bring them with you to the event' : _confirmationLabels$c3;
|
|
4992
5002
|
return React.createElement("div", {
|
|
4993
5003
|
className: "confirmation-page"
|
|
4994
|
-
},
|
|
5004
|
+
}, React.createElement(Modal$1, {
|
|
5005
|
+
open: showCopyModal,
|
|
5006
|
+
onClose: onClose,
|
|
5007
|
+
"aria-labelledby": "modal-modal-title",
|
|
5008
|
+
"aria-describedby": "modal-modal-description",
|
|
5009
|
+
className: "success-copy-modal"
|
|
5010
|
+
}, React.createElement("div", {
|
|
5011
|
+
className: 'message-copy-success-box'
|
|
5012
|
+
}, React.createElement("div", {
|
|
5013
|
+
className: 'message-copy-success'
|
|
5014
|
+
}, React.createElement("span", null, "Copied to your clipboard! Now paste your link in a Snapchat message, "), React.createElement("span", null, "your Instagram bio, Whatsapp, Facebook or a text :)")), React.createElement("div", {
|
|
5015
|
+
className: "footer"
|
|
5016
|
+
}, React.createElement("button", {
|
|
5017
|
+
className: 'footer-button',
|
|
5018
|
+
type: 'button',
|
|
5019
|
+
onClick: onClose
|
|
5020
|
+
}, "OK")))), data && React.createElement(React.Fragment, null, React.createElement("div", {
|
|
4995
5021
|
className: 'header-container'
|
|
4996
5022
|
}, React.createElement("div", {
|
|
4997
5023
|
className: 'header-product-image'
|
|
4998
5024
|
}, React.createElement("img", {
|
|
5025
|
+
alt: '',
|
|
4999
5026
|
className: 'product-image',
|
|
5000
5027
|
src: data.product_image
|
|
5001
5028
|
})), React.createElement("div", {
|
|
@@ -5059,6 +5086,7 @@ var ConfirmationContainer = function ConfirmationContainer(_ref) {
|
|
|
5059
5086
|
className: "share-by-link-copy-icon",
|
|
5060
5087
|
onClick: function onClick() {
|
|
5061
5088
|
navigator.clipboard.writeText(_get(inputRef, 'current.value'));
|
|
5089
|
+
setShowCopyModal(true);
|
|
5062
5090
|
onLinkCopied();
|
|
5063
5091
|
}
|
|
5064
5092
|
}, hasCopyIcon ? React.createElement("img", {
|
|
@@ -5087,7 +5115,9 @@ var ConfirmationContainer = function ConfirmationContainer(_ref) {
|
|
|
5087
5115
|
}, pricing.subLabel)), React.createElement("div", {
|
|
5088
5116
|
className: "pricing-section_price"
|
|
5089
5117
|
}, ' ', pricing.price));
|
|
5090
|
-
})
|
|
5118
|
+
}), React.createElement("div", {
|
|
5119
|
+
className: 'note-pricing-section'
|
|
5120
|
+
}, "^ This is based on the most expensive ticket in your order."))))));
|
|
5091
5121
|
};
|
|
5092
5122
|
|
|
5093
5123
|
var X_TF_ECOMMERCE = 'X-TF-ECOMMERCE';
|
|
@@ -5271,7 +5301,9 @@ var generateQuantity = function generateQuantity(n) {
|
|
|
5271
5301
|
var WaitingList = function WaitingList(_ref) {
|
|
5272
5302
|
var _ref$tickets = _ref.tickets,
|
|
5273
5303
|
tickets = _ref$tickets === void 0 ? {} : _ref$tickets,
|
|
5274
|
-
eventId = _ref.eventId
|
|
5304
|
+
eventId = _ref.eventId,
|
|
5305
|
+
_ref$defaultMaxQuanti = _ref.defaultMaxQuantity,
|
|
5306
|
+
defaultMaxQuantity = _ref$defaultMaxQuanti === void 0 ? 10 : _ref$defaultMaxQuanti;
|
|
5275
5307
|
var isWindowDefined = typeof window !== 'undefined';
|
|
5276
5308
|
var userData = isWindowDefined && window.localStorage.getItem('user_data') ? JSON.parse(window.localStorage.getItem('user_data') || '') : {};
|
|
5277
5309
|
|
|
@@ -5380,7 +5412,7 @@ var WaitingList = function WaitingList(_ref) {
|
|
|
5380
5412
|
label: 'Quantity Requested',
|
|
5381
5413
|
value: '',
|
|
5382
5414
|
disabled: true
|
|
5383
|
-
}].concat(generateQuantity(10))
|
|
5415
|
+
}].concat(generateQuantity(defaultMaxQuantity != null ? defaultMaxQuantity : 10))
|
|
5384
5416
|
}))), React.createElement("div", {
|
|
5385
5417
|
className: "field-item"
|
|
5386
5418
|
}, React.createElement(Field, {
|
|
@@ -6366,7 +6398,8 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
6366
6398
|
isLoggedIn: isLoggedIn
|
|
6367
6399
|
}) : null, showWaitingList && event.salesStarted && !hideWaitingList && React.createElement(WaitingList, {
|
|
6368
6400
|
tickets: tickets,
|
|
6369
|
-
eventId: eventId
|
|
6401
|
+
eventId: eventId,
|
|
6402
|
+
defaultMaxQuantity: event.waitingListMaxQuantity
|
|
6370
6403
|
}), codeIsLoading ? React.createElement(Loader, null) : isSalesClosed ? null : showAccessCodeSection ? React.createElement(AccessCodeSection, {
|
|
6371
6404
|
code: code,
|
|
6372
6405
|
setCode: setCode,
|