bitboss-ui 3.0.0-beta.73 → 3.0.0-beta.75

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 (345) hide show
  1. package/README.md +4 -2
  2. package/bin/bitboss-ui-mcp.mjs +101 -3
  3. package/bin/bitboss-ui.mjs +6 -1
  4. package/bin/cli.mjs +31 -5
  5. package/dist/ai/BbAvatar.md +86 -58
  6. package/dist/ai/BbBadge.md +5 -5
  7. package/dist/ai/BbBreadcrumbs.md +2 -2
  8. package/dist/ai/BbButton.md +2 -2
  9. package/dist/ai/BbCalendar.md +9 -5
  10. package/dist/ai/BbCheckboxGroup.md +5 -4
  11. package/dist/ai/BbColorInput.md +12 -0
  12. package/dist/ai/BbColorPalette.md +19 -15
  13. package/dist/ai/BbConfirmPortal.md +1 -1
  14. package/dist/ai/BbDatePicker.md +16 -3
  15. package/dist/ai/BbDatePickerInput.md +17 -1
  16. package/dist/ai/BbDialog.md +16 -4
  17. package/dist/ai/BbDropdown.md +175 -67
  18. package/dist/ai/BbDropdownButton.md +27 -8
  19. package/dist/ai/BbForm.md +4 -1
  20. package/dist/ai/BbHoverCardPortal.md +1 -1
  21. package/dist/ai/BbNumberInput.md +8 -4
  22. package/dist/ai/BbPopoverPortal.md +1 -1
  23. package/dist/ai/BbRadioGroup.md +4 -4
  24. package/dist/ai/BbSelect.md +79 -67
  25. package/dist/ai/BbSelectPopover.md +24 -5
  26. package/dist/ai/BbSwitchGroup.md +5 -4
  27. package/dist/ai/BbTable.md +59 -34
  28. package/dist/ai/BbTimePicker.md +16 -3
  29. package/dist/ai/BbTimePickerInput.md +15 -1
  30. package/dist/ai/BbToast.md +3 -2
  31. package/dist/ai/BbToastPortal.md +1 -1
  32. package/dist/ai/BbTree.md +5 -1
  33. package/dist/ai/CommonPopover.md +1 -0
  34. package/dist/ai/FlatListBox.md +1 -0
  35. package/dist/ai/GroupedListBox.md +1 -0
  36. package/dist/ai/ListBox.md +1 -0
  37. package/dist/ai/OptionsContainer.md +4 -4
  38. package/dist/ai/changelog.json +215 -6
  39. package/dist/ai/components.json +77 -43
  40. package/dist/ai/composables/useToast.md +2 -2
  41. package/dist/ai/design-tokens.json +60 -0
  42. package/dist/ai/guides/agent-contract.md +8 -4
  43. package/dist/ai/guides/design-tokens.md +33 -0
  44. package/dist/ai/guides/eslint-rules.md +1 -1
  45. package/dist/ai/guides/fetch-items-playbook.md +7 -11
  46. package/dist/ai/guides/inertia-helpers.md +613 -53
  47. package/dist/ai/guides/migration/adoption-checklist.md +5 -5
  48. package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
  49. package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
  50. package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
  51. package/dist/ai/guides/migration/components/bb-table.md +2 -1
  52. package/dist/ai/guides/migration/components/bb-toast.md +2 -2
  53. package/dist/ai/guides/migration/v2-to-v3.md +46 -5
  54. package/dist/ai/guides/migration/v3-beta-tooling.md +4 -0
  55. package/dist/ai/guides/passthrough.md +3 -3
  56. package/dist/ai/guides/preset-components.md +15 -2
  57. package/dist/ai/guides/reporting.md +49 -0
  58. package/dist/ai/helpers/inertia/manifest.json +33 -38
  59. package/dist/ai/helpers/inertia/useHasChanged.ts +25 -37
  60. package/dist/ai/helpers/inertia/useQuery.ts +24 -6
  61. package/dist/ai/helpers/inertia/utils.ts +552 -3
  62. package/dist/ai/index.md +2 -1
  63. package/dist/ai/manifest/common.json +1 -0
  64. package/dist/ai/manifest/components/BbAlert.tree.json +1 -1
  65. package/dist/ai/manifest/components/BbAvatar.json +5 -2
  66. package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
  67. package/dist/ai/manifest/components/BbCalendar.json +2 -2
  68. package/dist/ai/manifest/components/BbCarousel.json +0 -3
  69. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  70. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
  71. package/dist/ai/manifest/components/BbColorInput.json +5 -2
  72. package/dist/ai/manifest/components/BbColorPalette.json +7 -4
  73. package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
  74. package/dist/ai/manifest/components/BbConfirmPortal.json +1 -1
  75. package/dist/ai/manifest/components/BbDatePicker.json +6 -3
  76. package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
  77. package/dist/ai/manifest/components/BbDialog.tree.json +7 -1
  78. package/dist/ai/manifest/components/BbDropdown.json +23 -17
  79. package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
  80. package/dist/ai/manifest/components/BbDropdown.tree.json +16 -5
  81. package/dist/ai/manifest/components/BbDropdownButton.json +15 -9
  82. package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
  83. package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
  84. package/dist/ai/manifest/components/BbForm.json +1 -1
  85. package/dist/ai/manifest/components/BbHoverCard.json +1 -1
  86. package/dist/ai/manifest/components/BbHoverCardPortal.json +1 -1
  87. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  88. package/dist/ai/manifest/components/BbOffCanvas.tree.json +2 -0
  89. package/dist/ai/manifest/components/BbPopover.json +1 -1
  90. package/dist/ai/manifest/components/BbPopoverPortal.json +1 -1
  91. package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
  92. package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
  93. package/dist/ai/manifest/components/BbSelect.json +10 -7
  94. package/dist/ai/manifest/components/BbSelectPopover.json +7 -4
  95. package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -1
  96. package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
  97. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
  98. package/dist/ai/manifest/components/BbTable.json +6 -6
  99. package/dist/ai/manifest/components/BbTable.tree.json +16 -6
  100. package/dist/ai/manifest/components/BbTimePicker.json +7 -4
  101. package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
  102. package/dist/ai/manifest/components/BbToastPortal.json +1 -1
  103. package/dist/ai/manifest/components/BbTree.json +1 -1
  104. package/dist/ai/manifest/components/CommonPopover.json +2 -1
  105. package/dist/ai/manifest/components/FlatListBox.json +2 -1
  106. package/dist/ai/manifest/components/GroupedListBox.json +2 -1
  107. package/dist/ai/manifest/components/ListBox.json +2 -1
  108. package/dist/ai/manifest/components/OptionsContainer.json +6 -4
  109. package/dist/ai/manifest/index.json +2 -2
  110. package/dist/ai/manifest/meta.json +36 -3
  111. package/dist/ai/manifest/types.advanced.json +81 -80
  112. package/dist/ai/manifest/types.api.json +64 -65
  113. package/dist/ai/manifest/types.wrapper.json +155 -118
  114. package/dist/ai/recipes/inertia/layout-scaffold.md +3 -1
  115. package/dist/ai/recipes/nuxt/layout-scaffold.md +3 -1
  116. package/dist/ai/recipes/vue/layout-scaffold.md +3 -1
  117. package/dist/ai/source/BbAlert.md +16 -4
  118. package/dist/ai/source/BbAvatar.md +121 -9
  119. package/dist/ai/source/BbBadge.md +12 -5
  120. package/dist/ai/source/BbBreadcrumbs.md +56 -55
  121. package/dist/ai/source/BbButton.md +41 -25
  122. package/dist/ai/source/BbCalendar.md +22 -12
  123. package/dist/ai/source/BbCarousel.md +31 -28
  124. package/dist/ai/source/BbCheckboxGroup.md +15 -9
  125. package/dist/ai/source/BbColorInput.md +19 -0
  126. package/dist/ai/source/BbColorPalette.md +59 -12
  127. package/dist/ai/source/BbConfirm.md +7 -0
  128. package/dist/ai/source/BbConfirmPortal.md +9 -4
  129. package/dist/ai/source/BbDatePicker.md +71 -22
  130. package/dist/ai/source/BbDatePickerInput.md +72 -9
  131. package/dist/ai/source/BbDialog.md +45 -2
  132. package/dist/ai/source/BbDropdown.md +263 -63
  133. package/dist/ai/source/BbDropdownButton.md +27 -2
  134. package/dist/ai/source/BbDropdownGroup.md +121 -59
  135. package/dist/ai/source/BbForm.md +73 -6
  136. package/dist/ai/source/BbGallery.md +76 -55
  137. package/dist/ai/source/BbHost.md +12 -0
  138. package/dist/ai/source/BbHoverCard.md +7 -0
  139. package/dist/ai/source/BbHoverCardPortal.md +9 -5
  140. package/dist/ai/source/BbNumberInput.md +22 -16
  141. package/dist/ai/source/BbOffCanvas.md +48 -2
  142. package/dist/ai/source/BbPopover.md +7 -0
  143. package/dist/ai/source/BbPopoverPortal.md +9 -5
  144. package/dist/ai/source/BbRadio.md +4 -3
  145. package/dist/ai/source/BbRadioGroup.md +19 -10
  146. package/dist/ai/source/BbSelect.md +35 -20
  147. package/dist/ai/source/BbSelectPopover.md +116 -8
  148. package/dist/ai/source/BbSwitchGroup.md +11 -4
  149. package/dist/ai/source/BbTable.md +126 -32
  150. package/dist/ai/source/BbTag.md +10 -3
  151. package/dist/ai/source/BbTimePicker.md +69 -15
  152. package/dist/ai/source/BbTimePickerInput.md +45 -7
  153. package/dist/ai/source/BbToast.md +16 -2
  154. package/dist/ai/source/BbToastPortal.md +18 -6
  155. package/dist/ai/source/BbTree.md +1 -1
  156. package/dist/ai/source/CommonFieldInput.md +11 -5
  157. package/dist/ai/source/CommonPopover.md +28 -2
  158. package/dist/ai/source/FlatListBox.md +26 -5
  159. package/dist/ai/source/GroupedListBox.md +63 -11
  160. package/dist/ai/source/ListBox.md +4 -0
  161. package/dist/ai/source/OptionsContainer.md +29 -11
  162. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +31 -26
  163. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
  164. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +61 -43
  165. package/dist/components/BbAvatar/avatarIdentity.js +25 -0
  166. package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
  167. package/dist/components/BbAvatar/types.d.ts +24 -5
  168. package/dist/components/BbAvatar/types.js +5 -1
  169. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
  170. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +80 -79
  171. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +152 -158
  172. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
  173. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  174. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +235 -234
  175. package/dist/components/BbCalendar/types.d.ts +2 -2
  176. package/dist/components/BbCalendar/useDayGrid.js +120 -123
  177. package/dist/components/BbCalendar/useDayjsLocale.js +11 -8
  178. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +7 -7
  179. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
  180. package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
  181. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
  182. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
  183. package/dist/components/BbColorInput/types.d.ts +7 -0
  184. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
  185. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +239 -223
  186. package/dist/components/BbColorPalette/types.d.ts +8 -1
  187. package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -4
  188. package/dist/components/BbConfirm/types.d.ts +5 -0
  189. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +4 -2
  190. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +160 -143
  191. package/dist/components/BbDatePicker/types.d.ts +9 -2
  192. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
  193. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +483 -496
  194. package/dist/components/BbDatePickerInput/types.d.ts +7 -0
  195. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +252 -236
  196. package/dist/components/BbDialog/leaveGhost.js +38 -0
  197. package/dist/components/BbDialog/overlayActions.js +34 -20
  198. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +92 -87
  199. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
  200. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +419 -368
  201. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +384 -340
  202. package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
  203. package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
  204. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +133 -119
  205. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +73 -45
  206. package/dist/components/BbDropdown/normalizeGroups.js +6 -2
  207. package/dist/components/BbDropdown/ptKeys.generated.d.ts +8 -0
  208. package/dist/components/BbDropdown/types.d.ts +73 -58
  209. package/dist/components/BbDropdown/types.js +1 -0
  210. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -0
  211. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -72
  212. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +48 -0
  213. package/dist/components/BbDropdownButton/types.d.ts +13 -2
  214. package/dist/components/BbDropdownButton/types.js +2 -0
  215. package/dist/components/BbForm/BbForm.vue.d.ts +2 -21
  216. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +229 -227
  217. package/dist/components/BbForm/types.d.ts +31 -0
  218. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +318 -296
  219. package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
  220. package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -5
  221. package/dist/components/BbHoverCard/types.d.ts +5 -0
  222. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +10 -6
  223. package/dist/components/BbNumberInput/numberDisplay.js +102 -106
  224. package/dist/components/BbNumberInput/types.d.ts +4 -3
  225. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +425 -409
  226. package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -5
  227. package/dist/components/BbPopover/types.d.ts +5 -0
  228. package/dist/components/BbRadio/types.d.ts +4 -3
  229. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -106
  230. package/dist/components/BbRadioGroup/types.d.ts +4 -7
  231. package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -1
  232. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +167 -163
  233. package/dist/components/BbSelect/types.d.ts +23 -20
  234. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +3 -1
  235. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +680 -637
  236. package/dist/components/BbSelectPopover/types.d.ts +10 -4
  237. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
  238. package/dist/components/BbSwitchGroup/types.d.ts +3 -6
  239. package/dist/components/BbTable/BbTable.vue.d.ts +1 -3
  240. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1182 -1165
  241. package/dist/components/BbTable/BbTableDataRow.js +96 -96
  242. package/dist/components/BbTable/types.d.ts +11 -10
  243. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +9 -3
  244. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
  245. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +157 -140
  246. package/dist/components/BbTimePicker/types.d.ts +9 -2
  247. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +3 -1
  248. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +278 -268
  249. package/dist/components/BbTimePickerInput/types.d.ts +7 -0
  250. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +12 -12
  251. package/dist/components/BbToast/BbToastPortal.vue.d.ts +2 -4
  252. package/dist/components/BbToast/types.d.ts +7 -2
  253. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
  254. package/dist/components/BbTree/types.d.ts +1 -1
  255. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +36 -36
  256. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +14 -2
  257. package/dist/components/CommonTimeSelector/useMeridiem.js +6 -6
  258. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +115 -96
  259. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +194 -166
  260. package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
  261. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
  262. package/dist/composables/formSubmitLock.js +2 -1
  263. package/dist/composables/overlayRegistry.js +52 -42
  264. package/dist/composables/useActiveInactiveState.js +8 -4
  265. package/dist/composables/useBbDialog.js +5 -5
  266. package/dist/composables/useItemsGetter.js +34 -32
  267. package/dist/composables/useOpenModel.js +20 -0
  268. package/dist/composables/useOwnModel.js +16 -0
  269. package/dist/composables/useSegmentedFields.js +31 -20
  270. package/dist/deprecation/ai-deprecations.json.js +1 -1
  271. package/dist/i18n/currencyDigits.js +58 -0
  272. package/dist/i18n/locales/ar.json +2 -0
  273. package/dist/i18n/locales/cs.json +2 -0
  274. package/dist/i18n/locales/da.json +2 -0
  275. package/dist/i18n/locales/de-CH.json +2 -0
  276. package/dist/i18n/locales/de.json +2 -0
  277. package/dist/i18n/locales/el.json +2 -0
  278. package/dist/i18n/locales/en-GB.json +2 -0
  279. package/dist/i18n/locales/en.json +2 -0
  280. package/dist/i18n/locales/es-MX.json +2 -0
  281. package/dist/i18n/locales/es.json +2 -0
  282. package/dist/i18n/locales/fa.json +2 -0
  283. package/dist/i18n/locales/fi.json +2 -0
  284. package/dist/i18n/locales/fr.json +2 -0
  285. package/dist/i18n/locales/he.json +2 -0
  286. package/dist/i18n/locales/hu.json +2 -0
  287. package/dist/i18n/locales/it.json +2 -0
  288. package/dist/i18n/locales/ja.json +2 -0
  289. package/dist/i18n/locales/ko.json +2 -0
  290. package/dist/i18n/locales/nb.json +2 -0
  291. package/dist/i18n/locales/nl.json +2 -0
  292. package/dist/i18n/locales/pl.json +2 -0
  293. package/dist/i18n/locales/pt-BR.json +2 -0
  294. package/dist/i18n/locales/pt-PT.json +2 -0
  295. package/dist/i18n/locales/ro.json +2 -0
  296. package/dist/i18n/locales/ru.json +2 -0
  297. package/dist/i18n/locales/sv.json +2 -0
  298. package/dist/i18n/locales/tr.json +2 -0
  299. package/dist/i18n/locales/uk.json +2 -0
  300. package/dist/i18n/locales/zh-CN.json +2 -0
  301. package/dist/i18n/locales/zh-HK.json +2 -0
  302. package/dist/i18n/locales/zh-TW.json +2 -0
  303. package/dist/i18n/regionDates.js +250 -0
  304. package/dist/i18n/regionHints.js +30 -41
  305. package/dist/icon-scan.js +68 -61
  306. package/dist/index.d.ts +35 -31
  307. package/dist/llms-full.txt +1428 -400
  308. package/dist/llms-medium.txt +8 -4
  309. package/dist/llms.txt +4 -2
  310. package/dist/locale-blueprint.json +2 -0
  311. package/dist/styles.css +2 -2
  312. package/dist/types/ActionButton.d.ts +2 -1
  313. package/dist/types/CommonProps.d.ts +8 -0
  314. package/dist/types/Option.d.ts +10 -0
  315. package/dist/types/ptComponentMap.d.ts +3 -3
  316. package/dist/utilities/functions/hash.js +97 -64
  317. package/dist/utilities/functions/isEqual.js +33 -25
  318. package/dist/utilities/functions/slotContent.js +19 -0
  319. package/dist/utils/loadRetry.js +8 -0
  320. package/dist/utils/versionCheck.js +1 -1
  321. package/dist/vite-plugin.d.ts +2 -1
  322. package/dist/vite.js +11 -4
  323. package/llms.txt +4 -2
  324. package/package.json +3 -2
  325. package/scripts/README.md +3 -1
  326. package/scripts/lib/adoption-checklist.json +6 -5
  327. package/scripts/lib/agent-manifest.mjs +33 -6
  328. package/scripts/lib/agent-setup.mjs +90 -24
  329. package/scripts/lib/cldr-pins.ts +182 -0
  330. package/scripts/lib/engines-include.d.mts +5 -0
  331. package/scripts/lib/engines-include.mjs +40 -0
  332. package/scripts/lib/eslint-plugin.mjs +8 -2
  333. package/scripts/lib/hidden-label-placeholder.mjs +25 -5
  334. package/scripts/lib/idiom-scan.mjs +30 -3
  335. package/scripts/lib/legacy-agent-files.json +152 -0
  336. package/scripts/lib/mcp-config.mjs +74 -7
  337. package/scripts/lib/portal-names.mjs +78 -8
  338. package/scripts/lib/release-results.mjs +5 -2
  339. package/scripts/lib/report.mjs +340 -0
  340. package/scripts/lib/run-beat.mjs +14 -0
  341. package/scripts/lib/run-records.mjs +313 -0
  342. package/scripts/lib/selector-log.mjs +98 -0
  343. package/scripts/lib/ticket-beat.mjs +30 -0
  344. package/scripts/lib/validate-bb-markup.mjs +37 -2
  345. package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
