@tet/tet-components 1.3.113-testing → 1.3.114-staging

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 (448) hide show
  1. package/dist/cjs/{address-5271d3aa.js → address-7739b5bf.js} +1 -1
  2. package/dist/cjs/{assets-e3bb045c.js → assets-f04dbe9c.js} +1 -1
  3. package/dist/cjs/{async-request-29b32d63.js → async-request-9d8ba94a.js} +1 -1
  4. package/dist/cjs/{http-codes-2f72a8b2.js → http-codes-c172bdfc.js} +1 -1
  5. package/dist/cjs/{index-84ede372.js → index-cac5ef8f.js} +1 -1
  6. package/dist/cjs/{index-f559cb2e.js → index-d323e22a.js} +17 -13
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/{old-utils-dfc83c48.js → old-utils-49708c07.js} +0 -25
  9. package/dist/cjs/{phone-c3ebb2eb.js → phone-67c70ea5.js} +2 -2
  10. package/dist/cjs/product-comparison-6bf262b7.js +28 -0
  11. package/dist/cjs/tet-accordion.cjs.entry.js +1 -1
  12. package/dist/cjs/{tet-address-offers-filters-products_3.cjs.entry.js → tet-address-offers-filters-products_2.cjs.entry.js} +3 -376
  13. package/dist/cjs/tet-address-offers-view.cjs.entry.js +3 -3
  14. package/dist/cjs/tet-address-offers_4.cjs.entry.js +7 -7
  15. package/dist/cjs/tet-address-search.cjs.entry.js +4 -4
  16. package/dist/cjs/tet-asset-addresses.cjs.entry.js +3 -3
  17. package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +1 -1
  18. package/dist/cjs/tet-autocomplete_2.cjs.entry.js +1 -1
  19. package/dist/cjs/tet-b2b-compare-card.cjs.entry.js +3 -3
  20. package/dist/cjs/tet-b2b-configurator-cart.cjs.entry.js +3 -3
  21. package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +3 -3
  22. package/dist/cjs/tet-banner-nav.cjs.entry.js +3 -3
  23. package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
  24. package/dist/cjs/tet-border-radius.cjs.entry.js +1 -1
  25. package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
  26. package/dist/cjs/tet-business-compare-card.cjs.entry.js +1 -1
  27. package/dist/cjs/tet-business-lines.cjs.entry.js +4 -4
  28. package/dist/cjs/tet-business-navigation.cjs.entry.js +1 -1
  29. package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
  30. package/dist/cjs/tet-business-summary-card.cjs.entry.js +3 -3
  31. package/dist/cjs/tet-button.cjs.entry.js +1 -1
  32. package/dist/cjs/tet-card-list.cjs.entry.js +1 -1
  33. package/dist/cjs/tet-carousel.cjs.entry.js +1 -1
  34. package/dist/cjs/tet-checkbox_3.cjs.entry.js +810 -0
  35. package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +3 -3
  36. package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
  37. package/dist/cjs/tet-colors.cjs.entry.js +1 -1
  38. package/dist/cjs/tet-compare-card-v2.cjs.entry.js +290 -0
  39. package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +5 -4
  40. package/dist/cjs/tet-compare-cards_2.cjs.entry.js +5 -4
  41. package/dist/cjs/tet-components.cjs.js +2 -2
  42. package/dist/cjs/tet-contact-form.cjs.entry.js +5 -5
  43. package/dist/cjs/tet-contact-info.cjs.entry.js +1 -1
  44. package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
  45. package/dist/cjs/tet-customer-assets.cjs.entry.js +3 -3
  46. package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +1 -1
  47. package/dist/cjs/tet-datepicker.cjs.entry.js +1 -1
  48. package/dist/cjs/tet-dialog.cjs.entry.js +3 -3
  49. package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
  50. package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
  51. package/dist/cjs/tet-expansion-panel.cjs.entry.js +1 -1
  52. package/dist/cjs/tet-filter.cjs.entry.js +1 -1
  53. package/dist/cjs/tet-font-weight.cjs.entry.js +1 -1
  54. package/dist/cjs/tet-fonts.cjs.entry.js +1 -1
  55. package/dist/cjs/tet-grid.cjs.entry.js +1 -1
  56. package/dist/cjs/tet-icon.cjs.entry.js +2 -2
  57. package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
  58. package/dist/cjs/tet-input.cjs.entry.js +3 -3
  59. package/dist/cjs/tet-label.cjs.entry.js +3 -3
  60. package/dist/cjs/tet-layout.cjs.entry.js +1 -1
  61. package/dist/cjs/tet-link.cjs.entry.js +1 -1
  62. package/dist/cjs/tet-loader.cjs.entry.js +1 -1
  63. package/dist/cjs/tet-macd-view.cjs.entry.js +6 -6
  64. package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
  65. package/dist/cjs/tet-menu.cjs.entry.js +1 -1
  66. package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +3 -3
  67. package/dist/cjs/tet-navigation-mobile.cjs.entry.js +1 -1
  68. package/dist/cjs/tet-news-card-list.cjs.entry.js +1 -1
  69. package/dist/cjs/tet-notification.cjs.entry.js +1 -1
  70. package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
  71. package/dist/cjs/tet-placeholder.cjs.entry.js +1 -1
  72. package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
  73. package/dist/cjs/tet-radio.cjs.entry.js +1 -1
  74. package/dist/cjs/{tet-range-slider_2.cjs.entry.js → tet-range-slider.cjs.entry.js} +1 -45
  75. package/dist/cjs/tet-referral.cjs.entry.js +5 -5
  76. package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
  77. package/dist/cjs/tet-spacing.cjs.entry.js +1 -1
  78. package/dist/cjs/tet-stepper-input.cjs.entry.js +3 -3
  79. package/dist/cjs/tet-stepper-v2.cjs.entry.js +1 -1
  80. package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
  81. package/dist/cjs/tet-stepper.cjs.entry.js +1 -1
  82. package/dist/cjs/tet-switch.cjs.entry.js +50 -0
  83. package/dist/cjs/tet-tab-header.cjs.entry.js +1 -1
  84. package/dist/cjs/tet-table.cjs.entry.js +1 -1
  85. package/dist/cjs/tet-tag_2.cjs.entry.js +3 -3
  86. package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
  87. package/dist/cjs/tet-textarea.cjs.entry.js +1 -1
  88. package/dist/cjs/tet-thank-you-view-v2.cjs.entry.js +3 -3
  89. package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
  90. package/dist/cjs/tet-thank-you-view.cjs.entry.js +1 -1
  91. package/dist/cjs/tet-tv-gift-block.cjs.entry.js +1 -1
  92. package/dist/cjs/tet-tv-gift-list.cjs.entry.js +1 -1
  93. package/dist/cjs/{theme-wrapper-a5bbadf6.js → theme-wrapper-a1abdef5.js} +2 -2
  94. package/dist/cjs/{translations-ed68775f.js → translations-1fa17fd7.js} +1 -1
  95. package/dist/collection/collection-manifest.json +1 -0
  96. package/dist/collection/components/advanced/cards/tet-compare-card-v2/test/tet-compare-card-v2.spec.js +42 -0
  97. package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.css +7860 -0
  98. package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.js +736 -0
  99. package/dist/components/index.js +3 -1
  100. package/dist/components/{p-be1f946f.js → p-0a0e1bf6.js} +4 -4
  101. package/dist/components/{p-adc2acdb.js → p-0acb9293.js} +6 -6
  102. package/dist/components/{p-5645dd41.js → p-1481c862.js} +7 -7
  103. package/dist/components/{p-6830b44d.js → p-1ff52177.js} +2 -2
  104. package/dist/components/{p-3358b104.js → p-314b1552.js} +3 -3
  105. package/dist/components/{p-b81a320a.js → p-365391d7.js} +3 -3
  106. package/dist/components/{p-1c79ee4e.js → p-3e9302c0.js} +3 -3
  107. package/dist/components/{p-a81e545d.js → p-4227ed8b.js} +1 -1
  108. package/dist/components/{p-489ae3a0.js → p-47d5ea80.js} +1 -1
  109. package/dist/components/{p-ae4b6ba7.js → p-4a654985.js} +3 -3
  110. package/dist/components/{p-a141151a.js → p-4de206bb.js} +1 -1
  111. package/dist/components/{p-705296ed.js → p-4e278314.js} +1 -1
  112. package/dist/components/{p-a92f6b38.js → p-50188678.js} +14 -14
  113. package/dist/components/{p-647c5edc.js → p-50edcb4f.js} +6 -6
  114. package/dist/components/{p-50c52fb2.js → p-56e07823.js} +1 -1
  115. package/dist/components/{p-37ed3ebb.js → p-5749376d.js} +1 -1
  116. package/dist/components/{p-c9f72086.js → p-5b0f19d0.js} +2 -2
  117. package/dist/components/{p-659824f8.js → p-5ba028f4.js} +1 -1
  118. package/dist/components/{p-8b3d80aa.js → p-5ba3b696.js} +1 -1
  119. package/dist/components/{p-4d586778.js → p-5cefae92.js} +9 -9
  120. package/dist/components/{p-af8f7b1d.js → p-6364f069.js} +2 -2
  121. package/dist/components/{p-feaaeb2d.js → p-65fbd362.js} +2 -2
  122. package/dist/components/{p-0a9fb3c4.js → p-67960f22.js} +2 -2
  123. package/dist/components/{p-5c8c2d8d.js → p-68876a74.js} +1 -1
  124. package/dist/components/{p-eb9b5f91.js → p-6956d6d9.js} +1 -1
  125. package/dist/components/{p-23227816.js → p-73f32642.js} +4 -4
  126. package/dist/components/{p-48a1a0e4.js → p-77f74d4d.js} +1 -1
  127. package/dist/components/{p-fa3ec733.js → p-7e729da3.js} +2 -2
  128. package/dist/components/{p-93cca75b.js → p-84dc5ba4.js} +7 -7
  129. package/dist/components/{p-a0d406ca.js → p-8f91eb96.js} +1 -1
  130. package/dist/components/{p-ecb0207c.js → p-9173ea5a.js} +1 -1
  131. package/dist/components/{p-c365367f.js → p-926307b4.js} +3 -3
  132. package/dist/components/{p-504e911b.js → p-951b004f.js} +1 -1
  133. package/dist/components/{p-ef961ffc.js → p-975cf3f9.js} +1 -1
  134. package/dist/components/{p-1dfb07e1.js → p-a18fd2fd.js} +1 -1
  135. package/dist/components/{p-c656c370.js → p-ad4150cc.js} +2 -2
  136. package/dist/components/{p-f548bf03.js → p-b5700559.js} +3 -3
  137. package/dist/components/{p-b05b300b.js → p-b71374f9.js} +2 -2
  138. package/dist/components/{p-207c4b5d.js → p-ba45da9e.js} +3 -3
  139. package/dist/components/p-bbd6cfd1.js +26 -0
  140. package/dist/components/{p-a80b68c0.js → p-c3d8de7f.js} +10 -10
  141. package/dist/components/{p-c4f3dcb1.js → p-c843c652.js} +1 -1
  142. package/dist/components/{p-3dc2183b.js → p-ceb5f8c9.js} +1 -1
  143. package/dist/components/{p-88b42c67.js → p-d0537f8e.js} +1 -1
  144. package/dist/components/{p-a60885a9.js → p-d23332cc.js} +2 -2
  145. package/dist/components/{p-8fcf42d3.js → p-d912d984.js} +2 -2
  146. package/dist/components/{p-10811f2d.js → p-df5b4f95.js} +1 -1
  147. package/dist/components/{p-02399f8e.js → p-e0da62c0.js} +2 -2
  148. package/dist/components/{p-763fc23e.js → p-ee871065.js} +3 -3
  149. package/dist/components/{p-aca28e71.js → p-f0503bac.js} +1 -1
  150. package/dist/components/{p-1e4d2d49.js → p-f2dc4c18.js} +2 -2
  151. package/dist/components/{p-4a62809b.js → p-f6f2bfd8.js} +11 -33
  152. package/dist/components/{p-902a69e5.js → p-fddffe4d.js} +1 -1
  153. package/dist/components/tet-accordion.js +1 -1
  154. package/dist/components/tet-address-offers-filters-products.js +1 -1
  155. package/dist/components/tet-address-offers-filters.js +1 -1
  156. package/dist/components/tet-address-offers-view.js +25 -25
  157. package/dist/components/tet-address-offers.js +1 -1
  158. package/dist/components/tet-address-search.js +1 -1
  159. package/dist/components/tet-asset-addresses.js +13 -13
  160. package/dist/components/tet-asset-availability-addresses.js +1 -1
  161. package/dist/components/tet-autocomplete-dropdown.js +5 -5
  162. package/dist/components/tet-autocomplete.js +1 -1
  163. package/dist/components/tet-availability-contact-form.js +1 -1
  164. package/dist/components/tet-b2b-compare-card.js +6 -6
  165. package/dist/components/tet-b2b-configurator-cart.js +5 -5
  166. package/dist/components/tet-b2b-service-calculator.js +8 -8
  167. package/dist/components/tet-banner-nav.js +3 -3
  168. package/dist/components/tet-bar-graph.js +1 -1
  169. package/dist/components/tet-border-radius.js +1 -1
  170. package/dist/components/tet-business-card.js +1 -1
  171. package/dist/components/tet-business-compare-card.js +3 -3
  172. package/dist/components/tet-business-lines.js +5 -5
  173. package/dist/components/tet-business-navigation.js +2 -2
  174. package/dist/components/tet-business-round-stepper.js +2 -2
  175. package/dist/components/tet-business-summary-card.js +5 -5
  176. package/dist/components/tet-button.js +1 -1
  177. package/dist/components/tet-card-list.js +1 -1
  178. package/dist/components/tet-carousel.js +3 -3
  179. package/dist/components/tet-checkbox.js +1 -1
  180. package/dist/components/tet-cloud-application-form-dialog.js +8 -8
  181. package/dist/components/tet-cloud-configurator.js +11 -11
  182. package/dist/components/tet-colors.js +1 -1
  183. package/dist/components/tet-compare-card-v2.d.ts +11 -0
  184. package/dist/components/tet-compare-card-v2.js +370 -0
  185. package/dist/components/tet-compare-card.js +1 -1
  186. package/dist/components/tet-compare-cards-tab.js +16 -15
  187. package/dist/components/tet-compare-cards.js +1 -1
  188. package/dist/components/tet-contact-form.js +9 -9
  189. package/dist/components/tet-contact-info.js +1 -1
  190. package/dist/components/tet-container.js +1 -1
  191. package/dist/components/tet-customer-assets.js +8 -8
  192. package/dist/components/tet-datepicker-header.js +1 -1
  193. package/dist/components/tet-datepicker-month-view.js +1 -1
  194. package/dist/components/tet-datepicker-multi-year-view.js +1 -1
  195. package/dist/components/tet-datepicker-year-view.js +1 -1
  196. package/dist/components/tet-datepicker.js +6 -6
  197. package/dist/components/tet-dialog.js +1 -1
  198. package/dist/components/tet-dropdown.js +1 -1
  199. package/dist/components/tet-dynamic-card.js +4 -4
  200. package/dist/components/tet-expandable-input.js +3 -3
  201. package/dist/components/tet-expansion-panel.js +1 -1
  202. package/dist/components/tet-filter.js +4 -4
  203. package/dist/components/tet-font-weight.js +1 -1
  204. package/dist/components/tet-fonts.js +1 -1
  205. package/dist/components/tet-grid.js +1 -1
  206. package/dist/components/tet-icon.js +1 -1
  207. package/dist/components/tet-inline-message.js +2 -2
  208. package/dist/components/tet-input.js +1 -1
  209. package/dist/components/tet-label.js +3 -3
  210. package/dist/components/tet-layout.js +1 -1
  211. package/dist/components/tet-link.js +1 -1
  212. package/dist/components/tet-loader.js +1 -1
  213. package/dist/components/tet-macd-view.js +11 -11
  214. package/dist/components/tet-menu-mobile.js +2 -2
  215. package/dist/components/tet-menu.js +2 -2
  216. package/dist/components/tet-multi-step-dialog.js +5 -5
  217. package/dist/components/tet-navigation-mobile.js +2 -2
  218. package/dist/components/tet-news-card-list.js +4 -4
  219. package/dist/components/tet-notification.js +1 -1
  220. package/dist/components/tet-number-input.js +1 -1
  221. package/dist/components/tet-placeholder.js +1 -1
  222. package/dist/components/tet-price-view.js +1 -1
  223. package/dist/components/tet-radio.js +1 -1
  224. package/dist/components/tet-range-slider.js +1 -1
  225. package/dist/components/tet-referral.js +7 -7
  226. package/dist/components/tet-round-stepper.js +2 -2
  227. package/dist/components/tet-selection-list.js +1 -1
  228. package/dist/components/tet-spacing.js +1 -1
  229. package/dist/components/tet-spinner.js +1 -1
  230. package/dist/components/tet-stepper-input.js +1 -1
  231. package/dist/components/tet-stepper-v2.js +1 -1
  232. package/dist/components/tet-stepper-v3.js +1 -1
  233. package/dist/components/tet-stepper.js +1 -1
  234. package/dist/components/tet-switch.js +1 -1
  235. package/dist/components/tet-tab-content.js +1 -1
  236. package/dist/components/tet-tab-header.js +1 -1
  237. package/dist/components/tet-table.js +3 -3
  238. package/dist/components/tet-tag-group.js +1 -1
  239. package/dist/components/tet-tag.js +1 -1
  240. package/dist/components/tet-text-list.js +1 -1
  241. package/dist/components/tet-textarea.js +1 -1
  242. package/dist/components/tet-thank-you-view-v2.js +5 -5
  243. package/dist/components/tet-thank-you-view-v3.js +5 -5
  244. package/dist/components/tet-thank-you-view.js +4 -4
  245. package/dist/components/tet-tooltip.js +1 -1
  246. package/dist/components/tet-tv-gift-block.js +1 -1
  247. package/dist/components/tet-tv-gift-list.js +2 -2
  248. package/dist/esm/{address-979a9993.js → address-cf4b9052.js} +1 -1
  249. package/dist/esm/{assets-b971f105.js → assets-9c72dac5.js} +1 -1
  250. package/dist/esm/{async-request-6675e5f5.js → async-request-8cfbcb21.js} +1 -1
  251. package/dist/esm/{http-codes-7faa9f6e.js → http-codes-66a577c3.js} +1 -1
  252. package/dist/esm/{index-7f1e2a22.js → index-8ac89426.js} +17 -13
  253. package/dist/esm/{index-1bf36cb9.js → index-a7cd7688.js} +1 -1
  254. package/dist/esm/loader.js +3 -3
  255. package/dist/esm/{old-utils-be2d226e.js → old-utils-da559140.js} +1 -25
  256. package/dist/esm/{phone-ed2205b3.js → phone-8d55f9d7.js} +2 -2
  257. package/dist/esm/product-comparison-d97cb68b.js +26 -0
  258. package/dist/esm/tet-accordion.entry.js +1 -1
  259. package/dist/esm/{tet-address-offers-filters-products_3.entry.js → tet-address-offers-filters-products_2.entry.js} +4 -376
  260. package/dist/esm/tet-address-offers-view.entry.js +3 -3
  261. package/dist/esm/tet-address-offers_4.entry.js +7 -7
  262. package/dist/esm/tet-address-search.entry.js +4 -4
  263. package/dist/esm/tet-asset-addresses.entry.js +3 -3
  264. package/dist/esm/tet-autocomplete-dropdown.entry.js +1 -1
  265. package/dist/esm/tet-autocomplete_2.entry.js +1 -1
  266. package/dist/esm/tet-b2b-compare-card.entry.js +3 -3
  267. package/dist/esm/tet-b2b-configurator-cart.entry.js +3 -3
  268. package/dist/esm/tet-b2b-service-calculator.entry.js +3 -3
  269. package/dist/esm/tet-banner-nav.entry.js +3 -3
  270. package/dist/esm/tet-bar-graph.entry.js +1 -1
  271. package/dist/esm/tet-border-radius.entry.js +1 -1
  272. package/dist/esm/tet-business-card.entry.js +1 -1
  273. package/dist/esm/tet-business-compare-card.entry.js +1 -1
  274. package/dist/esm/tet-business-lines.entry.js +4 -4
  275. package/dist/esm/tet-business-navigation.entry.js +1 -1
  276. package/dist/esm/tet-business-round-stepper.entry.js +1 -1
  277. package/dist/esm/tet-business-summary-card.entry.js +3 -3
  278. package/dist/esm/tet-button.entry.js +1 -1
  279. package/dist/esm/tet-card-list.entry.js +1 -1
  280. package/dist/esm/tet-carousel.entry.js +1 -1
  281. package/dist/esm/tet-checkbox_3.entry.js +804 -0
  282. package/dist/esm/tet-cloud-application-form-dialog.entry.js +3 -3
  283. package/dist/esm/tet-cloud-configurator.entry.js +3 -3
  284. package/dist/esm/tet-colors.entry.js +1 -1
  285. package/dist/esm/tet-compare-card-v2.entry.js +286 -0
  286. package/dist/esm/tet-compare-cards-tab.entry.js +4 -3
  287. package/dist/esm/tet-compare-cards_2.entry.js +4 -3
  288. package/dist/esm/tet-components.js +3 -3
  289. package/dist/esm/tet-contact-form.entry.js +5 -5
  290. package/dist/esm/tet-contact-info.entry.js +1 -1
  291. package/dist/esm/tet-container_2.entry.js +1 -1
  292. package/dist/esm/tet-customer-assets.entry.js +3 -3
  293. package/dist/esm/tet-datepicker-header_4.entry.js +1 -1
  294. package/dist/esm/tet-datepicker.entry.js +1 -1
  295. package/dist/esm/tet-dialog.entry.js +3 -3
  296. package/dist/esm/tet-dynamic-card.entry.js +1 -1
  297. package/dist/esm/tet-expandable-input.entry.js +1 -1
  298. package/dist/esm/tet-expansion-panel.entry.js +1 -1
  299. package/dist/esm/tet-filter.entry.js +1 -1
  300. package/dist/esm/tet-font-weight.entry.js +1 -1
  301. package/dist/esm/tet-fonts.entry.js +1 -1
  302. package/dist/esm/tet-grid.entry.js +1 -1
  303. package/dist/esm/tet-icon.entry.js +2 -2
  304. package/dist/esm/tet-inline-message.entry.js +1 -1
  305. package/dist/esm/tet-input.entry.js +3 -3
  306. package/dist/esm/tet-label.entry.js +3 -3
  307. package/dist/esm/tet-layout.entry.js +1 -1
  308. package/dist/esm/tet-link.entry.js +1 -1
  309. package/dist/esm/tet-loader.entry.js +1 -1
  310. package/dist/esm/tet-macd-view.entry.js +6 -6
  311. package/dist/esm/tet-menu-mobile.entry.js +1 -1
  312. package/dist/esm/tet-menu.entry.js +1 -1
  313. package/dist/esm/tet-multi-step-dialog.entry.js +3 -3
  314. package/dist/esm/tet-navigation-mobile.entry.js +1 -1
  315. package/dist/esm/tet-news-card-list.entry.js +1 -1
  316. package/dist/esm/tet-notification.entry.js +1 -1
  317. package/dist/esm/tet-number-input.entry.js +1 -1
  318. package/dist/esm/tet-placeholder.entry.js +1 -1
  319. package/dist/esm/tet-price-view.entry.js +1 -1
  320. package/dist/esm/tet-radio.entry.js +1 -1
  321. package/dist/esm/{tet-range-slider_2.entry.js → tet-range-slider.entry.js} +2 -45
  322. package/dist/esm/tet-referral.entry.js +5 -5
  323. package/dist/esm/tet-round-stepper.entry.js +1 -1
  324. package/dist/esm/tet-spacing.entry.js +1 -1
  325. package/dist/esm/tet-stepper-input.entry.js +3 -3
  326. package/dist/esm/tet-stepper-v2.entry.js +1 -1
  327. package/dist/esm/tet-stepper-v3.entry.js +1 -1
  328. package/dist/esm/tet-stepper.entry.js +1 -1
  329. package/dist/esm/tet-switch.entry.js +46 -0
  330. package/dist/esm/tet-tab-header.entry.js +1 -1
  331. package/dist/esm/tet-table.entry.js +1 -1
  332. package/dist/esm/tet-tag_2.entry.js +3 -3
  333. package/dist/esm/tet-text-list.entry.js +1 -1
  334. package/dist/esm/tet-textarea.entry.js +1 -1
  335. package/dist/esm/tet-thank-you-view-v2.entry.js +3 -3
  336. package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
  337. package/dist/esm/tet-thank-you-view.entry.js +1 -1
  338. package/dist/esm/tet-tv-gift-block.entry.js +1 -1
  339. package/dist/esm/tet-tv-gift-list.entry.js +1 -1
  340. package/dist/esm/{theme-wrapper-6e6b2089.js → theme-wrapper-de71af98.js} +2 -2
  341. package/dist/esm/{translations-eff34607.js → translations-24de7d95.js} +1 -1
  342. package/dist/tet-components/{p-8c964cca.js → p-0967ecde.js} +1 -1
  343. package/dist/tet-components/{p-7210bb04.entry.js → p-0a2abc7a.entry.js} +1 -1
  344. package/dist/tet-components/{p-db666f67.entry.js → p-0a56c9ad.entry.js} +1 -1
  345. package/dist/tet-components/{p-cc73c6bf.entry.js → p-0e55273a.entry.js} +1 -1
  346. package/dist/tet-components/{p-e596991f.entry.js → p-126c3143.entry.js} +1 -1
  347. package/dist/tet-components/p-17b49153.entry.js +1 -0
  348. package/dist/tet-components/{p-12c21228.entry.js → p-22d3caa2.entry.js} +1 -1
  349. package/dist/tet-components/{p-27e3fced.entry.js → p-25b7d54c.entry.js} +1 -1
  350. package/dist/tet-components/{p-362e5e9e.entry.js → p-267f5658.entry.js} +1 -1
  351. package/dist/tet-components/{p-8cbb30a1.entry.js → p-2a55b6e6.entry.js} +1 -1
  352. package/dist/tet-components/{p-966eaa17.entry.js → p-369dace1.entry.js} +1 -1
  353. package/dist/tet-components/p-36e468a3.js +1 -0
  354. package/dist/tet-components/{p-3ea5e48b.entry.js → p-3ebb7712.entry.js} +1 -1
  355. package/dist/tet-components/{p-a844fa98.entry.js → p-41faa90c.entry.js} +1 -1
  356. package/dist/tet-components/{p-cf7d5c84.js → p-42613a55.js} +1 -1
  357. package/dist/tet-components/{p-74989c7b.entry.js → p-435e37e4.entry.js} +1 -1
  358. package/dist/tet-components/{p-f09325e9.entry.js → p-47ffe780.entry.js} +1 -1
  359. package/dist/tet-components/{p-0d4242c6.entry.js → p-48b5a7d3.entry.js} +1 -1
  360. package/dist/tet-components/{p-018095d9.entry.js → p-4a2cf529.entry.js} +1 -1
  361. package/dist/tet-components/{p-091e774d.entry.js → p-4a57690d.entry.js} +1 -1
  362. package/dist/tet-components/{p-79255c00.entry.js → p-4ede3a1f.entry.js} +1 -1
  363. package/dist/tet-components/{p-7a12782b.entry.js → p-4faf23bd.entry.js} +1 -1
  364. package/dist/tet-components/{p-71e2fe80.js → p-50f7f25f.js} +1 -1
  365. package/dist/tet-components/{p-17a4096b.entry.js → p-52dc2cef.entry.js} +1 -1
  366. package/dist/tet-components/{p-25449f2a.entry.js → p-585e2c54.entry.js} +1 -1
  367. package/dist/tet-components/p-639d54d8.entry.js +1 -0
  368. package/dist/tet-components/{p-1ec7f341.js → p-67c5dc0a.js} +1 -1
  369. package/dist/tet-components/{p-7a89815d.entry.js → p-68746ae4.entry.js} +1 -1
  370. package/dist/tet-components/{p-118bad7e.entry.js → p-6c7df4e7.entry.js} +1 -1
  371. package/dist/tet-components/{p-0817992c.entry.js → p-7117cade.entry.js} +1 -1
  372. package/dist/tet-components/{p-37958859.entry.js → p-712b2089.entry.js} +1 -1
  373. package/dist/tet-components/{p-1576d249.entry.js → p-774c56c8.entry.js} +1 -1
  374. package/dist/tet-components/p-7e0b9e20.entry.js +1 -0
  375. package/dist/tet-components/{p-3bf8a104.entry.js → p-7f5deac5.entry.js} +1 -1
  376. package/dist/tet-components/{p-8b455701.entry.js → p-80e929ba.entry.js} +1 -1
  377. package/dist/tet-components/{p-c1294aa0.entry.js → p-81f8fb7f.entry.js} +1 -1
  378. package/dist/tet-components/{p-59db86cf.entry.js → p-8549fb81.entry.js} +1 -1
  379. package/dist/tet-components/{p-c2d3f622.entry.js → p-8b974532.entry.js} +1 -1
  380. package/dist/tet-components/{p-04a794db.entry.js → p-8ba094c1.entry.js} +1 -1
  381. package/dist/tet-components/{p-a89a8dca.entry.js → p-8f0e5262.entry.js} +1 -1
  382. package/dist/tet-components/{p-0ca72362.entry.js → p-8f55be16.entry.js} +1 -1
  383. package/dist/tet-components/p-8ff27e77.entry.js +1 -0
  384. package/dist/tet-components/{p-55819f09.entry.js → p-93827b9c.entry.js} +1 -1
  385. package/dist/tet-components/{p-beeb3cae.entry.js → p-96f2711a.entry.js} +1 -1
  386. package/dist/tet-components/{p-2f029068.entry.js → p-98787067.entry.js} +1 -1
  387. package/dist/tet-components/{p-6c69e565.entry.js → p-99340df4.entry.js} +1 -1
  388. package/dist/tet-components/p-9a040e77.entry.js +1 -0
  389. package/dist/tet-components/{p-108cd149.entry.js → p-9b377b8c.entry.js} +1 -1
  390. package/dist/tet-components/{p-bb6387c6.entry.js → p-9cfcf121.entry.js} +1 -1
  391. package/dist/tet-components/{p-13ed6385.entry.js → p-9d261322.entry.js} +1 -1
  392. package/dist/tet-components/{p-74275f2b.entry.js → p-9fe8cf64.entry.js} +1 -1
  393. package/dist/tet-components/{p-b5706ef0.entry.js → p-a317ae27.entry.js} +1 -1
  394. package/dist/tet-components/{p-f76f171b.entry.js → p-a46f25c3.entry.js} +1 -1
  395. package/dist/tet-components/{p-33807857.entry.js → p-a71fa814.entry.js} +1 -1
  396. package/dist/tet-components/{p-5b360a66.entry.js → p-ac67729e.entry.js} +1 -1
  397. package/dist/tet-components/{p-3019fe9e.entry.js → p-ac6aaa07.entry.js} +1 -1
  398. package/dist/tet-components/{p-970a3fc5.entry.js → p-ad5686e5.entry.js} +1 -1
  399. package/dist/tet-components/{p-759be092.entry.js → p-ad723a83.entry.js} +1 -1
  400. package/dist/tet-components/{p-c592f222.entry.js → p-afcf04af.entry.js} +1 -1
  401. package/dist/tet-components/{p-63184613.entry.js → p-aff1ccf5.entry.js} +1 -1
  402. package/dist/tet-components/{p-406551c3.entry.js → p-b0ad6fa8.entry.js} +1 -1
  403. package/dist/tet-components/{p-96b88c24.entry.js → p-b3335236.entry.js} +1 -1
  404. package/dist/tet-components/{p-d4603ec3.entry.js → p-b52c4b78.entry.js} +1 -1
  405. package/dist/tet-components/p-b604ca3e.js +1 -0
  406. package/dist/tet-components/{p-12e11e54.entry.js → p-b663fb88.entry.js} +1 -1
  407. package/dist/tet-components/{p-a7f3696d.entry.js → p-b6682ae8.entry.js} +1 -1
  408. package/dist/tet-components/{p-93fcdf8f.entry.js → p-b9905359.entry.js} +1 -1
  409. package/dist/tet-components/{p-77372984.js → p-baa9231f.js} +1 -1
  410. package/dist/tet-components/{p-c95cf2d4.entry.js → p-bb769879.entry.js} +1 -1
  411. package/dist/tet-components/{p-82f67011.entry.js → p-c084d412.entry.js} +1 -1
  412. package/dist/tet-components/{p-0ecf034c.entry.js → p-c3429ec0.entry.js} +1 -1
  413. package/dist/tet-components/{p-61818927.entry.js → p-c41118a5.entry.js} +1 -1
  414. package/dist/tet-components/p-c57274a4.js +1 -0
  415. package/dist/tet-components/{p-dcbe09b5.js → p-c830c227.js} +1 -1
  416. package/dist/tet-components/{p-ead19172.entry.js → p-c92f03bf.entry.js} +1 -1
  417. package/dist/tet-components/{p-3099ed23.entry.js → p-d1384b9b.entry.js} +1 -1
  418. package/dist/tet-components/p-d466bde1.entry.js +1 -0
  419. package/dist/tet-components/{p-3588d98e.entry.js → p-d4679639.entry.js} +1 -1
  420. package/dist/tet-components/{p-f9d096b2.entry.js → p-da44b761.entry.js} +1 -1
  421. package/dist/tet-components/{p-de142575.js → p-e318ee60.js} +1 -1
  422. package/dist/tet-components/{p-47618056.entry.js → p-e43e0a37.entry.js} +1 -1
  423. package/dist/tet-components/{p-7476cb78.entry.js → p-ea310b24.entry.js} +1 -1
  424. package/dist/tet-components/{p-fd4c0831.entry.js → p-ead4025d.entry.js} +1 -1
  425. package/dist/tet-components/{p-d2ea6733.entry.js → p-f04e2faf.entry.js} +1 -1
  426. package/dist/tet-components/{p-e263ecdf.js → p-f2978a1b.js} +1 -1
  427. package/dist/tet-components/p-f9329e01.entry.js +1 -0
  428. package/dist/tet-components/{p-641c5d9d.entry.js → p-f960e6a9.entry.js} +1 -1
  429. package/dist/tet-components/{p-7e9c8900.entry.js → p-fb60b92b.entry.js} +1 -1
  430. package/dist/tet-components/{p-9ef5798e.entry.js → p-fbf6521b.entry.js} +1 -1
  431. package/dist/tet-components/{p-4e3c6172.entry.js → p-fd189a4c.entry.js} +1 -1
  432. package/dist/tet-components/{p-36c1f441.entry.js → p-fe1f5799.entry.js} +1 -1
  433. package/dist/tet-components/{p-c4812370.entry.js → p-ff402238.entry.js} +1 -1
  434. package/dist/tet-components/tet-components.esm.js +1 -1
  435. package/dist/types/components.d.ts +211 -0
  436. package/package.json +1 -1
  437. package/dist/cjs/tet-checkbox.cjs.entry.js +0 -73
  438. package/dist/cjs/tet-tooltip.cjs.entry.js +0 -370
  439. package/dist/esm/tet-checkbox.entry.js +0 -69
  440. package/dist/esm/tet-tooltip.entry.js +0 -366
  441. package/dist/tet-components/p-43fddd56.js +0 -1
  442. package/dist/tet-components/p-66212f0d.entry.js +0 -1
  443. package/dist/tet-components/p-6b876ac5.entry.js +0 -1
  444. package/dist/tet-components/p-7cb9062d.entry.js +0 -1
  445. package/dist/tet-components/p-b2b384d2.js +0 -1
  446. package/dist/tet-components/p-b523a8b6.entry.js +0 -1
  447. package/dist/tet-components/p-ef2c9d65.entry.js +0 -1
  448. package/dist/tet-components/p-f0de0420.entry.js +0 -1
