@tet/tet-components 1.4.138-testing → 1.4.139-staging

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (420) hide show
  1. package/dist/cjs/{http-codes-C-IXSZGG.js → http-codes-M3UINy7t.js} +1 -1
  2. package/dist/cjs/{index-DKg1QTRW.js → index-BGnwL8G_.js} +5 -5
  3. package/dist/cjs/{index-Bo0hF6YQ.js → index-CabrFqSe.js} +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{product-comparison-f-u42TDe.js → product-comparison-1cTUG5Si.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 +46 -9
  30. package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
  31. package/dist/cjs/tet-compare-cards_2.cjs.entry.js +3 -3
  32. package/dist/cjs/tet-components.cjs.js +2 -2
  33. package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
  34. package/dist/cjs/tet-countdown.cjs.entry.js +1 -1
  35. package/dist/cjs/tet-counter.cjs.entry.js +1 -1
  36. package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +1 -1
  37. package/dist/cjs/tet-datepicker.cjs.entry.js +1 -1
  38. package/dist/cjs/tet-dialog.cjs.entry.js +3 -3
  39. package/dist/cjs/tet-display.cjs.entry.js +1 -1
  40. package/dist/cjs/tet-divider.cjs.entry.js +1 -1
  41. package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
  42. package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
  43. package/dist/cjs/tet-expansion-panel.cjs.entry.js +1 -1
  44. package/dist/cjs/tet-feedback-form.cjs.entry.js +3 -3
  45. package/dist/cjs/tet-filter.cjs.entry.js +1 -1
  46. package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
  47. package/dist/cjs/tet-font-weight.cjs.entry.js +1 -1
  48. package/dist/cjs/tet-fonts.cjs.entry.js +1 -1
  49. package/dist/cjs/tet-grid.cjs.entry.js +1 -1
  50. package/dist/cjs/tet-icon.cjs.entry.js +2 -2
  51. package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
  52. package/dist/cjs/tet-input.cjs.entry.js +3 -3
  53. package/dist/cjs/tet-layout.cjs.entry.js +1 -1
  54. package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
  55. package/dist/cjs/tet-link.cjs.entry.js +1 -1
  56. package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
  57. package/dist/cjs/tet-menu.cjs.entry.js +1 -1
  58. package/dist/cjs/tet-mini-compare-card.cjs.entry.js +1 -1
  59. package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +3 -3
  60. package/dist/cjs/tet-navigation-mobile.cjs.entry.js +3 -3
  61. package/dist/cjs/tet-news-card-list.cjs.entry.js +1 -1
  62. package/dist/cjs/tet-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 +28 -21
  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-f2lO6WcB.js → translations-MNaGVsId.js} +1 -1
  87. package/dist/collection/components/advanced/cards/tet-compare-card-v3/tet-compare-card-v3.css +1 -1
  88. package/dist/collection/components/advanced/cards/tet-compare-card-v3/tet-compare-card-v3.js +65 -6
  89. package/dist/collection/components/basic/buttons/tet-radio-blocks/tet-radio-blocks.css +75 -42
  90. package/dist/collection/components/basic/buttons/tet-radio-blocks/tet-radio-blocks.js +35 -26
  91. package/dist/components/index.js +1 -1
  92. package/dist/components/{p-CIMNJ4X2.js → p-B36OnKxA.js} +1 -1
  93. package/dist/components/{p-BLY0RO0L.js → p-B5gZt66l.js} +1 -1
  94. package/dist/components/{p-DePtMqzY.js → p-B8FP4SAH.js} +1 -1
  95. package/dist/components/{p-P_J147mb.js → p-BCS3Q4O-.js} +1 -1
  96. package/dist/components/{p-cnUvPtFj.js → p-BFRbl437.js} +1 -1
  97. package/dist/components/{p-BgpTlgXX.js → p-BJyEjHQx.js} +1 -1
  98. package/dist/components/{p-DKavMVSi.js → p-BKPQnaRw.js} +1 -1
  99. package/dist/components/{p-Cwu8jtXG.js → p-BKT3j81W.js} +1 -1
  100. package/dist/components/{p-KBNSpMwX.js → p-BMd3uvm2.js} +1 -1
  101. package/dist/components/{p-Be5i4YJ4.js → p-BXDq6r9O.js} +1 -1
  102. package/dist/components/{p-CIPUn8d2.js → p-BtQDYhdb.js} +1 -1
  103. package/dist/components/{p-DgcBdohb.js → p-BtSNSrDr.js} +1 -1
  104. package/dist/components/{p-Bdt0k-v8.js → p-BvciW7tt.js} +1 -1
  105. package/dist/components/{p-DHOPNeBR.js → p-C2Vn0VjX.js} +1 -1
  106. package/dist/components/{p-DcqGjbQO.js → p-CDm2kZUj.js} +1 -1
  107. package/dist/components/{p-Cfy46lS6.js → p-CO0VSTHD.js} +1 -1
  108. package/dist/components/p-COSlMg29.js +1 -0
  109. package/dist/components/{p-c36Z0_hK.js → p-CP-a_UPI.js} +1 -1
  110. package/dist/components/{p-D9qys4GX.js → p-CPB6HceB.js} +1 -1
  111. package/dist/components/{p-Dzb-TXLO.js → p-CRJmHkRm.js} +1 -1
  112. package/dist/components/{p-1M2reaCU.js → p-CVKvk6QH.js} +1 -1
  113. package/dist/components/{p-B8ElCfnM.js → p-CYfNgSDa.js} +1 -1
  114. package/dist/components/{p-CFDvtl5l.js → p-CfmV2Jgh.js} +1 -1
  115. package/dist/components/{p-nb3MHK7A.js → p-ChxhsA_J.js} +1 -1
  116. package/dist/components/{p-9ItXFJZ6.js → p-ClZGNJ8K.js} +1 -1
  117. package/dist/components/{p-CjOuXGOS.js → p-CrSRJXyV.js} +1 -1
  118. package/dist/components/{p-BsNlQtYx.js → p-CwSl5E57.js} +1 -1
  119. package/dist/components/{p-DJQWSjRR.js → p-D7yVtwIG.js} +1 -1
  120. package/dist/components/{p-zkmKLYHg.js → p-DDjtysF3.js} +1 -1
  121. package/dist/components/{p-B_RQCK28.js → p-DF_X_yCR.js} +1 -1
  122. package/dist/components/{p-BZ9cVPPC.js → p-DMha5T5b.js} +1 -1
  123. package/dist/components/{p-CMbAQKoe.js → p-DULF82L1.js} +1 -1
  124. package/dist/components/{p-B4MTqXan.js → p-DWm7jq2J.js} +1 -1
  125. package/dist/components/{p-DH1iZWF5.js → p-D_0fYn3l.js} +1 -1
  126. package/dist/components/{p-ClWTLrk_.js → p-Df7zWrR3.js} +1 -1
  127. package/dist/components/{p-BBMx2Nbt.js → p-DftHVfCt.js} +1 -1
  128. package/dist/components/{p-ChbxhvnA.js → p-DvUWnsVA.js} +1 -1
  129. package/dist/components/{p-lmIrgmgo.js → p-Dy5X-F_i.js} +1 -1
  130. package/dist/components/{p-Do_1srPW.js → p-DyW5hKus.js} +1 -1
  131. package/dist/components/{p-BOavyx-7.js → p-Jr4xP8U0.js} +1 -1
  132. package/dist/components/{p-DeFz-G5N.js → p-JxsG9Eqn.js} +1 -1
  133. package/dist/components/{p-CQfy7CVi.js → p-STr2Oh_2.js} +1 -1
  134. package/dist/components/{p-DQaNW2BX.js → p-TrvYXEJ_.js} +1 -1
  135. package/dist/components/{p-Bq1skzzY.js → p-Vo_9U06w.js} +1 -1
  136. package/dist/components/{p-BZ0uDmYr.js → p-YbtFFhcU.js} +1 -1
  137. package/dist/components/{p-DRJ0zjoF.js → p-cb20nj-c.js} +1 -1
  138. package/dist/components/{p-tQ4vjHQ1.js → p-nZe5s9iw.js} +1 -1
  139. package/dist/components/{p-CT-Ge0pF.js → p-nfGM0aGC.js} +1 -1
  140. package/dist/components/{p-4OtGLxTM.js → p-ro9Xo95n.js} +1 -1
  141. package/dist/components/{p-BWmFtcLN.js → p-v3jmLiwp.js} +1 -1
  142. package/dist/components/{p-Dvk7syez.js → p-vTo56FQh.js} +1 -1
  143. package/dist/components/{p-Clw2OLNj.js → p-x60Po9AL.js} +1 -1
  144. package/dist/components/tet-accordion.js +1 -1
  145. package/dist/components/tet-address-offers-filters-products.js +1 -1
  146. package/dist/components/tet-address-offers-filters.js +1 -1
  147. package/dist/components/tet-address-offers-view.js +1 -1
  148. package/dist/components/tet-address-offers.js +1 -1
  149. package/dist/components/tet-address-search.js +1 -1
  150. package/dist/components/tet-assembler.js +1 -1
  151. package/dist/components/tet-asset-availability-addresses.js +1 -1
  152. package/dist/components/tet-autocomplete-dropdown.js +1 -1
  153. package/dist/components/tet-autocomplete.js +1 -1
  154. package/dist/components/tet-availability-contact-form.js +1 -1
  155. package/dist/components/tet-b2b-check-out-form.js +1 -1
  156. package/dist/components/tet-b2b-compare-card.js +1 -1
  157. package/dist/components/tet-b2b-configurator-cart.js +1 -1
  158. package/dist/components/tet-b2b-configurator.js +1 -1
  159. package/dist/components/tet-banner-nav.js +1 -1
  160. package/dist/components/tet-bar-graph.js +1 -1
  161. package/dist/components/tet-border-radius.js +1 -1
  162. package/dist/components/tet-business-card.js +1 -1
  163. package/dist/components/tet-business-compare-card.js +1 -1
  164. package/dist/components/tet-business-navigation.js +1 -1
  165. package/dist/components/tet-business-round-stepper.js +1 -1
  166. package/dist/components/tet-business-summary-card.js +1 -1
  167. package/dist/components/tet-button.js +1 -1
  168. package/dist/components/tet-card-list.js +1 -1
  169. package/dist/components/tet-carousel.js +1 -1
  170. package/dist/components/tet-checkbox.js +1 -1
  171. package/dist/components/tet-cloud-application-form-dialog.js +1 -1
  172. package/dist/components/tet-cloud-configurator.js +1 -1
  173. package/dist/components/tet-colors.js +1 -1
  174. package/dist/components/tet-compare-card-v2.js +1 -1
  175. package/dist/components/tet-compare-card-v3.js +1 -1
  176. package/dist/components/tet-compare-card.js +1 -1
  177. package/dist/components/tet-compare-cards-tab.js +1 -1
  178. package/dist/components/tet-compare-cards.js +1 -1
  179. package/dist/components/tet-container.js +1 -1
  180. package/dist/components/tet-countdown.js +1 -1
  181. package/dist/components/tet-counter.js +1 -1
  182. package/dist/components/tet-datepicker-header.js +1 -1
  183. package/dist/components/tet-datepicker-month-view.js +1 -1
  184. package/dist/components/tet-datepicker-multi-year-view.js +1 -1
  185. package/dist/components/tet-datepicker-year-view.js +1 -1
  186. package/dist/components/tet-datepicker.js +1 -1
  187. package/dist/components/tet-dialog.js +1 -1
  188. package/dist/components/tet-display.js +1 -1
  189. package/dist/components/tet-divider.js +1 -1
  190. package/dist/components/tet-dropdown.js +1 -1
  191. package/dist/components/tet-dynamic-card.js +1 -1
  192. package/dist/components/tet-expandable-input.js +1 -1
  193. package/dist/components/tet-expansion-panel.js +1 -1
  194. package/dist/components/tet-feedback-form.js +1 -1
  195. package/dist/components/tet-filter.js +1 -1
  196. package/dist/components/tet-floating-block.js +1 -1
  197. package/dist/components/tet-font-weight.js +1 -1
  198. package/dist/components/tet-fonts.js +1 -1
  199. package/dist/components/tet-grid.js +1 -1
  200. package/dist/components/tet-icon.js +1 -1
  201. package/dist/components/tet-inline-message.js +1 -1
  202. package/dist/components/tet-input.js +1 -1
  203. package/dist/components/tet-layout.js +1 -1
  204. package/dist/components/tet-link-card-list.js +1 -1
  205. package/dist/components/tet-link.js +1 -1
  206. package/dist/components/tet-loader.js +1 -1
  207. package/dist/components/tet-menu-mobile.js +1 -1
  208. package/dist/components/tet-menu.js +1 -1
  209. package/dist/components/tet-mini-compare-card.js +1 -1
  210. package/dist/components/tet-multi-step-dialog.js +1 -1
  211. package/dist/components/tet-navigation-mobile.js +1 -1
  212. package/dist/components/tet-news-card-list.js +1 -1
  213. package/dist/components/tet-notification.js +1 -1
  214. package/dist/components/tet-number-input.js +1 -1
  215. package/dist/components/tet-placeholder.js +1 -1
  216. package/dist/components/tet-position.js +1 -1
  217. package/dist/components/tet-price-view.js +1 -1
  218. package/dist/components/tet-radio-blocks.js +1 -1
  219. package/dist/components/tet-radio.js +1 -1
  220. package/dist/components/tet-range-slider.js +1 -1
  221. package/dist/components/tet-round-stepper.js +1 -1
  222. package/dist/components/tet-selection-list.js +1 -1
  223. package/dist/components/tet-snicker-card-group.js +1 -1
  224. package/dist/components/tet-snicker-card.js +1 -1
  225. package/dist/components/tet-spacing.js +1 -1
  226. package/dist/components/tet-spinner.js +1 -1
  227. package/dist/components/tet-stepper-input.js +1 -1
  228. package/dist/components/tet-stepper-v3.js +1 -1
  229. package/dist/components/tet-sticky-offer.js +1 -1
  230. package/dist/components/tet-support-search.js +1 -1
  231. package/dist/components/tet-switch.js +1 -1
  232. package/dist/components/tet-tab-content.js +1 -1
  233. package/dist/components/tet-tab-header.js +1 -1
  234. package/dist/components/tet-table.js +1 -1
  235. package/dist/components/tet-tag-group.js +1 -1
  236. package/dist/components/tet-tag.js +1 -1
  237. package/dist/components/tet-text-list.js +1 -1
  238. package/dist/components/tet-text.js +1 -1
  239. package/dist/components/tet-textarea.js +1 -1
  240. package/dist/components/tet-thank-you-view-v3.js +1 -1
  241. package/dist/components/tet-tooltip.js +1 -1
  242. package/dist/esm/{http-codes-DchfPj1v.js → http-codes-CMh_eKUC.js} +1 -1
  243. package/dist/esm/{index-DfBhGuuz.js → index-DScKyiML.js} +1 -1
  244. package/dist/esm/{index-ClX9TYQY.js → index-st4TD55I.js} +5 -5
  245. package/dist/esm/loader.js +3 -3
  246. package/dist/esm/{product-comparison-DJko3TwF.js → product-comparison-BHzU1-QK.js} +1 -1
  247. package/dist/esm/tet-accordion.entry.js +1 -1
  248. package/dist/esm/tet-address-offers-filters-products_2.entry.js +3 -3
  249. package/dist/esm/tet-address-offers-view.entry.js +3 -3
  250. package/dist/esm/tet-address-offers_5.entry.js +4 -4
  251. package/dist/esm/tet-assembler.entry.js +3 -3
  252. package/dist/esm/tet-autocomplete-dropdown.entry.js +1 -1
  253. package/dist/esm/tet-autocomplete_2.entry.js +1 -1
  254. package/dist/esm/tet-b2b-check-out-form_5.entry.js +3 -3
  255. package/dist/esm/tet-b2b-configurator.entry.js +4 -4
  256. package/dist/esm/tet-banner-nav.entry.js +3 -3
  257. package/dist/esm/tet-bar-graph.entry.js +1 -1
  258. package/dist/esm/tet-border-radius.entry.js +1 -1
  259. package/dist/esm/tet-business-card.entry.js +1 -1
  260. package/dist/esm/tet-business-compare-card.entry.js +1 -1
  261. package/dist/esm/tet-business-round-stepper.entry.js +1 -1
  262. package/dist/esm/tet-button.entry.js +1 -1
  263. package/dist/esm/tet-card-list.entry.js +1 -1
  264. package/dist/esm/tet-carousel.entry.js +3 -3
  265. package/dist/esm/tet-checkbox_3.entry.js +1 -1
  266. package/dist/esm/tet-cloud-application-form-dialog.entry.js +3 -3
  267. package/dist/esm/tet-cloud-configurator.entry.js +3 -3
  268. package/dist/esm/tet-colors.entry.js +1 -1
  269. package/dist/esm/tet-compare-card-v2.entry.js +3 -3
  270. package/dist/esm/tet-compare-card-v3.entry.js +46 -9
  271. package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
  272. package/dist/esm/tet-compare-cards_2.entry.js +3 -3
  273. package/dist/esm/tet-components.js +3 -3
  274. package/dist/esm/tet-container_2.entry.js +1 -1
  275. package/dist/esm/tet-countdown.entry.js +1 -1
  276. package/dist/esm/tet-counter.entry.js +1 -1
  277. package/dist/esm/tet-datepicker-header_4.entry.js +1 -1
  278. package/dist/esm/tet-datepicker.entry.js +1 -1
  279. package/dist/esm/tet-dialog.entry.js +3 -3
  280. package/dist/esm/tet-display.entry.js +1 -1
  281. package/dist/esm/tet-divider.entry.js +1 -1
  282. package/dist/esm/tet-dynamic-card.entry.js +1 -1
  283. package/dist/esm/tet-expandable-input.entry.js +1 -1
  284. package/dist/esm/tet-expansion-panel.entry.js +1 -1
  285. package/dist/esm/tet-feedback-form.entry.js +3 -3
  286. package/dist/esm/tet-filter.entry.js +1 -1
  287. package/dist/esm/tet-floating-block.entry.js +1 -1
  288. package/dist/esm/tet-font-weight.entry.js +1 -1
  289. package/dist/esm/tet-fonts.entry.js +1 -1
  290. package/dist/esm/tet-grid.entry.js +1 -1
  291. package/dist/esm/tet-icon.entry.js +2 -2
  292. package/dist/esm/tet-inline-message.entry.js +1 -1
  293. package/dist/esm/tet-input.entry.js +3 -3
  294. package/dist/esm/tet-layout.entry.js +1 -1
  295. package/dist/esm/tet-link-card-list.entry.js +1 -1
  296. package/dist/esm/tet-link.entry.js +1 -1
  297. package/dist/esm/tet-menu-mobile.entry.js +1 -1
  298. package/dist/esm/tet-menu.entry.js +1 -1
  299. package/dist/esm/tet-mini-compare-card.entry.js +1 -1
  300. package/dist/esm/tet-multi-step-dialog.entry.js +3 -3
  301. package/dist/esm/tet-navigation-mobile.entry.js +3 -3
  302. package/dist/esm/tet-news-card-list.entry.js +1 -1
  303. package/dist/esm/tet-notification.entry.js +1 -1
  304. package/dist/esm/tet-number-input.entry.js +1 -1
  305. package/dist/esm/tet-placeholder.entry.js +1 -1
  306. package/dist/esm/tet-position.entry.js +1 -1
  307. package/dist/esm/tet-price-view.entry.js +1 -1
  308. package/dist/esm/tet-radio-blocks.entry.js +28 -21
  309. package/dist/esm/tet-radio_2.entry.js +1 -1
  310. package/dist/esm/tet-range-slider.entry.js +1 -1
  311. package/dist/esm/tet-round-stepper.entry.js +1 -1
  312. package/dist/esm/tet-snicker-card-group.entry.js +1 -1
  313. package/dist/esm/tet-snicker-card.entry.js +3 -3
  314. package/dist/esm/tet-spacing.entry.js +1 -1
  315. package/dist/esm/tet-spinner.entry.js +1 -1
  316. package/dist/esm/tet-stepper-input.entry.js +3 -3
  317. package/dist/esm/tet-stepper-v3.entry.js +1 -1
  318. package/dist/esm/tet-sticky-offer.entry.js +1 -1
  319. package/dist/esm/tet-support-search.entry.js +1 -1
  320. package/dist/esm/tet-switch.entry.js +1 -1
  321. package/dist/esm/tet-table.entry.js +1 -1
  322. package/dist/esm/tet-tag_2.entry.js +3 -3
  323. package/dist/esm/tet-text-list.entry.js +1 -1
  324. package/dist/esm/tet-text.entry.js +1 -1
  325. package/dist/esm/tet-textarea.entry.js +1 -1
  326. package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
  327. package/dist/esm/{translations-4zQUcigP.js → translations-CkBHYZxq.js} +1 -1
  328. package/dist/tet-components/{p-53b4947e.entry.js → p-016d6dd4.entry.js} +1 -1
  329. package/dist/tet-components/{p-f5315eaf.entry.js → p-041f46b1.entry.js} +1 -1
  330. package/dist/tet-components/{p-29948163.entry.js → p-104a465c.entry.js} +1 -1
  331. package/dist/tet-components/{p-517168f6.entry.js → p-1095d7d6.entry.js} +1 -1
  332. package/dist/tet-components/{p-eb3a8119.entry.js → p-11363389.entry.js} +1 -1
  333. package/dist/tet-components/{p-a2a4917a.entry.js → p-129762b3.entry.js} +1 -1
  334. package/dist/tet-components/{p-79e4a166.entry.js → p-1633a0b1.entry.js} +1 -1
  335. package/dist/tet-components/{p-43d1f956.entry.js → p-1c627ac0.entry.js} +1 -1
  336. package/dist/tet-components/{p-eca2fc2f.entry.js → p-259dfc83.entry.js} +1 -1
  337. package/dist/tet-components/{p-tf8lKgfD.js → p-2BDVUFcI.js} +1 -1
  338. package/dist/tet-components/{p-26dd3cb0.entry.js → p-3204266c.entry.js} +1 -1
  339. package/dist/tet-components/p-371e754f.entry.js +1 -0
  340. package/dist/tet-components/{p-B8Zjo2sa.js → p-3AR12uVQ.js} +1 -1
  341. package/dist/tet-components/{p-b4c45d6b.entry.js → p-3d981a11.entry.js} +1 -1
  342. package/dist/tet-components/{p-4aa2dbc8.entry.js → p-4051e024.entry.js} +1 -1
  343. package/dist/tet-components/{p-19343cc6.entry.js → p-42346043.entry.js} +1 -1
  344. package/dist/tet-components/{p-1d997c7d.entry.js → p-47c15f9c.entry.js} +1 -1
  345. package/dist/tet-components/{p-d2db496b.entry.js → p-4b7c2be5.entry.js} +1 -1
  346. package/dist/tet-components/{p-3ab52911.entry.js → p-4bd72575.entry.js} +1 -1
  347. package/dist/tet-components/{p-10e789d9.entry.js → p-4e65a282.entry.js} +1 -1
  348. package/dist/tet-components/{p-4a22c9a8.entry.js → p-50c5e01e.entry.js} +1 -1
  349. package/dist/tet-components/{p-21a59a4f.entry.js → p-52c129e9.entry.js} +1 -1
  350. package/dist/tet-components/{p-77ae360e.entry.js → p-537faa1c.entry.js} +1 -1
  351. package/dist/tet-components/{p-b5efc6d4.entry.js → p-54c98af8.entry.js} +1 -1
  352. package/dist/tet-components/{p-7105253e.entry.js → p-631721d5.entry.js} +1 -1
  353. package/dist/tet-components/{p-7fdd634a.entry.js → p-648fe9fe.entry.js} +1 -1
  354. package/dist/tet-components/{p-d88d8689.entry.js → p-668c2484.entry.js} +1 -1
  355. package/dist/tet-components/{p-9ab737dd.entry.js → p-6a2ed4f0.entry.js} +1 -1
  356. package/dist/tet-components/{p-47b6721e.entry.js → p-6b27edab.entry.js} +1 -1
  357. package/dist/tet-components/{p-b8c0433c.entry.js → p-6d7506fe.entry.js} +1 -1
  358. package/dist/tet-components/{p-98ae4292.entry.js → p-6f09c992.entry.js} +1 -1
  359. package/dist/tet-components/{p-f79c8697.entry.js → p-6fc08d81.entry.js} +1 -1
  360. package/dist/tet-components/{p-8436df88.entry.js → p-7366cfd6.entry.js} +1 -1
  361. package/dist/tet-components/{p-d2abe02d.entry.js → p-76b13aec.entry.js} +1 -1
  362. package/dist/tet-components/{p-8a9d5ef1.entry.js → p-76d6013c.entry.js} +1 -1
  363. package/dist/tet-components/{p-2bd1b7ec.entry.js → p-79388d8a.entry.js} +1 -1
  364. package/dist/tet-components/{p-dca1a4c2.entry.js → p-7a9e715e.entry.js} +1 -1
  365. package/dist/tet-components/{p-15bddc3d.entry.js → p-7dba08b3.entry.js} +1 -1
  366. package/dist/tet-components/{p-d89ae495.entry.js → p-7fc4c174.entry.js} +1 -1
  367. package/dist/tet-components/{p-616d3818.entry.js → p-854c146d.entry.js} +1 -1
  368. package/dist/tet-components/{p-dfdf946f.entry.js → p-86614def.entry.js} +1 -1
  369. package/dist/tet-components/{p-92ef3a39.entry.js → p-87e315d4.entry.js} +1 -1
  370. package/dist/tet-components/{p-c32edb32.entry.js → p-891cff98.entry.js} +1 -1
  371. package/dist/tet-components/{p-2e7cb093.entry.js → p-8b5ee723.entry.js} +1 -1
  372. package/dist/tet-components/p-90de1b09.entry.js +1 -0
  373. package/dist/tet-components/{p-d44bea09.entry.js → p-937c99dd.entry.js} +1 -1
  374. package/dist/tet-components/{p-cd267067.entry.js → p-9691d0a9.entry.js} +1 -1
  375. package/dist/tet-components/{p-a410109c.entry.js → p-96e57ac6.entry.js} +1 -1
  376. package/dist/tet-components/{p-394b9c6b.entry.js → p-9a491f9a.entry.js} +1 -1
  377. package/dist/tet-components/{p-3d8635c1.entry.js → p-9d704250.entry.js} +1 -1
  378. package/dist/tet-components/p-C8CA8-C8.js +1 -0
  379. package/dist/tet-components/{p-t-BNeeWq.js → p-CjkCTYSi.js} +1 -1
  380. package/dist/tet-components/{p-2e4e81a5.entry.js → p-a28d27a1.entry.js} +1 -1
  381. package/dist/tet-components/{p-7ffa074d.entry.js → p-a631d8c5.entry.js} +1 -1
  382. package/dist/tet-components/{p-baf6ba9e.entry.js → p-a7f8ef9f.entry.js} +1 -1
  383. package/dist/tet-components/{p-47484c33.entry.js → p-a86ca759.entry.js} +1 -1
  384. package/dist/tet-components/{p-1556076a.entry.js → p-abb2da28.entry.js} +1 -1
  385. package/dist/tet-components/{p-8b3ea797.entry.js → p-af0e9ee6.entry.js} +1 -1
  386. package/dist/tet-components/{p-306ff942.entry.js → p-b066e773.entry.js} +1 -1
  387. package/dist/tet-components/{p-cb1c05ab.entry.js → p-b1037e46.entry.js} +1 -1
  388. package/dist/tet-components/{p-499ff632.entry.js → p-b2798ef1.entry.js} +1 -1
  389. package/dist/tet-components/{p-73aca8b1.entry.js → p-b2d61826.entry.js} +1 -1
  390. package/dist/tet-components/{p-b315a1c8.entry.js → p-ba878c01.entry.js} +1 -1
  391. package/dist/tet-components/p-bad31105.entry.js +1 -0
  392. package/dist/tet-components/{p-0690117e.entry.js → p-c1ee1558.entry.js} +1 -1
  393. package/dist/tet-components/{p-39be547b.entry.js → p-c3862ffb.entry.js} +1 -1
  394. package/dist/tet-components/{p-5a31f21d.entry.js → p-c7741572.entry.js} +1 -1
  395. package/dist/tet-components/{p-1deb89e1.entry.js → p-c7f0f9f4.entry.js} +1 -1
  396. package/dist/tet-components/{p-591a092a.entry.js → p-c9bc7e1c.entry.js} +1 -1
  397. package/dist/tet-components/{p-e13f06c4.entry.js → p-ca111c70.entry.js} +1 -1
  398. package/dist/tet-components/{p-3242f182.entry.js → p-cf0f0d6e.entry.js} +1 -1
  399. package/dist/tet-components/{p-24bdeb37.entry.js → p-d1a9ded7.entry.js} +1 -1
  400. package/dist/tet-components/{p-f7e3a24b.entry.js → p-d1f560a6.entry.js} +1 -1
  401. package/dist/tet-components/{p-5bd0a0c8.entry.js → p-dac6ad5c.entry.js} +1 -1
  402. package/dist/tet-components/{p-4f47079e.entry.js → p-e2d09b10.entry.js} +1 -1
  403. package/dist/tet-components/{p-139d4cad.entry.js → p-e624df8a.entry.js} +1 -1
  404. package/dist/tet-components/{p-8bdcb714.entry.js → p-e87a7b06.entry.js} +1 -1
  405. package/dist/tet-components/{p-bd42d182.entry.js → p-ea5a63a1.entry.js} +1 -1
  406. package/dist/tet-components/{p-b849774e.entry.js → p-ee844459.entry.js} +1 -1
  407. package/dist/tet-components/{p-bb325aa4.entry.js → p-f2bd28a0.entry.js} +1 -1
  408. package/dist/tet-components/{p-a0340287.entry.js → p-f4cfb3a5.entry.js} +1 -1
  409. package/dist/tet-components/{p-f5a86256.entry.js → p-f96c8acc.entry.js} +1 -1
  410. package/dist/tet-components/{p-87d015b3.entry.js → p-feccd822.entry.js} +1 -1
  411. package/dist/tet-components/{p-ClX9TYQY.js → p-st4TD55I.js} +1 -1
  412. package/dist/tet-components/tet-components.esm.js +1 -1
  413. package/dist/types/components/advanced/cards/tet-compare-card-v3/tet-compare-card-v3.d.ts +11 -1
  414. package/dist/types/components/basic/buttons/tet-radio-blocks/tet-radio-blocks.d.ts +6 -3
  415. package/dist/types/components.d.ts +18 -5
  416. package/package.json +1 -1
  417. package/dist/tet-components/p-8091cf4b.entry.js +0 -1
  418. package/dist/tet-components/p-BGrvDoTj.js +0 -1
  419. package/dist/tet-components/p-c989a64d.entry.js +0 -1
  420. package/dist/tet-components/p-e5c07d62.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,c as e,a as o,h as r,H as i}from"./p-ClX9TYQY.js";import{e as a,A as n}from"./p-tf8lKgfD.js";import{f as s}from"./p-B_N3UuP2.js";import{c}from"./p-B8Zjo2sa.js";import{t as l}from"./p-t-BNeeWq.js";import"./p-Bvqcvhjw.js";const{state:d,set:f,get:m}=c({data:[],cart:new Map,productDetails:new Map}),h=t=>{const e=new Map(d.cart);e.delete(t),f("cart",e)},u=()=>{const t=m("cart"),e=m("productDetails"),o={};for(const[r,i]of t.entries())o[e.get(r)?.name||r]=i;return o},y=class{constructor(o){t(this,o),this.compareLinkClick=e(this,"compareLinkClick"),this.b2bConfiguratorSubmit=e(this,"b2bConfiguratorSubmit"),this.successCloseClick=e(this,"successCloseClick")}get hostElement(){return o(this)}priceSuffix="€/mēn.";cartEl;confirmationDialogEl;submissionStateDialogEl;checkoutFormEl;primaryAccordionEl;secondaryAccordionEl;primaryNavEl;secondaryNavEl;referenceElement;isLoading=!0;itemToRemove=null;checkoutAttempted=!1;formState="success";activePrimaryCategoryId=null;resetSelectedPrimaryCards(){this.selectedPrimaryCards=[]}activeSecondaryCategoryId=null;resetSelectedSecondaryCards(){this.selectedSecondaryCards=[]}selectedPrimaryCards=[];selectedSecondaryCards=[];isDesktopResolution;theme="light";stickyRefEl="";compareLinkClick;b2bConfiguratorSubmit;successCloseClick;async componentWillLoad(){this.checkDesktopResolution(),this.referenceElement=this.stickyRefEl?document.querySelector(this.stickyRefEl):this.hostElement.parentElement}async componentDidLoad(){this.isLoading=!0,await(async t=>{const e="function"==typeof t?t():t,o=new Promise((t=>setTimeout(t,500))),[r]=await Promise.all([e,o]);return r})(this.fetchData),this.isLoading=!1,this.activePrimaryCategoryId=d.data.find((t=>"primary"===t.type))?.id||null,this.activeSecondaryCategoryId=d.data.find((t=>"secondary"===t.type))?.id||null,this.positionStickyCartEl()}onResize(){this.checkDesktopResolution(),this.positionStickyCartEl()}async setSubmitFormState(t){"validation-error"===t&&(this.submissionStateDialogEl.close(),this.checkoutFormEl.open()),this.formState=t}checkDesktopResolution=()=>{this.isDesktopResolution=window.innerWidth>=1024};fetchData=async()=>{(t=>{f("data",t);const e=new Map;for(const o of t)for(const t of o.products){const{type:r,name:i,id:a}=o,{name:{lv:n},description:{lv:s},amount:c,b2bConfiguratorProduct:l}=t;e.set(t.productCode,{name:n,description:s,amount:c,discountAmount:l.discountAmount,categoryType:r,categoryName:i,categoryId:a,b2bConfiguratorProduct:l})}f("productDetails",e)})(await(()=>{let t;try{t=new URL(a.b2bConfigurator).href}catch(t){return console.error(t),Promise.reject("B2B configurator endpoint URL generation failed.")}return(new n).setUrl(t).setErrorFallbackValue([]).execute()})())};renderPlaceholder=()=>{const t="dark"===this.theme;return[r("div",{class:"offer placeholder"},r("div",{style:{padding:this.isDesktopResolution?"1.5rem":"1rem"}},r("tet-placeholder",{class:"placeholder",height:this.isDesktopResolution?"2rem":"1.5rem",darkTheme:t})),r("div",{class:"offer__content"},r("tet-placeholder",{class:"placeholder offer__navigation",height:this.isDesktopResolution?"48rem":" 2.25rem",darkTheme:t,style:{margin:"0"}}),r("div",{class:"offer__cards"},r("div",{class:"offer__cards-list"},r("tet-placeholder",{class:"placeholder",height:"3rem",darkTheme:t}),r("tet-placeholder",{class:"placeholder",height:"10.25rem",darkTheme:t}),r("tet-placeholder",{class:"placeholder",height:"10.25rem",darkTheme:t}),r("tet-placeholder",{class:"placeholder",height:"10.25rem",darkTheme:t}),r("tet-placeholder",{class:"placeholder",height:"10.25rem",darkTheme:t}))))),r("div",{class:"cart cart--empty",style:{padding:"1.5rem 1rem 1rem","background-color":"var(--b2b-background-color)"}},r("tet-placeholder",{class:"placeholder",height:"12.75rem",darkTheme:t}))]};categoryClickHandler=t=>{const{id:e}=t.detail,o=this.getCategoryById(e);o&&("primary"===o.type?this.activePrimaryCategoryId=e:this.activeSecondaryCategoryId=e)};renderOffer=()=>{const t=[{name:l("components-b2b-offer-primary-title"),type:"primary"},{name:l("components-b2b-offer-secondary-title"),type:"secondary"}];return r("div",{class:{offer:!0,[`offer--${this.theme}`]:!0}},t.map((t=>{const e=d.data.filter((e=>e.type===t.type)).map((t=>{const{id:e,name:o,icon:r}=t;return{id:e,name:o,icon:r,selected:e===this.activePrimaryCategoryId||e===this.activeSecondaryCategoryId}}));return r("tet-accordion",{ref:e=>{"primary"===t.type?this.primaryAccordionEl=e:this.secondaryAccordionEl=e},key:t.type,class:"offer__block",isOpen:"primary"===t.type,header:t.name,withBorder:!0,theme:this.theme,transparentBackground:!0},r("div",{class:"offer__content"},r("div",{class:"offer__navigation"},r("tet-business-navigation",{ref:e=>{"primary"===t.type?this.primaryNavEl=e:this.secondaryNavEl=e},menuItems:e,theme:this.theme,"onMenu-click-event":this.categoryClickHandler})),this.renderCards(t.type)))})))};getCategoryById=t=>d.data.find((e=>e.id===t));onCompareLinkClick=t=>{const e=this.getCategoryById(t);e&&e.modalScreenId&&this.compareLinkClick.emit(e.modalScreenId)};handleCardSelected=(t,e)=>{const o=this.getCategoryById(e);if(!o)return;const{type:r,allowMultipleChoice:i}=o;if("primary"===r){if(this.selectedPrimaryCards.includes(t))return;this.selectedPrimaryCards=i?[...this.selectedPrimaryCards,t]:[t]}else{if(this.selectedSecondaryCards.includes(t))return;this.selectedSecondaryCards=i?[...this.selectedSecondaryCards,t]:[t]}};handleProductCountChanged=async(t,e)=>{const{cardId:o,count:r}=t.detail,i=this.getCategoryById(e);if(i&&d.cart.get(o)!==r){if(!r)return this.itemToRemove=o,void this.confirmationDialogEl.open();i.allowMultipleChoice||i.products.forEach((t=>t.productCode!==o&&h(t.productCode))),((t,e)=>{if(e<0)return;const o=new Map(d.cart);o.set(t,e),f("cart",o)})(o,r),this.isDesktopResolution&&(this.cartEl.changeBlockState(i.type,"open"),this.cartEl.changeBlockState("primary"===i.type?"secondary":"primary","close"))}};onConfirmationClose=()=>{this.itemToRemove=null};renderConfirmationDialog=()=>r("tet-dialog",{ref:t=>this.confirmationDialogEl=t,class:this.theme,closeOnOverlayClick:!1,onCloseDialog:this.onConfirmationClose,theme:this.theme},r("div",{class:"action-dialog"},r("tet-icon",{class:"action-dialog__icon action-dialog__attention-icon",name:"tc-attention"}),r("div",{class:"action-dialog__title"},l("components-b2b-item-remove-confirmation-title"))),r("div",{slot:"footer",class:"action-dialog__footer"},r("tet-button",{class:"action-dialog__button",type:"secondary",theme:this.theme,size:"large",onClick:()=>this.confirmationDialogEl.close()},l("components-b2b-item-remove-confirmation-decline")),r("tet-button",{class:"action-dialog__button",type:"primary",theme:this.theme,size:"large",iconName:"tc-trash",iconPosition:"left",onClick:()=>{h(this.itemToRemove),this.confirmationDialogEl.close()}},l("components-b2b-item-remove-confirmation-accept"))));resetState=()=>{f("cart",new Map),this.checkoutAttempted=!1,this.primaryAccordionEl.open(),this.secondaryAccordionEl.close()};renderSubmissionStateDialog=()=>{const t="loading"===this.formState,e=()=>{this.resetState(),this.successCloseClick.emit(),this.submissionStateDialogEl.close()},o=t?r("div",{class:"action-dialog"},r("tet-spinner",{theme:this.theme}),r("div",{class:"action-dialog__title"},l("components-b2b-loading-dialog-title")),r("div",{class:"action-dialog__description"},l("components-b2b-loading-dialog-description"))):[r("div",{class:"action-dialog"},r("tet-icon",{class:"action-dialog__icon action-dialog__success-icon",name:"tc-check-circle"}),r("div",{class:"action-dialog__title"},l("components-b2b-success-dialog-title")),r("div",{class:"action-dialog__description"},l("components-b2b-success-dialog-description"))),r("div",{slot:"footer",class:"action-dialog__footer"},r("tet-button",{class:"action-dialog__button",type:"secondary",theme:this.theme,size:"large",onClick:e},r("div",{class:"action-dialog__button-text"},l("components-b2b-success-dialog-close"))),r("tet-button",{class:"action-dialog__button",type:"primary",theme:this.theme,size:"large",onClick:()=>{this.resetState(),this.submissionStateDialogEl.close()}},r("div",{class:"action-dialog__button-text"},l("components-b2b-success-dialog-start-again"))))];return r("tet-dialog",{ref:t=>this.submissionStateDialogEl=t,class:{[this.theme]:!0,"action-dialog--loading":t},closeOnOverlayClick:!1,closeOnEscape:!t,hideCloseButton:t,theme:this.theme,onCloseDialog:"success"===this.formState?e:this.submissionStateDialogEl.close},o)};renderCards=t=>{const e="primary"===t?this.activePrimaryCategoryId:this.activeSecondaryCategoryId,o="primary"===t?this.selectedPrimaryCards:this.selectedSecondaryCards,i=this.getCategoryById(e),{modalScreenId:a,products:n=[]}=i||{},s=n.map((t=>{const{productCode:i,name:{lv:a},description:{lv:n},amount:s,b2bConfiguratorProduct:{discountAmount:c,selectionType:l,defaultValue:f,minValue:m,maxValue:h,translationKey:u},benefits:{lv:y},contracts:p}=t,b=!!t.attributes.find((t=>"isBestChoice"===t.key))?.value,g="single"===l?void 0:{defaultValue:f,minValue:m,maxValue:h,label:u},_={id:i,title:a,subtitle:n,isBestChoice:b,price:s,discountPrice:c,benefits:y.split("\n"),contract:p[0]?.contract,counterOptions:g},v=o.includes(i);return r("tet-b2b-compare-card",{options:_,theme:this.theme,key:i,isSelected:v,onSelectedChange:()=>this.handleCardSelected(i,e),count:d.cart.get(i),onCountChange:t=>this.handleProductCountChanged(t,e)})}));return r("div",{class:"offer__cards"},r("div",{class:"offer__cards-header"},r("div",{class:"offer__cards-title"},l("components-b2b-offer-product-list-title")),a&&r("button",{class:{"button-reset":!0,compare__button:!0,[`${this.theme}`]:!0},onClick:()=>{this.onCompareLinkClick(e)}},r("span",{class:{compare__text:!0,"tet-link":!0,[`${this.theme}`]:!0}},l("components-b2b-offer-compare-link-text")),r("div",{class:"compare__icon-wrapper"},r("tet-icon",{class:"compare__icon",name:"tc-info-circle-outline",theme:this.theme})))),r("div",{class:"offer__cards-list"},s))};handleCartProductCountChange=(t,e,o)=>{this.handleProductCountChanged({detail:{cardId:t,count:e}},o)};goToProduct=async(t,e)=>{const o=this.getCategoryById(t);o&&("primary"===o.type?(await this.primaryAccordionEl.open(),await this.primaryNavEl.selectMenuItem(t),this.primaryAccordionEl.scrollIntoView({behavior:"smooth"})):"secondary"===o.type&&(await this.secondaryAccordionEl.open(),await this.secondaryNavEl.selectMenuItem(t),this.secondaryAccordionEl.scrollIntoView({behavior:"smooth"})),setTimeout((()=>{this.handleCardSelected(e,t)}),0))};renderCartCardsList=t=>{const e=e=>{const o=d.cart.get(e),i=d.productDetails.get(e);if(void 0===o||!i)return null;const{name:a,amount:n,description:s,discountAmount:c,categoryName:f,categoryType:m,categoryId:h,b2bConfiguratorProduct:u}=i,y="primary"===m?s:f,{selectionType:p,term:b,minValue:g,maxValue:_,translationKey:v}=u;return r("tet-business-summary-card",{key:e,productName:a,price:n,productDescription:y,discountPrice:c,currency:this.priceSuffix,contractTerm:b,theme:this.theme,withStepper:"number"===p,value:o,minValue:g,maxValue:_,stepperLabel:l(v||""),context:t,onAmountChange:t=>this.handleCartProductCountChange(e,t.detail,h),onDeleteButtonClick:()=>this.handleCartProductCountChange(e,0,h),onEditButtonClick:()=>this.goToProduct(h,e)})};return["primary","secondary"].map((t=>{const o=[...d.cart].filter((([e])=>{const o=d.productDetails.get(e);return o&&o.categoryType===t})).map((([t])=>e(t)));return o.length?r("div",{class:"cart__card-list",slot:t},o):null}))};positionStickyCartEl=()=>{this.referenceElement&&(this.isDesktopResolution?this.hostElement.style.setProperty("--b2b-cart-sticky-top",`${this.referenceElement.offsetTop}px`):this.hostElement.style.removeProperty("--b2b-cart-sticky-top"))};renderCart=(t="edit")=>{const e=!d.cart.size;let o={primary:0,secondary:0},i={primary:0,secondary:0},a=0;for(const[t,e]of d.cart){const r=d.productDetails.get(t);r&&(o[r.categoryType]+=(r.discountAmount??r.amount)*e,i[r.categoryType]+=1,a+=r.amount*e)}const{primary:n,secondary:c}=o,f=n+c,m=a-f,{primary:h,secondary:u}=this.areProductsAddedToCart(),y="edit"===t&&this.checkoutAttempted&&!h,p="edit"===t&&this.checkoutAttempted&&!u,b={summaryAmount:s(f,{currency:""}),primaryAmount:s(n,{currency:""}),secondaryAmount:s(c,{currency:""}),primaryCount:i.primary,secondaryCount:i.secondary,summarySavings:s(m,{currency:""}),hasPrimaryNotification:y,hasSecondaryNotification:p},g="edit"===t?r("tet-button",{onClick:this.checkout,slot:"cta",class:"cart__cta",type:"primary",size:this.isDesktopResolution?"large":"medium",theme:this.theme},l("components-b2b-cart-cta-button-title")):null;return r("tet-b2b-configurator-cart",{ref:e=>"edit"===t?this.cartEl=e:null,context:t,class:{cart:!0,"cart--empty":e,[`cart--${t}`]:!0},data:b,theme:this.theme,isCartEmpty:e,isDesktopResolution:this.isDesktopResolution},this.renderCartCardsList(t),g)};areProductsAddedToCart=()=>{const t={primary:!1,secondary:!1};for(const[e,o]of d.cart){const o=d.productDetails.get(e);o&&(t[o.categoryType]=!0)}return t};checkout=()=>{this.checkoutAttempted=!0;const{primary:t,secondary:e}=this.areProductsAddedToCart();t&&e&&this.checkoutFormEl.open()};submit=({detail:t})=>{const e={cart:u(),contactInfo:t};this.formState="loading",this.b2bConfiguratorSubmit.emit(e),this.checkoutFormEl.close(),this.submissionStateDialogEl.open()};renderCheckoutForm=()=>r("tet-b2b-check-out-form",{ref:t=>this.checkoutFormEl=t,theme:this.theme,"onSubmit-check-out-form":this.submit},r("div",{slot:"cart"},this.renderCart("checkout")));render(){return r(i,{key:"ba733aab5ffe86a0fd1b38b3a2918c54fe8eec79"},r("div",{key:"6613740c6cf0382aa75f08a31a1cfe14fe660ff9",class:{configurator:!0,[`${this.theme}`]:!0}},this.isLoading?this.renderPlaceholder():d.data&&[this.renderOffer(),this.renderCart()]),this.renderCheckoutForm(),this.renderConfirmationDialog(),this.renderSubmissionStateDialog())}static get watchers(){return{activePrimaryCategoryId:[{resetSelectedPrimaryCards:0}],activeSecondaryCategoryId:[{resetSelectedSecondaryCards:0}]}}};y.style='@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:root{--tet-link-color:var(--tc-text-primary);--tet-link-color-hover:var(--tc-text-secondary);--tet-link-color-active:var(--tc-text-tertiary);--tet-link-color-focus:var(--tc-blue-40);--tet-link-color-disabled:var(--tc-button-text-inverse-disabled);--tet-link-secondary-color:var(--tc-text-secondary);--tet-link-secondary-color-hover:var(--tc-text-primary)}.tet-link,.tet-link__arrow{text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;color:var(--tet-link-color);position:relative;line-height:1.5rem;cursor:pointer}.tet-link.dark,.tet-link__arrow.dark{--tet-link-color:var(--tc-text-primary-dark);--tet-link-color-hover:var(--tc-text-secondary-dark);--tet-link-color-active:var(--tc-text-tertiary-dark);--tet-link-color-focus:var(--tc-blue-40-dark);--tet-link-color-disabled:var(--tc-button-text-inverse-disabled-dark);--tet-link-secondary-color:var(--tc-text-secondary-dark);--tet-link-secondary-color-hover:var(--tc-text-primary-dark)}.tet-link.tet-link--secondary,.tet-link__arrow.tet-link--secondary{--tet-link-color:var(--tet-link-secondary-color);--tet-link-color-hover:var(--tet-link-secondary-color-hover)}.tet-link tet-icon,.tet-link__arrow tet-icon{--icon-color:var(--tet-link-color)}.tet-link:hover,.tet-link__arrow:hover{color:var(--tet-link-color-hover)}.tet-link:hover tet-icon,.tet-link__arrow:hover tet-icon{--icon-color:var(--tet-link-color-hover)}.tet-link:active,.tet-link__arrow:active{color:var(--tet-link-color-active)}.tet-link:active tet-icon,.tet-link__arrow:active tet-icon{--icon-color:var(--tet-link-color-active)}.tet-link:focus-visible,.tet-link__arrow:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s;outline-color:var(--tet-link-color-focus);border-radius:0.125rem}.tet-link.disabled,.tet-link__arrow.disabled{color:var(--tet-link-color-disabled);pointer-events:none;cursor:auto}.tet-link.disabled tet-icon,.tet-link__arrow.disabled tet-icon{--icon-color:var(--tet-link-color-disabled)}.tet-link.disabled:focus-visible,.tet-link__arrow.disabled:focus-visible{outline:none}.tet-link tet-icon,.tet-link__arrow tet-icon{padding-left:0.25rem;padding-right:0.25rem;--icon-container-display:inline-block}.tet-link__arrow{padding-right:1.5rem}.tet-link__arrow::after{content:"--\x3e";position:absolute;white-space:nowrap;display:inline-block;text-decoration:none;padding-left:0.25rem;letter-spacing:initial;transition:all 0.15s ease-in}.tet-link__arrow:hover::after{padding-left:0.375rem}:host{display:block;--b2b-cart-offset-top:0px}.light{--b2b-text-color:var(--tc-text-primary);--b2b-text-color-secondary:var(--tc-text-secondary);--b2b-background-color:var(--tc-layer-primary);--b2b-icon-background-color:var(--tc-layer-secondary);--b2b-icon-pressed-background-color:var(--tc-layer-quaternary);--b2b-box-shadow:var(--tc-elevation-one);--b2b-border-color:var(--tc-border-quaternary);--b2b-summary-block-color:var(--tc-layer-secondary);--b2b-summary-accent-color:var(--tc-yellow-20);--b2b-confirmation-dialog-icon-color:var(--tc-yellow-40);--b2b-success-dialog-icon-color:var(--tc-green-40)}.dark{--b2b-text-color:var(--tc-text-primary-dark);--b2b-text-color-secondary:var(--tc-text-secondary-dark);--b2b-background-color:var(--tc-layer-primary-dark);--b2b-icon-background-color:var(--tc-layer-secondary-dark);--b2b-icon-pressed-background-color:var(--tc-layer-quaternary-dark);--b2b-box-shadow:var(--tc-elevation-one-dark);--b2b-border-color:var(--tc-border-quaternary-dark);--b2b-summary-block-color:var(--tc-layer-secondary-dark);--b2b-summary-accent-color:var(--tc-grey-20-dark);--b2b-confirmation-dialog-icon-color:var(--tc-yellow-40-dark);--b2b-success-dialog-icon-color:var(--tc-green-40-dark)}button.button-reset{background:none;border:none;padding:0;color:inherit;text-align:inherit}.placeholder{--placeholder-animation-speed:5s}.configurator{display:flex;gap:1rem;flex-direction:column;color:var(--b2b-text-color)}@media screen and (min-width: 64rem){.configurator{gap:1.5rem;flex-direction:row;align-items:flex-start}}.offer{border-radius:1rem;height:fit-content;flex:0 0 calc(70% - 0.75rem);background-color:var(--b2b-background-color);box-shadow:var(--b2b-box-shadow)}.offer__block{--accordion-header-padding:1rem;--accordion-header-mobile-padding:1rem;--accordion-header-font:600 1.25rem/1.5rem Gilroy, Gilroy, Arial, sans-serif;--accordion-header-mobile-font:600 1.25rem/1.5rem Gilroy, Gilroy, Arial, sans-serif}.offer__block:first-child{--accordion-border-radius:1rem 1rem 0 0;--accordion-outer-border:var(--b2b-border-color)}.offer__block:last-child{--accordion-border-radius:0 0 1rem 1rem;--accordion-border-bottom-width:0}@media screen and (min-width: 64rem){.offer__block{--accordion-header-padding:1.5rem;--accordion-header-font:600 1.75rem/2rem Gilroy, Gilroy, Arial, sans-serif}}.offer__content{overflow:hidden;padding:1.5rem 1rem;display:flex;flex-direction:column;gap:0.75rem;border-color:var(--b2b-border-color);border-top-style:solid;border-top-width:0.0625rem}@media screen and (min-width: 48rem){.offer__content{padding:1.5rem}}@media screen and (min-width: 64rem){.offer__content{flex-direction:row;gap:1.5rem;padding-bottom:2.5rem}}.offer__navigation{margin:0 -1.5rem;flex:0 0 30%}@media screen and (min-width: 64rem){.offer__navigation{max-width:20.5rem;margin:0}}.offer__cards{flex:1 1 0%}.offer__cards-header{padding:0.5rem 0 0.75rem 0;display:flex;gap:0.5rem;justify-content:space-between;align-items:center}@media screen and (min-width: 64rem){.offer__cards-header{padding:1rem 0}}.offer__cards-list{display:flex;flex-direction:column;gap:1rem}.offer__cards-title{flex:auto;font:600 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}@media screen and (min-width: 64rem){.offer__cards-title{font:600 1.25rem/1.5rem "Gilroy", "Gilroy, Arial, sans-serif"}}.compare__button{border-radius:50%;overflow:hidden;font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}@media screen and (min-width: 64rem){.compare__button{border-radius:0.125rem}}.compare__button:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s}.compare__button.dark: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}.compare__button:active{--b2b-icon-background-color:var(--b2b-icon-pressed-background-color)}.compare__text{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";display:none}@media screen and (min-width: 64rem){.compare__text{display:initial}}.compare__icon-wrapper{width:2.75rem;height:2.75rem;display:flex;justify-content:center;align-items:center;background-color:var(--b2b-icon-background-color);cursor:pointer}@media screen and (min-width: 64rem){.compare__icon-wrapper{display:none}}.compare__icon{--icon-size:1.5rem;--icon-container-display:flex}.cart{flex:0 0 calc(30% - 0.75rem);position:sticky}.cart--edit{bottom:-1px;top:calc(var(--b2b-cart-sticky-top) + var(--b2b-cart-offset-top))}@media screen and (min-width: 64rem){.cart--edit{max-width:calc(30% - 0.75rem)}}.cart--empty{display:none}@media screen and (min-width: 64rem){.cart--empty{display:flex}}.cart__card-list{padding:0 1rem 1rem;display:flex;flex-direction:column;gap:0.5rem}.cart__cta{display:block;align-self:center;width:stretch;--button-width:100%}@media screen and (min-width: 48rem){.cart__cta{align-self:flex-end;width:unset;--button-width:auto}}.action-dialog{display:flex;flex-direction:column;gap:0.5rem;align-items:center;margin-bottom:1.5rem}.action-dialog--loading{--dialog-footer-border-color:transparent}.action-dialog__title{text-align:center;font:600 1.5rem/1.75rem "Gilroy", "Gilroy, Arial, sans-serif"}.action-dialog__description{text-align:center;font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}.action-dialog__icon{--icon-size:3rem}.action-dialog__attention-icon{--icon-color:var(--b2b-confirmation-dialog-icon-color)}.action-dialog__success-icon{--icon-color:var(--b2b-success-dialog-icon-color)}.action-dialog__footer{display:flex;flex-direction:column;justify-content:space-between;flex:auto;gap:1rem}@media screen and (min-width: 31.25rem){.action-dialog__footer{flex-direction:row}}.action-dialog__button{--button-width:100%}.action-dialog__button-text{white-space:nowrap}';export{y as tet_b2b_configurator}
