@otto-de/b2b-core-components 1.0.0

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 (1066) hide show
  1. package/README.md +8 -0
  2. package/dist/b2b-core-components/b2b-core-components.css +1 -0
  3. package/dist/b2b-core-components/b2b-core-components.esm.js +1 -0
  4. package/dist/b2b-core-components/icons/b2b_icon-360-degree.svg +6 -0
  5. package/dist/b2b-core-components/icons/b2b_icon-advice.svg +7 -0
  6. package/dist/b2b-core-components/icons/b2b_icon-allergen-sulfur-dioxide-sulfite.svg +3 -0
  7. package/dist/b2b-core-components/icons/b2b_icon-almond.svg +3 -0
  8. package/dist/b2b-core-components/icons/b2b_icon-archive.svg +3 -0
  9. package/dist/b2b-core-components/icons/b2b_icon-armchair.svg +3 -0
  10. package/dist/b2b-core-components/icons/b2b_icon-arrow-down.svg +3 -0
  11. package/dist/b2b-core-components/icons/b2b_icon-arrow-graph.svg +3 -0
  12. package/dist/b2b-core-components/icons/b2b_icon-arrow-left.svg +3 -0
  13. package/dist/b2b-core-components/icons/b2b_icon-arrow-right.svg +3 -0
  14. package/dist/b2b-core-components/icons/b2b_icon-arrow-up.svg +3 -0
  15. package/dist/b2b-core-components/icons/b2b_icon-assembly.svg +4 -0
  16. package/dist/b2b-core-components/icons/b2b_icon-assortment.svg +3 -0
  17. package/dist/b2b-core-components/icons/b2b_icon-attachment.svg +3 -0
  18. package/dist/b2b-core-components/icons/b2b_icon-augmented-reality.svg +9 -0
  19. package/dist/b2b-core-components/icons/b2b_icon-autonomous-team.svg +4 -0
  20. package/dist/b2b-core-components/icons/b2b_icon-bank-details.svg +3 -0
  21. package/dist/b2b-core-components/icons/b2b_icon-bar-graph-ascending.svg +5 -0
  22. package/dist/b2b-core-components/icons/b2b_icon-bar-graph-axis.svg +6 -0
  23. package/dist/b2b-core-components/icons/b2b_icon-barley.svg +3 -0
  24. package/dist/b2b-core-components/icons/b2b_icon-basket-sale.svg +3 -0
  25. package/dist/b2b-core-components/icons/b2b_icon-basket.svg +4 -0
  26. package/dist/b2b-core-components/icons/b2b_icon-basketball.svg +3 -0
  27. package/dist/b2b-core-components/icons/b2b_icon-bikini.svg +4 -0
  28. package/dist/b2b-core-components/icons/b2b_icon-blogs.svg +6 -0
  29. package/dist/b2b-core-components/icons/b2b_icon-brandshop.svg +8 -0
  30. package/dist/b2b-core-components/icons/b2b_icon-brazil-nut.svg +3 -0
  31. package/dist/b2b-core-components/icons/b2b_icon-browser-click.svg +7 -0
  32. package/dist/b2b-core-components/icons/b2b_icon-browser-content.svg +9 -0
  33. package/dist/b2b-core-components/icons/b2b_icon-browser-psm.svg +3 -0
  34. package/dist/b2b-core-components/icons/b2b_icon-burger.svg +5 -0
  35. package/dist/b2b-core-components/icons/b2b_icon-bus.svg +5 -0
  36. package/dist/b2b-core-components/icons/b2b_icon-callback.svg +6 -0
  37. package/dist/b2b-core-components/icons/b2b_icon-camera.svg +4 -0
  38. package/dist/b2b-core-components/icons/b2b_icon-cashback.svg +5 -0
  39. package/dist/b2b-core-components/icons/b2b_icon-cashew-nut.svg +3 -0
  40. package/dist/b2b-core-components/icons/b2b_icon-catalogue.svg +4 -0
  41. package/dist/b2b-core-components/icons/b2b_icon-categories.svg +3 -0
  42. package/dist/b2b-core-components/icons/b2b_icon-celery.svg +3 -0
  43. package/dist/b2b-core-components/icons/b2b_icon-certificate.svg +6 -0
  44. package/dist/b2b-core-components/icons/b2b_icon-chair.svg +3 -0
  45. package/dist/b2b-core-components/icons/b2b_icon-chat.svg +5 -0
  46. package/dist/b2b-core-components/icons/b2b_icon-check-bold.svg +1 -0
  47. package/dist/b2b-core-components/icons/b2b_icon-check.svg +3 -0
  48. package/dist/b2b-core-components/icons/b2b_icon-chicken.svg +3 -0
  49. package/dist/b2b-core-components/icons/b2b_icon-city.svg +9 -0
  50. package/dist/b2b-core-components/icons/b2b_icon-clear.svg +3 -0
  51. package/dist/b2b-core-components/icons/b2b_icon-close-bold.svg +1 -0
  52. package/dist/b2b-core-components/icons/b2b_icon-close.svg +3 -0
  53. package/dist/b2b-core-components/icons/b2b_icon-code-management.svg +7 -0
  54. package/dist/b2b-core-components/icons/b2b_icon-contact-mail.svg +3 -0
  55. package/dist/b2b-core-components/icons/b2b_icon-copy.svg +3 -0
  56. package/dist/b2b-core-components/icons/b2b_icon-cow.svg +3 -0
  57. package/dist/b2b-core-components/icons/b2b_icon-crab.svg +3 -0
  58. package/dist/b2b-core-components/icons/b2b_icon-critique.svg +5 -0
  59. package/dist/b2b-core-components/icons/b2b_icon-curtain.svg +3 -0
  60. package/dist/b2b-core-components/icons/b2b_icon-cut-out.svg +6 -0
  61. package/dist/b2b-core-components/icons/b2b_icon-dashboard.svg +3 -0
  62. package/dist/b2b-core-components/icons/b2b_icon-deer.svg +3 -0
  63. package/dist/b2b-core-components/icons/b2b_icon-delete.svg +6 -0
  64. package/dist/b2b-core-components/icons/b2b_icon-delivery-24h.svg +4 -0
  65. package/dist/b2b-core-components/icons/b2b_icon-delivery-desired-date-selection.svg +4 -0
  66. package/dist/b2b-core-components/icons/b2b_icon-delivery-desired-date.svg +3 -0
  67. package/dist/b2b-core-components/icons/b2b_icon-delivery-express.svg +6 -0
  68. package/dist/b2b-core-components/icons/b2b_icon-delivery-flat.svg +4 -0
  69. package/dist/b2b-core-components/icons/b2b_icon-delivery-on-hangers.svg +3 -0
  70. package/dist/b2b-core-components/icons/b2b_icon-delivery-preferred-place.svg +6 -0
  71. package/dist/b2b-core-components/icons/b2b_icon-desktop-phone-ads-click.svg +5 -0
  72. package/dist/b2b-core-components/icons/b2b_icon-desktop-phone-ads.svg +6 -0
  73. package/dist/b2b-core-components/icons/b2b_icon-desktop-phone.svg +4 -0
  74. package/dist/b2b-core-components/icons/b2b_icon-desktop.svg +3 -0
  75. package/dist/b2b-core-components/icons/b2b_icon-devices-monitor-laptop-tablet.svg +4 -0
  76. package/dist/b2b-core-components/icons/b2b_icon-dish-feature-lactose-free.svg +3 -0
  77. package/dist/b2b-core-components/icons/b2b_icon-dislike.svg +3 -0
  78. package/dist/b2b-core-components/icons/b2b_icon-disposal.svg +3 -0
  79. package/dist/b2b-core-components/icons/b2b_icon-document-sign.svg +3 -0
  80. package/dist/b2b-core-components/icons/b2b_icon-downloads.svg +3 -0
  81. package/dist/b2b-core-components/icons/b2b_icon-dress.svg +3 -0
  82. package/dist/b2b-core-components/icons/b2b_icon-dungarees.svg +4 -0
  83. package/dist/b2b-core-components/icons/b2b_icon-duration.svg +3 -0
  84. package/dist/b2b-core-components/icons/b2b_icon-e-invoice.svg +3 -0
  85. package/dist/b2b-core-components/icons/b2b_icon-edit-pad.svg +3 -0
  86. package/dist/b2b-core-components/icons/b2b_icon-edit.svg +3 -0
  87. package/dist/b2b-core-components/icons/b2b_icon-egg.svg +3 -0
  88. package/dist/b2b-core-components/icons/b2b_icon-ellipsis.svg +3 -0
  89. package/dist/b2b-core-components/icons/b2b_icon-email-verification-confirmed-safe.svg +3 -0
  90. package/dist/b2b-core-components/icons/b2b_icon-email-verification-confirmed.svg +3 -0
  91. package/dist/b2b-core-components/icons/b2b_icon-email-verification-sent-safe.svg +3 -0
  92. package/dist/b2b-core-components/icons/b2b_icon-email-verification-sent.svg +3 -0
  93. package/dist/b2b-core-components/icons/b2b_icon-empty-hint.svg +3 -0
  94. package/dist/b2b-core-components/icons/b2b_icon-end-to-end.svg +3 -0
  95. package/dist/b2b-core-components/icons/b2b_icon-error-article-image.svg +4 -0
  96. package/dist/b2b-core-components/icons/b2b_icon-error.svg +3 -0
  97. package/dist/b2b-core-components/icons/b2b_icon-euro.svg +3 -0
  98. package/dist/b2b-core-components/icons/b2b_icon-event.svg +15 -0
  99. package/dist/b2b-core-components/icons/b2b_icon-events.svg +15 -0
  100. package/dist/b2b-core-components/icons/b2b_icon-expand.svg +1 -0
  101. package/dist/b2b-core-components/icons/b2b_icon-faq.svg +5 -0
  102. package/dist/b2b-core-components/icons/b2b_icon-feedback.svg +5 -0
  103. package/dist/b2b-core-components/icons/b2b_icon-filter.svg +3 -0
  104. package/dist/b2b-core-components/icons/b2b_icon-fish.svg +3 -0
  105. package/dist/b2b-core-components/icons/b2b_icon-fitness.svg +5 -0
  106. package/dist/b2b-core-components/icons/b2b_icon-flag-chequered.svg +7 -0
  107. package/dist/b2b-core-components/icons/b2b_icon-flexible-work.svg +9 -0
  108. package/dist/b2b-core-components/icons/b2b_icon-flip.svg +4 -0
  109. package/dist/b2b-core-components/icons/b2b_icon-food-processor.svg +4 -0
  110. package/dist/b2b-core-components/icons/b2b_icon-fullscreen.svg +4 -0
  111. package/dist/b2b-core-components/icons/b2b_icon-gallery-view.svg +3 -0
  112. package/dist/b2b-core-components/icons/b2b_icon-gamepad.svg +8 -0
  113. package/dist/b2b-core-components/icons/b2b_icon-garlic.svg +3 -0
  114. package/dist/b2b-core-components/icons/b2b_icon-gender-intersex.svg +3 -0
  115. package/dist/b2b-core-components/icons/b2b_icon-globe.svg +4 -0
  116. package/dist/b2b-core-components/icons/b2b_icon-gluten.svg +3 -0
  117. package/dist/b2b-core-components/icons/b2b_icon-glutenfree.svg +3 -0
  118. package/dist/b2b-core-components/icons/b2b_icon-handshake.svg +3 -0
  119. package/dist/b2b-core-components/icons/b2b_icon-hashtag.svg +3 -0
  120. package/dist/b2b-core-components/icons/b2b_icon-hazelnut.svg +3 -0
  121. package/dist/b2b-core-components/icons/b2b_icon-hide.svg +3 -0
  122. package/dist/b2b-core-components/icons/b2b_icon-high-heels.svg +3 -0
  123. package/dist/b2b-core-components/icons/b2b_icon-home.svg +3 -0
  124. package/dist/b2b-core-components/icons/b2b_icon-info-small.svg +3 -0
  125. package/dist/b2b-core-components/icons/b2b_icon-info.svg +5 -0
  126. package/dist/b2b-core-components/icons/b2b_icon-inplace-zoom-reverse.svg +6 -0
  127. package/dist/b2b-core-components/icons/b2b_icon-inplace-zoom.svg +3 -0
  128. package/dist/b2b-core-components/icons/b2b_icon-insurance.svg +4 -0
  129. package/dist/b2b-core-components/icons/b2b_icon-kamut.svg +3 -0
  130. package/dist/b2b-core-components/icons/b2b_icon-laptop-os.svg +5 -0
  131. package/dist/b2b-core-components/icons/b2b_icon-laptop.svg +3 -0
  132. package/dist/b2b-core-components/icons/b2b_icon-leaving-page.svg +4 -0
  133. package/dist/b2b-core-components/icons/b2b_icon-light-bulb.svg +3 -0
  134. package/dist/b2b-core-components/icons/b2b_icon-like-fingers.svg +3 -0
  135. package/dist/b2b-core-components/icons/b2b_icon-like-product.svg +4 -0
  136. package/dist/b2b-core-components/icons/b2b_icon-like.svg +3 -0
  137. package/dist/b2b-core-components/icons/b2b_icon-line-graph.svg +3 -0
  138. package/dist/b2b-core-components/icons/b2b_icon-list-view.svg +3 -0
  139. package/dist/b2b-core-components/icons/b2b_icon-location.svg +4 -0
  140. package/dist/b2b-core-components/icons/b2b_icon-lupine.svg +3 -0
  141. package/dist/b2b-core-components/icons/b2b_icon-macadamia.svg +3 -0
  142. package/dist/b2b-core-components/icons/b2b_icon-material-samples.svg +4 -0
  143. package/dist/b2b-core-components/icons/b2b_icon-measurement.svg +4 -0
  144. package/dist/b2b-core-components/icons/b2b_icon-megaphone.svg +6 -0
  145. package/dist/b2b-core-components/icons/b2b_icon-menu.svg +1 -0
  146. package/dist/b2b-core-components/icons/b2b_icon-mic.svg +4 -0
  147. package/dist/b2b-core-components/icons/b2b_icon-milk.svg +3 -0
  148. package/dist/b2b-core-components/icons/b2b_icon-minus.svg +3 -0
  149. package/dist/b2b-core-components/icons/b2b_icon-module-operations.svg +1 -0
  150. package/dist/b2b-core-components/icons/b2b_icon-money-coins.svg +3 -0
  151. package/dist/b2b-core-components/icons/b2b_icon-money-document.svg +3 -0
  152. package/dist/b2b-core-components/icons/b2b_icon-money-plus.svg +3 -0
  153. package/dist/b2b-core-components/icons/b2b_icon-money-stack.svg +3 -0
  154. package/dist/b2b-core-components/icons/b2b_icon-money.svg +3 -0
  155. package/dist/b2b-core-components/icons/b2b_icon-move.svg +3 -0
  156. package/dist/b2b-core-components/icons/b2b_icon-mustard.svg +3 -0
  157. package/dist/b2b-core-components/icons/b2b_icon-nav.svg +3 -0
  158. package/dist/b2b-core-components/icons/b2b_icon-new.svg +6 -0
  159. package/dist/b2b-core-components/icons/b2b_icon-newsletter-sign-up.svg +3 -0
  160. package/dist/b2b-core-components/icons/b2b_icon-notification.svg +3 -0
  161. package/dist/b2b-core-components/icons/b2b_icon-nuts.svg +3 -0
  162. package/dist/b2b-core-components/icons/b2b_icon-oat.svg +3 -0
  163. package/dist/b2b-core-components/icons/b2b_icon-order-cancelled.svg +3 -0
  164. package/dist/b2b-core-components/icons/b2b_icon-order-delivered.svg +3 -0
  165. package/dist/b2b-core-components/icons/b2b_icon-order-form.svg +6 -0
  166. package/dist/b2b-core-components/icons/b2b_icon-order-management.svg +4 -0
  167. package/dist/b2b-core-components/icons/b2b_icon-order-misdirected.svg +3 -0
  168. package/dist/b2b-core-components/icons/b2b_icon-order-on-road.svg +4 -0
  169. package/dist/b2b-core-components/icons/b2b_icon-order-packed.svg +4 -0
  170. package/dist/b2b-core-components/icons/b2b_icon-order-payment.svg +3 -0
  171. package/dist/b2b-core-components/icons/b2b_icon-order-received.svg +3 -0
  172. package/dist/b2b-core-components/icons/b2b_icon-order-return.svg +4 -0
  173. package/dist/b2b-core-components/icons/b2b_icon-order-shipped.svg +3 -0
  174. package/dist/b2b-core-components/icons/b2b_icon-order-state-unknown.svg +3 -0
  175. package/dist/b2b-core-components/icons/b2b_icon-order-stored.svg +3 -0
  176. package/dist/b2b-core-components/icons/b2b_icon-order.svg +3 -0
  177. package/dist/b2b-core-components/icons/b2b_icon-otto-app.svg +4 -0
  178. package/dist/b2b-core-components/icons/b2b_icon-otto-campus.svg +16 -0
  179. package/dist/b2b-core-components/icons/b2b_icon-otto-company.svg +19 -0
  180. package/dist/b2b-core-components/icons/b2b_icon-otto-laptop.svg +4 -0
  181. package/dist/b2b-core-components/icons/b2b_icon-otto-logo.svg +3 -0
  182. package/dist/b2b-core-components/icons/b2b_icon-otto-up-points.svg +3 -0
  183. package/dist/b2b-core-components/icons/b2b_icon-otto-up.svg +3 -0
  184. package/dist/b2b-core-components/icons/b2b_icon-paper-plane.svg +3 -0
  185. package/dist/b2b-core-components/icons/b2b_icon-pause.svg +3 -0
  186. package/dist/b2b-core-components/icons/b2b_icon-payment-credit-card.svg +7 -0
  187. package/dist/b2b-core-components/icons/b2b_icon-payment-invoice.svg +3 -0
  188. package/dist/b2b-core-components/icons/b2b_icon-payment-pause.svg +9 -0
  189. package/dist/b2b-core-components/icons/b2b_icon-payment-plan-protection.svg +3 -0
  190. package/dist/b2b-core-components/icons/b2b_icon-payment-plan.svg +3 -0
  191. package/dist/b2b-core-components/icons/b2b_icon-pdf.svg +6 -0
  192. package/dist/b2b-core-components/icons/b2b_icon-peanut.svg +3 -0
  193. package/dist/b2b-core-components/icons/b2b_icon-pecan-nut.svg +3 -0
  194. package/dist/b2b-core-components/icons/b2b_icon-pending.svg +3 -0
  195. package/dist/b2b-core-components/icons/b2b_icon-person-access.svg +5 -0
  196. package/dist/b2b-core-components/icons/b2b_icon-person-callcenter.svg +3 -0
  197. package/dist/b2b-core-components/icons/b2b_icon-person-check.svg +5 -0
  198. package/dist/b2b-core-components/icons/b2b_icon-person-colleagues.svg +6 -0
  199. package/dist/b2b-core-components/icons/b2b_icon-person-community.svg +9 -0
  200. package/dist/b2b-core-components/icons/b2b_icon-person-development.svg +9 -0
  201. package/dist/b2b-core-components/icons/b2b_icon-person-female.svg +3 -0
  202. package/dist/b2b-core-components/icons/b2b_icon-person-info.svg +6 -0
  203. package/dist/b2b-core-components/icons/b2b_icon-person-male.svg +3 -0
  204. package/dist/b2b-core-components/icons/b2b_icon-person-rating.svg +5 -0
  205. package/dist/b2b-core-components/icons/b2b_icon-person-support.svg +4 -0
  206. package/dist/b2b-core-components/icons/b2b_icon-person-switch.svg +3 -0
  207. package/dist/b2b-core-components/icons/b2b_icon-person-workshop.svg +8 -0
  208. package/dist/b2b-core-components/icons/b2b_icon-person.svg +3 -0
  209. package/dist/b2b-core-components/icons/b2b_icon-phone-permission.svg +9 -0
  210. package/dist/b2b-core-components/icons/b2b_icon-phone.svg +5 -0
  211. package/dist/b2b-core-components/icons/b2b_icon-pig.svg +3 -0
  212. package/dist/b2b-core-components/icons/b2b_icon-pin.svg +3 -0
  213. package/dist/b2b-core-components/icons/b2b_icon-pinch-gesture.svg +5 -0
  214. package/dist/b2b-core-components/icons/b2b_icon-pinch.svg +3 -0
  215. package/dist/b2b-core-components/icons/b2b_icon-pistachio.svg +3 -0
  216. package/dist/b2b-core-components/icons/b2b_icon-plant.svg +3 -0
  217. package/dist/b2b-core-components/icons/b2b_icon-play-1.svg +3 -0
  218. package/dist/b2b-core-components/icons/b2b_icon-play.svg +3 -0
  219. package/dist/b2b-core-components/icons/b2b_icon-plus.svg +3 -0
  220. package/dist/b2b-core-components/icons/b2b_icon-price-alert.svg +6 -0
  221. package/dist/b2b-core-components/icons/b2b_icon-price-tag.svg +3 -0
  222. package/dist/b2b-core-components/icons/b2b_icon-print.svg +3 -0
  223. package/dist/b2b-core-components/icons/b2b_icon-puzzle.svg +4 -0
  224. package/dist/b2b-core-components/icons/b2b_icon-qr-code.svg +3 -0
  225. package/dist/b2b-core-components/icons/b2b_icon-question-hint.svg +3 -0
  226. package/dist/b2b-core-components/icons/b2b_icon-question.svg +3 -0
  227. package/dist/b2b-core-components/icons/b2b_icon-rating-empty.svg +3 -0
  228. package/dist/b2b-core-components/icons/b2b_icon-rating-filled.svg +3 -0
  229. package/dist/b2b-core-components/icons/b2b_icon-rating-half.svg +3 -0
  230. package/dist/b2b-core-components/icons/b2b_icon-rating-order.svg +4 -0
  231. package/dist/b2b-core-components/icons/b2b_icon-rating-payment.svg +3 -0
  232. package/dist/b2b-core-components/icons/b2b_icon-remote-work.svg +4 -0
  233. package/dist/b2b-core-components/icons/b2b_icon-repair.svg +3 -0
  234. package/dist/b2b-core-components/icons/b2b_icon-reply.svg +3 -0
  235. package/dist/b2b-core-components/icons/b2b_icon-retirement-provision.svg +3 -0
  236. package/dist/b2b-core-components/icons/b2b_icon-rocket.svg +5 -0
  237. package/dist/b2b-core-components/icons/b2b_icon-rye.svg +3 -0
  238. package/dist/b2b-core-components/icons/b2b_icon-sabbatical.svg +19 -0
  239. package/dist/b2b-core-components/icons/b2b_icon-sale.svg +3 -0
  240. package/dist/b2b-core-components/icons/b2b_icon-save.svg +4 -0
  241. package/dist/b2b-core-components/icons/b2b_icon-sea.svg +4 -0
  242. package/dist/b2b-core-components/icons/b2b_icon-search-enter.svg +3 -0
  243. package/dist/b2b-core-components/icons/b2b_icon-search.svg +3 -0
  244. package/dist/b2b-core-components/icons/b2b_icon-seo.svg +4 -0
  245. package/dist/b2b-core-components/icons/b2b_icon-service-info.svg +5 -0
  246. package/dist/b2b-core-components/icons/b2b_icon-sesame.svg +3 -0
  247. package/dist/b2b-core-components/icons/b2b_icon-settings.svg +4 -0
  248. package/dist/b2b-core-components/icons/b2b_icon-share-ios.svg +4 -0
  249. package/dist/b2b-core-components/icons/b2b_icon-share.svg +3 -0
  250. package/dist/b2b-core-components/icons/b2b_icon-sheep.svg +3 -0
  251. package/dist/b2b-core-components/icons/b2b_icon-shell.svg +3 -0
  252. package/dist/b2b-core-components/icons/b2b_icon-shirt.svg +3 -0
  253. package/dist/b2b-core-components/icons/b2b_icon-shopping-cart-euro.svg +3 -0
  254. package/dist/b2b-core-components/icons/b2b_icon-shopping-cart.svg +3 -0
  255. package/dist/b2b-core-components/icons/b2b_icon-show.svg +3 -0
  256. package/dist/b2b-core-components/icons/b2b_icon-smiley-angry.svg +3 -0
  257. package/dist/b2b-core-components/icons/b2b_icon-smiley-happy.svg +3 -0
  258. package/dist/b2b-core-components/icons/b2b_icon-smiley-negative.svg +6 -0
  259. package/dist/b2b-core-components/icons/b2b_icon-smiley-neutral.svg +6 -0
  260. package/dist/b2b-core-components/icons/b2b_icon-smiley-positive.svg +6 -0
  261. package/dist/b2b-core-components/icons/b2b_icon-sms-info.svg +7 -0
  262. package/dist/b2b-core-components/icons/b2b_icon-sneaker.svg +3 -0
  263. package/dist/b2b-core-components/icons/b2b_icon-sort-ascending.svg +3 -0
  264. package/dist/b2b-core-components/icons/b2b_icon-sort-descending.svg +3 -0
  265. package/dist/b2b-core-components/icons/b2b_icon-sort.svg +7 -0
  266. package/dist/b2b-core-components/icons/b2b_icon-soy.svg +3 -0
  267. package/dist/b2b-core-components/icons/b2b_icon-spelt.svg +3 -0
  268. package/dist/b2b-core-components/icons/b2b_icon-stationary.svg +4 -0
  269. package/dist/b2b-core-components/icons/b2b_icon-studies.svg +3 -0
  270. package/dist/b2b-core-components/icons/b2b_icon-success.svg +4 -0
  271. package/dist/b2b-core-components/icons/b2b_icon-sustainable-delivery.svg +3 -0
  272. package/dist/b2b-core-components/icons/b2b_icon-sustainable-energy-efficient.svg +3 -0
  273. package/dist/b2b-core-components/icons/b2b_icon-sustainable-production.svg +3 -0
  274. package/dist/b2b-core-components/icons/b2b_icon-sustainable-recycling.svg +3 -0
  275. package/dist/b2b-core-components/icons/b2b_icon-sustainable-resource.svg +3 -0
  276. package/dist/b2b-core-components/icons/b2b_icon-swipe-gesture.svg +3 -0
  277. package/dist/b2b-core-components/icons/b2b_icon-sync-device.svg +6 -0
  278. package/dist/b2b-core-components/icons/b2b_icon-t-shirt.svg +3 -0
  279. package/dist/b2b-core-components/icons/b2b_icon-tablet.svg +4 -0
  280. package/dist/b2b-core-components/icons/b2b_icon-tableware.svg +6 -0
  281. package/dist/b2b-core-components/icons/b2b_icon-target-group.svg +3 -0
  282. package/dist/b2b-core-components/icons/b2b_icon-teddy.svg +5 -0
  283. package/dist/b2b-core-components/icons/b2b_icon-test-result.svg +4 -0
  284. package/dist/b2b-core-components/icons/b2b_icon-town.svg +3 -0
  285. package/dist/b2b-core-components/icons/b2b_icon-trash.svg +1 -0
  286. package/dist/b2b-core-components/icons/b2b_icon-trend-down.svg +3 -0
  287. package/dist/b2b-core-components/icons/b2b_icon-trend-up.svg +3 -0
  288. package/dist/b2b-core-components/icons/b2b_icon-trousers.svg +4 -0
  289. package/dist/b2b-core-components/icons/b2b_icon-trusted.svg +3 -0
  290. package/dist/b2b-core-components/icons/b2b_icon-unpin.svg +3 -0
  291. package/dist/b2b-core-components/icons/b2b_icon-upload.svg +3 -0
  292. package/dist/b2b-core-components/icons/b2b_icon-user-management.svg +1 -0
  293. package/dist/b2b-core-components/icons/b2b_icon-vacation.svg +3 -0
  294. package/dist/b2b-core-components/icons/b2b_icon-variant-content.svg +3 -0
  295. package/dist/b2b-core-components/icons/b2b_icon-vegan.svg +3 -0
  296. package/dist/b2b-core-components/icons/b2b_icon-vegetarian.svg +3 -0
  297. package/dist/b2b-core-components/icons/b2b_icon-viewtoggle-tiles.svg +1 -0
  298. package/dist/b2b-core-components/icons/b2b_icon-village.svg +10 -0
  299. package/dist/b2b-core-components/icons/b2b_icon-volume-off.svg +3 -0
  300. package/dist/b2b-core-components/icons/b2b_icon-volume-on.svg +3 -0
  301. package/dist/b2b-core-components/icons/b2b_icon-voucher.svg +3 -0
  302. package/dist/b2b-core-components/icons/b2b_icon-walnut.svg +3 -0
  303. package/dist/b2b-core-components/icons/b2b_icon-warning.svg +5 -0
  304. package/dist/b2b-core-components/icons/b2b_icon-warranty.svg +4 -0
  305. package/dist/b2b-core-components/icons/b2b_icon-washing-machine.svg +7 -0
  306. package/dist/b2b-core-components/icons/b2b_icon-whatsapp.svg +4 -0
  307. package/dist/b2b-core-components/icons/b2b_icon-wheat.svg +3 -0
  308. package/dist/b2b-core-components/icons/b2b_icon-wifi.svg +3 -0
  309. package/dist/b2b-core-components/icons/b2b_icon-wishlist-active.svg +3 -0
  310. package/dist/b2b-core-components/icons/b2b_icon-wishlist.svg +3 -0
  311. package/dist/b2b-core-components/icons/b2b_icon-work-life.svg +6 -0
  312. package/dist/b2b-core-components/icons/b2b_icon-workshop.svg +7 -0
  313. package/dist/b2b-core-components/icons/b2b_icon-zoom-in.svg +4 -0
  314. package/dist/b2b-core-components/icons/b2b_icon-zoom-out.svg +4 -0
  315. package/dist/b2b-core-components/index.esm.js +0 -0
  316. package/dist/b2b-core-components/p-00aee514.entry.js +1 -0
  317. package/dist/b2b-core-components/p-01c930e6.entry.js +1 -0
  318. package/dist/b2b-core-components/p-0a686eb7.entry.js +1 -0
  319. package/dist/b2b-core-components/p-15e7db21.entry.js +1 -0
  320. package/dist/b2b-core-components/p-1631046e.entry.js +1 -0
  321. package/dist/b2b-core-components/p-18e2cb16.entry.js +1 -0
  322. package/dist/b2b-core-components/p-2768d91f.entry.js +1 -0
  323. package/dist/b2b-core-components/p-27e6330d.entry.js +1 -0
  324. package/dist/b2b-core-components/p-2b66f8d1.entry.js +1 -0
  325. package/dist/b2b-core-components/p-389defa1.entry.js +1 -0
  326. package/dist/b2b-core-components/p-401ec740.entry.js +1 -0
  327. package/dist/b2b-core-components/p-50c5299b.entry.js +1 -0
  328. package/dist/b2b-core-components/p-599b5bb1.entry.js +1 -0
  329. package/dist/b2b-core-components/p-5f8076a5.entry.js +1 -0
  330. package/dist/b2b-core-components/p-64a24de2.entry.js +1 -0
  331. package/dist/b2b-core-components/p-6a273cbb.entry.js +1 -0
  332. package/dist/b2b-core-components/p-7896af2b.entry.js +1 -0
  333. package/dist/b2b-core-components/p-80eca7db.entry.js +1 -0
  334. package/dist/b2b-core-components/p-889f1f58.entry.js +1 -0
  335. package/dist/b2b-core-components/p-8d5e14b1.js +1 -0
  336. package/dist/b2b-core-components/p-9a5cb4ae.entry.js +1 -0
  337. package/dist/b2b-core-components/p-9e3ba717.entry.js +1 -0
  338. package/dist/b2b-core-components/p-a5462c02.entry.js +1 -0
  339. package/dist/b2b-core-components/p-a611338a.entry.js +1 -0
  340. package/dist/b2b-core-components/p-a8d35abb.entry.js +1 -0
  341. package/dist/b2b-core-components/p-aae428c1.entry.js +1 -0
  342. package/dist/b2b-core-components/p-b77d7b88.entry.js +1 -0
  343. package/dist/b2b-core-components/p-bd501484.entry.js +1 -0
  344. package/dist/b2b-core-components/p-ce6ba2bd.entry.js +1 -0
  345. package/dist/b2b-core-components/p-cfc0c9b5.entry.js +1 -0
  346. package/dist/b2b-core-components/p-d1c69d72.js +2 -0
  347. package/dist/b2b-core-components/p-d377f47a.entry.js +1 -0
  348. package/dist/b2b-core-components/p-d56ea84b.entry.js +1 -0
  349. package/dist/b2b-core-components/p-d947bb64.entry.js +1 -0
  350. package/dist/b2b-core-components/p-dcc7125f.entry.js +1 -0
  351. package/dist/b2b-core-components/p-e4345be2.entry.js +1 -0
  352. package/dist/b2b-core-components/p-e4eebaf5.entry.js +1 -0
  353. package/dist/b2b-core-components/p-faad6997.entry.js +1 -0
  354. package/dist/cjs/b2b-alert.cjs.entry.js +52 -0
  355. package/dist/cjs/b2b-anchor.cjs.entry.js +26 -0
  356. package/dist/cjs/b2b-button_2.cjs.entry.js +98 -0
  357. package/dist/cjs/b2b-checkbox-group.cjs.entry.js +90 -0
  358. package/dist/cjs/b2b-checkbox.cjs.entry.js +74 -0
  359. package/dist/cjs/b2b-core-components.cjs.js +26 -0
  360. package/dist/cjs/b2b-dropdown.cjs.entry.js +68 -0
  361. package/dist/cjs/b2b-grid-col.cjs.entry.js +38 -0
  362. package/dist/cjs/b2b-grid-row.cjs.entry.js +29 -0
  363. package/dist/cjs/b2b-grid.cjs.entry.js +21 -0
  364. package/dist/cjs/b2b-headline.cjs.entry.js +35 -0
  365. package/dist/cjs/b2b-icon.cjs.entry.js +405 -0
  366. package/dist/cjs/b2b-input-group_2.cjs.entry.js +235 -0
  367. package/dist/cjs/b2b-input-label.cjs.entry.js +26 -0
  368. package/dist/cjs/b2b-input_2.cjs.entry.js +117 -0
  369. package/dist/cjs/b2b-label.cjs.entry.js +23 -0
  370. package/dist/cjs/b2b-modal.cjs.entry.js +224 -0
  371. package/dist/cjs/b2b-pagination.cjs.entry.js +122 -0
  372. package/dist/cjs/b2b-paragraph.cjs.entry.js +27 -0
  373. package/dist/cjs/b2b-radio-button.cjs.entry.js +77 -0
  374. package/dist/cjs/b2b-radio-group.cjs.entry.js +93 -0
  375. package/dist/cjs/b2b-required-separator.cjs.entry.js +20 -0
  376. package/dist/cjs/b2b-scrollable-container.cjs.entry.js +20 -0
  377. package/dist/cjs/b2b-search.cjs.entry.js +31 -0
  378. package/dist/cjs/b2b-separator.cjs.entry.js +22 -0
  379. package/dist/cjs/b2b-tab-group.cjs.entry.js +134 -0
  380. package/dist/cjs/b2b-tab-panel.cjs.entry.js +21 -0
  381. package/dist/cjs/b2b-tab.cjs.entry.js +43 -0
  382. package/dist/cjs/b2b-table-cell.cjs.entry.js +33 -0
  383. package/dist/cjs/b2b-table-header.cjs.entry.js +74 -0
  384. package/dist/cjs/b2b-table-row.cjs.entry.js +25 -0
  385. package/dist/cjs/b2b-table-rowgroup.cjs.entry.js +33 -0
  386. package/dist/cjs/b2b-table.cjs.entry.js +59 -0
  387. package/dist/cjs/b2b-textarea.cjs.entry.js +65 -0
  388. package/dist/cjs/b2b-toggle-button.cjs.entry.js +59 -0
  389. package/dist/cjs/b2b-toggle-group.cjs.entry.js +60 -0
  390. package/dist/cjs/b2b-tooltip.cjs.entry.js +79 -0
  391. package/dist/cjs/index-f680aee0.js +2015 -0
  392. package/dist/cjs/index.cjs.js +2 -0
  393. package/dist/cjs/loader.cjs.js +22 -0
  394. package/dist/cjs/types-9f580c92.js +26 -0
  395. package/dist/collection/collection-manifest.json +50 -0
  396. package/dist/collection/components/alert/alert.css +274 -0
  397. package/dist/collection/components/alert/alert.js +167 -0
  398. package/dist/collection/components/alert/alert.stories.js +83 -0
  399. package/dist/collection/components/anchor/anchor.css +232 -0
  400. package/dist/collection/components/anchor/anchor.js +102 -0
  401. package/dist/collection/components/anchor/anchor.stories.js +44 -0
  402. package/dist/collection/components/button/button.css +375 -0
  403. package/dist/collection/components/button/button.js +273 -0
  404. package/dist/collection/components/button/button.stories.js +88 -0
  405. package/dist/collection/components/checkbox/checkbox.css +299 -0
  406. package/dist/collection/components/checkbox/checkbox.js +294 -0
  407. package/dist/collection/components/checkbox/checkbox.stories.js +56 -0
  408. package/dist/collection/components/checkbox-group/checkbox-group.css +252 -0
  409. package/dist/collection/components/checkbox-group/checkbox-group.js +254 -0
  410. package/dist/collection/components/checkbox-group/checkbox-group.stories.js +57 -0
  411. package/dist/collection/components/dropdown/dropdown.css +284 -0
  412. package/dist/collection/components/dropdown/dropdown.js +248 -0
  413. package/dist/collection/components/dropdown/dropdown.stories.js +52 -0
  414. package/dist/collection/components/grid/column.js +71 -0
  415. package/dist/collection/components/grid/grid.css +5 -0
  416. package/dist/collection/components/grid/grid.js +44 -0
  417. package/dist/collection/components/grid/grid.stories.js +234 -0
  418. package/dist/collection/components/grid/row.js +99 -0
  419. package/dist/collection/components/headline/headline.css +253 -0
  420. package/dist/collection/components/headline/headline.js +98 -0
  421. package/dist/collection/components/headline/headline.stories.js +39 -0
  422. package/dist/collection/components/icon/icon.css +250 -0
  423. package/dist/collection/components/icon/icon.js +130 -0
  424. package/dist/collection/components/icon/icon.stories.js +76 -0
  425. package/dist/collection/components/icon/icons/b2b_icon-360-degree.svg +6 -0
  426. package/dist/collection/components/icon/icons/b2b_icon-advice.svg +7 -0
  427. package/dist/collection/components/icon/icons/b2b_icon-allergen-sulfur-dioxide-sulfite.svg +3 -0
  428. package/dist/collection/components/icon/icons/b2b_icon-almond.svg +3 -0
  429. package/dist/collection/components/icon/icons/b2b_icon-archive.svg +3 -0
  430. package/dist/collection/components/icon/icons/b2b_icon-armchair.svg +3 -0
  431. package/dist/collection/components/icon/icons/b2b_icon-arrow-down.svg +3 -0
  432. package/dist/collection/components/icon/icons/b2b_icon-arrow-graph.svg +3 -0
  433. package/dist/collection/components/icon/icons/b2b_icon-arrow-left.svg +3 -0
  434. package/dist/collection/components/icon/icons/b2b_icon-arrow-right.svg +3 -0
  435. package/dist/collection/components/icon/icons/b2b_icon-arrow-up.svg +3 -0
  436. package/dist/collection/components/icon/icons/b2b_icon-assembly.svg +4 -0
  437. package/dist/collection/components/icon/icons/b2b_icon-assortment.svg +3 -0
  438. package/dist/collection/components/icon/icons/b2b_icon-attachment.svg +3 -0
  439. package/dist/collection/components/icon/icons/b2b_icon-augmented-reality.svg +9 -0
  440. package/dist/collection/components/icon/icons/b2b_icon-autonomous-team.svg +4 -0
  441. package/dist/collection/components/icon/icons/b2b_icon-bank-details.svg +3 -0
  442. package/dist/collection/components/icon/icons/b2b_icon-bar-graph-ascending.svg +5 -0
  443. package/dist/collection/components/icon/icons/b2b_icon-bar-graph-axis.svg +6 -0
  444. package/dist/collection/components/icon/icons/b2b_icon-barley.svg +3 -0
  445. package/dist/collection/components/icon/icons/b2b_icon-basket-sale.svg +3 -0
  446. package/dist/collection/components/icon/icons/b2b_icon-basket.svg +4 -0
  447. package/dist/collection/components/icon/icons/b2b_icon-basketball.svg +3 -0
  448. package/dist/collection/components/icon/icons/b2b_icon-bikini.svg +4 -0
  449. package/dist/collection/components/icon/icons/b2b_icon-blogs.svg +6 -0
  450. package/dist/collection/components/icon/icons/b2b_icon-brandshop.svg +8 -0
  451. package/dist/collection/components/icon/icons/b2b_icon-brazil-nut.svg +3 -0
  452. package/dist/collection/components/icon/icons/b2b_icon-browser-click.svg +7 -0
  453. package/dist/collection/components/icon/icons/b2b_icon-browser-content.svg +9 -0
  454. package/dist/collection/components/icon/icons/b2b_icon-browser-psm.svg +3 -0
  455. package/dist/collection/components/icon/icons/b2b_icon-burger.svg +5 -0
  456. package/dist/collection/components/icon/icons/b2b_icon-bus.svg +5 -0
  457. package/dist/collection/components/icon/icons/b2b_icon-callback.svg +6 -0
  458. package/dist/collection/components/icon/icons/b2b_icon-camera.svg +4 -0
  459. package/dist/collection/components/icon/icons/b2b_icon-cashback.svg +5 -0
  460. package/dist/collection/components/icon/icons/b2b_icon-cashew-nut.svg +3 -0
  461. package/dist/collection/components/icon/icons/b2b_icon-catalogue.svg +4 -0
  462. package/dist/collection/components/icon/icons/b2b_icon-categories.svg +3 -0
  463. package/dist/collection/components/icon/icons/b2b_icon-celery.svg +3 -0
  464. package/dist/collection/components/icon/icons/b2b_icon-certificate.svg +6 -0
  465. package/dist/collection/components/icon/icons/b2b_icon-chair.svg +3 -0
  466. package/dist/collection/components/icon/icons/b2b_icon-chat.svg +5 -0
  467. package/dist/collection/components/icon/icons/b2b_icon-check-bold.svg +1 -0
  468. package/dist/collection/components/icon/icons/b2b_icon-check.svg +3 -0
  469. package/dist/collection/components/icon/icons/b2b_icon-chicken.svg +3 -0
  470. package/dist/collection/components/icon/icons/b2b_icon-city.svg +9 -0
  471. package/dist/collection/components/icon/icons/b2b_icon-clear.svg +3 -0
  472. package/dist/collection/components/icon/icons/b2b_icon-close-bold.svg +1 -0
  473. package/dist/collection/components/icon/icons/b2b_icon-close.svg +3 -0
  474. package/dist/collection/components/icon/icons/b2b_icon-code-management.svg +7 -0
  475. package/dist/collection/components/icon/icons/b2b_icon-contact-mail.svg +3 -0
  476. package/dist/collection/components/icon/icons/b2b_icon-copy.svg +3 -0
  477. package/dist/collection/components/icon/icons/b2b_icon-cow.svg +3 -0
  478. package/dist/collection/components/icon/icons/b2b_icon-crab.svg +3 -0
  479. package/dist/collection/components/icon/icons/b2b_icon-critique.svg +5 -0
  480. package/dist/collection/components/icon/icons/b2b_icon-curtain.svg +3 -0
  481. package/dist/collection/components/icon/icons/b2b_icon-cut-out.svg +6 -0
  482. package/dist/collection/components/icon/icons/b2b_icon-dashboard.svg +3 -0
  483. package/dist/collection/components/icon/icons/b2b_icon-deer.svg +3 -0
  484. package/dist/collection/components/icon/icons/b2b_icon-delete.svg +6 -0
  485. package/dist/collection/components/icon/icons/b2b_icon-delivery-24h.svg +4 -0
  486. package/dist/collection/components/icon/icons/b2b_icon-delivery-desired-date-selection.svg +4 -0
  487. package/dist/collection/components/icon/icons/b2b_icon-delivery-desired-date.svg +3 -0
  488. package/dist/collection/components/icon/icons/b2b_icon-delivery-express.svg +6 -0
  489. package/dist/collection/components/icon/icons/b2b_icon-delivery-flat.svg +4 -0
  490. package/dist/collection/components/icon/icons/b2b_icon-delivery-on-hangers.svg +3 -0
  491. package/dist/collection/components/icon/icons/b2b_icon-delivery-preferred-place.svg +6 -0
  492. package/dist/collection/components/icon/icons/b2b_icon-desktop-phone-ads-click.svg +5 -0
  493. package/dist/collection/components/icon/icons/b2b_icon-desktop-phone-ads.svg +6 -0
  494. package/dist/collection/components/icon/icons/b2b_icon-desktop-phone.svg +4 -0
  495. package/dist/collection/components/icon/icons/b2b_icon-desktop.svg +3 -0
  496. package/dist/collection/components/icon/icons/b2b_icon-devices-monitor-laptop-tablet.svg +4 -0
  497. package/dist/collection/components/icon/icons/b2b_icon-dish-feature-lactose-free.svg +3 -0
  498. package/dist/collection/components/icon/icons/b2b_icon-dislike.svg +3 -0
  499. package/dist/collection/components/icon/icons/b2b_icon-disposal.svg +3 -0
  500. package/dist/collection/components/icon/icons/b2b_icon-document-sign.svg +3 -0
  501. package/dist/collection/components/icon/icons/b2b_icon-downloads.svg +3 -0
  502. package/dist/collection/components/icon/icons/b2b_icon-dress.svg +3 -0
  503. package/dist/collection/components/icon/icons/b2b_icon-dungarees.svg +4 -0
  504. package/dist/collection/components/icon/icons/b2b_icon-duration.svg +3 -0
  505. package/dist/collection/components/icon/icons/b2b_icon-e-invoice.svg +3 -0
  506. package/dist/collection/components/icon/icons/b2b_icon-edit-pad.svg +3 -0
  507. package/dist/collection/components/icon/icons/b2b_icon-edit.svg +3 -0
  508. package/dist/collection/components/icon/icons/b2b_icon-egg.svg +3 -0
  509. package/dist/collection/components/icon/icons/b2b_icon-ellipsis.svg +3 -0
  510. package/dist/collection/components/icon/icons/b2b_icon-email-verification-confirmed-safe.svg +3 -0
  511. package/dist/collection/components/icon/icons/b2b_icon-email-verification-confirmed.svg +3 -0
  512. package/dist/collection/components/icon/icons/b2b_icon-email-verification-sent-safe.svg +3 -0
  513. package/dist/collection/components/icon/icons/b2b_icon-email-verification-sent.svg +3 -0
  514. package/dist/collection/components/icon/icons/b2b_icon-empty-hint.svg +3 -0
  515. package/dist/collection/components/icon/icons/b2b_icon-end-to-end.svg +3 -0
  516. package/dist/collection/components/icon/icons/b2b_icon-error-article-image.svg +4 -0
  517. package/dist/collection/components/icon/icons/b2b_icon-error.svg +3 -0
  518. package/dist/collection/components/icon/icons/b2b_icon-euro.svg +3 -0
  519. package/dist/collection/components/icon/icons/b2b_icon-event.svg +15 -0
  520. package/dist/collection/components/icon/icons/b2b_icon-events.svg +15 -0
  521. package/dist/collection/components/icon/icons/b2b_icon-expand.svg +1 -0
  522. package/dist/collection/components/icon/icons/b2b_icon-faq.svg +5 -0
  523. package/dist/collection/components/icon/icons/b2b_icon-feedback.svg +5 -0
  524. package/dist/collection/components/icon/icons/b2b_icon-filter.svg +3 -0
  525. package/dist/collection/components/icon/icons/b2b_icon-fish.svg +3 -0
  526. package/dist/collection/components/icon/icons/b2b_icon-fitness.svg +5 -0
  527. package/dist/collection/components/icon/icons/b2b_icon-flag-chequered.svg +7 -0
  528. package/dist/collection/components/icon/icons/b2b_icon-flexible-work.svg +9 -0
  529. package/dist/collection/components/icon/icons/b2b_icon-flip.svg +4 -0
  530. package/dist/collection/components/icon/icons/b2b_icon-food-processor.svg +4 -0
  531. package/dist/collection/components/icon/icons/b2b_icon-fullscreen.svg +4 -0
  532. package/dist/collection/components/icon/icons/b2b_icon-gallery-view.svg +3 -0
  533. package/dist/collection/components/icon/icons/b2b_icon-gamepad.svg +8 -0
  534. package/dist/collection/components/icon/icons/b2b_icon-garlic.svg +3 -0
  535. package/dist/collection/components/icon/icons/b2b_icon-gender-intersex.svg +3 -0
  536. package/dist/collection/components/icon/icons/b2b_icon-globe.svg +4 -0
  537. package/dist/collection/components/icon/icons/b2b_icon-gluten.svg +3 -0
  538. package/dist/collection/components/icon/icons/b2b_icon-glutenfree.svg +3 -0
  539. package/dist/collection/components/icon/icons/b2b_icon-handshake.svg +3 -0
  540. package/dist/collection/components/icon/icons/b2b_icon-hashtag.svg +3 -0
  541. package/dist/collection/components/icon/icons/b2b_icon-hazelnut.svg +3 -0
  542. package/dist/collection/components/icon/icons/b2b_icon-hide.svg +3 -0
  543. package/dist/collection/components/icon/icons/b2b_icon-high-heels.svg +3 -0
  544. package/dist/collection/components/icon/icons/b2b_icon-home.svg +3 -0
  545. package/dist/collection/components/icon/icons/b2b_icon-info-small.svg +3 -0
  546. package/dist/collection/components/icon/icons/b2b_icon-info.svg +5 -0
  547. package/dist/collection/components/icon/icons/b2b_icon-inplace-zoom-reverse.svg +6 -0
  548. package/dist/collection/components/icon/icons/b2b_icon-inplace-zoom.svg +3 -0
  549. package/dist/collection/components/icon/icons/b2b_icon-insurance.svg +4 -0
  550. package/dist/collection/components/icon/icons/b2b_icon-kamut.svg +3 -0
  551. package/dist/collection/components/icon/icons/b2b_icon-laptop-os.svg +5 -0
  552. package/dist/collection/components/icon/icons/b2b_icon-laptop.svg +3 -0
  553. package/dist/collection/components/icon/icons/b2b_icon-leaving-page.svg +4 -0
  554. package/dist/collection/components/icon/icons/b2b_icon-light-bulb.svg +3 -0
  555. package/dist/collection/components/icon/icons/b2b_icon-like-fingers.svg +3 -0
  556. package/dist/collection/components/icon/icons/b2b_icon-like-product.svg +4 -0
  557. package/dist/collection/components/icon/icons/b2b_icon-like.svg +3 -0
  558. package/dist/collection/components/icon/icons/b2b_icon-line-graph.svg +3 -0
  559. package/dist/collection/components/icon/icons/b2b_icon-list-view.svg +3 -0
  560. package/dist/collection/components/icon/icons/b2b_icon-location.svg +4 -0
  561. package/dist/collection/components/icon/icons/b2b_icon-lupine.svg +3 -0
  562. package/dist/collection/components/icon/icons/b2b_icon-macadamia.svg +3 -0
  563. package/dist/collection/components/icon/icons/b2b_icon-material-samples.svg +4 -0
  564. package/dist/collection/components/icon/icons/b2b_icon-measurement.svg +4 -0
  565. package/dist/collection/components/icon/icons/b2b_icon-megaphone.svg +6 -0
  566. package/dist/collection/components/icon/icons/b2b_icon-menu.svg +1 -0
  567. package/dist/collection/components/icon/icons/b2b_icon-mic.svg +4 -0
  568. package/dist/collection/components/icon/icons/b2b_icon-milk.svg +3 -0
  569. package/dist/collection/components/icon/icons/b2b_icon-minus.svg +3 -0
  570. package/dist/collection/components/icon/icons/b2b_icon-module-operations.svg +1 -0
  571. package/dist/collection/components/icon/icons/b2b_icon-money-coins.svg +3 -0
  572. package/dist/collection/components/icon/icons/b2b_icon-money-document.svg +3 -0
  573. package/dist/collection/components/icon/icons/b2b_icon-money-plus.svg +3 -0
  574. package/dist/collection/components/icon/icons/b2b_icon-money-stack.svg +3 -0
  575. package/dist/collection/components/icon/icons/b2b_icon-money.svg +3 -0
  576. package/dist/collection/components/icon/icons/b2b_icon-move.svg +3 -0
  577. package/dist/collection/components/icon/icons/b2b_icon-mustard.svg +3 -0
  578. package/dist/collection/components/icon/icons/b2b_icon-nav.svg +3 -0
  579. package/dist/collection/components/icon/icons/b2b_icon-new.svg +6 -0
  580. package/dist/collection/components/icon/icons/b2b_icon-newsletter-sign-up.svg +3 -0
  581. package/dist/collection/components/icon/icons/b2b_icon-notification.svg +3 -0
  582. package/dist/collection/components/icon/icons/b2b_icon-nuts.svg +3 -0
  583. package/dist/collection/components/icon/icons/b2b_icon-oat.svg +3 -0
  584. package/dist/collection/components/icon/icons/b2b_icon-order-cancelled.svg +3 -0
  585. package/dist/collection/components/icon/icons/b2b_icon-order-delivered.svg +3 -0
  586. package/dist/collection/components/icon/icons/b2b_icon-order-form.svg +6 -0
  587. package/dist/collection/components/icon/icons/b2b_icon-order-management.svg +4 -0
  588. package/dist/collection/components/icon/icons/b2b_icon-order-misdirected.svg +3 -0
  589. package/dist/collection/components/icon/icons/b2b_icon-order-on-road.svg +4 -0
  590. package/dist/collection/components/icon/icons/b2b_icon-order-packed.svg +4 -0
  591. package/dist/collection/components/icon/icons/b2b_icon-order-payment.svg +3 -0
  592. package/dist/collection/components/icon/icons/b2b_icon-order-received.svg +3 -0
  593. package/dist/collection/components/icon/icons/b2b_icon-order-return.svg +4 -0
  594. package/dist/collection/components/icon/icons/b2b_icon-order-shipped.svg +3 -0
  595. package/dist/collection/components/icon/icons/b2b_icon-order-state-unknown.svg +3 -0
  596. package/dist/collection/components/icon/icons/b2b_icon-order-stored.svg +3 -0
  597. package/dist/collection/components/icon/icons/b2b_icon-order.svg +3 -0
  598. package/dist/collection/components/icon/icons/b2b_icon-otto-app.svg +4 -0
  599. package/dist/collection/components/icon/icons/b2b_icon-otto-campus.svg +16 -0
  600. package/dist/collection/components/icon/icons/b2b_icon-otto-company.svg +19 -0
  601. package/dist/collection/components/icon/icons/b2b_icon-otto-laptop.svg +4 -0
  602. package/dist/collection/components/icon/icons/b2b_icon-otto-logo.svg +3 -0
  603. package/dist/collection/components/icon/icons/b2b_icon-otto-up-points.svg +3 -0
  604. package/dist/collection/components/icon/icons/b2b_icon-otto-up.svg +3 -0
  605. package/dist/collection/components/icon/icons/b2b_icon-paper-plane.svg +3 -0
  606. package/dist/collection/components/icon/icons/b2b_icon-pause.svg +3 -0
  607. package/dist/collection/components/icon/icons/b2b_icon-payment-credit-card.svg +7 -0
  608. package/dist/collection/components/icon/icons/b2b_icon-payment-invoice.svg +3 -0
  609. package/dist/collection/components/icon/icons/b2b_icon-payment-pause.svg +9 -0
  610. package/dist/collection/components/icon/icons/b2b_icon-payment-plan-protection.svg +3 -0
  611. package/dist/collection/components/icon/icons/b2b_icon-payment-plan.svg +3 -0
  612. package/dist/collection/components/icon/icons/b2b_icon-pdf.svg +6 -0
  613. package/dist/collection/components/icon/icons/b2b_icon-peanut.svg +3 -0
  614. package/dist/collection/components/icon/icons/b2b_icon-pecan-nut.svg +3 -0
  615. package/dist/collection/components/icon/icons/b2b_icon-pending.svg +3 -0
  616. package/dist/collection/components/icon/icons/b2b_icon-person-access.svg +5 -0
  617. package/dist/collection/components/icon/icons/b2b_icon-person-callcenter.svg +3 -0
  618. package/dist/collection/components/icon/icons/b2b_icon-person-check.svg +5 -0
  619. package/dist/collection/components/icon/icons/b2b_icon-person-colleagues.svg +6 -0
  620. package/dist/collection/components/icon/icons/b2b_icon-person-community.svg +9 -0
  621. package/dist/collection/components/icon/icons/b2b_icon-person-development.svg +9 -0
  622. package/dist/collection/components/icon/icons/b2b_icon-person-female.svg +3 -0
  623. package/dist/collection/components/icon/icons/b2b_icon-person-info.svg +6 -0
  624. package/dist/collection/components/icon/icons/b2b_icon-person-male.svg +3 -0
  625. package/dist/collection/components/icon/icons/b2b_icon-person-rating.svg +5 -0
  626. package/dist/collection/components/icon/icons/b2b_icon-person-support.svg +4 -0
  627. package/dist/collection/components/icon/icons/b2b_icon-person-switch.svg +3 -0
  628. package/dist/collection/components/icon/icons/b2b_icon-person-workshop.svg +8 -0
  629. package/dist/collection/components/icon/icons/b2b_icon-person.svg +3 -0
  630. package/dist/collection/components/icon/icons/b2b_icon-phone-permission.svg +9 -0
  631. package/dist/collection/components/icon/icons/b2b_icon-phone.svg +5 -0
  632. package/dist/collection/components/icon/icons/b2b_icon-pig.svg +3 -0
  633. package/dist/collection/components/icon/icons/b2b_icon-pin.svg +3 -0
  634. package/dist/collection/components/icon/icons/b2b_icon-pinch-gesture.svg +5 -0
  635. package/dist/collection/components/icon/icons/b2b_icon-pinch.svg +3 -0
  636. package/dist/collection/components/icon/icons/b2b_icon-pistachio.svg +3 -0
  637. package/dist/collection/components/icon/icons/b2b_icon-plant.svg +3 -0
  638. package/dist/collection/components/icon/icons/b2b_icon-play-1.svg +3 -0
  639. package/dist/collection/components/icon/icons/b2b_icon-play.svg +3 -0
  640. package/dist/collection/components/icon/icons/b2b_icon-plus.svg +3 -0
  641. package/dist/collection/components/icon/icons/b2b_icon-price-alert.svg +6 -0
  642. package/dist/collection/components/icon/icons/b2b_icon-price-tag.svg +3 -0
  643. package/dist/collection/components/icon/icons/b2b_icon-print.svg +3 -0
  644. package/dist/collection/components/icon/icons/b2b_icon-puzzle.svg +4 -0
  645. package/dist/collection/components/icon/icons/b2b_icon-qr-code.svg +3 -0
  646. package/dist/collection/components/icon/icons/b2b_icon-question-hint.svg +3 -0
  647. package/dist/collection/components/icon/icons/b2b_icon-question.svg +3 -0
  648. package/dist/collection/components/icon/icons/b2b_icon-rating-empty.svg +3 -0
  649. package/dist/collection/components/icon/icons/b2b_icon-rating-filled.svg +3 -0
  650. package/dist/collection/components/icon/icons/b2b_icon-rating-half.svg +3 -0
  651. package/dist/collection/components/icon/icons/b2b_icon-rating-order.svg +4 -0
  652. package/dist/collection/components/icon/icons/b2b_icon-rating-payment.svg +3 -0
  653. package/dist/collection/components/icon/icons/b2b_icon-remote-work.svg +4 -0
  654. package/dist/collection/components/icon/icons/b2b_icon-repair.svg +3 -0
  655. package/dist/collection/components/icon/icons/b2b_icon-reply.svg +3 -0
  656. package/dist/collection/components/icon/icons/b2b_icon-retirement-provision.svg +3 -0
  657. package/dist/collection/components/icon/icons/b2b_icon-rocket.svg +5 -0
  658. package/dist/collection/components/icon/icons/b2b_icon-rye.svg +3 -0
  659. package/dist/collection/components/icon/icons/b2b_icon-sabbatical.svg +19 -0
  660. package/dist/collection/components/icon/icons/b2b_icon-sale.svg +3 -0
  661. package/dist/collection/components/icon/icons/b2b_icon-save.svg +4 -0
  662. package/dist/collection/components/icon/icons/b2b_icon-sea.svg +4 -0
  663. package/dist/collection/components/icon/icons/b2b_icon-search-enter.svg +3 -0
  664. package/dist/collection/components/icon/icons/b2b_icon-search.svg +3 -0
  665. package/dist/collection/components/icon/icons/b2b_icon-seo.svg +4 -0
  666. package/dist/collection/components/icon/icons/b2b_icon-service-info.svg +5 -0
  667. package/dist/collection/components/icon/icons/b2b_icon-sesame.svg +3 -0
  668. package/dist/collection/components/icon/icons/b2b_icon-settings.svg +4 -0
  669. package/dist/collection/components/icon/icons/b2b_icon-share-ios.svg +4 -0
  670. package/dist/collection/components/icon/icons/b2b_icon-share.svg +3 -0
  671. package/dist/collection/components/icon/icons/b2b_icon-sheep.svg +3 -0
  672. package/dist/collection/components/icon/icons/b2b_icon-shell.svg +3 -0
  673. package/dist/collection/components/icon/icons/b2b_icon-shirt.svg +3 -0
  674. package/dist/collection/components/icon/icons/b2b_icon-shopping-cart-euro.svg +3 -0
  675. package/dist/collection/components/icon/icons/b2b_icon-shopping-cart.svg +3 -0
  676. package/dist/collection/components/icon/icons/b2b_icon-show.svg +3 -0
  677. package/dist/collection/components/icon/icons/b2b_icon-smiley-angry.svg +3 -0
  678. package/dist/collection/components/icon/icons/b2b_icon-smiley-happy.svg +3 -0
  679. package/dist/collection/components/icon/icons/b2b_icon-smiley-negative.svg +6 -0
  680. package/dist/collection/components/icon/icons/b2b_icon-smiley-neutral.svg +6 -0
  681. package/dist/collection/components/icon/icons/b2b_icon-smiley-positive.svg +6 -0
  682. package/dist/collection/components/icon/icons/b2b_icon-sms-info.svg +7 -0
  683. package/dist/collection/components/icon/icons/b2b_icon-sneaker.svg +3 -0
  684. package/dist/collection/components/icon/icons/b2b_icon-sort-ascending.svg +3 -0
  685. package/dist/collection/components/icon/icons/b2b_icon-sort-descending.svg +3 -0
  686. package/dist/collection/components/icon/icons/b2b_icon-sort.svg +7 -0
  687. package/dist/collection/components/icon/icons/b2b_icon-soy.svg +3 -0
  688. package/dist/collection/components/icon/icons/b2b_icon-spelt.svg +3 -0
  689. package/dist/collection/components/icon/icons/b2b_icon-stationary.svg +4 -0
  690. package/dist/collection/components/icon/icons/b2b_icon-studies.svg +3 -0
  691. package/dist/collection/components/icon/icons/b2b_icon-success.svg +4 -0
  692. package/dist/collection/components/icon/icons/b2b_icon-sustainable-delivery.svg +3 -0
  693. package/dist/collection/components/icon/icons/b2b_icon-sustainable-energy-efficient.svg +3 -0
  694. package/dist/collection/components/icon/icons/b2b_icon-sustainable-production.svg +3 -0
  695. package/dist/collection/components/icon/icons/b2b_icon-sustainable-recycling.svg +3 -0
  696. package/dist/collection/components/icon/icons/b2b_icon-sustainable-resource.svg +3 -0
  697. package/dist/collection/components/icon/icons/b2b_icon-swipe-gesture.svg +3 -0
  698. package/dist/collection/components/icon/icons/b2b_icon-sync-device.svg +6 -0
  699. package/dist/collection/components/icon/icons/b2b_icon-t-shirt.svg +3 -0
  700. package/dist/collection/components/icon/icons/b2b_icon-tablet.svg +4 -0
  701. package/dist/collection/components/icon/icons/b2b_icon-tableware.svg +6 -0
  702. package/dist/collection/components/icon/icons/b2b_icon-target-group.svg +3 -0
  703. package/dist/collection/components/icon/icons/b2b_icon-teddy.svg +5 -0
  704. package/dist/collection/components/icon/icons/b2b_icon-test-result.svg +4 -0
  705. package/dist/collection/components/icon/icons/b2b_icon-town.svg +3 -0
  706. package/dist/collection/components/icon/icons/b2b_icon-trash.svg +1 -0
  707. package/dist/collection/components/icon/icons/b2b_icon-trend-down.svg +3 -0
  708. package/dist/collection/components/icon/icons/b2b_icon-trend-up.svg +3 -0
  709. package/dist/collection/components/icon/icons/b2b_icon-trousers.svg +4 -0
  710. package/dist/collection/components/icon/icons/b2b_icon-trusted.svg +3 -0
  711. package/dist/collection/components/icon/icons/b2b_icon-unpin.svg +3 -0
  712. package/dist/collection/components/icon/icons/b2b_icon-upload.svg +3 -0
  713. package/dist/collection/components/icon/icons/b2b_icon-user-management.svg +1 -0
  714. package/dist/collection/components/icon/icons/b2b_icon-vacation.svg +3 -0
  715. package/dist/collection/components/icon/icons/b2b_icon-variant-content.svg +3 -0
  716. package/dist/collection/components/icon/icons/b2b_icon-vegan.svg +3 -0
  717. package/dist/collection/components/icon/icons/b2b_icon-vegetarian.svg +3 -0
  718. package/dist/collection/components/icon/icons/b2b_icon-viewtoggle-tiles.svg +1 -0
  719. package/dist/collection/components/icon/icons/b2b_icon-village.svg +10 -0
  720. package/dist/collection/components/icon/icons/b2b_icon-volume-off.svg +3 -0
  721. package/dist/collection/components/icon/icons/b2b_icon-volume-on.svg +3 -0
  722. package/dist/collection/components/icon/icons/b2b_icon-voucher.svg +3 -0
  723. package/dist/collection/components/icon/icons/b2b_icon-walnut.svg +3 -0
  724. package/dist/collection/components/icon/icons/b2b_icon-warning.svg +5 -0
  725. package/dist/collection/components/icon/icons/b2b_icon-warranty.svg +4 -0
  726. package/dist/collection/components/icon/icons/b2b_icon-washing-machine.svg +7 -0
  727. package/dist/collection/components/icon/icons/b2b_icon-whatsapp.svg +4 -0
  728. package/dist/collection/components/icon/icons/b2b_icon-wheat.svg +3 -0
  729. package/dist/collection/components/icon/icons/b2b_icon-wifi.svg +3 -0
  730. package/dist/collection/components/icon/icons/b2b_icon-wishlist-active.svg +3 -0
  731. package/dist/collection/components/icon/icons/b2b_icon-wishlist.svg +3 -0
  732. package/dist/collection/components/icon/icons/b2b_icon-work-life.svg +6 -0
  733. package/dist/collection/components/icon/icons/b2b_icon-workshop.svg +7 -0
  734. package/dist/collection/components/icon/icons/b2b_icon-zoom-in.svg +4 -0
  735. package/dist/collection/components/icon/icons/b2b_icon-zoom-out.svg +4 -0
  736. package/dist/collection/components/icon/request.js +39 -0
  737. package/dist/collection/components/icon/types.js +314 -0
  738. package/dist/collection/components/input/input.css +308 -0
  739. package/dist/collection/components/input/input.js +381 -0
  740. package/dist/collection/components/input/input.stories.js +84 -0
  741. package/dist/collection/components/input-group/input-group.css +246 -0
  742. package/dist/collection/components/input-group/input-group.js +158 -0
  743. package/dist/collection/components/input-group/input-group.stories.js +63 -0
  744. package/dist/collection/components/input-label/input-label.css +11 -0
  745. package/dist/collection/components/input-label/input-label.js +67 -0
  746. package/dist/collection/components/input-list/input-list-option.js +81 -0
  747. package/dist/collection/components/input-list/input-list.css +307 -0
  748. package/dist/collection/components/input-list/input-list.js +272 -0
  749. package/dist/collection/components/input-list/input-list.stories.js +64 -0
  750. package/dist/collection/components/label/label.css +242 -0
  751. package/dist/collection/components/label/label.js +46 -0
  752. package/dist/collection/components/label/label.stories.js +35 -0
  753. package/dist/collection/components/modal/modal.css +307 -0
  754. package/dist/collection/components/modal/modal.js +255 -0
  755. package/dist/collection/components/modal/modal.stories.js +81 -0
  756. package/dist/collection/components/pagination/pagination.constants.js +6 -0
  757. package/dist/collection/components/pagination/pagination.css +249 -0
  758. package/dist/collection/components/pagination/pagination.js +220 -0
  759. package/dist/collection/components/pagination/pagination.stories.js +34 -0
  760. package/dist/collection/components/paragraph/paragraph.css +244 -0
  761. package/dist/collection/components/paragraph/paragraph.js +90 -0
  762. package/dist/collection/components/paragraph/paragraph.stories.js +52 -0
  763. package/dist/collection/components/radio/radio.css +281 -0
  764. package/dist/collection/components/radio/radio.js +297 -0
  765. package/dist/collection/components/radio/radio.stories.js +53 -0
  766. package/dist/collection/components/radio-group/radio-group.css +257 -0
  767. package/dist/collection/components/radio-group/radio-group.js +279 -0
  768. package/dist/collection/components/radio-group/radio-group.stories.js +63 -0
  769. package/dist/collection/components/required-separator/required-separator.css +226 -0
  770. package/dist/collection/components/required-separator/required-separator.js +43 -0
  771. package/dist/collection/components/required-separator/required-separator.stories.js +26 -0
  772. package/dist/collection/components/scrollable-container/scrollable-container.css +221 -0
  773. package/dist/collection/components/scrollable-container/scrollable-container.js +19 -0
  774. package/dist/collection/components/scrollable-container/scrollable-container.stories.js +64 -0
  775. package/dist/collection/components/search/search.js +107 -0
  776. package/dist/collection/components/search/search.stories.js +91 -0
  777. package/dist/collection/components/separator/separator.css +226 -0
  778. package/dist/collection/components/separator/separator.js +45 -0
  779. package/dist/collection/components/separator/separator.stories.js +42 -0
  780. package/dist/collection/components/spinner/spinner.css +255 -0
  781. package/dist/collection/components/spinner/spinner.js +70 -0
  782. package/dist/collection/components/spinner/spinner.stories.js +42 -0
  783. package/dist/collection/components/tab/tab.css +265 -0
  784. package/dist/collection/components/tab/tab.js +122 -0
  785. package/dist/collection/components/tab-group/tab-group.js +187 -0
  786. package/dist/collection/components/tab-group/tab-group.stories.js +58 -0
  787. package/dist/collection/components/tab-panel/tab-panel.css +219 -0
  788. package/dist/collection/components/tab-panel/tab-panel.js +22 -0
  789. package/dist/collection/components/table/stories.data.js +189 -0
  790. package/dist/collection/components/table/table-cell/table-cell.css +249 -0
  791. package/dist/collection/components/table/table-cell/table-cell.js +143 -0
  792. package/dist/collection/components/table/table-header/table-header.css +283 -0
  793. package/dist/collection/components/table/table-header/table-header.js +183 -0
  794. package/dist/collection/components/table/table-row/table-row.css +241 -0
  795. package/dist/collection/components/table/table-row/table-row.js +71 -0
  796. package/dist/collection/components/table/table-rowgroup/table-rowgroup.css +222 -0
  797. package/dist/collection/components/table/table-rowgroup/table-rowgroup.js +61 -0
  798. package/dist/collection/components/table/table.css +227 -0
  799. package/dist/collection/components/table/table.js +118 -0
  800. package/dist/collection/components/table/table.stories.js +239 -0
  801. package/dist/collection/components/table/types.js +19 -0
  802. package/dist/collection/components/textarea/textarea.css +269 -0
  803. package/dist/collection/components/textarea/textarea.js +340 -0
  804. package/dist/collection/components/textarea/textarea.stories.js +62 -0
  805. package/dist/collection/components/toggle-button/toggle-button.css +272 -0
  806. package/dist/collection/components/toggle-button/toggle-button.js +173 -0
  807. package/dist/collection/components/toggle-group/toggle-group.css +245 -0
  808. package/dist/collection/components/toggle-group/toggle-group.js +139 -0
  809. package/dist/collection/components/toggle-group/toggle-group.stories.js +46 -0
  810. package/dist/collection/components/tooltip/tooltip.css +304 -0
  811. package/dist/collection/components/tooltip/tooltip.js +164 -0
  812. package/dist/collection/components/tooltip/tooltip.stories.js +100 -0
  813. package/dist/collection/docs/config/replace-prop-controls.js +12 -0
  814. package/dist/collection/docs/config/utils.js +19 -0
  815. package/dist/collection/docs/tokens/color.stories.js +79 -0
  816. package/dist/collection/docs/tokens/font.stories.js +63 -0
  817. package/dist/collection/docs/tokens/size.stories.js +72 -0
  818. package/dist/collection/index.js +1 -0
  819. package/dist/collection/static/assets/fonts/otto-sans-bold.svg +19 -0
  820. package/dist/collection/static/assets/fonts/otto-sans-thin.svg +19 -0
  821. package/dist/collection/static/assets/fonts/otto-sans.svg +19 -0
  822. package/dist/collection/utils/focus-trap.js +120 -0
  823. package/dist/collection/utils/resources.js +1 -0
  824. package/dist/collection/utils/theme.js +17 -0
  825. package/dist/collection/utils/utils.js +5 -0
  826. package/dist/components/b2b-alert.d.ts +11 -0
  827. package/dist/components/b2b-alert.js +78 -0
  828. package/dist/components/b2b-anchor.d.ts +11 -0
  829. package/dist/components/b2b-anchor.js +45 -0
  830. package/dist/components/b2b-button.d.ts +11 -0
  831. package/dist/components/b2b-button.js +6 -0
  832. package/dist/components/b2b-checkbox-group.d.ts +11 -0
  833. package/dist/components/b2b-checkbox-group.js +118 -0
  834. package/dist/components/b2b-checkbox.d.ts +11 -0
  835. package/dist/components/b2b-checkbox.js +104 -0
  836. package/dist/components/b2b-dropdown.d.ts +11 -0
  837. package/dist/components/b2b-dropdown.js +96 -0
  838. package/dist/components/b2b-grid-col.d.ts +11 -0
  839. package/dist/components/b2b-grid-col.js +55 -0
  840. package/dist/components/b2b-grid-row.d.ts +11 -0
  841. package/dist/components/b2b-grid-row.js +48 -0
  842. package/dist/components/b2b-grid.d.ts +11 -0
  843. package/dist/components/b2b-grid.js +37 -0
  844. package/dist/components/b2b-headline.d.ts +11 -0
  845. package/dist/components/b2b-headline.js +6 -0
  846. package/dist/components/b2b-icon.d.ts +11 -0
  847. package/dist/components/b2b-icon.js +6 -0
  848. package/dist/components/b2b-input-group.d.ts +11 -0
  849. package/dist/components/b2b-input-group.js +6 -0
  850. package/dist/components/b2b-input-label.d.ts +11 -0
  851. package/dist/components/b2b-input-label.js +6 -0
  852. package/dist/components/b2b-input-list-option.d.ts +11 -0
  853. package/dist/components/b2b-input-list-option.js +6 -0
  854. package/dist/components/b2b-input-list.d.ts +11 -0
  855. package/dist/components/b2b-input-list.js +6 -0
  856. package/dist/components/b2b-input.d.ts +11 -0
  857. package/dist/components/b2b-input.js +6 -0
  858. package/dist/components/b2b-label.d.ts +11 -0
  859. package/dist/components/b2b-label.js +39 -0
  860. package/dist/components/b2b-modal.d.ts +11 -0
  861. package/dist/components/b2b-modal.js +258 -0
  862. package/dist/components/b2b-pagination.d.ts +11 -0
  863. package/dist/components/b2b-pagination.js +153 -0
  864. package/dist/components/b2b-paragraph.d.ts +11 -0
  865. package/dist/components/b2b-paragraph.js +45 -0
  866. package/dist/components/b2b-radio-button.d.ts +11 -0
  867. package/dist/components/b2b-radio-button.js +107 -0
  868. package/dist/components/b2b-radio-group.d.ts +11 -0
  869. package/dist/components/b2b-radio-group.js +123 -0
  870. package/dist/components/b2b-required-separator.d.ts +11 -0
  871. package/dist/components/b2b-required-separator.js +42 -0
  872. package/dist/components/b2b-scrollable-container.d.ts +11 -0
  873. package/dist/components/b2b-scrollable-container.js +34 -0
  874. package/dist/components/b2b-search.d.ts +11 -0
  875. package/dist/components/b2b-search.js +98 -0
  876. package/dist/components/b2b-separator.d.ts +11 -0
  877. package/dist/components/b2b-separator.js +6 -0
  878. package/dist/components/b2b-spinner.d.ts +11 -0
  879. package/dist/components/b2b-spinner.js +6 -0
  880. package/dist/components/b2b-tab-group.d.ts +11 -0
  881. package/dist/components/b2b-tab-group.js +156 -0
  882. package/dist/components/b2b-tab-panel.d.ts +11 -0
  883. package/dist/components/b2b-tab-panel.js +35 -0
  884. package/dist/components/b2b-tab.d.ts +11 -0
  885. package/dist/components/b2b-tab.js +61 -0
  886. package/dist/components/b2b-table-cell.d.ts +11 -0
  887. package/dist/components/b2b-table-cell.js +53 -0
  888. package/dist/components/b2b-table-header.d.ts +11 -0
  889. package/dist/components/b2b-table-header.js +94 -0
  890. package/dist/components/b2b-table-row.d.ts +11 -0
  891. package/dist/components/b2b-table-row.js +42 -0
  892. package/dist/components/b2b-table-rowgroup.d.ts +11 -0
  893. package/dist/components/b2b-table-rowgroup.js +49 -0
  894. package/dist/components/b2b-table.d.ts +11 -0
  895. package/dist/components/b2b-table.js +75 -0
  896. package/dist/components/b2b-textarea.d.ts +11 -0
  897. package/dist/components/b2b-textarea.js +98 -0
  898. package/dist/components/b2b-toggle-button.d.ts +11 -0
  899. package/dist/components/b2b-toggle-button.js +79 -0
  900. package/dist/components/b2b-toggle-group.d.ts +11 -0
  901. package/dist/components/b2b-toggle-group.js +78 -0
  902. package/dist/components/b2b-tooltip.d.ts +11 -0
  903. package/dist/components/b2b-tooltip.js +98 -0
  904. package/dist/components/button.js +107 -0
  905. package/dist/components/headline.js +50 -0
  906. package/dist/components/icon.js +428 -0
  907. package/dist/components/index.d.ts +27 -0
  908. package/dist/components/index.js +1 -0
  909. package/dist/components/input-group.js +94 -0
  910. package/dist/components/input-label.js +40 -0
  911. package/dist/components/input-list-option.js +41 -0
  912. package/dist/components/input-list.js +206 -0
  913. package/dist/components/input.js +127 -0
  914. package/dist/components/separator.js +35 -0
  915. package/dist/components/spinner.js +39 -0
  916. package/dist/components/types.js +21 -0
  917. package/dist/custom-elements.json +2299 -0
  918. package/dist/esm/b2b-alert.entry.js +48 -0
  919. package/dist/esm/b2b-anchor.entry.js +22 -0
  920. package/dist/esm/b2b-button_2.entry.js +93 -0
  921. package/dist/esm/b2b-checkbox-group.entry.js +86 -0
  922. package/dist/esm/b2b-checkbox.entry.js +70 -0
  923. package/dist/esm/b2b-core-components.js +21 -0
  924. package/dist/esm/b2b-dropdown.entry.js +64 -0
  925. package/dist/esm/b2b-grid-col.entry.js +34 -0
  926. package/dist/esm/b2b-grid-row.entry.js +25 -0
  927. package/dist/esm/b2b-grid.entry.js +17 -0
  928. package/dist/esm/b2b-headline.entry.js +31 -0
  929. package/dist/esm/b2b-icon.entry.js +401 -0
  930. package/dist/esm/b2b-input-group_2.entry.js +230 -0
  931. package/dist/esm/b2b-input-label.entry.js +22 -0
  932. package/dist/esm/b2b-input_2.entry.js +112 -0
  933. package/dist/esm/b2b-label.entry.js +19 -0
  934. package/dist/esm/b2b-modal.entry.js +220 -0
  935. package/dist/esm/b2b-pagination.entry.js +118 -0
  936. package/dist/esm/b2b-paragraph.entry.js +23 -0
  937. package/dist/esm/b2b-radio-button.entry.js +73 -0
  938. package/dist/esm/b2b-radio-group.entry.js +89 -0
  939. package/dist/esm/b2b-required-separator.entry.js +16 -0
  940. package/dist/esm/b2b-scrollable-container.entry.js +16 -0
  941. package/dist/esm/b2b-search.entry.js +27 -0
  942. package/dist/esm/b2b-separator.entry.js +18 -0
  943. package/dist/esm/b2b-tab-group.entry.js +130 -0
  944. package/dist/esm/b2b-tab-panel.entry.js +17 -0
  945. package/dist/esm/b2b-tab.entry.js +39 -0
  946. package/dist/esm/b2b-table-cell.entry.js +29 -0
  947. package/dist/esm/b2b-table-header.entry.js +70 -0
  948. package/dist/esm/b2b-table-row.entry.js +21 -0
  949. package/dist/esm/b2b-table-rowgroup.entry.js +29 -0
  950. package/dist/esm/b2b-table.entry.js +55 -0
  951. package/dist/esm/b2b-textarea.entry.js +61 -0
  952. package/dist/esm/b2b-toggle-button.entry.js +55 -0
  953. package/dist/esm/b2b-toggle-group.entry.js +56 -0
  954. package/dist/esm/b2b-tooltip.entry.js +75 -0
  955. package/dist/esm/index-f975f1ed.js +1986 -0
  956. package/dist/esm/index.js +1 -0
  957. package/dist/esm/loader.js +18 -0
  958. package/dist/esm/polyfills/core-js.js +11 -0
  959. package/dist/esm/polyfills/css-shim.js +1 -0
  960. package/dist/esm/polyfills/dom.js +79 -0
  961. package/dist/esm/polyfills/es5-html-element.js +1 -0
  962. package/dist/esm/polyfills/index.js +34 -0
  963. package/dist/esm/polyfills/system.js +6 -0
  964. package/dist/esm/types-b6ef0c78.js +21 -0
  965. package/dist/index.cjs.js +1 -0
  966. package/dist/index.js +1 -0
  967. package/dist/scripts/stencil/generate-storybook-args.js +47 -0
  968. package/dist/scripts/stencil/generate-vue-web-types.js +88 -0
  969. package/dist/types/components/alert/alert.d.ts +21 -0
  970. package/dist/types/components/alert/alert.stories.d.ts +8 -0
  971. package/dist/types/components/anchor/anchor.d.ts +12 -0
  972. package/dist/types/components/anchor/anchor.stories.d.ts +6 -0
  973. package/dist/types/components/button/button.d.ts +34 -0
  974. package/dist/types/components/button/button.stories.d.ts +12 -0
  975. package/dist/types/components/checkbox/checkbox.d.ts +36 -0
  976. package/dist/types/components/checkbox/checkbox.stories.d.ts +9 -0
  977. package/dist/types/components/checkbox-group/checkbox-group.d.ts +30 -0
  978. package/dist/types/components/checkbox-group/checkbox-group.stories.d.ts +9 -0
  979. package/dist/types/components/dropdown/dropdown.d.ts +32 -0
  980. package/dist/types/components/dropdown/dropdown.stories.d.ts +7 -0
  981. package/dist/types/components/grid/column.d.ts +9 -0
  982. package/dist/types/components/grid/grid.d.ts +6 -0
  983. package/dist/types/components/grid/grid.stories.d.ts +7 -0
  984. package/dist/types/components/grid/row.d.ts +12 -0
  985. package/dist/types/components/headline/headline.d.ts +13 -0
  986. package/dist/types/components/headline/headline.stories.d.ts +8 -0
  987. package/dist/types/components/icon/icon.d.ts +14 -0
  988. package/dist/types/components/icon/icon.stories.d.ts +12 -0
  989. package/dist/types/components/icon/request.d.ts +3 -0
  990. package/dist/types/components/icon/types.d.ts +2 -0
  991. package/dist/types/components/input/input.d.ts +50 -0
  992. package/dist/types/components/input/input.stories.d.ts +13 -0
  993. package/dist/types/components/input-group/input-group.d.ts +19 -0
  994. package/dist/types/components/input-group/input-group.stories.d.ts +7 -0
  995. package/dist/types/components/input-label/input-label.d.ts +8 -0
  996. package/dist/types/components/input-list/input-list-option.d.ts +11 -0
  997. package/dist/types/components/input-list/input-list.d.ts +29 -0
  998. package/dist/types/components/input-list/input-list.stories.d.ts +6 -0
  999. package/dist/types/components/label/label.d.ts +5 -0
  1000. package/dist/types/components/label/label.stories.d.ts +8 -0
  1001. package/dist/types/components/modal/modal.d.ts +44 -0
  1002. package/dist/types/components/modal/modal.stories.d.ts +7 -0
  1003. package/dist/types/components/pagination/pagination.constants.d.ts +5 -0
  1004. package/dist/types/components/pagination/pagination.d.ts +30 -0
  1005. package/dist/types/components/pagination/pagination.stories.d.ts +6 -0
  1006. package/dist/types/components/paragraph/paragraph.d.ts +13 -0
  1007. package/dist/types/components/paragraph/paragraph.stories.d.ts +9 -0
  1008. package/dist/types/components/radio/radio.d.ts +37 -0
  1009. package/dist/types/components/radio/radio.stories.d.ts +8 -0
  1010. package/dist/types/components/radio-group/radio-group.d.ts +33 -0
  1011. package/dist/types/components/radio-group/radio-group.stories.d.ts +9 -0
  1012. package/dist/types/components/required-separator/required-separator.d.ts +5 -0
  1013. package/dist/types/components/required-separator/required-separator.stories.d.ts +4 -0
  1014. package/dist/types/components/scrollable-container/scrollable-container.d.ts +4 -0
  1015. package/dist/types/components/scrollable-container/scrollable-container.stories.d.ts +5 -0
  1016. package/dist/types/components/search/search.d.ts +18 -0
  1017. package/dist/types/components/search/search.stories.d.ts +5 -0
  1018. package/dist/types/components/separator/separator.d.ts +5 -0
  1019. package/dist/types/components/separator/separator.stories.d.ts +5 -0
  1020. package/dist/types/components/spinner/spinner.d.ts +11 -0
  1021. package/dist/types/components/spinner/spinner.stories.d.ts +8 -0
  1022. package/dist/types/components/tab/tab.d.ts +15 -0
  1023. package/dist/types/components/tab-group/tab-group.d.ts +24 -0
  1024. package/dist/types/components/tab-group/tab-group.stories.d.ts +4 -0
  1025. package/dist/types/components/tab-panel/tab-panel.d.ts +4 -0
  1026. package/dist/types/components/table/stories.data.d.ts +19 -0
  1027. package/dist/types/components/table/table-cell/table-cell.d.ts +20 -0
  1028. package/dist/types/components/table/table-header/table-header.d.ts +22 -0
  1029. package/dist/types/components/table/table-row/table-row.d.ts +8 -0
  1030. package/dist/types/components/table/table-rowgroup/table-rowgroup.d.ts +11 -0
  1031. package/dist/types/components/table/table.d.ts +19 -0
  1032. package/dist/types/components/table/table.stories.d.ts +14 -0
  1033. package/dist/types/components/table/types.d.ts +23 -0
  1034. package/dist/types/components/textarea/textarea.d.ts +44 -0
  1035. package/dist/types/components/textarea/textarea.stories.d.ts +10 -0
  1036. package/dist/types/components/toggle-button/toggle-button.d.ts +21 -0
  1037. package/dist/types/components/toggle-group/toggle-group.d.ts +18 -0
  1038. package/dist/types/components/toggle-group/toggle-group.stories.d.ts +5 -0
  1039. package/dist/types/components/tooltip/tooltip.d.ts +27 -0
  1040. package/dist/types/components/tooltip/tooltip.stories.d.ts +12 -0
  1041. package/dist/types/components.d.ts +2135 -0
  1042. package/dist/types/docs/config/replace-prop-controls.d.ts +1 -0
  1043. package/dist/types/docs/config/utils.d.ts +2 -0
  1044. package/dist/types/docs/tokens/color.stories.d.ts +5 -0
  1045. package/dist/types/docs/tokens/font.stories.d.ts +5 -0
  1046. package/dist/types/docs/tokens/size.stories.d.ts +4 -0
  1047. package/dist/types/home/runner/work/b2b-design-system/b2b-design-system/packages/core-components/.stencil/scripts/stencil/generate-storybook-args.d.ts +3 -0
  1048. package/dist/types/home/runner/work/b2b-design-system/b2b-design-system/packages/core-components/.stencil/scripts/stencil/generate-vue-web-types.d.ts +3 -0
  1049. package/dist/types/index.d.ts +1 -0
  1050. package/dist/types/stencil-public-runtime.d.ts +1637 -0
  1051. package/dist/types/utils/focus-trap.d.ts +33 -0
  1052. package/dist/types/utils/interfaces/form.interface.d.ts +32 -0
  1053. package/dist/types/utils/interfaces/interaction.interface.d.ts +17 -0
  1054. package/dist/types/utils/interfaces/interface.d.ts +5 -0
  1055. package/dist/types/utils/interfaces/status.interface.d.ts +5 -0
  1056. package/dist/types/utils/resources.d.ts +1 -0
  1057. package/dist/types/utils/theme.d.ts +3 -0
  1058. package/dist/types/utils/utils.d.ts +1 -0
  1059. package/dist/web-types.json +2325 -0
  1060. package/loader/cdn.js +3 -0
  1061. package/loader/index.cjs.js +3 -0
  1062. package/loader/index.d.ts +21 -0
  1063. package/loader/index.es2017.js +3 -0
  1064. package/loader/index.js +4 -0
  1065. package/loader/package.json +11 -0
  1066. package/package.json +85 -0
