@ptcwebops/ptcw-design 3.6.6 → 3.6.7

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 (617) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/academic-form-test.cjs.entry.js +78 -78
  3. package/dist/cjs/author-listing-example.cjs.entry.js +232 -232
  4. package/dist/cjs/bundle-example.cjs.entry.js +43 -43
  5. package/dist/cjs/bundle-jumbotron-example.cjs.entry.js +39 -39
  6. package/dist/cjs/dropdown-item.cjs.entry.js +10 -10
  7. package/dist/cjs/dynamic-box-bundle.cjs.entry.js +25 -25
  8. package/dist/cjs/embedded-form.cjs.entry.js +103 -103
  9. package/dist/cjs/featured-list.cjs.entry.js +90 -90
  10. package/dist/cjs/fl-tab-content_3.cjs.entry.js +44 -44
  11. package/dist/cjs/footer-form.cjs.entry.js +55 -55
  12. package/dist/cjs/icon-asset_18.cjs.entry.js +1232 -1232
  13. package/dist/cjs/innovator-toggle-container.cjs.entry.js +21 -21
  14. package/dist/cjs/list-item.cjs.entry.js +35 -35
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/cjs/most-popular-news.cjs.entry.js +38 -38
  17. package/dist/cjs/my-component.cjs.entry.js +15 -15
  18. package/dist/cjs/news-search-result.cjs.entry.js +19 -19
  19. package/dist/cjs/ptc-accordion-item.cjs.entry.js +85 -85
  20. package/dist/cjs/ptc-accordion.cjs.entry.js +39 -39
  21. package/dist/cjs/ptc-announcement.cjs.entry.js +52 -52
  22. package/dist/cjs/ptc-back-to-top.cjs.entry.js +71 -71
  23. package/dist/cjs/ptc-background-video.cjs.entry.js +57 -57
  24. package/dist/cjs/ptc-badge.cjs.entry.js +19 -19
  25. package/dist/cjs/ptc-bio-card.cjs.entry.js +29 -29
  26. package/dist/cjs/ptc-breadcrumb_2.cjs.entry.js +148 -148
  27. package/dist/cjs/ptc-brightcov-video.cjs.entry.js +46 -46
  28. package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +114 -114
  29. package/dist/cjs/ptc-card-content.cjs.entry.js +57 -57
  30. package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +77 -77
  31. package/dist/cjs/ptc-checkbox-group.cjs.entry.js +39 -39
  32. package/dist/cjs/ptc-checkbox.cjs.entry.js +50 -50
  33. package/dist/cjs/ptc-collapse-list.cjs.entry.js +397 -397
  34. package/dist/cjs/ptc-container.cjs.entry.js +33 -33
  35. package/dist/cjs/ptc-data-lookup.cjs.entry.js +522 -522
  36. package/dist/cjs/ptc-dropdown.cjs.entry.js +64 -64
  37. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +48 -48
  38. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +46 -46
  39. package/dist/cjs/ptc-embedded-quiz.cjs.entry.js +89 -89
  40. package/dist/cjs/ptc-featured-list.cjs.entry.js +95 -95
  41. package/dist/cjs/ptc-filter-dropdown_3.cjs.entry.js +210 -210
  42. package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +66 -66
  43. package/dist/cjs/ptc-filter-tag.cjs.entry.js +57 -57
  44. package/dist/cjs/ptc-form-checkbox_3.cjs.entry.js +700 -700
  45. package/dist/cjs/ptc-form.cjs.entry.js +78 -78
  46. package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +11 -11
  47. package/dist/cjs/ptc-hero.cjs.entry.js +18 -18
  48. package/dist/cjs/ptc-icon-component.cjs.entry.js +60 -60
  49. package/dist/cjs/ptc-icon-list.cjs.entry.js +21 -21
  50. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +49 -49
  51. package/dist/cjs/ptc-image-download-strip.cjs.entry.js +18 -18
  52. package/dist/cjs/ptc-list.cjs.entry.js +49 -49
  53. package/dist/cjs/ptc-media-card.cjs.entry.js +51 -51
  54. package/dist/cjs/ptc-minimized-nav.cjs.entry.js +12 -12
  55. package/dist/cjs/ptc-mobile-select.cjs.entry.js +62 -62
  56. package/dist/cjs/ptc-modal-quiz.cjs.entry.js +115 -115
  57. package/dist/cjs/ptc-nav-card.cjs.entry.js +36 -36
  58. package/dist/cjs/ptc-nav-link.cjs.entry.js +36 -36
  59. package/dist/cjs/ptc-nav-pills.cjs.entry.js +8 -8
  60. package/dist/cjs/ptc-nav-slider.cjs.entry.js +90 -90
  61. package/dist/cjs/ptc-nav-submenu.cjs.entry.js +37 -37
  62. package/dist/cjs/ptc-nav-tile.cjs.entry.js +9 -9
  63. package/dist/cjs/ptc-news.cjs.entry.js +24 -24
  64. package/dist/cjs/ptc-overlay.cjs.entry.js +23 -23
  65. package/dist/cjs/ptc-pagenation.cjs.entry.js +306 -306
  66. package/dist/cjs/ptc-podcast-card.cjs.entry.js +11 -11
  67. package/dist/cjs/ptc-preferance-center-form.cjs.entry.js +17 -17
  68. package/dist/cjs/ptc-previous-url.cjs.entry.js +11 -11
  69. package/dist/cjs/ptc-pricing-add-on-card.cjs.entry.js +17 -17
  70. package/dist/cjs/ptc-pricing-add-on-section.cjs.entry.js +39 -39
  71. package/dist/cjs/ptc-pricing-block.cjs.entry.js +20 -20
  72. package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +359 -359
  73. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +124 -124
  74. package/dist/cjs/ptc-product-card.cjs.entry.js +22 -22
  75. package/dist/cjs/ptc-product-category.cjs.entry.js +10 -10
  76. package/dist/cjs/ptc-product-dropdown.cjs.entry.js +69 -69
  77. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +12 -12
  78. package/dist/cjs/ptc-product-list.cjs.entry.js +140 -140
  79. package/dist/cjs/ptc-product-sidebar.cjs.entry.js +128 -128
  80. package/dist/cjs/ptc-quote.cjs.entry.js +25 -24
  81. package/dist/cjs/ptc-readmore-char.cjs.entry.js +24 -24
  82. package/dist/cjs/ptc-readmore.cjs.entry.js +82 -82
  83. package/dist/cjs/ptc-related-card-rail.cjs.entry.js +149 -149
  84. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +54 -54
  85. package/dist/cjs/ptc-search-field.cjs.entry.js +73 -73
  86. package/dist/cjs/ptc-seo-title.cjs.entry.js +71 -71
  87. package/dist/cjs/ptc-shopping-cart.cjs.entry.js +50 -50
  88. package/dist/cjs/ptc-showcase-card.cjs.entry.js +10 -10
  89. package/dist/cjs/ptc-skeleton.cjs.entry.js +16 -16
  90. package/dist/cjs/ptc-slit-card.cjs.entry.js +25 -25
  91. package/dist/cjs/ptc-square-card.cjs.entry.js +10 -10
  92. package/dist/cjs/ptc-sticky-icons.cjs.entry.js +32 -32
  93. package/dist/cjs/ptc-sticky-section.cjs.entry.js +30 -30
  94. package/dist/cjs/ptc-subnav-card.cjs.entry.js +16 -16
  95. package/dist/cjs/ptc-subnav.cjs.entry.js +24 -24
  96. package/dist/cjs/ptc-svg-btn.cjs.entry.js +95 -95
  97. package/dist/cjs/ptc-tab-list.cjs.entry.js +143 -143
  98. package/dist/cjs/ptc-tab.cjs.entry.js +20 -20
  99. package/dist/cjs/ptc-tabs.cjs.entry.js +47 -47
  100. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +46 -45
  101. package/dist/cjs/ptc-theater-video-modal.cjs.entry.js +81 -81
  102. package/dist/cjs/ptc-two-column-media.cjs.entry.js +15 -15
  103. package/dist/cjs/ptc-value-led-card.cjs.entry.js +10 -10
  104. package/dist/cjs/ptc-value-led-content-highlight.cjs.entry.js +8 -8
  105. package/dist/cjs/ptc-value-led-content.cjs.entry.js +10 -10
  106. package/dist/cjs/ptc-value-led-intro.cjs.entry.js +9 -9
  107. package/dist/cjs/ptc-value-led-layout.cjs.entry.js +219 -219
  108. package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +21 -21
  109. package/dist/cjs/ptc-value-prop-card.cjs.entry.js +13 -13
  110. package/dist/cjs/ptc-white-paper.cjs.entry.js +111 -111
  111. package/dist/cjs/ptcw-design.cjs.js +1 -1
  112. package/dist/cjs/sequential-bundle-example.cjs.entry.js +108 -108
  113. package/dist/cjs/sequential-bundle.cjs.entry.js +88 -88
  114. package/dist/cjs/tab-content.cjs.entry.js +27 -27
  115. package/dist/cjs/tab-header.cjs.entry.js +65 -65
  116. package/dist/cjs/{utils-03d92070.js → utils-b8cf5ed2.js} +142 -142
  117. package/dist/collection/components/dropdown-item/dropdown-item.js +61 -61
  118. package/dist/collection/components/dynamic-box-bundle/dynamic-box-bundle.js +114 -114
  119. package/dist/collection/components/icon-asset/icon-asset.css +4 -4
  120. package/dist/collection/components/icon-asset/icon-asset.js +199 -199
  121. package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
  122. package/dist/collection/components/icon-asset/media/designer.svg +504 -504
  123. package/dist/collection/components/icon-asset/media/regular.svg +463 -463
  124. package/dist/collection/components/icon-asset/media/solid.svg +3016 -3016
  125. package/dist/collection/components/icon-asset/media/svg-with-js.min.css +4 -4
  126. package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.js +89 -89
  127. package/dist/collection/components/list-item/list-item.js +193 -193
  128. package/dist/collection/components/max-width-container/max-width-container.css +11 -11
  129. package/dist/collection/components/max-width-container/max-width-container.js +146 -146
  130. package/dist/collection/components/my-component/my-component.css +3 -3
  131. package/dist/collection/components/my-component/my-component.js +82 -82
  132. package/dist/collection/components/organism-bundles/author-listing-example/author-listing-example.css +69 -69
  133. package/dist/collection/components/organism-bundles/author-listing-example/author-listing-example.js +282 -282
  134. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.css +25 -25
  135. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.js +79 -79
  136. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +219 -219
  137. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.js +122 -122
  138. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.css +3 -3
  139. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.js +91 -91
  140. package/dist/collection/components/organism-bundles/form/academic-form/academic-form-test.js +94 -94
  141. package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.js +120 -120
  142. package/dist/collection/components/organism-bundles/form/footer-form/footer-form.js +72 -72
  143. package/dist/collection/components/organism-bundles/form/ptc-form/ptc-form.css +13 -13
  144. package/dist/collection/components/organism-bundles/form/ptc-form/ptc-form.js +94 -94
  145. package/dist/collection/components/organism-bundles/most-popular-news/most-popular-news.js +62 -62
  146. package/dist/collection/components/organism-bundles/news-search-result/news-search-result.js +40 -40
  147. package/dist/collection/components/organism-bundles/sequential-bundle/sequential-bundle.js +116 -116
  148. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.css +93 -93
  149. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.js +160 -160
  150. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +324 -324
  151. package/dist/collection/components/ptc-accordion/ptc-accordion.js +100 -100
  152. package/dist/collection/components/ptc-announcement/ptc-announcement.js +274 -274
  153. package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.js +97 -97
  154. package/dist/collection/components/ptc-background-video/ptc-background-video.js +200 -200
  155. package/dist/collection/components/ptc-badge/ptc-badge.js +87 -87
  156. package/dist/collection/components/ptc-bio-card/ptc-bio-card.js +153 -153
  157. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +121 -121
  158. package/dist/collection/components/ptc-brightcov-video/ptc-brightcov-video.js +79 -79
  159. package/dist/collection/components/ptc-button/ptc-button.js +399 -399
  160. package/dist/collection/components/ptc-card/ptc-card.js +439 -439
  161. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +116 -116
  162. package/dist/collection/components/ptc-card-content/ptc-card-content.js +212 -212
  163. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +253 -253
  164. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.js +91 -91
  165. package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +152 -152
  166. package/dist/collection/components/ptc-checkbox-group/ptc-checkbox-group.js +90 -90
  167. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +639 -639
  168. package/dist/collection/components/ptc-container/ptc-container.js +138 -138
  169. package/dist/collection/components/ptc-data-lookup/ptc-data-lookup.js +379 -379
  170. package/dist/collection/components/ptc-date/ptc-date.js +224 -224
  171. package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +162 -162
  172. package/dist/collection/components/ptc-dynamic-card/media/nav-active-dotslick.svg +15 -15
  173. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +192 -192
  174. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +137 -137
  175. package/dist/collection/components/ptc-embedded-quiz/ptc-embedded-quiz.js +146 -146
  176. package/dist/collection/components/ptc-featured-list/fl-tab-content/fl-tab-content.js +61 -61
  177. package/dist/collection/components/ptc-featured-list/fl-tab-header/fl-tab-header.js +114 -114
  178. package/dist/collection/components/ptc-featured-list/fl-tab-image/fl-tab-image.js +61 -61
  179. package/dist/collection/components/ptc-featured-list/ptc-featured-list.js +128 -128
  180. package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.js +145 -145
  181. package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.js +124 -124
  182. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +113 -113
  183. package/dist/collection/components/ptc-form-checkbox/ptc-form-checkbox.js +303 -303
  184. package/dist/collection/components/ptc-hero/ptc-hero.js +86 -86
  185. package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +78 -78
  186. package/dist/collection/components/ptc-icon-component/ptc-icon-component.js +87 -87
  187. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +127 -127
  188. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +160 -160
  189. package/dist/collection/components/ptc-image-download-strip/ptc-image-download-strip.js +51 -51
  190. package/dist/collection/components/ptc-img/ptc-img.js +311 -311
  191. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +355 -355
  192. package/dist/collection/components/ptc-link/ptc-link.js +289 -289
  193. package/dist/collection/components/ptc-list/ptc-list.js +99 -99
  194. package/dist/collection/components/ptc-media-card/ptc-media-card.js +233 -233
  195. package/dist/collection/components/ptc-minimized-nav/ptc-minimized-nav.js +100 -100
  196. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +199 -199
  197. package/dist/collection/components/ptc-modal/ptc-modal.js +524 -524
  198. package/dist/collection/components/ptc-modal-quiz/ptc-modal-quiz.js +191 -191
  199. package/dist/collection/components/ptc-nav-card/ptc-nav-card.js +224 -224
  200. package/dist/collection/components/ptc-nav-pills/ptc-nav-pills.js +18 -18
  201. package/dist/collection/components/ptc-nav-tile/ptc-nav-tile.js +40 -40
  202. package/dist/collection/components/ptc-news/ptc-news.js +176 -176
  203. package/dist/collection/components/ptc-overlay/ptc-overlay.js +131 -131
  204. package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +573 -573
  205. package/dist/collection/components/ptc-para/ptc-para.js +268 -268
  206. package/dist/collection/components/ptc-picture/ptc-picture.js +500 -500
  207. package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.js +78 -78
  208. package/dist/collection/components/ptc-preferance-center-form/ptc-preferance-center-form.js +27 -27
  209. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +79 -79
  210. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +78 -78
  211. package/dist/collection/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.js +139 -139
  212. package/dist/collection/components/ptc-pricing-add-on-section/ptc-pricing-add-on-section.js +94 -94
  213. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +70 -70
  214. package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js +501 -501
  215. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +272 -272
  216. package/dist/collection/components/ptc-product-card/ptc-product-card.js +162 -162
  217. package/dist/collection/components/ptc-product-category/ptc-product-category.js +60 -60
  218. package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.js +185 -185
  219. package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.js +96 -96
  220. package/dist/collection/components/ptc-product-list/ptc-product-list.js +194 -194
  221. package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.js +252 -252
  222. package/dist/collection/components/ptc-progress-bar/ptc-progress-bar.js +42 -42
  223. package/dist/collection/components/ptc-quote/ptc-quote.js +163 -145
  224. package/dist/collection/components/ptc-readmore/ptc-readmore.js +326 -326
  225. package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.js +133 -133
  226. package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.js +190 -190
  227. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
  228. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +65 -65
  229. package/dist/collection/components/ptc-search-field/ptc-search-field.js +266 -266
  230. package/dist/collection/components/ptc-select/ptc-select.js +555 -555
  231. package/dist/collection/components/ptc-seo-title/ptc-seo-title.js +314 -314
  232. package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +97 -97
  233. package/dist/collection/components/ptc-showcase-card/ptc-showcase-card.js +60 -60
  234. package/dist/collection/components/ptc-skeleton/ptc-skeleton.js +139 -139
  235. package/dist/collection/components/ptc-slit-card/ptc-slit-card.js +181 -181
  236. package/dist/collection/components/ptc-social-share/ptc-social-share.js +267 -267
  237. package/dist/collection/components/ptc-spacer/ptc-spacer.css +332 -332
  238. package/dist/collection/components/ptc-spacer/ptc-spacer.js +97 -97
  239. package/dist/collection/components/ptc-span/ptc-span.js +107 -107
  240. package/dist/collection/components/ptc-square-card/ptc-square-card.js +60 -60
  241. package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +51 -51
  242. package/dist/collection/components/ptc-sticky-section/ptc-sticky-section.js +49 -49
  243. package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.js +89 -89
  244. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +109 -109
  245. package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +214 -214
  246. package/dist/collection/components/ptc-tabs/ptc-tab.js +121 -121
  247. package/dist/collection/components/ptc-tabs/ptc-tabs.js +104 -104
  248. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.css +4 -0
  249. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +219 -218
  250. package/dist/collection/components/ptc-textfield/ptc-textfield.js +544 -544
  251. package/dist/collection/components/ptc-theater-video/ptc-theater-video.js +181 -181
  252. package/dist/collection/components/ptc-theater-video-modal/ptc-theater-video-modal.js +128 -128
  253. package/dist/collection/components/ptc-theater-video-playlist/ptc-theater-video-playlist.js +165 -165
  254. package/dist/collection/components/ptc-title/ptc-title.js +349 -349
  255. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +361 -361
  256. package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +48 -48
  257. package/dist/collection/components/ptc-value-led-card/ptc-value-led-card.js +60 -60
  258. package/dist/collection/components/ptc-value-led-content/ptc-value-led-content.js +43 -43
  259. package/dist/collection/components/ptc-value-led-content-highlight/ptc-value-led-content-highlight.js +18 -18
  260. package/dist/collection/components/ptc-value-led-intro/ptc-value-led-intro.js +42 -42
  261. package/dist/collection/components/ptc-value-led-layout/ptc-value-led-layout.js +325 -325
  262. package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.js +97 -97
  263. package/dist/collection/components/ptc-value-prop-card/ptc-value-prop-card.js +117 -117
  264. package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +215 -215
  265. package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.js +131 -131
  266. package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.js +133 -133
  267. package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.js +121 -121
  268. package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.js +78 -78
  269. package/dist/collection/components/subnav/ptc-subnav-card/ptc-subnav-card.js +151 -151
  270. package/dist/collection/components/tab-content/tab-content.js +84 -84
  271. package/dist/collection/components/tab-header/tab-header.js +183 -183
  272. package/dist/collection/index.js +1 -1
  273. package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -11
  274. package/dist/collection/media/svg-imgs/NumberOneGreenBadge.svg +4 -4
  275. package/dist/collection/media/svg-imgs/NumberThreeGreenBadge.svg +4 -4
  276. package/dist/collection/media/svg-imgs/NumberTwoGreenBadge.svg +4 -4
  277. package/dist/collection/media/svg-imgs/close.svg +10 -10
  278. package/dist/collection/media/svg-imgs/nav-active-dotslick.svg +16 -16
  279. package/dist/collection/media/svg-imgs/play-button-dark.svg +20 -20
  280. package/dist/collection/media/svg-imgs/ptc-shopping-cart-black.svg +3 -3
  281. package/dist/collection/media/svg-imgs/ptc-shopping-cart-white.svg +3 -3
  282. package/dist/collection/media/svg-imgs/slider-arrow-left.svg +18 -18
  283. package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
  284. package/dist/collection/media/svg-imgs/union.svg +3 -3
  285. package/dist/collection/stories/Accordian.stories.js +205 -205
  286. package/dist/collection/stories/Announcement.stories.js +64 -64
  287. package/dist/collection/stories/BackgroundImage.stories.js +81 -81
  288. package/dist/collection/stories/Breadcrumb.stories.js +50 -50
  289. package/dist/collection/stories/Button.stories.js +119 -119
  290. package/dist/collection/stories/Card.stories.js +234 -234
  291. package/dist/collection/stories/CardWrapper.stories.js +270 -270
  292. package/dist/collection/stories/Checkbox.stories.js +52 -52
  293. package/dist/collection/stories/Date.stories.js +81 -81
  294. package/dist/collection/stories/Dropdown.stories.js +48 -48
  295. package/dist/collection/stories/DynamicCard.stories.js +68 -68
  296. package/dist/collection/stories/FilterTag.stories.js +73 -73
  297. package/dist/collection/stories/FormCheckbox.stories.js +57 -57
  298. package/dist/collection/stories/Hero.stories.js +119 -119
  299. package/dist/collection/stories/Icon.stories.js +71 -71
  300. package/dist/collection/stories/IconList.stories.js +114 -114
  301. package/dist/collection/stories/IconMinimize.stories.js +40 -40
  302. package/dist/collection/stories/Link.stories.js +107 -107
  303. package/dist/collection/stories/ListItem.stories.js +59 -59
  304. package/dist/collection/stories/MaxWidthContainer.stories.js +45 -45
  305. package/dist/collection/stories/MinimizedHeader.stories.js +37 -37
  306. package/dist/collection/stories/MobileSelect.stories.js +79 -79
  307. package/dist/collection/stories/Modal.stories.js +105 -105
  308. package/dist/collection/stories/Overlay.stories.js +48 -48
  309. package/dist/collection/stories/Pagination.stories.js +101 -101
  310. package/dist/collection/stories/Paragraph.stories.js +95 -95
  311. package/dist/collection/stories/Picture.stories.js +139 -139
  312. package/dist/collection/stories/Quote.stories.js +107 -107
  313. package/dist/collection/stories/ReadMore.stories.js +100 -100
  314. package/dist/collection/stories/Select.stories.js +81 -81
  315. package/dist/collection/stories/SocialShare.stories.js +66 -66
  316. package/dist/collection/stories/Spacer.stories.js +48 -48
  317. package/dist/collection/stories/Span.stories.js +57 -57
  318. package/dist/collection/stories/SvgButton.stories.js +34 -34
  319. package/dist/collection/stories/Tabs.stories.js +213 -213
  320. package/dist/collection/stories/TextCopyWithBackground.stories.js +237 -237
  321. package/dist/collection/stories/Textfield.stories.js +81 -81
  322. package/dist/collection/stories/Title.stories.js +115 -115
  323. package/dist/collection/stories/Tooltip.stories.js +112 -112
  324. package/dist/collection/utils/component.js +3 -3
  325. package/dist/collection/utils/elq-lib.js +431 -431
  326. package/dist/collection/utils/interfaces.js +11 -11
  327. package/dist/collection/utils/utils.js +161 -161
  328. package/dist/collection/utils/validation-messages.js +102 -102
  329. package/dist/custom-elements/index.js +9673 -9671
  330. package/dist/esm/academic-form-test.entry.js +78 -78
  331. package/dist/esm/author-listing-example.entry.js +232 -232
  332. package/dist/esm/bundle-example.entry.js +43 -43
  333. package/dist/esm/bundle-jumbotron-example.entry.js +39 -39
  334. package/dist/esm/dropdown-item.entry.js +10 -10
  335. package/dist/esm/dynamic-box-bundle.entry.js +25 -25
  336. package/dist/esm/embedded-form.entry.js +103 -103
  337. package/dist/esm/featured-list.entry.js +90 -90
  338. package/dist/esm/fl-tab-content_3.entry.js +44 -44
  339. package/dist/esm/footer-form.entry.js +55 -55
  340. package/dist/esm/icon-asset_18.entry.js +1232 -1232
  341. package/dist/esm/innovator-toggle-container.entry.js +21 -21
  342. package/dist/esm/list-item.entry.js +35 -35
  343. package/dist/esm/loader.js +1 -1
  344. package/dist/esm/most-popular-news.entry.js +38 -38
  345. package/dist/esm/my-component.entry.js +15 -15
  346. package/dist/esm/news-search-result.entry.js +19 -19
  347. package/dist/esm/polyfills/core-js.js +0 -0
  348. package/dist/esm/polyfills/dom.js +0 -0
  349. package/dist/esm/polyfills/es5-html-element.js +0 -0
  350. package/dist/esm/polyfills/index.js +0 -0
  351. package/dist/esm/polyfills/system.js +0 -0
  352. package/dist/esm/ptc-accordion-item.entry.js +85 -85
  353. package/dist/esm/ptc-accordion.entry.js +39 -39
  354. package/dist/esm/ptc-announcement.entry.js +52 -52
  355. package/dist/esm/ptc-back-to-top.entry.js +71 -71
  356. package/dist/esm/ptc-background-video.entry.js +57 -57
  357. package/dist/esm/ptc-badge.entry.js +19 -19
  358. package/dist/esm/ptc-bio-card.entry.js +29 -29
  359. package/dist/esm/ptc-breadcrumb_2.entry.js +148 -148
  360. package/dist/esm/ptc-brightcov-video.entry.js +46 -46
  361. package/dist/esm/ptc-card-bottom_2.entry.js +114 -114
  362. package/dist/esm/ptc-card-content.entry.js +57 -57
  363. package/dist/esm/ptc-case-studies-slider.entry.js +77 -77
  364. package/dist/esm/ptc-checkbox-group.entry.js +39 -39
  365. package/dist/esm/ptc-checkbox.entry.js +50 -50
  366. package/dist/esm/ptc-collapse-list.entry.js +397 -397
  367. package/dist/esm/ptc-container.entry.js +33 -33
  368. package/dist/esm/ptc-data-lookup.entry.js +522 -522
  369. package/dist/esm/ptc-dropdown.entry.js +64 -64
  370. package/dist/esm/ptc-dynamic-card.entry.js +48 -48
  371. package/dist/esm/ptc-ellipsis-dropdown.entry.js +46 -46
  372. package/dist/esm/ptc-embedded-quiz.entry.js +89 -89
  373. package/dist/esm/ptc-featured-list.entry.js +95 -95
  374. package/dist/esm/ptc-filter-dropdown_3.entry.js +210 -210
  375. package/dist/esm/ptc-filter-level-theater.entry.js +66 -66
  376. package/dist/esm/ptc-filter-tag.entry.js +57 -57
  377. package/dist/esm/ptc-form-checkbox_3.entry.js +700 -700
  378. package/dist/esm/ptc-form.entry.js +78 -78
  379. package/dist/esm/ptc-hero-footer-cta.entry.js +11 -11
  380. package/dist/esm/ptc-hero.entry.js +18 -18
  381. package/dist/esm/ptc-icon-component.entry.js +60 -60
  382. package/dist/esm/ptc-icon-list.entry.js +21 -21
  383. package/dist/esm/ptc-icon-minimize.entry.js +49 -49
  384. package/dist/esm/ptc-image-download-strip.entry.js +18 -18
  385. package/dist/esm/ptc-list.entry.js +49 -49
  386. package/dist/esm/ptc-media-card.entry.js +51 -51
  387. package/dist/esm/ptc-minimized-nav.entry.js +12 -12
  388. package/dist/esm/ptc-mobile-select.entry.js +62 -62
  389. package/dist/esm/ptc-modal-quiz.entry.js +115 -115
  390. package/dist/esm/ptc-nav-card.entry.js +36 -36
  391. package/dist/esm/ptc-nav-link.entry.js +36 -36
  392. package/dist/esm/ptc-nav-pills.entry.js +8 -8
  393. package/dist/esm/ptc-nav-slider.entry.js +90 -90
  394. package/dist/esm/ptc-nav-submenu.entry.js +37 -37
  395. package/dist/esm/ptc-nav-tile.entry.js +9 -9
  396. package/dist/esm/ptc-news.entry.js +24 -24
  397. package/dist/esm/ptc-overlay.entry.js +23 -23
  398. package/dist/esm/ptc-pagenation.entry.js +306 -306
  399. package/dist/esm/ptc-podcast-card.entry.js +11 -11
  400. package/dist/esm/ptc-preferance-center-form.entry.js +17 -17
  401. package/dist/esm/ptc-previous-url.entry.js +11 -11
  402. package/dist/esm/ptc-pricing-add-on-card.entry.js +17 -17
  403. package/dist/esm/ptc-pricing-add-on-section.entry.js +39 -39
  404. package/dist/esm/ptc-pricing-block.entry.js +20 -20
  405. package/dist/esm/ptc-pricing-packaging-table.entry.js +359 -359
  406. package/dist/esm/ptc-pricing-tabs.entry.js +124 -124
  407. package/dist/esm/ptc-product-card.entry.js +22 -22
  408. package/dist/esm/ptc-product-category.entry.js +10 -10
  409. package/dist/esm/ptc-product-dropdown.entry.js +69 -69
  410. package/dist/esm/ptc-product-highlight-card.entry.js +12 -12
  411. package/dist/esm/ptc-product-list.entry.js +140 -140
  412. package/dist/esm/ptc-product-sidebar.entry.js +128 -128
  413. package/dist/esm/ptc-quote.entry.js +25 -24
  414. package/dist/esm/ptc-readmore-char.entry.js +24 -24
  415. package/dist/esm/ptc-readmore.entry.js +82 -82
  416. package/dist/esm/ptc-related-card-rail.entry.js +149 -149
  417. package/dist/esm/ptc-responsive-wrapper.entry.js +54 -54
  418. package/dist/esm/ptc-search-field.entry.js +73 -73
  419. package/dist/esm/ptc-seo-title.entry.js +71 -71
  420. package/dist/esm/ptc-shopping-cart.entry.js +50 -50
  421. package/dist/esm/ptc-showcase-card.entry.js +10 -10
  422. package/dist/esm/ptc-skeleton.entry.js +16 -16
  423. package/dist/esm/ptc-slit-card.entry.js +25 -25
  424. package/dist/esm/ptc-square-card.entry.js +10 -10
  425. package/dist/esm/ptc-sticky-icons.entry.js +32 -32
  426. package/dist/esm/ptc-sticky-section.entry.js +30 -30
  427. package/dist/esm/ptc-subnav-card.entry.js +16 -16
  428. package/dist/esm/ptc-subnav.entry.js +24 -24
  429. package/dist/esm/ptc-svg-btn.entry.js +95 -95
  430. package/dist/esm/ptc-tab-list.entry.js +143 -143
  431. package/dist/esm/ptc-tab.entry.js +20 -20
  432. package/dist/esm/ptc-tabs.entry.js +47 -47
  433. package/dist/esm/ptc-text-copy-with-background.entry.js +46 -45
  434. package/dist/esm/ptc-theater-video-modal.entry.js +81 -81
  435. package/dist/esm/ptc-two-column-media.entry.js +15 -15
  436. package/dist/esm/ptc-value-led-card.entry.js +10 -10
  437. package/dist/esm/ptc-value-led-content-highlight.entry.js +8 -8
  438. package/dist/esm/ptc-value-led-content.entry.js +10 -10
  439. package/dist/esm/ptc-value-led-intro.entry.js +9 -9
  440. package/dist/esm/ptc-value-led-layout.entry.js +219 -219
  441. package/dist/esm/ptc-value-led-speed-bump.entry.js +21 -21
  442. package/dist/esm/ptc-value-prop-card.entry.js +13 -13
  443. package/dist/esm/ptc-white-paper.entry.js +111 -111
  444. package/dist/esm/ptcw-design.js +1 -1
  445. package/dist/esm/sequential-bundle-example.entry.js +108 -108
  446. package/dist/esm/sequential-bundle.entry.js +88 -88
  447. package/dist/esm/tab-content.entry.js +27 -27
  448. package/dist/esm/tab-header.entry.js +65 -65
  449. package/dist/esm/{utils-2f4905df.js → utils-1d586605.js} +142 -142
  450. package/dist/ptcw-design/media/brands.svg +1381 -1381
  451. package/dist/ptcw-design/media/designer.svg +504 -504
  452. package/dist/ptcw-design/media/nav-active-dotslick.svg +15 -15
  453. package/dist/ptcw-design/media/regular.svg +463 -463
  454. package/dist/ptcw-design/media/solid.svg +3016 -3016
  455. package/dist/ptcw-design/media/svg-with-js.min.css +4 -4
  456. package/dist/ptcw-design/{p-0287832c.entry.js → p-062e8486.entry.js} +1 -1
  457. package/dist/ptcw-design/{p-2ac534ba.entry.js → p-53b7c1b2.entry.js} +1 -1
  458. package/dist/ptcw-design/{p-f21786b4.entry.js → p-5f2e3e4e.entry.js} +1 -1
  459. package/dist/ptcw-design/p-6136e133.entry.js +1 -0
  460. package/dist/ptcw-design/{p-69699df1.entry.js → p-68fa130e.entry.js} +1 -1
  461. package/dist/ptcw-design/{p-864eaf7d.entry.js → p-6933b129.entry.js} +1 -1
  462. package/dist/ptcw-design/p-98778c06.entry.js +1 -0
  463. package/dist/ptcw-design/{p-95d506bf.entry.js → p-ceb171a0.entry.js} +1 -1
  464. package/dist/ptcw-design/{p-394e27ab.entry.js → p-e03aa9a3.entry.js} +1 -1
  465. package/dist/ptcw-design/{p-6ae0980b.entry.js → p-fae9565e.entry.js} +1 -1
  466. package/dist/ptcw-design/{p-7ccacb35.entry.js → p-fff20daf.entry.js} +1 -1
  467. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  468. package/dist/types/components/dropdown-item/dropdown-item.d.ts +5 -5
  469. package/dist/types/components/dynamic-box-bundle/dynamic-box-bundle.d.ts +10 -10
  470. package/dist/types/components/icon-asset/icon-asset.d.ts +40 -40
  471. package/dist/types/components/innovator-toggle-container/innovator-toggle-container.d.ts +17 -17
  472. package/dist/types/components/list-item/list-item.d.ts +19 -19
  473. package/dist/types/components/max-width-container/max-width-container.d.ts +16 -16
  474. package/dist/types/components/my-component/my-component.d.ts +16 -16
  475. package/dist/types/components/organism-bundles/author-listing-example/author-listing-example.d.ts +12 -12
  476. package/dist/types/components/organism-bundles/bundle-example/bundle-example.d.ts +14 -14
  477. package/dist/types/components/organism-bundles/bundle-featured-list/featured-list.d.ts +12 -12
  478. package/dist/types/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.d.ts +5 -5
  479. package/dist/types/components/organism-bundles/form/academic-form/academic-form-test.d.ts +25 -25
  480. package/dist/types/components/organism-bundles/form/embedded-form/embedded-form.d.ts +31 -31
  481. package/dist/types/components/organism-bundles/form/footer-form/footer-form.d.ts +14 -14
  482. package/dist/types/components/organism-bundles/form/ptc-form/ptc-form.d.ts +25 -25
  483. package/dist/types/components/organism-bundles/most-popular-news/most-popular-news.d.ts +6 -6
  484. package/dist/types/components/organism-bundles/news-search-result/news-search-result.d.ts +10 -10
  485. package/dist/types/components/organism-bundles/sequential-bundle/sequential-bundle.d.ts +12 -12
  486. package/dist/types/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.d.ts +16 -16
  487. package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +65 -65
  488. package/dist/types/components/ptc-accordion/ptc-accordion.d.ts +17 -17
  489. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +59 -59
  490. package/dist/types/components/ptc-back-to-top/ptc-back-to-top.d.ts +10 -10
  491. package/dist/types/components/ptc-background-video/ptc-background-video.d.ts +45 -45
  492. package/dist/types/components/ptc-badge/ptc-badge.d.ts +7 -7
  493. package/dist/types/components/ptc-bio-card/ptc-bio-card.d.ts +28 -28
  494. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +24 -24
  495. package/dist/types/components/ptc-brightcov-video/ptc-brightcov-video.d.ts +6 -6
  496. package/dist/types/components/ptc-button/ptc-button.d.ts +77 -77
  497. package/dist/types/components/ptc-card/ptc-card.d.ts +84 -84
  498. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +15 -15
  499. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +19 -19
  500. package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +30 -30
  501. package/dist/types/components/ptc-case-studies-slider/ptc-case-studies-slider.d.ts +14 -14
  502. package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +14 -14
  503. package/dist/types/components/ptc-checkbox-group/ptc-checkbox-group.d.ts +10 -10
  504. package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +60 -60
  505. package/dist/types/components/ptc-container/ptc-container.d.ts +13 -13
  506. package/dist/types/components/ptc-data-lookup/ptc-data-lookup.d.ts +27 -27
  507. package/dist/types/components/ptc-date/ptc-date.d.ts +46 -46
  508. package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +19 -19
  509. package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +27 -27
  510. package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +15 -15
  511. package/dist/types/components/ptc-embedded-quiz/ptc-embedded-quiz.d.ts +21 -21
  512. package/dist/types/components/ptc-featured-list/fl-tab-content/fl-tab-content.d.ts +5 -5
  513. package/dist/types/components/ptc-featured-list/fl-tab-header/fl-tab-header.d.ts +12 -12
  514. package/dist/types/components/ptc-featured-list/fl-tab-image/fl-tab-image.d.ts +5 -5
  515. package/dist/types/components/ptc-featured-list/ptc-featured-list.d.ts +12 -12
  516. package/dist/types/components/ptc-filter-dropdown/ptc-filter-dropdown.d.ts +26 -26
  517. package/dist/types/components/ptc-filter-level-theater/ptc-filter-level-theater.d.ts +17 -17
  518. package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +17 -17
  519. package/dist/types/components/ptc-form-checkbox/ptc-form-checkbox.d.ts +27 -27
  520. package/dist/types/components/ptc-hero/ptc-hero.d.ts +16 -16
  521. package/dist/types/components/ptc-hero-footer-cta/ptc-hero-footer-cta.d.ts +6 -6
  522. package/dist/types/components/ptc-icon-component/ptc-icon-component.d.ts +17 -17
  523. package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +21 -21
  524. package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +14 -14
  525. package/dist/types/components/ptc-image-download-strip/ptc-image-download-strip.d.ts +9 -9
  526. package/dist/types/components/ptc-img/ptc-img.d.ts +55 -55
  527. package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +26 -26
  528. package/dist/types/components/ptc-link/ptc-link.d.ts +51 -51
  529. package/dist/types/components/ptc-list/ptc-list.d.ts +8 -8
  530. package/dist/types/components/ptc-media-card/ptc-media-card.d.ts +52 -52
  531. package/dist/types/components/ptc-minimized-nav/ptc-minimized-nav.d.ts +7 -7
  532. package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +36 -36
  533. package/dist/types/components/ptc-modal/ptc-modal.d.ts +80 -80
  534. package/dist/types/components/ptc-modal-quiz/ptc-modal-quiz.d.ts +36 -36
  535. package/dist/types/components/ptc-nav-card/ptc-nav-card.d.ts +46 -46
  536. package/dist/types/components/ptc-nav-pills/ptc-nav-pills.d.ts +3 -3
  537. package/dist/types/components/ptc-nav-tile/ptc-nav-tile.d.ts +7 -7
  538. package/dist/types/components/ptc-news/ptc-news.d.ts +36 -36
  539. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +21 -21
  540. package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +40 -40
  541. package/dist/types/components/ptc-para/ptc-para.d.ts +52 -52
  542. package/dist/types/components/ptc-picture/ptc-picture.d.ts +102 -102
  543. package/dist/types/components/ptc-podcast-card/ptc-podcast-card.d.ts +15 -15
  544. package/dist/types/components/ptc-preferance-center-form/ptc-preferance-center-form.d.ts +5 -5
  545. package/dist/types/components/ptc-preloader-section/ptc-preloader-section.d.ts +8 -8
  546. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +9 -9
  547. package/dist/types/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.d.ts +31 -31
  548. package/dist/types/components/ptc-pricing-add-on-section/ptc-pricing-add-on-section.d.ts +26 -26
  549. package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +7 -7
  550. package/dist/types/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.d.ts +87 -87
  551. package/dist/types/components/ptc-pricing-tabs/ptc-pricing-tabs.d.ts +52 -52
  552. package/dist/types/components/ptc-product-card/ptc-product-card.d.ts +37 -37
  553. package/dist/types/components/ptc-product-category/ptc-product-category.d.ts +5 -5
  554. package/dist/types/components/ptc-product-dropdown/ptc-product-dropdown.d.ts +18 -18
  555. package/dist/types/components/ptc-product-highlight-card/ptc-product-highlight-card.d.ts +23 -23
  556. package/dist/types/components/ptc-product-list/ptc-product-list.d.ts +18 -18
  557. package/dist/types/components/ptc-product-sidebar/ptc-product-sidebar.d.ts +31 -31
  558. package/dist/types/components/ptc-progress-bar/ptc-progress-bar.d.ts +5 -5
  559. package/dist/types/components/ptc-quote/ptc-quote.d.ts +33 -29
  560. package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +58 -58
  561. package/dist/types/components/ptc-readmore-char/ptc-readmore-char.d.ts +30 -30
  562. package/dist/types/components/ptc-related-card-rail/ptc-related-card-rail.d.ts +30 -30
  563. package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
  564. package/dist/types/components/ptc-search-field/ptc-search-field.d.ts +24 -24
  565. package/dist/types/components/ptc-select/ptc-select.d.ts +29 -29
  566. package/dist/types/components/ptc-seo-title/ptc-seo-title.d.ts +55 -55
  567. package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +6 -6
  568. package/dist/types/components/ptc-showcase-card/ptc-showcase-card.d.ts +5 -5
  569. package/dist/types/components/ptc-skeleton/ptc-skeleton.d.ts +10 -10
  570. package/dist/types/components/ptc-slit-card/ptc-slit-card.d.ts +36 -36
  571. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +37 -37
  572. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -16
  573. package/dist/types/components/ptc-span/ptc-span.d.ts +20 -20
  574. package/dist/types/components/ptc-square-card/ptc-square-card.d.ts +11 -11
  575. package/dist/types/components/ptc-sticky-icons/ptc-sticky-icons.d.ts +7 -7
  576. package/dist/types/components/ptc-sticky-section/ptc-sticky-section.d.ts +9 -9
  577. package/dist/types/components/ptc-sticky-title/ptc-sticky-title.d.ts +8 -8
  578. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +20 -20
  579. package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +23 -23
  580. package/dist/types/components/ptc-tabs/ptc-tab.d.ts +9 -9
  581. package/dist/types/components/ptc-tabs/ptc-tabs.d.ts +10 -10
  582. package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +42 -42
  583. package/dist/types/components/ptc-textfield/ptc-textfield.d.ts +37 -37
  584. package/dist/types/components/ptc-theater-video/ptc-theater-video.d.ts +14 -14
  585. package/dist/types/components/ptc-theater-video-modal/ptc-theater-video-modal.d.ts +16 -16
  586. package/dist/types/components/ptc-theater-video-playlist/ptc-theater-video-playlist.d.ts +26 -26
  587. package/dist/types/components/ptc-title/ptc-title.d.ts +61 -61
  588. package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +63 -63
  589. package/dist/types/components/ptc-two-column-media/ptc-two-column-media.d.ts +9 -9
  590. package/dist/types/components/ptc-value-led-card/ptc-value-led-card.d.ts +5 -5
  591. package/dist/types/components/ptc-value-led-content/ptc-value-led-content.d.ts +4 -4
  592. package/dist/types/components/ptc-value-led-content-highlight/ptc-value-led-content-highlight.d.ts +3 -3
  593. package/dist/types/components/ptc-value-led-intro/ptc-value-led-intro.d.ts +4 -4
  594. package/dist/types/components/ptc-value-led-layout/ptc-value-led-layout.d.ts +31 -31
  595. package/dist/types/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.d.ts +10 -10
  596. package/dist/types/components/ptc-value-prop-card/ptc-value-prop-card.d.ts +23 -23
  597. package/dist/types/components/ptc-white-paper/ptc-white-paper.d.ts +41 -41
  598. package/dist/types/components/subnav/ptc-nav-link/ptc-nav-link.d.ts +26 -26
  599. package/dist/types/components/subnav/ptc-nav-slider/ptc-nav-slider.d.ts +11 -11
  600. package/dist/types/components/subnav/ptc-nav-submenu/ptc-nav-submenu.d.ts +23 -23
  601. package/dist/types/components/subnav/ptc-subnav/ptc-subnav.d.ts +11 -11
  602. package/dist/types/components/subnav/ptc-subnav-card/ptc-subnav-card.d.ts +31 -31
  603. package/dist/types/components/tab-content/tab-content.d.ts +12 -12
  604. package/dist/types/components/tab-header/tab-header.d.ts +22 -22
  605. package/dist/types/components.d.ts +248 -240
  606. package/dist/types/index.d.ts +1 -1
  607. package/dist/types/utils/component.d.ts +1 -1
  608. package/dist/types/utils/eloqua.d.ts +8 -8
  609. package/dist/types/utils/elq-lib.d.ts +55 -55
  610. package/dist/types/utils/interfaces.d.ts +32 -32
  611. package/dist/types/utils/utils.d.ts +10 -10
  612. package/dist/types/utils/validation-messages.d.ts +102 -102
  613. package/package.json +89 -89
  614. package/readme.md +19 -19
  615. package/dist/ptcw-design/p-881be56a.entry.js +0 -1
  616. package/dist/ptcw-design/p-ad2e25bc.entry.js +0 -1
  617. /package/dist/ptcw-design/{p-b422900e.js → p-6bd403ad.js} +0 -0
