summit-registration-lite 4.0.18 → 4.0.19
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.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2726,6 +2726,9 @@ const getCurrentUserLanguage = () => {
|
|
|
2726
2726
|
|
|
2727
2727
|
return language;
|
|
2728
2728
|
};
|
|
2729
|
+
const isEmptyString = val => {
|
|
2730
|
+
return typeof val === 'string' && val.trim().length > 0;
|
|
2731
|
+
};
|
|
2729
2732
|
;// CONCATENATED MODULE: ./src/utils/constants.js
|
|
2730
2733
|
/**
|
|
2731
2734
|
* Copyright 2022 OpenStack Foundation
|
|
@@ -2828,11 +2831,11 @@ const PurchaseComplete = _ref2 => {
|
|
|
2828
2831
|
time: (0,methods_namespaceObject.epochToMomentTimeZone)(summit.start_date, summit.time_zone_id).format('hh:mm A')
|
|
2829
2832
|
};
|
|
2830
2833
|
if (!checkout) return null;
|
|
2831
|
-
let orderCompleteButtonText = currentUserTicket && requireExtraQuestions ? rest.hasOwnProperty('initialOrderCompleteButton') &&
|
|
2832
|
-
let orderComplete1stParagraph = currentUserTicket ? rest.hasOwnProperty('initialOrderComplete1stParagraph') &&
|
|
2834
|
+
let orderCompleteButtonText = currentUserTicket && requireExtraQuestions ? rest.hasOwnProperty('initialOrderCompleteButton') && !isEmptyString(rest.initialOrderCompleteButton) ? rest.initialOrderCompleteButton : external_i18n_react_default().translate('purchase_complete_step.initial_order_complete_button') : rest.hasOwnProperty('orderCompleteButton') && !isEmptyString(rest.orderCompleteButton) ? rest.orderCompleteButton : external_i18n_react_default().translate('purchase_complete_step.order_complete_button');
|
|
2835
|
+
let orderComplete1stParagraph = currentUserTicket ? rest.hasOwnProperty('initialOrderComplete1stParagraph') && !isEmptyString(rest.initialOrderComplete1stParagraph) ? rest.initialOrderComplete1stParagraph : external_i18n_react_default().translate('purchase_complete_step.initial_order_complete_1st_paragraph_label', {
|
|
2833
2836
|
button: orderCompleteButtonText
|
|
2834
|
-
}) : rest.hasOwnProperty('orderComplete1stParagraph') &&
|
|
2835
|
-
let orderComplete2ndParagraph = currentUserTicket ? rest.hasOwnProperty('initialOrderComplete2ndParagraph') &&
|
|
2837
|
+
}) : rest.hasOwnProperty('orderComplete1stParagraph') && !isEmptyString(rest.orderComplete1stParagraph) ? rest.orderComplete1stParagraph : external_i18n_react_default().translate('purchase_complete_step.order_complete_1st_paragraph_label');
|
|
2838
|
+
let orderComplete2ndParagraph = currentUserTicket ? rest.hasOwnProperty('initialOrderComplete2ndParagraph') && !isEmptyString(rest.initialOrderComplete2ndParagraph) ? rest.initialOrderComplete2ndParagraph : external_i18n_react_default().translate('purchase_complete_step.initial_order_footer_label') : rest.hasOwnProperty('orderComplete2ndParagraph') && !isEmptyString(rest.orderComplete2ndParagraph) ? rest.orderComplete2ndParagraph : '';
|
|
2836
2839
|
let footerHasTicketText = `${orderComplete2ndParagraph} ${external_i18n_react_default().translate('purchase_complete_step.footer_assistance_text', {
|
|
2837
2840
|
supportEmail: `${supportEmail}`
|
|
2838
2841
|
})}`;
|