@tet/tet-components 1.4.156-testing → 1.4.157-staging

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 (539) hide show
  1. package/dist/cjs/{http-codes-D7ffzpYW.js → http-codes-Dr-iFaJ9.js} +1 -1
  2. package/dist/cjs/{index-Dzs7Nkbj.js → index-BEOR8cIU.js} +1 -1
  3. package/dist/cjs/{index-BL_zVDFC.js → index-DRNSo5RU.js} +29 -25
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{product-comparison-DUzqZuWv.js → product-comparison-_8BsEWy8.js} +1 -1
  6. package/dist/cjs/service-availability-services-BrSBAYBy.js +19 -0
  7. package/dist/cjs/tet-accordion.cjs.entry.js +7 -7
  8. package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +3 -3
  9. package/dist/cjs/tet-address-offers-v2.cjs.entry.js +332 -0
  10. package/dist/cjs/tet-address-offers-view-v2.cjs.entry.js +81 -0
  11. package/dist/cjs/tet-address-offers-view.cjs.entry.js +4 -4
  12. package/dist/cjs/{tet-address-offers_5.cjs.entry.js → tet-address-offers_3.cjs.entry.js} +7 -886
  13. package/dist/cjs/tet-address-search_2.cjs.entry.js +873 -0
  14. package/dist/cjs/{tet-assembler.cjs.entry.js → tet-assembler_3.cjs.entry.js} +826 -12
  15. package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +2 -2
  16. package/dist/cjs/tet-autocomplete_2.cjs.entry.js +4 -4
  17. package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +16 -16
  18. package/dist/cjs/tet-b2b-configurator.cjs.entry.js +5 -5
  19. package/dist/cjs/tet-banner-nav.cjs.entry.js +3 -3
  20. package/dist/cjs/tet-bar-graph.cjs.entry.js +4 -4
  21. package/dist/cjs/tet-border-radius.cjs.entry.js +2 -2
  22. package/dist/cjs/tet-business-card.cjs.entry.js +3 -3
  23. package/dist/cjs/tet-business-compare-card.cjs.entry.js +3 -3
  24. package/dist/cjs/tet-business-round-stepper.cjs.entry.js +2 -2
  25. package/dist/cjs/tet-button.cjs.entry.js +2 -2
  26. package/dist/cjs/tet-card-list.cjs.entry.js +5 -5
  27. package/dist/cjs/tet-carousel.cjs.entry.js +9 -9
  28. package/dist/cjs/tet-checkbox_3.cjs.entry.js +9 -9
  29. package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +5 -5
  30. package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
  31. package/dist/cjs/tet-colors.cjs.entry.js +5 -5
  32. package/dist/cjs/tet-compare-card-v2.cjs.entry.js +4 -4
  33. package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
  34. package/dist/cjs/tet-compare-cards_2.cjs.entry.js +5 -5
  35. package/dist/cjs/tet-components.cjs.js +2 -2
  36. package/dist/cjs/tet-container_2.cjs.entry.js +2 -2
  37. package/dist/cjs/tet-countdown.cjs.entry.js +2 -2
  38. package/dist/cjs/tet-counter.cjs.entry.js +1 -1
  39. package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +6 -6
  40. package/dist/cjs/tet-datepicker.cjs.entry.js +5 -5
  41. package/dist/cjs/tet-dialog.cjs.entry.js +3 -3
  42. package/dist/cjs/tet-display.cjs.entry.js +1 -1
  43. package/dist/cjs/tet-divider.cjs.entry.js +1 -1
  44. package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
  45. package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
  46. package/dist/cjs/tet-expansion-panel.cjs.entry.js +2 -2
  47. package/dist/cjs/tet-feedback-form.cjs.entry.js +3 -3
  48. package/dist/cjs/tet-filter.cjs.entry.js +1 -1
  49. package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
  50. package/dist/cjs/tet-font-weight.cjs.entry.js +2 -2
  51. package/dist/cjs/tet-fonts.cjs.entry.js +2 -2
  52. package/dist/cjs/tet-grid.cjs.entry.js +2 -2
  53. package/dist/cjs/tet-icon.cjs.entry.js +2 -2
  54. package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
  55. package/dist/cjs/tet-input.cjs.entry.js +3 -3
  56. package/dist/cjs/tet-layout.cjs.entry.js +2 -2
  57. package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
  58. package/dist/cjs/tet-link.cjs.entry.js +2 -2
  59. package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
  60. package/dist/cjs/tet-menu.cjs.entry.js +1 -1
  61. package/dist/cjs/tet-mini-compare-card.cjs.entry.js +1 -1
  62. package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +4 -4
  63. package/dist/cjs/tet-navigation-mobile.cjs.entry.js +6 -6
  64. package/dist/cjs/tet-news-card-list.cjs.entry.js +2 -2
  65. package/dist/cjs/tet-news-card.cjs.entry.js +2 -2
  66. package/dist/cjs/tet-notification.cjs.entry.js +2 -2
  67. package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
  68. package/dist/cjs/tet-paginator.cjs.entry.js +4 -4
  69. package/dist/cjs/tet-placeholder.cjs.entry.js +2 -2
  70. package/dist/cjs/tet-position.cjs.entry.js +1 -1
  71. package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
  72. package/dist/cjs/tet-radio_2.cjs.entry.js +3 -3
  73. package/dist/cjs/tet-range-slider.cjs.entry.js +8 -8
  74. package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
  75. package/dist/cjs/tet-snicker-card-group.cjs.entry.js +1 -1
  76. package/dist/cjs/tet-snicker-card.cjs.entry.js +3 -3
  77. package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
  78. package/dist/cjs/tet-spinner.cjs.entry.js +4 -4
  79. package/dist/cjs/tet-stepper-input.cjs.entry.js +4 -4
  80. package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
  81. package/dist/cjs/tet-sticky-offer.cjs.entry.js +2 -2
  82. package/dist/cjs/tet-support-search.cjs.entry.js +1 -1
  83. package/dist/cjs/tet-switch.cjs.entry.js +1 -1
  84. package/dist/cjs/tet-table.cjs.entry.js +1 -1
  85. package/dist/cjs/tet-tag_2.cjs.entry.js +5 -5
  86. package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
  87. package/dist/cjs/tet-text.cjs.entry.js +1 -1
  88. package/dist/cjs/tet-textarea.cjs.entry.js +3 -3
  89. package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
  90. package/dist/cjs/tet-tv-program-channel-picker_2.cjs.entry.js +4 -4
  91. package/dist/cjs/tet-tv-program.cjs.entry.js +2 -2
  92. package/dist/cjs/{translations-Uvcq4kv8.js → translations-Dgrvj2-A.js} +1 -1
  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/advanced/address/tet-address-offers-v2/tet-address-offers-v2.css +490 -0
  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/views/tet-address-offers-view-v2/tet-address-offers-view-v2.css +437 -0
  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-Dhe7PE-h.js → p-691KdfVY.js} +1 -1
  164. package/dist/components/{p-CHVoAVzT.js → p-8YF-jbNA.js} +1 -1
  165. package/dist/components/{p-d31bvRM6.js → p-91Ll0GBG.js} +1 -1
  166. package/dist/components/{p-B5y1yfI4.js → p-AHi9LSd5.js} +1 -1
  167. package/dist/components/{p-w1igWoTx.js → p-B6uXKLU6.js} +1 -1
  168. package/dist/components/{p-Mpe-2CVQ.js → p-BBNq_Obn.js} +1 -1
  169. package/dist/components/{p-C8u5HEb4.js → p-BD9uhxTR.js} +1 -1
  170. package/dist/components/{p-B0kUlgkD.js → p-BGmsN27z.js} +1 -1
  171. package/dist/components/{p-t_FgKIcd.js → p-BKIzl46N.js} +1 -1
  172. package/dist/components/p-BOOGS_3p.js +1 -0
  173. package/dist/components/{p-CMxcvnRv.js → p-BSySZotX.js} +1 -1
  174. package/dist/components/{p-DN2JwXg9.js → p-BcXV5sQw.js} +1 -1
  175. package/dist/components/{p-CKSiwKh_.js → p-BddlkM7c.js} +1 -1
  176. package/dist/components/p-BjJ9uxR2.js +1 -0
  177. package/dist/components/{p-Ckf6mMEf.js → p-BnWYy3OA.js} +1 -1
  178. package/dist/components/{p-Cqjpl-r4.js → p-BsxHRbVe.js} +1 -1
  179. package/dist/components/{p-CjbC3Ym3.js → p-BxGEX-NV.js} +1 -1
  180. package/dist/components/{p-Dke4zCyb.js → p-CDnMhipi.js} +1 -1
  181. package/dist/components/{p-CQBhFzqI.js → p-CFyjcGK7.js} +1 -1
  182. package/dist/components/{p-BdN4p8Qa.js → p-CIhxkUQ3.js} +1 -1
  183. package/dist/components/{p-B5Dk5hzj.js → p-CLWLTBE0.js} +1 -1
  184. package/dist/components/{p-1E6motPj.js → p-CQP4NAut.js} +1 -1
  185. package/dist/components/{p-tMXV3IB5.js → p-CSSVrXY7.js} +1 -1
  186. package/dist/components/{p-DcRCMBBc.js → p-CUvZcrkM.js} +1 -1
  187. package/dist/components/{p-BUyuNqM6.js → p-CVthBaQt.js} +1 -1
  188. package/dist/components/{p-CxypAmpV.js → p-CWvxBD7Z.js} +1 -1
  189. package/dist/components/{p-lEX8wezw.js → p-CXP2jsSO.js} +1 -1
  190. package/dist/components/{p-C4uKGuRj.js → p-C_hP1fqX.js} +1 -1
  191. package/dist/components/{p-Bw-D7nPx.js → p-CaHY4mtM.js} +1 -1
  192. package/dist/components/{p-CAsIFNv3.js → p-CbATbM7u.js} +1 -1
  193. package/dist/components/{p-CNhW7KE6.js → p-CzKZgXtQ.js} +1 -1
  194. package/dist/components/p-D-AO09Mc.js +1 -0
  195. package/dist/components/{p-CV0h6H20.js → p-D1J0qdmW.js} +1 -1
  196. package/dist/components/p-D4lyA-NJ.js +1 -0
  197. package/dist/components/{p-C61jDpta.js → p-D5J-pubV.js} +1 -1
  198. package/dist/components/{p-BztqMLE1.js → p-DD5q1beS.js} +1 -1
  199. package/dist/components/{p-BpfMADD6.js → p-DEasZUte.js} +1 -1
  200. package/dist/components/{p-B8YPfVrH.js → p-DGK8g6IK.js} +1 -1
  201. package/dist/components/{p-Cdi7KDBd.js → p-DIyhqSTP.js} +1 -1
  202. package/dist/components/{p-C0RZDFyg.js → p-DJpICBt8.js} +1 -1
  203. package/dist/components/{p-Bc4oqt_L.js → p-DQHzO7M-.js} +1 -1
  204. package/dist/components/{p-Ba5cZk_W.js → p-DQYLFTYo.js} +1 -1
  205. package/dist/components/{p-CJnk1Plz.js → p-DSO2W8wX.js} +1 -1
  206. package/dist/components/{p-C5khLmO4.js → p-DVLlr-o4.js} +1 -1
  207. package/dist/components/{p-B9bE6qY-.js → p-DZ6ri3Ez.js} +1 -1
  208. package/dist/components/{p-euiyLrT6.js → p-Dataaxzl.js} +1 -1
  209. package/dist/components/{p-Dmu5eHbY.js → p-Dbg3ATML.js} +1 -1
  210. package/dist/components/{p-BKqEPSBf.js → p-DkO2yTmt.js} +1 -1
  211. package/dist/components/{p-Cmi0CN7v.js → p-Dm-BCBLJ.js} +1 -1
  212. package/dist/components/{p-20AXKDtg.js → p-DsSTOiNy.js} +1 -1
  213. package/dist/components/{p-CnVl55e4.js → p-DyY_BOZd.js} +1 -1
  214. package/dist/components/{p-BUZAWbGM.js → p-EkgyB9Ie.js} +1 -1
  215. package/dist/components/{p-DUxOWNca.js → p-QycD5lxs.js} +1 -1
  216. package/dist/components/{p-Bsqoxd9G.js → p-WvkszOBK.js} +1 -1
  217. package/dist/{tet-components/p-ad8622a2.entry.js → components/p-dBAcfL7x.js} +1 -1
  218. package/dist/components/{p-D-hVxt6M.js → p-dCT7Ej5X.js} +1 -1
  219. package/dist/components/{p-Br4jWI9B.js → p-dg7EpwKx.js} +1 -1
  220. package/dist/components/{p-DKZxpjnL.js → p-lNLcpuEl.js} +1 -1
  221. package/dist/components/tet-accordion.js +1 -1
  222. package/dist/components/tet-address-offers-filters-products.js +1 -1
  223. package/dist/components/tet-address-offers-filters.js +1 -1
  224. package/dist/components/tet-address-offers-v2.d.ts +11 -0
  225. package/dist/components/tet-address-offers-v2.js +1 -0
  226. package/dist/components/tet-address-offers-view-v2.d.ts +11 -0
  227. package/dist/components/tet-address-offers-view-v2.js +1 -0
  228. package/dist/components/tet-address-offers-view.js +1 -1
  229. package/dist/components/tet-address-offers.js +1 -1
  230. package/dist/components/tet-address-search.js +1 -1
  231. package/dist/components/tet-assembler.js +1 -1
  232. package/dist/components/tet-asset-availability-addresses.js +1 -1
  233. package/dist/components/tet-autocomplete-dropdown.js +1 -1
  234. package/dist/components/tet-autocomplete.js +1 -1
  235. package/dist/components/tet-availability-contact-form.js +1 -1
  236. package/dist/components/tet-b2b-check-out-form.js +1 -1
  237. package/dist/components/tet-b2b-compare-card.js +1 -1
  238. package/dist/components/tet-b2b-configurator-cart.js +1 -1
  239. package/dist/components/tet-b2b-configurator.js +1 -1
  240. package/dist/components/tet-banner-nav.js +1 -1
  241. package/dist/components/tet-bar-graph.js +1 -1
  242. package/dist/components/tet-border-radius.js +1 -1
  243. package/dist/components/tet-business-card.js +1 -1
  244. package/dist/components/tet-business-compare-card.js +1 -1
  245. package/dist/components/tet-business-navigation.js +1 -1
  246. package/dist/components/tet-business-round-stepper.js +1 -1
  247. package/dist/components/tet-business-summary-card.js +1 -1
  248. package/dist/components/tet-button.js +1 -1
  249. package/dist/components/tet-card-list.js +1 -1
  250. package/dist/components/tet-carousel.js +1 -1
  251. package/dist/components/tet-checkbox.js +1 -1
  252. package/dist/components/tet-cloud-application-form-dialog.js +1 -1
  253. package/dist/components/tet-cloud-configurator.js +1 -1
  254. package/dist/components/tet-colors.js +1 -1
  255. package/dist/components/tet-compare-card-v2.js +1 -1
  256. package/dist/components/tet-compare-card-v3.js +1 -1
  257. package/dist/components/tet-compare-card.js +1 -1
  258. package/dist/components/tet-compare-cards-tab.js +1 -1
  259. package/dist/components/tet-compare-cards.js +1 -1
  260. package/dist/components/tet-container.js +1 -1
  261. package/dist/components/tet-countdown.js +1 -1
  262. package/dist/components/tet-counter.js +1 -1
  263. package/dist/components/tet-datepicker-header.js +1 -1
  264. package/dist/components/tet-datepicker-month-view.js +1 -1
  265. package/dist/components/tet-datepicker-multi-year-view.js +1 -1
  266. package/dist/components/tet-datepicker-year-view.js +1 -1
  267. package/dist/components/tet-datepicker.js +1 -1
  268. package/dist/components/tet-dialog.js +1 -1
  269. package/dist/components/tet-display.js +1 -1
  270. package/dist/components/tet-divider.js +1 -1
  271. package/dist/components/tet-dropdown.js +1 -1
  272. package/dist/components/tet-dynamic-card.js +1 -1
  273. package/dist/components/tet-expandable-input.js +1 -1
  274. package/dist/components/tet-expansion-panel.js +1 -1
  275. package/dist/components/tet-feedback-form.js +1 -1
  276. package/dist/components/tet-filter.js +1 -1
  277. package/dist/components/tet-floating-block.js +1 -1
  278. package/dist/components/tet-font-weight.js +1 -1
  279. package/dist/components/tet-fonts.js +1 -1
  280. package/dist/components/tet-grid.js +1 -1
  281. package/dist/components/tet-icon.js +1 -1
  282. package/dist/components/tet-inline-message.js +1 -1
  283. package/dist/components/tet-input.js +1 -1
  284. package/dist/components/tet-layout.js +1 -1
  285. package/dist/components/tet-link-card-list.js +1 -1
  286. package/dist/components/tet-link.js +1 -1
  287. package/dist/components/tet-loader.js +1 -1
  288. package/dist/components/tet-menu-mobile.js +1 -1
  289. package/dist/components/tet-menu.js +1 -1
  290. package/dist/components/tet-mini-compare-card.js +1 -1
  291. package/dist/components/tet-multi-step-dialog.js +1 -1
  292. package/dist/components/tet-navigation-mobile.js +1 -1
  293. package/dist/components/tet-news-card-list.js +1 -1
  294. package/dist/components/tet-news-card.js +1 -1
  295. package/dist/components/tet-notification.js +1 -1
  296. package/dist/components/tet-number-input.js +1 -1
  297. package/dist/components/tet-paginator.js +1 -1
  298. package/dist/components/tet-placeholder.js +1 -1
  299. package/dist/components/tet-position.js +1 -1
  300. package/dist/components/tet-price-view.js +1 -1
  301. package/dist/components/tet-radio-blocks.js +1 -1
  302. package/dist/components/tet-radio.js +1 -1
  303. package/dist/components/tet-range-slider.js +1 -1
  304. package/dist/components/tet-round-stepper.js +1 -1
  305. package/dist/components/tet-selection-list.js +1 -1
  306. package/dist/components/tet-snicker-card-group.js +1 -1
  307. package/dist/components/tet-snicker-card.js +1 -1
  308. package/dist/components/tet-spacing.js +1 -1
  309. package/dist/components/tet-spinner.js +1 -1
  310. package/dist/components/tet-stepper-input.js +1 -1
  311. package/dist/components/tet-stepper-v3.js +1 -1
  312. package/dist/components/tet-sticky-offer.js +1 -1
  313. package/dist/components/tet-support-search.js +1 -1
  314. package/dist/components/tet-switch.js +1 -1
  315. package/dist/components/tet-tab-content.js +1 -1
  316. package/dist/components/tet-tab-header.js +1 -1
  317. package/dist/components/tet-table.js +1 -1
  318. package/dist/components/tet-tag-group.js +1 -1
  319. package/dist/components/tet-tag.js +1 -1
  320. package/dist/components/tet-text-list.js +1 -1
  321. package/dist/components/tet-text.js +1 -1
  322. package/dist/components/tet-textarea.js +1 -1
  323. package/dist/components/tet-thank-you-view-v3.js +1 -1
  324. package/dist/components/tet-tooltip.js +1 -1
  325. package/dist/components/tet-tv-program-channel-picker.js +1 -1
  326. package/dist/components/tet-tv-program-date-picker.js +1 -1
  327. package/dist/components/tet-tv-program.js +1 -1
  328. package/dist/esm/{http-codes-BQGPgOl6.js → http-codes-BDGry0lr.js} +1 -1
  329. package/dist/esm/{index-BGB6gNkz.js → index-BlxQHXlF.js} +30 -26
  330. package/dist/esm/{index-DScZlZas.js → index-Cl1zJLqR.js} +1 -1
  331. package/dist/esm/loader.js +3 -3
  332. package/dist/esm/{product-comparison-DUVV7BFR.js → product-comparison-D_NpnveD.js} +1 -1
  333. package/dist/esm/service-availability-services-De2k_Sd_.js +17 -0
  334. package/dist/esm/tet-accordion.entry.js +7 -7
  335. package/dist/esm/tet-address-offers-filters-products_2.entry.js +3 -3
  336. package/dist/esm/tet-address-offers-v2.entry.js +330 -0
  337. package/dist/esm/tet-address-offers-view-v2.entry.js +79 -0
  338. package/dist/esm/tet-address-offers-view.entry.js +4 -4
  339. package/dist/esm/{tet-address-offers_5.entry.js → tet-address-offers_3.entry.js} +7 -884
  340. package/dist/esm/tet-address-search_2.entry.js +870 -0
  341. package/dist/esm/{tet-assembler.entry.js → tet-assembler_3.entry.js} +825 -13
  342. package/dist/esm/tet-autocomplete-dropdown.entry.js +2 -2
  343. package/dist/esm/tet-autocomplete_2.entry.js +4 -4
  344. package/dist/esm/tet-b2b-check-out-form_5.entry.js +16 -16
  345. package/dist/esm/tet-b2b-configurator.entry.js +5 -5
  346. package/dist/esm/tet-banner-nav.entry.js +3 -3
  347. package/dist/esm/tet-bar-graph.entry.js +4 -4
  348. package/dist/esm/tet-border-radius.entry.js +2 -2
  349. package/dist/esm/tet-business-card.entry.js +3 -3
  350. package/dist/esm/tet-business-compare-card.entry.js +3 -3
  351. package/dist/esm/tet-business-round-stepper.entry.js +2 -2
  352. package/dist/esm/tet-button.entry.js +2 -2
  353. package/dist/esm/tet-card-list.entry.js +5 -5
  354. package/dist/esm/tet-carousel.entry.js +9 -9
  355. package/dist/esm/tet-checkbox_3.entry.js +9 -9
  356. package/dist/esm/tet-cloud-application-form-dialog.entry.js +5 -5
  357. package/dist/esm/tet-cloud-configurator.entry.js +3 -3
  358. package/dist/esm/tet-colors.entry.js +5 -5
  359. package/dist/esm/tet-compare-card-v2.entry.js +4 -4
  360. package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
  361. package/dist/esm/tet-compare-cards_2.entry.js +5 -5
  362. package/dist/esm/tet-components.js +3 -3
  363. package/dist/esm/tet-container_2.entry.js +2 -2
  364. package/dist/esm/tet-countdown.entry.js +2 -2
  365. package/dist/esm/tet-counter.entry.js +1 -1
  366. package/dist/esm/tet-datepicker-header_4.entry.js +6 -6
  367. package/dist/esm/tet-datepicker.entry.js +5 -5
  368. package/dist/esm/tet-dialog.entry.js +3 -3
  369. package/dist/esm/tet-display.entry.js +1 -1
  370. package/dist/esm/tet-divider.entry.js +1 -1
  371. package/dist/esm/tet-dynamic-card.entry.js +1 -1
  372. package/dist/esm/tet-expandable-input.entry.js +1 -1
  373. package/dist/esm/tet-expansion-panel.entry.js +2 -2
  374. package/dist/esm/tet-feedback-form.entry.js +3 -3
  375. package/dist/esm/tet-filter.entry.js +1 -1
  376. package/dist/esm/tet-floating-block.entry.js +1 -1
  377. package/dist/esm/tet-font-weight.entry.js +2 -2
  378. package/dist/esm/tet-fonts.entry.js +2 -2
  379. package/dist/esm/tet-grid.entry.js +2 -2
  380. package/dist/esm/tet-icon.entry.js +2 -2
  381. package/dist/esm/tet-inline-message.entry.js +1 -1
  382. package/dist/esm/tet-input.entry.js +3 -3
  383. package/dist/esm/tet-layout.entry.js +2 -2
  384. package/dist/esm/tet-link-card-list.entry.js +1 -1
  385. package/dist/esm/tet-link.entry.js +2 -2
  386. package/dist/esm/tet-menu-mobile.entry.js +1 -1
  387. package/dist/esm/tet-menu.entry.js +1 -1
  388. package/dist/esm/tet-mini-compare-card.entry.js +1 -1
  389. package/dist/esm/tet-multi-step-dialog.entry.js +4 -4
  390. package/dist/esm/tet-navigation-mobile.entry.js +6 -6
  391. package/dist/esm/tet-news-card-list.entry.js +2 -2
  392. package/dist/esm/tet-news-card.entry.js +2 -2
  393. package/dist/esm/tet-notification.entry.js +2 -2
  394. package/dist/esm/tet-number-input.entry.js +1 -1
  395. package/dist/esm/tet-paginator.entry.js +4 -4
  396. package/dist/esm/tet-placeholder.entry.js +2 -2
  397. package/dist/esm/tet-position.entry.js +1 -1
  398. package/dist/esm/tet-price-view.entry.js +1 -1
  399. package/dist/esm/tet-radio_2.entry.js +3 -3
  400. package/dist/esm/tet-range-slider.entry.js +8 -8
  401. package/dist/esm/tet-round-stepper.entry.js +1 -1
  402. package/dist/esm/tet-snicker-card-group.entry.js +1 -1
  403. package/dist/esm/tet-snicker-card.entry.js +3 -3
  404. package/dist/esm/tet-spacing.entry.js +2 -2
  405. package/dist/esm/tet-spinner.entry.js +4 -4
  406. package/dist/esm/tet-stepper-input.entry.js +4 -4
  407. package/dist/esm/tet-stepper-v3.entry.js +1 -1
  408. package/dist/esm/tet-sticky-offer.entry.js +2 -2
  409. package/dist/esm/tet-support-search.entry.js +1 -1
  410. package/dist/esm/tet-switch.entry.js +1 -1
  411. package/dist/esm/tet-table.entry.js +1 -1
  412. package/dist/esm/tet-tag_2.entry.js +5 -5
  413. package/dist/esm/tet-text-list.entry.js +1 -1
  414. package/dist/esm/tet-text.entry.js +1 -1
  415. package/dist/esm/tet-textarea.entry.js +3 -3
  416. package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
  417. package/dist/esm/tet-tv-program-channel-picker_2.entry.js +4 -4
  418. package/dist/esm/tet-tv-program.entry.js +2 -2
  419. package/dist/esm/{translations-Dc2OQnbI.js → translations-DVFIbjgN.js} +1 -1
  420. package/dist/tet-components/assets/banner.webp +0 -0
  421. package/dist/tet-components/p-08a8a768.entry.js +1 -0
  422. package/dist/tet-components/{p-2c84bff1.entry.js → p-090b1ee9.entry.js} +1 -1
  423. package/dist/tet-components/{p-49ba40a1.entry.js → p-0a7869f1.entry.js} +1 -1
  424. package/dist/tet-components/{p-4a39f6bc.entry.js → p-0bc383b2.entry.js} +1 -1
  425. package/dist/tet-components/p-11aca305.entry.js +1 -0
  426. package/dist/tet-components/{p-954dc5fa.entry.js → p-11b3e4f9.entry.js} +1 -1
  427. package/dist/tet-components/{p-c97d7c52.entry.js → p-14fe8c03.entry.js} +1 -1
  428. package/dist/tet-components/{p-94b2efaa.entry.js → p-165bc6cf.entry.js} +1 -1
  429. package/dist/tet-components/{p-c9c4656e.entry.js → p-18c6bad0.entry.js} +1 -1
  430. package/dist/tet-components/{p-01577a41.entry.js → p-248957cf.entry.js} +1 -1
  431. package/dist/tet-components/{p-97d1416f.entry.js → p-27086bf0.entry.js} +1 -1
  432. package/dist/tet-components/p-2cb2c564.entry.js +1 -0
  433. package/dist/tet-components/{p-9d103705.entry.js → p-2e1b2b08.entry.js} +1 -1
  434. package/dist/tet-components/{p-0cb2775f.entry.js → p-2eebc066.entry.js} +1 -1
  435. package/dist/tet-components/{p-c2d6ac75.entry.js → p-2eee7043.entry.js} +1 -1
  436. package/dist/tet-components/{p-41763924.entry.js → p-2ff74667.entry.js} +1 -1
  437. package/dist/tet-components/p-35228f86.entry.js +1 -0
  438. package/dist/tet-components/p-377e7876.entry.js +1 -0
  439. package/dist/tet-components/{p-1b29e5f2.entry.js → p-394504cc.entry.js} +1 -1
  440. package/dist/tet-components/{p-cd7efc99.entry.js → p-3b54b5d2.entry.js} +1 -1
  441. package/dist/tet-components/{p-d8a0eaaa.entry.js → p-3fc55c76.entry.js} +1 -1
  442. package/dist/tet-components/{p-72b23f6a.entry.js → p-4763922a.entry.js} +1 -1
  443. package/dist/tet-components/{p-784dd089.entry.js → p-499fec6a.entry.js} +1 -1
  444. package/dist/tet-components/{p-830e4fe6.entry.js → p-4b2be8e5.entry.js} +1 -1
  445. package/dist/tet-components/{p-41ef37c5.entry.js → p-4c43129a.entry.js} +1 -1
  446. package/dist/tet-components/{p-79be83b2.entry.js → p-5007830a.entry.js} +1 -1
  447. package/dist/tet-components/{p-16199435.entry.js → p-5063f11e.entry.js} +1 -1
  448. package/dist/tet-components/{p-952b6065.entry.js → p-50761303.entry.js} +1 -1
  449. package/dist/tet-components/p-50d8189c.entry.js +1 -0
  450. package/dist/tet-components/{p-38459b69.entry.js → p-52a679f8.entry.js} +1 -1
  451. package/dist/tet-components/{p-386be2d5.entry.js → p-549fc480.entry.js} +1 -1
  452. package/dist/tet-components/{p-a32ada3d.entry.js → p-5b99b044.entry.js} +1 -1
  453. package/dist/tet-components/p-5dd112f4.entry.js +1 -0
  454. package/dist/tet-components/{p-3005a902.entry.js → p-5f302894.entry.js} +1 -1
  455. package/dist/tet-components/p-635374b3.entry.js +1 -0
  456. package/dist/tet-components/{p-45c01709.entry.js → p-645519ea.entry.js} +1 -1
  457. package/dist/tet-components/p-689936ff.entry.js +1 -0
  458. package/dist/tet-components/{p-b3acb430.entry.js → p-6a39e30f.entry.js} +1 -1
  459. package/dist/tet-components/{p-40503431.entry.js → p-6e0c03c0.entry.js} +1 -1
  460. package/dist/tet-components/{p-39a59573.entry.js → p-74b5d1c0.entry.js} +1 -1
  461. package/dist/tet-components/p-759af8a9.entry.js +1 -0
  462. package/dist/tet-components/{p-2d36b8a7.entry.js → p-77146932.entry.js} +1 -1
  463. package/dist/tet-components/{p-17d3a7ff.entry.js → p-7eac9541.entry.js} +1 -1
  464. package/dist/tet-components/{p-e0752dc6.entry.js → p-8259d30f.entry.js} +1 -1
  465. package/dist/tet-components/{p-e3e02e3b.entry.js → p-880ebb36.entry.js} +1 -1
  466. package/dist/tet-components/p-95a94e29.entry.js +1 -0
  467. package/dist/tet-components/p-9929600f.entry.js +1 -0
  468. package/dist/tet-components/{p-7338bab9.entry.js → p-9bc901e4.entry.js} +1 -1
  469. package/dist/tet-components/{p-ad0b78d5.entry.js → p-9dd85372.entry.js} +1 -1
  470. package/dist/tet-components/{p-BGB6gNkz.js → p-BlxQHXlF.js} +2 -2
  471. package/dist/tet-components/p-BrtoXU00.js +1 -0
  472. package/dist/tet-components/{p-DbJll7nz.js → p-GktrEySe.js} +1 -1
  473. package/dist/tet-components/{p-C1XJmhDH.js → p-XUBYGpT5.js} +1 -1
  474. package/dist/tet-components/{p-d62eecdb.entry.js → p-a0d81b70.entry.js} +1 -1
  475. package/dist/tet-components/{p-fd71a027.entry.js → p-a1d04d02.entry.js} +1 -1
  476. package/dist/tet-components/{p-632d382c.entry.js → p-a1e75f54.entry.js} +1 -1
  477. package/dist/tet-components/{p-e7e18cc4.entry.js → p-aa0626f1.entry.js} +1 -1
  478. package/dist/tet-components/{p-0996dd5a.entry.js → p-adabdd88.entry.js} +1 -1
  479. package/dist/tet-components/{p-cc3e87fe.entry.js → p-ae834f09.entry.js} +1 -1
  480. package/dist/tet-components/{p-37c3f4c6.entry.js → p-af2bed0c.entry.js} +1 -1
  481. package/dist/tet-components/{p-74ccd606.entry.js → p-b0c44c21.entry.js} +1 -1
  482. package/dist/tet-components/{p-9cee887f.entry.js → p-b36bd5ee.entry.js} +1 -1
  483. package/dist/tet-components/p-b70c478e.entry.js +1 -0
  484. package/dist/tet-components/{p-3bb8e0ec.entry.js → p-b7a1a1a9.entry.js} +1 -1
  485. package/dist/tet-components/{p-8310d42d.entry.js → p-b8c728a3.entry.js} +1 -1
  486. package/dist/tet-components/{p-368fb50a.entry.js → p-bbcdcecd.entry.js} +1 -1
  487. package/dist/tet-components/{p-9beb88d9.entry.js → p-be5e5d8d.entry.js} +1 -1
  488. package/dist/tet-components/{p-6a8f5935.entry.js → p-bfc1d731.entry.js} +1 -1
  489. package/dist/tet-components/{p-6d7c406e.entry.js → p-c6266e47.entry.js} +1 -1
  490. package/dist/tet-components/{p-87f4d9b1.entry.js → p-ccf33e7b.entry.js} +1 -1
  491. package/dist/tet-components/{p-c96c5b96.entry.js → p-d19565db.entry.js} +1 -1
  492. package/dist/tet-components/{p-4b92e8e6.entry.js → p-d5212455.entry.js} +1 -1
  493. package/dist/tet-components/{p-380c13f1.entry.js → p-d64dff1a.entry.js} +1 -1
  494. package/dist/tet-components/{p-11ed5b55.entry.js → p-d770c106.entry.js} +1 -1
  495. package/dist/tet-components/{p-e2d4e5c3.entry.js → p-d94f8fc5.entry.js} +1 -1
  496. package/dist/tet-components/{p-3af65955.entry.js → p-ddcaa280.entry.js} +1 -1
  497. package/dist/tet-components/p-e18ede1e.entry.js +1 -0
  498. package/dist/tet-components/{p-7ae4195d.entry.js → p-e69fd542.entry.js} +1 -1
  499. package/dist/tet-components/{p-ee45806d.entry.js → p-e75c50dc.entry.js} +1 -1
  500. package/dist/tet-components/{p-185e98b4.entry.js → p-ef89dc8a.entry.js} +1 -1
  501. package/dist/tet-components/{p-5a14b088.entry.js → p-f08fcf31.entry.js} +1 -1
  502. package/dist/tet-components/{p-a037e4df.entry.js → p-f353f91b.entry.js} +1 -1
  503. package/dist/tet-components/{p-a560fec1.entry.js → p-f378220c.entry.js} +1 -1
  504. package/dist/tet-components/p-f4f375cb.entry.js +1 -0
  505. package/dist/tet-components/{p-66287f28.entry.js → p-f5c18fbe.entry.js} +1 -1
  506. package/dist/tet-components/{p-be07df58.entry.js → p-f8a871ff.entry.js} +1 -1
  507. package/dist/tet-components/p-feaedfea.entry.js +1 -0
  508. package/dist/tet-components/{p-299c7600.entry.js → p-ffa64231.entry.js} +1 -1
  509. package/dist/tet-components/p-h7hmtU44.js +1 -0
  510. package/dist/tet-components/{p-DX1IQAn5.js → p-qSX0mu28.js} +1 -1
  511. package/dist/tet-components/tet-components.esm.js +1 -1
  512. package/dist/types/components/advanced/address/tet-address-offers-v2/address-offers-v2.model.d.ts +55 -0
  513. package/dist/types/components/advanced/address/tet-address-offers-v2/tet-address-offers-v2.d.ts +36 -0
  514. package/dist/types/components/advanced/cards/tet-assembler/tet-assembler.d.ts +6 -1
  515. package/dist/types/components/advanced/cards/tet-compare-card-v3/tet-compare-card-v3.d.ts +6 -0
  516. package/dist/types/components/views/tet-address-offers-view-v2/tet-address-offers-view-v2.d.ts +33 -0
  517. package/dist/types/components.d.ts +260 -4
  518. package/dist/types/services/api/services/catalog/service-availability-services.d.ts +1 -0
  519. package/package.json +1 -1
  520. package/dist/cjs/tet-compare-card-v3.cjs.entry.js +0 -681
  521. package/dist/cjs/tet-radio-blocks.cjs.entry.js +0 -83
  522. package/dist/components/p-CvISLoYA.js +0 -1
  523. package/dist/esm/tet-compare-card-v3.entry.js +0 -679
  524. package/dist/esm/tet-radio-blocks.entry.js +0 -81
  525. package/dist/tet-components/p-067e0001.entry.js +0 -1
  526. package/dist/tet-components/p-0c0dec4c.entry.js +0 -1
  527. package/dist/tet-components/p-129027b6.entry.js +0 -1
  528. package/dist/tet-components/p-137a5837.entry.js +0 -1
  529. package/dist/tet-components/p-24058988.entry.js +0 -1
  530. package/dist/tet-components/p-2d285624.entry.js +0 -1
  531. package/dist/tet-components/p-3ae8cca8.entry.js +0 -1
  532. package/dist/tet-components/p-45c896dd.entry.js +0 -1
  533. package/dist/tet-components/p-6bc9b958.entry.js +0 -1
  534. package/dist/tet-components/p-BzLFf73g.js +0 -1
  535. package/dist/tet-components/p-bac0cda3.entry.js +0 -1
  536. package/dist/tet-components/p-d851b8e5.entry.js +0 -1
  537. package/dist/tet-components/p-de6f9fd9.entry.js +0 -1
  538. package/dist/tet-components/p-f1608c27.entry.js +0 -1
  539. package/dist/tet-components/p-fbb45705.entry.js +0 -1
