summit-registration-lite 2.0.14 → 2.0.15
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 +54 -7
- 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
|
|
|
@@ -1751,9 +1797,10 @@ const PersonalInfoComponent = ({
|
|
|
1751
1797
|
onChange: onCompanyChange,
|
|
1752
1798
|
onError: handleCompanyError,
|
|
1753
1799
|
value: personalInfo.company
|
|
1754
|
-
}), companyError && /*#__PURE__*/external_react_default().createElement("
|
|
1800
|
+
}), companyError && /*#__PURE__*/external_react_default().createElement("div", {
|
|
1801
|
+
className: personal_information_index_module.fieldError,
|
|
1755
1802
|
"data-testid": "company-error"
|
|
1756
|
-
}, "This field is required"))), /*#__PURE__*/external_react_default().createElement("div", {
|
|
1803
|
+
}, "This field is required."))), /*#__PURE__*/external_react_default().createElement("div", {
|
|
1757
1804
|
className: personal_information_index_module.fieldWrapper
|
|
1758
1805
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
1759
1806
|
className: personal_information_index_module.inputWrapper
|