@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,10 +1,10 @@
1
- import { ref as z, onUnmounted as De, isRef as nt, watch as Re, computed as U, onMounted as at, onBeforeUnmount as it, defineComponent as ot, useSlots as ut, createElementBlock as ct, createCommentVNode as st, unref as R, openBlock as lt, mergeProps as ft, toHandlers as dt, withKeys as vt, renderSlot as bt } from "vue";
2
- import { u as mt } from "./use-has-slot.B7eQSabc.js";
3
- import { h as pt, i as ht, j as yt } from "./index.E60QniEu.js";
4
- import { _ as gt } from "./_plugin-vue_export-helper.CHgC5LLL.js";
1
+ import { ref as z, onUnmounted as De, isRef as nt, watch as Re, computed as U, onMounted as at, onBeforeUnmount as it, defineComponent as ot, useSlots as ut, toRef as ct, createElementBlock as st, createCommentVNode as lt, unref as R, openBlock as ft, mergeProps as dt, toHandlers as vt, withKeys as bt, renderSlot as mt } from "vue";
2
+ import { u as pt } from "./use-has-slot.B7eQSabc.js";
3
+ import { h as ht, i as yt, j as gt } from "./index.E60QniEu.js";
4
+ import { _ as wt } from "./_plugin-vue_export-helper.CHgC5LLL.js";
5
5
  import "../assets/focus-trap.css";
6
- const wt = (t) => {
7
- const e = z(null), { stop: r } = pt(
6
+ const Nt = (t) => {
7
+ const e = z(null), { stop: r } = ht(
8
8
  t,
9
9
  (i) => {
10
10
  let u = !1;
@@ -64,7 +64,7 @@ var Le = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
64
64
  r === void 0 && (r = !0);
65
65
  var i = e == null || (n = e.getAttribute) === null || n === void 0 ? void 0 : n.call(e, "inert"), u = i === "" || i === "true", a = u || r && e && t(e.parentNode);
66
66
  return a;
67
- }, Nt = function(e) {
67
+ }, Et = function(e) {
68
68
  var r, n = e == null || (r = e.getAttribute) === null || r === void 0 ? void 0 : r.call(e, "contenteditable");
69
69
  return n === "" || n === "true";
70
70
  }, _e = function(e, r, n) {
@@ -103,26 +103,26 @@ var Le = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
103
103
  }, P = function(e) {
104
104
  if (!e)
105
105
  throw new Error("No node provided");
106
- return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || Nt(e)) && !Ke(e) ? 0 : e.tabIndex;
107
- }, Et = function(e, r) {
106
+ return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || Et(e)) && !Ke(e) ? 0 : e.tabIndex;
107
+ }, Tt = function(e, r) {
108
108
  var n = P(e);
109
109
  return n < 0 && r && !Ke(e) ? 0 : n;
110
- }, Tt = function(e, r) {
110
+ }, Ot = function(e, r) {
111
111
  return e.tabIndex === r.tabIndex ? e.documentOrder - r.documentOrder : e.tabIndex - r.tabIndex;
112
112
  }, Ue = function(e) {
113
113
  return e.tagName === "INPUT";
114
- }, Ot = function(e) {
115
- return Ue(e) && e.type === "hidden";
116
114
  }, Ft = function(e) {
115
+ return Ue(e) && e.type === "hidden";
116
+ }, At = function(e) {
117
117
  var r = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(n) {
118
118
  return n.tagName === "SUMMARY";
119
119
  });
120
120
  return r;
121
- }, At = function(e, r) {
121
+ }, It = function(e, r) {
122
122
  for (var n = 0; n < e.length; n++)
123
123
  if (e[n].checked && e[n].form === r)
124
124
  return e[n];
125
- }, It = function(e) {
125
+ }, St = function(e) {
126
126
  if (!e.name)
127
127
  return !0;
128
128
  var r = e.form || H(e), n = function(s) {
@@ -136,13 +136,13 @@ var Le = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
136
136
  } catch (a) {
137
137
  return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", a.message), !1;
138
138
  }
139
- var u = At(i, e.form);
139
+ var u = It(i, e.form);
140
140
  return !u || u === e;
141
- }, St = function(e) {
142
- return Ue(e) && e.type === "radio";
143
141
  }, xt = function(e) {
144
- return St(e) && !It(e);
142
+ return Ue(e) && e.type === "radio";
145
143
  }, kt = function(e) {
144
+ return xt(e) && !St(e);
145
+ }, Pt = function(e) {
146
146
  var r, n = e && H(e), i = (r = n) === null || r === void 0 ? void 0 : r.host, u = !1;
147
147
  if (n && n !== e) {
148
148
  var a, s, l;
@@ -155,7 +155,7 @@ var Le = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
155
155
  }, Te = function(e) {
156
156
  var r = e.getBoundingClientRect(), n = r.width, i = r.height;
157
157
  return n === 0 && i === 0;
158
- }, Pt = function(e, r) {
158
+ }, Ct = function(e, r) {
159
159
  var n = r.displayCheck, i = r.getShadowRoot;
160
160
  if (getComputedStyle(e).visibility === "hidden")
161
161
  return !0;
@@ -172,14 +172,14 @@ var Le = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
172
172
  }
173
173
  e = s;
174
174
  }
175
- if (kt(e))
175
+ if (Pt(e))
176
176
  return !e.getClientRects().length;
177
177
  if (n !== "legacy-full")
178
178
  return !0;
179
179
  } else if (n === "non-zero-area")
