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