@adyen/bento-vue2 1.100.1 → 1.101.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 +2 -0
- package/dist/@types/index.d.ts +145 -15
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/anchor-scroller.css +1 -1
- 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/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/navigation-menu-group.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/table-of-contents.css +1 -0
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.DxZchfve.js → action-bar.C2ybt5w2.js} +32 -19
- package/dist/chunks/{action-bar.DxZchfve.js.map → action-bar.C2ybt5w2.js.map} +1 -1
- package/dist/chunks/{ai-tag.CD1eQnr_.js → ai-tag.DcQ6Gb-K.js} +15 -11
- package/dist/chunks/{ai-tag.CD1eQnr_.js.map → ai-tag.DcQ6Gb-K.js.map} +1 -1
- package/dist/chunks/anchor-scroller.BjagnSrr.js +138 -0
- package/dist/chunks/anchor-scroller.BjagnSrr.js.map +1 -0
- package/dist/chunks/{base-modal.BbMTTAi5.js → base-modal.DVE-ERAq.js} +5 -5
- package/dist/chunks/{base-modal.BbMTTAi5.js.map → base-modal.DVE-ERAq.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.CpqyoKG5.js → button-actions-with-menu.D0gfA7NK.js} +8 -8
- package/dist/chunks/{button-actions-with-menu.CpqyoKG5.js.map → button-actions-with-menu.D0gfA7NK.js.map} +1 -1
- package/dist/chunks/{button-actions.Dxez8SNL.js → button-actions.IzFrNFdl.js} +2 -2
- package/dist/chunks/{button-actions.Dxez8SNL.js.map → button-actions.IzFrNFdl.js.map} +1 -1
- package/dist/chunks/{calendar.CuGedgRq.js → calendar.C1er_WEQ.js} +3 -3
- package/dist/chunks/{calendar.CuGedgRq.js.map → calendar.C1er_WEQ.js.map} +1 -1
- package/dist/chunks/{card.BzDmgKjO.js → card.CrlT9cUZ.js} +2 -2
- package/dist/chunks/{card.BzDmgKjO.js.map → card.CrlT9cUZ.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BpGBZsvv.js → checkbox-group.DB_jfkk7.js} +3 -3
- package/dist/chunks/{checkbox-group.BpGBZsvv.js.map → checkbox-group.DB_jfkk7.js.map} +1 -1
- package/dist/chunks/{checkbox.G0GNZZ9K.js → checkbox.h0N7IHm8.js} +18 -18
- package/dist/chunks/{checkbox.G0GNZZ9K.js.map → checkbox.h0N7IHm8.js.map} +1 -1
- package/dist/chunks/{code-snippet.dvAB8CG2.js → code-snippet.kMt5cWoQ.js} +4 -4
- package/dist/chunks/{code-snippet.dvAB8CG2.js.map → code-snippet.kMt5cWoQ.js.map} +1 -1
- package/dist/chunks/{controls-group.BWzCb_GU.js → controls-group.CY_OeZWj.js} +2 -2
- package/dist/chunks/{controls-group.BWzCb_GU.js.map → controls-group.CY_OeZWj.js.map} +1 -1
- package/dist/chunks/{copy.DSFXER-x.js → copy.BZsYGReo.js} +3 -3
- package/dist/chunks/{copy.DSFXER-x.js.map → copy.BZsYGReo.js.map} +1 -1
- package/dist/chunks/{country.nGZJwp_A.js → country.DySY9sbA.js} +3 -3
- package/dist/chunks/{country.nGZJwp_A.js.map → country.DySY9sbA.js.map} +1 -1
- package/dist/chunks/{country.types.jjXwaoMl.js → country.types.8GCHsdGN.js} +264 -12
- package/dist/chunks/{country.types.jjXwaoMl.js.map → country.types.8GCHsdGN.js.map} +1 -1
- package/dist/chunks/{dashboard-section.BtqE_6Zy.js → dashboard-section.C0am_Mg0.js} +4 -4
- package/dist/chunks/{dashboard-section.BtqE_6Zy.js.map → dashboard-section.C0am_Mg0.js.map} +1 -1
- package/dist/chunks/{dashed-underline.Cl158pHL.js → dashed-underline.DsLL0ngM.js} +4 -4
- package/dist/chunks/{dashed-underline.Cl158pHL.js.map → dashed-underline.DsLL0ngM.js.map} +1 -1
- package/dist/chunks/{data-grid-template.yOSdF4nN.js → data-grid-template.CdUOgyY7.js} +4 -4
- package/dist/chunks/{data-grid-template.yOSdF4nN.js.map → data-grid-template.CdUOgyY7.js.map} +1 -1
- package/dist/chunks/{data-grid.BpitDm6u.js → data-grid.Bf6zUdyX.js} +457 -397
- package/dist/chunks/{data-grid.BpitDm6u.js.map → data-grid.Bf6zUdyX.js.map} +1 -1
- package/dist/chunks/{date-picker.BTwRnmEE.js → date-picker.BBepKUgO.js} +21 -14
- package/dist/chunks/{date-picker.BTwRnmEE.js.map → date-picker.BBepKUgO.js.map} +1 -1
- package/dist/chunks/{date-range-picker.BcDYTeav.js → date-range-picker.D0uLCflx.js} +333 -299
- package/dist/chunks/{date-range-picker.BcDYTeav.js.map → date-range-picker.D0uLCflx.js.map} +1 -1
- package/dist/chunks/{date-time-picker.Bt0DDn-2.js → date-time-picker.BhN_QfHz.js} +33 -26
- package/dist/chunks/{date-time-picker.Bt0DDn-2.js.map → date-time-picker.BhN_QfHz.js.map} +1 -1
- package/dist/chunks/{dialog-page.D_m11exR.js → dialog-page.DmFgW2fj.js} +10 -10
- package/dist/chunks/{dialog-page.D_m11exR.js.map → dialog-page.DmFgW2fj.js.map} +1 -1
- package/dist/chunks/{draggable-handle.BDUQTWrd.js → draggable-handle.CDqrZT_S.js} +455 -446
- package/dist/chunks/{draggable-handle.BDUQTWrd.js.map → draggable-handle.CDqrZT_S.js.map} +1 -1
- package/dist/chunks/{draggable.Jqy1iXq_.js → draggable.Nb5vnT8m.js} +10 -10
- package/dist/chunks/{draggable.Jqy1iXq_.js.map → draggable.Nb5vnT8m.js.map} +1 -1
- package/dist/chunks/{drawer.BuCNjIKQ.js → drawer.BNNqjUfa.js} +5 -5
- package/dist/chunks/{drawer.BuCNjIKQ.js.map → drawer.BNNqjUfa.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.pcDELtyg.js → dropdown-tag.kif6bX9j.js} +5 -5
- package/dist/chunks/{dropdown-tag.pcDELtyg.js.map → dropdown-tag.kif6bX9j.js.map} +1 -1
- package/dist/chunks/{dropdown.C0k4Mkmd.js → dropdown.CNeiCIX1.js} +1270 -1088
- package/dist/chunks/dropdown.CNeiCIX1.js.map +1 -0
- package/dist/chunks/{field-label.CkMM3cXO.js → field-label.BK492U-5.js} +2 -2
- package/dist/chunks/{field-label.CkMM3cXO.js.map → field-label.BK492U-5.js.map} +1 -1
- package/dist/chunks/{file-uploader.C1GuWVEI.js → file-uploader.BfYeFveb.js} +178 -149
- package/dist/chunks/{file-uploader.C1GuWVEI.js.map → file-uploader.BfYeFveb.js.map} +1 -1
- package/dist/chunks/{filter-bar.uUFaDsK3.js → filter-bar.8e-FTGtC.js} +34 -17
- package/dist/chunks/{filter-bar.uUFaDsK3.js.map → filter-bar.8e-FTGtC.js.map} +1 -1
- package/dist/chunks/{focus-trap.CUZQ1kQD.js → focus-trap.Bu-ikp7k.js} +22 -22
- package/dist/chunks/{focus-trap.CUZQ1kQD.js.map → focus-trap.Bu-ikp7k.js.map} +1 -1
- package/dist/chunks/{footer-actions.BB94G3iB.js → footer-actions.Dd7P41be.js} +2 -2
- package/dist/chunks/{footer-actions.BB94G3iB.js.map → footer-actions.Dd7P41be.js.map} +1 -1
- package/dist/chunks/{header-meta.Bq8moJ6A.js → header-meta.fpJBnhvY.js} +4 -4
- package/dist/chunks/{header-meta.Bq8moJ6A.js.map → header-meta.fpJBnhvY.js.map} +1 -1
- package/dist/chunks/{header-with-views.F1_U1yrc.js → header-with-views.CK2y86LY.js} +312 -267
- package/dist/chunks/{header-with-views.F1_U1yrc.js.map → header-with-views.CK2y86LY.js.map} +1 -1
- package/dist/chunks/{header.C8dI-yo1.js → header.BX5Tzbwf.js} +3 -3
- package/dist/chunks/{header.C8dI-yo1.js.map → header.BX5Tzbwf.js.map} +1 -1
- package/dist/chunks/index.v5OGTDYQ.js +685 -0
- package/dist/chunks/{index.BPUMyryR.js.map → index.v5OGTDYQ.js.map} +1 -1
- package/dist/chunks/{info-icon.ZVQsMymB.js → info-icon.W_lLmt4_.js} +3 -3
- package/dist/chunks/{info-icon.ZVQsMymB.js.map → info-icon.W_lLmt4_.js.map} +1 -1
- package/dist/chunks/{input-field-password.Dz856XUp.js → input-field-password.Bd0EP9aP.js} +67 -52
- package/dist/chunks/{input-field-password.Dz856XUp.js.map → input-field-password.Bd0EP9aP.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.TxUJwMmR.js → input-field-phone-number.DU6PcBhh.js} +3 -3
- package/dist/chunks/{input-field-phone-number.TxUJwMmR.js.map → input-field-phone-number.DU6PcBhh.js.map} +1 -1
- package/dist/chunks/{input-field.DCPT-CRs.js → input-field.da7JJxbN.js} +3 -3
- package/dist/chunks/{input-field.DCPT-CRs.js.map → input-field.da7JJxbN.js.map} +1 -1
- package/dist/chunks/{input-time.iiPk0s3u.js → input-time.DRgOtk85.js} +3 -3
- package/dist/chunks/{input-time.iiPk0s3u.js.map → input-time.DRgOtk85.js.map} +1 -1
- package/dist/chunks/{inspector.Cas-Z-VC.js → inspector.Cp6Er3Ms.js} +19 -12
- package/dist/chunks/{inspector.Cas-Z-VC.js.map → inspector.Cp6Er3Ms.js.map} +1 -1
- package/dist/chunks/{layout-row.CTBhpBUq.js → layout-row.BJauMQF5.js} +2 -2
- package/dist/chunks/{layout-row.CTBhpBUq.js.map → layout-row.BJauMQF5.js.map} +1 -1
- package/dist/chunks/{list-item.Cf3IFDnG.js → list-item.ueytfaOM.js} +28 -28
- package/dist/chunks/{list-item.Cf3IFDnG.js.map → list-item.ueytfaOM.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.BFW39wpD.js → listbox-option-tag.1fFyp2M_.js} +2 -2
- package/dist/chunks/{listbox-option-tag.BFW39wpD.js.map → listbox-option-tag.1fFyp2M_.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.B1iYD7lc.js → modal-fullscreen.p_FV_vXG.js} +4 -4
- package/dist/chunks/{modal-fullscreen.B1iYD7lc.js.map → modal-fullscreen.p_FV_vXG.js.map} +1 -1
- package/dist/chunks/{modal.Cp2cNQbD.js → modal.DgeYMVDb.js} +4 -4
- package/dist/chunks/{modal.Cp2cNQbD.js.map → modal.DgeYMVDb.js.map} +1 -1
- package/dist/chunks/{navigation-menu-group.Dvs0wWHC.js → navigation-menu-group.BCYHB3Mu.js} +3 -3
- package/dist/chunks/{navigation-menu-group.Dvs0wWHC.js.map → navigation-menu-group.BCYHB3Mu.js.map} +1 -1
- package/dist/chunks/{pagination.-DeOPaif.js → pagination.CdI10wgA.js} +2 -2
- package/dist/chunks/{pagination.-DeOPaif.js.map → pagination.CdI10wgA.js.map} +1 -1
- package/dist/chunks/popover.types.BlDGQMDh.js +6 -0
- package/dist/chunks/{popover.types.ZXsQ9bA6.js.map → popover.types.BlDGQMDh.js.map} +1 -1
- package/dist/chunks/{popper-container.dxpRn9a5.js → popper-container.CupcVcH4.js} +2 -2
- package/dist/chunks/{popper-container.dxpRn9a5.js.map → popper-container.CupcVcH4.js.map} +1 -1
- package/dist/chunks/{promo-banner.eVbU1xqj.js → promo-banner.BSM_p36y.js} +2 -2
- package/dist/chunks/{promo-banner.eVbU1xqj.js.map → promo-banner.BSM_p36y.js.map} +1 -1
- package/dist/chunks/{radio-group.D5fpHqkP.js → radio-group.Pt5G8AsM.js} +3 -3
- package/dist/chunks/{radio-group.D5fpHqkP.js.map → radio-group.Pt5G8AsM.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DFYV7H5M.js → rich-text-editor.DAV5dgA-.js} +115 -109
- package/dist/chunks/{rich-text-editor.DFYV7H5M.js.map → rich-text-editor.DAV5dgA-.js.map} +1 -1
- package/dist/chunks/scroll-to-section.MPzOkzfL.js +111 -0
- package/dist/chunks/scroll-to-section.MPzOkzfL.js.map +1 -0
- package/dist/chunks/{search-bar.BoMt-y2O.js → search-bar.B_fGqmSD.js} +3 -3
- package/dist/chunks/{search-bar.BoMt-y2O.js.map → search-bar.B_fGqmSD.js.map} +1 -1
- package/dist/chunks/{secondary-nav.BjOKDyzy.js → secondary-nav.Bi1KX8SE.js} +4 -4
- package/dist/chunks/{secondary-nav.BjOKDyzy.js.map → secondary-nav.Bi1KX8SE.js.map} +1 -1
- package/dist/chunks/{segmented-control.BOyYIUEp.js → segmented-control.DbsLdnFw.js} +2 -2
- package/dist/chunks/{segmented-control.BOyYIUEp.js.map → segmented-control.DbsLdnFw.js.map} +1 -1
- package/dist/chunks/{selection-card-group.BNoKeTnh.js → selection-card-group.CLK_QWBz.js} +10 -10
- package/dist/chunks/{selection-card-group.BNoKeTnh.js.map → selection-card-group.CLK_QWBz.js.map} +1 -1
- package/dist/chunks/{sidepanel.CUqjE_-9.js → sidepanel.BMqSdvei.js} +5 -5
- package/dist/chunks/{sidepanel.CUqjE_-9.js.map → sidepanel.BMqSdvei.js.map} +1 -1
- package/dist/chunks/{structured-list-item.jO4KtMuc.js → structured-list-item.BGJkRWzZ.js} +4 -4
- package/dist/chunks/{structured-list-item.jO4KtMuc.js.map → structured-list-item.BGJkRWzZ.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.BsjF5xAH.js → summary-grid.types.DoqqC0Oh.js} +5 -5
- package/dist/chunks/{summary-grid.types.BsjF5xAH.js.map → summary-grid.types.DoqqC0Oh.js.map} +1 -1
- package/dist/chunks/{tab.qhcMgSD1.js → tab.Czc7MNHi.js} +2 -2
- package/dist/chunks/{tab.qhcMgSD1.js.map → tab.Czc7MNHi.js.map} +1 -1
- package/dist/chunks/table-of-contents.qdVwRFSZ.js +102 -0
- package/dist/chunks/table-of-contents.qdVwRFSZ.js.map +1 -0
- package/dist/chunks/{tag.XeZzHnx_.js → tag.iASz63QF.js} +2 -2
- package/dist/chunks/{tag.XeZzHnx_.js.map → tag.iASz63QF.js.map} +1 -1
- package/dist/chunks/{textarea.BOQbOPm4.js → textarea.CF6TlSCO.js} +2 -2
- package/dist/chunks/{textarea.BOQbOPm4.js.map → textarea.CF6TlSCO.js.map} +1 -1
- package/dist/chunks/{timeline-item.DXhpupK_.js → timeline-item.B20jb5oD.js} +6 -6
- package/dist/chunks/{timeline-item.DXhpupK_.js.map → timeline-item.B20jb5oD.js.map} +1 -1
- package/dist/chunks/{tooltip.CGeGVHyl.js → tooltip.BSKGP8TU.js} +3 -3
- package/dist/chunks/{tooltip.CGeGVHyl.js.map → tooltip.BSKGP8TU.js.map} +1 -1
- package/dist/chunks/{tutorial.CAcBuXib.js → tutorial.vDtiRIXg.js} +4 -4
- package/dist/chunks/{tutorial.CAcBuXib.js.map → tutorial.vDtiRIXg.js.map} +1 -1
- package/dist/chunks/{use-bento-delayed-hover.CxJOLxok.js → use-bento-delayed-hover.4geX83Rn.js} +2 -2
- package/dist/chunks/{use-bento-delayed-hover.CxJOLxok.js.map → use-bento-delayed-hover.4geX83Rn.js.map} +1 -1
- package/dist/chunks/{use-country-items.B4j8pAvW.js → use-country-items.CmCRY7QX.js} +3 -3
- package/dist/chunks/{use-country-items.B4j8pAvW.js.map → use-country-items.CmCRY7QX.js.map} +1 -1
- package/dist/chunks/{use-country-phon-code.ByqnuIni.js → use-country-phon-code.BWkb546s.js} +513 -258
- package/dist/chunks/{use-country-phon-code.ByqnuIni.js.map → use-country-phon-code.BWkb546s.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.HUulWm5Y.js → use-date-input-formatter.CXmBPNf1.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.HUulWm5Y.js.map → use-date-input-formatter.CXmBPNf1.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +3 -3
- 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 +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date-time-picker.js +1 -1
- package/dist/draggable.js +2 -2
- package/dist/drawer.js +1 -1
- package/dist/dropdown.js +2 -2
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +139 -137
- 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/input-time.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +11 -11
- package/dist/layout.js +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/navigation-menu.js +1 -1
- package/dist/pagination.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/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/table-of-contents.js +5 -0
- package/dist/table-of-contents.js.map +1 -0
- 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/tutorial.js +1 -1
- package/dist/web-types.json +226 -1
- package/package.json +4 -4
- package/dist/chunks/anchor-scroller.BiHtyUJz.js +0 -198
- package/dist/chunks/anchor-scroller.BiHtyUJz.js.map +0 -1
- package/dist/chunks/dropdown.C0k4Mkmd.js.map +0 -1
- package/dist/chunks/index.BPUMyryR.js +0 -729
- package/dist/chunks/popover.types.ZXsQ9bA6.js +0 -6
|
@@ -0,0 +1,685 @@
|
|
|
1
|
+
import "./index.Cl4_42j5.js";
|
|
2
|
+
import { ref as h, watch as I, readonly as ie, onMounted as X, nextTick as se, unref as le, effectScope as ue, getCurrentScope as ce, onScopeDispose as ae, getCurrentInstance as k, isRef as fe, computed as O, reactive as Y, watchEffect as de } from "vue";
|
|
3
|
+
function D(e) {
|
|
4
|
+
return ce() ? (ae(e), !0) : !1;
|
|
5
|
+
}
|
|
6
|
+
function Ae(e) {
|
|
7
|
+
let t = !1, n;
|
|
8
|
+
const r = ue(!0);
|
|
9
|
+
return (...s) => (t || (n = r.run(() => e(...s)), t = !0), n);
|
|
10
|
+
}
|
|
11
|
+
function b(e) {
|
|
12
|
+
return typeof e == "function" ? e() : le(e);
|
|
13
|
+
}
|
|
14
|
+
const K = typeof window < "u" && typeof document < "u";
|
|
15
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
16
|
+
const Q = (e) => e != null, ve = Object.prototype.toString, me = (e) => ve.call(e) === "[object Object]", W = () => {
|
|
17
|
+
};
|
|
18
|
+
function V(e, t) {
|
|
19
|
+
function n(...r) {
|
|
20
|
+
return new Promise((s, i) => {
|
|
21
|
+
Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(s).catch(i);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return n;
|
|
25
|
+
}
|
|
26
|
+
const he = (e) => e();
|
|
27
|
+
function J(e, t = {}) {
|
|
28
|
+
let n, r, s = W;
|
|
29
|
+
const i = (u) => {
|
|
30
|
+
clearTimeout(u), s(), s = W;
|
|
31
|
+
};
|
|
32
|
+
return (u) => {
|
|
33
|
+
const f = b(e), a = b(t.maxWait);
|
|
34
|
+
return n && i(n), f <= 0 || a !== void 0 && a <= 0 ? (r && (i(r), r = null), Promise.resolve(u())) : new Promise((o, l) => {
|
|
35
|
+
s = t.rejectOnCancel ? l : o, a && !r && (r = setTimeout(() => {
|
|
36
|
+
n && i(n), r = null, o(u());
|
|
37
|
+
}, a)), n = setTimeout(() => {
|
|
38
|
+
r && i(r), r = null, o(u());
|
|
39
|
+
}, f);
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function Z(...e) {
|
|
44
|
+
let t = 0, n, r = !0, s = W, i, c, u, f, a;
|
|
45
|
+
!fe(e[0]) && typeof e[0] == "object" ? { delay: c, trailing: u = !0, leading: f = !0, rejectOnCancel: a = !1 } = e[0] : [c, u = !0, f = !0, a = !1] = e;
|
|
46
|
+
const o = () => {
|
|
47
|
+
n && (clearTimeout(n), n = void 0, s(), s = W);
|
|
48
|
+
};
|
|
49
|
+
return (d) => {
|
|
50
|
+
const v = b(c), p = Date.now() - t, E = () => i = d();
|
|
51
|
+
return o(), v <= 0 ? (t = Date.now(), E()) : (p > v && (f || !r) ? (t = Date.now(), E()) : u && (i = new Promise((g, w) => {
|
|
52
|
+
s = a ? w : g, n = setTimeout(() => {
|
|
53
|
+
t = Date.now(), r = !0, g(E()), o();
|
|
54
|
+
}, Math.max(0, v - p));
|
|
55
|
+
})), !f && !n && (n = setTimeout(() => r = !0, v)), r = !1, i);
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function pe(e, t) {
|
|
59
|
+
var n;
|
|
60
|
+
if (typeof e == "number")
|
|
61
|
+
return e + t;
|
|
62
|
+
const r = ((n = e.match(/^-?\d+\.?\d*/)) == null ? void 0 : n[0]) || "", s = e.slice(r.length), i = Number.parseFloat(r) + t;
|
|
63
|
+
return Number.isNaN(i) ? e : i + s;
|
|
64
|
+
}
|
|
65
|
+
function we(e) {
|
|
66
|
+
return k();
|
|
67
|
+
}
|
|
68
|
+
function ee(e, t = 200, n = {}) {
|
|
69
|
+
return V(
|
|
70
|
+
J(t, n),
|
|
71
|
+
e
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
function We(e, t = 200, n = {}) {
|
|
75
|
+
const r = h(e.value), s = ee(() => {
|
|
76
|
+
r.value = e.value;
|
|
77
|
+
}, t, n);
|
|
78
|
+
return I(e, () => s()), r;
|
|
79
|
+
}
|
|
80
|
+
function be(e, t = 200, n = !1, r = !0, s = !1) {
|
|
81
|
+
return V(
|
|
82
|
+
Z(t, n, r, s),
|
|
83
|
+
e
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
function te(e, t, n = {}) {
|
|
87
|
+
const {
|
|
88
|
+
eventFilter: r = he,
|
|
89
|
+
...s
|
|
90
|
+
} = n;
|
|
91
|
+
return I(
|
|
92
|
+
e,
|
|
93
|
+
V(
|
|
94
|
+
r,
|
|
95
|
+
t
|
|
96
|
+
),
|
|
97
|
+
s
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
function F(e, t = !0, n) {
|
|
101
|
+
we() ? X(e, n) : t ? e() : se(e);
|
|
102
|
+
}
|
|
103
|
+
function Ie(e, t, n = {}) {
|
|
104
|
+
const {
|
|
105
|
+
immediate: r = !0
|
|
106
|
+
} = n, s = h(!1);
|
|
107
|
+
let i = null;
|
|
108
|
+
function c() {
|
|
109
|
+
i && (clearTimeout(i), i = null);
|
|
110
|
+
}
|
|
111
|
+
function u() {
|
|
112
|
+
s.value = !1, c();
|
|
113
|
+
}
|
|
114
|
+
function f(...a) {
|
|
115
|
+
c(), s.value = !0, i = setTimeout(() => {
|
|
116
|
+
s.value = !1, i = null, e(...a);
|
|
117
|
+
}, b(t));
|
|
118
|
+
}
|
|
119
|
+
return r && (s.value = !0, K && f()), D(u), {
|
|
120
|
+
isPending: ie(s),
|
|
121
|
+
start: f,
|
|
122
|
+
stop: u
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function Me(e, t, n = {}) {
|
|
126
|
+
const {
|
|
127
|
+
debounce: r = 0,
|
|
128
|
+
maxWait: s = void 0,
|
|
129
|
+
...i
|
|
130
|
+
} = n;
|
|
131
|
+
return te(
|
|
132
|
+
e,
|
|
133
|
+
t,
|
|
134
|
+
{
|
|
135
|
+
...i,
|
|
136
|
+
eventFilter: J(r, { maxWait: s })
|
|
137
|
+
}
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
function Re(e, t, n = {}) {
|
|
141
|
+
const {
|
|
142
|
+
throttle: r = 0,
|
|
143
|
+
trailing: s = !0,
|
|
144
|
+
leading: i = !0,
|
|
145
|
+
...c
|
|
146
|
+
} = n;
|
|
147
|
+
return te(
|
|
148
|
+
e,
|
|
149
|
+
t,
|
|
150
|
+
{
|
|
151
|
+
...c,
|
|
152
|
+
eventFilter: Z(r, s, i)
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
const T = K ? window : void 0;
|
|
157
|
+
function S(e) {
|
|
158
|
+
var t;
|
|
159
|
+
const n = b(e);
|
|
160
|
+
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
161
|
+
}
|
|
162
|
+
function A(...e) {
|
|
163
|
+
let t, n, r, s;
|
|
164
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, r, s] = e, t = T) : [t, n, r, s] = e, !t)
|
|
165
|
+
return W;
|
|
166
|
+
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
167
|
+
const i = [], c = () => {
|
|
168
|
+
i.forEach((o) => o()), i.length = 0;
|
|
169
|
+
}, u = (o, l, d, v) => (o.addEventListener(l, d, v), () => o.removeEventListener(l, d, v)), f = I(
|
|
170
|
+
() => [S(t), b(s)],
|
|
171
|
+
([o, l]) => {
|
|
172
|
+
if (c(), !o)
|
|
173
|
+
return;
|
|
174
|
+
const d = me(l) ? { ...l } : l;
|
|
175
|
+
i.push(
|
|
176
|
+
...n.flatMap((v) => r.map((p) => u(o, v, p, d)))
|
|
177
|
+
);
|
|
178
|
+
},
|
|
179
|
+
{ immediate: !0, flush: "post" }
|
|
180
|
+
), a = () => {
|
|
181
|
+
f(), c();
|
|
182
|
+
};
|
|
183
|
+
return D(a), a;
|
|
184
|
+
}
|
|
185
|
+
function ge(e) {
|
|
186
|
+
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
187
|
+
}
|
|
188
|
+
function Le(...e) {
|
|
189
|
+
let t, n, r = {};
|
|
190
|
+
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
191
|
+
const {
|
|
192
|
+
target: s = T,
|
|
193
|
+
eventName: i = "keydown",
|
|
194
|
+
passive: c = !1,
|
|
195
|
+
dedupe: u = !1
|
|
196
|
+
} = r, f = ge(t);
|
|
197
|
+
return A(s, i, (o) => {
|
|
198
|
+
o.repeat && b(u) || f(o) && n(o);
|
|
199
|
+
}, c);
|
|
200
|
+
}
|
|
201
|
+
function ye() {
|
|
202
|
+
const e = h(!1);
|
|
203
|
+
return k() && X(() => {
|
|
204
|
+
e.value = !0;
|
|
205
|
+
}, void 0), e;
|
|
206
|
+
}
|
|
207
|
+
function P(e) {
|
|
208
|
+
const t = ye();
|
|
209
|
+
return O(() => (t.value, !!e()));
|
|
210
|
+
}
|
|
211
|
+
function ne(e, t, n = {}) {
|
|
212
|
+
const { window: r = T, ...s } = n;
|
|
213
|
+
let i;
|
|
214
|
+
const c = P(() => r && "MutationObserver" in r), u = () => {
|
|
215
|
+
i && (i.disconnect(), i = void 0);
|
|
216
|
+
}, f = O(() => {
|
|
217
|
+
const d = b(e), v = (Array.isArray(d) ? d : [d]).map(S).filter(Q);
|
|
218
|
+
return new Set(v);
|
|
219
|
+
}), a = I(
|
|
220
|
+
() => f.value,
|
|
221
|
+
(d) => {
|
|
222
|
+
u(), c.value && d.size && (i = new MutationObserver(t), d.forEach((v) => i.observe(v, s)));
|
|
223
|
+
},
|
|
224
|
+
{ immediate: !0, flush: "post" }
|
|
225
|
+
), o = () => i == null ? void 0 : i.takeRecords(), l = () => {
|
|
226
|
+
a(), u();
|
|
227
|
+
};
|
|
228
|
+
return D(l), {
|
|
229
|
+
isSupported: c,
|
|
230
|
+
stop: l,
|
|
231
|
+
takeRecords: o
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
function Ee(e = {}) {
|
|
235
|
+
var t;
|
|
236
|
+
const {
|
|
237
|
+
window: n = T,
|
|
238
|
+
deep: r = !0,
|
|
239
|
+
triggerOnRemoval: s = !1
|
|
240
|
+
} = e, i = (t = e.document) != null ? t : n == null ? void 0 : n.document, c = () => {
|
|
241
|
+
var a;
|
|
242
|
+
let o = i == null ? void 0 : i.activeElement;
|
|
243
|
+
if (r)
|
|
244
|
+
for (; o != null && o.shadowRoot; )
|
|
245
|
+
o = (a = o == null ? void 0 : o.shadowRoot) == null ? void 0 : a.activeElement;
|
|
246
|
+
return o;
|
|
247
|
+
}, u = h(), f = () => {
|
|
248
|
+
u.value = c();
|
|
249
|
+
};
|
|
250
|
+
return n && (A(n, "blur", (a) => {
|
|
251
|
+
a.relatedTarget === null && f();
|
|
252
|
+
}, !0), A(n, "focus", f, !0)), s && ne(i, (a) => {
|
|
253
|
+
a.filter((o) => o.removedNodes.length).map((o) => Array.from(o.removedNodes)).flat().forEach((o) => {
|
|
254
|
+
o === u.value && f();
|
|
255
|
+
});
|
|
256
|
+
}, {
|
|
257
|
+
childList: !0,
|
|
258
|
+
subtree: !0
|
|
259
|
+
}), f(), u;
|
|
260
|
+
}
|
|
261
|
+
function N(e, t = {}) {
|
|
262
|
+
const { window: n = T } = t, r = P(() => n && "matchMedia" in n && typeof n.matchMedia == "function");
|
|
263
|
+
let s;
|
|
264
|
+
const i = h(!1), c = (a) => {
|
|
265
|
+
i.value = a.matches;
|
|
266
|
+
}, u = () => {
|
|
267
|
+
s && ("removeEventListener" in s ? s.removeEventListener("change", c) : s.removeListener(c));
|
|
268
|
+
}, f = de(() => {
|
|
269
|
+
r.value && (u(), s = n.matchMedia(b(e)), "addEventListener" in s ? s.addEventListener("change", c) : s.addListener(c), i.value = s.matches);
|
|
270
|
+
});
|
|
271
|
+
return D(() => {
|
|
272
|
+
f(), u(), s = void 0;
|
|
273
|
+
}), i;
|
|
274
|
+
}
|
|
275
|
+
function Ne(e, t = {}) {
|
|
276
|
+
function n(o, l) {
|
|
277
|
+
let d = b(e[b(o)]);
|
|
278
|
+
return l != null && (d = pe(d, l)), typeof d == "number" && (d = `${d}px`), d;
|
|
279
|
+
}
|
|
280
|
+
const { window: r = T, strategy: s = "min-width" } = t;
|
|
281
|
+
function i(o) {
|
|
282
|
+
return r ? r.matchMedia(o).matches : !1;
|
|
283
|
+
}
|
|
284
|
+
const c = (o) => N(() => `(min-width: ${n(o)})`, t), u = (o) => N(() => `(max-width: ${n(o)})`, t), f = Object.keys(e).reduce((o, l) => (Object.defineProperty(o, l, {
|
|
285
|
+
get: () => s === "min-width" ? c(l) : u(l),
|
|
286
|
+
enumerable: !0,
|
|
287
|
+
configurable: !0
|
|
288
|
+
}), o), {});
|
|
289
|
+
function a() {
|
|
290
|
+
const o = Object.keys(e).map((l) => [l, c(l)]);
|
|
291
|
+
return O(() => o.filter(([, l]) => l.value).map(([l]) => l));
|
|
292
|
+
}
|
|
293
|
+
return Object.assign(f, {
|
|
294
|
+
greaterOrEqual: c,
|
|
295
|
+
smallerOrEqual: u,
|
|
296
|
+
greater(o) {
|
|
297
|
+
return N(() => `(min-width: ${n(o, 0.1)})`, t);
|
|
298
|
+
},
|
|
299
|
+
smaller(o) {
|
|
300
|
+
return N(() => `(max-width: ${n(o, -0.1)})`, t);
|
|
301
|
+
},
|
|
302
|
+
between(o, l) {
|
|
303
|
+
return N(() => `(min-width: ${n(o)}) and (max-width: ${n(l, -0.1)})`, t);
|
|
304
|
+
},
|
|
305
|
+
isGreater(o) {
|
|
306
|
+
return i(`(min-width: ${n(o, 0.1)})`);
|
|
307
|
+
},
|
|
308
|
+
isGreaterOrEqual(o) {
|
|
309
|
+
return i(`(min-width: ${n(o)})`);
|
|
310
|
+
},
|
|
311
|
+
isSmaller(o) {
|
|
312
|
+
return i(`(max-width: ${n(o, -0.1)})`);
|
|
313
|
+
},
|
|
314
|
+
isSmallerOrEqual(o) {
|
|
315
|
+
return i(`(max-width: ${n(o)})`);
|
|
316
|
+
},
|
|
317
|
+
isInBetween(o, l) {
|
|
318
|
+
return i(`(min-width: ${n(o)}) and (max-width: ${n(l, -0.1)})`);
|
|
319
|
+
},
|
|
320
|
+
current: a,
|
|
321
|
+
active() {
|
|
322
|
+
const o = a();
|
|
323
|
+
return O(() => o.value.length === 0 ? "" : o.value.at(-1));
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
function oe(e, t, n = {}) {
|
|
328
|
+
const { window: r = T, ...s } = n;
|
|
329
|
+
let i;
|
|
330
|
+
const c = P(() => r && "ResizeObserver" in r), u = () => {
|
|
331
|
+
i && (i.disconnect(), i = void 0);
|
|
332
|
+
}, f = O(() => {
|
|
333
|
+
const l = b(e);
|
|
334
|
+
return Array.isArray(l) ? l.map((d) => S(d)) : [S(l)];
|
|
335
|
+
}), a = I(
|
|
336
|
+
f,
|
|
337
|
+
(l) => {
|
|
338
|
+
if (u(), c.value && r) {
|
|
339
|
+
i = new ResizeObserver(t);
|
|
340
|
+
for (const d of l)
|
|
341
|
+
d && i.observe(d, s);
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
{ immediate: !0, flush: "post" }
|
|
345
|
+
), o = () => {
|
|
346
|
+
u(), a();
|
|
347
|
+
};
|
|
348
|
+
return D(o), {
|
|
349
|
+
isSupported: c,
|
|
350
|
+
stop: o
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
function De(e, t = {}) {
|
|
354
|
+
const {
|
|
355
|
+
reset: n = !0,
|
|
356
|
+
windowResize: r = !0,
|
|
357
|
+
windowScroll: s = !0,
|
|
358
|
+
immediate: i = !0,
|
|
359
|
+
updateTiming: c = "sync"
|
|
360
|
+
} = t, u = h(0), f = h(0), a = h(0), o = h(0), l = h(0), d = h(0), v = h(0), p = h(0);
|
|
361
|
+
function E() {
|
|
362
|
+
const w = S(e);
|
|
363
|
+
if (!w) {
|
|
364
|
+
n && (u.value = 0, f.value = 0, a.value = 0, o.value = 0, l.value = 0, d.value = 0, v.value = 0, p.value = 0);
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
const y = w.getBoundingClientRect();
|
|
368
|
+
u.value = y.height, f.value = y.bottom, a.value = y.left, o.value = y.right, l.value = y.top, d.value = y.width, v.value = y.x, p.value = y.y;
|
|
369
|
+
}
|
|
370
|
+
function g() {
|
|
371
|
+
c === "sync" ? E() : c === "next-frame" && requestAnimationFrame(() => E());
|
|
372
|
+
}
|
|
373
|
+
return oe(e, g), I(() => S(e), (w) => !w && g()), ne(e, g, {
|
|
374
|
+
attributeFilter: ["style", "class"]
|
|
375
|
+
}), s && A("scroll", g, { capture: !0, passive: !0 }), r && A("resize", g, { passive: !0 }), F(() => {
|
|
376
|
+
i && g();
|
|
377
|
+
}), {
|
|
378
|
+
height: u,
|
|
379
|
+
bottom: f,
|
|
380
|
+
left: a,
|
|
381
|
+
right: o,
|
|
382
|
+
top: l,
|
|
383
|
+
width: d,
|
|
384
|
+
x: v,
|
|
385
|
+
y: p,
|
|
386
|
+
update: g
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
function je(e, t = { width: 0, height: 0 }, n = {}) {
|
|
390
|
+
const { window: r = T, box: s = "content-box" } = n, i = O(() => {
|
|
391
|
+
var l, d;
|
|
392
|
+
return (d = (l = S(e)) == null ? void 0 : l.namespaceURI) == null ? void 0 : d.includes("svg");
|
|
393
|
+
}), c = h(t.width), u = h(t.height), { stop: f } = oe(
|
|
394
|
+
e,
|
|
395
|
+
([l]) => {
|
|
396
|
+
const d = s === "border-box" ? l.borderBoxSize : s === "content-box" ? l.contentBoxSize : l.devicePixelContentBoxSize;
|
|
397
|
+
if (r && i.value) {
|
|
398
|
+
const v = S(e);
|
|
399
|
+
if (v) {
|
|
400
|
+
const p = v.getBoundingClientRect();
|
|
401
|
+
c.value = p.width, u.value = p.height;
|
|
402
|
+
}
|
|
403
|
+
} else if (d) {
|
|
404
|
+
const v = Array.isArray(d) ? d : [d];
|
|
405
|
+
c.value = v.reduce((p, { inlineSize: E }) => p + E, 0), u.value = v.reduce((p, { blockSize: E }) => p + E, 0);
|
|
406
|
+
} else
|
|
407
|
+
c.value = l.contentRect.width, u.value = l.contentRect.height;
|
|
408
|
+
},
|
|
409
|
+
n
|
|
410
|
+
);
|
|
411
|
+
F(() => {
|
|
412
|
+
const l = S(e);
|
|
413
|
+
l && (c.value = "offsetWidth" in l ? l.offsetWidth : t.width, u.value = "offsetHeight" in l ? l.offsetHeight : t.height);
|
|
414
|
+
});
|
|
415
|
+
const a = I(
|
|
416
|
+
() => S(e),
|
|
417
|
+
(l) => {
|
|
418
|
+
c.value = l ? t.width : 0, u.value = l ? t.height : 0;
|
|
419
|
+
}
|
|
420
|
+
);
|
|
421
|
+
function o() {
|
|
422
|
+
f(), a();
|
|
423
|
+
}
|
|
424
|
+
return {
|
|
425
|
+
width: c,
|
|
426
|
+
height: u,
|
|
427
|
+
stop: o
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
function Se(e, t, n = {}) {
|
|
431
|
+
const {
|
|
432
|
+
root: r,
|
|
433
|
+
rootMargin: s = "0px",
|
|
434
|
+
threshold: i = 0,
|
|
435
|
+
window: c = T,
|
|
436
|
+
immediate: u = !0
|
|
437
|
+
} = n, f = P(() => c && "IntersectionObserver" in c), a = O(() => {
|
|
438
|
+
const p = b(e);
|
|
439
|
+
return (Array.isArray(p) ? p : [p]).map(S).filter(Q);
|
|
440
|
+
});
|
|
441
|
+
let o = W;
|
|
442
|
+
const l = h(u), d = f.value ? I(
|
|
443
|
+
() => [a.value, S(r), l.value],
|
|
444
|
+
([p, E]) => {
|
|
445
|
+
if (o(), !l.value || !p.length)
|
|
446
|
+
return;
|
|
447
|
+
const g = new IntersectionObserver(
|
|
448
|
+
t,
|
|
449
|
+
{
|
|
450
|
+
root: S(E),
|
|
451
|
+
rootMargin: s,
|
|
452
|
+
threshold: i
|
|
453
|
+
}
|
|
454
|
+
);
|
|
455
|
+
p.forEach((w) => w && g.observe(w)), o = () => {
|
|
456
|
+
g.disconnect(), o = W;
|
|
457
|
+
};
|
|
458
|
+
},
|
|
459
|
+
{ immediate: u, flush: "post" }
|
|
460
|
+
) : W, v = () => {
|
|
461
|
+
o(), d(), l.value = !1;
|
|
462
|
+
};
|
|
463
|
+
return D(v), {
|
|
464
|
+
isSupported: f,
|
|
465
|
+
isActive: l,
|
|
466
|
+
pause() {
|
|
467
|
+
o(), l.value = !1;
|
|
468
|
+
},
|
|
469
|
+
resume() {
|
|
470
|
+
l.value = !0;
|
|
471
|
+
},
|
|
472
|
+
stop: v
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
function $e(e, t = {}) {
|
|
476
|
+
const { window: n = T, scrollTarget: r, threshold: s = 0 } = t, i = h(!1);
|
|
477
|
+
return Se(
|
|
478
|
+
e,
|
|
479
|
+
(c) => {
|
|
480
|
+
let u = i.value, f = 0;
|
|
481
|
+
for (const a of c)
|
|
482
|
+
a.time >= f && (f = a.time, u = a.isIntersecting);
|
|
483
|
+
i.value = u;
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
root: r,
|
|
487
|
+
window: n,
|
|
488
|
+
threshold: s
|
|
489
|
+
}
|
|
490
|
+
), i;
|
|
491
|
+
}
|
|
492
|
+
const Te = "focusin", Oe = "focusout";
|
|
493
|
+
function Ce(e, t = {}) {
|
|
494
|
+
const { window: n = T } = t, r = O(() => S(e)), s = h(!1), i = O(() => s.value), c = Ee(t);
|
|
495
|
+
return !n || !c.value ? { focused: i } : (A(r, Te, () => s.value = !0), A(r, Oe, () => s.value = !1), { focused: i });
|
|
496
|
+
}
|
|
497
|
+
const U = 1;
|
|
498
|
+
function Fe(e, t = {}) {
|
|
499
|
+
const {
|
|
500
|
+
throttle: n = 0,
|
|
501
|
+
idle: r = 200,
|
|
502
|
+
onStop: s = W,
|
|
503
|
+
onScroll: i = W,
|
|
504
|
+
offset: c = {
|
|
505
|
+
left: 0,
|
|
506
|
+
right: 0,
|
|
507
|
+
top: 0,
|
|
508
|
+
bottom: 0
|
|
509
|
+
},
|
|
510
|
+
eventListenerOptions: u = {
|
|
511
|
+
capture: !1,
|
|
512
|
+
passive: !0
|
|
513
|
+
},
|
|
514
|
+
behavior: f = "auto",
|
|
515
|
+
window: a = T,
|
|
516
|
+
onError: o = (m) => {
|
|
517
|
+
console.error(m);
|
|
518
|
+
}
|
|
519
|
+
} = t, l = h(0), d = h(0), v = O({
|
|
520
|
+
get() {
|
|
521
|
+
return l.value;
|
|
522
|
+
},
|
|
523
|
+
set(m) {
|
|
524
|
+
E(m, void 0);
|
|
525
|
+
}
|
|
526
|
+
}), p = O({
|
|
527
|
+
get() {
|
|
528
|
+
return d.value;
|
|
529
|
+
},
|
|
530
|
+
set(m) {
|
|
531
|
+
E(void 0, m);
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
function E(m, R) {
|
|
535
|
+
var x, j, $, M;
|
|
536
|
+
if (!a)
|
|
537
|
+
return;
|
|
538
|
+
const _ = b(e);
|
|
539
|
+
if (!_)
|
|
540
|
+
return;
|
|
541
|
+
($ = _ instanceof Document ? a.document.body : _) == null || $.scrollTo({
|
|
542
|
+
top: (x = b(R)) != null ? x : p.value,
|
|
543
|
+
left: (j = b(m)) != null ? j : v.value,
|
|
544
|
+
behavior: b(f)
|
|
545
|
+
});
|
|
546
|
+
const C = ((M = _ == null ? void 0 : _.document) == null ? void 0 : M.documentElement) || (_ == null ? void 0 : _.documentElement) || _;
|
|
547
|
+
v != null && (l.value = C.scrollLeft), p != null && (d.value = C.scrollTop);
|
|
548
|
+
}
|
|
549
|
+
const g = h(!1), w = Y({
|
|
550
|
+
left: !0,
|
|
551
|
+
right: !1,
|
|
552
|
+
top: !0,
|
|
553
|
+
bottom: !1
|
|
554
|
+
}), y = Y({
|
|
555
|
+
left: !1,
|
|
556
|
+
right: !1,
|
|
557
|
+
top: !1,
|
|
558
|
+
bottom: !1
|
|
559
|
+
}), z = (m) => {
|
|
560
|
+
g.value && (g.value = !1, y.left = !1, y.right = !1, y.top = !1, y.bottom = !1, s(m));
|
|
561
|
+
}, re = ee(z, n + r), H = (m) => {
|
|
562
|
+
var R;
|
|
563
|
+
if (!a)
|
|
564
|
+
return;
|
|
565
|
+
const x = ((R = m == null ? void 0 : m.document) == null ? void 0 : R.documentElement) || (m == null ? void 0 : m.documentElement) || S(m), { display: j, flexDirection: $ } = getComputedStyle(x), M = x.scrollLeft;
|
|
566
|
+
y.left = M < l.value, y.right = M > l.value;
|
|
567
|
+
const _ = Math.abs(M) <= (c.left || 0), C = Math.abs(M) + x.clientWidth >= x.scrollWidth - (c.right || 0) - U;
|
|
568
|
+
j === "flex" && $ === "row-reverse" ? (w.left = C, w.right = _) : (w.left = _, w.right = C), l.value = M;
|
|
569
|
+
let L = x.scrollTop;
|
|
570
|
+
m === a.document && !L && (L = a.document.body.scrollTop), y.top = L < d.value, y.bottom = L > d.value;
|
|
571
|
+
const q = Math.abs(L) <= (c.top || 0), G = Math.abs(L) + x.clientHeight >= x.scrollHeight - (c.bottom || 0) - U;
|
|
572
|
+
j === "flex" && $ === "column-reverse" ? (w.top = G, w.bottom = q) : (w.top = q, w.bottom = G), d.value = L;
|
|
573
|
+
}, B = (m) => {
|
|
574
|
+
var R;
|
|
575
|
+
if (!a)
|
|
576
|
+
return;
|
|
577
|
+
const x = (R = m.target.documentElement) != null ? R : m.target;
|
|
578
|
+
H(x), g.value = !0, re(m), i(m);
|
|
579
|
+
};
|
|
580
|
+
return A(
|
|
581
|
+
e,
|
|
582
|
+
"scroll",
|
|
583
|
+
n ? be(B, n, !0, !1) : B,
|
|
584
|
+
u
|
|
585
|
+
), F(() => {
|
|
586
|
+
try {
|
|
587
|
+
const m = b(e);
|
|
588
|
+
if (!m)
|
|
589
|
+
return;
|
|
590
|
+
H(m);
|
|
591
|
+
} catch (m) {
|
|
592
|
+
o(m);
|
|
593
|
+
}
|
|
594
|
+
}), A(
|
|
595
|
+
e,
|
|
596
|
+
"scrollend",
|
|
597
|
+
z,
|
|
598
|
+
u
|
|
599
|
+
), {
|
|
600
|
+
x: v,
|
|
601
|
+
y: p,
|
|
602
|
+
isScrolling: g,
|
|
603
|
+
arrivedState: w,
|
|
604
|
+
directions: y,
|
|
605
|
+
measure() {
|
|
606
|
+
const m = b(e);
|
|
607
|
+
a && m && H(m);
|
|
608
|
+
}
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
function Pe(e = {}) {
|
|
612
|
+
const { window: t = T, behavior: n = "auto" } = e;
|
|
613
|
+
if (!t)
|
|
614
|
+
return {
|
|
615
|
+
x: h(0),
|
|
616
|
+
y: h(0)
|
|
617
|
+
};
|
|
618
|
+
const r = h(t.scrollX), s = h(t.scrollY), i = O({
|
|
619
|
+
get() {
|
|
620
|
+
return r.value;
|
|
621
|
+
},
|
|
622
|
+
set(u) {
|
|
623
|
+
scrollTo({ left: u, behavior: n });
|
|
624
|
+
}
|
|
625
|
+
}), c = O({
|
|
626
|
+
get() {
|
|
627
|
+
return s.value;
|
|
628
|
+
},
|
|
629
|
+
set(u) {
|
|
630
|
+
scrollTo({ top: u, behavior: n });
|
|
631
|
+
}
|
|
632
|
+
});
|
|
633
|
+
return A(
|
|
634
|
+
t,
|
|
635
|
+
"scroll",
|
|
636
|
+
() => {
|
|
637
|
+
r.value = t.scrollX, s.value = t.scrollY;
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
capture: !1,
|
|
641
|
+
passive: !0
|
|
642
|
+
}
|
|
643
|
+
), { x: i, y: c };
|
|
644
|
+
}
|
|
645
|
+
function He(e = {}) {
|
|
646
|
+
const {
|
|
647
|
+
window: t = T,
|
|
648
|
+
initialWidth: n = Number.POSITIVE_INFINITY,
|
|
649
|
+
initialHeight: r = Number.POSITIVE_INFINITY,
|
|
650
|
+
listenOrientation: s = !0,
|
|
651
|
+
includeScrollbar: i = !0,
|
|
652
|
+
type: c = "inner"
|
|
653
|
+
} = e, u = h(n), f = h(r), a = () => {
|
|
654
|
+
t && (c === "outer" ? (u.value = t.outerWidth, f.value = t.outerHeight) : i ? (u.value = t.innerWidth, f.value = t.innerHeight) : (u.value = t.document.documentElement.clientWidth, f.value = t.document.documentElement.clientHeight));
|
|
655
|
+
};
|
|
656
|
+
if (a(), F(a), A("resize", a, { passive: !0 }), s) {
|
|
657
|
+
const o = N("(orientation: portrait)");
|
|
658
|
+
I(o, () => a());
|
|
659
|
+
}
|
|
660
|
+
return { width: u, height: f };
|
|
661
|
+
}
|
|
662
|
+
export {
|
|
663
|
+
Pe as a,
|
|
664
|
+
He as b,
|
|
665
|
+
Ne as c,
|
|
666
|
+
Ae as d,
|
|
667
|
+
A as e,
|
|
668
|
+
Ee as f,
|
|
669
|
+
je as g,
|
|
670
|
+
Fe as h,
|
|
671
|
+
De as i,
|
|
672
|
+
Ce as j,
|
|
673
|
+
Me as k,
|
|
674
|
+
N as l,
|
|
675
|
+
ne as m,
|
|
676
|
+
oe as n,
|
|
677
|
+
$e as o,
|
|
678
|
+
S as p,
|
|
679
|
+
Le as q,
|
|
680
|
+
We as r,
|
|
681
|
+
b as t,
|
|
682
|
+
Ie as u,
|
|
683
|
+
Re as w
|
|
684
|
+
};
|
|
685
|
+
//# sourceMappingURL=index.v5OGTDYQ.js.map
|