@tet/tet-components 1.4.156-testing → 1.4.157-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 (568) hide show
  1. package/dist/cjs/{http-codes-D7ffzpYW.js → http-codes-oHpK-Vsh.js} +1 -1
  2. package/dist/cjs/{index-BL_zVDFC.js → index-puzHM5yZ.js} +27 -31
  3. package/dist/cjs/{index-Dzs7Nkbj.js → index-t4WNVvo_.js} +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{product-comparison-DUzqZuWv.js → product-comparison-DAR6p-NV.js} +1 -1
  6. package/dist/cjs/service-availability-services-jPqzmyx3.js +19 -0
  7. package/dist/cjs/{string-D0kCSyUd.js → string-CL-wkThZ.js} +0 -4
  8. package/dist/cjs/tet-accordion.cjs.entry.js +7 -7
  9. package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +4 -4
  10. package/dist/cjs/tet-address-offers-v2.cjs.entry.js +332 -0
  11. package/dist/cjs/tet-address-offers-view-v2.cjs.entry.js +81 -0
  12. package/dist/cjs/tet-address-offers-view.cjs.entry.js +5 -5
  13. package/dist/cjs/{tet-address-offers_5.cjs.entry.js → tet-address-offers_3.cjs.entry.js} +8 -887
  14. package/dist/cjs/tet-address-search_2.cjs.entry.js +873 -0
  15. package/dist/cjs/{tet-assembler.cjs.entry.js → tet-assembler_3.cjs.entry.js} +827 -13
  16. package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +3 -3
  17. package/dist/cjs/tet-autocomplete_2.cjs.entry.js +6 -6
  18. package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +17 -17
  19. package/dist/cjs/tet-b2b-configurator.cjs.entry.js +6 -6
  20. package/dist/cjs/tet-banner-nav.cjs.entry.js +4 -4
  21. package/dist/cjs/tet-bar-graph.cjs.entry.js +4 -4
  22. package/dist/cjs/tet-border-radius.cjs.entry.js +2 -2
  23. package/dist/cjs/tet-business-card.cjs.entry.js +3 -3
  24. package/dist/cjs/tet-business-compare-card.cjs.entry.js +3 -3
  25. package/dist/cjs/tet-business-round-stepper.cjs.entry.js +2 -2
  26. package/dist/cjs/tet-button.cjs.entry.js +2 -2
  27. package/dist/cjs/tet-card-list.cjs.entry.js +5 -5
  28. package/dist/cjs/tet-carousel.cjs.entry.js +10 -10
  29. package/dist/cjs/tet-checkbox_3.cjs.entry.js +9 -9
  30. package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +6 -6
  31. package/dist/cjs/tet-cloud-configurator.cjs.entry.js +4 -4
  32. package/dist/cjs/tet-colors.cjs.entry.js +5 -5
  33. package/dist/cjs/tet-compare-card-v2.cjs.entry.js +4 -4
  34. package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
  35. package/dist/cjs/tet-compare-cards_2.cjs.entry.js +5 -5
  36. package/dist/cjs/tet-components.cjs.js +2 -2
  37. package/dist/cjs/tet-container_2.cjs.entry.js +3 -3
  38. package/dist/cjs/tet-countdown.cjs.entry.js +2 -2
  39. package/dist/cjs/tet-counter.cjs.entry.js +1 -1
  40. package/dist/cjs/tet-dialog.cjs.entry.js +4 -4
  41. package/dist/cjs/tet-display.cjs.entry.js +1 -1
  42. package/dist/cjs/tet-divider.cjs.entry.js +1 -1
  43. package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
  44. package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
  45. package/dist/cjs/tet-expansion-panel.cjs.entry.js +2 -2
  46. package/dist/cjs/tet-feedback-form.cjs.entry.js +4 -4
  47. package/dist/cjs/tet-filter.cjs.entry.js +1 -1
  48. package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
  49. package/dist/cjs/tet-font-weight.cjs.entry.js +2 -2
  50. package/dist/cjs/tet-fonts.cjs.entry.js +2 -2
  51. package/dist/cjs/tet-grid.cjs.entry.js +2 -2
  52. package/dist/cjs/tet-icon.cjs.entry.js +2 -2
  53. package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
  54. package/dist/cjs/tet-input.cjs.entry.js +4 -4
  55. package/dist/cjs/tet-layout.cjs.entry.js +2 -2
  56. package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
  57. package/dist/cjs/tet-link.cjs.entry.js +2 -2
  58. package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
  59. package/dist/cjs/tet-menu.cjs.entry.js +1 -1
  60. package/dist/cjs/tet-mini-compare-card.cjs.entry.js +1 -1
  61. package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +5 -5
  62. package/dist/cjs/tet-navigation-mobile.cjs.entry.js +7 -7
  63. package/dist/cjs/tet-news-card-list.cjs.entry.js +2 -2
  64. package/dist/cjs/tet-news-card.cjs.entry.js +2 -2
  65. package/dist/cjs/tet-notification.cjs.entry.js +2 -2
  66. package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
  67. package/dist/cjs/tet-paginator.cjs.entry.js +5 -5
  68. package/dist/cjs/tet-placeholder.cjs.entry.js +2 -2
  69. package/dist/cjs/tet-position.cjs.entry.js +1 -1
  70. package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
  71. package/dist/cjs/tet-radio_2.cjs.entry.js +3 -3
  72. package/dist/cjs/tet-range-slider.cjs.entry.js +8 -8
  73. package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
  74. package/dist/cjs/tet-snicker-card-group.cjs.entry.js +1 -1
  75. package/dist/cjs/tet-snicker-card.cjs.entry.js +4 -4
  76. package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
  77. package/dist/cjs/tet-spinner.cjs.entry.js +4 -4
  78. package/dist/cjs/tet-stepper-input.cjs.entry.js +5 -5
  79. package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
  80. package/dist/cjs/tet-sticky-offer.cjs.entry.js +2 -2
  81. package/dist/cjs/tet-support-search.cjs.entry.js +2 -2
  82. package/dist/cjs/tet-switch.cjs.entry.js +1 -1
  83. package/dist/cjs/tet-table.cjs.entry.js +1 -1
  84. package/dist/cjs/tet-tag_2.cjs.entry.js +6 -6
  85. package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
  86. package/dist/cjs/tet-text.cjs.entry.js +1 -1
  87. package/dist/cjs/tet-textarea.cjs.entry.js +3 -3
  88. package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +4 -4
  89. package/dist/cjs/tet-tv-program-channel-picker_2.cjs.entry.js +5 -5
  90. package/dist/cjs/tet-tv-program.cjs.entry.js +2 -2
  91. package/dist/cjs/{translations-Uvcq4kv8.js → translations-D5zHdnnh.js} +2 -2
  92. package/dist/cjs/{typecheck--Bs-bZ_K.js → typecheck-Do6mN8Vg.js} +0 -2
  93. package/dist/collection/collection-manifest.json +3 -1
  94. package/dist/collection/components/advanced/address/tet-address-offers-v2/address-offers-v2.model.js +147 -0
  95. package/dist/collection/components/{simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.css → advanced/address/tet-address-offers-v2/tet-address-offers-v2.css} +128 -20
  96. package/dist/collection/components/advanced/address/tet-address-offers-v2/tet-address-offers-v2.js +346 -0
  97. package/dist/collection/components/advanced/address/tet-address-search/tet-address-search.js +3 -3
  98. package/dist/collection/components/advanced/address/tet-autocomplete/tet-autocomplete.js +2 -2
  99. package/dist/collection/components/advanced/address/tet-autocomplete-dropdown/tet-autocomplete-dropdown.js +1 -1
  100. package/dist/collection/components/advanced/cards/tet-assembler/tet-assembler.css +1 -17
  101. package/dist/collection/components/advanced/cards/tet-assembler/tet-assembler.js +70 -9
  102. package/dist/collection/components/advanced/cards/tet-b2b-compare-card/tet-b2b-compare-card.js +6 -6
  103. package/dist/collection/components/advanced/cards/tet-business-card/tet-business-card.js +2 -2
  104. package/dist/collection/components/advanced/cards/tet-business-compare-card/tet-business-compare-card.js +2 -2
  105. package/dist/collection/components/advanced/cards/tet-business-summary-card/tet-business-summary-card.js +1 -1
  106. package/dist/collection/components/advanced/cards/tet-card-list/tet-card-list.js +4 -4
  107. package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.js +1 -1
  108. package/dist/collection/components/advanced/cards/tet-compare-card-v3/tet-compare-card-v3.css +13 -0
  109. package/dist/collection/components/advanced/cards/tet-compare-card-v3/tet-compare-card-v3.js +76 -6
  110. package/dist/collection/components/advanced/cards/tet-news-card/tet-news-card.js +1 -1
  111. package/dist/collection/components/advanced/customer/tet-asset-availability-addresses/tet-asset-availability-addresses.js +1 -1
  112. package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/tet-multi-step-dialog.js +1 -1
  113. package/dist/collection/components/advanced/forms/tet-availability-contact-form/tet-availability-contact-form.js +1 -1
  114. package/dist/collection/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.js +3 -3
  115. package/dist/collection/components/basic/buttons/tet-button/tet-button.js +1 -1
  116. package/dist/collection/components/basic/buttons/tet-checkbox/tet-checkbox.js +7 -7
  117. package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-content/tet-tab-content.js +2 -2
  118. package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-header/tet-tab-header.js +2 -2
  119. package/dist/collection/components/basic/buttons/tet-tag/tet-tag.js +2 -2
  120. package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +6 -6
  121. package/dist/collection/components/basic/loaders/tet-loader/tet-loader.js +1 -1
  122. package/dist/collection/components/basic/loaders/tet-placeholder/tet-placeholder.js +1 -1
  123. package/dist/collection/components/basic/loaders/tet-spinner/tet-spinner.js +3 -3
  124. package/dist/collection/components/basic/misc/tet-countdown/tet-countdown.js +1 -1
  125. package/dist/collection/components/basic/steppers/tet-business-round-stepper/tet-business-round-stepper.js +1 -1
  126. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.js +2 -2
  127. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.js +1 -1
  128. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.js +1 -1
  129. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.js +1 -1
  130. package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.js +4 -4
  131. package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.js +7 -7
  132. package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.js +1 -1
  133. package/dist/collection/components/simple/inputs/tet-textarea/tet-textarea.js +2 -2
  134. package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +1 -1
  135. package/dist/collection/components/simple/lists/tet-selection-list/tet-selection-list.js +1 -1
  136. package/dist/collection/components/simple/menu/tet-business-navigation/tet-business-navigation.js +1 -1
  137. package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js +3 -3
  138. package/dist/collection/components/simple/menu/tet-paginator/tet-paginator.js +1 -1
  139. package/dist/collection/components/simple/misc/tet-sticky-offer/tet-sticky-offer.js +1 -1
  140. package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +6 -6
  141. package/dist/collection/components/simple/structural/tet-expansion-panel/tet-expansion-panel.js +1 -1
  142. package/dist/collection/components/simple/tables-and-graphs/tet-bar-graph/tet-bar-graph.js +3 -3
  143. package/dist/collection/components/simple/text-blocks/tet-cloud-application-form-dialog/tet-cloud-application-form-dialog.js +2 -2
  144. package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.js +1 -1
  145. package/dist/collection/components/simple/text-blocks/tet-tooltip/tet-tooltip.js +1 -1
  146. package/dist/collection/components/views/tet-address-offers-view/tet-address-offers-view.js +1 -1
  147. package/dist/collection/components/views/tet-address-offers-view-v2/assets/banner.webp +0 -0
  148. package/dist/collection/components/{simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.css → views/tet-address-offers-view-v2/tet-address-offers-view-v2.css} +78 -34
  149. package/dist/collection/components/views/tet-address-offers-view-v2/tet-address-offers-view-v2.js +289 -0
  150. package/dist/collection/components/views/tet-b2b-configurator/partials/tet-b2b-configurator-cart/tet-b2b-configurator-cart.js +2 -2
  151. package/dist/collection/components/views/tet-b2b-configurator/tet-b2b-configurator.js +1 -1
  152. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.js +1 -1
  153. package/dist/collection/components/views/tet-tv-program/tet-tv-program.js +1 -1
  154. package/dist/collection/docs/styling/border-radius/tet-border-radius.js +1 -1
  155. package/dist/collection/docs/styling/colors/tet-colors.js +4 -4
  156. package/dist/collection/docs/styling/font-weight/tet-font-weight.js +1 -1
  157. package/dist/collection/docs/styling/fonts/tet-fonts.js +1 -1
  158. package/dist/collection/docs/styling/layout/tet-layout.js +1 -1
  159. package/dist/collection/docs/styling/link/tet-link.js +1 -1
  160. package/dist/collection/docs/styling/spacing/tet-spacing.js +1 -1
  161. package/dist/collection/docs/styling/tet-grid/tet-grid.js +1 -1
  162. package/dist/components/index.js +1 -1
  163. package/dist/components/{p-tMXV3IB5.js → p-B82POgFl.js} +1 -1
  164. package/dist/components/{p-CNhW7KE6.js → p-BAZQcyA7.js} +1 -1
  165. package/dist/components/{p-BztqMLE1.js → p-BAf_O-kb.js} +1 -1
  166. package/dist/components/{p-B9bE6qY-.js → p-BDEIj3j6.js} +1 -1
  167. package/dist/components/{p-C5khLmO4.js → p-BPTM37Hn.js} +1 -1
  168. package/dist/components/{p-CHVoAVzT.js → p-BQiafjHE.js} +1 -1
  169. package/dist/components/{p-DcRCMBBc.js → p-BWy5ewze.js} +1 -1
  170. package/dist/components/{p-BUyuNqM6.js → p-BX98BUpV.js} +1 -1
  171. package/dist/components/{p-Dmu5eHbY.js → p-BciwrQoB.js} +1 -1
  172. package/dist/components/p-BdMiAoro.js +1 -0
  173. package/dist/components/{p-w1igWoTx.js → p-Bm7pFbvA.js} +1 -1
  174. package/dist/components/{p-CnVl55e4.js → p-ByM3JujT.js} +1 -1
  175. package/dist/components/{p-B5y1yfI4.js → p-ByuP1fbX.js} +1 -1
  176. package/dist/components/{p-CJnk1Plz.js → p-C50q8-fi.js} +1 -1
  177. package/dist/components/{p-Bc4oqt_L.js → p-C5d7kQcA.js} +1 -1
  178. package/dist/components/p-CDWcoIgr.js +1 -0
  179. package/dist/components/{p-B8YPfVrH.js → p-CEVlu6ZD.js} +1 -1
  180. package/dist/components/{p-t_FgKIcd.js → p-CEyoGS5R.js} +1 -1
  181. package/dist/components/{p-Ckf6mMEf.js → p-CG9c-nHY.js} +1 -1
  182. package/dist/components/{p-CMxcvnRv.js → p-CKWJROPt.js} +1 -1
  183. package/dist/components/p-CQGgxLtq.js +1 -0
  184. package/dist/components/p-CWuhYFDW.js +1 -0
  185. package/dist/components/p-Cb-I8QJh.js +1 -0
  186. package/dist/components/{p-CQBhFzqI.js → p-ClXBenaN.js} +1 -1
  187. package/dist/components/p-CnMas2yD.js +1 -0
  188. package/dist/components/{p-DKZxpjnL.js → p-CpJ_GE1B.js} +1 -1
  189. package/dist/components/{p-d31bvRM6.js → p-CvA9ppPv.js} +1 -1
  190. package/dist/{tet-components/p-ad8622a2.entry.js → components/p-CvO427nb.js} +1 -1
  191. package/dist/components/{p-Cqjpl-r4.js → p-D05i9nSD.js} +1 -1
  192. package/dist/components/{p-C4uKGuRj.js → p-D4MolLd8.js} +1 -1
  193. package/dist/components/p-D8yjgo3h.js +1 -0
  194. package/dist/components/{p-CjbC3Ym3.js → p-D9Ay3Miq.js} +1 -1
  195. package/dist/components/{p-CV0h6H20.js → p-DKtLi_m6.js} +1 -1
  196. package/dist/components/{p-C61jDpta.js → p-DTOuhcpL.js} +1 -1
  197. package/dist/components/{p-Cmi0CN7v.js → p-DT_KxFJb.js} +1 -1
  198. package/dist/components/{p-Dke4zCyb.js → p-DUKWm2NH.js} +1 -1
  199. package/dist/components/{p-Ba5cZk_W.js → p-DYjsysoT.js} +1 -1
  200. package/dist/components/{p-DN2JwXg9.js → p-DZRioc0D.js} +1 -1
  201. package/dist/components/p-DhBrj0ZX.js +1 -0
  202. package/dist/components/{p-BpfMADD6.js → p-DiSdptzb.js} +1 -1
  203. package/dist/components/{p-Bsqoxd9G.js → p-DobMlMDf.js} +1 -1
  204. package/dist/components/{p-BUZAWbGM.js → p-Drc3QqtB.js} +1 -1
  205. package/dist/components/{p-CxypAmpV.js → p-Ds2b2o-c.js} +1 -1
  206. package/dist/components/{p-20AXKDtg.js → p-Dxiapgms.js} +1 -1
  207. package/dist/components/{p-C0RZDFyg.js → p-FC0kZDcz.js} +1 -1
  208. package/dist/components/{p-Dhe7PE-h.js → p-P5fEcpqm.js} +1 -1
  209. package/dist/components/{p-Mpe-2CVQ.js → p-QlyBltAE.js} +1 -1
  210. package/dist/components/{p-BdN4p8Qa.js → p-Xd0ABGeO.js} +1 -1
  211. package/dist/components/p-_2UzwYR8.js +1 -0
  212. package/dist/components/{p-Br4jWI9B.js → p-fUGNvavt.js} +1 -1
  213. package/dist/components/{p-BKqEPSBf.js → p-gcNUTSw9.js} +1 -1
  214. package/dist/components/{p-B5Dk5hzj.js → p-gw3AOj6h.js} +1 -1
  215. package/dist/components/{p-1E6motPj.js → p-nNPOjd2b.js} +1 -1
  216. package/dist/components/{p-Bw-D7nPx.js → p-sp4th_AU.js} +1 -1
  217. package/dist/components/p-wHiUpSTa.js +1 -0
  218. package/dist/components/tet-accordion.js +1 -1
  219. package/dist/components/tet-address-offers-filters-products.js +1 -1
  220. package/dist/components/tet-address-offers-filters.js +1 -1
  221. package/dist/components/{tet-datepicker.d.ts → tet-address-offers-v2.d.ts} +4 -4
  222. package/dist/components/tet-address-offers-v2.js +1 -0
  223. package/dist/components/tet-address-offers-view-v2.d.ts +11 -0
  224. package/dist/components/tet-address-offers-view-v2.js +1 -0
  225. package/dist/components/tet-address-offers-view.js +1 -1
  226. package/dist/components/tet-address-offers.js +1 -1
  227. package/dist/components/tet-address-search.js +1 -1
  228. package/dist/components/tet-assembler.js +1 -1
  229. package/dist/components/tet-asset-availability-addresses.js +1 -1
  230. package/dist/components/tet-autocomplete-dropdown.js +1 -1
  231. package/dist/components/tet-autocomplete.js +1 -1
  232. package/dist/components/tet-availability-contact-form.js +1 -1
  233. package/dist/components/tet-b2b-check-out-form.js +1 -1
  234. package/dist/components/tet-b2b-compare-card.js +1 -1
  235. package/dist/components/tet-b2b-configurator-cart.js +1 -1
  236. package/dist/components/tet-b2b-configurator.js +1 -1
  237. package/dist/components/tet-banner-nav.js +1 -1
  238. package/dist/components/tet-bar-graph.js +1 -1
  239. package/dist/components/tet-border-radius.js +1 -1
  240. package/dist/components/tet-business-card.js +1 -1
  241. package/dist/components/tet-business-compare-card.js +1 -1
  242. package/dist/components/tet-business-navigation.js +1 -1
  243. package/dist/components/tet-business-round-stepper.js +1 -1
  244. package/dist/components/tet-business-summary-card.js +1 -1
  245. package/dist/components/tet-button.js +1 -1
  246. package/dist/components/tet-card-list.js +1 -1
  247. package/dist/components/tet-carousel.js +1 -1
  248. package/dist/components/tet-checkbox.js +1 -1
  249. package/dist/components/tet-cloud-application-form-dialog.js +1 -1
  250. package/dist/components/tet-cloud-configurator.js +1 -1
  251. package/dist/components/tet-colors.js +1 -1
  252. package/dist/components/tet-compare-card-v2.js +1 -1
  253. package/dist/components/tet-compare-card-v3.js +1 -1
  254. package/dist/components/tet-compare-card.js +1 -1
  255. package/dist/components/tet-compare-cards-tab.js +1 -1
  256. package/dist/components/tet-compare-cards.js +1 -1
  257. package/dist/components/tet-container.js +1 -1
  258. package/dist/components/tet-countdown.js +1 -1
  259. package/dist/components/tet-counter.js +1 -1
  260. package/dist/components/tet-dialog.js +1 -1
  261. package/dist/components/tet-display.js +1 -1
  262. package/dist/components/tet-divider.js +1 -1
  263. package/dist/components/tet-dropdown.js +1 -1
  264. package/dist/components/tet-dynamic-card.js +1 -1
  265. package/dist/components/tet-expandable-input.js +1 -1
  266. package/dist/components/tet-expansion-panel.js +1 -1
  267. package/dist/components/tet-feedback-form.js +1 -1
  268. package/dist/components/tet-filter.js +1 -1
  269. package/dist/components/tet-floating-block.js +1 -1
  270. package/dist/components/tet-font-weight.js +1 -1
  271. package/dist/components/tet-fonts.js +1 -1
  272. package/dist/components/tet-grid.js +1 -1
  273. package/dist/components/tet-icon.js +1 -1
  274. package/dist/components/tet-inline-message.js +1 -1
  275. package/dist/components/tet-input.js +1 -1
  276. package/dist/components/tet-layout.js +1 -1
  277. package/dist/components/tet-link-card-list.js +1 -1
  278. package/dist/components/tet-link.js +1 -1
  279. package/dist/components/tet-loader.js +1 -1
  280. package/dist/components/tet-menu-mobile.js +1 -1
  281. package/dist/components/tet-menu.js +1 -1
  282. package/dist/components/tet-mini-compare-card.js +1 -1
  283. package/dist/components/tet-multi-step-dialog.js +1 -1
  284. package/dist/components/tet-navigation-mobile.js +1 -1
  285. package/dist/components/tet-news-card-list.js +1 -1
  286. package/dist/components/tet-news-card.js +1 -1
  287. package/dist/components/tet-notification.js +1 -1
  288. package/dist/components/tet-number-input.js +1 -1
  289. package/dist/components/tet-paginator.js +1 -1
  290. package/dist/components/tet-placeholder.js +1 -1
  291. package/dist/components/tet-position.js +1 -1
  292. package/dist/components/tet-price-view.js +1 -1
  293. package/dist/components/tet-radio-blocks.js +1 -1
  294. package/dist/components/tet-radio.js +1 -1
  295. package/dist/components/tet-range-slider.js +1 -1
  296. package/dist/components/tet-round-stepper.js +1 -1
  297. package/dist/components/tet-selection-list.js +1 -1
  298. package/dist/components/tet-snicker-card-group.js +1 -1
  299. package/dist/components/tet-snicker-card.js +1 -1
  300. package/dist/components/tet-spacing.js +1 -1
  301. package/dist/components/tet-spinner.js +1 -1
  302. package/dist/components/tet-stepper-input.js +1 -1
  303. package/dist/components/tet-stepper-v3.js +1 -1
  304. package/dist/components/tet-sticky-offer.js +1 -1
  305. package/dist/components/tet-support-search.js +1 -1
  306. package/dist/components/tet-switch.js +1 -1
  307. package/dist/components/tet-tab-content.js +1 -1
  308. package/dist/components/tet-tab-header.js +1 -1
  309. package/dist/components/tet-table.js +1 -1
  310. package/dist/components/tet-tag-group.js +1 -1
  311. package/dist/components/tet-tag.js +1 -1
  312. package/dist/components/tet-text-list.js +1 -1
  313. package/dist/components/tet-text.js +1 -1
  314. package/dist/components/tet-textarea.js +1 -1
  315. package/dist/components/tet-thank-you-view-v3.js +1 -1
  316. package/dist/components/tet-tooltip.js +1 -1
  317. package/dist/components/tet-tv-program-channel-picker.js +1 -1
  318. package/dist/components/tet-tv-program-date-picker.js +1 -1
  319. package/dist/components/tet-tv-program.js +1 -1
  320. package/dist/esm/{http-codes-BQGPgOl6.js → http-codes-DZlFuxP5.js} +1 -1
  321. package/dist/esm/{index-BGB6gNkz.js → index-CO8AyGrA.js} +28 -32
  322. package/dist/esm/{index-DScZlZas.js → index-Rx46bgOe.js} +1 -1
  323. package/dist/esm/loader.js +3 -3
  324. package/dist/esm/{product-comparison-DUVV7BFR.js → product-comparison-Cwy9VRPV.js} +1 -1
  325. package/dist/esm/service-availability-services-DXz8vHs0.js +17 -0
  326. package/dist/esm/{string-D0GJDW-O.js → string-C9BlrGW8.js} +1 -4
  327. package/dist/esm/tet-accordion.entry.js +7 -7
  328. package/dist/esm/tet-address-offers-filters-products_2.entry.js +4 -4
  329. package/dist/esm/tet-address-offers-v2.entry.js +330 -0
  330. package/dist/esm/tet-address-offers-view-v2.entry.js +79 -0
  331. package/dist/esm/tet-address-offers-view.entry.js +5 -5
  332. package/dist/esm/{tet-address-offers_5.entry.js → tet-address-offers_3.entry.js} +8 -885
  333. package/dist/esm/tet-address-search_2.entry.js +870 -0
  334. package/dist/esm/{tet-assembler.entry.js → tet-assembler_3.entry.js} +826 -14
  335. package/dist/esm/tet-autocomplete-dropdown.entry.js +3 -3
  336. package/dist/esm/tet-autocomplete_2.entry.js +6 -6
  337. package/dist/esm/tet-b2b-check-out-form_5.entry.js +17 -17
  338. package/dist/esm/tet-b2b-configurator.entry.js +6 -6
  339. package/dist/esm/tet-banner-nav.entry.js +4 -4
  340. package/dist/esm/tet-bar-graph.entry.js +4 -4
  341. package/dist/esm/tet-border-radius.entry.js +2 -2
  342. package/dist/esm/tet-business-card.entry.js +3 -3
  343. package/dist/esm/tet-business-compare-card.entry.js +3 -3
  344. package/dist/esm/tet-business-round-stepper.entry.js +2 -2
  345. package/dist/esm/tet-button.entry.js +2 -2
  346. package/dist/esm/tet-card-list.entry.js +5 -5
  347. package/dist/esm/tet-carousel.entry.js +10 -10
  348. package/dist/esm/tet-checkbox_3.entry.js +9 -9
  349. package/dist/esm/tet-cloud-application-form-dialog.entry.js +6 -6
  350. package/dist/esm/tet-cloud-configurator.entry.js +4 -4
  351. package/dist/esm/tet-colors.entry.js +5 -5
  352. package/dist/esm/tet-compare-card-v2.entry.js +4 -4
  353. package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
  354. package/dist/esm/tet-compare-cards_2.entry.js +5 -5
  355. package/dist/esm/tet-components.js +3 -3
  356. package/dist/esm/tet-container_2.entry.js +3 -3
  357. package/dist/esm/tet-countdown.entry.js +2 -2
  358. package/dist/esm/tet-counter.entry.js +1 -1
  359. package/dist/esm/tet-dialog.entry.js +4 -4
  360. package/dist/esm/tet-display.entry.js +1 -1
  361. package/dist/esm/tet-divider.entry.js +1 -1
  362. package/dist/esm/tet-dynamic-card.entry.js +1 -1
  363. package/dist/esm/tet-expandable-input.entry.js +1 -1
  364. package/dist/esm/tet-expansion-panel.entry.js +2 -2
  365. package/dist/esm/tet-feedback-form.entry.js +4 -4
  366. package/dist/esm/tet-filter.entry.js +1 -1
  367. package/dist/esm/tet-floating-block.entry.js +1 -1
  368. package/dist/esm/tet-font-weight.entry.js +2 -2
  369. package/dist/esm/tet-fonts.entry.js +2 -2
  370. package/dist/esm/tet-grid.entry.js +2 -2
  371. package/dist/esm/tet-icon.entry.js +2 -2
  372. package/dist/esm/tet-inline-message.entry.js +1 -1
  373. package/dist/esm/tet-input.entry.js +4 -4
  374. package/dist/esm/tet-layout.entry.js +2 -2
  375. package/dist/esm/tet-link-card-list.entry.js +1 -1
  376. package/dist/esm/tet-link.entry.js +2 -2
  377. package/dist/esm/tet-menu-mobile.entry.js +1 -1
  378. package/dist/esm/tet-menu.entry.js +1 -1
  379. package/dist/esm/tet-mini-compare-card.entry.js +1 -1
  380. package/dist/esm/tet-multi-step-dialog.entry.js +5 -5
  381. package/dist/esm/tet-navigation-mobile.entry.js +7 -7
  382. package/dist/esm/tet-news-card-list.entry.js +2 -2
  383. package/dist/esm/tet-news-card.entry.js +2 -2
  384. package/dist/esm/tet-notification.entry.js +2 -2
  385. package/dist/esm/tet-number-input.entry.js +1 -1
  386. package/dist/esm/tet-paginator.entry.js +5 -5
  387. package/dist/esm/tet-placeholder.entry.js +2 -2
  388. package/dist/esm/tet-position.entry.js +1 -1
  389. package/dist/esm/tet-price-view.entry.js +1 -1
  390. package/dist/esm/tet-radio_2.entry.js +3 -3
  391. package/dist/esm/tet-range-slider.entry.js +8 -8
  392. package/dist/esm/tet-round-stepper.entry.js +1 -1
  393. package/dist/esm/tet-snicker-card-group.entry.js +1 -1
  394. package/dist/esm/tet-snicker-card.entry.js +4 -4
  395. package/dist/esm/tet-spacing.entry.js +2 -2
  396. package/dist/esm/tet-spinner.entry.js +4 -4
  397. package/dist/esm/tet-stepper-input.entry.js +5 -5
  398. package/dist/esm/tet-stepper-v3.entry.js +1 -1
  399. package/dist/esm/tet-sticky-offer.entry.js +2 -2
  400. package/dist/esm/tet-support-search.entry.js +2 -2
  401. package/dist/esm/tet-switch.entry.js +1 -1
  402. package/dist/esm/tet-table.entry.js +1 -1
  403. package/dist/esm/tet-tag_2.entry.js +6 -6
  404. package/dist/esm/tet-text-list.entry.js +1 -1
  405. package/dist/esm/tet-text.entry.js +1 -1
  406. package/dist/esm/tet-textarea.entry.js +3 -3
  407. package/dist/esm/tet-thank-you-view-v3.entry.js +4 -4
  408. package/dist/esm/tet-tv-program-channel-picker_2.entry.js +5 -5
  409. package/dist/esm/tet-tv-program.entry.js +2 -2
  410. package/dist/esm/{translations-Dc2OQnbI.js → translations-B5QyZ9vI.js} +2 -2
  411. package/dist/esm/{typecheck-Bvqcvhjw.js → typecheck-CaZKtSyx.js} +1 -2
  412. package/dist/tet-components/assets/banner.webp +0 -0
  413. package/dist/tet-components/{p-6a8f5935.entry.js → p-00440570.entry.js} +1 -1
  414. package/dist/tet-components/{p-01577a41.entry.js → p-00ee3383.entry.js} +1 -1
  415. package/dist/tet-components/{p-d62eecdb.entry.js → p-082671b8.entry.js} +1 -1
  416. package/dist/tet-components/{p-38459b69.entry.js → p-0a35f634.entry.js} +1 -1
  417. package/dist/tet-components/{p-16199435.entry.js → p-0d582ff6.entry.js} +1 -1
  418. package/dist/tet-components/{p-be07df58.entry.js → p-0db9ba10.entry.js} +1 -1
  419. package/dist/tet-components/{p-3bb8e0ec.entry.js → p-172e6e28.entry.js} +1 -1
  420. package/dist/tet-components/{p-49ba40a1.entry.js → p-19a1e73a.entry.js} +1 -1
  421. package/dist/{components/p-euiyLrT6.js → tet-components/p-1d183de7.entry.js} +1 -1
  422. package/dist/tet-components/{p-e3e02e3b.entry.js → p-20a1e096.entry.js} +1 -1
  423. package/dist/tet-components/{p-79be83b2.entry.js → p-24192844.entry.js} +1 -1
  424. package/dist/tet-components/{p-b3acb430.entry.js → p-25b05e87.entry.js} +1 -1
  425. package/dist/tet-components/{p-9cee887f.entry.js → p-2a528ade.entry.js} +1 -1
  426. package/dist/tet-components/{p-e7e18cc4.entry.js → p-335a6617.entry.js} +1 -1
  427. package/dist/tet-components/{p-e2d4e5c3.entry.js → p-38ac5d83.entry.js} +1 -1
  428. package/dist/tet-components/{p-0cb2775f.entry.js → p-397320f3.entry.js} +1 -1
  429. package/dist/tet-components/{p-ee45806d.entry.js → p-3a317d67.entry.js} +1 -1
  430. package/dist/tet-components/{p-380c13f1.entry.js → p-4172cf45.entry.js} +1 -1
  431. package/dist/tet-components/p-417e33c5.entry.js +1 -0
  432. package/dist/tet-components/{p-a560fec1.entry.js → p-421edd38.entry.js} +1 -1
  433. package/dist/tet-components/{p-c2d6ac75.entry.js → p-4398cb86.entry.js} +1 -1
  434. package/dist/tet-components/{p-386be2d5.entry.js → p-43b92cf1.entry.js} +1 -1
  435. package/dist/tet-components/{p-784dd089.entry.js → p-44f9960d.entry.js} +1 -1
  436. package/dist/tet-components/{p-a037e4df.entry.js → p-4ba81e21.entry.js} +1 -1
  437. package/dist/tet-components/{p-66287f28.entry.js → p-4c5557fd.entry.js} +1 -1
  438. package/dist/tet-components/{p-d8a0eaaa.entry.js → p-4f623f82.entry.js} +1 -1
  439. package/dist/tet-components/{p-11ed5b55.entry.js → p-53288215.entry.js} +1 -1
  440. package/dist/tet-components/{p-94b2efaa.entry.js → p-54d6312f.entry.js} +1 -1
  441. package/dist/tet-components/{p-37c3f4c6.entry.js → p-56b3c60a.entry.js} +1 -1
  442. package/dist/tet-components/{p-368fb50a.entry.js → p-56f529fa.entry.js} +1 -1
  443. package/dist/tet-components/p-61561410.entry.js +1 -0
  444. package/dist/tet-components/p-696802be.entry.js +1 -0
  445. package/dist/tet-components/{p-7ae4195d.entry.js → p-6fbed98d.entry.js} +1 -1
  446. package/dist/tet-components/{p-45c01709.entry.js → p-70775616.entry.js} +1 -1
  447. package/dist/tet-components/{p-cd7efc99.entry.js → p-710077db.entry.js} +1 -1
  448. package/dist/tet-components/p-71e25e1a.entry.js +1 -0
  449. package/dist/tet-components/p-7ae98034.entry.js +1 -0
  450. package/dist/tet-components/{p-c9c4656e.entry.js → p-7d81be98.entry.js} +1 -1
  451. package/dist/tet-components/{p-fd71a027.entry.js → p-7fe27333.entry.js} +1 -1
  452. package/dist/tet-components/{p-41ef37c5.entry.js → p-850c65bb.entry.js} +1 -1
  453. package/dist/tet-components/{p-3005a902.entry.js → p-8e626994.entry.js} +1 -1
  454. package/dist/tet-components/p-938e02a1.entry.js +1 -0
  455. package/dist/tet-components/p-94f68711.entry.js +1 -0
  456. package/dist/tet-components/{p-185e98b4.entry.js → p-998ee6ff.entry.js} +1 -1
  457. package/dist/tet-components/{p-40503431.entry.js → p-9da92e28.entry.js} +1 -1
  458. package/dist/tet-components/{p-6d7c406e.entry.js → p-9fcebf59.entry.js} +1 -1
  459. package/dist/tet-components/{p-9beb88d9.entry.js → p-9fd20cce.entry.js} +1 -1
  460. package/dist/tet-components/p-B6DaIAt8.js +1 -0
  461. package/dist/tet-components/p-C9BlrGW8.js +1 -0
  462. package/dist/tet-components/p-CO8AyGrA.js +3 -0
  463. package/dist/tet-components/p-CaZKtSyx.js +1 -0
  464. package/dist/tet-components/p-CclcDrnd.js +1 -0
  465. package/dist/{components/p-lEX8wezw.js → tet-components/p-Qvh4ioQu.js} +1 -1
  466. package/dist/tet-components/{p-DX1IQAn5.js → p-WCtqtcml.js} +1 -1
  467. package/dist/tet-components/{p-5a14b088.entry.js → p-a3554db0.entry.js} +1 -1
  468. package/dist/tet-components/p-a4308a8d.entry.js +1 -0
  469. package/dist/tet-components/{p-e0752dc6.entry.js → p-aabaeb21.entry.js} +1 -1
  470. package/dist/tet-components/p-ae8dd4d2.entry.js +1 -0
  471. package/dist/tet-components/{p-74ccd606.entry.js → p-af46cb66.entry.js} +1 -1
  472. package/dist/tet-components/{p-4a39f6bc.entry.js → p-afdfbbe6.entry.js} +1 -1
  473. package/dist/tet-components/{p-4b92e8e6.entry.js → p-b32bfbcc.entry.js} +1 -1
  474. package/dist/tet-components/{p-632d382c.entry.js → p-b394da8f.entry.js} +1 -1
  475. package/dist/tet-components/{p-ad0b78d5.entry.js → p-b47dbd57.entry.js} +1 -1
  476. package/dist/tet-components/{p-72b23f6a.entry.js → p-b65a081f.entry.js} +1 -1
  477. package/dist/tet-components/{p-952b6065.entry.js → p-b7604f13.entry.js} +1 -1
  478. package/dist/tet-components/{p-2c84bff1.entry.js → p-b85587af.entry.js} +1 -1
  479. package/dist/tet-components/{p-1b29e5f2.entry.js → p-bc168e7d.entry.js} +1 -1
  480. package/dist/tet-components/p-bd5176b9.entry.js +1 -0
  481. package/dist/tet-components/{p-17d3a7ff.entry.js → p-bfb89ca9.entry.js} +1 -1
  482. package/dist/tet-components/{p-c97d7c52.entry.js → p-c0c72e90.entry.js} +1 -1
  483. package/dist/tet-components/{p-7338bab9.entry.js → p-c6a65c31.entry.js} +1 -1
  484. package/dist/tet-components/{p-c96c5b96.entry.js → p-cc26cad3.entry.js} +1 -1
  485. package/dist/tet-components/p-cd8c2923.entry.js +1 -0
  486. package/dist/tet-components/{p-9d103705.entry.js → p-ce92d83d.entry.js} +1 -1
  487. package/dist/tet-components/{p-3af65955.entry.js → p-d2bfb56b.entry.js} +1 -1
  488. package/dist/tet-components/{p-39a59573.entry.js → p-da48adf2.entry.js} +1 -1
  489. package/dist/tet-components/{p-cc3e87fe.entry.js → p-dc84cd4d.entry.js} +1 -1
  490. package/dist/tet-components/{p-299c7600.entry.js → p-de2ed849.entry.js} +1 -1
  491. package/dist/tet-components/{p-954dc5fa.entry.js → p-e3272f96.entry.js} +1 -1
  492. package/dist/tet-components/{p-41763924.entry.js → p-e6ae26c9.entry.js} +1 -1
  493. package/dist/tet-components/{p-8310d42d.entry.js → p-e8395909.entry.js} +1 -1
  494. package/dist/tet-components/{p-830e4fe6.entry.js → p-ea61c173.entry.js} +1 -1
  495. package/dist/tet-components/p-ef66b469.entry.js +1 -0
  496. package/dist/tet-components/p-f002f9b5.entry.js +1 -0
  497. package/dist/tet-components/p-f3b47857.entry.js +1 -0
  498. package/dist/tet-components/{p-2d36b8a7.entry.js → p-fe36894b.entry.js} +1 -1
  499. package/dist/tet-components/{p-a32ada3d.entry.js → p-fee45cbd.entry.js} +1 -1
  500. package/dist/tet-components/{p-0996dd5a.entry.js → p-ff09a8f4.entry.js} +1 -1
  501. package/dist/tet-components/p-ff425f4d.entry.js +1 -0
  502. package/dist/tet-components/{p-DbJll7nz.js → p-fxr7DnMu.js} +2 -2
  503. package/dist/tet-components/tet-components.esm.js +1 -1
  504. package/dist/types/components/advanced/address/tet-address-offers-v2/address-offers-v2.model.d.ts +55 -0
  505. package/dist/types/components/advanced/address/tet-address-offers-v2/tet-address-offers-v2.d.ts +36 -0
  506. package/dist/types/components/advanced/cards/tet-assembler/tet-assembler.d.ts +6 -1
  507. package/dist/types/components/advanced/cards/tet-compare-card-v3/tet-compare-card-v3.d.ts +6 -0
  508. package/dist/types/components/views/tet-address-offers-view-v2/tet-address-offers-view-v2.d.ts +33 -0
  509. package/dist/types/components.d.ts +260 -387
  510. package/dist/types/services/api/services/catalog/service-availability-services.d.ts +1 -0
  511. package/package.json +1 -1
  512. package/dist/cjs/tet-compare-card-v3.cjs.entry.js +0 -681
  513. package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +0 -387
  514. package/dist/cjs/tet-datepicker.cjs.entry.js +0 -132
  515. package/dist/cjs/tet-radio-blocks.cjs.entry.js +0 -83
  516. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.css +0 -455
  517. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.css +0 -382
  518. package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.css +0 -380
  519. package/dist/components/p-B0kUlgkD.js +0 -1
  520. package/dist/components/p-C8u5HEb4.js +0 -1
  521. package/dist/components/p-CAsIFNv3.js +0 -1
  522. package/dist/components/p-CKSiwKh_.js +0 -1
  523. package/dist/components/p-Cdi7KDBd.js +0 -1
  524. package/dist/components/p-Cef0hbKH.js +0 -1
  525. package/dist/components/p-CoQ-OVcl.js +0 -1
  526. package/dist/components/p-CvISLoYA.js +0 -1
  527. package/dist/components/p-D-hVxt6M.js +0 -1
  528. package/dist/components/p-D0GJDW-O.js +0 -1
  529. package/dist/components/p-DUxOWNca.js +0 -1
  530. package/dist/components/tet-datepicker-header.d.ts +0 -11
  531. package/dist/components/tet-datepicker-header.js +0 -1
  532. package/dist/components/tet-datepicker-month-view.d.ts +0 -11
  533. package/dist/components/tet-datepicker-month-view.js +0 -1
  534. package/dist/components/tet-datepicker-multi-year-view.d.ts +0 -11
  535. package/dist/components/tet-datepicker-multi-year-view.js +0 -1
  536. package/dist/components/tet-datepicker-year-view.d.ts +0 -11
  537. package/dist/components/tet-datepicker-year-view.js +0 -1
  538. package/dist/components/tet-datepicker.js +0 -1
  539. package/dist/esm/tet-compare-card-v3.entry.js +0 -679
  540. package/dist/esm/tet-datepicker-header_4.entry.js +0 -382
  541. package/dist/esm/tet-datepicker.entry.js +0 -130
  542. package/dist/esm/tet-radio-blocks.entry.js +0 -81
  543. package/dist/tet-components/p-067e0001.entry.js +0 -1
  544. package/dist/tet-components/p-0c0dec4c.entry.js +0 -1
  545. package/dist/tet-components/p-129027b6.entry.js +0 -1
  546. package/dist/tet-components/p-137a5837.entry.js +0 -1
  547. package/dist/tet-components/p-24058988.entry.js +0 -1
  548. package/dist/tet-components/p-2d285624.entry.js +0 -1
  549. package/dist/tet-components/p-3ae8cca8.entry.js +0 -1
  550. package/dist/tet-components/p-45c896dd.entry.js +0 -1
  551. package/dist/tet-components/p-6bc9b958.entry.js +0 -1
  552. package/dist/tet-components/p-87f4d9b1.entry.js +0 -1
  553. package/dist/tet-components/p-97d1416f.entry.js +0 -1
  554. package/dist/tet-components/p-BGB6gNkz.js +0 -3
  555. package/dist/tet-components/p-Bvqcvhjw.js +0 -1
  556. package/dist/tet-components/p-BzLFf73g.js +0 -1
  557. package/dist/tet-components/p-C1XJmhDH.js +0 -1
  558. package/dist/tet-components/p-D0GJDW-O.js +0 -1
  559. package/dist/tet-components/p-bac0cda3.entry.js +0 -1
  560. package/dist/tet-components/p-d851b8e5.entry.js +0 -1
  561. package/dist/tet-components/p-de6f9fd9.entry.js +0 -1
  562. package/dist/tet-components/p-f1608c27.entry.js +0 -1
  563. package/dist/tet-components/p-fbb45705.entry.js +0 -1
  564. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.d.ts +0 -21
  565. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.d.ts +0 -45
  566. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.d.ts +0 -20
  567. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.d.ts +0 -20
  568. package/dist/types/components/simple/inputs/tet-datepicker/tet-datepicker.d.ts +0 -47