@@ -5,532 +5,532 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-cd9a1b1a.js');
6
6
  const component = require('./component-4dd13907.js');
7
7
 
8
- // Define the ElqLib class
9
- class ElqLib {
10
- constructor(params) {
11
- this.params = params;
12
- this.url_vars = {};
13
- this.visitor_elq_id = null;
14
- this.field_mappings = [];
15
- this.callback_queue = [];
16
- this.fields_populated = false;
17
- this.user_elq_email = '';
18
- this.user_elq_firstname = '';
19
- this.user_elq_lastname = '';
20
- // Merge defaults with params
21
- const defaults = {
22
- elq_site_id: '',
23
- elq_visitor_lookup_key: '',
24
- elq_recipient_id_lookup_key: '',
25
- elq_contact_lookup_key: '',
26
- elq_field_email_rec_id: 'V_EmailRecipientID',
27
- elq_field_contact_email: 'C_EmailAddress',
28
- elq_field_visitor_email: 'V_Email_Address',
29
- elq_field_visitor_firstname: 'V_First_Name',
30
- elq_field_visitor_lastname: 'V_Last_Name',
31
- notme_link_id: 'not-me-link-id',
32
- notme_fields_class: null,
33
- notme_message: 'Not {name}? Click here.',
34
- notme_message_noname: 'Not your details below? Click here.',
35
- };
36
- this.params = Object.assign(Object.assign({}, defaults), this.params);
37
- this.init();
38
- }
39
- init() {
40
- // Merge defaults with user-provided params if not already done in the constructor
41
- // ...
42
- // Set Eloqua site ID
43
- this.setEloquaSiteId();
44
- // Load Eloqua scripts
45
- this.async_load();
46
- // Store URL variables
47
- this.store_url_vars();
48
- // Store visitor's Eloqua IDgit
49
- this.store_visitor_elq_id();
50
- // init noteme link;
51
- // this.init_notme();
52
- // Set the global Eloqua callback function
53
- window.SetElqContent = this.eloqua_callback.bind(this);
54
- }
55
- setEloquaSiteId() {
56
- if (this.params.elq_site_id) {
57
- ElqLib._elqQ.push(['elqSetSiteId', this.params.elq_site_id]);
58
- ElqLib._elqQ.push(['elqUseFirstPartyCookie', 'tracking.ptc.com']);
59
- ElqLib._elqQ.push(['elqTrackPageView', window.location.href]);
60
- }
61
- }
62
- fire_pageview(url) {
63
- try {
64
- if (typeof url === 'undefined') {
65
- ElqLib._elqQ.push(['elqTrackPageView']);
66
- }
67
- else {
68
- ElqLib._elqQ.push(['elqTrackPageView', url]);
69
- }
70
- console.log('TRACKING: Eloqua pageview fired for URL: ' + (url || 'current page'));
71
- }
72
- catch (e) {
73
- console.log('TRACKING: Could not fire Eloqua pageview: ', e);
74
- }
75
- }
76
- find_eloqua_contact() {
77
- console.log('CONTACT LOOKUP: Attempting to find Eloqua contact...');
78
- // Queue callback action for the return of lookup
79
- this.callback_queue.push(this.handle_visitor_lookup.bind(this));
80
- // Start with a recipient lookup if ID was supplied in URL
81
- if (this.visitor_elq_id !== null) {
82
- this.lookup_visitor_by_recipient_id();
83
- }
84
- else {
85
- // If no visitor ID, attempt to do a visitor lookup with an Eloqua cookie
86
- this.lookup_visitor_by_cookie(); //preference center
87
- this.lookup_contact_by_email();
88
- }
89
- }
90
- add_field_mapping(mapping) {
91
- this.field_mappings.push(mapping);
92
- }
93
- add_queue_action(action) {
94
- this.callback_queue.push(action);
95
- }
96
- store_url_vars() {
97
- // Clear the current url_vars
98
- this.url_vars = {};
99
- // Split the URL by the '?' to get the query string part
100
- const queryString = window.location.search.substring(1);
101
- // Split the query string by '&' to get each key-value pair
102
- queryString.split('&').forEach(paramString => {
103
- // Split the key-value pairs by '=' to separate keys and values
104
- let [key, value] = paramString.split('=');
105
- // Decode URI components to handle URL encoding
106
- key = decodeURIComponent(key);
107
- value = decodeURIComponent(value);
108
- // Store the key-value pair in the url_vars object
109
- this.url_vars[key] = value;
110
- });
111
- // Optionally, log the stored URL variables
112
- console.log('URL variables stored:', this.url_vars);
113
- }
114
- store_visitor_elq_id() {
115
- console.log("INIT: Looking for visitor's Eloqua ID in URL...");
116
- const elqIdParam = this.url_vars['elq'];
117
- if (elqIdParam) {
118
- const elqId = elqIdParam.toUpperCase().replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, '$1-$2-$3-$4-$5');
119
- this.visitor_elq_id = elqId;
120
- console.log(`INIT: ...visitor Eloqua ID found in URL: ${elqId}`);
121
- }
122
- else {
123
- this.visitor_elq_id = null;
124
- console.log('INIT: ...no visitor Eloqua ID found in URL');
125
- }
126
- }
127
- // private merge(root: any, ...sources: any[]): any {
128
- // sources.forEach(source => {
129
- // for (const key in source) {
130
- // if (source.hasOwnProperty(key)) {
131
- // root[key] = source[key];
132
- // }
133
- // }
134
- // });
135
- // return root;
136
- // }
137
- eloqua_callback() {
138
- console.log('LOOKUP: Eloqua lookup finished');
139
- // Process each action in the callback queue
140
- let actionSucceeded = true;
141
- while (actionSucceeded && this.callback_queue.length > 0) {
142
- const action = this.callback_queue.shift();
143
- if (action) {
144
- console.log(`QUEUE: Executing action`);
145
- actionSucceeded = action(); // Execute the action. It must return a boolean indicating success.
146
- if (actionSucceeded) {
147
- console.log('QUEUE: Action executed successfully, removed from queue');
148
- }
149
- else {
150
- console.log('QUEUE: Action failed, re-adding to queue');
151
- this.callback_queue.unshift(action); // Re-add the action to the front of the queue
152
- break; // Break out of the loop if an action fails
153
- }
154
- }
155
- }
156
- // After processing the queue, update user details or perform other operations
157
- if (actionSucceeded) {
158
- this.update_user_details();
159
- this.populate_mapped_fields();
160
- }
161
- // ...additional code to handle the aftermath of callback processing...
162
- }
163
- lookup_visitor_by_cookie() {
164
- if (this.params.elq_visitor_lookup_key != '') {
165
- ElqLib._elqQ.push(['elqDataLookup', escape(this.params.elq_visitor_lookup_key), '']);
166
- console.log('LOOKUP: Visitor lookup sent using Eloqua cookie');
167
- }
168
- else {
169
- console.log('LOOKUP: A visitor lookup cannot be performed as no lookup key was defined');
170
- }
171
- }
172
- lookup_visitor_by_recipient_id() {
173
- if (this.params.elq_recipient_id_lookup_key != '') {
174
- ElqLib._elqQ.push([
175
- 'elqDataLookup',
176
- escape(this.params.elq_recipient_id_lookup_key),
177
- '<' + this.params.elq_field_email_rec_id + '>' + this.visitor_elq_id + '</' + this.params.elq_field_email_rec_id + '>',
178
- ]);
179
- console.log('LOOKUP: Visitor lookup sent using email recipient id: ' + this.visitor_elq_id);
180
- }
181
- else {
182
- console.log('LOOKUP: A visitor lookup cannot be performed as no lookup key was defined');
183
- }
184
- }
185
- lookup_contact_by_email() {
186
- if (this.params.elq_contact_lookup_key != '') {
187
- ElqLib._elqQ.push([
188
- 'elqDataLookup',
189
- escape(this.params.elq_contact_lookup_key),
190
- '<' + this.params.elq_field_contact_email + '>' + this.user_elq_email + '</' + this.params.elq_field_contact_email + '>',
191
- ]);
192
- console.log('LOOKUP: Contact lookup sent using email address: ' + this.user_elq_email);
193
- }
194
- else {
195
- console.log('LOOKUP: A visitor lookup cannot be performed as no lookup key was defined');
196
- }
197
- }
198
- handle_visitor_lookup() {
199
- //console.log('Contact Email: ' + this.params.elq_field_contact_email)
200
- const email = window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email); //it was elq_field_visitor_email ( V_Email_Address)
201
- if (email) {
202
- console.log(`LOOKUP: Found contact email address: ${email}`);
203
- this.user_elq_email = email.trim();
204
- this.lookup_contact_by_email();
205
- this.callback_queue.push(this.handle_contact_lookup.bind(this));
206
- return true;
207
- }
208
- else {
209
- return false;
210
- }
211
- }
212
- handle_contact_lookup() {
213
- if (window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email) != '') {
214
- console.log('LOOKUP: Found contact email address: ' + window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email));
215
- return true;
216
- }
217
- else {
218
- return false;
219
- }
220
- }
221
- populate_mapped_fields() {
222
- console.log('MAPPING: Starting field mapping');
223
- //debugger;
224
- this.field_mappings.forEach(({ elementId, elqFieldName }) => {
225
- const fieldValue = window.GetElqContentPersonalizationValue(elqFieldName);
226
- if (elementId !== 'contact-country') {
227
- const element = document.getElementById(elementId);
228
- console.log('element ID of field mappings: ' + elementId);
229
- console.log('fieldValue ID of field mappings: ' + fieldValue);
230
- if (element && fieldValue) {
231
- element.value = fieldValue;
232
- //element.style.display = 'none'; // Hide the field.
233
- if (element.closest('ptc-textfield')) {
234
- element.closest('ptc-textfield').style.display = 'none';
235
- element.closest('ptc-textfield').inputValue = fieldValue;
236
- }
237
- else if (element.closest('ptc-select')) {
238
- element.closest('ptc-select').style.display = 'none';
239
- element.closest("ptc-select").selectedValue = fieldValue;
240
- }
241
- this.fields_populated = true;
242
- }
243
- }
244
- else {
245
- const countryEle = document.getElementById(elementId);
246
- const countrySelect = document.querySelector('.mdc-select');
247
- const mdcSelect = new component.MDCSelect(countrySelect);
248
- if (countryEle && fieldValue) {
249
- countryEle.textContent = fieldValue;
250
- countryEle.closest("ptc-select").selectedValue = fieldValue;
251
- mdcSelect.value = fieldValue;
252
- }
253
- // debugger;
254
- if (countryEle.closest('ptc-select')) {
255
- countryEle.closest('ptc-select').style.display = 'none';
256
- }
257
- }
258
- });
259
- console.log('MAPPING: Finished ');
260
- if (this.fields_populated) {
261
- this.update_notme_link();
262
- }
263
- }
264
- update_user_details() {
265
- console.log('displaying user info...');
266
- if (window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email) !== '') {
267
- document
268
- .querySelectorAll('input[type=text], input[type=tel], input[name="phonenumber"], input[name="phonenumbertwo"], input[type=email], select, textarea, span.mdc-select__selected-text')
269
- .forEach((element) => {
270
- if (element.tagName === 'SPAN') {
271
- const spanText = element;
272
- const spanEloquaName = spanText.getAttribute('data-eloqua-name');
273
- const ptcSelect = spanText.closest('ptc-select');
274
- const mdcSelect = new component.MDCSelect(ptcSelect.querySelector('.mdc-select'));
275
- if (spanEloquaName !== null) {
276
- const spanElqValue = window.GetElqContentPersonalizationValue(spanEloquaName);
277
- if (spanElqValue !== '' && spanElqValue.length > 0) {
278
- spanText.textContent = spanElqValue;
279
- ptcSelect.selectedValue = spanElqValue;
280
- mdcSelect.value = spanElqValue;
281
- }
282
- }
283
- }
284
- else if (element.className.includes('intl-tel-input')) {
285
- const telInput = element;
286
- const eloquaName = telInput.getAttribute('data-eloqua-name');
287
- if (eloquaName !== null) {
288
- const elqValue = window.GetElqContentPersonalizationValue(eloquaName);
289
- if (elqValue !== '' && elqValue.length > 0) {
290
- setTimeout(() => {
291
- telInput.placeholder = elqValue;
292
- telInput.value = elqValue;
293
- telInput.closest('ptc-textfield').inputValue = elqValue;
294
- }, 1000);
295
- }
296
- }
297
- }
298
- else {
299
- const input = element;
300
- const eloquaName = input.getAttribute('data-eloqua-name');
301
- if (eloquaName !== null) {
302
- const elqValue = window.GetElqContentPersonalizationValue(eloquaName);
303
- if (elqValue !== '' && elqValue.length > 0) {
304
- input.value = elqValue;
305
- input.closest('ptc-textfield').inputValue = elqValue;
306
- }
307
- }
308
- }
309
- });
310
- }
311
- if (this.user_elq_email == '' && window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_email) != '') {
312
- this.user_elq_email = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_email);
313
- }
314
- if (this.user_elq_firstname == '' && window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_firstname) != '') {
315
- this.user_elq_firstname = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_firstname);
316
- }
317
- if (this.user_elq_lastname == '' && window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_lastname) != '') {
318
- this.user_elq_lastname = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_lastname);
319
- }
320
- }
321
- update_notme_link() {
322
- // Assuming the user's first and last name are available from Eloqua fields
323
- const firstName = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_firstname);
324
- const lastName = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_lastname);
325
- const topAdditional = document.getElementById('not-me-additional-top');
326
- const bottomAdditional = document.getElementById('not-me-additional-bottom');
327
- if (topAdditional) {
328
- let message = topAdditional.innerHTML;
329
- console.log('first name: ' + firstName);
330
- if (firstName && lastName) {
331
- message = message.replace('{name}', lastName + ' ' + firstName);
332
- }
333
- else {
334
- message = this.params.notme_message_noname;
335
- }
336
- topAdditional.innerHTML = message;
337
- topAdditional.style.display = 'block';
338
- }
339
- if (bottomAdditional) {
340
- //bottomAdditional.innerHTML="Click the button below to recieve email confirmation.";
341
- bottomAdditional.style.display = 'block';
342
- }
343
- const notMeLinkElement = document.getElementById(this.params.notme_link_id);
344
- if (notMeLinkElement) {
345
- notMeLinkElement.style.display = 'block';
346
- notMeLinkElement.onclick = this.remove_user_details.bind(this);
347
- }
348
- }
349
- // private init_notme(): void{
350
- // const topAdditional = document.getElementById('not-me-additional-top');
351
- // const bottomAdditional = document.getElementById('not-me-additional-bottom');
352
- // console.log("top: " + topAdditional)
353
- // if(topAdditional) topAdditional.style.display = 'none';
354
- // if(bottomAdditional) bottomAdditional.style.display = 'none';
355
- // }
356
- remove_user_details(e) {
357
- e.preventDefault();
358
- this.user_elq_email = '';
359
- this.user_elq_firstname = '';
360
- this.user_elq_lastname = '';
361
- // $('.' + this.params.notme_fields_class).val('');
362
- //const linkDiv = document.getElementById(this.params.notme_link_id);
363
- const topAdditional = document.getElementById('not-me-additional-top');
364
- const bottomAdditional = document.getElementById('not-me-additional-bottom');
365
- //linkDiv.querySelector('a').remove();
366
- topAdditional.style.display = 'none';
367
- bottomAdditional.style.display = 'none';
368
- this.refreshForm();
369
- return false;
370
- }
371
- refreshForm() {
372
- this.field_mappings.forEach(({ elementId }) => {
373
- if (elementId !== 'contact-country') {
374
- const element = document.getElementById(elementId);
375
- if (element) {
376
- console.log('element: ' + element);
377
- element.value = ''; // Reset the value
378
- if (element.closest('ptc-textfield')) {
379
- if (element.closest('ptc-textfield').getAttribute('ignore-blind-submit') != "true") {
380
- element.closest('ptc-textfield').style.display = '';
381
- }
382
- }
383
- else if (element.closest('ptc-select')) {
384
- element.closest('ptc-select').style.display = '';
385
- }
386
- else if (element.closest('ptc-form-checkbox')) {
387
- if (element.closest('ptc-form-checkbox').getAttribute('ignore-blind-submit') == "true") {
388
- element.closest('ptc-form-checkbox').style.display = 'none';
389
- }
390
- }
391
- }
392
- }
393
- else {
394
- const countryEle = document.getElementById(elementId);
395
- if (countryEle) {
396
- countryEle.textContent = '';
397
- }
398
- // debugger;
399
- if (countryEle.closest('ptc-select')) {
400
- countryEle.closest('ptc-select').style.display = '';
401
- }
402
- }
403
- });
404
- this.clearEloquaCookie('elq-uid'); // Optionally clear the Eloqua cookie
405
- this.fields_populated = false;
406
- //this.update_notme_link(); // Update the 'Not Me' link if necessary
407
- }
408
- clearEloquaCookie(name) {
409
- document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
410
- console.log('cookie cleared');
411
- }
412
- // Private Method to load Eloqua Scripts
413
- async_load() {
414
- const scriptUrl = 'https://img.en25.com/i/elqCfg.min.js';
415
- const scriptElement = document.createElement('script');
416
- scriptElement.type = 'text/javascript';
417
- scriptElement.async = true;
418
- scriptElement.src = scriptUrl;
419
- // Error handling for script loading
420
- scriptElement.onerror = errorEvent => {
421
- console.log(`Error loading script: ${errorEvent}`);
422
- };
423
- // Append the script element to the head of the document, or before the first script tag found
424
- const firstScriptTag = document.getElementsByTagName('script')[0];
425
- if (firstScriptTag && firstScriptTag.parentNode) {
426
- firstScriptTag.parentNode.insertBefore(scriptElement, firstScriptTag);
427
- }
428
- else {
429
- document.head.appendChild(scriptElement);
430
- }
431
- console.log(`Async loading of script ${scriptUrl} initiated.`);
432
- }
433
- }
434
- ElqLib._elqQ = window['_elqQ'] || [];
435
- // Static member initialization
8
+ // Define the ElqLib class
9
+ class ElqLib {
10
+ constructor(params) {
11
+ this.params = params;
12
+ this.url_vars = {};
13
+ this.visitor_elq_id = null;
14
+ this.field_mappings = [];
15
+ this.callback_queue = [];
16
+ this.fields_populated = false;
17
+ this.user_elq_email = '';
18
+ this.user_elq_firstname = '';
19
+ this.user_elq_lastname = '';
20
+ // Merge defaults with params
21
+ const defaults = {
22
+ elq_site_id: '',
23
+ elq_visitor_lookup_key: '',
24
+ elq_recipient_id_lookup_key: '',
25
+ elq_contact_lookup_key: '',
26
+ elq_field_email_rec_id: 'V_EmailRecipientID',
27
+ elq_field_contact_email: 'C_EmailAddress',
28
+ elq_field_visitor_email: 'V_Email_Address',
29
+ elq_field_visitor_firstname: 'V_First_Name',
30
+ elq_field_visitor_lastname: 'V_Last_Name',
31
+ notme_link_id: 'not-me-link-id',
32
+ notme_fields_class: null,
33
+ notme_message: 'Not {name}? Click here.',
34
+ notme_message_noname: 'Not your details below? Click here.',
35
+ };
36
+ this.params = Object.assign(Object.assign({}, defaults), this.params);
37
+ this.init();
38
+ }
39
+ init() {
40
+ // Merge defaults with user-provided params if not already done in the constructor
41
+ // ...
42
+ // Set Eloqua site ID
43
+ this.setEloquaSiteId();
44
+ // Load Eloqua scripts
45
+ this.async_load();
46
+ // Store URL variables
47
+ this.store_url_vars();
48
+ // Store visitor's Eloqua IDgit
49
+ this.store_visitor_elq_id();
50
+ // init noteme link;
51
+ // this.init_notme();
52
+ // Set the global Eloqua callback function
53
+ window.SetElqContent = this.eloqua_callback.bind(this);
54
+ }
55
+ setEloquaSiteId() {
56
+ if (this.params.elq_site_id) {
57
+ ElqLib._elqQ.push(['elqSetSiteId', this.params.elq_site_id]);
58
+ ElqLib._elqQ.push(['elqUseFirstPartyCookie', 'tracking.ptc.com']);
59
+ ElqLib._elqQ.push(['elqTrackPageView', window.location.href]);
60
+ }
61
+ }
62
+ fire_pageview(url) {
63
+ try {
64
+ if (typeof url === 'undefined') {
65
+ ElqLib._elqQ.push(['elqTrackPageView']);
66
+ }
67
+ else {
68
+ ElqLib._elqQ.push(['elqTrackPageView', url]);
69
+ }
70
+ console.log('TRACKING: Eloqua pageview fired for URL: ' + (url || 'current page'));
71
+ }
72
+ catch (e) {
73
+ console.log('TRACKING: Could not fire Eloqua pageview: ', e);
74
+ }
75
+ }
76
+ find_eloqua_contact() {
77
+ console.log('CONTACT LOOKUP: Attempting to find Eloqua contact...');
78
+ // Queue callback action for the return of lookup
79
+ this.callback_queue.push(this.handle_visitor_lookup.bind(this));
80
+ // Start with a recipient lookup if ID was supplied in URL
81
+ if (this.visitor_elq_id !== null) {
82
+ this.lookup_visitor_by_recipient_id();
83
+ }
84
+ else {
85
+ // If no visitor ID, attempt to do a visitor lookup with an Eloqua cookie
86
+ this.lookup_visitor_by_cookie(); //preference center
87
+ this.lookup_contact_by_email();
88
+ }
89
+ }
90
+ add_field_mapping(mapping) {
91
+ this.field_mappings.push(mapping);
92
+ }
93
+ add_queue_action(action) {
94
+ this.callback_queue.push(action);
95
+ }
96
+ store_url_vars() {
97
+ // Clear the current url_vars
98
+ this.url_vars = {};
99
+ // Split the URL by the '?' to get the query string part
100
+ const queryString = window.location.search.substring(1);
101
+ // Split the query string by '&' to get each key-value pair
102
+ queryString.split('&').forEach(paramString => {
103
+ // Split the key-value pairs by '=' to separate keys and values
104
+ let [key, value] = paramString.split('=');
105
+ // Decode URI components to handle URL encoding
106
+ key = decodeURIComponent(key);
107
+ value = decodeURIComponent(value);
108
+ // Store the key-value pair in the url_vars object
109
+ this.url_vars[key] = value;
110
+ });
111
+ // Optionally, log the stored URL variables
112
+ console.log('URL variables stored:', this.url_vars);
113
+ }
114
+ store_visitor_elq_id() {
115
+ console.log("INIT: Looking for visitor's Eloqua ID in URL...");
116
+ const elqIdParam = this.url_vars['elq'];
117
+ if (elqIdParam) {
118
+ const elqId = elqIdParam.toUpperCase().replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, '$1-$2-$3-$4-$5');
119
+ this.visitor_elq_id = elqId;
120
+ console.log(`INIT: ...visitor Eloqua ID found in URL: ${elqId}`);
121
+ }
122
+ else {
123
+ this.visitor_elq_id = null;
124
+ console.log('INIT: ...no visitor Eloqua ID found in URL');
125
+ }
126
+ }
127
+ // private merge(root: any, ...sources: any[]): any {
128
+ // sources.forEach(source => {
129
+ // for (const key in source) {
130
+ // if (source.hasOwnProperty(key)) {
131
+ // root[key] = source[key];
132
+ // }
133
+ // }
134
+ // });
135
+ // return root;
136
+ // }
137
+ eloqua_callback() {
138
+ console.log('LOOKUP: Eloqua lookup finished');
139
+ // Process each action in the callback queue
140
+ let actionSucceeded = true;
141
+ while (actionSucceeded && this.callback_queue.length > 0) {
142
+ const action = this.callback_queue.shift();
143
+ if (action) {
144
+ console.log(`QUEUE: Executing action`);
145
+ actionSucceeded = action(); // Execute the action. It must return a boolean indicating success.
146
+ if (actionSucceeded) {
147
+ console.log('QUEUE: Action executed successfully, removed from queue');
148
+ }
149
+ else {
150
+ console.log('QUEUE: Action failed, re-adding to queue');
151
+ this.callback_queue.unshift(action); // Re-add the action to the front of the queue
152
+ break; // Break out of the loop if an action fails
153
+ }
154
+ }
155
+ }
156
+ // After processing the queue, update user details or perform other operations
157
+ if (actionSucceeded) {
158
+ this.update_user_details();
159
+ this.populate_mapped_fields();
160
+ }
161
+ // ...additional code to handle the aftermath of callback processing...
162
+ }
163
+ lookup_visitor_by_cookie() {
164
+ if (this.params.elq_visitor_lookup_key != '') {
165
+ ElqLib._elqQ.push(['elqDataLookup', escape(this.params.elq_visitor_lookup_key), '']);
166
+ console.log('LOOKUP: Visitor lookup sent using Eloqua cookie');
167
+ }
168
+ else {
169
+ console.log('LOOKUP: A visitor lookup cannot be performed as no lookup key was defined');
170
+ }
171
+ }
172
+ lookup_visitor_by_recipient_id() {
173
+ if (this.params.elq_recipient_id_lookup_key != '') {
174
+ ElqLib._elqQ.push([
175
+ 'elqDataLookup',
176
+ escape(this.params.elq_recipient_id_lookup_key),
177
+ '<' + this.params.elq_field_email_rec_id + '>' + this.visitor_elq_id + '</' + this.params.elq_field_email_rec_id + '>',
178
+ ]);
179
+ console.log('LOOKUP: Visitor lookup sent using email recipient id: ' + this.visitor_elq_id);
180
+ }
181
+ else {
182
+ console.log('LOOKUP: A visitor lookup cannot be performed as no lookup key was defined');
183
+ }
184
+ }
185
+ lookup_contact_by_email() {
186
+ if (this.params.elq_contact_lookup_key != '') {
187
+ ElqLib._elqQ.push([
188
+ 'elqDataLookup',
189
+ escape(this.params.elq_contact_lookup_key),
190
+ '<' + this.params.elq_field_contact_email + '>' + this.user_elq_email + '</' + this.params.elq_field_contact_email + '>',
191
+ ]);
192
+ console.log('LOOKUP: Contact lookup sent using email address: ' + this.user_elq_email);
193
+ }
194
+ else {
195
+ console.log('LOOKUP: A visitor lookup cannot be performed as no lookup key was defined');
196
+ }
197
+ }
198
+ handle_visitor_lookup() {
199
+ //console.log('Contact Email: ' + this.params.elq_field_contact_email)
200
+ const email = window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email); //it was elq_field_visitor_email ( V_Email_Address)
201
+ if (email) {
202
+ console.log(`LOOKUP: Found contact email address: ${email}`);
203
+ this.user_elq_email = email.trim();
204
+ this.lookup_contact_by_email();
205
+ this.callback_queue.push(this.handle_contact_lookup.bind(this));
206
+ return true;
207
+ }
208
+ else {
209
+ return false;
210
+ }
211
+ }
212
+ handle_contact_lookup() {
213
+ if (window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email) != '') {
214
+ console.log('LOOKUP: Found contact email address: ' + window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email));
215
+ return true;
216
+ }
217
+ else {
218
+ return false;
219
+ }
220
+ }
221
+ populate_mapped_fields() {
222
+ console.log('MAPPING: Starting field mapping');
223
+ //debugger;
224
+ this.field_mappings.forEach(({ elementId, elqFieldName }) => {
225
+ const fieldValue = window.GetElqContentPersonalizationValue(elqFieldName);
226
+ if (elementId !== 'contact-country') {
227
+ const element = document.getElementById(elementId);
228
+ console.log('element ID of field mappings: ' + elementId);
229
+ console.log('fieldValue ID of field mappings: ' + fieldValue);
230
+ if (element && fieldValue) {
231
+ element.value = fieldValue;
232
+ //element.style.display = 'none'; // Hide the field.
233
+ if (element.closest('ptc-textfield')) {
234
+ element.closest('ptc-textfield').style.display = 'none';
235
+ element.closest('ptc-textfield').inputValue = fieldValue;
236
+ }
237
+ else if (element.closest('ptc-select')) {
238
+ element.closest('ptc-select').style.display = 'none';
239
+ element.closest("ptc-select").selectedValue = fieldValue;
240
+ }
241
+ this.fields_populated = true;
242
+ }
243
+ }
244
+ else {
245
+ const countryEle = document.getElementById(elementId);
246
+ const countrySelect = document.querySelector('.mdc-select');
247
+ const mdcSelect = new component.MDCSelect(countrySelect);
248
+ if (countryEle && fieldValue) {
249
+ countryEle.textContent = fieldValue;
250
+ countryEle.closest("ptc-select").selectedValue = fieldValue;
251
+ mdcSelect.value = fieldValue;
252
+ }
253
+ // debugger;
254
+ if (countryEle.closest('ptc-select')) {
255
+ countryEle.closest('ptc-select').style.display = 'none';
256
+ }
257
+ }
258
+ });
259
+ console.log('MAPPING: Finished ');
260
+ if (this.fields_populated) {
261
+ this.update_notme_link();
262
+ }
263
+ }
264
+ update_user_details() {
265
+ console.log('displaying user info...');
266
+ if (window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email) !== '') {
267
+ document
268
+ .querySelectorAll('input[type=text], input[type=tel], input[name="phonenumber"], input[name="phonenumbertwo"], input[type=email], select, textarea, span.mdc-select__selected-text')
269
+ .forEach((element) => {
270
+ if (element.tagName === 'SPAN') {
271
+ const spanText = element;
272
+ const spanEloquaName = spanText.getAttribute('data-eloqua-name');
273
+ const ptcSelect = spanText.closest('ptc-select');
274
+ const mdcSelect = new component.MDCSelect(ptcSelect.querySelector('.mdc-select'));
275
+ if (spanEloquaName !== null) {
276
+ const spanElqValue = window.GetElqContentPersonalizationValue(spanEloquaName);
277
+ if (spanElqValue !== '' && spanElqValue.length > 0) {
278
+ spanText.textContent = spanElqValue;
279
+ ptcSelect.selectedValue = spanElqValue;
280
+ mdcSelect.value = spanElqValue;
281
+ }
282
+ }
283
+ }
284
+ else if (element.className.includes('intl-tel-input')) {
285
+ const telInput = element;
286
+ const eloquaName = telInput.getAttribute('data-eloqua-name');
287
+ if (eloquaName !== null) {
288
+ const elqValue = window.GetElqContentPersonalizationValue(eloquaName);
289
+ if (elqValue !== '' && elqValue.length > 0) {
290
+ setTimeout(() => {
291
+ telInput.placeholder = elqValue;
292
+ telInput.value = elqValue;
293
+ telInput.closest('ptc-textfield').inputValue = elqValue;
294
+ }, 1000);
295
+ }
296
+ }
297
+ }
298
+ else {
299
+ const input = element;
300
+ const eloquaName = input.getAttribute('data-eloqua-name');
301
+ if (eloquaName !== null) {
302
+ const elqValue = window.GetElqContentPersonalizationValue(eloquaName);
303
+ if (elqValue !== '' && elqValue.length > 0) {
304
+ input.value = elqValue;
305
+ input.closest('ptc-textfield').inputValue = elqValue;
306
+ }
307
+ }
308
+ }
309
+ });
310
+ }
311
+ if (this.user_elq_email == '' && window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_email) != '') {
312
+ this.user_elq_email = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_email);
313
+ }
314
+ if (this.user_elq_firstname == '' && window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_firstname) != '') {
315
+ this.user_elq_firstname = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_firstname);
316
+ }
317
+ if (this.user_elq_lastname == '' && window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_lastname) != '') {
318
+ this.user_elq_lastname = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_lastname);
319
+ }
320
+ }
321
+ update_notme_link() {
322
+ // Assuming the user's first and last name are available from Eloqua fields
323
+ const firstName = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_firstname);
324
+ const lastName = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_lastname);
325
+ const topAdditional = document.getElementById('not-me-additional-top');
326
+ const bottomAdditional = document.getElementById('not-me-additional-bottom');
327
+ if (topAdditional) {
328
+ let message = topAdditional.innerHTML;
329
+ console.log('first name: ' + firstName);
330
+ if (firstName && lastName) {
331
+ message = message.replace('{name}', lastName + ' ' + firstName);
332
+ }
333
+ else {
334
+ message = this.params.notme_message_noname;
335
+ }
336
+ topAdditional.innerHTML = message;
337
+ topAdditional.style.display = 'block';
338
+ }
339
+ if (bottomAdditional) {
340
+ //bottomAdditional.innerHTML="Click the button below to recieve email confirmation.";
341
+ bottomAdditional.style.display = 'block';
342
+ }
343
+ const notMeLinkElement = document.getElementById(this.params.notme_link_id);
344
+ if (notMeLinkElement) {
345
+ notMeLinkElement.style.display = 'block';
346
+ notMeLinkElement.onclick = this.remove_user_details.bind(this);
347
+ }
348
+ }
349
+ // private init_notme(): void{
350
+ // const topAdditional = document.getElementById('not-me-additional-top');
351
+ // const bottomAdditional = document.getElementById('not-me-additional-bottom');
352
+ // console.log("top: " + topAdditional)
353
+ // if(topAdditional) topAdditional.style.display = 'none';
354
+ // if(bottomAdditional) bottomAdditional.style.display = 'none';
355
+ // }
356
+ remove_user_details(e) {
357
+ e.preventDefault();
358
+ this.user_elq_email = '';
359
+ this.user_elq_firstname = '';
360
+ this.user_elq_lastname = '';
361
+ // $('.' + this.params.notme_fields_class).val('');
362
+ //const linkDiv = document.getElementById(this.params.notme_link_id);
363
+ const topAdditional = document.getElementById('not-me-additional-top');
364
+ const bottomAdditional = document.getElementById('not-me-additional-bottom');
365
+ //linkDiv.querySelector('a').remove();
366
+ topAdditional.style.display = 'none';
367
+ bottomAdditional.style.display = 'none';
368
+ this.refreshForm();
369
+ return false;
370
+ }
371
+ refreshForm() {
372
+ this.field_mappings.forEach(({ elementId }) => {
373
+ if (elementId !== 'contact-country') {
374
+ const element = document.getElementById(elementId);
375
+ if (element) {
376
+ console.log('element: ' + element);
377
+ element.value = ''; // Reset the value
378
+ if (element.closest('ptc-textfield')) {
379
+ if (element.closest('ptc-textfield').getAttribute('ignore-blind-submit') != "true") {
380
+ element.closest('ptc-textfield').style.display = '';
381
+ }
382
+ }
383
+ else if (element.closest('ptc-select')) {
384
+ element.closest('ptc-select').style.display = '';
385
+ }
386
+ else if (element.closest('ptc-form-checkbox')) {
387
+ if (element.closest('ptc-form-checkbox').getAttribute('ignore-blind-submit') == "true") {
388
+ element.closest('ptc-form-checkbox').style.display = 'none';
389
+ }
390
+ }
391
+ }
392
+ }
393
+ else {
394
+ const countryEle = document.getElementById(elementId);
395
+ if (countryEle) {
396
+ countryEle.textContent = '';
397
+ }
398
+ // debugger;
399
+ if (countryEle.closest('ptc-select')) {
400
+ countryEle.closest('ptc-select').style.display = '';
401
+ }
402
+ }
403
+ });
404
+ this.clearEloquaCookie('elq-uid'); // Optionally clear the Eloqua cookie
405
+ this.fields_populated = false;
406
+ //this.update_notme_link(); // Update the 'Not Me' link if necessary
407
+ }
408
+ clearEloquaCookie(name) {
409
+ document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
410
+ console.log('cookie cleared');
411
+ }
412
+ // Private Method to load Eloqua Scripts
413
+ async_load() {
414
+ const scriptUrl = 'https://img.en25.com/i/elqCfg.min.js';
415
+ const scriptElement = document.createElement('script');
416
+ scriptElement.type = 'text/javascript';
417
+ scriptElement.async = true;
418
+ scriptElement.src = scriptUrl;
419
+ // Error handling for script loading
420
+ scriptElement.onerror = errorEvent => {
421
+ console.log(`Error loading script: ${errorEvent}`);
422
+ };
423
+ // Append the script element to the head of the document, or before the first script tag found
424
+ const firstScriptTag = document.getElementsByTagName('script')[0];
425
+ if (firstScriptTag && firstScriptTag.parentNode) {
426
+ firstScriptTag.parentNode.insertBefore(scriptElement, firstScriptTag);
427
+ }
428
+ else {
429
+ document.head.appendChild(scriptElement);
430
+ }
431
+ console.log(`Async loading of script ${scriptUrl} initiated.`);
432
+ }
433
+ }
434
+ ElqLib._elqQ = window['_elqQ'] || [];
435
+ // Static member initialization
436
436
  //ElqLib._elqQ = window['_elqQ'] || [];
