@tet/tet-components 1.4.155-testing → 1.4.156-production

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 (533) hide show
  1. package/dist/cjs/{http-codes-D7ffzpYW.js → http-codes-oHpK-Vsh.js} +1 -1
  2. package/dist/cjs/{index-BL_zVDFC.js → index-puzHM5yZ.js} +13 -13
  3. package/dist/cjs/{index-Dzs7Nkbj.js → index-t4WNVvo_.js} +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{product-comparison-DUzqZuWv.js → product-comparison-DAR6p-NV.js} +1 -1
  6. package/dist/cjs/{string-D0kCSyUd.js → string-CL-wkThZ.js} +0 -4
  7. package/dist/cjs/tet-accordion.cjs.entry.js +7 -7
  8. package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +4 -4
  9. package/dist/cjs/tet-address-offers-view.cjs.entry.js +5 -5
  10. package/dist/cjs/tet-address-offers_5.cjs.entry.js +11 -11
  11. package/dist/cjs/tet-assembler.cjs.entry.js +4 -4
  12. package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +3 -3
  13. package/dist/cjs/tet-autocomplete_2.cjs.entry.js +4 -4
  14. package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +7 -7
  15. package/dist/cjs/tet-b2b-configurator.cjs.entry.js +5 -5
  16. package/dist/cjs/tet-banner-nav.cjs.entry.js +4 -4
  17. package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
  18. package/dist/cjs/tet-border-radius.cjs.entry.js +2 -2
  19. package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
  20. package/dist/cjs/tet-business-compare-card.cjs.entry.js +3 -3
  21. package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
  22. package/dist/cjs/tet-button.cjs.entry.js +1 -1
  23. package/dist/cjs/tet-card-list.cjs.entry.js +5 -5
  24. package/dist/cjs/tet-carousel.cjs.entry.js +12 -12
  25. package/dist/cjs/tet-checkbox_3.cjs.entry.js +2 -2
  26. package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +4 -4
  27. package/dist/cjs/tet-cloud-configurator.cjs.entry.js +4 -4
  28. package/dist/cjs/tet-colors.cjs.entry.js +5 -5
  29. package/dist/cjs/tet-compare-card-v2.cjs.entry.js +3 -3
  30. package/dist/cjs/tet-compare-card-v3.cjs.entry.js +3 -3
  31. package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
  32. package/dist/cjs/tet-compare-cards_2.cjs.entry.js +5 -5
  33. package/dist/cjs/tet-components.cjs.js +2 -2
  34. package/dist/cjs/tet-container_2.cjs.entry.js +2 -2
  35. package/dist/cjs/tet-countdown.cjs.entry.js +2 -2
  36. package/dist/cjs/tet-counter.cjs.entry.js +1 -1
  37. package/dist/cjs/tet-dialog.cjs.entry.js +4 -4
  38. package/dist/cjs/tet-display.cjs.entry.js +1 -1
  39. package/dist/cjs/tet-divider.cjs.entry.js +1 -1
  40. package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
  41. package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
  42. package/dist/cjs/tet-expansion-panel.cjs.entry.js +2 -2
  43. package/dist/cjs/tet-feedback-form.cjs.entry.js +4 -4
  44. package/dist/cjs/tet-filter.cjs.entry.js +1 -1
  45. package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
  46. package/dist/cjs/tet-font-weight.cjs.entry.js +2 -2
  47. package/dist/cjs/tet-fonts.cjs.entry.js +2 -2
  48. package/dist/cjs/tet-grid.cjs.entry.js +2 -2
  49. package/dist/cjs/tet-icon.cjs.entry.js +3 -3
  50. package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
  51. package/dist/cjs/tet-input.cjs.entry.js +4 -4
  52. package/dist/cjs/tet-layout.cjs.entry.js +2 -2
  53. package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
  54. package/dist/cjs/tet-link.cjs.entry.js +2 -2
  55. package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
  56. package/dist/cjs/tet-menu.cjs.entry.js +1 -1
  57. package/dist/cjs/tet-mini-compare-card.cjs.entry.js +1 -1
  58. package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +5 -5
  59. package/dist/cjs/tet-navigation-mobile.cjs.entry.js +7 -7
  60. package/dist/cjs/tet-news-card-list.cjs.entry.js +2 -2
  61. package/dist/cjs/tet-news-card.cjs.entry.js +4 -29
  62. package/dist/cjs/tet-notification.cjs.entry.js +2 -2
  63. package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
  64. package/dist/cjs/tet-paginator.cjs.entry.js +5 -5
  65. package/dist/cjs/tet-placeholder.cjs.entry.js +3 -3
  66. package/dist/cjs/tet-position.cjs.entry.js +1 -1
  67. package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
  68. package/dist/cjs/tet-radio-blocks.cjs.entry.js +1 -1
  69. package/dist/cjs/tet-radio_2.cjs.entry.js +3 -3
  70. package/dist/cjs/tet-range-slider.cjs.entry.js +8 -8
  71. package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
  72. package/dist/cjs/tet-snicker-card-group.cjs.entry.js +1 -1
  73. package/dist/cjs/tet-snicker-card.cjs.entry.js +4 -4
  74. package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
  75. package/dist/cjs/tet-spinner.cjs.entry.js +4 -4
  76. package/dist/cjs/tet-stepper-input.cjs.entry.js +5 -5
  77. package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
  78. package/dist/cjs/tet-sticky-offer.cjs.entry.js +2 -2
  79. package/dist/cjs/tet-support-search.cjs.entry.js +2 -2
  80. package/dist/cjs/tet-switch.cjs.entry.js +1 -1
  81. package/dist/cjs/tet-table.cjs.entry.js +1 -1
  82. package/dist/cjs/tet-tag_2.cjs.entry.js +6 -6
  83. package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
  84. package/dist/cjs/tet-text.cjs.entry.js +1 -1
  85. package/dist/cjs/tet-textarea.cjs.entry.js +3 -3
  86. package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +4 -4
  87. package/dist/cjs/tet-tv-program-channel-picker_2.cjs.entry.js +536 -0
  88. package/dist/cjs/tet-tv-program.cjs.entry.js +19 -0
  89. package/dist/cjs/{translations-Uvcq4kv8.js → translations-D5zHdnnh.js} +2 -2
  90. package/dist/cjs/{typecheck--Bs-bZ_K.js → typecheck-Do6mN8Vg.js} +0 -2
  91. package/dist/cjs/visibility-observer-Coef27xg.js +30 -0
  92. package/dist/collection/assets/icons/tc/tc-infinity.svg +3 -0
  93. package/dist/collection/assets/icons/tc-icons.svg +2 -0
  94. package/dist/collection/collection-manifest.json +3 -0
  95. package/dist/collection/components/advanced/address/tet-address-offers-filters/tet-address-offers-filters.js +1 -1
  96. package/dist/collection/components/advanced/address/tet-address-search/tet-address-search.js +3 -3
  97. package/dist/collection/components/advanced/address/tet-autocomplete-dropdown/tet-autocomplete-dropdown.js +1 -1
  98. package/dist/collection/components/advanced/cards/tet-business-compare-card/tet-business-compare-card.js +2 -2
  99. package/dist/collection/components/advanced/cards/tet-card-list/tet-card-list.js +4 -4
  100. package/dist/collection/components/advanced/cards/tet-news-card/tet-news-card.js +1 -1
  101. package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/tet-multi-step-dialog.js +1 -1
  102. package/dist/collection/components/advanced/forms/tet-availability-contact-form/tet-availability-contact-form.js +1 -1
  103. package/dist/collection/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.js +3 -3
  104. package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-content/tet-tab-content.js +2 -2
  105. package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-header/tet-tab-header.js +2 -2
  106. package/dist/collection/components/basic/buttons/tet-tag/tet-tag.js +2 -2
  107. package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +10 -10
  108. package/dist/collection/components/basic/loaders/tet-loader/tet-loader.js +1 -1
  109. package/dist/collection/components/basic/loaders/tet-placeholder/tet-placeholder.css +9 -3
  110. package/dist/collection/components/basic/loaders/tet-placeholder/tet-placeholder.js +1 -1
  111. package/dist/collection/components/basic/loaders/tet-spinner/tet-spinner.js +3 -3
  112. package/dist/collection/components/basic/misc/tet-countdown/tet-countdown.js +1 -1
  113. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.js +2 -2
  114. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.js +1 -1
  115. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.js +1 -1
  116. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.js +1 -1
  117. package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.js +4 -4
  118. package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.js +7 -7
  119. package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.js +1 -1
  120. package/dist/collection/components/simple/inputs/tet-textarea/tet-textarea.js +2 -2
  121. package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +1 -1
  122. package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js +3 -3
  123. package/dist/collection/components/simple/menu/tet-paginator/tet-paginator.js +1 -1
  124. package/dist/collection/components/simple/misc/tet-sticky-offer/tet-sticky-offer.js +1 -1
  125. package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +6 -6
  126. package/dist/collection/components/simple/structural/tet-expansion-panel/tet-expansion-panel.js +1 -1
  127. package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.js +1 -1
  128. package/dist/collection/components/simple/text-blocks/tet-tooltip/tet-tooltip.js +1 -1
  129. package/dist/collection/components/views/tet-address-offers-view/tet-address-offers-view.js +1 -1
  130. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.css +200 -0
  131. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.js +438 -0
  132. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.css +227 -0
  133. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.js +403 -0
  134. package/dist/collection/components/views/tet-tv-program/tet-tv-program.css +3 -0
  135. package/dist/collection/components/views/tet-tv-program/tet-tv-program.js +51 -0
  136. package/dist/collection/docs/styling/border-radius/tet-border-radius.js +1 -1
  137. package/dist/collection/docs/styling/colors/tet-colors.js +4 -4
  138. package/dist/collection/docs/styling/font-weight/tet-font-weight.js +1 -1
  139. package/dist/collection/docs/styling/fonts/tet-fonts.js +1 -1
  140. package/dist/collection/docs/styling/layout/tet-layout.js +1 -1
  141. package/dist/collection/docs/styling/link/tet-link.js +1 -1
  142. package/dist/collection/docs/styling/spacing/tet-spacing.js +1 -1
  143. package/dist/collection/docs/styling/tet-grid/tet-grid.js +1 -1
  144. package/dist/collection/services/utils/visibility-observer.js +2 -1
  145. package/dist/components/assets/icons/tc/tc-infinity.svg +3 -0
  146. package/dist/components/assets/icons/tc-icons.svg +2 -0
  147. package/dist/components/index.js +1 -1
  148. package/dist/components/{p-CSFy0ZOg.js → p-79Qa1DK2.js} +1 -1
  149. package/dist/components/{p-BIYngV7t.js → p-8pxXtKqI.js} +1 -1
  150. package/dist/components/{p-D1gY6lWT.js → p-AzSj-eml.js} +1 -1
  151. package/dist/components/p-B7F8WcB_.js +1 -0
  152. package/dist/components/{p-BHj1lA0b.js → p-BAf_O-kb.js} +1 -1
  153. package/dist/components/{p-B9bE6qY-.js → p-BDEIj3j6.js} +1 -1
  154. package/dist/components/{p-B-M2I3nG.js → p-BHwwcLhF.js} +1 -1
  155. package/dist/components/p-BIGo0rq3.js +1 -0
  156. package/dist/components/{p-Cor3VECP.js → p-BMX43eZF.js} +1 -1
  157. package/dist/components/{p-YP4S-sZr.js → p-BOBphMbp.js} +1 -1
  158. package/dist/components/{p-Cx2KtaIS.js → p-BOS_HT6p.js} +1 -1
  159. package/dist/components/{p-DesVo0z4.js → p-Baz1tNCV.js} +1 -1
  160. package/dist/components/{p-DsRgePgU.js → p-Bcv8ei49.js} +1 -1
  161. package/dist/components/p-BdMiAoro.js +1 -0
  162. package/dist/components/{p-iskuLYNx.js → p-BhXr_N4d.js} +1 -1
  163. package/dist/components/{p-OQhv4b9F.js → p-C50q8-fi.js} +1 -1
  164. package/dist/components/{p-Co1hjc3s.js → p-C5d7kQcA.js} +1 -1
  165. package/dist/components/{p-DCDEvk-9.js → p-C8PVLroR.js} +1 -1
  166. package/dist/components/p-CEbqKP1h.js +1 -0
  167. package/dist/components/{p-DRrLXWjt.js → p-CEyoGS5R.js} +1 -1
  168. package/dist/components/{p-CMxcvnRv.js → p-CKWJROPt.js} +1 -1
  169. package/dist/components/{p-Ca1FWlv7.js → p-CU8Cp-HR.js} +1 -1
  170. package/dist/components/p-CWuhYFDW.js +1 -0
  171. package/dist/components/{p-BWhbMR4x.js → p-CZKkgmI5.js} +1 -1
  172. package/dist/components/{p-Co8fuxx1.js → p-CeMqexKQ.js} +1 -1
  173. package/dist/components/{p-B5Dk5hzj.js → p-Ch9O60SQ.js} +1 -1
  174. package/dist/components/{p-BOVU0z8h.js → p-CioY7Olt.js} +1 -1
  175. package/dist/components/{p-DszwT3ye.js → p-CpJ_GE1B.js} +1 -1
  176. package/dist/components/{p-DGpl5Py7.js → p-CpyGYYPQ.js} +1 -1
  177. package/dist/components/{p-JbKpKbEr.js → p-D4MolLd8.js} +1 -1
  178. package/dist/components/{p-iYhyyBx7.js → p-D67l6-0a.js} +1 -1
  179. package/dist/components/{p-CXef17B1.js → p-DDYXXKzr.js} +1 -1
  180. package/dist/components/{p-B3dJMfnA.js → p-DGv9agNo.js} +1 -1
  181. package/dist/components/{p-ZrIqsu-D.js → p-DTOuhcpL.js} +1 -1
  182. package/dist/components/{p-ClIOIvnY.js → p-DTXQQ3yQ.js} +1 -1
  183. package/dist/components/{p-DN2JwXg9.js → p-DZRioc0D.js} +1 -1
  184. package/dist/components/{p-DBONF873.js → p-DaYJPQ1g.js} +1 -1
  185. package/dist/components/{p-CebBgDcM.js → p-Ddoy5ttY.js} +1 -1
  186. package/dist/components/p-DdqamPtp.js +1 -0
  187. package/dist/components/{p-CqWEjd1z.js → p-DnYku8t4.js} +1 -1
  188. package/dist/components/{p-MXbMDJMH.js → p-DobMlMDf.js} +1 -1
  189. package/dist/components/p-DuHCcTbE.js +1 -0
  190. package/dist/components/{p-D8Xy3-us.js → p-Dz0s7ewh.js} +1 -1
  191. package/dist/components/{p-DxMWyVOs.js → p-QlyBltAE.js} +1 -1
  192. package/dist/components/{p-euerg1lg.js → p-XAZAnDvX.js} +1 -1
  193. package/dist/components/p-_2UzwYR8.js +1 -0
  194. package/dist/components/{p-B8Kug3o4.js → p-bpJ--0b-.js} +1 -1
  195. package/dist/components/p-e4DwrsCE.js +1 -0
  196. package/dist/components/{p-Br4jWI9B.js → p-fUGNvavt.js} +1 -1
  197. package/dist/components/{p-Bw-D7nPx.js → p-sp4th_AU.js} +1 -1
  198. package/dist/components/{p-CE7y_FPY.js → p-uKtVLC1S.js} +1 -1
  199. package/dist/components/{p-BdH-lygG.js → p-vwGsm9v4.js} +1 -1
  200. package/dist/components/tet-accordion.js +1 -1
  201. package/dist/components/tet-address-offers-filters-products.js +1 -1
  202. package/dist/components/tet-address-offers-filters.js +1 -1
  203. package/dist/components/tet-address-offers-view.js +1 -1
  204. package/dist/components/tet-address-offers.js +1 -1
  205. package/dist/components/tet-address-search.js +1 -1
  206. package/dist/components/tet-assembler.js +1 -1
  207. package/dist/components/tet-asset-availability-addresses.js +1 -1
  208. package/dist/components/tet-autocomplete-dropdown.js +1 -1
  209. package/dist/components/tet-autocomplete.js +1 -1
  210. package/dist/components/tet-availability-contact-form.js +1 -1
  211. package/dist/components/tet-b2b-check-out-form.js +1 -1
  212. package/dist/components/tet-b2b-compare-card.js +1 -1
  213. package/dist/components/tet-b2b-configurator-cart.js +1 -1
  214. package/dist/components/tet-b2b-configurator.js +1 -1
  215. package/dist/components/tet-banner-nav.js +1 -1
  216. package/dist/components/tet-bar-graph.js +1 -1
  217. package/dist/components/tet-border-radius.js +1 -1
  218. package/dist/components/tet-business-card.js +1 -1
  219. package/dist/components/tet-business-compare-card.js +1 -1
  220. package/dist/components/tet-business-navigation.js +1 -1
  221. package/dist/components/tet-business-round-stepper.js +1 -1
  222. package/dist/components/tet-business-summary-card.js +1 -1
  223. package/dist/components/tet-button.js +1 -1
  224. package/dist/components/tet-card-list.js +1 -1
  225. package/dist/components/tet-carousel.js +1 -1
  226. package/dist/components/tet-checkbox.js +1 -1
  227. package/dist/components/tet-cloud-application-form-dialog.js +1 -1
  228. package/dist/components/tet-cloud-configurator.js +1 -1
  229. package/dist/components/tet-colors.js +1 -1
  230. package/dist/components/tet-compare-card-v2.js +1 -1
  231. package/dist/components/tet-compare-card-v3.js +1 -1
  232. package/dist/components/tet-compare-card.js +1 -1
  233. package/dist/components/tet-compare-cards-tab.js +1 -1
  234. package/dist/components/tet-compare-cards.js +1 -1
  235. package/dist/components/tet-container.js +1 -1
  236. package/dist/components/tet-countdown.js +1 -1
  237. package/dist/components/tet-counter.js +1 -1
  238. package/dist/components/tet-dialog.js +1 -1
  239. package/dist/components/tet-display.js +1 -1
  240. package/dist/components/tet-divider.js +1 -1
  241. package/dist/components/tet-dropdown.js +1 -1
  242. package/dist/components/tet-dynamic-card.js +1 -1
  243. package/dist/components/tet-expandable-input.js +1 -1
  244. package/dist/components/tet-expansion-panel.js +1 -1
  245. package/dist/components/tet-feedback-form.js +1 -1
  246. package/dist/components/tet-filter.js +1 -1
  247. package/dist/components/tet-floating-block.js +1 -1
  248. package/dist/components/tet-font-weight.js +1 -1
  249. package/dist/components/tet-fonts.js +1 -1
  250. package/dist/components/tet-grid.js +1 -1
  251. package/dist/components/tet-icon.js +1 -1
  252. package/dist/components/tet-inline-message.js +1 -1
  253. package/dist/components/tet-input.js +1 -1
  254. package/dist/components/tet-layout.js +1 -1
  255. package/dist/components/tet-link-card-list.js +1 -1
  256. package/dist/components/tet-link.js +1 -1
  257. package/dist/components/tet-loader.js +1 -1
  258. package/dist/components/tet-menu-mobile.js +1 -1
  259. package/dist/components/tet-menu.js +1 -1
  260. package/dist/components/tet-mini-compare-card.js +1 -1
  261. package/dist/components/tet-multi-step-dialog.js +1 -1
  262. package/dist/components/tet-navigation-mobile.js +1 -1
  263. package/dist/components/tet-news-card-list.js +1 -1
  264. package/dist/components/tet-news-card.js +1 -1
  265. package/dist/components/tet-notification.js +1 -1
  266. package/dist/components/tet-number-input.js +1 -1
  267. package/dist/components/tet-paginator.js +1 -1
  268. package/dist/components/tet-placeholder.js +1 -1
  269. package/dist/components/tet-position.js +1 -1
  270. package/dist/components/tet-price-view.js +1 -1
  271. package/dist/components/tet-radio-blocks.js +1 -1
  272. package/dist/components/tet-radio.js +1 -1
  273. package/dist/components/tet-range-slider.js +1 -1
  274. package/dist/components/tet-round-stepper.js +1 -1
  275. package/dist/components/tet-selection-list.js +1 -1
  276. package/dist/components/tet-snicker-card-group.js +1 -1
  277. package/dist/components/tet-snicker-card.js +1 -1
  278. package/dist/components/tet-spacing.js +1 -1
  279. package/dist/components/tet-spinner.js +1 -1
  280. package/dist/components/tet-stepper-input.js +1 -1
  281. package/dist/components/tet-stepper-v3.js +1 -1
  282. package/dist/components/tet-sticky-offer.js +1 -1
  283. package/dist/components/tet-support-search.js +1 -1
  284. package/dist/components/tet-switch.js +1 -1
  285. package/dist/components/tet-tab-content.js +1 -1
  286. package/dist/components/tet-tab-header.js +1 -1
  287. package/dist/components/tet-table.js +1 -1
  288. package/dist/components/tet-tag-group.js +1 -1
  289. package/dist/components/tet-tag.js +1 -1
  290. package/dist/components/tet-text-list.js +1 -1
  291. package/dist/components/tet-text.js +1 -1
  292. package/dist/components/tet-textarea.js +1 -1
  293. package/dist/components/tet-thank-you-view-v3.js +1 -1
  294. package/dist/components/tet-tooltip.js +1 -1
  295. package/dist/components/tet-tv-program-channel-picker.d.ts +11 -0
  296. package/dist/components/tet-tv-program-channel-picker.js +1 -0
  297. package/dist/components/tet-tv-program-date-picker.d.ts +11 -0
  298. package/dist/components/tet-tv-program-date-picker.js +1 -0
  299. package/dist/components/{tet-datepicker.d.ts → tet-tv-program.d.ts} +4 -4
  300. package/dist/components/tet-tv-program.js +1 -0
  301. package/dist/esm/{http-codes-BQGPgOl6.js → http-codes-Db3nijH5.js} +1 -1
  302. package/dist/esm/{index-DScZlZas.js → index-BwDyy0_n.js} +1 -1
  303. package/dist/esm/{index-BGB6gNkz.js → index-Pqdi2xbP.js} +13 -13
  304. package/dist/esm/loader.js +3 -3
  305. package/dist/esm/{product-comparison-DUVV7BFR.js → product-comparison-dUap5wKc.js} +1 -1
  306. package/dist/esm/{string-D0GJDW-O.js → string-C9BlrGW8.js} +1 -4
  307. package/dist/esm/tet-accordion.entry.js +7 -7
  308. package/dist/esm/tet-address-offers-filters-products_2.entry.js +4 -4
  309. package/dist/esm/tet-address-offers-view.entry.js +5 -5
  310. package/dist/esm/tet-address-offers_5.entry.js +11 -11
  311. package/dist/esm/tet-assembler.entry.js +4 -4
  312. package/dist/esm/tet-autocomplete-dropdown.entry.js +3 -3
  313. package/dist/esm/tet-autocomplete_2.entry.js +4 -4
  314. package/dist/esm/tet-b2b-check-out-form_5.entry.js +7 -7
  315. package/dist/esm/tet-b2b-configurator.entry.js +5 -5
  316. package/dist/esm/tet-banner-nav.entry.js +4 -4
  317. package/dist/esm/tet-bar-graph.entry.js +1 -1
  318. package/dist/esm/tet-border-radius.entry.js +2 -2
  319. package/dist/esm/tet-business-card.entry.js +1 -1
  320. package/dist/esm/tet-business-compare-card.entry.js +3 -3
  321. package/dist/esm/tet-business-round-stepper.entry.js +1 -1
  322. package/dist/esm/tet-button.entry.js +1 -1
  323. package/dist/esm/tet-card-list.entry.js +5 -5
  324. package/dist/esm/tet-carousel.entry.js +12 -12
  325. package/dist/esm/tet-checkbox_3.entry.js +2 -2
  326. package/dist/esm/tet-cloud-application-form-dialog.entry.js +4 -4
  327. package/dist/esm/tet-cloud-configurator.entry.js +4 -4
  328. package/dist/esm/tet-colors.entry.js +5 -5
  329. package/dist/esm/tet-compare-card-v2.entry.js +3 -3
  330. package/dist/esm/tet-compare-card-v3.entry.js +3 -3
  331. package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
  332. package/dist/esm/tet-compare-cards_2.entry.js +5 -5
  333. package/dist/esm/tet-components.js +3 -3
  334. package/dist/esm/tet-container_2.entry.js +2 -2
  335. package/dist/esm/tet-countdown.entry.js +2 -2
  336. package/dist/esm/tet-counter.entry.js +1 -1
  337. package/dist/esm/tet-dialog.entry.js +4 -4
  338. package/dist/esm/tet-display.entry.js +1 -1
  339. package/dist/esm/tet-divider.entry.js +1 -1
  340. package/dist/esm/tet-dynamic-card.entry.js +1 -1
  341. package/dist/esm/tet-expandable-input.entry.js +1 -1
  342. package/dist/esm/tet-expansion-panel.entry.js +2 -2
  343. package/dist/esm/tet-feedback-form.entry.js +4 -4
  344. package/dist/esm/tet-filter.entry.js +1 -1
  345. package/dist/esm/tet-floating-block.entry.js +1 -1
  346. package/dist/esm/tet-font-weight.entry.js +2 -2
  347. package/dist/esm/tet-fonts.entry.js +2 -2
  348. package/dist/esm/tet-grid.entry.js +2 -2
  349. package/dist/esm/tet-icon.entry.js +3 -3
  350. package/dist/esm/tet-inline-message.entry.js +1 -1
  351. package/dist/esm/tet-input.entry.js +4 -4
  352. package/dist/esm/tet-layout.entry.js +2 -2
  353. package/dist/esm/tet-link-card-list.entry.js +1 -1
  354. package/dist/esm/tet-link.entry.js +2 -2
  355. package/dist/esm/tet-menu-mobile.entry.js +1 -1
  356. package/dist/esm/tet-menu.entry.js +1 -1
  357. package/dist/esm/tet-mini-compare-card.entry.js +1 -1
  358. package/dist/esm/tet-multi-step-dialog.entry.js +5 -5
  359. package/dist/esm/tet-navigation-mobile.entry.js +7 -7
  360. package/dist/esm/tet-news-card-list.entry.js +2 -2
  361. package/dist/esm/tet-news-card.entry.js +3 -28
  362. package/dist/esm/tet-notification.entry.js +2 -2
  363. package/dist/esm/tet-number-input.entry.js +1 -1
  364. package/dist/esm/tet-paginator.entry.js +5 -5
  365. package/dist/esm/tet-placeholder.entry.js +3 -3
  366. package/dist/esm/tet-position.entry.js +1 -1
  367. package/dist/esm/tet-price-view.entry.js +1 -1
  368. package/dist/esm/tet-radio-blocks.entry.js +1 -1
  369. package/dist/esm/tet-radio_2.entry.js +3 -3
  370. package/dist/esm/tet-range-slider.entry.js +8 -8
  371. package/dist/esm/tet-round-stepper.entry.js +1 -1
  372. package/dist/esm/tet-snicker-card-group.entry.js +1 -1
  373. package/dist/esm/tet-snicker-card.entry.js +4 -4
  374. package/dist/esm/tet-spacing.entry.js +2 -2
  375. package/dist/esm/tet-spinner.entry.js +4 -4
  376. package/dist/esm/tet-stepper-input.entry.js +5 -5
  377. package/dist/esm/tet-stepper-v3.entry.js +1 -1
  378. package/dist/esm/tet-sticky-offer.entry.js +2 -2
  379. package/dist/esm/tet-support-search.entry.js +2 -2
  380. package/dist/esm/tet-switch.entry.js +1 -1
  381. package/dist/esm/tet-table.entry.js +1 -1
  382. package/dist/esm/tet-tag_2.entry.js +6 -6
  383. package/dist/esm/tet-text-list.entry.js +1 -1
  384. package/dist/esm/tet-text.entry.js +1 -1
  385. package/dist/esm/tet-textarea.entry.js +3 -3
  386. package/dist/esm/tet-thank-you-view-v3.entry.js +4 -4
  387. package/dist/esm/tet-tv-program-channel-picker_2.entry.js +533 -0
  388. package/dist/esm/tet-tv-program.entry.js +17 -0
  389. package/dist/esm/{translations-Dc2OQnbI.js → translations-86O17evG.js} +2 -2
  390. package/dist/esm/{typecheck-Bvqcvhjw.js → typecheck-CaZKtSyx.js} +1 -2
  391. package/dist/esm/visibility-observer-DdqamPtp.js +28 -0
  392. package/dist/tet-components/assets/icons/tc/tc-infinity.svg +3 -0
  393. package/dist/tet-components/assets/icons/tc-icons.svg +2 -0
  394. package/dist/tet-components/{p-0c0dec4c.entry.js → p-0033b358.entry.js} +1 -1
  395. package/dist/tet-components/{p-3ae8cca8.entry.js → p-08b02e0e.entry.js} +1 -1
  396. package/dist/tet-components/{p-0e32545c.entry.js → p-0d5fcbc7.entry.js} +1 -1
  397. package/dist/tet-components/{p-74ccd606.entry.js → p-0dc7e52f.entry.js} +1 -1
  398. package/dist/tet-components/{p-78975957.entry.js → p-11e0a4c1.entry.js} +1 -1
  399. package/dist/tet-components/{p-01577a41.entry.js → p-12631d81.entry.js} +1 -1
  400. package/dist/tet-components/{p-c97d7c52.entry.js → p-12cda941.entry.js} +1 -1
  401. package/dist/tet-components/{p-830e4fe6.entry.js → p-160bf328.entry.js} +1 -1
  402. package/dist/tet-components/{p-512e516b.entry.js → p-188ce1dd.entry.js} +1 -1
  403. package/dist/tet-components/{p-ecdaf331.entry.js → p-227c5237.entry.js} +1 -1
  404. package/dist/tet-components/{p-c9c4656e.entry.js → p-26583aa4.entry.js} +1 -1
  405. package/dist/tet-components/{p-a240b7c2.entry.js → p-28df50ce.entry.js} +1 -1
  406. package/dist/tet-components/{p-632d382c.entry.js → p-2b3f3308.entry.js} +1 -1
  407. package/dist/tet-components/{p-3af65955.entry.js → p-2f1fb5d8.entry.js} +1 -1
  408. package/dist/tet-components/{p-122d141d.entry.js → p-3072df67.entry.js} +1 -1
  409. package/dist/tet-components/{p-acdbec26.entry.js → p-33e92f72.entry.js} +1 -1
  410. package/dist/tet-components/{p-ad0b78d5.entry.js → p-36a4d956.entry.js} +1 -1
  411. package/dist/tet-components/{p-380c13f1.entry.js → p-37a1db2e.entry.js} +1 -1
  412. package/dist/tet-components/p-386eca79.entry.js +1 -0
  413. package/dist/tet-components/{p-fbb45705.entry.js → p-38a487ff.entry.js} +1 -1
  414. package/dist/tet-components/{p-a560fec1.entry.js → p-3f524c8d.entry.js} +1 -1
  415. package/dist/tet-components/{p-41763924.entry.js → p-413bdca4.entry.js} +1 -1
  416. package/dist/tet-components/{p-1c254d23.entry.js → p-43f24feb.entry.js} +1 -1
  417. package/dist/tet-components/{p-8310d42d.entry.js → p-44274421.entry.js} +1 -1
  418. package/dist/tet-components/p-48080fa2.entry.js +1 -0
  419. package/dist/tet-components/{p-6bc9b958.entry.js → p-50b880c4.entry.js} +1 -1
  420. package/dist/tet-components/{p-9ca86779.entry.js → p-530b5ad5.entry.js} +1 -1
  421. package/dist/tet-components/{p-386be2d5.entry.js → p-5de0dfcb.entry.js} +1 -1
  422. package/dist/tet-components/{p-cc3e87fe.entry.js → p-5eb7d25a.entry.js} +1 -1
  423. package/dist/tet-components/p-613a9c50.entry.js +1 -0
  424. package/dist/tet-components/{p-11a66d8a.entry.js → p-63576f32.entry.js} +1 -1
  425. package/dist/tet-components/{p-6a8f5935.entry.js → p-6687eb0c.entry.js} +1 -1
  426. package/dist/tet-components/{p-e7e18cc4.entry.js → p-66c3e3df.entry.js} +1 -1
  427. package/dist/tet-components/p-6cc6a8db.entry.js +1 -0
  428. package/dist/tet-components/{p-db2a72c7.entry.js → p-6d3543e5.entry.js} +1 -1
  429. package/dist/tet-components/{p-e0752dc6.entry.js → p-6de668f5.entry.js} +1 -1
  430. package/dist/tet-components/{p-47b65d11.entry.js → p-6f8eeb3e.entry.js} +1 -1
  431. package/dist/tet-components/{p-37c3f4c6.entry.js → p-724e2781.entry.js} +1 -1
  432. package/dist/tet-components/{p-2c84bff1.entry.js → p-7411c26d.entry.js} +1 -1
  433. package/dist/tet-components/{p-de8125d5.entry.js → p-7809088d.entry.js} +1 -1
  434. package/dist/tet-components/{p-9d103705.entry.js → p-7cc1f029.entry.js} +1 -1
  435. package/dist/tet-components/{p-cd7efc99.entry.js → p-817159e1.entry.js} +1 -1
  436. package/dist/tet-components/{p-ad8622a2.entry.js → p-86952753.entry.js} +1 -1
  437. package/dist/tet-components/{p-bb16b0e5.entry.js → p-8742a416.entry.js} +1 -1
  438. package/dist/tet-components/{p-6146284d.entry.js → p-8796553b.entry.js} +1 -1
  439. package/dist/tet-components/{p-2ac83b4c.entry.js → p-87eab542.entry.js} +1 -1
  440. package/dist/tet-components/{p-4db60df6.entry.js → p-8814294c.entry.js} +1 -1
  441. package/dist/tet-components/{p-ec596eb2.entry.js → p-88a85db8.entry.js} +1 -1
  442. package/dist/tet-components/p-8a703ca7.entry.js +1 -0
  443. package/dist/tet-components/{p-38459b69.entry.js → p-8b0a8ab1.entry.js} +1 -1
  444. package/dist/tet-components/{p-c2d6ac75.entry.js → p-8c4ab7a1.entry.js} +1 -1
  445. package/dist/tet-components/{p-fa83efb2.entry.js → p-95e8359c.entry.js} +1 -1
  446. package/dist/tet-components/{p-c96c5b96.entry.js → p-974ed233.entry.js} +1 -1
  447. package/dist/tet-components/{p-0996dd5a.entry.js → p-9cd7e838.entry.js} +1 -1
  448. package/dist/tet-components/{p-a96d7e90.entry.js → p-9ce84cc8.entry.js} +1 -1
  449. package/dist/tet-components/{p-DbJll7nz.js → p-B7QSqkXs.js} +1 -1
  450. package/dist/tet-components/p-BxMAl4Ol.js +1 -0
  451. package/dist/tet-components/p-C9BlrGW8.js +1 -0
  452. package/dist/tet-components/{p-DX1IQAn5.js → p-CZm2B2F9.js} +1 -1
  453. package/dist/tet-components/p-CaZKtSyx.js +1 -0
  454. package/dist/tet-components/p-DdqamPtp.js +1 -0
  455. package/dist/{components/p-lEX8wezw.js → tet-components/p-OiVa1VV1.js} +1 -1
  456. package/dist/tet-components/p-Pqdi2xbP.js +3 -0
  457. package/dist/tet-components/{p-9cee887f.entry.js → p-a10e05b0.entry.js} +1 -1
  458. package/dist/tet-components/{p-f23fbdab.entry.js → p-a1adcc35.entry.js} +1 -1
  459. package/dist/tet-components/{p-30523176.entry.js → p-aa538d1c.entry.js} +1 -1
  460. package/dist/tet-components/{p-7338bab9.entry.js → p-af90f478.entry.js} +1 -1
  461. package/dist/tet-components/{p-49ba40a1.entry.js → p-b0073cd0.entry.js} +1 -1
  462. package/dist/tet-components/{p-7cc6b959.entry.js → p-b09e9aa4.entry.js} +1 -1
  463. package/dist/tet-components/{p-c6dc0917.entry.js → p-b239d172.entry.js} +1 -1
  464. package/dist/tet-components/{p-11ed5b55.entry.js → p-c055c92b.entry.js} +1 -1
  465. package/dist/tet-components/p-c0d9e9e8.entry.js +1 -0
  466. package/dist/tet-components/{p-4b92e8e6.entry.js → p-c1af090d.entry.js} +1 -1
  467. package/dist/tet-components/{p-0386aeb9.entry.js → p-c46fa871.entry.js} +1 -1
  468. package/dist/tet-components/{p-129027b6.entry.js → p-ceccc970.entry.js} +1 -1
  469. package/dist/tet-components/{p-b3acb430.entry.js → p-d2b05a14.entry.js} +1 -1
  470. package/dist/tet-components/{p-b8b2a9f5.entry.js → p-d790f6de.entry.js} +1 -1
  471. package/dist/tet-components/{p-a4d98d8f.entry.js → p-d7db3443.entry.js} +1 -1
  472. package/dist/tet-components/{p-51e6df01.entry.js → p-dc106bf5.entry.js} +1 -1
  473. package/dist/tet-components/{p-e2d4e5c3.entry.js → p-dccf260d.entry.js} +1 -1
  474. package/dist/tet-components/{p-f5cf45c1.entry.js → p-ddb6d6c1.entry.js} +1 -1
  475. package/dist/tet-components/{p-a579df12.entry.js → p-e23942f5.entry.js} +1 -1
  476. package/dist/tet-components/{p-185e98b4.entry.js → p-e3f77ab0.entry.js} +1 -1
  477. package/dist/tet-components/{p-1b29e5f2.entry.js → p-e53dee37.entry.js} +1 -1
  478. package/dist/tet-components/{p-b31a3fa1.entry.js → p-e5ade6a8.entry.js} +1 -1
  479. package/dist/tet-components/{p-4a39f6bc.entry.js → p-e76ea04f.entry.js} +1 -1
  480. package/dist/tet-components/{p-24058988.entry.js → p-eaf808b1.entry.js} +1 -1
  481. package/dist/tet-components/{p-45c01709.entry.js → p-eba7482b.entry.js} +1 -1
  482. package/dist/tet-components/{p-119e349d.entry.js → p-fff9e103.entry.js} +1 -1
  483. package/dist/tet-components/tet-components.esm.js +1 -1
  484. package/dist/types/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.d.ts +57 -0
  485. package/dist/types/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.d.ts +51 -0
  486. package/dist/types/components/views/tet-tv-program/tet-tv-program.d.ts +6 -0
  487. package/dist/types/components.d.ts +206 -387
  488. package/package.json +1 -1
  489. package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +0 -387
  490. package/dist/cjs/tet-datepicker.cjs.entry.js +0 -132
  491. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.css +0 -393
  492. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.css +0 -455
  493. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.css +0 -382
  494. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.css +0 -382
  495. package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.css +0 -380
  496. package/dist/components/p-8ThmuWkF.js +0 -1
  497. package/dist/components/p-B0WxHzd1.js +0 -1
  498. package/dist/components/p-BXSBo_9f.js +0 -1
  499. package/dist/components/p-BvWhh2Zj.js +0 -1
  500. package/dist/components/p-CG6D6t5h.js +0 -1
  501. package/dist/components/p-COwD9Duu.js +0 -1
  502. package/dist/components/p-Cdi7KDBd.js +0 -1
  503. package/dist/components/p-Cef0hbKH.js +0 -1
  504. package/dist/components/p-CoQ-OVcl.js +0 -1
  505. package/dist/components/p-CxbnslX3.js +0 -1
  506. package/dist/components/p-D0GJDW-O.js +0 -1
  507. package/dist/components/tet-datepicker-header.d.ts +0 -11
  508. package/dist/components/tet-datepicker-header.js +0 -1
  509. package/dist/components/tet-datepicker-month-view.d.ts +0 -11
  510. package/dist/components/tet-datepicker-month-view.js +0 -1
  511. package/dist/components/tet-datepicker-multi-year-view.d.ts +0 -11
  512. package/dist/components/tet-datepicker-multi-year-view.js +0 -1
  513. package/dist/components/tet-datepicker-year-view.d.ts +0 -11
  514. package/dist/components/tet-datepicker-year-view.js +0 -1
  515. package/dist/components/tet-datepicker.js +0 -1
  516. package/dist/esm/tet-datepicker-header_4.entry.js +0 -382
  517. package/dist/esm/tet-datepicker.entry.js +0 -130
  518. package/dist/tet-components/p-4804006b.entry.js +0 -1
  519. package/dist/tet-components/p-5e237b6d.entry.js +0 -1
  520. package/dist/tet-components/p-7dcb307f.entry.js +0 -1
  521. package/dist/tet-components/p-87675c65.entry.js +0 -1
  522. package/dist/tet-components/p-92340a39.entry.js +0 -1
  523. package/dist/tet-components/p-BGB6gNkz.js +0 -3
  524. package/dist/tet-components/p-Bvqcvhjw.js +0 -1
  525. package/dist/tet-components/p-BzLFf73g.js +0 -1
  526. package/dist/tet-components/p-C1XJmhDH.js +0 -1
  527. package/dist/tet-components/p-D0GJDW-O.js +0 -1
  528. package/dist/tet-components/p-ea9d92f6.entry.js +0 -1
  529. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.d.ts +0 -21
  530. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.d.ts +0 -45
  531. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.d.ts +0 -20
  532. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.d.ts +0 -20
  533. package/dist/types/components/simple/inputs/tet-datepicker/tet-datepicker.d.ts +0 -47
