@adyen/bento-vue3 1.71.0 → 1.72.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 (227) hide show
  1. package/dist/@types/index.d.ts +435 -631
  2. package/dist/action-bar.js +1 -1
  3. package/dist/assets/accordion-item.css +1 -1
  4. package/dist/assets/action-bar.css +1 -1
  5. package/dist/assets/ai-button.css +1 -0
  6. package/dist/assets/base-button.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/button-actions.css +1 -0
  9. package/dist/assets/calendar.css +1 -1
  10. package/dist/assets/card.css +1 -1
  11. package/dist/assets/code-snippet.css +1 -1
  12. package/dist/assets/dashboard-section.css +1 -1
  13. package/dist/assets/data-grid-template.css +1 -1
  14. package/dist/assets/data-grid.css +1 -1
  15. package/dist/assets/date-picker.css +1 -1
  16. package/dist/assets/dialog-page.css +1 -1
  17. package/dist/assets/empty-state.css +1 -1
  18. package/dist/assets/field-label.css +1 -0
  19. package/dist/assets/file-uploader.css +1 -1
  20. package/dist/assets/filter-bar.css +1 -1
  21. package/dist/assets/focus-trap.css +1 -1
  22. package/dist/assets/inspector.css +1 -1
  23. package/dist/assets/layout-row.css +1 -1
  24. package/dist/assets/modal-fullscreen.css +1 -1
  25. package/dist/assets/popper-container.css +1 -1
  26. package/dist/assets/selection-card-group.css +1 -1
  27. package/dist/assets/sidepanel.css +1 -1
  28. package/dist/assets/structured-list-item.css +1 -1
  29. package/dist/button.js +11 -9
  30. package/dist/button.js.map +1 -1
  31. package/dist/card.js +1 -1
  32. package/dist/checkbox.js +2 -2
  33. package/dist/chip.js +1 -1
  34. package/dist/chunks/{action-bar.DXP5aDZy.js → action-bar.DDLTN9TB.js} +3 -3
  35. package/dist/chunks/{action-bar.DXP5aDZy.js.map → action-bar.DDLTN9TB.js.map} +1 -1
  36. package/dist/chunks/ai-button.DsNrcgpK.js +93 -0
  37. package/dist/chunks/ai-button.DsNrcgpK.js.map +1 -0
  38. package/dist/chunks/{base-button.CjYb5Y8k.js → base-button.BYhf0xf3.js} +2 -2
  39. package/dist/chunks/base-button.BYhf0xf3.js.map +1 -0
  40. package/dist/chunks/{base-modal.IFHgu-pI.js → base-modal.Djw4pVal.js} +4 -4
  41. package/dist/chunks/{base-modal.IFHgu-pI.js.map → base-modal.Djw4pVal.js.map} +1 -1
  42. package/dist/chunks/{button-actions-with-menu.VMZpD4ic.js → button-actions-with-menu.DaKPEgPd.js} +2 -2
  43. package/dist/chunks/{button-actions-with-menu.VMZpD4ic.js.map → button-actions-with-menu.DaKPEgPd.js.map} +1 -1
  44. package/dist/chunks/{toggle-button.Cg4Kot6V.js → button-actions.D1eBtYgZ.js} +313 -310
  45. package/dist/chunks/button-actions.D1eBtYgZ.js.map +1 -0
  46. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  47. package/dist/chunks/{calendar.DlqxwWsS.js → calendar.B1a_mV-Q.js} +427 -417
  48. package/dist/chunks/{calendar.DlqxwWsS.js.map → calendar.B1a_mV-Q.js.map} +1 -1
  49. package/dist/chunks/{card.BInbSY-o.js → card.B9lWURmF.js} +2 -2
  50. package/dist/chunks/{card.BInbSY-o.js.map → card.B9lWURmF.js.map} +1 -1
  51. package/dist/chunks/{checkbox-group.CCvD8KVS.js → checkbox-group.CcgOK4yt.js} +4 -4
  52. package/dist/chunks/{checkbox-group.CCvD8KVS.js.map → checkbox-group.CcgOK4yt.js.map} +1 -1
  53. package/dist/chunks/{checkbox.BRIYlBom.js → checkbox.73QYC0y8.js} +3 -3
  54. package/dist/chunks/{checkbox.BRIYlBom.js.map → checkbox.73QYC0y8.js.map} +1 -1
  55. package/dist/chunks/{chevron-right.Brdj0WlO.js → chevron-left.Cfn1uGLH.js} +5 -5
  56. package/dist/chunks/chevron-left.Cfn1uGLH.js.map +1 -0
  57. package/dist/chunks/{chip.DcpP3zb6.js → chip.CUwVpPVo.js} +2 -2
  58. package/dist/chunks/{chip.DcpP3zb6.js.map → chip.CUwVpPVo.js.map} +1 -1
  59. package/dist/chunks/code-snippet.DL_1HNKV.js +343 -0
  60. package/dist/chunks/code-snippet.DL_1HNKV.js.map +1 -0
  61. package/dist/chunks/{controls-group.hZ7MqEVg.js → controls-group.CdTg-WDi.js} +2 -2
  62. package/dist/chunks/{controls-group.hZ7MqEVg.js.map → controls-group.CdTg-WDi.js.map} +1 -1
  63. package/dist/chunks/{copy.CELx3jZU.js → copy.Da1OGFTr.js} +3 -3
  64. package/dist/chunks/{copy.CELx3jZU.js.map → copy.Da1OGFTr.js.map} +1 -1
  65. package/dist/chunks/{dashboard-section.CBzzHoDx.js → dashboard-section.BXE7_Y9R.js} +3 -3
  66. package/dist/chunks/{dashboard-section.CBzzHoDx.js.map → dashboard-section.BXE7_Y9R.js.map} +1 -1
  67. package/dist/chunks/{dashed-underline.D6p0_Yi3.js → dashed-underline.28J-9i5D.js} +3 -3
  68. package/dist/chunks/{dashed-underline.D6p0_Yi3.js.map → dashed-underline.28J-9i5D.js.map} +1 -1
  69. package/dist/chunks/{data-grid-template.CE8j-4IU.js → data-grid-template.B13OrA1T.js} +36 -36
  70. package/dist/chunks/data-grid-template.B13OrA1T.js.map +1 -0
  71. package/dist/chunks/{data-grid.D_xkGMg9.js → data-grid._xo6LEB-.js} +1061 -1009
  72. package/dist/chunks/data-grid._xo6LEB-.js.map +1 -0
  73. package/dist/chunks/{date-picker.DNdV16PL.js → date-picker.Bkz4GmyC.js} +92 -86
  74. package/dist/chunks/date-picker.Bkz4GmyC.js.map +1 -0
  75. package/dist/chunks/{date-range-picker.C5KDhklL.js → date-range-picker.9Zlg9xnH.js} +7 -7
  76. package/dist/chunks/{date-range-picker.C5KDhklL.js.map → date-range-picker.9Zlg9xnH.js.map} +1 -1
  77. package/dist/chunks/{dropdown-tag.DqNHp5mb.js → dropdown-tag.hIiGmmBD.js} +3 -3
  78. package/dist/chunks/{dropdown-tag.DqNHp5mb.js.map → dropdown-tag.hIiGmmBD.js.map} +1 -1
  79. package/dist/chunks/{dropdown.CknmuJDd.js → dropdown.GyDAswAO.js} +5 -5
  80. package/dist/chunks/{dropdown.CknmuJDd.js.map → dropdown.GyDAswAO.js.map} +1 -1
  81. package/dist/chunks/{empty-state.BTaeZdQu.js → empty-state.BsKJ-1pT.js} +74 -119
  82. package/dist/chunks/empty-state.BsKJ-1pT.js.map +1 -0
  83. package/dist/chunks/es6.MoTTyETW.js.map +1 -1
  84. package/dist/chunks/{error-message.RHitS8wA.js → field-label.DSeawpYh.js} +60 -60
  85. package/dist/chunks/field-label.DSeawpYh.js.map +1 -0
  86. package/dist/chunks/{file-uploader.BEzjOvcm.js → file-uploader.DELe6_NM.js} +3 -3
  87. package/dist/chunks/{file-uploader.BEzjOvcm.js.map → file-uploader.DELe6_NM.js.map} +1 -1
  88. package/dist/chunks/{filter-bar.DlGlB8KV.js → filter-bar.BLhRZzJa.js} +175 -176
  89. package/dist/chunks/filter-bar.BLhRZzJa.js.map +1 -0
  90. package/dist/chunks/{fixed-scroller.DSGxXiAH.js → fixed-scroller.BASYH576.js} +2 -2
  91. package/dist/chunks/{fixed-scroller.DSGxXiAH.js.map → fixed-scroller.BASYH576.js.map} +1 -1
  92. package/dist/chunks/{focus-trap.BkNwCiVP.js → focus-trap.CpNGD7PH.js} +156 -145
  93. package/dist/chunks/focus-trap.CpNGD7PH.js.map +1 -0
  94. package/dist/chunks/{footer-actions.0aDpxgET.js → footer-actions.Bqn-Jp0p.js} +2 -2
  95. package/dist/chunks/{footer-actions.0aDpxgET.js.map → footer-actions.Bqn-Jp0p.js.map} +1 -1
  96. package/dist/chunks/{header-meta.BA12hEmp.js → header-meta.BXOpbsSR.js} +3 -3
  97. package/dist/chunks/{header-meta.BA12hEmp.js.map → header-meta.BXOpbsSR.js.map} +1 -1
  98. package/dist/chunks/{header-with-views.BhAcH_b0.js → header-with-views.afPw_Czi.js} +8 -8
  99. package/dist/chunks/{header-with-views.BhAcH_b0.js.map → header-with-views.afPw_Czi.js.map} +1 -1
  100. package/dist/chunks/{header.But-8DTA.js → header.9kRuPR3K.js} +3 -3
  101. package/dist/chunks/{header.But-8DTA.js.map → header.9kRuPR3K.js.map} +1 -1
  102. package/dist/chunks/{info-icon.BZoBshSv.js → info-icon.CRnO5lpq.js} +3 -3
  103. package/dist/chunks/{info-icon.BZoBshSv.js.map → info-icon.CRnO5lpq.js.map} +1 -1
  104. package/dist/chunks/{input-field-password.3z2IZUll.js → input-field-password.JZkGOiMd.js} +5 -5
  105. package/dist/chunks/{input-field-password.3z2IZUll.js.map → input-field-password.JZkGOiMd.js.map} +1 -1
  106. package/dist/chunks/{input-field-phone-number.CBtuFrPU.js → input-field-phone-number.CF5P0_yu.js} +4 -4
  107. package/dist/chunks/{input-field-phone-number.CBtuFrPU.js.map → input-field-phone-number.CF5P0_yu.js.map} +1 -1
  108. package/dist/chunks/{input-field.BozGzgiG.js → input-field.2S8zBviE.js} +3 -3
  109. package/dist/chunks/{input-field.BozGzgiG.js.map → input-field.2S8zBviE.js.map} +1 -1
  110. package/dist/chunks/{inspector.D4uxNwOp.js → inspector.C-yVhM15.js} +2 -2
  111. package/dist/chunks/{inspector.D4uxNwOp.js.map → inspector.C-yVhM15.js.map} +1 -1
  112. package/dist/chunks/{listbox-option-tag.DXkIvvPz.js → listbox-option-tag.CtJUykfB.js} +2 -2
  113. package/dist/chunks/{listbox-option-tag.DXkIvvPz.js.map → listbox-option-tag.CtJUykfB.js.map} +1 -1
  114. package/dist/chunks/{modal-fullscreen.CVhxBKi5.js → modal-fullscreen.CIxazX33.js} +3 -3
  115. package/dist/chunks/{modal-fullscreen.CVhxBKi5.js.map → modal-fullscreen.CIxazX33.js.map} +1 -1
  116. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.COJ937I7.js → modal.vue_vue_type_script_setup_true_lang.D4TJY7o_.js} +4 -4
  117. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.COJ937I7.js.map → modal.vue_vue_type_script_setup_true_lang.D4TJY7o_.js.map} +1 -1
  118. package/dist/chunks/{pagination.BNmA_Rjf.js → pagination.NDwXq6fh.js} +2 -2
  119. package/dist/chunks/{pagination.BNmA_Rjf.js.map → pagination.NDwXq6fh.js.map} +1 -1
  120. package/dist/chunks/popover.types.Bp97CGc4.js +6 -0
  121. package/dist/chunks/popover.types.Bp97CGc4.js.map +1 -0
  122. package/dist/chunks/{popper-container.bSdMC3hi.js → popper-container.5cq-eu41.js} +178 -170
  123. package/dist/chunks/{popper-container.bSdMC3hi.js.map → popper-container.5cq-eu41.js.map} +1 -1
  124. package/dist/chunks/{radio-group.CHh_3CHv.js → radio-group.BNiif4On.js} +4 -4
  125. package/dist/chunks/{radio-group.CHh_3CHv.js.map → radio-group.BNiif4On.js.map} +1 -1
  126. package/dist/chunks/{rich-text-editor.C3c1TwV2.js → rich-text-editor.D770fUpS.js} +4 -4
  127. package/dist/chunks/{rich-text-editor.C3c1TwV2.js.map → rich-text-editor.D770fUpS.js.map} +1 -1
  128. package/dist/chunks/{search-bar.CxvanqNG.js → search-bar.rZ_38y4j.js} +3 -3
  129. package/dist/chunks/{search-bar.CxvanqNG.js.map → search-bar.rZ_38y4j.js.map} +1 -1
  130. package/dist/chunks/{secondary-nav.DhLj6zof.js → secondary-nav.BBE8HyDR.js} +2 -2
  131. package/dist/chunks/{secondary-nav.DhLj6zof.js.map → secondary-nav.BBE8HyDR.js.map} +1 -1
  132. package/dist/chunks/{segmented-control.BCzCfi5u.js → segmented-control.D0SoqGlC.js} +2 -2
  133. package/dist/chunks/{segmented-control.BCzCfi5u.js.map → segmented-control.D0SoqGlC.js.map} +1 -1
  134. package/dist/chunks/{selection-card-group.rDJFsSHF.js → selection-card-group.KK9ZPqiU.js} +3 -3
  135. package/dist/chunks/{selection-card-group.rDJFsSHF.js.map → selection-card-group.KK9ZPqiU.js.map} +1 -1
  136. package/dist/chunks/{sidepanel.C0kqpRKo.js → sidepanel.CyPW8jxA.js} +4 -4
  137. package/dist/chunks/{sidepanel.C0kqpRKo.js.map → sidepanel.CyPW8jxA.js.map} +1 -1
  138. package/dist/chunks/{step.BMSjltwl.js → step.Ci-e1V9E.js} +2 -2
  139. package/dist/chunks/{step.BMSjltwl.js.map → step.Ci-e1V9E.js.map} +1 -1
  140. package/dist/chunks/structured-list-item.CSkcduKn.js +111 -0
  141. package/dist/chunks/structured-list-item.CSkcduKn.js.map +1 -0
  142. package/dist/chunks/{summary-grid.types.CgsPaFIi.js → summary-grid.types.C-gcwqwB.js} +5 -5
  143. package/dist/chunks/{summary-grid.types.CgsPaFIi.js.map → summary-grid.types.C-gcwqwB.js.map} +1 -1
  144. package/dist/chunks/{tab.C3R_VoJL.js → tab.8bEkiAkk.js} +2 -2
  145. package/dist/chunks/{tab.C3R_VoJL.js.map → tab.8bEkiAkk.js.map} +1 -1
  146. package/dist/chunks/{tag.DW6y9sn1.js → tag.BFYNxO6t.js} +2 -2
  147. package/dist/chunks/{tag.DW6y9sn1.js.map → tag.BFYNxO6t.js.map} +1 -1
  148. package/dist/chunks/{textarea.uiOivwAV.js → textarea.C7RmLKEx.js} +2 -2
  149. package/dist/chunks/{textarea.uiOivwAV.js.map → textarea.C7RmLKEx.js.map} +1 -1
  150. package/dist/chunks/{timeline-item.BKXebGLj.js → timeline-item.BiivSMPD.js} +5 -5
  151. package/dist/chunks/{timeline-item.BKXebGLj.js.map → timeline-item.BiivSMPD.js.map} +1 -1
  152. package/dist/chunks/{tooltip.TBU0Uixq.js → tooltip.CEHc6lzU.js} +2 -2
  153. package/dist/chunks/{tooltip.TBU0Uixq.js.map → tooltip.CEHc6lzU.js.map} +1 -1
  154. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Unfr3oTn.js → tutorial.vue_vue_type_script_setup_true_lang.BDCDB169.js} +4 -4
  155. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Unfr3oTn.js.map → tutorial.vue_vue_type_script_setup_true_lang.BDCDB169.js.map} +1 -1
  156. package/dist/chunks/{use-cached-selected-values.TCmNtDra.js → use-cached-selected-values.CBOWMI4O.js} +4 -4
  157. package/dist/chunks/use-cached-selected-values.CBOWMI4O.js.map +1 -0
  158. package/dist/code-snippet.js +1 -1
  159. package/dist/dashboard-template.js +1 -1
  160. package/dist/dashed-underline.js +1 -1
  161. package/dist/data-grid-template.js +1 -1
  162. package/dist/data-grid.js +1 -1
  163. package/dist/date-picker.js +2 -2
  164. package/dist/date-range-picker.js +2 -2
  165. package/dist/dropdown.js +3 -3
  166. package/dist/empty-state.js +1 -1
  167. package/dist/file-uploader.js +1 -1
  168. package/dist/filter-bar.js +1 -1
  169. package/dist/focus-trap.js +1 -1
  170. package/dist/header-with-views.js +1 -1
  171. package/dist/header.js +1 -1
  172. package/dist/index.js +181 -179
  173. package/dist/index.js.map +1 -1
  174. package/dist/info-icon.js +1 -1
  175. package/dist/input-field-password.js +1 -1
  176. package/dist/input-field-phone-number.js +1 -1
  177. package/dist/input-field.js +1 -1
  178. package/dist/inspector.js +1 -1
  179. package/dist/internal.js +11 -11
  180. package/dist/menu.js +1 -1
  181. package/dist/modal-fullscreen.js +1 -1
  182. package/dist/modal.js +2 -2
  183. package/dist/pagination.js +1 -1
  184. package/dist/popover.js +2 -2
  185. package/dist/popper-container.js +1 -1
  186. package/dist/radio-group.js +1 -1
  187. package/dist/rich-text-editor.js +1 -1
  188. package/dist/search-bar.js +2 -2
  189. package/dist/secondary-nav.js +1 -1
  190. package/dist/segmented-control.js +1 -1
  191. package/dist/selection-card.js +1 -1
  192. package/dist/sidepanel.js +1 -1
  193. package/dist/stepper.js +1 -1
  194. package/dist/structured-list.js +1 -1
  195. package/dist/styles/bento-dark.css +35 -16
  196. package/dist/styles/bento-light.css +34 -11
  197. package/dist/styles/bento.css +34 -11
  198. package/dist/styles/legacy.css +2108 -0
  199. package/dist/styles/styleguide.css +34 -11
  200. package/dist/styles/utility.css +12 -0
  201. package/dist/summary-grid.js +1 -1
  202. package/dist/tabs.js +1 -1
  203. package/dist/tag.js +1 -1
  204. package/dist/textarea.js +1 -1
  205. package/dist/timeline.js +1 -1
  206. package/dist/tutorial.js +1 -1
  207. package/dist/web-types.json +1 -1
  208. package/package.json +6 -10
  209. package/dist/assets/error-message.css +0 -1
  210. package/dist/assets/toggle-button.css +0 -1
  211. package/dist/chunks/base-button.CjYb5Y8k.js.map +0 -1
  212. package/dist/chunks/chevron-right.Brdj0WlO.js.map +0 -1
  213. package/dist/chunks/code-snippet.DeecUpfA.js +0 -334
  214. package/dist/chunks/code-snippet.DeecUpfA.js.map +0 -1
  215. package/dist/chunks/data-grid-template.CE8j-4IU.js.map +0 -1
  216. package/dist/chunks/data-grid.D_xkGMg9.js.map +0 -1
  217. package/dist/chunks/date-picker.DNdV16PL.js.map +0 -1
  218. package/dist/chunks/empty-state.BTaeZdQu.js.map +0 -1
  219. package/dist/chunks/error-message.RHitS8wA.js.map +0 -1
  220. package/dist/chunks/filter-bar.DlGlB8KV.js.map +0 -1
  221. package/dist/chunks/focus-trap.BkNwCiVP.js.map +0 -1
  222. package/dist/chunks/popover.types.DdQGkMYq.js +0 -6
  223. package/dist/chunks/popover.types.DdQGkMYq.js.map +0 -1
  224. package/dist/chunks/structured-list-item.BgjY9j8w.js +0 -107
  225. package/dist/chunks/structured-list-item.BgjY9j8w.js.map +0 -1
  226. package/dist/chunks/toggle-button.Cg4Kot6V.js.map +0 -1
  227. package/dist/chunks/use-cached-selected-values.TCmNtDra.js.map +0 -1
