@brandsync/wc 1.20.1 → 1.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (587) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/REFERENCE.md +2 -1
  3. package/custom-elements.json +157 -6
  4. package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
  5. package/dist/brandsync-wc/{p-dd3499ab.entry.js → p-018ab194.entry.js} +1 -1
  6. package/dist/brandsync-wc/{p-d6600c7c.entry.js → p-020a274b.entry.js} +1 -1
  7. package/dist/brandsync-wc/{p-2a96ce61.entry.js → p-0276bca4.entry.js} +1 -1
  8. package/dist/brandsync-wc/p-03acdd56.entry.js +1 -0
  9. package/dist/brandsync-wc/{p-32d83763.entry.js → p-06a5fe99.entry.js} +1 -1
  10. package/dist/brandsync-wc/{p-1a549f9a.entry.js → p-0a0798c4.entry.js} +1 -1
  11. package/dist/brandsync-wc/{p-ecb1a27d.entry.js → p-0b92d0d7.entry.js} +1 -1
  12. package/dist/brandsync-wc/{p-319b7baa.entry.js → p-0be65af0.entry.js} +1 -1
  13. package/dist/brandsync-wc/{p-0ebb60a8.entry.js → p-0ce29fc2.entry.js} +1 -1
  14. package/dist/brandsync-wc/{p-6ae75ed0.entry.js → p-1436ae47.entry.js} +1 -1
  15. package/dist/brandsync-wc/{p-66f1ca2e.entry.js → p-181a8372.entry.js} +1 -1
  16. package/dist/brandsync-wc/{p-f71d7582.entry.js → p-1bd3756c.entry.js} +1 -1
  17. package/dist/brandsync-wc/p-1bf91b43.entry.js +1 -0
  18. package/dist/brandsync-wc/p-1c2402eb.entry.js +1 -0
  19. package/dist/brandsync-wc/{p-ff85a9d8.entry.js → p-214b32bb.entry.js} +1 -1
  20. package/dist/brandsync-wc/{p-4810bcc8.entry.js → p-21a592a4.entry.js} +1 -1
  21. package/dist/brandsync-wc/{p-a3c7b4e7.entry.js → p-23e3bffe.entry.js} +1 -1
  22. package/dist/brandsync-wc/{p-e8027825.entry.js → p-284e4e1e.entry.js} +1 -1
  23. package/dist/brandsync-wc/{p-78e4dd14.entry.js → p-2c167f83.entry.js} +1 -1
  24. package/dist/brandsync-wc/p-2e2dc322.entry.js +1 -0
  25. package/dist/brandsync-wc/{p-f22d2db8.entry.js → p-37da7465.entry.js} +1 -1
  26. package/dist/brandsync-wc/{p-2621b1b2.entry.js → p-38f4552f.entry.js} +1 -1
  27. package/dist/brandsync-wc/{p-23367a4d.entry.js → p-39afd9b8.entry.js} +1 -1
  28. package/dist/brandsync-wc/{p-28a34097.entry.js → p-3a13747b.entry.js} +1 -1
  29. package/dist/brandsync-wc/{p-fc7df528.entry.js → p-3b3a9587.entry.js} +1 -1
  30. package/dist/brandsync-wc/{p-50a154b8.entry.js → p-3de7989e.entry.js} +1 -1
  31. package/dist/brandsync-wc/{p-d555984e.entry.js → p-43a792a3.entry.js} +1 -1
  32. package/dist/brandsync-wc/{p-bfdd135b.entry.js → p-4907f66e.entry.js} +1 -1
  33. package/dist/brandsync-wc/{p-9e93b482.entry.js → p-4a8c2eca.entry.js} +1 -1
  34. package/dist/brandsync-wc/{p-89dbb3c8.entry.js → p-4ff5bc4b.entry.js} +1 -1
  35. package/dist/brandsync-wc/{p-a6cbb6c6.entry.js → p-51e9d375.entry.js} +1 -1
  36. package/dist/brandsync-wc/{p-2f58b161.entry.js → p-5399e163.entry.js} +1 -1
  37. package/dist/brandsync-wc/{p-e2268c96.entry.js → p-55db935b.entry.js} +1 -1
  38. package/dist/brandsync-wc/p-5f26d601.entry.js +1 -0
  39. package/dist/brandsync-wc/{p-409cf56b.entry.js → p-60e4e07a.entry.js} +1 -1
  40. package/dist/brandsync-wc/{p-08d08dc9.entry.js → p-645e1a78.entry.js} +1 -1
  41. package/dist/brandsync-wc/{p-6adc9c4f.entry.js → p-682b9f3e.entry.js} +1 -1
  42. package/dist/brandsync-wc/{p-08a5e178.entry.js → p-697de2b2.entry.js} +1 -1
  43. package/dist/brandsync-wc/{p-e18cb639.entry.js → p-6aa3dcef.entry.js} +1 -1
  44. package/dist/brandsync-wc/{p-d8a299a9.entry.js → p-6b11aebb.entry.js} +1 -1
  45. package/dist/brandsync-wc/{p-a1d34ff3.entry.js → p-6d18ba79.entry.js} +1 -1
  46. package/dist/brandsync-wc/p-6fcfd7d7.entry.js +1 -0
  47. package/dist/brandsync-wc/{p-69489f45.entry.js → p-71ea6c1c.entry.js} +1 -1
  48. package/dist/brandsync-wc/{p-b0f4cbca.entry.js → p-74dd9146.entry.js} +1 -1
  49. package/dist/brandsync-wc/{p-8c83cc99.entry.js → p-75ec385a.entry.js} +1 -1
  50. package/dist/brandsync-wc/{p-ca8a1e51.entry.js → p-78fdcd05.entry.js} +1 -1
  51. package/dist/brandsync-wc/{p-eb4ad606.entry.js → p-7a291cfc.entry.js} +1 -1
  52. package/dist/brandsync-wc/{p-baca1abf.entry.js → p-7f3c8416.entry.js} +1 -1
  53. package/dist/brandsync-wc/{p-8d674f11.entry.js → p-7f50ae81.entry.js} +1 -1
  54. package/dist/brandsync-wc/{p-53b1c545.entry.js → p-82533674.entry.js} +1 -1
  55. package/dist/brandsync-wc/{p-d263deec.entry.js → p-83977d40.entry.js} +1 -1
  56. package/dist/brandsync-wc/{p-806bb471.entry.js → p-851c1498.entry.js} +1 -1
  57. package/dist/brandsync-wc/{p-3f6be3f7.entry.js → p-87b91d38.entry.js} +1 -1
  58. package/dist/brandsync-wc/{p-b7545d9b.entry.js → p-8a85e144.entry.js} +1 -1
  59. package/dist/brandsync-wc/{p-c0e5db3d.entry.js → p-9301f01e.entry.js} +1 -1
  60. package/dist/brandsync-wc/{p-c39e6be9.entry.js → p-978c46d9.entry.js} +1 -1
  61. package/dist/brandsync-wc/{p-fa894893.entry.js → p-9988ebab.entry.js} +1 -1
  62. package/dist/brandsync-wc/p-9a45899c.entry.js +1 -0
  63. package/dist/brandsync-wc/{p-debc308d.entry.js → p-9bd0c4a7.entry.js} +1 -1
  64. package/dist/brandsync-wc/{p-4d6f2fec.entry.js → p-9c1ea6f0.entry.js} +1 -1
  65. package/dist/brandsync-wc/{p-aa99b1f8.entry.js → p-9c353a03.entry.js} +1 -1
  66. package/dist/brandsync-wc/{p-1daf48b1.entry.js → p-9d90d3b8.entry.js} +1 -1
  67. package/dist/brandsync-wc/{p-5b48a6c7.entry.js → p-a59b4c08.entry.js} +1 -1
  68. package/dist/brandsync-wc/{p-39c50762.entry.js → p-ad53d283.entry.js} +1 -1
  69. package/dist/brandsync-wc/{p-4f19e8d8.entry.js → p-ad9c3eea.entry.js} +1 -1
  70. package/dist/brandsync-wc/{p-040d4755.entry.js → p-aeb99b7d.entry.js} +1 -1
  71. package/dist/brandsync-wc/{p-70924681.entry.js → p-b145997c.entry.js} +1 -1
  72. package/dist/brandsync-wc/{p-90442341.entry.js → p-b6350eab.entry.js} +1 -1
  73. package/dist/brandsync-wc/{p-f229f59a.entry.js → p-b90c8b7d.entry.js} +1 -1
  74. package/dist/brandsync-wc/{p-a86560e6.entry.js → p-b93ce581.entry.js} +1 -1
  75. package/dist/brandsync-wc/p-ba933f3b.entry.js +1 -0
  76. package/dist/brandsync-wc/{p-6db03e96.entry.js → p-bb1b2350.entry.js} +1 -1
  77. package/dist/brandsync-wc/{p-d67840f5.entry.js → p-bcb09ba4.entry.js} +1 -1
  78. package/dist/brandsync-wc/{p-50ac6889.entry.js → p-bde099fb.entry.js} +1 -1
  79. package/dist/brandsync-wc/{p-e18e45bc.entry.js → p-bef6e54b.entry.js} +1 -1
  80. package/dist/brandsync-wc/{p-520b277a.entry.js → p-bf8da1b5.entry.js} +1 -1
  81. package/dist/brandsync-wc/{p-2210c680.entry.js → p-c36f68a2.entry.js} +1 -1
  82. package/dist/brandsync-wc/{p-1ce4395a.entry.js → p-c4026551.entry.js} +1 -1
  83. package/dist/brandsync-wc/{p-14719554.entry.js → p-c7c3c4ae.entry.js} +1 -1
  84. package/dist/brandsync-wc/{p-eb1b1497.entry.js → p-ca71e180.entry.js} +1 -1
  85. package/dist/brandsync-wc/p-cc664465.entry.js +1 -0
  86. package/dist/brandsync-wc/{p-8a4d64fd.entry.js → p-ce3a762e.entry.js} +1 -1
  87. package/dist/brandsync-wc/{p-452f6c13.entry.js → p-d38394ce.entry.js} +1 -1
  88. package/dist/brandsync-wc/{p-fbd204b6.entry.js → p-d4caa814.entry.js} +1 -1
  89. package/dist/brandsync-wc/{p-47fc5f29.entry.js → p-d8dd2230.entry.js} +1 -1
  90. package/dist/brandsync-wc/{p-13d98ec3.entry.js → p-da091255.entry.js} +1 -1
  91. package/dist/brandsync-wc/{p-fe6f71da.entry.js → p-dd7bb223.entry.js} +1 -1
  92. package/dist/brandsync-wc/{p-548b96f7.entry.js → p-e0d47019.entry.js} +1 -1
  93. package/dist/brandsync-wc/{p-587be2c6.entry.js → p-e8fe79bc.entry.js} +1 -1
  94. package/dist/brandsync-wc/{p-b6dc9234.entry.js → p-e90e4991.entry.js} +1 -1
  95. package/dist/brandsync-wc/{p-338b5e39.entry.js → p-ee4f3b3d.entry.js} +1 -1
  96. package/dist/brandsync-wc/{p-32004fb3.entry.js → p-f43615f7.entry.js} +1 -1
  97. package/dist/brandsync-wc/{p-b1663378.entry.js → p-fca95aae.entry.js} +1 -1
  98. package/dist/cjs/brandsync-wc.cjs.js +1 -1
  99. package/dist/cjs/bs-accordion-group.cjs.entry.js +1 -1
  100. package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +1 -1
  101. package/dist/cjs/bs-ai-greeting.cjs.entry.js +1 -1
  102. package/dist/cjs/bs-ai-thinking.cjs.entry.js +1 -1
  103. package/dist/cjs/bs-app-recent-item_3.cjs.entry.js +4 -4
  104. package/dist/cjs/bs-app-shell.cjs.entry.js +1 -1
  105. package/dist/cjs/bs-attachment-list.cjs.entry.js +1 -1
  106. package/dist/cjs/bs-breadcrumbs.cjs.entry.js +1 -1
  107. package/dist/cjs/bs-button-skeleton.cjs.entry.js +1 -1
  108. package/dist/cjs/bs-button_2.cjs.entry.js +1 -1
  109. package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +1 -1
  110. package/dist/cjs/bs-chatbot-header.cjs.entry.js +1 -1
  111. package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +1 -1
  112. package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +1 -1
  113. package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +1 -1
  114. package/dist/cjs/bs-checkbox-group.cjs.entry.js +8 -3
  115. package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +1 -1
  116. package/dist/cjs/bs-chip-filter.cjs.entry.js +1 -1
  117. package/dist/cjs/bs-chip-informative.cjs.entry.js +31 -2
  118. package/dist/cjs/bs-chip-input.cjs.entry.js +1 -1
  119. package/dist/cjs/bs-citation-preview.cjs.entry.js +1 -1
  120. package/dist/cjs/bs-command-palette.cjs.entry.js +1 -1
  121. package/dist/cjs/bs-compact-menu-block_2.cjs.entry.js +4 -4
  122. package/dist/cjs/bs-company-switcher.cjs.entry.js +2 -2
  123. package/dist/cjs/bs-composer-status-banner.cjs.entry.js +1 -1
  124. package/dist/cjs/bs-composer.cjs.entry.js +1 -1
  125. package/dist/cjs/bs-container.cjs.entry.js +1 -1
  126. package/dist/cjs/bs-data-table.cjs.entry.js +4 -2
  127. package/dist/cjs/bs-datepicker.cjs.entry.js +1 -1
  128. package/dist/cjs/bs-description-item.cjs.entry.js +1 -1
  129. package/dist/cjs/bs-description-list.cjs.entry.js +1 -1
  130. package/dist/cjs/bs-divider.cjs.entry.js +1 -1
  131. package/dist/cjs/bs-dropdown.cjs.entry.js +1 -1
  132. package/dist/cjs/bs-empty-state.cjs.entry.js +1 -1
  133. package/dist/cjs/bs-error-page.cjs.entry.js +1 -1
  134. package/dist/cjs/bs-file-upload-item.cjs.entry.js +1 -1
  135. package/dist/cjs/bs-file-upload.cjs.entry.js +1 -1
  136. package/dist/cjs/bs-global-search.cjs.entry.js +2 -2
  137. package/dist/cjs/bs-grid.cjs.entry.js +2 -2
  138. package/dist/cjs/bs-heading.cjs.entry.js +1 -1
  139. package/dist/cjs/bs-icon-button.cjs.entry.js +1 -1
  140. package/dist/cjs/bs-icon-tile.cjs.entry.js +2 -2
  141. package/dist/cjs/bs-icon.cjs.entry.js +1 -1
  142. package/dist/cjs/bs-inline-tab.cjs.entry.js +1 -1
  143. package/dist/cjs/bs-input_4.cjs.entry.js +9 -6
  144. package/dist/cjs/bs-key-caps.cjs.entry.js +1 -1
  145. package/dist/cjs/bs-key.cjs.entry.js +1 -1
  146. package/dist/cjs/bs-keyboard-shortcuts.cjs.entry.js +2 -2
  147. package/dist/cjs/bs-link.cjs.entry.js +1 -1
  148. package/dist/cjs/bs-list-item.cjs.entry.js +1 -1
  149. package/dist/cjs/bs-list.cjs.entry.js +1 -1
  150. package/dist/cjs/bs-mega-menu.cjs.entry.js +1 -1
  151. package/dist/cjs/bs-message-list.cjs.entry.js +1 -1
  152. package/dist/cjs/bs-message.cjs.entry.js +1 -1
  153. package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +1 -1
  154. package/dist/cjs/bs-navigation-drawer.cjs.entry.js +2 -2
  155. package/dist/cjs/bs-navigation-header.cjs.entry.js +2 -2
  156. package/dist/cjs/bs-page-header.cjs.entry.js +1 -1
  157. package/dist/cjs/bs-pagination.cjs.entry.js +1 -1
  158. package/dist/cjs/bs-popover.cjs.entry.js +1 -1
  159. package/dist/cjs/bs-presence.cjs.entry.js +1 -1
  160. package/dist/cjs/bs-progress-linear.cjs.entry.js +2 -2
  161. package/dist/cjs/bs-progress.cjs.entry.js +2 -2
  162. package/dist/cjs/bs-qr-code.cjs.entry.js +1 -1
  163. package/dist/cjs/bs-radio-group.cjs.entry.js +1 -1
  164. package/dist/cjs/bs-radio.cjs.entry.js +1 -1
  165. package/dist/cjs/bs-search-item.cjs.entry.js +1 -1
  166. package/dist/cjs/bs-select.cjs.entry.js +1 -1
  167. package/dist/cjs/bs-session-timeout.cjs.entry.js +1 -1
  168. package/dist/cjs/bs-shortcut-row.cjs.entry.js +1 -1
  169. package/dist/cjs/bs-skip-link.cjs.entry.js +1 -1
  170. package/dist/cjs/bs-slider.cjs.entry.js +1 -1
  171. package/dist/cjs/bs-snackbar.cjs.entry.js +1 -1
  172. package/dist/cjs/bs-source-link.cjs.entry.js +3 -3
  173. package/dist/cjs/bs-split-pane.cjs.entry.js +27 -2
  174. package/dist/cjs/bs-stack.cjs.entry.js +1 -1
  175. package/dist/cjs/bs-stat.cjs.entry.js +1 -1
  176. package/dist/cjs/bs-stepper-step.cjs.entry.js +1 -1
  177. package/dist/cjs/bs-stepper.cjs.entry.js +1 -1
  178. package/dist/cjs/bs-switch.cjs.entry.js +1 -1
  179. package/dist/cjs/bs-tab_3.cjs.entry.js +3 -3
  180. package/dist/cjs/bs-table-of-contents.cjs.entry.js +1 -1
  181. package/dist/cjs/bs-tag.cjs.entry.js +2 -2
  182. package/dist/cjs/bs-text.cjs.entry.js +1 -1
  183. package/dist/cjs/bs-timepicker.cjs.entry.js +2 -2
  184. package/dist/cjs/bs-toast.cjs.entry.js +1 -1
  185. package/dist/cjs/bs-toggle-button-group.cjs.entry.js +1 -1
  186. package/dist/cjs/bs-toggle-button.cjs.entry.js +9 -1
  187. package/dist/cjs/bs-toolbar.cjs.entry.js +1 -1
  188. package/dist/cjs/bs-tooltip-trigger.cjs.entry.js +1 -1
  189. package/dist/cjs/bs-tooltip.cjs.entry.js +1 -1
  190. package/dist/cjs/bs-tree-item.cjs.entry.js +2 -2
  191. package/dist/cjs/bs-tree.cjs.entry.js +1 -1
  192. package/dist/cjs/loader.cjs.js +1 -1
  193. package/dist/collection/components/bs-accordion/bs-accordion.stories.js +25 -1
  194. package/dist/collection/components/bs-accordion-group/bs-accordion-group.js +1 -1
  195. package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +1 -1
  196. package/dist/collection/components/bs-ai-greeting/bs-ai-greeting.js +1 -1
  197. package/dist/collection/components/bs-ai-thinking/bs-ai-thinking.js +1 -1
  198. package/dist/collection/components/bs-app-recent-item/bs-app-recent-item.js +3 -3
  199. package/dist/collection/components/bs-app-shell/bs-app-shell.js +1 -1
  200. package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
  201. package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
  202. package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +1 -1
  203. package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
  204. package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -1
  205. package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -1
  206. package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +1 -1
  207. package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +1 -1
  208. package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +1 -1
  209. package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.js +1 -1
  210. package/dist/collection/components/bs-checkbox/bs-checkbox.stories.js +25 -1
  211. package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.cmp.test.js +9 -0
  212. package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.css +13 -0
  213. package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.js +28 -3
  214. package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.js +1 -1
  215. package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.cmp.test.js +44 -0
  216. package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.css +30 -0
  217. package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.js +139 -7
  218. package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.stories.js +7 -0
  219. package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.js +1 -1
  220. package/dist/collection/components/bs-citation-preview/bs-citation-preview.js +1 -1
  221. package/dist/collection/components/bs-command-palette/bs-command-palette.js +1 -1
  222. package/dist/collection/components/bs-compact-menu-block/bs-compact-menu-block.js +1 -1
  223. package/dist/collection/components/bs-company-switcher/bs-company-switcher.js +2 -2
  224. package/dist/collection/components/bs-composer/bs-composer.js +1 -1
  225. package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.js +1 -1
  226. package/dist/collection/components/bs-container/bs-container.js +1 -1
  227. package/dist/collection/components/bs-data-table/bs-data-table.cmp.test.js +9 -0
  228. package/dist/collection/components/bs-data-table/bs-data-table.js +24 -2
  229. package/dist/collection/components/bs-datepicker/bs-datepicker.js +1 -1
  230. package/dist/collection/components/bs-description-item/bs-description-item.js +1 -1
  231. package/dist/collection/components/bs-description-list/bs-description-list.js +1 -1
  232. package/dist/collection/components/bs-divider/bs-divider.js +1 -1
  233. package/dist/collection/components/bs-dropdown/bs-dropdown.js +1 -1
  234. package/dist/collection/components/bs-empty-state/bs-empty-state.js +1 -1
  235. package/dist/collection/components/bs-error-page/bs-error-page.js +1 -1
  236. package/dist/collection/components/bs-file-upload/bs-file-upload.js +1 -1
  237. package/dist/collection/components/bs-file-upload-item/bs-file-upload-item.js +1 -1
  238. package/dist/collection/components/bs-global-search/bs-global-search.js +2 -2
  239. package/dist/collection/components/bs-grid/bs-grid.js +2 -2
  240. package/dist/collection/components/bs-heading/bs-heading.js +1 -1
  241. package/dist/collection/components/bs-icon/bs-icon.js +1 -1
  242. package/dist/collection/components/bs-icon-tile/bs-icon-tile.js +2 -2
  243. package/dist/collection/components/bs-input/bs-input.cmp.test.js +12 -0
  244. package/dist/collection/components/bs-input/bs-input.js +26 -3
  245. package/dist/collection/components/bs-input/bs-input.stories.js +14 -0
  246. package/dist/collection/components/bs-key/bs-key.js +1 -1
  247. package/dist/collection/components/bs-key-caps/bs-key-caps.js +1 -1
  248. package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.js +2 -2
  249. package/dist/collection/components/bs-link/bs-link.js +1 -1
  250. package/dist/collection/components/bs-list/bs-list.js +1 -1
  251. package/dist/collection/components/bs-list-item/bs-list-item.js +1 -1
  252. package/dist/collection/components/bs-mega-menu/bs-mega-menu.js +1 -1
  253. package/dist/collection/components/bs-menu/bs-menu.js +1 -1
  254. package/dist/collection/components/bs-menu-block/bs-menu-block.js +3 -3
  255. package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
  256. package/dist/collection/components/bs-message/bs-message.js +1 -1
  257. package/dist/collection/components/bs-message-list/bs-message-list.js +1 -1
  258. package/dist/collection/components/bs-page-header/bs-page-header.js +1 -1
  259. package/dist/collection/components/bs-pagination/bs-pagination.js +1 -1
  260. package/dist/collection/components/bs-popover/bs-popover.js +1 -1
  261. package/dist/collection/components/bs-presence/bs-presence.js +1 -1
  262. package/dist/collection/components/bs-progress/bs-progress.js +2 -2
  263. package/dist/collection/components/bs-progress/bs-progress.stories.js +6 -3
  264. package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +2 -2
  265. package/dist/collection/components/bs-progress-linear/bs-progress-linear.stories.js +7 -5
  266. package/dist/collection/components/bs-qr-code/bs-qr-code.js +1 -1
  267. package/dist/collection/components/bs-radio/bs-radio.js +1 -1
  268. package/dist/collection/components/bs-radio-group/bs-radio-group.js +1 -1
  269. package/dist/collection/components/bs-radio-group/bs-radio-group.stories.js +15 -1
  270. package/dist/collection/components/bs-ripple/bs-ripple.js +1 -1
  271. package/dist/collection/components/bs-search-item/bs-search-item.js +1 -1
  272. package/dist/collection/components/bs-select/bs-select.js +1 -1
  273. package/dist/collection/components/bs-select/bs-select.stories.js +21 -1
  274. package/dist/collection/components/bs-session-timeout/bs-session-timeout.js +1 -1
  275. package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.js +1 -1
  276. package/dist/collection/components/bs-skeleton/bs-skeleton.js +1 -1
  277. package/dist/collection/components/bs-skip-link/bs-skip-link.js +1 -1
  278. package/dist/collection/components/bs-slider/bs-slider.js +1 -1
  279. package/dist/collection/components/bs-snackbar/bs-snackbar.js +1 -1
  280. package/dist/collection/components/bs-source-link/bs-source-link.js +3 -3
  281. package/dist/collection/components/bs-spinner/bs-spinner.js +1 -1
  282. package/dist/collection/components/bs-split-pane/bs-split-pane.cmp.test.js +8 -0
  283. package/dist/collection/components/bs-split-pane/bs-split-pane.js +26 -1
  284. package/dist/collection/components/bs-stack/bs-stack.js +1 -1
  285. package/dist/collection/components/bs-stat/bs-stat.js +1 -1
  286. package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +1 -1
  287. package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +1 -1
  288. package/dist/collection/components/bs-switch/bs-switch.js +1 -1
  289. package/dist/collection/components/bs-switch/bs-switch.stories.js +33 -9
  290. package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +1 -1
  291. package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +1 -1
  292. package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +1 -1
  293. package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.stories.js +19 -1
  294. package/dist/collection/components/bs-table-of-contents/bs-table-of-contents.js +1 -1
  295. package/dist/collection/components/bs-tag/bs-tag.js +6 -2
  296. package/dist/collection/components/bs-text/bs-text.js +1 -1
  297. package/dist/collection/components/bs-timepicker/bs-timepicker.js +2 -2
  298. package/dist/collection/components/bs-toast/bs-toast.js +1 -1
  299. package/dist/collection/components/bs-toggle-button/bs-toggle-button.cmp.test.js +11 -0
  300. package/dist/collection/components/bs-toggle-button/bs-toggle-button.js +9 -1
  301. package/dist/collection/components/bs-toggle-button/bs-toggle-button.stories.js +1 -1
  302. package/dist/collection/components/bs-toggle-button-group/bs-toggle-button-group.js +1 -1
  303. package/dist/collection/components/bs-toggle-button-group/bs-toggle-button-group.stories.js +33 -3
  304. package/dist/collection/components/bs-toolbar/bs-toolbar.js +1 -1
  305. package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
  306. package/dist/collection/components/bs-tooltip-trigger/bs-tooltip-trigger.js +1 -1
  307. package/dist/collection/components/bs-tree/bs-tree.js +1 -1
  308. package/dist/collection/components/bs-tree-item/bs-tree-item.js +2 -2
  309. package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.js +1 -1
  310. package/dist/collection/components/tokens/tokens.stories.js +90 -0
  311. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +2 -2
  312. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +1 -1
  313. package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +2 -2
  314. package/dist/collection/play-utils.js +24 -0
  315. package/dist/components/bs-accordion-group.js +1 -1
  316. package/dist/components/bs-ai-disclaimer.js +1 -1
  317. package/dist/components/bs-ai-greeting.js +1 -1
  318. package/dist/components/bs-ai-thinking.js +1 -1
  319. package/dist/components/bs-app-recent-item.js +1 -1
  320. package/dist/components/bs-app-shell.js +1 -1
  321. package/dist/components/bs-app-switcher.js +1 -1
  322. package/dist/components/bs-app-tile.js +1 -1
  323. package/dist/components/bs-attachment-list.js +1 -1
  324. package/dist/components/bs-attachment.js +1 -1
  325. package/dist/components/bs-avatar.js +1 -1
  326. package/dist/components/bs-breadcrumb-overflow.js +1 -1
  327. package/dist/components/bs-breadcrumbs.js +1 -1
  328. package/dist/components/bs-button-skeleton.js +1 -1
  329. package/dist/components/bs-button.js +1 -1
  330. package/dist/components/bs-carousel.js +1 -1
  331. package/dist/components/bs-chatbot-feedback.js +1 -1
  332. package/dist/components/bs-chatbot-header.js +1 -1
  333. package/dist/components/bs-chatbot-response-action.js +1 -1
  334. package/dist/components/bs-chatbot-sources-drawer.js +1 -1
  335. package/dist/components/bs-chatbot-suggestion-button.js +1 -1
  336. package/dist/components/bs-checkbox-group.js +1 -1
  337. package/dist/components/bs-checkbox-skeleton.js +1 -1
  338. package/dist/components/bs-checkbox.js +1 -1
  339. package/dist/components/bs-chip-filter.js +1 -1
  340. package/dist/components/bs-chip-informative.js +1 -1
  341. package/dist/components/bs-chip-input.js +1 -1
  342. package/dist/components/bs-citation-preview.js +1 -1
  343. package/dist/components/bs-code-block.js +1 -1
  344. package/dist/components/bs-command-palette.js +1 -1
  345. package/dist/components/bs-compact-menu-block.js +1 -1
  346. package/dist/components/bs-company-switcher.js +1 -1
  347. package/dist/components/bs-composer-status-banner.js +1 -1
  348. package/dist/components/bs-composer.js +1 -1
  349. package/dist/components/bs-container.js +1 -1
  350. package/dist/components/bs-cookie-consent.js +1 -1
  351. package/dist/components/bs-data-table.js +1 -1
  352. package/dist/components/bs-datepicker.js +1 -1
  353. package/dist/components/bs-description-item.js +1 -1
  354. package/dist/components/bs-description-list.js +1 -1
  355. package/dist/components/bs-dialog.js +1 -1
  356. package/dist/components/bs-divider.js +1 -1
  357. package/dist/components/bs-dropdown.js +1 -1
  358. package/dist/components/bs-empty-state.js +1 -1
  359. package/dist/components/bs-error-page.js +1 -1
  360. package/dist/components/bs-file-upload-item.js +1 -1
  361. package/dist/components/bs-file-upload.js +1 -1
  362. package/dist/components/bs-global-search.js +1 -1
  363. package/dist/components/bs-grid.js +1 -1
  364. package/dist/components/bs-heading.js +1 -1
  365. package/dist/components/bs-icon-button.js +1 -1
  366. package/dist/components/bs-icon-tile.js +1 -1
  367. package/dist/components/bs-icon.js +1 -1
  368. package/dist/components/bs-inline-tab.js +1 -1
  369. package/dist/components/bs-input.js +1 -1
  370. package/dist/components/bs-key-caps.js +1 -1
  371. package/dist/components/bs-key.js +1 -1
  372. package/dist/components/bs-keyboard-shortcuts.js +1 -1
  373. package/dist/components/bs-link.js +1 -1
  374. package/dist/components/bs-list-item.js +1 -1
  375. package/dist/components/bs-list.js +1 -1
  376. package/dist/components/bs-mega-menu.js +1 -1
  377. package/dist/components/bs-menu-block.js +1 -1
  378. package/dist/components/bs-menu-item.js +1 -1
  379. package/dist/components/bs-menu.js +1 -1
  380. package/dist/components/bs-message-list.js +1 -1
  381. package/dist/components/bs-message.js +1 -1
  382. package/dist/components/bs-navigation-drawer-item.js +1 -1
  383. package/dist/components/bs-navigation-drawer.js +1 -1
  384. package/dist/components/bs-navigation-header.js +1 -1
  385. package/dist/components/bs-onboarding-checklist.js +1 -1
  386. package/dist/components/bs-page-header.js +1 -1
  387. package/dist/components/bs-pagination.js +1 -1
  388. package/dist/components/bs-popover.js +1 -1
  389. package/dist/components/bs-presence.js +1 -1
  390. package/dist/components/bs-product-tour.js +1 -1
  391. package/dist/components/bs-progress-linear.js +1 -1
  392. package/dist/components/bs-progress.js +1 -1
  393. package/dist/components/bs-qr-code.js +1 -1
  394. package/dist/components/bs-radio-group.js +1 -1
  395. package/dist/components/bs-radio.js +1 -1
  396. package/dist/components/bs-ripple.js +1 -1
  397. package/dist/components/bs-search-item.js +1 -1
  398. package/dist/components/bs-select.js +1 -1
  399. package/dist/components/bs-session-timeout.js +1 -1
  400. package/dist/components/bs-shortcut-row.js +1 -1
  401. package/dist/components/bs-side-panel.js +1 -1
  402. package/dist/components/bs-skeleton.js +1 -1
  403. package/dist/components/bs-skip-link.js +1 -1
  404. package/dist/components/bs-slider.js +1 -1
  405. package/dist/components/bs-snackbar.js +1 -1
  406. package/dist/components/bs-source-link.js +1 -1
  407. package/dist/components/bs-spinner.js +1 -1
  408. package/dist/components/bs-split-pane.js +1 -1
  409. package/dist/components/bs-stack.js +1 -1
  410. package/dist/components/bs-stat.js +1 -1
  411. package/dist/components/bs-stepper-step.js +1 -1
  412. package/dist/components/bs-stepper.js +1 -1
  413. package/dist/components/bs-switch.js +1 -1
  414. package/dist/components/bs-tab.js +1 -1
  415. package/dist/components/bs-table-of-contents.js +1 -1
  416. package/dist/components/bs-tabs.js +1 -1
  417. package/dist/components/bs-tag.js +1 -1
  418. package/dist/components/bs-text.js +1 -1
  419. package/dist/components/bs-timepicker.js +1 -1
  420. package/dist/components/bs-toast.js +1 -1
  421. package/dist/components/bs-toggle-button-group.js +1 -1
  422. package/dist/components/bs-toggle-button.js +1 -1
  423. package/dist/components/bs-toolbar.js +1 -1
  424. package/dist/components/bs-tooltip-trigger.js +1 -1
  425. package/dist/components/bs-tooltip.js +1 -1
  426. package/dist/components/bs-tree-item.js +1 -1
  427. package/dist/components/bs-tree.js +1 -1
  428. package/dist/components/bs-whats-new-entry.js +1 -1
  429. package/dist/components/bs-whats-new.js +1 -1
  430. package/dist/components/{p-abyVFrPp.js → p--3dR13A5.js} +1 -1
  431. package/dist/components/{p-D4W5LcEW.js → p-5OSJi5Hq.js} +1 -1
  432. package/dist/components/{p-DHZ_DStJ.js → p-5yADpXI0.js} +1 -1
  433. package/dist/components/p-B1pqQBKC.js +1 -0
  434. package/dist/components/{p-BB1HiIxJ.js → p-B6bXreGu.js} +1 -1
  435. package/dist/components/{p-Ba8J2kHD.js → p-BDqzHL7T.js} +1 -1
  436. package/dist/components/{p-CALH_mHQ.js → p-BSaspygR.js} +1 -1
  437. package/dist/components/{p-Cz38kNDe.js → p-BYZ1TxxS.js} +1 -1
  438. package/dist/components/{p-DMp5CvEJ.js → p-BenlMTiB.js} +1 -1
  439. package/dist/components/{p-wscU7FUD.js → p-BkzRLgh4.js} +1 -1
  440. package/dist/components/{p-B81aicKA.js → p-BpD6hqIE.js} +1 -1
  441. package/dist/components/{p-CL99S8-7.js → p-Bu47NRjs.js} +1 -1
  442. package/dist/components/{p-DK1uv2fu.js → p-C4NrLy_y.js} +1 -1
  443. package/dist/components/{p-Dlp2c-Ii.js → p-CA1qkJ9m.js} +1 -1
  444. package/dist/components/{p-DO4sVZCh.js → p-CMhON6jB.js} +1 -1
  445. package/dist/components/{p-DUV80kt-.js → p-Cau06t9C.js} +1 -1
  446. package/dist/components/{p-DLNoxNuW.js → p-D9TQ0LLX.js} +1 -1
  447. package/dist/components/{p-Cso2DKAz.js → p-DJqNdSU4.js} +1 -1
  448. package/dist/components/{p-KiyJJwzr.js → p-DLGXRivO.js} +1 -1
  449. package/dist/components/{p-BLJL4BVY.js → p-DPIDWFCa.js} +1 -1
  450. package/dist/components/{p-wd9-vGpQ.js → p-DQY3n0nR.js} +1 -1
  451. package/dist/components/{p-DL9HtG41.js → p-DfYJCczy.js} +1 -1
  452. package/dist/components/{p-CxNNy2m6.js → p-DoCH1kV9.js} +1 -1
  453. package/dist/components/p-DpMqdknQ.js +1 -0
  454. package/dist/components/{p-Dt3b6VYT.js → p-Dsyt34TD.js} +1 -1
  455. package/dist/components/{p-CZfbB-t_.js → p-Dx10cRTc.js} +1 -1
  456. package/dist/components/p-EQrsaDKp.js +1 -0
  457. package/dist/components/{p-DaKBSL2O.js → p-ESiaIgGU.js} +1 -1
  458. package/dist/components/p-OhKj-S2c.js +1 -0
  459. package/dist/components/{p-DOW-YekD.js → p-TRtv6fbe.js} +1 -1
  460. package/dist/components/{p-DnagAPBF.js → p-_oStzQSx.js} +1 -1
  461. package/dist/components/{p-BR7C-aKy.js → p-bOSY8sKI.js} +1 -1
  462. package/dist/components/{p-DARbgzSz.js → p-hjzkd-La.js} +1 -1
  463. package/dist/esm/brandsync-wc.js +1 -1
  464. package/dist/esm/bs-accordion-group.entry.js +1 -1
  465. package/dist/esm/bs-ai-disclaimer.entry.js +1 -1
  466. package/dist/esm/bs-ai-greeting.entry.js +1 -1
  467. package/dist/esm/bs-ai-thinking.entry.js +1 -1
  468. package/dist/esm/bs-app-recent-item_3.entry.js +4 -4
  469. package/dist/esm/bs-app-shell.entry.js +1 -1
  470. package/dist/esm/bs-attachment-list.entry.js +1 -1
  471. package/dist/esm/bs-breadcrumbs.entry.js +1 -1
  472. package/dist/esm/bs-button-skeleton.entry.js +1 -1
  473. package/dist/esm/bs-button_2.entry.js +1 -1
  474. package/dist/esm/bs-chatbot-feedback.entry.js +1 -1
  475. package/dist/esm/bs-chatbot-header.entry.js +1 -1
  476. package/dist/esm/bs-chatbot-response-action.entry.js +1 -1
  477. package/dist/esm/bs-chatbot-sources-drawer.entry.js +1 -1
  478. package/dist/esm/bs-chatbot-suggestion-button.entry.js +1 -1
  479. package/dist/esm/bs-checkbox-group.entry.js +8 -3
  480. package/dist/esm/bs-checkbox-skeleton.entry.js +1 -1
  481. package/dist/esm/bs-chip-filter.entry.js +1 -1
  482. package/dist/esm/bs-chip-informative.entry.js +32 -3
  483. package/dist/esm/bs-chip-input.entry.js +1 -1
  484. package/dist/esm/bs-citation-preview.entry.js +1 -1
  485. package/dist/esm/bs-command-palette.entry.js +1 -1
  486. package/dist/esm/bs-compact-menu-block_2.entry.js +4 -4
  487. package/dist/esm/bs-company-switcher.entry.js +2 -2
  488. package/dist/esm/bs-composer-status-banner.entry.js +1 -1
  489. package/dist/esm/bs-composer.entry.js +1 -1
  490. package/dist/esm/bs-container.entry.js +1 -1
  491. package/dist/esm/bs-data-table.entry.js +4 -2
  492. package/dist/esm/bs-datepicker.entry.js +1 -1
  493. package/dist/esm/bs-description-item.entry.js +1 -1
  494. package/dist/esm/bs-description-list.entry.js +1 -1
  495. package/dist/esm/bs-divider.entry.js +1 -1
  496. package/dist/esm/bs-dropdown.entry.js +1 -1
  497. package/dist/esm/bs-empty-state.entry.js +1 -1
  498. package/dist/esm/bs-error-page.entry.js +1 -1
  499. package/dist/esm/bs-file-upload-item.entry.js +1 -1
  500. package/dist/esm/bs-file-upload.entry.js +1 -1
  501. package/dist/esm/bs-global-search.entry.js +2 -2
  502. package/dist/esm/bs-grid.entry.js +2 -2
  503. package/dist/esm/bs-heading.entry.js +1 -1
  504. package/dist/esm/bs-icon-button.entry.js +1 -1
  505. package/dist/esm/bs-icon-tile.entry.js +2 -2
  506. package/dist/esm/bs-icon.entry.js +1 -1
  507. package/dist/esm/bs-inline-tab.entry.js +1 -1
  508. package/dist/esm/bs-input_4.entry.js +9 -6
  509. package/dist/esm/bs-key-caps.entry.js +1 -1
  510. package/dist/esm/bs-key.entry.js +1 -1
  511. package/dist/esm/bs-keyboard-shortcuts.entry.js +2 -2
  512. package/dist/esm/bs-link.entry.js +1 -1
  513. package/dist/esm/bs-list-item.entry.js +1 -1
  514. package/dist/esm/bs-list.entry.js +1 -1
  515. package/dist/esm/bs-mega-menu.entry.js +1 -1
  516. package/dist/esm/bs-message-list.entry.js +1 -1
  517. package/dist/esm/bs-message.entry.js +1 -1
  518. package/dist/esm/bs-navigation-drawer-item.entry.js +1 -1
  519. package/dist/esm/bs-navigation-drawer.entry.js +2 -2
  520. package/dist/esm/bs-navigation-header.entry.js +2 -2
  521. package/dist/esm/bs-page-header.entry.js +1 -1
  522. package/dist/esm/bs-pagination.entry.js +1 -1
  523. package/dist/esm/bs-popover.entry.js +1 -1
  524. package/dist/esm/bs-presence.entry.js +1 -1
  525. package/dist/esm/bs-progress-linear.entry.js +2 -2
  526. package/dist/esm/bs-progress.entry.js +2 -2
  527. package/dist/esm/bs-qr-code.entry.js +1 -1
  528. package/dist/esm/bs-radio-group.entry.js +1 -1
  529. package/dist/esm/bs-radio.entry.js +1 -1
  530. package/dist/esm/bs-search-item.entry.js +1 -1
  531. package/dist/esm/bs-select.entry.js +1 -1
  532. package/dist/esm/bs-session-timeout.entry.js +1 -1
  533. package/dist/esm/bs-shortcut-row.entry.js +1 -1
  534. package/dist/esm/bs-skip-link.entry.js +1 -1
  535. package/dist/esm/bs-slider.entry.js +1 -1
  536. package/dist/esm/bs-snackbar.entry.js +1 -1
  537. package/dist/esm/bs-source-link.entry.js +3 -3
  538. package/dist/esm/bs-split-pane.entry.js +27 -2
  539. package/dist/esm/bs-stack.entry.js +1 -1
  540. package/dist/esm/bs-stat.entry.js +1 -1
  541. package/dist/esm/bs-stepper-step.entry.js +1 -1
  542. package/dist/esm/bs-stepper.entry.js +1 -1
  543. package/dist/esm/bs-switch.entry.js +1 -1
  544. package/dist/esm/bs-tab_3.entry.js +3 -3
  545. package/dist/esm/bs-table-of-contents.entry.js +1 -1
  546. package/dist/esm/bs-tag.entry.js +2 -2
  547. package/dist/esm/bs-text.entry.js +1 -1
  548. package/dist/esm/bs-timepicker.entry.js +2 -2
  549. package/dist/esm/bs-toast.entry.js +1 -1
  550. package/dist/esm/bs-toggle-button-group.entry.js +1 -1
  551. package/dist/esm/bs-toggle-button.entry.js +9 -1
  552. package/dist/esm/bs-toolbar.entry.js +1 -1
  553. package/dist/esm/bs-tooltip-trigger.entry.js +1 -1
  554. package/dist/esm/bs-tooltip.entry.js +1 -1
  555. package/dist/esm/bs-tree-item.entry.js +2 -2
  556. package/dist/esm/bs-tree.entry.js +1 -1
  557. package/dist/esm/loader.js +1 -1
  558. package/dist/types/components/bs-checkbox-group/bs-checkbox-group.d.ts +3 -1
  559. package/dist/types/components/bs-chip/bs-chip-informative/bs-chip-informative.d.ts +29 -5
  560. package/dist/types/components/bs-chip/bs-chip-informative/bs-chip-informative.stories.d.ts +2 -0
  561. package/dist/types/components/bs-data-table/bs-data-table.d.ts +2 -0
  562. package/dist/types/components/bs-input/bs-input.d.ts +3 -0
  563. package/dist/types/components/bs-progress/bs-progress.stories.d.ts +1 -0
  564. package/dist/types/components/bs-progress-linear/bs-progress-linear.stories.d.ts +1 -0
  565. package/dist/types/components/bs-split-pane/bs-split-pane.d.ts +3 -0
  566. package/dist/types/components/bs-tag/bs-tag.d.ts +4 -0
  567. package/dist/types/components/bs-toggle-button/bs-toggle-button.d.ts +1 -0
  568. package/dist/types/components/tokens/tokens.stories.d.ts +12 -0
  569. package/dist/types/components.d.ts +142 -18
  570. package/dist/types/play-utils.d.ts +6 -0
  571. package/dist/types/raw-css.d.ts +4 -0
  572. package/package.json +1 -1
  573. package/reference.d.ts +1 -1
  574. package/reference.json +6 -1
  575. package/dist/brandsync-wc/p-23affb5d.entry.js +0 -1
  576. package/dist/brandsync-wc/p-23b3958e.entry.js +0 -1
  577. package/dist/brandsync-wc/p-28723df1.entry.js +0 -1
  578. package/dist/brandsync-wc/p-32157c7a.entry.js +0 -1
  579. package/dist/brandsync-wc/p-4ae7b8b9.entry.js +0 -1
  580. package/dist/brandsync-wc/p-60636c6c.entry.js +0 -1
  581. package/dist/brandsync-wc/p-6096900b.entry.js +0 -1
  582. package/dist/brandsync-wc/p-6bdd9ef9.entry.js +0 -1
  583. package/dist/brandsync-wc/p-e4033ebc.entry.js +0 -1
  584. package/dist/components/p-B5yjDh8h.js +0 -1
  585. package/dist/components/p-C3YETziz.js +0 -1
  586. package/dist/components/p-CKTbatgt.js +0 -1
  587. package/dist/components/p-_zxYDrzi.js +0 -1
