summit-registration-lite 5.0.28 → 5.0.29-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.css +2 -2
- package/dist/index.js +68 -79
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.css
CHANGED
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
.form___zXb7s{display:flex;flex-wrap:wrap;justify-content:space-between;margin:10px 0}.form___zXb7s div.fieldWrapper___G4Wqw{width:100%;margin-bottom:5px}.form___zXb7s div.fieldWrapper___G4Wqw:first-of-type div.inputWrapper___Yz5zB{width:100%}.form___zXb7s div.fieldWrapper___G4Wqw .fieldRow___NfZdJ{justify-content:space-between;display:flex}.form___zXb7s div.fieldWrapper___G4Wqw div.inputWrapper___Yz5zB{width:48%}.form___zXb7s div.fieldWrapper___G4Wqw div.inputWrapper___Yz5zB.addressField___vmAQh{width:100%}.form___zXb7s div.lawpayWrapper___hpUBf{height:36px}.form___zXb7s div.dateWrapper___XDfqs{display:flex;justify-content:space-between}.form___zXb7s div.dateWrapper___XDfqs>div{width:48%}.form___zXb7s div.dateWrapper___XDfqs>div .dropdown___l3_bk{width:100%}.form___zXb7s div.dateWrapper___XDfqs>div .dropdown___l3_bk>div{border:1px solid var(--color_primary);width:100%}.form___zXb7s div.inputWrapper___Yz5zB{display:flex;border-radius:5px;border:1px solid var(--color_primary);height:36px;padding:5px 10px;justify-content:space-between;align-items:center}.form___zXb7s div.inputWrapper___Yz5zB iframe{height:inherit;width:inherit}.form___zXb7s div.inputWrapper___Yz5zB input{width:100%;background-color:transparent;border:none;padding:0;font-size:16px;display:flex;justify-content:space-between;align-items:center}.form___zXb7s div.inputWrapper___Yz5zB input::placeholder{color:var(--color_text_input_hints);font-size:16px}.form___zXb7s div.inputWrapper___Yz5zB input:focus-visible{outline:none}.form___zXb7s div.inputWrapper___Yz5zB i{position:relative}.form___zXb7s div.inputWrapper___Yz5zB>div{width:100%}.form___zXb7s div.inputWrapper___Yz5zB>div:first-of-type{width:95%}.form___zXb7s div.fieldError___Igq3U{margin-top:5px;margin-bottom:5px;color:#e5424d;font-size:14px;line-height:1.5}.form___zXb7s div.fieldError___Igq3U::before{font-family:FontAwesome;content:'\f071';margin-right:5px}
|
|
10
10
|
|
|
11
|
-
.form___DoT3x{display:flex;flex-wrap:wrap;justify-content:space-between;margin:10px 0}.form___DoT3x div.fieldWrapper___wa1Ks{
|
|
11
|
+
.form___DoT3x{display:flex;flex-wrap:wrap;flex-direction:column;justify-content:space-between;margin:10px 0}.form___DoT3x div.fieldWrapper___wa1Ks{margin-top:15px}.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_input_border_color);background-color:var(--color_input_background_color);height:44.4px;padding:5px 10px;justify-content:space-between;align-items:center;box-shadow:0px 1px 1px rgba(0,0,0,0.03),0px 3px 6px rgba(0,0,0,0.02)}.form___DoT3x div.inputWrapper___CbXhF input{width:100%;color:var(--color_input_text_color);background-color:var(--color_input_background_color);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
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.fieldWrapperRadio___x18VG{width:100%;margin-bottom:10px}.form___lDFka div.fieldWrapperRadio___x18VG label{display:inline-block;margin-bottom:5px}.form___lDFka div.fieldWrapperRadio___x18VG>div>div{padding-left:0px !important}.form___lDFka div.inputWrapper___PEQFR{display:flex;border-radius:5px;border:1px solid var(--color_input_border_color);background-color:var(--color_input_background_color);height:36px;padding:5px 10px;justify-content:space-between;align-items:center}.form___lDFka div.inputWrapper___PEQFR input{width:100%;background-color:transparent;color:var(--color_input_text_color);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 .fieldWrapperRadio___x18VG>div{display:flex;flex-direction:row}.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}.promoCode___bqTCw{display:inline-flex}.promoCode___bqTCw abbr{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:10ch}.crossOut___QZ7dy{text-decoration:line-through}.discount___sEK_Q{color:red}.promocodeError___oxk4p{margin-top:10px;color:red}.promocodeError___oxk4p::before{font-family:FontAwesome;content:'\f071';margin-right:5px}.taxes___fe8oJ{display:inline-flex}.taxes___fe8oJ abbr{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:15ch}.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_input_border_color)}.quantity___SIEQZ input{padding:0 8px;width:48px !important}.quantity___SIEQZ input,.quantity___SIEQZ input:read-only{border:1px solid var(--color_input_border_color);color:var(--color_input_text_color);background-color:var(--color_input_background_color)}.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;padding-right:10px;max-height:150px;overflow-y:auto}
|
|
16
16
|
|
|
17
|
-
.placeholder___pcdCn{border-radius:5px;width:100%;border:1px solid var(--
|
|
17
|
+
.placeholder___pcdCn{border-radius:5px;width:100%;border:1px solid var(--color_input_border_color);background-color:var(--color_input_background_color);padding:5px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;height:36px}.placeholder___pcdCn i{padding:2px 5px;border-left:1px solid var(--color_primary)}.placeholder___pcdCn .selectedTicket___qkbpH{max-height:25px;word-wrap:break-word;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:400px}@media screen and (max-width: 630px){.placeholder___pcdCn .selectedTicket___qkbpH{max-width:300px}}@media screen and (max-width: 500px){.placeholder___pcdCn .selectedTicket___qkbpH{max-width:200px}}@media screen and (max-width: 400px){.placeholder___pcdCn .selectedTicket___qkbpH{max-width:100px}}.inPersonDisclaimer___z_DzO{padding:4px}.dropdown___mfbPG{margin-top:10px;border-radius:5px;width:100%;border:1px solid var(--color_input_border_color);color:var(--color_input_text_color);background-color:var(--color_input_background_color);cursor:pointer}.dropdown___mfbPG div{padding:5px}.dropdown___mfbPG div:hover{border-radius:5px;background-color:var(--color_primary50);color:var(--color_input_text_color)}.soldOut___rBLC0,.soldOut___rBLC0:hover,.soldOut___rBLC0:focus{color:inherit !important;background-color:#dedede !important;opacity:0.65;cursor:not-allowed}
|
|
18
18
|
|
|
19
19
|
.promoCodeWrapper___aw3Zx{padding-top:16px;display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:15px}.promoCodeWrapper___aw3Zx span{color:var(--color_text_dark);font-size:14px;font-weight:600;line-height:140%;width:30%}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET{display:flex;align-items:center;position:relative;flex:1;height:33px;width:50%;min-width:220px}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET input{display:inline-flex;padding:13px 8px;width:70%;height:100%;color:var(--color_input_text_color);background-color:var(--color_input_background_color);border:1.5px solid var(--color_input_border_color);border-radius:4px 0px 0px 4px}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET input.promoCodeActive___j7xnn{padding-right:25px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET .codeButtonWrapper___jVZh5{display:flex;align-items:center;width:30%;height:100%;background-color:#818181;border-radius:0px 4px 4px 0px}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET .codeButtonWrapper___jVZh5.noCode___YUmVy{background-color:#CFCFCF;cursor:not-allowed}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET .codeButtonWrapper___jVZh5 button{color:#fff;font-size:14px;font-style:normal;font-weight:600;line-height:120%;letter-spacing:-0.14px;width:100%;height:100%;border:none;background-color:transparent}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET .appliedCodeIcon___pa3B4{position:absolute;left:60%}.promoCodeWrapper___aw3Zx .moreInfo___Ru3Rv{display:inline-block}.promoCodeWrapper___aw3Zx .moreInfoTooltip___eaYWm{max-width:280px}@media screen and (max-width: 540px){.promoCodeWrapper___aw3Zx span{width:100%}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET{width:100%}.promoCodeWrapper___aw3Zx .moreInfo___Ru3Rv{width:100%}}
|
|
20
20
|
|
package/dist/index.js
CHANGED
|
@@ -768,7 +768,8 @@ class StripeProvider {
|
|
|
768
768
|
dispatch: _dispatch
|
|
769
769
|
}) {
|
|
770
770
|
stripe_provider_defineProperty(this, "payTicket", ({
|
|
771
|
-
|
|
771
|
+
elements = null,
|
|
772
|
+
paymentMethod = null,
|
|
772
773
|
stripe = null,
|
|
773
774
|
zipCode = null
|
|
774
775
|
}) => async dispatch => {
|
|
@@ -826,20 +827,19 @@ class StripeProvider {
|
|
|
826
827
|
} // regular flow
|
|
827
828
|
|
|
828
829
|
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
}
|
|
830
|
+
stripe.confirmPayment({
|
|
831
|
+
elements,
|
|
832
|
+
clientSecret: this.reservation.payment_gateway_client_token,
|
|
833
|
+
confirmParams: {
|
|
834
|
+
return_url: `${window.location.origin}/a/my-tickets/`,
|
|
835
|
+
payment_method: paymentMethod.id
|
|
836
|
+
},
|
|
837
|
+
redirect: "if_required"
|
|
838
838
|
}).then(result => {
|
|
839
839
|
if (result.error) {
|
|
840
840
|
// Reserve error.message in your UI.
|
|
841
|
-
external_sweetalert2_default().fire(result.error.message,
|
|
842
|
-
this.dispatch(changeStep(
|
|
841
|
+
external_sweetalert2_default().fire(result.error.message, "Please retry purchase.", "warning");
|
|
842
|
+
this.dispatch(changeStep(1));
|
|
843
843
|
this.dispatch(removeReservedTicket());
|
|
844
844
|
this.dispatch(stopWidgetLoading());
|
|
845
845
|
} else {
|
|
@@ -847,7 +847,7 @@ class StripeProvider {
|
|
|
847
847
|
)(params)(this.dispatch).then(payload => {
|
|
848
848
|
this.dispatch(stopWidgetLoading());
|
|
849
849
|
this.dispatch((0,actions_namespaceObject.createAction)(CLEAR_RESERVATION)({}));
|
|
850
|
-
this.dispatch(changeStep(
|
|
850
|
+
this.dispatch(changeStep(3));
|
|
851
851
|
return payload;
|
|
852
852
|
}).catch(e => {
|
|
853
853
|
this.dispatch(stopWidgetLoading());
|
|
@@ -856,7 +856,7 @@ class StripeProvider {
|
|
|
856
856
|
}
|
|
857
857
|
}).catch(e => {
|
|
858
858
|
this.dispatch(removeReservedTicket());
|
|
859
|
-
this.dispatch(changeStep(
|
|
859
|
+
this.dispatch(changeStep(1));
|
|
860
860
|
this.dispatch(stopWidgetLoading());
|
|
861
861
|
return e;
|
|
862
862
|
});
|
|
@@ -2201,45 +2201,61 @@ const StripeForm = ({
|
|
|
2201
2201
|
const onSubmit = async (data, ev) => {
|
|
2202
2202
|
setStripeErrors({});
|
|
2203
2203
|
|
|
2204
|
-
if (!stripe) {
|
|
2204
|
+
if (!stripe || !elements) {
|
|
2205
2205
|
// Stripe.js has not loaded yet. Make sure to disable
|
|
2206
2206
|
// form submission until Stripe.js has loaded.
|
|
2207
2207
|
return;
|
|
2208
2208
|
}
|
|
2209
2209
|
|
|
2210
2210
|
const btn = document.getElementById('payment-form-btn');
|
|
2211
|
-
if (btn) btn.disabled = true;
|
|
2212
|
-
const cardElement = elements.getElement(react_stripe_js_namespaceObject.CardNumberElement); // @see https://stripe.com/docs/js/tokens_sources/create_token?type=cardElement
|
|
2211
|
+
if (btn) btn.disabled = true; // Trigger form validation and wallet collection
|
|
2213
2212
|
|
|
2214
2213
|
const {
|
|
2215
|
-
error
|
|
2216
|
-
|
|
2217
|
-
} = await stripe.createToken(cardElement, {
|
|
2218
|
-
name: `${reservation.owner_first_name} ${reservation.owner_last_name}`,
|
|
2219
|
-
address_line1: userProfile.address1 || '',
|
|
2220
|
-
address_line2: userProfile.address2 || '',
|
|
2221
|
-
address_city: userProfile.locality || '',
|
|
2222
|
-
address_state: userProfile.region || '',
|
|
2223
|
-
address_zip: data.zipCode,
|
|
2224
|
-
address_country: userProfile.country || '',
|
|
2225
|
-
email: userProfile.email
|
|
2226
|
-
});
|
|
2214
|
+
error: submitError
|
|
2215
|
+
} = await elements.submit();
|
|
2227
2216
|
|
|
2228
|
-
if (
|
|
2229
|
-
cardElement.update({
|
|
2230
|
-
disabled: true
|
|
2231
|
-
});
|
|
2232
|
-
payTicket(provider, {
|
|
2233
|
-
token,
|
|
2234
|
-
stripe,
|
|
2235
|
-
zipCode: data.zipCode
|
|
2236
|
-
});
|
|
2217
|
+
if (submitError) {
|
|
2237
2218
|
return;
|
|
2238
2219
|
}
|
|
2239
2220
|
|
|
2240
|
-
|
|
2241
|
-
|
|
2221
|
+
try {
|
|
2222
|
+
// Create a payment method using PaymentElement
|
|
2223
|
+
const {
|
|
2224
|
+
paymentMethod,
|
|
2225
|
+
error
|
|
2226
|
+
} = await stripe.createPaymentMethod({
|
|
2227
|
+
elements
|
|
2228
|
+
});
|
|
2229
|
+
|
|
2230
|
+
if (error) {
|
|
2231
|
+
if (stripeErrorCodeMap[error.code]) {
|
|
2232
|
+
setStripeErrors({
|
|
2233
|
+
[stripeErrorCodeMap[error.code].field]: stripeErrorCodeMap[error.code].message || error.message
|
|
2234
|
+
});
|
|
2235
|
+
}
|
|
2242
2236
|
|
|
2237
|
+
if (btn) btn.disabled = false;
|
|
2238
|
+
} else {
|
|
2239
|
+
// Send the paymentMethod ID to your server
|
|
2240
|
+
if (paymentMethod) {
|
|
2241
|
+
payTicket(provider, {
|
|
2242
|
+
elements,
|
|
2243
|
+
paymentMethod,
|
|
2244
|
+
stripe,
|
|
2245
|
+
zipCode: data.zipCode
|
|
2246
|
+
});
|
|
2247
|
+
} else if (error) {
|
|
2248
|
+
if (stripeErrorCodeMap[error.code]) {
|
|
2249
|
+
setStripeErrors({
|
|
2250
|
+
[stripeErrorCodeMap[error.code].field]: stripeErrorCodeMap[error.code].message || error.message
|
|
2251
|
+
});
|
|
2252
|
+
} else {
|
|
2253
|
+
external_sweetalert2_default().fire("Payment error", error.message, "warning");
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
} catch (error) {
|
|
2258
|
+
// setPaymentError('Error processing payment');
|
|
2243
2259
|
if (stripeErrorCodeMap[error.code]) {
|
|
2244
2260
|
setStripeErrors({
|
|
2245
2261
|
[stripeErrorCodeMap[error.code].field]: stripeErrorCodeMap[error.code].message || error.message
|
|
@@ -2255,42 +2271,11 @@ const StripeForm = ({
|
|
|
2255
2271
|
className: stripe_form_index_module.form,
|
|
2256
2272
|
id: "payment-form",
|
|
2257
2273
|
onSubmit: handleSubmit(onSubmit)
|
|
2258
|
-
}, /*#__PURE__*/external_react_default().createElement(
|
|
2259
|
-
className: stripe_form_index_module.fieldWrapper
|
|
2260
|
-
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
2261
|
-
className: stripe_form_index_module.inputWrapper
|
|
2262
|
-
}, /*#__PURE__*/external_react_default().createElement(react_stripe_js_namespaceObject.CardNumberElement, {
|
|
2263
|
-
options: {
|
|
2264
|
-
style: stripeStyle,
|
|
2265
|
-
placeholder: '1234 1234 1234 1234 *'
|
|
2266
|
-
}
|
|
2267
|
-
}), /*#__PURE__*/external_react_default().createElement("i", {
|
|
2268
|
-
className: "fa fa-credit-card"
|
|
2269
|
-
})), stripeErrors.cardNumber && /*#__PURE__*/external_react_default().createElement("div", {
|
|
2270
|
-
className: stripe_form_index_module.fieldError
|
|
2271
|
-
}, stripeErrors.cardNumber)), /*#__PURE__*/external_react_default().createElement("div", {
|
|
2272
|
-
className: stripe_form_index_module.fieldWrapper
|
|
2273
|
-
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
2274
|
-
className: stripe_form_index_module.inputWrapper
|
|
2275
|
-
}, /*#__PURE__*/external_react_default().createElement(react_stripe_js_namespaceObject.CardExpiryElement, {
|
|
2274
|
+
}, /*#__PURE__*/external_react_default().createElement(react_stripe_js_namespaceObject.PaymentElement, {
|
|
2276
2275
|
options: {
|
|
2277
|
-
style: stripeStyle
|
|
2278
|
-
placeholder: 'MM / YY *'
|
|
2276
|
+
style: stripeStyle
|
|
2279
2277
|
}
|
|
2280
|
-
})
|
|
2281
|
-
className: stripe_form_index_module.fieldError
|
|
2282
|
-
}, stripeErrors.cardExpiry)), /*#__PURE__*/external_react_default().createElement("div", {
|
|
2283
|
-
className: stripe_form_index_module.fieldWrapper
|
|
2284
|
-
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
2285
|
-
className: stripe_form_index_module.inputWrapper
|
|
2286
|
-
}, /*#__PURE__*/external_react_default().createElement(react_stripe_js_namespaceObject.CardCvcElement, {
|
|
2287
|
-
options: {
|
|
2288
|
-
style: stripeStyle,
|
|
2289
|
-
placeholder: 'CVC *'
|
|
2290
|
-
}
|
|
2291
|
-
})), stripeErrors.cardCvc && /*#__PURE__*/external_react_default().createElement("div", {
|
|
2292
|
-
className: stripe_form_index_module.fieldError
|
|
2293
|
-
}, stripeErrors.cardCvc)), /*#__PURE__*/external_react_default().createElement("div", {
|
|
2278
|
+
}), /*#__PURE__*/external_react_default().createElement("div", {
|
|
2294
2279
|
className: stripe_form_index_module.fieldWrapper
|
|
2295
2280
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
2296
2281
|
className: stripe_form_index_module.inputWrapper
|
|
@@ -2334,18 +2319,22 @@ const stripe_component_StripeProvider = ({
|
|
|
2334
2319
|
}) => {
|
|
2335
2320
|
const stripePromise = (0,external_react_.useMemo)(() => (0,stripe_js_namespaceObject.loadStripe)(providerKey), [providerKey]);
|
|
2336
2321
|
const options = {
|
|
2337
|
-
fonts: stripeOptions?.fonts
|
|
2322
|
+
fonts: stripeOptions?.fonts,
|
|
2323
|
+
mode: 'payment',
|
|
2324
|
+
paymentMethodCreation: 'manual',
|
|
2325
|
+
currency: reservation?.currency.toLowerCase(),
|
|
2326
|
+
amount: reservation?.amount_in_cents
|
|
2338
2327
|
};
|
|
2339
|
-
return /*#__PURE__*/external_react_default().createElement(react_stripe_js_namespaceObject.Elements, {
|
|
2340
|
-
|
|
2341
|
-
|
|
2328
|
+
return reservation ? /*#__PURE__*/external_react_default().createElement(react_stripe_js_namespaceObject.Elements, {
|
|
2329
|
+
stripe: stripePromise,
|
|
2330
|
+
options: options
|
|
2342
2331
|
}, /*#__PURE__*/external_react_default().createElement(stripe_form, {
|
|
2343
2332
|
reservation: reservation,
|
|
2344
2333
|
payTicket: payTicket,
|
|
2345
2334
|
userProfile: userProfile,
|
|
2346
2335
|
stripeOptions: stripeOptions,
|
|
2347
2336
|
provider: provider
|
|
2348
|
-
}));
|
|
2337
|
+
})) : /*#__PURE__*/external_react_default().createElement("div", null, "Loading...");
|
|
2349
2338
|
};
|
|
2350
2339
|
|
|
2351
2340
|
/* harmony default export */ const stripe_component = (stripe_component_StripeProvider);
|