summit-registration-lite 2.0.14 → 2.0.17
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 +64 -13
- 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}.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;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,6 +90,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
|
|
93
|
+
|
|
93
94
|
class LawPayProvider {
|
|
94
95
|
constructor({
|
|
95
96
|
reservation,
|
|
@@ -105,6 +106,22 @@ class LawPayProvider {
|
|
|
105
106
|
var _this$userProfile, _this$userProfile2, _this$userProfile3, _this$userProfile4;
|
|
106
107
|
|
|
107
108
|
// Pay using affinity lawpay
|
|
109
|
+
const errorHandler = (err, res) => (dispatch, state) => {
|
|
110
|
+
if (res && res.statusCode === 404) {
|
|
111
|
+
const msg = res.body.message;
|
|
112
|
+
external_sweetalert2_default().fire("Validation Error", msg, "warning");
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (res && res.statusCode === 500) {
|
|
117
|
+
const msg = res.body.message;
|
|
118
|
+
external_sweetalert2_default().fire("Server Error", msg, "error");
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return (0,actions_namespaceObject.authErrorHandler)(err, res);
|
|
123
|
+
};
|
|
124
|
+
|
|
108
125
|
let params = {
|
|
109
126
|
access_token: this.access_token,
|
|
110
127
|
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'
|
|
@@ -121,7 +138,7 @@ class LawPayProvider {
|
|
|
121
138
|
this.dispatch(startWidgetLoading());
|
|
122
139
|
|
|
123
140
|
if (this.reservation.amount > 0) {
|
|
124
|
-
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,
|
|
141
|
+
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
|
|
125
142
|
)(params)(this.dispatch).then(payload => {
|
|
126
143
|
this.dispatch(stopWidgetLoading());
|
|
127
144
|
this.dispatch((0,actions_namespaceObject.createAction)(CLEAR_RESERVATION)({}));
|
|
@@ -132,10 +149,10 @@ class LawPayProvider {
|
|
|
132
149
|
this.dispatch(changeStep(1));
|
|
133
150
|
this.dispatch(stopWidgetLoading());
|
|
134
151
|
return e;
|
|
135
|
-
}); // The payment has succeeded. Display a success message.
|
|
152
|
+
}); // The payment has succeeded. Display a success message.
|
|
136
153
|
} else {
|
|
137
154
|
// FREE TICKET
|
|
138
|
-
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,
|
|
155
|
+
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
|
|
139
156
|
)(params)(this.dispatch).then(payload => {
|
|
140
157
|
this.dispatch(stopWidgetLoading());
|
|
141
158
|
this.dispatch((0,actions_namespaceObject.createAction)(CLEAR_RESERVATION)({}));
|
|
@@ -182,6 +199,22 @@ class StripeProvider {
|
|
|
182
199
|
}) => async dispatch => {
|
|
183
200
|
var _this$userProfile, _this$userProfile2, _this$userProfile3, _this$userProfile4, _this$userProfile5;
|
|
184
201
|
|
|
202
|
+
const errorHandler = (err, res) => (dispatch, state) => {
|
|
203
|
+
if (res && res.statusCode === 404) {
|
|
204
|
+
const msg = res.body.message;
|
|
205
|
+
external_sweetalert2_default().fire("Validation Error", msg, "warning");
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
if (res && res.statusCode === 500) {
|
|
210
|
+
const msg = res.body.message;
|
|
211
|
+
external_sweetalert2_default().fire("Server Error", msg, "error");
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
return (0,actions_namespaceObject.authErrorHandler)(err, res);
|
|
216
|
+
};
|
|
217
|
+
|
|
185
218
|
let params = {
|
|
186
219
|
access_token: this.access_token,
|
|
187
220
|
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'
|
|
@@ -214,7 +247,7 @@ class StripeProvider {
|
|
|
214
247
|
this.dispatch(removeReservedTicket());
|
|
215
248
|
this.dispatch(stopWidgetLoading());
|
|
216
249
|
} else {
|
|
217
|
-
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,
|
|
250
|
+
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
|
|
218
251
|
)(params)(this.dispatch).then(payload => {
|
|
219
252
|
this.dispatch(stopWidgetLoading());
|
|
220
253
|
this.dispatch((0,actions_namespaceObject.createAction)(CLEAR_RESERVATION)({}));
|
|
@@ -233,7 +266,7 @@ class StripeProvider {
|
|
|
233
266
|
});
|
|
234
267
|
} else {
|
|
235
268
|
// FREE TICKET
|
|
236
|
-
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,
|
|
269
|
+
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
|
|
237
270
|
)(params)(this.dispatch).then(payload => {
|
|
238
271
|
this.dispatch(stopWidgetLoading());
|
|
239
272
|
this.dispatch((0,actions_namespaceObject.createAction)(CLEAR_RESERVATION)({}));
|
|
@@ -424,6 +457,19 @@ const reserveTicket = ({
|
|
|
424
457
|
|
|
425
458
|
const errorHandler = (err, res) => (dispatch, state) => {
|
|
426
459
|
if (res && res.statusCode === 412 && onError) return onError(err, res);
|
|
460
|
+
|
|
461
|
+
if (res && res.statusCode === 404) {
|
|
462
|
+
const msg = res.body.message;
|
|
463
|
+
external_sweetalert2_default().fire("Validation Error", msg, "warning");
|
|
464
|
+
return;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
if (res && res.statusCode === 500) {
|
|
468
|
+
const msg = res.body.message;
|
|
469
|
+
external_sweetalert2_default().fire("Server Error", msg, "error");
|
|
470
|
+
return;
|
|
471
|
+
}
|
|
472
|
+
|
|
427
473
|
return (0,actions_namespaceObject.authErrorHandler)(err, res);
|
|
428
474
|
};
|
|
429
475
|
|
|
@@ -939,7 +985,7 @@ function lawpay_form_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
|
939
985
|
function lawpay_form_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
940
986
|
|
|
941
987
|
/**
|
|
942
|
-
* Copyright
|
|
988
|
+
* Copyright 2022 OpenStack Foundation
|
|
943
989
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
944
990
|
* you may not use this file except in compliance with the License.
|
|
945
991
|
* You may obtain a copy of the License at
|
|
@@ -971,7 +1017,9 @@ const LawPayForm = ({
|
|
|
971
1017
|
exp_month: '',
|
|
972
1018
|
exp_year: '',
|
|
973
1019
|
postal_code: userProfile.postal_code || '',
|
|
974
|
-
address1: userProfile.address1 || ''
|
|
1020
|
+
address1: userProfile.address1 || '',
|
|
1021
|
+
email: userProfile.email,
|
|
1022
|
+
name: `${userProfile.given_name} ${userProfile.family_name}`
|
|
975
1023
|
});
|
|
976
1024
|
const [lawPayErrors, setLawPayErrors] = (0,external_react_namespaceObject.useState)({
|
|
977
1025
|
exp_month: '',
|
|
@@ -1059,7 +1107,10 @@ const LawPayForm = ({
|
|
|
1059
1107
|
"postal_code": lawPayFields.postal_code,
|
|
1060
1108
|
"address1": lawPayFields.address1,
|
|
1061
1109
|
"exp_year": lawPayFields.exp_year,
|
|
1062
|
-
"exp_month": lawPayFields.exp_month
|
|
1110
|
+
"exp_month": lawPayFields.exp_month,
|
|
1111
|
+
"email": lawPayFields.email,
|
|
1112
|
+
"name": lawPayFields.name,
|
|
1113
|
+
"reference": `summit_${reservation.summit_id}_order_${reservation.id}`
|
|
1063
1114
|
});
|
|
1064
1115
|
payTicket(provider, {
|
|
1065
1116
|
token
|
|
@@ -1582,7 +1633,6 @@ function personal_information_defineProperty(obj, key, value) { if (key in obj)
|
|
|
1582
1633
|
|
|
1583
1634
|
|
|
1584
1635
|
|
|
1585
|
-
|
|
1586
1636
|
const PersonalInfoComponent = ({
|
|
1587
1637
|
isActive,
|
|
1588
1638
|
changeForm,
|
|
@@ -1751,9 +1801,10 @@ const PersonalInfoComponent = ({
|
|
|
1751
1801
|
onChange: onCompanyChange,
|
|
1752
1802
|
onError: handleCompanyError,
|
|
1753
1803
|
value: personalInfo.company
|
|
1754
|
-
}), companyError && /*#__PURE__*/external_react_default().createElement("
|
|
1804
|
+
}), companyError && /*#__PURE__*/external_react_default().createElement("div", {
|
|
1805
|
+
className: personal_information_index_module.fieldError,
|
|
1755
1806
|
"data-testid": "company-error"
|
|
1756
|
-
}, "This field is required"))), /*#__PURE__*/external_react_default().createElement("div", {
|
|
1807
|
+
}, "This field is required."))), /*#__PURE__*/external_react_default().createElement("div", {
|
|
1757
1808
|
className: personal_information_index_module.fieldWrapper
|
|
1758
1809
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
1759
1810
|
className: personal_information_index_module.inputWrapper
|
|
@@ -1771,7 +1822,7 @@ const PersonalInfoComponent = ({
|
|
|
1771
1822
|
id: "promo-code-info"
|
|
1772
1823
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
1773
1824
|
className: personal_information_index_module.moreInfoTooltip
|
|
1774
|
-
}, "
|
|
1825
|
+
}, "Promo code will be applied to all tickets in this order. If you wish to utilize more than one promo code, simply place another order after you complete this registration order. Only one promo code can be applied per order.")), formErrors.length > 0 && /*#__PURE__*/external_react_default().createElement("div", {
|
|
1775
1826
|
className: `${personal_information_index_module.formErrors} alert alert-danger`
|
|
1776
1827
|
}, formErrors.map((error, index) => /*#__PURE__*/external_react_default().createElement("div", {
|
|
1777
1828
|
key: index
|
|
@@ -2041,7 +2092,7 @@ const TicketTypeComponent = ({
|
|
|
2041
2092
|
id: "ticket-quantity-info"
|
|
2042
2093
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
2043
2094
|
className: ticket_type_index_module.moreInfoTooltip
|
|
2044
|
-
}, "
|
|
2095
|
+
}, "To purchase more than one ticket type, simply place another order after this registration order is complete. Only one ticket type can be chosen per order.")))), inPersonDisclaimer && ticket && isInPersonTicketType(ticket) && /*#__PURE__*/external_react_default().createElement("div", {
|
|
2045
2096
|
className: ticket_type_index_module.inPersonDisclaimer
|
|
2046
2097
|
}, /*#__PURE__*/external_react_default().createElement((raw_html_default()), null, inPersonDisclaimer)))));
|
|
2047
2098
|
};
|