@@ -1,61 +1,12 @@
1
- import { r as registerInstance, c as createEvent, d as getElement, f as forceUpdate, h, H as Host } from './index-BGB6gNkz.js';
2
- import { c as createStore } from './index-DScZlZas.js';
3
- import { e as endpoints, A as ApiRequest, c as createSocketConnection, H as HttpCodes } from './http-codes-BQGPgOl6.js';
4
- import { t as translate, p as processTranslations } from './translations-Dc2OQnbI.js';
1
+ import { r as registerInstance, c as createEvent, e as getElement, f as forceUpdate, h, H as Host } from './index-BlxQHXlF.js';
2
+ import { c as createStore } from './index-Cl1zJLqR.js';
3
+ import { s as serviceAvailabilityServices } from './service-availability-services-De2k_Sd_.js';
4
+ import { t as translate, p as processTranslations } from './translations-DVFIbjgN.js';
5
5
  import { g as generateFormUrl } from './build-form-url-BjOGAbQL.js';
6
6
  import { f as formatPrice } from './price-B_N3UuP2.js';
7
- import { a as debounceAsync } from './debounce-Cqo8jFLx.js';
8
- import { n as normalize } from './string-D0GJDW-O.js';
9
- import { a as a11yBtnClick } from './a11y-0_P3ms4p.js';
10
- import { R as RequiredValidator } from './required-Cg7SayH7.js';
7
+ import { e as endpoints, A as ApiRequest } from './http-codes-BDGry0lr.js';
11
8
  import './typecheck-Bvqcvhjw.js';
