@tet/tet-components 1.3.146-testing → 1.3.147-production

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (491) hide show
  1. package/dist/cjs/{address-5271d3aa.js → address-86670c33.js} +1 -1
  2. package/dist/cjs/{assets-e3bb045c.js → assets-44d8d688.js} +1 -1
  3. package/dist/cjs/{async-request-29b32d63.js → async-request-b7023cc7.js} +1 -1
  4. package/dist/cjs/{http-codes-2f72a8b2.js → http-codes-e46d4b01.js} +1 -1
  5. package/dist/cjs/{index-84ede372.js → index-457201e1.js} +1 -1
  6. package/dist/cjs/{index-f559cb2e.js → index-66913c99.js} +25 -37
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/{product-comparison-f784fb1b.js → product-comparison-902a580c.js} +1 -1
  9. package/dist/cjs/{tasks-af99ad61.js → tasks-108d373f.js} +2 -2
  10. package/dist/cjs/{tet-notification.cjs.entry.js → tet-accordion_2.cjs.entry.js} +132 -1
  11. package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +4 -4
  12. package/dist/cjs/tet-address-offers-view.cjs.entry.js +3 -3
  13. package/dist/cjs/tet-address-offers_4.cjs.entry.js +7 -7
  14. package/dist/cjs/tet-address-search.cjs.entry.js +4 -4
  15. package/dist/cjs/tet-asset-addresses.cjs.entry.js +3 -3
  16. package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +1 -1
  17. package/dist/cjs/{tet-autocomplete_2.cjs.entry.js → tet-autocomplete.cjs.entry.js} +1 -66
  18. package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +647 -0
  19. package/dist/cjs/tet-b2b-configurator.cjs.entry.js +536 -0
  20. package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +4 -4
  21. package/dist/cjs/tet-banner-nav.cjs.entry.js +3 -3
  22. package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
  23. package/dist/cjs/tet-border-radius.cjs.entry.js +2 -2
  24. package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
  25. package/dist/cjs/tet-business-compare-card.cjs.entry.js +1 -1
  26. package/dist/cjs/tet-business-lines.cjs.entry.js +5 -5
  27. package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
  28. package/dist/cjs/tet-button.cjs.entry.js +1 -1
  29. package/dist/cjs/tet-card-list.cjs.entry.js +1 -1
  30. package/dist/cjs/tet-carousel.cjs.entry.js +3 -3
  31. package/dist/cjs/tet-checkbox.cjs.entry.js +1 -1
  32. package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +3 -3
  33. package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
  34. package/dist/cjs/tet-colors.cjs.entry.js +5 -5
  35. package/dist/cjs/tet-compare-card-v2.cjs.entry.js +4 -4
  36. package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
  37. package/dist/cjs/tet-compare-cards_2.cjs.entry.js +3 -3
  38. package/dist/cjs/tet-components.cjs.js +2 -2
  39. package/dist/cjs/tet-contact-form.cjs.entry.js +5 -5
  40. package/dist/cjs/tet-contact-info.cjs.entry.js +1 -1
  41. package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
  42. package/dist/cjs/tet-customer-assets.cjs.entry.js +3 -3
  43. package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +1 -1
  44. package/dist/cjs/tet-datepicker.cjs.entry.js +1 -1
  45. package/dist/cjs/tet-dialog.cjs.entry.js +3 -3
  46. package/dist/cjs/tet-dropdown_2.cjs.entry.js +1 -1
  47. package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
  48. package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
  49. package/dist/cjs/tet-expansion-panel.cjs.entry.js +1 -1
  50. package/dist/cjs/tet-filter.cjs.entry.js +1 -1
  51. package/dist/cjs/tet-font-weight.cjs.entry.js +2 -2
  52. package/dist/cjs/tet-fonts.cjs.entry.js +2 -2
  53. package/dist/cjs/tet-grid.cjs.entry.js +2 -2
  54. package/dist/cjs/tet-icon.cjs.entry.js +2 -2
  55. package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
  56. package/dist/cjs/tet-input.cjs.entry.js +3 -3
  57. package/dist/cjs/tet-label.cjs.entry.js +3 -3
  58. package/dist/cjs/tet-layout.cjs.entry.js +2 -2
  59. package/dist/cjs/tet-link.cjs.entry.js +2 -2
  60. package/dist/cjs/tet-loader.cjs.entry.js +1 -1
  61. package/dist/cjs/tet-macd-view.cjs.entry.js +6 -6
  62. package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
  63. package/dist/cjs/tet-menu.cjs.entry.js +1 -1
  64. package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +3 -3
  65. package/dist/cjs/tet-navigation-mobile.cjs.entry.js +1 -1
  66. package/dist/cjs/tet-news-card-list.cjs.entry.js +1 -1
  67. package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
  68. package/dist/cjs/tet-placeholder.cjs.entry.js +1 -1
  69. package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
  70. package/dist/cjs/tet-radio.cjs.entry.js +1 -1
  71. package/dist/cjs/tet-range-slider.cjs.entry.js +1 -1
  72. package/dist/cjs/tet-referral.cjs.entry.js +5 -5
  73. package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
  74. package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
  75. package/dist/cjs/tet-spinner.cjs.entry.js +71 -0
  76. package/dist/cjs/tet-stepper-input.cjs.entry.js +3 -3
  77. package/dist/cjs/tet-stepper-v2.cjs.entry.js +1 -1
  78. package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
  79. package/dist/cjs/tet-stepper.cjs.entry.js +1 -1
  80. package/dist/cjs/tet-switch.cjs.entry.js +1 -1
  81. package/dist/cjs/tet-tab-header.cjs.entry.js +1 -1
  82. package/dist/cjs/tet-table.cjs.entry.js +1 -1
  83. package/dist/cjs/tet-tag_2.cjs.entry.js +3 -3
  84. package/dist/cjs/tet-text-list.cjs.entry.js +2 -2
  85. package/dist/cjs/tet-textarea.cjs.entry.js +1 -1
  86. package/dist/cjs/tet-thank-you-view-v2.cjs.entry.js +3 -3
  87. package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
  88. package/dist/cjs/tet-thank-you-view.cjs.entry.js +1 -1
  89. package/dist/cjs/tet-tv-gift-block.cjs.entry.js +1 -1
  90. package/dist/cjs/tet-tv-gift-list.cjs.entry.js +1 -1
  91. package/dist/cjs/{theme-wrapper-a5bbadf6.js → theme-wrapper-d753e207.js} +2 -2
  92. package/dist/cjs/{translations-ed68775f.js → translations-ed4a53af.js} +1 -1
  93. package/dist/collection/collection-manifest.json +1 -0
  94. package/dist/collection/components/advanced/cards/tet-b2b-compare-card/test/tet-b2b-compare-card.spec.js +0 -1
  95. package/dist/collection/components/advanced/cards/tet-b2b-compare-card/tet-b2b-compare-card.js +8 -8
  96. package/dist/collection/components/advanced/cards/tet-business-summary-card/tet-business-summary-card.css +7 -0
  97. package/dist/collection/components/advanced/cards/tet-business-summary-card/tet-business-summary-card.js +31 -7
  98. package/dist/collection/components/advanced/cards/tet-compare-card/tet-compare-card.css +1 -0
  99. package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.css +1 -0
  100. package/dist/collection/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.css +0 -2
  101. package/dist/collection/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.js +24 -4
  102. package/dist/collection/components/simple/lists/tet-text-list/tet-text-list.css +1 -0
  103. package/dist/collection/components/simple/menu/tet-business-navigation/tet-business-navigation.css +15 -5
  104. package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.css +4 -2
  105. package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +27 -5
  106. package/dist/collection/components/views/tet-b2b-configurator/b2b-configurator.store.js +47 -0
  107. package/dist/collection/components/views/tet-b2b-configurator/partials/tet-b2b-configurator-cart/test/tet-b2b-configurator-cart.spec.js +10 -1
  108. package/dist/collection/components/views/tet-b2b-configurator/partials/tet-b2b-configurator-cart/tet-b2b-configurator-cart.css +54 -9
  109. package/dist/collection/components/views/tet-b2b-configurator/partials/tet-b2b-configurator-cart/tet-b2b-configurator-cart.js +106 -8
  110. package/dist/collection/components/views/tet-b2b-configurator/tet-b2b-configurator.css +472 -0
  111. package/dist/collection/components/views/tet-b2b-configurator/tet-b2b-configurator.js +612 -0
  112. package/dist/collection/components/views/tet-b2b-service-calculator/tet-b2b-service-calculator.js +1 -1
  113. package/dist/collection/components/views/tet-business-lines/tet-business-lines.js +1 -1
  114. package/dist/collection/docs/styling/border-radius/tet-border-radius.js +1 -1
  115. package/dist/collection/docs/styling/colors/tet-colors.js +4 -4
  116. package/dist/collection/docs/styling/font-weight/tet-font-weight.js +1 -1
  117. package/dist/collection/docs/styling/fonts/tet-fonts.js +1 -1
  118. package/dist/collection/docs/styling/layout/tet-layout.js +1 -1
  119. package/dist/collection/docs/styling/link/tet-link.js +1 -1
  120. package/dist/collection/docs/styling/spacing/tet-spacing.js +1 -1
  121. package/dist/collection/docs/styling/tet-grid/tet-grid.js +1 -1
  122. package/dist/collection/services/utils/minimum-duration-time.js +14 -0
  123. package/dist/components/index.js +3 -1
  124. package/dist/components/{p-d20591c6.js → p-025898a0.js} +2 -2
  125. package/dist/components/{p-4d7abf55.js → p-06b04108.js} +7 -7
  126. package/dist/components/{p-0da60e27.js → p-098f928f.js} +1 -1
  127. package/dist/components/{p-fec35773.js → p-0b4ce886.js} +3 -3
  128. package/dist/components/{p-6830b44d.js → p-0f3158fd.js} +2 -2
  129. package/dist/components/{p-aca28e71.js → p-14a1ad7c.js} +1 -1
  130. package/dist/components/{p-4d0a0afc.js → p-1b0c0aea.js} +1 -1
  131. package/dist/components/{p-5b46f625.js → p-228ba4f9.js} +10 -10
  132. package/dist/{esm/tet-b2b-compare-card.entry.js → components/p-23115de8.js} +68 -20
  133. package/dist/{esm/tet-b2b-check-out-form.entry.js → components/p-2f2d4140.js} +69 -16
  134. package/dist/components/{p-18778346.js → p-32c3255c.js} +14 -14
  135. package/dist/components/{p-a213c941.js → p-336624db.js} +1 -1
  136. package/dist/components/{p-b2d2b9f2.js → p-3d3f207f.js} +2 -2
  137. package/dist/components/{p-9da9a443.js → p-3f018e97.js} +2 -2
  138. package/dist/components/{p-0d9ded0d.js → p-42d49a8d.js} +3 -3
  139. package/dist/components/{p-52235a3c.js → p-43dea798.js} +3 -3
  140. package/dist/components/{p-db548ad6.js → p-44b155ba.js} +1 -1
  141. package/dist/components/{p-17b6782b.js → p-490802fa.js} +3 -3
  142. package/dist/components/{p-63b1a813.js → p-493ca52e.js} +4 -4
  143. package/dist/components/{p-eb98627a.js → p-4a2be378.js} +1 -1
  144. package/dist/components/{p-bdad9437.js → p-4cfcfa5a.js} +6 -6
  145. package/dist/components/{p-a0d406ca.js → p-4d00761a.js} +1 -1
  146. package/dist/components/{p-e6f6ae5e.js → p-4e9a8b9d.js} +1 -1
  147. package/dist/{esm/tet-business-navigation.entry.js → components/p-4f61f832.js} +35 -8
  148. package/dist/components/{p-37ed3ebb.js → p-599035b8.js} +1 -1
  149. package/dist/components/{p-d00de500.js → p-6e362176.js} +2 -2
  150. package/dist/components/{p-6834e2c1.js → p-6f878964.js} +1 -1
  151. package/dist/components/{p-a34ed479.js → p-70f9a32a.js} +9 -9
  152. package/dist/components/{p-b3266df2.js → p-720cfbf2.js} +7 -7
  153. package/dist/components/p-7529e18a.js +227 -0
  154. package/dist/components/{p-4108736e.js → p-77854406.js} +2 -2
  155. package/dist/components/{p-c606b690.js → p-8a2e0647.js} +3 -3
  156. package/dist/components/{p-8c1b81ba.js → p-8b00261c.js} +1 -1
  157. package/dist/components/{p-0245ca71.js → p-91092b49.js} +2 -2
  158. package/dist/components/{p-6aec415f.js → p-97051b94.js} +2 -2
  159. package/dist/components/{p-e735af9c.js → p-a57fdda9.js} +10 -10
  160. package/dist/components/{p-82036dec.js → p-a83a1d01.js} +1 -1
  161. package/dist/components/{p-547dbd72.js → p-a8f32207.js} +1 -1
  162. package/dist/components/{p-a81e545d.js → p-a92e8daf.js} +1 -1
  163. package/dist/components/{p-c15aec6f.js → p-ac89537a.js} +3 -3
  164. package/dist/components/{p-5c8c2d8d.js → p-b8a43772.js} +1 -1
  165. package/dist/components/{p-28849564.js → p-ba178081.js} +3 -3
  166. package/dist/components/{p-08cb8e8b.js → p-bada8e16.js} +10 -8
  167. package/dist/components/{p-27194279.js → p-bbd53b83.js} +1 -1
  168. package/dist/components/{p-88b42c67.js → p-bd781cf7.js} +1 -1
  169. package/dist/components/{p-d0c6b6c9.js → p-bfc609d4.js} +1 -1
  170. package/dist/components/{p-a394a313.js → p-c6ef3187.js} +1 -1
  171. package/dist/components/{p-144dffdc.js → p-cd24f10f.js} +1 -1
  172. package/dist/components/{p-00c91e96.js → p-cd4a2cb9.js} +2 -2
  173. package/dist/components/{p-fdeaa7ba.js → p-d155ec6d.js} +2 -2
  174. package/dist/components/{p-89f0a85b.js → p-d48604d9.js} +3 -3
  175. package/dist/{esm/tet-business-summary-card.entry.js → components/p-d4ff9edf.js} +66 -14
  176. package/dist/components/{p-c235588b.js → p-d82b3f16.js} +4 -4
  177. package/dist/components/{p-c7c49aad.js → p-dba52917.js} +1 -1
  178. package/dist/components/{p-290a7505.js → p-e34ea4b0.js} +7 -7
  179. package/dist/components/{p-63fff216.js → p-e6c5005f.js} +3 -3
  180. package/dist/components/{p-bd3b2f42.js → p-f8d21686.js} +1 -1
  181. package/dist/components/{p-489ae3a0.js → p-fd3516f1.js} +1 -1
  182. package/dist/components/tet-accordion.js +1 -1
  183. package/dist/components/tet-address-offers-filters-products.js +1 -1
  184. package/dist/components/tet-address-offers-filters.js +1 -1
  185. package/dist/components/tet-address-offers-view.js +25 -25
  186. package/dist/components/tet-address-offers.js +1 -1
  187. package/dist/components/tet-address-search.js +1 -1
  188. package/dist/components/tet-asset-addresses.js +13 -13
  189. package/dist/components/tet-asset-availability-addresses.js +1 -1
  190. package/dist/components/tet-autocomplete-dropdown.js +5 -5
  191. package/dist/components/tet-autocomplete.js +1 -1
  192. package/dist/components/tet-availability-contact-form.js +1 -1
  193. package/dist/components/tet-b2b-check-out-form.js +1 -207
  194. package/dist/components/tet-b2b-compare-card.js +1 -206
  195. package/dist/components/tet-b2b-configurator-cart.js +1 -167
  196. package/dist/components/tet-b2b-configurator.d.ts +11 -0
  197. package/dist/components/tet-b2b-configurator.js +661 -0
  198. package/dist/components/tet-b2b-service-calculator.js +9 -9
  199. package/dist/components/tet-banner-nav.js +3 -3
  200. package/dist/components/tet-bar-graph.js +1 -1
  201. package/dist/components/tet-border-radius.js +2 -2
  202. package/dist/components/tet-business-card.js +1 -1
  203. package/dist/components/tet-business-compare-card.js +3 -3
  204. package/dist/components/tet-business-lines.js +6 -6
  205. package/dist/components/tet-business-navigation.js +1 -103
  206. package/dist/components/tet-business-round-stepper.js +2 -2
  207. package/dist/components/tet-business-summary-card.js +1 -116
  208. package/dist/components/tet-button.js +1 -1
  209. package/dist/components/tet-card-list.js +1 -1
  210. package/dist/components/tet-carousel.js +4 -4
  211. package/dist/components/tet-checkbox.js +1 -1
  212. package/dist/components/tet-cloud-application-form-dialog.js +8 -8
  213. package/dist/components/tet-cloud-configurator.js +11 -11
  214. package/dist/components/tet-colors.js +5 -5
  215. package/dist/components/tet-compare-card-v2.js +10 -10
  216. package/dist/components/tet-compare-card.js +1 -1
  217. package/dist/components/tet-compare-cards-tab.js +16 -16
  218. package/dist/components/tet-compare-cards.js +1 -1
  219. package/dist/components/tet-contact-form.js +9 -9
  220. package/dist/components/tet-contact-info.js +1 -1
  221. package/dist/components/tet-container.js +1 -1
  222. package/dist/components/tet-customer-assets.js +8 -8
  223. package/dist/components/tet-datepicker-header.js +1 -1
  224. package/dist/components/tet-datepicker-month-view.js +1 -1
  225. package/dist/components/tet-datepicker-multi-year-view.js +1 -1
  226. package/dist/components/tet-datepicker-year-view.js +1 -1
  227. package/dist/components/tet-datepicker.js +6 -6
  228. package/dist/components/tet-dialog.js +1 -1
  229. package/dist/components/tet-dropdown.js +1 -1
  230. package/dist/components/tet-dynamic-card.js +4 -4
  231. package/dist/components/tet-expandable-input.js +3 -3
  232. package/dist/components/tet-expansion-panel.js +1 -1
  233. package/dist/components/tet-filter.js +4 -4
  234. package/dist/components/tet-font-weight.js +2 -2
  235. package/dist/components/tet-fonts.js +2 -2
  236. package/dist/components/tet-grid.js +2 -2
  237. package/dist/components/tet-icon.js +1 -1
  238. package/dist/components/tet-inline-message.js +2 -2
  239. package/dist/components/tet-input.js +1 -1
  240. package/dist/components/tet-label.js +3 -3
  241. package/dist/components/tet-layout.js +2 -2
  242. package/dist/components/tet-link.js +2 -2
  243. package/dist/components/tet-loader.js +1 -1
  244. package/dist/components/tet-macd-view.js +11 -11
  245. package/dist/components/tet-menu-mobile.js +2 -2
  246. package/dist/components/tet-menu.js +2 -2
  247. package/dist/components/tet-multi-step-dialog.js +5 -5
  248. package/dist/components/tet-navigation-mobile.js +2 -2
  249. package/dist/components/tet-news-card-list.js +4 -4
  250. package/dist/components/tet-notification.js +1 -1
  251. package/dist/components/tet-number-input.js +1 -1
  252. package/dist/components/tet-placeholder.js +1 -1
  253. package/dist/components/tet-price-view.js +1 -1
  254. package/dist/components/tet-radio.js +1 -1
  255. package/dist/components/tet-range-slider.js +1 -1
  256. package/dist/components/tet-referral.js +7 -7
  257. package/dist/components/tet-round-stepper.js +2 -2
  258. package/dist/components/tet-selection-list.js +1 -1
  259. package/dist/components/tet-spacing.js +2 -2
  260. package/dist/components/tet-spinner.js +1 -1
  261. package/dist/components/tet-stepper-input.js +1 -1
  262. package/dist/components/tet-stepper-v2.js +1 -1
  263. package/dist/components/tet-stepper-v3.js +1 -1
  264. package/dist/components/tet-stepper.js +1 -1
  265. package/dist/components/tet-switch.js +1 -1
  266. package/dist/components/tet-tab-content.js +1 -1
  267. package/dist/components/tet-tab-header.js +1 -1
  268. package/dist/components/tet-table.js +3 -3
  269. package/dist/components/tet-tag-group.js +1 -1
  270. package/dist/components/tet-tag.js +1 -1
  271. package/dist/components/tet-text-list.js +1 -1
  272. package/dist/components/tet-textarea.js +1 -1
  273. package/dist/components/tet-thank-you-view-v2.js +5 -5
  274. package/dist/components/tet-thank-you-view-v3.js +5 -5
  275. package/dist/components/tet-thank-you-view.js +4 -4
  276. package/dist/components/tet-tooltip.js +1 -1
  277. package/dist/components/tet-tv-gift-block.js +1 -1
  278. package/dist/components/tet-tv-gift-list.js +2 -2
  279. package/dist/esm/{address-979a9993.js → address-b0117ba0.js} +1 -1
  280. package/dist/esm/{assets-b971f105.js → assets-37a5c8c3.js} +1 -1
  281. package/dist/esm/{async-request-6675e5f5.js → async-request-cf9b4a3e.js} +1 -1
  282. package/dist/esm/{http-codes-7faa9f6e.js → http-codes-81b59da4.js} +1 -1
  283. package/dist/esm/{index-7f1e2a22.js → index-ce62f11b.js} +25 -37
  284. package/dist/esm/{index-1bf36cb9.js → index-d502e34e.js} +1 -1
  285. package/dist/esm/loader.js +3 -3
  286. package/dist/esm/{product-comparison-830e2764.js → product-comparison-14cff1f8.js} +1 -1
  287. package/dist/esm/{tasks-3dfcc330.js → tasks-23eba012.js} +2 -2
  288. package/dist/esm/{tet-notification.entry.js → tet-accordion_2.entry.js} +132 -2
  289. package/dist/esm/tet-address-offers-filters-products_2.entry.js +4 -4
  290. package/dist/esm/tet-address-offers-view.entry.js +3 -3
  291. package/dist/esm/tet-address-offers_4.entry.js +7 -7
  292. package/dist/esm/tet-address-search.entry.js +4 -4
  293. package/dist/esm/tet-asset-addresses.entry.js +3 -3
  294. package/dist/esm/tet-autocomplete-dropdown.entry.js +1 -1
  295. package/dist/esm/{tet-autocomplete_2.entry.js → tet-autocomplete.entry.js} +2 -66
  296. package/dist/esm/tet-b2b-check-out-form_5.entry.js +639 -0
  297. package/dist/esm/tet-b2b-configurator.entry.js +532 -0
  298. package/dist/esm/tet-b2b-service-calculator.entry.js +4 -4
  299. package/dist/esm/tet-banner-nav.entry.js +3 -3
  300. package/dist/esm/tet-bar-graph.entry.js +1 -1
  301. package/dist/esm/tet-border-radius.entry.js +2 -2
  302. package/dist/esm/tet-business-card.entry.js +1 -1
  303. package/dist/esm/tet-business-compare-card.entry.js +1 -1
  304. package/dist/esm/tet-business-lines.entry.js +5 -5
  305. package/dist/esm/tet-business-round-stepper.entry.js +1 -1
  306. package/dist/esm/tet-button.entry.js +1 -1
  307. package/dist/esm/tet-card-list.entry.js +1 -1
  308. package/dist/esm/tet-carousel.entry.js +3 -3
  309. package/dist/esm/tet-checkbox.entry.js +1 -1
  310. package/dist/esm/tet-cloud-application-form-dialog.entry.js +3 -3
  311. package/dist/esm/tet-cloud-configurator.entry.js +3 -3
  312. package/dist/esm/tet-colors.entry.js +5 -5
  313. package/dist/esm/tet-compare-card-v2.entry.js +4 -4
  314. package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
  315. package/dist/esm/tet-compare-cards_2.entry.js +3 -3
  316. package/dist/esm/tet-components.js +3 -3
  317. package/dist/esm/tet-contact-form.entry.js +5 -5
  318. package/dist/esm/tet-contact-info.entry.js +1 -1
  319. package/dist/esm/tet-container_2.entry.js +1 -1
  320. package/dist/esm/tet-customer-assets.entry.js +3 -3
  321. package/dist/esm/tet-datepicker-header_4.entry.js +1 -1
  322. package/dist/esm/tet-datepicker.entry.js +1 -1
  323. package/dist/esm/tet-dialog.entry.js +3 -3
  324. package/dist/esm/tet-dropdown_2.entry.js +1 -1
  325. package/dist/esm/tet-dynamic-card.entry.js +1 -1
  326. package/dist/esm/tet-expandable-input.entry.js +1 -1
  327. package/dist/esm/tet-expansion-panel.entry.js +1 -1
  328. package/dist/esm/tet-filter.entry.js +1 -1
  329. package/dist/esm/tet-font-weight.entry.js +2 -2
  330. package/dist/esm/tet-fonts.entry.js +2 -2
  331. package/dist/esm/tet-grid.entry.js +2 -2
  332. package/dist/esm/tet-icon.entry.js +2 -2
  333. package/dist/esm/tet-inline-message.entry.js +1 -1
  334. package/dist/esm/tet-input.entry.js +3 -3
  335. package/dist/esm/tet-label.entry.js +3 -3
  336. package/dist/esm/tet-layout.entry.js +2 -2
  337. package/dist/esm/tet-link.entry.js +2 -2
  338. package/dist/esm/tet-loader.entry.js +1 -1
  339. package/dist/esm/tet-macd-view.entry.js +6 -6
  340. package/dist/esm/tet-menu-mobile.entry.js +1 -1
  341. package/dist/esm/tet-menu.entry.js +1 -1
  342. package/dist/esm/tet-multi-step-dialog.entry.js +3 -3
  343. package/dist/esm/tet-navigation-mobile.entry.js +1 -1
  344. package/dist/esm/tet-news-card-list.entry.js +1 -1
  345. package/dist/esm/tet-number-input.entry.js +1 -1
  346. package/dist/esm/tet-placeholder.entry.js +1 -1
  347. package/dist/esm/tet-price-view.entry.js +1 -1
  348. package/dist/esm/tet-radio.entry.js +1 -1
  349. package/dist/esm/tet-range-slider.entry.js +1 -1
  350. package/dist/esm/tet-referral.entry.js +5 -5
  351. package/dist/esm/tet-round-stepper.entry.js +1 -1
  352. package/dist/esm/tet-spacing.entry.js +2 -2
  353. package/dist/esm/tet-spinner.entry.js +67 -0
  354. package/dist/esm/tet-stepper-input.entry.js +3 -3
  355. package/dist/esm/tet-stepper-v2.entry.js +1 -1
  356. package/dist/esm/tet-stepper-v3.entry.js +1 -1
  357. package/dist/esm/tet-stepper.entry.js +1 -1
  358. package/dist/esm/tet-switch.entry.js +1 -1
  359. package/dist/esm/tet-tab-header.entry.js +1 -1
  360. package/dist/esm/tet-table.entry.js +1 -1
  361. package/dist/esm/tet-tag_2.entry.js +3 -3
  362. package/dist/esm/tet-text-list.entry.js +2 -2
  363. package/dist/esm/tet-textarea.entry.js +1 -1
  364. package/dist/esm/tet-thank-you-view-v2.entry.js +3 -3
  365. package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
  366. package/dist/esm/tet-thank-you-view.entry.js +1 -1
  367. package/dist/esm/tet-tv-gift-block.entry.js +1 -1
  368. package/dist/esm/tet-tv-gift-list.entry.js +1 -1
  369. package/dist/esm/{theme-wrapper-6e6b2089.js → theme-wrapper-bf063190.js} +2 -2
  370. package/dist/esm/{translations-eff34607.js → translations-4ce15979.js} +1 -1
  371. package/dist/tet-components/{p-cf7d5c84.js → p-010882b8.js} +1 -1
  372. package/dist/tet-components/{p-1ff6c573.entry.js → p-04765347.entry.js} +1 -1
  373. package/dist/tet-components/{p-e3b987d7.entry.js → p-05591687.entry.js} +1 -1
  374. package/dist/tet-components/{p-597e234a.entry.js → p-077a4872.entry.js} +1 -1
  375. package/dist/tet-components/{p-38c3b247.entry.js → p-0a739d1f.entry.js} +1 -1
  376. package/dist/tet-components/{p-37259e51.entry.js → p-0ae6c1b7.entry.js} +1 -1
  377. package/dist/tet-components/{p-c1c74500.entry.js → p-0aee10de.entry.js} +1 -1
  378. package/dist/tet-components/{p-4838a00a.entry.js → p-0f300f1d.entry.js} +1 -1
  379. package/dist/tet-components/{p-73e8e847.entry.js → p-11752ce4.entry.js} +1 -1
  380. package/dist/tet-components/{p-1460a670.entry.js → p-11a3576a.entry.js} +1 -1
  381. package/dist/tet-components/{p-8b455701.entry.js → p-15fbf2b6.entry.js} +1 -1
  382. package/dist/tet-components/{p-a15886aa.entry.js → p-18eac4d3.entry.js} +1 -1
  383. package/dist/tet-components/{p-4e3c6172.entry.js → p-1a8a60ac.entry.js} +1 -1
  384. package/dist/tet-components/{p-643c2378.entry.js → p-1b7f7d06.entry.js} +1 -1
  385. package/dist/tet-components/p-1d14c865.js +2 -0
  386. package/dist/tet-components/{p-6e8f1b37.entry.js → p-22367e6f.entry.js} +1 -1
  387. package/dist/tet-components/{p-7f6ac0d6.entry.js → p-2adad8f4.entry.js} +1 -1
  388. package/dist/tet-components/{p-de142575.js → p-34a97f00.js} +1 -1
  389. package/dist/tet-components/p-3a00d80a.entry.js +1 -0
  390. package/dist/tet-components/p-3b1c9893.entry.js +1 -0
  391. package/dist/tet-components/p-3b960cde.entry.js +1 -0
  392. package/dist/tet-components/{p-cb7e189e.entry.js → p-40d2ecdd.entry.js} +1 -1
  393. package/dist/tet-components/{p-4efb7ee4.entry.js → p-42bbb1fd.entry.js} +1 -1
  394. package/dist/tet-components/{p-bb6387c6.entry.js → p-439e1a05.entry.js} +1 -1
  395. package/dist/tet-components/{p-27b66648.entry.js → p-43b3c120.entry.js} +1 -1
  396. package/dist/tet-components/{p-1ac2736c.entry.js → p-4a45150f.entry.js} +1 -1
  397. package/dist/tet-components/{p-bc16c07b.js → p-4e747f8a.js} +1 -1
  398. package/dist/tet-components/{p-0121cef5.entry.js → p-4f5bbb05.entry.js} +1 -1
  399. package/dist/tet-components/{p-94c3c4ec.entry.js → p-52676a14.entry.js} +1 -1
  400. package/dist/tet-components/{p-65a928aa.entry.js → p-5281b49f.entry.js} +1 -1
  401. package/dist/tet-components/{p-9c274191.entry.js → p-5555ed28.entry.js} +1 -1
  402. package/dist/tet-components/{p-1ecc7145.entry.js → p-5569fd56.entry.js} +1 -1
  403. package/dist/tet-components/{p-48ed1dbc.entry.js → p-5b37d6df.entry.js} +1 -1
  404. package/dist/tet-components/{p-4fd91299.entry.js → p-5cae618b.entry.js} +1 -1
  405. package/dist/tet-components/{p-6782340f.entry.js → p-5fea2b04.entry.js} +1 -1
  406. package/dist/tet-components/{p-557685b2.entry.js → p-67682546.entry.js} +1 -1
  407. package/dist/tet-components/{p-bdce1210.entry.js → p-689d4564.entry.js} +1 -1
  408. package/dist/tet-components/{p-11e8f3aa.entry.js → p-6abee25a.entry.js} +1 -1
  409. package/dist/tet-components/{p-c82c7f32.entry.js → p-6c792889.entry.js} +1 -1
  410. package/dist/tet-components/{p-7dea8123.entry.js → p-6ca27e1a.entry.js} +1 -1
  411. package/dist/tet-components/{p-8fd47633.entry.js → p-70355190.entry.js} +1 -1
  412. package/dist/tet-components/{p-2a3448bc.entry.js → p-78bbb6e3.entry.js} +1 -1
  413. package/dist/tet-components/{p-decd45f3.entry.js → p-7d17a025.entry.js} +1 -1
  414. package/dist/tet-components/{p-476001d6.entry.js → p-7f98b631.entry.js} +1 -1
  415. package/dist/tet-components/{p-e62d7082.entry.js → p-7ff924cf.entry.js} +1 -1
  416. package/dist/tet-components/{p-3239abed.entry.js → p-8155dda2.entry.js} +1 -1
  417. package/dist/tet-components/{p-f1ee7e86.entry.js → p-82edd1e6.entry.js} +1 -1
  418. package/dist/tet-components/{p-c634602c.entry.js → p-8304cf14.entry.js} +1 -1
  419. package/dist/tet-components/{p-7f00f463.entry.js → p-86737b5a.entry.js} +1 -1
  420. package/dist/tet-components/{p-98d6a381.entry.js → p-89536ef7.entry.js} +1 -1
  421. package/dist/tet-components/{p-6c69e565.entry.js → p-8b8e658d.entry.js} +1 -1
  422. package/dist/tet-components/p-8b9f2ed6.js +1 -0
  423. package/dist/tet-components/{p-9bfcf2cc.entry.js → p-8cb12265.entry.js} +1 -1
  424. package/dist/tet-components/{p-5ef2b795.entry.js → p-92a2d052.entry.js} +1 -1
  425. package/dist/tet-components/{p-1ddb9e3c.entry.js → p-93986d28.entry.js} +1 -1
  426. package/dist/tet-components/{p-e263ecdf.js → p-9506192e.js} +1 -1
  427. package/dist/tet-components/{p-6e7a5d73.entry.js → p-95a6a903.entry.js} +1 -1
  428. package/dist/tet-components/{p-d4603ec3.entry.js → p-9727e33f.entry.js} +1 -1
  429. package/dist/tet-components/{p-469f4991.entry.js → p-9758afd7.entry.js} +1 -1
  430. package/dist/tet-components/{p-79255c00.entry.js → p-98277c90.entry.js} +1 -1
  431. package/dist/tet-components/{p-a9649e33.entry.js → p-99f0818d.entry.js} +1 -1
  432. package/dist/tet-components/{p-910087e6.entry.js → p-a700fd9b.entry.js} +1 -1
  433. package/dist/tet-components/p-a8c59d94.entry.js +1 -0
  434. package/dist/tet-components/{p-77372984.js → p-aba811f3.js} +1 -1
  435. package/dist/tet-components/{p-00695447.entry.js → p-aecc7b6b.entry.js} +1 -1
  436. package/dist/tet-components/{p-b989c3e1.entry.js → p-b1ae50a9.entry.js} +1 -1
  437. package/dist/tet-components/{p-c1294aa0.entry.js → p-b2bb8175.entry.js} +1 -1
  438. package/dist/tet-components/{p-941d8b49.entry.js → p-b3a1dca1.entry.js} +1 -1
  439. package/dist/tet-components/{p-56460d2d.entry.js → p-b719a3d5.entry.js} +1 -1
  440. package/dist/tet-components/{p-b1f31660.entry.js → p-bba3faa1.entry.js} +1 -1
  441. package/dist/tet-components/{p-bd8a0449.entry.js → p-bbf2c3a7.entry.js} +1 -1
  442. package/dist/tet-components/p-bc4a4c7f.entry.js +1 -0
  443. package/dist/tet-components/{p-265ac4ba.entry.js → p-c2566627.entry.js} +1 -1
  444. package/dist/tet-components/{p-f476f61c.entry.js → p-c6e26879.entry.js} +1 -1
  445. package/dist/tet-components/{p-d025efa2.entry.js → p-c773ef18.entry.js} +1 -1
  446. package/dist/tet-components/{p-d123c385.entry.js → p-cb3d6437.entry.js} +1 -1
  447. package/dist/tet-components/{p-57f2ce1a.entry.js → p-cb6a8b58.entry.js} +1 -1
  448. package/dist/tet-components/{p-59db86cf.entry.js → p-ce8db103.entry.js} +1 -1
  449. package/dist/tet-components/{p-3ca29117.entry.js → p-d8372f91.entry.js} +1 -1
  450. package/dist/tet-components/{p-992f7033.entry.js → p-de7cecdc.entry.js} +1 -1
  451. package/dist/tet-components/{p-8c964cca.js → p-e4275fa3.js} +1 -1
  452. package/dist/tet-components/{p-d4d704e4.entry.js → p-e4f006df.entry.js} +1 -1
  453. package/dist/tet-components/{p-31746283.entry.js → p-e73d1919.entry.js} +1 -1
  454. package/dist/tet-components/{p-dcbe09b5.js → p-ec9cfda2.js} +1 -1
  455. package/dist/tet-components/{p-2f029068.entry.js → p-ed23ebf6.entry.js} +1 -1
  456. package/dist/tet-components/{p-eeb72714.entry.js → p-f64d7088.entry.js} +1 -1
  457. package/dist/tet-components/{p-f7b3eab0.entry.js → p-f6e1d42e.entry.js} +1 -1
  458. package/dist/tet-components/{p-837b0ee6.entry.js → p-faaba6b7.entry.js} +1 -1
  459. package/dist/tet-components/p-fad2fe5e.js +1 -0
  460. package/dist/tet-components/{p-5d321447.entry.js → p-ffd0d2f9.entry.js} +1 -1
  461. package/dist/tet-components/tet-components.css +1 -1
  462. package/dist/tet-components/tet-components.esm.js +1 -1
  463. package/dist/types/components/advanced/cards/tet-business-summary-card/tet-business-summary-card.d.ts +4 -2
  464. package/dist/types/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.d.ts +2 -1
  465. package/dist/types/components/simple/structural/tet-accordion/tet-accordion.d.ts +5 -0
  466. package/dist/types/components/views/tet-b2b-configurator/b2b-configurator.store.d.ts +22 -0
  467. package/dist/types/components.d.ts +100 -4
  468. package/dist/types/services/api/interfaces/property.interface.d.ts +2 -2
  469. package/dist/types/services/api/services/b2b-configurator/b2b-configurator.d.ts +4 -4
  470. package/dist/types/services/utils/minimum-duration-time.d.ts +9 -0
  471. package/package.json +1 -1
  472. package/dist/cjs/tet-accordion.cjs.entry.js +0 -136
  473. package/dist/cjs/tet-b2b-check-out-form.cjs.entry.js +0 -164
  474. package/dist/cjs/tet-b2b-compare-card.cjs.entry.js +0 -164
  475. package/dist/cjs/tet-b2b-configurator-cart.cjs.entry.js +0 -129
  476. package/dist/cjs/tet-business-navigation.cjs.entry.js +0 -82
  477. package/dist/cjs/tet-business-summary-card.cjs.entry.js +0 -77
  478. package/dist/esm/tet-accordion.entry.js +0 -132
  479. package/dist/esm/tet-b2b-configurator-cart.entry.js +0 -125
  480. package/dist/tet-components/p-05fc6443.entry.js +0 -1
  481. package/dist/tet-components/p-1ec7f341.js +0 -2
  482. package/dist/tet-components/p-319c29e9.entry.js +0 -1
  483. package/dist/tet-components/p-47618056.entry.js +0 -1
  484. package/dist/tet-components/p-4eb386f5.entry.js +0 -1
  485. package/dist/tet-components/p-62419a1f.entry.js +0 -1
  486. package/dist/tet-components/p-a9499bbb.entry.js +0 -1
  487. package/dist/tet-components/p-b2b384d2.js +0 -1
  488. package/dist/tet-components/p-d0d39e88.entry.js +0 -1
  489. package/dist/tet-components/p-d2919aae.js +0 -1
  490. package/dist/tet-components/p-ff5dba0e.entry.js +0 -1
  491. package/dist/types/components/views/tet-b2b-configurator/partials/tet-b2b-configurator-cart/tet-b2b-configurator-cart.d.ts +0 -67
