@adyen/bento-vue2 1.81.0 → 1.82.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.
- package/README.md +1 -1
- package/dist/@types/components.d.ts +196 -0
- package/dist/@types/index.d.ts +17585 -0
- package/dist/@types/use-form-v4.d.ts +86 -0
- package/dist/accordion.js +6 -0
- package/dist/accordion.js.map +1 -0
- package/dist/action-bar.js +5 -0
- package/dist/action-bar.js.map +1 -0
- package/dist/alert.js +8 -0
- package/dist/alert.js.map +1 -0
- package/dist/assets/accordion-item.css +1 -0
- package/dist/assets/action-bar.css +1 -0
- package/dist/assets/ai-button.css +1 -0
- package/dist/assets/alert.css +1 -0
- package/dist/assets/avatar.css +1 -0
- package/dist/assets/base-button.css +1 -0
- package/dist/assets/base-modal.css +1 -0
- package/dist/assets/button-actions-with-menu.css +1 -0
- package/dist/assets/button-actions.css +1 -0
- package/dist/assets/button.css +1 -0
- package/dist/assets/calendar.css +1 -0
- package/dist/assets/card.css +1 -0
- package/dist/assets/checkbox-group.css +1 -0
- package/dist/assets/checkbox-input.css +1 -0
- package/dist/assets/checkbox.css +1 -0
- package/dist/assets/chip.css +1 -0
- package/dist/assets/code-snippet.css +1 -0
- package/dist/assets/controls-group.css +1 -0
- package/dist/assets/copy.css +1 -0
- package/dist/assets/country.css +1 -0
- package/dist/assets/currency.css +1 -0
- package/dist/assets/dashboard-section.css +1 -0
- package/dist/assets/dashed-underline.css +1 -0
- package/dist/assets/data-grid-template.css +1 -0
- package/dist/assets/data-grid.css +1 -0
- package/dist/assets/date-picker.css +1 -0
- package/dist/assets/date-range-picker.css +1 -0
- package/dist/assets/date.css +1 -0
- package/dist/assets/dialog-page.css +1 -0
- package/dist/assets/divider.css +1 -0
- package/dist/assets/dropdown-default-textbox.css +1 -0
- package/dist/assets/dropdown-tag.css +1 -0
- package/dist/assets/dropdown.css +1 -0
- package/dist/assets/empty-state.css +1 -0
- package/dist/assets/field-label.css +1 -0
- package/dist/assets/file-uploader.css +1 -0
- package/dist/assets/filter-bar.css +1 -0
- package/dist/assets/fixed-scroller.css +1 -0
- package/dist/assets/focus-trap.css +1 -0
- package/dist/assets/footer-actions.css +1 -0
- package/dist/assets/form-layout-title.css +1 -0
- package/dist/assets/grid-layout.css +1 -0
- package/dist/assets/header-meta.css +1 -0
- package/dist/assets/header-with-views.css +1 -0
- package/dist/assets/header.css +1 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/info-icon.css +1 -0
- package/dist/assets/input-field-password.css +1 -0
- package/dist/assets/input-field-phone-number.css +1 -0
- package/dist/assets/input-field.css +1 -0
- package/dist/assets/inspector.css +1 -0
- package/dist/assets/layout-row.css +1 -0
- package/dist/assets/link.css +1 -0
- package/dist/assets/listbox-option-tag.css +1 -0
- package/dist/assets/loading-indicator.css +1 -0
- package/dist/assets/main.css +1 -0
- package/dist/assets/modal-fullscreen.css +1 -0
- package/dist/assets/pagination.css +1 -0
- package/dist/assets/payment-method.css +1 -0
- package/dist/assets/popper-container.css +1 -0
- package/dist/assets/promo-banner.css +1 -0
- package/dist/assets/radio-group.css +1 -0
- package/dist/assets/radio-input.css +1 -0
- package/dist/assets/rich-text-editor.css +1 -0
- package/dist/assets/search-bar.css +1 -0
- package/dist/assets/secondary-nav.css +1 -0
- package/dist/assets/segmented-control.css +1 -0
- package/dist/assets/selection-card-group.css +1 -0
- package/dist/assets/sidepanel.css +1 -0
- package/dist/assets/status.css +1 -0
- package/dist/assets/step.css +1 -0
- package/dist/assets/structured-list-item.css +1 -0
- package/dist/assets/summary-grid.css +1 -0
- package/dist/assets/tab.css +1 -0
- package/dist/assets/tag.css +1 -0
- package/dist/assets/textarea.css +1 -0
- package/dist/assets/timeline-item.css +1 -0
- package/dist/assets/toast.css +1 -0
- package/dist/assets/toggle.css +1 -0
- package/dist/assets/tooltip.css +1 -0
- package/dist/assets/tutorial.css +1 -0
- package/dist/assets/typography.css +1 -0
- package/dist/assets/use-cached-selected-values.css +1 -0
- package/dist/avatar.js +5 -0
- package/dist/avatar.js.map +1 -0
- package/dist/button.js +18 -0
- package/dist/button.js.map +1 -0
- package/dist/card.js +7 -0
- package/dist/card.js.map +1 -0
- package/dist/checkbox.js +11 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/chip.js +5 -0
- package/dist/chip.js.map +1 -0
- package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
- package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
- package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
- package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
- package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
- package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
- package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
- package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
- package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
- package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
- package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
- package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
- package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
- package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
- package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
- package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
- package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +11 -0
- package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +1 -0
- package/dist/chunks/accordion-item.G1q4zgBG.js +117 -0
- package/dist/chunks/accordion-item.G1q4zgBG.js.map +1 -0
- package/dist/chunks/action-bar.Dhl3T4j-.js +160 -0
- package/dist/chunks/action-bar.Dhl3T4j-.js.map +1 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
- package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
- package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
- package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
- package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
- package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
- package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
- package/dist/chunks/ai-button.DBwtNkyS.js +67 -0
- package/dist/chunks/ai-button.DBwtNkyS.js.map +1 -0
- package/dist/chunks/alert.SZPP58tl.js +103 -0
- package/dist/chunks/alert.SZPP58tl.js.map +1 -0
- package/dist/chunks/aria-label.CaUURpnB.js +13 -0
- package/dist/chunks/aria-label.CaUURpnB.js.map +1 -0
- package/dist/chunks/avatar.CeDqq2Z-.js +71 -0
- package/dist/chunks/avatar.CeDqq2Z-.js.map +1 -0
- package/dist/chunks/base-button.BdST9XT3.js +86 -0
- package/dist/chunks/base-button.BdST9XT3.js.map +1 -0
- package/dist/chunks/base-modal.C-UqIAY8.js +310 -0
- package/dist/chunks/base-modal.C-UqIAY8.js.map +1 -0
- package/dist/chunks/bin.Ddb69cr1.js +24 -0
- package/dist/chunks/bin.Ddb69cr1.js.map +1 -0
- package/dist/chunks/button-actions-with-menu.KKq9Cuk1.js +85 -0
- package/dist/chunks/button-actions-with-menu.KKq9Cuk1.js.map +1 -0
- package/dist/chunks/button-actions.N3D-Bb_x.js +1035 -0
- package/dist/chunks/button-actions.N3D-Bb_x.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js +8 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -0
- package/dist/chunks/button.CS_kdxYh.js +110 -0
- package/dist/chunks/button.CS_kdxYh.js.map +1 -0
- package/dist/chunks/calendar.Bhj58zR3.js +1832 -0
- package/dist/chunks/calendar.Bhj58zR3.js.map +1 -0
- package/dist/chunks/card.BYWF_Zvo.js +137 -0
- package/dist/chunks/card.BYWF_Zvo.js.map +1 -0
- package/dist/chunks/checkbox-group.CIIa-cYP.js +142 -0
- package/dist/chunks/checkbox-group.CIIa-cYP.js.map +1 -0
- package/dist/chunks/checkbox-input.B0NsfSNR.js +117 -0
- package/dist/chunks/checkbox-input.B0NsfSNR.js.map +1 -0
- package/dist/chunks/checkbox.CiWvdg8S.js +178 -0
- package/dist/chunks/checkbox.CiWvdg8S.js.map +1 -0
- package/dist/chunks/checkmark-circle-fill.BttTCjrM.js +24 -0
- package/dist/chunks/checkmark-circle-fill.BttTCjrM.js.map +1 -0
- package/dist/chunks/checkmark-small.DVDtD4HQ.js +24 -0
- package/dist/chunks/checkmark-small.DVDtD4HQ.js.map +1 -0
- package/dist/chunks/chevron-down.eYtgv5ly.js +24 -0
- package/dist/chunks/chevron-down.eYtgv5ly.js.map +1 -0
- package/dist/chunks/chevron-left.BS24hEFa.js +43 -0
- package/dist/chunks/chevron-left.BS24hEFa.js.map +1 -0
- package/dist/chunks/chevron-up.d8cwIlA_.js +24 -0
- package/dist/chunks/chevron-up.d8cwIlA_.js.map +1 -0
- package/dist/chunks/chip.B0DRDvaa.js +63 -0
- package/dist/chunks/chip.B0DRDvaa.js.map +1 -0
- package/dist/chunks/click-outside.C1Ud8AA2.js +23 -0
- package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -0
- package/dist/chunks/code-snippet.BMzhRl4c.js +268 -0
- package/dist/chunks/code-snippet.BMzhRl4c.js.map +1 -0
- package/dist/chunks/codemirror.Cy7iSLbd.js +14628 -0
- package/dist/chunks/codemirror.Cy7iSLbd.js.map +1 -0
- package/dist/chunks/constructNow.BhymNmy5.js +8 -0
- package/dist/chunks/constructNow.BhymNmy5.js.map +1 -0
- package/dist/chunks/controls-group.GchVWe7h.js +84 -0
- package/dist/chunks/controls-group.GchVWe7h.js.map +1 -0
- package/dist/chunks/copy.DauzzgJV.js +96 -0
- package/dist/chunks/copy.DauzzgJV.js.map +1 -0
- package/dist/chunks/country.B3z3-QRY.js +69 -0
- package/dist/chunks/country.B3z3-QRY.js.map +1 -0
- package/dist/chunks/country.types.C0Q_hhgJ.js +269 -0
- package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -0
- package/dist/chunks/cross-circle-fill-small.DfxDedRr.js +24 -0
- package/dist/chunks/cross-circle-fill-small.DfxDedRr.js.map +1 -0
- package/dist/chunks/cross-circle-fill.DTDtgLMf.js +24 -0
- package/dist/chunks/cross-circle-fill.DTDtgLMf.js.map +1 -0
- package/dist/chunks/cross-small.CoQUe8SS.js +24 -0
- package/dist/chunks/cross-small.CoQUe8SS.js.map +1 -0
- package/dist/chunks/cross.CC_B-vG-.js +24 -0
- package/dist/chunks/cross.CC_B-vG-.js.map +1 -0
- package/dist/chunks/currency.Cwhzzxw2.js +114 -0
- package/dist/chunks/currency.Cwhzzxw2.js.map +1 -0
- package/dist/chunks/dashboard-section.CgAfEay4.js +102 -0
- package/dist/chunks/dashboard-section.CgAfEay4.js.map +1 -0
- package/dist/chunks/dashed-underline.CMdNukpN.js +77 -0
- package/dist/chunks/dashed-underline.CMdNukpN.js.map +1 -0
- package/dist/chunks/data-grid-template.keys.VezYtHtM.js +5 -0
- package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -0
- package/dist/chunks/data-grid-template.m4hsFMe2.js +111 -0
- package/dist/chunks/data-grid-template.m4hsFMe2.js.map +1 -0
- package/dist/chunks/data-grid.rAVOFiTv.js +3294 -0
- package/dist/chunks/data-grid.rAVOFiTv.js.map +1 -0
- package/dist/chunks/date-format.B8RU7D42.js +17 -0
- package/dist/chunks/date-format.B8RU7D42.js.map +1 -0
- package/dist/chunks/date-picker.nLuHJgOC.js +169 -0
- package/dist/chunks/date-picker.nLuHJgOC.js.map +1 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js +5 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -0
- package/dist/chunks/date-range-picker.D2MKhVMf.js +906 -0
- package/dist/chunks/date-range-picker.D2MKhVMf.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js +5 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -0
- package/dist/chunks/date.C1z2TXzM.js +160 -0
- package/dist/chunks/date.C1z2TXzM.js.map +1 -0
- package/dist/chunks/debounce.DUTu11PS.js +10 -0
- package/dist/chunks/debounce.DUTu11PS.js.map +1 -0
- package/dist/chunks/delight.CDBAFnwC.js +5 -0
- package/dist/chunks/delight.CDBAFnwC.js.map +1 -0
- package/dist/chunks/delight.xKDCvvaS.js +5 -0
- package/dist/chunks/delight.xKDCvvaS.js.map +1 -0
- package/dist/chunks/dialog-page.krM2wQpm.js +131 -0
- package/dist/chunks/dialog-page.krM2wQpm.js.map +1 -0
- package/dist/chunks/differenceInMonths.Cab3nOsb.js +1590 -0
- package/dist/chunks/differenceInMonths.Cab3nOsb.js.map +1 -0
- package/dist/chunks/directive.Cbdox5VL.js +23 -0
- package/dist/chunks/directive.Cbdox5VL.js.map +1 -0
- package/dist/chunks/divider.DX5gwN7p.js +35 -0
- package/dist/chunks/divider.DX5gwN7p.js.map +1 -0
- package/dist/chunks/dot.BW9SneIk.js +24 -0
- package/dist/chunks/dot.BW9SneIk.js.map +1 -0
- package/dist/chunks/dropdown-default-textbox.uWZMxeI7.js +350 -0
- package/dist/chunks/dropdown-default-textbox.uWZMxeI7.js.map +1 -0
- package/dist/chunks/dropdown-tag.BnqOBdMp.js +294 -0
- package/dist/chunks/dropdown-tag.BnqOBdMp.js.map +1 -0
- package/dist/chunks/dropdown.BijF56Y7.js +714 -0
- package/dist/chunks/dropdown.BijF56Y7.js.map +1 -0
- package/dist/chunks/empty-state.BsdRxzS2.js +106 -0
- package/dist/chunks/empty-state.BsdRxzS2.js.map +1 -0
- package/dist/chunks/es6.MoTTyETW.js +12 -0
- package/dist/chunks/es6.MoTTyETW.js.map +1 -0
- package/dist/chunks/events.BQOQSSb7.js +44 -0
- package/dist/chunks/events.BQOQSSb7.js.map +1 -0
- package/dist/chunks/expand.Bbielaja.js +24 -0
- package/dist/chunks/expand.Bbielaja.js.map +1 -0
- package/dist/chunks/field-label.DHGAa4cq.js +121 -0
- package/dist/chunks/field-label.DHGAa4cq.js.map +1 -0
- package/dist/chunks/file-uploader.D2s5qccE.js +1917 -0
- package/dist/chunks/file-uploader.D2s5qccE.js.map +1 -0
- package/dist/chunks/filter-bar.DISI1jAU.js +2472 -0
- package/dist/chunks/filter-bar.DISI1jAU.js.map +1 -0
- package/dist/chunks/fixed-scroller.CgVOf5VE.js +106 -0
- package/dist/chunks/fixed-scroller.CgVOf5VE.js.map +1 -0
- package/dist/chunks/focus-trap.CNIU5jOz.js +1168 -0
- package/dist/chunks/focus-trap.CNIU5jOz.js.map +1 -0
- package/dist/chunks/footer-actions.CFZwikg0.js +96 -0
- package/dist/chunks/footer-actions.CFZwikg0.js.map +1 -0
- package/dist/chunks/form-field.D_2g7vaP.js +10 -0
- package/dist/chunks/form-field.D_2g7vaP.js.map +1 -0
- package/dist/chunks/form-layout-title.B_oVSX5b.js +197 -0
- package/dist/chunks/form-layout-title.B_oVSX5b.js.map +1 -0
- package/dist/chunks/form-layout.types.bZW9iR6_.js +5 -0
- package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -0
- package/dist/chunks/generate-uid.NJ8tVoha.js +32 -0
- package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -0
- package/dist/chunks/get-slot-text.Bjb9dTSV.js +12 -0
- package/dist/chunks/get-slot-text.Bjb9dTSV.js.map +1 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js +10 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -0
- package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js +484 -0
- package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +1 -0
- package/dist/chunks/grid-layout.1aIiz2N_.js +76 -0
- package/dist/chunks/grid-layout.1aIiz2N_.js.map +1 -0
- package/dist/chunks/header-meta.D0UdrdVf.js +170 -0
- package/dist/chunks/header-meta.D0UdrdVf.js.map +1 -0
- package/dist/chunks/header-with-views.BjZkBSI0.js +1591 -0
- package/dist/chunks/header-with-views.BjZkBSI0.js.map +1 -0
- package/dist/chunks/header.QYvN86kI.js +103 -0
- package/dist/chunks/header.QYvN86kI.js.map +1 -0
- package/dist/chunks/image.C2D2hKat.js +56 -0
- package/dist/chunks/image.C2D2hKat.js.map +1 -0
- package/dist/chunks/index.B6WW_F-J.js +31 -0
- package/dist/chunks/index.B6WW_F-J.js.map +1 -0
- package/dist/chunks/index.BDK4hwK_.js +593 -0
- package/dist/chunks/index.BDK4hwK_.js.map +1 -0
- package/dist/chunks/index.Cl4_42j5.js +8 -0
- package/dist/chunks/index.Cl4_42j5.js.map +1 -0
- package/dist/chunks/info-icon.iKLaNff6.js +37 -0
- package/dist/chunks/info-icon.iKLaNff6.js.map +1 -0
- package/dist/chunks/info.CcMZ4aGg.js +24 -0
- package/dist/chunks/info.CcMZ4aGg.js.map +1 -0
- package/dist/chunks/input-field-password.BeRjHhu6.js +270 -0
- package/dist/chunks/input-field-password.BeRjHhu6.js.map +1 -0
- package/dist/chunks/input-field-phone-number.DLOUy8_E.js +3324 -0
- package/dist/chunks/input-field-phone-number.DLOUy8_E.js.map +1 -0
- package/dist/chunks/input-field.B1Q1-zLo.js +171 -0
- package/dist/chunks/input-field.B1Q1-zLo.js.map +1 -0
- package/dist/chunks/inspector.C6bbjQC0.js +117 -0
- package/dist/chunks/inspector.C6bbjQC0.js.map +1 -0
- package/dist/chunks/inspector.types.DyHwE18g.js +5 -0
- package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -0
- package/dist/chunks/internal-error.BLZodVBE.js +5 -0
- package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
- package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
- package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
- package/dist/chunks/keyboard-navigation.DWmhelVv.js +66 -0
- package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -0
- package/dist/chunks/layout-row.DwdZbpVG.js +87 -0
- package/dist/chunks/layout-row.DwdZbpVG.js.map +1 -0
- package/dist/chunks/link.D8qpqg3W.js +95 -0
- package/dist/chunks/link.D8qpqg3W.js.map +1 -0
- package/dist/chunks/listbox-option-tag.CK628fjn.js +44 -0
- package/dist/chunks/listbox-option-tag.CK628fjn.js.map +1 -0
- package/dist/chunks/loading-indicator.PxbRzshH.js +42 -0
- package/dist/chunks/loading-indicator.PxbRzshH.js.map +1 -0
- package/dist/chunks/minus-small.DJacLGTw.js +27 -0
- package/dist/chunks/minus-small.DJacLGTw.js.map +1 -0
- package/dist/chunks/modal-fullscreen.UqZgbaDw.js +221 -0
- package/dist/chunks/modal-fullscreen.UqZgbaDw.js.map +1 -0
- package/dist/chunks/modal.DCgB0pA2.js +445 -0
- package/dist/chunks/modal.DCgB0pA2.js.map +1 -0
- package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
- package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
- package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
- package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
- package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
- package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
- package/dist/chunks/on-click-outside.D9aY9g8G.js +101 -0
- package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -0
- package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
- package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
- package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
- package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
- package/dist/chunks/pagination.CylAnOyc.js +338 -0
- package/dist/chunks/pagination.CylAnOyc.js.map +1 -0
- package/dist/chunks/payment-method.C8Ie97qE.js +76 -0
- package/dist/chunks/payment-method.C8Ie97qE.js.map +1 -0
- package/dist/chunks/payment-method.types.BqtH7RM2.js +5 -0
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -0
- package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
- package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
- package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
- package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
- package/dist/chunks/popover.types.WDh5ggr3.js +6 -0
- package/dist/chunks/popover.types.WDh5ggr3.js.map +1 -0
- package/dist/chunks/popper-container.Cdokz_NE.js +1404 -0
- package/dist/chunks/popper-container.Cdokz_NE.js.map +1 -0
- package/dist/chunks/promo-banner.DikQcQU2.js +70 -0
- package/dist/chunks/promo-banner.DikQcQU2.js.map +1 -0
- package/dist/chunks/radio-group.Cr7UcYij.js +178 -0
- package/dist/chunks/radio-group.Cr7UcYij.js.map +1 -0
- package/dist/chunks/radio-input.kzb4gxLW.js +90 -0
- package/dist/chunks/radio-input.kzb4gxLW.js.map +1 -0
- package/dist/chunks/referrals.BvtT-kQS.js +5 -0
- package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
- package/dist/chunks/referrals.aX8WZigH.js +5 -0
- package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
- package/dist/chunks/refresh.arF7jP-l.js +24 -0
- package/dist/chunks/refresh.arF7jP-l.js.map +1 -0
- package/dist/chunks/resize.Bqks3WUm.js +15 -0
- package/dist/chunks/resize.Bqks3WUm.js.map +1 -0
- package/dist/chunks/rich-text-editor.NKPFP8Ss.js +6203 -0
- package/dist/chunks/rich-text-editor.NKPFP8Ss.js.map +1 -0
- package/dist/chunks/search-bar.VctrP6lp.js +98 -0
- package/dist/chunks/search-bar.VctrP6lp.js.map +1 -0
- package/dist/chunks/search.D53Ia3rC.js +24 -0
- package/dist/chunks/search.D53Ia3rC.js.map +1 -0
- package/dist/chunks/secondary-nav.jpMeWSZj.js +112 -0
- package/dist/chunks/secondary-nav.jpMeWSZj.js.map +1 -0
- package/dist/chunks/segmented-control._CuB62pG.js +113 -0
- package/dist/chunks/segmented-control._CuB62pG.js.map +1 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
- package/dist/chunks/selection-card-group.jykyd9iE.js +240 -0
- package/dist/chunks/selection-card-group.jykyd9iE.js.map +1 -0
- package/dist/chunks/show.B_mKPF6I.js +43 -0
- package/dist/chunks/show.B_mKPF6I.js.map +1 -0
- package/dist/chunks/sidepanel.CP-b8Zcg.js +210 -0
- package/dist/chunks/sidepanel.CP-b8Zcg.js.map +1 -0
- package/dist/chunks/status.types.BpMK-6IT.js +36 -0
- package/dist/chunks/status.types.BpMK-6IT.js.map +1 -0
- package/dist/chunks/step.4hMAy8v_.js +217 -0
- package/dist/chunks/step.4hMAy8v_.js.map +1 -0
- package/dist/chunks/structured-list-item.BLJabJwA.js +90 -0
- package/dist/chunks/structured-list-item.BLJabJwA.js.map +1 -0
- package/dist/chunks/success.DhioLvPD.js +5 -0
- package/dist/chunks/success.DhioLvPD.js.map +1 -0
- package/dist/chunks/success.nNwxJRBS.js +5 -0
- package/dist/chunks/success.nNwxJRBS.js.map +1 -0
- package/dist/chunks/summary-grid.keys.Xx-W5a2w.js +6 -0
- package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -0
- package/dist/chunks/summary-grid.types.B0w2S_9r.js +337 -0
- package/dist/chunks/summary-grid.types.B0w2S_9r.js.map +1 -0
- package/dist/chunks/tab.DXE68qVf.js +192 -0
- package/dist/chunks/tab.DXE68qVf.js.map +1 -0
- package/dist/chunks/tabs.keys.B4qGhjp2.js +7 -0
- package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -0
- package/dist/chunks/tag.7fp_M9Au.js +44 -0
- package/dist/chunks/tag.7fp_M9Au.js.map +1 -0
- package/dist/chunks/textarea.Ci9sKDFy.js +173 -0
- package/dist/chunks/textarea.Ci9sKDFy.js.map +1 -0
- package/dist/chunks/timeline-item.DcIQ-Q1T.js +255 -0
- package/dist/chunks/timeline-item.DcIQ-Q1T.js.map +1 -0
- package/dist/chunks/toast.DGvNp4ZM.js +171 -0
- package/dist/chunks/toast.DGvNp4ZM.js.map +1 -0
- package/dist/chunks/toggle.D2wmNu7m.js +108 -0
- package/dist/chunks/toggle.D2wmNu7m.js.map +1 -0
- package/dist/chunks/tooltip.BcQ24pKP.js +189 -0
- package/dist/chunks/tooltip.BcQ24pKP.js.map +1 -0
- package/dist/chunks/truncate.BfIl_-71.js +8 -0
- package/dist/chunks/truncate.BfIl_-71.js.map +1 -0
- package/dist/chunks/tutorial.Co2F7l0B.js +347 -0
- package/dist/chunks/tutorial.Co2F7l0B.js.map +1 -0
- package/dist/chunks/typography.hlOAxsEn.js +87 -0
- package/dist/chunks/typography.hlOAxsEn.js.map +1 -0
- package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
- package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
- package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
- package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
- package/dist/chunks/use-bento-toast-controller.BhtohoS1.js +52 -0
- package/dist/chunks/use-bento-toast-controller.BhtohoS1.js.map +1 -0
- package/dist/chunks/use-cached-selected-values.BYiLNRRi.js +1343 -0
- package/dist/chunks/use-cached-selected-values.BYiLNRRi.js.map +1 -0
- package/dist/chunks/use-country-items.B3Cd3Tdo.js +30 -0
- package/dist/chunks/use-country-items.B3Cd3Tdo.js.map +1 -0
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js +5621 -0
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -0
- package/dist/chunks/use-default-slot-validator.BDn0wkYP.js +13 -0
- package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +1 -0
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +17 -0
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -0
- package/dist/chunks/use-form-layout-loading.CWbjZiwP.js +12 -0
- package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -0
- package/dist/chunks/use-has-slot.C9lQZ6nz.js +6 -0
- package/dist/chunks/use-has-slot.C9lQZ6nz.js.map +1 -0
- package/dist/chunks/warning-filled.CbJ1pcB2.js +24 -0
- package/dist/chunks/warning-filled.CbJ1pcB2.js.map +1 -0
- package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
- package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
- package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
- package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
- package/dist/click-outside.js +5 -0
- package/dist/click-outside.js.map +1 -0
- package/dist/code-snippet.js +8 -0
- package/dist/code-snippet.js.map +1 -0
- package/dist/country.js +12 -0
- package/dist/country.js.map +1 -0
- package/dist/currency.js +6 -0
- package/dist/currency.js.map +1 -0
- package/dist/dashboard-template.js +6 -0
- package/dist/dashboard-template.js.map +1 -0
- package/dist/dashed-underline.js +5 -0
- package/dist/dashed-underline.js.map +1 -0
- package/dist/data-grid-template.js +5 -0
- package/dist/data-grid-template.js.map +1 -0
- package/dist/data-grid.js +13 -0
- package/dist/data-grid.js.map +1 -0
- package/dist/date-picker.js +10 -0
- package/dist/date-picker.js.map +1 -0
- package/dist/date-range-picker.js +10 -0
- package/dist/date-range-picker.js.map +1 -0
- package/dist/date.js +6 -0
- package/dist/date.js.map +1 -0
- package/dist/divider.js +5 -0
- package/dist/divider.js.map +1 -0
- package/dist/dropdown.js +16 -0
- package/dist/dropdown.js.map +1 -0
- package/dist/empty-state.js +8 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/file-uploader.js +5 -0
- package/dist/file-uploader.js.map +1 -0
- package/dist/filter-bar.js +9 -0
- package/dist/filter-bar.js.map +1 -0
- package/dist/focus-trap.js +5 -0
- package/dist/focus-trap.js.map +1 -0
- package/dist/fonts/fonts.css +2 -0
- package/dist/form-layout.js +8 -0
- package/dist/form-layout.js.map +1 -0
- package/dist/header-with-views.js +5 -0
- package/dist/header-with-views.js.map +1 -0
- package/dist/header.js +5 -0
- package/dist/header.js.map +1 -0
- package/dist/image.js +7 -0
- package/dist/image.js.map +1 -0
- package/dist/index.js +442 -0
- package/dist/index.js.map +1 -0
- package/dist/info-icon.js +5 -0
- package/dist/info-icon.js.map +1 -0
- package/dist/input-field-password.js +10 -0
- package/dist/input-field-password.js.map +1 -0
- package/dist/input-field-phone-number.js +6 -0
- package/dist/input-field-phone-number.js.map +1 -0
- package/dist/input-field.js +10 -0
- package/dist/input-field.js.map +1 -0
- package/dist/inspector.js +7 -0
- package/dist/inspector.js.map +1 -0
- package/dist/internal.js +45 -0
- package/dist/internal.js.map +1 -0
- package/dist/layout.js +6 -0
- package/dist/layout.js.map +1 -0
- package/dist/link.js +6 -0
- package/dist/link.js.map +1 -0
- package/dist/loading-indicator.js +6 -0
- package/dist/loading-indicator.js.map +1 -0
- package/dist/menu.js +6 -0
- package/dist/menu.js.map +1 -0
- package/dist/modal-fullscreen.js +6 -0
- package/dist/modal-fullscreen.js.map +1 -0
- package/dist/modal.js +14 -0
- package/dist/modal.js.map +1 -0
- package/dist/pagination.js +5 -0
- package/dist/pagination.js.map +1 -0
- package/dist/payment-method.js +7 -0
- package/dist/payment-method.js.map +1 -0
- package/dist/popover.js +7 -0
- package/dist/popover.js.map +1 -0
- package/dist/popper-container.js +9 -0
- package/dist/popper-container.js.map +1 -0
- package/dist/promo-banner.js +7 -0
- package/dist/promo-banner.js.map +1 -0
- package/dist/radio-group.js +9 -0
- package/dist/radio-group.js.map +1 -0
- package/dist/rich-text-editor.js +5 -0
- package/dist/rich-text-editor.js.map +1 -0
- package/dist/search-bar.js +9 -0
- package/dist/search-bar.js.map +1 -0
- package/dist/secondary-nav.js +5 -0
- package/dist/secondary-nav.js.map +1 -0
- package/dist/segmented-control.js +7 -0
- package/dist/segmented-control.js.map +1 -0
- package/dist/selection-card.js +7 -0
- package/dist/selection-card.js.map +1 -0
- package/dist/sidepanel.js +7 -0
- package/dist/sidepanel.js.map +1 -0
- package/dist/status.js +6 -0
- package/dist/status.js.map +1 -0
- package/dist/stepper.js +8 -0
- package/dist/stepper.js.map +1 -0
- package/dist/structured-list.js +6 -0
- package/dist/structured-list.js.map +1 -0
- package/dist/styles/bento-dark.css +2133 -0
- package/dist/styles/bento-light.css +2132 -0
- package/dist/styles/bento.css +2132 -0
- package/dist/styles/legacy.css +2132 -0
- package/dist/styles/styleguide.css +2187 -0
- package/dist/styles/utility.css +1002 -0
- package/dist/summary-grid.js +12 -0
- package/dist/summary-grid.js.map +1 -0
- package/dist/tabs.js +6 -0
- package/dist/tabs.js.map +1 -0
- package/dist/tag.js +6 -0
- package/dist/tag.js.map +1 -0
- package/dist/textarea.js +5 -0
- package/dist/textarea.js.map +1 -0
- package/dist/timeline.js +10 -0
- package/dist/timeline.js.map +1 -0
- package/dist/toast.js +5 -0
- package/dist/toast.js.map +1 -0
- package/dist/toggle.js +7 -0
- package/dist/toggle.js.map +1 -0
- package/dist/tutorial.js +5 -0
- package/dist/tutorial.js.map +1 -0
- package/dist/typography.js +8 -0
- package/dist/typography.js.map +1 -0
- package/dist/use-form-v4.js +8300 -0
- package/dist/use-form-v4.js.map +1 -0
- package/dist/web-types.json +17262 -0
- package/package.json +27 -24
|
@@ -0,0 +1,1168 @@
|
|
|
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
|
+
import "../assets/focus-trap.css";
|
|
6
|
+
const vt = (t) => {
|
|
7
|
+
const e = z(null), { stop: r } = st(
|
|
8
|
+
t,
|
|
9
|
+
(i) => {
|
|
10
|
+
let u = !1;
|
|
11
|
+
for (const a of i)
|
|
12
|
+
if (a.type === "childList" && a.addedNodes.length) {
|
|
13
|
+
const s = Array.from(a.addedNodes).find((l) => l instanceof HTMLElement ? l.getAttribute("aria-expanded") === "true" : !1);
|
|
14
|
+
s && (e.value = s, u = !0);
|
|
15
|
+
break;
|
|
16
|
+
} else if (a.type === "attributes" && a.oldValue === "false") {
|
|
17
|
+
e.value = i[0].target, u = !0;
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
u !== !0 && setTimeout(() => e.value = null);
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
attributeFilter: ["aria-expanded"],
|
|
24
|
+
attributeOldValue: !0,
|
|
25
|
+
childList: !0,
|
|
26
|
+
// check for added/removed nodes i.e. teleport
|
|
27
|
+
subtree: !0
|
|
28
|
+
// check all descendents
|
|
29
|
+
}
|
|
30
|
+
), n = (i) => {
|
|
31
|
+
const u = ["listbox", "tooltip", "menu"], a = ["combobox"], s = [
|
|
32
|
+
// input with autocomplete should only close the autocomplete dropdown when ESCAPE is pressed
|
|
33
|
+
// some autocomplete picks up "name=username" without the autocomplete attribute
|
|
34
|
+
"INPUT"
|
|
35
|
+
];
|
|
36
|
+
for (const l of i.composedPath()) {
|
|
37
|
+
if (!(l instanceof HTMLElement))
|
|
38
|
+
return;
|
|
39
|
+
const d = l, h = d.tagName, v = d.getAttribute("role"), p = h === "DIALOG", w = u.includes(v), g = a.includes(v), F = s.includes(h), S = rt(t) ? t.value === d : t === d;
|
|
40
|
+
if (p || S)
|
|
41
|
+
return;
|
|
42
|
+
if (g && e.value || (w || F) || !p && v === "dialog") {
|
|
43
|
+
i.stopPropagation(), i.preventDefault();
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
return Pe(() => {
|
|
49
|
+
r();
|
|
50
|
+
}), { handleKeydownEscape: n };
|
|
51
|
+
};
|
|
52
|
+
/*!
|
|
53
|
+
* tabbable 6.2.0
|
|
54
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
55
|
+
*/
|
|
56
|
+
var Re = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], V = /* @__PURE__ */ Re.join(","), _e = typeof Element > "u", P = _e ? function() {
|
|
57
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, G = !_e && Element.prototype.getRootNode ? function(t) {
|
|
58
|
+
var e;
|
|
59
|
+
return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
|
|
60
|
+
} : function(t) {
|
|
61
|
+
return t == null ? void 0 : t.ownerDocument;
|
|
62
|
+
}, H = function t(e, r) {
|
|
63
|
+
var n;
|
|
64
|
+
r === void 0 && (r = !0);
|
|
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
|
+
return a;
|
|
67
|
+
}, bt = function(e) {
|
|
68
|
+
var r, n = e == null || (r = e.getAttribute) === null || r === void 0 ? void 0 : r.call(e, "contenteditable");
|
|
69
|
+
return n === "" || n === "true";
|
|
70
|
+
}, Le = function(e, r, n) {
|
|
71
|
+
if (H(e))
|
|
72
|
+
return [];
|
|
73
|
+
var i = Array.prototype.slice.apply(e.querySelectorAll(V));
|
|
74
|
+
return r && P.call(e, V) && i.unshift(e), i = i.filter(n), i;
|
|
75
|
+
}, Be = function t(e, r, n) {
|
|
76
|
+
for (var i = [], u = Array.from(e); u.length; ) {
|
|
77
|
+
var a = u.shift();
|
|
78
|
+
if (!H(a, !1))
|
|
79
|
+
if (a.tagName === "SLOT") {
|
|
80
|
+
var s = a.assignedElements(), l = s.length ? s : a.children, d = t(l, !0, n);
|
|
81
|
+
n.flatten ? i.push.apply(i, d) : i.push({
|
|
82
|
+
scopeParent: a,
|
|
83
|
+
candidates: d
|
|
84
|
+
});
|
|
85
|
+
} else {
|
|
86
|
+
var h = P.call(a, V);
|
|
87
|
+
h && n.filter(a) && (r || !e.includes(a)) && i.push(a);
|
|
88
|
+
var v = a.shadowRoot || // check for an undisclosed shadow
|
|
89
|
+
typeof n.getShadowRoot == "function" && n.getShadowRoot(a), p = !H(v, !1) && (!n.shadowRootFilter || n.shadowRootFilter(a));
|
|
90
|
+
if (v && p) {
|
|
91
|
+
var w = t(v === !0 ? a.children : v.children, !0, n);
|
|
92
|
+
n.flatten ? i.push.apply(i, w) : i.push({
|
|
93
|
+
scopeParent: a,
|
|
94
|
+
candidates: w
|
|
95
|
+
});
|
|
96
|
+
} else
|
|
97
|
+
u.unshift.apply(u, a.children);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return i;
|
|
101
|
+
}, Me = function(e) {
|
|
102
|
+
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
|
|
103
|
+
}, C = function(e) {
|
|
104
|
+
if (!e)
|
|
105
|
+
throw new Error("No node provided");
|
|
106
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || bt(e)) && !Me(e) ? 0 : e.tabIndex;
|
|
107
|
+
}, pt = function(e, r) {
|
|
108
|
+
var n = C(e);
|
|
109
|
+
return n < 0 && r && !Me(e) ? 0 : n;
|
|
110
|
+
}, mt = function(e, r) {
|
|
111
|
+
return e.tabIndex === r.tabIndex ? e.documentOrder - r.documentOrder : e.tabIndex - r.tabIndex;
|
|
112
|
+
}, Ke = function(e) {
|
|
113
|
+
return e.tagName === "INPUT";
|
|
114
|
+
}, ht = function(e) {
|
|
115
|
+
return Ke(e) && e.type === "hidden";
|
|
116
|
+
}, yt = function(e) {
|
|
117
|
+
var r = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(n) {
|
|
118
|
+
return n.tagName === "SUMMARY";
|
|
119
|
+
});
|
|
120
|
+
return r;
|
|
121
|
+
}, gt = function(e, r) {
|
|
122
|
+
for (var n = 0; n < e.length; n++)
|
|
123
|
+
if (e[n].checked && e[n].form === r)
|
|
124
|
+
return e[n];
|
|
125
|
+
}, wt = function(e) {
|
|
126
|
+
if (!e.name)
|
|
127
|
+
return !0;
|
|
128
|
+
var r = e.form || G(e), n = function(s) {
|
|
129
|
+
return r.querySelectorAll('input[type="radio"][name="' + s + '"]');
|
|
130
|
+
}, i;
|
|
131
|
+
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
132
|
+
i = n(window.CSS.escape(e.name));
|
|
133
|
+
else
|
|
134
|
+
try {
|
|
135
|
+
i = n(e.name);
|
|
136
|
+
} catch (a) {
|
|
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
|
+
}
|
|
139
|
+
var u = gt(i, e.form);
|
|
140
|
+
return !u || u === e;
|
|
141
|
+
}, Et = function(e) {
|
|
142
|
+
return Ke(e) && e.type === "radio";
|
|
143
|
+
}, Nt = function(e) {
|
|
144
|
+
return Et(e) && !wt(e);
|
|
145
|
+
}, Tt = function(e) {
|
|
146
|
+
var r, n = e && G(e), i = (r = n) === null || r === void 0 ? void 0 : r.host, u = !1;
|
|
147
|
+
if (n && n !== e) {
|
|
148
|
+
var a, s, l;
|
|
149
|
+
for (u = !!((a = i) !== null && a !== void 0 && (s = a.ownerDocument) !== null && s !== void 0 && s.contains(i) || e != null && (l = e.ownerDocument) !== null && l !== void 0 && l.contains(e)); !u && i; ) {
|
|
150
|
+
var d, h, v;
|
|
151
|
+
n = G(i), i = (d = n) === null || d === void 0 ? void 0 : d.host, u = !!((h = i) !== null && h !== void 0 && (v = h.ownerDocument) !== null && v !== void 0 && v.contains(i));
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return u;
|
|
155
|
+
}, Ne = function(e) {
|
|
156
|
+
var r = e.getBoundingClientRect(), n = r.width, i = r.height;
|
|
157
|
+
return n === 0 && i === 0;
|
|
158
|
+
}, Ot = function(e, r) {
|
|
159
|
+
var n = r.displayCheck, i = r.getShadowRoot;
|
|
160
|
+
if (getComputedStyle(e).visibility === "hidden")
|
|
161
|
+
return !0;
|
|
162
|
+
var u = P.call(e, "details>summary:first-of-type"), a = u ? e.parentElement : e;
|
|
163
|
+
if (P.call(a, "details:not([open]) *"))
|
|
164
|
+
return !0;
|
|
165
|
+
if (!n || n === "full" || n === "legacy-full") {
|
|
166
|
+
if (typeof i == "function") {
|
|
167
|
+
for (var s = e; e; ) {
|
|
168
|
+
var l = e.parentElement, d = G(e);
|
|
169
|
+
if (l && !l.shadowRoot && i(l) === !0)
|
|
170
|
+
return Ne(e);
|
|
171
|
+
e.assignedSlot ? e = e.assignedSlot : !l && d !== e.ownerDocument ? e = d.host : e = l;
|
|
172
|
+
}
|
|
173
|
+
e = s;
|
|
174
|
+
}
|
|
175
|
+
if (Tt(e))
|
|
176
|
+
return !e.getClientRects().length;
|
|
177
|
+
if (n !== "legacy-full")
|
|
178
|
+
return !0;
|
|
179
|
+
} else if (n === "non-zero-area")
|
|
180
|
+
return Ne(e);
|
|
181
|
+
return !1;
|
|
182
|
+
}, Ft = function(e) {
|
|
183
|
+
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
184
|
+
for (var r = e.parentElement; r; ) {
|
|
185
|
+
if (r.tagName === "FIELDSET" && r.disabled) {
|
|
186
|
+
for (var n = 0; n < r.children.length; n++) {
|
|
187
|
+
var i = r.children.item(n);
|
|
188
|
+
if (i.tagName === "LEGEND")
|
|
189
|
+
return P.call(r, "fieldset[disabled] *") ? !0 : !i.contains(e);
|
|
190
|
+
}
|
|
191
|
+
return !0;
|
|
192
|
+
}
|
|
193
|
+
r = r.parentElement;
|
|
194
|
+
}
|
|
195
|
+
return !1;
|
|
196
|
+
}, q = function(e, r) {
|
|
197
|
+
return !(r.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
198
|
+
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
199
|
+
// note related to `candidateSelectors`)
|
|
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
|
+
}, ne = function(e, r) {
|
|
203
|
+
return !(Nt(r) || C(r) < 0 || !q(e, r));
|
|
204
|
+
}, At = function(e) {
|
|
205
|
+
var r = parseInt(e.getAttribute("tabindex"), 10);
|
|
206
|
+
return !!(isNaN(r) || r >= 0);
|
|
207
|
+
}, St = function t(e) {
|
|
208
|
+
var r = [], n = [];
|
|
209
|
+
return e.forEach(function(i, u) {
|
|
210
|
+
var a = !!i.scopeParent, s = a ? i.scopeParent : i, l = pt(s, a), d = a ? t(i.candidates) : s;
|
|
211
|
+
l === 0 ? a ? r.push.apply(r, d) : r.push(s) : n.push({
|
|
212
|
+
documentOrder: u,
|
|
213
|
+
tabIndex: l,
|
|
214
|
+
item: i,
|
|
215
|
+
isScope: a,
|
|
216
|
+
content: d
|
|
217
|
+
});
|
|
218
|
+
}), n.sort(mt).reduce(function(i, u) {
|
|
219
|
+
return u.isScope ? i.push.apply(i, u.content) : i.push(u.content), i;
|
|
220
|
+
}, []).concat(r);
|
|
221
|
+
}, It = function(e, r) {
|
|
222
|
+
r = r || {};
|
|
223
|
+
var n;
|
|
224
|
+
return r.getShadowRoot ? n = Be([e], r.includeContainer, {
|
|
225
|
+
filter: ne.bind(null, r),
|
|
226
|
+
flatten: !1,
|
|
227
|
+
getShadowRoot: r.getShadowRoot,
|
|
228
|
+
shadowRootFilter: At
|
|
229
|
+
}) : n = Le(e, r.includeContainer, ne.bind(null, r)), St(n);
|
|
230
|
+
}, xt = function(e, r) {
|
|
231
|
+
r = r || {};
|
|
232
|
+
var n;
|
|
233
|
+
return r.getShadowRoot ? n = Be([e], r.includeContainer, {
|
|
234
|
+
filter: q.bind(null, r),
|
|
235
|
+
flatten: !0,
|
|
236
|
+
getShadowRoot: r.getShadowRoot
|
|
237
|
+
}) : n = Le(e, r.includeContainer, q.bind(null, r)), n;
|
|
238
|
+
}, R = function(e, r) {
|
|
239
|
+
if (r = r || {}, !e)
|
|
240
|
+
throw new Error("No node provided");
|
|
241
|
+
return P.call(e, V) === !1 ? !1 : ne(r, e);
|
|
242
|
+
}, kt = /* @__PURE__ */ Re.concat("iframe").join(","), Q = function(e, r) {
|
|
243
|
+
if (r = r || {}, !e)
|
|
244
|
+
throw new Error("No node provided");
|
|
245
|
+
return P.call(e, kt) === !1 ? !1 : q(r, e);
|
|
246
|
+
};
|
|
247
|
+
/*!
|
|
248
|
+
* focus-trap 7.6.4
|
|
249
|
+
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
250
|
+
*/
|
|
251
|
+
function ae(t, e) {
|
|
252
|
+
(e == null || e > t.length) && (e = t.length);
|
|
253
|
+
for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
|
|
254
|
+
return n;
|
|
255
|
+
}
|
|
256
|
+
function Ct(t) {
|
|
257
|
+
if (Array.isArray(t)) return ae(t);
|
|
258
|
+
}
|
|
259
|
+
function Pt(t, e, r) {
|
|
260
|
+
return (e = Bt(e)) in t ? Object.defineProperty(t, e, {
|
|
261
|
+
value: r,
|
|
262
|
+
enumerable: !0,
|
|
263
|
+
configurable: !0,
|
|
264
|
+
writable: !0
|
|
265
|
+
}) : t[e] = r, t;
|
|
266
|
+
}
|
|
267
|
+
function Dt(t) {
|
|
268
|
+
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
269
|
+
}
|
|
270
|
+
function Rt() {
|
|
271
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
272
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
273
|
+
}
|
|
274
|
+
function Te(t, e) {
|
|
275
|
+
var r = Object.keys(t);
|
|
276
|
+
if (Object.getOwnPropertySymbols) {
|
|
277
|
+
var n = Object.getOwnPropertySymbols(t);
|
|
278
|
+
e && (n = n.filter(function(i) {
|
|
279
|
+
return Object.getOwnPropertyDescriptor(t, i).enumerable;
|
|
280
|
+
})), r.push.apply(r, n);
|
|
281
|
+
}
|
|
282
|
+
return r;
|
|
283
|
+
}
|
|
284
|
+
function Oe(t) {
|
|
285
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
286
|
+
var r = arguments[e] != null ? arguments[e] : {};
|
|
287
|
+
e % 2 ? Te(Object(r), !0).forEach(function(n) {
|
|
288
|
+
Pt(t, n, r[n]);
|
|
289
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Te(Object(r)).forEach(function(n) {
|
|
290
|
+
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
return t;
|
|
294
|
+
}
|
|
295
|
+
function _t(t) {
|
|
296
|
+
return Ct(t) || Dt(t) || Mt(t) || Rt();
|
|
297
|
+
}
|
|
298
|
+
function Lt(t, e) {
|
|
299
|
+
if (typeof t != "object" || !t) return t;
|
|
300
|
+
var r = t[Symbol.toPrimitive];
|
|
301
|
+
if (r !== void 0) {
|
|
302
|
+
var n = r.call(t, e);
|
|
303
|
+
if (typeof n != "object") return n;
|
|
304
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
305
|
+
}
|
|
306
|
+
return (e === "string" ? String : Number)(t);
|
|
307
|
+
}
|
|
308
|
+
function Bt(t) {
|
|
309
|
+
var e = Lt(t, "string");
|
|
310
|
+
return typeof e == "symbol" ? e : e + "";
|
|
311
|
+
}
|
|
312
|
+
function Mt(t, e) {
|
|
313
|
+
if (t) {
|
|
314
|
+
if (typeof t == "string") return ae(t, e);
|
|
315
|
+
var r = {}.toString.call(t).slice(8, -1);
|
|
316
|
+
return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? ae(t, e) : void 0;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
var Fe = {
|
|
320
|
+
activateTrap: function(e, r) {
|
|
321
|
+
if (e.length > 0) {
|
|
322
|
+
var n = e[e.length - 1];
|
|
323
|
+
n !== r && n._setPausedState(!0);
|
|
324
|
+
}
|
|
325
|
+
var i = e.indexOf(r);
|
|
326
|
+
i === -1 || e.splice(i, 1), e.push(r);
|
|
327
|
+
},
|
|
328
|
+
deactivateTrap: function(e, r) {
|
|
329
|
+
var n = e.indexOf(r);
|
|
330
|
+
n !== -1 && e.splice(n, 1), e.length > 0 && !e[e.length - 1]._isManuallyPaused() && e[e.length - 1]._setPausedState(!1);
|
|
331
|
+
}
|
|
332
|
+
}, Kt = function(e) {
|
|
333
|
+
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
334
|
+
}, Ut = function(e) {
|
|
335
|
+
return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
|
|
336
|
+
}, U = function(e) {
|
|
337
|
+
return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9;
|
|
338
|
+
}, jt = function(e) {
|
|
339
|
+
return U(e) && !e.shiftKey;
|
|
340
|
+
}, Wt = function(e) {
|
|
341
|
+
return U(e) && e.shiftKey;
|
|
342
|
+
}, Ae = function(e) {
|
|
343
|
+
return setTimeout(e, 0);
|
|
344
|
+
}, M = function(e) {
|
|
345
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
346
|
+
n[i - 1] = arguments[i];
|
|
347
|
+
return typeof e == "function" ? e.apply(void 0, n) : e;
|
|
348
|
+
}, W = function(e) {
|
|
349
|
+
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
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
|
+
returnFocusOnDeactivate: !0,
|
|
353
|
+
escapeDeactivates: !0,
|
|
354
|
+
delayInitialFocus: !0,
|
|
355
|
+
isKeyForward: jt,
|
|
356
|
+
isKeyBackward: Wt
|
|
357
|
+
}, r), a = {
|
|
358
|
+
// containers given to createFocusTrap()
|
|
359
|
+
// @type {Array<HTMLElement>}
|
|
360
|
+
containers: [],
|
|
361
|
+
// list of objects identifying tabbable nodes in `containers` in the trap
|
|
362
|
+
// NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
|
|
363
|
+
// is active, but the trap should never get to a state where there isn't at least one group
|
|
364
|
+
// with at least one tabbable node in it (that would lead to an error condition that would
|
|
365
|
+
// result in an error being thrown)
|
|
366
|
+
// @type {Array<{
|
|
367
|
+
// container: HTMLElement,
|
|
368
|
+
// tabbableNodes: Array<HTMLElement>, // empty if none
|
|
369
|
+
// focusableNodes: Array<HTMLElement>, // empty if none
|
|
370
|
+
// posTabIndexesFound: boolean,
|
|
371
|
+
// firstTabbableNode: HTMLElement|undefined,
|
|
372
|
+
// lastTabbableNode: HTMLElement|undefined,
|
|
373
|
+
// firstDomTabbableNode: HTMLElement|undefined,
|
|
374
|
+
// lastDomTabbableNode: HTMLElement|undefined,
|
|
375
|
+
// nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
|
|
376
|
+
// }>}
|
|
377
|
+
containerGroups: [],
|
|
378
|
+
// same order/length as `containers` list
|
|
379
|
+
// references to objects in `containerGroups`, but only those that actually have
|
|
380
|
+
// tabbable nodes in them
|
|
381
|
+
// NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
|
|
382
|
+
// the same length
|
|
383
|
+
tabbableGroups: [],
|
|
384
|
+
nodeFocusedBeforeActivation: null,
|
|
385
|
+
mostRecentlyFocusedNode: null,
|
|
386
|
+
active: !1,
|
|
387
|
+
paused: !1,
|
|
388
|
+
manuallyPaused: !1,
|
|
389
|
+
// timer ID for when delayInitialFocus is true and initial focus in this trap
|
|
390
|
+
// has been delayed during activation
|
|
391
|
+
delayInitialFocusTimer: void 0,
|
|
392
|
+
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
393
|
+
recentNavEvent: void 0
|
|
394
|
+
}, s, l = function(o, c, f) {
|
|
395
|
+
return o && o[c] !== void 0 ? o[c] : u[f || c];
|
|
396
|
+
}, d = function(o, c) {
|
|
397
|
+
var f = typeof (c == null ? void 0 : c.composedPath) == "function" ? c.composedPath() : void 0;
|
|
398
|
+
return a.containerGroups.findIndex(function(m) {
|
|
399
|
+
var y = m.container, N = m.tabbableNodes;
|
|
400
|
+
return y.contains(o) || // fall back to explicit tabbable search which will take into consideration any
|
|
401
|
+
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
402
|
+
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
403
|
+
// look inside web components even if open)
|
|
404
|
+
(f == null ? void 0 : f.includes(y)) || N.find(function(b) {
|
|
405
|
+
return b === o;
|
|
406
|
+
});
|
|
407
|
+
});
|
|
408
|
+
}, h = function(o) {
|
|
409
|
+
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = c.hasFallback, m = f === void 0 ? !1 : f, y = c.params, N = y === void 0 ? [] : y, b = u[o];
|
|
410
|
+
if (typeof b == "function" && (b = b.apply(void 0, _t(N))), b === !0 && (b = void 0), !b) {
|
|
411
|
+
if (b === void 0 || b === !1)
|
|
412
|
+
return b;
|
|
413
|
+
throw new Error("`".concat(o, "` was specified but was not a node, or did not return a node"));
|
|
414
|
+
}
|
|
415
|
+
var T = b;
|
|
416
|
+
if (typeof b == "string") {
|
|
417
|
+
try {
|
|
418
|
+
T = n.querySelector(b);
|
|
419
|
+
} catch (O) {
|
|
420
|
+
throw new Error("`".concat(o, '` appears to be an invalid selector; error="').concat(O.message, '"'));
|
|
421
|
+
}
|
|
422
|
+
if (!T && !m)
|
|
423
|
+
throw new Error("`".concat(o, "` as selector refers to no known node"));
|
|
424
|
+
}
|
|
425
|
+
return T;
|
|
426
|
+
}, v = function() {
|
|
427
|
+
var o = h("initialFocus", {
|
|
428
|
+
hasFallback: !0
|
|
429
|
+
});
|
|
430
|
+
if (o === !1)
|
|
431
|
+
return !1;
|
|
432
|
+
if (o === void 0 || o && !Q(o, u.tabbableOptions))
|
|
433
|
+
if (d(n.activeElement) >= 0)
|
|
434
|
+
o = n.activeElement;
|
|
435
|
+
else {
|
|
436
|
+
var c = a.tabbableGroups[0], f = c && c.firstTabbableNode;
|
|
437
|
+
o = f || h("fallbackFocus");
|
|
438
|
+
}
|
|
439
|
+
else o === null && (o = h("fallbackFocus"));
|
|
440
|
+
if (!o)
|
|
441
|
+
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
442
|
+
return o;
|
|
443
|
+
}, p = function() {
|
|
444
|
+
if (a.containerGroups = a.containers.map(function(o) {
|
|
445
|
+
var c = It(o, u.tabbableOptions), f = xt(o, u.tabbableOptions), m = c.length > 0 ? c[0] : void 0, y = c.length > 0 ? c[c.length - 1] : void 0, N = f.find(function(O) {
|
|
446
|
+
return R(O);
|
|
447
|
+
}), b = f.slice().reverse().find(function(O) {
|
|
448
|
+
return R(O);
|
|
449
|
+
}), T = !!c.find(function(O) {
|
|
450
|
+
return C(O) > 0;
|
|
451
|
+
});
|
|
452
|
+
return {
|
|
453
|
+
container: o,
|
|
454
|
+
tabbableNodes: c,
|
|
455
|
+
focusableNodes: f,
|
|
456
|
+
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
457
|
+
posTabIndexesFound: T,
|
|
458
|
+
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
459
|
+
firstTabbableNode: m,
|
|
460
|
+
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
461
|
+
lastTabbableNode: y,
|
|
462
|
+
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
463
|
+
// would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
464
|
+
// because that API doesn't work with Shadow DOM as well as it should (@see
|
|
465
|
+
// https://github.com/whatwg/dom/issues/320) and since this first/last is only needed, so far,
|
|
466
|
+
// to address an edge case related to positive tabindex support, this seems like a much easier,
|
|
467
|
+
// "close enough most of the time" alternative for positive tabindexes which should generally
|
|
468
|
+
// be avoided anyway...
|
|
469
|
+
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
470
|
+
firstDomTabbableNode: N,
|
|
471
|
+
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
472
|
+
lastDomTabbableNode: b,
|
|
473
|
+
/**
|
|
474
|
+
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
475
|
+
* in this container, if any.
|
|
476
|
+
* @param {HTMLElement} node
|
|
477
|
+
* @param {boolean} [forward] True if going in forward tab order; false if going
|
|
478
|
+
* in reverse.
|
|
479
|
+
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
480
|
+
*/
|
|
481
|
+
nextTabbableNode: function(k) {
|
|
482
|
+
var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, x = c.indexOf(k);
|
|
483
|
+
return x < 0 ? L ? f.slice(f.indexOf(k) + 1).find(function(B) {
|
|
484
|
+
return R(B);
|
|
485
|
+
}) : f.slice(0, f.indexOf(k)).reverse().find(function(B) {
|
|
486
|
+
return R(B);
|
|
487
|
+
}) : c[x + (L ? 1 : -1)];
|
|
488
|
+
}
|
|
489
|
+
};
|
|
490
|
+
}), a.tabbableGroups = a.containerGroups.filter(function(o) {
|
|
491
|
+
return o.tabbableNodes.length > 0;
|
|
492
|
+
}), a.tabbableGroups.length <= 0 && !h("fallbackFocus"))
|
|
493
|
+
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
494
|
+
if (a.containerGroups.find(function(o) {
|
|
495
|
+
return o.posTabIndexesFound;
|
|
496
|
+
}) && a.containerGroups.length > 1)
|
|
497
|
+
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
498
|
+
}, w = function(o) {
|
|
499
|
+
var c = o.activeElement;
|
|
500
|
+
if (c)
|
|
501
|
+
return c.shadowRoot && c.shadowRoot.activeElement !== null ? w(c.shadowRoot) : c;
|
|
502
|
+
}, g = function(o) {
|
|
503
|
+
if (o !== !1 && o !== w(document)) {
|
|
504
|
+
if (!o || !o.focus) {
|
|
505
|
+
g(v());
|
|
506
|
+
return;
|
|
507
|
+
}
|
|
508
|
+
o.focus({
|
|
509
|
+
preventScroll: !!u.preventScroll
|
|
510
|
+
}), a.mostRecentlyFocusedNode = o, Kt(o) && o.select();
|
|
511
|
+
}
|
|
512
|
+
}, F = function(o) {
|
|
513
|
+
var c = h("setReturnFocus", {
|
|
514
|
+
params: [o]
|
|
515
|
+
});
|
|
516
|
+
return c || (c === !1 ? !1 : o);
|
|
517
|
+
}, S = function(o) {
|
|
518
|
+
var c = o.target, f = o.event, m = o.isBackward, y = m === void 0 ? !1 : m;
|
|
519
|
+
c = c || W(f), p();
|
|
520
|
+
var N = null;
|
|
521
|
+
if (a.tabbableGroups.length > 0) {
|
|
522
|
+
var b = d(c, f), T = b >= 0 ? a.containerGroups[b] : void 0;
|
|
523
|
+
if (b < 0)
|
|
524
|
+
y ? N = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : N = a.tabbableGroups[0].firstTabbableNode;
|
|
525
|
+
else if (y) {
|
|
526
|
+
var O = a.tabbableGroups.findIndex(function(X) {
|
|
527
|
+
var J = X.firstTabbableNode;
|
|
528
|
+
return c === J;
|
|
529
|
+
});
|
|
530
|
+
if (O < 0 && (T.container === c || Q(c, u.tabbableOptions) && !R(c, u.tabbableOptions) && !T.nextTabbableNode(c, !1)) && (O = b), O >= 0) {
|
|
531
|
+
var k = O === 0 ? a.tabbableGroups.length - 1 : O - 1, L = a.tabbableGroups[k];
|
|
532
|
+
N = C(c) >= 0 ? L.lastTabbableNode : L.lastDomTabbableNode;
|
|
533
|
+
} else U(f) || (N = T.nextTabbableNode(c, !1));
|
|
534
|
+
} else {
|
|
535
|
+
var x = a.tabbableGroups.findIndex(function(X) {
|
|
536
|
+
var J = X.lastTabbableNode;
|
|
537
|
+
return c === J;
|
|
538
|
+
});
|
|
539
|
+
if (x < 0 && (T.container === c || Q(c, u.tabbableOptions) && !R(c, u.tabbableOptions) && !T.nextTabbableNode(c)) && (x = b), x >= 0) {
|
|
540
|
+
var B = x === a.tabbableGroups.length - 1 ? 0 : x + 1, Ee = a.tabbableGroups[B];
|
|
541
|
+
N = C(c) >= 0 ? Ee.firstTabbableNode : Ee.firstDomTabbableNode;
|
|
542
|
+
} else U(f) || (N = T.nextTabbableNode(c));
|
|
543
|
+
}
|
|
544
|
+
} else
|
|
545
|
+
N = h("fallbackFocus");
|
|
546
|
+
return N;
|
|
547
|
+
}, I = function(o) {
|
|
548
|
+
var c = W(o);
|
|
549
|
+
if (!(d(c, o) >= 0)) {
|
|
550
|
+
if (M(u.clickOutsideDeactivates, o)) {
|
|
551
|
+
s.deactivate({
|
|
552
|
+
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
553
|
+
// which will result in the outside click setting focus to the node
|
|
554
|
+
// that was clicked (and if not focusable, to "nothing"); by setting
|
|
555
|
+
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
|
556
|
+
// on activation (or the configured `setReturnFocus` node), whether the
|
|
557
|
+
// outside click was on a focusable node or not
|
|
558
|
+
returnFocus: u.returnFocusOnDeactivate
|
|
559
|
+
});
|
|
560
|
+
return;
|
|
561
|
+
}
|
|
562
|
+
M(u.allowOutsideClick, o) || o.preventDefault();
|
|
563
|
+
}
|
|
564
|
+
}, D = function(o) {
|
|
565
|
+
var c = W(o), f = d(c, o) >= 0;
|
|
566
|
+
if (f || c instanceof Document)
|
|
567
|
+
f && (a.mostRecentlyFocusedNode = c);
|
|
568
|
+
else {
|
|
569
|
+
o.stopImmediatePropagation();
|
|
570
|
+
var m, y = !0;
|
|
571
|
+
if (a.mostRecentlyFocusedNode)
|
|
572
|
+
if (C(a.mostRecentlyFocusedNode) > 0) {
|
|
573
|
+
var N = d(a.mostRecentlyFocusedNode), b = a.containerGroups[N].tabbableNodes;
|
|
574
|
+
if (b.length > 0) {
|
|
575
|
+
var T = b.findIndex(function(O) {
|
|
576
|
+
return O === a.mostRecentlyFocusedNode;
|
|
577
|
+
});
|
|
578
|
+
T >= 0 && (u.isKeyForward(a.recentNavEvent) ? T + 1 < b.length && (m = b[T + 1], y = !1) : T - 1 >= 0 && (m = b[T - 1], y = !1));
|
|
579
|
+
}
|
|
580
|
+
} else
|
|
581
|
+
a.containerGroups.some(function(O) {
|
|
582
|
+
return O.tabbableNodes.some(function(k) {
|
|
583
|
+
return C(k) > 0;
|
|
584
|
+
});
|
|
585
|
+
}) || (y = !1);
|
|
586
|
+
else
|
|
587
|
+
y = !1;
|
|
588
|
+
y && (m = S({
|
|
589
|
+
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
590
|
+
// outside the trap causing the focus escape we're trying to fix)
|
|
591
|
+
target: a.mostRecentlyFocusedNode,
|
|
592
|
+
isBackward: u.isKeyBackward(a.recentNavEvent)
|
|
593
|
+
})), g(m || a.mostRecentlyFocusedNode || v());
|
|
594
|
+
}
|
|
595
|
+
a.recentNavEvent = void 0;
|
|
596
|
+
}, pe = function(o) {
|
|
597
|
+
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
598
|
+
a.recentNavEvent = o;
|
|
599
|
+
var f = S({
|
|
600
|
+
event: o,
|
|
601
|
+
isBackward: c
|
|
602
|
+
});
|
|
603
|
+
f && (U(o) && o.preventDefault(), g(f));
|
|
604
|
+
}, me = function(o) {
|
|
605
|
+
(u.isKeyForward(o) || u.isKeyBackward(o)) && pe(o, u.isKeyBackward(o));
|
|
606
|
+
}, he = function(o) {
|
|
607
|
+
Ut(o) && M(u.escapeDeactivates, o) !== !1 && (o.preventDefault(), s.deactivate());
|
|
608
|
+
}, ye = function(o) {
|
|
609
|
+
var c = W(o);
|
|
610
|
+
d(c, o) >= 0 || M(u.clickOutsideDeactivates, o) || M(u.allowOutsideClick, o) || (o.preventDefault(), o.stopImmediatePropagation());
|
|
611
|
+
}, ge = function() {
|
|
612
|
+
if (a.active)
|
|
613
|
+
return Fe.activateTrap(i, s), a.delayInitialFocusTimer = u.delayInitialFocus ? Ae(function() {
|
|
614
|
+
g(v());
|
|
615
|
+
}) : g(v()), n.addEventListener("focusin", D, !0), n.addEventListener("mousedown", I, {
|
|
616
|
+
capture: !0,
|
|
617
|
+
passive: !1
|
|
618
|
+
}), n.addEventListener("touchstart", I, {
|
|
619
|
+
capture: !0,
|
|
620
|
+
passive: !1
|
|
621
|
+
}), n.addEventListener("click", ye, {
|
|
622
|
+
capture: !0,
|
|
623
|
+
passive: !1
|
|
624
|
+
}), n.addEventListener("keydown", me, {
|
|
625
|
+
capture: !0,
|
|
626
|
+
passive: !1
|
|
627
|
+
}), n.addEventListener("keydown", he), s;
|
|
628
|
+
}, we = function() {
|
|
629
|
+
if (a.active)
|
|
630
|
+
return n.removeEventListener("focusin", D, !0), n.removeEventListener("mousedown", I, !0), n.removeEventListener("touchstart", I, !0), n.removeEventListener("click", ye, !0), n.removeEventListener("keydown", me, !0), n.removeEventListener("keydown", he), s;
|
|
631
|
+
}, tt = function(o) {
|
|
632
|
+
var c = o.some(function(f) {
|
|
633
|
+
var m = Array.from(f.removedNodes);
|
|
634
|
+
return m.some(function(y) {
|
|
635
|
+
return y === a.mostRecentlyFocusedNode;
|
|
636
|
+
});
|
|
637
|
+
});
|
|
638
|
+
c && g(v());
|
|
639
|
+
}, $ = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(tt) : void 0, _ = function() {
|
|
640
|
+
$ && ($.disconnect(), a.active && !a.paused && a.containers.map(function(o) {
|
|
641
|
+
$.observe(o, {
|
|
642
|
+
subtree: !0,
|
|
643
|
+
childList: !0
|
|
644
|
+
});
|
|
645
|
+
}));
|
|
646
|
+
};
|
|
647
|
+
return s = {
|
|
648
|
+
get active() {
|
|
649
|
+
return a.active;
|
|
650
|
+
},
|
|
651
|
+
get paused() {
|
|
652
|
+
return a.paused;
|
|
653
|
+
},
|
|
654
|
+
activate: function(o) {
|
|
655
|
+
if (a.active)
|
|
656
|
+
return this;
|
|
657
|
+
var c = l(o, "onActivate"), f = l(o, "onPostActivate"), m = l(o, "checkCanFocusTrap");
|
|
658
|
+
m || p(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = n.activeElement, c == null || c();
|
|
659
|
+
var y = function() {
|
|
660
|
+
m && p(), ge(), _(), f == null || f();
|
|
661
|
+
};
|
|
662
|
+
return m ? (m(a.containers.concat()).then(y, y), this) : (y(), this);
|
|
663
|
+
},
|
|
664
|
+
deactivate: function(o) {
|
|
665
|
+
if (!a.active)
|
|
666
|
+
return this;
|
|
667
|
+
var c = Oe({
|
|
668
|
+
onDeactivate: u.onDeactivate,
|
|
669
|
+
onPostDeactivate: u.onPostDeactivate,
|
|
670
|
+
checkCanReturnFocus: u.checkCanReturnFocus
|
|
671
|
+
}, o);
|
|
672
|
+
clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, we(), a.active = !1, a.paused = !1, _(), Fe.deactivateTrap(i, s);
|
|
673
|
+
var f = l(c, "onDeactivate"), m = l(c, "onPostDeactivate"), y = l(c, "checkCanReturnFocus"), N = l(c, "returnFocus", "returnFocusOnDeactivate");
|
|
674
|
+
f == null || f();
|
|
675
|
+
var b = function() {
|
|
676
|
+
Ae(function() {
|
|
677
|
+
N && g(F(a.nodeFocusedBeforeActivation)), m == null || m();
|
|
678
|
+
});
|
|
679
|
+
};
|
|
680
|
+
return N && y ? (y(F(a.nodeFocusedBeforeActivation)).then(b, b), this) : (b(), this);
|
|
681
|
+
},
|
|
682
|
+
pause: function(o) {
|
|
683
|
+
return a.active ? (a.manuallyPaused = !0, this._setPausedState(!0, o)) : this;
|
|
684
|
+
},
|
|
685
|
+
unpause: function(o) {
|
|
686
|
+
return a.active ? (a.manuallyPaused = !1, i[i.length - 1] !== this ? this : this._setPausedState(!1, o)) : this;
|
|
687
|
+
},
|
|
688
|
+
updateContainerElements: function(o) {
|
|
689
|
+
var c = [].concat(o).filter(Boolean);
|
|
690
|
+
return a.containers = c.map(function(f) {
|
|
691
|
+
return typeof f == "string" ? n.querySelector(f) : f;
|
|
692
|
+
}), a.active && p(), _(), this;
|
|
693
|
+
}
|
|
694
|
+
}, Object.defineProperties(s, {
|
|
695
|
+
_isManuallyPaused: {
|
|
696
|
+
value: function() {
|
|
697
|
+
return a.manuallyPaused;
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
_setPausedState: {
|
|
701
|
+
value: function(o, c) {
|
|
702
|
+
if (a.paused === o)
|
|
703
|
+
return this;
|
|
704
|
+
if (a.paused = o, o) {
|
|
705
|
+
var f = l(c, "onPause"), m = l(c, "onPostPause");
|
|
706
|
+
f == null || f(), we(), _(), m == null || m();
|
|
707
|
+
} else {
|
|
708
|
+
var y = l(c, "onUnpause"), N = l(c, "onPostUnpause");
|
|
709
|
+
y == null || y(), p(), ge(), _(), N == null || N();
|
|
710
|
+
}
|
|
711
|
+
return this;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
}), s.updateContainerElements(e), s;
|
|
715
|
+
};
|
|
716
|
+
const Ht = (t, e, r) => {
|
|
717
|
+
const n = z(null), i = lt(t);
|
|
718
|
+
De(
|
|
719
|
+
[() => ft(t), () => e.value, i, r],
|
|
720
|
+
([u, a, s, l]) => {
|
|
721
|
+
if (!u || !a || !s)
|
|
722
|
+
return;
|
|
723
|
+
const { additionalContainers: d, ...h } = l ?? {}, v = [u, ...d ?? []];
|
|
724
|
+
n.value ? (n.value.updateContainerElements(v), n.value.active || n.value.activate()) : (n.value = Gt(v, {
|
|
725
|
+
delayInitialFocus: !1,
|
|
726
|
+
fallbackFocus: u,
|
|
727
|
+
...h
|
|
728
|
+
}), n.value.activate());
|
|
729
|
+
},
|
|
730
|
+
{ flush: "post" }
|
|
731
|
+
), Pe(() => {
|
|
732
|
+
var u;
|
|
733
|
+
e.value && ((u = n.value) == null || u.deactivate());
|
|
734
|
+
});
|
|
735
|
+
};
|
|
736
|
+
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) {
|
|
737
|
+
for (var e = Array(t.length), r = 0; r < t.length; ++r)
|
|
738
|
+
e[r] = t[r];
|
|
739
|
+
return e;
|
|
740
|
+
}, ie = function(t) {
|
|
741
|
+
return Array.isArray(t) ? t : [t];
|
|
742
|
+
}, $t = function(t) {
|
|
743
|
+
if (t.nodeType !== Node.ELEMENT_NODE)
|
|
744
|
+
return !1;
|
|
745
|
+
var e = window.getComputedStyle(t, null);
|
|
746
|
+
return !e || !e.getPropertyValue ? !1 : e.getPropertyValue("display") === "none" || e.getPropertyValue("visibility") === "hidden";
|
|
747
|
+
}, Ue = function(t) {
|
|
748
|
+
return t.parentNode && t.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? (
|
|
749
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
750
|
+
t.parentNode.host
|
|
751
|
+
) : t.parentNode;
|
|
752
|
+
}, je = function(t) {
|
|
753
|
+
return t === document || t && t.nodeType === Node.DOCUMENT_NODE;
|
|
754
|
+
}, Xt = function(t, e) {
|
|
755
|
+
return !t || je(t) || !$t(t) && e(Ue(t));
|
|
756
|
+
}, We = function(t, e) {
|
|
757
|
+
var r = t.get(e);
|
|
758
|
+
if (r !== void 0)
|
|
759
|
+
return r;
|
|
760
|
+
var n = Xt(e, We.bind(void 0, t));
|
|
761
|
+
return t.set(e, n), n;
|
|
762
|
+
}, Jt = function(t, e) {
|
|
763
|
+
return t && !je(t) ? tr(t) ? e(Ue(t)) : !1 : !0;
|
|
764
|
+
}, Ve = function(t, e) {
|
|
765
|
+
var r = t.get(e);
|
|
766
|
+
if (r !== void 0)
|
|
767
|
+
return r;
|
|
768
|
+
var n = Jt(e, Ve.bind(void 0, t));
|
|
769
|
+
return t.set(e, n), n;
|
|
770
|
+
}, Ge = function(t) {
|
|
771
|
+
return t.dataset;
|
|
772
|
+
}, Qt = function(t) {
|
|
773
|
+
return t.tagName === "BUTTON";
|
|
774
|
+
}, He = function(t) {
|
|
775
|
+
return t.tagName === "INPUT";
|
|
776
|
+
}, qe = function(t) {
|
|
777
|
+
return He(t) && t.type === "radio";
|
|
778
|
+
}, er = function(t) {
|
|
779
|
+
return !((He(t) || Qt(t)) && (t.type === "hidden" || t.disabled));
|
|
780
|
+
}, tr = function(t) {
|
|
781
|
+
var e = t.getAttribute(zt);
|
|
782
|
+
return ![!0, "true", ""].includes(e);
|
|
783
|
+
}, ce = function(t) {
|
|
784
|
+
var e;
|
|
785
|
+
return !!(t && (!((e = Ge(t)) === null || e === void 0) && e.focusGuard));
|
|
786
|
+
}, Y = function(t) {
|
|
787
|
+
return !ce(t);
|
|
788
|
+
}, rr = function(t) {
|
|
789
|
+
return !!t;
|
|
790
|
+
}, nr = function(t, e) {
|
|
791
|
+
var r = t.tabIndex - e.tabIndex, n = t.index - e.index;
|
|
792
|
+
if (r) {
|
|
793
|
+
if (!t.tabIndex)
|
|
794
|
+
return 1;
|
|
795
|
+
if (!e.tabIndex)
|
|
796
|
+
return -1;
|
|
797
|
+
}
|
|
798
|
+
return r || n;
|
|
799
|
+
}, Ye = function(t, e, r) {
|
|
800
|
+
return A(t).map(function(n, i) {
|
|
801
|
+
return {
|
|
802
|
+
node: n,
|
|
803
|
+
index: i,
|
|
804
|
+
tabIndex: r && n.tabIndex === -1 ? (n.dataset || {}).focusGuard ? 0 : -1 : n.tabIndex
|
|
805
|
+
};
|
|
806
|
+
}).filter(function(n) {
|
|
807
|
+
return !e || n.tabIndex >= 0;
|
|
808
|
+
}).sort(nr);
|
|
809
|
+
}, ar = [
|
|
810
|
+
"button:enabled",
|
|
811
|
+
"select:enabled",
|
|
812
|
+
"textarea:enabled",
|
|
813
|
+
"input:enabled",
|
|
814
|
+
// elements with explicit roles will also use explicit tabindex
|
|
815
|
+
// '[role="button"]',
|
|
816
|
+
"a[href]",
|
|
817
|
+
"area[href]",
|
|
818
|
+
"summary",
|
|
819
|
+
"iframe",
|
|
820
|
+
"object",
|
|
821
|
+
"embed",
|
|
822
|
+
"audio[controls]",
|
|
823
|
+
"video[controls]",
|
|
824
|
+
"[tabindex]",
|
|
825
|
+
"[contenteditable]",
|
|
826
|
+
"[autofocus]"
|
|
827
|
+
], se = ar.join(","), ir = "".concat(se, ", [data-focus-guard]"), Ze = function(t, e) {
|
|
828
|
+
var r;
|
|
829
|
+
return A(((r = t.shadowRoot) === null || r === void 0 ? void 0 : r.children) || t.children).reduce(function(n, i) {
|
|
830
|
+
return n.concat(i.matches(e ? ir : se) ? [i] : [], Ze(i));
|
|
831
|
+
}, []);
|
|
832
|
+
}, le = function(t, e) {
|
|
833
|
+
return t.reduce(function(r, n) {
|
|
834
|
+
return r.concat(
|
|
835
|
+
// add all tabbables inside and within shadow DOMs in DOM order
|
|
836
|
+
Ze(n, e),
|
|
837
|
+
// add if node is tabbable itself
|
|
838
|
+
n.parentNode ? A(n.parentNode.querySelectorAll(se)).filter(function(i) {
|
|
839
|
+
return i === n;
|
|
840
|
+
}) : []
|
|
841
|
+
);
|
|
842
|
+
}, []);
|
|
843
|
+
}, or = function(t) {
|
|
844
|
+
var e = t.querySelectorAll("[".concat(Zt, "]"));
|
|
845
|
+
return A(e).map(function(r) {
|
|
846
|
+
return le([r]);
|
|
847
|
+
}).reduce(function(r, n) {
|
|
848
|
+
return r.concat(n);
|
|
849
|
+
}, []);
|
|
850
|
+
}, fe = function(t, e) {
|
|
851
|
+
return A(t).filter(function(r) {
|
|
852
|
+
return We(e, r);
|
|
853
|
+
}).filter(function(r) {
|
|
854
|
+
return er(r);
|
|
855
|
+
});
|
|
856
|
+
}, Ie = function(t, e) {
|
|
857
|
+
return e === void 0 && (e = /* @__PURE__ */ new Map()), A(t).filter(function(r) {
|
|
858
|
+
return Ve(e, r);
|
|
859
|
+
});
|
|
860
|
+
}, oe = function(t, e, r) {
|
|
861
|
+
return Ye(fe(le(t, r), e), !0, r);
|
|
862
|
+
}, xe = function(t, e) {
|
|
863
|
+
return Ye(fe(le(t), e), !1);
|
|
864
|
+
}, ur = function(t, e) {
|
|
865
|
+
return fe(or(t), e);
|
|
866
|
+
}, j = function(t, e) {
|
|
867
|
+
return (t.shadowRoot ? j(t.shadowRoot, e) : t.contains(e)) || Array.from(t.children).some(function(r) {
|
|
868
|
+
return j(r, e);
|
|
869
|
+
});
|
|
870
|
+
}, cr = function(t) {
|
|
871
|
+
for (var e = /* @__PURE__ */ new Set(), r = t.length, n = 0; n < r; n += 1)
|
|
872
|
+
for (var i = n + 1; i < r; i += 1) {
|
|
873
|
+
var u = t[n].compareDocumentPosition(t[i]);
|
|
874
|
+
(u & Node.DOCUMENT_POSITION_CONTAINED_BY) > 0 && e.add(i), (u & Node.DOCUMENT_POSITION_CONTAINS) > 0 && e.add(n);
|
|
875
|
+
}
|
|
876
|
+
return t.filter(function(a, s) {
|
|
877
|
+
return !e.has(s);
|
|
878
|
+
});
|
|
879
|
+
}, ze = function(t) {
|
|
880
|
+
return t.parentNode ? ze(t.parentNode) : t;
|
|
881
|
+
}, de = function(t) {
|
|
882
|
+
var e = ie(t);
|
|
883
|
+
return e.filter(Boolean).reduce(function(r, n) {
|
|
884
|
+
var i = n.getAttribute(Se);
|
|
885
|
+
return r.push.apply(r, i ? cr(A(ze(n).querySelectorAll("[".concat(Se, '="').concat(i, '"]:not([').concat(qt, '="disabled"])')))) : [n]), r;
|
|
886
|
+
}, []);
|
|
887
|
+
}, $e = function(t) {
|
|
888
|
+
return t.activeElement ? t.activeElement.shadowRoot ? $e(t.activeElement.shadowRoot) : t.activeElement : void 0;
|
|
889
|
+
}, ve = function() {
|
|
890
|
+
return document.activeElement ? document.activeElement.shadowRoot ? $e(document.activeElement.shadowRoot) : document.activeElement : void 0;
|
|
891
|
+
}, sr = function(t) {
|
|
892
|
+
return t === document.activeElement;
|
|
893
|
+
}, lr = function(t) {
|
|
894
|
+
return !!A(t.querySelectorAll("iframe")).some(function(e) {
|
|
895
|
+
return sr(e);
|
|
896
|
+
});
|
|
897
|
+
}, fr = function(t) {
|
|
898
|
+
var e = document && ve();
|
|
899
|
+
return !e || e.dataset && e.dataset.focusGuard ? !1 : de(t).some(function(r) {
|
|
900
|
+
return j(r, e) || lr(r);
|
|
901
|
+
});
|
|
902
|
+
}, dr = function() {
|
|
903
|
+
var t = document && ve();
|
|
904
|
+
return t ? A(document.querySelectorAll("[".concat(Yt, "]"))).some(function(e) {
|
|
905
|
+
return j(e, t);
|
|
906
|
+
}) : !1;
|
|
907
|
+
}, vr = function(t, e) {
|
|
908
|
+
return e.filter(qe).filter(function(r) {
|
|
909
|
+
return r.name === t.name;
|
|
910
|
+
}).filter(function(r) {
|
|
911
|
+
return r.checked;
|
|
912
|
+
})[0] || t;
|
|
913
|
+
}, be = function(t, e) {
|
|
914
|
+
return qe(t) && t.name ? vr(t, e) : t;
|
|
915
|
+
}, br = function(t) {
|
|
916
|
+
var e = /* @__PURE__ */ new Set();
|
|
917
|
+
return t.forEach(function(r) {
|
|
918
|
+
return e.add(be(r, t));
|
|
919
|
+
}), t.filter(function(r) {
|
|
920
|
+
return e.has(r);
|
|
921
|
+
});
|
|
922
|
+
}, ke = function(t) {
|
|
923
|
+
return t[0] && t.length > 1 ? be(t[0], t) : t[0];
|
|
924
|
+
}, Ce = function(t, e) {
|
|
925
|
+
return t.length > 1 ? t.indexOf(be(t[e], t)) : e;
|
|
926
|
+
}, Xe = "NEW_FOCUS", pr = function(t, e, r, n) {
|
|
927
|
+
var i = t.length, u = t[0], a = t[i - 1], s = ce(r);
|
|
928
|
+
if (!(r && t.indexOf(r) >= 0)) {
|
|
929
|
+
var l = r !== void 0 ? e.indexOf(r) : -1, d = n ? e.indexOf(n) : l, h = 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);
|
|
930
|
+
if (l === -1 || h === -1)
|
|
931
|
+
return Xe;
|
|
932
|
+
if (!v && h >= 0)
|
|
933
|
+
return h;
|
|
934
|
+
if (l <= p && s && Math.abs(v) > 1)
|
|
935
|
+
return D;
|
|
936
|
+
if (l >= w && s && Math.abs(v) > 1)
|
|
937
|
+
return I;
|
|
938
|
+
if (v && Math.abs(S) > 1)
|
|
939
|
+
return h;
|
|
940
|
+
if (l <= p)
|
|
941
|
+
return D;
|
|
942
|
+
if (l > w)
|
|
943
|
+
return I;
|
|
944
|
+
if (v)
|
|
945
|
+
return Math.abs(v) > 1 ? h : (i + h + v) % i;
|
|
946
|
+
}
|
|
947
|
+
}, ue = function(t, e) {
|
|
948
|
+
return e === void 0 && (e = []), e.push(t), t.parentNode && ue(t.parentNode.host || t.parentNode, e), e;
|
|
949
|
+
}, ee = function(t, e) {
|
|
950
|
+
for (var r = ue(t), n = ue(e), i = 0; i < r.length; i += 1) {
|
|
951
|
+
var u = r[i];
|
|
952
|
+
if (n.indexOf(u) >= 0)
|
|
953
|
+
return u;
|
|
954
|
+
}
|
|
955
|
+
return !1;
|
|
956
|
+
}, Je = function(t, e, r) {
|
|
957
|
+
var n = ie(t), i = ie(e), u = n[0], a = !1;
|
|
958
|
+
return i.filter(Boolean).forEach(function(s) {
|
|
959
|
+
a = ee(a || s, s) || a, r.filter(Boolean).forEach(function(l) {
|
|
960
|
+
var d = ee(u, l);
|
|
961
|
+
d && (!a || j(d, a) ? a = d : a = ee(d, a));
|
|
962
|
+
});
|
|
963
|
+
}), a;
|
|
964
|
+
}, mr = function(t, e) {
|
|
965
|
+
return t.reduce(function(r, n) {
|
|
966
|
+
return r.concat(ur(n, e));
|
|
967
|
+
}, []);
|
|
968
|
+
}, hr = function(t) {
|
|
969
|
+
return function(e) {
|
|
970
|
+
var r;
|
|
971
|
+
return e.autofocus || !!(!((r = Ge(e)) === null || r === void 0) && r.autofocus) || t.indexOf(e) >= 0;
|
|
972
|
+
};
|
|
973
|
+
}, yr = function(t, e) {
|
|
974
|
+
var r = /* @__PURE__ */ new Map();
|
|
975
|
+
return e.forEach(function(n) {
|
|
976
|
+
return r.set(n.node, n);
|
|
977
|
+
}), t.map(function(n) {
|
|
978
|
+
return r.get(n);
|
|
979
|
+
}).filter(rr);
|
|
980
|
+
}, gr = function(t, e) {
|
|
981
|
+
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) {
|
|
982
|
+
var g = w.node;
|
|
983
|
+
return Y(g);
|
|
984
|
+
});
|
|
985
|
+
if (!(!s[0] && (s = a, !s[0]))) {
|
|
986
|
+
var l = xe([i], u).map(function(w) {
|
|
987
|
+
var g = w.node;
|
|
988
|
+
return g;
|
|
989
|
+
}), d = yr(l, s), h = d.map(function(w) {
|
|
990
|
+
var g = w.node;
|
|
991
|
+
return g;
|
|
992
|
+
}), v = pr(h, l, r, e);
|
|
993
|
+
if (v === Xe) {
|
|
994
|
+
var p = Ie(a.map(function(w) {
|
|
995
|
+
var g = w.node;
|
|
996
|
+
return g;
|
|
997
|
+
})).filter(hr(mr(n, u)));
|
|
998
|
+
return {
|
|
999
|
+
node: p && p.length ? ke(p) : ke(Ie(h))
|
|
1000
|
+
};
|
|
1001
|
+
}
|
|
1002
|
+
return v === void 0 ? v : d[v];
|
|
1003
|
+
}
|
|
1004
|
+
}, wr = function(t) {
|
|
1005
|
+
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) {
|
|
1006
|
+
var s = a.node;
|
|
1007
|
+
return Y(s);
|
|
1008
|
+
}).map(function(a) {
|
|
1009
|
+
var s = a.node;
|
|
1010
|
+
return s;
|
|
1011
|
+
});
|
|
1012
|
+
return i.map(function(a) {
|
|
1013
|
+
var s = a.node, l = a.index;
|
|
1014
|
+
return {
|
|
1015
|
+
node: s,
|
|
1016
|
+
index: l,
|
|
1017
|
+
lockItem: u.indexOf(s) >= 0,
|
|
1018
|
+
guard: ce(s)
|
|
1019
|
+
};
|
|
1020
|
+
});
|
|
1021
|
+
}, Er = wr, Nr = function(t, e) {
|
|
1022
|
+
"focus" in t && t.focus(e), "contentWindow" in t && t.contentWindow && t.contentWindow.focus();
|
|
1023
|
+
}, te = 0, re = !1, Tr = function(t, e, r) {
|
|
1024
|
+
r === void 0 && (r = {});
|
|
1025
|
+
var n = gr(t, e);
|
|
1026
|
+
if (!re && n) {
|
|
1027
|
+
if (te > 2) {
|
|
1028
|
+
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() {
|
|
1029
|
+
re = !1;
|
|
1030
|
+
}, 1);
|
|
1031
|
+
return;
|
|
1032
|
+
}
|
|
1033
|
+
te++, Nr(n.node, r.focusOptions), te--;
|
|
1034
|
+
}
|
|
1035
|
+
};
|
|
1036
|
+
const Or = (t) => requestAnimationFrame(t), Fr = (t, e) => {
|
|
1037
|
+
const r = e.findIndex((n) => n.node === t);
|
|
1038
|
+
return r === -1 ? 0 : r;
|
|
1039
|
+
}, Ar = (t, e) => {
|
|
1040
|
+
var u;
|
|
1041
|
+
const r = document.activeElement, n = Er(e), i = Fr(r, n) + t;
|
|
1042
|
+
return ((u = n[i]) == null ? void 0 : u.node) || r;
|
|
1043
|
+
}, Sr = (t, e) => {
|
|
1044
|
+
const r = t.key.toLowerCase();
|
|
1045
|
+
return {
|
|
1046
|
+
isArrowNext: r === e[0],
|
|
1047
|
+
isArrowPrev: r === e[1]
|
|
1048
|
+
};
|
|
1049
|
+
}, Ir = {
|
|
1050
|
+
behavior: "smooth",
|
|
1051
|
+
block: "center",
|
|
1052
|
+
inline: "center"
|
|
1053
|
+
};
|
|
1054
|
+
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 || {});
|
|
1055
|
+
const xr = (t, e, r) => {
|
|
1056
|
+
const n = z(null), i = K(
|
|
1057
|
+
() => r === Z.HORIZONTAL
|
|
1058
|
+
), u = K(
|
|
1059
|
+
() => r === Z.VERTICAL
|
|
1060
|
+
), a = K(
|
|
1061
|
+
() => u.value ? Object.values(Qe) : Object.values(et)
|
|
1062
|
+
), s = () => {
|
|
1063
|
+
(document.activeElement === document.body || dr() || !n.value) && (t.value && !fr(t.value) && Tr(t.value, n.value, {
|
|
1064
|
+
focusOptions: { preventScroll: !0 }
|
|
1065
|
+
}), n.value = document.activeElement);
|
|
1066
|
+
}, l = () => {
|
|
1067
|
+
var w;
|
|
1068
|
+
const p = n.value || ((w = t.value) == null ? void 0 : w.parentNode) || document.body;
|
|
1069
|
+
p && p.focus();
|
|
1070
|
+
}, d = () => {
|
|
1071
|
+
e.value && Or(s);
|
|
1072
|
+
}, h = () => {
|
|
1073
|
+
var g;
|
|
1074
|
+
if (!u.value && !i.value)
|
|
1075
|
+
return !1;
|
|
1076
|
+
const p = (g = document.activeElement) == null ? void 0 : g.tagName.toLowerCase(), w = u.value ? ["textarea", "select"] : ["input", "textarea"];
|
|
1077
|
+
return p ? w.includes(p) : !1;
|
|
1078
|
+
}, v = (p) => {
|
|
1079
|
+
if (!e.value || document.activeElement.isContentEditable || h())
|
|
1080
|
+
return;
|
|
1081
|
+
const { isArrowNext: w, isArrowPrev: g } = Sr(p, a.value);
|
|
1082
|
+
if ((g || w) && (p.preventDefault(), p.stopPropagation(), t.value)) {
|
|
1083
|
+
const F = Ar(g ? 1 : -1, t.value);
|
|
1084
|
+
if (F.focus(), "scrollIntoView" in F) {
|
|
1085
|
+
const S = "scrollBehavior" in document.documentElement.style ? Ir : !1;
|
|
1086
|
+
F.scrollIntoView(S);
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
};
|
|
1090
|
+
return De(
|
|
1091
|
+
() => e.value,
|
|
1092
|
+
(p) => {
|
|
1093
|
+
p ? s() : l();
|
|
1094
|
+
}
|
|
1095
|
+
), nt(() => {
|
|
1096
|
+
e.value && s();
|
|
1097
|
+
}), at(() => {
|
|
1098
|
+
e.value && l();
|
|
1099
|
+
}), {
|
|
1100
|
+
onKeyDown: v,
|
|
1101
|
+
onBlur: d
|
|
1102
|
+
};
|
|
1103
|
+
}, kr = {
|
|
1104
|
+
name: "bento-focus-trap"
|
|
1105
|
+
}, Cr = /* @__PURE__ */ it({
|
|
1106
|
+
...kr,
|
|
1107
|
+
props: {
|
|
1108
|
+
/**
|
|
1109
|
+
* Enables / Disables arrow navigation as well can determine the type of arrow navigation.
|
|
1110
|
+
* The types of arrow navigation are horizontal and vertical.
|
|
1111
|
+
*/
|
|
1112
|
+
arrowNavigation: {
|
|
1113
|
+
type: String,
|
|
1114
|
+
default: void 0,
|
|
1115
|
+
validator: (t) => Object.values(Z).includes(t)
|
|
1116
|
+
},
|
|
1117
|
+
/**
|
|
1118
|
+
* Enables / disables the focus trap.
|
|
1119
|
+
*/
|
|
1120
|
+
disabled: {
|
|
1121
|
+
type: Boolean,
|
|
1122
|
+
default: !1
|
|
1123
|
+
},
|
|
1124
|
+
/**
|
|
1125
|
+
* Enables / disables the focus trap for all keys.
|
|
1126
|
+
*/
|
|
1127
|
+
trapAll: {
|
|
1128
|
+
type: Boolean,
|
|
1129
|
+
default: !1
|
|
1130
|
+
},
|
|
1131
|
+
/**
|
|
1132
|
+
* Configurations for the focus-trap when trap-all is active.
|
|
1133
|
+
*/
|
|
1134
|
+
trapAllOptions: {
|
|
1135
|
+
type: Object,
|
|
1136
|
+
default: void 0
|
|
1137
|
+
}
|
|
1138
|
+
},
|
|
1139
|
+
setup(t) {
|
|
1140
|
+
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);
|
|
1141
|
+
Ht(r, u, ut(e, "trapAllOptions"));
|
|
1142
|
+
const { handleKeydownEscape: s } = vt(r), { onKeyDown: l, onBlur: d } = xr(r, a, e.arrowNavigation);
|
|
1143
|
+
return { __sfc: !0, props: e, root: r, slots: n, hasSlot: i, activateTrapAll: u, activateTrapArrowKeysOnly: a, handleKeydownEscape: s, onKeyDown: l, onBlur: d };
|
|
1144
|
+
}
|
|
1145
|
+
});
|
|
1146
|
+
var Pr = function() {
|
|
1147
|
+
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
1148
|
+
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) {
|
|
1149
|
+
return !i.type.indexOf("key") && e._k(i.keyCode, "esc", 27, i.key, ["Esc", "Escape"]) ? null : n.handleKeydownEscape.apply(null, arguments);
|
|
1150
|
+
} } }, e.arrowNavigation ? { keydown: n.onKeyDown } : {}), [e._t("default")], 2) : e._e();
|
|
1151
|
+
}, Dr = [], Rr = /* @__PURE__ */ dt(
|
|
1152
|
+
Cr,
|
|
1153
|
+
Pr,
|
|
1154
|
+
Dr,
|
|
1155
|
+
!1,
|
|
1156
|
+
null,
|
|
1157
|
+
"dc7173b4"
|
|
1158
|
+
);
|
|
1159
|
+
const Kr = Rr.exports;
|
|
1160
|
+
export {
|
|
1161
|
+
Kr as B,
|
|
1162
|
+
ve as a,
|
|
1163
|
+
Er as b,
|
|
1164
|
+
fr as f,
|
|
1165
|
+
Ar as g,
|
|
1166
|
+
Tr as s
|
|
1167
|
+
};
|
|
1168
|
+
//# sourceMappingURL=focus-trap.CNIU5jOz.js.map
|