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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (568) hide show
  1. package/dist/cjs/{http-codes-D7ffzpYW.js → http-codes-oHpK-Vsh.js} +1 -1
  2. package/dist/cjs/{index-BL_zVDFC.js → index-puzHM5yZ.js} +27 -31
  3. package/dist/cjs/{index-Dzs7Nkbj.js → index-t4WNVvo_.js} +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{product-comparison-DUzqZuWv.js → product-comparison-DAR6p-NV.js} +1 -1
  6. package/dist/cjs/service-availability-services-jPqzmyx3.js +19 -0
  7. package/dist/cjs/{string-D0kCSyUd.js → string-CL-wkThZ.js} +0 -4
  8. package/dist/cjs/tet-accordion.cjs.entry.js +7 -7
  9. package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +4 -4
  10. package/dist/cjs/tet-address-offers-v2.cjs.entry.js +332 -0
  11. package/dist/cjs/tet-address-offers-view-v2.cjs.entry.js +81 -0
  12. package/dist/cjs/tet-address-offers-view.cjs.entry.js +5 -5
  13. package/dist/cjs/{tet-address-offers_5.cjs.entry.js → tet-address-offers_3.cjs.entry.js} +8 -887
  14. package/dist/cjs/tet-address-search_2.cjs.entry.js +873 -0
  15. package/dist/cjs/{tet-assembler.cjs.entry.js → tet-assembler_3.cjs.entry.js} +827 -13
  16. package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +3 -3
  17. package/dist/cjs/tet-autocomplete_2.cjs.entry.js +6 -6
  18. package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +17 -17
  19. package/dist/cjs/tet-b2b-configurator.cjs.entry.js +6 -6
  20. package/dist/cjs/tet-banner-nav.cjs.entry.js +4 -4
  21. package/dist/cjs/tet-bar-graph.cjs.entry.js +4 -4
  22. package/dist/cjs/tet-border-radius.cjs.entry.js +2 -2
  23. package/dist/cjs/tet-business-card.cjs.entry.js +3 -3
  24. package/dist/cjs/tet-business-compare-card.cjs.entry.js +3 -3
  25. package/dist/cjs/tet-business-round-stepper.cjs.entry.js +2 -2
  26. package/dist/cjs/tet-button.cjs.entry.js +2 -2
  27. package/dist/cjs/tet-card-list.cjs.entry.js +5 -5
  28. package/dist/cjs/tet-carousel.cjs.entry.js +10 -10
  29. package/dist/cjs/tet-checkbox_3.cjs.entry.js +9 -9
  30. package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +6 -6
  31. package/dist/cjs/tet-cloud-configurator.cjs.entry.js +4 -4
  32. package/dist/cjs/tet-colors.cjs.entry.js +5 -5
  33. package/dist/cjs/tet-compare-card-v2.cjs.entry.js +4 -4
  34. package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
  35. package/dist/cjs/tet-compare-cards_2.cjs.entry.js +5 -5
  36. package/dist/cjs/tet-components.cjs.js +2 -2
  37. package/dist/cjs/tet-container_2.cjs.entry.js +3 -3
  38. package/dist/cjs/tet-countdown.cjs.entry.js +2 -2
  39. package/dist/cjs/tet-counter.cjs.entry.js +1 -1
  40. package/dist/cjs/tet-dialog.cjs.entry.js +4 -4
  41. package/dist/cjs/tet-display.cjs.entry.js +1 -1
  42. package/dist/cjs/tet-divider.cjs.entry.js +1 -1
  43. package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
  44. package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
  45. package/dist/cjs/tet-expansion-panel.cjs.entry.js +2 -2
  46. package/dist/cjs/tet-feedback-form.cjs.entry.js +4 -4
  47. package/dist/cjs/tet-filter.cjs.entry.js +1 -1
  48. package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
  49. package/dist/cjs/tet-font-weight.cjs.entry.js +2 -2
  50. package/dist/cjs/tet-fonts.cjs.entry.js +2 -2
  51. package/dist/cjs/tet-grid.cjs.entry.js +2 -2
  52. package/dist/cjs/tet-icon.cjs.entry.js +2 -2
  53. package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
  54. package/dist/cjs/tet-input.cjs.entry.js +4 -4
  55. package/dist/cjs/tet-layout.cjs.entry.js +2 -2
  56. package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
  57. package/dist/cjs/tet-link.cjs.entry.js +2 -2
  58. package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
  59. package/dist/cjs/tet-menu.cjs.entry.js +1 -1
  60. package/dist/cjs/tet-mini-compare-card.cjs.entry.js +1 -1
  61. package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +5 -5
  62. package/dist/cjs/tet-navigation-mobile.cjs.entry.js +7 -7
  63. package/dist/cjs/tet-news-card-list.cjs.entry.js +2 -2
  64. package/dist/cjs/tet-news-card.cjs.entry.js +2 -2
  65. package/dist/cjs/tet-notification.cjs.entry.js +2 -2
  66. package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
  67. package/dist/cjs/tet-paginator.cjs.entry.js +5 -5
  68. package/dist/cjs/tet-placeholder.cjs.entry.js +2 -2
  69. package/dist/cjs/tet-position.cjs.entry.js +1 -1
  70. package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
  71. package/dist/cjs/tet-radio_2.cjs.entry.js +3 -3
  72. package/dist/cjs/tet-range-slider.cjs.entry.js +8 -8
  73. package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
  74. package/dist/cjs/tet-snicker-card-group.cjs.entry.js +1 -1
  75. package/dist/cjs/tet-snicker-card.cjs.entry.js +4 -4
  76. package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
  77. package/dist/cjs/tet-spinner.cjs.entry.js +4 -4
  78. package/dist/cjs/tet-stepper-input.cjs.entry.js +5 -5
  79. package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
  80. package/dist/cjs/tet-sticky-offer.cjs.entry.js +2 -2
  81. package/dist/cjs/tet-support-search.cjs.entry.js +2 -2
  82. package/dist/cjs/tet-switch.cjs.entry.js +1 -1
  83. package/dist/cjs/tet-table.cjs.entry.js +1 -1
  84. package/dist/cjs/tet-tag_2.cjs.entry.js +6 -6
  85. package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
  86. package/dist/cjs/tet-text.cjs.entry.js +1 -1
  87. package/dist/cjs/tet-textarea.cjs.entry.js +3 -3
  88. package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +4 -4
  89. package/dist/cjs/tet-tv-program-channel-picker_2.cjs.entry.js +5 -5
  90. package/dist/cjs/tet-tv-program.cjs.entry.js +2 -2
  91. package/dist/cjs/{translations-Uvcq4kv8.js → translations-D5zHdnnh.js} +2 -2
  92. package/dist/cjs/{typecheck--Bs-bZ_K.js → typecheck-Do6mN8Vg.js} +0 -2
  93. package/dist/collection/collection-manifest.json +3 -1
  94. package/dist/collection/components/advanced/address/tet-address-offers-v2/address-offers-v2.model.js +147 -0
  95. package/dist/collection/components/{simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.css → advanced/address/tet-address-offers-v2/tet-address-offers-v2.css} +128 -20
  96. package/dist/collection/components/advanced/address/tet-address-offers-v2/tet-address-offers-v2.js +346 -0
  97. package/dist/collection/components/advanced/address/tet-address-search/tet-address-search.js +3 -3
  98. package/dist/collection/components/advanced/address/tet-autocomplete/tet-autocomplete.js +2 -2
  99. package/dist/collection/components/advanced/address/tet-autocomplete-dropdown/tet-autocomplete-dropdown.js +1 -1
  100. package/dist/collection/components/advanced/cards/tet-assembler/tet-assembler.css +1 -17
  101. package/dist/collection/components/advanced/cards/tet-assembler/tet-assembler.js +70 -9
  102. package/dist/collection/components/advanced/cards/tet-b2b-compare-card/tet-b2b-compare-card.js +6 -6
  103. package/dist/collection/components/advanced/cards/tet-business-card/tet-business-card.js +2 -2
  104. package/dist/collection/components/advanced/cards/tet-business-compare-card/tet-business-compare-card.js +2 -2
  105. package/dist/collection/components/advanced/cards/tet-business-summary-card/tet-business-summary-card.js +1 -1
  106. package/dist/collection/components/advanced/cards/tet-card-list/tet-card-list.js +4 -4
  107. package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.js +1 -1
  108. package/dist/collection/components/advanced/cards/tet-compare-card-v3/tet-compare-card-v3.css +13 -0
  109. package/dist/collection/components/advanced/cards/tet-compare-card-v3/tet-compare-card-v3.js +76 -6
  110. package/dist/collection/components/advanced/cards/tet-news-card/tet-news-card.js +1 -1
  111. package/dist/collection/components/advanced/customer/tet-asset-availability-addresses/tet-asset-availability-addresses.js +1 -1
  112. package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/tet-multi-step-dialog.js +1 -1
  113. package/dist/collection/components/advanced/forms/tet-availability-contact-form/tet-availability-contact-form.js +1 -1
  114. package/dist/collection/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.js +3 -3
  115. package/dist/collection/components/basic/buttons/tet-button/tet-button.js +1 -1
  116. package/dist/collection/components/basic/buttons/tet-checkbox/tet-checkbox.js +7 -7
  117. package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-content/tet-tab-content.js +2 -2
  118. package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-header/tet-tab-header.js +2 -2
  119. package/dist/collection/components/basic/buttons/tet-tag/tet-tag.js +2 -2
  120. package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +6 -6
  121. package/dist/collection/components/basic/loaders/tet-loader/tet-loader.js +1 -1
  122. package/dist/collection/components/basic/loaders/tet-placeholder/tet-placeholder.js +1 -1
  123. package/dist/collection/components/basic/loaders/tet-spinner/tet-spinner.js +3 -3
  124. package/dist/collection/components/basic/misc/tet-countdown/tet-countdown.js +1 -1
  125. package/dist/collection/components/basic/steppers/tet-business-round-stepper/tet-business-round-stepper.js +1 -1
  126. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.js +2 -2
  127. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.js +1 -1
  128. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.js +1 -1
  129. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.js +1 -1
  130. package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.js +4 -4
  131. package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.js +7 -7
  132. package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.js +1 -1
  133. package/dist/collection/components/simple/inputs/tet-textarea/tet-textarea.js +2 -2
  134. package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +1 -1
  135. package/dist/collection/components/simple/lists/tet-selection-list/tet-selection-list.js +1 -1
  136. package/dist/collection/components/simple/menu/tet-business-navigation/tet-business-navigation.js +1 -1
  137. package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js +3 -3
  138. package/dist/collection/components/simple/menu/tet-paginator/tet-paginator.js +1 -1
  139. package/dist/collection/components/simple/misc/tet-sticky-offer/tet-sticky-offer.js +1 -1
  140. package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +6 -6
  141. package/dist/collection/components/simple/structural/tet-expansion-panel/tet-expansion-panel.js +1 -1
  142. package/dist/collection/components/simple/tables-and-graphs/tet-bar-graph/tet-bar-graph.js +3 -3
  143. package/dist/collection/components/simple/text-blocks/tet-cloud-application-form-dialog/tet-cloud-application-form-dialog.js +2 -2
  144. package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.js +1 -1
  145. package/dist/collection/components/simple/text-blocks/tet-tooltip/tet-tooltip.js +1 -1
  146. package/dist/collection/components/views/tet-address-offers-view/tet-address-offers-view.js +1 -1
  147. package/dist/collection/components/views/tet-address-offers-view-v2/assets/banner.webp +0 -0
  148. package/dist/collection/components/{simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.css → views/tet-address-offers-view-v2/tet-address-offers-view-v2.css} +78 -34
  149. package/dist/collection/components/views/tet-address-offers-view-v2/tet-address-offers-view-v2.js +289 -0
  150. package/dist/collection/components/views/tet-b2b-configurator/partials/tet-b2b-configurator-cart/tet-b2b-configurator-cart.js +2 -2
  151. package/dist/collection/components/views/tet-b2b-configurator/tet-b2b-configurator.js +1 -1
  152. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.js +1 -1
  153. package/dist/collection/components/views/tet-tv-program/tet-tv-program.js +1 -1
  154. package/dist/collection/docs/styling/border-radius/tet-border-radius.js +1 -1
  155. package/dist/collection/docs/styling/colors/tet-colors.js +4 -4
  156. package/dist/collection/docs/styling/font-weight/tet-font-weight.js +1 -1
  157. package/dist/collection/docs/styling/fonts/tet-fonts.js +1 -1
  158. package/dist/collection/docs/styling/layout/tet-layout.js +1 -1
  159. package/dist/collection/docs/styling/link/tet-link.js +1 -1
  160. package/dist/collection/docs/styling/spacing/tet-spacing.js +1 -1
  161. package/dist/collection/docs/styling/tet-grid/tet-grid.js +1 -1
  162. package/dist/components/index.js +1 -1
  163. package/dist/components/{p-tMXV3IB5.js → p-B82POgFl.js} +1 -1
  164. package/dist/components/{p-CNhW7KE6.js → p-BAZQcyA7.js} +1 -1
  165. package/dist/components/{p-BztqMLE1.js → p-BAf_O-kb.js} +1 -1
  166. package/dist/components/{p-B9bE6qY-.js → p-BDEIj3j6.js} +1 -1
  167. package/dist/components/{p-C5khLmO4.js → p-BPTM37Hn.js} +1 -1
  168. package/dist/components/{p-CHVoAVzT.js → p-BQiafjHE.js} +1 -1
  169. package/dist/components/{p-DcRCMBBc.js → p-BWy5ewze.js} +1 -1
  170. package/dist/components/{p-BUyuNqM6.js → p-BX98BUpV.js} +1 -1
  171. package/dist/components/{p-Dmu5eHbY.js → p-BciwrQoB.js} +1 -1
  172. package/dist/components/p-BdMiAoro.js +1 -0
  173. package/dist/components/{p-w1igWoTx.js → p-Bm7pFbvA.js} +1 -1
  174. package/dist/components/{p-CnVl55e4.js → p-ByM3JujT.js} +1 -1
  175. package/dist/components/{p-B5y1yfI4.js → p-ByuP1fbX.js} +1 -1
  176. package/dist/components/{p-CJnk1Plz.js → p-C50q8-fi.js} +1 -1
  177. package/dist/components/{p-Bc4oqt_L.js → p-C5d7kQcA.js} +1 -1
  178. package/dist/components/p-CDWcoIgr.js +1 -0
  179. package/dist/components/{p-B8YPfVrH.js → p-CEVlu6ZD.js} +1 -1
  180. package/dist/components/{p-t_FgKIcd.js → p-CEyoGS5R.js} +1 -1
  181. package/dist/components/{p-Ckf6mMEf.js → p-CG9c-nHY.js} +1 -1
  182. package/dist/components/{p-CMxcvnRv.js → p-CKWJROPt.js} +1 -1
  183. package/dist/components/p-CQGgxLtq.js +1 -0
  184. package/dist/components/p-CWuhYFDW.js +1 -0
  185. package/dist/components/p-Cb-I8QJh.js +1 -0
  186. package/dist/components/{p-CQBhFzqI.js → p-ClXBenaN.js} +1 -1
  187. package/dist/components/p-CnMas2yD.js +1 -0
  188. package/dist/components/{p-DKZxpjnL.js → p-CpJ_GE1B.js} +1 -1
  189. package/dist/components/{p-d31bvRM6.js → p-CvA9ppPv.js} +1 -1
  190. package/dist/{tet-components/p-ad8622a2.entry.js → components/p-CvO427nb.js} +1 -1
  191. package/dist/components/{p-Cqjpl-r4.js → p-D05i9nSD.js} +1 -1
  192. package/dist/components/{p-C4uKGuRj.js → p-D4MolLd8.js} +1 -1
  193. package/dist/components/p-D8yjgo3h.js +1 -0
  194. package/dist/components/{p-CjbC3Ym3.js → p-D9Ay3Miq.js} +1 -1
  195. package/dist/components/{p-CV0h6H20.js → p-DKtLi_m6.js} +1 -1
  196. package/dist/components/{p-C61jDpta.js → p-DTOuhcpL.js} +1 -1
  197. package/dist/components/{p-Cmi0CN7v.js → p-DT_KxFJb.js} +1 -1
  198. package/dist/components/{p-Dke4zCyb.js → p-DUKWm2NH.js} +1 -1
  199. package/dist/components/{p-Ba5cZk_W.js → p-DYjsysoT.js} +1 -1
  200. package/dist/components/{p-DN2JwXg9.js → p-DZRioc0D.js} +1 -1
  201. package/dist/components/p-DhBrj0ZX.js +1 -0
  202. package/dist/components/{p-BpfMADD6.js → p-DiSdptzb.js} +1 -1
  203. package/dist/components/{p-Bsqoxd9G.js → p-DobMlMDf.js} +1 -1
  204. package/dist/components/{p-BUZAWbGM.js → p-Drc3QqtB.js} +1 -1
  205. package/dist/components/{p-CxypAmpV.js → p-Ds2b2o-c.js} +1 -1
  206. package/dist/components/{p-20AXKDtg.js → p-Dxiapgms.js} +1 -1
  207. package/dist/components/{p-C0RZDFyg.js → p-FC0kZDcz.js} +1 -1
  208. package/dist/components/{p-Dhe7PE-h.js → p-P5fEcpqm.js} +1 -1
  209. package/dist/components/{p-Mpe-2CVQ.js → p-QlyBltAE.js} +1 -1
  210. package/dist/components/{p-BdN4p8Qa.js → p-Xd0ABGeO.js} +1 -1
  211. package/dist/components/p-_2UzwYR8.js +1 -0
  212. package/dist/components/{p-Br4jWI9B.js → p-fUGNvavt.js} +1 -1
  213. package/dist/components/{p-BKqEPSBf.js → p-gcNUTSw9.js} +1 -1
  214. package/dist/components/{p-B5Dk5hzj.js → p-gw3AOj6h.js} +1 -1
  215. package/dist/components/{p-1E6motPj.js → p-nNPOjd2b.js} +1 -1
  216. package/dist/components/{p-Bw-D7nPx.js → p-sp4th_AU.js} +1 -1
  217. package/dist/components/p-wHiUpSTa.js +1 -0
  218. package/dist/components/tet-accordion.js +1 -1
  219. package/dist/components/tet-address-offers-filters-products.js +1 -1
  220. package/dist/components/tet-address-offers-filters.js +1 -1
  221. package/dist/components/{tet-datepicker.d.ts → tet-address-offers-v2.d.ts} +4 -4
  222. package/dist/components/tet-address-offers-v2.js +1 -0
  223. package/dist/components/tet-address-offers-view-v2.d.ts +11 -0
  224. package/dist/components/tet-address-offers-view-v2.js +1 -0
  225. package/dist/components/tet-address-offers-view.js +1 -1
  226. package/dist/components/tet-address-offers.js +1 -1
  227. package/dist/components/tet-address-search.js +1 -1
  228. package/dist/components/tet-assembler.js +1 -1
  229. package/dist/components/tet-asset-availability-addresses.js +1 -1
  230. package/dist/components/tet-autocomplete-dropdown.js +1 -1
  231. package/dist/components/tet-autocomplete.js +1 -1
  232. package/dist/components/tet-availability-contact-form.js +1 -1
  233. package/dist/components/tet-b2b-check-out-form.js +1 -1
  234. package/dist/components/tet-b2b-compare-card.js +1 -1
  235. package/dist/components/tet-b2b-configurator-cart.js +1 -1
  236. package/dist/components/tet-b2b-configurator.js +1 -1
  237. package/dist/components/tet-banner-nav.js +1 -1
  238. package/dist/components/tet-bar-graph.js +1 -1
  239. package/dist/components/tet-border-radius.js +1 -1
  240. package/dist/components/tet-business-card.js +1 -1
  241. package/dist/components/tet-business-compare-card.js +1 -1
  242. package/dist/components/tet-business-navigation.js +1 -1
  243. package/dist/components/tet-business-round-stepper.js +1 -1
  244. package/dist/components/tet-business-summary-card.js +1 -1
  245. package/dist/components/tet-button.js +1 -1
  246. package/dist/components/tet-card-list.js +1 -1
  247. package/dist/components/tet-carousel.js +1 -1
  248. package/dist/components/tet-checkbox.js +1 -1
  249. package/dist/components/tet-cloud-application-form-dialog.js +1 -1
  250. package/dist/components/tet-cloud-configurator.js +1 -1
  251. package/dist/components/tet-colors.js +1 -1
  252. package/dist/components/tet-compare-card-v2.js +1 -1
  253. package/dist/components/tet-compare-card-v3.js +1 -1
  254. package/dist/components/tet-compare-card.js +1 -1
  255. package/dist/components/tet-compare-cards-tab.js +1 -1
  256. package/dist/components/tet-compare-cards.js +1 -1
  257. package/dist/components/tet-container.js +1 -1
  258. package/dist/components/tet-countdown.js +1 -1
  259. package/dist/components/tet-counter.js +1 -1
  260. package/dist/components/tet-dialog.js +1 -1
  261. package/dist/components/tet-display.js +1 -1
  262. package/dist/components/tet-divider.js +1 -1
  263. package/dist/components/tet-dropdown.js +1 -1
  264. package/dist/components/tet-dynamic-card.js +1 -1
  265. package/dist/components/tet-expandable-input.js +1 -1
  266. package/dist/components/tet-expansion-panel.js +1 -1
  267. package/dist/components/tet-feedback-form.js +1 -1
  268. package/dist/components/tet-filter.js +1 -1
  269. package/dist/components/tet-floating-block.js +1 -1
  270. package/dist/components/tet-font-weight.js +1 -1
  271. package/dist/components/tet-fonts.js +1 -1
  272. package/dist/components/tet-grid.js +1 -1
  273. package/dist/components/tet-icon.js +1 -1
  274. package/dist/components/tet-inline-message.js +1 -1
  275. package/dist/components/tet-input.js +1 -1
  276. package/dist/components/tet-layout.js +1 -1
  277. package/dist/components/tet-link-card-list.js +1 -1
  278. package/dist/components/tet-link.js +1 -1
  279. package/dist/components/tet-loader.js +1 -1
  280. package/dist/components/tet-menu-mobile.js +1 -1
  281. package/dist/components/tet-menu.js +1 -1
  282. package/dist/components/tet-mini-compare-card.js +1 -1
  283. package/dist/components/tet-multi-step-dialog.js +1 -1
  284. package/dist/components/tet-navigation-mobile.js +1 -1
  285. package/dist/components/tet-news-card-list.js +1 -1
  286. package/dist/components/tet-news-card.js +1 -1
  287. package/dist/components/tet-notification.js +1 -1
  288. package/dist/components/tet-number-input.js +1 -1
  289. package/dist/components/tet-paginator.js +1 -1
  290. package/dist/components/tet-placeholder.js +1 -1
  291. package/dist/components/tet-position.js +1 -1
  292. package/dist/components/tet-price-view.js +1 -1
  293. package/dist/components/tet-radio-blocks.js +1 -1
  294. package/dist/components/tet-radio.js +1 -1
  295. package/dist/components/tet-range-slider.js +1 -1
  296. package/dist/components/tet-round-stepper.js +1 -1
  297. package/dist/components/tet-selection-list.js +1 -1
  298. package/dist/components/tet-snicker-card-group.js +1 -1
  299. package/dist/components/tet-snicker-card.js +1 -1
  300. package/dist/components/tet-spacing.js +1 -1
  301. package/dist/components/tet-spinner.js +1 -1
  302. package/dist/components/tet-stepper-input.js +1 -1
  303. package/dist/components/tet-stepper-v3.js +1 -1
  304. package/dist/components/tet-sticky-offer.js +1 -1
  305. package/dist/components/tet-support-search.js +1 -1
  306. package/dist/components/tet-switch.js +1 -1
  307. package/dist/components/tet-tab-content.js +1 -1
  308. package/dist/components/tet-tab-header.js +1 -1
  309. package/dist/components/tet-table.js +1 -1
  310. package/dist/components/tet-tag-group.js +1 -1
  311. package/dist/components/tet-tag.js +1 -1
  312. package/dist/components/tet-text-list.js +1 -1
  313. package/dist/components/tet-text.js +1 -1
  314. package/dist/components/tet-textarea.js +1 -1
  315. package/dist/components/tet-thank-you-view-v3.js +1 -1
  316. package/dist/components/tet-tooltip.js +1 -1
  317. package/dist/components/tet-tv-program-channel-picker.js +1 -1
  318. package/dist/components/tet-tv-program-date-picker.js +1 -1
  319. package/dist/components/tet-tv-program.js +1 -1
  320. package/dist/esm/{http-codes-BQGPgOl6.js → http-codes-DZlFuxP5.js} +1 -1
  321. package/dist/esm/{index-BGB6gNkz.js → index-CO8AyGrA.js} +28 -32
  322. package/dist/esm/{index-DScZlZas.js → index-Rx46bgOe.js} +1 -1
  323. package/dist/esm/loader.js +3 -3
  324. package/dist/esm/{product-comparison-DUVV7BFR.js → product-comparison-Cwy9VRPV.js} +1 -1
  325. package/dist/esm/service-availability-services-DXz8vHs0.js +17 -0
  326. package/dist/esm/{string-D0GJDW-O.js → string-C9BlrGW8.js} +1 -4
  327. package/dist/esm/tet-accordion.entry.js +7 -7
  328. package/dist/esm/tet-address-offers-filters-products_2.entry.js +4 -4
  329. package/dist/esm/tet-address-offers-v2.entry.js +330 -0
  330. package/dist/esm/tet-address-offers-view-v2.entry.js +79 -0
  331. package/dist/esm/tet-address-offers-view.entry.js +5 -5
  332. package/dist/esm/{tet-address-offers_5.entry.js → tet-address-offers_3.entry.js} +8 -885
  333. package/dist/esm/tet-address-search_2.entry.js +870 -0
  334. package/dist/esm/{tet-assembler.entry.js → tet-assembler_3.entry.js} +826 -14
  335. package/dist/esm/tet-autocomplete-dropdown.entry.js +3 -3
  336. package/dist/esm/tet-autocomplete_2.entry.js +6 -6
  337. package/dist/esm/tet-b2b-check-out-form_5.entry.js +17 -17
  338. package/dist/esm/tet-b2b-configurator.entry.js +6 -6
  339. package/dist/esm/tet-banner-nav.entry.js +4 -4
  340. package/dist/esm/tet-bar-graph.entry.js +4 -4
  341. package/dist/esm/tet-border-radius.entry.js +2 -2
  342. package/dist/esm/tet-business-card.entry.js +3 -3
  343. package/dist/esm/tet-business-compare-card.entry.js +3 -3
  344. package/dist/esm/tet-business-round-stepper.entry.js +2 -2
  345. package/dist/esm/tet-button.entry.js +2 -2
  346. package/dist/esm/tet-card-list.entry.js +5 -5
  347. package/dist/esm/tet-carousel.entry.js +10 -10
  348. package/dist/esm/tet-checkbox_3.entry.js +9 -9
  349. package/dist/esm/tet-cloud-application-form-dialog.entry.js +6 -6
  350. package/dist/esm/tet-cloud-configurator.entry.js +4 -4
  351. package/dist/esm/tet-colors.entry.js +5 -5
  352. package/dist/esm/tet-compare-card-v2.entry.js +4 -4
  353. package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
  354. package/dist/esm/tet-compare-cards_2.entry.js +5 -5
  355. package/dist/esm/tet-components.js +3 -3
  356. package/dist/esm/tet-container_2.entry.js +3 -3
  357. package/dist/esm/tet-countdown.entry.js +2 -2
  358. package/dist/esm/tet-counter.entry.js +1 -1
  359. package/dist/esm/tet-dialog.entry.js +4 -4
  360. package/dist/esm/tet-display.entry.js +1 -1
  361. package/dist/esm/tet-divider.entry.js +1 -1
  362. package/dist/esm/tet-dynamic-card.entry.js +1 -1
  363. package/dist/esm/tet-expandable-input.entry.js +1 -1
  364. package/dist/esm/tet-expansion-panel.entry.js +2 -2
  365. package/dist/esm/tet-feedback-form.entry.js +4 -4
  366. package/dist/esm/tet-filter.entry.js +1 -1
  367. package/dist/esm/tet-floating-block.entry.js +1 -1
  368. package/dist/esm/tet-font-weight.entry.js +2 -2
  369. package/dist/esm/tet-fonts.entry.js +2 -2
  370. package/dist/esm/tet-grid.entry.js +2 -2
  371. package/dist/esm/tet-icon.entry.js +2 -2
  372. package/dist/esm/tet-inline-message.entry.js +1 -1
  373. package/dist/esm/tet-input.entry.js +4 -4
  374. package/dist/esm/tet-layout.entry.js +2 -2
  375. package/dist/esm/tet-link-card-list.entry.js +1 -1
  376. package/dist/esm/tet-link.entry.js +2 -2
  377. package/dist/esm/tet-menu-mobile.entry.js +1 -1
  378. package/dist/esm/tet-menu.entry.js +1 -1
  379. package/dist/esm/tet-mini-compare-card.entry.js +1 -1
  380. package/dist/esm/tet-multi-step-dialog.entry.js +5 -5
  381. package/dist/esm/tet-navigation-mobile.entry.js +7 -7
  382. package/dist/esm/tet-news-card-list.entry.js +2 -2
  383. package/dist/esm/tet-news-card.entry.js +2 -2
  384. package/dist/esm/tet-notification.entry.js +2 -2
  385. package/dist/esm/tet-number-input.entry.js +1 -1
  386. package/dist/esm/tet-paginator.entry.js +5 -5
  387. package/dist/esm/tet-placeholder.entry.js +2 -2
  388. package/dist/esm/tet-position.entry.js +1 -1
  389. package/dist/esm/tet-price-view.entry.js +1 -1
  390. package/dist/esm/tet-radio_2.entry.js +3 -3
  391. package/dist/esm/tet-range-slider.entry.js +8 -8
  392. package/dist/esm/tet-round-stepper.entry.js +1 -1
  393. package/dist/esm/tet-snicker-card-group.entry.js +1 -1
  394. package/dist/esm/tet-snicker-card.entry.js +4 -4
  395. package/dist/esm/tet-spacing.entry.js +2 -2
  396. package/dist/esm/tet-spinner.entry.js +4 -4
  397. package/dist/esm/tet-stepper-input.entry.js +5 -5
  398. package/dist/esm/tet-stepper-v3.entry.js +1 -1
  399. package/dist/esm/tet-sticky-offer.entry.js +2 -2
  400. package/dist/esm/tet-support-search.entry.js +2 -2
  401. package/dist/esm/tet-switch.entry.js +1 -1
  402. package/dist/esm/tet-table.entry.js +1 -1
  403. package/dist/esm/tet-tag_2.entry.js +6 -6
  404. package/dist/esm/tet-text-list.entry.js +1 -1
  405. package/dist/esm/tet-text.entry.js +1 -1
  406. package/dist/esm/tet-textarea.entry.js +3 -3
  407. package/dist/esm/tet-thank-you-view-v3.entry.js +4 -4
  408. package/dist/esm/tet-tv-program-channel-picker_2.entry.js +5 -5
  409. package/dist/esm/tet-tv-program.entry.js +2 -2
  410. package/dist/esm/{translations-Dc2OQnbI.js → translations-B5QyZ9vI.js} +2 -2
  411. package/dist/esm/{typecheck-Bvqcvhjw.js → typecheck-CaZKtSyx.js} +1 -2
  412. package/dist/tet-components/assets/banner.webp +0 -0
  413. package/dist/tet-components/{p-6a8f5935.entry.js → p-00440570.entry.js} +1 -1
  414. package/dist/tet-components/{p-01577a41.entry.js → p-00ee3383.entry.js} +1 -1
  415. package/dist/tet-components/{p-d62eecdb.entry.js → p-082671b8.entry.js} +1 -1
  416. package/dist/tet-components/{p-38459b69.entry.js → p-0a35f634.entry.js} +1 -1
  417. package/dist/tet-components/{p-16199435.entry.js → p-0d582ff6.entry.js} +1 -1
  418. package/dist/tet-components/{p-be07df58.entry.js → p-0db9ba10.entry.js} +1 -1
  419. package/dist/tet-components/{p-3bb8e0ec.entry.js → p-172e6e28.entry.js} +1 -1
  420. package/dist/tet-components/{p-49ba40a1.entry.js → p-19a1e73a.entry.js} +1 -1
  421. package/dist/{components/p-euiyLrT6.js → tet-components/p-1d183de7.entry.js} +1 -1
  422. package/dist/tet-components/{p-e3e02e3b.entry.js → p-20a1e096.entry.js} +1 -1
  423. package/dist/tet-components/{p-79be83b2.entry.js → p-24192844.entry.js} +1 -1
  424. package/dist/tet-components/{p-b3acb430.entry.js → p-25b05e87.entry.js} +1 -1
  425. package/dist/tet-components/{p-9cee887f.entry.js → p-2a528ade.entry.js} +1 -1
  426. package/dist/tet-components/{p-e7e18cc4.entry.js → p-335a6617.entry.js} +1 -1
  427. package/dist/tet-components/{p-e2d4e5c3.entry.js → p-38ac5d83.entry.js} +1 -1
  428. package/dist/tet-components/{p-0cb2775f.entry.js → p-397320f3.entry.js} +1 -1
  429. package/dist/tet-components/{p-ee45806d.entry.js → p-3a317d67.entry.js} +1 -1
  430. package/dist/tet-components/{p-380c13f1.entry.js → p-4172cf45.entry.js} +1 -1
  431. package/dist/tet-components/p-417e33c5.entry.js +1 -0
  432. package/dist/tet-components/{p-a560fec1.entry.js → p-421edd38.entry.js} +1 -1
  433. package/dist/tet-components/{p-c2d6ac75.entry.js → p-4398cb86.entry.js} +1 -1
  434. package/dist/tet-components/{p-386be2d5.entry.js → p-43b92cf1.entry.js} +1 -1
  435. package/dist/tet-components/{p-784dd089.entry.js → p-44f9960d.entry.js} +1 -1
  436. package/dist/tet-components/{p-a037e4df.entry.js → p-4ba81e21.entry.js} +1 -1
  437. package/dist/tet-components/{p-66287f28.entry.js → p-4c5557fd.entry.js} +1 -1
  438. package/dist/tet-components/{p-d8a0eaaa.entry.js → p-4f623f82.entry.js} +1 -1
  439. package/dist/tet-components/{p-11ed5b55.entry.js → p-53288215.entry.js} +1 -1
  440. package/dist/tet-components/{p-94b2efaa.entry.js → p-54d6312f.entry.js} +1 -1
  441. package/dist/tet-components/{p-37c3f4c6.entry.js → p-56b3c60a.entry.js} +1 -1
  442. package/dist/tet-components/{p-368fb50a.entry.js → p-56f529fa.entry.js} +1 -1
  443. package/dist/tet-components/p-61561410.entry.js +1 -0
  444. package/dist/tet-components/p-696802be.entry.js +1 -0
  445. package/dist/tet-components/{p-7ae4195d.entry.js → p-6fbed98d.entry.js} +1 -1
  446. package/dist/tet-components/{p-45c01709.entry.js → p-70775616.entry.js} +1 -1
  447. package/dist/tet-components/{p-cd7efc99.entry.js → p-710077db.entry.js} +1 -1
  448. package/dist/tet-components/p-71e25e1a.entry.js +1 -0
  449. package/dist/tet-components/p-7ae98034.entry.js +1 -0
  450. package/dist/tet-components/{p-c9c4656e.entry.js → p-7d81be98.entry.js} +1 -1
  451. package/dist/tet-components/{p-fd71a027.entry.js → p-7fe27333.entry.js} +1 -1
  452. package/dist/tet-components/{p-41ef37c5.entry.js → p-850c65bb.entry.js} +1 -1
  453. package/dist/tet-components/{p-3005a902.entry.js → p-8e626994.entry.js} +1 -1
  454. package/dist/tet-components/p-938e02a1.entry.js +1 -0
  455. package/dist/tet-components/p-94f68711.entry.js +1 -0
  456. package/dist/tet-components/{p-185e98b4.entry.js → p-998ee6ff.entry.js} +1 -1
  457. package/dist/tet-components/{p-40503431.entry.js → p-9da92e28.entry.js} +1 -1
  458. package/dist/tet-components/{p-6d7c406e.entry.js → p-9fcebf59.entry.js} +1 -1
  459. package/dist/tet-components/{p-9beb88d9.entry.js → p-9fd20cce.entry.js} +1 -1
  460. package/dist/tet-components/p-B6DaIAt8.js +1 -0
  461. package/dist/tet-components/p-C9BlrGW8.js +1 -0
  462. package/dist/tet-components/p-CO8AyGrA.js +3 -0
  463. package/dist/tet-components/p-CaZKtSyx.js +1 -0
  464. package/dist/tet-components/p-CclcDrnd.js +1 -0
  465. package/dist/{components/p-lEX8wezw.js → tet-components/p-Qvh4ioQu.js} +1 -1
  466. package/dist/tet-components/{p-DX1IQAn5.js → p-WCtqtcml.js} +1 -1
  467. package/dist/tet-components/{p-5a14b088.entry.js → p-a3554db0.entry.js} +1 -1
  468. package/dist/tet-components/p-a4308a8d.entry.js +1 -0
  469. package/dist/tet-components/{p-e0752dc6.entry.js → p-aabaeb21.entry.js} +1 -1
  470. package/dist/tet-components/p-ae8dd4d2.entry.js +1 -0
  471. package/dist/tet-components/{p-74ccd606.entry.js → p-af46cb66.entry.js} +1 -1
  472. package/dist/tet-components/{p-4a39f6bc.entry.js → p-afdfbbe6.entry.js} +1 -1
  473. package/dist/tet-components/{p-4b92e8e6.entry.js → p-b32bfbcc.entry.js} +1 -1
  474. package/dist/tet-components/{p-632d382c.entry.js → p-b394da8f.entry.js} +1 -1
  475. package/dist/tet-components/{p-ad0b78d5.entry.js → p-b47dbd57.entry.js} +1 -1
  476. package/dist/tet-components/{p-72b23f6a.entry.js → p-b65a081f.entry.js} +1 -1
  477. package/dist/tet-components/{p-952b6065.entry.js → p-b7604f13.entry.js} +1 -1
  478. package/dist/tet-components/{p-2c84bff1.entry.js → p-b85587af.entry.js} +1 -1
  479. package/dist/tet-components/{p-1b29e5f2.entry.js → p-bc168e7d.entry.js} +1 -1
  480. package/dist/tet-components/p-bd5176b9.entry.js +1 -0
  481. package/dist/tet-components/{p-17d3a7ff.entry.js → p-bfb89ca9.entry.js} +1 -1
  482. package/dist/tet-components/{p-c97d7c52.entry.js → p-c0c72e90.entry.js} +1 -1
  483. package/dist/tet-components/{p-7338bab9.entry.js → p-c6a65c31.entry.js} +1 -1
  484. package/dist/tet-components/{p-c96c5b96.entry.js → p-cc26cad3.entry.js} +1 -1
  485. package/dist/tet-components/p-cd8c2923.entry.js +1 -0
  486. package/dist/tet-components/{p-9d103705.entry.js → p-ce92d83d.entry.js} +1 -1
  487. package/dist/tet-components/{p-3af65955.entry.js → p-d2bfb56b.entry.js} +1 -1
  488. package/dist/tet-components/{p-39a59573.entry.js → p-da48adf2.entry.js} +1 -1
  489. package/dist/tet-components/{p-cc3e87fe.entry.js → p-dc84cd4d.entry.js} +1 -1
  490. package/dist/tet-components/{p-299c7600.entry.js → p-de2ed849.entry.js} +1 -1
  491. package/dist/tet-components/{p-954dc5fa.entry.js → p-e3272f96.entry.js} +1 -1
  492. package/dist/tet-components/{p-41763924.entry.js → p-e6ae26c9.entry.js} +1 -1
  493. package/dist/tet-components/{p-8310d42d.entry.js → p-e8395909.entry.js} +1 -1
  494. package/dist/tet-components/{p-830e4fe6.entry.js → p-ea61c173.entry.js} +1 -1
  495. package/dist/tet-components/p-ef66b469.entry.js +1 -0
  496. package/dist/tet-components/p-f002f9b5.entry.js +1 -0
  497. package/dist/tet-components/p-f3b47857.entry.js +1 -0
  498. package/dist/tet-components/{p-2d36b8a7.entry.js → p-fe36894b.entry.js} +1 -1
  499. package/dist/tet-components/{p-a32ada3d.entry.js → p-fee45cbd.entry.js} +1 -1
  500. package/dist/tet-components/{p-0996dd5a.entry.js → p-ff09a8f4.entry.js} +1 -1
  501. package/dist/tet-components/p-ff425f4d.entry.js +1 -0
  502. package/dist/tet-components/{p-DbJll7nz.js → p-fxr7DnMu.js} +2 -2
  503. package/dist/tet-components/tet-components.esm.js +1 -1
  504. package/dist/types/components/advanced/address/tet-address-offers-v2/address-offers-v2.model.d.ts +55 -0
  505. package/dist/types/components/advanced/address/tet-address-offers-v2/tet-address-offers-v2.d.ts +36 -0
  506. package/dist/types/components/advanced/cards/tet-assembler/tet-assembler.d.ts +6 -1
  507. package/dist/types/components/advanced/cards/tet-compare-card-v3/tet-compare-card-v3.d.ts +6 -0
  508. package/dist/types/components/views/tet-address-offers-view-v2/tet-address-offers-view-v2.d.ts +33 -0
  509. package/dist/types/components.d.ts +260 -387
  510. package/dist/types/services/api/services/catalog/service-availability-services.d.ts +1 -0
  511. package/package.json +1 -1
  512. package/dist/cjs/tet-compare-card-v3.cjs.entry.js +0 -681
  513. package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +0 -387
  514. package/dist/cjs/tet-datepicker.cjs.entry.js +0 -132
  515. package/dist/cjs/tet-radio-blocks.cjs.entry.js +0 -83
  516. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.css +0 -455
  517. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.css +0 -382
  518. package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.css +0 -380
  519. package/dist/components/p-B0kUlgkD.js +0 -1
  520. package/dist/components/p-C8u5HEb4.js +0 -1
  521. package/dist/components/p-CAsIFNv3.js +0 -1
  522. package/dist/components/p-CKSiwKh_.js +0 -1
  523. package/dist/components/p-Cdi7KDBd.js +0 -1
  524. package/dist/components/p-Cef0hbKH.js +0 -1
  525. package/dist/components/p-CoQ-OVcl.js +0 -1
  526. package/dist/components/p-CvISLoYA.js +0 -1
  527. package/dist/components/p-D-hVxt6M.js +0 -1
  528. package/dist/components/p-D0GJDW-O.js +0 -1
  529. package/dist/components/p-DUxOWNca.js +0 -1
  530. package/dist/components/tet-datepicker-header.d.ts +0 -11
  531. package/dist/components/tet-datepicker-header.js +0 -1
  532. package/dist/components/tet-datepicker-month-view.d.ts +0 -11
  533. package/dist/components/tet-datepicker-month-view.js +0 -1
  534. package/dist/components/tet-datepicker-multi-year-view.d.ts +0 -11
  535. package/dist/components/tet-datepicker-multi-year-view.js +0 -1
  536. package/dist/components/tet-datepicker-year-view.d.ts +0 -11
  537. package/dist/components/tet-datepicker-year-view.js +0 -1
  538. package/dist/components/tet-datepicker.js +0 -1
  539. package/dist/esm/tet-compare-card-v3.entry.js +0 -679
  540. package/dist/esm/tet-datepicker-header_4.entry.js +0 -382
  541. package/dist/esm/tet-datepicker.entry.js +0 -130
  542. package/dist/esm/tet-radio-blocks.entry.js +0 -81
  543. package/dist/tet-components/p-067e0001.entry.js +0 -1
  544. package/dist/tet-components/p-0c0dec4c.entry.js +0 -1
  545. package/dist/tet-components/p-129027b6.entry.js +0 -1
  546. package/dist/tet-components/p-137a5837.entry.js +0 -1
  547. package/dist/tet-components/p-24058988.entry.js +0 -1
  548. package/dist/tet-components/p-2d285624.entry.js +0 -1
  549. package/dist/tet-components/p-3ae8cca8.entry.js +0 -1
  550. package/dist/tet-components/p-45c896dd.entry.js +0 -1
  551. package/dist/tet-components/p-6bc9b958.entry.js +0 -1
  552. package/dist/tet-components/p-87f4d9b1.entry.js +0 -1
  553. package/dist/tet-components/p-97d1416f.entry.js +0 -1
  554. package/dist/tet-components/p-BGB6gNkz.js +0 -3
  555. package/dist/tet-components/p-Bvqcvhjw.js +0 -1
  556. package/dist/tet-components/p-BzLFf73g.js +0 -1
  557. package/dist/tet-components/p-C1XJmhDH.js +0 -1
  558. package/dist/tet-components/p-D0GJDW-O.js +0 -1
  559. package/dist/tet-components/p-bac0cda3.entry.js +0 -1
  560. package/dist/tet-components/p-d851b8e5.entry.js +0 -1
  561. package/dist/tet-components/p-de6f9fd9.entry.js +0 -1
  562. package/dist/tet-components/p-f1608c27.entry.js +0 -1
  563. package/dist/tet-components/p-fbb45705.entry.js +0 -1
  564. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.d.ts +0 -21
  565. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.d.ts +0 -45
  566. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.d.ts +0 -20
  567. package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.d.ts +0 -20
  568. package/dist/types/components/simple/inputs/tet-datepicker/tet-datepicker.d.ts +0 -47