@@ -0,0 +1,536 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-puzHM5yZ.js');
4
+ var visibilityObserver = require('./visibility-observer-Coef27xg.js');
5
+ var translations = require('./translations-D5zHdnnh.js');
6
+ require('./http-codes-oHpK-Vsh.js');
7
+ require('./typecheck-Do6mN8Vg.js');
8
+
9
+ const tetTvProgramChannelPickerCss = () => `@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{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--tv-channel-picker-text-primary-color:var(--tc-text-primary);--tv-channel-picker-button-background-color:var(--tc-layer-grey-primary);--tv-channel-picker-button-hover-background-color:var(--tc-layer-grey-secondary);--tv-channel-picker-button-active-background-color:var(--tc-layer-grey-tertiary);--tv-channel-picker-focus-outline-color:var(--tc-blue-40);--tv-channel-picker-gradient-color:var(--tc-background-primary);display:block;height:3.875rem}:host([theme=dark]){--tv-channel-picker-text-primary-color:var(--tc-text-primary-dark);--tv-channel-picker-button-background-color:var(--tc-layer-grey-primary-dark);--tv-channel-picker-button-hover-background-color:var(--tc-layer-grey-secondary-dark);--tv-channel-picker-button-active-background-color:var(--tc-layer-grey-tertiary-dark);--tv-channel-picker-focus-outline-color:var(--tc-blue-40-dark);--tv-channel-picker-gradient-color:var(--tc-background-primary-dark)}.tv-channel-picker{position:relative;display:flex;align-items:center;max-width:100%;height:100%}.tv-channel-picker--gradients::before,.tv-channel-picker--gradients::after{content:"";position:absolute;top:0;bottom:0;width:119px;pointer-events:none;z-index:2;opacity:0}.tv-channel-picker--gradients::before{left:0;background:linear-gradient(to right, var(--tv-channel-picker-gradient-color), transparent)}.tv-channel-picker--gradients::after{right:0;background:linear-gradient(to left, var(--tv-channel-picker-gradient-color), transparent)}.tv-channel-picker--gradient-left::before,.tv-channel-picker--gradient-right::after{opacity:1}.tv-channel-picker__list{display:flex;flex:1;flex-direction:row;justify-content:safe center;gap:0.5rem;height:100%;min-width:0;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none;-webkit-user-select:none;user-select:none}.tv-channel-picker__list--dragging{scroll-behavior:auto;scroll-snap-type:none}.tv-channel-picker__list--dragging,.tv-channel-picker__list--dragging .tv-channel-picker__button{cursor:grabbing}@media (prefers-reduced-motion: reduce){.tv-channel-picker__list{scroll-behavior:auto}}.tv-channel-picker__list::-webkit-scrollbar{display:none}.tv-channel-picker__item{display:flex;flex-direction:column;gap:0.25rem;list-style:none;width:6.25rem;height:100%;flex-shrink:0}.tv-channel-picker__image{display:block;max-width:100%;max-height:100%;object-fit:contain;user-select:none;-webkit-user-select:none}.tv-channel-picker__fallback{font:500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";align-self:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tv-channel-picker__button,.tv-channel-picker__placeholder{width:100%;align-self:center;height:3.375rem}.tv-channel-picker__button{display:flex;justify-content:center;align-items:center;border:none;cursor:pointer;border-radius:0.5rem;padding:0.5rem 0.625rem;color:var(--tv-channel-picker-text-primary-color);background-color:var(--tv-channel-picker-button-background-color)}.tv-channel-picker__button:hover{background-color:var(--tv-channel-picker-button-hover-background-color)}.tv-channel-picker__button:active,.tv-channel-picker__button[aria-pressed=true]{background-color:var(--tv-channel-picker-button-active-background-color)}.tv-channel-picker__button:disabled{pointer-events:none}.tv-channel-picker__button:focus-visible{outline:0.125rem solid var(--tv-channel-picker-focus-outline-color);outline-offset:-0.125rem}.tv-channel-picker__placeholder tet-placeholder{--placeholder-border-radius:0.5rem}.tv-channel-picker__button-underline{height:0.25rem;border-radius:0.5rem;background-color:var(--tv-channel-picker-button-active-background-color)}`;
10
+
11
+ const DRAGGING_CLASS$1 = 'tv-channel-picker__list--dragging';
12
+ const DRAG_THRESHOLD$1 = 5;
13
+ const TetTvProgramChannelPicker = class {
14
+ constructor(hostRef) {
15
+ index.registerInstance(this, hostRef);
16
+ this.channelSelected = index.createEvent(this, "channelSelected");
17
+ }
18
+ /** Theme of the component */
19
+ theme = 'light';
20
+ /** Channels available for selection. Channel IDs must be unique. */
21
+ channels = [];
22
+ /** Disables channel selection and navigation while allowing scrolling. */
23
+ disabled = false;
24
+ /** Shows placeholder items while the parent fetches channels. */
25
+ loading = false;
26
+ /** Shows full-height gradients at both edges of the channel list. */
27
+ showGradients = false;
28
+ selectedChannel;
29
+ focusedChannel;
30
+ failedImageSources = [];
31
+ visibleChannelIds = [];
32
+ canScrollLeft = false;
33
+ canScrollRight = false;
34
+ /** Emitted when the user selects a different channel, with its ID. */
35
+ channelSelected;
36
+ channelList;
37
+ renderedSelectedChannel;
38
+ renderedLoading = false;
39
+ drag;
40
+ suppressChannelClick = false;
41
+ resizeObserver;
42
+ imageObservations = new Map();
43
+ onThemeChange() {
44
+ this.visibleChannelIds = [];
45
+ for (const stop of this.imageObservations.values()) {
46
+ stop();
47
+ }
48
+ this.imageObservations.clear();
49
+ }
50
+ onChannelsChange() {
51
+ const channelIds = new Set(this.channels.map(channel => channel.id));
52
+ this.visibleChannelIds = this.visibleChannelIds.filter(id => channelIds.has(id));
53
+ if (!this.channels.some(channel => channel.id === this.selectedChannel)) {
54
+ this.selectedChannel = this.channels[0]?.id;
55
+ }
56
+ if (!this.channels.some(channel => channel.id === this.focusedChannel)) {
57
+ this.focusedChannel = undefined;
58
+ }
59
+ }
60
+ /** Selects a channel by ID. Missing or unknown IDs select the first channel. Does not emit channelSelected. */
61
+ async setChannel(id) {
62
+ const nextChannel = this.channels.find(channel => channel.id === id) ?? this.channels[0];
63
+ if (nextChannel?.id === this.selectedChannel) {
64
+ this.centerChannel();
65
+ }
66
+ else {
67
+ this.selectedChannel = nextChannel?.id;
68
+ }
69
+ }
70
+ connectedCallback() {
71
+ if (this.channelList) {
72
+ this.resizeObserver?.observe(this.channelList);
73
+ this.observeChannelImages();
74
+ }
75
+ }
76
+ componentWillLoad() {
77
+ this.onChannelsChange();
78
+ }
79
+ componentDidLoad() {
80
+ if (this.channelList && typeof globalThis.ResizeObserver === 'function') {
81
+ this.resizeObserver = new ResizeObserver(() => {
82
+ if (!this.drag) {
83
+ this.centerChannel();
84
+ }
85
+ this.updateScrollEdges();
86
+ });
87
+ this.resizeObserver.observe(this.channelList);
88
+ }
89
+ }
90
+ componentDidRender() {
91
+ const selectionChanged = this.renderedSelectedChannel !== this.selectedChannel;
92
+ const channelsBecameVisible = this.renderedLoading && !this.loading;
93
+ this.renderedSelectedChannel = this.selectedChannel;
94
+ this.renderedLoading = this.loading;
95
+ if (selectionChanged || channelsBecameVisible) {
96
+ this.centerChannel();
97
+ }
98
+ this.updateScrollEdges();
99
+ this.observeChannelImages();
100
+ }
101
+ disconnectedCallback() {
102
+ this.resizeObserver?.disconnect();
103
+ for (const stop of this.imageObservations.values()) {
104
+ stop();
105
+ }
106
+ this.imageObservations.clear();
107
+ if (this.drag) {
108
+ this.handlePointerEnd(this.drag.pointerId);
109
+ }
110
+ this.suppressChannelClick = false;
111
+ }
112
+ handlePointerDown(event) {
113
+ this.suppressChannelClick = false;
114
+ if (event.pointerType === 'mouse' && event.button === 0 && this.channelList) {
115
+ this.drag = {
116
+ pointerId: event.pointerId,
117
+ startX: event.clientX,
118
+ scrollLeft: this.channelList.scrollLeft,
119
+ active: false,
120
+ };
121
+ }
122
+ }
123
+ handlePointerMove(event) {
124
+ const drag = this.drag;
125
+ const list = this.channelList;
126
+ if (!drag || !list || event.pointerId !== drag.pointerId) {
127
+ return;
128
+ }
129
+ if ((event.buttons & 1) === 0) {
130
+ this.handlePointerEnd(event.pointerId);
131
+ return;
132
+ }
133
+ const distance = event.clientX - drag.startX;
134
+ if (!drag.active && Math.abs(distance) < DRAG_THRESHOLD$1) {
135
+ return;
136
+ }
137
+ if (!drag.active) {
138
+ drag.active = true;
139
+ this.suppressChannelClick = true;
140
+ list.classList.add(DRAGGING_CLASS$1);
141
+ list.setPointerCapture(event.pointerId);
142
+ }
143
+ event.preventDefault();
144
+ list.scrollLeft = drag.scrollLeft - distance;
145
+ }
146
+ handlePointerEnd(pointerId) {
147
+ if (this.drag?.pointerId === pointerId) {
148
+ this.drag = undefined;
149
+ this.channelList?.classList.remove(DRAGGING_CLASS$1);
150
+ if (this.channelList?.hasPointerCapture(pointerId)) {
151
+ this.channelList.releasePointerCapture(pointerId);
152
+ }
153
+ }
154
+ }
155
+ handleChannelButtonClick(channel, event) {
156
+ if (!this.suppressChannelClick || event.detail === 0) {
157
+ this.handleChannelClick(channel);
158
+ }
159
+ }
160
+ handleChannelKeyDown(event, channel) {
161
+ if (this.disabled || this.loading || event.altKey || event.ctrlKey || event.metaKey ||
162
+ !['ArrowLeft', 'ArrowRight', 'Home', 'End'].includes(event.key)) {
163
+ return;
164
+ }
165
+ event.preventDefault();
166
+ const index = this.channels.findIndex(item => item.id === channel.id);
167
+ const targetIndices = {
168
+ ArrowLeft: index - 1,
169
+ ArrowRight: index + 1,
170
+ Home: 0,
171
+ End: this.channels.length - 1,
172
+ };
173
+ const targetIndex = targetIndices[event.key];
174
+ const nextChannel = index >= 0 ? this.channels[targetIndex] : undefined;
175
+ if (nextChannel) {
176
+ this.channelList?.querySelectorAll('button')[targetIndex]?.focus({ preventScroll: true });
177
+ this.centerChannel(nextChannel.id);
178
+ }
179
+ }
180
+ handleChannelFocus(event, channel) {
181
+ this.focusedChannel = channel.id;
182
+ if (!this.drag && event.currentTarget instanceof Element && event.currentTarget.matches(':focus-visible')) {
183
+ this.centerChannel(channel.id);
184
+ }
185
+ }
186
+ handleFocusOut(event) {
187
+ const nextTarget = event.relatedTarget;
188
+ if (!(nextTarget instanceof Node) || !this.channelList?.contains(nextTarget)) {
189
+ this.focusedChannel = undefined;
190
+ this.centerChannel();
191
+ }
192
+ }
193
+ observeChannelImages() {
194
+ const list = this.channelList;
195
+ if (!list) {
196
+ return;
197
+ }
198
+ for (const [button, stop] of this.imageObservations) {
199
+ if (!list.contains(button) || this.visibleChannelIds.includes(button.dataset.channelId ?? '')) {
200
+ stop();
201
+ this.imageObservations.delete(button);
202
+ }
203
+ }
204
+ for (const button of Array.from(list.querySelectorAll('button[data-channel-id]'))) {
205
+ const channelId = button.dataset.channelId;
206
+ if (channelId && !this.visibleChannelIds.includes(channelId) && !this.imageObservations.has(button) && button.querySelector('img')) {
207
+ const observedTheme = this.theme;
208
+ const stop = visibilityObserver.observeOnce(button, () => {
209
+ if (this.theme === observedTheme && list.contains(button) && !this.visibleChannelIds.includes(channelId)) {
210
+ this.visibleChannelIds = [...this.visibleChannelIds, channelId];
211
+ }
212
+ });
213
+ this.imageObservations.set(button, stop);
214
+ }
215
+ }
216
+ }
217
+ updateScrollEdges() {
218
+ const list = this.channelList;
219
+ this.canScrollLeft = !!list && list.scrollLeft > 1;
220
+ this.canScrollRight = !!list && list.scrollWidth - list.clientWidth - list.scrollLeft > 1;
221
+ }
222
+ centerChannel(channelId = this.selectedChannel) {
223
+ const list = this.channelList;
224
+ const index = this.channels.findIndex(channel => channel.id === channelId);
225
+ const button = list?.querySelectorAll('button')[index];
226
+ if (list && button) {
227
+ const listBounds = list.getBoundingClientRect();
228
+ const buttonBounds = button.getBoundingClientRect();
229
+ const offset = buttonBounds.left - listBounds.left - list.clientLeft;
230
+ const target = list.scrollLeft + offset - (list.clientWidth - buttonBounds.width) / 2;
231
+ const maxScroll = Math.max(0, list.scrollWidth - list.clientWidth);
232
+ list.scrollLeft = Math.max(0, Math.min(target, maxScroll));
233
+ }
234
+ }
235
+ handleChannelClick(channel) {
236
+ if (this.disabled || this.loading) {
237
+ return;
238
+ }
239
+ if (channel.id === this.selectedChannel) {
240
+ this.centerChannel();
241
+ return;
242
+ }
243
+ this.selectedChannel = channel.id;
244
+ this.channelSelected.emit(channel.id);
245
+ }
246
+ renderChannelPlaceholders() {
247
+ return Array.from({ length: 16 }, (_, index$1) => (index.h("li", { class: "tv-channel-picker__item", key: `loading-${index$1}`, "aria-hidden": "true" }, index.h("div", { class: "tv-channel-picker__placeholder" }, index.h("tet-placeholder", { width: "100%", height: "100%", darkTheme: this.theme === 'dark' })))));
248
+ }
249
+ renderChannelButtons() {
250
+ return this.channels.map(channel => {
251
+ const isSelected = this.selectedChannel === channel.id;
252
+ const imageSource = this.theme === 'dark' ? channel.imageSourceDark ?? channel.imageSource : channel.imageSource;
253
+ return (index.h("li", { class: "tv-channel-picker__item", key: channel.id }, index.h("button", { type: "button", class: "tv-channel-picker__button", "data-channel-id": channel.id, disabled: this.disabled, "aria-label": channel.name, "aria-pressed": isSelected ? 'true' : 'false', tabIndex: (this.focusedChannel ?? this.selectedChannel) === channel.id ? 0 : -1, onFocus: event => this.handleChannelFocus(event, channel), onClick: event => this.handleChannelButtonClick(channel, event), onKeyDown: event => this.handleChannelKeyDown(event, channel) }, !imageSource || this.failedImageSources.includes(imageSource) ? (index.h("span", { class: "tv-channel-picker__fallback" }, channel.name)) : (index.h("img", { class: "tv-channel-picker__image", src: this.visibleChannelIds.includes(channel.id) ? imageSource : undefined, alt: "", draggable: false, onError: () => {
254
+ if (!this.failedImageSources.includes(imageSource)) {
255
+ this.failedImageSources = [...this.failedImageSources, imageSource];
256
+ }
257
+ } }))), isSelected && (index.h("div", { class: "tv-channel-picker__button-underline" }))));
258
+ });
259
+ }
260
+ render() {
261
+ return (index.h(index.Host, { key: 'b39ec97eedb9e2c0b349b7436ff5c3d5da4f573f' }, index.h("div", { key: 'a0f1936c84f99a4ad51f92c62fdd93b1b6ee0295', class: {
262
+ 'tv-channel-picker': true,
263
+ 'tv-channel-picker--gradients': this.showGradients,
264
+ 'tv-channel-picker--gradient-left': this.showGradients && this.canScrollLeft,
265
+ 'tv-channel-picker--gradient-right': this.showGradients && this.canScrollRight,
266
+ } }, index.h("ul", { key: 'fa85fbac4fe8a7f5d736cafa3c6bc8413b9c2624', class: "tv-channel-picker__list", tabIndex: -1, "aria-busy": this.loading ? 'true' : 'false', ref: element => { this.channelList = element; }, onScroll: () => this.updateScrollEdges(), onFocusout: event => this.handleFocusOut(event), onPointerDown: event => this.handlePointerDown(event), onPointerMove: event => this.handlePointerMove(event), onPointerUp: event => this.handlePointerEnd(event.pointerId), onPointerCancel: event => this.handlePointerEnd(event.pointerId), onLostPointerCapture: event => this.handlePointerEnd(event.pointerId) }, this.loading ? this.renderChannelPlaceholders() : this.renderChannelButtons()))));
267
+ }
268
+ static get watchers() { return {
269
+ "theme": [{
270
+ "onThemeChange": 0
271
+ }],
272
+ "channels": [{
273
+ "onChannelsChange": 0
274
+ }]
275
+ }; }
276
+ };
277
+ TetTvProgramChannelPicker.style = tetTvProgramChannelPickerCss();
278
+
279
+ const tetTvProgramDatePickerCss = () => `@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{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--tv-date-picker-text-primary-color:var(--tc-text-primary);--tv-date-picker-text-permanent-black-color:var(--tc-text-black-permanent);--tv-date-picker-main-background-color:var(--tc-layer-grey-primary);--tv-date-picker-button-hover-background-color:var(--tc-button-secondary-background-hover);--tv-date-picker-button-pressed-background-color:var(--tc-button-secondary-background-pressed);--tv-date-picker-button-active-background-color:var(--tc-button-primary-yellow-background-default);--tv-date-picker-focus-outline-color:var(--tc-blue-40);display:block;min-height:3.75rem}:host([theme=dark]){--tv-date-picker-text-primary-color:var(--tc-text-primary-dark);--tv-date-picker-text-permanent-black-color:var(--tc-text-black-permanent-dark);--tv-date-picker-main-background-color:var(--tc-layer-grey-primary-dark);--tv-date-picker-button-hover-background-color:var(--tc-button-secondary-background-hover-dark);--tv-date-picker-button-pressed-background-color:var(--tc-button-secondary-background-pressed-dark);--tv-date-picker-button-active-background-color:var(--tc-button-primary-yellow-background-default-dark);--tv-date-picker-focus-outline-color:var(--tc-blue-40-dark)}.tv-date-picker{display:flex;align-items:center;max-width:100%;height:3.75rem}@media screen and (min-width: 48rem){.tv-date-picker{border-radius:1.875rem;background-color:var(--tv-date-picker-main-background-color)}}.tv-date-picker__button{align-items:center;border:none;cursor:pointer;color:var(--tv-date-picker-text-primary-color);background-color:var(--tv-date-picker-main-background-color)}.tv-date-picker__button:hover{background-color:var(--tv-date-picker-button-hover-background-color)}.tv-date-picker__button:active{background-color:var(--tv-date-picker-button-pressed-background-color)}.tv-date-picker__button:disabled{pointer-events:none}.tv-date-picker__button:focus-visible{outline:0.125rem solid var(--tv-date-picker-focus-outline-color);outline-offset:0.125rem;z-index:1}.tv-date-picker__list{--date-gap:0.5rem;display:flex;flex:1;flex-direction:row;justify-content:safe center;gap:var(--date-gap);min-width:0;padding:0.4375rem 0.25rem;margin-inline:-0.25rem;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none;-webkit-user-select:none;user-select:none}@media screen and (min-width: 48rem){.tv-date-picker__list{--visible-dates:3;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - (var(--visible-dates) - 1) * var(--date-gap)) / var(--visible-dates));padding:0.5rem;margin-inline:0;scroll-snap-type:x mandatory;scroll-padding-inline:0.5rem}}@media screen and (min-width: 64rem){.tv-date-picker__list{--visible-dates:5}}.tv-date-picker__list--dragging{scroll-behavior:auto;scroll-snap-type:none}.tv-date-picker__list--dragging,.tv-date-picker__list--dragging .tv-date-picker__button{cursor:grabbing}@media (prefers-reduced-motion: reduce){.tv-date-picker__list{scroll-behavior:auto}}.tv-date-picker__list::-webkit-scrollbar{display:none}.tv-date-picker__button--nav{display:none;height:100%}@media screen and (min-width: 48rem){.tv-date-picker__button--nav{display:flex}}.tv-date-picker__button--nav-left{border-top-left-radius:1.875rem;border-bottom-left-radius:1.875rem;padding-inline:1.5rem 1rem}.tv-date-picker__button--nav-right{border-top-right-radius:1.875rem;border-bottom-right-radius:1.875rem;padding-inline:1rem 1.5rem}.tv-date-picker__button--nav:focus-visible{outline-offset:-0.125rem}.tv-date-picker__nav-button-icon{--icon-size:1.5rem}.tv-date-picker__item{list-style:none}@media screen and (min-width: 48rem){.tv-date-picker__item{min-width:0;scroll-snap-align:start}}@media screen and (min-width: 64rem){.tv-date-picker__date{display:block}}@media screen and (min-width: 80rem){.tv-date-picker__date{display:inline}}.tv-date-picker__button--date{font:500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";padding-inline:1.5rem;border-radius:1.5rem;height:2.875rem;white-space:nowrap}@media screen and (min-width: 48rem){.tv-date-picker__button--date{font:500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";width:100%;padding-inline:2.5rem}}.tv-date-picker__button--date[aria-pressed=true]{color:var(--tv-date-picker-text-permanent-black-color);background-color:var(--tv-date-picker-button-active-background-color)}`;
280
+
281
+ const DRAGGING_CLASS = 'tv-date-picker__list--dragging';
282
+ const DRAG_THRESHOLD = 5;
283
+ const TetTvProgramDatePicker = class {
284
+ constructor(hostRef) {
285
+ index.registerInstance(this, hostRef);
286
+ this.dateSelected = index.createEvent(this, "dateSelected");
287
+ }
288
+ /** Theme of the component */
289
+ theme = 'light';
290
+ /** Number of days displayed before and after today, clamped to 0–30. Today is always included. */
291
+ daysRange = 7;
292
+ /** Language used for weekday names and translations. */
293
+ language = 'lv';
294
+ /** Disables date selection and navigation while allowing scrolling. */
295
+ disabled = false;
296
+ selectedDate = this.formatDate(new Date());
297
+ focusedDate;
298
+ /** Emitted when a date is clicked, with the selected local date in YYYY-MM-DD format. */
299
+ dateSelected;
300
+ weekdayFormatter = new Intl.DateTimeFormat(this.language, { weekday: 'long' });
301
+ dateList;
302
+ renderedSelectedDate;
303
+ renderedDaysRange;
304
+ drag;
305
+ suppressDateClick = false;
306
+ resizeObserver;
307
+ async onDaysRangeChange() {
308
+ if (!this.getDates().some(date => this.formatDate(date) === this.focusedDate)) {
309
+ this.focusedDate = undefined;
310
+ }
311
+ await this.setDate(this.selectedDate);
312
+ }
313
+ async onLanguageChange(language) {
314
+ this.weekdayFormatter = new Intl.DateTimeFormat(language, { weekday: 'long' });
315
+ await translations.processTranslations('tet-components', language);
316
+ index.forceUpdate(this);
317
+ }
318
+ /**
319
+ * Selects a local calendar date in YYYY-MM-DD format.
320
+ * Missing, invalid, or out-of-range dates reset to today. Does not emit dateSelected.
321
+ */
322
+ async setDate(date) {
323
+ const isAvailable = this.getDates().some(item => this.formatDate(item) === date);
324
+ const nextDate = date && isAvailable ? date : this.formatDate(new Date());
325
+ if (nextDate === this.selectedDate) {
326
+ this.centerDate();
327
+ }
328
+ else {
329
+ this.selectedDate = nextDate;
330
+ }
331
+ }
332
+ connectedCallback() {
333
+ if (this.dateList) {
334
+ this.resizeObserver?.observe(this.dateList);
335
+ }
336
+ }
337
+ async componentWillLoad() {
338
+ await this.onLanguageChange(this.language);
339
+ }
340
+ componentDidLoad() {
341
+ if (this.dateList && typeof globalThis.ResizeObserver === 'function') {
342
+ this.resizeObserver = new ResizeObserver(() => {
343
+ if (!this.drag) {
344
+ this.centerDate();
345
+ }
346
+ });
347
+ this.resizeObserver.observe(this.dateList);
348
+ }
349
+ }
350
+ componentDidRender() {
351
+ if (this.renderedSelectedDate !== this.selectedDate || this.renderedDaysRange !== this.daysRange) {
352
+ this.centerDate();
353
+ }
354
+ this.renderedSelectedDate = this.selectedDate;
355
+ this.renderedDaysRange = this.daysRange;
356
+ }
357
+ disconnectedCallback() {
358
+ this.resizeObserver?.disconnect();
359
+ if (this.drag) {
360
+ this.handlePointerEnd(this.drag.pointerId);
361
+ }
362
+ this.suppressDateClick = false;
363
+ }
364
+ handlePointerDown(event) {
365
+ this.suppressDateClick = false;
366
+ if (event.pointerType === 'mouse' && event.button === 0 && this.dateList) {
367
+ this.drag = {
368
+ pointerId: event.pointerId,
369
+ startX: event.clientX,
370
+ scrollLeft: this.dateList.scrollLeft,
371
+ active: false,
372
+ };
373
+ }
374
+ }
375
+ handlePointerMove(event) {
376
+ const drag = this.drag;
377
+ const list = this.dateList;
378
+ if (!drag || !list || event.pointerId !== drag.pointerId) {
379
+ return;
380
+ }
381
+ if ((event.buttons & 1) === 0) {
382
+ this.handlePointerEnd(event.pointerId);
383
+ return;
384
+ }
385
+ const distance = event.clientX - drag.startX;
386
+ if (!drag.active && Math.abs(distance) < DRAG_THRESHOLD) {
387
+ return;
388
+ }
389
+ if (!drag.active) {
390
+ drag.active = true;
391
+ this.suppressDateClick = true;
392
+ list.classList.add(DRAGGING_CLASS);
393
+ list.setPointerCapture(event.pointerId);
394
+ }
395
+ event.preventDefault();
396
+ list.scrollLeft = drag.scrollLeft - distance;
397
+ }
398
+ handlePointerEnd(pointerId) {
399
+ if (this.drag?.pointerId === pointerId) {
400
+ this.drag = undefined;
401
+ this.dateList?.classList.remove(DRAGGING_CLASS);
402
+ if (this.dateList?.hasPointerCapture(pointerId)) {
403
+ this.dateList.releasePointerCapture(pointerId);
404
+ }
405
+ }
406
+ }
407
+ handleDateButtonClick(date, event) {
408
+ if (!this.suppressDateClick || event.detail === 0) {
409
+ this.handleDateClick(date);
410
+ }
411
+ }
412
+ handleDateKeyDown(event, date) {
413
+ if (this.disabled || event.altKey || event.ctrlKey || event.metaKey || !['ArrowLeft', 'ArrowRight', 'Home', 'End'].includes(event.key)) {
414
+ return;
415
+ }
416
+ event.preventDefault();
417
+ const dates = this.getDates();
418
+ const index = dates.findIndex(item => this.formatDate(item) === this.formatDate(date));
419
+ const targetIndices = {
420
+ ArrowLeft: index - 1,
421
+ ArrowRight: index + 1,
422
+ Home: 0,
423
+ End: dates.length - 1,
424
+ };
425
+ const nextDate = index >= 0 ? dates[targetIndices[event.key]] : undefined;
426
+ if (nextDate) {
427
+ this.focusedDate = this.formatDate(nextDate);
428
+ this.dateList?.querySelectorAll('button')[targetIndices[event.key]]?.focus({ preventScroll: true });
429
+ this.centerDate(this.focusedDate);
430
+ }
431
+ }
432
+ handleDateFocus(event, dateValue) {
433
+ this.focusedDate = dateValue;
434
+ if (!this.drag && event.currentTarget instanceof Element && event.currentTarget.matches(':focus-visible')) {
435
+ this.centerDate(dateValue);
436
+ }
437
+ }
438
+ handleFocusOut(event) {
439
+ if (!(event.relatedTarget instanceof Node) || !this.dateList?.contains(event.relatedTarget)) {
440
+ this.focusedDate = undefined;
441
+ this.centerDate();
442
+ }
443
+ }
444
+ centerDate(dateValue = this.selectedDate) {
445
+ const list = this.dateList;
446
+ const index = this.getDates().findIndex(date => this.formatDate(date) === dateValue);
447
+ const button = list?.querySelectorAll('button')[index];
448
+ if (list && button) {
449
+ const listBounds = list.getBoundingClientRect();
450
+ const buttonBounds = button.getBoundingClientRect();
451
+ const offset = buttonBounds.left - listBounds.left - list.clientLeft;
452
+ const target = list.scrollLeft + offset - (list.clientWidth - buttonBounds.width) / 2;
453
+ const maxScroll = Math.max(0, list.scrollWidth - list.clientWidth);
454
+ list.scrollLeft = Math.max(0, Math.min(target, maxScroll));
455
+ }
456
+ }
457
+ getDates() {
458
+ const range = Number.isFinite(this.daysRange) ? Math.min(30, Math.max(0, Math.floor(this.daysRange))) : 0;
459
+ const today = new Date();
460
+ return Array.from({ length: range * 2 + 1 }, (_, index) => (new Date(today.getFullYear(), today.getMonth(), today.getDate() + index - range)));
461
+ }
462
+ formatDate(date) {
463
+ const year = date.getFullYear();
464
+ const month = String(date.getMonth() + 1).padStart(2, '0');
465
+ const day = String(date.getDate()).padStart(2, '0');
466
+ return `${year}-${month}-${day}`;
467
+ }
468
+ formatLabel(date, dayOffset) {
469
+ const weekday = this.weekdayFormatter.format(date);
470
+ const capitalizedWeekday = weekday.charAt(0).toLocaleUpperCase(this.language) + weekday.slice(1);
471
+ const relativeDayKeys = {
472
+ [-1]: 'tet-components-tv-program-yesterday',
473
+ 0: 'tet-components-tv-program-today',
474
+ 1: 'tet-components-tv-program-tomorrow',
475
+ };
476
+ const translationKey = relativeDayKeys[dayOffset];
477
+ const dayName = translationKey ? translations.translate(translationKey) : capitalizedWeekday;
478
+ const day = String(date.getDate()).padStart(2, '0');
479
+ const month = String(date.getMonth() + 1).padStart(2, '0');
480
+ return (index.h("span", null, index.h("span", { class: "tv-date-picker__day-name" }, dayName, ","), ' ', index.h("span", { class: "tv-date-picker__date" }, day, ".", month)));
481
+ }
482
+ handleDateClick(date) {
483
+ const formattedDate = this.formatDate(date);
484
+ if (this.disabled) {
485
+ return;
486
+ }
487
+ if (formattedDate === this.selectedDate) {
488
+ this.centerDate();
489
+ return;
490
+ }
491
+ this.selectedDate = formattedDate;
492
+ this.dateSelected.emit(formattedDate);
493
+ }
494
+ getNavigationDate(position, dates) {
495
+ const selectedIndex = dates.findIndex(date => this.formatDate(date) === this.selectedDate);
496
+ const offset = position === 'left' ? -1 : 1;
497
+ return selectedIndex >= 0 ? dates[selectedIndex + offset] : undefined;
498
+ }
499
+ handleNavButtonClick(position) {
500
+ const date = this.getNavigationDate(position, this.getDates());
501
+ if (date) {
502
+ this.handleDateClick(date);
503
+ }
504
+ }
505
+ renderNavigationButtons(position, dates) {
506
+ const isPrevious = position === 'left';
507
+ const iconName = isPrevious ? 'tc-chevron-left' : 'tc-chevron-right';
508
+ const label = translations.translate(isPrevious ? 'tet-components-tv-program-previous-day' : 'tet-components-tv-program-next-day');
509
+ return (index.h("button", { type: "button", class: {
510
+ "tv-date-picker__button": true,
511
+ "tv-date-picker__button--nav": true,
512
+ [`tv-date-picker__button--nav-${position}`]: true,
513
+ }, "aria-label": label, disabled: this.disabled || !this.getNavigationDate(position, dates), onClick: () => this.handleNavButtonClick(position) }, index.h("tet-icon", { class: "tv-date-picker__nav-button-icon", name: iconName, theme: this.theme })));
514
+ }
515
+ render() {
516
+ const dates = this.getDates();
517
+ const todayIndex = Math.floor(dates.length / 2);
518
+ return (index.h(index.Host, { key: '10b9f58c24334855f56f04bd7d689edd0bc5c307' }, index.h("div", { key: '231df765738af1ba1a523c016cf24235cd4e92aa', class: "tv-date-picker" }, this.renderNavigationButtons('left', dates), index.h("ul", { key: 'f49812cfdae2a289286bbada19c9ca0ebfe6070a', class: "tv-date-picker__list", tabIndex: -1, ref: element => { this.dateList = element; }, onFocusout: event => this.handleFocusOut(event), onPointerDown: event => this.handlePointerDown(event), onPointerMove: event => this.handlePointerMove(event), onPointerUp: event => this.handlePointerEnd(event.pointerId), onPointerCancel: event => this.handlePointerEnd(event.pointerId), onLostPointerCapture: event => this.handlePointerEnd(event.pointerId) }, dates.map((date, index$1) => {
519
+ const dateValue = this.formatDate(date);
520
+ const isSelected = this.selectedDate === dateValue;
521
+ return (index.h("li", { class: "tv-date-picker__item", key: dateValue }, index.h("button", { type: "button", class: "tv-date-picker__button tv-date-picker__button--date", disabled: this.disabled, "aria-pressed": isSelected ? 'true' : 'false', tabIndex: (this.focusedDate ?? this.selectedDate) === dateValue ? 0 : -1, onFocus: event => this.handleDateFocus(event, dateValue), onClick: event => this.handleDateButtonClick(date, event), onKeyDown: event => this.handleDateKeyDown(event, date) }, index.h("time", { dateTime: dateValue }, this.formatLabel(date, index$1 - todayIndex)))));
522
+ })), this.renderNavigationButtons('right', dates))));
523
+ }
524
+ static get watchers() { return {
525
+ "daysRange": [{
526
+ "onDaysRangeChange": 0
527
+ }],
528
+ "language": [{
529
+ "onLanguageChange": 0
530
+ }]
531
+ }; }
532
+ };
533
+ TetTvProgramDatePicker.style = tetTvProgramDatePickerCss();
534
+
535
+ exports.tet_tv_program_channel_picker = TetTvProgramChannelPicker;
536
+ exports.tet_tv_program_date_picker = TetTvProgramDatePicker;
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-puzHM5yZ.js');
4
+
5
+ const tetTvProgramCss = () => `:host{display:block}`;
6
+
7
+ const TetTvProgram = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ }
11
+ /** Language used by the TV program components. */
12
+ language = 'lv';
13
+ render() {
14
+ return (index.h(index.Host, { key: 'dbc18fd2147e35fd58c1d90473353951f885199b' }, index.h("tet-tv-program-channel-picker", { key: 'daa573110383c054b29afa62f513843879f07589', loading: true }), index.h("tet-tv-program-date-picker", { key: '38e8e2e35df31021ac3344361a0e1bd76aea644e', language: this.language })));
15
+ }
16
+ };
17
+ TetTvProgram.style = tetTvProgramCss();
18
+
19
+ exports.tet_tv_program = TetTvProgram;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var httpCodes = require('./http-codes-D7ffzpYW.js');
4
- var typecheck = require('./typecheck--Bs-bZ_K.js');
3
+ var httpCodes = require('./http-codes-oHpK-Vsh.js');
4
+ var typecheck = require('./typecheck-Do6mN8Vg.js');
5
5
 
