bootstrap-vue-next 1.2.3 → 1.2.5

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 (189) hide show
  1. package/dist/{BAccordion-nQptHiXD.js → BAccordion-BfaVicrj.js} +2 -2
  2. package/dist/{BAccordion-nQptHiXD.js.map → BAccordion-BfaVicrj.js.map} +1 -1
  3. package/dist/{BAlert-Bl3TOay3.js → BAlert-Czy83dU3.js} +5 -5
  4. package/dist/{BAlert-Bl3TOay3.js.map → BAlert-Czy83dU3.js.map} +1 -1
  5. package/dist/{BApp-Bg5xEz8H.js → BApp-DZ9AITOm.js} +22 -3
  6. package/dist/BApp-DZ9AITOm.js.map +1 -0
  7. package/dist/BAutocomplete-Bh4Bp5AI.js +437 -0
  8. package/dist/BAutocomplete-Bh4Bp5AI.js.map +1 -0
  9. package/dist/{BAvatar-BsStQrBF.js → BAvatar-BJNeQ1fe.js} +2 -2
  10. package/dist/{BAvatar-BsStQrBF.js.map → BAvatar-BJNeQ1fe.js.map} +1 -1
  11. package/dist/{BButton-KZu5jczf.js → BButton-DlOQ5sem.js} +2 -2
  12. package/dist/{BButton-KZu5jczf.js.map → BButton-DlOQ5sem.js.map} +1 -1
  13. package/dist/{BCard-DELccMG-.js → BCard-Bc1wed-3.js} +2 -2
  14. package/dist/{BCard-DELccMG-.js.map → BCard-Bc1wed-3.js.map} +1 -1
  15. package/dist/{BCarousel-BV2EiQRM.js → BCarousel-B-WZR469.js} +4 -5
  16. package/dist/{BCarousel-BV2EiQRM.js.map → BCarousel-B-WZR469.js.map} +1 -1
  17. package/dist/{BCollapse-B2q9Ya2S.js → BCollapse-DCjKiTxo.js} +2 -2
  18. package/dist/{BCollapse-B2q9Ya2S.js.map → BCollapse-DCjKiTxo.js.map} +1 -1
  19. package/dist/BDateField-Oh-cU-4i.js +456 -0
  20. package/dist/BDateField-Oh-cU-4i.js.map +1 -0
  21. package/dist/BDatePicker-HNI11eCe.js +632 -0
  22. package/dist/BDatePicker-HNI11eCe.js.map +1 -0
  23. package/dist/{BDropdown-D4gLdtmX.js → BDropdown-04nGcMhm.js} +6 -7
  24. package/dist/{BDropdown-D4gLdtmX.js.map → BDropdown-04nGcMhm.js.map} +1 -1
  25. package/dist/{BFormCheckbox-BYNGQgr2.js → BFormCheckbox-zjr8OsNd.js} +2 -2
  26. package/dist/{BFormCheckbox-BYNGQgr2.js.map → BFormCheckbox-zjr8OsNd.js.map} +1 -1
  27. package/dist/{BFormFile-C2DnrbK7.js → BFormFile-D_s8tf1m.js} +2 -2
  28. package/dist/{BFormFile-C2DnrbK7.js.map → BFormFile-D_s8tf1m.js.map} +1 -1
  29. package/dist/{BFormInput-_AkAy6Wk.js → BFormInput-DnIBPLCx.js} +2 -2
  30. package/dist/{BFormInput-_AkAy6Wk.js.map → BFormInput-DnIBPLCx.js.map} +1 -1
  31. package/dist/BFormOtp-Dx2RxPAW.js +150 -0
  32. package/dist/BFormOtp-Dx2RxPAW.js.map +1 -0
  33. package/dist/{BFormRadio-DAddcnfE.js → BFormRadio-DUz60sBI.js} +2 -2
  34. package/dist/{BFormRadio-DAddcnfE.js.map → BFormRadio-DUz60sBI.js.map} +1 -1
  35. package/dist/{BFormRating-iKFgSFet.js → BFormRating-CtMmDgrF.js} +2 -2
  36. package/dist/{BFormRating-iKFgSFet.js.map → BFormRating-CtMmDgrF.js.map} +1 -1
  37. package/dist/{BFormSelect-CSS-_kul.js → BFormSelect-CeslPN3i.js} +2 -3
  38. package/dist/{BFormSelect-CSS-_kul.js.map → BFormSelect-CeslPN3i.js.map} +1 -1
  39. package/dist/{BFormSpinbutton-fkVMbQC3.js → BFormSpinbutton-BR9YTfYy.js} +2 -3
  40. package/dist/{BFormSpinbutton-fkVMbQC3.js.map → BFormSpinbutton-BR9YTfYy.js.map} +1 -1
  41. package/dist/{BFormTags-CUcyRTCK.js → BFormTags-6qQn0Vlv.js} +2 -3
  42. package/dist/{BFormTags-CUcyRTCK.js.map → BFormTags-6qQn0Vlv.js.map} +1 -1
  43. package/dist/{BFormTextarea-CBBlEcrV.js → BFormTextarea-DvLrtG08.js} +3 -3
  44. package/dist/{BFormTextarea-CBBlEcrV.js.map → BFormTextarea-DvLrtG08.js.map} +1 -1
  45. package/dist/{BImg-knz2UZQE.js → BImg-Dd8Pc1Ln.js} +2 -2
  46. package/dist/{BImg-knz2UZQE.js.map → BImg-Dd8Pc1Ln.js.map} +1 -1
  47. package/dist/{BModal-BjmeVZen.js → BModal-DOmTYI6F.js} +5 -6
  48. package/dist/{BModal-BjmeVZen.js.map → BModal-DOmTYI6F.js.map} +1 -1
  49. package/dist/{BNav-B2PlMEMD.js → BNav-D3XbyI1R.js} +2 -2
  50. package/dist/{BNav-B2PlMEMD.js.map → BNav-D3XbyI1R.js.map} +1 -1
  51. package/dist/{BOffcanvas-DfR32-ZP.js → BOffcanvas-DyPG7s8I.js} +5 -5
  52. package/dist/{BOffcanvas-DfR32-ZP.js.map → BOffcanvas-DyPG7s8I.js.map} +1 -1
  53. package/dist/{BPagination-CfrsVgDp.js → BPagination-DGvgWeYG.js} +3 -3
  54. package/dist/{BPagination-CfrsVgDp.js.map → BPagination-DGvgWeYG.js.map} +1 -1
  55. package/dist/{BPlaceholder-DI12zz0a.js → BPlaceholder-BrBmbfIg.js} +3 -3
  56. package/dist/{BPlaceholder-DI12zz0a.js.map → BPlaceholder-BrBmbfIg.js.map} +1 -1
  57. package/dist/{BProgress-BNxYppi-.js → BProgress-CXhe6hsN.js} +2 -2
  58. package/dist/{BProgress-BNxYppi-.js.map → BProgress-CXhe6hsN.js.map} +1 -1
  59. package/dist/{BTable-BZxX17YU.js → BTable-8jp3wPAI.js} +2 -2
  60. package/dist/{BTable-BZxX17YU.js.map → BTable-8jp3wPAI.js.map} +1 -1
  61. package/dist/{BTabs-Zp8CvCL_.js → BTabs-Cfe8HOGE.js} +2 -2
  62. package/dist/{BTabs-Zp8CvCL_.js.map → BTabs-Cfe8HOGE.js.map} +1 -1
  63. package/dist/BTimeField-vdultTwg.js +138 -0
  64. package/dist/BTimeField-vdultTwg.js.map +1 -0
  65. package/dist/{BToast-CqE2VMW2.js → BToast-vxfpFGe3.js} +5 -5
  66. package/dist/{BToast-CqE2VMW2.js.map → BToast-vxfpFGe3.js.map} +1 -1
  67. package/dist/{BTooltip-BHFBLXnr.js → BTooltip-CV5Ogidy.js} +5 -11
  68. package/dist/BTooltip-CV5Ogidy.js.map +1 -0
  69. package/dist/bootstrap-vue-next.mjs +36 -36
  70. package/dist/{classes-BEWWGbj5.js → classes-DCjKFM2E.js} +12 -2
  71. package/dist/classes-DCjKFM2E.js.map +1 -0
  72. package/dist/components/BTooltip/BTooltip.vue.d.mts +3 -3
  73. package/dist/components/BTooltip/BTooltip.vue.d.ts +3 -3
  74. package/dist/composables/usePopover/index.d.mts +9 -9
  75. package/dist/composables/usePopover/index.d.ts +9 -9
  76. package/dist/{floatingUi-Stb1SUvw.js → floatingUi-BhgR4GBJ.js} +10 -168
  77. package/dist/floatingUi-BhgR4GBJ.js.map +1 -0
  78. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  79. package/dist/src/components/BAccordion/index.mjs +1 -1
  80. package/dist/src/components/BAlert/index.mjs +1 -1
  81. package/dist/src/components/BApp/index.mjs +1 -1
  82. package/dist/src/components/BAutocomplete/index.mjs +1 -1
  83. package/dist/src/components/BAvatar/index.mjs +1 -1
  84. package/dist/src/components/BButton/index.mjs +1 -1
  85. package/dist/src/components/BCard/index.mjs +1 -1
  86. package/dist/src/components/BCarousel/index.mjs +1 -1
  87. package/dist/src/components/BCollapse/index.mjs +1 -1
  88. package/dist/src/components/BDateField/index.mjs +1 -1
  89. package/dist/src/components/BDatePicker/index.mjs +1 -1
  90. package/dist/src/components/BDropdown/index.mjs +1 -1
  91. package/dist/src/components/BFormCheckbox/index.mjs +1 -1
  92. package/dist/src/components/BFormFile/index.mjs +1 -1
  93. package/dist/src/components/BFormInput/index.mjs +1 -1
  94. package/dist/src/components/BFormOtp/index.mjs +1 -1
  95. package/dist/src/components/BFormRadio/index.mjs +1 -1
  96. package/dist/src/components/BFormRating/index.mjs +1 -1
  97. package/dist/src/components/BFormSelect/index.mjs +1 -1
  98. package/dist/src/components/BFormSpinbutton/index.mjs +1 -1
  99. package/dist/src/components/BFormTags/index.mjs +1 -1
  100. package/dist/src/components/BFormTextarea/index.mjs +1 -1
  101. package/dist/src/components/BImg/index.mjs +1 -1
  102. package/dist/src/components/BModal/index.mjs +1 -1
  103. package/dist/src/components/BNav/index.mjs +1 -1
  104. package/dist/src/components/BOffcanvas/index.mjs +1 -1
  105. package/dist/src/components/BPagination/index.mjs +1 -1
  106. package/dist/src/components/BPlaceholder/index.mjs +1 -1
  107. package/dist/src/components/BPopover/index.mjs +1 -1
  108. package/dist/src/components/BProgress/index.mjs +1 -1
  109. package/dist/src/components/BTable/index.mjs +1 -1
  110. package/dist/src/components/BTabs/index.mjs +1 -1
  111. package/dist/src/components/BTimeField/index.mjs +1 -1
  112. package/dist/src/components/BToast/index.mjs +1 -1
  113. package/dist/src/components/BTooltip/index.mjs +1 -1
  114. package/dist/src/components/index.mjs +36 -36
  115. package/dist/src/composables/index.mjs +1 -1
  116. package/dist/src/composables/orchestratorShared/index.mjs +145 -27
  117. package/dist/src/composables/orchestratorShared/index.mjs.map +1 -1
  118. package/dist/src/composables/useColorMode/index.mjs +1 -1
  119. package/dist/src/composables/useModal/index.mjs +1 -1
  120. package/dist/src/composables/usePopover/index.mjs +2 -2
  121. package/dist/src/composables/useScrollLock/index.mjs +1 -2
  122. package/dist/src/composables/useScrollLock/index.mjs.map +1 -1
  123. package/dist/src/composables/useScrollspy/index.mjs +1 -2
  124. package/dist/src/composables/useScrollspy/index.mjs.map +1 -1
  125. package/dist/src/composables/useToast/index.mjs +1 -1
  126. package/dist/src/directives/BPopover/index.mjs +2 -2
  127. package/dist/src/directives/BScrollspy/index.mjs +1 -1
  128. package/dist/src/directives/BToggle/index.mjs +1 -1
  129. package/dist/src/directives/BTooltip/index.mjs +2 -2
  130. package/dist/src/directives/index.mjs +1 -1
  131. package/dist/src/plugins/index.mjs +1 -1
  132. package/dist/src/resolvers/index.mjs +1 -1
  133. package/dist/src/types/index.mjs +1 -1
  134. package/dist/src/utils/index.mjs +2 -2
  135. package/dist/types/ComponentOrchestratorTypes.d.mts +8 -1
  136. package/dist/types/ComponentOrchestratorTypes.d.ts +8 -1
  137. package/dist/{useCountdownHover-BN8vJIQW.js → useCountdownHover-HZSJZkHq.js} +2 -2
  138. package/dist/{useCountdownHover-BN8vJIQW.js.map → useCountdownHover-HZSJZkHq.js.map} +1 -1
  139. package/dist/{useFormInput-C-iXRxog.js → useFormInput-CMtXFoM2.js} +2 -3
  140. package/dist/{useFormInput-C-iXRxog.js.map → useFormInput-CMtXFoM2.js.map} +1 -1
  141. package/dist/useSafeScrollLock-BT4KKhxB.js +89 -0
  142. package/dist/useSafeScrollLock-BT4KKhxB.js.map +1 -0
  143. package/dist/{useShowHide-B6RQbFDt.js → useShowHide-BLIZLD9E.js} +125 -56
  144. package/dist/useShowHide-BLIZLD9E.js.map +1 -0
  145. package/dist/utils/classes.d.mts +10 -0
  146. package/dist/utils/classes.d.ts +10 -0
  147. package/dist/{utils-CK56zzsO.js → utils-CvjliJBf.js} +2 -2
  148. package/dist/{utils-CK56zzsO.js.map → utils-CvjliJBf.js.map} +1 -1
  149. package/package.json +3 -23
  150. package/dist/BApp-Bg5xEz8H.js.map +0 -1
  151. package/dist/BAutocomplete-BFbbKtpz.js +0 -2490
  152. package/dist/BAutocomplete-BFbbKtpz.js.map +0 -1
  153. package/dist/BDateField-Bj-Jz7u4.js +0 -906
  154. package/dist/BDateField-Bj-Jz7u4.js.map +0 -1
  155. package/dist/BDatePicker-AVTYcVLy.js +0 -5210
  156. package/dist/BDatePicker-AVTYcVLy.js.map +0 -1
  157. package/dist/BFormOtp-ClDACqXM.js +0 -577
  158. package/dist/BFormOtp-ClDACqXM.js.map +0 -1
  159. package/dist/BTimeField-CbRGjaI6.js +0 -516
  160. package/dist/BTimeField-CbRGjaI6.js.map +0 -1
  161. package/dist/BTooltip-BHFBLXnr.js.map +0 -1
  162. package/dist/DateRangeFieldInput-Cbzjg8iF.js +0 -761
  163. package/dist/DateRangeFieldInput-Cbzjg8iF.js.map +0 -1
  164. package/dist/PopperContent-C9eeL6LH.js +0 -1726
  165. package/dist/PopperContent-C9eeL6LH.js.map +0 -1
  166. package/dist/VisuallyHidden-BYzyjJiY.js +0 -182
  167. package/dist/VisuallyHidden-BYzyjJiY.js.map +0 -1
  168. package/dist/VisuallyHiddenInput-CUrc8XXa.js +0 -180
  169. package/dist/VisuallyHiddenInput-CUrc8XXa.js.map +0 -1
  170. package/dist/classes-BEWWGbj5.js.map +0 -1
  171. package/dist/dist-9-XTMhb-.js +0 -1302
  172. package/dist/dist-9-XTMhb-.js.map +0 -1
  173. package/dist/dist-B-regXAP.js +0 -123
  174. package/dist/dist-B-regXAP.js.map +0 -1
  175. package/dist/dist-DKc2ivHS.js +0 -411
  176. package/dist/dist-DKc2ivHS.js.map +0 -1
  177. package/dist/floating-ui.dom-C7UZexJK.js +0 -1484
  178. package/dist/floating-ui.dom-C7UZexJK.js.map +0 -1
  179. package/dist/floatingUi-Stb1SUvw.js.map +0 -1
  180. package/dist/rolldown-runtime-BBjsoOtd.js +0 -27
  181. package/dist/useDateField-CQZb799C.js +0 -3679
  182. package/dist/useDateField-CQZb799C.js.map +0 -1
  183. package/dist/useForwardExpose-DDvk7mir.js +0 -60
  184. package/dist/useForwardExpose-DDvk7mir.js.map +0 -1
  185. package/dist/useKbd-DRsaFU_f.js +0 -76
  186. package/dist/useKbd-DRsaFU_f.js.map +0 -1
  187. package/dist/useSafeScrollLock-PVgSASYu.js +0 -1326
  188. package/dist/useSafeScrollLock-PVgSASYu.js.map +0 -1
  189. package/dist/useShowHide-B6RQbFDt.js.map +0 -1
