@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.
Files changed (1299) hide show
  1. package/custom-elements.json +141 -115
  2. package/dist/{20-d59d1252.js → 20-2de9f146.js} +8 -1
  3. package/dist/{20-0dd18a2a.js → 20-3aa01aab.js} +8 -1
  4. package/dist/{20-b13a7263.js → 20-654642bf.js} +8 -1
  5. package/dist/{20-db62d123.js → 20-e1b84375.js} +8 -1
  6. package/dist/cloud-masthead.js +55 -24
  7. package/dist/cloud-masthead.min.js +10 -3
  8. package/dist/cloud-masthead.rtl.js +55 -24
  9. package/dist/cloud-masthead.rtl.min.js +10 -3
  10. package/dist/dotcom-shell.js +9 -2
  11. package/dist/dotcom-shell.min.js +8 -1
  12. package/dist/dotcom-shell.rtl.js +9 -2
  13. package/dist/dotcom-shell.rtl.min.js +8 -1
  14. package/dist/ibmdotcom-web-components-dotcom-shell.js +252 -170
  15. package/dist/ibmdotcom-web-components-dotcom-shell.min.js +27 -12
  16. package/dist/ibmdotcom-web-components-dotcom-shell.rtl.js +252 -170
  17. package/dist/ibmdotcom-web-components-dotcom-shell.rtl.min.js +27 -12
  18. package/dist/{left-nav-menu-e3475c54.js → left-nav-menu-0c606dc0.js} +8 -1
  19. package/dist/{left-nav-menu-9c991783.js → left-nav-menu-90492b23.js} +8 -1
  20. package/dist/{left-nav-menu-category-heading-f30c16b2.js → left-nav-menu-category-heading-3965c098.js} +8 -1
  21. package/dist/{left-nav-menu-category-heading-c408c797.js → left-nav-menu-category-heading-a1595fbe.js} +8 -1
  22. package/dist/{left-nav-menu-category-heading-c11a1c5a.js → left-nav-menu-category-heading-d4fb11a9.js} +8 -1
  23. package/dist/{left-nav-menu-category-heading-ea722d76.js → left-nav-menu-category-heading-decd4d83.js} +8 -1
  24. package/dist/{left-nav-menu-4d9029d3.js → left-nav-menu-ebbabdeb.js} +8 -1
  25. package/dist/{left-nav-menu-f949a3fc.js → left-nav-menu-fb76056e.js} +9 -2
  26. package/dist/left-nav-menu-item-0c324d91.js +78 -0
  27. package/dist/left-nav-menu-item-28c4baae.js +78 -0
  28. package/dist/{left-nav-menu-item-0c593619.js → left-nav-menu-item-b9ed3af7.js} +17 -1
  29. package/dist/{left-nav-menu-item-7a695a3a.js → left-nav-menu-item-d51991fb.js} +17 -1
  30. package/dist/{left-nav-menu-section-2b27f90c.js → left-nav-menu-section-104b952b.js} +9 -2
  31. package/dist/{left-nav-menu-section-9580fed9.js → left-nav-menu-section-35756914.js} +9 -2
  32. package/dist/{left-nav-menu-section-70361e96.js → left-nav-menu-section-7f96cd92.js} +8 -1
  33. package/dist/{left-nav-menu-section-723dabdb.js → left-nav-menu-section-ca7e49e9.js} +8 -1
  34. package/dist/{left-nav-overlay-23420664.js → left-nav-overlay-789e2c5b.js} +8 -1
  35. package/dist/{left-nav-overlay-4369f445.js → left-nav-overlay-84b5801a.js} +8 -1
  36. package/dist/{left-nav-overlay-213a2b93.js → left-nav-overlay-85a8a0da.js} +8 -1
  37. package/dist/{left-nav-overlay-39841e5b.js → left-nav-overlay-c549e901.js} +8 -1
  38. package/dist/{masthead-composite-306b9aa2.js → masthead-composite-0c8215ba.js} +25 -18
  39. package/dist/{masthead-composite-7be5e44a.js → masthead-composite-6e631d9f.js} +14 -7
  40. package/dist/{masthead-composite-549e469b.js → masthead-composite-728fb184.js} +335 -320
  41. package/dist/{masthead-composite-dfe1f02c.js → masthead-composite-e2535116.js} +335 -320
  42. package/dist/{megamenu-category-group-04d4c7b5.js → megamenu-category-group-18797750.js} +8 -1
  43. package/dist/{megamenu-category-group-72763c53.js → megamenu-category-group-6e7f9786.js} +8 -1
  44. package/dist/{megamenu-category-group-d91eb27d.js → megamenu-category-group-8a288ad7.js} +8 -1
  45. package/dist/{megamenu-category-group-ec20f1c0.js → megamenu-category-group-9778e30d.js} +8 -1
  46. package/dist/{megamenu-category-group-copy-b2e1f3b8.js → megamenu-category-group-copy-37aede70.js} +8 -1
  47. package/dist/{megamenu-category-group-copy-1734a927.js → megamenu-category-group-copy-70515553.js} +8 -1
  48. package/dist/{megamenu-category-group-copy-b388d655.js → megamenu-category-group-copy-7cc21eda.js} +8 -1
  49. package/dist/{megamenu-category-group-copy-f1dc57da.js → megamenu-category-group-copy-850e36c3.js} +8 -1
  50. package/dist/{megamenu-category-link-baa8ed55.js → megamenu-category-link-2161aebd.js} +8 -1
  51. package/dist/{megamenu-category-link-f7b52727.js → megamenu-category-link-46980387.js} +8 -1
  52. package/dist/{megamenu-category-link-43f181fe.js → megamenu-category-link-6eb6cb7d.js} +8 -1
  53. package/dist/{megamenu-category-link-7cdcb4db.js → megamenu-category-link-cb061552.js} +8 -1
  54. package/dist/{megamenu-left-navigation-024c2f3d.js → megamenu-left-navigation-21c9dd45.js} +8 -1
  55. package/dist/{megamenu-left-navigation-02cf4776.js → megamenu-left-navigation-7decd28c.js} +8 -1
  56. package/dist/{megamenu-left-navigation-c5935038.js → megamenu-left-navigation-86f2cf88.js} +8 -1
  57. package/dist/{megamenu-left-navigation-47ca8cc9.js → megamenu-left-navigation-d3e95498.js} +8 -1
  58. package/dist/{megamenu-overlay-02fda241.js → megamenu-overlay-01a8f76f.js} +8 -1
  59. package/dist/{megamenu-overlay-915d9eae.js → megamenu-overlay-1de034cf.js} +8 -1
  60. package/dist/{megamenu-overlay-2065230d.js → megamenu-overlay-96dbeb3f.js} +8 -1
  61. package/dist/{megamenu-overlay-f9f8e94a.js → megamenu-overlay-caa12c62.js} +8 -1
  62. package/es/component-mixins/callout/callout.js +1 -2
  63. package/es/component-mixins/callout/callout.js.map +1 -1
  64. package/es/component-mixins/cta/cta.js +4 -8
  65. package/es/component-mixins/cta/cta.js.map +1 -1
  66. package/es/component-mixins/cta/video.js +2 -4
  67. package/es/component-mixins/cta/video.js.map +1 -1
  68. package/es/component-mixins/media-query/media-query.js +1 -4
  69. package/es/component-mixins/media-query/media-query.js.map +1 -1
  70. package/es/component-mixins/parent-visibility/parent-visibility.js +3 -4
  71. package/es/component-mixins/parent-visibility/parent-visibility.js.map +1 -1
  72. package/es/components/back-to-top/__stories__/data/content.js +2 -4
  73. package/es/components/back-to-top/__stories__/data/content.js.map +1 -1
  74. package/es/components/back-to-top/back-to-top.js +1 -2
  75. package/es/components/back-to-top/back-to-top.js.map +1 -1
  76. package/es/components/background-media/background-media.js +4 -5
  77. package/es/components/background-media/background-media.js.map +1 -1
  78. package/es/components/background-media/defs.js +0 -2
  79. package/es/components/background-media/defs.js.map +1 -1
  80. package/es/components/button/button.js +1 -2
  81. package/es/components/button/button.js.map +1 -1
  82. package/es/components/button/defs.js +0 -3
  83. package/es/components/button/defs.js.map +1 -1
  84. package/es/components/button-group/button-group-item.js +1 -2
  85. package/es/components/button-group/button-group-item.js.map +1 -1
  86. package/es/components/button-group/button-group.js +1 -2
  87. package/es/components/button-group/button-group.js.map +1 -1
  88. package/es/components/callout-quote/callout-link-with-icon.js +1 -2
  89. package/es/components/callout-quote/callout-link-with-icon.js.map +1 -1
  90. package/es/components/callout-quote/callout-quote.js +1 -2
  91. package/es/components/callout-quote/callout-quote.js.map +1 -1
  92. package/es/components/callout-with-media/callout-with-media-copy.js +1 -2
  93. package/es/components/callout-with-media/callout-with-media-copy.js.map +1 -1
  94. package/es/components/callout-with-media/callout-with-media-image.js +1 -2
  95. package/es/components/callout-with-media/callout-with-media-image.js.map +1 -1
  96. package/es/components/callout-with-media/callout-with-media-video.js +1 -2
  97. package/es/components/callout-with-media/callout-with-media-video.js.map +1 -1
  98. package/es/components/callout-with-media/callout-with-media.js +1 -2
  99. package/es/components/callout-with-media/callout-with-media.js.map +1 -1
  100. package/es/components/card/card-eyebrow.js +1 -2
  101. package/es/components/card/card-eyebrow.js.map +1 -1
  102. package/es/components/card/card-footer.js +7 -8
  103. package/es/components/card/card-footer.js.map +1 -1
  104. package/es/components/card/card-heading.js +1 -2
  105. package/es/components/card/card-heading.js.map +1 -1
  106. package/es/components/card/card.js +2 -3
  107. package/es/components/card/card.js.map +1 -1
  108. package/es/components/card/defs.js +1 -3
  109. package/es/components/card/defs.js.map +1 -1
  110. package/es/components/card/image-logo.js +1 -2
  111. package/es/components/card/image-logo.js.map +1 -1
  112. package/es/components/card-group/card-group-card-link-item.js +1 -2
  113. package/es/components/card-group/card-group-card-link-item.js.map +1 -1
  114. package/es/components/card-group/card-group-item.js +1 -2
  115. package/es/components/card-group/card-group-item.js.map +1 -1
  116. package/es/components/card-group/card-group.js +3 -4
  117. package/es/components/card-group/card-group.js.map +1 -1
  118. package/es/components/card-group/defs.js +0 -1
  119. package/es/components/card-group/defs.js.map +1 -1
  120. package/es/components/card-in-card/card-in-card-image.js +1 -2
  121. package/es/components/card-in-card/card-in-card-image.js.map +1 -1
  122. package/es/components/card-in-card/card-in-card.js +6 -9
  123. package/es/components/card-in-card/card-in-card.js.map +1 -1
  124. package/es/components/card-link/card-link-heading.js +1 -2
  125. package/es/components/card-link/card-link-heading.js.map +1 -1
  126. package/es/components/card-link/card-link.js +1 -2
  127. package/es/components/card-link/card-link.js.map +1 -1
  128. package/es/components/card-section-carousel/card-section-carousel.js +1 -2
  129. package/es/components/card-section-carousel/card-section-carousel.js.map +1 -1
  130. package/es/components/card-section-images/card-section-images.js +1 -2
  131. package/es/components/card-section-images/card-section-images.js.map +1 -1
  132. package/es/components/card-section-offset/card-section-offset.js +1 -2
  133. package/es/components/card-section-offset/card-section-offset.js.map +1 -1
  134. package/es/components/card-section-simple/card-section-simple.js +1 -2
  135. package/es/components/card-section-simple/card-section-simple.js.map +1 -1
  136. package/es/components/carousel/carousel.js +6 -7
  137. package/es/components/carousel/carousel.js.map +1 -1
  138. package/es/components/content-block/content-block-complementary.js +1 -2
  139. package/es/components/content-block/content-block-complementary.js.map +1 -1
  140. package/es/components/content-block/content-block-copy.js +1 -2
  141. package/es/components/content-block/content-block-copy.js.map +1 -1
  142. package/es/components/content-block/content-block-heading.js +1 -2
  143. package/es/components/content-block/content-block-heading.js.map +1 -1
  144. package/es/components/content-block/content-block-paragraph.js +1 -2
  145. package/es/components/content-block/content-block-paragraph.js.map +1 -1
  146. package/es/components/content-block/content-block.js +1 -2
  147. package/es/components/content-block/content-block.js.map +1 -1
  148. package/es/components/content-block/defs.js +0 -2
  149. package/es/components/content-block/defs.js.map +1 -1
  150. package/es/components/content-block-card-static/content-block-card-static.js +2 -3
  151. package/es/components/content-block-card-static/content-block-card-static.js.map +1 -1
  152. package/es/components/content-block-cards/content-block-cards.js +1 -2
  153. package/es/components/content-block-cards/content-block-cards.js.map +1 -1
  154. package/es/components/content-block-headlines/content-block-headlines-heading.js +1 -2
  155. package/es/components/content-block-headlines/content-block-headlines-heading.js.map +1 -1
  156. package/es/components/content-block-headlines/content-block-headlines-item.js +1 -2
  157. package/es/components/content-block-headlines/content-block-headlines-item.js.map +1 -1
  158. package/es/components/content-block-headlines/content-block-headlines.js +1 -2
  159. package/es/components/content-block-headlines/content-block-headlines.js.map +1 -1
  160. package/es/components/content-block-horizontal/content-block-horizontal.js +1 -2
  161. package/es/components/content-block-horizontal/content-block-horizontal.js.map +1 -1
  162. package/es/components/content-block-media/content-block-media-content.js +1 -2
  163. package/es/components/content-block-media/content-block-media-content.js.map +1 -1
  164. package/es/components/content-block-media/content-block-media.js +1 -2
  165. package/es/components/content-block-media/content-block-media.js.map +1 -1
  166. package/es/components/content-block-mixed/content-block-mixed.js +1 -2
  167. package/es/components/content-block-mixed/content-block-mixed.js.map +1 -1
  168. package/es/components/content-block-segmented/content-block-segmented-item.js +1 -2
  169. package/es/components/content-block-segmented/content-block-segmented-item.js.map +1 -1
  170. package/es/components/content-block-segmented/content-block-segmented.js +3 -4
  171. package/es/components/content-block-segmented/content-block-segmented.js.map +1 -1
  172. package/es/components/content-block-simple/content-block-simple.css.js +1 -1
  173. package/es/components/content-block-simple/content-block-simple.js +1 -2
  174. package/es/components/content-block-simple/content-block-simple.js.map +1 -1
  175. package/es/components/content-block-simple/content-block-simple.rtl.css.js +1 -1
  176. package/es/components/content-group/content-group-copy.js +1 -2
  177. package/es/components/content-group/content-group-copy.js.map +1 -1
  178. package/es/components/content-group/content-group-heading.js +1 -2
  179. package/es/components/content-group/content-group-heading.js.map +1 -1
  180. package/es/components/content-group/content-group-paragraph.js +1 -2
  181. package/es/components/content-group/content-group-paragraph.js.map +1 -1
  182. package/es/components/content-group/content-group.js +1 -2
  183. package/es/components/content-group/content-group.js.map +1 -1
  184. package/es/components/content-group-banner/content-group-banner.js +1 -2
  185. package/es/components/content-group-banner/content-group-banner.js.map +1 -1
  186. package/es/components/content-group-cards/content-group-cards-item.js +1 -2
  187. package/es/components/content-group-cards/content-group-cards-item.js.map +1 -1
  188. package/es/components/content-group-cards/content-group-cards.js +1 -2
  189. package/es/components/content-group-cards/content-group-cards.js.map +1 -1
  190. package/es/components/content-group-horizontal/content-group-horizontal.js +1 -2
  191. package/es/components/content-group-horizontal/content-group-horizontal.js.map +1 -1
  192. package/es/components/content-group-pictograms/content-group-pictograms.js +1 -2
  193. package/es/components/content-group-pictograms/content-group-pictograms.js.map +1 -1
  194. package/es/components/content-group-simple/content-group-simple.js +1 -2
  195. package/es/components/content-group-simple/content-group-simple.js.map +1 -1
  196. package/es/components/content-group-simple/defs.js +0 -1
  197. package/es/components/content-group-simple/defs.js.map +1 -1
  198. package/es/components/content-item/content-item-copy.js +1 -2
  199. package/es/components/content-item/content-item-copy.js.map +1 -1
  200. package/es/components/content-item/content-item-heading.js +1 -2
  201. package/es/components/content-item/content-item-heading.js.map +1 -1
  202. package/es/components/content-item/content-item-paragraph.js +1 -2
  203. package/es/components/content-item/content-item-paragraph.js.map +1 -1
  204. package/es/components/content-item/content-item.js +1 -2
  205. package/es/components/content-item/content-item.js.map +1 -1
  206. package/es/components/content-item-horizontal/content-item-horizontal-copy.js +1 -2
  207. package/es/components/content-item-horizontal/content-item-horizontal-copy.js.map +1 -1
  208. package/es/components/content-item-horizontal/content-item-horizontal-eyebrow.js +1 -2
  209. package/es/components/content-item-horizontal/content-item-horizontal-eyebrow.js.map +1 -1
  210. package/es/components/content-item-horizontal/content-item-horizontal-media-copy.js +1 -2
  211. package/es/components/content-item-horizontal/content-item-horizontal-media-copy.js.map +1 -1
  212. package/es/components/content-item-horizontal/content-item-horizontal-media-featured.js +1 -2
  213. package/es/components/content-item-horizontal/content-item-horizontal-media-featured.js.map +1 -1
  214. package/es/components/content-item-horizontal/content-item-horizontal-media-video.js +1 -2
  215. package/es/components/content-item-horizontal/content-item-horizontal-media-video.js.map +1 -1
  216. package/es/components/content-item-horizontal/content-item-horizontal-media.js +1 -2
  217. package/es/components/content-item-horizontal/content-item-horizontal-media.js.map +1 -1
  218. package/es/components/content-item-horizontal/content-item-horizontal-thumbnail-copy.js +1 -2
  219. package/es/components/content-item-horizontal/content-item-horizontal-thumbnail-copy.js.map +1 -1
  220. package/es/components/content-item-horizontal/content-item-horizontal.js +1 -2
  221. package/es/components/content-item-horizontal/content-item-horizontal.js.map +1 -1
  222. package/es/components/content-item-horizontal/defs.js +0 -2
  223. package/es/components/content-item-horizontal/defs.js.map +1 -1
  224. package/es/components/content-section/content-section-copy.js +2 -3
  225. package/es/components/content-section/content-section-copy.js.map +1 -1
  226. package/es/components/content-section/content-section-heading.js +1 -2
  227. package/es/components/content-section/content-section-heading.js.map +1 -1
  228. package/es/components/content-section/content-section.js +1 -2
  229. package/es/components/content-section/content-section.js.map +1 -1
  230. package/es/components/cta/button-cta.js +1 -2
  231. package/es/components/cta/button-cta.js.map +1 -1
  232. package/es/components/cta/card-cta-footer.js +1 -2
  233. package/es/components/cta/card-cta-footer.js.map +1 -1
  234. package/es/components/cta/card-cta-image.js +1 -2
  235. package/es/components/cta/card-cta-image.js.map +1 -1
  236. package/es/components/cta/card-cta.js +1 -2
  237. package/es/components/cta/card-cta.js.map +1 -1
  238. package/es/components/cta/card-link-cta.js +1 -2
  239. package/es/components/cta/card-link-cta.js.map +1 -1
  240. package/es/components/cta/cta.js +5 -6
  241. package/es/components/cta/cta.js.map +1 -1
  242. package/es/components/cta/defs.js +0 -2
  243. package/es/components/cta/defs.js.map +1 -1
  244. package/es/components/cta/feature-cta-footer.js +1 -2
  245. package/es/components/cta/feature-cta-footer.js.map +1 -1
  246. package/es/components/cta/feature-cta.js +1 -2
  247. package/es/components/cta/feature-cta.js.map +1 -1
  248. package/es/components/cta/link-list-item-card-cta.js +1 -2
  249. package/es/components/cta/link-list-item-card-cta.js.map +1 -1
  250. package/es/components/cta/link-list-item-cta.js +1 -2
  251. package/es/components/cta/link-list-item-cta.js.map +1 -1
  252. package/es/components/cta/text-cta.js +1 -2
  253. package/es/components/cta/text-cta.js.map +1 -1
  254. package/es/components/cta/video-cta-composite.d.ts +1 -0
  255. package/es/components/cta/video-cta-composite.d.ts.map +1 -1
  256. package/es/components/cta/video-cta-composite.js +2 -3
  257. package/es/components/cta/video-cta-composite.js.map +1 -1
  258. package/es/components/cta/video-cta-container.js +1 -2
  259. package/es/components/cta/video-cta-container.js.map +1 -1
  260. package/es/components/cta-block/cta-block-item-row.js +1 -2
  261. package/es/components/cta-block/cta-block-item-row.js.map +1 -1
  262. package/es/components/cta-block/cta-block-item.js +1 -2
  263. package/es/components/cta-block/cta-block-item.js.map +1 -1
  264. package/es/components/cta-block/cta-block.js +2 -3
  265. package/es/components/cta-block/cta-block.js.map +1 -1
  266. package/es/components/cta-section/cta-section.js +1 -2
  267. package/es/components/cta-section/cta-section.js.map +1 -1
  268. package/es/components/dotcom-shell/__stories__/data/content.js +12 -24
  269. package/es/components/dotcom-shell/__stories__/data/content.js.map +1 -1
  270. package/es/components/dotcom-shell/dotcom-shell-composite.d.ts +0 -4
  271. package/es/components/dotcom-shell/dotcom-shell-composite.d.ts.map +1 -1
  272. package/es/components/dotcom-shell/dotcom-shell-composite.js +5 -21
  273. package/es/components/dotcom-shell/dotcom-shell-composite.js.map +1 -1
  274. package/es/components/dotcom-shell/dotcom-shell-container.js +17 -18
  275. package/es/components/dotcom-shell/dotcom-shell-container.js.map +1 -1
  276. package/es/components/dotcom-shell/dotcom-shell.js +1 -2
  277. package/es/components/dotcom-shell/dotcom-shell.js.map +1 -1
  278. package/es/components/expressive-modal/defs.js +0 -2
  279. package/es/components/expressive-modal/defs.js.map +1 -1
  280. package/es/components/expressive-modal/expressive-modal-body.js +1 -2
  281. package/es/components/expressive-modal/expressive-modal-body.js.map +1 -1
  282. package/es/components/expressive-modal/expressive-modal-close-button.js +1 -2
  283. package/es/components/expressive-modal/expressive-modal-close-button.js.map +1 -1
  284. package/es/components/expressive-modal/expressive-modal-footer.js +1 -2
  285. package/es/components/expressive-modal/expressive-modal-footer.js.map +1 -1
  286. package/es/components/expressive-modal/expressive-modal-header.js +1 -2
  287. package/es/components/expressive-modal/expressive-modal-header.js.map +1 -1
  288. package/es/components/expressive-modal/expressive-modal-heading.js +1 -2
  289. package/es/components/expressive-modal/expressive-modal-heading.js.map +1 -1
  290. package/es/components/expressive-modal/expressive-modal.d.ts.map +1 -1
  291. package/es/components/expressive-modal/expressive-modal.js +7 -8
  292. package/es/components/expressive-modal/expressive-modal.js.map +1 -1
  293. package/es/components/feature-card/feature-card-footer.js +1 -2
  294. package/es/components/feature-card/feature-card-footer.js.map +1 -1
  295. package/es/components/feature-card/feature-card.js +1 -2
  296. package/es/components/feature-card/feature-card.js.map +1 -1
  297. package/es/components/feature-card-block-large/feature-card-block-large-footer.js +1 -2
  298. package/es/components/feature-card-block-large/feature-card-block-large-footer.js.map +1 -1
  299. package/es/components/feature-card-block-large/feature-card-block-large.js +1 -2
  300. package/es/components/feature-card-block-large/feature-card-block-large.js.map +1 -1
  301. package/es/components/feature-card-block-medium/feature-card-block-medium-block-heading.js +1 -2
  302. package/es/components/feature-card-block-medium/feature-card-block-medium-block-heading.js.map +1 -1
  303. package/es/components/feature-card-block-medium/feature-card-block-medium.js +1 -2
  304. package/es/components/feature-card-block-medium/feature-card-block-medium.js.map +1 -1
  305. package/es/components/feature-section/defs.js +0 -1
  306. package/es/components/feature-section/defs.js.map +1 -1
  307. package/es/components/feature-section/feature-section-card-link.js +1 -2
  308. package/es/components/feature-section/feature-section-card-link.js.map +1 -1
  309. package/es/components/feature-section/feature-section.js +1 -2
  310. package/es/components/feature-section/feature-section.js.map +1 -1
  311. package/es/components/filter-panel/filter-group-item.js +1 -2
  312. package/es/components/filter-panel/filter-group-item.js.map +1 -1
  313. package/es/components/filter-panel/filter-group.js +1 -2
  314. package/es/components/filter-panel/filter-group.js.map +1 -1
  315. package/es/components/filter-panel/filter-modal-button.js +1 -2
  316. package/es/components/filter-panel/filter-modal-button.js.map +1 -1
  317. package/es/components/filter-panel/filter-modal-footer.js +1 -2
  318. package/es/components/filter-panel/filter-modal-footer.js.map +1 -1
  319. package/es/components/filter-panel/filter-modal-heading.js +1 -2
  320. package/es/components/filter-panel/filter-modal-heading.js.map +1 -1
  321. package/es/components/filter-panel/filter-panel-checkbox.js +1 -2
  322. package/es/components/filter-panel/filter-panel-checkbox.js.map +1 -1
  323. package/es/components/filter-panel/filter-panel-composite.d.ts +366 -35
  324. package/es/components/filter-panel/filter-panel-composite.d.ts.map +1 -1
  325. package/es/components/filter-panel/filter-panel-composite.js +99 -84
  326. package/es/components/filter-panel/filter-panel-composite.js.map +1 -1
  327. package/es/components/filter-panel/filter-panel-heading.js +1 -2
  328. package/es/components/filter-panel/filter-panel-heading.js.map +1 -1
  329. package/es/components/filter-panel/filter-panel-input-select-item.d.ts +4 -0
  330. package/es/components/filter-panel/filter-panel-input-select-item.d.ts.map +1 -1
  331. package/es/components/filter-panel/filter-panel-input-select-item.js +12 -2
  332. package/es/components/filter-panel/filter-panel-input-select-item.js.map +1 -1
  333. package/es/components/filter-panel/filter-panel-input-select.js +3 -4
  334. package/es/components/filter-panel/filter-panel-input-select.js.map +1 -1
  335. package/es/components/filter-panel/filter-panel-modal.js +1 -2
  336. package/es/components/filter-panel/filter-panel-modal.js.map +1 -1
  337. package/es/components/filter-panel/filter-panel.css.js +1 -1
  338. package/es/components/filter-panel/filter-panel.js +1 -2
  339. package/es/components/filter-panel/filter-panel.js.map +1 -1
  340. package/es/components/filter-panel/filter-panel.rtl.css.js +1 -1
  341. package/es/components/footer/combo-box.d.ts +2 -2
  342. package/es/components/footer/combo-box.d.ts.map +1 -1
  343. package/es/components/footer/combo-box.js +6 -6
  344. package/es/components/footer/combo-box.js.map +1 -1
  345. package/es/components/footer/defs.js +1 -7
  346. package/es/components/footer/defs.js.map +1 -1
  347. package/es/components/footer/dropdown.js +1 -2
  348. package/es/components/footer/dropdown.js.map +1 -1
  349. package/es/components/footer/footer-composite.d.ts +13 -17
  350. package/es/components/footer/footer-composite.d.ts.map +1 -1
  351. package/es/components/footer/footer-composite.js +79 -48
  352. package/es/components/footer/footer-composite.js.map +1 -1
  353. package/es/components/footer/footer-container.js +3 -4
  354. package/es/components/footer/footer-container.js.map +1 -1
  355. package/es/components/footer/footer-logo.js +1 -2
  356. package/es/components/footer/footer-logo.js.map +1 -1
  357. package/es/components/footer/footer-nav-group.js +3 -4
  358. package/es/components/footer/footer-nav-group.js.map +1 -1
  359. package/es/components/footer/footer-nav-item.js +1 -2
  360. package/es/components/footer/footer-nav-item.js.map +1 -1
  361. package/es/components/footer/footer-nav.js +1 -2
  362. package/es/components/footer/footer-nav.js.map +1 -1
  363. package/es/components/footer/footer.js +1 -2
  364. package/es/components/footer/footer.js.map +1 -1
  365. package/es/components/footer/language-selector-desktop.d.ts +367 -0
  366. package/es/components/footer/language-selector-desktop.d.ts.map +1 -1
  367. package/es/components/footer/language-selector-desktop.js +2 -5
  368. package/es/components/footer/language-selector-desktop.js.map +1 -1
  369. package/es/components/footer/language-selector-mobile.d.ts +14 -0
  370. package/es/components/footer/language-selector-mobile.d.ts.map +1 -1
  371. package/es/components/footer/language-selector-mobile.js +1 -3
  372. package/es/components/footer/language-selector-mobile.js.map +1 -1
  373. package/es/components/footer/legal-nav-cookie-preferences-placeholder.js +1 -2
  374. package/es/components/footer/legal-nav-cookie-preferences-placeholder.js.map +1 -1
  375. package/es/components/footer/legal-nav-item.js +1 -2
  376. package/es/components/footer/legal-nav-item.js.map +1 -1
  377. package/es/components/footer/legal-nav.js +1 -2
  378. package/es/components/footer/legal-nav.js.map +1 -1
  379. package/es/components/footer/locale-button.js +1 -2
  380. package/es/components/footer/locale-button.js.map +1 -1
  381. package/es/components/horizontal-rule/defs.js +0 -4
  382. package/es/components/horizontal-rule/defs.js.map +1 -1
  383. package/es/components/horizontal-rule/horizontal-rule.js +1 -2
  384. package/es/components/horizontal-rule/horizontal-rule.js.map +1 -1
  385. package/es/components/image/image-item.js +1 -2
  386. package/es/components/image/image-item.js.map +1 -1
  387. package/es/components/image/image.d.ts +2 -3
  388. package/es/components/image/image.d.ts.map +1 -1
  389. package/es/components/image/image.js +1 -2
  390. package/es/components/image/image.js.map +1 -1
  391. package/es/components/image-with-caption/image-with-caption.js +1 -2
  392. package/es/components/image-with-caption/image-with-caption.js.map +1 -1
  393. package/es/components/leadspace/breadcrumb-item.js +1 -2
  394. package/es/components/leadspace/breadcrumb-item.js.map +1 -1
  395. package/es/components/leadspace/breadcrumb-link.js +1 -2
  396. package/es/components/leadspace/breadcrumb-link.js.map +1 -1
  397. package/es/components/leadspace/breadcrumb.js +1 -2
  398. package/es/components/leadspace/breadcrumb.js.map +1 -1
  399. package/es/components/leadspace/defs.js +0 -3
  400. package/es/components/leadspace/defs.js.map +1 -1
  401. package/es/components/leadspace/leadspace-heading.js +1 -2
  402. package/es/components/leadspace/leadspace-heading.js.map +1 -1
  403. package/es/components/leadspace/leadspace-image.js +1 -2
  404. package/es/components/leadspace/leadspace-image.js.map +1 -1
  405. package/es/components/leadspace/leadspace.js +1 -2
  406. package/es/components/leadspace/leadspace.js.map +1 -1
  407. package/es/components/leadspace-block/leadspace-block-content.js +1 -2
  408. package/es/components/leadspace-block/leadspace-block-content.js.map +1 -1
  409. package/es/components/leadspace-block/leadspace-block-cta.js +1 -2
  410. package/es/components/leadspace-block/leadspace-block-cta.js.map +1 -1
  411. package/es/components/leadspace-block/leadspace-block-heading.js +1 -2
  412. package/es/components/leadspace-block/leadspace-block-heading.js.map +1 -1
  413. package/es/components/leadspace-block/leadspace-block-media.js +1 -2
  414. package/es/components/leadspace-block/leadspace-block-media.js.map +1 -1
  415. package/es/components/leadspace-block/leadspace-block.js +1 -2
  416. package/es/components/leadspace-block/leadspace-block.js.map +1 -1
  417. package/es/components/leadspace-with-search/defs.js +0 -1
  418. package/es/components/leadspace-with-search/defs.js.map +1 -1
  419. package/es/components/leadspace-with-search/leadspace-with-search-content-copy.js +1 -2
  420. package/es/components/leadspace-with-search/leadspace-with-search-content-copy.js.map +1 -1
  421. package/es/components/leadspace-with-search/leadspace-with-search-content-heading.js +1 -2
  422. package/es/components/leadspace-with-search/leadspace-with-search-content-heading.js.map +1 -1
  423. package/es/components/leadspace-with-search/leadspace-with-search-content.js +1 -2
  424. package/es/components/leadspace-with-search/leadspace-with-search-content.js.map +1 -1
  425. package/es/components/leadspace-with-search/leadspace-with-search-heading.js +1 -2
  426. package/es/components/leadspace-with-search/leadspace-with-search-heading.js.map +1 -1
  427. package/es/components/leadspace-with-search/leadspace-with-search.js +1 -2
  428. package/es/components/leadspace-with-search/leadspace-with-search.js.map +1 -1
  429. package/es/components/leaving-ibm/leaving-ibm-composite.d.ts +1 -0
  430. package/es/components/leaving-ibm/leaving-ibm-composite.d.ts.map +1 -1
  431. package/es/components/leaving-ibm/leaving-ibm-composite.js +4 -5
  432. package/es/components/leaving-ibm/leaving-ibm-composite.js.map +1 -1
  433. package/es/components/leaving-ibm/leaving-ibm-connect.js +3 -3
  434. package/es/components/leaving-ibm/leaving-ibm-connect.js.map +1 -1
  435. package/es/components/leaving-ibm/leaving-ibm-container.js +1 -2
  436. package/es/components/leaving-ibm/leaving-ibm-container.js.map +1 -1
  437. package/es/components/leaving-ibm/leaving-ibm-modal-body.js +1 -2
  438. package/es/components/leaving-ibm/leaving-ibm-modal-body.js.map +1 -1
  439. package/es/components/leaving-ibm/leaving-ibm-modal-heading.js +1 -2
  440. package/es/components/leaving-ibm/leaving-ibm-modal-heading.js.map +1 -1
  441. package/es/components/leaving-ibm/leaving-ibm-modal-supplemental.js +1 -2
  442. package/es/components/leaving-ibm/leaving-ibm-modal-supplemental.js.map +1 -1
  443. package/es/components/leaving-ibm/leaving-ibm-modal.js +3 -4
  444. package/es/components/leaving-ibm/leaving-ibm-modal.js.map +1 -1
  445. package/es/components/lightbox-media-viewer/lightbox-image-viewer.js +1 -2
  446. package/es/components/lightbox-media-viewer/lightbox-image-viewer.js.map +1 -1
  447. package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.js +1 -2
  448. package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.js.map +1 -1
  449. package/es/components/lightbox-media-viewer/lightbox-media-viewer.js +1 -2
  450. package/es/components/lightbox-media-viewer/lightbox-media-viewer.js.map +1 -1
  451. package/es/components/lightbox-media-viewer/lightbox-video-player-composite.d.ts +1 -0
  452. package/es/components/lightbox-media-viewer/lightbox-video-player-composite.d.ts.map +1 -1
  453. package/es/components/lightbox-media-viewer/lightbox-video-player-composite.js +8 -9
  454. package/es/components/lightbox-media-viewer/lightbox-video-player-composite.js.map +1 -1
  455. package/es/components/lightbox-media-viewer/lightbox-video-player-container.js +1 -2
  456. package/es/components/lightbox-media-viewer/lightbox-video-player-container.js.map +1 -1
  457. package/es/components/lightbox-media-viewer/lightbox-video-player.js +1 -2
  458. package/es/components/lightbox-media-viewer/lightbox-video-player.js.map +1 -1
  459. package/es/components/link-list/defs.js +0 -2
  460. package/es/components/link-list/defs.js.map +1 -1
  461. package/es/components/link-list/link-list-heading.js +1 -2
  462. package/es/components/link-list/link-list-heading.js.map +1 -1
  463. package/es/components/link-list/link-list-item-card.js +1 -2
  464. package/es/components/link-list/link-list-item-card.js.map +1 -1
  465. package/es/components/link-list/link-list-item.js +1 -2
  466. package/es/components/link-list/link-list-item.js.map +1 -1
  467. package/es/components/link-list/link-list.js +1 -3
  468. package/es/components/link-list/link-list.js.map +1 -1
  469. package/es/components/link-list-section/link-list-section.js +1 -2
  470. package/es/components/link-list-section/link-list-section.js.map +1 -1
  471. package/es/components/link-with-icon/link-with-icon.js +3 -4
  472. package/es/components/link-with-icon/link-with-icon.js.map +1 -1
  473. package/es/components/locale-modal/locale-item.js +1 -2
  474. package/es/components/locale-modal/locale-item.js.map +1 -1
  475. package/es/components/locale-modal/locale-modal-composite.d.ts +337 -17
  476. package/es/components/locale-modal/locale-modal-composite.d.ts.map +1 -1
  477. package/es/components/locale-modal/locale-modal-composite.js +50 -28
  478. package/es/components/locale-modal/locale-modal-composite.js.map +1 -1
  479. package/es/components/locale-modal/locale-modal-container.js +1 -2
  480. package/es/components/locale-modal/locale-modal-container.js.map +1 -1
  481. package/es/components/locale-modal/locale-modal.d.ts +13 -1
  482. package/es/components/locale-modal/locale-modal.d.ts.map +1 -1
  483. package/es/components/locale-modal/locale-modal.js +102 -28
  484. package/es/components/locale-modal/locale-modal.js.map +1 -1
  485. package/es/components/locale-modal/locale-search.d.ts +3 -0
  486. package/es/components/locale-modal/locale-search.d.ts.map +1 -1
  487. package/es/components/locale-modal/locale-search.js +2 -5
  488. package/es/components/locale-modal/locale-search.js.map +1 -1
  489. package/es/components/locale-modal/region-item.js +1 -2
  490. package/es/components/locale-modal/region-item.js.map +1 -1
  491. package/es/components/locale-modal/regions.js +1 -2
  492. package/es/components/locale-modal/regions.js.map +1 -1
  493. package/es/components/logo-grid/logo-grid-item.js +1 -2
  494. package/es/components/logo-grid/logo-grid-item.js.map +1 -1
  495. package/es/components/logo-grid/logo-grid-link.js +1 -2
  496. package/es/components/logo-grid/logo-grid-link.js.map +1 -1
  497. package/es/components/logo-grid/logo-grid.js +1 -2
  498. package/es/components/logo-grid/logo-grid.js.map +1 -1
  499. package/es/components/markdown/markdown.js +1 -2
  500. package/es/components/markdown/markdown.js.map +1 -1
  501. package/es/components/masthead/cloud/cloud-button-cta.js +1 -2
  502. package/es/components/masthead/cloud/cloud-button-cta.js.map +1 -1
  503. package/es/components/masthead/cloud/cloud-left-nav-item.js +1 -2
  504. package/es/components/masthead/cloud/cloud-left-nav-item.js.map +1 -1
  505. package/es/components/masthead/cloud/cloud-masthead-composite.js +11 -12
  506. package/es/components/masthead/cloud/cloud-masthead-composite.js.map +1 -1
  507. package/es/components/masthead/cloud/cloud-masthead-container.js +9 -10
  508. package/es/components/masthead/cloud/cloud-masthead-container.js.map +1 -1
  509. package/es/components/masthead/cloud/cloud-masthead-global-bar.js +1 -2
  510. package/es/components/masthead/cloud/cloud-masthead-global-bar.js.map +1 -1
  511. package/es/components/masthead/cloud/cloud-masthead-profile.js +1 -2
  512. package/es/components/masthead/cloud/cloud-masthead-profile.js.map +1 -1
  513. package/es/components/masthead/cloud/cloud-masthead.css.js +1 -1
  514. package/es/components/masthead/cloud/cloud-masthead.rtl.css.js +1 -1
  515. package/es/components/masthead/cloud/cloud-megamenu-category-heading.js +1 -2
  516. package/es/components/masthead/cloud/cloud-megamenu-category-heading.js.map +1 -1
  517. package/es/components/masthead/cloud/cloud-megamenu-category-link-group.js +1 -2
  518. package/es/components/masthead/cloud/cloud-megamenu-category-link-group.js.map +1 -1
  519. package/es/components/masthead/cloud/cloud-megamenu-category-link.js +1 -2
  520. package/es/components/masthead/cloud/cloud-megamenu-category-link.js.map +1 -1
  521. package/es/components/masthead/cloud/cloud-megamenu-left-navigation.js +1 -2
  522. package/es/components/masthead/cloud/cloud-megamenu-left-navigation.js.map +1 -1
  523. package/es/components/masthead/cloud/cloud-megamenu-right-navigation.js +1 -2
  524. package/es/components/masthead/cloud/cloud-megamenu-right-navigation.js.map +1 -1
  525. package/es/components/masthead/cloud/cloud-megamenu-tab.js +1 -2
  526. package/es/components/masthead/cloud/cloud-megamenu-tab.js.map +1 -1
  527. package/es/components/masthead/cloud/cloud-megamenu-tabs.js +1 -2
  528. package/es/components/masthead/cloud/cloud-megamenu-tabs.js.map +1 -1
  529. package/es/components/masthead/cloud/cloud-megamenu.js +1 -2
  530. package/es/components/masthead/cloud/cloud-megamenu.js.map +1 -1
  531. package/es/components/masthead/cloud/cloud-top-nav-name.js +1 -2
  532. package/es/components/masthead/cloud/cloud-top-nav-name.js.map +1 -1
  533. package/es/components/masthead/defs.js +0 -2
  534. package/es/components/masthead/defs.js.map +1 -1
  535. package/es/components/masthead/left-nav-item.js +1 -2
  536. package/es/components/masthead/left-nav-item.js.map +1 -1
  537. package/es/components/masthead/left-nav-menu-category-heading.js +1 -2
  538. package/es/components/masthead/left-nav-menu-category-heading.js.map +1 -1
  539. package/es/components/masthead/left-nav-menu-item.js +1 -2
  540. package/es/components/masthead/left-nav-menu-item.js.map +1 -1
  541. package/es/components/masthead/left-nav-menu-section.js +1 -2
  542. package/es/components/masthead/left-nav-menu-section.js.map +1 -1
  543. package/es/components/masthead/left-nav-menu.js +1 -2
  544. package/es/components/masthead/left-nav-menu.js.map +1 -1
  545. package/es/components/masthead/left-nav-name.js +1 -2
  546. package/es/components/masthead/left-nav-name.js.map +1 -1
  547. package/es/components/masthead/left-nav-overlay.js +1 -2
  548. package/es/components/masthead/left-nav-overlay.js.map +1 -1
  549. package/es/components/masthead/left-nav.js +7 -8
  550. package/es/components/masthead/left-nav.js.map +1 -1
  551. package/es/components/masthead/masthead-composite.js +22 -24
  552. package/es/components/masthead/masthead-composite.js.map +1 -1
  553. package/es/components/masthead/masthead-container.js +6 -7
  554. package/es/components/masthead/masthead-container.js.map +1 -1
  555. package/es/components/masthead/masthead-global-bar.js +1 -2
  556. package/es/components/masthead/masthead-global-bar.js.map +1 -1
  557. package/es/components/masthead/masthead-l1-name.js +1 -2
  558. package/es/components/masthead/masthead-l1-name.js.map +1 -1
  559. package/es/components/masthead/masthead-l1.js +1 -2
  560. package/es/components/masthead/masthead-l1.js.map +1 -1
  561. package/es/components/masthead/masthead-logo.js +1 -2
  562. package/es/components/masthead/masthead-logo.js.map +1 -1
  563. package/es/components/masthead/masthead-menu-button.js +1 -2
  564. package/es/components/masthead/masthead-menu-button.js.map +1 -1
  565. package/es/components/masthead/masthead-profile-item.js +2 -3
  566. package/es/components/masthead/masthead-profile-item.js.map +1 -1
  567. package/es/components/masthead/masthead-profile.js +1 -2
  568. package/es/components/masthead/masthead-profile.js.map +1 -1
  569. package/es/components/masthead/masthead.js +1 -2
  570. package/es/components/masthead/masthead.js.map +1 -1
  571. package/es/components/masthead/megamenu-category-group-copy.js +1 -2
  572. package/es/components/masthead/megamenu-category-group-copy.js.map +1 -1
  573. package/es/components/masthead/megamenu-category-group.js +1 -2
  574. package/es/components/masthead/megamenu-category-group.js.map +1 -1
  575. package/es/components/masthead/megamenu-category-link.js +1 -2
  576. package/es/components/masthead/megamenu-category-link.js.map +1 -1
  577. package/es/components/masthead/megamenu-left-navigation.js +1 -2
  578. package/es/components/masthead/megamenu-left-navigation.js.map +1 -1
  579. package/es/components/masthead/megamenu-link-with-icon.js +1 -2
  580. package/es/components/masthead/megamenu-link-with-icon.js.map +1 -1
  581. package/es/components/masthead/megamenu-overlay.js +1 -2
  582. package/es/components/masthead/megamenu-overlay.js.map +1 -1
  583. package/es/components/masthead/megamenu-right-navigation.js +1 -2
  584. package/es/components/masthead/megamenu-right-navigation.js.map +1 -1
  585. package/es/components/masthead/megamenu-top-nav-menu.js +3 -4
  586. package/es/components/masthead/megamenu-top-nav-menu.js.map +1 -1
  587. package/es/components/masthead/megamenu.js +1 -2
  588. package/es/components/masthead/megamenu.js.map +1 -1
  589. package/es/components/masthead/skip-to-content.js +1 -2
  590. package/es/components/masthead/skip-to-content.js.map +1 -1
  591. package/es/components/masthead/top-nav-item.js +2 -3
  592. package/es/components/masthead/top-nav-item.js.map +1 -1
  593. package/es/components/masthead/top-nav-l1.js +1 -2
  594. package/es/components/masthead/top-nav-l1.js.map +1 -1
  595. package/es/components/masthead/top-nav-menu-item.js +2 -3
  596. package/es/components/masthead/top-nav-menu-item.js.map +1 -1
  597. package/es/components/masthead/top-nav-menu.js +2 -3
  598. package/es/components/masthead/top-nav-menu.js.map +1 -1
  599. package/es/components/masthead/top-nav-name.js +1 -2
  600. package/es/components/masthead/top-nav-name.js.map +1 -1
  601. package/es/components/masthead/top-nav.d.ts.map +1 -1
  602. package/es/components/masthead/top-nav.js +2 -3
  603. package/es/components/masthead/top-nav.js.map +1 -1
  604. package/es/components/notice-choice/cc-lc-map.js +1 -2
  605. package/es/components/notice-choice/cc-lc-map.js.map +1 -1
  606. package/es/components/notice-choice/country-settings.js +1 -2
  607. package/es/components/notice-choice/country-settings.js.map +1 -1
  608. package/es/components/notice-choice/notice-choice.d.ts +5 -1
  609. package/es/components/notice-choice/notice-choice.d.ts.map +1 -1
  610. package/es/components/notice-choice/notice-choice.js +38 -10
  611. package/es/components/notice-choice/notice-choice.js.map +1 -1
  612. package/es/components/notice-choice/utils.d.ts +1 -0
  613. package/es/components/notice-choice/utils.d.ts.map +1 -1
  614. package/es/components/notice-choice/utils.js +10 -4
  615. package/es/components/notice-choice/utils.js.map +1 -1
  616. package/es/components/notice-choice/world-wide-content.js +1 -2
  617. package/es/components/notice-choice/world-wide-content.js.map +1 -1
  618. package/es/components/pictogram-item/defs.js +0 -1
  619. package/es/components/pictogram-item/defs.js.map +1 -1
  620. package/es/components/pictogram-item/pictogram-item.js +1 -2
  621. package/es/components/pictogram-item/pictogram-item.js.map +1 -1
  622. package/es/components/pricing-table/defs.js +0 -1
  623. package/es/components/pricing-table/defs.js.map +1 -1
  624. package/es/components/pricing-table/pricing-table-annotation-toggle.js +1 -2
  625. package/es/components/pricing-table/pricing-table-annotation-toggle.js.map +1 -1
  626. package/es/components/pricing-table/pricing-table-body.js +1 -2
  627. package/es/components/pricing-table/pricing-table-body.js.map +1 -1
  628. package/es/components/pricing-table/pricing-table-cell-annotation.js +1 -2
  629. package/es/components/pricing-table/pricing-table-cell-annotation.js.map +1 -1
  630. package/es/components/pricing-table/pricing-table-cell.js +2 -3
  631. package/es/components/pricing-table/pricing-table-cell.js.map +1 -1
  632. package/es/components/pricing-table/pricing-table-group.js +1 -2
  633. package/es/components/pricing-table/pricing-table-group.js.map +1 -1
  634. package/es/components/pricing-table/pricing-table-head.js +1 -2
  635. package/es/components/pricing-table/pricing-table-head.js.map +1 -1
  636. package/es/components/pricing-table/pricing-table-header-cell-caption.js +1 -2
  637. package/es/components/pricing-table/pricing-table-header-cell-caption.js.map +1 -1
  638. package/es/components/pricing-table/pricing-table-header-cell-cta.js +1 -2
  639. package/es/components/pricing-table/pricing-table-header-cell-cta.js.map +1 -1
  640. package/es/components/pricing-table/pricing-table-header-cell-description.js +1 -2
  641. package/es/components/pricing-table/pricing-table-header-cell-description.js.map +1 -1
  642. package/es/components/pricing-table/pricing-table-header-cell-headline.js +1 -2
  643. package/es/components/pricing-table/pricing-table-header-cell-headline.js.map +1 -1
  644. package/es/components/pricing-table/pricing-table-header-cell-tag.js +1 -2
  645. package/es/components/pricing-table/pricing-table-header-cell-tag.js.map +1 -1
  646. package/es/components/pricing-table/pricing-table-header-cell.js +1 -2
  647. package/es/components/pricing-table/pricing-table-header-cell.js.map +1 -1
  648. package/es/components/pricing-table/pricing-table-header-row.js +1 -2
  649. package/es/components/pricing-table/pricing-table-header-row.js.map +1 -1
  650. package/es/components/pricing-table/pricing-table-highlight-label.js +1 -2
  651. package/es/components/pricing-table/pricing-table-highlight-label.js.map +1 -1
  652. package/es/components/pricing-table/pricing-table-row.js +1 -2
  653. package/es/components/pricing-table/pricing-table-row.js.map +1 -1
  654. package/es/components/pricing-table/pricing-table.js +2 -3
  655. package/es/components/pricing-table/pricing-table.js.map +1 -1
  656. package/es/components/pricing-table/utils.js +5 -10
  657. package/es/components/pricing-table/utils.js.map +1 -1
  658. package/es/components/quote/defs.js +0 -2
  659. package/es/components/quote/defs.js.map +1 -1
  660. package/es/components/quote/index.d.ts +2 -2
  661. package/es/components/quote/index.d.ts.map +1 -1
  662. package/es/components/quote/index.js +1 -1
  663. package/es/components/quote/index.js.map +1 -1
  664. package/es/components/quote/quote-link-with-icon.js +1 -2
  665. package/es/components/quote/quote-link-with-icon.js.map +1 -1
  666. package/es/components/quote/quote-source-bottom-copy.js +1 -2
  667. package/es/components/quote/quote-source-bottom-copy.js.map +1 -1
  668. package/es/components/quote/quote-source-copy.js +1 -2
  669. package/es/components/quote/quote-source-copy.js.map +1 -1
  670. package/es/components/quote/quote-source-heading.js +1 -2
  671. package/es/components/quote/quote-source-heading.js.map +1 -1
  672. package/es/components/quote/quote.js +1 -2
  673. package/es/components/quote/quote.js.map +1 -1
  674. package/es/components/scroll-animations/defs.js +0 -1
  675. package/es/components/scroll-animations/defs.js.map +1 -1
  676. package/es/components/scroll-animations/scroll-animations.js +5 -6
  677. package/es/components/scroll-animations/scroll-animations.js.map +1 -1
  678. package/es/components/search/search.js +3 -4
  679. package/es/components/search/search.js.map +1 -1
  680. package/es/components/search-with-typeahead/scoped-search-dropdown-mobile.js +1 -2
  681. package/es/components/search-with-typeahead/scoped-search-dropdown-mobile.js.map +1 -1
  682. package/es/components/search-with-typeahead/scoped-search-dropdown.js +3 -4
  683. package/es/components/search-with-typeahead/scoped-search-dropdown.js.map +1 -1
  684. package/es/components/search-with-typeahead/search-with-typeahead-item.js +1 -2
  685. package/es/components/search-with-typeahead/search-with-typeahead-item.js.map +1 -1
  686. package/es/components/search-with-typeahead/search-with-typeahead.js +16 -17
  687. package/es/components/search-with-typeahead/search-with-typeahead.js.map +1 -1
  688. package/es/components/structured-list/structured-list-body.js +1 -2
  689. package/es/components/structured-list/structured-list-body.js.map +1 -1
  690. package/es/components/structured-list/structured-list-cell.js +1 -2
  691. package/es/components/structured-list/structured-list-cell.js.map +1 -1
  692. package/es/components/structured-list/structured-list-group.js +1 -2
  693. package/es/components/structured-list/structured-list-group.js.map +1 -1
  694. package/es/components/structured-list/structured-list-head.js +1 -2
  695. package/es/components/structured-list/structured-list-head.js.map +1 -1
  696. package/es/components/structured-list/structured-list-header-cell.js +1 -2
  697. package/es/components/structured-list/structured-list-header-cell.js.map +1 -1
  698. package/es/components/structured-list/structured-list-header-row.js +1 -2
  699. package/es/components/structured-list/structured-list-header-row.js.map +1 -1
  700. package/es/components/structured-list/structured-list-row.js +1 -2
  701. package/es/components/structured-list/structured-list-row.js.map +1 -1
  702. package/es/components/structured-list/structured-list.js +1 -2
  703. package/es/components/structured-list/structured-list.js.map +1 -1
  704. package/es/components/table-of-contents/defs.js +0 -1
  705. package/es/components/table-of-contents/defs.js.map +1 -1
  706. package/es/components/table-of-contents/table-of-contents.js +2 -3
  707. package/es/components/table-of-contents/table-of-contents.js.map +1 -1
  708. package/es/components/tabs-extended/defs.js +0 -1
  709. package/es/components/tabs-extended/defs.js.map +1 -1
  710. package/es/components/tabs-extended/tab.js +3 -4
  711. package/es/components/tabs-extended/tab.js.map +1 -1
  712. package/es/components/tabs-extended/tabs-extended.js +3 -4
  713. package/es/components/tabs-extended/tabs-extended.js.map +1 -1
  714. package/es/components/tabs-extended-media/tabs-extended-media.js +1 -2
  715. package/es/components/tabs-extended-media/tabs-extended-media.js.map +1 -1
  716. package/es/components/tag-group/tag-group.js +3 -4
  717. package/es/components/tag-group/tag-group.js.map +1 -1
  718. package/es/components/tag-link/tag-link.js +1 -2
  719. package/es/components/tag-link/tag-link.js.map +1 -1
  720. package/es/components/universal-banner/universal-banner-copy.js +2 -3
  721. package/es/components/universal-banner/universal-banner-copy.js.map +1 -1
  722. package/es/components/universal-banner/universal-banner-heading.js +1 -2
  723. package/es/components/universal-banner/universal-banner-heading.js.map +1 -1
  724. package/es/components/universal-banner/universal-banner-image.js +1 -2
  725. package/es/components/universal-banner/universal-banner-image.js.map +1 -1
  726. package/es/components/universal-banner/universal-banner.js +1 -2
  727. package/es/components/universal-banner/universal-banner.js.map +1 -1
  728. package/es/components/video-player/defs.js +0 -2
  729. package/es/components/video-player/defs.js.map +1 -1
  730. package/es/components/video-player/video-player-composite.js +4 -5
  731. package/es/components/video-player/video-player-composite.js.map +1 -1
  732. package/es/components/video-player/video-player-container.js +6 -8
  733. package/es/components/video-player/video-player-container.js.map +1 -1
  734. package/es/components/video-player/video-player.d.ts.map +1 -1
  735. package/es/components/video-player/video-player.js +22 -5
  736. package/es/components/video-player/video-player.js.map +1 -1
  737. package/es/components-react/dotcom-shell/dotcom-shell-composite.d.ts +0 -4
  738. package/es/components-react/dotcom-shell/dotcom-shell-composite.js +0 -8
  739. package/es/components-react/filter-panel/filter-panel-composite.d.ts +2 -7
  740. package/es/components-react/filter-panel/filter-panel-composite.js +3 -10
  741. package/es/components-react/filter-panel/filter-panel-input-select-item.d.ts +4 -0
  742. package/es/components-react/filter-panel/filter-panel-input-select-item.js +5 -0
  743. package/es/components-react/locale-modal/locale-modal-composite.d.ts +4 -0
  744. package/es/components-react/locale-modal/locale-modal-composite.js +5 -0
  745. package/es/globals/defs.js +0 -2
  746. package/es/globals/defs.js.map +1 -1
  747. package/es/globals/internal/collection-helpers.js +5 -10
  748. package/es/globals/internal/collection-helpers.js.map +1 -1
  749. package/es/globals/internal/feature-flags.js +7 -14
  750. package/es/globals/internal/feature-flags.js.map +1 -1
  751. package/es/globals/internal/storybook-cdn.js +3 -6
  752. package/es/globals/internal/storybook-cdn.js.map +1 -1
  753. package/es/globals/mixins/connect.js +1 -2
  754. package/es/globals/mixins/connect.js.map +1 -1
  755. package/es/globals/mixins/hybrid-render.js +1 -2
  756. package/es/globals/mixins/hybrid-render.js.map +1 -1
  757. package/es/globals/mixins/modal-render.d.ts +6 -1
  758. package/es/globals/mixins/modal-render.d.ts.map +1 -1
  759. package/es/globals/mixins/modal-render.js +21 -4
  760. package/es/globals/mixins/modal-render.js.map +1 -1
  761. package/es/globals/mixins/stable-selector.js +3 -4
  762. package/es/globals/mixins/stable-selector.js.map +1 -1
  763. package/es/globals/mixins/throttled-input.js +2 -3
  764. package/es/globals/mixins/throttled-input.js.map +1 -1
  765. package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +6 -6
  766. package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +19 -19
  767. package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie.js +6 -6
  768. package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +6 -6
  769. package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
  770. package/es/internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer.js +3 -3
  771. package/es/internal/vendor/@carbon/ibmdotcom-services/services/Locale/Locale.js +6 -6
  772. package/es/internal/vendor/@carbon/ibmdotcom-services-store/actions/searchAPI.js +1 -1
  773. package/es/internal/vendor/@carbon/ibmdotcom-services-store/actions/searchAPI.js.map +1 -1
  774. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +1 -1
  775. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +1 -1
  776. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie.js +1 -1
  777. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +1 -1
  778. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
  779. package/es/internal/vendor/@carbon/web-components/components/data-table/table-toolbar-search.js +1 -1
  780. package/es/internal/vendor/@carbon/web-components/components/data-table/table-toolbar-search.js.map +1 -1
  781. package/es/internal/vendor/@carbon/web-components/components/file-uploader/drop-container.js +1 -1
  782. package/es/internal/vendor/@carbon/web-components/components/file-uploader/drop-container.js.map +1 -1
  783. package/es/internal/vendor/@carbon/web-components/components/input/input.d.ts +4 -5
  784. package/es/internal/vendor/@carbon/web-components/components/input/input.d.ts.map +1 -1
  785. package/es/internal/vendor/@carbon/web-components/components/input/input.js +16 -35
  786. package/es/internal/vendor/@carbon/web-components/components/input/input.js.map +1 -1
  787. package/es/internal/vendor/@carbon/web-components/components/link/link.d.ts +7 -15
  788. package/es/internal/vendor/@carbon/web-components/components/link/link.d.ts.map +1 -1
  789. package/es/internal/vendor/@carbon/web-components/components/link/link.js +6 -6
  790. package/es/internal/vendor/@carbon/web-components/components/link/link.js.map +1 -1
  791. package/es/internal/vendor/@carbon/web-components/components/overflow-menu/overflow-menu-body.js +1 -1
  792. package/es/internal/vendor/@carbon/web-components/components/overflow-menu/overflow-menu-body.js.map +1 -1
  793. package/es/internal/vendor/@carbon/web-components/components/overflow-menu/overflow-menu.js +1 -1
  794. package/es/internal/vendor/@carbon/web-components/components/overflow-menu/overflow-menu.js.map +1 -1
  795. package/es/internal/vendor/@carbon/web-components/components/pagination/page-sizes-select.js +1 -1
  796. package/es/internal/vendor/@carbon/web-components/components/pagination/page-sizes-select.js.map +1 -1
  797. package/es/internal/vendor/@carbon/web-components/components/slider/slider.js +1 -1
  798. package/es/internal/vendor/@carbon/web-components/components/slider/slider.js.map +1 -1
  799. package/es/internal/vendor/@carbon/web-components/components/structured-list/structured-list-row.js +1 -1
  800. package/es/internal/vendor/@carbon/web-components/components/structured-list/structured-list-row.js.map +1 -1
  801. package/es/internal/vendor/@carbon/web-components/components/tabs/tab.d.ts +8 -0
  802. package/es/internal/vendor/@carbon/web-components/components/tabs/tab.d.ts.map +1 -1
  803. package/es/internal/vendor/@carbon/web-components/components/tabs/tab.js +28 -4
  804. package/es/internal/vendor/@carbon/web-components/components/tabs/tab.js.map +1 -1
  805. package/es/internal/vendor/@carbon/web-components/components/tooltip/tooltip.js +2 -2
  806. package/es/internal/vendor/@carbon/web-components/components/tooltip/tooltip.js.map +1 -1
  807. package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-link.js +1 -1
  808. package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-link.js.map +1 -1
  809. package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu-item.d.ts +1 -0
  810. package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu-item.d.ts.map +1 -1
  811. package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu-item.js +11 -0
  812. package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu-item.js.map +1 -1
  813. package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu.js +1 -1
  814. package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu.js.map +1 -1
  815. package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav.js +1 -1
  816. package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav.js.map +1 -1
  817. package/es/internal/vendor/@carbon/web-components/components-react/input/input.d.ts +4 -4
  818. package/es/internal/vendor/@carbon/web-components/components-react/input/input.js +2 -2
  819. package/es/internal/vendor/@carbon/web-components/components-react/tabs/tab.d.ts +4 -0
  820. package/es/internal/vendor/@carbon/web-components/components-react/tabs/tab.js +2 -0
  821. package/es/internal/vendor/@carbon/web-components/globals/wrappers/createReactCustomElementType.js +2 -1
  822. package/es/internal/vendor/@carbon/web-components/globals/wrappers/createReactCustomElementType.js.map +1 -1
  823. package/lib/components/background-media/defs.js +2 -4
  824. package/lib/components/background-media/defs.js.map +1 -1
  825. package/lib/components/button/defs.js +3 -6
  826. package/lib/components/button/defs.js.map +1 -1
  827. package/lib/components/card/defs.js +2 -4
  828. package/lib/components/card/defs.js.map +1 -1
  829. package/lib/components/card-group/defs.js +1 -2
  830. package/lib/components/card-group/defs.js.map +1 -1
  831. package/lib/components/content-block/defs.js +2 -4
  832. package/lib/components/content-block/defs.js.map +1 -1
  833. package/lib/components/content-item-horizontal/defs.js +2 -4
  834. package/lib/components/content-item-horizontal/defs.js.map +1 -1
  835. package/lib/components/cta/defs.js +2 -4
  836. package/lib/components/cta/defs.js.map +1 -1
  837. package/lib/components/expressive-modal/defs.js +2 -4
  838. package/lib/components/expressive-modal/defs.js.map +1 -1
  839. package/lib/components/feature-section/defs.js +1 -2
  840. package/lib/components/feature-section/defs.js.map +1 -1
  841. package/lib/components/horizontal-rule/defs.js +4 -8
  842. package/lib/components/horizontal-rule/defs.js.map +1 -1
  843. package/lib/components/leadspace/defs.js +3 -6
  844. package/lib/components/leadspace/defs.js.map +1 -1
  845. package/lib/components/leadspace-with-search/defs.js +1 -2
  846. package/lib/components/leadspace-with-search/defs.js.map +1 -1
  847. package/lib/components/leaving-ibm/leaving-ibm-connect.js +3 -3
  848. package/lib/components/leaving-ibm/leaving-ibm-connect.js.map +1 -1
  849. package/lib/components/link-list/defs.js +2 -4
  850. package/lib/components/link-list/defs.js.map +1 -1
  851. package/lib/components/pictogram-item/defs.js +1 -2
  852. package/lib/components/pictogram-item/defs.js.map +1 -1
  853. package/lib/components/quote/defs.js +2 -4
  854. package/lib/components/quote/defs.js.map +1 -1
  855. package/lib/components/table-of-contents/defs.js +1 -2
  856. package/lib/components/table-of-contents/defs.js.map +1 -1
  857. package/lib/components/tabs-extended/defs.js +1 -2
  858. package/lib/components/tabs-extended/defs.js.map +1 -1
  859. package/lib/components/video-player/defs.js +2 -4
  860. package/lib/components/video-player/defs.js.map +1 -1
  861. package/lib/components-react-node/back-to-top/back-to-top.js +25 -45
  862. package/lib/components-react-node/background-media/background-media.js +5 -8
  863. package/lib/components-react-node/button/button.js +25 -45
  864. package/lib/components-react-node/button-group/button-group-item.js +7 -6
  865. package/lib/components-react-node/button-group/button-group.js +3 -6
  866. package/lib/components-react-node/callout-quote/callout-link-with-icon.js +7 -6
  867. package/lib/components-react-node/callout-quote/callout-quote.js +7 -6
  868. package/lib/components-react-node/callout-with-media/callout-with-media-copy.js +7 -6
  869. package/lib/components-react-node/callout-with-media/callout-with-media-image.js +5 -8
  870. package/lib/components-react-node/callout-with-media/callout-with-media-video.js +10 -9
  871. package/lib/components-react-node/callout-with-media/callout-with-media.js +7 -6
  872. package/lib/components-react-node/card/card-eyebrow.js +5 -8
  873. package/lib/components-react-node/card/card-footer.js +40 -56
  874. package/lib/components-react-node/card/card-heading.js +5 -8
  875. package/lib/components-react-node/card/card.js +25 -45
  876. package/lib/components-react-node/card/image-logo.js +7 -6
  877. package/lib/components-react-node/card-group/card-group-card-link-item.js +38 -54
  878. package/lib/components-react-node/card-group/card-group-item.js +25 -45
  879. package/lib/components-react-node/card-group/card-group.js +25 -45
  880. package/lib/components-react-node/card-in-card/card-in-card-image.js +7 -6
  881. package/lib/components-react-node/card-in-card/card-in-card.js +7 -6
  882. package/lib/components-react-node/card-link/card-link-heading.js +7 -6
  883. package/lib/components-react-node/card-link/card-link.js +25 -45
  884. package/lib/components-react-node/card-section-carousel/card-section-carousel.js +7 -6
  885. package/lib/components-react-node/card-section-offset/card-section-offset.js +7 -6
  886. package/lib/components-react-node/card-section-simple/card-section-simple.js +7 -6
  887. package/lib/components-react-node/carousel/carousel.js +25 -45
  888. package/lib/components-react-node/content-block/content-block-complementary.js +5 -8
  889. package/lib/components-react-node/content-block/content-block-copy.js +5 -8
  890. package/lib/components-react-node/content-block/content-block-heading.js +5 -8
  891. package/lib/components-react-node/content-block/content-block-paragraph.js +3 -6
  892. package/lib/components-react-node/content-block/content-block.js +5 -8
  893. package/lib/components-react-node/content-block-cards/content-block-cards.js +7 -6
  894. package/lib/components-react-node/content-block-horizontal/content-block-horizontal.js +33 -49
  895. package/lib/components-react-node/content-block-media/content-block-media-content.js +7 -6
  896. package/lib/components-react-node/content-block-media/content-block-media.js +7 -6
  897. package/lib/components-react-node/content-block-mixed/content-block-mixed.js +7 -6
  898. package/lib/components-react-node/content-block-segmented/content-block-segmented-item.js +7 -6
  899. package/lib/components-react-node/content-block-segmented/content-block-segmented.js +7 -6
  900. package/lib/components-react-node/content-block-simple/content-block-simple.js +7 -6
  901. package/lib/components-react-node/content-group/content-group-copy.js +5 -8
  902. package/lib/components-react-node/content-group/content-group-heading.js +5 -8
  903. package/lib/components-react-node/content-group/content-group-paragraph.js +3 -6
  904. package/lib/components-react-node/content-group/content-group.js +7 -6
  905. package/lib/components-react-node/content-group-banner/content-group-banner.js +7 -6
  906. package/lib/components-react-node/content-group-cards/content-group-cards-item.js +3 -6
  907. package/lib/components-react-node/content-group-cards/content-group-cards.js +7 -6
  908. package/lib/components-react-node/content-group-pictograms/content-group-pictograms.js +7 -6
  909. package/lib/components-react-node/content-group-simple/content-group-simple.js +7 -6
  910. package/lib/components-react-node/content-item/content-item-copy.js +7 -6
  911. package/lib/components-react-node/content-item/content-item-heading.js +5 -8
  912. package/lib/components-react-node/content-item/content-item-paragraph.js +3 -6
  913. package/lib/components-react-node/content-item/content-item.js +3 -6
  914. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-copy.js +7 -6
  915. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-eyebrow.js +5 -8
  916. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-copy.js +7 -6
  917. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-featured.js +7 -6
  918. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-video.js +10 -9
  919. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media.js +10 -9
  920. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-thumbnail-copy.js +7 -6
  921. package/lib/components-react-node/content-item-horizontal/content-item-horizontal.js +32 -48
  922. package/lib/components-react-node/content-section/content-section-copy.js +5 -8
  923. package/lib/components-react-node/content-section/content-section-heading.js +5 -8
  924. package/lib/components-react-node/content-section/content-section.js +5 -8
  925. package/lib/components-react-node/cta/button-cta.js +48 -64
  926. package/lib/components-react-node/cta/card-cta-footer.js +46 -62
  927. package/lib/components-react-node/cta/card-cta-image.js +7 -6
  928. package/lib/components-react-node/cta/card-cta.js +25 -45
  929. package/lib/components-react-node/cta/card-link-cta.js +25 -45
  930. package/lib/components-react-node/cta/cta.js +5 -8
  931. package/lib/components-react-node/cta/feature-cta-footer.js +45 -61
  932. package/lib/components-react-node/cta/feature-cta.js +58 -74
  933. package/lib/components-react-node/cta/link-list-item-card-cta.js +7 -6
  934. package/lib/components-react-node/cta/link-list-item-cta.js +7 -6
  935. package/lib/components-react-node/cta/text-cta.js +48 -64
  936. package/lib/components-react-node/cta/video-cta-composite.js +5 -8
  937. package/lib/components-react-node/cta/video-cta-container.js +7 -6
  938. package/lib/components-react-node/cta-block/cta-block-item-row.js +25 -45
  939. package/lib/components-react-node/cta-block/cta-block-item.js +7 -6
  940. package/lib/components-react-node/cta-block/cta-block.js +33 -49
  941. package/lib/components-react-node/cta-section/cta-section.js +12 -11
  942. package/lib/components-react-node/dotcom-shell/dotcom-shell-composite.js +25 -53
  943. package/lib/components-react-node/dotcom-shell/dotcom-shell-container.js +7 -6
  944. package/lib/components-react-node/dotcom-shell/dotcom-shell.js +3 -6
  945. package/lib/components-react-node/expressive-modal/expressive-modal-body.js +3 -6
  946. package/lib/components-react-node/expressive-modal/expressive-modal-close-button.js +5 -8
  947. package/lib/components-react-node/expressive-modal/expressive-modal-footer.js +5 -8
  948. package/lib/components-react-node/expressive-modal/expressive-modal-header.js +5 -8
  949. package/lib/components-react-node/expressive-modal/expressive-modal-heading.js +3 -6
  950. package/lib/components-react-node/expressive-modal/expressive-modal.js +25 -45
  951. package/lib/components-react-node/feature-card/feature-card-footer.js +7 -6
  952. package/lib/components-react-node/feature-card/feature-card.js +5 -8
  953. package/lib/components-react-node/feature-section/feature-section-card-link.js +7 -6
  954. package/lib/components-react-node/feature-section/feature-section.js +12 -11
  955. package/lib/components-react-node/filter-panel/filter-group-item.js +25 -45
  956. package/lib/components-react-node/filter-panel/filter-group.js +3 -6
  957. package/lib/components-react-node/filter-panel/filter-modal-button.js +3 -6
  958. package/lib/components-react-node/filter-panel/filter-modal-footer.js +3 -6
  959. package/lib/components-react-node/filter-panel/filter-modal-heading.js +3 -6
  960. package/lib/components-react-node/filter-panel/filter-panel-checkbox.js +5 -8
  961. package/lib/components-react-node/filter-panel/filter-panel-composite.js +28 -55
  962. package/lib/components-react-node/filter-panel/filter-panel-heading.js +5 -8
  963. package/lib/components-react-node/filter-panel/filter-panel-input-select-item.js +30 -45
  964. package/lib/components-react-node/filter-panel/filter-panel-input-select.js +25 -45
  965. package/lib/components-react-node/filter-panel/filter-panel-modal.js +41 -57
  966. package/lib/components-react-node/filter-panel/filter-panel.js +25 -45
  967. package/lib/components-react-node/footer/dropdown.js +5 -8
  968. package/lib/components-react-node/footer/footer-composite.js +25 -45
  969. package/lib/components-react-node/footer/footer-container.js +7 -6
  970. package/lib/components-react-node/horizontal-rule/horizontal-rule.js +5 -8
  971. package/lib/components-react-node/image/image-item.js +3 -6
  972. package/lib/components-react-node/image/image.js +25 -45
  973. package/lib/components-react-node/leadspace/breadcrumb-item.js +3 -6
  974. package/lib/components-react-node/leadspace/breadcrumb-link.js +3 -6
  975. package/lib/components-react-node/leadspace/breadcrumb.js +3 -6
  976. package/lib/components-react-node/leadspace/leadspace-heading.js +5 -8
  977. package/lib/components-react-node/leadspace/leadspace-image.js +7 -6
  978. package/lib/components-react-node/leadspace/leadspace.js +5 -8
  979. package/lib/components-react-node/leadspace-block/leadspace-block-content.js +7 -6
  980. package/lib/components-react-node/leadspace-block/leadspace-block-cta.js +7 -6
  981. package/lib/components-react-node/leadspace-block/leadspace-block-heading.js +7 -6
  982. package/lib/components-react-node/leadspace-block/leadspace-block-media.js +3 -6
  983. package/lib/components-react-node/leadspace-block/leadspace-block.js +3 -6
  984. package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content-copy.js +10 -9
  985. package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content-heading.js +7 -6
  986. package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content.js +10 -9
  987. package/lib/components-react-node/leadspace-with-search/leadspace-with-search-heading.js +7 -6
  988. package/lib/components-react-node/leadspace-with-search/leadspace-with-search.js +25 -45
  989. package/lib/components-react-node/leaving-ibm/leaving-ibm-composite.js +25 -45
  990. package/lib/components-react-node/leaving-ibm/leaving-ibm-container.js +7 -6
  991. package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-body.js +5 -8
  992. package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-heading.js +3 -6
  993. package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-supplemental.js +5 -8
  994. package/lib/components-react-node/leaving-ibm/leaving-ibm-modal.js +5 -8
  995. package/lib/components-react-node/lightbox-media-viewer/lightbox-image-viewer.js +15 -14
  996. package/lib/components-react-node/lightbox-media-viewer/lightbox-media-viewer-body.js +2 -4
  997. package/lib/components-react-node/lightbox-media-viewer/lightbox-media-viewer.js +24 -23
  998. package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player-composite.js +45 -61
  999. package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player-container.js +4 -7
  1000. package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player.js +40 -56
  1001. package/lib/components-react-node/link-list/link-list-heading.js +5 -8
  1002. package/lib/components-react-node/link-list/link-list-item-card.js +7 -6
  1003. package/lib/components-react-node/link-list/link-list-item.js +33 -49
  1004. package/lib/components-react-node/link-list/link-list.js +5 -8
  1005. package/lib/components-react-node/link-list-section/link-list-section.js +7 -6
  1006. package/lib/components-react-node/link-with-icon/link-with-icon.js +25 -45
  1007. package/lib/components-react-node/locale-modal/locale-modal-composite.js +30 -45
  1008. package/lib/components-react-node/locale-modal/locale-modal-container.js +7 -6
  1009. package/lib/components-react-node/logo-grid/logo-grid-item.js +7 -6
  1010. package/lib/components-react-node/logo-grid/logo-grid-link.js +5 -8
  1011. package/lib/components-react-node/logo-grid/logo-grid.js +39 -55
  1012. package/lib/components-react-node/markdown/markdown.js +5 -8
  1013. package/lib/components-react-node/masthead/masthead-composite.js +25 -45
  1014. package/lib/components-react-node/masthead/masthead-container.js +7 -6
  1015. package/lib/components-react-node/masthead/masthead.js +3 -6
  1016. package/lib/components-react-node/pictogram-item/pictogram-item.js +12 -11
  1017. package/lib/components-react-node/quote/quote-link-with-icon.js +7 -6
  1018. package/lib/components-react-node/quote/quote-source-bottom-copy.js +5 -8
  1019. package/lib/components-react-node/quote/quote-source-copy.js +5 -8
  1020. package/lib/components-react-node/quote/quote-source-heading.js +5 -8
  1021. package/lib/components-react-node/quote/quote.js +5 -8
  1022. package/lib/components-react-node/search-with-typeahead/scoped-search-dropdown-mobile.js +5 -8
  1023. package/lib/components-react-node/search-with-typeahead/scoped-search-dropdown.js +5 -8
  1024. package/lib/components-react-node/search-with-typeahead/search-with-typeahead-item.js +25 -45
  1025. package/lib/components-react-node/search-with-typeahead/search-with-typeahead.js +25 -45
  1026. package/lib/components-react-node/structured-list/structured-list-body.js +3 -6
  1027. package/lib/components-react-node/structured-list/structured-list-cell.js +5 -8
  1028. package/lib/components-react-node/structured-list/structured-list-group.js +5 -8
  1029. package/lib/components-react-node/structured-list/structured-list-head.js +3 -6
  1030. package/lib/components-react-node/structured-list/structured-list-header-cell.js +3 -6
  1031. package/lib/components-react-node/structured-list/structured-list-header-row.js +3 -6
  1032. package/lib/components-react-node/structured-list/structured-list-row.js +3 -6
  1033. package/lib/components-react-node/structured-list/structured-list.js +3 -6
  1034. package/lib/components-react-node/table-of-contents/table-of-contents.js +25 -45
  1035. package/lib/components-react-node/tabs-extended/tab.js +25 -45
  1036. package/lib/components-react-node/tabs-extended/tabs-extended.js +5 -8
  1037. package/lib/components-react-node/tabs-extended-media/tabs-extended-media.js +12 -11
  1038. package/lib/components-react-node/tag-group/tag-group.js +3 -6
  1039. package/lib/components-react-node/tag-link/tag-link.js +5 -8
  1040. package/lib/components-react-node/universal-banner/universal-banner-copy.js +5 -8
  1041. package/lib/components-react-node/universal-banner/universal-banner-heading.js +5 -8
  1042. package/lib/components-react-node/universal-banner/universal-banner-image.js +7 -6
  1043. package/lib/components-react-node/universal-banner/universal-banner.js +25 -45
  1044. package/lib/components-react-node/video-player/video-player-composite.js +25 -45
  1045. package/lib/components-react-node/video-player/video-player-container.js +7 -6
  1046. package/lib/components-react-node/video-player/video-player.js +25 -45
  1047. package/lib/globals/defs.js +2 -4
  1048. package/lib/globals/defs.js.map +1 -1
  1049. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +7 -8
  1050. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/altlangs/altlangs.js +1 -2
  1051. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/calculateTotalWidth/calculateTotalWidth.js +1 -2
  1052. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/decodeString/decodeString.js +1 -2
  1053. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/escaperegexp/escaperegexp.js +1 -2
  1054. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/featureflag/featureflag.js +1 -2
  1055. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +20 -21
  1056. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie.js +7 -8
  1057. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/loadNonLatinPlex/loadNonLatinPlex.js +1 -2
  1058. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/markdownToHtml.js +1 -2
  1059. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +7 -8
  1060. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/removeHtmlTagEntities/removeHtmlTagEntities.js +1 -2
  1061. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/sameHeight/sameHeight.js +1 -2
  1062. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/serialize/serialize.js +1 -2
  1063. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +3 -4
  1064. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/smoothScroll/smoothScroll.js +1 -2
  1065. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/stripHTML/stripHTML.js +1 -2
  1066. package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/uniqueid/uniqueid.js +1 -2
  1067. package/lib/internal/vendor/@carbon/ibmdotcom-services/services/Analytics/Analytics.js +1 -2
  1068. package/lib/internal/vendor/@carbon/ibmdotcom-services/services/CloudAccountAuth/CloudAccountAuth.js +1 -2
  1069. package/lib/internal/vendor/@carbon/ibmdotcom-services/services/DDO/DDO.js +1 -2
  1070. package/lib/internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer.js +9 -10
  1071. package/lib/internal/vendor/@carbon/ibmdotcom-services/services/Locale/Locale.js +7 -8
  1072. package/lib/internal/vendor/@carbon/ibmdotcom-services/services/MarketingSearch/MarketingSearch.js +1 -2
  1073. package/lib/internal/vendor/@carbon/ibmdotcom-services/services/MastheadLogo/MastheadLogo.js +1 -2
  1074. package/lib/internal/vendor/@carbon/ibmdotcom-services/services/Profile/Profile.js +1 -2
  1075. package/lib/internal/vendor/@carbon/ibmdotcom-services/services/SearchTypeahead/SearchTypeahead.js +1 -2
  1076. package/lib/internal/vendor/@carbon/ibmdotcom-services/services/Translation/Translation.js +1 -2
  1077. package/lib/internal/vendor/@carbon/ibmdotcom-services/services/VideoPlayer/VideoPlayer.js +1 -2
  1078. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/actions/searchAPI.js +1 -1
  1079. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/actions/searchAPI.js.map +1 -1
  1080. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/reducers/index.js +1 -2
  1081. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/reducers/index.js.map +1 -1
  1082. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/store.js +1 -2
  1083. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/store.js.map +1 -1
  1084. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/cloudAccountAuthAPI.js +2 -4
  1085. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/cloudAccountAuthAPI.js.map +1 -1
  1086. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/kalturaPlayerAPI.js +1 -2
  1087. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/kalturaPlayerAPI.js.map +1 -1
  1088. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/localeAPI.js +1 -2
  1089. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/localeAPI.js.map +1 -1
  1090. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/profileAPI.js +2 -4
  1091. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/profileAPI.js.map +1 -1
  1092. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/searchAPI.js +1 -2
  1093. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/searchAPI.js.map +1 -1
  1094. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/translateAPI.js +1 -2
  1095. package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/translateAPI.js.map +1 -1
  1096. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +2 -3
  1097. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/altlangs/altlangs.js +1 -2
  1098. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/calculateTotalWidth/calculateTotalWidth.js +1 -2
  1099. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/decodeString/decodeString.js +1 -2
  1100. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/escaperegexp/escaperegexp.js +1 -2
  1101. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/featureflag/featureflag.js +1 -2
  1102. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +2 -3
  1103. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie.js +2 -3
  1104. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/loadNonLatinPlex/loadNonLatinPlex.js +1 -2
  1105. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/markdownToHtml.js +1 -2
  1106. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +2 -3
  1107. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/removeHtmlTagEntities/removeHtmlTagEntities.js +1 -2
  1108. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/sameHeight/sameHeight.js +1 -2
  1109. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/serialize/serialize.js +1 -2
  1110. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +3 -4
  1111. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/smoothScroll/smoothScroll.js +1 -2
  1112. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/stripHTML/stripHTML.js +1 -2
  1113. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/uniqueid/uniqueid.js +1 -2
  1114. package/lib/internal/vendor/@carbon/web-components/components/accordion/defs.js +2 -4
  1115. package/lib/internal/vendor/@carbon/web-components/components/accordion/defs.js.map +1 -1
  1116. package/lib/internal/vendor/@carbon/web-components/components/button/defs.js +3 -6
  1117. package/lib/internal/vendor/@carbon/web-components/components/button/defs.js.map +1 -1
  1118. package/lib/internal/vendor/@carbon/web-components/components/code-snippet/defs.js +1 -2
  1119. package/lib/internal/vendor/@carbon/web-components/components/code-snippet/defs.js.map +1 -1
  1120. package/lib/internal/vendor/@carbon/web-components/components/content-switcher/defs.js +2 -4
  1121. package/lib/internal/vendor/@carbon/web-components/components/content-switcher/defs.js.map +1 -1
  1122. package/lib/internal/vendor/@carbon/web-components/components/data-table/defs.js +5 -10
  1123. package/lib/internal/vendor/@carbon/web-components/components/data-table/defs.js.map +1 -1
  1124. package/lib/internal/vendor/@carbon/web-components/components/date-picker/defs.js +2 -4
  1125. package/lib/internal/vendor/@carbon/web-components/components/date-picker/defs.js.map +1 -1
  1126. package/lib/internal/vendor/@carbon/web-components/components/dropdown/defs.js +4 -8
  1127. package/lib/internal/vendor/@carbon/web-components/components/dropdown/defs.js.map +1 -1
  1128. package/lib/internal/vendor/@carbon/web-components/components/file-uploader/defs.js +2 -4
  1129. package/lib/internal/vendor/@carbon/web-components/components/file-uploader/defs.js.map +1 -1
  1130. package/lib/internal/vendor/@carbon/web-components/components/floating-menu/defs.js +4 -8
  1131. package/lib/internal/vendor/@carbon/web-components/components/floating-menu/defs.js.map +1 -1
  1132. package/lib/internal/vendor/@carbon/web-components/components/inline-loading/defs.js +1 -2
  1133. package/lib/internal/vendor/@carbon/web-components/components/inline-loading/defs.js.map +1 -1
  1134. package/lib/internal/vendor/@carbon/web-components/components/input/defs.js +2 -4
  1135. package/lib/internal/vendor/@carbon/web-components/components/input/defs.js.map +1 -1
  1136. package/lib/internal/vendor/@carbon/web-components/components/loading/defs.js +1 -2
  1137. package/lib/internal/vendor/@carbon/web-components/components/loading/defs.js.map +1 -1
  1138. package/lib/internal/vendor/@carbon/web-components/components/modal/defs.js +1 -2
  1139. package/lib/internal/vendor/@carbon/web-components/components/modal/defs.js.map +1 -1
  1140. package/lib/internal/vendor/@carbon/web-components/components/notification/defs.js +2 -4
  1141. package/lib/internal/vendor/@carbon/web-components/components/notification/defs.js.map +1 -1
  1142. package/lib/internal/vendor/@carbon/web-components/components/number-input/defs.js +1 -2
  1143. package/lib/internal/vendor/@carbon/web-components/components/number-input/defs.js.map +1 -1
  1144. package/lib/internal/vendor/@carbon/web-components/components/overflow-menu/defs.js +2 -4
  1145. package/lib/internal/vendor/@carbon/web-components/components/overflow-menu/defs.js.map +1 -1
  1146. package/lib/internal/vendor/@carbon/web-components/components/progress-indicator/defs.js +1 -2
  1147. package/lib/internal/vendor/@carbon/web-components/components/progress-indicator/defs.js.map +1 -1
  1148. package/lib/internal/vendor/@carbon/web-components/components/radio-button/defs.js +2 -4
  1149. package/lib/internal/vendor/@carbon/web-components/components/radio-button/defs.js.map +1 -1
  1150. package/lib/internal/vendor/@carbon/web-components/components/skeleton-text/defs.js +1 -2
  1151. package/lib/internal/vendor/@carbon/web-components/components/skeleton-text/defs.js.map +1 -1
  1152. package/lib/internal/vendor/@carbon/web-components/components/tabs/defs.js +3 -6
  1153. package/lib/internal/vendor/@carbon/web-components/components/tabs/defs.js.map +1 -1
  1154. package/lib/internal/vendor/@carbon/web-components/components/tag/defs.js +2 -4
  1155. package/lib/internal/vendor/@carbon/web-components/components/tag/defs.js.map +1 -1
  1156. package/lib/internal/vendor/@carbon/web-components/components/toggle/defs.js +1 -2
  1157. package/lib/internal/vendor/@carbon/web-components/components/toggle/defs.js.map +1 -1
  1158. package/lib/internal/vendor/@carbon/web-components/components/tooltip/defs.js +2 -4
  1159. package/lib/internal/vendor/@carbon/web-components/components/tooltip/defs.js.map +1 -1
  1160. package/lib/internal/vendor/@carbon/web-components/components/ui-shell/defs.js +2 -4
  1161. package/lib/internal/vendor/@carbon/web-components/components/ui-shell/defs.js.map +1 -1
  1162. package/lib/internal/vendor/@carbon/web-components/components-react-node/accordion/accordion-item.js +25 -45
  1163. package/lib/internal/vendor/@carbon/web-components/components-react-node/accordion/accordion.js +5 -8
  1164. package/lib/internal/vendor/@carbon/web-components/components-react-node/breadcrumb/breadcrumb-item.js +3 -6
  1165. package/lib/internal/vendor/@carbon/web-components/components-react-node/breadcrumb/breadcrumb-link.js +3 -6
  1166. package/lib/internal/vendor/@carbon/web-components/components-react-node/breadcrumb/breadcrumb-overflow-menu.js +11 -6
  1167. package/lib/internal/vendor/@carbon/web-components/components-react-node/breadcrumb/breadcrumb.js +3 -6
  1168. package/lib/internal/vendor/@carbon/web-components/components-react-node/button/button-skeleton.js +7 -6
  1169. package/lib/internal/vendor/@carbon/web-components/components-react-node/button/button.js +25 -45
  1170. package/lib/internal/vendor/@carbon/web-components/components-react-node/checkbox/checkbox.js +25 -45
  1171. package/lib/internal/vendor/@carbon/web-components/components-react-node/code-snippet/code-snippet-skeleton.js +5 -8
  1172. package/lib/internal/vendor/@carbon/web-components/components-react-node/code-snippet/code-snippet.js +25 -45
  1173. package/lib/internal/vendor/@carbon/web-components/components-react-node/combo-box/combo-box-item.js +11 -6
  1174. package/lib/internal/vendor/@carbon/web-components/components-react-node/combo-box/combo-box.js +5 -8
  1175. package/lib/internal/vendor/@carbon/web-components/components-react-node/content-switcher/content-switcher-item.js +25 -45
  1176. package/lib/internal/vendor/@carbon/web-components/components-react-node/content-switcher/content-switcher.js +5 -8
  1177. package/lib/internal/vendor/@carbon/web-components/components-react-node/copy-button/copy-button.js +25 -45
  1178. package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-batch-actions.js +25 -45
  1179. package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-body.js +5 -8
  1180. package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-cell-skeleton.js +11 -6
  1181. package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-cell.js +3 -6
  1182. package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-expand-row.js +25 -45
  1183. package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-expanded-row.js +25 -45
  1184. package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-head.js +3 -6
  1185. package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-header-cell-skeleton.js +11 -6
  1186. package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-header-cell.js +25 -45
  1187. package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-header-expand-row.js +25 -20
  1188. package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-header-row.js +5 -8
  1189. package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-row.js +25 -45
  1190. package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-toolbar-content.js +25 -45
  1191. package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-toolbar-search.js +25 -45
  1192. package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-toolbar.js +3 -6
  1193. package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table.js +25 -45
  1194. package/lib/internal/vendor/@carbon/web-components/components-react-node/date-picker/date-picker-input-skeleton.js +5 -8
  1195. package/lib/internal/vendor/@carbon/web-components/components-react-node/date-picker/date-picker-input.js +25 -45
  1196. package/lib/internal/vendor/@carbon/web-components/components-react-node/date-picker/date-picker.js +25 -45
  1197. package/lib/internal/vendor/@carbon/web-components/components-react-node/dropdown/dropdown-item.js +25 -45
  1198. package/lib/internal/vendor/@carbon/web-components/components-react-node/dropdown/dropdown-skeleton.js +3 -6
  1199. package/lib/internal/vendor/@carbon/web-components/components-react-node/dropdown/dropdown.js +25 -45
  1200. package/lib/internal/vendor/@carbon/web-components/components-react-node/file-uploader/drop-container.js +25 -45
  1201. package/lib/internal/vendor/@carbon/web-components/components-react-node/file-uploader/file-uploader-item.js +25 -45
  1202. package/lib/internal/vendor/@carbon/web-components/components-react-node/file-uploader/file-uploader.js +5 -8
  1203. package/lib/internal/vendor/@carbon/web-components/components-react-node/floating-menu/floating-menu.js +2 -4
  1204. package/lib/internal/vendor/@carbon/web-components/components-react-node/form/form-item.js +3 -6
  1205. package/lib/internal/vendor/@carbon/web-components/components-react-node/inline-loading/inline-loading.js +5 -8
  1206. package/lib/internal/vendor/@carbon/web-components/components-react-node/input/input.js +27 -47
  1207. package/lib/internal/vendor/@carbon/web-components/components-react-node/link/link.js +25 -45
  1208. package/lib/internal/vendor/@carbon/web-components/components-react-node/list/list-item.js +25 -45
  1209. package/lib/internal/vendor/@carbon/web-components/components-react-node/list/ordered-list.js +11 -6
  1210. package/lib/internal/vendor/@carbon/web-components/components-react-node/list/unordered-list.js +25 -45
  1211. package/lib/internal/vendor/@carbon/web-components/components-react-node/loading/loading.js +25 -45
  1212. package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-body.js +3 -6
  1213. package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-close-button.js +5 -8
  1214. package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-footer-button.js +7 -6
  1215. package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-footer.js +3 -6
  1216. package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-header.js +3 -6
  1217. package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-heading.js +3 -6
  1218. package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-label.js +3 -6
  1219. package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal.js +25 -45
  1220. package/lib/internal/vendor/@carbon/web-components/components-react-node/multi-select/multi-select-item.js +41 -53
  1221. package/lib/internal/vendor/@carbon/web-components/components-react-node/multi-select/multi-select.js +25 -45
  1222. package/lib/internal/vendor/@carbon/web-components/components-react-node/notification/inline-notification.js +25 -45
  1223. package/lib/internal/vendor/@carbon/web-components/components-react-node/notification/toast-notification.js +15 -10
  1224. package/lib/internal/vendor/@carbon/web-components/components-react-node/number-input/number-input-skeleton.js +25 -45
  1225. package/lib/internal/vendor/@carbon/web-components/components-react-node/number-input/number-input.js +25 -45
  1226. package/lib/internal/vendor/@carbon/web-components/components-react-node/overflow-menu/overflow-menu-body.js +45 -57
  1227. package/lib/internal/vendor/@carbon/web-components/components-react-node/overflow-menu/overflow-menu-item.js +25 -45
  1228. package/lib/internal/vendor/@carbon/web-components/components-react-node/overflow-menu/overflow-menu.js +25 -45
  1229. package/lib/internal/vendor/@carbon/web-components/components-react-node/pagination/page-sizes-select.js +25 -45
  1230. package/lib/internal/vendor/@carbon/web-components/components-react-node/pagination/pages-select.js +25 -45
  1231. package/lib/internal/vendor/@carbon/web-components/components-react-node/pagination/pagination.js +25 -45
  1232. package/lib/internal/vendor/@carbon/web-components/components-react-node/progress-indicator/progress-indicator-skeleton.js +25 -45
  1233. package/lib/internal/vendor/@carbon/web-components/components-react-node/progress-indicator/progress-indicator.js +25 -45
  1234. package/lib/internal/vendor/@carbon/web-components/components-react-node/progress-indicator/progress-step-skeleton.js +25 -45
  1235. package/lib/internal/vendor/@carbon/web-components/components-react-node/progress-indicator/progress-step.js +25 -45
  1236. package/lib/internal/vendor/@carbon/web-components/components-react-node/radio-button/radio-button-group.js +25 -45
  1237. package/lib/internal/vendor/@carbon/web-components/components-react-node/radio-button/radio-button-skeleton.js +3 -6
  1238. package/lib/internal/vendor/@carbon/web-components/components-react-node/radio-button/radio-button.js +25 -45
  1239. package/lib/internal/vendor/@carbon/web-components/components-react-node/search/search-skeleton.js +5 -8
  1240. package/lib/internal/vendor/@carbon/web-components/components-react-node/search/search.js +25 -45
  1241. package/lib/internal/vendor/@carbon/web-components/components-react-node/select/select-item-group.js +25 -45
  1242. package/lib/internal/vendor/@carbon/web-components/components-react-node/select/select-item.js +25 -45
  1243. package/lib/internal/vendor/@carbon/web-components/components-react-node/select/select.js +25 -45
  1244. package/lib/internal/vendor/@carbon/web-components/components-react-node/skeleton-placeholder/skeleton-placeholder.js +3 -6
  1245. package/lib/internal/vendor/@carbon/web-components/components-react-node/skeleton-text/skeleton-text.js +5 -8
  1246. package/lib/internal/vendor/@carbon/web-components/components-react-node/skip-to-content/skip-to-content.js +5 -8
  1247. package/lib/internal/vendor/@carbon/web-components/components-react-node/slider/slider-input.js +25 -45
  1248. package/lib/internal/vendor/@carbon/web-components/components-react-node/slider/slider-skeleton.js +3 -6
  1249. package/lib/internal/vendor/@carbon/web-components/components-react-node/slider/slider.js +25 -45
  1250. package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-body.js +3 -6
  1251. package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-cell.js +3 -6
  1252. package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-head.js +3 -6
  1253. package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-header-cell-skeleton.js +3 -6
  1254. package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-header-cell.js +3 -6
  1255. package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-header-row.js +5 -8
  1256. package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-row.js +25 -45
  1257. package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list.js +5 -8
  1258. package/lib/internal/vendor/@carbon/web-components/components-react-node/tabs/tab-skeleton.js +3 -6
  1259. package/lib/internal/vendor/@carbon/web-components/components-react-node/tabs/tab.js +41 -51
  1260. package/lib/internal/vendor/@carbon/web-components/components-react-node/tabs/tabs-skeleton.js +3 -6
  1261. package/lib/internal/vendor/@carbon/web-components/components-react-node/tabs/tabs.js +39 -34
  1262. package/lib/internal/vendor/@carbon/web-components/components-react-node/tag/filter-tag.js +25 -45
  1263. package/lib/internal/vendor/@carbon/web-components/components-react-node/tag/tag.js +25 -45
  1264. package/lib/internal/vendor/@carbon/web-components/components-react-node/textarea/textarea-skeleton.js +3 -6
  1265. package/lib/internal/vendor/@carbon/web-components/components-react-node/textarea/textarea.js +25 -45
  1266. package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/clickable-tile.js +5 -8
  1267. package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/expandable-tile.js +25 -45
  1268. package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/radio-tile.js +11 -6
  1269. package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/selectable-tile.js +25 -45
  1270. package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/tile-group.js +3 -6
  1271. package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/tile.js +5 -8
  1272. package/lib/internal/vendor/@carbon/web-components/components-react-node/toggle/toggle.js +5 -8
  1273. package/lib/internal/vendor/@carbon/web-components/components-react-node/tooltip/tooltip-body.js +41 -53
  1274. package/lib/internal/vendor/@carbon/web-components/components-react-node/tooltip/tooltip-definition.js +5 -8
  1275. package/lib/internal/vendor/@carbon/web-components/components-react-node/tooltip/tooltip-footer.js +3 -6
  1276. package/lib/internal/vendor/@carbon/web-components/components-react-node/tooltip/tooltip-icon.js +11 -6
  1277. package/lib/internal/vendor/@carbon/web-components/components-react-node/tooltip/tooltip.js +25 -45
  1278. package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-menu-button.js +25 -45
  1279. package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-menu-item.js +11 -6
  1280. package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-menu.js +25 -45
  1281. package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-name.js +5 -8
  1282. package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-nav-item.js +5 -8
  1283. package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-nav.js +5 -8
  1284. package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header.js +3 -6
  1285. package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav-divider.js +3 -6
  1286. package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav-items.js +3 -6
  1287. package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav-link.js +25 -45
  1288. package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav-menu-item.js +25 -45
  1289. package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav-menu.js +25 -45
  1290. package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav.js +25 -45
  1291. package/lib/internal/vendor/@carbon/web-components/globals/settings.js +1 -2
  1292. package/lib/internal/vendor/@carbon/web-components/globals/settings.js.map +1 -1
  1293. package/lib/internal/vendor/@carbon/web-components/globals/shared-enums.js +1 -2
  1294. package/lib/internal/vendor/@carbon/web-components/globals/shared-enums.js.map +1 -1
  1295. package/lib/internal/vendor/@carbon/web-components/globals/wrappers/createReactCustomElementType.js +3 -4
  1296. package/lib/internal/vendor/@carbon/web-components/globals/wrappers/createReactCustomElementType.js.map +1 -1
  1297. package/package.json +17 -17
  1298. package/dist/left-nav-menu-item-28b39f86.js +0 -71
  1299. 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 );\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AwB,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(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
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 qChinaPIPl = isChecked ? 'qChinaPIPlYes' : 'qChinaPIPlNo';
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('Q_CHINA_PIPL', qChinaPIPl);
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$ncData2;
580
+ var _this$ncData4;
557
581
  var country = this.country.toLocaleLowerCase();
558
582
  var itemTemplates = [];
559
- if ((_this$ncData2 = this.ncData) !== null && _this$ncData2 !== void 0 && _this$ncData2.mandatoryCheckbox && this.ncData.mandatoryCheckbox[country]) {
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$country2;
585
- var country = (_this$country2 = this.country) === null || _this$country2 === void 0 ? void 0 : _this$country2.toLocaleLowerCase();
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":";;;;;;;;;;;;;;;;;;AASA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAMA,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,sBAA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,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,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CA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,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 qChinaPIPlYes: 'true',\n qChinaPIPlNo: 'false',\n NC_HIDDEN_PERMISSION: 'PERMISSION',\n NC_HIDDEN_SUPPRESSION: 'SUPPRESSION',\n NC_HIDDEN_UNCHANGED: 'UNCHANGED',\n }[value] || null\n );\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"]}
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
- qChinaPIPlYes: 'true',
71
- qChinaPIPlNo: 'false',
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","qChinaPIPlYes","qChinaPIPlNo","NC_HIDDEN_PERMISSION","NC_HIDDEN_SUPPRESSION","NC_HIDDEN_UNCHANGED","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","toLocaleLowerCase"],"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 qChinaPIPlYes: 'true',\n qChinaPIPlNo: 'false',\n NC_HIDDEN_PERMISSION: 'PERMISSION',\n NC_HIDDEN_SUPPRESSION: 'SUPPRESSION',\n NC_HIDDEN_UNCHANGED: 'UNCHANGED',\n }[value] || null\n );\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;AA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EAAE,EAAE,IAAI;IACRC,EAAE,EAAE,IAAI;IACRC,EAAE,EAAE,IAAI;IACRC,EAAE,EAAE,IAAI;IACRC,EAAE,EAAE;EACN,CAAC;EACD,OAAOjC,eAAe,CAACD,QAAQ,CAACmC,iBAAiB,CAAC,CAAC,CAAC;AACtD"}
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,kCAAgB;EAC5B;EACA,OAAOL,OAAO;AAChB;AACO,SAASM,uBAAuBA,CAAA,EAAG;EACxC,IAAI;IACFL,MAAM,CAACC,YAAY,GAAGD,MAAM,CAACC,YAAY,IAAI,CAAC,CAAC;IAC/CD,MAAM,CAACC,YAAY,GAAGD,MAAM,CAACC,YAAY,I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