@@ -0,0 +1,536 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index$1 = require('./index-66913c99.js');
6
+ const httpCodes = require('./http-codes-e46d4b01.js');
7
+ const index = require('./index-457201e1.js');
8
+ const translations = require('./translations-ed4a53af.js');
9
+ require('./typecheck-d48810dc.js');
10
+
11
+ const b2bConfigurator = () => {
12
+ let apiUrl;
13
+ try {
14
+ apiUrl = new URL(httpCodes.endpoints.b2bConfigurator).href;
15
+ }
16
+ catch (error) {
17
+ console.error(error);
18
+ return Promise.reject('B2B configurator endpoint URL generation failed.');
19
+ }
20
+ const request = new httpCodes.ApiRequest()
21
+ .setUrl(apiUrl)
22
+ .setErrorFallbackValue([]);
23
+ return request.execute();
24
+ };
25
+
26
+ /**
27
+ * Ensures an asynchronous operation (Promise or async function) takes at least
28
+ * a specified minimum duration to resolve.
29
+ * @param callback The Promise to await, or an asynchronous function that returns a Promise.
30
+ * @param minDurationMs The minimum time, in milliseconds, the resulting Promise should take to resolve.
31
+ * @returns A Promise that resolves with the result of the callback, but only after
32
+ * both the callback and the minDurationMs delay have completed.
33
+ */
34
+ const ensureMinDuration = async (callback, minDurationMs) => {
35
+ const responsePromise = typeof callback === 'function' ? callback() : callback;
36
+ const delayPromise = new Promise((resolve) => setTimeout(resolve, minDurationMs));
37
+ const [result] = await Promise.all([responsePromise, delayPromise]);
38
+ return result;
39
+ };
40
+
41
+ const { state, set, get } = index.createStore({
42
+ data: [],
43
+ cart: new Map(),
44
+ productDetails: new Map()
45
+ });
46
+ const initData = (data) => {
47
+ set('data', data);
48
+ const productDetails = new Map();
49
+ for (const category of data) {
50
+ for (const product of category.products) {
51
+ const { type: categoryType, name: categoryName, id: categoryId } = category;
52
+ const { name: { lv: name }, description: { lv: description }, amount, b2bConfiguratorProduct } = product;
53
+ productDetails.set(product.productCode, {
54
+ name,
55
+ description,
56
+ amount,
57
+ discountAmount: b2bConfiguratorProduct.discountAmount,
58
+ categoryType,
59
+ categoryName,
60
+ categoryId,
61
+ b2bConfiguratorProduct
62
+ });
63
+ }
64
+ }
65
+ set('productDetails', productDetails);
66
+ };
67
+ const addToCart = (product, count) => {
68
+ if (count < 0) {
69
+ return;
70
+ }
71
+ const newCart = new Map(state.cart);
72
+ newCart.set(product, count);
73
+ set('cart', newCart);
74
+ };
75
+ const removeFromCart = (product) => {
76
+ const newCart = new Map(state.cart);
77
+ newCart.delete(product);
78
+ set('cart', newCart);
79
+ };
80
+ const resetCart = () => {
81
+ set('cart', new Map());
82
+ };
83
+ const getCart = () => {
84
+ return Object.fromEntries(get('cart'));
85
+ };
86
+
87
+ const tetB2bConfiguratorCss = "@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:underline;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:\"-->\";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;font:inherit;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}@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}.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))}.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}@media screen and (min-width: 48rem){.cart__cta{align-self:flex-end}}.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{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;justify-content:space-between;flex:auto}.action-dialog__button-text{white-space:nowrap}";
88
+ const TetB2bConfiguratorStyle0 = tetB2bConfiguratorCss;
89
+
90
+ /** Constant with value X, that will be used to show skeleton fox >=X ms amount of time. */
91
+ const MIN_LOAD_TIME = 500;
92
+ /** Constant to use in desktop resolution checker. Should be same as one used in SCSS media query */
93
+ const DESKTOP_BREAKPOINT = 1024;
94
+ const TetB2bConfigurator = class {
95
+ constructor(hostRef) {
96
+ index$1.registerInstance(this, hostRef);
97
+ this.compareLinkClick = index$1.createEvent(this, "compareLinkClick", 7);
98
+ this.b2bConfiguratorSubmit = index$1.createEvent(this, "b2bConfiguratorSubmit", 7);
99
+ this.successCloseClick = index$1.createEvent(this, "successCloseClick", 7);
100
+ /** @private The suffix for the price displayed - "€/mēn."). */
101
+ this.priceSuffix = '€/mēn.';
102
+ /** Syncs desktop resolution with state variable */
103
+ this.checkDesktopResolution = () => {
104
+ this.isDesktopResolution = window.innerWidth >= DESKTOP_BREAKPOINT;
105
+ };
106
+ /** Fetches the data and passes it to Stencil store */
107
+ this.fetchData = async () => {
108
+ const data = await b2bConfigurator();
109
+ initData(data);
110
+ };
111
+ /** Renders the placeholdes/skeleton */
112
+ this.renderPlaceholder = () => {
113
+ const darkTheme = this.theme === 'dark';
114
+ return [
115
+ index$1.h("div", { class: "offer placeholder" }, index$1.h("div", { style: { padding: this.isDesktopResolution ? '1.5rem' : '1rem' } }, index$1.h("tet-placeholder", { class: "placeholder", height: this.isDesktopResolution ? '2rem' : '1.5rem', darkTheme: darkTheme })), index$1.h("div", { class: "offer__content" }, index$1.h("tet-placeholder", { class: "placeholder offer__navigation", height: this.isDesktopResolution ? '48rem' : ' 2.25rem', darkTheme: darkTheme, style: { margin: '0' } }), index$1.h("div", { class: "offer__cards" }, index$1.h("div", { class: "offer__cards-list" }, index$1.h("tet-placeholder", { class: "placeholder", height: "3rem", darkTheme: darkTheme }), index$1.h("tet-placeholder", { class: "placeholder", height: "10.25rem", darkTheme: darkTheme }), index$1.h("tet-placeholder", { class: "placeholder", height: "10.25rem", darkTheme: darkTheme }), index$1.h("tet-placeholder", { class: "placeholder", height: "10.25rem", darkTheme: darkTheme }), index$1.h("tet-placeholder", { class: "placeholder", height: "10.25rem", darkTheme: darkTheme }))))),
116
+ index$1.h("div", { class: "cart cart--empty", style: {
117
+ 'padding': '1.5rem 1rem 1rem',
118
+ 'background-color': `var(--b2b-background-color)`
119
+ } }, index$1.h("tet-placeholder", { class: "placeholder", height: "12.75rem", darkTheme: darkTheme }))
120
+ ];
121
+ };
122
+ /**
123
+ * Handles event form navigation and sets currently active categories
124
+ * @param e
125
+ * @returns
126
+ */
127
+ this.categoryClickHandler = (e) => {
128
+ const { id } = e.detail;
129
+ const category = this.getCategoryById(id);
130
+ if (!category) {
131
+ return;
132
+ }
133
+ if (category.type === 'primary') {
134
+ this.activePrimaryCategoryId = id;
135
+ }
136
+ else {
137
+ this.activeSecondaryCategoryId = id;
138
+ }
139
+ };
140
+ /** Renders the offer section */
141
+ this.renderOffer = () => {
142
+ const blocks = [
143
+ { name: translations.translate('components-b2b-offer-primary-title'), type: 'primary' },
144
+ { name: translations.translate('components-b2b-offer-secondary-title'), type: 'secondary' }
145
+ ];
146
+ return (index$1.h("div", { class: { offer: true, [`offer--${this.theme}`]: true } }, blocks.map((block) => {
147
+ const menuItems = state.data
148
+ .filter((item) => item.type === block.type)
149
+ .map((category) => {
150
+ const { id, name, icon } = category;
151
+ const selected = id === this.activePrimaryCategoryId || id === this.activeSecondaryCategoryId;
152
+ return { id, name, icon, selected };
153
+ });
154
+ const accRefCallback = (el) => {
155
+ if (block.type === 'primary') {
156
+ this.primaryAccordionEl = el;
157
+ }
158
+ else {
159
+ this.secondaryAccordionEl = el;
160
+ }
161
+ };
162
+ const navRefCallback = (el) => {
163
+ if (block.type === 'primary') {
164
+ this.primaryNavEl = el;
165
+ }
166
+ else {
167
+ this.secondaryNavEl = el;
168
+ }
169
+ };
170
+ return (index$1.h("tet-accordion", { ref: accRefCallback, key: block.type, class: "offer__block", isOpen: block.type === 'primary', header: block.name, withBorder: true, theme: this.theme, transparentBackground: true }, index$1.h("div", { class: "offer__content" }, index$1.h("div", { class: "offer__navigation" }, index$1.h("tet-business-navigation", { ref: navRefCallback, menuItems: menuItems, theme: this.theme, "onMenu-click-event": this.categoryClickHandler })), this.renderCards(block.type))));
171
+ })));
172
+ };
173
+ /**
174
+ * Finds category by id. Returns category or undefined.
175
+ * @param categoryId
176
+ * @returns
177
+ */
178
+ this.getCategoryById = (categoryId) => {
179
+ return state.data.find((category) => category.id === categoryId);
180
+ };
181
+ /**
182
+ * Event, emitted on compare link click with the relevant modal Id
183
+ * @param categoryId
184
+ * @returns
185
+ */
186
+ this.onCompareLinkClick = (categoryId) => {
187
+ const category = this.getCategoryById(categoryId);
188
+ if (!category || !category.modalScreenId) {
189
+ return;
190
+ }
191
+ this.compareLinkClick.emit(category.modalScreenId);
192
+ };
193
+ /**
194
+ * Handles card selection (aka. oepen state). Checks for single|multi choice
195
+ * @param cardId
196
+ * @param categoryId
197
+ * @returns
198
+ */
199
+ this.handleCardSelected = (cardId, categoryId) => {
200
+ const category = this.getCategoryById(categoryId);
201
+ if (!category) {
202
+ return;
203
+ }
204
+ const { type, allowMultipleChoice } = category;
205
+ if (type === 'primary') {
206
+ if (this.selectedPrimaryCards.includes(cardId)) {
207
+ return;
208
+ }
209
+ this.selectedPrimaryCards = allowMultipleChoice ? [...this.selectedPrimaryCards, cardId] : [cardId];
210
+ }
211
+ else {
212
+ if (this.selectedSecondaryCards.includes(cardId)) {
213
+ return;
214
+ }
215
+ this.selectedSecondaryCards = allowMultipleChoice ? [...this.selectedSecondaryCards, cardId] : [cardId];
216
+ }
217
+ };
218
+ /**
219
+ * Updates product in cart (add, edit, remove)
220
+ * In desktop mode - changes state of summary cart's accordions
221
+ * @param e
222
+ * @param categoryId
223
+ */
224
+ this.handleProductCountChanged = async (e, categoryId) => {
225
+ const { cardId, count } = e.detail;
226
+ const productCategory = this.getCategoryById(categoryId);
227
+ if (!productCategory || state.cart.get(cardId) === count) {
228
+ return;
229
+ }
230
+ if (!count) {
231
+ this.itemToRemove = cardId;
232
+ this.confirmationDialogEl.open();
233
+ return;
234
+ }
235
+ if (!productCategory.allowMultipleChoice) {
236
+ productCategory.products.forEach((product) => product.productCode !== cardId && removeFromCart(product.productCode));
237
+ }
238
+ addToCart(cardId, count);
239
+ if (this.isDesktopResolution) {
240
+ this.cartEl.changeBlockState(productCategory.type, 'open');
241
+ this.cartEl.changeBlockState(productCategory.type === 'primary' ? 'secondary' : 'primary', 'close');
242
+ }
243
+ };
244
+ /** Resets itemId to be removed when confirmation dialog is closed */
245
+ this.onConfirmationClose = () => {
246
+ this.itemToRemove = null;
247
+ };
248
+ /** Renders confirmation dialog, shown on product removal action */
249
+ this.renderConfirmationDialog = () => {
250
+ return (index$1.h("tet-dialog", { ref: (el) => (this.confirmationDialogEl = el), class: this.theme, closeOnOverlayClick: false, onCloseDialog: this.onConfirmationClose, theme: this.theme }, index$1.h("div", { class: "action-dialog" }, index$1.h("tet-icon", { class: "action-dialog__icon action-dialog__attention-icon", name: "attention" }), index$1.h("div", { class: "action-dialog__title" }, translations.translate('components-b2b-item-remove-confirmation-title'))), index$1.h("div", { slot: "footer", class: "action-dialog__footer" }, index$1.h("tet-button", { type: "secondary", theme: this.theme, size: "large", onClick: () => this.confirmationDialogEl.close() }, translations.translate('components-b2b-item-remove-confirmation-decline')), index$1.h("tet-button", { type: "primary", theme: this.theme, size: "large", iconName: "tc-trash", iconPosition: "left", onClick: () => {
251
+ removeFromCart(this.itemToRemove);
252
+ this.confirmationDialogEl.close();
253
+ } }, translations.translate('components-b2b-item-remove-confirmation-accept')))));
254
+ };
255
+ /** Performs action to start again */
256
+ this.resetState = () => {
257
+ resetCart();
258
+ this.checkoutAttempted = false;
259
+ this.primaryAccordionEl.open();
260
+ this.secondaryAccordionEl.close();
261
+ };
262
+ /** Renders dialog, shown after form submit */
263
+ this.renderSubmissionStateDialog = () => {
264
+ const isFormSubmitLoading = this.formState === 'loading';
265
+ const successClose = () => {
266
+ this.resetState();
267
+ this.successCloseClick.emit();
268
+ this.submissionStateDialogEl.close();
269
+ };
270
+ const content = isFormSubmitLoading ? (index$1.h("div", { class: "action-dialog" }, index$1.h("tet-spinner", { theme: this.theme }), index$1.h("div", { class: "action-dialog__title" }, translations.translate('components-b2b-loading-dialog-title')), index$1.h("div", { class: "action-dialog__description" }, translations.translate('components-b2b-loading-dialog-description')))) : ([
271
+ index$1.h("div", { class: "action-dialog" }, index$1.h("tet-icon", { class: "action-dialog__icon action-dialog__success-icon", name: "tc-check-circle" }), index$1.h("div", { class: "action-dialog__title" }, translations.translate('components-b2b-success-dialog-title')), index$1.h("div", { class: "action-dialog__description" }, translations.translate('components-b2b-success-dialog-description'))),
272
+ index$1.h("div", { slot: "footer", class: "action-dialog__footer" }, index$1.h("tet-button", { type: "secondary", theme: this.theme, size: "large", onClick: successClose }, index$1.h("div", { class: "action-dialog__button-text" }, translations.translate('components-b2b-success-dialog-close'))), index$1.h("tet-button", { type: "primary", theme: this.theme, size: "large", onClick: () => {
273
+ this.resetState();
274
+ this.submissionStateDialogEl.close();
275
+ } }, index$1.h("div", { class: "action-dialog__button-text" }, translations.translate('components-b2b-success-dialog-start-again'))))
276
+ ]);
277
+ return (index$1.h("tet-dialog", { ref: (el) => (this.submissionStateDialogEl = el), class: { [this.theme]: true, 'action-dialog--loading': isFormSubmitLoading }, closeOnOverlayClick: false, closeOnEscape: !isFormSubmitLoading, hideCloseButton: isFormSubmitLoading, theme: this.theme, onCloseDialog: this.formState === 'success' ? successClose : this.submissionStateDialogEl.close }, content));
278
+ };
279
+ /**
280
+ * Renders offer section cards for the given category type
281
+ * @param categoryType The type of category block to render
282
+ * @returns
283
+ */
284
+ this.renderCards = (categoryType) => {
285
+ var _a;
286
+ const activeCategoryId = categoryType === 'primary' ? this.activePrimaryCategoryId : this.activeSecondaryCategoryId;
287
+ const selectedCards = categoryType === 'primary' ? this.selectedPrimaryCards : this.selectedSecondaryCards;
288
+ const products = ((_a = this.getCategoryById(activeCategoryId)) === null || _a === void 0 ? void 0 : _a.products) || [];
289
+ const cards = products.map((product) => {
290
+ var _a, _b;
291
+ const { productCode: id, name: { lv: title }, description: { lv: subtitle }, amount: price, b2bConfiguratorProduct: { discountAmount: discountPrice, selectionType, defaultValue, minValue, maxValue, translationKey: label }, benefits: { lv: benefits }, contracts } = product;
292
+ const isBestChoice = !!((_a = product.attributes.find((attribute) => attribute.key === 'isBestChoice')) === null || _a === void 0 ? void 0 : _a.value);
293
+ const counterOptions = selectionType === 'single'
294
+ ? undefined
295
+ : {
296
+ defaultValue,
297
+ minValue,
298
+ maxValue,
299
+ label
300
+ };
301
+ const options = {
302
+ id,
303
+ title,
304
+ subtitle,
305
+ isBestChoice,
306
+ price,
307
+ discountPrice,
308
+ benefits: benefits.split('\n'),
309
+ contract: (_b = contracts[0]) === null || _b === void 0 ? void 0 : _b.contract,
310
+ counterOptions
311
+ };
312
+ const isSelected = selectedCards.includes(id);
313
+ return (index$1.h("tet-b2b-compare-card", { options: options, theme: this.theme, key: id, isSelected: isSelected, onSelectedChange: () => this.handleCardSelected(id, activeCategoryId), count: state.cart.get(id), onCountChange: (e) => this.handleProductCountChanged(e, activeCategoryId) }));
314
+ });
315
+ return (index$1.h("div", { class: "offer__cards" }, index$1.h("div", { class: "offer__cards-header" }, index$1.h("div", { class: "offer__cards-title" }, translations.translate('components-b2b-offer-product-list-title')), index$1.h("button", { class: { 'button-reset': true, 'compare__button': true, [`${this.theme}`]: true }, onClick: () => {
316
+ this.onCompareLinkClick(activeCategoryId);
317
+ } }, index$1.h("span", { class: { 'compare__text': true, 'tet-link': true, [`${this.theme}`]: true } }, translations.translate('components-b2b-offer-compare-link-text')), index$1.h("div", { class: "compare__icon-wrapper" }, index$1.h("tet-icon", { class: "compare__icon", name: "tc-info-circle-outline", theme: this.theme })))), index$1.h("div", { class: "offer__cards-list" }, cards)));
318
+ };
319
+ /**
320
+ * Translates Cart "count change" event and uses in the general "count change" handler
321
+ * @param cardId
322
+ * @param count
323
+ * @param categoryId
324
+ */
325
+ this.handleCartProductCountChange = (cardId, count, categoryId) => {
326
+ const updateEvent = { detail: { cardId, count } };
327
+ this.handleProductCountChanged(updateEvent, categoryId);
328
+ };
329
+ /**
330
+ * Navigates user in offer section by opening accordion and selecting the specific product which was clicked in cart component
331
+ * @param categoryId
332
+ * @param productCode
333
+ * @returns
334
+ */
335
+ this.goToProduct = async (categoryId, productCode) => {
336
+ const category = this.getCategoryById(categoryId);
337
+ if (!category) {
338
+ return;
339
+ }
340
+ if (category.type === 'primary') {
341
+ await this.primaryAccordionEl.open();
342
+ await this.primaryNavEl.selectMenuItem(categoryId);
343
+ this.primaryAccordionEl.scrollIntoView({ behavior: 'smooth' });
344
+ }
345
+ else if (category.type === 'secondary') {
346
+ await this.secondaryAccordionEl.open();
347
+ await this.secondaryNavEl.selectMenuItem(categoryId);
348
+ this.secondaryAccordionEl.scrollIntoView({ behavior: 'smooth' });
349
+ }
350
+ setTimeout(() => {
351
+ this.handleCardSelected(productCode, categoryId);
352
+ }, 0);
353
+ };
354
+ /**
355
+ * Renders list of Cards in Cart depending on context
356
+ * @param context
357
+ * @returns
358
+ */
359
+ this.renderCartCardsList = (context) => {
360
+ const categoryTypes = ['primary', 'secondary'];
361
+ const productCodeToSummaryCard = (productCode) => {
362
+ const count = state.cart.get(productCode);
363
+ const details = state.productDetails.get(productCode);
364
+ if (count === undefined || !details) {
365
+ return null;
366
+ }
367
+ const { name, amount, description, discountAmount, categoryName, categoryType, categoryId, b2bConfiguratorProduct } = details;
368
+ const productDescription = categoryType === 'primary' ? description : categoryName;
369
+ const { selectionType, term, minValue, maxValue, translationKey } = b2bConfiguratorProduct;
370
+ const activeCategoryId = categoryType === 'primary' ? this.activePrimaryCategoryId : this.activeSecondaryCategoryId;
371
+ return (index$1.h("tet-business-summary-card", { key: productCode, productName: name, price: amount, productDescription: productDescription, discountPrice: discountAmount, currency: this.priceSuffix, contractTerm: term, theme: this.theme, withStepper: selectionType === 'number', value: count, minValue: minValue, maxValue: maxValue, stepperLabel: translations.translate(translationKey || ''), context: context, onAmountChange: (e) => this.handleCartProductCountChange(productCode, e.detail, activeCategoryId), onDeleteButtonClick: () => this.handleCartProductCountChange(productCode, 0, activeCategoryId), onEditButtonClick: () => this.goToProduct(categoryId, productCode) }));
372
+ };
373
+ return categoryTypes.map((type) => {
374
+ const summaryCards = [...state.cart]
375
+ .filter(([productCode]) => {
376
+ const details = state.productDetails.get(productCode);
377
+ return details && details.categoryType === type;
378
+ })
379
+ .map(([productCode]) => productCodeToSummaryCard(productCode));
380
+ return summaryCards.length ? (index$1.h("div", { class: "cart__card-list", slot: type }, summaryCards)) : null;
381
+ });
382
+ };
383
+ /** Adjusts the top position variable for the sticky cart element */
384
+ this.positionStickyCartEl = () => {
385
+ if (this.referenceElement) {
386
+ if (this.isDesktopResolution) {
387
+ this.hostElement.style.setProperty('--b2b-cart-sticky-top', `${this.referenceElement.offsetTop}px`);
388
+ }
389
+ else {
390
+ this.hostElement.style.removeProperty('--b2b-cart-sticky-top');
391
+ }
392
+ }
393
+ };
394
+ /**
395
+ * Renders Cart content depending on context
396
+ * @param context
397
+ * @returns
398
+ */
399
+ this.renderCart = (context = 'edit') => {
400
+ var _a;
401
+ const isCartEmpty = !state.cart.size;
402
+ let summaryAmounts = { primary: 0, secondary: 0 };
403
+ let summaryCounts = { primary: 0, secondary: 0 };
404
+ let summaryWouldBeAmount = 0;
405
+ for (const [key, count] of state.cart) {
406
+ const details = state.productDetails.get(key);
407
+ if (!details) {
408
+ continue;
409
+ }
410
+ summaryAmounts[details.categoryType] += ((_a = details.discountAmount) !== null && _a !== void 0 ? _a : details.amount) * count;
411
+ summaryCounts[details.categoryType] += 1;
412
+ summaryWouldBeAmount += details.amount * count;
413
+ }
414
+ const { primary: primaryAmount, secondary: secondaryAmount } = summaryAmounts;
415
+ const summaryAmount = primaryAmount + secondaryAmount;
416
+ const summarySavings = summaryWouldBeAmount - summaryAmount;
417
+ const { primary, secondary } = this.areProductsAddedToCart();
418
+ const hasPrimaryNotification = context === 'edit' && this.checkoutAttempted && !primary;
419
+ const hasSecondaryNotification = context === 'edit' && this.checkoutAttempted && !secondary;
420
+ const data = {
421
+ summaryAmount: summaryAmount.toFixed(2),
422
+ primaryAmount: primaryAmount.toFixed(2),
423
+ secondaryAmount: secondaryAmount.toFixed(2),
424
+ primaryCount: summaryCounts.primary,
425
+ secondaryCount: summaryCounts.secondary,
426
+ summarySavings: summarySavings.toFixed(2),
427
+ hasPrimaryNotification,
428
+ hasSecondaryNotification
429
+ };
430
+ const ctaButton = context === 'edit' ? (index$1.h("tet-button", { onClick: this.checkout, slot: "cta", class: "cart__cta", type: "primary", size: this.isDesktopResolution ? 'large' : 'medium', theme: this.theme }, translations.translate('components-b2b-cart-cta-button-title'))) : null;
431
+ return (index$1.h("tet-b2b-configurator-cart", { ref: (el) => (context === 'edit' ? (this.cartEl = el) : null), context: context, class: { 'cart': true, 'cart--empty': isCartEmpty, [`cart--${context}`]: true }, data: data, theme: this.theme, isCartEmpty: isCartEmpty, isDesktopResolution: this.isDesktopResolution }, this.renderCartCardsList(context), ctaButton));
432
+ };
433
+ /** Checks if both primary and secondary products are currently in cart */
434
+ this.areProductsAddedToCart = () => {
435
+ const productsInCart = { primary: false, secondary: false };
436
+ for (const [key, _] of state.cart) {
437
+ const details = state.productDetails.get(key);
438
+ if (!details) {
439
+ continue;
440
+ }
441
+ productsInCart[details.categoryType] = true;
442
+ }
443
+ return productsInCart;
444
+ };
445
+ /** Cart checkout handler. Opens Checkout component*/
446
+ this.checkout = () => {
447
+ this.checkoutAttempted = true;
448
+ const { primary, secondary } = this.areProductsAddedToCart();
449
+ if (primary && secondary) {
450
+ this.checkoutFormEl.open();
451
+ }
452
+ };
453
+ /**
454
+ * Catches emitted checkout form data
455
+ * Combines with cart data and re-emits
456
+ * @param e
457
+ */
458
+ this.submit = ({ detail }) => {
459
+ const data = {
460
+ cart: getCart(),
461
+ contactInfo: detail
462
+ };
463
+ this.formState = 'loading';
464
+ this.b2bConfiguratorSubmit.emit(data);
465
+ this.checkoutFormEl.close();
466
+ this.submissionStateDialogEl.open();
467
+ };
468
+ this.renderCheckoutForm = () => {
469
+ return (index$1.h("tet-b2b-check-out-form", { ref: (el) => (this.checkoutFormEl = el), theme: this.theme, "onSubmit-check-out-form": this.submit }, index$1.h("div", { slot: "cart" }, this.renderCart('checkout'))));
470
+ };
471
+ this.referenceElement = undefined;
472
+ this.isLoading = true;
473
+ this.itemToRemove = null;
474
+ this.checkoutAttempted = false;
475
+ this.formState = 'success';
476
+ this.activePrimaryCategoryId = null;
477
+ this.activeSecondaryCategoryId = null;
478
+ this.selectedPrimaryCards = [];
479
+ this.selectedSecondaryCards = [];
480
+ this.isDesktopResolution = undefined;
481
+ this.theme = 'light';
482
+ this.stickyRefEl = '';
483
+ }
484
+ /** Resets selected (open) primary cards on category change */
485
+ resetSelectedPrimaryCards() {
486
+ this.selectedPrimaryCards = [];
487
+ }
488
+ /** Resets selected (open) secondary cards on category change */
489
+ resetSelectedSecondaryCards() {
490
+ this.selectedSecondaryCards = [];
491
+ }
492
+ /** Checks for desktop resolution and intializes the sticky element's reference using the provided prop or the host's parent */
493
+ async componentWillLoad() {
494
+ this.checkDesktopResolution();
495
+ this.referenceElement = this.stickyRefEl
496
+ ? document.querySelector(this.stickyRefEl)
497
+ : this.hostElement.parentElement;
498
+ }
499
+ /**
500
+ * Initiates:
501
+ * - data (with minimum load time to reduce flickering)
502
+ * - selected categories for each type
503
+ * - sticky elements position
504
+ */
505
+ async componentDidLoad() {
506
+ var _a, _b;
507
+ this.isLoading = true;
508
+ await ensureMinDuration(this.fetchData, MIN_LOAD_TIME);
509
+ this.isLoading = false;
510
+ this.activePrimaryCategoryId = ((_a = state.data.find((category) => category.type === 'primary')) === null || _a === void 0 ? void 0 : _a.id) || null;
511
+ this.activeSecondaryCategoryId = ((_b = state.data.find((category) => category.type === 'secondary')) === null || _b === void 0 ? void 0 : _b.id) || null;
512
+ this.positionStickyCartEl();
513
+ }
514
+ /**
515
+ * Initiates desktop resolution listener and sticky adjustement on window resize
516
+ */
517
+ onResize() {
518
+ this.checkDesktopResolution();
519
+ this.positionStickyCartEl();
520
+ }
521
+ /** Sets the value of form submission status*/
522
+ async setSubmitFormState(value) {
523
+ this.formState = value;
524
+ }
525
+ render() {
526
+ return (index$1.h(index$1.Host, { key: 'e7d2ab1d76e8ad347393bde30d0d71a7425ca2f7' }, index$1.h("div", { key: 'af251291fbb1cdf8c6eb1c3928f1fcd99181fa25', class: { configurator: true, [`${this.theme}`]: true } }, this.isLoading ? this.renderPlaceholder() : state.data && [this.renderOffer(), this.renderCart()]), this.renderCheckoutForm(), this.renderConfirmationDialog(), this.renderSubmissionStateDialog()));
527
+ }
528
+ get hostElement() { return index$1.getElement(this); }
529
+ static get watchers() { return {
530
+ "activePrimaryCategoryId": ["resetSelectedPrimaryCards"],
531
+ "activeSecondaryCategoryId": ["resetSelectedSecondaryCards"]
532
+ }; }
533
+ };
534
+ TetB2bConfigurator.style = TetB2bConfiguratorStyle0;
535
+
536
+ exports.tet_b2b_configurator = TetB2bConfigurator;
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-f559cb2e.js');
6
- const translations = require('./translations-ed68775f.js');
5
+ const index = require('./index-66913c99.js');
6
+ const translations = require('./translations-ed4a53af.js');
7
7
  require('./typecheck-d48810dc.js');
