@tet/tet-components 1.4.148-testing → 1.4.149-staging

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (428) hide show
  1. package/dist/cjs/{http-codes-D7ffzpYW.js → http-codes-Dr-iFaJ9.js} +1 -1
  2. package/dist/cjs/{index-Dzs7Nkbj.js → index-BEOR8cIU.js} +1 -1
  3. package/dist/cjs/{index-BL_zVDFC.js → index-DRNSo5RU.js} +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{product-comparison-DUzqZuWv.js → product-comparison-_8BsEWy8.js} +1 -1
  6. package/dist/cjs/tet-accordion.cjs.entry.js +1 -1
  7. package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +3 -3
  8. package/dist/cjs/tet-address-offers-view.cjs.entry.js +3 -3
  9. package/dist/cjs/tet-address-offers_5.cjs.entry.js +4 -4
  10. package/dist/cjs/tet-assembler.cjs.entry.js +3 -3
  11. package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +1 -1
  12. package/dist/cjs/tet-autocomplete_2.cjs.entry.js +1 -1
  13. package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +3 -3
  14. package/dist/cjs/tet-b2b-configurator.cjs.entry.js +4 -4
  15. package/dist/cjs/tet-banner-nav.cjs.entry.js +3 -3
  16. package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
  17. package/dist/cjs/tet-border-radius.cjs.entry.js +1 -1
  18. package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
  19. package/dist/cjs/tet-business-compare-card.cjs.entry.js +1 -1
  20. package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
  21. package/dist/cjs/tet-button.cjs.entry.js +1 -1
  22. package/dist/cjs/tet-card-list.cjs.entry.js +1 -1
  23. package/dist/cjs/tet-carousel.cjs.entry.js +3 -3
  24. package/dist/cjs/tet-checkbox_3.cjs.entry.js +7 -3
  25. package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +3 -3
  26. package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
  27. package/dist/cjs/tet-colors.cjs.entry.js +1 -1
  28. package/dist/cjs/tet-compare-card-v2.cjs.entry.js +3 -3
  29. package/dist/cjs/tet-compare-card-v3.cjs.entry.js +3 -3
  30. package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
  31. package/dist/cjs/tet-compare-cards_2.cjs.entry.js +3 -3
  32. package/dist/cjs/tet-components.cjs.js +2 -2
  33. package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
  34. package/dist/cjs/tet-countdown.cjs.entry.js +1 -1
  35. package/dist/cjs/tet-counter.cjs.entry.js +1 -1
  36. package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +1 -1
  37. package/dist/cjs/tet-datepicker.cjs.entry.js +1 -1
  38. package/dist/cjs/tet-dialog.cjs.entry.js +3 -3
  39. package/dist/cjs/tet-display.cjs.entry.js +1 -1
  40. package/dist/cjs/tet-divider.cjs.entry.js +1 -1
  41. package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
  42. package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
  43. package/dist/cjs/tet-expansion-panel.cjs.entry.js +1 -1
  44. package/dist/cjs/tet-feedback-form.cjs.entry.js +3 -3
  45. package/dist/cjs/tet-filter.cjs.entry.js +1 -1
  46. package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
  47. package/dist/cjs/tet-font-weight.cjs.entry.js +1 -1
  48. package/dist/cjs/tet-fonts.cjs.entry.js +1 -1
  49. package/dist/cjs/tet-grid.cjs.entry.js +1 -1
  50. package/dist/cjs/tet-icon.cjs.entry.js +2 -2
  51. package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
  52. package/dist/cjs/tet-input.cjs.entry.js +3 -3
  53. package/dist/cjs/tet-layout.cjs.entry.js +1 -1
  54. package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
  55. package/dist/cjs/tet-link.cjs.entry.js +1 -1
  56. package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
  57. package/dist/cjs/tet-menu.cjs.entry.js +1 -1
  58. package/dist/cjs/tet-mini-compare-card.cjs.entry.js +1 -1
  59. package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +3 -3
  60. package/dist/cjs/tet-navigation-mobile.cjs.entry.js +3 -3
  61. package/dist/cjs/tet-news-card-list.cjs.entry.js +1 -1
  62. package/dist/cjs/tet-news-card.cjs.entry.js +1 -1
  63. package/dist/cjs/tet-notification.cjs.entry.js +1 -1
  64. package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
  65. package/dist/cjs/tet-paginator.cjs.entry.js +6 -4
  66. package/dist/cjs/tet-placeholder.cjs.entry.js +1 -1
  67. package/dist/cjs/tet-position.cjs.entry.js +1 -1
  68. package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
  69. package/dist/cjs/tet-radio-blocks.cjs.entry.js +1 -1
  70. package/dist/cjs/tet-radio_2.cjs.entry.js +1 -1
  71. package/dist/cjs/tet-range-slider.cjs.entry.js +1 -1
  72. package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
  73. package/dist/cjs/tet-snicker-card-group.cjs.entry.js +1 -1
  74. package/dist/cjs/tet-snicker-card.cjs.entry.js +3 -3
  75. package/dist/cjs/tet-spacing.cjs.entry.js +1 -1
  76. package/dist/cjs/tet-spinner.cjs.entry.js +1 -1
  77. package/dist/cjs/tet-stepper-input.cjs.entry.js +3 -3
  78. package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
  79. package/dist/cjs/tet-sticky-offer.cjs.entry.js +1 -1
  80. package/dist/cjs/tet-support-search.cjs.entry.js +1 -1
  81. package/dist/cjs/tet-switch.cjs.entry.js +1 -1
  82. package/dist/cjs/tet-table.cjs.entry.js +1 -1
  83. package/dist/cjs/tet-tag_2.cjs.entry.js +3 -3
  84. package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
  85. package/dist/cjs/tet-text.cjs.entry.js +1 -1
  86. package/dist/cjs/tet-textarea.cjs.entry.js +1 -1
  87. package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
  88. package/dist/cjs/{translations-Uvcq4kv8.js → translations-Dgrvj2-A.js} +1 -1
  89. package/dist/collection/components/simple/inputs/tet-dropdown/tet-dropdown.css +43 -0
  90. package/dist/collection/components/simple/inputs/tet-dropdown/tet-dropdown.js +25 -1
  91. package/dist/collection/components/simple/menu/tet-paginator/tet-paginator.js +23 -1
  92. package/dist/components/index.js +1 -1
  93. package/dist/components/{p-BCZ_nV74.js → p--oNUVPhE.js} +1 -1
  94. package/dist/components/{p-B5Dk5hzj.js → p-4Ucu3g0C.js} +1 -1
  95. package/dist/components/{p--BHbdHcQ.js → p-B2LOw9U1.js} +1 -1
  96. package/dist/components/{p-By8xS2Ys.js → p-B3AKEjT3.js} +1 -1
  97. package/dist/components/{p-CemKaBKV.js → p-B4JYI6Da.js} +1 -1
  98. package/dist/components/{p-BTJ0yItl.js → p-BQr7oJlo.js} +1 -1
  99. package/dist/components/{p-CMxcvnRv.js → p-BSySZotX.js} +1 -1
  100. package/dist/components/{p-DN2JwXg9.js → p-BcXV5sQw.js} +1 -1
  101. package/dist/components/{p-B0WxHzd1.js → p-BcYT5W0z.js} +1 -1
  102. package/dist/components/{p-CDSqRH2x.js → p-BfZ1ZZj-.js} +1 -1
  103. package/dist/components/{p-CL2Agirm.js → p-BpLcsV2G.js} +1 -1
  104. package/dist/components/{p-CSFy0ZOg.js → p-C454nOI2.js} +1 -1
  105. package/dist/components/{p-CRPjTvkU.js → p-C4sjhoYC.js} +1 -1
  106. package/dist/components/{p-CZdY-X-X.js → p-CE7FqWIM.js} +1 -1
  107. package/dist/components/{p-DsRgePgU.js → p-CEYVXw4e.js} +1 -1
  108. package/dist/components/{p-Dr2nLp20.js → p-CHcqkxJU.js} +1 -1
  109. package/dist/components/{p-Cor3VECP.js → p-CHlBG23-.js} +1 -1
  110. package/dist/components/{p-B_LCtA3T.js → p-CNKJVbUM.js} +1 -1
  111. package/dist/components/{p-BbQvtfxD.js → p-CP7MSCkE.js} +1 -1
  112. package/dist/components/{p-Dw0BkIcL.js → p-CUH6nkd0.js} +1 -1
  113. package/dist/components/{p-Mwmrfh0-.js → p-CUh5CugC.js} +1 -1
  114. package/dist/components/{p-lEX8wezw.js → p-CXP2jsSO.js} +1 -1
  115. package/dist/components/{p-Bw-D7nPx.js → p-CaHY4mtM.js} +1 -1
  116. package/dist/components/{p-DesVo0z4.js → p-CacSARKA.js} +1 -1
  117. package/dist/components/{p-BvWhh2Zj.js → p-CcHWhQDQ.js} +1 -1
  118. package/dist/components/{p-DEwpLI-6.js → p-ClGG1pz8.js} +1 -1
  119. package/dist/components/{p-CXef17B1.js → p-CmVD5led.js} +1 -1
  120. package/dist/components/{p-CtH9YzFc.js → p-CtmqySxU.js} +1 -1
  121. package/dist/components/{p-C806_efq.js → p-Cum9fClO.js} +1 -1
  122. package/dist/components/{p-CGv6OEVB.js → p-D1EcTfyQ.js} +1 -1
  123. package/dist/components/{p-ChK9hswC.js → p-D6H-KF7Z.js} +1 -1
  124. package/dist/components/{p-DOHKrJoH.js → p-DA3S_mkH.js} +1 -1
  125. package/dist/components/{p-D8Xy3-us.js → p-DAobsjqJ.js} +1 -1
  126. package/dist/components/{p-C8cwO513.js → p-DB-jANUe.js} +1 -1
  127. package/dist/components/{p-Cz39Cyku.js → p-DDd2g7kx.js} +1 -1
  128. package/dist/components/{p-BOnnNv8Z.js → p-DIZ1sqcq.js} +1 -1
  129. package/dist/components/{p-Cdi7KDBd.js → p-DIyhqSTP.js} +1 -1
  130. package/dist/components/{p-dtbMtDdl.js → p-DJCg82sx.js} +1 -1
  131. package/dist/components/{p-JNpROyw-.js → p-DMpg_LPb.js} +1 -1
  132. package/dist/components/{p-CdulEVw7.js → p-DQGFuy6Q.js} +1 -1
  133. package/dist/components/{p-1m_-23MB.js → p-DQQL2xNs.js} +1 -1
  134. package/dist/components/{p-BbHr_ZQG.js → p-DRY3DK1K.js} +1 -1
  135. package/dist/components/{p-DGTpUa2B.js → p-DTp3hskI.js} +1 -1
  136. package/dist/components/{p-B9bE6qY-.js → p-DZ6ri3Ez.js} +1 -1
  137. package/dist/components/{p-ZmeWEIlj.js → p-DZfyLZam.js} +1 -1
  138. package/dist/components/{p-Ca03NnmU.js → p-Dcd_eoCQ.js} +1 -1
  139. package/dist/components/{p-B4LdtxCG.js → p-Kwq6MnqR.js} +1 -1
  140. package/dist/components/{p-CxbnslX3.js → p-NcCsJO5d.js} +1 -1
  141. package/dist/components/{p-CaIJPjIP.js → p-T3h_f03k.js} +1 -1
  142. package/dist/components/{p-Br4jWI9B.js → p-dg7EpwKx.js} +1 -1
  143. package/dist/components/{p-CCRw8qtH.js → p-vj6Nk2Ur.js} +1 -1
  144. package/dist/components/p-z_Yc5cwo.js +1 -0
  145. package/dist/components/tet-accordion.js +1 -1
  146. package/dist/components/tet-address-offers-filters-products.js +1 -1
  147. package/dist/components/tet-address-offers-filters.js +1 -1
  148. package/dist/components/tet-address-offers-view.js +1 -1
  149. package/dist/components/tet-address-offers.js +1 -1
  150. package/dist/components/tet-address-search.js +1 -1
  151. package/dist/components/tet-assembler.js +1 -1
  152. package/dist/components/tet-asset-availability-addresses.js +1 -1
  153. package/dist/components/tet-autocomplete-dropdown.js +1 -1
  154. package/dist/components/tet-autocomplete.js +1 -1
  155. package/dist/components/tet-availability-contact-form.js +1 -1
  156. package/dist/components/tet-b2b-check-out-form.js +1 -1
  157. package/dist/components/tet-b2b-compare-card.js +1 -1
  158. package/dist/components/tet-b2b-configurator-cart.js +1 -1
  159. package/dist/components/tet-b2b-configurator.js +1 -1
  160. package/dist/components/tet-banner-nav.js +1 -1
  161. package/dist/components/tet-bar-graph.js +1 -1
  162. package/dist/components/tet-border-radius.js +1 -1
  163. package/dist/components/tet-business-card.js +1 -1
  164. package/dist/components/tet-business-compare-card.js +1 -1
  165. package/dist/components/tet-business-navigation.js +1 -1
  166. package/dist/components/tet-business-round-stepper.js +1 -1
  167. package/dist/components/tet-business-summary-card.js +1 -1
  168. package/dist/components/tet-button.js +1 -1
  169. package/dist/components/tet-card-list.js +1 -1
  170. package/dist/components/tet-carousel.js +1 -1
  171. package/dist/components/tet-checkbox.js +1 -1
  172. package/dist/components/tet-cloud-application-form-dialog.js +1 -1
  173. package/dist/components/tet-cloud-configurator.js +1 -1
  174. package/dist/components/tet-colors.js +1 -1
  175. package/dist/components/tet-compare-card-v2.js +1 -1
  176. package/dist/components/tet-compare-card-v3.js +1 -1
  177. package/dist/components/tet-compare-card.js +1 -1
  178. package/dist/components/tet-compare-cards-tab.js +1 -1
  179. package/dist/components/tet-compare-cards.js +1 -1
  180. package/dist/components/tet-container.js +1 -1
  181. package/dist/components/tet-countdown.js +1 -1
  182. package/dist/components/tet-counter.js +1 -1
  183. package/dist/components/tet-datepicker-header.js +1 -1
  184. package/dist/components/tet-datepicker-month-view.js +1 -1
  185. package/dist/components/tet-datepicker-multi-year-view.js +1 -1
  186. package/dist/components/tet-datepicker-year-view.js +1 -1
  187. package/dist/components/tet-datepicker.js +1 -1
  188. package/dist/components/tet-dialog.js +1 -1
  189. package/dist/components/tet-display.js +1 -1
  190. package/dist/components/tet-divider.js +1 -1
  191. package/dist/components/tet-dropdown.js +1 -1
  192. package/dist/components/tet-dynamic-card.js +1 -1
  193. package/dist/components/tet-expandable-input.js +1 -1
  194. package/dist/components/tet-expansion-panel.js +1 -1
  195. package/dist/components/tet-feedback-form.js +1 -1
  196. package/dist/components/tet-filter.js +1 -1
  197. package/dist/components/tet-floating-block.js +1 -1
  198. package/dist/components/tet-font-weight.js +1 -1
  199. package/dist/components/tet-fonts.js +1 -1
  200. package/dist/components/tet-grid.js +1 -1
  201. package/dist/components/tet-icon.js +1 -1
  202. package/dist/components/tet-inline-message.js +1 -1
  203. package/dist/components/tet-input.js +1 -1
  204. package/dist/components/tet-layout.js +1 -1
  205. package/dist/components/tet-link-card-list.js +1 -1
  206. package/dist/components/tet-link.js +1 -1
  207. package/dist/components/tet-loader.js +1 -1
  208. package/dist/components/tet-menu-mobile.js +1 -1
  209. package/dist/components/tet-menu.js +1 -1
  210. package/dist/components/tet-mini-compare-card.js +1 -1
  211. package/dist/components/tet-multi-step-dialog.js +1 -1
  212. package/dist/components/tet-navigation-mobile.js +1 -1
  213. package/dist/components/tet-news-card-list.js +1 -1
  214. package/dist/components/tet-news-card.js +1 -1
  215. package/dist/components/tet-notification.js +1 -1
  216. package/dist/components/tet-number-input.js +1 -1
  217. package/dist/components/tet-paginator.js +1 -1
  218. package/dist/components/tet-placeholder.js +1 -1
  219. package/dist/components/tet-position.js +1 -1
  220. package/dist/components/tet-price-view.js +1 -1
  221. package/dist/components/tet-radio-blocks.js +1 -1
  222. package/dist/components/tet-radio.js +1 -1
  223. package/dist/components/tet-range-slider.js +1 -1
  224. package/dist/components/tet-round-stepper.js +1 -1
  225. package/dist/components/tet-selection-list.js +1 -1
  226. package/dist/components/tet-snicker-card-group.js +1 -1
  227. package/dist/components/tet-snicker-card.js +1 -1
  228. package/dist/components/tet-spacing.js +1 -1
  229. package/dist/components/tet-spinner.js +1 -1
  230. package/dist/components/tet-stepper-input.js +1 -1
  231. package/dist/components/tet-stepper-v3.js +1 -1
  232. package/dist/components/tet-sticky-offer.js +1 -1
  233. package/dist/components/tet-support-search.js +1 -1
  234. package/dist/components/tet-switch.js +1 -1
  235. package/dist/components/tet-tab-content.js +1 -1
  236. package/dist/components/tet-tab-header.js +1 -1
  237. package/dist/components/tet-table.js +1 -1
  238. package/dist/components/tet-tag-group.js +1 -1
  239. package/dist/components/tet-tag.js +1 -1
  240. package/dist/components/tet-text-list.js +1 -1
  241. package/dist/components/tet-text.js +1 -1
  242. package/dist/components/tet-textarea.js +1 -1
  243. package/dist/components/tet-thank-you-view-v3.js +1 -1
  244. package/dist/components/tet-tooltip.js +1 -1
  245. package/dist/esm/{http-codes-BQGPgOl6.js → http-codes-DP6cQyLI.js} +1 -1
  246. package/dist/esm/{index-DScZlZas.js → index-BTdj-C2n.js} +1 -1
  247. package/dist/esm/{index-BGB6gNkz.js → index-BWP8psSS.js} +1 -1
  248. package/dist/esm/loader.js +3 -3
  249. package/dist/esm/{product-comparison-DUVV7BFR.js → product-comparison-CBuVYKp-.js} +1 -1
  250. package/dist/esm/tet-accordion.entry.js +1 -1
  251. package/dist/esm/tet-address-offers-filters-products_2.entry.js +3 -3
  252. package/dist/esm/tet-address-offers-view.entry.js +3 -3
  253. package/dist/esm/tet-address-offers_5.entry.js +4 -4
  254. package/dist/esm/tet-assembler.entry.js +3 -3
  255. package/dist/esm/tet-autocomplete-dropdown.entry.js +1 -1
  256. package/dist/esm/tet-autocomplete_2.entry.js +1 -1
  257. package/dist/esm/tet-b2b-check-out-form_5.entry.js +3 -3
  258. package/dist/esm/tet-b2b-configurator.entry.js +4 -4
  259. package/dist/esm/tet-banner-nav.entry.js +3 -3
  260. package/dist/esm/tet-bar-graph.entry.js +1 -1
  261. package/dist/esm/tet-border-radius.entry.js +1 -1
  262. package/dist/esm/tet-business-card.entry.js +1 -1
  263. package/dist/esm/tet-business-compare-card.entry.js +1 -1
  264. package/dist/esm/tet-business-round-stepper.entry.js +1 -1
  265. package/dist/esm/tet-button.entry.js +1 -1
  266. package/dist/esm/tet-card-list.entry.js +1 -1
  267. package/dist/esm/tet-carousel.entry.js +3 -3
  268. package/dist/esm/tet-checkbox_3.entry.js +7 -3
  269. package/dist/esm/tet-cloud-application-form-dialog.entry.js +3 -3
  270. package/dist/esm/tet-cloud-configurator.entry.js +3 -3
  271. package/dist/esm/tet-colors.entry.js +1 -1
  272. package/dist/esm/tet-compare-card-v2.entry.js +3 -3
  273. package/dist/esm/tet-compare-card-v3.entry.js +3 -3
  274. package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
  275. package/dist/esm/tet-compare-cards_2.entry.js +3 -3
  276. package/dist/esm/tet-components.js +3 -3
  277. package/dist/esm/tet-container_2.entry.js +1 -1
  278. package/dist/esm/tet-countdown.entry.js +1 -1
  279. package/dist/esm/tet-counter.entry.js +1 -1
  280. package/dist/esm/tet-datepicker-header_4.entry.js +1 -1
  281. package/dist/esm/tet-datepicker.entry.js +1 -1
  282. package/dist/esm/tet-dialog.entry.js +3 -3
  283. package/dist/esm/tet-display.entry.js +1 -1
  284. package/dist/esm/tet-divider.entry.js +1 -1
  285. package/dist/esm/tet-dynamic-card.entry.js +1 -1
  286. package/dist/esm/tet-expandable-input.entry.js +1 -1
  287. package/dist/esm/tet-expansion-panel.entry.js +1 -1
  288. package/dist/esm/tet-feedback-form.entry.js +3 -3
  289. package/dist/esm/tet-filter.entry.js +1 -1
  290. package/dist/esm/tet-floating-block.entry.js +1 -1
  291. package/dist/esm/tet-font-weight.entry.js +1 -1
  292. package/dist/esm/tet-fonts.entry.js +1 -1
  293. package/dist/esm/tet-grid.entry.js +1 -1
  294. package/dist/esm/tet-icon.entry.js +2 -2
  295. package/dist/esm/tet-inline-message.entry.js +1 -1
  296. package/dist/esm/tet-input.entry.js +3 -3
  297. package/dist/esm/tet-layout.entry.js +1 -1
  298. package/dist/esm/tet-link-card-list.entry.js +1 -1
  299. package/dist/esm/tet-link.entry.js +1 -1
  300. package/dist/esm/tet-menu-mobile.entry.js +1 -1
  301. package/dist/esm/tet-menu.entry.js +1 -1
  302. package/dist/esm/tet-mini-compare-card.entry.js +1 -1
  303. package/dist/esm/tet-multi-step-dialog.entry.js +3 -3
  304. package/dist/esm/tet-navigation-mobile.entry.js +3 -3
  305. package/dist/esm/tet-news-card-list.entry.js +1 -1
  306. package/dist/esm/tet-news-card.entry.js +1 -1
  307. package/dist/esm/tet-notification.entry.js +1 -1
  308. package/dist/esm/tet-number-input.entry.js +1 -1
  309. package/dist/esm/tet-paginator.entry.js +6 -4
  310. package/dist/esm/tet-placeholder.entry.js +1 -1
  311. package/dist/esm/tet-position.entry.js +1 -1
  312. package/dist/esm/tet-price-view.entry.js +1 -1
  313. package/dist/esm/tet-radio-blocks.entry.js +1 -1
  314. package/dist/esm/tet-radio_2.entry.js +1 -1
  315. package/dist/esm/tet-range-slider.entry.js +1 -1
  316. package/dist/esm/tet-round-stepper.entry.js +1 -1
  317. package/dist/esm/tet-snicker-card-group.entry.js +1 -1
  318. package/dist/esm/tet-snicker-card.entry.js +3 -3
  319. package/dist/esm/tet-spacing.entry.js +1 -1
  320. package/dist/esm/tet-spinner.entry.js +1 -1
  321. package/dist/esm/tet-stepper-input.entry.js +3 -3
  322. package/dist/esm/tet-stepper-v3.entry.js +1 -1
  323. package/dist/esm/tet-sticky-offer.entry.js +1 -1
  324. package/dist/esm/tet-support-search.entry.js +1 -1
  325. package/dist/esm/tet-switch.entry.js +1 -1
  326. package/dist/esm/tet-table.entry.js +1 -1
  327. package/dist/esm/tet-tag_2.entry.js +3 -3
  328. package/dist/esm/tet-text-list.entry.js +1 -1
  329. package/dist/esm/tet-text.entry.js +1 -1
  330. package/dist/esm/tet-textarea.entry.js +1 -1
  331. package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
  332. package/dist/esm/{translations-Dc2OQnbI.js → translations-BxuQY6H_.js} +1 -1
  333. package/dist/tet-components/{p-7cc6b959.entry.js → p-0821f339.entry.js} +1 -1
  334. package/dist/tet-components/{p-2c84bff1.entry.js → p-11bb38bc.entry.js} +1 -1
  335. package/dist/tet-components/{p-92340a39.entry.js → p-132da9f3.entry.js} +1 -1
  336. package/dist/tet-components/{p-ecdaf331.entry.js → p-14fa05f5.entry.js} +1 -1
  337. package/dist/tet-components/p-15bd70e7.entry.js +1 -0
  338. package/dist/tet-components/{p-30523176.entry.js → p-15df2f2b.entry.js} +1 -1
  339. package/dist/tet-components/{p-1b29e5f2.entry.js → p-1a24d6bb.entry.js} +1 -1
  340. package/dist/tet-components/{p-6146284d.entry.js → p-1bb794e8.entry.js} +1 -1
  341. package/dist/tet-components/{p-01577a41.entry.js → p-1c58ffe4.entry.js} +1 -1
  342. package/dist/tet-components/{p-bb16b0e5.entry.js → p-1dc250ec.entry.js} +1 -1
  343. package/dist/tet-components/{p-a579df12.entry.js → p-1dfbd098.entry.js} +1 -1
  344. package/dist/tet-components/{p-9cee887f.entry.js → p-2538d199.entry.js} +1 -1
  345. package/dist/tet-components/{p-380c13f1.entry.js → p-2a96f73a.entry.js} +1 -1
  346. package/dist/tet-components/{p-a240b7c2.entry.js → p-315b6aac.entry.js} +1 -1
  347. package/dist/tet-components/{p-49ba40a1.entry.js → p-34a661a6.entry.js} +1 -1
  348. package/dist/tet-components/{p-c9c4656e.entry.js → p-376e55d2.entry.js} +1 -1
  349. package/dist/tet-components/{p-87675c65.entry.js → p-38192518.entry.js} +1 -1
  350. package/dist/tet-components/{p-9d103705.entry.js → p-3b186178.entry.js} +1 -1
  351. package/dist/tet-components/{p-0c0dec4c.entry.js → p-3bbf937c.entry.js} +1 -1
  352. package/dist/tet-components/{p-0996dd5a.entry.js → p-3c232c0d.entry.js} +1 -1
  353. package/dist/tet-components/{p-f23fbdab.entry.js → p-3c489f4d.entry.js} +1 -1
  354. package/dist/tet-components/{p-de8125d5.entry.js → p-4187e993.entry.js} +1 -1
  355. package/dist/tet-components/{p-b31a3fa1.entry.js → p-43bd87cf.entry.js} +1 -1
  356. package/dist/tet-components/{p-fbb45705.entry.js → p-4a6bf53c.entry.js} +1 -1
  357. package/dist/tet-components/{p-6bc9b958.entry.js → p-4d985d70.entry.js} +1 -1
  358. package/dist/tet-components/{p-e2d4e5c3.entry.js → p-4f339642.entry.js} +1 -1
  359. package/dist/tet-components/{p-129027b6.entry.js → p-51fccc0d.entry.js} +1 -1
  360. package/dist/tet-components/{p-3af65955.entry.js → p-52cc694d.entry.js} +1 -1
  361. package/dist/tet-components/{p-0386aeb9.entry.js → p-5317947b.entry.js} +1 -1
  362. package/dist/tet-components/{p-8ad37783.entry.js → p-57d267fa.entry.js} +1 -1
  363. package/dist/tet-components/{p-ec596eb2.entry.js → p-59a4500c.entry.js} +1 -1
  364. package/dist/tet-components/p-5a3ca73d.entry.js +1 -0
  365. package/dist/tet-components/{p-185e98b4.entry.js → p-5d2b1316.entry.js} +1 -1
  366. package/dist/tet-components/{p-c6dc0917.entry.js → p-61a9bc72.entry.js} +1 -1
  367. package/dist/tet-components/{p-ad0b78d5.entry.js → p-64b9b07d.entry.js} +1 -1
  368. package/dist/tet-components/{p-38459b69.entry.js → p-6ca9f8e7.entry.js} +1 -1
  369. package/dist/tet-components/{p-45c01709.entry.js → p-6fd37205.entry.js} +1 -1
  370. package/dist/tet-components/{p-c97d7c52.entry.js → p-70af2afa.entry.js} +1 -1
  371. package/dist/tet-components/{p-7dcb307f.entry.js → p-71f9504c.entry.js} +1 -1
  372. package/dist/tet-components/{p-5e237b6d.entry.js → p-73f3d6e1.entry.js} +1 -1
  373. package/dist/tet-components/{p-830e4fe6.entry.js → p-77ef94a7.entry.js} +1 -1
  374. package/dist/tet-components/{p-b3acb430.entry.js → p-78fe0d42.entry.js} +1 -1
  375. package/dist/tet-components/{p-386be2d5.entry.js → p-7c4ef1a9.entry.js} +1 -1
  376. package/dist/tet-components/{p-47b65d11.entry.js → p-7fac3d04.entry.js} +1 -1
  377. package/dist/tet-components/{p-4b92e8e6.entry.js → p-82d5f453.entry.js} +1 -1
  378. package/dist/tet-components/{p-b8b2a9f5.entry.js → p-8903db67.entry.js} +1 -1
  379. package/dist/tet-components/{p-4db60df6.entry.js → p-94c9fce7.entry.js} +1 -1
  380. package/dist/tet-components/{p-f5cf45c1.entry.js → p-96f0eff9.entry.js} +1 -1
  381. package/dist/tet-components/{p-11ed5b55.entry.js → p-9988e041.entry.js} +1 -1
  382. package/dist/tet-components/{p-6ec585b8.entry.js → p-9af88202.entry.js} +1 -1
  383. package/dist/tet-components/{p-BGB6gNkz.js → p-BWP8psSS.js} +1 -1
  384. package/dist/tet-components/p-Bi5WA4Eb.js +1 -0
  385. package/dist/tet-components/{p-DX1IQAn5.js → p-CEkiSmjX.js} +1 -1
  386. package/dist/tet-components/p-D5A3ic42.js +1 -0
  387. package/dist/tet-components/{p-DbJll7nz.js → p-Ojgt8vhK.js} +1 -1
  388. package/dist/tet-components/{p-c96c5b96.entry.js → p-a178ca0d.entry.js} +1 -1
  389. package/dist/tet-components/{p-b82a4ea3.entry.js → p-a5e44414.entry.js} +1 -1
  390. package/dist/tet-components/{p-51e6df01.entry.js → p-a7d8477f.entry.js} +1 -1
  391. package/dist/tet-components/{p-6a8f5935.entry.js → p-a9d5bc77.entry.js} +1 -1
  392. package/dist/tet-components/{p-74877031.entry.js → p-b1ad17b9.entry.js} +1 -1
  393. package/dist/tet-components/{p-db2a72c7.entry.js → p-b2c85619.entry.js} +1 -1
  394. package/dist/tet-components/{p-c2d6ac75.entry.js → p-b49ea768.entry.js} +1 -1
  395. package/dist/tet-components/{p-632d382c.entry.js → p-b64f4147.entry.js} +1 -1
  396. package/dist/tet-components/{p-78975957.entry.js → p-b98a8b9e.entry.js} +1 -1
  397. package/dist/tet-components/{p-ea9d92f6.entry.js → p-c3455ad8.entry.js} +1 -1
  398. package/dist/tet-components/{p-74ccd606.entry.js → p-c6419606.entry.js} +1 -1
  399. package/dist/tet-components/{p-37c3f4c6.entry.js → p-c7473b74.entry.js} +1 -1
  400. package/dist/tet-components/{p-acdbec26.entry.js → p-cad7f27d.entry.js} +1 -1
  401. package/dist/tet-components/{p-4804006b.entry.js → p-cafa7f45.entry.js} +1 -1
  402. package/dist/tet-components/{p-cd7efc99.entry.js → p-d2179734.entry.js} +1 -1
  403. package/dist/tet-components/{p-3ae8cca8.entry.js → p-d64c6445.entry.js} +1 -1
  404. package/dist/tet-components/{p-cc3e87fe.entry.js → p-d9b9bae7.entry.js} +1 -1
  405. package/dist/tet-components/{p-a96d7e90.entry.js → p-dfe40a38.entry.js} +1 -1
  406. package/dist/tet-components/{p-7338bab9.entry.js → p-e0aacafc.entry.js} +1 -1
  407. package/dist/tet-components/{p-2ac83b4c.entry.js → p-e362d48f.entry.js} +1 -1
  408. package/dist/tet-components/{p-a4d98d8f.entry.js → p-e4cc950c.entry.js} +1 -1
  409. package/dist/tet-components/{p-41763924.entry.js → p-eab06d8d.entry.js} +1 -1
  410. package/dist/tet-components/{p-e7e18cc4.entry.js → p-eb219b3a.entry.js} +1 -1
  411. package/dist/tet-components/{p-e0752dc6.entry.js → p-ef27c46b.entry.js} +1 -1
  412. package/dist/tet-components/{p-8310d42d.entry.js → p-f0a12cbd.entry.js} +1 -1
  413. package/dist/tet-components/{p-1c254d23.entry.js → p-f3baa590.entry.js} +1 -1
  414. package/dist/tet-components/{p-119e349d.entry.js → p-f63194a6.entry.js} +1 -1
  415. package/dist/tet-components/{p-24058988.entry.js → p-f6d3abd5.entry.js} +1 -1
  416. package/dist/tet-components/{p-a560fec1.entry.js → p-f6f7436d.entry.js} +1 -1
  417. package/dist/tet-components/{p-0e32545c.entry.js → p-f78dd5fe.entry.js} +1 -1
  418. package/dist/tet-components/{p-4a39f6bc.entry.js → p-f7b720ca.entry.js} +1 -1
  419. package/dist/tet-components/tet-components.esm.js +1 -1
  420. package/dist/types/components/simple/inputs/tet-dropdown/tet-dropdown.d.ts +2 -0
  421. package/dist/types/components/simple/menu/tet-paginator/tet-paginator.d.ts +2 -0
  422. package/dist/types/components.d.ts +22 -0
  423. package/package.json +1 -1
  424. package/dist/components/p-BGk18SzH.js +0 -1
  425. package/dist/tet-components/p-0d1a1939.entry.js +0 -1
  426. package/dist/tet-components/p-160ad29a.entry.js +0 -1
  427. package/dist/tet-components/p-BzLFf73g.js +0 -1
  428. package/dist/tet-components/p-C1XJmhDH.js +0 -1