@@ -0,0 +1,736 @@
1
+ import { h } from "@stencil/core";
2
+ import { productComparison } from "../../../../services/api/index";
3
+ /**
4
+ * List of card for product comparison.
5
+ *
6
+ * @part compare-card-title-wrapper - Element that encompasses all the titles and subtitle.
7
+ */
8
+ export class TetCompareCardV2 {
9
+ constructor() {
10
+ /**
11
+ * Renders the loader.
12
+ */
13
+ this.renderLoader = () => {
14
+ return (h("div", { class: "cards" }, [...Array(1)].map(() => [h("tet-placeholder", { class: "tet-placeholder", height: "37rem", width: "21.5rem" })])));
15
+ };
16
+ this.clickCallback = () => null;
17
+ this.cardType = 'static';
18
+ this.theme = 'classic';
19
+ this.colorIcons = false;
20
+ this.bestChoice = false;
21
+ this.language = 'lv';
22
+ this.options = [];
23
+ this.cardBackgroundColor = undefined;
24
+ this.cardScript = undefined;
25
+ this.bestChoiceTextPosition = 'center';
26
+ this.darkMode = false;
27
+ this.bonuses = [];
28
+ this.benefitTitle = undefined;
29
+ this.benefits = [];
30
+ this.contractTerm = 0;
31
+ this.bestChoiceText = '';
32
+ this.currency = '';
33
+ this.secondaryLink = '';
34
+ this.secondaryLinkText = '';
35
+ this.secondaryLinkOpenBlank = false;
36
+ this.buttonTitle = '';
37
+ this.linkOpenBlank = false;
38
+ this.dropdownOptions = [];
39
+ this.showLoader = true;
40
+ this.selectedProductCode = '';
41
+ this.comparisonData = null;
42
+ this.selectedSwitchKeys = [];
43
+ this.preselectedKeys = [];
44
+ this.preselectedProductCode = '';
45
+ }
46
+ /**
47
+ * @param event
48
+ */
49
+ onOptionSelected(event) {
50
+ const productCode = event.detail.value;
51
+ this.selectedProductCode = productCode;
52
+ this.fetchProductComparison(productCode);
53
+ }
54
+ componentWillLoad() {
55
+ var _a;
56
+ if (this.cardType === 'dropdown') {
57
+ this.pushDataToDropdownOptions();
58
+ const preselected = this.options.find(option => option.preselected);
59
+ if (preselected) {
60
+ this.selectedProductCode = preselected.productCode;
61
+ this.fetchProductComparison(preselected.productCode);
62
+ }
63
+ }
64
+ if (this.cardType === "switcher") {
65
+ const preselected = this.options.find(option => option.preselected);
66
+ if (preselected) {
67
+ this.preselectedKeys = [...preselected.keys];
68
+ this.preselectedProductCode = preselected.productCode;
69
+ this.selectedSwitchKeys = [...preselected.keys];
70
+ this.selectedProductCode = preselected.productCode;
71
+ this.fetchProductComparison(preselected.productCode);
72
+ }
73
+ return;
74
+ }
75
+ if (this.cardType === 'static') {
76
+ this.selectedProductCode = ((_a = this.options.find(option => option.productCode)) === null || _a === void 0 ? void 0 : _a.productCode) || '';
77
+ this.fetchProductComparison(this.selectedProductCode);
78
+ }
79
+ }
80
+ pushDataToDropdownOptions() {
81
+ this.options.forEach(option => {
82
+ this.dropdownOptions.push({
83
+ label: option.label || '',
84
+ value: option.productCode || '',
85
+ preselected: option.preselected || false
86
+ });
87
+ });
88
+ }
89
+ getToggledProductCode(keys) {
90
+ const sortedKeys = [...keys].sort().join(',');
91
+ const found = this.options.find(option => [...option.keys].sort().join(',') === sortedKeys);
92
+ return found ? found.productCode : null;
93
+ }
94
+ handleSwitchToggle(key, checked) {
95
+ const benefit = this.benefits.find(benefit => benefit.toggleKey === key);
96
+ let activeKeys = [...this.selectedSwitchKeys];
97
+ if (checked) {
98
+ if (benefit === null || benefit === void 0 ? void 0 : benefit.selectAll) {
99
+ const fullComboOption = this.getFullComboToggleOption();
100
+ if (fullComboOption) {
101
+ this.selectedSwitchKeys = [...fullComboOption.keys];
102
+ this.selectedProductCode = fullComboOption.productCode;
103
+ this.showLoader = true;
104
+ this.fetchProductComparison(fullComboOption.productCode);
105
+ return;
106
+ }
107
+ }
108
+ if (!activeKeys.includes(key)) {
109
+ activeKeys.push(key);
110
+ }
111
+ }
112
+ else {
113
+ const selectAllBenefit = this.benefits.find(benefit => benefit.selectAll);
114
+ const selectAllKey = selectAllBenefit === null || selectAllBenefit === void 0 ? void 0 : selectAllBenefit.toggleKey;
115
+ const fullCombo = this.getFullComboToggleOption();
116
+ const isFullComboActive = fullCombo &&
117
+ this.selectedSwitchKeys.length === fullCombo.keys.length &&
118
+ this.selectedSwitchKeys.every(key => fullCombo.keys.includes(key)) &&
119
+ fullCombo.keys.every(key => this.selectedSwitchKeys.includes(key));
120
+ if (isFullComboActive && key !== selectAllKey) {
121
+ this.selectedSwitchKeys = [...this.preselectedKeys];
122
+ this.selectedProductCode = this.preselectedProductCode;
123
+ this.showLoader = true;
124
+ this.fetchProductComparison(this.preselectedProductCode);
125
+ return;
126
+ }
127
+ if (activeKeys.length === 1 &&
128
+ activeKeys[0] === key &&
129
+ this.preselectedKeys.length === 1 &&
130
+ this.preselectedKeys[0] === key) {
131
+ return;
132
+ }
133
+ if (activeKeys.length === this.preselectedKeys.length &&
134
+ activeKeys.every(key => this.preselectedKeys.includes(key)) &&
135
+ this.preselectedKeys.every(key => activeKeys.includes(key)) &&
136
+ activeKeys.includes(key)) {
137
+ return;
138
+ }
139
+ activeKeys = activeKeys.filter(key => key !== key);
140
+ if (activeKeys.length === 0) {
141
+ this.selectedSwitchKeys = [...this.preselectedKeys];
142
+ this.selectedProductCode = this.preselectedProductCode;
143
+ this.showLoader = true;
144
+ this.fetchProductComparison(this.preselectedProductCode);
145
+ return;
146
+ }
147
+ }
148
+ activeKeys = activeKeys.sort();
149
+ const productCode = this.getToggledProductCode(activeKeys);
150
+ this.selectedSwitchKeys = activeKeys;
151
+ if (productCode) {
152
+ this.selectedProductCode = productCode;
153
+ this.showLoader = true;
154
+ this.fetchProductComparison(productCode);
155
+ }
156
+ else {
157
+ this.selectedProductCode = '';
158
+ this.comparisonData = null;
159
+ this.showLoader = false;
160
+ }
161
+ }
162
+ getFullComboToggleOption() {
163
+ if (!this.options.length) {
164
+ return null;
165
+ }
166
+ return this.options.reduce((max, curr) => curr.keys.length > max.keys.length ? curr : max, this.options[0]);
167
+ }
168
+ async fetchProductComparison(productCode) {
169
+ try {
170
+ const response = await productComparison(productCode);
171
+ this.comparisonData = response['products'][productCode];
172
+ this.showLoader = false;
173
+ }
174
+ catch (e) {
175
+ console.error(e);
176
+ this.comparisonData = null;
177
+ this.showLoader = false;
178
+ }
179
+ }
180
+ selectedContractTerm() {
181
+ var _a;
182
+ if (!((_a = this.comparisonData) === null || _a === void 0 ? void 0 : _a.contractTerms)) {
183
+ return;
184
+ }
185
+ if (this.contractTerm !== undefined) {
186
+ const contractTerm = this.comparisonData.contractTerms.find(contractTerm => contractTerm.term === this.contractTerm);
187
+ if (contractTerm) {
188
+ return contractTerm;
189
+ }
190
+ }
191
+ }
192
+ currentBonuses() {
193
+ var _a;
194
+ const option = this.options.find(option => option.productCode === this.selectedProductCode);
195
+ return (_a = option === null || option === void 0 ? void 0 : option.bonuses) !== null && _a !== void 0 ? _a : [];
196
+ }
197
+ getTheme() {
198
+ if (this.darkMode) {
199
+ if (this.theme === 'classic' || this.theme === 'light' || this.theme === 'dark') {
200
+ return `dark ${this.theme}`;
201
+ }
202
+ return 'dark grey';
203
+ }
204
+ return this.theme;
205
+ }
206
+ benefitHandler(benefit) {
207
+ const benefitAsLink = benefit.dataAttributes && Object.keys(benefit.dataAttributes).length > 0;
208
+ const benefitAsImg = !!benefit.img;
209
+ return (h("div", { class: "benefit", key: benefit.toggleKey }, benefitAsImg ? (h("img", { src: benefit.img, class: "benefit__icon benefit__img" })) : (h("tet-icon", { class: "benefit__icon icon", name: benefit.icon })), benefitAsLink ? (h("a", Object.assign({ class: "benefit__name benefit__link" }, (benefit.dataAttributes || {})), benefit.name)) : (h("span", { class: "benefit__name" }, benefit.name))));
210
+ }
211
+ /**
212
+ * Renders the card body.
213
+ * @returns rendered card body.
214
+ */
215
+ renderCard() {
216
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
217
+ if (!this.comparisonData) {
218
+ return this.renderLoader();
219
+ }
220
+ // Get data for rendering
221
+ const contractTermData = this.selectedContractTerm();
222
+ const overridePoductAttribute = (_a = this.comparisonData) === null || _a === void 0 ? void 0 : _a.attributes.find(attr => attr.key === 'overrideProductName');
223
+ const overridePoductName = overridePoductAttribute === null || overridePoductAttribute === void 0 ? void 0 : overridePoductAttribute.value;
224
+ const mainTitle = overridePoductName !== null && overridePoductName !== void 0 ? overridePoductName : (_c = (_b = this.comparisonData) === null || _b === void 0 ? void 0 : _b.name) === null || _c === void 0 ? void 0 : _c[this.language];
225
+ const price = contractTermData.amount.toString();
226
+ const promotionCode = (_d = contractTermData === null || contractTermData === void 0 ? void 0 : contractTermData.promotionCode) !== null && _d !== void 0 ? _d : '';
227
+ const term = (_e = contractTermData.term) !== null && _e !== void 0 ? _e : '';
228
+ const priceDescription = (_f = contractTermData === null || contractTermData === void 0 ? void 0 : contractTermData.priceDescription) !== null && _f !== void 0 ? _f : 'Īpašā cena spēkā jauniem klientiem pirmos 24 mēnešus, pēc tam - tā brīža standarta cena.';
229
+ const secondaryLink = (_g = contractTermData === null || contractTermData === void 0 ? void 0 : contractTermData.contract) !== null && _g !== void 0 ? _g : '';
230
+ const baseUrl = ((_j = (_h = this.comparisonData) === null || _h === void 0 ? void 0 : _h.formUrl) === null || _j === void 0 ? void 0 : _j[this.language]) || '';
231
+ const params = new URLSearchParams({
232
+ contractTerm: (_k = term === null || term === void 0 ? void 0 : term.toString()) !== null && _k !== void 0 ? _k : '',
233
+ product: this.selectedProductCode,
234
+ promotion: promotionCode !== null && promotionCode !== void 0 ? promotionCode : '',
235
+ lang: (_l = this.language) !== null && _l !== void 0 ? _l : '',
236
+ from: 'tet.lv'
237
+ });
238
+ const link = `${baseUrl}${baseUrl.includes('?') ? '&' : '?'}${params.toString()}`;
239
+ const currentBonuses = this.currentBonuses();
240
+ const isBestChoice = ((_m = this.options.find(options => options.productCode === this.selectedProductCode)) === null || _m === void 0 ? void 0 : _m.bestChoice) || false;
241
+ return (h("div", { onClick: this.clickCallback, onKeyDown: () => { }, class: {
242
+ 'card': true,
243
+ [`${this.cardType}`]: true,
244
+ [`${this.getTheme()}`]: true,
245
+ 'best-choice': isBestChoice,
246
+ 'dark-mode': this.darkMode
247
+ }, style: !this.darkMode ? { backgroundColor: this.cardBackgroundColor } : {} }, h("div", { class: {
248
+ 'best-choice-title': true,
249
+ 'active': isBestChoice,
250
+ [`${this.bestChoiceTextPosition}`]: true
251
+ } }, this.bestChoiceText), h("div", { class: "compare-card-half-60" }, h("div", { class: "content top" }, mainTitle ? (h("div", { class: {
252
+ 'title-wrapper': true,
253
+ 'js-resize-title': true
254
+ }, part: "compare-card-title-wrapper" }, h("h3", { class: "main-title" }, mainTitle))) : (''), h("div", { class: "price js-resize-price" }, price && !isNaN(parseFloat(price)) ? (h("div", { class: {
255
+ 'price-wrapper': true
256
+ } }, h("div", { class: "price-container" }, h("div", { class: "new-price translation-none" }, parseFloat(price.replace(',', '.')).toFixed(2).replace('.', ',')), h("div", { class: "currency" }, h("span", null, this.currency))), priceDescription ? (h("span", { class: "price-description" }, priceDescription)) : (''))) : ('')), currentBonuses.length > 0 && (h("div", { class: "bonuses-wrapper" }, currentBonuses.map(bonus => (h("div", { class: "bonuss" }, h("tet-icon", { class: "bonuss__icon icon", name: "add" }), h("span", { class: "bonuss__text" }, bonus.name)))))), h("tet-button", { class: "button", type: "primary", theme: "yellow", url: link, urlTarget: this.linkOpenBlank ? '_blank' : '_self' }, this.buttonTitle))), h("div", { class: "compare-card-half-40" }, h("div", { class: "content bottom" }, this.cardType === 'dropdown' && this.benefits.length > 0 ? (h("div", { class: "benefit-wrapper" }, h("span", { class: "benefit-title" }, this.benefitTitle), (_o = this === null || this === void 0 ? void 0 : this.benefits) === null || _o === void 0 ? void 0 :
257
+ _o.map((benefit) => (this.benefitHandler(benefit))), h("tet-dropdown", { id: "dropdown", class: "dropdown", "button-label": "", "close-on-selection": "true", "flex-layout": "true", options: this.dropdownOptions }))) : (''), this.cardType === 'switcher' && this.benefits.length > 0 && (h("div", { class: "benefit-wrapper" }, h("span", { class: "benefit-title" }, this.benefitTitle), this.benefits.map((benefit) => {
258
+ const benefitAsLink = benefit.dataAttributes && Object.keys(benefit.dataAttributes).length > 0;
259
+ const benefitAsImg = !!benefit.img;
260
+ // Is this switch the only active one and preselected?
261
+ const isOnlyActivePreselected = this.selectedSwitchKeys.length === 1 &&
262
+ this.selectedSwitchKeys[0] === benefit.toggleKey &&
263
+ this.preselectedKeys.length === 1 &&
264
+ this.preselectedKeys[0] === benefit.toggleKey;
265
+ // For multi-preselected combo:
266
+ const isMultiPreselected = this.selectedSwitchKeys.length === this.preselectedKeys.length &&
267
+ this.selectedSwitchKeys.every(k => this.preselectedKeys.includes(k)) &&
268
+ this.preselectedKeys.every(k => this.selectedSwitchKeys.includes(k));
269
+ // Disable if it's the only active preselected, or the current set matches a multi-preselected group
270
+ const shouldDisableSwitch = isOnlyActivePreselected ||
271
+ (isMultiPreselected && this.selectedSwitchKeys.includes(benefit.toggleKey));
272
+ return (h("div", { class: "benefit", key: benefit.toggleKey }, benefitAsImg ? (h("img", { src: benefit.img, class: "benefit__icon benefit__img" })) : (h("tet-icon", { class: "benefit__icon icon", name: benefit.icon })), benefitAsLink ? (h("a", Object.assign({ class: "benefit__name benefit__link" }, (benefit.dataAttributes || {})), benefit.name)) : (h("span", { class: "benefit__name" }, benefit.name)), h("tet-switch", { name: benefit.toggleKey, checked: this.selectedSwitchKeys.includes(benefit.toggleKey), disabled: shouldDisableSwitch, onCheck: e => this.handleSwitchToggle(benefit.toggleKey, e.detail.checked) })));
273
+ }))), this.cardType === 'static' && this.benefits.length > 0 ? (h("div", { class: "benefit-wrapper" }, h("span", { class: "benefit-title" }, this.benefitTitle), (_p = this === null || this === void 0 ? void 0 : this.benefits) === null || _p === void 0 ? void 0 :
274
+ _p.map((benefit) => (this.benefitHandler(benefit))))) : (''), h("div", { class: "button-wrapper" }, secondaryLink && this.secondaryLinkText && (h("div", { class: {
275
+ 'secondary-link': true
276
+ } }, this.secondaryLinkOpenBlank ? (h("a", { target: "_blank", href: secondaryLink }, this.secondaryLinkText)) : (h("a", { href: secondaryLink }, this.secondaryLinkText))))))), this.cardScript ? h("link", { href: this.cardScript, rel: "stylesheet", type: "text/css" }) : ''));
277
+ }
278
+ render() {
279
+ return this.renderCard();
280
+ }
281
+ static get is() { return "tet-compare-card-v2"; }
282
+ static get encapsulation() { return "shadow"; }
283
+ static get originalStyleUrls() {
284
+ return {
285
+ "$": ["tet-compare-card-v2.scss"]
286
+ };
287
+ }
288
+ static get styleUrls() {
289
+ return {
290
+ "$": ["tet-compare-card-v2.css"]
291
+ };
292
+ }
293
+ static get properties() {
294
+ return {
295
+ "clickCallback": {
296
+ "type": "unknown",
297
+ "mutable": false,
298
+ "complexType": {
299
+ "original": "() => any",
300
+ "resolved": "() => any",
301
+ "references": {}
302
+ },
303
+ "required": false,
304
+ "optional": false,
305
+ "docs": {
306
+ "tags": [],
307
+ "text": "The callback function to execute on button click."
308
+ },
309
+ "defaultValue": "() => null"
310
+ },
311
+ "cardType": {
312
+ "type": "string",
313
+ "mutable": false,
314
+ "complexType": {
315
+ "original": "'dropdown' | 'switcher' | 'static'",
316
+ "resolved": "\"dropdown\" | \"static\" | \"switcher\"",
317
+ "references": {}
318
+ },
319
+ "required": false,
320
+ "optional": false,
321
+ "docs": {
322
+ "tags": [],
323
+ "text": "The size of the button."
324
+ },
325
+ "attribute": "card-type",
326
+ "reflect": false,
327
+ "defaultValue": "'static'"
328
+ },
329
+ "theme": {
330
+ "type": "string",
331
+ "mutable": false,
332
+ "complexType": {
333
+ "original": "'light' | 'dark' | ServiceAvailabilityServicesCategoryTheme",
334
+ "resolved": "\"classic\" | \"dark\" | \"grey\" | \"light\" | \"netflix\" | \"non-netflix\" | \"tet-bundles\" | \"tet-business-blue\" | \"tet-business-default\" | \"tet-business-green\" | \"tet-business-mint\" | \"tet-business-purple\" | \"tet-business-red\" | \"tet-business-yellow\" | \"tet-electricity\" | \"tet-internet\" | \"tet-tv\" | \"tet-tv-plus\" | \"tet-vtv\"",
335
+ "references": {
336
+ "ServiceAvailabilityServicesCategoryTheme": {
337
+ "location": "import",
338
+ "path": "@services/api",
339
+ "id": "src/services/api/index.ts::ServiceAvailabilityServicesCategoryTheme"
340
+ }
341
+ }
342
+ },
343
+ "required": false,
344
+ "optional": false,
345
+ "docs": {
346
+ "tags": [],
347
+ "text": "The theme of the card."
348
+ },
349
+ "attribute": "theme",
350
+ "reflect": false,
351
+ "defaultValue": "'classic'"
352
+ },
353
+ "colorIcons": {
354
+ "type": "boolean",
355
+ "mutable": false,
356
+ "complexType": {
357
+ "original": "boolean",
358
+ "resolved": "boolean",
359
+ "references": {}
360
+ },
361
+ "required": false,
362
+ "optional": false,
363
+ "docs": {
364
+ "tags": [],
365
+ "text": "Determines whether the card has bullet point icons colored based on current theme."
366
+ },
367
+ "attribute": "color-icons",
368
+ "reflect": false,
369
+ "defaultValue": "false"
370
+ },
371
+ "bestChoice": {
372
+ "type": "boolean",
373
+ "mutable": false,
374
+ "complexType": {
375
+ "original": "boolean",
376
+ "resolved": "boolean",
377
+ "references": {}
378
+ },
379
+ "required": false,
380
+ "optional": false,
381
+ "docs": {
382
+ "tags": [],
383
+ "text": "The disabled state of the bestChoice card."
384
+ },
385
+ "attribute": "best-choice",
386
+ "reflect": false,
387
+ "defaultValue": "false"
388
+ },
389
+ "language": {
390
+ "type": "string",
391
+ "mutable": false,
392
+ "complexType": {
393
+ "original": "string",
394
+ "resolved": "string",
395
+ "references": {}
396
+ },
397
+ "required": false,
398
+ "optional": false,
399
+ "docs": {
400
+ "tags": [],
401
+ "text": "The language of the component."
402
+ },
403
+ "attribute": "language",
404
+ "reflect": false,
405
+ "defaultValue": "'lv'"
406
+ },
407
+ "options": {
408
+ "type": "unknown",
409
+ "mutable": false,
410
+ "complexType": {
411
+ "original": "CompareCardInterface[]",
412
+ "resolved": "CompareCardInterface[]",
413
+ "references": {
414
+ "CompareCardInterface": {
415
+ "location": "local",
416
+ "path": "/__w/internal-tet-web-components-tet-components/internal-tet-web-components-tet-components/src/src/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.tsx",
417
+ "id": "src/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.tsx::CompareCardInterface"
418
+ }
419
+ }
420
+ },
421
+ "required": false,
422
+ "optional": false,
423
+ "docs": {
424
+ "tags": [],
425
+ "text": "This prop defines the behaviour of the results that will be shown in the component.\nEither generic or personalized."
426
+ },
427
+ "defaultValue": "[]"
428
+ },
429
+ "cardBackgroundColor": {
430
+ "type": "string",
431
+ "mutable": false,
432
+ "complexType": {
433
+ "original": "string",
434
+ "resolved": "string",
435
+ "references": {}
436
+ },
437
+ "required": false,
438
+ "optional": false,
439
+ "docs": {
440
+ "tags": [],
441
+ "text": "This prop defines card background color."
442
+ },
443
+ "attribute": "card-background-color",
444
+ "reflect": false
445
+ },
446
+ "cardScript": {
447
+ "type": "string",
448
+ "mutable": false,
449
+ "complexType": {
450
+ "original": "string",
451
+ "resolved": "string",
452
+ "references": {}
453
+ },
454
+ "required": false,
455
+ "optional": false,
456
+ "docs": {
457
+ "tags": [],
458
+ "text": "This prop defines card style imports."
459
+ },
460
+ "attribute": "card-script",
461
+ "reflect": false
462
+ },
463
+ "bestChoiceTextPosition": {
464
+ "type": "string",
465
+ "mutable": false,
466
+ "complexType": {
467
+ "original": "'left' | 'center' | 'right'",
468
+ "resolved": "\"center\" | \"left\" | \"right\"",
469
+ "references": {}
470
+ },
471
+ "required": false,
472
+ "optional": false,
473
+ "docs": {
474
+ "tags": [],
475
+ "text": "This prop defines the positioning of the best choice element."
476
+ },
477
+ "attribute": "best-choice-text-position",
478
+ "reflect": false,
479
+ "defaultValue": "'center'"
480
+ },
481
+ "darkMode": {
482
+ "type": "boolean",
483
+ "mutable": false,
484
+ "complexType": {
485
+ "original": "boolean",
486
+ "resolved": "boolean",
487
+ "references": {}
488
+ },
489
+ "required": false,
490
+ "optional": false,
491
+ "docs": {
492
+ "tags": [],
493
+ "text": "This prop defines if the card is in dark mode."
494
+ },
495
+ "attribute": "dark-mode",
496
+ "reflect": false,
497
+ "defaultValue": "false"
498
+ },
499
+ "bonuses": {
500
+ "type": "unknown",
501
+ "mutable": false,
502
+ "complexType": {
503
+ "original": "string[]",
504
+ "resolved": "string[]",
505
+ "references": {}
506
+ },
507
+ "required": false,
508
+ "optional": false,
509
+ "docs": {
510
+ "tags": [],
511
+ "text": "This prop defines additional bonuses displayed on the card."
512
+ },
513
+ "defaultValue": "[]"
514
+ },
515
+ "benefitTitle": {
516
+ "type": "string",
517
+ "mutable": false,
518
+ "complexType": {
519
+ "original": "string",
520
+ "resolved": "string",
521
+ "references": {}
522
+ },
523
+ "required": false,
524
+ "optional": false,
525
+ "docs": {
526
+ "tags": [],
527
+ "text": "This prop defines the title of benefits."
528
+ },
529
+ "attribute": "benefit-title",
530
+ "reflect": false
531
+ },
532
+ "benefits": {
533
+ "type": "unknown",
534
+ "mutable": false,
535
+ "complexType": {
536
+ "original": "BenefitInterface[]",
537
+ "resolved": "BenefitInterface[]",
538
+ "references": {
539
+ "BenefitInterface": {
540
+ "location": "local",
541
+ "path": "/__w/internal-tet-web-components-tet-components/internal-tet-web-components-tet-components/src/src/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.tsx",
542
+ "id": "src/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.tsx::BenefitInterface"
543
+ }
544
+ }
545
+ },
546
+ "required": false,
547
+ "optional": false,
548
+ "docs": {
549
+ "tags": [],
550
+ "text": "This prop defines benefits of the card."
551
+ },
552
+ "defaultValue": "[]"
553
+ },
554
+ "contractTerm": {
555
+ "type": "number",
556
+ "mutable": false,
557
+ "complexType": {
558
+ "original": "number",
559
+ "resolved": "number",
560
+ "references": {}
561
+ },
562
+ "required": false,
563
+ "optional": false,
564
+ "docs": {
565
+ "tags": [],
566
+ "text": "This prop defines selected contract term for the card."
567
+ },
568
+ "attribute": "contract-term",
569
+ "reflect": false,
570
+ "defaultValue": "0"
571
+ },
572
+ "bestChoiceText": {
573
+ "type": "string",
574
+ "mutable": false,
575
+ "complexType": {
576
+ "original": "string",
577
+ "resolved": "string",
578
+ "references": {}
579
+ },
580
+ "required": false,
581
+ "optional": false,
582
+ "docs": {
583
+ "tags": [],
584
+ "text": "This prop defines best choice text for the card."
585
+ },
586
+ "attribute": "best-choice-text",
587
+ "reflect": false,
588
+ "defaultValue": "''"
589
+ },
590
+ "currency": {
591
+ "type": "string",
592
+ "mutable": false,
593
+ "complexType": {
594
+ "original": "string",
595
+ "resolved": "string",
596
+ "references": {}
597
+ },
598
+ "required": false,
599
+ "optional": false,
600
+ "docs": {
601
+ "tags": [],
602
+ "text": "This prop defines currency for the card."
603
+ },
604
+ "attribute": "currency",
605
+ "reflect": false,
606
+ "defaultValue": "''"
607
+ },
608
+ "secondaryLink": {
609
+ "type": "string",
610
+ "mutable": false,
611
+ "complexType": {
612
+ "original": "string",
613
+ "resolved": "string",
614
+ "references": {}
615
+ },
616
+ "required": false,
617
+ "optional": false,
618
+ "docs": {
619
+ "tags": [],
620
+ "text": "This prop defines secondary link for the card."
621
+ },
622
+ "attribute": "secondary-link",
623
+ "reflect": false,
624
+ "defaultValue": "''"
625
+ },
626
+ "secondaryLinkText": {
627
+ "type": "string",
628
+ "mutable": false,
629
+ "complexType": {
630
+ "original": "string",
631
+ "resolved": "string",
632
+ "references": {}
633
+ },
634
+ "required": false,
635
+ "optional": false,
636
+ "docs": {
637
+ "tags": [],
638
+ "text": "This prop defines secondary link text for the card."
639
+ },
640
+ "attribute": "secondary-link-text",
641
+ "reflect": false,
642
+ "defaultValue": "''"
643
+ },
644
+ "secondaryLinkOpenBlank": {
645
+ "type": "boolean",
646
+ "mutable": false,
647
+ "complexType": {
648
+ "original": "boolean",
649
+ "resolved": "boolean",
650
+ "references": {}
651
+ },
652
+ "required": false,
653
+ "optional": false,
654
+ "docs": {
655
+ "tags": [],
656
+ "text": "This prop defines whether the secondary link opens in a new tab."
657
+ },
658
+ "attribute": "secondary-link-open-blank",
659
+ "reflect": false,
660
+ "defaultValue": "false"
661
+ },
662
+ "buttonTitle": {
663
+ "type": "string",
664
+ "mutable": false,
665
+ "complexType": {
666
+ "original": "string",
667
+ "resolved": "string",
668
+ "references": {}
669
+ },
670
+ "required": false,
671
+ "optional": false,
672
+ "docs": {
673
+ "tags": [],
674
+ "text": "This prop defines button title for the card."
675
+ },
676
+ "attribute": "button-title",
677
+ "reflect": false,
678
+ "defaultValue": "''"
679
+ },
680
+ "linkOpenBlank": {
681
+ "type": "boolean",
682
+ "mutable": false,
683
+ "complexType": {
684
+ "original": "boolean",
685
+ "resolved": "boolean",
686
+ "references": {}
687
+ },
688
+ "required": false,
689
+ "optional": false,
690
+ "docs": {
691
+ "tags": [],
692
+ "text": "This prop defines whether the main link opens in a new tab."
693
+ },
694
+ "attribute": "link-open-blank",
695
+ "reflect": false,
696
+ "defaultValue": "false"
697
+ },
698
+ "dropdownOptions": {
699
+ "type": "unknown",
700
+ "mutable": false,
701
+ "complexType": {
702
+ "original": "{ label: string; value: string; preselected: boolean }[]",
703
+ "resolved": "{ label: string; value: string; preselected: boolean; }[]",
704
+ "references": {}
705
+ },
706
+ "required": false,
707
+ "optional": false,
708
+ "docs": {
709
+ "tags": [],
710
+ "text": "This prop defines dropdown options for dropdown type card."
711
+ },
712
+ "defaultValue": "[]"
713
+ }
714
+ };
715
+ }
716
+ static get states() {
717
+ return {
718
+ "showLoader": {},
719
+ "selectedProductCode": {},
720
+ "comparisonData": {},
721
+ "selectedSwitchKeys": {},
722
+ "preselectedKeys": {},
723
+ "preselectedProductCode": {}
724
+ };
725
+ }
726
+ static get elementRef() { return "host"; }
727
+ static get listeners() {
728
+ return [{
729
+ "name": "optionSelected",
730
+ "method": "onOptionSelected",
731
+ "target": undefined,
732
+ "capture": false,
733
+ "passive": false
734
+ }];
735
+ }
736
+ }