@tet/tet-components 1.4.30-staging → 1.4.30-testing

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 (475) hide show
  1. package/dist/cjs/{address-f852270f.js → address-656e77f6.js} +1 -1
  2. package/dist/cjs/{assets-b9d36649.js → assets-f64f0e16.js} +1 -1
  3. package/dist/cjs/{async-request-4517f566.js → async-request-fcf33aba.js} +1 -1
  4. package/dist/cjs/{http-codes-062f76cf.js → http-codes-40da1e61.js} +1 -1
  5. package/dist/cjs/{index-faec4c52.js → index-3242ff3f.js} +1 -1
  6. package/dist/cjs/{index-19a7608f.js → index-4b423f33.js} +1 -1
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{phone-d6be0dd2.js → phone-055efd07.js} +2 -2
  9. package/dist/cjs/{product-comparison-aa80a77c.js → product-comparison-88a89820.js} +1 -1
  10. package/dist/cjs/tet-accordion.cjs.entry.js +1 -1
  11. package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +3 -3
  12. package/dist/cjs/tet-address-offers-view.cjs.entry.js +3 -3
  13. package/dist/cjs/tet-address-offers_4.cjs.entry.js +7 -7
  14. package/dist/cjs/tet-address-search.cjs.entry.js +4 -4
  15. package/dist/cjs/tet-asset-addresses.cjs.entry.js +3 -3
  16. package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +1 -1
  17. package/dist/cjs/tet-autocomplete.cjs.entry.js +1 -1
  18. package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +3 -3
  19. package/dist/cjs/tet-b2b-configurator.cjs.entry.js +4 -4
  20. package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +3 -3
  21. package/dist/cjs/tet-banner-nav.cjs.entry.js +3 -3
  22. package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
  23. package/dist/cjs/tet-border-radius.cjs.entry.js +1 -1
  24. package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
  25. package/dist/cjs/tet-business-compare-card.cjs.entry.js +1 -1
  26. package/dist/cjs/tet-business-lines.cjs.entry.js +4 -4
  27. package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
  28. package/dist/cjs/tet-button.cjs.entry.js +1 -1
  29. package/dist/cjs/tet-card-list.cjs.entry.js +1 -1
  30. package/dist/cjs/tet-carousel.cjs.entry.js +3 -3
  31. package/dist/cjs/tet-checkbox.cjs.entry.js +1 -1
  32. package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +3 -3
  33. package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
  34. package/dist/cjs/tet-colors.cjs.entry.js +1 -1
  35. package/dist/cjs/tet-compare-card-v2.cjs.entry.js +3 -3
  36. package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
  37. package/dist/cjs/tet-compare-cards_2.cjs.entry.js +3 -3
  38. package/dist/cjs/tet-components.cjs.js +1 -1
  39. package/dist/cjs/tet-contact-form.cjs.entry.js +5 -5
  40. package/dist/cjs/tet-contact-info.cjs.entry.js +1 -1
  41. package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
  42. package/dist/cjs/tet-counter.cjs.entry.js +1 -1
  43. package/dist/cjs/tet-customer-assets.cjs.entry.js +3 -3
  44. package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +1 -1
  45. package/dist/cjs/tet-datepicker.cjs.entry.js +1 -1
  46. package/dist/cjs/tet-dialog.cjs.entry.js +3 -3
  47. package/dist/cjs/tet-display.cjs.entry.js +1 -1
  48. package/dist/cjs/tet-divider.cjs.entry.js +1 -1
  49. package/dist/cjs/tet-dropdown_2.cjs.entry.js +1 -1
  50. package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
  51. package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
  52. package/dist/cjs/tet-expansion-panel.cjs.entry.js +1 -1
  53. package/dist/cjs/tet-feedback-form.cjs.entry.js +3 -3
  54. package/dist/cjs/tet-filter.cjs.entry.js +1 -1
  55. package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
  56. package/dist/cjs/tet-font-weight.cjs.entry.js +1 -1
  57. package/dist/cjs/tet-fonts.cjs.entry.js +1 -1
  58. package/dist/cjs/tet-grid.cjs.entry.js +1 -1
  59. package/dist/cjs/tet-icon.cjs.entry.js +2 -2
  60. package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
  61. package/dist/cjs/tet-input.cjs.entry.js +3 -3
  62. package/dist/cjs/tet-label.cjs.entry.js +3 -3
  63. package/dist/cjs/tet-layout.cjs.entry.js +1 -1
  64. package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
  65. package/dist/cjs/tet-link.cjs.entry.js +1 -1
  66. package/dist/cjs/tet-loader.cjs.entry.js +1 -1
  67. package/dist/cjs/tet-macd-view.cjs.entry.js +6 -6
  68. package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
  69. package/dist/cjs/tet-menu.cjs.entry.js +1 -1
  70. package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +3 -3
  71. package/dist/cjs/tet-navigation-mobile.cjs.entry.js +1 -1
  72. package/dist/cjs/tet-news-card-list.cjs.entry.js +1 -1
  73. package/dist/cjs/tet-notification.cjs.entry.js +1 -1
  74. package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
  75. package/dist/cjs/tet-placeholder.cjs.entry.js +1 -1
  76. package/dist/cjs/tet-position.cjs.entry.js +1 -1
  77. package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
  78. package/dist/cjs/tet-radio.cjs.entry.js +1 -1
  79. package/dist/cjs/tet-range-slider.cjs.entry.js +1 -1
  80. package/dist/cjs/tet-referral.cjs.entry.js +5 -5
  81. package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
  82. package/dist/cjs/tet-snicker-card-badge.cjs.entry.js +1 -1
  83. package/dist/cjs/tet-spacing.cjs.entry.js +1 -1
  84. package/dist/cjs/tet-spinner.cjs.entry.js +1 -1
  85. package/dist/cjs/tet-stepper-input.cjs.entry.js +3 -3
  86. package/dist/cjs/tet-stepper-v2.cjs.entry.js +1 -1
  87. package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
  88. package/dist/cjs/tet-stepper.cjs.entry.js +1 -1
  89. package/dist/cjs/tet-support-search.cjs.entry.js +1 -1
  90. package/dist/cjs/tet-switch.cjs.entry.js +1 -1
  91. package/dist/cjs/tet-tab-header.cjs.entry.js +1 -1
  92. package/dist/cjs/tet-table.cjs.entry.js +1 -1
  93. package/dist/cjs/tet-tag_2.cjs.entry.js +3 -3
  94. package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
  95. package/dist/cjs/tet-text.cjs.entry.js +1 -1
  96. package/dist/cjs/tet-textarea.cjs.entry.js +1 -1
  97. package/dist/cjs/tet-thank-you-view-v2.cjs.entry.js +3 -3
  98. package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
  99. package/dist/cjs/tet-thank-you-view.cjs.entry.js +1 -1
  100. package/dist/cjs/tet-tv-gift-block.cjs.entry.js +1 -1
  101. package/dist/cjs/tet-tv-gift-list.cjs.entry.js +1 -1
  102. package/dist/cjs/{theme-wrapper-46514846.js → theme-wrapper-66880718.js} +2 -2
  103. package/dist/cjs/{translations-89a0ec3d.js → translations-03c9de64.js} +1 -1
  104. package/dist/components/index.js +1 -1
  105. package/dist/components/{p-dd16efb9.js → p-009b6a6d.js} +1 -1
  106. package/dist/components/{p-683362d8.js → p-01b4818f.js} +6 -6
  107. package/dist/components/{p-986d5007.js → p-11ff7db4.js} +1 -1
  108. package/dist/components/{p-659abc43.js → p-15291db7.js} +7 -7
  109. package/dist/components/{p-d72db94e.js → p-16848924.js} +2 -2
  110. package/dist/components/{p-53b12eea.js → p-1e420156.js} +6 -6
  111. package/dist/components/{p-9c9430e6.js → p-230ddf04.js} +2 -2
  112. package/dist/components/{p-b23b7bbf.js → p-24fa458d.js} +2 -2
  113. package/dist/components/{p-aa122c92.js → p-25b93e8f.js} +1 -1
  114. package/dist/components/{p-4965551a.js → p-282e4b8e.js} +4 -4
  115. package/dist/components/{p-7bcc69aa.js → p-2f4e9a2e.js} +1 -1
  116. package/dist/components/{p-9abdf1f3.js → p-304f1a3a.js} +1 -1
  117. package/dist/components/{p-36cd40b1.js → p-343ce4e0.js} +1 -1
  118. package/dist/components/{p-3f09d5b9.js → p-375bf6b0.js} +5 -5
  119. package/dist/components/{p-0025a4e9.js → p-41fcd815.js} +1 -1
  120. package/dist/components/{p-b6841a9b.js → p-44201f97.js} +1 -1
  121. package/dist/components/{p-2a10842f.js → p-44499274.js} +7 -7
  122. package/dist/components/{p-3493f65f.js → p-4468c9e9.js} +1 -1
  123. package/dist/components/{p-5199cad0.js → p-45c1e573.js} +1 -1
  124. package/dist/components/{p-b63af45a.js → p-4a30938a.js} +2 -2
  125. package/dist/components/{p-f973674b.js → p-4b49c861.js} +3 -3
  126. package/dist/components/{p-86309b82.js → p-51fadade.js} +5 -5
  127. package/dist/components/{p-6ae0afae.js → p-5b80ffe4.js} +1 -1
  128. package/dist/components/{p-e8a9eae7.js → p-5c9215f2.js} +1 -1
  129. package/dist/components/{p-5f5b40d1.js → p-5d921b67.js} +3 -3
  130. package/dist/components/{p-0600f2a8.js → p-615017ee.js} +1 -1
  131. package/dist/components/{p-80ce5780.js → p-63222d57.js} +10 -10
  132. package/dist/components/{p-cf7f9e48.js → p-6752cd9a.js} +2 -2
  133. package/dist/components/{p-72dec153.js → p-693062fd.js} +2 -2
  134. package/dist/components/{p-5259f563.js → p-69f42bfd.js} +1 -1
  135. package/dist/components/{p-573a13c2.js → p-6e985592.js} +14 -14
  136. package/dist/components/{p-707df8bb.js → p-7376ae21.js} +3 -3
  137. package/dist/components/{p-3990f3e5.js → p-768628f2.js} +1 -1
  138. package/dist/components/{p-3ff74849.js → p-9175b584.js} +9 -9
  139. package/dist/components/{p-9a0f2cfd.js → p-932a2619.js} +6 -6
  140. package/dist/components/{p-c8cfd2bf.js → p-94fc61ca.js} +1 -1
  141. package/dist/components/{p-ccb2bd11.js → p-9e105d76.js} +7 -7
  142. package/dist/components/{p-b270c5a0.js → p-9e13fa3e.js} +1 -1
  143. package/dist/components/{p-b35077ba.js → p-bb055139.js} +7 -7
  144. package/dist/components/{p-0c71dbc1.js → p-c4058a82.js} +2 -2
  145. package/dist/components/{p-bd9cecff.js → p-c57b7ec3.js} +2 -2
  146. package/dist/components/{p-5bc8e660.js → p-c748017c.js} +1 -1
  147. package/dist/components/{p-c9b8d9b5.js → p-cc43da7a.js} +2 -2
  148. package/dist/components/{p-32ed1082.js → p-cdab27f5.js} +3 -3
  149. package/dist/components/{p-16c3c70b.js → p-d152e22b.js} +3 -3
  150. package/dist/components/{p-584f6222.js → p-d154a0d0.js} +1 -1
  151. package/dist/components/{p-46261374.js → p-d80fe16d.js} +1 -1
  152. package/dist/components/{p-2aeb516c.js → p-d8545e05.js} +3 -3
  153. package/dist/components/{p-a626214b.js → p-d9b4e1dd.js} +10 -10
  154. package/dist/components/{p-c58566bc.js → p-d9fe22e1.js} +2 -2
  155. package/dist/components/{p-bf8ca05f.js → p-db8266bb.js} +2 -2
  156. package/dist/components/{p-20ce6730.js → p-e0d76483.js} +3 -3
  157. package/dist/components/{p-a289a8f3.js → p-e4d4e671.js} +1 -1
  158. package/dist/components/{p-ad7d7e2a.js → p-ea80740b.js} +3 -3
  159. package/dist/components/{p-0545a113.js → p-efd0cb7a.js} +2 -2
  160. package/dist/components/{p-26ffcb52.js → p-f76fad86.js} +1 -1
  161. package/dist/components/{p-5f8ead19.js → p-fa247efc.js} +4 -4
  162. package/dist/components/{p-7333ff31.js → p-fb7ecc9e.js} +1 -1
  163. package/dist/components/tet-accordion.js +1 -1
  164. package/dist/components/tet-address-offers-filters-products.js +1 -1
  165. package/dist/components/tet-address-offers-filters.js +1 -1
  166. package/dist/components/tet-address-offers-view.js +24 -24
  167. package/dist/components/tet-address-offers.js +1 -1
  168. package/dist/components/tet-address-search.js +1 -1
  169. package/dist/components/tet-asset-addresses.js +13 -13
  170. package/dist/components/tet-asset-availability-addresses.js +1 -1
  171. package/dist/components/tet-autocomplete-dropdown.js +5 -5
  172. package/dist/components/tet-autocomplete.js +1 -1
  173. package/dist/components/tet-availability-contact-form.js +1 -1
  174. package/dist/components/tet-b2b-check-out-form.js +1 -1
  175. package/dist/components/tet-b2b-compare-card.js +1 -1
  176. package/dist/components/tet-b2b-configurator-cart.js +1 -1
  177. package/dist/components/tet-b2b-configurator.js +20 -20
  178. package/dist/components/tet-b2b-service-calculator.js +8 -8
  179. package/dist/components/tet-banner-nav.js +3 -3
  180. package/dist/components/tet-bar-graph.js +1 -1
  181. package/dist/components/tet-border-radius.js +1 -1
  182. package/dist/components/tet-business-card.js +1 -1
  183. package/dist/components/tet-business-compare-card.js +3 -3
  184. package/dist/components/tet-business-lines.js +5 -5
  185. package/dist/components/tet-business-navigation.js +1 -1
  186. package/dist/components/tet-business-round-stepper.js +2 -2
  187. package/dist/components/tet-business-summary-card.js +1 -1
  188. package/dist/components/tet-button.js +1 -1
  189. package/dist/components/tet-card-list.js +1 -1
  190. package/dist/components/tet-carousel.js +4 -4
  191. package/dist/components/tet-checkbox.js +1 -1
  192. package/dist/components/tet-cloud-application-form-dialog.js +8 -8
  193. package/dist/components/tet-cloud-configurator.js +12 -12
  194. package/dist/components/tet-colors.js +1 -1
  195. package/dist/components/tet-compare-card-v2.js +9 -9
  196. package/dist/components/tet-compare-card.js +1 -1
  197. package/dist/components/tet-compare-cards-tab.js +16 -16
  198. package/dist/components/tet-compare-cards.js +1 -1
  199. package/dist/components/tet-contact-form.js +9 -9
  200. package/dist/components/tet-contact-info.js +1 -1
  201. package/dist/components/tet-container.js +1 -1
  202. package/dist/components/tet-counter.js +1 -1
  203. package/dist/components/tet-customer-assets.js +9 -9
  204. package/dist/components/tet-datepicker-header.js +1 -1
  205. package/dist/components/tet-datepicker-month-view.js +1 -1
  206. package/dist/components/tet-datepicker-multi-year-view.js +1 -1
  207. package/dist/components/tet-datepicker-year-view.js +1 -1
  208. package/dist/components/tet-datepicker.js +6 -6
  209. package/dist/components/tet-dialog.js +1 -1
  210. package/dist/components/tet-display.js +8 -8
  211. package/dist/components/tet-divider.js +7 -7
  212. package/dist/components/tet-dropdown.js +1 -1
  213. package/dist/components/tet-dynamic-card.js +4 -4
  214. package/dist/components/tet-expandable-input.js +3 -3
  215. package/dist/components/tet-expansion-panel.js +1 -1
  216. package/dist/components/tet-feedback-form.js +7 -7
  217. package/dist/components/tet-filter.js +4 -4
  218. package/dist/components/tet-floating-block.js +3 -3
  219. package/dist/components/tet-font-weight.js +1 -1
  220. package/dist/components/tet-fonts.js +1 -1
  221. package/dist/components/tet-grid.js +1 -1
  222. package/dist/components/tet-icon.js +1 -1
  223. package/dist/components/tet-inline-message.js +2 -2
  224. package/dist/components/tet-input.js +1 -1
  225. package/dist/components/tet-label.js +3 -3
  226. package/dist/components/tet-layout.js +1 -1
  227. package/dist/components/tet-link-card-list.js +3 -3
  228. package/dist/components/tet-link.js +1 -1
  229. package/dist/components/tet-loader.js +1 -1
  230. package/dist/components/tet-macd-view.js +10 -10
  231. package/dist/components/tet-menu-mobile.js +2 -2
  232. package/dist/components/tet-menu.js +2 -2
  233. package/dist/components/tet-multi-step-dialog.js +5 -5
  234. package/dist/components/tet-navigation-mobile.js +2 -2
  235. package/dist/components/tet-news-card-list.js +4 -4
  236. package/dist/components/tet-notification.js +1 -1
  237. package/dist/components/tet-number-input.js +1 -1
  238. package/dist/components/tet-placeholder.js +1 -1
  239. package/dist/components/tet-position.js +7 -7
  240. package/dist/components/tet-price-view.js +1 -1
  241. package/dist/components/tet-radio.js +1 -1
  242. package/dist/components/tet-range-slider.js +1 -1
  243. package/dist/components/tet-referral.js +6 -6
  244. package/dist/components/tet-round-stepper.js +2 -2
  245. package/dist/components/tet-selection-list.js +1 -1
  246. package/dist/components/tet-snicker-card-badge.js +1 -1
  247. package/dist/components/tet-spacing.js +1 -1
  248. package/dist/components/tet-spinner.js +1 -1
  249. package/dist/components/tet-stepper-input.js +1 -1
  250. package/dist/components/tet-stepper-v2.js +1 -1
  251. package/dist/components/tet-stepper-v3.js +1 -1
  252. package/dist/components/tet-stepper.js +1 -1
  253. package/dist/components/tet-support-search.js +7 -7
  254. package/dist/components/tet-switch.js +1 -1
  255. package/dist/components/tet-tab-content.js +1 -1
  256. package/dist/components/tet-tab-header.js +1 -1
  257. package/dist/components/tet-table.js +3 -3
  258. package/dist/components/tet-tag-group.js +1 -1
  259. package/dist/components/tet-tag.js +1 -1
  260. package/dist/components/tet-text-list.js +1 -1
  261. package/dist/components/tet-text.js +7 -7
  262. package/dist/components/tet-textarea.js +1 -1
  263. package/dist/components/tet-thank-you-view-v2.js +5 -5
  264. package/dist/components/tet-thank-you-view-v3.js +5 -5
  265. package/dist/components/tet-thank-you-view.js +4 -4
  266. package/dist/components/tet-tooltip.js +1 -1
  267. package/dist/components/tet-tv-gift-block.js +1 -1
  268. package/dist/components/tet-tv-gift-list.js +2 -2
  269. package/dist/esm/{address-20e2d850.js → address-1e0810e7.js} +1 -1
  270. package/dist/esm/{assets-894007df.js → assets-e1349520.js} +1 -1
  271. package/dist/esm/{async-request-ae1056de.js → async-request-4c945e13.js} +1 -1
  272. package/dist/esm/{http-codes-cf0086d4.js → http-codes-1927ea00.js} +1 -1
  273. package/dist/esm/{index-e3209c56.js → index-412df137.js} +1 -1
  274. package/dist/esm/{index-e933a7d2.js → index-aac31bd2.js} +1 -1
  275. package/dist/esm/loader.js +2 -2
  276. package/dist/esm/{phone-62660137.js → phone-1a920c5c.js} +2 -2
  277. package/dist/esm/{product-comparison-cb8955f6.js → product-comparison-dd90c721.js} +1 -1
  278. package/dist/esm/tet-accordion.entry.js +1 -1
  279. package/dist/esm/tet-address-offers-filters-products_2.entry.js +3 -3
  280. package/dist/esm/tet-address-offers-view.entry.js +3 -3
  281. package/dist/esm/tet-address-offers_4.entry.js +7 -7
  282. package/dist/esm/tet-address-search.entry.js +4 -4
  283. package/dist/esm/tet-asset-addresses.entry.js +3 -3
  284. package/dist/esm/tet-autocomplete-dropdown.entry.js +1 -1
  285. package/dist/esm/tet-autocomplete.entry.js +1 -1
  286. package/dist/esm/tet-b2b-check-out-form_5.entry.js +3 -3
  287. package/dist/esm/tet-b2b-configurator.entry.js +4 -4
  288. package/dist/esm/tet-b2b-service-calculator.entry.js +3 -3
  289. package/dist/esm/tet-banner-nav.entry.js +3 -3
  290. package/dist/esm/tet-bar-graph.entry.js +1 -1
  291. package/dist/esm/tet-border-radius.entry.js +1 -1
  292. package/dist/esm/tet-business-card.entry.js +1 -1
  293. package/dist/esm/tet-business-compare-card.entry.js +1 -1
  294. package/dist/esm/tet-business-lines.entry.js +4 -4
  295. package/dist/esm/tet-business-round-stepper.entry.js +1 -1
  296. package/dist/esm/tet-button.entry.js +1 -1
  297. package/dist/esm/tet-card-list.entry.js +1 -1
  298. package/dist/esm/tet-carousel.entry.js +3 -3
  299. package/dist/esm/tet-checkbox.entry.js +1 -1
  300. package/dist/esm/tet-cloud-application-form-dialog.entry.js +3 -3
  301. package/dist/esm/tet-cloud-configurator.entry.js +3 -3
  302. package/dist/esm/tet-colors.entry.js +1 -1
  303. package/dist/esm/tet-compare-card-v2.entry.js +3 -3
  304. package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
  305. package/dist/esm/tet-compare-cards_2.entry.js +3 -3
  306. package/dist/esm/tet-components.js +2 -2
  307. package/dist/esm/tet-contact-form.entry.js +5 -5
  308. package/dist/esm/tet-contact-info.entry.js +1 -1
  309. package/dist/esm/tet-container_2.entry.js +1 -1
  310. package/dist/esm/tet-counter.entry.js +1 -1
  311. package/dist/esm/tet-customer-assets.entry.js +3 -3
  312. package/dist/esm/tet-datepicker-header_4.entry.js +1 -1
  313. package/dist/esm/tet-datepicker.entry.js +1 -1
  314. package/dist/esm/tet-dialog.entry.js +3 -3
  315. package/dist/esm/tet-display.entry.js +1 -1
  316. package/dist/esm/tet-divider.entry.js +1 -1
  317. package/dist/esm/tet-dropdown_2.entry.js +1 -1
  318. package/dist/esm/tet-dynamic-card.entry.js +1 -1
  319. package/dist/esm/tet-expandable-input.entry.js +1 -1
  320. package/dist/esm/tet-expansion-panel.entry.js +1 -1
  321. package/dist/esm/tet-feedback-form.entry.js +3 -3
  322. package/dist/esm/tet-filter.entry.js +1 -1
  323. package/dist/esm/tet-floating-block.entry.js +1 -1
  324. package/dist/esm/tet-font-weight.entry.js +1 -1
  325. package/dist/esm/tet-fonts.entry.js +1 -1
  326. package/dist/esm/tet-grid.entry.js +1 -1
  327. package/dist/esm/tet-icon.entry.js +2 -2
  328. package/dist/esm/tet-inline-message.entry.js +1 -1
  329. package/dist/esm/tet-input.entry.js +3 -3
  330. package/dist/esm/tet-label.entry.js +3 -3
  331. package/dist/esm/tet-layout.entry.js +1 -1
  332. package/dist/esm/tet-link-card-list.entry.js +1 -1
  333. package/dist/esm/tet-link.entry.js +1 -1
  334. package/dist/esm/tet-loader.entry.js +1 -1
  335. package/dist/esm/tet-macd-view.entry.js +6 -6
  336. package/dist/esm/tet-menu-mobile.entry.js +1 -1
  337. package/dist/esm/tet-menu.entry.js +1 -1
  338. package/dist/esm/tet-multi-step-dialog.entry.js +3 -3
  339. package/dist/esm/tet-navigation-mobile.entry.js +1 -1
  340. package/dist/esm/tet-news-card-list.entry.js +1 -1
  341. package/dist/esm/tet-notification.entry.js +1 -1
  342. package/dist/esm/tet-number-input.entry.js +1 -1
  343. package/dist/esm/tet-placeholder.entry.js +1 -1
  344. package/dist/esm/tet-position.entry.js +1 -1
  345. package/dist/esm/tet-price-view.entry.js +1 -1
  346. package/dist/esm/tet-radio.entry.js +1 -1
  347. package/dist/esm/tet-range-slider.entry.js +1 -1
  348. package/dist/esm/tet-referral.entry.js +5 -5
  349. package/dist/esm/tet-round-stepper.entry.js +1 -1
  350. package/dist/esm/tet-snicker-card-badge.entry.js +1 -1
  351. package/dist/esm/tet-spacing.entry.js +1 -1
  352. package/dist/esm/tet-spinner.entry.js +1 -1
  353. package/dist/esm/tet-stepper-input.entry.js +3 -3
  354. package/dist/esm/tet-stepper-v2.entry.js +1 -1
  355. package/dist/esm/tet-stepper-v3.entry.js +1 -1
  356. package/dist/esm/tet-stepper.entry.js +1 -1
  357. package/dist/esm/tet-support-search.entry.js +1 -1
  358. package/dist/esm/tet-switch.entry.js +1 -1
  359. package/dist/esm/tet-tab-header.entry.js +1 -1
  360. package/dist/esm/tet-table.entry.js +1 -1
  361. package/dist/esm/tet-tag_2.entry.js +3 -3
  362. package/dist/esm/tet-text-list.entry.js +1 -1
  363. package/dist/esm/tet-text.entry.js +1 -1
  364. package/dist/esm/tet-textarea.entry.js +1 -1
  365. package/dist/esm/tet-thank-you-view-v2.entry.js +3 -3
  366. package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
  367. package/dist/esm/tet-thank-you-view.entry.js +1 -1
  368. package/dist/esm/tet-tv-gift-block.entry.js +1 -1
  369. package/dist/esm/tet-tv-gift-list.entry.js +1 -1
  370. package/dist/esm/{theme-wrapper-cf4d7d54.js → theme-wrapper-72d0b9da.js} +2 -2
  371. package/dist/esm/{translations-e60db8fd.js → translations-4712c45f.js} +1 -1
  372. package/dist/tet-components/{p-27a27a6f.entry.js → p-00e4bbed.entry.js} +1 -1
  373. package/dist/tet-components/{p-71783e88.entry.js → p-0a0ef3e5.entry.js} +1 -1
  374. package/dist/tet-components/{p-c9ddf890.js → p-0c6b6730.js} +1 -1
  375. package/dist/tet-components/{p-af86e2dc.entry.js → p-0d5562a1.entry.js} +1 -1
  376. package/dist/tet-components/{p-726651bc.js → p-0ebbf5ef.js} +1 -1
  377. package/dist/tet-components/{p-8b93b91f.entry.js → p-10e72480.entry.js} +1 -1
  378. package/dist/tet-components/{p-548d7cc1.entry.js → p-122f3d3c.entry.js} +1 -1
  379. package/dist/tet-components/{p-188169cd.entry.js → p-138f38c7.entry.js} +1 -1
  380. package/dist/tet-components/{p-7ee7b3d9.entry.js → p-146ba37b.entry.js} +1 -1
  381. package/dist/tet-components/{p-4467148d.entry.js → p-1684c365.entry.js} +1 -1
  382. package/dist/tet-components/{p-1d35f1d4.entry.js → p-1a05235c.entry.js} +1 -1
  383. package/dist/tet-components/{p-ef84df23.entry.js → p-1d0c3563.entry.js} +1 -1
  384. package/dist/tet-components/{p-53d710a2.entry.js → p-1d869ac9.entry.js} +1 -1
  385. package/dist/tet-components/{p-b92dff8a.js → p-1fd2adaf.js} +1 -1
  386. package/dist/tet-components/{p-1b4da160.entry.js → p-204aece3.entry.js} +1 -1
  387. package/dist/tet-components/{p-f9c98275.entry.js → p-2328b1d4.entry.js} +1 -1
  388. package/dist/tet-components/{p-576aac54.entry.js → p-246e928d.entry.js} +1 -1
  389. package/dist/tet-components/{p-125ceadf.entry.js → p-24aa7746.entry.js} +1 -1
  390. package/dist/tet-components/{p-12f975ff.entry.js → p-26b112a2.entry.js} +1 -1
  391. package/dist/tet-components/{p-efc8d952.entry.js → p-2738fbb7.entry.js} +1 -1
  392. package/dist/tet-components/{p-9bc92020.entry.js → p-28c2c41e.entry.js} +1 -1
  393. package/dist/tet-components/{p-14c15a69.entry.js → p-2a43ccef.entry.js} +1 -1
  394. package/dist/tet-components/{p-ca43526e.entry.js → p-2b9f02a6.entry.js} +1 -1
  395. package/dist/tet-components/{p-6ffacde3.entry.js → p-32ece6e1.entry.js} +1 -1
  396. package/dist/tet-components/{p-c65385bd.entry.js → p-3597d8eb.entry.js} +1 -1
  397. package/dist/tet-components/{p-d3db997e.entry.js → p-39796998.entry.js} +1 -1
  398. package/dist/tet-components/{p-593f9520.entry.js → p-3da70dcb.entry.js} +1 -1
  399. package/dist/tet-components/{p-23c58fed.entry.js → p-3dd5bcd1.entry.js} +1 -1
  400. package/dist/tet-components/{p-fc04e584.entry.js → p-3df72501.entry.js} +1 -1
  401. package/dist/tet-components/{p-3b5e9fed.entry.js → p-3fc6a020.entry.js} +1 -1
  402. package/dist/tet-components/{p-8cdad878.entry.js → p-44e16c45.entry.js} +1 -1
  403. package/dist/tet-components/{p-346342a2.entry.js → p-46260b0a.entry.js} +1 -1
  404. package/dist/tet-components/{p-73c190a2.entry.js → p-46975ec4.entry.js} +1 -1
  405. package/dist/tet-components/{p-e35d7379.entry.js → p-478504f0.entry.js} +1 -1
  406. package/dist/tet-components/{p-95fbc38f.entry.js → p-494ec83f.entry.js} +1 -1
  407. package/dist/tet-components/{p-1e672d5b.entry.js → p-52928872.entry.js} +1 -1
  408. package/dist/tet-components/{p-0bf60061.entry.js → p-5391d594.entry.js} +1 -1
  409. package/dist/tet-components/{p-59007fe7.entry.js → p-5845a3dc.entry.js} +1 -1
  410. package/dist/tet-components/{p-8adc0ab3.entry.js → p-5a8bb28d.entry.js} +1 -1
  411. package/dist/tet-components/{p-a9d2c4cb.entry.js → p-605819c0.entry.js} +1 -1
  412. package/dist/tet-components/{p-5f330fa1.entry.js → p-6085d12c.entry.js} +1 -1
  413. package/dist/tet-components/{p-54280bef.entry.js → p-6488e1aa.entry.js} +1 -1
  414. package/dist/tet-components/{p-d5945e9c.entry.js → p-65a5a641.entry.js} +1 -1
  415. package/dist/tet-components/{p-54750b41.entry.js → p-6640322b.entry.js} +1 -1
  416. package/dist/tet-components/{p-49402f08.entry.js → p-69c708ab.entry.js} +1 -1
  417. package/dist/tet-components/{p-56813f4c.entry.js → p-6b41cba6.entry.js} +1 -1
  418. package/dist/tet-components/{p-575b5351.entry.js → p-6e84cc69.entry.js} +1 -1
  419. package/dist/tet-components/{p-31d0b400.entry.js → p-7056a120.entry.js} +1 -1
  420. package/dist/tet-components/{p-581b1f01.entry.js → p-71018cb8.entry.js} +1 -1
  421. package/dist/tet-components/{p-b39df477.js → p-7544dfd7.js} +1 -1
  422. package/dist/tet-components/{p-6fb8c506.entry.js → p-76526271.entry.js} +1 -1
  423. package/dist/tet-components/{p-5562d01c.entry.js → p-772e8399.entry.js} +1 -1
  424. package/dist/tet-components/{p-3ac57578.js → p-778c46a6.js} +1 -1
  425. package/dist/tet-components/{p-8d0c5a09.entry.js → p-79e04dec.entry.js} +1 -1
  426. package/dist/tet-components/{p-127b2895.entry.js → p-7a3c1254.entry.js} +1 -1
  427. package/dist/tet-components/{p-869f802c.entry.js → p-7b6166c7.entry.js} +1 -1
  428. package/dist/tet-components/{p-4d935fc8.entry.js → p-7c7fb42f.entry.js} +1 -1
  429. package/dist/tet-components/{p-5abb3bea.js → p-83f43fdd.js} +1 -1
  430. package/dist/tet-components/{p-63c6bd0e.entry.js → p-85c30ecd.entry.js} +1 -1
  431. package/dist/tet-components/{p-b468a922.entry.js → p-872bbccf.entry.js} +1 -1
  432. package/dist/tet-components/{p-63f6def9.entry.js → p-8bfd498e.entry.js} +1 -1
  433. package/dist/tet-components/{p-98896fce.entry.js → p-9932402a.entry.js} +1 -1
  434. package/dist/tet-components/{p-b4b90473.entry.js → p-9c837569.entry.js} +1 -1
  435. package/dist/tet-components/{p-72e93e4c.entry.js → p-a20ff530.entry.js} +1 -1
  436. package/dist/tet-components/{p-bbc96f81.entry.js → p-a434af0f.entry.js} +1 -1
  437. package/dist/tet-components/{p-e74416dc.entry.js → p-a64e3e96.entry.js} +1 -1
  438. package/dist/tet-components/{p-6e57defa.entry.js → p-a6cb4dcb.entry.js} +1 -1
  439. package/dist/tet-components/{p-0cbaaeef.entry.js → p-a7b563a4.entry.js} +1 -1
  440. package/dist/tet-components/{p-a476fd02.js → p-a8051a99.js} +1 -1
  441. package/dist/tet-components/{p-6cf6894d.entry.js → p-ae8ff573.entry.js} +1 -1
  442. package/dist/tet-components/{p-c9583427.entry.js → p-b34e86ef.entry.js} +1 -1
  443. package/dist/tet-components/{p-d028d7c4.entry.js → p-b4ecbc40.entry.js} +1 -1
  444. package/dist/tet-components/{p-1f5ed76c.entry.js → p-bcca51cc.entry.js} +1 -1
  445. package/dist/tet-components/{p-24df18b9.entry.js → p-be3a10d0.entry.js} +1 -1
  446. package/dist/tet-components/{p-a99c273f.entry.js → p-beb84ada.entry.js} +1 -1
  447. package/dist/tet-components/{p-a7cf9c43.entry.js → p-bf0241a1.entry.js} +1 -1
  448. package/dist/tet-components/{p-6c6cd148.entry.js → p-c10d5369.entry.js} +1 -1
  449. package/dist/tet-components/{p-206b137f.entry.js → p-c188b94f.entry.js} +1 -1
  450. package/dist/tet-components/{p-4b287640.entry.js → p-c490726d.entry.js} +1 -1
  451. package/dist/tet-components/{p-0ff24bbc.entry.js → p-c7611f0e.entry.js} +1 -1
  452. package/dist/tet-components/{p-5c98ce7f.entry.js → p-c89fb3e6.entry.js} +1 -1
  453. package/dist/tet-components/{p-97a4e6d0.entry.js → p-c8c0f6d3.entry.js} +1 -1
  454. package/dist/tet-components/{p-ec5b1040.entry.js → p-c9f21fde.entry.js} +1 -1
  455. package/dist/tet-components/{p-60abca86.entry.js → p-cde8057a.entry.js} +1 -1
  456. package/dist/tet-components/{p-b2c138f0.entry.js → p-ce4b6943.entry.js} +1 -1
  457. package/dist/tet-components/{p-589e8e4b.entry.js → p-ce850061.entry.js} +1 -1
  458. package/dist/tet-components/{p-6c292a03.entry.js → p-cf6effb9.entry.js} +1 -1
  459. package/dist/tet-components/{p-37d43e7a.entry.js → p-d26b07b0.entry.js} +1 -1
  460. package/dist/tet-components/{p-2dbe670c.js → p-d8518d4b.js} +1 -1
  461. package/dist/tet-components/{p-9c263933.entry.js → p-da0fc55d.entry.js} +1 -1
  462. package/dist/tet-components/{p-c77a6f82.entry.js → p-dd15ca19.entry.js} +1 -1
  463. package/dist/tet-components/{p-fd5db2e4.entry.js → p-e52ac94d.entry.js} +1 -1
  464. package/dist/tet-components/{p-9bd457d2.entry.js → p-f16514db.entry.js} +1 -1
  465. package/dist/tet-components/{p-f3fc1267.entry.js → p-f24fc678.entry.js} +1 -1
  466. package/dist/tet-components/{p-8fae4e03.entry.js → p-f5d4d8c8.entry.js} +1 -1
  467. package/dist/tet-components/{p-b22de340.entry.js → p-f68450a4.entry.js} +1 -1
  468. package/dist/tet-components/{p-265701de.entry.js → p-f6916bfc.entry.js} +1 -1
  469. package/dist/tet-components/{p-66c1854f.entry.js → p-f6a15afa.entry.js} +1 -1
  470. package/dist/tet-components/{p-4213c1d1.js → p-f81b3bb0.js} +1 -1
  471. package/dist/tet-components/p-f81d95ae.js +1 -0
  472. package/dist/tet-components/{p-87b6fe17.entry.js → p-f8eca59c.entry.js} +1 -1
  473. package/dist/tet-components/tet-components.esm.js +1 -1
  474. package/package.json +1 -1
  475. package/dist/tet-components/p-660bdc27.js +0 -1
