summit-registration-lite 6.0.5-beta.1 → 6.0.5
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 +49 -24
- package/dist/index.js.map +1 -1
- package/package.json +12 -6
package/dist/index.js
CHANGED
|
@@ -2868,6 +2868,9 @@ const PaymentComponent = ({
|
|
|
2868
2868
|
};
|
|
2869
2869
|
|
|
2870
2870
|
/* harmony default export */ const payment = (PaymentComponent);
|
|
2871
|
+
;// CONCATENATED MODULE: external "openstack-uicore-foundation/lib/components/inputs/company-input-v2"
|
|
2872
|
+
const company_input_v2_namespaceObject = require("openstack-uicore-foundation/lib/components/inputs/company-input-v2");
|
|
2873
|
+
var company_input_v2_default = /*#__PURE__*/__webpack_require__.n(company_input_v2_namespaceObject);
|
|
2871
2874
|
// EXTERNAL MODULE: ./src/helpers/index.js + 1 modules
|
|
2872
2875
|
var helpers = __webpack_require__(499);
|
|
2873
2876
|
;// CONCATENATED MODULE: ./src/components/personal-information/index.module.scss
|
|
@@ -2904,6 +2907,7 @@ function personal_information_defineProperty(obj, key, value) { if (key in obj)
|
|
|
2904
2907
|
|
|
2905
2908
|
|
|
2906
2909
|
|
|
2910
|
+
|
|
2907
2911
|
const PersonalInfoComponent = ({
|
|
2908
2912
|
isActive,
|
|
2909
2913
|
changeForm,
|
|
@@ -3049,21 +3053,34 @@ const PersonalInfoComponent = ({
|
|
|
3049
3053
|
}
|
|
3050
3054
|
});
|
|
3051
3055
|
const customStyles = {
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
}
|
|
3056
|
+
height: 36,
|
|
3057
|
+
"& .MuiFormControl-root": {
|
|
3058
|
+
marginTop: 0,
|
|
3059
|
+
marginBottom: 0
|
|
3060
|
+
},
|
|
3061
|
+
"& .MuiOutlinedInput-root": {
|
|
3062
|
+
height: 36,
|
|
3063
|
+
boxSizing: "border-box"
|
|
3064
|
+
},
|
|
3065
|
+
"& .MuiOutlinedInput-input": {
|
|
3066
|
+
height: "100%",
|
|
3067
|
+
lineHeight: 36,
|
|
3068
|
+
boxSizing: "border-box",
|
|
3069
|
+
fontSize: 16
|
|
3070
|
+
},
|
|
3071
|
+
"& .MuiOutlinedInput-input::placeholder": {
|
|
3072
|
+
fontSize: 14
|
|
3073
|
+
},
|
|
3074
|
+
"& .MuiAutocomplete-option": {
|
|
3075
|
+
fontSize: 16
|
|
3076
|
+
},
|
|
3077
|
+
"& .MuiAutocomplete-listbox": {
|
|
3078
|
+
maxHeight: 120
|
|
3079
|
+
},
|
|
3080
|
+
"& .MuiInputLabel-root:not(.MuiInputLabel-shrink)": {
|
|
3081
|
+
transform: "translate(12px, 10px)",
|
|
3082
|
+
fontSize: 14
|
|
3083
|
+
}
|
|
3067
3084
|
};
|
|
3068
3085
|
return /*#__PURE__*/external_react_default().createElement("div", {
|
|
3069
3086
|
className: `${personal_information_index_module.outerWrapper} step-wrapper`
|
|
@@ -3145,21 +3162,26 @@ const PersonalInfoComponent = ({
|
|
|
3145
3162
|
"data-testid": "email-error-invalid"
|
|
3146
3163
|
}, "The email is invalid.")), showCompanyInput && /*#__PURE__*/external_react_default().createElement("div", {
|
|
3147
3164
|
className: personal_information_index_module.fieldWrapper
|
|
3148
|
-
}, /*#__PURE__*/external_react_default().createElement("div", null, /*#__PURE__*/external_react_default().createElement(
|
|
3165
|
+
}, /*#__PURE__*/external_react_default().createElement("div", null, /*#__PURE__*/external_react_default().createElement((company_input_v2_default()), {
|
|
3149
3166
|
id: "reg-comp-input",
|
|
3150
3167
|
name: "reg-comp-input",
|
|
3151
3168
|
"data-testid": "company",
|
|
3152
|
-
|
|
3169
|
+
sx: customStyles,
|
|
3153
3170
|
summitId: summitId,
|
|
3154
3171
|
onChange: onCompanyChange,
|
|
3155
3172
|
onError: handleCompanyError,
|
|
3156
3173
|
value: personalInfo.company,
|
|
3157
3174
|
placeholder: companyDDLPlaceholder,
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3175
|
+
options2Show: companyDDLOptions2Show,
|
|
3176
|
+
disableShrink: true,
|
|
3177
|
+
label: null,
|
|
3178
|
+
ListboxProps: {
|
|
3179
|
+
sx: {
|
|
3180
|
+
'& li.MuiAutocomplete-option': {
|
|
3181
|
+
fontSize: '16px'
|
|
3182
|
+
}
|
|
3183
|
+
}
|
|
3184
|
+
}
|
|
3163
3185
|
}), companyError && /*#__PURE__*/external_react_default().createElement("div", {
|
|
3164
3186
|
className: personal_information_index_module.fieldError,
|
|
3165
3187
|
"data-testid": "company-error"
|
|
@@ -4206,7 +4228,10 @@ const RegistrationLite = _ref => {
|
|
|
4206
4228
|
}, []);
|
|
4207
4229
|
(0,external_react_.useEffect)(() => {
|
|
4208
4230
|
if (summitData && profileData) {
|
|
4209
|
-
|
|
4231
|
+
const ensureInvitation = () => summitData.invite_only_registration ? getMyInvitation(summitData.id) : Promise.resolve(); // no-op when not invite-only
|
|
4232
|
+
|
|
4233
|
+
|
|
4234
|
+
ensureInvitation().catch(e => console.log(e)).finally(() => handleGetTicketTypesAndTaxes(summitData.id));
|
|
4210
4235
|
}
|
|
4211
4236
|
}, [summitData, profileData]);
|
|
4212
4237
|
(0,external_react_.useEffect)(() => {
|
|
@@ -4500,7 +4525,7 @@ RegistrationLite.defaultProps = {
|
|
|
4500
4525
|
noAllowedTicketsMessage: '<span>You already have purchased all available tickets for this event and/or there are no tickets available for you to purchase.</span><br/><span><a href="/a/my-tickets">Visit the my orders / my tickets page</a> to review your existing tickets.</span>',
|
|
4501
4526
|
ticketTaxesErrorMessage: '<span>There was an error getting the information for the tickets. Please try it again.</span>',
|
|
4502
4527
|
allowPromoCodes: true,
|
|
4503
|
-
companyDDLPlaceholder: '
|
|
4528
|
+
companyDDLPlaceholder: 'Company',
|
|
4504
4529
|
authErrorCallback: error => {
|
|
4505
4530
|
console.log(error);
|
|
4506
4531
|
},
|