tf-checkout-react 1.6.6-beta.32 → 1.6.6-beta.33
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/SimpleAddonsContainer.d.ts +1 -1
- package/dist/tf-checkout-react.cjs.development.js +16 -16
- 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 +16 -16
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/addonsContainer/SimpleAddonsContainer.tsx +2 -6
- package/src/components/billing-info-container/index.tsx +46 -34
|
@@ -4275,7 +4275,7 @@ var SimpleAddonsContainer = function SimpleAddonsContainer(_ref) {
|
|
|
4275
4275
|
onAddOnSelect = _ref$onAddOnSelect === void 0 ? _identity : _ref$onAddOnSelect,
|
|
4276
4276
|
_ref$handleConfirm = _ref.handleConfirm,
|
|
4277
4277
|
handleConfirm = _ref$handleConfirm === void 0 ? _identity : _ref$handleConfirm;
|
|
4278
|
-
var _useState = useState(
|
|
4278
|
+
var _useState = useState(null),
|
|
4279
4279
|
addons = _useState[0],
|
|
4280
4280
|
setAddons = _useState[1];
|
|
4281
4281
|
var _useState2 = useState({}),
|
|
@@ -4416,16 +4416,13 @@ var SimpleAddonsContainer = function SimpleAddonsContainer(_ref) {
|
|
|
4416
4416
|
}
|
|
4417
4417
|
return addOnsData;
|
|
4418
4418
|
}, [addons, addOnDataWithCustomFields]);
|
|
4419
|
-
if (loading) {
|
|
4419
|
+
if (loading || !addons) {
|
|
4420
4420
|
return React.createElement("div", {
|
|
4421
4421
|
className: classNamePrefix + "_loader"
|
|
4422
4422
|
}, React.createElement(CircularProgress, {
|
|
4423
4423
|
size: 50
|
|
4424
4424
|
}));
|
|
4425
4425
|
}
|
|
4426
|
-
if ((addons == null ? void 0 : addons.length) === 0) {
|
|
4427
|
-
return null;
|
|
4428
|
-
}
|
|
4429
4426
|
return React.createElement("div", {
|
|
4430
4427
|
className: classNamePrefix + "_container"
|
|
4431
4428
|
}, React.createElement("div", {
|
|
@@ -6911,18 +6908,21 @@ var BillingInfoContainer = /*#__PURE__*/React.memo(function (_ref4) {
|
|
|
6911
6908
|
var stripePublishableKey = (reviewData == null ? void 0 : (_reviewData$payment_m = reviewData.payment_method) == null ? void 0 : _reviewData$payment_m.stripe_publishable_key) || (checkoutUpdateData == null ? void 0 : (_checkoutUpdateData$a = checkoutUpdateData.additional_payment_information) == null ? void 0 : (_checkoutUpdateData$a2 = _checkoutUpdateData$a.basic_config) == null ? void 0 : _checkoutUpdateData$a2.apiKey);
|
|
6912
6909
|
var stripeAccountId = (reviewData == null ? void 0 : (_reviewData$payment_m2 = reviewData.payment_method) == null ? void 0 : _reviewData$payment_m2.stripe_connected_account) || (checkoutUpdateData == null ? void 0 : (_checkoutUpdateData$a3 = checkoutUpdateData.additional_payment_information) == null ? void 0 : (_checkoutUpdateData$a4 = _checkoutUpdateData$a3.basic_config) == null ? void 0 : _checkoutUpdateData$a4.accountId);
|
|
6913
6910
|
var addOnsIncludedOnInvitation = additionalConfigs.resale && additionalConfigs.resaleWithAddons;
|
|
6911
|
+
if (loading || cardLoading || isCountriesLoading || isConfigLoading || !eventId) {
|
|
6912
|
+
return React.createElement(Backdrop, {
|
|
6913
|
+
sx: {
|
|
6914
|
+
color: '#fff',
|
|
6915
|
+
backgroundColor: '#000000bd',
|
|
6916
|
+
zIndex: 1205
|
|
6917
|
+
},
|
|
6918
|
+
open: true
|
|
6919
|
+
}, React.createElement(CircularProgress, {
|
|
6920
|
+
color: "inherit"
|
|
6921
|
+
}));
|
|
6922
|
+
}
|
|
6914
6923
|
return React.createElement(ThemeProvider, {
|
|
6915
6924
|
theme: themeMui
|
|
6916
|
-
},
|
|
6917
|
-
sx: {
|
|
6918
|
-
color: '#fff',
|
|
6919
|
-
backgroundColor: '#000000bd',
|
|
6920
|
-
zIndex: 1205
|
|
6921
|
-
},
|
|
6922
|
-
open: true
|
|
6923
|
-
}, React.createElement(CircularProgress, {
|
|
6924
|
-
color: "inherit"
|
|
6925
|
-
})), !!expirationTime && enableTimer && React.createElement(TimerWidget$1, {
|
|
6925
|
+
}, !!expirationTime && enableTimer && React.createElement(TimerWidget$1, {
|
|
6926
6926
|
expires_at: expirationTime,
|
|
6927
6927
|
onCountdownFinish: onCountdownFinish,
|
|
6928
6928
|
container: isSinglePageCheckout ? 'body' : ''
|
|
@@ -7225,7 +7225,7 @@ var BillingInfoContainer = /*#__PURE__*/React.memo(function (_ref4) {
|
|
|
7225
7225
|
shouldFetchCountries: shouldFetchCountries
|
|
7226
7226
|
}), React.createElement("div", {
|
|
7227
7227
|
className: "billing-info-container " + theme
|
|
7228
|
-
}, React.createElement(SnackbarAlert, {
|
|
7228
|
+
}, !!error && React.createElement(SnackbarAlert, {
|
|
7229
7229
|
type: "error",
|
|
7230
7230
|
isOpen: !!error,
|
|
7231
7231
|
message: error || '',
|