@adyen/bento-vue3 1.84.2 → 1.86.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (471) hide show
  1. package/dist/@types/components.d.ts +6 -0
  2. package/dist/@types/index.d.ts +480 -268
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +5 -0
  6. package/dist/ai-tag.js.map +1 -0
  7. package/dist/alert.js +1 -1
  8. package/dist/anchor-scroller.js +5 -0
  9. package/dist/anchor-scroller.js.map +1 -0
  10. package/dist/assets/accordion-item.css +1 -1
  11. package/dist/assets/action-bar.css +1 -1
  12. package/dist/assets/ai-tag.css +1 -0
  13. package/dist/assets/anchor-scroller.css +1 -0
  14. package/dist/assets/base-modal.css +1 -1
  15. package/dist/assets/button-actions.css +1 -1
  16. package/dist/assets/card.css +1 -1
  17. package/dist/assets/checkbox.css +1 -1
  18. package/dist/assets/data-grid.css +1 -1
  19. package/dist/assets/date-picker.css +1 -1
  20. package/dist/assets/date-range-picker.css +1 -1
  21. package/dist/assets/dialog-page.css +1 -1
  22. package/dist/assets/draggable-handle.css +1 -0
  23. package/dist/assets/dropdown-default-textbox.css +1 -1
  24. package/dist/assets/dropdown.css +1 -1
  25. package/dist/assets/error-message.css +1 -0
  26. package/dist/assets/file-uploader.css +1 -1
  27. package/dist/assets/filter-bar.css +1 -1
  28. package/dist/assets/fixed-scroller.css +1 -1
  29. package/dist/assets/form-layout-title.css +1 -1
  30. package/dist/assets/inspector.css +1 -1
  31. package/dist/assets/layout-row.css +1 -1
  32. package/dist/assets/modal-fullscreen.css +1 -1
  33. package/dist/assets/radio-group.css +1 -1
  34. package/dist/assets/secondary-nav.css +1 -1
  35. package/dist/assets/sidepanel.css +1 -1
  36. package/dist/assets/use-cached-selected-values.css +1 -1
  37. package/dist/avatar.js +1 -1
  38. package/dist/button.js +3 -3
  39. package/dist/card.js +1 -1
  40. package/dist/checkbox.js +6 -6
  41. package/dist/chip.js +1 -1
  42. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -1
  43. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -1
  44. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -1
  45. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -1
  46. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -1
  47. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -1
  48. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -1
  49. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -1
  50. package/dist/chunks/{accordion-item.yRlQj4VF.js → accordion-item.QQ06tTjt.js} +8 -8
  51. package/dist/chunks/{accordion-item.yRlQj4VF.js.map → accordion-item.QQ06tTjt.js.map} +1 -1
  52. package/dist/chunks/action-bar.g7rM3wUc.js +209 -0
  53. package/dist/chunks/action-bar.g7rM3wUc.js.map +1 -0
  54. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -1
  55. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -1
  56. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -1
  57. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -1
  58. package/dist/chunks/ai-button.XfeGC4-Q.js +57 -0
  59. package/dist/chunks/ai-button.XfeGC4-Q.js.map +1 -0
  60. package/dist/chunks/ai-tag.UlRkq54l.js +139 -0
  61. package/dist/chunks/ai-tag.UlRkq54l.js.map +1 -0
  62. package/dist/chunks/{alert.BYcw-u3b.js → alert.CDWtu0Hu.js} +11 -11
  63. package/dist/chunks/{alert.BYcw-u3b.js.map → alert.CDWtu0Hu.js.map} +1 -1
  64. package/dist/chunks/anchor-scroller.CKIQu3NK.js +215 -0
  65. package/dist/chunks/anchor-scroller.CKIQu3NK.js.map +1 -0
  66. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
  67. package/dist/chunks/arrow-left.C6UiqO-c.js +29 -0
  68. package/dist/chunks/arrow-left.C6UiqO-c.js.map +1 -0
  69. package/dist/chunks/arrow-right.fSdLV_ho.js +29 -0
  70. package/dist/chunks/arrow-right.fSdLV_ho.js.map +1 -0
  71. package/dist/chunks/artificial-intelligence-ai-filled.AhDHffzT.js +44 -0
  72. package/dist/chunks/artificial-intelligence-ai-filled.AhDHffzT.js.map +1 -0
  73. package/dist/chunks/{avatar.CNGMjwg3.js → avatar.Caeba-pw.js} +3 -3
  74. package/dist/chunks/{avatar.CNGMjwg3.js.map → avatar.Caeba-pw.js.map} +1 -1
  75. package/dist/chunks/{base-button.CUd03aA2.js → base-button.CRYAiuzn.js} +9 -9
  76. package/dist/chunks/{base-button.CUd03aA2.js.map → base-button.CRYAiuzn.js.map} +1 -1
  77. package/dist/chunks/{base-modal.D3GyeCFT.js → base-modal.D5HrjwL1.js} +23 -23
  78. package/dist/chunks/{base-modal.D3GyeCFT.js.map → base-modal.D5HrjwL1.js.map} +1 -1
  79. package/dist/chunks/{bin.DuHlEQBO.js → bin.Cude0fiB.js} +4 -4
  80. package/dist/chunks/{bin.DuHlEQBO.js.map → bin.Cude0fiB.js.map} +1 -1
  81. package/dist/chunks/{button-actions-with-menu.B8xFgt-p.js → button-actions-with-menu.DBqA3Ws5.js} +7 -7
  82. package/dist/chunks/{button-actions-with-menu.B8xFgt-p.js.map → button-actions-with-menu.DBqA3Ws5.js.map} +1 -1
  83. package/dist/chunks/{button-actions.Crj4QFAd.js → button-actions.BH-J7dux.js} +17 -17
  84. package/dist/chunks/{button-actions.Crj4QFAd.js.map → button-actions.BH-J7dux.js.map} +1 -1
  85. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  86. package/dist/chunks/{button.CSp48LJt.js → button.C6t9_lzm.js} +12 -12
  87. package/dist/chunks/{button.CSp48LJt.js.map → button.C6t9_lzm.js.map} +1 -1
  88. package/dist/chunks/{calendar.DKPx_cQU.js → calendar.DzeJoNc2.js} +113 -107
  89. package/dist/chunks/{calendar.DKPx_cQU.js.map → calendar.DzeJoNc2.js.map} +1 -1
  90. package/dist/chunks/{card.C_03IYJe.js → card.DcXXdxWL.js} +7 -7
  91. package/dist/chunks/{card.C_03IYJe.js.map → card.DcXXdxWL.js.map} +1 -1
  92. package/dist/chunks/{checkbox-group.DZrhxIHp.js → checkbox-group.Bh_aqKoA.js} +11 -11
  93. package/dist/chunks/{checkbox-group.DZrhxIHp.js.map → checkbox-group.Bh_aqKoA.js.map} +1 -1
  94. package/dist/chunks/{checkbox-input.Dk9iFQQe.js → checkbox-input.BZjSoCQW.js} +4 -4
  95. package/dist/chunks/{checkbox-input.Dk9iFQQe.js.map → checkbox-input.BZjSoCQW.js.map} +1 -1
  96. package/dist/chunks/{checkbox.BWgWtiLJ.js → checkbox.7kpOXm-b.js} +22 -22
  97. package/dist/chunks/{checkbox.BWgWtiLJ.js.map → checkbox.7kpOXm-b.js.map} +1 -1
  98. package/dist/chunks/{checkmark-circle-fill._6-d40ru.js → checkmark-circle-fill.DugX5fbG.js} +4 -4
  99. package/dist/chunks/{checkmark-circle-fill._6-d40ru.js.map → checkmark-circle-fill.DugX5fbG.js.map} +1 -1
  100. package/dist/chunks/{checkmark-small.x-gmK2Dt.js → checkmark-small.CRuZauJc.js} +5 -5
  101. package/dist/chunks/{checkmark-small.x-gmK2Dt.js.map → checkmark-small.CRuZauJc.js.map} +1 -1
  102. package/dist/chunks/{chevron-down.DCQ6ZLaq.js → chevron-down.XeE-LBV_.js} +5 -5
  103. package/dist/chunks/{chevron-down.DCQ6ZLaq.js.map → chevron-down.XeE-LBV_.js.map} +1 -1
  104. package/dist/chunks/{chevron-left.Cfn1uGLH.js → chevron-left.C_vPW7OR.js} +8 -8
  105. package/dist/chunks/{chevron-left.Cfn1uGLH.js.map → chevron-left.C_vPW7OR.js.map} +1 -1
  106. package/dist/chunks/{chevron-up.kfuLRpZb.js → chevron-up.Cmgl2a3x.js} +5 -5
  107. package/dist/chunks/{chevron-up.kfuLRpZb.js.map → chevron-up.Cmgl2a3x.js.map} +1 -1
  108. package/dist/chunks/{chip.eefnwpgE.js → chip.CyW1V8RU.js} +7 -7
  109. package/dist/chunks/{chip.eefnwpgE.js.map → chip.CyW1V8RU.js.map} +1 -1
  110. package/dist/chunks/{click-outside.C1Ud8AA2.js → click-outside.CDz_x8mN.js} +2 -2
  111. package/dist/chunks/{click-outside.C1Ud8AA2.js.map → click-outside.CDz_x8mN.js.map} +1 -1
  112. package/dist/chunks/{code-snippet.BX3Yeo0x.js → code-snippet.UIqVTv4U.js} +15 -15
  113. package/dist/chunks/{code-snippet.BX3Yeo0x.js.map → code-snippet.UIqVTv4U.js.map} +1 -1
  114. package/dist/chunks/{codemirror.Cy7iSLbd.js → codemirror.D2BAltnu.js} +3688 -3673
  115. package/dist/chunks/codemirror.D2BAltnu.js.map +1 -0
  116. package/dist/chunks/constructNow.B8T1ljs6.js +8 -0
  117. package/dist/chunks/{constructNow.DuaJst0D.js.map → constructNow.B8T1ljs6.js.map} +1 -1
  118. package/dist/chunks/{controls-group.DpFv8c4E.js → controls-group.Dip3WAKV.js} +10 -10
  119. package/dist/chunks/{controls-group.DpFv8c4E.js.map → controls-group.Dip3WAKV.js.map} +1 -1
  120. package/dist/chunks/{copy.xg9ElNxd.js → copy.ByyQlckP.js} +6 -6
  121. package/dist/chunks/{copy.xg9ElNxd.js.map → copy.ByyQlckP.js.map} +1 -1
  122. package/dist/chunks/{country.vSfTQW51.js → country.DJts6kCv.js} +5 -5
  123. package/dist/chunks/{country.vSfTQW51.js.map → country.DJts6kCv.js.map} +1 -1
  124. package/dist/chunks/{country.types.DaVCMxk-.js → country.types.BBQbWkTY.js} +3 -3
  125. package/dist/chunks/{country.types.DaVCMxk-.js.map → country.types.BBQbWkTY.js.map} +1 -1
  126. package/dist/chunks/{cross-circle-fill-small.Dv5-PxwF.js → cross-circle-fill-small.H1wH-vcZ.js} +5 -5
  127. package/dist/chunks/{cross-circle-fill-small.Dv5-PxwF.js.map → cross-circle-fill-small.H1wH-vcZ.js.map} +1 -1
  128. package/dist/chunks/{cross-circle-fill.CYLL7jfC.js → cross-circle-fill.BWCKKn0E.js} +4 -4
  129. package/dist/chunks/{cross-circle-fill.CYLL7jfC.js.map → cross-circle-fill.BWCKKn0E.js.map} +1 -1
  130. package/dist/chunks/{cross-small.n1UO5wNB.js → cross-small.Bjq2Gqvh.js} +5 -5
  131. package/dist/chunks/{cross-small.n1UO5wNB.js.map → cross-small.Bjq2Gqvh.js.map} +1 -1
  132. package/dist/chunks/{cross.B92GxFTY.js → cross.CCHdi6v3.js} +5 -5
  133. package/dist/chunks/{cross.B92GxFTY.js.map → cross.CCHdi6v3.js.map} +1 -1
  134. package/dist/chunks/{currency.DijmAkAB.js → currency.Afx8MVdY.js} +4 -4
  135. package/dist/chunks/{currency.DijmAkAB.js.map → currency.Afx8MVdY.js.map} +1 -1
  136. package/dist/chunks/{dashboard-section.D_k3_Z2T.js → dashboard-section.CIHtXoeW.js} +8 -8
  137. package/dist/chunks/{dashboard-section.D_k3_Z2T.js.map → dashboard-section.CIHtXoeW.js.map} +1 -1
  138. package/dist/chunks/{dashed-underline.B0z2ZZh7.js → dashed-underline.CLwPU-C2.js} +14 -14
  139. package/dist/chunks/{dashed-underline.B0z2ZZh7.js.map → dashed-underline.CLwPU-C2.js.map} +1 -1
  140. package/dist/chunks/{data-grid-template.DdIrvOXp.js → data-grid-template.BTpSfkQt.js} +8 -8
  141. package/dist/chunks/{data-grid-template.DdIrvOXp.js.map → data-grid-template.BTpSfkQt.js.map} +1 -1
  142. package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -1
  143. package/dist/chunks/{data-grid.CqtJp9rE.js → data-grid.CXDdiHz8.js} +1239 -1236
  144. package/dist/chunks/data-grid.CXDdiHz8.js.map +1 -0
  145. package/dist/chunks/date-input.XSJuuCHe.js +20 -0
  146. package/dist/chunks/date-input.XSJuuCHe.js.map +1 -0
  147. package/dist/chunks/{date-picker.DGIwFh6T.js → date-picker.CvTSZhMI.js} +82 -81
  148. package/dist/chunks/date-picker.CvTSZhMI.js.map +1 -0
  149. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  150. package/dist/chunks/date-range-picker.BPCt7cwj.js +1100 -0
  151. package/dist/chunks/date-range-picker.BPCt7cwj.js.map +1 -0
  152. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  153. package/dist/chunks/{date.CL55prL0.js → date.BtB1HyWQ.js} +4 -4
  154. package/dist/chunks/{date.CL55prL0.js.map → date.BtB1HyWQ.js.map} +1 -1
  155. package/dist/chunks/de.DvtL0g75.js.map +1 -1
  156. package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
  157. package/dist/chunks/delight.CDBAFnwC.js.map +1 -1
  158. package/dist/chunks/delight.xKDCvvaS.js.map +1 -1
  159. package/dist/chunks/dialog-page.B3ptLXXP.js +162 -0
  160. package/dist/chunks/dialog-page.B3ptLXXP.js.map +1 -0
  161. package/dist/chunks/{differenceInMonths.DcFDl4eH.js → differenceInMonths.BR4Z2HIa.js} +2 -2
  162. package/dist/chunks/{differenceInMonths.DcFDl4eH.js.map → differenceInMonths.BR4Z2HIa.js.map} +1 -1
  163. package/dist/chunks/{directive.Cbdox5VL.js → directive.rXUeDb8p.js} +2 -2
  164. package/dist/chunks/{directive.Cbdox5VL.js.map → directive.rXUeDb8p.js.map} +1 -1
  165. package/dist/chunks/{divider.Dho4_hQ7.js → divider.BIY84UH7.js} +5 -5
  166. package/dist/chunks/{divider.Dho4_hQ7.js.map → divider.BIY84UH7.js.map} +1 -1
  167. package/dist/chunks/{dot.ob6N-5Um.js → dot.DBmwmOUN.js} +5 -5
  168. package/dist/chunks/{dot.ob6N-5Um.js.map → dot.DBmwmOUN.js.map} +1 -1
  169. package/dist/chunks/{dropdown-default-textbox.DFtFMu5G.js → dropdown-default-textbox.B-_dTUVX.js} +107 -117
  170. package/dist/chunks/dropdown-default-textbox.B-_dTUVX.js.map +1 -0
  171. package/dist/chunks/{dropdown-tag.Bf6TiNZw.js → dropdown-tag.DDNOZhEG.js} +20 -20
  172. package/dist/chunks/{dropdown-tag.Bf6TiNZw.js.map → dropdown-tag.DDNOZhEG.js.map} +1 -1
  173. package/dist/chunks/dropdown.CU6nfq3V.js +836 -0
  174. package/dist/chunks/dropdown.CU6nfq3V.js.map +1 -0
  175. package/dist/chunks/{empty-state.D_ifpeU-.js → empty-state.DqdPzU-g.js} +15 -15
  176. package/dist/chunks/{empty-state.D_ifpeU-.js.map → empty-state.DqdPzU-g.js.map} +1 -1
  177. package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -1
  178. package/dist/chunks/en-US.BZii9jNW.js.map +1 -1
  179. package/dist/chunks/{field-label.D7vU2Icm.js → error-message.BYA2_fPV.js} +67 -67
  180. package/dist/chunks/error-message.BYA2_fPV.js.map +1 -0
  181. package/dist/chunks/es.bz0mzkMq.js.map +1 -1
  182. package/dist/chunks/es6.C1DXQV6f.js.map +1 -1
  183. package/dist/chunks/events.BQOQSSb7.js.map +1 -1
  184. package/dist/chunks/{expand.C9IAqYYL.js → expand.BrywY9jl.js} +4 -4
  185. package/dist/chunks/{expand.C9IAqYYL.js.map → expand.BrywY9jl.js.map} +1 -1
  186. package/dist/chunks/{file-uploader.BmBKLzIx.js → file-uploader.Q2ufNRTY.js} +80 -80
  187. package/dist/chunks/file-uploader.Q2ufNRTY.js.map +1 -0
  188. package/dist/chunks/filter-bar.BVj9YVv-.js +4125 -0
  189. package/dist/chunks/filter-bar.BVj9YVv-.js.map +1 -0
  190. package/dist/chunks/fixed-scroller.i1tmEmst.js +161 -0
  191. package/dist/chunks/{fixed-scroller.e56yJp7Q.js.map → fixed-scroller.i1tmEmst.js.map} +1 -1
  192. package/dist/chunks/{focus-trap.BaHvK7aT.js → focus-trap.CBvh2H_m.js} +294 -277
  193. package/dist/chunks/focus-trap.CBvh2H_m.js.map +1 -0
  194. package/dist/chunks/{footer-actions.BqNvwVk7.js → footer-actions.DLzMOB7j.js} +8 -8
  195. package/dist/chunks/{footer-actions.BqNvwVk7.js.map → footer-actions.DLzMOB7j.js.map} +1 -1
  196. package/dist/chunks/form-field.D_2g7vaP.js.map +1 -1
  197. package/dist/chunks/{form-layout-title.CPsEzRzS.js → form-layout-title.DYmTc6M7.js} +7 -7
  198. package/dist/chunks/{form-layout-title.CPsEzRzS.js.map → form-layout-title.DYmTc6M7.js.map} +1 -1
  199. package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -1
  200. package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -1
  201. package/dist/chunks/fr.Dj7wEToe.js.map +1 -1
  202. package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
  203. package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -1
  204. package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js} +3 -3
  205. package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js.map} +1 -1
  206. package/dist/chunks/grab.DJYL4kBq.js +26 -0
  207. package/dist/chunks/grab.DJYL4kBq.js.map +1 -0
  208. package/dist/chunks/{grid-layout.DDaRNz4-.js → grid-layout.Vhv1_zFs.js} +21 -21
  209. package/dist/chunks/{grid-layout.DDaRNz4-.js.map → grid-layout.Vhv1_zFs.js.map} +1 -1
  210. package/dist/chunks/{header-meta.PysBmkSU.js → header-meta.Bw8ZGwJW.js} +15 -15
  211. package/dist/chunks/{header-meta.PysBmkSU.js.map → header-meta.Bw8ZGwJW.js.map} +1 -1
  212. package/dist/chunks/{header-with-views.XzJCg2Ln.js → header-with-views.CJDoE4hw.js} +617 -635
  213. package/dist/chunks/header-with-views.CJDoE4hw.js.map +1 -0
  214. package/dist/chunks/{header.yMTOq8MR.js → header.BeH8KH_l.js} +14 -14
  215. package/dist/chunks/{header.yMTOq8MR.js.map → header.BeH8KH_l.js.map} +1 -1
  216. package/dist/chunks/{image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js → image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js} +3 -3
  217. package/dist/chunks/{image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map → image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js.map} +1 -1
  218. package/dist/chunks/{index.pdBj0KQU.js → index.B875RXHM.js} +3 -3
  219. package/dist/chunks/{index.pdBj0KQU.js.map → index.B875RXHM.js.map} +1 -1
  220. package/dist/chunks/index.CbxHJr39.js +691 -0
  221. package/dist/chunks/{index.E60QniEu.js.map → index.CbxHJr39.js.map} +1 -1
  222. package/dist/chunks/{info-icon.BQDGteil.js → info-icon.BLtyJvY4.js} +9 -9
  223. package/dist/chunks/{info-icon.BQDGteil.js.map → info-icon.BLtyJvY4.js.map} +1 -1
  224. package/dist/chunks/{info.BKwey1HA.js → info.6Z6NxUst.js} +4 -4
  225. package/dist/chunks/{info.BKwey1HA.js.map → info.6Z6NxUst.js.map} +1 -1
  226. package/dist/chunks/{input-field-password.Drp3Gn3x.js → input-field-password.KeKQPIZv.js} +21 -21
  227. package/dist/chunks/{input-field-password.Drp3Gn3x.js.map → input-field-password.KeKQPIZv.js.map} +1 -1
  228. package/dist/chunks/{input-field-phone-number.CcCrGAZb.js → input-field-phone-number.eaU9p15A.js} +10 -10
  229. package/dist/chunks/{input-field-phone-number.CcCrGAZb.js.map → input-field-phone-number.eaU9p15A.js.map} +1 -1
  230. package/dist/chunks/{input-field.CBegTqdQ.js → input-field.CNdqlGw6.js} +9 -9
  231. package/dist/chunks/{input-field.CBegTqdQ.js.map → input-field.CNdqlGw6.js.map} +1 -1
  232. package/dist/chunks/{inspector.Dox76eqN.js → inspector.Bnf0g7QE.js} +16 -16
  233. package/dist/chunks/{inspector.Dox76eqN.js.map → inspector.Bnf0g7QE.js.map} +1 -1
  234. package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -1
  235. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -1
  236. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -1
  237. package/dist/chunks/isSameWeek.DjeUtLwI.js +14 -0
  238. package/dist/chunks/{isSameWeek.CUD7czUN.js.map → isSameWeek.DjeUtLwI.js.map} +1 -1
  239. package/dist/chunks/{it.Oaj6BklL.js → it.DIafuXtH.js} +2 -2
  240. package/dist/chunks/{it.Oaj6BklL.js.map → it.DIafuXtH.js.map} +1 -1
  241. package/dist/chunks/ja.Cm9tJMi2.js.map +1 -1
  242. package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -1
  243. package/dist/chunks/ko.Ceaof6EP.js.map +1 -1
  244. package/dist/chunks/{layout-row.CX8kV_w0.js → layout-row.Bz-mRqAq.js} +5 -5
  245. package/dist/chunks/layout-row.Bz-mRqAq.js.map +1 -0
  246. package/dist/chunks/{link.BLCQlEZU.js → link.DTCn2EtX.js} +11 -11
  247. package/dist/chunks/{link.BLCQlEZU.js.map → link.DTCn2EtX.js.map} +1 -1
  248. package/dist/chunks/{listbox-option-tag.BQZJF00q.js → listbox-option-tag.C3ihNg6_.js} +9 -9
  249. package/dist/chunks/{listbox-option-tag.BQZJF00q.js.map → listbox-option-tag.C3ihNg6_.js.map} +1 -1
  250. package/dist/chunks/{loading-indicator.Db794TT5.js → loading-indicator.BPol9I84.js} +3 -3
  251. package/dist/chunks/{loading-indicator.Db794TT5.js.map → loading-indicator.BPol9I84.js.map} +1 -1
  252. package/dist/chunks/match.CMBZxEs9.js.map +1 -1
  253. package/dist/chunks/{minus-small.DYIyF5XW.js → minus-small.CnYLTuSv.js} +5 -5
  254. package/dist/chunks/{minus-small.DYIyF5XW.js.map → minus-small.CnYLTuSv.js.map} +1 -1
  255. package/dist/chunks/{modal-fullscreen.BXjxVsAq.js → modal-fullscreen.B3AGUJgl.js} +100 -96
  256. package/dist/chunks/modal-fullscreen.B3AGUJgl.js.map +1 -0
  257. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CRovU08l.js → modal.vue_vue_type_script_setup_true_lang.BAwez0nB.js} +13 -13
  258. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CRovU08l.js.map → modal.vue_vue_type_script_setup_true_lang.BAwez0nB.js.map} +1 -1
  259. package/dist/chunks/nl.B6vCf2B9.js.map +1 -1
  260. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -1
  261. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -1
  262. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -1
  263. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -1
  264. package/dist/chunks/on-click-outside.BW4rkhzG.js +91 -0
  265. package/dist/chunks/on-click-outside.BW4rkhzG.js.map +1 -0
  266. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -1
  267. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -1
  268. package/dist/chunks/{pagination.BofKoYTB.js → pagination.lu9nx8j8.js} +10 -10
  269. package/dist/chunks/{pagination.BofKoYTB.js.map → pagination.lu9nx8j8.js.map} +1 -1
  270. package/dist/chunks/{payment-method.BGEBaa4w.js → payment-method.AeKHZlAO.js} +3 -3
  271. package/dist/chunks/{payment-method.BGEBaa4w.js.map → payment-method.AeKHZlAO.js.map} +1 -1
  272. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  273. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -1
  274. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -1
  275. package/dist/chunks/popover.types.C_Z2JeVK.js +6 -0
  276. package/dist/chunks/{popover.types.DgfeurkF.js.map → popover.types.C_Z2JeVK.js.map} +1 -1
  277. package/dist/chunks/popper-container.BefZxTzP.js +1432 -0
  278. package/dist/chunks/popper-container.BefZxTzP.js.map +1 -0
  279. package/dist/chunks/{promo-banner.BIRH5sVX.js → promo-banner.BLie64oS.js} +11 -11
  280. package/dist/chunks/{promo-banner.BIRH5sVX.js.map → promo-banner.BLie64oS.js.map} +1 -1
  281. package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -1
  282. package/dist/chunks/{radio-group.BqsQRDjs.js → radio-group.C6nQRQDB.js} +20 -20
  283. package/dist/chunks/{radio-group.BqsQRDjs.js.map → radio-group.C6nQRQDB.js.map} +1 -1
  284. package/dist/chunks/{radio-input.CBNE-AkM.js → radio-input.DektLjN4.js} +3 -3
  285. package/dist/chunks/{radio-input.CBNE-AkM.js.map → radio-input.DektLjN4.js.map} +1 -1
  286. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -1
  287. package/dist/chunks/referrals.aX8WZigH.js.map +1 -1
  288. package/dist/chunks/{refresh.BB4ouvz_.js → refresh.C31KClfx.js} +5 -5
  289. package/dist/chunks/{refresh.BB4ouvz_.js.map → refresh.C31KClfx.js.map} +1 -1
  290. package/dist/chunks/resize.Bqks3WUm.js.map +1 -1
  291. package/dist/chunks/{rich-text-editor.Bafyvjc3.js → rich-text-editor.C39NKgl0.js} +11 -15
  292. package/dist/chunks/rich-text-editor.C39NKgl0.js.map +1 -0
  293. package/dist/chunks/{search-bar.DrkPxPDP.js → search-bar.CbTrg2Sk.js} +10 -10
  294. package/dist/chunks/{search-bar.DrkPxPDP.js.map → search-bar.CbTrg2Sk.js.map} +1 -1
  295. package/dist/chunks/{search.PczW-onY.js → search.ClLmZAgC.js} +4 -4
  296. package/dist/chunks/{search.PczW-onY.js.map → search.ClLmZAgC.js.map} +1 -1
  297. package/dist/chunks/{secondary-nav.C0_VfFa9.js → secondary-nav.DTOZQewf.js} +25 -25
  298. package/dist/chunks/secondary-nav.DTOZQewf.js.map +1 -0
  299. package/dist/chunks/{segmented-control.CFlHfj3N.js → segmented-control.D9rHBysM.js} +9 -9
  300. package/dist/chunks/{segmented-control.CFlHfj3N.js.map → segmented-control.D9rHBysM.js.map} +1 -1
  301. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  302. package/dist/chunks/{selection-card-group.DNPlEqEq.js → selection-card-group.KEsG0D5V.js} +9 -9
  303. package/dist/chunks/{selection-card-group.DNPlEqEq.js.map → selection-card-group.KEsG0D5V.js.map} +1 -1
  304. package/dist/chunks/{show.CT4Augxb.js → show.BreRPkgL.js} +6 -6
  305. package/dist/chunks/{show.CT4Augxb.js.map → show.BreRPkgL.js.map} +1 -1
  306. package/dist/chunks/{sidepanel.RJihFo_R.js → sidepanel.DJCagqzl.js} +73 -69
  307. package/dist/chunks/sidepanel.DJCagqzl.js.map +1 -0
  308. package/dist/chunks/{startOfWeek.Dxw2MhGp.js → startOfWeek.D8Yh4c0G.js} +3 -3
  309. package/dist/chunks/{startOfWeek.Dxw2MhGp.js.map → startOfWeek.D8Yh4c0G.js.map} +1 -1
  310. package/dist/chunks/{status.types.ChOI6XGU.js → status.types.D3v3k-Q8.js} +6 -6
  311. package/dist/chunks/{status.types.ChOI6XGU.js.map → status.types.D3v3k-Q8.js.map} +1 -1
  312. package/dist/chunks/{step.DpgnDx29.js → step.BV7MsrRF.js} +9 -9
  313. package/dist/chunks/{step.DpgnDx29.js.map → step.BV7MsrRF.js.map} +1 -1
  314. package/dist/chunks/{structured-list-item.B-hdp7rW.js → structured-list-item.f1tmHSEN.js} +9 -9
  315. package/dist/chunks/{structured-list-item.B-hdp7rW.js.map → structured-list-item.f1tmHSEN.js.map} +1 -1
  316. package/dist/chunks/success.DhioLvPD.js.map +1 -1
  317. package/dist/chunks/success.nNwxJRBS.js.map +1 -1
  318. package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -1
  319. package/dist/chunks/{summary-grid.types.BVLRSBAF.js → summary-grid.types.COcV-sOB.js} +13 -13
  320. package/dist/chunks/{summary-grid.types.BVLRSBAF.js.map → summary-grid.types.COcV-sOB.js.map} +1 -1
  321. package/dist/chunks/sv.f8EfZjMZ.js.map +1 -1
  322. package/dist/chunks/{tab.JPngc9oS.js → tab.DRrnMCxe.js} +6 -6
  323. package/dist/chunks/{tab.JPngc9oS.js.map → tab.DRrnMCxe.js.map} +1 -1
  324. package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -1
  325. package/dist/chunks/{tag.DFJIvNLs.js → tag.Dr7MKe9q.js} +9 -9
  326. package/dist/chunks/{tag.DFJIvNLs.js.map → tag.Dr7MKe9q.js.map} +1 -1
  327. package/dist/chunks/{textarea.CEDkF8BB.js → textarea.CtgbUCjH.js} +7 -7
  328. package/dist/chunks/{textarea.CEDkF8BB.js.map → textarea.CtgbUCjH.js.map} +1 -1
  329. package/dist/chunks/{timeline-item.BxGaSGLf.js → timeline-item.D9nmCe6u.js} +41 -41
  330. package/dist/chunks/{timeline-item.BxGaSGLf.js.map → timeline-item.D9nmCe6u.js.map} +1 -1
  331. package/dist/chunks/{toast.DiIIrX7h.js → toast.Bbtq3Icj.js} +22 -22
  332. package/dist/chunks/{toast.DiIIrX7h.js.map → toast.Bbtq3Icj.js.map} +1 -1
  333. package/dist/chunks/{toggle.vl0ZwLhN.js → toggle.BupEBkIG.js} +6 -6
  334. package/dist/chunks/{toggle.vl0ZwLhN.js.map → toggle.BupEBkIG.js.map} +1 -1
  335. package/dist/chunks/{tooltip.Nn3o8_vO.js → tooltip.DYpJZ-99.js} +60 -60
  336. package/dist/chunks/tooltip.DYpJZ-99.js.map +1 -0
  337. package/dist/chunks/truncate.BfIl_-71.js.map +1 -1
  338. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js → tutorial.vue_vue_type_script_setup_true_lang.B5hWgNSd.js} +32 -32
  339. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js.map → tutorial.vue_vue_type_script_setup_true_lang.B5hWgNSd.js.map} +1 -1
  340. package/dist/chunks/{typography.6Oo5TOMP.js → typography.B3J6_tYk.js} +5 -5
  341. package/dist/chunks/{typography.6Oo5TOMP.js.map → typography.B3J6_tYk.js.map} +1 -1
  342. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -1
  343. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -1
  344. package/dist/chunks/{use-bento-toast-controller.V61h7XzI.js → use-bento-toast-controller.BFctDoMg.js} +2 -2
  345. package/dist/chunks/{use-bento-toast-controller.V61h7XzI.js.map → use-bento-toast-controller.BFctDoMg.js.map} +1 -1
  346. package/dist/chunks/{use-cached-selected-values.BZIa5TRx.js → use-cached-selected-values.BiSuG1eX.js} +28 -28
  347. package/dist/chunks/use-cached-selected-values.BiSuG1eX.js.map +1 -0
  348. package/dist/chunks/{use-country-items.JZCYNoW7.js → use-country-items.BTzByPdQ.js} +9 -9
  349. package/dist/chunks/{use-country-items.JZCYNoW7.js.map → use-country-items.BTzByPdQ.js.map} +1 -1
  350. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
  351. package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +1 -1
  352. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
  353. package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -1
  354. package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
  355. package/dist/chunks/utils.BzUwtTXc.js +21 -0
  356. package/dist/chunks/utils.BzUwtTXc.js.map +1 -0
  357. package/dist/chunks/{warning-filled.BMGD0G-_.js → warning-filled.BzyK_mMj.js} +5 -5
  358. package/dist/chunks/{warning-filled.BMGD0G-_.js.map → warning-filled.BzyK_mMj.js.map} +1 -1
  359. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -1
  360. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -1
  361. package/dist/chunks/{zh-CN.BzH0fIXr.js → zh-CN.Bw_6j9Cd.js} +2 -2
  362. package/dist/chunks/{zh-CN.BzH0fIXr.js.map → zh-CN.Bw_6j9Cd.js.map} +1 -1
  363. package/dist/click-outside.js +1 -1
  364. package/dist/code-snippet.js +1 -1
  365. package/dist/country.js +2 -2
  366. package/dist/currency.js +1 -1
  367. package/dist/dashboard-template.js +1 -1
  368. package/dist/dashed-underline.js +1 -1
  369. package/dist/data-grid-template.js +1 -1
  370. package/dist/data-grid.js +6 -5
  371. package/dist/date-picker.js +2 -2
  372. package/dist/date-range-picker.js +2 -2
  373. package/dist/date.js +1 -1
  374. package/dist/divider.js +1 -1
  375. package/dist/draggable-handle.js +179 -0
  376. package/dist/draggable-handle.js.map +1 -0
  377. package/dist/dropdown.js +4 -4
  378. package/dist/empty-state.js +1 -1
  379. package/dist/file-uploader.js +1 -1
  380. package/dist/filter-bar.js +1 -1
  381. package/dist/focus-trap.js +1 -1
  382. package/dist/form-layout.js +1 -1
  383. package/dist/header-with-views.js +1 -1
  384. package/dist/header.js +1 -1
  385. package/dist/image.js +1 -1
  386. package/dist/index.js +341 -335
  387. package/dist/index.js.map +1 -1
  388. package/dist/info-icon.js +1 -1
  389. package/dist/input-field-password.js +1 -1
  390. package/dist/input-field-phone-number.js +1 -1
  391. package/dist/input-field.js +1 -1
  392. package/dist/inspector.js +1 -1
  393. package/dist/internal.js +42 -42
  394. package/dist/layout.js +1 -1
  395. package/dist/link.js +1 -1
  396. package/dist/loading-indicator.js +1 -1
  397. package/dist/menu.js +1 -1
  398. package/dist/modal-fullscreen.js +1 -1
  399. package/dist/modal.js +2 -2
  400. package/dist/pagination.js +1 -1
  401. package/dist/payment-method.js +1 -1
  402. package/dist/popover.js +2 -2
  403. package/dist/popper-container.js +1 -1
  404. package/dist/promo-banner.js +1 -1
  405. package/dist/radio-group.js +2 -2
  406. package/dist/rich-text-editor.js +1 -1
  407. package/dist/search-bar.js +2 -2
  408. package/dist/secondary-nav.js +1 -1
  409. package/dist/segmented-control.js +1 -1
  410. package/dist/selection-card.js +1 -1
  411. package/dist/sidepanel.js +1 -1
  412. package/dist/status.js +1 -1
  413. package/dist/stepper.js +1 -1
  414. package/dist/structured-list.js +1 -1
  415. package/dist/styles/bento-dark.css +5 -0
  416. package/dist/styles/bento-light.css +5 -0
  417. package/dist/styles/bento.css +5 -0
  418. package/dist/styles/legacy.css +5 -0
  419. package/dist/styles/styleguide.css +5 -0
  420. package/dist/summary-grid.js +1 -1
  421. package/dist/tabs.js +1 -1
  422. package/dist/tag.js +1 -1
  423. package/dist/textarea.js +1 -1
  424. package/dist/timeline.js +1 -1
  425. package/dist/toast.js +1 -1
  426. package/dist/toggle.js +1 -1
  427. package/dist/tutorial.js +1 -1
  428. package/dist/typography.js +1 -1
  429. package/dist/use-form-v4.js +756 -7787
  430. package/dist/use-form-v4.js.map +1 -1
  431. package/dist/web-types.json +1 -1
  432. package/package.json +6 -7
  433. package/dist/assets/field-label.css +0 -1
  434. package/dist/chunks/action-bar.CriH15oF.js +0 -204
  435. package/dist/chunks/action-bar.CriH15oF.js.map +0 -1
  436. package/dist/chunks/ai-button.CDRPf7IY.js +0 -93
  437. package/dist/chunks/ai-button.CDRPf7IY.js.map +0 -1
  438. package/dist/chunks/codemirror.Cy7iSLbd.js.map +0 -1
  439. package/dist/chunks/constructNow.DuaJst0D.js +0 -8
  440. package/dist/chunks/data-grid.CqtJp9rE.js.map +0 -1
  441. package/dist/chunks/date-input.BbZqj10S.js +0 -15
  442. package/dist/chunks/date-input.BbZqj10S.js.map +0 -1
  443. package/dist/chunks/date-picker.DGIwFh6T.js.map +0 -1
  444. package/dist/chunks/date-range-picker.Df9XyFMH.js +0 -1896
  445. package/dist/chunks/date-range-picker.Df9XyFMH.js.map +0 -1
  446. package/dist/chunks/dialog-page.DaZSlMzY.js +0 -181
  447. package/dist/chunks/dialog-page.DaZSlMzY.js.map +0 -1
  448. package/dist/chunks/dropdown-default-textbox.DFtFMu5G.js.map +0 -1
  449. package/dist/chunks/dropdown.Dct8gr_q.js +0 -837
  450. package/dist/chunks/dropdown.Dct8gr_q.js.map +0 -1
  451. package/dist/chunks/field-label.D7vU2Icm.js.map +0 -1
  452. package/dist/chunks/file-uploader.BmBKLzIx.js.map +0 -1
  453. package/dist/chunks/filter-bar.DHRuvmx9.js +0 -3363
  454. package/dist/chunks/filter-bar.DHRuvmx9.js.map +0 -1
  455. package/dist/chunks/fixed-scroller.e56yJp7Q.js +0 -155
  456. package/dist/chunks/focus-trap.BaHvK7aT.js.map +0 -1
  457. package/dist/chunks/header-with-views.XzJCg2Ln.js.map +0 -1
  458. package/dist/chunks/index.E60QniEu.js +0 -592
  459. package/dist/chunks/isSameWeek.CUD7czUN.js +0 -14
  460. package/dist/chunks/layout-row.CX8kV_w0.js.map +0 -1
  461. package/dist/chunks/modal-fullscreen.BXjxVsAq.js.map +0 -1
  462. package/dist/chunks/on-click-outside.D9aY9g8G.js +0 -101
  463. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +0 -1
  464. package/dist/chunks/popover.types.DgfeurkF.js +0 -6
  465. package/dist/chunks/popper-container.I9gzp1NR.js +0 -1413
  466. package/dist/chunks/popper-container.I9gzp1NR.js.map +0 -1
  467. package/dist/chunks/rich-text-editor.Bafyvjc3.js.map +0 -1
  468. package/dist/chunks/secondary-nav.C0_VfFa9.js.map +0 -1
  469. package/dist/chunks/sidepanel.RJihFo_R.js.map +0 -1
  470. package/dist/chunks/tooltip.Nn3o8_vO.js.map +0 -1
  471. package/dist/chunks/use-cached-selected-values.BZIa5TRx.js.map +0 -1
