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