180
180
  return Te(e);
181
181
  return !1;
182
- }, Ct = function(e) {
182
+ }, Dt = function(e) {
183
183
  if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
184
184
  for (var r = e.parentElement; r; ) {
185
185
  if (r.tagName === "FIELDSET" && r.disabled) {
@@ -197,17 +197,17 @@ var Le = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
197
197
  return !(r.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
198
198
  // because we're limited in the type of selectors we can use in JSDom (see related
199
199
  // note related to `candidateSelectors`)
200
- q(r) || Ot(r) || Pt(r, e) || // For a details element with a summary, the summary element gets the focus
201
- Ft(r) || Ct(r));
200
+ q(r) || Ft(r) || Ct(r, e) || // For a details element with a summary, the summary element gets the focus
201
+ At(r) || Dt(r));
202
202
  }, ae = function(e, r) {
203
- return !(xt(r) || P(r) < 0 || !$(e, r));
204
- }, Dt = function(e) {
203
+ return !(kt(r) || P(r) < 0 || !$(e, r));
204
+ }, Rt = function(e) {
205
205
  var r = parseInt(e.getAttribute("tabindex"), 10);
206
206
  return !!(isNaN(r) || r >= 0);
207
- }, Rt = function t(e) {
207
+ }, Lt = function t(e) {
208
208
  var r = [], n = [];
209
209
  return e.forEach(function(i, u) {
210
- var a = !!i.scopeParent, s = a ? i.scopeParent : i, l = Et(s, a), d = a ? t(i.candidates) : s;
210
+ var a = !!i.scopeParent, s = a ? i.scopeParent : i, l = Tt(s, a), d = a ? t(i.candidates) : s;
211
211
  l === 0 ? a ? r.push.apply(r, d) : r.push(s) : n.push({
212
212
  documentOrder: u,
213
213
  tabIndex: l,
@@ -215,19 +215,19 @@ var Le = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
215
215
  isScope: a,
216
216
  content: d
217
217
  });
218
- }), n.sort(Tt).reduce(function(i, u) {
218
+ }), n.sort(Ot).reduce(function(i, u) {
219
219
  return u.isScope ? i.push.apply(i, u.content) : i.push(u.content), i;
220
220
  }, []).concat(r);
221
- }, Lt = function(e, r) {
221
+ }, Bt = function(e, r) {
222
222
  r = r || {};
223
223
  var n;
224
224
  return r.getShadowRoot ? n = Me([e], r.includeContainer, {
225
225
  filter: ae.bind(null, r),
226
226
  flatten: !1,
227
227
  getShadowRoot: r.getShadowRoot,
228
- shadowRootFilter: Dt
229
- }) : n = _e(e, r.includeContainer, ae.bind(null, r)), Rt(n);
230
- }, Bt = function(e, r) {
228
+ shadowRootFilter: Rt
229
+ }) : n = _e(e, r.includeContainer, ae.bind(null, r)), Lt(n);
230
+ }, _t = function(e, r) {
231
231
  r = r || {};
232
232
  var n;
233
233
  return r.getShadowRoot ? n = Me([e], r.includeContainer, {
@@ -239,10 +239,10 @@ var Le = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
239
239
  if (r = r || {}, !e)
240
240
  throw new Error("No node provided");
241
241
  return C.call(e, G) === !1 ? !1 : ae(r, e);
242
- }, _t = /* @__PURE__ */ Le.concat("iframe").join(","), ee = function(e, r) {
242
+ }, Mt = /* @__PURE__ */ Le.concat("iframe").join(","), ee = function(e, r) {
243
243
  if (r = r || {}, !e)
244
244
  throw new Error("No node provided");
245
- return C.call(e, _t) === !1 ? !1 : $(r, e);
245
+ return C.call(e, Mt) === !1 ? !1 : $(r, e);
246
246
  };
247
247
  /*!
248
248
  * focus-trap 7.6.4
@@ -253,21 +253,21 @@ function ie(t, e) {
253
253
  for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
254
254
  return n;
255
255
  }
256
- function Mt(t) {
256
+ function Kt(t) {
257
257
  if (Array.isArray(t)) return ie(t);
258
258
  }
259
- function Kt(t, e, r) {
260
- return (e = Gt(e)) in t ? Object.defineProperty(t, e, {
259
+ function Ut(t, e, r) {
260
+ return (e = Ht(e)) in t ? Object.defineProperty(t, e, {
261
261
  value: r,
262
262
  enumerable: !0,
263
263
  configurable: !0,
264
264
  writable: !0
265
265
  }) : t[e] = r, t;
266
266
  }
267
- function Ut(t) {
267
+ function jt(t) {
268
268
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
269
269
  }
270
- function jt() {
270
+ function Vt() {
271
271
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
272
272
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
273
273
  }
@@ -285,17 +285,17 @@ function Fe(t) {
285
285
  for (var e = 1; e < arguments.length; e++) {
286
286
  var r = arguments[e] != null ? arguments[e] : {};
287
287
  e % 2 ? Oe(Object(r), !0).forEach(function(n) {
288
- Kt(t, n, r[n]);
288
+ Ut(t, n, r[n]);
289
289
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Oe(Object(r)).forEach(function(n) {
290
290
  Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
291
291
  });
292
292
  }
293
293
  return t;
294
294
  }
295
- function Vt(t) {
296
- return Mt(t) || Ut(t) || Ht(t) || jt();
295
+ function Wt(t) {
296
+ return Kt(t) || jt(t) || qt(t) || Vt();
297
297
  }
298
- function Wt(t, e) {
298
+ function Gt(t, e) {
299
299
  if (typeof t != "object" || !t) return t;
300
300
  var r = t[Symbol.toPrimitive];
301
301
  if (r !== void 0) {
@@ -305,11 +305,11 @@ function Wt(t, e) {
305
305
  }
306
306
  return (e === "string" ? String : Number)(t);
307
307
  }
308
- function Gt(t) {
309
- var e = Wt(t, "string");
308
+ function Ht(t) {
309
+ var e = Gt(t, "string");
310
310
  return typeof e == "symbol" ? e : e + "";
311
311
  }
312
- function Ht(t, e) {
312
+ function qt(t, e) {
313
313
  if (t) {
314
314
  if (typeof t == "string") return ie(t, e);
315
315
  var r = {}.toString.call(t).slice(8, -1);
@@ -329,15 +329,15 @@ var Ae = {
329
329
  var n = e.indexOf(r);
330
330
  n !== -1 && e.splice(n, 1), e.length > 0 && !e[e.length - 1]._isManuallyPaused() && e[e.length - 1]._setPausedState(!1);
331
331
  }
332
- }, qt = function(e) {
333
- return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
334
332
  }, $t = function(e) {
333
+ return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
334
+ }, Yt = function(e) {
335
335
  return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
336
336
  }, j = function(e) {
337
337
  return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9;
338
- }, Yt = function(e) {
339
- return j(e) && !e.shiftKey;
340
338
  }, Zt = function(e) {
339
+ return j(e) && !e.shiftKey;
340
+ }, zt = function(e) {
341
341
  return j(e) && e.shiftKey;
342
342
  }, Ie = function(e) {
343
343
  return setTimeout(e, 0);
@@ -347,13 +347,13 @@ var Ae = {
347
347
  return typeof e == "function" ? e.apply(void 0, n) : e;
348
348
  }, W = function(e) {
349
349
  return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
350
- }, zt = [], Xt = function(e, r) {
351
- var n = (r == null ? void 0 : r.document) || document, i = (r == null ? void 0 : r.trapStack) || zt, u = Fe({
350
+ }, Xt = [], Jt = function(e, r) {
351
+ var n = (r == null ? void 0 : r.document) || document, i = (r == null ? void 0 : r.trapStack) || Xt, u = Fe({
352
352
  returnFocusOnDeactivate: !0,
353
353
  escapeDeactivates: !0,
354
354
  delayInitialFocus: !0,
355
- isKeyForward: Yt,
356
- isKeyBackward: Zt
355
+ isKeyForward: Zt,
356
+ isKeyBackward: zt
357
357
  }, r), a = {
358
358
  // containers given to createFocusTrap()
359
359
  // @type {Array<HTMLElement>}
@@ -407,7 +407,7 @@ var Ae = {
407
407
  });
408
408
  }, h = function(o) {
409
409
  var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = c.hasFallback, p = f === void 0 ? !1 : f, y = c.params, E = y === void 0 ? [] : y, m = u[o];
410
- if (typeof m == "function" && (m = m.apply(void 0, Vt(E))), m === !0 && (m = void 0), !m) {
410
+ if (typeof m == "function" && (m = m.apply(void 0, Wt(E))), m === !0 && (m = void 0), !m) {
411
411
  if (m === void 0 || m === !1)
412
412
  return m;
413
413
  throw new Error("`".concat(o, "` was specified but was not a node, or did not return a node"));
@@ -442,7 +442,7 @@ var Ae = {
442
442
  return o;
443
443
  }, b = function() {
444
444
  if (a.containerGroups = a.containers.map(function(o) {
445
- var c = Lt(o, u.tabbableOptions), f = Bt(o, u.tabbableOptions), p = c.length > 0 ? c[0] : void 0, y = c.length > 0 ? c[c.length - 1] : void 0, E = f.find(function(O) {
445
+ var c = Bt(o, u.tabbableOptions), f = _t(o, u.tabbableOptions), p = c.length > 0 ? c[0] : void 0, y = c.length > 0 ? c[c.length - 1] : void 0, E = f.find(function(O) {
446
446
  return L(O);
447
447
  }), m = f.slice().reverse().find(function(O) {
448
448
  return L(O);
@@ -507,7 +507,7 @@ var Ae = {
507
507
  }
508
508
  o.focus({
509
509
  preventScroll: !!u.preventScroll
510
- }), a.mostRecentlyFocusedNode = o, qt(o) && o.select();
510
+ }), a.mostRecentlyFocusedNode = o, $t(o) && o.select();
511
511
  }
512
512
  }, F = function(o) {
513
513
  var c = h("setReturnFocus", {
@@ -604,7 +604,7 @@ var Ae = {
604
604
  }, he = function(o) {
605
605
  (u.isKeyForward(o) || u.isKeyBackward(o)) && pe(o, u.isKeyBackward(o));
606
606
  }, ye = function(o) {
607
- $t(o) && K(u.escapeDeactivates, o) !== !1 && (o.preventDefault(), s.deactivate());
607
+ Yt(o) && K(u.escapeDeactivates, o) !== !1 && (o.preventDefault(), s.deactivate());
608
608
  }, ge = function(o) {
609
609
  var c = W(o);
610
610
  d(c, o) >= 0 || K(u.clickOutsideDeactivates, o) || K(u.allowOutsideClick, o) || (o.preventDefault(), o.stopImmediatePropagation());
@@ -713,26 +713,30 @@ var Ae = {
713
713
  }
714
714
  }), s.updateContainerElements(e), s;
715
715
  };
716
- const Jt = (t, e) => {
717
- const r = z(null), n = ht(t);
716
+ const Qt = (t, e, r) => {
717
+ const n = z(null), i = yt(t);
718
718
  Re(
719
- [() => yt(t), () => e.value, n],
720
- ([i, u, a]) => {
721
- !i || !u || !a || (r.value ? (r.value.updateContainerElements(i), r.value.active || r.value.activate()) : (r.value = Xt(i, { delayInitialFocus: !1, fallbackFocus: i }), r.value.activate()));
719
+ [() => gt(t), () => e.value, i, r],
720
+ ([u, a, s, l]) => {
721
+ !u || !a || !s || (n.value ? (n.value.updateContainerElements(u), n.value.active || n.value.activate()) : (n.value = Jt(u, {
722
+ delayInitialFocus: !1,
723
+ fallbackFocus: u,
724
+ ...l
725
+ }), n.value.activate()));
722
726
  },
723
727
  { flush: "post" }
724
728
  ), De(() => {
725
- var i;
726
- e.value && ((i = r.value) == null || i.deactivate());
729
+ var u;
730
+ e.value && ((u = n.value) == null || u.deactivate());
727
731
  });
728
732
  };
729
- var Se = "data-focus-lock", Qt = "data-focus-lock-disabled", er = "data-no-focus-lock", tr = "data-autofocus-inside", rr = "data-no-autofocus", A = function(t) {
733
+ var Se = "data-focus-lock", er = "data-focus-lock-disabled", tr = "data-no-focus-lock", rr = "data-autofocus-inside", nr = "data-no-autofocus", A = function(t) {
730
734
  for (var e = Array(t.length), r = 0; r < t.length; ++r)
731
735
  e[r] = t[r];
732
736
  return e;
733
737
  }, oe = function(t) {
734
738
  return Array.isArray(t) ? t : [t];
735
- }, nr = function(t) {
739
+ }, ar = function(t) {
736
740
  if (t.nodeType !== Node.ELEMENT_NODE)
737
741
  return !1;
738
742
  var e = window.getComputedStyle(t, null);
@@ -744,43 +748,43 @@ var Se = "data-focus-lock", Qt = "data-focus-lock-disabled", er = "data-no-focus
744
748
  ) : t.parentNode;
745
749
  }, Ve = function(t) {
746
750
  return t === document || t && t.nodeType === Node.DOCUMENT_NODE;
747
- }, ar = function(t, e) {
748
- return !t || Ve(t) || !nr(t) && e(je(t));
751
+ }, ir = function(t, e) {
752
+ return !t || Ve(t) || !ar(t) && e(je(t));
749
753
  }, We = function(t, e) {
750
754
  var r = t.get(e);
751
755
  if (r !== void 0)
752
756
  return r;
753
- var n = ar(e, We.bind(void 0, t));
757
+ var n = ir(e, We.bind(void 0, t));
754
758
  return t.set(e, n), n;
755
- }, ir = function(t, e) {
756
- return t && !Ve(t) ? cr(t) ? e(je(t)) : !1 : !0;
759
+ }, or = function(t, e) {
760
+ return t && !Ve(t) ? sr(t) ? e(je(t)) : !1 : !0;
757
761
  }, Ge = function(t, e) {
758
762
  var r = t.get(e);
759
763
  if (r !== void 0)
760
764
  return r;
761
- var n = ir(e, Ge.bind(void 0, t));
765
+ var n = or(e, Ge.bind(void 0, t));
762
766
  return t.set(e, n), n;
763
767
  }, He = function(t) {
764
768
  return t.dataset;
765
- }, or = function(t) {
769
+ }, ur = function(t) {
766
770
  return t.tagName === "BUTTON";
767
771
  }, qe = function(t) {
768
772
  return t.tagName === "INPUT";
769
773
  }, $e = function(t) {
770
774
  return qe(t) && t.type === "radio";
771
- }, ur = function(t) {
772
- return !((qe(t) || or(t)) && (t.type === "hidden" || t.disabled));
773
775
  }, cr = function(t) {
774
- var e = t.getAttribute(rr);
776
+ return !((qe(t) || ur(t)) && (t.type === "hidden" || t.disabled));
777
+ }, sr = function(t) {
778
+ var e = t.getAttribute(nr);
775
779
  return ![!0, "true", ""].includes(e);
776
780
  }, se = function(t) {
777
781
  var e;
778
782
  return !!(t && (!((e = He(t)) === null || e === void 0) && e.focusGuard));
779
783
  }, Y = function(t) {
780
784
  return !se(t);
781
- }, sr = function(t) {
785
+ }, lr = function(t) {
782
786
  return !!t;
783
- }, lr = function(t, e) {
787
+ }, fr = function(t, e) {
784
788
  var r = t.tabIndex - e.tabIndex, n = t.index - e.index;
785
789
  if (r) {
786
790
  if (!t.tabIndex)
@@ -798,8 +802,8 @@ var Se = "data-focus-lock", Qt = "data-focus-lock-disabled", er = "data-no-focus
798
802
  };
799
803
  }).filter(function(n) {
800
804
  return !e || n.tabIndex >= 0;
801
- }).sort(lr);
802
- }, fr = [
805
+ }).sort(fr);
806
+ }, dr = [
803
807
  "button:enabled",
804
808
  "select:enabled",
805
809
  "textarea:enabled",
@@ -817,10 +821,10 @@ var Se = "data-focus-lock", Qt = "data-focus-lock-disabled", er = "data-no-focus
817
821
  "[tabindex]",
818
822
  "[contenteditable]",
819
823
  "[autofocus]"
820
- ], le = fr.join(","), dr = "".concat(le, ", [data-focus-guard]"), Ze = function(t, e) {
824
+ ], le = dr.join(","), vr = "".concat(le, ", [data-focus-guard]"), Ze = function(t, e) {
821
825
  var r;
822
826
  return A(((r = t.shadowRoot) === null || r === void 0 ? void 0 : r.children) || t.children).reduce(function(n, i) {
823
- return n.concat(i.matches(e ? dr : le) ? [i] : [], Ze(i));
827
+ return n.concat(i.matches(e ? vr : le) ? [i] : [], Ze(i));
824
828
  }, []);
825
829
  }, fe = function(t, e) {
826
830
  return t.reduce(function(r, n) {
@@ -833,8 +837,8 @@ var Se = "data-focus-lock", Qt = "data-focus-lock-disabled", er = "data-no-focus
833
837
  }) : []
834
838
  );
835
839
  }, []);
836
- }, vr = function(t) {
837
- var e = t.querySelectorAll("[".concat(tr, "]"));
840
+ }, br = function(t) {
841
+ var e = t.querySelectorAll("[".concat(rr, "]"));
838
842
  return A(e).map(function(r) {
839
843
  return fe([r]);
840
844
  }).reduce(function(r, n) {
@@ -844,7 +848,7 @@ var Se = "data-focus-lock", Qt = "data-focus-lock-disabled", er = "data-no-focus
844
848
  return A(t).filter(function(r) {
845
849
  return We(e, r);
846
850
  }).filter(function(r) {
847
- return ur(r);
851
+ return cr(r);
848
852
  });
849
853
  }, xe = function(t, e) {
850
854
  return e === void 0 && (e = /* @__PURE__ */ new Map()), A(t).filter(function(r) {
@@ -854,13 +858,13 @@ var Se = "data-focus-lock", Qt = "data-focus-lock-disabled", er = "data-no-focus
854
858
  return Ye(de(fe(t, r), e), !0, r);
855
859
  }, ke = function(t, e) {
856
860
  return Ye(de(fe(t), e), !1);
857
- }, br = function(t, e) {
858
- return de(vr(t), e);
861
+ }, mr = function(t, e) {
862
+ return de(br(t), e);
859
863
  }, V = function(t, e) {
860
864
  return (t.shadowRoot ? V(t.shadowRoot, e) : t.contains(e)) || Array.from(t.children).some(function(r) {
861
865
  return V(r, e);
862
866
  });
863
- }, mr = function(t) {
867
+ }, pr = function(t) {
864
868
  for (var e = /* @__PURE__ */ new Set(), r = t.length, n = 0; n < r; n += 1)
865
869
  for (var i = n + 1; i < r; i += 1) {
866
870
  var u = t[n].compareDocumentPosition(t[i]);
@@ -875,37 +879,37 @@ var Se = "data-focus-lock", Qt = "data-focus-lock-disabled", er = "data-no-focus
875
879
  var e = oe(t);
876
880
  return e.filter(Boolean).reduce(function(r, n) {
877
881
  var i = n.getAttribute(Se);
878
- return r.push.apply(r, i ? mr(A(ze(n).querySelectorAll("[".concat(Se, '="').concat(i, '"]:not([').concat(Qt, '="disabled"])')))) : [n]), r;
882
+ return r.push.apply(r, i ? pr(A(ze(n).querySelectorAll("[".concat(Se, '="').concat(i, '"]:not([').concat(er, '="disabled"])')))) : [n]), r;
879
883
  }, []);
880
884
  }, Xe = function(t) {
881
885
  return t.activeElement ? t.activeElement.shadowRoot ? Xe(t.activeElement.shadowRoot) : t.activeElement : void 0;
882
886
  }, be = function() {
883
887
  return document.activeElement ? document.activeElement.shadowRoot ? Xe(document.activeElement.shadowRoot) : document.activeElement : void 0;
884
- }, pr = function(t) {
885
- return t === document.activeElement;
886
888
  }, hr = function(t) {
889
+ return t === document.activeElement;
890
+ }, yr = function(t) {
887
891
  return !!A(t.querySelectorAll("iframe")).some(function(e) {
888
- return pr(e);
892
+ return hr(e);
889
893
  });
890
- }, yr = function(t) {
894
+ }, gr = function(t) {
891
895
  var e = document && be();
892
896
  return !e || e.dataset && e.dataset.focusGuard ? !1 : ve(t).some(function(r) {
893
- return V(r, e) || hr(r);
897
+ return V(r, e) || yr(r);
894
898
  });
895
- }, gr = function() {
899
+ }, wr = function() {
896
900
  var t = document && be();
897
- return t ? A(document.querySelectorAll("[".concat(er, "]"))).some(function(e) {
901
+ return t ? A(document.querySelectorAll("[".concat(tr, "]"))).some(function(e) {
898
902
  return V(e, t);
899
903
  }) : !1;
900
- }, wr = function(t, e) {
904
+ }, Nr = function(t, e) {
901
905
  return e.filter($e).filter(function(r) {
902
906
  return r.name === t.name;
903
907
  }).filter(function(r) {
904
908
  return r.checked;
905
909
  })[0] || t;
906
910
  }, me = function(t, e) {
907
- return $e(t) && t.name ? wr(t, e) : t;
908
- }, Nr = function(t) {
911
+ return $e(t) && t.name ? Nr(t, e) : t;
912
+ }, Er = function(t) {
909
913
  var e = /* @__PURE__ */ new Set();
910
914
  return t.forEach(function(r) {
911
915
  return e.add(me(r, t));
@@ -916,10 +920,10 @@ var Se = "data-focus-lock", Qt = "data-focus-lock-disabled", er = "data-no-focus
916
920
  return t[0] && t.length > 1 ? me(t[0], t) : t[0];
917
921
  }, Ce = function(t, e) {
918
922
  return t.length > 1 ? t.indexOf(me(t[e], t)) : e;
919
- }, Je = "NEW_FOCUS", Er = function(t, e, r, n) {
923
+ }, Je = "NEW_FOCUS", Tr = function(t, e, r, n) {
920
924
  var i = t.length, u = t[0], a = t[i - 1], s = se(r);
921
925
  if (!(r && t.indexOf(r) >= 0)) {
922
- var l = r !== void 0 ? e.indexOf(r) : -1, d = n ? e.indexOf(n) : l, h = n ? t.indexOf(n) : -1, v = l - d, b = e.indexOf(u), w = e.indexOf(a), g = Nr(e), F = r !== void 0 ? g.indexOf(r) : -1, I = F - (n ? g.indexOf(n) : l), S = Ce(t, 0), D = Ce(t, i - 1);
926
+ var l = r !== void 0 ? e.indexOf(r) : -1, d = n ? e.indexOf(n) : l, h = n ? t.indexOf(n) : -1, v = l - d, b = e.indexOf(u), w = e.indexOf(a), g = Er(e), F = r !== void 0 ? g.indexOf(r) : -1, I = F - (n ? g.indexOf(n) : l), S = Ce(t, 0), D = Ce(t, i - 1);
923
927
  if (l === -1 || h === -1)
924
928
  return Je;
925
929
  if (!v && h >= 0)
@@ -954,23 +958,23 @@ var Se = "data-focus-lock", Qt = "data-focus-lock-disabled", er = "data-no-focus
954
958
  d && (!a || V(d, a) ? a = d : a = te(d, a));
955
959
  });
956
960
  }), a;
957
- }, Tr = function(t, e) {
961
+ }, Or = function(t, e) {
958
962
  return t.reduce(function(r, n) {
959
- return r.concat(br(n, e));
963
+ return r.concat(mr(n, e));
960
964
  }, []);
961
- }, Or = function(t) {
965
+ }, Fr = function(t) {
962
966
  return function(e) {
963
967
  var r;
964
968
  return e.autofocus || !!(!((r = He(e)) === null || r === void 0) && r.autofocus) || t.indexOf(e) >= 0;
965
969
  };
966
- }, Fr = function(t, e) {
970
+ }, Ar = function(t, e) {
967
971
  var r = /* @__PURE__ */ new Map();
968
972
  return e.forEach(function(n) {
969
973
  return r.set(n.node, n);
970
974
  }), t.map(function(n) {
971
975
  return r.get(n);
972
- }).filter(sr);
973
- }, Ar = function(t, e) {
976
+ }).filter(lr);
977
+ }, Ir = function(t, e) {
974
978
  var r = document && be(), n = ve(t).filter(Y), i = Qe(r || t, t, n), u = /* @__PURE__ */ new Map(), a = ke(n, u), s = ue(n, u).filter(function(w) {
975
979
  var g = w.node;
976
980
  return Y(g);
@@ -979,22 +983,22 @@ var Se = "data-focus-lock", Qt = "data-focus-lock-disabled", er = "data-no-focus
979
983
  var l = ke([i], u).map(function(w) {
980
984
  var g = w.node;
981
985
  return g;
982
- }), d = Fr(l, s), h = d.map(function(w) {
986
+ }), d = Ar(l, s), h = d.map(function(w) {
983
987
  var g = w.node;
984
988
  return g;
985
- }), v = Er(h, l, r, e);
989
+ }), v = Tr(h, l, r, e);
986
990
  if (v === Je) {
987
991
  var b = xe(a.map(function(w) {
988
992
  var g = w.node;
989
993
  return g;
990
- })).filter(Or(Tr(n, u)));
994
+ })).filter(Fr(Or(n, u)));
991
995
  return {
992
996
  node: b && b.length ? Pe(b) : Pe(xe(h))
993
997
  };
994
998
  }