@@ -4,29 +4,30 @@ import n from "../../assets/svgs/chevron_left.svg_raw.js";
4
4
  import r from "../../assets/svgs/chevron_right.svg_raw.js";
5
5
  import { returnFocusToOpener as i, rootElementOf as a, useOverlayHost as ee } from "../../composables/overlayRegistry.js";
6
6
  import { useBodyScrollLock as te } from "../../composables/useBodyScrollLock.js";
7
- import { useId as o } from "../../composables/useId.js";
8
- import { useLocale as ne } from "../../composables/useLocale.js";
9
- import { useLogger as re } from "../../composables/useLogger.js";
10
- import { usePassthrough as ie } from "../../composables/usePassthrough.js";
11
- import { registerTopLayerHost as ae } from "../../composables/useTopLayer.js";
12
- import { registerGalleryPreload as oe, takeGalleryTrigger as se } from "../../directives/bbGallery.js";
13
- import { animationsSettled as ce } from "../../utilities/functions/animationsSettled.js";
14
- import { wait as le } from "../../utilities/functions/wait.js";
15
- import { pageText as ue } from "../../utilities/misc/pageText.js";
16
- import { transitions as de } from "../../utilities/misc/transitions.js";
17
- import { isTopEscapeEntry as fe, pushEscapeEntry as pe, removeEscapeEntry as me } from "../../utils/overlayEscapeStack.js";
18
- import { overlaySurfaceIsolation as he } from "../../utils/overlaySurfaceIsolation.js";
19
- import { findGalleryItem as ge, toPhoto as _e } from "./findItem.js";
20
- import { BB_GALLERY_PT as ve } from "./types.js";
21
- import { Fragment as ye, computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as be, createVNode as xe, defineComponent as d, getCurrentInstance as Se, guardReactiveProps as Ce, mergeModels as f, mergeProps as p, nextTick as m, normalizeClass as we, normalizeProps as Te, onBeforeUnmount as Ee, onMounted as De, openBlock as h, reactive as Oe, ref as g, renderList as ke, renderSlot as Ae, toDisplayString as _, toHandlers as je, unref as v, useAttrs as Me, useModel as Ne, useSlots as Pe, watch as y } from "vue";
7
+ import { useId as ne } from "../../composables/useId.js";
8
+ import { useLocale as re } from "../../composables/useLocale.js";
9
+ import { useLogger as ie } from "../../composables/useLogger.js";
10
+ import { usePassthrough as ae } from "../../composables/usePassthrough.js";
11
+ import { registerTopLayerHost as oe } from "../../composables/useTopLayer.js";
12
+ import { registerGalleryPreload as se, takeGalleryTrigger as ce } from "../../directives/bbGallery.js";
13
+ import { animationsSettled as le } from "../../utilities/functions/animationsSettled.js";
14
+ import { wait as ue } from "../../utilities/functions/wait.js";
15
+ import { SlotContent as de, SlotNodes as fe } from "../../utilities/functions/slotContent.js";
16
+ import { pageText as pe } from "../../utilities/misc/pageText.js";
17
+ import { transitions as me } from "../../utilities/misc/transitions.js";
18
+ import { isTopEscapeEntry as he, pushEscapeEntry as ge, removeEscapeEntry as _e } from "../../utils/overlayEscapeStack.js";
19
+ import { overlaySurfaceIsolation as ve } from "../../utils/overlaySurfaceIsolation.js";
20
+ import { findGalleryItem as ye, toPhoto as be } from "./findItem.js";
21
+ import { BB_GALLERY_PT as xe } from "./types.js";
22
+ import { Fragment as o, computed as s, createBlock as Se, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as Ce, createVNode as d, defineComponent as f, getCurrentInstance as we, mergeModels as p, mergeProps as m, nextTick as h, normalizeClass as Te, onBeforeUnmount as Ee, onMounted as De, openBlock as g, reactive as Oe, ref as _, renderList as ke, renderSlot as Ae, toDisplayString as v, toHandlers as je, unref as y, useAttrs as Me, useModel as Ne, useSlots as Pe, watch as b, withCtx as Fe } from "vue";
22
23
  // src/components/BbGallery/BbGallery.vue?vue&type=script&setup=true&lang.ts
