@adyen/bento-vue2 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 (228) hide show
  1. package/README.md +3 -1
  2. package/dist/@types/index.d.ts +405 -581
  3. package/dist/action-bar.js +1 -1
  4. package/dist/assets/accordion-item.css +1 -1
  5. package/dist/assets/action-bar.css +1 -1
  6. package/dist/assets/ai-button.css +1 -0
  7. package/dist/assets/base-button.css +1 -1
  8. package/dist/assets/base-modal.css +1 -1
  9. package/dist/assets/button-actions.css +1 -0
  10. package/dist/assets/calendar.css +1 -1
  11. package/dist/assets/card.css +1 -1
  12. package/dist/assets/code-snippet.css +1 -1
  13. package/dist/assets/dashboard-section.css +1 -1
  14. package/dist/assets/data-grid-template.css +1 -1
  15. package/dist/assets/data-grid.css +1 -1
  16. package/dist/assets/date-picker.css +1 -1
  17. package/dist/assets/dialog-page.css +1 -1
  18. package/dist/assets/empty-state.css +1 -1
  19. package/dist/assets/field-label.css +1 -0
  20. package/dist/assets/file-uploader.css +1 -1
  21. package/dist/assets/filter-bar.css +1 -1
  22. package/dist/assets/focus-trap.css +1 -1
  23. package/dist/assets/input-field-phone-number.css +1 -1
  24. package/dist/assets/inspector.css +1 -1
  25. package/dist/assets/layout-row.css +1 -1
  26. package/dist/assets/modal-fullscreen.css +1 -1
  27. package/dist/assets/popper-container.css +1 -1
  28. package/dist/assets/selection-card-group.css +1 -1
  29. package/dist/assets/sidepanel.css +1 -1
  30. package/dist/assets/structured-list-item.css +1 -1
  31. package/dist/button.js +11 -9
  32. package/dist/button.js.map +1 -1
  33. package/dist/card.js +1 -1
  34. package/dist/checkbox.js +2 -2
  35. package/dist/chip.js +1 -1
  36. package/dist/chunks/{action-bar.C01Tjxh_.js → action-bar.Bxrtx1Vj.js} +3 -3
  37. package/dist/chunks/{action-bar.C01Tjxh_.js.map → action-bar.Bxrtx1Vj.js.map} +1 -1
  38. package/dist/chunks/ai-button.FRPkTHz6.js +67 -0
  39. package/dist/chunks/ai-button.FRPkTHz6.js.map +1 -0
  40. package/dist/chunks/{base-button.BB5tkzjh.js → base-button.Cv-1788W.js} +6 -6
  41. package/dist/chunks/base-button.Cv-1788W.js.map +1 -0
  42. package/dist/chunks/{base-modal.CnIt7hra.js → base-modal.DInbAZlp.js} +4 -4
  43. package/dist/chunks/{base-modal.CnIt7hra.js.map → base-modal.DInbAZlp.js.map} +1 -1
  44. package/dist/chunks/{button-actions-with-menu.B9R0J68W.js → button-actions-with-menu.BtWUxmSL.js} +2 -2
  45. package/dist/chunks/{button-actions-with-menu.B9R0J68W.js.map → button-actions-with-menu.BtWUxmSL.js.map} +1 -1
  46. package/dist/chunks/{toggle-button.B1Y2qhzJ.js → button-actions.55vIvDsX.js} +241 -239
  47. package/dist/chunks/button-actions.55vIvDsX.js.map +1 -0
  48. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  49. package/dist/chunks/{calendar.DjktWs25.js → calendar.M69sfyB9.js} +290 -287
  50. package/dist/chunks/{calendar.DjktWs25.js.map → calendar.M69sfyB9.js.map} +1 -1
  51. package/dist/chunks/{card.DTrBQQAm.js → card.C11dmth8.js} +2 -2
  52. package/dist/chunks/{card.DTrBQQAm.js.map → card.C11dmth8.js.map} +1 -1
  53. package/dist/chunks/{checkbox-group.lVv3mWHL.js → checkbox-group.Cr3WdkDM.js} +4 -4
  54. package/dist/chunks/{checkbox-group.lVv3mWHL.js.map → checkbox-group.Cr3WdkDM.js.map} +1 -1
  55. package/dist/chunks/{checkbox.C7Yu3rls.js → checkbox.D7-f9Y6w.js} +18 -18
  56. package/dist/chunks/{checkbox.C7Yu3rls.js.map → checkbox.D7-f9Y6w.js.map} +1 -1
  57. package/dist/chunks/{chevron-right.C--ZOC9j.js → chevron-left.BS24hEFa.js} +5 -5
  58. package/dist/chunks/chevron-left.BS24hEFa.js.map +1 -0
  59. package/dist/chunks/{chip.Bfi-ff5E.js → chip.omQX_Ziq.js} +2 -2
  60. package/dist/chunks/{chip.Bfi-ff5E.js.map → chip.omQX_Ziq.js.map} +1 -1
  61. package/dist/chunks/{code-snippet.BvhpH_JE.js → code-snippet.BGrwAxWy.js} +100 -91
  62. package/dist/chunks/code-snippet.BGrwAxWy.js.map +1 -0
  63. package/dist/chunks/{controls-group.DUr_o-vW.js → controls-group.CWeUgE2P.js} +2 -2
  64. package/dist/chunks/{controls-group.DUr_o-vW.js.map → controls-group.CWeUgE2P.js.map} +1 -1
  65. package/dist/chunks/{copy.CsyXGPuN.js → copy._BdbMnHK.js} +3 -3
  66. package/dist/chunks/{copy.CsyXGPuN.js.map → copy._BdbMnHK.js.map} +1 -1
  67. package/dist/chunks/{dashboard-section.CiFxBFnc.js → dashboard-section.e7ozaS9M.js} +3 -3
  68. package/dist/chunks/{dashboard-section.CiFxBFnc.js.map → dashboard-section.e7ozaS9M.js.map} +1 -1
  69. package/dist/chunks/{dashed-underline.CTtzy_vE.js → dashed-underline.CGU6o7ni.js} +3 -3
  70. package/dist/chunks/{dashed-underline.CTtzy_vE.js.map → dashed-underline.CGU6o7ni.js.map} +1 -1
  71. package/dist/chunks/{data-grid-template.CmfHBR3u.js → data-grid-template.BaPjUlZ2.js} +10 -10
  72. package/dist/chunks/data-grid-template.BaPjUlZ2.js.map +1 -0
  73. package/dist/chunks/{data-grid.D2AvGjyH.js → data-grid.B_Ha2vma.js} +772 -726
  74. package/dist/chunks/data-grid.B_Ha2vma.js.map +1 -0
  75. package/dist/chunks/{date-picker.Bhe5lCfr.js → date-picker.CGTMHUNH.js} +75 -69
  76. package/dist/chunks/date-picker.CGTMHUNH.js.map +1 -0
  77. package/dist/chunks/{date-range-picker.BsQ6kMzK.js → date-range-picker.ChGfJUPq.js} +7 -7
  78. package/dist/chunks/{date-range-picker.BsQ6kMzK.js.map → date-range-picker.ChGfJUPq.js.map} +1 -1
  79. package/dist/chunks/{dropdown-tag.DaVNZO_q.js → dropdown-tag.Bwl0fY7o.js} +3 -3
  80. package/dist/chunks/{dropdown-tag.DaVNZO_q.js.map → dropdown-tag.Bwl0fY7o.js.map} +1 -1
  81. package/dist/chunks/{dropdown.J5FaL_2T.js → dropdown.DQbTuKc5.js} +5 -5
  82. package/dist/chunks/{dropdown.J5FaL_2T.js.map → dropdown.DQbTuKc5.js.map} +1 -1
  83. package/dist/chunks/empty-state.DNTrhYUm.js +106 -0
  84. package/dist/chunks/empty-state.DNTrhYUm.js.map +1 -0
  85. package/dist/chunks/es6.MoTTyETW.js.map +1 -1
  86. package/dist/chunks/{error-message.BGuKk5tR.js → field-label.BKzuCnXr.js} +53 -53
  87. package/dist/chunks/field-label.BKzuCnXr.js.map +1 -0
  88. package/dist/chunks/{file-uploader.ZHBf2zwh.js → file-uploader.BEClGxsF.js} +3 -3
  89. package/dist/chunks/{file-uploader.ZHBf2zwh.js.map → file-uploader.BEClGxsF.js.map} +1 -1
  90. package/dist/chunks/{filter-bar.CNxqgSgM.js → filter-bar.Dnnv0rpV.js} +184 -185
  91. package/dist/chunks/filter-bar.Dnnv0rpV.js.map +1 -0
  92. package/dist/chunks/{fixed-scroller.DDYpO7Li.js → fixed-scroller.QCXpkadN.js} +2 -2
  93. package/dist/chunks/{fixed-scroller.DDYpO7Li.js.map → fixed-scroller.QCXpkadN.js.map} +1 -1
  94. package/dist/chunks/{focus-trap.COfrmVfx.js → focus-trap.BJfpIboH.js} +155 -144
  95. package/dist/chunks/{focus-trap.COfrmVfx.js.map → focus-trap.BJfpIboH.js.map} +1 -1
  96. package/dist/chunks/{footer-actions.CR8l2FSl.js → footer-actions.BTELM6rh.js} +2 -2
  97. package/dist/chunks/{footer-actions.CR8l2FSl.js.map → footer-actions.BTELM6rh.js.map} +1 -1
  98. package/dist/chunks/{header-meta.tZNYmQBF.js → header-meta.DZYH-qg-.js} +3 -3
  99. package/dist/chunks/{header-meta.tZNYmQBF.js.map → header-meta.DZYH-qg-.js.map} +1 -1
  100. package/dist/chunks/{header-with-views.BXZT6R6N.js → header-with-views.DjZa4Wob.js} +8 -8
  101. package/dist/chunks/{header-with-views.BXZT6R6N.js.map → header-with-views.DjZa4Wob.js.map} +1 -1
  102. package/dist/chunks/{header.CwlFMYus.js → header.CQMiTG7f.js} +3 -3
  103. package/dist/chunks/{header.CwlFMYus.js.map → header.CQMiTG7f.js.map} +1 -1
  104. package/dist/chunks/{info-icon.JAvdSXdT.js → info-icon.fB7jf3NJ.js} +3 -3
  105. package/dist/chunks/{info-icon.JAvdSXdT.js.map → info-icon.fB7jf3NJ.js.map} +1 -1
  106. package/dist/chunks/{input-field-password.C1bzrmje.js → input-field-password.BPujvbx8.js} +5 -5
  107. package/dist/chunks/{input-field-password.C1bzrmje.js.map → input-field-password.BPujvbx8.js.map} +1 -1
  108. package/dist/chunks/{input-field-phone-number.YTbO3djd.js → input-field-phone-number.bqUe_CVf.js} +5 -5
  109. package/dist/chunks/{input-field-phone-number.YTbO3djd.js.map → input-field-phone-number.bqUe_CVf.js.map} +1 -1
  110. package/dist/chunks/{input-field.o-Hie5W9.js → input-field.CwF6ldRY.js} +3 -3
  111. package/dist/chunks/{input-field.o-Hie5W9.js.map → input-field.CwF6ldRY.js.map} +1 -1
  112. package/dist/chunks/{inspector.DxteqciY.js → inspector.g3OErNAU.js} +2 -2
  113. package/dist/chunks/{inspector.DxteqciY.js.map → inspector.g3OErNAU.js.map} +1 -1
  114. package/dist/chunks/{listbox-option-tag.AsRozx37.js → listbox-option-tag.UaD4kmXc.js} +2 -2
  115. package/dist/chunks/{listbox-option-tag.AsRozx37.js.map → listbox-option-tag.UaD4kmXc.js.map} +1 -1
  116. package/dist/chunks/{modal-fullscreen.B_72Iyh-.js → modal-fullscreen.B-9Ke6Ya.js} +3 -3
  117. package/dist/chunks/{modal-fullscreen.B_72Iyh-.js.map → modal-fullscreen.B-9Ke6Ya.js.map} +1 -1
  118. package/dist/chunks/{modal.crwnBhJG.js → modal.qybFapnI.js} +4 -4
  119. package/dist/chunks/{modal.crwnBhJG.js.map → modal.qybFapnI.js.map} +1 -1
  120. package/dist/chunks/{pagination.B4SjTHnN.js → pagination.BWTyXMRW.js} +2 -2
  121. package/dist/chunks/{pagination.B4SjTHnN.js.map → pagination.BWTyXMRW.js.map} +1 -1
  122. package/dist/chunks/popover.types.iyDoIAOE.js +6 -0
  123. package/dist/chunks/popover.types.iyDoIAOE.js.map +1 -0
  124. package/dist/chunks/{popper-container.Dt0SuHXX.js → popper-container.C9KCAJxI.js} +12 -5
  125. package/dist/chunks/{popper-container.Dt0SuHXX.js.map → popper-container.C9KCAJxI.js.map} +1 -1
  126. package/dist/chunks/{radio-group.T5hXVLRz.js → radio-group.DHUa6baR.js} +4 -4
  127. package/dist/chunks/{radio-group.T5hXVLRz.js.map → radio-group.DHUa6baR.js.map} +1 -1
  128. package/dist/chunks/{rich-text-editor._5fF0vFL.js → rich-text-editor.C905JEDW.js} +4 -4
  129. package/dist/chunks/{rich-text-editor._5fF0vFL.js.map → rich-text-editor.C905JEDW.js.map} +1 -1
  130. package/dist/chunks/{search-bar.yIVTIbdP.js → search-bar.CKt_-tZH.js} +3 -3
  131. package/dist/chunks/{search-bar.yIVTIbdP.js.map → search-bar.CKt_-tZH.js.map} +1 -1
  132. package/dist/chunks/{secondary-nav.DBetOL_3.js → secondary-nav.B5L2bLmm.js} +2 -2
  133. package/dist/chunks/{secondary-nav.DBetOL_3.js.map → secondary-nav.B5L2bLmm.js.map} +1 -1
  134. package/dist/chunks/{segmented-control.DrShqTCa.js → segmented-control.Dc34mUMM.js} +2 -2
  135. package/dist/chunks/{segmented-control.DrShqTCa.js.map → segmented-control.Dc34mUMM.js.map} +1 -1
  136. package/dist/chunks/{selection-card-group.3QYPl3w3.js → selection-card-group.CBVKMu6b.js} +10 -10
  137. package/dist/chunks/{selection-card-group.3QYPl3w3.js.map → selection-card-group.CBVKMu6b.js.map} +1 -1
  138. package/dist/chunks/{sidepanel.U9XLcivw.js → sidepanel.uWNc58r7.js} +4 -4
  139. package/dist/chunks/{sidepanel.U9XLcivw.js.map → sidepanel.uWNc58r7.js.map} +1 -1
  140. package/dist/chunks/{step.DwXkOVky.js → step.D8blWwfR.js} +2 -2
  141. package/dist/chunks/{step.DwXkOVky.js.map → step.D8blWwfR.js.map} +1 -1
  142. package/dist/chunks/structured-list-item.BLalgOps.js +90 -0
  143. package/dist/chunks/structured-list-item.BLalgOps.js.map +1 -0
  144. package/dist/chunks/{summary-grid.types.BZlzUWVO.js → summary-grid.types.DqzYJ9_N.js} +5 -5
  145. package/dist/chunks/{summary-grid.types.BZlzUWVO.js.map → summary-grid.types.DqzYJ9_N.js.map} +1 -1
  146. package/dist/chunks/{tab.ClkH0GtX.js → tab.D8YyoNFV.js} +2 -2
  147. package/dist/chunks/{tab.ClkH0GtX.js.map → tab.D8YyoNFV.js.map} +1 -1
  148. package/dist/chunks/{tag.Dcm5YMUI.js → tag.Tjg4linG.js} +2 -2
  149. package/dist/chunks/{tag.Dcm5YMUI.js.map → tag.Tjg4linG.js.map} +1 -1
  150. package/dist/chunks/{textarea.B2jAycbX.js → textarea.DUPV-I-L.js} +2 -2
  151. package/dist/chunks/{textarea.B2jAycbX.js.map → textarea.DUPV-I-L.js.map} +1 -1
  152. package/dist/chunks/{timeline-item.Dhcs9a0S.js → timeline-item.DaRKHndA.js} +5 -5
  153. package/dist/chunks/{timeline-item.Dhcs9a0S.js.map → timeline-item.DaRKHndA.js.map} +1 -1
  154. package/dist/chunks/{tooltip.C94gYIPr.js → tooltip.DOD_4rkI.js} +2 -2
  155. package/dist/chunks/{tooltip.C94gYIPr.js.map → tooltip.DOD_4rkI.js.map} +1 -1
  156. package/dist/chunks/{tutorial.DAv_sABs.js → tutorial.BwnRyUoh.js} +4 -4
  157. package/dist/chunks/{tutorial.DAv_sABs.js.map → tutorial.BwnRyUoh.js.map} +1 -1
  158. package/dist/chunks/{use-cached-selected-values.DSDrNPbW.js → use-cached-selected-values.C7j6YhuC.js} +4 -4
  159. package/dist/chunks/use-cached-selected-values.C7j6YhuC.js.map +1 -0
  160. package/dist/code-snippet.js +1 -1
  161. package/dist/dashboard-template.js +1 -1
  162. package/dist/dashed-underline.js +1 -1
  163. package/dist/data-grid-template.js +1 -1
  164. package/dist/data-grid.js +1 -1
  165. package/dist/date-picker.js +2 -2
  166. package/dist/date-range-picker.js +2 -2
  167. package/dist/dropdown.js +3 -3
  168. package/dist/empty-state.js +1 -1
  169. package/dist/file-uploader.js +1 -1
  170. package/dist/filter-bar.js +1 -1
  171. package/dist/focus-trap.js +1 -1
  172. package/dist/header-with-views.js +1 -1
  173. package/dist/header.js +1 -1
  174. package/dist/index.js +174 -172
  175. package/dist/index.js.map +1 -1
  176. package/dist/info-icon.js +1 -1
  177. package/dist/input-field-password.js +1 -1
  178. package/dist/input-field-phone-number.js +1 -1
  179. package/dist/input-field.js +1 -1
  180. package/dist/inspector.js +1 -1
  181. package/dist/internal.js +11 -11
  182. package/dist/menu.js +1 -1
  183. package/dist/modal-fullscreen.js +1 -1
  184. package/dist/modal.js +2 -2
  185. package/dist/pagination.js +1 -1
  186. package/dist/popover.js +2 -2
  187. package/dist/popper-container.js +1 -1
  188. package/dist/radio-group.js +1 -1
  189. package/dist/rich-text-editor.js +1 -1
  190. package/dist/search-bar.js +2 -2
  191. package/dist/secondary-nav.js +1 -1
  192. package/dist/segmented-control.js +1 -1
  193. package/dist/selection-card.js +1 -1
  194. package/dist/sidepanel.js +1 -1
  195. package/dist/stepper.js +1 -1
  196. package/dist/structured-list.js +1 -1
  197. package/dist/styles/bento-dark.css +35 -16
  198. package/dist/styles/bento-light.css +34 -11
  199. package/dist/styles/bento.css +34 -11
  200. package/dist/styles/legacy.css +2108 -0
  201. package/dist/styles/styleguide.css +34 -11
  202. package/dist/styles/utility.css +12 -0
  203. package/dist/summary-grid.js +1 -1
  204. package/dist/tabs.js +1 -1
  205. package/dist/tag.js +1 -1
  206. package/dist/textarea.js +1 -1
  207. package/dist/timeline.js +1 -1
  208. package/dist/tutorial.js +1 -1
  209. package/dist/web-types.json +186 -14
  210. package/package.json +3 -3
  211. package/dist/assets/error-message.css +0 -1
  212. package/dist/assets/toggle-button.css +0 -1
  213. package/dist/chunks/base-button.BB5tkzjh.js.map +0 -1
  214. package/dist/chunks/chevron-right.C--ZOC9j.js.map +0 -1
  215. package/dist/chunks/code-snippet.BvhpH_JE.js.map +0 -1
  216. package/dist/chunks/data-grid-template.CmfHBR3u.js.map +0 -1
  217. package/dist/chunks/data-grid.D2AvGjyH.js.map +0 -1
  218. package/dist/chunks/date-picker.Bhe5lCfr.js.map +0 -1
  219. package/dist/chunks/empty-state.DAbj9xWF.js +0 -151
  220. package/dist/chunks/empty-state.DAbj9xWF.js.map +0 -1
  221. package/dist/chunks/error-message.BGuKk5tR.js.map +0 -1
  222. package/dist/chunks/filter-bar.CNxqgSgM.js.map +0 -1
  223. package/dist/chunks/popover.types.BUM8GOuO.js +0 -6
  224. package/dist/chunks/popover.types.BUM8GOuO.js.map +0 -1
  225. package/dist/chunks/structured-list-item.DHklFEiK.js +0 -87
  226. package/dist/chunks/structured-list-item.DHklFEiK.js.map +0 -1
  227. package/dist/chunks/toggle-button.B1Y2qhzJ.js.map +0 -1
  228. package/dist/chunks/use-cached-selected-values.DSDrNPbW.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import { ref as z, onUnmounted as Pe, isRef as rt, watch as De, computed as K, onMounted as nt, onBeforeUnmount as at, defineComponent as it, useSlots as ot } from "vue";