1
+ import{r as t,c as e,a as o,h as r,H as i}from"./p-st4TD55I.js";import{e as a,A as n}from"./p-2BDVUFcI.js";import{f as s}from"./p-B_N3UuP2.js";import{c}from"./p-3AR12uVQ.js";import{t as l}from"./p-CjkCTYSi.js";import"./p-Bvqcvhjw.js";const{state:d,set:f,get:m}=c({data:[],cart:new Map,productDetails:new Map}),h=t=>{const e=new Map(d.cart);e.delete(t),f("cart",e)},u=()=>{const t=m("cart"),e=m("productDetails"),o={};for(const[r,i]of t.entries())o[e.get(r)?.name||r]=i;return o},y=class{constructor(o){t(this,o),this.compareLinkClick=e(this,"compareLinkClick"),this.b2bConfiguratorSubmit=e(this,"b2bConfiguratorSubmit"),this.successCloseClick=e(this,"successCloseClick")}get hostElement(){return o(this)}priceSuffix="€/mēn.";cartEl;confirmationDialogEl;submissionStateDialogEl;checkoutFormEl;primaryAccordionEl;secondaryAccordionEl;primaryNavEl;secondaryNavEl;referenceElement;isLoading=!0;itemToRemove=null;checkoutAttempted=!1;formState="success";activePrimaryCategoryId=null;resetSelectedPrimaryCards(){this.selectedPrimaryCards=[]}activeSecondaryCategoryId=null;resetSelectedSecondaryCards(){this.selectedSecondaryCards=[]}selectedPrimaryCards=[];selectedSecondaryCards=[];isDesktopResolution;theme="light";stickyRefEl="";compareLinkClick;b2bConfiguratorSubmit;successCloseClick;async componentWillLoad(){this.checkDesktopResolution(),this.referenceElement=this.stickyRefEl?document.querySelector(this.stickyRefEl):this.hostElement.parentElement}async componentDidLoad(){this.isLoading=!0,await(async t=>{const e="function"==typeof t?t():t,o=new Promise((t=>setTimeout(t,500))),[r]=await Promise.all([e,o]);return r})(this.fetchData),this.isLoading=!1,this.activePrimaryCategoryId=d.data.find((t=>"primary"===t.type))?.id||null,this.activeSecondaryCategoryId=d.data.find((t=>"secondary"===t.type))?.id||null,this.positionStickyCartEl()}onResize(){this.checkDesktopResolution(),this.positionStickyCartEl()}async setSubmitFormState(t){"validation-error"===t&&(this.submissionStateDialogEl.close(),this.checkoutFormEl.open()),this.formState=t}checkDesktopResolution=()=>{this.isDesktopResolution=window.innerWidth>=1024};fetchData=async()=>{(t=>{f("data",t);const e=new Map;for(const o of t)for(const t of o.products){const{type:r,name:i,id:a}=o,{name:{lv:n},description:{lv:s},amount:c,b2bConfiguratorProduct:l}=t;e.set(t.productCode,{name:n,description:s,amount:c,discountAmount:l.discountAmount,categoryType:r,categoryName:i,categoryId:a,b2bConfiguratorProduct:l})}f("productDetails",e)})(await(()=>{let t;try{t=new URL(a.b2bConfigurator).href}catch(t){return console.error(t),Promise.reject("B2B configurator endpoint URL generation failed.")}return(new n).setUrl(t).setErrorFallbackValue([]).execute()})())};renderPlaceholder=()=>{const t="dark"===this.theme;return[r("div",{class:"offer placeholder"},r("div",{style:{padding:this.isDesktopResolution?"1.5rem":"1rem"}},r("tet-placeholder",{class:"placeholder",height:this.isDesktopResolution?"2rem":"1.5rem",darkTheme:t})),r("div",{class:"offer__content"},r("tet-placeholder",{class:"placeholder offer__navigation",height:this.isDesktopResolution?"48rem":" 2.25rem",darkTheme:t,style:{margin:"0"}}),r("div",{class:"offer__cards"},r("div",{class:"offer__cards-list"},r("tet-placeholder",{class:"placeholder",height:"3rem",darkTheme:t}),r("tet-placeholder",{class:"placeholder",height:"10.25rem",darkTheme:t}),r("tet-placeholder",{class:"placeholder",height:"10.25rem",darkTheme:t}),r("tet-placeholder",{class:"placeholder",height:"10.25rem",darkTheme:t}),r("tet-placeholder",{class:"placeholder",height:"10.25rem",darkTheme:t}))))),r("div",{class:"cart cart--empty",style:{padding:"1.5rem 1rem 1rem","background-color":"var(--b2b-background-color)"}},r("tet-placeholder",{class:"placeholder",height:"12.75rem",darkTheme:t}))]};categoryClickHandler=t=>{const{id:e}=t.detail,o=this.getCategoryById(e);o&&("primary"===o.type?this.activePrimaryCategoryId=e:this.activeSecondaryCategoryId=e)};renderOffer=()=>{const t=[{name:l("components-b2b-offer-primary-title"),type:"primary"},{name:l("components-b2b-offer-secondary-title"),type:"secondary"}];return r("div",{class:{offer:!0,[`offer--${this.theme}`]:!0}},t.map((t=>{const e=d.data.filter((e=>e.type===t.type)).map((t=>{const{id:e,name:o,icon:r}=t;return{id:e,name:o,icon:r,selected:e===this.activePrimaryCategoryId||e===this.activeSecondaryCategoryId}}));return r("tet-accordion",{ref:e=>{"primary"===t.type?this.primaryAccordionEl=e:this.secondaryAccordionEl=e},key:t.type,class:"offer__block",isOpen:"primary"===t.type,header:t.name,withBorder:!0,theme:this.theme,transparentBackground:!0},r("div",{class:"offer__content"},r("div",{class:"offer__navigation"},r("tet-business-navigation",{ref:e=>{"primary"===t.type?this.primaryNavEl=e:this.secondaryNavEl=e},menuItems:e,theme:this.theme,"onMenu-click-event":this.categoryClickHandler})),this.renderCards(t.type)))})))};getCategoryById=t=>d.data.find((e=>e.id===t));onCompareLinkClick=t=>{const e=this.getCategoryById(t);e&&e.modalScreenId&&this.compareLinkClick.emit(e.modalScreenId)};handleCardSelected=(t,e)=>{const o=this.getCategoryById(e);if(!o)return;const{type:r,allowMultipleChoice:i}=o;if("primary"===r){if(this.selectedPrimaryCards.includes(t))return;this.selectedPrimaryCards=i?[...this.selectedPrimaryCards,t]:[t]}else{if(this.selectedSecondaryCards.includes(t))return;this.selectedSecondaryCards=i?[...this.selectedSecondaryCards,t]:[t]}};handleProductCountChanged=async(t,e)=>{const{cardId:o,count:r}=t.detail,i=this.getCategoryById(e);if(i&&d.cart.get(o)!==r){if(!r)return this.itemToRemove=o,void this.confirmationDialogEl.open();i.allowMultipleChoice||i.products.forEach((t=>t.productCode!==o&&h(t.productCode))),((t,e)=>{if(e<0)return;const o=new Map(d.cart);o.set(t,e),f("cart",o)})(o,r),this.isDesktopResolution&&(this.cartEl.changeBlockState(i.type,"open"),this.cartEl.changeBlockState("primary"===i.type?"secondary":"primary","close"))}};onConfirmationClose=()=>{this.itemToRemove=null};renderConfirmationDialog=()=>r("tet-dialog",{ref:t=>this.confirmationDialogEl=t,class:this.theme,closeOnOverlayClick:!1,onCloseDialog:this.onConfirmationClose,theme:this.theme},r("div",{class:"action-dialog"},r("tet-icon",{class:"action-dialog__icon action-dialog__attention-icon",name:"tc-attention"}),r("div",{class:"action-dialog__title"},l("components-b2b-item-remove-confirmation-title"))),r("div",{slot:"footer",class:"action-dialog__footer"},r("tet-button",{class:"action-dialog__button",type:"secondary",theme:this.theme,size:"large",onClick:()=>this.confirmationDialogEl.close()},l("components-b2b-item-remove-confirmation-decline")),r("tet-button",{class:"action-dialog__button",type:"primary",theme:this.theme,size:"large",iconName:"tc-trash",iconPosition:"left",onClick:()=>{h(this.itemToRemove),this.confirmationDialogEl.close()}},l("components-b2b-item-remove-confirmation-accept"))));resetState=()=>{f("cart",new Map),this.checkoutAttempted=!1,this.primaryAccordionEl.open(),this.secondaryAccordionEl.close()};renderSubmissionStateDialog=()=>{const t="loading"===this.formState,e=()=>{this.resetState(),this.successCloseClick.emit(),this.submissionStateDialogEl.close()},o=t?r("div",{class:"action-dialog"},r("tet-spinner",{theme:this.theme}),r("div",{class:"action-dialog__title"},l("components-b2b-loading-dialog-title")),r("div",{class:"action-dialog__description"},l("components-b2b-loading-dialog-description"))):[r("div",{class:"action-dialog"},r("tet-icon",{class:"action-dialog__icon action-dialog__success-icon",name:"tc-check-circle"}),r("div",{class:"action-dialog__title"},l("components-b2b-success-dialog-title")),r("div",{class:"action-dialog__description"},l("components-b2b-success-dialog-description"))),r("div",{slot:"footer",class:"action-dialog__footer"},r("tet-button",{class:"action-dialog__button",type:"secondary",theme:this.theme,size:"large",onClick:e},r("div",{class:"action-dialog__button-text"},l("components-b2b-success-dialog-close"))),r("tet-button",{class:"action-dialog__button",type:"primary",theme:this.theme,size:"large",onClick:()=>{this.resetState(),this.submissionStateDialogEl.close()}},r("div",{class:"action-dialog__button-text"},l("components-b2b-success-dialog-start-again"))))];return r("tet-dialog",{ref:t=>this.submissionStateDialogEl=t,class:{[this.theme]:!0,"action-dialog--loading":t},closeOnOverlayClick:!1,closeOnEscape:!t,hideCloseButton:t,theme:this.theme,onCloseDialog:"success"===this.formState?e:this.submissionStateDialogEl.close},o)};renderCards=t=>{const e="primary"===t?this.activePrimaryCategoryId:this.activeSecondaryCategoryId,o="primary"===t?this.selectedPrimaryCards:this.selectedSecondaryCards,i=this.getCategoryById(e),{modalScreenId:a,products:n=[]}=i||{},s=n.map((t=>{const{productCode:i,name:{lv:a},description:{lv:n},amount:s,b2bConfiguratorProduct:{discountAmount:c,selectionType:l,defaultValue:f,minValue:m,maxValue:h,translationKey:u},benefits:{lv:y},contracts:p}=t,b=!!t.attributes.find((t=>"isBestChoice"===t.key))?.value,g="single"===l?void 0:{defaultValue:f,minValue:m,maxValue:h,label:u},_={id:i,title:a,subtitle:n,isBestChoice:b,price:s,discountPrice:c,benefits:y.split("\n"),contract:p[0]?.contract,counterOptions:g},v=o.includes(i);return r("tet-b2b-compare-card",{options:_,theme:this.theme,key:i,isSelected:v,onSelectedChange:()=>this.handleCardSelected(i,e),count:d.cart.get(i),onCountChange:t=>this.handleProductCountChanged(t,e)})}));return r("div",{class:"offer__cards"},r("div",{class:"offer__cards-header"},r("div",{class:"offer__cards-title"},l("components-b2b-offer-product-list-title")),a&&r("button",{class:{"button-reset":!0,compare__button:!0,[`${this.theme}`]:!0},onClick:()=>{this.onCompareLinkClick(e)}},r("span",{class:{compare__text:!0,"tet-link":!0,[`${this.theme}`]:!0}},l("components-b2b-offer-compare-link-text")),r("div",{class:"compare__icon-wrapper"},r("tet-icon",{class:"compare__icon",name:"tc-info-circle-outline",theme:this.theme})))),r("div",{class:"offer__cards-list"},s))};handleCartProductCountChange=(t,e,o)=>{this.handleProductCountChanged({detail:{cardId:t,count:e}},o)};goToProduct=async(t,e)=>{const o=this.getCategoryById(t);o&&("primary"===o.type?(await this.primaryAccordionEl.open(),await this.primaryNavEl.selectMenuItem(t),this.primaryAccordionEl.scrollIntoView({behavior:"smooth"})):"secondary"===o.type&&(await this.secondaryAccordionEl.open(),await this.secondaryNavEl.selectMenuItem(t),this.secondaryAccordionEl.scrollIntoView({behavior:"smooth"})),setTimeout((()=>{this.handleCardSelected(e,t)}),0))};renderCartCardsList=t=>{const e=e=>{const o=d.cart.get(e),i=d.productDetails.get(e);if(void 0===o||!i)return null;const{name:a,amount:n,description:s,discountAmount:c,categoryName:f,categoryType:m,categoryId:h,b2bConfiguratorProduct:u}=i,y="primary"===m?s:f,{selectionType:p,term:b,minValue:g,maxValue:_,translationKey:v}=u;return r("tet-business-summary-card",{key:e,productName:a,price:n,productDescription:y,discountPrice:c,currency:this.priceSuffix,contractTerm:b,theme:this.theme,withStepper:"number"===p,value:o,minValue:g,maxValue:_,stepperLabel:l(v||""),context:t,onAmountChange:t=>this.handleCartProductCountChange(e,t.detail,h),onDeleteButtonClick:()=>this.handleCartProductCountChange(e,0,h),onEditButtonClick:()=>this.goToProduct(h,e)})};return["primary","secondary"].map((t=>{const o=[...d.cart].filter((([e])=>{const o=d.productDetails.get(e);return o&&o.categoryType===t})).map((([t])=>e(t)));return o.length?r("div",{class:"cart__card-list",slot:t},o):null}))};positionStickyCartEl=()=>{this.referenceElement&&(this.isDesktopResolution?this.hostElement.style.setProperty("--b2b-cart-sticky-top",`${this.referenceElement.offsetTop}px`):this.hostElement.style.removeProperty("--b2b-cart-sticky-top"))};renderCart=(t="edit")=>{const e=!d.cart.size;let o={primary:0,secondary:0},i={primary:0,secondary:0},a=0;for(const[t,e]of d.cart){const r=d.productDetails.get(t);r&&(o[r.categoryType]+=(r.discountAmount??r.amount)*e,i[r.categoryType]+=1,a+=r.amount*e)}const{primary:n,secondary:c}=o,f=n+c,m=a-f,{primary:h,secondary:u}=this.areProductsAddedToCart(),y="edit"===t&&this.checkoutAttempted&&!h,p="edit"===t&&this.checkoutAttempted&&!u,b={summaryAmount:s(f,{currency:""}),primaryAmount:s(n,{currency:""}),secondaryAmount:s(c,{currency:""}),primaryCount:i.primary,secondaryCount:i.secondary,summarySavings:s(m,{currency:""}),hasPrimaryNotification:y,hasSecondaryNotification:p},g="edit"===t?r("tet-button",{onClick:this.checkout,slot:"cta",class:"cart__cta",type:"primary",size:this.isDesktopResolution?"large":"medium",theme:this.theme},l("components-b2b-cart-cta-button-title")):null;return r("tet-b2b-configurator-cart",{ref:e=>"edit"===t?this.cartEl=e:null,context:t,class:{cart:!0,"cart--empty":e,[`cart--${t}`]:!0},data:b,theme:this.theme,isCartEmpty:e,isDesktopResolution:this.isDesktopResolution},this.renderCartCardsList(t),g)};areProductsAddedToCart=()=>{const t={primary:!1,secondary:!1};for(const[e,o]of d.cart){const o=d.productDetails.get(e);o&&(t[o.categoryType]=!0)}return t};checkout=()=>{this.checkoutAttempted=!0;const{primary:t,secondary:e}=this.areProductsAddedToCart();t&&e&&this.checkoutFormEl.open()};submit=({detail:t})=>{const e={cart:u(),contactInfo:t};this.formState="loading",this.b2bConfiguratorSubmit.emit(e),this.checkoutFormEl.close(),this.submissionStateDialogEl.open()};renderCheckoutForm=()=>r("tet-b2b-check-out-form",{ref:t=>this.checkoutFormEl=t,theme:this.theme,"onSubmit-check-out-form":this.submit},r("div",{slot:"cart"},this.renderCart("checkout")));render(){return r(i,{key:"ba733aab5ffe86a0fd1b38b3a2918c54fe8eec79"},r("div",{key:"6613740c6cf0382aa75f08a31a1cfe14fe660ff9",class:{configurator:!0,[`${this.theme}`]:!0}},this.isLoading?this.renderPlaceholder():d.data&&[this.renderOffer(),this.renderCart()]),this.renderCheckoutForm(),this.renderConfirmationDialog(),this.renderSubmissionStateDialog())}static get watchers(){return{activePrimaryCategoryId:[{resetSelectedPrimaryCards:0}],activeSecondaryCategoryId:[{resetSelectedSecondaryCards:0}]}}};y.style='@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:root{--tet-link-color:var(--tc-text-primary);--tet-link-color-hover:var(--tc-text-secondary);--tet-link-color-active:var(--tc-text-tertiary);--tet-link-color-focus:var(--tc-blue-40);--tet-link-color-disabled:var(--tc-button-text-inverse-disabled);--tet-link-secondary-color:var(--tc-text-secondary);--tet-link-secondary-color-hover:var(--tc-text-primary)}.tet-link,.tet-link__arrow{text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;color:var(--tet-link-color);position:relative;line-height:1.5rem;cursor:pointer}.tet-link.dark,.tet-link__arrow.dark{--tet-link-color:var(--tc-text-primary-dark);--tet-link-color-hover:var(--tc-text-secondary-dark);--tet-link-color-active:var(--tc-text-tertiary-dark);--tet-link-color-focus:var(--tc-blue-40-dark);--tet-link-color-disabled:var(--tc-button-text-inverse-disabled-dark);--tet-link-secondary-color:var(--tc-text-secondary-dark);--tet-link-secondary-color-hover:var(--tc-text-primary-dark)}.tet-link.tet-link--secondary,.tet-link__arrow.tet-link--secondary{--tet-link-color:var(--tet-link-secondary-color);--tet-link-color-hover:var(--tet-link-secondary-color-hover)}.tet-link tet-icon,.tet-link__arrow tet-icon{--icon-color:var(--tet-link-color)}.tet-link:hover,.tet-link__arrow:hover{color:var(--tet-link-color-hover)}.tet-link:hover tet-icon,.tet-link__arrow:hover tet-icon{--icon-color:var(--tet-link-color-hover)}.tet-link:active,.tet-link__arrow:active{color:var(--tet-link-color-active)}.tet-link:active tet-icon,.tet-link__arrow:active tet-icon{--icon-color:var(--tet-link-color-active)}.tet-link:focus-visible,.tet-link__arrow:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s;outline-color:var(--tet-link-color-focus);border-radius:0.125rem}.tet-link.disabled,.tet-link__arrow.disabled{color:var(--tet-link-color-disabled);pointer-events:none;cursor:auto}.tet-link.disabled tet-icon,.tet-link__arrow.disabled tet-icon{--icon-color:var(--tet-link-color-disabled)}.tet-link.disabled:focus-visible,.tet-link__arrow.disabled:focus-visible{outline:none}.tet-link tet-icon,.tet-link__arrow tet-icon{padding-left:0.25rem;padding-right:0.25rem;--icon-container-display:inline-block}.tet-link__arrow{padding-right:1.5rem}.tet-link__arrow::after{content:"--\x3e";position:absolute;white-space:nowrap;display:inline-block;text-decoration:none;padding-left:0.25rem;letter-spacing:initial;transition:all 0.15s ease-in}.tet-link__arrow:hover::after{padding-left:0.375rem}:host{display:block;--b2b-cart-offset-top:0px}.light{--b2b-text-color:var(--tc-text-primary);--b2b-text-color-secondary:var(--tc-text-secondary);--b2b-background-color:var(--tc-layer-primary);--b2b-icon-background-color:var(--tc-layer-secondary);--b2b-icon-pressed-background-color:var(--tc-layer-quaternary);--b2b-box-shadow:var(--tc-elevation-one);--b2b-border-color:var(--tc-border-quaternary);--b2b-summary-block-color:var(--tc-layer-secondary);--b2b-summary-accent-color:var(--tc-yellow-20);--b2b-confirmation-dialog-icon-color:var(--tc-yellow-40);--b2b-success-dialog-icon-color:var(--tc-green-40)}.dark{--b2b-text-color:var(--tc-text-primary-dark);--b2b-text-color-secondary:var(--tc-text-secondary-dark);--b2b-background-color:var(--tc-layer-primary-dark);--b2b-icon-background-color:var(--tc-layer-secondary-dark);--b2b-icon-pressed-background-color:var(--tc-layer-quaternary-dark);--b2b-box-shadow:var(--tc-elevation-one-dark);--b2b-border-color:var(--tc-border-quaternary-dark);--b2b-summary-block-color:var(--tc-layer-secondary-dark);--b2b-summary-accent-color:var(--tc-grey-20-dark);--b2b-confirmation-dialog-icon-color:var(--tc-yellow-40-dark);--b2b-success-dialog-icon-color:var(--tc-green-40-dark)}button.button-reset{background:none;border:none;padding:0;color:inherit;text-align:inherit}.placeholder{--placeholder-animation-speed:5s}.configurator{display:flex;gap:1rem;flex-direction:column;color:var(--b2b-text-color)}@media screen and (min-width: 64rem){.configurator{gap:1.5rem;flex-direction:row;align-items:flex-start}}.offer{border-radius:1rem;height:fit-content;flex:0 0 calc(70% - 0.75rem);background-color:var(--b2b-background-color);box-shadow:var(--b2b-box-shadow)}.offer__block{--accordion-header-padding:1rem;--accordion-header-mobile-padding:1rem;--accordion-header-font:600 1.25rem/1.5rem Gilroy, Gilroy, Arial, sans-serif;--accordion-header-mobile-font:600 1.25rem/1.5rem Gilroy, Gilroy, Arial, sans-serif}.offer__block:first-child{--accordion-border-radius:1rem 1rem 0 0;--accordion-outer-border:var(--b2b-border-color)}.offer__block:last-child{--accordion-border-radius:0 0 1rem 1rem;--accordion-border-bottom-width:0}@media screen and (min-width: 64rem){.offer__block{--accordion-header-padding:1.5rem;--accordion-header-font:600 1.75rem/2rem Gilroy, Gilroy, Arial, sans-serif}}.offer__content{overflow:hidden;padding:1.5rem 1rem;display:flex;flex-direction:column;gap:0.75rem;border-color:var(--b2b-border-color);border-top-style:solid;border-top-width:0.0625rem}@media screen and (min-width: 48rem){.offer__content{padding:1.5rem}}@media screen and (min-width: 64rem){.offer__content{flex-direction:row;gap:1.5rem;padding-bottom:2.5rem}}.offer__navigation{margin:0 -1.5rem;flex:0 0 30%}@media screen and (min-width: 64rem){.offer__navigation{max-width:20.5rem;margin:0}}.offer__cards{flex:1 1 0%}.offer__cards-header{padding:0.5rem 0 0.75rem 0;display:flex;gap:0.5rem;justify-content:space-between;align-items:center}@media screen and (min-width: 64rem){.offer__cards-header{padding:1rem 0}}.offer__cards-list{display:flex;flex-direction:column;gap:1rem}.offer__cards-title{flex:auto;font:600 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}@media screen and (min-width: 64rem){.offer__cards-title{font:600 1.25rem/1.5rem "Gilroy", "Gilroy, Arial, sans-serif"}}.compare__button{border-radius:50%;overflow:hidden;font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}@media screen and (min-width: 64rem){.compare__button{border-radius:0.125rem}}.compare__button:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s}.compare__button.dark: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}.compare__button:active{--b2b-icon-background-color:var(--b2b-icon-pressed-background-color)}.compare__text{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";display:none}@media screen and (min-width: 64rem){.compare__text{display:initial}}.compare__icon-wrapper{width:2.75rem;height:2.75rem;display:flex;justify-content:center;align-items:center;background-color:var(--b2b-icon-background-color);cursor:pointer}@media screen and (min-width: 64rem){.compare__icon-wrapper{display:none}}.compare__icon{--icon-size:1.5rem;--icon-container-display:flex}.cart{flex:0 0 calc(30% - 0.75rem);position:sticky}.cart--edit{bottom:-1px;top:calc(var(--b2b-cart-sticky-top) + var(--b2b-cart-offset-top))}@media screen and (min-width: 64rem){.cart--edit{max-width:calc(30% - 0.75rem)}}.cart--empty{display:none}@media screen and (min-width: 64rem){.cart--empty{display:flex}}.cart__card-list{padding:0 1rem 1rem;display:flex;flex-direction:column;gap:0.5rem}.cart__cta{display:block;align-self:center;width:stretch;--button-width:100%}@media screen and (min-width: 48rem){.cart__cta{align-self:flex-end;width:unset;--button-width:auto}}.action-dialog{display:flex;flex-direction:column;gap:0.5rem;align-items:center;margin-bottom:1.5rem}.action-dialog--loading{--dialog-footer-border-color:transparent}.action-dialog__title{text-align:center;font:600 1.5rem/1.75rem "Gilroy", "Gilroy, Arial, sans-serif"}.action-dialog__description{text-align:center;font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}.action-dialog__icon{--icon-size:3rem}.action-dialog__attention-icon{--icon-color:var(--b2b-confirmation-dialog-icon-color)}.action-dialog__success-icon{--icon-color:var(--b2b-success-dialog-icon-color)}.action-dialog__footer{display:flex;flex-direction:column;justify-content:space-between;flex:auto;gap:1rem}@media screen and (min-width: 31.25rem){.action-dialog__footer{flex-direction:row}}.action-dialog__button{--button-width:100%}.action-dialog__button-text{white-space:nowrap}';export{y as tet_b2b_configurator}