@@ -1,8 +1,8 @@
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 se, openBlock as Et, mergeProps as Dt, withCtx as le, renderSlot as ce, createElementBlock as ae, createCommentVNode as fe } from "vue";
2
- import { B as ue } from "./focus-trap.BkNwCiVP.js";
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.CpNGD7PH.js";
3
3
  import { _ as de } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
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, k = (t) => ({
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
6
  x: t,
7
7
  y: t
8
8
  }), me = {
@@ -23,7 +23,7 @@ function Q(t, e) {
23
23
  function I(t) {
24
24
  return t.split("-")[0];
25
25
  }
26
- function B(t) {
26
+ function _(t) {
27
27
  return t.split("-")[1];
28
28
  }
29
29
  function Vt(t) {
@@ -40,9 +40,9 @@ function bt(t) {
40
40
  }
41
41
  function It(t, e, n) {
42
42
  n === void 0 && (n = !1);
43
- const o = B(t), i = bt(t), s = xt(i);
43
+ const o = _(t), i = bt(t), l = xt(i);
44
44
  let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
45
- return e.reference[s] > e.floating[s] && (r = ut(r)), [r, ut(r)];
45
+ return e.reference[l] > e.floating[l] && (r = ut(r)), [r, ut(r)];
46
46
  }
47
47
  function ge(t) {
48
48
  const e = ut(t);
@@ -52,22 +52,22 @@ function ft(t) {
52
52
  return t.replace(/start|end/g, (e) => pe[e]);
53
53
  }
54
54
  function he(t, e, n) {
55
- const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
55
+ const o = ["left", "right"], i = ["right", "left"], l = ["top", "bottom"], r = ["bottom", "top"];
56
56
  switch (t) {
57
57
  case "top":
58
58
  case "bottom":
59
59
  return n ? e ? i : o : e ? o : i;
60
60
  case "left":
61
61
  case "right":
62
- return e ? s : r;
62
+ return e ? l : r;
63
63
  default:
64
64
  return [];
65
65
  }
66
66
  }
67
67
  function we(t, e, n, o) {
68
- const i = B(t);
69
- let s = he(I(t), n === "start", o);
70
- return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(ft)))), s;
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
71
  }
72
72
  function ut(t) {
73
73
  return t.replace(/left|right|bottom|top/g, (e) => me[e]);
@@ -112,7 +112,7 @@ function Pt(t, e, n) {
112
112
  reference: o,
113
113
  floating: i
114
114
  } = t;
115
- const s = K(e), r = bt(e), l = xt(r), a = I(e), c = s === "y", d = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, p = o[l] / 2 - i[l] / 2;
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
116
  let f;
117
117
  switch (a) {
118
118
  case "top":
@@ -145,7 +145,7 @@ function Pt(t, e, n) {
145
145
  y: o.y
146
146
  };
147
147
  }
148
- switch (B(e)) {
148
+ switch (_(e)) {
149
149
  case "start":
150
150
  f[r] -= p * (n && c ? -1 : 1);
151
151
  break;
@@ -159,9 +159,9 @@ const ye = async (t, e, n) => {
159
159
  const {
160
160
  placement: o = "bottom",
161
161
  strategy: i = "absolute",
162
- middleware: s = [],
162
+ middleware: l = [],
163
163
  platform: r
164
- } = n, l = s.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(e));
164
+ } = n, s = l.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(e));
165
165
  let c = await r.getElementRects({
166
166
  reference: t,
167
167
  floating: e,
@@ -170,11 +170,11 @@ const ye = async (t, e, n) => {
170
170
  x: d,
171
171
  y: u
172
172
  } = Pt(c, o, a), p = o, f = {}, m = 0;
173
- for (let g = 0; g < l.length; g++) {
173
+ for (let g = 0; g < s.length; g++) {
174
174
  const {
175
175
  name: v,
176
176
  fn: h
177
- } = l[g], {
177
+ } = s[g], {
178
178
  x: w,
179
179
  y: x,
180
180
  data: O,
@@ -222,9 +222,9 @@ async function rt(t, e) {
222
222
  const {
223
223
  x: o,
224
224
  y: i,
225
- platform: s,
225
+ platform: l,
226
226
  rects: r,
227
- elements: l,
227
+ elements: s,
228
228
  strategy: a
229
229
  } = t, {
230
230
  boundary: c = "clippingAncestors",
@@ -232,8 +232,8 @@ async function rt(t, e) {
232
232
  elementContext: u = "floating",
233
233
  altBoundary: p = !1,
234
234
  padding: f = 0
235
- } = Q(e, t), m = jt(f), v = l[p ? u === "floating" ? "reference" : "floating" : u], h = dt(await s.getClippingRect({
236
- element: (n = await (s.isElement == null ? void 0 : s.isElement(v))) == null || n ? v : v.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
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
237
  boundary: c,
238
238
  rootBoundary: d,
239
239
  strategy: a
@@ -242,14 +242,14 @@ async function rt(t, e) {
242
242
  y: i,
243
243
  width: r.floating.width,
244
244
  height: r.floating.height
245
- } : r.reference, x = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), O = await (s.isElement == null ? void 0 : s.isElement(x)) ? await (s.getScale == null ? void 0 : s.getScale(x)) || {
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
246
  x: 1,
247
247
  y: 1
248
248
  } : {
249
249
  x: 1,
250
250
  y: 1
251
- }, y = dt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
252
- elements: l,
251
+ }, y = dt(l.convertOffsetParentRelativeRectToViewportRelativeRect ? await l.convertOffsetParentRelativeRectToViewportRelativeRect({
252
+ elements: s,
253
253
  rect: w,
254
254
  offsetParent: x,
255
255
  strategy: a
@@ -269,9 +269,9 @@ const xe = (t) => ({
269
269
  x: n,
270
270
  y: o,
271
271
  placement: i,
272
- rects: s,
272
+ rects: l,
273
273
  platform: r,
274
- elements: l,
274
+ elements: s,
275
275
  middlewareData: a
276
276
  } = e, {
277
277
  element: c,
@@ -282,10 +282,10 @@ const xe = (t) => ({
282
282
  const u = jt(d), p = {
283
283
  x: n,
284
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 = s.reference[m] + s.reference[f] - p[f] - s.floating[m], y = p[f] - s.reference[f], T = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c));
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
286
  let b = T ? T[x] : 0;
287
- (!b || !await (r.isElement == null ? void 0 : r.isElement(T))) && (b = l.floating[x] || s.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 && B(i) != null && F !== L && s.reference[m] / 2 - (F < N ? A : D) - g[m] / 2 < 0, W = G ? F < N ? F - N : F - q : 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
289
  return {
290
290
  [f]: p[f] + W,
291
291
  data: {
@@ -300,7 +300,7 @@ const xe = (t) => ({
300
300
  }
301
301
  });
302
302
  function be(t, e, n) {
303
- return (t ? [...n.filter((i) => B(i) === t), ...n.filter((i) => B(i) !== t)] : n.filter((i) => I(i) === i)).filter((i) => t ? B(i) === t || (e ? ft(i) !== i : !1) : !0);
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
304
  }
305
305
  const Oe = function(t) {
306
306
  return t === void 0 && (t = {}), {
@@ -309,9 +309,9 @@ const Oe = function(t) {
309
309
  async fn(e) {
310
310
  var n, o, i;
311
311
  const {
312
- rects: s,
312
+ rects: l,
313
313
  middlewareData: r,
314
- placement: l,
314
+ placement: s,
315
315
  platform: a,
316
316
  elements: c
317
317
  } = e, {
@@ -323,8 +323,8 @@ const Oe = function(t) {
323
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
324
  if (w == null)
325
325
  return {};
326
- const x = It(w, s, await (a.isRTL == null ? void 0 : a.isRTL(c.floating)));
327
- if (l !== w)
326
+ const x = It(w, l, await (a.isRTL == null ? void 0 : a.isRTL(c.floating)));
327
+ if (s !== w)
328
328
  return {
329
329
  reset: {
330
330
  placement: g[0]
@@ -345,7 +345,7 @@ const Oe = function(t) {
345
345
  }
346
346
  };
347
347
  const b = y.map((A) => {
348
- const D = B(A.placement);
348
+ const D = _(A.placement);
349
349
  return [A.placement, D && d ? (
350
350
  // Check along the mainAxis and main crossAxis side.
351
351
  A.overflows.slice(0, 2).reduce((N, q) => N + q, 0)
@@ -357,9 +357,9 @@ const Oe = function(t) {
357
357
  0,
358
358
  // Aligned placements should not check their opposite crossAxis
359
359
  // side.
360
- B(A[0]) ? 2 : 3
360
+ _(A[0]) ? 2 : 3
361
361
  ).every((D) => D <= 0))[0]) == null ? void 0 : i[0]) || b[0][0];
362
- return S !== l ? {
362
+ return S !== s ? {
363
363
  data: {
364
364
  index: h + 1,
365
365
  overflows: y
@@ -378,9 +378,9 @@ const Oe = function(t) {
378
378
  var n, o;
379
379
  const {
380
380
  placement: i,
381
- middlewareData: s,
381
+ middlewareData: l,
382
382
  rects: r,
383
- initialPlacement: l,
383
+ initialPlacement: s,
384
384
  platform: a,
385
385
  elements: c
386
386
  } = e, {
@@ -392,12 +392,12 @@ const Oe = function(t) {
392
392
  flipAlignment: g = !0,
393
393
  ...v
394
394
  } = Q(t, e);
395
- if ((n = s.arrow) != null && n.alignmentOffset)
395
+ if ((n = l.arrow) != null && n.alignmentOffset)
396
396
  return {};
397
- const h = I(i), w = K(l), x = I(l) === l, O = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), y = p || (x || !g ? [ut(l)] : ge(l)), T = m !== "none";
398
- !p && T && y.push(...we(l, g, m, O));
399
- const b = [l, ...y], H = await rt(e, v), S = [];
400
- let A = ((o = s.flip) == null ? void 0 : o.overflows) || [];
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
401
  if (d && S.push(H[h]), u) {
402
402
  const L = It(i, r, O);
403
403
  S.push(H[L[0]], H[L[1]]);
@@ -407,11 +407,11 @@ const Oe = function(t) {
407
407
  overflows: S
408
408
  }], !S.every((L) => L <= 0)) {
409
409
  var D, N;
410
- const L = (((D = s.flip) == null ? void 0 : D.index) || 0) + 1, G = b[L];
410
+ const L = (((D = l.flip) == null ? void 0 : D.index) || 0) + 1, G = b[L];
411
411
  if (G) {
412
412
  var q;
413
- const j = u === "alignment" ? w !== K(G) : !1, _ = ((q = A[0]) == null ? void 0 : q.overflows[0]) > 0;
414
- if (!j || _)
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
415
  return {
416
416
  data: {
417
417
  index: L,
@@ -422,25 +422,25 @@ const Oe = function(t) {
422
422
  }
423
423
  };
424
424
  }
425
- let W = (N = A.filter((j) => j.overflows[0] <= 0).sort((j, _) => j.overflows[1] - _.overflows[1])[0]) == null ? void 0 : N.placement;
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
426
  if (!W)
427
427
  switch (f) {
428
428
  case "bestFit": {
429
429
  var F;
430
- const j = (F = A.filter((_) => {
430
+ const j = (F = A.filter((k) => {
431
431
  if (T) {
432
- const z = K(_.placement);
432
+ const z = K(k.placement);
433
433
  return z === w || // Create a bias to the `y` side axis due to horizontal
434
434
  // reading directions favoring greater width.
435
435
  z === "y";
436
436
  }
437
437
  return !0;
438
- }).map((_) => [_.placement, _.overflows.filter((z) => z > 0).reduce((z, te) => z + te, 0)]).sort((_, z) => _[1] - z[1])[0]) == null ? void 0 : F[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
439
  j && (W = j);
440
440
  break;
441
441
  }
442
442
  case "initialPlacement":
443
- W = l;
443
+ W = s;
444
444
  break;
445
445
  }
446
446
  if (i !== W)
@@ -462,7 +462,7 @@ function Ft(t, e) {
462
462
  left: t.left - e.width
463
463
  };
464
464
  }
465
- function _t(t) {
465
+ function kt(t) {
466
466
  return Wt.some((e) => t[e] >= 0);
467
467
  }
468
468
  const Te = function(t) {
@@ -478,26 +478,26 @@ const Te = function(t) {
478
478
  } = Q(t, e);
479
479
  switch (o) {
480
480
  case "referenceHidden": {
481
- const s = await rt(e, {
481
+ const l = await rt(e, {
482
482
  ...i,
483
483
  elementContext: "reference"
484
- }), r = Ft(s, n.reference);
484
+ }), r = Ft(l, n.reference);
485
485
  return {
486
486
  data: {
487
487
  referenceHiddenOffsets: r,
488
- referenceHidden: _t(r)
488
+ referenceHidden: kt(r)
489
489
  }
490
490
  };
491
491
  }
492
492
  case "escaped": {
493
- const s = await rt(e, {
493
+ const l = await rt(e, {
494
494
  ...i,
495
495
  altBoundary: !0
496
- }), r = Ft(s, n.floating);
496
+ }), r = Ft(l, n.floating);
497
497
  return {
498
498
  data: {
499
499
  escapedOffsets: r,
500
- escaped: _t(r)
500
+ escaped: kt(r)
501
501
  }
502
502
  };
503
503
  }
@@ -512,7 +512,7 @@ async function Re(t, e) {
512
512
  placement: n,
513
513
  platform: o,
514
514
  elements: i
515
- } = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = I(n), l = B(n), a = K(n) === "y", c = ["left", "top"].includes(r) ? -1 : 1, d = s && a ? -1 : 1, u = Q(e, t);
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
516
  let {
517
517
  mainAxis: p,
518
518
  crossAxis: f,
@@ -526,7 +526,7 @@ async function Re(t, e) {
526
526
  crossAxis: u.crossAxis || 0,
527
527
  alignmentAxis: u.alignmentAxis
528
528
  };
529
- return l && typeof m == "number" && (f = l === "end" ? m * -1 : m), a ? {
529
+ return s && typeof m == "number" && (f = s === "end" ? m * -1 : m), a ? {
530
530
  x: f * d,
531
531
  y: p * c
532
532
  } : {
@@ -542,13 +542,13 @@ const Se = function(t) {
542
542
  var n, o;
543
543
  const {
544
544
  x: i,
545
- y: s,
545
+ y: l,
546
546
  placement: r,
547
- middlewareData: l
547
+ middlewareData: s
548
548
  } = e, a = await Re(e, t);
549
- return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
549
+ return r === ((n = s.offset) == null ? void 0 : n.placement) && (o = s.arrow) != null && o.alignmentOffset ? {} : {
550
550
  x: i + a.x,
551
- y: s + a.y,
551
+ y: l + a.y,
552
552
  data: {
553
553
  ...a,
554
554
  placement: r
@@ -566,9 +566,9 @@ const Se = function(t) {
566
566
  y: o,
567
567
  placement: i
568
568
  } = e, {
569
- mainAxis: s = !0,
569
+ mainAxis: l = !0,
570
570
  crossAxis: r = !1,
571
- limiter: l = {
571
+ limiter: s = {
572
572
  fn: (v) => {
573
573
  let {
574
574
  x: h,
@@ -586,7 +586,7 @@ const Se = function(t) {
586
586
  y: o
587
587
  }, d = await rt(e, a), u = K(I(i)), p = Vt(u);
588
588
  let f = c[p], m = c[u];
589
- if (s) {
589
+ if (l) {
590
590
  const v = p === "y" ? "top" : "left", h = p === "y" ? "bottom" : "right", w = f + d[v], x = f - d[h];
591
591
  f = wt(w, f, x);
592
592
  }
@@ -594,7 +594,7 @@ const Se = function(t) {
594
594
  const v = u === "y" ? "top" : "left", h = u === "y" ? "bottom" : "right", w = m + d[v], x = m - d[h];
595
595
  m = wt(w, m, x);
596
596
  }
597
- const g = l.fn({
597
+ const g = s.fn({
598
598
  ...e,
599
599
  [p]: f,
600
600
  [u]: m
@@ -605,7 +605,7 @@ const Se = function(t) {
605
605
  x: g.x - n,
606
606
  y: g.y - o,
607
607
  enabled: {
608
- [p]: s,
608
+ [p]: l,
609
609
  [u]: r
610
610
  }
611
611
  }
@@ -636,10 +636,10 @@ function C(t) {
636
636
  function M(t) {
637
637
  return mt() ? t instanceof HTMLElement || t instanceof E(t).HTMLElement : !1;
638
638
  }
639
- function kt(t) {
639
+ function Bt(t) {
640
640
  return !mt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof E(t).ShadowRoot;
641
641
  }
642
- function lt(t) {
642
+ function st(t) {
643
643
  const {
644
644
  overflow: e,
645
645
  overflowX: n,
@@ -700,24 +700,24 @@ function Y(t) {
700
700
  // Step into the shadow DOM of the parent of a slotted node.
701
701
  t.assignedSlot || // DOM Element detected.
702
702
  t.parentNode || // ShadowRoot detected.
703
- kt(t) && t.host || // Fallback.
703
+ Bt(t) && t.host || // Fallback.
704
704
  $(t)
705
705
  );
706
- return kt(e) ? e.host : e;
706
+ return Bt(e) ? e.host : e;
707
707
  }
708
708
  function zt(t) {
709
709
  const e = Y(t);
710
- return ot(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : M(e) && lt(e) ? e : zt(e);
710
+ return ot(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : M(e) && st(e) ? e : zt(e);
711
711
  }
712
- function st(t, e, n) {
712
+ function lt(t, e, n) {
713
713
  var o;
714
714
  e === void 0 && (e = []), n === void 0 && (n = !0);
715
- const i = zt(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = E(i);
716
- if (s) {
717
- const l = vt(r);
718
- return e.concat(r, r.visualViewport || [], lt(i) ? i : [], l && n ? st(l) : []);
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
719
  }
720
- return e.concat(i, st(i, [], n));
720
+ return e.concat(i, lt(i, [], n));
721
721
  }
722
722
  function vt(t) {
723
723
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
@@ -725,11 +725,11 @@ function vt(t) {
725
725
  function Ut(t) {
726
726
  const e = P(t);
727
727
  let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
728
- const i = M(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, l = at(n) !== s || at(o) !== r;
729
- return l && (n = s, o = r), {
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
730
  width: n,
731
731
  height: o,
732
- $: l
732
+ $: s
733
733
  };
734
734
  }
735
735
  function Rt(t) {
@@ -738,19 +738,19 @@ function Rt(t) {
738
738
  function et(t) {
739
739
  const e = Rt(t);
740
740
  if (!M(e))
741
- return k(1);
741
+ return B(1);
742
742
  const n = e.getBoundingClientRect(), {
743
743
  width: o,
744
744
  height: i,
745
- $: s
745
+ $: l
746
746
  } = Ut(e);
747
- let r = (s ? at(n.width) : n.width) / o, l = (s ? at(n.height) : n.height) / i;
748
- return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
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
749
  x: r,
750
- y: l
750
+ y: s
751
751
  };
752
752
  }
753
- const Ce = /* @__PURE__ */ k(0);
753
+ const Ce = /* @__PURE__ */ B(0);
754
754
  function Yt(t) {
755
755
  const e = E(t);
756
756
  return !Tt() || !e.visualViewport ? Ce : {
@@ -763,13 +763,13 @@ function Pe(t, e, n) {
763
763
  }
764
764
  function J(t, e, n, o) {
765
765
  e === void 0 && (e = !1), n === void 0 && (n = !1);
766
- const i = t.getBoundingClientRect(), s = Rt(t);
767
- let r = k(1);
766
+ const i = t.getBoundingClientRect(), l = Rt(t);
767
+ let r = B(1);
768
768
  e && (o ? C(o) && (r = et(o)) : r = et(t));
769
- const l = Pe(s, n, o) ? Yt(s) : k(0);
770
- let a = (i.left + l.x) / r.x, c = (i.top + l.y) / r.y, d = i.width / r.x, u = i.height / r.y;
771
- if (s) {
772
- const p = E(s), f = o && C(o) ? E(o) : o;
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
773
  let m = p, g = vt(m);
774
774
  for (; g && o && f !== m; ) {
775
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;
@@ -792,10 +792,10 @@ function qt(t, e, n) {
792
792
  const o = t.getBoundingClientRect(), i = o.left + e.scrollLeft - (n ? 0 : (
793
793
  // RTL <body> scrollbar.
794
794
  St(t, o)
795
- )), s = o.top + e.scrollTop;
795
+ )), l = o.top + e.scrollTop;
796
796
  return {
797
797
  x: i,
798
- y: s
798
+ y: l
799
799
  };
800
800
  }
801
801
  function Fe(t) {
@@ -805,19 +805,19 @@ function Fe(t) {
805
805
  offsetParent: o,
806
806
  strategy: i
807
807
  } = t;
808
- const s = i === "fixed", r = $(o), l = e ? pt(e.floating) : !1;
809
- if (o === r || l && s)
808
+ const l = i === "fixed", r = $(o), s = e ? pt(e.floating) : !1;
809
+ if (o === r || s && l)
810
810
  return n;
811
811
  let a = {
812
812
  scrollLeft: 0,
813
813
  scrollTop: 0
814
- }, c = k(1);
815
- const d = k(0), u = M(o);
816
- if ((u || !u && !s) && ((Z(o) !== "body" || lt(r)) && (a = gt(o)), M(o))) {
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
817
  const f = J(o);
818
818
  c = et(o), d.x = f.x + o.clientLeft, d.y = f.y + o.clientTop;
819
819
  }
820
- const p = r && !u && !s ? qt(r, a, !0) : k(0);
820
+ const p = r && !u && !l ? qt(r, a, !0) : B(0);
821
821
  return {
822
822
  width: n.width * c.x,
823
823
  height: n.height * c.y,
@@ -825,50 +825,50 @@ function Fe(t) {
825
825
  y: n.y * c.y - a.scrollTop * c.y + d.y + p.y
826
826
  };
827
827
  }
828
- function _e(t) {
828
+ function ke(t) {
829
829
  return Array.from(t.getClientRects());
830
830
  }
831
- function ke(t) {
832
- const e = $(t), n = gt(t), o = t.ownerDocument.body, i = X(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = X(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
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
833
  let r = -n.scrollLeft + St(t);
834
- const l = -n.scrollTop;
834
+ const s = -n.scrollTop;
835
835
  return P(o).direction === "rtl" && (r += X(e.clientWidth, o.clientWidth) - i), {
836
836
  width: i,
837
- height: s,
837
+ height: l,
838
838
  x: r,
839
- y: l
839
+ y: s
840
840
  };
841
841
  }
842
- function Be(t, e) {
842
+ function _e(t, e) {
843
843
  const n = E(t), o = $(t), i = n.visualViewport;
844
- let s = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
844
+ let l = o.clientWidth, r = o.clientHeight, s = 0, a = 0;
845
845
  if (i) {
846
- s = i.width, r = i.height;
846
+ l = i.width, r = i.height;
847
847
  const c = Tt();
848
- (!c || c && e === "fixed") && (l = i.offsetLeft, a = i.offsetTop);
848
+ (!c || c && e === "fixed") && (s = i.offsetLeft, a = i.offsetTop);
849
849
  }
850
850
  return {
851
- width: s,
851
+ width: l,
852
852
  height: r,
853
- x: l,
853
+ x: s,
854
854
  y: a
855
855
  };
856
856
  }
857
857
  function Me(t, e) {
858
- const n = J(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = M(t) ? et(t) : k(1), r = t.clientWidth * s.x, l = t.clientHeight * s.y, a = i * s.x, c = o * s.y;
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
859
  return {
860
860
  width: r,
861
- height: l,
861
+ height: s,
862
862
  x: a,
863
863
  y: c
864
864
  };
865
865
  }
866
- function Bt(t, e, n) {
866
+ function _t(t, e, n) {
867
867
  let o;
868
868
  if (e === "viewport")
869
- o = Be(t, n);
869
+ o = _e(t, n);
870
870
  else if (e === "document")
871
- o = ke($(t));
871
+ o = Be($(t));
872
872
  else if (C(e))
873
873
  o = Me(e, n);
874
874
  else {
@@ -890,12 +890,12 @@ function $e(t, e) {
890
890
  const n = e.get(t);
891
891
  if (n)
892
892
  return n;
893
- let o = st(t, [], !1).filter((l) => C(l) && Z(l) !== "body"), i = null;
894
- const s = P(t).position === "fixed";
895
- let r = s ? Y(t) : t;
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
896
  for (; C(r) && !ot(r); ) {
897
- const l = P(r), a = At(r);
898
- !a && l.position === "fixed" && (i = null), (s ? !a && !i : !a && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || lt(r) && !a && Gt(t, r)) ? o = o.filter((d) => d !== r) : i = l, r = Y(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
899
  }
900
900
  return e.set(t, o), o;
901
901
  }
@@ -906,10 +906,10 @@ function He(t) {
906
906
  rootBoundary: o,
907
907
  strategy: i
908
908
  } = t;
909
- const r = [...n === "clippingAncestors" ? pt(e) ? [] : $e(e, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, d) => {
910
- const u = Bt(e, d, i);
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
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
- }, Bt(e, l, i));
912
+ }, _t(e, s, i));
913
913
  return {
914
914
  width: a.right - a.left,
915
915
  height: a.bottom - a.top,
@@ -928,18 +928,18 @@ function Ne(t) {
928
928
  };
929
929
  }
930
930
  function We(t, e, n) {
931
- const o = M(e), i = $(e), s = n === "fixed", r = J(t, !0, s, e);
932
- let l = {
931
+ const o = M(e), i = $(e), l = n === "fixed", r = J(t, !0, l, e);
932
+ let s = {
933
933
  scrollLeft: 0,
934
934
  scrollTop: 0
935
935
  };
936
- const a = k(0);
937
- if (o || !o && !s)
938
- if ((Z(e) !== "body" || lt(i)) && (l = gt(e)), o) {
939
- const p = J(e, !0, s, e);
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
940
  a.x = p.x + e.clientLeft, a.y = p.y + e.clientTop;
941
941
  } else i && (a.x = St(i));
942
- const c = i && !o && !s ? qt(i, l) : k(0), d = r.left + l.scrollLeft - a.x - c.x, u = r.top + l.scrollTop - a.y - c.y;
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
943
  return {
944
944
  x: d,
945
945
  y: u,
@@ -997,7 +997,7 @@ const je = {
997
997
  getClippingRect: He,
998
998
  getOffsetParent: Xt,
999
999
  getElementRects: Ve,
1000
- getClientRects: _e,
1000
+ getClientRects: ke,
1001
1001
  getDimensions: Ne,
1002
1002
  getScale: et,
1003
1003
  isElement: C,
@@ -1006,19 +1006,19 @@ const je = {
1006
1006
  function ze(t, e) {
1007
1007
  let n = null, o;
1008
1008
  const i = $(t);
1009
- function s() {
1010
- var l;
1011
- clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
1009
+ function l() {
1010
+ var s;
1011
+ clearTimeout(o), (s = n) == null || s.disconnect(), n = null;
1012
1012
  }
1013
- function r(l, a) {
1014
- l === void 0 && (l = !1), a === void 0 && (a = 1), s();
1013
+ function r(s, a) {
1014
+ s === void 0 && (s = !1), a === void 0 && (a = 1), l();
1015
1015
  const {
1016
1016
  left: c,
1017
1017
  top: d,
1018
1018
  width: u,
1019
1019
  height: p
1020
1020
  } = t.getBoundingClientRect();
1021
- if (l || e(), !u || !p)
1021
+ if (s || e(), !u || !p)
1022
1022
  return;
1023
1023
  const f = ct(d), m = ct(i.clientWidth - (c + u)), g = ct(i.clientHeight - (d + p)), v = ct(c), w = {
1024
1024
  rootMargin: -f + "px " + -m + "px " + -g + "px " + -v + "px",
@@ -1047,23 +1047,23 @@ function ze(t, e) {
1047
1047
  }
1048
1048
  n.observe(t);
1049
1049
  }
1050
- return r(!0), s;
1050
+ return r(!0), l;
1051
1051
  }
1052
1052
  function $t(t, e, n, o) {
1053
1053
  o === void 0 && (o = {});
1054
1054
  const {
1055
1055
  ancestorScroll: i = !0,
1056
- ancestorResize: s = !0,
1056
+ ancestorResize: l = !0,
1057
1057
  elementResize: r = typeof ResizeObserver == "function",
1058
- layoutShift: l = typeof IntersectionObserver == "function",
1058
+ layoutShift: s = typeof IntersectionObserver == "function",
1059
1059
  animationFrame: a = !1
1060
- } = o, c = Rt(t), d = i || s ? [...c ? st(c) : [], ...st(e)] : [];
1060
+ } = o, c = Rt(t), d = i || l ? [...c ? lt(c) : [], ...lt(e)] : [];
1061
1061
  d.forEach((h) => {
1062
1062
  i && h.addEventListener("scroll", n, {
1063
1063
  passive: !0
1064
- }), s && h.addEventListener("resize", n);
1064
+ }), l && h.addEventListener("resize", n);
1065
1065
  });
1066
- const u = c && l ? ze(c, n) : null;
1066
+ const u = c && s ? ze(c, n) : null;
1067
1067
  let p = -1, f = null;
1068
1068
  r && (f = new ResizeObserver((h) => {
1069
1069
  let [w] = h;
@@ -1081,7 +1081,7 @@ function $t(t, e, n, o) {
1081
1081
  return n(), () => {
1082
1082
  var h;
1083
1083
  d.forEach((w) => {
1084
- i && w.removeEventListener("scroll", n), s && w.removeEventListener("resize", n);
1084
+ i && w.removeEventListener("scroll", n), l && w.removeEventListener("resize", n);
1085
1085
  }), u == null || u(), (h = f) == null || h.disconnect(), f = null, a && cancelAnimationFrame(m);
1086
1086
  };
1087
1087
  }
@@ -1089,13 +1089,13 @@ const Ue = Se, Ye = Oe, qe = Ee, Ge = Ae, an = Te, Xe = xe, Ke = (t, e, n) => {
1089
1089
  const o = /* @__PURE__ */ new Map(), i = {
1090
1090
  platform: je,
1091
1091
  ...n
1092
- }, s = {
1092
+ }, l = {
1093
1093
  ...i.platform,
1094
1094
  _c: o
1095
1095
  };
1096
1096
  return ye(t, e, {
1097
1097
  ...i,
1098
- platform: s
1098
+ platform: l
1099
1099
  });
1100
1100
  };
1101
1101
  function Je(t) {
@@ -1133,16 +1133,16 @@ function Ze(t, e, n) {
1133
1133
  const o = n.whileElementsMounted, i = R(() => {
1134
1134
  var b;
1135
1135
  return (b = V(n.open)) != null ? b : !0;
1136
- }), s = R(() => V(n.middleware)), r = R(() => {
1136
+ }), l = R(() => V(n.middleware)), r = R(() => {
1137
1137
  var b;
1138
1138
  return (b = V(n.placement)) != null ? b : "bottom";
1139
- }), l = R(() => {
1139
+ }), s = R(() => {
1140
1140
  var b;
1141
1141
  return (b = V(n.strategy)) != null ? b : "absolute";
1142
1142
  }), a = R(() => {
1143
1143
  var b;
1144
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(l.value), m = U(r.value), g = ee({}), v = U(!1), h = R(() => {
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
1146
  const b = {
1147
1147
  position: f.value,
1148
1148
  left: "0",
@@ -1166,9 +1166,9 @@ function Ze(t, e, n) {
1166
1166
  let w;
1167
1167
  function x() {
1168
1168
  c.value == null || d.value == null || Ke(c.value, d.value, {
1169
- middleware: s.value,
1169
+ middleware: l.value,
1170
1170
  placement: r.value,
1171
- strategy: l.value
1171
+ strategy: s.value
1172
1172
  }).then((b) => {
1173
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
1174
  });
@@ -1189,7 +1189,7 @@ function Ze(t, e, n) {
1189
1189
  function T() {
1190
1190
  i.value || (v.value = !1);
1191
1191
  }
1192
- return it([s, r, l], x, {
1192
+ return it([l, r, s], x, {
1193
1193
  flush: "sync"
1194
1194
  }), it([c, d], y, {
1195
1195
  flush: "sync"
@@ -1297,15 +1297,22 @@ const Nt = { ...Jt, ...Qt }, tn = (t, e) => t ? e[1] + 7 : e[1], en = (t) => {
1297
1297
  /**
1298
1298
  * Activates focus trap for both arrow and tab keys.
1299
1299
  */
1300
- trapAll: { type: Boolean, default: !1 }
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
+ }
1301
1308
  },
1302
1309
  emits: ["placement"],
1303
1310
  setup(t, { emit: e }) {
1304
1311
  var O;
1305
- const n = t, o = e, { position: i } = re(n), s = U(), r = U(null), l = U(n.position), a = R(
1312
+ const n = t, o = e, { position: i } = re(n), l = U(), r = U(null), s = U(n.position), a = R(
1306
1313
  () => n.targetElement.$el ? n.targetElement.$el : n.targetElement
1307
1314
  ), c = R(
1308
- () => s.value.$el ? s.value.$el : s.value
1315
+ () => l.value.$el ? l.value.$el : l.value
1309
1316
  ), d = R(() => (n == null ? void 0 : n.position) !== "auto" && (n == null ? void 0 : n.fallbackPosition) !== "auto"), u = R(() => {
1310
1317
  switch (n.position) {
1311
1318
  case "auto-start":
@@ -1315,7 +1322,7 @@ const Nt = { ...Jt, ...Qt }, tn = (t, e) => t ? e[1] + 7 : e[1], en = (t) => {
1315
1322
  default:
1316
1323
  return;
1317
1324
  }
1318
- }), p = R(() => n.fixedPositioning ? "fixed" : "absolute"), { floatingStyles: f, middlewareData: m, placement: g, update: v } = Ze(a, s, {
1325
+ }), p = R(() => n.fixedPositioning ? "fixed" : "absolute"), { floatingStyles: f, middlewareData: m, placement: g, update: v } = Ze(a, l, {
1319
1326
  placement: i,
1320
1327
  middleware: [
1321
1328
  // Adds flip modifier if fallbackPosition is not set to auto
@@ -1350,7 +1357,7 @@ const Nt = { ...Jt, ...Qt }, tn = (t, e) => t ? e[1] + 7 : e[1], en = (t) => {
1350
1357
  ), it(
1351
1358
  () => g.value,
1352
1359
  () => {
1353
- l.value !== g.value && (l.value = g.value, o("placement", l.value));
1360
+ s.value !== g.value && (s.value = g.value, o("placement", s.value));
1354
1361
  }
1355
1362
  );
1356
1363
  const w = R(() => {
@@ -1369,18 +1376,19 @@ const Nt = { ...Jt, ...Qt }, tn = (t, e) => t ? e[1] + 7 : e[1], en = (t) => {
1369
1376
  ...((y = m.value.arrow) == null ? void 0 : y.centerOffset) !== 0 ? { "data-hide": "" } : {}
1370
1377
  };
1371
1378
  });
1372
- return (y, T) => (Et(), se(V(ue), Dt(y.$attrs, {
1379
+ return (y, T) => (Et(), le(V(ue), Dt(y.$attrs, {
1373
1380
  id: t.id,
1374
1381
  ref_key: "popperContainerRef",
1375
- ref: s,
1382
+ ref: l,
1376
1383
  class: "b-popper-container",
1377
1384
  "data-popper-placement": V(g),
1378
1385
  disabled: t.disabledFocusTrap,
1379
1386
  style: V(f),
1380
1387
  role: t.ariaRole,
1381
- "trap-all": t.trapAll
1388
+ "trap-all": t.trapAll,
1389
+ "trap-all-options": t.trapAllOptions
1382
1390
  }), {
1383
- default: le(() => [
1391
+ default: se(() => [
1384
1392
  ce(y.$slots, "default", {}, void 0, !0),
1385
1393
  n.arrow ? (Et(), ae("span", Dt({ key: 0 }, x.value, {
1386
1394
  ref_key: "floatingArrow",
@@ -1390,9 +1398,9 @@ const Nt = { ...Jt, ...Qt }, tn = (t, e) => t ? e[1] + 7 : e[1], en = (t) => {
1390
1398
  }), null, 16)) : fe("", !0)
1391
1399
  ]),
1392
1400
  _: 3
1393
- }, 16, ["id", "data-popper-placement", "disabled", "style", "role", "trap-all"]));
1401
+ }, 16, ["id", "data-popper-placement", "disabled", "style", "role", "trap-all", "trap-all-options"]));
1394
1402
  }
1395
- }), fn = /* @__PURE__ */ de(rn, [["__scopeId", "data-v-a26f7731"]]);
1403
+ }), fn = /* @__PURE__ */ de(rn, [["__scopeId", "data-v-b63b4261"]]);
1396
1404
  export {
1397
1405
  fn as P,
1398
1406
  Jt as a,
@@ -1402,4 +1410,4 @@ export {
1402
1410
  an as h,
1403
1411
  Ue as o
1404
1412
  };
1405
- //# sourceMappingURL=popper-container.bSdMC3hi.js.map
1413
+ //# sourceMappingURL=popper-container.5cq-eu41.js.map