2
- import { u as ut } from "./use-has-slot.C9lQZ6nz.js";
3
- import { h as ct, i as st, j as lt } from "./index.BDK4hwK_.js";
4
- import { n as ft } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
1
+ import { ref as z, onUnmounted as Pe, isRef as rt, watch as De, computed as K, onMounted as nt, onBeforeUnmount as at, defineComponent as it, useSlots as ot, toRef as ut } from "vue";
2
+ import { u as ct } from "./use-has-slot.C9lQZ6nz.js";
3
+ import { h as st, i as lt, j as ft } from "./index.BDK4hwK_.js";
4
+ import { n as dt } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
5
5
  import "../assets/focus-trap.css";
6
- const dt = (t) => {
7
- const e = z(null), { stop: r } = ct(
6
+ const vt = (t) => {
7
+ const e = z(null), { stop: r } = st(
8
8
  t,
9
9
  (i) => {
10
10
  let u = !1;
@@ -64,7 +64,7 @@ var Re = ["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
- }, vt = function(e) {
67
+ }, bt = 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
  }, Le = function(e, r, n) {
@@ -103,26 +103,26 @@ var Re = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
103
103
  }, C = 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) || vt(e)) && !Me(e) ? 0 : e.tabIndex;
107
- }, bt = function(e, r) {
106
+ return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || bt(e)) && !Me(e) ? 0 : e.tabIndex;
107
+ }, pt = function(e, r) {
108
108
  var n = C(e);
109
109
  return n < 0 && r && !Me(e) ? 0 : n;
110
- }, pt = function(e, r) {
110
+ }, mt = function(e, r) {
111
111
  return e.tabIndex === r.tabIndex ? e.documentOrder - r.documentOrder : e.tabIndex - r.tabIndex;
112
112
  }, Ke = function(e) {
113
113
  return e.tagName === "INPUT";
114
- }, mt = function(e) {
115
- return Ke(e) && e.type === "hidden";
116
114
  }, ht = function(e) {
115
+ return Ke(e) && e.type === "hidden";
116
+ }, yt = 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
- }, yt = function(e, r) {
121
+ }, gt = 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
- }, gt = function(e) {
125
+ }, wt = function(e) {
126
126
  if (!e.name)
127
127
  return !0;
128
128
  var r = e.form || G(e), n = function(s) {
@@ -136,13 +136,13 @@ var Re = ["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 = yt(i, e.form);
139
+ var u = gt(i, e.form);
140
140
  return !u || u === e;
141
- }, wt = function(e) {
142
- return Ke(e) && e.type === "radio";
143
141
  }, Et = function(e) {
144
- return wt(e) && !gt(e);
142
+ return Ke(e) && e.type === "radio";
145
143
  }, Nt = function(e) {
144
+ return Et(e) && !wt(e);
145
+ }, Tt = function(e) {
146
146
  var r, n = e && G(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 Re = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
155
155
  }, Ne = function(e) {
156
156
  var r = e.getBoundingClientRect(), n = r.width, i = r.height;
157
157
  return n === 0 && i === 0;
158
- }, Tt = function(e, r) {
158
+ }, Ot = 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 Re = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
172
172
  }
173
173
  e = s;
174
174
  }
175
- if (Nt(e))
175
+ if (Tt(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 Ne(e);
181
181
  return !1;
182
- }, Ot = function(e) {
182
+ }, Ft = 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 Re = ["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
- H(r) || mt(r) || Tt(r, e) || // For a details element with a summary, the summary element gets the focus
201
- ht(r) || Ot(r));
200
+ H(r) || ht(r) || Ot(r, e) || // For a details element with a summary, the summary element gets the focus
201
+ yt(r) || Ft(r));
202
202
  }, ne = function(e, r) {
203
- return !(Et(r) || C(r) < 0 || !q(e, r));
204
- }, Ft = function(e) {
203
+ return !(Nt(r) || C(r) < 0 || !q(e, r));
204
+ }, At = function(e) {
205
205
  var r = parseInt(e.getAttribute("tabindex"), 10);
206
206
  return !!(isNaN(r) || r >= 0);
207
- }, At = function t(e) {
207
+ }, St = 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 = bt(s, a), d = a ? t(i.candidates) : s;
210
+ var a = !!i.scopeParent, s = a ? i.scopeParent : i, l = pt(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 Re = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
215
215
  isScope: a,
216
216
  content: d
217
217
  });