@@ -0,0 +1,870 @@
1
+ import { r as registerInstance, c as createEvent, e as getElement, f as forceUpdate, h, H as Host } from './index-CO8AyGrA.js';
2
+ import { p as processTranslations, t as translate } from './translations-B5QyZ9vI.js';
3
+ import { e as endpoints, A as ApiRequest, c as createSocketConnection, H as HttpCodes } from './http-codes-DZlFuxP5.js';
4
+ import { a as debounceAsync } from './debounce-Cqo8jFLx.js';
5
+ import { n as normalize } from './string-C9BlrGW8.js';
6
+ import { a as a11yBtnClick } from './a11y-0_P3ms4p.js';
7
+ import { R as RequiredValidator } from './required-Cg7SayH7.js';
8
+ import './typecheck-CaZKtSyx.js';
9
+
10
+ /**
11
+ * Returns the addresses that match the given keyword.
12
+ * The API currently limits the number of results to 20 addresses.
13
+ *
14
+ * @param keyword
15
+ */
16
+ const searchAddress = (keyword) => {
17
+ let url;
18
+ try {
19
+ url = new URL(encodeURIComponent(keyword), endpoints.addressSearch).href;
20
+ }
21
+ catch (error) {
22
+ console.error(error);
23
+ return Promise.resolve([]);
24
+ }
25
+ const request = new ApiRequest()
26
+ .setUrl(url)
27
+ .setOptions({
28
+ method: 'GET',
29
+ })
30
+ .setErrorFallbackValue([]);
31
+ return request.execute();
32
+ };
33
+ /**
34
+ * Returns the address that matches the address key.
35
+ *
36
+ * @param addressKey
37
+ */
38
+ const searchAddressByKey = (addressKey) => {
39
+ let url;
40
+ try {
41
+ url = new URL(encodeURIComponent(addressKey), endpoints.address).href;
42
+ }
43
+ catch (error) {
44
+ console.error(error);
45
+ return Promise.resolve({ addressKey: '', fullAddress: '', postalCode: '' });
46
+ }
47
+ const request = new ApiRequest()
48
+ .setUrl(url)
49
+ .setOptions({
50
+ method: 'GET',
51
+ })
52
+ .setErrorFallbackValue({ addressKey: '', fullAddress: '', postalCode: '' });
53
+ return request.execute();
54
+ };
55
+
56
+ const operations = async (operationId) => {
57
+ let url;
58
+ try {
59
+ url = new URL(operationId, endpoints.operations).href;
60
+ }
61
+ catch (error) {
62
+ console.error(error);
63
+ return Promise.reject();
64
+ }
65
+ const request = new ApiRequest()
66
+ .setUrl(url)
67
+ .setOptions({
68
+ method: 'GET',
69
+ })
70
+ .setErrorFallbackValue({});
71
+ const result = request.execute(true);
72
+ return (await result).json();
73
+ };
74
+
75
+ const executeUntil = async (execute, until, { millisecondsToWait = 1000, maxExecutionTries = 10 } = {}) => {
76
+ let result = await execute();
77
+ let tries = maxExecutionTries;
78
+ while (!until(result)) {
79
+ if (--tries <= 0) {
80
+ throw new Error(`Execute Until: maximum tries of ${maxExecutionTries} reached`);
81
+ }
82
+ await wait(millisecondsToWait);
83
+ result = await execute();
84
+ }
85
+ return result;
86
+ };
87
+ const wait = (milliseconds) => {
88
+ return new Promise(resolve => {
89
+ setTimeout(resolve, milliseconds);
90
+ });
91
+ };
92
+
93
+ class AsyncApiRequestError extends Error {
94
+ constructor(error) {
95
+ super(`Async API Error: ${error.message}`);
96
+ }
97
+ }
98
+
99
+ /**
100
+ * Generic class for creating and executing async API requests.
101
+ *
102
+ * The initial sync request sends the required data and receives the value of the operation ID in the response header.
103
+ * The operation ID is used to open a channel for processing this request.
104
+ * Eventually, the channel will emit the final returned and processed data,
105
+ * and the channel (WebSocket) connection will be closed.
106
+ */
107
+ class AsyncApiRequest {
108
+ url;
109
+ options;
110
+ data;
111
+ errorFallbackValue;
112
+ /**
113
+ * The time in milliseconds after which the Websocket connection should be closed if the data is not received.
114
+ */
115
+ socketTimeoutInMilliseconds = 60000;
116
+ maxPollingAttempts = 45;
117
+ dataRetrievalMethod = 'polling';
118
+ defaultOptions = {
119
+ headers: {
120
+ 'Accept': 'application/json',
121
+ 'Content-Type': 'application/json'
122
+ }
123
+ };
124
+ /**
125
+ * The header name of the response operation ID.
126
+ */
127
+ operationIdHeader = 'X-Operation';
128
+ /**
129
+ * The event name of the operation data stream.
130
+ */
131
+ operationEventName = '.operation.status';
132
+ /**
133
+ * Sets the URL.
134
+ *
135
+ * @param url
136
+ */
137
+ setUrl(url) {
138
+ this.url = url;
139
+ return this;
140
+ }
141
+ /**
142
+ * Sets the request options.
143
+ *
144
+ * @param options
145
+ */
146
+ setOptions(options) {
147
+ this.options = options;
148
+ return this;
149
+ }
150
+ /**
151
+ * Sets the request body (data).
152
+ *
153
+ * @param data
154
+ */
155
+ setData(data) {
156
+ this.data = data;
157
+ return this;
158
+ }
159
+ /**
160
+ * Sets the value that will be returned in case of request execution error.
161
+ * The error will be caught and re-thrown if not specified, leaving it up to the implementation to handle it.
162
+ *
163
+ * @param value
164
+ */
165
+ setErrorFallbackValue(value) {
166
+ this.errorFallbackValue = value;
167
+ return this;
168
+ }
169
+ /**
170
+ * Returns the operation ID.
171
+ *
172
+ * @param response
173
+ */
174
+ getOperationId(response) {
175
+ return response.headers.get(this.operationIdHeader) ?? '';
176
+ }
177
+ /**
178
+ * Handles caught error.
179
+ *
180
+ * @param error
181
+ */
182
+ handleError(error) {
183
+ return this.errorFallbackValue
184
+ ? Promise.resolve(this.errorFallbackValue)
185
+ : Promise.reject(new AsyncApiRequestError(error));
186
+ }
187
+ /**
188
+ * Poll operations endpoint until the async request has been completed and the data is available.
189
+ *
190
+ * @param operationId
191
+ */
192
+ async pollOperationsEndpoint(operationId) {
193
+ const checkState = ({ state, reason = 'unknown' }) => {
194
+ if (state === 'failed') {
195
+ throw new Error(`Failed due to "${reason}"`);
196
+ }
197
+ return state === 'completed';
198
+ };
199
+ const result = await executeUntil(() => operations(operationId), checkState, { maxExecutionTries: this.maxPollingAttempts });
200
+ return result.data;
201
+ }
202
+ getDataUsingPolling(operationId) {
203
+ return new Promise(async (resolve, reject) => {
204
+ try {
205
+ resolve(await this.pollOperationsEndpoint(operationId));
206
+ }
207
+ catch (error) {
208
+ reject(new AsyncApiRequestError(error));
209
+ }
210
+ });
211
+ }
212
+ getDataUsingWebSockets(operationId) {
213
+ return new Promise((resolve, reject) => {
214
+ const connection = createSocketConnection();
215
+ const requestTimeout = setTimeout(async () => {
216
+ connection.disconnect();
217
+ reject(new AsyncApiRequestError(new Error(`web socket connection timed out after ${this.socketTimeoutInMilliseconds / 1000} seconds`)));
218
+ }, this.socketTimeoutInMilliseconds);
219
+ connection
220
+ .channel(`operations-${operationId}`)
221
+ .listen(this.operationEventName, (socketResponse) => {
222
+ const { data: { state, data } } = socketResponse;
223
+ if (state === 'completed') {
224
+ clearTimeout(requestTimeout);
225
+ resolve(data);
226
+ connection.disconnect();
227
+ }
228
+ })
229
+ .error((error) => {
230
+ clearTimeout(requestTimeout);
231
+ reject(new AsyncApiRequestError(error));
232
+ });
233
+ });
234
+ }
235
+ /**
236
+ * Returns promise that should resolve to the request data.
237
+ *
238
+ * @param operationId
239
+ */
240
+ createAsyncRequestPromise(operationId) {
241
+ const dataFunction = this.dataRetrievalMethod === 'polling'
242
+ ? this.getDataUsingPolling
243
+ : this.getDataUsingWebSockets;
244
+ return dataFunction.bind(this)(operationId);
245
+ }
246
+ /**
247
+ * Executes the request.
248
+ */
249
+ async execute() {
250
+ // Create the initial sync API request
251
+ // that will return the information about the WebSocket channel to connect to for the response.
252
+ const apiRequest = new ApiRequest()
253
+ .setUrl(this.url)
254
+ .setData(this.data)
255
+ .setOptions({ ...this.defaultOptions, ...this.options });
256
+ let response;
257
+ try {
258
+ response = await apiRequest.execute(true);
259
+ }
260
+ catch (error) {
261
+ return this.handleError(error);
262
+ }
263
+ if (response.status !== HttpCodes.Accepted) {
264
+ return this.handleError(new Error('Request was not accepted.'));
265
+ }
266
+ // Obtain the operation ID to identify the channel socket to listen to for the data.
267
+ const operationId = this.getOperationId(response);
268
+ return this.createAsyncRequestPromise(operationId);
269
+ }
270
+ }
271
+
272
+ const createCallCenterTask = (options) => {
273
+ const url = endpoints.createCallCenterTask;
274
+ const asyncRequest = new AsyncApiRequest()
275
+ .setUrl(url)
276
+ .setData(options)
277
+ .setOptions({ method: 'POST' })
278
+ .setErrorFallbackValue({ TaskId: null });
279
+ return asyncRequest.execute();
280
+ };
281
+
282
+ /**
283
+ * The phone validator class.
284
+ */
285
+ class PhoneNumberValidator {
286
+ errorMessage;
287
+ /**
288
+ * The regex for the phone validation.
289
+ */
290
+ latvianPhoneNumberRegex = '^(((\\+371|00371)[26])|[26])([0-9]{7}$)';
291
+ phoneNumberRegex = '^(?:00|\\+)\\d+$';
292
+ /**
293
+ * Constructor.
294
+ *
295
+ * @param errorMessage
296
+ */
297
+ constructor(errorMessage) {
298
+ this.errorMessage = errorMessage;
299
+ }
300
+ /**
301
+ * Returns validation error message.
302
+ */
303
+ getErrorMessage() {
304
+ return this.errorMessage;
305
+ }
306
+ /**
307
+ * Validation logic.
308
+ *
309
+ * @param value
310
+ */
311
+ validate(value) {
312
+ const validateValue = value.trim();
313
+ // If the phone number begins with either 2, 6, +371, or 00371,
314
+ // we assume that it is a Latvian phone number and validate accordingly.
315
+ if (validateValue.slice(0, 1) === '2' ||
316
+ validateValue.slice(0, 1) === '6' ||
317
+ validateValue.slice(0, 4) === '+371' ||
318
+ validateValue.slice(0, 5) === '00371') {
319
+ return RegExp(this.latvianPhoneNumberRegex).test(validateValue);
320
+ }
321
+ // A generic phone number must begin with either a plus sign or 00.
322
+ return RegExp(this.phoneNumberRegex).test(validateValue);
323
+ }
324
+ }
325
+
326
+ const tetAddressSearchCss = () => `:host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{display:block;--manual-input-option-background-color:var(--tc-background-secondary);--hover-option-background-color:var(--tc-layer-primary);--input-field-icon-color:var(--tc-icon-secondary);--redesigned-address-search-padding-vertical:1rem;--redesigned-address-search-padding-horizontal:0.5rem;--redesigned-address-search-radius:1rem}:host(.address-search--redesigned){--address-search-width:100%;--address-search-height:2.75rem;width:var(--address-search-width);height:var(--address-search-height)}:host(.address-search--redesigned) ::part(autocomplete-options-container){display:none;border:none;position:unset;z-index:auto;box-shadow:none}:host(.address-search--redesigned:not(.keyboard-focus)) ::part(autocomplete-options-container){display:block}:host(.address-search--redesigned:not(.keyboard-focus).active:focus-within) .address-search--redesigned__close-button{display:block}:host(.address-search--redesigned:not(.keyboard-focus):not(.always-expanded).active:focus-within) .address-search--redesigned__autocomplete{position:absolute;top:calc(-1 * var(--redesigned-address-search-padding-vertical));left:calc(-1 * var(--redesigned-address-search-padding-horizontal));border:0.0625rem solid var(--tc-border-quaternary);background-color:var(--tc-layer-primary);border-radius:var(--redesigned-address-search-radius);padding:var(--redesigned-address-search-padding-vertical) var(--redesigned-address-search-padding-horizontal);width:calc(var(--address-search-width) + 2 * var(--redesigned-address-search-padding-horizontal))}:host(.address-search--redesigned:not(.keyboard-focus):not(.always-expanded).active:focus-within) .address-search--redesigned__input:not(.dark){--input-text-color:var(--tc-button-text-black-permanent)}:host(.address-search--redesigned:not(.keyboard-focus):not(.always-expanded).active:focus-within) .address-search--redesigned__input:not(.dark) .icon-left{--input-focus-icon-color:var(--tc-button-icon-black-permanent)}:host(.address-search--redesigned:not(.keyboard-focus):not(.always-expanded).active:focus-within) .address-search--redesigned__input:not(.dark) .icon-right{--input-focus-icon-color:var(--tc-button-icon-black-permanent)}:host(.address-search--redesigned:not(.keyboard-focus):not(.always-expanded).active:focus-within) .address-search--redesigned__autocomplete.dark{border-color:var(--tc-border-quaternary-dark);background-color:var(--tc-layer-primary-dark)}:host(.address-search--redesigned:not(.keyboard-focus):not(.always-expanded).active:focus-within) .address-search--redesigned__input-wrapper{border-bottom:0.0625rem solid var(--tc-border-secondary)}:host(.address-search--redesigned.always-expanded){height:auto;--redesigned-close-button-top:-0.5rem}:host(.address-search--redesigned.always-expanded) .address-search--redesigned__input-wrapper .address-search--redesigned__input:not(.dark){--input-text-color:var(--tc-button-text-black-permanent)}:host(.address-search--redesigned.always-expanded) .address-search--redesigned__input-wrapper .address-search--redesigned__input:not(.dark):focus-within .icon-left{--input-focus-icon-color:var(--tc-button-icon-black-permanent)}:host(.address-search--redesigned.always-expanded) .address-search--redesigned__input-wrapper .address-search--redesigned__input:not(.dark):focus-within .icon-right{--input-focus-icon-color:var(--tc-button-icon-black-permanent)}:host(.address-search--redesigned.always-expanded) .address-search--redesigned__autocomplete{border:0.0625rem solid var(--tc-border-quaternary);background-color:var(--tc-layer-primary);border-radius:var(--redesigned-address-search-radius);padding:var(--redesigned-address-search-padding-vertical) var(--redesigned-address-search-padding-horizontal)}:host(.address-search--redesigned.always-expanded) .address-search--redesigned__autocomplete.dark{border-color:var(--tc-border-quaternary-dark);background-color:var(--tc-layer-primary-dark)}:host(.address-search--redesigned.always-expanded) .address-search--redesigned__input-wrapper:not(.dark){border-bottom:0.0625rem solid var(--tc-border-secondary)}:host(.address-search--redesigned.always-expanded:focus-within) .address-search--redesigned__input-wrapper.dark{border-bottom:0.0625rem solid var(--tc-border-secondary)}:host(.dark){--manual-input-option-background-color:var(--tc-background-secondary-dark);--hover-option-background-color:var(--tc-layer-primary-dark);--input-field-icon-color:var(--tc-icon-secondary-dark)}::part(address-not-found){display:flex;flex-direction:column;gap:0.5em}::part(manual-input-option){position:sticky;bottom:0;background-color:var(--manual-input-option-background-color);margin:0.125rem 0 0 0;border-radius:0;z-index:3}::part(manual-input-option):hover{--option-hover-background-color:var(--hover-option-background-color)}.address-search__input{--input-icon-color:var(--input-field-icon-color)}.address-search__input .icon-left{--input-icon-left-position:0.875rem}.address-search__input--rounded{--input-border-radius:1.375rem;--input-hover-background-color:none}.address-search__input--rounded~.icon-left,.address-search__input--rounded~.icon-right{--icon-size:1.5rem;--input-icon-top-position:0.625rem}.address-search__input--forms{--input-border-radius:0.75rem;--input-padding:0.75rem}.address-search__spinner{position:absolute;right:1rem}.address-search--redesigned__autocomplete{border:0.0625rem solid transparent}.address-search--redesigned__autocomplete-content{position:relative;display:flex;gap:0.75rem}.address-search--redesigned__input-wrapper{width:100%;border-bottom:0.0625rem solid var(--tc-grey-70);margin:0 0 0 0.5rem;display:flex;align-items:center;gap:0.5rem}.address-search--redesigned__button-wrapper{display:flex;align-items:center;margin-left:0.5rem}.address-search--redesigned__button-wrapper .js-button-mobile{width:fit-content;display:block;--button-icon-mode-padding:0.5rem}@media (min-width: 46rem){.address-search--redesigned__button-wrapper .js-button-mobile{display:none}}.address-search--redesigned__button-wrapper .js-button{display:none;--button-padding:0.5rem 0.875rem}@media (min-width: 46rem){.address-search--redesigned__button-wrapper .js-button{display:block}}.address-search--redesigned__input{width:100%;--input-height:var(--address-search-height);--input-text-color:var(--tc-button-text-white-permanent);--input-background-color:transparent;--input-hover-background-color:transparent;--input-border-radius:0;--input-border-color:transparent;--input-focus-border-color:transparent;--input-focus-outline-color:transparent;--input-focus-background-color:transparent}.address-search--redesigned__input .icon-left{--input-icon-left-position:0.25rem;--input-focus-icon-color:var(--tc-button-icon-white-permanent)}.address-search--redesigned__input .icon-right{--input-focus-icon-color:var(--tc-button-icon-white-permanent)}.address-search--redesigned__input-field{--input-border-radius:0.0125rem}.address-search--redesigned__close-button{display:none;position:absolute;right:0;top:var(--redesigned-close-button-top, calc(-0.5rem - var(--redesigned-address-search-padding-vertical)));transform:translateY(-100%);--button-icon-color:var(--tc-button-icon-primary);--button-text-decoration:underline}.address-search--redesigned__close-button:hover{--button-icon-color:var(--color-grey-30)}.address-search--redesigned__close-button ::part(button){backdrop-filter:none;text-decoration:underline;--button-padding:0.5rem 0}`;
327
+
328
+ const TetAddressSearch = class {
329
+ constructor(hostRef) {
330
+ registerInstance(this, hostRef);
331
+ this.addressSelected = createEvent(this, "addressSelected");
332
+ this.clearInputField = createEvent(this, "clearInputField");
333
+ this.manualAddressInput = createEvent(this, "manualAddressInput");
334
+ this.searchSubmitted = createEvent(this, "searchSubmitted");
335
+ }
336
+ /** The reference to the autocomplete element. */
337
+ autocomplete;
338
+ /** The reference to the native input element inside tet-input. */
339
+ nativeInput;
340
+ /** The reference to the tet-input element. */
341
+ inputComponent;
342
+ get searchElement() { return getElement(this); }
343
+ /** Translation language used in the component. */
344
+ language = 'lv';
345
+ onLanguageChanged(language) {
346
+ processTranslations('tet-components', language).then(() => forceUpdate(this));
347
+ }
348
+ /** The minimum length of the keyword before address search functionality is applied. */
349
+ minSearchKeywordLength = 4;
350
+ /** The value of the placeholder. The placeholder will be hidden if set to empty. */
351
+ placeholder = 'Piemēram, Nometņu iela 10 - 5, Salaspils';
352
+ /** The value of the label. The label will be hidden if set to empty. */
353
+ label = '';
354
+ /** The value of the aria label. */
355
+ accessibilityLabel = '';
356
+ /** The address key of the address. Set to preselect an address. */
357
+ addressKey = '';
358
+ async search(newValue) {
359
+ if (!this.nativeInput) {
360
+ return;
361
+ }
362
+ if (newValue) {
363
+ await this.searchByAddressKey();
364
+ }
365
+ else {
366
+ await this.resetInputState();
367
+ }
368
+ }
369
+ /** Toggles the new redesign style. */
370
+ newStyle = false;
371
+ /** Toggles the new forms redesign style. */
372
+ newFormsStyle = false;
373
+ /** Toggles the redesigned style. */
374
+ redesignedStyle = false;
375
+ /** Keeps the redesigned expanded background always visible (without requiring focus). */
376
+ alwaysExpanded = false;
377
+ /** The theme of the component. */
378
+ theme = 'classic';
379
+ /** Determines whether to add the additional elements that will emit the manual address input event on selection. */
380
+ manualAddressTriggers = false;
381
+ /** Keeps track of the input error state. */
382
+ isInputInvalid = false;
383
+ /** The enabled or disabled state of the input. */
384
+ inputDisabled = false;
385
+ /** Determines whether the search keyword is highlighted in option labels. */
386
+ highlightOptionsKeyword = true;
387
+ onInputDisabledStateChange(inputDisabled) {
388
+ inputDisabled ? this.removeIconRight() : this.addClearIcon();
389
+ }
390
+ /** The name for the icon on the right side of the input. */
391
+ inputIconRight = '';
392
+ /** The length of the value of the input. */
393
+ inputValueLength = 0;
394
+ /** Determines if to show the loading spinner. */
395
+ isLoading = false;
396
+ /** State for Tab Keyboard tracking. */
397
+ isKeyboardFocus = true;
398
+ /** State for Keyboard Focus visibility. */
399
+ focusVisible = false;
400
+ /** State for Autocomplete Element active. */
401
+ elementActive = false;
402
+ /** The event that is emitted when the user selects an address via autocomplete. */
403
+ addressSelected;
404
+ /** The event that is emitted when the input field is cleared automatically or by manually deleting the value. */
405
+ clearInputField;
406
+ /** The event that is emitted when the user selects the manual address input option. */
407
+ manualAddressInput;
408
+ /** The event that is emitted when the user clicks the search button. */
409
+ searchSubmitted;
410
+ /** The text for the search button. Defaults to "Parbaudīt". */
411
+ searchButtonText = 'Parbaudīt';
412
+ /** The text for the close button. Defaults to "Aizvert". */
413
+ closeButtonText = 'Aizvert';
414
+ /**
415
+ * - Resets the native input value to an empty string
416
+ * - Resets input value length state
417
+ * - Removes the right hand side icon
418
+ */
419
+ async resetInputState() {
420
+ this.nativeInput.value = '';
421
+ this.inputValueLength = 0;
422
+ this.removeIconRight();
423
+ }
424
+ async componentWillLoad() {
425
+ await processTranslations('tet-components', this.language);
426
+ }
427
+ async componentDidLoad() {
428
+ this.nativeInput = await this.inputComponent?.getInputHtmlElement();
429
+ this.nativeInput?.addEventListener('input', this.toggleInputClearIcon);
430
+ this.nativeInput?.addEventListener('input', this.handleInputTyping);
431
+ this.nativeInput?.addEventListener('input', this.handleInputEmptyState);
432
+ this.nativeInput?.addEventListener('click', this.handleClick);
433
+ this.autocomplete?.addEventListener('activeComponentStateChanged', this.handleActiveStateChange);
434
+ if (this.nativeInput) {
435
+ this.nativeInput.style.whiteSpace = 'nowrap';
436
+ this.nativeInput.style.overflow = 'hidden';
437
+ this.nativeInput.style.textOverflow = 'ellipsis';
438
+ }
439
+ if (this.addressKey) {
440
+ await this.searchByAddressKey();
441
+ }
442
+ }
443
+ disconnectedCallback() {
444
+ this.nativeInput?.removeEventListener('input', this.toggleInputClearIcon);
445
+ this.nativeInput?.removeEventListener('input', this.handleInputTyping);
446
+ this.nativeInput?.removeEventListener('input', this.handleInputEmptyState);
447
+ this.nativeInput?.removeEventListener('click', this.handleClick);
448
+ this.autocomplete?.removeEventListener('activeComponentStateChanged', this.handleActiveStateChange);
449
+ }
450
+ handleClick = () => {
451
+ this.elementActive = true;
452
+ this.focusVisible = false;
453
+ };
454
+ handleInputTyping = (event) => {
455
+ this.elementActive = true;
456
+ if (event?.data) {
457
+ this.focusVisible = false;
458
+ }
459
+ };
460
+ handleActiveStateChange = (event) => {
461
+ this.elementActive = event.detail !== null;
462
+ };
463
+ /**
464
+ * Listen for Tab key event.
465
+ */
466
+ onKeyDown(event) {
467
+ if (event.key === 'Tab' && !this.nativeInput?.value) {
468
+ this.focusVisible = true;
469
+ }
470
+ }
471
+ /**
472
+ * Resets the active state when focus leaves the component entirely.
473
+ */
474
+ onFocusOut(event) {
475
+ if (!this.searchElement.contains(event.relatedTarget)) {
476
+ this.elementActive = false;
477
+ }
478
+ }
479
+ /**
480
+ * Initiates the address search by the address key and sets the value of the input field.
481
+ */
482
+ async searchByAddressKey() {
483
+ const keepInputDisabled = this.inputDisabled;
484
+ this.inputDisabled = true;
485
+ const address = await searchAddressByKey(this.addressKey);
486
+ if (address && address.fullAddress) {
487
+ this.addressSelected.emit(address);
488
+ this.nativeInput.value = address.fullAddress;
489
+ this.inputValueLength = this.nativeInput.value.length;
490
+ if (!keepInputDisabled) {
491
+ this.addClearIcon();
492
+ }
493
+ }
494
+ else {
495
+ this.clearInputAction();
496
+ }
497
+ if (!keepInputDisabled) {
498
+ this.inputDisabled = false;
499
+ }
500
+ }
501
+ /**
502
+ * Clears the autocomplete state when the normalized input value becomes empty.
503
+ *
504
+ * @param event
505
+ */
506
+ handleInputEmptyState = ({ target, inputType }) => {
507
+ const value = normalize(target.value);
508
+ const deleteInputTypes = [
509
+ 'deleteContentBackward',
510
+ 'deleteContentForward',
511
+ 'deleteWordBackward',
512
+ 'deleteWordForward',
513
+ 'deleteByCut',
514
+ 'historyUndo',
515
+ 'historyRedo',
516
+ ];
517
+ if (value.length === 0 && deleteInputTypes.includes(inputType)) {
518
+ this.clearInputAction();
519
+ }
520
+ };
521
+ /**
522
+ * Toggles the icon on the right side of the input based on the current input value.
523
+ *
524
+ * @param event
525
+ */
526
+ toggleInputClearIcon = ({ target }) => {
527
+ const value = normalize(target.value);
528
+ this.inputValueLength = value.length;
529
+ if (this.newStyle && this.inputValueLength >= this.minSearchKeywordLength) {
530
+ this.addLoadIcon();
531
+ this.removeIconRight();
532
+ return;
533
+ }
534
+ if (value && !this.inputIconRight) {
535
+ this.addClearIcon();
536
+ }
537
+ if (!value && this.inputIconRight) {
538
+ this.removeIconRight();
539
+ }
540
+ };
541
+ /**
542
+ * Functionality that is executed when a manual address input trigger element is clicked upon or selected.
543
+ */
544
+ manualAddressInputAction = () => {
545
+ this.manualAddressInput.emit();
546
+ this.clearInputAction();
547
+ };
548
+ /**
549
+ * Filters autocomplete options by the given keyword.
550
+ *
551
+ * @param keyword
552
+ */
553
+ addressFilterFunction = async (keyword) => {
554
+ if (keyword.length < this.minSearchKeywordLength) {
555
+ return Promise.resolve([]);
556
+ }
557
+ const addresses = (await searchAddress(keyword)) ?? [];
558
+ const addressOptions = addresses.map(({ fullAddress, addressKey, postalCode }) => {
559
+ return {
560
+ label: fullAddress,
561
+ value: { addressKey, postalCode },
562
+ };
563
+ });
564
+ if (this.manualAddressTriggers && addressOptions.length > 0) {
565
+ addressOptions.push({
566
+ label: translate('components-address-search-manual-address-input'),
567
+ value: 'manual-input',
568
+ clickCallback: this.manualAddressInputAction,
569
+ ignoreHighlighting: true,
570
+ cssPart: `manual-input-option`
571
+ });
572
+ }
573
+ return addressOptions;
574
+ };
575
+ debounceAddressFilter = debounceAsync(this.addressFilterFunction, 300);
576
+ /**
577
+ * Removes the icon on the right side of the input.
578
+ */
579
+ removeIconRight = () => {
580
+ this.inputIconRight = '';
581
+ };
582
+ /**
583
+ * Executes input "clear" functionality.
584
+ */
585
+ clearInputAction = () => {
586
+ this.autocomplete?.clear();
587
+ };
588
+ /**
589
+ * Functionality to execute after the autocomplete input field has been cleared.
590
+ */
591
+ autocompleteClearInputCallback = () => {
592
+ this.removeIconRight();
593
+ this.inputValueLength = 0;
594
+ this.clearInputField.emit();
595
+ };
596
+ /**
597
+ * Adds the `clear` icon in the input field.
598
+ */
599
+ addClearIcon = () => {
600
+ this.isLoading = false;
601
+ this.inputIconRight = 'tc-close';
602
+ };
603
+ /**
604
+ * Removes the loader icon and adds the clear icon.
605
+ */
606
+ finishedLoading = () => {
607
+ if (this.newStyle) {
608
+ this.removeIconRight();
609
+ if (this.inputValueLength >= 1) {
610
+ this.addClearIcon();
611
+ }
612
+ }
613
+ };
614
+ /**
615
+ * Adds the "load" icon to the input field.
616
+ */
617
+ addLoadIcon = () => {
618
+ this.isLoading = true;
619
+ };
620
+ /**
621
+ * The function that is executed when an autocomplete option is selected.
622
+ *
623
+ * @param event
624
+ */
625
+ handleAutocompleteOptionSelection = (event) => {
626
+ // Convert back to the original API address interface to keep the data structures in sync.
627
+ if (event.detail._originalEvent instanceof PointerEvent) {
628
+ this.addressSelected.emit({
629
+ addressKey: event.detail.value.addressKey,
630
+ fullAddress: event.detail.label,
631
+ postalCode: event.detail.value.postalCode
632
+ });
633
+ this.searchSubmitted.emit(event.detail.label);
634
+ }
635
+ else {
636
+ this.addressSelected.emit({
637
+ addressKey: event.detail.value.addressKey,
638
+ fullAddress: event.detail.label,
639
+ postalCode: event.detail.value.postalCode
640
+ });
641
+ }
642
+ };
643
+ /**
644
+ * Handles the search button click.
645
+ */
646
+ handleSearchSubmit = () => {
647
+ this.searchSubmitted.emit(this.nativeInput?.value);
648
+ };
649
+ /**
650
+ * Handles the redesigned close button click by collapsing the autocomplete overlay.
651
+ */
652
+ handleCloseButtonClick = () => {
653
+ this.focusVisible = false;
654
+ this.elementActive = false;
655
+ this.autocomplete?.dispatchEvent(new CustomEvent('activeComponentStateChanged', {
656
+ detail: null,
657
+ bubbles: true,
658
+ composed: true
659
+ }));
660
+ };
661
+ /**
662
+ * Renders the content that is shown when there are no matching addresses.
663
+ */
664
+ renderManualAddressInputNoOptionsMessage = () => {
665
+ return (h("div", { part: "address-not-found" }, h("p", null, translate('components-address-search-not-found-message')), h("p", { part: `manual-input ${this.theme}` }, h("a", { onClick: this.manualAddressInputAction, onKeyDown: a11yBtnClick, class: { 'tet-link': true, 'dark': this.theme === 'dark' }, tabindex: "0", role: "button" }, translate('components-address-search-manual-address-input')))));
666
+ };
667
+ render() {
668
+ const inputClasses = ['autocomplete-input'];
669
+ if (this.redesignedStyle) {
670
+ inputClasses.push('address-search--redesigned__input-field');
671
+ }
672
+ if (this.newStyle) {
673
+ inputClasses.push('address-search__input--rounded');
674
+ }
675
+ if (this.newFormsStyle) {
676
+ inputClasses.push('address-search__input--forms');
677
+ }
678
+ const isDarkContainerTheme = this.theme === 'dark' || this.theme === 'mint-original';
679
+ const submitButtonTheme = isDarkContainerTheme ? 'dark' : 'light';
680
+ const isButtonActive = (this.elementActive && !this.focusVisible) || this.alwaysExpanded;
681
+ const submitButtonColor = isButtonActive ? undefined : 'var(--tc-grey-80)';
682
+ const submitButtonColorTheme = (isButtonActive && isDarkContainerTheme && this.alwaysExpanded)
683
+ ? 'adaptive-yellow'
684
+ : undefined;
685
+ return (h(Host, { key: '658b2bbf379148493a49a086acbda1d3fc5ec79c', class: {
686
+ "address-search": true,
687
+ "address-search--redesigned": this.redesignedStyle,
688
+ "always-expanded": this.alwaysExpanded,
689
+ "keyboard-focus": this.focusVisible,
690
+ "active": this.elementActive,
691
+ [this.theme]: true,
692
+ } }, h("tet-autocomplete", { key: '9c4dd12245069dfb1fc2ed229c89e043e2a09dce', class: `address-search--redesigned__autocomplete
693
+ ${isDarkContainerTheme ? 'dark' : ''}
694
+ `, part: "autocomplete", optionsFilterAction: this.debounceAddressFilter, onOptionSelected: this.handleAutocompleteOptionSelection, noOptionsMessage: translate('components-address-search-not-found-message'), noOptionsRenderFunction: this.manualAddressTriggers ? this.renderManualAddressInputNoOptionsMessage : undefined, clearCallback: this.autocompleteClearInputCallback, finishedLoading: this.finishedLoading, darkTheme: isDarkContainerTheme, newStyle: this.newStyle, ref: (el) => (this.autocomplete = el), optionsIcon: "location", redesignedStyle: this.redesignedStyle, highlightOptionsKeyword: this.highlightOptionsKeyword }, this.redesignedStyle ? (h("div", { class: "address-search--redesigned__autocomplete-content" }, h("div", { class: `address-search--redesigned__input-wrapper
695
+ ${isDarkContainerTheme ? 'dark' : ''}` }, h("tet-input", { class: `address-search__input address-search--redesigned__input
696
+ ${isDarkContainerTheme ? 'dark' : ''}`, part: "input", "input-class": inputClasses.join(' '), "input-placeholder": this.placeholder, "input-disabled": this.inputDisabled, label: this.label, accessibilityLabel: this.accessibilityLabel, iconLeft: this.newFormsStyle ? '' : 'tc-search-short', iconRight: this.inputIconRight, iconRightClickCallback: this.clearInputAction, ref: (el) => (this.inputComponent = el), error: this.isInputInvalid, autocomplete: "off" }, this.isLoading &&
697
+ h("tet-spinner", { theme: isDarkContainerTheme ? 'dark' : 'light', class: "address-search__spinner", size: "small" }))), h("div", { class: `address-search--redesigned__button-wrapper
698
+ ${isDarkContainerTheme ? 'dark' : ''}` }, h("tet-button", { class: "submit-address js-button-mobile button-icon", type: "primary", theme: submitButtonTheme, colorTheme: submitButtonColorTheme, customColorCode: submitButtonColor, "accessibility-label": translate('components-address-search-search'), iconName: "tc-arrow-right", iconMode: true, onClick: this.handleSearchSubmit }), h("tet-button", { class: "submit-address button js-button", type: "primary", size: "medium", theme: submitButtonTheme, colorTheme: submitButtonColorTheme, customColorCode: submitButtonColor, onClick: this.handleSearchSubmit }, this.searchButtonText)))) : (h("tet-input", { class: "address-search__input", part: "input", "input-class": inputClasses.join(' '), "input-placeholder": this.placeholder, "input-disabled": this.inputDisabled, label: this.label, accessibilityLabel: this.accessibilityLabel, iconLeft: this.newFormsStyle ? '' : 'search', iconRight: this.inputIconRight, iconRightClickCallback: this.clearInputAction, theme: this.theme, ref: (el) => (this.inputComponent = el), error: this.isInputInvalid, autocomplete: "off" }, this.isLoading &&
699
+ h("tet-spinner", { theme: this.theme === 'dark' ? 'dark' : 'light', class: "address-search__spinner", size: "small" })))), this.redesignedStyle && (h("div", { key: 'dd631a0b03e688f5f741b8b6af23372b8c0931d2', class: "address-search--redesigned__close-button" }, h("tet-button", { key: '302229327ca4fbcb1de710a0bbe880a6cc1840be', type: "link", iconName: "tc-close", theme: "dark", onMouseDown: (event) => event.preventDefault(), onClick: this.handleCloseButtonClick }, this.closeButtonText)))));
700
+ }
701
+ static get watchers() { return {
702
+ "language": [{
703
+ "onLanguageChanged": 0
704
+ }],
705
+ "addressKey": [{
706
+ "search": 0
707
+ }],
708
+ "inputDisabled": [{
709
+ "onInputDisabledStateChange": 0
710
+ }]
711
+ }; }
712
+ };
713
+ TetAddressSearch.style = tetAddressSearchCss();
714
+
715
+ const tetAvailabilityContactFormCss = () => `: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{--contact-form-container-background:initial;--contact-form-text-color:var(--color-ta600);--contact-form-loader-overlay-background:rgb(255, 255, 255);max-width:37.5rem;margin:0 auto;display:block}.dark-theme{--contact-form-container-background:var(--color-tg500);--contact-form-text-color:rgb(255, 255, 255);--contact-form-loader-overlay-background:var(--color-tg600)}.container{--border-radius:0.625rem;--box-shadow:0 0 0 0.03125rem rgba(5, 29, 89, 0.07), 0 0.1875rem 0.5625rem rgba(5, 29, 89, 0.15);--padding:2.5em 1em;--background:var(--contact-form-container-background)}.form-container{max-width:26em;display:flex;flex-direction:column;margin:0 auto;text-align:center}.form-container .icon-error{--icon-color:rgb(233, 69, 54)}.form-container .icon-success{--icon-color:rgb(22, 197, 95)}.form-container .form-input{--input-border-radius:0.625rem}.form-container-close{margin-top:2.5rem;margin-bottom:4rem;margin-left:auto;margin-right:auto}.form-container-close span{min-width:11.375rem;width:100%}.form-title{margin-bottom:0.5em;margin-top:1.5rem;font:600 2.5rem/3rem "Gilroy", "Gilroy, Arial, sans-serif";color:rgb(10, 11, 13)}.form-subtitle{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";color:rgb(67, 75, 86)}.form-input{margin-top:2em;text-align:left}.form-submit{width:fit-content;margin-top:1.5em;--button-font-size:1rem}@media only screen and (max-width: 44.9375rem){.form-submit{--button-width:100%}}.loader-overlay{position:absolute;top:0;bottom:0;left:0;right:0;background:var(--contact-form-loader-overlay-background);z-index:100;opacity:0.75}.loader-overlay .loader{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}`;
716
+
717
+ const TetAvailabilityContactForm = class {
718
+ constructor(hostRef) {
719
+ registerInstance(this, hostRef);
720
+ this.taskCreationSuccess = createEvent(this, "taskCreationSuccess");
721
+ this.taskCreationFailed = createEvent(this, "taskCreationFailed");
722
+ }
723
+ /** The input component. */
724
+ phoneInput;
725
+ /** The dialog component. */
726
+ dialogElement;
727
+ /** The list of validators to apply to the input field. */
728
+ validators = [
729
+ new PhoneNumberValidator('components-validation-incorrect-phone'),
730
+ new RequiredValidator('components-validation-required')
731
+ ];
732
+ /** The prop that determines whether to show the loader. */
733
+ showLoader = false;
734
+ /** The translation language code for the component. */
735
+ language = 'lv';
736
+ /**
737
+ * The watch to update translations.
738
+ * @param language
739
+ */
740
+ onLanguageChange(language) {
741
+ processTranslations('tet-components', language).then(() => forceUpdate(this));
742
+ }
743
+ /** The task creation parameters. */
744
+ taskOptions;
745
+ /** The props for the submit button. */
746
+ submitButtonProps = {};
747
+ /** The prop to determine whether to show or hide title text. */
748
+ showTitle = true;
749
+ /** The prop to determine whether to show or hide input label text. */
750
+ showInputLabel = false;
751
+ /** The theme of the input field. */
752
+ theme = 'classic';
753
+ /** The property that determines the color of the component theme. */
754
+ darkTheme = false;
755
+ /** The prop that determines if the form was submitted successfully. */
756
+ success = false;
757
+ /** The prop that determines if the form should be opened. */
758
+ showAvailabilityContactForm = false;
759
+ /**
760
+ * The contact form subtitle. Can provide any translation key from `tet-components` translation group.
761
+ * Otherwise, provide already translated text.
762
+ */
763
+ subtitle = 'components-contact-form-subtitle';
764
+ /** The event emitted if the task creation was successful. */
765
+ taskCreationSuccess;
766
+ /** The event emitted if the task creation failed. */
767
+ taskCreationFailed;
768
+ /**
769
+ * Listen for task creation success event.
770
+ * @param event
771
+ */
772
+ onSuccess(event) {
773
+ if (event) {
774
+ this.success = true;
775
+ }
776
+ }
777
+ /**
778
+ * Listen for empty catalog to open contact form dialog.
779
+ */
780
+ onEmptyCatalog() {
781
+ this.openDialogElement();
782
+ }
783
+ /**
784
+ * Lifecycle method.
785
+ */
786
+ async componentWillLoad() {
787
+ await processTranslations('tet-components', this.language);
788
+ forceUpdate(this);
789
+ }
790
+ /**
791
+ * Method to close dialog element.
792
+ */
793
+ closeDialogElement = async () => {
794
+ await this.dialogElement.close();
795
+ };
796
+ /**
797
+ * Method to open dialog element.
798
+ */
799
+ openDialogElement = async () => {
800
+ await this.dialogElement.open();
801
+ };
802
+ /**
803
+ * Method to create task for call center.
804
+ */
805
+ createManualTask = async () => {
806
+ this.showLoader = true;
807
+ const phoneInputElement = await this.phoneInput.getInputHtmlElement();
808
+ const errors = await this.phoneInput.validateInput();
809
+ if (errors.length) {
810
+ this.showLoader = false;
811
+ return;
812
+ }
813
+ try {
814
+ const data = await createCallCenterTask(this.getTaskOptions(phoneInputElement.value));
815
+ if (data && data.TaskId) {
816
+ this.taskCreationSuccess.emit(data.TaskId);
817
+ }
818
+ else {
819
+ this.taskCreationFailed.emit();
820
+ }
821
+ }
822
+ catch (error) {
823
+ this.taskCreationFailed.emit(error);
824
+ }
825
+ this.showLoader = false;
826
+ };
827
+ /**
828
+ * Appends the submitted phone number to the task description and returns the options.
829
+ *
830
+ * @param phoneNumber
831
+ */
832
+ getTaskOptions(phoneNumber) {
833
+ const { taskDescription } = this.taskOptions;
834
+ return {
835
+ ...this.taskOptions,
836
+ taskDescription: [taskDescription.trim(), `Phone: ${phoneNumber}`].join(' ')
837
+ };
838
+ }
839
+ ;
840
+ /**
841
+ * Renders the loader.
842
+ */
843
+ renderLoader() {
844
+ return (h("div", { class: "loader-overlay" }, h("tet-loader", { class: "loader" })));
845
+ }
846
+ ;
847
+ /**
848
+ * Render contact form.
849
+ */
850
+ renderForm() {
851
+ return (h("div", null, h("tet-dialog", { ref: (element) => this.dialogElement = element, "footer-display": "between", "is-open": this.showAvailabilityContactForm, closeOnEscape: false, closeOnOverlayClick: false }, this.showLoader && this.renderLoader(), h("div", { class: "form-container" }, h("tet-icon", { name: "info-help-md", class: "icon icon-error icon-size" }), this.showTitle && h("h2", { class: "form-title" }, translate('components-availability-contact-form-title')), h("p", { class: "form-subtitle" }, translate('components-availability-contact-form-subtitle')), h("tet-input", { class: "form-input", "input-value": "+371", placeholder: "+37122345678", ref: (element) => this.phoneInput = element ? element : this.phoneInput, validators: this.validators, label: this.showInputLabel ? translate('components-availability-contact-form-input-label') : null, theme: this.darkTheme ? 'dark' : 'classic' })), h("tet-button", { clickCallback: this.closeDialogElement, slot: "footer", size: "medium", type: "secondary", theme: "light" }, translate('components-availability-contact-form-cancel')), h("tet-button", { slot: "footer", clickCallback: this.createManualTask, size: "medium", theme: "light" }, translate('components-availability-contact-form-send')))));
852
+ }
853
+ /**
854
+ * Render contact form success step.
855
+ */
856
+ renderSuccessStep() {
857
+ return (h("div", null, h("tet-dialog", { ref: (element) => this.dialogElement = element, "footer-display": "hidden", "is-open": this.showAvailabilityContactForm, closeOnEscape: true, closeOnOverlayClick: true }, h("div", { class: "form-container" }, h("tet-icon", { name: "confirm-md", class: "icon icon-success icon-size" }), this.showTitle && h("h2", { class: "form-title" }, translate('components-availability-contact-form-success-title')), h("p", { class: "form-subtitle" }, translate('components-availability-contact-form-success-subtitle')), h("tet-button", { class: "form-container-close", clickCallback: this.closeDialogElement, size: "medium", type: "primary", theme: "light" }, h("span", null, translate('components-availability-contact-form-success-close')))))));
858
+ }
859
+ render() {
860
+ return (h("div", { key: 'e1ee0332e7e3c41d82227f0ec043a8201b1a892e', class: { 'dark-theme': this.darkTheme } }, this.success ? this.renderSuccessStep() : this.renderForm()));
861
+ }
862
+ static get watchers() { return {
863
+ "language": [{
864
+ "onLanguageChange": 0
865
+ }]
866
+ }; }
867
+ };
868
+ TetAvailabilityContactForm.style = tetAvailabilityContactFormCss();
869
+
870
+ export { TetAddressSearch as tet_address_search, TetAvailabilityContactForm as tet_availability_contact_form };