summit-registration-lite 6.0.0 → 6.0.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/index.js +54 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -2652,6 +2652,7 @@ const StripeForm = ({
|
|
|
2652
2652
|
|
|
2653
2653
|
|
|
2654
2654
|
|
|
2655
|
+
|
|
2655
2656
|
const stripe_component_StripeProvider = ({
|
|
2656
2657
|
userProfile,
|
|
2657
2658
|
reservation,
|
|
@@ -2740,7 +2741,7 @@ const stripe_component_StripeProvider = ({
|
|
|
2740
2741
|
amount: reservation?.amount_in_cents,
|
|
2741
2742
|
appearance: stripeStyle
|
|
2742
2743
|
};
|
|
2743
|
-
return reservation ? /*#__PURE__*/external_react_default().createElement(react_stripe_js_namespaceObject.Elements, {
|
|
2744
|
+
return reservation && !(0,utils/* isFreeOrder */.yk)(reservation) && !(0,utils/* isPrePaidOrder */.xm)(reservation) ? /*#__PURE__*/external_react_default().createElement(react_stripe_js_namespaceObject.Elements, {
|
|
2744
2745
|
stripe: stripePromise,
|
|
2745
2746
|
options: options
|
|
2746
2747
|
}, /*#__PURE__*/external_react_default().createElement(stripe_form, {
|
|
@@ -3703,6 +3704,9 @@ const ButtonBarComponent = ({
|
|
|
3703
3704
|
;// CONCATENATED MODULE: ./src/components/purchase-complete/index.module.scss
|
|
3704
3705
|
// extracted by mini-css-extract-plugin
|
|
3705
3706
|
/* harmony default export */ const purchase_complete_index_module = ({"button":"button___XMN8a","wrapper":"wrapper___Jd5Xg","circle":"circle___lcN86","complete":"complete___HAHzl","actions":"actions___jJdPX","footer":"footer___FL9TW"});
|
|
3707
|
+
;// CONCATENATED MODULE: external "react-content-loader"
|
|
3708
|
+
const external_react_content_loader_namespaceObject = require("react-content-loader");
|
|
3709
|
+
var external_react_content_loader_default = /*#__PURE__*/__webpack_require__.n(external_react_content_loader_namespaceObject);
|
|
3706
3710
|
;// CONCATENATED MODULE: ./src/components/purchase-complete/index.js
|
|
3707
3711
|
const _excluded = ["cta", "clear", "close"],
|
|
3708
3712
|
_excluded2 = ["checkout", "user", "onPurchaseComplete", "goToExtraQuestions", "goToEvent", "goToMyOrders", "completedExtraQuestions", "summit", "nowUtc", "clearWidgetState", "closeWidget", "supportEmail", "hasVirtualAccessLevel"];
|
|
@@ -3731,6 +3735,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
3731
3735
|
|
|
3732
3736
|
|
|
3733
3737
|
|
|
3738
|
+
|
|
3734
3739
|
const CTAButton = _ref => {
|
|
3735
3740
|
let {
|
|
3736
3741
|
cta,
|
|
@@ -3771,12 +3776,14 @@ const PurchaseComplete = _ref2 => {
|
|
|
3771
3776
|
onPurchaseComplete(checkout);
|
|
3772
3777
|
}, []);
|
|
3773
3778
|
const [requireExtraQuestions, setRequireExtraQuestions] = (0,external_react_.useState)(null);
|
|
3779
|
+
const [extraQuestionsLoaded, setExtraQuestonsLoaded] = (0,external_react_.useState)(false);
|
|
3774
3780
|
const isMultiOrder = (0,external_react_.useMemo)(() => checkout?.tickets.length > 1, [checkout]);
|
|
3775
3781
|
const isActive = (0,external_react_.useMemo)(() => summit.start_date <= nowUtc && summit.end_date >= nowUtc, [summit, nowUtc]);
|
|
3776
3782
|
const currentTicket = (0,external_react_.useMemo)(() => isMultiOrder ? checkout?.tickets.find(t => t?.owner?.email === user?.email) : checkout?.tickets.find(t => t?.owner), [user]);
|
|
3777
3783
|
(0,external_react_.useEffect)(() => {
|
|
3778
3784
|
completedExtraQuestions(currentTicket?.owner || null).then(res => {
|
|
3779
3785
|
setRequireExtraQuestions(res);
|
|
3786
|
+
setExtraQuestonsLoaded(true);
|
|
3780
3787
|
});
|
|
3781
3788
|
}, [currentTicket]);
|
|
3782
3789
|
|
|
@@ -3790,6 +3797,52 @@ const PurchaseComplete = _ref2 => {
|
|
|
3790
3797
|
date: (0,methods_namespaceObject.epochToMomentTimeZone)(summit.start_date, summit.time_zone_id).format('MMMM D'),
|
|
3791
3798
|
time: (0,methods_namespaceObject.epochToMomentTimeZone)(summit.start_date, summit.time_zone_id).format('hh:mm A')
|
|
3792
3799
|
};
|
|
3800
|
+
if (!extraQuestionsLoaded) return /*#__PURE__*/external_react_default().createElement((external_react_content_loader_default()), {
|
|
3801
|
+
speed: 2,
|
|
3802
|
+
width: "100%",
|
|
3803
|
+
height: 370,
|
|
3804
|
+
viewBox: "0 0 800 370",
|
|
3805
|
+
preserveAspectRatio: "xMidYMin meet"
|
|
3806
|
+
}, /*#__PURE__*/external_react_default().createElement("circle", {
|
|
3807
|
+
cx: "400",
|
|
3808
|
+
cy: "120",
|
|
3809
|
+
r: "40"
|
|
3810
|
+
}), /*#__PURE__*/external_react_default().createElement("rect", {
|
|
3811
|
+
x: "280",
|
|
3812
|
+
y: "180",
|
|
3813
|
+
rx: "4",
|
|
3814
|
+
ry: "4",
|
|
3815
|
+
width: "240",
|
|
3816
|
+
height: "24"
|
|
3817
|
+
}), /*#__PURE__*/external_react_default().createElement("rect", {
|
|
3818
|
+
x: "200",
|
|
3819
|
+
y: "220",
|
|
3820
|
+
rx: "3",
|
|
3821
|
+
ry: "3",
|
|
3822
|
+
width: "400",
|
|
3823
|
+
height: "16"
|
|
3824
|
+
}), /*#__PURE__*/external_react_default().createElement("rect", {
|
|
3825
|
+
x: "250",
|
|
3826
|
+
y: "245",
|
|
3827
|
+
rx: "3",
|
|
3828
|
+
ry: "3",
|
|
3829
|
+
width: "300",
|
|
3830
|
+
height: "16"
|
|
3831
|
+
}), /*#__PURE__*/external_react_default().createElement("rect", {
|
|
3832
|
+
x: "320",
|
|
3833
|
+
y: "290",
|
|
3834
|
+
rx: "4",
|
|
3835
|
+
ry: "4",
|
|
3836
|
+
width: "160",
|
|
3837
|
+
height: "36"
|
|
3838
|
+
}), /*#__PURE__*/external_react_default().createElement("rect", {
|
|
3839
|
+
x: "100",
|
|
3840
|
+
y: "340",
|
|
3841
|
+
rx: "3",
|
|
3842
|
+
ry: "3",
|
|
3843
|
+
width: "600",
|
|
3844
|
+
height: "14"
|
|
3845
|
+
}));
|
|
3793
3846
|
if (!checkout) return null;
|
|
3794
3847
|
if (requireExtraQuestions == null) return null;
|
|
3795
3848
|
let orderCompleteButtonText = currentTicket && requireExtraQuestions ? rest.hasOwnProperty('initialOrderCompleteButton') && !(0,utils/* isEmptyString */.ke)(rest.initialOrderCompleteButton) && typeof rest.initialOrderCompleteButton !== 'undefined' ? rest.initialOrderCompleteButton : external_i18n_react_default().translate('purchase_complete_step.initial_order_complete_button') : rest.hasOwnProperty('orderCompleteButton') && !(0,utils/* isEmptyString */.ke)(rest.orderCompleteButton) ? rest.orderCompleteButton : external_i18n_react_default().translate('purchase_complete_step.order_complete_button');
|