@@ -1,62 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var index$1 = require('./index-BL_zVDFC.js');
4
- var index = require('./index-Dzs7Nkbj.js');
5
- var httpCodes = require('./http-codes-D7ffzpYW.js');
6
- var translations = require('./translations-Uvcq4kv8.js');
3
+ var index$1 = require('./index-puzHM5yZ.js');
4
+ var index = require('./index-t4WNVvo_.js');
5
+ var serviceAvailabilityServices = require('./service-availability-services-jPqzmyx3.js');
6
+ var translations = require('./translations-D5zHdnnh.js');
7
7
  var buildFormUrl = require('./build-form-url-BitVO9sT.js');
8
8
  var price = require('./price-DeZkPWy6.js');
9
- var debounce = require('./debounce-DaxBUS6B.js');
10
- var string = require('./string-D0kCSyUd.js');
11
- var a11y = require('./a11y-CzQ63tsq.js');
12
- var required = require('./required-CHG9KeIg.js');
13
- require('./typecheck--Bs-bZ_K.js');
14
-
15
- /**
16
- * Returns the addresses that match the given keyword.
17
- * The API currently limits the number of results to 20 addresses.
18
- *
19
- * @param keyword
20
- */
21
- const searchAddress = (keyword) => {
22
- let url;
23
- try {
24
- url = new URL(encodeURIComponent(keyword), httpCodes.endpoints.addressSearch).href;
25
- }
26
- catch (error) {
27
- console.error(error);
28
- return Promise.resolve([]);
29
- }
30
- const request = new httpCodes.ApiRequest()
31
- .setUrl(url)
32
- .setOptions({
33
- method: 'GET',
34
- })
35
- .setErrorFallbackValue([]);
36
- return request.execute();
37
- };
38
- /**
39
- * Returns the address that matches the address key.
40
- *
41
- * @param addressKey
42
- */
43
- const searchAddressByKey = (addressKey) => {
44
- let url;
45
- try {
46
- url = new URL(encodeURIComponent(addressKey), httpCodes.endpoints.address).href;
47
- }
48
- catch (error) {
49
- console.error(error);
50
- return Promise.resolve({ addressKey: '', fullAddress: '', postalCode: '' });
51
- }
52
- const request = new httpCodes.ApiRequest()
53
- .setUrl(url)
54
- .setOptions({
55
- method: 'GET',
56
- })
57
- .setErrorFallbackValue({ addressKey: '', fullAddress: '', postalCode: '' });
58
- return request.execute();
59
- };
9
+ var httpCodes = require('./http-codes-oHpK-Vsh.js');
10
+ require('./typecheck-Do6mN8Vg.js');
60
11
 
