summit-registration-lite 5.0.29 → 5.0.31-beta.0
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 +54 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
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{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_input_border_color);background-color:var(--color_input_background_color);height:36px;padding:5px 10px;justify-content:space-between;align-items:center}.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}
|
|
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_input_border_color);background-color:var(--color_input_background_color);height:36px;padding:5px 10px;justify-content:space-between;align-items:center}.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:-webkit-autofill,.form___DoT3x div.inputWrapper___CbXhF input :-webkit-autofill:focus{color:var(--color_input_text_color) !important;background-color:var(--color_input_background_color) !important;-webkit-box-shadow:0 0 0px 1000px var(--color_input_background_color) inset;-webkit-text-fill-color:var(--color_input_text_color)}.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
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
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
|
-
.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}
|
|
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}@media screen and (max-width: 540px){.promoCodeWrapper___aw3Zx span{width:100%}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET{width:100%}.promoCodeWrapper___aw3Zx .moreInfo___Ru3Rv{width:100%}}.moreInfoTooltip___eaYWm{max-width:280px}
|
|
20
20
|
|
|
21
21
|
.button___MZBIY{font-weight:bold !important;font-size:1em !important;cursor:pointer !important;border:1px solid var(--color_input_border_color) !important;color:var(--color_input_text_color) !important;background-color:var(--color_input_background_color) !important}.button___MZBIY[disabled]{background-color:var(--color_secondary_contrast) !important}.button___MZBIY:hover{color:var(--color_input_text_color) !important}.button___MZBIY:active,.button___MZBIY:focus{color:var(--color_input_text_color) !important}.outerWrapper___XRnaq{padding:10px 0px 10px 10px;margin:10px}.outerWrapper___XRnaq .innerWrapper___LFsOH{display:flex;justify-content:space-between;align-items:center}.outerWrapper___XRnaq .innerWrapper___LFsOH span{font-size:14px}.outerWrapper___XRnaq .innerWrapper___LFsOH .registration___jdf6T{cursor:pointer;color:var(--color_primary);text-decoration:underline}.outerWrapper___XRnaq .innerWrapper___LFsOH .actions___Gsf0y{display:flex}.outerWrapper___XRnaq .innerWrapper___LFsOH .actions___Gsf0y button{margin-left:10px}
|
|
22
22
|
|
package/dist/index.js
CHANGED
|
@@ -1113,6 +1113,19 @@ const validatePromoCode = (ticketData, {
|
|
|
1113
1113
|
promoCode: currentPromoCode
|
|
1114
1114
|
}
|
|
1115
1115
|
} = getState();
|
|
1116
|
+
const {
|
|
1117
|
+
promoCode: formPromoCode
|
|
1118
|
+
} = ticketData;
|
|
1119
|
+
|
|
1120
|
+
if (formPromoCode && !currentPromoCode) {
|
|
1121
|
+
const defaultMessage = `You entered a promo code but it hasn't been applied. Make sure to click the 'Apply' button or remove it before continuing.`;
|
|
1122
|
+
const notAppliedCodeError = {
|
|
1123
|
+
body: {
|
|
1124
|
+
errors: [defaultMessage]
|
|
1125
|
+
}
|
|
1126
|
+
};
|
|
1127
|
+
return onError(null, notAppliedCodeError);
|
|
1128
|
+
}
|
|
1116
1129
|
|
|
1117
1130
|
if (summitId && currentPromoCode) {
|
|
1118
1131
|
dispatch(startWidgetLoading());
|
|
@@ -2188,6 +2201,12 @@ const StripeForm = ({
|
|
|
2188
2201
|
backgroundColor: bgColor,
|
|
2189
2202
|
'::placeholder': {
|
|
2190
2203
|
color: hintColor
|
|
2204
|
+
},
|
|
2205
|
+
':-webkit-autofill': {
|
|
2206
|
+
color: textColor,
|
|
2207
|
+
backgroundColor: bgColor,
|
|
2208
|
+
"-webkit-text-fill-color": textColor,
|
|
2209
|
+
"-webkit-box-shadow:": `0 0 0px 1000px ${bgColor} inset`
|
|
2191
2210
|
}
|
|
2192
2211
|
},
|
|
2193
2212
|
invalid: {
|
|
@@ -2903,11 +2922,18 @@ const PromoCodeInput = ({
|
|
|
2903
2922
|
applyPromoCode,
|
|
2904
2923
|
promoCode,
|
|
2905
2924
|
removePromoCode,
|
|
2906
|
-
showMultipleTicketTexts
|
|
2925
|
+
showMultipleTicketTexts,
|
|
2926
|
+
onPromoCodeChange
|
|
2907
2927
|
}) => {
|
|
2908
2928
|
const [statePromoCode, setStatePromoCode] = (0,external_react_.useState)(promoCode);
|
|
2929
|
+
|
|
2930
|
+
const handlePromoCodeChange = value => {
|
|
2931
|
+
onPromoCodeChange(value);
|
|
2932
|
+
setStatePromoCode(value);
|
|
2933
|
+
};
|
|
2934
|
+
|
|
2909
2935
|
(0,external_react_.useEffect)(() => {
|
|
2910
|
-
if (isEmptyString(promoCode))
|
|
2936
|
+
if (isEmptyString(promoCode)) handlePromoCodeChange(promoCode);
|
|
2911
2937
|
}, [promoCode]);
|
|
2912
2938
|
return /*#__PURE__*/external_react_default().createElement((external_react_default()).Fragment, null, /*#__PURE__*/external_react_default().createElement("div", {
|
|
2913
2939
|
className: promocode_input_index_module.promoCodeWrapper
|
|
@@ -2917,7 +2943,7 @@ const PromoCodeInput = ({
|
|
|
2917
2943
|
className: `${promoCode ? promocode_input_index_module.promoCodeActive : ''}`,
|
|
2918
2944
|
type: "text",
|
|
2919
2945
|
value: statePromoCode,
|
|
2920
|
-
onChange: ev =>
|
|
2946
|
+
onChange: ev => handlePromoCodeChange(ev.target.value),
|
|
2921
2947
|
placeholder: "Enter your promo code",
|
|
2922
2948
|
onKeyDown: e => {
|
|
2923
2949
|
if (e.key === "Enter") applyPromoCode(statePromoCode);
|
|
@@ -3042,6 +3068,10 @@ const TicketTypeComponent = ({
|
|
|
3042
3068
|
});
|
|
3043
3069
|
setTicket(updatedCurrentTicket);
|
|
3044
3070
|
}
|
|
3071
|
+
|
|
3072
|
+
if (!promoCode) changeForm({
|
|
3073
|
+
promoCode: ''
|
|
3074
|
+
});
|
|
3045
3075
|
}, [promoCode, originalTicketTypes]);
|
|
3046
3076
|
const isPrePaidReservation = (0,external_react_.useMemo)(() => reservation ? isPrePaidOrder(reservation) : false, [reservation]);
|
|
3047
3077
|
|
|
@@ -3050,6 +3080,12 @@ const TicketTypeComponent = ({
|
|
|
3050
3080
|
setQuantity(minQuantity);
|
|
3051
3081
|
};
|
|
3052
3082
|
|
|
3083
|
+
const handlePromoCodeChange = code => {
|
|
3084
|
+
changeForm({
|
|
3085
|
+
promoCode: code
|
|
3086
|
+
});
|
|
3087
|
+
};
|
|
3088
|
+
|
|
3053
3089
|
const incrementQuantity = () => setQuantity(quantity + 1);
|
|
3054
3090
|
|
|
3055
3091
|
const decrementQuantity = () => setQuantity(quantity - 1);
|
|
@@ -3134,8 +3170,10 @@ const TicketTypeComponent = ({
|
|
|
3134
3170
|
promoCode: promoCode,
|
|
3135
3171
|
applyPromoCode: applyPromoCode,
|
|
3136
3172
|
showMultipleTicketTexts: showMultipleTicketTexts,
|
|
3137
|
-
removePromoCode: removePromoCode
|
|
3138
|
-
|
|
3173
|
+
removePromoCode: removePromoCode,
|
|
3174
|
+
onPromoCodeChange: handlePromoCodeChange
|
|
3175
|
+
}), promoCodeError && Object.values(promoCodeError).map((er, index) => /*#__PURE__*/external_react_default().createElement("div", {
|
|
3176
|
+
key: `error-${index}`,
|
|
3139
3177
|
className: `${ticket_type_index_module.promocodeError} alert alert-danger`
|
|
3140
3178
|
}, er))), showMultipleTicketTexts && /*#__PURE__*/external_react_default().createElement("a", {
|
|
3141
3179
|
className: ticket_type_index_module.moreInfo,
|
|
@@ -3192,7 +3230,8 @@ const ButtonBarComponent = ({
|
|
|
3192
3230
|
}) => {
|
|
3193
3231
|
const {
|
|
3194
3232
|
ticketType,
|
|
3195
|
-
ticketQuantity
|
|
3233
|
+
ticketQuantity,
|
|
3234
|
+
promoCode
|
|
3196
3235
|
} = formValues || {};
|
|
3197
3236
|
const nextButtonText = inPersonDisclaimer && ticketType && isInPersonTicketType(ticketType) ? 'Accept' : 'Next';
|
|
3198
3237
|
return /*#__PURE__*/external_react_default().createElement("div", {
|
|
@@ -3213,7 +3252,8 @@ const ButtonBarComponent = ({
|
|
|
3213
3252
|
disabled: !ticketType,
|
|
3214
3253
|
className: `${button_bar_index_module.button} button`,
|
|
3215
3254
|
onClick: () => validatePromoCode(button_bar_objectSpread(button_bar_objectSpread({}, ticketType), {}, {
|
|
3216
|
-
ticketQuantity
|
|
3255
|
+
ticketQuantity,
|
|
3256
|
+
promoCode
|
|
3217
3257
|
}), onValidateError)
|
|
3218
3258
|
}, nextButtonText), step === STEP_PERSONAL_INFO && ticketType?.cost === 0 && /*#__PURE__*/external_react_default().createElement("button", {
|
|
3219
3259
|
className: `${button_bar_index_module.button} button`,
|
|
@@ -3623,7 +3663,8 @@ const RegistrationLite = _ref => {
|
|
|
3623
3663
|
ticketType: null,
|
|
3624
3664
|
ticketQuantity: 1,
|
|
3625
3665
|
personalInformation: null,
|
|
3626
|
-
paymentInformation: null
|
|
3666
|
+
paymentInformation: null,
|
|
3667
|
+
promoCode: ''
|
|
3627
3668
|
},
|
|
3628
3669
|
errors: []
|
|
3629
3670
|
});
|
|
@@ -3646,6 +3687,9 @@ const RegistrationLite = _ref => {
|
|
|
3646
3687
|
publicKey,
|
|
3647
3688
|
provider
|
|
3648
3689
|
} = getCurrentProvider(summitData);
|
|
3690
|
+
const allowedTicketTypes = ticketTaxesLoaded ? ticketTypes.filter(tt => tt.sales_start_date === null && tt.sales_end_date === null || nowUtc >= tt.sales_start_date && nowUtc <= tt.sales_end_date) : [];
|
|
3691
|
+
const noAvailableTickets = (0,external_react_.useMemo)(() => profileData && ticketTaxesLoaded && !ticketTaxesError && allowedTicketTypes.length === 0 && step !== STEP_COMPLETE, [allowedTicketTypes]);
|
|
3692
|
+
const alreadyOwnedTickets = (0,external_react_.useMemo)(() => profileData && ticketTaxesLoaded && !ticketTaxesError && allowedTicketTypes.length > 0 && ownedTickets.length > 0, [ownedTickets, allowedTicketTypes]);
|
|
3649
3693
|
(0,external_react_.useEffect)(() => {
|
|
3650
3694
|
if (profileData) loadProfileData(profileData);
|
|
3651
3695
|
}, [profileData]); // just initial load ( once )
|
|
@@ -3732,7 +3776,6 @@ const RegistrationLite = _ref => {
|
|
|
3732
3776
|
|
|
3733
3777
|
|
|
3734
3778
|
if (ticketTypes.length === 0 && !requestedTicketTypes && profileData) return null;
|
|
3735
|
-
const allowedTicketTypes = ticketTaxesLoaded ? ticketTypes.filter(tt => tt.sales_start_date === null && tt.sales_end_date === null || nowUtc >= tt.sales_start_date && nowUtc <= tt.sales_end_date) : [];
|
|
3736
3779
|
return /*#__PURE__*/external_react_default().createElement("div", {
|
|
3737
3780
|
id: `${general_module.modal}`,
|
|
3738
3781
|
className: "modal is-active"
|
|
@@ -3761,7 +3804,7 @@ const RegistrationLite = _ref => {
|
|
|
3761
3804
|
})), profileData && ticketTaxesError && /*#__PURE__*/external_react_default().createElement(ticket_taxes_error, {
|
|
3762
3805
|
ticketTaxesErrorMessage: ticketTaxesErrorMessage,
|
|
3763
3806
|
retryTicketTaxes: () => handleGetTicketTypesAndTaxes(summitData?.id)
|
|
3764
|
-
}),
|
|
3807
|
+
}), noAvailableTickets && /*#__PURE__*/external_react_default().createElement(no_allowed_tickets, {
|
|
3765
3808
|
noAllowedTicketsMessage: noAllowedTicketsMessage
|
|
3766
3809
|
}), !ticketTaxesError && /*#__PURE__*/external_react_default().createElement("div", {
|
|
3767
3810
|
className: general_module.stepsWrapper
|
|
@@ -3786,7 +3829,7 @@ const RegistrationLite = _ref => {
|
|
|
3786
3829
|
idpLogoLight: idpLogoLight,
|
|
3787
3830
|
idpLogoDark: idpLogoDark,
|
|
3788
3831
|
idpLogoAlt: idpLogoAlt
|
|
3789
|
-
}), profileData && step !== STEP_COMPLETE && /*#__PURE__*/external_react_default().createElement((external_react_default()).Fragment, null,
|
|
3832
|
+
}), profileData && step !== STEP_COMPLETE && /*#__PURE__*/external_react_default().createElement((external_react_default()).Fragment, null, alreadyOwnedTickets && /*#__PURE__*/external_react_default().createElement(ticket_owned, {
|
|
3790
3833
|
ownedTickets: ownedTickets
|
|
3791
3834
|
}), /*#__PURE__*/external_react_default().createElement(ticket_type, {
|
|
3792
3835
|
allowedTicketTypes: allowedTicketTypes,
|