@@ -1 +1 @@
1
- import{r as t,f as e,h as o,H as i}from"./p-5abb3bea.js";import{p as n,t as s}from"./p-a476fd02.js";import"./p-9a2b6ee2.js";import"./p-726651bc.js";const r=class{constructor(e){t(this,e),this.activeDotIndex=0,this.dotCount=0,this.totalItems=0,this.activeItem=0,this.isDragging=!1,this.dragOffset=0,this.isNudgeAnimating=!1,this.theme="light",this.showDots=!0,this.showGradient=!1,this.showButtons=!0,this.transitionDuration=500,this.swipeThreshold=32,this.transitionTiming="ease-out",this.buttonIconLeft="arrow-left",this.buttonIconRight="arrow-right",this.maxDots=8,this.label=void 0,this.nudgeAnimationInterval=0,this.language="lv"}static NUDGE_DISTANCE_PX=16;static NUDGE_IDLE_THRESHOLD_MS=1500;static GRADIENT_VISIBILITY_THRESHOLD_PX=1;static EDGE_DRAG_MAX_PX=32;static EDGE_DRAG_RESISTANCE=.95;static MOUSE_DRAG_SMOOTHING_MS=60;focusableSelector='a[href], [tabindex]:not([tabindex="-1"])';handleResize=()=>{this.getDotCount();const t=this.getSlotElements();if(!t?.length)return;const e=Math.max(0,Math.min(this.activeItem,t.length-1));this.moveToItem(t[e],e),this.checkGradient()};handleSlotChangeListener=()=>this.handleSlotChange();managedFocusableElements=[];managedSlideFocusWithinListeners=[];draggedAnchor=null;dragMoved=!1;dragPointerStartX=0;dragStartX=0;dragStartActiveItem=0;dragPointerType="";nudgeTimeoutId;nudgeGradientRafId;lastInteractionAt=0;trackElement=null;trackContentElement=null;mobileBackButtonWrapper=null;container;leftGradientRef;rightGradientRef;slotObserver;safeForceUpdate(){try{e(this)}catch{}}syncTranslations(t){n("tet-components",t).then((()=>this.safeForceUpdate()))}onLanguageChange(t){this.syncTranslations(t)}onActiveItemChange(){this.updateSlideFocusableTabIndexes()}checkGradient(){if(this.showGradient){const t=this.getViewportWidth(),e=this.getSlotClientWidth(),o=Math.max(0,e-t),i=-this.getRealDragOffset(),n=Math.max(0,Math.min(o,i)),s=o-n<r.GRADIENT_VISIBILITY_THRESHOLD_PX;n<r.GRADIENT_VISIBILITY_THRESHOLD_PX?(this.leftGradientRef.style.opacity="0",this.rightGradientRef.style.opacity="1"):s?(this.leftGradientRef.style.opacity="1",this.rightGradientRef.style.opacity="0"):(this.leftGradientRef.style.opacity="1",this.rightGradientRef.style.opacity="1")}else this.leftGradientRef.style.opacity="0",this.rightGradientRef.style.opacity="0"}onNudgeAnimIntervalChange(){this.syncNudgeSchedule()}onNudgeAnimationStateChange(){this.syncNudgeGradientLoop(),this.checkGradient()}componentWillLoad(){this.syncTranslations(this.language)}getSlotElements(){const t=this.container?.querySelector("slot");if(!t)return;let e=t.assignedElements?t.assignedElements():[];return 0!==e.length?(e[0].className.includes("carousel-wrapper")&&(e=Array.from(e[0].children)),e):void 0}getViewportWidth(){return this.container?.offsetWidth||window.innerWidth}getSlotClientWidth(){return this.trackElement?.querySelector("slot")?.offsetWidth||window.innerWidth}getMaxScrollableOffset(){return Math.max(0,this.getSlotClientWidth()-this.getViewportWidth())}afterLayout(t){requestAnimationFrame((()=>requestAnimationFrame(t)))}getDotScreenLength(){return this.getSlotClientWidth()/this.dotCount}isLast(t,e){return this.getSlotClientWidth()-e<=t}isLastViewport(t){const e=this.getViewportWidth();return this.isLast(e,t)}isLastDotScreen(t,e){const o=this.getViewportWidth(),i=Math.max(e,o);return this.isLast(i,t)}getItemLayoutMetrics(){const t=this.getSlotElements();return t&&0!==t.length?t.map(((t,e)=>{const o=t.offsetLeft;return{item:t,index:e,left:o,right:o+t.offsetWidth}})):[]}getFullyVisibleItemCount(){const t=this.getItemLayoutMetrics();if(!t.length)return 0;const e=this.getViewportWidth(),o=Math.abs(this.dragOffset),i=o+e;let n=0;for(const{left:e,right:s}of t)e>=o&&s<=i&&n++;return n}getVisibleItemCountFromIndex(t){const e=this.getItemLayoutMetrics();if(!e.length)return 1;const o=Math.max(0,Math.min(t,e.length-1)),i=this.getViewportWidth(),n=e[o].left+i+.5;let s=0;for(let t=o;t<e.length&&e[t].right<=n;t++)s++;return Math.max(1,s)}getFirstVisibleItemInViewport(){const t=this.getItemLayoutMetrics();if(!t.length)return null;const e=Math.abs(this.dragOffset),o=.5,i=t.find((t=>t.left<=e+o&&t.right>e+o));if(i){if(i.right-e>=(i.right-i.left)/2||i.index===t.length-1)return{item:i.item,index:i.index};const o=t[i.index+1];if(o)return{item:o.item,index:o.index}}if(e<=t[0].left+o)return{item:t[0].item,index:t[0].index};const n=t.find((t=>t.left>e+o));if(n)return{item:n.item,index:n.index};const s=t.at(-1);return{item:s.item,index:s.index}}getEdgeSnapTarget(t){const e=this.getItemLayoutMetrics();if(!e.length)return null;const o=Math.abs(this.dragOffset),i=o+this.getViewportWidth(),n=e[0],s=e.at(-1);if(t<0){const t=Math.min(n.right,i)-Math.max(n.left,o);if(t>0&&t>=(n.right-n.left)/2)return{item:n.item,index:n.index}}if(t>0){const t=Math.min(s.right,i)-Math.max(s.left,o);if(t>0&&t>=(s.right-s.left)/2)return{item:s.item,index:s.index}}return null}getSwipeTarget(t){const e=this.getSlotElements();if(!e||0===e.length)return null;const o=this.getEdgeSnapTarget(t);if(o)return o;const i=this.getFirstVisibleItemInViewport();let n=i?.index??this.dragStartActiveItem;t>0&&n<=this.dragStartActiveItem&&(n=this.dragStartActiveItem+1),t<0&&n>=this.dragStartActiveItem&&(n=this.dragStartActiveItem-1),n=Math.max(0,Math.min(e.length-1,n));const s=e[n];return s?{item:s,index:n}:null}getRealDragOffset(){return this.dragOffset+this.getCurrentNudgeTranslateX()}applyEdgeDragResistance(t,e){return t>0?Math.min(r.EDGE_DRAG_MAX_PX,t*r.EDGE_DRAG_RESISTANCE):t<e?e+Math.max(-r.EDGE_DRAG_MAX_PX,(t-e)*r.EDGE_DRAG_RESISTANCE):t}getCurrentNudgeTranslateX(){if(!this.isNudgeAnimating||!this.trackContentElement)return 0;const t=getComputedStyle(this.trackContentElement).transform;if(!t||"none"===t)return 0;try{return new DOMMatrixReadOnly(t).m41||0}catch{return 0}}getDotCount(){const t=this.getSlotElements();if(!t)return this.dotCount=1,this.totalItems=0,void(this.activeDotIndex=0);this.totalItems=t.length;const e=this.getViewportWidth(),o=this.getSlotClientWidth(),i=Math.ceil(o/Math.max(1,e)),n=Number.isFinite(this.maxDots)?this.maxDots:i;this.dotCount=Math.max(1,Math.min(n,i)),this.activeDotIndex=this.clampDotIndex(this.activeDotIndex)}handleMove=()=>{const t=this.getSlotElements();if(!t)return;const e=t[this.activeItem];e&&this.moveToItem(e)};navigateByStep(t){this.registerUserInteraction();const e=this.getSlotElements();if(!e||0===e.length)return;const o=this.activeDotIndex,i=this.getFirstVisibleItemInViewport(),n=i?.index??this.activeItem,s=this.getVisibleItemCountFromIndex(n),r=Math.max(0,Math.min(e.length-1,n+t*s));if(r===n)return;const a=e[r];a&&(this.moveToItem(a,r),Math.abs(this.activeDotIndex-o)>1&&this.moveToDotIndex(o+t))}handlePrev=()=>{this.navigateByStep(-1)};handleNext=()=>{this.navigateByStep(1)};moveToLastScreen=()=>{const t=this.getViewportWidth(),e=this.getSlotClientWidth();this.dragOffset=-(e-t)};calculateGradient(t,e){const o=this.getSlotClientWidth();let i=this.showGradient?160:0;return i=e<160?e:i,i=o-e-t.offsetWidth<160?0:i,i}calcLastScreenElement=t=>{const e=this.getSlotElements();if(!e)return null;const o=this.trackElement.getBoundingClientRect();for(const[i,n]of e.entries()){let e=n.getBoundingClientRect().left-o.left;const s=this.calculateGradient(n,e);if(e>=t-this.swipeThreshold+s)return{item:n,index:i}}return{item:e[0],index:0}};moveToDotIndex(t){this.activeDotIndex=this.clampDotIndex(t);const e=this.getMaxScrollableOffset(),o=this.dotCount-1!==this.activeDotIndex||this.isDragging?this.activeDotIndex*this.getDotScreenLength():e,i=Math.max(0,Math.min(o,e)),n=this.calcLastScreenElement(i);if(!n)return this.activeItem=0,void(this.dragOffset=0);const{index:s}=n;this.activeItem=s,this.dragOffset=-i}handleDotClick=t=>{this.registerUserInteraction(),this.moveToDotIndex(t)};focusDot=t=>{if(!this.container)return;const e=Array.from(this.container.querySelectorAll(".tet-carousel__dot"));e[t]?.focus()};getKeyboardTargetIndex(t,e,o){if(o<1)return null;switch(t){case"ArrowRight":case"ArrowDown":return Math.min(o,e+1);case"ArrowLeft":case"ArrowUp":return Math.max(0,e-1);case"Home":return 0;case"End":return o;default:return null}}handleNavigationKeyDown(t,e,o,i,n){const s=this.getKeyboardTargetIndex(t.key,e,o);null!==s&&(t.preventDefault(),t.stopPropagation(),i(s)&&this.afterLayout((()=>n(s))))}handleDotKeyDown=(t,e)=>{if("Tab"===t.key&&t.shiftKey){if(this.hasVisibleMobileBackButtonTarget())return;return this.registerUserInteraction(),t.preventDefault(),t.stopPropagation(),void this.afterLayout((()=>this.focusSlideByIndex(this.activeItem)))}this.handleNavigationKeyDown(t,e,this.dotCount-1,(t=>(this.handleDotClick(t),!0)),(t=>this.focusDot(t)))};isElementVisible(t){if(!t.isConnected)return!1;if(t.hidden||t.hasAttribute("hidden"))return!1;if(0===t.getClientRects().length)return!1;const e=getComputedStyle(t);return"none"!==e.display&&"hidden"!==e.visibility}hasVisibleMobileBackButtonTarget(){if(this.isLeftNavigationDisabled())return!1;const t=this.mobileBackButtonWrapper;return!!t&&this.isElementVisible(t)}onPointerDown=t=>{this.registerUserInteraction(),this.dragPointerType=t.pointerType||"mouse",t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this.isDragging=!0,this.dragStartX=t.screenX,this.dragMoved=!1,this.dragPointerStartX=t.screenX,this.dragStartActiveItem=this.activeItem,document.body.style.userSelect="none",document.addEventListener("pointermove",this.onPointerMove),document.addEventListener("pointerup",this.onPointerUp),document.addEventListener("pointercancel",this.onPointerUp);let e=t.target;for(this.draggedAnchor=null;e;){if("A"===e.tagName||e.getAttribute("tabindex")){this.draggedAnchor=e;break}e=e.parentElement}};onPointerMove=t=>{if(!this.isDragging)return;const e=Math.abs(t.screenX-this.dragPointerStartX);if(!this.dragMoved&&e>5&&(this.dragMoved=!0,this.trackElement))try{this.trackElement.setPointerCapture?.(t.pointerId)}catch{}let o=this.dragOffset;o+=t.screenX-this.dragStartX,this.dragStartX=t.screenX;const i=this.getViewportWidth(),n=this.getSlotClientWidth();this.dragOffset=this.applyEdgeDragResistance(o,-(n-i));const s=this.getFirstVisibleItemInViewport();s&&this.activeItem!==s.index&&(this.activeItem=s.index)};releaseTrackPointerCapture(t){try{this.trackElement?.releasePointerCapture?.(t)}catch{}}getMinDragOffset(){const t=this.getViewportWidth();return-(this.getSlotClientWidth()-t)}snapToEdge(t){const e=this.dragOffset>0;this.activeItem=e?0:Math.max(0,this.totalItems-1),this.activeDotIndex=e?0:Math.max(0,this.dotCount-1),this.dragOffset=e?0:t}moveBySwipeDelta(t){if(Math.abs(t)<=this.swipeThreshold)return this.activeItem=this.dragStartActiveItem,void this.afterLayout((()=>this.handleMove()));const e=this.getSwipeTarget(t<0?1:-1);e&&this.moveToItem(e.item,e.index)}finalizePointerDrag(){document.body.style.userSelect="",document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp),this.dragPointerType=""}preventClickAfterDrag(){if(!this.draggedAnchor||!this.dragMoved)return;const t=e=>{e.preventDefault(),e.stopPropagation(),this.draggedAnchor?.removeEventListener("click",t,!0)};this.draggedAnchor.addEventListener("click",t,!0)}onPointerUp=t=>{if(!this.isDragging)return;this.registerUserInteraction(),this.releaseTrackPointerCapture(t.pointerId),this.isDragging=!1;const e=this.getMinDragOffset(),o=t.screenX-this.dragPointerStartX;this.dragOffset>0||this.dragOffset<e?this.snapToEdge(e):this.moveBySwipeDelta(o),this.finalizePointerDrag(),this.preventClickAfterDrag()};_showButtons(t=this.getFullyVisibleItemCount()){return!(!this.showButtons||t>=this.totalItems)}_showDots(t=this.getFullyVisibleItemCount()){return!!this.showDots&&!(this.totalItems<=0||t>=this.totalItems)}componentDidLoad(){this.getDotCount(),window.addEventListener("resize",this.handleResize),this.checkGradient(),this.initSlotListeners(),this.syncNudgeSchedule(),this.refreshSlideFocusableElements()}handleSlotChange(){this.getDotCount();const t=Math.max(0,this.totalItems-1);this.activeItem=Math.max(0,Math.min(this.activeItem,t)),this.refreshSlideFocusableElements(),this.checkGradient(),this.safeForceUpdate()}initSlotListeners(){const t=this.container?.querySelector("slot");if(!t)return;if(t.addEventListener("slotchange",this.handleSlotChangeListener),"function"!=typeof t.assignedElements)return;const e=t.assignedElements();if(1!==e.length)return;const o=e[0];this.slotObserver=new MutationObserver((()=>this.handleSlotChange())),this.slotObserver.observe(o,{childList:!0,subtree:!1})}isTabbableElement(t){if("A"===t.tagName)return t.hasAttribute("href");const e=t.getAttribute("tabindex");return null!==e&&"-1"!==e.trim()}getSlideFocusableElements(t){const e=new Set;return this.isTabbableElement(t)&&e.add(t),Array.from(t.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),t.shadowRoot&&Array.from(t.shadowRoot.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),Array.from(e)}clearManagedSlideFocusableElements(){this.managedSlideFocusWithinListeners.forEach((({slide:t,onFocusWithin:e})=>{t.removeEventListener("focusin",e)})),this.managedSlideFocusWithinListeners=[],this.managedFocusableElements.forEach((({element:t,originalTabIndex:e,onKeyDown:o})=>{t.removeEventListener("keydown",o),null===e?t.removeAttribute("tabindex"):t.setAttribute("tabindex",e)})),this.managedFocusableElements=[]}updateSlideFocusableTabIndexes(){this.managedFocusableElements.length&&this.managedFocusableElements.forEach((({element:t,slideIndex:e})=>{t.setAttribute("tabindex",e===this.activeItem?"0":"-1")}))}focusSlideByIndex(t){const e=this.managedFocusableElements.find((e=>e.slideIndex===t)),o=e?.element;if(o)try{o.focus({preventScroll:!0})}catch{}}handleSlideKeyDown(t,e){this.handleNavigationKeyDown(t,e,this.totalItems-1,(t=>{const e=this.getSlotElements();return!!e?.[t]&&(this.registerUserInteraction(),this.moveToItem(e[t],t),!0)}),(t=>this.focusSlideByIndex(t)))}refreshSlideFocusableElements(){this.clearManagedSlideFocusableElements();const t=this.getSlotElements();t?.length&&(t.forEach(((t,e)=>{const o=()=>{this.registerUserInteraction(),this.moveToItem(t,e)};this.managedSlideFocusWithinListeners.push({slide:t,onFocusWithin:o}),t.addEventListener("focusin",o),this.getSlideFocusableElements(t).forEach((t=>{const o=t=>this.handleSlideKeyDown(t,e);this.managedFocusableElements.push({element:t,slideIndex:e,originalTabIndex:t.getAttribute("tabindex"),onKeyDown:o}),t.addEventListener("keydown",o)}))})),this.updateSlideFocusableTabIndexes())}startNudgeGradientLoop(){if(this.nudgeGradientRafId)return;const t=()=>{this.checkGradient(),this.nudgeGradientRafId=this.isNudgeAnimating?requestAnimationFrame(t):void 0};this.nudgeGradientRafId=requestAnimationFrame(t)}stopNudgeGradientLoop(){this.nudgeGradientRafId&&(cancelAnimationFrame(this.nudgeGradientRafId),this.nudgeGradientRafId=void 0)}syncNudgeGradientLoop(){this.isNudgeAnimating?this.startNudgeGradientLoop():this.stopNudgeGradientLoop()}registerUserInteraction(){this.lastInteractionAt=Date.now(),this.stopNudgeAnimation()&&this.scheduleNextNudge()}hasRecentInteraction(){return!!this.lastInteractionAt&&Date.now()-this.lastInteractionAt<r.NUDGE_IDLE_THRESHOLD_MS}isRightNavigationDisabled(){return this.dotCount<=1||this.activeItem===this.totalItems-1||this.isLastViewport(-this.dragOffset)}isLeftNavigationDisabled(){return this.dotCount<=1||0===this.activeItem}isNudgeEligible(){return!(!this.trackElement||this.isDragging||this.isNudgeAnimating||this.hasRecentInteraction()||this.isRightNavigationDisabled()||0!==this.dragOffset)}scheduleNextNudge(){this.nudgeAnimationInterval<=0||(this.clearNudgeTimeout(),this.nudgeTimeoutId=setTimeout((()=>{this.nudgeTimeoutId=void 0,this.isNudgeEligible()?this.isNudgeAnimating=!0:this.scheduleNextNudge()}),this.nudgeAnimationInterval))}onNudgeAnimationEnd=t=>{"tet-carousel-nudge"===t.animationName&&(this.stopNudgeAnimation(),this.scheduleNextNudge())};stopNudgeAnimation(){const t=this.isNudgeAnimating;return t&&(this.isNudgeAnimating=!1),t}clearNudgeTimeout(){this.nudgeTimeoutId&&(clearTimeout(this.nudgeTimeoutId),this.nudgeTimeoutId=void 0)}stopNudgeSchedule(){this.clearNudgeTimeout(),this.stopNudgeAnimation()}syncNudgeSchedule(){this.stopNudgeSchedule(),this.scheduleNextNudge()}clampDotIndex(t){return Math.max(0,Math.min(t,this.dotCount-1))}setDotIndex(t,e){let o=0;const i=this.getDotScreenLength();o=this.isLastDotScreen(t,i)?this.dotCount-1:Math.round((t+e)/i),this.activeDotIndex=this.clampDotIndex(o)}moveToItem(t,e){(e||0===e)&&(this.activeItem=e);const o=t.getBoundingClientRect(),i=this.trackElement.getBoundingClientRect();let n=o.left-i.left;const s=this.calculateGradient(t,n);this.setDotIndex(n,s),this.isLastViewport(n)?this.moveToLastScreen():this.dragOffset=-n}disconnectedCallback(){this.stopNudgeSchedule(),this.stopNudgeGradientLoop(),window.removeEventListener("resize",this.handleResize),this.clearManagedSlideFocusableElements();const t=this.container?.querySelector("slot");t&&t.removeEventListener("slotchange",this.handleSlotChangeListener),this.slotObserver&&(this.slotObserver.disconnect(),this.slotObserver=null),document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp)}render(){const t=this.getFullyVisibleItemCount(),e=this._showButtons(t),n=this._showDots(t),a=e||n;let l=`transform ${this.transitionDuration}ms ${this.transitionTiming}`;return this.isDragging&&(l="mouse"===this.dragPointerType?`transform ${r.MOUSE_DRAG_SMOOTHING_MS}ms linear`:"none"),o(i,{key:"1fc3deb3e6e9262c20d9efd2abeedbf8563decf4"},o("div",{key:"41b6db12fd2fb76a80a1d6575bfd1124a94a2934",class:{"tet-carousel":!0,[`${this.theme}`]:!0},ref:t=>this.container=t,part:"carousel"},o("div",{key:"255d5aa266e74f878025e53d3fd8521d66ace586",class:"tet-carousel__container"},o("div",{key:"687ae940a8e941b0f24f84263606e079fcdcdd7c",class:"tet-carousel__gradient-left",ref:t=>{this.leftGradientRef=t}}),o("div",{key:"8dcf6c321a78b979916c66ffc633cd1f217c375a",class:"tet-carousel__gradient-right",ref:t=>{this.rightGradientRef=t}}),o("div",{key:"10ced8c4f5e98d3a6fd8127a010bfd6003865ba0",class:"tet-carousel__track "+(a?"":"tet-carousel__track--center"),ref:t=>this.trackElement=t,style:{transform:`translate3d(${this.dragOffset}px, 0, 0)`,transition:l,willChange:"transform"},onPointerDown:this.onPointerDown,onPointerUp:this.onPointerUp},o("div",{key:"e92fdef0719e7de5cc7103b54966f5af9a677236",class:{"tet-carousel__track-content":!0,"tet-carousel__track-content--nudge":this.isNudgeAnimating},ref:t=>this.trackContentElement=t,style:{"--tet-carousel-nudge-distance":`${r.NUDGE_DISTANCE_PX}px`},onAnimationEnd:this.onNudgeAnimationEnd},o("slot",{key:"dfa939715794282bf8f23dc5e11f8726853d6d65"})))),!!this.label&&o("div",{key:"f071b398922a60152db92ce0531920a2f53cb7b1",class:"tet-carousel__label"},this.label),a&&o("div",{key:"e62f01e1fdb4d979f00b3d5766609a147a8ee1c4",class:"tet-carousel__controls"},e&&o("div",{key:"ff466189f9a91c7c223945c5e082e6cff612d0f9",class:"tet-carousel__buttons tet-carousel__buttons--mobile",ref:t=>this.mobileBackButtonWrapper=t},o("tet-button",{key:"13af12bfd4c7fcc7cb414b8f0057513f523a8d13",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:s("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()})),n&&o("div",{key:"e78cbe6992aec81ccaca814380a554be11b9bb94",class:"tet-carousel__dots"},Array.from({length:this.dotCount}).map(((t,e)=>o("button",{type:"button",tabIndex:e===this.activeDotIndex?0:-1,class:"tet-carousel__dot"+(e===this.activeDotIndex?" active":""),key:e,"aria-label":`${s(e===this.activeDotIndex?"components-carousel-indicator-button-active":"components-carousel-indicator-button")} ${e+1}/${this.dotCount}`,"aria-current":e===this.activeDotIndex?"true":void 0,onPointerDown:t=>t.stopPropagation(),onKeyDown:t=>this.handleDotKeyDown(t,e),onClick:()=>this.handleDotClick(e)})))),e&&o("div",{key:"78bcece033f881bf1b74fa5cec0c252f706ae5bf",class:"tet-carousel__buttons"},o("tet-button",{key:"7edd52dfbf520ffe68b97d073c58ddbd86dd809c",class:"tet-carousel__buttons--desktop",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:s("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()}),o("tet-button",{key:"d7daa187520f89d4ffb24348e1408e6658dc4d4a",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconRight,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handleNext(),accessibilityLabel:s("components-carousel-next"),disabled:this.isRightNavigationDisabled()})))))}static get watchers(){return{language:["onLanguageChange"],activeItem:["onActiveItemChange"],showGradient:["checkGradient"],dragOffset:["checkGradient"],nudgeAnimationInterval:["onNudgeAnimIntervalChange"],isNudgeAnimating:["onNudgeAnimationStateChange"]}}};r.style=':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{--carousel-background:transparent;--carousel-dot-size:1rem;--carousel-buttons-bottom:-1rem;--carousel-dot-background:transparent;--carousel-dot-border:0.0625rem solid var(--tc-grey-70);--carousel-dot-border:0.0625rem solid var(--tc-grey-70);--carousel-dot-margin:0;--carousel-dot-margin-mobile:1rem;--carousel-label-color:var(--tc-text-secondary);--carousel-dot-active-background:var(--tc-layer-inverse-primary);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover);--carousel-dot-active-hover-background:var(--tc-grey-80);--carousel-dots-gap:0.5rem;--carousel-buttons-gap:1rem;--carousel-track-gap:0;--carousel-track-height:100%;--carousel-item-width:100%;--carousel-item-height:100%;--carousel-buttons-right:2rem;--carousel-dots-bottom:-1rem;--carousel-nudge-animation-duration:1.5s;--carousel-gradient:var(--tc-background-primary);-webkit-tap-highlight-color:transparent;display:inline-block;width:100%}.tet-carousel{position:relative;width:100%;background:var(--carousel-background)}.tet-carousel.dark{--carousel-dot-active-background:var(--tc-layer-inverse-primary-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover-dark);--carousel-dot-active-hover-background:var(--tc-grey-80-dark);--carousel-label-color:var(--tc-text-secondary-dark);--carousel-gradient:var(--tc-background-primary-dark)}.tet-carousel__container{width:var(--carousel-item-width);max-width:var(--carousel-item-width);height:var(--carousel-track-height);position:relative;margin-bottom:var(--carousel-dot-margin-mobile)}.tet-carousel__controls{position:relative;display:flex;align-items:center;justify-content:center;height:fit-content;margin-bottom:var(--carousel-dot-margin-mobile);min-height:2.75rem;touch-action:manipulation}.tet-carousel__label{color:var(--carousel-label-color);margin-left:auto;margin-right:auto;margin-bottom:1rem;text-align:center;font-family:var(--font-family-content);font-size:0.875rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:-0.003125rem}.tet-carousel__track{touch-action:pan-y;display:flex;height:var(--carousel-track-height);will-change:transform}.tet-carousel__track--center{justify-content:center}.tet-carousel__track-content{display:flex;gap:var(--carousel-track-gap);will-change:transform}.tet-carousel__track-content--nudge{animation:tet-carousel-nudge var(--carousel-nudge-animation-duration) ease-in-out}@media (hover: hover) and (pointer: fine){.tet-carousel:hover .tet-carousel__track-content--nudge{animation-play-state:paused}}.tet-carousel__track-content>*{flex-shrink:0;display:flex;align-items:center;justify-content:center}.tet-carousel__buttons{position:absolute;right:0;bottom:50%;display:flex;transform:translateY(50%);gap:var(--carousel-buttons-gap);z-index:2}.tet-carousel__buttons--mobile{display:flex;left:0}.tet-carousel__buttons--desktop{display:none !important}.tet-carousel__dots{display:flex;width:100%;gap:var(--carousel-dots-gap);justify-content:center;align-items:center}.tet-carousel__dot{width:var(--carousel-dot-size);height:var(--carousel-dot-size);border-radius:50%;background:var(--carousel-dot-background);cursor:pointer;transition:background 0.2s;border:var(--carousel-dot-border);z-index:2;touch-action:manipulation}.tet-carousel__dot:hover{background:var(--carousel-dot-hover-background)}.tet-carousel__dot.active{background:var(--carousel-dot-active-background);border:none}.tet-carousel__dot.active:hover{background:var(--carousel-dot-active-hover-background)}.tet-carousel__dot:focus-visible{outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0.125rem}.tet-carousel__gradient-left,.tet-carousel__gradient-right{position:absolute;top:0;display:block;width:13.75rem;height:100%;transition:opacity 0.4s ease-out;pointer-events:none;z-index:20;opacity:0}.tet-carousel__gradient-left{background:linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);left:0}.tet-carousel__gradient-right{background:linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);right:0}@keyframes tet-carousel-nudge{0%{transform:translateX(0)}50%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}70%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}100%{transform:translateX(0)}}@media all and (min-width: 46.25rem){.tet-carousel__controls{margin-bottom:var(--carousel-dot-margin)}.tet-carousel__label{font-size:1rem;line-height:1.5rem;letter-spacing:-0.00625rem}.tet-carousel__buttons{right:0.25rem}.tet-carousel__buttons--mobile{display:none}.tet-carousel__buttons--desktop{display:flex !important}}@media all and (min-width: 90rem){.tet-carousel__label{font-size:1.125rem;line-height:1.75rem}}';export{r as tet_carousel}
1
+ import{r as t,f as e,h as o,H as i}from"./p-83f43fdd.js";import{p as n,t as s}from"./p-a8051a99.js";import"./p-9a2b6ee2.js";import"./p-0ebbf5ef.js";const r=class{constructor(e){t(this,e),this.activeDotIndex=0,this.dotCount=0,this.totalItems=0,this.activeItem=0,this.isDragging=!1,this.dragOffset=0,this.isNudgeAnimating=!1,this.theme="light",this.showDots=!0,this.showGradient=!1,this.showButtons=!0,this.transitionDuration=500,this.swipeThreshold=32,this.transitionTiming="ease-out",this.buttonIconLeft="arrow-left",this.buttonIconRight="arrow-right",this.maxDots=8,this.label=void 0,this.nudgeAnimationInterval=0,this.language="lv"}static NUDGE_DISTANCE_PX=16;static NUDGE_IDLE_THRESHOLD_MS=1500;static GRADIENT_VISIBILITY_THRESHOLD_PX=1;static EDGE_DRAG_MAX_PX=32;static EDGE_DRAG_RESISTANCE=.95;static MOUSE_DRAG_SMOOTHING_MS=60;focusableSelector='a[href], [tabindex]:not([tabindex="-1"])';handleResize=()=>{this.getDotCount();const t=this.getSlotElements();if(!t?.length)return;const e=Math.max(0,Math.min(this.activeItem,t.length-1));this.moveToItem(t[e],e),this.checkGradient()};handleSlotChangeListener=()=>this.handleSlotChange();managedFocusableElements=[];managedSlideFocusWithinListeners=[];draggedAnchor=null;dragMoved=!1;dragPointerStartX=0;dragStartX=0;dragStartActiveItem=0;dragPointerType="";nudgeTimeoutId;nudgeGradientRafId;lastInteractionAt=0;trackElement=null;trackContentElement=null;mobileBackButtonWrapper=null;container;leftGradientRef;rightGradientRef;slotObserver;safeForceUpdate(){try{e(this)}catch{}}syncTranslations(t){n("tet-components",t).then((()=>this.safeForceUpdate()))}onLanguageChange(t){this.syncTranslations(t)}onActiveItemChange(){this.updateSlideFocusableTabIndexes()}checkGradient(){if(this.showGradient){const t=this.getViewportWidth(),e=this.getSlotClientWidth(),o=Math.max(0,e-t),i=-this.getRealDragOffset(),n=Math.max(0,Math.min(o,i)),s=o-n<r.GRADIENT_VISIBILITY_THRESHOLD_PX;n<r.GRADIENT_VISIBILITY_THRESHOLD_PX?(this.leftGradientRef.style.opacity="0",this.rightGradientRef.style.opacity="1"):s?(this.leftGradientRef.style.opacity="1",this.rightGradientRef.style.opacity="0"):(this.leftGradientRef.style.opacity="1",this.rightGradientRef.style.opacity="1")}else this.leftGradientRef.style.opacity="0",this.rightGradientRef.style.opacity="0"}onNudgeAnimIntervalChange(){this.syncNudgeSchedule()}onNudgeAnimationStateChange(){this.syncNudgeGradientLoop(),this.checkGradient()}componentWillLoad(){this.syncTranslations(this.language)}getSlotElements(){const t=this.container?.querySelector("slot");if(!t)return;let e=t.assignedElements?t.assignedElements():[];return 0!==e.length?(e[0].className.includes("carousel-wrapper")&&(e=Array.from(e[0].children)),e):void 0}getViewportWidth(){return this.container?.offsetWidth||window.innerWidth}getSlotClientWidth(){return this.trackElement?.querySelector("slot")?.offsetWidth||window.innerWidth}getMaxScrollableOffset(){return Math.max(0,this.getSlotClientWidth()-this.getViewportWidth())}afterLayout(t){requestAnimationFrame((()=>requestAnimationFrame(t)))}getDotScreenLength(){return this.getSlotClientWidth()/this.dotCount}isLast(t,e){return this.getSlotClientWidth()-e<=t}isLastViewport(t){const e=this.getViewportWidth();return this.isLast(e,t)}isLastDotScreen(t,e){const o=this.getViewportWidth(),i=Math.max(e,o);return this.isLast(i,t)}getItemLayoutMetrics(){const t=this.getSlotElements();return t&&0!==t.length?t.map(((t,e)=>{const o=t.offsetLeft;return{item:t,index:e,left:o,right:o+t.offsetWidth}})):[]}getFullyVisibleItemCount(){const t=this.getItemLayoutMetrics();if(!t.length)return 0;const e=this.getViewportWidth(),o=Math.abs(this.dragOffset),i=o+e;let n=0;for(const{left:e,right:s}of t)e>=o&&s<=i&&n++;return n}getVisibleItemCountFromIndex(t){const e=this.getItemLayoutMetrics();if(!e.length)return 1;const o=Math.max(0,Math.min(t,e.length-1)),i=this.getViewportWidth(),n=e[o].left+i+.5;let s=0;for(let t=o;t<e.length&&e[t].right<=n;t++)s++;return Math.max(1,s)}getFirstVisibleItemInViewport(){const t=this.getItemLayoutMetrics();if(!t.length)return null;const e=Math.abs(this.dragOffset),o=.5,i=t.find((t=>t.left<=e+o&&t.right>e+o));if(i){if(i.right-e>=(i.right-i.left)/2||i.index===t.length-1)return{item:i.item,index:i.index};const o=t[i.index+1];if(o)return{item:o.item,index:o.index}}if(e<=t[0].left+o)return{item:t[0].item,index:t[0].index};const n=t.find((t=>t.left>e+o));if(n)return{item:n.item,index:n.index};const s=t.at(-1);return{item:s.item,index:s.index}}getEdgeSnapTarget(t){const e=this.getItemLayoutMetrics();if(!e.length)return null;const o=Math.abs(this.dragOffset),i=o+this.getViewportWidth(),n=e[0],s=e.at(-1);if(t<0){const t=Math.min(n.right,i)-Math.max(n.left,o);if(t>0&&t>=(n.right-n.left)/2)return{item:n.item,index:n.index}}if(t>0){const t=Math.min(s.right,i)-Math.max(s.left,o);if(t>0&&t>=(s.right-s.left)/2)return{item:s.item,index:s.index}}return null}getSwipeTarget(t){const e=this.getSlotElements();if(!e||0===e.length)return null;const o=this.getEdgeSnapTarget(t);if(o)return o;const i=this.getFirstVisibleItemInViewport();let n=i?.index??this.dragStartActiveItem;t>0&&n<=this.dragStartActiveItem&&(n=this.dragStartActiveItem+1),t<0&&n>=this.dragStartActiveItem&&(n=this.dragStartActiveItem-1),n=Math.max(0,Math.min(e.length-1,n));const s=e[n];return s?{item:s,index:n}:null}getRealDragOffset(){return this.dragOffset+this.getCurrentNudgeTranslateX()}applyEdgeDragResistance(t,e){return t>0?Math.min(r.EDGE_DRAG_MAX_PX,t*r.EDGE_DRAG_RESISTANCE):t<e?e+Math.max(-r.EDGE_DRAG_MAX_PX,(t-e)*r.EDGE_DRAG_RESISTANCE):t}getCurrentNudgeTranslateX(){if(!this.isNudgeAnimating||!this.trackContentElement)return 0;const t=getComputedStyle(this.trackContentElement).transform;if(!t||"none"===t)return 0;try{return new DOMMatrixReadOnly(t).m41||0}catch{return 0}}getDotCount(){const t=this.getSlotElements();if(!t)return this.dotCount=1,this.totalItems=0,void(this.activeDotIndex=0);this.totalItems=t.length;const e=this.getViewportWidth(),o=this.getSlotClientWidth(),i=Math.ceil(o/Math.max(1,e)),n=Number.isFinite(this.maxDots)?this.maxDots:i;this.dotCount=Math.max(1,Math.min(n,i)),this.activeDotIndex=this.clampDotIndex(this.activeDotIndex)}handleMove=()=>{const t=this.getSlotElements();if(!t)return;const e=t[this.activeItem];e&&this.moveToItem(e)};navigateByStep(t){this.registerUserInteraction();const e=this.getSlotElements();if(!e||0===e.length)return;const o=this.activeDotIndex,i=this.getFirstVisibleItemInViewport(),n=i?.index??this.activeItem,s=this.getVisibleItemCountFromIndex(n),r=Math.max(0,Math.min(e.length-1,n+t*s));if(r===n)return;const a=e[r];a&&(this.moveToItem(a,r),Math.abs(this.activeDotIndex-o)>1&&this.moveToDotIndex(o+t))}handlePrev=()=>{this.navigateByStep(-1)};handleNext=()=>{this.navigateByStep(1)};moveToLastScreen=()=>{const t=this.getViewportWidth(),e=this.getSlotClientWidth();this.dragOffset=-(e-t)};calculateGradient(t,e){const o=this.getSlotClientWidth();let i=this.showGradient?160:0;return i=e<160?e:i,i=o-e-t.offsetWidth<160?0:i,i}calcLastScreenElement=t=>{const e=this.getSlotElements();if(!e)return null;const o=this.trackElement.getBoundingClientRect();for(const[i,n]of e.entries()){let e=n.getBoundingClientRect().left-o.left;const s=this.calculateGradient(n,e);if(e>=t-this.swipeThreshold+s)return{item:n,index:i}}return{item:e[0],index:0}};moveToDotIndex(t){this.activeDotIndex=this.clampDotIndex(t);const e=this.getMaxScrollableOffset(),o=this.dotCount-1!==this.activeDotIndex||this.isDragging?this.activeDotIndex*this.getDotScreenLength():e,i=Math.max(0,Math.min(o,e)),n=this.calcLastScreenElement(i);if(!n)return this.activeItem=0,void(this.dragOffset=0);const{index:s}=n;this.activeItem=s,this.dragOffset=-i}handleDotClick=t=>{this.registerUserInteraction(),this.moveToDotIndex(t)};focusDot=t=>{if(!this.container)return;const e=Array.from(this.container.querySelectorAll(".tet-carousel__dot"));e[t]?.focus()};getKeyboardTargetIndex(t,e,o){if(o<1)return null;switch(t){case"ArrowRight":case"ArrowDown":return Math.min(o,e+1);case"ArrowLeft":case"ArrowUp":return Math.max(0,e-1);case"Home":return 0;case"End":return o;default:return null}}handleNavigationKeyDown(t,e,o,i,n){const s=this.getKeyboardTargetIndex(t.key,e,o);null!==s&&(t.preventDefault(),t.stopPropagation(),i(s)&&this.afterLayout((()=>n(s))))}handleDotKeyDown=(t,e)=>{if("Tab"===t.key&&t.shiftKey){if(this.hasVisibleMobileBackButtonTarget())return;return this.registerUserInteraction(),t.preventDefault(),t.stopPropagation(),void this.afterLayout((()=>this.focusSlideByIndex(this.activeItem)))}this.handleNavigationKeyDown(t,e,this.dotCount-1,(t=>(this.handleDotClick(t),!0)),(t=>this.focusDot(t)))};isElementVisible(t){if(!t.isConnected)return!1;if(t.hidden||t.hasAttribute("hidden"))return!1;if(0===t.getClientRects().length)return!1;const e=getComputedStyle(t);return"none"!==e.display&&"hidden"!==e.visibility}hasVisibleMobileBackButtonTarget(){if(this.isLeftNavigationDisabled())return!1;const t=this.mobileBackButtonWrapper;return!!t&&this.isElementVisible(t)}onPointerDown=t=>{this.registerUserInteraction(),this.dragPointerType=t.pointerType||"mouse",t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this.isDragging=!0,this.dragStartX=t.screenX,this.dragMoved=!1,this.dragPointerStartX=t.screenX,this.dragStartActiveItem=this.activeItem,document.body.style.userSelect="none",document.addEventListener("pointermove",this.onPointerMove),document.addEventListener("pointerup",this.onPointerUp),document.addEventListener("pointercancel",this.onPointerUp);let e=t.target;for(this.draggedAnchor=null;e;){if("A"===e.tagName||e.getAttribute("tabindex")){this.draggedAnchor=e;break}e=e.parentElement}};onPointerMove=t=>{if(!this.isDragging)return;const e=Math.abs(t.screenX-this.dragPointerStartX);if(!this.dragMoved&&e>5&&(this.dragMoved=!0,this.trackElement))try{this.trackElement.setPointerCapture?.(t.pointerId)}catch{}let o=this.dragOffset;o+=t.screenX-this.dragStartX,this.dragStartX=t.screenX;const i=this.getViewportWidth(),n=this.getSlotClientWidth();this.dragOffset=this.applyEdgeDragResistance(o,-(n-i));const s=this.getFirstVisibleItemInViewport();s&&this.activeItem!==s.index&&(this.activeItem=s.index)};releaseTrackPointerCapture(t){try{this.trackElement?.releasePointerCapture?.(t)}catch{}}getMinDragOffset(){const t=this.getViewportWidth();return-(this.getSlotClientWidth()-t)}snapToEdge(t){const e=this.dragOffset>0;this.activeItem=e?0:Math.max(0,this.totalItems-1),this.activeDotIndex=e?0:Math.max(0,this.dotCount-1),this.dragOffset=e?0:t}moveBySwipeDelta(t){if(Math.abs(t)<=this.swipeThreshold)return this.activeItem=this.dragStartActiveItem,void this.afterLayout((()=>this.handleMove()));const e=this.getSwipeTarget(t<0?1:-1);e&&this.moveToItem(e.item,e.index)}finalizePointerDrag(){document.body.style.userSelect="",document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp),this.dragPointerType=""}preventClickAfterDrag(){if(!this.draggedAnchor||!this.dragMoved)return;const t=e=>{e.preventDefault(),e.stopPropagation(),this.draggedAnchor?.removeEventListener("click",t,!0)};this.draggedAnchor.addEventListener("click",t,!0)}onPointerUp=t=>{if(!this.isDragging)return;this.registerUserInteraction(),this.releaseTrackPointerCapture(t.pointerId),this.isDragging=!1;const e=this.getMinDragOffset(),o=t.screenX-this.dragPointerStartX;this.dragOffset>0||this.dragOffset<e?this.snapToEdge(e):this.moveBySwipeDelta(o),this.finalizePointerDrag(),this.preventClickAfterDrag()};_showButtons(t=this.getFullyVisibleItemCount()){return!(!this.showButtons||t>=this.totalItems)}_showDots(t=this.getFullyVisibleItemCount()){return!!this.showDots&&!(this.totalItems<=0||t>=this.totalItems)}componentDidLoad(){this.getDotCount(),window.addEventListener("resize",this.handleResize),this.checkGradient(),this.initSlotListeners(),this.syncNudgeSchedule(),this.refreshSlideFocusableElements()}handleSlotChange(){this.getDotCount();const t=Math.max(0,this.totalItems-1);this.activeItem=Math.max(0,Math.min(this.activeItem,t)),this.refreshSlideFocusableElements(),this.checkGradient(),this.safeForceUpdate()}initSlotListeners(){const t=this.container?.querySelector("slot");if(!t)return;if(t.addEventListener("slotchange",this.handleSlotChangeListener),"function"!=typeof t.assignedElements)return;const e=t.assignedElements();if(1!==e.length)return;const o=e[0];this.slotObserver=new MutationObserver((()=>this.handleSlotChange())),this.slotObserver.observe(o,{childList:!0,subtree:!1})}isTabbableElement(t){if("A"===t.tagName)return t.hasAttribute("href");const e=t.getAttribute("tabindex");return null!==e&&"-1"!==e.trim()}getSlideFocusableElements(t){const e=new Set;return this.isTabbableElement(t)&&e.add(t),Array.from(t.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),t.shadowRoot&&Array.from(t.shadowRoot.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),Array.from(e)}clearManagedSlideFocusableElements(){this.managedSlideFocusWithinListeners.forEach((({slide:t,onFocusWithin:e})=>{t.removeEventListener("focusin",e)})),this.managedSlideFocusWithinListeners=[],this.managedFocusableElements.forEach((({element:t,originalTabIndex:e,onKeyDown:o})=>{t.removeEventListener("keydown",o),null===e?t.removeAttribute("tabindex"):t.setAttribute("tabindex",e)})),this.managedFocusableElements=[]}updateSlideFocusableTabIndexes(){this.managedFocusableElements.length&&this.managedFocusableElements.forEach((({element:t,slideIndex:e})=>{t.setAttribute("tabindex",e===this.activeItem?"0":"-1")}))}focusSlideByIndex(t){const e=this.managedFocusableElements.find((e=>e.slideIndex===t)),o=e?.element;if(o)try{o.focus({preventScroll:!0})}catch{}}handleSlideKeyDown(t,e){this.handleNavigationKeyDown(t,e,this.totalItems-1,(t=>{const e=this.getSlotElements();return!!e?.[t]&&(this.registerUserInteraction(),this.moveToItem(e[t],t),!0)}),(t=>this.focusSlideByIndex(t)))}refreshSlideFocusableElements(){this.clearManagedSlideFocusableElements();const t=this.getSlotElements();t?.length&&(t.forEach(((t,e)=>{const o=()=>{this.registerUserInteraction(),this.moveToItem(t,e)};this.managedSlideFocusWithinListeners.push({slide:t,onFocusWithin:o}),t.addEventListener("focusin",o),this.getSlideFocusableElements(t).forEach((t=>{const o=t=>this.handleSlideKeyDown(t,e);this.managedFocusableElements.push({element:t,slideIndex:e,originalTabIndex:t.getAttribute("tabindex"),onKeyDown:o}),t.addEventListener("keydown",o)}))})),this.updateSlideFocusableTabIndexes())}startNudgeGradientLoop(){if(this.nudgeGradientRafId)return;const t=()=>{this.checkGradient(),this.nudgeGradientRafId=this.isNudgeAnimating?requestAnimationFrame(t):void 0};this.nudgeGradientRafId=requestAnimationFrame(t)}stopNudgeGradientLoop(){this.nudgeGradientRafId&&(cancelAnimationFrame(this.nudgeGradientRafId),this.nudgeGradientRafId=void 0)}syncNudgeGradientLoop(){this.isNudgeAnimating?this.startNudgeGradientLoop():this.stopNudgeGradientLoop()}registerUserInteraction(){this.lastInteractionAt=Date.now(),this.stopNudgeAnimation()&&this.scheduleNextNudge()}hasRecentInteraction(){return!!this.lastInteractionAt&&Date.now()-this.lastInteractionAt<r.NUDGE_IDLE_THRESHOLD_MS}isRightNavigationDisabled(){return this.dotCount<=1||this.activeItem===this.totalItems-1||this.isLastViewport(-this.dragOffset)}isLeftNavigationDisabled(){return this.dotCount<=1||0===this.activeItem}isNudgeEligible(){return!(!this.trackElement||this.isDragging||this.isNudgeAnimating||this.hasRecentInteraction()||this.isRightNavigationDisabled()||0!==this.dragOffset)}scheduleNextNudge(){this.nudgeAnimationInterval<=0||(this.clearNudgeTimeout(),this.nudgeTimeoutId=setTimeout((()=>{this.nudgeTimeoutId=void 0,this.isNudgeEligible()?this.isNudgeAnimating=!0:this.scheduleNextNudge()}),this.nudgeAnimationInterval))}onNudgeAnimationEnd=t=>{"tet-carousel-nudge"===t.animationName&&(this.stopNudgeAnimation(),this.scheduleNextNudge())};stopNudgeAnimation(){const t=this.isNudgeAnimating;return t&&(this.isNudgeAnimating=!1),t}clearNudgeTimeout(){this.nudgeTimeoutId&&(clearTimeout(this.nudgeTimeoutId),this.nudgeTimeoutId=void 0)}stopNudgeSchedule(){this.clearNudgeTimeout(),this.stopNudgeAnimation()}syncNudgeSchedule(){this.stopNudgeSchedule(),this.scheduleNextNudge()}clampDotIndex(t){return Math.max(0,Math.min(t,this.dotCount-1))}setDotIndex(t,e){let o=0;const i=this.getDotScreenLength();o=this.isLastDotScreen(t,i)?this.dotCount-1:Math.round((t+e)/i),this.activeDotIndex=this.clampDotIndex(o)}moveToItem(t,e){(e||0===e)&&(this.activeItem=e);const o=t.getBoundingClientRect(),i=this.trackElement.getBoundingClientRect();let n=o.left-i.left;const s=this.calculateGradient(t,n);this.setDotIndex(n,s),this.isLastViewport(n)?this.moveToLastScreen():this.dragOffset=-n}disconnectedCallback(){this.stopNudgeSchedule(),this.stopNudgeGradientLoop(),window.removeEventListener("resize",this.handleResize),this.clearManagedSlideFocusableElements();const t=this.container?.querySelector("slot");t&&t.removeEventListener("slotchange",this.handleSlotChangeListener),this.slotObserver&&(this.slotObserver.disconnect(),this.slotObserver=null),document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp)}render(){const t=this.getFullyVisibleItemCount(),e=this._showButtons(t),n=this._showDots(t),a=e||n;let l=`transform ${this.transitionDuration}ms ${this.transitionTiming}`;return this.isDragging&&(l="mouse"===this.dragPointerType?`transform ${r.MOUSE_DRAG_SMOOTHING_MS}ms linear`:"none"),o(i,{key:"1fc3deb3e6e9262c20d9efd2abeedbf8563decf4"},o("div",{key:"41b6db12fd2fb76a80a1d6575bfd1124a94a2934",class:{"tet-carousel":!0,[`${this.theme}`]:!0},ref:t=>this.container=t,part:"carousel"},o("div",{key:"255d5aa266e74f878025e53d3fd8521d66ace586",class:"tet-carousel__container"},o("div",{key:"687ae940a8e941b0f24f84263606e079fcdcdd7c",class:"tet-carousel__gradient-left",ref:t=>{this.leftGradientRef=t}}),o("div",{key:"8dcf6c321a78b979916c66ffc633cd1f217c375a",class:"tet-carousel__gradient-right",ref:t=>{this.rightGradientRef=t}}),o("div",{key:"10ced8c4f5e98d3a6fd8127a010bfd6003865ba0",class:"tet-carousel__track "+(a?"":"tet-carousel__track--center"),ref:t=>this.trackElement=t,style:{transform:`translate3d(${this.dragOffset}px, 0, 0)`,transition:l,willChange:"transform"},onPointerDown:this.onPointerDown,onPointerUp:this.onPointerUp},o("div",{key:"e92fdef0719e7de5cc7103b54966f5af9a677236",class:{"tet-carousel__track-content":!0,"tet-carousel__track-content--nudge":this.isNudgeAnimating},ref:t=>this.trackContentElement=t,style:{"--tet-carousel-nudge-distance":`${r.NUDGE_DISTANCE_PX}px`},onAnimationEnd:this.onNudgeAnimationEnd},o("slot",{key:"dfa939715794282bf8f23dc5e11f8726853d6d65"})))),!!this.label&&o("div",{key:"f071b398922a60152db92ce0531920a2f53cb7b1",class:"tet-carousel__label"},this.label),a&&o("div",{key:"e62f01e1fdb4d979f00b3d5766609a147a8ee1c4",class:"tet-carousel__controls"},e&&o("div",{key:"ff466189f9a91c7c223945c5e082e6cff612d0f9",class:"tet-carousel__buttons tet-carousel__buttons--mobile",ref:t=>this.mobileBackButtonWrapper=t},o("tet-button",{key:"13af12bfd4c7fcc7cb414b8f0057513f523a8d13",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:s("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()})),n&&o("div",{key:"e78cbe6992aec81ccaca814380a554be11b9bb94",class:"tet-carousel__dots"},Array.from({length:this.dotCount}).map(((t,e)=>o("button",{type:"button",tabIndex:e===this.activeDotIndex?0:-1,class:"tet-carousel__dot"+(e===this.activeDotIndex?" active":""),key:e,"aria-label":`${s(e===this.activeDotIndex?"components-carousel-indicator-button-active":"components-carousel-indicator-button")} ${e+1}/${this.dotCount}`,"aria-current":e===this.activeDotIndex?"true":void 0,onPointerDown:t=>t.stopPropagation(),onKeyDown:t=>this.handleDotKeyDown(t,e),onClick:()=>this.handleDotClick(e)})))),e&&o("div",{key:"78bcece033f881bf1b74fa5cec0c252f706ae5bf",class:"tet-carousel__buttons"},o("tet-button",{key:"7edd52dfbf520ffe68b97d073c58ddbd86dd809c",class:"tet-carousel__buttons--desktop",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:s("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()}),o("tet-button",{key:"d7daa187520f89d4ffb24348e1408e6658dc4d4a",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconRight,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handleNext(),accessibilityLabel:s("components-carousel-next"),disabled:this.isRightNavigationDisabled()})))))}static get watchers(){return{language:["onLanguageChange"],activeItem:["onActiveItemChange"],showGradient:["checkGradient"],dragOffset:["checkGradient"],nudgeAnimationInterval:["onNudgeAnimIntervalChange"],isNudgeAnimating:["onNudgeAnimationStateChange"]}}};r.style=':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{--carousel-background:transparent;--carousel-dot-size:1rem;--carousel-buttons-bottom:-1rem;--carousel-dot-background:transparent;--carousel-dot-border:0.0625rem solid var(--tc-grey-70);--carousel-dot-border:0.0625rem solid var(--tc-grey-70);--carousel-dot-margin:0;--carousel-dot-margin-mobile:1rem;--carousel-label-color:var(--tc-text-secondary);--carousel-dot-active-background:var(--tc-layer-inverse-primary);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover);--carousel-dot-active-hover-background:var(--tc-grey-80);--carousel-dots-gap:0.5rem;--carousel-buttons-gap:1rem;--carousel-track-gap:0;--carousel-track-height:100%;--carousel-item-width:100%;--carousel-item-height:100%;--carousel-buttons-right:2rem;--carousel-dots-bottom:-1rem;--carousel-nudge-animation-duration:1.5s;--carousel-gradient:var(--tc-background-primary);-webkit-tap-highlight-color:transparent;display:inline-block;width:100%}.tet-carousel{position:relative;width:100%;background:var(--carousel-background)}.tet-carousel.dark{--carousel-dot-active-background:var(--tc-layer-inverse-primary-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover-dark);--carousel-dot-active-hover-background:var(--tc-grey-80-dark);--carousel-label-color:var(--tc-text-secondary-dark);--carousel-gradient:var(--tc-background-primary-dark)}.tet-carousel__container{width:var(--carousel-item-width);max-width:var(--carousel-item-width);height:var(--carousel-track-height);position:relative;margin-bottom:var(--carousel-dot-margin-mobile)}.tet-carousel__controls{position:relative;display:flex;align-items:center;justify-content:center;height:fit-content;margin-bottom:var(--carousel-dot-margin-mobile);min-height:2.75rem;touch-action:manipulation}.tet-carousel__label{color:var(--carousel-label-color);margin-left:auto;margin-right:auto;margin-bottom:1rem;text-align:center;font-family:var(--font-family-content);font-size:0.875rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:-0.003125rem}.tet-carousel__track{touch-action:pan-y;display:flex;height:var(--carousel-track-height);will-change:transform}.tet-carousel__track--center{justify-content:center}.tet-carousel__track-content{display:flex;gap:var(--carousel-track-gap);will-change:transform}.tet-carousel__track-content--nudge{animation:tet-carousel-nudge var(--carousel-nudge-animation-duration) ease-in-out}@media (hover: hover) and (pointer: fine){.tet-carousel:hover .tet-carousel__track-content--nudge{animation-play-state:paused}}.tet-carousel__track-content>*{flex-shrink:0;display:flex;align-items:center;justify-content:center}.tet-carousel__buttons{position:absolute;right:0;bottom:50%;display:flex;transform:translateY(50%);gap:var(--carousel-buttons-gap);z-index:2}.tet-carousel__buttons--mobile{display:flex;left:0}.tet-carousel__buttons--desktop{display:none !important}.tet-carousel__dots{display:flex;width:100%;gap:var(--carousel-dots-gap);justify-content:center;align-items:center}.tet-carousel__dot{width:var(--carousel-dot-size);height:var(--carousel-dot-size);border-radius:50%;background:var(--carousel-dot-background);cursor:pointer;transition:background 0.2s;border:var(--carousel-dot-border);z-index:2;touch-action:manipulation}.tet-carousel__dot:hover{background:var(--carousel-dot-hover-background)}.tet-carousel__dot.active{background:var(--carousel-dot-active-background);border:none}.tet-carousel__dot.active:hover{background:var(--carousel-dot-active-hover-background)}.tet-carousel__dot:focus-visible{outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0.125rem}.tet-carousel__gradient-left,.tet-carousel__gradient-right{position:absolute;top:0;display:block;width:13.75rem;height:100%;transition:opacity 0.4s ease-out;pointer-events:none;z-index:20;opacity:0}.tet-carousel__gradient-left{background:linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);left:0}.tet-carousel__gradient-right{background:linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);right:0}@keyframes tet-carousel-nudge{0%{transform:translateX(0)}50%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}70%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}100%{transform:translateX(0)}}@media all and (min-width: 46.25rem){.tet-carousel__controls{margin-bottom:var(--carousel-dot-margin)}.tet-carousel__label{font-size:1rem;line-height:1.5rem;letter-spacing:-0.00625rem}.tet-carousel__buttons{right:0.25rem}.tet-carousel__buttons--mobile{display:none}.tet-carousel__buttons--desktop{display:flex !important}}@media all and (min-width: 90rem){.tet-carousel__label{font-size:1.125rem;line-height:1.75rem}}';export{r as tet_carousel}
@@ -1 +1 @@
1
- import{r as t,c as e,g as o,h as r,H as a}from"./p-5abb3bea.js";import"./p-726651bc.js";import{p as i}from"./p-3ac57578.js";import{f as n}from"./p-25c9957d.js";import"./p-6e631dc7.js";const s=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","iframe",'[tabindex]:not([tabindex="-1"])',"audio[controls]","video[controls]","[contenteditable]"],c=t=>{if(!t)return!1;if((t=>t.matches(s.join(",")))(t))return!0;if(t instanceof HTMLElement&&t.shadowRoot&&t.shadowRoot.querySelectorAll(s.join(",")).length>0)return!0;for(const e of Array.from(t.children))if(c(e))return!0;return!1},l=class{constructor(o){t(this,o),this.compareCardDataChange=e(this,"compareCardDataChange",7),this.compareCardsDidRender=e(this,"compareCardsDidRender",7),this.data=void 0,this.vatText=void 0,this.forceColumn=void 0,this.theme=void 0,this.layout="default",this.cardScript=void 0,this.changedProductCode=void 0,this.isNetflixCard=!1,this.darkMode=!1,this.initializedState=!1,this.showLoader=!0}onDataChange(){this.compareCardDataChange.emit(),this.initializedState=!0}compareCardDataChange;compareCardsDidRender;onOptionSelected(t){const e=[];this.changedProductCode=t.detail.value,e.push(this.changedProductCode),this.getProductData(e.join(","),!1)}get host(){return o(this)}async componentWillLoad(){let t=[];this.data.forEach((e=>{void 0!==e.productCode&&(t.includes(e.productCode)||t.push(e.productCode))})),t.length>0?await this.getProductData(t.join(",")):this.showLoader=!1}async componentDidRender(){this.compareCardsDidRender.emit()}getProductData(t,e=!0){e&&(this.showLoader=!0),i(t).then((t=>{const e=[];this.data.forEach((o=>{let r=o.productCode;o.isNetflixCard&&(this.changedProductCode===o.secondaryProductCode?r=o.secondaryProductCode:this.changedProductCode===o.productCode&&(r=o.productCode));const a=t.products[r];a&&(o=n(o,r,a,this.theme)),e.push(o)})),this.data=e,this.showLoader=!1}))}renderLoader=()=>r("div",{class:"cards"},[...Array(3)].map((()=>[r("tet-placeholder",{class:"tet-placeholder",height:"27rem",width:"21.5rem",darkTheme:this.darkMode})])));render(){return r(a,{key:"ea0bfb6d0dbbd7fc5641ac5e8ce71faa130bc359",class:{"must-initialize":!0,initialized:this.initializedState}},this.showLoader?this.renderLoader():r("div",{class:{"tet-compare-cards-wrapper":!0,"force-column":this.forceColumn}},r("div",{class:{cards:!0,[`${this.layout}`]:!0}},this.data.map(((t,e)=>r("tet-compare-card",{class:{"tet-compare-card":!0,"tet-compare-card--thumbnail":!!t.thumbnail},index:e,language:t.language,options:t.options,"card-type":t.cardType,theme:t.theme,"best-choice":t.bestChoice,"color-icons":t.colorIcons,"full-height":t.fullHeight,"card-header":t.cardHeader,logo:t.logo,image:t.image,"card-background-color":t.cardBackgroundColor,"card-script":t.cardScript,hideBestChoiceBorder:t.hideBestChoiceBorder,withBorder:t.withBorder,"best-choice-text-position":t.bestChoiceTextPosition,bestChoiceTextFloating:t.bestChoiceTextFloating,priceShownVertically:t.priceShownVertically,"secondary-link-position":t.secondaryLinkPosition,thumbnail:t.thumbnail,thumbnailAlt:t.thumbnailAlt,showBulletPoints:t.showBulletPoints,showSubTitle:t.showSubTitle,showHelper:t.showHelper,isNetflixCard:t.isNetflixCard,darkMode:this.darkMode},r("div",{slot:"image-slot"},r("img",{style:{width:"100%"},src:t.image,alt:(t.image??"").split("/")?.pop()?.split(".")[0]??t.image})),r("div",{slot:"logo-slot"},r("img",{style:{width:"100%"},src:t.logo,alt:(t.logo??"").split("/")?.pop()?.split(".")[0]??t.logo})),r("div",{slot:"description-slot",innerHTML:t.cardDescription,class:this.darkMode?"dark":""}))))),this.vatText?r("div",{class:"vat"},r("div",{class:"vat__text",innerHTML:this.vatText})):""),this.cardScript?r("link",{href:this.cardScript,rel:"stylesheet",type:"text/css"}):"")}static get watchers(){return{data:["onDataChange"]}}};l.style=':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:root{--tet-link-color:var(--tc-text-primary);--tet-link-color-hover:var(--tc-text-secondary);--tet-link-color-active:var(--tc-text-tertiary);--tet-link-color-focus:var(--tc-blue-40);--tet-link-color-disabled:var(--tc-button-text-inverse-disabled);--tet-link-secondary-color:var(--tc-text-secondary);--tet-link-secondary-color-hover:var(--tc-text-primary)}.tet-link,.tet-link__arrow{text-decoration:underline;color:var(--tet-link-color);position:relative;line-height:1.5rem;cursor:pointer}.tet-link.dark,.tet-link__arrow.dark{--tet-link-color:var(--tc-text-primary-dark);--tet-link-color-hover:var(--tc-text-secondary-dark);--tet-link-color-active:var(--tc-text-tertiary-dark);--tet-link-color-focus:var(--tc-blue-40-dark);--tet-link-color-disabled:var(--tc-button-text-inverse-disabled-dark);--tet-link-secondary-color:var(--tc-text-secondary-dark);--tet-link-secondary-color-hover:var(--tc-text-primary-dark)}.tet-link.tet-link--secondary,.tet-link__arrow.tet-link--secondary{--tet-link-color:var(--tet-link-secondary-color);--tet-link-color-hover:var(--tet-link-secondary-color-hover)}.tet-link tet-icon,.tet-link__arrow tet-icon{--icon-color:var(--tet-link-color)}.tet-link:hover,.tet-link__arrow:hover{color:var(--tet-link-color-hover)}.tet-link:hover tet-icon,.tet-link__arrow:hover tet-icon{--icon-color:var(--tet-link-color-hover)}.tet-link:active,.tet-link__arrow:active{color:var(--tet-link-color-active)}.tet-link:active tet-icon,.tet-link__arrow:active tet-icon{--icon-color:var(--tet-link-color-active)}.tet-link:focus-visible,.tet-link__arrow:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s;outline-color:var(--tet-link-color-focus);border-radius:0.125rem}.tet-link.disabled,.tet-link__arrow.disabled{color:var(--tet-link-color-disabled);pointer-events:none;cursor:auto}.tet-link.disabled tet-icon,.tet-link__arrow.disabled tet-icon{--icon-color:var(--tet-link-color-disabled)}.tet-link.disabled:focus-visible,.tet-link__arrow.disabled:focus-visible{outline:none}.tet-link tet-icon,.tet-link__arrow tet-icon{padding-left:0.25rem;padding-right:0.25rem;--icon-container-display:inline-block}.tet-link__arrow{padding-right:1.5rem}.tet-link__arrow::after{content:"--\x3e";position:absolute;white-space:nowrap;display:inline-block;text-decoration:none;padding-left:0.25rem;letter-spacing:initial;transition:all 0.15s ease-in}.tet-link__arrow:hover::after{padding-left:0.375rem}:host{--compare-cards-wrap:nowrap;--compare-cards-flex-direction:row;--compare-cards-flex-align-items:center;--compare-cards-padding:1.5rem;--compare-cards-price-padding:0;--compare-cards-border-radius:1.5rem;--compare-cards-new-price-font-size:2.5rem;--compare-cards-old-price-font-size:1rem;--compare-cards-new-currency-font-size:1.125rem;--compare-cards-title-margin-top:1.25rem;--compare-cards-helper-margin-top:0;--compare-cards-card-max-width:32rem;--compare-cards-price-wrapper-margin-top:auto;--compare-cards-secondary-link-font-size:0.75rem;--compare-cards-price-line-height:3rem;--compare-cards-thumbnail-display:flex;--compare-cards-thumbnail-card-radius:0 var(--compare-cards-border-radius) var(--compare-cards-border-radius) 0;--compare-cards-thumbnail-card-width:44rem;display:block}:host([theme=dark]) .card,:host([theme=dark]){--compare-card-background-color:var(--tc-background-primary-dark);--compare-cards-background:var(--tc-background-primary-dark);--compare-cards-card-background:var(--tc-background-secondary-dark);--compare-cards-text-color:var(--tc-text-primary-dark);--compare-cards-border-color:var(--tc-border-secondary-dark);--compare-cards-link-color:var(--tc-text-link-dark);--compare-cards-price-color:var(--tc-text-primary-dark)}.vat{color:var(--color-text-secondary);font:400 0.75rem/1rem Inter, Gilroy, Arial, sans-serif;display:flex;justify-content:center}.vat__text{width:100%;text-align:center;padding-top:0.5rem}.cards{display:flex;flex-direction:var(--compare-cards-flex-direction);flex-wrap:var(--compare-cards-wrap);gap:1rem;justify-content:center}.cards>*:nth-child(n+5){margin-top:1rem}.cards .tet-placeholder{--placeholder-border-radius:1.5rem}.cards .tet-compare-card{--compare-card-padding:var(--compare-cards-padding);--compare-card-price-padding:var(--compare-cards-price-padding);--compare-card-border-radius:var(--compare-cards-border-radius);--compare-card-new-price-font-size:var(--compare-cards-new-price-font-size);--compare-card-old-price-font-size:var(--compare-cards-old-price-font-size);--compare-card-new-currency-font-size:var(--compare-cards-new-currency-font-size);--compare-card-title-margin-top:var(--compare-cards-title-margin-top);--compare-card-helper-margin-top:var(--compare-cards-helper-margin-top);--compare-card-price-wrapper-margin-top:var(--compare-cards-price-wrapper-margin-top);--compare-card-secondary-link-font-size:var(--compare-cards-secondary-link-font-size);--compare-card-price-line-height:var(--compare-cards-price-line-height);--compare-card-thumbnail-display:var(--compare-cards-thumbnail-display);--compare-card-thumbnail-card-radius:var(--compare-cards-thumbnail-card-radius);--compare-card-thumbnail-card-width:var(--compare-cards-thumbnail-card-width)}.cards .tet-compare-card.dark{--compare-card-background-color:var(--tc-background-primary-dark);--compare-cards-background:var(--tc-background-primary-dark);--compare-cards-card-background:var(--tc-background-secondary-dark);--compare-cards-text-color:var(--tc-text-primary-dark);--compare-cards-border-color:var(--tc-border-secondary-dark);--compare-cards-link-color:var(--tc-text-link-dark);--compare-cards-price-color:var(--tc-text-primary-dark)}.cards .tet-compare-card--thumbnail{--compare-cards-card-max-width:var(--compare-card-thumbnail-card-width)}.cards .tet-compare-card[card-type=regular]{max-width:var(--compare-cards-card-max-width);width:100%}.cards.column-two{display:grid;grid-template-columns:repeat(2, minmax(19rem, 25rem))}.force-column .cards.column-two{grid-template-columns:minmax(1rem, 32rem)}.cards.column-four{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:1rem}.force-column .cards{--compare-cards-wrap:wrap;--compare-cards-flex-direction:column;align-items:var(--compare-cards-flex-align-items)}.force-column .cards>:nth-child(-n+4){margin-top:1rem}';const d=class{constructor(o){t(this,o),this.select=e(this,"tabSelected",7),this.dataName=void 0,this.defaultTab=0,this.parentContainer=document,this.useVisibility=!1,this.selectedId=void 0,this.previousDataName=void 0,this.previousParentContainer=void 0,this.theme=void 0}get element(){return o(this)}tabContentSlides=[];select;themeObserver;componentWillLoad(){this.previousDataName=this.dataName,this.previousParentContainer=this.parentContainer}componentDidLoad(){this.init(),this.selectTab(this.defaultTab)}onDataNameChange(t){t&&(this.detachOldListeners(),this.previousDataName=this.dataName,this.initTabEventHandler())}onParentContainerChange(){this.detachOldListeners(),this.previousParentContainer=this.parentContainer,this.initTabEventHandler()}async init(){this.initTabContentSlides(),this.initTabEventHandler(),this.initParentTheme()}initParentTheme(){const t=this.parentContainer.querySelector(`tet-tab-header[data-name="${this.dataName}"]`);this.theme=t?.getAttribute("theme")??""}initTabContentSlides(){this.tabContentSlides=Array.from(this.element.children);const t=this.parentContainer.querySelector(`tet-tab-header[data-name="${this.dataName}"]`),e=t?.getAttribute("data-id-suffix")??"";this.tabContentSlides.forEach(((t,o)=>{const r=t.firstElementChild;let a=!1;r&&(a=c(r)),t.setAttribute("role","tabpanel"),t.setAttribute("tabindex",a?"-1":"0"),t.setAttribute("id",`tabpanel-${o+1}-${e}`),t.setAttribute("aria-labelledby",`tab-${o+1}-${e}`),t.setAttribute("aria-hidden","true")}))}initTabEventHandler(){this.parentContainer.querySelectorAll(`tet-tab-header[data-name="${this.dataName}"]`).forEach(((t,e)=>{t.addEventListener("tabSelected",this.onTabSelect),0===e&&(this.themeObserver=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"theme"===t.attributeName&&this.initParentTheme()}))})),this.themeObserver.observe(t,{attributes:!0,attributeFilter:["theme"]}))}))}detachOldListeners(){this.themeObserver&&this.themeObserver.disconnect(),this.previousParentContainer.querySelectorAll(`tet-tab-header[data-name="${this.previousDataName}"]`).forEach((t=>{t.removeEventListener("tabSelected",this.onTabSelect)}))}onTabSelect=t=>{this.selectTab(t.detail.new)};async selectTab(t){if(!this.tabContentSlides.length)return;const e=Number.parseInt(t.toString());e.toString()===t.toString()&&(t=e),this.tabContentSlides.forEach((t=>{t.classList.remove("active"),t.setAttribute("aria-hidden","true")}));let o=this.tabContentSlides[0];if("number"==typeof t)this.tabContentSlides[t]&&(o=this.tabContentSlides[t]);else{const e=this.tabContentSlides.find((e=>e.getAttribute("data-name")===t));e&&(o=e)}o.classList.add("active"),o.setAttribute("aria-hidden","false"),this.select.emit({new:t,old:this.selectedId}),this.selectedId=t}render(){return r(a,{key:"ced475171679de9cca4b613f81f0d6c0badbf286"},r("div",{key:"55ab49bc392db797c16c37874fec99545e2a8de9",class:{"tet-tab-content":!0,"use-visibility":this.useVisibility,[this.theme]:!0}},r("slot",{key:"9e5e1dd3c987d5d899ac83a1cec08615e9732367"})))}static get watchers(){return{dataName:["onDataNameChange"],parentContainer:["onParentContainerChange"]}}};d.style=".tet-tab-content ::slotted(*){display:none}.tet-tab-content ::slotted(.active){display:block}.tet-tab-content ::slotted(.active:focus-visible){outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s;border-radius:0.125rem}.tet-tab-content.dark ::slotted(.active:focus-visible){outline:0.125rem solid var(--tc-blue-40);outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0.125rem;transition:outline 0s}.tet-tab-content.use-visibility ::slotted(*){visibility:hidden;position:absolute;top:-9999px;left:-9999px;right:9999px;display:block}.tet-tab-content.use-visibility ::slotted(.active){visibility:revert;position:relative;top:0;left:0}";export{l as tet_compare_cards,d as tet_tab_content}
1
+ import{r as t,c as e,g as o,h as r,H as a}from"./p-83f43fdd.js";import"./p-0ebbf5ef.js";import{p as i}from"./p-778c46a6.js";import{f as n}from"./p-25c9957d.js";import"./p-6e631dc7.js";const s=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","iframe",'[tabindex]:not([tabindex="-1"])',"audio[controls]","video[controls]","[contenteditable]"],c=t=>{if(!t)return!1;if((t=>t.matches(s.join(",")))(t))return!0;if(t instanceof HTMLElement&&t.shadowRoot&&t.shadowRoot.querySelectorAll(s.join(",")).length>0)return!0;for(const e of Array.from(t.children))if(c(e))return!0;return!1},l=class{constructor(o){t(this,o),this.compareCardDataChange=e(this,"compareCardDataChange",7),this.compareCardsDidRender=e(this,"compareCardsDidRender",7),this.data=void 0,this.vatText=void 0,this.forceColumn=void 0,this.theme=void 0,this.layout="default",this.cardScript=void 0,this.changedProductCode=void 0,this.isNetflixCard=!1,this.darkMode=!1,this.initializedState=!1,this.showLoader=!0}onDataChange(){this.compareCardDataChange.emit(),this.initializedState=!0}compareCardDataChange;compareCardsDidRender;onOptionSelected(t){const e=[];this.changedProductCode=t.detail.value,e.push(this.changedProductCode),this.getProductData(e.join(","),!1)}get host(){return o(this)}async componentWillLoad(){let t=[];this.data.forEach((e=>{void 0!==e.productCode&&(t.includes(e.productCode)||t.push(e.productCode))})),t.length>0?await this.getProductData(t.join(",")):this.showLoader=!1}async componentDidRender(){this.compareCardsDidRender.emit()}getProductData(t,e=!0){e&&(this.showLoader=!0),i(t).then((t=>{const e=[];this.data.forEach((o=>{let r=o.productCode;o.isNetflixCard&&(this.changedProductCode===o.secondaryProductCode?r=o.secondaryProductCode:this.changedProductCode===o.productCode&&(r=o.productCode));const a=t.products[r];a&&(o=n(o,r,a,this.theme)),e.push(o)})),this.data=e,this.showLoader=!1}))}renderLoader=()=>r("div",{class:"cards"},[...Array(3)].map((()=>[r("tet-placeholder",{class:"tet-placeholder",height:"27rem",width:"21.5rem",darkTheme:this.darkMode})])));render(){return r(a,{key:"ea0bfb6d0dbbd7fc5641ac5e8ce71faa130bc359",class:{"must-initialize":!0,initialized:this.initializedState}},this.showLoader?this.renderLoader():r("div",{class:{"tet-compare-cards-wrapper":!0,"force-column":this.forceColumn}},r("div",{class:{cards:!0,[`${this.layout}`]:!0}},this.data.map(((t,e)=>r("tet-compare-card",{class:{"tet-compare-card":!0,"tet-compare-card--thumbnail":!!t.thumbnail},index:e,language:t.language,options:t.options,"card-type":t.cardType,theme:t.theme,"best-choice":t.bestChoice,"color-icons":t.colorIcons,"full-height":t.fullHeight,"card-header":t.cardHeader,logo:t.logo,image:t.image,"card-background-color":t.cardBackgroundColor,"card-script":t.cardScript,hideBestChoiceBorder:t.hideBestChoiceBorder,withBorder:t.withBorder,"best-choice-text-position":t.bestChoiceTextPosition,bestChoiceTextFloating:t.bestChoiceTextFloating,priceShownVertically:t.priceShownVertically,"secondary-link-position":t.secondaryLinkPosition,thumbnail:t.thumbnail,thumbnailAlt:t.thumbnailAlt,showBulletPoints:t.showBulletPoints,showSubTitle:t.showSubTitle,showHelper:t.showHelper,isNetflixCard:t.isNetflixCard,darkMode:this.darkMode},r("div",{slot:"image-slot"},r("img",{style:{width:"100%"},src:t.image,alt:(t.image??"").split("/")?.pop()?.split(".")[0]??t.image})),r("div",{slot:"logo-slot"},r("img",{style:{width:"100%"},src:t.logo,alt:(t.logo??"").split("/")?.pop()?.split(".")[0]??t.logo})),r("div",{slot:"description-slot",innerHTML:t.cardDescription,class:this.darkMode?"dark":""}))))),this.vatText?r("div",{class:"vat"},r("div",{class:"vat__text",innerHTML:this.vatText})):""),this.cardScript?r("link",{href:this.cardScript,rel:"stylesheet",type:"text/css"}):"")}static get watchers(){return{data:["onDataChange"]}}};l.style=':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:root{--tet-link-color:var(--tc-text-primary);--tet-link-color-hover:var(--tc-text-secondary);--tet-link-color-active:var(--tc-text-tertiary);--tet-link-color-focus:var(--tc-blue-40);--tet-link-color-disabled:var(--tc-button-text-inverse-disabled);--tet-link-secondary-color:var(--tc-text-secondary);--tet-link-secondary-color-hover:var(--tc-text-primary)}.tet-link,.tet-link__arrow{text-decoration:underline;color:var(--tet-link-color);position:relative;line-height:1.5rem;cursor:pointer}.tet-link.dark,.tet-link__arrow.dark{--tet-link-color:var(--tc-text-primary-dark);--tet-link-color-hover:var(--tc-text-secondary-dark);--tet-link-color-active:var(--tc-text-tertiary-dark);--tet-link-color-focus:var(--tc-blue-40-dark);--tet-link-color-disabled:var(--tc-button-text-inverse-disabled-dark);--tet-link-secondary-color:var(--tc-text-secondary-dark);--tet-link-secondary-color-hover:var(--tc-text-primary-dark)}.tet-link.tet-link--secondary,.tet-link__arrow.tet-link--secondary{--tet-link-color:var(--tet-link-secondary-color);--tet-link-color-hover:var(--tet-link-secondary-color-hover)}.tet-link tet-icon,.tet-link__arrow tet-icon{--icon-color:var(--tet-link-color)}.tet-link:hover,.tet-link__arrow:hover{color:var(--tet-link-color-hover)}.tet-link:hover tet-icon,.tet-link__arrow:hover tet-icon{--icon-color:var(--tet-link-color-hover)}.tet-link:active,.tet-link__arrow:active{color:var(--tet-link-color-active)}.tet-link:active tet-icon,.tet-link__arrow:active tet-icon{--icon-color:var(--tet-link-color-active)}.tet-link:focus-visible,.tet-link__arrow:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s;outline-color:var(--tet-link-color-focus);border-radius:0.125rem}.tet-link.disabled,.tet-link__arrow.disabled{color:var(--tet-link-color-disabled);pointer-events:none;cursor:auto}.tet-link.disabled tet-icon,.tet-link__arrow.disabled tet-icon{--icon-color:var(--tet-link-color-disabled)}.tet-link.disabled:focus-visible,.tet-link__arrow.disabled:focus-visible{outline:none}.tet-link tet-icon,.tet-link__arrow tet-icon{padding-left:0.25rem;padding-right:0.25rem;--icon-container-display:inline-block}.tet-link__arrow{padding-right:1.5rem}.tet-link__arrow::after{content:"--\x3e";position:absolute;white-space:nowrap;display:inline-block;text-decoration:none;padding-left:0.25rem;letter-spacing:initial;transition:all 0.15s ease-in}.tet-link__arrow:hover::after{padding-left:0.375rem}:host{--compare-cards-wrap:nowrap;--compare-cards-flex-direction:row;--compare-cards-flex-align-items:center;--compare-cards-padding:1.5rem;--compare-cards-price-padding:0;--compare-cards-border-radius:1.5rem;--compare-cards-new-price-font-size:2.5rem;--compare-cards-old-price-font-size:1rem;--compare-cards-new-currency-font-size:1.125rem;--compare-cards-title-margin-top:1.25rem;--compare-cards-helper-margin-top:0;--compare-cards-card-max-width:32rem;--compare-cards-price-wrapper-margin-top:auto;--compare-cards-secondary-link-font-size:0.75rem;--compare-cards-price-line-height:3rem;--compare-cards-thumbnail-display:flex;--compare-cards-thumbnail-card-radius:0 var(--compare-cards-border-radius) var(--compare-cards-border-radius) 0;--compare-cards-thumbnail-card-width:44rem;display:block}:host([theme=dark]) .card,:host([theme=dark]){--compare-card-background-color:var(--tc-background-primary-dark);--compare-cards-background:var(--tc-background-primary-dark);--compare-cards-card-background:var(--tc-background-secondary-dark);--compare-cards-text-color:var(--tc-text-primary-dark);--compare-cards-border-color:var(--tc-border-secondary-dark);--compare-cards-link-color:var(--tc-text-link-dark);--compare-cards-price-color:var(--tc-text-primary-dark)}.vat{color:var(--color-text-secondary);font:400 0.75rem/1rem Inter, Gilroy, Arial, sans-serif;display:flex;justify-content:center}.vat__text{width:100%;text-align:center;padding-top:0.5rem}.cards{display:flex;flex-direction:var(--compare-cards-flex-direction);flex-wrap:var(--compare-cards-wrap);gap:1rem;justify-content:center}.cards>*:nth-child(n+5){margin-top:1rem}.cards .tet-placeholder{--placeholder-border-radius:1.5rem}.cards .tet-compare-card{--compare-card-padding:var(--compare-cards-padding);--compare-card-price-padding:var(--compare-cards-price-padding);--compare-card-border-radius:var(--compare-cards-border-radius);--compare-card-new-price-font-size:var(--compare-cards-new-price-font-size);--compare-card-old-price-font-size:var(--compare-cards-old-price-font-size);--compare-card-new-currency-font-size:var(--compare-cards-new-currency-font-size);--compare-card-title-margin-top:var(--compare-cards-title-margin-top);--compare-card-helper-margin-top:var(--compare-cards-helper-margin-top);--compare-card-price-wrapper-margin-top:var(--compare-cards-price-wrapper-margin-top);--compare-card-secondary-link-font-size:var(--compare-cards-secondary-link-font-size);--compare-card-price-line-height:var(--compare-cards-price-line-height);--compare-card-thumbnail-display:var(--compare-cards-thumbnail-display);--compare-card-thumbnail-card-radius:var(--compare-cards-thumbnail-card-radius);--compare-card-thumbnail-card-width:var(--compare-cards-thumbnail-card-width)}.cards .tet-compare-card.dark{--compare-card-background-color:var(--tc-background-primary-dark);--compare-cards-background:var(--tc-background-primary-dark);--compare-cards-card-background:var(--tc-background-secondary-dark);--compare-cards-text-color:var(--tc-text-primary-dark);--compare-cards-border-color:var(--tc-border-secondary-dark);--compare-cards-link-color:var(--tc-text-link-dark);--compare-cards-price-color:var(--tc-text-primary-dark)}.cards .tet-compare-card--thumbnail{--compare-cards-card-max-width:var(--compare-card-thumbnail-card-width)}.cards .tet-compare-card[card-type=regular]{max-width:var(--compare-cards-card-max-width);width:100%}.cards.column-two{display:grid;grid-template-columns:repeat(2, minmax(19rem, 25rem))}.force-column .cards.column-two{grid-template-columns:minmax(1rem, 32rem)}.cards.column-four{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:1rem}.force-column .cards{--compare-cards-wrap:wrap;--compare-cards-flex-direction:column;align-items:var(--compare-cards-flex-align-items)}.force-column .cards>:nth-child(-n+4){margin-top:1rem}';const d=class{constructor(o){t(this,o),this.select=e(this,"tabSelected",7),this.dataName=void 0,this.defaultTab=0,this.parentContainer=document,this.useVisibility=!1,this.selectedId=void 0,this.previousDataName=void 0,this.previousParentContainer=void 0,this.theme=void 0}get element(){return o(this)}tabContentSlides=[];select;themeObserver;componentWillLoad(){this.previousDataName=this.dataName,this.previousParentContainer=this.parentContainer}componentDidLoad(){this.init(),this.selectTab(this.defaultTab)}onDataNameChange(t){t&&(this.detachOldListeners(),this.previousDataName=this.dataName,this.initTabEventHandler())}onParentContainerChange(){this.detachOldListeners(),this.previousParentContainer=this.parentContainer,this.initTabEventHandler()}async init(){this.initTabContentSlides(),this.initTabEventHandler(),this.initParentTheme()}initParentTheme(){const t=this.parentContainer.querySelector(`tet-tab-header[data-name="${this.dataName}"]`);this.theme=t?.getAttribute("theme")??""}initTabContentSlides(){this.tabContentSlides=Array.from(this.element.children);const t=this.parentContainer.querySelector(`tet-tab-header[data-name="${this.dataName}"]`),e=t?.getAttribute("data-id-suffix")??"";this.tabContentSlides.forEach(((t,o)=>{const r=t.firstElementChild;let a=!1;r&&(a=c(r)),t.setAttribute("role","tabpanel"),t.setAttribute("tabindex",a?"-1":"0"),t.setAttribute("id",`tabpanel-${o+1}-${e}`),t.setAttribute("aria-labelledby",`tab-${o+1}-${e}`),t.setAttribute("aria-hidden","true")}))}initTabEventHandler(){this.parentContainer.querySelectorAll(`tet-tab-header[data-name="${this.dataName}"]`).forEach(((t,e)=>{t.addEventListener("tabSelected",this.onTabSelect),0===e&&(this.themeObserver=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"theme"===t.attributeName&&this.initParentTheme()}))})),this.themeObserver.observe(t,{attributes:!0,attributeFilter:["theme"]}))}))}detachOldListeners(){this.themeObserver&&this.themeObserver.disconnect(),this.previousParentContainer.querySelectorAll(`tet-tab-header[data-name="${this.previousDataName}"]`).forEach((t=>{t.removeEventListener("tabSelected",this.onTabSelect)}))}onTabSelect=t=>{this.selectTab(t.detail.new)};async selectTab(t){if(!this.tabContentSlides.length)return;const e=Number.parseInt(t.toString());e.toString()===t.toString()&&(t=e),this.tabContentSlides.forEach((t=>{t.classList.remove("active"),t.setAttribute("aria-hidden","true")}));let o=this.tabContentSlides[0];if("number"==typeof t)this.tabContentSlides[t]&&(o=this.tabContentSlides[t]);else{const e=this.tabContentSlides.find((e=>e.getAttribute("data-name")===t));e&&(o=e)}o.classList.add("active"),o.setAttribute("aria-hidden","false"),this.select.emit({new:t,old:this.selectedId}),this.selectedId=t}render(){return r(a,{key:"ced475171679de9cca4b613f81f0d6c0badbf286"},r("div",{key:"55ab49bc392db797c16c37874fec99545e2a8de9",class:{"tet-tab-content":!0,"use-visibility":this.useVisibility,[this.theme]:!0}},r("slot",{key:"9e5e1dd3c987d5d899ac83a1cec08615e9732367"})))}static get watchers(){return{dataName:["onDataNameChange"],parentContainer:["onParentContainerChange"]}}};d.style=".tet-tab-content ::slotted(*){display:none}.tet-tab-content ::slotted(.active){display:block}.tet-tab-content ::slotted(.active:focus-visible){outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s;border-radius:0.125rem}.tet-tab-content.dark ::slotted(.active:focus-visible){outline:0.125rem solid var(--tc-blue-40);outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0.125rem;transition:outline 0s}.tet-tab-content.use-visibility ::slotted(*){visibility:hidden;position:absolute;top:-9999px;left:-9999px;right:9999px;display:block}.tet-tab-content.use-visibility ::slotted(.active){visibility:revert;position:relative;top:0;left:0}";export{l as tet_compare_cards,d as tet_tab_content}