bootstrap-vue-next 1.2.4 → 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 (167) hide show
  1. package/dist/{BAccordion-ByAMZCS9.js → BAccordion-BfaVicrj.js} +2 -2
  2. package/dist/{BAccordion-ByAMZCS9.js.map → BAccordion-BfaVicrj.js.map} +1 -1
  3. package/dist/{BAlert-DdfFcjWF.js → BAlert-Czy83dU3.js} +5 -5
  4. package/dist/{BAlert-DdfFcjWF.js.map → BAlert-Czy83dU3.js.map} +1 -1
  5. package/dist/BAutocomplete-Bh4Bp5AI.js +437 -0
  6. package/dist/BAutocomplete-Bh4Bp5AI.js.map +1 -0
  7. package/dist/{BAvatar-BsStQrBF.js → BAvatar-BJNeQ1fe.js} +2 -2
  8. package/dist/{BAvatar-BsStQrBF.js.map → BAvatar-BJNeQ1fe.js.map} +1 -1
  9. package/dist/{BButton-KZu5jczf.js → BButton-DlOQ5sem.js} +2 -2
  10. package/dist/{BButton-KZu5jczf.js.map → BButton-DlOQ5sem.js.map} +1 -1
  11. package/dist/{BCard-DELccMG-.js → BCard-Bc1wed-3.js} +2 -2
  12. package/dist/{BCard-DELccMG-.js.map → BCard-Bc1wed-3.js.map} +1 -1
  13. package/dist/{BCarousel-qHGRSVFe.js → BCarousel-B-WZR469.js} +3 -4
  14. package/dist/{BCarousel-qHGRSVFe.js.map → BCarousel-B-WZR469.js.map} +1 -1
  15. package/dist/{BCollapse-DtuJwN7B.js → BCollapse-DCjKiTxo.js} +2 -2
  16. package/dist/{BCollapse-DtuJwN7B.js.map → BCollapse-DCjKiTxo.js.map} +1 -1
  17. package/dist/BDateField-Oh-cU-4i.js +456 -0
  18. package/dist/BDateField-Oh-cU-4i.js.map +1 -0
  19. package/dist/BDatePicker-HNI11eCe.js +632 -0
  20. package/dist/BDatePicker-HNI11eCe.js.map +1 -0
  21. package/dist/{BDropdown-BY-E0SHv.js → BDropdown-04nGcMhm.js} +6 -7
  22. package/dist/{BDropdown-BY-E0SHv.js.map → BDropdown-04nGcMhm.js.map} +1 -1
  23. package/dist/{BFormCheckbox-BYNGQgr2.js → BFormCheckbox-zjr8OsNd.js} +2 -2
  24. package/dist/{BFormCheckbox-BYNGQgr2.js.map → BFormCheckbox-zjr8OsNd.js.map} +1 -1
  25. package/dist/{BFormFile-C2DnrbK7.js → BFormFile-D_s8tf1m.js} +2 -2
  26. package/dist/{BFormFile-C2DnrbK7.js.map → BFormFile-D_s8tf1m.js.map} +1 -1
  27. package/dist/{BFormInput-_AkAy6Wk.js → BFormInput-DnIBPLCx.js} +2 -2
  28. package/dist/{BFormInput-_AkAy6Wk.js.map → BFormInput-DnIBPLCx.js.map} +1 -1
  29. package/dist/BFormOtp-Dx2RxPAW.js +150 -0
  30. package/dist/BFormOtp-Dx2RxPAW.js.map +1 -0
  31. package/dist/{BFormRadio-DAddcnfE.js → BFormRadio-DUz60sBI.js} +2 -2
  32. package/dist/{BFormRadio-DAddcnfE.js.map → BFormRadio-DUz60sBI.js.map} +1 -1
  33. package/dist/{BFormRating-iKFgSFet.js → BFormRating-CtMmDgrF.js} +2 -2
  34. package/dist/{BFormRating-iKFgSFet.js.map → BFormRating-CtMmDgrF.js.map} +1 -1
  35. package/dist/{BFormSelect-CSS-_kul.js → BFormSelect-CeslPN3i.js} +2 -3
  36. package/dist/{BFormSelect-CSS-_kul.js.map → BFormSelect-CeslPN3i.js.map} +1 -1
  37. package/dist/{BFormSpinbutton-fkVMbQC3.js → BFormSpinbutton-BR9YTfYy.js} +2 -3
  38. package/dist/{BFormSpinbutton-fkVMbQC3.js.map → BFormSpinbutton-BR9YTfYy.js.map} +1 -1
  39. package/dist/{BFormTags-CUcyRTCK.js → BFormTags-6qQn0Vlv.js} +2 -3
  40. package/dist/{BFormTags-CUcyRTCK.js.map → BFormTags-6qQn0Vlv.js.map} +1 -1
  41. package/dist/{BFormTextarea-CBBlEcrV.js → BFormTextarea-DvLrtG08.js} +3 -3
  42. package/dist/{BFormTextarea-CBBlEcrV.js.map → BFormTextarea-DvLrtG08.js.map} +1 -1
  43. package/dist/{BImg-knz2UZQE.js → BImg-Dd8Pc1Ln.js} +2 -2
  44. package/dist/{BImg-knz2UZQE.js.map → BImg-Dd8Pc1Ln.js.map} +1 -1
  45. package/dist/{BModal-DtQlIFNn.js → BModal-DOmTYI6F.js} +5 -6
  46. package/dist/{BModal-DtQlIFNn.js.map → BModal-DOmTYI6F.js.map} +1 -1
  47. package/dist/{BNav-BMWNXoNo.js → BNav-D3XbyI1R.js} +2 -2
  48. package/dist/{BNav-BMWNXoNo.js.map → BNav-D3XbyI1R.js.map} +1 -1
  49. package/dist/{BOffcanvas-BtvIDgH7.js → BOffcanvas-DyPG7s8I.js} +5 -5
  50. package/dist/{BOffcanvas-BtvIDgH7.js.map → BOffcanvas-DyPG7s8I.js.map} +1 -1
  51. package/dist/{BPagination-C85wHRgS.js → BPagination-DGvgWeYG.js} +2 -2
  52. package/dist/{BPagination-C85wHRgS.js.map → BPagination-DGvgWeYG.js.map} +1 -1
  53. package/dist/{BPlaceholder-DI12zz0a.js → BPlaceholder-BrBmbfIg.js} +3 -3
  54. package/dist/{BPlaceholder-DI12zz0a.js.map → BPlaceholder-BrBmbfIg.js.map} +1 -1
  55. package/dist/{BProgress-BNxYppi-.js → BProgress-CXhe6hsN.js} +2 -2
  56. package/dist/{BProgress-BNxYppi-.js.map → BProgress-CXhe6hsN.js.map} +1 -1
  57. package/dist/{BTable-BZxX17YU.js → BTable-8jp3wPAI.js} +2 -2
  58. package/dist/{BTable-BZxX17YU.js.map → BTable-8jp3wPAI.js.map} +1 -1
  59. package/dist/BTimeField-vdultTwg.js +138 -0
  60. package/dist/BTimeField-vdultTwg.js.map +1 -0
  61. package/dist/{BToast-Cm7TZlZq.js → BToast-vxfpFGe3.js} +5 -5
  62. package/dist/{BToast-Cm7TZlZq.js.map → BToast-vxfpFGe3.js.map} +1 -1
  63. package/dist/{BTooltip-CAgQ77tS.js → BTooltip-CV5Ogidy.js} +2 -2
  64. package/dist/{BTooltip-CAgQ77tS.js.map → BTooltip-CV5Ogidy.js.map} +1 -1
  65. package/dist/bootstrap-vue-next.mjs +33 -33
  66. package/dist/{floatingUi-CSJCHfOw.js → floatingUi-BhgR4GBJ.js} +10 -168
  67. package/dist/floatingUi-BhgR4GBJ.js.map +1 -0
  68. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  69. package/dist/src/components/BAccordion/index.mjs +1 -1
  70. package/dist/src/components/BAlert/index.mjs +1 -1
  71. package/dist/src/components/BAutocomplete/index.mjs +1 -1
  72. package/dist/src/components/BAvatar/index.mjs +1 -1
  73. package/dist/src/components/BButton/index.mjs +1 -1
  74. package/dist/src/components/BCard/index.mjs +1 -1
  75. package/dist/src/components/BCarousel/index.mjs +1 -1
  76. package/dist/src/components/BCollapse/index.mjs +1 -1
  77. package/dist/src/components/BDateField/index.mjs +1 -1
  78. package/dist/src/components/BDatePicker/index.mjs +1 -1
  79. package/dist/src/components/BDropdown/index.mjs +1 -1
  80. package/dist/src/components/BFormCheckbox/index.mjs +1 -1
  81. package/dist/src/components/BFormFile/index.mjs +1 -1
  82. package/dist/src/components/BFormInput/index.mjs +1 -1
  83. package/dist/src/components/BFormOtp/index.mjs +1 -1
  84. package/dist/src/components/BFormRadio/index.mjs +1 -1
  85. package/dist/src/components/BFormRating/index.mjs +1 -1
  86. package/dist/src/components/BFormSelect/index.mjs +1 -1
  87. package/dist/src/components/BFormSpinbutton/index.mjs +1 -1
  88. package/dist/src/components/BFormTags/index.mjs +1 -1
  89. package/dist/src/components/BFormTextarea/index.mjs +1 -1
  90. package/dist/src/components/BImg/index.mjs +1 -1
  91. package/dist/src/components/BModal/index.mjs +1 -1
  92. package/dist/src/components/BNav/index.mjs +1 -1
  93. package/dist/src/components/BOffcanvas/index.mjs +1 -1
  94. package/dist/src/components/BPagination/index.mjs +1 -1
  95. package/dist/src/components/BPlaceholder/index.mjs +1 -1
  96. package/dist/src/components/BPopover/index.mjs +1 -1
  97. package/dist/src/components/BProgress/index.mjs +1 -1
  98. package/dist/src/components/BTable/index.mjs +1 -1
  99. package/dist/src/components/BTimeField/index.mjs +1 -1
  100. package/dist/src/components/BToast/index.mjs +1 -1
  101. package/dist/src/components/BTooltip/index.mjs +1 -1
  102. package/dist/src/components/index.mjs +34 -34
  103. package/dist/src/composables/index.mjs +1 -1
  104. package/dist/src/composables/useColorMode/index.mjs +1 -1
  105. package/dist/src/composables/useModal/index.mjs +1 -1
  106. package/dist/src/composables/usePopover/index.mjs +2 -2
  107. package/dist/src/composables/useScrollLock/index.mjs +1 -2
  108. package/dist/src/composables/useScrollLock/index.mjs.map +1 -1
  109. package/dist/src/composables/useScrollspy/index.mjs +1 -2
  110. package/dist/src/composables/useScrollspy/index.mjs.map +1 -1
  111. package/dist/src/composables/useToast/index.mjs +1 -1
  112. package/dist/src/directives/BPopover/index.mjs +2 -2
  113. package/dist/src/directives/BScrollspy/index.mjs +1 -1
  114. package/dist/src/directives/BToggle/index.mjs +1 -1
  115. package/dist/src/directives/BTooltip/index.mjs +2 -2
  116. package/dist/src/directives/index.mjs +1 -1
  117. package/dist/src/plugins/index.mjs +1 -1
  118. package/dist/src/resolvers/index.mjs +1 -1
  119. package/dist/src/types/index.mjs +1 -1
  120. package/dist/src/utils/index.mjs +1 -1
  121. package/dist/{useCountdownHover-BN8vJIQW.js → useCountdownHover-HZSJZkHq.js} +2 -2
  122. package/dist/{useCountdownHover-BN8vJIQW.js.map → useCountdownHover-HZSJZkHq.js.map} +1 -1
  123. package/dist/{useFormInput-C-iXRxog.js → useFormInput-CMtXFoM2.js} +2 -3
  124. package/dist/{useFormInput-C-iXRxog.js.map → useFormInput-CMtXFoM2.js.map} +1 -1
  125. package/dist/useSafeScrollLock-BT4KKhxB.js +89 -0
  126. package/dist/useSafeScrollLock-BT4KKhxB.js.map +1 -0
  127. package/dist/{useShowHide-Dpld86ys.js → useShowHide-BLIZLD9E.js} +2 -3
  128. package/dist/{useShowHide-Dpld86ys.js.map → useShowHide-BLIZLD9E.js.map} +1 -1
  129. package/dist/{utils-DYdkCKBf.js → utils-CvjliJBf.js} +2 -2
  130. package/dist/{utils-DYdkCKBf.js.map → utils-CvjliJBf.js.map} +1 -1
  131. package/package.json +3 -23
  132. package/dist/BAutocomplete-BFbbKtpz.js +0 -2490
  133. package/dist/BAutocomplete-BFbbKtpz.js.map +0 -1
  134. package/dist/BDateField-Bj-Jz7u4.js +0 -906
  135. package/dist/BDateField-Bj-Jz7u4.js.map +0 -1
  136. package/dist/BDatePicker-AVTYcVLy.js +0 -5210
  137. package/dist/BDatePicker-AVTYcVLy.js.map +0 -1
  138. package/dist/BFormOtp-ClDACqXM.js +0 -577
  139. package/dist/BFormOtp-ClDACqXM.js.map +0 -1
  140. package/dist/BTimeField-CbRGjaI6.js +0 -516
  141. package/dist/BTimeField-CbRGjaI6.js.map +0 -1
  142. package/dist/DateRangeFieldInput-Cbzjg8iF.js +0 -761
  143. package/dist/DateRangeFieldInput-Cbzjg8iF.js.map +0 -1
  144. package/dist/PopperContent-C9eeL6LH.js +0 -1726
  145. package/dist/PopperContent-C9eeL6LH.js.map +0 -1
  146. package/dist/VisuallyHidden-BYzyjJiY.js +0 -182
  147. package/dist/VisuallyHidden-BYzyjJiY.js.map +0 -1
  148. package/dist/VisuallyHiddenInput-CUrc8XXa.js +0 -180
  149. package/dist/VisuallyHiddenInput-CUrc8XXa.js.map +0 -1
  150. package/dist/dist-9-XTMhb-.js +0 -1302
  151. package/dist/dist-9-XTMhb-.js.map +0 -1
  152. package/dist/dist-B-regXAP.js +0 -123
  153. package/dist/dist-B-regXAP.js.map +0 -1
  154. package/dist/dist-DKc2ivHS.js +0 -411
  155. package/dist/dist-DKc2ivHS.js.map +0 -1
  156. package/dist/floating-ui.dom-C7UZexJK.js +0 -1484
  157. package/dist/floating-ui.dom-C7UZexJK.js.map +0 -1
  158. package/dist/floatingUi-CSJCHfOw.js.map +0 -1
  159. package/dist/rolldown-runtime-BBjsoOtd.js +0 -27
  160. package/dist/useDateField-CQZb799C.js +0 -3679
  161. package/dist/useDateField-CQZb799C.js.map +0 -1
  162. package/dist/useForwardExpose-DDvk7mir.js +0 -60
  163. package/dist/useForwardExpose-DDvk7mir.js.map +0 -1
  164. package/dist/useKbd-DRsaFU_f.js +0 -76
  165. package/dist/useKbd-DRsaFU_f.js.map +0 -1
  166. package/dist/useSafeScrollLock-PVgSASYu.js +0 -1326
  167. package/dist/useSafeScrollLock-PVgSASYu.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-DtQlIFNn.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-DtuJwN7B.js";