@@ -1,63 +1,63 @@
1
- import { t as __exportAll } from "../../rolldown-runtime-BBjsoOtd.js";
2
- import { t as BModal_default } from "../../BModal-BjmeVZen.js";
1
+ import { t as __exportAll } from "../../rolldown-runtime-D7D4PA-g.js";
2
+ import { t as BModal_default } from "../../BModal-DOmTYI6F.js";
3
3
  import { t as BAspect_default } from "../../BAspect-BPR6DH5W.js";
4
- import { t as BCollapse_default } from "../../BCollapse-B2q9Ya2S.js";
5
- import { n as BAccordionItem_default, t as BAccordion_default } from "../../BAccordion-nQptHiXD.js";
4
+ import { t as BCollapse_default } from "../../BCollapse-DCjKiTxo.js";
5
+ import { n as BAccordionItem_default, t as BAccordion_default } from "../../BAccordion-BfaVicrj.js";
6
6
  import { t as BLink_default } from "../../BLink-mdwZsC7b.js";
7
7
  import { t as BCloseButton_default } from "../../BCloseButton-B3-IdpNp.js";
8
- import { n as BProgressBar_default, t as BProgress_default } from "../../BProgress-BNxYppi-.js";
8
+ import { n as BProgressBar_default, t as BProgress_default } from "../../BProgress-CXhe6hsN.js";
9
9
  import { t as BSpinner_default } from "../../BSpinner-H1DZOmiM.js";
10
- import { t as BButton_default } from "../../BButton-KZu5jczf.js";
11
- import { t as BAlert_default } from "../../BAlert-Bl3TOay3.js";
12
- import { n as BOrchestrator_default, t as BApp_default } from "../../BApp-Bg5xEz8H.js";
13
- import { t as BAutocomplete_default } from "../../BAutocomplete-BFbbKtpz.js";
14
- import { t as BFormOtp_default } from "../../BFormOtp-ClDACqXM.js";
15
- import { n as BDatePicker_default, t as BDateRangePicker_default } from "../../BDatePicker-AVTYcVLy.js";
16
- import { t as BTimeField_default } from "../../BTimeField-CbRGjaI6.js";
17
- import { n as BDateRangeField_default, r as BDateField_default, t as BTimeRangeField_default } from "../../BDateField-Bj-Jz7u4.js";
10
+ import { t as BButton_default } from "../../BButton-DlOQ5sem.js";
11
+ import { t as BAlert_default } from "../../BAlert-Czy83dU3.js";
12
+ import { n as BOrchestrator_default, t as BApp_default } from "../../BApp-DZ9AITOm.js";
18
13
  import { t as BInputGroup_default } from "../../BInputGroup-DdoeSICR.js";
19
- import { t as BFormInput_default } from "../../BFormInput-_AkAy6Wk.js";
14
+ import { t as BFormInput_default } from "../../BFormInput-DnIBPLCx.js";
20
15
  import { t as BFormTag_default } from "../../BFormTag-DGSUfz7A.js";
16
+ import { t as BAutocomplete_default } from "../../BAutocomplete-Bh4Bp5AI.js";
21
17
  import { t as BBadge_default } from "../../BBadge-BaZ13wE_.js";
22
- import { n as BAvatar_default, t as BAvatarGroup_default } from "../../BAvatar-BsStQrBF.js";
18
+ import { n as BAvatar_default, t as BAvatarGroup_default } from "../../BAvatar-BJNeQ1fe.js";
23
19
  import { n as BBreadcrumbItem_default, t as BBreadcrumb_default } from "../../BBreadcrumb-C-SsS3hM.js";
24
20
  import { n as BButtonGroup_default, t as BButtonToolbar_default } from "../../BButton-Cc2gd95Z.js";
25
- import { t as BImg_default } from "../../BImg-knz2UZQE.js";
26
- import { a as BCardTitle_default, i as BCardSubtitle_default, n as BCardFooter_default, o as BCardHeader_default, r as BCardBody_default, s as BCardImg_default, t as BCard_default } from "../../BCard-DELccMG-.js";
21
+ import { t as BImg_default } from "../../BImg-Dd8Pc1Ln.js";
22
+ import { a as BCardTitle_default, i as BCardSubtitle_default, n as BCardFooter_default, o as BCardHeader_default, r as BCardBody_default, s as BCardImg_default, t as BCard_default } from "../../BCard-Bc1wed-3.js";
27
23
  import { n as BCardGroup_default, t as BCardText_default } from "../../BCard-D2GEiXan.js";
28
- import { n as BCarousel_default, t as BCarouselSlide_default } from "../../BCarousel-BV2EiQRM.js";
24
+ import { n as BCarousel_default, t as BCarouselSlide_default } from "../../BCarousel-B-WZR469.js";
29
25
  import { t as BCol_default } from "../../BCol-DiZFbqU5.js";
30
26
  import { t as BContainer_default } from "../../BContainer-D-bZVPwa.js";
31
27
  import { t as BRow_default } from "../../BRow-CoBI89xF.js";
32
- import { u as BPopover_default } from "../../floatingUi-Stb1SUvw.js";
33
- import { t as BDropdown_default } from "../../BDropdown-D4gLdtmX.js";
28
+ import { n as BDateRangeField_default, r as BDateField_default, t as BTimeRangeField_default } from "../../BDateField-Oh-cU-4i.js";
29
+ import { n as BDatePicker_default, t as BDateRangePicker_default } from "../../BDatePicker-HNI11eCe.js";
30
+ import { u as BPopover_default } from "../../floatingUi-BhgR4GBJ.js";
31
+ import { t as BDropdown_default } from "../../BDropdown-04nGcMhm.js";
34
32
  import { a as BDropdownGroup_default, i as BDropdownHeader_default, n as BDropdownItemButton_default, o as BDropdownForm_default, r as BDropdownItem_default, s as BDropdownDivider_default, t as BDropdownText_default } from "../../BDropdown-D4VSJJxu.js";
35
33
  import { t as BForm_default } from "../../BForm-BOoX6AAr.js";
36
34
  import { t as BFormSelectOption_default } from "../../BFormSelectOption-C8orMj24.js";