218
- }), n.sort(pt).reduce(function(i, u) {
218
+ }), n.sort(mt).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
- }, St = function(e, r) {
221
+ }, It = function(e, r) {
222
222
  r = r || {};
223
223
  var n;
224
224
  return r.getShadowRoot ? n = Be([e], r.includeContainer, {
225
225
  filter: ne.bind(null, r),
226
226
  flatten: !1,
227
227
  getShadowRoot: r.getShadowRoot,
228
- shadowRootFilter: Ft
229
- }) : n = Le(e, r.includeContainer, ne.bind(null, r)), At(n);
230
- }, It = function(e, r) {
228
+ shadowRootFilter: At
229
+ }) : n = Le(e, r.includeContainer, ne.bind(null, r)), St(n);
230
+ }, xt = function(e, r) {
231
231
  r = r || {};
232
232
  var n;
233
233
  return r.getShadowRoot ? n = Be([e], r.includeContainer, {
@@ -239,10 +239,10 @@ var Re = ["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 P.call(e, V) === !1 ? !1 : ne(r, e);
242
- }, xt = /* @__PURE__ */ Re.concat("iframe").join(","), Q = function(e, r) {
242
+ }, kt = /* @__PURE__ */ Re.concat("iframe").join(","), Q = function(e, r) {
243
243
  if (r = r || {}, !e)
244
244
  throw new Error("No node provided");
245
- return P.call(e, xt) === !1 ? !1 : q(r, e);
245
+ return P.call(e, kt) === !1 ? !1 : q(r, e);
246
246
  };
247
247
  /*!
248
248
  * focus-trap 7.6.4
@@ -253,21 +253,21 @@ function ae(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 kt(t) {
256
+ function Ct(t) {
257
257
  if (Array.isArray(t)) return ae(t);
258
258
  }
259
- function Ct(t, e, r) {
260
- return (e = Lt(e)) in t ? Object.defineProperty(t, e, {
259
+ function Pt(t, e, r) {
260
+ return (e = Bt(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 Pt(t) {
267
+ function Dt(t) {
268
268
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
269
269
  }
270
- function Dt() {
270
+ function Rt() {
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 Oe(t) {
285
285
  for (var e = 1; e < arguments.length; e++) {
286
286
  var r = arguments[e] != null ? arguments[e] : {};
287
287
  e % 2 ? Te(Object(r), !0).forEach(function(n) {
288
- Ct(t, n, r[n]);
288
+ Pt(t, n, r[n]);
289
289
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Te(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 Rt(t) {
296
- return kt(t) || Pt(t) || Bt(t) || Dt();
295
+ function _t(t) {
296
+ return Ct(t) || Dt(t) || Mt(t) || Rt();
297
297
  }
298
- function _t(t, e) {
298
+ function Lt(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 _t(t, e) {
305
305
  }
306
306
  return (e === "string" ? String : Number)(t);
307
307
  }
308
- function Lt(t) {
309
- var e = _t(t, "string");
308
+ function Bt(t) {
309
+ var e = Lt(t, "string");
310
310
  return typeof e == "symbol" ? e : e + "";
311
311
  }
312
- function Bt(t, e) {
312
+ function Mt(t, e) {
313
313
  if (t) {
314
314
  if (typeof t == "string") return ae(t, e);
315
315
  var r = {}.toString.call(t).slice(8, -1);
@@ -329,15 +329,15 @@ var Fe = {
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
- }, Mt = function(e) {
333
- return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
334
332
  }, Kt = function(e) {
333
+ return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
334
+ }, Ut = 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
  }, U = function(e) {
337
337
  return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9;
338
- }, Ut = function(e) {
339
- return U(e) && !e.shiftKey;
340
338
  }, jt = function(e) {
339
+ return U(e) && !e.shiftKey;
340
+ }, Wt = function(e) {
341
341
  return U(e) && e.shiftKey;
342
342
  }, Ae = function(e) {
343
343
  return setTimeout(e, 0);
@@ -347,13 +347,13 @@ var Fe = {
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
- }, Wt = [], Vt = function(e, r) {
351
- var n = (r == null ? void 0 : r.document) || document, i = (r == null ? void 0 : r.trapStack) || Wt, u = Oe({
350
+ }, Vt = [], Gt = function(e, r) {
351
+ var n = (r == null ? void 0 : r.document) || document, i = (r == null ? void 0 : r.trapStack) || Vt, u = Oe({
352
352
  returnFocusOnDeactivate: !0,
353
353
  escapeDeactivates: !0,
354
354
  delayInitialFocus: !0,
355
- isKeyForward: Ut,
356
- isKeyBackward: jt
355
+ isKeyForward: jt,
356
+ isKeyBackward: Wt
357
357
  }, r), a = {
358
358
  // containers given to createFocusTrap()
359
359
  // @type {Array<HTMLElement>}
@@ -407,7 +407,7 @@ var Fe = {
407
407
  });
408
408
  }, y = function(o) {
409
409
  var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = c.hasFallback, m = f === void 0 ? !1 : f, h = c.params, N = h === void 0 ? [] : h, b = u[o];
410
- if (typeof b == "function" && (b = b.apply(void 0, Rt(N))), b === !0 && (b = void 0), !b) {
410
+ if (typeof b == "function" && (b = b.apply(void 0, _t(N))), b === !0 && (b = void 0), !b) {
411
411
  if (b === void 0 || b === !1)
412
412
  return b;
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 Fe = {
442
442
  return o;
443
443
  }, p = function() {
444
444
  if (a.containerGroups = a.containers.map(function(o) {
445
- var c = St(o, u.tabbableOptions), f = It(o, u.tabbableOptions), m = c.length > 0 ? c[0] : void 0, h = c.length > 0 ? c[c.length - 1] : void 0, N = f.find(function(O) {
445
+ var c = It(o, u.tabbableOptions), f = xt(o, u.tabbableOptions), m = c.length > 0 ? c[0] : void 0, h = c.length > 0 ? c[c.length - 1] : void 0, N = f.find(function(O) {
446
446
  return R(O);
447
447
  }), b = f.slice().reverse().find(function(O) {
448
448
  return R(O);
@@ -507,7 +507,7 @@ var Fe = {
507
507
  }
508
508
  o.focus({
509
509
  preventScroll: !!u.preventScroll
510
- }), a.mostRecentlyFocusedNode = o, Mt(o) && o.select();
510
+ }), a.mostRecentlyFocusedNode = o, Kt(o) && o.select();
511
511
  }
512
512
  }, F = function(o) {
513
513
  var c = y("setReturnFocus", {
@@ -604,7 +604,7 @@ var Fe = {
604
604
  }, me = function(o) {
605
605
  (u.isKeyForward(o) || u.isKeyBackward(o)) && pe(o, u.isKeyBackward(o));
606
606
  }, he = function(o) {
607
- Kt(o) && M(u.escapeDeactivates, o) !== !1 && (o.preventDefault(), s.deactivate());
607
+ Ut(o) && M(u.escapeDeactivates, o) !== !1 && (o.preventDefault(), s.deactivate());
608
608
  }, ye = function(o) {
609
609
  var c = W(o);
610
610
  d(c, o) >= 0 || M(u.clickOutsideDeactivates, o) || M(u.allowOutsideClick, o) || (o.preventDefault(), o.stopImmediatePropagation());
@@ -713,26 +713,30 @@ var Fe = {
713
713
  }
714
714
  }), s.updateContainerElements(e), s;
715
715
  };
716
- const Gt = (t, e) => {
717
- const r = z(null), n = st(t);
716
+ const Ht = (t, e, r) => {
717
+ const n = z(null), i = lt(t);
718
718
  De(
719
- [() => lt(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 = Vt(i, { delayInitialFocus: !1, fallbackFocus: i }), r.value.activate()));
719
+ [() => ft(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 = Gt(u, {
722
+ delayInitialFocus: !1,
723
+ fallbackFocus: u,
724
+ ...l
725
+ }), n.value.activate()));
722
726
  },
723
727
  { flush: "post" }
724
728
  ), Pe(() => {
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", Ht = "data-focus-lock-disabled", qt = "data-no-focus-lock", Yt = "data-autofocus-inside", Zt = "data-no-autofocus", A = function(t) {
733
+ var Se = "data-focus-lock", qt = "data-focus-lock-disabled", Yt = "data-no-focus-lock", Zt = "data-autofocus-inside", zt = "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
  }, ie = function(t) {
734
738
  return Array.isArray(t) ? t : [t];
735
- }, zt = function(t) {
739
+ }, $t = 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", Ht = "data-focus-lock-disabled", qt = "data-no-focus
744
748
  ) : t.parentNode;
745
749
  }, je = function(t) {
746
750
  return t === document || t && t.nodeType === Node.DOCUMENT_NODE;
747
- }, $t = function(t, e) {
748
- return !t || je(t) || !zt(t) && e(Ue(t));
751
+ }, Xt = function(t, e) {
752
+ return !t || je(t) || !$t(t) && e(Ue(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 = $t(e, We.bind(void 0, t));
757
+ var n = Xt(e, We.bind(void 0, t));
754
758
  return t.set(e, n), n;
755
- }, Xt = function(t, e) {
756
- return t && !je(t) ? er(t) ? e(Ue(t)) : !1 : !0;
759
+ }, Jt = function(t, e) {
760
+ return t && !je(t) ? tr(t) ? e(Ue(t)) : !1 : !0;
757
761
  }, Ve = function(t, e) {
758
762
  var r = t.get(e);
759
763
  if (r !== void 0)
760
764
  return r;
761
- var n = Xt(e, Ve.bind(void 0, t));
765
+ var n = Jt(e, Ve.bind(void 0, t));
762
766
  return t.set(e, n), n;
763
767
  }, Ge = function(t) {
764
768
  return t.dataset;
765
- }, Jt = function(t) {
769
+ }, Qt = function(t) {
766
770
  return t.tagName === "BUTTON";
767
771
  }, He = function(t) {
768
772
  return t.tagName === "INPUT";
769
773
  }, qe = function(t) {
770
774
  return He(t) && t.type === "radio";
771
- }, Qt = function(t) {
772
- return !((He(t) || Jt(t)) && (t.type === "hidden" || t.disabled));
773
775
  }, er = function(t) {
774
- var e = t.getAttribute(Zt);
776
+ return !((He(t) || Qt(t)) && (t.type === "hidden" || t.disabled));
777
+ }, tr = function(t) {
778
+ var e = t.getAttribute(zt);
775
779
  return ![!0, "true", ""].includes(e);
776
780
  }, ce = function(t) {
777
781
  var e;
778
782
  return !!(t && (!((e = Ge(t)) === null || e === void 0) && e.focusGuard));
779
783
  }, Y = function(t) {
780
784
  return !ce(t);
781
- }, tr = function(t) {
785
+ }, rr = function(t) {
782
786
  return !!t;
783
- }, rr = function(t, e) {
787
+ }, nr = 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", Ht = "data-focus-lock-disabled", qt = "data-no-focus
798
802
  };
799
803
  }).filter(function(n) {
800
804
  return !e || n.tabIndex >= 0;
801
- }).sort(rr);
802
- }, nr = [
805
+ }).sort(nr);
806
+ }, ar = [
803
807
  "button:enabled",
804
808
  "select:enabled",
805
809
  "textarea:enabled",
@@ -817,10 +821,10 @@ var Se = "data-focus-lock", Ht = "data-focus-lock-disabled", qt = "data-no-focus
817
821
  "[tabindex]",
818
822
  "[contenteditable]",
819
823
  "[autofocus]"
820
- ], se = nr.join(","), ar = "".concat(se, ", [data-focus-guard]"), Ze = function(t, e) {
824
+ ], se = ar.join(","), ir = "".concat(se, ", [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 ? ar : se) ? [i] : [], Ze(i));
827
+ return n.concat(i.matches(e ? ir : se) ? [i] : [], Ze(i));
824
828
  }, []);
825
829
  }, le = function(t, e) {
826
830
  return t.reduce(function(r, n) {
@@ -833,8 +837,8 @@ var Se = "data-focus-lock", Ht = "data-focus-lock-disabled", qt = "data-no-focus
833
837
  }) : []
834
838
  );
835
839
  }, []);
836
- }, ir = function(t) {
837
- var e = t.querySelectorAll("[".concat(Yt, "]"));
840
+ }, or = function(t) {
841
+ var e = t.querySelectorAll("[".concat(Zt, "]"));
838
842
  return A(e).map(function(r) {
839
843
  return le([r]);
840
844
  }).reduce(function(r, n) {
@@ -844,7 +848,7 @@ var Se = "data-focus-lock", Ht = "data-focus-lock-disabled", qt = "data-no-focus
844
848
  return A(t).filter(function(r) {
845
849
  return We(e, r);
846
850
  }).filter(function(r) {
847
- return Qt(r);
851
+ return er(r);
848
852
  });
849
853
  }, Ie = 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", Ht = "data-focus-lock-disabled", qt = "data-no-focus
854
858
  return Ye(fe(le(t, r), e), !0, r);
855
859
  }, xe = function(t, e) {
856
860
  return Ye(fe(le(t), e), !1);
857
- }, or = function(t, e) {
858
- return fe(ir(t), e);
861
+ }, ur = function(t, e) {
862
+ return fe(or(t), e);
859
863
  }, j = function(t, e) {
860
864
  return (t.shadowRoot ? j(t.shadowRoot, e) : t.contains(e)) || Array.from(t.children).some(function(r) {
861
865
  return j(r, e);
862
866
  });
863
- }, ur = function(t) {
867
+ }, cr = 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", Ht = "data-focus-lock-disabled", qt = "data-no-focus
875
879
  var e = ie(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 ? ur(A(ze(n).querySelectorAll("[".concat(Se, '="').concat(i, '"]:not([').concat(Ht, '="disabled"])')))) : [n]), r;
882
+ return r.push.apply(r, i ? cr(A(ze(n).querySelectorAll("[".concat(Se, '="').concat(i, '"]:not([').concat(qt, '="disabled"])')))) : [n]), r;
879
883
  }, []);
880
884
  }, $e = function(t) {
881
885
  return t.activeElement ? t.activeElement.shadowRoot ? $e(t.activeElement.shadowRoot) : t.activeElement : void 0;
882
886
  }, ve = function() {
883
887
  return document.activeElement ? document.activeElement.shadowRoot ? $e(document.activeElement.shadowRoot) : document.activeElement : void 0;
884
- }, cr = function(t) {
885
- return t === document.activeElement;
886
888
  }, sr = function(t) {
889
+ return t === document.activeElement;
890
+ }, lr = function(t) {
887
891
  return !!A(t.querySelectorAll("iframe")).some(function(e) {
888
- return cr(e);
892
+ return sr(e);
889
893
  });
890
- }, lr = function(t) {
894
+ }, fr = function(t) {
891
895
  var e = document && ve();
892
896
  return !e || e.dataset && e.dataset.focusGuard ? !1 : de(t).some(function(r) {
893
- return j(r, e) || sr(r);
897
+ return j(r, e) || lr(r);
894
898
  });
895
- }, fr = function() {
899
+ }, dr = function() {
896
900
  var t = document && ve();
897
- return t ? A(document.querySelectorAll("[".concat(qt, "]"))).some(function(e) {
901
+ return t ? A(document.querySelectorAll("[".concat(Yt, "]"))).some(function(e) {
898
902
  return j(e, t);
899
903
  }) : !1;
900
- }, dr = function(t, e) {
904
+ }, vr = function(t, e) {
901
905
  return e.filter(qe).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
  }, be = function(t, e) {
907
- return qe(t) && t.name ? dr(t, e) : t;
908
- }, vr = function(t) {
911
+ return qe(t) && t.name ? vr(t, e) : t;
912
+ }, br = function(t) {
909
913
  var e = /* @__PURE__ */ new Set();
910
914
  return t.forEach(function(r) {
911
915
  return e.add(be(r, t));
@@ -916,10 +920,10 @@ var Se = "data-focus-lock", Ht = "data-focus-lock-disabled", qt = "data-no-focus
916
920
  return t[0] && t.length > 1 ? be(t[0], t) : t[0];
917
921
  }, Ce = function(t, e) {
918
922
  return t.length > 1 ? t.indexOf(be(t[e], t)) : e;
919
- }, Xe = "NEW_FOCUS", br = function(t, e, r, n) {
923
+ }, Xe = "NEW_FOCUS", pr = function(t, e, r, n) {
920
924
  var i = t.length, u = t[0], a = t[i - 1], s = ce(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, y = n ? t.indexOf(n) : -1, v = l - d, p = e.indexOf(u), w = e.indexOf(a), g = vr(e), F = r !== void 0 ? g.indexOf(r) : -1, S = F - (n ? g.indexOf(n) : l), I = Ce(t, 0), D = Ce(t, i - 1);
926
+ var l = r !== void 0 ? e.indexOf(r) : -1, d = n ? e.indexOf(n) : l, y = n ? t.indexOf(n) : -1, v = l - d, p = e.indexOf(u), w = e.indexOf(a), g = br(e), F = r !== void 0 ? g.indexOf(r) : -1, S = F - (n ? g.indexOf(n) : l), I = Ce(t, 0), D = Ce(t, i - 1);
923
927
  if (l === -1 || y === -1)
924
928
  return Xe;
925
929
  if (!v && y >= 0)
@@ -954,23 +958,23 @@ var Se = "data-focus-lock", Ht = "data-focus-lock-disabled", qt = "data-no-focus
954
958
  d && (!a || j(d, a) ? a = d : a = ee(d, a));
955
959
  });
956
960
  }), a;
957
- }, pr = function(t, e) {
961
+ }, mr = function(t, e) {
958
962
  return t.reduce(function(r, n) {
959
- return r.concat(or(n, e));
963
+ return r.concat(ur(n, e));
960
964
  }, []);
961
- }, mr = function(t) {
965
+ }, hr = function(t) {
962
966
  return function(e) {
963
967
  var r;
964
968
  return e.autofocus || !!(!((r = Ge(e)) === null || r === void 0) && r.autofocus) || t.indexOf(e) >= 0;
965
969
  };
966
- }, hr = function(t, e) {
970
+ }, yr = 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(tr);
973
- }, yr = function(t, e) {
976
+ }).filter(rr);
977
+ }, gr = function(t, e) {
974
978
  var r = document && ve(), n = de(t).filter(Y), i = Je(r || t, t, n), u = /* @__PURE__ */ new Map(), a = xe(n, u), s = oe(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", Ht = "data-focus-lock-disabled", qt = "data-no-focus
979
983
  var l = xe([i], u).map(function(w) {
980
984
  var g = w.node;
981
985
  return g;
982
- }), d = hr(l, s), y = d.map(function(w) {
986
+ }), d = yr(l, s), y = d.map(function(w) {
983
987
  var g = w.node;
984
988
  return g;
985
- }), v = br(y, l, r, e);
989
+ }), v = pr(y, l, r, e);
986
990
  if (v === Xe) {
987
991
  var p = Ie(a.map(function(w) {
988
992
  var g = w.node;
989
993
  return g;
990
- })).filter(mr(pr(n, u)));
994
+ })).filter(hr(mr(n, u)));
991
995
  return {
992
996
  node: p && p.length ? ke(p) : ke(Ie(y))
993
997
  };
