@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
|
@@ -1,1404 +0,0 @@
|
|
|
1
|
-
import { computed as R, unref as tt, ref as z, shallowRef as Zt, watch as it, getCurrentScope as te, onScopeDispose as ee, shallowReadonly as Z, defineComponent as ne, toRefs as oe } from "vue";
|
|
2
|
-
import "./index.Cl4_42j5.js";
|
|
3
|
-
import { B as ie } from "./focus-trap.CNIU5jOz.js";
|
|
4
|
-
import { n as re } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
5
|
-
import "../assets/popper-container.css";
|
|
6
|
-
const Ht = ["top", "right", "bottom", "left"], _t = ["start", "end"], Et = /* @__PURE__ */ Ht.reduce((t, e) => t.concat(e, e + "-" + _t[0], e + "-" + _t[1]), []), nt = Math.min, G = Math.max, at = Math.round, ct = Math.floor, M = (t) => ({
|
|
7
|
-
x: t,
|
|
8
|
-
y: t
|
|
9
|
-
}), se = {
|
|
10
|
-
left: "right",
|
|
11
|
-
right: "left",
|
|
12
|
-
bottom: "top",
|
|
13
|
-
top: "bottom"
|
|
14
|
-
}, le = {
|
|
15
|
-
start: "end",
|
|
16
|
-
end: "start"
|
|
17
|
-
};
|
|
18
|
-
function wt(t, e, n) {
|
|
19
|
-
return G(t, nt(e, n));
|
|
20
|
-
}
|
|
21
|
-
function J(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 xt(t) {
|
|
34
|
-
return t === "y" ? "height" : "width";
|
|
35
|
-
}
|
|
36
|
-
function X(t) {
|
|
37
|
-
return ["top", "bottom"].includes(V(t)) ? "y" : "x";
|
|
38
|
-
}
|
|
39
|
-
function bt(t) {
|
|
40
|
-
return Nt(X(t));
|
|
41
|
-
}
|
|
42
|
-
function Wt(t, e, n) {
|
|
43
|
-
n === void 0 && (n = !1);
|
|
44
|
-
const o = B(t), i = bt(t), s = xt(i);
|
|
45
|
-
let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
46
|
-
return e.reference[s] > e.floating[s] && (r = ut(r)), [r, ut(r)];
|
|
47
|
-
}
|
|
48
|
-
function ce(t) {
|
|
49
|
-
const e = ut(t);
|
|
50
|
-
return [ft(t), e, ft(e)];
|
|
51
|
-
}
|
|
52
|
-
function ft(t) {
|
|
53
|
-
return t.replace(/start|end/g, (e) => le[e]);
|
|
54
|
-
}
|
|
55
|
-
function ae(t, e, n) {
|
|
56
|
-
const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
|
|
57
|
-
switch (t) {
|
|
58
|
-
case "top":
|
|
59
|
-
case "bottom":
|
|
60
|
-
return n ? e ? i : o : e ? o : i;
|
|
61
|
-
case "left":
|
|
62
|
-
case "right":
|
|
63
|
-
return e ? s : r;
|
|
64
|
-
default:
|
|
65
|
-
return [];
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
function fe(t, e, n, o) {
|
|
69
|
-
const i = B(t);
|
|
70
|
-
let s = ae(V(t), n === "start", o);
|
|
71
|
-
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(ft)))), s;
|
|
72
|
-
}
|
|
73
|
-
function ut(t) {
|
|
74
|
-
return t.replace(/left|right|bottom|top/g, (e) => se[e]);
|
|
75
|
-
}
|
|
76
|
-
function ue(t) {
|
|
77
|
-
return {
|
|
78
|
-
top: 0,
|
|
79
|
-
right: 0,
|
|
80
|
-
bottom: 0,
|
|
81
|
-
left: 0,
|
|
82
|
-
...t
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
function Vt(t) {
|
|
86
|
-
return typeof t != "number" ? ue(t) : {
|
|
87
|
-
top: t,
|
|
88
|
-
right: t,
|
|
89
|
-
bottom: t,
|
|
90
|
-
left: t
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
function dt(t) {
|
|
94
|
-
const {
|
|
95
|
-
x: e,
|
|
96
|
-
y: n,
|
|
97
|
-
width: o,
|
|
98
|
-
height: i
|
|
99
|
-
} = t;
|
|
100
|
-
return {
|
|
101
|
-
width: o,
|
|
102
|
-
height: i,
|
|
103
|
-
top: n,
|
|
104
|
-
left: e,
|
|
105
|
-
right: e + o,
|
|
106
|
-
bottom: n + i,
|
|
107
|
-
x: e,
|
|
108
|
-
y: n
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
function Dt(t, e, n) {
|
|
112
|
-
let {
|
|
113
|
-
reference: o,
|
|
114
|
-
floating: i
|
|
115
|
-
} = t;
|
|
116
|
-
const s = X(e), r = bt(e), l = xt(r), a = V(e), c = s === "y", d = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, m = o[l] / 2 - i[l] / 2;
|
|
117
|
-
let f;
|
|
118
|
-
switch (a) {
|
|
119
|
-
case "top":
|
|
120
|
-
f = {
|
|
121
|
-
x: d,
|
|
122
|
-
y: o.y - i.height
|
|
123
|
-
};
|
|
124
|
-
break;
|
|
125
|
-
case "bottom":
|
|
126
|
-
f = {
|
|
127
|
-
x: d,
|
|
128
|
-
y: o.y + o.height
|
|
129
|
-
};
|
|
130
|
-
break;
|
|
131
|
-
case "right":
|
|
132
|
-
f = {
|
|
133
|
-
x: o.x + o.width,
|
|
134
|
-
y: u
|
|
135
|
-
};
|
|
136
|
-
break;
|
|
137
|
-
case "left":
|
|
138
|
-
f = {
|
|
139
|
-
x: o.x - i.width,
|
|
140
|
-
y: u
|
|
141
|
-
};
|
|
142
|
-
break;
|
|
143
|
-
default:
|
|
144
|
-
f = {
|
|
145
|
-
x: o.x,
|
|
146
|
-
y: o.y
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
switch (B(e)) {
|
|
150
|
-
case "start":
|
|
151
|
-
f[r] -= m * (n && c ? -1 : 1);
|
|
152
|
-
break;
|
|
153
|
-
case "end":
|
|
154
|
-
f[r] += m * (n && c ? -1 : 1);
|
|
155
|
-
break;
|
|
156
|
-
}
|
|
157
|
-
return f;
|
|
158
|
-
}
|
|
159
|
-
const de = async (t, e, n) => {
|
|
160
|
-
const {
|
|
161
|
-
placement: o = "bottom",
|
|
162
|
-
strategy: i = "absolute",
|
|
163
|
-
middleware: s = [],
|
|
164
|
-
platform: r
|
|
165
|
-
} = n, l = s.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(e));
|
|
166
|
-
let c = await r.getElementRects({
|
|
167
|
-
reference: t,
|
|
168
|
-
floating: e,
|
|
169
|
-
strategy: i
|
|
170
|
-
}), {
|
|
171
|
-
x: d,
|
|
172
|
-
y: u
|
|
173
|
-
} = Dt(c, o, a), m = o, f = {}, p = 0;
|
|
174
|
-
for (let g = 0; g < l.length; g++) {
|
|
175
|
-
const {
|
|
176
|
-
name: w,
|
|
177
|
-
fn: h
|
|
178
|
-
} = l[g], {
|
|
179
|
-
x: v,
|
|
180
|
-
y,
|
|
181
|
-
data: O,
|
|
182
|
-
reset: b
|
|
183
|
-
} = await h({
|
|
184
|
-
x: d,
|
|
185
|
-
y: u,
|
|
186
|
-
initialPlacement: o,
|
|
187
|
-
placement: m,
|
|
188
|
-
strategy: i,
|
|
189
|
-
middlewareData: f,
|
|
190
|
-
rects: c,
|
|
191
|
-
platform: r,
|
|
192
|
-
elements: {
|
|
193
|
-
reference: t,
|
|
194
|
-
floating: e
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
d = v ?? d, u = y ?? u, f = {
|
|
198
|
-
...f,
|
|
199
|
-
[w]: {
|
|
200
|
-
...f[w],
|
|
201
|
-
...O
|
|
202
|
-
}
|
|
203
|
-
}, b && p <= 50 && (p++, typeof b == "object" && (b.placement && (m = b.placement), b.rects && (c = b.rects === !0 ? await r.getElementRects({
|
|
204
|
-
reference: t,
|
|
205
|
-
floating: e,
|
|
206
|
-
strategy: i
|
|
207
|
-
}) : b.rects), {
|
|
208
|
-
x: d,
|
|
209
|
-
y: u
|
|
210
|
-
} = Dt(c, m, a)), g = -1);
|
|
211
|
-
}
|
|
212
|
-
return {
|
|
213
|
-
x: d,
|
|
214
|
-
y: u,
|
|
215
|
-
placement: m,
|
|
216
|
-
strategy: i,
|
|
217
|
-
middlewareData: f
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
async function rt(t, e) {
|
|
221
|
-
var n;
|
|
222
|
-
e === void 0 && (e = {});
|
|
223
|
-
const {
|
|
224
|
-
x: o,
|
|
225
|
-
y: i,
|
|
226
|
-
platform: s,
|
|
227
|
-
rects: r,
|
|
228
|
-
elements: l,
|
|
229
|
-
strategy: a
|
|
230
|
-
} = t, {
|
|
231
|
-
boundary: c = "clippingAncestors",
|
|
232
|
-
rootBoundary: d = "viewport",
|
|
233
|
-
elementContext: u = "floating",
|
|
234
|
-
altBoundary: m = !1,
|
|
235
|
-
padding: f = 0
|
|
236
|
-
} = J(e, t), p = Vt(f), w = l[m ? u === "floating" ? "reference" : "floating" : u], h = dt(await s.getClippingRect({
|
|
237
|
-
element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
|
|
238
|
-
boundary: c,
|
|
239
|
-
rootBoundary: d,
|
|
240
|
-
strategy: a
|
|
241
|
-
})), v = u === "floating" ? {
|
|
242
|
-
x: o,
|
|
243
|
-
y: i,
|
|
244
|
-
width: r.floating.width,
|
|
245
|
-
height: r.floating.height
|
|
246
|
-
} : r.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), O = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
|
|
247
|
-
x: 1,
|
|
248
|
-
y: 1
|
|
249
|
-
} : {
|
|
250
|
-
x: 1,
|
|
251
|
-
y: 1
|
|
252
|
-
}, b = dt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
253
|
-
elements: l,
|
|
254
|
-
rect: v,
|
|
255
|
-
offsetParent: y,
|
|
256
|
-
strategy: a
|
|
257
|
-
}) : v);
|
|
258
|
-
return {
|
|
259
|
-
top: (h.top - b.top + p.top) / O.y,
|
|
260
|
-
bottom: (b.bottom - h.bottom + p.bottom) / O.y,
|
|
261
|
-
left: (h.left - b.left + p.left) / O.x,
|
|
262
|
-
right: (b.right - h.right + p.right) / O.x
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
const me = (t) => ({
|
|
266
|
-
name: "arrow",
|
|
267
|
-
options: t,
|
|
268
|
-
async fn(e) {
|
|
269
|
-
const {
|
|
270
|
-
x: n,
|
|
271
|
-
y: o,
|
|
272
|
-
placement: i,
|
|
273
|
-
rects: s,
|
|
274
|
-
platform: r,
|
|
275
|
-
elements: l,
|
|
276
|
-
middlewareData: a
|
|
277
|
-
} = e, {
|
|
278
|
-
element: c,
|
|
279
|
-
padding: d = 0
|
|
280
|
-
} = J(t, e) || {};
|
|
281
|
-
if (c == null)
|
|
282
|
-
return {};
|
|
283
|
-
const u = Vt(d), m = {
|
|
284
|
-
x: n,
|
|
285
|
-
y: o
|
|
286
|
-
}, f = bt(i), p = xt(f), g = await r.getDimensions(c), w = f === "y", h = w ? "top" : "left", v = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", O = s.reference[p] + s.reference[f] - m[f] - s.floating[p], b = m[f] - s.reference[f], T = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c));
|
|
287
|
-
let x = T ? T[y] : 0;
|
|
288
|
-
(!x || !await (r.isElement == null ? void 0 : r.isElement(T))) && (x = l.floating[y] || s.floating[p]);
|
|
289
|
-
const H = O / 2 - b / 2, S = x / 2 - g[p] / 2 - 1, A = nt(u[h], S), E = nt(u[v], S), N = A, Y = x - g[p] - E, P = x / 2 - g[p] / 2 + H, D = wt(N, P, Y), q = !a.arrow && B(i) != null && P !== D && s.reference[p] / 2 - (P < N ? A : E) - g[p] / 2 < 0, W = q ? P < N ? P - N : P - Y : 0;
|
|
290
|
-
return {
|
|
291
|
-
[f]: m[f] + W,
|
|
292
|
-
data: {
|
|
293
|
-
[f]: D,
|
|
294
|
-
centerOffset: P - D - W,
|
|
295
|
-
...q && {
|
|
296
|
-
alignmentOffset: W
|
|
297
|
-
}
|
|
298
|
-
},
|
|
299
|
-
reset: q
|
|
300
|
-
};
|
|
301
|
-
}
|
|
302
|
-
});
|
|
303
|
-
function pe(t, e, n) {
|
|
304
|
-
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 ? ft(i) !== i : !1) : !0);
|
|
305
|
-
}
|
|
306
|
-
const ge = function(t) {
|
|
307
|
-
return t === void 0 && (t = {}), {
|
|
308
|
-
name: "autoPlacement",
|
|
309
|
-
options: t,
|
|
310
|
-
async fn(e) {
|
|
311
|
-
var n, o, i;
|
|
312
|
-
const {
|
|
313
|
-
rects: s,
|
|
314
|
-
middlewareData: r,
|
|
315
|
-
placement: l,
|
|
316
|
-
platform: a,
|
|
317
|
-
elements: c
|
|
318
|
-
} = e, {
|
|
319
|
-
crossAxis: d = !1,
|
|
320
|
-
alignment: u,
|
|
321
|
-
allowedPlacements: m = Et,
|
|
322
|
-
autoAlignment: f = !0,
|
|
323
|
-
...p
|
|
324
|
-
} = J(t, e), g = u !== void 0 || m === Et ? pe(u || null, f, m) : m, w = await rt(e, p), h = ((n = r.autoPlacement) == null ? void 0 : n.index) || 0, v = g[h];
|
|
325
|
-
if (v == null)
|
|
326
|
-
return {};
|
|
327
|
-
const y = Wt(v, s, await (a.isRTL == null ? void 0 : a.isRTL(c.floating)));
|
|
328
|
-
if (l !== v)
|
|
329
|
-
return {
|
|
330
|
-
reset: {
|
|
331
|
-
placement: g[0]
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
const O = [w[V(v)], w[y[0]], w[y[1]]], b = [...((o = r.autoPlacement) == null ? void 0 : o.overflows) || [], {
|
|
335
|
-
placement: v,
|
|
336
|
-
overflows: O
|
|
337
|
-
}], T = g[h + 1];
|
|
338
|
-
if (T)
|
|
339
|
-
return {
|
|
340
|
-
data: {
|
|
341
|
-
index: h + 1,
|
|
342
|
-
overflows: b
|
|
343
|
-
},
|
|
344
|
-
reset: {
|
|
345
|
-
placement: T
|
|
346
|
-
}
|
|
347
|
-
};
|
|
348
|
-
const x = b.map((A) => {
|
|
349
|
-
const E = B(A.placement);
|
|
350
|
-
return [A.placement, E && d ? (
|
|
351
|
-
// Check along the mainAxis and main crossAxis side.
|
|
352
|
-
A.overflows.slice(0, 2).reduce((N, Y) => N + Y, 0)
|
|
353
|
-
) : (
|
|
354
|
-
// Check only the mainAxis.
|
|
355
|
-
A.overflows[0]
|
|
356
|
-
), A.overflows];
|
|
357
|
-
}).sort((A, E) => A[1] - E[1]), S = ((i = x.filter((A) => A[2].slice(
|
|
358
|
-
0,
|
|
359
|
-
// Aligned placements should not check their opposite crossAxis
|
|
360
|
-
// side.
|
|
361
|
-
B(A[0]) ? 2 : 3
|
|
362
|
-
).every((E) => E <= 0))[0]) == null ? void 0 : i[0]) || x[0][0];
|
|
363
|
-
return S !== l ? {
|
|
364
|
-
data: {
|
|
365
|
-
index: h + 1,
|
|
366
|
-
overflows: b
|
|
367
|
-
},
|
|
368
|
-
reset: {
|
|
369
|
-
placement: S
|
|
370
|
-
}
|
|
371
|
-
} : {};
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
}, he = function(t) {
|
|
375
|
-
return t === void 0 && (t = {}), {
|
|
376
|
-
name: "flip",
|
|
377
|
-
options: t,
|
|
378
|
-
async fn(e) {
|
|
379
|
-
var n, o;
|
|
380
|
-
const {
|
|
381
|
-
placement: i,
|
|
382
|
-
middlewareData: s,
|
|
383
|
-
rects: r,
|
|
384
|
-
initialPlacement: l,
|
|
385
|
-
platform: a,
|
|
386
|
-
elements: c
|
|
387
|
-
} = e, {
|
|
388
|
-
mainAxis: d = !0,
|
|
389
|
-
crossAxis: u = !0,
|
|
390
|
-
fallbackPlacements: m,
|
|
391
|
-
fallbackStrategy: f = "bestFit",
|
|
392
|
-
fallbackAxisSideDirection: p = "none",
|
|
393
|
-
flipAlignment: g = !0,
|
|
394
|
-
...w
|
|
395
|
-
} = J(t, e);
|
|
396
|
-
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
397
|
-
return {};
|
|
398
|
-
const h = V(i), v = X(l), y = V(l) === l, O = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), b = m || (y || !g ? [ut(l)] : ce(l)), T = p !== "none";
|
|
399
|
-
!m && T && b.push(...fe(l, g, p, O));
|
|
400
|
-
const x = [l, ...b], H = await rt(e, w), S = [];
|
|
401
|
-
let A = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
402
|
-
if (d && S.push(H[h]), u) {
|
|
403
|
-
const D = Wt(i, r, O);
|
|
404
|
-
S.push(H[D[0]], H[D[1]]);
|
|
405
|
-
}
|
|
406
|
-
if (A = [...A, {
|
|
407
|
-
placement: i,
|
|
408
|
-
overflows: S
|
|
409
|
-
}], !S.every((D) => D <= 0)) {
|
|
410
|
-
var E, N;
|
|
411
|
-
const D = (((E = s.flip) == null ? void 0 : E.index) || 0) + 1, q = x[D];
|
|
412
|
-
if (q) {
|
|
413
|
-
var Y;
|
|
414
|
-
const I = u === "alignment" ? v !== X(q) : !1, F = ((Y = A[0]) == null ? void 0 : Y.overflows[0]) > 0;
|
|
415
|
-
if (!I || F)
|
|
416
|
-
return {
|
|
417
|
-
data: {
|
|
418
|
-
index: D,
|
|
419
|
-
overflows: A
|
|
420
|
-
},
|
|
421
|
-
reset: {
|
|
422
|
-
placement: q
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
let W = (N = A.filter((I) => I.overflows[0] <= 0).sort((I, F) => I.overflows[1] - F.overflows[1])[0]) == null ? void 0 : N.placement;
|
|
427
|
-
if (!W)
|
|
428
|
-
switch (f) {
|
|
429
|
-
case "bestFit": {
|
|
430
|
-
var P;
|
|
431
|
-
const I = (P = A.filter((F) => {
|
|
432
|
-
if (T) {
|
|
433
|
-
const j = X(F.placement);
|
|
434
|
-
return j === v || // Create a bias to the `y` side axis due to horizontal
|
|
435
|
-
// reading directions favoring greater width.
|
|
436
|
-
j === "y";
|
|
437
|
-
}
|
|
438
|
-
return !0;
|
|
439
|
-
}).map((F) => [F.placement, F.overflows.filter((j) => j > 0).reduce((j, Qt) => j + Qt, 0)]).sort((F, j) => F[1] - j[1])[0]) == null ? void 0 : P[0];
|
|
440
|
-
I && (W = I);
|
|
441
|
-
break;
|
|
442
|
-
}
|
|
443
|
-
case "initialPlacement":
|
|
444
|
-
W = l;
|
|
445
|
-
break;
|
|
446
|
-
}
|
|
447
|
-
if (i !== W)
|
|
448
|
-
return {
|
|
449
|
-
reset: {
|
|
450
|
-
placement: W
|
|
451
|
-
}
|
|
452
|
-
};
|
|
453
|
-
}
|
|
454
|
-
return {};
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
|
-
};
|
|
458
|
-
function Lt(t, e) {
|
|
459
|
-
return {
|
|
460
|
-
top: t.top - e.height,
|
|
461
|
-
right: t.right - e.width,
|
|
462
|
-
bottom: t.bottom - e.height,
|
|
463
|
-
left: t.left - e.width
|
|
464
|
-
};
|
|
465
|
-
}
|
|
466
|
-
function Ct(t) {
|
|
467
|
-
return Ht.some((e) => t[e] >= 0);
|
|
468
|
-
}
|
|
469
|
-
const we = function(t) {
|
|
470
|
-
return t === void 0 && (t = {}), {
|
|
471
|
-
name: "hide",
|
|
472
|
-
options: t,
|
|
473
|
-
async fn(e) {
|
|
474
|
-
const {
|
|
475
|
-
rects: n
|
|
476
|
-
} = e, {
|
|
477
|
-
strategy: o = "referenceHidden",
|
|
478
|
-
...i
|
|
479
|
-
} = J(t, e);
|
|
480
|
-
switch (o) {
|
|
481
|
-
case "referenceHidden": {
|
|
482
|
-
const s = await rt(e, {
|
|
483
|
-
...i,
|
|
484
|
-
elementContext: "reference"
|
|
485
|
-
}), r = Lt(s, n.reference);
|
|
486
|
-
return {
|
|
487
|
-
data: {
|
|
488
|
-
referenceHiddenOffsets: r,
|
|
489
|
-
referenceHidden: Ct(r)
|
|
490
|
-
}
|
|
491
|
-
};
|
|
492
|
-
}
|
|
493
|
-
case "escaped": {
|
|
494
|
-
const s = await rt(e, {
|
|
495
|
-
...i,
|
|
496
|
-
altBoundary: !0
|
|
497
|
-
}), r = Lt(s, n.floating);
|
|
498
|
-
return {
|
|
499
|
-
data: {
|
|
500
|
-
escapedOffsets: r,
|
|
501
|
-
escaped: Ct(r)
|
|
502
|
-
}
|
|
503
|
-
};
|
|
504
|
-
}
|
|
505
|
-
default:
|
|
506
|
-
return {};
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
|
-
};
|
|
511
|
-
async function ve(t, e) {
|
|
512
|
-
const {
|
|
513
|
-
placement: n,
|
|
514
|
-
platform: o,
|
|
515
|
-
elements: i
|
|
516
|
-
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = V(n), l = B(n), a = X(n) === "y", c = ["left", "top"].includes(r) ? -1 : 1, d = s && a ? -1 : 1, u = J(e, t);
|
|
517
|
-
let {
|
|
518
|
-
mainAxis: m,
|
|
519
|
-
crossAxis: f,
|
|
520
|
-
alignmentAxis: p
|
|
521
|
-
} = typeof u == "number" ? {
|
|
522
|
-
mainAxis: u,
|
|
523
|
-
crossAxis: 0,
|
|
524
|
-
alignmentAxis: null
|
|
525
|
-
} : {
|
|
526
|
-
mainAxis: u.mainAxis || 0,
|
|
527
|
-
crossAxis: u.crossAxis || 0,
|
|
528
|
-
alignmentAxis: u.alignmentAxis
|
|
529
|
-
};
|
|
530
|
-
return l && typeof p == "number" && (f = l === "end" ? p * -1 : p), a ? {
|
|
531
|
-
x: f * d,
|
|
532
|
-
y: m * c
|
|
533
|
-
} : {
|
|
534
|
-
x: m * c,
|
|
535
|
-
y: f * d
|
|
536
|
-
};
|
|
537
|
-
}
|
|
538
|
-
const ye = function(t) {
|
|
539
|
-
return t === void 0 && (t = 0), {
|
|
540
|
-
name: "offset",
|
|
541
|
-
options: t,
|
|
542
|
-
async fn(e) {
|
|
543
|
-
var n, o;
|
|
544
|
-
const {
|
|
545
|
-
x: i,
|
|
546
|
-
y: s,
|
|
547
|
-
placement: r,
|
|
548
|
-
middlewareData: l
|
|
549
|
-
} = e, a = await ve(e, t);
|
|
550
|
-
return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
551
|
-
x: i + a.x,
|
|
552
|
-
y: s + a.y,
|
|
553
|
-
data: {
|
|
554
|
-
...a,
|
|
555
|
-
placement: r
|
|
556
|
-
}
|
|
557
|
-
};
|
|
558
|
-
}
|
|
559
|
-
};
|
|
560
|
-
}, xe = function(t) {
|
|
561
|
-
return t === void 0 && (t = {}), {
|
|
562
|
-
name: "shift",
|
|
563
|
-
options: t,
|
|
564
|
-
async fn(e) {
|
|
565
|
-
const {
|
|
566
|
-
x: n,
|
|
567
|
-
y: o,
|
|
568
|
-
placement: i
|
|
569
|
-
} = e, {
|
|
570
|
-
mainAxis: s = !0,
|
|
571
|
-
crossAxis: r = !1,
|
|
572
|
-
limiter: l = {
|
|
573
|
-
fn: (w) => {
|
|
574
|
-
let {
|
|
575
|
-
x: h,
|
|
576
|
-
y: v
|
|
577
|
-
} = w;
|
|
578
|
-
return {
|
|
579
|
-
x: h,
|
|
580
|
-
y: v
|
|
581
|
-
};
|
|
582
|
-
}
|
|
583
|
-
},
|
|
584
|
-
...a
|
|
585
|
-
} = J(t, e), c = {
|
|
586
|
-
x: n,
|
|
587
|
-
y: o
|
|
588
|
-
}, d = await rt(e, a), u = X(V(i)), m = Nt(u);
|
|
589
|
-
let f = c[m], p = c[u];
|
|
590
|
-
if (s) {
|
|
591
|
-
const w = m === "y" ? "top" : "left", h = m === "y" ? "bottom" : "right", v = f + d[w], y = f - d[h];
|
|
592
|
-
f = wt(v, f, y);
|
|
593
|
-
}
|
|
594
|
-
if (r) {
|
|
595
|
-
const w = u === "y" ? "top" : "left", h = u === "y" ? "bottom" : "right", v = p + d[w], y = p - d[h];
|
|
596
|
-
p = wt(v, p, y);
|
|
597
|
-
}
|
|
598
|
-
const g = l.fn({
|
|
599
|
-
...e,
|
|
600
|
-
[m]: f,
|
|
601
|
-
[u]: p
|
|
602
|
-
});
|
|
603
|
-
return {
|
|
604
|
-
...g,
|
|
605
|
-
data: {
|
|
606
|
-
x: g.x - n,
|
|
607
|
-
y: g.y - o,
|
|
608
|
-
enabled: {
|
|
609
|
-
[m]: s,
|
|
610
|
-
[u]: r
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
};
|
|
614
|
-
}
|
|
615
|
-
};
|
|
616
|
-
};
|
|
617
|
-
function mt() {
|
|
618
|
-
return typeof window < "u";
|
|
619
|
-
}
|
|
620
|
-
function Q(t) {
|
|
621
|
-
return Ot(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
622
|
-
}
|
|
623
|
-
function _(t) {
|
|
624
|
-
var e;
|
|
625
|
-
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
626
|
-
}
|
|
627
|
-
function $(t) {
|
|
628
|
-
var e;
|
|
629
|
-
return (e = (Ot(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
630
|
-
}
|
|
631
|
-
function Ot(t) {
|
|
632
|
-
return mt() ? t instanceof Node || t instanceof _(t).Node : !1;
|
|
633
|
-
}
|
|
634
|
-
function L(t) {
|
|
635
|
-
return mt() ? t instanceof Element || t instanceof _(t).Element : !1;
|
|
636
|
-
}
|
|
637
|
-
function k(t) {
|
|
638
|
-
return mt() ? t instanceof HTMLElement || t instanceof _(t).HTMLElement : !1;
|
|
639
|
-
}
|
|
640
|
-
function Pt(t) {
|
|
641
|
-
return !mt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof _(t).ShadowRoot;
|
|
642
|
-
}
|
|
643
|
-
function lt(t) {
|
|
644
|
-
const {
|
|
645
|
-
overflow: e,
|
|
646
|
-
overflowX: n,
|
|
647
|
-
overflowY: o,
|
|
648
|
-
display: i
|
|
649
|
-
} = C(t);
|
|
650
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(i);
|
|
651
|
-
}
|
|
652
|
-
function be(t) {
|
|
653
|
-
return ["table", "td", "th"].includes(Q(t));
|
|
654
|
-
}
|
|
655
|
-
function pt(t) {
|
|
656
|
-
return [":popover-open", ":modal"].some((e) => {
|
|
657
|
-
try {
|
|
658
|
-
return t.matches(e);
|
|
659
|
-
} catch {
|
|
660
|
-
return !1;
|
|
661
|
-
}
|
|
662
|
-
});
|
|
663
|
-
}
|
|
664
|
-
function At(t) {
|
|
665
|
-
const e = Tt(), n = L(t) ? C(t) : t;
|
|
666
|
-
return ["transform", "translate", "scale", "rotate", "perspective"].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) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
667
|
-
}
|
|
668
|
-
function Oe(t) {
|
|
669
|
-
let e = U(t);
|
|
670
|
-
for (; k(e) && !ot(e); ) {
|
|
671
|
-
if (At(e))
|
|
672
|
-
return e;
|
|
673
|
-
if (pt(e))
|
|
674
|
-
return null;
|
|
675
|
-
e = U(e);
|
|
676
|
-
}
|
|
677
|
-
return null;
|
|
678
|
-
}
|
|
679
|
-
function Tt() {
|
|
680
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
681
|
-
}
|
|
682
|
-
function ot(t) {
|
|
683
|
-
return ["html", "body", "#document"].includes(Q(t));
|
|
684
|
-
}
|
|
685
|
-
function C(t) {
|
|
686
|
-
return _(t).getComputedStyle(t);
|
|
687
|
-
}
|
|
688
|
-
function gt(t) {
|
|
689
|
-
return L(t) ? {
|
|
690
|
-
scrollLeft: t.scrollLeft,
|
|
691
|
-
scrollTop: t.scrollTop
|
|
692
|
-
} : {
|
|
693
|
-
scrollLeft: t.scrollX,
|
|
694
|
-
scrollTop: t.scrollY
|
|
695
|
-
};
|
|
696
|
-
}
|
|
697
|
-
function U(t) {
|
|
698
|
-
if (Q(t) === "html")
|
|
699
|
-
return t;
|
|
700
|
-
const e = (
|
|
701
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
702
|
-
t.assignedSlot || // DOM Element detected.
|
|
703
|
-
t.parentNode || // ShadowRoot detected.
|
|
704
|
-
Pt(t) && t.host || // Fallback.
|
|
705
|
-
$(t)
|
|
706
|
-
);
|
|
707
|
-
return Pt(e) ? e.host : e;
|
|
708
|
-
}
|
|
709
|
-
function It(t) {
|
|
710
|
-
const e = U(t);
|
|
711
|
-
return ot(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : k(e) && lt(e) ? e : It(e);
|
|
712
|
-
}
|
|
713
|
-
function st(t, e, n) {
|
|
714
|
-
var o;
|
|
715
|
-
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
716
|
-
const i = It(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = _(i);
|
|
717
|
-
if (s) {
|
|
718
|
-
const l = vt(r);
|
|
719
|
-
return e.concat(r, r.visualViewport || [], lt(i) ? i : [], l && n ? st(l) : []);
|
|
720
|
-
}
|
|
721
|
-
return e.concat(i, st(i, [], n));
|
|
722
|
-
}
|
|
723
|
-
function vt(t) {
|
|
724
|
-
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
725
|
-
}
|
|
726
|
-
function jt(t) {
|
|
727
|
-
const e = C(t);
|
|
728
|
-
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
729
|
-
const i = k(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, l = at(n) !== s || at(o) !== r;
|
|
730
|
-
return l && (n = s, o = r), {
|
|
731
|
-
width: n,
|
|
732
|
-
height: o,
|
|
733
|
-
$: l
|
|
734
|
-
};
|
|
735
|
-
}
|
|
736
|
-
function Rt(t) {
|
|
737
|
-
return L(t) ? t : t.contextElement;
|
|
738
|
-
}
|
|
739
|
-
function et(t) {
|
|
740
|
-
const e = Rt(t);
|
|
741
|
-
if (!k(e))
|
|
742
|
-
return M(1);
|
|
743
|
-
const n = e.getBoundingClientRect(), {
|
|
744
|
-
width: o,
|
|
745
|
-
height: i,
|
|
746
|
-
$: s
|
|
747
|
-
} = jt(e);
|
|
748
|
-
let r = (s ? at(n.width) : n.width) / o, l = (s ? at(n.height) : n.height) / i;
|
|
749
|
-
return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
750
|
-
x: r,
|
|
751
|
-
y: l
|
|
752
|
-
};
|
|
753
|
-
}
|
|
754
|
-
const Ae = /* @__PURE__ */ M(0);
|
|
755
|
-
function zt(t) {
|
|
756
|
-
const e = _(t);
|
|
757
|
-
return !Tt() || !e.visualViewport ? Ae : {
|
|
758
|
-
x: e.visualViewport.offsetLeft,
|
|
759
|
-
y: e.visualViewport.offsetTop
|
|
760
|
-
};
|
|
761
|
-
}
|
|
762
|
-
function Te(t, e, n) {
|
|
763
|
-
return e === void 0 && (e = !1), !n || e && n !== _(t) ? !1 : e;
|
|
764
|
-
}
|
|
765
|
-
function K(t, e, n, o) {
|
|
766
|
-
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
767
|
-
const i = t.getBoundingClientRect(), s = Rt(t);
|
|
768
|
-
let r = M(1);
|
|
769
|
-
e && (o ? L(o) && (r = et(o)) : r = et(t));
|
|
770
|
-
const l = Te(s, n, o) ? zt(s) : M(0);
|
|
771
|
-
let a = (i.left + l.x) / r.x, c = (i.top + l.y) / r.y, d = i.width / r.x, u = i.height / r.y;
|
|
772
|
-
if (s) {
|
|
773
|
-
const m = _(s), f = o && L(o) ? _(o) : o;
|
|
774
|
-
let p = m, g = vt(p);
|
|
775
|
-
for (; g && o && f !== p; ) {
|
|
776
|
-
const w = et(g), h = g.getBoundingClientRect(), v = C(g), y = h.left + (g.clientLeft + parseFloat(v.paddingLeft)) * w.x, O = h.top + (g.clientTop + parseFloat(v.paddingTop)) * w.y;
|
|
777
|
-
a *= w.x, c *= w.y, d *= w.x, u *= w.y, a += y, c += O, p = _(g), g = vt(p);
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
return dt({
|
|
781
|
-
width: d,
|
|
782
|
-
height: u,
|
|
783
|
-
x: a,
|
|
784
|
-
y: c
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
function St(t, e) {
|
|
788
|
-
const n = gt(t).scrollLeft;
|
|
789
|
-
return e ? e.left + n : K($(t)).left + n;
|
|
790
|
-
}
|
|
791
|
-
function Ut(t, e, n) {
|
|
792
|
-
n === void 0 && (n = !1);
|
|
793
|
-
const o = t.getBoundingClientRect(), i = o.left + e.scrollLeft - (n ? 0 : (
|
|
794
|
-
// RTL <body> scrollbar.
|
|
795
|
-
St(t, o)
|
|
796
|
-
)), s = o.top + e.scrollTop;
|
|
797
|
-
return {
|
|
798
|
-
x: i,
|
|
799
|
-
y: s
|
|
800
|
-
};
|
|
801
|
-
}
|
|
802
|
-
function Re(t) {
|
|
803
|
-
let {
|
|
804
|
-
elements: e,
|
|
805
|
-
rect: n,
|
|
806
|
-
offsetParent: o,
|
|
807
|
-
strategy: i
|
|
808
|
-
} = t;
|
|
809
|
-
const s = i === "fixed", r = $(o), l = e ? pt(e.floating) : !1;
|
|
810
|
-
if (o === r || l && s)
|
|
811
|
-
return n;
|
|
812
|
-
let a = {
|
|
813
|
-
scrollLeft: 0,
|
|
814
|
-
scrollTop: 0
|
|
815
|
-
}, c = M(1);
|
|
816
|
-
const d = M(0), u = k(o);
|
|
817
|
-
if ((u || !u && !s) && ((Q(o) !== "body" || lt(r)) && (a = gt(o)), k(o))) {
|
|
818
|
-
const f = K(o);
|
|
819
|
-
c = et(o), d.x = f.x + o.clientLeft, d.y = f.y + o.clientTop;
|
|
820
|
-
}
|
|
821
|
-
const m = r && !u && !s ? Ut(r, a, !0) : M(0);
|
|
822
|
-
return {
|
|
823
|
-
width: n.width * c.x,
|
|
824
|
-
height: n.height * c.y,
|
|
825
|
-
x: n.x * c.x - a.scrollLeft * c.x + d.x + m.x,
|
|
826
|
-
y: n.y * c.y - a.scrollTop * c.y + d.y + m.y
|
|
827
|
-
};
|
|
828
|
-
}
|
|
829
|
-
function Se(t) {
|
|
830
|
-
return Array.from(t.getClientRects());
|
|
831
|
-
}
|
|
832
|
-
function _e(t) {
|
|
833
|
-
const e = $(t), n = gt(t), o = t.ownerDocument.body, i = G(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = G(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
834
|
-
let r = -n.scrollLeft + St(t);
|
|
835
|
-
const l = -n.scrollTop;
|
|
836
|
-
return C(o).direction === "rtl" && (r += G(e.clientWidth, o.clientWidth) - i), {
|
|
837
|
-
width: i,
|
|
838
|
-
height: s,
|
|
839
|
-
x: r,
|
|
840
|
-
y: l
|
|
841
|
-
};
|
|
842
|
-
}
|
|
843
|
-
function Ee(t, e) {
|
|
844
|
-
const n = _(t), o = $(t), i = n.visualViewport;
|
|
845
|
-
let s = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
|
|
846
|
-
if (i) {
|
|
847
|
-
s = i.width, r = i.height;
|
|
848
|
-
const c = Tt();
|
|
849
|
-
(!c || c && e === "fixed") && (l = i.offsetLeft, a = i.offsetTop);
|
|
850
|
-
}
|
|
851
|
-
return {
|
|
852
|
-
width: s,
|
|
853
|
-
height: r,
|
|
854
|
-
x: l,
|
|
855
|
-
y: a
|
|
856
|
-
};
|
|
857
|
-
}
|
|
858
|
-
function De(t, e) {
|
|
859
|
-
const n = K(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = k(t) ? et(t) : M(1), r = t.clientWidth * s.x, l = t.clientHeight * s.y, a = i * s.x, c = o * s.y;
|
|
860
|
-
return {
|
|
861
|
-
width: r,
|
|
862
|
-
height: l,
|
|
863
|
-
x: a,
|
|
864
|
-
y: c
|
|
865
|
-
};
|
|
866
|
-
}
|
|
867
|
-
function Ft(t, e, n) {
|
|
868
|
-
let o;
|
|
869
|
-
if (e === "viewport")
|
|
870
|
-
o = Ee(t, n);
|
|
871
|
-
else if (e === "document")
|
|
872
|
-
o = _e($(t));
|
|
873
|
-
else if (L(e))
|
|
874
|
-
o = De(e, n);
|
|
875
|
-
else {
|
|
876
|
-
const i = zt(t);
|
|
877
|
-
o = {
|
|
878
|
-
x: e.x - i.x,
|
|
879
|
-
y: e.y - i.y,
|
|
880
|
-
width: e.width,
|
|
881
|
-
height: e.height
|
|
882
|
-
};
|
|
883
|
-
}
|
|
884
|
-
return dt(o);
|
|
885
|
-
}
|
|
886
|
-
function Yt(t, e) {
|
|
887
|
-
const n = U(t);
|
|
888
|
-
return n === e || !L(n) || ot(n) ? !1 : C(n).position === "fixed" || Yt(n, e);
|
|
889
|
-
}
|
|
890
|
-
function Le(t, e) {
|
|
891
|
-
const n = e.get(t);
|
|
892
|
-
if (n)
|
|
893
|
-
return n;
|
|
894
|
-
let o = st(t, [], !1).filter((l) => L(l) && Q(l) !== "body"), i = null;
|
|
895
|
-
const s = C(t).position === "fixed";
|
|
896
|
-
let r = s ? U(t) : t;
|
|
897
|
-
for (; L(r) && !ot(r); ) {
|
|
898
|
-
const l = C(r), a = At(r);
|
|
899
|
-
!a && l.position === "fixed" && (i = null), (s ? !a && !i : !a && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || lt(r) && !a && Yt(t, r)) ? o = o.filter((d) => d !== r) : i = l, r = U(r);
|
|
900
|
-
}
|
|
901
|
-
return e.set(t, o), o;
|
|
902
|
-
}
|
|
903
|
-
function Ce(t) {
|
|
904
|
-
let {
|
|
905
|
-
element: e,
|
|
906
|
-
boundary: n,
|
|
907
|
-
rootBoundary: o,
|
|
908
|
-
strategy: i
|
|
909
|
-
} = t;
|
|
910
|
-
const r = [...n === "clippingAncestors" ? pt(e) ? [] : Le(e, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, d) => {
|
|
911
|
-
const u = Ft(e, d, i);
|
|
912
|
-
return c.top = G(u.top, c.top), c.right = nt(u.right, c.right), c.bottom = nt(u.bottom, c.bottom), c.left = G(u.left, c.left), c;
|
|
913
|
-
}, Ft(e, l, i));
|
|
914
|
-
return {
|
|
915
|
-
width: a.right - a.left,
|
|
916
|
-
height: a.bottom - a.top,
|
|
917
|
-
x: a.left,
|
|
918
|
-
y: a.top
|
|
919
|
-
};
|
|
920
|
-
}
|
|
921
|
-
function Pe(t) {
|
|
922
|
-
const {
|
|
923
|
-
width: e,
|
|
924
|
-
height: n
|
|
925
|
-
} = jt(t);
|
|
926
|
-
return {
|
|
927
|
-
width: e,
|
|
928
|
-
height: n
|
|
929
|
-
};
|
|
930
|
-
}
|
|
931
|
-
function Fe(t, e, n) {
|
|
932
|
-
const o = k(e), i = $(e), s = n === "fixed", r = K(t, !0, s, e);
|
|
933
|
-
let l = {
|
|
934
|
-
scrollLeft: 0,
|
|
935
|
-
scrollTop: 0
|
|
936
|
-
};
|
|
937
|
-
const a = M(0);
|
|
938
|
-
if (o || !o && !s)
|
|
939
|
-
if ((Q(e) !== "body" || lt(i)) && (l = gt(e)), o) {
|
|
940
|
-
const m = K(e, !0, s, e);
|
|
941
|
-
a.x = m.x + e.clientLeft, a.y = m.y + e.clientTop;
|
|
942
|
-
} else i && (a.x = St(i));
|
|
943
|
-
const c = i && !o && !s ? Ut(i, l) : M(0), d = r.left + l.scrollLeft - a.x - c.x, u = r.top + l.scrollTop - a.y - c.y;
|
|
944
|
-
return {
|
|
945
|
-
x: d,
|
|
946
|
-
y: u,
|
|
947
|
-
width: r.width,
|
|
948
|
-
height: r.height
|
|
949
|
-
};
|
|
950
|
-
}
|
|
951
|
-
function ht(t) {
|
|
952
|
-
return C(t).position === "static";
|
|
953
|
-
}
|
|
954
|
-
function Mt(t, e) {
|
|
955
|
-
if (!k(t) || C(t).position === "fixed")
|
|
956
|
-
return null;
|
|
957
|
-
if (e)
|
|
958
|
-
return e(t);
|
|
959
|
-
let n = t.offsetParent;
|
|
960
|
-
return $(t) === n && (n = n.ownerDocument.body), n;
|
|
961
|
-
}
|
|
962
|
-
function qt(t, e) {
|
|
963
|
-
const n = _(t);
|
|
964
|
-
if (pt(t))
|
|
965
|
-
return n;
|
|
966
|
-
if (!k(t)) {
|
|
967
|
-
let i = U(t);
|
|
968
|
-
for (; i && !ot(i); ) {
|
|
969
|
-
if (L(i) && !ht(i))
|
|
970
|
-
return i;
|
|
971
|
-
i = U(i);
|
|
972
|
-
}
|
|
973
|
-
return n;
|
|
974
|
-
}
|
|
975
|
-
let o = Mt(t, e);
|
|
976
|
-
for (; o && be(o) && ht(o); )
|
|
977
|
-
o = Mt(o, e);
|
|
978
|
-
return o && ot(o) && ht(o) && !At(o) ? n : o || Oe(t) || n;
|
|
979
|
-
}
|
|
980
|
-
const Me = async function(t) {
|
|
981
|
-
const e = this.getOffsetParent || qt, n = this.getDimensions, o = await n(t.floating);
|
|
982
|
-
return {
|
|
983
|
-
reference: Fe(t.reference, await e(t.floating), t.strategy),
|
|
984
|
-
floating: {
|
|
985
|
-
x: 0,
|
|
986
|
-
y: 0,
|
|
987
|
-
width: o.width,
|
|
988
|
-
height: o.height
|
|
989
|
-
}
|
|
990
|
-
};
|
|
991
|
-
};
|
|
992
|
-
function Be(t) {
|
|
993
|
-
return C(t).direction === "rtl";
|
|
994
|
-
}
|
|
995
|
-
const ke = {
|
|
996
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: Re,
|
|
997
|
-
getDocumentElement: $,
|
|
998
|
-
getClippingRect: Ce,
|
|
999
|
-
getOffsetParent: qt,
|
|
1000
|
-
getElementRects: Me,
|
|
1001
|
-
getClientRects: Se,
|
|
1002
|
-
getDimensions: Pe,
|
|
1003
|
-
getScale: et,
|
|
1004
|
-
isElement: L,
|
|
1005
|
-
isRTL: Be
|
|
1006
|
-
};
|
|
1007
|
-
function $e(t, e) {
|
|
1008
|
-
let n = null, o;
|
|
1009
|
-
const i = $(t);
|
|
1010
|
-
function s() {
|
|
1011
|
-
var l;
|
|
1012
|
-
clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
|
|
1013
|
-
}
|
|
1014
|
-
function r(l, a) {
|
|
1015
|
-
l === void 0 && (l = !1), a === void 0 && (a = 1), s();
|
|
1016
|
-
const {
|
|
1017
|
-
left: c,
|
|
1018
|
-
top: d,
|
|
1019
|
-
width: u,
|
|
1020
|
-
height: m
|
|
1021
|
-
} = t.getBoundingClientRect();
|
|
1022
|
-
if (l || e(), !u || !m)
|
|
1023
|
-
return;
|
|
1024
|
-
const f = ct(d), p = ct(i.clientWidth - (c + u)), g = ct(i.clientHeight - (d + m)), w = ct(c), v = {
|
|
1025
|
-
rootMargin: -f + "px " + -p + "px " + -g + "px " + -w + "px",
|
|
1026
|
-
threshold: G(0, nt(1, a)) || 1
|
|
1027
|
-
};
|
|
1028
|
-
let y = !0;
|
|
1029
|
-
function O(b) {
|
|
1030
|
-
const T = b[0].intersectionRatio;
|
|
1031
|
-
if (T !== a) {
|
|
1032
|
-
if (!y)
|
|
1033
|
-
return r();
|
|
1034
|
-
T ? r(!1, T) : o = setTimeout(() => {
|
|
1035
|
-
r(!1, 1e-7);
|
|
1036
|
-
}, 1e3);
|
|
1037
|
-
}
|
|
1038
|
-
y = !1;
|
|
1039
|
-
}
|
|
1040
|
-
try {
|
|
1041
|
-
n = new IntersectionObserver(O, {
|
|
1042
|
-
...v,
|
|
1043
|
-
// Handle <iframe>s
|
|
1044
|
-
root: i.ownerDocument
|
|
1045
|
-
});
|
|
1046
|
-
} catch {
|
|
1047
|
-
n = new IntersectionObserver(O, v);
|
|
1048
|
-
}
|
|
1049
|
-
n.observe(t);
|
|
1050
|
-
}
|
|
1051
|
-
return r(!0), s;
|
|
1052
|
-
}
|
|
1053
|
-
function Bt(t, e, n, o) {
|
|
1054
|
-
o === void 0 && (o = {});
|
|
1055
|
-
const {
|
|
1056
|
-
ancestorScroll: i = !0,
|
|
1057
|
-
ancestorResize: s = !0,
|
|
1058
|
-
elementResize: r = typeof ResizeObserver == "function",
|
|
1059
|
-
layoutShift: l = typeof IntersectionObserver == "function",
|
|
1060
|
-
animationFrame: a = !1
|
|
1061
|
-
} = o, c = Rt(t), d = i || s ? [...c ? st(c) : [], ...st(e)] : [];
|
|
1062
|
-
d.forEach((h) => {
|
|
1063
|
-
i && h.addEventListener("scroll", n, {
|
|
1064
|
-
passive: !0
|
|
1065
|
-
}), s && h.addEventListener("resize", n);
|
|
1066
|
-
});
|
|
1067
|
-
const u = c && l ? $e(c, n) : null;
|
|
1068
|
-
let m = -1, f = null;
|
|
1069
|
-
r && (f = new ResizeObserver((h) => {
|
|
1070
|
-
let [v] = h;
|
|
1071
|
-
v && v.target === c && f && (f.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
1072
|
-
var y;
|
|
1073
|
-
(y = f) == null || y.observe(e);
|
|
1074
|
-
})), n();
|
|
1075
|
-
}), c && !a && f.observe(c), f.observe(e));
|
|
1076
|
-
let p, g = a ? K(t) : null;
|
|
1077
|
-
a && w();
|
|
1078
|
-
function w() {
|
|
1079
|
-
const h = K(t);
|
|
1080
|
-
g && (h.x !== g.x || h.y !== g.y || h.width !== g.width || h.height !== g.height) && n(), g = h, p = requestAnimationFrame(w);
|
|
1081
|
-
}
|
|
1082
|
-
return n(), () => {
|
|
1083
|
-
var h;
|
|
1084
|
-
d.forEach((v) => {
|
|
1085
|
-
i && v.removeEventListener("scroll", n), s && v.removeEventListener("resize", n);
|
|
1086
|
-
}), u == null || u(), (h = f) == null || h.disconnect(), f = null, a && cancelAnimationFrame(p);
|
|
1087
|
-
};
|
|
1088
|
-
}
|
|
1089
|
-
const He = ye, Ne = ge, We = xe, Ve = he, sn = we, Ie = me, je = (t, e, n) => {
|
|
1090
|
-
const o = /* @__PURE__ */ new Map(), i = {
|
|
1091
|
-
platform: ke,
|
|
1092
|
-
...n
|
|
1093
|
-
}, s = {
|
|
1094
|
-
...i.platform,
|
|
1095
|
-
_c: o
|
|
1096
|
-
};
|
|
1097
|
-
return de(t, e, {
|
|
1098
|
-
...i,
|
|
1099
|
-
platform: s
|
|
1100
|
-
});
|
|
1101
|
-
};
|
|
1102
|
-
function ze(t) {
|
|
1103
|
-
return t != null && typeof t == "object" && "$el" in t;
|
|
1104
|
-
}
|
|
1105
|
-
function yt(t) {
|
|
1106
|
-
if (ze(t)) {
|
|
1107
|
-
const e = t.$el;
|
|
1108
|
-
return Ot(e) && Q(e) === "#comment" ? null : e;
|
|
1109
|
-
}
|
|
1110
|
-
return t;
|
|
1111
|
-
}
|
|
1112
|
-
function Ue(t) {
|
|
1113
|
-
return {
|
|
1114
|
-
name: "arrow",
|
|
1115
|
-
options: t,
|
|
1116
|
-
fn(e) {
|
|
1117
|
-
const n = yt(tt(t.element));
|
|
1118
|
-
return n == null ? {} : Ie({
|
|
1119
|
-
element: n,
|
|
1120
|
-
padding: t.padding
|
|
1121
|
-
}).fn(e);
|
|
1122
|
-
}
|
|
1123
|
-
};
|
|
1124
|
-
}
|
|
1125
|
-
function Gt(t) {
|
|
1126
|
-
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1127
|
-
}
|
|
1128
|
-
function kt(t, e) {
|
|
1129
|
-
const n = Gt(t);
|
|
1130
|
-
return Math.round(e * n) / n;
|
|
1131
|
-
}
|
|
1132
|
-
function Ye(t, e, n) {
|
|
1133
|
-
n === void 0 && (n = {});
|
|
1134
|
-
const o = n.whileElementsMounted, i = R(() => {
|
|
1135
|
-
var x;
|
|
1136
|
-
return (x = tt(n.open)) != null ? x : !0;
|
|
1137
|
-
}), s = R(() => tt(n.middleware)), r = R(() => {
|
|
1138
|
-
var x;
|
|
1139
|
-
return (x = tt(n.placement)) != null ? x : "bottom";
|
|
1140
|
-
}), l = R(() => {
|
|
1141
|
-
var x;
|
|
1142
|
-
return (x = tt(n.strategy)) != null ? x : "absolute";
|
|
1143
|
-
}), a = R(() => {
|
|
1144
|
-
var x;
|
|
1145
|
-
return (x = tt(n.transform)) != null ? x : !0;
|
|
1146
|
-
}), c = R(() => yt(t.value)), d = R(() => yt(e.value)), u = z(0), m = z(0), f = z(l.value), p = z(r.value), g = Zt({}), w = z(!1), h = R(() => {
|
|
1147
|
-
const x = {
|
|
1148
|
-
position: f.value,
|
|
1149
|
-
left: "0",
|
|
1150
|
-
top: "0"
|
|
1151
|
-
};
|
|
1152
|
-
if (!d.value)
|
|
1153
|
-
return x;
|
|
1154
|
-
const H = kt(d.value, u.value), S = kt(d.value, m.value);
|
|
1155
|
-
return a.value ? {
|
|
1156
|
-
...x,
|
|
1157
|
-
transform: "translate(" + H + "px, " + S + "px)",
|
|
1158
|
-
...Gt(d.value) >= 1.5 && {
|
|
1159
|
-
willChange: "transform"
|
|
1160
|
-
}
|
|
1161
|
-
} : {
|
|
1162
|
-
position: f.value,
|
|
1163
|
-
left: H + "px",
|
|
1164
|
-
top: S + "px"
|
|
1165
|
-
};
|
|
1166
|
-
});
|
|
1167
|
-
let v;
|
|
1168
|
-
function y() {
|
|
1169
|
-
c.value == null || d.value == null || je(c.value, d.value, {
|
|
1170
|
-
middleware: s.value,
|
|
1171
|
-
placement: r.value,
|
|
1172
|
-
strategy: l.value
|
|
1173
|
-
}).then((x) => {
|
|
1174
|
-
u.value = x.x, m.value = x.y, f.value = x.strategy, p.value = x.placement, g.value = x.middlewareData, w.value = !0;
|
|
1175
|
-
});
|
|
1176
|
-
}
|
|
1177
|
-
function O() {
|
|
1178
|
-
typeof v == "function" && (v(), v = void 0);
|
|
1179
|
-
}
|
|
1180
|
-
function b() {
|
|
1181
|
-
if (O(), o === void 0) {
|
|
1182
|
-
y();
|
|
1183
|
-
return;
|
|
1184
|
-
}
|
|
1185
|
-
if (c.value != null && d.value != null) {
|
|
1186
|
-
v = o(c.value, d.value, y);
|
|
1187
|
-
return;
|
|
1188
|
-
}
|
|
1189
|
-
}
|
|
1190
|
-
function T() {
|
|
1191
|
-
i.value || (w.value = !1);
|
|
1192
|
-
}
|
|
1193
|
-
return it([s, r, l], y, {
|
|
1194
|
-
flush: "sync"
|
|
1195
|
-
}), it([c, d], b, {
|
|
1196
|
-
flush: "sync"
|
|
1197
|
-
}), it(i, T, {
|
|
1198
|
-
flush: "sync"
|
|
1199
|
-
}), te() && ee(O), {
|
|
1200
|
-
x: Z(u),
|
|
1201
|
-
y: Z(m),
|
|
1202
|
-
strategy: Z(f),
|
|
1203
|
-
placement: Z(p),
|
|
1204
|
-
middlewareData: Z(g),
|
|
1205
|
-
isPositioned: Z(w),
|
|
1206
|
-
floatingStyles: h,
|
|
1207
|
-
update: y
|
|
1208
|
-
};
|
|
1209
|
-
}
|
|
1210
|
-
var Xt = /* @__PURE__ */ ((t) => (t.TOP = "top", t.RIGHT = "right", t.BOTTOM = "bottom", t.LEFT = "left", t))(Xt || {}), Kt = /* @__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))(Kt || {}), Jt = /* @__PURE__ */ ((t) => (t.TOOLTIP = "tooltip", t.POPOVER = "dialog", t))(Jt || {});
|
|
1211
|
-
const $t = { ...Xt, ...Kt }, qe = (t, e) => t ? e[1] + 7 : e[1], Ge = (t) => {
|
|
1212
|
-
let e = Array.isArray(t) ? t : [t];
|
|
1213
|
-
return e = e.filter((n) => n !== "auto" && n !== "auto-start" && n !== "auto-end").map((n) => n), {
|
|
1214
|
-
fallbackPlacements: e
|
|
1215
|
-
};
|
|
1216
|
-
}, Xe = {
|
|
1217
|
-
name: "sameWidth",
|
|
1218
|
-
fn: ({ elements: t }) => (t.floating.style.width = `${t.reference.offsetWidth}px`, {})
|
|
1219
|
-
}, Ke = {}, Je = /* @__PURE__ */ ne({
|
|
1220
|
-
...Ke,
|
|
1221
|
-
__name: "popper-container",
|
|
1222
|
-
props: {
|
|
1223
|
-
/**
|
|
1224
|
-
* The aria role assigned to the container. Defaults to null, which means it's not set if nothing is passed.
|
|
1225
|
-
*/
|
|
1226
|
-
ariaRole: {
|
|
1227
|
-
type: String,
|
|
1228
|
-
default: null,
|
|
1229
|
-
validator: (t) => Object.values(Jt).includes(t)
|
|
1230
|
-
},
|
|
1231
|
-
/**
|
|
1232
|
-
* Indicates if container should have additional arrow, pointing at target element
|
|
1233
|
-
* Can be just a boolean flag, or an object with additional configuration:
|
|
1234
|
-
* @property {Array<string>} arrow.classes – apply any additional classes to the arrow element.
|
|
1235
|
-
* @property {string} arrow.padding – useful when content has rounded corners, @see {@link https://floating-ui.com/docs/arrow#padding}
|
|
1236
|
-
*/
|
|
1237
|
-
arrow: { type: Object, default: void 0 },
|
|
1238
|
-
/**
|
|
1239
|
-
* Disables wrapping focus-trap component.
|
|
1240
|
-
* Mostly useful for the storybook demo.
|
|
1241
|
-
*/
|
|
1242
|
-
disabledFocusTrap: { type: Boolean, default: !1 },
|
|
1243
|
-
/**
|
|
1244
|
-
* Allows to configure to fallback position to the one specified, it could be 'auto' or ['right', 'top', ...].
|
|
1245
|
-
* Useful when not using auto as starting placement.
|
|
1246
|
-
* @see {@link https://floating-ui.com/docs/flip#fallbackplacements}
|
|
1247
|
-
*/
|
|
1248
|
-
fallbackPosition: {
|
|
1249
|
-
type: [Array, String],
|
|
1250
|
-
default: null
|
|
1251
|
-
},
|
|
1252
|
-
/**
|
|
1253
|
-
* Instructs popover to be visible outside of the containing container.
|
|
1254
|
-
* Useful when component would be used in limited containers like Modal, Side panel, etc.
|
|
1255
|
-
* @see {@link https://floating-ui.com/docs/usefloating#strategy}
|
|
1256
|
-
*/
|
|
1257
|
-
fixedPositioning: { type: Boolean, default: !1 },
|
|
1258
|
-
/**
|
|
1259
|
-
* The id to be set on the component. Use it for accessibility purposes.
|
|
1260
|
-
*/
|
|
1261
|
-
id: { type: String, default: null },
|
|
1262
|
-
/**
|
|
1263
|
-
* If hiding / showing popper element then use this property to tell the popper when to update it's position.
|
|
1264
|
-
* This will drastically help improve performance, as we will not need to track hidden elements.
|
|
1265
|
-
*/
|
|
1266
|
-
isHidden: { type: Boolean, default: null },
|
|
1267
|
-
/**
|
|
1268
|
-
* Instructs popper container to have the same width as target element.
|
|
1269
|
-
*/
|
|
1270
|
-
matchWidth: { type: Boolean, default: !1 },
|
|
1271
|
-
/**
|
|
1272
|
-
* Custom set of middleware. Useful for low-level control over Popper behavior in some really complex use cases.
|
|
1273
|
-
* @see {@link https://floating-ui.com/docs/middleware}
|
|
1274
|
-
*/
|
|
1275
|
-
middleware: { type: Array, default: null },
|
|
1276
|
-
/**
|
|
1277
|
-
* Allows to displace a popper container from its target element.
|
|
1278
|
-
* @see {@link https://floating-ui.com/docs/offset#options}
|
|
1279
|
-
*/
|
|
1280
|
-
offset: {
|
|
1281
|
-
type: Array,
|
|
1282
|
-
default: () => [0, 0],
|
|
1283
|
-
validator: (t) => (t == null ? void 0 : t.length) === 2
|
|
1284
|
-
},
|
|
1285
|
-
/**
|
|
1286
|
-
* Position relative to the target element
|
|
1287
|
-
* @see {@link https://floating-ui.com/docs/computeposition#placement}
|
|
1288
|
-
*/
|
|
1289
|
-
position: {
|
|
1290
|
-
type: String,
|
|
1291
|
-
default: $t.AUTO,
|
|
1292
|
-
validator: (t) => Object.values($t).includes(t)
|
|
1293
|
-
},
|
|
1294
|
-
/**
|
|
1295
|
-
* Reference to the DOM element or Vue component for positioning
|
|
1296
|
-
*/
|
|
1297
|
-
targetElement: { type: [Element, Object], required: !0 },
|
|
1298
|
-
/**
|
|
1299
|
-
* Activates focus trap for both arrow and tab keys.
|
|
1300
|
-
*/
|
|
1301
|
-
trapAll: { type: Boolean, default: !1 },
|
|
1302
|
-
/**
|
|
1303
|
-
* Configurations for the focus-trap when trap-all is active.
|
|
1304
|
-
*/
|
|
1305
|
-
trapAllOptions: {
|
|
1306
|
-
type: Object,
|
|
1307
|
-
default: void 0
|
|
1308
|
-
}
|
|
1309
|
-
},
|
|
1310
|
-
emits: ["placement"],
|
|
1311
|
-
setup(t, { emit: e }) {
|
|
1312
|
-
var y;
|
|
1313
|
-
const n = t, { position: o } = oe(n), i = z(), s = z(null), r = z(n.position), l = R(
|
|
1314
|
-
() => n.targetElement.$el ? n.targetElement.$el : n.targetElement
|
|
1315
|
-
), a = R(
|
|
1316
|
-
() => i.value.$el ? i.value.$el : i.value
|
|
1317
|
-
), c = R(() => (n == null ? void 0 : n.position) !== "auto" && (n == null ? void 0 : n.fallbackPosition) !== "auto"), d = R(() => {
|
|
1318
|
-
switch (n.position) {
|
|
1319
|
-
case "auto-start":
|
|
1320
|
-
return { alignment: "start", crossAxis: !0 };
|
|
1321
|
-
case "auto-end":
|
|
1322
|
-
return { alignment: "end", crossAxis: !0 };
|
|
1323
|
-
default:
|
|
1324
|
-
return;
|
|
1325
|
-
}
|
|
1326
|
-
}), u = R(() => n.fixedPositioning ? "fixed" : "absolute"), { floatingStyles: m, middlewareData: f, placement: p, update: g } = Ye(l, i, {
|
|
1327
|
-
placement: o,
|
|
1328
|
-
middleware: [
|
|
1329
|
-
// Adds flip modifier if fallbackPosition is not set to auto
|
|
1330
|
-
...c.value ? [
|
|
1331
|
-
Ve({
|
|
1332
|
-
fallbackPlacements: Ge(n.fallbackPosition).fallbackPlacements
|
|
1333
|
-
})
|
|
1334
|
-
] : [],
|
|
1335
|
-
// Adds autoposition middlelare if position is set to any auto variants
|
|
1336
|
-
...c.value ? [] : [Ne(d.value)],
|
|
1337
|
-
// Add shifting middle in case popper is still not fully visible in view port
|
|
1338
|
-
We(),
|
|
1339
|
-
// Adds offset middlelare if offset property is set
|
|
1340
|
-
...n.offset ? [He(qe(n.arrow, n.offset))] : [],
|
|
1341
|
-
// Adds arrow middlelare if arrow property is set, can set additional padding property
|
|
1342
|
-
...n.arrow ? [Ue({ element: s, padding: n.arrow.padding || 0 })] : [],
|
|
1343
|
-
// Adds same width middleware to keep popper width same as referenced element's width
|
|
1344
|
-
...n.matchWidth ? [Xe] : [],
|
|
1345
|
-
// If there is additional custom middleware to add via the property then add it
|
|
1346
|
-
...((y = n.middleware) == null ? void 0 : y.length) > 0 ? n.middleware : []
|
|
1347
|
-
],
|
|
1348
|
-
strategy: u,
|
|
1349
|
-
// If we're mounting the element with a `v-if` then we need to auto update it while it's mounted
|
|
1350
|
-
...n.isHidden === null ? { whileElementsMounted: Bt } : []
|
|
1351
|
-
});
|
|
1352
|
-
let w;
|
|
1353
|
-
it(
|
|
1354
|
-
() => n.isHidden,
|
|
1355
|
-
() => {
|
|
1356
|
-
n.isHidden !== null && !n.isHidden ? w = Bt(l == null ? void 0 : l.value, a == null ? void 0 : a.value, g) : n.isHidden !== null && n.isHidden && typeof w == "function" && w();
|
|
1357
|
-
}
|
|
1358
|
-
), it(
|
|
1359
|
-
() => p.value,
|
|
1360
|
-
() => {
|
|
1361
|
-
r.value !== p.value && (r.value = p.value, e("placement", r.value));
|
|
1362
|
-
}
|
|
1363
|
-
);
|
|
1364
|
-
const h = R(() => {
|
|
1365
|
-
var O, b;
|
|
1366
|
-
return {
|
|
1367
|
-
position: "absolute",
|
|
1368
|
-
left: ((O = f.value.arrow) == null ? void 0 : O.x) != null ? `${f.value.arrow.x}px` : "",
|
|
1369
|
-
top: ((b = f.value.arrow) == null ? void 0 : b.y) != null ? `${f.value.arrow.y}px` : ""
|
|
1370
|
-
};
|
|
1371
|
-
}), v = R(() => {
|
|
1372
|
-
var O;
|
|
1373
|
-
return {
|
|
1374
|
-
class: n.arrow.classes,
|
|
1375
|
-
style: h.value,
|
|
1376
|
-
// Applies a data-hide attribute to arrow element depending on center offset.
|
|
1377
|
-
...((O = f.value.arrow) == null ? void 0 : O.centerOffset) !== 0 ? { "data-hide": "" } : {}
|
|
1378
|
-
};
|
|
1379
|
-
});
|
|
1380
|
-
return { __sfc: !0, props: n, emit: e, position: o, popperContainerRef: i, floatingArrow: s, emittedPosition: r, targetElement: l, popperContainerElement: a, isFlipMiddleware: c, getAutoPlacementProps: d, strategy: u, floatingStyles: m, middlewareData: f, placement: p, update: g, cleanupAutoUpdate: w, arrowStyles: h, arrowAttributes: v, BentoFocusTrap: ie };
|
|
1381
|
-
}
|
|
1382
|
-
});
|
|
1383
|
-
var Qe = function() {
|
|
1384
|
-
var e = this, n = e._self._c, o = e._self._setupProxy;
|
|
1385
|
-
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);
|
|
1386
|
-
}, Ze = [], tn = /* @__PURE__ */ re(
|
|
1387
|
-
Je,
|
|
1388
|
-
Qe,
|
|
1389
|
-
Ze,
|
|
1390
|
-
!1,
|
|
1391
|
-
null,
|
|
1392
|
-
"13de0429"
|
|
1393
|
-
);
|
|
1394
|
-
const ln = tn.exports;
|
|
1395
|
-
export {
|
|
1396
|
-
ln as P,
|
|
1397
|
-
Xt as a,
|
|
1398
|
-
Kt as b,
|
|
1399
|
-
Jt as c,
|
|
1400
|
-
$t as d,
|
|
1401
|
-
sn as h,
|
|
1402
|
-
He as o
|
|
1403
|
-
};
|
|
1404
|
-
//# sourceMappingURL=popper-container.Cdokz_NE.js.map
|