6
6
  const isTranslationDictionary = (translations) => {
7
7
  return (!!translations &&
@@ -3,9 +3,7 @@
3
3
  const isPromise = (value) => value instanceof Promise;
4
4
  const isObject = (value) => !!value && typeof value === 'object';
5
5
  const isFunction = (value) => typeof value === 'function';
6
- const isUndefinedOrNull = (value) => value === undefined || value === null;
7
6
 
8
7
  exports.isFunction = isFunction;
9
8
  exports.isObject = isObject;
10
9
  exports.isPromise = isPromise;
11
- exports.isUndefinedOrNull = isUndefinedOrNull;
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ const callbacks = new WeakMap();
4
+ let observer;
5
+ /** Observes an element once using a shared observer and returns a cleanup function. */
6
+ function observeOnce(element, onVisible) {
7
+ if (!globalThis.IntersectionObserver) {
8
+ onVisible();
9
+ return () => { };
10
+ }
11
+ const observerOptions = { rootMargin: '300px', scrollMargin: '0px 300px' };
12
+ const sharedObserver = observer ??= new globalThis.IntersectionObserver((entries, currentObserver) => {
13
+ for (const entry of entries) {
14
+ if (entry.isIntersecting) {
15
+ const callback = callbacks.get(entry.target);
16
+ currentObserver.unobserve(entry.target);
17
+ callbacks.delete(entry.target);
18
+ callback?.();
19
+ }
20
+ }
21
+ }, observerOptions);
22
+ callbacks.set(element, onVisible);
23
+ sharedObserver.observe(element);
24
+ return () => {
25
+ sharedObserver.unobserve(element);
26
+ callbacks.delete(element);
27
+ };
28
+ }
29
+
30
+ exports.observeOnce = observeOnce;
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M14.5195 8.10651C16.6884 5.96474 20.1993 5.96461 22.3681 8.10651C24.5438 10.2554 24.5438 13.7447 22.3681 15.8936C20.1993 18.0354 16.6884 18.0353 14.5195 15.8936L12 13.4053L9.48044 15.8936C7.37931 17.9684 4.01858 18.0333 1.83884 16.088L1.63181 15.8936C-0.543939 13.7447 -0.543934 10.2554 1.63181 8.10651C3.80059 5.9646 7.31158 5.96472 9.48044 8.10651L12 10.5938L14.5195 8.10651ZM8.07517 9.52936C6.6853 8.15694 4.42688 8.15681 3.03708 9.52936C1.65415 10.8952 1.65412 13.1049 3.03708 14.4708C4.42688 15.8432 6.68531 15.8431 8.07517 14.4708L10.5761 12.0001L8.07517 9.52936ZM20.9629 9.52936C19.573 8.15683 17.3147 8.15696 15.9248 9.52936L13.4228 12.0001L15.9248 14.4708C17.3147 15.8431 19.573 15.8432 20.9629 14.4708C22.3458 13.1049 22.3457 10.8952 20.9629 9.52936Z" fill-rule="evenodd" clip-rule="evenodd" fill="#0C0C0E"/>
3
+ </svg>