994
998
  }
995
999
  return v === void 0 ? v : d[v];
996
1000
  }
997
- }, gr = function(t) {
1001
+ }, wr = function(t) {
998
1002
  var e = de(t).filter(Y), r = Je(t, t, e), n = /* @__PURE__ */ new Map(), i = oe([r], n, !0), u = oe(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", Ht = "data-focus-lock-disabled", qt = "data-no-focus
1011
1015
  guard: ce(s)
1012
1016
  };
1013
1017
  });
1014
- }, wr = gr, Er = function(t, e) {
1018
+ }, Er = wr, Nr = function(t, e) {
1015
1019
  "focus" in t && t.focus(e), "contentWindow" in t && t.contentWindow && t.contentWindow.focus();
1016
- }, te = 0, re = !1, Nr = function(t, e, r) {
1020
+ }, te = 0, re = !1, Tr = function(t, e, r) {
1017
1021
  r === void 0 && (r = {});
1018
- var n = yr(t, e);
1022
+ var n = gr(t, e);
1019
1023
  if (!re && n) {
1020
1024
  if (te > 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"), re = !0, setTimeout(function() {
@@ -1023,29 +1027,29 @@ var Se = "data-focus-lock", Ht = "data-focus-lock-disabled", qt = "data-no-focus
1023
1027
  }, 1);
1024
1028
  return;
1025
1029
  }