12
9
 
13
- /**
14
- * Returns the addresses that match the given keyword.
15
- * The API currently limits the number of results to 20 addresses.
16
- *
17
- * @param keyword
18
- */
19
- const searchAddress = (keyword) => {
20
- let url;
21
- try {
22
- url = new URL(encodeURIComponent(keyword), endpoints.addressSearch).href;
23
- }
24
- catch (error) {
25
- console.error(error);
26
- return Promise.resolve([]);
27
- }
28
- const request = new ApiRequest()
29
- .setUrl(url)
30
- .setOptions({
31
- method: 'GET',
32
- })
33
- .setErrorFallbackValue([]);
34
- return request.execute();
35
- };
36
- /**
37
- * Returns the address that matches the address key.
38
- *
39
- * @param addressKey
40
- */
41
- const searchAddressByKey = (addressKey) => {
42
- let url;
43
- try {
44
- url = new URL(encodeURIComponent(addressKey), endpoints.address).href;
45
- }
46
- catch (error) {
47
- console.error(error);
48
- return Promise.resolve({ addressKey: '', fullAddress: '', postalCode: '' });
49
- }
50
- const request = new ApiRequest()
51
- .setUrl(url)
52
- .setOptions({
53
- method: 'GET',
54
- })
55
- .setErrorFallbackValue({ addressKey: '', fullAddress: '', postalCode: '' });
56
- return request.execute();
57
- };
58
-
59
10
  /**
60
11
  * Returns customer information.
61
12
  *
@@ -110,232 +61,6 @@ const customerAssets = (salesforceAccountId, accessToken) => {
110
61
  return request.execute();
111
62
  };
112
63
 
113
- const operations = async (operationId) => {
114
- let url;
115
- try {
116
- url = new URL(operationId, endpoints.operations).href;
117
- }
118
- catch (error) {
119
- console.error(error);
120
- return Promise.reject();
121
- }
122
- const request = new ApiRequest()
123
- .setUrl(url)
124
- .setOptions({
125
- method: 'GET',
126
- })
127
- .setErrorFallbackValue({});
128
- const result = request.execute(true);
129
- return (await result).json();
130
- };
131
-
132
- const executeUntil = async (execute, until, { millisecondsToWait = 1000, maxExecutionTries = 10 } = {}) => {
133
- let result = await execute();
134
- let tries = maxExecutionTries;
135
- while (!until(result)) {
136
- if (--tries <= 0) {
137
- throw new Error(`Execute Until: maximum tries of ${maxExecutionTries} reached`);
138
- }
139
- await wait(millisecondsToWait);
140
- result = await execute();
141
- }
142
- return result;
143
- };
144
- const wait = (milliseconds) => {
145
- return new Promise(resolve => {
146
- setTimeout(resolve, milliseconds);
147
- });
148
- };
149
-
150
- class AsyncApiRequestError extends Error {
151
- constructor(error) {
152
- super(`Async API Error: ${error.message}`);
153
- }
154
- }
155
-
156
- /**
157
- * Generic class for creating and executing async API requests.
158
- *
159
- * The initial sync request sends the required data and receives the value of the operation ID in the response header.
160
- * The operation ID is used to open a channel for processing this request.
161
- * Eventually, the channel will emit the final returned and processed data,
162
- * and the channel (WebSocket) connection will be closed.
163
- */
164
- class AsyncApiRequest {
165
- url;
166
- options;
167
- data;
168
- errorFallbackValue;
169
- /**
170
- * The time in milliseconds after which the Websocket connection should be closed if the data is not received.
171
- */
172
- socketTimeoutInMilliseconds = 60000;
173
- maxPollingAttempts = 45;
174
- dataRetrievalMethod = 'polling';
175
- defaultOptions = {
176
- headers: {
177
- 'Accept': 'application/json',
178
- 'Content-Type': 'application/json'
179
- }
180
- };
181
- /**
182
- * The header name of the response operation ID.
183
- */
184
- operationIdHeader = 'X-Operation';
185
- /**
186
- * The event name of the operation data stream.
187
- */
188
- operationEventName = '.operation.status';
189
- /**
190
- * Sets the URL.
191
- *
192
- * @param url
193
- */
194
- setUrl(url) {
195
- this.url = url;
196
- return this;
197
- }
198
- /**
199
- * Sets the request options.
200
- *
201
- * @param options
202
- */
203
- setOptions(options) {
204
- this.options = options;
205
- return this;
206
- }
207
- /**
208
- * Sets the request body (data).
209
- *
210
- * @param data
211
- */
212
- setData(data) {
213
- this.data = data;
214
- return this;
215
- }
216
- /**
217
- * Sets the value that will be returned in case of request execution error.
218
- * The error will be caught and re-thrown if not specified, leaving it up to the implementation to handle it.
219
- *
220
- * @param value
221
- */
222
- setErrorFallbackValue(value) {
223
- this.errorFallbackValue = value;
224
- return this;
225
- }
226
- /**
227
- * Returns the operation ID.
228
- *
229
- * @param response
230
- */
231
- getOperationId(response) {
232
- return response.headers.get(this.operationIdHeader) ?? '';
233
- }
234
- /**
235
- * Handles caught error.
236
- *
237
- * @param error
238
- */
239
- handleError(error) {
240
- return this.errorFallbackValue
241
- ? Promise.resolve(this.errorFallbackValue)
242
- : Promise.reject(new AsyncApiRequestError(error));
243
- }
244
- /**
245
- * Poll operations endpoint until the async request has been completed and the data is available.
246
- *
247
- * @param operationId
248
- */
249
- async pollOperationsEndpoint(operationId) {
250
- const checkState = ({ state, reason = 'unknown' }) => {
251
- if (state === 'failed') {
252
- throw new Error(`Failed due to "${reason}"`);
253
- }
254
- return state === 'completed';
255
- };
256
- const result = await executeUntil(() => operations(operationId), checkState, { maxExecutionTries: this.maxPollingAttempts });
257
- return result.data;
258
- }
259
- getDataUsingPolling(operationId) {
260
- return new Promise(async (resolve, reject) => {
261
- try {
262
- resolve(await this.pollOperationsEndpoint(operationId));
263
- }
264
- catch (error) {
265
- reject(new AsyncApiRequestError(error));
266
- }
267
- });
268
- }
269
- getDataUsingWebSockets(operationId) {
270
- return new Promise((resolve, reject) => {
271
- const connection = createSocketConnection();
272
- const requestTimeout = setTimeout(async () => {
273
- connection.disconnect();
274
- reject(new AsyncApiRequestError(new Error(`web socket connection timed out after ${this.socketTimeoutInMilliseconds / 1000} seconds`)));
275
- }, this.socketTimeoutInMilliseconds);
276
- connection
277
- .channel(`operations-${operationId}`)
278
- .listen(this.operationEventName, (socketResponse) => {
279
- const { data: { state, data } } = socketResponse;
280
- if (state === 'completed') {
281
- clearTimeout(requestTimeout);
282
- resolve(data);
283
- connection.disconnect();
284
- }
285
- })
286
- .error((error) => {
287
- clearTimeout(requestTimeout);
288
- reject(new AsyncApiRequestError(error));
289
- });
290
- });
291
- }
292
- /**
293
- * Returns promise that should resolve to the request data.
294
- *
295
- * @param operationId
296
- */
297
- createAsyncRequestPromise(operationId) {
298
- const dataFunction = this.dataRetrievalMethod === 'polling'
299
- ? this.getDataUsingPolling
300
- : this.getDataUsingWebSockets;
301
- return dataFunction.bind(this)(operationId);
302
- }
303
- /**
304
- * Executes the request.
305
- */
306
- async execute() {
307
- // Create the initial sync API request
308
- // that will return the information about the WebSocket channel to connect to for the response.
309
- const apiRequest = new ApiRequest()
310
- .setUrl(this.url)
311
- .setData(this.data)
312
- .setOptions({ ...this.defaultOptions, ...this.options });
313
- let response;
314
- try {
315
- response = await apiRequest.execute(true);
316
- }
317
- catch (error) {
318
- return this.handleError(error);
319
- }
320
- if (response.status !== HttpCodes.Accepted) {
321
- return this.handleError(new Error('Request was not accepted.'));
322
- }
323
- // Obtain the operation ID to identify the channel socket to listen to for the data.
324
- const operationId = this.getOperationId(response);
325
- return this.createAsyncRequestPromise(operationId);
326
- }
327
- }
328
-
329
- const createCallCenterTask = (options) => {
330
- const url = endpoints.createCallCenterTask;
331
- const asyncRequest = new AsyncApiRequest()
332
- .setUrl(url)
333
- .setData(options)
334
- .setOptions({ method: 'POST' })
335
- .setErrorFallbackValue({ TaskId: null });
336
- return asyncRequest.execute();
337
- };
338
-
339
64
  class AddressOffersFilters {
340
65
  onFilterSelect;
341
66
  availableFilters = [];
@@ -516,20 +241,6 @@ var ContractTerm;
516
241
  ContractTerm[ContractTerm["Indefinite"] = 0] = "Indefinite";
517
242
  })(ContractTerm || (ContractTerm = {}));