37
35
  import { n as BFormDatalist_default, t as BFormFloatingLabel_default } from "../../BForm-CcbrqF35.js";
38
36
  import { i as BFormInvalidFeedback_default, n as BFormText_default, r as BFormRow_default, t as BFormValidFeedback_default } from "../../BFormValidFeedback-BTNOXbQ6.js";
39
- import { n as BFormCheckbox_default, t as BFormCheckboxGroup_default } from "../../BFormCheckbox-BYNGQgr2.js";
40
- import { t as BFormFile_default } from "../../BFormFile-C2DnrbK7.js";
37
+ import { n as BFormCheckbox_default, t as BFormCheckboxGroup_default } from "../../BFormCheckbox-zjr8OsNd.js";
38
+ import { t as BFormFile_default } from "../../BFormFile-D_s8tf1m.js";
41
39
  import { t as BFormGroup_default } from "../../BFormGroup-D3R7DxxF.js";
42
- import { n as BFormRadio_default, t as BFormRadioGroup_default } from "../../BFormRadio-DAddcnfE.js";
43
- import { t as BFormRating_default } from "../../BFormRating-iKFgSFet.js";
44
- import { n as BFormSelectOptionGroup_default, t as BFormSelect_default } from "../../BFormSelect-CSS-_kul.js";
45
- import { t as BFormSpinbutton_default } from "../../BFormSpinbutton-fkVMbQC3.js";
46
- import { t as BFormTags_default } from "../../BFormTags-CUcyRTCK.js";
47
- import { t as BFormTextarea_default } from "../../BFormTextarea-CBBlEcrV.js";
40
+ import { n as BFormRadio_default, t as BFormRadioGroup_default } from "../../BFormRadio-DUz60sBI.js";
41
+ import { t as BFormRating_default } from "../../BFormRating-CtMmDgrF.js";
42
+ import { n as BFormSelectOptionGroup_default, t as BFormSelect_default } from "../../BFormSelect-CeslPN3i.js";
43
+ import { t as BFormSpinbutton_default } from "../../BFormSpinbutton-BR9YTfYy.js";
44
+ import { t as BFormTags_default } from "../../BFormTags-6qQn0Vlv.js";
45
+ import { t as BFormTextarea_default } from "../../BFormTextarea-DvLrtG08.js";
48
46
  import { t as BInputGroupText_default } from "../../BInputGroup-Bjh7zXyI.js";
49
47
  import { n as BListGroup_default, t as BListGroupItem_default } from "../../BListGroup-wJMMfLDf.js";
50
- import { a as BNav_default, i as BNavForm_default, n as BNavItemDropdown_default, r as BNavItem_default, t as BNavText_default } from "../../BNav-B2PlMEMD.js";
48
+ import { a as BNav_default, i as BNavForm_default, n as BNavItemDropdown_default, r as BNavItem_default, t as BNavText_default } from "../../BNav-D3XbyI1R.js";
51
49
  import { i as BNavbar_default, n as BNavbarNav_default, r as BNavbarBrand_default, t as BNavbarToggle_default } from "../../BNavbar-DRqkdxTk.js";
52
- import { t as BOffcanvas_default } from "../../BOffcanvas-DfR32-ZP.js";
50
+ import { t as BOffcanvas_default } from "../../BOffcanvas-DyPG7s8I.js";
51
+ import { t as BFormOtp_default } from "../../BFormOtp-Dx2RxPAW.js";
53
52
  import { t as BOverlay_default } from "../../BOverlay-CJfy_f6O.js";
54
- import { t as BPagination_default } from "../../BPagination-CfrsVgDp.js";
55
- import { a as BPlaceholder_default, i as BPlaceholderButton_default, n as BPlaceholderTable_default, r as BPlaceholderCard_default, t as BPlaceholderWrapper_default } from "../../BPlaceholder-DI12zz0a.js";
53
+ import { t as BPagination_default } from "../../BPagination-DGvgWeYG.js";
54
+ import { a as BPlaceholder_default, i as BPlaceholderButton_default, n as BPlaceholderTable_default, r as BPlaceholderCard_default, t as BPlaceholderWrapper_default } from "../../BPlaceholder-BrBmbfIg.js";
56
55
  import { t as BTableSimple_default } from "../../BTableSimple-2Z7ssnuG.js";
57
- import { a as BTh_default, c as BTbody_default, i as BThead_default, n as BTableLite_default, o as BTfoot_default, r as BTr_default, s as BTd_default, t as BTable_default } from "../../BTable-BZxX17YU.js";
58
- import { n as BTab_default, t as BTabs_default } from "../../BTabs-Zp8CvCL_.js";
59
- import { t as BToast_default } from "../../BToast-CqE2VMW2.js";
60
- import { t as BTooltip_default } from "../../BTooltip-BHFBLXnr.js";
56
+ import { a as BTh_default, c as BTbody_default, i as BThead_default, n as BTableLite_default, o as BTfoot_default, r as BTr_default, s as BTd_default, t as BTable_default } from "../../BTable-8jp3wPAI.js";
57
+ import { n as BTab_default, t as BTabs_default } from "../../BTabs-Cfe8HOGE.js";
58
+ import { t as BTimeField_default } from "../../BTimeField-vdultTwg.js";
59
+ import { t as BToast_default } from "../../BToast-vxfpFGe3.js";
60
+ import { t as BTooltip_default } from "../../BTooltip-CV5Ogidy.js";
61
61
  //#region src/components/index.ts