5
- import { n as BAccordionItem_default, t as BAccordion_default } from "../../BAccordion-ByAMZCS9.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-DdfFcjWF.js";
10
+ import { t as BButton_default } from "../../BButton-DlOQ5sem.js";
11
+ import { t as BAlert_default } from "../../BAlert-Czy83dU3.js";
12
12
  import { n as BOrchestrator_default, t as BApp_default } from "../../BApp-DZ9AITOm.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";
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-qHGRSVFe.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-CSJCHfOw.js";
33
- import { t as BDropdown_default } from "../../BDropdown-BY-E0SHv.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-BMWNXoNo.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-BtvIDgH7.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-C85wHRgS.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";
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";
58
57
  import { n as BTab_default, t as BTabs_default } from "../../BTabs-Cfe8HOGE.js";
59
- import { t as BToast_default } from "../../BToast-Cm7TZlZq.js";
60
- import { t as BTooltip_default } from "../../BTooltip-CAgQ77tS.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,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-DtQlIFNn.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-CSJCHfOw.js";
4
- import { t as BTooltip_default } from "../../../BTooltip-CAgQ77tS.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,KAAK,CAAC;CACzD,MAAM,iBAAiB,WAAW,WAAW,IAAI,KAAK,CAAC;CAEvD,MAAM,CAAC,MAAM,GAAG,SAAS;EACvB,WAAW;CACb,CAAC;CACD,MAAM,EACJ,eAAe,iBACf,cAAc,UACd,SAAS,OACT,MACA,aAAa,gBACb,YAAY;EAAC;EAAK;EAAK;CAAC,GACxB,eAAe,SACb;CACJ,MAAM,UAAU,IAAmB,IAAI;CACvC,MAAM,OAAO,WAA0B,CAAC,CAAC;CACzC,MAAM,WAAW,WAA0B,CAAC,CAAC;CAI7C,IAAI,CADQ,mBACP,GACH,eAAe;EACb,WAAW;CACb,CAAC;MAED,gBAAgB;EACd,QAAQ,MAAM,iBAAiB;GAC7B,WAAW,EACT,MAAM,MAAM,WAAW,CAAC,EAC1B;GACA,WAAW;GACX,WAAW;EACb,CAAC;EACD,QAAQ,KAAK,gBAAgB;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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;CAEvD,MAAM,CAAC,MAAM,GAAG,SAAS;EACvB,WAAW;CACb,CAAC;CACD,MAAM,EACJ,eAAe,iBACf,cAAc,UACd,SAAS,OACT,MACA,aAAa,gBACb,YAAY;EAAC;EAAK;EAAK;CAAC,GACxB,eAAe,SACb;CACJ,MAAM,UAAU,IAAmB,IAAI;CACvC,MAAM,OAAO,WAA0B,CAAC,CAAC;CACzC,MAAM,WAAW,WAA0B,CAAC,CAAC;CAI7C,IAAI,CADQ,mBACP,GACH,eAAe;EACb,WAAW;CACb,CAAC;MAED,gBAAgB;EACd,QAAQ,MAAM,iBAAiB;GAC7B,WAAW,EACT,MAAM,MAAM,WAAW,CAAC,EAC1B;GACA,WAAW;GACX,WAAW;EACb,CAAC;EACD,QAAQ,KAAK,gBAAgB;GAC3B,WAAW,EACT,MAAM,MAAM,WAAW,CAAC,EAC1B;GACA,WAAW;GACX,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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-Cm7TZlZq.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-CSJCHfOw.js";
2
- import { t as createFloatingDirective } from "../../../utils-DYdkCKBf.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-DYdkCKBf.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-DYdkCKBf.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-CSJCHfOw.js";
2
- import { t as createFloatingDirective } from "../../../utils-DYdkCKBf.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,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 { 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({
@@ -1,5 +1,5 @@
1
- import { d as useElementHover, l as useDocumentVisibility, x as useTimestamp } from "./dist-9-XTMhb-.js";
2
1
  import { computed, readonly, ref, toRef, toValue, watch } from "vue";