@@ -1 +1 @@
1
- import{t as e,p as t,H as o,c as s,h as n}from"./p-CcAX4o5o.js";import{d as r}from"./p-DaKBSL2O.js";const a=t(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsLike=s(this,"bsLike"),this.bsDislike=s(this,"bsDislike"),this.bsCopy=s(this,"bsCopy"),this.bsRegenerate=s(this,"bsRegenerate"),this.bsMenuOpen=s(this,"bsMenuOpen"),this.bsSourcesClick=s(this,"bsSourcesClick")}get host(){return this}sourcesCount;menuOpen=!1;liked=!1;disliked=!1;hideRegenerate=!1;likeLabel="Like";dislikeLabel="Dislike";copyLabel="Copy";regenerateLabel="Regenerate";menuLabel="More options";sourceLabel="source";sourcesLabel="sources";bsLike;bsDislike;bsCopy;bsRegenerate;bsMenuOpen;bsSourcesClick;onLikeClick=()=>{this.bsLike.emit()};onDislikeClick=()=>{this.bsDislike.emit()};onCopyClick=()=>{this.bsCopy.emit()};onRegenerateClick=()=>{this.bsRegenerate.emit()};onMenuClick=()=>{this.menuOpen=!this.menuOpen,this.bsMenuOpen.emit(this.menuOpen)};closeMenu=()=>{this.menuOpen&&(this.menuOpen=!1,this.bsMenuOpen.emit(this.menuOpen))};onDocumentClick(e){this.menuOpen&&!e.composedPath().includes(this.host)&&this.closeMenu()}onKeydown(e){this.menuOpen&&"Escape"===e.key&&this.closeMenu()}onSourcesClick=()=>{this.bsSourcesClick.emit()};render(){const e=!!this.sourcesCount&&this.sourcesCount>0;return n("div",{key:"d6ec5d7832cb89fa6a9dc97d735e6ea55a7b7241",class:"bs-chatbot-response-action"},n("button",{key:"17cbcd07677e2ab40b199dd7834c04b4570b7b8c",type:"button",part:"like",class:"bs-chatbot-response-action__button","aria-label":this.likeLabel,"aria-pressed":this.liked?"true":"false",onClick:this.onLikeClick},n("bs-ripple",{key:"4b768312fdf2bad4344958eebecddb65f4763219",part:"ripple",centered:!0}),n("slot",{key:"6c821d89ed0046629b3f5f37718235a1616af813",name:"like-icon"},n(i,{key:"3190624e18324a064cc3da5bcc86a9b13684ef4b"}))),n("button",{key:"af8bda39744ce0f66cf28b3b1e9336cc662233b3",type:"button",part:"dislike",class:"bs-chatbot-response-action__button","aria-label":this.dislikeLabel,"aria-pressed":this.disliked?"true":"false",onClick:this.onDislikeClick},n("bs-ripple",{key:"dcf47fb5f3b7106e2247e60d88f6e2ae7b4e0bfe",part:"ripple",centered:!0}),n("slot",{key:"92bd3a554dab27bfe5fb17aa216204bdb1e32b26",name:"dislike-icon"},n(c,{key:"4a4b2b1a781af704be5e3998444e24b92e45e794"}))),n("button",{key:"982758c52f1354a67a5ff57a2cb9b3f33de0d28d",type:"button",part:"copy",class:"bs-chatbot-response-action__button","aria-label":this.copyLabel,onClick:this.onCopyClick},n("bs-ripple",{key:"9fb0ea077279a7275bf77255e2fa88e644782c03",part:"ripple",centered:!0}),n("slot",{key:"1d24ad346d08c41aa02b9e3c6b9a7bbd5d7afbbf",name:"copy-icon"},n(b,{key:"87ac9fdade8339b56d6bab2c937fac4cdf7e9600"}))),!this.hideRegenerate&&n("button",{key:"bde35dbce8fe3cfc28a408c508d6774d4676d7da",type:"button",part:"regenerate",class:"bs-chatbot-response-action__button","aria-label":this.regenerateLabel,onClick:this.onRegenerateClick},n("bs-ripple",{key:"7e1bdea5844684936c18547ab5f793cb302ea5a6",part:"ripple",centered:!0}),n("slot",{key:"ec96ae7eada9da8b20f41e2e0646426e0e0bacf7",name:"regenerate-icon"},n(d,{key:"c09ef6b4e47964f56bef9f004443b7dd2e24b401"}))),n("div",{key:"7776215dc4ca739c9ea55577f2b0e8869df35000",class:"bs-chatbot-response-action__menu-wrapper"},n("button",{key:"a8fe7faa099961d9c6cf14745f72b8c5afa50e84",type:"button",part:"menu",class:"bs-chatbot-response-action__button","aria-label":this.menuLabel,"aria-haspopup":"menu","aria-expanded":this.menuOpen?"true":"false",onClick:this.onMenuClick},n("bs-ripple",{key:"109b246498589a0d1d80a0f3573f2a66f35f96d8",part:"ripple",centered:!0}),n("slot",{key:"4e9e725c8cec5bc1fa6db8608ff7fdc1d78d53b8",name:"menu-icon"},n(l,{key:"4675b0d7b17211de98336a62e04e0d0b7876d83d"}))),this.menuOpen&&n("div",{key:"cc48f0a1c834cd94f9ecc016f68b6a85138be604",class:"bs-chatbot-response-action__menu-popup"},n("slot",{key:"b9ad1bc5d4717e294ed196b50fec8ca0a340c655",name:"menu"}))),e&&n("button",{key:"c86ce3e4529f1e7c3e74ae59a0b6728ad5701190",type:"button",part:"sources",class:"bs-chatbot-response-action__sources",onClick:this.onSourcesClick},n("slot",{key:"cdd832fdc3ad9eb27103be3f4d2b08acd1141b1b",name:"sources-icon"},n(p,{key:"b82a6db98ce52e5b5e1f24f078c48734bafcaf59"})),n("span",{key:"e1b7633db592eb2ee198c56f0b4e145037b671a4",class:"bs-chatbot-response-action__sources-label"},this.sourcesCount," ",1===this.sourcesCount?this.sourceLabel:this.sourcesLabel)))}static get style(){return":host{display:block;--bs-chatbot-response-action-gap:var(--bs-spacing-100);--bs-chatbot-response-action-padding-top:var(--bs-spacing-150);--bs-chatbot-response-action-padding-bottom:var(--bs-spacing-50);--bs-chatbot-response-action-button-size:var(--bs-spacing-400);--bs-chatbot-response-action-button-radius:var(--bs-border-radius-100);--bs-chatbot-response-action-button-hover:var(--bs-color-neutral-container);--bs-chatbot-response-action-button-pressed:var(--bs-color-neutral-container-pressed);--bs-chatbot-response-action-icon:var(--bs-icon-neutral-default);--bs-chatbot-response-action-sources-gap:var(--bs-spacing-50);--bs-chatbot-response-action-sources-padding-left:var(--bs-spacing-100);--bs-chatbot-response-action-sources-padding-right:var(--bs-spacing-150);--bs-chatbot-response-action-sources-color:var(--bs-text-neutral-default);--bs-chatbot-response-action-sources-font-size:var(--bs-font-size-sm);--bs-chatbot-response-action-sources-line-height:var(--bs-line-height-body-sm)}.bs-chatbot-response-action{box-sizing:border-box;display:flex;align-items:center;gap:var(--bs-chatbot-response-action-gap);padding-top:var(--bs-chatbot-response-action-padding-top);padding-bottom:var(--bs-chatbot-response-action-padding-bottom);background:transparent;font-family:inherit}.bs-chatbot-response-action__button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;padding:0;cursor:pointer;background:transparent;color:var(--bs-chatbot-response-action-icon);font-family:inherit;border-radius:var(--bs-chatbot-response-action-button-radius);width:var(--bs-chatbot-response-action-button-size);height:var(--bs-chatbot-response-action-button-size);flex-shrink:0;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-chatbot-response-action__button:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-chatbot-response-action__button svg{width:20px;height:20px}.bs-chatbot-response-action__button:hover{background:var(--bs-chatbot-response-action-button-hover)}.bs-chatbot-response-action__button:active{background:var(--bs-chatbot-response-action-button-pressed)}.bs-chatbot-response-action__menu-wrapper{position:relative;display:inline-flex;flex-shrink:0}.bs-chatbot-response-action__menu-popup{position:absolute;top:calc(100% + var(--bs-spacing-50));inset-inline-start:0;z-index:1}.bs-chatbot-response-action__sources{display:inline-flex;align-items:center;box-sizing:border-box;border:none;cursor:pointer;background:transparent;color:var(--bs-chatbot-response-action-sources-color);font-family:inherit;font-size:var(--bs-chatbot-response-action-sources-font-size);line-height:calc(var(--bs-chatbot-response-action-sources-line-height) * 1px);gap:var(--bs-chatbot-response-action-sources-gap);border-radius:var(--bs-chatbot-response-action-button-radius);height:var(--bs-chatbot-response-action-button-size);padding-inline-start:var(--bs-chatbot-response-action-sources-padding-left);padding-inline-end:var(--bs-chatbot-response-action-sources-padding-right);flex-shrink:0;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-chatbot-response-action__sources:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-chatbot-response-action__sources svg{width:20px;height:20px;flex-shrink:0}.bs-chatbot-response-action__sources:hover{background:var(--bs-chatbot-response-action-button-hover)}.bs-chatbot-response-action__sources:active{background:var(--bs-chatbot-response-action-button-pressed)}.bs-chatbot-response-action__sources-label{white-space:nowrap}.bs-chatbot-response-action__button[aria-pressed='true']{background:var(--bs-chatbot-response-action-button-pressed)}"}},[769,"bs-chatbot-response-action",{sourcesCount:[2,"sources-count"],menuOpen:[1540,"menu-open"],liked:[516],disliked:[516],hideRegenerate:[4,"hide-regenerate"],likeLabel:[1,"like-label"],dislikeLabel:[1,"dislike-label"],copyLabel:[1,"copy-label"],regenerateLabel:[1,"regenerate-label"],menuLabel:[1,"menu-label"],sourceLabel:[1,"source-label"],sourcesLabel:[1,"sources-label"]},[[4,"click","onDocumentClick"],[4,"keydown","onKeydown"]]]),i=()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},n("path",{d:"M2.5 8.125H6.25V16.25H2.5C2.33424 16.25 2.17527 16.1842 2.05806 16.0669C1.94085 15.9497 1.875 15.7908 1.875 15.625V8.75C1.875 8.58424 1.94085 8.42527 2.05806 8.30806C2.17527 8.19085 2.33424 8.125 2.5 8.125Z",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M6.25 8.125L9.375 1.875C10.038 1.875 10.6739 2.13839 11.1428 2.60723C11.6116 3.07607 11.875 3.71196 11.875 4.375V6.25H16.875C17.0523 6.25005 17.2276 6.28782 17.3892 6.36081C17.5508 6.4338 17.695 6.54033 17.8123 6.67333C17.9295 6.80634 18.0172 6.96277 18.0693 7.13223C18.1215 7.3017 18.137 7.48033 18.1148 7.65625L17.1773 15.1562C17.1393 15.4583 16.9923 15.736 16.7641 15.9374C16.5358 16.1388 16.2419 16.2499 15.9375 16.25H6.25",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})),c=()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},n("path",{d:"M2.5 3.75H6.25V11.875H2.5C2.33424 11.875 2.17527 11.8092 2.05806 11.6919C1.94085 11.5747 1.875 11.4158 1.875 11.25V4.375C1.875 4.20924 1.94085 4.05027 2.05806 3.93306C2.17527 3.81585 2.33424 3.75 2.5 3.75Z",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M6.25 11.875L9.375 18.125C10.038 18.125 10.6739 17.8616 11.1428 17.3928C11.6116 16.9239 11.875 16.288 11.875 15.625V13.75H16.875C17.0523 13.75 17.2276 13.7122 17.3892 13.6392C17.5508 13.5662 17.695 13.4597 17.8123 13.3267C17.9295 13.1937 18.0172 13.0372 18.0693 12.8678C18.1215 12.6983 18.137 12.5197 18.1148 12.3438L17.1773 4.84375C17.1393 4.54174 16.9923 4.26399 16.7641 4.06262C16.5358 3.86124 16.2419 3.75009 15.9375 3.75H6.25",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})),b=()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},n("path",{d:"M13.125 13.125H16.875V3.125H6.875V6.875",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M13.125 6.875H3.125V16.875H13.125V6.875Z",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})),d=()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},n("path",{d:"M13.125 7.5H16.875V3.75",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M16.875 7.5L14.6656 5.29063C13.3861 4.01117 11.6538 3.28772 9.84437 3.27719C8.03494 3.26666 6.29431 3.9699 5 5.23438",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M6.875 12.5H3.125V16.25",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M3.125 12.5L5.33437 14.7094C6.61388 15.9888 8.34621 16.7123 10.1556 16.7228C11.9651 16.7333 13.7057 16.0301 15 14.7656",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})),l=()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},n("path",{d:"M10 9.11426C10.489 9.11426 10.8857 9.511 10.8857 10C10.8857 10.489 10.489 10.8857 10 10.8857C9.511 10.8857 9.11426 10.489 9.11426 10C9.11426 9.511 9.511 9.11426 10 9.11426Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.104167"}),n("path",{d:"M10 3.80176C10.489 3.80176 10.8857 4.1985 10.8857 4.6875C10.8857 5.1765 10.489 5.57324 10 5.57324C9.511 5.57324 9.11426 5.1765 9.11426 4.6875C9.11426 4.1985 9.511 3.80176 10 3.80176Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.104167"}),n("path",{d:"M10 16.25C10.5178 16.25 10.9375 15.8303 10.9375 15.3125C10.9375 14.7947 10.5178 14.375 10 14.375C9.48223 14.375 9.0625 14.7947 9.0625 15.3125C9.0625 15.8303 9.48223 16.25 10 16.25Z",fill:"currentColor"})),p=()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},n("path",{d:"M13.125 17.5H4.375C4.20924 17.5 4.05027 17.4342 3.93306 17.3169C3.81585 17.1997 3.75 17.0408 3.75 16.875V5.625C3.75 5.45924 3.81585 5.30027 3.93306 5.18306C4.05027 5.06585 4.20924 5 4.375 5H10.625L13.75 8.125V16.875C13.75 17.0408 13.6842 17.1997 13.5669 17.3169C13.4497 17.4342 13.2908 17.5 13.125 17.5Z",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M6.25 5V3.125C6.25 2.95924 6.31585 2.80027 6.43306 2.68306C6.55027 2.56585 6.70924 2.5 6.875 2.5H13.125L16.25 5.625V14.375C16.25 14.5408 16.1842 14.6997 16.0669 14.8169C15.9497 14.9342 15.7908 15 15.625 15H13.75",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M6.875 11.875H10.625",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M6.875 14.375H10.625",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}));function u(){"undefined"!=typeof customElements&&["bs-chatbot-response-action","bs-ripple"].forEach((t=>{switch(t){case"bs-chatbot-response-action":customElements.get(e(t))||customElements.define(e(t),a);break;case"bs-ripple":customElements.get(e(t))||r()}}))}u();const h=a,k=u;export{h as BsChatbotResponseAction,k as defineCustomElement}
1
+ import{t as e,p as t,H as o,c as s,h as n}from"./p-CcAX4o5o.js";import{d as a}from"./p-ESiaIgGU.js";const r=t(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsLike=s(this,"bsLike"),this.bsDislike=s(this,"bsDislike"),this.bsCopy=s(this,"bsCopy"),this.bsRegenerate=s(this,"bsRegenerate"),this.bsMenuOpen=s(this,"bsMenuOpen"),this.bsSourcesClick=s(this,"bsSourcesClick")}get host(){return this}sourcesCount;menuOpen=!1;liked=!1;disliked=!1;hideRegenerate=!1;likeLabel="Like";dislikeLabel="Dislike";copyLabel="Copy";regenerateLabel="Regenerate";menuLabel="More options";sourceLabel="source";sourcesLabel="sources";bsLike;bsDislike;bsCopy;bsRegenerate;bsMenuOpen;bsSourcesClick;onLikeClick=()=>{this.bsLike.emit()};onDislikeClick=()=>{this.bsDislike.emit()};onCopyClick=()=>{this.bsCopy.emit()};onRegenerateClick=()=>{this.bsRegenerate.emit()};onMenuClick=()=>{this.menuOpen=!this.menuOpen,this.bsMenuOpen.emit(this.menuOpen)};closeMenu=()=>{this.menuOpen&&(this.menuOpen=!1,this.bsMenuOpen.emit(this.menuOpen))};onDocumentClick(e){this.menuOpen&&!e.composedPath().includes(this.host)&&this.closeMenu()}onKeydown(e){this.menuOpen&&"Escape"===e.key&&this.closeMenu()}onSourcesClick=()=>{this.bsSourcesClick.emit()};render(){const e=!!this.sourcesCount&&this.sourcesCount>0;return n("div",{key:"e1dceaea05bf062b9101af3b600ed955b7860d7c",class:"bs-chatbot-response-action"},n("button",{key:"594369fb42987cf942753163eca978e9d32d1a77",type:"button",part:"like",class:"bs-chatbot-response-action__button","aria-label":this.likeLabel,"aria-pressed":this.liked?"true":"false",onClick:this.onLikeClick},n("bs-ripple",{key:"7a422b5e9366b093625229b0b2aced735afab6df",part:"ripple",centered:!0}),n("slot",{key:"ef5e89558e39cacb97f33ea438dbea7acefa159d",name:"like-icon"},n(i,{key:"6b8a2b12c735424502382edb51a39217ac150514"}))),n("button",{key:"bd5697f0ac6f06c2cde2e7884cecd5d7e37126bb",type:"button",part:"dislike",class:"bs-chatbot-response-action__button","aria-label":this.dislikeLabel,"aria-pressed":this.disliked?"true":"false",onClick:this.onDislikeClick},n("bs-ripple",{key:"3a8c25ace69423516c47e4888b287a230f6cf959",part:"ripple",centered:!0}),n("slot",{key:"47c944affbe8e835a2935d09379a8bba1d40676b",name:"dislike-icon"},n(c,{key:"7b4ea0aa2939e7c2279f1be9436bb23662895741"}))),n("button",{key:"228e47271ca3d2c29f98a624fb9aac5fa7aa5c73",type:"button",part:"copy",class:"bs-chatbot-response-action__button","aria-label":this.copyLabel,onClick:this.onCopyClick},n("bs-ripple",{key:"976a7aa72b6aa7381cdfb3d2b57c8102b02f82eb",part:"ripple",centered:!0}),n("slot",{key:"da9e6cd712ada2119b7e7fce17a6e16e8fa58e69",name:"copy-icon"},n(b,{key:"f1d5ab12239750a0b07584b33ee5b2a649d05631"}))),!this.hideRegenerate&&n("button",{key:"334a46a5b574f72d82f9f530143cd0046c7a280c",type:"button",part:"regenerate",class:"bs-chatbot-response-action__button","aria-label":this.regenerateLabel,onClick:this.onRegenerateClick},n("bs-ripple",{key:"5660a8e6eb4fcb8360542eb5723cb5bb51c76c7d",part:"ripple",centered:!0}),n("slot",{key:"4a67443d0d1153d5175586387b6322ad72032781",name:"regenerate-icon"},n(d,{key:"9b8fb478f8072ccb2e611b89050a3d6254fb2587"}))),n("div",{key:"5be42f79158e217347b7700d41b2e80647058d06",class:"bs-chatbot-response-action__menu-wrapper"},n("button",{key:"95e09e53f83546c24b244ccfbdf160dd70a18a72",type:"button",part:"menu",class:"bs-chatbot-response-action__button","aria-label":this.menuLabel,"aria-haspopup":"menu","aria-expanded":this.menuOpen?"true":"false",onClick:this.onMenuClick},n("bs-ripple",{key:"34195f1ac957ce1bf4d524b833c95682795e7738",part:"ripple",centered:!0}),n("slot",{key:"a725a6b2ed797afd8a25ce6a6e77f76ea1c55642",name:"menu-icon"},n(l,{key:"36cab1a3ea55eca56cf1f68c9d7575d3c0474699"}))),this.menuOpen&&n("div",{key:"f8ce2de8a6678b249be9dda14e8d9309729addf2",class:"bs-chatbot-response-action__menu-popup"},n("slot",{key:"5832b33e625da7c4497d5ab7f915ac66cb1cd5b2",name:"menu"}))),e&&n("button",{key:"07f4fc5cefb1009925fc8aa09657249d9b36ad73",type:"button",part:"sources",class:"bs-chatbot-response-action__sources",onClick:this.onSourcesClick},n("slot",{key:"66e6551c5bee14482bd30dfd859ecb7fbcf591f5",name:"sources-icon"},n(p,{key:"11d2d3cfc3ec03c1093066cbd711167e80edca5e"})),n("span",{key:"7f274379a117a1bccce9c6df3de960420d3216d1",class:"bs-chatbot-response-action__sources-label"},this.sourcesCount," ",1===this.sourcesCount?this.sourceLabel:this.sourcesLabel)))}static get style(){return":host{display:block;--bs-chatbot-response-action-gap:var(--bs-spacing-100);--bs-chatbot-response-action-padding-top:var(--bs-spacing-150);--bs-chatbot-response-action-padding-bottom:var(--bs-spacing-50);--bs-chatbot-response-action-button-size:var(--bs-spacing-400);--bs-chatbot-response-action-button-radius:var(--bs-border-radius-100);--bs-chatbot-response-action-button-hover:var(--bs-color-neutral-container);--bs-chatbot-response-action-button-pressed:var(--bs-color-neutral-container-pressed);--bs-chatbot-response-action-icon:var(--bs-icon-neutral-default);--bs-chatbot-response-action-sources-gap:var(--bs-spacing-50);--bs-chatbot-response-action-sources-padding-left:var(--bs-spacing-100);--bs-chatbot-response-action-sources-padding-right:var(--bs-spacing-150);--bs-chatbot-response-action-sources-color:var(--bs-text-neutral-default);--bs-chatbot-response-action-sources-font-size:var(--bs-font-size-sm);--bs-chatbot-response-action-sources-line-height:var(--bs-line-height-body-sm)}.bs-chatbot-response-action{box-sizing:border-box;display:flex;align-items:center;gap:var(--bs-chatbot-response-action-gap);padding-top:var(--bs-chatbot-response-action-padding-top);padding-bottom:var(--bs-chatbot-response-action-padding-bottom);background:transparent;font-family:inherit}.bs-chatbot-response-action__button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;padding:0;cursor:pointer;background:transparent;color:var(--bs-chatbot-response-action-icon);font-family:inherit;border-radius:var(--bs-chatbot-response-action-button-radius);width:var(--bs-chatbot-response-action-button-size);height:var(--bs-chatbot-response-action-button-size);flex-shrink:0;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-chatbot-response-action__button:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-chatbot-response-action__button svg{width:20px;height:20px}.bs-chatbot-response-action__button:hover{background:var(--bs-chatbot-response-action-button-hover)}.bs-chatbot-response-action__button:active{background:var(--bs-chatbot-response-action-button-pressed)}.bs-chatbot-response-action__menu-wrapper{position:relative;display:inline-flex;flex-shrink:0}.bs-chatbot-response-action__menu-popup{position:absolute;top:calc(100% + var(--bs-spacing-50));inset-inline-start:0;z-index:1}.bs-chatbot-response-action__sources{display:inline-flex;align-items:center;box-sizing:border-box;border:none;cursor:pointer;background:transparent;color:var(--bs-chatbot-response-action-sources-color);font-family:inherit;font-size:var(--bs-chatbot-response-action-sources-font-size);line-height:calc(var(--bs-chatbot-response-action-sources-line-height) * 1px);gap:var(--bs-chatbot-response-action-sources-gap);border-radius:var(--bs-chatbot-response-action-button-radius);height:var(--bs-chatbot-response-action-button-size);padding-inline-start:var(--bs-chatbot-response-action-sources-padding-left);padding-inline-end:var(--bs-chatbot-response-action-sources-padding-right);flex-shrink:0;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-chatbot-response-action__sources:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-chatbot-response-action__sources svg{width:20px;height:20px;flex-shrink:0}.bs-chatbot-response-action__sources:hover{background:var(--bs-chatbot-response-action-button-hover)}.bs-chatbot-response-action__sources:active{background:var(--bs-chatbot-response-action-button-pressed)}.bs-chatbot-response-action__sources-label{white-space:nowrap}.bs-chatbot-response-action__button[aria-pressed='true']{background:var(--bs-chatbot-response-action-button-pressed)}"}},[769,"bs-chatbot-response-action",{sourcesCount:[2,"sources-count"],menuOpen:[1540,"menu-open"],liked:[516],disliked:[516],hideRegenerate:[4,"hide-regenerate"],likeLabel:[1,"like-label"],dislikeLabel:[1,"dislike-label"],copyLabel:[1,"copy-label"],regenerateLabel:[1,"regenerate-label"],menuLabel:[1,"menu-label"],sourceLabel:[1,"source-label"],sourcesLabel:[1,"sources-label"]},[[4,"click","onDocumentClick"],[4,"keydown","onKeydown"]]]),i=()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},n("path",{d:"M2.5 8.125H6.25V16.25H2.5C2.33424 16.25 2.17527 16.1842 2.05806 16.0669C1.94085 15.9497 1.875 15.7908 1.875 15.625V8.75C1.875 8.58424 1.94085 8.42527 2.05806 8.30806C2.17527 8.19085 2.33424 8.125 2.5 8.125Z",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M6.25 8.125L9.375 1.875C10.038 1.875 10.6739 2.13839 11.1428 2.60723C11.6116 3.07607 11.875 3.71196 11.875 4.375V6.25H16.875C17.0523 6.25005 17.2276 6.28782 17.3892 6.36081C17.5508 6.4338 17.695 6.54033 17.8123 6.67333C17.9295 6.80634 18.0172 6.96277 18.0693 7.13223C18.1215 7.3017 18.137 7.48033 18.1148 7.65625L17.1773 15.1562C17.1393 15.4583 16.9923 15.736 16.7641 15.9374C16.5358 16.1388 16.2419 16.2499 15.9375 16.25H6.25",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})),c=()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},n("path",{d:"M2.5 3.75H6.25V11.875H2.5C2.33424 11.875 2.17527 11.8092 2.05806 11.6919C1.94085 11.5747 1.875 11.4158 1.875 11.25V4.375C1.875 4.20924 1.94085 4.05027 2.05806 3.93306C2.17527 3.81585 2.33424 3.75 2.5 3.75Z",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M6.25 11.875L9.375 18.125C10.038 18.125 10.6739 17.8616 11.1428 17.3928C11.6116 16.9239 11.875 16.288 11.875 15.625V13.75H16.875C17.0523 13.75 17.2276 13.7122 17.3892 13.6392C17.5508 13.5662 17.695 13.4597 17.8123 13.3267C17.9295 13.1937 18.0172 13.0372 18.0693 12.8678C18.1215 12.6983 18.137 12.5197 18.1148 12.3438L17.1773 4.84375C17.1393 4.54174 16.9923 4.26399 16.7641 4.06262C16.5358 3.86124 16.2419 3.75009 15.9375 3.75H6.25",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})),b=()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},n("path",{d:"M13.125 13.125H16.875V3.125H6.875V6.875",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M13.125 6.875H3.125V16.875H13.125V6.875Z",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})),d=()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},n("path",{d:"M13.125 7.5H16.875V3.75",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M16.875 7.5L14.6656 5.29063C13.3861 4.01117 11.6538 3.28772 9.84437 3.27719C8.03494 3.26666 6.29431 3.9699 5 5.23438",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M6.875 12.5H3.125V16.25",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M3.125 12.5L5.33437 14.7094C6.61388 15.9888 8.34621 16.7123 10.1556 16.7228C11.9651 16.7333 13.7057 16.0301 15 14.7656",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})),l=()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},n("path",{d:"M10 9.11426C10.489 9.11426 10.8857 9.511 10.8857 10C10.8857 10.489 10.489 10.8857 10 10.8857C9.511 10.8857 9.11426 10.489 9.11426 10C9.11426 9.511 9.511 9.11426 10 9.11426Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.104167"}),n("path",{d:"M10 3.80176C10.489 3.80176 10.8857 4.1985 10.8857 4.6875C10.8857 5.1765 10.489 5.57324 10 5.57324C9.511 5.57324 9.11426 5.1765 9.11426 4.6875C9.11426 4.1985 9.511 3.80176 10 3.80176Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.104167"}),n("path",{d:"M10 16.25C10.5178 16.25 10.9375 15.8303 10.9375 15.3125C10.9375 14.7947 10.5178 14.375 10 14.375C9.48223 14.375 9.0625 14.7947 9.0625 15.3125C9.0625 15.8303 9.48223 16.25 10 16.25Z",fill:"currentColor"})),p=()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},n("path",{d:"M13.125 17.5H4.375C4.20924 17.5 4.05027 17.4342 3.93306 17.3169C3.81585 17.1997 3.75 17.0408 3.75 16.875V5.625C3.75 5.45924 3.81585 5.30027 3.93306 5.18306C4.05027 5.06585 4.20924 5 4.375 5H10.625L13.75 8.125V16.875C13.75 17.0408 13.6842 17.1997 13.5669 17.3169C13.4497 17.4342 13.2908 17.5 13.125 17.5Z",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M6.25 5V3.125C6.25 2.95924 6.31585 2.80027 6.43306 2.68306C6.55027 2.56585 6.70924 2.5 6.875 2.5H13.125L16.25 5.625V14.375C16.25 14.5408 16.1842 14.6997 16.0669 14.8169C15.9497 14.9342 15.7908 15 15.625 15H13.75",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M6.875 11.875H10.625",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M6.875 14.375H10.625",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}));function u(){"undefined"!=typeof customElements&&["bs-chatbot-response-action","bs-ripple"].forEach((t=>{switch(t){case"bs-chatbot-response-action":customElements.get(e(t))||customElements.define(e(t),r);break;case"bs-ripple":customElements.get(e(t))||a()}}))}u();const h=r,k=u;export{h as BsChatbotResponseAction,k as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as s,H as a,c as r,h as o}from"./p-CcAX4o5o.js";const t=s(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsCollapse=r(this,"bsCollapse")}get el(){return this}heading="Sources";collapseLabel="Collapse sources";count;bsCollapse;slottedCount=0;onSlotchange=e=>{this.slottedCount=e.target.assignedElements().filter((e=>"bs-source-link"===e.tagName.toLowerCase())).length};onCollapseClick=()=>{this.bsCollapse.emit()};render(){const e=this.count??this.slottedCount;return o("div",{key:"1d0c3253af7cf38b81b36ac15a78033c03e14c91",class:"bs-chatbot-sources-drawer",role:"region","aria-label":this.heading},o("div",{key:"d5eb2089574325eb8540a98d0603368e46b8c73d",class:"bs-chatbot-sources-drawer__header"},o("div",{key:"1fb338f2a8c1f868daef29625eb7bfc2ffb3ce0e",class:"bs-chatbot-sources-drawer__title-group"},o("h2",{key:"6c4ab9c5de55e70cfe9c163d454cfa419bc83ea8",part:"heading",class:"bs-chatbot-sources-drawer__heading"},this.heading),e>0&&o("span",{key:"fe7a147f6f7148f7c1252a93cd56060dc38b3eb2",part:"count",class:"bs-chatbot-sources-drawer__count"},e)),o("button",{key:"fe09c59453243448e8c48ed6e451b5e49c3608d3",type:"button",part:"collapse",class:"bs-chatbot-sources-drawer__collapse","aria-label":this.collapseLabel,onClick:this.onCollapseClick},o("slot",{key:"da8e67e324afb7eb6dc75d160ba3a6c447c33354",name:"collapse-icon"},o(c,{key:"c079b91874239e6bdaea1cdeb65d7ccf70de90cd"})))),o("div",{key:"f9098edd11a91137bb55deab94ab0b999e530cac",part:"list",class:"bs-chatbot-sources-drawer__list"},o("slot",{key:"e0c95d42eef55be86cee88f850556f2a4c712fcd",onSlotchange:this.onSlotchange})))}static get style(){return":host{display:block;--bs-chatbot-sources-drawer-bg:var(--bs-surface-raised);--bs-chatbot-sources-drawer-header-shadow:var(--bs-shadow-xs);--bs-chatbot-sources-drawer-header-padding-x:var(--bs-spacing-200);--bs-chatbot-sources-drawer-header-padding-top:var(--bs-spacing-150);--bs-chatbot-sources-drawer-header-padding-bottom:var(--bs-spacing-100);--bs-chatbot-sources-drawer-heading-color:var(--bs-text-default);--bs-chatbot-sources-drawer-count-bg:var(--bs-badge-bg-neutral-container);--bs-chatbot-sources-drawer-count-color:var(--bs-badge-text-neutral);--bs-chatbot-sources-drawer-collapse-hover:var(--bs-surface-hover);--bs-chatbot-sources-drawer-section-gap:var(--bs-spacing-200);--bs-chatbot-sources-drawer-list-padding:var(--bs-spacing-200);--bs-chatbot-sources-drawer-list-gap:var(--bs-spacing-50)}.bs-chatbot-sources-drawer{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-chatbot-sources-drawer-section-gap);width:100%;height:100%;background:var(--bs-chatbot-sources-drawer-bg);font-family:inherit}.bs-chatbot-sources-drawer__header{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;padding:var(--bs-chatbot-sources-drawer-header-padding-top) var(--bs-chatbot-sources-drawer-header-padding-x) var(--bs-chatbot-sources-drawer-header-padding-bottom);box-shadow:var(--bs-chatbot-sources-drawer-header-shadow)}.bs-chatbot-sources-drawer__title-group{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-chatbot-sources-drawer__heading{margin:0;color:var(--bs-chatbot-sources-drawer-heading-color);font-size:var(--bs-font-size-2xl);font-weight:var(--bs-font-weight-bold);line-height:calc(var(--bs-line-height-heading-h4) * 1px)}.bs-chatbot-sources-drawer__count{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:16px;max-width:34px;padding:var(--bs-spacing-50) var(--bs-spacing-100);background:var(--bs-chatbot-sources-drawer-count-bg);border-radius:var(--bs-border-radius-50);color:var(--bs-chatbot-sources-drawer-count-color);font-size:var(--bs-font-size-xs);line-height:calc(var(--bs-line-height-caption-sm) * 1px)}.bs-chatbot-sources-drawer__collapse{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:none;border:none;border-radius:var(--bs-border-radius-100);color:var(--bs-icon-default);cursor:pointer}.bs-chatbot-sources-drawer__collapse:hover{background:var(--bs-chatbot-sources-drawer-collapse-hover)}.bs-chatbot-sources-drawer__collapse:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:1px}.bs-chatbot-sources-drawer__list{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-chatbot-sources-drawer-list-gap);padding:0 var(--bs-chatbot-sources-drawer-list-padding) var(--bs-chatbot-sources-drawer-list-padding);overflow-y:auto}"}},[769,"bs-chatbot-sources-drawer",{heading:[1],collapseLabel:[1,"collapse-label"],count:[2],slottedCount:[32]}]),c=()=>o("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},o("path",{d:"M7.5 4.375L13.125 10L7.5 15.625",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}));function b(){"undefined"!=typeof customElements&&["bs-chatbot-sources-drawer"].forEach((s=>{"bs-chatbot-sources-drawer"===s&&(customElements.get(e(s))||customElements.define(e(s),t))}))}b();const d=t,i=b;export{d as BsChatbotSourcesDrawer,i as defineCustomElement}
1
+ import{t as e,p as s,H as a,c as r,h as o}from"./p-CcAX4o5o.js";const t=s(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsCollapse=r(this,"bsCollapse")}get el(){return this}heading="Sources";collapseLabel="Collapse sources";count;bsCollapse;slottedCount=0;onSlotchange=e=>{this.slottedCount=e.target.assignedElements().filter((e=>"bs-source-link"===e.tagName.toLowerCase())).length};onCollapseClick=()=>{this.bsCollapse.emit()};render(){const e=this.count??this.slottedCount;return o("div",{key:"e5cd2f50245abdf4d9a05348ba915dba9bc79573",class:"bs-chatbot-sources-drawer",role:"region","aria-label":this.heading},o("div",{key:"997a59d151f334fc6a1a8e30411f8674b1a8534f",class:"bs-chatbot-sources-drawer__header"},o("div",{key:"c72b346306dbfcd72dfcdfc3022fc048ccea6d83",class:"bs-chatbot-sources-drawer__title-group"},o("h2",{key:"8c1c858fefd2e4d12a7a7f3e442866b1f3848e4f",part:"heading",class:"bs-chatbot-sources-drawer__heading"},this.heading),e>0&&o("span",{key:"fca19f5498634aff0f7bec44e187ea6dde558c3d",part:"count",class:"bs-chatbot-sources-drawer__count"},e)),o("button",{key:"219bf542af1c6ccd16e5b2b28e68ac161c8f870a",type:"button",part:"collapse",class:"bs-chatbot-sources-drawer__collapse","aria-label":this.collapseLabel,onClick:this.onCollapseClick},o("slot",{key:"599f9de30d93f624751a6b8c69df4554fb38acea",name:"collapse-icon"},o(c,{key:"43da27fe3aa229fd3fe9d1c2725c28258e586c18"})))),o("div",{key:"76eabacbe8380a57189787180a15e7c414a280ec",part:"list",class:"bs-chatbot-sources-drawer__list"},o("slot",{key:"7cd661e7884bca5677ec69bf21a9f414808a44ac",onSlotchange:this.onSlotchange})))}static get style(){return":host{display:block;--bs-chatbot-sources-drawer-bg:var(--bs-surface-raised);--bs-chatbot-sources-drawer-header-shadow:var(--bs-shadow-xs);--bs-chatbot-sources-drawer-header-padding-x:var(--bs-spacing-200);--bs-chatbot-sources-drawer-header-padding-top:var(--bs-spacing-150);--bs-chatbot-sources-drawer-header-padding-bottom:var(--bs-spacing-100);--bs-chatbot-sources-drawer-heading-color:var(--bs-text-default);--bs-chatbot-sources-drawer-count-bg:var(--bs-badge-bg-neutral-container);--bs-chatbot-sources-drawer-count-color:var(--bs-badge-text-neutral);--bs-chatbot-sources-drawer-collapse-hover:var(--bs-surface-hover);--bs-chatbot-sources-drawer-section-gap:var(--bs-spacing-200);--bs-chatbot-sources-drawer-list-padding:var(--bs-spacing-200);--bs-chatbot-sources-drawer-list-gap:var(--bs-spacing-50)}.bs-chatbot-sources-drawer{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-chatbot-sources-drawer-section-gap);width:100%;height:100%;background:var(--bs-chatbot-sources-drawer-bg);font-family:inherit}.bs-chatbot-sources-drawer__header{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;padding:var(--bs-chatbot-sources-drawer-header-padding-top) var(--bs-chatbot-sources-drawer-header-padding-x) var(--bs-chatbot-sources-drawer-header-padding-bottom);box-shadow:var(--bs-chatbot-sources-drawer-header-shadow)}.bs-chatbot-sources-drawer__title-group{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-chatbot-sources-drawer__heading{margin:0;color:var(--bs-chatbot-sources-drawer-heading-color);font-size:var(--bs-font-size-2xl);font-weight:var(--bs-font-weight-bold);line-height:calc(var(--bs-line-height-heading-h4) * 1px)}.bs-chatbot-sources-drawer__count{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:16px;max-width:34px;padding:var(--bs-spacing-50) var(--bs-spacing-100);background:var(--bs-chatbot-sources-drawer-count-bg);border-radius:var(--bs-border-radius-50);color:var(--bs-chatbot-sources-drawer-count-color);font-size:var(--bs-font-size-xs);line-height:calc(var(--bs-line-height-caption-sm) * 1px)}.bs-chatbot-sources-drawer__collapse{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:none;border:none;border-radius:var(--bs-border-radius-100);color:var(--bs-icon-default);cursor:pointer}.bs-chatbot-sources-drawer__collapse:hover{background:var(--bs-chatbot-sources-drawer-collapse-hover)}.bs-chatbot-sources-drawer__collapse:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:1px}.bs-chatbot-sources-drawer__list{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-chatbot-sources-drawer-list-gap);padding:0 var(--bs-chatbot-sources-drawer-list-padding) var(--bs-chatbot-sources-drawer-list-padding);overflow-y:auto}"}},[769,"bs-chatbot-sources-drawer",{heading:[1],collapseLabel:[1,"collapse-label"],count:[2],slottedCount:[32]}]),c=()=>o("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},o("path",{d:"M7.5 4.375L13.125 10L7.5 15.625",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}));function b(){"undefined"!=typeof customElements&&["bs-chatbot-sources-drawer"].forEach((s=>{"bs-chatbot-sources-drawer"===s&&(customElements.get(e(s))||customElements.define(e(s),t))}))}b();const d=t,i=b;export{d as BsChatbotSourcesDrawer,i as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as o,H as s,c as b,h as e}from"./p-CcAX4o5o.js";import{d as r}from"./p-DaKBSL2O.js";const a=o(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.bsSelect=b(this,"bsSelect")}disabled=!1;bsSelect;onClick=()=>{this.bsSelect.emit()};render(){return e("button",{key:"5dec9f6d82254f0cac7ec92734ed199ffe22e421",type:"button",part:"button",class:"bs-chatbot-suggestion-button",disabled:this.disabled,onClick:this.onClick},e("bs-ripple",{key:"b4c464e7c9cbdb988f503babd2cb99f27e80b62f",part:"ripple",centered:!1,disabled:this.disabled}),e("slot",{key:"73b0f23768b8ff67035d4dee7352eeff1bdde7c6"}))}static get style(){return":host{display:inline-block;--bs-chatbot-suggestion-button-radius:var(--bs-border-radius-full);--bs-chatbot-suggestion-button-border-color:var(--bs-border-primary);--bs-chatbot-suggestion-button-bg-default:var(--bs-color-primary-container);--bs-chatbot-suggestion-button-bg-hover:var(--bs-color-primary-container-hover);--bs-chatbot-suggestion-button-bg-pressed:var(--bs-color-primary-container-pressed);--bs-chatbot-suggestion-button-bg-focus:var(--bs-color-primary-container-hover);--bs-chatbot-suggestion-button-text-default:var(--bs-text-action);--bs-chatbot-suggestion-button-text-hover:var(--bs-text-action-hover);--bs-chatbot-suggestion-button-bg-disabled:var(--bs-surface-action-disabled);--bs-chatbot-suggestion-button-text-disabled:var(--bs-text-on-disabled);--bs-chatbot-suggestion-button-border-color-disabled:var(--bs-border-neutral-disabled);--bs-chatbot-suggestion-button-focus-ring-color:var(--bs-border-primary-focus)}.bs-chatbot-suggestion-button{position:relative;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:40px;min-width:80px;padding:var(--bs-spacing-100) var(--bs-spacing-200);border:var(--bs-border-width-thin) solid var(--bs-chatbot-suggestion-button-border-color);border-radius:var(--bs-chatbot-suggestion-button-radius);background:var(--bs-chatbot-suggestion-button-bg-default);color:var(--bs-chatbot-suggestion-button-text-default);font-family:inherit;font-size:var(--bs-font-size-md);line-height:calc(var(--bs-line-height-body-md) * 1px);text-align:center;cursor:pointer;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-chatbot-suggestion-button:hover:not(:disabled){background:var(--bs-chatbot-suggestion-button-bg-hover);color:var(--bs-chatbot-suggestion-button-text-hover)}.bs-chatbot-suggestion-button:active:not(:disabled){background:var(--bs-chatbot-suggestion-button-bg-pressed);color:var(--bs-chatbot-suggestion-button-text-hover)}.bs-chatbot-suggestion-button:focus-visible:not(:disabled){background:var(--bs-chatbot-suggestion-button-bg-focus);color:var(--bs-chatbot-suggestion-button-text-hover);outline:var(--bs-border-width-medium) solid var(--bs-chatbot-suggestion-button-focus-ring-color);outline-offset:3px}.bs-chatbot-suggestion-button:disabled{background:var(--bs-chatbot-suggestion-button-bg-disabled);color:var(--bs-chatbot-suggestion-button-text-disabled);border-color:var(--bs-chatbot-suggestion-button-border-color-disabled);cursor:not-allowed}"}},[769,"bs-chatbot-suggestion-button",{disabled:[4]}]);function n(){"undefined"!=typeof customElements&&["bs-chatbot-suggestion-button","bs-ripple"].forEach((o=>{switch(o){case"bs-chatbot-suggestion-button":customElements.get(t(o))||customElements.define(t(o),a);break;case"bs-ripple":customElements.get(t(o))||r()}}))}n();const i=a,c=n;export{i as BsChatbotSuggestionButton,c as defineCustomElement}
1
+ import{t,p as o,H as s,c as b,h as e}from"./p-CcAX4o5o.js";import{d as r}from"./p-ESiaIgGU.js";const a=o(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.bsSelect=b(this,"bsSelect")}disabled=!1;bsSelect;onClick=()=>{this.bsSelect.emit()};render(){return e("button",{key:"7e2eec8f12239cc5038740f7bc4d98cb40f4b4e5",type:"button",part:"button",class:"bs-chatbot-suggestion-button",disabled:this.disabled,onClick:this.onClick},e("bs-ripple",{key:"59e94b073e82320148196c6ea526db559e55e8cb",part:"ripple",centered:!1,disabled:this.disabled}),e("slot",{key:"b137e2270b7da3437a6c16d5b34b968fb325b46c"}))}static get style(){return":host{display:inline-block;--bs-chatbot-suggestion-button-radius:var(--bs-border-radius-full);--bs-chatbot-suggestion-button-border-color:var(--bs-border-primary);--bs-chatbot-suggestion-button-bg-default:var(--bs-color-primary-container);--bs-chatbot-suggestion-button-bg-hover:var(--bs-color-primary-container-hover);--bs-chatbot-suggestion-button-bg-pressed:var(--bs-color-primary-container-pressed);--bs-chatbot-suggestion-button-bg-focus:var(--bs-color-primary-container-hover);--bs-chatbot-suggestion-button-text-default:var(--bs-text-action);--bs-chatbot-suggestion-button-text-hover:var(--bs-text-action-hover);--bs-chatbot-suggestion-button-bg-disabled:var(--bs-surface-action-disabled);--bs-chatbot-suggestion-button-text-disabled:var(--bs-text-on-disabled);--bs-chatbot-suggestion-button-border-color-disabled:var(--bs-border-neutral-disabled);--bs-chatbot-suggestion-button-focus-ring-color:var(--bs-border-primary-focus)}.bs-chatbot-suggestion-button{position:relative;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:40px;min-width:80px;padding:var(--bs-spacing-100) var(--bs-spacing-200);border:var(--bs-border-width-thin) solid var(--bs-chatbot-suggestion-button-border-color);border-radius:var(--bs-chatbot-suggestion-button-radius);background:var(--bs-chatbot-suggestion-button-bg-default);color:var(--bs-chatbot-suggestion-button-text-default);font-family:inherit;font-size:var(--bs-font-size-md);line-height:calc(var(--bs-line-height-body-md) * 1px);text-align:center;cursor:pointer;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-chatbot-suggestion-button:hover:not(:disabled){background:var(--bs-chatbot-suggestion-button-bg-hover);color:var(--bs-chatbot-suggestion-button-text-hover)}.bs-chatbot-suggestion-button:active:not(:disabled){background:var(--bs-chatbot-suggestion-button-bg-pressed);color:var(--bs-chatbot-suggestion-button-text-hover)}.bs-chatbot-suggestion-button:focus-visible:not(:disabled){background:var(--bs-chatbot-suggestion-button-bg-focus);color:var(--bs-chatbot-suggestion-button-text-hover);outline:var(--bs-border-width-medium) solid var(--bs-chatbot-suggestion-button-focus-ring-color);outline-offset:3px}.bs-chatbot-suggestion-button:disabled{background:var(--bs-chatbot-suggestion-button-bg-disabled);color:var(--bs-chatbot-suggestion-button-text-disabled);border-color:var(--bs-chatbot-suggestion-button-border-color-disabled);cursor:not-allowed}"}},[769,"bs-chatbot-suggestion-button",{disabled:[4]}]);function n(){"undefined"!=typeof customElements&&["bs-chatbot-suggestion-button","bs-ripple"].forEach((o=>{switch(o){case"bs-chatbot-suggestion-button":customElements.get(t(o))||customElements.define(t(o),a);break;case"bs-ripple":customElements.get(t(o))||r()}}))}n();const i=a,c=n;export{i as BsChatbotSuggestionButton,c as defineCustomElement}
@@ -1 +1 @@
1
- import{t as o,p as e,H as r,c as s,h as t}from"./p-CcAX4o5o.js";let c=0;const i=e(class extends r{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.bsChange=s(this,"bsChange")}get el(){return this}id="bs-checkbox-group-"+ ++c;label;description;error;orientation="vertical";required=!1;value=[];bsChange;boxes(){return Array.from(this.el.querySelectorAll("bs-checkbox"))}onValue(){const o=this.value??[];this.boxes().forEach((e=>{const r=o.includes(e.value);e.checked!==r&&(e.checked=r)}))}onError(){this.syncError()}componentWillLoad(){this.onSlotchange()}syncError(){this.boxes().forEach((o=>o.error=!!this.error))}onSlotchange=()=>{this.syncError(),this.value&&this.value.length?this.onValue():this.value=this.boxes().filter((o=>o.checked)).map((o=>o.value))};onBoxChange(o){o.target!==this.el&&(o.stopImmediatePropagation(),this.value=this.boxes().filter((o=>o.checked)).map((o=>o.value)),this.bsChange.emit(this.value))}render(){const o=this.id+"-desc",e=this.error||this.description;return t("fieldset",{key:"0fe78473d394ca02d2901e2dd6ee2b41bf0c8f82",part:"group",class:{"bs-checkbox-group":!0,"bs-checkbox-group--error":!!this.error},"aria-describedby":e?o:void 0,"aria-invalid":this.error?"true":void 0,"aria-required":this.required?"true":void 0},this.label&&t("legend",{key:"93ebc36796a72142d0c37a5242fc3c41aac4cb24",part:"label",class:"bs-checkbox-group__label"},this.label,this.required&&t("span",{key:"eafcf168ac7d17feef71686e3a57498093ab0b97","aria-hidden":"true"}," *")),t("div",{key:"4473ad6ab2d88e0e1e6a68f5669d9008716a061b",part:"options",class:"bs-checkbox-group__options"},t("slot",{key:"948c5302774f93e6e5173d0693450d14eb4230e3",onSlotchange:this.onSlotchange})),e&&t("span",{key:"b625aa5a79b78c5fb2cceea6fa412582d41d4180",id:o,part:this.error?"error":"description",class:this.error?"bs-checkbox-group__error":"bs-checkbox-group__description"},this.error||this.description))}static get watchers(){return{value:[{onValue:0}],error:[{onError:0}]}}static get style(){return":host{display:block;--bs-checkbox-group-gap:var(--bs-spacing-50);--bs-checkbox-group-options-gap:var(--bs-spacing-0);--bs-checkbox-group-label-color:var(--bs-text-default);--bs-checkbox-group-description-color:var(--bs-text-secondary);--bs-checkbox-group-error-color:var(--bs-text-error)}:host([orientation='horizontal']){--bs-checkbox-group-options-gap:var(--bs-spacing-300)}.bs-checkbox-group{display:flex;flex-direction:column;gap:var(--bs-checkbox-group-gap);min-width:0;margin:0;padding:0;border:0;font-family:inherit}.bs-checkbox-group__label{padding:0;margin-bottom:var(--bs-checkbox-group-gap);font-size:var(--bs-font-size-md);font-weight:var(--bs-font-weight-medium);color:var(--bs-checkbox-group-label-color)}.bs-checkbox-group__options{display:flex;flex-direction:column;align-items:flex-start;gap:var(--bs-checkbox-group-options-gap)}:host([orientation='horizontal']) .bs-checkbox-group__options{flex-direction:row;flex-wrap:wrap;align-items:center}.bs-checkbox-group__description,.bs-checkbox-group__error{font-size:var(--bs-font-size-xs)}.bs-checkbox-group__description{color:var(--bs-checkbox-group-description-color)}.bs-checkbox-group__error{color:var(--bs-checkbox-group-error-color)}"}},[769,"bs-checkbox-group",{label:[1],description:[1],error:[1],orientation:[513],required:[4],value:[1040]},[[0,"bsChange","onBoxChange"]],{value:[{onValue:0}],error:[{onError:0}]}]);function a(){"undefined"!=typeof customElements&&["bs-checkbox-group"].forEach((e=>{"bs-checkbox-group"===e&&(customElements.get(o(e))||customElements.define(o(e),i))}))}a();const b=i,n=a;export{b as BsCheckboxGroup,n as defineCustomElement}
1
+ import{t as o,p as e,H as r,c as s,h as t}from"./p-CcAX4o5o.js";let c=0;const i=e(class extends r{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.bsChange=s(this,"bsChange")}get el(){return this}id="bs-checkbox-group-"+ ++c;label;description;error;orientation="vertical";required=!1;requiredLabel="required";value=[];bsChange;boxes(){return Array.from(this.el.querySelectorAll("bs-checkbox"))}onValue(){const o=this.value??[];this.boxes().forEach((e=>{const r=o.includes(e.value);e.checked!==r&&(e.checked=r)}))}onError(){this.syncError()}componentWillLoad(){this.onSlotchange()}syncError(){this.boxes().forEach((o=>o.error=!!this.error))}onSlotchange=()=>{this.syncError(),this.value&&this.value.length?this.onValue():this.value=this.boxes().filter((o=>o.checked)).map((o=>o.value))};onBoxChange(o){o.target!==this.el&&(o.stopImmediatePropagation(),this.value=this.boxes().filter((o=>o.checked)).map((o=>o.value)),this.bsChange.emit(this.value))}render(){const o=this.id+"-desc",e=this.error||this.description;return t("fieldset",{key:"8f7fb1a067e1f56befc8b0482405333f4eb5d3b1",part:"group",class:{"bs-checkbox-group":!0,"bs-checkbox-group--error":!!this.error},"aria-describedby":e?o:void 0,"aria-invalid":this.error?"true":void 0},this.label&&t("legend",{key:"4184cdfef2d458b06159289c44ed62093ec43fbe",part:"label",class:"bs-checkbox-group__label"},this.label,this.required&&[t("span",{key:"7c50ad16bb5a62aee6bb7c1c6171fb7fc7843cbc","aria-hidden":"true"}," *"),t("span",{key:"07c282bd08e6ba04aa245f37987985bd3e19e842",class:"bs-checkbox-group__sr-only"}," (",this.requiredLabel,")")]),t("div",{key:"2f418bcf802da9f6c312b103a0f49096e7bd0f08",part:"options",class:"bs-checkbox-group__options"},t("slot",{key:"276403e8a81f0d6801ede58375a0802b382841a0",onSlotchange:this.onSlotchange})),e&&t("span",{key:"bd3e98d357755bf1135c9dd9e3defb35090559da",id:o,part:this.error?"error":"description",class:this.error?"bs-checkbox-group__error":"bs-checkbox-group__description"},this.error||this.description))}static get watchers(){return{value:[{onValue:0}],error:[{onError:0}]}}static get style(){return":host{display:block;--bs-checkbox-group-gap:var(--bs-spacing-50);--bs-checkbox-group-options-gap:var(--bs-spacing-0);--bs-checkbox-group-label-color:var(--bs-text-default);--bs-checkbox-group-description-color:var(--bs-text-secondary);--bs-checkbox-group-error-color:var(--bs-text-error)}:host([orientation='horizontal']){--bs-checkbox-group-options-gap:var(--bs-spacing-300)}.bs-checkbox-group{display:flex;flex-direction:column;gap:var(--bs-checkbox-group-gap);min-width:0;margin:0;padding:0;border:0;font-family:inherit}.bs-checkbox-group__label{padding:0;margin-bottom:var(--bs-checkbox-group-gap);font-size:var(--bs-font-size-md);font-weight:var(--bs-font-weight-medium);color:var(--bs-checkbox-group-label-color)}.bs-checkbox-group__options{display:flex;flex-direction:column;align-items:flex-start;gap:var(--bs-checkbox-group-options-gap)}:host([orientation='horizontal']) .bs-checkbox-group__options{flex-direction:row;flex-wrap:wrap;align-items:center}.bs-checkbox-group__description,.bs-checkbox-group__error{font-size:var(--bs-font-size-xs)}.bs-checkbox-group__description{color:var(--bs-checkbox-group-description-color)}.bs-checkbox-group__error{color:var(--bs-checkbox-group-error-color)}.bs-checkbox-group__sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}"}},[769,"bs-checkbox-group",{label:[1],description:[1],error:[1],orientation:[513],required:[4],requiredLabel:[1,"required-label"],value:[1040]},[[0,"bsChange","onBoxChange"]],{value:[{onValue:0}],error:[{onError:0}]}]);function b(){"undefined"!=typeof customElements&&["bs-checkbox-group"].forEach((e=>{"bs-checkbox-group"===e&&(customElements.get(o(e))||customElements.define(o(e),i))}))}b();const a=i,n=b;export{a as BsCheckboxGroup,n as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as s,H as o,h as b}from"./p-CcAX4o5o.js";const c=s(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}size="lg";loadingLabel="Loading";render(){return b("span",{key:"8458201ffae956d841ea313054cc75b0a51ad6ff",part:"container",class:"bs-checkbox-skeleton",role:"status","aria-label":this.loadingLabel},b("span",{key:"6c99ce841d3b9788cba16afbe23b4ec27e3fe1ce",part:"box",class:"bs-checkbox-skeleton__box bs-checkbox-skeleton__box--"+this.size}),b("span",{key:"f950ba0f0b3025d19ca5da7cefe3a75bb47932b1",part:"label",class:"bs-checkbox-skeleton__label"}))}static get style(){return":host{display:inline-block;--bs-checkbox-skeleton-size-sm:var(--bs-spacing-200);--bs-checkbox-skeleton-size-md:var(--bs-spacing-250);--bs-checkbox-skeleton-size-lg:var(--bs-spacing-300);--bs-checkbox-skeleton-gap:var(--bs-spacing-100);--bs-checkbox-skeleton-label-width:96px}.bs-checkbox-skeleton{display:inline-flex;align-items:center;gap:var(--bs-checkbox-skeleton-gap)}.bs-checkbox-skeleton__box,.bs-checkbox-skeleton__label{background:var(--bs-color-neutral-container);animation:bs-checkbox-skeleton-pulse 1.5s ease-in-out infinite}.bs-checkbox-skeleton__box{flex-shrink:0;border-radius:var(--bs-border-radius-50)}.bs-checkbox-skeleton__box--sm{width:var(--bs-checkbox-skeleton-size-sm);height:var(--bs-checkbox-skeleton-size-sm)}.bs-checkbox-skeleton__box--md{width:var(--bs-checkbox-skeleton-size-md);height:var(--bs-checkbox-skeleton-size-md)}.bs-checkbox-skeleton__box--lg{width:var(--bs-checkbox-skeleton-size-lg);height:var(--bs-checkbox-skeleton-size-lg)}.bs-checkbox-skeleton__label{width:var(--bs-checkbox-skeleton-label-width);height:16px;border-radius:var(--bs-border-radius-50)}@keyframes bs-checkbox-skeleton-pulse{0%,100%{opacity:1}50%{opacity:0.5}}@media (prefers-reduced-motion: reduce){.bs-checkbox-skeleton__box,.bs-checkbox-skeleton__label{animation:none}}"}},[513,"bs-checkbox-skeleton",{size:[1],loadingLabel:[1,"loading-label"]}]);function t(){"undefined"!=typeof customElements&&["bs-checkbox-skeleton"].forEach((s=>{"bs-checkbox-skeleton"===s&&(customElements.get(e(s))||customElements.define(e(s),c))}))}t();const a=c,l=t;export{a as BsCheckboxSkeleton,l as defineCustomElement}
1
+ import{t as e,p as s,H as o,h as b}from"./p-CcAX4o5o.js";const c=s(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}size="lg";loadingLabel="Loading";render(){return b("span",{key:"afdd1bab3322df2b766e2a75b29d043d710bd9a7",part:"container",class:"bs-checkbox-skeleton",role:"status","aria-label":this.loadingLabel},b("span",{key:"491a550c60e8b98e622efd6cf8c7a2335b20b7f2",part:"box",class:"bs-checkbox-skeleton__box bs-checkbox-skeleton__box--"+this.size}),b("span",{key:"12d364db8342098312d8fd6c1237cf63cab52b35",part:"label",class:"bs-checkbox-skeleton__label"}))}static get style(){return":host{display:inline-block;--bs-checkbox-skeleton-size-sm:var(--bs-spacing-200);--bs-checkbox-skeleton-size-md:var(--bs-spacing-250);--bs-checkbox-skeleton-size-lg:var(--bs-spacing-300);--bs-checkbox-skeleton-gap:var(--bs-spacing-100);--bs-checkbox-skeleton-label-width:96px}.bs-checkbox-skeleton{display:inline-flex;align-items:center;gap:var(--bs-checkbox-skeleton-gap)}.bs-checkbox-skeleton__box,.bs-checkbox-skeleton__label{background:var(--bs-color-neutral-container);animation:bs-checkbox-skeleton-pulse 1.5s ease-in-out infinite}.bs-checkbox-skeleton__box{flex-shrink:0;border-radius:var(--bs-border-radius-50)}.bs-checkbox-skeleton__box--sm{width:var(--bs-checkbox-skeleton-size-sm);height:var(--bs-checkbox-skeleton-size-sm)}.bs-checkbox-skeleton__box--md{width:var(--bs-checkbox-skeleton-size-md);height:var(--bs-checkbox-skeleton-size-md)}.bs-checkbox-skeleton__box--lg{width:var(--bs-checkbox-skeleton-size-lg);height:var(--bs-checkbox-skeleton-size-lg)}.bs-checkbox-skeleton__label{width:var(--bs-checkbox-skeleton-label-width);height:16px;border-radius:var(--bs-border-radius-50)}@keyframes bs-checkbox-skeleton-pulse{0%,100%{opacity:1}50%{opacity:0.5}}@media (prefers-reduced-motion: reduce){.bs-checkbox-skeleton__box,.bs-checkbox-skeleton__label{animation:none}}"}},[513,"bs-checkbox-skeleton",{size:[1],loadingLabel:[1,"loading-label"]}]);function t(){"undefined"!=typeof customElements&&["bs-checkbox-skeleton"].forEach((s=>{"bs-checkbox-skeleton"===s&&(customElements.get(e(s))||customElements.define(e(s),c))}))}t();const l=c,a=t;export{l as BsCheckboxSkeleton,a as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as o,H as b,c,h as r}from"./p-CcAX4o5o.js";import{d as s}from"./p-DaKBSL2O.js";const a=o(class extends b{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsChange=c(this,"bsChange"),this.internals=this.attachInternals()}get el(){return this}internals;inputEl;initialChecked=!1;name;value="on";required=!1;size="lg";checked=!1;indeterminate=!1;disabled=!1;error=!1;ariaLabel=null;bsChange;syncFormValue(){this.internals?.setFormValue&&(this.internals.setFormValue(this.checked?this.value:null),this.required&&!this.checked?this.internals.setValidity({valueMissing:!0},"Please check this box if you want to proceed.",this.inputEl):this.internals.setValidity({}))}formResetCallback(){this.checked=this.initialChecked,this.indeterminate=!1}componentWillLoad(){this.initialChecked=this.checked,this.syncFormValue()}onIndeterminateChange(){this.inputEl&&(this.inputEl.indeterminate=this.indeterminate)}componentDidLoad(){this.inputEl&&(this.inputEl.indeterminate=this.indeterminate)}componentDidUpdate(){this.inputEl&&(this.inputEl.indeterminate=this.indeterminate)}onChange=e=>{const o=e.target.checked;this.checked=o,this.indeterminate=!1,this.bsChange.emit(o)};render(){const e=this.checked||this.indeterminate,o=["bs-checkbox__box","bs-checkbox__box--"+this.size,e?"bs-checkbox__box--selected":"",this.disabled?"bs-checkbox__box--disabled":"",this.error?"bs-checkbox__box--error":""].filter(Boolean).join(" ");return r("label",{key:"d35cd1c413ad4a5da2b964828f225ccd434f8724",class:"bs-checkbox "+(this.disabled?"bs-checkbox--disabled":"")},r("input",{key:"6a50bcabb9856f732472c08acf28a72b47efcd0e",ref:e=>this.inputEl=e,class:"bs-checkbox__input",type:"checkbox",checked:this.checked,disabled:this.disabled,required:this.required,"aria-checked":this.indeterminate?"mixed":this.checked+"","aria-label":this.ariaLabel,onChange:this.onChange}),r("span",{key:"73125ca0d0b7f6820655d3f3001b91c4d7712979",part:"box",class:o},r("bs-ripple",{key:"e0e763aa5342b8241758cdb9f56397a36fd08b27",part:"ripple",class:"bs-checkbox__ripple",centered:!0,triggerSelector:".bs-checkbox",disabled:this.disabled}),e&&r("svg",{key:"1d31573c1bf95fa1efa9c38e2516df59cf84e247",part:"icon",class:"bs-checkbox__icon",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},r("path",this.indeterminate?{d:"M3 8H13",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}:{d:"M3 8.5L6.2 11.5L13 4.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),r("span",{key:"71101d692d0ebe55a1e36055394395adacfef564",part:"label",class:"bs-checkbox__label"},r("slot",{key:"5964f3edad9f4217334c5703032a28c99974970b"})))}static get delegatesFocus(){return!0}static get formAssociated(){return!0}static get watchers(){return{checked:[{syncFormValue:0}],value:[{syncFormValue:0}],required:[{syncFormValue:0}],indeterminate:[{onIndeterminateChange:0}]}}static get style(){return":host{display:inline-block;--bs-checkbox-radius:var(--bs-border-radius-50);--bs-checkbox-gap:var(--bs-spacing-100);--bs-checkbox-size-sm:var(--bs-spacing-200);--bs-checkbox-size-md:var(--bs-spacing-250);--bs-checkbox-size-lg:var(--bs-spacing-300);--bs-checkbox-border-width-sm:1.333px;--bs-checkbox-border-width-md:1.667px;--bs-checkbox-border-width-lg:2px;--bs-checkbox-border-default:var(--bs-border-default);--bs-checkbox-bg-hover:var(--bs-surface-hover);--bs-checkbox-border-hover:var(--bs-border-neutral-hover);--bs-checkbox-bg-focus:var(--bs-surface-raised);--bs-checkbox-border-focus:var(--bs-border-neutral-hover);--bs-checkbox-focus-ring-color:var(--bs-border-neutral-focus);--bs-checkbox-bg-disabled:var(--bs-surface-action-disabled);--bs-checkbox-border-disabled:var(--bs-border-neutral-disabled);--bs-checkbox-border-error:var(--bs-border-error);--bs-checkbox-bg-selected:var(--bs-color-primary-default);--bs-checkbox-border-selected:var(--bs-color-primary-default);--bs-checkbox-bg-selected-hover:var(--bs-color-primary-hover);--bs-checkbox-border-selected-hover:var(--bs-color-primary-hover);--bs-checkbox-bg-selected-error:var(--bs-icon-error);--bs-checkbox-border-selected-error:var(--bs-icon-error);--bs-checkbox-icon-color:var(--bs-icon-static-white);--bs-checkbox-icon-color-disabled:var(--bs-icon-disabled);--bs-checkbox-label-color:var(--bs-text-default);--bs-checkbox-label-color-disabled:var(--bs-text-on-disabled);--bs-checkbox-label-color-error:var(--bs-text-error)}.bs-checkbox{position:relative;display:inline-flex;align-items:center;gap:var(--bs-checkbox-gap);font-family:inherit;cursor:pointer}.bs-checkbox--disabled{cursor:not-allowed}.bs-checkbox__input{position:absolute;top:0;inset-inline-start:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}.bs-checkbox__input:disabled{cursor:not-allowed}.bs-checkbox__box{box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--bs-checkbox-size-lg);height:var(--bs-checkbox-size-lg);border:var(--bs-checkbox-border-width-lg) solid var(--bs-checkbox-border-default);border-radius:var(--bs-checkbox-radius);background:transparent;color:var(--bs-checkbox-icon-color)}.bs-checkbox__box--md{width:var(--bs-checkbox-size-md);height:var(--bs-checkbox-size-md);border-width:var(--bs-checkbox-border-width-md)}.bs-checkbox__box--sm{width:var(--bs-checkbox-size-sm);height:var(--bs-checkbox-size-sm);border-width:var(--bs-checkbox-border-width-sm)}.bs-checkbox__box--selected{background:var(--bs-checkbox-bg-selected);border-color:var(--bs-checkbox-border-selected)}.bs-checkbox__input:hover:not(:disabled)~.bs-checkbox__box{background:var(--bs-checkbox-bg-hover);border-color:var(--bs-checkbox-border-hover)}.bs-checkbox__input:hover:not(:disabled)~.bs-checkbox__box--selected{background:var(--bs-checkbox-bg-selected-hover);border-color:var(--bs-checkbox-border-selected-hover)}.bs-checkbox__input:focus-visible~.bs-checkbox__box{background:var(--bs-checkbox-bg-focus);border-color:var(--bs-checkbox-border-focus);outline:2px solid var(--bs-checkbox-focus-ring-color);outline-offset:2px}.bs-checkbox__input:focus-visible~.bs-checkbox__box--selected{background:var(--bs-checkbox-bg-selected-hover);border-color:var(--bs-checkbox-border-selected-hover)}.bs-checkbox__box--error{border-color:var(--bs-checkbox-border-error)}.bs-checkbox__box--error.bs-checkbox__box--selected{background:var(--bs-checkbox-bg-selected-error);border-color:var(--bs-checkbox-border-selected-error)}.bs-checkbox__box--disabled{background:var(--bs-checkbox-bg-disabled);border-color:var(--bs-checkbox-border-disabled);color:var(--bs-checkbox-icon-color-disabled)}.bs-checkbox__box--disabled.bs-checkbox__box--selected{background:var(--bs-checkbox-bg-disabled);border-color:var(--bs-checkbox-border-disabled)}.bs-checkbox__icon{width:80%;height:80%}.bs-checkbox__label{font-size:var(--bs-font-size-md);color:var(--bs-checkbox-label-color)}.bs-checkbox__box--sm~.bs-checkbox__label{font-size:var(--bs-font-size-sm)}.bs-checkbox--disabled .bs-checkbox__label{color:var(--bs-checkbox-label-color-disabled)}.bs-checkbox:not(.bs-checkbox--disabled) .bs-checkbox__box--error~.bs-checkbox__label{color:var(--bs-checkbox-label-color-error)}@media (forced-colors: active){.bs-checkbox__box{border:2px solid ButtonText;forced-color-adjust:none;background:Canvas;color:ButtonText}.bs-checkbox__box--selected{background:Highlight;border-color:Highlight;color:HighlightText}.bs-checkbox__box--disabled{border-color:GrayText;color:GrayText}}.bs-checkbox__ripple{inset:-10px;border-radius:50%;--bs-ripple-color:var(--bs-color-primary-default)}"}},[849,"bs-checkbox",{name:[513],value:[1],required:[4],size:[1],checked:[1540],indeterminate:[1540],disabled:[516],error:[4],ariaLabel:[1,"aria-label"]},void 0,{checked:[{syncFormValue:0}],value:[{syncFormValue:0}],required:[{syncFormValue:0}],indeterminate:[{onIndeterminateChange:0}]}]);function i(){"undefined"!=typeof customElements&&["bs-checkbox","bs-ripple"].forEach((o=>{switch(o){case"bs-checkbox":customElements.get(e(o))||customElements.define(e(o),a);break;case"bs-ripple":customElements.get(e(o))||s()}}))}i();const t=a,d=i;export{t as BsCheckbox,d as defineCustomElement}
1
+ import{t as e,p as o,H as b,c,h as r}from"./p-CcAX4o5o.js";import{d as s}from"./p-ESiaIgGU.js";const a=o(class extends b{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsChange=c(this,"bsChange"),this.internals=this.attachInternals()}get el(){return this}internals;inputEl;initialChecked=!1;name;value="on";required=!1;size="lg";checked=!1;indeterminate=!1;disabled=!1;error=!1;ariaLabel=null;bsChange;syncFormValue(){this.internals?.setFormValue&&(this.internals.setFormValue(this.checked?this.value:null),this.required&&!this.checked?this.internals.setValidity({valueMissing:!0},"Please check this box if you want to proceed.",this.inputEl):this.internals.setValidity({}))}formResetCallback(){this.checked=this.initialChecked,this.indeterminate=!1}componentWillLoad(){this.initialChecked=this.checked,this.syncFormValue()}onIndeterminateChange(){this.inputEl&&(this.inputEl.indeterminate=this.indeterminate)}componentDidLoad(){this.inputEl&&(this.inputEl.indeterminate=this.indeterminate)}componentDidUpdate(){this.inputEl&&(this.inputEl.indeterminate=this.indeterminate)}onChange=e=>{const o=e.target.checked;this.checked=o,this.indeterminate=!1,this.bsChange.emit(o)};render(){const e=this.checked||this.indeterminate,o=["bs-checkbox__box","bs-checkbox__box--"+this.size,e?"bs-checkbox__box--selected":"",this.disabled?"bs-checkbox__box--disabled":"",this.error?"bs-checkbox__box--error":""].filter(Boolean).join(" ");return r("label",{key:"d35cd1c413ad4a5da2b964828f225ccd434f8724",class:"bs-checkbox "+(this.disabled?"bs-checkbox--disabled":"")},r("input",{key:"6a50bcabb9856f732472c08acf28a72b47efcd0e",ref:e=>this.inputEl=e,class:"bs-checkbox__input",type:"checkbox",checked:this.checked,disabled:this.disabled,required:this.required,"aria-checked":this.indeterminate?"mixed":this.checked+"","aria-label":this.ariaLabel,onChange:this.onChange}),r("span",{key:"73125ca0d0b7f6820655d3f3001b91c4d7712979",part:"box",class:o},r("bs-ripple",{key:"e0e763aa5342b8241758cdb9f56397a36fd08b27",part:"ripple",class:"bs-checkbox__ripple",centered:!0,triggerSelector:".bs-checkbox",disabled:this.disabled}),e&&r("svg",{key:"1d31573c1bf95fa1efa9c38e2516df59cf84e247",part:"icon",class:"bs-checkbox__icon",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},r("path",this.indeterminate?{d:"M3 8H13",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}:{d:"M3 8.5L6.2 11.5L13 4.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),r("span",{key:"71101d692d0ebe55a1e36055394395adacfef564",part:"label",class:"bs-checkbox__label"},r("slot",{key:"5964f3edad9f4217334c5703032a28c99974970b"})))}static get delegatesFocus(){return!0}static get formAssociated(){return!0}static get watchers(){return{checked:[{syncFormValue:0}],value:[{syncFormValue:0}],required:[{syncFormValue:0}],indeterminate:[{onIndeterminateChange:0}]}}static get style(){return":host{display:inline-block;--bs-checkbox-radius:var(--bs-border-radius-50);--bs-checkbox-gap:var(--bs-spacing-100);--bs-checkbox-size-sm:var(--bs-spacing-200);--bs-checkbox-size-md:var(--bs-spacing-250);--bs-checkbox-size-lg:var(--bs-spacing-300);--bs-checkbox-border-width-sm:1.333px;--bs-checkbox-border-width-md:1.667px;--bs-checkbox-border-width-lg:2px;--bs-checkbox-border-default:var(--bs-border-default);--bs-checkbox-bg-hover:var(--bs-surface-hover);--bs-checkbox-border-hover:var(--bs-border-neutral-hover);--bs-checkbox-bg-focus:var(--bs-surface-raised);--bs-checkbox-border-focus:var(--bs-border-neutral-hover);--bs-checkbox-focus-ring-color:var(--bs-border-neutral-focus);--bs-checkbox-bg-disabled:var(--bs-surface-action-disabled);--bs-checkbox-border-disabled:var(--bs-border-neutral-disabled);--bs-checkbox-border-error:var(--bs-border-error);--bs-checkbox-bg-selected:var(--bs-color-primary-default);--bs-checkbox-border-selected:var(--bs-color-primary-default);--bs-checkbox-bg-selected-hover:var(--bs-color-primary-hover);--bs-checkbox-border-selected-hover:var(--bs-color-primary-hover);--bs-checkbox-bg-selected-error:var(--bs-icon-error);--bs-checkbox-border-selected-error:var(--bs-icon-error);--bs-checkbox-icon-color:var(--bs-icon-static-white);--bs-checkbox-icon-color-disabled:var(--bs-icon-disabled);--bs-checkbox-label-color:var(--bs-text-default);--bs-checkbox-label-color-disabled:var(--bs-text-on-disabled);--bs-checkbox-label-color-error:var(--bs-text-error)}.bs-checkbox{position:relative;display:inline-flex;align-items:center;gap:var(--bs-checkbox-gap);font-family:inherit;cursor:pointer}.bs-checkbox--disabled{cursor:not-allowed}.bs-checkbox__input{position:absolute;top:0;inset-inline-start:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}.bs-checkbox__input:disabled{cursor:not-allowed}.bs-checkbox__box{box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--bs-checkbox-size-lg);height:var(--bs-checkbox-size-lg);border:var(--bs-checkbox-border-width-lg) solid var(--bs-checkbox-border-default);border-radius:var(--bs-checkbox-radius);background:transparent;color:var(--bs-checkbox-icon-color)}.bs-checkbox__box--md{width:var(--bs-checkbox-size-md);height:var(--bs-checkbox-size-md);border-width:var(--bs-checkbox-border-width-md)}.bs-checkbox__box--sm{width:var(--bs-checkbox-size-sm);height:var(--bs-checkbox-size-sm);border-width:var(--bs-checkbox-border-width-sm)}.bs-checkbox__box--selected{background:var(--bs-checkbox-bg-selected);border-color:var(--bs-checkbox-border-selected)}.bs-checkbox__input:hover:not(:disabled)~.bs-checkbox__box{background:var(--bs-checkbox-bg-hover);border-color:var(--bs-checkbox-border-hover)}.bs-checkbox__input:hover:not(:disabled)~.bs-checkbox__box--selected{background:var(--bs-checkbox-bg-selected-hover);border-color:var(--bs-checkbox-border-selected-hover)}.bs-checkbox__input:focus-visible~.bs-checkbox__box{background:var(--bs-checkbox-bg-focus);border-color:var(--bs-checkbox-border-focus);outline:2px solid var(--bs-checkbox-focus-ring-color);outline-offset:2px}.bs-checkbox__input:focus-visible~.bs-checkbox__box--selected{background:var(--bs-checkbox-bg-selected-hover);border-color:var(--bs-checkbox-border-selected-hover)}.bs-checkbox__box--error{border-color:var(--bs-checkbox-border-error)}.bs-checkbox__box--error.bs-checkbox__box--selected{background:var(--bs-checkbox-bg-selected-error);border-color:var(--bs-checkbox-border-selected-error)}.bs-checkbox__box--disabled{background:var(--bs-checkbox-bg-disabled);border-color:var(--bs-checkbox-border-disabled);color:var(--bs-checkbox-icon-color-disabled)}.bs-checkbox__box--disabled.bs-checkbox__box--selected{background:var(--bs-checkbox-bg-disabled);border-color:var(--bs-checkbox-border-disabled)}.bs-checkbox__icon{width:80%;height:80%}.bs-checkbox__label{font-size:var(--bs-font-size-md);color:var(--bs-checkbox-label-color)}.bs-checkbox__box--sm~.bs-checkbox__label{font-size:var(--bs-font-size-sm)}.bs-checkbox--disabled .bs-checkbox__label{color:var(--bs-checkbox-label-color-disabled)}.bs-checkbox:not(.bs-checkbox--disabled) .bs-checkbox__box--error~.bs-checkbox__label{color:var(--bs-checkbox-label-color-error)}@media (forced-colors: active){.bs-checkbox__box{border:2px solid ButtonText;forced-color-adjust:none;background:Canvas;color:ButtonText}.bs-checkbox__box--selected{background:Highlight;border-color:Highlight;color:HighlightText}.bs-checkbox__box--disabled{border-color:GrayText;color:GrayText}}.bs-checkbox__ripple{inset:-10px;border-radius:50%;--bs-ripple-color:var(--bs-color-primary-default)}"}},[849,"bs-checkbox",{name:[513],value:[1],required:[4],size:[1],checked:[1540],indeterminate:[1540],disabled:[516],error:[4],ariaLabel:[1,"aria-label"]},void 0,{checked:[{syncFormValue:0}],value:[{syncFormValue:0}],required:[{syncFormValue:0}],indeterminate:[{onIndeterminateChange:0}]}]);function i(){"undefined"!=typeof customElements&&["bs-checkbox","bs-ripple"].forEach((o=>{switch(o){case"bs-checkbox":customElements.get(e(o))||customElements.define(e(o),a);break;case"bs-ripple":customElements.get(e(o))||s()}}))}i();const t=a,d=i;export{t as BsCheckbox,d as defineCustomElement}
@@ -1 +1 @@
1
- import{t as i,p as e,H as s,c as t,h as r}from"./p-CcAX4o5o.js";import{d as a}from"./p-DaKBSL2O.js";const c=e(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.bsChange=t(this,"bsChange")}get el(){return this}size="lg";selected=!1;dropdown=!1;disabled=!1;ariaLabel=null;hasIcon=!1;bsChange;componentWillLoad(){this.hasIcon=this.hasSlottedContent("icon")}hasSlottedContent(i){return Array.from(this.el.childNodes).some((e=>e.nodeType===Node.ELEMENT_NODE&&e.getAttribute("slot")===i))}onIconSlotchange=i=>{this.hasIcon=i.target.assignedNodes().length>0};onClick=()=>{this.bsChange.emit(!this.selected)};render(){return r("button",{key:"06a4efff34f6542d59f9e46b4df706cae4a3118c",type:"button",class:`bs-chip-filter bs-chip-filter--${this.size} bs-chip-filter--${this.hasIcon&&this.dropdown?"icon-dropdown":this.hasIcon?"icon-only":this.dropdown?"dropdown-only":"text-only"} ${this.selected?"bs-chip-filter--selected":""}`,disabled:this.disabled,"aria-pressed":this.selected+"","aria-label":this.ariaLabel,onClick:this.onClick},r("bs-ripple",{key:"d76f2c368b82361e021d92eda38f68783910c4d7",part:"ripple",centered:!1,disabled:this.disabled}),r("span",{key:"e31e9dbb2f8663c8c496c0c24a465025de3513d9",part:"icon",class:"bs-chip-filter__icon "+(this.hasIcon?"bs-chip-filter__icon--visible":"")},r("slot",{key:"c9c11954b627f6f0cf2defd3bc24d39c83f8b6f7",name:"icon",onSlotchange:this.onIconSlotchange})),r("span",{key:"af8b16f4c1c36d68db0ecef3844ef81e0c2a95f2",part:"label",class:"bs-chip-filter__label"},r("slot",{key:"afed8547e55dd8851f4a35204dfc8c19aac9552c"})),this.dropdown&&r("span",{key:"ae9a53b2c520650bd8ec765ea21471800e9434ff",part:"caret",class:"bs-chip-filter__caret","aria-hidden":"true"},r(n,{key:"0311c2312584e20590bfb8d3c34a7b0d5efea652"})))}static get delegatesFocus(){return!0}static get style(){return":host{display:inline-flex;--bs-chip-filter-height-md:var(--bs-spacing-300);--bs-chip-filter-height-lg:var(--bs-spacing-400);--bs-chip-filter-gap:var(--bs-spacing-50);--bs-chip-filter-icon-size:16px;--bs-chip-filter-padding-x-glyph-side:var(--bs-spacing-100);--bs-chip-filter-padding-x-plain-side:var(--bs-spacing-150);--bs-chip-filter-padding-x-text-only:var(--bs-spacing-200);--bs-chip-filter-font-size:var(--bs-font-size-sm);--bs-chip-filter-line-height:var(--bs-line-height-body-sm);--bs-chip-filter-font-weight:var(--bs-font-weight-regular)}.bs-chip-filter{position:relative;display:inline-flex;align-items:center;gap:var(--bs-chip-filter-gap);box-sizing:border-box;border:none;border-radius:var(--bs-border-radius-full);font-family:inherit;font-size:var(--bs-chip-filter-font-size);font-weight:var(--bs-chip-filter-font-weight);line-height:calc(var(--bs-chip-filter-line-height) * 1px);white-space:nowrap;cursor:pointer;background:var(--bs-chip-bg-primary-container);color:var(--bs-chip-text-primary);transition:background-color var(--bs-duration-fast, 120ms) var(--bs-easing-standard, ease)}.bs-chip-filter--md{height:var(--bs-chip-filter-height-md)}.bs-chip-filter--lg{height:var(--bs-chip-filter-height-lg)}.bs-chip-filter--icon-dropdown{padding:0 var(--bs-chip-filter-padding-x-glyph-side)}.bs-chip-filter--icon-only{padding-inline-start:var(--bs-chip-filter-padding-x-glyph-side);padding-inline-end:var(--bs-chip-filter-padding-x-plain-side)}.bs-chip-filter--dropdown-only{padding-inline-start:var(--bs-chip-filter-padding-x-plain-side);padding-inline-end:var(--bs-chip-filter-padding-x-glyph-side)}.bs-chip-filter--text-only{padding:0 var(--bs-chip-filter-padding-x-text-only)}.bs-chip-filter__icon{display:none;flex-shrink:0;width:var(--bs-chip-filter-icon-size);height:var(--bs-chip-filter-icon-size)}.bs-chip-filter__icon--visible{display:flex;align-items:center;justify-content:center}.bs-chip-filter__icon ::slotted(*){display:block;width:var(--bs-chip-filter-icon-size);height:var(--bs-chip-filter-icon-size)}.bs-chip-filter__label{display:flex;align-items:center}.bs-chip-filter__caret{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--bs-chip-filter-icon-size);height:var(--bs-chip-filter-icon-size)}.bs-chip-filter:hover:not(:disabled){background:var(--bs-chip-bg-primary-container-hover)}.bs-chip-filter:active:not(:disabled){background:var(--bs-chip-bg-primary-container-pressed)}.bs-chip-filter:focus-visible{background:var(--bs-chip-bg-primary-container-focused);outline:2px solid var(--bs-chip-border-focus);outline-offset:2px}.bs-chip-filter--selected{background:var(--bs-chip-bg-primary);color:var(--bs-chip-text-inverse)}.bs-chip-filter--selected:hover:not(:disabled){background:var(--bs-chip-bg-primary-hover)}.bs-chip-filter--selected:active:not(:disabled){background:var(--bs-chip-bg-primary-pressed)}.bs-chip-filter--selected:focus-visible{background:var(--bs-chip-bg-primary-focused)}.bs-chip-filter:disabled{background:var(--bs-chip-bg-disabled);color:var(--bs-chip-text-disabled);cursor:not-allowed}"}},[785,"bs-chip-filter",{size:[1],selected:[516],dropdown:[4],disabled:[4],ariaLabel:[1,"aria-label"],hasIcon:[32]}]),n=()=>r("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("path",{d:"M4 6L8 10L12 6",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}));function l(){"undefined"!=typeof customElements&&["bs-chip-filter","bs-ripple"].forEach((e=>{switch(e){case"bs-chip-filter":customElements.get(i(e))||customElements.define(i(e),c);break;case"bs-ripple":customElements.get(i(e))||a()}}))}l();const p=c,o=l;export{p as BsChipFilter,o as defineCustomElement}
1
+ import{t as i,p as e,H as s,c as t,h as r}from"./p-CcAX4o5o.js";import{d as a}from"./p-ESiaIgGU.js";const c=e(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.bsChange=t(this,"bsChange")}get el(){return this}size="lg";selected=!1;dropdown=!1;disabled=!1;ariaLabel=null;hasIcon=!1;bsChange;componentWillLoad(){this.hasIcon=this.hasSlottedContent("icon")}hasSlottedContent(i){return Array.from(this.el.childNodes).some((e=>e.nodeType===Node.ELEMENT_NODE&&e.getAttribute("slot")===i))}onIconSlotchange=i=>{this.hasIcon=i.target.assignedNodes().length>0};onClick=()=>{this.bsChange.emit(!this.selected)};render(){return r("button",{key:"7cfdd0089c8023f1409ccf9751ffe03329a6d884",type:"button",class:`bs-chip-filter bs-chip-filter--${this.size} bs-chip-filter--${this.hasIcon&&this.dropdown?"icon-dropdown":this.hasIcon?"icon-only":this.dropdown?"dropdown-only":"text-only"} ${this.selected?"bs-chip-filter--selected":""}`,disabled:this.disabled,"aria-pressed":this.selected+"","aria-label":this.ariaLabel,onClick:this.onClick},r("bs-ripple",{key:"3aa54019b1985b8cf77834c31b1df31a56e28774",part:"ripple",centered:!1,disabled:this.disabled}),r("span",{key:"752fbf3f55aad2206e38f27e6841a4a8cb775449",part:"icon",class:"bs-chip-filter__icon "+(this.hasIcon?"bs-chip-filter__icon--visible":"")},r("slot",{key:"51435c1edb40d989241b59413dc6e30b353b5b46",name:"icon",onSlotchange:this.onIconSlotchange})),r("span",{key:"34db254d4ee9616e2497705bc57237bcaac3b6a2",part:"label",class:"bs-chip-filter__label"},r("slot",{key:"35a15ed0702180ab8cb58e6249b78d1322ee4b5b"})),this.dropdown&&r("span",{key:"e72f4c5612cf67848711c31f2ab32403bdc645f2",part:"caret",class:"bs-chip-filter__caret","aria-hidden":"true"},r(n,{key:"513939f3b41904070b43fed9ac8169fb2c92ef6d"})))}static get delegatesFocus(){return!0}static get style(){return":host{display:inline-flex;--bs-chip-filter-height-md:var(--bs-spacing-300);--bs-chip-filter-height-lg:var(--bs-spacing-400);--bs-chip-filter-gap:var(--bs-spacing-50);--bs-chip-filter-icon-size:16px;--bs-chip-filter-padding-x-glyph-side:var(--bs-spacing-100);--bs-chip-filter-padding-x-plain-side:var(--bs-spacing-150);--bs-chip-filter-padding-x-text-only:var(--bs-spacing-200);--bs-chip-filter-font-size:var(--bs-font-size-sm);--bs-chip-filter-line-height:var(--bs-line-height-body-sm);--bs-chip-filter-font-weight:var(--bs-font-weight-regular)}.bs-chip-filter{position:relative;display:inline-flex;align-items:center;gap:var(--bs-chip-filter-gap);box-sizing:border-box;border:none;border-radius:var(--bs-border-radius-full);font-family:inherit;font-size:var(--bs-chip-filter-font-size);font-weight:var(--bs-chip-filter-font-weight);line-height:calc(var(--bs-chip-filter-line-height) * 1px);white-space:nowrap;cursor:pointer;background:var(--bs-chip-bg-primary-container);color:var(--bs-chip-text-primary);transition:background-color var(--bs-duration-fast, 120ms) var(--bs-easing-standard, ease)}.bs-chip-filter--md{height:var(--bs-chip-filter-height-md)}.bs-chip-filter--lg{height:var(--bs-chip-filter-height-lg)}.bs-chip-filter--icon-dropdown{padding:0 var(--bs-chip-filter-padding-x-glyph-side)}.bs-chip-filter--icon-only{padding-inline-start:var(--bs-chip-filter-padding-x-glyph-side);padding-inline-end:var(--bs-chip-filter-padding-x-plain-side)}.bs-chip-filter--dropdown-only{padding-inline-start:var(--bs-chip-filter-padding-x-plain-side);padding-inline-end:var(--bs-chip-filter-padding-x-glyph-side)}.bs-chip-filter--text-only{padding:0 var(--bs-chip-filter-padding-x-text-only)}.bs-chip-filter__icon{display:none;flex-shrink:0;width:var(--bs-chip-filter-icon-size);height:var(--bs-chip-filter-icon-size)}.bs-chip-filter__icon--visible{display:flex;align-items:center;justify-content:center}.bs-chip-filter__icon ::slotted(*){display:block;width:var(--bs-chip-filter-icon-size);height:var(--bs-chip-filter-icon-size)}.bs-chip-filter__label{display:flex;align-items:center}.bs-chip-filter__caret{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--bs-chip-filter-icon-size);height:var(--bs-chip-filter-icon-size)}.bs-chip-filter:hover:not(:disabled){background:var(--bs-chip-bg-primary-container-hover)}.bs-chip-filter:active:not(:disabled){background:var(--bs-chip-bg-primary-container-pressed)}.bs-chip-filter:focus-visible{background:var(--bs-chip-bg-primary-container-focused);outline:2px solid var(--bs-chip-border-focus);outline-offset:2px}.bs-chip-filter--selected{background:var(--bs-chip-bg-primary);color:var(--bs-chip-text-inverse)}.bs-chip-filter--selected:hover:not(:disabled){background:var(--bs-chip-bg-primary-hover)}.bs-chip-filter--selected:active:not(:disabled){background:var(--bs-chip-bg-primary-pressed)}.bs-chip-filter--selected:focus-visible{background:var(--bs-chip-bg-primary-focused)}.bs-chip-filter:disabled{background:var(--bs-chip-bg-disabled);color:var(--bs-chip-text-disabled);cursor:not-allowed}"}},[785,"bs-chip-filter",{size:[1],selected:[516],dropdown:[4],disabled:[4],ariaLabel:[1,"aria-label"],hasIcon:[32]}]),n=()=>r("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("path",{d:"M4 6L8 10L12 6",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}));function l(){"undefined"!=typeof customElements&&["bs-chip-filter","bs-ripple"].forEach((e=>{switch(e){case"bs-chip-filter":customElements.get(i(e))||customElements.define(i(e),c);break;case"bs-ripple":customElements.get(i(e))||a()}}))}l();const b=c,p=l;export{b as BsChipFilter,p as defineCustomElement}
@@ -1 +1 @@
1
- import{B as o,d as r}from"./p-_zxYDrzi.js";const s=o,p=r;export{s as BsChipInformative,p as defineCustomElement}
1
+ import{B as s,d as o}from"./p-EQrsaDKp.js";const p=s,r=o;export{p as BsChipInformative,r as defineCustomElement}
@@ -1 +1 @@
1
- import{t as i,p as e,H as t,c as s,h as n,d as a}from"./p-CcAX4o5o.js";import{d as p}from"./p-DaKBSL2O.js";const b=e(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.bsChange=s(this,"bsChange"),this.bsRemove=s(this,"bsRemove")}get el(){return this}size="lg";removeLabel="Remove";selected=!1;disabled=!1;hasIcon=!1;labelText="";bsChange;bsRemove;componentWillLoad(){this.hasIcon=this.hasSlottedContent("icon"),this.labelText=this.getLabelText()}hasSlottedContent(i){return Array.from(this.el.childNodes).some((e=>e.nodeType===Node.ELEMENT_NODE&&e.getAttribute("slot")===i))}getLabelText(){return Array.from(this.el.childNodes).filter((i=>!(i.nodeType===Node.ELEMENT_NODE&&i.hasAttribute("slot")))).map((i=>i.textContent)).join("").trim()}onIconSlotchange=i=>{this.hasIcon=i.target.assignedNodes().length>0};onLabelSlotchange=()=>{this.labelText=this.getLabelText()};onBodyClick=()=>{this.selected=!this.selected,this.bsChange.emit(this.selected)};onRemoveClick=()=>{this.bsRemove.emit()};render(){return n(a,{key:"8ab76f06cb483dbc73d33b0d18a5bd480835a73c",class:`bs-chip-input bs-chip-input--${this.size} bs-chip-input--${this.hasIcon?"icon":"text"}`},n("button",{key:"5bbf3a240d0e3bafbb05d2e1f08b1a536957845a",type:"button",part:"body",class:"bs-chip-input__body",disabled:this.disabled,"aria-pressed":this.selected+"",onClick:this.onBodyClick},n("bs-ripple",{key:"0fb4d5f11b8f4f688c84d81d8f6a5a1588ef8e98",part:"ripple",centered:!1,disabled:this.disabled}),n("span",{key:"6933afdd4c1d7cbee3c44fd5a4bdda6d50a057c6",part:"icon",class:"bs-chip-input__icon "+(this.hasIcon?"bs-chip-input__icon--visible":"")},n("slot",{key:"76ceb9abac6525345e6c10fd0d32391e566754bb",name:"icon",onSlotchange:this.onIconSlotchange})),n("span",{key:"436b7b71ce8cfd6233a42097a54a0b4b1b63d446",part:"label",class:"bs-chip-input__label"},n("slot",{key:"9a8e09c8a8cbc92951251b8cfb28b2bce6e21225",onSlotchange:this.onLabelSlotchange}))),n("button",{key:"52d5a5fac66271314c75bec429c9b44b21d9ea1c",type:"button",part:"remove",class:"bs-chip-input__remove",disabled:this.disabled,"aria-label":`${this.removeLabel} ${this.labelText}`,onClick:this.onRemoveClick},n("bs-ripple",{key:"fa18494eb706510dd91701d98b670b123dfbfb3c",part:"ripple",centered:!0,disabled:this.disabled}),n(o,{key:"a56ac8cbc660bd9349ab82179901eadcb005ea2a"})))}static get delegatesFocus(){return!0}static get style(){return":host{display:inline-flex;align-items:center;box-sizing:border-box;gap:var(--bs-chip-input-gap);border-radius:var(--bs-border-radius-full);font-family:inherit;font-size:var(--bs-chip-input-font-size);font-weight:var(--bs-chip-input-font-weight);line-height:calc(var(--bs-chip-input-line-height) * 1px);white-space:nowrap;background:var(--bs-chip-bg-primary-container);color:var(--bs-chip-text-primary);transition:background-color var(--bs-duration-fast, 120ms) var(--bs-easing-standard, ease);--bs-chip-input-height-md:var(--bs-spacing-300);--bs-chip-input-height-lg:var(--bs-spacing-400);--bs-chip-input-gap:var(--bs-spacing-50);--bs-chip-input-padding-x-glyph-side:var(--bs-spacing-100);--bs-chip-input-padding-x-plain-side:var(--bs-spacing-150);--bs-chip-input-font-size:var(--bs-font-size-sm);--bs-chip-input-line-height:var(--bs-line-height-body-sm);--bs-chip-input-font-weight:var(--bs-font-weight-regular)}:host(.bs-chip-input--md){height:var(--bs-chip-input-height-md)}:host(.bs-chip-input--lg){height:var(--bs-chip-input-height-lg)}.bs-chip-input__body,.bs-chip-input__remove{display:flex;align-items:center;height:100%;border:none;background:transparent;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer}.bs-chip-input__body{gap:var(--bs-chip-input-gap);padding-inline-end:0}:host(.bs-chip-input--icon) .bs-chip-input__body{padding-inline-start:var(--bs-chip-input-padding-x-glyph-side)}:host(.bs-chip-input--text) .bs-chip-input__body{padding-inline-start:var(--bs-chip-input-padding-x-plain-side)}.bs-chip-input__remove{padding-inline-start:0;padding-inline-end:var(--bs-chip-input-padding-x-glyph-side)}.bs-chip-input__icon{display:none;flex-shrink:0}.bs-chip-input__icon--visible{display:flex;align-items:center}.bs-chip-input__icon ::slotted(*){display:block;width:16px;height:16px}.bs-chip-input__icon ::slotted(bs-avatar){width:auto;height:auto}.bs-chip-input__label{display:flex;align-items:center}.bs-chip-input__remove svg{display:block;width:16px;height:16px}:host(:hover:not([disabled])){background:var(--bs-chip-bg-primary-container-hover)}:host(:focus-within:not([disabled])){background:var(--bs-chip-bg-primary-container-focused);outline:2px solid var(--bs-chip-border-focus);outline-offset:2px}:host(:active:not([disabled])){background:var(--bs-chip-bg-primary-container-pressed)}:host([selected]){background:var(--bs-chip-bg-primary);color:var(--bs-chip-text-inverse)}:host([selected]:hover:not([disabled])){background:var(--bs-chip-bg-primary-hover)}:host([selected]:focus-within:not([disabled])){background:var(--bs-chip-bg-primary-focused)}:host([selected]:active:not([disabled])){background:var(--bs-chip-bg-primary-pressed)}:host([disabled]){background:var(--bs-chip-bg-disabled);color:var(--bs-chip-text-disabled)}.bs-chip-input__body:disabled,.bs-chip-input__remove:disabled{cursor:not-allowed}.bs-chip-input__body,.bs-chip-input__remove{position:relative;border-radius:inherit}"}},[785,"bs-chip-input",{size:[1],removeLabel:[1,"remove-label"],selected:[1540],disabled:[516],hasIcon:[32],labelText:[32]}]),o=()=>n("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},n("path",{d:"M12.5 3.5L3.5 12.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),n("path",{d:"M12.5 12.5L3.5 3.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}));function r(){"undefined"!=typeof customElements&&["bs-chip-input","bs-ripple"].forEach((e=>{switch(e){case"bs-chip-input":customElements.get(i(e))||customElements.define(i(e),b);break;case"bs-ripple":customElements.get(i(e))||p()}}))}r();const c=b,h=r;export{c as BsChipInput,h as defineCustomElement}
1
+ import{t as i,p as e,H as t,c as s,h as a,d as n}from"./p-CcAX4o5o.js";import{d as p}from"./p-ESiaIgGU.js";const o=e(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.bsChange=s(this,"bsChange"),this.bsRemove=s(this,"bsRemove")}get el(){return this}size="lg";removeLabel="Remove";selected=!1;disabled=!1;hasIcon=!1;labelText="";bsChange;bsRemove;componentWillLoad(){this.hasIcon=this.hasSlottedContent("icon"),this.labelText=this.getLabelText()}hasSlottedContent(i){return Array.from(this.el.childNodes).some((e=>e.nodeType===Node.ELEMENT_NODE&&e.getAttribute("slot")===i))}getLabelText(){return Array.from(this.el.childNodes).filter((i=>!(i.nodeType===Node.ELEMENT_NODE&&i.hasAttribute("slot")))).map((i=>i.textContent)).join("").trim()}onIconSlotchange=i=>{this.hasIcon=i.target.assignedNodes().length>0};onLabelSlotchange=()=>{this.labelText=this.getLabelText()};onBodyClick=()=>{this.selected=!this.selected,this.bsChange.emit(this.selected)};onRemoveClick=()=>{this.bsRemove.emit()};render(){return a(n,{key:"138a3e7ee6dc966c580f664ec184466f71272f11",class:`bs-chip-input bs-chip-input--${this.size} bs-chip-input--${this.hasIcon?"icon":"text"}`},a("button",{key:"6d81c76a47b8a4f5d410f62da65bc21fd73ab326",type:"button",part:"body",class:"bs-chip-input__body",disabled:this.disabled,"aria-pressed":this.selected+"",onClick:this.onBodyClick},a("bs-ripple",{key:"d625ac5a1c658215730aa694b69e426a3f17e138",part:"ripple",centered:!1,disabled:this.disabled}),a("span",{key:"d073ce98fe4a7ad884c055da57ccab870337f468",part:"icon",class:"bs-chip-input__icon "+(this.hasIcon?"bs-chip-input__icon--visible":"")},a("slot",{key:"fc9323f052532e20e443ec52d36f7343a5438148",name:"icon",onSlotchange:this.onIconSlotchange})),a("span",{key:"0e174e2a29afbaff6e6468e9b0e1fc17d1e59fbf",part:"label",class:"bs-chip-input__label"},a("slot",{key:"a1c9457b41944c59dc49666361eeae0f2dceedb0",onSlotchange:this.onLabelSlotchange}))),a("button",{key:"981a4d06c8fce2ee6ca3a01adb438eaa95652aac",type:"button",part:"remove",class:"bs-chip-input__remove",disabled:this.disabled,"aria-label":`${this.removeLabel} ${this.labelText}`,onClick:this.onRemoveClick},a("bs-ripple",{key:"8946515916aaedcd3d73961be2e9534e57ab0e17",part:"ripple",centered:!0,disabled:this.disabled}),a(r,{key:"2f67baae389fc4fbfaa29f4e6c720a2e02a8c8c4"})))}static get delegatesFocus(){return!0}static get style(){return":host{display:inline-flex;align-items:center;box-sizing:border-box;gap:var(--bs-chip-input-gap);border-radius:var(--bs-border-radius-full);font-family:inherit;font-size:var(--bs-chip-input-font-size);font-weight:var(--bs-chip-input-font-weight);line-height:calc(var(--bs-chip-input-line-height) * 1px);white-space:nowrap;background:var(--bs-chip-bg-primary-container);color:var(--bs-chip-text-primary);transition:background-color var(--bs-duration-fast, 120ms) var(--bs-easing-standard, ease);--bs-chip-input-height-md:var(--bs-spacing-300);--bs-chip-input-height-lg:var(--bs-spacing-400);--bs-chip-input-gap:var(--bs-spacing-50);--bs-chip-input-padding-x-glyph-side:var(--bs-spacing-100);--bs-chip-input-padding-x-plain-side:var(--bs-spacing-150);--bs-chip-input-font-size:var(--bs-font-size-sm);--bs-chip-input-line-height:var(--bs-line-height-body-sm);--bs-chip-input-font-weight:var(--bs-font-weight-regular)}:host(.bs-chip-input--md){height:var(--bs-chip-input-height-md)}:host(.bs-chip-input--lg){height:var(--bs-chip-input-height-lg)}.bs-chip-input__body,.bs-chip-input__remove{display:flex;align-items:center;height:100%;border:none;background:transparent;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer}.bs-chip-input__body{gap:var(--bs-chip-input-gap);padding-inline-end:0}:host(.bs-chip-input--icon) .bs-chip-input__body{padding-inline-start:var(--bs-chip-input-padding-x-glyph-side)}:host(.bs-chip-input--text) .bs-chip-input__body{padding-inline-start:var(--bs-chip-input-padding-x-plain-side)}.bs-chip-input__remove{padding-inline-start:0;padding-inline-end:var(--bs-chip-input-padding-x-glyph-side)}.bs-chip-input__icon{display:none;flex-shrink:0}.bs-chip-input__icon--visible{display:flex;align-items:center}.bs-chip-input__icon ::slotted(*){display:block;width:16px;height:16px}.bs-chip-input__icon ::slotted(bs-avatar){width:auto;height:auto}.bs-chip-input__label{display:flex;align-items:center}.bs-chip-input__remove svg{display:block;width:16px;height:16px}:host(:hover:not([disabled])){background:var(--bs-chip-bg-primary-container-hover)}:host(:focus-within:not([disabled])){background:var(--bs-chip-bg-primary-container-focused);outline:2px solid var(--bs-chip-border-focus);outline-offset:2px}:host(:active:not([disabled])){background:var(--bs-chip-bg-primary-container-pressed)}:host([selected]){background:var(--bs-chip-bg-primary);color:var(--bs-chip-text-inverse)}:host([selected]:hover:not([disabled])){background:var(--bs-chip-bg-primary-hover)}:host([selected]:focus-within:not([disabled])){background:var(--bs-chip-bg-primary-focused)}:host([selected]:active:not([disabled])){background:var(--bs-chip-bg-primary-pressed)}:host([disabled]){background:var(--bs-chip-bg-disabled);color:var(--bs-chip-text-disabled)}.bs-chip-input__body:disabled,.bs-chip-input__remove:disabled{cursor:not-allowed}.bs-chip-input__body,.bs-chip-input__remove{position:relative;border-radius:inherit}"}},[785,"bs-chip-input",{size:[1],removeLabel:[1,"remove-label"],selected:[1540],disabled:[516],hasIcon:[32],labelText:[32]}]),r=()=>a("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},a("path",{d:"M12.5 3.5L3.5 12.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),a("path",{d:"M12.5 12.5L3.5 3.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}));function c(){"undefined"!=typeof customElements&&["bs-chip-input","bs-ripple"].forEach((e=>{switch(e){case"bs-chip-input":customElements.get(i(e))||customElements.define(i(e),o);break;case"bs-ripple":customElements.get(i(e))||p()}}))}c();const h=o,b=c;export{h as BsChipInput,b as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as s,H as a,c as i,h as t}from"./p-CcAX4o5o.js";import{d as r}from"./p-mxDA3wKn.js";import{d as c}from"./p-DaKBSL2O.js";import{d as o}from"./p-KiyJJwzr.js";const n=s(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsOpen=i(this,"bsOpen")}fileName="Source";sourceName;page;href;bsOpen;render(){const e=null!=this.page&&""!==this.page;return t("bs-card",{key:"c4198a9c562b4ce627f15e12796f5d72d44cd9a2",part:"container",class:"bs-citation-preview",surface:"base"},t("div",{key:"33d193ce63ea5e0234a2a3dcd6e39cd3c119aa76",class:"bs-citation-preview__body"},t("bs-source-link",{key:"38929a73cc1b795f33980bc09408ba41ab745701",part:"header",fileName:this.fileName,sourceName:this.sourceName,href:this.href,onBsOpen:()=>this.bsOpen.emit()}),t("div",{key:"0d90d721c18c3adc62c594f7df5248308f23795d",part:"snippet",class:"bs-citation-preview__snippet"},t("slot",{key:"cf3b1b80d2c97f7f637babda7461d2b2559c2bad"})),t("div",{key:"fe56a067454031faefa8bc2ef78f46c5f5abd8b7",class:"bs-citation-preview__footer"},t("slot",{key:"142c1774ca2f6e4282fdf9edf8d6b1cd77158120",name:"footer"},e&&t("span",{key:"89b4fe38e813d7d88c00b4c19a8ca892eaa73ddb",part:"page",class:"bs-citation-preview__page"},"Page ",this.page)))))}static get style(){return":host{display:block;--bs-citation-preview-gap:var(--bs-spacing-100);--bs-citation-preview-snippet-color:var(--bs-text-default);--bs-citation-preview-snippet-bg:var(--bs-surface-base);--bs-citation-preview-snippet-radius:var(--bs-border-radius-100);--bs-citation-preview-page-color:var(--bs-text-secondary)}.bs-citation-preview{--bs-card-border-width:var(--bs-border-width-thin);--bs-card-border-color:var(--bs-border-default);--bs-card-padding:var(--bs-spacing-100);--bs-card-shadow:none}.bs-citation-preview__body{display:flex;flex-direction:column;gap:var(--bs-citation-preview-gap)}.bs-citation-preview__snippet{padding:var(--bs-spacing-150);border-radius:var(--bs-citation-preview-snippet-radius);background:var(--bs-citation-preview-snippet-bg);color:var(--bs-citation-preview-snippet-color);font-size:var(--bs-font-size-sm);line-height:var(--bs-line-height-normal)}.bs-citation-preview__page{color:var(--bs-citation-preview-page-color);font-size:var(--bs-font-size-sm);line-height:var(--bs-line-height-normal)}"}},[769,"bs-citation-preview",{fileName:[1,"file-name"],sourceName:[1,"source-name"],page:[8],href:[1]}]);function b(){"undefined"!=typeof customElements&&["bs-citation-preview","bs-card","bs-ripple","bs-source-link"].forEach((s=>{switch(s){case"bs-citation-preview":customElements.get(e(s))||customElements.define(e(s),n);break;case"bs-card":customElements.get(e(s))||r();break;case"bs-ripple":customElements.get(e(s))||c();break;case"bs-source-link":customElements.get(e(s))||o()}}))}b();const p=n,d=b;export{p as BsCitationPreview,d as defineCustomElement}
1
+ import{t as e,p as s,H as i,c as a,h as t}from"./p-CcAX4o5o.js";import{d as r}from"./p-mxDA3wKn.js";import{d as c}from"./p-ESiaIgGU.js";import{d as o}from"./p-DLGXRivO.js";const b=s(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsOpen=a(this,"bsOpen")}fileName="Source";sourceName;page;href;bsOpen;render(){const e=null!=this.page&&""!==this.page;return t("bs-card",{key:"4cd2544f4f2432c805caa775406c96dae7561452",part:"container",class:"bs-citation-preview",surface:"base"},t("div",{key:"6d71dc9004e751fca3cd0d2af1d480f812e1bb9c",class:"bs-citation-preview__body"},t("bs-source-link",{key:"c089f659de271f201cbedb3b1661f11cad7daabb",part:"header",fileName:this.fileName,sourceName:this.sourceName,href:this.href,onBsOpen:()=>this.bsOpen.emit()}),t("div",{key:"3010095752fb0cb0e695c12c378893b4973ec556",part:"snippet",class:"bs-citation-preview__snippet"},t("slot",{key:"04c9331812a9b9e23c0cd9eb08e52c516a0f4156"})),t("div",{key:"10d6028902c212b166810b0ef8f79e04a863d59b",class:"bs-citation-preview__footer"},t("slot",{key:"90108dc123a1b105e81094999660b768083edcbd",name:"footer"},e&&t("span",{key:"2f3f69d2ea1b59cde085cadc737d38c655b9b1db",part:"page",class:"bs-citation-preview__page"},"Page ",this.page)))))}static get style(){return":host{display:block;--bs-citation-preview-gap:var(--bs-spacing-100);--bs-citation-preview-snippet-color:var(--bs-text-default);--bs-citation-preview-snippet-bg:var(--bs-surface-base);--bs-citation-preview-snippet-radius:var(--bs-border-radius-100);--bs-citation-preview-page-color:var(--bs-text-secondary)}.bs-citation-preview{--bs-card-border-width:var(--bs-border-width-thin);--bs-card-border-color:var(--bs-border-default);--bs-card-padding:var(--bs-spacing-100);--bs-card-shadow:none}.bs-citation-preview__body{display:flex;flex-direction:column;gap:var(--bs-citation-preview-gap)}.bs-citation-preview__snippet{padding:var(--bs-spacing-150);border-radius:var(--bs-citation-preview-snippet-radius);background:var(--bs-citation-preview-snippet-bg);color:var(--bs-citation-preview-snippet-color);font-size:var(--bs-font-size-sm);line-height:var(--bs-line-height-normal)}.bs-citation-preview__page{color:var(--bs-citation-preview-page-color);font-size:var(--bs-font-size-sm);line-height:var(--bs-line-height-normal)}"}},[769,"bs-citation-preview",{fileName:[1,"file-name"],sourceName:[1,"source-name"],page:[8],href:[1]}]);function n(){"undefined"!=typeof customElements&&["bs-citation-preview","bs-card","bs-ripple","bs-source-link"].forEach((s=>{switch(s){case"bs-citation-preview":customElements.get(e(s))||customElements.define(e(s),b);break;case"bs-card":customElements.get(e(s))||r();break;case"bs-ripple":customElements.get(e(s))||c();break;case"bs-source-link":customElements.get(e(s))||o()}}))}n();const p=b,d=n;export{p as BsCitationPreview,d as defineCustomElement}
@@ -1 +1 @@
1
- import{t as o,p as e,H as s,c,h as i}from"./p-CcAX4o5o.js";import{d as r}from"./p-wscU7FUD.js";import{d as b}from"./p-mxDA3wKn.js";import{d as a}from"./p-DHZ_DStJ.js";import{d as t}from"./p-DaKBSL2O.js";const l=e(class extends s{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.bsCopy=c(this,"bsCopy")}get el(){return this}code;filename;lineNumbers=!1;wrap=!1;inline=!1;hideCopy=!1;copyLabel="Copy";copiedLabel="Copied";regionLabel="Code";bsCopy;copied=!1;slottedText="";timer;componentWillLoad(){this.slottedText=this.el.textContent??""}disconnectedCallback(){clearTimeout(this.timer)}text(){return(this.code??this.slottedText).replace(/^\n/,"").replace(/\s+$/,"")}onCopy=async()=>{const o=this.text();try{await navigator.clipboard.writeText(o)}catch{return}this.copied=!0,this.bsCopy.emit(o),clearTimeout(this.timer),this.timer=setTimeout((()=>this.copied=!1),2500)};onSlotchange=()=>{this.slottedText=this.el.textContent??""};render(){const o=i("code",{part:"code",class:"bs-code-block__code"},void 0!==this.code?this.code:i("slot",{onSlotchange:this.onSlotchange}));if(this.inline)return o;const e=!!this.filename||!this.hideCopy,s=this.lineNumbers?this.text().split("\n").length:0,c=s?Array.from({length:s},((o,e)=>e+1)).join("\n"):"",r=this.wrap&&!this.lineNumbers;return i("bs-card",{part:"container",class:"bs-code-block",surface:"container"},e&&i("div",{part:"header",slot:"header",class:"bs-code-block__header"},i("span",{part:"filename",class:"bs-code-block__filename"},this.filename),!this.hideCopy&&i("bs-button",{part:"copy-button",variant:"subtle",size:"sm",onClick:this.onCopy},i("bs-icon",{slot:"icon",name:this.copied?"check":"copy",size:"sm",tone:"inherit"}),this.copied?this.copiedLabel:this.copyLabel)),i("div",{part:"body",class:{"bs-code-block__body":!0,"bs-code-block__body--wrap":r},role:"region","aria-label":this.filename||this.regionLabel,tabindex:r?void 0:0},s>0&&i("pre",{part:"line-numbers",class:"bs-code-block__numbers","aria-hidden":"true"},c),i("pre",{class:"bs-code-block__pre"},o)),i("span",{class:"bs-code-block__live",role:"status","aria-live":"polite"},this.copied?this.copiedLabel:""))}static get style(){return":host{display:block;--bs-code-block-bg:var(--bs-surface-container);--bs-code-block-color:var(--bs-text-default);--bs-code-block-border-color:var(--bs-border-neutral-container);--bs-code-block-radius:var(--bs-border-radius-100);--bs-code-block-padding:var(--bs-spacing-200);--bs-code-block-font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;--bs-code-block-font-size:var(--bs-font-size-sm);--bs-code-block-line-height:var(--bs-line-height-relaxed);--bs-code-block-header-color:var(--bs-text-secondary);--bs-code-block-line-number-color:var(--bs-text-secondary);--bs-code-block-inline-padding:0 var(--bs-spacing-50);--bs-code-block-inline-radius:var(--bs-border-radius-50)}:host([inline]){display:inline}.bs-code-block{--bs-card-bg:var(--bs-code-block-bg);--bs-card-radius:var(--bs-code-block-radius);--bs-card-padding:0px;--bs-card-border-width:1px;--bs-card-border-color:var(--bs-code-block-border-color);--bs-card-shadow:none;color:var(--bs-code-block-color)}.bs-code-block__header{display:flex;align-items:center;justify-content:space-between;gap:var(--bs-spacing-100);box-sizing:border-box;padding:var(--bs-spacing-50) var(--bs-spacing-100) var(--bs-spacing-50) var(--bs-code-block-padding);border-bottom:1px solid var(--bs-code-block-border-color);font-size:var(--bs-font-size-sm);color:var(--bs-code-block-header-color)}.bs-code-block__filename{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bs-code-block__body{display:flex;overflow-x:auto;padding:var(--bs-code-block-padding)}.bs-code-block__body:focus-visible{outline:2px solid var(--bs-focus-ring, var(--bs-color-primary-default));outline-offset:-2px}.bs-code-block__pre,.bs-code-block__numbers{margin:0;font-family:var(--bs-code-block-font-family);font-size:var(--bs-code-block-font-size);line-height:var(--bs-code-block-line-height)}.bs-code-block__pre{flex:1 0 auto;min-width:0;tab-size:2}.bs-code-block__body--wrap .bs-code-block__pre{flex:1 1 auto;white-space:pre-wrap;overflow-wrap:anywhere}.bs-code-block__numbers{flex:none;padding-inline-end:var(--bs-spacing-200);text-align:end;color:var(--bs-code-block-line-number-color);user-select:none}.bs-code-block__code{font-family:inherit}:host([inline]) .bs-code-block__code{padding:var(--bs-code-block-inline-padding);border-radius:var(--bs-code-block-inline-radius);background:var(--bs-code-block-bg);color:var(--bs-code-block-color);font-family:var(--bs-code-block-font-family);font-size:0.9em}.bs-code-block__live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media (forced-colors: active){:host([inline]) .bs-code-block__code{border:1px solid CanvasText}}"}},[769,"bs-code-block",{code:[1],filename:[1],lineNumbers:[516,"line-numbers"],wrap:[516],inline:[516],hideCopy:[4,"hide-copy"],copyLabel:[1,"copy-label"],copiedLabel:[1,"copied-label"],regionLabel:[1,"region-label"],copied:[32],slottedText:[32]}]);function n(){"undefined"!=typeof customElements&&["bs-code-block","bs-button","bs-card","bs-icon","bs-ripple"].forEach((e=>{switch(e){case"bs-code-block":customElements.get(o(e))||customElements.define(o(e),l);break;case"bs-button":customElements.get(o(e))||r();break;case"bs-card":customElements.get(o(e))||b();break;case"bs-icon":customElements.get(o(e))||a();break;case"bs-ripple":customElements.get(o(e))||t()}}))}n();const d=l,p=n;export{d as BsCodeBlock,p as defineCustomElement}
1
+ import{t as o,p as e,H as s,c,h as i}from"./p-CcAX4o5o.js";import{d as r}from"./p-BkzRLgh4.js";import{d as b}from"./p-mxDA3wKn.js";import{d as a}from"./p-5yADpXI0.js";import{d as t}from"./p-ESiaIgGU.js";const l=e(class extends s{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.bsCopy=c(this,"bsCopy")}get el(){return this}code;filename;lineNumbers=!1;wrap=!1;inline=!1;hideCopy=!1;copyLabel="Copy";copiedLabel="Copied";regionLabel="Code";bsCopy;copied=!1;slottedText="";timer;componentWillLoad(){this.slottedText=this.el.textContent??""}disconnectedCallback(){clearTimeout(this.timer)}text(){return(this.code??this.slottedText).replace(/^\n/,"").replace(/\s+$/,"")}onCopy=async()=>{const o=this.text();try{await navigator.clipboard.writeText(o)}catch{return}this.copied=!0,this.bsCopy.emit(o),clearTimeout(this.timer),this.timer=setTimeout((()=>this.copied=!1),2500)};onSlotchange=()=>{this.slottedText=this.el.textContent??""};render(){const o=i("code",{part:"code",class:"bs-code-block__code"},void 0!==this.code?this.code:i("slot",{onSlotchange:this.onSlotchange}));if(this.inline)return o;const e=!!this.filename||!this.hideCopy,s=this.lineNumbers?this.text().split("\n").length:0,c=s?Array.from({length:s},((o,e)=>e+1)).join("\n"):"",r=this.wrap&&!this.lineNumbers;return i("bs-card",{part:"container",class:"bs-code-block",surface:"container"},e&&i("div",{part:"header",slot:"header",class:"bs-code-block__header"},i("span",{part:"filename",class:"bs-code-block__filename"},this.filename),!this.hideCopy&&i("bs-button",{part:"copy-button",variant:"subtle",size:"sm",onClick:this.onCopy},i("bs-icon",{slot:"icon",name:this.copied?"check":"copy",size:"sm",tone:"inherit"}),this.copied?this.copiedLabel:this.copyLabel)),i("div",{part:"body",class:{"bs-code-block__body":!0,"bs-code-block__body--wrap":r},role:"region","aria-label":this.filename||this.regionLabel,tabindex:r?void 0:0},s>0&&i("pre",{part:"line-numbers",class:"bs-code-block__numbers","aria-hidden":"true"},c),i("pre",{class:"bs-code-block__pre"},o)),i("span",{class:"bs-code-block__live",role:"status","aria-live":"polite"},this.copied?this.copiedLabel:""))}static get style(){return":host{display:block;--bs-code-block-bg:var(--bs-surface-container);--bs-code-block-color:var(--bs-text-default);--bs-code-block-border-color:var(--bs-border-neutral-container);--bs-code-block-radius:var(--bs-border-radius-100);--bs-code-block-padding:var(--bs-spacing-200);--bs-code-block-font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;--bs-code-block-font-size:var(--bs-font-size-sm);--bs-code-block-line-height:var(--bs-line-height-relaxed);--bs-code-block-header-color:var(--bs-text-secondary);--bs-code-block-line-number-color:var(--bs-text-secondary);--bs-code-block-inline-padding:0 var(--bs-spacing-50);--bs-code-block-inline-radius:var(--bs-border-radius-50)}:host([inline]){display:inline}.bs-code-block{--bs-card-bg:var(--bs-code-block-bg);--bs-card-radius:var(--bs-code-block-radius);--bs-card-padding:0px;--bs-card-border-width:1px;--bs-card-border-color:var(--bs-code-block-border-color);--bs-card-shadow:none;color:var(--bs-code-block-color)}.bs-code-block__header{display:flex;align-items:center;justify-content:space-between;gap:var(--bs-spacing-100);box-sizing:border-box;padding:var(--bs-spacing-50) var(--bs-spacing-100) var(--bs-spacing-50) var(--bs-code-block-padding);border-bottom:1px solid var(--bs-code-block-border-color);font-size:var(--bs-font-size-sm);color:var(--bs-code-block-header-color)}.bs-code-block__filename{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bs-code-block__body{display:flex;overflow-x:auto;padding:var(--bs-code-block-padding)}.bs-code-block__body:focus-visible{outline:2px solid var(--bs-focus-ring, var(--bs-color-primary-default));outline-offset:-2px}.bs-code-block__pre,.bs-code-block__numbers{margin:0;font-family:var(--bs-code-block-font-family);font-size:var(--bs-code-block-font-size);line-height:var(--bs-code-block-line-height)}.bs-code-block__pre{flex:1 0 auto;min-width:0;tab-size:2}.bs-code-block__body--wrap .bs-code-block__pre{flex:1 1 auto;white-space:pre-wrap;overflow-wrap:anywhere}.bs-code-block__numbers{flex:none;padding-inline-end:var(--bs-spacing-200);text-align:end;color:var(--bs-code-block-line-number-color);user-select:none}.bs-code-block__code{font-family:inherit}:host([inline]) .bs-code-block__code{padding:var(--bs-code-block-inline-padding);border-radius:var(--bs-code-block-inline-radius);background:var(--bs-code-block-bg);color:var(--bs-code-block-color);font-family:var(--bs-code-block-font-family);font-size:0.9em}.bs-code-block__live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media (forced-colors: active){:host([inline]) .bs-code-block__code{border:1px solid CanvasText}}"}},[769,"bs-code-block",{code:[1],filename:[1],lineNumbers:[516,"line-numbers"],wrap:[516],inline:[516],hideCopy:[4,"hide-copy"],copyLabel:[1,"copy-label"],copiedLabel:[1,"copied-label"],regionLabel:[1,"region-label"],copied:[32],slottedText:[32]}]);function n(){"undefined"!=typeof customElements&&["bs-code-block","bs-button","bs-card","bs-icon","bs-ripple"].forEach((e=>{switch(e){case"bs-code-block":customElements.get(o(e))||customElements.define(o(e),l);break;case"bs-button":customElements.get(o(e))||r();break;case"bs-card":customElements.get(o(e))||b();break;case"bs-icon":customElements.get(o(e))||a();break;case"bs-ripple":customElements.get(o(e))||t()}}))}n();const d=l,p=n;export{d as BsCodeBlock,p as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as t,H as s,c as a,h as o}from"./p-CcAX4o5o.js";import{d as i}from"./p-_zxYDrzi.js";import{d as n}from"./p-wd9-vGpQ.js";import{d as l}from"./p-B5yjDh8h.js";import{d as c}from"./p-BB1HiIxJ.js";import{d as r}from"./p-CxNNy2m6.js";import{d}from"./p-BR7C-aKy.js";import{d as m}from"./p-DaKBSL2O.js";import{d as b}from"./p-D4W5LcEW.js";const p=["recent","suggested","commands","navigation","records"],h=[...p,"try-instead"];let u=0;const v={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},f=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsInput=a(this,"bsInput"),this.bsSelect=a(this,"bsSelect"),this.bsSuggestion=a(this,"bsSuggestion"),this.bsOpenChange=a(this,"bsOpenChange"),this.bsScopeExit=a(this,"bsScopeExit")}get el(){return this}id="bs-cp-"+ ++u;itemSeq=0;observer;dialogEl;comboEl;inputEl;previousFocus;userMoved=!1;value="";open=!1;commandsOnly=!1;status="default";label="Command palette";placeholder="Type a command or search…";keepOpenOnSelect=!1;showFooter=!0;hotkey="";scopeLabel;recentLabel="Recent";suggestedLabel="Suggested";commandsLabel="Commands";navigationLabel="Navigation";recordsLabel="Records";tryInsteadLabel="Try instead";navigateLabel="Navigate";openLabel="Open";closeLabel="Close";commandsOnlyLabel="Commands only";allResultsLabel="All results";emptyHeading="No commands or records";emptyDescription="Check the spelling, or search records instead.";didYouMean;didYouMeanLabel="Did you mean";loadingLabel="Loading…";listLabel="Results";filled={recent:!1,suggested:!1,commands:!1,navigation:!1,records:!1,"try-instead":!1};activeId=null;bsInput;bsSelect;bsSuggestion;bsOpenChange;bsScopeExit;async show(){this.open=!0}async close(){this.open=!1}onValueChange(){this.commandsOnly=this.value.startsWith(">")}resetMoved(){this.userMoved=!1}componentWillLoad(){this.commandsOnly=this.value.startsWith(">"),this.readFilled(),this.prepareItems()}connectedCallback(){document.addEventListener("keydown",this.onDocKeyDown),this.observer=new MutationObserver((()=>{this.readFilled(),this.prepareItems(),this.syncActive()})),this.observer.observe(this.el,{childList:!0})}disconnectedCallback(){document.removeEventListener("keydown",this.onDocKeyDown),this.observer?.disconnect(),this.dialogEl?.open&&this.dialogEl.close()}componentDidRender(){this.syncDialog(),this.prepareItems(),this.syncActive()}syncDialog(){const e=this.dialogEl;if(e)if(this.open&&!e.open)this.previousFocus=document.activeElement,e.showModal(),this.focusInput();else if(!this.open&&e.open){e.close();const t=this.previousFocus;this.previousFocus=null,t&&t.isConnected&&t.focus?.()}}focusInput(){this.inputEl?.focus();const e=this.inputEl?.shadowRoot?.querySelector("input");e?.select?.()}onDocKeyDown=e=>{if(!this.hotkey||e.defaultPrevented)return;const t=this.hotkey.toLowerCase().split("+").map((e=>e.trim())),s=t[t.length-1],a=t.slice(0,-1),o=/mac|iphone|ipad/i.test(navigator.platform||navigator.userAgent),i=e=>a.includes(e),n=i("meta")||i("cmd")||i("mod")&&o,l=i("ctrl")||i("mod")&&!o;e.key.toLowerCase()===s&&e.metaKey===n&&e.ctrlKey===l&&e.altKey===i("alt")&&e.shiftKey===i("shift")&&(e.preventDefault(),this.setOpen(!this.open))};setOpen(e){this.open!==e&&(this.open=e,this.bsOpenChange.emit(e))}allItems(){return Array.from(this.el.children).filter((e=>"BS-SEARCH-ITEM"===e.tagName&&h.includes(e.getAttribute("slot"))))}shownSections(){return"loading"===this.status?[]:"empty"===this.status?["try-instead"]:p}visibleItems(){if(!this.open)return[];const e=this.allItems();return this.shownSections().flatMap((t=>e.filter((e=>e.getAttribute("slot")===t))))}enabledItems(){return this.visibleItems().filter((e=>!e.disabled))}readFilled(){const e={...this.filled};let t=!1;for(const s of h){const a=Array.from(this.el.children).some((e=>e.getAttribute("slot")===s));e[s]!==a&&(e[s]=a,t=!0)}t&&(this.filled=e)}prepareItems(){for(const e of this.allItems())"option"!==e.selectionRole&&(e.selectionRole="option"),e.id||(e.id=`${this.id}-opt-${++this.itemSeq}`)}syncActive(){const e=this.enabledItems();let t,s=this.activeId;this.open&&e.length?this.userMoved&&e.some((e=>e.id===s))||(s=e[0].id):s=null,s!==this.activeId&&(this.activeId=s);for(const e of this.allItems()){const a=!!s&&e.id===s;a&&(t=e),e.active!==a&&(e.active=a)}this.comboEl&&(this.comboEl.ariaActiveDescendantElement=t??null)}setActive(e){this.userMoved=!0,this.activeId=e.id;for(const t of this.allItems())t.active=t.id===e.id;this.comboEl&&(this.comboEl.ariaActiveDescendantElement=e),e.scrollIntoView?.({block:"nearest"})}onInput=e=>{e.stopPropagation(),this.value=e.detail,this.userMoved=!1;const t=this.value.startsWith(">");this.bsInput.emit({value:this.value,query:(t?this.value.slice(1):this.value).trim(),commandsOnly:t})};onKeyDown=e=>{switch(e.key){case"ArrowDown":case"ArrowUp":{e.preventDefault();const t=this.enabledItems();if(!t.length)return;const s=t.findIndex((e=>e.id===this.activeId));return void this.setActive(t["ArrowDown"===e.key?(s+1)%t.length:s<=0?t.length-1:s-1])}case"Enter":{const t=this.enabledItems().find((e=>e.id===this.activeId));return void(t&&(e.preventDefault(),t.click()))}case"Backspace":return void(this.scopeLabel&&""===this.value&&this.bsScopeExit.emit())}};onDialogKeyDown=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),this.setOpen(!1))};onCancel=e=>{e.preventDefault(),this.setOpen(!1)};onDialogClick=e=>{e.target===this.dialogEl&&this.setOpen(!1)};onItemSelect(e){const t=e.target;t&&"BS-SEARCH-ITEM"===t.tagName&&(e.stopPropagation(),this.bsSelect.emit({value:e.detail,section:t.getAttribute("slot")??"",commandsOnly:this.commandsOnly}),this.keepOpenOnSelect||this.setOpen(!1))}onResultsMouseOver=e=>{const t=e.composedPath().find((e=>"BS-SEARCH-ITEM"===e.tagName));t&&!t.disabled&&t.id!==this.activeId&&this.setActive(t)};sectionLabel(e){return{recent:this.recentLabel,suggested:this.suggestedLabel,commands:this.commandsLabel,navigation:this.navigationLabel,records:this.recordsLabel,"try-instead":this.tryInsteadLabel}[e]}renderSection(e){const t=`${this.id}-h-${e}`;return o("div",{part:"section",class:"bs-command-palette__section",role:"group","aria-labelledby":t},o("div",{part:"section-header",id:t,class:"bs-command-palette__section-header"},this.sectionLabel(e)),o("slot",{name:e}))}renderHint(e,t){return o("span",{part:"hint",class:"bs-command-palette__hint"},e,o("span",{class:"bs-command-palette__hint-text"},t))}renderFooter(){const e=e=>o("bs-key",null,o("svg",{slot:"icon",...v},o("path",{d:e})));return o("div",{part:"footer",class:"bs-command-palette__footer"},this.renderHint([e("M12 19V5M5 12l7-7 7 7"),e("M12 5v14M5 12l7 7 7-7")],this.navigateLabel),this.renderHint([o("bs-key",null,o("svg",{slot:"icon",...v},o("path",{d:"M9 14 4 9l5-5"}),o("path",{d:"M4 9h10.5a5.5 5.5 0 0 1 0 11H11"})))],this.openLabel),this.renderHint([o("bs-key",{label:"Esc"})],this.closeLabel),o("span",{class:"bs-command-palette__spacer"}),this.commandsOnly?this.renderHint([o("bs-key",{label:"Backspace"})],this.allResultsLabel):this.renderHint([o("bs-key",{label:">"})],this.commandsOnlyLabel))}renderEmpty(){return o("div",{part:"empty",class:"bs-command-palette__empty"},o("svg",{class:"bs-command-palette__empty-icon",...v,"stroke-width":"1.5"},o("circle",{cx:"11",cy:"11",r:"7"}),o("path",{d:"m20 20-3.5-3.5M8.5 11h5"})),o("div",{class:"bs-command-palette__empty-heading"},this.emptyHeading),o("div",{class:"bs-command-palette__empty-description"},this.emptyDescription),this.didYouMean&&o("div",{class:"bs-command-palette__empty-description"},this.didYouMeanLabel," ",o("button",{type:"button",class:"bs-command-palette__link",onClick:()=>this.bsSuggestion.emit(this.didYouMean)},this.didYouMean)))}announcement(){return this.open?"empty"===this.status?this.emptyHeading:"loading"===this.status?this.loadingLabel:"":""}render(){const e=this.id+"-listbox",t="loading"===this.status,s="empty"===this.status,a=this.shownSections().filter((e=>this.filled[e])),i=a.length>0,n=t||s||i;return o("dialog",{key:"d06cdefa922bb8a64cd772f193d1fa74fbb22f37",ref:e=>this.dialogEl=e,part:"dialog",class:"bs-command-palette","aria-label":this.label,"aria-modal":"true",role:"dialog",onCancel:this.onCancel,onClose:()=>this.open&&this.setOpen(!1),onClick:this.onDialogClick,onKeyDown:this.onDialogKeyDown},o("div",{key:"0b6984201d7d83193e2b5e01d9cb877c8739f277",part:"panel",class:"bs-command-palette__panel"},o("div",{key:"ca8de39945a16582770e5e779d8fcd4bbdd42cf7",part:"search",class:"bs-command-palette__search"},this.scopeLabel&&o("bs-chip-informative",{key:"90521a09ef55ac7c861646650293c0eac56e554b",class:"bs-command-palette__scope",color:"info"},this.scopeLabel),o("div",{key:"f7cbe1a490c1ca4ad5516f164768443c28ff3efb",class:"bs-command-palette__field",ref:e=>this.comboEl=e,role:"combobox","aria-label":this.placeholder,"aria-expanded":i+"","aria-haspopup":"listbox","aria-controls":i?e:void 0,onKeyDown:this.onKeyDown},o("bs-input",{key:"698efbfc139c6e2660969420be7c166d0d6e7953",part:"input",ref:e=>this.inputEl=e,type:"search",value:this.value,placeholder:this.placeholder,onBsInput:this.onInput})),o("span",{key:"8bcae63dbfd913b0135c114782b4928c33d05ed6",class:"bs-command-palette__esc","aria-hidden":"true"},o("bs-key",{key:"a2c958b98e4ee3ee1ba7e09cc5f0d1434c418e59",label:"Esc"}))),n&&o("div",{key:"86be7cd95d0784de6620ac58688ba50898d34683",class:"bs-command-palette__divider",role:"presentation"}),n&&o("div",{key:"22511eee60186fdbe1c77018f910883e0e475d57",part:"results",class:"bs-command-palette__results","aria-busy":t+"",onMouseOver:this.onResultsMouseOver},t&&o("div",{key:"ba3ad0ee5b52d4149df64b6025cb9a1a5ef05146",class:"bs-command-palette__loading",role:"status"},o("bs-spinner",{key:"622094750110baec93176714b79fbe5fb984de9a",size:"sm"}),o("span",{key:"db0d4c37dd97cf62d8e525ef72e237a464fc3614"},this.loadingLabel)),s&&this.renderEmpty(),i&&o("div",{key:"532af3ce4bcc8c70994abcd69d807ff9a180ee44",id:e,class:"bs-command-palette__list",role:"listbox","aria-label":this.listLabel},a.map((e=>this.renderSection(e))))),this.showFooter&&this.renderFooter()),o("span",{key:"b27ff78735f3c4ed712ef187cf161c9f7a36bdd9",class:"bs-command-palette__live","aria-live":"polite"},this.announcement()))}static get watchers(){return{value:[{onValueChange:0}],status:[{resetMoved:0}],open:[{resetMoved:0}]}}static get style(){return":host{display:contents;--bs-command-palette-width:640px;--bs-command-palette-top:12vh;--bs-command-palette-max-height:60vh;--bs-command-palette-radius:var(--bs-border-radius-150);--bs-command-palette-bg:var(--bs-surface-base);--bs-command-palette-shadow:0 var(--bs-shadow-position-100) var(--bs-shadow-blur-200) 0 var(--bs-elevation-higher);--bs-command-palette-overlay:var(--bs-surface-overlay);--bs-command-palette-footer-bg:var(--bs-surface-container);--bs-command-palette-divider-color:var(--bs-border-default);--bs-command-palette-header-border-color:var(--bs-border-neutral-container);--bs-command-palette-header-color:var(--bs-text-muted);--bs-command-palette-hint-color:var(--bs-text-secondary);--bs-command-palette-z-index:var(--bs-z-index-modal)}.bs-command-palette{box-sizing:border-box;width:min(var(--bs-command-palette-width), calc(100vw - 2 * var(--bs-spacing-200)));max-width:none;max-height:none;margin:var(--bs-command-palette-top) auto auto;padding:0;border:0;background:transparent;color:var(--bs-text-default);overflow:visible;z-index:var(--bs-command-palette-z-index)}.bs-command-palette::backdrop{background:var(--bs-command-palette-overlay, var(--bs-surface-overlay))}.bs-command-palette__panel{display:flex;flex-direction:column;box-sizing:border-box;overflow:clip;border-radius:var(--bs-command-palette-radius);background:var(--bs-command-palette-bg);box-shadow:var(--bs-command-palette-shadow)}@media (prefers-reduced-motion: no-preference){.bs-command-palette[open] .bs-command-palette__panel{animation:bs-command-palette-in 120ms ease-out}}@keyframes bs-command-palette-in{from{opacity:0;transform:scale(0.98)}}.bs-command-palette__search{position:relative;display:flex;align-items:center;gap:var(--bs-spacing-100);padding:var(--bs-spacing-150)}.bs-command-palette__field{flex:1 1 auto;min-width:0}.bs-command-palette__field bs-input{width:100%}.bs-command-palette__scope{flex:none}.bs-command-palette__esc{position:absolute;top:50%;right:calc(var(--bs-spacing-150) + 9px);transform:translateY(-50%);display:inline-flex;pointer-events:none}.bs-command-palette__divider{height:1px;background:var(--bs-command-palette-divider-color)}.bs-command-palette__results{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-spacing-100);padding:var(--bs-spacing-100);max-height:var(--bs-command-palette-max-height);overflow-y:auto}.bs-command-palette__list{display:flex;flex-direction:column;gap:var(--bs-spacing-100)}.bs-command-palette__section{display:flex;flex-direction:column}.bs-command-palette__section-header{padding:var(--bs-spacing-150) var(--bs-spacing-150) var(--bs-spacing-100);border-bottom:1px solid var(--bs-command-palette-header-border-color);color:var(--bs-command-palette-header-color);font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-medium);line-height:20px}.bs-command-palette__loading{display:flex;align-items:center;justify-content:center;gap:var(--bs-spacing-100);padding:var(--bs-spacing-300) var(--bs-spacing-200);color:var(--bs-text-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-command-palette__empty{display:flex;flex-direction:column;align-items:center;gap:var(--bs-spacing-100);padding:var(--bs-spacing-300) var(--bs-spacing-200);text-align:center}.bs-command-palette__empty-icon{width:32px;height:32px;color:var(--bs-icon-default)}.bs-command-palette__empty-heading{color:var(--bs-text-default);font-size:var(--bs-font-size-md);font-weight:var(--bs-font-weight-semibold);line-height:24px}.bs-command-palette__empty-description{color:var(--bs-text-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-command-palette__link{margin:0;padding:0;border:0;border-bottom:1px solid var(--bs-border-info);background:none;color:var(--bs-text-link);font:inherit;line-height:20px;cursor:pointer}.bs-command-palette__link:focus-visible{outline:2px solid var(--bs-border-info);outline-offset:2px}.bs-command-palette__footer{display:flex;align-items:center;gap:var(--bs-spacing-200);padding:10px var(--bs-spacing-200);background:var(--bs-command-palette-footer-bg)}.bs-command-palette__hint{display:inline-flex;align-items:center;gap:var(--bs-spacing-50);color:var(--bs-command-palette-hint-color);font-size:var(--bs-font-size-sm);line-height:20px;white-space:nowrap}.bs-command-palette__spacer{flex:1 1 0}.bs-command-palette__live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}"}},[769,"bs-command-palette",{value:[1025],open:[1540],commandsOnly:[1540,"commands-only"],status:[513],label:[1],placeholder:[1],keepOpenOnSelect:[4,"keep-open-on-select"],showFooter:[4,"show-footer"],hotkey:[1],scopeLabel:[1,"scope-label"],recentLabel:[1,"recent-label"],suggestedLabel:[1,"suggested-label"],commandsLabel:[1,"commands-label"],navigationLabel:[1,"navigation-label"],recordsLabel:[1,"records-label"],tryInsteadLabel:[1,"try-instead-label"],navigateLabel:[1,"navigate-label"],openLabel:[1,"open-label"],closeLabel:[1,"close-label"],commandsOnlyLabel:[1,"commands-only-label"],allResultsLabel:[1,"all-results-label"],emptyHeading:[1,"empty-heading"],emptyDescription:[1,"empty-description"],didYouMean:[1,"did-you-mean"],didYouMeanLabel:[1,"did-you-mean-label"],loadingLabel:[1,"loading-label"],listLabel:[1,"list-label"],filled:[32],activeId:[32],show:[64],close:[64]},[[0,"bsItemSelect","onItemSelect"]],{value:[{onValueChange:0}],status:[{resetMoved:0}],open:[{resetMoved:0}]}]);function g(){"undefined"!=typeof customElements&&["bs-command-palette","bs-chip-informative","bs-icon-button","bs-input","bs-key","bs-menu","bs-menu-item","bs-ripple","bs-spinner"].forEach((t=>{switch(t){case"bs-command-palette":customElements.get(e(t))||customElements.define(e(t),f);break;case"bs-chip-informative":customElements.get(e(t))||i();break;case"bs-icon-button":customElements.get(e(t))||n();break;case"bs-input":customElements.get(e(t))||l();break;case"bs-key":customElements.get(e(t))||c();break;case"bs-menu":customElements.get(e(t))||r();break;case"bs-menu-item":customElements.get(e(t))||d();break;case"bs-ripple":customElements.get(e(t))||m();break;case"bs-spinner":customElements.get(e(t))||b()}}))}g();const y=f,_=g;export{y as BsCommandPalette,_ as defineCustomElement}
1
+ import{t as e,p as t,H as s,c as a,h as o}from"./p-CcAX4o5o.js";import{d as i}from"./p-EQrsaDKp.js";import{d as n}from"./p-DQY3n0nR.js";import{d as l}from"./p-B1pqQBKC.js";import{d as c}from"./p-B6bXreGu.js";import{d as r}from"./p-DoCH1kV9.js";import{d}from"./p-bOSY8sKI.js";import{d as b}from"./p-ESiaIgGU.js";import{d as m}from"./p-5OSJi5Hq.js";const p=["recent","suggested","commands","navigation","records"],h=[...p,"try-instead"];let u=0;const v={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},g=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsInput=a(this,"bsInput"),this.bsSelect=a(this,"bsSelect"),this.bsSuggestion=a(this,"bsSuggestion"),this.bsOpenChange=a(this,"bsOpenChange"),this.bsScopeExit=a(this,"bsScopeExit")}get el(){return this}id="bs-cp-"+ ++u;itemSeq=0;observer;dialogEl;comboEl;inputEl;previousFocus;userMoved=!1;value="";open=!1;commandsOnly=!1;status="default";label="Command palette";placeholder="Type a command or search…";keepOpenOnSelect=!1;showFooter=!0;hotkey="";scopeLabel;recentLabel="Recent";suggestedLabel="Suggested";commandsLabel="Commands";navigationLabel="Navigation";recordsLabel="Records";tryInsteadLabel="Try instead";navigateLabel="Navigate";openLabel="Open";closeLabel="Close";commandsOnlyLabel="Commands only";allResultsLabel="All results";emptyHeading="No commands or records";emptyDescription="Check the spelling, or search records instead.";didYouMean;didYouMeanLabel="Did you mean";loadingLabel="Loading…";listLabel="Results";filled={recent:!1,suggested:!1,commands:!1,navigation:!1,records:!1,"try-instead":!1};activeId=null;bsInput;bsSelect;bsSuggestion;bsOpenChange;bsScopeExit;async show(){this.open=!0}async close(){this.open=!1}onValueChange(){this.commandsOnly=this.value.startsWith(">")}resetMoved(){this.userMoved=!1}componentWillLoad(){this.commandsOnly=this.value.startsWith(">"),this.readFilled(),this.prepareItems()}connectedCallback(){document.addEventListener("keydown",this.onDocKeyDown),this.observer=new MutationObserver((()=>{this.readFilled(),this.prepareItems(),this.syncActive()})),this.observer.observe(this.el,{childList:!0})}disconnectedCallback(){document.removeEventListener("keydown",this.onDocKeyDown),this.observer?.disconnect(),this.dialogEl?.open&&this.dialogEl.close()}componentDidRender(){this.syncDialog(),this.prepareItems(),this.syncActive()}syncDialog(){const e=this.dialogEl;if(e)if(this.open&&!e.open)this.previousFocus=document.activeElement,e.showModal(),this.focusInput();else if(!this.open&&e.open){e.close();const t=this.previousFocus;this.previousFocus=null,t&&t.isConnected&&t.focus?.()}}focusInput(){this.inputEl?.focus();const e=this.inputEl?.shadowRoot?.querySelector("input");e?.select?.()}onDocKeyDown=e=>{if(!this.hotkey||e.defaultPrevented)return;const t=this.hotkey.toLowerCase().split("+").map((e=>e.trim())),s=t[t.length-1],a=t.slice(0,-1),o=/mac|iphone|ipad/i.test(navigator.platform||navigator.userAgent),i=e=>a.includes(e),n=i("meta")||i("cmd")||i("mod")&&o,l=i("ctrl")||i("mod")&&!o;e.key.toLowerCase()===s&&e.metaKey===n&&e.ctrlKey===l&&e.altKey===i("alt")&&e.shiftKey===i("shift")&&(e.preventDefault(),this.setOpen(!this.open))};setOpen(e){this.open!==e&&(this.open=e,this.bsOpenChange.emit(e))}allItems(){return Array.from(this.el.children).filter((e=>"BS-SEARCH-ITEM"===e.tagName&&h.includes(e.getAttribute("slot"))))}shownSections(){return"loading"===this.status?[]:"empty"===this.status?["try-instead"]:p}visibleItems(){if(!this.open)return[];const e=this.allItems();return this.shownSections().flatMap((t=>e.filter((e=>e.getAttribute("slot")===t))))}enabledItems(){return this.visibleItems().filter((e=>!e.disabled))}readFilled(){const e={...this.filled};let t=!1;for(const s of h){const a=Array.from(this.el.children).some((e=>e.getAttribute("slot")===s));e[s]!==a&&(e[s]=a,t=!0)}t&&(this.filled=e)}prepareItems(){for(const e of this.allItems())"option"!==e.selectionRole&&(e.selectionRole="option"),e.id||(e.id=`${this.id}-opt-${++this.itemSeq}`)}syncActive(){const e=this.enabledItems();let t,s=this.activeId;this.open&&e.length?this.userMoved&&e.some((e=>e.id===s))||(s=e[0].id):s=null,s!==this.activeId&&(this.activeId=s);for(const e of this.allItems()){const a=!!s&&e.id===s;a&&(t=e),e.active!==a&&(e.active=a)}this.comboEl&&(this.comboEl.ariaActiveDescendantElement=t??null)}setActive(e){this.userMoved=!0,this.activeId=e.id;for(const t of this.allItems())t.active=t.id===e.id;this.comboEl&&(this.comboEl.ariaActiveDescendantElement=e),e.scrollIntoView?.({block:"nearest"})}onInput=e=>{e.stopPropagation(),this.value=e.detail,this.userMoved=!1;const t=this.value.startsWith(">");this.bsInput.emit({value:this.value,query:(t?this.value.slice(1):this.value).trim(),commandsOnly:t})};onKeyDown=e=>{switch(e.key){case"ArrowDown":case"ArrowUp":{e.preventDefault();const t=this.enabledItems();if(!t.length)return;const s=t.findIndex((e=>e.id===this.activeId));return void this.setActive(t["ArrowDown"===e.key?(s+1)%t.length:s<=0?t.length-1:s-1])}case"Enter":{const t=this.enabledItems().find((e=>e.id===this.activeId));return void(t&&(e.preventDefault(),t.click()))}case"Backspace":return void(this.scopeLabel&&""===this.value&&this.bsScopeExit.emit())}};onDialogKeyDown=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),this.setOpen(!1))};onCancel=e=>{e.preventDefault(),this.setOpen(!1)};onDialogClick=e=>{e.target===this.dialogEl&&this.setOpen(!1)};onItemSelect(e){const t=e.target;t&&"BS-SEARCH-ITEM"===t.tagName&&(e.stopPropagation(),this.bsSelect.emit({value:e.detail,section:t.getAttribute("slot")??"",commandsOnly:this.commandsOnly}),this.keepOpenOnSelect||this.setOpen(!1))}onResultsMouseOver=e=>{const t=e.composedPath().find((e=>"BS-SEARCH-ITEM"===e.tagName));t&&!t.disabled&&t.id!==this.activeId&&this.setActive(t)};sectionLabel(e){return{recent:this.recentLabel,suggested:this.suggestedLabel,commands:this.commandsLabel,navigation:this.navigationLabel,records:this.recordsLabel,"try-instead":this.tryInsteadLabel}[e]}renderSection(e){const t=`${this.id}-h-${e}`;return o("div",{part:"section",class:"bs-command-palette__section",role:"group","aria-labelledby":t},o("div",{part:"section-header",id:t,class:"bs-command-palette__section-header"},this.sectionLabel(e)),o("slot",{name:e}))}renderHint(e,t){return o("span",{part:"hint",class:"bs-command-palette__hint"},e,o("span",{class:"bs-command-palette__hint-text"},t))}renderFooter(){const e=e=>o("bs-key",null,o("svg",{slot:"icon",...v},o("path",{d:e})));return o("div",{part:"footer",class:"bs-command-palette__footer"},this.renderHint([e("M12 19V5M5 12l7-7 7 7"),e("M12 5v14M5 12l7 7 7-7")],this.navigateLabel),this.renderHint([o("bs-key",null,o("svg",{slot:"icon",...v},o("path",{d:"M9 14 4 9l5-5"}),o("path",{d:"M4 9h10.5a5.5 5.5 0 0 1 0 11H11"})))],this.openLabel),this.renderHint([o("bs-key",{label:"Esc"})],this.closeLabel),o("span",{class:"bs-command-palette__spacer"}),this.commandsOnly?this.renderHint([o("bs-key",{label:"Backspace"})],this.allResultsLabel):this.renderHint([o("bs-key",{label:">"})],this.commandsOnlyLabel))}renderEmpty(){return o("div",{part:"empty",class:"bs-command-palette__empty"},o("svg",{class:"bs-command-palette__empty-icon",...v,"stroke-width":"1.5"},o("circle",{cx:"11",cy:"11",r:"7"}),o("path",{d:"m20 20-3.5-3.5M8.5 11h5"})),o("div",{class:"bs-command-palette__empty-heading"},this.emptyHeading),o("div",{class:"bs-command-palette__empty-description"},this.emptyDescription),this.didYouMean&&o("div",{class:"bs-command-palette__empty-description"},this.didYouMeanLabel," ",o("button",{type:"button",class:"bs-command-palette__link",onClick:()=>this.bsSuggestion.emit(this.didYouMean)},this.didYouMean)))}announcement(){return this.open?"empty"===this.status?this.emptyHeading:"loading"===this.status?this.loadingLabel:"":""}render(){const e=this.id+"-listbox",t="loading"===this.status,s="empty"===this.status,a=this.shownSections().filter((e=>this.filled[e])),i=a.length>0,n=t||s||i;return o("dialog",{key:"14f738dbfc997dd3a0e5c763659198ff4bb95529",ref:e=>this.dialogEl=e,part:"dialog",class:"bs-command-palette","aria-label":this.label,"aria-modal":"true",role:"dialog",onCancel:this.onCancel,onClose:()=>this.open&&this.setOpen(!1),onClick:this.onDialogClick,onKeyDown:this.onDialogKeyDown},o("div",{key:"2763bfb126b06706973e82411a50d81186398660",part:"panel",class:"bs-command-palette__panel"},o("div",{key:"662b84e505270a77b519b2ba44869b39ded8b118",part:"search",class:"bs-command-palette__search"},this.scopeLabel&&o("bs-chip-informative",{key:"129c0e4b8d442c47fcdb63c706e6a8afd204d15b",class:"bs-command-palette__scope",color:"info"},this.scopeLabel),o("div",{key:"2df2f5b194a3089af079e13b42146cc6042fed7d",class:"bs-command-palette__field",ref:e=>this.comboEl=e,role:"combobox","aria-label":this.placeholder,"aria-expanded":i+"","aria-haspopup":"listbox","aria-controls":i?e:void 0,onKeyDown:this.onKeyDown},o("bs-input",{key:"9bbb0fb5338b4a897c01becd9c06c19537abd4ea",part:"input",ref:e=>this.inputEl=e,type:"search",value:this.value,placeholder:this.placeholder,onBsInput:this.onInput})),o("span",{key:"1fb9c6bf593b2bd2a3d86f5fef51119fc76ad545",class:"bs-command-palette__esc","aria-hidden":"true"},o("bs-key",{key:"37fbede6ae45c725e6b3097a3cdd8a3985f0b7ee",label:"Esc"}))),n&&o("div",{key:"99b59b7f2ac6762f5a638dd084420332bbe95391",class:"bs-command-palette__divider",role:"presentation"}),n&&o("div",{key:"18a22c3d45ec4c84990ca9a87fb3cf76ccdb7552",part:"results",class:"bs-command-palette__results","aria-busy":t+"",onMouseOver:this.onResultsMouseOver},t&&o("div",{key:"c4246fa469a4bd9556db418cea6f763630d0907a",class:"bs-command-palette__loading",role:"status"},o("bs-spinner",{key:"f7658c22dceb48bc4c4f1265b7f4618ace5e12a7",size:"sm"}),o("span",{key:"03bf1c7a43b99d45cd8630f1dc628f258583a4a6"},this.loadingLabel)),s&&this.renderEmpty(),i&&o("div",{key:"10af576c2d8ae003e372bc1d60d1c399c8bd40b5",id:e,class:"bs-command-palette__list",role:"listbox","aria-label":this.listLabel},a.map((e=>this.renderSection(e))))),this.showFooter&&this.renderFooter()),o("span",{key:"5f078c4477ccabd8620bc67de7a0c071987416f3",class:"bs-command-palette__live","aria-live":"polite"},this.announcement()))}static get watchers(){return{value:[{onValueChange:0}],status:[{resetMoved:0}],open:[{resetMoved:0}]}}static get style(){return":host{display:contents;--bs-command-palette-width:640px;--bs-command-palette-top:12vh;--bs-command-palette-max-height:60vh;--bs-command-palette-radius:var(--bs-border-radius-150);--bs-command-palette-bg:var(--bs-surface-base);--bs-command-palette-shadow:0 var(--bs-shadow-position-100) var(--bs-shadow-blur-200) 0 var(--bs-elevation-higher);--bs-command-palette-overlay:var(--bs-surface-overlay);--bs-command-palette-footer-bg:var(--bs-surface-container);--bs-command-palette-divider-color:var(--bs-border-default);--bs-command-palette-header-border-color:var(--bs-border-neutral-container);--bs-command-palette-header-color:var(--bs-text-muted);--bs-command-palette-hint-color:var(--bs-text-secondary);--bs-command-palette-z-index:var(--bs-z-index-modal)}.bs-command-palette{box-sizing:border-box;width:min(var(--bs-command-palette-width), calc(100vw - 2 * var(--bs-spacing-200)));max-width:none;max-height:none;margin:var(--bs-command-palette-top) auto auto;padding:0;border:0;background:transparent;color:var(--bs-text-default);overflow:visible;z-index:var(--bs-command-palette-z-index)}.bs-command-palette::backdrop{background:var(--bs-command-palette-overlay, var(--bs-surface-overlay))}.bs-command-palette__panel{display:flex;flex-direction:column;box-sizing:border-box;overflow:clip;border-radius:var(--bs-command-palette-radius);background:var(--bs-command-palette-bg);box-shadow:var(--bs-command-palette-shadow)}@media (prefers-reduced-motion: no-preference){.bs-command-palette[open] .bs-command-palette__panel{animation:bs-command-palette-in 120ms ease-out}}@keyframes bs-command-palette-in{from{opacity:0;transform:scale(0.98)}}.bs-command-palette__search{position:relative;display:flex;align-items:center;gap:var(--bs-spacing-100);padding:var(--bs-spacing-150)}.bs-command-palette__field{flex:1 1 auto;min-width:0}.bs-command-palette__field bs-input{width:100%}.bs-command-palette__scope{flex:none}.bs-command-palette__esc{position:absolute;top:50%;right:calc(var(--bs-spacing-150) + 9px);transform:translateY(-50%);display:inline-flex;pointer-events:none}.bs-command-palette__divider{height:1px;background:var(--bs-command-palette-divider-color)}.bs-command-palette__results{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-spacing-100);padding:var(--bs-spacing-100);max-height:var(--bs-command-palette-max-height);overflow-y:auto}.bs-command-palette__list{display:flex;flex-direction:column;gap:var(--bs-spacing-100)}.bs-command-palette__section{display:flex;flex-direction:column}.bs-command-palette__section-header{padding:var(--bs-spacing-150) var(--bs-spacing-150) var(--bs-spacing-100);border-bottom:1px solid var(--bs-command-palette-header-border-color);color:var(--bs-command-palette-header-color);font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-medium);line-height:20px}.bs-command-palette__loading{display:flex;align-items:center;justify-content:center;gap:var(--bs-spacing-100);padding:var(--bs-spacing-300) var(--bs-spacing-200);color:var(--bs-text-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-command-palette__empty{display:flex;flex-direction:column;align-items:center;gap:var(--bs-spacing-100);padding:var(--bs-spacing-300) var(--bs-spacing-200);text-align:center}.bs-command-palette__empty-icon{width:32px;height:32px;color:var(--bs-icon-default)}.bs-command-palette__empty-heading{color:var(--bs-text-default);font-size:var(--bs-font-size-md);font-weight:var(--bs-font-weight-semibold);line-height:24px}.bs-command-palette__empty-description{color:var(--bs-text-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-command-palette__link{margin:0;padding:0;border:0;border-bottom:1px solid var(--bs-border-info);background:none;color:var(--bs-text-link);font:inherit;line-height:20px;cursor:pointer}.bs-command-palette__link:focus-visible{outline:2px solid var(--bs-border-info);outline-offset:2px}.bs-command-palette__footer{display:flex;align-items:center;gap:var(--bs-spacing-200);padding:10px var(--bs-spacing-200);background:var(--bs-command-palette-footer-bg)}.bs-command-palette__hint{display:inline-flex;align-items:center;gap:var(--bs-spacing-50);color:var(--bs-command-palette-hint-color);font-size:var(--bs-font-size-sm);line-height:20px;white-space:nowrap}.bs-command-palette__spacer{flex:1 1 0}.bs-command-palette__live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}"}},[769,"bs-command-palette",{value:[1025],open:[1540],commandsOnly:[1540,"commands-only"],status:[513],label:[1],placeholder:[1],keepOpenOnSelect:[4,"keep-open-on-select"],showFooter:[4,"show-footer"],hotkey:[1],scopeLabel:[1,"scope-label"],recentLabel:[1,"recent-label"],suggestedLabel:[1,"suggested-label"],commandsLabel:[1,"commands-label"],navigationLabel:[1,"navigation-label"],recordsLabel:[1,"records-label"],tryInsteadLabel:[1,"try-instead-label"],navigateLabel:[1,"navigate-label"],openLabel:[1,"open-label"],closeLabel:[1,"close-label"],commandsOnlyLabel:[1,"commands-only-label"],allResultsLabel:[1,"all-results-label"],emptyHeading:[1,"empty-heading"],emptyDescription:[1,"empty-description"],didYouMean:[1,"did-you-mean"],didYouMeanLabel:[1,"did-you-mean-label"],loadingLabel:[1,"loading-label"],listLabel:[1,"list-label"],filled:[32],activeId:[32],show:[64],close:[64]},[[0,"bsItemSelect","onItemSelect"]],{value:[{onValueChange:0}],status:[{resetMoved:0}],open:[{resetMoved:0}]}]);function f(){"undefined"!=typeof customElements&&["bs-command-palette","bs-chip-informative","bs-icon-button","bs-input","bs-key","bs-menu","bs-menu-item","bs-ripple","bs-spinner"].forEach((t=>{switch(t){case"bs-command-palette":customElements.get(e(t))||customElements.define(e(t),g);break;case"bs-chip-informative":customElements.get(e(t))||i();break;case"bs-icon-button":customElements.get(e(t))||n();break;case"bs-input":customElements.get(e(t))||l();break;case"bs-key":customElements.get(e(t))||c();break;case"bs-menu":customElements.get(e(t))||r();break;case"bs-menu-item":customElements.get(e(t))||d();break;case"bs-ripple":customElements.get(e(t))||b();break;case"bs-spinner":customElements.get(e(t))||m()}}))}f();const y=g,_=f;export{y as BsCommandPalette,_ as defineCustomElement}
@@ -1 +1 @@
1
- import{B as o,d as p}from"./p-DMp5CvEJ.js";const s=o,r=p;export{s as BsCompactMenuBlock,r as defineCustomElement}
1
+ import{B as o,d as s}from"./p-BenlMTiB.js";const p=o,r=s;export{p as BsCompactMenuBlock,r as defineCustomElement}
@@ -1 +1 @@
1
- import{t as s,p as e,H as a,c as t,h as i}from"./p-CcAX4o5o.js";import{d as r}from"./p-CALH_mHQ.js";import{d as c}from"./p-wscU7FUD.js";import{d as o}from"./p-mxDA3wKn.js";import{d as n}from"./p-_zxYDrzi.js";import{d as b}from"./p-DL9HtG41.js";import{d as p}from"./p-BLJL4BVY.js";import{d as h}from"./p-DHZ_DStJ.js";import{d as l}from"./p-wd9-vGpQ.js";import{d as m}from"./p-Cz38kNDe.js";import{d}from"./p-B5yjDh8h.js";import{d as y}from"./p-Dt3b6VYT.js";import{d as u}from"./p-CxNNy2m6.js";import{d as w}from"./p-BR7C-aKy.js";import{d as g}from"./p-B81aicKA.js";import{d as f}from"./p-DaKBSL2O.js";import{d as v}from"./p-D4W5LcEW.js";let _=0;const x={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},k=s=>s.split(/\s+/).filter(Boolean).slice(0,2).map((s=>s[0].toUpperCase())).join(""),L=s=>s.replace(/\s+/g,""),z=e(class extends a{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.bsCompanySwitch=t(this,"bsCompanySwitch"),this.bsManageCompanies=t(this,"bsManageCompanies"),this.bsAddCompanies=t(this,"bsAddCompanies"),this.bsOpenChange=t(this,"bsOpenChange")}get el(){return this}id="bs-cs-"+ ++_;inputEl;focusSearch=!1;companies=[];currentId;recentIds=[];switchingId;open=!1;placeholderLabel="Select a company";searchPlaceholder="Find a company or org. number";listLabel="Companies";currentLabel="Current";recentLabel="Recent";allLabel="All companies";matchesLabel="matches";matchLabel="match";orgNumberLabel="Org. no.";switchingLabel="Switching…";emptyHeading="No companies match “{query}”";emptyDescription="Check the spelling, or search by org. number.";manageLabel="Manage Companies";addLabel="Add companies";query="";activeId=null;bsCompanySwitch;bsManageCompanies;bsAddCompanies;bsOpenChange;onOpen(s){this.query="",this.activeId=null,this.focusSearch=s}componentDidRender(){this.open&&this.focusSearch&&(this.focusSearch=!1,this.inputEl?.focus())}byId(s){return s?this.companies.find((e=>e.id===s)):void 0}get q(){return this.query.trim().toLowerCase()}matches(){const s=this.q,e=L(s);return this.companies.filter((a=>a.name.toLowerCase().includes(s)||L(a.orgNumber).includes(e)))}groups(){if(this.q){const s=this.matches();return s.length?[{key:"matches",header:`${s.length} ${1===s.length?this.matchLabel:this.matchesLabel}`,items:s}]:[]}const s=this.byId(this.currentId),e=this.recentIds.map((s=>this.byId(s))).filter((s=>!!s&&s.id!==this.currentId)),a=new Set([s?.id,...e.map((s=>s.id))]),t=this.companies.filter((s=>!a.has(s.id))),i=[];return s&&i.push({key:"current",header:this.currentLabel,items:[s]}),e.length&&i.push({key:"recent",header:this.recentLabel,items:e}),t.length&&i.push({key:"all",header:`${this.allLabel} · ${t.length}`,items:t}),i}rowId(s){return`${this.id}-opt-${s.id}`}setOpen(s){this.open!==s&&(this.open=s,this.bsOpenChange.emit(s))}choose(s){s.id!==this.currentId&&s.id!==this.switchingId?(this.bsCompanySwitch.emit(s),this.switchingId||this.setOpen(!1)):this.setOpen(!1)}onPopoverOpenChange=s=>{s.stopPropagation(),this.setOpen(s.detail)};onInput=s=>{s.stopPropagation(),this.query=s.detail,this.activeId=null};onKeyDown=s=>{if("ArrowDown"!==s.key&&"ArrowUp"!==s.key&&"Enter"!==s.key)return;const e=this.groups().flatMap((s=>s.items));if("Enter"===s.key){const a=e.find((s=>this.rowId(s)===this.activeId));return void(a&&(s.preventDefault(),this.choose(a)))}if(s.preventDefault(),!e.length)return;const a=e.findIndex((s=>this.rowId(s)===this.activeId));this.activeId=this.rowId(e["ArrowDown"===s.key?(a+1)%e.length:a<=0?e.length-1:a-1]),requestAnimationFrame((()=>this.el.shadowRoot?.getElementById(this.activeId??"")?.scrollIntoView?.({block:"nearest"})))};subtitle(s){return`${s.country} · ${this.orgNumberLabel} ${s.orgNumber}`}renderTrigger(){const s=this.byId(this.switchingId),e=s??this.byId(this.currentId);return i("button",{slot:"trigger",part:"trigger",type:"button",class:"bs-company-switcher__trigger","aria-haspopup":"listbox","aria-expanded":this.open+"","aria-busy":s?"true":void 0},i("span",{"aria-hidden":"true",class:"bs-company-switcher__avatar"},i("bs-avatar",e?{part:"avatar",type:"initials",size:"sm",initials:k(e.name)}:{part:"avatar",type:"icon",size:"sm"})),i("span",{class:"bs-company-switcher__text"},i("span",{part:"name",class:"bs-company-switcher__name"},e?e.name:this.placeholderLabel),e&&i("span",{part:"subtitle",class:"bs-company-switcher__subtitle"},s?this.switchingLabel:`${this.orgNumberLabel} ${e.orgNumber}`)),s?i("bs-spinner",{class:"bs-company-switcher__trail",size:"sm",label:this.switchingLabel}):i("svg",{class:"bs-company-switcher__trail bs-company-switcher__chevron",...x},i("path",{d:"m6 9 6 6 6-6"})))}renderRow(s){const e=this.rowId(s),a=s.id===this.currentId,t=s.id===this.switchingId;return i("bs-list-item",{part:"row",id:e,class:{"bs-company-switcher__row":!0,"bs-company-switcher__row--active":this.activeId===e},selectionRole:"option",value:s.id,selected:a,"aria-busy":t?"true":void 0,onMouseEnter:()=>this.activeId=e,onBsItemClick:e=>{e.stopPropagation(),this.choose(s)}},i("span",{slot:"leading","aria-hidden":"true"},i("bs-avatar",{type:"initials",size:"sm",initials:k(s.name)})),i("span",{class:"bs-company-switcher__row-name"},s.name),i("span",{class:"bs-company-switcher__row-sub"},this.subtitle(s)),t?i("bs-spinner",{slot:"trailing",size:"sm",label:this.switchingLabel}):a?i("svg",{slot:"trailing",class:"bs-company-switcher__check",...x},i("path",{d:"m5 12.5 4.5 4.5L19 7.5"})):null)}render(){const s=this.groups(),e=!!this.q&&0===s.length,a=this.id+"-listbox",t=s.reduce(((s,e)=>s+e.items.length),0);return i("bs-popover",{key:"5980bccab6835ad9384ba9314e35f0013053d2c9",class:"bs-company-switcher",open:this.open,placement:"bottom-start",onBsOpenChange:this.onPopoverOpenChange},this.renderTrigger(),i("bs-card",{key:"6afff3828ecd224660d171514c23e7b3ca30f7ee",part:"panel",class:"bs-company-switcher__panel",surface:"base"},i("div",{key:"a046f869f51c0024e26efabf572dff82a8e2f787",class:"bs-company-switcher__search",onMouseDown:s=>s.preventDefault()},i("div",{key:"9cbdbdc07a5c673c21bb2af85d0e22d941278cc7",part:"search",role:"combobox","aria-label":this.searchPlaceholder,"aria-expanded":s.length?"true":"false","aria-haspopup":"listbox","aria-controls":s.length?a:void 0,"aria-activedescendant":this.activeId??void 0,onKeyDown:this.onKeyDown},i("bs-input",{key:"d48151ab5c7b3c52bd5272b276ed65b050ba8a86",ref:s=>this.inputEl=s,type:"search",value:this.query,placeholder:this.searchPlaceholder,onBsInput:this.onInput}))),s.length>0&&i("div",{key:"d7cbca7fbfea209e5063e997e0277e72833bae6e",id:a,part:"list",class:"bs-company-switcher__list",role:"listbox","aria-label":this.listLabel,onMouseDown:s=>s.preventDefault(),onMouseLeave:()=>this.activeId=null},s.map((s=>{const e=`${this.id}-h-${s.key}`;return i("div",{part:"group",class:"bs-company-switcher__group",role:"group","aria-labelledby":e},i("div",{part:"group-header",id:e,class:"bs-company-switcher__group-header"},s.header),s.items.map((s=>this.renderRow(s))))}))),e&&i("bs-empty-state",{key:"5dbff2f753d480fb8e3633ceed77ee4b746e96af",part:"empty",class:"bs-company-switcher__empty",heading:this.emptyHeading.replace("{query}",this.query.trim()),description:this.emptyDescription},i("svg",{key:"b179aa273060b4f8b2c4e07844d6616f33f3985d",slot:"icon",...x},i("circle",{key:"d48847aaaea92eb7e6af0c39285cfa445f508114",cx:"11",cy:"11",r:"7"}),i("path",{key:"9b5f6c641c50a6d280c149da5f70871ee2d85032",d:"m20 20-3.5-3.5"}))),i("bs-divider",{key:"25bee440e7b15f68b3f451ef669c2efaae26c400",class:"bs-company-switcher__divider",decorative:!0}),i("div",{key:"2c29e55970179036fc837352f5112bbc5b3b5429",part:"footer",class:"bs-company-switcher__footer"},i("bs-button",{key:"34a9b9188c87c2c335a7eaf96fd3e0b445d1f374",variant:"subtle",size:"sm",onClick:()=>this.bsManageCompanies.emit()},i("svg",{key:"14277686d69b74c005f62ce0d483b1f6ef70ee7e",slot:"icon",...x},i("circle",{key:"98423b978ae2ba9d0b8e17892d6269d2baf005e1",cx:"12",cy:"12",r:"3"}),i("path",{key:"b61815c0f8c56ca6dd9de05d5d5b58738648a08d",d:"M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z"})),this.manageLabel),i("bs-button",{key:"4c83a67e7f54352e839b84b23a4aeb3b74ea26af",variant:"subtle",size:"sm",onClick:()=>this.bsAddCompanies.emit()},i("svg",{key:"e504aeb192774bd8093e04c0795bd3ab700596a8",slot:"icon",...x},i("path",{key:"0806d38b7b739308432dff3f71696cd92923f4ca",d:"M12 5v14M5 12h14"})),this.addLabel)),i("span",{key:"e7ef671da5d9ac2431cd8f27dcc30985046946ac",class:"bs-company-switcher__live","aria-live":"polite"},this.open&&this.q?e?this.emptyHeading.replace("{query}",this.query.trim()):`${t} ${1===t?this.matchLabel:this.matchesLabel}`:"")))}static get watchers(){return{open:[{onOpen:0}]}}static get style(){return":host{display:inline-block;box-sizing:border-box;width:var(--bs-company-switcher-width);max-width:100%;--bs-company-switcher-width:260px;--bs-company-switcher-panel-width:360px;--bs-company-switcher-radius:var(--bs-border-radius-100);--bs-company-switcher-trigger-bg:transparent;--bs-company-switcher-trigger-bg-hover:var(--bs-surface-hover);--bs-company-switcher-trigger-bg-pressed:var(--bs-surface-pressed);--bs-company-switcher-trigger-bg-open:var(--bs-surface-selected);--bs-company-switcher-focus-ring:var(--bs-border-neutral-focus);--bs-company-switcher-panel-bg:var(--bs-surface-base);--bs-company-switcher-panel-border-color:var(--bs-border-default);--bs-company-switcher-shadow:var(--bs-shadow-md);--bs-company-switcher-max-height:320px;--bs-company-switcher-text-color:var(--bs-text-default);--bs-company-switcher-muted-color:var(--bs-text-secondary);--bs-company-switcher-header-color:var(--bs-text-muted);--bs-company-switcher-z-index:var(--bs-z-index-popover)}.bs-company-switcher{display:block;width:100%;--bs-popover-radius:var(--bs-company-switcher-radius);--bs-popover-shadow:var(--bs-company-switcher-shadow);--bs-popover-z-index:var(--bs-company-switcher-z-index);--bs-popover-min-width:0px;--bs-popover-bg:transparent}.bs-company-switcher__trigger{box-sizing:border-box;display:flex;align-items:center;gap:var(--bs-spacing-150);width:100%;min-height:54px;padding:var(--bs-spacing-100) var(--bs-spacing-150);border:0;border-radius:var(--bs-company-switcher-radius);background:var(--bs-company-switcher-trigger-bg);color:var(--bs-company-switcher-text-color);font-family:var(--bs-typography-font-family-body, Roboto), sans-serif;text-align:left;cursor:pointer}.bs-company-switcher__trigger:hover{background:var(--bs-company-switcher-trigger-bg-hover)}.bs-company-switcher__trigger:active{background:var(--bs-company-switcher-trigger-bg-pressed)}:host([open]) .bs-company-switcher__trigger,.bs-company-switcher__trigger[aria-busy='true']{background:var(--bs-company-switcher-trigger-bg-open)}.bs-company-switcher__trigger:focus-visible{outline:2px solid var(--bs-company-switcher-focus-ring);outline-offset:2px}.bs-company-switcher__avatar{display:inline-flex;flex:0 0 auto}.bs-company-switcher__text{flex:1 1 0;min-width:0;display:flex;flex-direction:column}.bs-company-switcher__name{font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-medium);line-height:20px}.bs-company-switcher__subtitle{color:var(--bs-company-switcher-muted-color);font-size:var(--bs-font-size-xs);line-height:16px}.bs-company-switcher__name,.bs-company-switcher__subtitle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bs-company-switcher__trail{flex:0 0 auto;width:20px;height:20px;color:var(--bs-icon-default)}.bs-company-switcher__panel{display:block;width:var(--bs-company-switcher-panel-width);max-width:calc(100vw - var(--bs-spacing-200));--bs-card-bg:var(--bs-company-switcher-panel-bg);--bs-card-radius:var(--bs-company-switcher-radius);--bs-card-padding:0px;--bs-card-border-width:1px;--bs-card-border-color:var(--bs-company-switcher-panel-border-color);--bs-card-shadow:none}.bs-company-switcher__search{padding:var(--bs-spacing-150) var(--bs-spacing-150) var(--bs-spacing-100)}.bs-company-switcher__search bs-input{width:100%}.bs-company-switcher__list{box-sizing:border-box;max-height:var(--bs-company-switcher-max-height);overflow-y:auto;padding:0 var(--bs-spacing-100) var(--bs-spacing-100)}.bs-company-switcher__group-header{padding:var(--bs-spacing-100) var(--bs-spacing-100) var(--bs-spacing-50);color:var(--bs-company-switcher-header-color);font-family:var(--bs-typography-font-family-body, Roboto), sans-serif;font-size:var(--bs-font-size-xs);font-weight:var(--bs-font-weight-medium);line-height:16px;letter-spacing:0.06em;text-transform:uppercase}.bs-company-switcher__row{--bs-list-item-min-height:52px;--bs-list-item-padding-y:var(--bs-spacing-100);--bs-list-item-padding-x:var(--bs-spacing-100);--bs-list-item-gap:var(--bs-spacing-150)}.bs-company-switcher__row--active{--bs-list-item-bg:var(--bs-surface-hover)}.bs-company-switcher__row-name{display:block;color:var(--bs-company-switcher-text-color);font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-medium);line-height:20px}.bs-company-switcher__row-sub{display:block;color:var(--bs-company-switcher-muted-color);font-size:var(--bs-font-size-xs);line-height:16px}.bs-company-switcher__check{width:20px;height:20px;color:var(--bs-icon-action, var(--bs-icon-default))}.bs-company-switcher__empty{--bs-empty-state-padding-y:var(--bs-spacing-400)}.bs-company-switcher__footer{display:flex;align-items:center;justify-content:space-between;gap:var(--bs-spacing-100);padding:var(--bs-spacing-100) var(--bs-spacing-150)}.bs-company-switcher__live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}"}},[513,"bs-company-switcher",{companies:[16],currentId:[1025,"current-id"],recentIds:[16],switchingId:[1,"switching-id"],open:[1540],placeholderLabel:[1,"placeholder-label"],searchPlaceholder:[1,"search-placeholder"],listLabel:[1,"list-label"],currentLabel:[1,"current-label"],recentLabel:[1,"recent-label"],allLabel:[1,"all-label"],matchesLabel:[1,"matches-label"],matchLabel:[1,"match-label"],orgNumberLabel:[1,"org-number-label"],switchingLabel:[1,"switching-label"],emptyHeading:[1,"empty-heading"],emptyDescription:[1,"empty-description"],manageLabel:[1,"manage-label"],addLabel:[1,"add-label"],query:[32],activeId:[32]},void 0,{open:[{onOpen:0}]}]);function E(){"undefined"!=typeof customElements&&["bs-company-switcher","bs-avatar","bs-button","bs-card","bs-chip-informative","bs-divider","bs-empty-state","bs-icon","bs-icon-button","bs-icon-tile","bs-input","bs-list-item","bs-menu","bs-menu-item","bs-popover","bs-ripple","bs-spinner"].forEach((e=>{switch(e){case"bs-company-switcher":customElements.get(s(e))||customElements.define(s(e),z);break;case"bs-avatar":customElements.get(s(e))||r();break;case"bs-button":customElements.get(s(e))||c();break;case"bs-card":customElements.get(s(e))||o();break;case"bs-chip-informative":customElements.get(s(e))||n();break;case"bs-divider":customElements.get(s(e))||b();break;case"bs-empty-state":customElements.get(s(e))||p();break;case"bs-icon":customElements.get(s(e))||h();break;case"bs-icon-button":customElements.get(s(e))||l();break;case"bs-icon-tile":customElements.get(s(e))||m();break;case"bs-input":customElements.get(s(e))||d();break;case"bs-list-item":customElements.get(s(e))||y();break;case"bs-menu":customElements.get(s(e))||u();break;case"bs-menu-item":customElements.get(s(e))||w();break;case"bs-popover":customElements.get(s(e))||g();break;case"bs-ripple":customElements.get(s(e))||f();break;case"bs-spinner":customElements.get(s(e))||v()}}))}E();const C=z,j=E;export{C as BsCompanySwitcher,j as defineCustomElement}
1
+ import{t as s,p as e,H as a,c as t,h as i}from"./p-CcAX4o5o.js";import{d as r}from"./p-BSaspygR.js";import{d as c}from"./p-BkzRLgh4.js";import{d as o}from"./p-mxDA3wKn.js";import{d as n}from"./p-EQrsaDKp.js";import{d as b}from"./p-DfYJCczy.js";import{d as p}from"./p-DPIDWFCa.js";import{d as h}from"./p-5yADpXI0.js";import{d as l}from"./p-DQY3n0nR.js";import{d as m}from"./p-BYZ1TxxS.js";import{d}from"./p-B1pqQBKC.js";import{d as y}from"./p-Dsyt34TD.js";import{d as g}from"./p-DoCH1kV9.js";import{d as u}from"./p-bOSY8sKI.js";import{d as w}from"./p-BpD6hqIE.js";import{d as f}from"./p-ESiaIgGU.js";import{d as v}from"./p-5OSJi5Hq.js";let _=0;const x={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},k=s=>s.split(/\s+/).filter(Boolean).slice(0,2).map((s=>s[0].toUpperCase())).join(""),z=s=>s.replace(/\s+/g,""),E=e(class extends a{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.bsCompanySwitch=t(this,"bsCompanySwitch"),this.bsManageCompanies=t(this,"bsManageCompanies"),this.bsAddCompanies=t(this,"bsAddCompanies"),this.bsOpenChange=t(this,"bsOpenChange")}get el(){return this}id="bs-cs-"+ ++_;inputEl;focusSearch=!1;companies=[];currentId;recentIds=[];switchingId;open=!1;placeholderLabel="Select a company";searchPlaceholder="Find a company or org. number";listLabel="Companies";currentLabel="Current";recentLabel="Recent";allLabel="All companies";matchesLabel="matches";matchLabel="match";orgNumberLabel="Org. no.";switchingLabel="Switching…";emptyHeading="No companies match “{query}”";emptyDescription="Check the spelling, or search by org. number.";manageLabel="Manage Companies";addLabel="Add companies";query="";activeId=null;bsCompanySwitch;bsManageCompanies;bsAddCompanies;bsOpenChange;onOpen(s){this.query="",this.activeId=null,this.focusSearch=s}componentDidRender(){this.open&&this.focusSearch&&(this.focusSearch=!1,this.inputEl?.focus())}byId(s){return s?this.companies.find((e=>e.id===s)):void 0}get q(){return this.query.trim().toLowerCase()}matches(){const s=this.q,e=z(s);return this.companies.filter((a=>a.name.toLowerCase().includes(s)||z(a.orgNumber).includes(e)))}groups(){if(this.q){const s=this.matches();return s.length?[{key:"matches",header:`${s.length} ${1===s.length?this.matchLabel:this.matchesLabel}`,items:s}]:[]}const s=this.byId(this.currentId),e=this.recentIds.map((s=>this.byId(s))).filter((s=>!!s&&s.id!==this.currentId)),a=new Set([s?.id,...e.map((s=>s.id))]),t=this.companies.filter((s=>!a.has(s.id))),i=[];return s&&i.push({key:"current",header:this.currentLabel,items:[s]}),e.length&&i.push({key:"recent",header:this.recentLabel,items:e}),t.length&&i.push({key:"all",header:`${this.allLabel} · ${t.length}`,items:t}),i}rowId(s){return`${this.id}-opt-${s.id}`}setOpen(s){this.open!==s&&(this.open=s,this.bsOpenChange.emit(s))}choose(s){s.id!==this.currentId&&s.id!==this.switchingId?(this.bsCompanySwitch.emit(s),this.switchingId||this.setOpen(!1)):this.setOpen(!1)}onPopoverOpenChange=s=>{s.stopPropagation(),this.setOpen(s.detail)};onInput=s=>{s.stopPropagation(),this.query=s.detail,this.activeId=null};onKeyDown=s=>{if("ArrowDown"!==s.key&&"ArrowUp"!==s.key&&"Enter"!==s.key)return;const e=this.groups().flatMap((s=>s.items));if("Enter"===s.key){const a=e.find((s=>this.rowId(s)===this.activeId));return void(a&&(s.preventDefault(),this.choose(a)))}if(s.preventDefault(),!e.length)return;const a=e.findIndex((s=>this.rowId(s)===this.activeId));this.activeId=this.rowId(e["ArrowDown"===s.key?(a+1)%e.length:a<=0?e.length-1:a-1]),requestAnimationFrame((()=>this.el.shadowRoot?.getElementById(this.activeId??"")?.scrollIntoView?.({block:"nearest"})))};subtitle(s){return`${s.country} · ${this.orgNumberLabel} ${s.orgNumber}`}renderTrigger(){const s=this.byId(this.switchingId),e=s??this.byId(this.currentId);return i("button",{slot:"trigger",part:"trigger",type:"button",class:"bs-company-switcher__trigger","aria-haspopup":"listbox","aria-expanded":this.open+"","aria-busy":s?"true":void 0},i("span",{"aria-hidden":"true",class:"bs-company-switcher__avatar"},i("bs-avatar",e?{part:"avatar",type:"initials",size:"sm",initials:k(e.name)}:{part:"avatar",type:"icon",size:"sm"})),i("span",{class:"bs-company-switcher__text"},i("span",{part:"name",class:"bs-company-switcher__name"},e?e.name:this.placeholderLabel),e&&i("span",{part:"subtitle",class:"bs-company-switcher__subtitle"},s?this.switchingLabel:`${this.orgNumberLabel} ${e.orgNumber}`)),s?i("bs-spinner",{class:"bs-company-switcher__trail",size:"sm",label:this.switchingLabel}):i("svg",{class:"bs-company-switcher__trail bs-company-switcher__chevron",...x},i("path",{d:"m6 9 6 6 6-6"})))}renderRow(s){const e=this.rowId(s),a=s.id===this.currentId,t=s.id===this.switchingId;return i("bs-list-item",{part:"row",id:e,class:{"bs-company-switcher__row":!0,"bs-company-switcher__row--active":this.activeId===e},selectionRole:"option",value:s.id,selected:a,"aria-busy":t?"true":void 0,onMouseEnter:()=>this.activeId=e,onBsItemClick:e=>{e.stopPropagation(),this.choose(s)}},i("span",{slot:"leading","aria-hidden":"true"},i("bs-avatar",{type:"initials",size:"sm",initials:k(s.name)})),i("span",{class:"bs-company-switcher__row-name"},s.name),i("span",{class:"bs-company-switcher__row-sub"},this.subtitle(s)),t?i("bs-spinner",{slot:"trailing",size:"sm",label:this.switchingLabel}):a?i("svg",{slot:"trailing",class:"bs-company-switcher__check",...x},i("path",{d:"m5 12.5 4.5 4.5L19 7.5"})):null)}render(){const s=this.groups(),e=!!this.q&&0===s.length,a=this.id+"-listbox",t=s.reduce(((s,e)=>s+e.items.length),0);return i("bs-popover",{key:"b0eec2cc5ce7574933ef80e1fd8a6faf8ca340cb",class:"bs-company-switcher",open:this.open,placement:"bottom-start",onBsOpenChange:this.onPopoverOpenChange},this.renderTrigger(),i("bs-card",{key:"0f68df42724c5b4561c991ffe0fab1571292472a",part:"panel",class:"bs-company-switcher__panel",surface:"base"},i("div",{key:"03bcc888d4dbef3d18e58ac12953e0cfdcafc219",class:"bs-company-switcher__search",onMouseDown:s=>s.preventDefault()},i("div",{key:"b1e9a44d67ed0237a0860285cb766b9f0ceaa8b0",part:"search",role:"combobox","aria-label":this.searchPlaceholder,"aria-expanded":s.length?"true":"false","aria-haspopup":"listbox","aria-controls":s.length?a:void 0,"aria-activedescendant":this.activeId??void 0,onKeyDown:this.onKeyDown},i("bs-input",{key:"33f3b85bcbe1b4e5e999d8b71a4699165e94c6db",ref:s=>this.inputEl=s,type:"search",value:this.query,placeholder:this.searchPlaceholder,onBsInput:this.onInput}))),s.length>0&&i("div",{key:"ca4ea82856f25a754d9da32b3bea39172e98d07c",id:a,part:"list",class:"bs-company-switcher__list",role:"listbox","aria-label":this.listLabel,onMouseDown:s=>s.preventDefault(),onMouseLeave:()=>this.activeId=null},s.map((s=>{const e=`${this.id}-h-${s.key}`;return i("div",{part:"group",class:"bs-company-switcher__group",role:"group","aria-labelledby":e},i("div",{part:"group-header",id:e,class:"bs-company-switcher__group-header"},s.header),s.items.map((s=>this.renderRow(s))))}))),e&&i("bs-empty-state",{key:"9d0612d45e3f7e34615a4df33af90898c8f42ad4",part:"empty",class:"bs-company-switcher__empty",heading:this.emptyHeading.replace("{query}",this.query.trim()),description:this.emptyDescription},i("svg",{key:"269c8cb9cab9e5f1c0f0f46661e2ebb780c35767",slot:"icon",...x},i("circle",{key:"edff5845828ee02a4ca233173d64d305e3a0fff3",cx:"11",cy:"11",r:"7"}),i("path",{key:"fe598787496866fd7d922609ce5633708f20c8ff",d:"m20 20-3.5-3.5"}))),i("bs-divider",{key:"97a3536b4d4a76ab83e072b69c14a093f8456d14",class:"bs-company-switcher__divider",decorative:!0}),i("div",{key:"1b2946a19574798829e4aa2a41741e73158963dd",part:"footer",class:"bs-company-switcher__footer"},i("bs-button",{key:"4802d08ecbe212ea674205485b5676c2f97c195e",variant:"subtle",size:"sm",onClick:()=>this.bsManageCompanies.emit()},i("svg",{key:"6b4458e279e9f15094dd28e0c394111ab98cf4fe",slot:"icon",...x},i("circle",{key:"d23a66a7b4142c5f5d370b194824b573e667bb4f",cx:"12",cy:"12",r:"3"}),i("path",{key:"76f4741d079f3c3cfd8f18c03c61e88aa2b47196",d:"M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z"})),this.manageLabel),i("bs-button",{key:"347c34917288e15a461f3d16eaac077c454d968d",variant:"subtle",size:"sm",onClick:()=>this.bsAddCompanies.emit()},i("svg",{key:"6d701ae30b07de092d93b700d264bbaee166a721",slot:"icon",...x},i("path",{key:"2ec0699033facd45aae07a3926db0ccf4113d40f",d:"M12 5v14M5 12h14"})),this.addLabel)),i("span",{key:"bc4cc1dd886ab4a06afce21fdb670a1fdf46181e",class:"bs-company-switcher__live","aria-live":"polite"},this.open&&this.q?e?this.emptyHeading.replace("{query}",this.query.trim()):`${t} ${1===t?this.matchLabel:this.matchesLabel}`:"")))}static get watchers(){return{open:[{onOpen:0}]}}static get style(){return":host{display:inline-block;box-sizing:border-box;width:var(--bs-company-switcher-width);max-width:100%;--bs-company-switcher-width:260px;--bs-company-switcher-panel-width:360px;--bs-company-switcher-radius:var(--bs-border-radius-100);--bs-company-switcher-trigger-bg:transparent;--bs-company-switcher-trigger-bg-hover:var(--bs-surface-hover);--bs-company-switcher-trigger-bg-pressed:var(--bs-surface-pressed);--bs-company-switcher-trigger-bg-open:var(--bs-surface-selected);--bs-company-switcher-focus-ring:var(--bs-border-neutral-focus);--bs-company-switcher-panel-bg:var(--bs-surface-base);--bs-company-switcher-panel-border-color:var(--bs-border-default);--bs-company-switcher-shadow:var(--bs-shadow-md);--bs-company-switcher-max-height:320px;--bs-company-switcher-text-color:var(--bs-text-default);--bs-company-switcher-muted-color:var(--bs-text-secondary);--bs-company-switcher-header-color:var(--bs-text-muted);--bs-company-switcher-z-index:var(--bs-z-index-popover)}.bs-company-switcher{display:block;width:100%;--bs-popover-radius:var(--bs-company-switcher-radius);--bs-popover-shadow:var(--bs-company-switcher-shadow);--bs-popover-z-index:var(--bs-company-switcher-z-index);--bs-popover-min-width:0px;--bs-popover-bg:transparent}.bs-company-switcher__trigger{box-sizing:border-box;display:flex;align-items:center;gap:var(--bs-spacing-150);width:100%;min-height:54px;padding:var(--bs-spacing-100) var(--bs-spacing-150);border:0;border-radius:var(--bs-company-switcher-radius);background:var(--bs-company-switcher-trigger-bg);color:var(--bs-company-switcher-text-color);font-family:var(--bs-typography-font-family-body, Roboto), sans-serif;text-align:left;cursor:pointer}.bs-company-switcher__trigger:hover{background:var(--bs-company-switcher-trigger-bg-hover)}.bs-company-switcher__trigger:active{background:var(--bs-company-switcher-trigger-bg-pressed)}:host([open]) .bs-company-switcher__trigger,.bs-company-switcher__trigger[aria-busy='true']{background:var(--bs-company-switcher-trigger-bg-open)}.bs-company-switcher__trigger:focus-visible{outline:2px solid var(--bs-company-switcher-focus-ring);outline-offset:2px}.bs-company-switcher__avatar{display:inline-flex;flex:0 0 auto}.bs-company-switcher__text{flex:1 1 0;min-width:0;display:flex;flex-direction:column}.bs-company-switcher__name{font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-medium);line-height:20px}.bs-company-switcher__subtitle{color:var(--bs-company-switcher-muted-color);font-size:var(--bs-font-size-xs);line-height:16px}.bs-company-switcher__name,.bs-company-switcher__subtitle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bs-company-switcher__trail{flex:0 0 auto;width:20px;height:20px;color:var(--bs-icon-default)}.bs-company-switcher__panel{display:block;width:var(--bs-company-switcher-panel-width);max-width:calc(100vw - var(--bs-spacing-200));--bs-card-bg:var(--bs-company-switcher-panel-bg);--bs-card-radius:var(--bs-company-switcher-radius);--bs-card-padding:0px;--bs-card-border-width:1px;--bs-card-border-color:var(--bs-company-switcher-panel-border-color);--bs-card-shadow:none}.bs-company-switcher__search{padding:var(--bs-spacing-150) var(--bs-spacing-150) var(--bs-spacing-100)}.bs-company-switcher__search bs-input{width:100%}.bs-company-switcher__list{box-sizing:border-box;max-height:var(--bs-company-switcher-max-height);overflow-y:auto;padding:0 var(--bs-spacing-100) var(--bs-spacing-100)}.bs-company-switcher__group-header{padding:var(--bs-spacing-100) var(--bs-spacing-100) var(--bs-spacing-50);color:var(--bs-company-switcher-header-color);font-family:var(--bs-typography-font-family-body, Roboto), sans-serif;font-size:var(--bs-font-size-xs);font-weight:var(--bs-font-weight-medium);line-height:16px;letter-spacing:0.06em;text-transform:uppercase}.bs-company-switcher__row{--bs-list-item-min-height:52px;--bs-list-item-padding-y:var(--bs-spacing-100);--bs-list-item-padding-x:var(--bs-spacing-100);--bs-list-item-gap:var(--bs-spacing-150)}.bs-company-switcher__row--active{--bs-list-item-bg:var(--bs-surface-hover)}.bs-company-switcher__row-name{display:block;color:var(--bs-company-switcher-text-color);font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-medium);line-height:20px}.bs-company-switcher__row-sub{display:block;color:var(--bs-company-switcher-muted-color);font-size:var(--bs-font-size-xs);line-height:16px}.bs-company-switcher__check{width:20px;height:20px;color:var(--bs-icon-action, var(--bs-icon-default))}.bs-company-switcher__empty{--bs-empty-state-padding-y:var(--bs-spacing-400)}.bs-company-switcher__footer{display:flex;align-items:center;justify-content:space-between;gap:var(--bs-spacing-100);padding:var(--bs-spacing-100) var(--bs-spacing-150)}.bs-company-switcher__live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}"}},[513,"bs-company-switcher",{companies:[16],currentId:[1025,"current-id"],recentIds:[16],switchingId:[1,"switching-id"],open:[1540],placeholderLabel:[1,"placeholder-label"],searchPlaceholder:[1,"search-placeholder"],listLabel:[1,"list-label"],currentLabel:[1,"current-label"],recentLabel:[1,"recent-label"],allLabel:[1,"all-label"],matchesLabel:[1,"matches-label"],matchLabel:[1,"match-label"],orgNumberLabel:[1,"org-number-label"],switchingLabel:[1,"switching-label"],emptyHeading:[1,"empty-heading"],emptyDescription:[1,"empty-description"],manageLabel:[1,"manage-label"],addLabel:[1,"add-label"],query:[32],activeId:[32]},void 0,{open:[{onOpen:0}]}]);function L(){"undefined"!=typeof customElements&&["bs-company-switcher","bs-avatar","bs-button","bs-card","bs-chip-informative","bs-divider","bs-empty-state","bs-icon","bs-icon-button","bs-icon-tile","bs-input","bs-list-item","bs-menu","bs-menu-item","bs-popover","bs-ripple","bs-spinner"].forEach((e=>{switch(e){case"bs-company-switcher":customElements.get(s(e))||customElements.define(s(e),E);break;case"bs-avatar":customElements.get(s(e))||r();break;case"bs-button":customElements.get(s(e))||c();break;case"bs-card":customElements.get(s(e))||o();break;case"bs-chip-informative":customElements.get(s(e))||n();break;case"bs-divider":customElements.get(s(e))||b();break;case"bs-empty-state":customElements.get(s(e))||p();break;case"bs-icon":customElements.get(s(e))||h();break;case"bs-icon-button":customElements.get(s(e))||l();break;case"bs-icon-tile":customElements.get(s(e))||m();break;case"bs-input":customElements.get(s(e))||d();break;case"bs-list-item":customElements.get(s(e))||y();break;case"bs-menu":customElements.get(s(e))||g();break;case"bs-menu-item":customElements.get(s(e))||u();break;case"bs-popover":customElements.get(s(e))||w();break;case"bs-ripple":customElements.get(s(e))||f();break;case"bs-spinner":customElements.get(s(e))||v()}}))}L();const C=E,D=L;export{C as BsCompanySwitcher,D as defineCustomElement}