62
62
  var components_exports = /* @__PURE__ */ __exportAll({
63
63
  BAccordion: () => BAccordion_default,
@@ -1,4 +1,4 @@
1
- import { t as __exportAll } from "../../rolldown-runtime-BBjsoOtd.js";
1
+ import { t as __exportAll } from "../../rolldown-runtime-D7D4PA-g.js";
2
2
  import { useOrchestratorRegistry } from "./orchestratorShared/index.mjs";
3
3
  import { useBreadcrumb } from "./useBreadcrumb/index.mjs";
4
4
  import { useColorMode } from "./useColorMode/index.mjs";
@@ -1,31 +1,110 @@
1
- import { r as BvTriggerableEvent } from "../../../classes-BEWWGbj5.js";
1
+ import { r as BvTriggerableEvent } from "../../../classes-DCjKFM2E.js";
2
2
  import { _ as orchestratorRegistryKey } from "../../../keys-BgLwJbLV.js";
3
- import { inject, nextTick, provide, readonly, ref, shallowRef, watch } from "vue";
3
+ import { effectScope, inject, nextTick, provide, readonly, ref, shallowRef, watch } from "vue";
4
4
  //#region src/composables/orchestratorShared/index.ts
5
5
  var buildController = (id, store) => {
6
- let resolveFunc = () => {};
7
- const basePromise = new Promise((resolve) => {
8
- resolveFunc = resolve;
9
- });
6
+ /**
7
+ * True from a show() request on a mounted component until the store records it as open (the
8
+ * component reveals it) or the cycle settles. A show can still be waiting for its frame or delay
9
+ */
10
+ let showRequested = false;
11
+ /**
12
+ * The cycle waiting for a show requested through the store's modelValue: the mount-time show of
13
+ * an item that was not mounted when show() was called, or the show a mounted component starts
14
+ * when its modelValue changes. Only that show's show-prevented event may settle it
15
+ */
16
+ let storeShowCycle;
17
+ /**
18
+ * True from a hide request until the store's modelValue changes or the component reports hidden.
19
+ * The store keeps recording the component as open until its hide delay has passed, so a show()
20
+ * in that window has to reach the component to cancel the hide
21
+ */
22
+ let hideRequested = false;
23
+ /**
24
+ * The last numeric modelValue the item had: a toast's countdown. The component counts it down to
25
+ * 0, so showing the item again has to put it back. Forgotten once the item is shown with `true`
26
+ */
27
+ let countdown;
28
+ /**
29
+ * The dismissal the current show/hide cycle is waiting for. Each cycle gets its own, so a
30
+ * controller can be shown again after it was dismissed
31
+ */
32
+ let dismissal;
33
+ const currentDismissal = () => {
34
+ if (!dismissal) {
35
+ let resolve = () => {};
36
+ dismissal = {
37
+ promise: new Promise((r) => {
38
+ resolve = r;
39
+ }),
40
+ resolve
41
+ };
42
+ }
43
+ return dismissal;
44
+ };
10
45
  const findItem = () => store.value.get(id);
46
+ const scope = effectScope(true);
47
+ scope.run(() => {
48
+ watch(() => findItem()?.value.props.modelValue, (value) => {
49
+ hideRequested = false;
50
+ if (value) showRequested = false;
51
+ if (typeof value === "number" && value > 0) countdown = value;
52
+ else if (value === true) countdown = void 0;
53
+ }, { flush: "sync" });
54
+ });
11
55
  const instance = shallowRef(null);
12
56
  /**
57
+ * Called with the component's hide, hidden or show-prevented event. Settles the current cycle
58
+ */
59
+ const finishCycle = (event) => {
60
+ showRequested = false;
61
+ storeShowCycle = void 0;
62
+ const current = dismissal;
63
+ dismissal = void 0;
64
+ current?.resolve(event);
65
+ };
66
+ const settle = (event) => {
67
+ if (event.eventType === "show-prevented" && (!dismissal || storeShowCycle !== dismissal)) return;
68
+ finishCycle(event);
69
+ hideRequested = event.eventType === "hide";
70
+ };
71
+ /**
72
+ * Shows the item by writing its modelValue. Used when there is no component show() to call, and
73
+ * to restart a countdown, which the component only does for a numeric modelValue
74
+ */
75
+ const showThroughStore = (cycle, modelValue) => {
76
+ storeShowCycle = cycle;
77
+ controller.set({ modelValue });
78
+ if (instance.value !== null) nextTick(() => {
79
+ if (storeShowCycle === cycle) storeShowCycle = void 0;
80
+ });
81
+ };
82
+ let unmountedHideTrigger;
83
+ /**
13
84
  * Resolves with the component's own event. A hidden item with no mounted component never emits
14
85
  * one: it was dismissed before it mounted, or it unmounted before its hide finished. In that case
15
- * it resolves on its own. Mounted items always go through the component
86
+ * it resolves on its own. Mounted items always go through the component.
87
+ * Take the cycle before asking the component to show or hide: it may report synchronously
16
88
  */
17
- const awaitDismissal = async () => {
89
+ const awaitDismissal = async (cycle = currentDismissal()) => {
18
90
  let stopWatch = () => {};
19
91
  const dismissedWithoutInstance = new Promise((resolve) => {
20
92
  stopWatch = watch([() => findItem()?.value.props.modelValue, instance], ([modelValue, mounted]) => {
21
- if (!modelValue && mounted === null) resolve(new BvTriggerableEvent("hidden", { ok: null }));
93
+ if (!modelValue && mounted === null) {
94
+ const event = new BvTriggerableEvent("hidden", {
95
+ trigger: unmountedHideTrigger ?? null,
96
+ ok: null
97
+ });
98
+ if (dismissal === cycle) finishCycle(event);
99
+ resolve(event);
100
+ }
22
101
  }, {
23
102
  immediate: true,
24
103
  flush: "sync"
25
104
  });
26
105
  });
27
106
  try {
28
- return await Promise.race([basePromise, dismissedWithoutInstance]);
107
+ return await Promise.race([cycle.promise, dismissedWithoutInstance]);
29
108
  } finally {
30
109
  stopWatch();
31
110
  }
@@ -37,27 +116,65 @@ var buildController = (id, store) => {
37
116
  },
38
117
  set ref(value) {
39
118
  instance.value = value;
119
+ if (value !== null && storeShowCycle) {
120
+ const cycle = storeShowCycle;
121
+ Promise.resolve().then(() => {
122
+ if (storeShowCycle === cycle) storeShowCycle = void 0;
123
+ });
124
+ }
40
125
  },
41
- async show() {
42
- if (controller.get()?.value.props.modelValue) {
43
- const event = await awaitDismissal();
44
- return Object.assign(Object.create(event), { [Symbol.asyncDispose]: controller.destroy });
126
+ async show({ signal } = {}) {
127
+ const withDispose = (event) => Object.assign(Object.create(event), { [Symbol.asyncDispose]: controller.destroy });
128
+ const currentModelValue = controller.get()?.value.props.modelValue;
129
+ const isShown = !!currentModelValue || showRequested || controller.ref?.visible === true;
130
+ if (signal?.aborted && !isShown) return withDispose(new BvTriggerableEvent("hidden", {
131
+ trigger: "abort",
132
+ ok: null
133
+ }));
134
+ const cycle = currentDismissal();
135
+ const abort = () => {
136
+ controller.hide("abort");
137
+ Promise.resolve().then(() => {
138
+ if (dismissal === cycle) controller.hide("abort");
139
+ });
140
+ };
141
+ signal?.addEventListener("abort", abort, { once: true });
142
+ try {
143
+ if (signal?.aborted) abort();
144
+ else if (!showRequested && (!currentModelValue || hideRequested)) {
145
+ const cancelsHide = !!currentModelValue;
146
+ if (!cancelsHide) unmountedHideTrigger = void 0;
147
+ const refWithMethods = controller.ref;
148
+ if (!cancelsHide && countdown !== void 0) showThroughStore(cycle, countdown);
149
+ else if (refWithMethods !== null && "show" in refWithMethods && typeof refWithMethods.show === "function") {
150
+ if (!cancelsHide) showRequested = true;
151
+ hideRequested = false;
152
+ Promise.resolve(refWithMethods.show()).then((result) => {
153
+ if (result === "show-prevented" && dismissal === cycle) finishCycle(new BvTriggerableEvent("show-prevented", { ok: null }));
154
+ });
155
+ } else if (!cancelsHide) showThroughStore(cycle, true);
156
+ if (signal?.aborted) abort();
157
+ }
158
+ return withDispose(await awaitDismissal(cycle));
159
+ } finally {
160
+ signal?.removeEventListener("abort", abort);
45
161
  }
46
- const refWithMethods = controller.ref;
47
- if (refWithMethods !== null && "show" in refWithMethods && typeof refWithMethods.show === "function") refWithMethods.show();
48
- else controller.set({ modelValue: true });
49
- const event = await awaitDismissal();
50
- return Object.assign(Object.create(event), { [Symbol.asyncDispose]: controller.destroy });
51
162
  },
52
163
  hide(trigger) {
53
164
  const refWithMethods = controller.ref;
54
- if (refWithMethods !== null && "hide" in refWithMethods && typeof refWithMethods.hide === "function") refWithMethods.hide(trigger, true);
55
- else controller.set({ modelValue: false });
165
+ if (refWithMethods !== null && "hide" in refWithMethods && typeof refWithMethods.hide === "function") {
166
+ hideRequested = true;
167
+ refWithMethods.hide(trigger, true);
168
+ } else {
169
+ if (refWithMethods === null) unmountedHideTrigger = trigger;
170
+ controller.set({ modelValue: false });
171
+ }
56
172
  },
57
173
  toggle() {
58
174
  const currentItem = controller.get();
59
175
  const refWithMethods = controller.ref;
60
- if (refWithMethods !== null && "toggle" in refWithMethods && typeof refWithMethods.toggle === "function") refWithMethods.toggle();
176
+ if (!currentItem?.value.props.modelValue && countdown !== void 0) controller.set({ modelValue: countdown });
177
+ else if (refWithMethods !== null && "toggle" in refWithMethods && typeof refWithMethods.toggle === "function") refWithMethods.toggle();
61
178
  else controller.set({ modelValue: !currentItem?.value.props.modelValue });
62
179
  },
63
180
  get: findItem,
@@ -73,15 +190,16 @@ var buildController = (id, store) => {
73
190
  },
74
191
  async destroy() {
75
192
  const item = findItem();
76
- if (!item) return;
77
193
  try {
78
- if (item.value.props.modelValue) {
194
+ if (item && (item.value.props.modelValue || showRequested)) {
195
+ const cycle = currentDismissal();
79
196
  controller.hide("destroy");
80
- await awaitDismissal();
197
+ await awaitDismissal(cycle);
81
198
  await nextTick();
82
199
  }
83
200
  } finally {
84
- store.value.delete(id);
201
+ if (item) store.value.delete(id);
202
+ scope.stop();
85
203
  }
86
204
  },
87
205
  [Symbol.asyncDispose]() {
@@ -90,7 +208,7 @@ var buildController = (id, store) => {
90
208
  };
91
209
  return {
92
210
  controller,
93
- resolve: resolveFunc
211
+ resolve: settle
94
212
  };
95
213
  };
96
214
  var _newOrchestratorRegistry = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/composables/orchestratorShared/index.ts"],"sourcesContent":["import {\n type ComponentPublicInstance,\n inject,\n nextTick,\n provide,\n readonly,\n type Ref,\n ref,\n shallowRef,\n watch,\n} from 'vue'\nimport type {ComponentController, ControllerKey, PromiseWithController} from '../../types'\nimport {BvTriggerableEvent} from '../../utils'\nimport {orchestratorRegistryKey, type OrchestratorStoreObject} from '../../utils/keys'\n\n/* oxlint-disable-next-line no-explicit-any */\n/* eslint-disable-next-line @typescript-eslint/no-explicit-any */\nexport type ValueInMapRecord<MapRecord> = MapRecord extends Map<any, infer I> ? I : never\n\nexport const buildController = <\n TComponent,\n TStore extends Readonly<Ref<OrchestratorStoreObject[keyof OrchestratorStoreObject]>>,\n>(\n id: ControllerKey,\n store: TStore\n): PromiseWithController<TComponent, ValueInMapRecord<TStore['value']>> => {\n let resolveFunc: (value: BvTriggerableEvent) => void = () => {}\n\n const basePromise = new Promise<BvTriggerableEvent>((resolve) => {\n resolveFunc = resolve\n })\n\n type RefWithMethods = ComponentPublicInstance<TComponent> & {\n show?: () => void\n hide?: (trigger?: string, noEmit?: boolean) => void\n toggle?: () => void\n }\n const findItem = () => store.value.get(id)\n\n // Backs controller.ref. It has to be reactive so awaitDismissal notices the component unmounting,\n // shallow because component instances must not be made deeply reactive\n const instance = shallowRef<RefWithMethods | null>(null)\n\n /**\n * Resolves with the component's own event. A hidden item with no mounted component never emits\n * one: it was dismissed before it mounted, or it unmounted before its hide finished. In that case\n * it resolves on its own. Mounted items always go through the component\n */\n const awaitDismissal = async () => {\n let stopWatch = () => {}\n const dismissedWithoutInstance = new Promise<BvTriggerableEvent>((resolve) => {\n stopWatch = watch(\n [() => findItem()?.value.props.modelValue, instance],\n ([modelValue, mounted]) => {\n if (!modelValue && mounted === null) resolve(new BvTriggerableEvent('hidden', {ok: null}))\n },\n // immediate: destroy() hides before it awaits, so the dismissal may already have happened.\n // sync: decide before the orchestrator can mount the item\n {immediate: true, flush: 'sync'}\n )\n })\n try {\n return await Promise.race([basePromise, dismissedWithoutInstance])\n } finally {\n stopWatch()\n }\n }\n\n const controller = {\n id,\n // A getter so the public API keeps returning the instance itself rather than the ref\n // v100 TODO: expose it as `ref: readonly(instance)`. Exposing a Ref is a breaking change, so it waits for a major\n get ref(): RefWithMethods | null {\n return instance.value\n },\n set ref(value: RefWithMethods | null) {\n instance.value = value\n },\n async show() {\n const currentModelValue = controller.get()?.value.props.modelValue\n if (currentModelValue) {\n const event = await awaitDismissal()\n return Object.assign(Object.create(event), {\n [Symbol.asyncDispose]: controller.destroy,\n })\n }\n const refWithMethods = controller.ref\n if (\n refWithMethods !== null &&\n 'show' in refWithMethods &&\n typeof refWithMethods.show === 'function'\n ) {\n refWithMethods.show()\n } else {\n controller.set({modelValue: true})\n }\n const event = await awaitDismissal()\n return Object.assign(Object.create(event), {\n [Symbol.asyncDispose]: controller.destroy,\n })\n },\n hide(trigger?: string) {\n const refWithMethods = controller.ref\n if (\n refWithMethods !== null &&\n 'hide' in refWithMethods &&\n typeof refWithMethods.hide === 'function'\n ) {\n refWithMethods.hide(trigger, true)\n } else {\n controller.set({modelValue: false})\n }\n },\n toggle() {\n const currentItem = controller.get()\n const refWithMethods = controller.ref\n if (\n refWithMethods !== null &&\n 'toggle' in refWithMethods &&\n typeof refWithMethods.toggle === 'function'\n ) {\n refWithMethods.toggle()\n } else {\n controller.set({modelValue: !currentItem?.value.props.modelValue})\n }\n },\n get: findItem,\n set(val: Partial<ValueInMapRecord<TStore['value']>['value']['props']>) {\n const current = findItem()\n if (current?.value) {\n current.value = {\n ...current.value,\n props: {\n ...current.value.props,\n ...val,\n /* oxlint-disable no-explicit-any */\n /* eslint-disable @typescript-eslint/no-explicit-any */\n } as any,\n }\n }\n },\n async destroy() {\n const item = findItem()\n if (!item) return\n try {\n if (item.value.props.modelValue) {\n controller.hide('destroy')\n await awaitDismissal()\n await nextTick()\n }\n } finally {\n store.value.delete(id)\n }\n },\n [Symbol.asyncDispose]() {\n return controller.destroy()\n },\n } as ComponentController<TComponent, ValueInMapRecord<TStore['value']>>\n\n return {\n controller,\n resolve: resolveFunc,\n }\n}\n\nexport const _newOrchestratorRegistry = (): {\n store: Readonly<Ref<OrchestratorStoreObject>>\n _isToastAppend: Readonly<Ref<boolean>>\n _setToastAppend: (value: boolean) => void\n _isOrchestratorInstalled: Readonly<Ref<boolean>>\n _setOrchestratorInstalled: (value: boolean) => void\n} => {\n const _isOrchestratorInstalled = ref(false)\n const _isToastAppend = ref(false)\n\n return {\n store: ref({\n modal: new Map(),\n tooltip: new Map(),\n popover: new Map(),\n toast: new Map(),\n }),\n _isOrchestratorInstalled: readonly(_isOrchestratorInstalled),\n _setOrchestratorInstalled: (v) => {\n _isOrchestratorInstalled.value = v\n },\n _isToastAppend: readonly(_isToastAppend),\n _setToastAppend: (v) => {\n _isToastAppend.value = v\n },\n }\n}\n\nexport const useOrchestratorRegistry = () => {\n const orchestratorRegistry = inject(orchestratorRegistryKey, null)\n\n if (orchestratorRegistry) {\n return orchestratorRegistry\n }\n const newOrchestratorRegistry = _newOrchestratorRegistry()\n provide(orchestratorRegistryKey, newOrchestratorRegistry)\n return newOrchestratorRegistry\n}\n\nexport const getOrchestratorControllerId = (propId: string | undefined) => {\n const id: ControllerKey = propId || Symbol('OrchestratorItem')\n\n return {\n /**\n * This id is used for stability in the store, using the createIdWatcher will update the store if the id ever changes\n */\n storeId: id,\n /**\n * Do not pass in the symbol as a prop. Html attribute cannot be a symbol. Thus it's internal\n */\n htmlAttributeId: typeof id === 'string' ? id : undefined,\n }\n}\n"],"mappings":";;;;AAmBA,IAAa,mBAIX,IACA,UACyE;CACzE,IAAI,oBAAyD,CAAC;CAE9D,MAAM,cAAc,IAAI,SAA6B,YAAY;EAC/D,cAAc;CAChB,CAAC;CAOD,MAAM,iBAAiB,MAAM,MAAM,IAAI,EAAE;CAIzC,MAAM,WAAW,WAAkC,IAAI;;;;;;CAOvD,MAAM,iBAAiB,YAAY;EACjC,IAAI,kBAAkB,CAAC;EACvB,MAAM,2BAA2B,IAAI,SAA6B,YAAY;GAC5E,YA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AiB,OAAO,OAAO,WAAW,KAAK,KAAA;CACjD;AACF"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/composables/orchestratorShared/index.ts"],"sourcesContent":["import {\n type ComponentPublicInstance,\n effectScope,\n inject,\n nextTick,\n provide,\n readonly,\n type Ref,\n ref,\n shallowRef,\n watch,\n} from 'vue'\nimport type {\n ComponentController,\n ControllerKey,\n OrchestratorShowOptions,\n PromiseWithController,\n} from '../../types'\nimport {BvTriggerableEvent} from '../../utils'\nimport {orchestratorRegistryKey, type OrchestratorStoreObject} from '../../utils/keys'\n\n/* oxlint-disable-next-line no-explicit-any */\n/* eslint-disable-next-line @typescript-eslint/no-explicit-any */\nexport type ValueInMapRecord<MapRecord> = MapRecord extends Map<any, infer I> ? I : never\n\nexport const buildController = <\n TComponent,\n TStore extends Readonly<Ref<OrchestratorStoreObject[keyof OrchestratorStoreObject]>>,\n>(\n id: ControllerKey,\n store: TStore\n): PromiseWithController<TComponent, ValueInMapRecord<TStore['value']>> => {\n /**\n * True from a show() request on a mounted component until the store records it as open (the\n * component reveals it) or the cycle settles. A show can still be waiting for its frame or delay\n */\n let showRequested = false\n /**\n * The cycle waiting for a show requested through the store's modelValue: the mount-time show of\n * an item that was not mounted when show() was called, or the show a mounted component starts\n * when its modelValue changes. Only that show's show-prevented event may settle it\n */\n let storeShowCycle: Dismissal | undefined\n /**\n * True from a hide request until the store's modelValue changes or the component reports hidden.\n * The store keeps recording the component as open until its hide delay has passed, so a show()\n * in that window has to reach the component to cancel the hide\n */\n let hideRequested = false\n /**\n * The last numeric modelValue the item had: a toast's countdown. The component counts it down to\n * 0, so showing the item again has to put it back. Forgotten once the item is shown with `true`\n */\n let countdown: number | undefined\n\n type Dismissal = {promise: Promise<BvTriggerableEvent>; resolve: (e: BvTriggerableEvent) => void}\n /**\n * The dismissal the current show/hide cycle is waiting for. Each cycle gets its own, so a\n * controller can be shown again after it was dismissed\n */\n let dismissal: Dismissal | undefined\n const currentDismissal = (): Dismissal => {\n if (!dismissal) {\n let resolve: (e: BvTriggerableEvent) => void = () => {}\n const promise = new Promise<BvTriggerableEvent>((r) => {\n resolve = r\n })\n dismissal = {promise, resolve}\n }\n return dismissal\n }\n\n type RefWithMethods = ComponentPublicInstance<TComponent> & {\n show?: () => unknown\n hide?: (trigger?: string, noEmit?: boolean) => void\n toggle?: () => void\n visible?: boolean\n }\n const findItem = () => store.value.get(id)\n // Detached, so the watcher lives exactly as long as the controller whether or not it was created\n // inside a component's setup. destroy() stops it\n const scope = effectScope(true)\n scope.run(() => {\n watch(\n () => findItem()?.value.props.modelValue,\n (value) => {\n hideRequested = false\n if (value) showRequested = false\n if (typeof value === 'number' && value > 0) {\n countdown = value\n } else if (value === true) {\n countdown = undefined\n }\n },\n {flush: 'sync'}\n )\n })\n\n // Backs controller.ref. It has to be reactive so awaitDismissal notices the component unmounting,\n // shallow because component instances must not be made deeply reactive\n const instance = shallowRef<RefWithMethods | null>(null)\n /**\n * Called with the component's hide, hidden or show-prevented event. Settles the current cycle\n */\n const finishCycle = (event: BvTriggerableEvent) => {\n showRequested = false\n storeShowCycle = undefined\n const current = dismissal\n dismissal = undefined\n current?.resolve(event)\n }\n const settle = (event: BvTriggerableEvent) => {\n // A component reports show-prevented for any show. It only ends the cycle waiting for a show\n // requested through the store; a prevented show() call is read from that call's own result\n if (event.eventType === 'show-prevented' && (!dismissal || storeShowCycle !== dismissal)) return\n finishCycle(event)\n // A hide event only gets here with resolveOnHide. The component is still open at this point\n hideRequested = event.eventType === 'hide'\n }\n /**\n * Shows the item by writing its modelValue. Used when there is no component show() to call, and\n * to restart a countdown, which the component only does for a numeric modelValue\n */\n const showThroughStore = (cycle: Dismissal, modelValue: true | number) => {\n storeShowCycle = cycle\n controller.set({modelValue} as never)\n // A mounted component reacts to its new modelValue in the next flush. One that has yet to\n // mount shows in its mounted hook, see the ref setter\n if (instance.value !== null) {\n void nextTick(() => {\n if (storeShowCycle === cycle) storeShowCycle = undefined\n })\n }\n }\n // The trigger of a hide() made while no component is mounted, for the event awaitDismissal makes up\n let unmountedHideTrigger: string | undefined\n\n /**\n * Resolves with the component's own event. A hidden item with no mounted component never emits\n * one: it was dismissed before it mounted, or it unmounted before its hide finished. In that case\n * it resolves on its own. Mounted items always go through the component.\n * Take the cycle before asking the component to show or hide: it may report synchronously\n */\n const awaitDismissal = async (cycle: Dismissal = currentDismissal()) => {\n let stopWatch = () => {}\n const dismissedWithoutInstance = new Promise<BvTriggerableEvent>((resolve) => {\n stopWatch = watch(\n [() => findItem()?.value.props.modelValue, instance],\n ([modelValue, mounted]) => {\n if (!modelValue && mounted === null) {\n const event = new BvTriggerableEvent('hidden', {\n trigger: unmountedHideTrigger ?? null,\n ok: null,\n })\n // Settle now, so a show() right after this can't join the finished cycle\n if (dismissal === cycle) finishCycle(event)\n resolve(event)\n }\n },\n // immediate: destroy() hides before it awaits, so the dismissal may already have happened.\n // sync: decide before the orchestrator can mount the item\n {immediate: true, flush: 'sync'}\n )\n })\n try {\n return await Promise.race([cycle.promise, dismissedWithoutInstance])\n } finally {\n stopWatch()\n }\n }\n\n const controller = {\n id,\n // A getter so the public API keeps returning the instance itself rather than the ref\n // v100 TODO: expose it as `ref: readonly(instance)`. Exposing a Ref is a breaking change, so it waits for a major\n get ref(): RefWithMethods | null {\n return instance.value\n },\n set ref(value: RefWithMethods | null) {\n instance.value = value\n // The mount-time show runs in the component's mounted hook, right after its ref is set\n if (value !== null && storeShowCycle) {\n const cycle = storeShowCycle\n void Promise.resolve().then(() => {\n if (storeShowCycle === cycle) storeShowCycle = undefined\n })\n }\n },\n async show({signal}: OrchestratorShowOptions = {}) {\n const withDispose = (event: BvTriggerableEvent) =>\n Object.assign(Object.create(event), {\n [Symbol.asyncDispose]: controller.destroy,\n })\n const currentModelValue = controller.get()?.value.props.modelValue\n // The store learns the component is open only once its show is revealed, so also count a show\n // this controller requested and the component's own visible flag\n const isShown =\n !!currentModelValue ||\n showRequested ||\n (controller.ref as RefWithMethods | null)?.visible === true\n if (signal?.aborted && !isShown) {\n return withDispose(new BvTriggerableEvent('hidden', {trigger: 'abort', ok: null}))\n }\n const cycle = currentDismissal()\n const abort = () => {\n controller.hide('abort')\n // A show listener can abort before its show is committed, when there is nothing to hide\n // yet: the mount-time show of an item that was not mounted, or a show still being\n // requested. Hide again once it had the chance to commit; a repeated hide is ignored\n void Promise.resolve().then(() => {\n if (dismissal === cycle) controller.hide('abort')\n })\n }\n signal?.addEventListener('abort', abort, {once: true})\n try {\n if (signal?.aborted) {\n abort()\n } else if (!showRequested && (!currentModelValue || hideRequested)) {\n // With hideRequested the store still records the component as open, but it may be\n // waiting out a hide. Its show() cancels that hide, and does nothing if there is none\n const cancelsHide = !!currentModelValue\n if (!cancelsHide) unmountedHideTrigger = undefined\n const refWithMethods = controller.ref\n if (!cancelsHide && countdown !== undefined) {\n showThroughStore(cycle, countdown)\n } else if (\n refWithMethods !== null &&\n 'show' in refWithMethods &&\n typeof refWithMethods.show === 'function'\n ) {\n // The store clears showRequested when it records the open, which it already has here\n if (!cancelsHide) showRequested = true\n hideRequested = false\n void Promise.resolve(refWithMethods.show()).then((result) => {\n if (result === 'show-prevented' && dismissal === cycle) {\n finishCycle(new BvTriggerableEvent('show-prevented', {ok: null}))\n }\n })\n } else if (!cancelsHide) {\n showThroughStore(cycle, true)\n }\n // A show listener may have aborted while the show was being requested, before there was\n // anything to hide. Hide now that the show is committed\n if (signal?.aborted) abort()\n }\n return withDispose(await awaitDismissal(cycle))\n } finally {\n signal?.removeEventListener('abort', abort)\n }\n },\n hide(trigger?: string) {\n const refWithMethods = controller.ref\n if (\n refWithMethods !== null &&\n 'hide' in refWithMethods &&\n typeof refWithMethods.hide === 'function'\n ) {\n // Before the call: a hide that finishes at once is recorded by the store, which clears it\n hideRequested = true\n refWithMethods.hide(trigger, true)\n } else {\n if (refWithMethods === null) unmountedHideTrigger = trigger\n controller.set({modelValue: false})\n }\n },\n toggle() {\n const currentItem = controller.get()\n const refWithMethods = controller.ref\n if (!currentItem?.value.props.modelValue && countdown !== undefined) {\n controller.set({modelValue: countdown} as never)\n } else if (\n refWithMethods !== null &&\n 'toggle' in refWithMethods &&\n typeof refWithMethods.toggle === 'function'\n ) {\n refWithMethods.toggle()\n } else {\n controller.set({modelValue: !currentItem?.value.props.modelValue})\n }\n },\n get: findItem,\n set(val: Partial<ValueInMapRecord<TStore['value']>['value']['props']>) {\n const current = findItem()\n if (current?.value) {\n current.value = {\n ...current.value,\n props: {\n ...current.value.props,\n ...val,\n /* oxlint-disable no-explicit-any */\n /* eslint-disable @typescript-eslint/no-explicit-any */\n } as any,\n }\n }\n },\n async destroy() {\n const item = findItem()\n try {\n if (item && (item.value.props.modelValue || showRequested)) {\n const cycle = currentDismissal()\n controller.hide('destroy')\n await awaitDismissal(cycle)\n await nextTick()\n }\n } finally {\n if (item) store.value.delete(id)\n scope.stop()\n }\n },\n [Symbol.asyncDispose]() {\n return controller.destroy()\n },\n } as ComponentController<TComponent, ValueInMapRecord<TStore['value']>>\n\n return {\n controller,\n resolve: settle,\n }\n}\n\nexport const _newOrchestratorRegistry = (): {\n store: Readonly<Ref<OrchestratorStoreObject>>\n _isToastAppend: Readonly<Ref<boolean>>\n _setToastAppend: (value: boolean) => void\n _isOrchestratorInstalled: Readonly<Ref<boolean>>\n _setOrchestratorInstalled: (value: boolean) => void\n} => {\n const _isOrchestratorInstalled = ref(false)\n const _isToastAppend = ref(false)\n\n return {\n store: ref({\n modal: new Map(),\n tooltip: new Map(),\n popover: new Map(),\n toast: new Map(),\n }),\n _isOrchestratorInstalled: readonly(_isOrchestratorInstalled),\n _setOrchestratorInstalled: (v) => {\n _isOrchestratorInstalled.value = v\n },\n _isToastAppend: readonly(_isToastAppend),\n _setToastAppend: (v) => {\n _isToastAppend.value = v\n },\n }\n}\n\nexport const useOrchestratorRegistry = () => {\n const orchestratorRegistry = inject(orchestratorRegistryKey, null)\n\n if (orchestratorRegistry) {\n return orchestratorRegistry\n }\n const newOrchestratorRegistry = _newOrchestratorRegistry()\n provide(orchestratorRegistryKey, newOrchestratorRegistry)\n return newOrchestratorRegistry\n}\n\nexport const getOrchestratorControllerId = (propId: string | undefined) => {\n const id: ControllerKey = propId || Symbol('OrchestratorItem')\n\n return {\n /**\n * This id is used for stability in the store, using the createIdWatcher will update the store if the id ever changes\n */\n storeId: id,\n /**\n * Do not pass in the symbol as a prop. Html attribute cannot be a symbol. Thus it's internal\n */\n htmlAttributeId: typeof id === 'string' ? id : undefined,\n }\n}\n"],"mappings":";;;;AAyBA,IAAa,mBAIX,IACA,UACyE;;;;;CAKzE,IAAI,gBAAgB;;;;;;CAMpB,IAAI;;;;;;CAMJ,IAAI,gBAAgB;;;;;CAKpB,IAAI;;;;;CAOJ,IAAI;CACJ,MAAM,yBAAoC;EACxC,IAAI,CAAC,WAAW;GACd,IAAI,gBAAiD,CAAC;GAItD,YAAY;IAAC,SAAA,IAHO,SAA6B,MAAM;KACrD,UAAU;IACZ,CACa;IAAS;GAAO;EAC/B;EACA,OAAO;CACT;CAQA,MAAM,iBAAiB,MAAM,MAAM,IAAI,EAAE;CAGzC,MAAM,QAAQ,YAAY,IAAI;CAC9B,MAAM,UAAU;EACd,YACQ,SAAS,CAAC,EAAE,MAAM,MAAM,aAC7B,UAAU;GACT,gBAAgB;GAChB,IAAI,OAAO,gBAAgB;GAC3B,IAAI,OAAO,UAAU,YAAY,QAAQ,GACvC,YAAY;QACP,IAAI,UAAU,MACnB,YAAY,KAAA;EAEhB,GACA,EAAC,OAAO,OAAM,CAChB;CACF,CAAC;CAID,MAAM,WAAW,WAAkC,IAAI;;;;CAIvD,MAAM,eAAe,UAA8B;EACjD,gBAAgB;EAChB,iBAAiB,KAAA;EACjB,MAAM,UAAU;EAChB,YAAY,KAAA;EACZ,SAAS,QAAQ,KAAK;CACxB;CACA,MAAM,UAAU,UAA8B;EAG5C,IAAI,MAAM,cAAc,qBAAqB,CAAC,aAAa,mBAAmB,YAAY;EAC1F,YAAY,KAAK;EAEjB,gBAAgB,MAAM,cAA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0BAA0B,SAAS,wBAAwB;EAC3D,4BAA4B,MAAM;GAChC,yBAAyB,QAAQ;EACnC;EACA,gBAAgB,SAAS,cAAc;EACvC,kBAAkB,MAAM;GACtB,eAAe,QAAQ;EACzB;CACF;AACF;AAEA,IAAa,gCAAgC;CAC3C,MAAM,uBAAuB,OAAO,yBAAyB,IAAI;CAEjE,IAAI,sBACF,OAAO;CAET,MAAM,0BAA0B,yBAAyB;CACzD,QAAQ,yBAAyB,uBAAuB;CACxD,OAAO;AACT;AAEA,IAAa,+BAA+B,WAA+B;CACzE,MAAM,KAAoB,UAAU,OAAO,kBAAkB;CAE7D,OAAO;;;;EAIL,SAAS;;;;EAIT,iBAAiB,OAAO,OAAO,WAAW,KAAK,KAAA;CACjD;AACF"}
@@ -1,4 +1,4 @@
1
- import { c as useColorMode$1 } from "../../../dist-9-XTMhb-.js";
1
+ import { useColorMode as useColorMode$1 } from "@vueuse/core";
2
2
  //#region src/composables/useColorMode/index.ts
3
3
  var useColorMode = (opts = {}) => {
4
4
  const persist = opts.persist ?? false;
@@ -1,6 +1,6 @@
1
1
  import { _ as orchestratorRegistryKey } from "../../../keys-BgLwJbLV.js";
2
2
  import { buildController, getOrchestratorControllerId } from "../orchestratorShared/index.mjs";
3
- import { n as useSharedModalStack, t as BModal_default } from "../../../BModal-BjmeVZen.js";
3
+ import { n as useSharedModalStack, t as BModal_default } from "../../../BModal-DOmTYI6F.js";
4
4
  import { computed, getCurrentInstance, inject, markRaw, onScopeDispose, ref, toValue } from "vue";
5
5
  //#region src/composables/useModal/index.ts
6
6
  var useModal = () => {
@@ -1,7 +1,7 @@
1
1
  import { _ as orchestratorRegistryKey } from "../../../keys-BgLwJbLV.js";
2
2
  import { buildController, getOrchestratorControllerId } from "../orchestratorShared/index.mjs";
3
- import { u as BPopover_default } from "../../../floatingUi-Stb1SUvw.js";
4
- import { t as BTooltip_default } from "../../../BTooltip-BHFBLXnr.js";
3
+ import { u as BPopover_default } from "../../../floatingUi-BhgR4GBJ.js";
4
+ import { t as BTooltip_default } from "../../../BTooltip-CV5Ogidy.js";
5
5
  import { computed, inject, markRaw, onScopeDispose, ref } from "vue";
6
6
  //#region src/composables/usePopover/index.ts
7
7
  var usePopover = () => {
@@ -1,5 +1,4 @@
1
- import { r as createSharedComposable } from "../../../dist-DKc2ivHS.js";
2
- import { y as useScrollLock$1 } from "../../../dist-9-XTMhb-.js";
1
+ import { createSharedComposable, useScrollLock as useScrollLock$1 } from "@vueuse/core";
3
2
  //#region src/composables/useScrollLock/index.ts
4
3
  var useScrollLock = createSharedComposable(useScrollLock$1);
5
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/composables/useScrollLock/index.ts"],"sourcesContent":["import {useScrollLock as _useScrollLock, createSharedComposable} from '@vueuse/core'\n\nexport const useScrollLock = createSharedComposable(_useScrollLock)\n"],"mappings":";;;AAEA,IAAa,gBAAgB,uBAAuB,eAAc"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/composables/useScrollLock/index.ts"],"sourcesContent":["import {useScrollLock as _useScrollLock, createSharedComposable} from '@vueuse/core'\n\nexport const useScrollLock = createSharedComposable(_useScrollLock)\n"],"mappings":";;AAEA,IAAa,gBAAgB,uBAAuB,eAAc"}
@@ -1,8 +1,7 @@
1
- import { m as syncRef } from "../../../dist-DKc2ivHS.js";
2
- import { h as useIntersectionObserver, v as useMutationObserver } from "../../../dist-9-XTMhb-.js";
3
1
  import { i as getSafeDocument } from "../../../dom-BdUQrX99.js";
4
2
  import { t as getElement } from "../../../getElement-uvhh1lgL.js";
5
3
  import { computed, getCurrentInstance, nextTick, onMounted, readonly, ref, shallowRef, toRef, unref, watch } from "vue";
4
+ import { syncRef, useIntersectionObserver, useMutationObserver } from "@vueuse/core";
6
5
  //#region src/composables/useScrollspy/index.ts
7
6
  var useScrollspy = (content, target, options = {}) => {
8
7
  const cont = toRef(content);
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/composables/useScrollspy/index.ts"],"sourcesContent":["import {syncRef, useIntersectionObserver, useMutationObserver} from '@vueuse/core'\nimport {\n type ComponentPublicInstance,\n computed,\n getCurrentInstance,\n type MaybeRef,\n type MaybeRefOrGetter,\n nextTick,\n onMounted,\n readonly,\n type Ref,\n ref,\n shallowRef,\n toRef,\n unref,\n watch,\n} from 'vue'\nimport {getElement} from '../../utils/getElement'\nimport {getSafeDocument} from '../../utils/dom'\n\ntype ScrollspyList = {\n id: string | null\n el: HTMLElement | null\n visible: boolean\n text: string | null\n}[]\n\ninterface ScrollspyReturn {\n current: Readonly<Ref<string | null>>\n list: Readonly<Ref<ScrollspyList>>\n content: Ref<HTMLElement | undefined>\n target: Ref<HTMLElement | undefined>\n scrollIntoView: (event: MouseEvent) => void\n updateList: () => void\n cleanup: () => void\n}\n\ninterface ScrollspyOptions {\n contentQuery: string\n targetQuery: string\n manual: boolean\n root: MaybeRef<string | ComponentPublicInstance | HTMLElement | null>\n rootMargin: string\n threshold: number | number[]\n watchChanges: boolean\n}\n\nexport const useScrollspy = (\n content: MaybeRefOrGetter<string | ComponentPublicInstance | HTMLElement | null>,\n target: MaybeRefOrGetter<string | ComponentPublicInstance | HTMLElement | null>,\n options: Readonly<Partial<ScrollspyOptions>> = {}\n): ScrollspyReturn => {\n const cont = toRef(content)\n const tar = toRef(target)\n\n const resolvedContent = shallowRef(getElement(cont.value))\n const resolvedTarget = shallowRef(getElement(tar.value))\n\n watch([cont, tar], () => {\n updateList()\n })\n const {\n contentQuery = ':scope > [id]',\n targetQuery = '[href]',\n manual = false,\n root,\n rootMargin = '0px 0px -25%',\n threshold = [0.1, 0.5, 1],\n watchChanges = true,\n } = options\n const current = ref<string | null>(null)\n const list = shallowRef<ScrollspyList>([])\n const nodeList = shallowRef<HTMLElement[]>([])\n\n // are we called in directive?\n const ctx = getCurrentInstance()\n if (!ctx) {\n nextTick(() => {\n updateList()\n })\n } else {\n onMounted(() => {\n syncRef(cont, resolvedContent, {\n transform: {\n ltr: (v) => getElement(v),\n },\n direction: 'ltr',\n immediate: true,\n })\n syncRef(tar, resolvedTarget, {\n transform: {\n ltr: (v) => getElement(v),\n },\n direction: 'ltr',\n immediate: true,\n })\n updateList()\n })\n }\n\n const updateList = () => {\n nodeList.value = resolvedContent.value\n ? (Array.from(resolvedContent.value.querySelectorAll(contentQuery)) as HTMLElement[])\n : []\n list.value = nodeList.value.map((el) => ({\n id: el.id,\n el,\n visible: false,\n text: el.textContent,\n }))\n }\n\n let isScrollingDown = true\n let previousScrollTop = 0\n const scrollRoot = computed(() =>\n resolvedContent.value && getComputedStyle(resolvedContent.value).overflowY === 'visible'\n ? null\n : resolvedContent.value\n )\n\n const jobs = useIntersectionObserver(\n nodeList,\n (entries) => {\n const doc = getSafeDocument()\n const scrollTop =\n (scrollRoot.value ? scrollRoot.value : doc !== null ? doc.documentElement : undefined)\n ?.scrollTop || 0\n isScrollingDown = scrollTop > previousScrollTop\n previousScrollTop = scrollTop\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n list.value.forEach((node) => {\n if (node.el === entry.target) {\n node.visible = true\n }\n })\n return\n }\n list.value.forEach((node) => {\n if (node.el === entry.target) {\n node.visible = false\n }\n })\n })\n let newId: string | null = null\n if (isScrollingDown) {\n newId = [...list.value].reverse().find((node) => node.visible)?.id || null\n } else {\n newId = list.value.find((node) => node.visible)?.id || null\n }\n if (newId !== null) {\n current.value = newId\n }\n if (!current.value) {\n current.value = list.value[0]?.id || null\n }\n },\n {\n root: computed(() => (root ? getElement(unref(root)) : scrollRoot.value)),\n rootMargin,\n threshold,\n }\n )\n watch(current, (newId) => {\n if (manual) return\n const nodes = resolvedTarget.value?.querySelectorAll(targetQuery)\n if (nodes === undefined) return\n let foundParent = false\n let activeElement: HTMLElement | null = null\n nodes.forEach((node) => {\n const parentDropdown = node.closest('.dropdown')\n\n if (node.getAttribute('href')?.includes(`#${newId}`)) {\n activeElement = node as HTMLElement\n node.classList.add('active')\n if (parentDropdown) {\n parentDropdown?.querySelector('.dropdown-toggle')?.classList.add('active')\n foundParent = true\n }\n let parentNav = node.closest('.nav')?.previousSibling as HTMLElement\n while (parentNav?.classList?.contains('nav-item')) {\n foundParent = true\n parentNav.querySelector('.nav-link')?.classList.add('active')\n parentNav = parentNav.closest('.nav')?.previousSibling as HTMLElement\n }\n } else {\n node.classList.remove('active')\n if (parentDropdown && !foundParent) {\n parentDropdown?.querySelector('.dropdown-toggle')?.classList.remove('active')\n }\n\n if (!foundParent) {\n let parentNav = node.closest('.nav')?.previousSibling as HTMLElement\n while (parentNav?.classList?.contains('nav-item')) {\n foundParent = true\n if (parentNav.querySelector('.nav-link') !== activeElement) {\n parentNav.querySelector('.nav-link')?.classList.remove('active')\n }\n parentNav = parentNav.closest('.nav')?.previousSibling as HTMLElement\n }\n }\n }\n })\n })\n\n const mobs = !watchChanges\n ? {stop: () => {}}\n : useMutationObserver(\n resolvedContent,\n () => {\n updateList()\n },\n {\n childList: true,\n }\n )\n const scrollIntoView = (event: Readonly<MouseEvent>, smooth: boolean = false) => {\n event.preventDefault()\n const href = (event.target as HTMLElement)?.getAttribute?.('href')\n const doc = getSafeDocument()\n const el: HTMLElement | null = href ? (doc?.querySelector(href) ?? null) : null\n // console.log('scrollIntoView', event, el, content.value.$el)\n if (el && resolvedContent.value) {\n if (resolvedContent.value.scrollTo) {\n resolvedContent.value.scrollTo({top: el.offsetTop, behavior: smooth ? 'smooth' : 'auto'})\n } else {\n resolvedContent.value.scrollTop = el.offsetTop\n }\n }\n }\n const cleanup = () => {\n jobs.stop()\n mobs.stop()\n }\n return {\n current: readonly(current),\n list,\n content: resolvedContent,\n target: resolvedTarget,\n scrollIntoView,\n updateList,\n cleanup,\n }\n}\n"],"mappings":";;;;;;AA+CA,IAAa,gBACX,SACA,QACA,UAA+C,CAAC,MAC5B;CACpB,MAAM,OAAO,MAAM,OAAO;CAC1B,MAAM,MAAM,MAAM,MAAM;CAExB,MAAM,kBAAkB,WAAW,WAAW,KAAK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AE,UAAU,IAAI,QAAQ;KAC5D,YAAY,UAAU,QAAQ,MAAM,CAAC,EAAE;IACzC;GACF,OAAO;IACL,KAAK,UAAU,OAAO,QAAQ;IAC9B,IAAI,kBAAkB,CAAC,aACrB,gBAAgB,cAAc,kBAAkB,CAAC,EAAE,UAAU,OAAO,QAAQ;IAG9E,IAAI,CAAC,aAAa;KAChB,IAAI,YAAY,KAAK,QAAQ,MAAM,CAAC,EAAE;KACtC,OAAO,WAAW,WAAW,SAAS,UAAU,GAAG;MACjD,cAAc;MACd,IAAI,UAAU,cAAc,WAAW,MAAM,eAC3C,UAAU,cAAc,WAAW,CAAC,EAAE,UAAU,OAAO,QAAQ;MAEjE,YAAY,UAAU,QAAQ,MAAM,CAAC,EAAE;KACzC;IACF;GACF;EACF,CAAC;CACH,CAAC;CAED,MAAM,OAAO,CAAC,eACV,EAAC,YAAY,CAAC,EAAC,IACf,oBACE,uBACM;EACJ,WAAW;CACb,GACA,EACE,WAAW,KACb,CACF;CACJ,MAAM,kBAAkB,OAA6B,SAAkB,UAAU;EAC/E,MAAM,eAAe;EACrB,MAAM,OAAQ,MAAM,QAAwB,eAAe,MAAM;EACjE,MAAM,MAAM,gBAAgB;EAC5B,MAAM,KAAyB,OAAQ,KAAK,cAAc,IAAI,KAAK,OAAQ;EAE3E,IAAI,MAAM,gBAAgB,OAAO;GAC/B,IAAI,gBAAgB,MAAM,UACxB,gBAAgB,MAAM,SAAS;IAAC,KAAK,GAAG;IAAW,UAAU,SAAS,WAAW;GAAM,CAAC;QAExF,gBAAgB,MAAM,YAAY,GAAG;EAEzC;CACF;CACA,MAAM,gBAAgB;EACpB,KAAK,KAAK;EACV,KAAK,KAAK;CACZ;CACA,OAAO;EACL,SAAS,SAAS,OAAO;EACzB;EACA,SAAS;EACT,QAAQ;EACR;EACA;EACA;CACF;AACF"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/composables/useScrollspy/index.ts"],"sourcesContent":["import {syncRef, useIntersectionObserver, useMutationObserver} from '@vueuse/core'\nimport {\n type ComponentPublicInstance,\n computed,\n getCurrentInstance,\n type MaybeRef,\n type MaybeRefOrGetter,\n nextTick,\n onMounted,\n readonly,\n type Ref,\n ref,\n shallowRef,\n toRef,\n unref,\n watch,\n} from 'vue'\nimport {getElement} from '../../utils/getElement'\nimport {getSafeDocument} from '../../utils/dom'\n\ntype ScrollspyList = {\n id: string | null\n el: HTMLElement | null\n visible: boolean\n text: string | null\n}[]\n\ninterface ScrollspyReturn {\n current: Readonly<Ref<string | null>>\n list: Readonly<Ref<ScrollspyList>>\n content: Ref<HTMLElement | undefined>\n target: Ref<HTMLElement | undefined>\n scrollIntoView: (event: MouseEvent) => void\n updateList: () => void\n cleanup: () => void\n}\n\ninterface ScrollspyOptions {\n contentQuery: string\n targetQuery: string\n manual: boolean\n root: MaybeRef<string | ComponentPublicInstance | HTMLElement | null>\n rootMargin: string\n threshold: number | number[]\n watchChanges: boolean\n}\n\nexport const useScrollspy = (\n content: MaybeRefOrGetter<string | ComponentPublicInstance | HTMLElement | null>,\n target: MaybeRefOrGetter<string | ComponentPublicInstance | HTMLElement | null>,\n options: Readonly<Partial<ScrollspyOptions>> = {}\n): ScrollspyReturn => {\n const cont = toRef(content)\n const tar = toRef(target)\n\n const resolvedContent = shallowRef(getElement(cont.value))\n const resolvedTarget = shallowRef(getElement(tar.value))\n\n watch([cont, tar], () => {\n updateList()\n })\n const {\n contentQuery = ':scope > [id]',\n targetQuery = '[href]',\n manual = false,\n root,\n rootMargin = '0px 0px -25%',\n threshold = [0.1, 0.5, 1],\n watchChanges = true,\n } = options\n const current = ref<string | null>(null)\n const list = shallowRef<ScrollspyList>([])\n const nodeList = shallowRef<HTMLElement[]>([])\n\n // are we called in directive?\n const ctx = getCurrentInstance()\n if (!ctx) {\n nextTick(() => {\n updateList()\n })\n } else {\n onMounted(() => {\n syncRef(cont, resolvedContent, {\n transform: {\n ltr: (v) => getElement(v),\n },\n direction: 'ltr',\n immediate: true,\n })\n syncRef(tar, resolvedTarget, {\n transform: {\n ltr: (v) => getElement(v),\n },\n direction: 'ltr',\n immediate: true,\n })\n updateList()\n })\n }\n\n const updateList = () => {\n nodeList.value = resolvedContent.value\n ? (Array.from(resolvedContent.value.querySelectorAll(contentQuery)) as HTMLElement[])\n : []\n list.value = nodeList.value.map((el) => ({\n id: el.id,\n el,\n visible: false,\n text: el.textContent,\n }))\n }\n\n let isScrollingDown = true\n let previousScrollTop = 0\n const scrollRoot = computed(() =>\n resolvedContent.value && getComputedStyle(resolvedContent.value).overflowY === 'visible'\n ? null\n : resolvedContent.value\n )\n\n const jobs = useIntersectionObserver(\n nodeList,\n (entries) => {\n const doc = getSafeDocument()\n const scrollTop =\n (scrollRoot.value ? scrollRoot.value : doc !== null ? doc.documentElement : undefined)\n ?.scrollTop || 0\n isScrollingDown = scrollTop > previousScrollTop\n previousScrollTop = scrollTop\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n list.value.forEach((node) => {\n if (node.el === entry.target) {\n node.visible = true\n }\n })\n return\n }\n list.value.forEach((node) => {\n if (node.el === entry.target) {\n node.visible = false\n }\n })\n })\n let newId: string | null = null\n if (isScrollingDown) {\n newId = [...list.value].reverse().find((node) => node.visible)?.id || null\n } else {\n newId = list.value.find((node) => node.visible)?.id || null\n }\n if (newId !== null) {\n current.value = newId\n }\n if (!current.value) {\n current.value = list.value[0]?.id || null\n }\n },\n {\n root: computed(() => (root ? getElement(unref(root)) : scrollRoot.value)),\n rootMargin,\n threshold,\n }\n )\n watch(current, (newId) => {\n if (manual) return\n const nodes = resolvedTarget.value?.querySelectorAll(targetQuery)\n if (nodes === undefined) return\n let foundParent = false\n let activeElement: HTMLElement | null = null\n nodes.forEach((node) => {\n const parentDropdown = node.closest('.dropdown')\n\n if (node.getAttribute('href')?.includes(`#${newId}`)) {\n activeElement = node as HTMLElement\n node.classList.add('active')\n if (parentDropdown) {\n parentDropdown?.querySelector('.dropdown-toggle')?.classList.add('active')\n foundParent = true\n }\n let parentNav = node.closest('.nav')?.previousSibling as HTMLElement\n while (parentNav?.classList?.contains('nav-item')) {\n foundParent = true\n parentNav.querySelector('.nav-link')?.classList.add('active')\n parentNav = parentNav.closest('.nav')?.previousSibling as HTMLElement\n }\n } else {\n node.classList.remove('active')\n if (parentDropdown && !foundParent) {\n parentDropdown?.querySelector('.dropdown-toggle')?.classList.remove('active')\n }\n\n if (!foundParent) {\n let parentNav = node.closest('.nav')?.previousSibling as HTMLElement\n while (parentNav?.classList?.contains('nav-item')) {\n foundParent = true\n if (parentNav.querySelector('.nav-link') !== activeElement) {\n parentNav.querySelector('.nav-link')?.classList.remove('active')\n }\n parentNav = parentNav.closest('.nav')?.previousSibling as HTMLElement\n }\n }\n }\n })\n })\n\n const mobs = !watchChanges\n ? {stop: () => {}}\n : useMutationObserver(\n resolvedContent,\n () => {\n updateList()\n },\n {\n childList: true,\n }\n )\n const scrollIntoView = (event: Readonly<MouseEvent>, smooth: boolean = false) => {\n event.preventDefault()\n const href = (event.target as HTMLElement)?.getAttribute?.('href')\n const doc = getSafeDocument()\n const el: HTMLElement | null = href ? (doc?.querySelector(href) ?? null) : null\n // console.log('scrollIntoView', event, el, content.value.$el)\n if (el && resolvedContent.value) {\n if (resolvedContent.value.scrollTo) {\n resolvedContent.value.scrollTo({top: el.offsetTop, behavior: smooth ? 'smooth' : 'auto'})\n } else {\n resolvedContent.value.scrollTop = el.offsetTop\n }\n }\n }\n const cleanup = () => {\n jobs.stop()\n mobs.stop()\n }\n return {\n current: readonly(current),\n list,\n content: resolvedContent,\n target: resolvedTarget,\n scrollIntoView,\n updateList,\n cleanup,\n }\n}\n"],"mappings":";;;;;AA+CA,IAAa,gBACX,SACA,QACA,UAA+C,CAAC,MAC5B;CACpB,MAAM,OAAO,MAAM,OAAO;CAC1B,MAAM,MAAM,MAAM,MAAM;CAExB,MAAM,kBAAkB,WAAW,WAAW,KAAK,KAAK,CAAC;CACzD,MAAM,iBAAiB,WAAW,WAAW,IAAI,KAAK,CAAC;C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E;IACzC;GACF,OAAO;IACL,KAAK,UAAU,OAAO,QAAQ;IAC9B,IAAI,kBAAkB,CAAC,aACrB,gBAAgB,cAAc,kBAAkB,CAAC,EAAE,UAAU,OAAO,QAAQ;IAG9E,IAAI,CAAC,aAAa;KAChB,IAAI,YAAY,KAAK,QAAQ,MAAM,CAAC,EAAE;KACtC,OAAO,WAAW,WAAW,SAAS,UAAU,GAAG;MACjD,cAAc;MACd,IAAI,UAAU,cAAc,WAAW,MAAM,eAC3C,UAAU,cAAc,WAAW,CAAC,EAAE,UAAU,OAAO,QAAQ;MAEjE,YAAY,UAAU,QAAQ,MAAM,CAAC,EAAE;KACzC;IACF;GACF;EACF,CAAC;CACH,CAAC;CAED,MAAM,OAAO,CAAC,eACV,EAAC,YAAY,CAAC,EAAC,IACf,oBACE,uBACM;EACJ,WAAW;CACb,GACA,EACE,WAAW,KACb,CACF;CACJ,MAAM,kBAAkB,OAA6B,SAAkB,UAAU;EAC/E,MAAM,eAAe;EACrB,MAAM,OAAQ,MAAM,QAAwB,eAAe,MAAM;EACjE,MAAM,MAAM,gBAAgB;EAC5B,MAAM,KAAyB,OAAQ,KAAK,cAAc,IAAI,KAAK,OAAQ;EAE3E,IAAI,MAAM,gBAAgB,OAAO;GAC/B,IAAI,gBAAgB,MAAM,UACxB,gBAAgB,MAAM,SAAS;IAAC,KAAK,GAAG;IAAW,UAAU,SAAS,WAAW;GAAM,CAAC;QAExF,gBAAgB,MAAM,YAAY,GAAG;EAEzC;CACF;CACA,MAAM,gBAAgB;EACpB,KAAK,KAAK;EACV,KAAK,KAAK;CACZ;CACA,OAAO;EACL,SAAS,SAAS,OAAO;EACzB;EACA,SAAS;EACT,QAAQ;EACR;EACA;EACA;CACF;AACF"}
@@ -1,6 +1,6 @@
1
1
  import { _ as orchestratorRegistryKey, x as showHideRegistryKey } from "../../../keys-BgLwJbLV.js";
2
2
  import { buildController, getOrchestratorControllerId } from "../orchestratorShared/index.mjs";
3
- import { t as BToast_default } from "../../../BToast-CqE2VMW2.js";
3
+ import { t as BToast_default } from "../../../BToast-vxfpFGe3.js";
4
4
  import { computed, inject, markRaw, onScopeDispose, ref } from "vue";
5
5
  //#region src/composables/useToast/index.ts
6
6
  var posDefault = "top-end";
@@ -1,5 +1,5 @@
1
- import { s as resolveDirectiveProps } from "../../../floatingUi-Stb1SUvw.js";
2
- import { t as createFloatingDirective } from "../../../utils-CK56zzsO.js";
1
+ import { s as resolveDirectiveProps } from "../../../floatingUi-BhgR4GBJ.js";
2
+ import { t as createFloatingDirective } from "../../../utils-CvjliJBf.js";
3
3
  import "vue";
4
4
  //#region src/directives/BPopover/index.ts
5
5
  var vBPopover = createFloatingDirective("$__popover", "BPopover", (text, defaults, binding, el) => ({
@@ -1,7 +1,7 @@
1
1
  import { i as getSafeDocument } from "../../../dom-BdUQrX99.js";
2
2
  import { i as omit } from "../../../object-C7YmCGEm.js";
3
3
  import { useScrollspy } from "../../composables/useScrollspy/index.mjs";
4
- import { r as getDirectiveUid } from "../../../utils-CK56zzsO.js";
4
+ import { r as getDirectiveUid } from "../../../utils-CvjliJBf.js";
5
5
  import "vue";
6
6
  //#region src/directives/BScrollspy/index.ts
7
7
  var bind = (el, binding) => {
@@ -2,7 +2,7 @@ import { x as showHideRegistryKey } from "../../../keys-BgLwJbLV.js";
2
2
  import { n as warn } from "../../../console-DaUCJgpk.js";
3
3
  import { h as RX_SPACE_SPLIT, l as RX_HASH, u as RX_HASH_ID } from "../../../constants-Cap5sNf8.js";
4
4
  import { t as getActiveShowHide } from "../../../registryAccess-YFj5ZD5T.js";
5
- import { n as findProvides } from "../../../utils-CK56zzsO.js";
5
+ import { n as findProvides } from "../../../utils-CvjliJBf.js";
6
6
  import "vue";
7
7
  //#region src/directives/BToggle/index.ts
8
8
  var getTargets = (binding, el) => {
@@ -1,5 +1,5 @@
1
- import { s as resolveDirectiveProps } from "../../../floatingUi-Stb1SUvw.js";
2
- import { t as createFloatingDirective } from "../../../utils-CK56zzsO.js";
1
+ import { s as resolveDirectiveProps } from "../../../floatingUi-BhgR4GBJ.js";
2
+ import { t as createFloatingDirective } from "../../../utils-CvjliJBf.js";
3
3
  import "vue";
4
4
  //#region src/directives/BTooltip/index.ts
5
5
  var vBTooltip = createFloatingDirective("$__tooltip", "BTooltip", (text, defaults, binding, el) => ({
@@ -1,4 +1,4 @@
1
- import { t as __exportAll } from "../../rolldown-runtime-BBjsoOtd.js";
1
+ import { t as __exportAll } from "../../rolldown-runtime-D7D4PA-g.js";
2
2
  import { vBColorMode } from "./BColorMode/index.mjs";
3
3
  import { vBToggle } from "./BToggle/index.mjs";
4
4
  import { vBPopover } from "./BPopover/index.mjs";
@@ -1,4 +1,4 @@
1
- import { t as __exportAll } from "../../rolldown-runtime-BBjsoOtd.js";
1
+ import { t as __exportAll } from "../../rolldown-runtime-D7D4PA-g.js";
2
2
  import { rtlPlugin } from "./rtl/index.mjs";
3
3
  import { registryPlugin } from "./registry/index.mjs";
4
4
  import { orchestratorPlugin } from "./orchestrator/index.mjs";
@@ -1,4 +1,4 @@
1
- import { t as __exportAll } from "../../rolldown-runtime-BBjsoOtd.js";
1
+ import { t as __exportAll } from "../../rolldown-runtime-D7D4PA-g.js";
2
2
  import { a as directiveNames, n as componentsWithExternalPath, o as directivesWithExternalPath, t as componentNames } from "../../BootstrapVueOptions-DH79gHKG.js";
3
3
  //#region src/resolvers/index.ts
4
4
  var resolvers_exports = /* @__PURE__ */ __exportAll({ BootstrapVueNextResolver: () => BootstrapVueNextResolver });
@@ -1,4 +1,4 @@
1
- import { t as __exportAll } from "../../rolldown-runtime-BBjsoOtd.js";
1
+ import { t as __exportAll } from "../../rolldown-runtime-D7D4PA-g.js";
2
2
  import { a as directiveNames, i as composablesWithExternalPath, n as componentsWithExternalPath, o as directivesWithExternalPath, r as composableNames, t as componentNames } from "../../BootstrapVueOptions-DH79gHKG.js";
3
3
  //#region src/types/index.ts
4
4
  var types_exports = /* @__PURE__ */ __exportAll({
@@ -1,5 +1,5 @@
1
- import { t as __exportAll } from "../../rolldown-runtime-BBjsoOtd.js";
2
- import { n as BvEvent, r as BvTriggerableEvent, t as BvCarouselEvent } from "../../classes-BEWWGbj5.js";
1
+ import { t as __exportAll } from "../../rolldown-runtime-D7D4PA-g.js";
2
+ import { n as BvEvent, r as BvTriggerableEvent, t as BvCarouselEvent } from "../../classes-DCjKFM2E.js";
3
3
  //#region src/utils/index.ts
4
4
  var utils_exports = /* @__PURE__ */ __exportAll({
5
5
  BvCarouselEvent: () => BvCarouselEvent,