518
243
 
519
- /**
520
- * Returns the available services at the given address.
521
- *
522
- * @param addressKey
523
- */
524
- const serviceAvailabilityServices = (addressKey) => {
525
- const url = endpoints.serviceAvailabilityServices;
526
- const request = new ApiRequest()
527
- .setUrl(url + '?addressKey=' + addressKey)
528
- .setOptions({ method: 'GET' })
529
- .setErrorFallbackValue([]);
530
- return request.execute();
531
- };
532
-
533
244
  const descriptions = [
534
245
  ['isNetflixMaxDisneyProduct', 'components-netflix-max-disney-card-description'],
535
246
  ['isNetflixDisneyProduct', 'components-netflix-disney-card-description'],
@@ -1055,395 +766,6 @@ const TetAddressOffersFilters = class {
1055
766
  };
1056
767
  TetAddressOffersFilters.style = tetAddressOffersFiltersCss();
1057
768
 
1058
- 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}`;
1059
-
1060
- const TetAddressSearch = class {
1061
- constructor(hostRef) {
1062
- registerInstance(this, hostRef);
1063
- this.addressSelected = createEvent(this, "addressSelected");
1064
- this.clearInputField = createEvent(this, "clearInputField");
1065
- this.manualAddressInput = createEvent(this, "manualAddressInput");
1066
- this.searchSubmitted = createEvent(this, "searchSubmitted");
1067
- }
1068
- /** The reference to the autocomplete element. */
1069
- autocomplete;
1070
- /** The reference to the native input element inside tet-input. */
1071
- nativeInput;
1072
- /** The reference to the tet-input element. */
1073
- inputComponent;
1074
- get searchElement() { return getElement(this); }
1075
- /** Translation language used in the component. */
1076
- language = 'lv';
1077
- onLanguageChanged(language) {
1078
- processTranslations('tet-components', language).then(() => forceUpdate(this));
1079
- }
1080
- /** The minimum length of the keyword before address search functionality is applied. */
1081
- minSearchKeywordLength = 4;
1082
- /** The value of the placeholder. The placeholder will be hidden if set to empty. */
1083
- placeholder = 'Piemēram, Nometņu iela 10 - 5, Salaspils';
1084
- /** The value of the label. The label will be hidden if set to empty. */
1085
- label = '';
1086
- /** The value of the aria label. */
1087
- accessibilityLabel = '';
1088
- /** The address key of the address. Set to preselect an address. */
1089
- addressKey = '';
1090
- async search(newValue) {
1091
- if (!this.nativeInput) {
1092
- return;
1093
- }
1094
- if (newValue) {
1095
- await this.searchByAddressKey();
1096
- }
1097
- else {
1098
- await this.resetInputState();
1099
- }
1100
- }
1101
- /** Toggles the new redesign style. */
1102
- newStyle = false;
1103
- /** Toggles the new forms redesign style. */
1104
- newFormsStyle = false;
1105
- /** Toggles the redesigned style. */
1106
- redesignedStyle = false;
1107
- /** Keeps the redesigned expanded background always visible (without requiring focus). */
1108
- alwaysExpanded = false;
1109
- /** The theme of the component. */
1110
- theme = 'classic';
1111
- /** Determines whether to add the additional elements that will emit the manual address input event on selection. */
1112
- manualAddressTriggers = false;
1113
- /** Keeps track of the input error state. */
1114
- isInputInvalid = false;
1115
- /** The enabled or disabled state of the input. */
1116
- inputDisabled = false;
1117
- /** Determines whether the search keyword is highlighted in option labels. */
1118
- highlightOptionsKeyword = true;
1119
- onInputDisabledStateChange(inputDisabled) {
1120
- inputDisabled ? this.removeIconRight() : this.addClearIcon();
1121
- }
1122
- /** The name for the icon on the right side of the input. */
1123
- inputIconRight = '';
1124
- /** The length of the value of the input. */
1125
- inputValueLength = 0;
1126
- /** Determines if to show the loading spinner. */
1127
- isLoading = false;
1128
- /** State for Tab Keyboard tracking. */
1129
- isKeyboardFocus = true;
1130
- /** State for Keyboard Focus visibility. */
1131
- focusVisible = false;
1132
- /** State for Autocomplete Element active. */
1133
- elementActive = false;
1134
- /** The event that is emitted when the user selects an address via autocomplete. */
1135
- addressSelected;
1136
- /** The event that is emitted when the input field is cleared automatically or by manually deleting the value. */
1137
- clearInputField;
1138
- /** The event that is emitted when the user selects the manual address input option. */
1139
- manualAddressInput;
1140
- /** The event that is emitted when the user clicks the search button. */
1141
- searchSubmitted;
1142
- /** The text for the search button. Defaults to "Parbaudīt". */
1143
- searchButtonText = 'Parbaudīt';
1144
- /** The text for the close button. Defaults to "Aizvert". */
1145
- closeButtonText = 'Aizvert';
1146
- /**
1147
- * - Resets the native input value to an empty string
1148
- * - Resets input value length state
1149
- * - Removes the right hand side icon
1150
- */
1151
- async resetInputState() {
1152
- this.nativeInput.value = '';
1153
- this.inputValueLength = 0;
1154
- this.removeIconRight();
1155
- }
1156
- async componentWillLoad() {
1157
- await processTranslations('tet-components', this.language);
1158
- }
1159
- async componentDidLoad() {
1160
- this.nativeInput = await this.inputComponent?.getInputHtmlElement();
1161
- this.nativeInput?.addEventListener('input', this.toggleInputClearIcon);
1162
- this.nativeInput?.addEventListener('input', this.handleInputTyping);
1163
- this.nativeInput?.addEventListener('input', this.handleInputEmptyState);
1164
- this.nativeInput?.addEventListener('click', this.handleClick);
1165
- this.autocomplete?.addEventListener('activeComponentStateChanged', this.handleActiveStateChange);
1166
- if (this.nativeInput) {
1167
- this.nativeInput.style.whiteSpace = 'nowrap';
1168
- this.nativeInput.style.overflow = 'hidden';
1169
- this.nativeInput.style.textOverflow = 'ellipsis';
1170
- }
1171
- if (this.addressKey) {
1172
- await this.searchByAddressKey();
1173
- }
1174
- }
1175
- disconnectedCallback() {
1176
- this.nativeInput?.removeEventListener('input', this.toggleInputClearIcon);
1177
- this.nativeInput?.removeEventListener('input', this.handleInputTyping);
1178
- this.nativeInput?.removeEventListener('input', this.handleInputEmptyState);
1179
- this.nativeInput?.removeEventListener('click', this.handleClick);
1180
- this.autocomplete?.removeEventListener('activeComponentStateChanged', this.handleActiveStateChange);
1181
- }
1182
- handleClick = () => {
1183
- this.elementActive = true;
1184
- this.focusVisible = false;
1185
- };
1186
- handleInputTyping = (event) => {
1187
- this.elementActive = true;
1188
- if (event?.data) {
1189
- this.focusVisible = false;
1190
- }
1191
- };
1192
- handleActiveStateChange = (event) => {
1193
- this.elementActive = event.detail !== null;
1194
- };
1195
- /**
1196
- * Listen for Tab key event.
1197
- */
1198
- onKeyDown(event) {
1199
- if (event.key === 'Tab' && !this.nativeInput?.value) {
1200
- this.focusVisible = true;
1201
- }
1202
- }
1203
- /**
1204
- * Resets the active state when focus leaves the component entirely.
1205
- */
1206
- onFocusOut(event) {
1207
- if (!this.searchElement.contains(event.relatedTarget)) {
1208
- this.elementActive = false;
1209
- }
1210
- }
1211
- /**
1212
- * Initiates the address search by the address key and sets the value of the input field.
1213
- */
1214
- async searchByAddressKey() {
1215
- const keepInputDisabled = this.inputDisabled;
1216
- this.inputDisabled = true;
1217
- const address = await searchAddressByKey(this.addressKey);
1218
- if (address && address.fullAddress) {
1219
- this.addressSelected.emit(address);
1220
- this.nativeInput.value = address.fullAddress;
1221
- this.inputValueLength = this.nativeInput.value.length;
1222
- if (!keepInputDisabled) {
1223
- this.addClearIcon();
1224
- }
1225
- }
1226
- else {
1227
- this.clearInputAction();
1228
- }
1229
- if (!keepInputDisabled) {
1230
- this.inputDisabled = false;
1231
- }
1232
- }
1233
- /**
1234
- * Clears the autocomplete state when the normalized input value becomes empty.
1235
- *
1236
- * @param event
1237
- */
1238
- handleInputEmptyState = ({ target, inputType }) => {
1239
- const value = normalize(target.value);
1240
- const deleteInputTypes = [
1241
- 'deleteContentBackward',
1242
- 'deleteContentForward',
1243
- 'deleteWordBackward',
1244
- 'deleteWordForward',
1245
- 'deleteByCut',
1246
- 'historyUndo',
1247
- 'historyRedo',
1248
- ];
1249
- if (value.length === 0 && deleteInputTypes.includes(inputType)) {
1250
- this.clearInputAction();
1251
- }
1252
- };
1253
- /**
1254
- * Toggles the icon on the right side of the input based on the current input value.
1255
- *
1256
- * @param event
1257
- */
1258
- toggleInputClearIcon = ({ target }) => {
1259
- const value = normalize(target.value);
1260
- this.inputValueLength = value.length;
1261
- if (this.newStyle && this.inputValueLength >= this.minSearchKeywordLength) {
1262
- this.addLoadIcon();
1263
- this.removeIconRight();
1264
- return;
1265
- }
1266
- if (value && !this.inputIconRight) {
1267
- this.addClearIcon();
1268
- }
1269
- if (!value && this.inputIconRight) {
1270
- this.removeIconRight();
1271
- }
1272
- };
1273
- /**
1274
- * Functionality that is executed when a manual address input trigger element is clicked upon or selected.
1275
- */
1276
- manualAddressInputAction = () => {
1277
- this.manualAddressInput.emit();
1278
- this.clearInputAction();
1279
- };
1280
- /**
1281
- * Filters autocomplete options by the given keyword.
1282
- *
1283
- * @param keyword
1284
- */
1285
- addressFilterFunction = async (keyword) => {
1286
- if (keyword.length < this.minSearchKeywordLength) {
1287
- return Promise.resolve([]);
1288
- }
1289
- const addresses = (await searchAddress(keyword)) ?? [];
1290
- const addressOptions = addresses.map(({ fullAddress, addressKey, postalCode }) => {
1291
- return {
1292
- label: fullAddress,
1293
- value: { addressKey, postalCode },
1294
- };
1295
- });
1296
- if (this.manualAddressTriggers && addressOptions.length > 0) {
1297
- addressOptions.push({
1298
- label: translate('components-address-search-manual-address-input'),
1299
- value: 'manual-input',
1300
- clickCallback: this.manualAddressInputAction,
1301
- ignoreHighlighting: true,
1302
- cssPart: `manual-input-option`
1303
- });
1304
- }
1305
- return addressOptions;
1306
- };
1307
- debounceAddressFilter = debounceAsync(this.addressFilterFunction, 300);
1308
- /**
1309
- * Removes the icon on the right side of the input.
1310
- */
1311
- removeIconRight = () => {
1312
- this.inputIconRight = '';
1313
- };
1314
- /**
1315
- * Executes input "clear" functionality.
1316
- */
1317
- clearInputAction = () => {
1318
- this.autocomplete?.clear();
1319
- };
1320
- /**
1321
- * Functionality to execute after the autocomplete input field has been cleared.
1322
- */
1323
- autocompleteClearInputCallback = () => {
1324
- this.removeIconRight();
1325
- this.inputValueLength = 0;
1326
- this.clearInputField.emit();
1327
- };
1328
- /**
1329
- * Adds the `clear` icon in the input field.
1330
- */
1331
- addClearIcon = () => {
1332
- this.isLoading = false;
1333
- this.inputIconRight = 'tc-close';
1334
- };
1335
- /**
1336
- * Removes the loader icon and adds the clear icon.
1337
- */
1338
- finishedLoading = () => {
1339
- if (this.newStyle) {
1340
- this.removeIconRight();
1341
- if (this.inputValueLength >= 1) {
1342
- this.addClearIcon();
1343
- }
1344
- }
1345
- };
1346
- /**
1347
- * Adds the "load" icon to the input field.
1348
- */
1349
- addLoadIcon = () => {
1350
- this.isLoading = true;
1351
- };
1352
- /**
1353
- * The function that is executed when an autocomplete option is selected.
1354
- *
1355
- * @param event
1356
- */
1357
- handleAutocompleteOptionSelection = (event) => {
1358
- // Convert back to the original API address interface to keep the data structures in sync.
1359
- if (event.detail._originalEvent instanceof PointerEvent) {
1360
- this.addressSelected.emit({
1361
- addressKey: event.detail.value.addressKey,
1362
- fullAddress: event.detail.label,
1363
- postalCode: event.detail.value.postalCode
1364
- });
1365
- this.searchSubmitted.emit(event.detail.label);
1366
- }
1367
- else {
1368
- this.addressSelected.emit({
1369
- addressKey: event.detail.value.addressKey,
1370
- fullAddress: event.detail.label,
1371
- postalCode: event.detail.value.postalCode
1372
- });
1373
- }
1374
- };
1375
- /**
1376
- * Handles the search button click.
1377
- */
1378
- handleSearchSubmit = () => {
1379
- this.searchSubmitted.emit(this.nativeInput?.value);
1380
- };
1381
- /**
1382
- * Handles the redesigned close button click by collapsing the autocomplete overlay.
1383
- */
1384
- handleCloseButtonClick = () => {
1385
- this.focusVisible = false;
1386
- this.elementActive = false;
1387
- this.autocomplete?.dispatchEvent(new CustomEvent('activeComponentStateChanged', {
1388
- detail: null,
1389
- bubbles: true,
1390
- composed: true
1391
- }));
1392
- };
1393
- /**
1394
- * Renders the content that is shown when there are no matching addresses.
1395
- */
1396
- renderManualAddressInputNoOptionsMessage = () => {
1397
- 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')))));
1398
- };
1399
- render() {
1400
- const inputClasses = ['autocomplete-input'];
1401
- if (this.redesignedStyle) {
1402
- inputClasses.push('address-search--redesigned__input-field');
1403
- }
1404
- if (this.newStyle) {
1405
- inputClasses.push('address-search__input--rounded');
1406
- }
1407
- if (this.newFormsStyle) {
1408
- inputClasses.push('address-search__input--forms');
1409
- }
1410
- const isDarkContainerTheme = this.theme === 'dark' || this.theme === 'mint-original';
1411
- const submitButtonTheme = isDarkContainerTheme ? 'dark' : 'light';
1412
- const isButtonActive = (this.elementActive && !this.focusVisible) || this.alwaysExpanded;
1413
- const submitButtonColor = isButtonActive ? undefined : 'var(--tc-grey-80)';
1414
- const submitButtonColorTheme = (isButtonActive && isDarkContainerTheme && this.alwaysExpanded)
1415
- ? 'adaptive-yellow'
1416
- : undefined;
1417
- return (h(Host, { key: 'd1d91732d8d070509059f4ad832dba1e890c6b38', class: {
1418
- "address-search": true,
1419
- "address-search--redesigned": this.redesignedStyle,
1420
- "always-expanded": this.alwaysExpanded,
1421
- "keyboard-focus": this.focusVisible,
1422
- "active": this.elementActive,
1423
- [this.theme]: true,
1424
- } }, h("tet-autocomplete", { key: '762f782aa5ffe9e0717cab060ac7b84e6cd85958', class: `address-search--redesigned__autocomplete
1425
- ${isDarkContainerTheme ? 'dark' : ''}
1426
- `, 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
1427
- ${isDarkContainerTheme ? 'dark' : ''}` }, h("tet-input", { class: `address-search__input address-search--redesigned__input
1428
- ${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 &&
1429
- h("tet-spinner", { theme: isDarkContainerTheme ? 'dark' : 'light', class: "address-search__spinner", size: "small" }))), h("div", { class: `address-search--redesigned__button-wrapper
1430
- ${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 &&
1431
- h("tet-spinner", { theme: this.theme === 'dark' ? 'dark' : 'light', class: "address-search__spinner", size: "small" })))), this.redesignedStyle && (h("div", { key: 'a65f0a12b3fd3325793a04719cb40693ec6fbad7', class: "address-search--redesigned__close-button" }, h("tet-button", { key: '66e3a7b884f252f8252f98515a0ba1bb2c8ce944', type: "link", iconName: "tc-close", theme: "dark", onMouseDown: (event) => event.preventDefault(), onClick: this.handleCloseButtonClick }, this.closeButtonText)))));
1432
- }
1433
- static get watchers() { return {
1434
- "language": [{
1435
- "onLanguageChanged": 0
1436
- }],
1437
- "addressKey": [{
1438
- "search": 0
1439
- }],
1440
- "inputDisabled": [{
1441
- "onInputDisabledStateChange": 0
1442
- }]
1443
- }; }
1444
- };
1445
- TetAddressSearch.style = tetAddressSearchCss();
1446
-
1447
769
  const tetAssetAvailabilityAddressesCss = () => `: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;--address-selection-background:rgb(255, 255, 255);--address-selection-color:rgb(10, 11, 13);--address-selection-background-selected:rgb(8, 53, 104);--address-selection-color-selected:rgb(237, 245, 252);--address-selection-box-shadow:0 0 0.125rem 0 rgb(215, 219, 224)}.dark{--address-selection-background:rgb(22, 25, 29);--address-selection-color:rgb(153, 160, 174);--address-selection-background-selected:rgb(67, 75, 86);--address-selection-color-selected:rgb(255, 255, 255);--address-selection-box-shadow:0 0 0.125rem 0 rgb(67, 75, 86)}.list-container{border-radius:0.5rem;overflow:hidden;box-shadow:0 0 0.125rem 0.0625rem rgb(215, 219, 224);color:var(--address-selection-color);margin-bottom:0.5rem}.selection-list{--item-spacing:0}::part(selection-list-item-active){position:absolute;right:0;margin-right:1rem}::part(icon),.icon{--icon-color:var(--address-selection-color);--icon-size:1.25rem;margin-right:0.5rem}::part(icon-right){position:absolute;right:0}.selection-list-item-container,::part(selection-list-item-container){cursor:pointer;font:500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";--padding:.5rem;--background:var(--address-selection-background);--border-radius:0;--container-border-width:1;--box-shadow:var(--address-selection-box-shadow)}::part(container-selected){--container-box-shadow-selected:rgb(215, 219, 224) 0 0 0.125rem 0}::part(icon-selected){--icon-color:var(--address-selection-color-selected)}::part(selection-list-item-title){font:500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";position:relative;top:0.1875rem}.address-search::part(input){--input-background-color:rgb(255, 255, 255)}`;