61
12
  /**
62
13
  * Returns customer information.
@@ -112,232 +63,6 @@ const customerAssets = (salesforceAccountId, accessToken) => {
112
63
  return request.execute();
113
64
  };
114
65
 
115
- const operations = async (operationId) => {
116
- let url;
117
- try {
118
- url = new URL(operationId, httpCodes.endpoints.operations).href;
119
- }
120
- catch (error) {
121
- console.error(error);
122
- return Promise.reject();
123
- }
124
- const request = new httpCodes.ApiRequest()
125
- .setUrl(url)
126
- .setOptions({
127
- method: 'GET',
128
- })
129
- .setErrorFallbackValue({});
130
- const result = request.execute(true);
131
- return (await result).json();
132
- };
133
-
134
- const executeUntil = async (execute, until, { millisecondsToWait = 1000, maxExecutionTries = 10 } = {}) => {
135
- let result = await execute();
136
- let tries = maxExecutionTries;
137
- while (!until(result)) {
138
- if (--tries <= 0) {
139
- throw new Error(`Execute Until: maximum tries of ${maxExecutionTries} reached`);
140
- }
141
- await wait(millisecondsToWait);
142
- result = await execute();
143
- }
144
- return result;
145
- };
146
- const wait = (milliseconds) => {
147
- return new Promise(resolve => {
148
- setTimeout(resolve, milliseconds);
149
- });
150
- };
151
-
152
- class AsyncApiRequestError extends Error {
153
- constructor(error) {
154
- super(`Async API Error: ${error.message}`);
155
- }
156
- }
157
-
158
- /**
159
- * Generic class for creating and executing async API requests.
160
- *
161
- * The initial sync request sends the required data and receives the value of the operation ID in the response header.
162
- * The operation ID is used to open a channel for processing this request.
163
- * Eventually, the channel will emit the final returned and processed data,
164
- * and the channel (WebSocket) connection will be closed.
165
- */
166
- class AsyncApiRequest {
167
- url;
168
- options;
169
- data;
170
- errorFallbackValue;
171
- /**
172
- * The time in milliseconds after which the Websocket connection should be closed if the data is not received.
173
- */
174
- socketTimeoutInMilliseconds = 60000;
175
- maxPollingAttempts = 45;
176
- dataRetrievalMethod = 'polling';
177
- defaultOptions = {
178
- headers: {
179
- 'Accept': 'application/json',
180
- 'Content-Type': 'application/json'
181
- }
182
- };
183
- /**
184
- * The header name of the response operation ID.
185
- */
186
- operationIdHeader = 'X-Operation';
187
- /**
188
- * The event name of the operation data stream.
189
- */
190
- operationEventName = '.operation.status';
191
- /**
192
- * Sets the URL.
193
- *
194
- * @param url
195
- */
196
- setUrl(url) {
197
- this.url = url;
198
- return this;
199
- }
200
- /**
201
- * Sets the request options.
202
- *
203
- * @param options
204
- */
205
- setOptions(options) {
206
- this.options = options;
207
- return this;
208
- }
209
- /**
210
- * Sets the request body (data).
211
- *
212
- * @param data
213
- */
214
- setData(data) {
215
- this.data = data;
216
- return this;
217
- }
218
- /**
219
- * Sets the value that will be returned in case of request execution error.
220
- * The error will be caught and re-thrown if not specified, leaving it up to the implementation to handle it.
221
- *
222
- * @param value
223
- */
224
- setErrorFallbackValue(value) {
225
- this.errorFallbackValue = value;
226
- return this;
227
- }
228
- /**
229
- * Returns the operation ID.
230
- *
231
- * @param response
232
- */
233
- getOperationId(response) {
234
- return response.headers.get(this.operationIdHeader) ?? '';
235
- }
236
- /**
237
- * Handles caught error.
238
- *
239
- * @param error
240
- */
241
- handleError(error) {
242
- return this.errorFallbackValue
243
- ? Promise.resolve(this.errorFallbackValue)
244
- : Promise.reject(new AsyncApiRequestError(error));
245
- }
246
- /**
247
- * Poll operations endpoint until the async request has been completed and the data is available.
248
- *
249
- * @param operationId
250
- */
251
- async pollOperationsEndpoint(operationId) {
252
- const checkState = ({ state, reason = 'unknown' }) => {
253
- if (state === 'failed') {
254
- throw new Error(`Failed due to "${reason}"`);
255
- }
256
- return state === 'completed';
257
- };
258
- const result = await executeUntil(() => operations(operationId), checkState, { maxExecutionTries: this.maxPollingAttempts });
259
- return result.data;
260
- }
261
- getDataUsingPolling(operationId) {
262
- return new Promise(async (resolve, reject) => {
263
- try {
264
- resolve(await this.pollOperationsEndpoint(operationId));
265
- }
266
- catch (error) {
267
- reject(new AsyncApiRequestError(error));
268
- }
269
- });
270
- }
271
- getDataUsingWebSockets(operationId) {
272
- return new Promise((resolve, reject) => {
273
- const connection = httpCodes.createSocketConnection();
274
- const requestTimeout = setTimeout(async () => {
275
- connection.disconnect();
276
- reject(new AsyncApiRequestError(new Error(`web socket connection timed out after ${this.socketTimeoutInMilliseconds / 1000} seconds`)));
277
- }, this.socketTimeoutInMilliseconds);
278
- connection
279
- .channel(`operations-${operationId}`)
280
- .listen(this.operationEventName, (socketResponse) => {
281
- const { data: { state, data } } = socketResponse;
282
- if (state === 'completed') {
283
- clearTimeout(requestTimeout);
284
- resolve(data);
285
- connection.disconnect();
286
- }
287
- })
288
- .error((error) => {
289
- clearTimeout(requestTimeout);
290
- reject(new AsyncApiRequestError(error));
291
- });
292
- });
293
- }
294
- /**
295
- * Returns promise that should resolve to the request data.
296
- *
297
- * @param operationId
298
- */
299
- createAsyncRequestPromise(operationId) {
300
- const dataFunction = this.dataRetrievalMethod === 'polling'
301
- ? this.getDataUsingPolling
302
- : this.getDataUsingWebSockets;
303
- return dataFunction.bind(this)(operationId);
304
- }
305
- /**
306
- * Executes the request.
307
- */
308
- async execute() {
309
- // Create the initial sync API request
310
- // that will return the information about the WebSocket channel to connect to for the response.
311
- const apiRequest = new httpCodes.ApiRequest()
312
- .setUrl(this.url)
313
- .setData(this.data)
314
- .setOptions({ ...this.defaultOptions, ...this.options });
315
- let response;
316
- try {
317
- response = await apiRequest.execute(true);
318
- }
319
- catch (error) {
320
- return this.handleError(error);
321
- }
322
- if (response.status !== httpCodes.HttpCodes.Accepted) {
323
- return this.handleError(new Error('Request was not accepted.'));
324
- }
325
- // Obtain the operation ID to identify the channel socket to listen to for the data.
326
- const operationId = this.getOperationId(response);
327
- return this.createAsyncRequestPromise(operationId);
328
- }
329
- }
330
-
331
- const createCallCenterTask = (options) => {
332
- const url = httpCodes.endpoints.createCallCenterTask;
333
- const asyncRequest = new AsyncApiRequest()
334
- .setUrl(url)
335
- .setData(options)
336
- .setOptions({ method: 'POST' })
337
- .setErrorFallbackValue({ TaskId: null });
338
- return asyncRequest.execute();
339
- };
340
-
341
66
  class AddressOffersFilters {
342
67
  onFilterSelect;
343
68
  availableFilters = [];
@@ -518,20 +243,6 @@ var ContractTerm;
518
243
  ContractTerm[ContractTerm["Indefinite"] = 0] = "Indefinite";
519
244
  })(ContractTerm || (ContractTerm = {}));