@@ -0,0 +1,1986 @@
1
+ const NAMESPACE = 'b2b-core-components';
2
+
3
+ /**
4
+ * Virtual DOM patching algorithm based on Snabbdom by
5
+ * Simon Friis Vindum (@paldepind)
6
+ * Licensed under the MIT License
7
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
8
+ *
9
+ * Modified for Stencil's renderer and slot projection
10
+ */
11
+ let scopeId;
12
+ let hostTagName;
13
+ let isSvgMode = false;
14
+ let queuePending = false;
15
+ const createTime = (fnName, tagName = '') => {
16
+ {
17
+ return () => {
18
+ return;
19
+ };
20
+ }
21
+ };
22
+ const uniqueTime = (key, measureText) => {
23
+ {
24
+ return () => {
25
+ return;
26
+ };
27
+ }
28
+ };
29
+ const CONTENT_REF_ID = 'r';
30
+ const ORG_LOCATION_ID = 'o';
31
+ const SLOT_NODE_ID = 's';
32
+ const TEXT_NODE_ID = 't';
33
+ const HYDRATE_ID = 's-id';
34
+ const HYDRATED_STYLE_ID = 'sty-id';
35
+ const HYDRATE_CHILD_ID = 'c-id';
36
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
37
+ /**
38
+ * Default style mode id
39
+ */
40
+ /**
41
+ * Reusable empty obj/array
42
+ * Don't add values to these!!
43
+ */
44
+ const EMPTY_OBJ = {};
45
+ /**
46
+ * Namespaces
47
+ */
48
+ const SVG_NS = 'http://www.w3.org/2000/svg';
49
+ const HTML_NS = 'http://www.w3.org/1999/xhtml';
50
+ const isDef = (v) => v != null;
51
+ /**
52
+ * Check whether a value is a 'complex type', defined here as an object or a
53
+ * function.
54
+ *
55
+ * @param o the value to check
56
+ * @returns whether it's a complex type or not
57
+ */
58
+ const isComplexType = (o) => {
59
+ // https://jsperf.com/typeof-fn-object/5
60
+ o = typeof o;
61
+ return o === 'object' || o === 'function';
62
+ };
63
+ /**
64
+ * Helper method for querying a `meta` tag that contains a nonce value
65
+ * out of a DOM's head.
66
+ *
67
+ * @param doc The DOM containing the `head` to query against
68
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
69
+ * exists or the tag has no content.
70
+ */
71
+ function queryNonceMetaTagContent(doc) {
72
+ var _a, _b, _c;
73
+ return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
74
+ }
75
+ /**
76
+ * Production h() function based on Preact by
77
+ * Jason Miller (@developit)
78
+ * Licensed under the MIT License
79
+ * https://github.com/developit/preact/blob/master/LICENSE
80
+ *
81
+ * Modified for Stencil's compiler and vdom
82
+ */
83
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
84
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
85
+ const h = (nodeName, vnodeData, ...children) => {
86
+ let child = null;
87
+ let simple = false;
88
+ let lastSimple = false;
89
+ const vNodeChildren = [];
90
+ const walk = (c) => {
91
+ for (let i = 0; i < c.length; i++) {
92
+ child = c[i];
93
+ if (Array.isArray(child)) {
94
+ walk(child);
95
+ }
96
+ else if (child != null && typeof child !== 'boolean') {
97
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
98
+ child = String(child);
99
+ }
100
+ if (simple && lastSimple) {
101
+ // If the previous child was simple (string), we merge both
102
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
103
+ }
104
+ else {
105
+ // Append a new vNode, if it's text, we create a text vNode
106
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
107
+ }
108
+ lastSimple = simple;
109
+ }
110
+ }
111
+ };
112
+ walk(children);
113
+ if (vnodeData) {
114
+ {
115
+ const classData = vnodeData.className || vnodeData.class;
116
+ if (classData) {
117
+ vnodeData.class =
118
+ typeof classData !== 'object'
119
+ ? classData
120
+ : Object.keys(classData)
121
+ .filter((k) => classData[k])
122
+ .join(' ');
123
+ }
124
+ }
125
+ }
126
+ const vnode = newVNode(nodeName, null);
127
+ vnode.$attrs$ = vnodeData;
128
+ if (vNodeChildren.length > 0) {
129
+ vnode.$children$ = vNodeChildren;
130
+ }
131
+ return vnode;
132
+ };
133
+ /**
134
+ * A utility function for creating a virtual DOM node from a tag and some
135
+ * possible text content.
136
+ *
137
+ * @param tag the tag for this element
138
+ * @param text possible text content for the node
139
+ * @returns a newly-minted virtual DOM node
140
+ */
141
+ const newVNode = (tag, text) => {
142
+ const vnode = {
143
+ $flags$: 0,
144
+ $tag$: tag,
145
+ $text$: text,
146
+ $elm$: null,
147
+ $children$: null,
148
+ };
149
+ {
150
+ vnode.$attrs$ = null;
151
+ }
152
+ return vnode;
153
+ };
154
+ const Host = {};
155
+ /**
156
+ * Check whether a given node is a Host node or not
157
+ *
158
+ * @param node the virtual DOM node to check
159
+ * @returns whether it's a Host node or not
160
+ */
161
+ const isHost = (node) => node && node.$tag$ === Host;
162
+ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
163
+ const endHydrate = createTime('hydrateClient', tagName);
164
+ const shadowRoot = hostElm.shadowRoot;
165
+ const childRenderNodes = [];
166
+ const slotNodes = [];
167
+ const shadowRootNodes = shadowRoot ? [] : null;
168
+ const vnode = (hostRef.$vnode$ = newVNode(tagName, null));
169
+ if (!plt.$orgLocNodes$) {
170
+ initializeDocumentHydrate(doc.body, (plt.$orgLocNodes$ = new Map()));
171
+ }
172
+ hostElm[HYDRATE_ID] = hostId;
173
+ hostElm.removeAttribute(HYDRATE_ID);
174
+ clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
175
+ childRenderNodes.map((c) => {
176
+ const orgLocationId = c.$hostId$ + '.' + c.$nodeId$;
177
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
178
+ const node = c.$elm$;
179
+ if (orgLocationNode && supportsShadow && orgLocationNode['s-en'] === '') {
180
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
181
+ }
182
+ if (!shadowRoot) {
183
+ node['s-hn'] = tagName;
184
+ if (orgLocationNode) {
185
+ node['s-ol'] = orgLocationNode;
186
+ node['s-ol']['s-nr'] = node;
187
+ }
188
+ }
189
+ plt.$orgLocNodes$.delete(orgLocationId);
190
+ });
191
+ if (shadowRoot) {
192
+ shadowRootNodes.map((shadowRootNode) => {
193
+ if (shadowRootNode) {
194
+ shadowRoot.appendChild(shadowRootNode);
195
+ }
196
+ });
197
+ }
198
+ endHydrate();
199
+ };
200
+ const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
201
+ let childNodeType;
202
+ let childIdSplt;
203
+ let childVNode;
204
+ let i;
205
+ if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
206
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
207
+ if (childNodeType) {
208
+ // got the node data from the element's attribute
209
+ // `${hostId}.${nodeId}.${depth}.${index}`
210
+ childIdSplt = childNodeType.split('.');
211
+ if (childIdSplt[0] === hostId || childIdSplt[0] === '0') {
212
+ childVNode = {
213
+ $flags$: 0,
214
+ $hostId$: childIdSplt[0],
215
+ $nodeId$: childIdSplt[1],
216
+ $depth$: childIdSplt[2],
217
+ $index$: childIdSplt[3],
218
+ $tag$: node.tagName.toLowerCase(),
219
+ $elm$: node,
220
+ $attrs$: null,
221
+ $children$: null,
222
+ $key$: null,
223
+ $name$: null,
224
+ $text$: null,
225
+ };
226
+ childRenderNodes.push(childVNode);
227
+ node.removeAttribute(HYDRATE_CHILD_ID);
228
+ // this is a new child vnode
229
+ // so ensure its parent vnode has the vchildren array
230
+ if (!parentVNode.$children$) {
231
+ parentVNode.$children$ = [];
232
+ }
233
+ // add our child vnode to a specific index of the vnode's children
234
+ parentVNode.$children$[childVNode.$index$] = childVNode;
235
+ // this is now the new parent vnode for all the next child checks
236
+ parentVNode = childVNode;
237
+ if (shadowRootNodes && childVNode.$depth$ === '0') {
238
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
239
+ }
240
+ }
241
+ }
242
+ // recursively drill down, end to start so we can remove nodes
243
+ for (i = node.childNodes.length - 1; i >= 0; i--) {
244
+ clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.childNodes[i], hostId);
245
+ }
246
+ if (node.shadowRoot) {
247
+ // keep drilling down through the shadow root nodes
248
+ for (i = node.shadowRoot.childNodes.length - 1; i >= 0; i--) {
249
+ clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.shadowRoot.childNodes[i], hostId);
250
+ }
251
+ }
252
+ }
253
+ else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
254
+ // `${COMMENT_TYPE}.${hostId}.${nodeId}.${depth}.${index}`
255
+ childIdSplt = node.nodeValue.split('.');
256
+ if (childIdSplt[1] === hostId || childIdSplt[1] === '0') {
257
+ // comment node for either the host id or a 0 host id
258
+ childNodeType = childIdSplt[0];
259
+ childVNode = {
260
+ $flags$: 0,
261
+ $hostId$: childIdSplt[1],
262
+ $nodeId$: childIdSplt[2],
263
+ $depth$: childIdSplt[3],
264
+ $index$: childIdSplt[4],
265
+ $elm$: node,
266
+ $attrs$: null,
267
+ $children$: null,
268
+ $key$: null,
269
+ $name$: null,
270
+ $tag$: null,
271
+ $text$: null,
272
+ };
273
+ if (childNodeType === TEXT_NODE_ID) {
274
+ childVNode.$elm$ = node.nextSibling;
275
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* NODE_TYPE.TextNode */) {
276
+ childVNode.$text$ = childVNode.$elm$.textContent;
277
+ childRenderNodes.push(childVNode);
278
+ // remove the text comment since it's no longer needed
279
+ node.remove();
280
+ if (!parentVNode.$children$) {
281
+ parentVNode.$children$ = [];
282
+ }
283
+ parentVNode.$children$[childVNode.$index$] = childVNode;
284
+ if (shadowRootNodes && childVNode.$depth$ === '0') {
285
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
286
+ }
287
+ }
288
+ }
289
+ else if (childVNode.$hostId$ === hostId) {
290
+ // this comment node is specifcally for this host id
291
+ if (childNodeType === SLOT_NODE_ID) {
292
+ // `${SLOT_NODE_ID}.${hostId}.${nodeId}.${depth}.${index}.${slotName}`;
293
+ childVNode.$tag$ = 'slot';
294
+ if (childIdSplt[5]) {
295
+ node['s-sn'] = childVNode.$name$ = childIdSplt[5];
296
+ }
297
+ else {
298
+ node['s-sn'] = '';
299
+ }
300
+ node['s-sr'] = true;
301
+ if (shadowRootNodes) {
302
+ // browser support shadowRoot and this is a shadow dom component
303
+ // create an actual slot element
304
+ childVNode.$elm$ = doc.createElement(childVNode.$tag$);
305
+ if (childVNode.$name$) {
306
+ // add the slot name attribute
307
+ childVNode.$elm$.setAttribute('name', childVNode.$name$);
308
+ }
309
+ // insert the new slot element before the slot comment
310
+ node.parentNode.insertBefore(childVNode.$elm$, node);
311
+ // remove the slot comment since it's not needed for shadow
312
+ node.remove();
313
+ if (childVNode.$depth$ === '0') {
314
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
315
+ }
316
+ }
317
+ slotNodes.push(childVNode);
318
+ if (!parentVNode.$children$) {
319
+ parentVNode.$children$ = [];
320
+ }
321
+ parentVNode.$children$[childVNode.$index$] = childVNode;
322
+ }
323
+ else if (childNodeType === CONTENT_REF_ID) {
324
+ // `${CONTENT_REF_ID}.${hostId}`;
325
+ if (shadowRootNodes) {
326
+ // remove the content ref comment since it's not needed for shadow
327
+ node.remove();
328
+ }
329
+ }
330
+ }
331
+ }
332
+ }
333
+ else if (parentVNode && parentVNode.$tag$ === 'style') {
334
+ const vnode = newVNode(null, node.textContent);
335
+ vnode.$elm$ = node;
336
+ vnode.$index$ = '0';
337
+ parentVNode.$children$ = [vnode];
338
+ }
339
+ };
340
+ const initializeDocumentHydrate = (node, orgLocNodes) => {
341
+ if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
342
+ let i = 0;
343
+ for (; i < node.childNodes.length; i++) {
344
+ initializeDocumentHydrate(node.childNodes[i], orgLocNodes);
345
+ }
346
+ if (node.shadowRoot) {
347
+ for (i = 0; i < node.shadowRoot.childNodes.length; i++) {
348
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i], orgLocNodes);
349
+ }
350
+ }
351
+ }
352
+ else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
353
+ const childIdSplt = node.nodeValue.split('.');
354
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
355
+ orgLocNodes.set(childIdSplt[1] + '.' + childIdSplt[2], node);
356
+ node.nodeValue = '';
357
+ // useful to know if the original location is
358
+ // the root light-dom of a shadow dom component
359
+ node['s-en'] = childIdSplt[3];
360
+ }
361
+ }
362
+ };
363
+ /**
364
+ * Parse a new property value for a given property type.
365
+ *
366
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
367
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
368
+ * 1. `any`, the type given to `propValue` in the function signature
369
+ * 2. the type stored from `propType`.
370
+ *
371
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
372
+ *
373
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
374
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
375
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
376
+ * ```tsx
377
+ * <my-cmp prop-val={0}></my-cmp>
378
+ * ```
379
+ *
380
+ * HTML prop values on the other hand, will always a string
381
+ *
382
+ * @param propValue the new value to coerce to some type
383
+ * @param propType the type of the prop, expressed as a binary number
384
+ * @returns the parsed/coerced value
385
+ */
386
+ const parsePropertyValue = (propValue, propType) => {
387
+ // ensure this value is of the correct prop type
388
+ if (propValue != null && !isComplexType(propValue)) {
389
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
390
+ // per the HTML spec, any string value means it is a boolean true value
391
+ // but we'll cheat here and say that the string "false" is the boolean false
392
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
393
+ }
394
+ if (propType & 2 /* MEMBER_FLAGS.Number */) {
395
+ // force it to be a number
396
+ return parseFloat(propValue);
397
+ }
398
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
399
+ // could have been passed as a number or boolean
400
+ // but we still want it as a string
401
+ return String(propValue);
402
+ }
403
+ // redundant return here for better minification
404
+ return propValue;
405
+ }
406
+ // not sure exactly what type we want
407
+ // so no need to change to a different type
408
+ return propValue;
409
+ };
410
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
411
+ const createEvent = (ref, name, flags) => {
412
+ const elm = getElement(ref);
413
+ return {
414
+ emit: (detail) => {
415
+ return emitEvent(elm, name, {
416
+ bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
417
+ composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
418
+ cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
419
+ detail,
420
+ });
421
+ },
422
+ };
423
+ };
424
+ /**
425
+ * Helper function to create & dispatch a custom Event on a provided target
426
+ * @param elm the target of the Event
427
+ * @param name the name to give the custom Event
428
+ * @param opts options for configuring a custom Event
429
+ * @returns the custom Event
430
+ */
431
+ const emitEvent = (elm, name, opts) => {
432
+ const ev = plt.ce(name, opts);
433
+ elm.dispatchEvent(ev);
434
+ return ev;
435
+ };
436
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
437
+ const registerStyle = (scopeId, cssText, allowCS) => {
438
+ let style = styles.get(scopeId);
439
+ if (supportsConstructableStylesheets && allowCS) {
440
+ style = (style || new CSSStyleSheet());
441
+ if (typeof style === 'string') {
442
+ style = cssText;
443
+ }
444
+ else {
445
+ style.replaceSync(cssText);
446
+ }
447
+ }
448
+ else {
449
+ style = cssText;
450
+ }
451
+ styles.set(scopeId, style);
452
+ };
453
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
454
+ var _a;
455
+ let scopeId = getScopeId(cmpMeta);
456
+ const style = styles.get(scopeId);
457
+ // if an element is NOT connected then getRootNode() will return the wrong root node
458
+ // so the fallback is to always use the document for the root node in those cases
459
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
460
+ if (style) {
461
+ if (typeof style === 'string') {
462
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
463
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
464
+ let styleElm;
465
+ if (!appliedStyles) {
466
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
467
+ }
468
+ if (!appliedStyles.has(scopeId)) {
469
+ if (styleContainerNode.host &&
470
+ (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId}"]`))) {
471
+ // This is only happening on native shadow-dom, do not needs CSS var shim
472
+ styleElm.innerHTML = style;
473
+ }
474
+ else {
475
+ // TODO(STENCIL-659): Remove code implementing the CSS variable shim
476
+ {
477
+ styleElm = doc.createElement('style');
478
+ styleElm.innerHTML = style;
479
+ }
480
+ // Apply CSP nonce to the style tag if it exists
481
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
482
+ if (nonce != null) {
483
+ styleElm.setAttribute('nonce', nonce);
484
+ }
485
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
486
+ }
487
+ if (appliedStyles) {
488
+ appliedStyles.add(scopeId);
489
+ }
490
+ }
491
+ }
492
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
493
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
494
+ }
495
+ }
496
+ return scopeId;
497
+ };
498
+ const attachStyles = (hostRef) => {
499
+ const cmpMeta = hostRef.$cmpMeta$;
500
+ const elm = hostRef.$hostElement$;
501
+ const flags = cmpMeta.$flags$;
502
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
503
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
504
+ // TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
505
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
506
+ // only required when we're NOT using native shadow dom (slot)
507
+ // or this browser doesn't support native shadow dom
508
+ // and this host element was NOT created with SSR
509
+ // let's pick out the inner content for slot projection
510
+ // create a node to represent where the original
511
+ // content was first placed, which is useful later on
512
+ // DOM WRITE!!
513
+ elm['s-sc'] = scopeId;
514
+ elm.classList.add(scopeId + '-h');
515
+ }
516
+ endAttachStyles();
517
+ };
518
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
519
+ const convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, '$1{');
520
+ /**
521
+ * Production setAccessor() function based on Preact by
522
+ * Jason Miller (@developit)
523
+ * Licensed under the MIT License
524
+ * https://github.com/developit/preact/blob/master/LICENSE
525
+ *
526
+ * Modified for Stencil's compiler and vdom
527
+ */
528
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
529
+ if (oldValue !== newValue) {
530
+ let isProp = isMemberInElement(elm, memberName);
531
+ let ln = memberName.toLowerCase();
532
+ if (memberName === 'class') {
533
+ const classList = elm.classList;
534
+ const oldClasses = parseClassList(oldValue);
535
+ const newClasses = parseClassList(newValue);
536
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
537
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
538
+ }
539
+ else if (memberName === 'style') {
540
+ // update style attribute, css properties and values
541
+ {
542
+ for (const prop in oldValue) {
543
+ if (!newValue || newValue[prop] == null) {
544
+ if (prop.includes('-')) {
545
+ elm.style.removeProperty(prop);
546
+ }
547
+ else {
548
+ elm.style[prop] = '';
549
+ }
550
+ }
551
+ }
552
+ }
553
+ for (const prop in newValue) {
554
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
555
+ if (prop.includes('-')) {
556
+ elm.style.setProperty(prop, newValue[prop]);
557
+ }
558
+ else {
559
+ elm.style[prop] = newValue[prop];
560
+ }
561
+ }
562
+ }
563
+ }
564
+ else if (memberName === 'ref') {
565
+ // minifier will clean this up
566
+ if (newValue) {
567
+ newValue(elm);
568
+ }
569
+ }
570
+ else if ((!isProp ) &&
571
+ memberName[0] === 'o' &&
572
+ memberName[1] === 'n') {
573
+ // Event Handlers
574
+ // so if the member name starts with "on" and the 3rd characters is
575
+ // a capital letter, and it's not already a member on the element,
576
+ // then we're assuming it's an event listener
577
+ if (memberName[2] === '-') {
578
+ // on- prefixed events
579
+ // allows to be explicit about the dom event to listen without any magic
580
+ // under the hood:
581
+ // <my-cmp on-click> // listens for "click"
582
+ // <my-cmp on-Click> // listens for "Click"
583
+ // <my-cmp on-ionChange> // listens for "ionChange"
584
+ // <my-cmp on-EVENTS> // listens for "EVENTS"
585
+ memberName = memberName.slice(3);
586
+ }
587
+ else if (isMemberInElement(win, ln)) {
588
+ // standard event
589
+ // the JSX attribute could have been "onMouseOver" and the
590
+ // member name "onmouseover" is on the window's prototype
591
+ // so let's add the listener "mouseover", which is all lowercased
592
+ memberName = ln.slice(2);
593
+ }
594
+ else {
595
+ // custom event
596
+ // the JSX attribute could have been "onMyCustomEvent"
597
+ // so let's trim off the "on" prefix and lowercase the first character
598
+ // and add the listener "myCustomEvent"
599
+ // except for the first character, we keep the event name case
600
+ memberName = ln[2] + memberName.slice(3);
601
+ }
602
+ if (oldValue) {
603
+ plt.rel(elm, memberName, oldValue, false);
604
+ }
605
+ if (newValue) {
606
+ plt.ael(elm, memberName, newValue, false);
607
+ }
608
+ }
609
+ else {
610
+ // Set property if it exists and it's not a SVG
611
+ const isComplex = isComplexType(newValue);
612
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
613
+ try {
614
+ if (!elm.tagName.includes('-')) {
615
+ const n = newValue == null ? '' : newValue;
616
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
617
+ if (memberName === 'list') {
618
+ isProp = false;
619
+ }
620
+ else if (oldValue == null || elm[memberName] != n) {
621
+ elm[memberName] = n;
622
+ }
623
+ }
624
+ else {
625
+ elm[memberName] = newValue;
626
+ }
627
+ }
628
+ catch (e) { }
629
+ }
630
+ if (newValue == null || newValue === false) {
631
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
632
+ {
633
+ elm.removeAttribute(memberName);
634
+ }
635
+ }
636
+ }
637
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
638
+ newValue = newValue === true ? '' : newValue;
639
+ {
640
+ elm.setAttribute(memberName, newValue);
641
+ }
642
+ }
643
+ }
644
+ }
645
+ };
646
+ const parseClassListRegex = /\s/;
647
+ const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
648
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
649
+ // if the element passed in is a shadow root, which is a document fragment
650
+ // then we want to be adding attrs/props to the shadow root's "host" element
651
+ // if it's not a shadow root, then we add attrs/props to the same element
652
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
653
+ ? newVnode.$elm$.host
654
+ : newVnode.$elm$;
655
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
656
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
657
+ {
658
+ // remove attributes no longer present on the vnode by setting them to undefined
659
+ for (memberName in oldVnodeAttrs) {
660
+ if (!(memberName in newVnodeAttrs)) {
661
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
662
+ }
663
+ }
664
+ }
665
+ // add new & update changed attributes
666
+ for (memberName in newVnodeAttrs) {
667
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
668
+ }
669
+ };
670
+ /**
671
+ * Create a DOM Node corresponding to one of the children of a given VNode.
672
+ *
673
+ * @param oldParentVNode the parent VNode from the previous render
674
+ * @param newParentVNode the parent VNode from the current render
675
+ * @param childIndex the index of the VNode, in the _new_ parent node's
676
+ * children, for which we will create a new DOM node
677
+ * @param parentElm the parent DOM node which our new node will be a child of
678
+ * @returns the newly created node
679
+ */
680
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
681
+ // tslint:disable-next-line: prefer-const
682
+ const newVNode = newParentVNode.$children$[childIndex];
683
+ let i = 0;
684
+ let elm;
685
+ let childNode;
686
+ if (newVNode.$text$ !== null) {
687
+ // create text node
688
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
689
+ }
690
+ else {
691
+ if (!isSvgMode) {
692
+ isSvgMode = newVNode.$tag$ === 'svg';
693
+ }
694
+ // create element
695
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$tag$)
696
+ );
697
+ if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
698
+ isSvgMode = false;
699
+ }
700
+ // add css classes, attrs, props, listeners, etc.
701
+ {
702
+ updateElement(null, newVNode, isSvgMode);
703
+ }
704
+ if (isDef(scopeId) && elm['s-si'] !== scopeId) {
705
+ // if there is a scopeId and this is the initial render
706
+ // then let's add the scopeId as a css class
707
+ elm.classList.add((elm['s-si'] = scopeId));
708
+ }
709
+ if (newVNode.$children$) {
710
+ for (i = 0; i < newVNode.$children$.length; ++i) {
711
+ // create the node
712
+ childNode = createElm(oldParentVNode, newVNode, i);
713
+ // return node could have been null
714
+ if (childNode) {
715
+ // append our new node
716
+ elm.appendChild(childNode);
717
+ }
718
+ }
719
+ }
720
+ {
721
+ if (newVNode.$tag$ === 'svg') {
722
+ // Only reset the SVG context when we're exiting <svg> element
723
+ isSvgMode = false;
724
+ }
725
+ else if (elm.tagName === 'foreignObject') {
726
+ // Reenter SVG context when we're exiting <foreignObject> element
727
+ isSvgMode = true;
728
+ }
729
+ }
730
+ }
731
+ return elm;
732
+ };
733
+ /**
734
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
735
+ * add them to the DOM in the appropriate place.
736
+ *
737
+ * @param parentElm the DOM node which should be used as a parent for the new
738
+ * DOM nodes
739
+ * @param before a child of the `parentElm` which the new children should be
740
+ * inserted before (optional)
741
+ * @param parentVNode the parent virtual DOM node
742
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
743
+ * @param startIdx the index in the child virtual DOM nodes at which to start
744
+ * creating DOM nodes (inclusive)
745
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
746
+ * creating DOM nodes (inclusive)
747
+ */
748
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
749
+ let containerElm = (parentElm);
750
+ let childNode;
751
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
752
+ containerElm = containerElm.shadowRoot;
753
+ }
754
+ for (; startIdx <= endIdx; ++startIdx) {
755
+ if (vnodes[startIdx]) {
756
+ childNode = createElm(null, parentVNode, startIdx);
757
+ if (childNode) {
758
+ vnodes[startIdx].$elm$ = childNode;
759
+ containerElm.insertBefore(childNode, before);
760
+ }
761
+ }
762
+ }
763
+ };
764
+ /**
765
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
766
+ * This can be used to, for instance, clean up after a list of children which
767
+ * should no longer be shown.
768
+ *
769
+ * This function also handles some of Stencil's slot relocation logic.
770
+ *
771
+ * @param vnodes a list of virtual DOM nodes to remove
772
+ * @param startIdx the index at which to start removing nodes (inclusive)
773
+ * @param endIdx the index at which to stop removing nodes (inclusive)
774
+ * @param vnode a VNode
775
+ * @param elm an element
776
+ */
777
+ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
778
+ for (; startIdx <= endIdx; ++startIdx) {
779
+ if ((vnode = vnodes[startIdx])) {
780
+ elm = vnode.$elm$;
781
+ callNodeRefs(vnode);
782
+ // remove the vnode's element from the dom
783
+ elm.remove();
784
+ }
785
+ }
786
+ };
787
+ /**
788
+ * Reconcile the children of a new VNode with the children of an old VNode by
789
+ * traversing the two collections of children, identifying nodes that are
790
+ * conserved or changed, calling out to `patch` to make any necessary
791
+ * updates to the DOM, and rearranging DOM nodes as needed.
792
+ *
793
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
794
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
795
+ * 'windows' by storing start and end indices and references to the
796
+ * corresponding array entries. Initially the two 'windows' are basically equal
797
+ * to the entire array, but we progressively narrow the windows until there are
798
+ * no children left to update by doing the following:
799
+ *
800
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
801
+ * that if we have an initial array like the following we'll end up dealing
802
+ * only with a window bounded by the highlighted elements:
803
+ *
804
+ * [null, null, VNode1 , ... , VNode2, null, null]
805
+ * ^^^^^^ ^^^^^^
806
+ *
807
+ * 2. Check to see if the elements at the head and tail positions are equal
808
+ * across the windows. This will basically detect elements which haven't
809
+ * been added, removed, or changed position, i.e. if you had the following
810
+ * VNode elements (represented as HTML):
811
+ *
812
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
813
+ * newVNode: `<div><p><span>THERE</span></p></div>`
814
+ *
815
+ * Then when comparing the children of the `<div>` tag we check the equality
816
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
817
+ * same tag in the same position, we'd be able to avoid completely
818
+ * re-rendering the subtree under them with a new DOM element and would just
819
+ * call out to `patch` to handle reconciling their children and so on.
820
+ *
821
+ * 3. Check, for both windows, to see if the element at the beginning of the
822
+ * window corresponds to the element at the end of the other window. This is
823
+ * a heuristic which will let us identify _some_ situations in which
824
+ * elements have changed position, for instance it _should_ detect that the
825
+ * children nodes themselves have not changed but merely moved in the
826
+ * following example:
827
+ *
828
+ * oldVNode: `<div><element-one /><element-two /></div>`
829
+ * newVNode: `<div><element-two /><element-one /></div>`
830
+ *
831
+ * If we find cases like this then we also need to move the concrete DOM
832
+ * elements corresponding to the moved children to write the re-order to the
833
+ * DOM.
834
+ *
835
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
836
+ * nodes in the old children which have the same key as the first element in
837
+ * our window on the new children. If we find such a node we handle calling
838
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
839
+ * what we find.
840
+ *
841
+ * Finally, once we've narrowed our 'windows' to the point that either of them
842
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
843
+ * insertion or deletion that needs to happen to get a DOM state that correctly
844
+ * reflects the new child VNodes. If, for instance, after our window on the old
845
+ * children has collapsed we still have more nodes on the new children that
846
+ * we haven't dealt with yet then we need to add them, or if the new children
847
+ * collapse but we still have unhandled _old_ children then we need to make
848
+ * sure the corresponding DOM nodes are removed.
849
+ *
850
+ * @param parentElm the node into which the parent VNode is rendered
851
+ * @param oldCh the old children of the parent node
852
+ * @param newVNode the new VNode which will replace the parent
853
+ * @param newCh the new children of the parent node
854
+ */
855
+ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
856
+ let oldStartIdx = 0;
857
+ let newStartIdx = 0;
858
+ let oldEndIdx = oldCh.length - 1;
859
+ let oldStartVnode = oldCh[0];
860
+ let oldEndVnode = oldCh[oldEndIdx];
861
+ let newEndIdx = newCh.length - 1;
862
+ let newStartVnode = newCh[0];
863
+ let newEndVnode = newCh[newEndIdx];
864
+ let node;
865
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
866
+ if (oldStartVnode == null) {
867
+ // VNode might have been moved left
868
+ oldStartVnode = oldCh[++oldStartIdx];
869
+ }
870
+ else if (oldEndVnode == null) {
871
+ oldEndVnode = oldCh[--oldEndIdx];
872
+ }
873
+ else if (newStartVnode == null) {
874
+ newStartVnode = newCh[++newStartIdx];
875
+ }
876
+ else if (newEndVnode == null) {
877
+ newEndVnode = newCh[--newEndIdx];
878
+ }
879
+ else if (isSameVnode(oldStartVnode, newStartVnode)) {
880
+ // if the start nodes are the same then we should patch the new VNode
881
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
882
+ // indices to reflect that. We don't need to move any DOM Nodes around
883
+ // since things are matched up in order.
884
+ patch(oldStartVnode, newStartVnode);
885
+ oldStartVnode = oldCh[++oldStartIdx];
886
+ newStartVnode = newCh[++newStartIdx];
887
+ }
888
+ else if (isSameVnode(oldEndVnode, newEndVnode)) {
889
+ // likewise, if the end nodes are the same we patch new onto old and
890
+ // decrement our end indices, and also likewise in this case we don't
891
+ // need to move any DOM Nodes.
892
+ patch(oldEndVnode, newEndVnode);
893
+ oldEndVnode = oldCh[--oldEndIdx];
894
+ newEndVnode = newCh[--newEndIdx];
895
+ }
896
+ else if (isSameVnode(oldStartVnode, newEndVnode)) {
897
+ patch(oldStartVnode, newEndVnode);
898
+ // We need to move the element for `oldStartVnode` into a position which
899
+ // will be appropriate for `newEndVnode`. For this we can use
900
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
901
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
902
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
903
+ //
904
+ // <old-start-node />
905
+ // <some-intervening-node />
906
+ // <old-end-node />
907
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
908
+ // <next-sibling />
909
+ //
910
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
911
+ // the node for `oldStartVnode` at the end of the children of
912
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
913
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
914
+ // append it to the children of the parent element.
915
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
916
+ oldStartVnode = oldCh[++oldStartIdx];
917
+ newEndVnode = newCh[--newEndIdx];
918
+ }
919
+ else if (isSameVnode(oldEndVnode, newStartVnode)) {
920
+ patch(oldEndVnode, newStartVnode);
921
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
922
+ // the same node, so since we're here we know that they are not. Thus we
923
+ // can move the element for `oldEndVnode` _before_ the element for
924
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
925
+ // future.
926
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
927
+ oldEndVnode = oldCh[--oldEndIdx];
928
+ newStartVnode = newCh[++newStartIdx];
929
+ }
930
+ else {
931
+ {
932
+ // We either didn't find an element in the old children that matches
933
+ // the key of the first new child OR the build is not using `key`
934
+ // attributes at all. In either case we need to create a new element
935
+ // for the new node.
936
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
937
+ newStartVnode = newCh[++newStartIdx];
938
+ }
939
+ if (node) {
940
+ // if we created a new node then handle inserting it to the DOM
941
+ {
942
+ oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
943
+ }
944
+ }
945
+ }
946
+ }
947
+ if (oldStartIdx > oldEndIdx) {
948
+ // we have some more new nodes to add which don't match up with old nodes
949
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
950
+ }
951
+ else if (newStartIdx > newEndIdx) {
952
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
953
+ // in the new array, so lets remove them (which entails cleaning up the
954
+ // relevant DOM nodes)
955
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
956
+ }
957
+ };
958
+ /**
959
+ * Compare two VNodes to determine if they are the same
960
+ *
961
+ * **NB**: This function is an equality _heuristic_ based on the available
962
+ * information set on the two VNodes and can be misleading under certain
963
+ * circumstances. In particular, if the two nodes do not have `key` attrs
964
+ * (available under `$key$` on VNodes) then the function falls back on merely
965
+ * checking that they have the same tag.
966
+ *
967
+ * So, in other words, if `key` attrs are not set on VNodes which may be
968
+ * changing order within a `children` array or something along those lines then
969
+ * we could obtain a false negative and then have to do needless re-rendering
970
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
971
+ *
972
+ * @param leftVNode the first VNode to check
973
+ * @param rightVNode the second VNode to check
974
+ * @returns whether they're equal or not
975
+ */
976
+ const isSameVnode = (leftVNode, rightVNode) => {
977
+ // compare if two vnode to see if they're "technically" the same
978
+ // need to have the same element tag, and same key to be the same
979
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
980
+ return true;
981
+ }
982
+ return false;
983
+ };
984
+ /**
985
+ * Handle reconciling an outdated VNode with a new one which corresponds to
986
+ * it. This function handles flushing updates to the DOM and reconciling the
987
+ * children of the two nodes (if any).
988
+ *
989
+ * @param oldVNode an old VNode whose DOM element and children we want to update
990
+ * @param newVNode a new VNode representing an updated version of the old one
991
+ */
992
+ const patch = (oldVNode, newVNode) => {
993
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
994
+ const oldChildren = oldVNode.$children$;
995
+ const newChildren = newVNode.$children$;
996
+ const tag = newVNode.$tag$;
997
+ const text = newVNode.$text$;
998
+ if (text === null) {
999
+ {
1000
+ // test if we're rendering an svg element, or still rendering nodes inside of one
1001
+ // only add this to the when the compiler sees we're using an svg somewhere
1002
+ isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
1003
+ }
1004
+ {
1005
+ if (tag === 'slot')
1006
+ ;
1007
+ else {
1008
+ // either this is the first render of an element OR it's an update
1009
+ // AND we already know it's possible it could have changed
1010
+ // this updates the element's css classes, attrs, props, listeners, etc.
1011
+ updateElement(oldVNode, newVNode, isSvgMode);
1012
+ }
1013
+ }
1014
+ if (oldChildren !== null && newChildren !== null) {
1015
+ // looks like there's child vnodes for both the old and new vnodes
1016
+ // so we need to call `updateChildren` to reconcile them
1017
+ updateChildren(elm, oldChildren, newVNode, newChildren);
1018
+ }
1019
+ else if (newChildren !== null) {
1020
+ // no old child vnodes, but there are new child vnodes to add
1021
+ if (oldVNode.$text$ !== null) {
1022
+ // the old vnode was text, so be sure to clear it out
1023
+ elm.textContent = '';
1024
+ }
1025
+ // add the new vnode children
1026
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
1027
+ }
1028
+ else if (oldChildren !== null) {
1029
+ // no new child vnodes, but there are old child vnodes to remove
1030
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
1031
+ }
1032
+ if (isSvgMode && tag === 'svg') {
1033
+ isSvgMode = false;
1034
+ }
1035
+ }
1036
+ else if (oldVNode.$text$ !== text) {
1037
+ // update the text content for the text only vnode
1038
+ // and also only if the text is different than before
1039
+ elm.data = text;
1040
+ }
1041
+ };
1042
+ const callNodeRefs = (vNode) => {
1043
+ {
1044
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1045
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
1046
+ }
1047
+ };
1048
+ /**
1049
+ * The main entry point for Stencil's virtual DOM-based rendering engine
1050
+ *
1051
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1052
+ * function will handle creating a virtual DOM tree with a single root, patching
1053
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
1054
+ * relocation, and reflecting attributes.
1055
+ *
1056
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
1057
+ * the DOM node into which it should be rendered.
1058
+ * @param renderFnResults the virtual DOM nodes to be rendered
1059
+ */
1060
+ const renderVdom = (hostRef, renderFnResults) => {
1061
+ const hostElm = hostRef.$hostElement$;
1062
+ const cmpMeta = hostRef.$cmpMeta$;
1063
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1064
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1065
+ hostTagName = hostElm.tagName;
1066
+ if (cmpMeta.$attrsToReflect$) {
1067
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1068
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1069
+ }
1070
+ rootVnode.$tag$ = null;
1071
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1072
+ hostRef.$vnode$ = rootVnode;
1073
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
1074
+ {
1075
+ scopeId = hostElm['s-sc'];
1076
+ }
1077
+ // synchronous patch
1078
+ patch(oldVNode, rootVnode);
1079
+ };
1080
+ const attachToAncestor = (hostRef, ancestorComponent) => {
1081
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1082
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1083
+ }
1084
+ };
1085
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
1086
+ {
1087
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1088
+ }
1089
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1090
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1091
+ return;
1092
+ }
1093
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1094
+ // there is no ancestor component or the ancestor component
1095
+ // has already fired off its lifecycle update then
1096
+ // fire off the initial update
1097
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1098
+ return writeTask(dispatch) ;
1099
+ };
1100
+ const dispatchHooks = (hostRef, isInitialLoad) => {
1101
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1102
+ const instance = hostRef.$lazyInstance$ ;
1103
+ let promise;
1104
+ if (isInitialLoad) {
1105
+ {
1106
+ hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
1107
+ if (hostRef.$queuedListeners$) {
1108
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1109
+ hostRef.$queuedListeners$ = null;
1110
+ }
1111
+ }
1112
+ }
1113
+ endSchedule();
1114
+ return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1115
+ };
1116
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1117
+ // updateComponent
1118
+ const elm = hostRef.$hostElement$;
1119
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1120
+ const rc = elm['s-rc'];
1121
+ if (isInitialLoad) {
1122
+ // DOM WRITE!
1123
+ attachStyles(hostRef);
1124
+ }
1125
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1126
+ {
1127
+ callRender(hostRef, instance);
1128
+ }
1129
+ if (rc) {
1130
+ // ok, so turns out there are some child host elements
1131
+ // waiting on this parent element to load
1132
+ // let's fire off all update callbacks waiting
1133
+ rc.map((cb) => cb());
1134
+ elm['s-rc'] = undefined;
1135
+ }
1136
+ endRender();
1137
+ endUpdate();
1138
+ {
1139
+ const childrenPromises = elm['s-p'];
1140
+ const postUpdate = () => postUpdateComponent(hostRef);
1141
+ if (childrenPromises.length === 0) {
1142
+ postUpdate();
1143
+ }
1144
+ else {
1145
+ Promise.all(childrenPromises).then(postUpdate);
1146
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1147
+ childrenPromises.length = 0;
1148
+ }
1149
+ }
1150
+ };
1151
+ const callRender = (hostRef, instance, elm) => {
1152
+ try {
1153
+ instance = instance.render() ;
1154
+ {
1155
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1156
+ }
1157
+ {
1158
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1159
+ }
1160
+ {
1161
+ {
1162
+ // looks like we've got child nodes to render into this host element
1163
+ // or we need to update the css class/attrs on the host element
1164
+ // DOM WRITE!
1165
+ {
1166
+ renderVdom(hostRef, instance);
1167
+ }
1168
+ }
1169
+ }
1170
+ }
1171
+ catch (e) {
1172
+ consoleError(e, hostRef.$hostElement$);
1173
+ }
1174
+ return null;
1175
+ };
1176
+ const postUpdateComponent = (hostRef) => {
1177
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1178
+ const elm = hostRef.$hostElement$;
1179
+ const endPostUpdate = createTime('postUpdate', tagName);
1180
+ const instance = hostRef.$lazyInstance$ ;
1181
+ const ancestorComponent = hostRef.$ancestorComponent$;
1182
+ {
1183
+ safeCall(instance, 'componentDidRender');
1184
+ }
1185
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1186
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1187
+ {
1188
+ // DOM WRITE!
1189
+ addHydratedFlag(elm);
1190
+ }
1191
+ {
1192
+ safeCall(instance, 'componentDidLoad');
1193
+ }
1194
+ endPostUpdate();
1195
+ {
1196
+ hostRef.$onReadyResolve$(elm);
1197
+ if (!ancestorComponent) {
1198
+ appDidLoad();
1199
+ }
1200
+ }
1201
+ }
1202
+ else {
1203
+ endPostUpdate();
1204
+ }
1205
+ {
1206
+ hostRef.$onInstanceResolve$(elm);
1207
+ }
1208
+ // load events fire from bottom to top
1209
+ // the deepest elements load first then bubbles up
1210
+ {
1211
+ if (hostRef.$onRenderResolve$) {
1212
+ hostRef.$onRenderResolve$();
1213
+ hostRef.$onRenderResolve$ = undefined;
1214
+ }
1215
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1216
+ nextTick(() => scheduleUpdate(hostRef, false));
1217
+ }
1218
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1219
+ }
1220
+ // ( •_•)
1221
+ // ( •_•)>⌐■-■
1222
+ // (⌐■_■)
1223
+ };
1224
+ const appDidLoad = (who) => {
1225
+ // on appload
1226
+ // we have finish the first big initial render
1227
+ {
1228
+ addHydratedFlag(doc.documentElement);
1229
+ }
1230
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1231
+ };
1232
+ const safeCall = (instance, method, arg) => {
1233
+ if (instance && instance[method]) {
1234
+ try {
1235
+ return instance[method](arg);
1236
+ }
1237
+ catch (e) {
1238
+ consoleError(e);
1239
+ }
1240
+ }
1241
+ return undefined;
1242
+ };
1243
+ const then = (promise, thenFn) => {
1244
+ return promise && promise.then ? promise.then(thenFn) : thenFn();
1245
+ };
1246
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1247
+ ;
1248
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1249
+ const setValue = (ref, propName, newVal, cmpMeta) => {
1250
+ // check our new property value against our internal value
1251
+ const hostRef = getHostRef(ref);
1252
+ const elm = hostRef.$hostElement$ ;
1253
+ const oldVal = hostRef.$instanceValues$.get(propName);
1254
+ const flags = hostRef.$flags$;
1255
+ const instance = hostRef.$lazyInstance$ ;
1256
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1257
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1258
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1259
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1260
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1261
+ // gadzooks! the property's value has changed!!
1262
+ // set our new value!
1263
+ hostRef.$instanceValues$.set(propName, newVal);
1264
+ if (instance) {
1265
+ // get an array of method names of watch functions to call
1266
+ if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1267
+ const watchMethods = cmpMeta.$watchers$[propName];
1268
+ if (watchMethods) {
1269
+ // this instance is watching for when this property changed
1270
+ watchMethods.map((watchMethodName) => {
1271
+ try {
1272
+ // fire off each of the watch methods that are watching this property
1273
+ instance[watchMethodName](newVal, oldVal, propName);
1274
+ }
1275
+ catch (e) {
1276
+ consoleError(e, elm);
1277
+ }
1278
+ });
1279
+ }
1280
+ }
1281
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1282
+ // looks like this value actually changed, so we've got work to do!
1283
+ // but only if we've already rendered, otherwise just chill out
1284
+ // queue that we need to do an update, but don't worry about queuing
1285
+ // up millions cuz this function ensures it only runs once
1286
+ scheduleUpdate(hostRef, false);
1287
+ }
1288
+ }
1289
+ }
1290
+ };
1291
+ /**
1292
+ * Attach a series of runtime constructs to a compiled Stencil component
1293
+ * constructor, including getters and setters for the `@Prop` and `@State`
1294
+ * decorators, callbacks for when attributes change, and so on.
1295
+ *
1296
+ * @param Cstr the constructor for a component that we need to process
1297
+ * @param cmpMeta metadata collected previously about the component
1298
+ * @param flags a number used to store a series of bit flags
1299
+ * @returns a reference to the same constructor passed in (but now mutated)
1300
+ */
1301
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1302
+ if (cmpMeta.$members$) {
1303
+ if (Cstr.watchers) {
1304
+ cmpMeta.$watchers$ = Cstr.watchers;
1305
+ }
1306
+ // It's better to have a const than two Object.entries()
1307
+ const members = Object.entries(cmpMeta.$members$);
1308
+ const prototype = Cstr.prototype;
1309
+ members.map(([memberName, [memberFlags]]) => {
1310
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1311
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1312
+ // proxyComponent - prop
1313
+ Object.defineProperty(prototype, memberName, {
1314
+ get() {
1315
+ // proxyComponent, get value
1316
+ return getValue(this, memberName);
1317
+ },
1318
+ set(newValue) {
1319
+ // proxyComponent, set value
1320
+ setValue(this, memberName, newValue, cmpMeta);
1321
+ },
1322
+ configurable: true,
1323
+ enumerable: true,
1324
+ });
1325
+ }
1326
+ else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1327
+ memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1328
+ // proxyComponent - method
1329
+ Object.defineProperty(prototype, memberName, {
1330
+ value(...args) {
1331
+ const ref = getHostRef(this);
1332
+ return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1333
+ },
1334
+ });
1335
+ }
1336
+ });
1337
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1338
+ const attrNameToPropName = new Map();
1339
+ prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1340
+ plt.jmp(() => {
1341
+ const propName = attrNameToPropName.get(attrName);
1342
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1343
+ // in the case where an attribute was set inline.
1344
+ // ```html
1345
+ // <my-component some-attribute="some-value"></my-component>
1346
+ // ```
1347
+ //
1348
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1349
+ // programmatically changes it before it has been upgraded as shown below:
1350
+ //
1351
+ // ```html
1352
+ // <!-- this component has _not_ been upgraded yet -->
1353
+ // <my-component id="test" some-attribute="some-value"></my-component>
1354
+ // <script>
1355
+ // // grab non-upgraded component
1356
+ // el = document.querySelector("#test");
1357
+ // el.someAttribute = "another-value";
1358
+ // // upgrade component
1359
+ // customElements.define('my-component', MyComponent);
1360
+ // </script>
1361
+ // ```
1362
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1363
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1364
+ // to the value that was set inline i.e. "some-value" from above example. When
1365
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1366
+ //
1367
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1368
+ // by connectedCallback as this attributeChangedCallback will not fire.
1369
+ //
1370
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1371
+ //
1372
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1373
+ // properties here given that this goes against best practices outlined here
1374
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1375
+ if (this.hasOwnProperty(propName)) {
1376
+ newValue = this[propName];
1377
+ delete this[propName];
1378
+ }
1379
+ else if (prototype.hasOwnProperty(propName) &&
1380
+ typeof this[propName] === 'number' &&
1381
+ this[propName] == newValue) {
1382
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1383
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1384
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1385
+ return;
1386
+ }
1387
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1388
+ });
1389
+ };
1390
+ // create an array of attributes to observe
1391
+ // and also create a map of html attribute name to js property name
1392
+ Cstr.observedAttributes = members
1393
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1394
+ .map(([propName, m]) => {
1395
+ const attrName = m[1] || propName;
1396
+ attrNameToPropName.set(attrName, propName);
1397
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1398
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
1399
+ }
1400
+ return attrName;
1401
+ });
1402
+ }
1403
+ }
1404
+ return Cstr;
1405
+ };
1406
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1407
+ // initializeComponent
1408
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1409
+ {
1410
+ // we haven't initialized this element yet
1411
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1412
+ // lazy loaded components
1413
+ // request the component's implementation to be
1414
+ // wired up with the host element
1415
+ Cstr = loadModule(cmpMeta);
1416
+ if (Cstr.then) {
1417
+ // Await creates a micro-task avoid if possible
1418
+ const endLoad = uniqueTime();
1419
+ Cstr = await Cstr;
1420
+ endLoad();
1421
+ }
1422
+ if (!Cstr.isProxied) {
1423
+ // we've never proxied this Constructor before
1424
+ // let's add the getters/setters to its prototype before
1425
+ // the first time we create an instance of the implementation
1426
+ {
1427
+ cmpMeta.$watchers$ = Cstr.watchers;
1428
+ }
1429
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1430
+ Cstr.isProxied = true;
1431
+ }
1432
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1433
+ // ok, time to construct the instance
1434
+ // but let's keep track of when we start and stop
1435
+ // so that the getters/setters don't incorrectly step on data
1436
+ {
1437
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1438
+ }
1439
+ // construct the lazy-loaded component implementation
1440
+ // passing the hostRef is very important during
1441
+ // construction in order to directly wire together the
1442
+ // host element and the lazy-loaded instance
1443
+ try {
1444
+ new Cstr(hostRef);
1445
+ }
1446
+ catch (e) {
1447
+ consoleError(e);
1448
+ }
1449
+ {
1450
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1451
+ }
1452
+ {
1453
+ hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1454
+ }
1455
+ endNewInstance();
1456
+ fireConnectedCallback(hostRef.$lazyInstance$);
1457
+ }
1458
+ if (Cstr.style) {
1459
+ // this component has styles but we haven't registered them yet
1460
+ let style = Cstr.style;
1461
+ const scopeId = getScopeId(cmpMeta);
1462
+ if (!styles.has(scopeId)) {
1463
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1464
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1465
+ endRegisterStyles();
1466
+ }
1467
+ }
1468
+ }
1469
+ // we've successfully created a lazy instance
1470
+ const ancestorComponent = hostRef.$ancestorComponent$;
1471
+ const schedule = () => scheduleUpdate(hostRef, true);
1472
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1473
+ // this is the initial load and this component it has an ancestor component
1474
+ // but the ancestor component has NOT fired its will update lifecycle yet
1475
+ // so let's just cool our jets and wait for the ancestor to continue first
1476
+ // this will get fired off when the ancestor component
1477
+ // finally gets around to rendering its lazy self
1478
+ // fire off the initial update
1479
+ ancestorComponent['s-rc'].push(schedule);
1480
+ }
1481
+ else {
1482
+ schedule();
1483
+ }
1484
+ };
1485
+ const fireConnectedCallback = (instance) => {
1486
+ {
1487
+ safeCall(instance, 'connectedCallback');
1488
+ }
1489
+ };
1490
+ const connectedCallback = (elm) => {
1491
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1492
+ const hostRef = getHostRef(elm);
1493
+ const cmpMeta = hostRef.$cmpMeta$;
1494
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1495
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1496
+ // first time this component has connected
1497
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1498
+ let hostId;
1499
+ {
1500
+ hostId = elm.getAttribute(HYDRATE_ID);
1501
+ if (hostId) {
1502
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1503
+ const scopeId = addStyle(elm.shadowRoot, cmpMeta);
1504
+ elm.classList.remove(scopeId + '-h', scopeId + '-s');
1505
+ }
1506
+ initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
1507
+ }
1508
+ }
1509
+ {
1510
+ // find the first ancestor component (if there is one) and register
1511
+ // this component as one of the actively loading child components for its ancestor
1512
+ let ancestorComponent = elm;
1513
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1514
+ // climb up the ancestors looking for the first
1515
+ // component that hasn't finished its lifecycle update yet
1516
+ if ((ancestorComponent.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
1517
+ ancestorComponent.hasAttribute('s-id') &&
1518
+ ancestorComponent['s-p']) ||
1519
+ ancestorComponent['s-p']) {
1520
+ // we found this components first ancestor component
1521
+ // keep a reference to this component's ancestor component
1522
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1523
+ break;
1524
+ }
1525
+ }
1526
+ }
1527
+ // Lazy properties
1528
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1529
+ if (cmpMeta.$members$) {
1530
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1531
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1532
+ const value = elm[memberName];
1533
+ delete elm[memberName];
1534
+ elm[memberName] = value;
1535
+ }
1536
+ });
1537
+ }
1538
+ {
1539
+ initializeComponent(elm, hostRef, cmpMeta);
1540
+ }
1541
+ }
1542
+ else {
1543
+ // not the first time this has connected
1544
+ // reattach any event listeners to the host
1545
+ // since they would have been removed when disconnected
1546
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1547
+ // fire off connectedCallback() on component instance
1548
+ fireConnectedCallback(hostRef.$lazyInstance$);
1549
+ }
1550
+ endConnected();
1551
+ }
1552
+ };
1553
+ const disconnectedCallback = (elm) => {
1554
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1555
+ const hostRef = getHostRef(elm);
1556
+ const instance = hostRef.$lazyInstance$ ;
1557
+ {
1558
+ if (hostRef.$rmListeners$) {
1559
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
1560
+ hostRef.$rmListeners$ = undefined;
1561
+ }
1562
+ }
1563
+ {
1564
+ safeCall(instance, 'disconnectedCallback');
1565
+ }
1566
+ }
1567
+ };
1568
+ const bootstrapLazy = (lazyBundles, options = {}) => {
1569
+ var _a;
1570
+ const endBootstrap = createTime();
1571
+ const cmpTags = [];
1572
+ const exclude = options.exclude || [];
1573
+ const customElements = win.customElements;
1574
+ const head = doc.head;
1575
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1576
+ const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1577
+ const deferredConnectedCallbacks = [];
1578
+ const styles = /*@__PURE__*/ doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1579
+ let appLoadFallback;
1580
+ let isBootstrapping = true;
1581
+ let i = 0;
1582
+ Object.assign(plt, options);
1583
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1584
+ {
1585
+ // If the app is already hydrated there is not point to disable the
1586
+ // async queue. This will improve the first input delay
1587
+ plt.$flags$ |= 2 /* PLATFORM_FLAGS.appLoaded */;
1588
+ }
1589
+ {
1590
+ for (; i < styles.length; i++) {
1591
+ registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
1592
+ }
1593
+ }
1594
+ lazyBundles.map((lazyBundle) => {
1595
+ lazyBundle[1].map((compactMeta) => {
1596
+ const cmpMeta = {
1597
+ $flags$: compactMeta[0],
1598
+ $tagName$: compactMeta[1],
1599
+ $members$: compactMeta[2],
1600
+ $listeners$: compactMeta[3],
1601
+ };
1602
+ {
1603
+ cmpMeta.$members$ = compactMeta[2];
1604
+ }
1605
+ {
1606
+ cmpMeta.$listeners$ = compactMeta[3];
1607
+ }
1608
+ {
1609
+ cmpMeta.$attrsToReflect$ = [];
1610
+ }
1611
+ {
1612
+ cmpMeta.$watchers$ = {};
1613
+ }
1614
+ const tagName = cmpMeta.$tagName$;
1615
+ const HostElement = class extends HTMLElement {
1616
+ // StencilLazyHost
1617
+ constructor(self) {
1618
+ // @ts-ignore
1619
+ super(self);
1620
+ self = this;
1621
+ registerHost(self, cmpMeta);
1622
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1623
+ // this component is using shadow dom
1624
+ // and this browser supports shadow dom
1625
+ // add the read-only property "shadowRoot" to the host element
1626
+ // adding the shadow root build conditionals to minimize runtime
1627
+ {
1628
+ {
1629
+ self.attachShadow({ mode: 'open' });
1630
+ }
1631
+ }
1632
+ }
1633
+ }
1634
+ connectedCallback() {
1635
+ if (appLoadFallback) {
1636
+ clearTimeout(appLoadFallback);
1637
+ appLoadFallback = null;
1638
+ }
1639
+ if (isBootstrapping) {
1640
+ // connectedCallback will be processed once all components have been registered
1641
+ deferredConnectedCallbacks.push(this);
1642
+ }
1643
+ else {
1644
+ plt.jmp(() => connectedCallback(this));
1645
+ }
1646
+ }
1647
+ disconnectedCallback() {
1648
+ plt.jmp(() => disconnectedCallback(this));
1649
+ }
1650
+ componentOnReady() {
1651
+ return getHostRef(this).$onReadyPromise$;
1652
+ }
1653
+ };
1654
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1655
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1656
+ cmpTags.push(tagName);
1657
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1658
+ }
1659
+ });
1660
+ });
1661
+ {
1662
+ visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1663
+ visibilityStyle.setAttribute('data-styles', '');
1664
+ // Apply CSP nonce to the style tag if it exists
1665
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1666
+ if (nonce != null) {
1667
+ visibilityStyle.setAttribute('nonce', nonce);
1668
+ }
1669
+ head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1670
+ }
1671
+ // Process deferred connectedCallbacks now all components have been registered
1672
+ isBootstrapping = false;
1673
+ if (deferredConnectedCallbacks.length) {
1674
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1675
+ }
1676
+ else {
1677
+ {
1678
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1679
+ }
1680
+ }
1681
+ // Fallback appLoad event
1682
+ endBootstrap();
1683
+ };
1684
+ const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
1685
+ if (listeners) {
1686
+ listeners.map(([flags, name, method]) => {
1687
+ const target = elm;
1688
+ const handler = hostListenerProxy(hostRef, method);
1689
+ const opts = hostListenerOpts(flags);
1690
+ plt.ael(target, name, handler, opts);
1691
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
1692
+ });
1693
+ }
1694
+ };
1695
+ const hostListenerProxy = (hostRef, methodName) => (ev) => {
1696
+ try {
1697
+ {
1698
+ if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
1699
+ // instance is ready, let's call it's member method for this event
1700
+ hostRef.$lazyInstance$[methodName](ev);
1701
+ }
1702
+ else {
1703
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
1704
+ }
1705
+ }
1706
+ }
1707
+ catch (e) {
1708
+ consoleError(e);
1709
+ }
1710
+ };
1711
+ // prettier-ignore
1712
+ const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
1713
+ /**
1714
+ * Assigns the given value to the nonce property on the runtime platform object.
1715
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1716
+ * @param nonce The value to be assigned to the platform nonce property.
1717
+ * @returns void
1718
+ */
1719
+ const setNonce = (nonce) => (plt.$nonce$ = nonce);
1720
+ const hostRefs = /*@__PURE__*/ new WeakMap();
1721
+ const getHostRef = (ref) => hostRefs.get(ref);
1722
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1723
+ const registerHost = (elm, cmpMeta) => {
1724
+ const hostRef = {
1725
+ $flags$: 0,
1726
+ $hostElement$: elm,
1727
+ $cmpMeta$: cmpMeta,
1728
+ $instanceValues$: new Map(),
1729
+ };
1730
+ {
1731
+ hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
1732
+ }
1733
+ {
1734
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1735
+ elm['s-p'] = [];
1736
+ elm['s-rc'] = [];
1737
+ }
1738
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1739
+ return hostRefs.set(elm, hostRef);
1740
+ };
1741
+ const isMemberInElement = (elm, memberName) => memberName in elm;
1742
+ const consoleError = (e, el) => (0, console.error)(e, el);
1743
+ const cmpModules = /*@__PURE__*/ new Map();
1744
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1745
+ // loadModuleImport
1746
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1747
+ const bundleId = cmpMeta.$lazyBundleId$;
1748
+ const module = cmpModules.get(bundleId) ;
1749
+ if (module) {
1750
+ return module[exportName];
1751
+ }
1752
+
1753
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1754
+ const processMod = importedModule => {
1755
+ cmpModules.set(bundleId, importedModule);
1756
+ return importedModule[exportName];
1757
+ }
1758
+ switch(bundleId) {
1759
+
1760
+ case 'b2b-alert':
1761
+ return import(
1762
+ /* webpackMode: "lazy" */
1763
+ './b2b-alert.entry.js').then(processMod, consoleError);
1764
+ case 'b2b-anchor':
1765
+ return import(
1766
+ /* webpackMode: "lazy" */
1767
+ './b2b-anchor.entry.js').then(processMod, consoleError);
1768
+ case 'b2b-checkbox':
1769
+ return import(
1770
+ /* webpackMode: "lazy" */
1771
+ './b2b-checkbox.entry.js').then(processMod, consoleError);
1772
+ case 'b2b-checkbox-group':
1773
+ return import(
1774
+ /* webpackMode: "lazy" */
1775
+ './b2b-checkbox-group.entry.js').then(processMod, consoleError);
1776
+ case 'b2b-dropdown':
1777
+ return import(
1778
+ /* webpackMode: "lazy" */
1779
+ './b2b-dropdown.entry.js').then(processMod, consoleError);
1780
+ case 'b2b-grid':
1781
+ return import(
1782
+ /* webpackMode: "lazy" */
1783
+ './b2b-grid.entry.js').then(processMod, consoleError);
1784
+ case 'b2b-grid-col':
1785
+ return import(
1786
+ /* webpackMode: "lazy" */
1787
+ './b2b-grid-col.entry.js').then(processMod, consoleError);
1788
+ case 'b2b-grid-row':
1789
+ return import(
1790
+ /* webpackMode: "lazy" */
1791
+ './b2b-grid-row.entry.js').then(processMod, consoleError);
1792
+ case 'b2b-label':
1793
+ return import(
1794
+ /* webpackMode: "lazy" */
1795
+ './b2b-label.entry.js').then(processMod, consoleError);
1796
+ case 'b2b-modal':
1797
+ return import(
1798
+ /* webpackMode: "lazy" */
1799
+ './b2b-modal.entry.js').then(processMod, consoleError);
1800
+ case 'b2b-pagination':
1801
+ return import(
1802
+ /* webpackMode: "lazy" */
1803
+ './b2b-pagination.entry.js').then(processMod, consoleError);
1804
+ case 'b2b-paragraph':
1805
+ return import(
1806
+ /* webpackMode: "lazy" */
1807
+ './b2b-paragraph.entry.js').then(processMod, consoleError);
1808
+ case 'b2b-radio-button':
1809
+ return import(
1810
+ /* webpackMode: "lazy" */
1811
+ './b2b-radio-button.entry.js').then(processMod, consoleError);
1812
+ case 'b2b-radio-group':
1813
+ return import(
1814
+ /* webpackMode: "lazy" */
1815
+ './b2b-radio-group.entry.js').then(processMod, consoleError);
1816
+ case 'b2b-required-separator':
1817
+ return import(
1818
+ /* webpackMode: "lazy" */
1819
+ './b2b-required-separator.entry.js').then(processMod, consoleError);
1820
+ case 'b2b-scrollable-container':
1821
+ return import(
1822
+ /* webpackMode: "lazy" */
1823
+ './b2b-scrollable-container.entry.js').then(processMod, consoleError);
1824
+ case 'b2b-search':
1825
+ return import(
1826
+ /* webpackMode: "lazy" */
1827
+ './b2b-search.entry.js').then(processMod, consoleError);
1828
+ case 'b2b-tab':
1829
+ return import(
1830
+ /* webpackMode: "lazy" */
1831
+ './b2b-tab.entry.js').then(processMod, consoleError);
1832
+ case 'b2b-tab-group':
1833
+ return import(
1834
+ /* webpackMode: "lazy" */
1835
+ './b2b-tab-group.entry.js').then(processMod, consoleError);
1836
+ case 'b2b-tab-panel':
1837
+ return import(
1838
+ /* webpackMode: "lazy" */
1839
+ './b2b-tab-panel.entry.js').then(processMod, consoleError);
1840
+ case 'b2b-table':
1841
+ return import(
1842
+ /* webpackMode: "lazy" */
1843
+ './b2b-table.entry.js').then(processMod, consoleError);
1844
+ case 'b2b-table-cell':
1845
+ return import(
1846
+ /* webpackMode: "lazy" */
1847
+ './b2b-table-cell.entry.js').then(processMod, consoleError);
1848
+ case 'b2b-table-header':
1849
+ return import(
1850
+ /* webpackMode: "lazy" */
1851
+ './b2b-table-header.entry.js').then(processMod, consoleError);
1852
+ case 'b2b-table-row':
1853
+ return import(
1854
+ /* webpackMode: "lazy" */
1855
+ './b2b-table-row.entry.js').then(processMod, consoleError);
1856
+ case 'b2b-table-rowgroup':
1857
+ return import(
1858
+ /* webpackMode: "lazy" */
1859
+ './b2b-table-rowgroup.entry.js').then(processMod, consoleError);
1860
+ case 'b2b-textarea':
1861
+ return import(
1862
+ /* webpackMode: "lazy" */
1863
+ './b2b-textarea.entry.js').then(processMod, consoleError);
1864
+ case 'b2b-toggle-button':
1865
+ return import(
1866
+ /* webpackMode: "lazy" */
1867
+ './b2b-toggle-button.entry.js').then(processMod, consoleError);
1868
+ case 'b2b-toggle-group':
1869
+ return import(
1870
+ /* webpackMode: "lazy" */
1871
+ './b2b-toggle-group.entry.js').then(processMod, consoleError);
1872
+ case 'b2b-tooltip':
1873
+ return import(
1874
+ /* webpackMode: "lazy" */
1875
+ './b2b-tooltip.entry.js').then(processMod, consoleError);
1876
+ case 'b2b-headline':
1877
+ return import(
1878
+ /* webpackMode: "lazy" */
1879
+ './b2b-headline.entry.js').then(processMod, consoleError);
1880
+ case 'b2b-input-group_2':
1881
+ return import(
1882
+ /* webpackMode: "lazy" */
1883
+ './b2b-input-group_2.entry.js').then(processMod, consoleError);
1884
+ case 'b2b-button_2':
1885
+ return import(
1886
+ /* webpackMode: "lazy" */
1887
+ './b2b-button_2.entry.js').then(processMod, consoleError);
1888
+ case 'b2b-input_2':
1889
+ return import(
1890
+ /* webpackMode: "lazy" */
1891
+ './b2b-input_2.entry.js').then(processMod, consoleError);
1892
+ case 'b2b-separator':
1893
+ return import(
1894
+ /* webpackMode: "lazy" */
1895
+ './b2b-separator.entry.js').then(processMod, consoleError);
1896
+ case 'b2b-icon':
1897
+ return import(
1898
+ /* webpackMode: "lazy" */
1899
+ './b2b-icon.entry.js').then(processMod, consoleError);
1900
+ case 'b2b-input-label':
1901
+ return import(
1902
+ /* webpackMode: "lazy" */
1903
+ './b2b-input-label.entry.js').then(processMod, consoleError);
1904
+ }
1905
+ }
1906
+ return import(
1907
+ /* @vite-ignore */
1908
+ /* webpackInclude: /\.entry\.js$/ */
1909
+ /* webpackExclude: /\.system\.entry\.js$/ */
1910
+ /* webpackMode: "lazy" */
1911
+ `./${bundleId}.entry.js${''}`).then((importedModule) => {
1912
+ {
1913
+ cmpModules.set(bundleId, importedModule);
1914
+ }
1915
+ return importedModule[exportName];
1916
+ }, consoleError);
1917
+ };
1918
+ const styles = /*@__PURE__*/ new Map();
1919
+ const win = typeof window !== 'undefined' ? window : {};
1920
+ const doc = win.document || { head: {} };
1921
+ const plt = {
1922
+ $flags$: 0,
1923
+ $resourcesUrl$: '',
1924
+ jmp: (h) => h(),
1925
+ raf: (h) => requestAnimationFrame(h),
1926
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
1927
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1928
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
1929
+ };
1930
+ const supportsShadow =
1931
+ // TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
1932
+ true;
1933
+ const promiseResolve = (v) => Promise.resolve(v);
1934
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
1935
+ try {
1936
+ new CSSStyleSheet();
1937
+ return typeof new CSSStyleSheet().replaceSync === 'function';
1938
+ }
1939
+ catch (e) { }
1940
+ return false;
1941
+ })()
1942
+ ;
1943
+ const queueDomReads = [];
1944
+ const queueDomWrites = [];
1945
+ const queueTask = (queue, write) => (cb) => {
1946
+ queue.push(cb);
1947
+ if (!queuePending) {
1948
+ queuePending = true;
1949
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
1950
+ nextTick(flush);
1951
+ }
1952
+ else {
1953
+ plt.raf(flush);
1954
+ }
1955
+ }
1956
+ };
1957
+ const consume = (queue) => {
1958
+ for (let i = 0; i < queue.length; i++) {
1959
+ try {
1960
+ queue[i](performance.now());
1961
+ }
1962
+ catch (e) {
1963
+ consoleError(e);
1964
+ }
1965
+ }
1966
+ queue.length = 0;
1967
+ };
1968
+ const flush = () => {
1969
+ // always force a bunch of medium callbacks to run, but still have
1970
+ // a throttle on how many can run in a certain time
1971
+ // DOM READS!!!
1972
+ consume(queueDomReads);
1973
+ // DOM WRITES!!!
1974
+ {
1975
+ consume(queueDomWrites);
1976
+ if ((queuePending = queueDomReads.length > 0)) {
1977
+ // still more to do yet, but we've run out of time
1978
+ // let's let this thing cool off and try again in the next tick
1979
+ plt.raf(flush);
1980
+ }
1981
+ }
1982
+ };
1983
+ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1984
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1985
+
1986
+ export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };