summit-registration-lite 2.0.18 → 2.0.21
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.css +1 -1
- package/dist/index.js +81 -66
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
.form___DoT3x{display:flex;flex-wrap:wrap;justify-content:space-between;margin:10px 0}.form___DoT3x div.fieldWrapper___wa1Ks{width:48%;margin-bottom:5px}.form___DoT3x div.fieldWrapper___wa1Ks:first-of-type{width:100%}.form___DoT3x div.inputWrapper___CbXhF{display:flex;border-radius:5px;border:1px solid var(--color_primary);height:36px;padding:5px 10px;justify-content:space-between;align-items:center}.form___DoT3x div.inputWrapper___CbXhF input{width:100%;background-color:transparent;border:none;padding:0;font-size:16px;display:flex;justify-content:space-between;align-items:center}.form___DoT3x div.inputWrapper___CbXhF input::placeholder{color:var(--color_text_input_hints);font-size:16px}.form___DoT3x div.inputWrapper___CbXhF input:focus-visible{outline:none}.form___DoT3x div.inputWrapper___CbXhF i{position:relative}.form___DoT3x div.inputWrapper___CbXhF>div{width:100%}.form___DoT3x div.inputWrapper___CbXhF>div:first-of-type{width:95%}.form___DoT3x div.fieldError___QrMYW{margin-top:5px;margin-bottom:5px;color:#e5424d;font-size:14px;line-height:1.5}.form___DoT3x div.fieldError___QrMYW::before{font-family:FontAwesome;content:'\f071';margin-right:5px}
|
|
12
12
|
|
|
13
|
-
.title___ECoNz{font-weight:bold;cursor:pointer;display:flex;justify-content:space-between}.title___ECoNz div{font-weight:normal}.form___lDFka{display:flex;flex-wrap:wrap;justify-content:space-between;margin:10px 0 0}.form___lDFka div.fieldWrapper___Mi_nL{width:48%;margin-bottom:5px}.form___lDFka div.inputWrapper___PEQFR{display:flex;border-radius:5px;border:1px solid var(--color_primary);height:36px;padding:5px 10px;justify-content:space-between;align-items:center}.form___lDFka div.inputWrapper___PEQFR input{width:100%;background-color:transparent;border:none;padding:0;font-size:16px;display:flex;justify-content:space-between;align-items:center}.form___lDFka div.inputWrapper___PEQFR input::placeholder{color:var(--color_text_input_hints);font-size:16px}.form___lDFka div.inputWrapper___PEQFR input:focus-visible{outline:none}.form___lDFka div.inputWrapper___PEQFR .readOnly___WRazF{opacity:0.6;cursor:default}.form___lDFka div.fieldError___ksJVe{margin-top:5px;margin-bottom:5px;color:#e5424d;font-size:14px;line-height:1.5;justify-content:left !important}.form___lDFka div.fieldError___ksJVe::before{font-family:FontAwesome;content:'\f071';margin-right:5px}.form___lDFka .companies___kmGFB>div{position:relative;width:100%;border-radius:5px;display:flex;justify-content:space-between;align-items:center;font-size:15px}.form___lDFka .companies___kmGFB>div::placeholder{color:var(--color_text_input_hints)}.form___lDFka .companies___kmGFB>div>div{height:100%;width:100%}.form___lDFka .companies___kmGFB>div>div>div{height:36px;padding:0px;border:1px solid var(--color_primary);box-shadow:0 0 1px var(--color_primary)}.form___lDFka .companies___kmGFB>div>div>div>div{height:36px}.form___lDFka .companies___kmGFB>div>div>span+div+div{overflow:auto;height:auto}.form___lDFka .companies___kmGFB>div>div>span+div+div>div{height:auto}.form___lDFka .companies___kmGFB>div input{padding:5px 10px;border:1px solid var(--color_primary);padding-right:0px !important;background-color:transparent}.form___lDFka .companies___kmGFB>div i{right:10px !important}.moreInfo___cQYdZ{display:inline-block;margin-top:10px}.moreInfoTooltip___lslgT{max-width:280px}.ticketQuantityNotice___L6gis{margin:10px 0 0 !important}.formErrors___dQQMe{margin-top:10px}.formErrors___dQQMe div+div{margin-top:10px}
|
|
13
|
+
.title___ECoNz{font-weight:bold;cursor:pointer;display:flex;justify-content:space-between}.title___ECoNz div{font-weight:normal}.form___lDFka{display:flex;flex-wrap:wrap;justify-content:space-between;margin:10px 0 0}.form___lDFka div.fieldWrapper___Mi_nL{width:48%;margin-bottom:5px}.form___lDFka div.inputWrapper___PEQFR{display:flex;border-radius:5px;border:1px solid var(--color_primary);height:36px;padding:5px 10px;justify-content:space-between;align-items:center}.form___lDFka div.inputWrapper___PEQFR input{width:100%;background-color:transparent;border:none;padding:0;font-size:16px;display:flex;justify-content:space-between;align-items:center}.form___lDFka div.inputWrapper___PEQFR input::placeholder{color:var(--color_text_input_hints);font-size:16px}.form___lDFka div.inputWrapper___PEQFR input:focus-visible{outline:none}.form___lDFka div.inputWrapper___PEQFR .readOnly___WRazF{opacity:0.6;cursor:default}.form___lDFka div.fieldError___ksJVe{margin-top:5px;margin-bottom:5px;color:#e5424d;font-size:14px;line-height:1.5;justify-content:left !important}.form___lDFka div.fieldError___ksJVe::before{font-family:FontAwesome;content:'\f071';margin-right:5px}.form___lDFka .companies___kmGFB>div{position:relative;width:100%;border-radius:5px;display:flex;justify-content:space-between;align-items:center;font-size:15px}.form___lDFka .companies___kmGFB>div::placeholder{color:var(--color_text_input_hints)}.form___lDFka .companies___kmGFB>div>div{height:100%;width:100%}.form___lDFka .companies___kmGFB>div>div>div{height:36px;padding:0px;border:1px solid var(--color_primary);box-shadow:0 0 1px var(--color_primary)}.form___lDFka .companies___kmGFB>div>div>div>div{height:36px}.form___lDFka .companies___kmGFB>div>div>span+div+div{overflow:auto;height:auto}.form___lDFka .companies___kmGFB>div>div>span+div+div>div{height:auto}.form___lDFka .companies___kmGFB>div input{padding:5px 10px;font-size:16px;color:inherit;border:1px solid var(--color_primary);padding-right:0px !important;background-color:transparent}.form___lDFka .companies___kmGFB>div i{right:10px !important}.moreInfo___cQYdZ{display:inline-block;margin-top:10px}.moreInfoTooltip___lslgT{max-width:280px}.ticketQuantityNotice___L6gis{margin:10px 0 0 !important}.formErrors___dQQMe{margin-top:10px}.formErrors___dQQMe div+div{margin-top:10px}
|
|
14
14
|
|
|
15
15
|
.title___DNZyl{font-weight:bold;cursor:pointer;display:flex;justify-content:space-between}.summary___quWdZ{text-align:right}.crossOut___QZ7dy{text-decoration:line-through}.discount___sEK_Q{color:green}.promo___F8lPO{font-weight:bold;display:flex;justify-content:flex-end}.form___aoo7w{display:flex;gap:10px;margin-top:10px}.dropdown____HWg0{flex:1 1 auto}.quantity___SIEQZ{flex-shrink:0}.quantity___SIEQZ input,.quantity___SIEQZ button{height:36px;text-align:center;border:1px solid var(--color_primary)}.quantity___SIEQZ input{padding:0 8px;width:48px !important}.quantity___SIEQZ input,.quantity___SIEQZ input:read-only{color:inherit;background-color:#fff;border:1px solid var(--color_primary)}.quantity___SIEQZ button{display:flex;align-items:center}.quantity___SIEQZ button:disabled,.quantity___SIEQZ button:disabled:hover{opacity:0.65;background:#dedede;border-color:#bebebe}.soldOut___Hatfr{height:36px;padding:0 16px;line-height:34px;font-weight:700px;background:#dedede;border:solid 1px #bebebe;border-radius:5px;opacity:0.65;font-weight:700;flex-shrink:0}.moreInfo___LmwOe{display:inline-block;margin-top:10px}.moreInfoTooltip___nOBf1{max-width:280px}.inPersonDisclaimer___PXGTz{margin-top:15px}
|
|
16
16
|
|
package/dist/index.js
CHANGED
|
@@ -90,7 +90,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
|
|
94
93
|
class LawPayProvider {
|
|
95
94
|
constructor({
|
|
96
95
|
reservation,
|
|
@@ -101,9 +100,9 @@ class LawPayProvider {
|
|
|
101
100
|
dispatch: _dispatch
|
|
102
101
|
}) {
|
|
103
102
|
_defineProperty(this, "payTicket", ({
|
|
104
|
-
token
|
|
103
|
+
token = null
|
|
105
104
|
}) => async dispatch => {
|
|
106
|
-
var _this$userProfile, _this$userProfile2, _this$userProfile3, _this$userProfile4;
|
|
105
|
+
var _this$userProfile, _this$userProfile2, _this$userProfile3, _this$userProfile4, _this$userProfile5, _this$userProfile6;
|
|
107
106
|
|
|
108
107
|
// Pay using affinity lawpay
|
|
109
108
|
const errorHandler = (err, res) => (dispatch, state) => {
|
|
@@ -135,44 +134,31 @@ class LawPayProvider {
|
|
|
135
134
|
expand: 'tickets,' + 'tickets.owner,' + 'tickets.owner.extra_questions,' + 'tickets.badge,' + 'tickets.badge.type,' + 'tickets.badge.type.access_levels,' + 'tickets.badge.type.features,' + 'tickets.ticket_type,' + 'tickets.ticket_type.taxes'
|
|
136
135
|
};
|
|
137
136
|
let normalizedEntity = {
|
|
138
|
-
billing_address_1: token.address1 || '',
|
|
139
|
-
billing_address_2: ((_this$
|
|
140
|
-
billing_address_zip_code: token.postal_code,
|
|
141
|
-
billing_address_city: ((_this$
|
|
142
|
-
billing_address_state: ((_this$
|
|
143
|
-
billing_address_country: ((_this$
|
|
144
|
-
payment_method_id: token.id
|
|
137
|
+
billing_address_1: token ? token.address1 : ((_this$userProfile = this.userProfile) === null || _this$userProfile === void 0 ? void 0 : _this$userProfile.address1) || '',
|
|
138
|
+
billing_address_2: ((_this$userProfile2 = this.userProfile) === null || _this$userProfile2 === void 0 ? void 0 : _this$userProfile2.address2) || '',
|
|
139
|
+
billing_address_zip_code: token ? token.postal_code : ((_this$userProfile3 = this.userProfile) === null || _this$userProfile3 === void 0 ? void 0 : _this$userProfile3.postal_code) || '',
|
|
140
|
+
billing_address_city: ((_this$userProfile4 = this.userProfile) === null || _this$userProfile4 === void 0 ? void 0 : _this$userProfile4.locality) || '',
|
|
141
|
+
billing_address_state: ((_this$userProfile5 = this.userProfile) === null || _this$userProfile5 === void 0 ? void 0 : _this$userProfile5.region) || '',
|
|
142
|
+
billing_address_country: ((_this$userProfile6 = this.userProfile) === null || _this$userProfile6 === void 0 ? void 0 : _this$userProfile6.country) || ''
|
|
145
143
|
};
|
|
146
|
-
this.dispatch(startWidgetLoading());
|
|
147
144
|
|
|
148
|
-
if (
|
|
149
|
-
|
|
150
|
-
)(params)(this.dispatch).then(payload => {
|
|
151
|
-
this.dispatch(stopWidgetLoading());
|
|
152
|
-
this.dispatch((0,actions_namespaceObject.createAction)(CLEAR_RESERVATION)({}));
|
|
153
|
-
this.dispatch(changeStep(3));
|
|
154
|
-
return payload;
|
|
155
|
-
}).catch(e => {
|
|
156
|
-
this.dispatch(removeReservedTicket());
|
|
157
|
-
this.dispatch(changeStep(1));
|
|
158
|
-
this.dispatch(stopWidgetLoading());
|
|
159
|
-
return e;
|
|
160
|
-
}); // The payment has succeeded. Display a success message.
|
|
161
|
-
} else {
|
|
162
|
-
// FREE TICKET
|
|
163
|
-
return (0,actions_namespaceObject.putRequest)(null, (0,actions_namespaceObject.createAction)(PAY_RESERVATION), `${this.apiBaseUrl}/api/v1/summits/${this.summitId}/orders/${this.reservation.hash}/checkout`, normalizedEntity, errorHandler // entity
|
|
164
|
-
)(params)(this.dispatch).then(payload => {
|
|
165
|
-
this.dispatch(stopWidgetLoading());
|
|
166
|
-
this.dispatch((0,actions_namespaceObject.createAction)(CLEAR_RESERVATION)({}));
|
|
167
|
-
this.dispatch(changeStep(3));
|
|
168
|
-
return payload;
|
|
169
|
-
}).catch(e => {
|
|
170
|
-
this.dispatch(removeReservedTicket());
|
|
171
|
-
this.dispatch(changeStep(1));
|
|
172
|
-
this.dispatch(stopWidgetLoading());
|
|
173
|
-
return e;
|
|
174
|
-
}); // The payment has succeeded. Display a success message.
|
|
145
|
+
if (token) {
|
|
146
|
+
normalizedEntity['payment_method_id'] = token.id;
|
|
175
147
|
}
|
|
148
|
+
|
|
149
|
+
this.dispatch(startWidgetLoading());
|
|
150
|
+
return (0,actions_namespaceObject.putRequest)(null, (0,actions_namespaceObject.createAction)(PAY_RESERVATION), `${this.apiBaseUrl}/api/v1/summits/${this.summitId}/orders/${this.reservation.hash}/checkout`, normalizedEntity, errorHandler // entity
|
|
151
|
+
)(params)(this.dispatch).then(payload => {
|
|
152
|
+
this.dispatch(stopWidgetLoading());
|
|
153
|
+
this.dispatch((0,actions_namespaceObject.createAction)(CLEAR_RESERVATION)({}));
|
|
154
|
+
this.dispatch(changeStep(3));
|
|
155
|
+
return payload;
|
|
156
|
+
}).catch(e => {
|
|
157
|
+
this.dispatch(removeReservedTicket());
|
|
158
|
+
this.dispatch(changeStep(1));
|
|
159
|
+
this.dispatch(stopWidgetLoading());
|
|
160
|
+
return e;
|
|
161
|
+
}); // The payment has succeeded. Display a success message.
|
|
176
162
|
});
|
|
177
163
|
|
|
178
164
|
this.reservation = reservation;
|
|
@@ -426,6 +412,7 @@ const getTaxesTypes = summitId => async (dispatch, getState, {
|
|
|
426
412
|
}
|
|
427
413
|
};
|
|
428
414
|
const reserveTicket = ({
|
|
415
|
+
provider,
|
|
429
416
|
personalInformation,
|
|
430
417
|
ticket,
|
|
431
418
|
ticketQuantity
|
|
@@ -495,12 +482,12 @@ const reserveTicket = ({
|
|
|
495
482
|
payload.response.promo_code = promoCode || null;
|
|
496
483
|
|
|
497
484
|
if (!payload.response.amount) {
|
|
498
|
-
dispatch(
|
|
499
|
-
return payload;
|
|
500
|
-
} else {
|
|
501
|
-
dispatch(changeStep(2));
|
|
485
|
+
dispatch(payTicketWithProvider(provider));
|
|
502
486
|
return payload;
|
|
503
487
|
}
|
|
488
|
+
|
|
489
|
+
dispatch(changeStep(2));
|
|
490
|
+
return payload;
|
|
504
491
|
}).catch(e => {
|
|
505
492
|
dispatch((0,actions_namespaceObject.createAction)(CREATE_RESERVATION_ERROR)(e));
|
|
506
493
|
dispatch(stopWidgetLoading());
|
|
@@ -1033,9 +1020,7 @@ const LawPayForm = ({
|
|
|
1033
1020
|
exp_month: '',
|
|
1034
1021
|
exp_year: '',
|
|
1035
1022
|
postal_code: userProfile.postal_code || '',
|
|
1036
|
-
address1: userProfile.address1 || ''
|
|
1037
|
-
email: userProfile.email,
|
|
1038
|
-
name: `${userProfile.given_name} ${userProfile.family_name}`
|
|
1023
|
+
address1: userProfile.address1 || ''
|
|
1039
1024
|
});
|
|
1040
1025
|
const [lawPayErrors, setLawPayErrors] = (0,external_react_namespaceObject.useState)({
|
|
1041
1026
|
exp_month: '',
|
|
@@ -1047,9 +1032,8 @@ const LawPayForm = ({
|
|
|
1047
1032
|
});
|
|
1048
1033
|
const style = {
|
|
1049
1034
|
color: marketingData.color_text_dark,
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
backgroundColor: '#ffffff',
|
|
1035
|
+
"font-size": '16px',
|
|
1036
|
+
"font-weight": 'inherit',
|
|
1053
1037
|
'::placeholder': {
|
|
1054
1038
|
color: marketingData.color_text_input_hints
|
|
1055
1039
|
}
|
|
@@ -1076,7 +1060,7 @@ const LawPayForm = ({
|
|
|
1076
1060
|
const hostedFieldsCallBack = state => {
|
|
1077
1061
|
let fieldErrors = {};
|
|
1078
1062
|
state.fields.map(f => {
|
|
1079
|
-
fieldErrors = lawpay_form_objectSpread(lawpay_form_objectSpread({}, fieldErrors), {}, {
|
|
1063
|
+
if (f.focus && f.error !== 'Input field is empty') fieldErrors = lawpay_form_objectSpread(lawpay_form_objectSpread({}, fieldErrors), {}, {
|
|
1080
1064
|
[f.type]: f.error
|
|
1081
1065
|
});
|
|
1082
1066
|
});
|
|
@@ -1084,7 +1068,7 @@ const LawPayForm = ({
|
|
|
1084
1068
|
};
|
|
1085
1069
|
|
|
1086
1070
|
(0,external_react_namespaceObject.useEffect)(() => {
|
|
1087
|
-
if (window.AffiniPay && hostedFields
|
|
1071
|
+
if (window.AffiniPay && !hostedFields) {
|
|
1088
1072
|
setHostedFields(window.AffiniPay.HostedFields.initializeFields(hostedFieldsConfiguration, hostedFieldsCallBack));
|
|
1089
1073
|
}
|
|
1090
1074
|
}, [reservation]);
|
|
@@ -1098,7 +1082,7 @@ const LawPayForm = ({
|
|
|
1098
1082
|
const formHasErrors = () => {
|
|
1099
1083
|
let errors = {};
|
|
1100
1084
|
Object.keys(lawPayFields).map(key => {
|
|
1101
|
-
if (!lawPayFields[key]) {
|
|
1085
|
+
if (!lawPayFields[key] || lawPayFields[key] === '') {
|
|
1102
1086
|
errors = lawpay_form_objectSpread(lawpay_form_objectSpread({}, errors), {}, {
|
|
1103
1087
|
[key]: 'This field is required.'
|
|
1104
1088
|
});
|
|
@@ -1124,8 +1108,8 @@ const LawPayForm = ({
|
|
|
1124
1108
|
"address1": lawPayFields.address1,
|
|
1125
1109
|
"exp_year": lawPayFields.exp_year,
|
|
1126
1110
|
"exp_month": lawPayFields.exp_month,
|
|
1127
|
-
"email":
|
|
1128
|
-
"name":
|
|
1111
|
+
"email": userProfile.email,
|
|
1112
|
+
"name": `${reservation.owner_first_name} ${reservation.owner_last_name}`,
|
|
1129
1113
|
"reference": `summit_${reservation.summit_id}_order_${reservation.id}`
|
|
1130
1114
|
});
|
|
1131
1115
|
payTicket(provider, {
|
|
@@ -1233,6 +1217,7 @@ const LawPayForm = ({
|
|
|
1233
1217
|
type: "text",
|
|
1234
1218
|
name: "postal_code",
|
|
1235
1219
|
placeholder: "ZIP Code *",
|
|
1220
|
+
value: lawPayFields.postal_code,
|
|
1236
1221
|
onChange: e => setLawPayFields(lawpay_form_objectSpread(lawpay_form_objectSpread({}, lawPayFields), {}, {
|
|
1237
1222
|
postal_code: e.target.value
|
|
1238
1223
|
}))
|
|
@@ -1250,6 +1235,7 @@ const LawPayForm = ({
|
|
|
1250
1235
|
type: "text",
|
|
1251
1236
|
name: "address1",
|
|
1252
1237
|
placeholder: "Address *",
|
|
1238
|
+
value: lawPayFields.address1,
|
|
1253
1239
|
onChange: e => setLawPayFields(lawpay_form_objectSpread(lawpay_form_objectSpread({}, lawPayFields), {}, {
|
|
1254
1240
|
address1: e.target.value
|
|
1255
1241
|
}))
|
|
@@ -1384,14 +1370,20 @@ const StripeForm = ({
|
|
|
1384
1370
|
return;
|
|
1385
1371
|
}
|
|
1386
1372
|
|
|
1387
|
-
const cardElement = elements.getElement(react_stripe_js_namespaceObject.CardNumberElement);
|
|
1373
|
+
const cardElement = elements.getElement(react_stripe_js_namespaceObject.CardNumberElement); // @see https://stripe.com/docs/js/tokens_sources/create_token?type=cardElement
|
|
1374
|
+
|
|
1388
1375
|
const {
|
|
1389
1376
|
error,
|
|
1390
1377
|
token
|
|
1391
1378
|
} = await stripe.createToken(cardElement, {
|
|
1392
1379
|
name: `${reservation.owner_first_name} ${reservation.owner_last_name}`,
|
|
1380
|
+
address_line1: userProfile.address1 || '',
|
|
1381
|
+
address_line2: userProfile.address2 || '',
|
|
1382
|
+
address_city: userProfile.locality || '',
|
|
1383
|
+
address_state: userProfile.region || '',
|
|
1393
1384
|
address_zip: data.zipCode,
|
|
1394
|
-
address_country: userProfile.country || ''
|
|
1385
|
+
address_country: userProfile.country || '',
|
|
1386
|
+
email: userProfile.email
|
|
1395
1387
|
});
|
|
1396
1388
|
|
|
1397
1389
|
if (token) {
|
|
@@ -2380,6 +2372,34 @@ const TicketOwnedComponent = ({
|
|
|
2380
2372
|
};
|
|
2381
2373
|
|
|
2382
2374
|
/* harmony default export */ const ticket_owned = (TicketOwnedComponent);
|
|
2375
|
+
;// CONCATENATED MODULE: ./src/utils/utils.js
|
|
2376
|
+
/**
|
|
2377
|
+
* Copyright 2022 OpenStack Foundation
|
|
2378
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2379
|
+
* you may not use this file except in compliance with the License.
|
|
2380
|
+
* You may obtain a copy of the License at
|
|
2381
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2382
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2383
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2384
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2385
|
+
* See the License for the specific language governing permissions and
|
|
2386
|
+
* limitations under the License.
|
|
2387
|
+
**/
|
|
2388
|
+
const getCurrentProvider = summit => {
|
|
2389
|
+
for (let profile of summit.payment_profiles) {
|
|
2390
|
+
if (profile.application_type === 'Registration') {
|
|
2391
|
+
return {
|
|
2392
|
+
publicKey: profile.test_mode_enabled ? profile.test_publishable_key : profile.live_publishable_key,
|
|
2393
|
+
provider: profile.provider
|
|
2394
|
+
};
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
return {
|
|
2399
|
+
publicKey: null,
|
|
2400
|
+
provider: ''
|
|
2401
|
+
};
|
|
2402
|
+
};
|
|
2383
2403
|
;// CONCATENATED MODULE: ./src/components/registration-lite.js
|
|
2384
2404
|
const registration_lite_excluded = ["loadSession", "setMarketingSettings", "changeStep", "removeReservedTicket", "reserveTicket", "payTicketWithProvider", "onPurchaseComplete", "getTicketTypes", "getTaxesTypes", "getLoginCode", "passwordlessLogin", "goToLogin", "loginOptions", "allowsNativeAuth", "allowsOtpAuth", "reservation", "checkout", "ticketTypes", "taxTypes", "step", "passwordlessCodeSent", "passwordlessEmail", "passwordlessCode", "getPasswordlessCode", "passwordlessCodeError", "loginWithCode", "goToExtraQuestions", "goToEvent", "goToRegistration", "profileData", "summitData", "supportEmail", "ticketOwned", "ownedTickets", "widgetLoading", "loading", "inPersonDisclaimer", "userProfile", "handleCompanyError", "stripeOptions"];
|
|
2385
2405
|
|
|
@@ -2422,6 +2442,7 @@ function registration_lite_objectWithoutPropertiesLoose(source, excluded) { if (
|
|
|
2422
2442
|
|
|
2423
2443
|
|
|
2424
2444
|
|
|
2445
|
+
|
|
2425
2446
|
const RegistrationLite = _ref => {
|
|
2426
2447
|
var _formValues$ticketTyp, _formValues$ticketTyp2;
|
|
2427
2448
|
|
|
@@ -2491,17 +2512,10 @@ const RegistrationLite = _ref => {
|
|
|
2491
2512
|
errors
|
|
2492
2513
|
}));
|
|
2493
2514
|
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
if (profile.application_type === 'Registration') {
|
|
2499
|
-
publicKey = profile.test_mode_enabled ? profile.test_publishable_key : profile.live_publishable_key;
|
|
2500
|
-
provider = profile.provider;
|
|
2501
|
-
break;
|
|
2502
|
-
}
|
|
2503
|
-
}
|
|
2504
|
-
|
|
2515
|
+
const {
|
|
2516
|
+
publicKey,
|
|
2517
|
+
provider
|
|
2518
|
+
} = getCurrentProvider(summitData);
|
|
2505
2519
|
(0,external_react_namespaceObject.useEffect)(() => {
|
|
2506
2520
|
loadSession(registration_lite_objectSpread(registration_lite_objectSpread({}, rest), {}, {
|
|
2507
2521
|
summitData,
|
|
@@ -2520,6 +2534,7 @@ const RegistrationLite = _ref => {
|
|
|
2520
2534
|
(0,external_react_namespaceObject.useEffect)(() => {
|
|
2521
2535
|
if (step === 1 && formValues !== null && formValues !== void 0 && formValues.ticketType && formValues !== null && formValues !== void 0 && formValues.personalInformation) {
|
|
2522
2536
|
reserveTicket({
|
|
2537
|
+
provider,
|
|
2523
2538
|
personalInformation: formValues === null || formValues === void 0 ? void 0 : formValues.personalInformation,
|
|
2524
2539
|
ticket: formValues === null || formValues === void 0 ? void 0 : formValues.ticketType,
|
|
2525
2540
|
ticketQuantity: formValues === null || formValues === void 0 ? void 0 : formValues.ticketQuantity
|