@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,7 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class TetGrid {
3
3
  render() {
4
- return (h(Host, { key: '59fe01bb00cc5e92e6e55c8a8d8862d364eb1035' }, h("div", { key: '55e486ab300ec5682fdd4448dd82c22c9a30ac50', class: "variable-container" }, h("div", { key: '77c03760c181282f440b20f3d5151377194895ef', class: "container-title main" }, "Grid klase"), h("div", { key: '733bb06fb50f5999ab76ebb3cab414c5dfca44a1', class: "container-section" }, h("div", { key: '23bdfae1ca279b3c40db4ca175a3c295b29e73b9', class: "variable-name" }, h("div", { key: '4fbc43ad6f1e86d3b82c277325f44df8d85da3fa', class: "variable-part" }, "tet"), h("div", { key: '310f437317f36ec8d069b8d5f5616c69508aa4ec', class: "variable-part" }, "-grid")), h("div", { key: 'c555591f81b25ae723e882f241038afd5cdb9c1b', class: "variable-name" }, h("div", { key: '7e8a5b78f53bb17af397928fc7c01115d49aabeb', class: "variable-part" }, "tet-grid__cell")))), h("div", { key: '01e6da4746be265b2f36caeda6fa73db96ac88c2', class: "container-wrapper" }, h("div", { key: '5fc67fcf71b80805b4a67d9b1aab90a153b62226', class: "container-title" }, "Grida lietojumi"), h("div", { key: '72ed3611a8375ce72d242dc42032e83f9bef50ed', class: "container-comment" }, "Parent l\u012Bmen\u012B ir j\u0101b\u016Bt klasei tet-grid. Tad childam ir j\u0101b\u016Bt tet-grid__cell."), h("div", { key: 'fbe686bba87a9823e1d045982a7f201cbd292fb3', class: "container-comment" }, "Piemēram: <div class='tet-grid'><div class='tet-grid__cell'></div></div>"), h("div", { key: '801dff4be1ff69b523cb8f6d3660ce9875e7c1eb', class: "section" }, h("div", { key: '0f3f939b0c26eaa23e4376242a7a19acc7f0da99', class: "section-content" }, h("div", { key: 'd3f8c33cbc69da135a8e46752891a0fb112e7b95', class: "show-grid tet-grid" }, h("div", { key: '9e33159d160eecd1d82df1dc0a6fa14ee6260b75', class: "show-span tet-grid__cell--span-all" }, h("div", { key: '5d2dd7385b59df713c57d17a89e7bead07d267a3', class: "section-style" }, "Teksts pa visu gridu"), h("div", { key: '51c357ce46b8d44424b3dc7d92791c3a4d88ec19', class: "section-style-attribute" }, "tet-grid__cell--span-all")))), h("div", { key: '167f571d83d7f321786fba5becdf580e52b29393', class: "section-content" }, h("div", { key: '102036a2bf0f1365483347083dcc2b35e79e7619', class: "show-grid tet-grid" }, h("div", { key: 'a53cd772e28394c75cc4e5604c08ee04c152ea2c', class: "show-span tet-grid__cell--span-4" }, h("div", { key: '4352e19cd92825b7e8ad3ac6e2ee93ab19ccf23e' }, "Teksts pa 4 kolon\u0101m"), h("div", { key: 'c9c6b82a0101a6bad5a15871c4a064cb90258ac1', class: "section-style-attribute" }, "tet-grid__cell--span-4")))), h("div", { key: '836204652684c3ed788f9feab4b675c7cda3bd7d', class: "section-content" }, h("div", { key: '2ef490e04cb17f1a183dae42b25eea52cee30aa4', class: "show-grid tet-grid" }, h("div", { key: 'eb634b18efbdb4693d7aa62d053f676929af3aa1', class: "show-span tet-grid__cell--df-span-4 tet-grid__cell--lg-span-8" }, h("div", { key: '24daa33689a524eccea7f3b869b4f583c266c3c9' }, "Teksts pa 4 kolon\u0101m DF ekr\u0101na, pa 8 LG "), h("div", { key: '6d99a85c771b4f2050d953cc37afb99a9f8fafcd', class: "section-style-attribute" }, "tet-grid__cell--df-span-4 tet-grid__cell--lg-span-8")), h("div", { key: '3a8946451b3cc9013ab0f5f7cf775643bc98fc9f', class: "show-span tet-grid__cell--df-span-4 tet-grid__cell--lg-span-4" }, h("div", { key: 'c1ba5e2a28f405798ed1fdf1fd07ff084d7a0696' }, "Teksts pa 4 kolon\u0101m DF ekr\u0101na, pa 4 LG "), h("div", { key: '3d8153adbdc9dee2f7710059d02092ac0f74fc8d', class: "section-style-attribute" }, "tet-grid__cell--df-span-4 tet-grid__cell--lg-span-4")))), h("div", { key: 'deba018e154e4ad31885b2f6a00ba897313930d2', class: "section-content" }, h("div", { key: 'fcc226000f619416bc4563ec6c0ccd231424efce', class: "show-grid tet-grid" }, h("div", { key: '21307f35b86297719e02b1b17d18db9de2e479a1', class: "show-span tet-grid__cell--span-all" }, h("div", { key: '628a5a78ed9ee9a4529ed01f4588d06b99a7e632' }, "Tekstu, ko redzam visu laiku.", ' ', h("span", { key: '9c4ad3f6afa675c00660e84c2d855dd598693be2', class: "tet-grid__cell--hide tet-grid__cell--lg-show" }, "Redzam tikai pie LG izm\u0113ra")), h("div", { key: '48c23874749eb854a711906074cf08a3a2a8a2c0', class: "section-style-attribute" }, "tet-grid__cell--hide", h("span", { key: 'ece56a0da3e203caac48aba6678a878a6d9c3b45', class: "tet-grid__cell--hide tet-grid__cell--lg-show" }, "tet-grid__cell--lg-show"))))), h("div", { key: '1d3ab2cda06fa0cb33efdfdd246ac3c6b85f0d09', class: "section-content" }, h("div", { key: 'd2954e766efde0448c96a041b5d00411b95fd4c5', class: "show-grid tet-grid" }, h("div", { key: '4f7955dd6dbd3f1e71af1c502bcb470a282cf281', class: "show-span tet-grid__cell--span-2" }, h("div", { key: '8ac1078e630bf76a937fedbb8c765597a9996d52', class: "section-style-attribute" }, "tet-grid__cell--span-2")), h("div", { key: '1bff6d646f3c7399781ebebd8196f18c6a0904b1', class: "show-span tet-grid__cell--lg-span-8" }, h("div", { key: '806c97567ac5a436ac77b617de4067001788a824' }, "Teksts ir pa 8 kolon\u0101m un tam ir 2 kolon\u0101s robe\u017Ea no ab\u0101m pus\u0113m"), h("div", { key: '0a94a2d34db62443bdd1bf80f3eb573e064c485e', class: "section-style-attribute" }, "tet-grid__cell--lg-span-8")), h("div", { key: '94ca1f4066a566184e640868064fa0bbb456bf55', class: "show-span tet-grid__cell--span-2" }, h("div", { key: '7a84cc85036f82545fcae986b981abaffa04a69e', class: "section-style-attribute" }, "tet-grid__cell--span-2")))))), h("div", { key: '6e4ec9ef4c732f1b0e03a9624aefbf0e623abcdf', class: "container-wrapper" }, h("div", { key: 'b1299e831d049e2184d9f0752a151f5f36dd5213', class: "container-title" }, "1920px breakpoint"), h("div", { key: '497ef60878312c693dd770551ea1768548ec002c', class: "container-comment" }, "Pievienojot papildus klasi", ' ', h("strong", { key: 'a860a5db5a0905659957ccf92a9ebdbb6212a5d1' }, h("i", { key: '9459993d8ad653709032410b6e011b8d733045c6' }, " tet-grid--gg")), ", tiek iesp\u0113jots elementa maksim\u0101lais platums l\u012Bdz 1920px."), h("div", { key: 'e88435c2c68e82afd2c17b976c98af77456d9829', class: "container-comment" }, "Piemēram: <div class='tet-grid tet-grid--gg'><div class='tet-grid__cell'></div></div>"), h("div", { key: '67627e19616bd6843b048bd01ea439b2f6704568', class: "section" }, h("div", { key: 'deaef5a143a62c768ba86df5ae5e76c62aa8b8c0', class: "section-content" }, h("div", { key: '16eb84c917556320c72995e354835e2fbabc72a4', class: "show-grid tet-grid tet-grid--gg" }, h("div", { key: 'ac478b4a8689569dbb845f67b9f5538a94657561', class: "show-span tet-grid__cell--span-2" }, h("div", { key: '331a32683d0311ec71be8b38cfc73420adbf34c8', class: "section-style-attribute" }, "tet-grid__cell--span-2")), h("div", { key: 'fadd3782405bd4305947fb1e09158b6bf1a9c1f7', class: "show-span tet-grid__cell--lg-span-8" }, h("div", { key: 'de7b529a9b1278aeee7b3dee7d1feac5efee6ee7' }, "Teksts ir pa 8 kolon\u0101m un tam ir 2 kolon\u0101s robe\u017Ea no ab\u0101m pus\u0113m"), h("div", { key: '7ba00d7d9645a641d4178f792e0f732f96de9e43', class: "section-style-attribute" }, "tet-grid__cell--lg-span-8"), h("div", { key: 'bb99594d3ca9d477e760d7ac94ffc9ebbed35560', class: "tet-grid tet-grid--gg" }, h("div", { key: 'f87c86013b6f849c441b727e9285c34fb5485778', class: "tet-grid__cell--span-all tet-grid__cell--hide tet-grid__cell--gg-show tet-spacing__xl--mt" }, h("div", { key: 'f8c783adbe1f84b3b39d6378708471d89964a7cc' }, "\u0160is teksts ir redzams tikai no 1920px platuma."), h("div", { key: '977f354f7cbbf9c71b4705cc973a2ea912f69625', class: "section-style-attribute" }, "tet-grid__cell--lg-span-12"), h("div", { key: 'a260618e243ea46d62a8368bd4c59a66b57d5d0d', class: "section-style-attribute" }, "tet-grid__cell--hide"), h("div", { key: '5d68a35e3147ac40ff547788bc027740ac469b90', class: "section-style-attribute" }, "tet-grid__cell--gg-show")))), h("div", { key: '707bf1cf438b1c198a2da95a5e4a1da185a4ec74', class: "show-span tet-grid__cell--span-2" }, h("div", { key: 'c8287f5a7bf6ddf6728f32163325086ab7a50575', class: "section-style-attribute" }, "tet-grid__cell--span-2"))))))));
4
+ return (h(Host, { key: '1adc0eb4e572980748bdc291e966f2d0f54f2f35' }, h("div", { key: '68731eb5ce8719ce4491d40d97e2fb1b0906a5d5', class: "variable-container" }, h("div", { key: 'e523111f9685aca023201fe3fef2d28500d8a249', class: "container-title main" }, "Grid klase"), h("div", { key: 'ae6fdd12b7aeab1a49704971d1ea29f958726838', class: "container-section" }, h("div", { key: 'ae14750f366da734a818924d32181c1663974716', class: "variable-name" }, h("div", { key: '8171824da89a519372576b80818e735487abc1ce', class: "variable-part" }, "tet"), h("div", { key: 'd503dc9901c177bb99e93575bd0c910b79874339', class: "variable-part" }, "-grid")), h("div", { key: 'b710d1ab624631d7f85c06622ca92835d27fe0dd', class: "variable-name" }, h("div", { key: 'b5fe53697de6a0700096a65992147cc08d9a7615', class: "variable-part" }, "tet-grid__cell")))), h("div", { key: '5221cc65603938531c14aa33a156d44dde056e1a', class: "container-wrapper" }, h("div", { key: 'ace62b735ab5e84d9e8ebaa7888a27d898d1d33a', class: "container-title" }, "Grida lietojumi"), h("div", { key: '38cb34ff99e2d8ebef1e6b2facea0dad44521a72', class: "container-comment" }, "Parent l\u012Bmen\u012B ir j\u0101b\u016Bt klasei tet-grid. Tad childam ir j\u0101b\u016Bt tet-grid__cell."), h("div", { key: 'c70bbfdccb6e0bcd669d3c0928a2bcff55f22e4e', class: "container-comment" }, "Piemēram: <div class='tet-grid'><div class='tet-grid__cell'></div></div>"), h("div", { key: '2120b6c0b239bb4073b7700ee7b5188d7af92f71', class: "section" }, h("div", { key: 'd264ba741fbf6ccee3cf50a1ab8b29fd70edd58a', class: "section-content" }, h("div", { key: '89a39965fb713669c681d27af46e2599fe61846f', class: "show-grid tet-grid" }, h("div", { key: 'b80fb08402e4022a042fbc476fa34528cb004ec2', class: "show-span tet-grid__cell--span-all" }, h("div", { key: 'a317f8052cbfe08bd5579618a3fd0274ee9f608b', class: "section-style" }, "Teksts pa visu gridu"), h("div", { key: 'dd2545b3d5e8e06a156279cb25bfb933a777ee0b', class: "section-style-attribute" }, "tet-grid__cell--span-all")))), h("div", { key: '470c6fa7da40f2c2938cecd12c19d034d3574ab2', class: "section-content" }, h("div", { key: 'e333fd7609c96272fb39c024aee4a10b8828b1ef', class: "show-grid tet-grid" }, h("div", { key: 'bd9deda5c52ba870361a2b17b0a158e3ae953e57', class: "show-span tet-grid__cell--span-4" }, h("div", { key: 'b0e1b92f1126f43554c6ad13bd56787a62d83e5e' }, "Teksts pa 4 kolon\u0101m"), h("div", { key: '0c476d555dec0da19c5e85a0384eec7280bfe60f', class: "section-style-attribute" }, "tet-grid__cell--span-4")))), h("div", { key: '10812dc3a32cd78b9b05079a42a648026aa6cec1', class: "section-content" }, h("div", { key: '1460461ff8f64d9e887a799518f27704ced9f5d3', class: "show-grid tet-grid" }, h("div", { key: '3cdf568ce56daa0b23cfecb17929b3f6f3a65f53', class: "show-span tet-grid__cell--df-span-4 tet-grid__cell--lg-span-8" }, h("div", { key: '676adffdb50d6c10dd389f22769c1626dc5e20ec' }, "Teksts pa 4 kolon\u0101m DF ekr\u0101na, pa 8 LG "), h("div", { key: '75f94a17c6a40e0086368cb371d62e8c6f22b81f', class: "section-style-attribute" }, "tet-grid__cell--df-span-4 tet-grid__cell--lg-span-8")), h("div", { key: 'b50339b2592ef8236a6a022775bf3a0ac5d9cc33', class: "show-span tet-grid__cell--df-span-4 tet-grid__cell--lg-span-4" }, h("div", { key: 'f5defc0a0b44d27d623d3aae3455f82a354ecba9' }, "Teksts pa 4 kolon\u0101m DF ekr\u0101na, pa 4 LG "), h("div", { key: '7d9551e8ec21142d7b78a1fdf649dfa752330c4c', class: "section-style-attribute" }, "tet-grid__cell--df-span-4 tet-grid__cell--lg-span-4")))), h("div", { key: 'cc721f1904c8dc518af307006a43e16be1d233b1', class: "section-content" }, h("div", { key: '8612c7a33bd36d6326e147c642f04a51c00ae26d', class: "show-grid tet-grid" }, h("div", { key: 'ec19b60ff2a2d6d7baf9ea0e9e041bab3a56e589', class: "show-span tet-grid__cell--span-all" }, h("div", { key: 'd0916105315c90a35d334b71dee0f9c73a012ec7' }, "Tekstu, ko redzam visu laiku.", ' ', h("span", { key: '023a5437db5bee69625f8097786b751ff8b77b8d', class: "tet-grid__cell--hide tet-grid__cell--lg-show" }, "Redzam tikai pie LG izm\u0113ra")), h("div", { key: 'be8e457df96ecf3affe231484cfcd3b5cf2ca6f8', class: "section-style-attribute" }, "tet-grid__cell--hide", h("span", { key: '9a9814ce8516f945304e9919aefdb287b97a9c1f', class: "tet-grid__cell--hide tet-grid__cell--lg-show" }, "tet-grid__cell--lg-show"))))), h("div", { key: 'c752d159f3fe8effc87a37dddb875bcd21e9d4bd', class: "section-content" }, h("div", { key: 'adbeeae438504a47e08eb2a651ce78979b536e9f', class: "show-grid tet-grid" }, h("div", { key: '70f7b19b6fad7d96ca8b51cc3a3244bebcd3dd30', class: "show-span tet-grid__cell--span-2" }, h("div", { key: '5c2644d0f8f43c7bff8136ff70b295468b26cd1a', class: "section-style-attribute" }, "tet-grid__cell--span-2")), h("div", { key: '471d39cb1580cb920e5c67ee12a65e472179e2cb', class: "show-span tet-grid__cell--lg-span-8" }, h("div", { key: 'b4fb432010a1e3f23ea71b51225962a194da91c9' }, "Teksts ir pa 8 kolon\u0101m un tam ir 2 kolon\u0101s robe\u017Ea no ab\u0101m pus\u0113m"), h("div", { key: '6dbc54aa55cf949f1846a918bda31c6921066264', class: "section-style-attribute" }, "tet-grid__cell--lg-span-8")), h("div", { key: '12b83bc245d6e66ade5d1f2eba9983d213395c6b', class: "show-span tet-grid__cell--span-2" }, h("div", { key: 'c26633439a55ee3fcd363b2b210560b0d45aa016', class: "section-style-attribute" }, "tet-grid__cell--span-2")))))), h("div", { key: '05e5574e18c3d10258de5757464fd53933968729', class: "container-wrapper" }, h("div", { key: '6de651537631023d6a1482293cbbe69a60bbde91', class: "container-title" }, "1920px breakpoint"), h("div", { key: 'a966b078e8824bc57571be98fabe70a0135fd119', class: "container-comment" }, "Pievienojot papildus klasi", ' ', h("strong", { key: 'c58f07e5cbf3b77040e6a33c1ec1565962858cc0' }, h("i", { key: 'e704a0bcf26f741c28f27f613117845c995e9511' }, " tet-grid--gg")), ", tiek iesp\u0113jots elementa maksim\u0101lais platums l\u012Bdz 1920px."), h("div", { key: 'd487ca8d6963a4cd0a19eab34353e65e5bbb3aff', class: "container-comment" }, "Piemēram: <div class='tet-grid tet-grid--gg'><div class='tet-grid__cell'></div></div>"), h("div", { key: '71aa0039698e2b8b28fbbb9e2b9f7b714a7396a2', class: "section" }, h("div", { key: '1fdf415a36141a7606612ef0bd0714bb8710e1ed', class: "section-content" }, h("div", { key: '06cf13812db041f52897a50fec091a13f9a46e4e', class: "show-grid tet-grid tet-grid--gg" }, h("div", { key: 'df064ae289f6adb893099cd71845fd662ceeaf23', class: "show-span tet-grid__cell--span-2" }, h("div", { key: '5fa9f12e49d5df7b03d97cc40a1f8995a37dba2e', class: "section-style-attribute" }, "tet-grid__cell--span-2")), h("div", { key: '4dbce7fd0bcd7d8c0a93f1826bca4245d61e8e4a', class: "show-span tet-grid__cell--lg-span-8" }, h("div", { key: '5d5184b995a9640dd16954008d1bf4a937f6abe7' }, "Teksts ir pa 8 kolon\u0101m un tam ir 2 kolon\u0101s robe\u017Ea no ab\u0101m pus\u0113m"), h("div", { key: '5fc4c9d59b782ba024cc111c699f82054f7fb2e4', class: "section-style-attribute" }, "tet-grid__cell--lg-span-8"), h("div", { key: 'cdfbdb14d6cedce65ded280fe85430a261e0ab72', class: "tet-grid tet-grid--gg" }, h("div", { key: '61711a614f869d1eba7c897a7f9a56338e7c1153', class: "tet-grid__cell--span-all tet-grid__cell--hide tet-grid__cell--gg-show tet-spacing__xl--mt" }, h("div", { key: '128094499fdf5ecd2b364623c5516e5dc46407d7' }, "\u0160is teksts ir redzams tikai no 1920px platuma."), h("div", { key: '0bdf5157c6497ae502b3cd31faddfad09ef5e593', class: "section-style-attribute" }, "tet-grid__cell--lg-span-12"), h("div", { key: 'b250ba065a56c6be9df90cc399e700d16fe10040', class: "section-style-attribute" }, "tet-grid__cell--hide"), h("div", { key: '3a45f06db60631691953794312a42132e58e60eb', class: "section-style-attribute" }, "tet-grid__cell--gg-show")))), h("div", { key: '6e0205b856942190035d90c2fdedfd1f6fe9e69b', class: "show-span tet-grid__cell--span-2" }, h("div", { key: '3dfc05c3a8a88d22a92fc8c9e55831359cb3ceb6', class: "section-style-attribute" }, "tet-grid__cell--span-2"))))))));
5
5
  }
6
6
  static get is() { return "tet-grid"; }
7
7
  static get originalStyleUrls() {
@@ -9,6 +9,7 @@ import { getComponentData } from "./services/components/component-data";
9
9
  import { operations } from "./services/operations/operations";
10
10
  import { HttpCodes } from "./http-codes";
11
11
  import { AsyncApiRequestError } from "./errors/async-api-request-error";
12
+ export { tvProgram, TvProgramRequestError } from './services/tv/tv-program';
12
13
  export {
13
14
  // --- Services ---
14
15
  searchAddress, searchAddressByKey, requestTranslations, queryCustomer, customerAssets, productComparison, assemblerScenario, createCallCenterTask, getComponentData, operations,
@@ -0,0 +1,31 @@
1
+ import { endpoints } from "../../../../config/endpoints";
2
+ import { ApiRequest } from "../../request";
3
+ export class TvProgramRequestError extends Error {
4
+ status;
5
+ constructor(status) {
6
+ super(`TV program request failed with status ${status}.`);
7
+ this.status = status;
8
+ this.name = 'TvProgramRequestError';
9
+ }
10
+ }
11
+ /** Fetches channels and their schedules. Optional parameters use defaults. */
12
+ export async function tvProgram(query, signal) {
13
+ const url = new URL(endpoints.tvProgram);
14
+ for (const [key, value] of Object.entries(query)) {
15
+ if (value !== undefined) {
16
+ url.searchParams.set(key, String(value));
17
+ }
18
+ }
19
+ const response = await new ApiRequest()
20
+ .setUrl(url.href)
21
+ .setOptions({ method: 'GET', signal })
22
+ .execute(true);
23
+ if (!response.ok) {
24
+ throw new TvProgramRequestError(response.status);
25
+ }
26
+ const payload = await response.json();
27
+ if (!payload?.data) {
28
+ throw new TypeError('TV program response is missing data.');
29
+ }
30
+ return payload.data;
31
+ }
@@ -0,0 +1,7 @@
1
+ /** Formats a date as YYYY-MM-DD using the browser's local timezone. Defaults to today. */
2
+ export function formatLocalDate(date = new Date()) {
3
+ const year = date.getFullYear();
4
+ const month = String(date.getMonth() + 1).padStart(2, '0');
5
+ const day = String(date.getDate()).padStart(2, '0');
6
+ return `${year}-${month}-${day}`;
7
+ }
@@ -15,5 +15,6 @@ export { isFocusableElementOrChild } from './isFocusableElementOrChild';
15
15
  export { copyTextToClipboard } from './clipboard';
16
16
  export { innerTextFromHtml } from './inner-text-from-html';
17
17
  export { observeOnce } from './visibility-observer';
18
+ export { formatLocalDate } from './date';
18
19
  // Utility classes
19
20
  export { InertiaScroll } from './inertia-scroll';
@@ -1 +1 @@
1
- import{t}from"./p-Cdi7KDBd.js";export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-Cdi7KDBd.js";import{TetAccordion as o}from"./tet-accordion.js";import{TetAddressOffers as m}from"./tet-address-offers.js";import{TetAddressOffersFilters as e}from"./tet-address-offers-filters.js";import{TetAddressOffersFiltersProducts as i}from"./tet-address-offers-filters-products.js";import{TetAddressOffersV2 as p}from"./tet-address-offers-v2.js";import{TetAddressOffersView as f}from"./tet-address-offers-view.js";import{TetAddressOffersViewV2 as j}from"./tet-address-offers-view-v2.js";import{TetAddressSearch as c}from"./tet-address-search.js";import{TetAssembler as n}from"./tet-assembler.js";import{TetAssetAvailabilityAddresses as d}from"./tet-asset-availability-addresses.js";import{TetAutocomplete as l}from"./tet-autocomplete.js";import{TetAutocompleteDropdown as u}from"./tet-autocomplete-dropdown.js";import{TetAvailabilityContactForm as v}from"./tet-availability-contact-form.js";import{TetB2bCheckOutForm as k}from"./tet-b2b-check-out-form.js";import{TetB2bCompareCard as h}from"./tet-b2b-compare-card.js";import{TetB2bConfigurator as w}from"./tet-b2b-configurator.js";import{TetB2bConfiguratorCart as y}from"./tet-b2b-configurator-cart.js";import{TetBannerNav as x}from"./tet-banner-nav.js";import{TetBarGraph as E}from"./tet-bar-graph.js";import{TetBorderRadius as P}from"./tet-border-radius.js";import{TetBusinessCard as A}from"./tet-business-card.js";import{TetBusinessCompareCard as B}from"./tet-business-compare-card.js";import{TetBusinessNavigation as C}from"./tet-business-navigation.js";import{TetBusinessRoundStepper as D}from"./tet-business-round-stepper.js";import{TetBusinessSummaryCard as K}from"./tet-business-summary-card.js";import{TetButton as N}from"./tet-button.js";import{TetCardList as O}from"./tet-card-list.js";import{TetCarousel as q}from"./tet-carousel.js";import{TetCheckbox as z}from"./tet-checkbox.js";import{TetCloudApplicationFormDialog as F}from"./tet-cloud-application-form-dialog.js";import{TetCloudConfigurator as G}from"./tet-cloud-configurator.js";import{TetColors as H}from"./tet-colors.js";import{TetCompareCard as I}from"./tet-compare-card.js";import{TetCompareCardV2 as J}from"./tet-compare-card-v2.js";import{TetCompareCardV3 as L}from"./tet-compare-card-v3.js";import{TetCompareCards as M}from"./tet-compare-cards.js";import{TetCompareCardsTab as Q}from"./tet-compare-cards-tab.js";import{TetContainer as R}from"./tet-container.js";import{TetCountdown as S}from"./tet-countdown.js";import{TetCounter as T}from"./tet-counter.js";import{TetDatepicker as U}from"./tet-datepicker.js";import{TetDatepickerHeader as V}from"./tet-datepicker-header.js";import{TetDatepickerMonthView as W}from"./tet-datepicker-month-view.js";import{TetDatepickerMultiYearView as X}from"./tet-datepicker-multi-year-view.js";import{TetDatepickerYearView as Y}from"./tet-datepicker-year-view.js";import{TetDialog as Z}from"./tet-dialog.js";import{TetDisplay as $}from"./tet-display.js";import{TetDivider as _}from"./tet-divider.js";import{TetDropdown as tt}from"./tet-dropdown.js";import{TetDynamicCard as rt}from"./tet-dynamic-card.js";import{TetExpandableInput as ot}from"./tet-expandable-input.js";import{TetExpansionPanel as mt}from"./tet-expansion-panel.js";import{TetFeedbackForm as et}from"./tet-feedback-form.js";import{TetFilter as st}from"./tet-filter.js";import{TetFloatingBlock as it}from"./tet-floating-block.js";import{TetFontWeight as pt}from"./tet-font-weight.js";import{TetFonts as ft}from"./tet-fonts.js";import{TetGrid as at}from"./tet-grid.js";import{TetIcon as jt}from"./tet-icon.js";import{TetInlineMessage as ct}from"./tet-inline-message.js";import{TetInput as nt}from"./tet-input.js";import{TetLayout as dt}from"./tet-layout.js";import{TetLink as lt}from"./tet-link.js";import{TetLinkCardList as ut}from"./tet-link-card-list.js";import{TetLoader as bt}from"./tet-loader.js";import{TetMenu as gt}from"./tet-menu.js";import{TetMenuMobile as vt}from"./tet-menu-mobile.js";import{TetMiniCompareCard as kt}from"./tet-mini-compare-card.js";import{TetMultiStepDialog as ht}from"./tet-multi-step-dialog.js";import{TetNavigationMobile as wt}from"./tet-navigation-mobile.js";import{TetNewsCard as yt}from"./tet-news-card.js";import{TetNewsCardList as xt}from"./tet-news-card-list.js";import{TetNotification as Et}from"./tet-notification.js";import{TetNumberInput as Pt}from"./tet-number-input.js";import{TetPaginator as At}from"./tet-paginator.js";import{TetPlaceholder as Bt}from"./tet-placeholder.js";import{TetPosition as Ct}from"./tet-position.js";import{TetPriceView as Dt}from"./tet-price-view.js";import{TetRadio as Kt}from"./tet-radio.js";import{TetRadioBlocks as Nt}from"./tet-radio-blocks.js";import{TetRangeSlider as Ot}from"./tet-range-slider.js";import{TetRoundStepper as qt}from"./tet-round-stepper.js";import{TetSelectionList as zt}from"./tet-selection-list.js";import{TetSnickerCard as Ft}from"./tet-snicker-card.js";import{TetSnickerCardGroup as Gt}from"./tet-snicker-card-group.js";import{TetSpacing as Ht}from"./tet-spacing.js";import{TetSpinner as It}from"./tet-spinner.js";import{TetStepperInput as Jt}from"./tet-stepper-input.js";import{TetStepperV3 as Lt}from"./tet-stepper-v3.js";import{TetStickyOffer as Mt}from"./tet-sticky-offer.js";import{TetSupportSearch as Qt}from"./tet-support-search.js";import{TetSwitch as Rt}from"./tet-switch.js";import{TetTabContent as St}from"./tet-tab-content.js";import{TetTabHeader as Tt}from"./tet-tab-header.js";import{TetTable as Ut}from"./tet-table.js";import{TetTag as Vt}from"./tet-tag.js";import{TetTagGroup as Wt}from"./tet-tag-group.js";import{TetText as Xt}from"./tet-text.js";import{TetTextList as Yt}from"./tet-text-list.js";import{TetTextarea as Zt}from"./tet-textarea.js";import{TetThankYouViewV3 as $t}from"./tet-thank-you-view-v3.js";import{TetTooltip as _t}from"./tet-tooltip.js";import{TetTvProgram as tr}from"./tet-tv-program.js";import{TetTvProgramChannelPicker as rr}from"./tet-tv-program-channel-picker.js";import{TetTvProgramDatePicker as or}from"./tet-tv-program-date-picker.js";const mr=r=>{"undefined"!=typeof customElements&&[o,m,e,i,p,f,j,c,n,d,l,u,v,k,h,w,y,x,E,P,A,B,C,D,K,N,O,q,z,F,G,H,I,J,L,M,Q,R,S,T,U,V,W,X,Y,Z,$,_,tt,rt,ot,mt,et,st,it,pt,ft,at,jt,ct,nt,dt,lt,ut,bt,gt,vt,kt,ht,wt,yt,xt,Et,Pt,At,Bt,Ct,Dt,Kt,Nt,Ot,qt,zt,Ft,Gt,Ht,It,Jt,Lt,Mt,Qt,Rt,St,Tt,Ut,Vt,Wt,Xt,Yt,Zt,$t,_t,tr,rr,or].forEach((o=>{customElements.get(t(o.is))||customElements.define(t(o.is),o,r)}))};export{mr as defineCustomElements}
1
+ import{t}from"./p-CWuhYFDW.js";export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-CWuhYFDW.js";import{TetAccordion as o}from"./tet-accordion.js";import{TetAddressOffers as m}from"./tet-address-offers.js";import{TetAddressOffersFilters as e}from"./tet-address-offers-filters.js";import{TetAddressOffersFiltersProducts as i}from"./tet-address-offers-filters-products.js";import{TetAddressOffersV2 as p}from"./tet-address-offers-v2.js";import{TetAddressOffersView as f}from"./tet-address-offers-view.js";import{TetAddressOffersViewV2 as j}from"./tet-address-offers-view-v2.js";import{TetAddressSearch as n}from"./tet-address-search.js";import{TetAssembler as c}from"./tet-assembler.js";import{TetAssetAvailabilityAddresses as d}from"./tet-asset-availability-addresses.js";import{TetAutocomplete as l}from"./tet-autocomplete.js";import{TetAutocompleteDropdown as u}from"./tet-autocomplete-dropdown.js";import{TetAvailabilityContactForm as v}from"./tet-availability-contact-form.js";import{TetB2bCheckOutForm as h}from"./tet-b2b-check-out-form.js";import{TetB2bCompareCard as k}from"./tet-b2b-compare-card.js";import{TetB2bConfigurator as w}from"./tet-b2b-configurator.js";import{TetB2bConfiguratorCart as y}from"./tet-b2b-configurator-cart.js";import{TetBannerNav as x}from"./tet-banner-nav.js";import{TetBarGraph as W}from"./tet-bar-graph.js";import{TetBorderRadius as E}from"./tet-border-radius.js";import{TetBusinessCard as P}from"./tet-business-card.js";import{TetBusinessCompareCard as A}from"./tet-business-compare-card.js";import{TetBusinessNavigation as C}from"./tet-business-navigation.js";import{TetBusinessRoundStepper as D}from"./tet-business-round-stepper.js";import{TetBusinessSummaryCard as F}from"./tet-business-summary-card.js";import{TetButton as Y}from"./tet-button.js";import{TetCardList as N}from"./tet-card-list.js";import{TetCarousel as O}from"./tet-carousel.js";import{TetCheckbox as q}from"./tet-checkbox.js";import{TetCloudApplicationFormDialog as z}from"./tet-cloud-application-form-dialog.js";import{TetCloudConfigurator as B}from"./tet-cloud-configurator.js";import{TetColors as G}from"./tet-colors.js";import{TetCompareCard as H}from"./tet-compare-card.js";import{TetCompareCardV2 as I}from"./tet-compare-card-v2.js";import{TetCompareCardV3 as J}from"./tet-compare-card-v3.js";import{TetCompareCards as K}from"./tet-compare-cards.js";import{TetCompareCardsTab as L}from"./tet-compare-cards-tab.js";import{TetContainer as M}from"./tet-container.js";import{TetCountdown as Q}from"./tet-countdown.js";import{TetCounter as R}from"./tet-counter.js";import{TetDialog as S}from"./tet-dialog.js";import{TetDisplay as T}from"./tet-display.js";import{TetDivider as U}from"./tet-divider.js";import{TetDropdown as V}from"./tet-dropdown.js";import{TetDynamicCard as X}from"./tet-dynamic-card.js";import{TetExpandableInput as Z}from"./tet-expandable-input.js";import{TetExpansionPanel as $}from"./tet-expansion-panel.js";import{TetFeedbackForm as _}from"./tet-feedback-form.js";import{TetFilter as tt}from"./tet-filter.js";import{TetFloatingBlock as rt}from"./tet-floating-block.js";import{TetFontWeight as ot}from"./tet-font-weight.js";import{TetFonts as mt}from"./tet-fonts.js";import{TetGrid as et}from"./tet-grid.js";import{TetIcon as st}from"./tet-icon.js";import{TetInlineMessage as it}from"./tet-inline-message.js";import{TetInput as pt}from"./tet-input.js";import{TetLayout as ft}from"./tet-layout.js";import{TetLink as at}from"./tet-link.js";import{TetLinkCardList as jt}from"./tet-link-card-list.js";import{TetLoader as nt}from"./tet-loader.js";import{TetMenu as ct}from"./tet-menu.js";import{TetMenuMobile as dt}from"./tet-menu-mobile.js";import{TetMiniCompareCard as lt}from"./tet-mini-compare-card.js";import{TetMultiStepDialog as ut}from"./tet-multi-step-dialog.js";import{TetNavigationMobile as bt}from"./tet-navigation-mobile.js";import{TetNewsCard as gt}from"./tet-news-card.js";import{TetNewsCardList as vt}from"./tet-news-card-list.js";import{TetNotification as ht}from"./tet-notification.js";import{TetNumberInput as kt}from"./tet-number-input.js";import{TetPaginator as wt}from"./tet-paginator.js";import{TetPlaceholder as yt}from"./tet-placeholder.js";import{TetPosition as xt}from"./tet-position.js";import{TetPriceView as Wt}from"./tet-price-view.js";import{TetRadio as Et}from"./tet-radio.js";import{TetRadioBlocks as Pt}from"./tet-radio-blocks.js";import{TetRangeSlider as At}from"./tet-range-slider.js";import{TetRoundStepper as Ct}from"./tet-round-stepper.js";import{TetSelectionList as Dt}from"./tet-selection-list.js";import{TetSnickerCard as Ft}from"./tet-snicker-card.js";import{TetSnickerCardGroup as Yt}from"./tet-snicker-card-group.js";import{TetSpacing as Nt}from"./tet-spacing.js";import{TetSpinner as Ot}from"./tet-spinner.js";import{TetStepperInput as qt}from"./tet-stepper-input.js";import{TetStepperV3 as zt}from"./tet-stepper-v3.js";import{TetStickyOffer as Bt}from"./tet-sticky-offer.js";import{TetSupportSearch as Gt}from"./tet-support-search.js";import{TetSwitch as Ht}from"./tet-switch.js";import{TetTabContent as It}from"./tet-tab-content.js";import{TetTabHeader as Jt}from"./tet-tab-header.js";import{TetTable as Kt}from"./tet-table.js";import{TetTag as Lt}from"./tet-tag.js";import{TetTagGroup as Mt}from"./tet-tag-group.js";import{TetText as Qt}from"./tet-text.js";import{TetTextList as Rt}from"./tet-text-list.js";import{TetTextarea as St}from"./tet-textarea.js";import{TetThankYouViewV3 as Tt}from"./tet-thank-you-view-v3.js";import{TetTooltip as Ut}from"./tet-tooltip.js";import{TetTvProgram as Vt}from"./tet-tv-program.js";import{TetTvProgramChannelPicker as Xt}from"./tet-tv-program-channel-picker.js";import{TetTvProgramDatePicker as Zt}from"./tet-tv-program-date-picker.js";import{TetTvProgramItem as $t}from"./tet-tv-program-item.js";import{TetTvProgramSchedule as _t}from"./tet-tv-program-schedule.js";const tr=r=>{"undefined"!=typeof customElements&&[o,m,e,i,p,f,j,n,c,d,l,u,v,h,k,w,y,x,W,E,P,A,C,D,F,Y,N,O,q,z,B,G,H,I,J,K,L,M,Q,R,S,T,U,V,X,Z,$,_,tt,rt,ot,mt,et,st,it,pt,ft,at,jt,nt,ct,dt,lt,ut,bt,gt,vt,ht,kt,wt,yt,xt,Wt,Et,Pt,At,Ct,Dt,Ft,Yt,Nt,Ot,qt,zt,Bt,Gt,Ht,It,Jt,Kt,Lt,Mt,Qt,Rt,St,Tt,Ut,Vt,Xt,Zt,$t,_t].forEach((o=>{customElements.get(t(o.is))||customElements.define(t(o.is),o,r)}))};export{tr as defineCustomElements}
@@ -1 +1 @@
1
- import{e as t,A as s}from"./p-Br4jWI9B.js";import{c as r}from"./p-Cef0hbKH.js";const a=t=>!!t&&"object"==typeof t&&!Array.isArray(t)&&Object.keys(t).length>0&&Object.values(t).every((t=>"string"==typeof t)),e="lv";class n{static instance;storageKey="translations";eTagsStorageKey="translation-etags";supportedLanguages=["lv","ru","en"];translations={};eTags={};mergedTranslations={};inFlightTranslations=new Map;constructor(){this.translations=this.getCachedTranslations(),this.eTags=this.getCachedEtags()}static getInstance(){return n.instance||(n.instance=new n),n.instance}getTranslations(){return this.mergedTranslations}updateTranslations=async(t,s)=>{const r=[this.loadTranslations(t,s)];s!==e&&r.push(this.loadTranslations(t,e)),await Promise.allSettled(r),this.mergedTranslations=this.mergeTranslations(s)};loadTranslations=(r,e)=>{if(!r||!e)return Promise.reject(`Missing translation parameters - group (${r}), language (${e}).`);if(!this.supportedLanguages.includes(e))return Promise.reject(`Translations language "${e}" is not supported.`);const n=`${r}:${e}`,i=this.inFlightTranslations.get(n);if(void 0!==i)return i;const o=(async(r,e,n)=>{let i;try{i=new URL(`${e}/${r}`,t.translations).href}catch(t){throw console.error(t),new Error("Translations endpoint URL generation failed.")}const o=(new s).setUrl(i).setOptions({method:"GET",cache:"no-cache",headers:n?{"If-None-Match":n}:void 0}),c=await o.execute(!0);if(304===c.status)return{notModified:!0};if(!c.ok)throw new Error(`Translations request failed with status ${c.status}.`);const h=(await c.json())?.data;if(!a(h))throw new Error("Translations response contains an invalid dictionary.");return{translations:h,eTag:c.headers.get("ETag")??void 0,notModified:!1}})(r,e,this.eTags[r]?.[e]).then((t=>{if(t.notModified){if(!this.translationsExist(r,e))throw new Error(`Translations response was not modified without cached data for group (${r}) and language (${e}).`)}else{if(!a(t.translations))throw new Error(`Invalid translations for group (${r}) and language (${e}).`);this.translations[r]||(this.translations[r]={}),this.translations[r][e]=t.translations,this.setETag(r,e,t.eTag),this.cacheTranslations()}})).finally((()=>this.inFlightTranslations.delete(n)));return this.inFlightTranslations.set(n,o),o};mergeTranslations=t=>{const s=this.getMergedTranslations(e);return t===e?s:{...s,...this.getMergedTranslations(t)}};getMergedTranslations=t=>{const s={};for(const r of Object.values(this.translations))Object.assign(s,r[t]??{});return s};translationsExist=(t,s)=>a(this.translations[t]?.[s]);getCachedTranslations=()=>{try{const t=JSON.parse(sessionStorage.getItem(this.storageKey)??"null");return this.isValidTranslationsCache(t)?t:{}}catch{return{}}};getCachedEtags=()=>{try{const t=JSON.parse(sessionStorage.getItem(this.eTagsStorageKey)??"null");return this.isValidETagsCache(t)?t:{}}catch{return{}}};setETag=(t,s,r)=>{this.eTags[t]||(this.eTags[t]={}),void 0!==r?this.eTags[t][s]=r:delete this.eTags[t][s]};cacheTranslations=()=>{try{sessionStorage.setItem(this.storageKey,JSON.stringify(this.translations))}catch{return}try{sessionStorage.setItem(this.eTagsStorageKey,JSON.stringify(this.eTags))}catch{}};isValidTranslationsCache=t=>!(!t||"object"!=typeof t||Array.isArray(t))&&Object.values(t).every((t=>!(!t||"object"!=typeof t||Array.isArray(t))&&Object.values(t).every((t=>a(t)))));isValidETagsCache=t=>!(!t||"object"!=typeof t||Array.isArray(t))&&Object.values(t).every((t=>!!t&&"object"==typeof t&&!Array.isArray(t)&&Object.values(t).every((t=>"string"==typeof t))))}const i=n.getInstance(),o=async(t,s)=>{await i.updateTranslations(t,s)},c=(t,s)=>{let a=i.getTranslations()[t.trim()]??t;return r(s)&&(a=h(a,s)),a},h=(t,s)=>{for(const[r,a]of Object.entries(s))t=t.replace(new RegExp(`{${r}}`,"g"),a);return t};export{o as p,c as t}
1
+ import{e as t,A as s}from"./p-Bdbn4prA.js";import{b as r}from"./p-_2UzwYR8.js";const a=t=>!!t&&"object"==typeof t&&!Array.isArray(t)&&Object.keys(t).length>0&&Object.values(t).every((t=>"string"==typeof t)),n="lv";class e{static instance;storageKey="translations";eTagsStorageKey="translation-etags";supportedLanguages=["lv","ru","en"];translations={};eTags={};mergedTranslations={};inFlightTranslations=new Map;constructor(){this.translations=this.getCachedTranslations(),this.eTags=this.getCachedEtags()}static getInstance(){return e.instance||(e.instance=new e),e.instance}getTranslations(){return this.mergedTranslations}updateTranslations=async(t,s)=>{const r=[this.loadTranslations(t,s)];s!==n&&r.push(this.loadTranslations(t,n)),await Promise.allSettled(r),this.mergedTranslations=this.mergeTranslations(s)};loadTranslations=(r,n)=>{if(!r||!n)return Promise.reject(`Missing translation parameters - group (${r}), language (${n}).`);if(!this.supportedLanguages.includes(n))return Promise.reject(`Translations language "${n}" is not supported.`);const e=`${r}:${n}`,i=this.inFlightTranslations.get(e);if(void 0!==i)return i;const o=(async(r,n,e)=>{let i;try{i=new URL(`${n}/${r}`,t.translations).href}catch(t){throw console.error(t),new Error("Translations endpoint URL generation failed.")}const o=(new s).setUrl(i).setOptions({method:"GET",cache:"no-cache",headers:e?{"If-None-Match":e}:void 0}),c=await o.execute(!0);if(304===c.status)return{notModified:!0};if(!c.ok)throw new Error(`Translations request failed with status ${c.status}.`);const h=(await c.json())?.data;if(!a(h))throw new Error("Translations response contains an invalid dictionary.");return{translations:h,eTag:c.headers.get("ETag")??void 0,notModified:!1}})(r,n,this.eTags[r]?.[n]).then((t=>{if(t.notModified){if(!this.translationsExist(r,n))throw new Error(`Translations response was not modified without cached data for group (${r}) and language (${n}).`)}else{if(!a(t.translations))throw new Error(`Invalid translations for group (${r}) and language (${n}).`);this.translations[r]||(this.translations[r]={}),this.translations[r][n]=t.translations,this.setETag(r,n,t.eTag),this.cacheTranslations()}})).finally((()=>this.inFlightTranslations.delete(e)));return this.inFlightTranslations.set(e,o),o};mergeTranslations=t=>{const s=this.getMergedTranslations(n);return t===n?s:{...s,...this.getMergedTranslations(t)}};getMergedTranslations=t=>{const s={};for(const r of Object.values(this.translations))Object.assign(s,r[t]??{});return s};translationsExist=(t,s)=>a(this.translations[t]?.[s]);getCachedTranslations=()=>{try{const t=JSON.parse(sessionStorage.getItem(this.storageKey)??"null");return this.isValidTranslationsCache(t)?t:{}}catch{return{}}};getCachedEtags=()=>{try{const t=JSON.parse(sessionStorage.getItem(this.eTagsStorageKey)??"null");return this.isValidETagsCache(t)?t:{}}catch{return{}}};setETag=(t,s,r)=>{this.eTags[t]||(this.eTags[t]={}),void 0!==r?this.eTags[t][s]=r:delete this.eTags[t][s]};cacheTranslations=()=>{try{sessionStorage.setItem(this.storageKey,JSON.stringify(this.translations))}catch{return}try{sessionStorage.setItem(this.eTagsStorageKey,JSON.stringify(this.eTags))}catch{}};isValidTranslationsCache=t=>!(!t||"object"!=typeof t||Array.isArray(t))&&Object.values(t).every((t=>!(!t||"object"!=typeof t||Array.isArray(t))&&Object.values(t).every((t=>a(t)))));isValidETagsCache=t=>!(!t||"object"!=typeof t||Array.isArray(t))&&Object.values(t).every((t=>!!t&&"object"==typeof t&&!Array.isArray(t)&&Object.values(t).every((t=>"string"==typeof t))))}const i=e.getInstance(),o=async(t,s)=>{await i.updateTranslations(t,s)},c=(t,s)=>{let a=i.getTranslations()[t.trim()]??t;return r(s)&&(a=h(a,s)),a},h=(t,s)=>{for(const[r,a]of Object.entries(s))t=t.replace(new RegExp(`{${r}}`,"g"),a);return t};export{o as p,c as t}
@@ -0,0 +1 @@
1
+ import{p as e,H as t,d as n,h as r,c as i,t as o}from"./p-CWuhYFDW.js";import{o as a}from"./p-DdqamPtp.js";import{d as s}from"./p-JrKx7ojI.js";const l="tv-channel-picker__list--dragging",c=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.channelSelected=n(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 e=this.renderedSelectedChannel!==this.selectedChannel,t=this.renderedLoading&&!this.loading;this.renderedSelectedChannel=this.selectedChannel,this.renderedLoading=this.loading,(e||t)&&this.centerChannel(),queueMicrotask((()=>this.updateScrollEdges())),this.observeChannelImages()}disconnectedCallback(){this.resizeObserver?.disconnect();for(const e of this.imageObservations.values())e();this.imageObservations.clear(),this.drag&&this.handlePointerEnd(this.drag.pointerId),this.suppressChannelClick=!1}onThemeChange(){this.visibleChannelIds=[];for(const e of this.imageObservations.values())e();this.imageObservations.clear()}onChannelsChange(){const e=new Set(this.channels.map((e=>e.id)));this.visibleChannelIds=this.visibleChannelIds.filter((t=>e.has(t))),this.channels.some((e=>e.id===this.selectedChannel))||(this.selectedChannel=this.channels[0]?.id),this.channels.some((e=>e.id===this.focusedChannel))||(this.focusedChannel=void 0)}async setChannel(e){const t=this.channels.find((t=>t.id===e))??this.channels[0];t?.id===this.selectedChannel?this.centerChannel():this.selectedChannel=t?.id}handlePointerDown(e){this.suppressChannelClick=!1,"mouse"===e.pointerType&&0===e.button&&this.channelList&&(this.drag={pointerId:e.pointerId,startX:e.clientX,scrollLeft:this.channelList.scrollLeft,active:!1})}handlePointerMove(e){const t=this.drag,n=this.channelList;if(!t||!n||e.pointerId!==t.pointerId)return;if(!(1&e.buttons))return void this.handlePointerEnd(e.pointerId);const r=e.clientX-t.startX;!t.active&&Math.abs(r)<5||(t.active||(t.active=!0,this.suppressChannelClick=!0,n.classList.add(l),n.setPointerCapture(e.pointerId)),e.preventDefault(),n.scrollLeft=t.scrollLeft-r)}handlePointerEnd(e){this.drag?.pointerId===e&&(this.drag=void 0,this.channelList?.classList.remove(l),this.channelList?.hasPointerCapture(e)&&this.channelList.releasePointerCapture(e))}handleChannelButtonClick(e,t){this.suppressChannelClick&&0!==t.detail||this.handleChannelClick(e)}handleChannelKeyDown(e,t){if(this.disabled||this.loading||e.altKey||e.ctrlKey||e.metaKey||!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;e.preventDefault();const n=this.channels.findIndex((e=>e.id===t.id)),r={ArrowLeft:n-1,ArrowRight:n+1,Home:0,End:this.channels.length-1}[e.key],i=n>=0?this.channels[r]:void 0;i&&(this.channelList?.querySelectorAll("button")[r]?.focus({preventScroll:!0}),this.centerChannel(i.id))}handleChannelFocus(e,t){this.focusedChannel=t.id,!this.drag&&e.currentTarget instanceof Element&&e.currentTarget.matches(":focus-visible")&&this.centerChannel(t.id)}handleFocusOut(e){const t=e.relatedTarget;t instanceof Node&&this.channelList?.contains(t)||(this.focusedChannel=void 0,this.centerChannel())}observeChannelImages(){const e=this.channelList;if(e){for(const[t,n]of this.imageObservations)e.contains(t)&&!this.visibleChannelIds.includes(t.dataset.channelId??"")||(n(),this.imageObservations.delete(t));for(const t of Array.from(e.querySelectorAll("button[data-channel-id]"))){const n=t.dataset.channelId;if(n&&!this.visibleChannelIds.includes(n)&&!this.imageObservations.has(t)&&t.querySelector("img")){const r=this.theme,i=a(t,(()=>{this.theme===r&&e.contains(t)&&!this.visibleChannelIds.includes(n)&&(this.visibleChannelIds=[...this.visibleChannelIds,n])}));this.imageObservations.set(t,i)}}}}updateScrollEdges(){const e=this.channelList;this.canScrollLeft=!!e&&e.scrollLeft>1,this.canScrollRight=!!e&&e.scrollWidth-e.clientWidth-e.scrollLeft>1}centerChannel(e=this.selectedChannel){const t=this.channelList,n=this.channels.findIndex((t=>t.id===e)),r=t?.querySelectorAll("button")[n];if(t&&r){const e=t.getBoundingClientRect(),n=r.getBoundingClientRect(),i=t.scrollLeft+(n.left-e.left-t.clientLeft)-(t.clientWidth-n.width)/2,o=Math.max(0,t.scrollWidth-t.clientWidth);t.scrollLeft=Math.max(0,Math.min(i,o))}}handleChannelClick(e){this.disabled||this.loading||(e.id!==this.selectedChannel?(this.selectedChannel=e.id,this.channelSelected.emit(e.id)):this.centerChannel())}renderChannelPlaceholders(){return Array.from({length:16},((e,t)=>r("li",{class:"tv-channel-picker__item",key:`loading-${t}`,"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((e=>{const t=this.selectedChannel===e.id,n="dark"===this.theme?e.imageSourceDark??e.imageSource:e.imageSource;return r("li",{class:"tv-channel-picker__item",key:e.id},r("button",{type:"button",class:"tv-channel-picker__button","data-channel-id":e.id,disabled:this.disabled,"aria-label":e.name,"aria-pressed":t?"true":"false",tabIndex:(this.focusedChannel??this.selectedChannel)===e.id?0:-1,onFocus:t=>this.handleChannelFocus(t,e),onClick:t=>this.handleChannelButtonClick(e,t),onKeyDown:t=>this.handleChannelKeyDown(t,e)},!n||this.failedImageSources.includes(n)?r("span",{class:"tv-channel-picker__fallback"},e.name):r("img",{class:"tv-channel-picker__image",src:this.visibleChannelIds.includes(e.id)?n:void 0,alt:"",draggable:!1,onError:()=>{this.failedImageSources.includes(n)||(this.failedImageSources=[...this.failedImageSources,n])}})),t&&r("div",{class:"tv-channel-picker__button-underline"}))}))}render(){return r(i,{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:e=>{this.channelList=e},onScroll:()=>this.updateScrollEdges(),onFocusout:e=>this.handleFocusOut(e),onPointerDown:e=>this.handlePointerDown(e),onPointerMove:e=>this.handlePointerMove(e),onPointerUp:e=>this.handlePointerEnd(e.pointerId),onPointerCancel:e=>this.handlePointerEnd(e.pointerId),onLostPointerCapture:e=>this.handlePointerEnd(e.pointerId)},this.loading?this.renderChannelPlaceholders():this.renderChannelButtons())))}static get watchers(){return{theme:[{onThemeChange:0}],channels:[{onChannelsChange:0}]}}static get style(){return'@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)}'}},[513,"tet-tv-program-channel-picker",{theme:[513],channels:[16],selectedChannel:[1025,"selected-channel"],disabled:[516],loading:[4],showGradients:[4,"show-gradients"],focusedChannel:[32],failedImageSources:[32],visibleChannelIds:[32],canScrollLeft:[32],canScrollRight:[32],setChannel:[64]},void 0,{theme:[{onThemeChange:0}],channels:[{onChannelsChange:0}]}]);function h(){"undefined"!=typeof customElements&&["tet-tv-program-channel-picker","tet-placeholder"].forEach((e=>{switch(e){case"tet-tv-program-channel-picker":customElements.get(o(e))||customElements.define(o(e),c);break;case"tet-placeholder":customElements.get(o(e))||s()}}))}export{c as T,h as d}
@@ -1 +1 @@
1
- import{A as s,e}from"./p-Br4jWI9B.js";const r=r=>{const o=e.serviceAvailabilityServices;return(new s).setUrl(o+"?addressKey="+r).setOptions({method:"GET"}).setErrorFallbackValue([]).execute()};export{r as s}
1
+ import{A as s,e}from"./p-Bdbn4prA.js";const r=r=>{const o=e.serviceAvailabilityServices;return(new s).setUrl(o+"?addressKey="+r).setOptions({method:"GET"}).setErrorFallbackValue([]).execute()};export{r as s}
@@ -1 +1 @@
1
- import{p as t,H as e,d as o,f as r,h as i,c as n,t as s}from"./p-Cdi7KDBd.js";import{s as a,o as l}from"./p-C61jDpta.js";import{s as c}from"./p-CgV4zAwQ.js";import{t as f,p as m}from"./p-B9bE6qY-.js";import{g as d}from"./p-BjOGAbQL.js";import{f as h}from"./p-B_N3UuP2.js";import{d as p}from"./p-B60jnxEn.js";import{d as g}from"./p-C-sZ3Bzu.js";import{d as u}from"./p-vu71OGLf.js";import{d as y}from"./p-DikHJHTd.js";import{d as b}from"./p-CDUvchOX.js";import{d as w}from"./p-Bsqoxd9G.js";import{d as x}from"./p-DnPS3TWn.js";import{d as k}from"./p-B1d6HEqd.js";import{d as v}from"./p-Lpb2mgqh.js";import{d as C}from"./p-nKvolHsW.js";var P;!function(t){t[t.TwentyFourMonth=24]="TwentyFourMonth",t[t.TwelveMonth=12]="TwelveMonth",t[t.SixMonth=6]="SixMonth",t[t.Indefinite=0]="Indefinite"}(P||(P={}));const _=[["isNetflixMaxDisneyProduct","components-netflix-max-disney-card-description"],["isNetflixDisneyProduct","components-netflix-disney-card-description"],["isMaxDisneyProduct","components-max-disney-card-description"],["isDisneyProduct","components-disney-card-description"],["isNetflixProduct","components-netflix-card-description"],["isNetflixMaxProduct","components-netflix-max-card-description"],["isMaxProduct","components-max-card-description"]],T=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.emptyCatalog=o(this,"emptyCatalog"),this.catalogChange=o(this,"catalogChange"),this.filtersChange=o(this,"filtersChange")}translationsGroup="tet-components";allowedProductsToShowInfo=["PD_TELCO_SUPER","PD_TELCO_SUPER_PACK_A","PD_TELCO_SUPER_PACK_B","PD_TELCO_SUPER_PACK_C","PD_TELCO_SUPER_PACK_D","PD_TELCO_PACKAGE_A","PD_TELCO_PACKAGE_B","PD_TELCO_PACKAGE_C","PD_TELCO_PACKAGE_D","PD_TELCO_NETFLIX_PACKAGE_A_ITV_SUPER","PD_TELCO_HBOMAX_IPTV_PACK_A","PD_TELCO_HBOMAX_IPTV_PACK_B","PD_TELCO_HBOMAX_IPTV_PACK_C","PD_TELCO_NETFLIX_PACKAGE_A_SUPER","PD_TELCO_HBOMAX_OTT_PACK_A_SUPER","PD_TELCO_HBOMAX_OTT_PACK_B_SUPER","PD_TELCO_HBOMAX_OTT_PACK_C_SUPER"];get element(){return this}addressKey;catalog;theme="light";darkMode=!1;termText;formParameters="";language="lv";allowedTvProductCodes=[];showLoader=!0;subcategoryProductFilters={};emptyCatalog;catalogChange;filtersChange;async onAddressKeyChange(){await this.loadCatalogData()}async onLanguageChanged(t){await m(this.translationsGroup,t),r(this)}handleFilteredProductsChanged(t){this.subcategoryProductFilters={...this.subcategoryProductFilters,[t.detail.subcategoryId]:t.detail.filteredProductIds}}async componentWillLoad(){await m(this.translationsGroup,this.language)}async componentDidLoad(){await this.loadCatalogData(),this.initFilterChangeEvent()}initFilterChangeEvent(){const t=a.availableFilters.map((t=>(t.title=f(t.title),t)));l("activeFilters",(()=>{this.filtersChange.emit({activeFilters:a.activeFilters,availableFilters:t})}))}async loadCatalogData(){this.showLoader=!0,a.availableFilters=[];try{const t=await c(this.addressKey);this.catalog=t,a.catalog=t,this.catalogChange.emit({catalog:t,activeFilters:a.activeFilters,availableFilters:a.availableFilters})}catch(t){this.emptyCatalog.emit()}a.catalog instanceof Array&&!a.catalog.length&&this.emptyCatalog.emit(),this.showLoader=!1}filterCategoryProducts=t=>{const e=this.subcategoryProductFilters[t.key]||[];if(e.length>0)return t.products.filter((t=>e.includes(t.productCode)));const{activeFilters:o}=a;return o.includes("promotions")?t.products.filter(this.productHasPromotion.bind(this)):t.products};translateProperty(t){return t?.[this.language]||""}showCategory=t=>{if(!0!==t.showInAvailabilityTool)return!1;if(t.subgroups?.length>0)return t.subgroups.some(this.showCategory);const{activeFilters:e}=a;return(!t.tag||["all",t.tag??""].some((t=>e.includes(t)))||e.includes("promotions")&&this.categoryContainsPromotions(t))&&this.categoryContainsContractTerms(t)&&this.filterCategoryProducts(t).length>0};categoryContainsPromotions({products:t=[]}){return t?.some((t=>this.productHasPromotion(t)))}productHasPromotion(t){return t?.contractTerms?.some((({promotionCode:t})=>t))}categoryContainsContractTerms({products:t=[]}){return t?.some((t=>this.productHasContractTerms(t)))}productHasContractTerms(t){return!!t?.contractTerms?.length}renderTopCategories(){return a.catalog?.structure?.filter(this.showCategory).map((t=>{const e=this.translateProperty(t.name);return i("section",{class:{category:!0,[`category--${this.theme}`]:!!this.theme,[this.theme]:!0}},e&&i("h2",{class:{"category-title":!0,[`category-title--${this.theme}`]:!!this.theme,[this.theme]:!0}},e),i("div",{class:{"category-subcategories":!0,[`category-subcategories--${this.theme}`]:!!this.theme,[this.theme]:!0}},this.renderSubCategories(t.subgroups||[],a.catalog?.meta)))}))}renderSubCategories(t,e){return t.filter(this.showCategory).map((t=>i("div",{class:"subcategory"},i("div",{class:"subcategory-header"},this.renderSubCategoryHeader(t)),t.hasProductTags&&i("div",{class:"subcategory-filters"},i("tet-address-offers-filters-products",{catalog:this.catalog,class:"center",language:this.language,clearFilterButton:!0,subcategoryId:t.key,onFilteredProductsChanged:t=>this.handleFilteredProductsChanged(t),category:t,theme:this.theme})),i("div",{class:"subcategory-products"},this.filterCategoryProducts(t).map((o=>this.renderProduct(o,t.theme,e)))))))}renderSubCategoryHeader=({displayTitle:t,name:e,landingPage:o,isOneTv:r})=>{const n=this.translateProperty(e),s=this.translateProperty(o);return[i("div",{class:{"subcategory-title":!0,[`subcategory-title--${this.theme}`]:!!this.theme,[this.theme]:!0}},r&&i("tet-icon",{name:"logo-tet-tv-plus",useDefaultColor:!0}),t&&n&&i("h3",{class:{[this.theme]:!!this.theme}},n)),s&&i("a",{class:{"subcategory-offers-link":!0,[`subcategory-offers-link--${this.theme}`]:!!this.theme,[this.theme]:!0},href:s,target:"_blank"},i("span",{class:{"subcategory-offers-link-text":!0,[`subcategory-offers-link-text--${this.theme}`]:!!this.theme,[this.theme]:!0}},f("components-address-offers-view-more-link"))," --\x3e")]};renderUpsellBlock(t,e,o){let r=e.find((t=>"sac-offers-light"===t.key));const n="dark"===this.theme;return n&&(r=e.find((t=>"sac-offers-dark"===t.key))),i("div",{class:"upsell-block"},i("div",{class:{"upsell-block--title":!0,dark:n}},f("components-max-sport-upsell-title")),i("div",{class:{"upsell-block--content":!0,dark:n}},i("img",{src:r.icon,alt:"",class:{"upsell-block--icon":!0},loading:"lazy"}),i("div",{class:{"upsell-block--name":!0,dark:n}},t),i("div",{class:{"upsell-block--amount":!0,dark:n}},"+",o," ",f("components-euro")),i("div",{class:{"upsell-block--tooltip":!0}},i("tet-icon",{class:"icon",name:"tc-info-circle",focusable:!0,theme:this.theme}),i("tet-tooltip",{theme:this.theme},f("components-max-sport-upsell-tooltip-info")))))}renderProduct(t,e="light",o){if(!this.getContractTerm(t))return;const r=t=>this.translateProperty(t),n=this.darkMode?"dark":"light",s=t.amount,a=this.getContractTermProperty(t,"amount"),l=this.getContractTermProperty(t,"showDiscount"),c=this.getContractTermProperty(t,"isAlwaysOn"),m=r(this.getContractTermProperty(t,"priceTooltip")),d=r(this.getContractTermProperty(t,"priceDescription")),p=this.getContractTermProperty(t,"contract"),g=this.getAttribute(t.attributes,"isBestChoice")?.value??!1;let u=null;if(this.getAttribute(t.attributes,"showMaxSportUpsell")?.value&&"hboMaxSport"===Object.keys(o)[0]){const t=Object.values(o)[0];u=this.renderUpsellBlock(t.name?t.name[this.language]:"",t.icons?t.icons:[],t.amount?t.amount:null)}let y=null;if(this.termText){const e=this.getContractTermProperty(t,"term");0!==e&&(y=this.termText.replace("%d",String(e))),this.getAttribute(t.attributes,"availabilityTermUnlimitedOverride")?.value&&(y=f("components-indefinite"))}let b=r(t.benefits);if(c||l){const e=r(this.getContractTermProperty(t,"benefits"));e&&(b=e)}const w=b?.split("\n").filter(Boolean),x=(t=>{const e=_.find((([e])=>t?.some((t=>t.key===e&&t.value))));return e?f(e[1]):null})(t.attributes),k={mainTitle:r(t.name),subTitle:this.getProductSubtitle(t),bestChoiceText:f("components-address-offers-best-choice"),infoItemIconName:"info-circle",infoItemTooltipContent:this.getProductInfoItem(t),bulletPoints:w,price:h(a??s,{currency:""}),oldPrice:l?h(s,{currency:""}):null,currency:f("components-euro-per-month"),priceInfoIconName:m?"info-circle":null,priceInfoTooltipContent:m||null,term:d,termText:y,helper:r(t.description),button:(v=f("components-address-offers-form-button-text"),C=this.getServiceApplicationFormUrl(t)+this.formParameters,`\n <a href="${C}" tabIndex="-1">\n <tet-button class="tet-button" style="--button-width: 10rem" theme="${n}" disabled="${!C}">\n ${v}\n </tet-button>\n </a>\n `),secondaryLink:p,secondaryLinkText:f("components-offers-contract-term-link"),secondaryLinkOpenBlank:!0,netflixProductDescription:x};var v,C;return i("tet-compare-card",{class:{product:!0,"best-choice":g},options:k,cardType:"wide60-40",minWideWidth:768,theme:e,bestChoice:g,cardList:!0,darkMode:this.darkMode},i("div",{slot:"upsell-block-slot"},u))}getProductSubtitle({productCode:t,technologySpeed:{max:e,min:o}}){if(this.allowedProductsToShowInfo.includes(t))return e&&o?f("components-max-speed-description-v2",{minSpeed:o,maxSpeed:e}):""}getProductInfoItem(t){const e=t?.bundleProducts?.split(","),o=e?.[1]??e?.[0],r=Object.values(a.catalog.structure[0].products).find((t=>t.productCode===o));if(this.allowedProductsToShowInfo.includes(t.productCode))return this.translateProperty(o?r.technologySpeed.description:t.technologySpeed.description)}getContractTermProperty(t,e){return this.getContractTerm(t)?.[e]??null}getContractTerm(t){return t.contractTerms?.find((t=>t.term===P.TwentyFourMonth))}getAttribute(t,e){return t?.find((t=>t.key===e))}getServiceApplicationFormUrl(t){const e=this.translateProperty(t.formUrl),o=this.getContractTermProperty(t,"promotionCode");let r={contractTerm:this.getContractTermProperty(t,"term")};o&&(r.promotion=o),r.addressKey=this.addressKey,r.product=t.productCode;const i=this.getAttribute(t.attributes,"availabilityFormUrlOverride")?.value??"";return i?i.toString():d(e,r)}renderLoader=()=>i("div",{class:"placeholder"},[...Array(2)].map((()=>i("div",{class:"placeholder-section"},i("tet-placeholder",{height:"3em",width:"40%",class:"placeholder-section-title",darkTheme:this.darkMode}),i("br",null),i("tet-placeholder",{height:"3em",width:"40%",class:"placeholder-subsection-title",darkTheme:this.darkMode}),i("br",null),i("tet-placeholder",{height:"1em",width:"20%",class:"placeholder-subsection-title",darkTheme:this.darkMode}),[...Array(3)].map((()=>[i("br",null),i("tet-placeholder",{height:"10em",darkTheme:this.darkMode})]))))));render(){return i(n,{key:"5f19251cf6673f69e65fb57d446b2befb915dc61"},this.showLoader?this.renderLoader():a.catalog&&this.renderTopCategories())}static get watchers(){return{addressKey:[{onAddressKeyChange:0}],language:[{onLanguageChanged:0}]}}static get style(){return':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{display:block;width:100%;max-width:53rem;margin:0 auto;padding:0 1rem}@media screen and (max-width: 48rem){:host{max-width:32rem}}@media only screen and (max-width: 44.9375rem){:host{padding:0 0.5rem}}*{color:rgb(10, 11, 13)}*.dark{color:var(--tc-text-primary-dark)}.category{font-family:var(--text-font);margin-bottom:7rem}@media screen and (max-width: 48rem){.category{margin-bottom:6rem}}@media only screen and (max-width: 44.9375rem){.category{margin-bottom:4rem}}.category-title{text-align:center;margin-bottom:1.5rem;font:600 3rem/3.25rem "Gilroy", "Gilroy, Arial, sans-serif"}@media screen and (max-width: 48rem){.category-title{font:600 2.5rem/3rem "Gilroy", "Gilroy, Arial, sans-serif"}}.category-subcategories{display:flex;flex-direction:column;gap:6.25rem}.tab-content div{box-sizing:border-box}@media screen and (max-width: 48rem){.tab-content div{max-width:32rem}}.tab-content div .subcategory-tab{width:100%;padding-bottom:1.5rem;display:flex;flex-direction:column;gap:1rem}.subcategory-header{margin-bottom:1.5rem;display:flex;flex-direction:column;gap:0.5rem}.subcategory-title{font:600 2rem/2.25rem "Gilroy", "Gilroy, Arial, sans-serif";display:flex;gap:1rem;align-items:center}.subcategory-title.dark{color:var(--tc-text-primary-dark)}@media screen and (max-width: 48rem){.subcategory-title{flex-direction:column;align-items:initial}}@media only screen and (max-width: 44.9375rem){.subcategory-title{font:600 1.75rem/2rem "Gilroy", "Gilroy, Arial, sans-serif"}}.subcategory-offers-link{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";max-width:fit-content;text-decoration:none}.subcategory-offers-link.dark{color:var(--tc-text-primary-dark)}.subcategory-offers-link-text{text-decoration:underline}.subcategory-offers-link-text.dark{color:var(--tc-text-primary-dark)}.subcategory-offers-link:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s;border-radius:0.125rem}.subcategory-products{display:flex;flex-direction:column;gap:1rem}.subcategory-filters{display:flex;justify-content:center;margin-top:1.5rem;margin-bottom:1.5rem}.product{width:100%}.product::part(compare-card-title-wrapper){border-bottom:none}@media screen and (max-width: 48rem){.product::part(compare-card-title-wrapper){margin-bottom:1rem;padding:0}}.product .upsell-block{display:flex;flex-direction:column}.product .upsell-block--title{margin-bottom:0.5rem;font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;color:var(--tc-text-secondary)}.product .upsell-block--title.dark{color:rgb(153, 160, 174)}.product .upsell-block--content{background:rgb(255, 255, 255);padding:0.75rem;display:flex;flex-direction:row;align-items:center;margin-bottom:1.5rem;border-radius:0.5rem}.product .upsell-block--content.dark{background:var(--tc-grey-minus-10-dark)}.product .upsell-block--icon{width:1.5rem;height:1.5rem;margin-right:0.75rem}.product .upsell-block--name{color:var(--tc-text-primary);font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;margin-right:auto}.product .upsell-block--name.dark{color:var(--tc-grey-110-dark)}.product .upsell-block--amount{color:var(--tc-text-primary);font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;background:var(--tc-background-secondary);border-radius:0.25rem;padding:0.125rem 0.25rem;margin-right:0.75rem}.product .upsell-block--amount.dark{background:var(--tc-grey-10-dark);color:var(--tc-grey-110-dark)}.product .upsell-block--tooltip{cursor:pointer}.placeholder-section{margin-bottom:2rem}.placeholder-section-title{margin:0 auto;--placeholder-animation-speed:4s}.placeholder-subsection-title{--placeholder-animation-speed:4s}.tab-header{margin-bottom:1.5rem;width:100%;max-width:24.375rem}@media screen and (max-width: 48rem){.tab-header{margin-bottom:2rem;width:100%;max-width:unset}}.header-switch .text-first{flex-direction:row;gap:0.5rem}@media screen and (max-width: 48rem){.header-switch{--tabs-headers-segmented-item-padding:0.5rem 0.75rem;--tabs-headers-segmented-item-margin:0.25rem 0;--tabs-headers-segmended-item-font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif}}'}},[513,"tet-address-offers",{addressKey:[8,"address-key"],catalog:[16],theme:[1],darkMode:[4,"dark-mode"],termText:[1,"term-text"],formParameters:[1,"form-parameters"],language:[1],allowedTvProductCodes:[16],showLoader:[32],subcategoryProductFilters:[32]},void 0,{addressKey:[{onAddressKeyChange:0}],language:[{onLanguageChanged:0}]}]);function A(){"undefined"!=typeof customElements&&["tet-address-offers","tet-address-offers-filters-products","tet-button","tet-checkbox","tet-compare-card","tet-dropdown","tet-icon","tet-placeholder","tet-tag","tet-tag-group","tet-tooltip"].forEach((t=>{switch(t){case"tet-address-offers":customElements.get(s(t))||customElements.define(s(t),T);break;case"tet-address-offers-filters-products":customElements.get(s(t))||p();break;case"tet-button":customElements.get(s(t))||g();break;case"tet-checkbox":customElements.get(s(t))||u();break;case"tet-compare-card":customElements.get(s(t))||y();break;case"tet-dropdown":customElements.get(s(t))||b();break;case"tet-icon":customElements.get(s(t))||w();break;case"tet-placeholder":customElements.get(s(t))||x();break;case"tet-tag":customElements.get(s(t))||k();break;case"tet-tag-group":customElements.get(s(t))||v();break;case"tet-tooltip":customElements.get(s(t))||C()}}))}export{T,A as d}
1
+ import{p as t,H as e,d as o,f as r,h as i,c as n,t as s}from"./p-CWuhYFDW.js";import{s as a,o as l}from"./p-DTOuhcpL.js";import{s as c}from"./p-B4UX_mB_.js";import{t as f,p as m}from"./p--_RUy11E.js";import{g as d}from"./p-BjOGAbQL.js";import{f as h}from"./p-B_N3UuP2.js";import{d as p}from"./p-ClkvaRio.js";import{d as g}from"./p-BX98BUpV.js";import{d as u}from"./p-ClXBenaN.js";import{d as y}from"./p-DBK9GhUz.js";import{d as b}from"./p-DiSdptzb.js";import{d as w}from"./p-DobMlMDf.js";import{d as k}from"./p-JrKx7ojI.js";import{d as x}from"./p-DZecnsEu.js";import{d as v}from"./p-D5YRHMvl.js";import{d as _}from"./p-BkXzaJcc.js";var C;!function(t){t[t.TwentyFourMonth=24]="TwentyFourMonth",t[t.TwelveMonth=12]="TwelveMonth",t[t.SixMonth=6]="SixMonth",t[t.Indefinite=0]="Indefinite"}(C||(C={}));const P=[["isNetflixMaxDisneyProduct","components-netflix-max-disney-card-description"],["isNetflixDisneyProduct","components-netflix-disney-card-description"],["isMaxDisneyProduct","components-max-disney-card-description"],["isDisneyProduct","components-disney-card-description"],["isNetflixProduct","components-netflix-card-description"],["isNetflixMaxProduct","components-netflix-max-card-description"],["isMaxProduct","components-max-card-description"]],T=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.emptyCatalog=o(this,"emptyCatalog"),this.catalogChange=o(this,"catalogChange"),this.filtersChange=o(this,"filtersChange")}translationsGroup="tet-components";allowedProductsToShowInfo=["PD_TELCO_SUPER","PD_TELCO_SUPER_PACK_A","PD_TELCO_SUPER_PACK_B","PD_TELCO_SUPER_PACK_C","PD_TELCO_SUPER_PACK_D","PD_TELCO_PACKAGE_A","PD_TELCO_PACKAGE_B","PD_TELCO_PACKAGE_C","PD_TELCO_PACKAGE_D","PD_TELCO_NETFLIX_PACKAGE_A_ITV_SUPER","PD_TELCO_HBOMAX_IPTV_PACK_A","PD_TELCO_HBOMAX_IPTV_PACK_B","PD_TELCO_HBOMAX_IPTV_PACK_C","PD_TELCO_NETFLIX_PACKAGE_A_SUPER","PD_TELCO_HBOMAX_OTT_PACK_A_SUPER","PD_TELCO_HBOMAX_OTT_PACK_B_SUPER","PD_TELCO_HBOMAX_OTT_PACK_C_SUPER"];get element(){return this}addressKey;catalog;theme="light";darkMode=!1;termText;formParameters="";language="lv";allowedTvProductCodes=[];showLoader=!0;subcategoryProductFilters={};emptyCatalog;catalogChange;filtersChange;async onAddressKeyChange(){await this.loadCatalogData()}async onLanguageChanged(t){await m(this.translationsGroup,t),r(this)}handleFilteredProductsChanged(t){this.subcategoryProductFilters={...this.subcategoryProductFilters,[t.detail.subcategoryId]:t.detail.filteredProductIds}}async componentWillLoad(){await m(this.translationsGroup,this.language)}async componentDidLoad(){await this.loadCatalogData(),this.initFilterChangeEvent()}initFilterChangeEvent(){const t=a.availableFilters.map((t=>(t.title=f(t.title),t)));l("activeFilters",(()=>{this.filtersChange.emit({activeFilters:a.activeFilters,availableFilters:t})}))}async loadCatalogData(){this.showLoader=!0,a.availableFilters=[];try{const t=await c(this.addressKey);this.catalog=t,a.catalog=t,this.catalogChange.emit({catalog:t,activeFilters:a.activeFilters,availableFilters:a.availableFilters})}catch(t){this.emptyCatalog.emit()}a.catalog instanceof Array&&!a.catalog.length&&this.emptyCatalog.emit(),this.showLoader=!1}filterCategoryProducts=t=>{const e=this.subcategoryProductFilters[t.key]||[];if(e.length>0)return t.products.filter((t=>e.includes(t.productCode)));const{activeFilters:o}=a;return o.includes("promotions")?t.products.filter(this.productHasPromotion.bind(this)):t.products};translateProperty(t){return t?.[this.language]||""}showCategory=t=>{if(!0!==t.showInAvailabilityTool)return!1;if(t.subgroups?.length>0)return t.subgroups.some(this.showCategory);const{activeFilters:e}=a;return(!t.tag||["all",t.tag??""].some((t=>e.includes(t)))||e.includes("promotions")&&this.categoryContainsPromotions(t))&&this.categoryContainsContractTerms(t)&&this.filterCategoryProducts(t).length>0};categoryContainsPromotions({products:t=[]}){return t?.some((t=>this.productHasPromotion(t)))}productHasPromotion(t){return t?.contractTerms?.some((({promotionCode:t})=>t))}categoryContainsContractTerms({products:t=[]}){return t?.some((t=>this.productHasContractTerms(t)))}productHasContractTerms(t){return!!t?.contractTerms?.length}renderTopCategories(){return a.catalog?.structure?.filter(this.showCategory).map((t=>{const e=this.translateProperty(t.name);return i("section",{class:{category:!0,[`category--${this.theme}`]:!!this.theme,[this.theme]:!0}},e&&i("h2",{class:{"category-title":!0,[`category-title--${this.theme}`]:!!this.theme,[this.theme]:!0}},e),i("div",{class:{"category-subcategories":!0,[`category-subcategories--${this.theme}`]:!!this.theme,[this.theme]:!0}},this.renderSubCategories(t.subgroups||[],a.catalog?.meta)))}))}renderSubCategories(t,e){return t.filter(this.showCategory).map((t=>i("div",{class:"subcategory"},i("div",{class:"subcategory-header"},this.renderSubCategoryHeader(t)),t.hasProductTags&&i("div",{class:"subcategory-filters"},i("tet-address-offers-filters-products",{catalog:this.catalog,class:"center",language:this.language,clearFilterButton:!0,subcategoryId:t.key,onFilteredProductsChanged:t=>this.handleFilteredProductsChanged(t),category:t,theme:this.theme})),i("div",{class:"subcategory-products"},this.filterCategoryProducts(t).map((o=>this.renderProduct(o,t.theme,e)))))))}renderSubCategoryHeader=({displayTitle:t,name:e,landingPage:o,isOneTv:r})=>{const n=this.translateProperty(e),s=this.translateProperty(o);return[i("div",{class:{"subcategory-title":!0,[`subcategory-title--${this.theme}`]:!!this.theme,[this.theme]:!0}},r&&i("tet-icon",{name:"logo-tet-tv-plus",useDefaultColor:!0}),t&&n&&i("h3",{class:{[this.theme]:!!this.theme}},n)),s&&i("a",{class:{"subcategory-offers-link":!0,[`subcategory-offers-link--${this.theme}`]:!!this.theme,[this.theme]:!0},href:s,target:"_blank"},i("span",{class:{"subcategory-offers-link-text":!0,[`subcategory-offers-link-text--${this.theme}`]:!!this.theme,[this.theme]:!0}},f("components-address-offers-view-more-link"))," --\x3e")]};renderUpsellBlock(t,e,o){let r=e.find((t=>"sac-offers-light"===t.key));const n="dark"===this.theme;return n&&(r=e.find((t=>"sac-offers-dark"===t.key))),i("div",{class:"upsell-block"},i("div",{class:{"upsell-block--title":!0,dark:n}},f("components-max-sport-upsell-title")),i("div",{class:{"upsell-block--content":!0,dark:n}},i("img",{src:r.icon,alt:"",class:{"upsell-block--icon":!0},loading:"lazy"}),i("div",{class:{"upsell-block--name":!0,dark:n}},t),i("div",{class:{"upsell-block--amount":!0,dark:n}},"+",o," ",f("components-euro")),i("div",{class:{"upsell-block--tooltip":!0}},i("tet-icon",{class:"icon",name:"tc-info-circle",focusable:!0,theme:this.theme}),i("tet-tooltip",{theme:this.theme},f("components-max-sport-upsell-tooltip-info")))))}renderProduct(t,e="light",o){if(!this.getContractTerm(t))return;const r=t=>this.translateProperty(t),n=this.darkMode?"dark":"light",s=t.amount,a=this.getContractTermProperty(t,"amount"),l=this.getContractTermProperty(t,"showDiscount"),c=this.getContractTermProperty(t,"isAlwaysOn"),m=r(this.getContractTermProperty(t,"priceTooltip")),d=r(this.getContractTermProperty(t,"priceDescription")),p=this.getContractTermProperty(t,"contract"),g=this.getAttribute(t.attributes,"isBestChoice")?.value??!1;let u=null;if(this.getAttribute(t.attributes,"showMaxSportUpsell")?.value&&"hboMaxSport"===Object.keys(o)[0]){const t=Object.values(o)[0];u=this.renderUpsellBlock(t.name?t.name[this.language]:"",t.icons?t.icons:[],t.amount?t.amount:null)}let y=null;if(this.termText){const e=this.getContractTermProperty(t,"term");0!==e&&(y=this.termText.replace("%d",String(e))),this.getAttribute(t.attributes,"availabilityTermUnlimitedOverride")?.value&&(y=f("components-indefinite"))}let b=r(t.benefits);if(c||l){const e=r(this.getContractTermProperty(t,"benefits"));e&&(b=e)}const w=b?.split("\n").filter(Boolean),k=(t=>{const e=P.find((([e])=>t?.some((t=>t.key===e&&t.value))));return e?f(e[1]):null})(t.attributes),x={mainTitle:r(t.name),subTitle:this.getProductSubtitle(t),bestChoiceText:f("components-address-offers-best-choice"),infoItemIconName:"info-circle",infoItemTooltipContent:this.getProductInfoItem(t),bulletPoints:w,price:h(a??s,{currency:""}),oldPrice:l?h(s,{currency:""}):null,currency:f("components-euro-per-month"),priceInfoIconName:m?"info-circle":null,priceInfoTooltipContent:m||null,term:d,termText:y,helper:r(t.description),button:(v=f("components-address-offers-form-button-text"),_=this.getServiceApplicationFormUrl(t)+this.formParameters,`\n <a href="${_}" tabIndex="-1">\n <tet-button class="tet-button" style="--button-width: 10rem" theme="${n}" disabled="${!_}">\n ${v}\n </tet-button>\n </a>\n `),secondaryLink:p,secondaryLinkText:f("components-offers-contract-term-link"),secondaryLinkOpenBlank:!0,netflixProductDescription:k};var v,_;return i("tet-compare-card",{class:{product:!0,"best-choice":g},options:x,cardType:"wide60-40",minWideWidth:768,theme:e,bestChoice:g,cardList:!0,darkMode:this.darkMode},i("div",{slot:"upsell-block-slot"},u))}getProductSubtitle({productCode:t,technologySpeed:{max:e,min:o}}){if(this.allowedProductsToShowInfo.includes(t))return e&&o?f("components-max-speed-description-v2",{minSpeed:o,maxSpeed:e}):""}getProductInfoItem(t){const e=t?.bundleProducts?.split(","),o=e?.[1]??e?.[0],r=Object.values(a.catalog.structure[0].products).find((t=>t.productCode===o));if(this.allowedProductsToShowInfo.includes(t.productCode))return this.translateProperty(o?r.technologySpeed.description:t.technologySpeed.description)}getContractTermProperty(t,e){return this.getContractTerm(t)?.[e]??null}getContractTerm(t){return t.contractTerms?.find((t=>t.term===C.TwentyFourMonth))}getAttribute(t,e){return t?.find((t=>t.key===e))}getServiceApplicationFormUrl(t){const e=this.translateProperty(t.formUrl),o=this.getContractTermProperty(t,"promotionCode");let r={contractTerm:this.getContractTermProperty(t,"term")};o&&(r.promotion=o),r.addressKey=this.addressKey,r.product=t.productCode;const i=this.getAttribute(t.attributes,"availabilityFormUrlOverride")?.value??"";return i?i.toString():d(e,r)}renderLoader=()=>i("div",{class:"placeholder"},[...Array(2)].map((()=>i("div",{class:"placeholder-section"},i("tet-placeholder",{height:"3em",width:"40%",class:"placeholder-section-title",darkTheme:this.darkMode}),i("br",null),i("tet-placeholder",{height:"3em",width:"40%",class:"placeholder-subsection-title",darkTheme:this.darkMode}),i("br",null),i("tet-placeholder",{height:"1em",width:"20%",class:"placeholder-subsection-title",darkTheme:this.darkMode}),[...Array(3)].map((()=>[i("br",null),i("tet-placeholder",{height:"10em",darkTheme:this.darkMode})]))))));render(){return i(n,{key:"5f19251cf6673f69e65fb57d446b2befb915dc61"},this.showLoader?this.renderLoader():a.catalog&&this.renderTopCategories())}static get watchers(){return{addressKey:[{onAddressKeyChange:0}],language:[{onLanguageChanged:0}]}}static get style(){return':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{display:block;width:100%;max-width:53rem;margin:0 auto;padding:0 1rem}@media screen and (max-width: 48rem){:host{max-width:32rem}}@media only screen and (max-width: 44.9375rem){:host{padding:0 0.5rem}}*{color:rgb(10, 11, 13)}*.dark{color:var(--tc-text-primary-dark)}.category{font-family:var(--text-font);margin-bottom:7rem}@media screen and (max-width: 48rem){.category{margin-bottom:6rem}}@media only screen and (max-width: 44.9375rem){.category{margin-bottom:4rem}}.category-title{text-align:center;margin-bottom:1.5rem;font:600 3rem/3.25rem "Gilroy", "Gilroy, Arial, sans-serif"}@media screen and (max-width: 48rem){.category-title{font:600 2.5rem/3rem "Gilroy", "Gilroy, Arial, sans-serif"}}.category-subcategories{display:flex;flex-direction:column;gap:6.25rem}.tab-content div{box-sizing:border-box}@media screen and (max-width: 48rem){.tab-content div{max-width:32rem}}.tab-content div .subcategory-tab{width:100%;padding-bottom:1.5rem;display:flex;flex-direction:column;gap:1rem}.subcategory-header{margin-bottom:1.5rem;display:flex;flex-direction:column;gap:0.5rem}.subcategory-title{font:600 2rem/2.25rem "Gilroy", "Gilroy, Arial, sans-serif";display:flex;gap:1rem;align-items:center}.subcategory-title.dark{color:var(--tc-text-primary-dark)}@media screen and (max-width: 48rem){.subcategory-title{flex-direction:column;align-items:initial}}@media only screen and (max-width: 44.9375rem){.subcategory-title{font:600 1.75rem/2rem "Gilroy", "Gilroy, Arial, sans-serif"}}.subcategory-offers-link{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";max-width:fit-content;text-decoration:none}.subcategory-offers-link.dark{color:var(--tc-text-primary-dark)}.subcategory-offers-link-text{text-decoration:underline}.subcategory-offers-link-text.dark{color:var(--tc-text-primary-dark)}.subcategory-offers-link:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s;border-radius:0.125rem}.subcategory-products{display:flex;flex-direction:column;gap:1rem}.subcategory-filters{display:flex;justify-content:center;margin-top:1.5rem;margin-bottom:1.5rem}.product{width:100%}.product::part(compare-card-title-wrapper){border-bottom:none}@media screen and (max-width: 48rem){.product::part(compare-card-title-wrapper){margin-bottom:1rem;padding:0}}.product .upsell-block{display:flex;flex-direction:column}.product .upsell-block--title{margin-bottom:0.5rem;font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;color:var(--tc-text-secondary)}.product .upsell-block--title.dark{color:rgb(153, 160, 174)}.product .upsell-block--content{background:rgb(255, 255, 255);padding:0.75rem;display:flex;flex-direction:row;align-items:center;margin-bottom:1.5rem;border-radius:0.5rem}.product .upsell-block--content.dark{background:var(--tc-grey-minus-10-dark)}.product .upsell-block--icon{width:1.5rem;height:1.5rem;margin-right:0.75rem}.product .upsell-block--name{color:var(--tc-text-primary);font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;margin-right:auto}.product .upsell-block--name.dark{color:var(--tc-grey-110-dark)}.product .upsell-block--amount{color:var(--tc-text-primary);font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;background:var(--tc-background-secondary);border-radius:0.25rem;padding:0.125rem 0.25rem;margin-right:0.75rem}.product .upsell-block--amount.dark{background:var(--tc-grey-10-dark);color:var(--tc-grey-110-dark)}.product .upsell-block--tooltip{cursor:pointer}.placeholder-section{margin-bottom:2rem}.placeholder-section-title{margin:0 auto;--placeholder-animation-speed:4s}.placeholder-subsection-title{--placeholder-animation-speed:4s}.tab-header{margin-bottom:1.5rem;width:100%;max-width:24.375rem}@media screen and (max-width: 48rem){.tab-header{margin-bottom:2rem;width:100%;max-width:unset}}.header-switch .text-first{flex-direction:row;gap:0.5rem}@media screen and (max-width: 48rem){.header-switch{--tabs-headers-segmented-item-padding:0.5rem 0.75rem;--tabs-headers-segmented-item-margin:0.25rem 0;--tabs-headers-segmended-item-font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif}}'}},[513,"tet-address-offers",{addressKey:[8,"address-key"],catalog:[16],theme:[1],darkMode:[4,"dark-mode"],termText:[1,"term-text"],formParameters:[1,"form-parameters"],language:[1],allowedTvProductCodes:[16],showLoader:[32],subcategoryProductFilters:[32]},void 0,{addressKey:[{onAddressKeyChange:0}],language:[{onLanguageChanged:0}]}]);function A(){"undefined"!=typeof customElements&&["tet-address-offers","tet-address-offers-filters-products","tet-button","tet-checkbox","tet-compare-card","tet-dropdown","tet-icon","tet-placeholder","tet-tag","tet-tag-group","tet-tooltip"].forEach((t=>{switch(t){case"tet-address-offers":customElements.get(s(t))||customElements.define(s(t),T);break;case"tet-address-offers-filters-products":customElements.get(s(t))||p();break;case"tet-button":customElements.get(s(t))||g();break;case"tet-checkbox":customElements.get(s(t))||u();break;case"tet-compare-card":customElements.get(s(t))||y();break;case"tet-dropdown":customElements.get(s(t))||b();break;case"tet-icon":customElements.get(s(t))||w();break;case"tet-placeholder":customElements.get(s(t))||k();break;case"tet-tag":customElements.get(s(t))||x();break;case"tet-tag-group":customElements.get(s(t))||v();break;case"tet-tooltip":customElements.get(s(t))||_()}}))}export{T,A as d}
@@ -1 +1 @@
1
- import{p as o,H as t,d as e,h as r,c as n,t as i}from"./p-Cdi7KDBd.js";import{d as a}from"./p-Bsqoxd9G.js";const l=o(class extends t{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.check=e(this,"check")}radioGroupName="tet-radio-blocks";check;blocks=[];blocksPerRow=2;blockType="small";theme="light";accessibilityLabel="";checkedBlockId;async setChecked(o,t){this.blocks.forEach((t=>{t.checked=t.id===o,this.checkedBlockId=o})),this.check.emit({id:o,value:t})}componentWillLoad(){this.syncCheckedBlock()}syncCheckedBlock(){this.checkedBlockId=this.blocks.find((o=>o.checked))?.id}renderIcon(o){return"large"!==this.blockType&&o?r("tet-icon",{class:"radio-block__icon",name:o,theme:this.theme}):null}renderDescription(o,t,e){return"small"===this.blockType||!o&&!t?"":r("span",{class:"radio-block__description",id:e},o&&r("span",null,o),t&&r("span",null,t))}renderSingleBlock(o,t){const{id:e,value:n,iconName:i,label:a,description:l,secondaryDescription:s}=o,c=`${this.radioGroupName}-${t}-label`,f=`${this.radioGroupName}-${t}-description`;return r("label",{class:{"radio-block":!0,checked:this.checkedBlockId===e}},r("input",{class:"radio-block__input",type:"radio",name:this.radioGroupName,value:n,checked:this.checkedBlockId===e,"aria-labelledby":c,"aria-describedby":"large"===this.blockType&&(l||s)?f:void 0,onChange:()=>this.setChecked(e,n)}),this.renderIcon(i),r("span",{class:"radio-block__label",id:c},a),this.renderDescription(l,s,f))}render(){return r(n,{key:"9d032a5735a0abf28a7fe0d18255e4dea926911e"},r("div",{key:"3b6ecdf28e04554157979fd017d2cdcc5c2f42d5",role:"radiogroup","aria-label":this.accessibilityLabel||void 0,class:{"radio-block__container":!0,[this.blockType]:!0,[`row-of-${this.blocksPerRow}`]:!!this.blocksPerRow}},this.blocks.map(((o,t)=>this.renderSingleBlock(o,t)))))}static get watchers(){return{blocks:[{syncCheckedBlock:0}]}}static get style(){return':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{--radio-block-text-color:var(--tc-text-primary);--radio-block-border-color:var(--tc-border-quaternary);--radio-block-background-color:var(--tc-layer-permanent-white);--radio-block-hover-border-color:var(--tc-border-tertiary);--radio-block-hover-background-color:var(--tc-yellow-10);--radio-block-pressed-border-color:var(--tc-border-secondary);--radio-block-pressed-background-color:var(--tc-yellow-20);--radio-block-checked-border-color:var(--tc-yellow-60);--radio-block-checked-background-color:var(--tc-yellow-40);--radio-block-focused-border-color:var(--tc-blue-40);display:block;position:relative}:host([theme=dark]){--radio-block-text-color:var(--tc-text-primary-dark);--radio-block-border-color:var(--tc-border-quaternary-dark);--radio-block-background-color:var(--tc-layer-permanent-black-dark);--radio-block-hover-border-color:var(--tc-border-tertiary-dark);--radio-block-hover-background-color:var(--tc-brown-80);--radio-block-pressed-border-color:var(--tc-border-secondary-dark);--radio-block-pressed-background-color:var(--tc-brown-60);--radio-block-checked-border-color:var(--tc-brown-30);--radio-block-checked-background-color:var(--tc-brown-50-dark);--radio-block-focused-border-color:var(--tc-blue-40-dark)}.radio-block{display:flex;position:relative;box-sizing:border-box;width:100%;align-items:flex-start;gap:0.75rem;border-radius:0.5rem;border:0.0625rem solid var(--radio-block-border-color);background-color:var(--radio-block-background-color);cursor:pointer;overflow:hidden}.radio-block__container.small>.radio-block{padding:1rem 0.75rem;flex-direction:row;gap:0.5rem}.radio-block__container.large>.radio-block{align-items:flex-start;flex-direction:column;padding:1rem;gap:0.5rem}@media screen and (min-width: 80rem){.radio-block__container.large>.radio-block{padding:1.25rem;gap:1rem}}.radio-block__container{display:grid;grid-template-columns:repeat(1, 1fr);gap:1rem}.radio-block__container.row-of-2{grid-template-columns:repeat(2, minmax(0, 1fr))}.radio-block__container.row-of-2>:last-child:nth-child(odd){grid-column:1/-1}.radio-block__container.row-of-3{grid-template-columns:repeat(6, minmax(0, 1fr))}.radio-block__container.row-of-3>*{grid-column:span 2}.radio-block__container.row-of-3>:last-child:nth-child(3n+1){grid-column:1/-1}.radio-block__container.row-of-3>:nth-child(3n+1):nth-last-child(2),.radio-block__container.row-of-3>:nth-child(3n+1):nth-last-child(2)+*{grid-column:span 3}.radio-block__icon{--icon-size:1.5rem}.radio-block__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.radio-block__label{font:500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";color:var(--radio-block-text-color)}@media screen and (min-width: 80rem){.radio-block__container.large>.radio-block .radio-block__label{font:500 1.25rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}}.radio-block__description{font:500 0.75rem/1rem "Inter", "Gilroy, Arial, sans-serif";color:var(--radio-block-text-color);text-align:start;display:flex;flex-direction:column;margin-top:auto;gap:0.25rem}.radio-block:hover{border-color:var(--radio-block-hover-border-color);background-color:var(--radio-block-hover-background-color)}.radio-block:active{border-color:var(--radio-block-pressed-border-color);background-color:var(--radio-block-pressed-background-color)}.radio-block.checked{border-color:var(--radio-block-checked-border-color);background-color:var(--radio-block-checked-background-color)}.radio-block:has(>.radio-block__input:focus-visible){border:0.0625rem solid var(--radio-block-focused-border-color);outline:0.0625rem solid var(--radio-block-focused-border-color)}'}},[513,"tet-radio-blocks",{blocks:[16],blocksPerRow:[2,"blocks-per-row"],blockType:[1,"block-type"],theme:[513],accessibilityLabel:[1,"accessibility-label"],checkedBlockId:[32],setChecked:[64]},void 0,{blocks:[{syncCheckedBlock:0}]}]);function s(){"undefined"!=typeof customElements&&["tet-radio-blocks","tet-icon"].forEach((o=>{switch(o){case"tet-radio-blocks":customElements.get(i(o))||customElements.define(i(o),l);break;case"tet-icon":customElements.get(i(o))||a()}}))}export{l as T,s as d}
1
+ import{p as o,H as t,d as e,h as r,c as n,t as i}from"./p-CWuhYFDW.js";import{d as a}from"./p-DobMlMDf.js";const l=o(class extends t{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.check=e(this,"check")}radioGroupName="tet-radio-blocks";check;blocks=[];blocksPerRow=2;blockType="small";theme="light";accessibilityLabel="";checkedBlockId;async setChecked(o,t){this.blocks.forEach((t=>{t.checked=t.id===o,this.checkedBlockId=o})),this.check.emit({id:o,value:t})}componentWillLoad(){this.syncCheckedBlock()}syncCheckedBlock(){this.checkedBlockId=this.blocks.find((o=>o.checked))?.id}renderIcon(o){return"large"!==this.blockType&&o?r("tet-icon",{class:"radio-block__icon",name:o,theme:this.theme}):null}renderDescription(o,t,e){return"small"===this.blockType||!o&&!t?"":r("span",{class:"radio-block__description",id:e},o&&r("span",null,o),t&&r("span",null,t))}renderSingleBlock(o,t){const{id:e,value:n,iconName:i,label:a,description:l,secondaryDescription:s}=o,c=`${this.radioGroupName}-${t}-label`,f=`${this.radioGroupName}-${t}-description`;return r("label",{class:{"radio-block":!0,checked:this.checkedBlockId===e}},r("input",{class:"radio-block__input",type:"radio",name:this.radioGroupName,value:n,checked:this.checkedBlockId===e,"aria-labelledby":c,"aria-describedby":"large"===this.blockType&&(l||s)?f:void 0,onChange:()=>this.setChecked(e,n)}),this.renderIcon(i),r("span",{class:"radio-block__label",id:c},a),this.renderDescription(l,s,f))}render(){return r(n,{key:"9d032a5735a0abf28a7fe0d18255e4dea926911e"},r("div",{key:"3b6ecdf28e04554157979fd017d2cdcc5c2f42d5",role:"radiogroup","aria-label":this.accessibilityLabel||void 0,class:{"radio-block__container":!0,[this.blockType]:!0,[`row-of-${this.blocksPerRow}`]:!!this.blocksPerRow}},this.blocks.map(((o,t)=>this.renderSingleBlock(o,t)))))}static get watchers(){return{blocks:[{syncCheckedBlock:0}]}}static get style(){return':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{--radio-block-text-color:var(--tc-text-primary);--radio-block-border-color:var(--tc-border-quaternary);--radio-block-background-color:var(--tc-layer-permanent-white);--radio-block-hover-border-color:var(--tc-border-tertiary);--radio-block-hover-background-color:var(--tc-yellow-10);--radio-block-pressed-border-color:var(--tc-border-secondary);--radio-block-pressed-background-color:var(--tc-yellow-20);--radio-block-checked-border-color:var(--tc-yellow-60);--radio-block-checked-background-color:var(--tc-yellow-40);--radio-block-focused-border-color:var(--tc-blue-40);display:block;position:relative}:host([theme=dark]){--radio-block-text-color:var(--tc-text-primary-dark);--radio-block-border-color:var(--tc-border-quaternary-dark);--radio-block-background-color:var(--tc-layer-permanent-black-dark);--radio-block-hover-border-color:var(--tc-border-tertiary-dark);--radio-block-hover-background-color:var(--tc-brown-80);--radio-block-pressed-border-color:var(--tc-border-secondary-dark);--radio-block-pressed-background-color:var(--tc-brown-60);--radio-block-checked-border-color:var(--tc-brown-30);--radio-block-checked-background-color:var(--tc-brown-50-dark);--radio-block-focused-border-color:var(--tc-blue-40-dark)}.radio-block{display:flex;position:relative;box-sizing:border-box;width:100%;align-items:flex-start;gap:0.75rem;border-radius:0.5rem;border:0.0625rem solid var(--radio-block-border-color);background-color:var(--radio-block-background-color);cursor:pointer;overflow:hidden}.radio-block__container.small>.radio-block{padding:1rem 0.75rem;flex-direction:row;gap:0.5rem}.radio-block__container.large>.radio-block{align-items:flex-start;flex-direction:column;padding:1rem;gap:0.5rem}@media screen and (min-width: 80rem){.radio-block__container.large>.radio-block{padding:1.25rem;gap:1rem}}.radio-block__container{display:grid;grid-template-columns:repeat(1, 1fr);gap:1rem}.radio-block__container.row-of-2{grid-template-columns:repeat(2, minmax(0, 1fr))}.radio-block__container.row-of-2>:last-child:nth-child(odd){grid-column:1/-1}.radio-block__container.row-of-3{grid-template-columns:repeat(6, minmax(0, 1fr))}.radio-block__container.row-of-3>*{grid-column:span 2}.radio-block__container.row-of-3>:last-child:nth-child(3n+1){grid-column:1/-1}.radio-block__container.row-of-3>:nth-child(3n+1):nth-last-child(2),.radio-block__container.row-of-3>:nth-child(3n+1):nth-last-child(2)+*{grid-column:span 3}.radio-block__icon{--icon-size:1.5rem}.radio-block__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.radio-block__label{font:500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";color:var(--radio-block-text-color)}@media screen and (min-width: 80rem){.radio-block__container.large>.radio-block .radio-block__label{font:500 1.25rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}}.radio-block__description{font:500 0.75rem/1rem "Inter", "Gilroy, Arial, sans-serif";color:var(--radio-block-text-color);text-align:start;display:flex;flex-direction:column;margin-top:auto;gap:0.25rem}.radio-block:hover{border-color:var(--radio-block-hover-border-color);background-color:var(--radio-block-hover-background-color)}.radio-block:active{border-color:var(--radio-block-pressed-border-color);background-color:var(--radio-block-pressed-background-color)}.radio-block.checked{border-color:var(--radio-block-checked-border-color);background-color:var(--radio-block-checked-background-color)}.radio-block:has(>.radio-block__input:focus-visible){border:0.0625rem solid var(--radio-block-focused-border-color);outline:0.0625rem solid var(--radio-block-focused-border-color)}'}},[513,"tet-radio-blocks",{blocks:[16],blocksPerRow:[2,"blocks-per-row"],blockType:[1,"block-type"],theme:[513],accessibilityLabel:[1,"accessibility-label"],checkedBlockId:[32],setChecked:[64]},void 0,{blocks:[{syncCheckedBlock:0}]}]);function s(){"undefined"!=typeof customElements&&["tet-radio-blocks","tet-icon"].forEach((o=>{switch(o){case"tet-radio-blocks":customElements.get(i(o))||customElements.define(i(o),l);break;case"tet-icon":customElements.get(i(o))||a()}}))}export{l as T,s as d}
@@ -1 +1 @@
1
- import{p as o,H as e,d as t,f as r,h as n,t as a}from"./p-Cdi7KDBd.js";import{p as i,t as c}from"./p-B9bE6qY-.js";import{R as s}from"./p-Cg7SayH7.js";import{d as f}from"./p-C-sZ3Bzu.js";import{d as l}from"./p-vu71OGLf.js";import{d as m}from"./p-DKZxpjnL.js";import{d}from"./p-Bsqoxd9G.js";import{d as b}from"./p-Bc4oqt_L.js";class p{errorMessage;phoneNumberRegex="^[26][0-9]{7}$";constructor(o){this.errorMessage=o}getErrorMessage(){return this.errorMessage}validate(o){const e=o.trim();return RegExp(this.phoneNumberRegex).test(e)}}class h{errorMessage;emailAddressRegex="^(([a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}))$";constructor(o){this.errorMessage=o}getErrorMessage(){return this.errorMessage}validate(o){const e=o?.trim();if(!e)return!1;const t=e.lastIndexOf("@");return!(-1!==t&&e.substring(0,t).length>64)&&RegExp(this.emailAddressRegex).test(e)}}class u{errorMessage;companyRegistrationNumberRegex="^\\d{11}$";constructor(o){this.errorMessage=o}getErrorMessage(){return this.errorMessage}validate(o){return!o||RegExp(this.companyRegistrationNumberRegex).test(o)}}class y{errorMessage;nameRegex="^[\\p{L} \\-–—,.]+$";constructor(o){this.errorMessage=o}getErrorMessage(){return this.errorMessage}validate(o){const e=o?.trim();return!!e&&new RegExp(this.nameRegex,"u").test(e)}}const g=o(class extends e{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.submitCheckOutForm=t(this,"submit-check-out-form")}checkOutForm;dialogElement;extraFieldsSlotElement;language="lv";theme;submitCheckOutForm;onLanguageChange(o){i("tet-components",o).then((()=>r(this)))}async open(){await this.dialogElement.open()}async close(){await this.dialogElement.close()}async componentWillLoad(){await i("tet-components",this.language),r(this)}getValidators(o,e="text"){const t=o.trim().toLowerCase().replace(","," un");let r="";switch(t.charAt(t.length-1)){case"s":r="phone"===e?t.replace("is","i"):t.replace(/[s]\b/g,"u");break;case"e":r=t.replace(/[e]\b/g,"i");break;default:r=t}const n=`${c("components-b2b-check-out-form-validation-error")} ${"lv"===this.language?r:t}`;let a=[new s(n)];switch(e){case"email":return a.push(new h("components-b2b-check-out-form-email-validation-error")),a;case"phone":return a.push(new p("components-validation-incorrect-phone")),a;case"company-reg":return a.push(new u("components-b2b-check-out-form-company-registration-number-validation-error")),a;case"name":return a.push(new y("components-b2b-check-out-form-name-validation-error")),a;default:return a}}renderInput(o,e,t,r="text",a){return n("tet-input",{id:o,class:"modal-form-card__input",theme:this.theme,label:`${e} *`,placeholder:t||e,maxlength:a,..."phone"===r&&{isPhoneNumber:!0},validators:this.getValidators(e,r)})}async validateInputFields(){const o=Array.from(this.checkOutForm.getElementsByTagName("tet-input")),e=Object.values(o).map((async o=>o.validateInput())),t=(await Promise.all(e)).filter((o=>o&&o.length>0)),r=Array.from(this.checkOutForm.getElementsByTagName("tet-checkbox"))[0];return r.setError(!r.checked),0===t.length&&!!r.checked}async handleSubmit(){if(!await this.validateInputFields())return;const o=Array.from(this.checkOutForm.getElementsByTagName("tet-input"));let e={};o.forEach((o=>{const t=o.querySelector("input").value;e={...e,[o.id]:t}})),this.submitCheckOutForm.emit({...e,...this.extraFieldsSubmissionData})}get extraFieldsElements(){return this.extraFieldsSlotElement.assignedElements().flatMap((o=>Array.from(o.querySelectorAll("input[id], tet-input[id]")).filter((o=>o instanceof HTMLInputElement||"value"in o))))}get extraFieldsSubmissionData(){return this.extraFieldsElements.reduce(((o,e)=>(o[e.id]=this.getExtraFieldValue(e),o)),{})}getExtraFieldValue(o){switch(o.tagName.toLowerCase()){case"input":return o.value;case"tet-input":return o.querySelector("input").value;default:return""}}render(){const{theme:o}=this;return n("tet-dialog",{key:"8ab08f35015a3327e10acafaef9a114a8252cae7",class:"modal-form-card",headerTitle:c("components-b2b-check-out-form-header"),theme:o,closeOnOverlayClick:!1,footerDisplay:"right",ref:o=>{this.dialogElement=o}},n("div",{key:"85450af7c9d367aa2f753ef6299b9c978d4039fc",class:{"modal-form-card-content":!0,[`${o}`]:!0}},n("div",{key:"4e23b0136991a8df6ef29eaf8fc48447c8f590c3",class:"modal-form-card-content-header"},n("div",{key:"8d69bd68dc45b1e52774b940a62350dda6574ea7",class:"icon-wrapper"},n("tet-icon",{key:"17215840e099431931c0d26cf700a0c5a4980b92",class:"icon",name:"tc-company-1"})),n("span",{key:"80c4cd793c411ece7026cc8df30afe48e5c60fac",class:"modal-form-card-content-header__title"},c("components-b2b-check-out-form-title")),n("span",{key:"7529df45563c38b5a061cb69d1065c5fb04db527",class:"modal-form-card-content-header__description"},c("components-b2b-check-out-form-description"))),n("div",{key:"b29ba0598856289c0436aa579210da4aedf58252",class:"modal-form-card-content-accordion-wrapper"},n("slot",{key:"8a1937942bffcd759b86d7fb3a560a41d350f880",name:"cart"})),n("form",{key:"ff627dee001200d6019f74596768deb7f6a7fa8c",id:"checkOutForm",class:"modal-form-card-form",ref:o=>this.checkOutForm=o},n("div",{key:"ae914b83d16a41c23be7c773141a58b7e110b74e",class:"modal-form-card-input__row"},this.renderInput("companyRegNr",c("components-b2b-check-out-form-company-registration-number-input-label"),"40000000001","company-reg","11"),this.renderInput("companyName",c("components-b2b-check-out-form-company-name-input-label"))),this.renderInput("address",c("components-b2b-check-out-form-address-input-label"),c("components-b2b-check-out-form-address-input-placeholder")),this.renderInput("nameSurname",c("components-b2b-check-out-form-name-input-label"),"","name"),n("div",{key:"cec97d4586095e980bcb0e055040d6d68af3ed34",class:"modal-form-card-input__row"},this.renderInput("email",c("components-b2b-check-out-form-email-input-label"),"contact@company.com","email"),this.renderInput("phoneNr",c("components-b2b-check-out-form-phone-number-input-label"),"22222222","phone","8")),n("tet-checkbox",{key:"de93c40a3e5fdcf2b4bbe12c50c792971deec986",class:"modal-form-card-content-checkbox",label:c("components-check-out-form-privacy-policy"),theme:o}),n("slot",{key:"153e54c4add054aab62c9418863fbce4fe5a9268",name:"extra-fields",ref:o=>this.extraFieldsSlotElement=o}))),n("div",{key:"55ffa1a290e97ac683f1e3e0d63942be7a814c6f",slot:"footer",class:"modal-form-card-footer"},n("tet-button",{key:"27bb267e2fbeaf360a6d526451a6b1c493ff9edc",type:"secondary",size:"medium",theme:o,onClick:()=>{this.dialogElement.close()}},c("components-b2b-check-out-form-close-button-label")),n("tet-button",{key:"f52af4feffda1d0a4b3a90c4a8f40d9ce07741cb",type:"primary",size:"medium",theme:o,onClick:()=>this.handleSubmit()},c("components-b2b-check-out-form-submit-button-label"))))}static get watchers(){return{language:[{onLanguageChange:0}]}}static get style(){return':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{display:flex;align-items:center}.modal-form-card{border-radius:1rem;height:fit-content;box-shadow:var(--b2b-check-out-form-border-shadow);display:flex;flex-direction:column;border:none;--dialog-header-padding:1rem 1.125rem 0.5rem 1.5rem;--dialog-body-padding:0.5rem 1.5rem 2rem;--dialog-width:53rem;--dialog-title-font-size:1.5rem}@media screen and (max-width: 46.25rem){.modal-form-card{--dialog-body-padding:0.5rem 1rem 1.5rem}}.modal-form-card-content{display:flex;flex-direction:column;height:fit-content}.modal-form-card-content.light{--b2b-check-out-form-text-color:var(--tc-text-primary);--b2b-check-out-form-input-border-color:var(--tc-border-secondary);--b2b-check-out-form-accordion-border-color:var(--tc-border-quaternary);--b2b-check-out-form-border-shadow:var(--tc-elevation-six);--b2b-check-out-form-footer-border-color:var(--tc-border-quaternary);--b2b-check-out-form-accordion-background-color:var(--tc-layer-secondary);--b2b-check-out-form-icon-background-color:var(--tc-layer-inverse-primary);--b2b-check-out-form-icon-color:var(--tc-layer-primary)}.modal-form-card-content.dark{--b2b-check-out-form-text-color:var(--tc-text-primary-dark);--b2b-check-out-form-input-border-color:var(--tc-border-secondary-dark);--b2b-check-out-form-accordion-border-color:var(--tc-border-quaternary-dark);--b2b-check-out-form-border-shadow:var(--tc-elevation-six-dark);--b2b-check-out-form-footer-border-color:var(--tc-border-quaternary-dark);--b2b-check-out-form-accordion-background-color:var(--tc-layer-secondary-dark);--b2b-check-out-form-icon-background-color:var(--tc-layer-inverse-primary-dark);--b2b-check-out-form-icon-color:var(--tc-layer-primary-dark)}.modal-form-card-content-header{display:flex;flex-direction:column;justify-content:center;align-items:center;padding-bottom:1.5rem}.modal-form-card-content-header__title{font:600 1.5rem/1.75rem "Gilroy", "Gilroy, Arial, sans-serif";padding-top:1rem}.modal-form-card-content-header__description{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}.modal-form-card-content-accordion-wrapper{border:1px solid var(--b2b-check-out-form-accordion-border-color);border-radius:1rem}.modal-form-card-content-checkbox{--tet-link-color:var(--b2b-check-out-form-text-color)}.modal-form-card-footer{display:flex;align-items:center;justify-content:flex-end;gap:1rem;border-top:1px solid var(--b2b-check-out-form-footer-border-color)}@media screen and (max-width: 46.25rem){.modal-form-card-footer{justify-content:space-between;gap:0;width:100%}}.modal-form-card-form{display:flex;flex-direction:column;gap:1.5rem;padding-top:2rem}@media screen and (max-width: 46.25rem){.modal-form-card-form{gap:1rem;padding-top:1.5rem}}.modal-form-card-input__row{display:flex;flex-direction:row;gap:1.5rem;width:100%}@media screen and (max-width: 46.25rem){.modal-form-card-input__row{gap:1rem;flex-direction:column}}.modal-form-card__input{width:100%;--input-border-radius:0.625rem;--input-border-color:var(--b2b-check-out-form-input-border-color);--accordion-background-color:var(--b2b-check-out-form-input-border-color)}.modal-form-card .cart-header{display:flex;flex-direction:row;justify-content:space-between}.modal-form-card .icon-wrapper{display:flex;border-radius:50%;background-color:var(--b2b-check-out-form-icon-background-color)}.modal-form-card .icon{--icon-color:var(--b2b-check-out-form-icon-color)}'}},[769,"tet-b2b-check-out-form",{language:[1],theme:[1],open:[64],close:[64]},void 0,{language:[{onLanguageChange:0}]}]);function w(){"undefined"!=typeof customElements&&["tet-b2b-check-out-form","tet-button","tet-checkbox","tet-dialog","tet-icon","tet-input"].forEach((o=>{switch(o){case"tet-b2b-check-out-form":customElements.get(a(o))||customElements.define(a(o),g);break;case"tet-button":customElements.get(a(o))||f();break;case"tet-checkbox":customElements.get(a(o))||l();break;case"tet-dialog":customElements.get(a(o))||m();break;case"tet-icon":customElements.get(a(o))||d();break;case"tet-input":customElements.get(a(o))||b()}}))}export{g as T,w as d}
1
+ import{p as o,H as e,d as t,f as r,h as n,t as a}from"./p-CWuhYFDW.js";import{p as i,t as c}from"./p--_RUy11E.js";import{R as s}from"./p-Cg7SayH7.js";import{d as f}from"./p-BX98BUpV.js";import{d as l}from"./p-ClXBenaN.js";import{d as m}from"./p-_pn0YVXD.js";import{d}from"./p-DobMlMDf.js";import{d as b}from"./p-W3LV-Z7z.js";class p{errorMessage;phoneNumberRegex="^[26][0-9]{7}$";constructor(o){this.errorMessage=o}getErrorMessage(){return this.errorMessage}validate(o){const e=o.trim();return RegExp(this.phoneNumberRegex).test(e)}}class h{errorMessage;emailAddressRegex="^(([a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}))$";constructor(o){this.errorMessage=o}getErrorMessage(){return this.errorMessage}validate(o){const e=o?.trim();if(!e)return!1;const t=e.lastIndexOf("@");return!(-1!==t&&e.substring(0,t).length>64)&&RegExp(this.emailAddressRegex).test(e)}}class u{errorMessage;companyRegistrationNumberRegex="^\\d{11}$";constructor(o){this.errorMessage=o}getErrorMessage(){return this.errorMessage}validate(o){return!o||RegExp(this.companyRegistrationNumberRegex).test(o)}}class y{errorMessage;nameRegex="^[\\p{L} \\-–—,.]+$";constructor(o){this.errorMessage=o}getErrorMessage(){return this.errorMessage}validate(o){const e=o?.trim();return!!e&&new RegExp(this.nameRegex,"u").test(e)}}const g=o(class extends e{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.submitCheckOutForm=t(this,"submit-check-out-form")}checkOutForm;dialogElement;extraFieldsSlotElement;language="lv";theme;submitCheckOutForm;onLanguageChange(o){i("tet-components",o).then((()=>r(this)))}async open(){await this.dialogElement.open()}async close(){await this.dialogElement.close()}async componentWillLoad(){await i("tet-components",this.language),r(this)}getValidators(o,e="text"){const t=o.trim().toLowerCase().replace(","," un");let r="";switch(t.charAt(t.length-1)){case"s":r="phone"===e?t.replace("is","i"):t.replace(/[s]\b/g,"u");break;case"e":r=t.replace(/[e]\b/g,"i");break;default:r=t}const n=`${c("components-b2b-check-out-form-validation-error")} ${"lv"===this.language?r:t}`;let a=[new s(n)];switch(e){case"email":return a.push(new h("components-b2b-check-out-form-email-validation-error")),a;case"phone":return a.push(new p("components-validation-incorrect-phone")),a;case"company-reg":return a.push(new u("components-b2b-check-out-form-company-registration-number-validation-error")),a;case"name":return a.push(new y("components-b2b-check-out-form-name-validation-error")),a;default:return a}}renderInput(o,e,t,r="text",a){return n("tet-input",{id:o,class:"modal-form-card__input",theme:this.theme,label:`${e} *`,placeholder:t||e,maxlength:a,..."phone"===r&&{isPhoneNumber:!0},validators:this.getValidators(e,r)})}async validateInputFields(){const o=Array.from(this.checkOutForm.getElementsByTagName("tet-input")),e=Object.values(o).map((async o=>o.validateInput())),t=(await Promise.all(e)).filter((o=>o&&o.length>0)),r=Array.from(this.checkOutForm.getElementsByTagName("tet-checkbox"))[0];return r.setError(!r.checked),0===t.length&&!!r.checked}async handleSubmit(){if(!await this.validateInputFields())return;const o=Array.from(this.checkOutForm.getElementsByTagName("tet-input"));let e={};o.forEach((o=>{const t=o.querySelector("input").value;e={...e,[o.id]:t}})),this.submitCheckOutForm.emit({...e,...this.extraFieldsSubmissionData})}get extraFieldsElements(){return this.extraFieldsSlotElement.assignedElements().flatMap((o=>Array.from(o.querySelectorAll("input[id], tet-input[id]")).filter((o=>o instanceof HTMLInputElement||"value"in o))))}get extraFieldsSubmissionData(){return this.extraFieldsElements.reduce(((o,e)=>(o[e.id]=this.getExtraFieldValue(e),o)),{})}getExtraFieldValue(o){switch(o.tagName.toLowerCase()){case"input":return o.value;case"tet-input":return o.querySelector("input").value;default:return""}}render(){const{theme:o}=this;return n("tet-dialog",{key:"b02b71355a76a97c38cc658d03da9a73958d2894",class:"modal-form-card",headerTitle:c("components-b2b-check-out-form-header"),theme:o,closeOnOverlayClick:!1,footerDisplay:"right",ref:o=>{this.dialogElement=o}},n("div",{key:"0388f3bf8bbbbca24c0573a7be98427411f1f8ea",class:{"modal-form-card-content":!0,[`${o}`]:!0}},n("div",{key:"2612da1df527aea8ed557a8dcadafbd3eb3d06c7",class:"modal-form-card-content-header"},n("div",{key:"1dde49744a90b5f6db09963a1fad245b2c9c0b06",class:"icon-wrapper"},n("tet-icon",{key:"81ca9df460fc6906c85ffbebb5a09032623c28ad",class:"icon",name:"tc-company-1"})),n("span",{key:"218f9d11e0e703847b7f366d7ad936e9de43f735",class:"modal-form-card-content-header__title"},c("components-b2b-check-out-form-title")),n("span",{key:"b4ab39b9554e1a9eb7a18dd964f6895d9730aebf",class:"modal-form-card-content-header__description"},c("components-b2b-check-out-form-description"))),n("div",{key:"350b636a77774d5478c0dcd1211ecbbc1b54b66b",class:"modal-form-card-content-accordion-wrapper"},n("slot",{key:"60c26ac6c1ab5eb16d3ec5f539d29267b1b31897",name:"cart"})),n("form",{key:"c0b404a24841258079635fe3ddbd4c723683e182",id:"checkOutForm",class:"modal-form-card-form",ref:o=>this.checkOutForm=o},n("div",{key:"626d15e0d38f3909fd35e3080817fce6fed3c256",class:"modal-form-card-input__row"},this.renderInput("companyRegNr",c("components-b2b-check-out-form-company-registration-number-input-label"),"40000000001","company-reg","11"),this.renderInput("companyName",c("components-b2b-check-out-form-company-name-input-label"))),this.renderInput("address",c("components-b2b-check-out-form-address-input-label"),c("components-b2b-check-out-form-address-input-placeholder")),this.renderInput("nameSurname",c("components-b2b-check-out-form-name-input-label"),"","name"),n("div",{key:"8f10ef884dccb327f5d35eb692554c17ce9915e9",class:"modal-form-card-input__row"},this.renderInput("email",c("components-b2b-check-out-form-email-input-label"),"contact@company.com","email"),this.renderInput("phoneNr",c("components-b2b-check-out-form-phone-number-input-label"),"22222222","phone","8")),n("tet-checkbox",{key:"8143a3829082d16f56b623d5b8d0c30600f37af7",class:"modal-form-card-content-checkbox",label:c("components-check-out-form-privacy-policy"),theme:o}),n("slot",{key:"2594df6546dcc3dc93f0aae0e691f83fe8940ad6",name:"extra-fields",ref:o=>this.extraFieldsSlotElement=o}))),n("div",{key:"0a4d08995f94cdb8af4892e4805c4c4c84ce5504",slot:"footer",class:"modal-form-card-footer"},n("tet-button",{key:"4325855701c5f35ed2a9a8fa29d08e64a537b9e5",type:"secondary",size:"medium",theme:o,onClick:()=>{this.dialogElement.close()}},c("components-b2b-check-out-form-close-button-label")),n("tet-button",{key:"7f017593ed4b4899cf98814ba9680eb9d5349bc2",type:"primary",size:"medium",theme:o,onClick:()=>this.handleSubmit()},c("components-b2b-check-out-form-submit-button-label"))))}static get watchers(){return{language:[{onLanguageChange:0}]}}static get style(){return':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{display:flex;align-items:center}.modal-form-card{border-radius:1rem;height:fit-content;box-shadow:var(--b2b-check-out-form-border-shadow);display:flex;flex-direction:column;border:none;--dialog-header-padding:1rem 1.125rem 0.5rem 1.5rem;--dialog-body-padding:0.5rem 1.5rem 2rem;--dialog-width:53rem;--dialog-title-font-size:1.5rem}@media screen and (max-width: 46.25rem){.modal-form-card{--dialog-body-padding:0.5rem 1rem 1.5rem}}.modal-form-card-content{display:flex;flex-direction:column;height:fit-content}.modal-form-card-content.light{--b2b-check-out-form-text-color:var(--tc-text-primary);--b2b-check-out-form-input-border-color:var(--tc-border-secondary);--b2b-check-out-form-accordion-border-color:var(--tc-border-quaternary);--b2b-check-out-form-border-shadow:var(--tc-elevation-six);--b2b-check-out-form-footer-border-color:var(--tc-border-quaternary);--b2b-check-out-form-accordion-background-color:var(--tc-layer-secondary);--b2b-check-out-form-icon-background-color:var(--tc-layer-inverse-primary);--b2b-check-out-form-icon-color:var(--tc-layer-primary)}.modal-form-card-content.dark{--b2b-check-out-form-text-color:var(--tc-text-primary-dark);--b2b-check-out-form-input-border-color:var(--tc-border-secondary-dark);--b2b-check-out-form-accordion-border-color:var(--tc-border-quaternary-dark);--b2b-check-out-form-border-shadow:var(--tc-elevation-six-dark);--b2b-check-out-form-footer-border-color:var(--tc-border-quaternary-dark);--b2b-check-out-form-accordion-background-color:var(--tc-layer-secondary-dark);--b2b-check-out-form-icon-background-color:var(--tc-layer-inverse-primary-dark);--b2b-check-out-form-icon-color:var(--tc-layer-primary-dark)}.modal-form-card-content-header{display:flex;flex-direction:column;justify-content:center;align-items:center;padding-bottom:1.5rem}.modal-form-card-content-header__title{font:600 1.5rem/1.75rem "Gilroy", "Gilroy, Arial, sans-serif";padding-top:1rem}.modal-form-card-content-header__description{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}.modal-form-card-content-accordion-wrapper{border:1px solid var(--b2b-check-out-form-accordion-border-color);border-radius:1rem}.modal-form-card-content-checkbox{--tet-link-color:var(--b2b-check-out-form-text-color)}.modal-form-card-footer{display:flex;align-items:center;justify-content:flex-end;gap:1rem;border-top:1px solid var(--b2b-check-out-form-footer-border-color)}@media screen and (max-width: 46.25rem){.modal-form-card-footer{justify-content:space-between;gap:0;width:100%}}.modal-form-card-form{display:flex;flex-direction:column;gap:1.5rem;padding-top:2rem}@media screen and (max-width: 46.25rem){.modal-form-card-form{gap:1rem;padding-top:1.5rem}}.modal-form-card-input__row{display:flex;flex-direction:row;gap:1.5rem;width:100%}@media screen and (max-width: 46.25rem){.modal-form-card-input__row{gap:1rem;flex-direction:column}}.modal-form-card__input{width:100%;--input-border-radius:0.625rem;--input-border-color:var(--b2b-check-out-form-input-border-color);--accordion-background-color:var(--b2b-check-out-form-input-border-color)}.modal-form-card .cart-header{display:flex;flex-direction:row;justify-content:space-between}.modal-form-card .icon-wrapper{display:flex;border-radius:50%;background-color:var(--b2b-check-out-form-icon-background-color)}.modal-form-card .icon{--icon-color:var(--b2b-check-out-form-icon-color)}'}},[769,"tet-b2b-check-out-form",{language:[1],theme:[1],open:[64],close:[64]},void 0,{language:[{onLanguageChange:0}]}]);function w(){"undefined"!=typeof customElements&&["tet-b2b-check-out-form","tet-button","tet-checkbox","tet-dialog","tet-icon","tet-input"].forEach((o=>{switch(o){case"tet-b2b-check-out-form":customElements.get(a(o))||customElements.define(a(o),g);break;case"tet-button":customElements.get(a(o))||f();break;case"tet-checkbox":customElements.get(a(o))||l();break;case"tet-dialog":customElements.get(a(o))||m();break;case"tet-icon":customElements.get(a(o))||d();break;case"tet-input":customElements.get(a(o))||b()}}))}export{g as T,w as d}
@@ -0,0 +1 @@
1
+ import{p as t,H as e,d as a,f as o,h as r,c as i,t as n}from"./p-CWuhYFDW.js";import{p as s,t as d}from"./p--_RUy11E.js";import{f as c}from"./p-DPGMd9pW.js";import{d as l}from"./p-DobMlMDf.js";const f="tv-date-picker__list--dragging",h=new Intl.DateTimeFormat("lv-LV",{weekday:"long"}),m=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.dateSelected=a(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),o(this)}async setDate(t){const e=this.getDates().some((e=>c(e)===t)),a=t&&e?t:c(new Date);a===this.selectedDate?this.centerDate():this.selectedDate=a}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,a=this.dateList;if(!e||!a||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,a.classList.add(f),a.setPointerCapture(t.pointerId)),t.preventDefault(),a.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 a=this.getDates(),o=a.findIndex((t=>c(t)===c(e))),r={ArrowLeft:o-1,ArrowRight:o+1,Home:0,End:a.length-1},i=o>=0?a[r[t.key]]:void 0;i&&(this.focusedDate=c(i),this.dateList?.querySelectorAll("button")[r[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,a=this.getDates().findIndex((e=>c(e)===t)),o=e?.querySelectorAll("button")[a];if(e&&o){const t=e.getBoundingClientRect(),a=o.getBoundingClientRect(),r=e.scrollLeft+(a.left-t.left-e.clientLeft)-(e.clientWidth-a.width)/2,i=Math.max(0,e.scrollWidth-e.clientWidth);e.scrollLeft=Math.max(0,Math.min(r,i))}}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},((a,o)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()+o-t)))}formatLabel(t,e){const a=h.format(t),o=a.charAt(0).toLocaleUpperCase("lv-LV")+a.slice(1),i={[-1]:"components-tv-program-yesterday",0:"components-tv-program-today",1:"components-tv-program-tomorrow"}[e],n=i?d(i):o,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 a=e.findIndex((t=>c(t)===this.selectedDate));return a>=0?e[a+("left"===t?-1:1)]:void 0}handleNavButtonClick(t){const e=this.getNavigationDate(t,this.getDates());e&&this.handleDateClick(e)}renderNavigationButtons(t,e){const a="left"===t,o=a?"tc-chevron-left":"tc-chevron-right",i=d(a?"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":i,disabled:n,onClick:()=>this.handleNavButtonClick(t)},r("tet-icon",{class:"tv-date-picker__nav-button-icon",name:o,theme:this.theme,type:n?"tertiary":"primary"}))}render(){const t=this.getDates(),e=Math.floor(t.length/2);return r(i,{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,a)=>{const o=c(t);return r("li",{class:"tv-date-picker__item",key:o},r("button",{type:"button",class:"tv-date-picker__button tv-date-picker__button--date",disabled:this.disabled,"aria-pressed":this.selectedDate===o?"true":"false",tabIndex:(this.focusedDate??this.selectedDate)===o?0:-1,onFocus:t=>this.handleDateFocus(t,o),onClick:e=>this.handleDateButtonClick(t,e),onKeyDown:e=>this.handleDateKeyDown(e,t)},r("time",{dateTime:o},this.formatLabel(t,a-e))))}))),this.renderNavigationButtons("right",t)))}static get watchers(){return{daysRange:[{onDaysRangeChange:0}],language:[{onLanguageChange:0}]}}static get style(){return'@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)}'}},[513,"tet-tv-program-date-picker",{theme:[513],daysRange:[2,"days-range"],language:[1],disabled:[516],selectedDate:[32],focusedDate:[32],setDate:[64]},void 0,{daysRange:[{onDaysRangeChange:0}],language:[{onLanguageChange:0}]}]);function p(){"undefined"!=typeof customElements&&["tet-tv-program-date-picker","tet-icon"].forEach((t=>{switch(t){case"tet-tv-program-date-picker":customElements.get(n(t))||customElements.define(n(t),m);break;case"tet-icon":customElements.get(n(t))||l()}}))}export{m as T,p as d}