2
+ import { useDocumentVisibility, useElementHover, useTimestamp } from "@vueuse/core";
3
3
  //#region src/composables/useCountdown.ts
4
4
  /**
5
5
  * A simple interval timer that counts down the remaining seconds
@@ -90,4 +90,4 @@ var useCountdownHover = (element, { modelValueIgnoresHover, noHoverPause, noResu
90
90
  //#endregion
91
91
  export { useCountdown as n, useCountdownHover as t };
92
92
 
93
- //# sourceMappingURL=useCountdownHover-BN8vJIQW.js.map
93
+ //# sourceMappingURL=useCountdownHover-HZSJZkHq.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCountdownHover-BN8vJIQW.js","names":[],"sources":["../src/composables/useCountdown.ts","../src/composables/useCountdownHover.ts"],"sourcesContent":["import {useDocumentVisibility, useTimestamp, type UseTimestampOptions} from '@vueuse/core'\nimport {computed, type MaybeRefOrGetter, readonly, ref, toRef, watch} from 'vue'\n\n/**\n * A simple interval timer that counts down the remaining seconds\n *\n * @param {MaybeRefOrGetter<number>} length the total amount of time to loop through in ms\n * @param {MaybeRefOrGetter<number>} interval how often the interval should refresh. Default 1000\n * @param {Readonly<UseIntervalFnOptions>} intervalOpts opts to pass to the interval fn. Default {}\n */\nexport const useCountdown = (\n length: MaybeRefOrGetter<number>,\n interval: number | 'requestAnimationFrame',\n timestampOpts: UseTimestampOptions<true> = {}\n) => {\n const resolvedLength = readonly(toRef(length))\n\n const isPaused = ref(false)\n\n const target = ref(Date.now() + resolvedLength.value)\n\n const {isActive, pause, resume, timestamp} = useTimestamp({\n interval,\n controls: true,\n callback: (v) => {\n if (v >= target.value) {\n isPaused.value = false\n pause()\n }\n },\n ...timestampOpts,\n })\n\n // Watch for document visibility changes to handle tab switching\n // When tab becomes visible again, check if countdown has already expired\n const visibility = useDocumentVisibility()\n watch(visibility, (newVisibility) => {\n if (newVisibility === 'visible' && isActive.value && !isPaused.value) {\n // Check if the countdown has already expired while tab was inactive\n if (Date.now() >= target.value) {\n isPaused.value = false\n pause()\n }\n }\n })\n\n const value = computed(() => target.value - timestamp.value)\n\n const restart = () => {\n target.value = Date.now() + resolvedLength.value\n resume()\n }\n watch(resolvedLength, () => {\n if (resolvedLength.value > 0) {\n restart()\n }\n })\n\n const myPause = () => {\n isPaused.value = true\n pause()\n }\n const myResume = () => {\n isPaused.value = false\n const remainingTime = target.value - timestamp.value\n target.value = Date.now() + remainingTime\n resume()\n }\n const stop = () => {\n pause()\n timestamp.value = target.value\n isPaused.value = false\n }\n\n return {\n isActive: readonly(isActive),\n isPaused: readonly(isPaused),\n stop,\n pause: myPause,\n resume: myResume,\n restart,\n value,\n }\n}\n","import {useElementHover} from '@vueuse/core'\nimport {type MaybeRefOrGetter, type Ref, toValue, watch} from 'vue'\n\nexport const useCountdownHover = (\n element: Ref<HTMLElement | null>,\n {\n modelValueIgnoresHover,\n noHoverPause,\n noResumeOnHoverLeave,\n }: {\n noHoverPause?: MaybeRefOrGetter<boolean>\n noResumeOnHoverLeave?: MaybeRefOrGetter<boolean>\n /**\n * Countdown/hover rules don't apply to static model-values (boolean)\n */\n modelValueIgnoresHover?: MaybeRefOrGetter<boolean>\n },\n actions: {\n pause: () => void\n resume: () => void\n }\n) => {\n const isHovering = useElementHover(element)\n\n const onMouseEnter = () => {\n if (toValue(noHoverPause)) return\n actions.pause()\n }\n const onMouseLeave = () => {\n if (toValue(noResumeOnHoverLeave)) return\n actions.resume()\n }\n\n watch(isHovering, (newValue) => {\n if (toValue(modelValueIgnoresHover)) return\n if (newValue) {\n onMouseEnter()\n return\n }\n onMouseLeave()\n })\n\n return {\n isHovering,\n }\n}\n"],"mappings":";;;;;;;;;;AAUA,IAAa,gBACX,QACA,UACA,gBAA2C,CAAC,MACzC;CACH,MAAM,iBAAiB,SAAS,MAAM,MAAM,CAAC;CAE7C,MAAM,WAAW,IAAI,KAAK;CAE1B,MAAM,SAAS,IAAI,KAAK,IAAI,IAAI,eAAe,KAAK;CAEpD,MAAM,EAAC,UAAU,OAAO,QAAQ,cAAa,aAAa;EACxD;EACA,UAAU;EACV,WAAW,MAAM;GACf,IAAI,KAAK,OAAO,OAAO;IACrB,SAAS,QAAQ;IACjB,MAAM;GACR;EACF;EACA,GAAG;CACL,CAAC;CAID,MAAM,aAAa,sBAAsB;CACzC,MAAM,aAAa,kBAAkB;EACnC,IAAI,kBAAkB,aAAa,SAAS,SAAS,CAAC,SAAS,OAEzD;OAAA,KAAK,IAAI,KAAK,OAAO,OAAO;IAC9B,SAAS,QAAQ;IACjB,MAAM;GACR;;CAEJ,CAAC;CAED,MAAM,QAAQ,eAAe,OAAO,QAAQ,UAAU,KAAK;CAE3D,MAAM,gBAAgB;EACpB,OAAO,QAAQ,KAAK,IAAI,IAAI,eAAe;EAC3C,OAAO;CACT;CACA,MAAM,sBAAsB;EAC1B,IAAI,eAAe,QAAQ,GACzB,QAAQ;CAEZ,CAAC;CAED,MAAM,gBAAgB;EACpB,SAAS,QAAQ;EACjB,MAAM;CACR;CACA,MAAM,iBAAiB;EACrB,SAAS,QAAQ;EACjB,MAAM,gBAAgB,OAAO,QAAQ,UAAU;EAC/C,OAAO,QAAQ,KAAK,IAAI,IAAI;EAC5B,OAAO;CACT;CACA,MAAM,aAAa;EACjB,MAAM;EACN,UAAU,QAAQ,OAAO;EACzB,SAAS,QAAQ;CACnB;CAEA,OAAO;EACL,UAAU,SAAS,QAAQ;EAC3B,UAAU,SAAS,QAAQ;EAC3B;EACA,OAAO;EACP,QAAQ;EACR;EACA;CACF;AACF;;;AChFA,IAAa,qBACX,SACA,EACE,wBACA,cACA,wBASF,YAIG;CACH,MAAM,aAAa,gBAAgB,OAAO;CAE1C,MAAM,qBAAqB;EACzB,IAAI,QAAQ,YAAY,GAAG;EAC3B,QAAQ,MAAM;CAChB;CACA,MAAM,qBAAqB;EACzB,IAAI,QAAQ,oBAAoB,GAAG;EACnC,QAAQ,OAAO;CACjB;CAEA,MAAM,aAAa,aAAa;EAC9B,IAAI,QAAQ,sBAAsB,GAAG;EACrC,IAAI,UAAU;GACZ,aAAa;GACb;EACF;EACA,aAAa;CACf,CAAC;CAED,OAAO,EACL,WACF;AACF"}
1
+ {"version":3,"file":"useCountdownHover-HZSJZkHq.js","names":[],"sources":["../src/composables/useCountdown.ts","../src/composables/useCountdownHover.ts"],"sourcesContent":["import {useDocumentVisibility, useTimestamp, type UseTimestampOptions} from '@vueuse/core'\nimport {computed, type MaybeRefOrGetter, readonly, ref, toRef, watch} from 'vue'\n\n/**\n * A simple interval timer that counts down the remaining seconds\n *\n * @param {MaybeRefOrGetter<number>} length the total amount of time to loop through in ms\n * @param {MaybeRefOrGetter<number>} interval how often the interval should refresh. Default 1000\n * @param {Readonly<UseIntervalFnOptions>} intervalOpts opts to pass to the interval fn. Default {}\n */\nexport const useCountdown = (\n length: MaybeRefOrGetter<number>,\n interval: number | 'requestAnimationFrame',\n timestampOpts: UseTimestampOptions<true> = {}\n) => {\n const resolvedLength = readonly(toRef(length))\n\n const isPaused = ref(false)\n\n const target = ref(Date.now() + resolvedLength.value)\n\n const {isActive, pause, resume, timestamp} = useTimestamp({\n interval,\n controls: true,\n callback: (v) => {\n if (v >= target.value) {\n isPaused.value = false\n pause()\n }\n },\n ...timestampOpts,\n })\n\n // Watch for document visibility changes to handle tab switching\n // When tab becomes visible again, check if countdown has already expired\n const visibility = useDocumentVisibility()\n watch(visibility, (newVisibility) => {\n if (newVisibility === 'visible' && isActive.value && !isPaused.value) {\n // Check if the countdown has already expired while tab was inactive\n if (Date.now() >= target.value) {\n isPaused.value = false\n pause()\n }\n }\n })\n\n const value = computed(() => target.value - timestamp.value)\n\n const restart = () => {\n target.value = Date.now() + resolvedLength.value\n resume()\n }\n watch(resolvedLength, () => {\n if (resolvedLength.value > 0) {\n restart()\n }\n })\n\n const myPause = () => {\n isPaused.value = true\n pause()\n }\n const myResume = () => {\n isPaused.value = false\n const remainingTime = target.value - timestamp.value\n target.value = Date.now() + remainingTime\n resume()\n }\n const stop = () => {\n pause()\n timestamp.value = target.value\n isPaused.value = false\n }\n\n return {\n isActive: readonly(isActive),\n isPaused: readonly(isPaused),\n stop,\n pause: myPause,\n resume: myResume,\n restart,\n value,\n }\n}\n","import {useElementHover} from '@vueuse/core'\nimport {type MaybeRefOrGetter, type Ref, toValue, watch} from 'vue'\n\nexport const useCountdownHover = (\n element: Ref<HTMLElement | null>,\n {\n modelValueIgnoresHover,\n noHoverPause,\n noResumeOnHoverLeave,\n }: {\n noHoverPause?: MaybeRefOrGetter<boolean>\n noResumeOnHoverLeave?: MaybeRefOrGetter<boolean>\n /**\n * Countdown/hover rules don't apply to static model-values (boolean)\n */\n modelValueIgnoresHover?: MaybeRefOrGetter<boolean>\n },\n actions: {\n pause: () => void\n resume: () => void\n }\n) => {\n const isHovering = useElementHover(element)\n\n const onMouseEnter = () => {\n if (toValue(noHoverPause)) return\n actions.pause()\n }\n const onMouseLeave = () => {\n if (toValue(noResumeOnHoverLeave)) return\n actions.resume()\n }\n\n watch(isHovering, (newValue) => {\n if (toValue(modelValueIgnoresHover)) return\n if (newValue) {\n onMouseEnter()\n return\n }\n onMouseLeave()\n })\n\n return {\n isHovering,\n }\n}\n"],"mappings":";;;;;;;;;;AAUA,IAAa,gBACX,QACA,UACA,gBAA2C,CAAC,MACzC;CACH,MAAM,iBAAiB,SAAS,MAAM,MAAM,CAAC;CAE7C,MAAM,WAAW,IAAI,KAAK;CAE1B,MAAM,SAAS,IAAI,KAAK,IAAI,IAAI,eAAe,KAAK;CAEpD,MAAM,EAAC,UAAU,OAAO,QAAQ,cAAa,aAAa;EACxD;EACA,UAAU;EACV,WAAW,MAAM;GACf,IAAI,KAAK,OAAO,OAAO;IACrB,SAAS,QAAQ;IACjB,MAAM;GACR;EACF;EACA,GAAG;CACL,CAAC;CAID,MAAM,aAAa,sBAAsB;CACzC,MAAM,aAAa,kBAAkB;EACnC,IAAI,kBAAkB,aAAa,SAAS,SAAS,CAAC,SAAS,OAEzD;OAAA,KAAK,IAAI,KAAK,OAAO,OAAO;IAC9B,SAAS,QAAQ;IACjB,MAAM;GACR;;CAEJ,CAAC;CAED,MAAM,QAAQ,eAAe,OAAO,QAAQ,UAAU,KAAK;CAE3D,MAAM,gBAAgB;EACpB,OAAO,QAAQ,KAAK,IAAI,IAAI,eAAe;EAC3C,OAAO;CACT;CACA,MAAM,sBAAsB;EAC1B,IAAI,eAAe,QAAQ,GACzB,QAAQ;CAEZ,CAAC;CAED,MAAM,gBAAgB;EACpB,SAAS,QAAQ;EACjB,MAAM;CACR;CACA,MAAM,iBAAiB;EACrB,SAAS,QAAQ;EACjB,MAAM,gBAAgB,OAAO,QAAQ,UAAU;EAC/C,OAAO,QAAQ,KAAK,IAAI,IAAI;EAC5B,OAAO;CACT;CACA,MAAM,aAAa;EACjB,MAAM;EACN,UAAU,QAAQ,OAAO;EACzB,SAAS,QAAQ;CACnB;CAEA,OAAO;EACL,UAAU,SAAS,QAAQ;EAC3B,UAAU,SAAS,QAAQ;EAC3B;EACA,OAAO;EACP,QAAQ;EACR;EACA;CACF;AACF;;;AChFA,IAAa,qBACX,SACA,EACE,wBACA,cACA,wBASF,YAIG;CACH,MAAM,aAAa,gBAAgB,OAAO;CAE1C,MAAM,qBAAqB;EACzB,IAAI,QAAQ,YAAY,GAAG;EAC3B,QAAQ,MAAM;CAChB;CACA,MAAM,qBAAqB;EACzB,IAAI,QAAQ,oBAAoB,GAAG;EACnC,QAAQ,OAAO;CACjB;CAEA,MAAM,aAAa,aAAa;EAC9B,IAAI,QAAQ,sBAAsB,GAAG;EACrC,IAAI,UAAU;GACZ,aAAa;GACb;EACF;EACA,aAAa;CACf,CAAC;CAED,OAAO,EACL,WACF;AACF"}
@@ -1,11 +1,10 @@
1
1
  import { d as formGroupKey } from "./keys-BgLwJbLV.js";
2
- import { S as useToNumber } from "./dist-DKc2ivHS.js";
3
- import { m as useFocus } from "./dist-9-XTMhb-.js";
4
2
  import { t as useId$1 } from "./useId-Fh-Arhb7.js";
5
3
  import { t as useAriaInvalid } from "./useAriaInvalid-CRUhkD2V.js";
6
4
  import { t as useDebounceFn } from "./debounce-Xj7wsAmR.js";
7
5
  import { t as useStateClass } from "./useStateClass-BF7kf2zK.js";
8
6
  import { computed, inject, nextTick, onActivated, onMounted, ref, watch } from "vue";
7
+ import { useFocus, useToNumber } from "@vueuse/core";
9
8
  //#region src/utils/normalizeInput.ts
10
9
  var normalizeInput = (v, modelModifiers) => {
11
10
  if (v === null) return;
@@ -117,4 +116,4 @@ var useFormInput = (props, input, modelValue, modelModifiers) => {
117
116
  //#endregion
118
117
  export { normalizeInput as n, useFormInput as t };
119
118
 
120
- //# sourceMappingURL=useFormInput-C-iXRxog.js.map
119
+ //# sourceMappingURL=useFormInput-CMtXFoM2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormInput-C-iXRxog.js","names":[],"sources":["../src/utils/normalizeInput.ts","../src/composables/useFormInput.ts"],"sourcesContent":["import type {Numberish} from '../types/CommonTypes'\n\nexport const normalizeInput = (\n v: Numberish | null,\n modelModifiers: Record<'number' | 'lazy' | 'trim', true | undefined>\n) => {\n if (v === null) return\n let update = v\n if (modelModifiers.number && typeof update === 'string' && update !== '') {\n const parsed = Number.parseFloat(update)\n update = Number.isNaN(parsed) ? update : parsed\n }\n return update\n}\n","import type {Numberish} from '../types/CommonTypes'\nimport {\n computed,\n inject,\n nextTick,\n onActivated,\n onMounted,\n ref,\n watch,\n type Ref,\n type ShallowRef,\n} from 'vue'\nimport {useAriaInvalid} from './useAriaInvalid'\nimport {useId} from './useId'\nimport {useFocus, useToNumber} from '@vueuse/core'\nimport type {CommonInputProps} from '../types/FormCommonInputProps'\nimport {formGroupKey} from '../utils/keys'\nimport {useDebounceFn} from '../utils/debounce'\nimport {useStateClass} from './useStateClass'\n\nexport const useFormInput = (\n props: Readonly<CommonInputProps>,\n input:\n | Readonly<ShallowRef<HTMLInputElement | null>>\n | Readonly<ShallowRef<HTMLTextAreaElement | null>>,\n modelValue: Ref<Numberish | null>,\n modelModifiers: Record<'number' | 'lazy' | 'trim', true | undefined>\n) => {\n const computedId = useId(() => props.id, 'input')\n const debounceNumber = useToNumber(() => props.debounce ?? 0, {nanToZero: true})\n const debounceMaxWaitNumber = useToNumber(() => props.debounceMaxWait ?? Number.NaN)\n\n // This automatically adds the appropriate \"for\" attribute to a BFormGroup label\n const formGroupData = inject(formGroupKey, null)?.()\n formGroupData?.track(computedId)\n const computedState = computed(() =>\n props.state !== undefined ? props.state : (formGroupData?.state.value ?? null)\n )\n const isDisabled = computed(() => props.disabled || (formGroupData?.disabled.value ?? false))\n const computedAriaInvalid = useAriaInvalid(() => props.ariaInvalid, computedState)\n const stateClass = useStateClass(computedState)\n\n // Holds what the user has typed while a debounced model update is still in\n // flight, during which the model itself still has the previous value. Vue\n // re-patches the `value` DOM prop on every re-render, so an unrelated\n // re-render inside that window resets the field to the stale model and\n // swallows the keystroke. BFormTextarea's auto-resize does exactly that: it\n // writes an inline height on each input, so `debounce` + `max-rows` together\n // dropped characters as you typed.\n const pendingValue = ref<Numberish | null>(null)\n\n const internalUpdateModelValue = useDebounceFn(\n (value: Numberish) => {\n modelValue.value = value\n pendingValue.value = null\n },\n () => (modelModifiers.lazy === true ? 0 : debounceNumber.value),\n {maxWait: () => (modelModifiers.lazy === true ? Number.NaN : debounceMaxWaitNumber.value)}\n )\n\n const updateModelValue = (value: Numberish, force = false, immediate = false) => {\n if (modelModifiers.lazy === true && force === false) return\n if (immediate) {\n pendingValue.value = null\n modelValue.value = value\n } else {\n pendingValue.value = value\n internalUpdateModelValue(value)\n }\n }\n\n // A model change from anywhere else (most often the parent assigning a new\n // value) takes precedence over an in-flight edit. Dropping the pending value\n // is not enough on its own: the debounced write is still scheduled, and left\n // alone it would fire later and push the superseded edit back onto the model.\n watch(modelValue, () => {\n internalUpdateModelValue.cancel()\n pendingValue.value = null\n })\n\n // What the control should actually display: the in-flight value when there is\n // one, otherwise the model.\n const computedValue = computed(() => pendingValue.value ?? modelValue.value ?? undefined)\n\n const {focused} = useFocus(input, {\n initialValue: props.autofocus,\n })\n\n const _formatValue = (value: string, evt: Readonly<Event>, force = false) => {\n if (props.formatter !== undefined && (!props.lazyFormatter || force)) {\n return props.formatter(value, evt)\n }\n return value\n }\n onMounted(() => {\n if (input.value) {\n input.value.value = modelValue.value?.toString() ?? ''\n }\n })\n\n onActivated(() => {\n nextTick(() => {\n if (props.autofocus) {\n focused.value = true\n }\n })\n })\n\n const syncDisplayedValue = (nextValue: string) => {\n if (input.value && input.value.value !== nextValue) {\n input.value.value = nextValue\n }\n }\n\n const onInput = (evt: Readonly<Event>) => {\n const {value} = evt.target as HTMLInputElement\n const formattedValue = _formatValue(value, evt)\n if (evt.defaultPrevented) {\n evt.preventDefault()\n return\n }\n\n const nextModel = formattedValue\n\n updateModelValue(nextModel)\n // If the formatter changed the value, directly update the input's visual value\n // to keep the displayed text in sync with the model. Without this, if the\n // formatted value equals the previous model value, Vue's reactivity won't\n // re-render the input and the raw (unformatted) text remains visible.\n if (formattedValue !== value) {\n syncDisplayedValue(formattedValue)\n }\n }\n\n const onChange = (evt: Readonly<Event>) => {\n const {value} = evt.target as HTMLInputElement\n const formattedValue = _formatValue(value, evt)\n if (evt.defaultPrevented) {\n evt.preventDefault()\n return\n }\n\n const nextModel = formattedValue\n if (modelValue.value !== nextModel) {\n updateModelValue(formattedValue, true)\n }\n }\n\n const onBlur = (evt: Readonly<FocusEvent>) => {\n if (\n !modelModifiers.lazy &&\n !props.lazyFormatter &&\n !modelModifiers.trim &&\n debounceNumber.value <= 0\n )\n return\n\n const {value} = evt.target as HTMLInputElement\n const formattedValue = _formatValue(value, evt, true)\n\n const nextModel = modelModifiers.trim ? formattedValue.trim() : formattedValue\n\n // Cancel before modelValue.value comparison and update. The cancelled\n // update will never land, so the in-flight value must be dropped too --\n // otherwise it would keep shadowing the model after blur.\n internalUpdateModelValue.cancel()\n pendingValue.value = null\n if (modelValue.value !== nextModel) {\n updateModelValue(nextModel, true, true)\n }\n\n // If the formatter or trim changed the displayed text, directly sync the DOM.\n // This handles the case where lazyFormatter defers formatting to blur and the\n // formatted value equals the current model (so Vue's reactivity won't re-render).\n if (nextModel !== value) {\n syncDisplayedValue(nextModel)\n }\n }\n\n const focus = () => {\n if (!isDisabled.value) {\n focused.value = true\n }\n }\n\n const blur = () => {\n if (!isDisabled.value) {\n focused.value = false\n }\n }\n\n return {\n input,\n computedId,\n computedAriaInvalid,\n computedValue,\n onInput,\n onChange,\n onBlur,\n focus,\n bl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K,IAAI;EAEpD,MAAM,YAAY,eAAe,OAAO,eAAe,KAAK,IAAI;EAKhE,yBAAyB,OAAO;EAChC,aAAa,QAAQ;EACrB,IAAI,WAAW,UAAU,WACvB,iBAAiB,WAAW,MAAM,IAAI;EAMxC,IAAI,cAAc,OAChB,mBAAmB,SAAS;CAEhC;CAEA,MAAM,cAAc;EAClB,IAAI,CAAC,WAAW,OACd,QAAQ,QAAQ;CAEpB;CAEA,MAAM,aAAa;EACjB,IAAI,CAAC,WAAW,OACd,QAAQ,QAAQ;CAEpB;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
1
+ {"version":3,"file":"useFormInput-CMtXFoM2.js","names":[],"sources":["../src/utils/normalizeInput.ts","../src/composables/useFormInput.ts"],"sourcesContent":["import type {Numberish} from '../types/CommonTypes'\n\nexport const normalizeInput = (\n v: Numberish | null,\n modelModifiers: Record<'number' | 'lazy' | 'trim', true | undefined>\n) => {\n if (v === null) return\n let update = v\n if (modelModifiers.number && typeof update === 'string' && update !== '') {\n const parsed = Number.parseFloat(update)\n update = Number.isNaN(parsed) ? update : parsed\n }\n return update\n}\n","import type {Numberish} from '../types/CommonTypes'\nimport {\n computed,\n inject,\n nextTick,\n onActivated,\n onMounted,\n ref,\n watch,\n type Ref,\n type ShallowRef,\n} from 'vue'\nimport {useAriaInvalid} from './useAriaInvalid'\nimport {useId} from './useId'\nimport {useFocus, useToNumber} from '@vueuse/core'\nimport type {CommonInputProps} from '../types/FormCommonInputProps'\nimport {formGroupKey} from '../utils/keys'\nimport {useDebounceFn} from '../utils/debounce'\nimport {useStateClass} from './useStateClass'\n\nexport const useFormInput = (\n props: Readonly<CommonInputProps>,\n input:\n | Readonly<ShallowRef<HTMLInputElement | null>>\n | Readonly<ShallowRef<HTMLTextAreaElement | null>>,\n modelValue: Ref<Numberish | null>,\n modelModifiers: Record<'number' | 'lazy' | 'trim', true | undefined>\n) => {\n const computedId = useId(() => props.id, 'input')\n const debounceNumber = useToNumber(() => props.debounce ?? 0, {nanToZero: true})\n const debounceMaxWaitNumber = useToNumber(() => props.debounceMaxWait ?? Number.NaN)\n\n // This automatically adds the appropriate \"for\" attribute to a BFormGroup label\n const formGroupData = inject(formGroupKey, null)?.()\n formGroupData?.track(computedId)\n const computedState = computed(() =>\n props.state !== undefined ? props.state : (formGroupData?.state.value ?? null)\n )\n const isDisabled = computed(() => props.disabled || (formGroupData?.disabled.value ?? false))\n const computedAriaInvalid = useAriaInvalid(() => props.ariaInvalid, computedState)\n const stateClass = useStateClass(computedState)\n\n // Holds what the user has typed while a debounced model update is still in\n // flight, during which the model itself still has the previous value. Vue\n // re-patches the `value` DOM prop on every re-render, so an unrelated\n // re-render inside that window resets the field to the stale model and\n // swallows the keystroke. BFormTextarea's auto-resize does exactly that: it\n // writes an inline height on each input, so `debounce` + `max-rows` together\n // dropped characters as you typed.\n const pendingValue = ref<Numberish | null>(null)\n\n const internalUpdateModelValue = useDebounceFn(\n (value: Numberish) => {\n modelValue.value = value\n pendingValue.value = null\n },\n () => (modelModifiers.lazy === true ? 0 : debounceNumber.value),\n {maxWait: () => (modelModifiers.lazy === true ? Number.NaN : debounceMaxWaitNumber.value)}\n )\n\n const updateModelValue = (value: Numberish, force = false, immediate = false) => {\n if (modelModifiers.lazy === true && force === false) return\n if (immediate) {\n pendingValue.value = null\n modelValue.value = value\n } else {\n pendingValue.value = value\n internalUpdateModelValue(value)\n }\n }\n\n // A model change from anywhere else (most often the parent assigning a new\n // value) takes precedence over an in-flight edit. Dropping the pending value\n // is not enough on its own: the debounced write is still scheduled, and left\n // alone it would fire later and push the superseded edit back onto the model.\n watch(modelValue, () => {\n internalUpdateModelValue.cancel()\n pendingValue.value = null\n })\n\n // What the control should actually display: the in-flight value when there is\n // one, otherwise the model.\n const computedValue = computed(() => pendingValue.value ?? modelValue.value ?? undefined)\n\n const {focused} = useFocus(input, {\n initialValue: props.autofocus,\n })\n\n const _formatValue = (value: string, evt: Readonly<Event>, force = false) => {\n if (props.formatter !== undefined && (!props.lazyFormatter || force)) {\n return props.formatter(value, evt)\n }\n return value\n }\n onMounted(() => {\n if (input.value) {\n input.value.value = modelValue.value?.toString() ?? ''\n }\n })\n\n onActivated(() => {\n nextTick(() => {\n if (props.autofocus) {\n focused.value = true\n }\n })\n })\n\n const syncDisplayedValue = (nextValue: string) => {\n if (input.value && input.value.value !== nextValue) {\n input.value.value = nextValue\n }\n }\n\n const onInput = (evt: Readonly<Event>) => {\n const {value} = evt.target as HTMLInputElement\n const formattedValue = _formatValue(value, evt)\n if (evt.defaultPrevented) {\n evt.preventDefault()\n return\n }\n\n const nextModel = formattedValue\n\n updateModelValue(nextModel)\n // If the formatter changed the value, directly update the input's visual value\n // to keep the displayed text in sync with the model. Without this, if the\n // formatted value equals the previous model value, Vue's reactivity won't\n // re-render the input and the raw (unformatted) text remains visible.\n if (formattedValue !== value) {\n syncDisplayedValue(formattedValue)\n }\n }\n\n const onChange = (evt: Readonly<Event>) => {\n const {value} = evt.target as HTMLInputElement\n const formattedValue = _formatValue(value, evt)\n if (evt.defaultPrevented) {\n evt.preventDefault()\n return\n }\n\n const nextModel = formattedValue\n if (modelValue.value !== nextModel) {\n updateModelValue(formattedValue, true)\n }\n }\n\n const onBlur = (evt: Readonly<FocusEvent>) => {\n if (\n !modelModifiers.lazy &&\n !props.lazyFormatter &&\n !modelModifiers.trim &&\n debounceNumber.value <= 0\n )\n return\n\n const {value} = evt.target as HTMLInputElement\n const formattedValue = _formatValue(value, evt, true)\n\n const nextModel = modelModifiers.trim ? formattedValue.trim() : formattedValue\n\n // Cancel before modelValue.value comparison and update. The cancelled\n // update will never land, so the in-flight value must be dropped too --\n // otherwise it would keep shadowing the model after blur.\n internalUpdateModelValue.cancel()\n pendingValue.value = null\n if (modelValue.value !== nextModel) {\n updateModelValue(nextModel, true, true)\n }\n\n // If the formatter or trim changed the displayed text, directly sync the DOM.\n // This handles the case where lazyFormatter defers formatting to blur and the\n // formatted value equals the current model (so Vue's reactivity won't re-render).\n if (nextModel !== value) {\n syncDisplayedValue(nextModel)\n }\n }\n\n const focus = () => {\n if (!isDisabled.value) {\n focused.value = true\n }\n }\n\n const blur = () => {\n if (!isDisabled.value) {\n focused.value = false\n }\n }\n\n return {\n input,\n computedId,\n computedAriaInvalid,\n computedValue,\n onInput,\n onChange,\n onBlur,\n focus,\n blur,\n stateClass,\n isDisabled,\n }\n}\n"],"mappings":";;;;;;;;AAEA,IAAa,kBACX,GACA,mBACG;CACH,IAAI,MAAM,MAAM;CAChB,IAAI,SAAS;CACb,IAAI,eAAe,UAAU,OAAO,WAAW,YAAY,WAAW,IAAI;EACxE,MAAM,SAAS,OAAO,WAAW,MAAM;EACvC,SAAS,OAAO,MAAM,MAAM,IAAI,SAAS;CAC3C;CACA,OAAO;AACT;;;ACOA,IAAa,gBACX,OACA,OAGA,YACA,mBACG;CACH,MAAM,aAAa,cAAY,MAAM,IAAI,OAAO;CAChD,MAAM,iBAAiB,kBAAkB,MAAM,YAAY,GAAG,EAAC,WAAW,KAAI,CAAC;CAC/E,MAAM,wBAAwB,kBAAkB,MAAM,mBAAmB,GAAU;CAGnF,MAAM,gBAAgB,OAAO,cAAc,IAAI,CAAC,GAAG;CACnD,eAAe,MAAM,UAAU;CAC/B,MAAM,gBAAgB,eACpB,MAAM,UAAU,KAAA,IAAY,MAAM,QAAS,eAAe,MAAM,SAAS,IAC3E;CACA,MAAM,aAAa,eAAe,MAAM,aAAa,eAAe,SAAS,SAAS,MAAM;CAC5F,MAAM,sBAAsB,qBAAqB,MAAM,aAAa,aAAa;CACjF,MAAM,aAAa,cAAc,aAAa;CAS9C,MAAM,eAAe,IAAsB,IAAI;CAE/C,MAAM,2BAA2B,eAC9B,UAAqB;EACpB,WAAW,QAAQ;EACnB,aAAa,QAAQ;CACvB,SACO,eAAe,SAAS,OAAO,IAAI,eAAe,OACzD,EAAC,eAAgB,eAAe,SAAS,OAAO,MAAa,sBAAsB,MAAM,CAC3F;CAEA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AClB,IAAI,WAAW,UAAU,WACvB,iBAAiB,gBAAgB,IAAI;CAEzC;CAEA,MAAM,UAAU,QAA8B;EAC5C,IACE,CAAC,eAAe,QAChB,CAAC,MAAM,iBACP,CAAC,eAAe,QAChB,eAAe,SAAS,GAExB;EAEF,MAAM,EAAC,UAAS,IAAI;EACpB,MAAM,iBAAiB,aAAa,OAAO,KAAK,IAAI;EAEpD,MAAM,YAAY,eAAe,OAAO,eAAe,KAAK,IAAI;EAKhE,yBAAyB,OAAO;EAChC,aAAa,QAAQ;EACrB,IAAI,WAAW,UAAU,WACvB,iBAAiB,WAAW,MAAM,IAAI;EAMxC,IAAI,cAAc,OAChB,mBAAmB,SAAS;CAEhC;CAEA,MAAM,cAAc;EAClB,IAAI,CAAC,WAAW,OACd,QAAQ,QAAQ;CAEpB;CAEA,MAAM,aAAa;EACjB,IAAI,CAAC,WAAW,OACd,QAAQ,QAAQ;CAEpB;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
@@ -0,0 +1,89 @@
1
+ import { a as getSafeWindow, i as getSafeDocument } from "./dom-BdUQrX99.js";
2
+ import { useScrollLock as useScrollLock$1 } from "./src/composables/useScrollLock/index.mjs";
3
+ import { computed, onMounted, onUnmounted, readonly, ref, toRef, toValue, useId, watch } from "vue";
4
+ import { useMutationObserver } from "@vueuse/core";
5
+ import { useFocusTrap } from "@vueuse/integrations/useFocusTrap";
6
+ //#region src/composables/useActivatedFocusTrap.ts
7
+ var useActivatedFocusTrap = ({ element, isActive, noTrap, fallbackFocus, focus }, focusTrapOpts = {
8
+ allowOutsideClick: true,
9
+ fallbackFocus: () => fallbackFocus.ref.value || getSafeDocument()?.body || "body",
10
+ escapeDeactivates: false,
11
+ clickOutsideDeactivates: false,
12
+ initialFocus: focus,
13
+ delayInitialFocus: false
14
+ }) => {
15
+ const resolvedIsActive = readonly(toRef(isActive));
16
+ const resolvedNoTrap = readonly(toRef(noTrap));
17
+ const checkNeedsFallback = () => {
18
+ return !(element.value?.querySelectorAll(`a, button, input, select, textarea, [tabindex]:not([tabindex="-1"]):not(.${fallbackFocus.classSelector})`))?.length;
19
+ };
20
+ const needsFallback = ref(false);
21
+ onMounted(() => {
22
+ needsFallback.value = checkNeedsFallback();
23
+ useMutationObserver(element, () => {
24
+ needsFallback.value = checkNeedsFallback();
25
+ }, {
26
+ childList: true,
27
+ subtree: true
28
+ });
29
+ });
30
+ const trap = useFocusTrap(element, focusTrapOpts);
31
+ watch(resolvedIsActive, async (newValue) => {
32
+ if (newValue && resolvedNoTrap.value === false) trap.activate();
33
+ else trap.deactivate();
34
+ });
35
+ watch(resolvedNoTrap, (newValue) => {
36
+ if (newValue === true) trap.deactivate();
37
+ });
38
+ return { needsFallback: readonly(needsFallback) };
39
+ };
40
+ //#endregion
41
+ //#region src/composables/useSafeScrollLock.ts
42
+ var prevousRightPadding = "";
43
+ var lockRegistry = /* @__PURE__ */ new Map();
44
+ var useSafeScrollLock = (isOpen, bodyScroll) => {
45
+ const resolvedIsOpen = readonly(toRef(isOpen));
46
+ const id = useId();
47
+ /**
48
+ * We use the inverse because bodyScrolling === true means we allow scrolling, while bodyScrolling === false means we disallow
49
+ */
50
+ const inverseBodyScrollingValue = computed(() => !toValue(bodyScroll));
51
+ const isLocked = useScrollLock$1(getSafeDocument()?.body ?? null, resolvedIsOpen.value && inverseBodyScrollingValue.value);
52
+ onMounted(() => {
53
+ if (getSafeDocument() === null) return;
54
+ lockRegistry.set(id, false);
55
+ watch([resolvedIsOpen, inverseBodyScrollingValue], ([modelVal, bodyVal]) => {
56
+ const doc = getSafeDocument();
57
+ const scrollBarGap = (getSafeWindow()?.innerWidth ?? 0) - (doc?.documentElement.clientWidth ?? 0);
58
+ const hasLocked = Array.from(lockRegistry.values()).some((val) => val === true);
59
+ const myLocked = modelVal && bodyVal;
60
+ lockRegistry.set(id, myLocked);
61
+ if (myLocked && !hasLocked && !isLocked.value) {
62
+ isLocked.value = true;
63
+ if (scrollBarGap > 0 && doc) {
64
+ prevousRightPadding = doc.body.style.paddingRight;
65
+ doc.body.style.paddingRight = `${scrollBarGap + prevousRightPadding}px`;
66
+ }
67
+ }
68
+ const hasLockedAfter = Array.from(lockRegistry.values()).some((val) => val === true);
69
+ if (hasLocked && !hasLockedAfter && doc) {
70
+ lockRegistry.set(id, false);
71
+ isLocked.value = false;
72
+ doc.body.style.paddingRight = prevousRightPadding;
73
+ }
74
+ }, { immediate: true });
75
+ });
76
+ onUnmounted(() => {
77
+ lockRegistry.delete(id);
78
+ const hasLockedAfter = Array.from(lockRegistry.values()).some((val) => val === true);
79
+ const doc = getSafeDocument();
80
+ if (!hasLockedAfter && doc) {
81
+ doc.body.style.paddingRight = prevousRightPadding;
82
+ isLocked.value = false;
83
+ }
84
+ });
85
+ };
86
+ //#endregion
87
+ export { useActivatedFocusTrap as n, useSafeScrollLock as t };
88
+
89
+ //# sourceMappingURL=useSafeScrollLock-BT4KKhxB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSafeScrollLock-BT4KKhxB.js","names":[],"sources":["../src/composables/useActivatedFocusTrap.ts","../src/composables/useSafeScrollLock.ts"],"sourcesContent":["import {type MaybeRefOrGetter, onMounted, readonly, ref, type Ref, toRef, watch} from 'vue'\nimport {useFocusTrap, type UseFocusTrapOptions} from '@vueuse/integrations/useFocusTrap'\nimport {useMutationObserver} from '@vueuse/core'\nimport {getSafeDocument} from '../utils/dom'\n\nexport const useActivatedFocusTrap = (\n {\n element,\n isActive,\n noTrap,\n fallbackFocus,\n focus,\n }: {\n element: Ref<HTMLElement | null>\n isActive: MaybeRefOrGetter<boolean>\n noTrap: MaybeRefOrGetter<boolean>\n /**\n * We need this in the case when there are no focusable elements in the trap. So elements that use this need to implement a fallback focus element.\n *\n * Use the `needsFallback` ref to check if you can v-if the element or not. So it's not included in the component tree when not needed.\n */\n fallbackFocus: {\n ref: Ref<HTMLElement | null>\n /**\n * The fallback focus element needs some specific selector to ensure it's not included when checking for focusable elements\n */\n classSelector: string\n }\n focus: () => HTMLElement | boolean | undefined\n },\n focusTrapOpts: UseFocusTrapOptions = {\n allowOutsideClick: true,\n fallbackFocus: () => fallbackFocus.ref.value || getSafeDocument()?.body || 'body',\n escapeDeactivates: false,\n clickOutsideDeactivates: false,\n initialFocus: focus,\n delayInitialFocus: false,\n }\n) => {\n const resolvedIsActive = readonly(toRef(isActive))\n const resolvedNoTrap = readonly(toRef(noTrap))\n\n const checkNeedsFallback = () => {\n const tabbableElements = element.value?.querySelectorAll(\n `a, button, input, select, textarea, [tabindex]:not([tabindex=\"-1\"]):not(.${fallbackFocus.classSelector})`\n )\n return !tabbableElements?.length\n }\n const needsFallback = ref(false)\n onMounted(() => {\n needsFallback.value = checkNeedsFallback()\n useMutationObserver(\n element,\n () => {\n needsFallback.value = checkNeedsFallback()\n },\n {childList: true, subtree: true}\n )\n })\n\n const trap = useFocusTrap(element, focusTrapOpts)\n watch(resolvedIsActive, async (newValue) => {\n if (newValue && resolvedNoTrap.value === false) {\n trap.activate()\n } else {\n trap.deactivate()\n }\n })\n\n watch(resolvedNoTrap, (newValue) => {\n if (newValue === true) {\n trap.deactivate()\n }\n })\n\n return {\n needsFallback: readonly(needsFallback),\n }\n}\n","import {\n computed,\n type MaybeRefOrGetter,\n onMounted,\n onUnmounted,\n readonly,\n toRef,\n toValue,\n useId,\n watch,\n} from 'vue'\nimport {useScrollLock} from './useScrollLock'\nimport {getSafeDocument, getSafeWindow} from '../utils/dom'\n\nlet prevousRightPadding = ''\nconst lockRegistry = new Map()\n\nexport const useSafeScrollLock = (\n isOpen: MaybeRefOrGetter<boolean>,\n bodyScroll: MaybeRefOrGetter<boolean>\n) => {\n const resolvedIsOpen = readonly(toRef(isOpen))\n const id = useId()\n\n /**\n * We use the inverse because bodyScrolling === true means we allow scrolling, while bodyScrolling === false means we disallow\n */\n const inverseBodyScrollingValue = computed(() => !toValue(bodyScroll))\n\n const isLocked = useScrollLock(\n getSafeDocument()?.body ?? null,\n resolvedIsOpen.value && inverseBodyScrollingValue.value\n )\n onMounted(() => {\n if (getSafeDocument() === null) return\n lockRegistry.set(id, false)\n\n watch(\n [resolvedIsOpen, inverseBodyScrollingValue],\n ([modelVal, bodyVal]) => {\n const doc = getSafeDocument()\n const windowInnerWidth = getSafeWindow()?.innerWidth ?? 0\n const documentClientWidth = doc?.documentElement.clientWidth ?? 0\n const scrollBarGap = windowInnerWidth - documentClientWidth\n const hasLocked = Array.from(lockRegistry.values()).some((val) => val === true)\n\n const myLocked = modelVal && bodyVal\n lockRegistry.set(id, myLocked)\n\n if (myLocked && !hasLocked && !isLocked.value) {\n isLocked.value = true\n if (scrollBarGap > 0 && doc) {\n prevousRightPadding = doc.body.style.paddingRight\n doc.body.style.paddingRight = `${scrollBarGap + prevousRightPadding}px`\n }\n }\n const hasLockedAfter = Array.from(lockRegistry.values()).some((val) => val === true)\n\n if (hasLocked && !hasLockedAfter && doc) {\n lockRegistry.set(id, false)\n isLocked.value = false\n doc.body.style.paddingRight = prevousRightPadding\n }\n },\n {immediate: true}\n )\n })\n onUnmounted(() => {\n lockRegistry.delete(id)\n\n const hasLockedAfter = Array.from(lockRegistry.values()).some((val) => val === true)\n const doc = getSafeDocument()\n if (!hasLockedAfter && doc) {\n doc.body.style.paddingRight = prevousRightPadding\n isLocked.value = false\n }\n })\n}\n"],"mappings":";;;;;;AAKA,IAAa,yBACX,EACE,SACA,UACA,QACA,eACA,SAmBF,gBAAqC;CACnC,mBAAmB;CACnB,qBAAqB,cAAc,IAAI,SAAS,gBAAgB,CAAC,EAAE,QAAQ;CAC3E,mBAAmB;CACnB,yBAAyB;CACzB,cAAc;CACd,mBAAmB;AACrB,MACG;CACH,MAAM,mBAAmB,SAAS,MAAM,QAAQ,CAAC;CACjD,MAAM,iBAAiB,SAAS,MAAM,MAAM,CAAC;CAE7C,MAAM,2BAA2B;EAI/B,OAAO,EAHkB,QAAQ,OAAO,iBACtC,4EAA4E,cAAc,cAAc,EAC1G,EAAA,EA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3B,sBAAsB,IAAI,KAAK,MAAM;KACrC,IAAI,KAAK,MAAM,eAAe,GAAG,eAAe,oBAAoB;IACtE;GACF;GACA,MAAM,iBAAiB,MAAM,KAAK,aAAa,OAAO,CAAC,CAAC,CAAC,MAAM,QAAQ,QAAQ,IAAI;GAEnF,IAAI,aAAa,CAAC,kBAAkB,KAAK;IACvC,aAAa,IAAI,IAAI,KAAK;IAC1B,SAAS,QAAQ;IACjB,IAAI,KAAK,MAAM,eAAe;GAChC;EACF,GACA,EAAC,WAAW,KAAI,CAClB;CACF,CAAC;CACD,kBAAkB;EAChB,aAAa,OAAO,EAAE;EAEtB,MAAM,iBAAiB,MAAM,KAAK,aAAa,OAAO,CAAC,CAAC,CAAC,MAAM,QAAQ,QAAQ,IAAI;EACnF,MAAM,MAAM,gBAAgB;EAC5B,IAAI,CAAC,kBAAkB,KAAK;GAC1B,IAAI,KAAK,MAAM,eAAe;GAC9B,SAAS,QAAQ;EACnB;CACF,CAAC;AACH"}
@@ -1,9 +1,8 @@
1
1
  import { r as BvTriggerableEvent } from "./classes-DCjKFM2E.js";
2
2
  import { x as showHideRegistryKey } from "./keys-BgLwJbLV.js";
3
- import { x as useThrottleFn } from "./dist-DKc2ivHS.js";
4
- import { f as useEventListener } from "./dist-9-XTMhb-.js";
5
3
  import { t as noop } from "./functions-BUZ1y9RA.js";
6
4
  import { computed, getCurrentInstance, inject, nextTick, onBeforeUnmount, onMounted, onUnmounted, readonly, ref, watch } from "vue";
5
+ import { useEventListener, useThrottleFn } from "@vueuse/core";
7
6
  //#region src/composables/useShowHide.ts
8
7
  var fadeBaseTransitionProps = {
9
8
  name: "fade",
@@ -498,4 +497,4 @@ var useShowHide = ({ modelValue, element, props, emit, id }, options = {
498
497
  //#endregion
499
498
  export { useShowHide as t };
500
499
 
501
- //# sourceMappingURL=useShowHide-Dpld86ys.js.map
500
+ //# sourceMappingURL=useShowHide-BLIZLD9E.js.map