995
999
  return v === void 0 ? v : d[v];
996
1000
  }
997
- }, Ir = function(t) {
1001
+ }, Sr = function(t) {
998
1002
  var e = ve(t).filter(Y), r = Qe(t, t, e), n = /* @__PURE__ */ new Map(), i = ue([r], n, !0), u = ue(e, n).filter(function(a) {
999
1003
  var s = a.node;
1000
1004
  return Y(s);
@@ -1011,11 +1015,11 @@ var Se = "data-focus-lock", Qt = "data-focus-lock-disabled", er = "data-no-focus
1011
1015
  guard: se(s)
1012
1016
  };
1013
1017
  });
1014
- }, Sr = Ir, xr = function(t, e) {
1018
+ }, xr = Sr, kr = function(t, e) {
1015
1019
  "focus" in t && t.focus(e), "contentWindow" in t && t.contentWindow && t.contentWindow.focus();
1016
- }, re = 0, ne = !1, kr = function(t, e, r) {
1020
+ }, re = 0, ne = !1, Pr = function(t, e, r) {
1017
1021
  r === void 0 && (r = {});
1018
- var n = Ar(t, e);
1022
+ var n = Ir(t, e);
1019
1023
  if (!ne && n) {
1020
1024
  if (re > 2) {
1021
1025
  console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), ne = !0, setTimeout(function() {
@@ -1023,29 +1027,29 @@ var Se = "data-focus-lock", Qt = "data-focus-lock-disabled", er = "data-no-focus
1023
1027
  }, 1);
1024
1028
  return;
1025
1029
  }
1026
- re++, xr(n.node, r.focusOptions), re--;
1030
+ re++, kr(n.node, r.focusOptions), re--;
1027
1031
  }
