@tet/tet-components 1.4.135-staging → 1.4.135-testing

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 (410) hide show
  1. package/dist/cjs/{http-codes-M3UINy7t.js → http-codes-C-IXSZGG.js} +1 -1
  2. package/dist/cjs/{index-CabrFqSe.js → index-Bo0hF6YQ.js} +1 -1
  3. package/dist/cjs/{index-BGnwL8G_.js → index-DKg1QTRW.js} +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{product-comparison-1cTUG5Si.js → product-comparison-f-u42TDe.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 +1 -1
  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 +1 -1
  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-notification.cjs.entry.js +1 -1
  63. package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
  64. package/dist/cjs/tet-placeholder.cjs.entry.js +1 -1
  65. package/dist/cjs/tet-position.cjs.entry.js +1 -1
  66. package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
  67. package/dist/cjs/tet-radio-blocks.cjs.entry.js +1 -1
  68. package/dist/cjs/tet-radio_2.cjs.entry.js +1 -1
  69. package/dist/cjs/tet-range-slider.cjs.entry.js +1 -1
  70. package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
  71. package/dist/cjs/tet-snicker-card-group.cjs.entry.js +1 -1
  72. package/dist/cjs/tet-snicker-card.cjs.entry.js +3 -3
  73. package/dist/cjs/tet-spacing.cjs.entry.js +1 -1
  74. package/dist/cjs/tet-spinner.cjs.entry.js +1 -1
  75. package/dist/cjs/tet-stepper-input.cjs.entry.js +3 -3
  76. package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
  77. package/dist/cjs/tet-sticky-offer.cjs.entry.js +1 -1
  78. package/dist/cjs/tet-support-search.cjs.entry.js +1 -1
  79. package/dist/cjs/tet-switch.cjs.entry.js +1 -1
  80. package/dist/cjs/tet-table.cjs.entry.js +1 -1
  81. package/dist/cjs/tet-tag_2.cjs.entry.js +3 -3
  82. package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
  83. package/dist/cjs/tet-text.cjs.entry.js +1 -1
  84. package/dist/cjs/tet-textarea.cjs.entry.js +1 -1
  85. package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
  86. package/dist/cjs/{translations-MNaGVsId.js → translations-f2lO6WcB.js} +1 -1
  87. package/dist/components/index.js +1 -1
  88. package/dist/components/{p-BmBfXaht.js → p-0m6VLm4E.js} +1 -1
  89. package/dist/components/{p-CVKvk6QH.js → p-1M2reaCU.js} +1 -1
  90. package/dist/components/{p-ro9Xo95n.js → p-4OtGLxTM.js} +1 -1
  91. package/dist/components/{p-CZbfm31w.js → p-5bU9w0Qe.js} +1 -1
  92. package/dist/components/{p-Cj8s5mfY.js → p-85IQWbFs.js} +1 -1
  93. package/dist/components/{p-ClZGNJ8K.js → p-9ItXFJZ6.js} +1 -1
  94. package/dist/components/{p-djF4rk9X.js → p-B-nwyAfL.js} +1 -1
  95. package/dist/components/{p-CnG_1Whv.js → p-B0yDw7Me.js} +1 -1
  96. package/dist/components/{p-pps910Yb.js → p-B4fOuNpD.js} +1 -1
  97. package/dist/components/{p-C11a6bsn.js → p-B70tbyf1.js} +1 -1
  98. package/dist/components/{p-CYfNgSDa.js → p-B8ElCfnM.js} +1 -1
  99. package/dist/components/{p-DftHVfCt.js → p-BBMx2Nbt.js} +1 -1
  100. package/dist/components/{p-CsSez6x5.js → p-BW48_rii.js} +1 -1
  101. package/dist/components/{p-v3jmLiwp.js → p-BWmFtcLN.js} +1 -1
  102. package/dist/components/{p-D_EXq8jk.js → p-BXZCgW0z.js} +1 -1
  103. package/dist/components/{p-YbtFFhcU.js → p-BZ0uDmYr.js} +1 -1
  104. package/dist/components/{p-DMha5T5b.js → p-BZ9cVPPC.js} +1 -1
  105. package/dist/components/{p-DF_X_yCR.js → p-B_RQCK28.js} +1 -1
  106. package/dist/components/{p-DpDY63Pw.js → p-BwuKRxa0.js} +1 -1
  107. package/dist/components/{p-DskTcS_M.js → p-C6vabTqq.js} +1 -1
  108. package/dist/components/{p-CbEjEtF6.js → p-C9c0OPW9.js} +1 -1
  109. package/dist/components/{p-C_NgZ5aL.js → p-CBm8zIRJ.js} +1 -1
  110. package/dist/components/{p-eYIK8mwy.js → p-CDTZ2TSu.js} +1 -1
  111. package/dist/components/{p-DULF82L1.js → p-CMbAQKoe.js} +1 -1
  112. package/dist/components/{p-STr2Oh_2.js → p-CQfy7CVi.js} +1 -1
  113. package/dist/components/{p-AUWqE4Xg.js → p-CZWykfnF.js} +1 -1
  114. package/dist/components/{p-DVyup5J1.js → p-CbJNzsI-.js} +1 -1
  115. package/dist/components/{p-BXYCbsoe.js → p-CfIyvV8F.js} +1 -1
  116. package/dist/components/{p-B6ZbwMTz.js → p-CwXqN-k6.js} +1 -1
  117. package/dist/components/{p-Wv47iRye.js → p-D0VEBguO.js} +1 -1
  118. package/dist/components/{p-DkBngl8x.js → p-D4mimikO.js} +1 -1
  119. package/dist/components/{p-CuAv2-04.js → p-D56nNU-Z.js} +1 -1
  120. package/dist/components/{p-CCSWEj7B.js → p-D5plublb.js} +1 -1
  121. package/dist/components/{p-C2Vn0VjX.js → p-DHOPNeBR.js} +1 -1
  122. package/dist/components/{p-D7yVtwIG.js → p-DJQWSjRR.js} +1 -1
  123. package/dist/components/{p-DBw4Y0EI.js → p-DLBQ7YzN.js} +1 -1
  124. package/dist/components/{p-C65kPDVk.js → p-DQ-DPsSd.js} +1 -1
  125. package/dist/components/{p-cb20nj-c.js → p-DRJ0zjoF.js} +1 -1
  126. package/dist/components/{p-B8FP4SAH.js → p-DePtMqzY.js} +1 -1
  127. package/dist/components/{p-DjV-WH3-.js → p-Dp6LvdrN.js} +1 -1
  128. package/dist/components/{p-B9NwBNJq.js → p-H56BMng-.js} +1 -1
  129. package/dist/components/{p-BMd3uvm2.js → p-KBNSpMwX.js} +1 -1
  130. package/dist/components/{p-IWgpzeaz.js → p-KLAzfxVo.js} +1 -1
  131. package/dist/components/{p-Dm9iB-os.js → p-LkN4wIlk.js} +1 -1
  132. package/dist/components/{p-CsP9slz6.js → p-gpfz6eY4.js} +1 -1
  133. package/dist/components/{p-C2ZidQuQ.js → p-gxqUI4FR.js} +1 -1
  134. package/dist/components/{p-CUZLdGJH.js → p-j3gczqFU.js} +1 -1
  135. package/dist/components/{p-ChxhsA_J.js → p-nb3MHK7A.js} +1 -1
  136. package/dist/components/{p-BsL3-lNZ.js → p-tSLI82NY.js} +1 -1
  137. package/dist/components/{p-CpGSKJ_G.js → p-xe9nUZtg.js} +1 -1
  138. package/dist/components/{p-DDjtysF3.js → p-zkmKLYHg.js} +1 -1
  139. package/dist/components/tet-accordion.js +1 -1
  140. package/dist/components/tet-address-offers-filters-products.js +1 -1
  141. package/dist/components/tet-address-offers-filters.js +1 -1
  142. package/dist/components/tet-address-offers-view.js +1 -1
  143. package/dist/components/tet-address-offers.js +1 -1
  144. package/dist/components/tet-address-search.js +1 -1
  145. package/dist/components/tet-assembler.js +1 -1
  146. package/dist/components/tet-asset-availability-addresses.js +1 -1
  147. package/dist/components/tet-autocomplete-dropdown.js +1 -1
  148. package/dist/components/tet-autocomplete.js +1 -1
  149. package/dist/components/tet-availability-contact-form.js +1 -1
  150. package/dist/components/tet-b2b-check-out-form.js +1 -1
  151. package/dist/components/tet-b2b-compare-card.js +1 -1
  152. package/dist/components/tet-b2b-configurator-cart.js +1 -1
  153. package/dist/components/tet-b2b-configurator.js +1 -1
  154. package/dist/components/tet-banner-nav.js +1 -1
  155. package/dist/components/tet-bar-graph.js +1 -1
  156. package/dist/components/tet-border-radius.js +1 -1
  157. package/dist/components/tet-business-card.js +1 -1
  158. package/dist/components/tet-business-compare-card.js +1 -1
  159. package/dist/components/tet-business-navigation.js +1 -1
  160. package/dist/components/tet-business-round-stepper.js +1 -1
  161. package/dist/components/tet-business-summary-card.js +1 -1
  162. package/dist/components/tet-button.js +1 -1
  163. package/dist/components/tet-card-list.js +1 -1
  164. package/dist/components/tet-carousel.js +1 -1
  165. package/dist/components/tet-checkbox.js +1 -1
  166. package/dist/components/tet-cloud-application-form-dialog.js +1 -1
  167. package/dist/components/tet-cloud-configurator.js +1 -1
  168. package/dist/components/tet-colors.js +1 -1
  169. package/dist/components/tet-compare-card-v2.js +1 -1
  170. package/dist/components/tet-compare-card-v3.js +1 -1
  171. package/dist/components/tet-compare-card.js +1 -1
  172. package/dist/components/tet-compare-cards-tab.js +1 -1
  173. package/dist/components/tet-compare-cards.js +1 -1
  174. package/dist/components/tet-container.js +1 -1
  175. package/dist/components/tet-countdown.js +1 -1
  176. package/dist/components/tet-counter.js +1 -1
  177. package/dist/components/tet-datepicker-header.js +1 -1
  178. package/dist/components/tet-datepicker-month-view.js +1 -1
  179. package/dist/components/tet-datepicker-multi-year-view.js +1 -1
  180. package/dist/components/tet-datepicker-year-view.js +1 -1
  181. package/dist/components/tet-datepicker.js +1 -1
  182. package/dist/components/tet-dialog.js +1 -1
  183. package/dist/components/tet-display.js +1 -1
  184. package/dist/components/tet-divider.js +1 -1
  185. package/dist/components/tet-dropdown.js +1 -1
  186. package/dist/components/tet-dynamic-card.js +1 -1
  187. package/dist/components/tet-expandable-input.js +1 -1
  188. package/dist/components/tet-expansion-panel.js +1 -1
  189. package/dist/components/tet-feedback-form.js +1 -1
  190. package/dist/components/tet-filter.js +1 -1
  191. package/dist/components/tet-floating-block.js +1 -1
  192. package/dist/components/tet-font-weight.js +1 -1
  193. package/dist/components/tet-fonts.js +1 -1
  194. package/dist/components/tet-grid.js +1 -1
  195. package/dist/components/tet-icon.js +1 -1
  196. package/dist/components/tet-inline-message.js +1 -1
  197. package/dist/components/tet-input.js +1 -1
  198. package/dist/components/tet-layout.js +1 -1
  199. package/dist/components/tet-link-card-list.js +1 -1
  200. package/dist/components/tet-link.js +1 -1
  201. package/dist/components/tet-loader.js +1 -1
  202. package/dist/components/tet-menu-mobile.js +1 -1
  203. package/dist/components/tet-menu.js +1 -1
  204. package/dist/components/tet-mini-compare-card.js +1 -1
  205. package/dist/components/tet-multi-step-dialog.js +1 -1
  206. package/dist/components/tet-navigation-mobile.js +1 -1
  207. package/dist/components/tet-news-card-list.js +1 -1
  208. package/dist/components/tet-notification.js +1 -1
  209. package/dist/components/tet-number-input.js +1 -1
  210. package/dist/components/tet-placeholder.js +1 -1
  211. package/dist/components/tet-position.js +1 -1
  212. package/dist/components/tet-price-view.js +1 -1
  213. package/dist/components/tet-radio-blocks.js +1 -1
  214. package/dist/components/tet-radio.js +1 -1
  215. package/dist/components/tet-range-slider.js +1 -1
  216. package/dist/components/tet-round-stepper.js +1 -1
  217. package/dist/components/tet-selection-list.js +1 -1
  218. package/dist/components/tet-snicker-card-group.js +1 -1
  219. package/dist/components/tet-snicker-card.js +1 -1
  220. package/dist/components/tet-spacing.js +1 -1
  221. package/dist/components/tet-spinner.js +1 -1
  222. package/dist/components/tet-stepper-input.js +1 -1
  223. package/dist/components/tet-stepper-v3.js +1 -1
  224. package/dist/components/tet-sticky-offer.js +1 -1
  225. package/dist/components/tet-support-search.js +1 -1
  226. package/dist/components/tet-switch.js +1 -1
  227. package/dist/components/tet-tab-content.js +1 -1
  228. package/dist/components/tet-tab-header.js +1 -1
  229. package/dist/components/tet-table.js +1 -1
  230. package/dist/components/tet-tag-group.js +1 -1
  231. package/dist/components/tet-tag.js +1 -1
  232. package/dist/components/tet-text-list.js +1 -1
  233. package/dist/components/tet-text.js +1 -1
  234. package/dist/components/tet-textarea.js +1 -1
  235. package/dist/components/tet-thank-you-view-v3.js +1 -1
  236. package/dist/components/tet-tooltip.js +1 -1
  237. package/dist/esm/{http-codes-CMh_eKUC.js → http-codes-DchfPj1v.js} +1 -1
  238. package/dist/esm/{index-st4TD55I.js → index-ClX9TYQY.js} +1 -1
  239. package/dist/esm/{index-DScKyiML.js → index-DfBhGuuz.js} +1 -1
  240. package/dist/esm/loader.js +2 -2
  241. package/dist/esm/{product-comparison-BHzU1-QK.js → product-comparison-DJko3TwF.js} +1 -1
  242. package/dist/esm/tet-accordion.entry.js +1 -1
  243. package/dist/esm/tet-address-offers-filters-products_2.entry.js +3 -3
  244. package/dist/esm/tet-address-offers-view.entry.js +3 -3
  245. package/dist/esm/tet-address-offers_5.entry.js +4 -4
  246. package/dist/esm/tet-assembler.entry.js +3 -3
  247. package/dist/esm/tet-autocomplete-dropdown.entry.js +1 -1
  248. package/dist/esm/tet-autocomplete_2.entry.js +1 -1
  249. package/dist/esm/tet-b2b-check-out-form_5.entry.js +3 -3
  250. package/dist/esm/tet-b2b-configurator.entry.js +4 -4
  251. package/dist/esm/tet-banner-nav.entry.js +3 -3
  252. package/dist/esm/tet-bar-graph.entry.js +1 -1
  253. package/dist/esm/tet-border-radius.entry.js +1 -1
  254. package/dist/esm/tet-business-card.entry.js +1 -1
  255. package/dist/esm/tet-business-compare-card.entry.js +1 -1
  256. package/dist/esm/tet-business-round-stepper.entry.js +1 -1
  257. package/dist/esm/tet-button.entry.js +1 -1
  258. package/dist/esm/tet-card-list.entry.js +1 -1
  259. package/dist/esm/tet-carousel.entry.js +3 -3
  260. package/dist/esm/tet-checkbox_3.entry.js +1 -1
  261. package/dist/esm/tet-cloud-application-form-dialog.entry.js +3 -3
  262. package/dist/esm/tet-cloud-configurator.entry.js +3 -3
  263. package/dist/esm/tet-colors.entry.js +1 -1
  264. package/dist/esm/tet-compare-card-v2.entry.js +3 -3
  265. package/dist/esm/tet-compare-card-v3.entry.js +3 -3
  266. package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
  267. package/dist/esm/tet-compare-cards_2.entry.js +3 -3
  268. package/dist/esm/tet-components.js +2 -2
  269. package/dist/esm/tet-container_2.entry.js +1 -1
  270. package/dist/esm/tet-countdown.entry.js +1 -1
  271. package/dist/esm/tet-counter.entry.js +1 -1
  272. package/dist/esm/tet-datepicker-header_4.entry.js +1 -1
  273. package/dist/esm/tet-datepicker.entry.js +1 -1
  274. package/dist/esm/tet-dialog.entry.js +3 -3
  275. package/dist/esm/tet-display.entry.js +1 -1
  276. package/dist/esm/tet-divider.entry.js +1 -1
  277. package/dist/esm/tet-dynamic-card.entry.js +1 -1
  278. package/dist/esm/tet-expandable-input.entry.js +1 -1
  279. package/dist/esm/tet-expansion-panel.entry.js +1 -1
  280. package/dist/esm/tet-feedback-form.entry.js +3 -3
  281. package/dist/esm/tet-filter.entry.js +1 -1
  282. package/dist/esm/tet-floating-block.entry.js +1 -1
  283. package/dist/esm/tet-font-weight.entry.js +1 -1
  284. package/dist/esm/tet-fonts.entry.js +1 -1
  285. package/dist/esm/tet-grid.entry.js +1 -1
  286. package/dist/esm/tet-icon.entry.js +2 -2
  287. package/dist/esm/tet-inline-message.entry.js +1 -1
  288. package/dist/esm/tet-input.entry.js +3 -3
  289. package/dist/esm/tet-layout.entry.js +1 -1
  290. package/dist/esm/tet-link-card-list.entry.js +1 -1
  291. package/dist/esm/tet-link.entry.js +1 -1
  292. package/dist/esm/tet-menu-mobile.entry.js +1 -1
  293. package/dist/esm/tet-menu.entry.js +1 -1
  294. package/dist/esm/tet-mini-compare-card.entry.js +1 -1
  295. package/dist/esm/tet-multi-step-dialog.entry.js +3 -3
  296. package/dist/esm/tet-navigation-mobile.entry.js +3 -3
  297. package/dist/esm/tet-news-card-list.entry.js +1 -1
  298. package/dist/esm/tet-notification.entry.js +1 -1
  299. package/dist/esm/tet-number-input.entry.js +1 -1
  300. package/dist/esm/tet-placeholder.entry.js +1 -1
  301. package/dist/esm/tet-position.entry.js +1 -1
  302. package/dist/esm/tet-price-view.entry.js +1 -1
  303. package/dist/esm/tet-radio-blocks.entry.js +1 -1
  304. package/dist/esm/tet-radio_2.entry.js +1 -1
  305. package/dist/esm/tet-range-slider.entry.js +1 -1
  306. package/dist/esm/tet-round-stepper.entry.js +1 -1
  307. package/dist/esm/tet-snicker-card-group.entry.js +1 -1
  308. package/dist/esm/tet-snicker-card.entry.js +3 -3
  309. package/dist/esm/tet-spacing.entry.js +1 -1
  310. package/dist/esm/tet-spinner.entry.js +1 -1
  311. package/dist/esm/tet-stepper-input.entry.js +3 -3
  312. package/dist/esm/tet-stepper-v3.entry.js +1 -1
  313. package/dist/esm/tet-sticky-offer.entry.js +1 -1
  314. package/dist/esm/tet-support-search.entry.js +1 -1
  315. package/dist/esm/tet-switch.entry.js +1 -1
  316. package/dist/esm/tet-table.entry.js +1 -1
  317. package/dist/esm/tet-tag_2.entry.js +3 -3
  318. package/dist/esm/tet-text-list.entry.js +1 -1
  319. package/dist/esm/tet-text.entry.js +1 -1
  320. package/dist/esm/tet-textarea.entry.js +1 -1
  321. package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
  322. package/dist/esm/{translations-CkBHYZxq.js → translations-4zQUcigP.js} +1 -1
  323. package/dist/tet-components/{p-4e65a282.entry.js → p-10e789d9.entry.js} +1 -1
  324. package/dist/tet-components/{p-e624df8a.entry.js → p-139d4cad.entry.js} +1 -1
  325. package/dist/tet-components/{p-abb2da28.entry.js → p-1556076a.entry.js} +1 -1
  326. package/dist/tet-components/{p-7dba08b3.entry.js → p-15bddc3d.entry.js} +1 -1
  327. package/dist/tet-components/{p-42346043.entry.js → p-19343cc6.entry.js} +1 -1
  328. package/dist/tet-components/{p-47c15f9c.entry.js → p-1d997c7d.entry.js} +1 -1
  329. package/dist/tet-components/{p-c7f0f9f4.entry.js → p-1deb89e1.entry.js} +1 -1
  330. package/dist/tet-components/{p-52c129e9.entry.js → p-21a59a4f.entry.js} +1 -1
  331. package/dist/tet-components/{p-d1a9ded7.entry.js → p-24bdeb37.entry.js} +1 -1
  332. package/dist/tet-components/{p-3204266c.entry.js → p-26dd3cb0.entry.js} +1 -1
  333. package/dist/tet-components/{p-104a465c.entry.js → p-29948163.entry.js} +1 -1
  334. package/dist/tet-components/{p-79388d8a.entry.js → p-2bd1b7ec.entry.js} +1 -1
  335. package/dist/tet-components/{p-a28d27a1.entry.js → p-2e4e81a5.entry.js} +1 -1
  336. package/dist/tet-components/{p-8b5ee723.entry.js → p-2e7cb093.entry.js} +1 -1
  337. package/dist/tet-components/{p-b066e773.entry.js → p-306ff942.entry.js} +1 -1
  338. package/dist/tet-components/{p-cf0f0d6e.entry.js → p-3242f182.entry.js} +1 -1
  339. package/dist/tet-components/{p-9a491f9a.entry.js → p-394b9c6b.entry.js} +1 -1
  340. package/dist/tet-components/{p-c3862ffb.entry.js → p-39be547b.entry.js} +1 -1
  341. package/dist/tet-components/{p-4bd72575.entry.js → p-3ab52911.entry.js} +1 -1
  342. package/dist/tet-components/{p-9d704250.entry.js → p-3d8635c1.entry.js} +1 -1
  343. package/dist/tet-components/{p-1c627ac0.entry.js → p-43d1f956.entry.js} +1 -1
  344. package/dist/tet-components/{p-a86ca759.entry.js → p-47484c33.entry.js} +1 -1
  345. package/dist/tet-components/{p-6b27edab.entry.js → p-47b6721e.entry.js} +1 -1
  346. package/dist/tet-components/{p-b2798ef1.entry.js → p-499ff632.entry.js} +1 -1
  347. package/dist/tet-components/{p-50c5e01e.entry.js → p-4a22c9a8.entry.js} +1 -1
  348. package/dist/tet-components/{p-4051e024.entry.js → p-4aa2dbc8.entry.js} +1 -1
  349. package/dist/tet-components/{p-e2d09b10.entry.js → p-4f47079e.entry.js} +1 -1
  350. package/dist/tet-components/{p-1095d7d6.entry.js → p-517168f6.entry.js} +1 -1
  351. package/dist/tet-components/{p-016d6dd4.entry.js → p-53b4947e.entry.js} +1 -1
  352. package/dist/tet-components/{p-c9bc7e1c.entry.js → p-591a092a.entry.js} +1 -1
  353. package/dist/tet-components/{p-c7741572.entry.js → p-5a31f21d.entry.js} +1 -1
  354. package/dist/tet-components/{p-dac6ad5c.entry.js → p-5bd0a0c8.entry.js} +1 -1
  355. package/dist/tet-components/{p-af3da7a0.entry.js → p-5fcc2e1e.entry.js} +1 -1
  356. package/dist/tet-components/{p-854c146d.entry.js → p-616d3818.entry.js} +1 -1
  357. package/dist/tet-components/{p-631721d5.entry.js → p-7105253e.entry.js} +1 -1
  358. package/dist/tet-components/{p-b2d61826.entry.js → p-73aca8b1.entry.js} +1 -1
  359. package/dist/tet-components/{p-537faa1c.entry.js → p-77ae360e.entry.js} +1 -1
  360. package/dist/tet-components/{p-1633a0b1.entry.js → p-79e4a166.entry.js} +1 -1
  361. package/dist/tet-components/{p-648fe9fe.entry.js → p-7fdd634a.entry.js} +1 -1
  362. package/dist/tet-components/{p-a631d8c5.entry.js → p-7ffa074d.entry.js} +1 -1
  363. package/dist/tet-components/{p-9a5ddf08.entry.js → p-8091cf4b.entry.js} +1 -1
  364. package/dist/tet-components/{p-7366cfd6.entry.js → p-8436df88.entry.js} +1 -1
  365. package/dist/tet-components/{p-feccd822.entry.js → p-87d015b3.entry.js} +1 -1
  366. package/dist/tet-components/{p-76d6013c.entry.js → p-8a9d5ef1.entry.js} +1 -1
  367. package/dist/tet-components/{p-af0e9ee6.entry.js → p-8b3ea797.entry.js} +1 -1
  368. package/dist/tet-components/{p-e87a7b06.entry.js → p-8bdcb714.entry.js} +1 -1
  369. package/dist/tet-components/{p-87e315d4.entry.js → p-92ef3a39.entry.js} +1 -1
  370. package/dist/tet-components/{p-6f09c992.entry.js → p-98ae4292.entry.js} +1 -1
  371. package/dist/tet-components/{p-6a2ed4f0.entry.js → p-9ab737dd.entry.js} +1 -1
  372. package/dist/tet-components/{p-bc53972c.entry.js → p-9b624822.entry.js} +1 -1
  373. package/dist/tet-components/{p-3AR12uVQ.js → p-B8Zjo2sa.js} +1 -1
  374. package/dist/tet-components/p-BGrvDoTj.js +1 -0
  375. package/dist/tet-components/{p-st4TD55I.js → p-ClX9TYQY.js} +1 -1
  376. package/dist/tet-components/{p-f4cfb3a5.entry.js → p-a0340287.entry.js} +1 -1
  377. package/dist/tet-components/{p-96e57ac6.entry.js → p-a410109c.entry.js} +1 -1
  378. package/dist/tet-components/{p-ba878c01.entry.js → p-b315a1c8.entry.js} +1 -1
  379. package/dist/tet-components/{p-3d981a11.entry.js → p-b4c45d6b.entry.js} +1 -1
  380. package/dist/tet-components/{p-54c98af8.entry.js → p-b5efc6d4.entry.js} +1 -1
  381. package/dist/tet-components/{p-ee844459.entry.js → p-b849774e.entry.js} +1 -1
  382. package/dist/tet-components/{p-6d7506fe.entry.js → p-b8c0433c.entry.js} +1 -1
  383. package/dist/tet-components/{p-a7f8ef9f.entry.js → p-baf6ba9e.entry.js} +1 -1
  384. package/dist/tet-components/{p-f2bd28a0.entry.js → p-bb325aa4.entry.js} +1 -1
  385. package/dist/tet-components/{p-ea5a63a1.entry.js → p-bd42d182.entry.js} +1 -1
  386. package/dist/tet-components/{p-891cff98.entry.js → p-c32edb32.entry.js} +1 -1
  387. package/dist/tet-components/p-c989a64d.entry.js +1 -0
  388. package/dist/tet-components/{p-b1037e46.entry.js → p-cb1c05ab.entry.js} +1 -1
  389. package/dist/tet-components/{p-9691d0a9.entry.js → p-cd267067.entry.js} +1 -1
  390. package/dist/tet-components/{p-76b13aec.entry.js → p-d2abe02d.entry.js} +1 -1
  391. package/dist/tet-components/{p-4b7c2be5.entry.js → p-d2db496b.entry.js} +1 -1
  392. package/dist/tet-components/{p-937c99dd.entry.js → p-d44bea09.entry.js} +1 -1
  393. package/dist/tet-components/{p-668c2484.entry.js → p-d88d8689.entry.js} +1 -1
  394. package/dist/tet-components/{p-7fc4c174.entry.js → p-d89ae495.entry.js} +1 -1
  395. package/dist/tet-components/{p-7a9e715e.entry.js → p-dca1a4c2.entry.js} +1 -1
  396. package/dist/tet-components/{p-86614def.entry.js → p-dfdf946f.entry.js} +1 -1
  397. package/dist/tet-components/{p-ca111c70.entry.js → p-e13f06c4.entry.js} +1 -1
  398. package/dist/tet-components/{p-16c536a8.entry.js → p-e5c07d62.entry.js} +1 -1
  399. package/dist/tet-components/{p-11363389.entry.js → p-eb3a8119.entry.js} +1 -1
  400. package/dist/tet-components/{p-259dfc83.entry.js → p-eca2fc2f.entry.js} +1 -1
  401. package/dist/tet-components/{p-041f46b1.entry.js → p-f5315eaf.entry.js} +1 -1
  402. package/dist/tet-components/{p-f96c8acc.entry.js → p-f5a86256.entry.js} +1 -1
  403. package/dist/tet-components/{p-6fc08d81.entry.js → p-f79c8697.entry.js} +1 -1
  404. package/dist/tet-components/{p-d1f560a6.entry.js → p-f7e3a24b.entry.js} +1 -1
  405. package/dist/tet-components/{p-CjkCTYSi.js → p-t-BNeeWq.js} +1 -1
  406. package/dist/tet-components/{p-2BDVUFcI.js → p-tf8lKgfD.js} +1 -1
  407. package/dist/tet-components/tet-components.esm.js +1 -1
  408. package/package.json +1 -1
  409. package/dist/tet-components/p-371e754f.entry.js +0 -1
  410. package/dist/tet-components/p-C8CA8-C8.js +0 -1
@@ -1 +1 @@
1
- import{p as t,H as e,d as o,h as r,t as n}from"./p-ChxhsA_J.js";import{p as a,t as s}from"./p-B8FP4SAH.js";import{a as i,d as c}from"./p-DkBngl8x.js";import{f as l}from"./p-B_N3UuP2.js";import{d as f}from"./p-djF4rk9X.js";import{d as m}from"./p-Cj8s5mfY.js";import{d}from"./p-CsSez6x5.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:"b2ca8dd11f65b985a8912f5106c8db1142d696be",class:{"business-summary-card":!0,[`theme-${c}`]:!0}},r("div",{key:"e54981477c3304f9242f9c65921952f03365aae8",class:"business-summary-card-content"},r("div",{key:"79497177bf232a2bb026fa63e94f0bebc87cb260",class:"business-summary-card-content__left"},r("div",{key:"06cd42c2c4320f40d70b5a49b0816232c22dce48",class:"content-wrapper"},r("div",{key:"2687c3806f3646303687cdab4e497679a55c48c4",class:"title"},t),r("div",{key:"3a81be97434f02b2b59f4ceee04b7366baee3596",class:"description"},o))),r("div",{key:"d51853be94ab6f98bd9bed835a7d95ed077bdfa2",class:"business-summary-card-content__right"},r("div",{key:"1b5fd3a388e603ada3962053e5c74541e208da5c",class:"content-wrapper"},r("div",{key:"d63f954fc3d02e82bd6b2c57c5f17a8f646f0df5",class:"title title--end"},`${l(n||e,{currency:""})} ${a}`),!!n&&r("div",{key:"1cc3e112420f09a074562e0999cc699a701165d6",class:{description:!0,price:!!n}},`${l(e,{currency:""})} ${a}`)))),r("div",{key:"611093907f61cdedabee5ba970bc846829c67a6b",class:"business-summary-card-content"},r("span",{key:"dcba98fb25981dc54b51d5e82741e30bed72be87",class:"contract-term"},s("components-offers-contract-terms-label"),": ",f),"checkout"===this.context&&this.renderLabel(!0)),"edit"===this.context&&r("div",{key:"0c6f7da1e96ae83a3869b7faae52b76199def1da",class:"business-summary-card-content"},r("div",{key:"9581748f6c76af9612777f13e2054e1cd93af023",class:"business-summary-card-content__left"},this.renderStepper()),r("div",{key:"e6de879568f75fa10a44949d64679f5fddd3433b",class:"business-summary-card-content__right"},r("div",{key:"0354b5432db658e22575ad6e56f256bff9092a98",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-nb3MHK7A.js";import{p as a,t as s}from"./p-DePtMqzY.js";import{a as i,d as c}from"./p-D4mimikO.js";import{f as l}from"./p-B_N3UuP2.js";import{d as f}from"./p-B-nwyAfL.js";import{d as m}from"./p-85IQWbFs.js";import{d}from"./p-BW48_rii.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:"b2ca8dd11f65b985a8912f5106c8db1142d696be",class:{"business-summary-card":!0,[`theme-${c}`]:!0}},r("div",{key:"e54981477c3304f9242f9c65921952f03365aae8",class:"business-summary-card-content"},r("div",{key:"79497177bf232a2bb026fa63e94f0bebc87cb260",class:"business-summary-card-content__left"},r("div",{key:"06cd42c2c4320f40d70b5a49b0816232c22dce48",class:"content-wrapper"},r("div",{key:"2687c3806f3646303687cdab4e497679a55c48c4",class:"title"},t),r("div",{key:"3a81be97434f02b2b59f4ceee04b7366baee3596",class:"description"},o))),r("div",{key:"d51853be94ab6f98bd9bed835a7d95ed077bdfa2",class:"business-summary-card-content__right"},r("div",{key:"1b5fd3a388e603ada3962053e5c74541e208da5c",class:"content-wrapper"},r("div",{key:"d63f954fc3d02e82bd6b2c57c5f17a8f646f0df5",class:"title title--end"},`${l(n||e,{currency:""})} ${a}`),!!n&&r("div",{key:"1cc3e112420f09a074562e0999cc699a701165d6",class:{description:!0,price:!!n}},`${l(e,{currency:""})} ${a}`)))),r("div",{key:"611093907f61cdedabee5ba970bc846829c67a6b",class:"business-summary-card-content"},r("span",{key:"dcba98fb25981dc54b51d5e82741e30bed72be87",class:"contract-term"},s("components-offers-contract-terms-label"),": ",f),"checkout"===this.context&&this.renderLabel(!0)),"edit"===this.context&&r("div",{key:"0c6f7da1e96ae83a3869b7faae52b76199def1da",class:"business-summary-card-content"},r("div",{key:"9581748f6c76af9612777f13e2054e1cd93af023",class:"business-summary-card-content__left"},this.renderStepper()),r("div",{key:"e6de879568f75fa10a44949d64679f5fddd3433b",class:"business-summary-card-content__right"},r("div",{key:"0354b5432db658e22575ad6e56f256bff9092a98",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,A as o}from"./p-BMd3uvm2.js";const r=r=>{let t;try{t=new URL(e.productComparison).href}catch(e){return console.error(e),Promise.reject("SAC product comparison endpoint URL generation failed.")}return(new o).setUrl(t+"?products="+r).setOptions({method:"GET"}).setErrorFallbackValue([]).execute()};export{r as p}
1
+ import{e,A as o}from"./p-KBNSpMwX.js";const r=r=>{let t;try{t=new URL(e.productComparison).href}catch(e){return console.error(e),Promise.reject("SAC product comparison endpoint URL generation failed.")}return(new o).setUrl(t+"?products="+r).setOptions({method:"GET"}).setErrorFallbackValue([]).execute()};export{r as p}
@@ -1 +1 @@
1
- import{e as t,A as s}from"./p-BMd3uvm2.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}
1
+ import{e as t,A as s}from"./p-KBNSpMwX.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}
@@ -1 +1 @@
1
- import{p as t,H as o,d as e,f as r,h as n,c as i,t as s}from"./p-ChxhsA_J.js";import{p as a,t as l}from"./p-B8FP4SAH.js";import{d as f}from"./p-Cj8s5mfY.js";import{d as c}from"./p-DF_X_yCR.js";import{d}from"./p-CZbfm31w.js";import{d as m}from"./p-BmBfXaht.js";class h{onFilterSelect;availableTvFilters=[];allFilters=[];constructor(t){this.onFilterSelect=t}initialize=(t,o)=>{t.productTags&&(this.availableTvFilters=this.resolveFilters(t,o)),this.updateDisabledFilters(),this.onFilterSelect([...this.availableTvFilters],this.getActiveFilterIds(),this.getFilteredProductIds(o))};getAvailableFilters=()=>[...this.availableTvFilters];clearFilters=t=>{this.availableTvFilters.forEach((t=>{t.active=!1,t.showIcon=!1})),this.updateDisabledFilters(),this.onFilterSelect([...this.availableTvFilters],[],this.getFilteredProductIds(t))};resolveFilters=(t,o)=>{const e=new Set(o.products.map((t=>t.productCode)));return(t.productTags||[]).map((t=>{const o=(t.products||[]).filter((t=>e.has(t)));return{id:t.tag,title:t.title,products:o,active:!1,disabled:!1,showIcon:!1,clickAction:this.filterClickAction.bind(this)}})).filter((t=>t.products.length>0))};updateDisabledFilters=()=>{const t=this.availableTvFilters.filter((t=>t.active)),o=t.length;let e=null;if(o>0){e=new Set(t[0].products);for(let o=1;o<t.length;o++)e=new Set([...e].filter((e=>t[o].products.includes(e))))}for(const t of this.availableTvFilters)if(t.active||0===o)t.disabled=!1;else{let o=e?[...e]:t.products;e&&(o=o.filter((o=>t.products.includes(o)))),t.disabled=o.length<=0,t.showIcon=!1}};filterClickAction=(t,o)=>{const e=this.availableTvFilters.find((({id:o})=>o===t.id));e&&(e.disabled||(e.active=!e.active,e.showIcon=!e.showIcon,this.updateDisabledFilters(),this.onFilterSelect([...this.availableTvFilters],this.getActiveFilterIds(),this.getFilteredProductIds(o))))};getActiveFilterIds=()=>this.availableTvFilters.filter((t=>t.active)).map((t=>t.id));getFilteredProductIds=(t=null)=>{if(!t||!t.products)return[];const o=this.availableTvFilters.filter((t=>t.active));if(0===o.length)return t.products.map((t=>t.productCode));let e=[...o[0].products];for(let t=1;t<o.length;t++)e=e.filter((e=>o[t].products.includes(e)));const r=new Set(t.products.map((t=>t.productCode)));return e=e.filter((t=>r.has(t))),e}}class g{onFilterSelect;availableTvFilters=[];allFilters=[];currentProducts={};constructor(t){this.onFilterSelect=t}initialize=t=>{const o=t.products,e=t.productTags;this.currentProducts=o,this.availableTvFilters=this.resolveFilters(o,e),this.updateDisabledFilters(),this.onFilterSelect([...this.availableTvFilters],this.getActiveFilterIds(),this.getFilteredProductIds())};getAvailableFilters=()=>[...this.availableTvFilters];clearFilters=()=>{this.availableTvFilters.forEach((t=>{t.active=!1,t.showIcon=!1})),this.updateDisabledFilters(),this.onFilterSelect([...this.availableTvFilters],[],this.getFilteredProductIds())};resolveFilters=(t,o)=>{const e=new Set(Object.values(t).map((t=>t.productCode)));return(o||[]).map((t=>{const o=(t.products||[]).filter((t=>e.has(t)));return{id:t.tag,title:t.title,products:o,active:!1,disabled:!1,clickAction:this.filterClickAction.bind(this)}})).filter((t=>t.products.length>0))};filterClickAction=t=>{const o=this.availableTvFilters.find((({id:o})=>o===t.id));o&&(o.disabled||(o.active=!o.active,o.showIcon=!o.showIcon,this.updateDisabledFilters(),this.onFilterSelect([...this.availableTvFilters],this.getActiveFilterIds(),this.getFilteredProductIds())))};updateDisabledFilters=()=>{const t=this.availableTvFilters.filter((t=>t.active)),o=t.length;let e=null;if(o>0){e=new Set(t[0].products);for(let o=1;o<t.length;o++)e=new Set([...e].filter((e=>t[o].products.includes(e))))}for(const t of this.availableTvFilters)if(t.active||0===o)t.disabled=!1;else{let o=e?[...e]:t.products;e&&(o=o.filter((o=>t.products.includes(o)))),t.disabled=o.length<=0,t.showIcon=!1}};getActiveFilterIds=()=>this.availableTvFilters.filter((t=>t.active)).map((t=>t.id));getFilteredProductIds=()=>{const t=this.availableTvFilters.filter((t=>t.active)),o=Object.values(this.currentProducts).map((t=>t.productCode));if(0===t.length)return o;let e=[...t[0].products];for(let o=1;o<t.length;o++)e=e.filter((e=>t[o].products.includes(e)));const r=new Set(o);return e=e.filter((t=>r.has(t))),e}}const p=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.activeFiltersChanged=e(this,"activeFiltersChanged"),this.filteredProductsChanged=e(this,"filteredProductsChanged")}language="lv";clearFilterButton=!1;theme="light";catalog;productCodes;category;subcategoryId;availableTvProducts=[];activeTvFilters=[];activeFiltersChanged;filteredProductsChanged;filtersHelper;compareCardsFiltersHelper;async onLanguageChange(t){a("tet-components",t).then((()=>r(this)))}onDataChange(){this.initFilters()}onProductCodesChanged(){this.initFilters()}async componentWillLoad(){await a("tet-components",this.language),this.initFilters()}initFilters(){this.catalog&&this.category?this.initAdrressOffersFilters():this.productCodes&&this.initCompareCardFilters()}initAdrressOffersFilters(){this.filtersHelper=new h(((t,o,e)=>{this.availableTvProducts=t.map((t=>({...t,clickAction:()=>this.toggleFilter(t.id)}))),this.activeTvFilters=o,this.activeFiltersChanged.emit(o),this.filteredProductsChanged.emit({subcategoryId:this.subcategoryId,filteredProductIds:e})})),this.filtersHelper.initialize(this.catalog,this.category)}initCompareCardFilters(){this.compareCardsFiltersHelper=new g(((t,o,e)=>{this.availableTvProducts=t.map((t=>({...t,clickAction:()=>this.toggleCompareCardsFilter(t.id)}))),this.activeTvFilters=o,this.activeFiltersChanged.emit(o),this.filteredProductsChanged.emit({subcategoryId:this.subcategoryId,filteredProductIds:e})})),this.compareCardsFiltersHelper.initialize(this.productCodes)}toggleFilter(t){const o=this.filtersHelper.getAvailableFilters().find((o=>o.id===t));o&&!o.disabled&&this.filtersHelper.filterClickAction(o,this.category)}toggleCompareCardsFilter(t){const o=this.compareCardsFiltersHelper.getAvailableFilters().find((o=>o.id===t));o&&!o.disabled&&this.compareCardsFiltersHelper.filterClickAction(o)}clearAllFilters=()=>{this.filtersHelper&&this.filtersHelper.clearFilters(this.category),this.compareCardsFiltersHelper&&this.compareCardsFiltersHelper.clearFilters()};renderClearFilterBtn=()=>this.clearFilterButton&&0!==this.availableTvProducts.length?n("button",{class:{"clear-button":!0,[`theme-${this.theme}`]:!0},onClick:()=>this.clearAllFilters()},n("tet-icon",{name:"tc-reload",part:"icon-selected"}),l("components-address-offers-filters-clear-btn")):null;renderLoader=()=>n("div",{class:"loader"},Array.from({length:4}).map((()=>n("tet-placeholder",{height:"2rem",width:"8rem",class:"tag-placeholder",darkTheme:"dark"===this.theme}))));render(){return n(i,{key:"8ed450bef08ca53aeef7dd23042e3d763e6e180a"},0===this.availableTvProducts.length&&this.renderLoader(),n("tet-tag-group",{key:"5a7b8c3eaa734dffa5bfbf71776cc04b6b2c1020",tags:this.availableTvProducts,language:this.language,theme:this.theme}),this.renderClearFilterBtn())}static get watchers(){return{language:[{onLanguageChange:0}],catalog:[{onDataChange:0}],category:[{onDataChange:0}],productCodes:[{onProductCodesChanged: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)}:host{display:flex;flex-wrap:wrap;gap:1rem}.loader{display:flex;gap:0.5rem;flex-wrap:wrap}.loader .tag-placeholder{--placeholder-animation-speed:20s}.clear-button{font:500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";display:flex;flex-wrap:nowrap;border:0.0625rem solid var(--clear-button-border-color);cursor:pointer;align-items:center;gap:0.25rem;padding:0.375rem 0.75rem;color:var(--clear-button-text-color);border-radius:0.625rem;background:var(--clear-button-background-color);--icon-size:1rem}.clear-button tet-icon{--icon-color:var(--clear-button-icon-color);--icon-container-display:flex}.clear-button:hover{background:var(--clear-button-background-hover)}.clear-button.theme-light{--clear-button-border-color:var(--tc-border-primary);--clear-button-text-color:var(--tc-text-primary);--clear-button-background-color:var(--tc-layer-primary);--clear-button-background-hover:var(--tc-button-primary-background-inverse-hover);--clear-button-focus-outline-color:var(--tc-blue-40);--clear-button-icon-color:var(--tc-icon-primary)}.clear-button.theme-dark{--clear-button-border-color:var(--tc-border-primary-dark);--clear-button-text-color:var(--tc-text-primary-dark);--clear-button-background-color:var(--tc-layer-primary-dark);--clear-button-background-hover:var(--tc-button-primary-background-inverse-hover-dark);--clear-button-focus-outline-color:var(--tc-blue-40-dark);--clear-button-icon-color:var(--tc-icon-primary-dark)}.clear-button:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0rem;transition:outline 0s;outline-color:var(--clear-button-focus-outline-color);border-color:transparent}'}},[513,"tet-address-offers-filters-products",{language:[1],clearFilterButton:[4,"clear-filter-button"],theme:[1],catalog:[16],productCodes:[16],category:[16],subcategoryId:[1,"subcategory-id"],availableTvProducts:[32],activeTvFilters:[32]},void 0,{language:[{onLanguageChange:0}],catalog:[{onDataChange:0}],category:[{onDataChange:0}],productCodes:[{onProductCodesChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["tet-address-offers-filters-products","tet-icon","tet-placeholder","tet-tag","tet-tag-group"].forEach((t=>{switch(t){case"tet-address-offers-filters-products":customElements.get(s(t))||customElements.define(s(t),p);break;case"tet-icon":customElements.get(s(t))||f();break;case"tet-placeholder":customElements.get(s(t))||c();break;case"tet-tag":customElements.get(s(t))||d();break;case"tet-tag-group":customElements.get(s(t))||m()}}))}export{g as C,p as T,u as d}
1
+ import{p as t,H as o,d as e,f as r,h as n,c as i,t as s}from"./p-nb3MHK7A.js";import{p as a,t as l}from"./p-DePtMqzY.js";import{d as f}from"./p-85IQWbFs.js";import{d as c}from"./p-B_RQCK28.js";import{d}from"./p-5bU9w0Qe.js";import{d as m}from"./p-0m6VLm4E.js";class h{onFilterSelect;availableTvFilters=[];allFilters=[];constructor(t){this.onFilterSelect=t}initialize=(t,o)=>{t.productTags&&(this.availableTvFilters=this.resolveFilters(t,o)),this.updateDisabledFilters(),this.onFilterSelect([...this.availableTvFilters],this.getActiveFilterIds(),this.getFilteredProductIds(o))};getAvailableFilters=()=>[...this.availableTvFilters];clearFilters=t=>{this.availableTvFilters.forEach((t=>{t.active=!1,t.showIcon=!1})),this.updateDisabledFilters(),this.onFilterSelect([...this.availableTvFilters],[],this.getFilteredProductIds(t))};resolveFilters=(t,o)=>{const e=new Set(o.products.map((t=>t.productCode)));return(t.productTags||[]).map((t=>{const o=(t.products||[]).filter((t=>e.has(t)));return{id:t.tag,title:t.title,products:o,active:!1,disabled:!1,showIcon:!1,clickAction:this.filterClickAction.bind(this)}})).filter((t=>t.products.length>0))};updateDisabledFilters=()=>{const t=this.availableTvFilters.filter((t=>t.active)),o=t.length;let e=null;if(o>0){e=new Set(t[0].products);for(let o=1;o<t.length;o++)e=new Set([...e].filter((e=>t[o].products.includes(e))))}for(const t of this.availableTvFilters)if(t.active||0===o)t.disabled=!1;else{let o=e?[...e]:t.products;e&&(o=o.filter((o=>t.products.includes(o)))),t.disabled=o.length<=0,t.showIcon=!1}};filterClickAction=(t,o)=>{const e=this.availableTvFilters.find((({id:o})=>o===t.id));e&&(e.disabled||(e.active=!e.active,e.showIcon=!e.showIcon,this.updateDisabledFilters(),this.onFilterSelect([...this.availableTvFilters],this.getActiveFilterIds(),this.getFilteredProductIds(o))))};getActiveFilterIds=()=>this.availableTvFilters.filter((t=>t.active)).map((t=>t.id));getFilteredProductIds=(t=null)=>{if(!t||!t.products)return[];const o=this.availableTvFilters.filter((t=>t.active));if(0===o.length)return t.products.map((t=>t.productCode));let e=[...o[0].products];for(let t=1;t<o.length;t++)e=e.filter((e=>o[t].products.includes(e)));const r=new Set(t.products.map((t=>t.productCode)));return e=e.filter((t=>r.has(t))),e}}class g{onFilterSelect;availableTvFilters=[];allFilters=[];currentProducts={};constructor(t){this.onFilterSelect=t}initialize=t=>{const o=t.products,e=t.productTags;this.currentProducts=o,this.availableTvFilters=this.resolveFilters(o,e),this.updateDisabledFilters(),this.onFilterSelect([...this.availableTvFilters],this.getActiveFilterIds(),this.getFilteredProductIds())};getAvailableFilters=()=>[...this.availableTvFilters];clearFilters=()=>{this.availableTvFilters.forEach((t=>{t.active=!1,t.showIcon=!1})),this.updateDisabledFilters(),this.onFilterSelect([...this.availableTvFilters],[],this.getFilteredProductIds())};resolveFilters=(t,o)=>{const e=new Set(Object.values(t).map((t=>t.productCode)));return(o||[]).map((t=>{const o=(t.products||[]).filter((t=>e.has(t)));return{id:t.tag,title:t.title,products:o,active:!1,disabled:!1,clickAction:this.filterClickAction.bind(this)}})).filter((t=>t.products.length>0))};filterClickAction=t=>{const o=this.availableTvFilters.find((({id:o})=>o===t.id));o&&(o.disabled||(o.active=!o.active,o.showIcon=!o.showIcon,this.updateDisabledFilters(),this.onFilterSelect([...this.availableTvFilters],this.getActiveFilterIds(),this.getFilteredProductIds())))};updateDisabledFilters=()=>{const t=this.availableTvFilters.filter((t=>t.active)),o=t.length;let e=null;if(o>0){e=new Set(t[0].products);for(let o=1;o<t.length;o++)e=new Set([...e].filter((e=>t[o].products.includes(e))))}for(const t of this.availableTvFilters)if(t.active||0===o)t.disabled=!1;else{let o=e?[...e]:t.products;e&&(o=o.filter((o=>t.products.includes(o)))),t.disabled=o.length<=0,t.showIcon=!1}};getActiveFilterIds=()=>this.availableTvFilters.filter((t=>t.active)).map((t=>t.id));getFilteredProductIds=()=>{const t=this.availableTvFilters.filter((t=>t.active)),o=Object.values(this.currentProducts).map((t=>t.productCode));if(0===t.length)return o;let e=[...t[0].products];for(let o=1;o<t.length;o++)e=e.filter((e=>t[o].products.includes(e)));const r=new Set(o);return e=e.filter((t=>r.has(t))),e}}const p=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.activeFiltersChanged=e(this,"activeFiltersChanged"),this.filteredProductsChanged=e(this,"filteredProductsChanged")}language="lv";clearFilterButton=!1;theme="light";catalog;productCodes;category;subcategoryId;availableTvProducts=[];activeTvFilters=[];activeFiltersChanged;filteredProductsChanged;filtersHelper;compareCardsFiltersHelper;async onLanguageChange(t){a("tet-components",t).then((()=>r(this)))}onDataChange(){this.initFilters()}onProductCodesChanged(){this.initFilters()}async componentWillLoad(){await a("tet-components",this.language),this.initFilters()}initFilters(){this.catalog&&this.category?this.initAdrressOffersFilters():this.productCodes&&this.initCompareCardFilters()}initAdrressOffersFilters(){this.filtersHelper=new h(((t,o,e)=>{this.availableTvProducts=t.map((t=>({...t,clickAction:()=>this.toggleFilter(t.id)}))),this.activeTvFilters=o,this.activeFiltersChanged.emit(o),this.filteredProductsChanged.emit({subcategoryId:this.subcategoryId,filteredProductIds:e})})),this.filtersHelper.initialize(this.catalog,this.category)}initCompareCardFilters(){this.compareCardsFiltersHelper=new g(((t,o,e)=>{this.availableTvProducts=t.map((t=>({...t,clickAction:()=>this.toggleCompareCardsFilter(t.id)}))),this.activeTvFilters=o,this.activeFiltersChanged.emit(o),this.filteredProductsChanged.emit({subcategoryId:this.subcategoryId,filteredProductIds:e})})),this.compareCardsFiltersHelper.initialize(this.productCodes)}toggleFilter(t){const o=this.filtersHelper.getAvailableFilters().find((o=>o.id===t));o&&!o.disabled&&this.filtersHelper.filterClickAction(o,this.category)}toggleCompareCardsFilter(t){const o=this.compareCardsFiltersHelper.getAvailableFilters().find((o=>o.id===t));o&&!o.disabled&&this.compareCardsFiltersHelper.filterClickAction(o)}clearAllFilters=()=>{this.filtersHelper&&this.filtersHelper.clearFilters(this.category),this.compareCardsFiltersHelper&&this.compareCardsFiltersHelper.clearFilters()};renderClearFilterBtn=()=>this.clearFilterButton&&0!==this.availableTvProducts.length?n("button",{class:{"clear-button":!0,[`theme-${this.theme}`]:!0},onClick:()=>this.clearAllFilters()},n("tet-icon",{name:"tc-reload",part:"icon-selected"}),l("components-address-offers-filters-clear-btn")):null;renderLoader=()=>n("div",{class:"loader"},Array.from({length:4}).map((()=>n("tet-placeholder",{height:"2rem",width:"8rem",class:"tag-placeholder",darkTheme:"dark"===this.theme}))));render(){return n(i,{key:"8ed450bef08ca53aeef7dd23042e3d763e6e180a"},0===this.availableTvProducts.length&&this.renderLoader(),n("tet-tag-group",{key:"5a7b8c3eaa734dffa5bfbf71776cc04b6b2c1020",tags:this.availableTvProducts,language:this.language,theme:this.theme}),this.renderClearFilterBtn())}static get watchers(){return{language:[{onLanguageChange:0}],catalog:[{onDataChange:0}],category:[{onDataChange:0}],productCodes:[{onProductCodesChanged: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)}:host{display:flex;flex-wrap:wrap;gap:1rem}.loader{display:flex;gap:0.5rem;flex-wrap:wrap}.loader .tag-placeholder{--placeholder-animation-speed:20s}.clear-button{font:500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";display:flex;flex-wrap:nowrap;border:0.0625rem solid var(--clear-button-border-color);cursor:pointer;align-items:center;gap:0.25rem;padding:0.375rem 0.75rem;color:var(--clear-button-text-color);border-radius:0.625rem;background:var(--clear-button-background-color);--icon-size:1rem}.clear-button tet-icon{--icon-color:var(--clear-button-icon-color);--icon-container-display:flex}.clear-button:hover{background:var(--clear-button-background-hover)}.clear-button.theme-light{--clear-button-border-color:var(--tc-border-primary);--clear-button-text-color:var(--tc-text-primary);--clear-button-background-color:var(--tc-layer-primary);--clear-button-background-hover:var(--tc-button-primary-background-inverse-hover);--clear-button-focus-outline-color:var(--tc-blue-40);--clear-button-icon-color:var(--tc-icon-primary)}.clear-button.theme-dark{--clear-button-border-color:var(--tc-border-primary-dark);--clear-button-text-color:var(--tc-text-primary-dark);--clear-button-background-color:var(--tc-layer-primary-dark);--clear-button-background-hover:var(--tc-button-primary-background-inverse-hover-dark);--clear-button-focus-outline-color:var(--tc-blue-40-dark);--clear-button-icon-color:var(--tc-icon-primary-dark)}.clear-button:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0rem;transition:outline 0s;outline-color:var(--clear-button-focus-outline-color);border-color:transparent}'}},[513,"tet-address-offers-filters-products",{language:[1],clearFilterButton:[4,"clear-filter-button"],theme:[1],catalog:[16],productCodes:[16],category:[16],subcategoryId:[1,"subcategory-id"],availableTvProducts:[32],activeTvFilters:[32]},void 0,{language:[{onLanguageChange:0}],catalog:[{onDataChange:0}],category:[{onDataChange:0}],productCodes:[{onProductCodesChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["tet-address-offers-filters-products","tet-icon","tet-placeholder","tet-tag","tet-tag-group"].forEach((t=>{switch(t){case"tet-address-offers-filters-products":customElements.get(s(t))||customElements.define(s(t),p);break;case"tet-icon":customElements.get(s(t))||f();break;case"tet-placeholder":customElements.get(s(t))||c();break;case"tet-tag":customElements.get(s(t))||d();break;case"tet-tag-group":customElements.get(s(t))||m()}}))}export{g as C,p as T,u as d}
@@ -1 +1 @@
1
- import{c as t}from"./p-Cj8s5mfY.js";class e{onFilterSelect;availableFilters=[];allFilters=[{id:"all",titleTranslationKey:"components-address-offers-tag-all",active:!0},{id:"promotions",titleTranslationKey:"components-address-offers-tag-promotions",active:!1},{id:"internet",titleTranslationKey:"components-address-offers-tag-internet",active:!1},{id:"tet-bundles",titleTranslationKey:"components-address-offers-tag-bundle",active:!1},{id:"tv",titleTranslationKey:"components-address-offers-tag-tv",active:!1}];singleSelectionFilters=["all","promotions"];constructor(t){this.onFilterSelect=t}initialize=t=>{t.structure&&(this.availableFilters=this.resolveFilters(t))};getAvailableFilters=()=>this.availableFilters;resolveFilters=t=>{const e=this.calculateFilterCounts(t);return this.allFilters.filter((({id:t})=>e[t])).map((t=>({id:t.id,title:t.titleTranslationKey,count:e[t.id],active:t.active,showIcon:"all"!==t.id&&t.active,clickAction:this.filterClickAction.bind(this,t)})))};calculateFilterCounts=({structure:t})=>{const e={all:0,promotions:0};return t?.forEach((t=>{t.subgroups.forEach((({tag:t,products:i})=>{e[t]||(e[t]=0);const s=i.filter((t=>{const e=t.attributes?.some((t=>"isNetflixPremiumProduct"===t.key&&!0===t.value));return!e}));e[t]+=s.length,e.all+=s.length;const l=s.reduce(((t,e)=>e.contractTerms?.some((({promotionCode:t})=>t))?t+1:t),0);e.promotions+=l}))})),e};filterClickAction=t=>{const e=this.availableFilters.find((({id:e})=>e===t.id));void 0!==e&&(this.singleSelectionFilters.includes(e.id)?this.deSelectAllFilers(e):this.deSelectSingleSelectionFilters(),e.active=!e.active,e.showIcon="all"!==e.id&&!e.showIcon,this.availableFilters.some((({active:t})=>t))||(this.availableFilters.find((({id:t})=>"all"===t)).active=!0),this.onFilterSelect(this.availableFilters))};deSelectAllFilers=t=>{const{id:e,active:i}=t;"all"!==e&&i||this.availableFilters.forEach((t=>{t.active=!1,t.showIcon=!1}))};deSelectSingleSelectionFilters=()=>{this.availableFilters.filter((({id:t})=>this.singleSelectionFilters.includes(t))).forEach((t=>{t.active=!1,t.showIcon=!1}))}}const{state:i,onChange:s}=t({catalog:{addressKey:"",structure:[],productTags:[],meta:[]},availableFilters:[],activeFilters:["all"]});s("catalog",(t=>{const s=new e((t=>{i.availableFilters=[...t],i.activeFilters=l(t)}));s.initialize(t),i.availableFilters=s.getAvailableFilters(),i.activeFilters=["all"]}));const l=t=>t.filter((({active:t})=>t)).map((({id:t})=>t));function o(){i.activeFilters=["all"],i.availableFilters=i.availableFilters.map((t=>(t.active="all"===t.id,t.showIcon=!1,t)))}export{o as c,s as o,i as s}
1
+ import{c as t}from"./p-85IQWbFs.js";class e{onFilterSelect;availableFilters=[];allFilters=[{id:"all",titleTranslationKey:"components-address-offers-tag-all",active:!0},{id:"promotions",titleTranslationKey:"components-address-offers-tag-promotions",active:!1},{id:"internet",titleTranslationKey:"components-address-offers-tag-internet",active:!1},{id:"tet-bundles",titleTranslationKey:"components-address-offers-tag-bundle",active:!1},{id:"tv",titleTranslationKey:"components-address-offers-tag-tv",active:!1}];singleSelectionFilters=["all","promotions"];constructor(t){this.onFilterSelect=t}initialize=t=>{t.structure&&(this.availableFilters=this.resolveFilters(t))};getAvailableFilters=()=>this.availableFilters;resolveFilters=t=>{const e=this.calculateFilterCounts(t);return this.allFilters.filter((({id:t})=>e[t])).map((t=>({id:t.id,title:t.titleTranslationKey,count:e[t.id],active:t.active,showIcon:"all"!==t.id&&t.active,clickAction:this.filterClickAction.bind(this,t)})))};calculateFilterCounts=({structure:t})=>{const e={all:0,promotions:0};return t?.forEach((t=>{t.subgroups.forEach((({tag:t,products:i})=>{e[t]||(e[t]=0);const s=i.filter((t=>{const e=t.attributes?.some((t=>"isNetflixPremiumProduct"===t.key&&!0===t.value));return!e}));e[t]+=s.length,e.all+=s.length;const l=s.reduce(((t,e)=>e.contractTerms?.some((({promotionCode:t})=>t))?t+1:t),0);e.promotions+=l}))})),e};filterClickAction=t=>{const e=this.availableFilters.find((({id:e})=>e===t.id));void 0!==e&&(this.singleSelectionFilters.includes(e.id)?this.deSelectAllFilers(e):this.deSelectSingleSelectionFilters(),e.active=!e.active,e.showIcon="all"!==e.id&&!e.showIcon,this.availableFilters.some((({active:t})=>t))||(this.availableFilters.find((({id:t})=>"all"===t)).active=!0),this.onFilterSelect(this.availableFilters))};deSelectAllFilers=t=>{const{id:e,active:i}=t;"all"!==e&&i||this.availableFilters.forEach((t=>{t.active=!1,t.showIcon=!1}))};deSelectSingleSelectionFilters=()=>{this.availableFilters.filter((({id:t})=>this.singleSelectionFilters.includes(t))).forEach((t=>{t.active=!1,t.showIcon=!1}))}}const{state:i,onChange:s}=t({catalog:{addressKey:"",structure:[],productTags:[],meta:[]},availableFilters:[],activeFilters:["all"]});s("catalog",(t=>{const s=new e((t=>{i.availableFilters=[...t],i.activeFilters=l(t)}));s.initialize(t),i.availableFilters=s.getAvailableFilters(),i.activeFilters=["all"]}));const l=t=>t.filter((({active:t})=>t)).map((({id:t})=>t));function o(){i.activeFilters=["all"],i.availableFilters=i.availableFilters.map((t=>(t.active="all"===t.id,t.showIcon=!1,t)))}export{o as c,s as o,i as s}