@telesign/boreal-web-components 0.1.0-alpha.3 → 0.1.0-alpha.4

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 (446) hide show
  1. package/components-build/bds-avatar.d.ts +11 -0
  2. package/components-build/bds-avatar.js +1 -0
  3. package/components-build/bds-badge.d.ts +11 -0
  4. package/components-build/bds-badge.js +1 -0
  5. package/components-build/bds-banner.js +1 -1
  6. package/components-build/bds-button.js +1 -1
  7. package/components-build/bds-checkbox.js +1 -1
  8. package/components-build/bds-dialog.js +1 -1
  9. package/components-build/bds-divider.d.ts +11 -0
  10. package/components-build/bds-divider.js +1 -0
  11. package/components-build/bds-flag.js +1 -1
  12. package/components-build/bds-grid-item.d.ts +11 -0
  13. package/components-build/bds-grid-item.js +1 -0
  14. package/components-build/bds-grid.d.ts +11 -0
  15. package/components-build/bds-grid.js +1 -0
  16. package/components-build/bds-list-menu-item.d.ts +11 -0
  17. package/components-build/bds-list-menu-item.js +1 -0
  18. package/components-build/bds-list-menu.d.ts +11 -0
  19. package/components-build/bds-list-menu.js +1 -0
  20. package/components-build/bds-popover.js +1 -1
  21. package/components-build/bds-spinner.js +1 -1
  22. package/components-build/bds-status.d.ts +11 -0
  23. package/components-build/bds-status.js +1 -0
  24. package/components-build/bds-tag.d.ts +11 -0
  25. package/components-build/bds-tag.js +1 -0
  26. package/components-build/bds-text-field.js +1 -1
  27. package/components-build/bds-toggle.d.ts +11 -0
  28. package/components-build/bds-toggle.js +1 -0
  29. package/components-build/bds-tooltip.js +1 -1
  30. package/components-build/bds-typography.js +1 -1
  31. package/components-build/index.js +1 -1
  32. package/components-build/p-B8n1ru5i.js +1 -0
  33. package/components-build/p-Bfazyxqi.js +1 -0
  34. package/components-build/p-CGdxFth9.js +1 -0
  35. package/components-build/p-CrAt6pGl.js +1 -0
  36. package/components-build/p-DCwT43Kz.js +1 -0
  37. package/components-build/p-DIY3CDNL.js +1 -0
  38. package/components-build/p-DhSchGPI.js +1 -0
  39. package/components-build/p-kGnB15Lz.js +1 -0
  40. package/custom-elements.json +2588 -540
  41. package/dist/boreal-web-components/boreal-web-components.esm.js +1 -1
  42. package/dist/boreal-web-components/boreal-web-components.js +1 -1
  43. package/dist/boreal-web-components/css/boreal.css +1066 -1074
  44. package/dist/boreal-web-components/css/global.css +403 -407
  45. package/dist/boreal-web-components/css/theme-connect.css +163 -164
  46. package/dist/boreal-web-components/css/theme-engage.css +163 -164
  47. package/dist/boreal-web-components/css/theme-protect.css +163 -164
  48. package/dist/boreal-web-components/css/theme-proximus.css +164 -165
  49. package/dist/boreal-web-components/p-0028481c.entry.js +1 -0
  50. package/dist/boreal-web-components/p-127a4134.entry.js +1 -0
  51. package/dist/boreal-web-components/p-1466de58.system.entry.js +1 -0
  52. package/dist/boreal-web-components/p-1d1bb9d2.entry.js +1 -0
  53. package/dist/boreal-web-components/p-2158a7cd.entry.js +1 -0
  54. package/dist/boreal-web-components/{p-8c57e06a.entry.js → p-251b3002.entry.js} +1 -1
  55. package/dist/boreal-web-components/p-251d35df.system.entry.js +1 -0
  56. package/dist/boreal-web-components/{p-fc2cb919.entry.js → p-2b8bd1dd.entry.js} +1 -1
  57. package/dist/boreal-web-components/p-32c23246.system.entry.js +1 -0
  58. package/dist/boreal-web-components/p-3fbcc233.entry.js +1 -0
  59. package/dist/boreal-web-components/p-401f1aee.system.entry.js +1 -0
  60. package/dist/boreal-web-components/p-41b48701.system.entry.js +1 -0
  61. package/dist/boreal-web-components/p-41cac1b8.system.entry.js +1 -0
  62. package/dist/boreal-web-components/p-44ceff4e.system.entry.js +1 -0
  63. package/dist/boreal-web-components/{p-efe57901.system.entry.js → p-52600375.system.entry.js} +1 -1
  64. package/dist/boreal-web-components/p-627b19a5.system.entry.js +1 -0
  65. package/dist/boreal-web-components/p-649737e5.entry.js +1 -0
  66. package/dist/boreal-web-components/p-64cb5825.entry.js +1 -0
  67. package/dist/boreal-web-components/p-66360e63.entry.js +1 -0
  68. package/dist/boreal-web-components/p-695d0830.entry.js +1 -0
  69. package/dist/boreal-web-components/p-6a99f4c6.system.entry.js +1 -0
  70. package/dist/boreal-web-components/p-731b88cc.entry.js +1 -0
  71. package/dist/boreal-web-components/{p-22378341.system.entry.js → p-74c13bed.system.entry.js} +1 -1
  72. package/dist/boreal-web-components/p-7a4efddd.system.entry.js +1 -0
  73. package/dist/boreal-web-components/p-7db870b7.entry.js +1 -0
  74. package/dist/boreal-web-components/p-7f7ac40f.entry.js +1 -0
  75. package/dist/boreal-web-components/p-80822731.system.entry.js +1 -0
  76. package/dist/boreal-web-components/p-82d49661.entry.js +1 -0
  77. package/dist/boreal-web-components/p-83ca193e.entry.js +1 -0
  78. package/dist/boreal-web-components/p-871c9a9f.system.entry.js +1 -0
  79. package/dist/boreal-web-components/p-BQ_zoZa2.js +1 -0
  80. package/dist/boreal-web-components/p-Bfazyxqi.js +1 -0
  81. package/dist/boreal-web-components/{p-D4EFsvs1.js → p-BqJlOB6b.js} +2 -2
  82. package/dist/boreal-web-components/p-BsZkk4oK.system.js +1 -0
  83. package/dist/boreal-web-components/p-CXz1RLGi.system.js +1 -0
  84. package/dist/boreal-web-components/p-CtknSula.system.js +1 -0
  85. package/dist/boreal-web-components/p-CvK2d92c.js +1 -0
  86. package/dist/boreal-web-components/p-CzYQb3pP.js +1 -0
  87. package/dist/boreal-web-components/p-DCKg5Cg_.system.js +2 -0
  88. package/dist/boreal-web-components/p-DZcx75cy.system.js +1 -0
  89. package/dist/boreal-web-components/p-DhSchGPI.js +1 -0
  90. package/dist/boreal-web-components/{p-BkDQsB4R.system.js → p-Dme-NuTD.system.js} +1 -1
  91. package/dist/boreal-web-components/p-RhSdMyWk.system.js +1 -0
  92. package/dist/boreal-web-components/{p-5fa53a80.system.entry.js → p-ab5ffa15.system.entry.js} +1 -1
  93. package/dist/boreal-web-components/p-b12d4788.system.entry.js +1 -0
  94. package/dist/boreal-web-components/p-ba2b625a.system.entry.js +1 -0
  95. package/dist/boreal-web-components/p-bf2ef10b.entry.js +1 -0
  96. package/dist/boreal-web-components/{p-6de2b44c.system.entry.js → p-c7aee9f4.system.entry.js} +1 -1
  97. package/dist/boreal-web-components/p-e0bf8a6e.entry.js +1 -0
  98. package/dist/boreal-web-components/p-edca16b6.system.entry.js +1 -0
  99. package/dist/boreal-web-components/p-fc24d963.entry.js +1 -0
  100. package/dist/boreal-web-components/p-kGnB15Lz.js +1 -0
  101. package/dist/boreal-web-components/p-vzZJGcYF.system.js +1 -0
  102. package/dist/boreal-web-components/scss/maps/_primitives.scss +404 -408
  103. package/dist/boreal-web-components/scss/maps/_theme-connect.scss +164 -165
  104. package/dist/boreal-web-components/scss/maps/_theme-engage.scss +164 -165
  105. package/dist/boreal-web-components/scss/maps/_theme-protect.scss +164 -165
  106. package/dist/boreal-web-components/scss/maps/_theme-proximus.scss +165 -166
  107. package/dist/boreal-web-components/scss/variables/_primitives.scss +404 -408
  108. package/dist/boreal-web-components/scss/variables/_theme-connect.scss +164 -165
  109. package/dist/boreal-web-components/scss/variables/_theme-engage.scss +164 -165
  110. package/dist/boreal-web-components/scss/variables/_theme-protect.scss +164 -165
  111. package/dist/boreal-web-components/scss/variables/_theme-proximus.scss +165 -166
  112. package/dist/cjs/BaseAttributes-DBBhKt7O.js +14 -0
  113. package/dist/cjs/Keys-DbIXSJF2.js +22 -0
  114. package/dist/cjs/bds-avatar.cjs.entry.js +89 -0
  115. package/dist/cjs/bds-badge.cjs.entry.js +50 -0
  116. package/dist/cjs/bds-banner.cjs.entry.js +12 -5
  117. package/dist/cjs/bds-button.cjs.entry.js +5 -5
  118. package/dist/cjs/bds-checkbox.cjs.entry.js +6 -6
  119. package/dist/cjs/bds-dialog.cjs.entry.js +7 -6
  120. package/dist/cjs/bds-divider.cjs.entry.js +46 -0
  121. package/dist/cjs/bds-flag.cjs.entry.js +3 -3
  122. package/dist/cjs/bds-grid-item.cjs.entry.js +93 -0
  123. package/dist/cjs/bds-grid.cjs.entry.js +37 -0
  124. package/dist/cjs/bds-list-menu-item.cjs.entry.js +468 -0
  125. package/dist/cjs/bds-list-menu.cjs.entry.js +130 -0
  126. package/dist/cjs/bds-popover.cjs.entry.js +17 -8
  127. package/dist/cjs/bds-spinner.cjs.entry.js +4 -4
  128. package/dist/cjs/bds-status.cjs.entry.js +59 -0
  129. package/dist/cjs/bds-tag.cjs.entry.js +140 -0
  130. package/dist/cjs/bds-text-field.cjs.entry.js +12 -22
  131. package/dist/cjs/bds-toggle.cjs.entry.js +186 -0
  132. package/dist/cjs/bds-tooltip_2.cjs.entry.js +320 -0
  133. package/dist/cjs/boreal-web-components.cjs.js +2 -2
  134. package/dist/cjs/{anchored.mixin-CnIwkaUi.js → getOffset-m4hBgyVP.js} +42 -26
  135. package/dist/cjs/{index-BcSjvXJk.js → index-CwYIVC9N.js} +64 -0
  136. package/dist/cjs/loader.cjs.js +2 -2
  137. package/dist/cjs/{states-iIYiazaM.js → states-BweP5Vpu.js} +8 -0
  138. package/dist/cjs/validateProps-CJe9X5x8.js +42 -0
  139. package/dist/collection/collection-manifest.json +10 -0
  140. package/dist/collection/components/actions/bds-button/bds-button.js +2 -2
  141. package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.css +25 -0
  142. package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.js +301 -0
  143. package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.css +71 -0
  144. package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.js +437 -0
  145. package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem.js +1 -0
  146. package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/types/enum.js +4 -0
  147. package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/types/types.js +1 -0
  148. package/dist/collection/components/actions/bds-toggle/bds-toggle.css +120 -0
  149. package/dist/collection/components/actions/bds-toggle/bds-toggle.js +544 -0
  150. package/dist/collection/components/actions/bds-toggle/types/IEventChange.js +1 -0
  151. package/dist/collection/components/actions/bds-toggle/types/IToggle.js +1 -0
  152. package/dist/collection/components/actions/bds-toggle/types/enum.js +4 -0
  153. package/dist/collection/components/actions/bds-toggle/types/index.js +4 -0
  154. package/dist/collection/components/actions/bds-toggle/types/types.js +1 -0
  155. package/dist/collection/components/feedback/bds-badge/bds-badge.css +76 -0
  156. package/dist/collection/components/feedback/bds-badge/bds-badge.js +120 -0
  157. package/dist/collection/components/feedback/bds-badge/types/IBadge.js +1 -0
  158. package/dist/collection/components/feedback/bds-badge/types/enum.js +5 -0
  159. package/dist/collection/components/feedback/bds-banner/bds-banner.css +1 -2
  160. package/dist/collection/components/feedback/bds-banner/bds-banner.js +30 -6
  161. package/dist/collection/components/feedback/bds-spinner/bds-spinner.css +7 -8
  162. package/dist/collection/components/feedback/bds-spinner/bds-spinner.js +1 -1
  163. package/dist/collection/components/feedback/bds-status/bds-status.css +101 -0
  164. package/dist/collection/components/feedback/bds-status/bds-status.js +122 -0
  165. package/dist/collection/components/feedback/bds-status/types/IStatus.js +1 -0
  166. package/dist/collection/components/feedback/bds-status/types/enum.js +5 -0
  167. package/dist/collection/components/feedback/bds-status/types/types.js +1 -0
  168. package/dist/collection/components/feedback/bds-tag/bds-tag.css +202 -0
  169. package/dist/collection/components/feedback/bds-tag/bds-tag.js +375 -0
  170. package/dist/collection/components/feedback/bds-tag/types/ITag.js +1 -0
  171. package/dist/collection/components/feedback/bds-tag/types/enum.js +10 -0
  172. package/dist/collection/components/feedback/bds-tag/types/index.js +3 -0
  173. package/dist/collection/components/feedback/bds-tag/types/types.js +1 -0
  174. package/dist/collection/components/forms/bds-checkbox/bds-checkbox.js +1 -1
  175. package/dist/collection/components/forms/bds-flag/bds-flag.js +1 -1
  176. package/dist/collection/components/forms/bds-text-field/bds-text-field.js +1 -1
  177. package/dist/collection/components/helpers/bds-divider.css +36 -0
  178. package/dist/collection/components/helpers/bds-divider.js +88 -0
  179. package/dist/collection/components/helpers/types/IDivider.js +1 -0
  180. package/dist/collection/components/helpers/types/enum.js +4 -0
  181. package/dist/collection/components/helpers/types/types.js +1 -0
  182. package/dist/collection/components/images-icons/bds-avatar/bds-avatar.css +52 -0
  183. package/dist/collection/components/images-icons/bds-avatar/bds-avatar.js +219 -0
  184. package/dist/collection/components/images-icons/bds-avatar/types/IAvatar.js +1 -0
  185. package/dist/collection/components/images-icons/bds-avatar/types/enum.js +5 -0
  186. package/dist/collection/components/images-icons/bds-avatar/types/index.js +3 -0
  187. package/dist/collection/components/images-icons/bds-avatar/types/types.js +1 -0
  188. package/dist/collection/components/layouts/bds-grid/grid/bds-grid.css +57 -0
  189. package/dist/collection/components/layouts/bds-grid/grid/bds-grid.js +100 -0
  190. package/dist/collection/components/layouts/bds-grid/grid/types/IGrid.js +1 -0
  191. package/dist/collection/components/layouts/bds-grid/grid/types/enum.js +4 -0
  192. package/dist/collection/components/layouts/bds-grid/grid/types/index.js +3 -0
  193. package/dist/collection/components/layouts/bds-grid/grid/types/types.js +1 -0
  194. package/dist/collection/components/layouts/bds-grid/grid-item/bds-grid-item.css +70 -0
  195. package/dist/collection/components/layouts/bds-grid/grid-item/bds-grid-item.js +306 -0
  196. package/dist/collection/components/layouts/bds-grid/grid-item/types/IGridItem.js +1 -0
  197. package/dist/collection/components/layouts/bds-grid/grid-item/types/enum.js +10 -0
  198. package/dist/collection/components/layouts/bds-grid/grid-item/types/index.js +3 -0
  199. package/dist/collection/components/layouts/bds-grid/grid-item/types/types.js +1 -0
  200. package/dist/collection/components/overlays/bds-dialog/bds-dialog.js +4 -3
  201. package/dist/collection/components/overlays/bds-popover/bds-popover.css +16 -2
  202. package/dist/collection/components/overlays/bds-popover/bds-popover.js +12 -4
  203. package/dist/collection/components/overlays/bds-popover/constants/Offset.js +1 -0
  204. package/dist/collection/components/overlays/bds-tooltip/bds-tooltip.css +2 -13
  205. package/dist/collection/components/overlays/bds-tooltip/bds-tooltip.js +4 -2
  206. package/dist/collection/components/overlays/bds-tooltip/constants/Offset.js +1 -0
  207. package/dist/collection/components/titles-text/bds-typography/bds-typography.css +4 -0
  208. package/dist/collection/components/titles-text/bds-typography/bds-typography.js +20 -19
  209. package/dist/collection/components/titles-text/bds-typography/utils/bds-typography-utils.js +2 -2
  210. package/dist/collection/css/boreal.css +1066 -1074
  211. package/dist/collection/css/global.css +403 -407
  212. package/dist/collection/css/theme-connect.css +163 -164
  213. package/dist/collection/css/theme-engage.css +163 -164
  214. package/dist/collection/css/theme-protect.css +163 -164
  215. package/dist/collection/css/theme-proximus.css +164 -165
  216. package/dist/collection/mixins/anchored.mixin.js +14 -1
  217. package/dist/collection/mixins/index.js +2 -0
  218. package/dist/collection/mixins/links.mixin.js +153 -0
  219. package/dist/collection/mixins/menu-behavior.mixin.js +113 -0
  220. package/dist/collection/scss/maps/_primitives.scss +404 -408
  221. package/dist/collection/scss/maps/_theme-connect.scss +164 -165
  222. package/dist/collection/scss/maps/_theme-engage.scss +164 -165
  223. package/dist/collection/scss/maps/_theme-protect.scss +164 -165
  224. package/dist/collection/scss/maps/_theme-proximus.scss +165 -166
  225. package/dist/collection/scss/variables/_primitives.scss +404 -408
  226. package/dist/collection/scss/variables/_theme-connect.scss +164 -165
  227. package/dist/collection/scss/variables/_theme-engage.scss +164 -165
  228. package/dist/collection/scss/variables/_theme-protect.scss +164 -165
  229. package/dist/collection/scss/variables/_theme-proximus.scss +165 -166
  230. package/dist/collection/services/floating/positioning.service.js +1 -1
  231. package/dist/collection/types/IFormProps.js +1 -0
  232. package/dist/collection/types/index.js +3 -0
  233. package/dist/collection/types/links.js +1 -0
  234. package/dist/collection/types/menu.js +8 -0
  235. package/dist/collection/types/position.js +6 -2
  236. package/dist/collection/utils/constants/common/Keys.js +12 -0
  237. package/dist/collection/utils/helpers/overlays/getOffset.js +13 -0
  238. package/dist/collection/utils/helpers/validateProps.js +21 -0
  239. package/dist/collection/utils/index.js +2 -1
  240. package/dist/collection/utils/menu/index.js +1 -0
  241. package/dist/collection/utils/menu/menu-item.utils.js +81 -0
  242. package/dist/collection/utils/{__test__ → testing}/index.js +0 -2
  243. package/dist/collection/utils/testing/mocks/console.js +30 -0
  244. package/dist/collection/utils/testing/mocks/index.js +4 -0
  245. package/dist/css/boreal.css +1066 -1074
  246. package/dist/css/global.css +403 -407
  247. package/dist/css/theme-connect.css +163 -164
  248. package/dist/css/theme-engage.css +163 -164
  249. package/dist/css/theme-protect.css +163 -164
  250. package/dist/css/theme-proximus.css +164 -165
  251. package/dist/esm/BaseAttributes-DhSchGPI.js +12 -0
  252. package/dist/esm/Keys-CzYQb3pP.js +20 -0
  253. package/dist/esm/bds-avatar.entry.js +87 -0
  254. package/dist/esm/bds-badge.entry.js +48 -0
  255. package/dist/esm/bds-banner.entry.js +12 -5
  256. package/dist/esm/bds-button.entry.js +5 -5
  257. package/dist/esm/bds-checkbox.entry.js +3 -3
  258. package/dist/esm/bds-dialog.entry.js +7 -6
  259. package/dist/esm/bds-divider.entry.js +44 -0
  260. package/dist/esm/bds-flag.entry.js +3 -3
  261. package/dist/esm/bds-grid-item.entry.js +91 -0
  262. package/dist/esm/bds-grid.entry.js +35 -0
  263. package/dist/esm/bds-list-menu-item.entry.js +466 -0
  264. package/dist/esm/bds-list-menu.entry.js +128 -0
  265. package/dist/esm/bds-popover.entry.js +16 -7
  266. package/dist/esm/bds-spinner.entry.js +4 -4
  267. package/dist/esm/bds-status.entry.js +57 -0
  268. package/dist/esm/bds-tag.entry.js +138 -0
  269. package/dist/esm/bds-text-field.entry.js +5 -15
  270. package/dist/esm/bds-toggle.entry.js +184 -0
  271. package/dist/esm/bds-tooltip_2.entry.js +317 -0
  272. package/dist/esm/boreal-web-components.js +3 -3
  273. package/dist/esm/{anchored.mixin-Y3MkGc2X.js → getOffset-DKPjeBHi.js} +40 -25
  274. package/dist/esm/{index-D4EFsvs1.js → index-BqJlOB6b.js} +64 -0
  275. package/dist/esm/loader.js +3 -3
  276. package/dist/esm/{states-BhTPNsBb.js → states-Bfazyxqi.js} +8 -1
  277. package/dist/esm/validateProps-kGnB15Lz.js +39 -0
  278. package/dist/esm-es5/BaseAttributes-DhSchGPI.js +1 -0
  279. package/dist/esm-es5/Keys-CzYQb3pP.js +1 -0
  280. package/dist/esm-es5/bds-avatar.entry.js +1 -0
  281. package/dist/esm-es5/bds-badge.entry.js +1 -0
  282. package/dist/esm-es5/bds-banner.entry.js +1 -1
  283. package/dist/esm-es5/bds-button.entry.js +1 -1
  284. package/dist/esm-es5/bds-checkbox.entry.js +1 -1
  285. package/dist/esm-es5/bds-dialog.entry.js +1 -1
  286. package/dist/esm-es5/bds-divider.entry.js +1 -0
  287. package/dist/esm-es5/bds-flag.entry.js +1 -1
  288. package/dist/esm-es5/bds-grid-item.entry.js +1 -0
  289. package/dist/esm-es5/bds-grid.entry.js +1 -0
  290. package/dist/esm-es5/bds-list-menu-item.entry.js +1 -0
  291. package/dist/esm-es5/bds-list-menu.entry.js +1 -0
  292. package/dist/esm-es5/bds-popover.entry.js +1 -1
  293. package/dist/esm-es5/bds-spinner.entry.js +1 -1
  294. package/dist/esm-es5/bds-status.entry.js +1 -0
  295. package/dist/esm-es5/bds-tag.entry.js +1 -0
  296. package/dist/esm-es5/bds-text-field.entry.js +1 -1
  297. package/dist/esm-es5/bds-toggle.entry.js +1 -0
  298. package/dist/esm-es5/bds-tooltip_2.entry.js +1 -0
  299. package/dist/esm-es5/boreal-web-components.js +1 -1
  300. package/dist/esm-es5/form-associated.mixin-CvK2d92c.js +1 -0
  301. package/dist/esm-es5/getOffset-DKPjeBHi.js +1 -0
  302. package/dist/esm-es5/index-BqJlOB6b.js +2 -0
  303. package/dist/esm-es5/loader.js +1 -1
  304. package/dist/esm-es5/states-Bfazyxqi.js +1 -0
  305. package/dist/esm-es5/validateProps-kGnB15Lz.js +1 -0
  306. package/dist/scss/maps/_primitives.scss +404 -408
  307. package/dist/scss/maps/_theme-connect.scss +164 -165
  308. package/dist/scss/maps/_theme-engage.scss +164 -165
  309. package/dist/scss/maps/_theme-protect.scss +164 -165
  310. package/dist/scss/maps/_theme-proximus.scss +165 -166
  311. package/dist/scss/variables/_primitives.scss +404 -408
  312. package/dist/scss/variables/_theme-connect.scss +164 -165
  313. package/dist/scss/variables/_theme-engage.scss +164 -165
  314. package/dist/scss/variables/_theme-protect.scss +164 -165
  315. package/dist/scss/variables/_theme-proximus.scss +165 -166
  316. package/dist/types/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.d.ts +70 -0
  317. package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.d.ts +116 -0
  318. package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem.d.ts +12 -0
  319. package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/enum.d.ts +5 -0
  320. package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/types.d.ts +3 -0
  321. package/dist/types/components/actions/bds-toggle/bds-toggle.d.ts +91 -0
  322. package/dist/types/components/actions/bds-toggle/types/IEventChange.d.ts +5 -0
  323. package/dist/types/components/actions/bds-toggle/types/IToggle.d.ts +12 -0
  324. package/dist/types/components/actions/bds-toggle/types/enum.d.ts +5 -0
  325. package/dist/types/components/actions/bds-toggle/types/index.d.ts +5 -0
  326. package/dist/types/components/actions/bds-toggle/types/types.d.ts +3 -0
  327. package/dist/types/components/feedback/bds-badge/bds-badge.d.ts +31 -0
  328. package/dist/types/components/feedback/bds-badge/types/IBadge.d.ts +6 -0
  329. package/dist/types/components/feedback/bds-badge/types/enum.d.ts +9 -0
  330. package/dist/types/components/feedback/bds-banner/bds-banner.d.ts +8 -4
  331. package/dist/types/components/feedback/bds-status/bds-status.d.ts +26 -0
  332. package/dist/types/components/feedback/bds-status/types/IStatus.d.ts +7 -0
  333. package/dist/types/components/feedback/bds-status/types/enum.d.ts +6 -0
  334. package/dist/types/components/feedback/bds-status/types/types.d.ts +3 -0
  335. package/dist/types/components/feedback/bds-tag/bds-tag.d.ts +71 -0
  336. package/dist/types/components/feedback/bds-tag/types/ITag.d.ts +13 -0
  337. package/dist/types/components/feedback/bds-tag/types/enum.d.ts +11 -0
  338. package/dist/types/components/feedback/bds-tag/types/index.d.ts +4 -0
  339. package/dist/types/components/feedback/bds-tag/types/types.d.ts +8 -0
  340. package/dist/types/components/forms/bds-flag/bds-flag.d.ts +3 -4
  341. package/dist/types/components/helpers/bds-divider.d.ts +26 -0
  342. package/dist/types/components/helpers/types/IDivider.d.ts +5 -0
  343. package/dist/types/components/helpers/types/enum.d.ts +5 -0
  344. package/dist/types/components/helpers/types/types.d.ts +3 -0
  345. package/dist/types/components/images-icons/bds-avatar/bds-avatar.d.ts +51 -0
  346. package/dist/types/components/images-icons/bds-avatar/types/IAvatar.d.ts +9 -0
  347. package/dist/types/components/images-icons/bds-avatar/types/enum.d.ts +6 -0
  348. package/dist/types/components/images-icons/bds-avatar/types/index.d.ts +4 -0
  349. package/dist/types/components/images-icons/bds-avatar/types/types.d.ts +3 -0
  350. package/dist/types/components/layouts/bds-grid/grid/bds-grid.d.ts +19 -0
  351. package/dist/types/components/layouts/bds-grid/grid/types/IGrid.d.ts +6 -0
  352. package/dist/types/components/layouts/bds-grid/grid/types/enum.d.ts +5 -0
  353. package/dist/types/components/layouts/bds-grid/grid/types/index.d.ts +4 -0
  354. package/dist/types/components/layouts/bds-grid/grid/types/types.d.ts +3 -0
  355. package/dist/types/components/layouts/bds-grid/grid-item/bds-grid-item.d.ts +31 -0
  356. package/dist/types/components/layouts/bds-grid/grid-item/types/IGridItem.d.ts +12 -0
  357. package/dist/types/components/layouts/bds-grid/grid-item/types/enum.d.ts +11 -0
  358. package/dist/types/components/layouts/bds-grid/grid-item/types/index.d.ts +4 -0
  359. package/dist/types/components/layouts/bds-grid/grid-item/types/types.d.ts +3 -0
  360. package/dist/types/components/overlays/bds-dialog/bds-dialog.d.ts +2 -2
  361. package/dist/types/components/overlays/bds-popover/bds-popover.d.ts +1 -0
  362. package/dist/types/components/overlays/bds-popover/constants/Offset.d.ts +2 -0
  363. package/dist/types/components/overlays/bds-tooltip/bds-tooltip.d.ts +1 -0
  364. package/dist/types/components/overlays/bds-tooltip/constants/Offset.d.ts +2 -0
  365. package/dist/types/components/titles-text/bds-typography/bds-typography.d.ts +9 -9
  366. package/dist/types/components/titles-text/bds-typography/types/ITypography.d.ts +2 -2
  367. package/dist/types/components/titles-text/bds-typography/utils/bds-typography-utils.d.ts +1 -1
  368. package/dist/types/components.d.ts +1268 -54
  369. package/dist/types/mixins/anchored.mixin.d.ts +5 -0
  370. package/dist/types/mixins/index.d.ts +2 -0
  371. package/dist/types/mixins/links.mixin.d.ts +85 -0
  372. package/dist/types/mixins/menu-behavior.mixin.d.ts +91 -0
  373. package/dist/types/types/IFormProps.d.ts +25 -0
  374. package/dist/types/types/index.d.ts +3 -0
  375. package/dist/types/types/links.d.ts +14 -0
  376. package/dist/types/types/menu.d.ts +16 -0
  377. package/dist/types/types/position.d.ts +6 -2
  378. package/dist/types/utils/constants/common/Keys.d.ts +7 -6
  379. package/dist/types/utils/helpers/overlays/getOffset.d.ts +9 -0
  380. package/dist/types/utils/helpers/validateProps.d.ts +11 -0
  381. package/dist/types/utils/index.d.ts +2 -1
  382. package/dist/types/utils/menu/index.d.ts +2 -0
  383. package/dist/types/utils/menu/menu-item.utils.d.ts +50 -0
  384. package/dist/types/utils/{__test__ → testing}/index.d.ts +0 -2
  385. package/dist/types/utils/{__test__/backdrop-mock.d.ts → testing/mocks/backdrop.d.ts} +1 -1
  386. package/dist/types/utils/testing/mocks/console.d.ts +17 -0
  387. package/dist/types/utils/{__test__/mocks/ElementInternals.d.ts → testing/mocks/elementInternals.d.ts} +1 -1
  388. package/dist/types/utils/testing/mocks/index.d.ts +5 -0
  389. package/dist/types/utils/{__test__/popover-mock.d.ts → testing/mocks/popover.d.ts} +1 -1
  390. package/package.json +1 -1
  391. package/components-build/p-B6R9EVXK.js +0 -1
  392. package/components-build/p-BSpJ_e9f.js +0 -1
  393. package/components-build/p-BYEAJCas.js +0 -1
  394. package/components-build/p-BhTPNsBb.js +0 -1
  395. package/components-build/p-CYojP4vI.js +0 -1
  396. package/components-build/p-D5omSME4.js +0 -1
  397. package/components-build/p-vfAIdwy0.js +0 -1
  398. package/dist/boreal-web-components/p-07a933df.entry.js +0 -1
  399. package/dist/boreal-web-components/p-1bb2b33f.entry.js +0 -1
  400. package/dist/boreal-web-components/p-1fccea3f.system.entry.js +0 -1
  401. package/dist/boreal-web-components/p-20af732b.system.entry.js +0 -1
  402. package/dist/boreal-web-components/p-39c26e58.entry.js +0 -1
  403. package/dist/boreal-web-components/p-6210d025.entry.js +0 -1
  404. package/dist/boreal-web-components/p-91b9e94e.entry.js +0 -1
  405. package/dist/boreal-web-components/p-9e06910d.system.entry.js +0 -1
  406. package/dist/boreal-web-components/p-BIJhHSAt.system.js +0 -1
  407. package/dist/boreal-web-components/p-BKRyWlfr.js +0 -1
  408. package/dist/boreal-web-components/p-BhTPNsBb.js +0 -1
  409. package/dist/boreal-web-components/p-DoDeP7KR.system.js +0 -1
  410. package/dist/boreal-web-components/p-Dtp4O0H2.system.js +0 -1
  411. package/dist/boreal-web-components/p-Dy7QKP9e.js +0 -1
  412. package/dist/boreal-web-components/p-GjKJvOVG.system.js +0 -2
  413. package/dist/boreal-web-components/p-ac64d4a5.system.entry.js +0 -1
  414. package/dist/boreal-web-components/p-b61fe06c.entry.js +0 -1
  415. package/dist/boreal-web-components/p-cdc87437.entry.js +0 -1
  416. package/dist/boreal-web-components/p-d8ec8557.system.entry.js +0 -1
  417. package/dist/boreal-web-components/p-ea889727.entry.js +0 -1
  418. package/dist/boreal-web-components/p-fa327346.system.entry.js +0 -1
  419. package/dist/boreal-web-components/p-sDZFaZMN.system.js +0 -1
  420. package/dist/boreal-web-components/p-vfAIdwy0.js +0 -1
  421. package/dist/cjs/bds-tooltip.cjs.entry.js +0 -152
  422. package/dist/cjs/bds-typography.cjs.entry.js +0 -168
  423. package/dist/cjs/validateProps-BNOBk1Xs.js +0 -20
  424. package/dist/collection/utils/__test__/mocks/index.js +0 -1
  425. package/dist/esm/bds-tooltip.entry.js +0 -150
  426. package/dist/esm/bds-typography.entry.js +0 -166
  427. package/dist/esm/validateProps-vfAIdwy0.js +0 -18
  428. package/dist/esm-es5/anchored.mixin-Y3MkGc2X.js +0 -1
  429. package/dist/esm-es5/bds-tooltip.entry.js +0 -1
  430. package/dist/esm-es5/bds-typography.entry.js +0 -1
  431. package/dist/esm-es5/index-D4EFsvs1.js +0 -2
  432. package/dist/esm-es5/internals-Dy7QKP9e.js +0 -1
  433. package/dist/esm-es5/states-BhTPNsBb.js +0 -1
  434. package/dist/esm-es5/validateProps-vfAIdwy0.js +0 -1
  435. package/dist/types/utils/__test__/mocks/index.d.ts +0 -2
  436. package/dist/cjs/{internals-X77qKxsK.js → form-associated.mixin-DXwvF_vW.js} +30 -30
  437. package/dist/collection/utils/{__test__ → testing}/constants.js +0 -0
  438. package/dist/collection/utils/{__test__ → testing}/fixtures.js +0 -0
  439. package/dist/collection/utils/{__test__ → testing}/helpers.js +0 -0
  440. package/dist/collection/utils/{__test__/backdrop-mock.js → testing/mocks/backdrop.js} +0 -0
  441. package/dist/collection/utils/{__test__/mocks/ElementInternals.js → testing/mocks/elementInternals.js} +0 -0
  442. package/dist/collection/utils/{__test__/popover-mock.js → testing/mocks/popover.js} +0 -0
  443. package/dist/esm/{internals-Dy7QKP9e.js → form-associated.mixin-CvK2d92c.js} +30 -30
  444. /package/dist/types/utils/{__test__ → testing}/constants.d.ts +0 -0
  445. /package/dist/types/utils/{__test__ → testing}/fixtures.d.ts +0 -0
  446. /package/dist/types/utils/{__test__ → testing}/helpers.d.ts +0 -0