23
- var Fe = ["aria-labelledby", "inert"], Ie = [
24
+ var Ie = ["aria-labelledby", "inert"], Le = [
24
25
  "aria-hidden",
25
26
  "aria-label",
26
27
  "aria-roledescription",
27
28
  "inert",
28
29
  "role"
29
- ], Le = { class: "bb-gallery__frame" }, Re = ["aria-hidden"], ze = [
30
+ ], Re = { class: "bb-gallery__frame" }, ze = ["aria-hidden"], Be = [
30
31
  "alt",
31
32
  "fetchpriority",
32
33
  "height",
@@ -36,16 +37,16 @@ var Fe = ["aria-labelledby", "inert"], Ie = [
36
37
  "srcset",
37
38
  "width",
38
39
  "onError"
39
- ], Be = ["aria-label", "disabled"], Ve = ["aria-label", "disabled"], He = {
40
+ ], Ve = ["aria-label", "disabled"], He = ["aria-label", "disabled"], Ue = {
40
41
  "aria-live": "polite",
41
42
  class: "bb-sr-only"
42
- }, Ue = {
43
+ }, We = {
43
44
  key: 0,
44
45
  class: "bb-gallery__bar"
45
- }, We = ["tabindex"], Ge = ["aria-expanded"], b = /*@__PURE__*/ d({
46
+ }, Ge = ["tabindex"], Ke = ["aria-expanded"], x = /*@__PURE__*/ f({
46
47
  inheritAttrs: !1,
47
48
  __name: "BbGallery",
48
- props: /*@__PURE__*/ f({
49
+ props: /*@__PURE__*/ p({
49
50
  "pt:root": {},
50
51
  "pt:root:zoomed": {},
51
52
  "pt:header": {},
@@ -84,39 +85,39 @@ var Fe = ["aria-labelledby", "inert"], Ie = [
84
85
  modelModifiers: {}
85
86
  }),
86
87
  emits: ["update:modelValue"],
87
- setup(d) {
88
- let f = Ne(d, "modelValue"), b = d, Ke = Pe(), { t: x } = ne(), S = s(() => b.items.map(_e)), C = s(() => S.value.length), w = s(() => f.value !== null && C.value > 0), T = s(() => f.value === null ? 0 : Math.min(Math.max(Math.trunc(f.value), 0), Math.max(C.value - 1, 0))), E = s(() => !!b.loop && C.value > 1), qe = s(() => !E.value && T.value === 0), Je = s(() => !E.value && T.value === C.value - 1), Ye = s(() => !!b.title || !!Ke.title), Xe = s(() => b.title || x("gallery.label").value), Ze = (e) => x("gallery.position", e + 1, C.value).value, D = Oe({
88
+ setup(f) {
89
+ let p = Ne(f, "modelValue"), x = f, qe = Pe(), { t: S } = re(), C = s(() => x.items.map(be)), w = s(() => C.value.length), T = s(() => p.value !== null && w.value > 0), E = s(() => p.value === null ? 0 : Math.min(Math.max(Math.trunc(p.value), 0), Math.max(w.value - 1, 0))), D = s(() => !!x.loop && w.value > 1), Je = s(() => !D.value && E.value === 0), Ye = s(() => !D.value && E.value === w.value - 1), Xe = s(() => x.title || S("gallery.label").value), Ze = (e) => S("gallery.position", e + 1, w.value).value, O = Oe({
89
90
  scale: 1,
90
91
  x: 0,
91
92
  y: 0
92
- }), O = s(() => D.scale > 1.01), k = ie({
93
+ }), k = s(() => O.scale > 1.01), A = ae({
93
94
  component: "BbGallery",
94
95
  attrs: Me(),
95
- props: b,
96
- parts: ve.parts,
97
- states: ve.states,
98
- active: { zoomed: () => O.value }
99
- }), Qe = Se(), A = null, j = !1, $e = (e) => {
100
- process.env.NODE_ENV !== "production" && re().warn(e);
101
- }, M = ee("gallery", {
102
- id: () => b.id,
96
+ props: x,
97
+ parts: xe.parts,
98
+ states: xe.states,
99
+ active: { zoomed: () => k.value }
100
+ }), Qe = we(), j = null, M = !1, $e = (e) => {
101
+ process.env.NODE_ENV !== "production" && ie().warn(e);
102
+ }, N = ee("gallery", {
103
+ id: () => x.id,
103
104
  model: s({
104
- get: () => w.value,
105
+ get: () => T.value,
105
106
  set: (e) => {
106
- if (!e) return void (f.value = null);
107
- let t = M.data.value, n = ge(S.value, t);
108
- n < 0 ? $e(`v-bb-gallery="{ id: '${b.id}', item: ${JSON.stringify(t)} }" opens nothing: no photo of <BbGallery id="${b.id}"> has that ${typeof t == "number" ? "index" : "URL (its src or a srcset candidate)"}. Pass the index, or one of the item's URLs.`) : (j = !0, A = se(), f.value = n);
107
+ if (!e) return void (p.value = null);
108
+ let t = N.data.value, n = ye(C.value, t);
109
+ n < 0 ? $e(`v-bb-gallery="{ id: '${x.id}', item: ${JSON.stringify(t)} }" opens nothing: no photo of <BbGallery id="${x.id}"> has that ${typeof t == "number" ? "index" : "URL (its src or a srcset candidate)"}. Pass the index, or one of the item's URLs.`) : (M = !0, j = ce(), p.value = n);
109
110
  }
110
111
  }),
111
112
  element: () => a(Qe)
112
113
  }), et = () => {
113
114
  let e = a(Qe);
114
- e && (M.domId.value ? e.id = M.domId.value : e.removeAttribute("id"));
115
+ e && (N.domId.value ? e.id = N.domId.value : e.removeAttribute("id"));
115
116
  };
116
- De(et), y(() => M.domId.value, et);
117
+ De(et), b(() => N.domId.value, et);
117
118
  let tt = /* @__PURE__ */ new Set(), nt = (e) => {
118
- if (w.value || typeof Image != "function") return;
119
- let t = S.value[ge(S.value, e)];
119
+ if (T.value || typeof Image != "function") return;
120
+ let t = C.value[ye(C.value, e)];
120
121
  if (!t || tt.has(t.key)) return;
121
122
  tt.add(t.key);
122
123
  let n = new Image();
@@ -124,28 +125,28 @@ var Fe = ["aria-labelledby", "inert"], Ie = [
124
125
  }, rt;
125
126
  De(() => {
126
127
  let e = a(Qe);
127
- e && (rt = oe(e, nt));
128
- }), y(w, (e) => {
129
- if (e && (Dt.clear(), !j)) {
128
+ e && (rt = se(e, nt));
129
+ }), b(T, (e) => {
130
+ if (e && (Ot.clear(), !M)) {
130
131
  let e = document.activeElement;
131
- A = e instanceof HTMLElement && e !== document.body ? e : null;
132
+ j = e instanceof HTMLElement && e !== document.body ? e : null;
132
133
  }
133
134
  });
134
- let N = () => {
135
- f.value = null;
136
- }, P = (e) => {
137
- Number.isInteger(e) && e >= 0 && e < C.value && (f.value = e);
138
- }, it = s(() => {
139
- let { key: e, ...t } = S.value[T.value] ?? { key: "" };
135
+ let P = () => {
136
+ p.value = null;
137
+ }, it = (e) => {
138
+ Number.isInteger(e) && e >= 0 && e < w.value && (p.value = e);
139
+ }, at = s(() => {
140
+ let { key: e, ...t } = C.value[E.value] ?? { key: "" };
140
141
  return {
141
- index: T.value,
142
- count: C.value,
142
+ index: E.value,
143
+ count: w.value,
143
144
  item: t,
144
- go: P,
145
- close: N
145
+ go: it,
146
+ close: P
146
147
  };
147
- }), at = s(() => {
148
- let e = /* @__PURE__ */ new Map(), t = S.value.map((t, n) => {
148
+ }), ot = s(() => {
149
+ let e = /* @__PURE__ */ new Map(), t = C.value.map((t, n) => {
149
150
  let r = e.get(t.key) ?? 0;
150
151
  return e.set(t.key, r + 1), {
151
152
  item: t,
@@ -154,7 +155,7 @@ var Fe = ["aria-labelledby", "inert"], Ie = [
154
155
  key: `${t.key}#${r}`
155
156
  };
156
157
  });
157
- if (!E.value) return t;
158
+ if (!D.value) return t;
158
159
  let n = t[t.length - 1], r = t[0];
159
160
  return [
160
161
  {
@@ -169,196 +170,196 @@ var Fe = ["aria-labelledby", "inert"], Ie = [
169
170
  key: `clone-end:${r.key}`
170
171
  }
171
172
  ];
172
- }), F = (e) => e + +!!E.value, I = (e) => {
173
- let t = C.value;
174
- return E.value ? ((e - 1) % t + t) % t : Math.min(Math.max(e, 0), t - 1);
175
- }, ot = (e) => {
176
- let t = C.value, n = Math.abs(e.real - T.value);
177
- return n <= 1 || E.value && t - n <= 1;
173
+ }), F = (e) => e + +!!D.value, I = (e) => {
174
+ let t = w.value;
175
+ return D.value ? ((e - 1) % t + t) % t : Math.min(Math.max(e, 0), t - 1);
178
176
  }, st = (e) => {
179
- let { width: t, height: n } = e.item, r = !e.clone && e.real === T.value, i = {};
180
- return t && n && (i["--arw"] = String(t), i["--arh"] = String(n), i["--w"] = `${t}px`), r && O.value && (i.transform = `translate(${D.x}px, ${D.y}px) scale(${D.scale})`), i;
181
- }, L = g(null), ct = !1, R = null, lt = !1, ut = () => !!L.value && getComputedStyle(L.value).direction === "rtl", z = () => L.value?.clientWidth ?? 0, dt = () => {
177
+ let t = w.value, n = Math.abs(e.real - E.value);
178
+ return n <= 1 || D.value && t - n <= 1;
179
+ }, ct = (e) => {
180
+ let { width: t, height: n } = e.item, r = !e.clone && e.real === E.value, i = {};
181
+ return t && n && (i["--arw"] = String(t), i["--arh"] = String(n), i["--w"] = `${t}px`), r && k.value && (i.transform = `translate(${O.x}px, ${O.y}px) scale(${O.scale})`), i;
182
+ }, L = _(null), lt = !1, R = null, ut = !1, dt = () => !!L.value && getComputedStyle(L.value).direction === "rtl", z = () => L.value?.clientWidth ?? 0, ft = () => {
182
183
  let e = z();
183
184
  return e ? Math.abs(L.value.scrollLeft) / e : 0;
184
- }, B = () => Math.round(dt()), ft = () => typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches, pt = null, mt = (e) => {
185
+ }, B = () => Math.round(ft()), pt = () => typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches, mt = null, ht = (e) => {
185
186
  let t = L.value;
186
187
  t && (t.scrollTo({
187
- left: (ut() ? -1 : 1) * e * z(),
188
+ left: (dt() ? -1 : 1) * e * z(),
188
189
  behavior: "instant"
189
- }), pt = {
190
+ }), mt = {
190
191
  left: t.scrollLeft,
191
192
  width: z()
192
193
  });
193
- }, ht = () => {
194
- ft() || m(() => {
194
+ }, gt = () => {
195
+ pt() || h(() => {
195
196
  L.value?.querySelector(".bb-gallery__slide--active")?.animate([{ opacity: 0 }, { opacity: 1 }], {
196
197
  duration: 200,
197
198
  easing: "ease-out"
198
199
  });
199
200
  });
200
- }, gt = (e) => {
201
- R = e, mt(e), B() === e && (R = null), ht();
202
- }, _t = () => {
203
- L.value && z() && (R = null, mt(F(T.value)));
201
+ }, _t = (e) => {
202
+ R = e, ht(e), B() === e && (R = null), gt();
204
203
  }, vt = () => {
205
- if (!E.value || R !== null || lt) return;
204
+ L.value && z() && (R = null, ht(F(E.value)));
205
+ }, yt = () => {
206
+ if (!D.value || R !== null || ut) return;
206
207
  let e = B();
207
- e !== 0 && e !== C.value + 1 || Math.abs(dt() - e) > .01 || mt(F(I(e)));
208
+ e !== 0 && e !== w.value + 1 || Math.abs(ft() - e) > .01 || ht(F(I(e)));
208
209
  };
209
- y(T, (e) => {
210
- L.value && w.value && (G(), (R === null ? I(B()) === e : I(R) === e) || gt(F(e)));
210
+ b(E, (e) => {
211
+ L.value && T.value && (G(), (R === null ? I(B()) === e : I(R) === e) || _t(F(e)));
211
212
  });
212
- let yt = (e) => {
213
- let t = C.value;
214
- P(E.value ? ((T.value + e) % t + t) % t : T.value + e);
215
- }, bt = 0, xt, St = () => {
216
- clearTimeout(xt), xt = setTimeout(Ct, 150), bt ||= requestAnimationFrame(() => {
217
- if (bt = 0, !L.value || !w.value || !z() || !ct) return;
213
+ let bt = (e) => {
214
+ let t = w.value;
215
+ it(D.value ? ((E.value + e) % t + t) % t : E.value + e);
216
+ }, xt = 0, St, Ct = () => {
217
+ clearTimeout(St), St = setTimeout(wt, 150), xt ||= requestAnimationFrame(() => {
218
+ if (xt = 0, !L.value || !T.value || !z() || !lt || V && z() !== Tt) return;
218
219
  let e = B();
219
220
  if (R !== null) {
220
221
  if (e === R) R = null;
221
222
  else return;
222
223
  }
223
224
  let t = I(e);
224
- t !== T.value && (f.value = t), vt();
225
+ t !== E.value && (p.value = t), yt();
225
226
  });
226
- }, Ct = () => {
227
- clearTimeout(xt), R !== null && B() === R && (R = null), vt();
228
- }, V = null, wt = 0;
229
- y(L, (e) => {
230
- V?.disconnect(), V = null, e && (m(_t), typeof ResizeObserver == "function" && (wt = e.clientWidth, V = new ResizeObserver(() => {
227
+ }, wt = () => {
228
+ clearTimeout(St), R !== null && B() === R && (R = null), yt();
229
+ }, V = null, Tt = 0;
230
+ b(L, (e) => {
231
+ V?.disconnect(), V = null, e && (h(vt), typeof ResizeObserver == "function" && (Tt = e.clientWidth, V = new ResizeObserver(() => {
231
232
  U();
232
233
  let t = e.clientWidth;
233
- if (t === wt || (wt = t, lt)) return;
234
- let n = R ?? F(T.value);
235
- R = null, mt(n);
234
+ if (t === Tt || (Tt = t, ut)) return;
235
+ let n = R ?? F(E.value);
236
+ R = null, ht(n);
236
237
  }), V.observe(e)));
237
238
  });
238
- let Tt = () => {
239
- ct = !0;
239
+ let Et = () => {
240
+ lt = !0;
240
241
  let e = L.value;
241
- if (e && pt && z() === pt.width && Math.abs(e.scrollLeft - pt.left) > 1) {
242
+ if (e && mt && z() === mt.width && Math.abs(e.scrollLeft - mt.left) > 1) {
242
243
  R = null;
243
244
  let e = I(B());
244
- e !== T.value && (f.value = e), vt();
245
- } else _t();
246
- U(), Pt();
245
+ e !== E.value && (p.value = e), yt();
246
+ } else vt();
247
+ U(), Ft();
247
248
  };
248
- y([qe, Je], ([e, t]) => {
249
+ b([Je, Ye], ([e, t]) => {
249
250
  let n = document.activeElement;
250
251
  if (!(n instanceof HTMLElement)) return;
251
252
  let r = n.closest(".bb-gallery__stage");
252
253
  (e && n.classList.contains("bb-gallery__nav--prev") || t && n.classList.contains("bb-gallery__nav--next")) && r?.querySelector(t ? ".bb-gallery__nav--prev" : ".bb-gallery__nav--next")?.focus({ preventScroll: !0 });
253
254
  }, { flush: "pre" });
254
- let Et = (e) => {
255
+ let Dt = (e) => {
255
256
  if (e.defaultPrevented || e.altKey || e.metaKey || e.ctrlKey) return;
256
257
  let t = e.key === "ArrowRight" ? 1 : e.key === "ArrowLeft" ? -1 : 0;
257
- if (t) yt(ut() ? -t : t);
258
- else if (e.key === "Home") P(0);
259
- else if (e.key === "End") P(C.value - 1);
260
- else if (e.key === "+" || e.key === "=") Gt(1.5);
261
- else if (e.key === "-") Gt(1 / 1.5);
258
+ if (t) bt(dt() ? -t : t);
259
+ else if (e.key === "Home") it(0);
260
+ else if (e.key === "End") it(w.value - 1);
261
+ else if (e.key === "+" || e.key === "=") Kt(1.5);
262
+ else if (e.key === "-") Kt(1 / 1.5);
262
263
  else if (e.key === "0") G();
263
264
  else return;
264
265
  e.preventDefault();
265
266
  };
266
- y(S, (e, t) => {
267
- if (f.value === null) return;
268
- if (!e.length) return N();
269
- let n = t?.[T.value]?.key, r = n ? e.findIndex((e) => e.key === n) : -1, i = r >= 0 ? r : Math.min(T.value, e.length - 1);
270
- i !== f.value && (f.value = i), m(_t);
271
- }), y(() => [f.value, C.value], ([e]) => {
272
- e !== null && C.value && e !== T.value && (f.value = T.value);
267
+ b(C, (e, t) => {
268
+ if (p.value === null) return;
269
+ if (!e.length) return P();
270
+ let n = t?.[E.value]?.key, r = n ? e.findIndex((e) => e.key === n) : -1, i = r >= 0 ? r : Math.min(E.value, e.length - 1);
271
+ i !== p.value && (p.value = i), h(vt);
272
+ }), b(() => [p.value, w.value], ([e]) => {
273
+ e !== null && w.value && e !== E.value && (p.value = E.value);
273
274
  });
274
- let Dt = Oe(/* @__PURE__ */ new Set()), Ot = [], kt = 0, At = (e) => {
275
- Ot.push(e), kt ||= requestAnimationFrame(() => {
276
- kt = 0;
277
- for (let e of Ot) Dt.add(e);
278
- Ot = [];
275
+ let Ot = Oe(/* @__PURE__ */ new Set()), kt = [], At = 0, jt = (e) => {
276
+ kt.push(e), At ||= requestAnimationFrame(() => {
277
+ At = 0;
278
+ for (let e of kt) Ot.add(e);
279
+ kt = [];
279
280
  });
280
- }, jt = (e) => {
281
- w.value && !ft() && e.target.animate([{ opacity: 0 }, { opacity: 1 }], {
281
+ }, Mt = (e) => {
282
+ T.value && !pt() && e.target.animate([{ opacity: 0 }, { opacity: 1 }], {
282
283
  duration: 200,
283
284
  easing: "ease-out"
284
285
  });
285
- }, Mt = g(""), Nt, Pt = () => {
286
- clearTimeout(Nt), Nt = setTimeout(() => {
287
- let e = S.value[T.value];
288
- if (!w.value || !e) return;
289
- let t = Ze(T.value);
290
- Mt.value = [e.alt ? `${t}: ${e.alt}` : t, e.caption].filter(Boolean).join(". ");
286
+ }, Nt = _(""), Pt, Ft = () => {
287
+ clearTimeout(Pt), Pt = setTimeout(() => {
288
+ let e = C.value[E.value];
289
+ if (!T.value || !e) return;
290
+ let t = Ze(E.value);
291
+ Nt.value = [e.alt ? `${t}: ${e.alt}` : t, e.caption].filter(Boolean).join(". ");
291
292
  }, 350);
292
293
  };
293
- y(T, () => ct && Pt());
294
- let Ft = g(null), It = `bb-gallery-caption-${o().id.value}`, Lt = s(() => S.value[T.value]?.caption), Rt = s(() => S.value.some((e) => !!e.caption)), H = g(!1), zt = g(!1), U = () => {
294
+ b(E, () => lt && Ft());
295
+ let It = _(null), Lt = `bb-gallery-caption-${ne().id.value}`, Rt = s(() => C.value[E.value]?.caption), zt = s(() => C.value.some((e) => !!e.caption)), H = _(!1), Bt = _(!1), U = () => {
295
296
  if (H.value) return;
296
- let e = Ft.value;
297
- zt.value = !!e && e.clientWidth > 0 && e.scrollWidth > e.clientWidth + 1;
297
+ let e = It.value;
298
+ Bt.value = !!e && e.clientWidth > 0 && e.scrollWidth > e.clientWidth + 1;
298
299
  };
299
- y([
300
+ b([
301
+ E,
300
302
  T,
301
- w,
302
- Lt
303
+ Rt
303
304
  ], () => {
304
- H.value = !1, zt.value = !1, m(U);
305
- }), y(H, (e) => {
306
- e || m(U);
305
+ H.value = !1, Bt.value = !1, h(U);
306
+ }), b(H, (e) => {
307
+ e || h(U);
307
308
  });
308
309
  let W = null;
309
- y(Ft, (e) => {
310
- W?.disconnect(), W = null, m(U), e && typeof ResizeObserver == "function" && (W = new ResizeObserver(U), W.observe(e));
310
+ b(It, (e) => {
311
+ W?.disconnect(), W = null, h(U), e && typeof ResizeObserver == "function" && (W = new ResizeObserver(U), W.observe(e));
311
312
  }), De(() => void document.fonts?.ready.then(U));
312
- let Bt = (e) => {
313
+ let Vt = (e) => {
313
314
  H.value && (e.target.closest(".bb-gallery__caption, .bb-gallery__more") || (H.value = !1));
314
- }, Vt = () => L.value?.querySelector(".bb-gallery__slide--active .bb-gallery__image") ?? null, Ht = () => {
315
- let e = Vt();
315
+ }, Ht = () => L.value?.querySelector(".bb-gallery__slide--active .bb-gallery__image") ?? null, Ut = () => {
316
+ let e = Ht();
316
317
  if (!e || !e.clientWidth) return 2;
317
318
  let t = (e.naturalWidth || e.width) / e.clientWidth;
318
319
  return Math.min(Math.max(t, 2), 4);
319
- }, Ut = () => {
320
- let e = Vt(), t = e?.parentElement;
320
+ }, Wt = () => {
321
+ let e = Ht(), t = e?.parentElement;
321
322
  if (!e || !t) return;
322
- let n = e.clientWidth * D.scale, r = e.clientHeight * D.scale, i = Math.max(0, (n - t.clientWidth) / 2), a = Math.max(0, (r - t.clientHeight) / 2);
323
- D.x = Math.min(i, Math.max(-i, D.x)), D.y = Math.min(a, Math.max(-a, D.y));
324
- }, Wt = (e, t, n) => {
325
- let r = Vt();
323
+ let n = e.clientWidth * O.scale, r = e.clientHeight * O.scale, i = Math.max(0, (n - t.clientWidth) / 2), a = Math.max(0, (r - t.clientHeight) / 2);
324
+ O.x = Math.min(i, Math.max(-i, O.x)), O.y = Math.min(a, Math.max(-a, O.y));
325
+ }, Gt = (e, t, n) => {
326
+ let r = Ht();
326
327
  if (!r) return;
327
- let i = Math.min(Math.max(e, 1), Ht()), a = r.parentElement.getBoundingClientRect(), ee = a.left + a.width / 2, te = a.top + a.height / 2, o = (t ?? ee) - ee, ne = (n ?? te) - te, re = i / D.scale;
328
- D.x = o - (o - D.x) * re, D.y = ne - (ne - D.y) * re, D.scale = i, i <= 1.01 ? G() : Ut();
329
- }, Gt = (e) => Wt(D.scale * e), G = () => {
330
- D.scale = 1, D.x = 0, D.y = 0;
331
- }, Kt = (e, t) => O.value ? G() : Wt(Ht(), e, t), qt = (e) => {
332
- if (e.ctrlKey) e.preventDefault(), Wt(D.scale * Math.exp(-e.deltaY * .01), e.clientX, e.clientY);
328
+ let i = Math.min(Math.max(e, 1), Ut()), a = r.parentElement.getBoundingClientRect(), ee = a.left + a.width / 2, te = a.top + a.height / 2, ne = (t ?? ee) - ee, re = (n ?? te) - te, ie = i / O.scale;
329
+ O.x = ne - (ne - O.x) * ie, O.y = re - (re - O.y) * ie, O.scale = i, i <= 1.01 ? G() : Wt();
330
+ }, Kt = (e) => Gt(O.scale * e), G = () => {
331
+ O.scale = 1, O.x = 0, O.y = 0;
332
+ }, qt = (e, t) => k.value ? G() : Gt(Ut(), e, t), Jt = (e) => {
333
+ if (e.ctrlKey) e.preventDefault(), Gt(O.scale * Math.exp(-e.deltaY * .01), e.clientX, e.clientY);
333
334
  else {
334
- if (!O.value) {
335
- R = null, Yt(e);
335
+ if (!k.value) {
336
+ R = null, Xt(e);
336
337
  return;
337
338
  }
338
339
  e.preventDefault();
339
340
  let t = e.deltaMode === 1 ? 16 : e.deltaMode === 2 ? z() : 1, [n, r] = e.shiftKey && !e.deltaX ? [e.deltaY, 0] : [e.deltaX, e.deltaY];
340
- D.x -= n * t, D.y -= r * t, Ut();
341
+ O.x -= n * t, O.y -= r * t, Wt();
341
342
  }
342
- }, Jt = -Infinity, Yt = (e) => {
343
+ }, Yt = -Infinity, Xt = (e) => {
343
344
  if (!(Math.abs(e.deltaX) > Math.abs(e.deltaY) || e.shiftKey) || e.deltaMode === 0) return;
344
345
  e.preventDefault();
345
- let t = e.timeStamp - Jt < 250;
346
- Jt = e.timeStamp;
346
+ let t = e.timeStamp - Yt < 250;
347
+ Yt = e.timeStamp;
347
348
  let n = Math.sign(e.deltaX || e.deltaY);
348
- !t && n && yt(ut() ? -n : n);
349
+ !t && n && bt(dt() ? -n : n);
349
350
  };
350
- y(L, (e, t) => {
351
- t?.removeEventListener("wheel", qt), e?.addEventListener("wheel", qt, { passive: !1 });
351
+ b(L, (e, t) => {
352
+ t?.removeEventListener("wheel", Jt), e?.addEventListener("wheel", Jt, { passive: !1 });
352
353
  });
353
- let K = /* @__PURE__ */ new Map(), q = null, J = g(0), Xt = g(!1), Zt = s(() => Math.min(J.value / 320, 1)), Y = {
354
+ let K = /* @__PURE__ */ new Map(), q = null, J = _(0), Zt = _(!1), Qt = s(() => Math.min(J.value / 320, 1)), Y = {
354
355
  t: 0,
355
356
  x: 0,
356
357
  y: 0
357
- }, Qt, $t = "", en = () => {
358
+ }, $t, en = "", tn = () => {
358
359
  let [e, t] = [...K.values()];
359
360
  return Math.hypot(e.x - t.x, e.y - t.y);
360
- }, tn = (e) => {
361
- $t = e.pointerType, lt = !0, R = null, K.set(e.pointerId, {
361
+ }, nn = (e) => {
362
+ en = e.pointerType, ut = !0, R = null, K.set(e.pointerId, {
362
363
  x: e.clientX,
363
364
  y: e.clientY
364
365
  }), K.size === 2 && e.pointerType === "touch" ? q = {
@@ -366,45 +367,45 @@ var Fe = ["aria-labelledby", "inert"], Ie = [
366
367
  startX: 0,
367
368
  startY: 0,
368
369
  startT: e.timeStamp,
369
- zoomX: D.x,
370
- zoomY: D.y,
371
- pinchDistance: en(),
372
- pinchScale: D.scale,
370
+ zoomX: O.x,
371
+ zoomY: O.y,
372
+ pinchDistance: tn(),
373
+ pinchScale: O.scale,
373
374
  moved: !0
374
375
  } : K.size > 1 || (q = {
375
- kind: O.value ? "pan" : "idle",
376
+ kind: k.value ? "pan" : "idle",
376
377
  startX: e.clientX,
377
378
  startY: e.clientY,
378
379
  startT: e.timeStamp,
379
- zoomX: D.x,
380
- zoomY: D.y,
380
+ zoomX: O.x,
381
+ zoomY: O.y,
381
382
  pinchDistance: 0,
382
- pinchScale: D.scale,
383
+ pinchScale: O.scale,
383
384
  moved: !1
384
- }, O.value && e.target.setPointerCapture?.(e.pointerId));
385
- }, nn = (e) => {
385
+ }, k.value && e.target.setPointerCapture?.(e.pointerId));
386
+ }, rn = (e) => {
386
387
  if (!K.has(e.pointerId) || !q) return;
387
388
  K.set(e.pointerId, {
388
389
  x: e.clientX,
389
390
  y: e.clientY
390
391
  });
391
392
  let t = e.clientX - q.startX, n = e.clientY - q.startY;
392
- if (Math.hypot(t, n) > 6 && (q.moved = !0), q.kind !== "idle" && (Xt.value = !0), q.kind === "pinch" && K.size === 2) {
393
+ if (Math.hypot(t, n) > 6 && (q.moved = !0), q.kind !== "idle" && (Zt.value = !0), q.kind === "pinch" && K.size === 2) {
393
394
  let [e, t] = [...K.values()];
394
- Wt(q.pinchScale * en() / q.pinchDistance, (e.x + t.x) / 2, (e.y + t.y) / 2);
395
- } else q.kind === "pan" ? (D.x = q.zoomX + t, D.y = q.zoomY + n, Ut()) : (q.kind === "idle" && e.pointerType !== "mouse" && n > 10 && n > Math.abs(t) * 1.2 && (q.kind = "dismiss"), q.kind === "dismiss" && (Xt.value = !0, J.value = Math.max(0, n)));
396
- }, rn = (e) => {
395
+ Gt(q.pinchScale * tn() / q.pinchDistance, (e.x + t.x) / 2, (e.y + t.y) / 2);
396
+ } else q.kind === "pan" ? (O.x = q.zoomX + t, O.y = q.zoomY + n, Wt()) : (q.kind === "idle" && e.pointerType !== "mouse" && n > 10 && n > Math.abs(t) * 1.2 && (q.kind = "dismiss"), q.kind === "dismiss" && (Zt.value = !0, J.value = Math.max(0, n)));
397
+ }, an = (e) => {
397
398
  if (K.delete(e.pointerId), K.size) return;
398
- lt = !1, Xt.value = !1;
399
+ ut = !1, Zt.value = !1;
399
400
  let t = q;
400
401
  if (q = null, !t) return;
401
402
  if (t.kind === "dismiss") {
402
403
  let n = J.value / Math.max(e.timeStamp - t.startT, 1), r = e.type === "pointerup" && (J.value > 80 || n > .5);
403
- J.value = 0, r && N();
404
+ J.value = 0, r && P();
404
405
  return;
405
406
  }
406
407
  if (e.type !== "pointerup" || t.moved || e.pointerType === "mouse") {
407
- vt();
408
+ yt();
408
409
  return;
409
410
  }
410
411
  let n = e.target.closest(".bb-gallery__image"), r = e.timeStamp, i = r - Y.t < 300 && Math.hypot(e.clientX - Y.x, e.clientY - Y.y) < 30;
@@ -412,176 +413,197 @@ var Fe = ["aria-labelledby", "inert"], Ie = [
412
413
  t: r,
413
414
  x: e.clientX,
414
415
  y: e.clientY
415
- }, clearTimeout(Qt), i) {
416
- Y.t = 0, (n || O.value) && Kt(e.clientX, e.clientY);
416
+ }, clearTimeout($t), i) {
417
+ Y.t = 0, (n || k.value) && qt(e.clientX, e.clientY);
417
418
  return;
418
419
  }
419
420
  let a = e.target.closest(".bb-gallery__missing");
420
- if (!n && !a && !O.value && b.closeOnBackdropClick) return N();
421
- a || (Qt = setTimeout(() => sn.value = !sn.value, 300));
422
- }, an = (e) => {
423
- if (!($t !== "mouse" || e.detail > 1) && !e.target.closest(".bb-gallery__image, .bb-gallery__nav, .bb-gallery__missing")) {
424
- if (O.value) return G();
425
- b.closeOnBackdropClick && N();
426
- }
421
+ if (!n && !a && !k.value && x.closeOnBackdropClick) return P();
422
+ a || ($t = setTimeout(() => cn.value = !cn.value, 300));
427
423
  }, on = (e) => {
428
- $t && $t !== "mouse" || e.target.closest(".bb-gallery__image") && Kt(e.clientX, e.clientY);
424
+ if (!(en !== "mouse" || e.detail > 1) && !e.target.closest(".bb-gallery__image, .bb-gallery__nav, .bb-gallery__missing")) {
425
+ if (k.value) return G();
426
+ x.closeOnBackdropClick && P();
427
+ }
428
+ }, sn = (e) => {
429
+ en && en !== "mouse" || e.target.closest(".bb-gallery__image") && qt(e.clientX, e.clientY);
429
430
  };
430
- y(L, (e, t) => {
431
- t?.removeEventListener("dblclick", on), e?.addEventListener("dblclick", on);
431
+ b(L, (e, t) => {
432
+ t?.removeEventListener("dblclick", sn), e?.addEventListener("dblclick", sn);
432
433
  });
433
- let sn = g(!1), X = g(null), cn = `bb-gallery-title-${o().id.value}`, Z = g(!1), ln = s(() => w.value || Z.value), un = g();
434
+ let cn = _(!1), X = _(null), ln = `bb-gallery-title-${ne().id.value}`, Z = _(!1), un = s(() => T.value || Z.value), dn = _();
434
435
  te(Z);
435
- let Q = Symbol("bb-gallery"), dn = null, $ = 0, fn = async () => {
436
+ let fn = Symbol("bb-gallery"), Q = null, $ = 0, pn = async () => {
436
437
  let e = ++$;
437
- un.value = ue(), Z.value || pe(Q, { element: () => X.value }), Z.value = !0, await m();
438
+ dn.value = pe(), Z.value || ge(fn, { element: () => X.value }), Z.value = !0, await h();
438
439
  let t = X.value;
439
- t && e === $ && (t.open || t.showModal(), dn ??= ae(t), t.querySelector(".bb-gallery__stage")?.focus({ preventScroll: !0 }), await le(de.medium), await ce(t), e === $ && w.value && Tt());
440
- }, pn = async () => {
440
+ t && e === $ && (t.open || t.showModal(), Q ??= oe(t), t.querySelector(".bb-gallery__stage")?.focus({ preventScroll: !0 }), await ue(me.medium), await le(t), e === $ && T.value && Et());
441
+ }, mn = async () => {
441
442
  let e = $;
442
- await le(de.medium), e !== $ || w.value || mn();
443
- }, mn = () => {
444
- me(Q), X.value?.open && X.value.close(), dn?.(), dn = null, Z.value && (Z.value = !1, _n());
443
+ await ue(me.medium), e !== $ || T.value || hn();
444
+ }, hn = () => {
445
+ _e(fn), X.value?.open && X.value.close(), Q?.(), Q = null, Z.value && (Z.value = !1, vn());
445
446
  };
446
- y(w, (e) => void (e ? fn() : pn())), De(() => {
447
- w.value && fn();
447
+ b(T, (e) => void (e ? pn() : mn())), De(() => {
448
+ T.value && pn();
448
449
  });
449
- let hn = (e) => {
450
+ let gn = (e) => {
450
451
  if (e.preventDefault(), H.value) return void (H.value = !1);
451
- fe(Q) && N();
452
- }, gn = () => {
453
- w.value && X.value && ($++, f.value = null, mn());
452
+ he(fn) && P();
454
453
  }, _n = () => {
455
- ct = !1, R = null, H.value = !1, sn.value = !1, J.value = 0, G(), Mt.value = "";
456
- let e = A, t = j;
457
- if (A = null, j = !1, M.afterHidden(), t || !e) return;
454
+ T.value && X.value && ($++, p.value = null, hn());
455
+ }, vn = () => {
456
+ lt = !1, R = null, H.value = !1, cn.value = !1, J.value = 0, G(), Nt.value = "";
457
+ let e = j, t = M;
458
+ if (j = null, M = !1, N.afterHidden(), t || !e) return;
458
459
  let n = document.activeElement;
459
460
  n && n !== document.body || i(e);
460
461
  };
461
462
  return Ee(() => {
462
- $++, me(Q), X.value?.open && X.value.close(), dn?.(), rt?.(), V?.disconnect(), W?.disconnect(), bt && cancelAnimationFrame(bt), clearTimeout(xt), kt && cancelAnimationFrame(kt), clearTimeout(Nt), clearTimeout(Qt);
463
- }), (i, a) => (h(), l("dialog", p({
463
+ $++, _e(fn), X.value?.open && X.value.close(), Q?.(), rt?.(), V?.disconnect(), W?.disconnect(), xt && cancelAnimationFrame(xt), clearTimeout(St), At && cancelAnimationFrame(At), clearTimeout(Pt), clearTimeout($t);
464
+ }), (i, a) => (g(), l("dialog", m({
464
465
  ref_key: "root",
465
466
  ref: X,
466
- "aria-labelledby": ln.value ? cn : void 0,
467
+ "aria-labelledby": un.value ? ln : void 0,
467
468
  class: ["bb-gallery", {
468
- "bb-gallery--open": w.value,
469
+ "bb-gallery--open": T.value,
469
470
  "bb-gallery--visible": Z.value,
470
- "bb-gallery--zoomed": O.value,
471
- "bb-gallery--quiet": sn.value,
471
+ "bb-gallery--zoomed": k.value,
472
+ "bb-gallery--quiet": cn.value,
472
473
  "bb-gallery--dismissing": J.value > 0,
473
- "bb-gallery--gesture": Xt.value
474
+ "bb-gallery--gesture": Zt.value
474
475
  }],
475
- inert: !w.value || void 0,
476
- style: [un.value, J.value > 0 ? {
477
- "--dismiss": Zt.value,
476
+ inert: !T.value || void 0,
477
+ style: [dn.value, J.value > 0 ? {
478
+ "--dismiss": Qt.value,
478
479
  "--dismiss-y": `${J.value}px`
479
480
  } : void 0]
480
- }, je(v(he), !0), {
481
- onCancel: hn,
482
- onClose: gn,
483
- onKeydown: Et,
484
- onPointerdown: Bt
485
- }, v(k).rootAttrs), [ln.value ? (h(), l(ye, { key: 0 }, [
486
- u("div", p({ class: "bb-gallery__header" }, v(k).header), [Ae(i.$slots, "header", p(it.value, {
487
- title: d.title,
488
- titleId: cn
489
- }), () => [u("p", p({
490
- id: cn,
491
- class: ["bb-gallery__title", { "bb-sr-only": !Ye.value }]
492
- }, v(k).title), [Ae(i.$slots, "title", p(it.value, { text: d.title }), () => [be(_(Xe.value), 1)])], 16), xe(t, p({
493
- "aria-label": v(x)("dialog.closeLabel").value,
481
+ }, je(y(ve), !0), {
482
+ onCancel: gn,
483
+ onClose: _n,
484
+ onKeydown: Dt,
485
+ onPointerdown: Vt
486
+ }, y(A).rootAttrs), [un.value ? (g(), l(o, { key: 0 }, [
487
+ u("div", m({ class: "bb-gallery__header" }, y(A).header), [Ae(i.$slots, "header", m(at.value, {
488
+ title: f.title,
489
+ titleId: ln
490
+ }), () => [d(y(de), {
491
+ of: y(qe).title,
492
+ props: {
493
+ ...at.value,
494
+ text: f.title
495
+ }
496
+ }, {
497
+ default: Fe(({ nodes: e }) => [u("p", m({
498
+ id: ln,
499
+ class: ["bb-gallery__title", { "bb-sr-only": !f.title && !e }]
500
+ }, y(A).title), [e ? (g(), Se(y(fe), {
501
+ key: 0,
502
+ nodes: e
503
+ }, null, 8, ["nodes"])) : (g(), l(o, { key: 1 }, [Ce(v(Xe.value), 1)], 64))], 16)]),
504
+ _: 1
505
+ }, 8, ["of", "props"]), d(t, m({
506
+ "aria-label": y(S)("dialog.closeLabel").value,
494
507
  class: "bb-gallery__close"
495
- }, v(k).close, { onClick: N }), null, 16, ["aria-label"])])], 16),
508
+ }, y(A).close, { onClick: P }), null, 16, ["aria-label"])])], 16),
496
509
  u("div", {
497
510
  class: "bb-gallery__stage",
498
511
  tabindex: "-1",
499
- onClick: an
512
+ onClick: on
500
513
  }, [
501
514
  u("div", {
502
515
  ref_key: "track",
503
516
  ref: L,
504
517
  class: "bb-gallery__track",
505
518
  tabindex: "-1",
506
- onPointercancel: rn,
507
- onPointerdown: tn,
508
- onPointermove: nn,
509
- onPointerup: rn,
510
- onScrollPassive: St,
511
- onScrollend: Ct
512
- }, [(h(!0), l(ye, null, ke(at.value, (e) => (h(), l("figure", p({
519
+ onPointercancel: an,
520
+ onPointerdown: nn,
521
+ onPointermove: rn,
522
+ onPointerup: an,
523
+ onScrollPassive: Ct,
524
+ onScrollend: wt
525
+ }, [(g(!0), l(o, null, ke(ot.value, (e) => (g(), l("figure", m({
513
526
  key: e.key,
514
- "aria-hidden": e.clone || e.real !== T.value || void 0,
527
+ "aria-hidden": e.clone || e.real !== E.value || void 0,
515
528
  "aria-label": e.clone ? void 0 : Ze(e.real),
516
529
  "aria-roledescription": e.clone ? void 0 : "slide",
517
- class: ["bb-gallery__slide", { "bb-gallery__slide--active": !e.clone && e.real === T.value }],
518
- inert: e.clone || e.real !== T.value || void 0,
530
+ class: ["bb-gallery__slide", { "bb-gallery__slide--active": !e.clone && e.real === E.value }],
531
+ inert: e.clone || e.real !== E.value || void 0,
519
532
  role: e.clone ? void 0 : "group"
520
- }, { ref_for: !0 }, v(k).part("slide", { active: !e.clone && e.real === T.value }, e.item)), [u("div", Le, [Dt.has(e.item.key) ? (h(), l("p", {
533
+ }, { ref_for: !0 }, y(A).part("slide", { active: !e.clone && e.real === E.value }, e.item)), [u("div", Re, [Ot.has(e.item.key) ? (g(), l("p", {
521
534
  key: 0,
522
535
  "aria-hidden": !e.item.alt || void 0,
523
- class: we(["bb-gallery__missing", { "bb-gallery__missing--blank": !e.item.alt }])
524
- }, _(e.item.alt), 11, Re)) : (h(), l("img", p({
536
+ class: Te(["bb-gallery__missing", { "bb-gallery__missing--blank": !e.item.alt }])
537
+ }, v(e.item.alt), 11, ze)) : (g(), l("img", m({
525
538
  key: 1,
526
539
  alt: e.item.alt,
527
540
  class: ["bb-gallery__image", { "bb-gallery__image--sized": !!(e.item.width && e.item.height) }],
528
541
  decoding: "async",
529
542
  draggable: "false",
530
- fetchpriority: !e.clone && e.real === T.value ? "high" : void 0,
543
+ fetchpriority: !e.clone && e.real === E.value ? "high" : void 0,
531
544
  height: e.item.height,
532
- loading: ot(e) ? "eager" : "lazy",
545
+ loading: st(e) ? "eager" : "lazy",
533
546
  sizes: e.item.srcset ? e.item.sizes ?? "100vw" : void 0,
534
547
  src: e.item.src,
535
548
  srcset: e.item.srcset,
536
- style: st(e),
549
+ style: ct(e),
537
550
  width: e.item.width
538
- }, { ref_for: !0 }, v(k).image, {
539
- onError: (t) => At(e.item.key),
540
- onLoad: jt
541
- }), null, 16, ze))])], 16, Ie))), 128))], 544),
542
- d.items.length > 1 ? (h(), l(ye, { key: 0 }, [u("button", p({
543
- "aria-label": v(x)("gallery.previous").value,
551
+ }, { ref_for: !0 }, y(A).image, {
552
+ onError: (t) => jt(e.item.key),
553
+ onLoad: Mt
554
+ }), null, 16, Be))])], 16, Le))), 128))], 544),
555
+ f.items.length > 1 ? (g(), l(o, { key: 0 }, [u("button", m({
556
+ "aria-label": y(S)("gallery.previous").value,
544
557
  class: "bb-gallery__nav bb-gallery__nav--prev",
545
- disabled: qe.value,
558
+ disabled: Je.value,
546
559
  type: "button"
547
- }, v(k).part("prev", { disabled: qe.value }), { onClick: a[0] ||= (e) => yt(-1) }), [xe(e, {
548
- icon: v(n),
560
+ }, y(A).part("prev", { disabled: Je.value }), { onClick: a[0] ||= (e) => bt(-1) }), [d(e, {
561
+ icon: y(n),
549
562
  size: "24px"
550
- }, null, 8, ["icon"])], 16, Be), u("button", p({
551
- "aria-label": v(x)("gallery.next").value,
563
+ }, null, 8, ["icon"])], 16, Ve), u("button", m({
564
+ "aria-label": y(S)("gallery.next").value,
552
565
  class: "bb-gallery__nav bb-gallery__nav--next",
553
- disabled: Je.value,
566
+ disabled: Ye.value,
554
567
  type: "button"
555
- }, v(k).part("next", { disabled: Je.value }), { onClick: a[1] ||= (e) => yt(1) }), [xe(e, {
556
- icon: v(r),
568
+ }, y(A).part("next", { disabled: Ye.value }), { onClick: a[1] ||= (e) => bt(1) }), [d(e, {
569
+ icon: y(r),
557
570
  size: "24px"
558
- }, null, 8, ["icon"])], 16, Ve)], 64)) : c("", !0),
559
- u("p", He, _(Mt.value), 1)
571
+ }, null, 8, ["icon"])], 16, He)], 64)) : c("", !0),
572
+ u("p", Ue, v(Nt.value), 1)
560
573
  ]),
561
- i.$slots.footer || d.items.length > 1 || Rt.value ? (h(), l("div", p({
562
- key: 0,
563
- class: "bb-gallery__footer"
564
- }, v(k).footer), [!i.$slots.footer || Rt.value ? (h(), l("div", Ue, [Lt.value ? (h(), l("p", p({
565
- key: 0,
566
- id: It,
567
- class: ["bb-gallery__caption", { "bb-gallery__caption--open": H.value }],
568
- tabindex: H.value ? 0 : void 0
569
- }, v(k).caption), [u("span", {
570
- ref_key: "captionEl",
571
- ref: Ft,
572
- class: "bb-gallery__caption-text"
573
- }, _(Lt.value), 513), zt.value || H.value ? (h(), l("button", p({
574
- key: 0,
575
- "aria-controls": It,
576
- "aria-expanded": H.value,
577
- class: "bb-gallery__more",
578
- type: "button"
579
- }, v(k).more, { onClick: a[2] ||= (e) => H.value = !H.value }), _(H.value ? v(x)("gallery.less").value : v(x)("gallery.more").value), 17, Ge)) : c("", !0)], 16, We)) : c("", !0), !i.$slots.footer && d.items.length > 1 ? (h(), l("p", p({
580
- key: 1,
581
- "aria-hidden": "true",
582
- class: "bb-gallery__counter"
583
- }, v(k).counter), _(T.value + 1) + " / " + _(d.items.length), 17)) : c("", !0)])) : c("", !0), i.$slots.footer ? Ae(i.$slots, "footer", Te(Ce(it.value)), void 0, void 0, 1) : c("", !0)], 16)) : c("", !0)
584
- ], 64)) : c("", !0)], 16, Fe));
574
+ d(y(de), {
575
+ of: y(qe).footer,
576
+ props: at.value
577
+ }, {
578
+ default: Fe(({ nodes: e }) => [e || f.items.length > 1 || zt.value ? (g(), l("div", m({
579
+ key: 0,
580
+ class: "bb-gallery__footer"
581
+ }, y(A).footer), [!e || zt.value ? (g(), l("div", We, [Rt.value ? (g(), l("p", m({
582
+ key: 0,
583
+ id: Lt,
584
+ class: ["bb-gallery__caption", { "bb-gallery__caption--open": H.value }],
585
+ tabindex: H.value ? 0 : void 0
586
+ }, y(A).caption), [u("span", {
587
+ ref_key: "captionEl",
588
+ ref: It,
589
+ class: "bb-gallery__caption-text"
590
+ }, v(Rt.value), 513), Bt.value || H.value ? (g(), l("button", m({
591
+ key: 0,
592
+ "aria-controls": Lt,
593
+ "aria-expanded": H.value,
594
+ class: "bb-gallery__more",
595
+ type: "button"
596
+ }, y(A).more, { onClick: a[2] ||= (e) => H.value = !H.value }), v(H.value ? y(S)("gallery.less").value : y(S)("gallery.more").value), 17, Ke)) : c("", !0)], 16, Ge)) : c("", !0), !e && f.items.length > 1 ? (g(), l("p", m({
597
+ key: 1,
598
+ "aria-hidden": "true",
599
+ class: "bb-gallery__counter"
600
+ }, y(A).counter), v(E.value + 1) + " / " + v(f.items.length), 17)) : c("", !0)])) : c("", !0), e ? (g(), Se(y(fe), {
601
+ key: 1,
602
+ nodes: e
603
+ }, null, 8, ["nodes"])) : c("", !0)], 16)) : c("", !0)]),
604
+ _: 1
605
+ }, 8, ["of", "props"])
606
+ ], 64)) : c("", !0)], 16, Ie));
585
607
  }
586
608
  });
587
- export { b as default };
609
+ export { x as default };