tf-checkout-react 1.3.28 → 1.3.30
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 +1 -2
- package/dist/components/common/PhoneNumberField.d.ts +2 -1
- package/dist/components/ticketsContainer/PromoCodeSection.d.ts +1 -2
- package/dist/components/ticketsContainer/index.d.ts +1 -2
- package/dist/tf-checkout-react.cjs.development.js +41 -50
- 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 +41 -50
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/api/index.ts +9 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/addonsContainer/index.tsx +12 -31
- package/src/components/billing-info-container/index.tsx +29 -9
- package/src/components/common/PhoneNumberField.tsx +3 -1
- package/src/components/common/dist/PhoneNumberField.js +96 -0
- package/src/components/loginModal/index.tsx +2 -2
- package/src/components/signupModal/index.tsx +1 -1
- package/src/components/ticketsContainer/PromoCodeSection.tsx +2 -4
- package/src/components/ticketsContainer/TicketsSection.tsx +2 -2
- package/src/components/ticketsContainer/index.tsx +0 -3
|
@@ -10,9 +10,8 @@ export interface IAddonContainterProps {
|
|
|
10
10
|
onConfirmSelectionSuccess?: (res: any) => void;
|
|
11
11
|
onConfirmSelectionError?: (error: any) => void;
|
|
12
12
|
onCountdownFinish?: () => void;
|
|
13
|
-
samePageBilling?: boolean;
|
|
14
13
|
}
|
|
15
14
|
export interface ObjectLiteral {
|
|
16
15
|
[key: string]: any;
|
|
17
16
|
}
|
|
18
|
-
export declare const AddonsContainter: ({ classNamePrefix, enableBillingInfoAutoCreate, enableTimer, onGetAddonsPageInfoSuccess, onGetAddonsPageInfoError, onPostCheckoutSuccess, onPostCheckoutError, onConfirmSelectionSuccess, onConfirmSelectionError, onCountdownFinish,
|
|
17
|
+
export declare const AddonsContainter: ({ classNamePrefix, enableBillingInfoAutoCreate, enableTimer, onGetAddonsPageInfoSuccess, onGetAddonsPageInfoError, onPostCheckoutSuccess, onPostCheckoutError, onConfirmSelectionSuccess, onConfirmSelectionError, onCountdownFinish, }: IAddonContainterProps) => JSX.Element;
|
|
@@ -6,7 +6,8 @@ export interface IPhoneNumberField {
|
|
|
6
6
|
form: FormikProps<any>;
|
|
7
7
|
type: string;
|
|
8
8
|
disableDropdown: boolean;
|
|
9
|
+
defaultCountry?: string;
|
|
9
10
|
fill: boolean;
|
|
10
11
|
setPhoneValidationIsLoading: (isLoading: boolean) => void;
|
|
11
12
|
}
|
|
12
|
-
export declare const PhoneNumberField: ({ label, field, form: { errors, touched, setFieldError, values, initialValues, setFieldValue, setFieldTouched, setErrors, }, disableDropdown, fill, setPhoneValidationIsLoading, }: IPhoneNumberField) => JSX.Element;
|
|
13
|
+
export declare const PhoneNumberField: ({ label, field, form: { errors, touched, setFieldError, values, initialValues, setFieldValue, setFieldTouched, setErrors, }, disableDropdown, defaultCountry, fill, setPhoneValidationIsLoading, }: IPhoneNumberField) => JSX.Element;
|
|
@@ -9,6 +9,5 @@ export interface IPromoCodeSectionProps {
|
|
|
9
9
|
setCodeIsApplied: (value: boolean) => void;
|
|
10
10
|
codeIsInvalid: boolean;
|
|
11
11
|
setCodeIsInvalid: (value: boolean) => void;
|
|
12
|
-
promoText?: string;
|
|
13
12
|
}
|
|
14
|
-
export declare const PromoCodeSection: ({ code, codeIsApplied, showPromoInput, setCode, setShowPromoInput, updateTickets, setCodeIsApplied, codeIsInvalid, setCodeIsInvalid
|
|
13
|
+
export declare const PromoCodeSection: ({ code, codeIsApplied, showPromoInput, setCode, setShowPromoInput, updateTickets, setCodeIsApplied, codeIsInvalid, setCodeIsInvalid }: IPromoCodeSectionProps) => JSX.Element;
|
|
@@ -51,7 +51,6 @@ export interface IGetTickets {
|
|
|
51
51
|
enableInfluencersSection?: boolean;
|
|
52
52
|
enableAddOns?: boolean;
|
|
53
53
|
ordersPath?: string;
|
|
54
|
-
promoText?: string;
|
|
55
54
|
}
|
|
56
55
|
export interface ITicket {
|
|
57
56
|
id: string | number;
|
|
@@ -60,5 +59,5 @@ export interface ITicket {
|
|
|
60
59
|
export interface ISelectedTickets {
|
|
61
60
|
[key: string]: string | number;
|
|
62
61
|
}
|
|
63
|
-
export declare const TicketsContainer: ({ onLoginSuccess, getTicketsLabel, eventId, onAddToCartSuccess, contentStyle, onAddToCartError, onGetTicketsSuccess, onGetTicketsError, onLogoutSuccess, onLogoutError, theme, queryPromoCode, isPromotionsEnabled, themeOptions, isAccessCodeEnabled, hideSessionButtons, hideWaitingList, enableBillingInfoAutoCreate, isButtonScrollable, sortBySoldOut, disableCountdownLeadingZero, isLoggedIn, actionsSectionComponent: ActionsSectionComponent, ticketsHeaderComponent, hideTicketsHeader, enableInfluencersSection, enableAddOns, handleNotInvitedModalClose, handleInvalidLinkModalClose, ordersPath,
|
|
62
|
+
export declare const TicketsContainer: ({ onLoginSuccess, getTicketsLabel, eventId, onAddToCartSuccess, contentStyle, onAddToCartError, onGetTicketsSuccess, onGetTicketsError, onLogoutSuccess, onLogoutError, theme, queryPromoCode, isPromotionsEnabled, themeOptions, isAccessCodeEnabled, hideSessionButtons, hideWaitingList, enableBillingInfoAutoCreate, isButtonScrollable, sortBySoldOut, disableCountdownLeadingZero, isLoggedIn, actionsSectionComponent: ActionsSectionComponent, ticketsHeaderComponent, hideTicketsHeader, enableInfluencersSection, enableAddOns, handleNotInvitedModalClose, handleInvalidLinkModalClose, ordersPath, }: IGetTickets) => JSX.Element;
|
|
64
63
|
export {};
|
|
@@ -67,7 +67,6 @@ var TablePagination = _interopDefault(require('@mui/material/TablePagination'));
|
|
|
67
67
|
var TableRow = _interopDefault(require('@mui/material/TableRow'));
|
|
68
68
|
var _has = _interopDefault(require('lodash/has'));
|
|
69
69
|
var Radio = _interopDefault(require('@mui/material/Radio'));
|
|
70
|
-
var lodash = require('lodash');
|
|
71
70
|
var _isNull = _interopDefault(require('lodash/isNull'));
|
|
72
71
|
var _reverse = _interopDefault(require('lodash/reverse'));
|
|
73
72
|
|
|
@@ -1231,6 +1230,8 @@ publicRequest.interceptors.response.use(function (response) {
|
|
|
1231
1230
|
return Promise.reject(error);
|
|
1232
1231
|
});
|
|
1233
1232
|
publicRequest.interceptors.request.use(function (config) {
|
|
1233
|
+
var _document$cookie;
|
|
1234
|
+
|
|
1234
1235
|
var guestToken = isWindowDefined ? window.localStorage.getItem('auth_guest_token') : null;
|
|
1235
1236
|
var userData = isWindowDefined ? window.localStorage.getItem('user_data') : null;
|
|
1236
1237
|
var accessToken = isWindowDefined ? window.localStorage.getItem('access_token') : null;
|
|
@@ -1261,14 +1262,24 @@ publicRequest.interceptors.request.use(function (config) {
|
|
|
1261
1262
|
config.headers = _updatedHeaders2;
|
|
1262
1263
|
}
|
|
1263
1264
|
|
|
1264
|
-
|
|
1265
|
+
var additionalCookiesHeaderValue = (_document$cookie = document.cookie) != null ? _document$cookie : '';
|
|
1266
|
+
|
|
1267
|
+
if (additionalCookiesHeaderValue !== '') {
|
|
1265
1268
|
var _updatedHeaders3 = _extends({}, config.headers, {
|
|
1266
|
-
'
|
|
1269
|
+
'Additional-Cookies': additionalCookiesHeaderValue
|
|
1267
1270
|
});
|
|
1268
1271
|
|
|
1269
1272
|
config.headers = _updatedHeaders3;
|
|
1270
1273
|
}
|
|
1271
1274
|
|
|
1275
|
+
if (CONFIGS.X_SOURCE_ORIGIN) {
|
|
1276
|
+
var _updatedHeaders4 = _extends({}, config.headers, {
|
|
1277
|
+
'X-Source-Origin': CONFIGS.X_SOURCE_ORIGIN
|
|
1278
|
+
});
|
|
1279
|
+
|
|
1280
|
+
config.headers = _updatedHeaders4;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1272
1283
|
if (CONFIGS.BASE_URL) {
|
|
1273
1284
|
config.baseURL = CONFIGS.BASE_URL + '/api';
|
|
1274
1285
|
}
|
|
@@ -1820,6 +1831,8 @@ var PhoneNumberField = function PhoneNumberField(_ref) {
|
|
|
1820
1831
|
setErrors = _ref$form.setErrors,
|
|
1821
1832
|
_ref$disableDropdown = _ref.disableDropdown,
|
|
1822
1833
|
disableDropdown = _ref$disableDropdown === void 0 ? true : _ref$disableDropdown,
|
|
1834
|
+
_ref$defaultCountry = _ref.defaultCountry,
|
|
1835
|
+
defaultCountry = _ref$defaultCountry === void 0 ? 'us' : _ref$defaultCountry,
|
|
1823
1836
|
_ref$fill = _ref.fill,
|
|
1824
1837
|
fill = _ref$fill === void 0 ? false : _ref$fill,
|
|
1825
1838
|
setPhoneValidationIsLoading = _ref.setPhoneValidationIsLoading;
|
|
@@ -1909,7 +1922,7 @@ var PhoneNumberField = function PhoneNumberField(_ref) {
|
|
|
1909
1922
|
}
|
|
1910
1923
|
},
|
|
1911
1924
|
variant: "outlined",
|
|
1912
|
-
defaultCountry:
|
|
1925
|
+
defaultCountry: defaultCountry,
|
|
1913
1926
|
disableDropdown: disableDropdown,
|
|
1914
1927
|
label: label,
|
|
1915
1928
|
error: !!error && (isTouched || fill),
|
|
@@ -2311,7 +2324,7 @@ var LoginModal = function LoginModal(_ref) {
|
|
|
2311
2324
|
onSubmit: props.handleSubmit
|
|
2312
2325
|
}, React__default.createElement("div", {
|
|
2313
2326
|
className: "modal-title"
|
|
2314
|
-
}, "
|
|
2327
|
+
}, "Login"), React__default.createElement("div", {
|
|
2315
2328
|
className: 'login-logo-container'
|
|
2316
2329
|
}, React__default.createElement("img", {
|
|
2317
2330
|
className: "login-logo-tff",
|
|
@@ -2359,7 +2372,7 @@ var LoginModal = function LoginModal(_ref) {
|
|
|
2359
2372
|
className: "login-action-button"
|
|
2360
2373
|
}, React__default.createElement("button", {
|
|
2361
2374
|
type: "submit"
|
|
2362
|
-
}, "
|
|
2375
|
+
}, "Login")), showForgotPasswordButton && React__default.createElement("div", {
|
|
2363
2376
|
className: "forgot-password"
|
|
2364
2377
|
}, React__default.createElement("span", {
|
|
2365
2378
|
"aria-hidden": "true",
|
|
@@ -2546,7 +2559,7 @@ var SignupModal = function SignupModal(_ref) {
|
|
|
2546
2559
|
className: "login"
|
|
2547
2560
|
}, React__default.createElement("span", {
|
|
2548
2561
|
onClick: onLogin
|
|
2549
|
-
}, "
|
|
2562
|
+
}, "Login")), showPoweredByImage ? React__default.createElement(PoweredBy, null) : null);
|
|
2550
2563
|
}))));
|
|
2551
2564
|
};
|
|
2552
2565
|
|
|
@@ -3444,12 +3457,12 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
3444
3457
|
expires_at: expirationTime,
|
|
3445
3458
|
onCountdownFinish: onCountdownFinish
|
|
3446
3459
|
}), React__default.createElement(formik.Formik, {
|
|
3447
|
-
initialValues: getInitialValues(dataWithUniqueIds, _extends({
|
|
3460
|
+
initialValues: getInitialValues(dataWithUniqueIds, _extends({
|
|
3448
3461
|
country: _get(userData, 'country', '') || '1',
|
|
3449
3462
|
state: _get(userData, 'state', '') || '1',
|
|
3450
3463
|
brand_opt_in: optedInFieldValue,
|
|
3451
3464
|
ttf_opt_in: ttfOptIn
|
|
3452
|
-
}), userValues),
|
|
3465
|
+
}, initialValues), userValues),
|
|
3453
3466
|
enableReinitialize: false,
|
|
3454
3467
|
onSubmit: function () {
|
|
3455
3468
|
var _onSubmit = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(values, formikHelpers) {
|
|
@@ -3660,7 +3673,7 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
3660
3673
|
className: "account-actions-block"
|
|
3661
3674
|
}, React__default.createElement("div", {
|
|
3662
3675
|
className: "action-item"
|
|
3663
|
-
}, React__default.createElement("div", null, accountInfoTitle), React__default.createElement("div", null, "
|
|
3676
|
+
}, React__default.createElement("div", null, accountInfoTitle), React__default.createElement("div", null, "Login & skip ahead:")), React__default.createElement("div", {
|
|
3664
3677
|
className: "action-item login-block"
|
|
3665
3678
|
}, React__default.createElement("button", {
|
|
3666
3679
|
className: "login-register-button",
|
|
@@ -3673,7 +3686,7 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
3673
3686
|
setShowModalLogin(true);
|
|
3674
3687
|
}
|
|
3675
3688
|
}
|
|
3676
|
-
}, "
|
|
3689
|
+
}, "Login"), !hideLogo && React__default.createElement("div", {
|
|
3677
3690
|
className: "logo-image-container"
|
|
3678
3691
|
}, React__default.createElement("img", {
|
|
3679
3692
|
src: theme === 'dark' ? 'https://www.ticketfairy.com/resources/images/logo-ttf.svg' : 'https://www.ticketfairy.com/resources/images/logo-ttf-black.svg',
|
|
@@ -3745,7 +3758,8 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
3745
3758
|
component: element.type === 'checkbox' ? CheckboxField : element.type === 'select' ? SelectField : element.type === 'phone' ? PhoneNumberField : element.type === 'date' ? DatePickerField : CustomField,
|
|
3746
3759
|
selectOptions: element.name === 'country' ? countries : element.name === 'state' ? states : [],
|
|
3747
3760
|
theme: theme,
|
|
3748
|
-
disableDropdown: element.disableDropdown
|
|
3761
|
+
disableDropdown: element.disableDropdown,
|
|
3762
|
+
defaultCountry: element.defaultCountry
|
|
3749
3763
|
})));
|
|
3750
3764
|
})));
|
|
3751
3765
|
}));
|
|
@@ -3780,7 +3794,8 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
3780
3794
|
return props.errors[element.name + "-" + index];
|
|
3781
3795
|
}),
|
|
3782
3796
|
disableDropdown: element.disableDropdown,
|
|
3783
|
-
setPhoneValidationIsLoading: setPhoneValidationIsLoading
|
|
3797
|
+
setPhoneValidationIsLoading: setPhoneValidationIsLoading,
|
|
3798
|
+
defaultCountry: element.defaultCountry
|
|
3784
3799
|
}));
|
|
3785
3800
|
})));
|
|
3786
3801
|
}));
|
|
@@ -5275,8 +5290,7 @@ var PromoCodeSection = function PromoCodeSection(_ref) {
|
|
|
5275
5290
|
updateTickets = _ref.updateTickets,
|
|
5276
5291
|
setCodeIsApplied = _ref.setCodeIsApplied,
|
|
5277
5292
|
codeIsInvalid = _ref.codeIsInvalid,
|
|
5278
|
-
setCodeIsInvalid = _ref.setCodeIsInvalid
|
|
5279
|
-
promoText = _ref.promoText;
|
|
5293
|
+
setCodeIsInvalid = _ref.setCodeIsInvalid;
|
|
5280
5294
|
var isPromoCodeHasValue = !!code.trim();
|
|
5281
5295
|
|
|
5282
5296
|
var renderInputField = function renderInputField() {
|
|
@@ -5332,7 +5346,7 @@ var PromoCodeSection = function PromoCodeSection(_ref) {
|
|
|
5332
5346
|
setShowPromoInput(true);
|
|
5333
5347
|
setCodeIsInvalid(false);
|
|
5334
5348
|
}
|
|
5335
|
-
},
|
|
5349
|
+
}, "Got a promo code? Click here"), showPromoInput && renderInputField());
|
|
5336
5350
|
};
|
|
5337
5351
|
|
|
5338
5352
|
var ReferralLogic = function ReferralLogic(props) {
|
|
@@ -5489,7 +5503,7 @@ var TicketsSection = function TicketsSection(_ref) {
|
|
|
5489
5503
|
}
|
|
5490
5504
|
|
|
5491
5505
|
var ticketIsFree = +ticket.price === 0;
|
|
5492
|
-
var ticketPrice = isSoldOut ? 'SOLD OUT' : ticketIsFree ? 'FREE' : "
|
|
5506
|
+
var ticketPrice = isSoldOut ? 'SOLD OUT' : ticketIsFree ? 'FREE' : "$ " + (+ticket.price).toFixed(2);
|
|
5493
5507
|
var isNewGroupTicket = (ticket == null ? void 0 : ticket.groupName) !== ((_arr = arr[i - 1]) == null ? void 0 : _arr.groupName);
|
|
5494
5508
|
return React__default.createElement(React__default.Fragment, {
|
|
5495
5509
|
key: ticket.id || ticket.name
|
|
@@ -5505,7 +5519,7 @@ var TicketsSection = function TicketsSection(_ref) {
|
|
|
5505
5519
|
className: "event-detail__tier-price"
|
|
5506
5520
|
}, ticketIsDiscounted && React__default.createElement("p", {
|
|
5507
5521
|
className: "old-price"
|
|
5508
|
-
}, "
|
|
5522
|
+
}, "$ ", (+ticket.oldPrice).toFixed(2)), React__default.createElement("p", {
|
|
5509
5523
|
className: isSoldOut ? 'sold-out' : ''
|
|
5510
5524
|
}, ticketPrice), !isSoldOut && !ticketIsFree && React__default.createElement("p", {
|
|
5511
5525
|
className: "fees"
|
|
@@ -5575,8 +5589,7 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
5575
5589
|
handleNotInvitedModalClose = _ref$handleNotInvited === void 0 ? _identity : _ref$handleNotInvited,
|
|
5576
5590
|
_ref$handleInvalidLin = _ref.handleInvalidLinkModalClose,
|
|
5577
5591
|
handleInvalidLinkModalClose = _ref$handleInvalidLin === void 0 ? _identity : _ref$handleInvalidLin,
|
|
5578
|
-
ordersPath = _ref.ordersPath
|
|
5579
|
-
promoText = _ref.promoText;
|
|
5592
|
+
ordersPath = _ref.ordersPath;
|
|
5580
5593
|
|
|
5581
5594
|
var _useState = React.useState({}),
|
|
5582
5595
|
selectedTickets = _useState[0],
|
|
@@ -6132,8 +6145,7 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
6132
6145
|
setCode: setCode,
|
|
6133
6146
|
updateTickets: updateTickets,
|
|
6134
6147
|
codeIsInvalid: codeIsInvalid,
|
|
6135
|
-
setCodeIsInvalid: setCodeIsInvalid
|
|
6136
|
-
promoText: promoText
|
|
6148
|
+
setCodeIsInvalid: setCodeIsInvalid
|
|
6137
6149
|
}) : null, wrappedActionsSectionComponent, canShowGetTicketBtn() && React__default.createElement(Button$1, {
|
|
6138
6150
|
"aria-hidden": true,
|
|
6139
6151
|
className: "book-button \n " + (bookButtonIsDisabled ? 'disabled' : '') + " \n " + (isButtonScrollable ? 'is-scrollable' : '') + "\n " + (!isLoggedIn ? 'on-bottom' : '') + "\n ",
|
|
@@ -7685,11 +7697,8 @@ var AddonsContainter = function AddonsContainter(_ref) {
|
|
|
7685
7697
|
_ref$onConfirmSelecti2 = _ref.onConfirmSelectionError,
|
|
7686
7698
|
onConfirmSelectionError = _ref$onConfirmSelecti2 === void 0 ? _identity : _ref$onConfirmSelecti2,
|
|
7687
7699
|
_ref$onCountdownFinis = _ref.onCountdownFinish,
|
|
7688
|
-
_onCountdownFinish = _ref$onCountdownFinis === void 0 ? _identity : _ref$onCountdownFinis
|
|
7689
|
-
_ref$samePageBilling = _ref.samePageBilling,
|
|
7690
|
-
samePageBilling = _ref$samePageBilling === void 0 ? false : _ref$samePageBilling;
|
|
7700
|
+
_onCountdownFinish = _ref$onCountdownFinis === void 0 ? _identity : _ref$onCountdownFinis;
|
|
7691
7701
|
|
|
7692
|
-
var valuesRef = React.useRef(null);
|
|
7693
7702
|
var eventId = getQueryVariable('event_id');
|
|
7694
7703
|
|
|
7695
7704
|
var _useState = React.useState([]),
|
|
@@ -7866,7 +7875,7 @@ var AddonsContainter = function AddonsContainter(_ref) {
|
|
|
7866
7875
|
collectOptionalWalletAddress = (_pageConfigsData$coll = pageConfigsData.collect_optional_wallet_address) != null ? _pageConfigsData$coll : false;
|
|
7867
7876
|
collectMandatoryWalletAddress = (_pageConfigsData$coll2 = pageConfigsData.collect_mandatory_wallet_address) != null ? _pageConfigsData$coll2 : false;
|
|
7868
7877
|
|
|
7869
|
-
if (!(skipBillingPage && enableBillingInfoAutoCreate
|
|
7878
|
+
if (!(skipBillingPage && enableBillingInfoAutoCreate)) {
|
|
7870
7879
|
_context2.next = 36;
|
|
7871
7880
|
break;
|
|
7872
7881
|
}
|
|
@@ -7970,7 +7979,6 @@ var AddonsContainter = function AddonsContainter(_ref) {
|
|
|
7970
7979
|
}));
|
|
7971
7980
|
}
|
|
7972
7981
|
|
|
7973
|
-
var flagHasAddOn = getQueryVariable('hasAddOn') === 'true';
|
|
7974
7982
|
return React__default.createElement(React__default.Fragment, null, !!cartExpirationTime && enableTimer && React__default.createElement(TimerWidget$1, {
|
|
7975
7983
|
expires_at: cartExpirationTime,
|
|
7976
7984
|
onCountdownFinish: function onCountdownFinish() {
|
|
@@ -7978,7 +7986,7 @@ var AddonsContainter = function AddonsContainter(_ref) {
|
|
|
7978
7986
|
|
|
7979
7987
|
_onCountdownFinish();
|
|
7980
7988
|
}
|
|
7981
|
-
}),
|
|
7989
|
+
}), React__default.createElement("div", {
|
|
7982
7990
|
className: classNamePrefix + "_container"
|
|
7983
7991
|
}, React__default.createElement("div", {
|
|
7984
7992
|
className: classNamePrefix + "_block"
|
|
@@ -7986,7 +7994,7 @@ var AddonsContainter = function AddonsContainter(_ref) {
|
|
|
7986
7994
|
className: classNamePrefix + "_line_block"
|
|
7987
7995
|
}, React__default.createElement("p", {
|
|
7988
7996
|
className: classNamePrefix + "_info_title"
|
|
7989
|
-
}, "Get Your Tickets"),
|
|
7997
|
+
}, "Get Your Tickets"), React__default.createElement("button", {
|
|
7990
7998
|
type: "button",
|
|
7991
7999
|
className: classNamePrefix + "_skip",
|
|
7992
8000
|
onClick: function onClick() {
|
|
@@ -8004,11 +8012,6 @@ var AddonsContainter = function AddonsContainter(_ref) {
|
|
|
8004
8012
|
}
|
|
8005
8013
|
}, function (_ref4) {
|
|
8006
8014
|
var values = _ref4.values;
|
|
8007
|
-
|
|
8008
|
-
if (!lodash.isEqual(values, valuesRef.current)) {
|
|
8009
|
-
valuesRef.current = values;
|
|
8010
|
-
}
|
|
8011
|
-
|
|
8012
8015
|
var isConfirmDisabled = !isAtLeastOneAddonSelected(values);
|
|
8013
8016
|
return React__default.createElement(formik.Form, {
|
|
8014
8017
|
autoComplete: "off",
|
|
@@ -8048,13 +8051,7 @@ var AddonsContainter = function AddonsContainter(_ref) {
|
|
|
8048
8051
|
selectOptions: addonsOptions[variant.id],
|
|
8049
8052
|
classNamePrefix: classNamePrefix,
|
|
8050
8053
|
handleAddonChange: function handleAddonChange(id, value) {
|
|
8051
|
-
onFieldChange(id, value, addon);
|
|
8052
|
-
|
|
8053
|
-
if (samePageBilling) {
|
|
8054
|
-
setTimeout(function () {
|
|
8055
|
-
handleConfirm(valuesRef.current);
|
|
8056
|
-
}, 100);
|
|
8057
|
-
}
|
|
8054
|
+
return onFieldChange(id, value, addon);
|
|
8058
8055
|
}
|
|
8059
8056
|
})
|
|
8060
8057
|
);
|
|
@@ -8065,16 +8062,10 @@ var AddonsContainter = function AddonsContainter(_ref) {
|
|
|
8065
8062
|
selectOptions: addonsOptions[addon.id],
|
|
8066
8063
|
classNamePrefix: classNamePrefix,
|
|
8067
8064
|
handleAddonChange: function handleAddonChange(id, value) {
|
|
8068
|
-
onFieldChange(id, value, addon);
|
|
8069
|
-
|
|
8070
|
-
if (samePageBilling) {
|
|
8071
|
-
setTimeout(function () {
|
|
8072
|
-
handleConfirm(valuesRef.current);
|
|
8073
|
-
}, 100);
|
|
8074
|
-
}
|
|
8065
|
+
return onFieldChange(id, value, addon);
|
|
8075
8066
|
}
|
|
8076
8067
|
})));
|
|
8077
|
-
}),
|
|
8068
|
+
}), React__default.createElement("button", {
|
|
8078
8069
|
type: "submit",
|
|
8079
8070
|
className: (isConfirmDisabled ? classNamePrefix + "_is_disabled" : '') + " " + classNamePrefix + "_submit_button",
|
|
8080
8071
|
disabled: isConfirmDisabled
|