@tet/tet-components 1.4.157-testing → 1.4.158-production

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (590) hide show
  1. package/dist/cjs/format-program-start-date-zxseYpV_.js +151 -0
  2. package/dist/cjs/{http-codes-D7ffzpYW.js → http-codes-BEt9xtqF.js} +2 -1
  3. package/dist/cjs/{index-BL_zVDFC.js → index-puzHM5yZ.js} +21 -21
  4. package/dist/cjs/{index-Dzs7Nkbj.js → index-t4WNVvo_.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/{product-comparison-DUzqZuWv.js → product-comparison-CkjpMhjy.js} +1 -1
  7. package/dist/cjs/{service-availability-services-BXL7V5i1.js → service-availability-services-CcQ-evt-.js} +1 -1
  8. package/dist/cjs/{string-D0kCSyUd.js → string-CL-wkThZ.js} +0 -4
  9. package/dist/cjs/tet-accordion.cjs.entry.js +8 -8
  10. package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +4 -4
  11. package/dist/cjs/tet-address-offers-v2.cjs.entry.js +6 -6
  12. package/dist/cjs/tet-address-offers-view-v2.cjs.entry.js +6 -6
  13. package/dist/cjs/tet-address-offers-view.cjs.entry.js +5 -5
  14. package/dist/cjs/tet-address-offers_3.cjs.entry.js +7 -7
  15. package/dist/cjs/tet-address-search_2.cjs.entry.js +9 -9
  16. package/dist/cjs/tet-assembler_3.cjs.entry.js +5 -5
  17. package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +3 -3
  18. package/dist/cjs/tet-autocomplete_2.cjs.entry.js +4 -4
  19. package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +7 -7
  20. package/dist/cjs/tet-b2b-configurator.cjs.entry.js +5 -5
  21. package/dist/cjs/tet-banner-nav.cjs.entry.js +4 -4
  22. package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
  23. package/dist/cjs/tet-border-radius.cjs.entry.js +2 -2
  24. package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
  25. package/dist/cjs/tet-business-compare-card.cjs.entry.js +3 -3
  26. package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
  27. package/dist/cjs/tet-button.cjs.entry.js +1 -1
  28. package/dist/cjs/tet-card-list.cjs.entry.js +5 -5
  29. package/dist/cjs/tet-carousel.cjs.entry.js +10 -10
  30. package/dist/cjs/{tet-checkbox_3.cjs.entry.js → tet-checkbox_2.cjs.entry.js} +1 -453
  31. package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +4 -4
  32. package/dist/cjs/tet-cloud-configurator.cjs.entry.js +4 -4
  33. package/dist/cjs/tet-colors.cjs.entry.js +5 -5
  34. package/dist/cjs/tet-compare-card-v2.cjs.entry.js +3 -3
  35. package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
  36. package/dist/cjs/tet-compare-cards_2.cjs.entry.js +5 -5
  37. package/dist/cjs/tet-components.cjs.js +2 -2
  38. package/dist/cjs/tet-container_2.cjs.entry.js +2 -2
  39. package/dist/cjs/tet-countdown.cjs.entry.js +2 -2
  40. package/dist/cjs/tet-counter.cjs.entry.js +1 -1
  41. package/dist/cjs/tet-dialog.cjs.entry.js +4 -4
  42. package/dist/cjs/tet-display.cjs.entry.js +1 -1
  43. package/dist/cjs/tet-divider.cjs.entry.js +1 -1
  44. package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
  45. package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
  46. package/dist/cjs/tet-expansion-panel.cjs.entry.js +2 -2
  47. package/dist/cjs/tet-feedback-form.cjs.entry.js +4 -4
  48. package/dist/cjs/tet-filter.cjs.entry.js +1 -1
  49. package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
  50. package/dist/cjs/tet-font-weight.cjs.entry.js +2 -2
  51. package/dist/cjs/tet-fonts.cjs.entry.js +2 -2
  52. package/dist/cjs/tet-grid.cjs.entry.js +2 -2
  53. package/dist/cjs/tet-icon.cjs.entry.js +2 -2
  54. package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
  55. package/dist/cjs/tet-input.cjs.entry.js +4 -4
  56. package/dist/cjs/tet-layout.cjs.entry.js +2 -2
  57. package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
  58. package/dist/cjs/tet-link.cjs.entry.js +2 -2
  59. package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
  60. package/dist/cjs/tet-menu.cjs.entry.js +1 -1
  61. package/dist/cjs/tet-mini-compare-card.cjs.entry.js +1 -1
  62. package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +5 -5
  63. package/dist/cjs/tet-navigation-mobile.cjs.entry.js +7 -7
  64. package/dist/cjs/tet-news-card-list.cjs.entry.js +2 -2
  65. package/dist/cjs/tet-news-card.cjs.entry.js +2 -2
  66. package/dist/cjs/tet-notification.cjs.entry.js +2 -2
  67. package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
  68. package/dist/cjs/tet-paginator.cjs.entry.js +5 -5
  69. package/dist/cjs/tet-placeholder.cjs.entry.js +2 -2
  70. package/dist/cjs/tet-position.cjs.entry.js +1 -1
  71. package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
  72. package/dist/cjs/tet-radio_2.cjs.entry.js +3 -3
  73. package/dist/cjs/tet-range-slider.cjs.entry.js +8 -8
  74. package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
  75. package/dist/cjs/tet-snicker-card-group.cjs.entry.js +1 -1
  76. package/dist/cjs/tet-snicker-card.cjs.entry.js +4 -4
  77. package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
  78. package/dist/cjs/tet-spinner.cjs.entry.js +4 -4
  79. package/dist/cjs/tet-stepper-input.cjs.entry.js +5 -5
  80. package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
  81. package/dist/cjs/tet-sticky-offer.cjs.entry.js +2 -2
  82. package/dist/cjs/tet-support-search.cjs.entry.js +2 -2
  83. package/dist/cjs/tet-switch.cjs.entry.js +1 -1
  84. package/dist/cjs/tet-table.cjs.entry.js +1 -1
  85. package/dist/cjs/tet-tag_2.cjs.entry.js +6 -6
  86. package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
  87. package/dist/cjs/tet-text.cjs.entry.js +1 -1
  88. package/dist/cjs/tet-textarea.cjs.entry.js +3 -3
  89. package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +4 -4
  90. package/dist/cjs/tet-tooltip.cjs.entry.js +456 -0
  91. package/dist/cjs/tet-tv-program-channel-picker_3.cjs.entry.js +1465 -0
  92. package/dist/cjs/tet-tv-program-item.cjs.entry.js +217 -0
  93. package/dist/cjs/tet-tv-program-placeholders-C4m4UB1-.js +22 -0
  94. package/dist/cjs/tet-tv-program.cjs.entry.js +642 -3
  95. package/dist/cjs/{translations-Uvcq4kv8.js → translations-c8BeO6Gg.js} +2 -2
  96. package/dist/cjs/{typecheck--Bs-bZ_K.js → typecheck-Do6mN8Vg.js} +0 -2
  97. package/dist/collection/collection-manifest.json +3 -1
  98. package/dist/collection/components/advanced/address/tet-address-offers-filters/tet-address-offers-filters.js +1 -1
  99. package/dist/collection/components/advanced/address/tet-address-offers-v2/tet-address-offers-v2.js +1 -1
  100. package/dist/collection/components/advanced/address/tet-address-search/tet-address-search.js +3 -3
  101. package/dist/collection/components/advanced/address/tet-autocomplete-dropdown/tet-autocomplete-dropdown.js +1 -1
  102. package/dist/collection/components/advanced/cards/tet-business-compare-card/tet-business-compare-card.js +2 -2
  103. package/dist/collection/components/advanced/cards/tet-card-list/tet-card-list.js +4 -4
  104. package/dist/collection/components/advanced/cards/tet-news-card/tet-news-card.js +1 -1
  105. package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/tet-multi-step-dialog.js +1 -1
  106. package/dist/collection/components/advanced/forms/tet-availability-contact-form/tet-availability-contact-form.js +1 -1
  107. package/dist/collection/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.js +3 -3
  108. package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-content/tet-tab-content.js +2 -2
  109. package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-header/tet-tab-header.js +2 -2
  110. package/dist/collection/components/basic/buttons/tet-tag/tet-tag.js +2 -2
  111. package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +6 -6
  112. package/dist/collection/components/basic/loaders/tet-loader/tet-loader.js +1 -1
  113. package/dist/collection/components/basic/loaders/tet-placeholder/tet-placeholder.js +1 -1
  114. package/dist/collection/components/basic/loaders/tet-spinner/tet-spinner.js +3 -3
  115. package/dist/collection/components/basic/misc/tet-countdown/tet-countdown.js +1 -1
  116. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.js +2 -2
  117. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.js +1 -1
  118. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.js +1 -1
  119. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.js +1 -1
  120. package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.js +4 -4
  121. package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.js +7 -7
  122. package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.js +1 -1
  123. package/dist/collection/components/simple/inputs/tet-textarea/tet-textarea.js +2 -2
  124. package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +1 -1
  125. package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js +3 -3
  126. package/dist/collection/components/simple/menu/tet-paginator/tet-paginator.js +1 -1
  127. package/dist/collection/components/simple/misc/tet-sticky-offer/tet-sticky-offer.js +1 -1
  128. package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.css +5 -1
  129. package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +6 -6
  130. package/dist/collection/components/simple/structural/tet-expansion-panel/tet-expansion-panel.js +1 -1
  131. package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.js +1 -1
  132. package/dist/collection/components/simple/text-blocks/tet-tooltip/tet-tooltip.js +1 -1
  133. package/dist/collection/components/views/tet-address-offers-view/tet-address-offers-view.js +1 -1
  134. package/dist/collection/components/views/tet-address-offers-view-v2/tet-address-offers-view-v2.js +2 -2
  135. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.css +21 -8
  136. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.js +59 -39
  137. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.css +52 -36
  138. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.js +24 -30
  139. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.css +352 -0
  140. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.js +488 -0
  141. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.mock.js +45 -0
  142. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-schedule/tet-tv-program-schedule.css +567 -0
  143. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-schedule/tet-tv-program-schedule.js +1309 -0
  144. package/dist/collection/components/views/tet-tv-program/test/mock-schedule-layout.js +74 -0
  145. package/dist/collection/components/views/tet-tv-program/tet-tv-program-placeholders.js +8 -0
  146. package/dist/collection/components/views/tet-tv-program/tet-tv-program.css +777 -0
  147. package/dist/collection/components/views/tet-tv-program/tet-tv-program.js +638 -2
  148. package/dist/collection/components/views/tet-tv-program/tet-tv-program.types.js +1 -0
  149. package/dist/collection/components/views/tet-tv-program/utils/broadcast-time.js +26 -0
  150. package/dist/collection/components/views/tet-tv-program/utils/fill-program-gaps.js +44 -0
  151. package/dist/collection/components/views/tet-tv-program/utils/format-program-start-date.js +13 -0
  152. package/dist/collection/components/views/tet-tv-program/utils/tooltip-lifecycle.js +132 -0
  153. package/dist/collection/docs/styling/border-radius/tet-border-radius.js +1 -1
  154. package/dist/collection/docs/styling/colors/tet-colors.js +4 -4
  155. package/dist/collection/docs/styling/font-weight/tet-font-weight.js +1 -1
  156. package/dist/collection/docs/styling/fonts/tet-fonts.js +1 -1
  157. package/dist/collection/docs/styling/layout/tet-layout.js +1 -1
  158. package/dist/collection/docs/styling/link/tet-link.js +1 -1
  159. package/dist/collection/docs/styling/spacing/tet-spacing.js +1 -1
  160. package/dist/collection/docs/styling/tet-grid/tet-grid.js +1 -1
  161. package/dist/collection/services/api/index.js +1 -0
  162. package/dist/collection/services/api/services/tv/tv-program-types.js +1 -0
  163. package/dist/collection/services/api/services/tv/tv-program.js +31 -0
  164. package/dist/collection/services/utils/date.js +7 -0
  165. package/dist/collection/services/utils/index.js +1 -0
  166. package/dist/components/index.js +1 -1
  167. package/dist/components/{p-B9bE6qY-.js → p--_RUy11E.js} +1 -1
  168. package/dist/components/p-B-Tjx5SX.js +1 -0
  169. package/dist/components/{p-CgV4zAwQ.js → p-B4UX_mB_.js} +1 -1
  170. package/dist/components/{p-p-J7NvGs.js → p-B73K4uEg.js} +1 -1
  171. package/dist/components/{p-BztqMLE1.js → p-BAf_O-kb.js} +1 -1
  172. package/dist/components/{p-BcVrianM.js → p-BOsv3j3J.js} +1 -1
  173. package/dist/components/p-BQ5mo25G.js +1 -0
  174. package/dist/components/{p-BI70OOEF.js → p-BQjtvIgJ.js} +1 -1
  175. package/dist/components/p-BTZzfMYY.js +1 -0
  176. package/dist/components/{p-C-sZ3Bzu.js → p-BX98BUpV.js} +1 -1
  177. package/dist/components/p-Bdbn4prA.js +8 -0
  178. package/dist/components/{p-CF15dAPd.js → p-BjM9vx9w.js} +1 -1
  179. package/dist/components/{p-nKvolHsW.js → p-BkXzaJcc.js} +1 -1
  180. package/dist/components/{p-CYMnJi7q.js → p-ByM3JujT.js} +1 -1
  181. package/dist/components/{p-B5HqUnpw.js → p-C2nyJwDX.js} +1 -1
  182. package/dist/components/{p-CJnk1Plz.js → p-C50q8-fi.js} +1 -1
  183. package/dist/components/{p-DXQ-UeYl.js → p-C5f1C5m_.js} +1 -1
  184. package/dist/components/{p-t_FgKIcd.js → p-CEyoGS5R.js} +1 -1
  185. package/dist/components/{p-BrPUjt5B.js → p-CI8FUu6q.js} +1 -1
  186. package/dist/components/{p-CMxcvnRv.js → p-CKWJROPt.js} +1 -1
  187. package/dist/components/{p-B-1KdQSL.js → p-CVhyWWJA.js} +1 -1
  188. package/dist/components/p-CWuhYFDW.js +1 -0
  189. package/dist/components/{p-44eECwiT.js → p-CXjWLDzk.js} +1 -1
  190. package/dist/components/p-C_Jw5r9B.js +1 -0
  191. package/dist/components/{p-vu71OGLf.js → p-ClXBenaN.js} +1 -1
  192. package/dist/components/{p-B60jnxEn.js → p-ClkvaRio.js} +1 -1
  193. package/dist/components/{p-HzogPVbA.js → p-D323rUMJ.js} +1 -1
  194. package/dist/components/{p-C4uKGuRj.js → p-D4MolLd8.js} +1 -1
  195. package/dist/components/{p-CPGJg5Si.js → p-D4k1E1mH.js} +1 -1
  196. package/dist/components/p-D5YRHMvl.js +1 -0
  197. package/dist/components/p-D9QC8S_K.js +1 -0
  198. package/dist/components/{p-DikHJHTd.js → p-DBK9GhUz.js} +1 -1
  199. package/dist/components/{p-Bho4Xl9R.js → p-DCeNW6E9.js} +1 -1
  200. package/dist/components/{p-C32vgbsV.js → p-DIpqXULQ.js} +1 -1
  201. package/dist/components/p-DPGMd9pW.js +1 -0
  202. package/dist/components/{p-C61jDpta.js → p-DTOuhcpL.js} +1 -1
  203. package/dist/components/{p-DN2JwXg9.js → p-DZRioc0D.js} +1 -1
  204. package/dist/components/{p-B1d6HEqd.js → p-DZecnsEu.js} +1 -1
  205. package/dist/components/{p-CZach5oP.js → p-DezVRSSN.js} +1 -1
  206. package/dist/components/{p-CDUvchOX.js → p-DiSdptzb.js} +1 -1
  207. package/dist/components/{p-lEX8wezw.js → p-DoCUcvkE.js} +1 -1
  208. package/dist/components/{p-Bsqoxd9G.js → p-DobMlMDf.js} +1 -1
  209. package/dist/components/{p-BD6bBnqr.js → p-Dr3_Xm0C.js} +1 -1
  210. package/dist/components/{p-DnPS3TWn.js → p-JrKx7ojI.js} +1 -1
  211. package/dist/components/{p-mVj43aKR.js → p-OAkgt412.js} +1 -1
  212. package/dist/components/{p-Cb2bEUmu.js → p-QcD5cCtX.js} +1 -1
  213. package/dist/components/{p-D8avEs-F.js → p-QlXxBzaI.js} +1 -1
  214. package/dist/components/{p-Mpe-2CVQ.js → p-QlyBltAE.js} +1 -1
  215. package/dist/components/{p-CwZljiBM.js → p-R45gvsNR.js} +1 -1
  216. package/dist/components/{p-sgozlrhg.js → p-RQYdSAu8.js} +1 -1
  217. package/dist/components/{p-CvUaogvc.js → p-RcwM6MVX.js} +1 -1
  218. package/dist/components/p-S9EUQFLQ.js +1 -0
  219. package/dist/components/{p-Bc4oqt_L.js → p-W3LV-Z7z.js} +1 -1
  220. package/dist/components/p-_2UzwYR8.js +1 -0
  221. package/dist/components/{p-DKZxpjnL.js → p-_pn0YVXD.js} +1 -1
  222. package/dist/components/{p-BmH_7-IQ.js → p-gw3AOj6h.js} +1 -1
  223. package/dist/components/{p-Bw-D7nPx.js → p-sp4th_AU.js} +1 -1
  224. package/dist/components/{p-o4S5jRzK.js → p-vwpr_v76.js} +1 -1
  225. package/dist/components/tet-accordion.js +1 -1
  226. package/dist/components/tet-address-offers-filters-products.js +1 -1
  227. package/dist/components/tet-address-offers-filters.js +1 -1
  228. package/dist/components/tet-address-offers-v2.js +1 -1
  229. package/dist/components/tet-address-offers-view-v2.js +1 -1
  230. package/dist/components/tet-address-offers-view.js +1 -1
  231. package/dist/components/tet-address-offers.js +1 -1
  232. package/dist/components/tet-address-search.js +1 -1
  233. package/dist/components/tet-assembler.js +1 -1
  234. package/dist/components/tet-asset-availability-addresses.js +1 -1
  235. package/dist/components/tet-autocomplete-dropdown.js +1 -1
  236. package/dist/components/tet-autocomplete.js +1 -1
  237. package/dist/components/tet-availability-contact-form.js +1 -1
  238. package/dist/components/tet-b2b-check-out-form.js +1 -1
  239. package/dist/components/tet-b2b-compare-card.js +1 -1
  240. package/dist/components/tet-b2b-configurator-cart.js +1 -1
  241. package/dist/components/tet-b2b-configurator.js +1 -1
  242. package/dist/components/tet-banner-nav.js +1 -1
  243. package/dist/components/tet-bar-graph.js +1 -1
  244. package/dist/components/tet-border-radius.js +1 -1
  245. package/dist/components/tet-business-card.js +1 -1
  246. package/dist/components/tet-business-compare-card.js +1 -1
  247. package/dist/components/tet-business-navigation.js +1 -1
  248. package/dist/components/tet-business-round-stepper.js +1 -1
  249. package/dist/components/tet-business-summary-card.js +1 -1
  250. package/dist/components/tet-button.js +1 -1
  251. package/dist/components/tet-card-list.js +1 -1
  252. package/dist/components/tet-carousel.js +1 -1
  253. package/dist/components/tet-checkbox.js +1 -1
  254. package/dist/components/tet-cloud-application-form-dialog.js +1 -1
  255. package/dist/components/tet-cloud-configurator.js +1 -1
  256. package/dist/components/tet-colors.js +1 -1
  257. package/dist/components/tet-compare-card-v2.js +1 -1
  258. package/dist/components/tet-compare-card-v3.js +1 -1
  259. package/dist/components/tet-compare-card.js +1 -1
  260. package/dist/components/tet-compare-cards-tab.js +1 -1
  261. package/dist/components/tet-compare-cards.js +1 -1
  262. package/dist/components/tet-container.js +1 -1
  263. package/dist/components/tet-countdown.js +1 -1
  264. package/dist/components/tet-counter.js +1 -1
  265. package/dist/components/tet-dialog.js +1 -1
  266. package/dist/components/tet-display.js +1 -1
  267. package/dist/components/tet-divider.js +1 -1
  268. package/dist/components/tet-dropdown.js +1 -1
  269. package/dist/components/tet-dynamic-card.js +1 -1
  270. package/dist/components/tet-expandable-input.js +1 -1
  271. package/dist/components/tet-expansion-panel.js +1 -1
  272. package/dist/components/tet-feedback-form.js +1 -1
  273. package/dist/components/tet-filter.js +1 -1
  274. package/dist/components/tet-floating-block.js +1 -1
  275. package/dist/components/tet-font-weight.js +1 -1
  276. package/dist/components/tet-fonts.js +1 -1
  277. package/dist/components/tet-grid.js +1 -1
  278. package/dist/components/tet-icon.js +1 -1
  279. package/dist/components/tet-inline-message.js +1 -1
  280. package/dist/components/tet-input.js +1 -1
  281. package/dist/components/tet-layout.js +1 -1
  282. package/dist/components/tet-link-card-list.js +1 -1
  283. package/dist/components/tet-link.js +1 -1
  284. package/dist/components/tet-loader.js +1 -1
  285. package/dist/components/tet-menu-mobile.js +1 -1
  286. package/dist/components/tet-menu.js +1 -1
  287. package/dist/components/tet-mini-compare-card.js +1 -1
  288. package/dist/components/tet-multi-step-dialog.js +1 -1
  289. package/dist/components/tet-navigation-mobile.js +1 -1
  290. package/dist/components/tet-news-card-list.js +1 -1
  291. package/dist/components/tet-news-card.js +1 -1
  292. package/dist/components/tet-notification.js +1 -1
  293. package/dist/components/tet-number-input.js +1 -1
  294. package/dist/components/tet-paginator.js +1 -1
  295. package/dist/components/tet-placeholder.js +1 -1
  296. package/dist/components/tet-position.js +1 -1
  297. package/dist/components/tet-price-view.js +1 -1
  298. package/dist/components/tet-radio-blocks.js +1 -1
  299. package/dist/components/tet-radio.js +1 -1
  300. package/dist/components/tet-range-slider.js +1 -1
  301. package/dist/components/tet-round-stepper.js +1 -1
  302. package/dist/components/tet-selection-list.js +1 -1
  303. package/dist/components/tet-snicker-card-group.js +1 -1
  304. package/dist/components/tet-snicker-card.js +1 -1
  305. package/dist/components/tet-spacing.js +1 -1
  306. package/dist/components/tet-spinner.js +1 -1
  307. package/dist/components/tet-stepper-input.js +1 -1
  308. package/dist/components/tet-stepper-v3.js +1 -1
  309. package/dist/components/tet-sticky-offer.js +1 -1
  310. package/dist/components/tet-support-search.js +1 -1
  311. package/dist/components/tet-switch.js +1 -1
  312. package/dist/components/tet-tab-content.js +1 -1
  313. package/dist/components/tet-tab-header.js +1 -1
  314. package/dist/components/tet-table.js +1 -1
  315. package/dist/components/tet-tag-group.js +1 -1
  316. package/dist/components/tet-tag.js +1 -1
  317. package/dist/components/tet-text-list.js +1 -1
  318. package/dist/components/tet-text.js +1 -1
  319. package/dist/components/tet-textarea.js +1 -1
  320. package/dist/components/tet-thank-you-view-v3.js +1 -1
  321. package/dist/components/tet-tooltip.js +1 -1
  322. package/dist/components/tet-tv-program-channel-picker.js +1 -1
  323. package/dist/components/tet-tv-program-date-picker.js +1 -1
  324. package/dist/components/{tet-datepicker.d.ts → tet-tv-program-item.d.ts} +4 -4
  325. package/dist/components/tet-tv-program-item.js +1 -0
  326. package/dist/components/tet-tv-program-schedule.d.ts +11 -0
  327. package/dist/components/tet-tv-program-schedule.js +1 -0
  328. package/dist/components/tet-tv-program.js +1 -1
  329. package/dist/esm/format-program-start-date-BTxL4Knq.js +148 -0
  330. package/dist/esm/{http-codes-CHPW8K5J.js → http-codes-8cHNuJ77.js} +2 -1
  331. package/dist/esm/{index-gA3_LS77.js → index-CO8AyGrA.js} +21 -21
  332. package/dist/esm/{index-BzVLx-ae.js → index-Rx46bgOe.js} +1 -1
  333. package/dist/esm/loader.js +3 -3
  334. package/dist/esm/{product-comparison-09p7FlLY.js → product-comparison-DZV6jdwa.js} +1 -1
  335. package/dist/esm/{service-availability-services-DHbWTGBw.js → service-availability-services-DglLgqmx.js} +1 -1
  336. package/dist/esm/{string-D0GJDW-O.js → string-C9BlrGW8.js} +1 -4
  337. package/dist/esm/tet-accordion.entry.js +8 -8
  338. package/dist/esm/tet-address-offers-filters-products_2.entry.js +4 -4
  339. package/dist/esm/tet-address-offers-v2.entry.js +6 -6
  340. package/dist/esm/tet-address-offers-view-v2.entry.js +6 -6
  341. package/dist/esm/tet-address-offers-view.entry.js +5 -5
  342. package/dist/esm/tet-address-offers_3.entry.js +7 -7
  343. package/dist/esm/tet-address-search_2.entry.js +9 -9
  344. package/dist/esm/tet-assembler_3.entry.js +5 -5
  345. package/dist/esm/tet-autocomplete-dropdown.entry.js +3 -3
  346. package/dist/esm/tet-autocomplete_2.entry.js +4 -4
  347. package/dist/esm/tet-b2b-check-out-form_5.entry.js +7 -7
  348. package/dist/esm/tet-b2b-configurator.entry.js +5 -5
  349. package/dist/esm/tet-banner-nav.entry.js +4 -4
  350. package/dist/esm/tet-bar-graph.entry.js +1 -1
  351. package/dist/esm/tet-border-radius.entry.js +2 -2
  352. package/dist/esm/tet-business-card.entry.js +1 -1
  353. package/dist/esm/tet-business-compare-card.entry.js +3 -3
  354. package/dist/esm/tet-business-round-stepper.entry.js +1 -1
  355. package/dist/esm/tet-button.entry.js +1 -1
  356. package/dist/esm/tet-card-list.entry.js +5 -5
  357. package/dist/esm/tet-carousel.entry.js +10 -10
  358. package/dist/esm/{tet-checkbox_3.entry.js → tet-checkbox_2.entry.js} +2 -453
  359. package/dist/esm/tet-cloud-application-form-dialog.entry.js +4 -4
  360. package/dist/esm/tet-cloud-configurator.entry.js +4 -4
  361. package/dist/esm/tet-colors.entry.js +5 -5
  362. package/dist/esm/tet-compare-card-v2.entry.js +3 -3
  363. package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
  364. package/dist/esm/tet-compare-cards_2.entry.js +5 -5
  365. package/dist/esm/tet-components.js +3 -3
  366. package/dist/esm/tet-container_2.entry.js +2 -2
  367. package/dist/esm/tet-countdown.entry.js +2 -2
  368. package/dist/esm/tet-counter.entry.js +1 -1
  369. package/dist/esm/tet-dialog.entry.js +4 -4
  370. package/dist/esm/tet-display.entry.js +1 -1
  371. package/dist/esm/tet-divider.entry.js +1 -1
  372. package/dist/esm/tet-dynamic-card.entry.js +1 -1
  373. package/dist/esm/tet-expandable-input.entry.js +1 -1
  374. package/dist/esm/tet-expansion-panel.entry.js +2 -2
  375. package/dist/esm/tet-feedback-form.entry.js +4 -4
  376. package/dist/esm/tet-filter.entry.js +1 -1
  377. package/dist/esm/tet-floating-block.entry.js +1 -1
  378. package/dist/esm/tet-font-weight.entry.js +2 -2
  379. package/dist/esm/tet-fonts.entry.js +2 -2
  380. package/dist/esm/tet-grid.entry.js +2 -2
  381. package/dist/esm/tet-icon.entry.js +2 -2
  382. package/dist/esm/tet-inline-message.entry.js +1 -1
  383. package/dist/esm/tet-input.entry.js +4 -4
  384. package/dist/esm/tet-layout.entry.js +2 -2
  385. package/dist/esm/tet-link-card-list.entry.js +1 -1
  386. package/dist/esm/tet-link.entry.js +2 -2
  387. package/dist/esm/tet-menu-mobile.entry.js +1 -1
  388. package/dist/esm/tet-menu.entry.js +1 -1
  389. package/dist/esm/tet-mini-compare-card.entry.js +1 -1
  390. package/dist/esm/tet-multi-step-dialog.entry.js +5 -5
  391. package/dist/esm/tet-navigation-mobile.entry.js +7 -7
  392. package/dist/esm/tet-news-card-list.entry.js +2 -2
  393. package/dist/esm/tet-news-card.entry.js +2 -2
  394. package/dist/esm/tet-notification.entry.js +2 -2
  395. package/dist/esm/tet-number-input.entry.js +1 -1
  396. package/dist/esm/tet-paginator.entry.js +5 -5
  397. package/dist/esm/tet-placeholder.entry.js +2 -2
  398. package/dist/esm/tet-position.entry.js +1 -1
  399. package/dist/esm/tet-price-view.entry.js +1 -1
  400. package/dist/esm/tet-radio_2.entry.js +3 -3
  401. package/dist/esm/tet-range-slider.entry.js +8 -8
  402. package/dist/esm/tet-round-stepper.entry.js +1 -1
  403. package/dist/esm/tet-snicker-card-group.entry.js +1 -1
  404. package/dist/esm/tet-snicker-card.entry.js +4 -4
  405. package/dist/esm/tet-spacing.entry.js +2 -2
  406. package/dist/esm/tet-spinner.entry.js +4 -4
  407. package/dist/esm/tet-stepper-input.entry.js +5 -5
  408. package/dist/esm/tet-stepper-v3.entry.js +1 -1
  409. package/dist/esm/tet-sticky-offer.entry.js +2 -2
  410. package/dist/esm/tet-support-search.entry.js +2 -2
  411. package/dist/esm/tet-switch.entry.js +1 -1
  412. package/dist/esm/tet-table.entry.js +1 -1
  413. package/dist/esm/tet-tag_2.entry.js +6 -6
  414. package/dist/esm/tet-text-list.entry.js +1 -1
  415. package/dist/esm/tet-text.entry.js +1 -1
  416. package/dist/esm/tet-textarea.entry.js +3 -3
  417. package/dist/esm/tet-thank-you-view-v3.entry.js +4 -4
  418. package/dist/esm/tet-tooltip.entry.js +454 -0
  419. package/dist/esm/tet-tv-program-channel-picker_3.entry.js +1461 -0
  420. package/dist/esm/tet-tv-program-item.entry.js +215 -0
  421. package/dist/esm/tet-tv-program-placeholders-DyupRSa9.js +19 -0
  422. package/dist/esm/tet-tv-program.entry.js +642 -3
  423. package/dist/esm/{translations-CLCWF8K_.js → translations-Cytyv90Z.js} +2 -2
  424. package/dist/esm/{typecheck-Bvqcvhjw.js → typecheck-CaZKtSyx.js} +1 -2
  425. package/dist/tet-components/{p-8b7bbbbf.entry.js → p-00440570.entry.js} +1 -1
  426. package/dist/tet-components/{p-9d612283.entry.js → p-00ee3383.entry.js} +1 -1
  427. package/dist/tet-components/{p-19cb8e38.entry.js → p-026c4688.entry.js} +1 -1
  428. package/dist/tet-components/{p-e45dab2b.entry.js → p-0a35f634.entry.js} +1 -1
  429. package/dist/tet-components/{p-72c54f04.entry.js → p-0be0b06d.entry.js} +1 -1
  430. package/dist/tet-components/{p-af7f7020.entry.js → p-1125417c.entry.js} +1 -1
  431. package/dist/tet-components/{p-0026968d.entry.js → p-17dd27fc.entry.js} +1 -1
  432. package/dist/tet-components/{p-b389b07a.entry.js → p-18e188fe.entry.js} +1 -1
  433. package/dist/tet-components/p-1Pg6Bg5R.js +1 -0
  434. package/dist/tet-components/{p-22db539b.entry.js → p-1ee4e8b2.entry.js} +1 -1
  435. package/dist/tet-components/{p-0bd6e06e.entry.js → p-25b05e87.entry.js} +1 -1
  436. package/dist/tet-components/p-27d7ad18.entry.js +1 -0
  437. package/dist/tet-components/{p-a2e40f04.entry.js → p-285a92c5.entry.js} +1 -1
  438. package/dist/tet-components/{p-12fe3881.entry.js → p-2a528ade.entry.js} +1 -1
  439. package/dist/tet-components/{p-0e4129ea.entry.js → p-2c75f965.entry.js} +1 -1
  440. package/dist/tet-components/{p-c5068d10.entry.js → p-2eafdaed.entry.js} +1 -1
  441. package/dist/tet-components/{p-0e9201e6.entry.js → p-335a6617.entry.js} +1 -1
  442. package/dist/tet-components/{p-daa8ca5c.entry.js → p-38ac5d83.entry.js} +1 -1
  443. package/dist/tet-components/{p-e88e50e6.entry.js → p-39431ec5.entry.js} +1 -1
  444. package/dist/tet-components/{p-7672a3cf.entry.js → p-3ad392f5.entry.js} +1 -1
  445. package/dist/tet-components/p-3bf86def.entry.js +1 -0
  446. package/dist/tet-components/p-3ec54e1f.entry.js +1 -0
  447. package/dist/tet-components/{p-8329cd9d.entry.js → p-421edd38.entry.js} +1 -1
  448. package/dist/tet-components/{p-7d62e8e0.entry.js → p-4398cb86.entry.js} +1 -1
  449. package/dist/tet-components/{p-039121d4.entry.js → p-43b92cf1.entry.js} +1 -1
  450. package/dist/tet-components/p-444eec19.entry.js +1 -0
  451. package/dist/tet-components/{p-f8aa1f9b.entry.js → p-53288215.entry.js} +1 -1
  452. package/dist/tet-components/{p-8424ddb6.entry.js → p-5466531d.entry.js} +1 -1
  453. package/dist/tet-components/{p-a9706390.entry.js → p-56b3c60a.entry.js} +1 -1
  454. package/dist/tet-components/{p-9f8c0d62.entry.js → p-56c7ed22.entry.js} +1 -1
  455. package/dist/tet-components/p-58dc974a.entry.js +1 -0
  456. package/dist/tet-components/{p-827abc22.entry.js → p-5c9f805c.entry.js} +1 -1
  457. package/dist/tet-components/{p-1af6b8cb.entry.js → p-5cf98e2a.entry.js} +1 -1
  458. package/dist/tet-components/{p-9ab815b3.entry.js → p-5f683fd6.entry.js} +1 -1
  459. package/dist/tet-components/{p-bc73adcc.entry.js → p-61cb3c7b.entry.js} +1 -1
  460. package/dist/tet-components/{p-318947f9.entry.js → p-671a5b50.entry.js} +1 -1
  461. package/dist/tet-components/{p-aa0b655b.entry.js → p-694911f0.entry.js} +1 -1
  462. package/dist/tet-components/{p-e7c43c95.entry.js → p-69c6c216.entry.js} +1 -1
  463. package/dist/tet-components/{p-73acf518.entry.js → p-6baf4f40.entry.js} +1 -1
  464. package/dist/tet-components/p-6c3a131b.entry.js +1 -0
  465. package/dist/tet-components/{p-13550c14.entry.js → p-6e126f61.entry.js} +1 -1
  466. package/dist/tet-components/{p-f53d2d9f.entry.js → p-6f449651.entry.js} +1 -1
  467. package/dist/tet-components/{p-f73c5481.entry.js → p-70775616.entry.js} +1 -1
  468. package/dist/tet-components/{p-0e021d89.entry.js → p-7d81be98.entry.js} +1 -1
  469. package/dist/tet-components/{p-db92c865.entry.js → p-7da500c3.entry.js} +1 -1
  470. package/dist/tet-components/{p-324d8840.entry.js → p-82de3c82.entry.js} +1 -1
  471. package/dist/tet-components/{p-c778dbd4.entry.js → p-84153818.entry.js} +1 -1
  472. package/dist/tet-components/{p-c321199b.entry.js → p-845addd5.entry.js} +1 -1
  473. package/dist/tet-components/{p-b370c444.entry.js → p-88184103.entry.js} +1 -1
  474. package/dist/tet-components/p-8c53b195.entry.js +1 -0
  475. package/dist/tet-components/{p-03b6c7a2.entry.js → p-998ee6ff.entry.js} +1 -1
  476. package/dist/tet-components/{p-e9e288f6.entry.js → p-9cb7e09d.entry.js} +1 -1
  477. package/dist/tet-components/{p-4a21fdfb.entry.js → p-9fcebf59.entry.js} +1 -1
  478. package/dist/tet-components/{p-nYl-0ap-.js → p-B00u2s3v.js} +1 -1
  479. package/dist/tet-components/p-BCewZzcy.js +8 -0
  480. package/dist/tet-components/p-BTxL4Knq.js +1 -0
  481. package/dist/tet-components/p-C9BlrGW8.js +1 -0
  482. package/dist/tet-components/p-CO8AyGrA.js +3 -0
  483. package/dist/tet-components/p-CaZKtSyx.js +1 -0
  484. package/dist/tet-components/p-Cak7jORV.js +1 -0
  485. package/dist/tet-components/{p-AT09y63b.js → p-DSi6YWYP.js} +1 -1
  486. package/dist/tet-components/{p-Th74Kc5K.js → p-WCtqtcml.js} +1 -1
  487. package/dist/tet-components/{p-8b2edb99.entry.js → p-a5dc9b50.entry.js} +1 -1
  488. package/dist/tet-components/{p-ff164570.entry.js → p-a72a6886.entry.js} +1 -1
  489. package/dist/tet-components/{p-484266ca.entry.js → p-aab96319.entry.js} +1 -1
  490. package/dist/tet-components/{p-6800ae9e.entry.js → p-afdfbbe6.entry.js} +1 -1
  491. package/dist/tet-components/{p-0b122cc1.entry.js → p-b32bfbcc.entry.js} +1 -1
  492. package/dist/tet-components/{p-a91c8e30.entry.js → p-b394da8f.entry.js} +1 -1
  493. package/dist/tet-components/{p-25c80589.entry.js → p-b47dbd57.entry.js} +1 -1
  494. package/dist/tet-components/{p-675387bc.entry.js → p-b495c225.entry.js} +1 -1
  495. package/dist/tet-components/{p-6a3891bf.entry.js → p-b85587af.entry.js} +1 -1
  496. package/dist/tet-components/{p-845419ea.entry.js → p-baf51820.entry.js} +1 -1
  497. package/dist/tet-components/{p-17f8270f.entry.js → p-bb72ca94.entry.js} +1 -1
  498. package/dist/tet-components/{p-7b98b883.entry.js → p-bbde7f66.entry.js} +1 -1
  499. package/dist/tet-components/{p-1ce9b751.entry.js → p-bc168e7d.entry.js} +1 -1
  500. package/dist/tet-components/{p-ae31acd5.entry.js → p-c0c72e90.entry.js} +1 -1
  501. package/dist/tet-components/{p-3dd266f3.entry.js → p-c1e542f3.entry.js} +1 -1
  502. package/dist/tet-components/{p-1ed0c66f.entry.js → p-c66fa72e.entry.js} +1 -1
  503. package/dist/tet-components/{p-e59ec4c3.entry.js → p-cc26cad3.entry.js} +1 -1
  504. package/dist/tet-components/{p-467663a9.entry.js → p-d0824b42.entry.js} +1 -1
  505. package/dist/tet-components/{p-73a66398.entry.js → p-d0e27220.entry.js} +1 -1
  506. package/dist/tet-components/{p-ebd66166.entry.js → p-d2bfb56b.entry.js} +1 -1
  507. package/dist/tet-components/{p-57d07760.entry.js → p-d9059fe6.entry.js} +1 -1
  508. package/dist/tet-components/{p-231dde32.entry.js → p-dce8109c.entry.js} +1 -1
  509. package/dist/tet-components/{p-0d0de163.entry.js → p-e6ae26c9.entry.js} +1 -1
  510. package/dist/tet-components/{p-0744b479.entry.js → p-e813e289.entry.js} +1 -1
  511. package/dist/tet-components/{p-2be883e9.entry.js → p-e8395909.entry.js} +1 -1
  512. package/dist/tet-components/{p-7dfd519c.entry.js → p-eac96e34.entry.js} +1 -1
  513. package/dist/tet-components/{p-ac515335.entry.js → p-ece42f8d.entry.js} +1 -1
  514. package/dist/tet-components/{p-7c1dd176.entry.js → p-edd7aeaa.entry.js} +1 -1
  515. package/dist/tet-components/{p-32983951.entry.js → p-ef66b469.entry.js} +1 -1
  516. package/dist/tet-components/{p-16282657.entry.js → p-f1512e81.entry.js} +1 -1
  517. package/dist/tet-components/{p-2884891b.entry.js → p-f8106629.entry.js} +1 -1
  518. package/dist/tet-components/{p-76be889b.entry.js → p-ff09a8f4.entry.js} +1 -1
  519. package/dist/tet-components/tet-components.esm.js +1 -1
  520. package/dist/types/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.d.ts +9 -13
  521. package/dist/types/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.d.ts +1 -3
  522. package/dist/types/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.d.ts +62 -0
  523. package/dist/types/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.mock.d.ts +2 -0
  524. package/dist/types/components/views/tet-tv-program/components/tet-tv-program-schedule/tet-tv-program-schedule.d.ts +174 -0
  525. package/dist/types/components/views/tet-tv-program/test/mock-schedule-layout.d.ts +4 -0
  526. package/dist/types/components/views/tet-tv-program/tet-tv-program-placeholders.d.ts +2 -0
  527. package/dist/types/components/views/tet-tv-program/tet-tv-program.d.ts +96 -0
  528. package/dist/types/components/views/tet-tv-program/tet-tv-program.types.d.ts +30 -0
  529. package/dist/types/components/views/tet-tv-program/utils/broadcast-time.d.ts +14 -0
  530. package/dist/types/components/views/tet-tv-program/utils/fill-program-gaps.d.ts +3 -0
  531. package/dist/types/components/views/tet-tv-program/utils/format-program-start-date.d.ts +1 -0
  532. package/dist/types/components/views/tet-tv-program/utils/tooltip-lifecycle.d.ts +22 -0
  533. package/dist/types/components.d.ts +339 -389
  534. package/dist/types/services/api/index.d.ts +2 -0
  535. package/dist/types/services/api/services/tv/tv-program-types.d.ts +46 -0
  536. package/dist/types/services/api/services/tv/tv-program.d.ts +7 -0
  537. package/dist/types/services/utils/date.d.ts +2 -0
  538. package/dist/types/services/utils/index.d.ts +1 -0
  539. package/package.json +1 -1
  540. package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +0 -387
  541. package/dist/cjs/tet-datepicker.cjs.entry.js +0 -132
  542. package/dist/cjs/tet-tv-program-channel-picker_2.cjs.entry.js +0 -536
  543. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.css +0 -393
  544. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.css +0 -455
  545. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.css +0 -382
  546. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.css +0 -382
  547. package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.css +0 -380
  548. package/dist/components/p-BMSAKp34.js +0 -1
  549. package/dist/components/p-Br4jWI9B.js +0 -8
  550. package/dist/components/p-C9dDgHzh.js +0 -1
  551. package/dist/components/p-CSxtbfBJ.js +0 -1
  552. package/dist/components/p-Cdi7KDBd.js +0 -1
  553. package/dist/components/p-Cef0hbKH.js +0 -1
  554. package/dist/components/p-CoQ-OVcl.js +0 -1
  555. package/dist/components/p-Czx7ardH.js +0 -1
  556. package/dist/components/p-D0GJDW-O.js +0 -1
  557. package/dist/components/p-DgT79UG-.js +0 -1
  558. package/dist/components/p-DrFW6lxe.js +0 -1
  559. package/dist/components/p-DutLsF-O.js +0 -1
  560. package/dist/components/p-Lpb2mgqh.js +0 -1
  561. package/dist/components/p-Q3NUC_eC.js +0 -1
  562. package/dist/components/tet-datepicker-header.d.ts +0 -11
  563. package/dist/components/tet-datepicker-header.js +0 -1
  564. package/dist/components/tet-datepicker-month-view.d.ts +0 -11
  565. package/dist/components/tet-datepicker-month-view.js +0 -1
  566. package/dist/components/tet-datepicker-multi-year-view.d.ts +0 -11
  567. package/dist/components/tet-datepicker-multi-year-view.js +0 -1
  568. package/dist/components/tet-datepicker-year-view.d.ts +0 -11
  569. package/dist/components/tet-datepicker-year-view.js +0 -1
  570. package/dist/components/tet-datepicker.js +0 -1
  571. package/dist/esm/tet-datepicker-header_4.entry.js +0 -382
  572. package/dist/esm/tet-datepicker.entry.js +0 -130
  573. package/dist/esm/tet-tv-program-channel-picker_2.entry.js +0 -533
  574. package/dist/tet-components/p-340c3e79.entry.js +0 -1
  575. package/dist/tet-components/p-3a573d6e.entry.js +0 -1
  576. package/dist/tet-components/p-7d218d65.entry.js +0 -1
  577. package/dist/tet-components/p-Bvqcvhjw.js +0 -1
  578. package/dist/tet-components/p-CNGb2lWC.js +0 -8
  579. package/dist/tet-components/p-ChdlTQSF.js +0 -1
  580. package/dist/tet-components/p-D0GJDW-O.js +0 -1
  581. package/dist/tet-components/p-aea861c9.entry.js +0 -1
  582. package/dist/tet-components/p-b21b4329.entry.js +0 -1
  583. package/dist/tet-components/p-c102d7e8.entry.js +0 -1
  584. package/dist/tet-components/p-dabdfe62.entry.js +0 -1
  585. package/dist/tet-components/p-gA3_LS77.js +0 -3
  586. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.d.ts +0 -21
  587. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.d.ts +0 -45
  588. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.d.ts +0 -20
  589. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.d.ts +0 -20
  590. package/dist/types/components/simple/inputs/tet-datepicker/tet-datepicker.d.ts +0 -47
@@ -1 +1 @@
1
- import{A as s,e}from"./p-CNGb2lWC.js";const o=o=>{const r=e.serviceAvailabilityServices;return(new s).setUrl(r+"?addressKey="+o).setOptions({method:"GET"}).setErrorFallbackValue([]).execute()};export{o as s}
1
+ import{A as s,e}from"./p-BCewZzcy.js";const o=o=>{const r=e.serviceAvailabilityServices;return(new s).setUrl(r+"?addressKey="+o).setOptions({method:"GET"}).setErrorFallbackValue([]).execute()};export{o as s}
@@ -0,0 +1,8 @@
1
+ import{E as t}from"./p-CO8AyGrA.js";class e{url;options;data;errorFallbackValue;defaultOptions={mode:"cors"};setUrl(t){return this.url=t,this}setOptions(t){return this.options=t,this}setData(t){return this.data=t,this}setErrorFallbackValue(t){return this.errorFallbackValue=t,this}execute(t=!1){return fetch(this.url,{...this.defaultOptions,...this.options,body:JSON.stringify(this.data)}).then((async e=>t?e:(await e.json())?.data)).catch((t=>{if(void 0!==this.errorFallbackValue)return this.errorFallbackValue;throw t}))}}var n={endpoints:{operations:"/operations/",address:"/addresses/",addressSearch:"/addresses/search/",translations:"/translations/",queryCustomer:"/customer/data/",customerAssets:"/customer/assets/",productComparison:"/v2/sac/product-data",catalogOffers:"/catalog/offers/",createCallCenterTask:"/tasks/create-callcenter-task/",componentData:"/web-components/data/",tvPlatformChannels:"/tv/channels/platform/",tvProgram:"/tv/program/",tvPackages:"/tv/packages/",metastoreProducts:"/metastore/products",cloudConfigurator:"/metastore/cloud-calculator-fields",serviceAvailabilityServices:"/sac/available-services",b2bConfigurator:"/metastore/b2b/configurator",assemblerScenario:"/sac/assembler"},testing:{baseUrl:"https://tst-gateway.tet.lv/api"},staging:{baseUrl:"https://uat-gateway.tet.lv/api"},production:{baseUrl:"https://gateway.tet.lv/api"}};const i=n.endpoints,r=n[t.environment]??{},s=Object.keys(i??[]).reduce(((t,e)=>({...t,[e]:`${r.baseUrl}${i[e]}`})),{})??{};function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){return e&&function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(){return c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},c.apply(this,arguments)}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=l(t);if(e){var r=l(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}var v=function(){function t(){h(this,t)}return u(t,[{key:"listenForWhisper",value:function(t,e){return this.listen(".client-"+t,e)}},{key:"notification",value:function(t){return this.listen(".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated",t)}},{key:"stopListeningForWhisper",value:function(t,e){return this.stopListening(".client-"+t,e)}}]),t}(),p=function(){function t(e){h(this,t),this.namespace=e}return u(t,[{key:"format",value:function(t){return[".","\\"].includes(t.charAt(0))?t.substring(1):(this.namespace&&(t=this.namespace+"."+t),t.replace(/\./g,"\\"))}},{key:"setNamespace",value:function(t){this.namespace=t}}]),t}(),w=function(){a(e,v);var t=d(e);function e(n,i,r){var s;return h(this,e),(s=t.call(this)).name=i,s.pusher=n,s.options=r,s.eventFormatter=new p(s.options.namespace),s.subscribe(),s}return u(e,[{key:"subscribe",value:function(){this.subscription=this.pusher.subscribe(this.name)}},{key:"unsubscribe",value:function(){this.pusher.unsubscribe(this.name)}},{key:"listen",value:function(t,e){return this.on(this.eventFormatter.format(t),e),this}},{key:"listenToAll",value:function(t){var e=this;return this.subscription.bind_global((function(n,i){if(!n.startsWith("pusher:")){var r=e.options.namespace.replace(/\./g,"\\"),s=n.startsWith(r)?n.substring(r.length+1):"."+n;t(s,i)}})),this}},{key:"stopListening",value:function(t,e){return e?this.subscription.unbind(this.eventFormatter.format(t),e):this.subscription.unbind(this.eventFormatter.format(t)),this}},{key:"stopListeningToAll",value:function(t){return t?this.subscription.unbind_global(t):this.subscription.unbind_global(),this}},{key:"subscribed",value:function(t){return this.on("pusher:subscription_succeeded",(function(){t()})),this}},{key:"error",value:function(t){return this.on("pusher:subscription_error",(function(e){t(e)})),this}},{key:"on",value:function(t,e){return this.subscription.bind(t,e),this}}]),e}(),b=function(){a(e,w);var t=d(e);function e(){return h(this,e),t.apply(this,arguments)}return u(e,[{key:"whisper",value:function(t,e){return this.pusher.channels.channels[this.name].trigger("client-".concat(t),e),this}}]),e}(),y=function(){a(e,w);var t=d(e);function e(){return h(this,e),t.apply(this,arguments)}return u(e,[{key:"whisper",value:function(t,e){return this.pusher.channels.channels[this.name].trigger("client-".concat(t),e),this}}]),e}(),g=function(){a(e,w);var t=d(e);function e(){return h(this,e),t.apply(this,arguments)}return u(e,[{key:"here",value:function(t){return this.on("pusher:subscription_succeeded",(function(e){t(Object.keys(e.members).map((function(t){return e.members[t]})))})),this}},{key:"joining",value:function(t){return this.on("pusher:member_added",(function(e){t(e.info)})),this}},{key:"whisper",value:function(t,e){return this.pusher.channels.channels[this.name].trigger("client-".concat(t),e),this}},{key:"leaving",value:function(t){return this.on("pusher:member_removed",(function(e){t(e.info)})),this}}]),e}(),k=function(){a(e,v);var t=d(e);function e(n,i,r){var s;return h(this,e),(s=t.call(this)).events={},s.listeners={},s.name=i,s.socket=n,s.options=r,s.eventFormatter=new p(s.options.namespace),s.subscribe(),s}return u(e,[{key:"subscribe",value:function(){this.socket.emit("subscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"unsubscribe",value:function(){this.unbind(),this.socket.emit("unsubscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"listen",value:function(t,e){return this.on(this.eventFormatter.format(t),e),this}},{key:"stopListening",value:function(t,e){return this.unbindEvent(this.eventFormatter.format(t),e),this}},{key:"subscribed",value:function(t){return this.on("connect",(function(e){t(e)})),this}},{key:"error",value:function(){return this}},{key:"on",value:function(t,e){var n=this;return this.listeners[t]=this.listeners[t]||[],this.events[t]||(this.events[t]=function(e,i){n.name===e&&n.listeners[t]&&n.listeners[t].forEach((function(t){return t(i)}))},this.socket.on(t,this.events[t])),this.listeners[t].push(e),this}},{key:"unbind",value:function(){var t=this;Object.keys(this.events).forEach((function(e){t.unbindEvent(e)}))}},{key:"unbindEvent",value:function(t,e){this.listeners[t]=this.listeners[t]||[],e&&(this.listeners[t]=this.listeners[t].filter((function(t){return t!==e}))),e&&0!==this.listeners[t].length||(this.events[t]&&(this.socket.removeListener(t,this.events[t]),delete this.events[t]),delete this.listeners[t])}}]),e}(),m=function(){a(e,k);var t=d(e);function e(){return h(this,e),t.apply(this,arguments)}return u(e,[{key:"whisper",value:function(t,e){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(t),data:e}),this}}]),e}(),S=function(){a(e,m);var t=d(e);function e(){return h(this,e),t.apply(this,arguments)}return u(e,[{key:"here",value:function(t){return this.on("presence:subscribed",(function(e){t(e.map((function(t){return t.user_info})))})),this}},{key:"joining",value:function(t){return this.on("presence:joining",(function(e){return t(e.user_info)})),this}},{key:"whisper",value:function(t,e){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(t),data:e}),this}},{key:"leaving",value:function(t){return this.on("presence:leaving",(function(e){return t(e.user_info)})),this}}]),e}(),_=function(){a(e,v);var t=d(e);function e(){return h(this,e),t.apply(this,arguments)}return u(e,[{key:"subscribe",value:function(){}},{key:"unsubscribe",value:function(){}},{key:"listen",value:function(){return this}},{key:"listenToAll",value:function(){return this}},{key:"stopListening",value:function(){return this}},{key:"subscribed",value:function(){return this}},{key:"error",value:function(){return this}},{key:"on",value:function(){return this}}]),e}(),j=function(){a(e,_);var t=d(e);function e(){return h(this,e),t.apply(this,arguments)}return u(e,[{key:"whisper",value:function(){return this}}]),e}(),C=function(){a(e,_);var t=d(e);function e(){return h(this,e),t.apply(this,arguments)}return u(e,[{key:"here",value:function(){return this}},{key:"joining",value:function(){return this}},{key:"whisper",value:function(){return this}},{key:"leaving",value:function(){return this}}]),e}(),O=function(){function t(e){h(this,t),this._defaultOptions={auth:{headers:{}},authEndpoint:"/broadcasting/auth",userAuthentication:{endpoint:"/broadcasting/user-auth",headers:{}},broadcaster:"pusher",csrfToken:null,bearerToken:null,host:null,key:null,namespace:"App.Events"},this.setOptions(e),this.connect()}return u(t,[{key:"setOptions",value:function(t){this.options=c(this._defaultOptions,t);var e=this.csrfToken();return e&&(this.options.auth.headers["X-CSRF-TOKEN"]=e,this.options.userAuthentication.headers["X-CSRF-TOKEN"]=e),(e=this.options.bearerToken)&&(this.options.auth.headers.Authorization="Bearer "+e,this.options.userAuthentication.headers.Authorization="Bearer "+e),t}},{key:"csrfToken",value:function(){var t;return"undefined"!=typeof window&&window.Laravel&&window.Laravel.csrfToken?window.Laravel.csrfToken:this.options.csrfToken?this.options.csrfToken:"undefined"!=typeof document&&"function"==typeof document.querySelector&&(t=document.querySelector('meta[name="csrf-token"]'))?t.getAttribute("content"):null}}]),t}(),E=function(){a(e,O);var t=d(e);function e(){var n;return h(this,e),(n=t.apply(this,arguments)).channels={},n}return u(e,[{key:"connect",value:function(){this.pusher=void 0!==this.options.client?this.options.client:this.options.Pusher?new this.options.Pusher(this.options.key,this.options):new Pusher(this.options.key,this.options)}},{key:"signin",value:function(){this.pusher.signin()}},{key:"listen",value:function(t,e,n){return this.channel(t).listen(e,n)}},{key:"channel",value:function(t){return this.channels[t]||(this.channels[t]=new w(this.pusher,t,this.options)),this.channels[t]}},{key:"privateChannel",value:function(t){return this.channels["private-"+t]||(this.channels["private-"+t]=new b(this.pusher,"private-"+t,this.options)),this.channels["private-"+t]}},{key:"encryptedPrivateChannel",value:function(t){return this.channels["private-encrypted-"+t]||(this.channels["private-encrypted-"+t]=new y(this.pusher,"private-encrypted-"+t,this.options)),this.channels["private-encrypted-"+t]}},{key:"presenceChannel",value:function(t){return this.channels["presence-"+t]||(this.channels["presence-"+t]=new g(this.pusher,"presence-"+t,this.options)),this.channels["presence-"+t]}},{key:"leave",value:function(t){var e=this;[t,"private-"+t,"private-encrypted-"+t,"presence-"+t].forEach((function(t){e.leaveChannel(t)}))}},{key:"leaveChannel",value:function(t){this.channels[t]&&(this.channels[t].unsubscribe(),delete this.channels[t])}},{key:"socketId",value:function(){return this.pusher.connection.socket_id}},{key:"disconnect",value:function(){this.pusher.disconnect()}}]),e}(),T=function(){a(e,O);var t=d(e);function e(){var n;return h(this,e),(n=t.apply(this,arguments)).channels={},n}return u(e,[{key:"connect",value:function(){var t=this,e=this.getSocketIO();return this.socket=e(this.options.host,this.options),this.socket.on("reconnect",(function(){Object.values(t.channels).forEach((function(t){t.subscribe()}))})),this.socket}},{key:"getSocketIO",value:function(){if(void 0!==this.options.client)return this.options.client;if("undefined"!=typeof io)return io;throw new Error("Socket.io client not found. Should be globally available or passed via options.client")}},{key:"listen",value:function(t,e,n){return this.channel(t).listen(e,n)}},{key:"channel",value:function(t){return this.channels[t]||(this.channels[t]=new k(this.socket,t,this.options)),this.channels[t]}},{key:"privateChannel",value:function(t){return this.channels["private-"+t]||(this.channels["private-"+t]=new m(this.socket,"private-"+t,this.options)),this.channels["private-"+t]}},{key:"presenceChannel",value:function(t){return this.channels["presence-"+t]||(this.channels["presence-"+t]=new S(this.socket,"presence-"+t,this.options)),this.channels["presence-"+t]}},{key:"leave",value:function(t){var e=this;[t,"private-"+t,"presence-"+t].forEach((function(t){e.leaveChannel(t)}))}},{key:"leaveChannel",value:function(t){this.channels[t]&&(this.channels[t].unsubscribe(),delete this.channels[t])}},{key:"socketId",value:function(){return this.socket.id}},{key:"disconnect",value:function(){this.socket.disconnect()}}]),e}(),x=function(){a(e,O);var t=d(e);function e(){var n;return h(this,e),(n=t.apply(this,arguments)).channels={},n}return u(e,[{key:"connect",value:function(){}},{key:"listen",value:function(){return new _}},{key:"channel",value:function(){return new _}},{key:"privateChannel",value:function(){return new j}},{key:"encryptedPrivateChannel",value:function(){return new j}},{key:"presenceChannel",value:function(){return new C}},{key:"leave",value:function(){}},{key:"leaveChannel",value:function(){}},{key:"socketId",value:function(){return"fake-socket-id"}},{key:"disconnect",value:function(){}}]),e}(),P=function(){function t(e){h(this,t),this.options=e,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}return u(t,[{key:"channel",value:function(t){return this.connector.channel(t)}},{key:"connect",value:function(){if("reverb"==this.options.broadcaster)this.connector=new E(c(c({},this.options),{cluster:""}));else if("pusher"==this.options.broadcaster)this.connector=new E(this.options);else if("socket.io"==this.options.broadcaster)this.connector=new T(this.options);else if("null"==this.options.broadcaster)this.connector=new x(this.options);else{if("function"!=typeof this.options.broadcaster)throw new Error("Broadcaster ".concat(o(this.options.broadcaster)," ").concat(this.options.broadcaster," is not supported."));this.connector=new this.options.broadcaster(this.options)}}},{key:"disconnect",value:function(){this.connector.disconnect()}},{key:"join",value:function(t){return this.connector.presenceChannel(t)}},{key:"leave",value:function(t){this.connector.leave(t)}},{key:"leaveChannel",value:function(t){this.connector.leaveChannel(t)}},{key:"leaveAllChannels",value:function(){for(var t in this.connector.channels)this.leaveChannel(t)}},{key:"listen",value:function(t,e,n){return this.connector.listen(t,e,n)}},{key:"private",value:function(t){return this.connector.privateChannel(t)}},{key:"encryptedPrivate",value:function(t){return this.connector.encryptedPrivateChannel(t)}},{key:"socketId",value:function(){return this.connector.socketId()}},{key:"registerInterceptors",value:function(){"function"==typeof Vue&&Vue.http&&this.registerVueRequestInterceptor(),"function"==typeof axios&&this.registerAxiosRequestInterceptor(),"function"==typeof jQuery&&this.registerjQueryAjaxSetup(),"object"===("undefined"==typeof Turbo?"undefined":o(Turbo))&&this.registerTurboRequestInterceptor()}},{key:"registerVueRequestInterceptor",value:function(){var t=this;Vue.http.interceptors.push((function(e,n){t.socketId()&&e.headers.set("X-Socket-ID",t.socketId()),n()}))}},{key:"registerAxiosRequestInterceptor",value:function(){var t=this;axios.interceptors.request.use((function(e){return t.socketId()&&(e.headers["X-Socket-Id"]=t.socketId()),e}))}},{key:"registerjQueryAjaxSetup",value:function(){var t=this;void 0!==jQuery.ajax&&jQuery.ajaxPrefilter((function(e,n,i){t.socketId()&&i.setRequestHeader("X-Socket-Id",t.socketId())}))}},{key:"registerTurboRequestInterceptor",value:function(){var t=this;document.addEventListener("turbo:before-fetch-request",(function(e){e.detail.fetchOptions.headers["X-Socket-Id"]=t.socketId()}))}}]),t}();function R(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var I,A,N={exports:{}},L=I?N.exports:(I=1,window,A=function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e){var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},n(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=256,s=function(){function t(t){void 0===t&&(t="="),this._paddingCharacter=t}return t.prototype.encodedLength=function(t){return this._paddingCharacter?(t+2)/3*4|0:(8*t+5)/6|0},t.prototype.encode=function(t){for(var e="",n=0;n<t.length-2;n+=3)e+=this._encodeByte((i=t[n]<<16|t[n+1]<<8|t[n+2])>>>18&63),e+=this._encodeByte(i>>>12&63),e+=this._encodeByte(i>>>6&63),e+=this._encodeByte(i>>>0&63);var i,r=t.length-n;return r>0&&(e+=this._encodeByte((i=t[n]<<16|(2===r?t[n+1]<<8:0))>>>18&63),e+=this._encodeByte(i>>>12&63),e+=2===r?this._encodeByte(i>>>6&63):this._paddingCharacter||"",e+=this._paddingCharacter||""),e},t.prototype.maxDecodedLength=function(t){return this._paddingCharacter?t/4*3|0:(6*t+7)/8|0},t.prototype.decodedLength=function(t){return this.maxDecodedLength(t.length-this._getPaddingLength(t))},t.prototype.decode=function(t){if(0===t.length)return new Uint8Array(0);for(var e=this._getPaddingLength(t),n=t.length-e,i=new Uint8Array(this.maxDecodedLength(n)),s=0,o=0,h=0,u=0,c=0,a=0,l=0;o<n-4;o+=4)u=this._decodeChar(t.charCodeAt(o+0)),c=this._decodeChar(t.charCodeAt(o+1)),a=this._decodeChar(t.charCodeAt(o+2)),l=this._decodeChar(t.charCodeAt(o+3)),i[s++]=u<<2|c>>>4,i[s++]=c<<4|a>>>2,i[s++]=a<<6|l,h|=u&r,h|=c&r,h|=a&r,h|=l&r;if(o<n-1&&(u=this._decodeChar(t.charCodeAt(o)),c=this._decodeChar(t.charCodeAt(o+1)),i[s++]=u<<2|c>>>4,h|=u&r,h|=c&r),o<n-2&&(a=this._decodeChar(t.charCodeAt(o+2)),i[s++]=c<<4|a>>>2,h|=a&r),o<n-3&&(l=this._decodeChar(t.charCodeAt(o+3)),i[s++]=a<<6|l,h|=l&r),0!==h)throw new Error("Base64Coder: incorrect characters for decoding");return i},t.prototype._encodeByte=function(t){var e=t;return e+=65,e+=25-t>>>8&6,e+=51-t>>>8&-75,e+=61-t>>>8&-15,e+=62-t>>>8&3,String.fromCharCode(e)},t.prototype._decodeChar=function(t){var e=r;return e+=(42-t&t-44)>>>8&-256+t-43+62,e+=(46-t&t-48)>>>8&-256+t-47+63,e+=(47-t&t-58)>>>8&-256+t-48+52,(e+=(64-t&t-91)>>>8&-256+t-65+0)+((96-t&t-123)>>>8&-256+t-97+26)},t.prototype._getPaddingLength=function(t){var e=0;if(this._paddingCharacter){for(var n=t.length-1;n>=0&&t[n]===this._paddingCharacter;n--)e++;if(t.length<4||e>2)throw new Error("Base64Coder: incorrect padding")}return e},t}();e.Coder=s;var o=new s;e.encode=function(t){return o.encode(t)},e.decode=function(t){return o.decode(t)};var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._encodeByte=function(t){var e=t;return e+=65,e+=25-t>>>8&6,e+=51-t>>>8&-75,e+=61-t>>>8&-13,e+=62-t>>>8&49,String.fromCharCode(e)},e.prototype._decodeChar=function(t){var e=r;return e+=(44-t&t-46)>>>8&-256+t-45+62,e+=(94-t&t-96)>>>8&-256+t-95+63,e+=(47-t&t-58)>>>8&-256+t-48+52,(e+=(64-t&t-91)>>>8&-256+t-65+0)+((96-t&t-123)>>>8&-256+t-97+26)},e}(s);e.URLSafeCoder=h;var u=new h;e.encodeURLSafe=function(t){return u.encode(t)},e.decodeURLSafe=function(t){return u.decode(t)},e.encodedLength=function(t){return o.encodedLength(t)},e.maxDecodedLength=function(t){return o.maxDecodedLength(t)},e.decodedLength=function(t){return o.decodedLength(t)}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n="utf8: invalid string",i="utf8: invalid source encoding";function r(t){for(var e=0,i=0;i<t.length;i++){var r=t.charCodeAt(i);if(r<128)e+=1;else if(r<2048)e+=2;else if(r<55296)e+=3;else{if(!(r<=57343))throw new Error(n);if(i>=t.length-1)throw new Error(n);i++,e+=4}}return e}e.encode=function(t){for(var e=new Uint8Array(r(t)),n=0,i=0;i<t.length;i++){var s=t.charCodeAt(i);s<128?e[n++]=s:s<2048?(e[n++]=192|s>>6,e[n++]=128|63&s):s<55296?(e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s):(i++,s=(1023&s)<<10,s|=1023&t.charCodeAt(i),e[n++]=240|(s+=65536)>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s)}return e},e.encodedLength=r,e.decode=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(128&r){var s=void 0;if(r<224){if(n>=t.length)throw new Error(i);if(128!=(192&(o=t[++n])))throw new Error(i);r=(31&r)<<6|63&o,s=128}else if(r<240){if(n>=t.length-1)throw new Error(i);var o=t[++n],h=t[++n];if(128!=(192&o)||128!=(192&h))throw new Error(i);r=(15&r)<<12|(63&o)<<6|63&h,s=2048}else{if(!(r<248))throw new Error(i);if(n>=t.length-2)throw new Error(i);o=t[++n],h=t[++n];var u=t[++n];if(128!=(192&o)||128!=(192&h)||128!=(192&u))throw new Error(i);r=(15&r)<<18|(63&o)<<12|(63&h)<<6|63&u,s=65536}if(r<s||r>=55296&&r<=57343)throw new Error(i);if(r>=65536){if(r>1114111)throw new Error(i);r-=65536,e.push(String.fromCharCode(55296|r>>10)),r=56320|1023&r}}e.push(String.fromCharCode(r))}return e.join("")}},function(t,e,n){t.exports=n(3).default},function(t,e,n){n.r(e);class i{constructor(t,e){this.lastId=0,this.prefix=t,this.name=e}create(t){this.lastId++;var e=this.lastId,n=this.prefix+e,i=this.name+"["+e+"]",r=!1,s=function(){r||(t.apply(null,arguments),r=!0)};return this[e]=s,{number:e,id:n,name:i,callback:s}}remove(t){delete this[t.number]}}var r=new i("_pusher_script_","Pusher.ScriptReceivers"),s="8.3.0",o=7,h=80,u=443,c="",a="sockjs.pusher.com",l=80,f=443,d="/pusher",v="stats.pusher.com",p="/pusher/auth",w="ajax",b=12e4,y=3e4,g=1e4,k={endpoint:"/pusher/user-auth",transport:"ajax"},m={endpoint:"/pusher/auth",transport:"ajax"},S="http://js.pusher.com",_="https://js.pusher.com",j="",C=new i("_pusher_dependencies","Pusher.DependenciesReceivers"),O=new class{constructor(t){this.options=t,this.receivers=t.receivers||r,this.loading={}}load(t,e,n){var i=this;if(i.loading[t]&&i.loading[t].length>0)i.loading[t].push(n);else{i.loading[t]=[n];var r=_e.createScriptRequest(i.getPath(t,e)),s=i.receivers.create((function(e){if(i.receivers.remove(s),i.loading[t]){var n=i.loading[t];delete i.loading[t];for(var o=function(t){t||r.cleanup()},h=0;h<n.length;h++)n[h](e,o)}}));r.send(s)}}getRoot(t){var e=_e.getDocument().location.protocol;return(t&&t.useTLS||"https:"===e?this.options.cdn_https:this.options.cdn_http).replace(/\/*$/,"")+"/"+this.options.version}getPath(t,e){return this.getRoot(e)+"/"+t+this.options.suffix+".js"}}({cdn_http:S,cdn_https:_,version:s,suffix:j,receivers:C});const E={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}};var T,x=function(t){const e=E.urls[t];if(!e)return"";let n;return e.fullUrl?n=e.fullUrl:e.path&&(n=E.baseUrl+e.path),n?`See: ${n}`:""};!function(t){t.UserAuthentication="user-authentication",t.ChannelAuthorization="channel-authorization"}(T||(T={}));class P extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}class R extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}class I extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}class A extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}class N extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}class L extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}class U extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}class M extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}class $ extends Error{constructor(t,e){super(e),this.status=t,Object.setPrototypeOf(this,new.target.prototype)}}var D=function(t,e,n,i,r){const s=_e.createXHR();for(var o in s.open("POST",n.endpoint,!0),s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.headers)s.setRequestHeader(o,n.headers[o]);if(null!=n.headersProvider){let t=n.headersProvider();for(var o in t)s.setRequestHeader(o,t[o])}return s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status){let t,e=!1;try{t=JSON.parse(s.responseText),e=!0}catch(t){r(new $(200,`JSON returned from ${i.toString()} endpoint was invalid, yet status code was 200. Data was: ${s.responseText}`),null)}e&&r(null,t)}else{let t="";switch(i){case T.UserAuthentication:t=x("authenticationEndpoint");break;case T.ChannelAuthorization:t=`Clients must be authorized to join private or presence channels. ${x("authorizationEndpoint")}`}r(new $(s.status,`Unable to retrieve auth string from ${i.toString()} endpoint - received status: ${s.status} from ${n.endpoint}. ${t}`),null)}},s.send(e),s},z=String.fromCharCode,H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B=function(t){var e=t.charCodeAt(0);return e<128?t:e<2048?z(192|e>>>6)+z(128|63&e):z(224|e>>>12&15)+z(128|e>>>6&63)+z(128|63&e)},J=function(t){var e=[0,2,1][t.length%3],n=t.charCodeAt(0)<<16|(t.length>1?t.charCodeAt(1):0)<<8|(t.length>2?t.charCodeAt(2):0);return[H.charAt(n>>>18),H.charAt(n>>>12&63),e>=2?"=":H.charAt(n>>>6&63),e>=1?"=":H.charAt(63&n)].join("")},F=window.btoa||function(t){return t.replace(/[\s\S]{1,3}/g,J)},q=class{constructor(t,e,n,i){this.clear=e,this.timer=t((()=>{this.timer&&(this.timer=i(this.timer))}),n)}isRunning(){return null!==this.timer}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}};function X(t){window.clearTimeout(t)}function W(t){window.clearInterval(t)}class V extends q{constructor(t,e){super(setTimeout,X,t,(function(){return e(),null}))}}class Q extends q{constructor(t,e){super(setInterval,W,t,(function(t){return e(),t}))}}var G={now:()=>Date.now?Date.now():(new Date).valueOf(),defer:t=>new V(0,t),method(t,...e){var n=Array.prototype.slice.call(arguments,1);return function(e){return e[t].apply(e,n.concat(arguments))}}},Y=G;function K(t,...e){for(var n=0;n<e.length;n++){var i=e[n];for(var r in i)t[r]=i[r]&&i[r].constructor&&i[r].constructor===Object?K(t[r]||{},i[r]):i[r]}return t}function Z(){for(var t=["Pusher"],e=0;e<arguments.length;e++)t.push("string"==typeof arguments[e]?arguments[e]:ct(arguments[e]));return t.join(" : ")}function tt(t,e){var n=Array.prototype.indexOf;if(null===t)return-1;if(n&&t.indexOf===n)return t.indexOf(e);for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}function et(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(t[n],n,t)}function nt(t){var e=[];return et(t,(function(t,n){e.push(n)})),e}function it(t,e,n){for(var i=0;i<t.length;i++)e.call(n||window,t[i],i,t)}function rt(t,e){for(var n=[],i=0;i<t.length;i++)n.push(e(t[i],i,t,n));return n}function st(t,e){e=e||function(t){return!!t};for(var n=[],i=0;i<t.length;i++)e(t[i],i,t,n)&&n.push(t[i]);return n}function ot(t,e){var n={};return et(t,(function(i,r){(e&&e(i,r,t,n)||Boolean(i))&&(n[r]=i)})),n}function ht(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n,t))return!0;return!1}function ut(t){return e=function(t){return"object"==typeof t&&(t=ct(t)),encodeURIComponent((e=t.toString(),F(e.replace(/[^\x00-\x7F]/g,B))));var e},n={},et(t,(function(t,i){n[i]=e(t)})),n;var e,n}function ct(t){try{return JSON.stringify(t)}catch(i){return JSON.stringify((e=[],n=[],function t(i,r){var s,o,h;switch(typeof i){case"object":if(!i)return null;for(s=0;s<e.length;s+=1)if(e[s]===i)return{$ref:n[s]};if(e.push(i),n.push(r),"[object Array]"===Object.prototype.toString.apply(i))for(h=[],s=0;s<i.length;s+=1)h[s]=t(i[s],r+"["+s+"]");else for(o in h={},i)Object.prototype.hasOwnProperty.call(i,o)&&(h[o]=t(i[o],r+"["+JSON.stringify(o)+"]"));return h;case"number":case"string":case"boolean":return i}}(t,"$")))}var e,n}var at=new class{constructor(){this.globalLog=t=>{window.console&&window.console.log&&window.console.log(t)}}debug(...t){this.log(this.globalLog,t)}warn(...t){this.log(this.globalLogWarn,t)}error(...t){this.log(this.globalLogError,t)}globalLogWarn(t){window.console&&window.console.warn?window.console.warn(t):this.globalLog(t)}globalLogError(t){window.console&&window.console.error?window.console.error(t):this.globalLogWarn(t)}log(t,...e){var n=Z.apply(this,arguments);ze.log?ze.log(n):ze.logToConsole&&t.bind(this)(n)}},lt=function(t,e,n,i,r){void 0===n.headers&&null==n.headersProvider||at.warn(`To send headers with the ${i.toString()} request, you must use AJAX, rather than JSONP.`);var s=t.nextAuthCallbackID.toString();t.nextAuthCallbackID++;var o=t.getDocument(),h=o.createElement("script");t.auth_callbacks[s]=function(t){r(null,t)},h.src=n.endpoint+"?callback="+encodeURIComponent("Pusher.auth_callbacks['"+s+"']")+"&"+e;var u=o.getElementsByTagName("head")[0]||o.documentElement;u.insertBefore(h,u.firstChild)};class ft{constructor(t){this.src=t}send(t){var e=this,n="Error loading "+e.src;e.script=document.createElement("script"),e.script.id=t.id,e.script.src=e.src,e.script.type="text/javascript",e.script.charset="UTF-8",e.script.addEventListener?(e.script.onerror=function(){t.callback(n)},e.script.onload=function(){t.callback(null)}):e.script.onreadystatechange=function(){"loaded"!==e.script.readyState&&"complete"!==e.script.readyState||t.callback(null)},void 0===e.script.async&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(e.errorScript=document.createElement("script"),e.errorScript.id=t.id+"_error",e.errorScript.text=t.name+"('"+n+"');",e.script.async=e.errorScript.async=!1):e.script.async=!0;var i=document.getElementsByTagName("head")[0];i.insertBefore(e.script,i.firstChild),e.errorScript&&i.insertBefore(e.errorScript,e.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class dt{constructor(t,e){this.url=t,this.data=e}send(t){if(!this.request){var e=rt((n=ut(ot(this.data,(function(t){return void 0!==t}))),i=[],et(n,(function(t,e){i.push([e,t])})),i),Y.method("join","=")).join("&");this.request=_e.createScriptRequest(this.url+"/"+t.number+"?"+e),this.request.send(t)}var n,i}cleanup(){this.request&&this.request.cleanup()}}var vt={name:"jsonp",getAgent:function(t,e){return function(n,i){var s=_e.createJSONPRequest("http"+(e?"s":"")+"://"+(t.host||t.options.host)+t.options.path,n),o=_e.ScriptReceivers.create((function(e,n){r.remove(o),s.cleanup(),n&&n.host&&(t.host=n.host),i&&i(e,n)}));s.send(o)}}};function pt(t,e,n){return t+(e.useTLS?"s":"")+"://"+(e.useTLS?e.hostTLS:e.hostNonTLS)+n}function wt(t,e){return"/app/"+t+"?protocol="+o+"&client=js&version="+s+(e?"&"+e:"")}var bt={getInitial:function(t,e){return pt("ws",e,(e.httpPath||"")+wt(t,"flash=false"))}},yt={getInitial:function(t,e){return pt("http",e,(e.httpPath||"/pusher")+wt(t))}},gt={getInitial:function(t,e){return pt("http",e,e.httpPath||"/pusher")},getPath:function(t){return wt(t)}};class kt{constructor(){this._callbacks={}}get(t){return this._callbacks[mt(t)]}add(t,e,n){var i=mt(t);this._callbacks[i]=this._callbacks[i]||[],this._callbacks[i].push({fn:e,context:n})}remove(t,e,n){if(t||e||n){var i=t?[mt(t)]:nt(this._callbacks);e||n?this.removeCallback(i,e,n):this.removeAllCallbacks(i)}else this._callbacks={}}removeCallback(t,e,n){it(t,(function(t){this._callbacks[t]=st(this._callbacks[t]||[],(function(t){return e&&e!==t.fn||n&&n!==t.context})),0===this._callbacks[t].length&&delete this._callbacks[t]}),this)}removeAllCallbacks(t){it(t,(function(t){delete this._callbacks[t]}),this)}}function mt(t){return"_"+t}class St{constructor(t){this.callbacks=new kt,this.global_callbacks=[],this.failThrough=t}bind(t,e,n){return this.callbacks.add(t,e,n),this}bind_global(t){return this.global_callbacks.push(t),this}unbind(t,e,n){return this.callbacks.remove(t,e,n),this}unbind_global(t){return t?(this.global_callbacks=st(this.global_callbacks||[],(e=>e!==t)),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(t,e,n){for(var i=0;i<this.global_callbacks.length;i++)this.global_callbacks[i](t,e);var r=this.callbacks.get(t),s=[];if(n?s.push(e,n):e&&s.push(e),r&&r.length>0)for(i=0;i<r.length;i++)r[i].fn.apply(r[i].context||window,s);else this.failThrough&&this.failThrough(t,e);return this}}class _t extends St{constructor(t,e,n,i,r){super(),this.initialize=_e.transportConnectionInitializer,this.hooks=t,this.name=e,this.priority=n,this.key=i,this.options=r,this.state="new",this.timeline=r.timeline,this.activityTimeout=r.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return Boolean(this.hooks.handlesActivityChecks)}supportsPing(){return Boolean(this.hooks.supportsPing)}connect(){if(this.socket||"initialized"!==this.state)return!1;var t=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(t,this.options)}catch(t){return Y.defer((()=>{this.onError(t),this.changeState("closed")})),!1}return this.bindListeners(),at.debug("Connecting",{transport:this.name,url:t}),this.changeState("connecting"),!0}close(){return!!this.socket&&(this.socket.close(),!0)}send(t){return"open"===this.state&&(Y.defer((()=>{this.socket&&this.socket.send(t)})),!0)}ping(){"open"===this.state&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(t){this.emit("error",{type:"WebSocketError",error:t}),this.timeline.error(this.buildTimelineMessage({error:t.toString()}))}onClose(t){t?this.changeState("closed",{code:t.code,reason:t.reason,wasClean:t.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(t){this.emit("message",t)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=t=>{this.onError(t)},this.socket.onclose=t=>{this.onClose(t)},this.socket.onmessage=t=>{this.onMessage(t)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(t,e){this.state=t,this.timeline.info(this.buildTimelineMessage({state:t,params:e})),this.emit(t,e)}buildTimelineMessage(t){return K({cid:this.id},t)}}class jt{constructor(t){this.hooks=t}isSupported(t){return this.hooks.isSupported(t)}createConnection(t,e,n,i){return new _t(this.hooks,t,e,n,i)}}var Ct=new jt({urls:bt,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return Boolean(_e.getWebSocketAPI())},isSupported:function(){return Boolean(_e.getWebSocketAPI())},getSocket:function(t){return _e.createWebSocket(t)}}),Ot={urls:yt,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Et=K({getSocket:function(t){return _e.HTTPFactory.createStreamingSocket(t)}},Ot),Tt=K({getSocket:function(t){return _e.HTTPFactory.createPollingSocket(t)}},Ot),xt={isSupported:function(){return _e.isXHRSupported()}},Pt={ws:Ct,xhr_streaming:new jt(K({},Et,xt)),xhr_polling:new jt(K({},Tt,xt))},Rt=new jt({file:"sockjs",urls:gt,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return void 0!==window.SockJS},getSocket:function(t,e){return new window.SockJS(t,null,{js_path:O.getPath("sockjs",{useTLS:e.useTLS}),ignore_null_origin:e.ignoreNullOrigin})},beforeOpen:function(t,e){t.send(JSON.stringify({path:e}))}}),It={isSupported:function(t){return _e.isXDRSupported(t.useTLS)}},At=new jt(K({},Et,It)),Nt=new jt(K({},Tt,It));Pt.xdr_streaming=At,Pt.xdr_polling=Nt,Pt.sockjs=Rt;var Lt=Pt,Ut=new class extends St{constructor(){super();var t=this;void 0!==window.addEventListener&&(window.addEventListener("online",(function(){t.emit("online")}),!1),window.addEventListener("offline",(function(){t.emit("offline")}),!1))}isOnline(){return void 0===window.navigator.onLine||window.navigator.onLine}};class Mt{constructor(t,e,n){this.manager=t,this.transport=e,this.minPingDelay=n.minPingDelay,this.maxPingDelay=n.maxPingDelay,this.pingDelay=void 0}createConnection(t,e,n,i){i=K({},i,{activityTimeout:this.pingDelay});var r=this.transport.createConnection(t,e,n,i),s=null,o=function(){r.unbind("open",o),r.bind("closed",h),s=Y.now()},h=t=>{if(r.unbind("closed",h),1002===t.code||1003===t.code)this.manager.reportDeath();else if(!t.wasClean&&s){var e=Y.now()-s;e<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(e/2,this.minPingDelay))}};return r.bind("open",o),r}isSupported(t){return this.manager.isAlive()&&this.transport.isSupported(t)}}const $t={decodeMessage:function(t){try{var e=JSON.parse(t.data),n=e.data;if("string"==typeof n)try{n=JSON.parse(e.data)}catch(t){}var i={event:e.event,channel:e.channel,data:n};return e.user_id&&(i.user_id=e.user_id),i}catch(e){throw{type:"MessageParseError",error:e,data:t.data}}},encodeMessage:function(t){return JSON.stringify(t)},processHandshake:function(t){var e=$t.decodeMessage(t);if("pusher:connection_established"===e.event){if(!e.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:e.data.socket_id,activityTimeout:1e3*e.data.activity_timeout}}if("pusher:error"===e.event)return{action:this.getCloseAction(e.data),error:this.getCloseError(e.data)};throw"Invalid handshake"},getCloseAction:function(t){return t.code<4e3?t.code>=1002&&t.code<=1004?"backoff":null:4e3===t.code?"tls_only":t.code<4100?"refused":t.code<4200?"backoff":t.code<4300?"retry":"refused"},getCloseError:function(t){return 1e3!==t.code&&1001!==t.code?{type:"PusherError",data:{code:t.code,message:t.reason||t.message}}:null}};var Dt=$t;class zt extends St{constructor(t,e){super(),this.id=t,this.transport=e,this.activityTimeout=e.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(t){return this.transport.send(t)}send_event(t,e,n){var i={event:t,data:e};return n&&(i.channel=n),at.debug("Event sent",i),this.send(Dt.encodeMessage(i))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var t={message:t=>{var e;try{e=Dt.decodeMessage(t)}catch(e){this.emit("error",{type:"MessageParseError",error:e,data:t.data})}if(void 0!==e){switch(at.debug("Event recd",e),e.event){case"pusher:error":this.emit("error",{type:"PusherError",data:e.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong")}this.emit("message",e)}},activity:()=>{this.emit("activity")},error:t=>{this.emit("error",t)},closed:t=>{e(),t&&t.code&&this.handleCloseEvent(t),this.transport=null,this.emit("closed")}},e=()=>{et(t,((t,e)=>{this.transport.unbind(e,t)}))};et(t,((t,e)=>{this.transport.bind(e,t)}))}handleCloseEvent(t){var e=Dt.getCloseAction(t),n=Dt.getCloseError(t);n&&this.emit("error",n),e&&this.emit(e,{action:e,error:n})}}class Ht{constructor(t,e){this.transport=t,this.callback=e,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=t=>{var e;this.unbindListeners();try{e=Dt.processHandshake(t)}catch(t){return this.finish("error",{error:t}),void this.transport.close()}"connected"===e.action?this.finish("connected",{connection:new zt(e.id,this.transport),activityTimeout:e.activityTimeout}):(this.finish(e.action,{error:e.error}),this.transport.close())},this.onClosed=t=>{this.unbindListeners();var e=Dt.getCloseAction(t)||"backoff",n=Dt.getCloseError(t);this.finish(e,{error:n})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(t,e){this.callback(K({transport:this.transport,action:t},e))}}class Bt{constructor(t,e){this.timeline=t,this.options=e||{}}send(t,e){this.timeline.isEmpty()||this.timeline.send(_e.TimelineTransport.getAgent(this,t),e)}}class Jt extends St{constructor(t,e){super((function(e){at.debug("No callbacks on "+t+" for "+e)})),this.name=t,this.pusher=e,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(t,e){return e(null,{auth:""})}trigger(t,e){if(0!==t.indexOf("client-"))throw new P("Event '"+t+"' does not start with 'client-'");if(!this.subscribed){var n=x("triggeringClientEvents");at.warn(`Client event triggered before channel 'subscription_succeeded' event . ${n}`)}return this.pusher.send_event(t,e,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(t){var e=t.event,n=t.data;"pusher_internal:subscription_succeeded"===e?this.handleSubscriptionSucceededEvent(t):"pusher_internal:subscription_count"===e?this.handleSubscriptionCountEvent(t):0!==e.indexOf("pusher_internal:")&&this.emit(e,n,{})}handleSubscriptionSucceededEvent(t){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",t.data)}handleSubscriptionCountEvent(t){t.data.subscription_count&&(this.subscriptionCount=t.data.subscription_count),this.emit("pusher:subscription_count",t.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,((t,e)=>{t?(this.subscriptionPending=!1,at.error(t.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:t.message},t instanceof $?{status:t.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:e.auth,channel_data:e.channel_data,channel:this.name})})))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class Ft extends Jt{authorize(t,e){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:t},e)}}class qt{constructor(){this.reset()}get(t){return Object.prototype.hasOwnProperty.call(this.members,t)?{id:t,info:this.members[t]}:null}each(t){et(this.members,((e,n)=>{t(this.get(n))}))}setMyID(t){this.myID=t}onSubscription(t){this.members=t.presence.hash,this.count=t.presence.count,this.me=this.get(this.myID)}addMember(t){return null===this.get(t.user_id)&&this.count++,this.members[t.user_id]=t.user_info,this.get(t.user_id)}removeMember(t){var e=this.get(t.user_id);return e&&(delete this.members[t.user_id],this.count--),e}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}class Xt extends Ft{constructor(t,e){super(t,e),this.members=new qt}authorize(t,e){super.authorize(t,((t,n)=>{return i=this,r=void 0,o=function*(){if(!t)if(null!=n.channel_data){var i=JSON.parse(n.channel_data);this.members.setMyID(i.user_id)}else{if(yield this.pusher.user.signinDonePromise,null==this.pusher.user.user_data){let t=x("authorizationEndpoint");return at.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${t}, or the user should be signed in.`),void e("Invalid auth response")}this.members.setMyID(this.pusher.user.user_data.id)}e(t,n)},new((s=void 0)||(s=Promise))((function(t,e){function n(t){try{u(o.next(t))}catch(t){e(t)}}function h(t){try{u(o.throw(t))}catch(t){e(t)}}function u(e){var i;e.done?t(e.value):(i=e.value,i instanceof s?i:new s((function(t){t(i)}))).then(n,h)}u((o=o.apply(i,r||[])).next())}));var i,r,s,o}))}handleEvent(t){var e=t.event;if(0===e.indexOf("pusher_internal:"))this.handleInternalEvent(t);else{var n=t.data,i={};t.user_id&&(i.user_id=t.user_id),this.emit(e,n,i)}}handleInternalEvent(t){var e=t.data;switch(t.event){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(t);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(t);break;case"pusher_internal:member_added":var n=this.members.addMember(e);this.emit("pusher:member_added",n);break;case"pusher_internal:member_removed":var i=this.members.removeMember(e);i&&this.emit("pusher:member_removed",i)}}handleSubscriptionSucceededEvent(t){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(t.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var Wt=n(1),Vt=n(0);class Qt extends Ft{constructor(t,e,n){super(t,e),this.key=null,this.nacl=n}authorize(t,e){super.authorize(t,((t,n)=>{if(t)return void e(t,n);let i=n.shared_secret;i?(this.key=Object(Vt.decode)(i),delete n.shared_secret,e(null,n)):e(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null)}))}trigger(t,e){throw new L("Client events are not currently supported for encrypted channels")}handleEvent(t){var e=t.event,n=t.data;0!==e.indexOf("pusher_internal:")&&0!==e.indexOf("pusher:")?this.handleEncryptedEvent(e,n):super.handleEvent(t)}handleEncryptedEvent(t,e){if(!this.key)return void at.debug("Received encrypted event before key has been retrieved from the authEndpoint");if(!e.ciphertext||!e.nonce)return void at.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+e);let n=Object(Vt.decode)(e.ciphertext);if(n.length<this.nacl.secretbox.overheadLength)return void at.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${n.length}`);let i=Object(Vt.decode)(e.nonce);if(i.length<this.nacl.secretbox.nonceLength)return void at.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${i.length}`);let r=this.nacl.secretbox.open(n,i,this.key);if(null===r)return at.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),void this.authorize(this.pusher.connection.socket_id,((e,s)=>{e?at.error(`Failed to make a request to the authEndpoint: ${s}. Unable to fetch new key, so dropping encrypted event`):(r=this.nacl.secretbox.open(n,i,this.key),null!==r?this.emit(t,this.getDataToEmit(r)):at.error("Failed to decrypt event with new key. Dropping encrypted event"))}));this.emit(t,this.getDataToEmit(r))}getDataToEmit(t){let e=Object(Wt.decode)(t);try{return JSON.parse(e)}catch(t){return e}}}class Gt extends St{constructor(t,e){super(),this.state="initialized",this.connection=null,this.key=t,this.options=e,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var n=_e.getNetwork();n.bind("online",(()=>{this.timeline.info({netinfo:"online"}),"connecting"!==this.state&&"unavailable"!==this.state||this.retryIn(0)})),n.bind("offline",(()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()})),this.updateStrategy()}connect(){this.connection||this.runner||(this.strategy.isSupported()?(this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()):this.updateState("failed"))}send(t){return!!this.connection&&this.connection.send(t)}send_event(t,e,n){return!!this.connection&&this.connection.send_event(t,e,n)}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var t=(e,n)=>{e?this.runner=this.strategy.connect(0,t):"error"===n.action?(this.emit("error",{type:"HandshakeError",error:n.error}),this.timeline.error({handshakeError:n.error})):(this.abortConnecting(),this.handshakeCallbacks[n.action](n))};this.runner=this.strategy.connect(0,t)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection&&this.abandonConnection().close()}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(t){this.timeline.info({action:"retry",delay:t}),t>0&&this.emit("connecting_in",Math.round(t/1e3)),this.retryTimer=new V(t||0,(()=>{this.disconnectInternally(),this.connect()}))}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new V(this.options.unavailableTimeout,(()=>{this.updateState("unavailable")}))}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new V(this.options.pongTimeout,(()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)}))}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new V(this.activityTimeout,(()=>{this.sendActivityCheck()})))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(t){return K({},t,{message:t=>{this.resetActivityCheck(),this.emit("message",t)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:t=>{this.emit("error",t)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(t){return K({},t,{connected:t=>{this.activityTimeout=Math.min(this.options.activityTimeout,t.activityTimeout,t.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(t.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let t=t=>e=>{e.error&&this.emit("error",{type:"WebSocketError",error:e.error}),t(e)};return{tls_only:t((()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)})),refused:t((()=>{this.disconnect()})),backoff:t((()=>{this.retryIn(1e3)})),retry:t((()=>{this.retryIn(0)}))}}setConnection(t){for(var e in this.connection=t,this.connectionCallbacks)this.connection.bind(e,this.connectionCallbacks[e]);this.resetActivityCheck()}abandonConnection(){if(this.connection){for(var t in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(t,this.connectionCallbacks[t]);var e=this.connection;return this.connection=null,e}}updateState(t,e){var n=this.state;if(this.state=t,n!==t){var i=t;"connected"===i&&(i+=" with new socket ID "+e.socket_id),at.debug("State changed",n+" -> "+i),this.timeline.info({state:t,params:e}),this.emit("state_change",{previous:n,current:t}),this.emit(t,e)}}shouldRetry(){return"connecting"===this.state||"connected"===this.state}}class Yt{constructor(){this.channels={}}add(t,e){return this.channels[t]||(this.channels[t]=function(t,e){if(0===t.indexOf("private-encrypted-")){if(e.config.nacl)return Zt.createEncryptedChannel(t,e,e.config.nacl);let n="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",i=x("encryptedChannelSupport");throw new L(`${n}. ${i}`)}if(0===t.indexOf("private-"))return Zt.createPrivateChannel(t,e);if(0===t.indexOf("presence-"))return Zt.createPresenceChannel(t,e);if(0===t.indexOf("#"))throw new R('Cannot create a channel with name "'+t+'".');return Zt.createChannel(t,e)}(t,e)),this.channels[t]}all(){return t=[],et(this.channels,(function(e){t.push(e)})),t;var t}find(t){return this.channels[t]}remove(t){var e=this.channels[t];return delete this.channels[t],e}disconnect(){et(this.channels,(function(t){t.disconnect()}))}}var Kt={createChannels:()=>new Yt,createConnectionManager:(t,e)=>new Gt(t,e),createChannel:(t,e)=>new Jt(t,e),createPrivateChannel:(t,e)=>new Ft(t,e),createPresenceChannel:(t,e)=>new Xt(t,e),createEncryptedChannel:(t,e,n)=>new Qt(t,e,n),createTimelineSender:(t,e)=>new Bt(t,e),createHandshake:(t,e)=>new Ht(t,e),createAssistantToTheTransportManager:(t,e,n)=>new Mt(t,e,n)},Zt=Kt;class te{constructor(t){this.options=t||{},this.livesLeft=this.options.lives||1/0}getAssistant(t){return Zt.createAssistantToTheTransportManager(this,t,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class ee{constructor(t,e){this.strategies=t,this.loop=Boolean(e.loop),this.failFast=Boolean(e.failFast),this.timeout=e.timeout,this.timeoutLimit=e.timeoutLimit}isSupported(){return ht(this.strategies,Y.method("isSupported"))}connect(t,e){var n=this.strategies,i=0,r=this.timeout,s=null,o=(h,u)=>{u?e(null,u):(i+=1,this.loop&&(i%=n.length),i<n.length?(r&&(r*=2,this.timeoutLimit&&(r=Math.min(r,this.timeoutLimit))),s=this.tryStrategy(n[i],t,{timeout:r,failFast:this.failFast},o)):e(!0))};return s=this.tryStrategy(n[i],t,{timeout:r,failFast:this.failFast},o),{abort:function(){s.abort()},forceMinPriority:function(e){t=e,s&&s.forceMinPriority(e)}}}tryStrategy(t,e,n,i){var r=null,s=null;return n.timeout>0&&(r=new V(n.timeout,(function(){s.abort(),i(!0)}))),s=t.connect(e,(function(t,e){t&&r&&r.isRunning()&&!n.failFast||(r&&r.ensureAborted(),i(t,e))})),{abort:function(){r&&r.ensureAborted(),s.abort()},forceMinPriority:function(t){s.forceMinPriority(t)}}}}class ne{constructor(t){this.strategies=t}isSupported(){return ht(this.strategies,Y.method("isSupported"))}connect(t,e){return function(t,n){var i=rt(t,(function(t,i,r,s){return t.connect(n,function(t,n){return function(i,r){n[t].error=i,i?function(t){return function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n,t))return!1;return!0}(t,(function(t){return Boolean(t.error)}))}(n)&&e(!0):(it(n,(function(t){t.forceMinPriority(r.transport.priority)})),e(null,r))}}(i,s))}));return{abort:function(){it(i,ie)},forceMinPriority:function(t){it(i,(function(e){e.forceMinPriority(t)}))}}}(this.strategies,t)}}function ie(t){t.error||t.aborted||(t.abort(),t.aborted=!0)}class re{constructor(t,e,n){this.strategy=t,this.transports=e,this.ttl=n.ttl||18e5,this.usingTLS=n.useTLS,this.timeline=n.timeline}isSupported(){return this.strategy.isSupported()}connect(t,e){var n=this.usingTLS,i=function(t){var e=_e.getLocalStorage();if(e)try{var n=e[se(t)];if(n)return JSON.parse(n)}catch(e){oe(t)}return null}(n),r=i&&i.cacheSkipCount?i.cacheSkipCount:0,s=[this.strategy];if(i&&i.timestamp+this.ttl>=Y.now()){var o=this.transports[i.transport];o&&(["ws","wss"].includes(i.transport)||r>3?(this.timeline.info({cached:!0,transport:i.transport,latency:i.latency}),s.push(new ee([o],{timeout:2*i.latency+1e3,failFast:!0}))):r++)}var h=Y.now(),u=s.pop().connect(t,(function i(o,c){o?(oe(n),s.length>0?(h=Y.now(),u=s.pop().connect(t,i)):e(o)):(function(t,e,n,i){var r=_e.getLocalStorage();if(r)try{r[se(t)]=ct({timestamp:Y.now(),transport:e,latency:n,cacheSkipCount:i})}catch(t){}}(n,c.transport.name,Y.now()-h,r),e(null,c))}));return{abort:function(){u.abort()},forceMinPriority:function(e){t=e,u&&u.forceMinPriority(e)}}}}function se(t){return"pusherTransport"+(t?"TLS":"NonTLS")}function oe(t){var e=_e.getLocalStorage();if(e)try{delete e[se(t)]}catch(t){}}class he{constructor(t,{delay:e}){this.strategy=t,this.options={delay:e}}isSupported(){return this.strategy.isSupported()}connect(t,e){var n,i=this.strategy,r=new V(this.options.delay,(function(){n=i.connect(t,e)}));return{abort:function(){r.ensureAborted(),n&&n.abort()},forceMinPriority:function(e){t=e,n&&n.forceMinPriority(e)}}}}class ue{constructor(t,e,n){this.test=t,this.trueBranch=e,this.falseBranch=n}isSupported(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()}connect(t,e){return(this.test()?this.trueBranch:this.falseBranch).connect(t,e)}}class ce{constructor(t){this.strategy=t}isSupported(){return this.strategy.isSupported()}connect(t,e){var n=this.strategy.connect(t,(function(t,i){i&&n.abort(),e(t,i)}));return n}}function ae(t){return function(){return t.isSupported()}}var le,fe={getRequest:function(t){var e=new window.XDomainRequest;return e.ontimeout=function(){t.emit("error",new I),t.close()},e.onerror=function(e){t.emit("error",e),t.close()},e.onprogress=function(){e.responseText&&e.responseText.length>0&&t.onChunk(200,e.responseText)},e.onload=function(){e.responseText&&e.responseText.length>0&&t.onChunk(200,e.responseText),t.emit("finished",200),t.close()},e},abortRequest:function(t){t.ontimeout=t.onerror=t.onprogress=t.onload=null,t.abort()}};class de extends St{constructor(t,e,n){super(),this.hooks=t,this.method=e,this.url=n}start(t){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},_e.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(t)}close(){this.unloader&&(_e.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(t,e){for(;;){var n=this.advanceBuffer(e);if(!n)break;this.emit("chunk",{status:t,data:n})}this.isBufferTooLong(e)&&this.emit("buffer_too_long")}advanceBuffer(t){var e=t.slice(this.position),n=e.indexOf("\n");return-1!==n?(this.position+=n+1,e.slice(0,n)):null}isBufferTooLong(t){return this.position===t.length&&t.length>262144}}!function(t){t[t.CONNECTING=0]="CONNECTING",t[t.OPEN=1]="OPEN",t[t.CLOSED=3]="CLOSED"}(le||(le={}));var ve=le,pe=1;function we(t){var e=-1===t.indexOf("?")?"?":"&";return t+e+"t="+ +new Date+"&n="+pe++}function be(t){return _e.randomInt(t)}var ye,ge=class{constructor(t,e){this.hooks=t,this.session=be(1e3)+"/"+function(){for(var t=[],e=0;e<8;e++)t.push(be(32).toString(32));return t.join("")}(),this.location=function(t){var e=/([^\?]*)\/*(\??.*)/.exec(t);return{base:e[1],queryString:e[2]}}(e),this.readyState=ve.CONNECTING,this.openStream()}send(t){return this.sendRaw(JSON.stringify([t]))}ping(){this.hooks.sendHeartbeat(this)}close(t,e){this.onClose(t,e,!0)}sendRaw(t){if(this.readyState!==ve.OPEN)return!1;try{return _e.createSocketRequest("POST",we((e=this.location,n=this.session,e.base+"/"+n+"/xhr_send"))).start(t),!0}catch(t){return!1}var e,n}reconnect(){this.closeStream(),this.openStream()}onClose(t,e,n){this.closeStream(),this.readyState=ve.CLOSED,this.onclose&&this.onclose({code:t,reason:e,wasClean:n})}onChunk(t){var e;if(200===t.status)switch(this.readyState===ve.OPEN&&this.onActivity(),t.data.slice(0,1)){case"o":e=JSON.parse(t.data.slice(1)||"{}"),this.onOpen(e);break;case"a":e=JSON.parse(t.data.slice(1)||"[]");for(var n=0;n<e.length;n++)this.onEvent(e[n]);break;case"m":e=JSON.parse(t.data.slice(1)||"null"),this.onEvent(e);break;case"h":this.hooks.onHeartbeat(this);break;case"c":e=JSON.parse(t.data.slice(1)||"[]"),this.onClose(e[0],e[1],!0)}}onOpen(t){var e,n;this.readyState===ve.CONNECTING?(t&&t.hostname&&(this.location.base=(e=t.hostname,(n=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(this.location.base))[1]+e+n[3])),this.readyState=ve.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(t){this.readyState===ve.OPEN&&this.onmessage&&this.onmessage({data:t})}onActivity(){this.onactivity&&this.onactivity()}onError(t){this.onerror&&this.onerror(t)}openStream(){this.stream=_e.createSocketRequest("POST",we(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",(t=>{this.onChunk(t)})),this.stream.bind("finished",(t=>{this.hooks.onFinished(this,t)})),this.stream.bind("buffer_too_long",(()=>{this.reconnect()}));try{this.stream.start()}catch(t){Y.defer((()=>{this.onError(t),this.onClose(1006,"Could not start streaming",!1)}))}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}},ke={getReceiveURL:function(t,e){return t.base+"/"+e+"/xhr_streaming"+t.queryString},onHeartbeat:function(t){t.sendRaw("[]")},sendHeartbeat:function(t){t.sendRaw("[]")},onFinished:function(t,e){t.onClose(1006,"Connection interrupted ("+e+")",!1)}},me={getReceiveURL:function(t,e){return t.base+"/"+e+"/xhr"+t.queryString},onHeartbeat:function(){},sendHeartbeat:function(t){t.sendRaw("[]")},onFinished:function(t,e){200===e?t.reconnect():t.onClose(1006,"Connection interrupted ("+e+")",!1)}},Se={getRequest:function(t){var e=new(_e.getXHRAPI());return e.onreadystatechange=e.onprogress=function(){switch(e.readyState){case 3:e.responseText&&e.responseText.length>0&&t.onChunk(e.status,e.responseText);break;case 4:e.responseText&&e.responseText.length>0&&t.onChunk(e.status,e.responseText),t.emit("finished",e.status),t.close()}},e},abortRequest:function(t){t.onreadystatechange=null,t.abort()}},_e={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:r,DependenciesReceivers:C,getDefaultStrategy:function(t,e,n){var i={};function r(e,r,s,o,h){var u=n(t,e,r,s,o,h);return i[e]=u,u}var s,o=Object.assign({},e,{hostNonTLS:t.wsHost+":"+t.wsPort,hostTLS:t.wsHost+":"+t.wssPort,httpPath:t.wsPath}),h=Object.assign({},o,{useTLS:!0}),u=Object.assign({},e,{hostNonTLS:t.httpHost+":"+t.httpPort,hostTLS:t.httpHost+":"+t.httpsPort,httpPath:t.httpPath}),c={loop:!0,timeout:15e3,timeoutLimit:6e4},a=new te({minPingDelay:1e4,maxPingDelay:t.activityTimeout}),l=new te({lives:2,minPingDelay:1e4,maxPingDelay:t.activityTimeout}),f=r("ws","ws",3,o,a),d=r("wss","ws",3,h,a),v=r("sockjs","sockjs",1,u),p=r("xhr_streaming","xhr_streaming",1,u,l),w=r("xdr_streaming","xdr_streaming",1,u,l),b=r("xhr_polling","xhr_polling",1,u),y=r("xdr_polling","xdr_polling",1,u),g=new ee([f],c),k=new ee([d],c),m=new ee([v],c),S=new ee([new ue(ae(p),p,w)],c),_=new ee([new ue(ae(b),b,y)],c),j=new ee([new ue(ae(S),new ne([S,new he(_,{delay:4e3})]),_)],c),C=new ue(ae(j),j,m);return s=new ne(e.useTLS?[g,new he(C,{delay:2e3})]:[g,new he(k,{delay:2e3}),new he(C,{delay:5e3})]),new re(new ce(new ue(ae(f),s,C)),i,{ttl:18e5,timeline:e.timeline,useTLS:e.useTLS})},Transports:Lt,transportConnectionInitializer:function(){var t=this;t.timeline.info(t.buildTimelineMessage({transport:t.name+(t.options.useTLS?"s":"")})),t.hooks.isInitialized()?t.changeState("initialized"):t.hooks.file?(t.changeState("initializing"),O.load(t.hooks.file,{useTLS:t.options.useTLS},(function(e,n){t.hooks.isInitialized()?(t.changeState("initialized"),n(!0)):(e&&t.onError(e),t.onClose(),n(!1))}))):t.onClose()},HTTPFactory:{createStreamingSocket(t){return this.createSocket(ke,t)},createPollingSocket(t){return this.createSocket(me,t)},createSocket:(t,e)=>new ge(t,e),createXHR(t,e){return this.createRequest(Se,t,e)},createRequest:(t,e,n)=>new de(t,e,n),createXDR:function(t,e){return this.createRequest(fe,t,e)}},TimelineTransport:vt,getXHRAPI:()=>window.XMLHttpRequest,getWebSocketAPI:()=>window.WebSocket||window.MozWebSocket,setup(t){window.Pusher=t;var e=()=>{this.onDocumentBody(t.ready)};window.JSON?e():O.load("json2",{},e)},getDocument:()=>document,getProtocol(){return this.getDocument().location.protocol},getAuthorizers:()=>({ajax:D,jsonp:lt}),onDocumentBody(t){document.body?t():setTimeout((()=>{this.onDocumentBody(t)}),0)},createJSONPRequest:(t,e)=>new dt(t,e),createScriptRequest:t=>new ft(t),getLocalStorage(){try{return window.localStorage}catch(t){return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){return new(this.getXHRAPI())},createMicrosoftXHR:()=>new ActiveXObject("Microsoft.XMLHTTP"),getNetwork:()=>Ut,createWebSocket(t){return new(this.getWebSocketAPI())(t)},createSocketRequest(t,e){if(this.isXHRSupported())return this.HTTPFactory.createXHR(t,e);if(this.isXDRSupported(0===e.indexOf("https:")))return this.HTTPFactory.createXDR(t,e);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var t=this.getXHRAPI();return Boolean(t)&&void 0!==(new t).withCredentials},isXDRSupported(t){var e=t?"https:":"http:",n=this.getProtocol();return Boolean(window.XDomainRequest)&&n===e},addUnloadListener(t){void 0!==window.addEventListener?window.addEventListener("unload",t,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",t)},removeUnloadListener(t){void 0!==window.addEventListener?window.removeEventListener("unload",t,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",t)},randomInt:t=>Math.floor((window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)*t)};!function(t){t[t.ERROR=3]="ERROR",t[t.INFO=6]="INFO",t[t.DEBUG=7]="DEBUG"}(ye||(ye={}));var je=ye;class Ce{constructor(t,e,n){this.key=t,this.session=e,this.events=[],this.options=n||{},this.sent=0,this.uniqueID=0}log(t,e){t<=this.options.level&&(this.events.push(K({},e,{timestamp:Y.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(t){this.log(je.ERROR,t)}info(t){this.log(je.INFO,t)}debug(t){this.log(je.DEBUG,t)}isEmpty(){return 0===this.events.length}send(t,e){var n=K({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],t(n,((t,n)=>{t||this.sent++,e&&e(t,n)})),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class Oe{constructor(t,e,n,i){this.name=t,this.priority=e,this.transport=n,this.options=i||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(t,e){if(!this.isSupported())return Ee(new M,e);if(this.priority<t)return Ee(new A,e);var n=!1,i=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),r=null,s=function(){i.unbind("initialized",s),i.connect()},o=function(){r=Zt.createHandshake(i,(function(t){n=!0,c(),e(null,t)}))},h=function(t){c(),e(t)},u=function(){var t;c(),t=ct(i),e(new N(t))},c=function(){i.unbind("initialized",s),i.unbind("open",o),i.unbind("error",h),i.unbind("closed",u)};return i.bind("initialized",s),i.bind("open",o),i.bind("error",h),i.bind("closed",u),i.initialize(),{abort:()=>{n||(c(),r?r.close():i.close())},forceMinPriority:t=>{n||this.priority<t&&(r?r.close():i.close())}}}}function Ee(t,e){return Y.defer((function(){e(t)})),{abort:function(){},forceMinPriority:function(){}}}const{Transports:Te}=_e;var xe=function(t,e,n,i,r,s){var o,h=Te[n];if(!h)throw new U(n);return t.enabledTransports&&-1===tt(t.enabledTransports,e)||t.disabledTransports&&-1!==tt(t.disabledTransports,e)?o=Pe:(r=Object.assign({ignoreNullOrigin:t.ignoreNullOrigin},r),o=new Oe(e,i,s?s.getAssistant(h):h,r)),o},Pe={isSupported:function(){return!1},connect:function(t,e){var n=Y.defer((function(){e(new M)}));return{abort:function(){n.ensureAborted()},forceMinPriority:function(){}}}};function Re(t){return t.httpHost?t.httpHost:t.cluster?`sockjs-${t.cluster}.pusher.com`:a}function Ie(t){return t.wsHost?t.wsHost:`ws-${t.cluster}.pusher.com`}function Ae(t){return"https:"===_e.getProtocol()||!1!==t.forceTLS}function Ne(t){return"enableStats"in t?t.enableStats:"disableStats"in t&&!t.disableStats}function Le(t){const e=Object.assign(Object.assign({},k),t.userAuthentication);return"customHandler"in e&&null!=e.customHandler?e.customHandler:(t=>{if(void 0===_e.getAuthorizers()[t.transport])throw`'${t.transport}' is not a recognized auth transport`;return(e,n)=>{const i=((t,e)=>{var n="socket_id="+encodeURIComponent(t.socketId);for(var i in e.params)n+="&"+encodeURIComponent(i)+"="+encodeURIComponent(e.params[i]);if(null!=e.paramsProvider){let t=e.paramsProvider();for(var i in t)n+="&"+encodeURIComponent(i)+"="+encodeURIComponent(t[i])}return n})(e,t);_e.getAuthorizers()[t.transport](_e,i,t,T.UserAuthentication,n)}})(e)}function Ue(t,e){const n=function(t,e){let n;return"channelAuthorization"in t?n=Object.assign(Object.assign({},m),t.channelAuthorization):(n={transport:t.authTransport||w,endpoint:t.authEndpoint||p},"auth"in t&&("params"in t.auth&&(n.params=t.auth.params),"headers"in t.auth&&(n.headers=t.auth.headers)),"authorizer"in t&&(n.customHandler=((t,e,n)=>{const i={authTransport:e.transport,authEndpoint:e.endpoint,auth:{params:e.params,headers:e.headers}};return(e,r)=>{const s=t.channel(e.channelName);n(s,i).authorize(e.socketId,r)}})(e,n,t.authorizer))),n}(t,e);return"customHandler"in n&&null!=n.customHandler?n.customHandler:(t=>{if(void 0===_e.getAuthorizers()[t.transport])throw`'${t.transport}' is not a recognized auth transport`;return(e,n)=>{const i=((t,e)=>{var n="socket_id="+encodeURIComponent(t.socketId);for(var i in n+="&channel_name="+encodeURIComponent(t.channelName),e.params)n+="&"+encodeURIComponent(i)+"="+encodeURIComponent(e.params[i]);if(null!=e.paramsProvider){let t=e.paramsProvider();for(var i in t)n+="&"+encodeURIComponent(i)+"="+encodeURIComponent(t[i])}return n})(e,t);_e.getAuthorizers()[t.transport](_e,i,t,T.ChannelAuthorization,n)}})(n)}class Me extends St{constructor(t){super((function(t){at.debug(`No callbacks on watchlist events for ${t}`)})),this.pusher=t,this.bindWatchlistInternalEvent()}handleEvent(t){t.data.events.forEach((t=>{this.emit(t.name,t)}))}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",(t=>{"pusher_internal:watchlist_events"===t.event&&this.handleEvent(t)}))}}class $e extends St{constructor(t){super((function(t){at.debug("No callbacks on user for "+t)})),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(t,e)=>{if(t)return at.warn(`Error during signin: ${t}`),void this._cleanup();this.pusher.send_event("pusher:signin",{auth:e.auth,user_data:e.user_data})},this.pusher=t,this.pusher.connection.bind("state_change",(({previous:t,current:e})=>{"connected"!==t&&"connected"===e&&this._signin(),"connected"===t&&"connected"!==e&&(this._cleanup(),this._newSigninPromiseIfNeeded())})),this.watchlist=new Me(t),this.pusher.connection.bind("message",(t=>{"pusher:signin_success"===t.event&&this._onSigninSuccess(t.data),this.serverToUserChannel&&this.serverToUserChannel.name===t.channel&&this.serverToUserChannel.handleEvent(t)}))}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),"connected"===this.pusher.connection.state&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(t){try{this.user_data=JSON.parse(t.user_data)}catch(e){return at.error(`Failed parsing user data after signin: ${t.user_data}`),void this._cleanup()}if("string"!=typeof this.user_data.id||""===this.user_data.id)return at.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),void this._cleanup();this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){this.serverToUserChannel=new Jt(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global(((t,e)=>{0!==t.indexOf("pusher_internal:")&&0!==t.indexOf("pusher:")&&this.emit(t,e)})),(t=>{t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():t.subscriptionPending||"connected"!==this.pusher.connection.state||t.subscribe()})(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested)return;if(this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:t,resolve:e}=function(){let t,e;return{promise:new Promise(((n,i)=>{t=n,e=i})),resolve:t,reject:e}}();t.done=!1;const n=()=>{t.done=!0};t.then(n).catch(n),this.signinDonePromise=t,this._signinDoneResolve=e}}class De{static ready(){De.isReady=!0;for(var t=0,e=De.instances.length;t<e;t++)De.instances[t].connect()}static getClientFeatures(){return nt(ot({ws:_e.Transports.ws},(function(t){return t.isSupported({})})))}constructor(t,e){!function(t){if(null==t)throw"You must pass your app key when you instantiate Pusher."}(t),function(t){if(null==t)throw"You must pass an options object";if(null==t.cluster)throw"Options object must provide a cluster";"disableStats"in t&&at.warn("The disableStats option is deprecated in favor of enableStats")}(e),this.key=t,this.config=function(t,e){let n={activityTimeout:t.activityTimeout||b,cluster:t.cluster,httpPath:t.httpPath||d,httpPort:t.httpPort||l,httpsPort:t.httpsPort||f,pongTimeout:t.pongTimeout||y,statsHost:t.statsHost||v,unavailableTimeout:t.unavailableTimeout||g,wsPath:t.wsPath||c,wsPort:t.wsPort||h,wssPort:t.wssPort||u,enableStats:Ne(t),httpHost:Re(t),useTLS:Ae(t),wsHost:Ie(t),userAuthenticator:Le(t),channelAuthorizer:Ue(t,e)};return"disabledTransports"in t&&(n.disabledTransports=t.disabledTransports),"enabledTransports"in t&&(n.enabledTransports=t.enabledTransports),"ignoreNullOrigin"in t&&(n.ignoreNullOrigin=t.ignoreNullOrigin),"timelineParams"in t&&(n.timelineParams=t.timelineParams),"nacl"in t&&(n.nacl=t.nacl),n}(e,this),this.channels=Zt.createChannels(),this.global_emitter=new St,this.sessionID=_e.randomInt(1e9),this.timeline=new Ce(this.key,this.sessionID,{cluster:this.config.cluster,features:De.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:je.INFO,version:s}),this.config.enableStats&&(this.timelineSender=Zt.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+_e.TimelineTransport.name})),this.connection=Zt.createConnectionManager(this.key,{getStrategy:t=>_e.getDefaultStrategy(this.config,t,xe),timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:Boolean(this.config.useTLS)}),this.connection.bind("connected",(()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())})),this.connection.bind("message",(t=>{var e=0===t.event.indexOf("pusher_internal:");if(t.channel){var n=this.channel(t.channel);n&&n.handleEvent(t)}e||this.global_emitter.emit(t.event,t.data)})),this.connection.bind("connecting",(()=>{this.channels.disconnect()})),this.connection.bind("disconnected",(()=>{this.channels.disconnect()})),this.connection.bind("error",(t=>{at.warn(t)})),De.instances.push(this),this.timeline.info({instances:De.instances.length}),this.user=new $e(this),De.isReady&&this.connect()}channel(t){return this.channels.find(t)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var t=this.connection.isUsingTLS(),e=this.timelineSender;this.timelineSenderTimer=new Q(6e4,(function(){e.send(t)}))}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(t,e,n){return this.global_emitter.bind(t,e,n),this}unbind(t,e,n){return this.global_emitter.unbind(t,e,n),this}bind_global(t){return this.global_emitter.bind_global(t),this}unbind_global(t){return this.global_emitter.unbind_global(t),this}unbind_all(t){return this.global_emitter.unbind_all(),this}subscribeAll(){var t;for(t in this.channels.channels)this.channels.channels.hasOwnProperty(t)&&this.subscribe(t)}subscribe(t){var e=this.channels.add(t,this);return e.subscriptionPending&&e.subscriptionCancelled?e.reinstateSubscription():e.subscriptionPending||"connected"!==this.connection.state||e.subscribe(),e}unsubscribe(t){var e=this.channels.find(t);e&&e.subscriptionPending?e.cancelSubscription():(e=this.channels.remove(t))&&e.subscribed&&e.unsubscribe()}send_event(t,e,n){return this.connection.send_event(t,e,n)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}De.instances=[],De.isReady=!1,De.logToConsole=!1,De.Runtime=_e,De.ScriptReceivers=_e.ScriptReceivers,De.DependenciesReceivers=_e.DependenciesReceivers,De.auth_callbacks=_e.auth_callbacks;var ze=e.default=De;_e.setup(De)}])},N.exports=A());
2
+ /*!
3
+ * Pusher JavaScript Library v8.3.0
4
+ * https://pusher.com/
5
+ *
6
+ * Copyright 2020, Pusher
7
+ * Released under the MIT licence.
8
+ */const U={testing:{key:"9f40638e93d9de3f1d93",host:"testing-websocket.apps.tet-ocp-tst.telekom.lv",port:"443"},staging:{key:"9f40638e93d9de3f1d93",host:"uat-websocket.apps.tet-ocp-tst.telekom.lv",port:"443"},production:{key:"",host:"websocket.apps.tet-ocp-prd.telekom.lv",port:"443"}}[t.environment]??{};window.Pusher=R(L);const M=()=>new P({broadcaster:"pusher",key:U.key,wsHost:U.host,wsPort:U.port,encrypted:!0,forceTLS:!0,logToConsole:!0,disableStats:!0,enabledTransports:["ws","wss"]});var $;!function(t){t[t.Ok=200]="Ok",t[t.Accepted=202]="Accepted",t[t.NotFound=404]="NotFound",t[t.Forbidden=403]="Forbidden",t[t.InternalError=500]="InternalError"}($||($={}));export{e as A,$ as H,M as c,s as e}
@@ -0,0 +1 @@
1
+ class t{onHidden;tooltip;version=0;active=!1;openedAt;showing=!1;immediate=!1;originalShowDelay;hideTimeout;hideFrame;constructor(t){this.onHidden=t}request(t=!1){this.active=!0,this.immediate||=t,this.version++,clearTimeout(this.hideTimeout),this.tooltip&&this.open(this.tooltip)}attach(t){t&&t!==this.tooltip&&(this.tooltip=t,this.showing=!1,this.openedAt=void 0,this.active&&this.open(t))}dismiss(t=!1){this.active=!1;const i=++this.version;clearTimeout(this.hideTimeout);const s=this.tooltip;if(!s)return void this.onHidden();const h=void 0===this.openedAt||Date.now()-this.openedAt<this.delay(s,"--tooltip-delay-show"),o=t||h?0:this.delay(s,"--tooltip-delay-hide");o>0?this.hideTimeout=setTimeout((()=>{this.hide(s,i)}),o):this.hide(s,i)}reset(){this.version++,this.active=!1,this.tooltip&&void 0!==this.originalShowDelay&&(this.originalShowDelay?this.tooltip.style.setProperty("--tooltip-delay-show",this.originalShowDelay):this.tooltip.style.removeProperty("--tooltip-delay-show")),this.originalShowDelay=void 0,this.immediate=!1,this.tooltip=void 0,this.openedAt=void 0,this.showing=!1,clearTimeout(this.hideTimeout),void 0!==this.hideFrame&&(cancelAnimationFrame(this.hideFrame),this.hideFrame=void 0)}delay(t,i){const s=globalThis.getComputedStyle(t).getPropertyValue(i).trim(),h=Number.parseFloat(s)*(s.endsWith("ms")?1:1e3);return Number.isFinite(h)?Math.max(0,h):0}async open(t){const i=this.version;if(await(t.componentOnReady?.()),i!==this.version||!this.active||t!==this.tooltip||!t.isConnected)return;const s=!this.showing&&void 0!==this.openedAt&&Date.now()-this.openedAt>=this.delay(t,"--tooltip-delay-show");(this.immediate||s)&&this.skipShowDelay(t),this.showing||(t.style.display="inline-block",t.getBoundingClientRect(),this.openedAt=Date.now(),this.showing=!0,await t.show())}skipShowDelay(t){this.originalShowDelay??=t.style.getPropertyValue("--tooltip-delay-show");const i=t.getAnimations?.()??[];t.style.setProperty("--tooltip-delay-show","0s");for(const t of i){const i=t.effect?.getTiming().delay??0;i>0&&"transitionProperty"in t&&["opacity","visibility"].includes(String(t.transitionProperty))&&(t.currentTime=Math.max("number"==typeof t.currentTime?t.currentTime:0,i))}}async hide(t,i){i===this.version&&t===this.tooltip&&(this.showing=!1,await t.hide(),i===this.version&&(this.hideFrame=requestAnimationFrame((()=>{this.hideFrame=void 0;const s=t.getAnimations?.()??[];Promise.all(s.map((t=>t.finished.catch((()=>{}))))).then((()=>{i!==this.version||this.active||this.onHidden()}))}))))}}const i=new Intl.DateTimeFormat("lv-LV",{weekday:"long",timeZone:"UTC"});function s(t){if(!t||!/^\d{4}-\d{2}-\d{2}$/.test(t))return"";const s=new Date(`${t}T00:00:00Z`);if(Number.isNaN(s.getTime())||s.toISOString().slice(0,10)!==t)return"";const h=i.format(s),[o,e,n]=t.split("-");return`${h.charAt(0).toLocaleUpperCase("lv-LV")}${h.slice(1)}, ${n}.${e}.${o}`}export{t as T,s as f}
@@ -0,0 +1 @@
1
+ const n=n=>n.toLowerCase().trim();export{n}
@@ -0,0 +1,3 @@
1
+ const t={environment:"production"};function n(t,n,e){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,n);if(o&&(!e||o.get))return o;t=Object.getPrototypeOf(t)}}var e,o=(t,e)=>{var o;Object.entries(null!=(o=e.o.t)?o:{}).map((([o,[s]])=>{if(31&s||32&s){const s=t[o],i=n(Object.getPrototypeOf(t),o,!0)||Object.getOwnPropertyDescriptor(t,o);i&&Object.defineProperty(t,o,{get(){return i.get.call(this)},set(t){i.set.call(this,t)},configurable:!0,enumerable:!0}),e.i.has(o)?t[o]=e.i.get(o):void 0!==s&&(t[o]=s)}}))},s=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},i=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.l=t,512&n.o.u&&o(t,n))},l=(t,n)=>n in t,r=(t,n)=>(0,console.error)(t,n),c=new Map,u=new Map,f=new Map,a="slot-fb{display:contents}slot-fb[hidden]{display:none}",d="http://www.w3.org/1999/xlink",h="undefined"!=typeof window?window:{},p=h.HTMLElement||class{},v={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},b=t=>Promise.resolve(t),m=(()=>{try{return!!h.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),y=!!m&&(()=>!!h.document&&Object.getOwnPropertyDescriptor(h.document.adoptedStyleSheets,"length").writable)(),g=!1,w=[],$=[],j=()=>{var t;return(null==(t=h.document)?void 0:t.hidden)?k(N):v.raf(N)},O=(t,n)=>e=>{t.push(e),g||(g=!0,n&&4&v.u?k(N):j())},S=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){r(t)}t.length=0},N=()=>{S(w),S($),(g=w.length>0)&&j()},k=t=>b().then(t),C=O($,!0),E=t=>{const n=new URL(t,v.h);return n.origin!==h.location.origin?n.href:n.pathname};function x(t){const n={mode:"open"};n.delegatesFocus=!!(16&t.u);const o=this.attachShadow(n);void 0===e&&(e=null),e&&(y?o.adoptedStyleSheets.push(e):o.adoptedStyleSheets=[...o.adoptedStyleSheets,e])}var M=t=>{const n=tt(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&L(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!R(t,_(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&tt(t,"childNodes").length&&M(t)}},T=t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n};function L(t,n,e){let o,s=0,i=[];for(;s<t.length;s++){if(o=t[s],o["s-sr"]&&(!n||o["s-hn"]===n)&&(void 0===e||_(o)===e)&&(i.push(o),void 0!==e))return i;i=[...i,...L(tt(o,"childNodes"),n,e)]}return i}var R=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let s=t;for(;s=s.nextSibling;)_(s)!==n||!e&&s["s-sr"]||o.push(s);return o},A=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,F=(t,n,e)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const o=document.createTextNode("");if(o["s-nr"]=t,!n["s-cr"]||!n["s-cr"].parentNode)return;const s=n["s-cr"].parentNode;tt(s,e?"prepend":"appendChild").call(s,o),t["s-ol"]=o,t["s-sh"]=n["s-hn"]},_=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function B(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function P(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=_(t)||"";return{slotNode:L(tt(n,"childNodes"),n.tagName,o)[0],slotName:o}}var D=t=>{if(t.__cloneNode)return;const n=t.__cloneNode=t.cloneNode;t.cloneNode=function(t){const e=this.shadowRoot&&true,o=n.call(this,!!e&&t);if(!e&&t){let t,n,e=0;const s=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"],i=this.__childNodes||this.childNodes;for(;e<i.length;e++)t=i[e]["s-nr"],n=s.every((t=>!i[e][t])),t&&(o.__appendChild?o.__appendChild(t.cloneNode(!0)):o.appendChild(t.cloneNode(!0))),n&&o.appendChild(i[e].cloneNode(!0))}return o}},H=t=>{t.__appendChild||(t.__appendChild=t.appendChild,t.appendChild=function(t){const{slotName:n,slotNode:e}=P(t,this);if(e){F(t,e);const o=R(e,n),s=o[o.length-1],i=tt(s,"parentNode"),l=tt(i,"insertBefore")(t,s.nextSibling);return B(e),M(this),l}return this.__appendChild(t)})},U=t=>{t.__removeChild||(t.__removeChild=t.removeChild,t.removeChild=function(t){return t&&void 0!==t["s-sn"]&&L(this.__childNodes||this.childNodes,this.tagName,t["s-sn"])&&t.isConnected?(t.remove(),void M(this)):this.__removeChild(t)})},W=t=>{t.__prepend||(t.__prepend=t.prepend,t.prepend=function(...n){n.forEach((n=>{"string"==typeof n&&(n=this.ownerDocument.createTextNode(n));const e=(n["s-sn"]=_(n))||"",o=L(tt(this,"childNodes"),this.tagName,e)[0];if(o){F(n,o,!0);const t=R(o,e)[0],s=tt(t,"parentNode"),i=tt(s,"insertBefore")(n,tt(t,"nextSibling"));return B(o),i}return 1===n.nodeType&&n.getAttribute("slot")&&(n.hidden=!0),t.__prepend(n)}))})},z=t=>{t.__append||(t.__append=t.append,t.append=function(...t){t.forEach((t=>{"string"==typeof t&&(t=this.ownerDocument.createTextNode(t)),this.appendChild(t)}))})},V=t=>{if(t.__insertAdjacentHTML)return;const n=t.insertAdjacentHTML;t.insertAdjacentHTML=function(t,e){if("afterbegin"!==t&&"beforeend"!==t)return n.call(this,t,e);const o=this.ownerDocument.createElement("_");let s;if(o.innerHTML=e,"afterbegin"===t)for(;s=o.firstChild;)this.prepend(s);else if("beforeend"===t)for(;s=o.firstChild;)this.append(s)}},q=t=>{t.insertAdjacentText=function(t,n){this.insertAdjacentHTML(t,n)}},I=t=>{t.__insertBefore||t.__insertBefore||(t.__insertBefore=t.insertBefore,t.insertBefore=function(t,n){const{slotName:e,slotNode:o}=P(t,this),s=this.__childNodes?this.childNodes:T(this.childNodes);if(o){let i=!1;if(s.forEach((s=>{if(s!==n&&null!==n);else{if(i=!0,null===n||e!==n["s-sn"])return void this.appendChild(t);if(e===n["s-sn"]){F(t,o);const e=tt(n,"parentNode");tt(e,"insertBefore")(t,n),B(o)}}})),i)return t}const i=null==n?void 0:n.__parentNode;return i&&!this.isSameNode(i)?this.appendChild(t):this.__insertBefore(t,n)})},Y=t=>{if(t.__insertAdjacentElement)return;const n=t.insertAdjacentElement;t.insertAdjacentElement=function(t,e){return"afterbegin"!==t&&"beforeend"!==t?n.call(this,t,e):"afterbegin"===t?(this.prepend(e),e):"beforeend"===t?(this.append(e),e):e}},G=t=>{X("textContent",t),Object.defineProperty(t,"textContent",{get:function(){let t="";return(this.__childNodes?this.childNodes:T(this.childNodes)).forEach((n=>t+=n.textContent||"")),t},set:function(t){(this.__childNodes?this.childNodes:T(this.childNodes)).forEach((t=>{t["s-ol"]&&t["s-ol"].remove(),t.remove()})),this.insertAdjacentHTML("beforeend",t)}})},Z=t=>{class n extends Array{item(t){return this[t]}}X("children",t),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),X("firstChild",t),Object.defineProperty(t,"firstChild",{get(){return this.childNodes[0]||null}}),X("lastChild",t),Object.defineProperty(t,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]||null}}),X("childNodes",t),Object.defineProperty(t,"childNodes",{get(){const t=new n;return t.push(...T(this.__childNodes)),t}})},J=t=>{t&&!t.__parentNode&&(X("parentNode",t),Object.defineProperty(t,"parentNode",{get:function(){var t;return(null==(t=this["s-ol"])?void 0:t.parentNode)||this.__parentNode},set:function(t){this.__parentNode=t}}))},K=["children","nextElementSibling","previousElementSibling"],Q=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function X(t,n){if(!globalThis.Node||!globalThis.Element)return;let e;K.includes(t)?e=Object.getOwnPropertyDescriptor(Element.prototype,t):Q.includes(t)&&(e=Object.getOwnPropertyDescriptor(Node.prototype,t)),e||(e=Object.getOwnPropertyDescriptor(n,t)),e&&Object.defineProperty(n,"__"+t,e)}function tt(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}function nt(t){var n,e,o;return null!=(o=null==(e=null==(n=t.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?o:void 0}var et,ot,st,it=new WeakMap,lt=t=>"sc-"+t.p,rt=t=>"object"==(t=typeof t)||"function"===t,ct=(t,n,...e)=>{let o=null,s=null,i=null,l=!1,c=!1;const u=[],f=n=>{for(let e=0;e<n.length;e++)if(o=n[e],Array.isArray(o))f(o);else if(null!=o&&"boolean"!=typeof o){if(l="function"!=typeof t&&!rt(o))o+="";else if("function"!=typeof t&&void 0===o.u){r("Invalid vNode child");continue}l&&c?u[u.length-1].v+=o:u.push(l?ut(null,o):o),c=l}};if(f(e),n){n.key&&(s=n.key),n.name&&(i=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}if("function"==typeof t)return t(null===n?{}:n,u,at);const a=ut(t,null);return a.m=n,u.length>0&&(a.$=u),a.j=s,a.O=i,a},ut=(t,n)=>({u:0,S:t,v:null!=n?n:null,N:null,$:null,m:null,j:null,O:null}),ft={},at={forEach:(t,n)=>t.map(dt).forEach(n),map:(t,n)=>t.map(dt).map(n).map(ht)},dt=t=>({vattrs:t.m,vchildren:t.$,vkey:t.j,vname:t.O,vtag:t.S,vtext:t.v}),ht=t=>{if("function"==typeof t.vtag){const n={...t.vattrs};return t.vkey&&(n.key=t.vkey),t.vname&&(n.name=t.vname),ct(t.vtag,n,...t.vchildren||[])}const n=ut(t.vtag,t.vtext);return n.m=t.vattrs,n.$=t.vchildren,n.j=t.vkey,n.O=t.vname,n},pt=t=>{if(!t)return;const n=Object.keys(t);if(0===n.length)return;let e=!1;for(const o of n){if(e)break;for(const n of t[o])if("string"==typeof n){e=!0;break}}if(!e)return t;const o={};for(const e of n)o[e]=t[e].map((t=>"string"==typeof t?{[t]:0}:t));return o},vt=(t,n)=>null==t||rt(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?t+"":t,bt=t=>{var n;return null==(n=s(t))?void 0:n.$hostElement$},mt=(t,n)=>{const e=bt(t);return{emit:t=>yt(e,n,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},yt=(t,n,e)=>{const o=v.ce(n,e);return t.dispatchEvent(o),o},gt=(t,n,e,o,i,r)=>{if(e===o)return;let c=l(t,n),u=n.toLowerCase();if("class"===n){const n=t.classList,s=Ot(e);let i=Ot(o);n.remove(...s.filter((t=>t&&!i.includes(t)))),n.add(...i.filter((t=>t&&!s.includes(t))))}else if("style"===n){for(const n in e)o&&null!=o[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in o)e&&o[n]===e[n]||(n.includes("-")?t.style.setProperty(n,o[n]):t.style[n]=o[n])}else if("key"===n);else if("ref"===n)o&&qt(o,t);else if(c||"o"!==n[0]||"n"!==n[1]){if("a"===n[0]&&n.startsWith("attr:")){const e=n.slice(5);let i;{const n=s(t);if(n&&n.o&&n.o.t){const t=n.o.t[e];t&&t[1]&&(i=t[1])}}return i||(i=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(i)||t.removeAttribute(i):t.setAttribute(i,!0===o?"":o))}if("p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=o}catch(t){}return}{const s=rt(o);if((c||s&&null!==o)&&!i)try{if(t.tagName.includes("-"))t[n]!==o&&(t[n]=o);else{const s=null==o?"":o;"list"===n?c=!1:null!=e&&t[n]===s||("function"==typeof t.__lookupSetter__(n)?t[n]=s:t.setAttribute(n,s))}}catch(t){}let l=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(n=u,l=!0),null==o||!1===o?(!1!==o||""===t.getAttribute(n)||4&r&&!$t(n))&&(l?t.removeAttributeNS(d,n):t.removeAttribute(n)):(!c||4&r||i)&&!s&&1===t.nodeType&&(o=!0===o?"":o,l?t.setAttributeNS(d,n,o):t.setAttribute(n,o))}}else if(n="-"===n[2]?n.slice(3):l(h,u)?u.slice(2):u[2]+n.slice(3),e||o){const s=n.endsWith(St);n=n.replace(Nt,""),e&&v.rel(t,n,e,s),o&&v.ael(t,n,o,s)}},wt=new Set(["draggable","contenteditable","spellcheck"]),$t=t=>wt.has(t)||t.startsWith("aria-"),jt=/\s/,Ot=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(jt):[]),St="Capture",Nt=RegExp(St+"$"),kt=(t,n,e)=>{const o=11===n.N.nodeType&&n.N.host?n.N.host:n.N,s=t&&t.m||{},i=n.m||{};for(const t of Ct(Object.keys(s)))t in i||gt(o,t,s[t],void 0,e,n.u);for(const t of Ct(Object.keys(i)))gt(o,t,s[t],i[t],e,n.u)};function Ct(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Et=!1,xt=!1,Mt=!1,Tt=!1,Lt=[],Rt=[],At=(t,n,e)=>{var o;const s=n.$[e];let i,l,r,c=0;if(Et||(Mt=!0,"slot"===s.S&&(s.u|=s.$?2:1)),null!=s.v)i=s.N=h.document.createTextNode(s.v);else if(1&s.u)i=s.N=h.document.createTextNode(""),kt(null,s,Tt);else{if(Tt||(Tt="svg"===s.S),!h.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=s.N=h.document.createElementNS(Tt?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Et&&2&s.u?"slot-fb":s.S),Tt&&"foreignObject"===s.S&&(Tt=!1),kt(null,s,Tt),null!=et&&void 0!==et&&i["s-si"]!==et&&i.classList.add(i["s-si"]=et),s.$){const n="template"===s.S?i.content:i;for(c=0;c<s.$.length;++c)l=At(t,s,c),l&&n.appendChild(l)}"svg"===s.S?Tt=!1:"foreignObject"===i.tagName&&(Tt=!0)}return i["s-hn"]=st,3&s.u&&(i["s-sr"]=!0,i["s-cr"]=ot,i["s-sn"]=s.O||"",i["s-rf"]=null==(o=s.m)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const s=this["s-cr"].parentElement;return(s.__childNodes?s.childNodes:T(s.childNodes)).forEach((t=>{o===_(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}(i),r=t&&t.$&&t.$[e],r&&r.S===s.S&&t.N&&Ft(t.N),Yt(ot,i,n.N,null==t?void 0:t.N)),i},Ft=t=>{v.u|=1;const n=t.closest(st.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of e?o.reverse():o)null!=t["s-sh"]&&(It(n,t,null!=e?e:null),t["s-sh"]=void 0,Mt=!0)}v.u&=-2},_t=(t,n)=>{v.u|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===st&&e.push(n)}for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==st&&o["s-ol"]&&(It(Ht(o).parentNode,o,Ht(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,Mt=!0),n&&_t(o,n)}v.u&=-2},Bt=(t,n,e,o,s,i)=>{let l,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===st&&(r=r.shadowRoot),"template"===e.S&&(r=r.content);s<=i;++s)o[s]&&(l=At(null,e,s),l&&(o[s].N=l,It(r,l,Ht(n))))},Pt=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.N;Vt(n),t&&(xt=!0,t["s-ol"]?t["s-ol"].remove():_t(t,!0),t.remove())}}},Dt=(t,n,e=!1)=>t.S===n.S&&("slot"===t.S?t.O===n.O:e?(e&&!t.j&&n.j&&(t.j=n.j),!0):t.j===n.j),Ht=t=>t&&t["s-ol"]||t,Ut=(t,n,e=!1)=>{const o=n.N=t.N,s=t.$,i=n.$,l=n.S,r=n.v;let c;null==r?(Tt="svg"===l||"foreignObject"!==l&&Tt,"slot"!==l||Et||t.O!==n.O&&(n.N["s-sn"]=n.O||"",Ft(n.N.parentElement)),kt(t,n,Tt),null!==s&&null!==i?((t,n,e,o,s=!1)=>{let i,l,r=0,c=0,u=0,f=0,a=n.length-1,d=n[0],h=n[a],p=o.length-1,v=o[0],b=o[p];const m="template"===e.S?t.content:t;for(;r<=a&&c<=p;)if(null==d)d=n[++r];else if(null==h)h=n[--a];else if(null==v)v=o[++c];else if(null==b)b=o[--p];else if(Dt(d,v,s))Ut(d,v,s),d=n[++r],v=o[++c];else if(Dt(h,b,s))Ut(h,b,s),h=n[--a],b=o[--p];else if(Dt(d,b,s))"slot"!==d.S&&"slot"!==b.S||_t(d.N.parentNode,!1),Ut(d,b,s),It(m,d.N,h.N.nextSibling),d=n[++r],b=o[--p];else if(Dt(h,v,s))"slot"!==d.S&&"slot"!==b.S||_t(h.N.parentNode,!1),Ut(h,v,s),It(m,h.N,d.N),h=n[--a],v=o[++c];else{for(u=-1,f=r;f<=a;++f)if(n[f]&&null!==n[f].j&&n[f].j===v.j){u=f;break}u>=0?(l=n[u],l.S!==v.S?i=At(n&&n[c],e,c):(Ut(l,v,s),n[u]=void 0,i=l.N),v=o[++c]):(i=At(n&&n[c],e,c),v=o[++c]),i&&It(Ht(d.N).parentNode,i,Ht(d.N))}r>a?Bt(t,null==o[p+1]?null:o[p+1].N,e,o,c,p):c>p&&Pt(n,r,a)})(o,s,n,i,e):null!==i?(null!==t.v&&(o.textContent=""),Bt(o,null,n,i,0,i.length-1)):!e&&null!==s&&Pt(s,0,s.length-1),Tt&&"svg"===l&&(Tt=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.v!==r&&(o.data=r)},Wt=[],zt=t=>{let n,e,o;const s=t.__childNodes||t.childNodes;for(const t of s){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const s=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]&&(!n["s-sh"]||n["s-sh"]!==t["s-hn"]||""!==s&&_(n)===s))if(A(n,s)){let e=Wt.find((t=>t.k===n));xt=!0,n["s-sn"]=n["s-sn"]||s,e?(e.k["s-sh"]=t["s-hn"],e.C=t):(n["s-sh"]=t["s-hn"],Wt.push({C:t,k:n})),n["s-sr"]&&Wt.map((t=>{A(t.k,n["s-sn"])&&(e=Wt.find((t=>t.k===n)),e&&!t.C&&(t.C=e.C))}))}else Wt.some((t=>t.k===n))||Wt.push({k:n})}1===t.nodeType&&zt(t)}},Vt=t=>{t.m&&t.m.ref&&Lt.push((()=>t.m.ref(null))),t.$&&t.$.map(Vt)},qt=(t,n)=>{Rt.push((()=>t(n)))},It=(t,n,e,o)=>{if("string"==typeof n["s-sn"]&&n["s-sr"]&&n["s-cr"])Yt(n["s-cr"],n,t,n.parentElement);else if("string"==typeof n["s-sn"]){11!==t.getRootNode().nodeType&&J(n),t.insertBefore(n,e);const{slotNode:s}=P(n);return s&&!o&&B(s),n}return(null==t?void 0:t.__insertBefore)?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)};function Yt(t,n,e,o){var s,i;let l;if(t&&"string"==typeof n["s-sn"]&&n["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(l=n["s-si"]||t.parentNode["s-sc"])){const t=n["s-sn"],r=n["s-hn"];if(null==(s=e.classList)||s.add(l+"-s"),o&&(null==(i=o.classList)?void 0:i.contains(l+"-s"))){let n=(o.__childNodes||o.childNodes)[0],e=!1;for(;n;){if(n["s-sn"]!==t&&n["s-hn"]===r&&n["s-sr"]){e=!0;break}n=n.nextSibling}e||o.classList.remove(l+"-s")}}}var Gt=(t,n)=>{if(n&&!t.M&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.M=()=>{n["s-p"].splice(e-1,1),o()})))}},Zt=(t,n)=>{if(t.u|=16,4&t.u)return void(t.u|=512);Gt(t,t.T);const e=()=>Jt(t,n);if(!n)return C(e);queueMicrotask((()=>{e()}))},Jt=(t,n)=>{const e=t.$hostElement$,o=t.l;if(!o)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return n?(t.L&&(t.L=!1,rn(o,"connectedCallback",void 0,e)),t.u|=256,t.R&&(t.R.map((([t,n])=>rn(o,t,n,e))),t.R=void 0),t.A.length&&t.A.forEach((t=>t(e))),s=rn(o,"componentWillLoad",void 0,e)):s=rn(o,"componentWillUpdate",void 0,e),s=Kt(s,(()=>rn(o,"componentWillRender",void 0,e))),Kt(s,(()=>Xt(t,o,n)))},Kt=(t,n)=>Qt(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),Qt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Xt=async(t,n,e)=>{var o;const s=t.$hostElement$,i=s["s-rc"];e&&(t=>{const n=t.o,e=t.$hostElement$,o=n.u,s=((t,n)=>{var e,o,s;const i=lt(n),l=f.get(i);if(!h.document)return i;if(t=11===t.nodeType?t:h.document,l)if("string"==typeof l){let s,r=it.get(t=t.head||t);if(r||it.set(t,r=new Set),!r.has(i)){s=h.document.createElement("style"),s.textContent=l;const c=null!=(e=v.F)?e:nt(h.document);if(null!=c&&s.setAttribute("nonce",c),!(1&n.u))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if(m){const n=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;n.replaceSync(l),y?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.textContent=l+n.textContent:t.prepend(s)}else t.append(s);1&n.u&&t.insertBefore(s,null),4&n.u&&(s.textContent+=a),r&&r.add(i)}}else{let n=it.get(t);if(n||it.set(t,n=new Set),!n.has(i)){const e=null!=(s=t.defaultView)?s:t.ownerDocument.defaultView;let o;if(l.constructor===e.CSSStyleSheet)o=l;else{o=new e.CSSStyleSheet;for(let t=0;t<l.cssRules.length;t++)o.insertRule(l.cssRules[t].cssText,t)}y?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],n.add(i)}}return i})(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);10&o&&(e["s-sc"]=s,e.classList.add(s+"-h"))})(t);nn(t,n,s,e),i&&(i.map((t=>t())),s["s-rc"]=void 0);{const n=null!=(o=s["s-p"])?o:[],e=()=>on(t);0===n.length?e():(Promise.all(n).then(e).catch(e),t.u|=4,n.length=0)}},tn=null,nn=(t,n,e,o)=>{try{tn=n,n=n.render(),t.u&=-17,t.u|=2,((t,n,e=!1)=>{var o,s,i,l,r;const c=t.$hostElement$,u=t.o,f=t._||ut(null,null),a=(t=>t&&t.S===ft)(n)?n:ct(null,null,n);if(st=c.tagName,u.B&&(a.m=a.m||{},u.B.forEach((([t,n])=>{a.m[n]=c[t]}))),e&&a.m)for(const t of Object.keys(a.m))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(a.m[t]=c[t]);if(a.S=null,a.u|=4,t._=a,a.N=f.N=c.shadowRoot||c,et=c["s-sc"],Et=!(!(1&u.u)||128&u.u),ot=c["s-cr"],xt=!1,Ut(f,a,e),v.u|=1,Mt){zt(a.N);for(const t of Wt){const n=t.k;if(!n["s-ol"]&&h.document){const t=h.document.createTextNode("");t["s-nr"]=n,It(n.parentNode,n["s-ol"]=t,n,e)}}for(const t of Wt){const n=t.k,r=t.C;if(1===n.nodeType&&e&&(n["s-ih"]=null!=(o=n.hidden)&&o),r){const t=r.parentNode;let o=r.nextSibling;if(o&&1===o.nodeType){let e=null==(s=n["s-ol"])?void 0:s.previousSibling;for(;e;){let s=null!=(i=e["s-nr"])?i:null;if(s&&s["s-sn"]===n["s-sn"]&&t===(s.__parentNode||s.parentNode)){for(s=s.nextSibling;s===n||(null==s?void 0:s["s-sr"]);)s=null==s?void 0:s.nextSibling;if(!s||!s["s-nr"]){o=s;break}}e=e.previousSibling}}if((!o&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==o)&&n!==o){if(It(t,n,o,e),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=h.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,It(n.parentNode,t,n,e),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(l=n["s-ih"])&&l)}n&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===n.nodeType&&(n.hidden=!0)}}if(xt&&M(a.N),v.u&=-2,Wt.length=0,!Et&&!(1&u.u)&&c["s-cr"]){const t=a.N.__childNodes||a.N.childNodes;for(const n of t)if(n["s-hn"]!==st&&!n["s-sh"])if(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(r=n.hidden)&&r),1===n.nodeType)n.hidden=!0;else if(3===n.nodeType&&n.nodeValue.trim()){const t=h.document.createComment("s-nt-"+n.nodeValue);t["s-sn"]=n["s-sn"],It(n.parentNode,t,n,e),n.parentNode.removeChild(n)}}ot=void 0,Lt.forEach((t=>t())),Lt.length=0,Rt.forEach((t=>t())),Rt.length=0})(t,n,o)}catch(n){r(n,t.$hostElement$)}return tn=null,null},en=()=>tn,on=t=>{const n=t.$hostElement$,e=t.l,o=t.T;rn(e,"componentDidRender",void 0,n),64&t.u?rn(e,"componentDidUpdate",void 0,n):(t.u|=64,cn(n),rn(e,"componentDidLoad",void 0,n),t.P(n),o||ln()),t.D(n),t.M&&(t.M(),t.M=void 0),512&t.u&&k((()=>Zt(t,!1))),t.u&=-517},sn=t=>{var n;{const e=s(t),o=null==(n=null==e?void 0:e.$hostElement$)?void 0:n.isConnected;return o&&2==(18&e.u)&&Zt(e,!1),o}},ln=()=>{k((()=>yt(h,"appload",{detail:{namespace:"tet-components"}})))},rn=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){r(t,o)}},cn=t=>t.classList.add("hydrated"),un=(t,n,e,o)=>{const i=s(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${o.p}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const l=i.$hostElement$,c=i.i.get(n),u=i.u,f=i.l;if(e=vt(e,o.t[n][0]),!(8&u&&void 0!==c||e===c||Number.isNaN(c)&&Number.isNaN(e))){if(i.i.set(n,e),o.H){const t=o.H[n];t&&t.map((t=>{try{const[[o,s]]=Object.entries(t);(128&u||1&s)&&(f?f[o](e,c,n):i.A.push((()=>{i.l[o](e,c,n)})))}catch(t){r(t,l)}}))}if(2&u){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(e,c,n)&&!(16&u))return;16&u||Zt(i,!1)}}},fn=(t,e,o)=>{var i,l;const r=t.prototype;{t.watchers&&!e.H&&(e.H=pt(t.watchers)),t.deserializers&&!e.U&&(e.U=t.deserializers),t.serializers&&!e.W&&(e.W=t.serializers);const c=Object.entries(null!=(i=e.t)?i:{});if(c.map((([t,[i]])=>{if(31&i||2&o&&32&i){const{get:l,set:c}=n(r,t)||{};l&&(e.t[t][0]|=2048),c&&(e.t[t][0]|=4096),(1&o||!l)&&Object.defineProperty(r,t,{get(){{if(!(2048&e.t[t][0]))return((t,n)=>s(this).i.get(n))(0,t);const n=s(this),o=n?n.l:r;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(n){const l=s(this);if(l){if(c)return void 0===(32&i?this[t]:l.$hostElement$[t])&&l.i.get(t)&&(n=l.i.get(t)),c.call(this,vt(n,i)),void un(this,t,n=32&i?this[t]:l.$hostElement$[t],e);{if(!(1&o&&4096&e.t[t][0]))return un(this,t,n,e),void(1&o&&!l.l&&l.A.push((()=>{4096&e.t[t][0]&&l.l[t]!==l.i.get(t)&&(l.l[t]=n)})));const s=vt(n,i),r=n=>{const o=l.l[t];!l.i.get(t)&&o&&l.i.set(t,o),l.l[t]=n,un(this,t,l.l[t],e)};l.l?r(s):(l.i.set(t,s),l.A.push((()=>{const n=l.i.get(t);l.l[t]!==n&&r(n)})))}}}})}else 1&o&&64&i&&Object.defineProperty(r,t,{value(...n){var e;const o=s(this);return null==(e=null==o?void 0:o.V)?void 0:e.then((()=>{var e;return null==(e=o.l)?void 0:e[t](...n)}))}})})),1&o){const n=new Map;r.attributeChangedCallback=function(t,o,i){v.jmp((()=>{var l;const u=n.get(t),f=s(this);if(this.hasOwnProperty(u)&&(i=this[u],delete this[u]),r.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==i)return;if(null==u){const n=null==f?void 0:f.u;if(f&&n&&!(8&n)&&i!==o){const s=f.l,r=null==(l=e.H)?void 0:l[t];null==r||r.forEach((e=>{const[[l,r]]=Object.entries(e);null!=s[l]&&(128&n||1&r)&&s[l].call(s,i,o,t)}))}return}const a=c.find((([t])=>t===u)),d=a?a[1][0]:0,h=4&d;if(512&d&&8&d&&!rt(this[u])&&(t=>null==t||!1===t?null:!0===t?"":t+"")(this[u])===i)return;const p=h&&null===i&&void 0===this[u];h&&(i=null!==i&&"false"!==i);const v=4096&d?f.i.get(u):this[u],b=Object.getOwnPropertyDescriptor(r,u);p||i==v||b.get&&!b.set||(this[u]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=e.H)?l:{}),...c.filter((([t,n])=>31&n[0])).map((([t,o])=>{var s;const i=o[1]||t;return n.set(i,t),512&o[0]&&(null==(s=e.B)||s.push([t,i])),i}))]))}}return t},an=async(t,n,e)=>{var o;let s;try{if(!(32&n.u)){if(n.u|=32,n.u&=-1025,e.q){const i=((t,n)=>{var e;const o=t.p.replace(/-/g,"_"),s=t.q;if(!s)return;const i=c.get(s);if(i)return i[o];const l=null!=(e=u.get(s))?e:0,f=[l>0?"s-retry="+l:"",""].filter(Boolean).join("&");
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
3
+ return import(`./${s}.entry.js${f?"?"+f:""}`).then((t=>(u.delete(s),c.set(s,t),t[o])),(t=>{u.set(s,l+1),r(t,n.$hostElement$)}))})(e,n);if(i&&"then"in i){const t=()=>{};s=await i,t()}else s=i;if(!s)throw n.u&=-33,n.I=(null!=(o=n.I)?o:0)+1,n.I<3&&(n.u|=1024),Error(`Constructor for "${e.p}#${n.Y}" was not found`);s.isProxied||(e.H=pt(s.watchers),e.W=s.serializers,e.U=s.deserializers,fn(s,e,2),s.isProxied=!0);const l=()=>{};n.u|=8;try{new s(n)}catch(n){r(n,t)}n.u&=-9,n.u|=128,l(),4&e.u?n.L=!0:dn(n.l,t)}else s=t.constructor,customElements.whenDefined(t.localName).then((()=>n.u|=128));if(s&&s.style){let t;"string"==typeof s.style&&(t=s.style);const n=lt(e);if(!f.has(n)){const o=()=>{};((t,n,e)=>{let o=f.get(t);m&&e?(o=o||new CSSStyleSheet,"string"==typeof o?o=n:o.replaceSync(n)):o=n,f.set(t,o)})(n,t,!!(1&e.u)),o()}}}const i=n.T,l=()=>Zt(n,!0);i&&i["s-rc"]?i["s-rc"].push(l):l()}catch(e){r(e,t),n.M&&(n.M(),n.M=void 0),!n.P||1024&n.u||n.P(t)}},dn=(t,n)=>{rn(t,"connectedCallback",void 0,n)},hn=(t,n)=>{rn(t,"disconnectedCallback",void 0,n||t)},pn=(t,n={})=>{var e;if(!h.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],i=n.exclude||[],l=h.customElements,r=h.document.head,c=r.querySelector("meta[charset]"),u=h.document.createElement("style"),f=[];let d,p=!0;Object.assign(v,n),v.h=new URL(n.resourcesUrl||"./",h.document.baseURI).href;let b=!1;if(t.map((t=>{t[1].map((n=>{var e,r;const c={u:n[0],p:n[1],t:n[2],G:n[3]};4&c.u&&(b=!0),c.t=n[2],c.G=n[3],c.B=[],c.H=pt(n[4]),c.W=null!=(e=n[5])?e:{},c.U=null!=(r=n[6])?r:{};const u=c.p,a=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,n)=>{const e={u:0,$hostElement$:t,o:n,i:new Map,Z:new Map};e.V=new Promise((t=>e.D=t)),e.J=new Promise((t=>e.P=t)),t["s-p"]=[],t["s-rc"]=[],e.A=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,c),1&c.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.p}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else x.call(t,c)}connectedCallback(){const t=s(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,bn(this,t,c.G)),d&&(clearTimeout(d),d=null),p?f.push(this):v.jmp((()=>(t=>{if(!(1&v.u)){const n=s(t);if(!n)return;const e=n.o,o=()=>{};if(1&n.u)bn(t,n,e.G),(null==n?void 0:n.l)?dn(n.l,t):1024&n.u?setTimeout((()=>an(t,n,e)),1e3):(null==n?void 0:n.J)&&n.J.then((()=>dn(n.l,t)));else{n.u|=1,12&e.u&&(t=>{if(!h.document)return;const n=t["s-cr"]=h.document.createComment("");n["s-cn"]=!0,It(t,n,t.firstChild)})(t);{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){Gt(n,n.T=e);break}}e.t&&Object.entries(e.t).map((([n,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];delete t[n],t[n]=e}})),an(t,n,e)}o()}})(this))))}disconnectedCallback(){v.jmp((()=>(async t=>{if(!(1&v.u)){const n=s(t);(null==n?void 0:n.K)&&(n.K.map((t=>t())),n.K=void 0),(null==n?void 0:n.l)?hn(n.l,t):(null==n?void 0:n.J)&&n.J.then((()=>hn(n.l,t)))}it.has(t)&&it.delete(t),t.shadowRoot&&it.has(t.shadowRoot)&&it.delete(t.shadowRoot)})(this))),k((()=>{var t;const n=s(this);if(!n)return;const e=f.findIndex((t=>t===this));e>-1&&f.splice(e,1),(null==(t=null==n?void 0:n._)?void 0:t.N)instanceof Node&&!n._.N.isConnected&&delete n._.N}))}componentOnReady(){var t;return null==(t=s(this))?void 0:t.J}};!(1&c.u)&&256&c.u?(t=>{D(t),H(t),z(t),W(t),Y(t),V(t),q(t),I(t),G(t),Z(t),U(t)})(a.prototype):D(a.prototype),c.q=t[0],i.includes(u)||l.get(u)||(o.push(u),l.define(u,fn(a,c,1)))}))})),o.length>0&&(b&&(u.textContent+=a),u.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const t=null!=(e=v.F)?e:nt(h.document);null!=t&&u.setAttribute("nonce",t),r.insertBefore(u,c?c.nextSibling:r.firstChild)}p=!1,f.length?f.map((t=>t.connectedCallback())):v.jmp((()=>d=setTimeout(ln,30)))},vn=(t,n)=>n,bn=(t,n,e)=>{e&&h.document&&e.map((([e,o,s])=>{const i=yn(h.document,t,e),l=mn(n,s),r=gn(e);v.ael(i,o,l,r),(n.K=n.K||[]).push((()=>v.rel(i,o,l,r)))}))},mn=(t,n)=>e=>{var o;try{256&t.u?null==(o=t.l)||o[n](e):(t.R=t.R||[]).push([n,e])}catch(n){r(n,t.$hostElement$)}},yn=(t,n,e)=>4&e?t:8&e?h:16&e?t.body:n,gn=t=>({passive:!!(1&t),capture:!!(2&t)}),wn=t=>v.F=t;export{t as E,vn as F,ft as H,p as a,pn as b,mt as c,E as d,bt as e,sn as f,en as g,ct as h,b as p,i as r,wn as s}
@@ -0,0 +1 @@
1
+ const o=o=>o instanceof Promise,t=o=>!!o&&"object"==typeof o,e=o=>"function"==typeof o;export{e as a,o as b,t as i}
@@ -0,0 +1 @@
1
+ import{h as r}from"./p-CO8AyGrA.js";function e(r=new Date){return`${r.getFullYear()}-${String(r.getMonth()+1).padStart(2,"0")}-${String(r.getDate()).padStart(2,"0")}`}const t=(e,t="mobile",a=10)=>{const o=Array.from({length:a},(()=>r("tet-placeholder",{class:"tv-program__item-placeholder",height:"desktop"===t?"var(--channel-row-height)":"5rem",darkTheme:"dark"===e})));return"desktop"===t?r("li",{key:"program-placeholders",class:"tv-program__placeholders","aria-hidden":"true"},o):o.map((e=>r("li",{"aria-hidden":"true"},e)))};export{e as f,t as r}
@@ -1 +1 @@
1
- import{e,A as o}from"./p-CNGb2lWC.js";const r=r=>{let t;try{t=new URL(e.productComparison).href}catch(e){return console.error(e),Promise.reject("SAC product comparison endpoint URL generation failed.")}return(new o).setUrl(t+"?products="+r).setOptions({method:"GET"}).setErrorFallbackValue([]).execute()};export{r as p}
1
+ import{e,A as o}from"./p-BCewZzcy.js";const r=r=>{let t;try{t=new URL(e.productComparison).href}catch(e){return console.error(e),Promise.reject("SAC product comparison endpoint URL generation failed.")}return(new o).setUrl(t+"?products="+r).setOptions({method:"GET"}).setErrorFallbackValue([]).execute()};export{r as p}
@@ -1 +1 @@
1
- import{g as e,f as t}from"./p-gA3_LS77.js";const s=e=>!("isConnected"in e)||e.isConnected,n=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(s))})(...t)}),2e3)}})(),o=e=>"function"==typeof e?e():e,r=(s,r)=>{const c=((e,t=(e,t)=>e!==t)=>{const s=o(e);let n=new Map(Object.entries(null!=s?s:{}));const r={dispose:[],get:[],set:[],reset:[]},c=()=>{var t;n=new Map(Object.entries(null!==(t=o(e))&&void 0!==t?t:{})),r.reset.forEach((e=>e()))},u=e=>(r.get.forEach((t=>t(e))),n.get(e)),i=(e,s)=>{const o=n.get(e);t(s,o,e)&&(n.set(e,s),r.set.forEach((t=>t(e,s,o))))},p="undefined"==typeof Proxy?{}:new Proxy(s,{get:(e,t)=>u(t),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>n.has(t),set:(e,t,s)=>(i(t,s),!0)}),a=(e,t)=>(r[e].push(t),()=>{((e,t)=>{const s=e.indexOf(t);s>=0&&(e[s]=e[e.length-1],e.length--)})(r[e],t)});return{state:p,get:u,set:i,on:a,onChange:(t,s)=>{const n=a("set",((e,n)=>{e===t&&s(n)})),r=a("reset",(()=>s(o(e)[t])));return()=>{n(),r()}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(a("set",t.set)),t.get&&e.push(a("get",t.get)),t.reset&&e.push(a("reset",t.reset)),t.dispose&&e.push(a("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{r.dispose.forEach((e=>e())),c()},reset:c,forceUpdate:e=>{const t=n.get(e);r.set.forEach((s=>s(e,t,t)))}}})(s,r);return c.use((()=>{if("function"!=typeof e)return{};const s=new Map;return{dispose:()=>s.clear(),get:t=>{const n=e();n&&((e,t,s)=>{const n=e.get(t);n?n.includes(s)||n.push(s):e.set(t,[s])})(s,t,n)},set:e=>{const o=s.get(e);o&&s.set(e,o.filter(t)),n(s)},reset:()=>{s.forEach((e=>e.forEach(t))),n(s)}}})()),c};export{r as c}
1
+ import{g as e,f as t}from"./p-CO8AyGrA.js";const s=e=>!("isConnected"in e)||e.isConnected,n=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(s))})(...t)}),2e3)}})(),o=e=>"function"==typeof e?e():e,r=(s,r)=>{const c=((e,t=(e,t)=>e!==t)=>{const s=o(e);let n=new Map(Object.entries(null!=s?s:{}));const r={dispose:[],get:[],set:[],reset:[]},c=()=>{var t;n=new Map(Object.entries(null!==(t=o(e))&&void 0!==t?t:{})),r.reset.forEach((e=>e()))},u=e=>(r.get.forEach((t=>t(e))),n.get(e)),i=(e,s)=>{const o=n.get(e);t(s,o,e)&&(n.set(e,s),r.set.forEach((t=>t(e,s,o))))},p="undefined"==typeof Proxy?{}:new Proxy(s,{get:(e,t)=>u(t),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>n.has(t),set:(e,t,s)=>(i(t,s),!0)}),a=(e,t)=>(r[e].push(t),()=>{((e,t)=>{const s=e.indexOf(t);s>=0&&(e[s]=e[e.length-1],e.length--)})(r[e],t)});return{state:p,get:u,set:i,on:a,onChange:(t,s)=>{const n=a("set",((e,n)=>{e===t&&s(n)})),r=a("reset",(()=>s(o(e)[t])));return()=>{n(),r()}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(a("set",t.set)),t.get&&e.push(a("get",t.get)),t.reset&&e.push(a("reset",t.reset)),t.dispose&&e.push(a("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{r.dispose.forEach((e=>e())),c()},reset:c,forceUpdate:e=>{const t=n.get(e);r.set.forEach((s=>s(e,t,t)))}}})(s,r);return c.use((()=>{if("function"!=typeof e)return{};const s=new Map;return{dispose:()=>s.clear(),get:t=>{const n=e();n&&((e,t,s)=>{const n=e.get(t);n?n.includes(s)||n.push(s):e.set(t,[s])})(s,t,n)},set:e=>{const o=s.get(e);o&&s.set(e,o.filter(t)),n(s)},reset:()=>{s.forEach((e=>e.forEach(t))),n(s)}}})()),c};export{r as c}
@@ -1 +1 @@
1
- import{r as t,f as e,h as o,H as i}from"./p-gA3_LS77.js";import{p as n,t as s}from"./p-ChdlTQSF.js";import"./p-CNGb2lWC.js";import"./p-Bvqcvhjw.js";const r=class{constructor(e){t(this,e)}static NUDGE_DISTANCE_PX=16;static NUDGE_IDLE_THRESHOLD_MS=1500;static GRADIENT_VISIBILITY_THRESHOLD_PX=1;static GRADIENT_WIDTH_FALLBACK_PX=100;static EDGE_DRAG_MAX_PX=32;static EDGE_DRAG_RESISTANCE=.95;static MOUSE_DRAG_SMOOTHING_MS=60;static MOBILE_BREAKPOINT_PX=450;static UNIFIED_BUTTONS_MOBILE_MAX_DOTS=4;focusableSelector='a[href], [tabindex]:not([tabindex="-1"])';handleResize=()=>{this.getDotCount();const t=this.getSlotElements();if(!t?.length)return;const e=Math.max(0,Math.min(this.activeItem,t.length-1));this.moveToItem(t[e],e),this.checkGradient()};handleSlotChangeListener=()=>this.handleSlotChange();managedFocusableElements=[];managedSlideFocusWithinListeners=[];draggedAnchor=null;dragMoved=!1;dragPointerStartX=0;dragStartX=0;dragStartActiveItem=0;dragPointerType="";nudgeTimeoutId;nudgeGradientRafId;lastInteractionAt=0;trackElement=null;trackContentElement=null;mobileBackButtonWrapper=null;container;leftGradientRef;rightGradientRef;slotObserver;activeDotIndex=0;dotCount=1;totalItems=0;activeItem=0;isDragging=!1;dragOffset=0;isNudgeAnimating=!1;theme="light";showDots=!0;showGradient=!1;focusAlignment="start";showButtons=!0;transitionDuration=500;swipeThreshold=32;transitionTiming="ease-out";buttonIconLeft="tc-arrow-left";buttonIconRight="tc-arrow-right";maxDots=8;label;nudgeAnimationInterval=0;unifiedButtons=!1;language="lv";safeForceUpdate(){try{e(this)}catch{}}async onLanguageChange(t){await n("tet-components",t),this.safeForceUpdate()}onActiveItemChange(){this.updateSlideFocusableTabIndexes()}checkGradient(){const t=this.leftGradientRef,e=this.rightGradientRef;if(!t||!e)return;if(!this.showGradient||this.getFullyVisibleItemCount()>=this.totalItems)return t.style.opacity="0",void(e.style.opacity="0");const o=this.getViewportWidth(),i=this.getSlotClientWidth(),n=Math.max(0,i-o),s=-this.getRealDragOffset(),a=Math.max(0,Math.min(n,s)),l=n-a<r.GRADIENT_VISIBILITY_THRESHOLD_PX;a<r.GRADIENT_VISIBILITY_THRESHOLD_PX?(t.style.opacity="0",e.style.opacity="1"):l?(t.style.opacity="1",e.style.opacity="0"):(t.style.opacity="1",e.style.opacity="1")}onNudgeAnimIntervalChange(){this.syncNudgeSchedule()}onNudgeAnimationStateChange(){this.syncNudgeGradientLoop(),this.checkGradient()}async componentWillLoad(){await n("tet-components",this.language)}getSlotElements(){const t=this.container?.querySelector("slot");if(!t)return;let e=t.assignedElements?t.assignedElements():[];return 0!==e.length?(e[0].className.includes("carousel-wrapper")&&(e=Array.from(e[0].children)),e):void 0}getViewportWidth(){return this.container?.offsetWidth||window.innerWidth}getSlotClientWidth(){return this.trackElement?.querySelector("slot")?.offsetWidth||window.innerWidth}getMaxScrollableOffset(){return Math.max(0,this.getSlotClientWidth()-this.getViewportWidth())}afterLayout(t){requestAnimationFrame((()=>requestAnimationFrame(t)))}getDotScreenLength(){return this.getSlotClientWidth()/this.dotCount}isLast(t,e){return this.getSlotClientWidth()-e<=t}isLastViewport(t){const e=this.getViewportWidth();return this.isLast(e,t)}isLastDotScreen(t,e){const o=this.getViewportWidth(),i=Math.max(e,o);return this.isLast(i,t)}getItemLayoutMetrics(){const t=this.getSlotElements();return t&&0!==t.length?t.map(((t,e)=>{const o=t.offsetLeft;return{item:t,index:e,left:o,right:o+t.offsetWidth}})):[]}getFullyVisibleItemCount(){const t=this.getItemLayoutMetrics();if(!t.length)return 0;const e=this.getViewportWidth(),o=this.getClampedViewportLeft(),i=o+e;let n=0;for(const{left:e,right:s}of t)e>=o&&s<=i&&n++;return n}getClampedViewportLeft(){const t=Math.abs(this.dragOffset),e=this.getMaxScrollableOffset();return Math.max(0,Math.min(e,t))}getVisibleItemCountFromIndex(t){const e=this.getItemLayoutMetrics();if(!e.length)return 1;const o=Math.max(0,Math.min(t,e.length-1)),i=this.getViewportWidth(),n=e[o].left+i+.5;let s=0;for(let t=o;t<e.length&&e[t].right<=n;t++)s++;return Math.max(1,s)}getFirstVisibleItemInViewport(){const t=this.getItemLayoutMetrics();if(!t.length)return null;const e=this.getClampedViewportLeft(),o=.5,i=t.find((t=>t.left<=e+o&&t.right>e+o));if(i){if(i.right-e>=(i.right-i.left)/2||i.index===t.length-1)return{item:i.item,index:i.index};const o=t[i.index+1];if(o)return{item:o.item,index:o.index}}if(e<=t[0].left+o)return{item:t[0].item,index:t[0].index};const n=t.find((t=>t.left>e+o));if(n)return{item:n.item,index:n.index};const s=t.at(-1);return{item:s.item,index:s.index}}getEdgeSnapTarget(t){const e=this.getItemLayoutMetrics();if(!e.length)return null;const o=this.getClampedViewportLeft(),i=o+this.getViewportWidth(),n=e[0],s=e.at(-1);if(t<0){const t=Math.min(n.right,i)-Math.max(n.left,o);if(t>0&&t>=(n.right-n.left)/2)return{item:n.item,index:n.index}}if(t>0){const t=Math.min(s.right,i)-Math.max(s.left,o);if(t>0&&t>=(s.right-s.left)/2)return{item:s.item,index:s.index}}return null}getSwipeTarget(t){const e=this.getSlotElements();if(!e||0===e.length)return null;const o=this.getEdgeSnapTarget(t);if(o)return o;const i=this.getFirstVisibleItemInViewport();let n=i?.index??this.dragStartActiveItem;t>0&&n<=this.dragStartActiveItem&&(n=this.dragStartActiveItem+1),t<0&&n>=this.dragStartActiveItem&&(n=this.dragStartActiveItem-1),n=Math.max(0,Math.min(e.length-1,n));const s=e[n];return s?{item:s,index:n}:null}getRealDragOffset(){return this.dragOffset+this.getCurrentNudgeTranslateX()}applyEdgeDragResistance(t,e){return t>0?Math.min(r.EDGE_DRAG_MAX_PX,t*r.EDGE_DRAG_RESISTANCE):t<e?e+Math.max(-r.EDGE_DRAG_MAX_PX,(t-e)*r.EDGE_DRAG_RESISTANCE):t}getCurrentNudgeTranslateX(){if(!this.isNudgeAnimating||!this.trackContentElement)return 0;const t=getComputedStyle(this.trackContentElement).transform;if(!t||"none"===t)return 0;try{return new DOMMatrixReadOnly(t).m41||0}catch{return 0}}getDotCount(){const t=this.getSlotElements();if(!t)return this.dotCount=1,this.totalItems=0,void(this.activeDotIndex=0);this.totalItems=t.length;const e=this.getViewportWidth(),o=this.getSlotClientWidth(),i=Math.ceil(o/Math.max(1,e)),n=Number.isFinite(this.maxDots)?this.maxDots:i;let s=n;this.unifiedButtons&&e<r.MOBILE_BREAKPOINT_PX&&(s=Math.min(n,r.UNIFIED_BUTTONS_MOBILE_MAX_DOTS)),this.dotCount=Math.max(1,Math.min(s,i)),this.activeDotIndex=this.clampDotIndex(this.activeDotIndex)}handleMove=()=>{const t=this.getSlotElements();if(!t)return;const e=t[this.activeItem];if(e){if("center"===this.focusAlignment)return void this.moveToItemCentered(e,this.activeItem);this.moveToItem(e)}};navigateByStep(t){this.registerUserInteraction();const e=this.getSlotElements();if(!e||0===e.length)return;const o=this.activeDotIndex,i=this.getFirstVisibleItemInViewport(),n=i?.index??this.activeItem,s=this.getClampedViewportLeft()>0;if(t<0&&0===n&&s){const t=e[0];return void(t&&this.moveToItem(t,0))}const r=this.getVisibleItemCountFromIndex(n),a=Math.max(0,Math.min(e.length-1,n+t*r));if(a===n)return;const l=e[a];l&&(this.moveToItem(l,a),Math.abs(this.activeDotIndex-o)>1&&this.moveToDotIndex(o+t))}handlePrev=()=>{this.navigateByStep(-1)};handleNext=()=>{this.navigateByStep(1)};moveToLastScreen=()=>{this.dragOffset=-this.getMaxScrollableOffset()};getGradientWidth(){if(!this.showGradient)return 0;const t=this.leftGradientRef?.offsetWidth;return t&&t>0?t:r.GRADIENT_WIDTH_FALLBACK_PX}calculateGradient(t,e){const o=this.getSlotClientWidth();let i=this.showGradient?160:0;return i=e<160?e:i,i=o-e-t.offsetWidth<160?0:i,i}calcLastScreenElement=t=>{const e=this.getSlotElements();if(!e)return null;const o=this.trackElement.getBoundingClientRect(),i=this.getFirstItemOffset();for(const[n,s]of e.entries()){let e=s.getBoundingClientRect().left-o.left-i;const r=this.calculateGradient(s,e);if(e>=t-this.swipeThreshold+r)return{item:s,index:n}}return{item:e[0],index:0}};moveToDotIndex(t){this.activeDotIndex=this.clampDotIndex(t);const e=this.getMaxScrollableOffset(),o=this.dotCount-1!==this.activeDotIndex||this.isDragging?this.activeDotIndex*this.getDotScreenLength():e,i=Math.max(0,Math.min(o,e)),n=this.calcLastScreenElement(i);if(!n)return this.activeItem=0,void(this.dragOffset=0);const{index:s}=n;this.activeItem=s,this.dragOffset=-i}handleDotClick=t=>{this.registerUserInteraction(),this.moveToDotIndex(t)};focusDot=t=>{if(!this.container)return;const e=Array.from(this.container.querySelectorAll(".tet-carousel__dot"));e[t]?.focus()};getKeyboardTargetIndex(t,e,o){if(o<1)return null;switch(t){case"ArrowRight":case"ArrowDown":return Math.min(o,e+1);case"ArrowLeft":case"ArrowUp":return Math.max(0,e-1);case"Home":return 0;case"End":return o;default:return null}}handleNavigationKeyDown(t,e,o,i,n){const s=this.getKeyboardTargetIndex(t.key,e,o);null!==s&&(t.preventDefault(),t.stopPropagation(),i(s)&&this.afterLayout((()=>n(s))))}handleDotKeyDown=(t,e)=>{if("Tab"===t.key&&t.shiftKey){if(this.hasVisibleMobileBackButtonTarget())return;if(!this.hasFocusableTargetInSlide(this.activeItem))return;return this.registerUserInteraction(),t.preventDefault(),t.stopPropagation(),void this.afterLayout((()=>this.focusSlideByIndex(this.activeItem)))}this.handleNavigationKeyDown(t,e,this.dotCount-1,(t=>(this.handleDotClick(t),!0)),(t=>this.focusDot(t)))};isElementVisible(t){if(!t.isConnected)return!1;if(t.hidden||t.hasAttribute("hidden"))return!1;if(0===t.getClientRects().length)return!1;const e=getComputedStyle(t);return"none"!==e.display&&"hidden"!==e.visibility}hasVisibleMobileBackButtonTarget(){if(this.isLeftNavigationDisabled())return!1;const t=this.mobileBackButtonWrapper;return!!t&&this.isElementVisible(t)}hasFocusableTargetInSlide(t){return this.managedFocusableElements.some((({slideIndex:e,element:o})=>e===t&&this.isElementVisible(o)))}onPointerDown=t=>{this.registerUserInteraction(),this.dragPointerType=t.pointerType||"mouse",t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this.isDragging=!0,this.dragStartX=t.screenX,this.dragMoved=!1,this.dragPointerStartX=t.screenX,this.dragStartActiveItem=this.activeItem,document.body.style.userSelect="none",document.addEventListener("pointermove",this.onPointerMove),document.addEventListener("pointerup",this.onPointerUp),document.addEventListener("pointercancel",this.onPointerUp);let e=t.target;for(this.draggedAnchor=null;e;){if("A"===e.tagName||e.getAttribute("tabindex")){this.draggedAnchor=e;break}e=e.parentElement}};onPointerMove=t=>{if(!this.isDragging)return;const e=Math.abs(t.screenX-this.dragPointerStartX);if(!this.dragMoved&&e>5&&(this.dragMoved=!0,this.trackElement))try{this.trackElement.setPointerCapture?.(t.pointerId)}catch{}let o=this.dragOffset;o+=t.screenX-this.dragStartX,this.dragStartX=t.screenX;const i=this.getMinDragOffset();this.dragOffset=this.applyEdgeDragResistance(o,i);const n=this.getFirstVisibleItemInViewport();n&&this.activeItem!==n.index&&(this.activeItem=n.index)};releaseTrackPointerCapture(t){try{this.trackElement?.releasePointerCapture?.(t)}catch{}}getMinDragOffset(){return-this.getMaxScrollableOffset()}snapToEdge(t){if(0===t)return void(this.dragOffset=0);const e=this.dragOffset>0;this.activeItem=e?0:Math.max(0,this.totalItems-1),this.activeDotIndex=e?0:Math.max(0,this.dotCount-1),this.dragOffset=e?0:t}moveBySwipeDelta(t){if(Math.abs(t)<=this.swipeThreshold)return this.activeItem=this.dragStartActiveItem,void this.afterLayout((()=>this.handleMove()));const e=this.getSwipeTarget(t<0?1:-1);e&&this.moveToItem(e.item,e.index)}finalizePointerDrag(){document.body.style.userSelect="",document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp),this.dragPointerType=""}preventClickAfterDrag(){if(!this.draggedAnchor||!this.dragMoved)return;const t=e=>{e.preventDefault(),e.stopPropagation(),this.draggedAnchor?.removeEventListener("click",t,!0)};this.draggedAnchor.addEventListener("click",t,!0)}onPointerUp=t=>{if(!this.isDragging)return;this.registerUserInteraction(),this.releaseTrackPointerCapture(t.pointerId),this.isDragging=!1;const e=this.getMinDragOffset(),o=t.screenX-this.dragPointerStartX;this.dragOffset>0||this.dragOffset<e?this.snapToEdge(e):this.moveBySwipeDelta(o),this.finalizePointerDrag(),this.preventClickAfterDrag()};_showButtons(t=this.getFullyVisibleItemCount()){return!(!this.showButtons||t>=this.totalItems)}_showDots(t=this.getFullyVisibleItemCount()){return!!this.showDots&&!(this.totalItems<=0||t>=this.totalItems)}componentDidLoad(){this.getDotCount(),window.addEventListener("resize",this.handleResize),this.checkGradient(),this.initSlotListeners(),this.syncNudgeSchedule(),this.refreshSlideFocusableElements()}handleSlotChange(){this.getDotCount();const t=Math.max(0,this.totalItems-1);this.activeItem=Math.max(0,Math.min(this.activeItem,t)),this.refreshSlideFocusableElements(),this.checkGradient(),this.safeForceUpdate()}initSlotListeners(){const t=this.container?.querySelector("slot");if(!t)return;if(t.addEventListener("slotchange",this.handleSlotChangeListener),"function"!=typeof t.assignedElements)return;const e=t.assignedElements();if(1!==e.length)return;const o=e[0];this.slotObserver=new MutationObserver((()=>this.handleSlotChange())),this.slotObserver.observe(o,{childList:!0,subtree:!1})}isTabbableElement(t){if("A"===t.tagName)return t.hasAttribute("href");const e=t.getAttribute("tabindex");return null!==e&&"-1"!==e.trim()}getSlideFocusableElements(t){const e=new Set;return this.isTabbableElement(t)&&e.add(t),Array.from(t.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),t.shadowRoot&&Array.from(t.shadowRoot.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),Array.from(e)}clearManagedSlideFocusableElements(){this.managedSlideFocusWithinListeners.forEach((({slide:t,onFocusWithin:e})=>{t.removeEventListener("focusin",e)})),this.managedSlideFocusWithinListeners=[],this.managedFocusableElements.forEach((({element:t,originalTabIndex:e,onKeyDown:o})=>{t.removeEventListener("keydown",o),null===e?t.removeAttribute("tabindex"):t.setAttribute("tabindex",e)})),this.managedFocusableElements=[]}updateSlideFocusableTabIndexes(){this.managedFocusableElements.length&&this.managedFocusableElements.forEach((({element:t,slideIndex:e})=>{t.setAttribute("tabindex",e===this.activeItem?"0":"-1")}))}focusSlideByIndex(t){const e=this.managedFocusableElements.find((e=>e.slideIndex===t)),o=e?.element;if(o)try{o.focus({preventScroll:!0})}catch{}}handleSlideKeyDown(t,e){this.handleNavigationKeyDown(t,e,this.totalItems-1,(t=>{const e=this.getSlotElements();return!!e?.[t]&&(this.registerUserInteraction(),this.moveToItem(e[t],t,0),!0)}),(t=>this.focusSlideByIndex(t)))}refreshSlideFocusableElements(){this.clearManagedSlideFocusableElements();const t=this.getSlotElements();t?.length&&(t.forEach(((e,o)=>{const i=()=>{if(this.registerUserInteraction(),"center"===this.focusAlignment)return void this.moveToItemCentered(e,o);const i=o===t.length-1?0:this.getGradientWidth();this.moveToItem(e,o,i)};this.managedSlideFocusWithinListeners.push({slide:e,onFocusWithin:i}),e.addEventListener("focusin",i),this.getSlideFocusableElements(e).forEach((t=>{const e=t=>this.handleSlideKeyDown(t,o);this.managedFocusableElements.push({element:t,slideIndex:o,originalTabIndex:t.getAttribute("tabindex"),onKeyDown:e}),t.addEventListener("keydown",e)}))})),this.updateSlideFocusableTabIndexes())}startNudgeGradientLoop(){if(this.nudgeGradientRafId)return;const t=()=>{this.checkGradient(),this.nudgeGradientRafId=this.isNudgeAnimating?requestAnimationFrame(t):void 0};this.nudgeGradientRafId=requestAnimationFrame(t)}stopNudgeGradientLoop(){this.nudgeGradientRafId&&(cancelAnimationFrame(this.nudgeGradientRafId),this.nudgeGradientRafId=void 0)}syncNudgeGradientLoop(){this.isNudgeAnimating?this.startNudgeGradientLoop():this.stopNudgeGradientLoop()}registerUserInteraction(){this.lastInteractionAt=Date.now(),this.stopNudgeAnimation()&&this.scheduleNextNudge()}hasRecentInteraction(){return!!this.lastInteractionAt&&Date.now()-this.lastInteractionAt<r.NUDGE_IDLE_THRESHOLD_MS}isRightNavigationDisabled(){return this.dotCount<=1||this.activeItem===this.totalItems-1||this.isLastViewport(-this.dragOffset)}isLeftNavigationDisabled(){return this.dotCount<=1||0===this.activeItem}isNudgeEligible(){return!(!this.trackElement||this.isDragging||this.isNudgeAnimating||this.hasRecentInteraction()||this.isRightNavigationDisabled()||0!==this.dragOffset)}scheduleNextNudge(){this.nudgeAnimationInterval<=0||(this.clearNudgeTimeout(),this.nudgeTimeoutId=setTimeout((()=>{this.nudgeTimeoutId=void 0,this.isNudgeEligible()?this.isNudgeAnimating=!0:this.scheduleNextNudge()}),this.nudgeAnimationInterval))}onNudgeAnimationEnd=t=>{"tet-carousel-nudge"===t.animationName&&(this.stopNudgeAnimation(),this.scheduleNextNudge())};stopNudgeAnimation(){const t=this.isNudgeAnimating;return t&&(this.isNudgeAnimating=!1),t}clearNudgeTimeout(){this.nudgeTimeoutId&&(clearTimeout(this.nudgeTimeoutId),this.nudgeTimeoutId=void 0)}stopNudgeSchedule(){this.clearNudgeTimeout(),this.stopNudgeAnimation()}syncNudgeSchedule(){this.stopNudgeSchedule(),this.scheduleNextNudge()}clampDotIndex(t){return Math.max(0,Math.min(t,this.dotCount-1))}setDotIndex(t,e){let o=0;const i=this.getDotScreenLength();o=this.isLastDotScreen(t,i)?this.dotCount-1:Math.round((t+e)/i),this.activeDotIndex=this.clampDotIndex(o)}getFirstItemOffset(){const t=this.getSlotElements();if(!t?.length)return 0;const e=this.trackElement.getBoundingClientRect();return t[0].getBoundingClientRect().left-e.left}moveToItemCentered(t,e){const o=this.trackElement.getBoundingClientRect(),i=t.getBoundingClientRect().left-o.left-this.getFirstItemOffset()+t.offsetWidth/2-this.getViewportWidth()/2,n=Math.max(0,Math.min(i,this.getMaxScrollableOffset()));this.activeItem=e,this.dragOffset=n>0?-n:0,this.setDotIndex(n,0)}moveToItem(t,e,o=0){(e||0===e)&&(this.activeItem=e);const i=t.getBoundingClientRect(),n=this.trackElement.getBoundingClientRect();let s=i.left-n.left-this.getFirstItemOffset();const r=this.calculateGradient(t,s);this.setDotIndex(s,r);const a=Math.max(0,s-Math.max(0,o));this.isLastViewport(s)?this.moveToLastScreen():this.dragOffset=-a}disconnectedCallback(){this.stopNudgeSchedule(),this.stopNudgeGradientLoop(),window.removeEventListener("resize",this.handleResize),this.clearManagedSlideFocusableElements();const t=this.container?.querySelector("slot");t&&t.removeEventListener("slotchange",this.handleSlotChangeListener),this.slotObserver&&(this.slotObserver.disconnect(),this.slotObserver=null),document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp)}render(){const t=this.getFullyVisibleItemCount(),e=this._showButtons(t),n=this._showDots(t),a=e||n;let l=`transform ${this.transitionDuration}ms ${this.transitionTiming}`;return this.isDragging&&(l="mouse"===this.dragPointerType?`transform ${r.MOUSE_DRAG_SMOOTHING_MS}ms linear`:"none"),o(i,{key:"8ca4cb3ff5c9e0b526c8cb1902712a88d59605a5"},o("div",{key:"5c2b22a3be2796858a8c751dba73bf4c984d90a2",class:{"tet-carousel":!0,[`${this.theme}`]:!0,"tet-carousel--unified-buttons":this.unifiedButtons},ref:t=>this.container=t,part:"carousel"},o("div",{key:"75bc450090a8cb51c596fb78b99616a6180af22f",class:"tet-carousel__container"},o("div",{key:"736fce3ab5725e3c4e7325b31be3ba2b2057ca64",class:"tet-carousel__gradient-left",ref:t=>{this.leftGradientRef=t}}),o("div",{key:"79023470682d6861205ed7396ed0b093b3569766",class:"tet-carousel__gradient-right",ref:t=>{this.rightGradientRef=t}}),o("div",{key:"9e75fd34d0fd04328b27c0a005b7c77d9479a4b9",class:"tet-carousel__track "+(a?"":"tet-carousel__track--center"),ref:t=>this.trackElement=t,style:{transform:`translate3d(${this.dragOffset}px, 0, 0)`,transition:l,willChange:"transform"},onPointerDown:this.onPointerDown,onPointerUp:this.onPointerUp},o("div",{key:"a1aa37bb7aaaba177614dcdceaae9fdf37e9de8a",class:{"tet-carousel__track-content":!0,"tet-carousel__track-content--nudge":this.isNudgeAnimating},ref:t=>this.trackContentElement=t,style:{"--tet-carousel-nudge-distance":`${r.NUDGE_DISTANCE_PX}px`},onAnimationEnd:this.onNudgeAnimationEnd},o("slot",{key:"b732469138dcf02de08a4f5d37bb5a13817a50c7"})))),!!this.label&&o("div",{key:"13f7ab04c5c11ec1b4ae18bcbf73013a87fa929e",class:"tet-carousel__label"},this.label),a&&o("div",{key:"f6551709aa9041e716b150a364848824c0facb85",class:"tet-carousel__controls"},e&&o("div",{key:"2051675edd4d363555eed02df12a83ced1d3f2a9",class:"tet-carousel__buttons tet-carousel__buttons--mobile",ref:t=>this.mobileBackButtonWrapper=t},o("tet-button",{key:"07266784359a8217fd019a713662bad14d8c0b6d",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:s("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()})),n&&o("div",{key:"e5ea436c8469191ed2619037c06b16a28b978182",class:"tet-carousel__dots"},Array.from({length:this.dotCount}).map(((t,e)=>o("button",{type:"button",tabIndex:e===this.activeDotIndex?0:-1,class:"tet-carousel__dot"+(e===this.activeDotIndex?" active":""),key:e,"aria-label":`${s(e===this.activeDotIndex?"components-carousel-indicator-button-active":"components-carousel-indicator-button")} ${e+1}/${this.dotCount}`,"aria-current":e===this.activeDotIndex?"true":void 0,onPointerDown:t=>t.stopPropagation(),onKeyDown:t=>this.handleDotKeyDown(t,e),onClick:()=>this.handleDotClick(e)})))),e&&o("div",{key:"2bad1eb91692d0956f6130196aeb129f38348510",class:"tet-carousel__buttons"},o("tet-button",{key:"adfcb7a30040c7cf283f64d6e608d325e05ee9bf",class:"tet-carousel__buttons--desktop",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:s("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()}),o("tet-button",{key:"5365db97713c038acf6609b133f39d11d7e402a0",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconRight,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handleNext(),accessibilityLabel:s("components-carousel-next"),disabled:this.isRightNavigationDisabled()})))))}static get watchers(){return{language:[{onLanguageChange:0}],activeItem:[{onActiveItemChange:0}],showGradient:[{checkGradient:0}],dragOffset:[{checkGradient:0}],nudgeAnimationInterval:[{onNudgeAnimIntervalChange:0}],isNudgeAnimating:[{onNudgeAnimationStateChange:0}]}}};r.style=':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{--carousel-background:transparent;--carousel-dot-size:1rem;--carousel-buttons-bottom:-1rem;--carousel-dot-background:transparent;--carousel-dot-border:0.0625rem solid var(--tc-grey-70);--carousel-dot-margin:0;--carousel-dot-margin-mobile:1rem;--carousel-label-color:var(--tc-text-secondary);--carousel-dot-active-background:var(--tc-layer-inverse-primary);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover);--carousel-dot-active-hover-background:var(--tc-grey-80);--carousel-dots-gap:0.5rem;--carousel-buttons-gap:1rem;--carousel-track-gap:0;--carousel-track-height:100%;--carousel-item-width:100%;--carousel-item-height:100%;--carousel-buttons-right:2rem;--carousel-dots-bottom:-1rem;--carousel-nudge-animation-duration:1.5s;--carousel-gradient:var(--tc-background-primary);--carousel-button-icon-mode-padding:0.5rem;--carousel-button-icon-size:1.25rem;-webkit-tap-highlight-color:transparent;display:inline-block;width:100%}.tet-carousel{position:relative;width:100%;background:var(--carousel-background)}.tet-carousel.dark{--carousel-dot-active-background:var(--tc-layer-inverse-primary-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover-dark);--carousel-dot-active-hover-background:var(--tc-grey-80-dark);--carousel-label-color:var(--tc-text-secondary-dark);--carousel-gradient:var(--tc-background-primary-dark)}.tet-carousel__container{width:var(--carousel-item-width);max-width:var(--carousel-item-width);height:var(--carousel-track-height);position:relative;margin-bottom:var(--carousel-dot-margin-mobile);contain:layout}.tet-carousel__controls{position:relative;display:flex;align-items:center;justify-content:center;height:fit-content;margin-bottom:var(--carousel-dot-margin-mobile);min-height:2.75rem;touch-action:manipulation}.tet-carousel__label{color:var(--carousel-label-color);margin-left:auto;margin-right:auto;margin-bottom:1rem;text-align:center;font-family:var(--font-family-content);font-size:0.875rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:-0.003125rem}.tet-carousel__track{touch-action:pan-y;display:flex;height:var(--carousel-track-height);will-change:transform}.tet-carousel__track--center{justify-content:center}.tet-carousel__track-content{display:flex;gap:var(--carousel-track-gap);will-change:transform}.tet-carousel__track-content--nudge{animation:tet-carousel-nudge var(--carousel-nudge-animation-duration) ease-in-out}@media (hover: hover) and (pointer: fine){.tet-carousel:hover .tet-carousel__track-content--nudge{animation-play-state:paused}}.tet-carousel__track-content>*{flex-shrink:0;display:flex;align-items:center;justify-content:center}.tet-carousel__buttons{position:absolute;right:0;bottom:50%;display:flex;transform:translateY(50%);gap:var(--carousel-buttons-gap);z-index:2}.tet-carousel__buttons tet-button{--button-icon-mode-padding:var(--carousel-button-icon-mode-padding);--button-icon-size:var(--carousel-button-icon-size)}.tet-carousel__buttons--mobile{display:flex;left:0}.tet-carousel__buttons--desktop{display:none !important}.tet-carousel__dots{display:flex;width:100%;gap:var(--carousel-dots-gap);justify-content:center;align-items:center}.tet-carousel__dot{width:var(--carousel-dot-size);height:var(--carousel-dot-size);border-radius:50%;background:var(--carousel-dot-background);cursor:pointer;transition:background 0.2s;border:var(--carousel-dot-border);z-index:2;touch-action:manipulation}.tet-carousel__dot:hover{background:var(--carousel-dot-hover-background)}.tet-carousel__dot.active{background:var(--carousel-dot-active-background);border:none}.tet-carousel__dot.active:hover{background:var(--carousel-dot-active-hover-background)}.tet-carousel__dot:focus-visible{outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0.125rem}.tet-carousel--unified-buttons .tet-carousel__buttons--mobile{display:none}.tet-carousel--unified-buttons .tet-carousel__buttons--desktop{display:flex !important}.tet-carousel--unified-buttons .tet-carousel__buttons{right:0.25rem}.tet-carousel__gradient-left,.tet-carousel__gradient-right{position:absolute;top:0;display:block;width:13.75rem;height:100%;transition:opacity 0.4s ease-out;pointer-events:none;z-index:20;opacity:0}.tet-carousel__gradient-left{background:linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);left:0}.tet-carousel__gradient-right{background:linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);right:0}@keyframes tet-carousel-nudge{0%{transform:translateX(0)}50%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}70%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}100%{transform:translateX(0)}}@media all and (min-width: 46.25rem){.tet-carousel__controls{margin-bottom:var(--carousel-dot-margin)}.tet-carousel__label{font-size:1rem;line-height:1.5rem;letter-spacing:-0.00625rem}.tet-carousel__buttons{right:0.25rem}.tet-carousel__buttons--mobile{display:none}.tet-carousel__buttons--desktop{display:flex !important}}@media all and (min-width: 90rem){.tet-carousel__label{font-size:1.125rem;line-height:1.75rem}}';export{r as tet_carousel}
1
+ import{r as t,f as e,h as o,H as i}from"./p-CO8AyGrA.js";import{p as n,t as s}from"./p-1Pg6Bg5R.js";import"./p-BCewZzcy.js";import"./p-CaZKtSyx.js";const r=class{constructor(e){t(this,e)}static NUDGE_DISTANCE_PX=16;static NUDGE_IDLE_THRESHOLD_MS=1500;static GRADIENT_VISIBILITY_THRESHOLD_PX=1;static GRADIENT_WIDTH_FALLBACK_PX=100;static EDGE_DRAG_MAX_PX=32;static EDGE_DRAG_RESISTANCE=.95;static MOUSE_DRAG_SMOOTHING_MS=60;static MOBILE_BREAKPOINT_PX=450;static UNIFIED_BUTTONS_MOBILE_MAX_DOTS=4;focusableSelector='a[href], [tabindex]:not([tabindex="-1"])';handleResize=()=>{this.getDotCount();const t=this.getSlotElements();if(!t?.length)return;const e=Math.max(0,Math.min(this.activeItem,t.length-1));this.moveToItem(t[e],e),this.checkGradient()};handleSlotChangeListener=()=>this.handleSlotChange();managedFocusableElements=[];managedSlideFocusWithinListeners=[];draggedAnchor=null;dragMoved=!1;dragPointerStartX=0;dragStartX=0;dragStartActiveItem=0;dragPointerType="";nudgeTimeoutId;nudgeGradientRafId;lastInteractionAt=0;trackElement=null;trackContentElement=null;mobileBackButtonWrapper=null;container;leftGradientRef;rightGradientRef;slotObserver;activeDotIndex=0;dotCount=1;totalItems=0;activeItem=0;isDragging=!1;dragOffset=0;isNudgeAnimating=!1;theme="light";showDots=!0;showGradient=!1;focusAlignment="start";showButtons=!0;transitionDuration=500;swipeThreshold=32;transitionTiming="ease-out";buttonIconLeft="tc-arrow-left";buttonIconRight="tc-arrow-right";maxDots=8;label;nudgeAnimationInterval=0;unifiedButtons=!1;language="lv";safeForceUpdate(){try{e(this)}catch{}}async onLanguageChange(t){await n("tet-components",t),this.safeForceUpdate()}onActiveItemChange(){this.updateSlideFocusableTabIndexes()}checkGradient(){const t=this.leftGradientRef,e=this.rightGradientRef;if(!t||!e)return;if(!this.showGradient||this.getFullyVisibleItemCount()>=this.totalItems)return t.style.opacity="0",void(e.style.opacity="0");const o=this.getViewportWidth(),i=this.getSlotClientWidth(),n=Math.max(0,i-o),s=-this.getRealDragOffset(),a=Math.max(0,Math.min(n,s)),l=n-a<r.GRADIENT_VISIBILITY_THRESHOLD_PX;a<r.GRADIENT_VISIBILITY_THRESHOLD_PX?(t.style.opacity="0",e.style.opacity="1"):l?(t.style.opacity="1",e.style.opacity="0"):(t.style.opacity="1",e.style.opacity="1")}onNudgeAnimIntervalChange(){this.syncNudgeSchedule()}onNudgeAnimationStateChange(){this.syncNudgeGradientLoop(),this.checkGradient()}async componentWillLoad(){await n("tet-components",this.language)}getSlotElements(){const t=this.container?.querySelector("slot");if(!t)return;let e=t.assignedElements?t.assignedElements():[];return 0!==e.length?(e[0].className.includes("carousel-wrapper")&&(e=Array.from(e[0].children)),e):void 0}getViewportWidth(){return this.container?.offsetWidth||window.innerWidth}getSlotClientWidth(){return this.trackElement?.querySelector("slot")?.offsetWidth||window.innerWidth}getMaxScrollableOffset(){return Math.max(0,this.getSlotClientWidth()-this.getViewportWidth())}afterLayout(t){requestAnimationFrame((()=>requestAnimationFrame(t)))}getDotScreenLength(){return this.getSlotClientWidth()/this.dotCount}isLast(t,e){return this.getSlotClientWidth()-e<=t}isLastViewport(t){const e=this.getViewportWidth();return this.isLast(e,t)}isLastDotScreen(t,e){const o=this.getViewportWidth(),i=Math.max(e,o);return this.isLast(i,t)}getItemLayoutMetrics(){const t=this.getSlotElements();return t&&0!==t.length?t.map(((t,e)=>{const o=t.offsetLeft;return{item:t,index:e,left:o,right:o+t.offsetWidth}})):[]}getFullyVisibleItemCount(){const t=this.getItemLayoutMetrics();if(!t.length)return 0;const e=this.getViewportWidth(),o=this.getClampedViewportLeft(),i=o+e;let n=0;for(const{left:e,right:s}of t)e>=o&&s<=i&&n++;return n}getClampedViewportLeft(){const t=Math.abs(this.dragOffset),e=this.getMaxScrollableOffset();return Math.max(0,Math.min(e,t))}getVisibleItemCountFromIndex(t){const e=this.getItemLayoutMetrics();if(!e.length)return 1;const o=Math.max(0,Math.min(t,e.length-1)),i=this.getViewportWidth(),n=e[o].left+i+.5;let s=0;for(let t=o;t<e.length&&e[t].right<=n;t++)s++;return Math.max(1,s)}getFirstVisibleItemInViewport(){const t=this.getItemLayoutMetrics();if(!t.length)return null;const e=this.getClampedViewportLeft(),o=.5,i=t.find((t=>t.left<=e+o&&t.right>e+o));if(i){if(i.right-e>=(i.right-i.left)/2||i.index===t.length-1)return{item:i.item,index:i.index};const o=t[i.index+1];if(o)return{item:o.item,index:o.index}}if(e<=t[0].left+o)return{item:t[0].item,index:t[0].index};const n=t.find((t=>t.left>e+o));if(n)return{item:n.item,index:n.index};const s=t.at(-1);return{item:s.item,index:s.index}}getEdgeSnapTarget(t){const e=this.getItemLayoutMetrics();if(!e.length)return null;const o=this.getClampedViewportLeft(),i=o+this.getViewportWidth(),n=e[0],s=e.at(-1);if(t<0){const t=Math.min(n.right,i)-Math.max(n.left,o);if(t>0&&t>=(n.right-n.left)/2)return{item:n.item,index:n.index}}if(t>0){const t=Math.min(s.right,i)-Math.max(s.left,o);if(t>0&&t>=(s.right-s.left)/2)return{item:s.item,index:s.index}}return null}getSwipeTarget(t){const e=this.getSlotElements();if(!e||0===e.length)return null;const o=this.getEdgeSnapTarget(t);if(o)return o;const i=this.getFirstVisibleItemInViewport();let n=i?.index??this.dragStartActiveItem;t>0&&n<=this.dragStartActiveItem&&(n=this.dragStartActiveItem+1),t<0&&n>=this.dragStartActiveItem&&(n=this.dragStartActiveItem-1),n=Math.max(0,Math.min(e.length-1,n));const s=e[n];return s?{item:s,index:n}:null}getRealDragOffset(){return this.dragOffset+this.getCurrentNudgeTranslateX()}applyEdgeDragResistance(t,e){return t>0?Math.min(r.EDGE_DRAG_MAX_PX,t*r.EDGE_DRAG_RESISTANCE):t<e?e+Math.max(-r.EDGE_DRAG_MAX_PX,(t-e)*r.EDGE_DRAG_RESISTANCE):t}getCurrentNudgeTranslateX(){if(!this.isNudgeAnimating||!this.trackContentElement)return 0;const t=getComputedStyle(this.trackContentElement).transform;if(!t||"none"===t)return 0;try{return new DOMMatrixReadOnly(t).m41||0}catch{return 0}}getDotCount(){const t=this.getSlotElements();if(!t)return this.dotCount=1,this.totalItems=0,void(this.activeDotIndex=0);this.totalItems=t.length;const e=this.getViewportWidth(),o=this.getSlotClientWidth(),i=Math.ceil(o/Math.max(1,e)),n=Number.isFinite(this.maxDots)?this.maxDots:i;let s=n;this.unifiedButtons&&e<r.MOBILE_BREAKPOINT_PX&&(s=Math.min(n,r.UNIFIED_BUTTONS_MOBILE_MAX_DOTS)),this.dotCount=Math.max(1,Math.min(s,i)),this.activeDotIndex=this.clampDotIndex(this.activeDotIndex)}handleMove=()=>{const t=this.getSlotElements();if(!t)return;const e=t[this.activeItem];if(e){if("center"===this.focusAlignment)return void this.moveToItemCentered(e,this.activeItem);this.moveToItem(e)}};navigateByStep(t){this.registerUserInteraction();const e=this.getSlotElements();if(!e||0===e.length)return;const o=this.activeDotIndex,i=this.getFirstVisibleItemInViewport(),n=i?.index??this.activeItem,s=this.getClampedViewportLeft()>0;if(t<0&&0===n&&s){const t=e[0];return void(t&&this.moveToItem(t,0))}const r=this.getVisibleItemCountFromIndex(n),a=Math.max(0,Math.min(e.length-1,n+t*r));if(a===n)return;const l=e[a];l&&(this.moveToItem(l,a),Math.abs(this.activeDotIndex-o)>1&&this.moveToDotIndex(o+t))}handlePrev=()=>{this.navigateByStep(-1)};handleNext=()=>{this.navigateByStep(1)};moveToLastScreen=()=>{this.dragOffset=-this.getMaxScrollableOffset()};getGradientWidth(){if(!this.showGradient)return 0;const t=this.leftGradientRef?.offsetWidth;return t&&t>0?t:r.GRADIENT_WIDTH_FALLBACK_PX}calculateGradient(t,e){const o=this.getSlotClientWidth();let i=this.showGradient?160:0;return i=e<160?e:i,i=o-e-t.offsetWidth<160?0:i,i}calcLastScreenElement=t=>{const e=this.getSlotElements();if(!e)return null;const o=this.trackElement.getBoundingClientRect(),i=this.getFirstItemOffset();for(const[n,s]of e.entries()){let e=s.getBoundingClientRect().left-o.left-i;const r=this.calculateGradient(s,e);if(e>=t-this.swipeThreshold+r)return{item:s,index:n}}return{item:e[0],index:0}};moveToDotIndex(t){this.activeDotIndex=this.clampDotIndex(t);const e=this.getMaxScrollableOffset(),o=this.dotCount-1!==this.activeDotIndex||this.isDragging?this.activeDotIndex*this.getDotScreenLength():e,i=Math.max(0,Math.min(o,e)),n=this.calcLastScreenElement(i);if(!n)return this.activeItem=0,void(this.dragOffset=0);const{index:s}=n;this.activeItem=s,this.dragOffset=-i}handleDotClick=t=>{this.registerUserInteraction(),this.moveToDotIndex(t)};focusDot=t=>{if(!this.container)return;const e=Array.from(this.container.querySelectorAll(".tet-carousel__dot"));e[t]?.focus()};getKeyboardTargetIndex(t,e,o){if(o<1)return null;switch(t){case"ArrowRight":case"ArrowDown":return Math.min(o,e+1);case"ArrowLeft":case"ArrowUp":return Math.max(0,e-1);case"Home":return 0;case"End":return o;default:return null}}handleNavigationKeyDown(t,e,o,i,n){const s=this.getKeyboardTargetIndex(t.key,e,o);null!==s&&(t.preventDefault(),t.stopPropagation(),i(s)&&this.afterLayout((()=>n(s))))}handleDotKeyDown=(t,e)=>{if("Tab"===t.key&&t.shiftKey){if(this.hasVisibleMobileBackButtonTarget())return;if(!this.hasFocusableTargetInSlide(this.activeItem))return;return this.registerUserInteraction(),t.preventDefault(),t.stopPropagation(),void this.afterLayout((()=>this.focusSlideByIndex(this.activeItem)))}this.handleNavigationKeyDown(t,e,this.dotCount-1,(t=>(this.handleDotClick(t),!0)),(t=>this.focusDot(t)))};isElementVisible(t){if(!t.isConnected)return!1;if(t.hidden||t.hasAttribute("hidden"))return!1;if(0===t.getClientRects().length)return!1;const e=getComputedStyle(t);return"none"!==e.display&&"hidden"!==e.visibility}hasVisibleMobileBackButtonTarget(){if(this.isLeftNavigationDisabled())return!1;const t=this.mobileBackButtonWrapper;return!!t&&this.isElementVisible(t)}hasFocusableTargetInSlide(t){return this.managedFocusableElements.some((({slideIndex:e,element:o})=>e===t&&this.isElementVisible(o)))}onPointerDown=t=>{this.registerUserInteraction(),this.dragPointerType=t.pointerType||"mouse",t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this.isDragging=!0,this.dragStartX=t.screenX,this.dragMoved=!1,this.dragPointerStartX=t.screenX,this.dragStartActiveItem=this.activeItem,document.body.style.userSelect="none",document.addEventListener("pointermove",this.onPointerMove),document.addEventListener("pointerup",this.onPointerUp),document.addEventListener("pointercancel",this.onPointerUp);let e=t.target;for(this.draggedAnchor=null;e;){if("A"===e.tagName||e.getAttribute("tabindex")){this.draggedAnchor=e;break}e=e.parentElement}};onPointerMove=t=>{if(!this.isDragging)return;const e=Math.abs(t.screenX-this.dragPointerStartX);if(!this.dragMoved&&e>5&&(this.dragMoved=!0,this.trackElement))try{this.trackElement.setPointerCapture?.(t.pointerId)}catch{}let o=this.dragOffset;o+=t.screenX-this.dragStartX,this.dragStartX=t.screenX;const i=this.getMinDragOffset();this.dragOffset=this.applyEdgeDragResistance(o,i);const n=this.getFirstVisibleItemInViewport();n&&this.activeItem!==n.index&&(this.activeItem=n.index)};releaseTrackPointerCapture(t){try{this.trackElement?.releasePointerCapture?.(t)}catch{}}getMinDragOffset(){return-this.getMaxScrollableOffset()}snapToEdge(t){if(0===t)return void(this.dragOffset=0);const e=this.dragOffset>0;this.activeItem=e?0:Math.max(0,this.totalItems-1),this.activeDotIndex=e?0:Math.max(0,this.dotCount-1),this.dragOffset=e?0:t}moveBySwipeDelta(t){if(Math.abs(t)<=this.swipeThreshold)return this.activeItem=this.dragStartActiveItem,void this.afterLayout((()=>this.handleMove()));const e=this.getSwipeTarget(t<0?1:-1);e&&this.moveToItem(e.item,e.index)}finalizePointerDrag(){document.body.style.userSelect="",document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp),this.dragPointerType=""}preventClickAfterDrag(){if(!this.draggedAnchor||!this.dragMoved)return;const t=e=>{e.preventDefault(),e.stopPropagation(),this.draggedAnchor?.removeEventListener("click",t,!0)};this.draggedAnchor.addEventListener("click",t,!0)}onPointerUp=t=>{if(!this.isDragging)return;this.registerUserInteraction(),this.releaseTrackPointerCapture(t.pointerId),this.isDragging=!1;const e=this.getMinDragOffset(),o=t.screenX-this.dragPointerStartX;this.dragOffset>0||this.dragOffset<e?this.snapToEdge(e):this.moveBySwipeDelta(o),this.finalizePointerDrag(),this.preventClickAfterDrag()};_showButtons(t=this.getFullyVisibleItemCount()){return!(!this.showButtons||t>=this.totalItems)}_showDots(t=this.getFullyVisibleItemCount()){return!!this.showDots&&!(this.totalItems<=0||t>=this.totalItems)}componentDidLoad(){this.getDotCount(),window.addEventListener("resize",this.handleResize),this.checkGradient(),this.initSlotListeners(),this.syncNudgeSchedule(),this.refreshSlideFocusableElements()}handleSlotChange(){this.getDotCount();const t=Math.max(0,this.totalItems-1);this.activeItem=Math.max(0,Math.min(this.activeItem,t)),this.refreshSlideFocusableElements(),this.checkGradient(),this.safeForceUpdate()}initSlotListeners(){const t=this.container?.querySelector("slot");if(!t)return;if(t.addEventListener("slotchange",this.handleSlotChangeListener),"function"!=typeof t.assignedElements)return;const e=t.assignedElements();if(1!==e.length)return;const o=e[0];this.slotObserver=new MutationObserver((()=>this.handleSlotChange())),this.slotObserver.observe(o,{childList:!0,subtree:!1})}isTabbableElement(t){if("A"===t.tagName)return t.hasAttribute("href");const e=t.getAttribute("tabindex");return null!==e&&"-1"!==e.trim()}getSlideFocusableElements(t){const e=new Set;return this.isTabbableElement(t)&&e.add(t),Array.from(t.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),t.shadowRoot&&Array.from(t.shadowRoot.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),Array.from(e)}clearManagedSlideFocusableElements(){this.managedSlideFocusWithinListeners.forEach((({slide:t,onFocusWithin:e})=>{t.removeEventListener("focusin",e)})),this.managedSlideFocusWithinListeners=[],this.managedFocusableElements.forEach((({element:t,originalTabIndex:e,onKeyDown:o})=>{t.removeEventListener("keydown",o),null===e?t.removeAttribute("tabindex"):t.setAttribute("tabindex",e)})),this.managedFocusableElements=[]}updateSlideFocusableTabIndexes(){this.managedFocusableElements.length&&this.managedFocusableElements.forEach((({element:t,slideIndex:e})=>{t.setAttribute("tabindex",e===this.activeItem?"0":"-1")}))}focusSlideByIndex(t){const e=this.managedFocusableElements.find((e=>e.slideIndex===t)),o=e?.element;if(o)try{o.focus({preventScroll:!0})}catch{}}handleSlideKeyDown(t,e){this.handleNavigationKeyDown(t,e,this.totalItems-1,(t=>{const e=this.getSlotElements();return!!e?.[t]&&(this.registerUserInteraction(),this.moveToItem(e[t],t,0),!0)}),(t=>this.focusSlideByIndex(t)))}refreshSlideFocusableElements(){this.clearManagedSlideFocusableElements();const t=this.getSlotElements();t?.length&&(t.forEach(((e,o)=>{const i=()=>{if(this.registerUserInteraction(),"center"===this.focusAlignment)return void this.moveToItemCentered(e,o);const i=o===t.length-1?0:this.getGradientWidth();this.moveToItem(e,o,i)};this.managedSlideFocusWithinListeners.push({slide:e,onFocusWithin:i}),e.addEventListener("focusin",i),this.getSlideFocusableElements(e).forEach((t=>{const e=t=>this.handleSlideKeyDown(t,o);this.managedFocusableElements.push({element:t,slideIndex:o,originalTabIndex:t.getAttribute("tabindex"),onKeyDown:e}),t.addEventListener("keydown",e)}))})),this.updateSlideFocusableTabIndexes())}startNudgeGradientLoop(){if(this.nudgeGradientRafId)return;const t=()=>{this.checkGradient(),this.nudgeGradientRafId=this.isNudgeAnimating?requestAnimationFrame(t):void 0};this.nudgeGradientRafId=requestAnimationFrame(t)}stopNudgeGradientLoop(){this.nudgeGradientRafId&&(cancelAnimationFrame(this.nudgeGradientRafId),this.nudgeGradientRafId=void 0)}syncNudgeGradientLoop(){this.isNudgeAnimating?this.startNudgeGradientLoop():this.stopNudgeGradientLoop()}registerUserInteraction(){this.lastInteractionAt=Date.now(),this.stopNudgeAnimation()&&this.scheduleNextNudge()}hasRecentInteraction(){return!!this.lastInteractionAt&&Date.now()-this.lastInteractionAt<r.NUDGE_IDLE_THRESHOLD_MS}isRightNavigationDisabled(){return this.dotCount<=1||this.activeItem===this.totalItems-1||this.isLastViewport(-this.dragOffset)}isLeftNavigationDisabled(){return this.dotCount<=1||0===this.activeItem}isNudgeEligible(){return!(!this.trackElement||this.isDragging||this.isNudgeAnimating||this.hasRecentInteraction()||this.isRightNavigationDisabled()||0!==this.dragOffset)}scheduleNextNudge(){this.nudgeAnimationInterval<=0||(this.clearNudgeTimeout(),this.nudgeTimeoutId=setTimeout((()=>{this.nudgeTimeoutId=void 0,this.isNudgeEligible()?this.isNudgeAnimating=!0:this.scheduleNextNudge()}),this.nudgeAnimationInterval))}onNudgeAnimationEnd=t=>{"tet-carousel-nudge"===t.animationName&&(this.stopNudgeAnimation(),this.scheduleNextNudge())};stopNudgeAnimation(){const t=this.isNudgeAnimating;return t&&(this.isNudgeAnimating=!1),t}clearNudgeTimeout(){this.nudgeTimeoutId&&(clearTimeout(this.nudgeTimeoutId),this.nudgeTimeoutId=void 0)}stopNudgeSchedule(){this.clearNudgeTimeout(),this.stopNudgeAnimation()}syncNudgeSchedule(){this.stopNudgeSchedule(),this.scheduleNextNudge()}clampDotIndex(t){return Math.max(0,Math.min(t,this.dotCount-1))}setDotIndex(t,e){let o=0;const i=this.getDotScreenLength();o=this.isLastDotScreen(t,i)?this.dotCount-1:Math.round((t+e)/i),this.activeDotIndex=this.clampDotIndex(o)}getFirstItemOffset(){const t=this.getSlotElements();if(!t?.length)return 0;const e=this.trackElement.getBoundingClientRect();return t[0].getBoundingClientRect().left-e.left}moveToItemCentered(t,e){const o=this.trackElement.getBoundingClientRect(),i=t.getBoundingClientRect().left-o.left-this.getFirstItemOffset()+t.offsetWidth/2-this.getViewportWidth()/2,n=Math.max(0,Math.min(i,this.getMaxScrollableOffset()));this.activeItem=e,this.dragOffset=n>0?-n:0,this.setDotIndex(n,0)}moveToItem(t,e,o=0){(e||0===e)&&(this.activeItem=e);const i=t.getBoundingClientRect(),n=this.trackElement.getBoundingClientRect();let s=i.left-n.left-this.getFirstItemOffset();const r=this.calculateGradient(t,s);this.setDotIndex(s,r);const a=Math.max(0,s-Math.max(0,o));this.isLastViewport(s)?this.moveToLastScreen():this.dragOffset=-a}disconnectedCallback(){this.stopNudgeSchedule(),this.stopNudgeGradientLoop(),window.removeEventListener("resize",this.handleResize),this.clearManagedSlideFocusableElements();const t=this.container?.querySelector("slot");t&&t.removeEventListener("slotchange",this.handleSlotChangeListener),this.slotObserver&&(this.slotObserver.disconnect(),this.slotObserver=null),document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp)}render(){const t=this.getFullyVisibleItemCount(),e=this._showButtons(t),n=this._showDots(t),a=e||n;let l=`transform ${this.transitionDuration}ms ${this.transitionTiming}`;return this.isDragging&&(l="mouse"===this.dragPointerType?`transform ${r.MOUSE_DRAG_SMOOTHING_MS}ms linear`:"none"),o(i,{key:"7bb6903df213a406c93f518873ecd8d9f74489b7"},o("div",{key:"a47adc22238b442463f996f3106fa62105ad7ec6",class:{"tet-carousel":!0,[`${this.theme}`]:!0,"tet-carousel--unified-buttons":this.unifiedButtons},ref:t=>this.container=t,part:"carousel"},o("div",{key:"86fb437ac73092ae8c29fed9090576c8a9dbc418",class:"tet-carousel__container"},o("div",{key:"caa1fd4a4f71babc0f371c51381e396e22987b8b",class:"tet-carousel__gradient-left",ref:t=>{this.leftGradientRef=t}}),o("div",{key:"239f81678e83b1e818693d4c57f5cdfcc8348e14",class:"tet-carousel__gradient-right",ref:t=>{this.rightGradientRef=t}}),o("div",{key:"54d33d82e1465095d74751fe4152bab14e3791cc",class:"tet-carousel__track "+(a?"":"tet-carousel__track--center"),ref:t=>this.trackElement=t,style:{transform:`translate3d(${this.dragOffset}px, 0, 0)`,transition:l,willChange:"transform"},onPointerDown:this.onPointerDown,onPointerUp:this.onPointerUp},o("div",{key:"e05f9892b45c6e0add5706707b8f2c35b7819e5a",class:{"tet-carousel__track-content":!0,"tet-carousel__track-content--nudge":this.isNudgeAnimating},ref:t=>this.trackContentElement=t,style:{"--tet-carousel-nudge-distance":`${r.NUDGE_DISTANCE_PX}px`},onAnimationEnd:this.onNudgeAnimationEnd},o("slot",{key:"aa4c0b12cfde33b1c4f424a120cb2f2ea4824be6"})))),!!this.label&&o("div",{key:"25a1d351e7df0a23e67b40a11971fe0ef7fd5276",class:"tet-carousel__label"},this.label),a&&o("div",{key:"9867a07cee3ffdab7d40daf92c71c62a6225a28f",class:"tet-carousel__controls"},e&&o("div",{key:"d0a515ef62a39256da996439d99b81ca50a549e5",class:"tet-carousel__buttons tet-carousel__buttons--mobile",ref:t=>this.mobileBackButtonWrapper=t},o("tet-button",{key:"fd46f0165a109a0210e9439d164ff3293bbe8141",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:s("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()})),n&&o("div",{key:"16c4e5316e218953870540952664f9e94700afa9",class:"tet-carousel__dots"},Array.from({length:this.dotCount}).map(((t,e)=>o("button",{type:"button",tabIndex:e===this.activeDotIndex?0:-1,class:"tet-carousel__dot"+(e===this.activeDotIndex?" active":""),key:e,"aria-label":`${s(e===this.activeDotIndex?"components-carousel-indicator-button-active":"components-carousel-indicator-button")} ${e+1}/${this.dotCount}`,"aria-current":e===this.activeDotIndex?"true":void 0,onPointerDown:t=>t.stopPropagation(),onKeyDown:t=>this.handleDotKeyDown(t,e),onClick:()=>this.handleDotClick(e)})))),e&&o("div",{key:"99c77c9acec0344b922408acf495572f42670d5e",class:"tet-carousel__buttons"},o("tet-button",{key:"9067a199c40cebe92ff6080d252a2600d639e718",class:"tet-carousel__buttons--desktop",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:s("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()}),o("tet-button",{key:"36189aea27493e74f3974022a44e4b394d9289b9",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconRight,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handleNext(),accessibilityLabel:s("components-carousel-next"),disabled:this.isRightNavigationDisabled()})))))}static get watchers(){return{language:[{onLanguageChange:0}],activeItem:[{onActiveItemChange:0}],showGradient:[{checkGradient:0}],dragOffset:[{checkGradient:0}],nudgeAnimationInterval:[{onNudgeAnimIntervalChange:0}],isNudgeAnimating:[{onNudgeAnimationStateChange:0}]}}};r.style=':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{--carousel-background:transparent;--carousel-dot-size:1rem;--carousel-buttons-bottom:-1rem;--carousel-dot-background:transparent;--carousel-dot-border:0.0625rem solid var(--tc-grey-70);--carousel-dot-margin:0;--carousel-dot-margin-mobile:1rem;--carousel-label-color:var(--tc-text-secondary);--carousel-dot-active-background:var(--tc-layer-inverse-primary);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover);--carousel-dot-active-hover-background:var(--tc-grey-80);--carousel-dots-gap:0.5rem;--carousel-buttons-gap:1rem;--carousel-track-gap:0;--carousel-track-height:100%;--carousel-item-width:100%;--carousel-item-height:100%;--carousel-buttons-right:2rem;--carousel-dots-bottom:-1rem;--carousel-nudge-animation-duration:1.5s;--carousel-gradient:var(--tc-background-primary);--carousel-button-icon-mode-padding:0.5rem;--carousel-button-icon-size:1.25rem;-webkit-tap-highlight-color:transparent;display:inline-block;width:100%}.tet-carousel{position:relative;width:100%;background:var(--carousel-background)}.tet-carousel.dark{--carousel-dot-active-background:var(--tc-layer-inverse-primary-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover-dark);--carousel-dot-active-hover-background:var(--tc-grey-80-dark);--carousel-label-color:var(--tc-text-secondary-dark);--carousel-gradient:var(--tc-background-primary-dark)}.tet-carousel__container{width:var(--carousel-item-width);max-width:var(--carousel-item-width);height:var(--carousel-track-height);position:relative;margin-bottom:var(--carousel-dot-margin-mobile);contain:layout}.tet-carousel__controls{position:relative;display:flex;align-items:center;justify-content:center;height:fit-content;margin-bottom:var(--carousel-dot-margin-mobile);min-height:2.75rem;touch-action:manipulation}.tet-carousel__label{color:var(--carousel-label-color);margin-left:auto;margin-right:auto;margin-bottom:1rem;text-align:center;font-family:var(--font-family-content);font-size:0.875rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:-0.003125rem}.tet-carousel__track{touch-action:pan-y;display:flex;height:var(--carousel-track-height);will-change:transform}.tet-carousel__track--center{justify-content:center}.tet-carousel__track-content{display:flex;gap:var(--carousel-track-gap);will-change:transform}.tet-carousel__track-content--nudge{animation:tet-carousel-nudge var(--carousel-nudge-animation-duration) ease-in-out}@media (hover: hover) and (pointer: fine){.tet-carousel:hover .tet-carousel__track-content--nudge{animation-play-state:paused}}.tet-carousel__track-content>*{flex-shrink:0;display:flex;align-items:center;justify-content:center}.tet-carousel__buttons{position:absolute;right:0;bottom:50%;display:flex;transform:translateY(50%);gap:var(--carousel-buttons-gap);z-index:2}.tet-carousel__buttons tet-button{--button-icon-mode-padding:var(--carousel-button-icon-mode-padding);--button-icon-size:var(--carousel-button-icon-size)}.tet-carousel__buttons--mobile{display:flex;left:0}.tet-carousel__buttons--desktop{display:none !important}.tet-carousel__dots{display:flex;width:100%;gap:var(--carousel-dots-gap);justify-content:center;align-items:center}.tet-carousel__dot{width:var(--carousel-dot-size);height:var(--carousel-dot-size);border-radius:50%;background:var(--carousel-dot-background);cursor:pointer;transition:background 0.2s;border:var(--carousel-dot-border);z-index:2;touch-action:manipulation}.tet-carousel__dot:hover{background:var(--carousel-dot-hover-background)}.tet-carousel__dot.active{background:var(--carousel-dot-active-background);border:none}.tet-carousel__dot.active:hover{background:var(--carousel-dot-active-hover-background)}.tet-carousel__dot:focus-visible{outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0.125rem}.tet-carousel--unified-buttons .tet-carousel__buttons--mobile{display:none}.tet-carousel--unified-buttons .tet-carousel__buttons--desktop{display:flex !important}.tet-carousel--unified-buttons .tet-carousel__buttons{right:0.25rem}.tet-carousel__gradient-left,.tet-carousel__gradient-right{position:absolute;top:0;display:block;width:13.75rem;height:100%;transition:opacity 0.4s ease-out;pointer-events:none;z-index:20;opacity:0}.tet-carousel__gradient-left{background:linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);left:0}.tet-carousel__gradient-right{background:linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);right:0}@keyframes tet-carousel-nudge{0%{transform:translateX(0)}50%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}70%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}100%{transform:translateX(0)}}@media all and (min-width: 46.25rem){.tet-carousel__controls{margin-bottom:var(--carousel-dot-margin)}.tet-carousel__label{font-size:1rem;line-height:1.5rem;letter-spacing:-0.00625rem}.tet-carousel__buttons{right:0.25rem}.tet-carousel__buttons--mobile{display:none}.tet-carousel__buttons--desktop{display:flex !important}}@media all and (min-width: 90rem){.tet-carousel__label{font-size:1.125rem;line-height:1.75rem}}';export{r as tet_carousel}