tf-checkout-react 1.3.50-beta.0 → 1.3.50-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/dist/components/addonsContainer/index.d.ts +2 -1
- package/dist/components/billing-info-container/index.d.ts +2 -1
- package/dist/components/common/ModalComponent/index.d.ts +1 -1
- package/dist/components/idVerificationContainer/VerificationPendingModal.d.ts +10 -0
- package/dist/components/ticketsContainer/index.d.ts +2 -1
- package/dist/tf-checkout-react.cjs.development.js +167 -86
- 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 +167 -86
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/addonsContainer/index.tsx +20 -4
- package/src/components/billing-info-container/index.tsx +25 -2
- package/src/components/common/ModalComponent/index.tsx +1 -1
- package/src/components/idVerificationContainer/VerificationPendingModal.tsx +47 -0
- package/src/components/idVerificationContainer/index.tsx +10 -1
- package/src/components/ticketsContainer/index.tsx +13 -1
|
@@ -10,8 +10,9 @@ export interface IAddonContainterProps {
|
|
|
10
10
|
onConfirmSelectionSuccess?: (res: any) => void;
|
|
11
11
|
onConfirmSelectionError?: (error: any) => void;
|
|
12
12
|
onCountdownFinish?: () => void;
|
|
13
|
+
onPendingVerification?: () => void;
|
|
13
14
|
}
|
|
14
15
|
export interface ObjectLiteral {
|
|
15
16
|
[key: string]: any;
|
|
16
17
|
}
|
|
17
|
-
export declare const AddonsContainter: ({ classNamePrefix, enableBillingInfoAutoCreate, enableTimer, onGetAddonsPageInfoSuccess, onGetAddonsPageInfoError, onPostCheckoutSuccess, onPostCheckoutError, onConfirmSelectionSuccess, onConfirmSelectionError, onCountdownFinish, }: IAddonContainterProps) => JSX.Element;
|
|
18
|
+
export declare const AddonsContainter: ({ classNamePrefix, enableBillingInfoAutoCreate, enableTimer, onGetAddonsPageInfoSuccess, onGetAddonsPageInfoError, onPostCheckoutSuccess, onPostCheckoutError, onConfirmSelectionSuccess, onConfirmSelectionError, onCountdownFinish, onPendingVerification, }: IAddonContainterProps) => JSX.Element;
|
|
@@ -50,5 +50,6 @@ export interface IBillingInfoPage {
|
|
|
50
50
|
brandOptIn?: boolean;
|
|
51
51
|
showPoweredByImage?: boolean;
|
|
52
52
|
isCountryCodeEditable?: boolean;
|
|
53
|
+
onPendingVerification?: () => void;
|
|
53
54
|
}
|
|
54
|
-
export declare const BillingInfoContainer: React.MemoExoticComponent<({ data, ticketHoldersFields, initialValues, buttonName, handleSubmit, theme, onRegisterSuccess, onRegisterError, onSubmitError, onGetCartSuccess, onGetCartError, onGetCountriesSuccess, onGetCountriesError, onGetStatesSuccess, onGetStatesError, onGetProfileDataSuccess, onGetProfileDataError, onAuthorizeSuccess, onAuthorizeError, onLogin, onLoginSuccess, isLoggedIn: pIsLoggedIn, accountInfoTitle, hideLogo, themeOptions, onErrorClose, hideErrorsAlertSection, onSkipBillingPage, skipPage, canSkipHolderNames, onForgotPasswordSuccess, onForgotPasswordError, shouldFetchCountries, onCountdownFinish, enableTimer, logo, showForgotPasswordButton, showSignUpButton, brandOptIn, showPoweredByImage, isCountryCodeEditable, }: IBillingInfoPage) => JSX.Element>;
|
|
55
|
+
export declare const BillingInfoContainer: React.MemoExoticComponent<({ data, ticketHoldersFields, initialValues, buttonName, handleSubmit, theme, onRegisterSuccess, onRegisterError, onSubmitError, onGetCartSuccess, onGetCartError, onGetCountriesSuccess, onGetCountriesError, onGetStatesSuccess, onGetStatesError, onGetProfileDataSuccess, onGetProfileDataError, onAuthorizeSuccess, onAuthorizeError, onLogin, onLoginSuccess, isLoggedIn: pIsLoggedIn, accountInfoTitle, hideLogo, themeOptions, onErrorClose, hideErrorsAlertSection, onSkipBillingPage, skipPage, canSkipHolderNames, onForgotPasswordSuccess, onForgotPasswordError, shouldFetchCountries, onCountdownFinish, enableTimer, logo, showForgotPasswordButton, showSignUpButton, brandOptIn, showPoweredByImage, isCountryCodeEditable, onPendingVerification, }: IBillingInfoPage) => JSX.Element>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Action } from '../common/ModalComponent';
|
|
3
|
+
interface IDVerificationProps {
|
|
4
|
+
message?: string | null;
|
|
5
|
+
displayModal?: boolean;
|
|
6
|
+
actions?: Action[];
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const VerificationPendingModal: (props: IDVerificationProps) => JSX.Element | null;
|
|
10
|
+
export {};
|
|
@@ -57,6 +57,7 @@ export interface IGetTickets {
|
|
|
57
57
|
promoText?: string;
|
|
58
58
|
showGroupNameBlock?: boolean;
|
|
59
59
|
currencySybmol?: string;
|
|
60
|
+
onPendingVerification?: () => void;
|
|
60
61
|
}
|
|
61
62
|
export interface ITicket {
|
|
62
63
|
id: string | number;
|
|
@@ -65,5 +66,5 @@ export interface ITicket {
|
|
|
65
66
|
export interface ISelectedTickets {
|
|
66
67
|
[key: string]: string | number;
|
|
67
68
|
}
|
|
68
|
-
export declare const TicketsContainer: ({ onLoginSuccess, getTicketsLabel, eventId, onAddToCartSuccess, contentStyle, onAddToCartError, onGetTicketsSuccess, onGetTicketsError, onLogoutSuccess, onLogoutError, onGetProfileDataSuccess, onGetProfileDataError, theme, queryPromoCode, isPromotionsEnabled, themeOptions, isAccessCodeEnabled, hideSessionButtons, hideWaitingList, enableBillingInfoAutoCreate, isButtonScrollable, sortBySoldOut, disableCountdownLeadingZero, isLoggedIn, actionsSectionComponent: ActionsSectionComponent, ticketsHeaderComponent, hideTicketsHeader, enableInfluencersSection, enableAddOns, handleNotInvitedModalClose, handleInvalidLinkModalClose, ordersPath, showPoweredByImage, promoText, showGroupNameBlock, currencySybmol, }: IGetTickets) => JSX.Element;
|
|
69
|
+
export declare const TicketsContainer: ({ onLoginSuccess, getTicketsLabel, eventId, onAddToCartSuccess, contentStyle, onAddToCartError, onGetTicketsSuccess, onGetTicketsError, onLogoutSuccess, onLogoutError, onGetProfileDataSuccess, onGetProfileDataError, theme, queryPromoCode, isPromotionsEnabled, themeOptions, isAccessCodeEnabled, hideSessionButtons, hideWaitingList, enableBillingInfoAutoCreate, isButtonScrollable, sortBySoldOut, disableCountdownLeadingZero, isLoggedIn, actionsSectionComponent: ActionsSectionComponent, ticketsHeaderComponent, hideTicketsHeader, enableInfluencersSection, enableAddOns, handleNotInvitedModalClose, handleInvalidLinkModalClose, ordersPath, showPoweredByImage, promoText, showGroupNameBlock, currencySybmol, onPendingVerification, }: IGetTickets) => JSX.Element;
|
|
69
70
|
export {};
|
|
@@ -27,6 +27,7 @@ var styles$1 = require('@mui/styles');
|
|
|
27
27
|
var _isFunction = _interopDefault(require('lodash/isFunction'));
|
|
28
28
|
var _isObject = _interopDefault(require('lodash/isObject'));
|
|
29
29
|
var Box = _interopDefault(require('@mui/material/Box'));
|
|
30
|
+
var CircularProgress = _interopDefault(require('@mui/material/CircularProgress'));
|
|
30
31
|
var Modal$1 = _interopDefault(require('@mui/material/Modal'));
|
|
31
32
|
var Countdown$1 = _interopDefault(require('react-countdown'));
|
|
32
33
|
var SVG = _interopDefault(require('react-inlinesvg'));
|
|
@@ -38,7 +39,6 @@ var FormControlLabel = _interopDefault(require('@mui/material/FormControlLabel')
|
|
|
38
39
|
var FormGroup = _interopDefault(require('@mui/material/FormGroup'));
|
|
39
40
|
var MuiPhoneNumber = _interopDefault(require('material-ui-phone-number'));
|
|
40
41
|
var _debounce = _interopDefault(require('lodash/debounce'));
|
|
41
|
-
var CircularProgress = _interopDefault(require('@mui/material/CircularProgress'));
|
|
42
42
|
var Select = _interopDefault(require('@mui/material/Select'));
|
|
43
43
|
var FormControl = _interopDefault(require('@mui/material/FormControl'));
|
|
44
44
|
var FormHelperText = _interopDefault(require('@mui/material/FormHelperText'));
|
|
@@ -1486,6 +1486,79 @@ var ForgotPasswordModal = function ForgotPasswordModal(_ref) {
|
|
|
1486
1486
|
};
|
|
1487
1487
|
|
|
1488
1488
|
var style$1 = {
|
|
1489
|
+
position: 'absolute',
|
|
1490
|
+
top: '50%',
|
|
1491
|
+
left: '50%',
|
|
1492
|
+
transform: 'translate(-50%, -50%)',
|
|
1493
|
+
minWidth: 480,
|
|
1494
|
+
backgroundColor: '#e3e3e3',
|
|
1495
|
+
border: '1px solid white',
|
|
1496
|
+
outline: 'none',
|
|
1497
|
+
padding: '14px',
|
|
1498
|
+
maxHeight: '85vh',
|
|
1499
|
+
overflow: 'auto'
|
|
1500
|
+
};
|
|
1501
|
+
var Modal = function Modal(_ref) {
|
|
1502
|
+
var onClose = _ref.onClose,
|
|
1503
|
+
_ref$actions = _ref.actions,
|
|
1504
|
+
actions = _ref$actions === void 0 ? [] : _ref$actions,
|
|
1505
|
+
children = _ref.children,
|
|
1506
|
+
_ref$modalClassName = _ref.modalClassName,
|
|
1507
|
+
modalClassName = _ref$modalClassName === void 0 ? '' : _ref$modalClassName;
|
|
1508
|
+
return React__default.createElement(material.Modal, {
|
|
1509
|
+
open: true,
|
|
1510
|
+
onClose: onClose,
|
|
1511
|
+
"aria-labelledby": "modal-modal-title",
|
|
1512
|
+
"aria-describedby": "modal-modal-description",
|
|
1513
|
+
className: "confirm-modal " + modalClassName
|
|
1514
|
+
}, React__default.createElement(Box, {
|
|
1515
|
+
style: style$1
|
|
1516
|
+
}, React__default.createElement("div", {
|
|
1517
|
+
className: "modal-body"
|
|
1518
|
+
}, children), React__default.createElement("div", {
|
|
1519
|
+
className: "footer"
|
|
1520
|
+
}, _map(actions, function (action) {
|
|
1521
|
+
return React__default.createElement(Button, {
|
|
1522
|
+
key: action.id,
|
|
1523
|
+
onClick: action.onClick,
|
|
1524
|
+
disabled: action.disabled || action.loading,
|
|
1525
|
+
variant: action.variant || "text"
|
|
1526
|
+
}, action.loading ? React__default.createElement(CircularProgress, {
|
|
1527
|
+
size: "22px"
|
|
1528
|
+
}) : action.label);
|
|
1529
|
+
}))));
|
|
1530
|
+
};
|
|
1531
|
+
|
|
1532
|
+
var VerificationPendingModal = function VerificationPendingModal(props) {
|
|
1533
|
+
var message = props.message,
|
|
1534
|
+
displayModal = props.displayModal,
|
|
1535
|
+
actions = props.actions,
|
|
1536
|
+
onClose = props.onClose;
|
|
1537
|
+
var _useState = React.useState(false),
|
|
1538
|
+
showModal = _useState[0],
|
|
1539
|
+
setShowModal = _useState[1];
|
|
1540
|
+
React.useEffect(function () {
|
|
1541
|
+
if (displayModal === undefined) {
|
|
1542
|
+
setShowModal(Boolean(message));
|
|
1543
|
+
}
|
|
1544
|
+
}, [message, displayModal]);
|
|
1545
|
+
return showModal || displayModal ? React__default.createElement("div", null, React__default.createElement(Modal, {
|
|
1546
|
+
modalClassName: "id-verification-modal",
|
|
1547
|
+
actions: actions || [{
|
|
1548
|
+
id: 'okay',
|
|
1549
|
+
label: 'OK',
|
|
1550
|
+
variant: 'contained',
|
|
1551
|
+
onClick: function onClick() {
|
|
1552
|
+
setShowModal(false);
|
|
1553
|
+
if (onClose) {
|
|
1554
|
+
onClose();
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
}]
|
|
1558
|
+
}, React__default.createElement("div", null, message))) : null;
|
|
1559
|
+
};
|
|
1560
|
+
|
|
1561
|
+
var style$2 = {
|
|
1489
1562
|
position: 'absolute',
|
|
1490
1563
|
top: '50%',
|
|
1491
1564
|
left: '50%',
|
|
@@ -1544,7 +1617,7 @@ var LoginModal = function LoginModal(_ref) {
|
|
|
1544
1617
|
"aria-describedby": "modal-modal-description",
|
|
1545
1618
|
className: "login-modal " + modalClassname
|
|
1546
1619
|
}, React__default.createElement(Box, {
|
|
1547
|
-
style: style$
|
|
1620
|
+
style: style$2
|
|
1548
1621
|
}, React__default.createElement("div", null, React__default.createElement(formik.Formik, {
|
|
1549
1622
|
initialValues: {
|
|
1550
1623
|
email: '',
|
|
@@ -1679,7 +1752,7 @@ var LoginModal = function LoginModal(_ref) {
|
|
|
1679
1752
|
}))));
|
|
1680
1753
|
};
|
|
1681
1754
|
|
|
1682
|
-
var style$
|
|
1755
|
+
var style$3 = {
|
|
1683
1756
|
position: 'absolute',
|
|
1684
1757
|
top: '50%',
|
|
1685
1758
|
left: '50%',
|
|
@@ -1770,7 +1843,7 @@ var SignupModal = function SignupModal(_ref) {
|
|
|
1770
1843
|
"aria-describedby": "modal-modal-description",
|
|
1771
1844
|
className: "signup-modal"
|
|
1772
1845
|
}, React__default.createElement(material.Box, {
|
|
1773
|
-
style: style$
|
|
1846
|
+
style: style$3
|
|
1774
1847
|
}, React__default.createElement("div", null, React__default.createElement(formik.Formik, {
|
|
1775
1848
|
initialValues: {
|
|
1776
1849
|
firstName: '',
|
|
@@ -2688,7 +2761,9 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
2688
2761
|
_ref4$showPoweredByIm = _ref4.showPoweredByImage,
|
|
2689
2762
|
showPoweredByImage = _ref4$showPoweredByIm === void 0 ? false : _ref4$showPoweredByIm,
|
|
2690
2763
|
_ref4$isCountryCodeEd = _ref4.isCountryCodeEditable,
|
|
2691
|
-
isCountryCodeEditable = _ref4$isCountryCodeEd === void 0 ? true : _ref4$isCountryCodeEd
|
|
2764
|
+
isCountryCodeEditable = _ref4$isCountryCodeEd === void 0 ? true : _ref4$isCountryCodeEd,
|
|
2765
|
+
_ref4$onPendingVerifi = _ref4.onPendingVerification,
|
|
2766
|
+
onPendingVerification = _ref4$onPendingVerifi === void 0 ? _identity : _ref4$onPendingVerifi;
|
|
2692
2767
|
var _useState = React.useState(false),
|
|
2693
2768
|
isNewUser = _useState[0],
|
|
2694
2769
|
setIsNewUser = _useState[1];
|
|
@@ -2776,6 +2851,9 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
2776
2851
|
var flagFreeTicket = getQueryVariable('free_ticket') === 'true';
|
|
2777
2852
|
var hidePhoneField = getQueryVariable('hide_phone_field') === 'true';
|
|
2778
2853
|
var hideWalletAddressField = !collectOptionalWalletAddress && !collectMandatoryWalletAddress;
|
|
2854
|
+
var _useState18 = React.useState(),
|
|
2855
|
+
pendingVerificationMessage = _useState18[0],
|
|
2856
|
+
setPendingVerificationMessage = _useState18[1];
|
|
2779
2857
|
// Get prevProps
|
|
2780
2858
|
var prevData = React.useRef(data);
|
|
2781
2859
|
var addAddOnsInAttributes = function addAddOnsInAttributes(checkoutBody) {
|
|
@@ -2935,12 +3013,12 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
2935
3013
|
React.useEffect(function () {
|
|
2936
3014
|
var collectPaymentData = /*#__PURE__*/function () {
|
|
2937
3015
|
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
2938
|
-
var checkoutBody, res;
|
|
3016
|
+
var checkoutBody, res, _e$response, _e$response$data, _e$response$data$data, _e$response2, _e$response2$data;
|
|
2939
3017
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
2940
3018
|
while (1) switch (_context5.prev = _context5.next) {
|
|
2941
3019
|
case 0:
|
|
2942
3020
|
if (!(skipPage && !_isEmpty(ticketsQuantity) && !showDOB && !loading && !isNewUser)) {
|
|
2943
|
-
_context5.next =
|
|
3021
|
+
_context5.next = 19;
|
|
2944
3022
|
break;
|
|
2945
3023
|
}
|
|
2946
3024
|
setLoading(true);
|
|
@@ -2956,18 +3034,21 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
2956
3034
|
removeReferralKey();
|
|
2957
3035
|
onSkipBillingPage(_get(res, 'data.data.attributes'));
|
|
2958
3036
|
setLoading(false);
|
|
2959
|
-
_context5.next =
|
|
3037
|
+
_context5.next = 17;
|
|
2960
3038
|
break;
|
|
2961
3039
|
case 13:
|
|
2962
3040
|
_context5.prev = 13;
|
|
2963
3041
|
_context5.t0 = _context5["catch"](3);
|
|
2964
3042
|
onSubmitError(_context5.t0);
|
|
2965
|
-
|
|
2966
|
-
|
|
3043
|
+
if ((_e$response = _context5.t0.response) != null && (_e$response$data = _e$response.data) != null && (_e$response$data$data = _e$response$data.data) != null && _e$response$data$data.hasUnverifiedOrder) {
|
|
3044
|
+
setPendingVerificationMessage((_e$response2 = _context5.t0.response) == null ? void 0 : (_e$response2$data = _e$response2.data) == null ? void 0 : _e$response2$data.message);
|
|
3045
|
+
}
|
|
3046
|
+
case 17:
|
|
3047
|
+
_context5.next = 20;
|
|
2967
3048
|
break;
|
|
2968
|
-
case 18:
|
|
2969
|
-
setLoading(false);
|
|
2970
3049
|
case 19:
|
|
3050
|
+
setLoading(false);
|
|
3051
|
+
case 20:
|
|
2971
3052
|
case "end":
|
|
2972
3053
|
return _context5.stop();
|
|
2973
3054
|
}
|
|
@@ -3039,7 +3120,7 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
3039
3120
|
enableReinitialize: false,
|
|
3040
3121
|
onSubmit: function () {
|
|
3041
3122
|
var _onSubmit = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(values, formikHelpers) {
|
|
3042
|
-
var _checkoutBody, _res, updatedUserData, _profileSpecifiedData, _profileDataObj, checkoutBodyForRegistration, bodyFormData, resRegister, _xtfCookie, accessToken, refreshToken, userProfile, _e$
|
|
3123
|
+
var _checkoutBody, _res, updatedUserData, _profileSpecifiedData, _profileDataObj, checkoutBodyForRegistration, bodyFormData, resRegister, _xtfCookie, accessToken, refreshToken, userProfile, _e$response3, _e$response3$data, _e$response3$data$dat, _e$response4, _e$response4$data, _e$response5, _e$response5$data, _error, profileData, profileSpecifiedData, profileDataObj, checkoutBody, res, _e$response6, _e$response6$data, _e$response6$data$dat, _e$response7, _e$response7$data, _e$response8, _e$response9, _e$response9$data, _e$response10, event;
|
|
3043
3124
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
3044
3125
|
while (1) switch (_context6.prev = _context6.next) {
|
|
3045
3126
|
case 0:
|
|
@@ -3102,8 +3183,10 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
3102
3183
|
_context6.prev = 32;
|
|
3103
3184
|
_context6.t0 = _context6["catch"](19);
|
|
3104
3185
|
setLoading(false);
|
|
3105
|
-
if (
|
|
3106
|
-
|
|
3186
|
+
if ((_e$response3 = _context6.t0.response) != null && (_e$response3$data = _e$response3.data) != null && (_e$response3$data$dat = _e$response3$data.data) != null && _e$response3$data$dat.hasUnverifiedOrder) {
|
|
3187
|
+
setPendingVerificationMessage((_e$response4 = _context6.t0.response) == null ? void 0 : (_e$response4$data = _e$response4.data) == null ? void 0 : _e$response4$data.message);
|
|
3188
|
+
} else if (axios.isAxiosError(_context6.t0)) {
|
|
3189
|
+
_error = _context6.t0 == null ? void 0 : (_e$response5 = _context6.t0.response) == null ? void 0 : (_e$response5$data = _e$response5.data) == null ? void 0 : _e$response5$data.message;
|
|
3107
3190
|
if (_includes(_error, 'You must be aged')) {
|
|
3108
3191
|
formikHelpers.setFieldError('holderAge', _error);
|
|
3109
3192
|
}
|
|
@@ -3148,8 +3231,10 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
3148
3231
|
_context6.prev = 52;
|
|
3149
3232
|
_context6.t1 = _context6["catch"](0);
|
|
3150
3233
|
setLoading(false);
|
|
3151
|
-
if (
|
|
3152
|
-
|
|
3234
|
+
if ((_e$response6 = _context6.t1.response) != null && (_e$response6$data = _e$response6.data) != null && (_e$response6$data$dat = _e$response6$data.data) != null && _e$response6$data$dat.hasUnverifiedOrder) {
|
|
3235
|
+
setPendingVerificationMessage((_e$response7 = _context6.t1.response) == null ? void 0 : (_e$response7$data = _e$response7.data) == null ? void 0 : _e$response7$data.message);
|
|
3236
|
+
} else if (axios.isAxiosError(_context6.t1)) {
|
|
3237
|
+
if (((_e$response8 = _context6.t1.response) == null ? void 0 : _e$response8.status) === 401 || ((_e$response9 = _context6.t1.response) == null ? void 0 : (_e$response9$data = _e$response9.data) == null ? void 0 : _e$response9$data.error) === 'invalid_token') {
|
|
3153
3238
|
if (isWindowDefined) {
|
|
3154
3239
|
window.localStorage.removeItem('user_data');
|
|
3155
3240
|
window.localStorage.removeItem('access_token');
|
|
@@ -3163,7 +3248,7 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
3163
3248
|
window.document.dispatchEvent(event);
|
|
3164
3249
|
}
|
|
3165
3250
|
}
|
|
3166
|
-
if ((_e$
|
|
3251
|
+
if ((_e$response10 = _context6.t1.response) != null && _e$response10.data.message && !hideErrorsAlertSection) {
|
|
3167
3252
|
setError(_get(_context6.t1, 'response.data.message'));
|
|
3168
3253
|
}
|
|
3169
3254
|
onSubmitError(_context6.t1);
|
|
@@ -3395,6 +3480,11 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
3395
3480
|
onForgotPasswordSuccess: onForgotPasswordSuccess,
|
|
3396
3481
|
onForgotPasswordError: onForgotPasswordError,
|
|
3397
3482
|
showPoweredByImage: showPoweredByImage
|
|
3483
|
+
}), React__default.createElement(VerificationPendingModal, {
|
|
3484
|
+
message: pendingVerificationMessage,
|
|
3485
|
+
onClose: function onClose() {
|
|
3486
|
+
onPendingVerification();
|
|
3487
|
+
}
|
|
3398
3488
|
}));
|
|
3399
3489
|
});
|
|
3400
3490
|
|
|
@@ -4450,7 +4540,7 @@ var useCookieListener = function useCookieListener(key, handler) {
|
|
|
4450
4540
|
}, []);
|
|
4451
4541
|
};
|
|
4452
4542
|
|
|
4453
|
-
var style$
|
|
4543
|
+
var style$4 = {
|
|
4454
4544
|
position: 'absolute',
|
|
4455
4545
|
top: '50%',
|
|
4456
4546
|
left: '50%',
|
|
@@ -4481,7 +4571,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
|
4481
4571
|
"aria-describedby": "modal-modal-description",
|
|
4482
4572
|
className: "confirm-modal"
|
|
4483
4573
|
}, React__default.createElement(Box, {
|
|
4484
|
-
style: style$
|
|
4574
|
+
style: style$4
|
|
4485
4575
|
}, React__default.createElement("p", null, message), React__default.createElement("div", {
|
|
4486
4576
|
className: "footer"
|
|
4487
4577
|
}, !hideCancelBtn && React__default.createElement(Button, {
|
|
@@ -5066,7 +5156,9 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
5066
5156
|
_ref$showGroupNameBlo = _ref.showGroupNameBlock,
|
|
5067
5157
|
showGroupNameBlock = _ref$showGroupNameBlo === void 0 ? false : _ref$showGroupNameBlo,
|
|
5068
5158
|
_ref$currencySybmol = _ref.currencySybmol,
|
|
5069
|
-
currencySybmol = _ref$currencySybmol === void 0 ? '' : _ref$currencySybmol
|
|
5159
|
+
currencySybmol = _ref$currencySybmol === void 0 ? '' : _ref$currencySybmol,
|
|
5160
|
+
_ref$onPendingVerific = _ref.onPendingVerification,
|
|
5161
|
+
onPendingVerification = _ref$onPendingVerific === void 0 ? _identity : _ref$onPendingVerific;
|
|
5070
5162
|
var _useState = React.useState({}),
|
|
5071
5163
|
selectedTickets = _useState[0],
|
|
5072
5164
|
setSelectedTickets = _useState[1];
|
|
@@ -5122,6 +5214,9 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
5122
5214
|
var _useState18 = React.useState(''),
|
|
5123
5215
|
isInvalidLinkError = _useState18[0],
|
|
5124
5216
|
setIsInvalidLinkError = _useState18[1];
|
|
5217
|
+
var _useState19 = React.useState(),
|
|
5218
|
+
pendingVerificationMessage = _useState19[0],
|
|
5219
|
+
setPendingVerificationMessage = _useState19[1];
|
|
5125
5220
|
var ticketsContainerRef = React.useRef(null);
|
|
5126
5221
|
var pageUrl = isBrowser ? window.location.href.split('?')[0] : '';
|
|
5127
5222
|
useCookieListener(X_TF_ECOMMERCE, function (value) {
|
|
@@ -5285,7 +5380,7 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
5285
5380
|
var handleBook = /*#__PURE__*/function () {
|
|
5286
5381
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
5287
5382
|
var _product_options, _product_options2, _ticket_types;
|
|
5288
|
-
var ticket, optionName, ticketId, ticketQuantity, data, result, pageConfigsDataResponse, _pageConfigsData$skip, _pageConfigsData$name, _pageConfigsData$age_, _pageConfigsData$phon, _pageConfigsData$hide, _pageConfigsData$has_, _pageConfigsData$free, _pageConfigsData$coll, _pageConfigsData$coll2, pageConfigsData, skipBillingPage, nameIsRequired, ageIsRequired, phoneIsRequired, hidePhoneField, hasAddOn, freeTicket, collectOptionalWalletAddress, collectMandatoryWalletAddress, hash, total, _isWindowDefined, userData, access_token, checkoutBody, checkoutResult, message, _isInvalidLinkError, _isNotInvitedError;
|
|
5383
|
+
var ticket, optionName, ticketId, ticketQuantity, data, result, pageConfigsDataResponse, _pageConfigsData$skip, _pageConfigsData$name, _pageConfigsData$age_, _pageConfigsData$phon, _pageConfigsData$hide, _pageConfigsData$has_, _pageConfigsData$free, _pageConfigsData$coll, _pageConfigsData$coll2, pageConfigsData, skipBillingPage, nameIsRequired, ageIsRequired, phoneIsRequired, hidePhoneField, hasAddOn, freeTicket, collectOptionalWalletAddress, collectMandatoryWalletAddress, hash, total, _isWindowDefined, userData, access_token, checkoutBody, checkoutResult, _e$response, _e$response$data, _e$response$data$data, _e$response2, _e$response2$data, message, _isInvalidLinkError, _isNotInvitedError;
|
|
5289
5384
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
5290
5385
|
while (1) switch (_context2.prev = _context2.next) {
|
|
5291
5386
|
case 0:
|
|
@@ -5395,7 +5490,9 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
5395
5490
|
case 50:
|
|
5396
5491
|
_context2.prev = 50;
|
|
5397
5492
|
_context2.t2 = _context2["catch"](6);
|
|
5398
|
-
if (
|
|
5493
|
+
if ((_e$response = _context2.t2.response) != null && (_e$response$data = _e$response.data) != null && (_e$response$data$data = _e$response$data.data) != null && _e$response$data$data.hasUnverifiedOrder) {
|
|
5494
|
+
setPendingVerificationMessage((_e$response2 = _context2.t2.response) == null ? void 0 : (_e$response2$data = _e$response2.data) == null ? void 0 : _e$response2$data.message);
|
|
5495
|
+
} else if (axios.isAxiosError(_context2.t2)) {
|
|
5399
5496
|
onAddToCartError(_context2.t2);
|
|
5400
5497
|
message = _get(_context2.t2, 'response.data.message', '');
|
|
5401
5498
|
_isInvalidLinkError = _includes(message, 'No more of this ticket type are available right now');
|
|
@@ -5613,7 +5710,12 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
5613
5710
|
className: "influencer-item",
|
|
5614
5711
|
key: i
|
|
5615
5712
|
}, influencer.firstName + " " + ((_influencer$lastName = influencer.lastName) == null ? void 0 : _influencer$lastName.charAt(0)), ' ');
|
|
5616
|
-
}))) : null
|
|
5713
|
+
}))) : null, React__default.createElement(VerificationPendingModal, {
|
|
5714
|
+
message: pendingVerificationMessage,
|
|
5715
|
+
onClose: function onClose() {
|
|
5716
|
+
onPendingVerification();
|
|
5717
|
+
}
|
|
5718
|
+
}));
|
|
5617
5719
|
};
|
|
5618
5720
|
|
|
5619
5721
|
var EventInfoItem = function EventInfoItem(_ref) {
|
|
@@ -5856,7 +5958,7 @@ var RadioField = function RadioField(_ref) {
|
|
|
5856
5958
|
}));
|
|
5857
5959
|
};
|
|
5858
5960
|
|
|
5859
|
-
var style$
|
|
5961
|
+
var style$5 = {
|
|
5860
5962
|
position: 'absolute',
|
|
5861
5963
|
top: '50%',
|
|
5862
5964
|
left: '50%',
|
|
@@ -5927,7 +6029,7 @@ var TicketResaleModal = function TicketResaleModal(_ref) {
|
|
|
5927
6029
|
"aria-describedby": "modal-modal-description",
|
|
5928
6030
|
className: 'resale-modal'
|
|
5929
6031
|
}, React__default.createElement(Box, {
|
|
5930
|
-
style: style$
|
|
6032
|
+
style: style$5
|
|
5931
6033
|
}, React__default.createElement("h3", null, "Sell Ticket"), React__default.createElement("div", null, React__default.createElement("h3", null, "Ticket Details"), React__default.createElement("div", null, React__default.createElement("h4", null, "Event"), React__default.createElement("p", null, event_name)), React__default.createElement("div", null, React__default.createElement("h4", null, "Ticket Holder"), React__default.createElement("p", null, holder_name)), React__default.createElement("div", null, React__default.createElement("h4", null, "Ticket ID"), React__default.createElement("p", null, hash))), React__default.createElement("div", null, React__default.createElement("h3", null, "Sell to Whom"), React__default.createElement(formik.Formik, {
|
|
5932
6034
|
initialValues: initialValues,
|
|
5933
6035
|
validationSchema: schema,
|
|
@@ -6973,7 +7075,9 @@ var AddonsContainter = function AddonsContainter(_ref) {
|
|
|
6973
7075
|
_ref$onConfirmSelecti2 = _ref.onConfirmSelectionError,
|
|
6974
7076
|
onConfirmSelectionError = _ref$onConfirmSelecti2 === void 0 ? _identity : _ref$onConfirmSelecti2,
|
|
6975
7077
|
_ref$onCountdownFinis = _ref.onCountdownFinish,
|
|
6976
|
-
_onCountdownFinish = _ref$onCountdownFinis === void 0 ? _identity : _ref$onCountdownFinis
|
|
7078
|
+
_onCountdownFinish = _ref$onCountdownFinis === void 0 ? _identity : _ref$onCountdownFinis,
|
|
7079
|
+
_ref$onPendingVerific = _ref.onPendingVerification,
|
|
7080
|
+
onPendingVerification = _ref$onPendingVerific === void 0 ? _identity : _ref$onPendingVerific;
|
|
6977
7081
|
var eventId = getQueryVariable('event_id');
|
|
6978
7082
|
var _useState = React.useState([]),
|
|
6979
7083
|
addons = _useState[0],
|
|
@@ -6993,6 +7097,9 @@ var AddonsContainter = function AddonsContainter(_ref) {
|
|
|
6993
7097
|
var _useState6 = React.useState(0),
|
|
6994
7098
|
cartExpirationTime = _useState6[0],
|
|
6995
7099
|
setCartExpirationTime = _useState6[1];
|
|
7100
|
+
var _useState7 = React.useState(),
|
|
7101
|
+
pendingVerificationMessage = _useState7[0],
|
|
7102
|
+
setPendingVerificationMessage = _useState7[1];
|
|
6996
7103
|
React.useEffect(function () {
|
|
6997
7104
|
var getAddonsPageInfo = /*#__PURE__*/function () {
|
|
6998
7105
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
@@ -7099,7 +7206,7 @@ var AddonsContainter = function AddonsContainter(_ref) {
|
|
|
7099
7206
|
};
|
|
7100
7207
|
var handleConfirm = /*#__PURE__*/function () {
|
|
7101
7208
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(values, skipAddonPage) {
|
|
7102
|
-
var _pageConfigsData$skip, _pageConfigsData$name, _pageConfigsData$age_, _pageConfigsData$phon, _pageConfigsData$has_, _pageConfigsData$free, _pageConfigsData$coll, _pageConfigsData$coll2, pageConfigsDataResponse, pageConfigsData, isWindowDefined, skipBillingPage, nameIsRequired, ageIsRequired, phoneIsRequired, hasAddOn, freeTicket, collectOptionalWalletAddress, collectMandatoryWalletAddress, ticketsQuantity, userData, checkoutBody, checkoutResponse, hash, total;
|
|
7209
|
+
var _pageConfigsData$skip, _pageConfigsData$name, _pageConfigsData$age_, _pageConfigsData$phon, _pageConfigsData$has_, _pageConfigsData$free, _pageConfigsData$coll, _pageConfigsData$coll2, pageConfigsDataResponse, pageConfigsData, isWindowDefined, skipBillingPage, nameIsRequired, ageIsRequired, phoneIsRequired, hasAddOn, freeTicket, collectOptionalWalletAddress, collectMandatoryWalletAddress, ticketsQuantity, userData, checkoutBody, checkoutResponse, hash, total, _error$response, _error$response$data, _error$response$data$, _error$response2, _error$response2$data;
|
|
7103
7210
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7104
7211
|
while (1) switch (_context2.prev = _context2.next) {
|
|
7105
7212
|
case 0:
|
|
@@ -7119,7 +7226,7 @@ var AddonsContainter = function AddonsContainter(_ref) {
|
|
|
7119
7226
|
collectOptionalWalletAddress = (_pageConfigsData$coll = pageConfigsData.collect_optional_wallet_address) != null ? _pageConfigsData$coll : false;
|
|
7120
7227
|
collectMandatoryWalletAddress = (_pageConfigsData$coll2 = pageConfigsData.collect_mandatory_wallet_address) != null ? _pageConfigsData$coll2 : false;
|
|
7121
7228
|
if (!(skipBillingPage && enableBillingInfoAutoCreate)) {
|
|
7122
|
-
_context2.next =
|
|
7229
|
+
_context2.next = 35;
|
|
7123
7230
|
break;
|
|
7124
7231
|
}
|
|
7125
7232
|
ticketsQuantity = window.localStorage.getItem('quantity');
|
|
@@ -7152,17 +7259,21 @@ var AddonsContainter = function AddonsContainter(_ref) {
|
|
|
7152
7259
|
collect_optional_wallet_address: collectOptionalWalletAddress,
|
|
7153
7260
|
collect_mandatory_wallet_address: collectMandatoryWalletAddress
|
|
7154
7261
|
});
|
|
7155
|
-
_context2.next =
|
|
7262
|
+
_context2.next = 33;
|
|
7156
7263
|
break;
|
|
7157
7264
|
case 30:
|
|
7158
7265
|
_context2.prev = 30;
|
|
7159
7266
|
_context2.t0 = _context2["catch"](18);
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7267
|
+
if ((_error$response = _context2.t0.response) != null && (_error$response$data = _error$response.data) != null && (_error$response$data$ = _error$response$data.data) != null && _error$response$data$.hasUnverifiedOrder) {
|
|
7268
|
+
setPendingVerificationMessage((_error$response2 = _context2.t0.response) == null ? void 0 : (_error$response2$data = _error$response2.data) == null ? void 0 : _error$response2$data.message);
|
|
7269
|
+
} else {
|
|
7270
|
+
onPostCheckoutError(_context2.t0);
|
|
7271
|
+
onConfirmSelectionError(_context2.t0);
|
|
7272
|
+
}
|
|
7273
|
+
case 33:
|
|
7274
|
+
_context2.next = 36;
|
|
7164
7275
|
break;
|
|
7165
|
-
case
|
|
7276
|
+
case 35:
|
|
7166
7277
|
if (isWindowDefined) {
|
|
7167
7278
|
if (!skipAddonPage) {
|
|
7168
7279
|
window.localStorage.setItem('add_ons', JSON.stringify(values));
|
|
@@ -7181,18 +7292,18 @@ var AddonsContainter = function AddonsContainter(_ref) {
|
|
|
7181
7292
|
message: 'Window is not defined'
|
|
7182
7293
|
});
|
|
7183
7294
|
}
|
|
7184
|
-
case
|
|
7185
|
-
_context2.next =
|
|
7295
|
+
case 36:
|
|
7296
|
+
_context2.next = 41;
|
|
7186
7297
|
break;
|
|
7187
|
-
case
|
|
7188
|
-
_context2.prev =
|
|
7298
|
+
case 38:
|
|
7299
|
+
_context2.prev = 38;
|
|
7189
7300
|
_context2.t1 = _context2["catch"](0);
|
|
7190
7301
|
onConfirmSelectionError(_context2.t1);
|
|
7191
|
-
case
|
|
7302
|
+
case 41:
|
|
7192
7303
|
case "end":
|
|
7193
7304
|
return _context2.stop();
|
|
7194
7305
|
}
|
|
7195
|
-
}, _callee2, null, [[0,
|
|
7306
|
+
}, _callee2, null, [[0, 38], [18, 30]]);
|
|
7196
7307
|
}));
|
|
7197
7308
|
return function handleConfirm(_x, _x2) {
|
|
7198
7309
|
return _ref3.apply(this, arguments);
|
|
@@ -7300,51 +7411,12 @@ var AddonsContainter = function AddonsContainter(_ref) {
|
|
|
7300
7411
|
className: (isConfirmDisabled ? classNamePrefix + "_is_disabled" : '') + " " + classNamePrefix + "_submit_button",
|
|
7301
7412
|
disabled: isConfirmDisabled
|
|
7302
7413
|
}, "CONFIRM SELECTION")));
|
|
7303
|
-
})))
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
left: '50%',
|
|
7310
|
-
transform: 'translate(-50%, -50%)',
|
|
7311
|
-
minWidth: 480,
|
|
7312
|
-
backgroundColor: '#e3e3e3',
|
|
7313
|
-
border: '1px solid white',
|
|
7314
|
-
outline: 'none',
|
|
7315
|
-
padding: '14px',
|
|
7316
|
-
maxHeight: '85vh',
|
|
7317
|
-
overflow: 'auto'
|
|
7318
|
-
};
|
|
7319
|
-
var Modal = function Modal(_ref) {
|
|
7320
|
-
var onClose = _ref.onClose,
|
|
7321
|
-
_ref$actions = _ref.actions,
|
|
7322
|
-
actions = _ref$actions === void 0 ? [] : _ref$actions,
|
|
7323
|
-
children = _ref.children,
|
|
7324
|
-
_ref$modalClassName = _ref.modalClassName,
|
|
7325
|
-
modalClassName = _ref$modalClassName === void 0 ? '' : _ref$modalClassName;
|
|
7326
|
-
return React__default.createElement(material.Modal, {
|
|
7327
|
-
open: true,
|
|
7328
|
-
onClose: onClose,
|
|
7329
|
-
"aria-labelledby": "modal-modal-title",
|
|
7330
|
-
"aria-describedby": "modal-modal-description",
|
|
7331
|
-
className: "confirm-modal " + modalClassName
|
|
7332
|
-
}, React__default.createElement(Box, {
|
|
7333
|
-
style: style$5
|
|
7334
|
-
}, React__default.createElement("div", {
|
|
7335
|
-
className: "modal-body"
|
|
7336
|
-
}, children), React__default.createElement("div", {
|
|
7337
|
-
className: "footer"
|
|
7338
|
-
}, _map(actions, function (action) {
|
|
7339
|
-
return React__default.createElement(Button, {
|
|
7340
|
-
key: action.id,
|
|
7341
|
-
onClick: action.onClick,
|
|
7342
|
-
disabled: action.disabled || action.loading,
|
|
7343
|
-
variant: action.variant || "text"
|
|
7344
|
-
}, action.loading ? React__default.createElement(CircularProgress, {
|
|
7345
|
-
size: "22px"
|
|
7346
|
-
}) : action.label);
|
|
7347
|
-
}))));
|
|
7414
|
+
}))), React__default.createElement(VerificationPendingModal, {
|
|
7415
|
+
message: pendingVerificationMessage,
|
|
7416
|
+
onClose: function onClose() {
|
|
7417
|
+
onPendingVerification();
|
|
7418
|
+
}
|
|
7419
|
+
}));
|
|
7348
7420
|
};
|
|
7349
7421
|
|
|
7350
7422
|
/* eslint-disable max-len */
|
|
@@ -7541,6 +7613,15 @@ var IDVerification = function IDVerification(props) {
|
|
|
7541
7613
|
__html: iframe
|
|
7542
7614
|
};
|
|
7543
7615
|
};
|
|
7616
|
+
React.useEffect(function () {
|
|
7617
|
+
var isWindowDefined = typeof window !== 'undefined';
|
|
7618
|
+
var orderHash = getQueryVariable('order_hash');
|
|
7619
|
+
if (isWindowDefined) {
|
|
7620
|
+
window.localStorage.setItem('checkoutData', JSON.stringify({
|
|
7621
|
+
hash: orderHash
|
|
7622
|
+
}));
|
|
7623
|
+
}
|
|
7624
|
+
}, []);
|
|
7544
7625
|
return React__default.createElement("div", null, React__default.createElement("h2", {
|
|
7545
7626
|
className: "page-header"
|
|
7546
7627
|
}, "Account Verification"), loadingStatus ? null : React__default.createElement(React__default.Fragment, null, !isAccountVerifiedOrPending && React__default.createElement("div", {
|