summit-registration-lite 6.0.1 → 6.0.3-beta.1
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 +85 -22
- package/dist/index.js.map +1 -1
- package/package.json +13 -6
package/dist/index.js
CHANGED
|
@@ -2852,6 +2852,9 @@ const PaymentComponent = ({
|
|
|
2852
2852
|
};
|
|
2853
2853
|
|
|
2854
2854
|
/* harmony default export */ const payment = (PaymentComponent);
|
|
2855
|
+
;// CONCATENATED MODULE: external "openstack-uicore-foundation/lib/components/inputs/company-input-v2"
|
|
2856
|
+
const company_input_v2_namespaceObject = require("openstack-uicore-foundation/lib/components/inputs/company-input-v2");
|
|
2857
|
+
var company_input_v2_default = /*#__PURE__*/__webpack_require__.n(company_input_v2_namespaceObject);
|
|
2855
2858
|
// EXTERNAL MODULE: ./src/helpers/index.js + 1 modules
|
|
2856
2859
|
var helpers = __webpack_require__(499);
|
|
2857
2860
|
;// CONCATENATED MODULE: ./src/components/personal-information/index.module.scss
|
|
@@ -2888,6 +2891,7 @@ function personal_information_defineProperty(obj, key, value) { if (key in obj)
|
|
|
2888
2891
|
|
|
2889
2892
|
|
|
2890
2893
|
|
|
2894
|
+
|
|
2891
2895
|
const PersonalInfoComponent = ({
|
|
2892
2896
|
isActive,
|
|
2893
2897
|
changeForm,
|
|
@@ -3033,21 +3037,30 @@ const PersonalInfoComponent = ({
|
|
|
3033
3037
|
}
|
|
3034
3038
|
});
|
|
3035
3039
|
const customStyles = {
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3040
|
+
height: 36,
|
|
3041
|
+
"& .MuiFormControl-root": {
|
|
3042
|
+
marginTop: 0,
|
|
3043
|
+
marginBottom: 0
|
|
3044
|
+
},
|
|
3045
|
+
"& .MuiOutlinedInput-root": {
|
|
3046
|
+
height: 36,
|
|
3047
|
+
boxSizing: "border-box"
|
|
3048
|
+
},
|
|
3049
|
+
"& .MuiOutlinedInput-input": {
|
|
3050
|
+
height: "100%",
|
|
3051
|
+
lineHeight: 36,
|
|
3052
|
+
boxSizing: "border-box"
|
|
3053
|
+
},
|
|
3054
|
+
"& .MuiOutlinedInput-input::placeholder": {
|
|
3055
|
+
fontSize: "14px"
|
|
3056
|
+
},
|
|
3057
|
+
"& .MuiAutocomplete-listbox": {
|
|
3058
|
+
maxHeight: 120
|
|
3059
|
+
},
|
|
3060
|
+
"& .MuiInputLabel-root:not(.MuiInputLabel-shrink)": {
|
|
3061
|
+
transform: "translate(12px, 10px)",
|
|
3062
|
+
fontSize: "14px"
|
|
3063
|
+
}
|
|
3051
3064
|
};
|
|
3052
3065
|
return /*#__PURE__*/external_react_default().createElement("div", {
|
|
3053
3066
|
className: `${personal_information_index_module.outerWrapper} step-wrapper`
|
|
@@ -3129,21 +3142,19 @@ const PersonalInfoComponent = ({
|
|
|
3129
3142
|
"data-testid": "email-error-invalid"
|
|
3130
3143
|
}, "The email is invalid.")), showCompanyInput && /*#__PURE__*/external_react_default().createElement("div", {
|
|
3131
3144
|
className: personal_information_index_module.fieldWrapper
|
|
3132
|
-
}, /*#__PURE__*/external_react_default().createElement("div", null, /*#__PURE__*/external_react_default().createElement(
|
|
3145
|
+
}, /*#__PURE__*/external_react_default().createElement("div", null, /*#__PURE__*/external_react_default().createElement((company_input_v2_default()), {
|
|
3133
3146
|
id: "reg-comp-input",
|
|
3134
3147
|
name: "reg-comp-input",
|
|
3135
3148
|
"data-testid": "company",
|
|
3136
|
-
|
|
3149
|
+
sx: customStyles,
|
|
3137
3150
|
summitId: summitId,
|
|
3138
3151
|
onChange: onCompanyChange,
|
|
3139
3152
|
onError: handleCompanyError,
|
|
3140
3153
|
value: personalInfo.company,
|
|
3141
3154
|
placeholder: companyDDLPlaceholder,
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
openMenuOnClick: showCompanyInputDefaultOptions,
|
|
3146
|
-
options2Show: companyDDLOptions2Show
|
|
3155
|
+
options2Show: companyDDLOptions2Show,
|
|
3156
|
+
disableShrink: true,
|
|
3157
|
+
label: null
|
|
3147
3158
|
}), companyError && /*#__PURE__*/external_react_default().createElement("div", {
|
|
3148
3159
|
className: personal_information_index_module.fieldError,
|
|
3149
3160
|
"data-testid": "company-error"
|
|
@@ -3704,6 +3715,9 @@ const ButtonBarComponent = ({
|
|
|
3704
3715
|
;// CONCATENATED MODULE: ./src/components/purchase-complete/index.module.scss
|
|
3705
3716
|
// extracted by mini-css-extract-plugin
|
|
3706
3717
|
/* 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"});
|
|
3718
|
+
;// CONCATENATED MODULE: external "react-content-loader"
|
|
3719
|
+
const external_react_content_loader_namespaceObject = require("react-content-loader");
|
|
3720
|
+
var external_react_content_loader_default = /*#__PURE__*/__webpack_require__.n(external_react_content_loader_namespaceObject);
|
|
3707
3721
|
;// CONCATENATED MODULE: ./src/components/purchase-complete/index.js
|
|
3708
3722
|
const _excluded = ["cta", "clear", "close"],
|
|
3709
3723
|
_excluded2 = ["checkout", "user", "onPurchaseComplete", "goToExtraQuestions", "goToEvent", "goToMyOrders", "completedExtraQuestions", "summit", "nowUtc", "clearWidgetState", "closeWidget", "supportEmail", "hasVirtualAccessLevel"];
|
|
@@ -3732,6 +3746,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
3732
3746
|
|
|
3733
3747
|
|
|
3734
3748
|
|
|
3749
|
+
|
|
3735
3750
|
const CTAButton = _ref => {
|
|
3736
3751
|
let {
|
|
3737
3752
|
cta,
|
|
@@ -3772,12 +3787,14 @@ const PurchaseComplete = _ref2 => {
|
|
|
3772
3787
|
onPurchaseComplete(checkout);
|
|
3773
3788
|
}, []);
|
|
3774
3789
|
const [requireExtraQuestions, setRequireExtraQuestions] = (0,external_react_.useState)(null);
|
|
3790
|
+
const [extraQuestionsLoaded, setExtraQuestonsLoaded] = (0,external_react_.useState)(false);
|
|
3775
3791
|
const isMultiOrder = (0,external_react_.useMemo)(() => checkout?.tickets.length > 1, [checkout]);
|
|
3776
3792
|
const isActive = (0,external_react_.useMemo)(() => summit.start_date <= nowUtc && summit.end_date >= nowUtc, [summit, nowUtc]);
|
|
3777
3793
|
const currentTicket = (0,external_react_.useMemo)(() => isMultiOrder ? checkout?.tickets.find(t => t?.owner?.email === user?.email) : checkout?.tickets.find(t => t?.owner), [user]);
|
|
3778
3794
|
(0,external_react_.useEffect)(() => {
|
|
3779
3795
|
completedExtraQuestions(currentTicket?.owner || null).then(res => {
|
|
3780
3796
|
setRequireExtraQuestions(res);
|
|
3797
|
+
setExtraQuestonsLoaded(true);
|
|
3781
3798
|
});
|
|
3782
3799
|
}, [currentTicket]);
|
|
3783
3800
|
|
|
@@ -3791,6 +3808,52 @@ const PurchaseComplete = _ref2 => {
|
|
|
3791
3808
|
date: (0,methods_namespaceObject.epochToMomentTimeZone)(summit.start_date, summit.time_zone_id).format('MMMM D'),
|
|
3792
3809
|
time: (0,methods_namespaceObject.epochToMomentTimeZone)(summit.start_date, summit.time_zone_id).format('hh:mm A')
|
|
3793
3810
|
};
|
|
3811
|
+
if (!extraQuestionsLoaded) return /*#__PURE__*/external_react_default().createElement((external_react_content_loader_default()), {
|
|
3812
|
+
speed: 2,
|
|
3813
|
+
width: "100%",
|
|
3814
|
+
height: 370,
|
|
3815
|
+
viewBox: "0 0 800 370",
|
|
3816
|
+
preserveAspectRatio: "xMidYMin meet"
|
|
3817
|
+
}, /*#__PURE__*/external_react_default().createElement("circle", {
|
|
3818
|
+
cx: "400",
|
|
3819
|
+
cy: "120",
|
|
3820
|
+
r: "40"
|
|
3821
|
+
}), /*#__PURE__*/external_react_default().createElement("rect", {
|
|
3822
|
+
x: "280",
|
|
3823
|
+
y: "180",
|
|
3824
|
+
rx: "4",
|
|
3825
|
+
ry: "4",
|
|
3826
|
+
width: "240",
|
|
3827
|
+
height: "24"
|
|
3828
|
+
}), /*#__PURE__*/external_react_default().createElement("rect", {
|
|
3829
|
+
x: "200",
|
|
3830
|
+
y: "220",
|
|
3831
|
+
rx: "3",
|
|
3832
|
+
ry: "3",
|
|
3833
|
+
width: "400",
|
|
3834
|
+
height: "16"
|
|
3835
|
+
}), /*#__PURE__*/external_react_default().createElement("rect", {
|
|
3836
|
+
x: "250",
|
|
3837
|
+
y: "245",
|
|
3838
|
+
rx: "3",
|
|
3839
|
+
ry: "3",
|
|
3840
|
+
width: "300",
|
|
3841
|
+
height: "16"
|
|
3842
|
+
}), /*#__PURE__*/external_react_default().createElement("rect", {
|
|
3843
|
+
x: "320",
|
|
3844
|
+
y: "290",
|
|
3845
|
+
rx: "4",
|
|
3846
|
+
ry: "4",
|
|
3847
|
+
width: "160",
|
|
3848
|
+
height: "36"
|
|
3849
|
+
}), /*#__PURE__*/external_react_default().createElement("rect", {
|
|
3850
|
+
x: "100",
|
|
3851
|
+
y: "340",
|
|
3852
|
+
rx: "3",
|
|
3853
|
+
ry: "3",
|
|
3854
|
+
width: "600",
|
|
3855
|
+
height: "14"
|
|
3856
|
+
}));
|
|
3794
3857
|
if (!checkout) return null;
|
|
3795
3858
|
if (requireExtraQuestions == null) return null;
|
|
3796
3859
|
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');
|