@@ -1,166 +0,0 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-D4EFsvs1.js';
2
- import { C as COMPONENT_STATES } from './states-BhTPNsBb.js';
3
- import { a as inheritAriaAttributes } from './attributes-CaHOghy5.js';
4
-
5
- const ALIGNMENT = {
6
- START: 'start'};
7
-
8
- const SIZES = {
9
- XS: 'xs',
10
- S: 'sm',
11
- M: 'md',
12
- L: 'lg',
13
- XL: 'xl',
14
- };
15
-
16
- const VARIANT_TYPOGRAPHY = {
17
- DISPLAY: 'display',
18
- LINK: 'link'};
19
- const TAG_ELEMENT = {
20
- P: 'p',
21
- A: 'a'};
22
-
23
- /*
24
- * LINK consts
25
- */
26
- const FILENAME = 'download';
27
- /*
28
- * Variant map to apply size, state, etc, styles based on variant type
29
- */
30
- const VARIANT_CONFIG = {
31
- link: {
32
- states: [COMPONENT_STATES.DISABLED /* STATES.VISITED, STATES.HOVER, STATES.ACTIVE, STATES.FOCUS */],
33
- size: [SIZES.S, SIZES.M],
34
- },
35
- label: {
36
- states: [COMPONENT_STATES.DISABLED],
37
- isRequired: true,
38
- canUseTooltip: true,
39
- },
40
- heading: { canUseTooltip: true },
41
- subheading: { canUseTooltip: true },
42
- helper: { states: [COMPONENT_STATES.ERROR] },
43
- display: { size: [SIZES.XS, SIZES.S, SIZES.M, SIZES.L, SIZES.XL] },
44
- };
45
- /*
46
- * ATTRIBUTE MAP
47
- */
48
- const getAttributesByTag = (comp, tagName) => {
49
- const ATTR_MAP = {
50
- a: {
51
- href: comp.state !== COMPONENT_STATES.DISABLED ? comp.sanitizedHref : null,
52
- target: comp.target,
53
- download: comp.isDownloadable ? comp.filename : null,
54
- rel: comp.target === '_blank' ? 'noopener noreferrer' : undefined,
55
- },
56
- label: {
57
- htmlFor: comp.htmlFor,
58
- },
59
- };
60
- return ATTR_MAP[tagName] || {};
61
- };
62
-
63
- const bdsTypographyCss = () => `@charset "UTF-8";.bds-typography{display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:var(--boreal-typography-font-family-primary);font-weight:var(--boreal-typography-font-weight-regular)}.bds-typography__required-indicator{color:var(--boreal-icon-danger-base);font-weight:var(--boreal-typography-font-weight-regular)}.bds-typography__info-icon{color:var(--boreal-icon-default-light)}.bds-typography--heading,.bds-typography--subheading{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-3xs)}.bds-typography--label{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-3xs)}.bds-typography--display{display:block}.bds-typography--caption,.bds-typography--helper,.bds-typography--link{display:inline-block}.bds-typography--caption{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-default-light)}.bds-typography--helper{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm);color:var(--boreal-text-default-light)}.bds-typography--link{font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-primary-base);text-decoration:none}.bds-typography--link:hover{text-decoration:underline}.bds-typography--link:visited{color:var(--boreal-text-primary-base)}.bds-typography--link:active{color:var(--boreal-text-primary-dark)}.bds-typography--link.bds-typography--size-sm{font-size:var(--boreal-typography-font-size-xs)}.bds-typography--link.bds-typography--size-md{font-size:var(--boreal-typography-font-size-sm)}.bds-typography--code{font-family:var(--boreal-typography-font-family-secondary);font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default);line-height:var(--boreal-typography-line-height-md);overflow-wrap:break-word;background-color:var(--boreal-bg-neutral);padding:var(--boreal-spacing-3xs) var(--boreal-spacing-xs);border-radius:var(--boreal-radius-xs);display:inline;box-decoration-break:clone;-webkit-box-decoration-break:clone}.bds-typography--label{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-default-darker)}.bds-typography--display{font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default)}.bds-typography--display.bds-typography--size-sm{font-size:var(--boreal-typography-font-size-xl);line-height:var(--boreal-typography-line-height-xl)}.bds-typography--display.bds-typography--size-md{font-size:var(--boreal-typography-font-size-2xl);line-height:var(--boreal-typography-line-height-2xl)}.bds-typography--display.bds-typography--size-lg{font-size:var(--boreal-typography-font-size-3xl);line-height:var(--boreal-typography-line-height-3xl);font-weight:var(--boreal-typography-font-weight-light)}.bds-typography--display.bds-typography--size-xl{font-size:var(--boreal-typography-font-size-4xl);line-height:var(--boreal-typography-line-height-4xl);font-weight:var(--boreal-typography-font-weight-light)}.bds-typography--heading{font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-lg);font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default)}.bds-typography h1.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-4xl);line-height:var(--boreal-typography-line-height-4xl)}.bds-typography h2.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-3xl);line-height:var(--boreal-typography-line-height-3xl)}.bds-typography h3.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-2xl);line-height:var(--boreal-typography-line-height-2xl)}.bds-typography h4.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-xl);line-height:var(--boreal-typography-line-height-xl)}.bds-typography h5.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-lg)}.bds-typography h6.bds-typography--heading{font-size:var(--boreal-typography-font-size-md);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-md)}.bds-typography--subheading{font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);font-weight:var(--boreal-typography-font-weight-semibold)}.bds-typography--align-start{text-align:start}.bds-typography--align-center{text-align:center}.bds-typography--align-end{text-align:end}.bds-typography--align-inherit{text-align:inherit}.bds-typography--error{color:var(--boreal-text-danger-base)}.bds-typography--disabled{color:var(--boreal-text-disabled);pointer-events:none;cursor:not-allowed}.bds-typography--disabled .bds-typography__required-indicator{color:var(--boreal-text-danger-light)}.bds-typography--ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.bds-typography--ellipsis-multiline{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;width:100%}`;
64
-
65
- const BdsTypography = class {
66
- constructor(hostRef) {
67
- registerInstance(this, hostRef);
68
- this.inheritedAttributes = {};
69
- /** Typography visual variant. */
70
- this.variant = VARIANT_TYPOGRAPHY.DISPLAY;
71
- /** Typography size token. */
72
- this.size = SIZES.M;
73
- /** Visual state (if supported by variant). */
74
- this.state = COMPONENT_STATES.DEFAULT;
75
- /** Additional custom CSS class. */
76
- this.customClass = '';
77
- /** HTML tag used for rendering. */
78
- this.element = TAG_ELEMENT.P;
79
- /** Text alignment. */
80
- this.align = ALIGNMENT.START;
81
- /** Enables text ellipsis. */
82
- this.ellipsis = false;
83
- /** Max lines when ellipsis is enabled. */
84
- this.maxLines = 1;
85
- /** Tooltip text (variant must support it). */
86
- this.tooltipText = '';
87
- /** Marks the field as required. */
88
- this.isRequired = false;
89
- /** For attribute when rendered as a label. */
90
- this.htmlFor = undefined;
91
- /** Link href when rendered as anchor. */
92
- this.href = null;
93
- /** Anchor target. */
94
- this.target = null;
95
- /** Enables download behavior for anchor. */
96
- this.isDownloadable = false;
97
- /** Suggested download filename. */
98
- this.filename = FILENAME;
99
- /** Sanitized href for security. */
100
- this.sanitizedHref = '';
101
- }
102
- async updateSanitizedHref() {
103
- if (this.getTagName === 'a' && this.href !== null) {
104
- const { sanitizeUrl } = await import('./index-noyWJ11s.js').then(function (n) { return n.i; });
105
- this.sanitizedHref = sanitizeUrl(this.href);
106
- }
107
- else
108
- this.sanitizedHref = '';
109
- }
110
- async componentWillLoad() {
111
- if (this.getTagName === TAG_ELEMENT.A && this.href !== null)
112
- await this.updateSanitizedHref();
113
- this.inheritedAttributes = {
114
- ...inheritAriaAttributes(this.el),
115
- };
116
- }
117
- get getTagName() {
118
- if (this.variant === VARIANT_TYPOGRAPHY.LINK)
119
- return TAG_ELEMENT.A;
120
- return this.element.toLowerCase();
121
- }
122
- getVariantConfig() {
123
- return VARIANT_CONFIG[this.variant] ?? {};
124
- }
125
- getAccessibilityTags() {
126
- const { isRequired = null } = this.getVariantConfig();
127
- const isInteractiveTag = ['a', 'label'].includes(this.getTagName);
128
- return {
129
- 'aria-required': this.isRequired && isRequired,
130
- 'aria-disabled': this.state === COMPONENT_STATES.DISABLED && isInteractiveTag,
131
- };
132
- }
133
- getVariantStateStyles() {
134
- const config = this.getVariantConfig();
135
- return {
136
- [`bds-typography--${this.variant}`]: true,
137
- [`bds-typography--align-${this.align}`]: true,
138
- [`bds-typography--${this.state}`]: !!(config?.states && config?.states.includes(this.state)),
139
- [`bds-typography--size-${this.size}`]: !!(config?.size && config?.size.includes(this.size)),
140
- 'bds-typography--required': !!(config?.isRequired && this.isRequired),
141
- 'bds-typography--ellipsis': this.ellipsis && this.maxLines <= 1,
142
- 'bds-typography--ellipsis-multiline': this.ellipsis && this.maxLines > 1,
143
- [this.customClass]: this.customClass !== '',
144
- };
145
- }
146
- render() {
147
- const TagName = this.getTagName;
148
- const attributes = {
149
- ...getAttributesByTag(this, TagName),
150
- ...this.inheritedAttributes,
151
- ...this.getAccessibilityTags(),
152
- };
153
- const classes = this.getVariantStateStyles();
154
- const { canUseTooltip = null, isRequired = null } = this.getVariantConfig();
155
- return (h(Host, { key: '98e236475142f2be85fcc227cd507d6cb8648928', class: "bds-typography" }, h(TagName, { key: 'eed74e216dc0832b5f4808ba72e1374198f60e1a', class: classes, style: { webkitLineClamp: this.maxLines }, ...attributes }, h("slot", { key: 'cc073f2d2a3840970c62296379514884564c3473' }), this.isRequired && isRequired && (h("em", { key: '299a88d69856603b6e73af9567fa91b1a1e7434f', class: "bds-typography__required-indicator", "aria-hidden": "true" }, "*")), this.tooltipText && canUseTooltip && (h("span", { key: 'c8fa478a8fbd4a70d0869b4c9d523a8a0e9803bf' }, h("em", { key: '0f6869a6dd7ab04b19acee773e54687dbd070af0', class: "bds-typography__info-icon bds-icon-info-circle", "aria-label": this.tooltipText }), h("bds-tooltip", { key: 'ec2dfc33b119bc3f60ec52e8bd10fdb16ea5cc2a' }, this.tooltipText))))));
156
- }
157
- get el() { return getElement(this); }
158
- static get watchers() { return {
159
- "href": [{
160
- "updateSanitizedHref": 0
161
- }]
162
- }; }
163
- };
164
- BdsTypography.style = bdsTypographyCss();
165
-
166
- export { BdsTypography as bds_typography };
@@ -1,18 +0,0 @@
1
- /**
2
- * Validates a component prop against a list of accepted values.
3
- * If the current value is invalid, the prop is reset to the fallback and a warning is issued.
4
- *
5
- * @param acceptedValues - The list of valid values for the prop.
6
- * @param fallbackValue - The value to apply when the current value is invalid.
7
- * @param element - The host element whose property will be corrected.
8
- * @param propertyName - The name of the prop to validate.
9
- */
10
- function validatePropValue(acceptedValues, fallbackValue, element, propertyName) {
11
- const currentValue = element[propertyName];
12
- if (acceptedValues.includes(currentValue))
13
- return;
14
- element[propertyName] = fallbackValue;
15
- console.warn(`[BorealDS] Invalid value "${currentValue}" for prop "${propertyName}" on <${element.tagName.toLowerCase()}>. Expected one of: ${acceptedValues.join(', ')}.`);
16
- }
17
-
18
- export { validatePropValue as v };
@@ -1 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):i(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(r=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(e,t){var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)n[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++){if(t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i]))n[r[i]]=e[r[i]]}return n};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++){if(o||!(r in t)){if(!o)o=Array.prototype.slice.call(t,0,r);o[r]=t[r]}}return e.concat(o||Array.prototype.slice.call(t))};import{f as floatingMixin}from"./floating.mixin-DCXSEEVH.js";var min=Math.min;var max=Math.max;var round=Math.round;var floor=Math.floor;var createCoords=function(e){return{x:e,y:e}};var oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"};var oppositeAlignmentMap={start:"end",end:"start"};function clamp(e,t,n){return max(e,min(t,n))}function evaluate(e,t){return typeof e==="function"?e(t):e}function getSide(e){return e.split("-")[0]}function getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return e==="x"?"y":"x"}function getAxisLength(e){return e==="y"?"height":"width"}var yAxisSides=new Set(["top","bottom"]);function getSideAxis(e){return yAxisSides.has(getSide(e))?"y":"x"}function getAlignmentAxis(e){return getOppositeAxis(getSideAxis(e))}function getAlignmentSides(e,t,n){if(n===void 0){n=false}var r=getAlignment(e);var i=getAlignmentAxis(e);var o=getAxisLength(i);var a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";if(t.reference[o]>t.floating[o]){a=getOppositePlacement(a)}return[a,getOppositePlacement(a)]}function getExpandedPlacements(e){var t=getOppositePlacement(e);return[getOppositeAlignmentPlacement(e),t,getOppositeAlignmentPlacement(t)]}function getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,(function(e){return oppositeAlignmentMap[e]}))}var lrPlacement=["left","right"];var rlPlacement=["right","left"];var tbPlacement=["top","bottom"];var btPlacement=["bottom","top"];function getSideList(e,t,n){switch(e){case"top":case"bottom":if(n)return t?rlPlacement:lrPlacement;return t?lrPlacement:rlPlacement;case"left":case"right":return t?tbPlacement:btPlacement;default:return[]}}function getOppositeAxisPlacements(e,t,n,r){var i=getAlignment(e);var o=getSideList(getSide(e),n==="start",r);if(i){o=o.map((function(e){return e+"-"+i}));if(t){o=o.concat(o.map(getOppositeAlignmentPlacement))}}return o}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return oppositeSideMap[e]}))}function expandPaddingObject(e){return __assign({top:0,right:0,bottom:0,left:0},e)}function getPaddingObject(e){return typeof e!=="number"?expandPaddingObject(e):{top:e,right:e,bottom:e,left:e}}function rectToClientRect(e){var t=e.x,n=e.y,r=e.width,i=e.height;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function computeCoordsFromPlacement(e,t,n){var r=e.reference,i=e.floating;var o=getSideAxis(t);var a=getAlignmentAxis(t);var s=getAxisLength(a);var u=getSide(t);var l=o==="y";var f=r.x+r.width/2-i.width/2;var c=r.y+r.height/2-i.height/2;var v=r[s]/2-i[s]/2;var d;switch(u){case"top":d={x:f,y:r.y-i.height};break;case"bottom":d={x:f,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:c};break;case"left":d={x:r.x-i.width,y:c};break;default:d={x:r.x,y:r.y}}switch(getAlignment(t)){case"start":d[a]-=v*(n&&l?-1:1);break;case"end":d[a]+=v*(n&&l?-1:1);break}return d}function detectOverflow(e,t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u,l,f,c,v,d,g,m,h,p,w,_,y,x,b,A,S,E,O,C,P,R,T,N,L,M,F,D;var B;return __generator(this,(function(W){switch(W.label){case 0:if(t===void 0){t={}}r=e.x,i=e.y,o=e.platform,a=e.rects,s=e.elements,u=e.strategy;l=evaluate(t,e),f=l.boundary,c=f===void 0?"clippingAncestors":f,v=l.rootBoundary,d=v===void 0?"viewport":v,g=l.elementContext,m=g===void 0?"floating":g,h=l.altBoundary,p=h===void 0?false:h,w=l.padding,_=w===void 0?0:w;y=getPaddingObject(_);x=m==="floating"?"reference":"floating";b=s[p?x:m];S=rectToClientRect;O=(E=o).getClippingRect;B={};return[4,o.isElement==null?void 0:o.isElement(b)];case 1:if(!((n=W.sent())!=null?n:true))return[3,2];C=b;return[3,5];case 2:P=b.contextElement;if(P)return[3,4];return[4,o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)];case 3:P=W.sent();W.label=4;case 4:C=P;W.label=5;case 5:return[4,O.apply(E,[(B.element=C,B.boundary=c,B.rootBoundary=d,B.strategy=u,B)])];case 6:A=S.apply(void 0,[W.sent()]);R=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference;return[4,o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)];case 7:T=W.sent();return[4,o.isElement==null?void 0:o.isElement(T)];case 8:if(!W.sent())return[3,10];return[4,o.getScale==null?void 0:o.getScale(T)];case 9:L=W.sent()||{x:1,y:1};return[3,11];case 10:L={x:1,y:1};W.label=11;case 11:N=L;F=rectToClientRect;if(!o.convertOffsetParentRelativeRectToViewportRelativeRect)return[3,13];return[4,o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:R,offsetParent:T,strategy:u})];case 12:D=W.sent();return[3,14];case 13:D=R;W.label=14;case 14:M=F.apply(void 0,[D]);return[2,{top:(A.top-M.top+y.top)/N.y,bottom:(M.bottom-A.bottom+y.bottom)/N.y,left:(A.left-M.left+y.left)/N.x,right:(M.right-A.right+y.right)/N.x}]}}))}))}var computePosition$1=function(e,t,n){return __awaiter(void 0,void 0,void 0,(function(){var r,i,o,a,s,u,l,f,c,v,d,g,m,h,p,w,_,y,x,b,A,S,E,O,C,P,R;var T,N;return __generator(this,(function(L){switch(L.label){case 0:r=n.placement,i=r===void 0?"bottom":r,o=n.strategy,a=o===void 0?"absolute":o,s=n.middleware,u=s===void 0?[]:s,l=n.platform;f=u.filter(Boolean);return[4,l.isRTL==null?void 0:l.isRTL(t)];case 1:c=L.sent();return[4,l.getElementRects({reference:e,floating:t,strategy:a})];case 2:v=L.sent();d=computeCoordsFromPlacement(v,i,c),g=d.x,m=d.y;h=i;p={};w=0;_=0;L.label=3;case 3:if(!(_<f.length))return[3,11];x=f[_],b=x.name,A=x.fn;return[4,A({x:g,y:m,initialPlacement:i,placement:h,strategy:a,middlewareData:p,rects:v,platform:__assign(__assign({},l),{detectOverflow:(y=l.detectOverflow)!=null?y:detectOverflow}),elements:{reference:e,floating:t}})];case 4:S=L.sent(),E=S.x,O=S.y,C=S.data,P=S.reset;g=E!=null?E:g;m=O!=null?O:m;p=__assign(__assign({},p),(T={},T[b]=__assign(__assign({},p[b]),C),T));if(!(P&&w<=50))return[3,10];w++;if(!(typeof P==="object"))return[3,9];if(P.placement){h=P.placement}if(!P.rects)return[3,8];if(!(P.rects===true))return[3,6];return[4,l.getElementRects({reference:e,floating:t,strategy:a})];case 5:R=L.sent();return[3,7];case 6:R=P.rects;L.label=7;case 7:v=R;L.label=8;case 8:N=computeCoordsFromPlacement(v,h,c),g=N.x,m=N.y;L.label=9;case 9:_=-1;L.label=10;case 10:_++;return[3,3];case 11:return[2,{x:g,y:m,placement:h,strategy:a,middlewareData:p}]}}))}))};var arrow$1=function(e){return{name:"arrow",options:e,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u,l,f,c,v,d,g,m,h,p,w,_,y,x,b,A,S,E,O,C,P,R,T,N,L,M,F,D,B;var W,k;return __generator(this,(function(V){switch(V.label){case 0:n=t.x,r=t.y,i=t.placement,o=t.rects,a=t.platform,s=t.elements,u=t.middlewareData;l=evaluate(e,t)||{},f=l.element,c=l.padding,v=c===void 0?0:c;if(f==null){return[2,{}]}d=getPaddingObject(v);g={x:n,y:r};m=getAlignmentAxis(i);h=getAxisLength(m);return[4,a.getDimensions(f)];case 1:p=V.sent();w=m==="y";_=w?"top":"left";y=w?"bottom":"right";x=w?"clientHeight":"clientWidth";b=o.reference[h]+o.reference[m]-g[m]-o.floating[h];A=g[m]-o.reference[m];return[4,a.getOffsetParent==null?void 0:a.getOffsetParent(f)];case 2:S=V.sent();E=S?S[x]:0;O=!E;if(O)return[3,4];return[4,a.isElement==null?void 0:a.isElement(S)];case 3:O=!V.sent();V.label=4;case 4:if(O){E=s.floating[x]||o.floating[h]}C=b/2-A/2;P=E/2-p[h]/2-1;R=min(d[_],P);T=min(d[y],P);N=R;L=E-p[h]-T;M=E/2-p[h]/2+C;F=clamp(N,M,L);D=!u.arrow&&getAlignment(i)!=null&&M!==F&&o.reference[h]/2-(M<N?R:T)-p[h]/2<0;B=D?M<N?M-N:M-L:0;return[2,(W={},W[m]=g[m]+B,W.data=__assign((k={},k[m]=F,k.centerOffset=M-F-B,k),D&&{alignmentOffset:B}),W.reset=D,W)]}}))}))}}};var flip$1=function(e){if(e===void 0){e={}}return{name:"flip",options:e,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u,l,f,c,v,d,g,m,h,p,w,_,y,x,b,A,S,E,O,C,P,R,T,N,L,M,F,D,B,W,k,V,$,j;return __generator(this,(function(H){switch(H.label){case 0:i=t.placement,o=t.middlewareData,a=t.rects,s=t.initialPlacement,u=t.platform,l=t.elements;f=evaluate(e,t),c=f.mainAxis,v=c===void 0?true:c,d=f.crossAxis,g=d===void 0?true:d,m=f.fallbackPlacements,h=f.fallbackStrategy,p=h===void 0?"bestFit":h,w=f.fallbackAxisSideDirection,_=w===void 0?"none":w,y=f.flipAlignment,x=y===void 0?true:y,b=__rest(f,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((n=o.arrow)!=null&&n.alignmentOffset){return[2,{}]}A=getSide(i);S=getSideAxis(s);E=getSide(s)===s;return[4,u.isRTL==null?void 0:u.isRTL(l.floating)];case 1:O=H.sent();C=m||(E||!x?[getOppositePlacement(s)]:getExpandedPlacements(s));P=_!=="none";if(!m&&P){C.push.apply(C,getOppositeAxisPlacements(s,x,_,O))}R=__spreadArray([s],C,true);return[4,u.detectOverflow(t,b)];case 2:T=H.sent();N=[];L=((r=o.flip)==null?void 0:r.overflows)||[];if(v){N.push(T[A])}if(g){M=getAlignmentSides(i,a,O);N.push(T[M[0]],T[M[1]])}L=__spreadArray(__spreadArray([],L,true),[{placement:i,overflows:N}],false);if(!N.every((function(e){return e<=0}))){B=(((F=o.flip)==null?void 0:F.index)||0)+1;W=R[B];if(W){k=g==="alignment"?S!==getSideAxis(W):false;if(!k||L.every((function(e){return getSideAxis(e.placement)===S?e.overflows[0]>0:true}))){return[2,{data:{index:B,overflows:L},reset:{placement:W}}]}}V=(D=L.filter((function(e){return e.overflows[0]<=0})).sort((function(e,t){return e.overflows[1]-t.overflows[1]}))[0])==null?void 0:D.placement;if(!V){switch(p){case"bestFit":{j=($=L.filter((function(e){if(P){var t=getSideAxis(e.placement);return t===S||t==="y"}return true})).map((function(e){return[e.placement,e.overflows.filter((function(e){return e>0})).reduce((function(e,t){return e+t}),0)]})).sort((function(e,t){return e[1]-t[1]}))[0])==null?void 0:$[0];if(j){V=j}break}case"initialPlacement":V=s;break}}if(i!==V){return[2,{reset:{placement:V}}]}}return[2,{}]}}))}))}}};var originSides=new Set(["left","top"]);function convertValueToCoords(e,t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u,l,f,c,v,d,g,m;return __generator(this,(function(h){switch(h.label){case 0:n=e.placement,r=e.platform,i=e.elements;return[4,r.isRTL==null?void 0:r.isRTL(i.floating)];case 1:o=h.sent();a=getSide(n);s=getAlignment(n);u=getSideAxis(n)==="y";l=originSides.has(a)?-1:1;f=o&&u?-1:1;c=evaluate(t,e);v=typeof c==="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis},d=v.mainAxis,g=v.crossAxis,m=v.alignmentAxis;if(s&&typeof m==="number"){g=s==="end"?m*-1:m}return[2,u?{x:g*f,y:d*l}:{x:d*l,y:g*f}]}}))}))}var offset$1=function(e){if(e===void 0){e=0}return{name:"offset",options:e,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u;return __generator(this,(function(l){switch(l.label){case 0:i=t.x,o=t.y,a=t.placement,s=t.middlewareData;return[4,convertValueToCoords(t,e)];case 1:u=l.sent();if(a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset){return[2,{}]}return[2,{x:i+u.x,y:o+u.y,data:__assign(__assign({},u),{placement:a})}]}}))}))}}};var shift$1=function(e){if(e===void 0){e={}}return{name:"shift",options:e,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u,l,f,c,v,d,g,m,h,p,w,_,y,x,b,A,y,x,S,E,O;var C,P;return __generator(this,(function(R){switch(R.label){case 0:n=t.x,r=t.y,i=t.placement,o=t.platform;a=evaluate(e,t),s=a.mainAxis,u=s===void 0?true:s,l=a.crossAxis,f=l===void 0?false:l,c=a.limiter,v=c===void 0?{fn:function(e){var t=e.x,n=e.y;return{x:t,y:n}}}:c,d=__rest(a,["mainAxis","crossAxis","limiter"]);g={x:n,y:r};return[4,o.detectOverflow(t,d)];case 1:m=R.sent();h=getSideAxis(getSide(i));p=getOppositeAxis(h);w=g[p];_=g[h];if(u){y=p==="y"?"top":"left";x=p==="y"?"bottom":"right";b=w+m[y];A=w-m[x];w=clamp(b,w,A)}if(f){y=h==="y"?"top":"left";x=h==="y"?"bottom":"right";S=_+m[y];E=_-m[x];_=clamp(S,_,E)}O=v.fn(__assign(__assign({},t),(C={},C[p]=w,C[h]=_,C)));return[2,__assign(__assign({},O),{data:{x:O.x-n,y:O.y-r,enabled:(P={},P[p]=u,P[h]=f,P)}})]}}))}))}}};function hasWindow(){return typeof window!=="undefined"}function getNodeName(e){if(isNode(e)){return(e.nodeName||"").toLowerCase()}return"#document"}function getWindow(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return(t=(isNode(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function isNode(e){if(!hasWindow()){return false}return e instanceof Node||e instanceof getWindow(e).Node}function isElement(e){if(!hasWindow()){return false}return e instanceof Element||e instanceof getWindow(e).Element}function isHTMLElement(e){if(!hasWindow()){return false}return e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement}function isShadowRoot(e){if(!hasWindow()||typeof ShadowRoot==="undefined"){return false}return e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot}var invalidOverflowDisplayValues=new Set(["inline","contents"]);function isOverflowElement(e){var t=getComputedStyle$1(e),n=t.overflow,r=t.overflowX,i=t.overflowY,o=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!invalidOverflowDisplayValues.has(o)}var tableElements=new Set(["table","td","th"]);function isTableElement(e){return tableElements.has(getNodeName(e))}var topLayerSelectors=[":popover-open",":modal"];function isTopLayer(e){return topLayerSelectors.some((function(t){try{return e.matches(t)}catch(e){return false}}))}var transformProperties=["transform","translate","scale","rotate","perspective"];var willChangeValues=["transform","translate","scale","rotate","perspective","filter"];var containValues=["paint","layout","strict","content"];function isContainingBlock(e){var t=isWebKit();var n=isElement(e)?getComputedStyle$1(e):e;return transformProperties.some((function(e){return n[e]?n[e]!=="none":false}))||(n.containerType?n.containerType!=="normal":false)||!t&&(n.backdropFilter?n.backdropFilter!=="none":false)||!t&&(n.filter?n.filter!=="none":false)||willChangeValues.some((function(e){return(n.willChange||"").includes(e)}))||containValues.some((function(e){return(n.contain||"").includes(e)}))}function getContainingBlock(e){var t=getParentNode(e);while(isHTMLElement(t)&&!isLastTraversableNode(t)){if(isContainingBlock(t)){return t}else if(isTopLayer(t)){return null}t=getParentNode(t)}return null}function isWebKit(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}var lastTraversableNodeNames=new Set(["html","body","#document"]);function isLastTraversableNode(e){return lastTraversableNodeNames.has(getNodeName(e))}function getComputedStyle$1(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){if(isElement(e)){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}return{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function getParentNode(e){if(getNodeName(e)==="html"){return e}var t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(e){var t=getParentNode(e);if(isLastTraversableNode(t)){return e.ownerDocument?e.ownerDocument.body:e.body}if(isHTMLElement(t)&&isOverflowElement(t)){return t}return getNearestOverflowAncestor(t)}function getOverflowAncestors(e,t,n){var r;if(t===void 0){t=[]}if(n===void 0){n=true}var i=getNearestOverflowAncestor(e);var o=i===((r=e.ownerDocument)==null?void 0:r.body);var a=getWindow(i);if(o){var s=getFrameElement(a);return t.concat(a,a.visualViewport||[],isOverflowElement(i)?i:[],s&&n?getOverflowAncestors(s):[])}return t.concat(i,getOverflowAncestors(i,[],n))}function getFrameElement(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function getCssDimensions(e){var t=getComputedStyle$1(e);var n=parseFloat(t.width)||0;var r=parseFloat(t.height)||0;var i=isHTMLElement(e);var o=i?e.offsetWidth:n;var a=i?e.offsetHeight:r;var s=round(n)!==o||round(r)!==a;if(s){n=o;r=a}return{width:n,height:r,$:s}}function unwrapElement(e){return!isElement(e)?e.contextElement:e}function getScale(e){var t=unwrapElement(e);if(!isHTMLElement(t)){return createCoords(1)}var n=t.getBoundingClientRect();var r=getCssDimensions(t),i=r.width,o=r.height,a=r.$;var s=(a?round(n.width):n.width)/i;var u=(a?round(n.height):n.height)/o;if(!s||!Number.isFinite(s)){s=1}if(!u||!Number.isFinite(u)){u=1}return{x:s,y:u}}var noOffsets=createCoords(0);function getVisualOffsets(e){var t=getWindow(e);if(!isWebKit()||!t.visualViewport){return noOffsets}return{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function shouldAddVisualOffsets(e,t,n){if(t===void 0){t=false}if(!n||t&&n!==getWindow(e)){return false}return t}function getBoundingClientRect(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=false}var i=e.getBoundingClientRect();var o=unwrapElement(e);var a=createCoords(1);if(t){if(r){if(isElement(r)){a=getScale(r)}}else{a=getScale(e)}}var s=shouldAddVisualOffsets(o,n,r)?getVisualOffsets(o):createCoords(0);var u=(i.left+s.x)/a.x;var l=(i.top+s.y)/a.y;var f=i.width/a.x;var c=i.height/a.y;if(o){var v=getWindow(o);var d=r&&isElement(r)?getWindow(r):r;var g=v;var m=getFrameElement(g);while(m&&r&&d!==g){var h=getScale(m);var p=m.getBoundingClientRect();var w=getComputedStyle$1(m);var _=p.left+(m.clientLeft+parseFloat(w.paddingLeft))*h.x;var y=p.top+(m.clientTop+parseFloat(w.paddingTop))*h.y;u*=h.x;l*=h.y;f*=h.x;c*=h.y;u+=_;l+=y;g=getWindow(m);m=getFrameElement(g)}}return rectToClientRect({width:f,height:c,x:u,y:l})}function getWindowScrollBarX(e,t){var n=getNodeScroll(e).scrollLeft;if(!t){return getBoundingClientRect(getDocumentElement(e)).left+n}return t.left+n}function getHTMLOffset(e,t){var n=e.getBoundingClientRect();var r=n.left+t.scrollLeft-getWindowScrollBarX(e,n);var i=n.top+t.scrollTop;return{x:r,y:i}}function convertOffsetParentRelativeRectToViewportRelativeRect(e){var t=e.elements,n=e.rect,r=e.offsetParent,i=e.strategy;var o=i==="fixed";var a=getDocumentElement(r);var s=t?isTopLayer(t.floating):false;if(r===a||s&&o){return n}var u={scrollLeft:0,scrollTop:0};var l=createCoords(1);var f=createCoords(0);var c=isHTMLElement(r);if(c||!c&&!o){if(getNodeName(r)!=="body"||isOverflowElement(a)){u=getNodeScroll(r)}if(isHTMLElement(r)){var v=getBoundingClientRect(r);l=getScale(r);f.x=v.x+r.clientLeft;f.y=v.y+r.clientTop}}var d=a&&!c&&!o?getHTMLOffset(a,u):createCoords(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+f.x+d.x,y:n.y*l.y-u.scrollTop*l.y+f.y+d.y}}function getClientRects(e){return Array.from(e.getClientRects())}function getDocumentRect(e){var t=getDocumentElement(e);var n=getNodeScroll(e);var r=e.ownerDocument.body;var i=max(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth);var o=max(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);var a=-n.scrollLeft+getWindowScrollBarX(e);var s=-n.scrollTop;if(getComputedStyle$1(r).direction==="rtl"){a+=max(t.clientWidth,r.clientWidth)-i}return{width:i,height:o,x:a,y:s}}var SCROLLBAR_MAX=25;function getViewportRect(e,t){var n=getWindow(e);var r=getDocumentElement(e);var i=n.visualViewport;var o=r.clientWidth;var a=r.clientHeight;var s=0;var u=0;if(i){o=i.width;a=i.height;var l=isWebKit();if(!l||l&&t==="fixed"){s=i.offsetLeft;u=i.offsetTop}}var f=getWindowScrollBarX(r);if(f<=0){var c=r.ownerDocument;var v=c.body;var d=getComputedStyle(v);var g=c.compatMode==="CSS1Compat"?parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0:0;var m=Math.abs(r.clientWidth-v.clientWidth-g);if(m<=SCROLLBAR_MAX){o-=m}}else if(f<=SCROLLBAR_MAX){o+=f}return{width:o,height:a,x:s,y:u}}var absoluteOrFixed=new Set(["absolute","fixed"]);function getInnerBoundingClientRect(e,t){var n=getBoundingClientRect(e,true,t==="fixed");var r=n.top+e.clientTop;var i=n.left+e.clientLeft;var o=isHTMLElement(e)?getScale(e):createCoords(1);var a=e.clientWidth*o.x;var s=e.clientHeight*o.y;var u=i*o.x;var l=r*o.y;return{width:a,height:s,x:u,y:l}}function getClientRectFromClippingAncestor(e,t,n){var r;if(t==="viewport"){r=getViewportRect(e,n)}else if(t==="document"){r=getDocumentRect(getDocumentElement(e))}else if(isElement(t)){r=getInnerBoundingClientRect(t,n)}else{var i=getVisualOffsets(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return rectToClientRect(r)}function hasFixedPositionAncestor(e,t){var n=getParentNode(e);if(n===t||!isElement(n)||isLastTraversableNode(n)){return false}return getComputedStyle$1(n).position==="fixed"||hasFixedPositionAncestor(n,t)}function getClippingElementAncestors(e,t){var n=t.get(e);if(n){return n}var r=getOverflowAncestors(e,[],false).filter((function(e){return isElement(e)&&getNodeName(e)!=="body"}));var i=null;var o=getComputedStyle$1(e).position==="fixed";var a=o?getParentNode(e):e;while(isElement(a)&&!isLastTraversableNode(a)){var s=getComputedStyle$1(a);var u=isContainingBlock(a);if(!u&&s.position==="fixed"){i=null}var l=o?!u&&!i:!u&&s.position==="static"&&!!i&&absoluteOrFixed.has(i.position)||isOverflowElement(a)&&!u&&hasFixedPositionAncestor(e,a);if(l){r=r.filter((function(e){return e!==a}))}else{i=s}a=getParentNode(a)}t.set(e,r);return r}function getClippingRect(e){var t=e.element,n=e.boundary,r=e.rootBoundary,i=e.strategy;var o=n==="clippingAncestors"?isTopLayer(t)?[]:getClippingElementAncestors(t,this._c):[].concat(n);var a=__spreadArray(__spreadArray([],o,true),[r],false);var s=a[0];var u=a.reduce((function(e,n){var r=getClientRectFromClippingAncestor(t,n,i);e.top=max(r.top,e.top);e.right=min(r.right,e.right);e.bottom=min(r.bottom,e.bottom);e.left=max(r.left,e.left);return e}),getClientRectFromClippingAncestor(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function getDimensions(e){var t=getCssDimensions(e),n=t.width,r=t.height;return{width:n,height:r}}function getRectRelativeToOffsetParent(e,t,n){var r=isHTMLElement(t);var i=getDocumentElement(t);var o=n==="fixed";var a=getBoundingClientRect(e,true,o,t);var s={scrollLeft:0,scrollTop:0};var u=createCoords(0);function l(){u.x=getWindowScrollBarX(i)}if(r||!r&&!o){if(getNodeName(t)!=="body"||isOverflowElement(i)){s=getNodeScroll(t)}if(r){var f=getBoundingClientRect(t,true,o,t);u.x=f.x+t.clientLeft;u.y=f.y+t.clientTop}else if(i){l()}}if(o&&!r&&i){l()}var c=i&&!r&&!o?getHTMLOffset(i,s):createCoords(0);var v=a.left+s.scrollLeft-u.x-c.x;var d=a.top+s.scrollTop-u.y-c.y;return{x:v,y:d,width:a.width,height:a.height}}function isStaticPositioned(e){return getComputedStyle$1(e).position==="static"}function getTrueOffsetParent(e,t){if(!isHTMLElement(e)||getComputedStyle$1(e).position==="fixed"){return null}if(t){return t(e)}var n=e.offsetParent;if(getDocumentElement(e)===n){n=n.ownerDocument.body}return n}function getOffsetParent(e,t){var n=getWindow(e);if(isTopLayer(e)){return n}if(!isHTMLElement(e)){var r=getParentNode(e);while(r&&!isLastTraversableNode(r)){if(isElement(r)&&!isStaticPositioned(r)){return r}r=getParentNode(r)}return n}var i=getTrueOffsetParent(e,t);while(i&&isTableElement(i)&&isStaticPositioned(i)){i=getTrueOffsetParent(i,t)}if(i&&isLastTraversableNode(i)&&isStaticPositioned(i)&&!isContainingBlock(i)){return n}return i||getContainingBlock(e)||n}var getElementRects=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,r,i,o;var a;return __generator(this,(function(s){switch(s.label){case 0:t=this.getOffsetParent||getOffsetParent;n=this.getDimensions;return[4,n(e.floating)];case 1:r=s.sent();a={};i=getRectRelativeToOffsetParent;o=[e.reference];return[4,t(e.floating)];case 2:return[2,(a.reference=i.apply(void 0,o.concat([s.sent(),e.strategy])),a.floating={x:0,y:0,width:r.width,height:r.height},a)]}}))}))};function isRTL(e){return getComputedStyle$1(e).direction==="rtl"}var platform={convertOffsetParentRelativeRectToViewportRelativeRect:convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement:getDocumentElement,getClippingRect:getClippingRect,getOffsetParent:getOffsetParent,getElementRects:getElementRects,getClientRects:getClientRects,getDimensions:getDimensions,getScale:getScale,isElement:isElement,isRTL:isRTL};function rectsAreEqual(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function observeMove(e,t){var n=null;var r;var i=getDocumentElement(e);function o(){var e;clearTimeout(r);(e=n)==null||e.disconnect();n=null}function a(s,u){if(s===void 0){s=false}if(u===void 0){u=1}o();var l=e.getBoundingClientRect();var f=l.left,c=l.top,v=l.width,d=l.height;if(!s){t()}if(!v||!d){return}var g=floor(c);var m=floor(i.clientWidth-(f+v));var h=floor(i.clientHeight-(c+d));var p=floor(f);var w=-g+"px "+-m+"px "+-h+"px "+-p+"px";var _={rootMargin:w,threshold:max(0,min(1,u))||1};var y=true;function x(t){var n=t[0].intersectionRatio;if(n!==u){if(!y){return a()}if(!n){r=setTimeout((function(){a(false,1e-7)}),1e3)}else{a(false,n)}}if(n===1&&!rectsAreEqual(l,e.getBoundingClientRect())){a()}y=false}try{n=new IntersectionObserver(x,__assign(__assign({},_),{root:i.ownerDocument}))}catch(e){n=new IntersectionObserver(x,_)}n.observe(e)}a(true);return o}function autoUpdate(e,t,n,r){if(r===void 0){r={}}var i=r.ancestorScroll,o=i===void 0?true:i,a=r.ancestorResize,s=a===void 0?true:a,u=r.elementResize,l=u===void 0?typeof ResizeObserver==="function":u,f=r.layoutShift,c=f===void 0?typeof IntersectionObserver==="function":f,v=r.animationFrame,d=v===void 0?false:v;var g=unwrapElement(e);var m=o||s?__spreadArray(__spreadArray([],g?getOverflowAncestors(g):[],true),getOverflowAncestors(t),true):[];m.forEach((function(e){o&&e.addEventListener("scroll",n,{passive:true});s&&e.addEventListener("resize",n)}));var h=g&&c?observeMove(g,n):null;var p=-1;var w=null;if(l){w=new ResizeObserver((function(e){var r=e[0];if(r&&r.target===g&&w){w.unobserve(t);cancelAnimationFrame(p);p=requestAnimationFrame((function(){var e;(e=w)==null||e.observe(t)}))}n()}));if(g&&!d){w.observe(g)}w.observe(t)}var _;var y=d?getBoundingClientRect(e):null;if(d){x()}function x(){var t=getBoundingClientRect(e);if(y&&!rectsAreEqual(y,t)){n()}y=t;_=requestAnimationFrame(x)}n();return function(){var e;m.forEach((function(e){o&&e.removeEventListener("scroll",n);s&&e.removeEventListener("resize",n)}));h==null||h();(e=w)==null||e.disconnect();w=null;if(d){cancelAnimationFrame(_)}}}var offset=offset$1;var shift=shift$1;var flip=flip$1;var arrow=arrow$1;var computePosition=function(e,t,n){var r=new Map;var i=__assign({platform:platform},n);var o=__assign(__assign({},i.platform),{_c:r});return computePosition$1(e,t,__assign(__assign({},i),{platform:o}))};var Logger=function(){function e(){}e.prototype.error=function(e,t){throw new Error("[".concat(e,"]: ").concat(t))};e.prototype.warn=function(e,t){console.warn("[".concat(e,"]: ").concat(t))};e.prototype.log=function(e,t){console.log("[".concat(e,"]: ").concat(t))};return e}();var FloatingAdapter=function(){function e(e){this.logger=e}e.prototype.computePosition=function(e,t,n){return __awaiter(this,void 0,void 0,(function(){var r,i,o,a,s,u,l,f,c,v,d,g;var m=this;return __generator(this,(function(h){switch(h.label){case 0:if(e===undefined||e===null)this.logger.error("FloatingAdapter.computePosition","Reference element is required for positioning.");if(t===undefined||t===null)this.logger.error("FloatingAdapter.computePosition","Floating element is required for positioning.");r=n.placement,i=n.offset,o=n.flip,a=n.shift,s=n.arrow,u=n.strategy;l=[offset(i)];if(o)l.push(flip());if(a)l.push(shift());if(s!==undefined||s!==null)l.push(arrow({element:s}));return[4,computePosition(e,t,{placement:r,middleware:l,strategy:u}).catch((function(e){m.logger.error("FloatingAdapter.computePosition",e.message)})).then((function(e){return e}))];case 1:f=h.sent();c=f.x,v=f.y,d=f.placement,g=f.middlewareData;return[2,{x:c,y:v,placement:d,middlewareData:g}]}}))}))};e.prototype.applyPosition=function(e,t){if(e===undefined||e===null)this.logger.error("FloatingAdapter.applyPosition","Element is required to apply positioning.");e.style.left="".concat(t.x,"px");e.style.top="".concat(t.y,"px")};return e}();var PositioningEngine=function(e){__extends(t,e);function t(){var t=new Logger;return e.call(this,t)||this}return t}(FloatingAdapter);var EVENTS={Focus:"focus",Blur:"blur"};var KEYBOARD={Enter:{key:"Enter"},Escape:{key:"Escape"}};var anchoredMixin=function(e){var t=function(e){__extends(t,e);function t(){return e.call(this)||this}Object.defineProperty(t.prototype,"options",{get:function(){return{placement:"bottom",offset:8,strategy:"fixed"}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hooks",{get:function(){return{}},enumerable:false,configurable:true});t.prototype.showElement=function(){var e=this;this.floatingContent.showPopover();this.isVisible=true;this.startAutoUpdate(this.triggerSlot,this.floatingContent,this.options,(function(t){var n,r;(r=(n=e.hooks).onPositionUpdate)===null||r===void 0?void 0:r.call(n,t)}))};t.prototype.onBeforeShow=function(t){if(this.triggerSlot===null||this.triggerSlot===undefined){this.logger.error("AnchoredMixin.show","triggerSlot is required");return false}return e.prototype.onBeforeShow.call(this,t)};t.prototype.hideElement=function(){var e;this.stopAutoUpdate();(e=this.floatingContent)===null||e===void 0?void 0:e.hidePopover();this.isVisible=false};t.prototype.handleSlotChange=function(e,t,n){var r=e.target;if(this.previousTrigger!==undefined&&this.previousTrigger!==null){this.detachTriggerListeners(this.previousTrigger,t,n)}if(r!==undefined&&r!==null){this.attachTriggerListeners(r,t,n);this.previousTrigger=r}};t.prototype.handleKeydown=function(e,t,n){if(e.key===KEYBOARD.Enter.key||e.key===" ")t();if(e.key===KEYBOARD.Escape.key)n()};t.prototype.updatePosition=function(e,t,n,r){return __awaiter(this,void 0,void 0,(function(){var i;var o,a,s;return __generator(this,(function(u){switch(u.label){case 0:return[4,this.positionEngine.computePosition(e,t,{placement:n.placement,offset:n.offset,flip:(o=n.flip)!==null&&o!==void 0?o:true,shift:(a=n.shift)!==null&&a!==void 0?a:true,arrow:n.arrow,strategy:(s=n.strategy)!==null&&s!==void 0?s:"fixed"})];case 1:i=u.sent();this.positionEngine.applyPosition(t,i);r===null||r===void 0?void 0:r(i);return[2,i]}}))}))};t.prototype.startAutoUpdate=function(e,t,n,r){var i=this;var o=function(){void i.updatePosition(e,t,n,r)};o();this.cleanupAutoUpdate=autoUpdate(e,t,o,{elementResize:true,layoutShift:true})};t.prototype.stopAutoUpdate=function(){var e;(e=this.cleanupAutoUpdate)===null||e===void 0?void 0:e.call(this);this.cleanupAutoUpdate=undefined};t.prototype.attachTriggerListeners=function(e,t,n){e.addEventListener(EVENTS.Focus,t);e.addEventListener(EVENTS.Blur,n)};t.prototype.detachTriggerListeners=function(e,t,n){e.removeEventListener(EVENTS.Focus,t);e.removeEventListener(EVENTS.Blur,n)};t.prototype.floatingDisconnect=function(e,t){if(this.previousTrigger!==undefined&&this.previousTrigger!==null){this.detachTriggerListeners(this.previousTrigger,e,t)}this.stopAutoUpdate()};t.prototype.subscribeToTrigger=function(e){if(this.hooks.subscribeToTrigger!==undefined)this.hooks.subscribeToTrigger(e)};t.prototype.onBeforeLoad=function(){var e=this.el.parentElement;if(e===null)return;var t=e.querySelector("[bds-tooltip], [bds-popover]")||e;if(t.isConnected){this.triggerSlot=t;this.subscribeToTrigger(t)}};t.prototype.componentDidLoad=function(){var e,t;this.onBeforeLoad();(t=(e=this.hooks).onBeforeLoad)===null||t===void 0?void 0:t.call(e,this.el)};t.prototype.componentWillLoad=function(){this.toggle=this.toggle.bind(this);this.show=this.show.bind(this);this.hide=this.hide.bind(this);this.positionEngine=new PositioningEngine;this.logger=new Logger;this.cleanupAutoUpdate=undefined;this.previousTrigger=undefined};t.prototype.disconnectedCallback=function(){var e=this;if(this.previousTrigger!==undefined&&this.previousTrigger!==null){this.floatingDisconnect((function(){return e.show()}),(function(){return e.hide()}))}this.stopAutoUpdate();this.hide()};Object.defineProperty(t,"elementRef",{get:function(){return"el"},enumerable:false,configurable:true});return t}(floatingMixin(e));return t};export{anchoredMixin as a};
@@ -1 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var t=function(e,o){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[o]=e[o]};return t(e,o)};return function(e,o){if(typeof o!=="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function r(){this.constructor=e}e.prototype=o===null?Object.create(o):(r.prototype=o.prototype,new r)}}();import{M as Mixin,r as registerInstance,h,a as Host,g as getElement}from"./index-D4EFsvs1.js";import{a as anchoredMixin}from"./anchored.mixin-Y3MkGc2X.js";import"./floating.mixin-DCXSEEVH.js";var bdsTooltipCss=function(){return'@charset "UTF-8";:root{--tooltip-arrow-size:var(--boreal-spacing-s);--tooltip-width:320px}.tooltip-content{position:fixed;margin:0;border:0;overflow:visible;border-radius:var(--boreal-radius-xs2);background:var(--boreal-ui-black);color:var(--boreal-text-inverse);padding:var(--boreal-spacing-2xs) var(--boreal-spacing-s);font-size:var(--boreal-typography-font-size-xs);line-height:var(--boreal-typography-line-height-xs);font-family:var(--boreal-typography-font-family-primary);border:var(--boreal-spacing-2xs) solid var(--boreal-ui-black);font-weight:var(--boreal-typography-font-weight-regular)}.tooltip-content--multiline{white-space:normal;max-width:var(--tooltip-width, 320px);word-break:break-word;text-align:center}.tooltip-arrow{position:absolute;width:var(--tooltip-arrow-size);height:var(--tooltip-arrow-size);pointer-events:none;z-index:-1}.tooltip-arrow::before{content:"";position:absolute;width:var(--tooltip-arrow-size);height:var(--tooltip-arrow-size);background:var(--boreal-ui-black);-webkit-transform:rotate(45deg);transform:rotate(45deg)}.tooltip-content[data-placement^=top] .tooltip-arrow{bottom:calc(var(--tooltip-arrow-size) / -2)}.tooltip-content[data-placement^=top] .tooltip-arrow::before{top:0}.tooltip-content[data-placement^=bottom] .tooltip-arrow{top:calc(var(--tooltip-arrow-size) / -2)}.tooltip-content[data-placement^=bottom] .tooltip-arrow::before{top:0}.tooltip-content[data-placement^=left] .tooltip-arrow{right:calc(var(--tooltip-arrow-size) / -2)}.tooltip-content[data-placement^=left] .tooltip-arrow::before{left:0}.tooltip-content[data-placement^=right] .tooltip-arrow{left:calc(var(--tooltip-arrow-size) / -2)}.tooltip-content[data-placement^=right] .tooltip-arrow::before{left:0}'};var BdsTooltip=function(t){__extends(e,t);function e(e){var o=t.call(this)||this;registerInstance(o,e);o.multiline=false;o.disabled=false;o.floatingOptions={};o.isVisible=false;return o}Object.defineProperty(e.prototype,"options",{get:function(){var t,e;return{placement:(t=this.floatingOptions.placement)!==null&&t!==void 0?t:"bottom",offset:(e=this.floatingOptions.offset)!==null&&e!==void 0?e:8,arrow:this.floatingOptions.hideArrow?undefined:this.arrowElement,strategy:"fixed"}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"hooks",{get:function(){var t=this;return{onPositionUpdate:function(e){return t.handlePosition(e)},onBeforeShow:function(){return t.validateShow()},onBeforeHide:function(e){return t.validateHide(e)},subscribeToTrigger:function(e){return t.subscribe(e)}}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"canShowArrow",{get:function(){return!this.floatingOptions.hideArrow||false},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"getPlacement",{get:function(){return this.floatingOptions.placement||"bottom"},enumerable:false,configurable:true});e.prototype.validateShow=function(){return!this.disabled};e.prototype.validateHide=function(t){if(this.floatingOptions.stayOnHover&&t!==undefined&&t.isConnected){var e=this.floatingContent.contains(t)||this.floatingContent===t;if(e)return false}return true};e.prototype.handlePosition=function(t){this.floatingContent.setAttribute("data-placement",t.placement);this.setArrowPosition(t)};e.prototype.setArrowPosition=function(t){var e,o;if(((e=t.middlewareData)===null||e===void 0?void 0:e.arrow)&&!this.disabled&&((o=this.arrowElement)===null||o===void 0?void 0:o.isConnected)){var r=t.middlewareData.arrow,i=r.x,n=r.y;Object.assign(this.arrowElement.style,{left:i!=null?"".concat(i,"px"):"",top:n!=null?"".concat(n,"px"):""})}};Object.defineProperty(e.prototype,"hasMultiline",{get:function(){return this.multiline!==undefined&&this.multiline},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"tooltipStyles",{get:function(){return{"tooltip-content":true,"tooltip-content--multiline":this.hasMultiline}},enumerable:false,configurable:true});e.prototype.subscribe=function(t){var e=this;if(t===undefined)return;t.setAttribute("part","tooltip-trigger");t.setAttribute("ariaDescribedBy","tooltip-content");t.addEventListener("mouseenter",(function(){return e.show()}));t.addEventListener("mouseleave",(function(t){return e.hide(t.target)}))};e.prototype.render=function(){var t=this;var e=this.tooltipStyles;return h(Host,{key:"65758ffb473363eadce15b09704224a95304dbf2",class:"tooltip"},h("div",{key:"d488e67b2da3c788ccf8eb9b9eeb273b9d1c58be",id:"tooltip-content",part:"tooltip-content",class:e,popover:"manual",role:"tooltip","aria-hidden":this.isVisible?"false":"true","data-placement":this.getPlacement,"data-multiline":this.multiline,"data-hidearrow":this.canShowArrow,ref:function(e){return t.floatingContent=e}},this.canShowArrow&&h("div",{key:"de86ff5432b49a2e31d94c6c8e16f33327ef5baa",class:"tooltip-arrow",part:"arrow",ref:function(e){return t.arrowElement=e}}),h("slot",{key:"8428151ba6b9b835f721be33cc61b1bacdba7494"})))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}(Mixin(anchoredMixin));BdsTooltip.style=bdsTooltipCss();export{BdsTooltip as bds_tooltip};
@@ -1 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++){e=arguments[r];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,r,a){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function n(t){try{h(a.next(t))}catch(t){o(t)}}function s(t){try{h(a["throw"](t))}catch(t){o(t)}}function h(t){t.done?r(t.value):i(t.value).then(n,s)}h((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,i,o,n=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return n.next=s(0),n["throw"]=s(1),n["return"]=s(2),typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function s(t){return function(e){return h([t,e])}}function h(s){if(a)throw new TypeError("Generator is already executing.");while(n&&(n=0,s[0]&&(r=0)),r)try{if(a=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];i=0}finally{a=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,h,a as Host,g as getElement}from"./index-D4EFsvs1.js";import{C as COMPONENT_STATES}from"./states-BhTPNsBb.js";import{a as inheritAriaAttributes}from"./attributes-CaHOghy5.js";var ALIGNMENT={START:"start"};var SIZES={XS:"xs",S:"sm",M:"md",L:"lg",XL:"xl"};var VARIANT_TYPOGRAPHY={DISPLAY:"display",LINK:"link"};var TAG_ELEMENT={P:"p",A:"a"};var FILENAME="download";var VARIANT_CONFIG={link:{states:[COMPONENT_STATES.DISABLED],size:[SIZES.S,SIZES.M]},label:{states:[COMPONENT_STATES.DISABLED],isRequired:true,canUseTooltip:true},heading:{canUseTooltip:true},subheading:{canUseTooltip:true},helper:{states:[COMPONENT_STATES.ERROR]},display:{size:[SIZES.XS,SIZES.S,SIZES.M,SIZES.L,SIZES.XL]}};var getAttributesByTag=function(t,e){var r={a:{href:t.state!==COMPONENT_STATES.DISABLED?t.sanitizedHref:null,target:t.target,download:t.isDownloadable?t.filename:null,rel:t.target==="_blank"?"noopener noreferrer":undefined},label:{htmlFor:t.htmlFor}};return r[e]||{}};var bdsTypographyCss=function(){return'@charset "UTF-8";.bds-typography{display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:var(--boreal-typography-font-family-primary);font-weight:var(--boreal-typography-font-weight-regular)}.bds-typography__required-indicator{color:var(--boreal-icon-danger-base);font-weight:var(--boreal-typography-font-weight-regular)}.bds-typography__info-icon{color:var(--boreal-icon-default-light)}.bds-typography--heading,.bds-typography--subheading{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-3xs)}.bds-typography--label{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-3xs)}.bds-typography--display{display:block}.bds-typography--caption,.bds-typography--helper,.bds-typography--link{display:inline-block}.bds-typography--caption{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-default-light)}.bds-typography--helper{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm);color:var(--boreal-text-default-light)}.bds-typography--link{font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-primary-base);text-decoration:none}.bds-typography--link:hover{text-decoration:underline}.bds-typography--link:visited{color:var(--boreal-text-primary-base)}.bds-typography--link:active{color:var(--boreal-text-primary-dark)}.bds-typography--link.bds-typography--size-sm{font-size:var(--boreal-typography-font-size-xs)}.bds-typography--link.bds-typography--size-md{font-size:var(--boreal-typography-font-size-sm)}.bds-typography--code{font-family:var(--boreal-typography-font-family-secondary);font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default);line-height:var(--boreal-typography-line-height-md);overflow-wrap:break-word;background-color:var(--boreal-bg-neutral);padding:var(--boreal-spacing-3xs) var(--boreal-spacing-xs);border-radius:var(--boreal-radius-xs);display:inline;box-decoration-break:clone;-webkit-box-decoration-break:clone}.bds-typography--label{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-default-darker)}.bds-typography--display{font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default)}.bds-typography--display.bds-typography--size-sm{font-size:var(--boreal-typography-font-size-xl);line-height:var(--boreal-typography-line-height-xl)}.bds-typography--display.bds-typography--size-md{font-size:var(--boreal-typography-font-size-2xl);line-height:var(--boreal-typography-line-height-2xl)}.bds-typography--display.bds-typography--size-lg{font-size:var(--boreal-typography-font-size-3xl);line-height:var(--boreal-typography-line-height-3xl);font-weight:var(--boreal-typography-font-weight-light)}.bds-typography--display.bds-typography--size-xl{font-size:var(--boreal-typography-font-size-4xl);line-height:var(--boreal-typography-line-height-4xl);font-weight:var(--boreal-typography-font-weight-light)}.bds-typography--heading{font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-lg);font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default)}.bds-typography h1.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-4xl);line-height:var(--boreal-typography-line-height-4xl)}.bds-typography h2.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-3xl);line-height:var(--boreal-typography-line-height-3xl)}.bds-typography h3.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-2xl);line-height:var(--boreal-typography-line-height-2xl)}.bds-typography h4.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-xl);line-height:var(--boreal-typography-line-height-xl)}.bds-typography h5.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-lg)}.bds-typography h6.bds-typography--heading{font-size:var(--boreal-typography-font-size-md);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-md)}.bds-typography--subheading{font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);font-weight:var(--boreal-typography-font-weight-semibold)}.bds-typography--align-start{text-align:start}.bds-typography--align-center{text-align:center}.bds-typography--align-end{text-align:end}.bds-typography--align-inherit{text-align:inherit}.bds-typography--error{color:var(--boreal-text-danger-base)}.bds-typography--disabled{color:var(--boreal-text-disabled);pointer-events:none;cursor:not-allowed}.bds-typography--disabled .bds-typography__required-indicator{color:var(--boreal-text-danger-light)}.bds-typography--ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.bds-typography--ellipsis-multiline{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;width:100%}'};var BdsTypography=function(){function t(t){registerInstance(this,t);this.inheritedAttributes={};this.variant=VARIANT_TYPOGRAPHY.DISPLAY;this.size=SIZES.M;this.state=COMPONENT_STATES.DEFAULT;this.customClass="";this.element=TAG_ELEMENT.P;this.align=ALIGNMENT.START;this.ellipsis=false;this.maxLines=1;this.tooltipText="";this.isRequired=false;this.htmlFor=undefined;this.href=null;this.target=null;this.isDownloadable=false;this.filename=FILENAME;this.sanitizedHref=""}t.prototype.updateSanitizedHref=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:if(!(this.getTagName==="a"&&this.href!==null))return[3,2];return[4,import("./index-noyWJ11s.js").then((function(t){return t.i}))];case 1:t=e.sent().sanitizeUrl;this.sanitizedHref=t(this.href);return[3,3];case 2:this.sanitizedHref="";e.label=3;case 3:return[2]}}))}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(this.getTagName===TAG_ELEMENT.A&&this.href!==null))return[3,2];return[4,this.updateSanitizedHref()];case 1:t.sent();t.label=2;case 2:this.inheritedAttributes=__assign({},inheritAriaAttributes(this.el));return[2]}}))}))};Object.defineProperty(t.prototype,"getTagName",{get:function(){if(this.variant===VARIANT_TYPOGRAPHY.LINK)return TAG_ELEMENT.A;return this.element.toLowerCase()},enumerable:false,configurable:true});t.prototype.getVariantConfig=function(){var t;return(t=VARIANT_CONFIG[this.variant])!==null&&t!==void 0?t:{}};t.prototype.getAccessibilityTags=function(){var t=this.getVariantConfig().isRequired,e=t===void 0?null:t;var r=["a","label"].includes(this.getTagName);return{"aria-required":this.isRequired&&e,"aria-disabled":this.state===COMPONENT_STATES.DISABLED&&r}};t.prototype.getVariantStateStyles=function(){var t;var e=this.getVariantConfig();return t={},t["bds-typography--".concat(this.variant)]=true,t["bds-typography--align-".concat(this.align)]=true,t["bds-typography--".concat(this.state)]=!!((e===null||e===void 0?void 0:e.states)&&(e===null||e===void 0?void 0:e.states.includes(this.state))),t["bds-typography--size-".concat(this.size)]=!!((e===null||e===void 0?void 0:e.size)&&(e===null||e===void 0?void 0:e.size.includes(this.size))),t["bds-typography--required"]=!!((e===null||e===void 0?void 0:e.isRequired)&&this.isRequired),t["bds-typography--ellipsis"]=this.ellipsis&&this.maxLines<=1,t["bds-typography--ellipsis-multiline"]=this.ellipsis&&this.maxLines>1,t[this.customClass]=this.customClass!=="",t};t.prototype.render=function(){var t=this.getTagName;var e=__assign(__assign(__assign({},getAttributesByTag(this,t)),this.inheritedAttributes),this.getAccessibilityTags());var r=this.getVariantStateStyles();var a=this.getVariantConfig(),i=a.canUseTooltip,o=i===void 0?null:i,n=a.isRequired,s=n===void 0?null:n;return h(Host,{key:"98e236475142f2be85fcc227cd507d6cb8648928",class:"bds-typography"},h(t,__assign({key:"eed74e216dc0832b5f4808ba72e1374198f60e1a",class:r,style:{webkitLineClamp:this.maxLines}},e),h("slot",{key:"cc073f2d2a3840970c62296379514884564c3473"}),this.isRequired&&s&&h("em",{key:"299a88d69856603b6e73af9567fa91b1a1e7434f",class:"bds-typography__required-indicator","aria-hidden":"true"},"*"),this.tooltipText&&o&&h("span",{key:"c8fa478a8fbd4a70d0869b4c9d523a8a0e9803bf"},h("em",{key:"0f6869a6dd7ab04b19acee773e54687dbd070af0",class:"bds-typography__info-icon bds-icon-info-circle","aria-label":this.tooltipText}),h("bds-tooltip",{key:"ec2dfc33b119bc3f60ec52e8bd10fdb16ea5cc2a"},this.tooltipText))))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{href:[{updateSanitizedHref:0}]}},enumerable:false,configurable:true});return t}();BdsTypography.style=bdsTypographyCss();export{BdsTypography as bds_typography};
@@ -1,2 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function o(e){try{f(n.next(e))}catch(e){a(e)}}function l(e){try{f(n["throw"](e))}catch(e){a(e)}}function f(e){e.done?r(e.value):i(e.value).then(o,l)}f((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=l(0),o["throw"]=l(1),o["return"]=l(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(t){return f([e,t])}}function f(l){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,l[0]&&(r=0)),r)try{if(n=1,i&&(a=l[0]&2?i["return"]:l[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;if(i=0,a)l=[l[0]&2,a.value];switch(l[0]){case 0:case 1:a=l;break;case 4:r.label++;return{value:l[1],done:false};case 5:r.label++;i=l[1];l=[0];continue;case 7:l=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1];a=l;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(l);break}if(a[2])r.ops.pop();r.trys.pop();continue}l=t.call(e,r)}catch(e){l=[6,e];i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++){if(a||!(n in t)){if(!a)a=Array.prototype.slice.call(t,0,n);a[n]=t[n]}}return e.concat(a||Array.prototype.slice.call(t))};var NAMESPACE="boreal-web-components";var BUILD={hotModuleReplacement:false,hydratedSelectorName:"hydrated",lazyLoad:true,propChangeCallback:true,shadowDom:false,slotRelocation:true,state:true,updatable:true};var SVG_NS="http://www.w3.org/2000/svg";var HTML_NS="http://www.w3.org/1999/xhtml";var reWireGetterSetter=function(e,t){var r;var n=t.t;var i=Object.entries((r=n.i)!=null?r:{});i.map((function(r){var n=r[0],i=r[1][0];if(i&31||i&32){var a=e[n];var o=getPropertyDescriptor(Object.getPrototypeOf(e),n)||Object.getOwnPropertyDescriptor(e,n);if(o){Object.defineProperty(e,n,{get:function(){return o.get.call(this)},set:function(e){o.set.call(this,e)},configurable:true,enumerable:true})}e[n]=t.o.has(n)?t.o.get(n):a}}))};function getPropertyDescriptor(e,t){while(e){var r=Object.getOwnPropertyDescriptor(e,t);if(r==null?void 0:r.get)return r;e=Object.getPrototypeOf(e)}return void 0}var getHostRef=function(e){if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var registerInstance=function(e,t){if(!t)return;e.__stencil__getHostRef=function(){return t};t.l=e;if(t.t.u&512&&BUILD.state){reWireGetterSetter(e,t)}};var registerHost=function(e,t){var r={u:0,$hostElement$:e,t:t,o:new Map,v:new Map};{r.p=new Promise((function(e){return r.h=e}))}{r.S=new Promise((function(e){return r.m=e}));e["s-p"]=[];e["s-rc"]=[]}{r.C=[]}var n=r;e.__stencil__getHostRef=function(){return n};return n};var isMemberInElement=function(e,t){return t in e};var consoleError=function(e,t){return(0,console.error)(e,t)};var cmpModules=new Map;var loadModule=function(e,t,r){var n=e.N.replace(/-/g,"_");var i=e._;if(!i){return void 0}var a=cmpModules.get(i);if(a){return a[n]}
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import("./".concat(i,".entry.js").concat("")).then((function(e){{cmpModules.set(i,e)}return e[n]}),(function(e){consoleError(e,t.$hostElement$)}))};var styles=new Map;var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var XLINK_NS="http://www.w3.org/1999/xlink";var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"];var win=typeof window!=="undefined"?window:{};var H=win.HTMLElement||function(){function e(){}return e}();var plt={u:0,T:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,r,n){return e.addEventListener(t,r,n)},rel:function(e,t,r,n){return e.removeEventListener(t,r,n)},ce:function(e,t){return new CustomEvent(e,t)}};var supportsShadow=BUILD.shadowDom;var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{if(!win.document.adoptedStyleSheets){return false}new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var supportsMutableAdoptedStyleSheets=supportsConstructableStylesheets?function(){return!!win.document&&Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets,"length").writable}():false;var queuePending=false;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,t){return function(r){e.push(r);if(!queuePending){queuePending=true;if(t&&plt.u&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);var getAssetPath=function(e){var t=new URL(e,plt.T);return t.origin!==win.location.origin?t.href:t.pathname};var updateFallbackSlotVisibility=function(e){var t=internalCall(e,"childNodes");if(e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"){getHostSlotNodes(t,e.tagName).forEach((function(e){if(e.nodeType===1&&e.tagName==="SLOT-FB"){if(getSlotChildSiblings(e,getSlotName(e),false).length){e.hidden=true}else{e.hidden=false}}}))}var r=0;for(r=0;r<t.length;r++){var n=t[r];if(n.nodeType===1&&internalCall(n,"childNodes").length){updateFallbackSlotVisibility(n)}}};var getSlottedChildNodes=function(e){var t=[];for(var r=0;r<e.length;r++){var n=e[r]["s-nr"]||void 0;if(n&&n.isConnected){t.push(n)}}return t};function getHostSlotNodes(e,t,r){var n=0;var i=[];var a;for(;n<e.length;n++){a=e[n];if(a["s-sr"]&&(!t||a["s-hn"]===t)&&(r===void 0||getSlotName(a)===r)){i.push(a);if(typeof r!=="undefined")return i}i=__spreadArray(__spreadArray([],i,true),getHostSlotNodes(a.childNodes,t,r),true)}return i}var getSlotChildSiblings=function(e,t,r){if(r===void 0){r=true}var n=[];if(r&&e["s-sr"]||!e["s-sr"])n.push(e);var i=e;while(i=i.nextSibling){if(getSlotName(i)===t&&(r||!i["s-sr"]))n.push(i)}return n};var isNodeLocatedInSlot=function(e,t){if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var addSlotRelocateNode=function(e,t,r,n){if(e["s-ol"]&&e["s-ol"].isConnected){return}var i=document.createTextNode("");i["s-nr"]=e;if(!t["s-cr"]||!t["s-cr"].parentNode)return;var a=t["s-cr"].parentNode;var o=r?internalCall(a,"prepend"):internalCall(a,"appendChild");{o.call(a,i)}e["s-ol"]=i;e["s-sh"]=t["s-hn"]};var getSlotName=function(e){return typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0};function patchSlotNode(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;var t=function(t){return function(e){var r=[];var n=this["s-sn"];if(e==null?void 0:e.flatten){console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ")}var i=this["s-cr"].parentElement;var a=i.__childNodes?i.childNodes:getSlottedChildNodes(i.childNodes);a.forEach((function(e){if(n===getSlotName(e)){r.push(e)}}));if(t){return r.filter((function(e){return e.nodeType===1}))}return r}.bind(e)};e.assignedElements=t(true);e.assignedNodes=t(false)}function dispatchSlotChangeEvent(e){e.dispatchEvent(new CustomEvent("slotchange",{bubbles:false,cancelable:false,composed:false}))}function findSlotFromSlottedNode(e,t){var r;t=t||((r=e["s-ol"])==null?void 0:r.parentElement);if(!t)return{slotNode:null,slotName:""};var n=e["s-sn"]=getSlotName(e)||"";var i=internalCall(t,"childNodes");var a=getHostSlotNodes(i,t.tagName,n)[0];return{slotNode:a,slotName:n}}var patchPseudoShadowDom=function(e){patchCloneNode(e);patchSlotAppendChild(e);patchSlotAppend(e);patchSlotPrepend(e);patchSlotInsertAdjacentElement(e);patchSlotInsertAdjacentHTML(e);patchSlotInsertAdjacentText(e);patchInsertBefore(e);patchTextContent(e);patchChildSlotNodes(e);patchSlotRemoveChild(e)};var patchCloneNode=function(e){if(e.__cloneNode)return;var t=e.__cloneNode=e.cloneNode;e.cloneNode=function(e){var r=this;var n=t.call(r,false);if(e){var i=0;var a=void 0,o=void 0;var l=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"];var f=this.__childNodes||this.childNodes;for(;i<f.length;i++){a=f[i]["s-nr"];o=l.every((function(e){return!f[i][e]}));if(a){if(n.__appendChild){n.__appendChild(a.cloneNode(true))}else{n.appendChild(a.cloneNode(true))}}if(o){n.appendChild(f[i].cloneNode(true))}}}return n}};var patchSlotAppendChild=function(e){if(e.__appendChild)return;e.__appendChild=e.appendChild;e.appendChild=function(e){var t=findSlotFromSlottedNode(e,this),r=t.slotName,n=t.slotNode;if(n){addSlotRelocateNode(e,n);var i=getSlotChildSiblings(n,r);var a=i[i.length-1];var o=internalCall(a,"parentNode");var l=internalCall(o,"insertBefore")(e,a.nextSibling);dispatchSlotChangeEvent(n);updateFallbackSlotVisibility(this);return l}return this.__appendChild(e)}};var patchSlotRemoveChild=function(e){if(e.__removeChild)return;e.__removeChild=e.removeChild;e.removeChild=function(e){if(e&&typeof e["s-sn"]!=="undefined"){var t=this.__childNodes||this.childNodes;var r=getHostSlotNodes(t,this.tagName,e["s-sn"]);if(r&&e.isConnected){e.remove();updateFallbackSlotVisibility(this);return}}return this.__removeChild(e)}};var patchSlotPrepend=function(e){if(e.__prepend)return;e.__prepend=e.prepend;e.prepend=function(){var t=this;var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}r.forEach((function(r){if(typeof r==="string"){r=t.ownerDocument.createTextNode(r)}var n=(r["s-sn"]=getSlotName(r))||"";var i=internalCall(t,"childNodes");var a=getHostSlotNodes(i,t.tagName,n)[0];if(a){addSlotRelocateNode(r,a,true);var o=getSlotChildSiblings(a,n);var l=o[0];var f=internalCall(l,"parentNode");var s=internalCall(f,"insertBefore")(r,internalCall(l,"nextSibling"));dispatchSlotChangeEvent(a);return s}if(r.nodeType===1&&!!r.getAttribute("slot")){r.hidden=true}return e.__prepend(r)}))}};var patchSlotAppend=function(e){if(e.__append)return;e.__append=e.append;e.append=function(){var e=this;var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}t.forEach((function(t){if(typeof t==="string"){t=e.ownerDocument.createTextNode(t)}e.appendChild(t)}))}};var patchSlotInsertAdjacentHTML=function(e){if(e.__insertAdjacentHTML)return;var t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(e,r){if(e!=="afterbegin"&&e!=="beforeend"){return t.call(this,e,r)}var n=this.ownerDocument.createElement("_");var i;n.innerHTML=r;if(e==="afterbegin"){while(i=n.firstChild){this.prepend(i)}}else if(e==="beforeend"){while(i=n.firstChild){this.append(i)}}}};var patchSlotInsertAdjacentText=function(e){e.insertAdjacentText=function(e,t){this.insertAdjacentHTML(e,t)}};var patchInsertBefore=function(e){if(e.__insertBefore)return;var t=e;if(t.__insertBefore)return;t.__insertBefore=e.insertBefore;e.insertBefore=function(e,t){var r=this;var n=findSlotFromSlottedNode(e,this),i=n.slotName,a=n.slotNode;var o=this.__childNodes?this.childNodes:getSlottedChildNodes(this.childNodes);if(a){var l=false;o.forEach((function(n){if(n===t||t===null){l=true;if(t===null||i!==t["s-sn"]){r.appendChild(e);return}if(i===t["s-sn"]){addSlotRelocateNode(e,a);var o=internalCall(t,"parentNode");internalCall(o,"insertBefore")(e,t);dispatchSlotChangeEvent(a)}return}}));if(l)return e}var f=t==null?void 0:t.__parentNode;if(f&&!this.isSameNode(f)){return this.appendChild(e)}return this.__insertBefore(e,t)}};var patchSlotInsertAdjacentElement=function(e){if(e.__insertAdjacentElement)return;var t=e.insertAdjacentElement;e.insertAdjacentElement=function(e,r){if(e!=="afterbegin"&&e!=="beforeend"){return t.call(this,e,r)}if(e==="afterbegin"){this.prepend(r);return r}else if(e==="beforeend"){this.append(r);return r}return r}};var patchTextContent=function(e){patchHostOriginalAccessor("textContent",e);Object.defineProperty(e,"textContent",{get:function(){var e="";var t=this.__childNodes?this.childNodes:getSlottedChildNodes(this.childNodes);t.forEach((function(t){return e+=t.textContent||""}));return e},set:function(e){var t=this.__childNodes?this.childNodes:getSlottedChildNodes(this.childNodes);t.forEach((function(e){if(e["s-ol"])e["s-ol"].remove();e.remove()}));this.insertAdjacentHTML("beforeend",e)}})};var patchChildSlotNodes=function(e){var t=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.item=function(e){return this[e]};return t}(Array);patchHostOriginalAccessor("children",e);Object.defineProperty(e,"children",{get:function(){return this.childNodes.filter((function(e){return e.nodeType===1}))}});Object.defineProperty(e,"childElementCount",{get:function(){return this.children.length}});patchHostOriginalAccessor("firstChild",e);Object.defineProperty(e,"firstChild",{get:function(){return this.childNodes[0]}});patchHostOriginalAccessor("lastChild",e);Object.defineProperty(e,"lastChild",{get:function(){return this.childNodes[this.childNodes.length-1]}});patchHostOriginalAccessor("childNodes",e);Object.defineProperty(e,"childNodes",{get:function(){var e=new t;e.push.apply(e,getSlottedChildNodes(this.__childNodes));return e}})};var patchParentNode=function(e){if(!e||e.__parentNode)return;patchHostOriginalAccessor("parentNode",e);Object.defineProperty(e,"parentNode",{get:function(){var e;return((e=this["s-ol"])==null?void 0:e.parentNode)||this.__parentNode},set:function(e){this.__parentNode=e}})};var validElementPatches=["children","nextElementSibling","previousElementSibling"];var validNodesPatches=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function patchHostOriginalAccessor(e,t){if(!globalThis.Node||!globalThis.Element){return}var r;if(validElementPatches.includes(e)){r=Object.getOwnPropertyDescriptor(Element.prototype,e)}else if(validNodesPatches.includes(e)){r=Object.getOwnPropertyDescriptor(Node.prototype,e)}if(!r){r=Object.getOwnPropertyDescriptor(t,e)}if(r)Object.defineProperty(t,"__"+e,r)}function internalCall(e,t){if("__"+t in e){var r=e["__"+t];if(typeof r!=="function")return r;return r.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var createTime=function(e,t){if(t===void 0){t=""}{return function(){return}}};var uniqueTime=function(e,t){{return function(){return}}};function queryNonceMetaTagContent(e){var t,r,n;return(n=(r=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?n:void 0}var rootAppliedStyles=new WeakMap;var registerStyle=function(e,t,r){var n=styles.get(e);if(supportsConstructableStylesheets&&r){n=n||new CSSStyleSheet;if(typeof n==="string"){n=t}else{n.replaceSync(t)}}else{n=t}styles.set(e,n)};var addStyle=function(e,t,r){var n,i,a;var o=getScopeId(t);var l=styles.get(o);if(!win.document){return o}e=e.nodeType===11?e:win.document;if(l){if(typeof l==="string"){e=e.head||e;var f=rootAppliedStyles.get(e);var s=void 0;if(!f){rootAppliedStyles.set(e,f=new Set)}if(!f.has(o)){s=win.document.createElement("style");s.textContent=l;var u=(n=plt.A)!=null?n:queryNonceMetaTagContent(win.document);if(u!=null){s.setAttribute("nonce",u)}if(!(t.u&1)){if(e.nodeName==="HEAD"){var c=e.querySelectorAll("link[rel=preconnect]");var v=c.length>0?c[c.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(v==null?void 0:v.parentNode)===e?v:null)}else if("host"in e){if(supportsConstructableStylesheets){var d=(i=e.defaultView)!=null?i:e.ownerDocument.defaultView;var p=new d.CSSStyleSheet;p.replaceSync(l);if(supportsMutableAdoptedStyleSheets){e.adoptedStyleSheets.unshift(p)}else{e.adoptedStyleSheets=__spreadArray([p],e.adoptedStyleSheets,true)}}else{var h=e.querySelector("style");if(h){h.textContent=l+h.textContent}else{e.prepend(s)}}}else{e.append(s)}}if(t.u&1){e.insertBefore(s,null)}if(t.u&4){s.textContent+=SLOT_FB_CSS}if(f){f.add(o)}}}else{var f=rootAppliedStyles.get(e);if(!f){rootAppliedStyles.set(e,f=new Set)}if(!f.has(o)){var d=(a=e.defaultView)!=null?a:e.ownerDocument.defaultView;var p=void 0;if(l.constructor===d.CSSStyleSheet){p=l}else{p=new d.CSSStyleSheet;for(var S=0;S<l.cssRules.length;S++){p.insertRule(l.cssRules[S].cssText,S)}}if(supportsMutableAdoptedStyleSheets){e.adoptedStyleSheets.push(p)}else{e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[p],false)}f.add(o)}}}return o};var attachStyles=function(e){var t=e.t;var r=e.$hostElement$;var n=createTime("attachStyles",t.N);addStyle(r.getRootNode(),t);n()};var getScopeId=function(e,t){return"sc-"+e.N};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};var h=function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}if(typeof e==="string"){e=transformTag(e)}var i=null;var a=null;var o=null;var l=false;var f=false;var s=[];var u=function(t){for(var r=0;r<t.length;r++){i=t[r];if(Array.isArray(i)){u(i)}else if(i!=null&&typeof i!=="boolean"){if(l=typeof e!=="function"&&!isComplexType(i)){i=String(i)}if(l&&f){s[s.length-1].k+=i}else{s.push(l?newVNode(null,i):i)}f=l}}};u(r);if(t){if(t.key){a=t.key}if(t.name){o=t.name}{var c=t.className||t.class;if(c){t.class=typeof c!=="object"?c:Object.keys(c).filter((function(e){return c[e]})).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,s,vdomFnUtils)}var v=newVNode(e,null);v.R=t;if(s.length>0){v.O=s}{v.j=a}{v.M=o}return v};var newVNode=function(e,t){var r={u:0,H:e,k:t!=null?t:null,L:null,O:null};{r.R=null}{r.j=null}{r.M=null}return r};var Host={};var isHost=function(e){return e&&e.H===Host};var vdomFnUtils={forEach:function(e,t){return e.map(convertToPublic).forEach(t)},map:function(e,t){return e.map(convertToPublic).map(t).map(convertToPrivate)}};var convertToPublic=function(e){return{vattrs:e.R,vchildren:e.O,vkey:e.j,vname:e.M,vtag:e.H,vtext:e.k}};var convertToPrivate=function(e){if(typeof e.vtag==="function"){var t=__assign({},e.vattrs);if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return h.apply(void 0,__spreadArray([e.vtag,t],e.vchildren||[],false))}var r=newVNode(e.vtag,e.vtext);r.R=e.vattrs;r.O=e.vchildren;r.j=e.vkey;r.M=e.vname;return r};var parsePropertyValue=function(e,t,r){if(e!=null&&!isComplexType(e)){if(t&4){if(r&&typeof e==="string"){return e===""||!!e}else{return e==="false"?false:e===""||!!e}}if(t&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(t&1){return String(e)}return e}return e};var getElement=function(e){var t;return(t=getHostRef(e))==null?void 0:t.$hostElement$};var createEvent=function(e,t,r){var n=getElement(e);return{emit:function(e){return emitEvent(n,t,{bubbles:true,composed:true,cancelable:true,detail:e})}}};var emitEvent=function(e,t,r){var n=plt.ce(t,r);e.dispatchEvent(n);return n};var setAccessor=function(e,t,r,n,i,a,o){if(r===n){return}var l=isMemberInElement(e,t);var f=t.toLowerCase();if(t==="class"){var s=e.classList;var u=parseClassList(r);var c=parseClassList(n);{s.remove.apply(s,u.filter((function(e){return e&&!c.includes(e)})));s.add.apply(s,c.filter((function(e){return e&&!u.includes(e)})))}}else if(t==="style"){{for(var v in r){if(!n||n[v]==null){if(v.includes("-")){e.style.removeProperty(v)}else{e.style[v]=""}}}}for(var v in n){if(!r||n[v]!==r[v]){if(v.includes("-")){e.style.setProperty(v,n[v])}else{e.style[v]=n[v]}}}}else if(t==="key");else if(t==="ref"){if(n){queueRefAttachment(n,e)}}else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(isMemberInElement(win,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(r||n){var d=t.endsWith(CAPTURE_EVENT_SUFFIX);t=t.replace(CAPTURE_EVENT_REGEX,"");if(r){plt.rel(e,t,r,d)}if(n){plt.ael(e,t,n,d)}}}else if(t[0]==="a"&&t.startsWith("attr:")){var p=t.slice(5);var h=void 0;{var S=getHostRef(e);if(S&&S.t&&S.t.i){var m=S.t.i[p];if(m&&m[1]){h=m[1]}}}if(!h){h=p.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}if(n==null||n===false){if(n!==false||e.getAttribute(h)===""){e.removeAttribute(h)}}else{e.setAttribute(h,n===true?"":n)}return}else if(t[0]==="p"&&t.startsWith("prop:")){var p=t.slice(5);try{e[p]=n}catch(e){}return}else{var g=isComplexType(n);if((l||g&&n!==null)&&!i){try{if(!e.tagName.includes("-")){var b=n==null?"":n;if(t==="list"){l=false}else if(r==null||e[t]!==b){if(typeof e.__lookupSetter__(t)==="function"){e[t]=b}else{e.setAttribute(t,b)}}}else if(e[t]!==n){e[t]=n}}catch(e){}}var y=false;{if(f!==(f=f.replace(/^xlink\:?/,""))){t=f;y=true}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){if(y){e.removeAttributeNS(XLINK_NS,t)}else{e.removeAttribute(t)}}}else if((!l||a&4||i)&&!g&&e.nodeType===1){n=n===true?"":n;if(y){e.setAttributeNS(XLINK_NS,t,n)}else{e.setAttribute(t,n)}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(parseClassListRegex)};var CAPTURE_EVENT_SUFFIX="Capture";var CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$");var updateElement=function(e,t,r,n){var i=t.L.nodeType===11&&t.L.host?t.L.host:t.L;var a=e&&e.R||{};var o=t.R||{};{for(var l=0,f=sortedAttrNames(Object.keys(a));l<f.length;l++){var s=f[l];if(!(s in o)){setAccessor(i,s,a[s],void 0,r,t.u)}}}for(var u=0,c=sortedAttrNames(Object.keys(o));u<c.length;u++){var s=c[u];setAccessor(i,s,a[s],o[s],r,t.u)}};function sortedAttrNames(e){return e.includes("ref")?__spreadArray(__spreadArray([],e.filter((function(e){return e!=="ref"})),true),["ref"],false):e}var contentRef;var hostTagName;var useNativeShadowDom=false;var checkSlotFallbackVisibility=false;var checkSlotRelocate=false;var isSvgMode=false;var refCallbacksToRemove=[];var refCallbacksToAttach=[];var createElm=function(e,t,r){var n;var i=t.O[r];var a=0;var o;var l;var f;if(!useNativeShadowDom){checkSlotRelocate=true;if(i.H==="slot"){i.u|=i.O?2:1}}if(i.k!=null){o=i.L=win.document.createTextNode(i.k)}else if(i.u&1){o=i.L=win.document.createTextNode("");{updateElement(null,i,isSvgMode)}}else{if(!isSvgMode){isSvgMode=i.H==="svg"}if(!win.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.")}o=i.L=win.document.createElementNS(isSvgMode?SVG_NS:HTML_NS,!useNativeShadowDom&&BUILD.slotRelocation&&i.u&2?"slot-fb":i.H);if(isSvgMode&&i.H==="foreignObject"){isSvgMode=false}{updateElement(null,i,isSvgMode)}if(i.O){var s=i.H==="template"?o.content:o;for(a=0;a<i.O.length;++a){l=createElm(e,i,a);if(l){s.appendChild(l)}}}{if(i.H==="svg"){isSvgMode=false}else if(o.tagName==="foreignObject"){isSvgMode=true}}}o["s-hn"]=hostTagName;{if(i.u&(2|1)){o["s-sr"]=true;o["s-cr"]=contentRef;o["s-sn"]=i.M||"";o["s-rf"]=(n=i.R)==null?void 0:n.ref;patchSlotNode(o);f=e&&e.O&&e.O[r];if(f&&f.H===i.H&&e.L){relocateToHostRoot(e.L)}}}return o};var relocateToHostRoot=function(e){plt.u|=1;var t=e.closest(hostTagName.toLowerCase());if(t!=null){var r=Array.from(t.__childNodes||t.childNodes).find((function(e){return e["s-cr"]}));var n=Array.from(e.__childNodes||e.childNodes);for(var i=0,a=r?n.reverse():n;i<a.length;i++){var o=a[i];if(o["s-sh"]!=null){insertBefore(t,o,r!=null?r:null);o["s-sh"]=void 0;checkSlotRelocate=true}}}plt.u&=-2};var putBackInOriginalLocation=function(e,t){plt.u|=1;var r=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){var n=e;while(n=n.nextSibling){if(n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===hostTagName){r.push(n)}}}for(var i=r.length-1;i>=0;i--){var a=r[i];if(a["s-hn"]!==hostTagName&&a["s-ol"]){insertBefore(referenceNode(a).parentNode,a,referenceNode(a));a["s-ol"].remove();a["s-ol"]=void 0;a["s-sh"]=void 0;checkSlotRelocate=true}if(t){putBackInOriginalLocation(a,t)}}plt.u&=-2};var addVnodes=function(e,t,r,n,i,a){var o=e["s-cr"]&&e["s-cr"].parentNode||e;var l;if(r.H==="template"){o=o.content}for(;i<=a;++i){if(n[i]){l=createElm(null,r,i);if(l){n[i].L=l;insertBefore(o,l,referenceNode(t))}}}};var removeVnodes=function(e,t,r){for(var n=t;n<=r;++n){var i=e[n];if(i){var a=i.L;nullifyVNodeRefs(i);if(a){{checkSlotFallbackVisibility=true;if(a["s-ol"]){a["s-ol"].remove()}else{putBackInOriginalLocation(a,true)}}a.remove()}}}};var updateChildren=function(e,t,r,n,i){if(i===void 0){i=false}var a=0;var o=0;var l=0;var f=0;var s=t.length-1;var u=t[0];var c=t[s];var v=n.length-1;var d=n[0];var p=n[v];var h;var S;var m=r.H==="template"?e.content:e;while(a<=s&&o<=v){if(u==null){u=t[++a]}else if(c==null){c=t[--s]}else if(d==null){d=n[++o]}else if(p==null){p=n[--v]}else if(isSameVnode(u,d,i)){patch(u,d,i);u=t[++a];d=n[++o]}else if(isSameVnode(c,p,i)){patch(c,p,i);c=t[--s];p=n[--v]}else if(isSameVnode(u,p,i)){if(u.H==="slot"||p.H==="slot"){putBackInOriginalLocation(u.L.parentNode,false)}patch(u,p,i);insertBefore(m,u.L,c.L.nextSibling);u=t[++a];p=n[--v]}else if(isSameVnode(c,d,i)){if(u.H==="slot"||p.H==="slot"){putBackInOriginalLocation(c.L.parentNode,false)}patch(c,d,i);insertBefore(m,c.L,u.L);c=t[--s];d=n[++o]}else{l=-1;{for(f=a;f<=s;++f){if(t[f]&&t[f].j!==null&&t[f].j===d.j){l=f;break}}}if(l>=0){S=t[l];if(S.H!==d.H){h=createElm(t&&t[o],r,l)}else{patch(S,d,i);t[l]=void 0;h=S.L}d=n[++o]}else{h=createElm(t&&t[o],r,o);d=n[++o]}if(h){{insertBefore(referenceNode(u.L).parentNode,h,referenceNode(u.L))}}}}if(a>s){addVnodes(e,n[v+1]==null?null:n[v+1].L,r,n,o,v)}else if(o>v){removeVnodes(t,a,s)}};var isSameVnode=function(e,t,r){if(r===void 0){r=false}if(e.H===t.H){if(e.H==="slot"){return e.M===t.M}if(!r){return e.j===t.j}if(r&&!e.j&&t.j){e.j=t.j}return true}return false};var referenceNode=function(e){return e&&e["s-ol"]||e};var patch=function(e,t,r){if(r===void 0){r=false}var n=t.L=e.L;var i=e.O;var a=t.O;var o=t.H;var l=t.k;var f;if(l==null){{isSvgMode=o==="svg"?true:o==="foreignObject"?false:isSvgMode}{if(o==="slot"&&!useNativeShadowDom){if(e.M!==t.M){t.L["s-sn"]=t.M||"";relocateToHostRoot(t.L.parentElement)}}updateElement(e,t,isSvgMode)}if(i!==null&&a!==null){updateChildren(n,i,t,a,r)}else if(a!==null){if(e.k!==null){n.textContent=""}addVnodes(n,null,t,a,0,a.length-1)}else if(!r&&BUILD.updatable&&i!==null){removeVnodes(i,0,i.length-1)}else;if(isSvgMode&&o==="svg"){isSvgMode=false}}else if(f=n["s-cr"]){f.parentNode.textContent=l}else if(e.k!==l){n.data=l}};var relocateNodes=[];var markSlotContentForRelocation=function(e){var t;var r;var n;var i=e.__childNodes||e.childNodes;for(var a=0,o=i;a<o.length;a++){var l=o[a];if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){r=t.parentNode.__childNodes||t.parentNode.childNodes;var f=l["s-sn"];var s=function(){t=r[n];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==l["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==l["s-hn"])){if(isNodeLocatedInSlot(t,f)){var e=relocateNodes.find((function(e){return e.V===t}));checkSlotFallbackVisibility=true;t["s-sn"]=t["s-sn"]||f;if(e){e.V["s-sh"]=l["s-hn"];e.I=l}else{t["s-sh"]=l["s-hn"];relocateNodes.push({I:l,V:t})}if(t["s-sr"]){relocateNodes.map((function(r){if(isNodeLocatedInSlot(r.V,t["s-sn"])){e=relocateNodes.find((function(e){return e.V===t}));if(e&&!r.I){r.I=e.I}}}))}}else if(!relocateNodes.some((function(e){return e.V===t}))){relocateNodes.push({V:t})}}};for(n=r.length-1;n>=0;n--){s()}}if(l.nodeType===1){markSlotContentForRelocation(l)}}};var nullifyVNodeRefs=function(e){{if(e.R&&e.R.ref){refCallbacksToRemove.push((function(){return e.R.ref(null)}))}e.O&&e.O.map(nullifyVNodeRefs)}};var queueRefAttachment=function(e,t){{refCallbacksToAttach.push((function(){return e(t)}))}};var flushQueuedRefCallbacks=function(){{refCallbacksToRemove.forEach((function(e){return e()}));refCallbacksToRemove.length=0;refCallbacksToAttach.forEach((function(e){return e()}));refCallbacksToAttach.length=0}};var insertBefore=function(e,t,r,n){{if(typeof t["s-sn"]==="string"){if(e.getRootNode().nodeType!==11){patchParentNode(t)}e.insertBefore(t,r);var i=findSlotFromSlottedNode(t).slotNode;if(i&&!n)dispatchSlotChangeEvent(i);return t}}if(e.__insertBefore){return e.__insertBefore(t,r)}else{return e==null?void 0:e.insertBefore(t,r)}};var renderVdom=function(e,t,r){if(r===void 0){r=false}var n,i,a,o,l;var f=e.$hostElement$;var s=e.t;var u=e.P||newVNode(null,null);var c=isHost(t);var v=c?t:h(null,null,t);hostTagName=f.tagName;if(s.D){v.R=v.R||{};s.D.forEach((function(e){var t=e[0],r=e[1];{v.R[r]=f[t]}}))}if(r&&v.R){for(var d=0,p=Object.keys(v.R);d<p.length;d++){var S=p[d];if(f.hasAttribute(S)&&!["key","ref","style","class"].includes(S)){v.R[S]=f[S]}}}v.H=null;v.u|=4;e.P=v;v.L=u.L=f;useNativeShadowDom=supportsShadow;{contentRef=f["s-cr"];checkSlotFallbackVisibility=false}patch(u,v,r);{plt.u|=1;if(checkSlotRelocate){markSlotContentForRelocation(v.L);for(var m=0,g=relocateNodes;m<g.length;m++){var b=g[m];var y=b.V;if(!y["s-ol"]&&win.document){var C=win.document.createTextNode("");C["s-nr"]=y;insertBefore(y.parentNode,y["s-ol"]=C,y,r)}}for(var N=0,w=relocateNodes;N<w.length;N++){var b=w[N];var y=b.V;var _=b.I;if(y.nodeType===1&&r){y["s-ih"]=(n=y.hidden)!=null?n:false}if(_){var T=_.parentNode;var A=_.nextSibling;if(A&&A.nodeType===1){var C=(i=y["s-ol"])==null?void 0:i.previousSibling;while(C){var E=(a=C["s-nr"])!=null?a:null;if(E&&E["s-sn"]===y["s-sn"]&&T===(E.__parentNode||E.parentNode)){E=E.nextSibling;while(E===y||(E==null?void 0:E["s-sr"])){E=E==null?void 0:E.nextSibling}if(!E||!E["s-nr"]){A=E;break}}C=C.previousSibling}}var k=y.__parentNode||y.parentNode;var R=y.__nextSibling||y.nextSibling;if(!A&&T!==k||R!==A){if(y!==A){insertBefore(T,y,A,r);if(y.nodeType===8&&y.nodeValue.startsWith("s-nt-")){var O=win.document.createTextNode(y.nodeValue.replace(/^s-nt-/,""));O["s-hn"]=y["s-hn"];O["s-sn"]=y["s-sn"];O["s-sh"]=y["s-sh"];O["s-sr"]=y["s-sr"];O["s-ol"]=y["s-ol"];O["s-ol"]["s-nr"]=O;insertBefore(y.parentNode,O,y,r);y.parentNode.removeChild(y)}if(y.nodeType===1&&y.tagName!=="SLOT-FB"){y.hidden=(o=y["s-ih"])!=null?o:false}}}y&&typeof _["s-rf"]==="function"&&_["s-rf"](_)}else if(y.nodeType===1){y.hidden=true}}}if(checkSlotFallbackVisibility){updateFallbackSlotVisibility(v.L)}plt.u&=-2;relocateNodes.length=0}if(!useNativeShadowDom&&!(s.u&1)&&f["s-cr"]){var j=v.L.__childNodes||v.L.childNodes;for(var M=0,H=j;M<H.length;M++){var L=H[M];if(L["s-hn"]!==hostTagName&&!L["s-sh"]){if(r&&L["s-ih"]==null){L["s-ih"]=(l=L.hidden)!=null?l:false}if(L.nodeType===1){L.hidden=true}else if(L.nodeType===3&&!!L.nodeValue.trim()){var V=win.document.createComment("s-nt-"+L.nodeValue);V["s-sn"]=L["s-sn"];insertBefore(L.parentNode,V,L,r);L.parentNode.removeChild(L)}}}}contentRef=void 0;flushQueuedRefCallbacks()};var attachToAncestor=function(e,t){if(t&&!e.F&&t["s-p"]){var r=t["s-p"].push(new Promise((function(n){return e.F=function(){t["s-p"].splice(r-1,1);n()}})))}};var scheduleUpdate=function(e,t){{e.u|=16}if(e.u&4){e.u|=512;return}attachToAncestor(e,e.$);var r=function(){return dispatchHooks(e,t)};if(t){queueMicrotask((function(){r()}));return}return writeTask(r)};var dispatchHooks=function(e,t){var r=e.$hostElement$;var n=createTime("scheduleUpdate",e.t.N);var i=e.l;if(!i){throw new Error("Can't render component <".concat(r.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var a;if(t){{if(e.B){e.B=false;safeCall(i,"connectedCallback",void 0,r)}if(e.C.length){e.C.forEach((function(e){return e(r)}))}}a=safeCall(i,"componentWillLoad",void 0,r)}else{a=safeCall(i,"componentWillUpdate",void 0,r)}a=enqueue(a,(function(){return safeCall(i,"componentWillRender",void 0,r)}));n();return enqueue(a,(function(){return updateComponent(e,i,t)}))};var enqueue=function(e,t){return isPromisey(e)?e.then(t).catch((function(e){console.error(e);t()})):t()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,t,r){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,l,f,s;return __generator(this,(function(u){i=e.$hostElement$;a=createTime("update",e.t.N);o=i["s-rc"];if(r){attachStyles(e)}l=createTime("render",e.t.N);{callRender(e,t,i,r)}if(o){o.map((function(e){return e()}));i["s-rc"]=void 0}l();a();{f=(n=i["s-p"])!=null?n:[];s=function(){return postUpdateComponent(e)};if(f.length===0){s()}else{Promise.all(f).then(s).catch(s);e.u|=4;f.length=0}}return[2]}))}))};var callRender=function(e,t,r,n){try{t=t.render();{e.u&=-17}{e.u|=2}{{{renderVdom(e,t,n)}}}}catch(t){consoleError(t,e.$hostElement$)}return null};var postUpdateComponent=function(e){var t=e.t.N;var r=e.$hostElement$;var n=createTime("postUpdate",t);var i=e.l;var a=e.$;safeCall(i,"componentDidRender",void 0,r);if(!(e.u&64)){e.u|=64;{addHydratedFlag(r)}safeCall(i,"componentDidLoad",void 0,r);n();{e.m(r);if(!a){appDidLoad()}}}else{safeCall(i,"componentDidUpdate",void 0,r);n()}{e.h(r)}{if(e.F){e.F();e.F=void 0}if(e.u&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.u&=-517}};var appDidLoad=function(e){nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,t,r,n){if(e&&e[t]){try{return e[t](r)}catch(e){consoleError(e,n)}}return void 0};var addHydratedFlag=function(e){var t;return e.classList.add((t=BUILD.hydratedSelectorName)!=null?t:"hydrated")};var getValue=function(e,t){return getHostRef(e).o.get(t)};var setValue=function(e,t,r,n){var i=getHostRef(e);if(!i){return}if(!i){throw new Error("Couldn't find host element for \"".concat(n.N,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).'))}var a=i.$hostElement$;var o=i.o.get(t);var l=i.u;var f=i.l;r=parsePropertyValue(r,n.i[t][0],!!(n.u&64));var s=Number.isNaN(o)&&Number.isNaN(r);var u=r!==o&&!s;if((!(l&8)||o===void 0)&&u){i.o.set(t,r);if(n.U){var c=n.U[t];if(c){c.map((function(e){try{var n=Object.entries(e)[0],s=n[0],u=n[1];if(l&128||u&1){if(!f){i.C.push((function(){i.l[s](r,o,t)}))}else{f[s](r,o,t)}}}catch(e){consoleError(e,a)}}))}}if(l&2){if(f.componentShouldUpdate){var v=f.componentShouldUpdate(r,o,t);if(v===false&&!(l&16)){return}}if(!(l&16)){scheduleUpdate(i,false)}}}};var proxyComponent=function(e,t,r){var n,i;var a=e.prototype;if(t.u&64&&r&1){FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((function(e){Object.defineProperty(a,e,{value:function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}var n;var i=getHostRef(this);var a=i==null?void 0:i.l;if(!a){(n=i==null?void 0:i.S)==null?void 0:n.then((function(r){var n=r[e];typeof n==="function"&&n.call.apply(n,__spreadArray([r],t,false))}))}else{var o=a[e];typeof o==="function"&&o.call.apply(o,__spreadArray([a],t,false))}}})}))}if(t.i||BUILD.propChangeCallback){{if(e.watchers&&!t.U){t.U=e.watchers}if(e.deserializers&&!t.q){t.q=e.deserializers}if(e.serializers&&!t.W){t.W=e.serializers}}var o=Object.entries((n=t.i)!=null?n:{});o.map((function(e){var n=e[0],i=e[1][0];if(i&31||r&2&&i&32){var o=Object.getOwnPropertyDescriptor(a,n)||{},l=o.get,f=o.set;if(l)t.i[n][0]|=2048;if(f)t.i[n][0]|=4096;if(r&1||!l){Object.defineProperty(a,n,{get:function(){{if((t.i[n][0]&2048)===0){return getValue(this,n)}var e=getHostRef(this);var r=e?e.l:a;if(!r)return;return r[n]}},configurable:true,enumerable:true})}Object.defineProperty(a,n,{set:function(e){var a=this;var o=getHostRef(this);if(!o){return}if(f){var l=i&32?this[n]:o.$hostElement$[n];if(typeof l==="undefined"&&o.o.get(n)){e=o.o.get(n)}f.apply(this,[parsePropertyValue(e,i,!!(t.u&64))]);e=i&32?this[n]:o.$hostElement$[n];setValue(this,n,e,t);return}{if((r&1)===0||(t.i[n][0]&4096)===0){setValue(this,n,e,t);if(r&1&&!o.l){o.C.push((function(){if(t.i[n][0]&4096&&o.l[n]!==o.o.get(n)){o.l[n]=e}}))}return}var s=function(){var r=o.l[n];if(!o.o.get(n)&&r){o.o.set(n,r)}o.l[n]=parsePropertyValue(e,i,!!(t.u&64));setValue(a,n,o.l[n],t)};if(o.l){s()}else{o.C.push((function(){s()}))}}}})}else if(r&1&&i&64){Object.defineProperty(a,n,{value:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r;var i=getHostRef(this);return(r=i==null?void 0:i.p)==null?void 0:r.then((function(){var t;return(t=i.l)==null?void 0:t[n].apply(t,e)}))}})}}));if(r&1){var l=new Map;a.attributeChangedCallback=function(e,r,n){var i=this;plt.jmp((function(){var f;var s=l.get(e);var u=getHostRef(i);if(i.hasOwnProperty(s)&&BUILD.lazyLoad){n=i[s];delete i[s]}if(a.hasOwnProperty(s)&&typeof i[s]==="number"&&i[s]==n){return}else if(s==null){var c=u==null?void 0:u.u;if(u&&c&&!(c&8)&&n!==r){var v=u.l;var d=(f=t.U)==null?void 0:f[e];d==null?void 0:d.forEach((function(t){var i=Object.entries(t)[0],a=i[0],o=i[1];if(v[a]!=null&&(c&128||o&1)){v[a].call(v,n,r,e)}}))}return}var p=o.find((function(e){var t=e[0];return t===s}));if(p&&p[1][0]&4){n=n===null||n==="false"?false:true}var h=Object.getOwnPropertyDescriptor(a,s);if(n!=i[s]&&(!h.get||!!h.set)){i[s]=n}}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((i=t.U)!=null?i:{}),true),o.filter((function(e){var t=e[0],r=e[1];return r[0]&31})).map((function(e){var r=e[0],n=e[1];var i;var a=n[1]||r;l.set(a,r);if(n[0]&512){(i=t.D)==null?void 0:i.push([r,a])}return a})),true)))}}return e};var initializeComponent=function(e,t,r,n){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,l,f,s,u,c,v,d,p,h;return __generator(this,(function(S){switch(S.label){case 0:S.trys.push([0,7,,8]);if(!((t.u&32)===0))return[3,6];t.u|=32;i=r._;if(!i)return[3,4];a=loadModule(r,t);if(!(a&&"then"in a))return[3,2];o=uniqueTime();return[4,a];case 1:n=S.sent();o();return[3,3];case 2:n=a;S.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(r.N,"#").concat(t.G,'" was not found'))}if(!n.isProxied){{r.U=n.watchers;r.W=n.serializers;r.q=n.deserializers}proxyComponent(n,r,2);n.isProxied=true}l=createTime("createInstance",r.N);{t.u|=8}try{new n(t)}catch(t){consoleError(t,e)}{t.u&=-9}{t.u|=128}l();f=r.u&4;if(!f){fireConnectedCallback(t.l,e)}else{t.B=true}return[3,5];case 4:n=e.constructor;s=e.localName;customElements.whenDefined(s).then((function(){return t.u|=128}));S.label=5;case 5:if(n&&n.style){u=void 0;if(typeof n.style==="string"){u=n.style}c=getScopeId(r);if(!styles.has(c)||BUILD.hotModuleReplacement){v=createTime("registerStyles",r.N);registerStyle(c,u,!!(r.u&1));v()}}S.label=6;case 6:d=t.$;p=function(){return scheduleUpdate(t,true)};if(d&&d["s-rc"]){d["s-rc"].push(p)}else{p()}return[3,8];case 7:h=S.sent();consoleError(h,e);if(t.F){t.F();t.F=void 0}if(t.m){t.m(e)}return[3,8];case 8:return[2]}}))}))};var fireConnectedCallback=function(e,t){{safeCall(e,"connectedCallback",void 0,t)}};var connectedCallback=function(e){if((plt.u&1)===0){var t=getHostRef(e);if(!t){return}var r=t.t;var n=createTime("connectedCallback",r.N);if(!(t.u&1)){t.u|=1;{if(r.u&(4|8)){setContentReference(e)}}{var i=e;while(i=i.parentNode||i.host){if(i["s-p"]){attachToAncestor(t,t.$=i);break}}}if(r.i){Object.entries(r.i).map((function(t){var r=t[0],n=t[1][0];if(n&31&&r in e&&e[r]!==Object.prototype[r]){var i=e[r];delete e[r];e[r]=i}}))}{initializeComponent(e,t,r)}}else{if(t==null?void 0:t.l){fireConnectedCallback(t.l,e)}else if(t==null?void 0:t.S){t.S.then((function(){return fireConnectedCallback(t.l,e)}))}}n()}};var setContentReference=function(e){if(!win.document){return}var t=e["s-cr"]=win.document.createComment("");t["s-cn"]=true;insertBefore(e,t,e.firstChild)};var disconnectInstance=function(e,t){{safeCall(e,"disconnectedCallback",void 0,t||e)}};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t;return __generator(this,(function(r){if((plt.u&1)===0){t=getHostRef(e);if(t==null?void 0:t.l){disconnectInstance(t.l,e)}else if(t==null?void 0:t.S){t.S.then((function(){return disconnectInstance(t.l,e)}))}}if(rootAppliedStyles.has(e)){rootAppliedStyles.delete(e)}if(e.shadowRoot&&rootAppliedStyles.has(e.shadowRoot)){rootAppliedStyles.delete(e.shadowRoot)}return[2]}))}))};var bootstrapLazy=function(e,t){if(t===void 0){t={}}var r;if(!win.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var n=createTime();var i=[];var a=t.exclude||[];var o=win.customElements;var l=win.document.head;var f=l.querySelector("meta[charset]");var s=win.document.createElement("style");var u=[];var c;var v=true;Object.assign(plt,t);plt.T=new URL(t.resourcesUrl||"./",win.document.baseURI).href;var d=false;e.map((function(e){e[1].map((function(t){var r,n,l;var f={u:t[0],N:t[1],i:t[2],X:t[3]};if(f.u&4){d=true}{f.i=t[2]}{f.D=[]}{f.U=(r=t[4])!=null?r:{};f.W=(n=t[5])!=null?n:{};f.q=(l=t[6])!=null?l:{}}var s=transformTag(f.N);var p=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;r.hasRegisteredEventListeners=false;t=r;registerHost(t,f);return r}t.prototype.connectedCallback=function(){var e=this;var t=getHostRef(this);if(!t){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(c){clearTimeout(c);c=null}if(v){u.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}));plt.raf((function(){var t;var r=getHostRef(e);if(!r){return}var n=u.findIndex((function(t){return t===e}));if(n>-1){u.splice(n,1)}if(((t=r==null?void 0:r.P)==null?void 0:t.L)instanceof Node&&!r.P.L.isConnected){delete r.P.L}}))};t.prototype.componentOnReady=function(){var e;return(e=getHostRef(this))==null?void 0:e.S};return t}(HTMLElement);if(!(f.u&1)&&f.u&256){{patchPseudoShadowDom(p.prototype)}}else{patchCloneNode(p.prototype)}if(f.u&64){p.formAssociated=true}f._=e[0];if(!a.includes(s)&&!o.get(s)){i.push(s);o.define(s,proxyComponent(p,f,1))}}))}));if(i.length>0){if(d){s.textContent+=SLOT_FB_CSS}{s.textContent+=i.sort()+HYDRATED_CSS}if(s.innerHTML.length){s.setAttribute("data-styles","");var p=(r=plt.A)!=null?r:queryNonceMetaTagContent(win.document);if(p!=null){s.setAttribute("nonce",p)}l.insertBefore(s,f?f.nextSibling:l.firstChild)}}v=false;if(u.length){u.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}n()};var Fragment=function(e,t){return t};var baseClass=function(){function e(){}return e}();function Mixin(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.reduceRight((function(e,t){return t(e)}),baseClass)}var setNonce=function(e){return plt.A=e};function transformTag(e){return e}export{Fragment as F,H,Mixin as M,Host as a,bootstrapLazy as b,createEvent as c,getAssetPath as d,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
@@ -1 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var n=function(r,t){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))n[t]=r[t]};return n(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(r,t);function i(){this.constructor=r}r.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();var formAssociatedMixin=function(n){var r=function(n){__extends(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}r.prototype.formDisabledCallback=function(n){this.isDisabled=n};return r}(n);return r};function setFormValue(n,r){var t;(t=n.setFormValue)===null||t===void 0?void 0:t.call(n,r)}function runValidators(n,r,t){var i;var o={};var u="";for(var e=0,a=r;e<a.length;e++){var s=a[e],f=s.key,c=s.isValid,l=s.message;if(!c(t)){o[f]=true;if(u==="")u=l}}var v=Object.keys(o).length===0;(i=n.setValidity)===null||i===void 0?void 0:i.call(n,v?{}:o,u);return v}export{formAssociatedMixin as f,runValidators as r,setFormValue as s};
@@ -1 +0,0 @@
1
- var COMPONENT_STATES={DEFAULT:"default",ERROR:"error",DISABLED:"disabled",ACTIVE:"active"};var STATUS_VARIANT={INFO:"info",SUCCESS:"success",WARNING:"warning",DANGER:"danger"};export{COMPONENT_STATES as C,STATUS_VARIANT as S};
@@ -1 +0,0 @@
1
- function validatePropValue(e,o,a,r){var l=a[r];if(e.includes(l))return;a[r]=o;console.warn('[BorealDS] Invalid value "'.concat(l,'" for prop "').concat(r,'" on <').concat(a.tagName.toLowerCase(),">. Expected one of: ").concat(e.join(", "),"."))}export{validatePropValue as v};
@@ -1,2 +0,0 @@
1
- export * from './ElementInternals';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,35 +1,5 @@
1
1
  'use strict';
2
2
 
3
- /**
4
- * Shared base mixin for Form-Associated Custom Elements in Boreal DS.
5
- *
6
- * Provides `formDisabledCallback` — the only behavior that is identical across
7
- * all FACE components. It writes to the component's `isDisabled` state, which
8
- * each component must declare as `@State() private isDisabled: boolean = false`.
9
- *
10
- * Each component must declare directly on its class body:
11
- * - `@AttachInternals() internals!: ElementInternals`
12
- * - `@Prop({ reflect: true }) readonly name!: string`
13
- * - `@Prop({ reflect: true }) readonly disabled: boolean = false`
14
- * - `@Prop({ reflect: true }) readonly required: boolean = false`
15
- * - `@State() private isDisabled: boolean = false`
16
- * - `@Watch('disabled') onDisabledChange(next: boolean) { this.isDisabled = next; }`
17
- *
18
- * Stencil's compiler requires `@Prop` and `@State` decorators to be statically
19
- * visible on the component class — they cannot be inherited from a mixin.
20
- *
21
- * Components must also implement `IFormControl<T>` for value registration,
22
- * reset, state restoration, and 2-way binding event emission.
23
- */
24
- const formAssociatedMixin = (Base) => {
25
- class FormAssociated extends Base {
26
- formDisabledCallback(disabled) {
27
- this.isDisabled = disabled;
28
- }
29
- }
30
- return FormAssociated;
31
- };
32
-
33
3
  /**
34
4
  * Registers the component's current value with the browser's form machinery.
35
5
  *
@@ -110,6 +80,36 @@ function runValidators(internals, validators, el) {
110
80
  return valid;
111
81
  }
112
82
 
83
+ /**
84
+ * Shared base mixin for Form-Associated Custom Elements in Boreal DS.
85
+ *
86
+ * Provides `formDisabledCallback` — the only behavior that is identical across
87
+ * all FACE components. It writes to the component's `isDisabled` state, which
88
+ * each component must declare as `@State() private isDisabled: boolean = false`.
89
+ *
90
+ * Each component must declare directly on its class body:
91
+ * - `@AttachInternals() internals!: ElementInternals`
92
+ * - `@Prop({ reflect: true }) readonly name!: string`
93
+ * - `@Prop({ reflect: true }) readonly disabled: boolean = false`
94
+ * - `@Prop({ reflect: true }) readonly required: boolean = false`
95
+ * - `@State() private isDisabled: boolean = false`
96
+ * - `@Watch('disabled') onDisabledChange(next: boolean) { this.isDisabled = next; }`
97
+ *
98
+ * Stencil's compiler requires `@Prop` and `@State` decorators to be statically
99
+ * visible on the component class — they cannot be inherited from a mixin.
100
+ *
101
+ * Components must also implement `IFormControl<T>` for value registration,
102
+ * reset, state restoration, and 2-way binding event emission.
103
+ */
104
+ const formAssociatedMixin = (Base) => {
105
+ class FormAssociated extends Base {
106
+ formDisabledCallback(disabled) {
107
+ this.isDisabled = disabled;
108
+ }
109
+ }
110
+ return FormAssociated;
111
+ };
112
+
113
113
  exports.formAssociatedMixin = formAssociatedMixin;
114
114
  exports.runValidators = runValidators;
115
115
  exports.setFormValue = setFormValue;
@@ -1,33 +1,3 @@
1
- /**
2
- * Shared base mixin for Form-Associated Custom Elements in Boreal DS.
3
- *
4
- * Provides `formDisabledCallback` — the only behavior that is identical across
5
- * all FACE components. It writes to the component's `isDisabled` state, which
6
- * each component must declare as `@State() private isDisabled: boolean = false`.
7
- *
8
- * Each component must declare directly on its class body:
9
- * - `@AttachInternals() internals!: ElementInternals`
10
- * - `@Prop({ reflect: true }) readonly name!: string`
11
- * - `@Prop({ reflect: true }) readonly disabled: boolean = false`
12
- * - `@Prop({ reflect: true }) readonly required: boolean = false`
13
- * - `@State() private isDisabled: boolean = false`
14
- * - `@Watch('disabled') onDisabledChange(next: boolean) { this.isDisabled = next; }`
15
- *
16
- * Stencil's compiler requires `@Prop` and `@State` decorators to be statically
17
- * visible on the component class — they cannot be inherited from a mixin.
18
- *
19
- * Components must also implement `IFormControl<T>` for value registration,
20
- * reset, state restoration, and 2-way binding event emission.
21
- */
22
- const formAssociatedMixin = (Base) => {
23
- class FormAssociated extends Base {
24
- formDisabledCallback(disabled) {
25
- this.isDisabled = disabled;
26
- }
27
- }
28
- return FormAssociated;
29
- };
30
-
31
1
  /**
32
2
  * Registers the component's current value with the browser's form machinery.
33
3
  *
@@ -108,4 +78,34 @@ function runValidators(internals, validators, el) {
108
78
  return valid;
109
79
  }
110
80
 
81
+ /**
82
+ * Shared base mixin for Form-Associated Custom Elements in Boreal DS.
83
+ *
84
+ * Provides `formDisabledCallback` — the only behavior that is identical across
85
+ * all FACE components. It writes to the component's `isDisabled` state, which
86
+ * each component must declare as `@State() private isDisabled: boolean = false`.
87
+ *
88
+ * Each component must declare directly on its class body:
89
+ * - `@AttachInternals() internals!: ElementInternals`
90
+ * - `@Prop({ reflect: true }) readonly name!: string`
91
+ * - `@Prop({ reflect: true }) readonly disabled: boolean = false`
92
+ * - `@Prop({ reflect: true }) readonly required: boolean = false`
93
+ * - `@State() private isDisabled: boolean = false`
94
+ * - `@Watch('disabled') onDisabledChange(next: boolean) { this.isDisabled = next; }`
95
+ *
96
+ * Stencil's compiler requires `@Prop` and `@State` decorators to be statically
97
+ * visible on the component class — they cannot be inherited from a mixin.
98
+ *
99
+ * Components must also implement `IFormControl<T>` for value registration,
100
+ * reset, state restoration, and 2-way binding event emission.
101
+ */
102
+ const formAssociatedMixin = (Base) => {
103
+ class FormAssociated extends Base {
104
+ formDisabledCallback(disabled) {
105
+ this.isDisabled = disabled;
106
+ }
107
+ }
108
+ return FormAssociated;
109
+ };
110
+
111
111
  export { formAssociatedMixin as f, runValidators as r, setFormValue as s };