@ptcwebops/ptcw-design 3.4.2 → 3.4.4

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