8
- require('./http-codes-2f72a8b2.js');
8
+ require('./http-codes-e46d4b01.js');
9
9
 
10
10
  const REMOTE_SERVICE_UNIT_PRICE_EUROS = 11;
11
11
  const FULL_SERVICE_UNIT_PRICE_EUROS = 21;
@@ -62,7 +62,7 @@ const TetB2bServiceCalculator = class {
62
62
  translations.processTranslations('tet-components', this.language).then(() => index.forceUpdate(this));
63
63
  }
64
64
  render() {
65
- return (index.h("section", { key: '7249b0c2f37af39e860637cfe416182c5227c6d2', class: "container" }, index.h("div", { key: '89565a9f35411aa6a542582b77df0b9b9da03e0e', class: "title-block" }, translations.translate('components-b2b-calculator-title')), index.h("div", { key: '433eff5a8e863475880f8cf0216d1f604b7f74ce', class: "calculator-block" }, index.h("p", { key: '1b81e92aa9b7c58543257ea906c2177108b5c3e5', class: "slider-title" }, translations.translate('components-b2b-calculator-computer-count')), index.h("tet-range-slider", { key: 'c5ce8ce5c73329b07f9df3b22aa2f243c56ca1e9', class: "slider", size: "large", type: "primary", defaultValue: 75, maxValue: 100, withControls: false, withInput: false, dataPoints: [1, 20, 40, 60, 80, 100], displayDataPoints: [1, 20, 40, 60, 80, 100], lockToDataPoint: false }), index.h("div", { key: '69d35eac4899ba24153253d1a70984c60de6ee4f', class: "control-container" }, index.h("div", { key: '53f8d6355652051ca9e455769a32b1ee127a1a7d', class: "control" }, index.h("tet-checkbox", { key: 'adfd75a801a68e6ba794d27735d595dddfc9c901', class: "it-admin-checkbox", checked: this.withItAdmin, onCheck: this.handleWithItAdminValueChange }, translations.translate('components-b2b-calculator-it-admin-checkbox-label'))), index.h("div", { key: '000d314c262c7688e1ca5aed97dc84d0c72955e2', class: "control" }, index.h("tet-switch", { key: '8a423a478675117419a6c2ce02dd37962d4741e0', class: "in-person-support-switch", checked: this.withInPersonServiceSupport, onCheck: this.handleInPersonServiceSupportValueChange }, translations.translate('components-b2b-calculator-in-person-support-switch-label')))), index.h("div", { key: '9d869285131a855b2b9caf6d8ffe6100ab09df8f', class: "monthly-payment-block" }, index.h("p", { key: '08248a6283d71227e0350b4c0ff092993c86aa56', class: "title" }, translations.translate('components-b2b-calculator-potential-monthly-payment')), index.h("p", { key: 'cf137d3eed20a677c934f1dacdf8624bce437d70' }, index.h("span", { key: '070d5c3458a67c444c779e62fe522f3cda3dbb2a', class: "price" }, this.totalPrice), index.h("span", { key: 'f176b1e11123c143f0c63267256ec1484df38eec', class: "currency" }, translations.translate('components-euro-per-month')))))));
65
+ return (index.h("section", { key: '326aaa3f71423e90e2b453e5cc8b1df96689a8bc', class: "container" }, index.h("div", { key: 'f51769d2182670107b7a43467781160486c0f029', class: "title-block" }, translations.translate('components-b2b-calculator-title')), index.h("div", { key: 'b4ff5d39a203c91ade560be83be338166d8b9ff0', class: "calculator-block" }, index.h("p", { key: 'c1e8ac5d2b37d8a324acf7b3da046c29e1383c75', class: "slider-title" }, translations.translate('components-b2b-calculator-computer-count')), index.h("tet-range-slider", { key: '81d57baa4df911bbeceb6ba2a6c67bcd07a09a90', class: "slider", size: "large", type: "primary", defaultValue: 75, maxValue: 100, withControls: false, withInput: false, dataPoints: [1, 20, 40, 60, 80, 100], displayDataPoints: [1, 20, 40, 60, 80, 100], lockToDataPoint: false }), index.h("div", { key: '410efdef7d65e976e94dd7040c4d7faa1d52e32b', class: "control-container" }, index.h("div", { key: '931c43b16c415ab0075a9fbc9f4710210ed0a5f4', class: "control" }, index.h("tet-checkbox", { key: '6df1d34cb7670a01213ee83f8c3d33529f13bef6', class: "it-admin-checkbox", checked: this.withItAdmin, onCheck: this.handleWithItAdminValueChange }, translations.translate('components-b2b-calculator-it-admin-checkbox-label'))), index.h("div", { key: '1584213b5b9f61d97be033f37e1e0d82dafedc78', class: "control" }, index.h("tet-switch", { key: 'd02d94c371e55119eceea25d187346cb13cd2071', class: "in-person-support-switch", checked: this.withInPersonServiceSupport, onCheck: this.handleInPersonServiceSupportValueChange }, translations.translate('components-b2b-calculator-in-person-support-switch-label')))), index.h("div", { key: '4a2b3bd7bdc6f893e644480e4d234f140df41931', class: "monthly-payment-block" }, index.h("p", { key: '390d38acfbc980da72a405639ff1c5b14bc6402a', class: "title" }, translations.translate('components-b2b-calculator-potential-monthly-payment')), index.h("p", { key: '5c159aef3379a1c4c321959c9512dc733d509ebd' }, index.h("span", { key: 'd84fc849ac203fc4fe0199759263ee39959a594d', class: "price" }, this.totalPrice), index.h("span", { key: 'a8cf396d4fa1ea083833dd276fb45b0c6d73e7c2', class: "currency" }, translations.translate('components-euro-per-month')))))));
66
66
  }