1026
- te++, Er(n.node, r.focusOptions), te--;
1030
+ te++, Nr(n.node, r.focusOptions), te--;
1027
1031
  }
1028
1032
  };
1029
- const Tr = (t) => requestAnimationFrame(t), Or = (t, e) => {
1033
+ const Or = (t) => requestAnimationFrame(t), Fr = (t, e) => {
1030
1034
  const r = e.findIndex((n) => n.node === t);
1031
1035
  return r === -1 ? 0 : r;
1032
- }, Fr = (t, e) => {
1036
+ }, Ar = (t, e) => {
1033
1037
  var u;
1034
- const r = document.activeElement, n = wr(e), i = Or(r, n) + t;
1038
+ const r = document.activeElement, n = Er(e), i = Fr(r, n) + t;
1035
1039
  return ((u = n[i]) == null ? void 0 : u.node) || r;
1036
- }, Ar = (t, e) => {
1040
+ }, Sr = (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
- }, Sr = {
1046
+ }, Ir = {
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 || {}), Qe = /* @__PURE__ */ ((t) => (t.ARROW_UP = "arrowup", t.ARROW_DOWN = "arrowdown", t))(Qe || {}), et = /* @__PURE__ */ ((t) => (t.ARROW_LEFT = "arrowleft", t.ARROW_RIGHT = "arrowright", t))(et || {});
1048
- const Ir = (t, e, r) => {
1052
+ const xr = (t, e, r) => {
1049
1053
  const n = z(null), i = K(
1050
1054
  () => r === Z.HORIZONTAL
1051
1055
  ), u = K(
@@ -1053,7 +1057,7 @@ const Ir = (t, e, r) => {
1053
1057
  ), a = K(
1054
1058
  () => u.value ? Object.values(Qe) : Object.values(et)
1055
1059
  ), s = () => {
1056
- (document.activeElement === document.body || fr() || !n.value) && (t.value && !lr(t.value) && Nr(t.value, n.value, {
1060
+ (document.activeElement === document.body || dr() || !n.value) && (t.value && !fr(t.value) && Tr(t.value, n.value, {
1057
1061
  focusOptions: { preventScroll: !0 }
1058
1062
  }), n.value = document.activeElement);
1059
1063
  }, l = () => {
@@ -1061,7 +1065,7 @@ const Ir = (t, e, r) => {
1061
1065
  const p = n.value || ((w = t.value) == null ? void 0 : w.parentNode) || document.body;
1062
1066
  p && p.focus();
1063
1067
  }, d = () => {
1064
- e.value && Tr(s);
1068
+ e.value && Or(s);
1065
1069
  }, y = () => {
1066
1070
  var g;
1067
1071
  if (!u.value && !i.value)
@@ -1071,11 +1075,11 @@ const Ir = (t, e, r) => {
1071
1075
  }, v = (p) => {
1072
1076
  if (!e.value || document.activeElement.isContentEditable || y())
1073
1077
  return;
1074
- const { isArrowNext: w, isArrowPrev: g } = Ar(p, a.value);
1078
+ const { isArrowNext: w, isArrowPrev: g } = Sr(p, a.value);
1075
1079
  if ((g || w) && (p.preventDefault(), p.stopPropagation(), t.value)) {
1076
- const F = Fr(g ? 1 : -1, t.value);
1080
+ const F = Ar(g ? 1 : -1, t.value);
1077
1081
  if (F.focus(), "scrollIntoView" in F) {
1078
- const S = "scrollBehavior" in document.documentElement.style ? Sr : !1;
1082
+ const S = "scrollBehavior" in document.documentElement.style ? Ir : !1;
1079
1083
  F.scrollIntoView(S);
1080
1084
  }
1081
1085
  }
@@ -1093,10 +1097,10 @@ const Ir = (t, e, r) => {
1093
1097
  onKeyDown: v,
1094
1098
  onBlur: d
1095
1099
  };
1096
- }, xr = {
1100
+ }, kr = {
1097
1101
  name: "bento-focus-trap"
1098
- }, kr = /* @__PURE__ */ it({
1099
- ...xr,
1102
+ }, Cr = /* @__PURE__ */ it({
1103
+ ...kr,
1100
1104
  props: {
1101
1105
  /**
1102
1106
  * Enables / Disables arrow navigation as well can determine the type of arrow navigation.
@@ -1120,35 +1124,42 @@ const Ir = (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 = ot(), i = ut(n), u = K(() => e.trapAll && !e.disabled && !e.arrowNavigation), a = K(() => !e.disabled && !e.trapAll);
1127
- Gt(r, u);
1128
- const { handleKeydownEscape: s } = dt(r), { onKeyDown: l, onBlur: d } = Ir(r, a, e.arrowNavigation);
1137
+ const e = t, r = z(null), n = ot(), i = ct(n), u = K(() => e.trapAll && !e.disabled && !e.arrowNavigation), a = K(() => !e.disabled && !e.trapAll);
1138
+ Ht(r, u, ut(e, "trapAllOptions"));
1139
+ const { handleKeydownEscape: s } = vt(r), { onKeyDown: l, onBlur: d } = xr(r, a, e.arrowNavigation);
1129
1140
  return { __sfc: !0, props: e, root: r, slots: n, hasSlot: i, activateTrapAll: u, activateTrapArrowKeysOnly: a, handleKeydownEscape: s, onKeyDown: l, onBlur: d };
1130
1141
  }
1131
1142
  });
1132
- var Cr = function() {
1143
+ var Pr = function() {
1133
1144
  var e = this, r = e._self._c, n = e._self._setupProxy;
1134
1145
  return n.hasSlot("default") ? r("div", e._g({ ref: "root", staticClass: "b-focus-trap", attrs: { "data-testid": "focus-trap", tabindex: "-1" }, on: { focusout: n.onBlur, keydown: function(i) {
1135
1146
  return !i.type.indexOf("key") && e._k(i.keyCode, "esc", 27, i.key, ["Esc", "Escape"]) ? null : n.handleKeydownEscape.apply(null, arguments);
1136
1147
  } } }, e.arrowNavigation ? { keydown: n.onKeyDown } : {}), [e._t("default")], 2) : e._e();
1137
- }, Pr = [], Dr = /* @__PURE__ */ ft(
1138
- kr,
1148
+ }, Dr = [], Rr = /* @__PURE__ */ dt(
1139
1149
  Cr,
1140
1150
  Pr,
1151
+ Dr,
1141
1152
  !1,
1142
1153
  null,
1143
- "5f4cf3e1"
1154
+ "e355ce78"
1144
1155
  );
1145
- const Mr = Dr.exports;
1156
+ const Kr = Rr.exports;
1146
1157
  export {
1147
- Mr as B,
1158
+ Kr as B,
1148
1159
  ve as a,
1149
- wr as b,
1150
- lr as f,
1151
- Fr as g,
1152
- Nr as s
1160
+ Er as b,
1161
+ fr as f,
1162
+ Ar as g,
1163
+ Tr as s
1153
1164
  };
1154
- //# sourceMappingURL=focus-trap.COfrmVfx.js.map
1165
+ //# sourceMappingURL=focus-trap.BJfpIboH.js.map