${this.countryBasedLegalNotice()} ${this.preTextTemplate()}
@@ -724,12 +941,14 @@ class NoticeChoice extends StableSelectorMixin(LitElement) {
PHONE_CC: 'PHONE_CC',
PHONE_UC: 'PHONE_UC',
PHONE_UU: 'PHONE_UU',
+ EMAIL_NOTICE_ONLY: 'EMAIL_NOTICE_ONLY',
+ PHONE_NOTICE_ONLY: 'PHONE_NOTICE_ONLY',
+ NC_HIDDEN_PHONE_NONE: 'NC_HIDDEN_PHONE_NONE',
};
if (Object.prototype.hasOwnProperty.call(pwsFieldsMap, field)) {
field = pwsFieldsMap[field];
}
-
const init = {
bubbles: true,
detail: {
diff --git a/packages/web-components/src/components/notice-choice/services.ts b/packages/web-components/src/components/notice-choice/services.ts
index 96a3a957b8a..c2514492983 100644
--- a/packages/web-components/src/components/notice-choice/services.ts
+++ b/packages/web-components/src/components/notice-choice/services.ts
@@ -5,11 +5,17 @@
* LICENSE file in the root directory of this source tree.
*/
-export function loadContent(locale: string, onSuccess: any, onError: any) {
+export function loadContent(
+ locale: string,
+ env: string,
+ onSuccess: any,
+ onError: any
+) {
const script = document.createElement('script');
+ const environment = env === 'prod' ? '1.www.s81c.com' : '1.wwwstage.s81c.com';
script.async = false;
script.charset = 'utf-8';
- script.src = `https://www.ibm.com/common/translations/notice/v23/${locale.toLocaleLowerCase()}/ncContent_v23.js`; // URL for the third-party library being loaded.
+ script.src = `https://${environment}/common/translations/notice/v23/${locale.toLocaleLowerCase()}/ncContent_v23.js`; // URL for the third-party library being loaded.
document.body.appendChild(script);
script.onload = () => {
try {
diff --git a/packages/web-components/src/components/notice-choice/utils.ts b/packages/web-components/src/components/notice-choice/utils.ts
index b29e554ee8c..ad7e65ac585 100644
--- a/packages/web-components/src/components/notice-choice/utils.ts
+++ b/packages/web-components/src/components/notice-choice/utils.ts
@@ -49,6 +49,9 @@ export function pwsValueMap(value) {
PHONE_CC: 'CC',
PHONE_UC: 'UC',
PHONE_UU: 'UU',
+ EMAIL_NOTICE_ONLY: 'NOTICE_ONLY',
+ PHONE_NOTICE_ONLY: 'NOTICE_ONLY',
+ NC_HIDDEN_PHONE_NONE: 'N',
}[value] || null
);
}