1448
770
 
1449
771
  const TetAssetAvailabilityAddresses = class {
@@ -1617,7 +939,7 @@ const TetAssetAvailabilityAddresses = class {
1617
939
  }
1618
940
  ;
1619
941
  render() {
1620
- return (h(Host, { key: 'f5cdafbd02b89ed321f03bfee0c48ec01a29e9ec', class: { 'asset-adddress-selection': true, [this.theme]: true } }, this.showLoader ? (h("tet-placeholder", { height: "12.5rem", darkTheme: this.theme === 'dark' })) : (this.renderAddressList())));
942
+ return (h(Host, { key: 'e75cd885124012faceae9f6237170895f4c253a2', class: { 'asset-adddress-selection': true, [this.theme]: true } }, this.showLoader ? (h("tet-placeholder", { height: "12.5rem", darkTheme: this.theme === 'dark' })) : (this.renderAddressList())));
1621
943
  }
1622
944
  static get watchers() { return {
1623
945
  "pid": [{
@@ -1633,203 +955,4 @@ const TetAssetAvailabilityAddresses = class {
1633
955
  };
1634
956
  TetAssetAvailabilityAddresses.style = tetAssetAvailabilityAddressesCss();
1635
957
 
1636
- /**
1637
- * The phone validator class.
1638
- */
1639
- class PhoneNumberValidator {
1640
- errorMessage;
1641
- /**
1642
- * The regex for the phone validation.
1643
- */
1644
- latvianPhoneNumberRegex = '^(((\\+371|00371)[26])|[26])([0-9]{7}$)';
1645
- phoneNumberRegex = '^(?:00|\\+)\\d+$';
1646
- /**
1647
- * Constructor.
1648
- *
1649
- * @param errorMessage
1650
- */
1651
- constructor(errorMessage) {
1652
- this.errorMessage = errorMessage;
1653
- }
1654
- /**
1655
- * Returns validation error message.
1656
- */
1657
- getErrorMessage() {
1658
- return this.errorMessage;
1659
- }
1660
- /**
1661
- * Validation logic.
1662
- *
1663
- * @param value
1664
- */
1665
- validate(value) {
1666
- const validateValue = value.trim();
1667
- // If the phone number begins with either 2, 6, +371, or 00371,
1668
- // we assume that it is a Latvian phone number and validate accordingly.
1669
- if (validateValue.slice(0, 1) === '2' ||
1670
- validateValue.slice(0, 1) === '6' ||
1671
- validateValue.slice(0, 4) === '+371' ||
1672
- validateValue.slice(0, 5) === '00371') {
1673
- return RegExp(this.latvianPhoneNumberRegex).test(validateValue);
1674
- }
1675
- // A generic phone number must begin with either a plus sign or 00.
1676
- return RegExp(this.phoneNumberRegex).test(validateValue);
1677
- }
1678
- }
1679
-
1680
- 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%)}`;
1681
-
1682
- const TetAvailabilityContactForm = class {
1683
- constructor(hostRef) {
1684
- registerInstance(this, hostRef);
1685
- this.taskCreationSuccess = createEvent(this, "taskCreationSuccess");
1686
- this.taskCreationFailed = createEvent(this, "taskCreationFailed");
1687
- }
1688
- /** The input component. */
1689
- phoneInput;
1690
- /** The dialog component. */
1691
- dialogElement;
1692
- /** The list of validators to apply to the input field. */
1693
- validators = [
1694
- new PhoneNumberValidator('components-validation-incorrect-phone'),
1695
- new RequiredValidator('components-validation-required')
1696
- ];
1697
- /** The prop that determines whether to show the loader. */
1698
- showLoader = false;
1699
- /** The translation language code for the component. */
1700
- language = 'lv';
1701
- /**
1702
- * The watch to update translations.
1703
- * @param language
1704
- */
1705
- onLanguageChange(language) {
1706
- processTranslations('tet-components', language).then(() => forceUpdate(this));
1707
- }
1708
- /** The task creation parameters. */
1709
- taskOptions;
1710
- /** The props for the submit button. */
1711
- submitButtonProps = {};
1712
- /** The prop to determine whether to show or hide title text. */
1713
- showTitle = true;
1714
- /** The prop to determine whether to show or hide input label text. */
1715
- showInputLabel = false;
1716
- /** The theme of the input field. */
1717
- theme = 'classic';
1718
- /** The property that determines the color of the component theme. */
1719
- darkTheme = false;
1720
- /** The prop that determines if the form was submitted successfully. */
1721
- success = false;
1722
- /** The prop that determines if the form should be opened. */
1723
- showAvailabilityContactForm = false;
1724
- /**
1725
- * The contact form subtitle. Can provide any translation key from `tet-components` translation group.
1726
- * Otherwise, provide already translated text.
1727
- */
1728
- subtitle = 'components-contact-form-subtitle';
1729
- /** The event emitted if the task creation was successful. */
1730
- taskCreationSuccess;
1731
- /** The event emitted if the task creation failed. */
1732
- taskCreationFailed;
1733
- /**
1734
- * Listen for task creation success event.
1735
- * @param event
1736
- */
1737
- onSuccess(event) {
1738
- if (event) {
1739
- this.success = true;
1740
- }
1741
- }
1742
- /**
1743
- * Listen for empty catalog to open contact form dialog.
1744
- */
1745
- onEmptyCatalog() {
1746
- this.openDialogElement();
1747
- }
1748
- /**
1749
- * Lifecycle method.
1750
- */
1751
- async componentWillLoad() {
1752
- await processTranslations('tet-components', this.language);
1753
- forceUpdate(this);
1754
- }
1755
- /**
1756
- * Method to close dialog element.
1757
- */
1758
- closeDialogElement = async () => {
1759
- await this.dialogElement.close();
1760
- };
1761
- /**
1762
- * Method to open dialog element.
1763
- */
1764
- openDialogElement = async () => {
1765
- await this.dialogElement.open();
1766
- };
1767
- /**
1768
- * Method to create task for call center.
1769
- */
1770
- createManualTask = async () => {
1771
- this.showLoader = true;
1772
- const phoneInputElement = await this.phoneInput.getInputHtmlElement();
1773
- const errors = await this.phoneInput.validateInput();
1774
- if (errors.length) {
1775
- this.showLoader = false;
1776
- return;
1777
- }
1778
- try {
1779
- const data = await createCallCenterTask(this.getTaskOptions(phoneInputElement.value));
1780
- if (data && data.TaskId) {
1781
- this.taskCreationSuccess.emit(data.TaskId);
1782
- }
1783
- else {
1784
- this.taskCreationFailed.emit();
1785
- }
1786
- }
1787
- catch (error) {
1788
- this.taskCreationFailed.emit(error);
1789
- }
1790
- this.showLoader = false;
1791
- };
1792
- /**
1793
- * Appends the submitted phone number to the task description and returns the options.
1794
- *
1795
- * @param phoneNumber
1796
- */
1797
- getTaskOptions(phoneNumber) {
1798
- const { taskDescription } = this.taskOptions;
1799
- return {
1800
- ...this.taskOptions,
1801
- taskDescription: [taskDescription.trim(), `Phone: ${phoneNumber}`].join(' ')
1802
- };
1803
- }
1804
- ;
1805
- /**
1806
- * Renders the loader.
1807
- */
1808
- renderLoader() {
1809
- return (h("div", { class: "loader-overlay" }, h("tet-loader", { class: "loader" })));
1810
- }
1811
- ;
1812
- /**
1813
- * Render contact form.
1814
- */
1815
- renderForm() {
1816
- 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')))));
1817
- }
1818
- /**
1819
- * Render contact form success step.
1820
- */
1821
- renderSuccessStep() {
1822
- 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')))))));
1823
- }
1824
- render() {
1825
- return (h("div", { key: '57c451ddbbcd7f4687a8442093a48fe11fb91eed', class: { 'dark-theme': this.darkTheme } }, this.success ? this.renderSuccessStep() : this.renderForm()));
1826
- }
1827
- static get watchers() { return {
1828
- "language": [{
1829
- "onLanguageChange": 0
1830
- }]
1831
- }; }
1832
- };
1833
- TetAvailabilityContactForm.style = tetAvailabilityContactFormCss();
1834
-
1835
- export { TetAddressOffers as tet_address_offers, TetAddressOffersFilters as tet_address_offers_filters, TetAddressSearch as tet_address_search, TetAssetAvailabilityAddresses as tet_asset_availability_addresses, TetAvailabilityContactForm as tet_availability_contact_form };
958
+ export { TetAddressOffers as tet_address_offers, TetAddressOffersFilters as tet_address_offers_filters, TetAssetAvailabilityAddresses as tet_asset_availability_addresses };