@@ -1,1413 +0,0 @@
1
- import { computed as R, unref as V, ref as U, shallowRef as ee, watch as it, getCurrentScope as ne, onScopeDispose as oe, shallowReadonly as tt, defineComponent as ie, toRefs as re, createBlock as le, openBlock as Et, mergeProps as Dt, withCtx as se, renderSlot as ce, createElementBlock as ae, createCommentVNode as fe } from "vue";
2
- import { B as ue } from "./focus-trap.BaHvK7aT.js";
3
- import { _ as de } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
- import "../assets/popper-container.css";
5
- const Wt = ["top", "right", "bottom", "left"], Lt = ["start", "end"], Ct = /* @__PURE__ */ Wt.reduce((t, e) => t.concat(e, e + "-" + Lt[0], e + "-" + Lt[1]), []), nt = Math.min, X = Math.max, at = Math.round, ct = Math.floor, B = (t) => ({
6
- x: t,
7
- y: t
8
- }), me = {
9
- left: "right",
10
- right: "left",
11
- bottom: "top",
12
- top: "bottom"
13
- }, pe = {
14
- start: "end",
15
- end: "start"
16
- };
17
- function wt(t, e, n) {
18
- return X(t, nt(e, n));
19
- }
20
- function Q(t, e) {
21
- return typeof t == "function" ? t(e) : t;
22
- }
23
- function I(t) {
24
- return t.split("-")[0];
25
- }
26
- function _(t) {
27
- return t.split("-")[1];
28
- }
29
- function Vt(t) {
30
- return t === "x" ? "y" : "x";
31
- }
32
- function xt(t) {
33
- return t === "y" ? "height" : "width";
34
- }
35
- function K(t) {
36
- return ["top", "bottom"].includes(I(t)) ? "y" : "x";
37
- }
38
- function bt(t) {
39
- return Vt(K(t));
40
- }
41
- function It(t, e, n) {
42
- n === void 0 && (n = !1);
43
- const o = _(t), i = bt(t), l = xt(i);
44
- let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
45
- return e.reference[l] > e.floating[l] && (r = ut(r)), [r, ut(r)];
46
- }
47
- function ge(t) {
48
- const e = ut(t);
49
- return [ft(t), e, ft(e)];
50
- }
51
- function ft(t) {
52
- return t.replace(/start|end/g, (e) => pe[e]);
53
- }
54
- function he(t, e, n) {
55
- const o = ["left", "right"], i = ["right", "left"], l = ["top", "bottom"], r = ["bottom", "top"];
56
- switch (t) {
57
- case "top":
58
- case "bottom":
59
- return n ? e ? i : o : e ? o : i;
60
- case "left":
61
- case "right":
62
- return e ? l : r;
63
- default:
64
- return [];
65
- }
66
- }
67
- function we(t, e, n, o) {
68
- const i = _(t);
69
- let l = he(I(t), n === "start", o);
70
- return i && (l = l.map((r) => r + "-" + i), e && (l = l.concat(l.map(ft)))), l;
71
- }
72
- function ut(t) {
73
- return t.replace(/left|right|bottom|top/g, (e) => me[e]);
74
- }
75
- function ve(t) {
76
- return {
77
- top: 0,
78
- right: 0,
79
- bottom: 0,
80
- left: 0,
81
- ...t
82
- };
83
- }
84
- function jt(t) {
85
- return typeof t != "number" ? ve(t) : {
86
- top: t,
87
- right: t,
88
- bottom: t,
89
- left: t
90
- };
91
- }
92
- function dt(t) {
93
- const {
94
- x: e,
95
- y: n,
96
- width: o,
97
- height: i
98
- } = t;
99
- return {
100
- width: o,
101
- height: i,
102
- top: n,
103
- left: e,
104
- right: e + o,
105
- bottom: n + i,
106
- x: e,
107
- y: n
108
- };
109
- }
110
- function Pt(t, e, n) {
111
- let {
112
- reference: o,
113
- floating: i
114
- } = t;
115
- const l = K(e), r = bt(e), s = xt(r), a = I(e), c = l === "y", d = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, p = o[s] / 2 - i[s] / 2;
116
- let f;
117
- switch (a) {
118
- case "top":
119
- f = {
120
- x: d,
121
- y: o.y - i.height
122
- };
123
- break;
124
- case "bottom":
125
- f = {
126
- x: d,
127
- y: o.y + o.height
128
- };
129
- break;
130
- case "right":
131
- f = {
132
- x: o.x + o.width,
133
- y: u
134
- };
135
- break;
136
- case "left":
137
- f = {
138
- x: o.x - i.width,
139
- y: u
140
- };
141
- break;
142
- default:
143
- f = {
144
- x: o.x,
145
- y: o.y
146
- };
147
- }
148
- switch (_(e)) {
149
- case "start":
150
- f[r] -= p * (n && c ? -1 : 1);
151
- break;
152
- case "end":
153
- f[r] += p * (n && c ? -1 : 1);
154
- break;
155
- }
156
- return f;
157
- }
158
- const ye = async (t, e, n) => {
159
- const {
160
- placement: o = "bottom",
161
- strategy: i = "absolute",
162
- middleware: l = [],
163
- platform: r
164
- } = n, s = l.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(e));
165
- let c = await r.getElementRects({
166
- reference: t,
167
- floating: e,
168
- strategy: i
169
- }), {
170
- x: d,
171
- y: u
172
- } = Pt(c, o, a), p = o, f = {}, m = 0;
173
- for (let g = 0; g < s.length; g++) {
174
- const {
175
- name: v,
176
- fn: h
177
- } = s[g], {
178
- x: w,
179
- y: x,
180
- data: O,
181
- reset: y
182
- } = await h({
183
- x: d,
184
- y: u,
185
- initialPlacement: o,
186
- placement: p,
187
- strategy: i,
188
- middlewareData: f,
189
- rects: c,
190
- platform: r,
191
- elements: {
192
- reference: t,
193
- floating: e
194
- }
195
- });
196
- d = w ?? d, u = x ?? u, f = {
197
- ...f,
198
- [v]: {
199
- ...f[v],
200
- ...O
201
- }
202
- }, y && m <= 50 && (m++, typeof y == "object" && (y.placement && (p = y.placement), y.rects && (c = y.rects === !0 ? await r.getElementRects({
203
- reference: t,
204
- floating: e,
205
- strategy: i
206
- }) : y.rects), {
207
- x: d,
208
- y: u
209
- } = Pt(c, p, a)), g = -1);
210
- }
211
- return {
212
- x: d,
213
- y: u,
214
- placement: p,
215
- strategy: i,
216
- middlewareData: f
217
- };
218
- };
219
- async function rt(t, e) {
220
- var n;
221
- e === void 0 && (e = {});
222
- const {
223
- x: o,
224
- y: i,
225
- platform: l,
226
- rects: r,
227
- elements: s,
228
- strategy: a
229
- } = t, {
230
- boundary: c = "clippingAncestors",
231
- rootBoundary: d = "viewport",
232
- elementContext: u = "floating",
233
- altBoundary: p = !1,
234
- padding: f = 0
235
- } = Q(e, t), m = jt(f), v = s[p ? u === "floating" ? "reference" : "floating" : u], h = dt(await l.getClippingRect({
236
- element: (n = await (l.isElement == null ? void 0 : l.isElement(v))) == null || n ? v : v.contextElement || await (l.getDocumentElement == null ? void 0 : l.getDocumentElement(s.floating)),
237
- boundary: c,
238
- rootBoundary: d,
239
- strategy: a
240
- })), w = u === "floating" ? {
241
- x: o,
242
- y: i,
243
- width: r.floating.width,
244
- height: r.floating.height
245
- } : r.reference, x = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(s.floating)), O = await (l.isElement == null ? void 0 : l.isElement(x)) ? await (l.getScale == null ? void 0 : l.getScale(x)) || {
246
- x: 1,
247
- y: 1
248
- } : {
249
- x: 1,
250
- y: 1
251
- }, y = dt(l.convertOffsetParentRelativeRectToViewportRelativeRect ? await l.convertOffsetParentRelativeRectToViewportRelativeRect({
252
- elements: s,
253
- rect: w,
254
- offsetParent: x,
255
- strategy: a
256
- }) : w);
257
- return {
258
- top: (h.top - y.top + m.top) / O.y,
259
- bottom: (y.bottom - h.bottom + m.bottom) / O.y,
260
- left: (h.left - y.left + m.left) / O.x,
261
- right: (y.right - h.right + m.right) / O.x
262
- };
263
- }
264
- const xe = (t) => ({
265
- name: "arrow",
266
- options: t,
267
- async fn(e) {
268
- const {
269
- x: n,
270
- y: o,
271
- placement: i,
272
- rects: l,
273
- platform: r,
274
- elements: s,
275
- middlewareData: a
276
- } = e, {
277
- element: c,
278
- padding: d = 0
279
- } = Q(t, e) || {};
280
- if (c == null)
281
- return {};
282
- const u = jt(d), p = {
283
- x: n,
284
- y: o
285
- }, f = bt(i), m = xt(f), g = await r.getDimensions(c), v = f === "y", h = v ? "top" : "left", w = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", O = l.reference[m] + l.reference[f] - p[f] - l.floating[m], y = p[f] - l.reference[f], T = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c));
286
- let b = T ? T[x] : 0;
287
- (!b || !await (r.isElement == null ? void 0 : r.isElement(T))) && (b = s.floating[x] || l.floating[m]);
288
- const H = O / 2 - y / 2, S = b / 2 - g[m] / 2 - 1, A = nt(u[h], S), D = nt(u[w], S), N = A, q = b - g[m] - D, F = b / 2 - g[m] / 2 + H, L = wt(N, F, q), G = !a.arrow && _(i) != null && F !== L && l.reference[m] / 2 - (F < N ? A : D) - g[m] / 2 < 0, W = G ? F < N ? F - N : F - q : 0;
289
- return {
290
- [f]: p[f] + W,
291
- data: {
292
- [f]: L,
293
- centerOffset: F - L - W,
294
- ...G && {
295
- alignmentOffset: W
296
- }
297
- },
298
- reset: G
299
- };
300
- }
301
- });
302
- function be(t, e, n) {
303
- return (t ? [...n.filter((i) => _(i) === t), ...n.filter((i) => _(i) !== t)] : n.filter((i) => I(i) === i)).filter((i) => t ? _(i) === t || (e ? ft(i) !== i : !1) : !0);
304
- }
305
- const Oe = function(t) {
306
- return t === void 0 && (t = {}), {
307
- name: "autoPlacement",
308
- options: t,
309
- async fn(e) {
310
- var n, o, i;
311
- const {
312
- rects: l,
313
- middlewareData: r,
314
- placement: s,
315
- platform: a,
316
- elements: c
317
- } = e, {
318
- crossAxis: d = !1,
319
- alignment: u,
320
- allowedPlacements: p = Ct,
321
- autoAlignment: f = !0,
322
- ...m
323
- } = Q(t, e), g = u !== void 0 || p === Ct ? be(u || null, f, p) : p, v = await rt(e, m), h = ((n = r.autoPlacement) == null ? void 0 : n.index) || 0, w = g[h];
324
- if (w == null)
325
- return {};
326
- const x = It(w, l, await (a.isRTL == null ? void 0 : a.isRTL(c.floating)));
327
- if (s !== w)
328
- return {
329
- reset: {
330
- placement: g[0]
331
- }
332
- };
333
- const O = [v[I(w)], v[x[0]], v[x[1]]], y = [...((o = r.autoPlacement) == null ? void 0 : o.overflows) || [], {
334
- placement: w,
335
- overflows: O
336
- }], T = g[h + 1];
337
- if (T)
338
- return {
339
- data: {
340
- index: h + 1,
341
- overflows: y
342
- },
343
- reset: {
344
- placement: T
345
- }
346
- };
347
- const b = y.map((A) => {
348
- const D = _(A.placement);
349
- return [A.placement, D && d ? (
350
- // Check along the mainAxis and main crossAxis side.
351
- A.overflows.slice(0, 2).reduce((N, q) => N + q, 0)
352
- ) : (
353
- // Check only the mainAxis.
354
- A.overflows[0]
355
- ), A.overflows];
356
- }).sort((A, D) => A[1] - D[1]), S = ((i = b.filter((A) => A[2].slice(
357
- 0,
358
- // Aligned placements should not check their opposite crossAxis
359
- // side.
360
- _(A[0]) ? 2 : 3
361
- ).every((D) => D <= 0))[0]) == null ? void 0 : i[0]) || b[0][0];
362
- return S !== s ? {
363
- data: {
364
- index: h + 1,
365
- overflows: y
366
- },
367
- reset: {
368
- placement: S
369
- }
370
- } : {};
371
- }
372
- };
373
- }, Ae = function(t) {
374
- return t === void 0 && (t = {}), {
375
- name: "flip",
376
- options: t,
377
- async fn(e) {
378
- var n, o;
379
- const {
380
- placement: i,
381
- middlewareData: l,
382
- rects: r,
383
- initialPlacement: s,
384
- platform: a,
385
- elements: c
386
- } = e, {
387
- mainAxis: d = !0,
388
- crossAxis: u = !0,
389
- fallbackPlacements: p,
390
- fallbackStrategy: f = "bestFit",
391
- fallbackAxisSideDirection: m = "none",
392
- flipAlignment: g = !0,
393
- ...v
394
- } = Q(t, e);
395
- if ((n = l.arrow) != null && n.alignmentOffset)
396
- return {};
397
- const h = I(i), w = K(s), x = I(s) === s, O = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), y = p || (x || !g ? [ut(s)] : ge(s)), T = m !== "none";
398
- !p && T && y.push(...we(s, g, m, O));
399
- const b = [s, ...y], H = await rt(e, v), S = [];
400
- let A = ((o = l.flip) == null ? void 0 : o.overflows) || [];
401
- if (d && S.push(H[h]), u) {
402
- const L = It(i, r, O);
403
- S.push(H[L[0]], H[L[1]]);
404
- }
405
- if (A = [...A, {
406
- placement: i,
407
- overflows: S
408
- }], !S.every((L) => L <= 0)) {
409
- var D, N;
410
- const L = (((D = l.flip) == null ? void 0 : D.index) || 0) + 1, G = b[L];
411
- if (G) {
412
- var q;
413
- const j = u === "alignment" ? w !== K(G) : !1, k = ((q = A[0]) == null ? void 0 : q.overflows[0]) > 0;
414
- if (!j || k)
415
- return {
416
- data: {
417
- index: L,
418
- overflows: A
419
- },
420
- reset: {
421
- placement: G
422
- }
423
- };
424
- }
425
- let W = (N = A.filter((j) => j.overflows[0] <= 0).sort((j, k) => j.overflows[1] - k.overflows[1])[0]) == null ? void 0 : N.placement;
426
- if (!W)
427
- switch (f) {
428
- case "bestFit": {
429
- var F;
430
- const j = (F = A.filter((k) => {
431
- if (T) {
432
- const z = K(k.placement);
433
- return z === w || // Create a bias to the `y` side axis due to horizontal
434
- // reading directions favoring greater width.
435
- z === "y";
436
- }
437
- return !0;
438
- }).map((k) => [k.placement, k.overflows.filter((z) => z > 0).reduce((z, te) => z + te, 0)]).sort((k, z) => k[1] - z[1])[0]) == null ? void 0 : F[0];
439
- j && (W = j);
440
- break;
441
- }
442
- case "initialPlacement":
443
- W = s;
444
- break;
445
- }
446
- if (i !== W)
447
- return {
448
- reset: {
449
- placement: W
450
- }
451
- };
452
- }
453
- return {};
454
- }
455
- };
456
- };
457
- function Ft(t, e) {
458
- return {
459
- top: t.top - e.height,
460
- right: t.right - e.width,
461
- bottom: t.bottom - e.height,
462
- left: t.left - e.width
463
- };
464
- }
465
- function kt(t) {
466
- return Wt.some((e) => t[e] >= 0);
467
- }
468
- const Te = function(t) {
469
- return t === void 0 && (t = {}), {
470
- name: "hide",
471
- options: t,
472
- async fn(e) {
473
- const {
474
- rects: n
475
- } = e, {
476
- strategy: o = "referenceHidden",
477
- ...i
478
- } = Q(t, e);
479
- switch (o) {
480
- case "referenceHidden": {
481
- const l = await rt(e, {
482
- ...i,
483
- elementContext: "reference"
484
- }), r = Ft(l, n.reference);
485
- return {
486
- data: {
487
- referenceHiddenOffsets: r,
488
- referenceHidden: kt(r)
489
- }
490
- };
491
- }
492
- case "escaped": {
493
- const l = await rt(e, {
494
- ...i,
495
- altBoundary: !0
496
- }), r = Ft(l, n.floating);
497
- return {
498
- data: {
499
- escapedOffsets: r,
500
- escaped: kt(r)
501
- }
502
- };
503
- }
504
- default:
505
- return {};
506
- }
507
- }
508
- };
509
- };
510
- async function Re(t, e) {
511
- const {
512
- placement: n,
513
- platform: o,
514
- elements: i
515
- } = t, l = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = I(n), s = _(n), a = K(n) === "y", c = ["left", "top"].includes(r) ? -1 : 1, d = l && a ? -1 : 1, u = Q(e, t);
516
- let {
517
- mainAxis: p,
518
- crossAxis: f,
519
- alignmentAxis: m
520
- } = typeof u == "number" ? {
521
- mainAxis: u,
522
- crossAxis: 0,
523
- alignmentAxis: null
524
- } : {
525
- mainAxis: u.mainAxis || 0,
526
- crossAxis: u.crossAxis || 0,
527
- alignmentAxis: u.alignmentAxis
528
- };
529
- return s && typeof m == "number" && (f = s === "end" ? m * -1 : m), a ? {
530
- x: f * d,
531
- y: p * c
532
- } : {
533
- x: p * c,
534
- y: f * d
535
- };
536
- }
537
- const Se = function(t) {
538
- return t === void 0 && (t = 0), {
539
- name: "offset",
540
- options: t,
541
- async fn(e) {
542
- var n, o;
543
- const {
544
- x: i,
545
- y: l,
546
- placement: r,
547
- middlewareData: s
548
- } = e, a = await Re(e, t);
549
- return r === ((n = s.offset) == null ? void 0 : n.placement) && (o = s.arrow) != null && o.alignmentOffset ? {} : {
550
- x: i + a.x,
551
- y: l + a.y,
552
- data: {
553
- ...a,
554
- placement: r
555
- }
556
- };
557
- }
558
- };
559
- }, Ee = function(t) {
560
- return t === void 0 && (t = {}), {
561
- name: "shift",
562
- options: t,
563
- async fn(e) {
564
- const {
565
- x: n,
566
- y: o,
567
- placement: i
568
- } = e, {
569
- mainAxis: l = !0,
570
- crossAxis: r = !1,
571
- limiter: s = {
572
- fn: (v) => {
573
- let {
574
- x: h,
575
- y: w
576
- } = v;
577
- return {
578
- x: h,
579
- y: w
580
- };
581
- }
582
- },
583
- ...a
584
- } = Q(t, e), c = {
585
- x: n,
586
- y: o
587
- }, d = await rt(e, a), u = K(I(i)), p = Vt(u);
588
- let f = c[p], m = c[u];
589
- if (l) {
590
- const v = p === "y" ? "top" : "left", h = p === "y" ? "bottom" : "right", w = f + d[v], x = f - d[h];
591
- f = wt(w, f, x);
592
- }
593
- if (r) {
594
- const v = u === "y" ? "top" : "left", h = u === "y" ? "bottom" : "right", w = m + d[v], x = m - d[h];
595
- m = wt(w, m, x);
596
- }
597
- const g = s.fn({
598
- ...e,
599
- [p]: f,
600
- [u]: m
601
- });
602
- return {
603
- ...g,
604
- data: {
605
- x: g.x - n,
606
- y: g.y - o,
607
- enabled: {
608
- [p]: l,
609
- [u]: r
610
- }
611
- }
612
- };
613
- }
614
- };
615
- };
616
- function mt() {
617
- return typeof window < "u";
618
- }
619
- function Z(t) {
620
- return Ot(t) ? (t.nodeName || "").toLowerCase() : "#document";
621
- }
622
- function E(t) {
623
- var e;
624
- return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
625
- }
626
- function $(t) {
627
- var e;
628
- return (e = (Ot(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
629
- }
630
- function Ot(t) {
631
- return mt() ? t instanceof Node || t instanceof E(t).Node : !1;
632
- }
633
- function C(t) {
634
- return mt() ? t instanceof Element || t instanceof E(t).Element : !1;
635
- }
636
- function M(t) {
637
- return mt() ? t instanceof HTMLElement || t instanceof E(t).HTMLElement : !1;
638
- }
639
- function Bt(t) {
640
- return !mt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof E(t).ShadowRoot;
641
- }
642
- function st(t) {
643
- const {
644
- overflow: e,
645
- overflowX: n,
646
- overflowY: o,
647
- display: i
648
- } = P(t);
649
- return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(i);
650
- }
651
- function De(t) {
652
- return ["table", "td", "th"].includes(Z(t));
653
- }
654
- function pt(t) {
655
- return [":popover-open", ":modal"].some((e) => {
656
- try {
657
- return t.matches(e);
658
- } catch {
659
- return !1;
660
- }
661
- });
662
- }
663
- function At(t) {
664
- const e = Tt(), n = C(t) ? P(t) : t;
665
- return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
666
- }
667
- function Le(t) {
668
- let e = Y(t);
669
- for (; M(e) && !ot(e); ) {
670
- if (At(e))
671
- return e;
672
- if (pt(e))
673
- return null;
674
- e = Y(e);
675
- }
676
- return null;
677
- }
678
- function Tt() {
679
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
680
- }
681
- function ot(t) {
682
- return ["html", "body", "#document"].includes(Z(t));
683
- }
684
- function P(t) {
685
- return E(t).getComputedStyle(t);
686
- }
687
- function gt(t) {
688
- return C(t) ? {
689
- scrollLeft: t.scrollLeft,
690
- scrollTop: t.scrollTop
691
- } : {
692
- scrollLeft: t.scrollX,
693
- scrollTop: t.scrollY
694
- };
695
- }
696
- function Y(t) {
697
- if (Z(t) === "html")
698
- return t;
699
- const e = (
700
- // Step into the shadow DOM of the parent of a slotted node.
701
- t.assignedSlot || // DOM Element detected.
702
- t.parentNode || // ShadowRoot detected.
703
- Bt(t) && t.host || // Fallback.
704
- $(t)
705
- );
706
- return Bt(e) ? e.host : e;
707
- }
708
- function zt(t) {
709
- const e = Y(t);
710
- return ot(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : M(e) && st(e) ? e : zt(e);
711
- }
712
- function lt(t, e, n) {
713
- var o;
714
- e === void 0 && (e = []), n === void 0 && (n = !0);
715
- const i = zt(t), l = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = E(i);
716
- if (l) {
717
- const s = vt(r);
718
- return e.concat(r, r.visualViewport || [], st(i) ? i : [], s && n ? lt(s) : []);
719
- }
720
- return e.concat(i, lt(i, [], n));
721
- }
722
- function vt(t) {
723
- return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
724
- }
725
- function Ut(t) {
726
- const e = P(t);
727
- let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
728
- const i = M(t), l = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, s = at(n) !== l || at(o) !== r;
729
- return s && (n = l, o = r), {
730
- width: n,
731
- height: o,
732
- $: s
733
- };
734
- }
735
- function Rt(t) {
736
- return C(t) ? t : t.contextElement;
737
- }
738
- function et(t) {
739
- const e = Rt(t);
740
- if (!M(e))
741
- return B(1);
742
- const n = e.getBoundingClientRect(), {
743
- width: o,
744
- height: i,
745
- $: l
746
- } = Ut(e);
747
- let r = (l ? at(n.width) : n.width) / o, s = (l ? at(n.height) : n.height) / i;
748
- return (!r || !Number.isFinite(r)) && (r = 1), (!s || !Number.isFinite(s)) && (s = 1), {
749
- x: r,
750
- y: s
751
- };
752
- }
753
- const Ce = /* @__PURE__ */ B(0);
754
- function Yt(t) {
755
- const e = E(t);
756
- return !Tt() || !e.visualViewport ? Ce : {
757
- x: e.visualViewport.offsetLeft,
758
- y: e.visualViewport.offsetTop
759
- };
760
- }
761
- function Pe(t, e, n) {
762
- return e === void 0 && (e = !1), !n || e && n !== E(t) ? !1 : e;
763
- }
764
- function J(t, e, n, o) {
765
- e === void 0 && (e = !1), n === void 0 && (n = !1);
766
- const i = t.getBoundingClientRect(), l = Rt(t);
767
- let r = B(1);
768
- e && (o ? C(o) && (r = et(o)) : r = et(t));
769
- const s = Pe(l, n, o) ? Yt(l) : B(0);
770
- let a = (i.left + s.x) / r.x, c = (i.top + s.y) / r.y, d = i.width / r.x, u = i.height / r.y;
771
- if (l) {
772
- const p = E(l), f = o && C(o) ? E(o) : o;
773
- let m = p, g = vt(m);
774
- for (; g && o && f !== m; ) {
775
- const v = et(g), h = g.getBoundingClientRect(), w = P(g), x = h.left + (g.clientLeft + parseFloat(w.paddingLeft)) * v.x, O = h.top + (g.clientTop + parseFloat(w.paddingTop)) * v.y;
776
- a *= v.x, c *= v.y, d *= v.x, u *= v.y, a += x, c += O, m = E(g), g = vt(m);
777
- }
778
- }
779
- return dt({
780
- width: d,
781
- height: u,
782
- x: a,
783
- y: c
784
- });
785
- }
786
- function St(t, e) {
787
- const n = gt(t).scrollLeft;
788
- return e ? e.left + n : J($(t)).left + n;
789
- }
790
- function qt(t, e, n) {
791
- n === void 0 && (n = !1);
792
- const o = t.getBoundingClientRect(), i = o.left + e.scrollLeft - (n ? 0 : (
793
- // RTL <body> scrollbar.
794
- St(t, o)
795
- )), l = o.top + e.scrollTop;
796
- return {
797
- x: i,
798
- y: l
799
- };
800
- }
801
- function Fe(t) {
802
- let {
803
- elements: e,
804
- rect: n,
805
- offsetParent: o,
806
- strategy: i
807
- } = t;
808
- const l = i === "fixed", r = $(o), s = e ? pt(e.floating) : !1;
809
- if (o === r || s && l)
810
- return n;
811
- let a = {
812
- scrollLeft: 0,
813
- scrollTop: 0
814
- }, c = B(1);
815
- const d = B(0), u = M(o);
816
- if ((u || !u && !l) && ((Z(o) !== "body" || st(r)) && (a = gt(o)), M(o))) {
817
- const f = J(o);
818
- c = et(o), d.x = f.x + o.clientLeft, d.y = f.y + o.clientTop;
819
- }
820
- const p = r && !u && !l ? qt(r, a, !0) : B(0);
821
- return {
822
- width: n.width * c.x,
823
- height: n.height * c.y,
824
- x: n.x * c.x - a.scrollLeft * c.x + d.x + p.x,
825
- y: n.y * c.y - a.scrollTop * c.y + d.y + p.y
826
- };
827
- }
828
- function ke(t) {
829
- return Array.from(t.getClientRects());
830
- }
831
- function Be(t) {
832
- const e = $(t), n = gt(t), o = t.ownerDocument.body, i = X(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), l = X(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
833
- let r = -n.scrollLeft + St(t);
834
- const s = -n.scrollTop;
835
- return P(o).direction === "rtl" && (r += X(e.clientWidth, o.clientWidth) - i), {
836
- width: i,
837
- height: l,
838
- x: r,
839
- y: s
840
- };
841
- }
842
- function _e(t, e) {
843
- const n = E(t), o = $(t), i = n.visualViewport;
844
- let l = o.clientWidth, r = o.clientHeight, s = 0, a = 0;
845
- if (i) {
846
- l = i.width, r = i.height;
847
- const c = Tt();
848
- (!c || c && e === "fixed") && (s = i.offsetLeft, a = i.offsetTop);
849
- }
850
- return {
851
- width: l,
852
- height: r,
853
- x: s,
854
- y: a
855
- };
856
- }
857
- function Me(t, e) {
858
- const n = J(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, l = M(t) ? et(t) : B(1), r = t.clientWidth * l.x, s = t.clientHeight * l.y, a = i * l.x, c = o * l.y;
859
- return {
860
- width: r,
861
- height: s,
862
- x: a,
863
- y: c
864
- };
865
- }
866
- function _t(t, e, n) {
867
- let o;
868
- if (e === "viewport")
869
- o = _e(t, n);
870
- else if (e === "document")
871
- o = Be($(t));
872
- else if (C(e))
873
- o = Me(e, n);
874
- else {
875
- const i = Yt(t);
876
- o = {
877
- x: e.x - i.x,
878
- y: e.y - i.y,
879
- width: e.width,
880
- height: e.height
881
- };
882
- }
883
- return dt(o);
884
- }
885
- function Gt(t, e) {
886
- const n = Y(t);
887
- return n === e || !C(n) || ot(n) ? !1 : P(n).position === "fixed" || Gt(n, e);
888
- }
889
- function $e(t, e) {
890
- const n = e.get(t);
891
- if (n)
892
- return n;
893
- let o = lt(t, [], !1).filter((s) => C(s) && Z(s) !== "body"), i = null;
894
- const l = P(t).position === "fixed";
895
- let r = l ? Y(t) : t;
896
- for (; C(r) && !ot(r); ) {
897
- const s = P(r), a = At(r);
898
- !a && s.position === "fixed" && (i = null), (l ? !a && !i : !a && s.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || st(r) && !a && Gt(t, r)) ? o = o.filter((d) => d !== r) : i = s, r = Y(r);
899
- }
900
- return e.set(t, o), o;
901
- }
902
- function He(t) {
903
- let {
904
- element: e,
905
- boundary: n,
906
- rootBoundary: o,
907
- strategy: i
908
- } = t;
909
- const r = [...n === "clippingAncestors" ? pt(e) ? [] : $e(e, this._c) : [].concat(n), o], s = r[0], a = r.reduce((c, d) => {
910
- const u = _t(e, d, i);
911
- return c.top = X(u.top, c.top), c.right = nt(u.right, c.right), c.bottom = nt(u.bottom, c.bottom), c.left = X(u.left, c.left), c;
912
- }, _t(e, s, i));
913
- return {
914
- width: a.right - a.left,
915
- height: a.bottom - a.top,
916
- x: a.left,
917
- y: a.top
918
- };
919
- }
920
- function Ne(t) {
921
- const {
922
- width: e,
923
- height: n
924
- } = Ut(t);
925
- return {
926
- width: e,
927
- height: n
928
- };
929
- }
930
- function We(t, e, n) {
931
- const o = M(e), i = $(e), l = n === "fixed", r = J(t, !0, l, e);
932
- let s = {
933
- scrollLeft: 0,
934
- scrollTop: 0
935
- };
936
- const a = B(0);
937
- if (o || !o && !l)
938
- if ((Z(e) !== "body" || st(i)) && (s = gt(e)), o) {
939
- const p = J(e, !0, l, e);
940
- a.x = p.x + e.clientLeft, a.y = p.y + e.clientTop;
941
- } else i && (a.x = St(i));
942
- const c = i && !o && !l ? qt(i, s) : B(0), d = r.left + s.scrollLeft - a.x - c.x, u = r.top + s.scrollTop - a.y - c.y;
943
- return {
944
- x: d,
945
- y: u,
946
- width: r.width,
947
- height: r.height
948
- };
949
- }
950
- function ht(t) {
951
- return P(t).position === "static";
952
- }
953
- function Mt(t, e) {
954
- if (!M(t) || P(t).position === "fixed")
955
- return null;
956
- if (e)
957
- return e(t);
958
- let n = t.offsetParent;
959
- return $(t) === n && (n = n.ownerDocument.body), n;
960
- }
961
- function Xt(t, e) {
962
- const n = E(t);
963
- if (pt(t))
964
- return n;
965
- if (!M(t)) {
966
- let i = Y(t);
967
- for (; i && !ot(i); ) {
968
- if (C(i) && !ht(i))
969
- return i;
970
- i = Y(i);
971
- }
972
- return n;
973
- }
974
- let o = Mt(t, e);
975
- for (; o && De(o) && ht(o); )
976
- o = Mt(o, e);
977
- return o && ot(o) && ht(o) && !At(o) ? n : o || Le(t) || n;
978
- }
979
- const Ve = async function(t) {
980
- const e = this.getOffsetParent || Xt, n = this.getDimensions, o = await n(t.floating);
981
- return {
982
- reference: We(t.reference, await e(t.floating), t.strategy),
983
- floating: {
984
- x: 0,
985
- y: 0,
986
- width: o.width,
987
- height: o.height
988
- }
989
- };
990
- };
991
- function Ie(t) {
992
- return P(t).direction === "rtl";
993
- }
994
- const je = {
995
- convertOffsetParentRelativeRectToViewportRelativeRect: Fe,
996
- getDocumentElement: $,
997
- getClippingRect: He,
998
- getOffsetParent: Xt,
999
- getElementRects: Ve,
1000
- getClientRects: ke,
1001
- getDimensions: Ne,
1002
- getScale: et,
1003
- isElement: C,
1004
- isRTL: Ie
1005
- };
1006
- function ze(t, e) {
1007
- let n = null, o;
1008
- const i = $(t);
1009
- function l() {
1010
- var s;
1011
- clearTimeout(o), (s = n) == null || s.disconnect(), n = null;
1012
- }
1013
- function r(s, a) {
1014
- s === void 0 && (s = !1), a === void 0 && (a = 1), l();
1015
- const {
1016
- left: c,
1017
- top: d,
1018
- width: u,
1019
- height: p
1020
- } = t.getBoundingClientRect();
1021
- if (s || e(), !u || !p)
1022
- return;
1023
- const f = ct(d), m = ct(i.clientWidth - (c + u)), g = ct(i.clientHeight - (d + p)), v = ct(c), w = {
1024
- rootMargin: -f + "px " + -m + "px " + -g + "px " + -v + "px",
1025
- threshold: X(0, nt(1, a)) || 1
1026
- };
1027
- let x = !0;
1028
- function O(y) {
1029
- const T = y[0].intersectionRatio;
1030
- if (T !== a) {
1031
- if (!x)
1032
- return r();
1033
- T ? r(!1, T) : o = setTimeout(() => {
1034
- r(!1, 1e-7);
1035
- }, 1e3);
1036
- }
1037
- x = !1;
1038
- }
1039
- try {
1040
- n = new IntersectionObserver(O, {
1041
- ...w,
1042
- // Handle <iframe>s
1043
- root: i.ownerDocument
1044
- });
1045
- } catch {
1046
- n = new IntersectionObserver(O, w);
1047
- }
1048
- n.observe(t);
1049
- }
1050
- return r(!0), l;
1051
- }
1052
- function $t(t, e, n, o) {
1053
- o === void 0 && (o = {});
1054
- const {
1055
- ancestorScroll: i = !0,
1056
- ancestorResize: l = !0,
1057
- elementResize: r = typeof ResizeObserver == "function",
1058
- layoutShift: s = typeof IntersectionObserver == "function",
1059
- animationFrame: a = !1
1060
- } = o, c = Rt(t), d = i || l ? [...c ? lt(c) : [], ...lt(e)] : [];
1061
- d.forEach((h) => {
1062
- i && h.addEventListener("scroll", n, {
1063
- passive: !0
1064
- }), l && h.addEventListener("resize", n);
1065
- });
1066
- const u = c && s ? ze(c, n) : null;
1067
- let p = -1, f = null;
1068
- r && (f = new ResizeObserver((h) => {
1069
- let [w] = h;
1070
- w && w.target === c && f && (f.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1071
- var x;
1072
- (x = f) == null || x.observe(e);
1073
- })), n();
1074
- }), c && !a && f.observe(c), f.observe(e));
1075
- let m, g = a ? J(t) : null;
1076
- a && v();
1077
- function v() {
1078
- const h = J(t);
1079
- g && (h.x !== g.x || h.y !== g.y || h.width !== g.width || h.height !== g.height) && n(), g = h, m = requestAnimationFrame(v);
1080
- }
1081
- return n(), () => {
1082
- var h;
1083
- d.forEach((w) => {
1084
- i && w.removeEventListener("scroll", n), l && w.removeEventListener("resize", n);
1085
- }), u == null || u(), (h = f) == null || h.disconnect(), f = null, a && cancelAnimationFrame(m);
1086
- };
1087
- }
1088
- const Ue = Se, Ye = Oe, qe = Ee, Ge = Ae, an = Te, Xe = xe, Ke = (t, e, n) => {
1089
- const o = /* @__PURE__ */ new Map(), i = {
1090
- platform: je,
1091
- ...n
1092
- }, l = {
1093
- ...i.platform,
1094
- _c: o
1095
- };
1096
- return ye(t, e, {
1097
- ...i,
1098
- platform: l
1099
- });
1100
- };
1101
- function Je(t) {
1102
- return t != null && typeof t == "object" && "$el" in t;
1103
- }
1104
- function yt(t) {
1105
- if (Je(t)) {
1106
- const e = t.$el;
1107
- return Ot(e) && Z(e) === "#comment" ? null : e;
1108
- }
1109
- return t;
1110
- }
1111
- function Qe(t) {
1112
- return {
1113
- name: "arrow",
1114
- options: t,
1115
- fn(e) {
1116
- const n = yt(V(t.element));
1117
- return n == null ? {} : Xe({
1118
- element: n,
1119
- padding: t.padding
1120
- }).fn(e);
1121
- }
1122
- };
1123
- }
1124
- function Kt(t) {
1125
- return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
1126
- }
1127
- function Ht(t, e) {
1128
- const n = Kt(t);
1129
- return Math.round(e * n) / n;
1130
- }
1131
- function Ze(t, e, n) {
1132
- n === void 0 && (n = {});
1133
- const o = n.whileElementsMounted, i = R(() => {
1134
- var b;
1135
- return (b = V(n.open)) != null ? b : !0;
1136
- }), l = R(() => V(n.middleware)), r = R(() => {
1137
- var b;
1138
- return (b = V(n.placement)) != null ? b : "bottom";
1139
- }), s = R(() => {
1140
- var b;
1141
- return (b = V(n.strategy)) != null ? b : "absolute";
1142
- }), a = R(() => {
1143
- var b;
1144
- return (b = V(n.transform)) != null ? b : !0;
1145
- }), c = R(() => yt(t.value)), d = R(() => yt(e.value)), u = U(0), p = U(0), f = U(s.value), m = U(r.value), g = ee({}), v = U(!1), h = R(() => {
1146
- const b = {
1147
- position: f.value,
1148
- left: "0",
1149
- top: "0"
1150
- };
1151
- if (!d.value)
1152
- return b;
1153
- const H = Ht(d.value, u.value), S = Ht(d.value, p.value);
1154
- return a.value ? {
1155
- ...b,
1156
- transform: "translate(" + H + "px, " + S + "px)",
1157
- ...Kt(d.value) >= 1.5 && {
1158
- willChange: "transform"
1159
- }
1160
- } : {
1161
- position: f.value,
1162
- left: H + "px",
1163
- top: S + "px"
1164
- };
1165
- });
1166
- let w;
1167
- function x() {
1168
- c.value == null || d.value == null || Ke(c.value, d.value, {
1169
- middleware: l.value,
1170
- placement: r.value,
1171
- strategy: s.value
1172
- }).then((b) => {
1173
- u.value = b.x, p.value = b.y, f.value = b.strategy, m.value = b.placement, g.value = b.middlewareData, v.value = !0;
1174
- });
1175
- }
1176
- function O() {
1177
- typeof w == "function" && (w(), w = void 0);
1178
- }
1179
- function y() {
1180
- if (O(), o === void 0) {
1181
- x();
1182
- return;
1183
- }
1184
- if (c.value != null && d.value != null) {
1185
- w = o(c.value, d.value, x);
1186
- return;
1187
- }
1188
- }
1189
- function T() {
1190
- i.value || (v.value = !1);
1191
- }
1192
- return it([l, r, s], x, {
1193
- flush: "sync"
1194
- }), it([c, d], y, {
1195
- flush: "sync"
1196
- }), it(i, T, {
1197
- flush: "sync"
1198
- }), ne() && oe(O), {
1199
- x: tt(u),
1200
- y: tt(p),
1201
- strategy: tt(f),
1202
- placement: tt(m),
1203
- middlewareData: tt(g),
1204
- isPositioned: tt(v),
1205
- floatingStyles: h,
1206
- update: x
1207
- };
1208
- }
1209
- var Jt = /* @__PURE__ */ ((t) => (t.TOP = "top", t.RIGHT = "right", t.BOTTOM = "bottom", t.LEFT = "left", t))(Jt || {}), Qt = /* @__PURE__ */ ((t) => (t.AUTO = "auto", t.AUTO_START = "auto-start", t.AUTO_END = "auto-end", t.TOP_START = "top-start", t.TOP_END = "top-end", t.RIGHT_START = "right-start", t.RIGHT_END = "right-end", t.BOTTOM_START = "bottom-start", t.BOTTOM_END = "bottom-end", t.LEFT_START = "left-start", t.LEFT_END = "left-end", t))(Qt || {}), Zt = /* @__PURE__ */ ((t) => (t.TOOLTIP = "tooltip", t.POPOVER = "dialog", t))(Zt || {});
1210
- const Nt = { ...Jt, ...Qt }, tn = (t, e) => t ? e[1] + 7 : e[1], en = (t) => {
1211
- let e = Array.isArray(t) ? t : [t];
1212
- return e = e.filter((n) => n !== "auto" && n !== "auto-start" && n !== "auto-end").map((n) => n), {
1213
- fallbackPlacements: e
1214
- };
1215
- }, nn = {
1216
- name: "sameWidth",
1217
- fn: ({ elements: t }) => (t.floating.style.width = `${t.reference.offsetWidth}px`, {})
1218
- }, on = {}, rn = /* @__PURE__ */ ie({
1219
- ...on,
1220
- __name: "popper-container",
1221
- props: {
1222
- /**
1223
- * The aria role assigned to the container. Defaults to null, which means it's not set if nothing is passed.
1224
- */
1225
- ariaRole: {
1226
- type: String,
1227
- default: null,
1228
- validator: (t) => Object.values(Zt).includes(t)
1229
- },
1230
- /**
1231
- * Indicates if container should have additional arrow, pointing at target element
1232
- * Can be just a boolean flag, or an object with additional configuration:
1233
- * @property {Array<string>} arrow.classes – apply any additional classes to the arrow element.
1234
- * @property {string} arrow.padding – useful when content has rounded corners, @see {@link https://floating-ui.com/docs/arrow#padding}
1235
- */
1236
- arrow: { type: Object, default: void 0 },
1237
- /**
1238
- * Disables wrapping focus-trap component.
1239
- * Mostly useful for the storybook demo.
1240
- */
1241
- disabledFocusTrap: { type: Boolean, default: !1 },
1242
- /**
1243
- * Allows to configure to fallback position to the one specified, it could be 'auto' or ['right', 'top', ...].
1244
- * Useful when not using auto as starting placement.
1245
- * @see {@link https://floating-ui.com/docs/flip#fallbackplacements}
1246
- */
1247
- fallbackPosition: {
1248
- type: [Array, String],
1249
- default: null
1250
- },
1251
- /**
1252
- * Instructs popover to be visible outside of the containing container.
1253
- * Useful when component would be used in limited containers like Modal, Side panel, etc.
1254
- * @see {@link https://floating-ui.com/docs/usefloating#strategy}
1255
- */
1256
- fixedPositioning: { type: Boolean, default: !1 },
1257
- /**
1258
- * The id to be set on the component. Use it for accessibility purposes.
1259
- */
1260
- id: { type: String, default: null },
1261
- /**
1262
- * If hiding / showing popper element then use this property to tell the popper when to update it's position.
1263
- * This will drastically help improve performance, as we will not need to track hidden elements.
1264
- */
1265
- isHidden: { type: Boolean, default: null },
1266
- /**
1267
- * Instructs popper container to have the same width as target element.
1268
- */
1269
- matchWidth: { type: Boolean, default: !1 },
1270
- /**
1271
- * Custom set of middleware. Useful for low-level control over Popper behavior in some really complex use cases.
1272
- * @see {@link https://floating-ui.com/docs/middleware}
1273
- */
1274
- middleware: { type: Array, default: null },
1275
- /**
1276
- * Allows to displace a popper container from its target element.
1277
- * @see {@link https://floating-ui.com/docs/offset#options}
1278
- */
1279
- offset: {
1280
- type: Array,
1281
- default: () => [0, 0],
1282
- validator: (t) => (t == null ? void 0 : t.length) === 2
1283
- },
1284
- /**
1285
- * Position relative to the target element
1286
- * @see {@link https://floating-ui.com/docs/computeposition#placement}
1287
- */
1288
- position: {
1289
- type: String,
1290
- default: Nt.AUTO,
1291
- validator: (t) => Object.values(Nt).includes(t)
1292
- },
1293
- /**
1294
- * Reference to the DOM element or Vue component for positioning
1295
- */
1296
- targetElement: { type: [Element, Object], required: !0 },
1297
- /**
1298
- * Activates focus trap for both arrow and tab keys.
1299
- */
1300
- trapAll: { type: Boolean, default: !1 },
1301
- /**
1302
- * Configurations for the focus-trap when trap-all is active.
1303
- */
1304
- trapAllOptions: {
1305
- type: Object,
1306
- default: void 0
1307
- }
1308
- },
1309
- emits: ["placement"],
1310
- setup(t, { emit: e }) {
1311
- var O;
1312
- const n = t, o = e, { position: i } = re(n), l = U(), r = U(null), s = U(n.position), a = R(
1313
- () => n.targetElement.$el ? n.targetElement.$el : n.targetElement
1314
- ), c = R(
1315
- () => l.value.$el ? l.value.$el : l.value
1316
- ), d = R(() => (n == null ? void 0 : n.position) !== "auto" && (n == null ? void 0 : n.fallbackPosition) !== "auto"), u = R(() => {
1317
- switch (n.position) {
1318
- case "auto-start":
1319
- return { alignment: "start", crossAxis: !0 };
1320
- case "auto-end":
1321
- return { alignment: "end", crossAxis: !0 };
1322
- default:
1323
- return;
1324
- }
1325
- }), p = R(() => n.fixedPositioning ? "fixed" : "absolute"), { floatingStyles: f, middlewareData: m, placement: g, update: v } = Ze(a, l, {
1326
- placement: i,
1327
- middleware: [
1328
- // Adds flip modifier if fallbackPosition is not set to auto
1329
- ...d.value ? [
1330
- Ge({
1331
- fallbackPlacements: en(n.fallbackPosition).fallbackPlacements
1332
- })
1333
- ] : [],
1334
- // Adds autoposition middlelare if position is set to any auto variants
1335
- ...d.value ? [] : [Ye(u.value)],
1336
- // Add shifting middle in case popper is still not fully visible in view port
1337
- qe(),
1338
- // Adds offset middlelare if offset property is set
1339
- ...n.offset ? [Ue(tn(n.arrow, n.offset))] : [],
1340
- // Adds arrow middlelare if arrow property is set, can set additional padding property
1341
- ...n.arrow ? [Qe({ element: r, padding: n.arrow.padding || 0 })] : [],
1342
- // Adds same width middleware to keep popper width same as referenced element's width
1343
- ...n.matchWidth ? [nn] : [],
1344
- // If there is additional custom middleware to add via the property then add it
1345
- ...((O = n.middleware) == null ? void 0 : O.length) > 0 ? n.middleware : []
1346
- ],
1347
- strategy: p,
1348
- // If we're mounting the element with a `v-if` then we need to auto update it while it's mounted
1349
- ...n.isHidden === null ? { whileElementsMounted: $t } : []
1350
- });
1351
- let h;
1352
- it(
1353
- () => n.isHidden,
1354
- () => {
1355
- n.isHidden !== null && !n.isHidden ? h = $t(a == null ? void 0 : a.value, c == null ? void 0 : c.value, v) : n.isHidden !== null && n.isHidden && typeof h == "function" && h();
1356
- }
1357
- ), it(
1358
- () => g.value,
1359
- () => {
1360
- s.value !== g.value && (s.value = g.value, o("placement", s.value));
1361
- }
1362
- );
1363
- const w = R(() => {
1364
- var y, T;
1365
- return {
1366
- position: "absolute",
1367
- left: ((y = m.value.arrow) == null ? void 0 : y.x) != null ? `${m.value.arrow.x}px` : "",
1368
- top: ((T = m.value.arrow) == null ? void 0 : T.y) != null ? `${m.value.arrow.y}px` : ""
1369
- };
1370
- }), x = R(() => {
1371
- var y;
1372
- return {
1373
- class: n.arrow.classes,
1374
- style: w.value,
1375
- // Applies a data-hide attribute to arrow element depending on center offset.
1376
- ...((y = m.value.arrow) == null ? void 0 : y.centerOffset) !== 0 ? { "data-hide": "" } : {}
1377
- };
1378
- });
1379
- return (y, T) => (Et(), le(V(ue), Dt(y.$attrs, {
1380
- id: t.id,
1381
- ref_key: "popperContainerRef",
1382
- ref: l,
1383
- class: "b-popper-container",
1384
- "data-popper-placement": V(g),
1385
- disabled: t.disabledFocusTrap,
1386
- style: V(f),
1387
- role: t.ariaRole,
1388
- "trap-all": t.trapAll,
1389
- "trap-all-options": t.trapAllOptions
1390
- }), {
1391
- default: se(() => [
1392
- ce(y.$slots, "default", {}, void 0, !0),
1393
- n.arrow ? (Et(), ae("span", Dt({ key: 0 }, x.value, {
1394
- ref_key: "floatingArrow",
1395
- ref: r,
1396
- class: "b-popper-container__arrow",
1397
- "data-testid": "arrow"
1398
- }), null, 16)) : fe("", !0)
1399
- ]),
1400
- _: 3
1401
- }, 16, ["id", "data-popper-placement", "disabled", "style", "role", "trap-all", "trap-all-options"]));
1402
- }
1403
- }), fn = /* @__PURE__ */ de(rn, [["__scopeId", "data-v-78f222b8"]]);
1404
- export {
1405
- fn as P,
1406
- Jt as a,
1407
- Qt as b,
1408
- Zt as c,
1409
- Nt as d,
1410
- an as h,
1411
- Ue as o
1412
- };
1413
- //# sourceMappingURL=popper-container.I9gzp1NR.js.map