437
437
 
438
438
  const ptcDataLookupCss = "h1,h2,h3,h4,h5,h6,p,ul,li{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}#not-me-link-id{color:var(--color-gray-10);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-medium);font-style:normal;font-weight:var(--ptc-font-weight-bold);line-height:normal;margin-bottom:var(--ptc-element-spacing-03);position:relative}#not-me-link-id a{color:var(--color-blue-07);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-medium);font-style:normal;font-weight:var(--ptc-font-weight-bold);line-height:normal;text-decoration-line:underline}.not-me-additional-text{color:var(--color-gray-10);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-medium);font-style:normal;font-weight:var(--ptc-font-weight-regular);line-height:normal;margin-bottom:var(--ptc-element-spacing-03)}.not-me-additional-text#not-me-additional-bottom{margin-bottom:unset;margin-top:var(--ptc-element-spacing-03)}.ptc-embedded-form>div{max-width:273px;overflow-wrap:break-word}.ptc-embedded-form .iti__country-name{color:var(--color-gray-12)}.ptc-embedded-form .iti--separate-dial-code.iti--show-flags .iti__selected-dial-code{color:var(--color-gray-12)}.ptc-embedded-form .mdc-menu-surface--open{z-index:99999}";
439
439
 
440
- const PtcDataLookup = class {
441
- constructor(hostRef) {
442
- index.registerInstance(this, hostRef);
443
- this.elqSiteId = undefined;
444
- this.elqVisitorLookupKey = undefined;
445
- this.elqRecipientIdLookupKey = undefined;
446
- this.elqContactLookupKey = undefined;
447
- this.elqFieldEmailRecId = 'V_EmailRecipientID';
448
- this.elqFieldContactEmail = 'C_EmailAddress';
449
- this.elqFieldVisitorEmail = 'V_Email_Address';
450
- this.elqFieldVisitorFirstname = 'C_FirstName';
451
- this.elqFieldVisitorLastname = 'C_LastName';
452
- this.notmeLinkId = undefined;
453
- this.notmeFieldsClass = undefined;
454
- this.notmeMessage = undefined;
455
- this.notmeMessageNoname = undefined;
456
- this.isBlindSubmit = true;
457
- this.isInitialized = false;
458
- }
459
- componentWillLoad() {
460
- this.initializeElqLib();
461
- if (this.isBlindSubmit) {
462
- this.populateBlindField();
463
- }
464
- }
465
- componentDidLoad() {
466
- this.init_notme();
467
- }
468
- initializeElqLib() {
469
- this.elqLib = new ElqLib({
470
- elq_site_id: this.elqSiteId,
471
- elq_visitor_lookup_key: this.elqVisitorLookupKey,
472
- elq_recipient_id_lookup_key: this.elqRecipientIdLookupKey,
473
- elq_contact_lookup_key: this.elqContactLookupKey,
474
- elq_field_email_rec_id: this.elqFieldEmailRecId,
475
- elq_field_contact_email: this.elqFieldContactEmail,
476
- elq_field_visitor_email: this.elqFieldVisitorEmail,
477
- elq_field_visitor_firstname: this.elqFieldVisitorFirstname,
478
- elq_field_visitor_lastname: this.elqFieldVisitorLastname,
479
- notme_link_id: this.notmeLinkId,
480
- notme_fields_class: this.notmeFieldsClass,
481
- notme_message: this.notmeMessage,
482
- notme_message_noname: this.notmeMessageNoname,
483
- });
484
- this.isInitialized = true;
485
- }
486
- populateBlindField() {
487
- this.elqLib.add_field_mapping({ elementId: 'contact-phone', elqFieldName: 'C_BusPhone' });
488
- this.elqLib.add_field_mapping({ elementId: 'contact-email', elqFieldName: 'C_EmailAddress' });
489
- this.elqLib.add_field_mapping({ elementId: 'contact-firstname', elqFieldName: 'C_FirstName' });
490
- this.elqLib.add_field_mapping({ elementId: 'contact-lastname', elqFieldName: 'C_LastName' });
491
- this.elqLib.add_field_mapping({ elementId: 'contact-country', elqFieldName: 'C_Country' });
492
- this.elqLib.add_field_mapping({ elementId: 'contact-phone', elqFieldName: 'C_BusPhone' });
493
- this.elqLib.add_field_mapping({ elementId: 'company', elqFieldName: 'C_Company' });
494
- this.elqLib.add_field_mapping({ elementId: 'contact-state', elqFieldName: 'C_State_Prov' });
495
- this.elqLib.add_field_mapping({ elementId: 'contact-zipcode', elqFieldName: 'C_Zip_Postal' });
496
- this.elqLib.add_field_mapping({ elementId: 'contact-job-category', elqFieldName: 'C_Job_Role1' });
497
- this.elqLib.add_field_mapping({ elementId: 'contact-job-function', elqFieldName: 'C_Job_Function1' });
498
- this.elqLib.add_field_mapping({ elementId: 'contact-jp-job-title', elqFieldName: 'C_Title' });
499
- }
500
- getCookie(name) {
501
- let cookieValue = null;
502
- if (document.cookie) {
503
- const cookies = document.cookie.split(';');
504
- for (let cookie of cookies) {
505
- const [key, value] = cookie.trim().split('=');
506
- if (key === name) {
507
- cookieValue = decodeURIComponent(value);
508
- break;
509
- }
510
- }
511
- }
512
- return cookieValue;
513
- }
514
- init_notme() {
515
- const topAdditional = document.getElementById('not-me-additional-top');
516
- const bottomAdditional = document.getElementById('not-me-additional-bottom');
517
- console.log("top: " + topAdditional);
518
- if (topAdditional)
519
- topAdditional.style.display = 'none';
520
- if (bottomAdditional)
521
- bottomAdditional.style.display = 'none';
522
- }
523
- async performDataLookup() {
524
- if (this.isInitialized) {
525
- this.elqLib.user_elq_email = this.getCookie('elq-uid');
526
- this.elqLib.find_eloqua_contact();
527
- }
528
- }
529
- render() {
530
- return index.h("slot", null);
531
- }
532
- get el() { return index.getElement(this); }
533
- };
440
+ const PtcDataLookup = class {
441
+ constructor(hostRef) {
442
+ index.registerInstance(this, hostRef);
443
+ this.elqSiteId = undefined;
444
+ this.elqVisitorLookupKey = undefined;
445
+ this.elqRecipientIdLookupKey = undefined;
446
+ this.elqContactLookupKey = undefined;
447
+ this.elqFieldEmailRecId = 'V_EmailRecipientID';
448
+ this.elqFieldContactEmail = 'C_EmailAddress';
449
+ this.elqFieldVisitorEmail = 'V_Email_Address';
450
+ this.elqFieldVisitorFirstname = 'C_FirstName';
451
+ this.elqFieldVisitorLastname = 'C_LastName';
452
+ this.notmeLinkId = undefined;
453
+ this.notmeFieldsClass = undefined;
454
+ this.notmeMessage = undefined;
455
+ this.notmeMessageNoname = undefined;
456
+ this.isBlindSubmit = true;
457
+ this.isInitialized = false;
458
+ }
459
+ componentWillLoad() {
460
+ this.initializeElqLib();
461
+ if (this.isBlindSubmit) {
462
+ this.populateBlindField();
463
+ }
464
+ }
465
+ componentDidLoad() {
466
+ this.init_notme();
467
+ }
468
+ initializeElqLib() {
469
+ this.elqLib = new ElqLib({
470
+ elq_site_id: this.elqSiteId,
471
+ elq_visitor_lookup_key: this.elqVisitorLookupKey,
472
+ elq_recipient_id_lookup_key: this.elqRecipientIdLookupKey,
473
+ elq_contact_lookup_key: this.elqContactLookupKey,
474
+ elq_field_email_rec_id: this.elqFieldEmailRecId,
475
+ elq_field_contact_email: this.elqFieldContactEmail,
476
+ elq_field_visitor_email: this.elqFieldVisitorEmail,
477
+ elq_field_visitor_firstname: this.elqFieldVisitorFirstname,
478
+ elq_field_visitor_lastname: this.elqFieldVisitorLastname,
479
+ notme_link_id: this.notmeLinkId,
480
+ notme_fields_class: this.notmeFieldsClass,
481
+ notme_message: this.notmeMessage,
482
+ notme_message_noname: this.notmeMessageNoname,
483
+ });
484
+ this.isInitialized = true;
485
+ }
486
+ populateBlindField() {
487
+ this.elqLib.add_field_mapping({ elementId: 'contact-phone', elqFieldName: 'C_BusPhone' });
488
+ this.elqLib.add_field_mapping({ elementId: 'contact-email', elqFieldName: 'C_EmailAddress' });
489
+ this.elqLib.add_field_mapping({ elementId: 'contact-firstname', elqFieldName: 'C_FirstName' });
490
+ this.elqLib.add_field_mapping({ elementId: 'contact-lastname', elqFieldName: 'C_LastName' });
491
+ this.elqLib.add_field_mapping({ elementId: 'contact-country', elqFieldName: 'C_Country' });
492
+ this.elqLib.add_field_mapping({ elementId: 'contact-phone', elqFieldName: 'C_BusPhone' });
493
+ this.elqLib.add_field_mapping({ elementId: 'company', elqFieldName: 'C_Company' });
494
+ this.elqLib.add_field_mapping({ elementId: 'contact-state', elqFieldName: 'C_State_Prov' });
495
+ this.elqLib.add_field_mapping({ elementId: 'contact-zipcode', elqFieldName: 'C_Zip_Postal' });
496
+ this.elqLib.add_field_mapping({ elementId: 'contact-job-category', elqFieldName: 'C_Job_Role1' });
497
+ this.elqLib.add_field_mapping({ elementId: 'contact-job-function', elqFieldName: 'C_Job_Function1' });
498
+ this.elqLib.add_field_mapping({ elementId: 'contact-jp-job-title', elqFieldName: 'C_Title' });
499
+ }
500
+ getCookie(name) {
501
+ let cookieValue = null;
502
+ if (document.cookie) {
503
+ const cookies = document.cookie.split(';');
504
+ for (let cookie of cookies) {
505
+ const [key, value] = cookie.trim().split('=');
506
+ if (key === name) {
507
+ cookieValue = decodeURIComponent(value);
508
+ break;
509
+ }
510
+ }
511
+ }
512
+ return cookieValue;
513
+ }
514
+ init_notme() {
515
+ const topAdditional = document.getElementById('not-me-additional-top');
516
+ const bottomAdditional = document.getElementById('not-me-additional-bottom');
517
+ console.log("top: " + topAdditional);
518
+ if (topAdditional)
519
+ topAdditional.style.display = 'none';
520
+ if (bottomAdditional)
521
+ bottomAdditional.style.display = 'none';
522
+ }
523
+ async performDataLookup() {
524
+ if (this.isInitialized) {
525
+ this.elqLib.user_elq_email = this.getCookie('elq-uid');
526
+ this.elqLib.find_eloqua_contact();
527
+ }
528
+ }
529
+ render() {
530
+ return index.h("slot", null);
531
+ }
532
+ get el() { return index.getElement(this); }
533
+ };
534
534
  PtcDataLookup.style = ptcDataLookupCss;
535
535
 
536
536
  exports.ptc_data_lookup = PtcDataLookup;