1028
1032
  };
1029
- const Pr = (t) => requestAnimationFrame(t), Cr = (t, e) => {
1033
+ const Cr = (t) => requestAnimationFrame(t), Dr = (t, e) => {
1030
1034
  const r = e.findIndex((n) => n.node === t);
1031
1035
  return r === -1 ? 0 : r;
1032
- }, Dr = (t, e) => {
1036
+ }, Rr = (t, e) => {
1033
1037
  var u;
1034
- const r = document.activeElement, n = Sr(e), i = Cr(r, n) + t;
1038
+ const r = document.activeElement, n = xr(e), i = Dr(r, n) + t;
1035
1039
  return ((u = n[i]) == null ? void 0 : u.node) || r;
1036
- }, Rr = (t, e) => {
1040
+ }, Lr = (t, e) => {
1037
1041
  const r = t.key.toLowerCase();
1038
1042
  return {
1039
1043
  isArrowNext: r === e[0],
1040
1044
  isArrowPrev: r === e[1]
1041
1045
  };
1042
- }, Lr = {
1046
+ }, Br = {
1043
1047
  behavior: "smooth",
1044
1048
  block: "center",
1045
1049
  inline: "center"
1046
1050
  };
1047
1051
  var Z = /* @__PURE__ */ ((t) => (t.VERTICAL = "vertical", t.HORIZONTAL = "horizontal", t))(Z || {}), et = /* @__PURE__ */ ((t) => (t.ARROW_UP = "arrowup", t.ARROW_DOWN = "arrowdown", t))(et || {}), tt = /* @__PURE__ */ ((t) => (t.ARROW_LEFT = "arrowleft", t.ARROW_RIGHT = "arrowright", t))(tt || {});
1048
- const Br = (t, e, r) => {
1052
+ const _r = (t, e, r) => {
1049
1053
  const n = z(null), i = U(
1050
1054
  () => r === Z.HORIZONTAL
1051
1055
  ), u = U(
@@ -1053,7 +1057,7 @@ const Br = (t, e, r) => {
1053
1057
  ), a = U(
1054
1058
  () => u.value ? Object.values(et) : Object.values(tt)
1055
1059
  ), s = () => {
1056
- (document.activeElement === document.body || gr() || !n.value) && (t.value && !yr(t.value) && kr(t.value, n.value, {
1060
+ (document.activeElement === document.body || wr() || !n.value) && (t.value && !gr(t.value) && Pr(t.value, n.value, {
1057
1061
  focusOptions: { preventScroll: !0 }
1058
1062
  }), n.value = document.activeElement);
1059
1063
  }, l = () => {
@@ -1061,7 +1065,7 @@ const Br = (t, e, r) => {
1061
1065
  const b = n.value || ((w = t.value) == null ? void 0 : w.parentNode) || document.body;
1062
1066
  b && b.focus();
1063
1067
  }, d = () => {
1064
- e.value && Pr(s);
1068
+ e.value && Cr(s);
1065
1069
  }, h = () => {
1066
1070
  var g;
1067
1071
  if (!u.value && !i.value)
@@ -1071,11 +1075,11 @@ const Br = (t, e, r) => {
1071
1075
  }, v = (b) => {
1072
1076
  if (!e.value || document.activeElement.isContentEditable || h())
1073
1077
  return;
1074
- const { isArrowNext: w, isArrowPrev: g } = Rr(b, a.value);
1078
+ const { isArrowNext: w, isArrowPrev: g } = Lr(b, a.value);
1075
1079
  if ((g || w) && (b.preventDefault(), b.stopPropagation(), t.value)) {
1076
- const F = Dr(g ? 1 : -1, t.value);
1080
+ const F = Rr(g ? 1 : -1, t.value);
1077
1081
  if (F.focus(), "scrollIntoView" in F) {
1078
- const I = "scrollBehavior" in document.documentElement.style ? Lr : !1;
1082
+ const I = "scrollBehavior" in document.documentElement.style ? Br : !1;
1079
1083
  F.scrollIntoView(I);
1080
1084
  }
1081
1085
  }
@@ -1093,10 +1097,10 @@ const Br = (t, e, r) => {
1093
1097
  onKeyDown: v,
1094
1098
  onBlur: d
1095
1099
  };
1096
- }, _r = {
1100
+ }, Mr = {
1097
1101
  name: "bento-focus-trap"
1098
- }, Mr = /* @__PURE__ */ ot({
1099
- ..._r,
1102
+ }, Kr = /* @__PURE__ */ ot({
1103
+ ...Mr,
1100
1104
  props: {
1101
1105
  /**
1102
1106
  * Enables / Disables arrow navigation as well can determine the type of arrow navigation.
@@ -1120,38 +1124,45 @@ const Br = (t, e, r) => {
1120
1124
  trapAll: {
1121
1125
  type: Boolean,
1122
1126
  default: !1
1127
+ },
1128
+ /**
1129
+ * Configurations for the focus-trap when trap-all is active.
1130
+ */
1131
+ trapAllOptions: {
1132
+ type: Object,
1133
+ default: void 0
1123
1134
  }
1124
1135
  },
1125
1136
  setup(t) {
1126
- const e = t, r = z(null), n = ut(), i = mt(n), u = U(() => e.trapAll && !e.disabled && !e.arrowNavigation), a = U(() => !e.disabled && !e.trapAll);
1127
- Jt(r, u);
1128
- const { handleKeydownEscape: s } = wt(r), { onKeyDown: l, onBlur: d } = Br(r, a, e.arrowNavigation);
1129
- return (h, v) => R(i)("default") ? (lt(), ct("div", ft({
1137
+ const e = t, r = z(null), n = ut(), i = pt(n), u = U(() => e.trapAll && !e.disabled && !e.arrowNavigation), a = U(() => !e.disabled && !e.trapAll);
1138
+ Qt(r, u, ct(e, "trapAllOptions"));
1139
+ const { handleKeydownEscape: s } = Nt(r), { onKeyDown: l, onBlur: d } = _r(r, a, e.arrowNavigation);
1140
+ return (h, v) => R(i)("default") ? (ft(), st("div", dt({
1130
1141
  key: 0,
1131
1142
  ref_key: "root",
1132
1143
  ref: r,
1133
1144
  class: "b-focus-trap",
1134
1145
  "data-testid": "focus-trap",
1135
1146
  tabindex: "-1"
1136
- }, dt(t.arrowNavigation ? { keydown: R(l) } : {}, !0), {
1147
+ }, vt(t.arrowNavigation ? { keydown: R(l) } : {}, !0), {
1137
1148
  onFocusout: v[0] || (v[0] = //@ts-ignore
1138
1149
  (...b) => R(d) && R(d)(...b)),
1139
- onKeydown: v[1] || (v[1] = vt(
1150
+ onKeydown: v[1] || (v[1] = bt(
1140
1151
  //@ts-ignore
1141
1152
  (...b) => R(s) && R(s)(...b),
1142
1153
  ["esc"]
1143
1154
  ))
1144
1155
  }), [
1145
- bt(h.$slots, "default", {}, void 0, !0)
1146
- ], 16)) : st("", !0);
1156
+ mt(h.$slots, "default", {}, void 0, !0)
1157
+ ], 16)) : lt("", !0);
1147
1158
  }
1148
- }), Wr = /* @__PURE__ */ gt(Mr, [["__scopeId", "data-v-0a9ffbb2"]]);
1159
+ }), Gr = /* @__PURE__ */ wt(Kr, [["__scopeId", "data-v-8503088e"]]);
1149
1160
  export {
1150
- Wr as B,
1161
+ Gr as B,
1151
1162
  be as a,
1152
- Sr as b,
1153
- yr as f,
1154
- Dr as g,
1155
- kr as s
1163
+ xr as b,
1164
+ gr as f,
1165
+ Rr as g,
1166
+ Pr as s
1156
1167
  };
1157
- //# sourceMappingURL=focus-trap.BkNwCiVP.js.map
1168
+ //# sourceMappingURL=focus-trap.CpNGD7PH.js.map