@@ -1 +1 @@
1
- import{p as t,H as o,d as e,h as r,c as a,t as n}from"./p-Cdi7KDBd.js";import"./p-Br4jWI9B.js";import{p as i}from"./p-lEX8wezw.js";import{g as c}from"./p-BjOGAbQL.js";import{d as s}from"./p-Cz39Cyku.js";import{d as l}from"./p-1m_-23MB.js";import{d}from"./p-C8cwO513.js";import{d as f}from"./p-BGk18SzH.js";import{d as m}from"./p-ZmeWEIlj.js";import{d as p}from"./p-DsRgePgU.js";import{d as h}from"./p-CSFy0ZOg.js";const w=(t,o,e,r,a,n=!1)=>{const i=t.options,s=e.contractTerms,l=e.contractTerms[0],d=e.attributes?.find((t=>"isBestChoice"===t.key))?.value??!1;let f=t.language,m=null,p=null,h=null,w=null;const y=s.find((t=>0===t.term));null!==l.contract&&(m=l.contract),null!==l.priceDescription&&(p=l.priceDescription[f]),e.benefits?.[f]&&(h=e.benefits[f].split("\n"));let g=y.amount;const u=e.formUrl[f],k={product:o,contractTerm:0};void 0!==t.options.contractTerm&&s.forEach((o=>{parseFloat(t.options.contractTerm)===o.term&&(o.isAlwaysOn||o.showDiscount)&&(k.product=e.productCode,k.contractTerm=o.term,k.promotion=o.promotionCode,g=o.amount,m=o.contract,p=o.priceDescription?o.priceDescription[f]:"",o.showDiscount&&(w=parseFloat(e.amount.toString()).toFixed(2).replace(".",",")),o.benefits?.[f]&&(h=o.benefits[f].split("\n")))}));let b=c(u,k);b=i.manualForm&&""!==i.link?i.link:b+"&lang="+f,i.formParameters&&(b+=i.formParameters);const v=parseFloat(g.toString()).toFixed(2).replace(".",",");return(t={...t,bestChoice:d}).options={...i,price:v,oldPrice:w,mainTitle:e.name[f],subTitle:e.subtitle[f],bulletPoints:h,infoItem:""!==e.descriptionTooltip[f]?'<tet-icon class="icon" name="info-circle" focusable={true}></tet-icon><tet-tooltip class="tet-tooltip">'+e.descriptionTooltip[f]+"</tet-tooltip><style>.tet-tooltip { --text-font: var(--font-family-content) }</style>":"",link:b.toString(),secondaryLink:m,helper:p,theme:r,darkMode:a,isNetflixCard:n},t.isNetflixCard||delete t.productCode,t},y=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.compareCardDataChange=e(this,"compareCardDataChange"),this.compareCardsDidRender=e(this,"compareCardsDidRender")}data;vatText;forceColumn;theme;layout="default";cardScript;changedProductCode;isNetflixCard=!1;darkMode=!1;initializedState=!1;onDataChange(){this.compareCardDataChange.emit(),this.initializedState=!0}compareCardDataChange;compareCardsDidRender;showLoader=!0;onOptionSelected(t){const o=[];this.changedProductCode=t.detail.value,o.push(this.changedProductCode),this.getProductData(o.join(","),!1)}get host(){return this}async componentWillLoad(){let t=[];this.data.forEach((o=>{void 0!==o.productCode&&(t.includes(o.productCode)||t.push(o.productCode))})),t.length>0?await this.getProductData(t.join(",")):this.showLoader=!1}async componentDidRender(){this.compareCardsDidRender.emit()}getProductData(t,o=!0){o&&(this.showLoader=!0),i(t).then((t=>{const o=[];this.data.forEach((e=>{let r=e.productCode;e.isNetflixCard&&(this.changedProductCode===e.secondaryProductCode?r=e.secondaryProductCode:this.changedProductCode===e.productCode&&(r=e.productCode));const a=t.products[r];a&&(e=w(e,r,a,this.theme)),o.push(e)})),this.data=o,this.showLoader=!1}))}renderLoader=()=>r("div",{class:"cards"},[...Array(3)].map((()=>[r("tet-placeholder",{class:"tet-placeholder",height:"27rem",width:"21.5rem",darkTheme:this.darkMode})])));render(){return r(a,{key:"155bba17580e784b135a2e769a83663aafddcc8e",class:{"must-initialize":!0,initialized:this.initializedState}},this.showLoader?this.renderLoader():r("div",{class:{"tet-compare-cards-wrapper":!0,"force-column":this.forceColumn}},r("div",{class:{cards:!0,[`${this.layout}`]:!0}},this.data.map(((t,o)=>r("tet-compare-card",{class:{"tet-compare-card":!0,"tet-compare-card--thumbnail":!!t.thumbnail},index:o,language:t.language,options:t.options,"card-type":t.cardType,theme:t.theme,"best-choice":t.bestChoice,"color-icons":t.colorIcons,"full-height":t.fullHeight,"card-header":t.cardHeader,logo:t.logo,image:t.image,"card-background-color":t.cardBackgroundColor,"card-script":t.cardScript,hideBestChoiceBorder:t.hideBestChoiceBorder,withBorder:t.withBorder,"best-choice-text-position":t.bestChoiceTextPosition,bestChoiceTextFloating:t.bestChoiceTextFloating,priceShownVertically:t.priceShownVertically,"secondary-link-position":t.secondaryLinkPosition,thumbnail:t.thumbnail,thumbnailAlt:t.thumbnailAlt,showBulletPoints:t.showBulletPoints,showSubTitle:t.showSubTitle,showHelper:t.showHelper,isNetflixCard:t.isNetflixCard,darkMode:this.darkMode},r("div",{slot:"image-slot"},r("img",{style:{width:"100%"},src:t.image,alt:(t.image??"").split("/")?.pop()?.split(".")[0]??t.image,loading:"lazy"})),r("div",{slot:"logo-slot"},r("img",{style:{width:"100%"},src:t.logo,alt:(t.logo??"").split("/")?.pop()?.split(".")[0]??t.logo,loading:"lazy"})),r("div",{slot:"description-slot",innerHTML:t.cardDescription,class:this.darkMode?"dark":""}))))),this.vatText?r("div",{class:"vat"},r("div",{class:"vat__text",innerHTML:this.vatText})):""),this.cardScript?r("link",{href:this.cardScript,rel:"stylesheet",type:"text/css"}):"")}static get watchers(){return{data:[{onDataChange:0}]}}static get style(){return':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:root{--tet-link-color:var(--tc-text-primary);--tet-link-color-hover:var(--tc-text-secondary);--tet-link-color-active:var(--tc-text-tertiary);--tet-link-color-focus:var(--tc-blue-40);--tet-link-color-disabled:var(--tc-button-text-inverse-disabled);--tet-link-secondary-color:var(--tc-text-secondary);--tet-link-secondary-color-hover:var(--tc-text-primary)}.tet-link,.tet-link__arrow{text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;color:var(--tet-link-color);position:relative;line-height:1.5rem;cursor:pointer}.tet-link.dark,.tet-link__arrow.dark{--tet-link-color:var(--tc-text-primary-dark);--tet-link-color-hover:var(--tc-text-secondary-dark);--tet-link-color-active:var(--tc-text-tertiary-dark);--tet-link-color-focus:var(--tc-blue-40-dark);--tet-link-color-disabled:var(--tc-button-text-inverse-disabled-dark);--tet-link-secondary-color:var(--tc-text-secondary-dark);--tet-link-secondary-color-hover:var(--tc-text-primary-dark)}.tet-link.tet-link--secondary,.tet-link__arrow.tet-link--secondary{--tet-link-color:var(--tet-link-secondary-color);--tet-link-color-hover:var(--tet-link-secondary-color-hover)}.tet-link tet-icon,.tet-link__arrow tet-icon{--icon-color:var(--tet-link-color)}.tet-link:hover,.tet-link__arrow:hover{color:var(--tet-link-color-hover)}.tet-link:hover tet-icon,.tet-link__arrow:hover tet-icon{--icon-color:var(--tet-link-color-hover)}.tet-link:active,.tet-link__arrow:active{color:var(--tet-link-color-active)}.tet-link:active tet-icon,.tet-link__arrow:active tet-icon{--icon-color:var(--tet-link-color-active)}.tet-link:focus-visible,.tet-link__arrow:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s;outline-color:var(--tet-link-color-focus);border-radius:0.125rem}.tet-link.disabled,.tet-link__arrow.disabled{color:var(--tet-link-color-disabled);pointer-events:none;cursor:auto}.tet-link.disabled tet-icon,.tet-link__arrow.disabled tet-icon{--icon-color:var(--tet-link-color-disabled)}.tet-link.disabled:focus-visible,.tet-link__arrow.disabled:focus-visible{outline:none}.tet-link tet-icon,.tet-link__arrow tet-icon{padding-left:0.25rem;padding-right:0.25rem;--icon-container-display:inline-block}.tet-link__arrow{padding-right:1.5rem}.tet-link__arrow::after{content:"--\x3e";position:absolute;white-space:nowrap;display:inline-block;text-decoration:none;padding-left:0.25rem;letter-spacing:initial;transition:all 0.15s ease-in}.tet-link__arrow:hover::after{padding-left:0.375rem}:host{--compare-cards-wrap:nowrap;--compare-cards-flex-direction:row;--compare-cards-flex-align-items:center;--compare-cards-padding:1.5rem;--compare-cards-price-padding:0;--compare-cards-border-radius:1.5rem;--compare-cards-new-price-font-size:2.5rem;--compare-cards-old-price-font-size:1rem;--compare-cards-new-currency-font-size:1.125rem;--compare-cards-title-margin-top:1.25rem;--compare-cards-helper-margin-top:0;--compare-cards-card-max-width:32rem;--compare-cards-price-wrapper-margin-top:auto;--compare-cards-secondary-link-font-size:0.75rem;--compare-cards-price-line-height:3rem;--compare-cards-thumbnail-display:flex;--compare-cards-thumbnail-card-radius:0 var(--compare-cards-border-radius) var(--compare-cards-border-radius) 0;--compare-cards-thumbnail-card-width:44rem;display:block}:host([theme=dark]) .card,:host([theme=dark]){--compare-card-background-color:var(--tc-background-primary-dark);--compare-cards-background:var(--tc-background-primary-dark);--compare-cards-card-background:var(--tc-background-secondary-dark);--compare-cards-text-color:var(--tc-text-primary-dark);--compare-cards-border-color:var(--tc-border-secondary-dark);--compare-cards-link-color:var(--tc-text-link-dark);--compare-cards-price-color:var(--tc-text-primary-dark)}.vat{color:var(--color-text-secondary);font:400 0.75rem/1rem Inter, Gilroy, Arial, sans-serif;display:flex;justify-content:center}.vat__text{width:100%;text-align:center;padding-top:0.5rem}.cards{display:flex;flex-direction:var(--compare-cards-flex-direction);flex-wrap:var(--compare-cards-wrap);gap:1rem;justify-content:center}.cards>*:nth-child(n+5){margin-top:1rem}.cards .tet-placeholder{--placeholder-border-radius:1.5rem}.cards .tet-compare-card{--compare-card-padding:var(--compare-cards-padding);--compare-card-price-padding:var(--compare-cards-price-padding);--compare-card-border-radius:var(--compare-cards-border-radius);--compare-card-new-price-font-size:var(--compare-cards-new-price-font-size);--compare-card-old-price-font-size:var(--compare-cards-old-price-font-size);--compare-card-new-currency-font-size:var(--compare-cards-new-currency-font-size);--compare-card-title-margin-top:var(--compare-cards-title-margin-top);--compare-card-helper-margin-top:var(--compare-cards-helper-margin-top);--compare-card-price-wrapper-margin-top:var(--compare-cards-price-wrapper-margin-top);--compare-card-secondary-link-font-size:var(--compare-cards-secondary-link-font-size);--compare-card-price-line-height:var(--compare-cards-price-line-height);--compare-card-thumbnail-display:var(--compare-cards-thumbnail-display);--compare-card-thumbnail-card-radius:var(--compare-cards-thumbnail-card-radius);--compare-card-thumbnail-card-width:var(--compare-cards-thumbnail-card-width)}.cards .tet-compare-card.dark{--compare-card-background-color:var(--tc-background-primary-dark);--compare-cards-background:var(--tc-background-primary-dark);--compare-cards-card-background:var(--tc-background-secondary-dark);--compare-cards-text-color:var(--tc-text-primary-dark);--compare-cards-border-color:var(--tc-border-secondary-dark);--compare-cards-link-color:var(--tc-text-link-dark);--compare-cards-price-color:var(--tc-text-primary-dark)}.cards .tet-compare-card--thumbnail{--compare-cards-card-max-width:var(--compare-card-thumbnail-card-width)}.cards .tet-compare-card[card-type=regular]{max-width:var(--compare-cards-card-max-width);width:100%}.cards.column-two{display:grid;grid-template-columns:repeat(2, minmax(19rem, 25rem))}.force-column .cards.column-two{grid-template-columns:minmax(1rem, 32rem)}.cards.column-four{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:1rem}.force-column .cards{--compare-cards-wrap:wrap;--compare-cards-flex-direction:column;align-items:var(--compare-cards-flex-align-items)}.force-column .cards>:nth-child(-n+4){margin-top:1rem}'}},[513,"tet-compare-cards",{data:[1040],vatText:[1,"vat-text"],forceColumn:[4,"force-column"],theme:[1],layout:[1],cardScript:[1,"card-script"],changedProductCode:[1,"changed-product-code"],isNetflixCard:[4,"is-netflix-card"],darkMode:[4,"dark-mode"],initializedState:[32],showLoader:[32]},[[0,"optionSelected","onOptionSelected"]],{data:[{onDataChange:0}]}]);function g(){"undefined"!=typeof customElements&&["tet-compare-cards","tet-button","tet-checkbox","tet-compare-card","tet-dropdown","tet-icon","tet-placeholder","tet-tooltip"].forEach((t=>{switch(t){case"tet-compare-cards":customElements.get(n(t))||customElements.define(n(t),y);break;case"tet-button":customElements.get(n(t))||s();break;case"tet-checkbox":customElements.get(n(t))||l();break;case"tet-compare-card":customElements.get(n(t))||d();break;case"tet-dropdown":customElements.get(n(t))||f();break;case"tet-icon":customElements.get(n(t))||m();break;case"tet-placeholder":customElements.get(n(t))||p();break;case"tet-tooltip":customElements.get(n(t))||h()}}))}export{y as T,g as d,w as f}
1
+ import{p as t,H as o,d as e,h as r,c as a,t as n}from"./p-DIyhqSTP.js";import"./p-dg7EpwKx.js";import{p as i}from"./p-CXP2jsSO.js";import{g as c}from"./p-BjOGAbQL.js";import{d as s}from"./p-DDd2g7kx.js";import{d as l}from"./p-DQQL2xNs.js";import{d}from"./p-DB-jANUe.js";import{d as f}from"./p-z_Yc5cwo.js";import{d as m}from"./p-DZfyLZam.js";import{d as p}from"./p-CEYVXw4e.js";import{d as h}from"./p-C454nOI2.js";const w=(t,o,e,r,a,n=!1)=>{const i=t.options,s=e.contractTerms,l=e.contractTerms[0],d=e.attributes?.find((t=>"isBestChoice"===t.key))?.value??!1;let f=t.language,m=null,p=null,h=null,w=null;const y=s.find((t=>0===t.term));null!==l.contract&&(m=l.contract),null!==l.priceDescription&&(p=l.priceDescription[f]),e.benefits?.[f]&&(h=e.benefits[f].split("\n"));let g=y.amount;const u=e.formUrl[f],k={product:o,contractTerm:0};void 0!==t.options.contractTerm&&s.forEach((o=>{parseFloat(t.options.contractTerm)===o.term&&(o.isAlwaysOn||o.showDiscount)&&(k.product=e.productCode,k.contractTerm=o.term,k.promotion=o.promotionCode,g=o.amount,m=o.contract,p=o.priceDescription?o.priceDescription[f]:"",o.showDiscount&&(w=parseFloat(e.amount.toString()).toFixed(2).replace(".",",")),o.benefits?.[f]&&(h=o.benefits[f].split("\n")))}));let b=c(u,k);b=i.manualForm&&""!==i.link?i.link:b+"&lang="+f,i.formParameters&&(b+=i.formParameters);const v=parseFloat(g.toString()).toFixed(2).replace(".",",");return(t={...t,bestChoice:d}).options={...i,price:v,oldPrice:w,mainTitle:e.name[f],subTitle:e.subtitle[f],bulletPoints:h,infoItem:""!==e.descriptionTooltip[f]?'<tet-icon class="icon" name="info-circle" focusable={true}></tet-icon><tet-tooltip class="tet-tooltip">'+e.descriptionTooltip[f]+"</tet-tooltip><style>.tet-tooltip { --text-font: var(--font-family-content) }</style>":"",link:b.toString(),secondaryLink:m,helper:p,theme:r,darkMode:a,isNetflixCard:n},t.isNetflixCard||delete t.productCode,t},y=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.compareCardDataChange=e(this,"compareCardDataChange"),this.compareCardsDidRender=e(this,"compareCardsDidRender")}data;vatText;forceColumn;theme;layout="default";cardScript;changedProductCode;isNetflixCard=!1;darkMode=!1;initializedState=!1;onDataChange(){this.compareCardDataChange.emit(),this.initializedState=!0}compareCardDataChange;compareCardsDidRender;showLoader=!0;onOptionSelected(t){const o=[];this.changedProductCode=t.detail.value,o.push(this.changedProductCode),this.getProductData(o.join(","),!1)}get host(){return this}async componentWillLoad(){let t=[];this.data.forEach((o=>{void 0!==o.productCode&&(t.includes(o.productCode)||t.push(o.productCode))})),t.length>0?await this.getProductData(t.join(",")):this.showLoader=!1}async componentDidRender(){this.compareCardsDidRender.emit()}getProductData(t,o=!0){o&&(this.showLoader=!0),i(t).then((t=>{const o=[];this.data.forEach((e=>{let r=e.productCode;e.isNetflixCard&&(this.changedProductCode===e.secondaryProductCode?r=e.secondaryProductCode:this.changedProductCode===e.productCode&&(r=e.productCode));const a=t.products[r];a&&(e=w(e,r,a,this.theme)),o.push(e)})),this.data=o,this.showLoader=!1}))}renderLoader=()=>r("div",{class:"cards"},[...Array(3)].map((()=>[r("tet-placeholder",{class:"tet-placeholder",height:"27rem",width:"21.5rem",darkTheme:this.darkMode})])));render(){return r(a,{key:"155bba17580e784b135a2e769a83663aafddcc8e",class:{"must-initialize":!0,initialized:this.initializedState}},this.showLoader?this.renderLoader():r("div",{class:{"tet-compare-cards-wrapper":!0,"force-column":this.forceColumn}},r("div",{class:{cards:!0,[`${this.layout}`]:!0}},this.data.map(((t,o)=>r("tet-compare-card",{class:{"tet-compare-card":!0,"tet-compare-card--thumbnail":!!t.thumbnail},index:o,language:t.language,options:t.options,"card-type":t.cardType,theme:t.theme,"best-choice":t.bestChoice,"color-icons":t.colorIcons,"full-height":t.fullHeight,"card-header":t.cardHeader,logo:t.logo,image:t.image,"card-background-color":t.cardBackgroundColor,"card-script":t.cardScript,hideBestChoiceBorder:t.hideBestChoiceBorder,withBorder:t.withBorder,"best-choice-text-position":t.bestChoiceTextPosition,bestChoiceTextFloating:t.bestChoiceTextFloating,priceShownVertically:t.priceShownVertically,"secondary-link-position":t.secondaryLinkPosition,thumbnail:t.thumbnail,thumbnailAlt:t.thumbnailAlt,showBulletPoints:t.showBulletPoints,showSubTitle:t.showSubTitle,showHelper:t.showHelper,isNetflixCard:t.isNetflixCard,darkMode:this.darkMode},r("div",{slot:"image-slot"},r("img",{style:{width:"100%"},src:t.image,alt:(t.image??"").split("/")?.pop()?.split(".")[0]??t.image,loading:"lazy"})),r("div",{slot:"logo-slot"},r("img",{style:{width:"100%"},src:t.logo,alt:(t.logo??"").split("/")?.pop()?.split(".")[0]??t.logo,loading:"lazy"})),r("div",{slot:"description-slot",innerHTML:t.cardDescription,class:this.darkMode?"dark":""}))))),this.vatText?r("div",{class:"vat"},r("div",{class:"vat__text",innerHTML:this.vatText})):""),this.cardScript?r("link",{href:this.cardScript,rel:"stylesheet",type:"text/css"}):"")}static get watchers(){return{data:[{onDataChange:0}]}}static get style(){return':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:root{--tet-link-color:var(--tc-text-primary);--tet-link-color-hover:var(--tc-text-secondary);--tet-link-color-active:var(--tc-text-tertiary);--tet-link-color-focus:var(--tc-blue-40);--tet-link-color-disabled:var(--tc-button-text-inverse-disabled);--tet-link-secondary-color:var(--tc-text-secondary);--tet-link-secondary-color-hover:var(--tc-text-primary)}.tet-link,.tet-link__arrow{text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;color:var(--tet-link-color);position:relative;line-height:1.5rem;cursor:pointer}.tet-link.dark,.tet-link__arrow.dark{--tet-link-color:var(--tc-text-primary-dark);--tet-link-color-hover:var(--tc-text-secondary-dark);--tet-link-color-active:var(--tc-text-tertiary-dark);--tet-link-color-focus:var(--tc-blue-40-dark);--tet-link-color-disabled:var(--tc-button-text-inverse-disabled-dark);--tet-link-secondary-color:var(--tc-text-secondary-dark);--tet-link-secondary-color-hover:var(--tc-text-primary-dark)}.tet-link.tet-link--secondary,.tet-link__arrow.tet-link--secondary{--tet-link-color:var(--tet-link-secondary-color);--tet-link-color-hover:var(--tet-link-secondary-color-hover)}.tet-link tet-icon,.tet-link__arrow tet-icon{--icon-color:var(--tet-link-color)}.tet-link:hover,.tet-link__arrow:hover{color:var(--tet-link-color-hover)}.tet-link:hover tet-icon,.tet-link__arrow:hover tet-icon{--icon-color:var(--tet-link-color-hover)}.tet-link:active,.tet-link__arrow:active{color:var(--tet-link-color-active)}.tet-link:active tet-icon,.tet-link__arrow:active tet-icon{--icon-color:var(--tet-link-color-active)}.tet-link:focus-visible,.tet-link__arrow:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s;outline-color:var(--tet-link-color-focus);border-radius:0.125rem}.tet-link.disabled,.tet-link__arrow.disabled{color:var(--tet-link-color-disabled);pointer-events:none;cursor:auto}.tet-link.disabled tet-icon,.tet-link__arrow.disabled tet-icon{--icon-color:var(--tet-link-color-disabled)}.tet-link.disabled:focus-visible,.tet-link__arrow.disabled:focus-visible{outline:none}.tet-link tet-icon,.tet-link__arrow tet-icon{padding-left:0.25rem;padding-right:0.25rem;--icon-container-display:inline-block}.tet-link__arrow{padding-right:1.5rem}.tet-link__arrow::after{content:"--\x3e";position:absolute;white-space:nowrap;display:inline-block;text-decoration:none;padding-left:0.25rem;letter-spacing:initial;transition:all 0.15s ease-in}.tet-link__arrow:hover::after{padding-left:0.375rem}:host{--compare-cards-wrap:nowrap;--compare-cards-flex-direction:row;--compare-cards-flex-align-items:center;--compare-cards-padding:1.5rem;--compare-cards-price-padding:0;--compare-cards-border-radius:1.5rem;--compare-cards-new-price-font-size:2.5rem;--compare-cards-old-price-font-size:1rem;--compare-cards-new-currency-font-size:1.125rem;--compare-cards-title-margin-top:1.25rem;--compare-cards-helper-margin-top:0;--compare-cards-card-max-width:32rem;--compare-cards-price-wrapper-margin-top:auto;--compare-cards-secondary-link-font-size:0.75rem;--compare-cards-price-line-height:3rem;--compare-cards-thumbnail-display:flex;--compare-cards-thumbnail-card-radius:0 var(--compare-cards-border-radius) var(--compare-cards-border-radius) 0;--compare-cards-thumbnail-card-width:44rem;display:block}:host([theme=dark]) .card,:host([theme=dark]){--compare-card-background-color:var(--tc-background-primary-dark);--compare-cards-background:var(--tc-background-primary-dark);--compare-cards-card-background:var(--tc-background-secondary-dark);--compare-cards-text-color:var(--tc-text-primary-dark);--compare-cards-border-color:var(--tc-border-secondary-dark);--compare-cards-link-color:var(--tc-text-link-dark);--compare-cards-price-color:var(--tc-text-primary-dark)}.vat{color:var(--color-text-secondary);font:400 0.75rem/1rem Inter, Gilroy, Arial, sans-serif;display:flex;justify-content:center}.vat__text{width:100%;text-align:center;padding-top:0.5rem}.cards{display:flex;flex-direction:var(--compare-cards-flex-direction);flex-wrap:var(--compare-cards-wrap);gap:1rem;justify-content:center}.cards>*:nth-child(n+5){margin-top:1rem}.cards .tet-placeholder{--placeholder-border-radius:1.5rem}.cards .tet-compare-card{--compare-card-padding:var(--compare-cards-padding);--compare-card-price-padding:var(--compare-cards-price-padding);--compare-card-border-radius:var(--compare-cards-border-radius);--compare-card-new-price-font-size:var(--compare-cards-new-price-font-size);--compare-card-old-price-font-size:var(--compare-cards-old-price-font-size);--compare-card-new-currency-font-size:var(--compare-cards-new-currency-font-size);--compare-card-title-margin-top:var(--compare-cards-title-margin-top);--compare-card-helper-margin-top:var(--compare-cards-helper-margin-top);--compare-card-price-wrapper-margin-top:var(--compare-cards-price-wrapper-margin-top);--compare-card-secondary-link-font-size:var(--compare-cards-secondary-link-font-size);--compare-card-price-line-height:var(--compare-cards-price-line-height);--compare-card-thumbnail-display:var(--compare-cards-thumbnail-display);--compare-card-thumbnail-card-radius:var(--compare-cards-thumbnail-card-radius);--compare-card-thumbnail-card-width:var(--compare-cards-thumbnail-card-width)}.cards .tet-compare-card.dark{--compare-card-background-color:var(--tc-background-primary-dark);--compare-cards-background:var(--tc-background-primary-dark);--compare-cards-card-background:var(--tc-background-secondary-dark);--compare-cards-text-color:var(--tc-text-primary-dark);--compare-cards-border-color:var(--tc-border-secondary-dark);--compare-cards-link-color:var(--tc-text-link-dark);--compare-cards-price-color:var(--tc-text-primary-dark)}.cards .tet-compare-card--thumbnail{--compare-cards-card-max-width:var(--compare-card-thumbnail-card-width)}.cards .tet-compare-card[card-type=regular]{max-width:var(--compare-cards-card-max-width);width:100%}.cards.column-two{display:grid;grid-template-columns:repeat(2, minmax(19rem, 25rem))}.force-column .cards.column-two{grid-template-columns:minmax(1rem, 32rem)}.cards.column-four{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:1rem}.force-column .cards{--compare-cards-wrap:wrap;--compare-cards-flex-direction:column;align-items:var(--compare-cards-flex-align-items)}.force-column .cards>:nth-child(-n+4){margin-top:1rem}'}},[513,"tet-compare-cards",{data:[1040],vatText:[1,"vat-text"],forceColumn:[4,"force-column"],theme:[1],layout:[1],cardScript:[1,"card-script"],changedProductCode:[1,"changed-product-code"],isNetflixCard:[4,"is-netflix-card"],darkMode:[4,"dark-mode"],initializedState:[32],showLoader:[32]},[[0,"optionSelected","onOptionSelected"]],{data:[{onDataChange:0}]}]);function g(){"undefined"!=typeof customElements&&["tet-compare-cards","tet-button","tet-checkbox","tet-compare-card","tet-dropdown","tet-icon","tet-placeholder","tet-tooltip"].forEach((t=>{switch(t){case"tet-compare-cards":customElements.get(n(t))||customElements.define(n(t),y);break;case"tet-button":customElements.get(n(t))||s();break;case"tet-checkbox":customElements.get(n(t))||l();break;case"tet-compare-card":customElements.get(n(t))||d();break;case"tet-dropdown":customElements.get(n(t))||f();break;case"tet-icon":customElements.get(n(t))||m();break;case"tet-placeholder":customElements.get(n(t))||p();break;case"tet-tooltip":customElements.get(n(t))||h()}}))}export{y as T,g as d,w as f}
@@ -1 +1 @@
1
- import{p as t,H as e,d as o,h as r,t as n}from"./p-Cdi7KDBd.js";import{p as a,t as s}from"./p-B9bE6qY-.js";import{a as i,d as c}from"./p-Dw0BkIcL.js";import{f as l}from"./p-B_N3UuP2.js";import{d as f}from"./p-Cz39Cyku.js";import{d as m}from"./p-ZmeWEIlj.js";import{d}from"./p-CGv6OEVB.js";const u=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.editButtonClick=o(this,"editButtonClick"),this.deleteButtonClick=o(this,"deleteButtonClick"),this.amountChange=o(this,"amountChange")}productName;price;productDescription;discountPrice;currency;contractTerm;theme="light";withStepper=!1;value;minValue;maxValue;stepperLabel;context="edit";language="lv";editButtonClick;deleteButtonClick;amountChange;async componentWillLoad(){await a("tet-components",this.language)}renderLabel=t=>{const{stepperLabel:e,value:o}=this;if(e)return t?r("span",{class:"contract-term"},e,": ",o):r("span",{class:"stepper-label"},e)};renderStepper=()=>{const{withStepper:t,theme:e,value:o,minValue:n,maxValue:a}=this;if(t)return r("div",{class:"stepper-wrapper"},this.renderLabel(!1),r("tet-stepper-input",{class:"business-summary-card__stepper",theme:e,value:o,step:1,min:n,max:a,onInputValueChanged:t=>{this.value=t.detail,this.amountChange.emit(t.detail)}}))};renderIconButton=t=>{const e=e=>{"tc-edit-box"===t?this.editButtonClick.emit(e):this.deleteButtonClick.emit(e)};return r("button",{class:"icon-button",onClick:t=>e(t),onKeyDown:i},r("tet-icon",{class:"tc-edit-box"===t?"edit":"delete",name:t,focusable:!1}))};render(){const{productName:t,price:e,productDescription:o,discountPrice:n,currency:a,contractTerm:i,theme:c}=this,f=i?s("components-term-month-"+(i%10==1&&11!==i?"single":"plural"),{term:i}):s("components-term-month-indefinite");return r("div",{key:"0b98cafde3e297da0994dc9595f33dfdb1e6d800",class:{"business-summary-card":!0,[`theme-${c}`]:!0}},r("div",{key:"ae071a23d63aab39a3c5ce24494511fe0c760b45",class:"business-summary-card-content"},r("div",{key:"9e69abfb1146e5cdbc1af4cc58b9cbc3835abfe7",class:"business-summary-card-content__left"},r("div",{key:"17a8c6e0fc5e9f242cf133c660c37a1b223e8db2",class:"content-wrapper"},r("div",{key:"3664df7375a5fbbe69795c33941951bae9b8b1f0",class:"title"},t),r("div",{key:"20518cdd35527a4ff17c64298dbed575ca4fa5bf",class:"description"},o))),r("div",{key:"858df4b8d5cdc4ba169e37edc8071ac58cae7089",class:"business-summary-card-content__right"},r("div",{key:"777956ce823e537f9ec842c1d49f57340a09846c",class:"content-wrapper"},r("div",{key:"e68124df381f956688dc92e9dbcec799b30ecd63",class:"title title--end"},`${l(n||e,{currency:""})} ${a}`),!!n&&r("div",{key:"1a819e7b196654eb5cc32ed3ada3cca07b335b31",class:{description:!0,price:!!n}},`${l(e,{currency:""})} ${a}`)))),r("div",{key:"a83dc7cdbc8b9dc11da892bbedcc939f4e539495",class:"business-summary-card-content"},r("span",{key:"993a1283eceb50be57e1d6891b4bfce7647c852f",class:"contract-term"},s("components-offers-contract-terms-label"),": ",f),"checkout"===this.context&&this.renderLabel(!0)),"edit"===this.context&&r("div",{key:"a98947f6bdb0c54e1405297472c44013d7d582c5",class:"business-summary-card-content"},r("div",{key:"1687959c0c273dfd23c5f38951a2f5800c5fc24b",class:"business-summary-card-content__left"},this.renderStepper()),r("div",{key:"8e3925f5e4363ce055f176577c2e19f4ea8c4778",class:"business-summary-card-content__right"},r("div",{key:"68e8d55ce94dadd24a3a0bccd1d5487a8f6c23cd",class:"button-wrapper"},this.renderIconButton("tc-edit-box"),this.renderIconButton("tc-trash-can")))))}static get style(){return':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{--tet-business-summary-card-icon-button-size:2.75rem;display:flex}.business-summary-card{display:flex;flex-direction:column;padding:1rem 1rem 0 1rem;background-color:var(--tet-business-summary-card-background-color);border:0.03125rem solid var(--tet-business-summary-card-border-color);border-radius:0.375rem;width:100%;justify-content:space-between;color:var(--tet-business-summary-card-text-color);box-shadow:var(--tet-business-summary-card-border-shadow);container-type:inline-size}.business-summary-card.theme-light{--tet-business-summary-card-text-color:var(--tc-text-primary);--tet-business-summary-card-contract-text-color:var(--tc-text-secondary);--tet-business-summary-card-border-color:var(--tc-border-quaternary);--tet-business-summary-card-border-shadow:var(--tc-elevation-one);--tet-business-summary-card-icon-button-background:var(--tc-layer-secondary);--tet-business-summary-card-hover-icon-button-background:var(--tc-layer-tertiary);--tet-business-summary-card-active-icon-button-background:var(--tc-layer-quaternary);--tet-business-summary-card-background-color:var(--tc-layer-primary);--tet-business-summary-card-icon-color:var(--tc-icon-primary);--tet-business-summary-card-hover-delete-icon-color:var(--tc-red-40);--tet-business-summary-card-hover-edit-icon-color:var(--tc-blue-40)}.business-summary-card.theme-light .icon-button:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s}.business-summary-card.theme-light .delete span.icon-container.light.primary{--icon-color:var(--tc-red-40)}.business-summary-card.theme-dark{--tet-business-summary-card-text-color:var(--tc-text-primary-dark);--tet-business-summary-card-contract-text-color:var(--tc-text-secondary-dark);--tet-business-summary-card-border-color:var(--tc-border-quaternary-dark);--tet-business-summary-card-border-shadow:var(--tc-elevation-one-dark);--tet-business-summary-card-icon-button-background:var(--tc-layer-secondary-dark);--tet-business-summary-card-hover-icon-button-background:var(--tc-layer-tertiary-dark);--tet-business-summary-card-active-icon-button-background:var(--tc-layer-quaternary-dark);--tet-business-summary-card-background-color:var(--tc-layer-primary-dark);--tet-business-summary-card-icon-color:var(--tc-icon-primary-dark);--tet-business-summary-card-hover-delete-icon-color:var(--tc-red-40-dark);--tet-business-summary-card-hover-edit-icon-color:var(--tc-blue-40-dark)}.business-summary-card.theme-dark .icon-button:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0.125rem;transition:outline 0s}.business-summary-card-content{display:flex;flex-direction:row;justify-content:space-between;gap:1rem;padding-bottom:1rem}@container (max-width:18.75rem){.business-summary-card-content:has(.stepper-wrapper){flex-direction:column;align-items:center}.business-summary-card-content .stepper-wrapper{align-items:center}}@media only screen and (max-width: 22.5rem){.business-summary-card-content{flex-direction:column}}.business-summary-card-content__left{display:flex;flex-direction:column;align-items:flex-start}.business-summary-card-content__right{display:flex;flex-direction:column;align-items:flex-end}@media only screen and (max-width: 22.5rem){.business-summary-card-content__right{align-items:flex-start;flex-direction:row;justify-content:flex-start}}.business-summary-card-content__right:has(.button-wrapper){justify-content:flex-end}@media only screen and (max-width: 22.5rem){.business-summary-card-content__right:has(.button-wrapper){justify-content:center}}.business-summary-card-content:has(.content-wrapper){padding-bottom:0}.business-summary-card__stepper{--stepper-value-color:var(--tet-business-summary-card-text-color);--stepper-input-control-background-color:var(--tet-business-summary-card-background-color)}.stepper-wrapper{display:flex;flex-direction:column;align-items:baseline;gap:0.125rem;align-self:stretch}.stepper-label{font:500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";padding:0 0.25rem 0.25rem 0.25rem}@media screen and (min-width: 64rem){.stepper-label{display:none}}.content-wrapper{display:flex;flex-direction:column}.content-wrapper .title{font:500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}.content-wrapper .title--end{text-align:end}@media only screen and (max-width: 22.5rem){.content-wrapper .title--end{text-align:start}}.content-wrapper .description{font:400 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif"}.content-wrapper .description.price{align-self:end;text-align:end;text-decoration-line:line-through}@media only screen and (max-width: 22.5rem){.content-wrapper:has(.description.price){flex-direction:row;align-items:center;padding-top:0.25rem;gap:0.5rem}}.contract-term{font:500 0.75rem/1rem "Inter", "Gilroy, Arial, sans-serif";color:var(--tet-business-summary-card-contract-text-color)}.button-wrapper{display:flex;flex-direction:row;align-items:flex-end;gap:0.5rem}@media only screen and (max-width: 22.5rem){.button-wrapper{align-self:center}}.icon-button{display:flex;width:var(--tet-business-summary-card-icon-button-size);height:var(--tet-business-summary-card-icon-button-size);padding:0.625rem;justify-content:center;align-items:center;border-radius:2.5rem;border:none;background:var(--tet-business-summary-card-icon-button-background);cursor:pointer}.icon-button .edit,.icon-button .delete{--icon-color:var(--tet-business-summary-card-icon-color)}.icon-button:hover .edit,.icon-button:active .edit{--icon-color:var(--tet-business-summary-card-hover-edit-icon-color)}.icon-button:hover .delete,.icon-button:active .delete{--icon-color:var(--tet-business-summary-card-hover-delete-icon-color)}.icon-button:hover{background:var(--tet-business-summary-card-hover-icon-button-background)}.icon-button:active,.icon-button:focus:not(:focus-visible){background:var(--tet-business-summary-card-active-icon-button-background)}'}},[513,"tet-business-summary-card",{productName:[1,"product-name"],price:[2],productDescription:[1,"product-description"],discountPrice:[2,"discount-price"],currency:[1],contractTerm:[2,"contract-term"],theme:[1],withStepper:[4,"with-stepper"],value:[2],minValue:[2,"min-value"],maxValue:[2,"max-value"],stepperLabel:[1,"stepper-label"],context:[1],language:[1]}]);function p(){"undefined"!=typeof customElements&&["tet-business-summary-card","tet-button","tet-icon","tet-input","tet-stepper-input"].forEach((t=>{switch(t){case"tet-business-summary-card":customElements.get(n(t))||customElements.define(n(t),u);break;case"tet-button":customElements.get(n(t))||f();break;case"tet-icon":customElements.get(n(t))||m();break;case"tet-input":customElements.get(n(t))||c();break;case"tet-stepper-input":customElements.get(n(t))||d()}}))}export{u as T,p as d}
1
+ import{p as t,H as e,d as o,h as r,t as n}from"./p-DIyhqSTP.js";import{p as a,t as s}from"./p-DZ6ri3Ez.js";import{a as i,d as c}from"./p-CUH6nkd0.js";import{f as l}from"./p-B_N3UuP2.js";import{d as f}from"./p-DDd2g7kx.js";import{d as m}from"./p-DZfyLZam.js";import{d}from"./p-D1EcTfyQ.js";const u=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.editButtonClick=o(this,"editButtonClick"),this.deleteButtonClick=o(this,"deleteButtonClick"),this.amountChange=o(this,"amountChange")}productName;price;productDescription;discountPrice;currency;contractTerm;theme="light";withStepper=!1;value;minValue;maxValue;stepperLabel;context="edit";language="lv";editButtonClick;deleteButtonClick;amountChange;async componentWillLoad(){await a("tet-components",this.language)}renderLabel=t=>{const{stepperLabel:e,value:o}=this;if(e)return t?r("span",{class:"contract-term"},e,": ",o):r("span",{class:"stepper-label"},e)};renderStepper=()=>{const{withStepper:t,theme:e,value:o,minValue:n,maxValue:a}=this;if(t)return r("div",{class:"stepper-wrapper"},this.renderLabel(!1),r("tet-stepper-input",{class:"business-summary-card__stepper",theme:e,value:o,step:1,min:n,max:a,onInputValueChanged:t=>{this.value=t.detail,this.amountChange.emit(t.detail)}}))};renderIconButton=t=>{const e=e=>{"tc-edit-box"===t?this.editButtonClick.emit(e):this.deleteButtonClick.emit(e)};return r("button",{class:"icon-button",onClick:t=>e(t),onKeyDown:i},r("tet-icon",{class:"tc-edit-box"===t?"edit":"delete",name:t,focusable:!1}))};render(){const{productName:t,price:e,productDescription:o,discountPrice:n,currency:a,contractTerm:i,theme:c}=this,f=i?s("components-term-month-"+(i%10==1&&11!==i?"single":"plural"),{term:i}):s("components-term-month-indefinite");return r("div",{key:"0b98cafde3e297da0994dc9595f33dfdb1e6d800",class:{"business-summary-card":!0,[`theme-${c}`]:!0}},r("div",{key:"ae071a23d63aab39a3c5ce24494511fe0c760b45",class:"business-summary-card-content"},r("div",{key:"9e69abfb1146e5cdbc1af4cc58b9cbc3835abfe7",class:"business-summary-card-content__left"},r("div",{key:"17a8c6e0fc5e9f242cf133c660c37a1b223e8db2",class:"content-wrapper"},r("div",{key:"3664df7375a5fbbe69795c33941951bae9b8b1f0",class:"title"},t),r("div",{key:"20518cdd35527a4ff17c64298dbed575ca4fa5bf",class:"description"},o))),r("div",{key:"858df4b8d5cdc4ba169e37edc8071ac58cae7089",class:"business-summary-card-content__right"},r("div",{key:"777956ce823e537f9ec842c1d49f57340a09846c",class:"content-wrapper"},r("div",{key:"e68124df381f956688dc92e9dbcec799b30ecd63",class:"title title--end"},`${l(n||e,{currency:""})} ${a}`),!!n&&r("div",{key:"1a819e7b196654eb5cc32ed3ada3cca07b335b31",class:{description:!0,price:!!n}},`${l(e,{currency:""})} ${a}`)))),r("div",{key:"a83dc7cdbc8b9dc11da892bbedcc939f4e539495",class:"business-summary-card-content"},r("span",{key:"993a1283eceb50be57e1d6891b4bfce7647c852f",class:"contract-term"},s("components-offers-contract-terms-label"),": ",f),"checkout"===this.context&&this.renderLabel(!0)),"edit"===this.context&&r("div",{key:"a98947f6bdb0c54e1405297472c44013d7d582c5",class:"business-summary-card-content"},r("div",{key:"1687959c0c273dfd23c5f38951a2f5800c5fc24b",class:"business-summary-card-content__left"},this.renderStepper()),r("div",{key:"8e3925f5e4363ce055f176577c2e19f4ea8c4778",class:"business-summary-card-content__right"},r("div",{key:"68e8d55ce94dadd24a3a0bccd1d5487a8f6c23cd",class:"button-wrapper"},this.renderIconButton("tc-edit-box"),this.renderIconButton("tc-trash-can")))))}static get style(){return':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{--tet-business-summary-card-icon-button-size:2.75rem;display:flex}.business-summary-card{display:flex;flex-direction:column;padding:1rem 1rem 0 1rem;background-color:var(--tet-business-summary-card-background-color);border:0.03125rem solid var(--tet-business-summary-card-border-color);border-radius:0.375rem;width:100%;justify-content:space-between;color:var(--tet-business-summary-card-text-color);box-shadow:var(--tet-business-summary-card-border-shadow);container-type:inline-size}.business-summary-card.theme-light{--tet-business-summary-card-text-color:var(--tc-text-primary);--tet-business-summary-card-contract-text-color:var(--tc-text-secondary);--tet-business-summary-card-border-color:var(--tc-border-quaternary);--tet-business-summary-card-border-shadow:var(--tc-elevation-one);--tet-business-summary-card-icon-button-background:var(--tc-layer-secondary);--tet-business-summary-card-hover-icon-button-background:var(--tc-layer-tertiary);--tet-business-summary-card-active-icon-button-background:var(--tc-layer-quaternary);--tet-business-summary-card-background-color:var(--tc-layer-primary);--tet-business-summary-card-icon-color:var(--tc-icon-primary);--tet-business-summary-card-hover-delete-icon-color:var(--tc-red-40);--tet-business-summary-card-hover-edit-icon-color:var(--tc-blue-40)}.business-summary-card.theme-light .icon-button:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s}.business-summary-card.theme-light .delete span.icon-container.light.primary{--icon-color:var(--tc-red-40)}.business-summary-card.theme-dark{--tet-business-summary-card-text-color:var(--tc-text-primary-dark);--tet-business-summary-card-contract-text-color:var(--tc-text-secondary-dark);--tet-business-summary-card-border-color:var(--tc-border-quaternary-dark);--tet-business-summary-card-border-shadow:var(--tc-elevation-one-dark);--tet-business-summary-card-icon-button-background:var(--tc-layer-secondary-dark);--tet-business-summary-card-hover-icon-button-background:var(--tc-layer-tertiary-dark);--tet-business-summary-card-active-icon-button-background:var(--tc-layer-quaternary-dark);--tet-business-summary-card-background-color:var(--tc-layer-primary-dark);--tet-business-summary-card-icon-color:var(--tc-icon-primary-dark);--tet-business-summary-card-hover-delete-icon-color:var(--tc-red-40-dark);--tet-business-summary-card-hover-edit-icon-color:var(--tc-blue-40-dark)}.business-summary-card.theme-dark .icon-button:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0.125rem;transition:outline 0s}.business-summary-card-content{display:flex;flex-direction:row;justify-content:space-between;gap:1rem;padding-bottom:1rem}@container (max-width:18.75rem){.business-summary-card-content:has(.stepper-wrapper){flex-direction:column;align-items:center}.business-summary-card-content .stepper-wrapper{align-items:center}}@media only screen and (max-width: 22.5rem){.business-summary-card-content{flex-direction:column}}.business-summary-card-content__left{display:flex;flex-direction:column;align-items:flex-start}.business-summary-card-content__right{display:flex;flex-direction:column;align-items:flex-end}@media only screen and (max-width: 22.5rem){.business-summary-card-content__right{align-items:flex-start;flex-direction:row;justify-content:flex-start}}.business-summary-card-content__right:has(.button-wrapper){justify-content:flex-end}@media only screen and (max-width: 22.5rem){.business-summary-card-content__right:has(.button-wrapper){justify-content:center}}.business-summary-card-content:has(.content-wrapper){padding-bottom:0}.business-summary-card__stepper{--stepper-value-color:var(--tet-business-summary-card-text-color);--stepper-input-control-background-color:var(--tet-business-summary-card-background-color)}.stepper-wrapper{display:flex;flex-direction:column;align-items:baseline;gap:0.125rem;align-self:stretch}.stepper-label{font:500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";padding:0 0.25rem 0.25rem 0.25rem}@media screen and (min-width: 64rem){.stepper-label{display:none}}.content-wrapper{display:flex;flex-direction:column}.content-wrapper .title{font:500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}.content-wrapper .title--end{text-align:end}@media only screen and (max-width: 22.5rem){.content-wrapper .title--end{text-align:start}}.content-wrapper .description{font:400 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif"}.content-wrapper .description.price{align-self:end;text-align:end;text-decoration-line:line-through}@media only screen and (max-width: 22.5rem){.content-wrapper:has(.description.price){flex-direction:row;align-items:center;padding-top:0.25rem;gap:0.5rem}}.contract-term{font:500 0.75rem/1rem "Inter", "Gilroy, Arial, sans-serif";color:var(--tet-business-summary-card-contract-text-color)}.button-wrapper{display:flex;flex-direction:row;align-items:flex-end;gap:0.5rem}@media only screen and (max-width: 22.5rem){.button-wrapper{align-self:center}}.icon-button{display:flex;width:var(--tet-business-summary-card-icon-button-size);height:var(--tet-business-summary-card-icon-button-size);padding:0.625rem;justify-content:center;align-items:center;border-radius:2.5rem;border:none;background:var(--tet-business-summary-card-icon-button-background);cursor:pointer}.icon-button .edit,.icon-button .delete{--icon-color:var(--tet-business-summary-card-icon-color)}.icon-button:hover .edit,.icon-button:active .edit{--icon-color:var(--tet-business-summary-card-hover-edit-icon-color)}.icon-button:hover .delete,.icon-button:active .delete{--icon-color:var(--tet-business-summary-card-hover-delete-icon-color)}.icon-button:hover{background:var(--tet-business-summary-card-hover-icon-button-background)}.icon-button:active,.icon-button:focus:not(:focus-visible){background:var(--tet-business-summary-card-active-icon-button-background)}'}},[513,"tet-business-summary-card",{productName:[1,"product-name"],price:[2],productDescription:[1,"product-description"],discountPrice:[2,"discount-price"],currency:[1],contractTerm:[2,"contract-term"],theme:[1],withStepper:[4,"with-stepper"],value:[2],minValue:[2,"min-value"],maxValue:[2,"max-value"],stepperLabel:[1,"stepper-label"],context:[1],language:[1]}]);function p(){"undefined"!=typeof customElements&&["tet-business-summary-card","tet-button","tet-icon","tet-input","tet-stepper-input"].forEach((t=>{switch(t){case"tet-business-summary-card":customElements.get(n(t))||customElements.define(n(t),u);break;case"tet-button":customElements.get(n(t))||f();break;case"tet-icon":customElements.get(n(t))||m();break;case"tet-input":customElements.get(n(t))||c();break;case"tet-stepper-input":customElements.get(n(t))||d()}}))}export{u as T,p as d}
@@ -1 +1 @@
1
- import{e as t,A as s}from"./p-Br4jWI9B.js";import{c as r}from"./p-Cef0hbKH.js";const a=t=>!!t&&"object"==typeof t&&!Array.isArray(t)&&Object.keys(t).length>0&&Object.values(t).every((t=>"string"==typeof t)),e="lv";class n{static instance;storageKey="translations";eTagsStorageKey="translation-etags";supportedLanguages=["lv","ru","en"];translations={};eTags={};mergedTranslations={};inFlightTranslations=new Map;constructor(){this.translations=this.getCachedTranslations(),this.eTags=this.getCachedEtags()}static getInstance(){return n.instance||(n.instance=new n),n.instance}getTranslations(){return this.mergedTranslations}updateTranslations=async(t,s)=>{const r=[this.loadTranslations(t,s)];s!==e&&r.push(this.loadTranslations(t,e)),await Promise.allSettled(r),this.mergedTranslations=this.mergeTranslations(s)};loadTranslations=(r,e)=>{if(!r||!e)return Promise.reject(`Missing translation parameters - group (${r}), language (${e}).`);if(!this.supportedLanguages.includes(e))return Promise.reject(`Translations language "${e}" is not supported.`);const n=`${r}:${e}`,i=this.inFlightTranslations.get(n);if(void 0!==i)return i;const o=(async(r,e,n)=>{let i;try{i=new URL(`${e}/${r}`,t.translations).href}catch(t){throw console.error(t),new Error("Translations endpoint URL generation failed.")}const o=(new s).setUrl(i).setOptions({method:"GET",cache:"no-cache",headers:n?{"If-None-Match":n}:void 0}),c=await o.execute(!0);if(304===c.status)return{notModified:!0};if(!c.ok)throw new Error(`Translations request failed with status ${c.status}.`);const h=(await c.json())?.data;if(!a(h))throw new Error("Translations response contains an invalid dictionary.");return{translations:h,eTag:c.headers.get("ETag")??void 0,notModified:!1}})(r,e,this.eTags[r]?.[e]).then((t=>{if(t.notModified){if(!this.translationsExist(r,e))throw new Error(`Translations response was not modified without cached data for group (${r}) and language (${e}).`)}else{if(!a(t.translations))throw new Error(`Invalid translations for group (${r}) and language (${e}).`);this.translations[r]||(this.translations[r]={}),this.translations[r][e]=t.translations,this.setETag(r,e,t.eTag),this.cacheTranslations()}})).finally((()=>this.inFlightTranslations.delete(n)));return this.inFlightTranslations.set(n,o),o};mergeTranslations=t=>{const s=this.getMergedTranslations(e);return t===e?s:{...s,...this.getMergedTranslations(t)}};getMergedTranslations=t=>{const s={};for(const r of Object.values(this.translations))Object.assign(s,r[t]??{});return s};translationsExist=(t,s)=>a(this.translations[t]?.[s]);getCachedTranslations=()=>{try{const t=JSON.parse(sessionStorage.getItem(this.storageKey)??"null");return this.isValidTranslationsCache(t)?t:{}}catch{return{}}};getCachedEtags=()=>{try{const t=JSON.parse(sessionStorage.getItem(this.eTagsStorageKey)??"null");return this.isValidETagsCache(t)?t:{}}catch{return{}}};setETag=(t,s,r)=>{this.eTags[t]||(this.eTags[t]={}),void 0!==r?this.eTags[t][s]=r:delete this.eTags[t][s]};cacheTranslations=()=>{try{sessionStorage.setItem(this.storageKey,JSON.stringify(this.translations))}catch{return}try{sessionStorage.setItem(this.eTagsStorageKey,JSON.stringify(this.eTags))}catch{}};isValidTranslationsCache=t=>!(!t||"object"!=typeof t||Array.isArray(t))&&Object.values(t).every((t=>!(!t||"object"!=typeof t||Array.isArray(t))&&Object.values(t).every((t=>a(t)))));isValidETagsCache=t=>!(!t||"object"!=typeof t||Array.isArray(t))&&Object.values(t).every((t=>!!t&&"object"==typeof t&&!Array.isArray(t)&&Object.values(t).every((t=>"string"==typeof t))))}const i=n.getInstance(),o=async(t,s)=>{await i.updateTranslations(t,s)},c=(t,s)=>{let a=i.getTranslations()[t.trim()]??t;return r(s)&&(a=h(a,s)),a},h=(t,s)=>{for(const[r,a]of Object.entries(s))t=t.replace(new RegExp(`{${r}}`,"g"),a);return t};export{o as p,c as t}
1
+ import{e as t,A as s}from"./p-dg7EpwKx.js";import{c as a}from"./p-Cef0hbKH.js";const e=t=>!!t&&"object"==typeof t&&!Array.isArray(t)&&Object.keys(t).length>0&&Object.values(t).every((t=>"string"==typeof t)),r="lv";class n{static instance;storageKey="translations";eTagsStorageKey="translation-etags";supportedLanguages=["lv","ru","en"];translations={};eTags={};mergedTranslations={};inFlightTranslations=new Map;constructor(){this.translations=this.getCachedTranslations(),this.eTags=this.getCachedEtags()}static getInstance(){return n.instance||(n.instance=new n),n.instance}getTranslations(){return this.mergedTranslations}updateTranslations=async(t,s)=>{const a=[this.loadTranslations(t,s)];s!==r&&a.push(this.loadTranslations(t,r)),await Promise.allSettled(a),this.mergedTranslations=this.mergeTranslations(s)};loadTranslations=(a,r)=>{if(!a||!r)return Promise.reject(`Missing translation parameters - group (${a}), language (${r}).`);if(!this.supportedLanguages.includes(r))return Promise.reject(`Translations language "${r}" is not supported.`);const n=`${a}:${r}`,i=this.inFlightTranslations.get(n);if(void 0!==i)return i;const o=(async(a,r,n)=>{let i;try{i=new URL(`${r}/${a}`,t.translations).href}catch(t){throw console.error(t),new Error("Translations endpoint URL generation failed.")}const o=(new s).setUrl(i).setOptions({method:"GET",cache:"no-cache",headers:n?{"If-None-Match":n}:void 0}),c=await o.execute(!0);if(304===c.status)return{notModified:!0};if(!c.ok)throw new Error(`Translations request failed with status ${c.status}.`);const h=(await c.json())?.data;if(!e(h))throw new Error("Translations response contains an invalid dictionary.");return{translations:h,eTag:c.headers.get("ETag")??void 0,notModified:!1}})(a,r,this.eTags[a]?.[r]).then((t=>{if(t.notModified){if(!this.translationsExist(a,r))throw new Error(`Translations response was not modified without cached data for group (${a}) and language (${r}).`)}else{if(!e(t.translations))throw new Error(`Invalid translations for group (${a}) and language (${r}).`);this.translations[a]||(this.translations[a]={}),this.translations[a][r]=t.translations,this.setETag(a,r,t.eTag),this.cacheTranslations()}})).finally((()=>this.inFlightTranslations.delete(n)));return this.inFlightTranslations.set(n,o),o};mergeTranslations=t=>{const s=this.getMergedTranslations(r);return t===r?s:{...s,...this.getMergedTranslations(t)}};getMergedTranslations=t=>{const s={};for(const a of Object.values(this.translations))Object.assign(s,a[t]??{});return s};translationsExist=(t,s)=>e(this.translations[t]?.[s]);getCachedTranslations=()=>{try{const t=JSON.parse(sessionStorage.getItem(this.storageKey)??"null");return this.isValidTranslationsCache(t)?t:{}}catch{return{}}};getCachedEtags=()=>{try{const t=JSON.parse(sessionStorage.getItem(this.eTagsStorageKey)??"null");return this.isValidETagsCache(t)?t:{}}catch{return{}}};setETag=(t,s,a)=>{this.eTags[t]||(this.eTags[t]={}),void 0!==a?this.eTags[t][s]=a:delete this.eTags[t][s]};cacheTranslations=()=>{try{sessionStorage.setItem(this.storageKey,JSON.stringify(this.translations))}catch{return}try{sessionStorage.setItem(this.eTagsStorageKey,JSON.stringify(this.eTags))}catch{}};isValidTranslationsCache=t=>!(!t||"object"!=typeof t||Array.isArray(t))&&Object.values(t).every((t=>!(!t||"object"!=typeof t||Array.isArray(t))&&Object.values(t).every((t=>e(t)))));isValidETagsCache=t=>!(!t||"object"!=typeof t||Array.isArray(t))&&Object.values(t).every((t=>!!t&&"object"==typeof t&&!Array.isArray(t)&&Object.values(t).every((t=>"string"==typeof t))))}const i=n.getInstance(),o=async(t,s)=>{await i.updateTranslations(t,s)},c=(t,s)=>{let e=i.getTranslations()[t.trim()]??t;return a(s)&&(e=h(e,s)),e},h=(t,s)=>{for(const[a,e]of Object.entries(s))t=t.replace(new RegExp(`{${a}}`,"g"),e);return t};export{o as p,c as t}