@carbon/ibmdotcom-web-components 1.37.0-rc.2 → 1.37.0-rc.3
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/custom-elements.json +141 -115
- package/dist/{20-d59d1252.js → 20-2de9f146.js} +8 -1
- package/dist/{20-0dd18a2a.js → 20-3aa01aab.js} +8 -1
- package/dist/{20-b13a7263.js → 20-654642bf.js} +8 -1
- package/dist/{20-db62d123.js → 20-e1b84375.js} +8 -1
- package/dist/cloud-masthead.js +55 -24
- package/dist/cloud-masthead.min.js +10 -3
- package/dist/cloud-masthead.rtl.js +55 -24
- package/dist/cloud-masthead.rtl.min.js +10 -3
- package/dist/dotcom-shell.js +9 -2
- package/dist/dotcom-shell.min.js +8 -1
- package/dist/dotcom-shell.rtl.js +9 -2
- package/dist/dotcom-shell.rtl.min.js +8 -1
- package/dist/ibmdotcom-web-components-dotcom-shell.js +252 -170
- package/dist/ibmdotcom-web-components-dotcom-shell.min.js +27 -12
- package/dist/ibmdotcom-web-components-dotcom-shell.rtl.js +252 -170
- package/dist/ibmdotcom-web-components-dotcom-shell.rtl.min.js +27 -12
- package/dist/{left-nav-menu-e3475c54.js → left-nav-menu-0c606dc0.js} +8 -1
- package/dist/{left-nav-menu-9c991783.js → left-nav-menu-90492b23.js} +8 -1
- package/dist/{left-nav-menu-category-heading-f30c16b2.js → left-nav-menu-category-heading-3965c098.js} +8 -1
- package/dist/{left-nav-menu-category-heading-c408c797.js → left-nav-menu-category-heading-a1595fbe.js} +8 -1
- package/dist/{left-nav-menu-category-heading-c11a1c5a.js → left-nav-menu-category-heading-d4fb11a9.js} +8 -1
- package/dist/{left-nav-menu-category-heading-ea722d76.js → left-nav-menu-category-heading-decd4d83.js} +8 -1
- package/dist/{left-nav-menu-4d9029d3.js → left-nav-menu-ebbabdeb.js} +8 -1
- package/dist/{left-nav-menu-f949a3fc.js → left-nav-menu-fb76056e.js} +9 -2
- package/dist/left-nav-menu-item-0c324d91.js +78 -0
- package/dist/left-nav-menu-item-28c4baae.js +78 -0
- package/dist/{left-nav-menu-item-0c593619.js → left-nav-menu-item-b9ed3af7.js} +17 -1
- package/dist/{left-nav-menu-item-7a695a3a.js → left-nav-menu-item-d51991fb.js} +17 -1
- package/dist/{left-nav-menu-section-2b27f90c.js → left-nav-menu-section-104b952b.js} +9 -2
- package/dist/{left-nav-menu-section-9580fed9.js → left-nav-menu-section-35756914.js} +9 -2
- package/dist/{left-nav-menu-section-70361e96.js → left-nav-menu-section-7f96cd92.js} +8 -1
- package/dist/{left-nav-menu-section-723dabdb.js → left-nav-menu-section-ca7e49e9.js} +8 -1
- package/dist/{left-nav-overlay-23420664.js → left-nav-overlay-789e2c5b.js} +8 -1
- package/dist/{left-nav-overlay-4369f445.js → left-nav-overlay-84b5801a.js} +8 -1
- package/dist/{left-nav-overlay-213a2b93.js → left-nav-overlay-85a8a0da.js} +8 -1
- package/dist/{left-nav-overlay-39841e5b.js → left-nav-overlay-c549e901.js} +8 -1
- package/dist/{masthead-composite-306b9aa2.js → masthead-composite-0c8215ba.js} +25 -18
- package/dist/{masthead-composite-7be5e44a.js → masthead-composite-6e631d9f.js} +14 -7
- package/dist/{masthead-composite-549e469b.js → masthead-composite-728fb184.js} +335 -320
- package/dist/{masthead-composite-dfe1f02c.js → masthead-composite-e2535116.js} +335 -320
- package/dist/{megamenu-category-group-04d4c7b5.js → megamenu-category-group-18797750.js} +8 -1
- package/dist/{megamenu-category-group-72763c53.js → megamenu-category-group-6e7f9786.js} +8 -1
- package/dist/{megamenu-category-group-d91eb27d.js → megamenu-category-group-8a288ad7.js} +8 -1
- package/dist/{megamenu-category-group-ec20f1c0.js → megamenu-category-group-9778e30d.js} +8 -1
- package/dist/{megamenu-category-group-copy-b2e1f3b8.js → megamenu-category-group-copy-37aede70.js} +8 -1
- package/dist/{megamenu-category-group-copy-1734a927.js → megamenu-category-group-copy-70515553.js} +8 -1
- package/dist/{megamenu-category-group-copy-b388d655.js → megamenu-category-group-copy-7cc21eda.js} +8 -1
- package/dist/{megamenu-category-group-copy-f1dc57da.js → megamenu-category-group-copy-850e36c3.js} +8 -1
- package/dist/{megamenu-category-link-baa8ed55.js → megamenu-category-link-2161aebd.js} +8 -1
- package/dist/{megamenu-category-link-f7b52727.js → megamenu-category-link-46980387.js} +8 -1
- package/dist/{megamenu-category-link-43f181fe.js → megamenu-category-link-6eb6cb7d.js} +8 -1
- package/dist/{megamenu-category-link-7cdcb4db.js → megamenu-category-link-cb061552.js} +8 -1
- package/dist/{megamenu-left-navigation-024c2f3d.js → megamenu-left-navigation-21c9dd45.js} +8 -1
- package/dist/{megamenu-left-navigation-02cf4776.js → megamenu-left-navigation-7decd28c.js} +8 -1
- package/dist/{megamenu-left-navigation-c5935038.js → megamenu-left-navigation-86f2cf88.js} +8 -1
- package/dist/{megamenu-left-navigation-47ca8cc9.js → megamenu-left-navigation-d3e95498.js} +8 -1
- package/dist/{megamenu-overlay-02fda241.js → megamenu-overlay-01a8f76f.js} +8 -1
- package/dist/{megamenu-overlay-915d9eae.js → megamenu-overlay-1de034cf.js} +8 -1
- package/dist/{megamenu-overlay-2065230d.js → megamenu-overlay-96dbeb3f.js} +8 -1
- package/dist/{megamenu-overlay-f9f8e94a.js → megamenu-overlay-caa12c62.js} +8 -1
- package/es/component-mixins/callout/callout.js +1 -2
- package/es/component-mixins/callout/callout.js.map +1 -1
- package/es/component-mixins/cta/cta.js +4 -8
- package/es/component-mixins/cta/cta.js.map +1 -1
- package/es/component-mixins/cta/video.js +2 -4
- package/es/component-mixins/cta/video.js.map +1 -1
- package/es/component-mixins/media-query/media-query.js +1 -4
- package/es/component-mixins/media-query/media-query.js.map +1 -1
- package/es/component-mixins/parent-visibility/parent-visibility.js +3 -4
- package/es/component-mixins/parent-visibility/parent-visibility.js.map +1 -1
- package/es/components/back-to-top/__stories__/data/content.js +2 -4
- package/es/components/back-to-top/__stories__/data/content.js.map +1 -1
- package/es/components/back-to-top/back-to-top.js +1 -2
- package/es/components/back-to-top/back-to-top.js.map +1 -1
- package/es/components/background-media/background-media.js +4 -5
- package/es/components/background-media/background-media.js.map +1 -1
- package/es/components/background-media/defs.js +0 -2
- package/es/components/background-media/defs.js.map +1 -1
- package/es/components/button/button.js +1 -2
- package/es/components/button/button.js.map +1 -1
- package/es/components/button/defs.js +0 -3
- package/es/components/button/defs.js.map +1 -1
- package/es/components/button-group/button-group-item.js +1 -2
- package/es/components/button-group/button-group-item.js.map +1 -1
- package/es/components/button-group/button-group.js +1 -2
- package/es/components/button-group/button-group.js.map +1 -1
- package/es/components/callout-quote/callout-link-with-icon.js +1 -2
- package/es/components/callout-quote/callout-link-with-icon.js.map +1 -1
- package/es/components/callout-quote/callout-quote.js +1 -2
- package/es/components/callout-quote/callout-quote.js.map +1 -1
- package/es/components/callout-with-media/callout-with-media-copy.js +1 -2
- package/es/components/callout-with-media/callout-with-media-copy.js.map +1 -1
- package/es/components/callout-with-media/callout-with-media-image.js +1 -2
- package/es/components/callout-with-media/callout-with-media-image.js.map +1 -1
- package/es/components/callout-with-media/callout-with-media-video.js +1 -2
- package/es/components/callout-with-media/callout-with-media-video.js.map +1 -1
- package/es/components/callout-with-media/callout-with-media.js +1 -2
- package/es/components/callout-with-media/callout-with-media.js.map +1 -1
- package/es/components/card/card-eyebrow.js +1 -2
- package/es/components/card/card-eyebrow.js.map +1 -1
- package/es/components/card/card-footer.js +7 -8
- package/es/components/card/card-footer.js.map +1 -1
- package/es/components/card/card-heading.js +1 -2
- package/es/components/card/card-heading.js.map +1 -1
- package/es/components/card/card.js +2 -3
- package/es/components/card/card.js.map +1 -1
- package/es/components/card/defs.js +1 -3
- package/es/components/card/defs.js.map +1 -1
- package/es/components/card/image-logo.js +1 -2
- package/es/components/card/image-logo.js.map +1 -1
- package/es/components/card-group/card-group-card-link-item.js +1 -2
- package/es/components/card-group/card-group-card-link-item.js.map +1 -1
- package/es/components/card-group/card-group-item.js +1 -2
- package/es/components/card-group/card-group-item.js.map +1 -1
- package/es/components/card-group/card-group.js +3 -4
- package/es/components/card-group/card-group.js.map +1 -1
- package/es/components/card-group/defs.js +0 -1
- package/es/components/card-group/defs.js.map +1 -1
- package/es/components/card-in-card/card-in-card-image.js +1 -2
- package/es/components/card-in-card/card-in-card-image.js.map +1 -1
- package/es/components/card-in-card/card-in-card.js +6 -9
- package/es/components/card-in-card/card-in-card.js.map +1 -1
- package/es/components/card-link/card-link-heading.js +1 -2
- package/es/components/card-link/card-link-heading.js.map +1 -1
- package/es/components/card-link/card-link.js +1 -2
- package/es/components/card-link/card-link.js.map +1 -1
- package/es/components/card-section-carousel/card-section-carousel.js +1 -2
- package/es/components/card-section-carousel/card-section-carousel.js.map +1 -1
- package/es/components/card-section-images/card-section-images.js +1 -2
- package/es/components/card-section-images/card-section-images.js.map +1 -1
- package/es/components/card-section-offset/card-section-offset.js +1 -2
- package/es/components/card-section-offset/card-section-offset.js.map +1 -1
- package/es/components/card-section-simple/card-section-simple.js +1 -2
- package/es/components/card-section-simple/card-section-simple.js.map +1 -1
- package/es/components/carousel/carousel.js +6 -7
- package/es/components/carousel/carousel.js.map +1 -1
- package/es/components/content-block/content-block-complementary.js +1 -2
- package/es/components/content-block/content-block-complementary.js.map +1 -1
- package/es/components/content-block/content-block-copy.js +1 -2
- package/es/components/content-block/content-block-copy.js.map +1 -1
- package/es/components/content-block/content-block-heading.js +1 -2
- package/es/components/content-block/content-block-heading.js.map +1 -1
- package/es/components/content-block/content-block-paragraph.js +1 -2
- package/es/components/content-block/content-block-paragraph.js.map +1 -1
- package/es/components/content-block/content-block.js +1 -2
- package/es/components/content-block/content-block.js.map +1 -1
- package/es/components/content-block/defs.js +0 -2
- package/es/components/content-block/defs.js.map +1 -1
- package/es/components/content-block-card-static/content-block-card-static.js +2 -3
- package/es/components/content-block-card-static/content-block-card-static.js.map +1 -1
- package/es/components/content-block-cards/content-block-cards.js +1 -2
- package/es/components/content-block-cards/content-block-cards.js.map +1 -1
- package/es/components/content-block-headlines/content-block-headlines-heading.js +1 -2
- package/es/components/content-block-headlines/content-block-headlines-heading.js.map +1 -1
- package/es/components/content-block-headlines/content-block-headlines-item.js +1 -2
- package/es/components/content-block-headlines/content-block-headlines-item.js.map +1 -1
- package/es/components/content-block-headlines/content-block-headlines.js +1 -2
- package/es/components/content-block-headlines/content-block-headlines.js.map +1 -1
- package/es/components/content-block-horizontal/content-block-horizontal.js +1 -2
- package/es/components/content-block-horizontal/content-block-horizontal.js.map +1 -1
- package/es/components/content-block-media/content-block-media-content.js +1 -2
- package/es/components/content-block-media/content-block-media-content.js.map +1 -1
- package/es/components/content-block-media/content-block-media.js +1 -2
- package/es/components/content-block-media/content-block-media.js.map +1 -1
- package/es/components/content-block-mixed/content-block-mixed.js +1 -2
- package/es/components/content-block-mixed/content-block-mixed.js.map +1 -1
- package/es/components/content-block-segmented/content-block-segmented-item.js +1 -2
- package/es/components/content-block-segmented/content-block-segmented-item.js.map +1 -1
- package/es/components/content-block-segmented/content-block-segmented.js +3 -4
- package/es/components/content-block-segmented/content-block-segmented.js.map +1 -1
- package/es/components/content-block-simple/content-block-simple.css.js +1 -1
- package/es/components/content-block-simple/content-block-simple.js +1 -2
- package/es/components/content-block-simple/content-block-simple.js.map +1 -1
- package/es/components/content-block-simple/content-block-simple.rtl.css.js +1 -1
- package/es/components/content-group/content-group-copy.js +1 -2
- package/es/components/content-group/content-group-copy.js.map +1 -1
- package/es/components/content-group/content-group-heading.js +1 -2
- package/es/components/content-group/content-group-heading.js.map +1 -1
- package/es/components/content-group/content-group-paragraph.js +1 -2
- package/es/components/content-group/content-group-paragraph.js.map +1 -1
- package/es/components/content-group/content-group.js +1 -2
- package/es/components/content-group/content-group.js.map +1 -1
- package/es/components/content-group-banner/content-group-banner.js +1 -2
- package/es/components/content-group-banner/content-group-banner.js.map +1 -1
- package/es/components/content-group-cards/content-group-cards-item.js +1 -2
- package/es/components/content-group-cards/content-group-cards-item.js.map +1 -1
- package/es/components/content-group-cards/content-group-cards.js +1 -2
- package/es/components/content-group-cards/content-group-cards.js.map +1 -1
- package/es/components/content-group-horizontal/content-group-horizontal.js +1 -2
- package/es/components/content-group-horizontal/content-group-horizontal.js.map +1 -1
- package/es/components/content-group-pictograms/content-group-pictograms.js +1 -2
- package/es/components/content-group-pictograms/content-group-pictograms.js.map +1 -1
- package/es/components/content-group-simple/content-group-simple.js +1 -2
- package/es/components/content-group-simple/content-group-simple.js.map +1 -1
- package/es/components/content-group-simple/defs.js +0 -1
- package/es/components/content-group-simple/defs.js.map +1 -1
- package/es/components/content-item/content-item-copy.js +1 -2
- package/es/components/content-item/content-item-copy.js.map +1 -1
- package/es/components/content-item/content-item-heading.js +1 -2
- package/es/components/content-item/content-item-heading.js.map +1 -1
- package/es/components/content-item/content-item-paragraph.js +1 -2
- package/es/components/content-item/content-item-paragraph.js.map +1 -1
- package/es/components/content-item/content-item.js +1 -2
- package/es/components/content-item/content-item.js.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-copy.js +1 -2
- package/es/components/content-item-horizontal/content-item-horizontal-copy.js.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-eyebrow.js +1 -2
- package/es/components/content-item-horizontal/content-item-horizontal-eyebrow.js.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-media-copy.js +1 -2
- package/es/components/content-item-horizontal/content-item-horizontal-media-copy.js.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-media-featured.js +1 -2
- package/es/components/content-item-horizontal/content-item-horizontal-media-featured.js.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-media-video.js +1 -2
- package/es/components/content-item-horizontal/content-item-horizontal-media-video.js.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-media.js +1 -2
- package/es/components/content-item-horizontal/content-item-horizontal-media.js.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-thumbnail-copy.js +1 -2
- package/es/components/content-item-horizontal/content-item-horizontal-thumbnail-copy.js.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal.js +1 -2
- package/es/components/content-item-horizontal/content-item-horizontal.js.map +1 -1
- package/es/components/content-item-horizontal/defs.js +0 -2
- package/es/components/content-item-horizontal/defs.js.map +1 -1
- package/es/components/content-section/content-section-copy.js +2 -3
- package/es/components/content-section/content-section-copy.js.map +1 -1
- package/es/components/content-section/content-section-heading.js +1 -2
- package/es/components/content-section/content-section-heading.js.map +1 -1
- package/es/components/content-section/content-section.js +1 -2
- package/es/components/content-section/content-section.js.map +1 -1
- package/es/components/cta/button-cta.js +1 -2
- package/es/components/cta/button-cta.js.map +1 -1
- package/es/components/cta/card-cta-footer.js +1 -2
- package/es/components/cta/card-cta-footer.js.map +1 -1
- package/es/components/cta/card-cta-image.js +1 -2
- package/es/components/cta/card-cta-image.js.map +1 -1
- package/es/components/cta/card-cta.js +1 -2
- package/es/components/cta/card-cta.js.map +1 -1
- package/es/components/cta/card-link-cta.js +1 -2
- package/es/components/cta/card-link-cta.js.map +1 -1
- package/es/components/cta/cta.js +5 -6
- package/es/components/cta/cta.js.map +1 -1
- package/es/components/cta/defs.js +0 -2
- package/es/components/cta/defs.js.map +1 -1
- package/es/components/cta/feature-cta-footer.js +1 -2
- package/es/components/cta/feature-cta-footer.js.map +1 -1
- package/es/components/cta/feature-cta.js +1 -2
- package/es/components/cta/feature-cta.js.map +1 -1
- package/es/components/cta/link-list-item-card-cta.js +1 -2
- package/es/components/cta/link-list-item-card-cta.js.map +1 -1
- package/es/components/cta/link-list-item-cta.js +1 -2
- package/es/components/cta/link-list-item-cta.js.map +1 -1
- package/es/components/cta/text-cta.js +1 -2
- package/es/components/cta/text-cta.js.map +1 -1
- package/es/components/cta/video-cta-composite.d.ts +1 -0
- package/es/components/cta/video-cta-composite.d.ts.map +1 -1
- package/es/components/cta/video-cta-composite.js +2 -3
- package/es/components/cta/video-cta-composite.js.map +1 -1
- package/es/components/cta/video-cta-container.js +1 -2
- package/es/components/cta/video-cta-container.js.map +1 -1
- package/es/components/cta-block/cta-block-item-row.js +1 -2
- package/es/components/cta-block/cta-block-item-row.js.map +1 -1
- package/es/components/cta-block/cta-block-item.js +1 -2
- package/es/components/cta-block/cta-block-item.js.map +1 -1
- package/es/components/cta-block/cta-block.js +2 -3
- package/es/components/cta-block/cta-block.js.map +1 -1
- package/es/components/cta-section/cta-section.js +1 -2
- package/es/components/cta-section/cta-section.js.map +1 -1
- package/es/components/dotcom-shell/__stories__/data/content.js +12 -24
- package/es/components/dotcom-shell/__stories__/data/content.js.map +1 -1
- package/es/components/dotcom-shell/dotcom-shell-composite.d.ts +0 -4
- package/es/components/dotcom-shell/dotcom-shell-composite.d.ts.map +1 -1
- package/es/components/dotcom-shell/dotcom-shell-composite.js +5 -21
- package/es/components/dotcom-shell/dotcom-shell-composite.js.map +1 -1
- package/es/components/dotcom-shell/dotcom-shell-container.js +17 -18
- package/es/components/dotcom-shell/dotcom-shell-container.js.map +1 -1
- package/es/components/dotcom-shell/dotcom-shell.js +1 -2
- package/es/components/dotcom-shell/dotcom-shell.js.map +1 -1
- package/es/components/expressive-modal/defs.js +0 -2
- package/es/components/expressive-modal/defs.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal-body.js +1 -2
- package/es/components/expressive-modal/expressive-modal-body.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal-close-button.js +1 -2
- package/es/components/expressive-modal/expressive-modal-close-button.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal-footer.js +1 -2
- package/es/components/expressive-modal/expressive-modal-footer.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal-header.js +1 -2
- package/es/components/expressive-modal/expressive-modal-header.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal-heading.js +1 -2
- package/es/components/expressive-modal/expressive-modal-heading.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal.d.ts.map +1 -1
- package/es/components/expressive-modal/expressive-modal.js +7 -8
- package/es/components/expressive-modal/expressive-modal.js.map +1 -1
- package/es/components/feature-card/feature-card-footer.js +1 -2
- package/es/components/feature-card/feature-card-footer.js.map +1 -1
- package/es/components/feature-card/feature-card.js +1 -2
- package/es/components/feature-card/feature-card.js.map +1 -1
- package/es/components/feature-card-block-large/feature-card-block-large-footer.js +1 -2
- package/es/components/feature-card-block-large/feature-card-block-large-footer.js.map +1 -1
- package/es/components/feature-card-block-large/feature-card-block-large.js +1 -2
- package/es/components/feature-card-block-large/feature-card-block-large.js.map +1 -1
- package/es/components/feature-card-block-medium/feature-card-block-medium-block-heading.js +1 -2
- package/es/components/feature-card-block-medium/feature-card-block-medium-block-heading.js.map +1 -1
- package/es/components/feature-card-block-medium/feature-card-block-medium.js +1 -2
- package/es/components/feature-card-block-medium/feature-card-block-medium.js.map +1 -1
- package/es/components/feature-section/defs.js +0 -1
- package/es/components/feature-section/defs.js.map +1 -1
- package/es/components/feature-section/feature-section-card-link.js +1 -2
- package/es/components/feature-section/feature-section-card-link.js.map +1 -1
- package/es/components/feature-section/feature-section.js +1 -2
- package/es/components/feature-section/feature-section.js.map +1 -1
- package/es/components/filter-panel/filter-group-item.js +1 -2
- package/es/components/filter-panel/filter-group-item.js.map +1 -1
- package/es/components/filter-panel/filter-group.js +1 -2
- package/es/components/filter-panel/filter-group.js.map +1 -1
- package/es/components/filter-panel/filter-modal-button.js +1 -2
- package/es/components/filter-panel/filter-modal-button.js.map +1 -1
- package/es/components/filter-panel/filter-modal-footer.js +1 -2
- package/es/components/filter-panel/filter-modal-footer.js.map +1 -1
- package/es/components/filter-panel/filter-modal-heading.js +1 -2
- package/es/components/filter-panel/filter-modal-heading.js.map +1 -1
- package/es/components/filter-panel/filter-panel-checkbox.js +1 -2
- package/es/components/filter-panel/filter-panel-checkbox.js.map +1 -1
- package/es/components/filter-panel/filter-panel-composite.d.ts +366 -35
- package/es/components/filter-panel/filter-panel-composite.d.ts.map +1 -1
- package/es/components/filter-panel/filter-panel-composite.js +99 -84
- package/es/components/filter-panel/filter-panel-composite.js.map +1 -1
- package/es/components/filter-panel/filter-panel-heading.js +1 -2
- package/es/components/filter-panel/filter-panel-heading.js.map +1 -1
- package/es/components/filter-panel/filter-panel-input-select-item.d.ts +4 -0
- package/es/components/filter-panel/filter-panel-input-select-item.d.ts.map +1 -1
- package/es/components/filter-panel/filter-panel-input-select-item.js +12 -2
- package/es/components/filter-panel/filter-panel-input-select-item.js.map +1 -1
- package/es/components/filter-panel/filter-panel-input-select.js +3 -4
- package/es/components/filter-panel/filter-panel-input-select.js.map +1 -1
- package/es/components/filter-panel/filter-panel-modal.js +1 -2
- package/es/components/filter-panel/filter-panel-modal.js.map +1 -1
- package/es/components/filter-panel/filter-panel.css.js +1 -1
- package/es/components/filter-panel/filter-panel.js +1 -2
- package/es/components/filter-panel/filter-panel.js.map +1 -1
- package/es/components/filter-panel/filter-panel.rtl.css.js +1 -1
- package/es/components/footer/combo-box.d.ts +2 -2
- package/es/components/footer/combo-box.d.ts.map +1 -1
- package/es/components/footer/combo-box.js +6 -6
- package/es/components/footer/combo-box.js.map +1 -1
- package/es/components/footer/defs.js +1 -7
- package/es/components/footer/defs.js.map +1 -1
- package/es/components/footer/dropdown.js +1 -2
- package/es/components/footer/dropdown.js.map +1 -1
- package/es/components/footer/footer-composite.d.ts +13 -17
- package/es/components/footer/footer-composite.d.ts.map +1 -1
- package/es/components/footer/footer-composite.js +79 -48
- package/es/components/footer/footer-composite.js.map +1 -1
- package/es/components/footer/footer-container.js +3 -4
- package/es/components/footer/footer-container.js.map +1 -1
- package/es/components/footer/footer-logo.js +1 -2
- package/es/components/footer/footer-logo.js.map +1 -1
- package/es/components/footer/footer-nav-group.js +3 -4
- package/es/components/footer/footer-nav-group.js.map +1 -1
- package/es/components/footer/footer-nav-item.js +1 -2
- package/es/components/footer/footer-nav-item.js.map +1 -1
- package/es/components/footer/footer-nav.js +1 -2
- package/es/components/footer/footer-nav.js.map +1 -1
- package/es/components/footer/footer.js +1 -2
- package/es/components/footer/footer.js.map +1 -1
- package/es/components/footer/language-selector-desktop.d.ts +367 -0
- package/es/components/footer/language-selector-desktop.d.ts.map +1 -1
- package/es/components/footer/language-selector-desktop.js +2 -5
- package/es/components/footer/language-selector-desktop.js.map +1 -1
- package/es/components/footer/language-selector-mobile.d.ts +14 -0
- package/es/components/footer/language-selector-mobile.d.ts.map +1 -1
- package/es/components/footer/language-selector-mobile.js +1 -3
- package/es/components/footer/language-selector-mobile.js.map +1 -1
- package/es/components/footer/legal-nav-cookie-preferences-placeholder.js +1 -2
- package/es/components/footer/legal-nav-cookie-preferences-placeholder.js.map +1 -1
- package/es/components/footer/legal-nav-item.js +1 -2
- package/es/components/footer/legal-nav-item.js.map +1 -1
- package/es/components/footer/legal-nav.js +1 -2
- package/es/components/footer/legal-nav.js.map +1 -1
- package/es/components/footer/locale-button.js +1 -2
- package/es/components/footer/locale-button.js.map +1 -1
- package/es/components/horizontal-rule/defs.js +0 -4
- package/es/components/horizontal-rule/defs.js.map +1 -1
- package/es/components/horizontal-rule/horizontal-rule.js +1 -2
- package/es/components/horizontal-rule/horizontal-rule.js.map +1 -1
- package/es/components/image/image-item.js +1 -2
- package/es/components/image/image-item.js.map +1 -1
- package/es/components/image/image.d.ts +2 -3
- package/es/components/image/image.d.ts.map +1 -1
- package/es/components/image/image.js +1 -2
- package/es/components/image/image.js.map +1 -1
- package/es/components/image-with-caption/image-with-caption.js +1 -2
- package/es/components/image-with-caption/image-with-caption.js.map +1 -1
- package/es/components/leadspace/breadcrumb-item.js +1 -2
- package/es/components/leadspace/breadcrumb-item.js.map +1 -1
- package/es/components/leadspace/breadcrumb-link.js +1 -2
- package/es/components/leadspace/breadcrumb-link.js.map +1 -1
- package/es/components/leadspace/breadcrumb.js +1 -2
- package/es/components/leadspace/breadcrumb.js.map +1 -1
- package/es/components/leadspace/defs.js +0 -3
- package/es/components/leadspace/defs.js.map +1 -1
- package/es/components/leadspace/leadspace-heading.js +1 -2
- package/es/components/leadspace/leadspace-heading.js.map +1 -1
- package/es/components/leadspace/leadspace-image.js +1 -2
- package/es/components/leadspace/leadspace-image.js.map +1 -1
- package/es/components/leadspace/leadspace.js +1 -2
- package/es/components/leadspace/leadspace.js.map +1 -1
- package/es/components/leadspace-block/leadspace-block-content.js +1 -2
- package/es/components/leadspace-block/leadspace-block-content.js.map +1 -1
- package/es/components/leadspace-block/leadspace-block-cta.js +1 -2
- package/es/components/leadspace-block/leadspace-block-cta.js.map +1 -1
- package/es/components/leadspace-block/leadspace-block-heading.js +1 -2
- package/es/components/leadspace-block/leadspace-block-heading.js.map +1 -1
- package/es/components/leadspace-block/leadspace-block-media.js +1 -2
- package/es/components/leadspace-block/leadspace-block-media.js.map +1 -1
- package/es/components/leadspace-block/leadspace-block.js +1 -2
- package/es/components/leadspace-block/leadspace-block.js.map +1 -1
- package/es/components/leadspace-with-search/defs.js +0 -1
- package/es/components/leadspace-with-search/defs.js.map +1 -1
- package/es/components/leadspace-with-search/leadspace-with-search-content-copy.js +1 -2
- package/es/components/leadspace-with-search/leadspace-with-search-content-copy.js.map +1 -1
- package/es/components/leadspace-with-search/leadspace-with-search-content-heading.js +1 -2
- package/es/components/leadspace-with-search/leadspace-with-search-content-heading.js.map +1 -1
- package/es/components/leadspace-with-search/leadspace-with-search-content.js +1 -2
- package/es/components/leadspace-with-search/leadspace-with-search-content.js.map +1 -1
- package/es/components/leadspace-with-search/leadspace-with-search-heading.js +1 -2
- package/es/components/leadspace-with-search/leadspace-with-search-heading.js.map +1 -1
- package/es/components/leadspace-with-search/leadspace-with-search.js +1 -2
- package/es/components/leadspace-with-search/leadspace-with-search.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-composite.d.ts +1 -0
- package/es/components/leaving-ibm/leaving-ibm-composite.d.ts.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-composite.js +4 -5
- package/es/components/leaving-ibm/leaving-ibm-composite.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-connect.js +3 -3
- package/es/components/leaving-ibm/leaving-ibm-connect.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-container.js +1 -2
- package/es/components/leaving-ibm/leaving-ibm-container.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal-body.js +1 -2
- package/es/components/leaving-ibm/leaving-ibm-modal-body.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal-heading.js +1 -2
- package/es/components/leaving-ibm/leaving-ibm-modal-heading.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal-supplemental.js +1 -2
- package/es/components/leaving-ibm/leaving-ibm-modal-supplemental.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal.js +3 -4
- package/es/components/leaving-ibm/leaving-ibm-modal.js.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-image-viewer.js +1 -2
- package/es/components/lightbox-media-viewer/lightbox-image-viewer.js.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.js +1 -2
- package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.js.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-media-viewer.js +1 -2
- package/es/components/lightbox-media-viewer/lightbox-media-viewer.js.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-video-player-composite.d.ts +1 -0
- package/es/components/lightbox-media-viewer/lightbox-video-player-composite.d.ts.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-video-player-composite.js +8 -9
- package/es/components/lightbox-media-viewer/lightbox-video-player-composite.js.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-video-player-container.js +1 -2
- package/es/components/lightbox-media-viewer/lightbox-video-player-container.js.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-video-player.js +1 -2
- package/es/components/lightbox-media-viewer/lightbox-video-player.js.map +1 -1
- package/es/components/link-list/defs.js +0 -2
- package/es/components/link-list/defs.js.map +1 -1
- package/es/components/link-list/link-list-heading.js +1 -2
- package/es/components/link-list/link-list-heading.js.map +1 -1
- package/es/components/link-list/link-list-item-card.js +1 -2
- package/es/components/link-list/link-list-item-card.js.map +1 -1
- package/es/components/link-list/link-list-item.js +1 -2
- package/es/components/link-list/link-list-item.js.map +1 -1
- package/es/components/link-list/link-list.js +1 -3
- package/es/components/link-list/link-list.js.map +1 -1
- package/es/components/link-list-section/link-list-section.js +1 -2
- package/es/components/link-list-section/link-list-section.js.map +1 -1
- package/es/components/link-with-icon/link-with-icon.js +3 -4
- package/es/components/link-with-icon/link-with-icon.js.map +1 -1
- package/es/components/locale-modal/locale-item.js +1 -2
- package/es/components/locale-modal/locale-item.js.map +1 -1
- package/es/components/locale-modal/locale-modal-composite.d.ts +337 -17
- package/es/components/locale-modal/locale-modal-composite.d.ts.map +1 -1
- package/es/components/locale-modal/locale-modal-composite.js +50 -28
- package/es/components/locale-modal/locale-modal-composite.js.map +1 -1
- package/es/components/locale-modal/locale-modal-container.js +1 -2
- package/es/components/locale-modal/locale-modal-container.js.map +1 -1
- package/es/components/locale-modal/locale-modal.d.ts +13 -1
- package/es/components/locale-modal/locale-modal.d.ts.map +1 -1
- package/es/components/locale-modal/locale-modal.js +102 -28
- package/es/components/locale-modal/locale-modal.js.map +1 -1
- package/es/components/locale-modal/locale-search.d.ts +3 -0
- package/es/components/locale-modal/locale-search.d.ts.map +1 -1
- package/es/components/locale-modal/locale-search.js +2 -5
- package/es/components/locale-modal/locale-search.js.map +1 -1
- package/es/components/locale-modal/region-item.js +1 -2
- package/es/components/locale-modal/region-item.js.map +1 -1
- package/es/components/locale-modal/regions.js +1 -2
- package/es/components/locale-modal/regions.js.map +1 -1
- package/es/components/logo-grid/logo-grid-item.js +1 -2
- package/es/components/logo-grid/logo-grid-item.js.map +1 -1
- package/es/components/logo-grid/logo-grid-link.js +1 -2
- package/es/components/logo-grid/logo-grid-link.js.map +1 -1
- package/es/components/logo-grid/logo-grid.js +1 -2
- package/es/components/logo-grid/logo-grid.js.map +1 -1
- package/es/components/markdown/markdown.js +1 -2
- package/es/components/markdown/markdown.js.map +1 -1
- package/es/components/masthead/cloud/cloud-button-cta.js +1 -2
- package/es/components/masthead/cloud/cloud-button-cta.js.map +1 -1
- package/es/components/masthead/cloud/cloud-left-nav-item.js +1 -2
- package/es/components/masthead/cloud/cloud-left-nav-item.js.map +1 -1
- package/es/components/masthead/cloud/cloud-masthead-composite.js +11 -12
- package/es/components/masthead/cloud/cloud-masthead-composite.js.map +1 -1
- package/es/components/masthead/cloud/cloud-masthead-container.js +9 -10
- package/es/components/masthead/cloud/cloud-masthead-container.js.map +1 -1
- package/es/components/masthead/cloud/cloud-masthead-global-bar.js +1 -2
- package/es/components/masthead/cloud/cloud-masthead-global-bar.js.map +1 -1
- package/es/components/masthead/cloud/cloud-masthead-profile.js +1 -2
- package/es/components/masthead/cloud/cloud-masthead-profile.js.map +1 -1
- package/es/components/masthead/cloud/cloud-masthead.css.js +1 -1
- package/es/components/masthead/cloud/cloud-masthead.rtl.css.js +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-category-heading.js +1 -2
- package/es/components/masthead/cloud/cloud-megamenu-category-heading.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-category-link-group.js +1 -2
- package/es/components/masthead/cloud/cloud-megamenu-category-link-group.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-category-link.js +1 -2
- package/es/components/masthead/cloud/cloud-megamenu-category-link.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-left-navigation.js +1 -2
- package/es/components/masthead/cloud/cloud-megamenu-left-navigation.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-right-navigation.js +1 -2
- package/es/components/masthead/cloud/cloud-megamenu-right-navigation.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-tab.js +1 -2
- package/es/components/masthead/cloud/cloud-megamenu-tab.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-tabs.js +1 -2
- package/es/components/masthead/cloud/cloud-megamenu-tabs.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu.js +1 -2
- package/es/components/masthead/cloud/cloud-megamenu.js.map +1 -1
- package/es/components/masthead/cloud/cloud-top-nav-name.js +1 -2
- package/es/components/masthead/cloud/cloud-top-nav-name.js.map +1 -1
- package/es/components/masthead/defs.js +0 -2
- package/es/components/masthead/defs.js.map +1 -1
- package/es/components/masthead/left-nav-item.js +1 -2
- package/es/components/masthead/left-nav-item.js.map +1 -1
- package/es/components/masthead/left-nav-menu-category-heading.js +1 -2
- package/es/components/masthead/left-nav-menu-category-heading.js.map +1 -1
- package/es/components/masthead/left-nav-menu-item.js +1 -2
- package/es/components/masthead/left-nav-menu-item.js.map +1 -1
- package/es/components/masthead/left-nav-menu-section.js +1 -2
- package/es/components/masthead/left-nav-menu-section.js.map +1 -1
- package/es/components/masthead/left-nav-menu.js +1 -2
- package/es/components/masthead/left-nav-menu.js.map +1 -1
- package/es/components/masthead/left-nav-name.js +1 -2
- package/es/components/masthead/left-nav-name.js.map +1 -1
- package/es/components/masthead/left-nav-overlay.js +1 -2
- package/es/components/masthead/left-nav-overlay.js.map +1 -1
- package/es/components/masthead/left-nav.js +7 -8
- package/es/components/masthead/left-nav.js.map +1 -1
- package/es/components/masthead/masthead-composite.js +22 -24
- package/es/components/masthead/masthead-composite.js.map +1 -1
- package/es/components/masthead/masthead-container.js +6 -7
- package/es/components/masthead/masthead-container.js.map +1 -1
- package/es/components/masthead/masthead-global-bar.js +1 -2
- package/es/components/masthead/masthead-global-bar.js.map +1 -1
- package/es/components/masthead/masthead-l1-name.js +1 -2
- package/es/components/masthead/masthead-l1-name.js.map +1 -1
- package/es/components/masthead/masthead-l1.js +1 -2
- package/es/components/masthead/masthead-l1.js.map +1 -1
- package/es/components/masthead/masthead-logo.js +1 -2
- package/es/components/masthead/masthead-logo.js.map +1 -1
- package/es/components/masthead/masthead-menu-button.js +1 -2
- package/es/components/masthead/masthead-menu-button.js.map +1 -1
- package/es/components/masthead/masthead-profile-item.js +2 -3
- package/es/components/masthead/masthead-profile-item.js.map +1 -1
- package/es/components/masthead/masthead-profile.js +1 -2
- package/es/components/masthead/masthead-profile.js.map +1 -1
- package/es/components/masthead/masthead.js +1 -2
- package/es/components/masthead/masthead.js.map +1 -1
- package/es/components/masthead/megamenu-category-group-copy.js +1 -2
- package/es/components/masthead/megamenu-category-group-copy.js.map +1 -1
- package/es/components/masthead/megamenu-category-group.js +1 -2
- package/es/components/masthead/megamenu-category-group.js.map +1 -1
- package/es/components/masthead/megamenu-category-link.js +1 -2
- package/es/components/masthead/megamenu-category-link.js.map +1 -1
- package/es/components/masthead/megamenu-left-navigation.js +1 -2
- package/es/components/masthead/megamenu-left-navigation.js.map +1 -1
- package/es/components/masthead/megamenu-link-with-icon.js +1 -2
- package/es/components/masthead/megamenu-link-with-icon.js.map +1 -1
- package/es/components/masthead/megamenu-overlay.js +1 -2
- package/es/components/masthead/megamenu-overlay.js.map +1 -1
- package/es/components/masthead/megamenu-right-navigation.js +1 -2
- package/es/components/masthead/megamenu-right-navigation.js.map +1 -1
- package/es/components/masthead/megamenu-top-nav-menu.js +3 -4
- package/es/components/masthead/megamenu-top-nav-menu.js.map +1 -1
- package/es/components/masthead/megamenu.js +1 -2
- package/es/components/masthead/megamenu.js.map +1 -1
- package/es/components/masthead/skip-to-content.js +1 -2
- package/es/components/masthead/skip-to-content.js.map +1 -1
- package/es/components/masthead/top-nav-item.js +2 -3
- package/es/components/masthead/top-nav-item.js.map +1 -1
- package/es/components/masthead/top-nav-l1.js +1 -2
- package/es/components/masthead/top-nav-l1.js.map +1 -1
- package/es/components/masthead/top-nav-menu-item.js +2 -3
- package/es/components/masthead/top-nav-menu-item.js.map +1 -1
- package/es/components/masthead/top-nav-menu.js +2 -3
- package/es/components/masthead/top-nav-menu.js.map +1 -1
- package/es/components/masthead/top-nav-name.js +1 -2
- package/es/components/masthead/top-nav-name.js.map +1 -1
- package/es/components/masthead/top-nav.d.ts.map +1 -1
- package/es/components/masthead/top-nav.js +2 -3
- package/es/components/masthead/top-nav.js.map +1 -1
- package/es/components/notice-choice/cc-lc-map.js +1 -2
- package/es/components/notice-choice/cc-lc-map.js.map +1 -1
- package/es/components/notice-choice/country-settings.js +1 -2
- package/es/components/notice-choice/country-settings.js.map +1 -1
- package/es/components/notice-choice/notice-choice.d.ts +5 -1
- package/es/components/notice-choice/notice-choice.d.ts.map +1 -1
- package/es/components/notice-choice/notice-choice.js +38 -10
- package/es/components/notice-choice/notice-choice.js.map +1 -1
- package/es/components/notice-choice/utils.d.ts +1 -0
- package/es/components/notice-choice/utils.d.ts.map +1 -1
- package/es/components/notice-choice/utils.js +10 -4
- package/es/components/notice-choice/utils.js.map +1 -1
- package/es/components/notice-choice/world-wide-content.js +1 -2
- package/es/components/notice-choice/world-wide-content.js.map +1 -1
- package/es/components/pictogram-item/defs.js +0 -1
- package/es/components/pictogram-item/defs.js.map +1 -1
- package/es/components/pictogram-item/pictogram-item.js +1 -2
- package/es/components/pictogram-item/pictogram-item.js.map +1 -1
- package/es/components/pricing-table/defs.js +0 -1
- package/es/components/pricing-table/defs.js.map +1 -1
- package/es/components/pricing-table/pricing-table-annotation-toggle.js +1 -2
- package/es/components/pricing-table/pricing-table-annotation-toggle.js.map +1 -1
- package/es/components/pricing-table/pricing-table-body.js +1 -2
- package/es/components/pricing-table/pricing-table-body.js.map +1 -1
- package/es/components/pricing-table/pricing-table-cell-annotation.js +1 -2
- package/es/components/pricing-table/pricing-table-cell-annotation.js.map +1 -1
- package/es/components/pricing-table/pricing-table-cell.js +2 -3
- package/es/components/pricing-table/pricing-table-cell.js.map +1 -1
- package/es/components/pricing-table/pricing-table-group.js +1 -2
- package/es/components/pricing-table/pricing-table-group.js.map +1 -1
- package/es/components/pricing-table/pricing-table-head.js +1 -2
- package/es/components/pricing-table/pricing-table-head.js.map +1 -1
- package/es/components/pricing-table/pricing-table-header-cell-caption.js +1 -2
- package/es/components/pricing-table/pricing-table-header-cell-caption.js.map +1 -1
- package/es/components/pricing-table/pricing-table-header-cell-cta.js +1 -2
- package/es/components/pricing-table/pricing-table-header-cell-cta.js.map +1 -1
- package/es/components/pricing-table/pricing-table-header-cell-description.js +1 -2
- package/es/components/pricing-table/pricing-table-header-cell-description.js.map +1 -1
- package/es/components/pricing-table/pricing-table-header-cell-headline.js +1 -2
- package/es/components/pricing-table/pricing-table-header-cell-headline.js.map +1 -1
- package/es/components/pricing-table/pricing-table-header-cell-tag.js +1 -2
- package/es/components/pricing-table/pricing-table-header-cell-tag.js.map +1 -1
- package/es/components/pricing-table/pricing-table-header-cell.js +1 -2
- package/es/components/pricing-table/pricing-table-header-cell.js.map +1 -1
- package/es/components/pricing-table/pricing-table-header-row.js +1 -2
- package/es/components/pricing-table/pricing-table-header-row.js.map +1 -1
- package/es/components/pricing-table/pricing-table-highlight-label.js +1 -2
- package/es/components/pricing-table/pricing-table-highlight-label.js.map +1 -1
- package/es/components/pricing-table/pricing-table-row.js +1 -2
- package/es/components/pricing-table/pricing-table-row.js.map +1 -1
- package/es/components/pricing-table/pricing-table.js +2 -3
- package/es/components/pricing-table/pricing-table.js.map +1 -1
- package/es/components/pricing-table/utils.js +5 -10
- package/es/components/pricing-table/utils.js.map +1 -1
- package/es/components/quote/defs.js +0 -2
- package/es/components/quote/defs.js.map +1 -1
- package/es/components/quote/index.d.ts +2 -2
- package/es/components/quote/index.d.ts.map +1 -1
- package/es/components/quote/index.js +1 -1
- package/es/components/quote/index.js.map +1 -1
- package/es/components/quote/quote-link-with-icon.js +1 -2
- package/es/components/quote/quote-link-with-icon.js.map +1 -1
- package/es/components/quote/quote-source-bottom-copy.js +1 -2
- package/es/components/quote/quote-source-bottom-copy.js.map +1 -1
- package/es/components/quote/quote-source-copy.js +1 -2
- package/es/components/quote/quote-source-copy.js.map +1 -1
- package/es/components/quote/quote-source-heading.js +1 -2
- package/es/components/quote/quote-source-heading.js.map +1 -1
- package/es/components/quote/quote.js +1 -2
- package/es/components/quote/quote.js.map +1 -1
- package/es/components/scroll-animations/defs.js +0 -1
- package/es/components/scroll-animations/defs.js.map +1 -1
- package/es/components/scroll-animations/scroll-animations.js +5 -6
- package/es/components/scroll-animations/scroll-animations.js.map +1 -1
- package/es/components/search/search.js +3 -4
- package/es/components/search/search.js.map +1 -1
- package/es/components/search-with-typeahead/scoped-search-dropdown-mobile.js +1 -2
- package/es/components/search-with-typeahead/scoped-search-dropdown-mobile.js.map +1 -1
- package/es/components/search-with-typeahead/scoped-search-dropdown.js +3 -4
- package/es/components/search-with-typeahead/scoped-search-dropdown.js.map +1 -1
- package/es/components/search-with-typeahead/search-with-typeahead-item.js +1 -2
- package/es/components/search-with-typeahead/search-with-typeahead-item.js.map +1 -1
- package/es/components/search-with-typeahead/search-with-typeahead.js +16 -17
- package/es/components/search-with-typeahead/search-with-typeahead.js.map +1 -1
- package/es/components/structured-list/structured-list-body.js +1 -2
- package/es/components/structured-list/structured-list-body.js.map +1 -1
- package/es/components/structured-list/structured-list-cell.js +1 -2
- package/es/components/structured-list/structured-list-cell.js.map +1 -1
- package/es/components/structured-list/structured-list-group.js +1 -2
- package/es/components/structured-list/structured-list-group.js.map +1 -1
- package/es/components/structured-list/structured-list-head.js +1 -2
- package/es/components/structured-list/structured-list-head.js.map +1 -1
- package/es/components/structured-list/structured-list-header-cell.js +1 -2
- package/es/components/structured-list/structured-list-header-cell.js.map +1 -1
- package/es/components/structured-list/structured-list-header-row.js +1 -2
- package/es/components/structured-list/structured-list-header-row.js.map +1 -1
- package/es/components/structured-list/structured-list-row.js +1 -2
- package/es/components/structured-list/structured-list-row.js.map +1 -1
- package/es/components/structured-list/structured-list.js +1 -2
- package/es/components/structured-list/structured-list.js.map +1 -1
- package/es/components/table-of-contents/defs.js +0 -1
- package/es/components/table-of-contents/defs.js.map +1 -1
- package/es/components/table-of-contents/table-of-contents.js +2 -3
- package/es/components/table-of-contents/table-of-contents.js.map +1 -1
- package/es/components/tabs-extended/defs.js +0 -1
- package/es/components/tabs-extended/defs.js.map +1 -1
- package/es/components/tabs-extended/tab.js +3 -4
- package/es/components/tabs-extended/tab.js.map +1 -1
- package/es/components/tabs-extended/tabs-extended.js +3 -4
- package/es/components/tabs-extended/tabs-extended.js.map +1 -1
- package/es/components/tabs-extended-media/tabs-extended-media.js +1 -2
- package/es/components/tabs-extended-media/tabs-extended-media.js.map +1 -1
- package/es/components/tag-group/tag-group.js +3 -4
- package/es/components/tag-group/tag-group.js.map +1 -1
- package/es/components/tag-link/tag-link.js +1 -2
- package/es/components/tag-link/tag-link.js.map +1 -1
- package/es/components/universal-banner/universal-banner-copy.js +2 -3
- package/es/components/universal-banner/universal-banner-copy.js.map +1 -1
- package/es/components/universal-banner/universal-banner-heading.js +1 -2
- package/es/components/universal-banner/universal-banner-heading.js.map +1 -1
- package/es/components/universal-banner/universal-banner-image.js +1 -2
- package/es/components/universal-banner/universal-banner-image.js.map +1 -1
- package/es/components/universal-banner/universal-banner.js +1 -2
- package/es/components/universal-banner/universal-banner.js.map +1 -1
- package/es/components/video-player/defs.js +0 -2
- package/es/components/video-player/defs.js.map +1 -1
- package/es/components/video-player/video-player-composite.js +4 -5
- package/es/components/video-player/video-player-composite.js.map +1 -1
- package/es/components/video-player/video-player-container.js +6 -8
- package/es/components/video-player/video-player-container.js.map +1 -1
- package/es/components/video-player/video-player.d.ts.map +1 -1
- package/es/components/video-player/video-player.js +22 -5
- package/es/components/video-player/video-player.js.map +1 -1
- package/es/components-react/dotcom-shell/dotcom-shell-composite.d.ts +0 -4
- package/es/components-react/dotcom-shell/dotcom-shell-composite.js +0 -8
- package/es/components-react/filter-panel/filter-panel-composite.d.ts +2 -7
- package/es/components-react/filter-panel/filter-panel-composite.js +3 -10
- package/es/components-react/filter-panel/filter-panel-input-select-item.d.ts +4 -0
- package/es/components-react/filter-panel/filter-panel-input-select-item.js +5 -0
- package/es/components-react/locale-modal/locale-modal-composite.d.ts +4 -0
- package/es/components-react/locale-modal/locale-modal-composite.js +5 -0
- package/es/globals/defs.js +0 -2
- package/es/globals/defs.js.map +1 -1
- package/es/globals/internal/collection-helpers.js +5 -10
- package/es/globals/internal/collection-helpers.js.map +1 -1
- package/es/globals/internal/feature-flags.js +7 -14
- package/es/globals/internal/feature-flags.js.map +1 -1
- package/es/globals/internal/storybook-cdn.js +3 -6
- package/es/globals/internal/storybook-cdn.js.map +1 -1
- package/es/globals/mixins/connect.js +1 -2
- package/es/globals/mixins/connect.js.map +1 -1
- package/es/globals/mixins/hybrid-render.js +1 -2
- package/es/globals/mixins/hybrid-render.js.map +1 -1
- package/es/globals/mixins/modal-render.d.ts +6 -1
- package/es/globals/mixins/modal-render.d.ts.map +1 -1
- package/es/globals/mixins/modal-render.js +21 -4
- package/es/globals/mixins/modal-render.js.map +1 -1
- package/es/globals/mixins/stable-selector.js +3 -4
- package/es/globals/mixins/stable-selector.js.map +1 -1
- package/es/globals/mixins/throttled-input.js +2 -3
- package/es/globals/mixins/throttled-input.js.map +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +6 -6
- package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +19 -19
- package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie.js +6 -6
- package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +6 -6
- package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/es/internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer.js +3 -3
- package/es/internal/vendor/@carbon/ibmdotcom-services/services/Locale/Locale.js +6 -6
- package/es/internal/vendor/@carbon/ibmdotcom-services-store/actions/searchAPI.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-services-store/actions/searchAPI.js.map +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/es/internal/vendor/@carbon/web-components/components/data-table/table-toolbar-search.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/data-table/table-toolbar-search.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/file-uploader/drop-container.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/file-uploader/drop-container.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/input/input.d.ts +4 -5
- package/es/internal/vendor/@carbon/web-components/components/input/input.d.ts.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/input/input.js +16 -35
- package/es/internal/vendor/@carbon/web-components/components/input/input.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/link/link.d.ts +7 -15
- package/es/internal/vendor/@carbon/web-components/components/link/link.d.ts.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/link/link.js +6 -6
- package/es/internal/vendor/@carbon/web-components/components/link/link.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/overflow-menu/overflow-menu-body.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/overflow-menu/overflow-menu-body.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/overflow-menu/overflow-menu.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/overflow-menu/overflow-menu.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/pagination/page-sizes-select.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/pagination/page-sizes-select.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/slider/slider.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/slider/slider.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/structured-list/structured-list-row.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/structured-list/structured-list-row.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/tabs/tab.d.ts +8 -0
- package/es/internal/vendor/@carbon/web-components/components/tabs/tab.d.ts.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/tabs/tab.js +28 -4
- package/es/internal/vendor/@carbon/web-components/components/tabs/tab.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/tooltip/tooltip.js +2 -2
- package/es/internal/vendor/@carbon/web-components/components/tooltip/tooltip.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-link.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-link.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu-item.d.ts +1 -0
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu-item.d.ts.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu-item.js +11 -0
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu-item.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components-react/input/input.d.ts +4 -4
- package/es/internal/vendor/@carbon/web-components/components-react/input/input.js +2 -2
- package/es/internal/vendor/@carbon/web-components/components-react/tabs/tab.d.ts +4 -0
- package/es/internal/vendor/@carbon/web-components/components-react/tabs/tab.js +2 -0
- package/es/internal/vendor/@carbon/web-components/globals/wrappers/createReactCustomElementType.js +2 -1
- package/es/internal/vendor/@carbon/web-components/globals/wrappers/createReactCustomElementType.js.map +1 -1
- package/lib/components/background-media/defs.js +2 -4
- package/lib/components/background-media/defs.js.map +1 -1
- package/lib/components/button/defs.js +3 -6
- package/lib/components/button/defs.js.map +1 -1
- package/lib/components/card/defs.js +2 -4
- package/lib/components/card/defs.js.map +1 -1
- package/lib/components/card-group/defs.js +1 -2
- package/lib/components/card-group/defs.js.map +1 -1
- package/lib/components/content-block/defs.js +2 -4
- package/lib/components/content-block/defs.js.map +1 -1
- package/lib/components/content-item-horizontal/defs.js +2 -4
- package/lib/components/content-item-horizontal/defs.js.map +1 -1
- package/lib/components/cta/defs.js +2 -4
- package/lib/components/cta/defs.js.map +1 -1
- package/lib/components/expressive-modal/defs.js +2 -4
- package/lib/components/expressive-modal/defs.js.map +1 -1
- package/lib/components/feature-section/defs.js +1 -2
- package/lib/components/feature-section/defs.js.map +1 -1
- package/lib/components/horizontal-rule/defs.js +4 -8
- package/lib/components/horizontal-rule/defs.js.map +1 -1
- package/lib/components/leadspace/defs.js +3 -6
- package/lib/components/leadspace/defs.js.map +1 -1
- package/lib/components/leadspace-with-search/defs.js +1 -2
- package/lib/components/leadspace-with-search/defs.js.map +1 -1
- package/lib/components/leaving-ibm/leaving-ibm-connect.js +3 -3
- package/lib/components/leaving-ibm/leaving-ibm-connect.js.map +1 -1
- package/lib/components/link-list/defs.js +2 -4
- package/lib/components/link-list/defs.js.map +1 -1
- package/lib/components/pictogram-item/defs.js +1 -2
- package/lib/components/pictogram-item/defs.js.map +1 -1
- package/lib/components/quote/defs.js +2 -4
- package/lib/components/quote/defs.js.map +1 -1
- package/lib/components/table-of-contents/defs.js +1 -2
- package/lib/components/table-of-contents/defs.js.map +1 -1
- package/lib/components/tabs-extended/defs.js +1 -2
- package/lib/components/tabs-extended/defs.js.map +1 -1
- package/lib/components/video-player/defs.js +2 -4
- package/lib/components/video-player/defs.js.map +1 -1
- package/lib/components-react-node/back-to-top/back-to-top.js +25 -45
- package/lib/components-react-node/background-media/background-media.js +5 -8
- package/lib/components-react-node/button/button.js +25 -45
- package/lib/components-react-node/button-group/button-group-item.js +7 -6
- package/lib/components-react-node/button-group/button-group.js +3 -6
- package/lib/components-react-node/callout-quote/callout-link-with-icon.js +7 -6
- package/lib/components-react-node/callout-quote/callout-quote.js +7 -6
- package/lib/components-react-node/callout-with-media/callout-with-media-copy.js +7 -6
- package/lib/components-react-node/callout-with-media/callout-with-media-image.js +5 -8
- package/lib/components-react-node/callout-with-media/callout-with-media-video.js +10 -9
- package/lib/components-react-node/callout-with-media/callout-with-media.js +7 -6
- package/lib/components-react-node/card/card-eyebrow.js +5 -8
- package/lib/components-react-node/card/card-footer.js +40 -56
- package/lib/components-react-node/card/card-heading.js +5 -8
- package/lib/components-react-node/card/card.js +25 -45
- package/lib/components-react-node/card/image-logo.js +7 -6
- package/lib/components-react-node/card-group/card-group-card-link-item.js +38 -54
- package/lib/components-react-node/card-group/card-group-item.js +25 -45
- package/lib/components-react-node/card-group/card-group.js +25 -45
- package/lib/components-react-node/card-in-card/card-in-card-image.js +7 -6
- package/lib/components-react-node/card-in-card/card-in-card.js +7 -6
- package/lib/components-react-node/card-link/card-link-heading.js +7 -6
- package/lib/components-react-node/card-link/card-link.js +25 -45
- package/lib/components-react-node/card-section-carousel/card-section-carousel.js +7 -6
- package/lib/components-react-node/card-section-offset/card-section-offset.js +7 -6
- package/lib/components-react-node/card-section-simple/card-section-simple.js +7 -6
- package/lib/components-react-node/carousel/carousel.js +25 -45
- package/lib/components-react-node/content-block/content-block-complementary.js +5 -8
- package/lib/components-react-node/content-block/content-block-copy.js +5 -8
- package/lib/components-react-node/content-block/content-block-heading.js +5 -8
- package/lib/components-react-node/content-block/content-block-paragraph.js +3 -6
- package/lib/components-react-node/content-block/content-block.js +5 -8
- package/lib/components-react-node/content-block-cards/content-block-cards.js +7 -6
- package/lib/components-react-node/content-block-horizontal/content-block-horizontal.js +33 -49
- package/lib/components-react-node/content-block-media/content-block-media-content.js +7 -6
- package/lib/components-react-node/content-block-media/content-block-media.js +7 -6
- package/lib/components-react-node/content-block-mixed/content-block-mixed.js +7 -6
- package/lib/components-react-node/content-block-segmented/content-block-segmented-item.js +7 -6
- package/lib/components-react-node/content-block-segmented/content-block-segmented.js +7 -6
- package/lib/components-react-node/content-block-simple/content-block-simple.js +7 -6
- package/lib/components-react-node/content-group/content-group-copy.js +5 -8
- package/lib/components-react-node/content-group/content-group-heading.js +5 -8
- package/lib/components-react-node/content-group/content-group-paragraph.js +3 -6
- package/lib/components-react-node/content-group/content-group.js +7 -6
- package/lib/components-react-node/content-group-banner/content-group-banner.js +7 -6
- package/lib/components-react-node/content-group-cards/content-group-cards-item.js +3 -6
- package/lib/components-react-node/content-group-cards/content-group-cards.js +7 -6
- package/lib/components-react-node/content-group-pictograms/content-group-pictograms.js +7 -6
- package/lib/components-react-node/content-group-simple/content-group-simple.js +7 -6
- package/lib/components-react-node/content-item/content-item-copy.js +7 -6
- package/lib/components-react-node/content-item/content-item-heading.js +5 -8
- package/lib/components-react-node/content-item/content-item-paragraph.js +3 -6
- package/lib/components-react-node/content-item/content-item.js +3 -6
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-copy.js +7 -6
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-eyebrow.js +5 -8
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-copy.js +7 -6
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-featured.js +7 -6
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-video.js +10 -9
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media.js +10 -9
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-thumbnail-copy.js +7 -6
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal.js +32 -48
- package/lib/components-react-node/content-section/content-section-copy.js +5 -8
- package/lib/components-react-node/content-section/content-section-heading.js +5 -8
- package/lib/components-react-node/content-section/content-section.js +5 -8
- package/lib/components-react-node/cta/button-cta.js +48 -64
- package/lib/components-react-node/cta/card-cta-footer.js +46 -62
- package/lib/components-react-node/cta/card-cta-image.js +7 -6
- package/lib/components-react-node/cta/card-cta.js +25 -45
- package/lib/components-react-node/cta/card-link-cta.js +25 -45
- package/lib/components-react-node/cta/cta.js +5 -8
- package/lib/components-react-node/cta/feature-cta-footer.js +45 -61
- package/lib/components-react-node/cta/feature-cta.js +58 -74
- package/lib/components-react-node/cta/link-list-item-card-cta.js +7 -6
- package/lib/components-react-node/cta/link-list-item-cta.js +7 -6
- package/lib/components-react-node/cta/text-cta.js +48 -64
- package/lib/components-react-node/cta/video-cta-composite.js +5 -8
- package/lib/components-react-node/cta/video-cta-container.js +7 -6
- package/lib/components-react-node/cta-block/cta-block-item-row.js +25 -45
- package/lib/components-react-node/cta-block/cta-block-item.js +7 -6
- package/lib/components-react-node/cta-block/cta-block.js +33 -49
- package/lib/components-react-node/cta-section/cta-section.js +12 -11
- package/lib/components-react-node/dotcom-shell/dotcom-shell-composite.js +25 -53
- package/lib/components-react-node/dotcom-shell/dotcom-shell-container.js +7 -6
- package/lib/components-react-node/dotcom-shell/dotcom-shell.js +3 -6
- package/lib/components-react-node/expressive-modal/expressive-modal-body.js +3 -6
- package/lib/components-react-node/expressive-modal/expressive-modal-close-button.js +5 -8
- package/lib/components-react-node/expressive-modal/expressive-modal-footer.js +5 -8
- package/lib/components-react-node/expressive-modal/expressive-modal-header.js +5 -8
- package/lib/components-react-node/expressive-modal/expressive-modal-heading.js +3 -6
- package/lib/components-react-node/expressive-modal/expressive-modal.js +25 -45
- package/lib/components-react-node/feature-card/feature-card-footer.js +7 -6
- package/lib/components-react-node/feature-card/feature-card.js +5 -8
- package/lib/components-react-node/feature-section/feature-section-card-link.js +7 -6
- package/lib/components-react-node/feature-section/feature-section.js +12 -11
- package/lib/components-react-node/filter-panel/filter-group-item.js +25 -45
- package/lib/components-react-node/filter-panel/filter-group.js +3 -6
- package/lib/components-react-node/filter-panel/filter-modal-button.js +3 -6
- package/lib/components-react-node/filter-panel/filter-modal-footer.js +3 -6
- package/lib/components-react-node/filter-panel/filter-modal-heading.js +3 -6
- package/lib/components-react-node/filter-panel/filter-panel-checkbox.js +5 -8
- package/lib/components-react-node/filter-panel/filter-panel-composite.js +28 -55
- package/lib/components-react-node/filter-panel/filter-panel-heading.js +5 -8
- package/lib/components-react-node/filter-panel/filter-panel-input-select-item.js +30 -45
- package/lib/components-react-node/filter-panel/filter-panel-input-select.js +25 -45
- package/lib/components-react-node/filter-panel/filter-panel-modal.js +41 -57
- package/lib/components-react-node/filter-panel/filter-panel.js +25 -45
- package/lib/components-react-node/footer/dropdown.js +5 -8
- package/lib/components-react-node/footer/footer-composite.js +25 -45
- package/lib/components-react-node/footer/footer-container.js +7 -6
- package/lib/components-react-node/horizontal-rule/horizontal-rule.js +5 -8
- package/lib/components-react-node/image/image-item.js +3 -6
- package/lib/components-react-node/image/image.js +25 -45
- package/lib/components-react-node/leadspace/breadcrumb-item.js +3 -6
- package/lib/components-react-node/leadspace/breadcrumb-link.js +3 -6
- package/lib/components-react-node/leadspace/breadcrumb.js +3 -6
- package/lib/components-react-node/leadspace/leadspace-heading.js +5 -8
- package/lib/components-react-node/leadspace/leadspace-image.js +7 -6
- package/lib/components-react-node/leadspace/leadspace.js +5 -8
- package/lib/components-react-node/leadspace-block/leadspace-block-content.js +7 -6
- package/lib/components-react-node/leadspace-block/leadspace-block-cta.js +7 -6
- package/lib/components-react-node/leadspace-block/leadspace-block-heading.js +7 -6
- package/lib/components-react-node/leadspace-block/leadspace-block-media.js +3 -6
- package/lib/components-react-node/leadspace-block/leadspace-block.js +3 -6
- package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content-copy.js +10 -9
- package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content-heading.js +7 -6
- package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content.js +10 -9
- package/lib/components-react-node/leadspace-with-search/leadspace-with-search-heading.js +7 -6
- package/lib/components-react-node/leadspace-with-search/leadspace-with-search.js +25 -45
- package/lib/components-react-node/leaving-ibm/leaving-ibm-composite.js +25 -45
- package/lib/components-react-node/leaving-ibm/leaving-ibm-container.js +7 -6
- package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-body.js +5 -8
- package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-heading.js +3 -6
- package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-supplemental.js +5 -8
- package/lib/components-react-node/leaving-ibm/leaving-ibm-modal.js +5 -8
- package/lib/components-react-node/lightbox-media-viewer/lightbox-image-viewer.js +15 -14
- package/lib/components-react-node/lightbox-media-viewer/lightbox-media-viewer-body.js +2 -4
- package/lib/components-react-node/lightbox-media-viewer/lightbox-media-viewer.js +24 -23
- package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player-composite.js +45 -61
- package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player-container.js +4 -7
- package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player.js +40 -56
- package/lib/components-react-node/link-list/link-list-heading.js +5 -8
- package/lib/components-react-node/link-list/link-list-item-card.js +7 -6
- package/lib/components-react-node/link-list/link-list-item.js +33 -49
- package/lib/components-react-node/link-list/link-list.js +5 -8
- package/lib/components-react-node/link-list-section/link-list-section.js +7 -6
- package/lib/components-react-node/link-with-icon/link-with-icon.js +25 -45
- package/lib/components-react-node/locale-modal/locale-modal-composite.js +30 -45
- package/lib/components-react-node/locale-modal/locale-modal-container.js +7 -6
- package/lib/components-react-node/logo-grid/logo-grid-item.js +7 -6
- package/lib/components-react-node/logo-grid/logo-grid-link.js +5 -8
- package/lib/components-react-node/logo-grid/logo-grid.js +39 -55
- package/lib/components-react-node/markdown/markdown.js +5 -8
- package/lib/components-react-node/masthead/masthead-composite.js +25 -45
- package/lib/components-react-node/masthead/masthead-container.js +7 -6
- package/lib/components-react-node/masthead/masthead.js +3 -6
- package/lib/components-react-node/pictogram-item/pictogram-item.js +12 -11
- package/lib/components-react-node/quote/quote-link-with-icon.js +7 -6
- package/lib/components-react-node/quote/quote-source-bottom-copy.js +5 -8
- package/lib/components-react-node/quote/quote-source-copy.js +5 -8
- package/lib/components-react-node/quote/quote-source-heading.js +5 -8
- package/lib/components-react-node/quote/quote.js +5 -8
- package/lib/components-react-node/search-with-typeahead/scoped-search-dropdown-mobile.js +5 -8
- package/lib/components-react-node/search-with-typeahead/scoped-search-dropdown.js +5 -8
- package/lib/components-react-node/search-with-typeahead/search-with-typeahead-item.js +25 -45
- package/lib/components-react-node/search-with-typeahead/search-with-typeahead.js +25 -45
- package/lib/components-react-node/structured-list/structured-list-body.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-cell.js +5 -8
- package/lib/components-react-node/structured-list/structured-list-group.js +5 -8
- package/lib/components-react-node/structured-list/structured-list-head.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-header-cell.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-header-row.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-row.js +3 -6
- package/lib/components-react-node/structured-list/structured-list.js +3 -6
- package/lib/components-react-node/table-of-contents/table-of-contents.js +25 -45
- package/lib/components-react-node/tabs-extended/tab.js +25 -45
- package/lib/components-react-node/tabs-extended/tabs-extended.js +5 -8
- package/lib/components-react-node/tabs-extended-media/tabs-extended-media.js +12 -11
- package/lib/components-react-node/tag-group/tag-group.js +3 -6
- package/lib/components-react-node/tag-link/tag-link.js +5 -8
- package/lib/components-react-node/universal-banner/universal-banner-copy.js +5 -8
- package/lib/components-react-node/universal-banner/universal-banner-heading.js +5 -8
- package/lib/components-react-node/universal-banner/universal-banner-image.js +7 -6
- package/lib/components-react-node/universal-banner/universal-banner.js +25 -45
- package/lib/components-react-node/video-player/video-player-composite.js +25 -45
- package/lib/components-react-node/video-player/video-player-container.js +7 -6
- package/lib/components-react-node/video-player/video-player.js +25 -45
- package/lib/globals/defs.js +2 -4
- package/lib/globals/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +7 -8
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/altlangs/altlangs.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/calculateTotalWidth/calculateTotalWidth.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/decodeString/decodeString.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/escaperegexp/escaperegexp.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/featureflag/featureflag.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +20 -21
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie.js +7 -8
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/loadNonLatinPlex/loadNonLatinPlex.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/markdownToHtml.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +7 -8
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/removeHtmlTagEntities/removeHtmlTagEntities.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/sameHeight/sameHeight.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/serialize/serialize.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +3 -4
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/smoothScroll/smoothScroll.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/stripHTML/stripHTML.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/uniqueid/uniqueid.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/Analytics/Analytics.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/CloudAccountAuth/CloudAccountAuth.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/DDO/DDO.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer.js +9 -10
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/Locale/Locale.js +7 -8
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/MarketingSearch/MarketingSearch.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/MastheadLogo/MastheadLogo.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/Profile/Profile.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/SearchTypeahead/SearchTypeahead.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/Translation/Translation.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/VideoPlayer/VideoPlayer.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/actions/searchAPI.js +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/actions/searchAPI.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/reducers/index.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/reducers/index.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/store.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/store.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/cloudAccountAuthAPI.js +2 -4
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/cloudAccountAuthAPI.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/kalturaPlayerAPI.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/kalturaPlayerAPI.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/localeAPI.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/localeAPI.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/profileAPI.js +2 -4
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/profileAPI.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/searchAPI.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/searchAPI.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/translateAPI.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/translateAPI.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +2 -3
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/altlangs/altlangs.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/calculateTotalWidth/calculateTotalWidth.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/decodeString/decodeString.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/escaperegexp/escaperegexp.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/featureflag/featureflag.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +2 -3
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie.js +2 -3
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/loadNonLatinPlex/loadNonLatinPlex.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/markdownToHtml.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +2 -3
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/removeHtmlTagEntities/removeHtmlTagEntities.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/sameHeight/sameHeight.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/serialize/serialize.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +3 -4
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/smoothScroll/smoothScroll.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/stripHTML/stripHTML.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/uniqueid/uniqueid.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/accordion/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/accordion/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/button/defs.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components/button/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/code-snippet/defs.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/code-snippet/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/content-switcher/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/content-switcher/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/data-table/defs.js +5 -10
- package/lib/internal/vendor/@carbon/web-components/components/data-table/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/date-picker/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/date-picker/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/dropdown/defs.js +4 -8
- package/lib/internal/vendor/@carbon/web-components/components/dropdown/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/file-uploader/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/file-uploader/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/floating-menu/defs.js +4 -8
- package/lib/internal/vendor/@carbon/web-components/components/floating-menu/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/inline-loading/defs.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/inline-loading/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/input/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/input/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/loading/defs.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/loading/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/modal/defs.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/modal/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/notification/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/notification/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/number-input/defs.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/number-input/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/overflow-menu/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/overflow-menu/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/progress-indicator/defs.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/progress-indicator/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/radio-button/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/radio-button/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/skeleton-text/defs.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/skeleton-text/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/tabs/defs.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components/tabs/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/tag/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/tag/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/toggle/defs.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/toggle/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/tooltip/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/tooltip/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/ui-shell/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/ui-shell/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components-react-node/accordion/accordion-item.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/accordion/accordion.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/breadcrumb/breadcrumb-item.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/breadcrumb/breadcrumb-link.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/breadcrumb/breadcrumb-overflow-menu.js +11 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/breadcrumb/breadcrumb.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/button/button-skeleton.js +7 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/button/button.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/checkbox/checkbox.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/code-snippet/code-snippet-skeleton.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/code-snippet/code-snippet.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/combo-box/combo-box-item.js +11 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/combo-box/combo-box.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/content-switcher/content-switcher-item.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/content-switcher/content-switcher.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/copy-button/copy-button.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-batch-actions.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-body.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-cell-skeleton.js +11 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-cell.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-expand-row.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-expanded-row.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-head.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-header-cell-skeleton.js +11 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-header-cell.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-header-expand-row.js +25 -20
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-header-row.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-row.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-toolbar-content.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-toolbar-search.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-toolbar.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/date-picker/date-picker-input-skeleton.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/date-picker/date-picker-input.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/date-picker/date-picker.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/dropdown/dropdown-item.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/dropdown/dropdown-skeleton.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/dropdown/dropdown.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/file-uploader/drop-container.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/file-uploader/file-uploader-item.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/file-uploader/file-uploader.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/floating-menu/floating-menu.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components-react-node/form/form-item.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/inline-loading/inline-loading.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/input/input.js +27 -47
- package/lib/internal/vendor/@carbon/web-components/components-react-node/link/link.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/list/list-item.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/list/ordered-list.js +11 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/list/unordered-list.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/loading/loading.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-body.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-close-button.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-footer-button.js +7 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-footer.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-header.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-heading.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-label.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/multi-select/multi-select-item.js +41 -53
- package/lib/internal/vendor/@carbon/web-components/components-react-node/multi-select/multi-select.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/notification/inline-notification.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/notification/toast-notification.js +15 -10
- package/lib/internal/vendor/@carbon/web-components/components-react-node/number-input/number-input-skeleton.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/number-input/number-input.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/overflow-menu/overflow-menu-body.js +45 -57
- package/lib/internal/vendor/@carbon/web-components/components-react-node/overflow-menu/overflow-menu-item.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/overflow-menu/overflow-menu.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/pagination/page-sizes-select.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/pagination/pages-select.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/pagination/pagination.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/progress-indicator/progress-indicator-skeleton.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/progress-indicator/progress-indicator.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/progress-indicator/progress-step-skeleton.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/progress-indicator/progress-step.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/radio-button/radio-button-group.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/radio-button/radio-button-skeleton.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/radio-button/radio-button.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/search/search-skeleton.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/search/search.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/select/select-item-group.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/select/select-item.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/select/select.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/skeleton-placeholder/skeleton-placeholder.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/skeleton-text/skeleton-text.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/skip-to-content/skip-to-content.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/slider/slider-input.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/slider/slider-skeleton.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/slider/slider.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-body.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-cell.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-head.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-header-cell-skeleton.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-header-cell.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-header-row.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-row.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tabs/tab-skeleton.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tabs/tab.js +41 -51
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tabs/tabs-skeleton.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tabs/tabs.js +39 -34
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tag/filter-tag.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tag/tag.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/textarea/textarea-skeleton.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/textarea/textarea.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/clickable-tile.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/expandable-tile.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/radio-tile.js +11 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/selectable-tile.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/tile-group.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/tile.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/toggle/toggle.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tooltip/tooltip-body.js +41 -53
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tooltip/tooltip-definition.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tooltip/tooltip-footer.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tooltip/tooltip-icon.js +11 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tooltip/tooltip.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-menu-button.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-menu-item.js +11 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-menu.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-name.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-nav-item.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-nav.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav-divider.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav-items.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav-link.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav-menu-item.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav-menu.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/globals/settings.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/globals/settings.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/globals/shared-enums.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/globals/shared-enums.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/globals/wrappers/createReactCustomElementType.js +3 -4
- package/lib/internal/vendor/@carbon/web-components/globals/wrappers/createReactCustomElementType.js.map +1 -1
- package/package.json +17 -17
- package/dist/left-nav-menu-item-28b39f86.js +0 -71
- package/dist/left-nav-menu-item-38c7e8e5.js +0 -71
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["components/notice-choice/notice-choice.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAQ,UAAU,EAAY,cAAc,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBzE;;;;;;;GAOG;AACH,cACM,YAAa,SAAQ,iBAA+B;IACxD;;OAEG;IAEH,eAAe,SAAO;IAGtB,OAAO,SAAQ;IAGf,KAAK,SAAM;IAGX,QAAQ,SAAQ;IAGhB,kBAAkB,iBAAU;IAG5B,aAAa,iBAAU;IAGvB,cAAc,MAAC;IAGf,aAAa,KAAM;IAGnB,KAAK,SAAM;IAGX,gBAAgB,UAAS;IAGzB,eAAe,UAAQ;IAGvB,UAAU,KAAM;IAGhB,MAAM,EAAE,GAAG,CAAC;IAGZ,OAAO,UAAS;IAGhB,WAAW,SAAM;IAGjB,YAAY,KAAM;IAGlB,qBAAqB,UAAS;IAE9B;;OAEG;IAEH;;OAEG;IAEH,OAAO,iBAAU;IAGjB,cAAc,iBAAU;IAGxB,MAAM;;;;;MAKJ;IAGF,WAAW,SAAM;IAGjB,WAAW,SAAM;IAEjB,iBAAiB;IAUjB,kBAAkB;IAalB,iBAAiB;IAuBjB,oBAAoB;IAwBpB,mBAAmB;IAsBnB,cAAc;IAId;;;;;OAKG;IACH,wBAAwB,CAAC,IAAI,KAAA,EAAE,MAAM,KAAA,EAAE,MAAM,KAAA;IAqF7C,OAAO,CAAC,cAAc;IAqBtB,MAAM,KAAK,cAAc,WAExB;IACD,MAAM,CAAC,MAAM,MAAU;IACvB,mBAAmB,CAAC,MAAM,EAAE,GAAG;IAmB/B,uBAAuB;IAkDvB,gBAAgB,CAAC,QAAQ,KAAA,EAAE,OAAO,KAAA,EAAE,SAAS,KAAA;IA0B7C,eAAe;IA6Bf,gBAAgB;IAmChB,gBAAgB;IAOhB,MAAM;IAqCN,SAAS,CAAC,YAAY,CAAC,KAAK,KAAA;IA6B5B,SAAS,CAAC,oBAAoB,yBAyC5B;IACF,SAAS,CAAC,gBAAgB;IAyB1B,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAyB9C;AAED,eAAe,YAAY,CAAC","file":"notice-choice.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { checkPreferencesv3, loadContent } from './services';\nimport { html, LitElement, property, TemplateResult } from 'lit-element';\nimport {\n emailRegExp,\n pwsValueMap,\n resetToWorldWideContent,\n supportedLanguages,\n} from './utils';\nimport countrySettings from './country-settings';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport settings from 'carbon-components/es/globals/js/settings';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport styles from './notice-choice.scss';\nimport { unsafeHTML } from 'lit-html/directives/unsafe-html';\nimport { worldWideContent } from './world-wide-content';\nimport { carbonElement as customElement } from '../../internal/vendor/@carbon/web-components/globals/decorators/carbon-element';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\nconst { prefix } = settings;\n\n/**\n * Notice Choice\n *\n * @element dds-notice-choice\n * @fires dds-notice-choice-change\n * The custom event fired when default choice loaded or user change some preferences.\n * The field and value should be taken from the detail object and send it to MRS.\n */\n@customElement(`dds-notice-choice`)\nclass NoticeChoice extends StableSelectorMixin(LitElement) {\n /**\n * properties for passed attributes.\n */\n @property({ type: String, reflect: true, attribute: 'question-choices' })\n questionchoices = '1';\n\n @property({ type: String, attribute: 'country' })\n country = 'US';\n\n @property({ type: String, attribute: 'state' })\n state = '';\n\n @property({ type: String, attribute: 'language' })\n language = 'en';\n\n @property({ type: String, attribute: 'terms-condition-link' })\n termsConditionLink = html``;\n\n @property({ type: String, attribute: 'bpid-legal-text' })\n bpidLegalText = html``;\n\n @property({ type: Boolean, attribute: 'enable-all-opt-in' })\n enableAllOptIn;\n\n @property({ attribute: 'default-values' })\n defaultValues = {};\n\n @property({ type: String, attribute: 'email' })\n email = '';\n\n @property({ type: Boolean, attribute: 'hide-error-message' })\n hideErrorMessage = false;\n\n @property({ type: Boolean, attribute: 'show-legal-notice' })\n showLegalNotice = true;\n\n @property({ type: Object, attribute: false })\n checkboxes = {};\n\n @property({ type: Object, attribute: false })\n ncData: any;\n\n @property({ type: Boolean, attribute: false })\n changed = false;\n\n @property({ type: String, attribute: false })\n fetchedPref = '';\n\n @property({ type: Object, attribute: false })\n optInContent = {};\n\n @property({ type: Boolean, attribute: false })\n preventFormSubmission = false;\n\n /**\n * End properties for passed attributes.\n */\n\n /**\n * properties for local state state management.\n */\n @property({ type: html, attribute: false })\n preText = html``;\n\n @property({ type: html, attribute: false })\n defaultPreText = html``;\n\n @property({ type: Object, attribute: false })\n values = {\n EMAIL: false,\n PHONE: false,\n NC_HIDDEN_EMAIL: worldWideContent.cc_default_status,\n NC_HIDDEN_PHONE: worldWideContent.cc_default_status,\n };\n\n @property({ reflect: true })\n hiddenEmail = '';\n\n @property({ reflect: true })\n hiddenPhone = '';\n\n prepareCheckboxes() {\n if (this.ncData) {\n const OptInContent = this.ncData;\n this.preText = OptInContent.preText;\n this.defaultPreText = OptInContent.preText;\n const newCheckboxes = this._buildCheckboxes();\n this.checkboxes = newCheckboxes;\n this.performUpdate();\n }\n }\n defaultLoadContent() {\n loadContent(\n 'en',\n (ncData) => {\n this.ncData = ncData;\n this.prepareCheckboxes();\n this.countryChanged();\n },\n (error) => {\n console.error('error loading content', error);\n }\n );\n }\n connectedCallback() {\n super.connectedCallback();\n const [language] = this.language.split(/[-_]/);\n\n let defaultLanguage = 'en';\n if (supportedLanguages(this.language)) {\n defaultLanguage = supportedLanguages(this.language);\n } else if (supportedLanguages(language)) {\n defaultLanguage = supportedLanguages(language);\n }\n\n loadContent(\n defaultLanguage,\n (ncData) => {\n this.ncData = ncData;\n this.prepareCheckboxes();\n this.countryChanged();\n },\n () => {\n this.defaultLoadContent();\n }\n );\n }\n setDefaultSelections() {\n if (!this.enableAllOptIn && this.checkboxes) {\n const newValues = { ...this.values };\n Object.keys(this.checkboxes).forEach((key) => {\n const option = this._getOptionByQuestion(key);\n newValues[key] = !!(\n option.checked === 'true' || option.checked === true\n );\n if (\n this.defaultValues &&\n Object.prototype.hasOwnProperty.call(this.defaultValues, key)\n ) {\n newValues[key] = this.defaultValues[key];\n }\n const hiddenFieldName = `NC_HIDDEN_${key}`;\n newValues[hiddenFieldName] = option[hiddenFieldName];\n\n this._onChange(hiddenFieldName, newValues[key] ? 'OPT_IN' : 'OPT_OUT');\n });\n if (JSON.stringify(this.values) !== JSON.stringify(newValues)) {\n this.values = newValues;\n }\n }\n }\n countryChangeAction() {\n const splitValue = this.language;\n if (splitValue == 'en') {\n this.preText = this.preTextTemplate();\n }\n this.preventFormSubmission = false;\n if (this.ncData?.mandatoryCheckbox[this.country?.toLocaleLowerCase()]) {\n this.preventFormSubmission = true;\n this._onChange('preventFormSubmission', 'formSubmissionNo');\n }\n /**\n * @description if the user already interacted with the checkboxes,\n * skip country default selection.\n */\n if (!this.changed && !this.fetchedPref) {\n /**\n * @description\n * change checkbox checked option based on new country.\n */\n this.setDefaultSelections();\n }\n }\n countryChanged() {\n resetToWorldWideContent();\n this.countryChangeAction();\n }\n /**\n *\n * @param name name of the attribute\n * @param oldVal old value of the attribute\n * @param newVal new value of the attrbute\n */\n attributeChangedCallback(name, oldVal, newVal) {\n const hasValue = newVal !== null && oldVal !== null;\n super.attributeChangedCallback(name, oldVal, newVal);\n switch (name) {\n case 'question-choices': {\n // Reload checkbox options when questionchoices changed\n if (oldVal !== newVal) {\n this.prepareCheckboxes();\n this.setDefaultSelections();\n }\n break;\n }\n case 'language': {\n // load content when locale changed.\n const [language] = newVal.split(/[-_]/);\n\n let defaultLanguage = 'en';\n if (supportedLanguages(newVal)) {\n defaultLanguage = supportedLanguages(newVal);\n } else if (supportedLanguages(language)) {\n defaultLanguage = supportedLanguages(language);\n }\n\n if (hasValue && oldVal !== newVal) {\n loadContent(\n defaultLanguage,\n (ncData) => {\n this.ncData = ncData;\n this.prepareCheckboxes();\n },\n () => {\n this.defaultLoadContent();\n }\n );\n }\n break;\n }\n case 'country': {\n /**\n * load content when country value changed.\n */\n if (\n hasValue &&\n oldVal !== newVal &&\n countrySettings[newVal.toLocaleLowerCase()]\n ) {\n this.countryChanged();\n }\n break;\n }\n case 'enable-all-opt-in':\n this.setDefaultSelections();\n break;\n case 'email': {\n if (newVal) {\n if (newVal !== this.fetchedPref) {\n // Handle throttle using debounce approach.\n if (emailRegExp.test(newVal)) {\n setTimeout(() => {\n this.emailChanged(newVal);\n }, 1000);\n }\n }\n } else {\n if (this.fetchedPref) {\n this.fetchedPref = newVal;\n }\n }\n break;\n }\n case 'hide-error-message': {\n if (oldVal !== newVal) {\n this.hideErrorMessage = JSON.parse(newVal);\n this.countryBasedLegalNotice();\n }\n\n break;\n }\n case 'show-legal-notice': {\n this.showLegalNotice = JSON.parse(newVal);\n break;\n }\n }\n }\n\n private checkBoxChange($event: any) {\n const id = $event.target.id;\n\n const checked = $event.target.checked;\n const newValues = {\n ...this.values,\n };\n newValues[id] = !!checked;\n this.values = newValues;\n\n this.changed = true;\n const hiddenFieldName = `NC_HIDDEN_${id}`;\n const hiddenFieldStatus = checked ? 'PERMISSION' : 'SUPPRESSION';\n this.values[id] = {};\n this.values[id]['checkBoxStatus'] = hiddenFieldStatus;\n this._onChange(hiddenFieldName, hiddenFieldStatus);\n this._onChange(\n `${hiddenFieldName}_VALUE`,\n `NC_HIDDEN_${hiddenFieldStatus}`\n );\n }\n static get stableSelector() {\n return `${ddsPrefix}--notice-choice`;\n }\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n checkBoxLegalChange($event: any) {\n const legalCheckbox = $event.target;\n const isChecked = legalCheckbox.checked;\n const legalTextError = legalCheckbox.parentNode.querySelector('.nc-error');\n const qChinaPIPl = isChecked ? 'qChinaPIPlYes' : 'qChinaPIPlNo';\n\n if (legalTextError) {\n legalTextError.style.display = isChecked ? 'none' : '';\n }\n\n legalCheckbox.value = isChecked ? 1 : 0;\n this.preventFormSubmission = !isChecked;\n const preventFormSubmissionValue = isChecked\n ? 'formSubmissionYes'\n : 'formSubmissionNo';\n this._onChange('preventFormSubmission', preventFormSubmissionValue);\n this._onChange('Q_CHINA_PIPL', qChinaPIPl);\n }\n\n countryBasedLegalNotice() {\n const country = this.country.toLocaleLowerCase();\n const itemTemplates: Array<TemplateResult> = [];\n\n if (\n this.ncData?.mandatoryCheckbox &&\n this.ncData.mandatoryCheckbox[country]\n ) {\n const mandatoryCheckboxes: { [key: string]: any } =\n this.ncData.mandatoryCheckbox[country];\n\n for (const [key, mandatoryCheckbox] of Object.entries(\n mandatoryCheckboxes\n )) {\n const legalTextName = key.replace(/([A-Z]+)/g, '-$1').toLowerCase();\n let mandatoryCheckboxTemplate = html`\n <span>\n <div class=\"${prefix}--form-item bx--checkbox-wrapper\">\n <p part=${legalTextName} class=${legalTextName}>\n <input\n type=\"checkbox\"\n class=\"${prefix}--checkbox\"\n id=\"${mandatoryCheckbox.mrs_field}\"\n name=\"${mandatoryCheckbox.mrs_field}\"\n @change=\"${this.checkBoxLegalChange}\" />\n <label\n for=\"${mandatoryCheckbox.mrs_field}\"\n class=\"${prefix}--checkbox-label ${prefix}--nc__checkbox-${mandatoryCheckbox.mrs_field}\"\n ><span class=\"${prefix}--checkbox-label-text\" dir=\"auto\"\n >${mandatoryCheckbox.text}\n </span>\n </label>\n ${!this.hideErrorMessage && this.preventFormSubmission\n ? html`<span\n class=\"nc-error\"\n style=\"color:#da1e28;font-size:.75rem\"\n >${mandatoryCheckbox.error}</span\n >`\n : ''}\n </p>\n </div>\n </span>\n `;\n itemTemplates.push(mandatoryCheckboxTemplate);\n }\n }\n\n return itemTemplates;\n }\n\n checkBoxTemplate(checkbox, checked, hiddenBox) {\n this._onChange(`${hiddenBox.id}_VALUE`, `NC_HIDDEN_${hiddenBox.value}`);\n return html`<span>\n <div class=\"${prefix}--form-item bx--checkbox-wrapper\">\n <input\n type=\"checkbox\"\n class=\"${prefix}--checkbox\"\n id=\"${checkbox.id}\"\n name=\"${checkbox.id}\"\n ?checked=${checked}\n @change=\"${this.checkBoxChange}\" />\n <label\n for=\"${checkbox.id}\"\n class=\"${prefix}--checkbox-label ${prefix}--nc__checkbox-${checkbox.id}\"\n ><span class=\"${prefix}--checkbox-label-text\" dir=\"auto\"\n >${checkbox.labelText}\n </span>\n </label>\n <input\n type=\"hidden\"\n id=${hiddenBox.id}\n name=${hiddenBox.id}\n value=${hiddenBox.value} />\n </div>\n </span>`;\n }\n preTextTemplate() {\n if (this.ncData) {\n const country = this.country?.toLocaleLowerCase();\n const ecmTranslateContent = this.ncData;\n let preText = ecmTranslateContent.preText;\n\n if (ecmTranslateContent.state[country]) {\n const state = this.state.toLocaleLowerCase() || '';\n if (\n country === 'us' &&\n (state === 'ca' || state === '' || typeof state === 'undefined')\n ) {\n preText = ecmTranslateContent.state[country]['ca'].preText;\n } else {\n preText = ecmTranslateContent.state[country][state]\n ? ecmTranslateContent.state[country][state].preText\n : ecmTranslateContent.preText;\n }\n }\n\n if (ecmTranslateContent.country[country]) {\n preText = ecmTranslateContent.country[country.toLowerCase()].preText;\n }\n\n return html`${unsafeHTML(preText)}`;\n } else {\n return html``;\n }\n }\n postTextTemplate() {\n if (this.ncData) {\n const OtherPreferences = this.ncData.trialPrivacyText;\n let postText = this.ncData.postText;\n\n if (postText) {\n postText = '<p part=\"ncPostText\">' + postText + '</p>';\n }\n\n if (!this.termsConditionLink.strings && this.termsConditionLink) {\n let originalValue = OtherPreferences;\n const matchedValue = originalValue.match(/<tc>.*<\\/tc>/g);\n if (matchedValue) {\n const anrTagHtml = matchedValue[0].replace(/<tc>|<\\/tc>/g, '');\n const link = `<a href='${this.termsConditionLink}' target='_blank' class='ibm-tooltip' >${anrTagHtml}</a>`;\n const reg = new RegExp('<tc>' + anrTagHtml + '</tc>', 'g');\n\n postText =\n postText +\n originalValue\n .replace(reg, link)\n .replace(/<p>/g, '<p part=\"nc-trial-text\" id=\"nc-trial-text\">');\n }\n }\n if (postText !== '') {\n postText =\n \"<div part='ncPostTextContainer' id='ncPostTextContainer'>\" +\n postText +\n '</div>';\n }\n return html`${unsafeHTML(postText)}`;\n } else {\n return html``;\n }\n }\n getBpidLegalText() {\n if (this.bpidLegalText) {\n return html`<p>${this.bpidLegalText}</p>`;\n } else {\n return ``;\n }\n }\n render() {\n return html`<section class=\"${prefix}--nc\">\n <p part='ncHeading' id=\"ncHeading\" class=\"${ddsPrefix}--nc__pre-text\">${\n this.showLegalNotice ? this.countryBasedLegalNotice() : ''\n } ${this.preTextTemplate()} </p>\n <div part='${prefix}--checkbox-group' class=\"${prefix}--checkbox-group\">\n ${\n Object.keys(this.checkboxes).length !== 0\n ? Object.keys(this.checkboxes).length > 0 &&\n Object.keys(this.checkboxes).map((key) => {\n const checked = this.values[key];\n const checkbox = this.checkboxes[key];\n const hiddenBox = {\n id: 'NC_HIDDEN_' + key,\n value: this.values[key]['checkBoxStatus']\n ? this.values[key]['checkBoxStatus']\n : this.values[key]\n ? 'PERMISSION'\n : 'UNCHANGED',\n };\n key === 'EMAIL' ? (this.hiddenEmail = hiddenBox.value) : '';\n key === 'PHONE' ? (this.hiddenPhone = hiddenBox.value) : '';\n return this.checkBoxTemplate(checkbox, checked, hiddenBox);\n })\n : ''\n }\n\n </div>\n <div part='${prefix}--nc__post-text' class=\"${prefix}--nc__post-text\"\n >${this.postTextTemplate()}</div>\n <input type='hidden' id=\"preventFormSubmission\" name=\"preventFormSubmission\" value=${\n this.preventFormSubmission\n } />\n </div>\n ${this.getBpidLegalText()}\n </section>`;\n }\n protected emailChanged(email) {\n if (this.changed === false) {\n checkPreferencesv3(email).then((response) => {\n const questionChoiceStatus =\n countrySettings[this.country.toLocaleLowerCase()];\n\n if (response === 'S' && questionChoiceStatus.email === 'opt-out') {\n this.values = {\n ...this.values,\n EMAIL: false,\n ...{ checkBoxStatus: 'UNCHANGED' },\n };\n this._onChange('NC_HIDDEN_EMAIL', null);\n } else {\n this.values = {\n ...this.values,\n EMAIL: questionChoiceStatus.email === 'opt-out' ? true : false,\n ...{\n checkBoxStatus:\n questionChoiceStatus.email === 'opt-out'\n ? 'PERMISSION'\n : 'UNCHANGED',\n },\n };\n this._onChange('NC_HIDDEN_EMAIL', null);\n }\n });\n }\n }\n protected _getOptionByQuestion = (question) => {\n const questionChoiceStatus = this.country\n ? countrySettings[this.country.toLocaleLowerCase()]\n : { email: 'opt-in', phone: 'opt-in' };\n\n let option;\n switch (question) {\n case 'EMAIL': {\n option = {\n id: '0',\n checked: questionChoiceStatus.email === 'opt-out' ? true : false,\n optionTextPost: this.ncData.email,\n NC_HIDDEN_EMAIL:\n questionChoiceStatus.email === 'opt-out' ? 'OPT_OUT' : 'OPT_IN',\n };\n break;\n }\n case 'PHONE': {\n option = {\n id: '1',\n checked: questionChoiceStatus.phone === 'opt-out' ? true : false,\n optionTextPost: this.ncData.telephone,\n NC_HIDDEN_PHONE:\n questionChoiceStatus.phone === 'opt-out' ? 'OPT_OUT' : 'OPT_IN',\n };\n break;\n }\n\n default: {\n option = {\n id: '0',\n checked: questionChoiceStatus.email === 'opt-out' ? true : false,\n optionTextPost: this.ncData.email,\n NC_HIDDEN_EMAIL:\n questionChoiceStatus.email === 'opt-out' ? 'OPT_OUT' : 'OPT_IN',\n };\n break;\n }\n }\n\n return option;\n };\n protected _buildCheckboxes() {\n const fieldElements: any = {};\n const fieldCollections = {\n EMAIL: {\n id: 'EMAIL',\n labelText: this._getOptionByQuestion('EMAIL').optionTextPost,\n },\n PHONE: {\n id: 'PHONE',\n labelText: this._getOptionByQuestion('PHONE').optionTextPost,\n },\n };\n if (this.questionchoices) {\n // by email\n if (this.questionchoices.indexOf('1') > -1) {\n fieldElements.EMAIL = fieldCollections.EMAIL;\n }\n // by Phone\n if (this.questionchoices.indexOf('2') > -1) {\n fieldElements.PHONE = fieldCollections.PHONE;\n }\n }\n return fieldElements;\n }\n\n _onChange(field: string, value: string | null) {\n const pwsFieldsMap = {\n NC_HIDDEN_EMAIL: 'permission_email',\n NC_HIDDEN_PHONE: 'permission_phone',\n preventFormSubmission: 'preventFormSubmission',\n Q_CHINA_PIPL: 'Q_CHINA_PIPL',\n NC_HIDDEN_EMAIL_VALUE: 'NC_HIDDEN_EMAIL',\n NC_HIDDEN_PHONE_VALUE: 'NC_HIDDEN_PHONE',\n };\n\n if (Object.prototype.hasOwnProperty.call(pwsFieldsMap, field)) {\n field = pwsFieldsMap[field];\n }\n\n const init = {\n bubbles: true,\n detail: {\n field,\n value: pwsValueMap(value),\n },\n };\n this.dispatchEvent(\n new CustomEvent(`${ddsPrefix}-notice-choice-change`, init)\n );\n }\n}\n\nexport default NoticeChoice;\n"]}
|
|
1
|
+
{"version":3,"sources":["components/notice-choice/notice-choice.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAQ,UAAU,EAAY,cAAc,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBzE;;;;;;;GAOG;AACH,cACM,YAAa,SAAQ,iBAA+B;IACxD;;OAEG;IAEH,eAAe,SAAO;IAGtB,OAAO,SAAQ;IAGf,KAAK,SAAM;IAGX,QAAQ,SAAQ;IAGhB,kBAAkB,iBAAU;IAG5B,aAAa,iBAAU;IAGvB,cAAc,MAAC;IAGf,aAAa,KAAM;IAGnB,KAAK,SAAM;IAGX,gBAAgB,UAAS;IAGzB,eAAe,UAAQ;IAGvB,UAAU,KAAM;IAGhB,MAAM,EAAE,GAAG,CAAC;IAGZ,OAAO,UAAS;IAGhB,WAAW,SAAM;IAGjB,YAAY,KAAM;IAGlB,qBAAqB,UAAS;IAG9B,4BAA4B;;;MAA2C;IAEvE;;OAEG;IAEH;;OAEG;IAEH,OAAO,iBAAU;IAGjB,cAAc,iBAAU;IAGxB,MAAM;;;;;MAKJ;IAGF,WAAW,SAAM;IAGjB,WAAW,SAAM;IAEjB,iBAAiB;IAUjB,kBAAkB;IAalB,iBAAiB;IAuBjB,oBAAoB;IAwBpB,mBAAmB;IAkCnB,cAAc;IAId;;;;;OAKG;IACH,wBAAwB,CAAC,IAAI,KAAA,EAAE,MAAM,KAAA,EAAE,MAAM,KAAA;IAqF7C,OAAO,CAAC,cAAc;IAqBtB,MAAM,KAAK,cAAc,WAExB;IACD,MAAM,CAAC,MAAM,MAAU;IACvB,mBAAmB,CAAC,MAAM,EAAE,GAAG;IA2B/B,uBAAuB;IAkDvB,gBAAgB,CAAC,QAAQ,KAAA,EAAE,OAAO,KAAA,EAAE,SAAS,KAAA;IA0B7C,eAAe;IA6Bf,gBAAgB;IAmChB,gBAAgB;IAOhB,MAAM;IAqDN,SAAS,CAAC,YAAY,CAAC,KAAK,KAAA;IA6B5B,SAAS,CAAC,oBAAoB,yBAyC5B;IACF,SAAS,CAAC,gBAAgB;IAyB1B,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAyB9C;AAED,eAAe,YAAY,CAAC","file":"notice-choice.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { checkPreferencesv3, loadContent } from './services';\nimport { html, LitElement, property, TemplateResult } from 'lit-element';\nimport {\n emailRegExp,\n pwsValueMap,\n resetToWorldWideContent,\n supportedLanguages,\n specialCountryBasedText,\n} from './utils';\nimport countrySettings from './country-settings';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport settings from 'carbon-components/es/globals/js/settings';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport styles from './notice-choice.scss';\nimport { unsafeHTML } from 'lit-html/directives/unsafe-html';\nimport { worldWideContent } from './world-wide-content';\nimport { carbonElement as customElement } from '../../internal/vendor/@carbon/web-components/globals/decorators/carbon-element';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\nconst { prefix } = settings;\n\n/**\n * Notice Choice\n *\n * @element dds-notice-choice\n * @fires dds-notice-choice-change\n * The custom event fired when default choice loaded or user change some preferences.\n * The field and value should be taken from the detail object and send it to MRS.\n */\n@customElement(`dds-notice-choice`)\nclass NoticeChoice extends StableSelectorMixin(LitElement) {\n /**\n * properties for passed attributes.\n */\n @property({ type: String, reflect: true, attribute: 'question-choices' })\n questionchoices = '1';\n\n @property({ type: String, attribute: 'country' })\n country = 'US';\n\n @property({ type: String, attribute: 'state' })\n state = '';\n\n @property({ type: String, attribute: 'language' })\n language = 'en';\n\n @property({ type: String, attribute: 'terms-condition-link' })\n termsConditionLink = html``;\n\n @property({ type: String, attribute: 'bpid-legal-text' })\n bpidLegalText = html``;\n\n @property({ type: Boolean, attribute: 'enable-all-opt-in' })\n enableAllOptIn;\n\n @property({ attribute: 'default-values' })\n defaultValues = {};\n\n @property({ type: String, attribute: 'email' })\n email = '';\n\n @property({ type: Boolean, attribute: 'hide-error-message' })\n hideErrorMessage = false;\n\n @property({ type: Boolean, attribute: 'show-legal-notice' })\n showLegalNotice = true;\n\n @property({ type: Object, attribute: false })\n checkboxes = {};\n\n @property({ type: Object, attribute: false })\n ncData: any;\n\n @property({ type: Boolean, attribute: false })\n changed = false;\n\n @property({ type: String, attribute: false })\n fetchedPref = '';\n\n @property({ type: Object, attribute: false })\n optInContent = {};\n\n @property({ type: Boolean, attribute: false })\n preventFormSubmission = false;\n\n @property({ type: Object, attribute: false })\n isMandatoryCheckboxDisplayed = { countryCode: '', isDisplayed: false };\n\n /**\n * End properties for passed attributes.\n */\n\n /**\n * properties for local state state management.\n */\n @property({ type: html, attribute: false })\n preText = html``;\n\n @property({ type: html, attribute: false })\n defaultPreText = html``;\n\n @property({ type: Object, attribute: false })\n values = {\n EMAIL: false,\n PHONE: false,\n NC_HIDDEN_EMAIL: worldWideContent.cc_default_status,\n NC_HIDDEN_PHONE: worldWideContent.cc_default_status,\n };\n\n @property({ reflect: true })\n hiddenEmail = '';\n\n @property({ reflect: true })\n hiddenPhone = '';\n\n prepareCheckboxes() {\n if (this.ncData) {\n const OptInContent = this.ncData;\n this.preText = OptInContent.preText;\n this.defaultPreText = OptInContent.preText;\n const newCheckboxes = this._buildCheckboxes();\n this.checkboxes = newCheckboxes;\n this.performUpdate();\n }\n }\n defaultLoadContent() {\n loadContent(\n 'en',\n (ncData) => {\n this.ncData = ncData;\n this.prepareCheckboxes();\n this.countryChanged();\n },\n (error) => {\n console.error('error loading content', error);\n }\n );\n }\n connectedCallback() {\n super.connectedCallback();\n const [language] = this.language.split(/[-_]/);\n\n let defaultLanguage = 'en';\n if (supportedLanguages(this.language)) {\n defaultLanguage = supportedLanguages(this.language);\n } else if (supportedLanguages(language)) {\n defaultLanguage = supportedLanguages(language);\n }\n\n loadContent(\n defaultLanguage,\n (ncData) => {\n this.ncData = ncData;\n this.prepareCheckboxes();\n this.countryChanged();\n },\n () => {\n this.defaultLoadContent();\n }\n );\n }\n setDefaultSelections() {\n if (!this.enableAllOptIn && this.checkboxes) {\n const newValues = { ...this.values };\n Object.keys(this.checkboxes).forEach((key) => {\n const option = this._getOptionByQuestion(key);\n newValues[key] = !!(\n option.checked === 'true' || option.checked === true\n );\n if (\n this.defaultValues &&\n Object.prototype.hasOwnProperty.call(this.defaultValues, key)\n ) {\n newValues[key] = this.defaultValues[key];\n }\n const hiddenFieldName = `NC_HIDDEN_${key}`;\n newValues[hiddenFieldName] = option[hiddenFieldName];\n\n this._onChange(hiddenFieldName, newValues[key] ? 'OPT_IN' : 'OPT_OUT');\n });\n if (JSON.stringify(this.values) !== JSON.stringify(newValues)) {\n this.values = newValues;\n }\n }\n }\n countryChangeAction() {\n const splitValue = this.language;\n if (splitValue == 'en') {\n this.preText = this.preTextTemplate();\n }\n this.preventFormSubmission = false;\n if (this.ncData?.mandatoryCheckbox[this.country?.toLocaleLowerCase()]) {\n const countyCode = this.country?.toLocaleLowerCase();\n const countryBasedText = specialCountryBasedText(countyCode);\n this._onChange(\n this.ncData?.mandatoryCheckbox[countyCode][countryBasedText].mrs_field,\n 'countyBasedCheckedNo'\n );\n\n this.isMandatoryCheckboxDisplayed.countryCode = countyCode;\n this.isMandatoryCheckboxDisplayed.isDisplayed = true;\n\n this.preventFormSubmission = true;\n this._onChange('preventFormSubmission', 'formSubmissionNo');\n } else {\n this._onChange('preventFormSubmission', 'formSubmissionYes');\n }\n /**\n * @description if the user already interacted with the checkboxes,\n * skip country default selection.\n */\n if (!this.changed && !this.fetchedPref) {\n /**\n * @description\n * change checkbox checked option based on new country.\n */\n this.setDefaultSelections();\n }\n }\n countryChanged() {\n resetToWorldWideContent();\n this.countryChangeAction();\n }\n /**\n *\n * @param name name of the attribute\n * @param oldVal old value of the attribute\n * @param newVal new value of the attrbute\n */\n attributeChangedCallback(name, oldVal, newVal) {\n const hasValue = newVal !== null && oldVal !== null;\n super.attributeChangedCallback(name, oldVal, newVal);\n switch (name) {\n case 'question-choices': {\n // Reload checkbox options when questionchoices changed\n if (oldVal !== newVal) {\n this.prepareCheckboxes();\n this.setDefaultSelections();\n }\n break;\n }\n case 'language': {\n // load content when locale changed.\n const [language] = newVal.split(/[-_]/);\n\n let defaultLanguage = 'en';\n if (supportedLanguages(newVal)) {\n defaultLanguage = supportedLanguages(newVal);\n } else if (supportedLanguages(language)) {\n defaultLanguage = supportedLanguages(language);\n }\n\n if (hasValue && oldVal !== newVal) {\n loadContent(\n defaultLanguage,\n (ncData) => {\n this.ncData = ncData;\n this.prepareCheckboxes();\n },\n () => {\n this.defaultLoadContent();\n }\n );\n }\n break;\n }\n case 'country': {\n /**\n * load content when country value changed.\n */\n if (\n hasValue &&\n oldVal !== newVal &&\n countrySettings[newVal.toLocaleLowerCase()]\n ) {\n this.countryChanged();\n }\n break;\n }\n case 'enable-all-opt-in':\n this.setDefaultSelections();\n break;\n case 'email': {\n if (newVal) {\n if (newVal !== this.fetchedPref) {\n // Handle throttle using debounce approach.\n if (emailRegExp.test(newVal)) {\n setTimeout(() => {\n this.emailChanged(newVal);\n }, 1000);\n }\n }\n } else {\n if (this.fetchedPref) {\n this.fetchedPref = newVal;\n }\n }\n break;\n }\n case 'hide-error-message': {\n if (oldVal !== newVal) {\n this.hideErrorMessage = JSON.parse(newVal);\n this.countryBasedLegalNotice();\n }\n\n break;\n }\n case 'show-legal-notice': {\n this.showLegalNotice = JSON.parse(newVal);\n break;\n }\n }\n }\n\n private checkBoxChange($event: any) {\n const id = $event.target.id;\n\n const checked = $event.target.checked;\n const newValues = {\n ...this.values,\n };\n newValues[id] = !!checked;\n this.values = newValues;\n\n this.changed = true;\n const hiddenFieldName = `NC_HIDDEN_${id}`;\n const hiddenFieldStatus = checked ? 'PERMISSION' : 'SUPPRESSION';\n this.values[id] = {};\n this.values[id]['checkBoxStatus'] = hiddenFieldStatus;\n this._onChange(hiddenFieldName, hiddenFieldStatus);\n this._onChange(\n `${hiddenFieldName}_VALUE`,\n `NC_HIDDEN_${hiddenFieldStatus}`\n );\n }\n static get stableSelector() {\n return `${ddsPrefix}--notice-choice`;\n }\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n checkBoxLegalChange($event: any) {\n const legalCheckbox = $event.target;\n const isChecked = legalCheckbox.checked;\n const legalTextError = legalCheckbox.parentNode.querySelector('.nc-error');\n const countyBasedText = isChecked\n ? 'countyBasedCheckedYes'\n : 'countyBasedCheckedNo';\n\n if (legalTextError) {\n legalTextError.style.display = isChecked ? 'none' : '';\n }\n\n const countyCode = this.country?.toLocaleLowerCase();\n const countryBasedText = specialCountryBasedText(countyCode);\n\n legalCheckbox.value = isChecked ? 1 : 0;\n this.preventFormSubmission = !isChecked;\n const preventFormSubmissionValue = isChecked\n ? 'formSubmissionYes'\n : 'formSubmissionNo';\n this._onChange('preventFormSubmission', preventFormSubmissionValue);\n this._onChange(\n this.ncData?.mandatoryCheckbox[countyCode][countryBasedText].mrs_field,\n countyBasedText\n );\n }\n\n countryBasedLegalNotice() {\n const country = this.country.toLocaleLowerCase();\n const itemTemplates: Array<TemplateResult> = [];\n\n if (\n this.ncData?.mandatoryCheckbox &&\n this.ncData.mandatoryCheckbox[country]\n ) {\n const mandatoryCheckboxes: { [key: string]: any } =\n this.ncData.mandatoryCheckbox[country];\n\n for (const [key, mandatoryCheckbox] of Object.entries(\n mandatoryCheckboxes\n )) {\n const legalTextName = key.replace(/([A-Z]+)/g, '-$1').toLowerCase();\n let mandatoryCheckboxTemplate = html`\n <span>\n <div class=\"${prefix}--form-item bx--checkbox-wrapper\">\n <p part=${legalTextName} class=${legalTextName}>\n <input\n type=\"checkbox\"\n class=\"${prefix}--checkbox\"\n id=\"${mandatoryCheckbox.mrs_field}\"\n name=\"${mandatoryCheckbox.mrs_field}\"\n @change=\"${this.checkBoxLegalChange}\" />\n <label\n for=\"${mandatoryCheckbox.mrs_field}\"\n class=\"${prefix}--checkbox-label ${prefix}--nc__checkbox-${mandatoryCheckbox.mrs_field}\"\n ><span class=\"${prefix}--checkbox-label-text\" dir=\"auto\"\n >${mandatoryCheckbox.text}\n </span>\n </label>\n ${!this.hideErrorMessage && this.preventFormSubmission\n ? html`<span\n class=\"nc-error\"\n style=\"color:#da1e28;font-size:.75rem\"\n >${mandatoryCheckbox.error}</span\n >`\n : ''}\n </p>\n </div>\n </span>\n `;\n itemTemplates.push(mandatoryCheckboxTemplate);\n }\n }\n\n return itemTemplates;\n }\n\n checkBoxTemplate(checkbox, checked, hiddenBox) {\n this._onChange(`${hiddenBox.id}_VALUE`, `NC_HIDDEN_${hiddenBox.value}`);\n return html`<span>\n <div class=\"${prefix}--form-item bx--checkbox-wrapper\">\n <input\n type=\"checkbox\"\n class=\"${prefix}--checkbox\"\n id=\"${checkbox.id}\"\n name=\"${checkbox.id}\"\n ?checked=${checked}\n @change=\"${this.checkBoxChange}\" />\n <label\n for=\"${checkbox.id}\"\n class=\"${prefix}--checkbox-label ${prefix}--nc__checkbox-${checkbox.id}\"\n ><span class=\"${prefix}--checkbox-label-text\" dir=\"auto\"\n >${checkbox.labelText}\n </span>\n </label>\n <input\n type=\"hidden\"\n id=${hiddenBox.id}\n name=${hiddenBox.id}\n value=${hiddenBox.value} />\n </div>\n </span>`;\n }\n preTextTemplate() {\n if (this.ncData) {\n const country = this.country?.toLocaleLowerCase();\n const ecmTranslateContent = this.ncData;\n let preText = ecmTranslateContent.preText;\n\n if (ecmTranslateContent.state[country]) {\n const state = this.state.toLocaleLowerCase() || '';\n if (\n country === 'us' &&\n (state === 'ca' || state === '' || typeof state === 'undefined')\n ) {\n preText = ecmTranslateContent.state[country]['ca'].preText;\n } else {\n preText = ecmTranslateContent.state[country][state]\n ? ecmTranslateContent.state[country][state].preText\n : ecmTranslateContent.preText;\n }\n }\n\n if (ecmTranslateContent.country[country]) {\n preText = ecmTranslateContent.country[country.toLowerCase()].preText;\n }\n\n return html`${unsafeHTML(preText)}`;\n } else {\n return html``;\n }\n }\n postTextTemplate() {\n if (this.ncData) {\n const OtherPreferences = this.ncData.trialPrivacyText;\n let postText = this.ncData.postText;\n\n if (postText) {\n postText = '<p part=\"ncPostText\">' + postText + '</p>';\n }\n\n if (!this.termsConditionLink.strings && this.termsConditionLink) {\n let originalValue = OtherPreferences;\n const matchedValue = originalValue.match(/<tc>.*<\\/tc>/g);\n if (matchedValue) {\n const anrTagHtml = matchedValue[0].replace(/<tc>|<\\/tc>/g, '');\n const link = `<a href='${this.termsConditionLink}' target='_blank' class='ibm-tooltip' >${anrTagHtml}</a>`;\n const reg = new RegExp('<tc>' + anrTagHtml + '</tc>', 'g');\n\n postText =\n postText +\n originalValue\n .replace(reg, link)\n .replace(/<p>/g, '<p part=\"nc-trial-text\" id=\"nc-trial-text\">');\n }\n }\n if (postText !== '') {\n postText =\n \"<div part='ncPostTextContainer' id='ncPostTextContainer'>\" +\n postText +\n '</div>';\n }\n return html`${unsafeHTML(postText)}`;\n } else {\n return html``;\n }\n }\n getBpidLegalText() {\n if (this.bpidLegalText) {\n return html`<p>${this.bpidLegalText}</p>`;\n } else {\n return ``;\n }\n }\n render() {\n if (\n this.isMandatoryCheckboxDisplayed.isDisplayed &&\n this.country.toLocaleLowerCase() !==\n this.isMandatoryCheckboxDisplayed.countryCode\n ) {\n const countryBasedText = specialCountryBasedText(\n this.isMandatoryCheckboxDisplayed.countryCode\n );\n\n this._onChange(\n this.ncData?.mandatoryCheckbox[\n this.isMandatoryCheckboxDisplayed.countryCode\n ][countryBasedText].mrs_field,\n 'countyBasedCheckedNo'\n );\n }\n return html`<section class=\"${prefix}--nc\">\n <p part='ncHeading' id=\"ncHeading\" class=\"${ddsPrefix}--nc__pre-text\">${\n this.showLegalNotice ? this.countryBasedLegalNotice() : ''\n } ${this.preTextTemplate()} </p>\n <div part='${prefix}--checkbox-group' class=\"${prefix}--checkbox-group\">\n ${\n Object.keys(this.checkboxes).length !== 0\n ? Object.keys(this.checkboxes).length > 0 &&\n Object.keys(this.checkboxes).map((key) => {\n const checked = this.values[key];\n const checkbox = this.checkboxes[key];\n const hiddenBox = {\n id: 'NC_HIDDEN_' + key,\n value: this.values[key]['checkBoxStatus']\n ? this.values[key]['checkBoxStatus']\n : this.values[key]\n ? 'PERMISSION'\n : 'UNCHANGED',\n };\n key === 'EMAIL' ? (this.hiddenEmail = hiddenBox.value) : '';\n key === 'PHONE' ? (this.hiddenPhone = hiddenBox.value) : '';\n return this.checkBoxTemplate(checkbox, checked, hiddenBox);\n })\n : ''\n }\n\n </div>\n <div part='${prefix}--nc__post-text' class=\"${prefix}--nc__post-text\"\n >${this.postTextTemplate()}</div>\n <input type='hidden' id=\"preventFormSubmission\" name=\"preventFormSubmission\" value=${\n this.preventFormSubmission\n } />\n </div>\n ${this.getBpidLegalText()}\n </section>`;\n }\n protected emailChanged(email) {\n if (this.changed === false) {\n checkPreferencesv3(email).then((response) => {\n const questionChoiceStatus =\n countrySettings[this.country.toLocaleLowerCase()];\n\n if (response === 'S' && questionChoiceStatus.email === 'opt-out') {\n this.values = {\n ...this.values,\n EMAIL: false,\n ...{ checkBoxStatus: 'UNCHANGED' },\n };\n this._onChange('NC_HIDDEN_EMAIL', null);\n } else {\n this.values = {\n ...this.values,\n EMAIL: questionChoiceStatus.email === 'opt-out' ? true : false,\n ...{\n checkBoxStatus:\n questionChoiceStatus.email === 'opt-out'\n ? 'PERMISSION'\n : 'UNCHANGED',\n },\n };\n this._onChange('NC_HIDDEN_EMAIL', null);\n }\n });\n }\n }\n protected _getOptionByQuestion = (question) => {\n const questionChoiceStatus = this.country\n ? countrySettings[this.country.toLocaleLowerCase()]\n : { email: 'opt-in', phone: 'opt-in' };\n\n let option;\n switch (question) {\n case 'EMAIL': {\n option = {\n id: '0',\n checked: questionChoiceStatus.email === 'opt-out' ? true : false,\n optionTextPost: this.ncData.email,\n NC_HIDDEN_EMAIL:\n questionChoiceStatus.email === 'opt-out' ? 'OPT_OUT' : 'OPT_IN',\n };\n break;\n }\n case 'PHONE': {\n option = {\n id: '1',\n checked: questionChoiceStatus.phone === 'opt-out' ? true : false,\n optionTextPost: this.ncData.telephone,\n NC_HIDDEN_PHONE:\n questionChoiceStatus.phone === 'opt-out' ? 'OPT_OUT' : 'OPT_IN',\n };\n break;\n }\n\n default: {\n option = {\n id: '0',\n checked: questionChoiceStatus.email === 'opt-out' ? true : false,\n optionTextPost: this.ncData.email,\n NC_HIDDEN_EMAIL:\n questionChoiceStatus.email === 'opt-out' ? 'OPT_OUT' : 'OPT_IN',\n };\n break;\n }\n }\n\n return option;\n };\n protected _buildCheckboxes() {\n const fieldElements: any = {};\n const fieldCollections = {\n EMAIL: {\n id: 'EMAIL',\n labelText: this._getOptionByQuestion('EMAIL').optionTextPost,\n },\n PHONE: {\n id: 'PHONE',\n labelText: this._getOptionByQuestion('PHONE').optionTextPost,\n },\n };\n if (this.questionchoices) {\n // by email\n if (this.questionchoices.indexOf('1') > -1) {\n fieldElements.EMAIL = fieldCollections.EMAIL;\n }\n // by Phone\n if (this.questionchoices.indexOf('2') > -1) {\n fieldElements.PHONE = fieldCollections.PHONE;\n }\n }\n return fieldElements;\n }\n\n _onChange(field: string, value: string | null) {\n const pwsFieldsMap = {\n NC_HIDDEN_EMAIL: 'permission_email',\n NC_HIDDEN_PHONE: 'permission_phone',\n preventFormSubmission: 'preventFormSubmission',\n Q_CHINA_PIPL: 'Q_CHINA_PIPL',\n NC_HIDDEN_EMAIL_VALUE: 'NC_HIDDEN_EMAIL',\n NC_HIDDEN_PHONE_VALUE: 'NC_HIDDEN_PHONE',\n };\n\n if (Object.prototype.hasOwnProperty.call(pwsFieldsMap, field)) {\n field = pwsFieldsMap[field];\n }\n\n const init = {\n bubbles: true,\n detail: {\n field,\n value: pwsValueMap(value),\n },\n };\n this.dispatchEvent(\n new CustomEvent(`${ddsPrefix}-notice-choice-change`, init)\n );\n }\n}\n\nexport default NoticeChoice;\n"]}
|
|
@@ -28,8 +28,8 @@ var _unsafeHtml = require("lit-html/directives/unsafe-html");
|
|
|
28
28
|
var _worldWideContent = require("./world-wide-content.js");
|
|
29
29
|
var _carbonElement = require("../../internal/vendor/@carbon/web-components/globals/decorators/carbon-element.js");
|
|
30
30
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
|
|
31
|
-
function ownKeys(
|
|
32
|
-
function _objectSpread(
|
|
31
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33
33
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
34
34
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /**
|
|
35
35
|
* @license
|
|
@@ -241,6 +241,19 @@ var NoticeChoice = (0, _decorate2["default"])([(0, _carbonElement.carbonElement)
|
|
|
241
241
|
value: function value() {
|
|
242
242
|
return false;
|
|
243
243
|
}
|
|
244
|
+
}, {
|
|
245
|
+
kind: "field",
|
|
246
|
+
decorators: [(0, _litElement.property)({
|
|
247
|
+
type: Object,
|
|
248
|
+
attribute: false
|
|
249
|
+
})],
|
|
250
|
+
key: "isMandatoryCheckboxDisplayed",
|
|
251
|
+
value: function value() {
|
|
252
|
+
return {
|
|
253
|
+
countryCode: '',
|
|
254
|
+
isDisplayed: false
|
|
255
|
+
};
|
|
256
|
+
}
|
|
244
257
|
}, {
|
|
245
258
|
kind: "field",
|
|
246
259
|
decorators: [(0, _litElement.property)({
|
|
@@ -387,8 +400,16 @@ var NoticeChoice = (0, _decorate2["default"])([(0, _carbonElement.carbonElement)
|
|
|
387
400
|
}
|
|
388
401
|
this.preventFormSubmission = false;
|
|
389
402
|
if ((_this$ncData = this.ncData) !== null && _this$ncData !== void 0 && _this$ncData.mandatoryCheckbox[(_this$country = this.country) === null || _this$country === void 0 ? void 0 : _this$country.toLocaleLowerCase()]) {
|
|
403
|
+
var _this$country2, _this$ncData2;
|
|
404
|
+
var countyCode = (_this$country2 = this.country) === null || _this$country2 === void 0 ? void 0 : _this$country2.toLocaleLowerCase();
|
|
405
|
+
var countryBasedText = (0, _utils.specialCountryBasedText)(countyCode);
|
|
406
|
+
this._onChange((_this$ncData2 = this.ncData) === null || _this$ncData2 === void 0 ? void 0 : _this$ncData2.mandatoryCheckbox[countyCode][countryBasedText].mrs_field, 'countyBasedCheckedNo');
|
|
407
|
+
this.isMandatoryCheckboxDisplayed.countryCode = countyCode;
|
|
408
|
+
this.isMandatoryCheckboxDisplayed.isDisplayed = true;
|
|
390
409
|
this.preventFormSubmission = true;
|
|
391
410
|
this._onChange('preventFormSubmission', 'formSubmissionNo');
|
|
411
|
+
} else {
|
|
412
|
+
this._onChange('preventFormSubmission', 'formSubmissionYes');
|
|
392
413
|
}
|
|
393
414
|
/**
|
|
394
415
|
* @description if the user already interacted with the checkboxes,
|
|
@@ -536,27 +557,30 @@ var NoticeChoice = (0, _decorate2["default"])([(0, _carbonElement.carbonElement)
|
|
|
536
557
|
key: "checkBoxLegalChange",
|
|
537
558
|
value: // `styles` here is a `CSSResult` generated by custom WebPack loader
|
|
538
559
|
function checkBoxLegalChange($event) {
|
|
560
|
+
var _this$country3, _this$ncData3;
|
|
539
561
|
var legalCheckbox = $event.target;
|
|
540
562
|
var isChecked = legalCheckbox.checked;
|
|
541
563
|
var legalTextError = legalCheckbox.parentNode.querySelector('.nc-error');
|
|
542
|
-
var
|
|
564
|
+
var countyBasedText = isChecked ? 'countyBasedCheckedYes' : 'countyBasedCheckedNo';
|
|
543
565
|
if (legalTextError) {
|
|
544
566
|
legalTextError.style.display = isChecked ? 'none' : '';
|
|
545
567
|
}
|
|
568
|
+
var countyCode = (_this$country3 = this.country) === null || _this$country3 === void 0 ? void 0 : _this$country3.toLocaleLowerCase();
|
|
569
|
+
var countryBasedText = (0, _utils.specialCountryBasedText)(countyCode);
|
|
546
570
|
legalCheckbox.value = isChecked ? 1 : 0;
|
|
547
571
|
this.preventFormSubmission = !isChecked;
|
|
548
572
|
var preventFormSubmissionValue = isChecked ? 'formSubmissionYes' : 'formSubmissionNo';
|
|
549
573
|
this._onChange('preventFormSubmission', preventFormSubmissionValue);
|
|
550
|
-
this._onChange(
|
|
574
|
+
this._onChange((_this$ncData3 = this.ncData) === null || _this$ncData3 === void 0 ? void 0 : _this$ncData3.mandatoryCheckbox[countyCode][countryBasedText].mrs_field, countyBasedText);
|
|
551
575
|
}
|
|
552
576
|
}, {
|
|
553
577
|
kind: "method",
|
|
554
578
|
key: "countryBasedLegalNotice",
|
|
555
579
|
value: function countryBasedLegalNotice() {
|
|
556
|
-
var _this$
|
|
580
|
+
var _this$ncData4;
|
|
557
581
|
var country = this.country.toLocaleLowerCase();
|
|
558
582
|
var itemTemplates = [];
|
|
559
|
-
if ((_this$
|
|
583
|
+
if ((_this$ncData4 = this.ncData) !== null && _this$ncData4 !== void 0 && _this$ncData4.mandatoryCheckbox && this.ncData.mandatoryCheckbox[country]) {
|
|
560
584
|
var mandatoryCheckboxes = this.ncData.mandatoryCheckbox[country];
|
|
561
585
|
for (var _i = 0, _Object$entries = Object.entries(mandatoryCheckboxes); _i < _Object$entries.length; _i++) {
|
|
562
586
|
var _Object$entries$_i = (0, _slicedToArray2["default"])(_Object$entries[_i], 2),
|
|
@@ -581,8 +605,8 @@ var NoticeChoice = (0, _decorate2["default"])([(0, _carbonElement.carbonElement)
|
|
|
581
605
|
key: "preTextTemplate",
|
|
582
606
|
value: function preTextTemplate() {
|
|
583
607
|
if (this.ncData) {
|
|
584
|
-
var _this$
|
|
585
|
-
var country = (_this$
|
|
608
|
+
var _this$country4;
|
|
609
|
+
var country = (_this$country4 = this.country) === null || _this$country4 === void 0 ? void 0 : _this$country4.toLocaleLowerCase();
|
|
586
610
|
var ecmTranslateContent = this.ncData;
|
|
587
611
|
var preText = ecmTranslateContent.preText;
|
|
588
612
|
if (ecmTranslateContent.state[country]) {
|
|
@@ -644,6 +668,11 @@ var NoticeChoice = (0, _decorate2["default"])([(0, _carbonElement.carbonElement)
|
|
|
644
668
|
key: "render",
|
|
645
669
|
value: function render() {
|
|
646
670
|
var _this6 = this;
|
|
671
|
+
if (this.isMandatoryCheckboxDisplayed.isDisplayed && this.country.toLocaleLowerCase() !== this.isMandatoryCheckboxDisplayed.countryCode) {
|
|
672
|
+
var _this$ncData5;
|
|
673
|
+
var countryBasedText = (0, _utils.specialCountryBasedText)(this.isMandatoryCheckboxDisplayed.countryCode);
|
|
674
|
+
this._onChange((_this$ncData5 = this.ncData) === null || _this$ncData5 === void 0 ? void 0 : _this$ncData5.mandatoryCheckbox[this.isMandatoryCheckboxDisplayed.countryCode][countryBasedText].mrs_field, 'countyBasedCheckedNo');
|
|
675
|
+
}
|
|
647
676
|
return (0, _litElement.html)(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["<section class=\"", "--nc\">\n <p part='ncHeading' id=\"ncHeading\" class=\"", "--nc__pre-text\">", " ", " </p>\n <div part='", "--checkbox-group' class=\"", "--checkbox-group\">\n ", "\n\n </div>\n <div part='", "--nc__post-text' class=\"", "--nc__post-text\"\n >", "</div>\n <input type='hidden' id=\"preventFormSubmission\" name=\"preventFormSubmission\" value=", " />\n </div>\n ", "\n </section>"])), prefix, ddsPrefix, this.showLegalNotice ? this.countryBasedLegalNotice() : '', this.preTextTemplate(), prefix, prefix, Object.keys(this.checkboxes).length !== 0 ? Object.keys(this.checkboxes).length > 0 && Object.keys(this.checkboxes).map(function (key) {
|
|
648
677
|
var checked = _this6.values[key];
|
|
649
678
|
var checkbox = _this6.checkboxes[key];
|
|
@@ -782,6 +811,5 @@ var NoticeChoice = (0, _decorate2["default"])([(0, _carbonElement.carbonElement)
|
|
|
782
811
|
}]
|
|
783
812
|
};
|
|
784
813
|
}, (0, _stableSelector["default"])(_litElement.LitElement));
|
|
785
|
-
var _default = NoticeChoice;
|
|
786
|
-
exports["default"] = _default;
|
|
814
|
+
var _default = exports["default"] = NoticeChoice;
|
|
787
815
|
//# sourceMappingURL=notice-choice.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notice-choice.js","names":["_services","require","_litElement","_utils","_countrySettings","_interopRequireDefault","_settings","_settings2","_stableSelector","_noticeChoiceCss","_unsafeHtml","_worldWideContent","_carbonElement","_templateObject","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","_templateObject9","_templateObject10","_templateObject11","_templateObject12","_templateObject13","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","ddsPrefix","ddsSettings","stablePrefix","prefix","settings","NoticeChoice","_decorate2","customElement","_initialize","_StableSelectorMixin","_StableSelectorMixin2","_inherits2","_super","_this","_classCallCheck2","_len","args","Array","_key","concat","_assertThisInitialized2","_createClass2","F","d","kind","decorators","property","type","String","reflect","attribute","value","html","_taggedTemplateLiteral2","EMAIL","PHONE","NC_HIDDEN_EMAIL","worldWideContent","cc_default_status","NC_HIDDEN_PHONE","prepareCheckboxes","ncData","OptInContent","preText","defaultPreText","newCheckboxes","_buildCheckboxes","checkboxes","performUpdate","defaultLoadContent","_this2","loadContent","countryChanged","error","console","connectedCallback","_this3","_get2","_this$language$split","language","split","_this$language$split2","_slicedToArray2","defaultLanguage","supportedLanguages","setDefaultSelections","_this4","enableAllOptIn","newValues","values","option","_getOptionByQuestion","checked","defaultValues","hasOwnProperty","hiddenFieldName","_onChange","JSON","stringify","countryChangeAction","_this$ncData","_this$country","splitValue","preTextTemplate","preventFormSubmission","mandatoryCheckbox","country","toLocaleLowerCase","changed","fetchedPref","resetToWorldWideContent","attributeChangedCallback","name","oldVal","newVal","_this5","hasValue","_newVal$split","_newVal$split2","countrySettings","emailRegExp","test","setTimeout","emailChanged","hideErrorMessage","parse","countryBasedLegalNotice","showLegalNotice","checkBoxChange","$event","id","hiddenFieldStatus","stableSelector","styles","checkBoxLegalChange","legalCheckbox","isChecked","legalTextError","parentNode","querySelector","qChinaPIPl","style","display","preventFormSubmissionValue","_this$ncData2","itemTemplates","mandatoryCheckboxes","_i","_Object$entries","entries","_Object$entries$_i","legalTextName","replace","toLowerCase","mandatoryCheckboxTemplate","mrs_field","text","checkBoxTemplate","checkbox","hiddenBox","labelText","_this$country2","ecmTranslateContent","state","unsafeHTML","postTextTemplate","OtherPreferences","trialPrivacyText","postText","termsConditionLink","strings","originalValue","matchedValue","match","anrTagHtml","link","reg","RegExp","getBpidLegalText","bpidLegalText","render","_this6","map","hiddenEmail","hiddenPhone","email","_this7","checkPreferencesv3","then","response","questionChoiceStatus","checkBoxStatus","_this8","question","phone","optionTextPost","telephone","fieldElements","fieldCollections","questionchoices","indexOf","field","pwsFieldsMap","Q_CHINA_PIPL","NC_HIDDEN_EMAIL_VALUE","NC_HIDDEN_PHONE_VALUE","init","bubbles","detail","pwsValueMap","dispatchEvent","CustomEvent","StableSelectorMixin","LitElement","_default","exports"],"sources":["components/notice-choice/notice-choice.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { checkPreferencesv3, loadContent } from './services';\nimport { html, LitElement, property, TemplateResult } from 'lit-element';\nimport {\n emailRegExp,\n pwsValueMap,\n resetToWorldWideContent,\n supportedLanguages,\n} from './utils';\nimport countrySettings from './country-settings';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport settings from 'carbon-components/es/globals/js/settings';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport styles from './notice-choice.scss';\nimport { unsafeHTML } from 'lit-html/directives/unsafe-html';\nimport { worldWideContent } from './world-wide-content';\nimport { carbonElement as customElement } from '../../internal/vendor/@carbon/web-components/globals/decorators/carbon-element';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\nconst { prefix } = settings;\n\n/**\n * Notice Choice\n *\n * @element dds-notice-choice\n * @fires dds-notice-choice-change\n * The custom event fired when default choice loaded or user change some preferences.\n * The field and value should be taken from the detail object and send it to MRS.\n */\n@customElement(`dds-notice-choice`)\nclass NoticeChoice extends StableSelectorMixin(LitElement) {\n /**\n * properties for passed attributes.\n */\n @property({ type: String, reflect: true, attribute: 'question-choices' })\n questionchoices = '1';\n\n @property({ type: String, attribute: 'country' })\n country = 'US';\n\n @property({ type: String, attribute: 'state' })\n state = '';\n\n @property({ type: String, attribute: 'language' })\n language = 'en';\n\n @property({ type: String, attribute: 'terms-condition-link' })\n termsConditionLink = html``;\n\n @property({ type: String, attribute: 'bpid-legal-text' })\n bpidLegalText = html``;\n\n @property({ type: Boolean, attribute: 'enable-all-opt-in' })\n enableAllOptIn;\n\n @property({ attribute: 'default-values' })\n defaultValues = {};\n\n @property({ type: String, attribute: 'email' })\n email = '';\n\n @property({ type: Boolean, attribute: 'hide-error-message' })\n hideErrorMessage = false;\n\n @property({ type: Boolean, attribute: 'show-legal-notice' })\n showLegalNotice = true;\n\n @property({ type: Object, attribute: false })\n checkboxes = {};\n\n @property({ type: Object, attribute: false })\n ncData: any;\n\n @property({ type: Boolean, attribute: false })\n changed = false;\n\n @property({ type: String, attribute: false })\n fetchedPref = '';\n\n @property({ type: Object, attribute: false })\n optInContent = {};\n\n @property({ type: Boolean, attribute: false })\n preventFormSubmission = false;\n\n /**\n * End properties for passed attributes.\n */\n\n /**\n * properties for local state state management.\n */\n @property({ type: html, attribute: false })\n preText = html``;\n\n @property({ type: html, attribute: false })\n defaultPreText = html``;\n\n @property({ type: Object, attribute: false })\n values = {\n EMAIL: false,\n PHONE: false,\n NC_HIDDEN_EMAIL: worldWideContent.cc_default_status,\n NC_HIDDEN_PHONE: worldWideContent.cc_default_status,\n };\n\n @property({ reflect: true })\n hiddenEmail = '';\n\n @property({ reflect: true })\n hiddenPhone = '';\n\n prepareCheckboxes() {\n if (this.ncData) {\n const OptInContent = this.ncData;\n this.preText = OptInContent.preText;\n this.defaultPreText = OptInContent.preText;\n const newCheckboxes = this._buildCheckboxes();\n this.checkboxes = newCheckboxes;\n this.performUpdate();\n }\n }\n defaultLoadContent() {\n loadContent(\n 'en',\n (ncData) => {\n this.ncData = ncData;\n this.prepareCheckboxes();\n this.countryChanged();\n },\n (error) => {\n console.error('error loading content', error);\n }\n );\n }\n connectedCallback() {\n super.connectedCallback();\n const [language] = this.language.split(/[-_]/);\n\n let defaultLanguage = 'en';\n if (supportedLanguages(this.language)) {\n defaultLanguage = supportedLanguages(this.language);\n } else if (supportedLanguages(language)) {\n defaultLanguage = supportedLanguages(language);\n }\n\n loadContent(\n defaultLanguage,\n (ncData) => {\n this.ncData = ncData;\n this.prepareCheckboxes();\n this.countryChanged();\n },\n () => {\n this.defaultLoadContent();\n }\n );\n }\n setDefaultSelections() {\n if (!this.enableAllOptIn && this.checkboxes) {\n const newValues = { ...this.values };\n Object.keys(this.checkboxes).forEach((key) => {\n const option = this._getOptionByQuestion(key);\n newValues[key] = !!(\n option.checked === 'true' || option.checked === true\n );\n if (\n this.defaultValues &&\n Object.prototype.hasOwnProperty.call(this.defaultValues, key)\n ) {\n newValues[key] = this.defaultValues[key];\n }\n const hiddenFieldName = `NC_HIDDEN_${key}`;\n newValues[hiddenFieldName] = option[hiddenFieldName];\n\n this._onChange(hiddenFieldName, newValues[key] ? 'OPT_IN' : 'OPT_OUT');\n });\n if (JSON.stringify(this.values) !== JSON.stringify(newValues)) {\n this.values = newValues;\n }\n }\n }\n countryChangeAction() {\n const splitValue = this.language;\n if (splitValue == 'en') {\n this.preText = this.preTextTemplate();\n }\n this.preventFormSubmission = false;\n if (this.ncData?.mandatoryCheckbox[this.country?.toLocaleLowerCase()]) {\n this.preventFormSubmission = true;\n this._onChange('preventFormSubmission', 'formSubmissionNo');\n }\n /**\n * @description if the user already interacted with the checkboxes,\n * skip country default selection.\n */\n if (!this.changed && !this.fetchedPref) {\n /**\n * @description\n * change checkbox checked option based on new country.\n */\n this.setDefaultSelections();\n }\n }\n countryChanged() {\n resetToWorldWideContent();\n this.countryChangeAction();\n }\n /**\n *\n * @param name name of the attribute\n * @param oldVal old value of the attribute\n * @param newVal new value of the attrbute\n */\n attributeChangedCallback(name, oldVal, newVal) {\n const hasValue = newVal !== null && oldVal !== null;\n super.attributeChangedCallback(name, oldVal, newVal);\n switch (name) {\n case 'question-choices': {\n // Reload checkbox options when questionchoices changed\n if (oldVal !== newVal) {\n this.prepareCheckboxes();\n this.setDefaultSelections();\n }\n break;\n }\n case 'language': {\n // load content when locale changed.\n const [language] = newVal.split(/[-_]/);\n\n let defaultLanguage = 'en';\n if (supportedLanguages(newVal)) {\n defaultLanguage = supportedLanguages(newVal);\n } else if (supportedLanguages(language)) {\n defaultLanguage = supportedLanguages(language);\n }\n\n if (hasValue && oldVal !== newVal) {\n loadContent(\n defaultLanguage,\n (ncData) => {\n this.ncData = ncData;\n this.prepareCheckboxes();\n },\n () => {\n this.defaultLoadContent();\n }\n );\n }\n break;\n }\n case 'country': {\n /**\n * load content when country value changed.\n */\n if (\n hasValue &&\n oldVal !== newVal &&\n countrySettings[newVal.toLocaleLowerCase()]\n ) {\n this.countryChanged();\n }\n break;\n }\n case 'enable-all-opt-in':\n this.setDefaultSelections();\n break;\n case 'email': {\n if (newVal) {\n if (newVal !== this.fetchedPref) {\n // Handle throttle using debounce approach.\n if (emailRegExp.test(newVal)) {\n setTimeout(() => {\n this.emailChanged(newVal);\n }, 1000);\n }\n }\n } else {\n if (this.fetchedPref) {\n this.fetchedPref = newVal;\n }\n }\n break;\n }\n case 'hide-error-message': {\n if (oldVal !== newVal) {\n this.hideErrorMessage = JSON.parse(newVal);\n this.countryBasedLegalNotice();\n }\n\n break;\n }\n case 'show-legal-notice': {\n this.showLegalNotice = JSON.parse(newVal);\n break;\n }\n }\n }\n\n private checkBoxChange($event: any) {\n const id = $event.target.id;\n\n const checked = $event.target.checked;\n const newValues = {\n ...this.values,\n };\n newValues[id] = !!checked;\n this.values = newValues;\n\n this.changed = true;\n const hiddenFieldName = `NC_HIDDEN_${id}`;\n const hiddenFieldStatus = checked ? 'PERMISSION' : 'SUPPRESSION';\n this.values[id] = {};\n this.values[id]['checkBoxStatus'] = hiddenFieldStatus;\n this._onChange(hiddenFieldName, hiddenFieldStatus);\n this._onChange(\n `${hiddenFieldName}_VALUE`,\n `NC_HIDDEN_${hiddenFieldStatus}`\n );\n }\n static get stableSelector() {\n return `${ddsPrefix}--notice-choice`;\n }\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n checkBoxLegalChange($event: any) {\n const legalCheckbox = $event.target;\n const isChecked = legalCheckbox.checked;\n const legalTextError = legalCheckbox.parentNode.querySelector('.nc-error');\n const qChinaPIPl = isChecked ? 'qChinaPIPlYes' : 'qChinaPIPlNo';\n\n if (legalTextError) {\n legalTextError.style.display = isChecked ? 'none' : '';\n }\n\n legalCheckbox.value = isChecked ? 1 : 0;\n this.preventFormSubmission = !isChecked;\n const preventFormSubmissionValue = isChecked\n ? 'formSubmissionYes'\n : 'formSubmissionNo';\n this._onChange('preventFormSubmission', preventFormSubmissionValue);\n this._onChange('Q_CHINA_PIPL', qChinaPIPl);\n }\n\n countryBasedLegalNotice() {\n const country = this.country.toLocaleLowerCase();\n const itemTemplates: Array<TemplateResult> = [];\n\n if (\n this.ncData?.mandatoryCheckbox &&\n this.ncData.mandatoryCheckbox[country]\n ) {\n const mandatoryCheckboxes: { [key: string]: any } =\n this.ncData.mandatoryCheckbox[country];\n\n for (const [key, mandatoryCheckbox] of Object.entries(\n mandatoryCheckboxes\n )) {\n const legalTextName = key.replace(/([A-Z]+)/g, '-$1').toLowerCase();\n let mandatoryCheckboxTemplate = html`\n <span>\n <div class=\"${prefix}--form-item bx--checkbox-wrapper\">\n <p part=${legalTextName} class=${legalTextName}>\n <input\n type=\"checkbox\"\n class=\"${prefix}--checkbox\"\n id=\"${mandatoryCheckbox.mrs_field}\"\n name=\"${mandatoryCheckbox.mrs_field}\"\n @change=\"${this.checkBoxLegalChange}\" />\n <label\n for=\"${mandatoryCheckbox.mrs_field}\"\n class=\"${prefix}--checkbox-label ${prefix}--nc__checkbox-${mandatoryCheckbox.mrs_field}\"\n ><span class=\"${prefix}--checkbox-label-text\" dir=\"auto\"\n >${mandatoryCheckbox.text}\n </span>\n </label>\n ${!this.hideErrorMessage && this.preventFormSubmission\n ? html`<span\n class=\"nc-error\"\n style=\"color:#da1e28;font-size:.75rem\"\n >${mandatoryCheckbox.error}</span\n >`\n : ''}\n </p>\n </div>\n </span>\n `;\n itemTemplates.push(mandatoryCheckboxTemplate);\n }\n }\n\n return itemTemplates;\n }\n\n checkBoxTemplate(checkbox, checked, hiddenBox) {\n this._onChange(`${hiddenBox.id}_VALUE`, `NC_HIDDEN_${hiddenBox.value}`);\n return html`<span>\n <div class=\"${prefix}--form-item bx--checkbox-wrapper\">\n <input\n type=\"checkbox\"\n class=\"${prefix}--checkbox\"\n id=\"${checkbox.id}\"\n name=\"${checkbox.id}\"\n ?checked=${checked}\n @change=\"${this.checkBoxChange}\" />\n <label\n for=\"${checkbox.id}\"\n class=\"${prefix}--checkbox-label ${prefix}--nc__checkbox-${checkbox.id}\"\n ><span class=\"${prefix}--checkbox-label-text\" dir=\"auto\"\n >${checkbox.labelText}\n </span>\n </label>\n <input\n type=\"hidden\"\n id=${hiddenBox.id}\n name=${hiddenBox.id}\n value=${hiddenBox.value} />\n </div>\n </span>`;\n }\n preTextTemplate() {\n if (this.ncData) {\n const country = this.country?.toLocaleLowerCase();\n const ecmTranslateContent = this.ncData;\n let preText = ecmTranslateContent.preText;\n\n if (ecmTranslateContent.state[country]) {\n const state = this.state.toLocaleLowerCase() || '';\n if (\n country === 'us' &&\n (state === 'ca' || state === '' || typeof state === 'undefined')\n ) {\n preText = ecmTranslateContent.state[country]['ca'].preText;\n } else {\n preText = ecmTranslateContent.state[country][state]\n ? ecmTranslateContent.state[country][state].preText\n : ecmTranslateContent.preText;\n }\n }\n\n if (ecmTranslateContent.country[country]) {\n preText = ecmTranslateContent.country[country.toLowerCase()].preText;\n }\n\n return html`${unsafeHTML(preText)}`;\n } else {\n return html``;\n }\n }\n postTextTemplate() {\n if (this.ncData) {\n const OtherPreferences = this.ncData.trialPrivacyText;\n let postText = this.ncData.postText;\n\n if (postText) {\n postText = '<p part=\"ncPostText\">' + postText + '</p>';\n }\n\n if (!this.termsConditionLink.strings && this.termsConditionLink) {\n let originalValue = OtherPreferences;\n const matchedValue = originalValue.match(/<tc>.*<\\/tc>/g);\n if (matchedValue) {\n const anrTagHtml = matchedValue[0].replace(/<tc>|<\\/tc>/g, '');\n const link = `<a href='${this.termsConditionLink}' target='_blank' class='ibm-tooltip' >${anrTagHtml}</a>`;\n const reg = new RegExp('<tc>' + anrTagHtml + '</tc>', 'g');\n\n postText =\n postText +\n originalValue\n .replace(reg, link)\n .replace(/<p>/g, '<p part=\"nc-trial-text\" id=\"nc-trial-text\">');\n }\n }\n if (postText !== '') {\n postText =\n \"<div part='ncPostTextContainer' id='ncPostTextContainer'>\" +\n postText +\n '</div>';\n }\n return html`${unsafeHTML(postText)}`;\n } else {\n return html``;\n }\n }\n getBpidLegalText() {\n if (this.bpidLegalText) {\n return html`<p>${this.bpidLegalText}</p>`;\n } else {\n return ``;\n }\n }\n render() {\n return html`<section class=\"${prefix}--nc\">\n <p part='ncHeading' id=\"ncHeading\" class=\"${ddsPrefix}--nc__pre-text\">${\n this.showLegalNotice ? this.countryBasedLegalNotice() : ''\n } ${this.preTextTemplate()} </p>\n <div part='${prefix}--checkbox-group' class=\"${prefix}--checkbox-group\">\n ${\n Object.keys(this.checkboxes).length !== 0\n ? Object.keys(this.checkboxes).length > 0 &&\n Object.keys(this.checkboxes).map((key) => {\n const checked = this.values[key];\n const checkbox = this.checkboxes[key];\n const hiddenBox = {\n id: 'NC_HIDDEN_' + key,\n value: this.values[key]['checkBoxStatus']\n ? this.values[key]['checkBoxStatus']\n : this.values[key]\n ? 'PERMISSION'\n : 'UNCHANGED',\n };\n key === 'EMAIL' ? (this.hiddenEmail = hiddenBox.value) : '';\n key === 'PHONE' ? (this.hiddenPhone = hiddenBox.value) : '';\n return this.checkBoxTemplate(checkbox, checked, hiddenBox);\n })\n : ''\n }\n\n </div>\n <div part='${prefix}--nc__post-text' class=\"${prefix}--nc__post-text\"\n >${this.postTextTemplate()}</div>\n <input type='hidden' id=\"preventFormSubmission\" name=\"preventFormSubmission\" value=${\n this.preventFormSubmission\n } />\n </div>\n ${this.getBpidLegalText()}\n </section>`;\n }\n protected emailChanged(email) {\n if (this.changed === false) {\n checkPreferencesv3(email).then((response) => {\n const questionChoiceStatus =\n countrySettings[this.country.toLocaleLowerCase()];\n\n if (response === 'S' && questionChoiceStatus.email === 'opt-out') {\n this.values = {\n ...this.values,\n EMAIL: false,\n ...{ checkBoxStatus: 'UNCHANGED' },\n };\n this._onChange('NC_HIDDEN_EMAIL', null);\n } else {\n this.values = {\n ...this.values,\n EMAIL: questionChoiceStatus.email === 'opt-out' ? true : false,\n ...{\n checkBoxStatus:\n questionChoiceStatus.email === 'opt-out'\n ? 'PERMISSION'\n : 'UNCHANGED',\n },\n };\n this._onChange('NC_HIDDEN_EMAIL', null);\n }\n });\n }\n }\n protected _getOptionByQuestion = (question) => {\n const questionChoiceStatus = this.country\n ? countrySettings[this.country.toLocaleLowerCase()]\n : { email: 'opt-in', phone: 'opt-in' };\n\n let option;\n switch (question) {\n case 'EMAIL': {\n option = {\n id: '0',\n checked: questionChoiceStatus.email === 'opt-out' ? true : false,\n optionTextPost: this.ncData.email,\n NC_HIDDEN_EMAIL:\n questionChoiceStatus.email === 'opt-out' ? 'OPT_OUT' : 'OPT_IN',\n };\n break;\n }\n case 'PHONE': {\n option = {\n id: '1',\n checked: questionChoiceStatus.phone === 'opt-out' ? true : false,\n optionTextPost: this.ncData.telephone,\n NC_HIDDEN_PHONE:\n questionChoiceStatus.phone === 'opt-out' ? 'OPT_OUT' : 'OPT_IN',\n };\n break;\n }\n\n default: {\n option = {\n id: '0',\n checked: questionChoiceStatus.email === 'opt-out' ? true : false,\n optionTextPost: this.ncData.email,\n NC_HIDDEN_EMAIL:\n questionChoiceStatus.email === 'opt-out' ? 'OPT_OUT' : 'OPT_IN',\n };\n break;\n }\n }\n\n return option;\n };\n protected _buildCheckboxes() {\n const fieldElements: any = {};\n const fieldCollections = {\n EMAIL: {\n id: 'EMAIL',\n labelText: this._getOptionByQuestion('EMAIL').optionTextPost,\n },\n PHONE: {\n id: 'PHONE',\n labelText: this._getOptionByQuestion('PHONE').optionTextPost,\n },\n };\n if (this.questionchoices) {\n // by email\n if (this.questionchoices.indexOf('1') > -1) {\n fieldElements.EMAIL = fieldCollections.EMAIL;\n }\n // by Phone\n if (this.questionchoices.indexOf('2') > -1) {\n fieldElements.PHONE = fieldCollections.PHONE;\n }\n }\n return fieldElements;\n }\n\n _onChange(field: string, value: string | null) {\n const pwsFieldsMap = {\n NC_HIDDEN_EMAIL: 'permission_email',\n NC_HIDDEN_PHONE: 'permission_phone',\n preventFormSubmission: 'preventFormSubmission',\n Q_CHINA_PIPL: 'Q_CHINA_PIPL',\n NC_HIDDEN_EMAIL_VALUE: 'NC_HIDDEN_EMAIL',\n NC_HIDDEN_PHONE_VALUE: 'NC_HIDDEN_PHONE',\n };\n\n if (Object.prototype.hasOwnProperty.call(pwsFieldsMap, field)) {\n field = pwsFieldsMap[field];\n }\n\n const init = {\n bubbles: true,\n detail: {\n field,\n value: pwsValueMap(value),\n },\n };\n this.dispatchEvent(\n new CustomEvent(`${ddsPrefix}-notice-choice-change`, init)\n );\n }\n}\n\nexport default NoticeChoice;\n"],"mappings":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Aa,CAAC/I,KAAK,GAAGgJ,gBAAgB,CAAChJ,KAAK;UAC9C;UACA;UACA,IAAI,IAAI,CAACiJ,eAAe,CAACC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE;YAC1CH,aAAa,CAAC9I,KAAK,GAAG+I,gBAAgB,CAAC/I,KAAK;UAC9C;QACF;QACA,OAAO8I,aAAa;MACtB;IAAC;MAAAzJ,IAAA;MAAAjD,GAAA;MAAAwD,KAAA,EAED,SAAA6C,UAAUyG,KAAa,EAAEtJ,KAAoB,EAAE;QAC7C,IAAMuJ,YAAY,GAAG;UACnBlJ,eAAe,EAAE,kBAAkB;UACnCG,eAAe,EAAE,kBAAkB;UACnC6C,qBAAqB,EAAE,uBAAuB;UAC9CmG,YAAY,EAAE,cAAc;UAC5BC,qBAAqB,EAAE,iBAAiB;UACxCC,qBAAqB,EAAE;QACzB,CAAC;QAED,IAAIlO,MAAM,CAACqC,SAAS,CAAC8E,cAAc,CAAC5E,IAAI,CAACwL,YAAY,EAAED,KAAK,CAAC,EAAE;UAC7DA,KAAK,GAAGC,YAAY,CAACD,KAAK,CAAC;QAC7B;QAEA,IAAMK,IAAI,GAAG;UACXC,OAAO,EAAE,IAAI;UACbC,MAAM,EAAE;YACNP,KAAK,EAALA,KAAK;YACLtJ,KAAK,EAAE,IAAA8J,kBAAW,EAAC9J,KAAK;UAC1B;QACF,CAAC;QACD,IAAI,CAAC+J,aAAa,CAChB,IAAIC,WAAW,IAAA5K,MAAA,CAAInB,SAAS,4BAAyB0L,IAAI,CAC3D,CAAC;MACH;IAAC;EAAA;AAAA,GAzmBwB,IAAAM,0BAAmB,EAACC,sBAAU,CAAC;AAAA,IAAAC,QAAA,GA4mB3C7L,YAAY;AAAA8L,OAAA,cAAAD,QAAA"}
|
|
1
|
+
{"version":3,"file":"notice-choice.js","names":["_services","require","_litElement","_utils","_countrySettings","_interopRequireDefault","_settings","_settings2","_stableSelector","_noticeChoiceCss","_unsafeHtml","_worldWideContent","_carbonElement","_templateObject","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","_templateObject9","_templateObject10","_templateObject11","_templateObject12","_templateObject13","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","ddsPrefix","ddsSettings","stablePrefix","prefix","settings","NoticeChoice","_decorate2","customElement","_initialize","_StableSelectorMixin","_StableSelectorMixin2","_inherits2","_super","_this","_classCallCheck2","_len","args","Array","_key","concat","_assertThisInitialized2","_createClass2","F","d","kind","decorators","property","type","String","reflect","attribute","key","value","html","_taggedTemplateLiteral2","countryCode","isDisplayed","EMAIL","PHONE","NC_HIDDEN_EMAIL","worldWideContent","cc_default_status","NC_HIDDEN_PHONE","prepareCheckboxes","ncData","OptInContent","preText","defaultPreText","newCheckboxes","_buildCheckboxes","checkboxes","performUpdate","defaultLoadContent","_this2","loadContent","countryChanged","error","console","connectedCallback","_this3","_get2","_this$language$split","language","split","_this$language$split2","_slicedToArray2","defaultLanguage","supportedLanguages","setDefaultSelections","_this4","enableAllOptIn","newValues","values","option","_getOptionByQuestion","checked","defaultValues","hasOwnProperty","hiddenFieldName","_onChange","JSON","stringify","countryChangeAction","_this$ncData","_this$country","splitValue","preTextTemplate","preventFormSubmission","mandatoryCheckbox","country","toLocaleLowerCase","_this$country2","_this$ncData2","countyCode","countryBasedText","specialCountryBasedText","mrs_field","isMandatoryCheckboxDisplayed","changed","fetchedPref","resetToWorldWideContent","attributeChangedCallback","name","oldVal","newVal","_this5","hasValue","_newVal$split","_newVal$split2","countrySettings","emailRegExp","test","setTimeout","emailChanged","hideErrorMessage","parse","countryBasedLegalNotice","showLegalNotice","checkBoxChange","$event","id","target","hiddenFieldStatus","stableSelector","styles","checkBoxLegalChange","_this$country3","_this$ncData3","legalCheckbox","isChecked","legalTextError","parentNode","querySelector","countyBasedText","style","display","preventFormSubmissionValue","_this$ncData4","itemTemplates","mandatoryCheckboxes","_i","_Object$entries","entries","_Object$entries$_i","legalTextName","replace","toLowerCase","mandatoryCheckboxTemplate","text","checkBoxTemplate","checkbox","hiddenBox","labelText","_this$country4","ecmTranslateContent","state","unsafeHTML","postTextTemplate","OtherPreferences","trialPrivacyText","postText","termsConditionLink","strings","originalValue","matchedValue","match","anrTagHtml","link","reg","RegExp","getBpidLegalText","bpidLegalText","render","_this6","_this$ncData5","map","hiddenEmail","hiddenPhone","email","_this7","checkPreferencesv3","then","response","questionChoiceStatus","checkBoxStatus","_this8","question","phone","optionTextPost","telephone","fieldElements","fieldCollections","questionchoices","indexOf","field","pwsFieldsMap","Q_CHINA_PIPL","NC_HIDDEN_EMAIL_VALUE","NC_HIDDEN_PHONE_VALUE","init","bubbles","detail","pwsValueMap","dispatchEvent","CustomEvent","StableSelectorMixin","LitElement","_default","exports"],"sources":["components/notice-choice/notice-choice.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { checkPreferencesv3, loadContent } from './services';\nimport { html, LitElement, property, TemplateResult } from 'lit-element';\nimport {\n emailRegExp,\n pwsValueMap,\n resetToWorldWideContent,\n supportedLanguages,\n specialCountryBasedText,\n} from './utils';\nimport countrySettings from './country-settings';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport settings from 'carbon-components/es/globals/js/settings';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport styles from './notice-choice.scss';\nimport { unsafeHTML } from 'lit-html/directives/unsafe-html';\nimport { worldWideContent } from './world-wide-content';\nimport { carbonElement as customElement } from '../../internal/vendor/@carbon/web-components/globals/decorators/carbon-element';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\nconst { prefix } = settings;\n\n/**\n * Notice Choice\n *\n * @element dds-notice-choice\n * @fires dds-notice-choice-change\n * The custom event fired when default choice loaded or user change some preferences.\n * The field and value should be taken from the detail object and send it to MRS.\n */\n@customElement(`dds-notice-choice`)\nclass NoticeChoice extends StableSelectorMixin(LitElement) {\n /**\n * properties for passed attributes.\n */\n @property({ type: String, reflect: true, attribute: 'question-choices' })\n questionchoices = '1';\n\n @property({ type: String, attribute: 'country' })\n country = 'US';\n\n @property({ type: String, attribute: 'state' })\n state = '';\n\n @property({ type: String, attribute: 'language' })\n language = 'en';\n\n @property({ type: String, attribute: 'terms-condition-link' })\n termsConditionLink = html``;\n\n @property({ type: String, attribute: 'bpid-legal-text' })\n bpidLegalText = html``;\n\n @property({ type: Boolean, attribute: 'enable-all-opt-in' })\n enableAllOptIn;\n\n @property({ attribute: 'default-values' })\n defaultValues = {};\n\n @property({ type: String, attribute: 'email' })\n email = '';\n\n @property({ type: Boolean, attribute: 'hide-error-message' })\n hideErrorMessage = false;\n\n @property({ type: Boolean, attribute: 'show-legal-notice' })\n showLegalNotice = true;\n\n @property({ type: Object, attribute: false })\n checkboxes = {};\n\n @property({ type: Object, attribute: false })\n ncData: any;\n\n @property({ type: Boolean, attribute: false })\n changed = false;\n\n @property({ type: String, attribute: false })\n fetchedPref = '';\n\n @property({ type: Object, attribute: false })\n optInContent = {};\n\n @property({ type: Boolean, attribute: false })\n preventFormSubmission = false;\n\n @property({ type: Object, attribute: false })\n isMandatoryCheckboxDisplayed = { countryCode: '', isDisplayed: false };\n\n /**\n * End properties for passed attributes.\n */\n\n /**\n * properties for local state state management.\n */\n @property({ type: html, attribute: false })\n preText = html``;\n\n @property({ type: html, attribute: false })\n defaultPreText = html``;\n\n @property({ type: Object, attribute: false })\n values = {\n EMAIL: false,\n PHONE: false,\n NC_HIDDEN_EMAIL: worldWideContent.cc_default_status,\n NC_HIDDEN_PHONE: worldWideContent.cc_default_status,\n };\n\n @property({ reflect: true })\n hiddenEmail = '';\n\n @property({ reflect: true })\n hiddenPhone = '';\n\n prepareCheckboxes() {\n if (this.ncData) {\n const OptInContent = this.ncData;\n this.preText = OptInContent.preText;\n this.defaultPreText = OptInContent.preText;\n const newCheckboxes = this._buildCheckboxes();\n this.checkboxes = newCheckboxes;\n this.performUpdate();\n }\n }\n defaultLoadContent() {\n loadContent(\n 'en',\n (ncData) => {\n this.ncData = ncData;\n this.prepareCheckboxes();\n this.countryChanged();\n },\n (error) => {\n console.error('error loading content', error);\n }\n );\n }\n connectedCallback() {\n super.connectedCallback();\n const [language] = this.language.split(/[-_]/);\n\n let defaultLanguage = 'en';\n if (supportedLanguages(this.language)) {\n defaultLanguage = supportedLanguages(this.language);\n } else if (supportedLanguages(language)) {\n defaultLanguage = supportedLanguages(language);\n }\n\n loadContent(\n defaultLanguage,\n (ncData) => {\n this.ncData = ncData;\n this.prepareCheckboxes();\n this.countryChanged();\n },\n () => {\n this.defaultLoadContent();\n }\n );\n }\n setDefaultSelections() {\n if (!this.enableAllOptIn && this.checkboxes) {\n const newValues = { ...this.values };\n Object.keys(this.checkboxes).forEach((key) => {\n const option = this._getOptionByQuestion(key);\n newValues[key] = !!(\n option.checked === 'true' || option.checked === true\n );\n if (\n this.defaultValues &&\n Object.prototype.hasOwnProperty.call(this.defaultValues, key)\n ) {\n newValues[key] = this.defaultValues[key];\n }\n const hiddenFieldName = `NC_HIDDEN_${key}`;\n newValues[hiddenFieldName] = option[hiddenFieldName];\n\n this._onChange(hiddenFieldName, newValues[key] ? 'OPT_IN' : 'OPT_OUT');\n });\n if (JSON.stringify(this.values) !== JSON.stringify(newValues)) {\n this.values = newValues;\n }\n }\n }\n countryChangeAction() {\n const splitValue = this.language;\n if (splitValue == 'en') {\n this.preText = this.preTextTemplate();\n }\n this.preventFormSubmission = false;\n if (this.ncData?.mandatoryCheckbox[this.country?.toLocaleLowerCase()]) {\n const countyCode = this.country?.toLocaleLowerCase();\n const countryBasedText = specialCountryBasedText(countyCode);\n this._onChange(\n this.ncData?.mandatoryCheckbox[countyCode][countryBasedText].mrs_field,\n 'countyBasedCheckedNo'\n );\n\n this.isMandatoryCheckboxDisplayed.countryCode = countyCode;\n this.isMandatoryCheckboxDisplayed.isDisplayed = true;\n\n this.preventFormSubmission = true;\n this._onChange('preventFormSubmission', 'formSubmissionNo');\n } else {\n this._onChange('preventFormSubmission', 'formSubmissionYes');\n }\n /**\n * @description if the user already interacted with the checkboxes,\n * skip country default selection.\n */\n if (!this.changed && !this.fetchedPref) {\n /**\n * @description\n * change checkbox checked option based on new country.\n */\n this.setDefaultSelections();\n }\n }\n countryChanged() {\n resetToWorldWideContent();\n this.countryChangeAction();\n }\n /**\n *\n * @param name name of the attribute\n * @param oldVal old value of the attribute\n * @param newVal new value of the attrbute\n */\n attributeChangedCallback(name, oldVal, newVal) {\n const hasValue = newVal !== null && oldVal !== null;\n super.attributeChangedCallback(name, oldVal, newVal);\n switch (name) {\n case 'question-choices': {\n // Reload checkbox options when questionchoices changed\n if (oldVal !== newVal) {\n this.prepareCheckboxes();\n this.setDefaultSelections();\n }\n break;\n }\n case 'language': {\n // load content when locale changed.\n const [language] = newVal.split(/[-_]/);\n\n let defaultLanguage = 'en';\n if (supportedLanguages(newVal)) {\n defaultLanguage = supportedLanguages(newVal);\n } else if (supportedLanguages(language)) {\n defaultLanguage = supportedLanguages(language);\n }\n\n if (hasValue && oldVal !== newVal) {\n loadContent(\n defaultLanguage,\n (ncData) => {\n this.ncData = ncData;\n this.prepareCheckboxes();\n },\n () => {\n this.defaultLoadContent();\n }\n );\n }\n break;\n }\n case 'country': {\n /**\n * load content when country value changed.\n */\n if (\n hasValue &&\n oldVal !== newVal &&\n countrySettings[newVal.toLocaleLowerCase()]\n ) {\n this.countryChanged();\n }\n break;\n }\n case 'enable-all-opt-in':\n this.setDefaultSelections();\n break;\n case 'email': {\n if (newVal) {\n if (newVal !== this.fetchedPref) {\n // Handle throttle using debounce approach.\n if (emailRegExp.test(newVal)) {\n setTimeout(() => {\n this.emailChanged(newVal);\n }, 1000);\n }\n }\n } else {\n if (this.fetchedPref) {\n this.fetchedPref = newVal;\n }\n }\n break;\n }\n case 'hide-error-message': {\n if (oldVal !== newVal) {\n this.hideErrorMessage = JSON.parse(newVal);\n this.countryBasedLegalNotice();\n }\n\n break;\n }\n case 'show-legal-notice': {\n this.showLegalNotice = JSON.parse(newVal);\n break;\n }\n }\n }\n\n private checkBoxChange($event: any) {\n const id = $event.target.id;\n\n const checked = $event.target.checked;\n const newValues = {\n ...this.values,\n };\n newValues[id] = !!checked;\n this.values = newValues;\n\n this.changed = true;\n const hiddenFieldName = `NC_HIDDEN_${id}`;\n const hiddenFieldStatus = checked ? 'PERMISSION' : 'SUPPRESSION';\n this.values[id] = {};\n this.values[id]['checkBoxStatus'] = hiddenFieldStatus;\n this._onChange(hiddenFieldName, hiddenFieldStatus);\n this._onChange(\n `${hiddenFieldName}_VALUE`,\n `NC_HIDDEN_${hiddenFieldStatus}`\n );\n }\n static get stableSelector() {\n return `${ddsPrefix}--notice-choice`;\n }\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n checkBoxLegalChange($event: any) {\n const legalCheckbox = $event.target;\n const isChecked = legalCheckbox.checked;\n const legalTextError = legalCheckbox.parentNode.querySelector('.nc-error');\n const countyBasedText = isChecked\n ? 'countyBasedCheckedYes'\n : 'countyBasedCheckedNo';\n\n if (legalTextError) {\n legalTextError.style.display = isChecked ? 'none' : '';\n }\n\n const countyCode = this.country?.toLocaleLowerCase();\n const countryBasedText = specialCountryBasedText(countyCode);\n\n legalCheckbox.value = isChecked ? 1 : 0;\n this.preventFormSubmission = !isChecked;\n const preventFormSubmissionValue = isChecked\n ? 'formSubmissionYes'\n : 'formSubmissionNo';\n this._onChange('preventFormSubmission', preventFormSubmissionValue);\n this._onChange(\n this.ncData?.mandatoryCheckbox[countyCode][countryBasedText].mrs_field,\n countyBasedText\n );\n }\n\n countryBasedLegalNotice() {\n const country = this.country.toLocaleLowerCase();\n const itemTemplates: Array<TemplateResult> = [];\n\n if (\n this.ncData?.mandatoryCheckbox &&\n this.ncData.mandatoryCheckbox[country]\n ) {\n const mandatoryCheckboxes: { [key: string]: any } =\n this.ncData.mandatoryCheckbox[country];\n\n for (const [key, mandatoryCheckbox] of Object.entries(\n mandatoryCheckboxes\n )) {\n const legalTextName = key.replace(/([A-Z]+)/g, '-$1').toLowerCase();\n let mandatoryCheckboxTemplate = html`\n <span>\n <div class=\"${prefix}--form-item bx--checkbox-wrapper\">\n <p part=${legalTextName} class=${legalTextName}>\n <input\n type=\"checkbox\"\n class=\"${prefix}--checkbox\"\n id=\"${mandatoryCheckbox.mrs_field}\"\n name=\"${mandatoryCheckbox.mrs_field}\"\n @change=\"${this.checkBoxLegalChange}\" />\n <label\n for=\"${mandatoryCheckbox.mrs_field}\"\n class=\"${prefix}--checkbox-label ${prefix}--nc__checkbox-${mandatoryCheckbox.mrs_field}\"\n ><span class=\"${prefix}--checkbox-label-text\" dir=\"auto\"\n >${mandatoryCheckbox.text}\n </span>\n </label>\n ${!this.hideErrorMessage && this.preventFormSubmission\n ? html`<span\n class=\"nc-error\"\n style=\"color:#da1e28;font-size:.75rem\"\n >${mandatoryCheckbox.error}</span\n >`\n : ''}\n </p>\n </div>\n </span>\n `;\n itemTemplates.push(mandatoryCheckboxTemplate);\n }\n }\n\n return itemTemplates;\n }\n\n checkBoxTemplate(checkbox, checked, hiddenBox) {\n this._onChange(`${hiddenBox.id}_VALUE`, `NC_HIDDEN_${hiddenBox.value}`);\n return html`<span>\n <div class=\"${prefix}--form-item bx--checkbox-wrapper\">\n <input\n type=\"checkbox\"\n class=\"${prefix}--checkbox\"\n id=\"${checkbox.id}\"\n name=\"${checkbox.id}\"\n ?checked=${checked}\n @change=\"${this.checkBoxChange}\" />\n <label\n for=\"${checkbox.id}\"\n class=\"${prefix}--checkbox-label ${prefix}--nc__checkbox-${checkbox.id}\"\n ><span class=\"${prefix}--checkbox-label-text\" dir=\"auto\"\n >${checkbox.labelText}\n </span>\n </label>\n <input\n type=\"hidden\"\n id=${hiddenBox.id}\n name=${hiddenBox.id}\n value=${hiddenBox.value} />\n </div>\n </span>`;\n }\n preTextTemplate() {\n if (this.ncData) {\n const country = this.country?.toLocaleLowerCase();\n const ecmTranslateContent = this.ncData;\n let preText = ecmTranslateContent.preText;\n\n if (ecmTranslateContent.state[country]) {\n const state = this.state.toLocaleLowerCase() || '';\n if (\n country === 'us' &&\n (state === 'ca' || state === '' || typeof state === 'undefined')\n ) {\n preText = ecmTranslateContent.state[country]['ca'].preText;\n } else {\n preText = ecmTranslateContent.state[country][state]\n ? ecmTranslateContent.state[country][state].preText\n : ecmTranslateContent.preText;\n }\n }\n\n if (ecmTranslateContent.country[country]) {\n preText = ecmTranslateContent.country[country.toLowerCase()].preText;\n }\n\n return html`${unsafeHTML(preText)}`;\n } else {\n return html``;\n }\n }\n postTextTemplate() {\n if (this.ncData) {\n const OtherPreferences = this.ncData.trialPrivacyText;\n let postText = this.ncData.postText;\n\n if (postText) {\n postText = '<p part=\"ncPostText\">' + postText + '</p>';\n }\n\n if (!this.termsConditionLink.strings && this.termsConditionLink) {\n let originalValue = OtherPreferences;\n const matchedValue = originalValue.match(/<tc>.*<\\/tc>/g);\n if (matchedValue) {\n const anrTagHtml = matchedValue[0].replace(/<tc>|<\\/tc>/g, '');\n const link = `<a href='${this.termsConditionLink}' target='_blank' class='ibm-tooltip' >${anrTagHtml}</a>`;\n const reg = new RegExp('<tc>' + anrTagHtml + '</tc>', 'g');\n\n postText =\n postText +\n originalValue\n .replace(reg, link)\n .replace(/<p>/g, '<p part=\"nc-trial-text\" id=\"nc-trial-text\">');\n }\n }\n if (postText !== '') {\n postText =\n \"<div part='ncPostTextContainer' id='ncPostTextContainer'>\" +\n postText +\n '</div>';\n }\n return html`${unsafeHTML(postText)}`;\n } else {\n return html``;\n }\n }\n getBpidLegalText() {\n if (this.bpidLegalText) {\n return html`<p>${this.bpidLegalText}</p>`;\n } else {\n return ``;\n }\n }\n render() {\n if (\n this.isMandatoryCheckboxDisplayed.isDisplayed &&\n this.country.toLocaleLowerCase() !==\n this.isMandatoryCheckboxDisplayed.countryCode\n ) {\n const countryBasedText = specialCountryBasedText(\n this.isMandatoryCheckboxDisplayed.countryCode\n );\n\n this._onChange(\n this.ncData?.mandatoryCheckbox[\n this.isMandatoryCheckboxDisplayed.countryCode\n ][countryBasedText].mrs_field,\n 'countyBasedCheckedNo'\n );\n }\n return html`<section class=\"${prefix}--nc\">\n <p part='ncHeading' id=\"ncHeading\" class=\"${ddsPrefix}--nc__pre-text\">${\n this.showLegalNotice ? this.countryBasedLegalNotice() : ''\n } ${this.preTextTemplate()} </p>\n <div part='${prefix}--checkbox-group' class=\"${prefix}--checkbox-group\">\n ${\n Object.keys(this.checkboxes).length !== 0\n ? Object.keys(this.checkboxes).length > 0 &&\n Object.keys(this.checkboxes).map((key) => {\n const checked = this.values[key];\n const checkbox = this.checkboxes[key];\n const hiddenBox = {\n id: 'NC_HIDDEN_' + key,\n value: this.values[key]['checkBoxStatus']\n ? this.values[key]['checkBoxStatus']\n : this.values[key]\n ? 'PERMISSION'\n : 'UNCHANGED',\n };\n key === 'EMAIL' ? (this.hiddenEmail = hiddenBox.value) : '';\n key === 'PHONE' ? (this.hiddenPhone = hiddenBox.value) : '';\n return this.checkBoxTemplate(checkbox, checked, hiddenBox);\n })\n : ''\n }\n\n </div>\n <div part='${prefix}--nc__post-text' class=\"${prefix}--nc__post-text\"\n >${this.postTextTemplate()}</div>\n <input type='hidden' id=\"preventFormSubmission\" name=\"preventFormSubmission\" value=${\n this.preventFormSubmission\n } />\n </div>\n ${this.getBpidLegalText()}\n </section>`;\n }\n protected emailChanged(email) {\n if (this.changed === false) {\n checkPreferencesv3(email).then((response) => {\n const questionChoiceStatus =\n countrySettings[this.country.toLocaleLowerCase()];\n\n if (response === 'S' && questionChoiceStatus.email === 'opt-out') {\n this.values = {\n ...this.values,\n EMAIL: false,\n ...{ checkBoxStatus: 'UNCHANGED' },\n };\n this._onChange('NC_HIDDEN_EMAIL', null);\n } else {\n this.values = {\n ...this.values,\n EMAIL: questionChoiceStatus.email === 'opt-out' ? true : false,\n ...{\n checkBoxStatus:\n questionChoiceStatus.email === 'opt-out'\n ? 'PERMISSION'\n : 'UNCHANGED',\n },\n };\n this._onChange('NC_HIDDEN_EMAIL', null);\n }\n });\n }\n }\n protected _getOptionByQuestion = (question) => {\n const questionChoiceStatus = this.country\n ? countrySettings[this.country.toLocaleLowerCase()]\n : { email: 'opt-in', phone: 'opt-in' };\n\n let option;\n switch (question) {\n case 'EMAIL': {\n option = {\n id: '0',\n checked: questionChoiceStatus.email === 'opt-out' ? true : false,\n optionTextPost: this.ncData.email,\n NC_HIDDEN_EMAIL:\n questionChoiceStatus.email === 'opt-out' ? 'OPT_OUT' : 'OPT_IN',\n };\n break;\n }\n case 'PHONE': {\n option = {\n id: '1',\n checked: questionChoiceStatus.phone === 'opt-out' ? true : false,\n optionTextPost: this.ncData.telephone,\n NC_HIDDEN_PHONE:\n questionChoiceStatus.phone === 'opt-out' ? 'OPT_OUT' : 'OPT_IN',\n };\n break;\n }\n\n default: {\n option = {\n id: '0',\n checked: questionChoiceStatus.email === 'opt-out' ? true : false,\n optionTextPost: this.ncData.email,\n NC_HIDDEN_EMAIL:\n questionChoiceStatus.email === 'opt-out' ? 'OPT_OUT' : 'OPT_IN',\n };\n break;\n }\n }\n\n return option;\n };\n protected _buildCheckboxes() {\n const fieldElements: any = {};\n const fieldCollections = {\n EMAIL: {\n id: 'EMAIL',\n labelText: this._getOptionByQuestion('EMAIL').optionTextPost,\n },\n PHONE: {\n id: 'PHONE',\n labelText: this._getOptionByQuestion('PHONE').optionTextPost,\n },\n };\n if (this.questionchoices) {\n // by email\n if (this.questionchoices.indexOf('1') > -1) {\n fieldElements.EMAIL = fieldCollections.EMAIL;\n }\n // by Phone\n if (this.questionchoices.indexOf('2') > -1) {\n fieldElements.PHONE = fieldCollections.PHONE;\n }\n }\n return fieldElements;\n }\n\n _onChange(field: string, value: string | null) {\n const pwsFieldsMap = {\n NC_HIDDEN_EMAIL: 'permission_email',\n NC_HIDDEN_PHONE: 'permission_phone',\n preventFormSubmission: 'preventFormSubmission',\n Q_CHINA_PIPL: 'Q_CHINA_PIPL',\n NC_HIDDEN_EMAIL_VALUE: 'NC_HIDDEN_EMAIL',\n NC_HIDDEN_PHONE_VALUE: 'NC_HIDDEN_PHONE',\n };\n\n if (Object.prototype.hasOwnProperty.call(pwsFieldsMap, field)) {\n field = pwsFieldsMap[field];\n }\n\n const init = {\n bubbles: true,\n detail: {\n field,\n value: pwsValueMap(value),\n },\n };\n this.dispatchEvent(\n new CustomEvent(`${ddsPrefix}-notice-choice-change`, init)\n );\n }\n}\n\nexport default NoticeChoice;\n"],"mappings":";;;;;;;;;;;;;;;;;;AASA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAOA,IAAAG,gBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAD,sBAAA,CAAAJ,OAAA;AACA,IAAAM,UAAA,GAAAF,sBAAA,CAAAJ,OAAA;AACA,IAAAO,eAAA,GAAAH,sBAAA,CAAAJ,OAAA;AACA,IAAAQ,gBAAA,GAAAJ,sBAAA,CAAAJ,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AACA,IAAAU,iBAAA,GAAAV,OAAA;AACA,IAAAW,cAAA,GAAAX,OAAA;AAAgI,IAAAY,eAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,iBAAA,EAAAC,iBAAA,EAAAC,iBAAA,EAAAC,iBAAA;AAAA,SAAAC,QAAAC,CAAA,EAAAC,CAAA,QA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AG;UACnB5J,eAAe,EAAE,kBAAkB;UACnCG,eAAe,EAAE,kBAAkB;UACnC6C,qBAAqB,EAAE,uBAAuB;UAC9C6G,YAAY,EAAE,cAAc;UAC5BC,qBAAqB,EAAE,iBAAiB;UACxCC,qBAAqB,EAAE;QACzB,CAAC;QAED,IAAI1O,MAAM,CAACiC,SAAS,CAACgF,cAAc,CAAC9E,IAAI,CAACoM,YAAY,EAAED,KAAK,CAAC,EAAE;UAC7DA,KAAK,GAAGC,YAAY,CAACD,KAAK,CAAC;QAC7B;QAEA,IAAMK,IAAI,GAAG;UACXC,OAAO,EAAE,IAAI;UACbC,MAAM,EAAE;YACNP,KAAK,EAALA,KAAK;YACLlK,KAAK,EAAE,IAAA0K,kBAAW,EAAC1K,KAAK;UAC1B;QACF,CAAC;QACD,IAAI,CAAC2K,aAAa,CAChB,IAAIC,WAAW,IAAAzL,MAAA,CAAInB,SAAS,4BAAyBuM,IAAI,CAC3D,CAAC;MACH;IAAC;EAAA;AAAA,GAhpBwB,IAAAM,0BAAmB,EAACC,sBAAU,CAAC;AAAA,IAAAC,QAAA,GAAAC,OAAA,cAmpB3C3M,YAAY"}
|
|
@@ -11,6 +11,7 @@ export declare function getMappedValue(locale: any): {
|
|
|
11
11
|
export declare function getNcContentFromWindow(): any;
|
|
12
12
|
export declare function resetToWorldWideContent(): void;
|
|
13
13
|
export declare function pwsValueMap(value: any): any;
|
|
14
|
+
export declare function specialCountryBasedText(countryCode: any): any;
|
|
14
15
|
export declare function supportedLanguages(language: any): any;
|
|
15
16
|
|
|
16
17
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["components/notice-choice/utils.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,QACgI,CAAC;AAEzJ,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,YAAY,EAAE,GAAG,CAAC;KACnB;CACF;AAED,wBAAgB,cAAc,CAAC,MAAM,KAAA;;;EAepC;AACD,wBAAgB,sBAAsB,QAQrC;AACD,wBAAgB,uBAAuB,SAQtC;AACD,wBAAgB,WAAW,CAAC,KAAK,KAAA,OAgBhC;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,KAAA,OAyC1C","file":"utils.d.ts","sourcesContent":["/**\n * Copyright IBM Corp. 2022, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { ccLcMap } from './cc-lc-map';\nimport { worldWideContent } from './world-wide-content';\n\nexport const emailRegExp =\n /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n\ndeclare global {\n interface Window {\n NoticeChoice: any;\n }\n}\n\nexport function getMappedValue(locale) {\n let ccLcValue = {\n cc: 'us',\n lc: 'en',\n };\n if (Object.prototype.isPrototypeOf.call(ccLcMap, locale)) {\n ccLcValue = ccLcMap[locale];\n } else if (locale.indexOf('-') > -1) {\n const splitValue = locale.split('-', 2);\n ccLcValue = {\n cc: splitValue[0],\n lc: splitValue[1],\n };\n }\n return ccLcValue;\n}\nexport function getNcContentFromWindow() {\n let content: any;\n try {\n content = window.NoticeChoice.Content;\n } catch (e) {\n content = worldWideContent;\n }\n return content;\n}\nexport function resetToWorldWideContent() {\n try {\n window.NoticeChoice = window.NoticeChoice || {};\n window.NoticeChoice = window.NoticeChoice || {};\n window.NoticeChoice.content = worldWideContent;\n } catch (e) {\n console.log('unable to set worldWideContent', e);\n }\n}\nexport function pwsValueMap(value) {\n return (\n {\n OPT_IN: 'yes',\n OPT_OUT: 'no',\n PERMISSION: 'yes',\n SUPPRESSION: 'no',\n formSubmissionYes: 'false',\n formSubmissionNo: 'true',\n
|
|
1
|
+
{"version":3,"sources":["components/notice-choice/utils.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,QACgI,CAAC;AAEzJ,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,YAAY,EAAE,GAAG,CAAC;KACnB;CACF;AAED,wBAAgB,cAAc,CAAC,MAAM,KAAA;;;EAepC;AACD,wBAAgB,sBAAsB,QAQrC;AACD,wBAAgB,uBAAuB,SAQtC;AACD,wBAAgB,WAAW,CAAC,KAAK,KAAA,OAgBhC;AAED,wBAAgB,uBAAuB,CAAC,WAAW,KAAA,OAKlD;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,KAAA,OAyC1C","file":"utils.d.ts","sourcesContent":["/**\n * Copyright IBM Corp. 2022, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { ccLcMap } from './cc-lc-map';\nimport { worldWideContent } from './world-wide-content';\n\nexport const emailRegExp =\n /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n\ndeclare global {\n interface Window {\n NoticeChoice: any;\n }\n}\n\nexport function getMappedValue(locale) {\n let ccLcValue = {\n cc: 'us',\n lc: 'en',\n };\n if (Object.prototype.isPrototypeOf.call(ccLcMap, locale)) {\n ccLcValue = ccLcMap[locale];\n } else if (locale.indexOf('-') > -1) {\n const splitValue = locale.split('-', 2);\n ccLcValue = {\n cc: splitValue[0],\n lc: splitValue[1],\n };\n }\n return ccLcValue;\n}\nexport function getNcContentFromWindow() {\n let content: any;\n try {\n content = window.NoticeChoice.Content;\n } catch (e) {\n content = worldWideContent;\n }\n return content;\n}\nexport function resetToWorldWideContent() {\n try {\n window.NoticeChoice = window.NoticeChoice || {};\n window.NoticeChoice = window.NoticeChoice || {};\n window.NoticeChoice.content = worldWideContent;\n } catch (e) {\n console.log('unable to set worldWideContent', e);\n }\n}\nexport function pwsValueMap(value) {\n return (\n {\n OPT_IN: 'yes',\n OPT_OUT: 'no',\n PERMISSION: 'yes',\n SUPPRESSION: 'no',\n formSubmissionYes: 'false',\n formSubmissionNo: 'true',\n countyBasedCheckedYes: 'true',\n countyBasedCheckedNo: 'false',\n NC_HIDDEN_PERMISSION: 'PERMISSION',\n NC_HIDDEN_SUPPRESSION: 'SUPPRESSION',\n NC_HIDDEN_UNCHANGED: 'UNCHANGED',\n }[value] || null\n );\n}\n\nexport function specialCountryBasedText(countryCode) {\n const countryBasedText = {\n cn: 'chinaPIPLtext',\n };\n return countryBasedText[countryCode.toLocaleLowerCase()];\n}\n\nexport function supportedLanguages(language) {\n const languageMapping = {\n en: 'en',\n fr: 'fr',\n 'zh-cn': 'zh-cn',\n zh: 'zh-cn',\n de: 'de',\n id: 'id',\n it: 'it',\n ja: 'ja',\n ko: 'ko',\n pt: 'pt',\n 'es-la': 'es-la',\n es: 'es',\n ar: 'ar',\n 'zh-tw': 'zh-tw',\n 'es-es': 'es',\n el: 'el',\n hu: 'hu',\n he: 'he',\n ms: 'ms',\n pl: 'pl',\n sl: 'sl',\n tr: 'tr',\n uk: 'uk',\n bg: 'bg',\n cs: 'cs',\n da: 'da',\n et: 'et',\n fi: 'fi',\n hr: 'hr',\n lt: 'lt',\n lv: 'lv',\n nl: 'nl',\n no: 'no',\n ro: 'ro',\n sk: 'sk',\n sr: 'sr',\n vi: 'vi',\n };\n return languageMapping[language.toLocaleLowerCase()];\n}\n"]}
|
|
@@ -8,6 +8,7 @@ exports.getMappedValue = getMappedValue;
|
|
|
8
8
|
exports.getNcContentFromWindow = getNcContentFromWindow;
|
|
9
9
|
exports.pwsValueMap = pwsValueMap;
|
|
10
10
|
exports.resetToWorldWideContent = resetToWorldWideContent;
|
|
11
|
+
exports.specialCountryBasedText = specialCountryBasedText;
|
|
11
12
|
exports.supportedLanguages = supportedLanguages;
|
|
12
13
|
var _ccLcMap = require("./cc-lc-map.js");
|
|
13
14
|
var _worldWideContent = require("./world-wide-content.js");
|
|
@@ -23,8 +24,7 @@ var _worldWideContent = require("./world-wide-content.js");
|
|
|
23
24
|
* LICENSE file in the root directory of this source tree.
|
|
24
25
|
*/
|
|
25
26
|
|
|
26
|
-
var emailRegExp = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
27
|
-
exports.emailRegExp = emailRegExp;
|
|
27
|
+
var emailRegExp = exports.emailRegExp = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
28
28
|
function getMappedValue(locale) {
|
|
29
29
|
var ccLcValue = {
|
|
30
30
|
cc: 'us',
|
|
@@ -67,13 +67,19 @@ function pwsValueMap(value) {
|
|
|
67
67
|
SUPPRESSION: 'no',
|
|
68
68
|
formSubmissionYes: 'false',
|
|
69
69
|
formSubmissionNo: 'true',
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
countyBasedCheckedYes: 'true',
|
|
71
|
+
countyBasedCheckedNo: 'false',
|
|
72
72
|
NC_HIDDEN_PERMISSION: 'PERMISSION',
|
|
73
73
|
NC_HIDDEN_SUPPRESSION: 'SUPPRESSION',
|
|
74
74
|
NC_HIDDEN_UNCHANGED: 'UNCHANGED'
|
|
75
75
|
}[value] || null;
|
|
76
76
|
}
|
|
77
|
+
function specialCountryBasedText(countryCode) {
|
|
78
|
+
var countryBasedText = {
|
|
79
|
+
cn: 'chinaPIPLtext'
|
|
80
|
+
};
|
|
81
|
+
return countryBasedText[countryCode.toLocaleLowerCase()];
|
|
82
|
+
}
|
|
77
83
|
function supportedLanguages(language) {
|
|
78
84
|
var languageMapping = {
|
|
79
85
|
en: 'en',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["_ccLcMap","require","_worldWideContent","emailRegExp","exports","getMappedValue","locale","ccLcValue","cc","lc","Object","prototype","isPrototypeOf","call","ccLcMap","indexOf","splitValue","split","getNcContentFromWindow","content","window","NoticeChoice","Content","e","worldWideContent","resetToWorldWideContent","console","log","pwsValueMap","value","OPT_IN","OPT_OUT","PERMISSION","SUPPRESSION","formSubmissionYes","formSubmissionNo","
|
|
1
|
+
{"version":3,"file":"utils.js","names":["_ccLcMap","require","_worldWideContent","emailRegExp","exports","getMappedValue","locale","ccLcValue","cc","lc","Object","prototype","isPrototypeOf","call","ccLcMap","indexOf","splitValue","split","getNcContentFromWindow","content","window","NoticeChoice","Content","e","worldWideContent","resetToWorldWideContent","console","log","pwsValueMap","value","OPT_IN","OPT_OUT","PERMISSION","SUPPRESSION","formSubmissionYes","formSubmissionNo","countyBasedCheckedYes","countyBasedCheckedNo","NC_HIDDEN_PERMISSION","NC_HIDDEN_SUPPRESSION","NC_HIDDEN_UNCHANGED","specialCountryBasedText","countryCode","countryBasedText","cn","toLocaleLowerCase","supportedLanguages","language","languageMapping","en","fr","zh","de","id","it","ja","ko","pt","es","ar","el","hu","he","ms","pl","sl","tr","uk","bg","cs","da","et","fi","hr","lt","lv","nl","no","ro","sk","sr","vi"],"sources":["components/notice-choice/utils.ts"],"sourcesContent":["/**\n * Copyright IBM Corp. 2022, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { ccLcMap } from './cc-lc-map';\nimport { worldWideContent } from './world-wide-content';\n\nexport const emailRegExp =\n /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n\ndeclare global {\n interface Window {\n NoticeChoice: any;\n }\n}\n\nexport function getMappedValue(locale) {\n let ccLcValue = {\n cc: 'us',\n lc: 'en',\n };\n if (Object.prototype.isPrototypeOf.call(ccLcMap, locale)) {\n ccLcValue = ccLcMap[locale];\n } else if (locale.indexOf('-') > -1) {\n const splitValue = locale.split('-', 2);\n ccLcValue = {\n cc: splitValue[0],\n lc: splitValue[1],\n };\n }\n return ccLcValue;\n}\nexport function getNcContentFromWindow() {\n let content: any;\n try {\n content = window.NoticeChoice.Content;\n } catch (e) {\n content = worldWideContent;\n }\n return content;\n}\nexport function resetToWorldWideContent() {\n try {\n window.NoticeChoice = window.NoticeChoice || {};\n window.NoticeChoice = window.NoticeChoice || {};\n window.NoticeChoice.content = worldWideContent;\n } catch (e) {\n console.log('unable to set worldWideContent', e);\n }\n}\nexport function pwsValueMap(value) {\n return (\n {\n OPT_IN: 'yes',\n OPT_OUT: 'no',\n PERMISSION: 'yes',\n SUPPRESSION: 'no',\n formSubmissionYes: 'false',\n formSubmissionNo: 'true',\n countyBasedCheckedYes: 'true',\n countyBasedCheckedNo: 'false',\n NC_HIDDEN_PERMISSION: 'PERMISSION',\n NC_HIDDEN_SUPPRESSION: 'SUPPRESSION',\n NC_HIDDEN_UNCHANGED: 'UNCHANGED',\n }[value] || null\n );\n}\n\nexport function specialCountryBasedText(countryCode) {\n const countryBasedText = {\n cn: 'chinaPIPLtext',\n };\n return countryBasedText[countryCode.toLocaleLowerCase()];\n}\n\nexport function supportedLanguages(language) {\n const languageMapping = {\n en: 'en',\n fr: 'fr',\n 'zh-cn': 'zh-cn',\n zh: 'zh-cn',\n de: 'de',\n id: 'id',\n it: 'it',\n ja: 'ja',\n ko: 'ko',\n pt: 'pt',\n 'es-la': 'es-la',\n es: 'es',\n ar: 'ar',\n 'zh-tw': 'zh-tw',\n 'es-es': 'es',\n el: 'el',\n hu: 'hu',\n he: 'he',\n ms: 'ms',\n pl: 'pl',\n sl: 'sl',\n tr: 'tr',\n uk: 'uk',\n bg: 'bg',\n cs: 'cs',\n da: 'da',\n et: 'et',\n fi: 'fi',\n hr: 'hr',\n lt: 'lt',\n lv: 'lv',\n nl: 'nl',\n no: 'no',\n ro: 'ro',\n sk: 'sk',\n sr: 'sr',\n vi: 'vi',\n };\n return languageMapping[language.toLocaleLowerCase()];\n}\n"],"mappings":";;;;;;;;;;;;AAMA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAPA;AACA;AACA;AACA;AACA;AACA,GALA;AACA;AACA;AACA;AACA;AACA;;AAIO,IAAME,WAAW,GAAAC,OAAA,CAAAD,WAAA,GACtB,sJAAsJ;AAQjJ,SAASE,cAAcA,CAACC,MAAM,EAAE;EACrC,IAAIC,SAAS,GAAG;IACdC,EAAE,EAAE,IAAI;IACRC,EAAE,EAAE;EACN,CAAC;EACD,IAAIC,MAAM,CAACC,SAAS,CAACC,aAAa,CAACC,IAAI,CAACC,gBAAO,EAAER,MAAM,CAAC,EAAE;IACxDC,SAAS,GAAGO,gBAAO,CAACR,MAAM,CAAC;EAC7B,CAAC,MAAM,IAAIA,MAAM,CAACS,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE;IACnC,IAAMC,UAAU,GAAGV,MAAM,CAACW,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;IACvCV,SAAS,GAAG;MACVC,EAAE,EAAEQ,UAAU,CAAC,CAAC,CAAC;MACjBP,EAAE,EAAEO,UAAU,CAAC,CAAC;IAClB,CAAC;EACH;EACA,OAAOT,SAAS;AAClB;AACO,SAASW,sBAAsBA,CAAA,EAAG;EACvC,IAAIC,OAAY;EAChB,IAAI;IACFA,OAAO,GAAGC,MAAM,CAACC,YAAY,CAACC,OAAO;EACvC,CAAC,CAAC,OAAOC,CAAC,EAAE;IACVJ,OAAO,GAAGK,kC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