67
67
  static get watchers() { return {
68
68
  "language": ["onLanguageChange"],
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-f559cb2e.js');
6
- const translations = require('./translations-ed68775f.js');
5
+ const index = require('./index-66913c99.js');
6
+ const translations = require('./translations-ed4a53af.js');
7
7
  require('./typecheck-d48810dc.js');
8
- require('./http-codes-2f72a8b2.js');
8
+ require('./http-codes-e46d4b01.js');
9
9
 
10
10
  const tetBannerNavCss = ".banner-navigation{display:inline-flex;align-items:flex-end}.banner-navigation--light{color:var(--tc-icon-primary);--fill-color:var(--tc-icon-primary);--outline-color:var(--tc-blue-40, rgba(25, 98, 212, 1));--hover-color:rgba(12, 12, 14, 0.10);--done-hover-color:var(--tc-grey-80);--pause-icon-color:var( --tc-icon-primary);--active-color:var(--tc-grey-110);--inactive-color:var(--tc-grey-60)}.banner-navigation--dark{color:var(--tc-icon-primary-dark);--fill-color:var(--tc-icon-primary-dark);--outline-color:var(--tc-blue-40-dark, rgba(52, 129, 247, 1));--hover-color:rgba(187, 189, 191, 0.2);--done-hover-color:var(--tc-grey-80-dark);--pause-icon-color:var(--tc-icon-primary-dark);--active-color:var(--tc-grey-110-dark);--inactive-color:var(--tc-grey-60-dark)}.banner-navigation__pause{display:flex;align-items:center;border:none;background:none;padding:0.125rem;margin-right:0.375rem;cursor:pointer}.banner-navigation__pause:focus-visible{outline:var(--outline-color) auto 1px}.banner-navigation__pause tet-icon{--icon-color:var(--pause-icon-color)}.banner-navigation__pause:hover tet-icon{--icon-color:var(--done-hover-color)}.banner-navigation__button-container{margin:0 0 2px 0}.banner-navigation__button{display:flex;align-items:flex-end;justify-content:center;appearance:none;border:none;background:none;cursor:pointer;padding:0.125rem;color:var(--inactive-color)}.banner-navigation__button:hover .hover-rect{fill:var(--hover-color)}.banner-navigation__button--done:hover .rect-opacity,.banner-navigation__button--active:hover .rect-opacity{fill:var(--done-hover-color)}.banner-navigation__button--done:hover .outer-rect,.banner-navigation__button--active:hover .outer-rect{color:var(--done-hover-color)}.banner-navigation__button .clip-rect{width:22px}.banner-navigation__button--active,.banner-navigation__button--done{color:var(--active-color)}.banner-navigation__button--active .clip-rect{animation:fill-progress var(--progress-duration, 5000ms) linear forwards}.banner-navigation__button--done .clip-rect{width:22px}.banner-navigation__button--active.banner-navigation__button--paused .clip-rect{animation:none;width:0}@keyframes fill-progress{from{width:0}to{width:22px}}.svg-wrapper{position:relative;display:inline-block;width:12px;height:12px;transition:width 0.2s linear;pointer-events:none}.svg-wrapper .nav-svg{position:absolute;top:50%;left:0;transform:translateY(-50%);transform-origin:left center;height:12px;pointer-events:none}.svg-wrapper .rect{transition:width 0.2s linear, rx 0.2s ease-out}.nav-svg--unfilled .rect-opacity{opacity:0;width:22px;transition:width 0.2s linear, rx 0.2s ease-out, opacity 0.2s ease-in}.nav-svg--unfilled .rect{rx:10;width:11px}.nav-svg--filled .rect-opacity{opacity:1}.nav-svg--filled .rect{width:11px;rx:10}.banner-navigation__button--active .svg-wrapper{width:23px}@media (prefers-reduced-motion: reduce){.banner-navigation__button--active .clip-rect,.rect,.rect-opacity{transition:none;width:22px}}.banner-navigation__button:focus-visible{position:relative;width:fit-content;height:fit-content;outline:none}.banner-navigation__button:focus-visible::after{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;scale:1.2;transform-origin:center center;outline:2px solid;outline-offset:-0.125rem;outline-color:var(--outline-color);border-radius:11px}.banner-navigation--mobile .banner-navigation__button{padding:0.3125rem}.banner-navigation--mobile .banner-navigation__pause{padding:0.3125rem;margin-right:0.4375rem;outline-offset:-0.25rem}.banner-navigation--mobile .banner-navigation__button:focus-visible::after{outline-offset:-0.3125rem}";
11
11
  const TetBannerNavStyle0 = tetBannerNavCss;