520
245
 
521
- /**
522
- * Returns the available services at the given address.
523
- *
524
- * @param addressKey
525
- */
526
- const serviceAvailabilityServices = (addressKey) => {
527
- const url = httpCodes.endpoints.serviceAvailabilityServices;
528
- const request = new httpCodes.ApiRequest()
529
- .setUrl(url + '?addressKey=' + addressKey)
530
- .setOptions({ method: 'GET' })
531
- .setErrorFallbackValue([]);
532
- return request.execute();
533
- };
534
-
535
246
  const descriptions = [
536
247
  ['isNetflixMaxDisneyProduct', 'components-netflix-max-disney-card-description'],
537
248
  ['isNetflixDisneyProduct', 'components-netflix-disney-card-description'],
@@ -670,7 +381,7 @@ const TetAddressOffers = class {
670
381
  this.showLoader = true;
671
382
  state.availableFilters = [];
672
383
  try {
673
- const catalogData = await serviceAvailabilityServices(this.addressKey);
384
+ const catalogData = await serviceAvailabilityServices.serviceAvailabilityServices(this.addressKey);
674
385
  this.catalog = catalogData;
675
386
  state.catalog = catalogData;
676
387
  this.catalogChange.emit({
@@ -1057,395 +768,6 @@ const TetAddressOffersFilters = class {
1057
768
  };
1058
769
  TetAddressOffersFilters.style = tetAddressOffersFiltersCss();
1059
770
 
1060
- 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}`;
1061
-
1062
- const TetAddressSearch = class {
1063
- constructor(hostRef) {
1064
- index$1.registerInstance(this, hostRef);
1065
- this.addressSelected = index$1.createEvent(this, "addressSelected");
1066
- this.clearInputField = index$1.createEvent(this, "clearInputField");
1067
- this.manualAddressInput = index$1.createEvent(this, "manualAddressInput");
1068
- this.searchSubmitted = index$1.createEvent(this, "searchSubmitted");
1069
- }
1070
- /** The reference to the autocomplete element. */
1071
- autocomplete;
1072
- /** The reference to the native input element inside tet-input. */
1073
- nativeInput;
1074
- /** The reference to the tet-input element. */
1075
- inputComponent;
1076
- get searchElement() { return index$1.getElement(this); }
1077
- /** Translation language used in the component. */
1078
- language = 'lv';
1079
- onLanguageChanged(language) {
1080
- translations.processTranslations('tet-components', language).then(() => index$1.forceUpdate(this));
1081
- }
1082
- /** The minimum length of the keyword before address search functionality is applied. */
1083
- minSearchKeywordLength = 4;
1084
- /** The value of the placeholder. The placeholder will be hidden if set to empty. */
1085
- placeholder = 'Piemēram, Nometņu iela 10 - 5, Salaspils';
1086
- /** The value of the label. The label will be hidden if set to empty. */
1087
- label = '';
1088
- /** The value of the aria label. */
1089
- accessibilityLabel = '';
1090
- /** The address key of the address. Set to preselect an address. */
1091
- addressKey = '';
1092
- async search(newValue) {
1093
- if (!this.nativeInput) {
1094
- return;
1095
- }
1096
- if (newValue) {
1097
- await this.searchByAddressKey();
1098
- }
1099
- else {
1100
- await this.resetInputState();
1101
- }
1102
- }
1103
- /** Toggles the new redesign style. */
1104
- newStyle = false;
1105
- /** Toggles the new forms redesign style. */
1106
- newFormsStyle = false;
1107
- /** Toggles the redesigned style. */
1108
- redesignedStyle = false;
1109
- /** Keeps the redesigned expanded background always visible (without requiring focus). */
1110
- alwaysExpanded = false;
1111
- /** The theme of the component. */
1112
- theme = 'classic';
1113
- /** Determines whether to add the additional elements that will emit the manual address input event on selection. */
1114
- manualAddressTriggers = false;
1115
- /** Keeps track of the input error state. */
1116
- isInputInvalid = false;
1117
- /** The enabled or disabled state of the input. */
1118
- inputDisabled = false;
1119
- /** Determines whether the search keyword is highlighted in option labels. */
1120
- highlightOptionsKeyword = true;
1121
- onInputDisabledStateChange(inputDisabled) {
1122
- inputDisabled ? this.removeIconRight() : this.addClearIcon();
1123
- }
1124
- /** The name for the icon on the right side of the input. */
1125
- inputIconRight = '';
1126
- /** The length of the value of the input. */
1127
- inputValueLength = 0;
1128
- /** Determines if to show the loading spinner. */
1129
- isLoading = false;
1130
- /** State for Tab Keyboard tracking. */
1131
- isKeyboardFocus = true;
1132
- /** State for Keyboard Focus visibility. */
1133
- focusVisible = false;
1134
- /** State for Autocomplete Element active. */
1135
- elementActive = false;
1136
- /** The event that is emitted when the user selects an address via autocomplete. */
1137
- addressSelected;
1138
- /** The event that is emitted when the input field is cleared automatically or by manually deleting the value. */
1139
- clearInputField;
1140
- /** The event that is emitted when the user selects the manual address input option. */
1141
- manualAddressInput;
1142
- /** The event that is emitted when the user clicks the search button. */
1143
- searchSubmitted;
1144
- /** The text for the search button. Defaults to "Parbaudīt". */
1145
- searchButtonText = 'Parbaudīt';
1146
- /** The text for the close button. Defaults to "Aizvert". */
1147
- closeButtonText = 'Aizvert';
1148
- /**
1149
- * - Resets the native input value to an empty string
1150
- * - Resets input value length state
1151
- * - Removes the right hand side icon
1152
- */
1153
- async resetInputState() {
1154
- this.nativeInput.value = '';
1155
- this.inputValueLength = 0;
1156
- this.removeIconRight();
1157
- }
1158
- async componentWillLoad() {
1159
- await translations.processTranslations('tet-components', this.language);
1160
- }
1161
- async componentDidLoad() {
1162
- this.nativeInput = await this.inputComponent?.getInputHtmlElement();
1163
- this.nativeInput?.addEventListener('input', this.toggleInputClearIcon);
1164
- this.nativeInput?.addEventListener('input', this.handleInputTyping);
1165
- this.nativeInput?.addEventListener('input', this.handleInputEmptyState);
1166
- this.nativeInput?.addEventListener('click', this.handleClick);
1167
- this.autocomplete?.addEventListener('activeComponentStateChanged', this.handleActiveStateChange);
1168
- if (this.nativeInput) {
1169
- this.nativeInput.style.whiteSpace = 'nowrap';
1170
- this.nativeInput.style.overflow = 'hidden';
1171
- this.nativeInput.style.textOverflow = 'ellipsis';
1172
- }
1173
- if (this.addressKey) {
1174
- await this.searchByAddressKey();
1175
- }
1176
- }
1177
- disconnectedCallback() {
1178
- this.nativeInput?.removeEventListener('input', this.toggleInputClearIcon);
1179
- this.nativeInput?.removeEventListener('input', this.handleInputTyping);
1180
- this.nativeInput?.removeEventListener('input', this.handleInputEmptyState);
1181
- this.nativeInput?.removeEventListener('click', this.handleClick);
1182
- this.autocomplete?.removeEventListener('activeComponentStateChanged', this.handleActiveStateChange);
1183
- }
1184
- handleClick = () => {
1185
- this.elementActive = true;
1186
- this.focusVisible = false;
1187
- };
1188
- handleInputTyping = (event) => {
1189
- this.elementActive = true;
1190
- if (event?.data) {
1191
- this.focusVisible = false;
1192
- }
1193
- };
1194
- handleActiveStateChange = (event) => {
1195
- this.elementActive = event.detail !== null;
1196
- };
1197
- /**
1198
- * Listen for Tab key event.
1199
- */
1200
- onKeyDown(event) {
1201
- if (event.key === 'Tab' && !this.nativeInput?.value) {
1202
- this.focusVisible = true;
1203
- }
1204
- }
1205
- /**
1206
- * Resets the active state when focus leaves the component entirely.
1207
- */
1208
- onFocusOut(event) {
1209
- if (!this.searchElement.contains(event.relatedTarget)) {
1210
- this.elementActive = false;
1211
- }
1212
- }
1213
- /**
1214
- * Initiates the address search by the address key and sets the value of the input field.
1215
- */
1216
- async searchByAddressKey() {
1217
- const keepInputDisabled = this.inputDisabled;
1218
- this.inputDisabled = true;
1219
- const address = await searchAddressByKey(this.addressKey);
1220
- if (address && address.fullAddress) {
1221
- this.addressSelected.emit(address);
1222
- this.nativeInput.value = address.fullAddress;
1223
- this.inputValueLength = this.nativeInput.value.length;
1224
- if (!keepInputDisabled) {
1225
- this.addClearIcon();
1226
- }
1227
- }
1228
- else {
1229
- this.clearInputAction();
1230
- }
1231
- if (!keepInputDisabled) {
1232
- this.inputDisabled = false;
1233
- }
1234
- }
1235
- /**
1236
- * Clears the autocomplete state when the normalized input value becomes empty.
1237
- *
1238
- * @param event
1239
- */
1240
- handleInputEmptyState = ({ target, inputType }) => {
1241
- const value = string.normalize(target.value);
1242
- const deleteInputTypes = [
1243
- 'deleteContentBackward',
1244
- 'deleteContentForward',
1245
- 'deleteWordBackward',
1246
- 'deleteWordForward',
1247
- 'deleteByCut',
1248
- 'historyUndo',
1249
- 'historyRedo',
1250
- ];
1251
- if (value.length === 0 && deleteInputTypes.includes(inputType)) {
1252
- this.clearInputAction();
1253
- }
1254
- };
1255
- /**
1256
- * Toggles the icon on the right side of the input based on the current input value.
1257
- *
1258
- * @param event
1259
- */
1260
- toggleInputClearIcon = ({ target }) => {
1261
- const value = string.normalize(target.value);
1262
- this.inputValueLength = value.length;
1263
- if (this.newStyle && this.inputValueLength >= this.minSearchKeywordLength) {
1264
- this.addLoadIcon();
1265
- this.removeIconRight();
1266
- return;
1267
- }
1268
- if (value && !this.inputIconRight) {
1269
- this.addClearIcon();
1270
- }
1271
- if (!value && this.inputIconRight) {
1272
- this.removeIconRight();
1273
- }
1274
- };
1275
- /**
1276
- * Functionality that is executed when a manual address input trigger element is clicked upon or selected.
1277
- */
1278
- manualAddressInputAction = () => {
1279
- this.manualAddressInput.emit();
1280
- this.clearInputAction();
1281
- };
1282
- /**
1283
- * Filters autocomplete options by the given keyword.
1284
- *
1285
- * @param keyword
1286
- */
1287
- addressFilterFunction = async (keyword) => {
1288
- if (keyword.length < this.minSearchKeywordLength) {
1289
- return Promise.resolve([]);
1290
- }
1291
- const addresses = (await searchAddress(keyword)) ?? [];
1292
- const addressOptions = addresses.map(({ fullAddress, addressKey, postalCode }) => {
1293
- return {
1294
- label: fullAddress,
1295
- value: { addressKey, postalCode },
1296
- };
1297
- });
1298
- if (this.manualAddressTriggers && addressOptions.length > 0) {
1299
- addressOptions.push({
1300
- label: translations.translate('components-address-search-manual-address-input'),
1301
- value: 'manual-input',
1302
- clickCallback: this.manualAddressInputAction,
1303
- ignoreHighlighting: true,
1304
- cssPart: `manual-input-option`
1305
- });
1306
- }
1307
- return addressOptions;
1308
- };
1309
- debounceAddressFilter = debounce.debounceAsync(this.addressFilterFunction, 300);
1310
- /**
1311
- * Removes the icon on the right side of the input.
1312
- */
1313
- removeIconRight = () => {
1314
- this.inputIconRight = '';
1315
- };
1316
- /**
1317
- * Executes input "clear" functionality.
1318
- */
1319
- clearInputAction = () => {
1320
- this.autocomplete?.clear();
1321
- };
1322
- /**
1323
- * Functionality to execute after the autocomplete input field has been cleared.
1324
- */
1325
- autocompleteClearInputCallback = () => {
1326
- this.removeIconRight();
1327
- this.inputValueLength = 0;
1328
- this.clearInputField.emit();
1329
- };
1330
- /**
1331
- * Adds the `clear` icon in the input field.
1332
- */
1333
- addClearIcon = () => {
1334
- this.isLoading = false;
1335
- this.inputIconRight = 'tc-close';
1336
- };
1337
- /**
1338
- * Removes the loader icon and adds the clear icon.
1339
- */
1340
- finishedLoading = () => {
1341
- if (this.newStyle) {
1342
- this.removeIconRight();
1343
- if (this.inputValueLength >= 1) {
1344
- this.addClearIcon();
1345
- }
1346
- }
1347
- };
1348
- /**
1349
- * Adds the "load" icon to the input field.
1350
- */
1351
- addLoadIcon = () => {
1352
- this.isLoading = true;
1353
- };
1354
- /**
1355
- * The function that is executed when an autocomplete option is selected.
1356
- *
1357
- * @param event
1358
- */
1359
- handleAutocompleteOptionSelection = (event) => {
1360
- // Convert back to the original API address interface to keep the data structures in sync.
1361
- if (event.detail._originalEvent instanceof PointerEvent) {
1362
- this.addressSelected.emit({
1363
- addressKey: event.detail.value.addressKey,
1364
- fullAddress: event.detail.label,
1365
- postalCode: event.detail.value.postalCode
1366
- });
1367
- this.searchSubmitted.emit(event.detail.label);
1368
- }
1369
- else {
1370
- this.addressSelected.emit({
1371
- addressKey: event.detail.value.addressKey,
1372
- fullAddress: event.detail.label,
1373
- postalCode: event.detail.value.postalCode
1374
- });
1375
- }
1376
- };
1377
- /**
1378
- * Handles the search button click.
1379
- */
1380
- handleSearchSubmit = () => {
1381
- this.searchSubmitted.emit(this.nativeInput?.value);
1382
- };
1383
- /**
1384
- * Handles the redesigned close button click by collapsing the autocomplete overlay.
1385
- */
1386
- handleCloseButtonClick = () => {
1387
- this.focusVisible = false;
1388
- this.elementActive = false;
1389
- this.autocomplete?.dispatchEvent(new CustomEvent('activeComponentStateChanged', {
1390
- detail: null,
1391
- bubbles: true,
1392
- composed: true
1393
- }));
1394
- };
1395
- /**
1396
- * Renders the content that is shown when there are no matching addresses.
1397
- */
1398
- renderManualAddressInputNoOptionsMessage = () => {
1399
- return (index$1.h("div", { part: "address-not-found" }, index$1.h("p", null, translations.translate('components-address-search-not-found-message')), index$1.h("p", { part: `manual-input ${this.theme}` }, index$1.h("a", { onClick: this.manualAddressInputAction, onKeyDown: a11y.a11yBtnClick, class: { 'tet-link': true, 'dark': this.theme === 'dark' }, tabindex: "0", role: "button" }, translations.translate('components-address-search-manual-address-input')))));
1400
- };
1401
- render() {
1402
- const inputClasses = ['autocomplete-input'];
1403
- if (this.redesignedStyle) {
1404
- inputClasses.push('address-search--redesigned__input-field');
1405
- }
1406
- if (this.newStyle) {
1407
- inputClasses.push('address-search__input--rounded');
1408
- }
1409
- if (this.newFormsStyle) {
1410
- inputClasses.push('address-search__input--forms');
1411
- }
1412
- const isDarkContainerTheme = this.theme === 'dark' || this.theme === 'mint-original';
1413
- const submitButtonTheme = isDarkContainerTheme ? 'dark' : 'light';
1414
- const isButtonActive = (this.elementActive && !this.focusVisible) || this.alwaysExpanded;
1415
- const submitButtonColor = isButtonActive ? undefined : 'var(--tc-grey-80)';
1416
- const submitButtonColorTheme = (isButtonActive && isDarkContainerTheme && this.alwaysExpanded)
1417
- ? 'adaptive-yellow'
1418
- : undefined;
1419
- return (index$1.h(index$1.Host, { key: 'd1d91732d8d070509059f4ad832dba1e890c6b38', class: {
1420
- "address-search": true,
1421
- "address-search--redesigned": this.redesignedStyle,
1422
- "always-expanded": this.alwaysExpanded,
1423
- "keyboard-focus": this.focusVisible,
1424
- "active": this.elementActive,
1425
- [this.theme]: true,
1426
- } }, index$1.h("tet-autocomplete", { key: '762f782aa5ffe9e0717cab060ac7b84e6cd85958', class: `address-search--redesigned__autocomplete
1427
- ${isDarkContainerTheme ? 'dark' : ''}
1428
- `, part: "autocomplete", optionsFilterAction: this.debounceAddressFilter, onOptionSelected: this.handleAutocompleteOptionSelection, noOptionsMessage: translations.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 ? (index$1.h("div", { class: "address-search--redesigned__autocomplete-content" }, index$1.h("div", { class: `address-search--redesigned__input-wrapper
1429
- ${isDarkContainerTheme ? 'dark' : ''}` }, index$1.h("tet-input", { class: `address-search__input address-search--redesigned__input
1430
- ${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 &&
1431
- index$1.h("tet-spinner", { theme: isDarkContainerTheme ? 'dark' : 'light', class: "address-search__spinner", size: "small" }))), index$1.h("div", { class: `address-search--redesigned__button-wrapper
1432
- ${isDarkContainerTheme ? 'dark' : ''}` }, index$1.h("tet-button", { class: "submit-address js-button-mobile button-icon", type: "primary", theme: submitButtonTheme, colorTheme: submitButtonColorTheme, customColorCode: submitButtonColor, "accessibility-label": translations.translate('components-address-search-search'), iconName: "tc-arrow-right", iconMode: true, onClick: this.handleSearchSubmit }), index$1.h("tet-button", { class: "submit-address button js-button", type: "primary", size: "medium", theme: submitButtonTheme, colorTheme: submitButtonColorTheme, customColorCode: submitButtonColor, onClick: this.handleSearchSubmit }, this.searchButtonText)))) : (index$1.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 &&
1433
- index$1.h("tet-spinner", { theme: this.theme === 'dark' ? 'dark' : 'light', class: "address-search__spinner", size: "small" })))), this.redesignedStyle && (index$1.h("div", { key: 'a65f0a12b3fd3325793a04719cb40693ec6fbad7', class: "address-search--redesigned__close-button" }, index$1.h("tet-button", { key: '66e3a7b884f252f8252f98515a0ba1bb2c8ce944', type: "link", iconName: "tc-close", theme: "dark", onMouseDown: (event) => event.preventDefault(), onClick: this.handleCloseButtonClick }, this.closeButtonText)))));
1434
- }
1435
- static get watchers() { return {
1436
- "language": [{
1437
- "onLanguageChanged": 0
1438
- }],
1439
- "addressKey": [{
1440
- "search": 0
1441
- }],
1442
- "inputDisabled": [{
1443
- "onInputDisabledStateChange": 0
1444
- }]
1445
- }; }
1446
- };
1447
- TetAddressSearch.style = tetAddressSearchCss();
1448
-
1449
771
  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)}`;
1450
772
 
1451
773
  const TetAssetAvailabilityAddresses = class {
@@ -1619,7 +941,7 @@ const TetAssetAvailabilityAddresses = class {
1619
941
  }
1620
942
  ;
1621
943
  render() {
1622
- return (index$1.h(index$1.Host, { key: 'f5cdafbd02b89ed321f03bfee0c48ec01a29e9ec', class: { 'asset-adddress-selection': true, [this.theme]: true } }, this.showLoader ? (index$1.h("tet-placeholder", { height: "12.5rem", darkTheme: this.theme === 'dark' })) : (this.renderAddressList())));
944
+ return (index$1.h(index$1.Host, { key: 'e75cd885124012faceae9f6237170895f4c253a2', class: { 'asset-adddress-selection': true, [this.theme]: true } }, this.showLoader ? (index$1.h("tet-placeholder", { height: "12.5rem", darkTheme: this.theme === 'dark' })) : (this.renderAddressList())));
1623
945
  }
1624
946
  static get watchers() { return {
1625
947
  "pid": [{
@@ -1635,207 +957,6 @@ const TetAssetAvailabilityAddresses = class {
1635
957
  };
1636
958
  TetAssetAvailabilityAddresses.style = tetAssetAvailabilityAddressesCss();
1637
959
 
1638
- /**
1639
- * The phone validator class.
1640
- */
1641
- class PhoneNumberValidator {
1642
- errorMessage;
1643
- /**
1644
- * The regex for the phone validation.
1645
- */
1646
- latvianPhoneNumberRegex = '^(((\\+371|00371)[26])|[26])([0-9]{7}$)';
1647
- phoneNumberRegex = '^(?:00|\\+)\\d+$';
1648
- /**
1649
- * Constructor.
1650
- *
1651
- * @param errorMessage
1652
- */
1653
- constructor(errorMessage) {
1654
- this.errorMessage = errorMessage;
1655
- }
1656
- /**
1657
- * Returns validation error message.
1658
- */
1659
- getErrorMessage() {
1660
- return this.errorMessage;
1661
- }
1662
- /**
1663
- * Validation logic.
1664
- *
1665
- * @param value
1666
- */
1667
- validate(value) {
1668
- const validateValue = value.trim();
1669
- // If the phone number begins with either 2, 6, +371, or 00371,
1670
- // we assume that it is a Latvian phone number and validate accordingly.
1671
- if (validateValue.slice(0, 1) === '2' ||
1672
- validateValue.slice(0, 1) === '6' ||
1673
- validateValue.slice(0, 4) === '+371' ||
1674
- validateValue.slice(0, 5) === '00371') {
1675
- return RegExp(this.latvianPhoneNumberRegex).test(validateValue);
1676
- }
1677
- // A generic phone number must begin with either a plus sign or 00.
1678
- return RegExp(this.phoneNumberRegex).test(validateValue);
1679
- }
1680
- }
1681
-
1682
- 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%)}`;
1683
-
1684
- const TetAvailabilityContactForm = class {
1685
- constructor(hostRef) {
1686
- index$1.registerInstance(this, hostRef);
1687
- this.taskCreationSuccess = index$1.createEvent(this, "taskCreationSuccess");
1688
- this.taskCreationFailed = index$1.createEvent(this, "taskCreationFailed");
1689
- }
1690
- /** The input component. */
1691
- phoneInput;
1692
- /** The dialog component. */
1693
- dialogElement;
1694
- /** The list of validators to apply to the input field. */
1695
- validators = [
1696
- new PhoneNumberValidator('components-validation-incorrect-phone'),
1697
- new required.RequiredValidator('components-validation-required')
1698
- ];
1699
- /** The prop that determines whether to show the loader. */
1700
- showLoader = false;
1701
- /** The translation language code for the component. */
1702
- language = 'lv';
1703
- /**
1704
- * The watch to update translations.
1705
- * @param language
1706
- */
1707
- onLanguageChange(language) {
1708
- translations.processTranslations('tet-components', language).then(() => index$1.forceUpdate(this));
1709
- }
1710
- /** The task creation parameters. */
1711
- taskOptions;
1712
- /** The props for the submit button. */
1713
- submitButtonProps = {};
1714
- /** The prop to determine whether to show or hide title text. */
1715
- showTitle = true;
1716
- /** The prop to determine whether to show or hide input label text. */
1717
- showInputLabel = false;
1718
- /** The theme of the input field. */
1719
- theme = 'classic';
1720
- /** The property that determines the color of the component theme. */
1721
- darkTheme = false;
1722
- /** The prop that determines if the form was submitted successfully. */
1723
- success = false;
1724
- /** The prop that determines if the form should be opened. */
1725
- showAvailabilityContactForm = false;
1726
- /**
1727
- * The contact form subtitle. Can provide any translation key from `tet-components` translation group.
1728
- * Otherwise, provide already translated text.
1729
- */
1730
- subtitle = 'components-contact-form-subtitle';
1731
- /** The event emitted if the task creation was successful. */
1732
- taskCreationSuccess;
1733
- /** The event emitted if the task creation failed. */
1734
- taskCreationFailed;
1735
- /**
1736
- * Listen for task creation success event.
1737
- * @param event
1738
- */
1739
- onSuccess(event) {
1740
- if (event) {
1741
- this.success = true;
1742
- }
1743
- }
1744
- /**
1745
- * Listen for empty catalog to open contact form dialog.
1746
- */
1747
- onEmptyCatalog() {
1748
- this.openDialogElement();
1749
- }
1750
- /**
1751
- * Lifecycle method.
1752
- */
1753
- async componentWillLoad() {
1754
- await translations.processTranslations('tet-components', this.language);
1755
- index$1.forceUpdate(this);
1756
- }
1757
- /**
1758
- * Method to close dialog element.
1759
- */
1760
- closeDialogElement = async () => {
1761
- await this.dialogElement.close();
1762
- };
1763
- /**
1764
- * Method to open dialog element.
1765
- */
1766
- openDialogElement = async () => {
1767
- await this.dialogElement.open();
1768
- };
1769
- /**
1770
- * Method to create task for call center.
1771
- */
1772
- createManualTask = async () => {
1773
- this.showLoader = true;
1774
- const phoneInputElement = await this.phoneInput.getInputHtmlElement();
1775
- const errors = await this.phoneInput.validateInput();
1776
- if (errors.length) {
1777
- this.showLoader = false;
1778
- return;
1779
- }
1780
- try {
1781
- const data = await createCallCenterTask(this.getTaskOptions(phoneInputElement.value));
1782
- if (data && data.TaskId) {
1783
- this.taskCreationSuccess.emit(data.TaskId);
1784
- }
1785
- else {
1786
- this.taskCreationFailed.emit();
1787
- }
1788
- }
1789
- catch (error) {
1790
- this.taskCreationFailed.emit(error);
1791
- }
1792
- this.showLoader = false;
1793
- };
1794
- /**
1795
- * Appends the submitted phone number to the task description and returns the options.
1796
- *
1797
- * @param phoneNumber
1798
- */
1799
- getTaskOptions(phoneNumber) {
1800
- const { taskDescription } = this.taskOptions;
1801
- return {
1802
- ...this.taskOptions,
1803
- taskDescription: [taskDescription.trim(), `Phone: ${phoneNumber}`].join(' ')
1804
- };
1805
- }
1806
- ;
1807
- /**
1808
- * Renders the loader.
1809
- */
1810
- renderLoader() {
1811
- return (index$1.h("div", { class: "loader-overlay" }, index$1.h("tet-loader", { class: "loader" })));
1812
- }
1813
- ;
1814
- /**
1815
- * Render contact form.
1816
- */
1817
- renderForm() {
1818
- return (index$1.h("div", null, index$1.h("tet-dialog", { ref: (element) => this.dialogElement = element, "footer-display": "between", "is-open": this.showAvailabilityContactForm, closeOnEscape: false, closeOnOverlayClick: false }, this.showLoader && this.renderLoader(), index$1.h("div", { class: "form-container" }, index$1.h("tet-icon", { name: "info-help-md", class: "icon icon-error icon-size" }), this.showTitle && index$1.h("h2", { class: "form-title" }, translations.translate('components-availability-contact-form-title')), index$1.h("p", { class: "form-subtitle" }, translations.translate('components-availability-contact-form-subtitle')), index$1.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 ? translations.translate('components-availability-contact-form-input-label') : null, theme: this.darkTheme ? 'dark' : 'classic' })), index$1.h("tet-button", { clickCallback: this.closeDialogElement, slot: "footer", size: "medium", type: "secondary", theme: "light" }, translations.translate('components-availability-contact-form-cancel')), index$1.h("tet-button", { slot: "footer", clickCallback: this.createManualTask, size: "medium", theme: "light" }, translations.translate('components-availability-contact-form-send')))));
1819
- }
1820
- /**
1821
- * Render contact form success step.
1822
- */
1823
- renderSuccessStep() {
1824
- return (index$1.h("div", null, index$1.h("tet-dialog", { ref: (element) => this.dialogElement = element, "footer-display": "hidden", "is-open": this.showAvailabilityContactForm, closeOnEscape: true, closeOnOverlayClick: true }, index$1.h("div", { class: "form-container" }, index$1.h("tet-icon", { name: "confirm-md", class: "icon icon-success icon-size" }), this.showTitle && index$1.h("h2", { class: "form-title" }, translations.translate('components-availability-contact-form-success-title')), index$1.h("p", { class: "form-subtitle" }, translations.translate('components-availability-contact-form-success-subtitle')), index$1.h("tet-button", { class: "form-container-close", clickCallback: this.closeDialogElement, size: "medium", type: "primary", theme: "light" }, index$1.h("span", null, translations.translate('components-availability-contact-form-success-close')))))));
1825
- }
1826
- render() {
1827
- return (index$1.h("div", { key: '57c451ddbbcd7f4687a8442093a48fe11fb91eed', class: { 'dark-theme': this.darkTheme } }, this.success ? this.renderSuccessStep() : this.renderForm()));
1828
- }
1829
- static get watchers() { return {
1830
- "language": [{
1831
- "onLanguageChange": 0
1832
- }]
1833
- }; }
1834
- };
1835
- TetAvailabilityContactForm.style = tetAvailabilityContactFormCss();
1836
-
1837
960
  exports.tet_address_offers = TetAddressOffers;
1838
961
  exports.tet_address_offers_filters = TetAddressOffersFilters;
1839
- exports.tet_address_search = TetAddressSearch;
1840
962
  exports.tet_asset_availability_addresses = TetAssetAvailabilityAddresses;
1841
- exports.tet_availability_contact_form = TetAvailabilityContactForm;