@tet/tet-components 1.4.157-testing → 1.4.158-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 (590) hide show
  1. package/dist/cjs/format-program-start-date-zxseYpV_.js +151 -0
  2. package/dist/cjs/{http-codes-D7ffzpYW.js → http-codes-BEt9xtqF.js} +2 -1
  3. package/dist/cjs/{index-BL_zVDFC.js → index-puzHM5yZ.js} +21 -21
  4. package/dist/cjs/{index-Dzs7Nkbj.js → index-t4WNVvo_.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/{product-comparison-DUzqZuWv.js → product-comparison-CkjpMhjy.js} +1 -1
  7. package/dist/cjs/{service-availability-services-BXL7V5i1.js → service-availability-services-CcQ-evt-.js} +1 -1
  8. package/dist/cjs/{string-D0kCSyUd.js → string-CL-wkThZ.js} +0 -4
  9. package/dist/cjs/tet-accordion.cjs.entry.js +8 -8
  10. package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +4 -4
  11. package/dist/cjs/tet-address-offers-v2.cjs.entry.js +6 -6
  12. package/dist/cjs/tet-address-offers-view-v2.cjs.entry.js +6 -6
  13. package/dist/cjs/tet-address-offers-view.cjs.entry.js +5 -5
  14. package/dist/cjs/tet-address-offers_3.cjs.entry.js +7 -7
  15. package/dist/cjs/tet-address-search_2.cjs.entry.js +9 -9
  16. package/dist/cjs/tet-assembler_3.cjs.entry.js +5 -5
  17. package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +3 -3
  18. package/dist/cjs/tet-autocomplete_2.cjs.entry.js +4 -4
  19. package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +7 -7
  20. package/dist/cjs/tet-b2b-configurator.cjs.entry.js +5 -5
  21. package/dist/cjs/tet-banner-nav.cjs.entry.js +4 -4
  22. package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
  23. package/dist/cjs/tet-border-radius.cjs.entry.js +2 -2
  24. package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
  25. package/dist/cjs/tet-business-compare-card.cjs.entry.js +3 -3
  26. package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
  27. package/dist/cjs/tet-button.cjs.entry.js +1 -1
  28. package/dist/cjs/tet-card-list.cjs.entry.js +5 -5
  29. package/dist/cjs/tet-carousel.cjs.entry.js +10 -10
  30. package/dist/cjs/{tet-checkbox_3.cjs.entry.js → tet-checkbox_2.cjs.entry.js} +1 -453
  31. package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +4 -4
  32. package/dist/cjs/tet-cloud-configurator.cjs.entry.js +4 -4
  33. package/dist/cjs/tet-colors.cjs.entry.js +5 -5
  34. package/dist/cjs/tet-compare-card-v2.cjs.entry.js +3 -3
  35. package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
  36. package/dist/cjs/tet-compare-cards_2.cjs.entry.js +5 -5
  37. package/dist/cjs/tet-components.cjs.js +2 -2
  38. package/dist/cjs/tet-container_2.cjs.entry.js +2 -2
  39. package/dist/cjs/tet-countdown.cjs.entry.js +2 -2
  40. package/dist/cjs/tet-counter.cjs.entry.js +1 -1
  41. package/dist/cjs/tet-dialog.cjs.entry.js +4 -4
  42. package/dist/cjs/tet-display.cjs.entry.js +1 -1
  43. package/dist/cjs/tet-divider.cjs.entry.js +1 -1
  44. package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
  45. package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
  46. package/dist/cjs/tet-expansion-panel.cjs.entry.js +2 -2
  47. package/dist/cjs/tet-feedback-form.cjs.entry.js +4 -4
  48. package/dist/cjs/tet-filter.cjs.entry.js +1 -1
  49. package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
  50. package/dist/cjs/tet-font-weight.cjs.entry.js +2 -2
  51. package/dist/cjs/tet-fonts.cjs.entry.js +2 -2
  52. package/dist/cjs/tet-grid.cjs.entry.js +2 -2
  53. package/dist/cjs/tet-icon.cjs.entry.js +2 -2
  54. package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
  55. package/dist/cjs/tet-input.cjs.entry.js +4 -4
  56. package/dist/cjs/tet-layout.cjs.entry.js +2 -2
  57. package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
  58. package/dist/cjs/tet-link.cjs.entry.js +2 -2
  59. package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
  60. package/dist/cjs/tet-menu.cjs.entry.js +1 -1
  61. package/dist/cjs/tet-mini-compare-card.cjs.entry.js +1 -1
  62. package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +5 -5
  63. package/dist/cjs/tet-navigation-mobile.cjs.entry.js +7 -7
  64. package/dist/cjs/tet-news-card-list.cjs.entry.js +2 -2
  65. package/dist/cjs/tet-news-card.cjs.entry.js +2 -2
  66. package/dist/cjs/tet-notification.cjs.entry.js +2 -2
  67. package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
  68. package/dist/cjs/tet-paginator.cjs.entry.js +5 -5
  69. package/dist/cjs/tet-placeholder.cjs.entry.js +2 -2
  70. package/dist/cjs/tet-position.cjs.entry.js +1 -1
  71. package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
  72. package/dist/cjs/tet-radio_2.cjs.entry.js +3 -3
  73. package/dist/cjs/tet-range-slider.cjs.entry.js +8 -8
  74. package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
  75. package/dist/cjs/tet-snicker-card-group.cjs.entry.js +1 -1
  76. package/dist/cjs/tet-snicker-card.cjs.entry.js +4 -4
  77. package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
  78. package/dist/cjs/tet-spinner.cjs.entry.js +4 -4
  79. package/dist/cjs/tet-stepper-input.cjs.entry.js +5 -5
  80. package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
  81. package/dist/cjs/tet-sticky-offer.cjs.entry.js +2 -2
  82. package/dist/cjs/tet-support-search.cjs.entry.js +2 -2
  83. package/dist/cjs/tet-switch.cjs.entry.js +1 -1
  84. package/dist/cjs/tet-table.cjs.entry.js +1 -1
  85. package/dist/cjs/tet-tag_2.cjs.entry.js +6 -6
  86. package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
  87. package/dist/cjs/tet-text.cjs.entry.js +1 -1
  88. package/dist/cjs/tet-textarea.cjs.entry.js +3 -3
  89. package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +4 -4
  90. package/dist/cjs/tet-tooltip.cjs.entry.js +456 -0
  91. package/dist/cjs/tet-tv-program-channel-picker_3.cjs.entry.js +1465 -0
  92. package/dist/cjs/tet-tv-program-item.cjs.entry.js +217 -0
  93. package/dist/cjs/tet-tv-program-placeholders-C4m4UB1-.js +22 -0
  94. package/dist/cjs/tet-tv-program.cjs.entry.js +642 -3
  95. package/dist/cjs/{translations-Uvcq4kv8.js → translations-c8BeO6Gg.js} +2 -2
  96. package/dist/cjs/{typecheck--Bs-bZ_K.js → typecheck-Do6mN8Vg.js} +0 -2
  97. package/dist/collection/collection-manifest.json +3 -1
  98. package/dist/collection/components/advanced/address/tet-address-offers-filters/tet-address-offers-filters.js +1 -1
  99. package/dist/collection/components/advanced/address/tet-address-offers-v2/tet-address-offers-v2.js +1 -1
  100. package/dist/collection/components/advanced/address/tet-address-search/tet-address-search.js +3 -3
  101. package/dist/collection/components/advanced/address/tet-autocomplete-dropdown/tet-autocomplete-dropdown.js +1 -1
  102. package/dist/collection/components/advanced/cards/tet-business-compare-card/tet-business-compare-card.js +2 -2
  103. package/dist/collection/components/advanced/cards/tet-card-list/tet-card-list.js +4 -4
  104. package/dist/collection/components/advanced/cards/tet-news-card/tet-news-card.js +1 -1
  105. package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/tet-multi-step-dialog.js +1 -1
  106. package/dist/collection/components/advanced/forms/tet-availability-contact-form/tet-availability-contact-form.js +1 -1
  107. package/dist/collection/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.js +3 -3
  108. package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-content/tet-tab-content.js +2 -2
  109. package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-header/tet-tab-header.js +2 -2
  110. package/dist/collection/components/basic/buttons/tet-tag/tet-tag.js +2 -2
  111. package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +6 -6
  112. package/dist/collection/components/basic/loaders/tet-loader/tet-loader.js +1 -1
  113. package/dist/collection/components/basic/loaders/tet-placeholder/tet-placeholder.js +1 -1
  114. package/dist/collection/components/basic/loaders/tet-spinner/tet-spinner.js +3 -3
  115. package/dist/collection/components/basic/misc/tet-countdown/tet-countdown.js +1 -1
  116. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.js +2 -2
  117. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.js +1 -1
  118. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.js +1 -1
  119. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.js +1 -1
  120. package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.js +4 -4
  121. package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.js +7 -7
  122. package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.js +1 -1
  123. package/dist/collection/components/simple/inputs/tet-textarea/tet-textarea.js +2 -2
  124. package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +1 -1
  125. package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js +3 -3
  126. package/dist/collection/components/simple/menu/tet-paginator/tet-paginator.js +1 -1
  127. package/dist/collection/components/simple/misc/tet-sticky-offer/tet-sticky-offer.js +1 -1
  128. package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.css +5 -1
  129. package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +6 -6
  130. package/dist/collection/components/simple/structural/tet-expansion-panel/tet-expansion-panel.js +1 -1
  131. package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.js +1 -1
  132. package/dist/collection/components/simple/text-blocks/tet-tooltip/tet-tooltip.js +1 -1
  133. package/dist/collection/components/views/tet-address-offers-view/tet-address-offers-view.js +1 -1
  134. package/dist/collection/components/views/tet-address-offers-view-v2/tet-address-offers-view-v2.js +2 -2
  135. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.css +21 -8
  136. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.js +59 -39
  137. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.css +52 -36
  138. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.js +24 -30
  139. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.css +352 -0
  140. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.js +488 -0
  141. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.mock.js +45 -0
  142. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-schedule/tet-tv-program-schedule.css +567 -0
  143. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-schedule/tet-tv-program-schedule.js +1309 -0
  144. package/dist/collection/components/views/tet-tv-program/test/mock-schedule-layout.js +74 -0
  145. package/dist/collection/components/views/tet-tv-program/tet-tv-program-placeholders.js +8 -0
  146. package/dist/collection/components/views/tet-tv-program/tet-tv-program.css +777 -0
  147. package/dist/collection/components/views/tet-tv-program/tet-tv-program.js +638 -2
  148. package/dist/collection/components/views/tet-tv-program/tet-tv-program.types.js +1 -0
  149. package/dist/collection/components/views/tet-tv-program/utils/broadcast-time.js +26 -0
  150. package/dist/collection/components/views/tet-tv-program/utils/fill-program-gaps.js +44 -0
  151. package/dist/collection/components/views/tet-tv-program/utils/format-program-start-date.js +13 -0
  152. package/dist/collection/components/views/tet-tv-program/utils/tooltip-lifecycle.js +132 -0
  153. package/dist/collection/docs/styling/border-radius/tet-border-radius.js +1 -1
  154. package/dist/collection/docs/styling/colors/tet-colors.js +4 -4
  155. package/dist/collection/docs/styling/font-weight/tet-font-weight.js +1 -1
  156. package/dist/collection/docs/styling/fonts/tet-fonts.js +1 -1
  157. package/dist/collection/docs/styling/layout/tet-layout.js +1 -1
  158. package/dist/collection/docs/styling/link/tet-link.js +1 -1
  159. package/dist/collection/docs/styling/spacing/tet-spacing.js +1 -1
  160. package/dist/collection/docs/styling/tet-grid/tet-grid.js +1 -1
  161. package/dist/collection/services/api/index.js +1 -0
  162. package/dist/collection/services/api/services/tv/tv-program-types.js +1 -0
  163. package/dist/collection/services/api/services/tv/tv-program.js +31 -0
  164. package/dist/collection/services/utils/date.js +7 -0
  165. package/dist/collection/services/utils/index.js +1 -0
  166. package/dist/components/index.js +1 -1
  167. package/dist/components/{p-B9bE6qY-.js → p--_RUy11E.js} +1 -1
  168. package/dist/components/p-B-Tjx5SX.js +1 -0
  169. package/dist/components/{p-CgV4zAwQ.js → p-B4UX_mB_.js} +1 -1
  170. package/dist/components/{p-p-J7NvGs.js → p-B73K4uEg.js} +1 -1
  171. package/dist/components/{p-BztqMLE1.js → p-BAf_O-kb.js} +1 -1
  172. package/dist/components/{p-BcVrianM.js → p-BOsv3j3J.js} +1 -1
  173. package/dist/components/p-BQ5mo25G.js +1 -0
  174. package/dist/components/{p-BI70OOEF.js → p-BQjtvIgJ.js} +1 -1
  175. package/dist/components/p-BTZzfMYY.js +1 -0
  176. package/dist/components/{p-C-sZ3Bzu.js → p-BX98BUpV.js} +1 -1
  177. package/dist/components/p-Bdbn4prA.js +8 -0
  178. package/dist/components/{p-CF15dAPd.js → p-BjM9vx9w.js} +1 -1
  179. package/dist/components/{p-nKvolHsW.js → p-BkXzaJcc.js} +1 -1
  180. package/dist/components/{p-CYMnJi7q.js → p-ByM3JujT.js} +1 -1
  181. package/dist/components/{p-B5HqUnpw.js → p-C2nyJwDX.js} +1 -1
  182. package/dist/components/{p-CJnk1Plz.js → p-C50q8-fi.js} +1 -1
  183. package/dist/components/{p-DXQ-UeYl.js → p-C5f1C5m_.js} +1 -1
  184. package/dist/components/{p-t_FgKIcd.js → p-CEyoGS5R.js} +1 -1
  185. package/dist/components/{p-BrPUjt5B.js → p-CI8FUu6q.js} +1 -1
  186. package/dist/components/{p-CMxcvnRv.js → p-CKWJROPt.js} +1 -1
  187. package/dist/components/{p-B-1KdQSL.js → p-CVhyWWJA.js} +1 -1
  188. package/dist/components/p-CWuhYFDW.js +1 -0
  189. package/dist/components/{p-44eECwiT.js → p-CXjWLDzk.js} +1 -1
  190. package/dist/components/p-C_Jw5r9B.js +1 -0
  191. package/dist/components/{p-vu71OGLf.js → p-ClXBenaN.js} +1 -1
  192. package/dist/components/{p-B60jnxEn.js → p-ClkvaRio.js} +1 -1
  193. package/dist/components/{p-HzogPVbA.js → p-D323rUMJ.js} +1 -1
  194. package/dist/components/{p-C4uKGuRj.js → p-D4MolLd8.js} +1 -1
  195. package/dist/components/{p-CPGJg5Si.js → p-D4k1E1mH.js} +1 -1
  196. package/dist/components/p-D5YRHMvl.js +1 -0
  197. package/dist/components/p-D9QC8S_K.js +1 -0
  198. package/dist/components/{p-DikHJHTd.js → p-DBK9GhUz.js} +1 -1
  199. package/dist/components/{p-Bho4Xl9R.js → p-DCeNW6E9.js} +1 -1
  200. package/dist/components/{p-C32vgbsV.js → p-DIpqXULQ.js} +1 -1
  201. package/dist/components/p-DPGMd9pW.js +1 -0
  202. package/dist/components/{p-C61jDpta.js → p-DTOuhcpL.js} +1 -1
  203. package/dist/components/{p-DN2JwXg9.js → p-DZRioc0D.js} +1 -1
  204. package/dist/components/{p-B1d6HEqd.js → p-DZecnsEu.js} +1 -1
  205. package/dist/components/{p-CZach5oP.js → p-DezVRSSN.js} +1 -1
  206. package/dist/components/{p-CDUvchOX.js → p-DiSdptzb.js} +1 -1
  207. package/dist/components/{p-lEX8wezw.js → p-DoCUcvkE.js} +1 -1
  208. package/dist/components/{p-Bsqoxd9G.js → p-DobMlMDf.js} +1 -1
  209. package/dist/components/{p-BD6bBnqr.js → p-Dr3_Xm0C.js} +1 -1
  210. package/dist/components/{p-DnPS3TWn.js → p-JrKx7ojI.js} +1 -1
  211. package/dist/components/{p-mVj43aKR.js → p-OAkgt412.js} +1 -1
  212. package/dist/components/{p-Cb2bEUmu.js → p-QcD5cCtX.js} +1 -1
  213. package/dist/components/{p-D8avEs-F.js → p-QlXxBzaI.js} +1 -1
  214. package/dist/components/{p-Mpe-2CVQ.js → p-QlyBltAE.js} +1 -1
  215. package/dist/components/{p-CwZljiBM.js → p-R45gvsNR.js} +1 -1
  216. package/dist/components/{p-sgozlrhg.js → p-RQYdSAu8.js} +1 -1
  217. package/dist/components/{p-CvUaogvc.js → p-RcwM6MVX.js} +1 -1
  218. package/dist/components/p-S9EUQFLQ.js +1 -0
  219. package/dist/components/{p-Bc4oqt_L.js → p-W3LV-Z7z.js} +1 -1
  220. package/dist/components/p-_2UzwYR8.js +1 -0
  221. package/dist/components/{p-DKZxpjnL.js → p-_pn0YVXD.js} +1 -1
  222. package/dist/components/{p-BmH_7-IQ.js → p-gw3AOj6h.js} +1 -1
  223. package/dist/components/{p-Bw-D7nPx.js → p-sp4th_AU.js} +1 -1
  224. package/dist/components/{p-o4S5jRzK.js → p-vwpr_v76.js} +1 -1
  225. package/dist/components/tet-accordion.js +1 -1
  226. package/dist/components/tet-address-offers-filters-products.js +1 -1
  227. package/dist/components/tet-address-offers-filters.js +1 -1
  228. package/dist/components/tet-address-offers-v2.js +1 -1
  229. package/dist/components/tet-address-offers-view-v2.js +1 -1
  230. package/dist/components/tet-address-offers-view.js +1 -1
  231. package/dist/components/tet-address-offers.js +1 -1
  232. package/dist/components/tet-address-search.js +1 -1
  233. package/dist/components/tet-assembler.js +1 -1
  234. package/dist/components/tet-asset-availability-addresses.js +1 -1
  235. package/dist/components/tet-autocomplete-dropdown.js +1 -1
  236. package/dist/components/tet-autocomplete.js +1 -1
  237. package/dist/components/tet-availability-contact-form.js +1 -1
  238. package/dist/components/tet-b2b-check-out-form.js +1 -1
  239. package/dist/components/tet-b2b-compare-card.js +1 -1
  240. package/dist/components/tet-b2b-configurator-cart.js +1 -1
  241. package/dist/components/tet-b2b-configurator.js +1 -1
  242. package/dist/components/tet-banner-nav.js +1 -1
  243. package/dist/components/tet-bar-graph.js +1 -1
  244. package/dist/components/tet-border-radius.js +1 -1
  245. package/dist/components/tet-business-card.js +1 -1
  246. package/dist/components/tet-business-compare-card.js +1 -1
  247. package/dist/components/tet-business-navigation.js +1 -1
  248. package/dist/components/tet-business-round-stepper.js +1 -1
  249. package/dist/components/tet-business-summary-card.js +1 -1
  250. package/dist/components/tet-button.js +1 -1
  251. package/dist/components/tet-card-list.js +1 -1
  252. package/dist/components/tet-carousel.js +1 -1
  253. package/dist/components/tet-checkbox.js +1 -1
  254. package/dist/components/tet-cloud-application-form-dialog.js +1 -1
  255. package/dist/components/tet-cloud-configurator.js +1 -1
  256. package/dist/components/tet-colors.js +1 -1
  257. package/dist/components/tet-compare-card-v2.js +1 -1
  258. package/dist/components/tet-compare-card-v3.js +1 -1
  259. package/dist/components/tet-compare-card.js +1 -1
  260. package/dist/components/tet-compare-cards-tab.js +1 -1
  261. package/dist/components/tet-compare-cards.js +1 -1
  262. package/dist/components/tet-container.js +1 -1
  263. package/dist/components/tet-countdown.js +1 -1
  264. package/dist/components/tet-counter.js +1 -1
  265. package/dist/components/tet-dialog.js +1 -1
  266. package/dist/components/tet-display.js +1 -1
  267. package/dist/components/tet-divider.js +1 -1
  268. package/dist/components/tet-dropdown.js +1 -1
  269. package/dist/components/tet-dynamic-card.js +1 -1
  270. package/dist/components/tet-expandable-input.js +1 -1
  271. package/dist/components/tet-expansion-panel.js +1 -1
  272. package/dist/components/tet-feedback-form.js +1 -1
  273. package/dist/components/tet-filter.js +1 -1
  274. package/dist/components/tet-floating-block.js +1 -1
  275. package/dist/components/tet-font-weight.js +1 -1
  276. package/dist/components/tet-fonts.js +1 -1
  277. package/dist/components/tet-grid.js +1 -1
  278. package/dist/components/tet-icon.js +1 -1
  279. package/dist/components/tet-inline-message.js +1 -1
  280. package/dist/components/tet-input.js +1 -1
  281. package/dist/components/tet-layout.js +1 -1
  282. package/dist/components/tet-link-card-list.js +1 -1
  283. package/dist/components/tet-link.js +1 -1
  284. package/dist/components/tet-loader.js +1 -1
  285. package/dist/components/tet-menu-mobile.js +1 -1
  286. package/dist/components/tet-menu.js +1 -1
  287. package/dist/components/tet-mini-compare-card.js +1 -1
  288. package/dist/components/tet-multi-step-dialog.js +1 -1
  289. package/dist/components/tet-navigation-mobile.js +1 -1
  290. package/dist/components/tet-news-card-list.js +1 -1
  291. package/dist/components/tet-news-card.js +1 -1
  292. package/dist/components/tet-notification.js +1 -1
  293. package/dist/components/tet-number-input.js +1 -1
  294. package/dist/components/tet-paginator.js +1 -1
  295. package/dist/components/tet-placeholder.js +1 -1
  296. package/dist/components/tet-position.js +1 -1
  297. package/dist/components/tet-price-view.js +1 -1
  298. package/dist/components/tet-radio-blocks.js +1 -1
  299. package/dist/components/tet-radio.js +1 -1
  300. package/dist/components/tet-range-slider.js +1 -1
  301. package/dist/components/tet-round-stepper.js +1 -1
  302. package/dist/components/tet-selection-list.js +1 -1
  303. package/dist/components/tet-snicker-card-group.js +1 -1
  304. package/dist/components/tet-snicker-card.js +1 -1
  305. package/dist/components/tet-spacing.js +1 -1
  306. package/dist/components/tet-spinner.js +1 -1
  307. package/dist/components/tet-stepper-input.js +1 -1
  308. package/dist/components/tet-stepper-v3.js +1 -1
  309. package/dist/components/tet-sticky-offer.js +1 -1
  310. package/dist/components/tet-support-search.js +1 -1
  311. package/dist/components/tet-switch.js +1 -1
  312. package/dist/components/tet-tab-content.js +1 -1
  313. package/dist/components/tet-tab-header.js +1 -1
  314. package/dist/components/tet-table.js +1 -1
  315. package/dist/components/tet-tag-group.js +1 -1
  316. package/dist/components/tet-tag.js +1 -1
  317. package/dist/components/tet-text-list.js +1 -1
  318. package/dist/components/tet-text.js +1 -1
  319. package/dist/components/tet-textarea.js +1 -1
  320. package/dist/components/tet-thank-you-view-v3.js +1 -1
  321. package/dist/components/tet-tooltip.js +1 -1
  322. package/dist/components/tet-tv-program-channel-picker.js +1 -1
  323. package/dist/components/tet-tv-program-date-picker.js +1 -1
  324. package/dist/components/{tet-datepicker.d.ts → tet-tv-program-item.d.ts} +4 -4
  325. package/dist/components/tet-tv-program-item.js +1 -0
  326. package/dist/components/tet-tv-program-schedule.d.ts +11 -0
  327. package/dist/components/tet-tv-program-schedule.js +1 -0
  328. package/dist/components/tet-tv-program.js +1 -1
  329. package/dist/esm/format-program-start-date-BTxL4Knq.js +148 -0
  330. package/dist/esm/{http-codes-CHPW8K5J.js → http-codes-8cHNuJ77.js} +2 -1
  331. package/dist/esm/{index-gA3_LS77.js → index-CO8AyGrA.js} +21 -21
  332. package/dist/esm/{index-BzVLx-ae.js → index-Rx46bgOe.js} +1 -1
  333. package/dist/esm/loader.js +3 -3
  334. package/dist/esm/{product-comparison-09p7FlLY.js → product-comparison-DZV6jdwa.js} +1 -1
  335. package/dist/esm/{service-availability-services-DHbWTGBw.js → service-availability-services-DglLgqmx.js} +1 -1
  336. package/dist/esm/{string-D0GJDW-O.js → string-C9BlrGW8.js} +1 -4
  337. package/dist/esm/tet-accordion.entry.js +8 -8
  338. package/dist/esm/tet-address-offers-filters-products_2.entry.js +4 -4
  339. package/dist/esm/tet-address-offers-v2.entry.js +6 -6
  340. package/dist/esm/tet-address-offers-view-v2.entry.js +6 -6
  341. package/dist/esm/tet-address-offers-view.entry.js +5 -5
  342. package/dist/esm/tet-address-offers_3.entry.js +7 -7
  343. package/dist/esm/tet-address-search_2.entry.js +9 -9
  344. package/dist/esm/tet-assembler_3.entry.js +5 -5
  345. package/dist/esm/tet-autocomplete-dropdown.entry.js +3 -3
  346. package/dist/esm/tet-autocomplete_2.entry.js +4 -4
  347. package/dist/esm/tet-b2b-check-out-form_5.entry.js +7 -7
  348. package/dist/esm/tet-b2b-configurator.entry.js +5 -5
  349. package/dist/esm/tet-banner-nav.entry.js +4 -4
  350. package/dist/esm/tet-bar-graph.entry.js +1 -1
  351. package/dist/esm/tet-border-radius.entry.js +2 -2
  352. package/dist/esm/tet-business-card.entry.js +1 -1
  353. package/dist/esm/tet-business-compare-card.entry.js +3 -3
  354. package/dist/esm/tet-business-round-stepper.entry.js +1 -1
  355. package/dist/esm/tet-button.entry.js +1 -1
  356. package/dist/esm/tet-card-list.entry.js +5 -5
  357. package/dist/esm/tet-carousel.entry.js +10 -10
  358. package/dist/esm/{tet-checkbox_3.entry.js → tet-checkbox_2.entry.js} +2 -453
  359. package/dist/esm/tet-cloud-application-form-dialog.entry.js +4 -4
  360. package/dist/esm/tet-cloud-configurator.entry.js +4 -4
  361. package/dist/esm/tet-colors.entry.js +5 -5
  362. package/dist/esm/tet-compare-card-v2.entry.js +3 -3
  363. package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
  364. package/dist/esm/tet-compare-cards_2.entry.js +5 -5
  365. package/dist/esm/tet-components.js +3 -3
  366. package/dist/esm/tet-container_2.entry.js +2 -2
  367. package/dist/esm/tet-countdown.entry.js +2 -2
  368. package/dist/esm/tet-counter.entry.js +1 -1
  369. package/dist/esm/tet-dialog.entry.js +4 -4
  370. package/dist/esm/tet-display.entry.js +1 -1
  371. package/dist/esm/tet-divider.entry.js +1 -1
  372. package/dist/esm/tet-dynamic-card.entry.js +1 -1
  373. package/dist/esm/tet-expandable-input.entry.js +1 -1
  374. package/dist/esm/tet-expansion-panel.entry.js +2 -2
  375. package/dist/esm/tet-feedback-form.entry.js +4 -4
  376. package/dist/esm/tet-filter.entry.js +1 -1
  377. package/dist/esm/tet-floating-block.entry.js +1 -1
  378. package/dist/esm/tet-font-weight.entry.js +2 -2
  379. package/dist/esm/tet-fonts.entry.js +2 -2
  380. package/dist/esm/tet-grid.entry.js +2 -2
  381. package/dist/esm/tet-icon.entry.js +2 -2
  382. package/dist/esm/tet-inline-message.entry.js +1 -1
  383. package/dist/esm/tet-input.entry.js +4 -4
  384. package/dist/esm/tet-layout.entry.js +2 -2
  385. package/dist/esm/tet-link-card-list.entry.js +1 -1
  386. package/dist/esm/tet-link.entry.js +2 -2
  387. package/dist/esm/tet-menu-mobile.entry.js +1 -1
  388. package/dist/esm/tet-menu.entry.js +1 -1
  389. package/dist/esm/tet-mini-compare-card.entry.js +1 -1
  390. package/dist/esm/tet-multi-step-dialog.entry.js +5 -5
  391. package/dist/esm/tet-navigation-mobile.entry.js +7 -7
  392. package/dist/esm/tet-news-card-list.entry.js +2 -2
  393. package/dist/esm/tet-news-card.entry.js +2 -2
  394. package/dist/esm/tet-notification.entry.js +2 -2
  395. package/dist/esm/tet-number-input.entry.js +1 -1
  396. package/dist/esm/tet-paginator.entry.js +5 -5
  397. package/dist/esm/tet-placeholder.entry.js +2 -2
  398. package/dist/esm/tet-position.entry.js +1 -1
  399. package/dist/esm/tet-price-view.entry.js +1 -1
  400. package/dist/esm/tet-radio_2.entry.js +3 -3
  401. package/dist/esm/tet-range-slider.entry.js +8 -8
  402. package/dist/esm/tet-round-stepper.entry.js +1 -1
  403. package/dist/esm/tet-snicker-card-group.entry.js +1 -1
  404. package/dist/esm/tet-snicker-card.entry.js +4 -4
  405. package/dist/esm/tet-spacing.entry.js +2 -2
  406. package/dist/esm/tet-spinner.entry.js +4 -4
  407. package/dist/esm/tet-stepper-input.entry.js +5 -5
  408. package/dist/esm/tet-stepper-v3.entry.js +1 -1
  409. package/dist/esm/tet-sticky-offer.entry.js +2 -2
  410. package/dist/esm/tet-support-search.entry.js +2 -2
  411. package/dist/esm/tet-switch.entry.js +1 -1
  412. package/dist/esm/tet-table.entry.js +1 -1
  413. package/dist/esm/tet-tag_2.entry.js +6 -6
  414. package/dist/esm/tet-text-list.entry.js +1 -1
  415. package/dist/esm/tet-text.entry.js +1 -1
  416. package/dist/esm/tet-textarea.entry.js +3 -3
  417. package/dist/esm/tet-thank-you-view-v3.entry.js +4 -4
  418. package/dist/esm/tet-tooltip.entry.js +454 -0
  419. package/dist/esm/tet-tv-program-channel-picker_3.entry.js +1461 -0
  420. package/dist/esm/tet-tv-program-item.entry.js +215 -0
  421. package/dist/esm/tet-tv-program-placeholders-DyupRSa9.js +19 -0
  422. package/dist/esm/tet-tv-program.entry.js +642 -3
  423. package/dist/esm/{translations-CLCWF8K_.js → translations-Cytyv90Z.js} +2 -2
  424. package/dist/esm/{typecheck-Bvqcvhjw.js → typecheck-CaZKtSyx.js} +1 -2
  425. package/dist/tet-components/{p-8b7bbbbf.entry.js → p-00440570.entry.js} +1 -1
  426. package/dist/tet-components/{p-9d612283.entry.js → p-00ee3383.entry.js} +1 -1
  427. package/dist/tet-components/{p-19cb8e38.entry.js → p-026c4688.entry.js} +1 -1
  428. package/dist/tet-components/{p-e45dab2b.entry.js → p-0a35f634.entry.js} +1 -1
  429. package/dist/tet-components/{p-72c54f04.entry.js → p-0be0b06d.entry.js} +1 -1
  430. package/dist/tet-components/{p-af7f7020.entry.js → p-1125417c.entry.js} +1 -1
  431. package/dist/tet-components/{p-0026968d.entry.js → p-17dd27fc.entry.js} +1 -1
  432. package/dist/tet-components/{p-b389b07a.entry.js → p-18e188fe.entry.js} +1 -1
  433. package/dist/tet-components/p-1Pg6Bg5R.js +1 -0
  434. package/dist/tet-components/{p-22db539b.entry.js → p-1ee4e8b2.entry.js} +1 -1
  435. package/dist/tet-components/{p-0bd6e06e.entry.js → p-25b05e87.entry.js} +1 -1
  436. package/dist/tet-components/p-27d7ad18.entry.js +1 -0
  437. package/dist/tet-components/{p-a2e40f04.entry.js → p-285a92c5.entry.js} +1 -1
  438. package/dist/tet-components/{p-12fe3881.entry.js → p-2a528ade.entry.js} +1 -1
  439. package/dist/tet-components/{p-0e4129ea.entry.js → p-2c75f965.entry.js} +1 -1
  440. package/dist/tet-components/{p-c5068d10.entry.js → p-2eafdaed.entry.js} +1 -1
  441. package/dist/tet-components/{p-0e9201e6.entry.js → p-335a6617.entry.js} +1 -1
  442. package/dist/tet-components/{p-daa8ca5c.entry.js → p-38ac5d83.entry.js} +1 -1
  443. package/dist/tet-components/{p-e88e50e6.entry.js → p-39431ec5.entry.js} +1 -1
  444. package/dist/tet-components/{p-7672a3cf.entry.js → p-3ad392f5.entry.js} +1 -1
  445. package/dist/tet-components/p-3bf86def.entry.js +1 -0
  446. package/dist/tet-components/p-3ec54e1f.entry.js +1 -0
  447. package/dist/tet-components/{p-8329cd9d.entry.js → p-421edd38.entry.js} +1 -1
  448. package/dist/tet-components/{p-7d62e8e0.entry.js → p-4398cb86.entry.js} +1 -1
  449. package/dist/tet-components/{p-039121d4.entry.js → p-43b92cf1.entry.js} +1 -1
  450. package/dist/tet-components/p-444eec19.entry.js +1 -0
  451. package/dist/tet-components/{p-f8aa1f9b.entry.js → p-53288215.entry.js} +1 -1
  452. package/dist/tet-components/{p-8424ddb6.entry.js → p-5466531d.entry.js} +1 -1
  453. package/dist/tet-components/{p-a9706390.entry.js → p-56b3c60a.entry.js} +1 -1
  454. package/dist/tet-components/{p-9f8c0d62.entry.js → p-56c7ed22.entry.js} +1 -1
  455. package/dist/tet-components/p-58dc974a.entry.js +1 -0
  456. package/dist/tet-components/{p-827abc22.entry.js → p-5c9f805c.entry.js} +1 -1
  457. package/dist/tet-components/{p-1af6b8cb.entry.js → p-5cf98e2a.entry.js} +1 -1
  458. package/dist/tet-components/{p-9ab815b3.entry.js → p-5f683fd6.entry.js} +1 -1
  459. package/dist/tet-components/{p-bc73adcc.entry.js → p-61cb3c7b.entry.js} +1 -1
  460. package/dist/tet-components/{p-318947f9.entry.js → p-671a5b50.entry.js} +1 -1
  461. package/dist/tet-components/{p-aa0b655b.entry.js → p-694911f0.entry.js} +1 -1
  462. package/dist/tet-components/{p-e7c43c95.entry.js → p-69c6c216.entry.js} +1 -1
  463. package/dist/tet-components/{p-73acf518.entry.js → p-6baf4f40.entry.js} +1 -1
  464. package/dist/tet-components/p-6c3a131b.entry.js +1 -0
  465. package/dist/tet-components/{p-13550c14.entry.js → p-6e126f61.entry.js} +1 -1
  466. package/dist/tet-components/{p-f53d2d9f.entry.js → p-6f449651.entry.js} +1 -1
  467. package/dist/tet-components/{p-f73c5481.entry.js → p-70775616.entry.js} +1 -1
  468. package/dist/tet-components/{p-0e021d89.entry.js → p-7d81be98.entry.js} +1 -1
  469. package/dist/tet-components/{p-db92c865.entry.js → p-7da500c3.entry.js} +1 -1
  470. package/dist/tet-components/{p-324d8840.entry.js → p-82de3c82.entry.js} +1 -1
  471. package/dist/tet-components/{p-c778dbd4.entry.js → p-84153818.entry.js} +1 -1
  472. package/dist/tet-components/{p-c321199b.entry.js → p-845addd5.entry.js} +1 -1
  473. package/dist/tet-components/{p-b370c444.entry.js → p-88184103.entry.js} +1 -1
  474. package/dist/tet-components/p-8c53b195.entry.js +1 -0
  475. package/dist/tet-components/{p-03b6c7a2.entry.js → p-998ee6ff.entry.js} +1 -1
  476. package/dist/tet-components/{p-e9e288f6.entry.js → p-9cb7e09d.entry.js} +1 -1
  477. package/dist/tet-components/{p-4a21fdfb.entry.js → p-9fcebf59.entry.js} +1 -1
  478. package/dist/tet-components/{p-nYl-0ap-.js → p-B00u2s3v.js} +1 -1
  479. package/dist/tet-components/p-BCewZzcy.js +8 -0
  480. package/dist/tet-components/p-BTxL4Knq.js +1 -0
  481. package/dist/tet-components/p-C9BlrGW8.js +1 -0
  482. package/dist/tet-components/p-CO8AyGrA.js +3 -0
  483. package/dist/tet-components/p-CaZKtSyx.js +1 -0
  484. package/dist/tet-components/p-Cak7jORV.js +1 -0
  485. package/dist/tet-components/{p-AT09y63b.js → p-DSi6YWYP.js} +1 -1
  486. package/dist/tet-components/{p-Th74Kc5K.js → p-WCtqtcml.js} +1 -1
  487. package/dist/tet-components/{p-8b2edb99.entry.js → p-a5dc9b50.entry.js} +1 -1
  488. package/dist/tet-components/{p-ff164570.entry.js → p-a72a6886.entry.js} +1 -1
  489. package/dist/tet-components/{p-484266ca.entry.js → p-aab96319.entry.js} +1 -1
  490. package/dist/tet-components/{p-6800ae9e.entry.js → p-afdfbbe6.entry.js} +1 -1
  491. package/dist/tet-components/{p-0b122cc1.entry.js → p-b32bfbcc.entry.js} +1 -1
  492. package/dist/tet-components/{p-a91c8e30.entry.js → p-b394da8f.entry.js} +1 -1
  493. package/dist/tet-components/{p-25c80589.entry.js → p-b47dbd57.entry.js} +1 -1
  494. package/dist/tet-components/{p-675387bc.entry.js → p-b495c225.entry.js} +1 -1
  495. package/dist/tet-components/{p-6a3891bf.entry.js → p-b85587af.entry.js} +1 -1
  496. package/dist/tet-components/{p-845419ea.entry.js → p-baf51820.entry.js} +1 -1
  497. package/dist/tet-components/{p-17f8270f.entry.js → p-bb72ca94.entry.js} +1 -1
  498. package/dist/tet-components/{p-7b98b883.entry.js → p-bbde7f66.entry.js} +1 -1
  499. package/dist/tet-components/{p-1ce9b751.entry.js → p-bc168e7d.entry.js} +1 -1
  500. package/dist/tet-components/{p-ae31acd5.entry.js → p-c0c72e90.entry.js} +1 -1
  501. package/dist/tet-components/{p-3dd266f3.entry.js → p-c1e542f3.entry.js} +1 -1
  502. package/dist/tet-components/{p-1ed0c66f.entry.js → p-c66fa72e.entry.js} +1 -1
  503. package/dist/tet-components/{p-e59ec4c3.entry.js → p-cc26cad3.entry.js} +1 -1
  504. package/dist/tet-components/{p-467663a9.entry.js → p-d0824b42.entry.js} +1 -1
  505. package/dist/tet-components/{p-73a66398.entry.js → p-d0e27220.entry.js} +1 -1
  506. package/dist/tet-components/{p-ebd66166.entry.js → p-d2bfb56b.entry.js} +1 -1
  507. package/dist/tet-components/{p-57d07760.entry.js → p-d9059fe6.entry.js} +1 -1
  508. package/dist/tet-components/{p-231dde32.entry.js → p-dce8109c.entry.js} +1 -1
  509. package/dist/tet-components/{p-0d0de163.entry.js → p-e6ae26c9.entry.js} +1 -1
  510. package/dist/tet-components/{p-0744b479.entry.js → p-e813e289.entry.js} +1 -1
  511. package/dist/tet-components/{p-2be883e9.entry.js → p-e8395909.entry.js} +1 -1
  512. package/dist/tet-components/{p-7dfd519c.entry.js → p-eac96e34.entry.js} +1 -1
  513. package/dist/tet-components/{p-ac515335.entry.js → p-ece42f8d.entry.js} +1 -1
  514. package/dist/tet-components/{p-7c1dd176.entry.js → p-edd7aeaa.entry.js} +1 -1
  515. package/dist/tet-components/{p-32983951.entry.js → p-ef66b469.entry.js} +1 -1
  516. package/dist/tet-components/{p-16282657.entry.js → p-f1512e81.entry.js} +1 -1
  517. package/dist/tet-components/{p-2884891b.entry.js → p-f8106629.entry.js} +1 -1
  518. package/dist/tet-components/{p-76be889b.entry.js → p-ff09a8f4.entry.js} +1 -1
  519. package/dist/tet-components/tet-components.esm.js +1 -1
  520. package/dist/types/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.d.ts +9 -13
  521. package/dist/types/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.d.ts +1 -3
  522. package/dist/types/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.d.ts +62 -0
  523. package/dist/types/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.mock.d.ts +2 -0
  524. package/dist/types/components/views/tet-tv-program/components/tet-tv-program-schedule/tet-tv-program-schedule.d.ts +174 -0
  525. package/dist/types/components/views/tet-tv-program/test/mock-schedule-layout.d.ts +4 -0
  526. package/dist/types/components/views/tet-tv-program/tet-tv-program-placeholders.d.ts +2 -0
  527. package/dist/types/components/views/tet-tv-program/tet-tv-program.d.ts +96 -0
  528. package/dist/types/components/views/tet-tv-program/tet-tv-program.types.d.ts +30 -0
  529. package/dist/types/components/views/tet-tv-program/utils/broadcast-time.d.ts +14 -0
  530. package/dist/types/components/views/tet-tv-program/utils/fill-program-gaps.d.ts +3 -0
  531. package/dist/types/components/views/tet-tv-program/utils/format-program-start-date.d.ts +1 -0
  532. package/dist/types/components/views/tet-tv-program/utils/tooltip-lifecycle.d.ts +22 -0
  533. package/dist/types/components.d.ts +339 -389
  534. package/dist/types/services/api/index.d.ts +2 -0
  535. package/dist/types/services/api/services/tv/tv-program-types.d.ts +46 -0
  536. package/dist/types/services/api/services/tv/tv-program.d.ts +7 -0
  537. package/dist/types/services/utils/date.d.ts +2 -0
  538. package/dist/types/services/utils/index.d.ts +1 -0
  539. package/package.json +1 -1
  540. package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +0 -387
  541. package/dist/cjs/tet-datepicker.cjs.entry.js +0 -132
  542. package/dist/cjs/tet-tv-program-channel-picker_2.cjs.entry.js +0 -536
  543. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.css +0 -393
  544. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.css +0 -455
  545. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.css +0 -382
  546. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.css +0 -382
  547. package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.css +0 -380
  548. package/dist/components/p-BMSAKp34.js +0 -1
  549. package/dist/components/p-Br4jWI9B.js +0 -8
  550. package/dist/components/p-C9dDgHzh.js +0 -1
  551. package/dist/components/p-CSxtbfBJ.js +0 -1
  552. package/dist/components/p-Cdi7KDBd.js +0 -1
  553. package/dist/components/p-Cef0hbKH.js +0 -1
  554. package/dist/components/p-CoQ-OVcl.js +0 -1
  555. package/dist/components/p-Czx7ardH.js +0 -1
  556. package/dist/components/p-D0GJDW-O.js +0 -1
  557. package/dist/components/p-DgT79UG-.js +0 -1
  558. package/dist/components/p-DrFW6lxe.js +0 -1
  559. package/dist/components/p-DutLsF-O.js +0 -1
  560. package/dist/components/p-Lpb2mgqh.js +0 -1
  561. package/dist/components/p-Q3NUC_eC.js +0 -1
  562. package/dist/components/tet-datepicker-header.d.ts +0 -11
  563. package/dist/components/tet-datepicker-header.js +0 -1
  564. package/dist/components/tet-datepicker-month-view.d.ts +0 -11
  565. package/dist/components/tet-datepicker-month-view.js +0 -1
  566. package/dist/components/tet-datepicker-multi-year-view.d.ts +0 -11
  567. package/dist/components/tet-datepicker-multi-year-view.js +0 -1
  568. package/dist/components/tet-datepicker-year-view.d.ts +0 -11
  569. package/dist/components/tet-datepicker-year-view.js +0 -1
  570. package/dist/components/tet-datepicker.js +0 -1
  571. package/dist/esm/tet-datepicker-header_4.entry.js +0 -382
  572. package/dist/esm/tet-datepicker.entry.js +0 -130
  573. package/dist/esm/tet-tv-program-channel-picker_2.entry.js +0 -533
  574. package/dist/tet-components/p-340c3e79.entry.js +0 -1
  575. package/dist/tet-components/p-3a573d6e.entry.js +0 -1
  576. package/dist/tet-components/p-7d218d65.entry.js +0 -1
  577. package/dist/tet-components/p-Bvqcvhjw.js +0 -1
  578. package/dist/tet-components/p-CNGb2lWC.js +0 -8
  579. package/dist/tet-components/p-ChdlTQSF.js +0 -1
  580. package/dist/tet-components/p-D0GJDW-O.js +0 -1
  581. package/dist/tet-components/p-aea861c9.entry.js +0 -1
  582. package/dist/tet-components/p-b21b4329.entry.js +0 -1
  583. package/dist/tet-components/p-c102d7e8.entry.js +0 -1
  584. package/dist/tet-components/p-dabdfe62.entry.js +0 -1
  585. package/dist/tet-components/p-gA3_LS77.js +0 -3
  586. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.d.ts +0 -21
  587. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.d.ts +0 -45
  588. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.d.ts +0 -20
  589. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.d.ts +0 -20
  590. package/dist/types/components/simple/inputs/tet-datepicker/tet-datepicker.d.ts +0 -47
@@ -1 +1 @@
1
- import{r as t,c as i,e as s,h as e,H as h}from"./p-gA3_LS77.js";const n=class{constructor(s){t(this,s),this.counterStarted=i(this,"counterStarted"),this.counterFinished=i(this,"counterFinished")}get hostElement(){return s(this)}startValue=0;endValue=10;duration=2e3;delay=0;valueSteps=0;stepValues;loopInterval=0;easing;easingConfig;disableAnimation=!1;thousandSeparator=!0;startOnViewport=!0;counterStarted;counterFinished;currentValue=0;animationFrameId;loopTimeoutId;startDelayTimeoutId;viewportObserver;hasEnteredViewport=!1;componentWillLoad(){this.scheduleCounterStart()}disconnectedCallback(){this.clearTimer(),this.clearViewportObserver()}onCounterConfigChanged(){this.scheduleCounterStart()}async restartCounter(){this.scheduleCounterStart({requireViewport:!0})}clearViewportObserver(){this.viewportObserver?.disconnect(),this.viewportObserver=void 0}scheduleCounterStart(t={}){return!this.startOnViewport||!t.requireViewport&&this.hasEnteredViewport?(this.clearViewportObserver(),void this.startCounter()):(this.clearTimer(),this.currentValue=this.startValue,void 0===globalThis.IntersectionObserver?(this.hasEnteredViewport=!0,void this.startCounter()):void(this.viewportObserver||(this.viewportObserver=new globalThis.IntersectionObserver((t=>{t.some((t=>t.isIntersecting))&&(this.hasEnteredViewport=!0,this.clearViewportObserver(),this.startCounter())})),this.viewportObserver.observe(this.hostElement))))}getSafeStepCount(){const t=Math.floor(this.valueSteps);if(t<2)return 0;const i=Math.abs(this.endValue-this.startValue);return 0===i?0:Math.min(t,i+1)}getExplicitStepValues(){if(!Array.isArray(this.stepValues)||0===this.stepValues.length)return null;const t=this.stepValues.filter((t=>Number.isFinite(t))).map((t=>Math.round(t)));if(0===t.length)return null;const i=[...t];i[0]!==this.startValue&&i.unshift(this.startValue),i.at(-1)!==this.endValue&&i.push(this.endValue);const s=i.filter(((t,i,s)=>0===i||t!==s[i-1]));return s.length>=2?s:null}getRandomizedStepValues(t){const i=Math.min(this.startValue,this.endValue),s=Math.max(this.startValue,this.endValue),e=new Set([this.startValue,this.endValue]);for(;e.size<t;){const t=Math.floor(Math.random()*(s-i+1))+i;e.add(t)}const h=Array.from(e).sort(((t,i)=>t-i));return this.startValue>this.endValue&&h.reverse(),h}clearTimer(){void 0!==this.animationFrameId&&(globalThis.cancelAnimationFrame(this.animationFrameId),this.animationFrameId=void 0),void 0!==this.loopTimeoutId&&(globalThis.clearTimeout(this.loopTimeoutId),this.loopTimeoutId=void 0),void 0!==this.startDelayTimeoutId&&(globalThis.clearTimeout(this.startDelayTimeoutId),this.startDelayTimeoutId=void 0)}scheduleLoopRestart(){const t=Number.isFinite(this.loopInterval)?Math.max(0,this.loopInterval):0;0!==t&&(this.loopTimeoutId=globalThis.setTimeout((()=>{this.loopTimeoutId=void 0,this.startCounter({skipDelay:!0})}),t))}getAnimationProgress(t){return"ease-out"===this.easing?this.getEasingCurveProgress(t):"ease-in"===this.easing?1-this.getEasingCurveProgress(1-t):t}getEasingCurveProgress(t){const i=this.easingConfig?.startProgress??.2,s=this.easingConfig?.progressAtStart??.5,e=this.easingConfig?.power??3,h=Number.isFinite(i)?i:.2,n=Number.isFinite(s)?s:.5,o=Number.isFinite(e)?e:3,r=Math.min(.99,Math.max(.01,h)),a=Math.min(.99,Math.max(r,n)),u=Math.max(1.01,o);if(t<=r)return a/r*t;const l=(t-r)/(1-r),d=1-Math.pow(1-l,u),c=Math.min(.85,Math.max(.55,1-1/u));return a+(1-a)*(c*d+(1-c)*l)}getProgressValue(t){const i=this.endValue-this.startValue,s=this.startValue+i*t;return i>=0?Math.floor(s):Math.ceil(s)}startCounter(t={}){this.clearTimer();const i=Number.isFinite(this.delay)?Math.max(0,this.delay):0;if(!t.skipDelay&&i>0)return this.currentValue=this.startValue,void(this.startDelayTimeoutId=globalThis.setTimeout((()=>{this.startDelayTimeoutId=void 0,this.startCounter({skipDelay:!0})}),i));if(this.counterStarted.emit(),this.disableAnimation)return this.currentValue=this.endValue,void this.counterFinished.emit();if(this.currentValue=this.startValue,this.startValue===this.endValue)return this.counterFinished.emit(),void this.scheduleLoopRestart();const s=Math.max(0,this.duration);if(0===s)return this.currentValue=this.endValue,this.counterFinished.emit(),void this.scheduleLoopRestart();const e=this.getExplicitStepValues(),h=this.getSafeStepCount(),n=e??(h>0?this.getRandomizedStepValues(h):[]),o=n.length>0,r=o?n.length-1:0,a=performance.now(),u=t=>{const i=Math.min(1,Math.max(0,(t-a)/s)),e=this.getAnimationProgress(i);if(o){const t=Math.max(0,Math.min(r,Math.floor(e*r)));this.currentValue=n[t]??this.endValue}else this.currentValue=this.getProgressValue(e);if(i>=1)return this.currentValue=this.endValue,this.clearTimer(),this.counterFinished.emit(),void this.scheduleLoopRestart();this.animationFrameId=globalThis.requestAnimationFrame(u)};this.animationFrameId=globalThis.requestAnimationFrame(u)}formatValue(t){return this.thousandSeparator?t.toLocaleString("lv-LV").replaceAll(" "," "):String(t)}outputValue(){return this.formatValue(this.disableAnimation?this.endValue:this.currentValue)}render(){return e(h,{key:"290ff034f53b3c051f4bebcc330ac096a51800ed"},e("span",{key:"8bed2a283149e77e889c995fe329b50f0893e043",part:"counter","aria-hidden":"true"},this.outputValue()),e("span",{key:"fe19fcee9a0c6b4152d102d881021ff534c8cfd4",class:"sr-only"},this.formatValue(this.endValue)))}static get watchers(){return{startValue:[{onCounterConfigChanged:0}],endValue:[{onCounterConfigChanged:0}],duration:[{onCounterConfigChanged:0}],delay:[{onCounterConfigChanged:0}],valueSteps:[{onCounterConfigChanged:0}],stepValues:[{onCounterConfigChanged:0}],loopInterval:[{onCounterConfigChanged:0}],easing:[{onCounterConfigChanged:0}],easingConfig:[{onCounterConfigChanged:0}],disableAnimation:[{onCounterConfigChanged:0}],startOnViewport:[{onCounterConfigChanged:0}]}}};n.style=":host{display:inline-block}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;white-space:nowrap;border:0;clip:rect(0 0 0 0);clip-path:inset(50%)}";export{n as tet_counter}
1
+ import{r as t,c as i,e as s,h as e,H as h}from"./p-CO8AyGrA.js";const n=class{constructor(s){t(this,s),this.counterStarted=i(this,"counterStarted"),this.counterFinished=i(this,"counterFinished")}get hostElement(){return s(this)}startValue=0;endValue=10;duration=2e3;delay=0;valueSteps=0;stepValues;loopInterval=0;easing;easingConfig;disableAnimation=!1;thousandSeparator=!0;startOnViewport=!0;counterStarted;counterFinished;currentValue=0;animationFrameId;loopTimeoutId;startDelayTimeoutId;viewportObserver;hasEnteredViewport=!1;componentWillLoad(){this.scheduleCounterStart()}disconnectedCallback(){this.clearTimer(),this.clearViewportObserver()}onCounterConfigChanged(){this.scheduleCounterStart()}async restartCounter(){this.scheduleCounterStart({requireViewport:!0})}clearViewportObserver(){this.viewportObserver?.disconnect(),this.viewportObserver=void 0}scheduleCounterStart(t={}){return!this.startOnViewport||!t.requireViewport&&this.hasEnteredViewport?(this.clearViewportObserver(),void this.startCounter()):(this.clearTimer(),this.currentValue=this.startValue,void 0===globalThis.IntersectionObserver?(this.hasEnteredViewport=!0,void this.startCounter()):void(this.viewportObserver||(this.viewportObserver=new globalThis.IntersectionObserver((t=>{t.some((t=>t.isIntersecting))&&(this.hasEnteredViewport=!0,this.clearViewportObserver(),this.startCounter())})),this.viewportObserver.observe(this.hostElement))))}getSafeStepCount(){const t=Math.floor(this.valueSteps);if(t<2)return 0;const i=Math.abs(this.endValue-this.startValue);return 0===i?0:Math.min(t,i+1)}getExplicitStepValues(){if(!Array.isArray(this.stepValues)||0===this.stepValues.length)return null;const t=this.stepValues.filter((t=>Number.isFinite(t))).map((t=>Math.round(t)));if(0===t.length)return null;const i=[...t];i[0]!==this.startValue&&i.unshift(this.startValue),i.at(-1)!==this.endValue&&i.push(this.endValue);const s=i.filter(((t,i,s)=>0===i||t!==s[i-1]));return s.length>=2?s:null}getRandomizedStepValues(t){const i=Math.min(this.startValue,this.endValue),s=Math.max(this.startValue,this.endValue),e=new Set([this.startValue,this.endValue]);for(;e.size<t;){const t=Math.floor(Math.random()*(s-i+1))+i;e.add(t)}const h=Array.from(e).sort(((t,i)=>t-i));return this.startValue>this.endValue&&h.reverse(),h}clearTimer(){void 0!==this.animationFrameId&&(globalThis.cancelAnimationFrame(this.animationFrameId),this.animationFrameId=void 0),void 0!==this.loopTimeoutId&&(globalThis.clearTimeout(this.loopTimeoutId),this.loopTimeoutId=void 0),void 0!==this.startDelayTimeoutId&&(globalThis.clearTimeout(this.startDelayTimeoutId),this.startDelayTimeoutId=void 0)}scheduleLoopRestart(){const t=Number.isFinite(this.loopInterval)?Math.max(0,this.loopInterval):0;0!==t&&(this.loopTimeoutId=globalThis.setTimeout((()=>{this.loopTimeoutId=void 0,this.startCounter({skipDelay:!0})}),t))}getAnimationProgress(t){return"ease-out"===this.easing?this.getEasingCurveProgress(t):"ease-in"===this.easing?1-this.getEasingCurveProgress(1-t):t}getEasingCurveProgress(t){const i=this.easingConfig?.startProgress??.2,s=this.easingConfig?.progressAtStart??.5,e=this.easingConfig?.power??3,h=Number.isFinite(i)?i:.2,n=Number.isFinite(s)?s:.5,o=Number.isFinite(e)?e:3,r=Math.min(.99,Math.max(.01,h)),a=Math.min(.99,Math.max(r,n)),u=Math.max(1.01,o);if(t<=r)return a/r*t;const l=(t-r)/(1-r),d=1-Math.pow(1-l,u),c=Math.min(.85,Math.max(.55,1-1/u));return a+(1-a)*(c*d+(1-c)*l)}getProgressValue(t){const i=this.endValue-this.startValue,s=this.startValue+i*t;return i>=0?Math.floor(s):Math.ceil(s)}startCounter(t={}){this.clearTimer();const i=Number.isFinite(this.delay)?Math.max(0,this.delay):0;if(!t.skipDelay&&i>0)return this.currentValue=this.startValue,void(this.startDelayTimeoutId=globalThis.setTimeout((()=>{this.startDelayTimeoutId=void 0,this.startCounter({skipDelay:!0})}),i));if(this.counterStarted.emit(),this.disableAnimation)return this.currentValue=this.endValue,void this.counterFinished.emit();if(this.currentValue=this.startValue,this.startValue===this.endValue)return this.counterFinished.emit(),void this.scheduleLoopRestart();const s=Math.max(0,this.duration);if(0===s)return this.currentValue=this.endValue,this.counterFinished.emit(),void this.scheduleLoopRestart();const e=this.getExplicitStepValues(),h=this.getSafeStepCount(),n=e??(h>0?this.getRandomizedStepValues(h):[]),o=n.length>0,r=o?n.length-1:0,a=performance.now(),u=t=>{const i=Math.min(1,Math.max(0,(t-a)/s)),e=this.getAnimationProgress(i);if(o){const t=Math.max(0,Math.min(r,Math.floor(e*r)));this.currentValue=n[t]??this.endValue}else this.currentValue=this.getProgressValue(e);if(i>=1)return this.currentValue=this.endValue,this.clearTimer(),this.counterFinished.emit(),void this.scheduleLoopRestart();this.animationFrameId=globalThis.requestAnimationFrame(u)};this.animationFrameId=globalThis.requestAnimationFrame(u)}formatValue(t){return this.thousandSeparator?t.toLocaleString("lv-LV").replaceAll(" "," "):String(t)}outputValue(){return this.formatValue(this.disableAnimation?this.endValue:this.currentValue)}render(){return e(h,{key:"290ff034f53b3c051f4bebcc330ac096a51800ed"},e("span",{key:"8bed2a283149e77e889c995fe329b50f0893e043",part:"counter","aria-hidden":"true"},this.outputValue()),e("span",{key:"fe19fcee9a0c6b4152d102d881021ff534c8cfd4",class:"sr-only"},this.formatValue(this.endValue)))}static get watchers(){return{startValue:[{onCounterConfigChanged:0}],endValue:[{onCounterConfigChanged:0}],duration:[{onCounterConfigChanged:0}],delay:[{onCounterConfigChanged:0}],valueSteps:[{onCounterConfigChanged:0}],stepValues:[{onCounterConfigChanged:0}],loopInterval:[{onCounterConfigChanged:0}],easing:[{onCounterConfigChanged:0}],easingConfig:[{onCounterConfigChanged:0}],disableAnimation:[{onCounterConfigChanged:0}],startOnViewport:[{onCounterConfigChanged:0}]}}};n.style=":host{display:inline-block}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;white-space:nowrap;border:0;clip:rect(0 0 0 0);clip-path:inset(50%)}";export{n as tet_counter}
@@ -1 +1 @@
1
- import{r as o,e as t,h as e,H as r}from"./p-gA3_LS77.js";import{c as n,a as i}from"./p-SfqlfxDQ.js";const a=class{constructor(t){o(this,t)}stepperData=[];forcedColumn=!1;hideIcons=!1;theme="light";columnLayout=!1;layout="default";get host(){return t(this)}componentDidLoad(){"default"===this.layout&&this.calculateContainerWidth()}renderRoundStepper(o){const t={stepIcon:!0,icon:!0,hide:void 0===o.stepIcon};return e("div",{class:{"round-stepper__item":!0,dark:"dark"===this.theme,"column-layout":this.columnLayout,"with-background-gradient":"withBackgroundGradient"===this.layout,[`color-theme-${o.colorTheme}`]:"withBackgroundGradient"===this.layout&&!!o.colorTheme,[`color-tone-${o.colorTone}`]:"withBackgroundGradient"===this.layout&&!!o.colorTone,[`gradient-${o.gradient}`]:"withBackgroundGradient"===this.layout&&!!o.gradient&&"off"!==o.gradient}},o.icon&&o.hideIconCircle?e("tet-icon",{class:"icon icon-without-circle",name:o.icon,theme:this.theme}):e("div",{class:"round-stepper__circle "+("dark"===this.theme?"dark":""),style:{backgroundColor:o.color}},o.icon?e("tet-icon",{class:"icon",name:o.icon}):e("span",null,o.number)),e("span",{class:"round-stepper__description "+("dark"===this.theme?"dark":""),innerHTML:o.description}),e("div",{class:"round-stepper__icon"},e("tet-icon",{class:t,name:o.stepIcon,theme:this.theme})))}calculateContainerWidth(){const o=this.host,t=o.shadowRoot.querySelector(".round-stepper"),e=o.shadowRoot.querySelectorAll(".round-stepper__description");this.forcedColumn?(t.classList.add("column"),t.style.gap="0.5rem",Array.from(e,(o=>{o.style.maxWidth=`${n(224/i())}px`}))):(t.classList.remove("column"),t.style.gap="1rem",Array.from(e,(o=>{o.style.maxWidth=`${n(192/i())}px`})))}onResize(){"default"===this.layout&&this.calculateContainerWidth()}render(){return e(r,{key:"d87d46f3f549dcb8ad01271f2d707a83416e26d1"},e("div",{key:"cd8ffdcf74cc77bf620ff1568f41a75e7df1c624",class:{"round-stepper":!0,"with-background-gradient":"withBackgroundGradient"===this.layout,column:this.forcedColumn,"one-to-three-items":"withBackgroundGradient"===this.layout&&this.stepperData.length<=3,"six-plus-items":"withBackgroundGradient"===this.layout&&this.stepperData.length>=6,"hide-icons":this.hideIcons}},this.stepperData.map((o=>this.renderRoundStepper(o)))))}};a.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)}@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{--round-stepper-text-color:var(--tc-text-primary);--round-stepper-background-color:var(--tc-layer-tertiary);--step-icon-size:1.5rem;--step-circle-size:2.5rem;--description-hide-icons-font-size:0.875rem;--description-hide-icons-line-height:1.25rem;--round-stepper-align-items:center}:host .dark{--round-stepper-text-color:var(--tc-text-primary-dark);--round-stepper-background-color:var(--tc-layer-tertiary-dark)}.round-stepper{display:flex}.round-stepper.with-background-gradient{gap:1.5rem;width:100%;flex-direction:column}@media all and (min-width: 48rem){.round-stepper.with-background-gradient{flex-direction:row}}@media all and (min-width: 48rem){.round-stepper.with-background-gradient.one-to-three-items .round-stepper__item.with-background-gradient{padding:1.5rem}}@media all and (min-width: 120rem){.round-stepper.with-background-gradient.one-to-three-items .round-stepper__item.with-background-gradient{padding:2.5rem}.round-stepper.with-background-gradient.one-to-three-items .round-stepper__item.with-background-gradient .round-stepper__circle{--step-circle-size:3rem}}.round-stepper.with-background-gradient.one-to-three-items .round-stepper__description{font:600 1.5rem/1.75rem Gilroy, Gilroy, Arial, sans-serif;line-height:1.75rem}@media all and (min-width: 80rem){.round-stepper.with-background-gradient.one-to-three-items .round-stepper__description{font:600 1.75rem/2rem Gilroy, Gilroy, Arial, sans-serif;line-height:2rem}}@media all and (min-width: 120rem){.round-stepper.with-background-gradient.one-to-three-items .round-stepper__description{font:600 2rem/2.25rem Gilroy, Gilroy, Arial, sans-serif;line-height:2.25rem;margin-top:1.5rem}}.round-stepper.with-background-gradient .round-stepper__description{font:600 1.25rem/1.5rem Gilroy, Gilroy, Arial, sans-serif;line-height:1.5rem}@media all and (min-width: 48rem) and (max-width: 80rem){.round-stepper.with-background-gradient.six-plus-items{display:grid;grid-template-columns:repeat(3, 1fr);gap:1.5rem}.round-stepper.with-background-gradient.six-plus-items .round-stepper__item{max-width:none}}.round-stepper.hide-icons .round-stepper__icon .icon{display:none}.round-stepper.column{flex-direction:column}.round-stepper__item{display:flex;align-items:var(--round-stepper-align-items);padding:0.5rem 0 0.5rem 0}.round-stepper__item.column-layout{flex-direction:column;align-items:start;width:100%}.round-stepper__item.column-layout .round-stepper__description{margin-left:0;margin-top:1rem}.round-stepper__item.with-background-gradient{--round-stepper-item-background-color:transparent;--round-stepper-item-background-color-dark:var(--round-stepper-item-background-color);--round-stepper-item-circle-background-color:var(--tc-icon-black-to-yellow);--round-stepper-item-circle-text-color:var(--tc-text-inverse-primary);--round-stepper-item-circle-background-color-dark:var(--tc-icon-black-to-yellow-dark);--round-stepper-item-circle-text-color-dark:var(--tc-text-inverse-primary-dark);max-width:45rem;border-radius:1rem;padding:1.5rem 1rem;background-color:var(--round-stepper-item-background-color)}@media all and (min-width: 48rem){.round-stepper__item.with-background-gradient{max-width:36rem}}@media all and (min-width: 64rem){.round-stepper__item.with-background-gradient{padding:1.5rem}}.round-stepper__item.with-background-gradient.dark{--round-stepper-item-circle-background-color:var(--round-stepper-item-circle-background-color-dark);--round-stepper-item-circle-text-color:var(--round-stepper-item-circle-text-color-dark);background-color:var(--round-stepper-item-background-color-dark)}.round-stepper__item.with-background-gradient .round-stepper__circle{background-color:var(--round-stepper-item-circle-background-color) !important;color:var(--round-stepper-item-circle-text-color) !important}.round-stepper__item.with-background-gradient .round-stepper__circle tet-icon.icon{--icon-color:var(--round-stepper-item-circle-text-color) !important}.round-stepper__item.with-background-gradient.color-theme-yellow.color-tone-very-dark{--round-stepper-item-background-color:var(--tc-gradient-grey-accent);--round-stepper-item-background-color-dark:var(--tc-brown-80-dark)}.round-stepper__item.with-background-gradient.color-theme-yellow.color-tone-dark{--round-stepper-item-background-color:var(--tc-yellow-30);--round-stepper-item-background-color-dark:var(--tc-brown-70-dark)}.round-stepper__item.with-background-gradient.color-theme-yellow.color-tone-light{--round-stepper-item-background-color:var(--tc-yellow-20);--round-stepper-item-background-color-dark:var(--tc-brown-60-dark)}.round-stepper__item.with-background-gradient.color-theme-yellow.color-tone-very-light{--round-stepper-item-background-color:var(--tc-yellow-10);--round-stepper-item-background-color-dark:var(--tc-brown-50-dark)}.round-stepper__item.with-background-gradient.color-theme-gray.color-tone-very-dark{--round-stepper-item-background-color:var(--tc-grey-50);--round-stepper-item-background-color-dark:var(--tc-brown-80-dark)}.round-stepper__item.with-background-gradient.color-theme-gray.color-tone-dark{--round-stepper-item-background-color:var(--tc-grey-40);--round-stepper-item-background-color-dark:var(--tc-brown-70-dark)}.round-stepper__item.with-background-gradient.color-theme-gray.color-tone-light{--round-stepper-item-background-color:var(--tc-grey-30);--round-stepper-item-background-color-dark:var(--tc-brown-60-dark)}.round-stepper__item.with-background-gradient.color-theme-gray.color-tone-very-light{--round-stepper-item-background-color:var(--tc-grey-20);--round-stepper-item-background-color-dark:var(--tc-brown-50-dark)}.round-stepper__item.with-background-gradient.gradient-dark-light{background-image:linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.12))}.round-stepper__item.with-background-gradient.gradient-light-dark{background-image:linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.12))}.round-stepper__circle{display:flex;align-items:center;justify-content:center;min-width:var(--step-circle-size);height:var(--step-circle-size);border-radius:var(--step-circle-size);font-weight:500;font-size:1.25rem;background-color:var(--round-stepper-background-color);color:var(--round-stepper-text-color)}.round-stepper__circle tet-icon.icon{--icon-color:var(--round-stepper-text-color) !important}.round-stepper__circle.dark{background-color:var(--round-stepper-background-color) !important}.round-stepper__circle.dark tet-icon.icon{--icon-color:var(--round-stepper-text-color) !important}.round-stepper__description,.round-stepper__icon{margin-left:1rem;font-weight:500}.round-stepper__description{font:500 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;line-height:1.5rem;color:var(--round-stepper-text-color)}.hide-icons .round-stepper__description{font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;font-size:var(--description-hide-icons-font-size);line-height:var(--description-hide-icons-line-height)}.column .round-stepper__description{font:500 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;line-height:1.5rem}.round-stepper__icon .icon.hide{display:none}tet-icon.icon{--icon-size:var(--step-icon-size)}tet-icon.icon.icon-without-circle{--icon-size:2.5rem}@media all and (min-width: 120rem){tet-icon.icon.icon-without-circle{--icon-size:3rem}}';export{a as tet_round_stepper}
1
+ import{r as o,e as t,h as e,H as r}from"./p-CO8AyGrA.js";import{c as n,a as i}from"./p-SfqlfxDQ.js";const a=class{constructor(t){o(this,t)}stepperData=[];forcedColumn=!1;hideIcons=!1;theme="light";columnLayout=!1;layout="default";get host(){return t(this)}componentDidLoad(){"default"===this.layout&&this.calculateContainerWidth()}renderRoundStepper(o){const t={stepIcon:!0,icon:!0,hide:void 0===o.stepIcon};return e("div",{class:{"round-stepper__item":!0,dark:"dark"===this.theme,"column-layout":this.columnLayout,"with-background-gradient":"withBackgroundGradient"===this.layout,[`color-theme-${o.colorTheme}`]:"withBackgroundGradient"===this.layout&&!!o.colorTheme,[`color-tone-${o.colorTone}`]:"withBackgroundGradient"===this.layout&&!!o.colorTone,[`gradient-${o.gradient}`]:"withBackgroundGradient"===this.layout&&!!o.gradient&&"off"!==o.gradient}},o.icon&&o.hideIconCircle?e("tet-icon",{class:"icon icon-without-circle",name:o.icon,theme:this.theme}):e("div",{class:"round-stepper__circle "+("dark"===this.theme?"dark":""),style:{backgroundColor:o.color}},o.icon?e("tet-icon",{class:"icon",name:o.icon}):e("span",null,o.number)),e("span",{class:"round-stepper__description "+("dark"===this.theme?"dark":""),innerHTML:o.description}),e("div",{class:"round-stepper__icon"},e("tet-icon",{class:t,name:o.stepIcon,theme:this.theme})))}calculateContainerWidth(){const o=this.host,t=o.shadowRoot.querySelector(".round-stepper"),e=o.shadowRoot.querySelectorAll(".round-stepper__description");this.forcedColumn?(t.classList.add("column"),t.style.gap="0.5rem",Array.from(e,(o=>{o.style.maxWidth=`${n(224/i())}px`}))):(t.classList.remove("column"),t.style.gap="1rem",Array.from(e,(o=>{o.style.maxWidth=`${n(192/i())}px`})))}onResize(){"default"===this.layout&&this.calculateContainerWidth()}render(){return e(r,{key:"d87d46f3f549dcb8ad01271f2d707a83416e26d1"},e("div",{key:"cd8ffdcf74cc77bf620ff1568f41a75e7df1c624",class:{"round-stepper":!0,"with-background-gradient":"withBackgroundGradient"===this.layout,column:this.forcedColumn,"one-to-three-items":"withBackgroundGradient"===this.layout&&this.stepperData.length<=3,"six-plus-items":"withBackgroundGradient"===this.layout&&this.stepperData.length>=6,"hide-icons":this.hideIcons}},this.stepperData.map((o=>this.renderRoundStepper(o)))))}};a.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)}@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{--round-stepper-text-color:var(--tc-text-primary);--round-stepper-background-color:var(--tc-layer-tertiary);--step-icon-size:1.5rem;--step-circle-size:2.5rem;--description-hide-icons-font-size:0.875rem;--description-hide-icons-line-height:1.25rem;--round-stepper-align-items:center}:host .dark{--round-stepper-text-color:var(--tc-text-primary-dark);--round-stepper-background-color:var(--tc-layer-tertiary-dark)}.round-stepper{display:flex}.round-stepper.with-background-gradient{gap:1.5rem;width:100%;flex-direction:column}@media all and (min-width: 48rem){.round-stepper.with-background-gradient{flex-direction:row}}@media all and (min-width: 48rem){.round-stepper.with-background-gradient.one-to-three-items .round-stepper__item.with-background-gradient{padding:1.5rem}}@media all and (min-width: 120rem){.round-stepper.with-background-gradient.one-to-three-items .round-stepper__item.with-background-gradient{padding:2.5rem}.round-stepper.with-background-gradient.one-to-three-items .round-stepper__item.with-background-gradient .round-stepper__circle{--step-circle-size:3rem}}.round-stepper.with-background-gradient.one-to-three-items .round-stepper__description{font:600 1.5rem/1.75rem Gilroy, Gilroy, Arial, sans-serif;line-height:1.75rem}@media all and (min-width: 80rem){.round-stepper.with-background-gradient.one-to-three-items .round-stepper__description{font:600 1.75rem/2rem Gilroy, Gilroy, Arial, sans-serif;line-height:2rem}}@media all and (min-width: 120rem){.round-stepper.with-background-gradient.one-to-three-items .round-stepper__description{font:600 2rem/2.25rem Gilroy, Gilroy, Arial, sans-serif;line-height:2.25rem;margin-top:1.5rem}}.round-stepper.with-background-gradient .round-stepper__description{font:600 1.25rem/1.5rem Gilroy, Gilroy, Arial, sans-serif;line-height:1.5rem}@media all and (min-width: 48rem) and (max-width: 80rem){.round-stepper.with-background-gradient.six-plus-items{display:grid;grid-template-columns:repeat(3, 1fr);gap:1.5rem}.round-stepper.with-background-gradient.six-plus-items .round-stepper__item{max-width:none}}.round-stepper.hide-icons .round-stepper__icon .icon{display:none}.round-stepper.column{flex-direction:column}.round-stepper__item{display:flex;align-items:var(--round-stepper-align-items);padding:0.5rem 0 0.5rem 0}.round-stepper__item.column-layout{flex-direction:column;align-items:start;width:100%}.round-stepper__item.column-layout .round-stepper__description{margin-left:0;margin-top:1rem}.round-stepper__item.with-background-gradient{--round-stepper-item-background-color:transparent;--round-stepper-item-background-color-dark:var(--round-stepper-item-background-color);--round-stepper-item-circle-background-color:var(--tc-icon-black-to-yellow);--round-stepper-item-circle-text-color:var(--tc-text-inverse-primary);--round-stepper-item-circle-background-color-dark:var(--tc-icon-black-to-yellow-dark);--round-stepper-item-circle-text-color-dark:var(--tc-text-inverse-primary-dark);max-width:45rem;border-radius:1rem;padding:1.5rem 1rem;background-color:var(--round-stepper-item-background-color)}@media all and (min-width: 48rem){.round-stepper__item.with-background-gradient{max-width:36rem}}@media all and (min-width: 64rem){.round-stepper__item.with-background-gradient{padding:1.5rem}}.round-stepper__item.with-background-gradient.dark{--round-stepper-item-circle-background-color:var(--round-stepper-item-circle-background-color-dark);--round-stepper-item-circle-text-color:var(--round-stepper-item-circle-text-color-dark);background-color:var(--round-stepper-item-background-color-dark)}.round-stepper__item.with-background-gradient .round-stepper__circle{background-color:var(--round-stepper-item-circle-background-color) !important;color:var(--round-stepper-item-circle-text-color) !important}.round-stepper__item.with-background-gradient .round-stepper__circle tet-icon.icon{--icon-color:var(--round-stepper-item-circle-text-color) !important}.round-stepper__item.with-background-gradient.color-theme-yellow.color-tone-very-dark{--round-stepper-item-background-color:var(--tc-gradient-grey-accent);--round-stepper-item-background-color-dark:var(--tc-brown-80-dark)}.round-stepper__item.with-background-gradient.color-theme-yellow.color-tone-dark{--round-stepper-item-background-color:var(--tc-yellow-30);--round-stepper-item-background-color-dark:var(--tc-brown-70-dark)}.round-stepper__item.with-background-gradient.color-theme-yellow.color-tone-light{--round-stepper-item-background-color:var(--tc-yellow-20);--round-stepper-item-background-color-dark:var(--tc-brown-60-dark)}.round-stepper__item.with-background-gradient.color-theme-yellow.color-tone-very-light{--round-stepper-item-background-color:var(--tc-yellow-10);--round-stepper-item-background-color-dark:var(--tc-brown-50-dark)}.round-stepper__item.with-background-gradient.color-theme-gray.color-tone-very-dark{--round-stepper-item-background-color:var(--tc-grey-50);--round-stepper-item-background-color-dark:var(--tc-brown-80-dark)}.round-stepper__item.with-background-gradient.color-theme-gray.color-tone-dark{--round-stepper-item-background-color:var(--tc-grey-40);--round-stepper-item-background-color-dark:var(--tc-brown-70-dark)}.round-stepper__item.with-background-gradient.color-theme-gray.color-tone-light{--round-stepper-item-background-color:var(--tc-grey-30);--round-stepper-item-background-color-dark:var(--tc-brown-60-dark)}.round-stepper__item.with-background-gradient.color-theme-gray.color-tone-very-light{--round-stepper-item-background-color:var(--tc-grey-20);--round-stepper-item-background-color-dark:var(--tc-brown-50-dark)}.round-stepper__item.with-background-gradient.gradient-dark-light{background-image:linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.12))}.round-stepper__item.with-background-gradient.gradient-light-dark{background-image:linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.12))}.round-stepper__circle{display:flex;align-items:center;justify-content:center;min-width:var(--step-circle-size);height:var(--step-circle-size);border-radius:var(--step-circle-size);font-weight:500;font-size:1.25rem;background-color:var(--round-stepper-background-color);color:var(--round-stepper-text-color)}.round-stepper__circle tet-icon.icon{--icon-color:var(--round-stepper-text-color) !important}.round-stepper__circle.dark{background-color:var(--round-stepper-background-color) !important}.round-stepper__circle.dark tet-icon.icon{--icon-color:var(--round-stepper-text-color) !important}.round-stepper__description,.round-stepper__icon{margin-left:1rem;font-weight:500}.round-stepper__description{font:500 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;line-height:1.5rem;color:var(--round-stepper-text-color)}.hide-icons .round-stepper__description{font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;font-size:var(--description-hide-icons-font-size);line-height:var(--description-hide-icons-line-height)}.column .round-stepper__description{font:500 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;line-height:1.5rem}.round-stepper__icon .icon.hide{display:none}tet-icon.icon{--icon-size:var(--step-icon-size)}tet-icon.icon.icon-without-circle{--icon-size:2.5rem}@media all and (min-width: 120rem){tet-icon.icon.icon-without-circle{--icon-size:3rem}}';export{a as tet_round_stepper}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as r,H as o,f as i,e as a}from"./p-CO8AyGrA.js";import{o as n}from"./p-DdqamPtp.js";import{p as s,t as l}from"./p-1Pg6Bg5R.js";import{f as c,r as h}from"./p-Cak7jORV.js";import{T as d,f as p}from"./p-BTxL4Knq.js";import{T as m}from"./p-CroGHapK.js";import"./p-BCewZzcy.js";import"./p-CaZKtSyx.js";const g="tv-channel-picker__list--dragging",v=class{constructor(r){t(this,r),this.channelSelected=e(this,"channelSelected")}theme="light";channels=[];selectedChannel;disabled=!1;loading=!1;showGradients=!1;focusedChannel;failedImageSources=[];visibleChannelIds=[];canScrollLeft=!1;canScrollRight=!1;channelSelected;imageObservations=new Map;channelList;renderedSelectedChannel;renderedLoading=!1;drag;suppressChannelClick=!1;resizeObserver;connectedCallback(){this.channelList&&(this.resizeObserver?.observe(this.channelList),this.observeChannelImages())}componentWillLoad(){this.onChannelsChange()}componentDidLoad(){this.channelList&&"function"==typeof globalThis.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{this.drag||this.centerChannel(),this.updateScrollEdges()})),this.resizeObserver.observe(this.channelList))}componentDidRender(){const t=this.renderedSelectedChannel!==this.selectedChannel,e=this.renderedLoading&&!this.loading;this.renderedSelectedChannel=this.selectedChannel,this.renderedLoading=this.loading,(t||e)&&this.centerChannel(),queueMicrotask((()=>this.updateScrollEdges())),this.observeChannelImages()}disconnectedCallback(){this.resizeObserver?.disconnect();for(const t of this.imageObservations.values())t();this.imageObservations.clear(),this.drag&&this.handlePointerEnd(this.drag.pointerId),this.suppressChannelClick=!1}onThemeChange(){this.visibleChannelIds=[];for(const t of this.imageObservations.values())t();this.imageObservations.clear()}onChannelsChange(){const t=new Set(this.channels.map((t=>t.id)));this.visibleChannelIds=this.visibleChannelIds.filter((e=>t.has(e))),this.channels.some((t=>t.id===this.selectedChannel))||(this.selectedChannel=this.channels[0]?.id),this.channels.some((t=>t.id===this.focusedChannel))||(this.focusedChannel=void 0)}async setChannel(t){const e=this.channels.find((e=>e.id===t))??this.channels[0];e?.id===this.selectedChannel?this.centerChannel():this.selectedChannel=e?.id}handlePointerDown(t){this.suppressChannelClick=!1,"mouse"===t.pointerType&&0===t.button&&this.channelList&&(this.drag={pointerId:t.pointerId,startX:t.clientX,scrollLeft:this.channelList.scrollLeft,active:!1})}handlePointerMove(t){const e=this.drag,r=this.channelList;if(!e||!r||t.pointerId!==e.pointerId)return;if(!(1&t.buttons))return void this.handlePointerEnd(t.pointerId);const o=t.clientX-e.startX;!e.active&&Math.abs(o)<5||(e.active||(e.active=!0,this.suppressChannelClick=!0,r.classList.add(g),r.setPointerCapture(t.pointerId)),t.preventDefault(),r.scrollLeft=e.scrollLeft-o)}handlePointerEnd(t){this.drag?.pointerId===t&&(this.drag=void 0,this.channelList?.classList.remove(g),this.channelList?.hasPointerCapture(t)&&this.channelList.releasePointerCapture(t))}handleChannelButtonClick(t,e){this.suppressChannelClick&&0!==e.detail||this.handleChannelClick(t)}handleChannelKeyDown(t,e){if(this.disabled||this.loading||t.altKey||t.ctrlKey||t.metaKey||!["ArrowLeft","ArrowRight","Home","End"].includes(t.key))return;t.preventDefault();const r=this.channels.findIndex((t=>t.id===e.id)),o={ArrowLeft:r-1,ArrowRight:r+1,Home:0,End:this.channels.length-1}[t.key],i=r>=0?this.channels[o]:void 0;i&&(this.channelList?.querySelectorAll("button")[o]?.focus({preventScroll:!0}),this.centerChannel(i.id))}handleChannelFocus(t,e){this.focusedChannel=e.id,!this.drag&&t.currentTarget instanceof Element&&t.currentTarget.matches(":focus-visible")&&this.centerChannel(e.id)}handleFocusOut(t){const e=t.relatedTarget;e instanceof Node&&this.channelList?.contains(e)||(this.focusedChannel=void 0,this.centerChannel())}observeChannelImages(){const t=this.channelList;if(t){for(const[e,r]of this.imageObservations)t.contains(e)&&!this.visibleChannelIds.includes(e.dataset.channelId??"")||(r(),this.imageObservations.delete(e));for(const e of Array.from(t.querySelectorAll("button[data-channel-id]"))){const r=e.dataset.channelId;if(r&&!this.visibleChannelIds.includes(r)&&!this.imageObservations.has(e)&&e.querySelector("img")){const o=this.theme,i=n(e,(()=>{this.theme===o&&t.contains(e)&&!this.visibleChannelIds.includes(r)&&(this.visibleChannelIds=[...this.visibleChannelIds,r])}));this.imageObservations.set(e,i)}}}}updateScrollEdges(){const t=this.channelList;this.canScrollLeft=!!t&&t.scrollLeft>1,this.canScrollRight=!!t&&t.scrollWidth-t.clientWidth-t.scrollLeft>1}centerChannel(t=this.selectedChannel){const e=this.channelList,r=this.channels.findIndex((e=>e.id===t)),o=e?.querySelectorAll("button")[r];if(e&&o){const t=e.getBoundingClientRect(),r=o.getBoundingClientRect(),i=e.scrollLeft+(r.left-t.left-e.clientLeft)-(e.clientWidth-r.width)/2,a=Math.max(0,e.scrollWidth-e.clientWidth);e.scrollLeft=Math.max(0,Math.min(i,a))}}handleChannelClick(t){this.disabled||this.loading||(t.id!==this.selectedChannel?(this.selectedChannel=t.id,this.channelSelected.emit(t.id)):this.centerChannel())}renderChannelPlaceholders(){return Array.from({length:16},((t,e)=>r("li",{class:"tv-channel-picker__item",key:`loading-${e}`,"aria-hidden":"true"},r("div",{class:"tv-channel-picker__placeholder"},r("tet-placeholder",{width:"100%",height:"100%",darkTheme:"dark"===this.theme})))))}renderChannelButtons(){return this.channels.map((t=>{const e=this.selectedChannel===t.id,o="dark"===this.theme?t.imageSourceDark??t.imageSource:t.imageSource;return r("li",{class:"tv-channel-picker__item",key:t.id},r("button",{type:"button",class:"tv-channel-picker__button","data-channel-id":t.id,disabled:this.disabled,"aria-label":t.name,"aria-pressed":e?"true":"false",tabIndex:(this.focusedChannel??this.selectedChannel)===t.id?0:-1,onFocus:e=>this.handleChannelFocus(e,t),onClick:e=>this.handleChannelButtonClick(t,e),onKeyDown:e=>this.handleChannelKeyDown(e,t)},!o||this.failedImageSources.includes(o)?r("span",{class:"tv-channel-picker__fallback"},t.name):r("img",{class:"tv-channel-picker__image",src:this.visibleChannelIds.includes(t.id)?o:void 0,alt:"",draggable:!1,onError:()=>{this.failedImageSources.includes(o)||(this.failedImageSources=[...this.failedImageSources,o])}})),e&&r("div",{class:"tv-channel-picker__button-underline"}))}))}render(){return r(o,{key:"8e7b35a4998e34008c283b328a5cfe7ec2e969b7"},r("div",{key:"043d490ec8280e64a11d36fc3ea0a15e40528609",class:{"tv-channel-picker":!0,"tv-channel-picker--gradients":this.showGradients,"tv-channel-picker--gradient-left":this.showGradients&&this.canScrollLeft,"tv-channel-picker--gradient-right":this.showGradients&&this.canScrollRight}},r("ul",{key:"abf60cc7e85d5f58f9b6d6ad186480553f03fd89",class:"tv-channel-picker__list",tabIndex:-1,"aria-busy":this.loading?"true":"false",ref:t=>{this.channelList=t},onScroll:()=>this.updateScrollEdges(),onFocusout:t=>this.handleFocusOut(t),onPointerDown:t=>this.handlePointerDown(t),onPointerMove:t=>this.handlePointerMove(t),onPointerUp:t=>this.handlePointerEnd(t.pointerId),onPointerCancel:t=>this.handlePointerEnd(t.pointerId),onLostPointerCapture:t=>this.handlePointerEnd(t.pointerId)},this.loading?this.renderChannelPlaceholders():this.renderChannelButtons())))}static get watchers(){return{theme:[{onThemeChange:0}],channels:[{onChannelsChange:0}]}}};v.style='@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-pressed-background-color:var(--tc-layer-grey-tertiary);--tv-channel-picker-button-active-background-color:var(--tc-layer-grey-secondary);--tv-channel-picker-button-underline-color:var(--tc-layer-permanent-yellow);--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-pressed-background-color:var(--tc-layer-grey-tertiary-dark);--tv-channel-picker-button-active-background-color:var(--tc-layer-grey-secondary-dark);--tv-channel-picker-button-underline-color:var(--tc-layer-permanent-yellow-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;padding-inline:1rem}@media screen and (min-width: 31.25rem){.tv-channel-picker__list{padding-inline:2rem}}@media screen and (min-width: 48rem){.tv-channel-picker__list{padding-inline:0}}.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:active{background-color:var(--tv-channel-picker-button-pressed-background-color)}.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-underline-color)}';const f="tv-date-picker__list--dragging",u=new Intl.DateTimeFormat("lv-LV",{weekday:"long"}),b=class{constructor(r){t(this,r),this.dateSelected=e(this,"dateSelected")}theme="light";daysRange=7;language="lv";disabled=!1;selectedDate=c(new Date);focusedDate;dateSelected;dateList;renderedSelectedDate;renderedDaysRange;drag;suppressDateClick=!1;resizeObserver;async onDaysRangeChange(){this.getDates().some((t=>c(t)===this.focusedDate))||(this.focusedDate=void 0),await this.setDate(this.selectedDate)}async onLanguageChange(t){await s("tet-components",t),i(this)}async setDate(t){const e=this.getDates().some((e=>c(e)===t)),r=t&&e?t:c(new Date);r===this.selectedDate?this.centerDate():this.selectedDate=r}connectedCallback(){this.dateList&&this.resizeObserver?.observe(this.dateList)}async componentWillLoad(){await this.onLanguageChange(this.language)}componentDidLoad(){this.dateList&&"function"==typeof globalThis.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{this.drag||this.centerDate()})),this.resizeObserver.observe(this.dateList))}componentDidRender(){this.renderedSelectedDate===this.selectedDate&&this.renderedDaysRange===this.daysRange||this.centerDate(),this.renderedSelectedDate=this.selectedDate,this.renderedDaysRange=this.daysRange}disconnectedCallback(){this.resizeObserver?.disconnect(),this.drag&&this.handlePointerEnd(this.drag.pointerId),this.suppressDateClick=!1}handlePointerDown(t){this.suppressDateClick=!1,"mouse"===t.pointerType&&0===t.button&&this.dateList&&(this.drag={pointerId:t.pointerId,startX:t.clientX,scrollLeft:this.dateList.scrollLeft,active:!1})}handlePointerMove(t){const e=this.drag,r=this.dateList;if(!e||!r||t.pointerId!==e.pointerId)return;if(!(1&t.buttons))return void this.handlePointerEnd(t.pointerId);const o=t.clientX-e.startX;!e.active&&Math.abs(o)<5||(e.active||(e.active=!0,this.suppressDateClick=!0,r.classList.add(f),r.setPointerCapture(t.pointerId)),t.preventDefault(),r.scrollLeft=e.scrollLeft-o)}handlePointerEnd(t){this.drag?.pointerId===t&&(this.drag=void 0,this.dateList?.classList.remove(f),this.dateList?.hasPointerCapture(t)&&this.dateList.releasePointerCapture(t))}handleDateButtonClick(t,e){this.suppressDateClick&&0!==e.detail||this.handleDateClick(t)}handleDateKeyDown(t,e){if(this.disabled||t.altKey||t.ctrlKey||t.metaKey||!["ArrowLeft","ArrowRight","Home","End"].includes(t.key))return;t.preventDefault();const r=this.getDates(),o=r.findIndex((t=>c(t)===c(e))),i={ArrowLeft:o-1,ArrowRight:o+1,Home:0,End:r.length-1},a=o>=0?r[i[t.key]]:void 0;a&&(this.focusedDate=c(a),this.dateList?.querySelectorAll("button")[i[t.key]]?.focus({preventScroll:!0}),this.centerDate(this.focusedDate))}handleDateFocus(t,e){this.focusedDate=e,!this.drag&&t.currentTarget instanceof Element&&t.currentTarget.matches(":focus-visible")&&this.centerDate(e)}handleFocusOut(t){t.relatedTarget instanceof Node&&this.dateList?.contains(t.relatedTarget)||(this.focusedDate=void 0,this.centerDate())}centerDate(t=this.selectedDate){const e=this.dateList,r=this.getDates().findIndex((e=>c(e)===t)),o=e?.querySelectorAll("button")[r];if(e&&o){const t=e.getBoundingClientRect(),r=o.getBoundingClientRect(),i=e.scrollLeft+(r.left-t.left-e.clientLeft)-(e.clientWidth-r.width)/2,a=Math.max(0,e.scrollWidth-e.clientWidth);e.scrollLeft=Math.max(0,Math.min(i,a))}}getDates(){const t=Number.isFinite(this.daysRange)?Math.min(30,Math.max(0,Math.floor(this.daysRange))):0,e=new Date;return Array.from({length:2*t+1},((r,o)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()+o-t)))}formatLabel(t,e){const o=u.format(t),i=o.charAt(0).toLocaleUpperCase("lv-LV")+o.slice(1),a={[-1]:"components-tv-program-yesterday",0:"components-tv-program-today",1:"components-tv-program-tomorrow"}[e],n=a?l(a):i,s=String(t.getDate()).padStart(2,"0"),c=String(t.getMonth()+1).padStart(2,"0");return r("span",{class:"tv-date-picker__button-label"},r("span",null,n,",")," ",r("span",{class:"tv-date-picker__date"},s,".",c))}handleDateClick(t){const e=c(t);this.disabled||(e!==this.selectedDate?(this.selectedDate=e,this.dateSelected.emit(e)):this.centerDate())}getNavigationDate(t,e){const r=e.findIndex((t=>c(t)===this.selectedDate));return r>=0?e[r+("left"===t?-1:1)]:void 0}handleNavButtonClick(t){const e=this.getNavigationDate(t,this.getDates());e&&this.handleDateClick(e)}renderNavigationButtons(t,e){const o="left"===t,i=o?"tc-chevron-left":"tc-chevron-right",a=l(o?"components-tv-program-previous-day":"components-tv-program-next-day"),n=this.disabled||!this.getNavigationDate(t,e);return r("button",{type:"button",class:{"tv-date-picker__button":!0,"tv-date-picker__button--nav":!0},"aria-label":a,disabled:n,onClick:()=>this.handleNavButtonClick(t)},r("tet-icon",{class:"tv-date-picker__nav-button-icon",name:i,theme:this.theme,type:n?"tertiary":"primary"}))}render(){const t=this.getDates(),e=Math.floor(t.length/2);return r(o,{key:"7f8afb427c4be4c85d17f7fe329f488bbac48fdb"},r("div",{key:"71562a184402085fcfa0add98a53f00233a6ef18",class:"tv-date-picker"},this.renderNavigationButtons("left",t),r("ul",{key:"9aa58de9e9811ede5826cbed8a1cf7153cdef74b",class:"tv-date-picker__list",tabIndex:-1,ref:t=>{this.dateList=t},onFocusout:t=>this.handleFocusOut(t),onPointerDown:t=>this.handlePointerDown(t),onPointerMove:t=>this.handlePointerMove(t),onPointerUp:t=>this.handlePointerEnd(t.pointerId),onPointerCancel:t=>this.handlePointerEnd(t.pointerId),onLostPointerCapture:t=>this.handlePointerEnd(t.pointerId)},t.map(((t,o)=>{const i=c(t);return r("li",{class:"tv-date-picker__item",key:i},r("button",{type:"button",class:"tv-date-picker__button tv-date-picker__button--date",disabled:this.disabled,"aria-pressed":this.selectedDate===i?"true":"false",tabIndex:(this.focusedDate??this.selectedDate)===i?0:-1,onFocus:t=>this.handleDateFocus(t,i),onClick:e=>this.handleDateButtonClick(t,e),onKeyDown:e=>this.handleDateKeyDown(e,t)},r("time",{dateTime:i},this.formatLabel(t,o-e))))}))),this.renderNavigationButtons("right",t)))}static get watchers(){return{daysRange:[{onDaysRangeChange:0}],language:[{onLanguageChange:0}]}}};b.style='@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-program-navigation-button-background-color:var(--tc-layer-grey-primary);--tv-program-navigation-button-hover-background-color:var(--tc-layer-grey-secondary);--tv-program-navigation-button-pressed-background-color:var(--tc-layer-grey-tertiary);--tv-program-navigation-button-focus-outline-color:var(--tc-blue-40)}:host([theme=dark]){--tv-program-navigation-button-background-color:var(--tc-layer-grey-primary-dark);--tv-program-navigation-button-hover-background-color:var(--tc-layer-grey-secondary-dark);--tv-program-navigation-button-pressed-background-color:var(--tc-layer-grey-tertiary-dark);--tv-program-navigation-button-focus-outline-color:var(--tc-blue-40-dark)}: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(--tv-program-navigation-button-background-color);--tv-date-picker-button-active-background-color:var(--tc-button-primary-yellow-background-default);--tv-date-picker-button-active-box-shadow:var(--tc-elevation-one);display:block;min-height:2.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-button-active-background-color:var(--tc-button-primary-yellow-background-default-dark);--tv-date-picker-button-active-box-shadow:var(--tc-elevation-one-dark)}.tv-date-picker{display:flex;align-items:center;max-width:100%;height:2.75rem}@media screen and (min-width: 48rem){.tv-date-picker{height:3.75rem;border-radius:1.875rem;padding-inline:0.5rem;background-color:var(--tv-date-picker-main-background-color)}}.tv-date-picker__button{align-items:center;border:none;cursor:pointer;background-color:var(--tv-program-navigation-button-background-color);color:var(--tv-date-picker-text-primary-color)}.tv-date-picker__button:hover{background-color:var(--tv-program-navigation-button-hover-background-color)}.tv-date-picker__button:active{background-color:var(--tv-program-navigation-button-pressed-background-color)}.tv-date-picker__button:disabled{pointer-events:none}.tv-date-picker__button:focus-visible{outline:0.125rem solid var(--tv-program-navigation-button-focus-outline-color);outline-offset:0.125rem}.tv-date-picker__button:focus-visible{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-block:0.25rem;margin-block:-0.25rem;padding-inline:1rem;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none;-webkit-user-select:none;user-select:none}@media screen and (min-width: 31.25rem){.tv-date-picker__list{padding-inline:2rem}}@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.375rem 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:flex;align-items:center;justify-content:center;padding:0.875rem;border-radius:50%;display:none}@media screen and (min-width: 48rem){.tv-date-picker__button--nav{display:flex}}.tv-date-picker__nav-button-icon{--icon-size:1.25rem}.tv-date-picker__item{list-style:none}@media screen and (min-width: 48rem){.tv-date-picker__item{min-width:0;scroll-snap-align:start}}.tv-date-picker__button-label{display:block;overflow:hidden}@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.25rem;border-radius:1.5rem;height:2.75rem;white-space:nowrap;line-height:1.25}@media screen and (min-width: 48rem){.tv-date-picker__button--date{width:100%;height:3rem;padding-inline:1.25rem}}.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);box-shadow:var(--tv-date-picker-button-active-box-shadow)}';const y="tv-program__schedule-container--dragging",_=1440,w=60,k=Array.from({length:97},((t,e)=>{const r=15*e,o=r%60==0;return{minute:r,isHour:o,label:o?`${String(r/60).padStart(2,"0")}:00`:String(r%60),left:r/_*100+"%"}})),x=class{constructor(r){t(this,r),this.currentTimeVisibilityChanged=e(this,"currentTimeVisibilityChanged")}theme="light";language="lv";unavailableTitle="";schedules=[];channels=[];date=c();channelsLoading=!1;programLoading=!1;loadingMoreChannels=!1;currentTime=Date.now();broadcastTiming={};visibleRange;selectedItemId;focusedItemId;focusedChannelId;visibleChannelIds=new Set;channelTooltipState;canScrollPrevious=!1;canScrollNext=!1;failedChannelLogoSources=new Set;currentTimeVisibilityChanged;get element(){return a(this)}channelIdsByRow=new WeakMap;channelAnchors=new Map;channelRows=new Map;channelButtons=new Map;placeholderCounts=new Map;readyPrograms=new WeakMap;channelTooltipLifecycle=new d((()=>this.finishChannelTooltip()));programDetails=new Map;detailsAccordions=new Map;activePrograms=new Map;drag;suppressClick=!1;viewport;headerViewport;timeline;resizeObserver;rowVisibilityObserver;rangeFrame;currentTimeVisible;channelTooltip;pendingChannelTooltip;channelTooltipHovered=!1;channelTooltipFocused=!1;channelTooltipPinned=!1;pendingPrograms=new WeakMap;hydrationVersion=0;itemPositions=new WeakMap;pendingProgramFocus;pendingDetailsScroll;detailsScrollTimer;pendingDetailsResize;detailsResizeAnimation;navigationMinute;connectedCallback(){this.observeChannelVisibility(),this.viewport&&this.observeViewport()}async componentWillLoad(){await this.onLanguageChange(this.language)}componentDidLoad(){this.observeViewport()}componentDidRender(){this.focusPendingProgram(),this.waitForProgramItems(),this.channelTooltipLifecycle.attach(this.channelTooltip);for(const[t,e]of this.detailsAccordions)this.syncProgramDetails(t,e)}disconnectedCallback(){this.detailsResizeAnimation?.cancel(),clearTimeout(this.detailsScrollTimer),this.pendingDetailsScroll=void 0,this.invalidateProgramHydration(),this.resetChannelTooltip(),this.drag&&this.handlePointerEnd(this.drag.pointerId),this.suppressClick=!1,void 0!==this.rangeFrame&&(cancelAnimationFrame(this.rangeFrame),this.rangeFrame=void 0),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.rowVisibilityObserver?.disconnect(),this.rowVisibilityObserver=void 0}handleClick(t){this.suppressClick&&0!==t.detail&&(t.preventDefault(),t.stopImmediatePropagation())}handleChannelTooltipKeydown(t){"Tab"===t.key&&(this.navigationMinute=void 0),"Escape"===t.key&&this.channelTooltipState&&this.hideChannelTooltip()}handleScheduleKeydown(t){const e=t.composedPath(),r=e.find((t=>"TET-TV-PROGRAM-ITEM"===t.tagName));if("Escape"!==t.key){if(r){const e=this.schedules.find((t=>t.items.includes(r.item)));e&&this.navigatePrograms(t,e.id,r.item)}else if("ArrowUp"===t.key||"ArrowDown"===t.key){const r=e.find((t=>t.classList?.contains("tv-program__channel-info-button")));if(r&&!t.altKey&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey){t.preventDefault();const e=(this.programLoading&&this.channels.length>0?this.channels:this.schedules).map((t=>this.channelButtons.get(t.id))),o=e.indexOf(r)+("ArrowDown"===t.key?1:-1);e[o]?.focus()}}}else this.closeProgramDetailsOnEscape(t,e)}dismissChannelTooltipOnViewportChange(){this.channelTooltipState&&this.hideChannelTooltip()}retainSelectedItem(t){this.selectedItemId=t.detail;const e=this.schedules.find((e=>e.items.some((e=>e.id===t.detail)))),r=e?.items.find((e=>e.id===t.detail));if(this.pendingDetailsResize=void 0,e&&r){const t=this.detailsAccordions.get(e.id),o=t?.querySelector(".tv-program__program-details-spacing");t?.isOpen&&o&&(this.pendingDetailsResize={channelId:e.id,height:o.getBoundingClientRect().height}),this.detailsResizeAnimation?.cancel(),this.programDetails.set(e.id,r),this.pendingDetailsScroll=r.id}}updateFocusedItem(){queueMicrotask((()=>{const t=this.element.shadowRoot?.activeElement;this.focusedItemId=t?.item?.id,t||this.pendingProgramFocus||(this.focusedChannelId=void 0)}))}resetRetainedItems(){this.activePrograms.clear(),this.pendingProgramFocus=void 0,this.navigationMinute=void 0,this.itemPositions=new WeakMap,this.resetChannelTooltip(),this.selectedItemId=void 0,this.focusedItemId=void 0,this.programDetails.clear()}resetProgramDetails(){for(const[t,e]of this.programDetails)this.schedules.find((e=>e.id===t))?.items.includes(e)||(this.programDetails.delete(t),this.selectedItemId===e.id&&(this.selectedItemId=void 0))}async onLanguageChange(t){await s("tet-components",t),i(this)}invalidateProgramHydration(){this.hydrationVersion++,this.pendingPrograms=new WeakMap}updateCurrentTimeVisibility(){const t=this.viewport,e=this.timeline,r=new Date(this.currentTime);let o=!1;if(t&&e&&t.clientWidth>0&&e.clientWidth>0&&this.date===c(r)){const r=this.headerViewport?.clientWidth||t.clientWidth,i=this.getCurrentTimeMinute(),a=e.offsetLeft+e.clientWidth*i/_-t.scrollLeft;o=a>=e.offsetLeft&&a<r}this.currentTimeVisible!==o&&(this.currentTimeVisible=o,this.currentTimeVisibilityChanged.emit(o))}resetChannelTooltip(){this.channelTooltipLifecycle.reset(),this.pendingChannelTooltip=void 0,this.channelTooltipState=void 0,this.channelTooltipHovered=!1,this.channelTooltipFocused=!1,this.channelTooltipPinned=!1}async scrollToNow(t="smooth"){if(this.viewport&&this.timeline){const e=this.getCurrentTimeScrollLeft(),r=globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches;"smooth"!==t||r?this.viewport.scrollLeft=e:this.viewport.scrollTo({left:e,behavior:t}),this.updateNavigation()}}async syncProgramDetails(t,e){if(await(e.componentOnReady?.()),this.detailsAccordions.get(t)!==e||!e.isConnected)return;const r=this.programDetails.get(t)?.id===this.selectedItemId;if(r||e.querySelector(".tv-program__program-details-spacing")?.getAnimations?.().forEach((t=>t.cancel())),e.isOpen!==r&&await e.setState(r),r&&this.pendingDetailsResize?.channelId===t){const{height:t}=this.pendingDetailsResize;this.pendingDetailsResize=void 0;const r=e.querySelector(".tv-program__program-details-spacing"),o=r?.getBoundingClientRect().height;if(r&&t!==o&&!globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const i=1e3*Number.parseFloat(getComputedStyle(e).getPropertyValue("--accordion-animation-duration"));this.detailsResizeAnimation=r.animate?.([{height:`${t}px`,overflow:"hidden"},{height:`${o}px`,overflow:"hidden"}],{duration:i||0,easing:"ease-in-out"})}}r&&this.selectedItemId&&this.pendingDetailsScroll===this.selectedItemId&&(this.pendingDetailsScroll=void 0,this.scheduleDetailsScroll(e,this.selectedItemId))}scheduleDetailsScroll(t,e){clearTimeout(this.detailsScrollTimer);const r=Number.parseFloat(getComputedStyle(t).getPropertyValue("--accordion-animation-duration"))||0;this.detailsScrollTimer=setTimeout((()=>{if(!t.isConnected||!t.isOpen||this.selectedItemId!==e)return;const r=getComputedStyle(t),o=Number.parseFloat(r.scrollMarginTop)||0,i=Number.parseFloat(r.scrollMarginBottom)||0,a=t.getBoundingClientRect().height+o+i,n=globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches;t.scrollIntoView?.({block:a>globalThis.innerHeight?"start":"nearest",inline:"nearest",behavior:n?"instant":"smooth"})}),1e3*r)}observeChannelVisibility(){if(!this.rowVisibilityObserver&&"function"==typeof globalThis.IntersectionObserver){this.rowVisibilityObserver=new IntersectionObserver((t=>{const e=new Set(this.visibleChannelIds);let r=!1;for(const o of t){const t=this.channelIdsByRow.get(o.target);void 0!==t&&this.channelRows.get(t)===o.target&&e.has(t)!==o.isIntersecting&&(o.isIntersecting?e.add(t):e.delete(t),r=!0)}r&&(this.visibleChannelIds=e)}),{rootMargin:"500px 0px",scrollMargin:"500px 0px"});for(const t of this.channelRows.values())this.rowVisibilityObserver.observe(t)}}setChannelRow(t,e){const r=this.channelRows.get(t);r!==e&&(r&&this.rowVisibilityObserver?.unobserve(r),e?(this.channelRows.set(t,e),this.channelIdsByRow.set(e,t),this.rowVisibilityObserver?.observe(e)):this.channelRows.delete(t))}shouldRenderChannelItems(t,e){const r=void 0!==this.selectedItemId||void 0!==this.focusedItemId;return!this.rowVisibilityObserver||this.visibleChannelIds.has(t)||this.focusedChannelId===t||r&&Boolean(e?.some((t=>t.id===this.selectedItemId||t.id===this.focusedItemId)))}waitForProgramItems(){if(this.channelsLoading||this.programLoading||!this.visibleRange)return;const t=this.date,e=this.hydrationVersion,r=[];for(const{id:o,items:i}of this.schedules){if(!this.shouldRenderChannelItems(o,i))continue;const a=this.channelRows.get(o);if(!a||this.readyPrograms.get(i)===t||this.pendingPrograms.get(i)===t)continue;this.pendingPrograms.set(i,t);const n=Array.from(a.querySelectorAll("tet-tv-program-item"));r.push(Promise.all(n.map((t=>t.componentOnReady?.()))).then((()=>{e===this.hydrationVersion&&(this.readyPrograms.set(i,t),this.pendingPrograms.delete(i))})))}r.length>0&&Promise.all(r).then((()=>{e===this.hydrationVersion&&this.element.isConnected&&i(this)}))}observeViewport(){this.viewport&&"function"==typeof globalThis.ResizeObserver?(this.resizeObserver=new ResizeObserver((()=>this.updateNavigation())),this.resizeObserver.observe(this.viewport),this.timeline&&this.resizeObserver.observe(this.timeline),this.headerViewport&&this.resizeObserver.observe(this.headerViewport)):queueMicrotask((()=>{this.element.isConnected&&this.updateNavigation()}))}updateNavigation(){const t=this.initializeVisibleRange(),e=`${this.headerViewport?.offsetHeight??0}px`;this.element.style.getPropertyValue("--schedule-header-height")!==e&&this.element.style.setProperty("--schedule-header-height",e),this.updateCurrentTimeVisibility(),t||this.scheduleVisibleRange();const r=this.viewport,o=r?.clientWidth??0,i=r?.scrollLeft??0,a=i>1,n=Boolean(r&&i<r.scrollWidth-o-1);this.canScrollPrevious!==a&&(this.canScrollPrevious=a),this.canScrollNext!==n&&(this.canScrollNext=n),r&&this.headerViewport&&this.headerViewport.scrollLeft!==i&&(this.headerViewport.scrollLeft=i);const s=`${o}px`;r&&r.style.getPropertyValue("--viewport-width")!==s&&r.style.setProperty("--viewport-width",s)}initializeVisibleRange(){return!(this.visibleRange||!this.viewport?.clientWidth||!this.timeline?.clientWidth||(this.date===c(new Date(this.currentTime))&&(this.viewport.scrollLeft=this.getCurrentTimeScrollLeft()),this.updateVisibleRange(),0))}getCurrentTimeMinute(){const t=new Date(this.currentTime);return t.getHours()*w+t.getMinutes()+(1e3*t.getSeconds()+t.getMilliseconds())/6e4}getCurrentTimeScrollLeft(){const t=this.viewport,e=this.timeline;if(!t||!e)return 0;const r=this.getCurrentTimeMinute()/_;return Math.max(0,e.offsetLeft+e.clientWidth*r-(this.headerViewport?.clientWidth||t.clientWidth)/2)}scheduleVisibleRange(){this.rangeFrame??=requestAnimationFrame((()=>{this.rangeFrame=void 0,this.updateVisibleRange()}))}updateVisibleRange(){if(!this.viewport||!this.timeline)return;const{scrollLeft:t,clientWidth:e}=this.viewport,r=this.timeline.clientWidth,o=this.timeline.offsetLeft;if(!(e>0&&r>0))return;const i=r/_,a=Math.max(0,(Math.floor((t-o)/i/w)-1)*w),n=Math.min(_,(Math.ceil((t+e-o)/i/w)+1)*w);this.visibleRange?.start===a&&this.visibleRange?.end===n||(this.visibleRange={start:a,end:n})}handlePointerDown(t){this.suppressClick=!1;const e=t.composedPath().some((t=>t instanceof globalThis.Element&&t.classList.contains("tv-program__timeline-button")));"mouse"===t.pointerType&&0===t.button&&this.viewport&&!e&&(this.drag={pointerId:t.pointerId,startX:t.clientX,scrollLeft:this.viewport.scrollLeft,surface:t.currentTarget,active:!1})}handlePointerMove(t){const e=this.drag;if(!e||!this.viewport||e.pointerId!==t.pointerId)return;if(!(1&t.buttons))return void this.handlePointerEnd(t.pointerId);const r=t.clientX-e.startX;!e.active&&Math.abs(r)<5||(e.active||(e.active=!0,this.suppressClick=!0,e.surface.classList.add(y),e.surface.setPointerCapture(t.pointerId)),t.preventDefault(),this.viewport.scrollLeft=e.scrollLeft-r,this.updateNavigation())}handlePointerEnd(t){if(this.drag?.pointerId===t){const{surface:e}=this.drag;this.drag=void 0,e.classList.remove(y),e.hasPointerCapture(t)&&e.releasePointerCapture(t)}}scrollSchedule(t){const e=globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches;this.viewport?.scrollBy({left:320*t,behavior:e?"auto":"smooth"})}getTimelineMinute(t,e){const[r,o]=e.split(":").map(Number);return(Date.parse(t)-Date.parse(this.date))/864e5*_+60*r+o}getNearestProgram(t,e){let r,o=1/0;for(const i of t){const t=this.getTimelineMinute(i.startDate,i.startTime),a=this.getTimelineMinute(i.endDate,i.endTime);if(!Number.isFinite(t)||!Number.isFinite(a)||a<=t||a<=0||t>=_)continue;const n=Math.max(t-e,e-a,0);(n<o||t<=e&&e<a)&&(r=i,o=n)}return r}getActiveProgram(t,e){const r=e.find((e=>e.id===this.activePrograms.get(t))),o=new Date(this.currentTime),i=this.date===c(o)?o.getHours()*w+o.getMinutes():this.visibleRange?.start??0;return r??this.getNearestProgram(e,i)}navigatePrograms(t,e,r){if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)return;const o=this.schedules.findIndex((t=>t.id===e)),i=this.schedules[o];if(!i)return;const a=i.items.indexOf(r);let n,s=i;switch(t.key){case"ArrowLeft":n=i.items[a-1],n||this.channelButtons.get(e)?.focus();break;case"ArrowRight":n=i.items[a+1];break;case"Home":n=i.items[0];break;case"End":n=i.items.at(-1);break;case"ArrowUp":case"ArrowDown":{const o=this.schedules.filter((t=>t.items.length>0)),i=o.findIndex((t=>t.id===e));s=o[i+("ArrowDown"===t.key?1:-1)],this.navigationMinute??=Math.max(0,this.getTimelineMinute(r.startDate,r.startTime)),n=s&&this.getNearestProgram(s.items,this.navigationMinute);break}default:return}t.preventDefault(),n&&s&&("ArrowUp"!==t.key&&"ArrowDown"!==t.key&&(this.navigationMinute=void 0),this.activePrograms.set(s.id,n.id),this.pendingProgramFocus={channelId:s.id,itemId:n.id},this.focusedChannelId=s.id,this.focusedItemId=n.id)}async focusPendingProgram(){const t=this.pendingProgramFocus;if(!t)return;const e=this.channelRows.get(t.channelId)?.querySelectorAll("tet-tv-program-item"),r=Array.from(e??[]).find((e=>e.item.id===t.itemId));r&&(this.pendingProgramFocus=void 0,await(r.componentOnReady?.()),this.focusedItemId===t.itemId&&r.isConnected&&(r.shadowRoot?.querySelector("button")?.focus({preventScroll:!0}),r.scrollIntoView?.({block:"nearest",inline:"nearest"})))}showChannelTooltip(t,e){const r=this.channelAnchors.get(t.id);if(!r)return;if("click"===e&&this.channelTooltipState?.channel.id===t.id&&this.channelTooltipPinned)return void this.hideChannelTooltip();const o=this.channelTooltipState?.channel.id===t.id;if(this.channelTooltipState&&!o)return this.pendingChannelTooltip={channel:t,interaction:e},this.channelTooltipHovered=!1,this.channelTooltipFocused=!1,this.channelTooltipPinned=!1,void this.channelTooltipLifecycle.dismiss();this.pendingChannelTooltip=void 0,o||(this.channelTooltipLifecycle.reset(),this.channelTooltipHovered=!1,this.channelTooltipFocused=!1,this.channelTooltipPinned=!1,this.channelTooltipState={channel:t,anchor:r}),this.channelTooltipLifecycle.request("click"===e),this.channelTooltipHovered||="hover"===e,this.channelTooltipFocused||="focus"===e,this.channelTooltipPinned||="click"===e}leaveChannelTooltip(t,e=!1){if(this.pendingChannelTooltip?.channel.id!==t)this.channelTooltipState?.channel.id===t&&(e?(this.channelTooltipFocused=!1,this.channelTooltipPinned=!1):this.channelTooltipHovered=!1,this.channelTooltipHovered||this.channelTooltipFocused||this.channelTooltipPinned||this.channelTooltipLifecycle.dismiss());else{const t=this.pendingChannelTooltip.interaction;(e?"hover"!==t:"hover"===t)&&(this.pendingChannelTooltip=void 0)}}hideChannelTooltip(){this.pendingChannelTooltip=void 0,this.channelTooltipHovered=!1,this.channelTooltipFocused=!1,this.channelTooltipPinned=!1,this.channelTooltipLifecycle.dismiss(!0)}finishChannelTooltip(){const t=this.pendingChannelTooltip;this.resetChannelTooltip(),t&&this.showChannelTooltip(t.channel,t.interaction)}closeProgramDetailsOnEscape(t,e){if(t.defaultPrevented||this.channelTooltipState)return;const r=Array.from(this.detailsAccordions).find((([t,e])=>e.isOpen&&this.programDetails.get(t)?.id===this.selectedItemId));r&&(t.preventDefault(),t.stopPropagation(),this.closeProgramDetails(r[0],e.includes(r[1])))}async closeProgramDetails(t,e=!0){const r=this.programDetails.get(t)?.id;if(!r||r!==this.selectedItemId)return;const o=this.channelRows.get(t)?.querySelectorAll("tet-tv-program-item")??[],i=Array.from(o).find((t=>t.item.id===r));this.selectedItemId=void 0,await(i?.close()),e&&i?.shadowRoot?.querySelector("button")?.focus({preventScroll:!0})}renderNavigationButton(t){const e="previous"===t,o=e?!this.canScrollPrevious:!this.canScrollNext;return r("div",{class:`tv-program__timeline-button-container tv-program__timeline-button-container--${t}`},r("button",{type:"button",class:"tv-program__timeline-button",disabled:o,"aria-label":l(e?"components-tv-program-scroll-backward":"components-tv-program-scroll-forward"),onClick:()=>this.scrollSchedule(e?-1:1)},r("tet-icon",{class:"tv-program__timeline-button-icon",name:e?"tc-chevron-left":"tc-chevron-right",theme:this.theme,type:o?"tertiary":"primary"})))}renderItem(t,e,o,i=!1){let a=this.itemPositions.get(t);a||(a={start:Math.max(0,this.getTimelineMinute(t.startDate,t.startTime)),end:Math.min(_,this.getTimelineMinute(t.endDate,t.endTime))},this.itemPositions.set(t,a));const{start:n,end:s}=a;if(!Number.isFinite(n)||!Number.isFinite(s)||s<=n)return null;const l=t.id===this.selectedItemId||t.id===this.focusedItemId||t.id===o||Boolean(this.visibleRange&&s>this.visibleRange.start&&n<this.visibleRange.end),c=this.broadcastTiming[t.id];return r("li",{key:t.id,"aria-hidden":l?void 0:"true",style:{display:l?void 0:"none",left:n/_*100+"%",width:(s-n)/_*100+"%",visibility:i?"hidden":void 0}},l&&r("tet-tv-program-item",{item:t,unavailableTitle:this.unavailableTitle,clippedStart:t.startDate<this.date,clippedEnd:this.getTimelineMinute(t.endDate,t.endTime)>_,theme:this.theme,layout:"desktop",buttonTabIndex:t.id===o?0:-1,onFocusin:r=>{this.activePrograms.set(e,t.id),this.focusedItemId=t.id,this.focusedChannelId=e;const o=r.currentTarget;o.shadowRoot?.querySelector("button")?.matches(":focus-visible")&&o.scrollIntoView?.({block:"nearest",inline:"nearest"})},isActive:c?.isActive??!1,progress:c?.progress??0}))}renderCurrentTime(t=!1){const e=new Date(this.currentTime);if(this.date!==c(e))return null;const o=this.getCurrentTimeMinute();return r("div",{class:{"tv-program__current-time":!0,"tv-program__current-time--header":t},"aria-hidden":"true",style:{"--current-time-position":""+o/_}})}renderChannelButton(t){return r("h2",{class:"tv-program__channel-logo"},r("button",{type:"button",class:"tv-program__channel-info-button",ref:e=>{e?this.channelButtons.set(t.id,e):this.channelButtons.delete(t.id)},"aria-label":t.name,"aria-describedby":`channel-description-${t.id}`,onMouseEnter:()=>this.showChannelTooltip(t,"hover"),onMouseLeave:()=>this.leaveChannelTooltip(t.id),onFocus:e=>{this.focusedChannelId=t.id,this.navigationMinute=void 0,e.currentTarget.matches(":focus-visible")&&(e.currentTarget.scrollIntoView?.({block:"nearest",inline:"nearest"}),this.showChannelTooltip(t,"focus"))},onBlur:()=>this.leaveChannelTooltip(t.id,!0),onClick:()=>this.showChannelTooltip(t,"click")},r("span",{class:"tv-program__channel-tooltip-anchor","aria-hidden":"true",ref:e=>{e?this.channelAnchors.set(t.id,e):this.channelAnchors.delete(t.id)}}),this.renderChannelLogo(t)),r("span",{id:`channel-description-${t.id}`,hidden:!0},t.channelNumber,t.description&&`, ${t.description}`,t.languages.length>0&&`, ${l("components-tv-program-channel-languages")}: ${t.languages.join(", ").toUpperCase()}`))}renderChannelTooltip(){if(!this.channelTooltipState)return null;const{channel:t,anchor:e}=this.channelTooltipState;return r("tet-tooltip",{key:t.id,class:"tv-program__channel-tooltip",hoverElement:e,doNotShowOnHover:!0,position:m.RIGHT,"aria-hidden":"true",ref:t=>{this.channelTooltip=t},onMouseEnter:()=>this.showChannelTooltip(t,"hover"),onMouseLeave:()=>this.leaveChannelTooltip(t.id)},r("span",{class:"tv-program__channel-tooltip-content"},r("span",{class:"tv-program__channel-tooltip-header"},r("span",null,t.name),r("span",null,t.channelNumber)),t.description&&r("span",null,t.description),t.languages.length>0&&r("span",null,r("span",{class:"tv-program__channel-tooltip-language"},l("components-tv-program-channel-languages"),": "),t.languages.join(", ").toUpperCase())))}renderChannels(){const t=this.programLoading&&this.channels.length>0?this.channels:this.schedules,e=new Map(this.schedules.map((t=>[t.id,t.items])));return t.map((t=>{const o=e.get(t.id),i=this.getActiveProgram(t.id,o??[])?.id,a=Boolean(this.visibleRange)&&this.shouldRenderChannelItems(t.id,o),n=a&&(this.programLoading||Boolean(o?.length&&this.readyPrograms.get(o)!==this.date));return r("section",{class:"tv-program__channel-row",key:t.id,"aria-label":t.name},this.renderChannelButton(t),r("ul",{class:"tv-program__channel","aria-busy":n?"true":"false",ref:e=>this.setChannelRow(t.id,e)},a&&!this.programLoading&&o?.map((e=>this.renderItem(e,t.id,i,n))),n&&this.renderPlaceholders(t.id)),this.renderProgramDetails(t.id))}))}renderProgramDetails(t){const e=this.programDetails.get(t);if(!e||this.programLoading)return null;const o=e.isUnavailable?this.unavailableTitle:e.title;return r("tet-accordion",{class:"tv-program__program-details",theme:this.theme,isHeaderInteractive:!1,transparentBackground:!0,ref:e=>{e?this.detailsAccordions.set(t,e):this.detailsAccordions.delete(t)}},r("div",{class:"tv-program__program-details-spacing"},r("section",{class:"tv-program__program-details-content","aria-label":o},e.image&&r("div",{class:"tv-program__program-details-content-left"},r("img",{class:"tv-program__program-details-image",src:e.image,alt:"",loading:"lazy",draggable:!1})),r("div",{class:"tv-program__program-details-content-right"},r("div",{class:"tv-program__program-details-content-header"},r("h3",{class:"tv-program__program-details-title"},o),r("button",{class:"tv-program__program-details-close",type:"button","aria-label":l("components-tv-program-close"),onClick:()=>{this.closeProgramDetails(t)}},r("tet-icon",{class:"tv-program__program-details-close-icon",name:"tc-close",theme:this.theme}))),r("div",{class:"tv-program__program-details-content-meta"},r("span",null,e.startTime," - ",e.endTime),r("span",null,p(e.startDate)),r("span",null,e.channelName)),e.description&&r("p",{class:"tv-program__program-details-content-description"},e.description)))))}renderChannelLogo(t){const e="dark"===this.theme?t.imageSourceDark??t.imageSource:t.imageSource;return e&&!this.failedChannelLogoSources.has(e)?r("img",{key:e,class:"tv-program__channel-image",src:e,alt:"",loading:"lazy",draggable:!1,onError:()=>{this.failedChannelLogoSources=new Set([...this.failedChannelLogoSources,e])}}):r("span",{class:"tv-program__channel-name","aria-hidden":"true"},t.name)}renderLoadingChannels(t="initial"){return Array.from({length:20},((e,o)=>r("section",{class:"tv-program__channel-row",key:`${t}-channel-placeholder-${o}`,"aria-hidden":"true"},r("div",{class:"tv-program__channel-logo tv-program__channel-logo--placeholder"},r("tet-placeholder",{class:"tv-program__channel-logo-placeholder",height:"var(--channel-row-height)",darkTheme:"dark"===this.theme})),r("ul",{class:"tv-program__channel"},this.renderPlaceholders(`channel-placeholder-${o}`)))))}renderPlaceholders(t){let e=this.placeholderCounts.get(t);return void 0===e&&(e=2+Math.floor(3*Math.random()),this.placeholderCounts.set(t,e)),h(this.theme,"desktop",e)}render(){return r("div",{key:"b9ace66a9a91b2537ee9fbdc5def52f016cf7a8e",class:{"tv-program__schedule-container":!0,"tv-program__schedule-container--scrollable-left":this.canScrollPrevious,"tv-program__schedule-container--scrollable-right":this.canScrollNext},onPointerDown:t=>this.handlePointerDown(t),onPointerMove:t=>this.handlePointerMove(t),onPointerUp:t=>this.handlePointerEnd(t.pointerId),onPointerCancel:t=>this.handlePointerEnd(t.pointerId),onLostPointerCapture:t=>this.handlePointerEnd(t.pointerId),onDragStart:t=>t.preventDefault()},this.renderChannelTooltip(),r("span",{key:"9213355e58757dbb581cf46b245bea0b8fdf6ed6",class:"tv-program__schedule-fader-left","aria-hidden":"true"}),r("div",{key:"071cf8353309df9c15a47c6be6b0cf855f0a7cad",class:"tv-program__schedule-header"},this.renderNavigationButton("previous"),this.renderNavigationButton("next"),r("div",{key:"873d860398ecbc42efc4b9bb50617c3f14879131",class:"tv-program__header-viewport",ref:t=>{this.headerViewport=t}},r("div",{key:"91069ebd701b08d3bc58b886694305911e86e454",class:"tv-program__schedule"},r("div",{key:"abdd7d83467847796a7731fdebdf72d3c07a9008",class:"tv-program__timeline","aria-hidden":"true",ref:t=>{this.timeline=t}},k.map((({minute:t,isHour:e,label:o,left:i})=>r("span",{key:t,class:{"tv-program__timeline-label":!0,"tv-program__timeline-label--hour":e},style:{left:i}},o)))),this.renderCurrentTime(!0)))),r("div",{key:"3f22a7e8f3d9ebf837284b98d4a7e1dc6244b091",class:"tv-program__schedule-viewport","aria-busy":this.channelsLoading||this.programLoading||this.loadingMoreChannels?"true":"false",ref:t=>{this.viewport=t},onScroll:()=>this.updateNavigation()},r("div",{key:"792d5b3e5145bd76a2ae0e10513482fc136c3714",class:"tv-program__schedule"},this.channelsLoading?this.renderLoadingChannels():this.renderChannels(),this.loadingMoreChannels&&this.renderLoadingChannels("next-page"),this.renderCurrentTime())),r("span",{key:"99bc0df7a3879565ea2e03930d96fc51d10d55e8",class:"tv-program__schedule-edge-mask","aria-hidden":"true"}))}static get watchers(){return{date:[{resetRetainedItems:0},{invalidateProgramHydration:0},{updateCurrentTimeVisibility:0}],schedules:[{resetProgramDetails:0},{invalidateProgramHydration:0},{resetChannelTooltip:0}],language:[{onLanguageChange:0}],programLoading:[{invalidateProgramHydration:0}],visibleChannelIds:[{invalidateProgramHydration:0}],visibleRange:[{invalidateProgramHydration:0}],currentTime:[{updateCurrentTimeVisibility:0}],channels:[{resetChannelTooltip:0}]}}};x.style='@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-program-navigation-button-background-color:var(--tc-layer-grey-primary);--tv-program-navigation-button-hover-background-color:var(--tc-layer-grey-secondary);--tv-program-navigation-button-pressed-background-color:var(--tc-layer-grey-tertiary);--tv-program-navigation-button-focus-outline-color:var(--tc-blue-40)}:host([theme=dark]){--tv-program-navigation-button-background-color:var(--tc-layer-grey-primary-dark);--tv-program-navigation-button-hover-background-color:var(--tc-layer-grey-secondary-dark);--tv-program-navigation-button-pressed-background-color:var(--tc-layer-grey-tertiary-dark);--tv-program-navigation-button-focus-outline-color:var(--tc-blue-40-dark)}:host{--tv-program-tooltip-background-color:var(--tc-layer-primary);--tv-program-tooltip-text-primary-color:var(--tc-text-primary);--tv-program-tooltip-text-secondary-color:var(--tc-text-secondary);--tv-program-tooltip-box-shadow:var(--tc-elevation-four)}:host([theme=dark]){--tv-program-tooltip-background-color:var(--tc-layer-primary-dark);--tv-program-tooltip-text-primary-color:var(--tc-text-primary-dark);--tv-program-tooltip-text-secondary-color:var(--tc-text-secondary-dark);--tv-program-tooltip-box-shadow:var(--tc-elevation-four-dark)}:host{--tv-program-hour-width:20rem;--day-width:calc(var(--tv-program-hour-width) * 24);--channel-container-width:8rem;--channel-gap:0.5rem;--channel-row-height:5.375rem;--channel-gutter:calc(var(--channel-container-width) + var(--channel-gap));--tv-program-background-color:var(--tc-background-primary);--tv-program-text-primary-color:var(--tc-text-primary);--tv-program-text-secondary-color:var(--tc-text-secondary);--tv-program-current-time-line-color:var(--tc-yellow-40);--tv-program-current-time-line-box-shadow:var(--tc-elevation-two);--tv-program-logo-background-color:var(--tc-layer-grey-secondary);--tv-program-detail-container-background-color:var(--tc-layer-yellow-tertiary);--tv-program-close-button-hover-background-color:var(--tc-button-secondary-adaptive-yellow-background-hover);--tv-program-close-button-pressed-background-color:var(--tc-button-secondary-adaptive-yellow-background-pressed);--tv-program-focus-outline-color:var(--tc-blue-40);display:block;min-width:0;scroll-margin-top:var(--tv-program-schedule-sticky-top, 0px);color:var(--tv-program-text-primary-color)}:host([theme=dark]){--tv-program-background-color:var(--tc-background-primary-dark);--tv-program-text-primary-color:var(--tc-text-primary-dark);--tv-program-text-secondary-color:var(--tc-text-secondary-dark);--tv-program-current-time-line-color:var(--tc-yellow-40-dark);--tv-program-current-time-line-box-shadow:var(--tc-elevation-two-dark);--tv-program-logo-background-color:var(--tc-layer-grey-secondary-dark);--tv-program-detail-container-background-color:var(--tc-layer-yellow-tertiary-dark);--tv-program-close-button-hover-background-color:var(--tc-button-secondary-adaptive-yellow-background-hover-dark);--tv-program-close-button-pressed-background-color:var(--tc-button-secondary-adaptive-yellow-background-pressed-dark);--tv-program-focus-outline-color:var(--tc-blue-40-dark)}.tv-program__item-placeholder{--placeholder-border-radius:1rem;flex:1;min-width:0}.tv-program__channel-logo-placeholder{--placeholder-border-radius:1rem;width:100%}.tv-program__schedule-container{--schedule-fader-width:2.25rem;position:relative;min-width:0}.tv-program__schedule-container::before{content:"";position:absolute;inset:0 auto 0 -0.25rem;width:var(--channel-gutter);background-color:var(--tv-program-background-color);z-index:4;pointer-events:none}.tv-program__schedule-container--scrollable-left::before{width:calc(var(--channel-gutter) + 0.25rem)}.tv-program__schedule-container--scrollable-left>.tv-program__schedule-fader-left{opacity:1}.tv-program__schedule-container::after{content:"";position:absolute;inset:0 -0.25rem 0 auto;width:var(--schedule-fader-width);background:linear-gradient(270deg, var(--tv-program-background-color) 0%, transparent 100%);z-index:1;pointer-events:none;opacity:0}.tv-program__schedule-container--scrollable-right::after{opacity:1}.tv-program__schedule-fader-left{position:absolute;inset:0 auto 0 var(--channel-gutter);width:var(--schedule-fader-width);background:linear-gradient(90deg, var(--tv-program-background-color) 0%, transparent 100%);z-index:1;pointer-events:none;opacity:0}.tv-program__schedule-edge-mask{position:absolute;inset:0 -0.25rem 0 auto;width:0.25rem;background-color:var(--tv-program-background-color);z-index:2;pointer-events:none}.tv-program__timeline-button-container{position:absolute;top:1rem;z-index:6;background-color:var(--tv-program-background-color)}.tv-program__timeline-button-container--previous{left:0;padding-right:1rem}.tv-program__timeline-button-container--next{right:0;padding-left:1rem;z-index:auto;background-color:transparent}.tv-program__timeline-button-container--next::before{content:"";position:absolute;inset:0;z-index:5;background-color:var(--tv-program-background-color)}.tv-program__timeline-button{align-items:center;border:none;cursor:pointer;background-color:var(--tv-program-navigation-button-background-color);display:flex;align-items:center;justify-content:center;padding:0.875rem;border-radius:50%;position:relative;z-index:6}.tv-program__timeline-button:hover{background-color:var(--tv-program-navigation-button-hover-background-color)}.tv-program__timeline-button:active{background-color:var(--tv-program-navigation-button-pressed-background-color)}.tv-program__timeline-button:disabled{pointer-events:none}.tv-program__timeline-button:focus-visible{outline:0.125rem solid var(--tv-program-navigation-button-focus-outline-color);outline-offset:0.125rem}.tv-program__timeline-button-icon{--icon-size:1.25rem}.tv-program__schedule-header{position:sticky;top:var(--tv-program-schedule-sticky-top, 0);z-index:5;background-color:var(--tv-program-background-color)}.tv-program__schedule-header::before{content:"";position:absolute;inset:0 auto 0 0;width:var(--channel-gutter);background-color:var(--tv-program-background-color);z-index:6;pointer-events:none}.tv-program__header-viewport{position:relative;overflow:hidden;padding-top:1rem}.tv-program__header-viewport>.tv-program__schedule{padding-bottom:2.25rem}.tv-program__schedule-container--dragging,.tv-program__schedule-container--dragging *{cursor:grabbing;-webkit-user-select:none;user-select:none}.tv-program__schedule-viewport{--placeholder-width:max(0px, min(var(--day-width), calc(var(--viewport-width, 100vw) - var(--channel-gutter) - 0.5rem)));min-width:0;max-width:calc(100% + 0.5rem);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding-inline:0.25rem;margin-inline:-0.25rem}.tv-program__schedule-viewport::-webkit-scrollbar{display:none}.tv-program__schedule-viewport>.tv-program__schedule{padding-block:0.25rem}.tv-program__schedule{position:relative;display:flex;flex-direction:column;gap:1rem;width:calc(var(--channel-gutter) + var(--day-width))}.tv-program__timeline{position:relative;-webkit-user-select:none;user-select:none;display:flex;align-items:center;width:var(--day-width);height:3rem;padding:0.625rem 0;margin-left:var(--channel-gutter)}.tv-program__timeline-label{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";position:absolute;z-index:4;white-space:nowrap;color:var(--tv-program-text-secondary-color);transform:translateX(-50%)}.tv-program__timeline-label:last-child{transform:translateX(-100%)}.tv-program__timeline-label--hour{font:600 1.5rem/1.75rem "Gilroy", "Gilroy, Arial, sans-serif";color:var(--tv-program-text-primary-color)}.tv-program__current-time{position:absolute;z-index:2;top:0;bottom:0;left:calc(var(--channel-gutter) + var(--day-width) * var(--current-time-position));width:0.125rem;pointer-events:none;background-color:var(--tv-program-current-time-line-color);box-shadow:var(--tv-program-current-time-line-box-shadow)}.tv-program__current-time--header{top:-1rem;z-index:5}.tv-program__current-time--header::before{content:"";position:absolute;top:0;left:50%;width:1.25rem;height:1.25rem;border-radius:50%;background-color:inherit;transform:translateX(-50%)}.tv-program__channel-row{display:grid;grid-template-columns:var(--channel-container-width) var(--day-width);gap:var(--channel-gap);row-gap:0;align-items:center}.tv-program__program-details{--accordion-header-display:none;scroll-margin-block-start:calc(var(--tv-program-schedule-sticky-top, 0px) + var(--schedule-header-height, 0px) + var(--channel-row-height) + 0.25rem);scroll-margin-block-end:0.25rem;position:sticky;left:0;grid-column:1/-1;width:calc(var(--viewport-width, 100vw) - 0.5rem);min-width:0;z-index:4}@media (prefers-reduced-motion: reduce){.tv-program__program-details{--accordion-animation-duration:0s}}.tv-program__program-details-spacing{box-sizing:border-box;padding-top:1rem}.tv-program__program-details-content{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";display:flex;align-items:flex-start;gap:1.5rem;padding:2rem;border-radius:1rem;background-color:var(--tv-program-detail-container-background-color);color:var(--tv-program-text-primary-color)}.tv-program__program-details-content-left{flex:1;min-width:0;max-width:24rem;height:14rem;border-radius:1rem;overflow:hidden}.tv-program__program-details-content-right{display:flex;flex:1;flex-direction:column;gap:0.5rem;min-width:0;overflow-wrap:anywhere}.tv-program__program-details-content-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.tv-program__program-details-content-meta{display:flex;flex-wrap:wrap;gap:0.5rem;color:var(--tv-program-text-secondary-color)}.tv-program__program-details-content-description{margin-top:0.5rem}.tv-program__program-details-close{width:2rem;height:2rem;border-radius:50%;background:none;border:none;flex-shrink:0;cursor:pointer}.tv-program__program-details-close:hover{background-color:var(--tv-program-close-button-hover-background-color)}.tv-program__program-details-close:active{background-color:var(--tv-program-close-button-pressed-background-color)}.tv-program__program-details-close:focus-visible{outline:0.125rem solid var(--tv-program-focus-outline-color);outline-offset:0.125rem}.tv-program__program-details-close-icon{--icon-size:1.25rem}.tv-program__program-details-title{font:600 1.75rem/2rem "Gilroy", "Gilroy, Arial, sans-serif";min-width:0}.tv-program__program-details-image{display:block;width:100%;height:100%;object-fit:cover;border-radius:1rem}.tv-program__channel-logo{font:500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";position:sticky;left:0;z-index:4;display:flex;align-items:center;justify-content:center;align-self:stretch;background-color:var(--tv-program-logo-background-color);border-radius:1rem;padding:0;height:var(--channel-row-height);min-width:0}.tv-program__channel-logo--placeholder{padding:0}.tv-program__channel-info-button{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;padding:1.5rem 0.5rem;border:0;border-radius:inherit;background:transparent;color:inherit;font:inherit;cursor:pointer}.tv-program__channel-info-button:focus-visible{outline:0.125rem solid var(--tv-program-navigation-button-focus-outline-color);outline-offset:0.125rem}.tv-program__channel-tooltip-anchor{position:absolute;inset:0;pointer-events:none}.tv-program__channel-tooltip{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";--tooltip-delay-show:600ms;--tooltip-delay-hide:120ms;--tooltip-max-width:40rem;--tooltip-padding:1.5rem;--tooltip-border-radius:1rem;--tooltip-background-color:var(--tv-program-tooltip-background-color);--tooltip-text-color:var(--tv-program-tooltip-text-primary-color);border-radius:1rem;box-shadow:var(--tv-program-tooltip-box-shadow);--tooltip-max-width:18.75rem;width:18.75rem;z-index:100;pointer-events:auto;visibility:hidden}.tv-program__channel-tooltip.visible{visibility:visible}.tv-program__channel-tooltip-content{display:flex;flex-direction:column;gap:0.5rem;color:var(--tv-program-tooltip-text-primary-color)}.tv-program__channel-tooltip-header{font:500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";display:flex;justify-content:space-between;gap:1rem}.tv-program__channel-tooltip-language{color:var(--tv-program-text-secondary-color)}.tv-program__channel-image{display:block;width:100%;height:100%;object-fit:contain}.tv-program__channel-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tv-program__channel{position:relative;display:block;height:var(--channel-row-height);list-style:none}.tv-program__channel>li{position:absolute;top:0;bottom:0;display:flex;box-sizing:border-box;min-width:0}.tv-program__channel>li:has(>tet-tv-program-item[data-focus-visible]){z-index:3}.tv-program__channel>li:not(:last-child){padding-right:0.5rem}.tv-program__channel tet-tv-program-item{scroll-margin-inline-start:calc(var(--channel-gutter) + 0.25rem);scroll-margin-inline-end:0.25rem}.tv-program__channel-info-button,.tv-program__channel tet-tv-program-item{scroll-margin-block-start:calc(var(--tv-program-schedule-sticky-top, 0px) + var(--schedule-header-height, 0px) + 0.25rem);scroll-margin-block-end:0.25rem}.tv-program__channel>li.tv-program__placeholders{position:sticky;left:var(--channel-gutter);gap:0.5rem;width:var(--placeholder-width);height:100%;padding-right:0}';export{v as tet_tv_program_channel_picker,b as tet_tv_program_date_picker,x as tet_tv_program_schedule}
@@ -1 +1 @@
1
- import{r as s,h as e}from"./p-gA3_LS77.js";const t=class{constructor(e){s(this,e)}stepperData=[];layout="row";theme="light";renderStepData=s=>e("div",{class:"business-stepper__step"},e("div",{class:"business-stepper__icon",style:{"background-color":s.color}},e("tet-icon",{name:s.icon,theme:this.theme})),e("span",{class:"business-stepper__title"},s.description),e("p",{class:"business-stepper__text"},s.text));render(){return e("div",{key:"14594cc9387ff91b4fb67b6ccb93168e9e485dee",class:{"business-stepper":!0,"business-stepper--uneven":"grid"===this.layout&&this.stepperData.length%2==1,[`business-stepper--${this.layout}`]:!0,[this.theme]:!0}},this.stepperData.slice(0,5).map(this.renderStepData))}};t.style='@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")}.business-stepper{--round-business-stepper-color:var(--tc-text-primary);display:flex;flex-direction:row;gap:1.5rem}.business-stepper.dark{--round-business-stepper-color:var(--tc-text-primary-dark)}.business-stepper.dark .business-stepper__icon{background-color:var(--tc-layer-tertiary-dark) !important}.business-stepper__title,.business-stepper__text{margin:0;color:var(--round-business-stepper-color)}.business-stepper__title{font:600 1.25rem/1.5rem "Gilroy", "Gilroy, Arial, sans-serif"}.business-stepper__text{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}.business-stepper__icon{margin-bottom:0.5rem;width:2.5rem;height:2.5rem;border-radius:2.5rem;display:inline-flex;justify-content:center;align-items:center}.business-stepper__step{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0.5rem;text-align:center;padding:0 1rem;flex:1}.business-stepper--column{flex-direction:column;justify-content:space-between}.business-stepper--column .business-stepper__icon{margin-bottom:0.5rem}.business-stepper--column .business-stepper__step{padding:0}.business-stepper--column .business-stepper__title{font:600 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}.business-stepper--grid{display:grid;grid-template-columns:1fr 1fr;grid-row-gap:3.5rem}.business-stepper--grid .business-stepper__step{padding:0}.business-stepper--uneven>*:last-child{grid-column:1/-1}';export{t as tet_business_round_stepper}
1
+ import{r as s,h as e}from"./p-CO8AyGrA.js";const t=class{constructor(e){s(this,e)}stepperData=[];layout="row";theme="light";renderStepData=s=>e("div",{class:"business-stepper__step"},e("div",{class:"business-stepper__icon",style:{"background-color":s.color}},e("tet-icon",{name:s.icon,theme:this.theme})),e("span",{class:"business-stepper__title"},s.description),e("p",{class:"business-stepper__text"},s.text));render(){return e("div",{key:"14594cc9387ff91b4fb67b6ccb93168e9e485dee",class:{"business-stepper":!0,"business-stepper--uneven":"grid"===this.layout&&this.stepperData.length%2==1,[`business-stepper--${this.layout}`]:!0,[this.theme]:!0}},this.stepperData.slice(0,5).map(this.renderStepData))}};t.style='@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")}.business-stepper{--round-business-stepper-color:var(--tc-text-primary);display:flex;flex-direction:row;gap:1.5rem}.business-stepper.dark{--round-business-stepper-color:var(--tc-text-primary-dark)}.business-stepper.dark .business-stepper__icon{background-color:var(--tc-layer-tertiary-dark) !important}.business-stepper__title,.business-stepper__text{margin:0;color:var(--round-business-stepper-color)}.business-stepper__title{font:600 1.25rem/1.5rem "Gilroy", "Gilroy, Arial, sans-serif"}.business-stepper__text{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}.business-stepper__icon{margin-bottom:0.5rem;width:2.5rem;height:2.5rem;border-radius:2.5rem;display:inline-flex;justify-content:center;align-items:center}.business-stepper__step{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0.5rem;text-align:center;padding:0 1rem;flex:1}.business-stepper--column{flex-direction:column;justify-content:space-between}.business-stepper--column .business-stepper__icon{margin-bottom:0.5rem}.business-stepper--column .business-stepper__step{padding:0}.business-stepper--column .business-stepper__title{font:600 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}.business-stepper--grid{display:grid;grid-template-columns:1fr 1fr;grid-row-gap:3.5rem}.business-stepper--grid .business-stepper__step{padding:0}.business-stepper--uneven>*:last-child{grid-column:1/-1}';export{t as tet_business_round_stepper}
@@ -1 +1 @@
1
- import{r as t,c as o,h as i,H as n}from"./p-gA3_LS77.js";const e=class{constructor(i){t(this,i),this.countdownEnded=o(this,"countdownEnded")}endDatetime;accessibilityLabel;countdownTitle;staticTextColor="light";countdownEnded;countdown={days:0,hours:0,minutes:0,seconds:0};tickTimeoutId;hasEmittedCountdownEnded=!1;componentWillLoad(){this.startCountdown()}disconnectedCallback(){this.clearTickTimeout()}onEndDatetimeChanged(){this.startCountdown()}clearTickTimeout(){void 0!==this.tickTimeoutId&&(globalThis.clearTimeout(this.tickTimeoutId),this.tickTimeoutId=void 0)}startCountdown(){this.clearTickTimeout(),this.hasEmittedCountdownEnded=!1,this.updateCountdown()}scheduleNextTick(){const t=1e3-Date.now()%1e3;this.tickTimeoutId=globalThis.setTimeout((()=>{this.tickTimeoutId=void 0,this.updateCountdown()}),t)}updateCountdown(){const t=this.getTargetTimestamp();if(null===t)return this.hasEmittedCountdownEnded=!1,void(this.countdown={days:0,hours:0,minutes:0,seconds:0});const o=Date.now(),i=Math.max(0,t-o),n=Math.floor(i/1e3),e=Math.floor(n/86400),s=Math.floor(n%86400/3600),a=Math.floor(n%3600/60),r=n%60;this.countdown={days:Math.min(e,99),hours:s,minutes:a,seconds:r},0!==i||this.hasEmittedCountdownEnded||(this.hasEmittedCountdownEnded=!0,this.countdownEnded.emit()),i>0&&this.scheduleNextTick()}getTargetTimestamp(){if(!this.endDatetime)return null;const t=Date.parse(this.endDatetime);return Number.isFinite(t)?t:null}splitTwoDigits(t){const o=String(Math.max(0,Math.floor(t))).padStart(2,"0");return[o[0]??"0",o[1]??"0"]}isLatvianSingular(t){const o=Math.abs(Math.floor(t));return o%10==1&&o%100!=11}formatDatePart(t){return String(Math.max(0,Math.floor(t))).padStart(2,"0")}formatTargetDatetime(t){return`${[this.formatDatePart(t.getDate()),this.formatDatePart(t.getMonth()+1),String(t.getFullYear())].join(".")} ${[this.formatDatePart(t.getHours()),this.formatDatePart(t.getMinutes())].join(":")}`}getCountdownAriaLabel(){const t=this.getTargetTimestamp(),o=this.accessibilityLabel?.trim();if(null!==t&&o)return`${o} ${this.formatTargetDatetime(new Date(t))}.`}getUnitLabel(t,o){const i=this.isLatvianSingular(o);return"days"===t?i?"diena":"dienas":"hours"===t?i?"stunda":"stundas":"minutes"===t?i?"minūte":"minūtes":i?"sekunde":"sekundes"}renderUnit(t,o,n){const[e,s]=this.splitTwoDigits(t);return i("div",{class:"countdown-unit",part:`unit unit-${n}`},i("div",{class:"countdown-digits",part:`digits digits-${n}`},i("div",{class:"countdown-digit",part:`digit digit-${n}-first`},e),i("div",{class:"countdown-digit",part:`digit digit-${n}-second`},s)),i("div",{class:"countdown-label",part:`label label-${n}`},o))}render(){return i(n,{key:"a4e34144fa4486b1265fc68cd2def177117f978f",class:`static-text-color-${this.staticTextColor}`},this.countdownTitle&&i("div",{key:"252cf711aa8bab058c8382d8588c08dc13e140d7",class:"countdown-title",part:"title","aria-hidden":"true"},this.countdownTitle),i("div",{key:"c48e5fc1d6cb30c948f37cc972b26f8625e9cd5c",class:"countdown",part:"countdown","aria-hidden":"true"},this.renderUnit(this.countdown.days,this.getUnitLabel("days",this.countdown.days),"days"),this.renderUnit(this.countdown.hours,this.getUnitLabel("hours",this.countdown.hours),"hours"),this.renderUnit(this.countdown.minutes,this.getUnitLabel("minutes",this.countdown.minutes),"minutes"),this.renderUnit(this.countdown.seconds,this.getUnitLabel("seconds",this.countdown.seconds),"seconds")),i("div",{key:"99d2b1c409b42d4b4fde48df32aade221145ef5c",class:"sr-only"},this.getCountdownAriaLabel()))}static get watchers(){return{endDatetime:[{onEndDatetimeChanged:0}]}}};e.style='@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{display:block;--countdown-unit-gap:0.5rem;--countdown-digit-gap:0.5rem;--countdown-digit-border-radius:0.5rem;--countdown-digit-background-color:var(--tc-background-permanent-white);--countdown-digit-text-color:var(--tc-grey-80);--countdown-static-text-color:var(--tc-text-white-permanent);--countdown-title-color:var(--countdown-static-text-color);--countdown-label-color:var(--countdown-static-text-color);--countdown-title-font-family:var(--font-family-headline);--countdown-label-font-family:var(--font-family-content)}:host(.static-text-color-light){--countdown-static-text-color:var(--tc-text-white-permanent)}:host(.static-text-color-dark){--countdown-static-text-color:var(--tc-text-black-permanent)}.countdown{display:flex;width:100%;gap:var(--countdown-unit-gap)}.countdown-unit{display:flex;flex-direction:column;align-items:stretch;flex:1 1 0;min-width:0}.countdown-digits{display:flex;width:100%;gap:var(--countdown-digit-gap)}.countdown-digit{aspect-ratio:1/1.215;position:relative;border-radius:var(--countdown-digit-border-radius);background-color:var(--countdown-digit-background-color);display:flex;flex:1 1 0;min-width:0;align-items:center;justify-content:center;box-sizing:border-box;text-align:center;color:var(--countdown-digit-text-color);font-size:1.25rem;line-height:1.5rem;font-weight:600;font-family:var(--countdown-title-font-family)}.countdown-label{margin-top:0.5rem;width:100%;position:relative;display:inline-block;color:var(--countdown-label-color);text-align:center;font-size:0.75rem;line-height:1rem;font-weight:500;letter-spacing:0;font-family:var(--countdown-label-font-family)}.countdown-title{margin-bottom:1rem;width:100%;position:relative;display:inline-block;color:var(--countdown-title-color);text-align:center;font-size:1.25rem;line-height:1.5rem;font-weight:600;font-family:var(--countdown-title-font-family)}@media all and (min-width: 31.25rem){.countdown{gap:1rem}.countdown-label{font-size:1rem;line-height:1.5rem;letter-spacing:-0.00625rem}.countdown-title{margin-bottom:1.5rem}.countdown-digit{font-size:2rem;line-height:2.25rem}}@media all and (min-width: 48rem){.countdown-digit{font-size:1.5rem;line-height:1.75rem}}@media all and (min-width: 64rem){.countdown-digit{font-size:2rem;line-height:2.25rem}}@media all and (min-width: 80rem){.countdown-digit{font-size:2.5rem;line-height:3rem}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;white-space:nowrap;border:0;clip:rect(0 0 0 0);clip-path:inset(50%)}';export{e as tet_countdown}
1
+ import{r as t,c as o,h as i,H as n}from"./p-CO8AyGrA.js";const e=class{constructor(i){t(this,i),this.countdownEnded=o(this,"countdownEnded")}endDatetime;accessibilityLabel;countdownTitle;staticTextColor="light";countdownEnded;countdown={days:0,hours:0,minutes:0,seconds:0};tickTimeoutId;hasEmittedCountdownEnded=!1;componentWillLoad(){this.startCountdown()}disconnectedCallback(){this.clearTickTimeout()}onEndDatetimeChanged(){this.startCountdown()}clearTickTimeout(){void 0!==this.tickTimeoutId&&(globalThis.clearTimeout(this.tickTimeoutId),this.tickTimeoutId=void 0)}startCountdown(){this.clearTickTimeout(),this.hasEmittedCountdownEnded=!1,this.updateCountdown()}scheduleNextTick(){const t=1e3-Date.now()%1e3;this.tickTimeoutId=globalThis.setTimeout((()=>{this.tickTimeoutId=void 0,this.updateCountdown()}),t)}updateCountdown(){const t=this.getTargetTimestamp();if(null===t)return this.hasEmittedCountdownEnded=!1,void(this.countdown={days:0,hours:0,minutes:0,seconds:0});const o=Date.now(),i=Math.max(0,t-o),n=Math.floor(i/1e3),e=Math.floor(n/86400),s=Math.floor(n%86400/3600),a=Math.floor(n%3600/60),r=n%60;this.countdown={days:Math.min(e,99),hours:s,minutes:a,seconds:r},0!==i||this.hasEmittedCountdownEnded||(this.hasEmittedCountdownEnded=!0,this.countdownEnded.emit()),i>0&&this.scheduleNextTick()}getTargetTimestamp(){if(!this.endDatetime)return null;const t=Date.parse(this.endDatetime);return Number.isFinite(t)?t:null}splitTwoDigits(t){const o=String(Math.max(0,Math.floor(t))).padStart(2,"0");return[o[0]??"0",o[1]??"0"]}isLatvianSingular(t){const o=Math.abs(Math.floor(t));return o%10==1&&o%100!=11}formatDatePart(t){return String(Math.max(0,Math.floor(t))).padStart(2,"0")}formatTargetDatetime(t){return`${[this.formatDatePart(t.getDate()),this.formatDatePart(t.getMonth()+1),String(t.getFullYear())].join(".")} ${[this.formatDatePart(t.getHours()),this.formatDatePart(t.getMinutes())].join(":")}`}getCountdownAriaLabel(){const t=this.getTargetTimestamp(),o=this.accessibilityLabel?.trim();if(null!==t&&o)return`${o} ${this.formatTargetDatetime(new Date(t))}.`}getUnitLabel(t,o){const i=this.isLatvianSingular(o);return"days"===t?i?"diena":"dienas":"hours"===t?i?"stunda":"stundas":"minutes"===t?i?"minūte":"minūtes":i?"sekunde":"sekundes"}renderUnit(t,o,n){const[e,s]=this.splitTwoDigits(t);return i("div",{class:"countdown-unit",part:`unit unit-${n}`},i("div",{class:"countdown-digits",part:`digits digits-${n}`},i("div",{class:"countdown-digit",part:`digit digit-${n}-first`},e),i("div",{class:"countdown-digit",part:`digit digit-${n}-second`},s)),i("div",{class:"countdown-label",part:`label label-${n}`},o))}render(){return i(n,{key:"86c7b5a422f4ff9f739c57c86d5693079dd5a170",class:`static-text-color-${this.staticTextColor}`},this.countdownTitle&&i("div",{key:"01b108aae31730e16241ec0088256230a0f166d6",class:"countdown-title",part:"title","aria-hidden":"true"},this.countdownTitle),i("div",{key:"07011f54ed61c5b562fff493cfb7e520eedb7841",class:"countdown",part:"countdown","aria-hidden":"true"},this.renderUnit(this.countdown.days,this.getUnitLabel("days",this.countdown.days),"days"),this.renderUnit(this.countdown.hours,this.getUnitLabel("hours",this.countdown.hours),"hours"),this.renderUnit(this.countdown.minutes,this.getUnitLabel("minutes",this.countdown.minutes),"minutes"),this.renderUnit(this.countdown.seconds,this.getUnitLabel("seconds",this.countdown.seconds),"seconds")),i("div",{key:"4a13af22412ae97841588199dba9c5b6f9d8656e",class:"sr-only"},this.getCountdownAriaLabel()))}static get watchers(){return{endDatetime:[{onEndDatetimeChanged:0}]}}};e.style='@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{display:block;--countdown-unit-gap:0.5rem;--countdown-digit-gap:0.5rem;--countdown-digit-border-radius:0.5rem;--countdown-digit-background-color:var(--tc-background-permanent-white);--countdown-digit-text-color:var(--tc-grey-80);--countdown-static-text-color:var(--tc-text-white-permanent);--countdown-title-color:var(--countdown-static-text-color);--countdown-label-color:var(--countdown-static-text-color);--countdown-title-font-family:var(--font-family-headline);--countdown-label-font-family:var(--font-family-content)}:host(.static-text-color-light){--countdown-static-text-color:var(--tc-text-white-permanent)}:host(.static-text-color-dark){--countdown-static-text-color:var(--tc-text-black-permanent)}.countdown{display:flex;width:100%;gap:var(--countdown-unit-gap)}.countdown-unit{display:flex;flex-direction:column;align-items:stretch;flex:1 1 0;min-width:0}.countdown-digits{display:flex;width:100%;gap:var(--countdown-digit-gap)}.countdown-digit{aspect-ratio:1/1.215;position:relative;border-radius:var(--countdown-digit-border-radius);background-color:var(--countdown-digit-background-color);display:flex;flex:1 1 0;min-width:0;align-items:center;justify-content:center;box-sizing:border-box;text-align:center;color:var(--countdown-digit-text-color);font-size:1.25rem;line-height:1.5rem;font-weight:600;font-family:var(--countdown-title-font-family)}.countdown-label{margin-top:0.5rem;width:100%;position:relative;display:inline-block;color:var(--countdown-label-color);text-align:center;font-size:0.75rem;line-height:1rem;font-weight:500;letter-spacing:0;font-family:var(--countdown-label-font-family)}.countdown-title{margin-bottom:1rem;width:100%;position:relative;display:inline-block;color:var(--countdown-title-color);text-align:center;font-size:1.25rem;line-height:1.5rem;font-weight:600;font-family:var(--countdown-title-font-family)}@media all and (min-width: 31.25rem){.countdown{gap:1rem}.countdown-label{font-size:1rem;line-height:1.5rem;letter-spacing:-0.00625rem}.countdown-title{margin-bottom:1.5rem}.countdown-digit{font-size:2rem;line-height:2.25rem}}@media all and (min-width: 48rem){.countdown-digit{font-size:1.5rem;line-height:1.75rem}}@media all and (min-width: 64rem){.countdown-digit{font-size:2rem;line-height:2.25rem}}@media all and (min-width: 80rem){.countdown-digit{font-size:2.5rem;line-height:3rem}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;white-space:nowrap;border:0;clip:rect(0 0 0 0);clip-path:inset(50%)}';export{e as tet_countdown}
@@ -1 +1 @@
1
- import{r as t,c as e,h as o}from"./p-gA3_LS77.js";const r=class{constructor(o){t(this,o),this.ctaClick=e(this,"ctaClick")}buttonMobileBreakpoint=768;buttonRef=null;benefits=[];productTitle="";price;onPriceChange(){this.syncButtonSize()}oldPrice;currency;buttonLabel="";url;urlTarget="_self";ctaClick;getResolvedBenefits(){if(Array.isArray(this.benefits))return this.benefits;if("string"==typeof this.benefits)try{const t=JSON.parse(this.benefits);return Array.isArray(t)?t:[]}catch{return[]}return[]}handleCtaClick=()=>{const t=this.buttonLabel.trim();this.ctaClick.emit({productTitle:this.productTitle,buttonLabel:t,url:this.url,urlTarget:"_blank"===this.urlTarget?"_blank":"_self"})};componentDidLoad(){this.syncButtonSize(),globalThis.addEventListener("resize",this.syncButtonSize)}disconnectedCallback(){globalThis.removeEventListener("resize",this.syncButtonSize)}syncButtonSize=()=>{globalThis.innerWidth<this.buttonMobileBreakpoint?this.buttonRef?.setAttribute("size",null==this.price?"medium":"small"):this.buttonRef?.removeAttribute("size")};renderBadgeContent=()=>{const{price:t,currency:e,oldPrice:r}=this;if(null==t)return null;const i=t.toFixed(2).toString().split(".");return o("div",{class:"card__badge-content-item"},o("div",{class:"card__badge-content-item__price-container"},o("span",{class:"card__badge-content-item__price"},i[0]),o("div",{class:"card__badge-content-item__price-details"},o("span",{class:"card__badge-content-item__price-details__header"},i[1]),o("span",{class:"card__badge-content-item__price-details__description"},e))),null!=r&&o("span",{class:"card__badge-content-item__footer"},r.toFixed(2)," ",e))};render(){const t=this.getResolvedBenefits(),e=this.buttonLabel.trim(),r="_blank"===this.urlTarget?"_blank":"_self";return o("div",{key:"9bf6d8dde86c681071881d0ab034cad7c349fd85",class:"card-wrapper"},!!t.length&&o("div",{key:"82979fd207c25e8620a84ee75a30792ad76bcdf9",class:"card__list"},t.map((({iconImage:t,iconName:e,title:r})=>o("div",{class:"card__list-item"},t?o("img",{class:"card__list-item-image",src:t,alt:r,loading:"lazy"}):!!e&&o("tet-icon",{class:"card__list-item-icon",name:e}),o("p",{class:"card__list-item-title"},r))))),o("div",{key:"084c264bd031ba3cf4a5a11f1fe4df7be722f634",class:{card__badge:!0,"no-price":null==this.price}},o("p",{key:"82ac5727b04fcdb6742f9a378c1881b1563402e1",class:{"card__badge-title":!0,"no-price":null==this.price}},this.productTitle),o("div",{key:"d1a568bfdad3bb8772f6345dbc8dec803e4c77e5",class:"card__badge-content-wrapper"},this.renderBadgeContent(),!!e&&o("tet-button",{key:"0d0d4c0b4766cd315623d41446ad0da65738f16f",class:"card__badge-content-item__button",clickCallback:this.handleCtaClick,ref:t=>{this.buttonRef=t},type:"primary",theme:"light",url:this.url,"url-target":r},e))))}static get watchers(){return{price:[{onPriceChange:0}]}}};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{--tet-mini-compare-card-width:10.5rem;--tet-mini-compare-card-width-desktop:22.5rem;--tet-mini-compare-card-border-radius:1rem;--tet-mini-compare-card-box-shadow:var(--tc-elevation-one);--tet-mini-compare-card-list-padding:1.5rem;--tet-mini-compare-card-list-gap:0.5rem;--tet-mini-compare-card-list-background:var(--tc-layer-permanent-white);--tet-mini-compare-card-benefit-gap:0.5rem;--tet-mini-compare-card-benefit-icon-size:1.5rem;--tet-mini-compare-card-text-color:var(--tc-text-black-permanent);--tet-mini-compare-card-badge-padding:0.375rem 1rem;--tet-mini-compare-card-badge-gap:0.5rem;--tet-mini-compare-card-badge-gap-no-price:1rem;--tet-mini-compare-card-badge-background:var(--tc-background-permanent-yellow);--tet-mini-compare-card-content-gap:0.5rem;--tet-mini-compare-card-badge-padding-no-price:1rem;--tet-mini-compare-card-badge-padding-desktop:1rem 1.5rem;--tet-mini-compare-card-badge-gap-desktop:1rem;--tet-mini-compare-card-content-gap-desktop:2.5rem}.card-wrapper{display:flex;width:var(--tet-mini-compare-card-width);flex-direction:column;align-items:flex-end;border-radius:var(--tet-mini-compare-card-border-radius);box-shadow:var(--tet-mini-compare-card-box-shadow);overflow:hidden}.card__list{display:none;padding:var(--tet-mini-compare-card-list-padding);flex-direction:column;align-items:flex-start;gap:var(--tet-mini-compare-card-list-gap);align-self:stretch;background:var(--tet-mini-compare-card-list-background)}.card__list-item{display:flex;padding:0.25rem 0;align-items:flex-start;gap:var(--tet-mini-compare-card-benefit-gap);align-self:stretch}.card__list-item-icon{--icon-size:var(--tet-mini-compare-card-benefit-icon-size)}.card__list-item-image{width:var(--tet-mini-compare-card-benefit-icon-size);height:var(--tet-mini-compare-card-benefit-icon-size)}.card__list-item-title{color:var(--tet-mini-compare-card-text-color);font:500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";line-height:1.5rem}.card__badge{display:flex;padding:var(--tet-mini-compare-card-badge-padding);flex-direction:column;justify-content:center;align-items:center;gap:var(--tet-mini-compare-card-badge-gap);align-self:stretch;background-color:var(--tet-mini-compare-card-badge-background)}.card__badge.no-price{gap:var(--tet-mini-compare-card-badge-gap-no-price);padding:var(--tet-mini-compare-card-badge-padding-no-price)}.card__badge-title{color:var(--tet-mini-compare-card-text-color);font:600 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif"}.card__badge-title.no-price{text-align:center;font:600 1.25rem/1.5rem "Gilroy", "Gilroy, Arial, sans-serif"}.card__badge-content-wrapper{display:flex;flex-direction:column;align-items:center;width:100%;gap:var(--tet-mini-compare-card-content-gap);align-self:stretch}.card__badge-content-item{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:0}.card__badge-content-item__price-container{display:flex;align-items:center;gap:0.125rem}.card__badge-content-item__price{color:var(--tet-mini-compare-card-text-color);font:600 2rem/2.25rem "Gilroy", "Gilroy, Arial, sans-serif"}.card__badge-content-item__price-details{display:flex;flex-direction:column;align-items:flex-start;color:var(--tet-mini-compare-card-text-color)}.card__badge-content-item__price-details__header{font:600 1.25rem/1.5rem "Gilroy", "Gilroy, Arial, sans-serif";align-self:stretch;align-items:center}.card__badge-content-item__price-details__description{font-size:0.5rem;line-height:1rem;font-style:normal;font-weight:500;margin-top:-0.38rem}.card__badge-content-item__footer{color:var(--tet-mini-compare-card-text-color);font-size:0.625rem;font-style:normal;font-weight:400;line-height:1rem;text-decoration-line:line-through;text-wrap:nowrap;margin-top:-0.25rem}.card__badge-content-item__button{width:100%;--button-width:100%}@media all and (min-width: 48rem){.card-wrapper{width:var(--tet-mini-compare-card-width-desktop)}.card-wrapper .card__list{display:flex}.card-wrapper .card__badge{align-items:flex-start;padding:var(--tet-mini-compare-card-badge-padding-desktop);gap:var(--tet-mini-compare-card-badge-gap-desktop)}.card-wrapper .card__badge-title{font:600 1.125rem/1.75rem "Inter", "Gilroy, Arial, sans-serif"}.card-wrapper .card__badge-title.no-price{font:600 1.75rem/2rem "Gilroy", "Gilroy, Arial, sans-serif"}.card-wrapper .card__badge-content-wrapper{flex-direction:row;align-items:flex-end;gap:var(--tet-mini-compare-card-content-gap-desktop)}.card-wrapper .card__badge-content-item{display:flex;gap:0.25rem}.card-wrapper .card__badge-content-item__price{font:600 3.5rem/4rem "Gilroy", "Gilroy, Arial, sans-serif"}.card-wrapper .card__badge-content-item__price-details__header{font:600 1.75rem/2rem "Gilroy", "Gilroy, Arial, sans-serif"}.card-wrapper .card__badge-content-item__price-details__description{font:500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}.card-wrapper .card__badge-content-item__footer{font:400 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";margin-top:-0.5}}';export{r as tet_mini_compare_card}
1
+ import{r as t,c as e,h as o}from"./p-CO8AyGrA.js";const r=class{constructor(o){t(this,o),this.ctaClick=e(this,"ctaClick")}buttonMobileBreakpoint=768;buttonRef=null;benefits=[];productTitle="";price;onPriceChange(){this.syncButtonSize()}oldPrice;currency;buttonLabel="";url;urlTarget="_self";ctaClick;getResolvedBenefits(){if(Array.isArray(this.benefits))return this.benefits;if("string"==typeof this.benefits)try{const t=JSON.parse(this.benefits);return Array.isArray(t)?t:[]}catch{return[]}return[]}handleCtaClick=()=>{const t=this.buttonLabel.trim();this.ctaClick.emit({productTitle:this.productTitle,buttonLabel:t,url:this.url,urlTarget:"_blank"===this.urlTarget?"_blank":"_self"})};componentDidLoad(){this.syncButtonSize(),globalThis.addEventListener("resize",this.syncButtonSize)}disconnectedCallback(){globalThis.removeEventListener("resize",this.syncButtonSize)}syncButtonSize=()=>{globalThis.innerWidth<this.buttonMobileBreakpoint?this.buttonRef?.setAttribute("size",null==this.price?"medium":"small"):this.buttonRef?.removeAttribute("size")};renderBadgeContent=()=>{const{price:t,currency:e,oldPrice:r}=this;if(null==t)return null;const i=t.toFixed(2).toString().split(".");return o("div",{class:"card__badge-content-item"},o("div",{class:"card__badge-content-item__price-container"},o("span",{class:"card__badge-content-item__price"},i[0]),o("div",{class:"card__badge-content-item__price-details"},o("span",{class:"card__badge-content-item__price-details__header"},i[1]),o("span",{class:"card__badge-content-item__price-details__description"},e))),null!=r&&o("span",{class:"card__badge-content-item__footer"},r.toFixed(2)," ",e))};render(){const t=this.getResolvedBenefits(),e=this.buttonLabel.trim(),r="_blank"===this.urlTarget?"_blank":"_self";return o("div",{key:"9bf6d8dde86c681071881d0ab034cad7c349fd85",class:"card-wrapper"},!!t.length&&o("div",{key:"82979fd207c25e8620a84ee75a30792ad76bcdf9",class:"card__list"},t.map((({iconImage:t,iconName:e,title:r})=>o("div",{class:"card__list-item"},t?o("img",{class:"card__list-item-image",src:t,alt:r,loading:"lazy"}):!!e&&o("tet-icon",{class:"card__list-item-icon",name:e}),o("p",{class:"card__list-item-title"},r))))),o("div",{key:"084c264bd031ba3cf4a5a11f1fe4df7be722f634",class:{card__badge:!0,"no-price":null==this.price}},o("p",{key:"82ac5727b04fcdb6742f9a378c1881b1563402e1",class:{"card__badge-title":!0,"no-price":null==this.price}},this.productTitle),o("div",{key:"d1a568bfdad3bb8772f6345dbc8dec803e4c77e5",class:"card__badge-content-wrapper"},this.renderBadgeContent(),!!e&&o("tet-button",{key:"0d0d4c0b4766cd315623d41446ad0da65738f16f",class:"card__badge-content-item__button",clickCallback:this.handleCtaClick,ref:t=>{this.buttonRef=t},type:"primary",theme:"light",url:this.url,"url-target":r},e))))}static get watchers(){return{price:[{onPriceChange:0}]}}};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{--tet-mini-compare-card-width:10.5rem;--tet-mini-compare-card-width-desktop:22.5rem;--tet-mini-compare-card-border-radius:1rem;--tet-mini-compare-card-box-shadow:var(--tc-elevation-one);--tet-mini-compare-card-list-padding:1.5rem;--tet-mini-compare-card-list-gap:0.5rem;--tet-mini-compare-card-list-background:var(--tc-layer-permanent-white);--tet-mini-compare-card-benefit-gap:0.5rem;--tet-mini-compare-card-benefit-icon-size:1.5rem;--tet-mini-compare-card-text-color:var(--tc-text-black-permanent);--tet-mini-compare-card-badge-padding:0.375rem 1rem;--tet-mini-compare-card-badge-gap:0.5rem;--tet-mini-compare-card-badge-gap-no-price:1rem;--tet-mini-compare-card-badge-background:var(--tc-background-permanent-yellow);--tet-mini-compare-card-content-gap:0.5rem;--tet-mini-compare-card-badge-padding-no-price:1rem;--tet-mini-compare-card-badge-padding-desktop:1rem 1.5rem;--tet-mini-compare-card-badge-gap-desktop:1rem;--tet-mini-compare-card-content-gap-desktop:2.5rem}.card-wrapper{display:flex;width:var(--tet-mini-compare-card-width);flex-direction:column;align-items:flex-end;border-radius:var(--tet-mini-compare-card-border-radius);box-shadow:var(--tet-mini-compare-card-box-shadow);overflow:hidden}.card__list{display:none;padding:var(--tet-mini-compare-card-list-padding);flex-direction:column;align-items:flex-start;gap:var(--tet-mini-compare-card-list-gap);align-self:stretch;background:var(--tet-mini-compare-card-list-background)}.card__list-item{display:flex;padding:0.25rem 0;align-items:flex-start;gap:var(--tet-mini-compare-card-benefit-gap);align-self:stretch}.card__list-item-icon{--icon-size:var(--tet-mini-compare-card-benefit-icon-size)}.card__list-item-image{width:var(--tet-mini-compare-card-benefit-icon-size);height:var(--tet-mini-compare-card-benefit-icon-size)}.card__list-item-title{color:var(--tet-mini-compare-card-text-color);font:500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";line-height:1.5rem}.card__badge{display:flex;padding:var(--tet-mini-compare-card-badge-padding);flex-direction:column;justify-content:center;align-items:center;gap:var(--tet-mini-compare-card-badge-gap);align-self:stretch;background-color:var(--tet-mini-compare-card-badge-background)}.card__badge.no-price{gap:var(--tet-mini-compare-card-badge-gap-no-price);padding:var(--tet-mini-compare-card-badge-padding-no-price)}.card__badge-title{color:var(--tet-mini-compare-card-text-color);font:600 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif"}.card__badge-title.no-price{text-align:center;font:600 1.25rem/1.5rem "Gilroy", "Gilroy, Arial, sans-serif"}.card__badge-content-wrapper{display:flex;flex-direction:column;align-items:center;width:100%;gap:var(--tet-mini-compare-card-content-gap);align-self:stretch}.card__badge-content-item{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:0}.card__badge-content-item__price-container{display:flex;align-items:center;gap:0.125rem}.card__badge-content-item__price{color:var(--tet-mini-compare-card-text-color);font:600 2rem/2.25rem "Gilroy", "Gilroy, Arial, sans-serif"}.card__badge-content-item__price-details{display:flex;flex-direction:column;align-items:flex-start;color:var(--tet-mini-compare-card-text-color)}.card__badge-content-item__price-details__header{font:600 1.25rem/1.5rem "Gilroy", "Gilroy, Arial, sans-serif";align-self:stretch;align-items:center}.card__badge-content-item__price-details__description{font-size:0.5rem;line-height:1rem;font-style:normal;font-weight:500;margin-top:-0.38rem}.card__badge-content-item__footer{color:var(--tet-mini-compare-card-text-color);font-size:0.625rem;font-style:normal;font-weight:400;line-height:1rem;text-decoration-line:line-through;text-wrap:nowrap;margin-top:-0.25rem}.card__badge-content-item__button{width:100%;--button-width:100%}@media all and (min-width: 48rem){.card-wrapper{width:var(--tet-mini-compare-card-width-desktop)}.card-wrapper .card__list{display:flex}.card-wrapper .card__badge{align-items:flex-start;padding:var(--tet-mini-compare-card-badge-padding-desktop);gap:var(--tet-mini-compare-card-badge-gap-desktop)}.card-wrapper .card__badge-title{font:600 1.125rem/1.75rem "Inter", "Gilroy, Arial, sans-serif"}.card-wrapper .card__badge-title.no-price{font:600 1.75rem/2rem "Gilroy", "Gilroy, Arial, sans-serif"}.card-wrapper .card__badge-content-wrapper{flex-direction:row;align-items:flex-end;gap:var(--tet-mini-compare-card-content-gap-desktop)}.card-wrapper .card__badge-content-item{display:flex;gap:0.25rem}.card-wrapper .card__badge-content-item__price{font:600 3.5rem/4rem "Gilroy", "Gilroy, Arial, sans-serif"}.card-wrapper .card__badge-content-item__price-details__header{font:600 1.75rem/2rem "Gilroy", "Gilroy, Arial, sans-serif"}.card-wrapper .card__badge-content-item__price-details__description{font:500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}.card-wrapper .card__badge-content-item__footer{font:400 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";margin-top:-0.5}}';export{r as tet_mini_compare_card}
@@ -1 +1 @@
1
- import{r as t,c as e,e as o,h as r,H as i}from"./p-gA3_LS77.js";import{e as a,A as n}from"./p-CNGb2lWC.js";import{f as s}from"./p-B_N3UuP2.js";import{c}from"./p-Th74Kc5K.js";import{t as l}from"./p-ChdlTQSF.js";import"./p-Bvqcvhjw.js";const{state:d,set:f,get:m}=c({data:[],cart:new Map,productDetails:new Map}),h=t=>{const e=new Map(d.cart);e.delete(t),f("cart",e)},u=()=>{const t=m("cart"),e=m("productDetails"),o={};for(const[r,i]of t.entries())o[e.get(r)?.name||r]=i;return o},y=class{constructor(o){t(this,o),this.compareLinkClick=e(this,"compareLinkClick"),this.b2bConfiguratorSubmit=e(this,"b2bConfiguratorSubmit"),this.successCloseClick=e(this,"successCloseClick")}get hostElement(){return o(this)}priceSuffix="€/mēn.";cartEl;confirmationDialogEl;submissionStateDialogEl;checkoutFormEl;primaryAccordionEl;secondaryAccordionEl;primaryNavEl;secondaryNavEl;referenceElement;isLoading=!0;itemToRemove=null;checkoutAttempted=!1;formState="success";activePrimaryCategoryId=null;resetSelectedPrimaryCards(){this.selectedPrimaryCards=[]}activeSecondaryCategoryId=null;resetSelectedSecondaryCards(){this.selectedSecondaryCards=[]}selectedPrimaryCards=[];selectedSecondaryCards=[];isDesktopResolution;theme="light";stickyRefEl="";compareLinkClick;b2bConfiguratorSubmit;successCloseClick;async componentWillLoad(){this.checkDesktopResolution(),this.referenceElement=this.stickyRefEl?document.querySelector(this.stickyRefEl):this.hostElement.parentElement}async componentDidLoad(){this.isLoading=!0,await(async t=>{const e="function"==typeof t?t():t,o=new Promise((t=>setTimeout(t,500))),[r]=await Promise.all([e,o]);return r})(this.fetchData),this.isLoading=!1,this.activePrimaryCategoryId=d.data.find((t=>"primary"===t.type))?.id||null,this.activeSecondaryCategoryId=d.data.find((t=>"secondary"===t.type))?.id||null,this.positionStickyCartEl()}onResize(){this.checkDesktopResolution(),this.positionStickyCartEl()}async setSubmitFormState(t){"validation-error"===t&&(this.submissionStateDialogEl.close(),this.checkoutFormEl.open()),this.formState=t}checkDesktopResolution=()=>{this.isDesktopResolution=window.innerWidth>=1024};fetchData=async()=>{(t=>{f("data",t);const e=new Map;for(const o of t)for(const t of o.products){const{type:r,name:i,id:a}=o,{name:{lv:n},description:{lv:s},amount:c,b2bConfiguratorProduct:l}=t;e.set(t.productCode,{name:n,description:s,amount:c,discountAmount:l.discountAmount,categoryType:r,categoryName:i,categoryId:a,b2bConfiguratorProduct:l})}f("productDetails",e)})(await(()=>{let t;try{t=new URL(a.b2bConfigurator).href}catch(t){return console.error(t),Promise.reject("B2B configurator endpoint URL generation failed.")}return(new n).setUrl(t).setErrorFallbackValue([]).execute()})())};renderPlaceholder=()=>{const t="dark"===this.theme;return[r("div",{class:"offer placeholder"},r("div",{style:{padding:this.isDesktopResolution?"1.5rem":"1rem"}},r("tet-placeholder",{class:"placeholder",height:this.isDesktopResolution?"2rem":"1.5rem",darkTheme:t})),r("div",{class:"offer__content"},r("tet-placeholder",{class:"placeholder offer__navigation",height:this.isDesktopResolution?"48rem":" 2.25rem",darkTheme:t,style:{margin:"0"}}),r("div",{class:"offer__cards"},r("div",{class:"offer__cards-list"},r("tet-placeholder",{class:"placeholder",height:"3rem",darkTheme:t}),r("tet-placeholder",{class:"placeholder",height:"10.25rem",darkTheme:t}),r("tet-placeholder",{class:"placeholder",height:"10.25rem",darkTheme:t}),r("tet-placeholder",{class:"placeholder",height:"10.25rem",darkTheme:t}),r("tet-placeholder",{class:"placeholder",height:"10.25rem",darkTheme:t}))))),r("div",{class:"cart cart--empty",style:{padding:"1.5rem 1rem 1rem","background-color":"var(--b2b-background-color)"}},r("tet-placeholder",{class:"placeholder",height:"12.75rem",darkTheme:t}))]};categoryClickHandler=t=>{const{id:e}=t.detail,o=this.getCategoryById(e);o&&("primary"===o.type?this.activePrimaryCategoryId=e:this.activeSecondaryCategoryId=e)};renderOffer=()=>{const t=[{name:l("components-b2b-offer-primary-title"),type:"primary"},{name:l("components-b2b-offer-secondary-title"),type:"secondary"}];return r("div",{class:{offer:!0,[`offer--${this.theme}`]:!0}},t.map((t=>{const e=d.data.filter((e=>e.type===t.type)).map((t=>{const{id:e,name:o,icon:r}=t;return{id:e,name:o,icon:r,selected:e===this.activePrimaryCategoryId||e===this.activeSecondaryCategoryId}}));return r("tet-accordion",{ref:e=>{"primary"===t.type?this.primaryAccordionEl=e:this.secondaryAccordionEl=e},key:t.type,class:"offer__block",isOpen:"primary"===t.type,header:t.name,withBorder:!0,theme:this.theme,transparentBackground:!0},r("div",{class:"offer__content"},r("div",{class:"offer__navigation"},r("tet-business-navigation",{ref:e=>{"primary"===t.type?this.primaryNavEl=e:this.secondaryNavEl=e},menuItems:e,theme:this.theme,"onMenu-click-event":this.categoryClickHandler})),this.renderCards(t.type)))})))};getCategoryById=t=>d.data.find((e=>e.id===t));onCompareLinkClick=t=>{const e=this.getCategoryById(t);e&&e.modalScreenId&&this.compareLinkClick.emit(e.modalScreenId)};handleCardSelected=(t,e)=>{const o=this.getCategoryById(e);if(!o)return;const{type:r,allowMultipleChoice:i}=o;if("primary"===r){if(this.selectedPrimaryCards.includes(t))return;this.selectedPrimaryCards=i?[...this.selectedPrimaryCards,t]:[t]}else{if(this.selectedSecondaryCards.includes(t))return;this.selectedSecondaryCards=i?[...this.selectedSecondaryCards,t]:[t]}};handleProductCountChanged=async(t,e)=>{const{cardId:o,count:r}=t.detail,i=this.getCategoryById(e);if(i&&d.cart.get(o)!==r){if(!r)return this.itemToRemove=o,void this.confirmationDialogEl.open();i.allowMultipleChoice||i.products.forEach((t=>t.productCode!==o&&h(t.productCode))),((t,e)=>{if(e<0)return;const o=new Map(d.cart);o.set(t,e),f("cart",o)})(o,r),this.isDesktopResolution&&(this.cartEl.changeBlockState(i.type,"open"),this.cartEl.changeBlockState("primary"===i.type?"secondary":"primary","close"))}};onConfirmationClose=()=>{this.itemToRemove=null};renderConfirmationDialog=()=>r("tet-dialog",{ref:t=>this.confirmationDialogEl=t,class:this.theme,closeOnOverlayClick:!1,onCloseDialog:this.onConfirmationClose,theme:this.theme},r("div",{class:"action-dialog"},r("tet-icon",{class:"action-dialog__icon action-dialog__attention-icon",name:"tc-attention"}),r("div",{class:"action-dialog__title"},l("components-b2b-item-remove-confirmation-title"))),r("div",{slot:"footer",class:"action-dialog__footer"},r("tet-button",{class:"action-dialog__button",type:"secondary",theme:this.theme,size:"large",onClick:()=>this.confirmationDialogEl.close()},l("components-b2b-item-remove-confirmation-decline")),r("tet-button",{class:"action-dialog__button",type:"primary",theme:this.theme,size:"large",iconName:"tc-trash",iconPosition:"left",onClick:()=>{h(this.itemToRemove),this.confirmationDialogEl.close()}},l("components-b2b-item-remove-confirmation-accept"))));resetState=()=>{f("cart",new Map),this.checkoutAttempted=!1,this.primaryAccordionEl.open(),this.secondaryAccordionEl.close()};renderSubmissionStateDialog=()=>{const t="loading"===this.formState,e=()=>{this.resetState(),this.successCloseClick.emit(),this.submissionStateDialogEl.close()},o=t?r("div",{class:"action-dialog"},r("tet-spinner",{theme:this.theme}),r("div",{class:"action-dialog__title"},l("components-b2b-loading-dialog-title")),r("div",{class:"action-dialog__description"},l("components-b2b-loading-dialog-description"))):[r("div",{class:"action-dialog"},r("tet-icon",{class:"action-dialog__icon action-dialog__success-icon",name:"tc-check-circle"}),r("div",{class:"action-dialog__title"},l("components-b2b-success-dialog-title")),r("div",{class:"action-dialog__description"},l("components-b2b-success-dialog-description"))),r("div",{slot:"footer",class:"action-dialog__footer"},r("tet-button",{class:"action-dialog__button",type:"secondary",theme:this.theme,size:"large",onClick:e},r("div",{class:"action-dialog__button-text"},l("components-b2b-success-dialog-close"))),r("tet-button",{class:"action-dialog__button",type:"primary",theme:this.theme,size:"large",onClick:()=>{this.resetState(),this.submissionStateDialogEl.close()}},r("div",{class:"action-dialog__button-text"},l("components-b2b-success-dialog-start-again"))))];return r("tet-dialog",{ref:t=>this.submissionStateDialogEl=t,class:{[this.theme]:!0,"action-dialog--loading":t},closeOnOverlayClick:!1,closeOnEscape:!t,hideCloseButton:t,theme:this.theme,onCloseDialog:"success"===this.formState?e:this.submissionStateDialogEl.close},o)};renderCards=t=>{const e="primary"===t?this.activePrimaryCategoryId:this.activeSecondaryCategoryId,o="primary"===t?this.selectedPrimaryCards:this.selectedSecondaryCards,i=this.getCategoryById(e),{modalScreenId:a,products:n=[]}=i||{},s=n.map((t=>{const{productCode:i,name:{lv:a},description:{lv:n},amount:s,b2bConfiguratorProduct:{discountAmount:c,selectionType:l,defaultValue:f,minValue:m,maxValue:h,translationKey:u},benefits:{lv:y},contracts:p}=t,b=!!t.attributes.find((t=>"isBestChoice"===t.key))?.value,g="single"===l?void 0:{defaultValue:f,minValue:m,maxValue:h,label:u},_={id:i,title:a,subtitle:n,isBestChoice:b,price:s,discountPrice:c,benefits:y.split("\n"),contract:p[0]?.contract,counterOptions:g},v=o.includes(i);return r("tet-b2b-compare-card",{options:_,theme:this.theme,key:i,isSelected:v,onSelectedChange:()=>this.handleCardSelected(i,e),count:d.cart.get(i),onCountChange:t=>this.handleProductCountChanged(t,e)})}));return r("div",{class:"offer__cards"},r("div",{class:"offer__cards-header"},r("div",{class:"offer__cards-title"},l("components-b2b-offer-product-list-title")),a&&r("button",{class:{"button-reset":!0,compare__button:!0,[`${this.theme}`]:!0},onClick:()=>{this.onCompareLinkClick(e)}},r("span",{class:{compare__text:!0,"tet-link":!0,[`${this.theme}`]:!0}},l("components-b2b-offer-compare-link-text")),r("div",{class:"compare__icon-wrapper"},r("tet-icon",{class:"compare__icon",name:"tc-info-circle-outline",theme:this.theme})))),r("div",{class:"offer__cards-list"},s))};handleCartProductCountChange=(t,e,o)=>{this.handleProductCountChanged({detail:{cardId:t,count:e}},o)};goToProduct=async(t,e)=>{const o=this.getCategoryById(t);o&&("primary"===o.type?(await this.primaryAccordionEl.open(),await this.primaryNavEl.selectMenuItem(t),this.primaryAccordionEl.scrollIntoView({behavior:"smooth"})):"secondary"===o.type&&(await this.secondaryAccordionEl.open(),await this.secondaryNavEl.selectMenuItem(t),this.secondaryAccordionEl.scrollIntoView({behavior:"smooth"})),setTimeout((()=>{this.handleCardSelected(e,t)}),0))};renderCartCardsList=t=>{const e=e=>{const o=d.cart.get(e),i=d.productDetails.get(e);if(void 0===o||!i)return null;const{name:a,amount:n,description:s,discountAmount:c,categoryName:f,categoryType:m,categoryId:h,b2bConfiguratorProduct:u}=i,y="primary"===m?s:f,{selectionType:p,term:b,minValue:g,maxValue:_,translationKey:v}=u;return r("tet-business-summary-card",{key:e,productName:a,price:n,productDescription:y,discountPrice:c,currency:this.priceSuffix,contractTerm:b,theme:this.theme,withStepper:"number"===p,value:o,minValue:g,maxValue:_,stepperLabel:l(v||""),context:t,onAmountChange:t=>this.handleCartProductCountChange(e,t.detail,h),onDeleteButtonClick:()=>this.handleCartProductCountChange(e,0,h),onEditButtonClick:()=>this.goToProduct(h,e)})};return["primary","secondary"].map((t=>{const o=[...d.cart].filter((([e])=>{const o=d.productDetails.get(e);return o&&o.categoryType===t})).map((([t])=>e(t)));return o.length?r("div",{class:"cart__card-list",slot:t},o):null}))};positionStickyCartEl=()=>{this.referenceElement&&(this.isDesktopResolution?this.hostElement.style.setProperty("--b2b-cart-sticky-top",`${this.referenceElement.offsetTop}px`):this.hostElement.style.removeProperty("--b2b-cart-sticky-top"))};renderCart=(t="edit")=>{const e=!d.cart.size;let o={primary:0,secondary:0},i={primary:0,secondary:0},a=0;for(const[t,e]of d.cart){const r=d.productDetails.get(t);r&&(o[r.categoryType]+=(r.discountAmount??r.amount)*e,i[r.categoryType]+=1,a+=r.amount*e)}const{primary:n,secondary:c}=o,f=n+c,m=a-f,{primary:h,secondary:u}=this.areProductsAddedToCart(),y="edit"===t&&this.checkoutAttempted&&!h,p="edit"===t&&this.checkoutAttempted&&!u,b={summaryAmount:s(f,{currency:""}),primaryAmount:s(n,{currency:""}),secondaryAmount:s(c,{currency:""}),primaryCount:i.primary,secondaryCount:i.secondary,summarySavings:s(m,{currency:""}),hasPrimaryNotification:y,hasSecondaryNotification:p},g="edit"===t?r("tet-button",{onClick:this.checkout,slot:"cta",class:"cart__cta",type:"primary",size:this.isDesktopResolution?"large":"medium",theme:this.theme},l("components-b2b-cart-cta-button-title")):null;return r("tet-b2b-configurator-cart",{ref:e=>"edit"===t?this.cartEl=e:null,context:t,class:{cart:!0,"cart--empty":e,[`cart--${t}`]:!0},data:b,theme:this.theme,isCartEmpty:e,isDesktopResolution:this.isDesktopResolution},this.renderCartCardsList(t),g)};areProductsAddedToCart=()=>{const t={primary:!1,secondary:!1};for(const[e,o]of d.cart){const o=d.productDetails.get(e);o&&(t[o.categoryType]=!0)}return t};checkout=()=>{this.checkoutAttempted=!0;const{primary:t,secondary:e}=this.areProductsAddedToCart();t&&e&&this.checkoutFormEl.open()};submit=({detail:t})=>{const e={cart:u(),contactInfo:t};this.formState="loading",this.b2bConfiguratorSubmit.emit(e),this.checkoutFormEl.close(),this.submissionStateDialogEl.open()};renderCheckoutForm=()=>r("tet-b2b-check-out-form",{ref:t=>this.checkoutFormEl=t,theme:this.theme,"onSubmit-check-out-form":this.submit},r("div",{slot:"cart"},this.renderCart("checkout")));render(){return r(i,{key:"8a7020fefe90c39115a645da5fd630aa263d6a12"},r("div",{key:"9e19c2fe4800f92db342767cf635271e9195212b",class:{configurator:!0,[`${this.theme}`]:!0}},this.isLoading?this.renderPlaceholder():d.data&&[this.renderOffer(),this.renderCart()]),this.renderCheckoutForm(),this.renderConfirmationDialog(),this.renderSubmissionStateDialog())}static get watchers(){return{activePrimaryCategoryId:[{resetSelectedPrimaryCards:0}],activeSecondaryCategoryId:[{resetSelectedSecondaryCards:0}]}}};y.style='@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-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;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{display:block;--b2b-cart-offset-top:0px}.light{--b2b-text-color:var(--tc-text-primary);--b2b-text-color-secondary:var(--tc-text-secondary);--b2b-background-color:var(--tc-layer-primary);--b2b-icon-background-color:var(--tc-layer-secondary);--b2b-icon-pressed-background-color:var(--tc-layer-quaternary);--b2b-box-shadow:var(--tc-elevation-one);--b2b-border-color:var(--tc-border-quaternary);--b2b-summary-block-color:var(--tc-layer-secondary);--b2b-summary-accent-color:var(--tc-yellow-20);--b2b-confirmation-dialog-icon-color:var(--tc-yellow-40);--b2b-success-dialog-icon-color:var(--tc-green-40)}.dark{--b2b-text-color:var(--tc-text-primary-dark);--b2b-text-color-secondary:var(--tc-text-secondary-dark);--b2b-background-color:var(--tc-layer-primary-dark);--b2b-icon-background-color:var(--tc-layer-secondary-dark);--b2b-icon-pressed-background-color:var(--tc-layer-quaternary-dark);--b2b-box-shadow:var(--tc-elevation-one-dark);--b2b-border-color:var(--tc-border-quaternary-dark);--b2b-summary-block-color:var(--tc-layer-secondary-dark);--b2b-summary-accent-color:var(--tc-grey-20-dark);--b2b-confirmation-dialog-icon-color:var(--tc-yellow-40-dark);--b2b-success-dialog-icon-color:var(--tc-green-40-dark)}button.button-reset{background:none;border:none;padding:0;color:inherit;text-align:inherit}.placeholder{--placeholder-animation-speed:5s}.configurator{display:flex;gap:1rem;flex-direction:column;color:var(--b2b-text-color)}@media screen and (min-width: 64rem){.configurator{gap:1.5rem;flex-direction:row;align-items:flex-start}}.offer{border-radius:1rem;height:fit-content;flex:0 0 calc(70% - 0.75rem);background-color:var(--b2b-background-color);box-shadow:var(--b2b-box-shadow)}.offer__block{--accordion-header-padding:1rem;--accordion-header-mobile-padding:1rem;--accordion-header-font:600 1.25rem/1.5rem Gilroy, Gilroy, Arial, sans-serif;--accordion-header-mobile-font:600 1.25rem/1.5rem Gilroy, Gilroy, Arial, sans-serif}.offer__block:first-child{--accordion-border-radius:1rem 1rem 0 0;--accordion-outer-border:var(--b2b-border-color)}.offer__block:last-child{--accordion-border-radius:0 0 1rem 1rem;--accordion-border-bottom-width:0}@media screen and (min-width: 64rem){.offer__block{--accordion-header-padding:1.5rem;--accordion-header-font:600 1.75rem/2rem Gilroy, Gilroy, Arial, sans-serif}}.offer__content{overflow:hidden;padding:1.5rem 1rem;display:flex;flex-direction:column;gap:0.75rem;border-color:var(--b2b-border-color);border-top-style:solid;border-top-width:0.0625rem}@media screen and (min-width: 48rem){.offer__content{padding:1.5rem}}@media screen and (min-width: 64rem){.offer__content{flex-direction:row;gap:1.5rem;padding-bottom:2.5rem}}.offer__navigation{margin:0 -1.5rem;flex:0 0 30%}@media screen and (min-width: 64rem){.offer__navigation{max-width:20.5rem;margin:0}}.offer__cards{flex:1 1 0%}.offer__cards-header{padding:0.5rem 0 0.75rem 0;display:flex;gap:0.5rem;justify-content:space-between;align-items:center}@media screen and (min-width: 64rem){.offer__cards-header{padding:1rem 0}}.offer__cards-list{display:flex;flex-direction:column;gap:1rem}.offer__cards-title{flex:auto;font:600 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}@media screen and (min-width: 64rem){.offer__cards-title{font:600 1.25rem/1.5rem "Gilroy", "Gilroy, Arial, sans-serif"}}.compare__button{border-radius:50%;overflow:hidden;font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}@media screen and (min-width: 64rem){.compare__button{border-radius:0.125rem}}.compare__button:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s}.compare__button.dark: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}.compare__button:active{--b2b-icon-background-color:var(--b2b-icon-pressed-background-color)}.compare__text{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";display:none}@media screen and (min-width: 64rem){.compare__text{display:initial}}.compare__icon-wrapper{width:2.75rem;height:2.75rem;display:flex;justify-content:center;align-items:center;background-color:var(--b2b-icon-background-color);cursor:pointer}@media screen and (min-width: 64rem){.compare__icon-wrapper{display:none}}.compare__icon{--icon-size:1.5rem;--icon-container-display:flex}.cart{flex:0 0 calc(30% - 0.75rem);position:sticky}.cart--edit{bottom:-1px;top:calc(var(--b2b-cart-sticky-top) + var(--b2b-cart-offset-top))}@media screen and (min-width: 64rem){.cart--edit{max-width:calc(30% - 0.75rem)}}.cart--empty{display:none}@media screen and (min-width: 64rem){.cart--empty{display:flex}}.cart__card-list{padding:0 1rem 1rem;display:flex;flex-direction:column;gap:0.5rem}.cart__cta{display:block;align-self:center;width:stretch;--button-width:100%}@media screen and (min-width: 48rem){.cart__cta{align-self:flex-end;width:unset;--button-width:auto}}.action-dialog{display:flex;flex-direction:column;gap:0.5rem;align-items:center;margin-bottom:1.5rem}.action-dialog--loading{--dialog-footer-border-color:transparent}.action-dialog__title{text-align:center;font:600 1.5rem/1.75rem "Gilroy", "Gilroy, Arial, sans-serif"}.action-dialog__description{text-align:center;font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}.action-dialog__icon{--icon-size:3rem}.action-dialog__attention-icon{--icon-color:var(--b2b-confirmation-dialog-icon-color)}.action-dialog__success-icon{--icon-color:var(--b2b-success-dialog-icon-color)}.action-dialog__footer{display:flex;flex-direction:column;justify-content:space-between;flex:auto;gap:1rem}@media screen and (min-width: 31.25rem){.action-dialog__footer{flex-direction:row}}.action-dialog__button{--button-width:100%}.action-dialog__button-text{white-space:nowrap}';export{y as tet_b2b_configurator}
1
+ import{r as t,c as e,e as o,h as r,H as i}from"./p-CO8AyGrA.js";import{e as a,A as n}from"./p-BCewZzcy.js";import{f as s}from"./p-B_N3UuP2.js";import{c}from"./p-WCtqtcml.js";import{t as l}from"./p-1Pg6Bg5R.js";import"./p-CaZKtSyx.js";const{state:d,set:f,get:m}=c({data:[],cart:new Map,productDetails:new Map}),h=t=>{const e=new Map(d.cart);e.delete(t),f("cart",e)},u=()=>{const t=m("cart"),e=m("productDetails"),o={};for(const[r,i]of t.entries())o[e.get(r)?.name||r]=i;return o},y=class{constructor(o){t(this,o),this.compareLinkClick=e(this,"compareLinkClick"),this.b2bConfiguratorSubmit=e(this,"b2bConfiguratorSubmit"),this.successCloseClick=e(this,"successCloseClick")}get hostElement(){return o(this)}priceSuffix="€/mēn.";cartEl;confirmationDialogEl;submissionStateDialogEl;checkoutFormEl;primaryAccordionEl;secondaryAccordionEl;primaryNavEl;secondaryNavEl;referenceElement;isLoading=!0;itemToRemove=null;checkoutAttempted=!1;formState="success";activePrimaryCategoryId=null;resetSelectedPrimaryCards(){this.selectedPrimaryCards=[]}activeSecondaryCategoryId=null;resetSelectedSecondaryCards(){this.selectedSecondaryCards=[]}selectedPrimaryCards=[];selectedSecondaryCards=[];isDesktopResolution;theme="light";stickyRefEl="";compareLinkClick;b2bConfiguratorSubmit;successCloseClick;async componentWillLoad(){this.checkDesktopResolution(),this.referenceElement=this.stickyRefEl?document.querySelector(this.stickyRefEl):this.hostElement.parentElement}async componentDidLoad(){this.isLoading=!0,await(async t=>{const e="function"==typeof t?t():t,o=new Promise((t=>setTimeout(t,500))),[r]=await Promise.all([e,o]);return r})(this.fetchData),this.isLoading=!1,this.activePrimaryCategoryId=d.data.find((t=>"primary"===t.type))?.id||null,this.activeSecondaryCategoryId=d.data.find((t=>"secondary"===t.type))?.id||null,this.positionStickyCartEl()}onResize(){this.checkDesktopResolution(),this.positionStickyCartEl()}async setSubmitFormState(t){"validation-error"===t&&(this.submissionStateDialogEl.close(),this.checkoutFormEl.open()),this.formState=t}checkDesktopResolution=()=>{this.isDesktopResolution=window.innerWidth>=1024};fetchData=async()=>{(t=>{f("data",t);const e=new Map;for(const o of t)for(const t of o.products){const{type:r,name:i,id:a}=o,{name:{lv:n},description:{lv:s},amount:c,b2bConfiguratorProduct:l}=t;e.set(t.productCode,{name:n,description:s,amount:c,discountAmount:l.discountAmount,categoryType:r,categoryName:i,categoryId:a,b2bConfiguratorProduct:l})}f("productDetails",e)})(await(()=>{let t;try{t=new URL(a.b2bConfigurator).href}catch(t){return console.error(t),Promise.reject("B2B configurator endpoint URL generation failed.")}return(new n).setUrl(t).setErrorFallbackValue([]).execute()})())};renderPlaceholder=()=>{const t="dark"===this.theme;return[r("div",{class:"offer placeholder"},r("div",{style:{padding:this.isDesktopResolution?"1.5rem":"1rem"}},r("tet-placeholder",{class:"placeholder",height:this.isDesktopResolution?"2rem":"1.5rem",darkTheme:t})),r("div",{class:"offer__content"},r("tet-placeholder",{class:"placeholder offer__navigation",height:this.isDesktopResolution?"48rem":" 2.25rem",darkTheme:t,style:{margin:"0"}}),r("div",{class:"offer__cards"},r("div",{class:"offer__cards-list"},r("tet-placeholder",{class:"placeholder",height:"3rem",darkTheme:t}),r("tet-placeholder",{class:"placeholder",height:"10.25rem",darkTheme:t}),r("tet-placeholder",{class:"placeholder",height:"10.25rem",darkTheme:t}),r("tet-placeholder",{class:"placeholder",height:"10.25rem",darkTheme:t}),r("tet-placeholder",{class:"placeholder",height:"10.25rem",darkTheme:t}))))),r("div",{class:"cart cart--empty",style:{padding:"1.5rem 1rem 1rem","background-color":"var(--b2b-background-color)"}},r("tet-placeholder",{class:"placeholder",height:"12.75rem",darkTheme:t}))]};categoryClickHandler=t=>{const{id:e}=t.detail,o=this.getCategoryById(e);o&&("primary"===o.type?this.activePrimaryCategoryId=e:this.activeSecondaryCategoryId=e)};renderOffer=()=>{const t=[{name:l("components-b2b-offer-primary-title"),type:"primary"},{name:l("components-b2b-offer-secondary-title"),type:"secondary"}];return r("div",{class:{offer:!0,[`offer--${this.theme}`]:!0}},t.map((t=>{const e=d.data.filter((e=>e.type===t.type)).map((t=>{const{id:e,name:o,icon:r}=t;return{id:e,name:o,icon:r,selected:e===this.activePrimaryCategoryId||e===this.activeSecondaryCategoryId}}));return r("tet-accordion",{ref:e=>{"primary"===t.type?this.primaryAccordionEl=e:this.secondaryAccordionEl=e},key:t.type,class:"offer__block",isOpen:"primary"===t.type,header:t.name,withBorder:!0,theme:this.theme,transparentBackground:!0},r("div",{class:"offer__content"},r("div",{class:"offer__navigation"},r("tet-business-navigation",{ref:e=>{"primary"===t.type?this.primaryNavEl=e:this.secondaryNavEl=e},menuItems:e,theme:this.theme,"onMenu-click-event":this.categoryClickHandler})),this.renderCards(t.type)))})))};getCategoryById=t=>d.data.find((e=>e.id===t));onCompareLinkClick=t=>{const e=this.getCategoryById(t);e&&e.modalScreenId&&this.compareLinkClick.emit(e.modalScreenId)};handleCardSelected=(t,e)=>{const o=this.getCategoryById(e);if(!o)return;const{type:r,allowMultipleChoice:i}=o;if("primary"===r){if(this.selectedPrimaryCards.includes(t))return;this.selectedPrimaryCards=i?[...this.selectedPrimaryCards,t]:[t]}else{if(this.selectedSecondaryCards.includes(t))return;this.selectedSecondaryCards=i?[...this.selectedSecondaryCards,t]:[t]}};handleProductCountChanged=async(t,e)=>{const{cardId:o,count:r}=t.detail,i=this.getCategoryById(e);if(i&&d.cart.get(o)!==r){if(!r)return this.itemToRemove=o,void this.confirmationDialogEl.open();i.allowMultipleChoice||i.products.forEach((t=>t.productCode!==o&&h(t.productCode))),((t,e)=>{if(e<0)return;const o=new Map(d.cart);o.set(t,e),f("cart",o)})(o,r),this.isDesktopResolution&&(this.cartEl.changeBlockState(i.type,"open"),this.cartEl.changeBlockState("primary"===i.type?"secondary":"primary","close"))}};onConfirmationClose=()=>{this.itemToRemove=null};renderConfirmationDialog=()=>r("tet-dialog",{ref:t=>this.confirmationDialogEl=t,class:this.theme,closeOnOverlayClick:!1,onCloseDialog:this.onConfirmationClose,theme:this.theme},r("div",{class:"action-dialog"},r("tet-icon",{class:"action-dialog__icon action-dialog__attention-icon",name:"tc-attention"}),r("div",{class:"action-dialog__title"},l("components-b2b-item-remove-confirmation-title"))),r("div",{slot:"footer",class:"action-dialog__footer"},r("tet-button",{class:"action-dialog__button",type:"secondary",theme:this.theme,size:"large",onClick:()=>this.confirmationDialogEl.close()},l("components-b2b-item-remove-confirmation-decline")),r("tet-button",{class:"action-dialog__button",type:"primary",theme:this.theme,size:"large",iconName:"tc-trash",iconPosition:"left",onClick:()=>{h(this.itemToRemove),this.confirmationDialogEl.close()}},l("components-b2b-item-remove-confirmation-accept"))));resetState=()=>{f("cart",new Map),this.checkoutAttempted=!1,this.primaryAccordionEl.open(),this.secondaryAccordionEl.close()};renderSubmissionStateDialog=()=>{const t="loading"===this.formState,e=()=>{this.resetState(),this.successCloseClick.emit(),this.submissionStateDialogEl.close()},o=t?r("div",{class:"action-dialog"},r("tet-spinner",{theme:this.theme}),r("div",{class:"action-dialog__title"},l("components-b2b-loading-dialog-title")),r("div",{class:"action-dialog__description"},l("components-b2b-loading-dialog-description"))):[r("div",{class:"action-dialog"},r("tet-icon",{class:"action-dialog__icon action-dialog__success-icon",name:"tc-check-circle"}),r("div",{class:"action-dialog__title"},l("components-b2b-success-dialog-title")),r("div",{class:"action-dialog__description"},l("components-b2b-success-dialog-description"))),r("div",{slot:"footer",class:"action-dialog__footer"},r("tet-button",{class:"action-dialog__button",type:"secondary",theme:this.theme,size:"large",onClick:e},r("div",{class:"action-dialog__button-text"},l("components-b2b-success-dialog-close"))),r("tet-button",{class:"action-dialog__button",type:"primary",theme:this.theme,size:"large",onClick:()=>{this.resetState(),this.submissionStateDialogEl.close()}},r("div",{class:"action-dialog__button-text"},l("components-b2b-success-dialog-start-again"))))];return r("tet-dialog",{ref:t=>this.submissionStateDialogEl=t,class:{[this.theme]:!0,"action-dialog--loading":t},closeOnOverlayClick:!1,closeOnEscape:!t,hideCloseButton:t,theme:this.theme,onCloseDialog:"success"===this.formState?e:this.submissionStateDialogEl.close},o)};renderCards=t=>{const e="primary"===t?this.activePrimaryCategoryId:this.activeSecondaryCategoryId,o="primary"===t?this.selectedPrimaryCards:this.selectedSecondaryCards,i=this.getCategoryById(e),{modalScreenId:a,products:n=[]}=i||{},s=n.map((t=>{const{productCode:i,name:{lv:a},description:{lv:n},amount:s,b2bConfiguratorProduct:{discountAmount:c,selectionType:l,defaultValue:f,minValue:m,maxValue:h,translationKey:u},benefits:{lv:y},contracts:p}=t,b=!!t.attributes.find((t=>"isBestChoice"===t.key))?.value,g="single"===l?void 0:{defaultValue:f,minValue:m,maxValue:h,label:u},_={id:i,title:a,subtitle:n,isBestChoice:b,price:s,discountPrice:c,benefits:y.split("\n"),contract:p[0]?.contract,counterOptions:g},v=o.includes(i);return r("tet-b2b-compare-card",{options:_,theme:this.theme,key:i,isSelected:v,onSelectedChange:()=>this.handleCardSelected(i,e),count:d.cart.get(i),onCountChange:t=>this.handleProductCountChanged(t,e)})}));return r("div",{class:"offer__cards"},r("div",{class:"offer__cards-header"},r("div",{class:"offer__cards-title"},l("components-b2b-offer-product-list-title")),a&&r("button",{class:{"button-reset":!0,compare__button:!0,[`${this.theme}`]:!0},onClick:()=>{this.onCompareLinkClick(e)}},r("span",{class:{compare__text:!0,"tet-link":!0,[`${this.theme}`]:!0}},l("components-b2b-offer-compare-link-text")),r("div",{class:"compare__icon-wrapper"},r("tet-icon",{class:"compare__icon",name:"tc-info-circle-outline",theme:this.theme})))),r("div",{class:"offer__cards-list"},s))};handleCartProductCountChange=(t,e,o)=>{this.handleProductCountChanged({detail:{cardId:t,count:e}},o)};goToProduct=async(t,e)=>{const o=this.getCategoryById(t);o&&("primary"===o.type?(await this.primaryAccordionEl.open(),await this.primaryNavEl.selectMenuItem(t),this.primaryAccordionEl.scrollIntoView({behavior:"smooth"})):"secondary"===o.type&&(await this.secondaryAccordionEl.open(),await this.secondaryNavEl.selectMenuItem(t),this.secondaryAccordionEl.scrollIntoView({behavior:"smooth"})),setTimeout((()=>{this.handleCardSelected(e,t)}),0))};renderCartCardsList=t=>{const e=e=>{const o=d.cart.get(e),i=d.productDetails.get(e);if(void 0===o||!i)return null;const{name:a,amount:n,description:s,discountAmount:c,categoryName:f,categoryType:m,categoryId:h,b2bConfiguratorProduct:u}=i,y="primary"===m?s:f,{selectionType:p,term:b,minValue:g,maxValue:_,translationKey:v}=u;return r("tet-business-summary-card",{key:e,productName:a,price:n,productDescription:y,discountPrice:c,currency:this.priceSuffix,contractTerm:b,theme:this.theme,withStepper:"number"===p,value:o,minValue:g,maxValue:_,stepperLabel:l(v||""),context:t,onAmountChange:t=>this.handleCartProductCountChange(e,t.detail,h),onDeleteButtonClick:()=>this.handleCartProductCountChange(e,0,h),onEditButtonClick:()=>this.goToProduct(h,e)})};return["primary","secondary"].map((t=>{const o=[...d.cart].filter((([e])=>{const o=d.productDetails.get(e);return o&&o.categoryType===t})).map((([t])=>e(t)));return o.length?r("div",{class:"cart__card-list",slot:t},o):null}))};positionStickyCartEl=()=>{this.referenceElement&&(this.isDesktopResolution?this.hostElement.style.setProperty("--b2b-cart-sticky-top",`${this.referenceElement.offsetTop}px`):this.hostElement.style.removeProperty("--b2b-cart-sticky-top"))};renderCart=(t="edit")=>{const e=!d.cart.size;let o={primary:0,secondary:0},i={primary:0,secondary:0},a=0;for(const[t,e]of d.cart){const r=d.productDetails.get(t);r&&(o[r.categoryType]+=(r.discountAmount??r.amount)*e,i[r.categoryType]+=1,a+=r.amount*e)}const{primary:n,secondary:c}=o,f=n+c,m=a-f,{primary:h,secondary:u}=this.areProductsAddedToCart(),y="edit"===t&&this.checkoutAttempted&&!h,p="edit"===t&&this.checkoutAttempted&&!u,b={summaryAmount:s(f,{currency:""}),primaryAmount:s(n,{currency:""}),secondaryAmount:s(c,{currency:""}),primaryCount:i.primary,secondaryCount:i.secondary,summarySavings:s(m,{currency:""}),hasPrimaryNotification:y,hasSecondaryNotification:p},g="edit"===t?r("tet-button",{onClick:this.checkout,slot:"cta",class:"cart__cta",type:"primary",size:this.isDesktopResolution?"large":"medium",theme:this.theme},l("components-b2b-cart-cta-button-title")):null;return r("tet-b2b-configurator-cart",{ref:e=>"edit"===t?this.cartEl=e:null,context:t,class:{cart:!0,"cart--empty":e,[`cart--${t}`]:!0},data:b,theme:this.theme,isCartEmpty:e,isDesktopResolution:this.isDesktopResolution},this.renderCartCardsList(t),g)};areProductsAddedToCart=()=>{const t={primary:!1,secondary:!1};for(const[e,o]of d.cart){const o=d.productDetails.get(e);o&&(t[o.categoryType]=!0)}return t};checkout=()=>{this.checkoutAttempted=!0;const{primary:t,secondary:e}=this.areProductsAddedToCart();t&&e&&this.checkoutFormEl.open()};submit=({detail:t})=>{const e={cart:u(),contactInfo:t};this.formState="loading",this.b2bConfiguratorSubmit.emit(e),this.checkoutFormEl.close(),this.submissionStateDialogEl.open()};renderCheckoutForm=()=>r("tet-b2b-check-out-form",{ref:t=>this.checkoutFormEl=t,theme:this.theme,"onSubmit-check-out-form":this.submit},r("div",{slot:"cart"},this.renderCart("checkout")));render(){return r(i,{key:"8a7020fefe90c39115a645da5fd630aa263d6a12"},r("div",{key:"9e19c2fe4800f92db342767cf635271e9195212b",class:{configurator:!0,[`${this.theme}`]:!0}},this.isLoading?this.renderPlaceholder():d.data&&[this.renderOffer(),this.renderCart()]),this.renderCheckoutForm(),this.renderConfirmationDialog(),this.renderSubmissionStateDialog())}static get watchers(){return{activePrimaryCategoryId:[{resetSelectedPrimaryCards:0}],activeSecondaryCategoryId:[{resetSelectedSecondaryCards:0}]}}};y.style='@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-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;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{display:block;--b2b-cart-offset-top:0px}.light{--b2b-text-color:var(--tc-text-primary);--b2b-text-color-secondary:var(--tc-text-secondary);--b2b-background-color:var(--tc-layer-primary);--b2b-icon-background-color:var(--tc-layer-secondary);--b2b-icon-pressed-background-color:var(--tc-layer-quaternary);--b2b-box-shadow:var(--tc-elevation-one);--b2b-border-color:var(--tc-border-quaternary);--b2b-summary-block-color:var(--tc-layer-secondary);--b2b-summary-accent-color:var(--tc-yellow-20);--b2b-confirmation-dialog-icon-color:var(--tc-yellow-40);--b2b-success-dialog-icon-color:var(--tc-green-40)}.dark{--b2b-text-color:var(--tc-text-primary-dark);--b2b-text-color-secondary:var(--tc-text-secondary-dark);--b2b-background-color:var(--tc-layer-primary-dark);--b2b-icon-background-color:var(--tc-layer-secondary-dark);--b2b-icon-pressed-background-color:var(--tc-layer-quaternary-dark);--b2b-box-shadow:var(--tc-elevation-one-dark);--b2b-border-color:var(--tc-border-quaternary-dark);--b2b-summary-block-color:var(--tc-layer-secondary-dark);--b2b-summary-accent-color:var(--tc-grey-20-dark);--b2b-confirmation-dialog-icon-color:var(--tc-yellow-40-dark);--b2b-success-dialog-icon-color:var(--tc-green-40-dark)}button.button-reset{background:none;border:none;padding:0;color:inherit;text-align:inherit}.placeholder{--placeholder-animation-speed:5s}.configurator{display:flex;gap:1rem;flex-direction:column;color:var(--b2b-text-color)}@media screen and (min-width: 64rem){.configurator{gap:1.5rem;flex-direction:row;align-items:flex-start}}.offer{border-radius:1rem;height:fit-content;flex:0 0 calc(70% - 0.75rem);background-color:var(--b2b-background-color);box-shadow:var(--b2b-box-shadow)}.offer__block{--accordion-header-padding:1rem;--accordion-header-mobile-padding:1rem;--accordion-header-font:600 1.25rem/1.5rem Gilroy, Gilroy, Arial, sans-serif;--accordion-header-mobile-font:600 1.25rem/1.5rem Gilroy, Gilroy, Arial, sans-serif}.offer__block:first-child{--accordion-border-radius:1rem 1rem 0 0;--accordion-outer-border:var(--b2b-border-color)}.offer__block:last-child{--accordion-border-radius:0 0 1rem 1rem;--accordion-border-bottom-width:0}@media screen and (min-width: 64rem){.offer__block{--accordion-header-padding:1.5rem;--accordion-header-font:600 1.75rem/2rem Gilroy, Gilroy, Arial, sans-serif}}.offer__content{overflow:hidden;padding:1.5rem 1rem;display:flex;flex-direction:column;gap:0.75rem;border-color:var(--b2b-border-color);border-top-style:solid;border-top-width:0.0625rem}@media screen and (min-width: 48rem){.offer__content{padding:1.5rem}}@media screen and (min-width: 64rem){.offer__content{flex-direction:row;gap:1.5rem;padding-bottom:2.5rem}}.offer__navigation{margin:0 -1.5rem;flex:0 0 30%}@media screen and (min-width: 64rem){.offer__navigation{max-width:20.5rem;margin:0}}.offer__cards{flex:1 1 0%}.offer__cards-header{padding:0.5rem 0 0.75rem 0;display:flex;gap:0.5rem;justify-content:space-between;align-items:center}@media screen and (min-width: 64rem){.offer__cards-header{padding:1rem 0}}.offer__cards-list{display:flex;flex-direction:column;gap:1rem}.offer__cards-title{flex:auto;font:600 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}@media screen and (min-width: 64rem){.offer__cards-title{font:600 1.25rem/1.5rem "Gilroy", "Gilroy, Arial, sans-serif"}}.compare__button{border-radius:50%;overflow:hidden;font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}@media screen and (min-width: 64rem){.compare__button{border-radius:0.125rem}}.compare__button:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s}.compare__button.dark: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}.compare__button:active{--b2b-icon-background-color:var(--b2b-icon-pressed-background-color)}.compare__text{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";display:none}@media screen and (min-width: 64rem){.compare__text{display:initial}}.compare__icon-wrapper{width:2.75rem;height:2.75rem;display:flex;justify-content:center;align-items:center;background-color:var(--b2b-icon-background-color);cursor:pointer}@media screen and (min-width: 64rem){.compare__icon-wrapper{display:none}}.compare__icon{--icon-size:1.5rem;--icon-container-display:flex}.cart{flex:0 0 calc(30% - 0.75rem);position:sticky}.cart--edit{bottom:-1px;top:calc(var(--b2b-cart-sticky-top) + var(--b2b-cart-offset-top))}@media screen and (min-width: 64rem){.cart--edit{max-width:calc(30% - 0.75rem)}}.cart--empty{display:none}@media screen and (min-width: 64rem){.cart--empty{display:flex}}.cart__card-list{padding:0 1rem 1rem;display:flex;flex-direction:column;gap:0.5rem}.cart__cta{display:block;align-self:center;width:stretch;--button-width:100%}@media screen and (min-width: 48rem){.cart__cta{align-self:flex-end;width:unset;--button-width:auto}}.action-dialog{display:flex;flex-direction:column;gap:0.5rem;align-items:center;margin-bottom:1.5rem}.action-dialog--loading{--dialog-footer-border-color:transparent}.action-dialog__title{text-align:center;font:600 1.5rem/1.75rem "Gilroy", "Gilroy, Arial, sans-serif"}.action-dialog__description{text-align:center;font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}.action-dialog__icon{--icon-size:3rem}.action-dialog__attention-icon{--icon-color:var(--b2b-confirmation-dialog-icon-color)}.action-dialog__success-icon{--icon-color:var(--b2b-success-dialog-icon-color)}.action-dialog__footer{display:flex;flex-direction:column;justify-content:space-between;flex:auto;gap:1rem}@media screen and (min-width: 31.25rem){.action-dialog__footer{flex-direction:row}}.action-dialog__button{--button-width:100%}.action-dialog__button-text{white-space:nowrap}';export{y as tet_b2b_configurator}