@televet/kibble-ui 4.0.0-beta.77 → 4.0.0-beta.78
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/chunks/{alert.types-D6TkftlY.js → alert.types-C1hSbPAj.js} +2 -2
- package/dist/chunks/{alert.types-D6TkftlY.js.map → alert.types-C1hSbPAj.js.map} +1 -1
- package/dist/chunks/{alert.types-DFdr6LJp.js → alert.types-pRFStpHD.js} +3 -3
- package/dist/chunks/{alert.types-DFdr6LJp.js.map → alert.types-pRFStpHD.js.map} +1 -1
- package/dist/chunks/{avatar.component-qXjXZmjT.js → avatar.component-BSA7tJUO.js} +2 -2
- package/dist/chunks/{avatar.component-qXjXZmjT.js.map → avatar.component-BSA7tJUO.js.map} +1 -1
- package/dist/chunks/{avatar.component-v66udI-_.js → avatar.component-BwRv7qvB.js} +13 -13
- package/dist/chunks/{avatar.component-v66udI-_.js.map → avatar.component-BwRv7qvB.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-sVDzWHae.js → avatarGroup.component-CtNUO8FY.js} +2 -2
- package/dist/chunks/{avatarGroup.component-sVDzWHae.js.map → avatarGroup.component-CtNUO8FY.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-DXtoztak.js → avatarGroup.component-DQ8vHW56.js} +2 -2
- package/dist/chunks/{avatarGroup.component-DXtoztak.js.map → avatarGroup.component-DQ8vHW56.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-s0zArL6V.js → buttonGroup.component-B7YBMn5C.js} +2 -2
- package/dist/chunks/{buttonGroup.component-s0zArL6V.js.map → buttonGroup.component-B7YBMn5C.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-Dlz5CnTj.js → buttonGroup.component-Cg_TQped.js} +2 -2
- package/dist/chunks/{buttonGroup.component-Dlz5CnTj.js.map → buttonGroup.component-Cg_TQped.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-DQpZpSAG.js → characterCounter.component-0p9iEi6i.js} +2 -2
- package/dist/chunks/{characterCounter.component-DQpZpSAG.js.map → characterCounter.component-0p9iEi6i.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-BR9CB85Y.js → characterCounter.component-B7PijscW.js} +2 -2
- package/dist/chunks/{characterCounter.component-BR9CB85Y.js.map → characterCounter.component-B7PijscW.js.map} +1 -1
- package/dist/chunks/{checkbox.component-CDWLPHBb.js → checkbox.component-C3SpCA_Q.js} +10 -10
- package/dist/chunks/{checkbox.component-CDWLPHBb.js.map → checkbox.component-C3SpCA_Q.js.map} +1 -1
- package/dist/chunks/{checkbox.component-DWY6uyeH.js → checkbox.component-Dt23wSaV.js} +2 -2
- package/dist/chunks/{checkbox.component-DWY6uyeH.js.map → checkbox.component-Dt23wSaV.js.map} +1 -1
- package/dist/chunks/{checkbox.records-VGvM2lMr.js → checkbox.records-4j704fMI.js} +12 -12
- package/dist/chunks/{checkbox.records-VGvM2lMr.js.map → checkbox.records-4j704fMI.js.map} +1 -1
- package/dist/chunks/checkbox.records-DI3mqSNf.js +2 -0
- package/dist/chunks/{checkbox.records-CXDQlfs4.js.map → checkbox.records-DI3mqSNf.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-D_atqiOV.js → checkboxGroup.component-CVpvkfhE.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-D_atqiOV.js.map → checkboxGroup.component-CVpvkfhE.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-ZnL-IZ9n.js → checkboxGroup.component-DsfWyRog.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-ZnL-IZ9n.js.map → checkboxGroup.component-DsfWyRog.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-BOcG-o05.js → conversationCard.component-BOVg1QrI.js} +6 -6
- package/dist/chunks/{conversationCard.component-BOcG-o05.js.map → conversationCard.component-BOVg1QrI.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-BsD6fCbc.js → conversationCard.component-DAk3CXE_.js} +2 -2
- package/dist/chunks/{conversationCard.component-BsD6fCbc.js.map → conversationCard.component-DAk3CXE_.js.map} +1 -1
- package/dist/chunks/{datePicker.component-CYeP02vZ.js → datePicker.component-ByOoi8Qd.js} +7 -8
- package/dist/chunks/datePicker.component-ByOoi8Qd.js.map +1 -0
- package/dist/chunks/{datePicker.component-DwGsDzmJ.js → datePicker.component-DP7YTR4q.js} +3 -3
- package/dist/chunks/datePicker.component-DP7YTR4q.js.map +1 -0
- package/dist/chunks/{dialog-trigger-B5NK0lr-.js → dialog-trigger-MkOQUjzu.js} +2 -2
- package/dist/chunks/{dialog-trigger-B5NK0lr-.js.map → dialog-trigger-MkOQUjzu.js.map} +1 -1
- package/dist/chunks/{dialog-trigger-Qc_jF1sR.js → dialog-trigger-eqGXDXGQ.js} +9 -9
- package/dist/chunks/{dialog-trigger-Qc_jF1sR.js.map → dialog-trigger-eqGXDXGQ.js.map} +1 -1
- package/dist/chunks/{heading.component-C0b0I-gL.js → heading.component-B5fvHRUH.js} +2 -2
- package/dist/chunks/{heading.component-C0b0I-gL.js.map → heading.component-B5fvHRUH.js.map} +1 -1
- package/dist/chunks/{heading.component-F2SF26Rv.js → heading.component-tEOV4AD0.js} +2 -2
- package/dist/chunks/{heading.component-F2SF26Rv.js.map → heading.component-tEOV4AD0.js.map} +1 -1
- package/dist/chunks/index-BR7peqZO.js +2 -0
- package/dist/chunks/{index-MlhL0PDC.js.map → index-BR7peqZO.js.map} +1 -1
- package/dist/chunks/{index-C6cNrRSG.js → index-Bff1r_rH.js} +15 -15
- package/dist/chunks/{index-C6cNrRSG.js.map → index-Bff1r_rH.js.map} +1 -1
- package/dist/chunks/index-Bz8HDeWA.js +70 -0
- package/dist/chunks/index-Bz8HDeWA.js.map +1 -0
- package/dist/chunks/index-CHIISuTq.js +3 -0
- package/dist/chunks/index-CHIISuTq.js.map +1 -0
- package/dist/chunks/{index-Im8BYbf9.js → index-CJLttzPM.js} +3 -3
- package/dist/chunks/{index-Im8BYbf9.js.map → index-CJLttzPM.js.map} +1 -1
- package/dist/chunks/index-CS8X6LiC.js +2 -0
- package/dist/chunks/{index-BDnnTdaJ.js.map → index-CS8X6LiC.js.map} +1 -1
- package/dist/chunks/{index-BRCoaB60.js → index-C_AXAeNS.js} +16 -17
- package/dist/chunks/{index-BRCoaB60.js.map → index-C_AXAeNS.js.map} +1 -1
- package/dist/chunks/{index-B2pGzKof.js → index-Cbkb_94C.js} +48 -49
- package/dist/chunks/{index-B2pGzKof.js.map → index-Cbkb_94C.js.map} +1 -1
- package/dist/chunks/{index-BBZxmcrY.js → index-CtXUprYH.js} +2 -2
- package/dist/chunks/{index-BBZxmcrY.js.map → index-CtXUprYH.js.map} +1 -1
- package/dist/chunks/index-DBk0LkcO.js +2 -0
- package/dist/chunks/{index-CfQe7XQk.js.map → index-DBk0LkcO.js.map} +1 -1
- package/dist/chunks/{index-BYf7SZUC.js → index-DOXzraja.js} +2 -2
- package/dist/chunks/{index-BYf7SZUC.js.map → index-DOXzraja.js.map} +1 -1
- package/dist/chunks/index-DSedXH1s.js +2 -0
- package/dist/chunks/{index-ZaGEDS_0.js.map → index-DSedXH1s.js.map} +1 -1
- package/dist/chunks/{index-KOHUWYh0.js → index-DUY19L6M.js} +105 -106
- package/dist/chunks/{index-KOHUWYh0.js.map → index-DUY19L6M.js.map} +1 -1
- package/dist/chunks/{index-BADDrHDf.js → index-DVNjUEDJ.js} +9 -9
- package/dist/chunks/{index-BADDrHDf.js.map → index-DVNjUEDJ.js.map} +1 -1
- package/dist/chunks/index-DbTEJc-K.js +2 -0
- package/dist/chunks/index-DbTEJc-K.js.map +1 -0
- package/dist/chunks/{index-COoMV9Mh.js → index-DowO8Ued.js} +2 -2
- package/dist/chunks/{index-COoMV9Mh.js.map → index-DowO8Ued.js.map} +1 -1
- package/dist/chunks/{index-Ootk-hWL.js → index-L197Dry5.js} +17 -18
- package/dist/chunks/{index-Ootk-hWL.js.map → index-L197Dry5.js.map} +1 -1
- package/dist/chunks/{index-BwIBc5Vr.js → index-OpolRlgD.js} +3 -3
- package/dist/chunks/{index-BwIBc5Vr.js.map → index-OpolRlgD.js.map} +1 -1
- package/dist/chunks/index-QTIBH1Or.js +2 -0
- package/dist/chunks/{index-CZz7hHWb.js.map → index-QTIBH1Or.js.map} +1 -1
- package/dist/chunks/index-YtNA0Ueo.js +1328 -0
- package/dist/chunks/index-YtNA0Ueo.js.map +1 -0
- package/dist/chunks/{index-DwxB1_tE.js → index-cSjUS7Xj.js} +43 -44
- package/dist/chunks/{index-DwxB1_tE.js.map → index-cSjUS7Xj.js.map} +1 -1
- package/dist/chunks/index-iaug4k6v.js +8 -0
- package/dist/chunks/{index-UWtj4ULm.js.map → index-iaug4k6v.js.map} +1 -1
- package/dist/chunks/{menu.component-BvRBlU1u.js → menu.component-C-HbgplJ.js} +2 -2
- package/dist/chunks/{menu.component-BvRBlU1u.js.map → menu.component-C-HbgplJ.js.map} +1 -1
- package/dist/chunks/{menu.component-ti1ki8i1.js → menu.component-DRbCsT5G.js} +26 -26
- package/dist/chunks/{menu.component-ti1ki8i1.js.map → menu.component-DRbCsT5G.js.map} +1 -1
- package/dist/chunks/{modal.types-OT5YDIow.js → modal.types-BShblwxe.js} +4 -4
- package/dist/chunks/{modal.types-OT5YDIow.js.map → modal.types-BShblwxe.js.map} +1 -1
- package/dist/chunks/{modal.types-BnELR1Ol.js → modal.types-Bbjk7iGl.js} +2 -2
- package/dist/chunks/{modal.types-BnELR1Ol.js.map → modal.types-Bbjk7iGl.js.map} +1 -1
- package/dist/chunks/{pinInput.types-1yr3_0OI.js → pinInput.types-DzKllrSu.js} +2 -2
- package/dist/chunks/{pinInput.types-1yr3_0OI.js.map → pinInput.types-DzKllrSu.js.map} +1 -1
- package/dist/chunks/{pinInput.types-DP9RhKqz.js → pinInput.types-vJ-_jicz.js} +8 -8
- package/dist/chunks/{pinInput.types-DP9RhKqz.js.map → pinInput.types-vJ-_jicz.js.map} +1 -1
- package/dist/chunks/{popover-80QH8HEJ.js → popover-BSBYgvs4.js} +2 -2
- package/dist/chunks/{popover-80QH8HEJ.js.map → popover-BSBYgvs4.js.map} +1 -1
- package/dist/chunks/{popover-BpMSsJKD.js → popover-DNKVYG-J.js} +26 -26
- package/dist/chunks/{popover-BpMSsJKD.js.map → popover-DNKVYG-J.js.map} +1 -1
- package/dist/chunks/{popover-root-provider-rmv9U0xr.js → popover-root-provider-BErev2-N.js} +8 -8
- package/dist/chunks/{popover-root-provider-rmv9U0xr.js.map → popover-root-provider-BErev2-N.js.map} +1 -1
- package/dist/chunks/{popover-root-provider-DAMDDAHQ.js → popover-root-provider-C2iwUZJn.js} +2 -2
- package/dist/chunks/{popover-root-provider-DAMDDAHQ.js.map → popover-root-provider-C2iwUZJn.js.map} +1 -1
- package/dist/chunks/popover.component-BxwHgQIv.js +2 -0
- package/dist/chunks/popover.component-BxwHgQIv.js.map +1 -0
- package/dist/chunks/popover.component-CVGKw2zy.js +386 -0
- package/dist/chunks/popover.component-CVGKw2zy.js.map +1 -0
- package/dist/chunks/{radio.records-LkbGZcNW.js → radio.records-4ih1q8nO.js} +16 -16
- package/dist/chunks/{radio.records-LkbGZcNW.js.map → radio.records-4ih1q8nO.js.map} +1 -1
- package/dist/chunks/radio.records-j0JOqaJ4.js +2 -0
- package/dist/chunks/{radio.records-CV3axDFi.js.map → radio.records-j0JOqaJ4.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-DH5SnCI7.js → radioGroup.component-DOCa9IlZ.js} +11 -11
- package/dist/chunks/{radioGroup.component-DH5SnCI7.js.map → radioGroup.component-DOCa9IlZ.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-DjCuFGQG.js → radioGroup.component-HJ7ADLyQ.js} +2 -2
- package/dist/chunks/{radioGroup.component-DjCuFGQG.js.map → radioGroup.component-HJ7ADLyQ.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-b2Pw-1F_.js → ratingDots.component-BuFKV26e.js} +3 -3
- package/dist/chunks/{ratingDots.component-b2Pw-1F_.js.map → ratingDots.component-BuFKV26e.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-Czg5IgiN.js → ratingDots.component-CJuTm2VS.js} +2 -2
- package/dist/chunks/{ratingDots.component-Czg5IgiN.js.map → ratingDots.component-CJuTm2VS.js.map} +1 -1
- package/dist/chunks/{render-strategy-m3gtiO9A.js → render-strategy-CHp7lb6C.js} +2 -2
- package/dist/chunks/{render-strategy-m3gtiO9A.js.map → render-strategy-CHp7lb6C.js.map} +1 -1
- package/dist/chunks/{render-strategy-BmWbSgqh.js → render-strategy-C_zp9LNQ.js} +2 -2
- package/dist/chunks/{render-strategy-BmWbSgqh.js.map → render-strategy-C_zp9LNQ.js.map} +1 -1
- package/dist/chunks/{select.component-CIo-RvH_.js → select.component-CybeNI0i.js} +43 -43
- package/dist/chunks/{select.component-CIo-RvH_.js.map → select.component-CybeNI0i.js.map} +1 -1
- package/dist/chunks/{select.component-D2arS0o0.js → select.component-i_EaT6Zs.js} +2 -2
- package/dist/chunks/{select.component-D2arS0o0.js.map → select.component-i_EaT6Zs.js.map} +1 -1
- package/dist/chunks/{sortableList.component-BprhujW-.js → sortableList.component-C4sdfnNc.js} +3 -3
- package/dist/chunks/{sortableList.component-BprhujW-.js.map → sortableList.component-C4sdfnNc.js.map} +1 -1
- package/dist/chunks/{sortableList.component-DkOOWlZi.js → sortableList.component-Di02P6Xa.js} +2 -2
- package/dist/chunks/{sortableList.component-DkOOWlZi.js.map → sortableList.component-Di02P6Xa.js.map} +1 -1
- package/dist/chunks/{spinner.component--A74YhnV.js → spinner.component-Y6WSYB00.js} +2 -2
- package/dist/chunks/{spinner.component--A74YhnV.js.map → spinner.component-Y6WSYB00.js.map} +1 -1
- package/dist/chunks/{spinner.component-CyCqFb4q.js → spinner.component-mAs2EzXc.js} +2 -2
- package/dist/chunks/{spinner.component-CyCqFb4q.js.map → spinner.component-mAs2EzXc.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-CCuTmj5u.js → styledAvatar.types-D1U_mKEg.js} +2 -2
- package/dist/chunks/{styledAvatar.types-CCuTmj5u.js.map → styledAvatar.types-D1U_mKEg.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-DG91ByYD.js → styledAvatar.types-E52xMx_F.js} +2 -2
- package/dist/chunks/{styledAvatar.types-DG91ByYD.js.map → styledAvatar.types-E52xMx_F.js.map} +1 -1
- package/dist/chunks/{switch.component-frqBM_Af.js → switch.component-BC_L3Gzc.js} +2 -2
- package/dist/chunks/{switch.component-frqBM_Af.js.map → switch.component-BC_L3Gzc.js.map} +1 -1
- package/dist/chunks/{switch.component-Duu-vQCU.js → switch.component-F106ejwM.js} +11 -11
- package/dist/chunks/{switch.component-Duu-vQCU.js.map → switch.component-F106ejwM.js.map} +1 -1
- package/dist/chunks/{tabs.component-CqZ-1KM1.js → tabs.component-BSQtGb-N.js} +47 -47
- package/dist/chunks/{tabs.component-CqZ-1KM1.js.map → tabs.component-BSQtGb-N.js.map} +1 -1
- package/dist/chunks/{tabs.component-COJoNw1J.js → tabs.component-YEPvlQka.js} +2 -2
- package/dist/chunks/{tabs.component-COJoNw1J.js.map → tabs.component-YEPvlQka.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-CNRGkGi0.js → tagBlock.component-5R68SSbc.js} +2 -2
- package/dist/chunks/{tagBlock.component-CNRGkGi0.js.map → tagBlock.component-5R68SSbc.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-GOWWkkrD.js → tagBlock.component-C59sawdu.js} +5 -5
- package/dist/chunks/{tagBlock.component-GOWWkkrD.js.map → tagBlock.component-C59sawdu.js.map} +1 -1
- package/dist/chunks/{textInput.component-tH7q7tyB.js → textInput.component-BLxERLt1.js} +2 -2
- package/dist/chunks/{textInput.component-tH7q7tyB.js.map → textInput.component-BLxERLt1.js.map} +1 -1
- package/dist/chunks/{textInput.component-CZ5vEcX2.js → textInput.component-DF5JU8nm.js} +12 -12
- package/dist/chunks/{textInput.component-CZ5vEcX2.js.map → textInput.component-DF5JU8nm.js.map} +1 -1
- package/dist/chunks/{textarea.component-CckCPXIa.js → textarea.component-C3hMq2md.js} +2 -2
- package/dist/chunks/{textarea.component-CckCPXIa.js.map → textarea.component-C3hMq2md.js.map} +1 -1
- package/dist/chunks/{textarea.component-D55xPgy5.js → textarea.component-Cb7cJ3fE.js} +7 -7
- package/dist/chunks/{textarea.component-D55xPgy5.js.map → textarea.component-Cb7cJ3fE.js.map} +1 -1
- package/dist/chunks/theme.provider-BuF0PD7y.js +26 -0
- package/dist/chunks/theme.provider-BuF0PD7y.js.map +1 -0
- package/dist/chunks/{theme.provider-CYOEo6b-.js → theme.provider-DIHPjRt6.js} +1827 -1698
- package/dist/chunks/theme.provider-DIHPjRt6.js.map +1 -0
- package/dist/chunks/{timePicker.component-DevQsVia.js → timePicker.component-DOuFbuYn.js} +2 -2
- package/dist/chunks/timePicker.component-DOuFbuYn.js.map +1 -0
- package/dist/chunks/{timePicker.component-DdXZNjaq.js → timePicker.component-DzmwMnG3.js} +19 -20
- package/dist/chunks/timePicker.component-DzmwMnG3.js.map +1 -0
- package/dist/chunks/{timeRange.component-CRprxuDE.js → timeRange.component-BEJvno5T.js} +2 -2
- package/dist/chunks/{timeRange.component-CRprxuDE.js.map → timeRange.component-BEJvno5T.js.map} +1 -1
- package/dist/chunks/{timeRange.component-BADX9awY.js → timeRange.component-C6zB9wnu.js} +2 -2
- package/dist/chunks/{timeRange.component-BADX9awY.js.map → timeRange.component-C6zB9wnu.js.map} +1 -1
- package/dist/chunks/{timestamp.component-C11dDnCQ.js → timestamp.component-3r-E7s-6.js} +2 -2
- package/dist/chunks/{timestamp.component-C11dDnCQ.js.map → timestamp.component-3r-E7s-6.js.map} +1 -1
- package/dist/chunks/{timestamp.component-D7eN5_Rp.js → timestamp.component-CexMdlZm.js} +2 -2
- package/dist/chunks/{timestamp.component-D7eN5_Rp.js.map → timestamp.component-CexMdlZm.js.map} +1 -1
- package/dist/chunks/{toaster.records-Dp_v1E5T.js → toaster.records-CcwOeMM7.js} +21 -22
- package/dist/chunks/{toaster.records-Dp_v1E5T.js.map → toaster.records-CcwOeMM7.js.map} +1 -1
- package/dist/chunks/toaster.records-zJfplz5w.js +2 -0
- package/dist/chunks/{toaster.records-BJo0j1IZ.js.map → toaster.records-zJfplz5w.js.map} +1 -1
- package/dist/chunks/{typography.records-C6G_65b4.js → typography.records-CSy2LmDd.js} +2 -2
- package/dist/chunks/{typography.records-C6G_65b4.js.map → typography.records-CSy2LmDd.js.map} +1 -1
- package/dist/chunks/{typography.records-BVjSfRuB.js → typography.records-H4aA5AOA.js} +2 -2
- package/dist/chunks/{typography.records-BVjSfRuB.js.map → typography.records-H4aA5AOA.js.map} +1 -1
- package/dist/chunks/{use-field-context--wBJQY1R.js → use-field-context-CArmgHPP.js} +2 -2
- package/dist/chunks/{use-field-context--wBJQY1R.js.map → use-field-context-CArmgHPP.js.map} +1 -1
- package/dist/chunks/{use-field-context-xndZXNT4.js → use-field-context-Cm3grEyV.js} +2 -2
- package/dist/chunks/{use-field-context-xndZXNT4.js.map → use-field-context-Cm3grEyV.js.map} +1 -1
- package/dist/chunks/{use-locale-context-KeBTTMq9.js → use-locale-context-BiiNTYMT.js} +29 -29
- package/dist/chunks/{use-locale-context-KeBTTMq9.js.map → use-locale-context-BiiNTYMT.js.map} +1 -1
- package/dist/chunks/{use-locale-context-BdqHZ8L8.js → use-locale-context-D0LByRu9.js} +2 -2
- package/dist/chunks/{use-locale-context-BdqHZ8L8.js.map → use-locale-context-D0LByRu9.js.map} +1 -1
- package/dist/chunks/{withFormControl-C3CCUu8p.js → withFormControl-DyPM4V_t.js} +2 -2
- package/dist/chunks/{withFormControl-C3CCUu8p.js.map → withFormControl-DyPM4V_t.js.map} +1 -1
- package/dist/chunks/{withFormControl-CSnkTHz3.js → withFormControl-yxJx_BJg.js} +49 -49
- package/dist/chunks/{withFormControl-CSnkTHz3.js.map → withFormControl-yxJx_BJg.js.map} +1 -1
- package/dist/chunks/withTruncation-B-Hma82m.js +2 -0
- package/dist/chunks/withTruncation-B-Hma82m.js.map +1 -0
- package/dist/chunks/withTruncation-BRHPZgp1.js +581 -0
- package/dist/chunks/withTruncation-BRHPZgp1.js.map +1 -0
- package/dist/cjs/chakra/index.cjs +1 -1
- package/dist/cjs/components/Alert/index.cjs +1 -1
- package/dist/cjs/components/Avatar/index.cjs +1 -1
- package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
- package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
- package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
- package/dist/cjs/components/Checkbox/index.cjs +1 -1
- package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
- package/dist/cjs/components/ConversationCard/index.cjs +1 -1
- package/dist/cjs/components/DatePicker/index.cjs +1 -1
- package/dist/cjs/components/Heading/index.cjs +1 -1
- package/dist/cjs/components/Menu/index.cjs +1 -1
- package/dist/cjs/components/Modal/index.cjs +1 -1
- package/dist/cjs/components/PinInput/index.cjs +1 -1
- package/dist/cjs/components/Popover/index.cjs +1 -1
- package/dist/cjs/components/RadioGroup/index.cjs +1 -1
- package/dist/cjs/components/RatingDots/index.cjs +1 -1
- package/dist/cjs/components/Select/index.cjs +1 -1
- package/dist/cjs/components/SortableList/index.cjs +1 -1
- package/dist/cjs/components/Spinner/index.cjs +1 -1
- package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
- package/dist/cjs/components/Switch/index.cjs +1 -1
- package/dist/cjs/components/Tabs/index.cjs +1 -1
- package/dist/cjs/components/TagBlock/index.cjs +1 -1
- package/dist/cjs/components/Text/index.cjs +1 -1
- package/dist/cjs/components/TextInput/index.cjs +1 -1
- package/dist/cjs/components/Textarea/index.cjs +1 -1
- package/dist/cjs/components/TimePicker/index.cjs +1 -1
- package/dist/cjs/components/TimeRange/index.cjs +1 -1
- package/dist/cjs/components/Timestamp/index.cjs +1 -1
- package/dist/cjs/components/Toast/index.cjs +1 -1
- package/dist/cjs/components/Tooltip/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/index.cjs +1 -1
- package/dist/esm/chakra/index.js +8 -8
- package/dist/esm/components/Alert/index.js +1 -1
- package/dist/esm/components/Avatar/index.js +1 -1
- package/dist/esm/components/AvatarGroup/index.js +1 -1
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/CharacterCounter/index.js +1 -1
- package/dist/esm/components/Checkbox/index.js +1 -1
- package/dist/esm/components/CheckboxGroup/index.js +1 -1
- package/dist/esm/components/ConversationCard/index.js +1 -1
- package/dist/esm/components/DatePicker/index.js +1 -1
- package/dist/esm/components/Heading/index.js +1 -1
- package/dist/esm/components/Menu/index.js +1 -1
- package/dist/esm/components/Modal/index.js +1 -1
- package/dist/esm/components/PinInput/index.js +1 -1
- package/dist/esm/components/Popover/index.js +1 -1
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/RatingDots/index.js +1 -1
- package/dist/esm/components/Select/index.js +1 -1
- package/dist/esm/components/SortableList/index.js +1 -1
- package/dist/esm/components/Spinner/index.js +1 -1
- package/dist/esm/components/StyledAvatar/index.js +1 -1
- package/dist/esm/components/Switch/index.js +1 -1
- package/dist/esm/components/Tabs/index.js +1 -1
- package/dist/esm/components/TagBlock/index.js +1 -1
- package/dist/esm/components/Text/index.js +1 -1
- package/dist/esm/components/TextInput/index.js +1 -1
- package/dist/esm/components/Textarea/index.js +1 -1
- package/dist/esm/components/TimePicker/index.js +1 -1
- package/dist/esm/components/TimeRange/index.js +1 -1
- package/dist/esm/components/Timestamp/index.js +1 -1
- package/dist/esm/components/Toast/index.js +1 -1
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +29 -29
- package/dist/esm/index.js +30 -30
- package/dist/esm/theme/index.js +1 -1
- package/dist/types/components/Avatar/avatar.recipe.d.ts +1 -1
- package/dist/types/components/Button/button.recipe.d.ts +1 -1
- package/dist/types/components/Logo/logo.recipe.d.ts +1 -1
- package/dist/types/components/Menu/menu.recipe.d.ts +1 -1
- package/dist/types/components/Modal/modal.recipe.d.ts +1 -1
- package/dist/types/components/PinInput/pinInput.recipe.d.ts +1 -1
- package/dist/types/components/Popover/popover.recipe.d.ts +1 -1
- package/dist/types/components/Spinner/spinner.recipe.d.ts +1 -1
- package/dist/types/components/TimePicker/timePicker.recipe.d.ts +1 -1
- package/dist/types/components/Tooltip/tooltip.component.d.ts +4 -2
- package/dist/types/components/Tooltip/tooltip.recipe.d.ts +1 -1
- package/dist/types/theme/tokens/shadows/shadows.config.d.ts +3 -3
- package/dist/types/theme/tokens/sizes/sizes.config.d.ts +3 -3
- package/dist/types/theme/tokens/spacing/spacing.config.d.ts +3 -3
- package/dist/types/theme/tokens/transitions/transitions.config.d.ts +2 -2
- package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +8 -8
- package/package.json +1 -1
- package/dist/chunks/checkbox.records-CXDQlfs4.js +0 -2
- package/dist/chunks/datePicker.component-CYeP02vZ.js.map +0 -1
- package/dist/chunks/datePicker.component-DwGsDzmJ.js.map +0 -1
- package/dist/chunks/index-BDnnTdaJ.js +0 -2
- package/dist/chunks/index-BGwwyukg.js +0 -2
- package/dist/chunks/index-BGwwyukg.js.map +0 -1
- package/dist/chunks/index-BIz6smcP.js +0 -322
- package/dist/chunks/index-BIz6smcP.js.map +0 -1
- package/dist/chunks/index-CZ42b9rT.js +0 -3
- package/dist/chunks/index-CZ42b9rT.js.map +0 -1
- package/dist/chunks/index-CZz7hHWb.js +0 -2
- package/dist/chunks/index-CfQe7XQk.js +0 -2
- package/dist/chunks/index-Czx27hGN.js +0 -1018
- package/dist/chunks/index-Czx27hGN.js.map +0 -1
- package/dist/chunks/index-MlhL0PDC.js +0 -2
- package/dist/chunks/index-UWtj4ULm.js +0 -8
- package/dist/chunks/index-ZaGEDS_0.js +0 -2
- package/dist/chunks/popover.component-CpS9xV8Q.js +0 -322
- package/dist/chunks/popover.component-CpS9xV8Q.js.map +0 -1
- package/dist/chunks/popover.component-DS0EiGlE.js +0 -2
- package/dist/chunks/popover.component-DS0EiGlE.js.map +0 -1
- package/dist/chunks/popover.recipe-DLeyokHo.js +0 -2
- package/dist/chunks/popover.recipe-DLeyokHo.js.map +0 -1
- package/dist/chunks/popover.recipe-_90TbZhK.js +0 -479
- package/dist/chunks/popover.recipe-_90TbZhK.js.map +0 -1
- package/dist/chunks/radio.records-CV3axDFi.js +0 -2
- package/dist/chunks/theme.provider-B3cH9Mqo.js +0 -26
- package/dist/chunks/theme.provider-B3cH9Mqo.js.map +0 -1
- package/dist/chunks/theme.provider-CYOEo6b-.js.map +0 -1
- package/dist/chunks/timePicker.component-DdXZNjaq.js.map +0 -1
- package/dist/chunks/timePicker.component-DevQsVia.js.map +0 -1
- package/dist/chunks/toaster.records-BJo0j1IZ.js +0 -2
- package/dist/chunks/withTruncation-DcoulzNi.js +0 -828
- package/dist/chunks/withTruncation-DcoulzNi.js.map +0 -1
- package/dist/chunks/withTruncation-DqAm-acL.js +0 -2
- package/dist/chunks/withTruncation-DqAm-acL.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-C6cNrRSG.js","sources":["../../node_modules/@zag-js/aria-hidden/dist/index.mjs","../../node_modules/@zag-js/focus-trap/dist/index.mjs","../../node_modules/@zag-js/remove-scroll/dist/index.mjs"],"sourcesContent":["// src/walk-tree-outside.ts\nvar counterMap = /* @__PURE__ */ new WeakMap();\nvar uncontrolledNodes = /* @__PURE__ */ new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = (node) => node && (node.host || unwrapHost(node.parentNode));\nvar correctTargets = (parent, targets) => targets.map((target) => {\n if (parent.contains(target)) return target;\n const correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error(\"[zag-js > ariaHidden] target\", target, \"in not contained inside\", parent, \". Doing nothing\");\n return null;\n}).filter((x) => Boolean(x));\nvar isIgnoredNode = (node) => {\n if (node.localName === \"next-route-announcer\") return true;\n if (node.localName === \"script\") return true;\n if (node.hasAttribute(\"aria-live\")) return true;\n return node.matches(\"[data-live-announcer]\");\n};\nvar walkTreeOutside = (originalTarget, props) => {\n const { parentNode, markerName, controlAttribute} = props;\n const targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n markerMap[markerName] || (markerMap[markerName] = /* @__PURE__ */ new WeakMap());\n const markerCounter = markerMap[markerName];\n const hiddenNodes = [];\n const elementsToKeep = /* @__PURE__ */ new Set();\n const elementsToStop = new Set(targets);\n const keep = (el) => {\n if (!el || elementsToKeep.has(el)) return;\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n const deep = (parent) => {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, (node) => {\n if (elementsToKeep.has(node)) {\n deep(node);\n } else {\n try {\n if (isIgnoredNode(node)) return;\n const attr = node.getAttribute(controlAttribute);\n const alreadyHidden = attr === \"true\" ;\n const counterValue = (counterMap.get(node) || 0) + 1;\n const markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, \"\");\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, \"true\" );\n }\n } catch (e) {\n console.error(\"[zag-js > ariaHidden] cannot operate on \", node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return () => {\n hiddenNodes.forEach((node) => {\n const counterValue = counterMap.get(node) - 1;\n const markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n counterMap = /* @__PURE__ */ new WeakMap();\n counterMap = /* @__PURE__ */ new WeakMap();\n uncontrolledNodes = /* @__PURE__ */ new WeakMap();\n markerMap = {};\n }\n };\n};\n\n// src/aria-hidden.ts\nvar getParentNode = (originalTarget) => {\n const target = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return target.ownerDocument.body;\n};\nvar hideOthers = (originalTarget, parentNode = getParentNode(originalTarget), markerName = \"data-aria-hidden\") => {\n if (!parentNode) return;\n return walkTreeOutside(originalTarget, {\n parentNode,\n markerName,\n controlAttribute: \"aria-hidden\"});\n};\n\n// src/index.ts\nvar raf = (fn) => {\n const frameId = requestAnimationFrame(() => fn());\n return () => cancelAnimationFrame(frameId);\n};\nfunction ariaHidden(targetsOrFn, options = {}) {\n const { defer = true } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const targets = typeof targetsOrFn === \"function\" ? targetsOrFn() : targetsOrFn;\n const elements = targets.filter(Boolean);\n if (elements.length === 0) return;\n cleanups.push(hideOthers(elements));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\n\nexport { ariaHidden };\n","import { getDocument, getTabbables, getFocusables, isTabbable, getTabIndex, addDomEvent, raf, getEventTarget, isDocument, isFocusable, getActiveElement } from '@zag-js/dom-query';\n\nvar __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\nvar activeFocusTraps = {\n activateTrap(trapStack, trap) {\n if (trapStack.length > 0) {\n const activeTrap = trapStack[trapStack.length - 1];\n if (activeTrap !== trap) {\n activeTrap.pause();\n }\n }\n const trapIndex = trapStack.indexOf(trap);\n if (trapIndex === -1) {\n trapStack.push(trap);\n } else {\n trapStack.splice(trapIndex, 1);\n trapStack.push(trap);\n }\n },\n deactivateTrap(trapStack, trap) {\n const trapIndex = trapStack.indexOf(trap);\n if (trapIndex !== -1) {\n trapStack.splice(trapIndex, 1);\n }\n if (trapStack.length > 0) {\n trapStack[trapStack.length - 1].unpause();\n }\n }\n};\nvar sharedTrapStack = [];\nvar FocusTrap = class {\n constructor(elements, options) {\n __publicField(this, \"trapStack\");\n __publicField(this, \"config\");\n __publicField(this, \"doc\");\n __publicField(this, \"state\", {\n containers: [],\n containerGroups: [],\n tabbableGroups: [],\n nodeFocusedBeforeActivation: null,\n mostRecentlyFocusedNode: null,\n active: false,\n paused: false,\n delayInitialFocusTimer: void 0,\n recentNavEvent: void 0\n });\n __publicField(this, \"listenerCleanups\", []);\n __publicField(this, \"handleFocus\", (event) => {\n const target = getEventTarget(event);\n const targetContained = this.findContainerIndex(target, event) >= 0;\n if (targetContained || isDocument(target)) {\n if (targetContained) {\n this.state.mostRecentlyFocusedNode = target;\n }\n } else {\n event.stopImmediatePropagation();\n let nextNode;\n let navAcrossContainers = true;\n if (this.state.mostRecentlyFocusedNode) {\n if (getTabIndex(this.state.mostRecentlyFocusedNode) > 0) {\n const mruContainerIdx = this.findContainerIndex(this.state.mostRecentlyFocusedNode);\n const { tabbableNodes } = this.state.containerGroups[mruContainerIdx];\n if (tabbableNodes.length > 0) {\n const mruTabIdx = tabbableNodes.findIndex((node) => node === this.state.mostRecentlyFocusedNode);\n if (mruTabIdx >= 0) {\n if (this.config.isKeyForward(this.state.recentNavEvent)) {\n if (mruTabIdx + 1 < tabbableNodes.length) {\n nextNode = tabbableNodes[mruTabIdx + 1];\n navAcrossContainers = false;\n }\n } else {\n if (mruTabIdx - 1 >= 0) {\n nextNode = tabbableNodes[mruTabIdx - 1];\n navAcrossContainers = false;\n }\n }\n }\n }\n } else {\n if (!this.state.containerGroups.some((g) => g.tabbableNodes.some((n) => getTabIndex(n) > 0))) {\n navAcrossContainers = false;\n }\n }\n } else {\n navAcrossContainers = false;\n }\n if (navAcrossContainers) {\n nextNode = this.findNextNavNode({\n // move FROM the MRU node, not event-related node (which will be the node that is\n // outside the trap causing the focus escape we're trying to fix)\n target: this.state.mostRecentlyFocusedNode,\n isBackward: this.config.isKeyBackward(this.state.recentNavEvent)\n });\n }\n if (nextNode) {\n this.tryFocus(nextNode);\n } else {\n this.tryFocus(this.state.mostRecentlyFocusedNode || this.getInitialFocusNode());\n }\n }\n this.state.recentNavEvent = void 0;\n });\n __publicField(this, \"handlePointerDown\", (event) => {\n const target = getEventTarget(event);\n if (this.findContainerIndex(target, event) >= 0) {\n return;\n }\n if (valueOrHandler(this.config.clickOutsideDeactivates, event)) {\n this.deactivate({ returnFocus: this.config.returnFocusOnDeactivate });\n return;\n }\n if (valueOrHandler(this.config.allowOutsideClick, event)) {\n return;\n }\n event.preventDefault();\n });\n __publicField(this, \"handleClick\", (event) => {\n const target = getEventTarget(event);\n if (this.findContainerIndex(target, event) >= 0) {\n return;\n }\n if (valueOrHandler(this.config.clickOutsideDeactivates, event)) {\n return;\n }\n if (valueOrHandler(this.config.allowOutsideClick, event)) {\n return;\n }\n event.preventDefault();\n event.stopImmediatePropagation();\n });\n __publicField(this, \"handleTabKey\", (event) => {\n if (this.config.isKeyForward(event) || this.config.isKeyBackward(event)) {\n this.state.recentNavEvent = event;\n const isBackward = this.config.isKeyBackward(event);\n const destinationNode = this.findNextNavNode({ event, isBackward });\n if (!destinationNode) return;\n if (isTabEvent(event)) {\n event.preventDefault();\n }\n this.tryFocus(destinationNode);\n }\n });\n __publicField(this, \"handleEscapeKey\", (event) => {\n if (isEscapeEvent(event) && valueOrHandler(this.config.escapeDeactivates, event) !== false) {\n event.preventDefault();\n this.deactivate();\n }\n });\n __publicField(this, \"_mutationObserver\");\n __publicField(this, \"setupMutationObserver\", () => {\n const win = this.doc.defaultView || window;\n this._mutationObserver = new win.MutationObserver((mutations) => {\n const isFocusedNodeRemoved = mutations.some((mutation) => {\n const removedNodes = Array.from(mutation.removedNodes);\n return removedNodes.some((node) => node === this.state.mostRecentlyFocusedNode);\n });\n if (isFocusedNodeRemoved) {\n this.tryFocus(this.getInitialFocusNode());\n }\n });\n });\n __publicField(this, \"updateObservedNodes\", () => {\n this._mutationObserver?.disconnect();\n if (this.state.active && !this.state.paused) {\n this.state.containers.map((container) => {\n this._mutationObserver?.observe(container, { subtree: true, childList: true });\n });\n }\n });\n __publicField(this, \"getInitialFocusNode\", () => {\n let node = this.getNodeForOption(\"initialFocus\", { hasFallback: true });\n if (node === false) {\n return false;\n }\n if (node === void 0 || node && !isFocusable(node)) {\n if (this.findContainerIndex(this.doc.activeElement) >= 0) {\n node = this.doc.activeElement;\n } else {\n const firstTabbableGroup = this.state.tabbableGroups[0];\n const firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;\n node = firstTabbableNode || this.getNodeForOption(\"fallbackFocus\");\n }\n } else if (node === null) {\n node = this.getNodeForOption(\"fallbackFocus\");\n }\n if (!node) {\n throw new Error(\"Your focus-trap needs to have at least one focusable element\");\n }\n if (!node.isConnected) {\n node = this.getNodeForOption(\"fallbackFocus\");\n }\n return node;\n });\n __publicField(this, \"tryFocus\", (node) => {\n if (node === false) return;\n if (node === getActiveElement(this.doc)) return;\n if (!node || !node.focus) {\n this.tryFocus(this.getInitialFocusNode());\n return;\n }\n node.focus({ preventScroll: !!this.config.preventScroll });\n this.state.mostRecentlyFocusedNode = node;\n if (isSelectableInput(node)) {\n node.select();\n }\n });\n __publicField(this, \"deactivate\", (deactivateOptions) => {\n if (!this.state.active) return this;\n const options = {\n onDeactivate: this.config.onDeactivate,\n onPostDeactivate: this.config.onPostDeactivate,\n checkCanReturnFocus: this.config.checkCanReturnFocus,\n ...deactivateOptions\n };\n clearTimeout(this.state.delayInitialFocusTimer);\n this.state.delayInitialFocusTimer = void 0;\n this.removeListeners();\n this.state.active = false;\n this.state.paused = false;\n this.updateObservedNodes();\n activeFocusTraps.deactivateTrap(this.trapStack, this);\n const onDeactivate = this.getOption(options, \"onDeactivate\");\n const onPostDeactivate = this.getOption(options, \"onPostDeactivate\");\n const checkCanReturnFocus = this.getOption(options, \"checkCanReturnFocus\");\n const returnFocus = this.getOption(options, \"returnFocus\", \"returnFocusOnDeactivate\");\n onDeactivate?.();\n const finishDeactivation = () => {\n delay(() => {\n if (returnFocus) {\n const returnFocusNode = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);\n this.tryFocus(returnFocusNode);\n }\n onPostDeactivate?.();\n });\n };\n if (returnFocus && checkCanReturnFocus) {\n const returnFocusNode = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);\n checkCanReturnFocus(returnFocusNode).then(finishDeactivation, finishDeactivation);\n return this;\n }\n finishDeactivation();\n return this;\n });\n __publicField(this, \"pause\", (pauseOptions) => {\n if (this.state.paused || !this.state.active) {\n return this;\n }\n const onPause = this.getOption(pauseOptions, \"onPause\");\n const onPostPause = this.getOption(pauseOptions, \"onPostPause\");\n this.state.paused = true;\n onPause?.();\n this.removeListeners();\n this.updateObservedNodes();\n onPostPause?.();\n return this;\n });\n __publicField(this, \"unpause\", (unpauseOptions) => {\n if (!this.state.paused || !this.state.active) {\n return this;\n }\n const onUnpause = this.getOption(unpauseOptions, \"onUnpause\");\n const onPostUnpause = this.getOption(unpauseOptions, \"onPostUnpause\");\n this.state.paused = false;\n onUnpause?.();\n this.updateTabbableNodes();\n this.addListeners();\n this.updateObservedNodes();\n onPostUnpause?.();\n return this;\n });\n __publicField(this, \"updateContainerElements\", (containerElements) => {\n this.state.containers = Array.isArray(containerElements) ? containerElements.filter(Boolean) : [containerElements].filter(Boolean);\n if (this.state.active) {\n this.updateTabbableNodes();\n }\n this.updateObservedNodes();\n return this;\n });\n __publicField(this, \"getReturnFocusNode\", (previousActiveElement) => {\n const node = this.getNodeForOption(\"setReturnFocus\", {\n params: [previousActiveElement]\n });\n return node ? node : node === false ? false : previousActiveElement;\n });\n __publicField(this, \"getOption\", (configOverrideOptions, optionName, configOptionName) => {\n return configOverrideOptions && configOverrideOptions[optionName] !== void 0 ? configOverrideOptions[optionName] : (\n // @ts-expect-error\n this.config[configOptionName || optionName]\n );\n });\n __publicField(this, \"getNodeForOption\", (optionName, { hasFallback = false, params = [] } = {}) => {\n let optionValue = this.config[optionName];\n if (typeof optionValue === \"function\") optionValue = optionValue(...params);\n if (optionValue === true) optionValue = void 0;\n if (!optionValue) {\n if (optionValue === void 0 || optionValue === false) {\n return optionValue;\n }\n throw new Error(`\\`${optionName}\\` was specified but was not a node, or did not return a node`);\n }\n let node = optionValue;\n if (typeof optionValue === \"string\") {\n try {\n node = this.doc.querySelector(optionValue);\n } catch (err) {\n throw new Error(`\\`${optionName}\\` appears to be an invalid selector; error=\"${err.message}\"`);\n }\n if (!node) {\n if (!hasFallback) {\n throw new Error(`\\`${optionName}\\` as selector refers to no known node`);\n }\n }\n }\n return node;\n });\n __publicField(this, \"findNextNavNode\", (opts) => {\n const { event, isBackward = false } = opts;\n const target = opts.target || getEventTarget(event);\n this.updateTabbableNodes();\n let destinationNode = null;\n if (this.state.tabbableGroups.length > 0) {\n const containerIndex = this.findContainerIndex(target, event);\n const containerGroup = containerIndex >= 0 ? this.state.containerGroups[containerIndex] : void 0;\n if (containerIndex < 0) {\n if (isBackward) {\n destinationNode = this.state.tabbableGroups[this.state.tabbableGroups.length - 1].lastTabbableNode;\n } else {\n destinationNode = this.state.tabbableGroups[0].firstTabbableNode;\n }\n } else if (isBackward) {\n let startOfGroupIndex = this.state.tabbableGroups.findIndex(\n ({ firstTabbableNode }) => target === firstTabbableNode\n );\n if (startOfGroupIndex < 0 && (containerGroup?.container === target || isFocusable(target) && !isTabbable(target) && !containerGroup?.nextTabbableNode(target, false))) {\n startOfGroupIndex = containerIndex;\n }\n if (startOfGroupIndex >= 0) {\n const destinationGroupIndex = startOfGroupIndex === 0 ? this.state.tabbableGroups.length - 1 : startOfGroupIndex - 1;\n const destinationGroup = this.state.tabbableGroups[destinationGroupIndex];\n destinationNode = getTabIndex(target) >= 0 ? destinationGroup.lastTabbableNode : destinationGroup.lastDomTabbableNode;\n } else if (!isTabEvent(event)) {\n destinationNode = containerGroup?.nextTabbableNode(target, false);\n }\n } else {\n let lastOfGroupIndex = this.state.tabbableGroups.findIndex(\n ({ lastTabbableNode }) => target === lastTabbableNode\n );\n if (lastOfGroupIndex < 0 && (containerGroup?.container === target || isFocusable(target) && !isTabbable(target) && !containerGroup?.nextTabbableNode(target))) {\n lastOfGroupIndex = containerIndex;\n }\n if (lastOfGroupIndex >= 0) {\n const destinationGroupIndex = lastOfGroupIndex === this.state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;\n const destinationGroup = this.state.tabbableGroups[destinationGroupIndex];\n destinationNode = getTabIndex(target) >= 0 ? destinationGroup.firstTabbableNode : destinationGroup.firstDomTabbableNode;\n } else if (!isTabEvent(event)) {\n destinationNode = containerGroup?.nextTabbableNode(target);\n }\n }\n } else {\n destinationNode = this.getNodeForOption(\"fallbackFocus\");\n }\n return destinationNode;\n });\n this.trapStack = options.trapStack || sharedTrapStack;\n const config = {\n returnFocusOnDeactivate: true,\n escapeDeactivates: true,\n delayInitialFocus: true,\n isKeyForward(e) {\n return isTabEvent(e) && !e.shiftKey;\n },\n isKeyBackward(e) {\n return isTabEvent(e) && e.shiftKey;\n },\n ...options\n };\n this.doc = config.document || getDocument(Array.isArray(elements) ? elements[0] : elements);\n this.config = config;\n this.updateContainerElements(elements);\n this.setupMutationObserver();\n }\n get active() {\n return this.state.active;\n }\n get paused() {\n return this.state.paused;\n }\n findContainerIndex(element, event) {\n const composedPath = typeof event?.composedPath === \"function\" ? event.composedPath() : void 0;\n return this.state.containerGroups.findIndex(\n ({ container, tabbableNodes }) => container.contains(element) || composedPath?.includes(container) || tabbableNodes.find((node) => node === element)\n );\n }\n updateTabbableNodes() {\n this.state.containerGroups = this.state.containers.map((container) => {\n const tabbableNodes = getTabbables(container);\n const focusableNodes = getFocusables(container);\n const firstTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[0] : void 0;\n const lastTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : void 0;\n const firstDomTabbableNode = focusableNodes.find((node) => isTabbable(node));\n const lastDomTabbableNode = focusableNodes.slice().reverse().find((node) => isTabbable(node));\n const posTabIndexesFound = !!tabbableNodes.find((node) => getTabIndex(node) > 0);\n function nextTabbableNode(node, forward = true) {\n const nodeIdx = tabbableNodes.indexOf(node);\n if (nodeIdx < 0) {\n if (forward) {\n return focusableNodes.slice(focusableNodes.indexOf(node) + 1).find((el) => isTabbable(el));\n }\n return focusableNodes.slice(0, focusableNodes.indexOf(node)).reverse().find((el) => isTabbable(el));\n }\n return tabbableNodes[nodeIdx + (forward ? 1 : -1)];\n }\n return {\n container,\n tabbableNodes,\n focusableNodes,\n posTabIndexesFound,\n firstTabbableNode,\n lastTabbableNode,\n firstDomTabbableNode,\n lastDomTabbableNode,\n nextTabbableNode\n };\n });\n this.state.tabbableGroups = this.state.containerGroups.filter((group) => group.tabbableNodes.length > 0);\n if (this.state.tabbableGroups.length <= 0 && !this.getNodeForOption(\"fallbackFocus\")) {\n throw new Error(\n \"Your focus-trap must have at least one container with at least one tabbable node in it at all times\"\n );\n }\n if (this.state.containerGroups.find((g) => g.posTabIndexesFound) && this.state.containerGroups.length > 1) {\n throw new Error(\n \"At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.\"\n );\n }\n }\n addListeners() {\n if (!this.state.active) return;\n activeFocusTraps.activateTrap(this.trapStack, this);\n this.state.delayInitialFocusTimer = this.config.delayInitialFocus ? delay(() => {\n this.tryFocus(this.getInitialFocusNode());\n }) : this.tryFocus(this.getInitialFocusNode());\n this.listenerCleanups.push(\n addDomEvent(this.doc, \"focusin\", this.handleFocus, true),\n addDomEvent(this.doc, \"mousedown\", this.handlePointerDown, { capture: true, passive: false }),\n addDomEvent(this.doc, \"touchstart\", this.handlePointerDown, { capture: true, passive: false }),\n addDomEvent(this.doc, \"click\", this.handleClick, { capture: true, passive: false }),\n addDomEvent(this.doc, \"keydown\", this.handleTabKey, { capture: true, passive: false }),\n addDomEvent(this.doc, \"keydown\", this.handleEscapeKey)\n );\n return this;\n }\n removeListeners() {\n if (!this.state.active) return;\n this.listenerCleanups.forEach((cleanup) => cleanup());\n this.listenerCleanups = [];\n return this;\n }\n activate(activateOptions) {\n if (this.state.active) {\n return this;\n }\n const onActivate = this.getOption(activateOptions, \"onActivate\");\n const onPostActivate = this.getOption(activateOptions, \"onPostActivate\");\n const checkCanFocusTrap = this.getOption(activateOptions, \"checkCanFocusTrap\");\n if (!checkCanFocusTrap) {\n this.updateTabbableNodes();\n }\n this.state.active = true;\n this.state.paused = false;\n this.state.nodeFocusedBeforeActivation = this.doc.activeElement || null;\n onActivate?.();\n const finishActivation = () => {\n if (checkCanFocusTrap) {\n this.updateTabbableNodes();\n }\n this.addListeners();\n this.updateObservedNodes();\n onPostActivate?.();\n };\n if (checkCanFocusTrap) {\n checkCanFocusTrap(this.state.containers.concat()).then(finishActivation, finishActivation);\n return this;\n }\n finishActivation();\n return this;\n }\n};\nvar isTabEvent = (event) => event.key === \"Tab\";\nvar valueOrHandler = (value, ...params) => typeof value === \"function\" ? value(...params) : value;\nvar isEscapeEvent = (event) => !event.isComposing && event.key === \"Escape\";\nvar delay = (fn) => setTimeout(fn, 0);\nvar isSelectableInput = (node) => node.localName === \"input\" && \"select\" in node && typeof node.select === \"function\";\n\n// src/index.ts\nfunction trapFocus(el, options = {}) {\n let trap;\n const cleanup = raf(() => {\n const contentEl = typeof el === \"function\" ? el() : el;\n if (!contentEl) return;\n trap = new FocusTrap(contentEl, {\n escapeDeactivates: false,\n allowOutsideClick: true,\n preventScroll: true,\n returnFocusOnDeactivate: true,\n delayInitialFocus: false,\n fallbackFocus: contentEl,\n ...options,\n document: getDocument(contentEl)\n });\n try {\n trap.activate();\n } catch {\n }\n });\n return function destroy() {\n trap?.deactivate();\n cleanup();\n };\n}\n\nexport { FocusTrap, trapFocus };\n","import { setStyleProperty, setStyle, isIos } from '@zag-js/dom-query';\n\n// src/index.ts\nvar LOCK_CLASSNAME = \"data-scroll-lock\";\nfunction getPaddingProperty(documentElement) {\n const documentLeft = documentElement.getBoundingClientRect().left;\n const scrollbarX = Math.round(documentLeft) + documentElement.scrollLeft;\n return scrollbarX ? \"paddingLeft\" : \"paddingRight\";\n}\nfunction preventBodyScroll(_document) {\n const doc = _document ?? document;\n const win = doc.defaultView ?? window;\n const { documentElement, body } = doc;\n const locked = body.hasAttribute(LOCK_CLASSNAME);\n if (locked) return;\n body.setAttribute(LOCK_CLASSNAME, \"\");\n const scrollbarWidth = win.innerWidth - documentElement.clientWidth;\n const setScrollbarWidthProperty = () => setStyleProperty(documentElement, \"--scrollbar-width\", `${scrollbarWidth}px`);\n const paddingProperty = getPaddingProperty(documentElement);\n const setBodyStyle = () => setStyle(body, {\n overflow: \"hidden\",\n [paddingProperty]: `${scrollbarWidth}px`\n });\n const setBodyStyleIOS = () => {\n const { scrollX, scrollY, visualViewport } = win;\n const offsetLeft = visualViewport?.offsetLeft ?? 0;\n const offsetTop = visualViewport?.offsetTop ?? 0;\n const restoreStyle = setStyle(body, {\n position: \"fixed\",\n overflow: \"hidden\",\n top: `${-(scrollY - Math.floor(offsetTop))}px`,\n left: `${-(scrollX - Math.floor(offsetLeft))}px`,\n right: \"0\",\n [paddingProperty]: `${scrollbarWidth}px`\n });\n return () => {\n restoreStyle?.();\n win.scrollTo({ left: scrollX, top: scrollY, behavior: \"instant\" });\n };\n };\n const cleanups = [setScrollbarWidthProperty(), isIos() ? setBodyStyleIOS() : setBodyStyle()];\n return () => {\n cleanups.forEach((fn) => fn?.());\n body.removeAttribute(LOCK_CLASSNAME);\n };\n}\n\nexport { preventBodyScroll };\n"],"names":["counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","isIgnoredNode","walkTreeOutside","originalTarget","props","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","alreadyHidden","counterValue","markerValue","e","getParentNode","hideOthers","raf","fn","frameId","ariaHidden","targetsOrFn","options","defer","func","v","cleanups","elements","__defProp","__defNormalProp","obj","key","value","__publicField","activeFocusTraps","trapStack","trap","activeTrap","trapIndex","sharedTrapStack","FocusTrap","event","getEventTarget","targetContained","isDocument","nextNode","navAcrossContainers","getTabIndex","mruContainerIdx","tabbableNodes","mruTabIdx","g","n","valueOrHandler","isBackward","destinationNode","isTabEvent","isEscapeEvent","win","mutations","mutation","container","isFocusable","firstTabbableGroup","getActiveElement","isSelectableInput","deactivateOptions","onDeactivate","onPostDeactivate","checkCanReturnFocus","returnFocus","finishDeactivation","delay","returnFocusNode","pauseOptions","onPause","onPostPause","unpauseOptions","onUnpause","onPostUnpause","containerElements","previousActiveElement","configOverrideOptions","optionName","configOptionName","hasFallback","params","optionValue","err","opts","containerIndex","containerGroup","startOfGroupIndex","firstTabbableNode","isTabbable","destinationGroupIndex","destinationGroup","lastOfGroupIndex","lastTabbableNode","config","getDocument","element","composedPath","getTabbables","focusableNodes","getFocusables","firstDomTabbableNode","lastDomTabbableNode","posTabIndexesFound","nextTabbableNode","forward","nodeIdx","group","addDomEvent","cleanup","activateOptions","onActivate","onPostActivate","checkCanFocusTrap","finishActivation","trapFocus","contentEl","LOCK_CLASSNAME","getPaddingProperty","documentElement","documentLeft","preventBodyScroll","_document","doc","body","scrollbarWidth","setScrollbarWidthProperty","setStyleProperty","paddingProperty","setBodyStyle","setStyle","setBodyStyleIOS","scrollX","scrollY","visualViewport","offsetLeft","offsetTop","restoreStyle","isIos"],"mappings":";AACA,IAAIA,IAA6B,oBAAI,QAAS,GAC1CC,IAAoC,oBAAI,QAAS,GACjDC,IAAY,CAAE,GACdC,IAAY,GACZC,IAAa,CAACC,MAASA,MAASA,EAAK,QAAQD,EAAWC,EAAK,UAAU,IACvEC,IAAiB,CAACC,GAAQC,MAAYA,EAAQ,IAAI,CAACC,MAAW;AAChE,MAAIF,EAAO,SAASE,CAAM,EAAG,QAAOA;AACpC,QAAMC,IAAkBN,EAAWK,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AAA,MAC1C,MAAM,GAAG,EAAEJ,IAAU,KAAK,MAAMG,CAAU,EAAE;AAAA,MAC5C,OAAO;AAAA,MACP,CAACP,CAAe,GAAG,GAAGH,CAAc;AAAA,IAC1C,CAAK;AACD,WAAO,MAAM;AACX,MAAAY,IAAgB,GAChBpF,EAAI,SAAS,EAAE,MAAM+E,GAAS,KAAKC,GAAS,UAAU,WAAW;AAAA,IAClE;AAAA,EACF,GACKhH,IAAW,CAACyG,EAA2B,GAAEY,EAAK,IAAKP,EAAe,IAAKF,GAAc;AAC3F,SAAO,MAAM;AACX,IAAA5G,EAAS,QAAQ,CAACR,MAAOA,IAAE,CAAI,GAC/B+G,EAAK,gBAAgBP,CAAc;AAAA,EACpC;AACH;","x_google_ignoreList":[0,1,2]}
|
|
1
|
+
{"version":3,"file":"index-Bff1r_rH.js","sources":["../../node_modules/@zag-js/aria-hidden/dist/index.mjs","../../node_modules/@zag-js/focus-trap/dist/index.mjs","../../node_modules/@zag-js/remove-scroll/dist/index.mjs"],"sourcesContent":["// src/walk-tree-outside.ts\nvar counterMap = /* @__PURE__ */ new WeakMap();\nvar uncontrolledNodes = /* @__PURE__ */ new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = (node) => node && (node.host || unwrapHost(node.parentNode));\nvar correctTargets = (parent, targets) => targets.map((target) => {\n if (parent.contains(target)) return target;\n const correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error(\"[zag-js > ariaHidden] target\", target, \"in not contained inside\", parent, \". Doing nothing\");\n return null;\n}).filter((x) => Boolean(x));\nvar isIgnoredNode = (node) => {\n if (node.localName === \"next-route-announcer\") return true;\n if (node.localName === \"script\") return true;\n if (node.hasAttribute(\"aria-live\")) return true;\n return node.matches(\"[data-live-announcer]\");\n};\nvar walkTreeOutside = (originalTarget, props) => {\n const { parentNode, markerName, controlAttribute} = props;\n const targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n markerMap[markerName] || (markerMap[markerName] = /* @__PURE__ */ new WeakMap());\n const markerCounter = markerMap[markerName];\n const hiddenNodes = [];\n const elementsToKeep = /* @__PURE__ */ new Set();\n const elementsToStop = new Set(targets);\n const keep = (el) => {\n if (!el || elementsToKeep.has(el)) return;\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n const deep = (parent) => {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, (node) => {\n if (elementsToKeep.has(node)) {\n deep(node);\n } else {\n try {\n if (isIgnoredNode(node)) return;\n const attr = node.getAttribute(controlAttribute);\n const alreadyHidden = attr === \"true\" ;\n const counterValue = (counterMap.get(node) || 0) + 1;\n const markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, \"\");\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, \"true\" );\n }\n } catch (e) {\n console.error(\"[zag-js > ariaHidden] cannot operate on \", node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return () => {\n hiddenNodes.forEach((node) => {\n const counterValue = counterMap.get(node) - 1;\n const markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n counterMap = /* @__PURE__ */ new WeakMap();\n counterMap = /* @__PURE__ */ new WeakMap();\n uncontrolledNodes = /* @__PURE__ */ new WeakMap();\n markerMap = {};\n }\n };\n};\n\n// src/aria-hidden.ts\nvar getParentNode = (originalTarget) => {\n const target = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return target.ownerDocument.body;\n};\nvar hideOthers = (originalTarget, parentNode = getParentNode(originalTarget), markerName = \"data-aria-hidden\") => {\n if (!parentNode) return;\n return walkTreeOutside(originalTarget, {\n parentNode,\n markerName,\n controlAttribute: \"aria-hidden\"});\n};\n\n// src/index.ts\nvar raf = (fn) => {\n const frameId = requestAnimationFrame(() => fn());\n return () => cancelAnimationFrame(frameId);\n};\nfunction ariaHidden(targetsOrFn, options = {}) {\n const { defer = true } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const targets = typeof targetsOrFn === \"function\" ? targetsOrFn() : targetsOrFn;\n const elements = targets.filter(Boolean);\n if (elements.length === 0) return;\n cleanups.push(hideOthers(elements));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\n\nexport { ariaHidden };\n","import { getDocument, getTabbables, getFocusables, isTabbable, getTabIndex, addDomEvent, raf, getEventTarget, isDocument, isFocusable, getActiveElement } from '@zag-js/dom-query';\n\nvar __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\nvar activeFocusTraps = {\n activateTrap(trapStack, trap) {\n if (trapStack.length > 0) {\n const activeTrap = trapStack[trapStack.length - 1];\n if (activeTrap !== trap) {\n activeTrap.pause();\n }\n }\n const trapIndex = trapStack.indexOf(trap);\n if (trapIndex === -1) {\n trapStack.push(trap);\n } else {\n trapStack.splice(trapIndex, 1);\n trapStack.push(trap);\n }\n },\n deactivateTrap(trapStack, trap) {\n const trapIndex = trapStack.indexOf(trap);\n if (trapIndex !== -1) {\n trapStack.splice(trapIndex, 1);\n }\n if (trapStack.length > 0) {\n trapStack[trapStack.length - 1].unpause();\n }\n }\n};\nvar sharedTrapStack = [];\nvar FocusTrap = class {\n constructor(elements, options) {\n __publicField(this, \"trapStack\");\n __publicField(this, \"config\");\n __publicField(this, \"doc\");\n __publicField(this, \"state\", {\n containers: [],\n containerGroups: [],\n tabbableGroups: [],\n nodeFocusedBeforeActivation: null,\n mostRecentlyFocusedNode: null,\n active: false,\n paused: false,\n delayInitialFocusTimer: void 0,\n recentNavEvent: void 0\n });\n __publicField(this, \"listenerCleanups\", []);\n __publicField(this, \"handleFocus\", (event) => {\n const target = getEventTarget(event);\n const targetContained = this.findContainerIndex(target, event) >= 0;\n if (targetContained || isDocument(target)) {\n if (targetContained) {\n this.state.mostRecentlyFocusedNode = target;\n }\n } else {\n event.stopImmediatePropagation();\n let nextNode;\n let navAcrossContainers = true;\n if (this.state.mostRecentlyFocusedNode) {\n if (getTabIndex(this.state.mostRecentlyFocusedNode) > 0) {\n const mruContainerIdx = this.findContainerIndex(this.state.mostRecentlyFocusedNode);\n const { tabbableNodes } = this.state.containerGroups[mruContainerIdx];\n if (tabbableNodes.length > 0) {\n const mruTabIdx = tabbableNodes.findIndex((node) => node === this.state.mostRecentlyFocusedNode);\n if (mruTabIdx >= 0) {\n if (this.config.isKeyForward(this.state.recentNavEvent)) {\n if (mruTabIdx + 1 < tabbableNodes.length) {\n nextNode = tabbableNodes[mruTabIdx + 1];\n navAcrossContainers = false;\n }\n } else {\n if (mruTabIdx - 1 >= 0) {\n nextNode = tabbableNodes[mruTabIdx - 1];\n navAcrossContainers = false;\n }\n }\n }\n }\n } else {\n if (!this.state.containerGroups.some((g) => g.tabbableNodes.some((n) => getTabIndex(n) > 0))) {\n navAcrossContainers = false;\n }\n }\n } else {\n navAcrossContainers = false;\n }\n if (navAcrossContainers) {\n nextNode = this.findNextNavNode({\n // move FROM the MRU node, not event-related node (which will be the node that is\n // outside the trap causing the focus escape we're trying to fix)\n target: this.state.mostRecentlyFocusedNode,\n isBackward: this.config.isKeyBackward(this.state.recentNavEvent)\n });\n }\n if (nextNode) {\n this.tryFocus(nextNode);\n } else {\n this.tryFocus(this.state.mostRecentlyFocusedNode || this.getInitialFocusNode());\n }\n }\n this.state.recentNavEvent = void 0;\n });\n __publicField(this, \"handlePointerDown\", (event) => {\n const target = getEventTarget(event);\n if (this.findContainerIndex(target, event) >= 0) {\n return;\n }\n if (valueOrHandler(this.config.clickOutsideDeactivates, event)) {\n this.deactivate({ returnFocus: this.config.returnFocusOnDeactivate });\n return;\n }\n if (valueOrHandler(this.config.allowOutsideClick, event)) {\n return;\n }\n event.preventDefault();\n });\n __publicField(this, \"handleClick\", (event) => {\n const target = getEventTarget(event);\n if (this.findContainerIndex(target, event) >= 0) {\n return;\n }\n if (valueOrHandler(this.config.clickOutsideDeactivates, event)) {\n return;\n }\n if (valueOrHandler(this.config.allowOutsideClick, event)) {\n return;\n }\n event.preventDefault();\n event.stopImmediatePropagation();\n });\n __publicField(this, \"handleTabKey\", (event) => {\n if (this.config.isKeyForward(event) || this.config.isKeyBackward(event)) {\n this.state.recentNavEvent = event;\n const isBackward = this.config.isKeyBackward(event);\n const destinationNode = this.findNextNavNode({ event, isBackward });\n if (!destinationNode) return;\n if (isTabEvent(event)) {\n event.preventDefault();\n }\n this.tryFocus(destinationNode);\n }\n });\n __publicField(this, \"handleEscapeKey\", (event) => {\n if (isEscapeEvent(event) && valueOrHandler(this.config.escapeDeactivates, event) !== false) {\n event.preventDefault();\n this.deactivate();\n }\n });\n __publicField(this, \"_mutationObserver\");\n __publicField(this, \"setupMutationObserver\", () => {\n const win = this.doc.defaultView || window;\n this._mutationObserver = new win.MutationObserver((mutations) => {\n const isFocusedNodeRemoved = mutations.some((mutation) => {\n const removedNodes = Array.from(mutation.removedNodes);\n return removedNodes.some((node) => node === this.state.mostRecentlyFocusedNode);\n });\n if (isFocusedNodeRemoved) {\n this.tryFocus(this.getInitialFocusNode());\n }\n });\n });\n __publicField(this, \"updateObservedNodes\", () => {\n this._mutationObserver?.disconnect();\n if (this.state.active && !this.state.paused) {\n this.state.containers.map((container) => {\n this._mutationObserver?.observe(container, { subtree: true, childList: true });\n });\n }\n });\n __publicField(this, \"getInitialFocusNode\", () => {\n let node = this.getNodeForOption(\"initialFocus\", { hasFallback: true });\n if (node === false) {\n return false;\n }\n if (node === void 0 || node && !isFocusable(node)) {\n if (this.findContainerIndex(this.doc.activeElement) >= 0) {\n node = this.doc.activeElement;\n } else {\n const firstTabbableGroup = this.state.tabbableGroups[0];\n const firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;\n node = firstTabbableNode || this.getNodeForOption(\"fallbackFocus\");\n }\n } else if (node === null) {\n node = this.getNodeForOption(\"fallbackFocus\");\n }\n if (!node) {\n throw new Error(\"Your focus-trap needs to have at least one focusable element\");\n }\n if (!node.isConnected) {\n node = this.getNodeForOption(\"fallbackFocus\");\n }\n return node;\n });\n __publicField(this, \"tryFocus\", (node) => {\n if (node === false) return;\n if (node === getActiveElement(this.doc)) return;\n if (!node || !node.focus) {\n this.tryFocus(this.getInitialFocusNode());\n return;\n }\n node.focus({ preventScroll: !!this.config.preventScroll });\n this.state.mostRecentlyFocusedNode = node;\n if (isSelectableInput(node)) {\n node.select();\n }\n });\n __publicField(this, \"deactivate\", (deactivateOptions) => {\n if (!this.state.active) return this;\n const options = {\n onDeactivate: this.config.onDeactivate,\n onPostDeactivate: this.config.onPostDeactivate,\n checkCanReturnFocus: this.config.checkCanReturnFocus,\n ...deactivateOptions\n };\n clearTimeout(this.state.delayInitialFocusTimer);\n this.state.delayInitialFocusTimer = void 0;\n this.removeListeners();\n this.state.active = false;\n this.state.paused = false;\n this.updateObservedNodes();\n activeFocusTraps.deactivateTrap(this.trapStack, this);\n const onDeactivate = this.getOption(options, \"onDeactivate\");\n const onPostDeactivate = this.getOption(options, \"onPostDeactivate\");\n const checkCanReturnFocus = this.getOption(options, \"checkCanReturnFocus\");\n const returnFocus = this.getOption(options, \"returnFocus\", \"returnFocusOnDeactivate\");\n onDeactivate?.();\n const finishDeactivation = () => {\n delay(() => {\n if (returnFocus) {\n const returnFocusNode = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);\n this.tryFocus(returnFocusNode);\n }\n onPostDeactivate?.();\n });\n };\n if (returnFocus && checkCanReturnFocus) {\n const returnFocusNode = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);\n checkCanReturnFocus(returnFocusNode).then(finishDeactivation, finishDeactivation);\n return this;\n }\n finishDeactivation();\n return this;\n });\n __publicField(this, \"pause\", (pauseOptions) => {\n if (this.state.paused || !this.state.active) {\n return this;\n }\n const onPause = this.getOption(pauseOptions, \"onPause\");\n const onPostPause = this.getOption(pauseOptions, \"onPostPause\");\n this.state.paused = true;\n onPause?.();\n this.removeListeners();\n this.updateObservedNodes();\n onPostPause?.();\n return this;\n });\n __publicField(this, \"unpause\", (unpauseOptions) => {\n if (!this.state.paused || !this.state.active) {\n return this;\n }\n const onUnpause = this.getOption(unpauseOptions, \"onUnpause\");\n const onPostUnpause = this.getOption(unpauseOptions, \"onPostUnpause\");\n this.state.paused = false;\n onUnpause?.();\n this.updateTabbableNodes();\n this.addListeners();\n this.updateObservedNodes();\n onPostUnpause?.();\n return this;\n });\n __publicField(this, \"updateContainerElements\", (containerElements) => {\n this.state.containers = Array.isArray(containerElements) ? containerElements.filter(Boolean) : [containerElements].filter(Boolean);\n if (this.state.active) {\n this.updateTabbableNodes();\n }\n this.updateObservedNodes();\n return this;\n });\n __publicField(this, \"getReturnFocusNode\", (previousActiveElement) => {\n const node = this.getNodeForOption(\"setReturnFocus\", {\n params: [previousActiveElement]\n });\n return node ? node : node === false ? false : previousActiveElement;\n });\n __publicField(this, \"getOption\", (configOverrideOptions, optionName, configOptionName) => {\n return configOverrideOptions && configOverrideOptions[optionName] !== void 0 ? configOverrideOptions[optionName] : (\n // @ts-expect-error\n this.config[configOptionName || optionName]\n );\n });\n __publicField(this, \"getNodeForOption\", (optionName, { hasFallback = false, params = [] } = {}) => {\n let optionValue = this.config[optionName];\n if (typeof optionValue === \"function\") optionValue = optionValue(...params);\n if (optionValue === true) optionValue = void 0;\n if (!optionValue) {\n if (optionValue === void 0 || optionValue === false) {\n return optionValue;\n }\n throw new Error(`\\`${optionName}\\` was specified but was not a node, or did not return a node`);\n }\n let node = optionValue;\n if (typeof optionValue === \"string\") {\n try {\n node = this.doc.querySelector(optionValue);\n } catch (err) {\n throw new Error(`\\`${optionName}\\` appears to be an invalid selector; error=\"${err.message}\"`);\n }\n if (!node) {\n if (!hasFallback) {\n throw new Error(`\\`${optionName}\\` as selector refers to no known node`);\n }\n }\n }\n return node;\n });\n __publicField(this, \"findNextNavNode\", (opts) => {\n const { event, isBackward = false } = opts;\n const target = opts.target || getEventTarget(event);\n this.updateTabbableNodes();\n let destinationNode = null;\n if (this.state.tabbableGroups.length > 0) {\n const containerIndex = this.findContainerIndex(target, event);\n const containerGroup = containerIndex >= 0 ? this.state.containerGroups[containerIndex] : void 0;\n if (containerIndex < 0) {\n if (isBackward) {\n destinationNode = this.state.tabbableGroups[this.state.tabbableGroups.length - 1].lastTabbableNode;\n } else {\n destinationNode = this.state.tabbableGroups[0].firstTabbableNode;\n }\n } else if (isBackward) {\n let startOfGroupIndex = this.state.tabbableGroups.findIndex(\n ({ firstTabbableNode }) => target === firstTabbableNode\n );\n if (startOfGroupIndex < 0 && (containerGroup?.container === target || isFocusable(target) && !isTabbable(target) && !containerGroup?.nextTabbableNode(target, false))) {\n startOfGroupIndex = containerIndex;\n }\n if (startOfGroupIndex >= 0) {\n const destinationGroupIndex = startOfGroupIndex === 0 ? this.state.tabbableGroups.length - 1 : startOfGroupIndex - 1;\n const destinationGroup = this.state.tabbableGroups[destinationGroupIndex];\n destinationNode = getTabIndex(target) >= 0 ? destinationGroup.lastTabbableNode : destinationGroup.lastDomTabbableNode;\n } else if (!isTabEvent(event)) {\n destinationNode = containerGroup?.nextTabbableNode(target, false);\n }\n } else {\n let lastOfGroupIndex = this.state.tabbableGroups.findIndex(\n ({ lastTabbableNode }) => target === lastTabbableNode\n );\n if (lastOfGroupIndex < 0 && (containerGroup?.container === target || isFocusable(target) && !isTabbable(target) && !containerGroup?.nextTabbableNode(target))) {\n lastOfGroupIndex = containerIndex;\n }\n if (lastOfGroupIndex >= 0) {\n const destinationGroupIndex = lastOfGroupIndex === this.state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;\n const destinationGroup = this.state.tabbableGroups[destinationGroupIndex];\n destinationNode = getTabIndex(target) >= 0 ? destinationGroup.firstTabbableNode : destinationGroup.firstDomTabbableNode;\n } else if (!isTabEvent(event)) {\n destinationNode = containerGroup?.nextTabbableNode(target);\n }\n }\n } else {\n destinationNode = this.getNodeForOption(\"fallbackFocus\");\n }\n return destinationNode;\n });\n this.trapStack = options.trapStack || sharedTrapStack;\n const config = {\n returnFocusOnDeactivate: true,\n escapeDeactivates: true,\n delayInitialFocus: true,\n isKeyForward(e) {\n return isTabEvent(e) && !e.shiftKey;\n },\n isKeyBackward(e) {\n return isTabEvent(e) && e.shiftKey;\n },\n ...options\n };\n this.doc = config.document || getDocument(Array.isArray(elements) ? elements[0] : elements);\n this.config = config;\n this.updateContainerElements(elements);\n this.setupMutationObserver();\n }\n get active() {\n return this.state.active;\n }\n get paused() {\n return this.state.paused;\n }\n findContainerIndex(element, event) {\n const composedPath = typeof event?.composedPath === \"function\" ? event.composedPath() : void 0;\n return this.state.containerGroups.findIndex(\n ({ container, tabbableNodes }) => container.contains(element) || composedPath?.includes(container) || tabbableNodes.find((node) => node === element)\n );\n }\n updateTabbableNodes() {\n this.state.containerGroups = this.state.containers.map((container) => {\n const tabbableNodes = getTabbables(container);\n const focusableNodes = getFocusables(container);\n const firstTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[0] : void 0;\n const lastTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : void 0;\n const firstDomTabbableNode = focusableNodes.find((node) => isTabbable(node));\n const lastDomTabbableNode = focusableNodes.slice().reverse().find((node) => isTabbable(node));\n const posTabIndexesFound = !!tabbableNodes.find((node) => getTabIndex(node) > 0);\n function nextTabbableNode(node, forward = true) {\n const nodeIdx = tabbableNodes.indexOf(node);\n if (nodeIdx < 0) {\n if (forward) {\n return focusableNodes.slice(focusableNodes.indexOf(node) + 1).find((el) => isTabbable(el));\n }\n return focusableNodes.slice(0, focusableNodes.indexOf(node)).reverse().find((el) => isTabbable(el));\n }\n return tabbableNodes[nodeIdx + (forward ? 1 : -1)];\n }\n return {\n container,\n tabbableNodes,\n focusableNodes,\n posTabIndexesFound,\n firstTabbableNode,\n lastTabbableNode,\n firstDomTabbableNode,\n lastDomTabbableNode,\n nextTabbableNode\n };\n });\n this.state.tabbableGroups = this.state.containerGroups.filter((group) => group.tabbableNodes.length > 0);\n if (this.state.tabbableGroups.length <= 0 && !this.getNodeForOption(\"fallbackFocus\")) {\n throw new Error(\n \"Your focus-trap must have at least one container with at least one tabbable node in it at all times\"\n );\n }\n if (this.state.containerGroups.find((g) => g.posTabIndexesFound) && this.state.containerGroups.length > 1) {\n throw new Error(\n \"At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.\"\n );\n }\n }\n addListeners() {\n if (!this.state.active) return;\n activeFocusTraps.activateTrap(this.trapStack, this);\n this.state.delayInitialFocusTimer = this.config.delayInitialFocus ? delay(() => {\n this.tryFocus(this.getInitialFocusNode());\n }) : this.tryFocus(this.getInitialFocusNode());\n this.listenerCleanups.push(\n addDomEvent(this.doc, \"focusin\", this.handleFocus, true),\n addDomEvent(this.doc, \"mousedown\", this.handlePointerDown, { capture: true, passive: false }),\n addDomEvent(this.doc, \"touchstart\", this.handlePointerDown, { capture: true, passive: false }),\n addDomEvent(this.doc, \"click\", this.handleClick, { capture: true, passive: false }),\n addDomEvent(this.doc, \"keydown\", this.handleTabKey, { capture: true, passive: false }),\n addDomEvent(this.doc, \"keydown\", this.handleEscapeKey)\n );\n return this;\n }\n removeListeners() {\n if (!this.state.active) return;\n this.listenerCleanups.forEach((cleanup) => cleanup());\n this.listenerCleanups = [];\n return this;\n }\n activate(activateOptions) {\n if (this.state.active) {\n return this;\n }\n const onActivate = this.getOption(activateOptions, \"onActivate\");\n const onPostActivate = this.getOption(activateOptions, \"onPostActivate\");\n const checkCanFocusTrap = this.getOption(activateOptions, \"checkCanFocusTrap\");\n if (!checkCanFocusTrap) {\n this.updateTabbableNodes();\n }\n this.state.active = true;\n this.state.paused = false;\n this.state.nodeFocusedBeforeActivation = this.doc.activeElement || null;\n onActivate?.();\n const finishActivation = () => {\n if (checkCanFocusTrap) {\n this.updateTabbableNodes();\n }\n this.addListeners();\n this.updateObservedNodes();\n onPostActivate?.();\n };\n if (checkCanFocusTrap) {\n checkCanFocusTrap(this.state.containers.concat()).then(finishActivation, finishActivation);\n return this;\n }\n finishActivation();\n return this;\n }\n};\nvar isTabEvent = (event) => event.key === \"Tab\";\nvar valueOrHandler = (value, ...params) => typeof value === \"function\" ? value(...params) : value;\nvar isEscapeEvent = (event) => !event.isComposing && event.key === \"Escape\";\nvar delay = (fn) => setTimeout(fn, 0);\nvar isSelectableInput = (node) => node.localName === \"input\" && \"select\" in node && typeof node.select === \"function\";\n\n// src/index.ts\nfunction trapFocus(el, options = {}) {\n let trap;\n const cleanup = raf(() => {\n const contentEl = typeof el === \"function\" ? el() : el;\n if (!contentEl) return;\n trap = new FocusTrap(contentEl, {\n escapeDeactivates: false,\n allowOutsideClick: true,\n preventScroll: true,\n returnFocusOnDeactivate: true,\n delayInitialFocus: false,\n fallbackFocus: contentEl,\n ...options,\n document: getDocument(contentEl)\n });\n try {\n trap.activate();\n } catch {\n }\n });\n return function destroy() {\n trap?.deactivate();\n cleanup();\n };\n}\n\nexport { FocusTrap, trapFocus };\n","import { setStyleProperty, setStyle, isIos } from '@zag-js/dom-query';\n\n// src/index.ts\nvar LOCK_CLASSNAME = \"data-scroll-lock\";\nfunction getPaddingProperty(documentElement) {\n const documentLeft = documentElement.getBoundingClientRect().left;\n const scrollbarX = Math.round(documentLeft) + documentElement.scrollLeft;\n return scrollbarX ? \"paddingLeft\" : \"paddingRight\";\n}\nfunction preventBodyScroll(_document) {\n const doc = _document ?? document;\n const win = doc.defaultView ?? window;\n const { documentElement, body } = doc;\n const locked = body.hasAttribute(LOCK_CLASSNAME);\n if (locked) return;\n body.setAttribute(LOCK_CLASSNAME, \"\");\n const scrollbarWidth = win.innerWidth - documentElement.clientWidth;\n const setScrollbarWidthProperty = () => setStyleProperty(documentElement, \"--scrollbar-width\", `${scrollbarWidth}px`);\n const paddingProperty = getPaddingProperty(documentElement);\n const setBodyStyle = () => setStyle(body, {\n overflow: \"hidden\",\n [paddingProperty]: `${scrollbarWidth}px`\n });\n const setBodyStyleIOS = () => {\n const { scrollX, scrollY, visualViewport } = win;\n const offsetLeft = visualViewport?.offsetLeft ?? 0;\n const offsetTop = visualViewport?.offsetTop ?? 0;\n const restoreStyle = setStyle(body, {\n position: \"fixed\",\n overflow: \"hidden\",\n top: `${-(scrollY - Math.floor(offsetTop))}px`,\n left: `${-(scrollX - Math.floor(offsetLeft))}px`,\n right: \"0\",\n [paddingProperty]: `${scrollbarWidth}px`\n });\n return () => {\n restoreStyle?.();\n win.scrollTo({ left: scrollX, top: scrollY, behavior: \"instant\" });\n };\n };\n const cleanups = [setScrollbarWidthProperty(), isIos() ? setBodyStyleIOS() : setBodyStyle()];\n return () => {\n cleanups.forEach((fn) => fn?.());\n body.removeAttribute(LOCK_CLASSNAME);\n };\n}\n\nexport { preventBodyScroll };\n"],"names":["counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","isIgnoredNode","walkTreeOutside","originalTarget","props","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","alreadyHidden","counterValue","markerValue","e","getParentNode","hideOthers","raf","fn","frameId","ariaHidden","targetsOrFn","options","defer","func","v","cleanups","elements","__defProp","__defNormalProp","obj","key","value","__publicField","activeFocusTraps","trapStack","trap","activeTrap","trapIndex","sharedTrapStack","FocusTrap","event","getEventTarget","targetContained","isDocument","nextNode","navAcrossContainers","getTabIndex","mruContainerIdx","tabbableNodes","mruTabIdx","g","n","valueOrHandler","isBackward","destinationNode","isTabEvent","isEscapeEvent","win","mutations","mutation","container","isFocusable","firstTabbableGroup","getActiveElement","isSelectableInput","deactivateOptions","onDeactivate","onPostDeactivate","checkCanReturnFocus","returnFocus","finishDeactivation","delay","returnFocusNode","pauseOptions","onPause","onPostPause","unpauseOptions","onUnpause","onPostUnpause","containerElements","previousActiveElement","configOverrideOptions","optionName","configOptionName","hasFallback","params","optionValue","err","opts","containerIndex","containerGroup","startOfGroupIndex","firstTabbableNode","isTabbable","destinationGroupIndex","destinationGroup","lastOfGroupIndex","lastTabbableNode","config","getDocument","element","composedPath","getTabbables","focusableNodes","getFocusables","firstDomTabbableNode","lastDomTabbableNode","posTabIndexesFound","nextTabbableNode","forward","nodeIdx","group","addDomEvent","cleanup","activateOptions","onActivate","onPostActivate","checkCanFocusTrap","finishActivation","trapFocus","contentEl","LOCK_CLASSNAME","getPaddingProperty","documentElement","documentLeft","preventBodyScroll","_document","doc","body","scrollbarWidth","setScrollbarWidthProperty","setStyleProperty","paddingProperty","setBodyStyle","setStyle","setBodyStyleIOS","scrollX","scrollY","visualViewport","offsetLeft","offsetTop","restoreStyle","isIos"],"mappings":";AACA,IAAIA,IAA6B,oBAAI,QAAS,GAC1CC,IAAoC,oBAAI,QAAS,GACjDC,IAAY,CAAE,GACdC,IAAY,GACZC,IAAa,CAACC,MAASA,MAASA,EAAK,QAAQD,EAAWC,EAAK,UAAU,IACvEC,IAAiB,CAACC,GAAQC,MAAYA,EAAQ,IAAI,CAACC,MAAW;AAChE,MAAIF,EAAO,SAASE,CAAM,EAAG,QAAOA;AACpC,QAAMC,IAAkBN,EAAWK,CAAM;AACzC,SAAIC,KAAmBH,EAAO,SAASG,CAAe,IAC7CA,KAET,QAAQ,MAAM,gCAAgCD,GAAQ,2BAA2BF,GAAQ,iBAAiB,GACnG;AACT,CAAC,EAAE,OAAO,CAACI,M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AAO,MAAM;AACX,MAAAY,IAAgB,GAChBpF,EAAI,SAAS,EAAE,MAAM+E,GAAS,KAAKC,GAAS,UAAU,WAAW;AAAA,IAClE;AAAA,EACF,GACKhH,IAAW,CAACyG,EAA2B,GAAEY,EAAK,IAAKP,EAAe,IAAKF,GAAc;AAC3F,SAAO,MAAM;AACX,IAAA5G,EAAS,QAAQ,CAACR,MAAOA,IAAE,CAAI,GAC/B+G,EAAK,gBAAgBP,CAAc;AAAA,EACpC;AACH;","x_google_ignoreList":[0,1,2]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { F as d, G as E, H as g, E as L, I as F } from "./index-YtNA0Ueo.js";
|
|
2
|
+
function T(e) {
|
|
3
|
+
return !(e.metaKey || !F() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
4
|
+
}
|
|
5
|
+
var M = /* @__PURE__ */ new Set(["checkbox", "radio", "range", "color", "file", "image", "button", "submit", "reset"]);
|
|
6
|
+
function H(e, r, t) {
|
|
7
|
+
const n = t ? L(t) : null, u = d(n);
|
|
8
|
+
return e = e || n instanceof u.HTMLInputElement && !M.has(n?.type) || n instanceof u.HTMLTextAreaElement || n instanceof u.HTMLElement && n.isContentEditable, !(e && r === "keyboard" && t instanceof u.KeyboardEvent && !Reflect.has(K, t.key));
|
|
9
|
+
}
|
|
10
|
+
var s = null, v = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map(), i = !1, f = !1, K = {
|
|
11
|
+
Tab: !0,
|
|
12
|
+
Escape: !0
|
|
13
|
+
};
|
|
14
|
+
function c(e, r) {
|
|
15
|
+
for (let t of v)
|
|
16
|
+
t(e, r);
|
|
17
|
+
}
|
|
18
|
+
function l(e) {
|
|
19
|
+
i = !0, T(e) && (s = "keyboard", c("keyboard", e));
|
|
20
|
+
}
|
|
21
|
+
function o(e) {
|
|
22
|
+
s = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (i = !0, c("pointer", e));
|
|
23
|
+
}
|
|
24
|
+
function w(e) {
|
|
25
|
+
g(e) && (i = !0, s = "virtual");
|
|
26
|
+
}
|
|
27
|
+
function b(e) {
|
|
28
|
+
const r = L(e);
|
|
29
|
+
r === d(r) || r === E(r) || (!i && !f && (s = "virtual", c("virtual", e)), i = !1, f = !1);
|
|
30
|
+
}
|
|
31
|
+
function k() {
|
|
32
|
+
i = !1, f = !0;
|
|
33
|
+
}
|
|
34
|
+
function C(e) {
|
|
35
|
+
if (typeof window > "u" || a.get(d(e)))
|
|
36
|
+
return;
|
|
37
|
+
const r = d(e), t = E(e);
|
|
38
|
+
let n = r.HTMLElement.prototype.focus;
|
|
39
|
+
r.HTMLElement.prototype.focus = function() {
|
|
40
|
+
s = "virtual", c("virtual", null), i = !0, n.apply(this, arguments);
|
|
41
|
+
}, t.addEventListener("keydown", l, !0), t.addEventListener("keyup", l, !0), t.addEventListener("click", w, !0), r.addEventListener("focus", b, !0), r.addEventListener("blur", k, !1), typeof r.PointerEvent < "u" ? (t.addEventListener("pointerdown", o, !0), t.addEventListener("pointermove", o, !0), t.addEventListener("pointerup", o, !0)) : (t.addEventListener("mousedown", o, !0), t.addEventListener("mousemove", o, !0), t.addEventListener("mouseup", o, !0)), r.addEventListener(
|
|
42
|
+
"beforeunload",
|
|
43
|
+
() => {
|
|
44
|
+
V(e);
|
|
45
|
+
},
|
|
46
|
+
{ once: !0 }
|
|
47
|
+
), a.set(r, { focus: n });
|
|
48
|
+
}
|
|
49
|
+
var V = (e, r) => {
|
|
50
|
+
const t = d(e), n = E(e);
|
|
51
|
+
a.has(t) && (t.HTMLElement.prototype.focus = a.get(t).focus, n.removeEventListener("keydown", l, !0), n.removeEventListener("keyup", l, !0), n.removeEventListener("click", w, !0), t.removeEventListener("focus", b, !0), t.removeEventListener("blur", k, !1), typeof t.PointerEvent < "u" ? (n.removeEventListener("pointerdown", o, !0), n.removeEventListener("pointermove", o, !0), n.removeEventListener("pointerup", o, !0)) : (n.removeEventListener("mousedown", o, !0), n.removeEventListener("mousemove", o, !0), n.removeEventListener("mouseup", o, !0)), a.delete(t));
|
|
52
|
+
};
|
|
53
|
+
function y() {
|
|
54
|
+
return s === "keyboard";
|
|
55
|
+
}
|
|
56
|
+
function I(e = {}) {
|
|
57
|
+
const { isTextInput: r, autoFocus: t, onChange: n, root: u } = e;
|
|
58
|
+
C(u), n?.({ isFocusVisible: t || y(), modality: s });
|
|
59
|
+
const p = (m, h) => {
|
|
60
|
+
H(!!r, m, h) && n?.({ isFocusVisible: y(), modality: m });
|
|
61
|
+
};
|
|
62
|
+
return v.add(p), () => {
|
|
63
|
+
v.delete(p);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
y as i,
|
|
68
|
+
I as t
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=index-Bz8HDeWA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-Bz8HDeWA.js","sources":["../../node_modules/@zag-js/focus-visible/dist/index.mjs"],"sourcesContent":["import { getWindow, getDocument, getEventTarget, isVirtualClick, isMac } from '@zag-js/dom-query';\n\n// src/index.ts\nfunction isValidKey(e) {\n return !(e.metaKey || !isMac() && e.altKey || e.ctrlKey || e.key === \"Control\" || e.key === \"Shift\" || e.key === \"Meta\");\n}\nvar nonTextInputTypes = /* @__PURE__ */ new Set([\"checkbox\", \"radio\", \"range\", \"color\", \"file\", \"image\", \"button\", \"submit\", \"reset\"]);\nfunction isKeyboardFocusEvent(isTextInput, modality, e) {\n const target = e ? getEventTarget(e) : null;\n const win = getWindow(target);\n isTextInput = isTextInput || target instanceof win.HTMLInputElement && !nonTextInputTypes.has(target?.type) || target instanceof win.HTMLTextAreaElement || target instanceof win.HTMLElement && target.isContentEditable;\n return !(isTextInput && modality === \"keyboard\" && e instanceof win.KeyboardEvent && !Reflect.has(FOCUS_VISIBLE_INPUT_KEYS, e.key));\n}\nvar currentModality = null;\nvar changeHandlers = /* @__PURE__ */ new Set();\nvar listenerMap = /* @__PURE__ */ new Map();\nvar hasEventBeforeFocus = false;\nvar hasBlurredWindowRecently = false;\nvar FOCUS_VISIBLE_INPUT_KEYS = {\n Tab: true,\n Escape: true\n};\nfunction triggerChangeHandlers(modality, e) {\n for (let handler of changeHandlers) {\n handler(modality, e);\n }\n}\nfunction handleKeyboardEvent(e) {\n hasEventBeforeFocus = true;\n if (isValidKey(e)) {\n currentModality = \"keyboard\";\n triggerChangeHandlers(\"keyboard\", e);\n }\n}\nfunction handlePointerEvent(e) {\n currentModality = \"pointer\";\n if (e.type === \"mousedown\" || e.type === \"pointerdown\") {\n hasEventBeforeFocus = true;\n triggerChangeHandlers(\"pointer\", e);\n }\n}\nfunction handleClickEvent(e) {\n if (isVirtualClick(e)) {\n hasEventBeforeFocus = true;\n currentModality = \"virtual\";\n }\n}\nfunction handleFocusEvent(e) {\n const target = getEventTarget(e);\n if (target === getWindow(target) || target === getDocument(target)) {\n return;\n }\n if (!hasEventBeforeFocus && !hasBlurredWindowRecently) {\n currentModality = \"virtual\";\n triggerChangeHandlers(\"virtual\", e);\n }\n hasEventBeforeFocus = false;\n hasBlurredWindowRecently = false;\n}\nfunction handleWindowBlur() {\n hasEventBeforeFocus = false;\n hasBlurredWindowRecently = true;\n}\nfunction setupGlobalFocusEvents(root) {\n if (typeof window === \"undefined\" || listenerMap.get(getWindow(root))) {\n return;\n }\n const win = getWindow(root);\n const doc = getDocument(root);\n let focus = win.HTMLElement.prototype.focus;\n win.HTMLElement.prototype.focus = function() {\n currentModality = \"virtual\";\n triggerChangeHandlers(\"virtual\", null);\n hasEventBeforeFocus = true;\n focus.apply(this, arguments);\n };\n doc.addEventListener(\"keydown\", handleKeyboardEvent, true);\n doc.addEventListener(\"keyup\", handleKeyboardEvent, true);\n doc.addEventListener(\"click\", handleClickEvent, true);\n win.addEventListener(\"focus\", handleFocusEvent, true);\n win.addEventListener(\"blur\", handleWindowBlur, false);\n if (typeof win.PointerEvent !== \"undefined\") {\n doc.addEventListener(\"pointerdown\", handlePointerEvent, true);\n doc.addEventListener(\"pointermove\", handlePointerEvent, true);\n doc.addEventListener(\"pointerup\", handlePointerEvent, true);\n } else {\n doc.addEventListener(\"mousedown\", handlePointerEvent, true);\n doc.addEventListener(\"mousemove\", handlePointerEvent, true);\n doc.addEventListener(\"mouseup\", handlePointerEvent, true);\n }\n win.addEventListener(\n \"beforeunload\",\n () => {\n tearDownWindowFocusTracking(root);\n },\n { once: true }\n );\n listenerMap.set(win, { focus });\n}\nvar tearDownWindowFocusTracking = (root, loadListener) => {\n const win = getWindow(root);\n const doc = getDocument(root);\n if (!listenerMap.has(win)) {\n return;\n }\n win.HTMLElement.prototype.focus = listenerMap.get(win).focus;\n doc.removeEventListener(\"keydown\", handleKeyboardEvent, true);\n doc.removeEventListener(\"keyup\", handleKeyboardEvent, true);\n doc.removeEventListener(\"click\", handleClickEvent, true);\n win.removeEventListener(\"focus\", handleFocusEvent, true);\n win.removeEventListener(\"blur\", handleWindowBlur, false);\n if (typeof win.PointerEvent !== \"undefined\") {\n doc.removeEventListener(\"pointerdown\", handlePointerEvent, true);\n doc.removeEventListener(\"pointermove\", handlePointerEvent, true);\n doc.removeEventListener(\"pointerup\", handlePointerEvent, true);\n } else {\n doc.removeEventListener(\"mousedown\", handlePointerEvent, true);\n doc.removeEventListener(\"mousemove\", handlePointerEvent, true);\n doc.removeEventListener(\"mouseup\", handlePointerEvent, true);\n }\n listenerMap.delete(win);\n};\nfunction getInteractionModality() {\n return currentModality;\n}\nfunction setInteractionModality(modality) {\n currentModality = modality;\n triggerChangeHandlers(modality, null);\n}\nfunction trackInteractionModality(props) {\n const { onChange, root } = props;\n setupGlobalFocusEvents(root);\n onChange({ modality: currentModality });\n const handler = () => onChange({ modality: currentModality });\n changeHandlers.add(handler);\n return () => {\n changeHandlers.delete(handler);\n };\n}\nfunction isFocusVisible() {\n return currentModality === \"keyboard\";\n}\nfunction trackFocusVisible(props = {}) {\n const { isTextInput, autoFocus, onChange, root } = props;\n setupGlobalFocusEvents(root);\n onChange?.({ isFocusVisible: autoFocus || isFocusVisible(), modality: currentModality });\n const handler = (modality, e) => {\n if (!isKeyboardFocusEvent(!!isTextInput, modality, e)) return;\n onChange?.({ isFocusVisible: isFocusVisible(), modality });\n };\n changeHandlers.add(handler);\n return () => {\n changeHandlers.delete(handler);\n };\n}\n\nexport { getInteractionModality, isFocusVisible, listenerMap, setInteractionModality, trackFocusVisible, trackInteractionModality };\n"],"names":["isValidKey","isMac","nonTextInputTypes","isKeyboardFocusEvent","isTextInput","modality","e","target","getEventTarget","win","getWindow","FOCUS_VISIBLE_INPUT_KEYS","currentModality","changeHandlers","listenerMap","hasEventBeforeFocus","hasBlurredWindowRecently","triggerChangeHandlers","handler","handleKeyboardEvent","handlePointerEvent","handleClickEvent","isVirtualClick","handleFocusEvent","getDocument","handleWindowBlur","setupGlobalFocusEvents","root","doc","focus","tearDownWindowFocusTracking","loadListener","isFocusVisible","trackFocusVisible","props","autoFocus","onChange"],"mappings":";AAGA,SAASA,EAAW,GAAG;AACrB,SAAO,EAAE,EAAE,WAAW,CAACC,EAAK,KAAM,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,aAAa,EAAE,QAAQ,WAAW,EAAE,QAAQ;AACnH;AACA,IAAIC,IAAoC,oBAAI,IAAI,CAAC,YAAY,SAAS,SAAS,SAAS,QAAQ,SAAS,UAAU,UAAU,OAAO,CAAC;AACrI,SAASC,EAAqBC,GAAaC,GAAUC,GAAG;AACtD,QAAMC,IAASD,IAAIE,EAAeF,CAAC,IAAI,MACjCG,IAAMC,EAAUH,CAAM;AAC5B,SAAAH,IAAcA,KAAeG,aAAkBE,EAAI,oBAAoB,CAACP,EAAkB,IAAIK,GAAQ,IAAI,KAAKA,aAAkBE,EAAI,uBAAuBF,aAAkBE,EAAI,eAAeF,EAAO,mBACjM,EAAEH,KAAeC,MAAa,cAAcC,aAAaG,EAAI,iBAAiB,CAAC,QAAQ,IAAIE,GAA0BL,EAAE,GAAG;AACnI;AAC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,aAAaR,GAAoB,EAAI,MAE7DQ,EAAI,oBAAoB,aAAaR,GAAoB,EAAI,GAC7DQ,EAAI,oBAAoB,aAAaR,GAAoB,EAAI,GAC7DQ,EAAI,oBAAoB,WAAWR,GAAoB,EAAI,IAE7DN,EAAY,OAAOL,CAAG;AACxB;AAkBA,SAASuB,IAAiB;AACxB,SAAOpB,MAAoB;AAC7B;AACA,SAASqB,EAAkBC,IAAQ,IAAI;AACrC,QAAM,EAAE,aAAA9B,GAAa,WAAA+B,GAAW,UAAAC,GAAU,MAAAT,EAAM,IAAGO;AACnD,EAAAR,EAAuBC,CAAI,GAC3BS,IAAW,EAAE,gBAAgBD,KAAaH,EAAc,GAAI,UAAUpB,GAAiB;AACvF,QAAMM,IAAU,CAACb,GAAUC,MAAM;AAC/B,IAAKH,EAAqB,CAAC,CAACC,GAAaC,GAAUC,CAAC,KACpD8B,IAAW,EAAE,gBAAgBJ,EAAgB,GAAE,UAAA3B,EAAQ,CAAE;AAAA,EAC1D;AACD,SAAAQ,EAAe,IAAIK,CAAO,GACnB,MAAM;AACX,IAAAL,EAAe,OAAOK,CAAO;AAAA,EAC9B;AACH;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";var ye=e=>Math.max(0,Math.min(1,e)),ct=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),ee=(...e)=>t=>e.reduce((n,r)=>r(n),t),C=()=>{},H=e=>typeof e=="object"&&e!==null,ut=2147483647,lt=e=>e?"":void 0,ft=e=>e?"true":void 0,dt=1,pt=9,mt=11,v=e=>H(e)&&e.nodeType===dt&&typeof e.nodeName=="string",se=e=>H(e)&&e.nodeType===pt,ht=e=>H(e)&&e===e.window,Ie=e=>v(e)?e.localName||"":"#document";function yt(e){return["html","body","#document"].includes(Ie(e))}var gt=e=>H(e)&&e.nodeType!==void 0,R=e=>gt(e)&&e.nodeType===mt&&"host"in e,vt=e=>v(e)&&e.localName==="input",bt=e=>!!e?.matches("a[href]"),Et=e=>v(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,wt=/(textarea|select)/;function Le(e){if(e==null||!v(e))return!1;try{return vt(e)&&e.selectionStart!=null||wt.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function V(e,t){if(!e||!t||!v(e)||!v(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&R(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function D(e){return se(e)?e:ht(e)?e.document:e?.ownerDocument??document}function At(e){return D(e).documentElement}function A(e){return R(e)?A(e.host):se(e)?e.defaultView??window:v(e)?e.ownerDocument?.defaultView??window:window}function Ne(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function kt(e){if(Ie(e)==="html")return e;const t=e.assignedSlot||e.parentNode||R(e)&&e.host||At(e);return R(t)?t.host:t}var te=new WeakMap;function Tt(e){return te.has(e)||te.set(e,A(e).getComputedStyle(e)),te.get(e)}function Pt(e,t){const{type:n,quality:r=.92,background:o}=t;if(!e)throw new Error("[zag-js > getDataUrl]: Could not find the svg element");const i=A(e),s=i.document,a=e.getBoundingClientRect(),u=e.cloneNode(!0);u.hasAttribute("viewBox")||u.setAttribute("viewBox",`0 0 ${a.width} ${a.height}`);const m=`<?xml version="1.0" standalone="no"?>\r
|
|
2
|
+
`+new i.XMLSerializer().serializeToString(u),h="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(m);if(n==="image/svg+xml")return Promise.resolve(h).then(T=>(u.remove(),T));const f=i.devicePixelRatio||1,c=s.createElement("canvas"),d=new i.Image;d.src=h,c.width=a.width*f,c.height=a.height*f;const b=c.getContext("2d");return(n==="image/jpeg"||o)&&(b.fillStyle=o||"white",b.fillRect(0,0,c.width,c.height)),new Promise(T=>{d.onload=()=>{b?.drawImage(d,0,0,c.width,c.height),T(c.toDataURL(n,r)),u.remove()}})}var X=()=>typeof document<"u";function xt(){return navigator.userAgentData?.platform??navigator.platform}function St(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var ae=e=>X()&&e.test(xt()),De=e=>X()&&e.test(St()),It=e=>X()&&e.test(navigator.vendor),ge=()=>X()&&!!navigator.maxTouchPoints,Lt=()=>ae(/^iPhone/i),Nt=()=>ae(/^iPad/i)||G()&&navigator.maxTouchPoints>1,Y=()=>Lt()||Nt(),ce=()=>G()||Y(),G=()=>ae(/^Mac/i),Dt=()=>ce()&&It(/apple/i),Vt=()=>De(/Firefox/i),Ot=()=>De(/Android/i);function Mt(e){const{selectionStart:t,selectionEnd:n,value:r}=e.currentTarget;return r.slice(0,t)+e.data+r.slice(n)}function Ct(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function O(e){return Ct(e)?.[0]??e.target}var Bt=e=>V(e.currentTarget,O(e));function Rt(e){const t=e.currentTarget;if(!t)return!1;const n=ce();if(n&&!e.metaKey||!n&&!e.ctrlKey)return!1;const r=t.localName;return r==="a"||r==="button"&&t.type==="submit"||r==="input"&&t.type==="submit"}function Ft(e){const t=e.currentTarget;if(!t)return!1;const n=t.localName;return e.altKey?n==="a"||n==="button"&&t.type==="submit"||n==="input"&&t.type==="submit":!1}function Kt(e){return Oe(e).isComposing||e.keyCode===229}function jt(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function qt(e){return e.mozInputSource===0&&e.isTrusted?!0:Ot()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var _t=e=>e.button===0,Ve=e=>e.button===2||G()&&e.ctrlKey&&e.button===0,$t=e=>e.ctrlKey||e.altKey||e.metaKey,Wt=e=>"touches"in e&&e.touches.length>0,Ut={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},ve={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function zt(e,t={}){const{dir:n="ltr",orientation:r="horizontal"}=t;let o=e.key;return o=Ut[o]??o,n==="rtl"&&r==="horizontal"&&o in ve&&(o=ve[o]),o}function Oe(e){return e.nativeEvent??e}var Ht=new Set(["PageUp","PageDown"]),Xt=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]);function Yt(e){return e.ctrlKey||e.metaKey?.1:Ht.has(e.key)||e.shiftKey&&Xt.has(e.key)?10:1}function ue(e,t="client"){const n=Wt(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var y=(e,t,n,r)=>{const o=typeof e=="function"?e():e;return o?.addEventListener(t,n,r),()=>{o?.removeEventListener(t,n,r)}};function Me(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,o=A(e)[n].prototype;return Object.getOwnPropertyDescriptor(o,r)??{}}function Gt(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function Ce(e,t,n="value"){if(!e)return;const r=Gt(e);r&&Me(e,{type:r,property:n}).set?.call(e,t),e.setAttribute(n,t)}function Be(e,t){if(!e)return;Me(e,{type:"HTMLInputElement",property:"checked"}).set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function Zt(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const o=A(e);e instanceof o.HTMLInputElement&&(Ce(e,`${n}`),e.dispatchEvent(new o.Event("input",{bubbles:r})))}function Jt(e,t){const{checked:n,bubbles:r=!0}=t;if(!e)return;const o=A(e);e instanceof o.HTMLInputElement&&(Be(e,n),e.dispatchEvent(new o.Event("click",{bubbles:r})))}function Qt(e){return en(e)?e.form:e.closest("form")}function en(e){return e.matches("textarea, input, select, button")}function tn(e,t){if(!e)return;const n=Qt(e),r=o=>{o.defaultPrevented||t()};return n?.addEventListener("reset",r,{passive:!0}),()=>n?.removeEventListener("reset",r)}function nn(e,t){const n=e?.closest("fieldset");if(!n)return;t(n.disabled);const r=A(n),o=new r.MutationObserver(()=>t(n.disabled));return o.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function rn(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,o=[tn(e,r),nn(e,n)];return()=>o.forEach(i=>i?.())}var Re=e=>v(e)&&e.tagName==="IFRAME",on=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),sn=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,le="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",Fe=(e,t=!1)=>{if(!e)return[];const n=Array.from(e.querySelectorAll(le));(t==!0||t=="if-empty"&&n.length===0)&&v(e)&&F(e)&&n.unshift(e);const o=n.filter(F);return o.forEach((i,s)=>{if(Re(i)&&i.contentDocument){const a=i.contentDocument.body;o.splice(s,1,...Fe(a))}}),o};function F(e){return!e||e.closest("[inert]")?!1:e.matches(le)&&Et(e)}function j(e,t){if(!e)return[];const n=Array.from(e.querySelectorAll(le)),r=n.filter(ne);return t&&ne(e)&&r.unshift(e),r.forEach((o,i)=>{if(Re(o)&&o.contentDocument){const s=o.contentDocument.body,a=j(s);r.splice(i,1,...a)}}),!r.length&&t?n:r}function ne(e){return e!=null&&e.tabIndex>0?!0:F(e)&&!sn(e)}function Ke(e,t){const n=j(e,t),r=n[0]||null,o=n[n.length-1]||null;return[r,o]}function an(e,t){const n=j(e),r=e?.ownerDocument||document,o=t??r.activeElement;if(!o)return null;const i=n.indexOf(o);return n[i+1]||null}function cn(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||Le(e))&&!on(e)?0:e.tabIndex}function un(e){const{root:t,getInitialEl:n,filter:r,enabled:o=!0}=e;if(!o)return;let i=null;if(i||(i=typeof n=="function"?n():n),i||(i=t?.querySelector("[data-autofocus],[autofocus]")),!i){const s=j(t);i=r?s.filter(r)[0]:s[0]}return i||t||void 0}function ln(e){const t=e.currentTarget;if(!t)return!1;const[n,r]=Ke(t),o=t.ownerDocument||document;return!(o.activeElement===n&&e.shiftKey||o.activeElement===r&&!e.shiftKey||!n&&!r)}function je(e){const t=new Set;function n(r){const o=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(o))}return n(()=>n(e)),function(){t.forEach(o=>o())}}function k(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t?.()}}function fn(e,t,n){const r=k(()=>{e.removeEventListener(t,o,!0),n()}),o=()=>{r(),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function dn(e,t){if(!e)return;const{attributes:n,callback:r}=t,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&n.includes(a.attributeName)&&r(a)});return i.observe(e,{attributes:!0,attributeFilter:n}),()=>i.disconnect()}function pn(e,t){const{defer:n}=t,r=n?k:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(dn(i,t))})),()=>{o.forEach(i=>i?.())}}function mn(e,t){const{callback:n}=t;if(!e)return;const r=e.ownerDocument.defaultView||window,o=new r.MutationObserver(n);return o.observe(e,{childList:!0,subtree:!0}),()=>o.disconnect()}function hn(e,t){const{defer:n}=t,r=n?k:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(mn(i,t))})),()=>{o.forEach(i=>i?.())}}function yn(e){const t=()=>e.click();Vt()?fn(e,"keyup",t):queueMicrotask(t)}function re(e){const t=kt(e);return yt(t)?D(t).body:v(t)&&qe(t)?t:re(t)}var gn=/auto|scroll|overlay|hidden|clip/;function qe(e){const t=A(e),{overflow:n,overflowX:r,overflowY:o,display:i}=t.getComputedStyle(e);return gn.test(n+o+r)&&!["inline","contents"].includes(i)}function vn(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function bn(e,t){const{rootEl:n,...r}=t||{};!e||!n||!qe(n)||!vn(n)||e.scrollIntoView(r)}function En(e,t){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect(),s={x:e.x-n,y:e.y-r},a={x:ye(s.x/o),y:ye(s.y/i)};function u(l={}){const{dir:m="ltr",orientation:h="horizontal",inverted:f}=l,c=typeof f=="object"?f.x:f,d=typeof f=="object"?f.y:f;return h==="horizontal"?m==="rtl"||c?1-a.x:a.x:d?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:u}}function wn(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function s(u){o(),console.error("PointerLock error occurred:",u),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const a=[y(e,"pointerlockchange",i,!1),y(e,"pointerlockerror",s,!1)];return()=>{a.forEach(u=>u()),e.exitPointerLock()}}var B="default",oe="",_=new WeakMap;function An(e={}){const{target:t,doc:n}=e,r=n??document,o=r.documentElement;return Y()?(B==="default"&&(oe=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),B="disabled"):t&&(_.set(t,t.style.userSelect),t.style.userSelect="none"),()=>kn({target:t,doc:r})}function kn(e={}){const{target:t,doc:n}=e,o=(n??document).documentElement;if(Y()){if(B!=="disabled")return;B="restoring",setTimeout(()=>{je(()=>{B==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=oe||""),oe="",B="default")})},300)}else if(t&&_.has(t)){const i=_.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),_.delete(t)}}function _e(e={}){const{defer:t,target:n,...r}=e,o=t?k:s=>s(),i=[];return i.push(o(()=>{const s=typeof n=="function"?n():n;i.push(An({...r,target:s}))})),()=>{i.forEach(s=>s?.())}}function Tn(e,t){const{onPointerMove:n,onPointerUp:r}=t,i=[y(e,"pointermove",s=>{const a=ue(s),u=Math.sqrt(a.x**2+a.y**2),l=s.pointerType==="touch"?10:5;if(!(u<l)){if(s.pointerType==="mouse"&&s.button===0){r();return}n({point:a,event:s})}},!1),y(e,"pointerup",r,!1),y(e,"pointercancel",r,!1),y(e,"contextmenu",r,!1),_e({doc:e})];return()=>{i.forEach(s=>s())}}function Pn(e){const{pointerNode:t,keyboardNode:n=t,onPress:r,onPressStart:o,onPressEnd:i,isValidKey:s=p=>p.key==="Enter"}=e;if(!t)return C;const a=A(t),u=D(t);let l=C,m=C,h=C;const f=p=>({point:ue(p),event:p});function c(p){o?.(f(p))}function d(p){i?.(f(p))}const T=y(t,"pointerdown",p=>{m();const I=y(a,"pointerup",x=>{const N=O(x);V(t,N)?r?.(f(x)):i?.(f(x))},{passive:!r,once:!0}),P=y(a,"pointercancel",d,{passive:!i,once:!0});m=ee(I,P),u.activeElement===n&&p.pointerType==="mouse"&&p.preventDefault(),c(p)},{passive:!o}),S=y(n,"focus",g);l=ee(T,S);function g(){const p=x=>{if(!s(x))return;const N=st=>{if(!s(st))return;const at=new a.PointerEvent("pointerup"),he=f(at);r?.(he),i?.(he)};m(),m=y(n,"keyup",N);const Q=new a.PointerEvent("pointerdown");c(Q)},E=()=>{const x=new a.PointerEvent("pointercancel");d(x)},I=y(n,"keydown",p),P=y(n,"blur",E);h=ee(I,P)}return()=>{l(),m(),h()}}function xn(e,t={}){const{triggerElement:n,onFocus:r,onFocusEnter:o}=t,i=e?.ownerDocument||document,s=i.body;function a(u){if(u.key!=="Tab")return;let l=null;const[m,h]=Ke(e,!0),f=an(s,n),c=!m&&!h;u.shiftKey&&f===i.activeElement?(o?.(),l=h):u.shiftKey&&(i.activeElement===m||c)?l=n:!u.shiftKey&&i.activeElement===n?(o?.(),l=m):!u.shiftKey&&(i.activeElement===h||c)&&(l=f),l&&(u.preventDefault(),typeof r=="function"?r(l):l.focus())}return y(i,"keydown",a,!0)}function Sn(e,t){const{defer:n,triggerElement:r,...o}=t,i=n?k:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,u=typeof r=="function"?r():r;s.push(xn(a,{triggerElement:u,...o}))})),()=>{s.forEach(a=>a?.())}}function In(e,t){return Array.from(e?.querySelectorAll(t)??[])}function Ln(e,t){return e?.querySelector(t)??null}var fe=e=>e.id;function $e(e,t,n=fe){return e.find(r=>n(r)===t)}function de(e,t,n=fe){const r=$e(e,t,n);return r?e.indexOf(r):-1}function Nn(e,t,n=!0){let r=de(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function Dn(e,t,n=!0){let r=de(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}function Vn(e,t){const{onEntry:n,measure:r,box:o="border-box"}=t,i=(Array.isArray(e)?e:[e]).filter(v),s=A(i[0]),a=l=>{const m=i.map(h=>r(h));n({rects:m,entries:l})};a([]);const u=new s.ResizeObserver(a);return i.forEach(l=>u.observe(l,{box:o})),()=>u.disconnect()}var On=e=>e.split("").map(t=>{const n=t.charCodeAt(0);return n>0&&n<128?t:n>=128&&n<=255?`/x${n.toString(16)}`.replace("/","\\"):""}).join("").trim(),Mn=e=>On(e.dataset?.valuetext??e.textContent??""),Cn=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function Bn(e,t,n,r=fe){const o=n?de(e,n,r):-1;let i=n?ct(e,o):e;return t.length===1&&(i=i.filter(a=>r(a)!==n)),i.find(a=>Cn(Mn(a),t))}function We(e,t){if(!e)return C;const n=Object.keys(t).reduce((r,o)=>(r[o]=e.style.getPropertyValue(o),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function Rn(e,t,n){if(!e)return C;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function Fn(e,t){const{state:n,activeId:r,key:o,timeout:i=350,itemToId:s}=t,a=n.keysSoFar+o,l=a.length>1&&Array.from(a).every(d=>d===a[0])?a[0]:a;let m=e.slice();const h=Bn(m,l,r,s);function f(){clearTimeout(n.timer),n.timer=-1}function c(d){n.keysSoFar=d,f(),d!==""&&(n.timer=+setTimeout(()=>{c(""),f()},i))}return c(a),h}var Kn=Object.assign(Fn,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:jn});function jn(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var qn={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},_n=1e3/60;function $n(e,t){const n=e();if(v(n)&&n.isConnected)return t(n),()=>{};{const r=setInterval(()=>{const o=e();v(o)&&o.isConnected&&(t(o),clearInterval(r))},_n);return()=>clearInterval(r)}}function Wn(e,t){const n=[];return e?.forEach(r=>{const o=$n(r,t);n.push(o)}),()=>{n.forEach(r=>r())}}function Un(e){return e?Array.isArray(e)?e:[e]:[]}var zn=e=>Array.from(Array(e).keys()),Hn=e=>e[0],Xn=e=>e[e.length-1],Yn=(e,t)=>e.indexOf(t)!==-1,Ue=(e,...t)=>e.concat(t),ze=(e,...t)=>e.filter(n=>!t.includes(n)),Gn=(e,t)=>Yn(e,t)?ze(e,t):Ue(e,t);function He(e,t,n={}){const{step:r=1,loop:o=!0}=n,i=t+r,s=e.length,a=s-1;return t===-1?r>0?0:a:i<0?o?a:0:i>=s?o?0:t>s?s:t:i}function Zn(e,t,n={}){return e[He(e,t,n)]}function Jn(e,t,n={}){const{step:r=1,loop:o=!0}=n;return He(e,t,{step:-r,loop:o})}function Qn(e,t,n={}){return e[Jn(e,t,n)]}function Xe(e){return e.reduce((t,n)=>Array.isArray(n)?t.concat(Xe(n)):t.concat(n),[])}var be=e=>e?.constructor.name==="Array",er=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Z(e[n],t[n]))return!1;return!0},Z=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(be(e)&&be(t))return er(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let o=0;o<r;o++)if(!Reflect.has(e,n[o]))return!1;for(let o=0;o<r;o++){const i=n[o];if(!Z(e[i],t[i]))return!1}return!0},tr=e=>Array.isArray(e),nr=e=>e!=null&&typeof e=="object",rr=e=>nr(e)&&!tr(e),or=e=>typeof e=="number"&&!Number.isNaN(e),$=e=>typeof e=="string",pe=e=>typeof e=="function",ir=e=>e==null,sr=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ar=Function.prototype.toString;ar.call(Object);var cr=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,ur=e=>e(),lr=()=>{},U=(...e)=>(...t)=>{e.forEach(function(n){n?.(...t)})},fr=(()=>{let e=0;return()=>(e++,e.toString(36))})(),Ye=(e,t)=>{try{return e()}catch(n){return n instanceof Error&&Error.captureStackTrace?.(n,Ye),t?.()}},{floor:ie,abs:z,round:J,min:dr,max:pr,pow:mr,sign:hr}=Math,K=e=>Number.isNaN(e),L=e=>K(e)?0:e,yr=(e,t)=>(e%t+t)%t,gr=(e,t)=>(e%t+t)%t,vr=(e,t,n)=>e===0?n:t[e-1],br=(e,t,n)=>e===t.length-1?n:t[e+1],Er=(e,t)=>L(e)>=t,wr=(e,t)=>L(e)<=t,Ar=(e,t,n)=>L(e)>=t&&L(e)<=n,kr=(e,t,n)=>J((L(e)-t)/n)*n+t,Ge=(e,t,n)=>dr(pr(L(e),t),n),Tr=(e,t,n)=>(L(e)-t)/(n-t),Pr=(e,t,n,r)=>Ge(kr(e*(n-t)+t,t,r),t,n),q=(e,t)=>{let n=e,r=t.toString(),o=r.indexOf("."),i=o>=0?r.length-o:0;if(i>0){let s=mr(10,i);n=J(n*s)/s}return n},xr=(e,t)=>typeof t=="number"?ie(e*t+.5)/t:J(e),Ze=(e,t,n,r)=>{t=Number(t),n=Number(n);let o=(e-(K(t)?0:t))%r,i=q(z(o)*2>=r?e+hr(o)*(r-z(o)):e-o,r);return K(t)?!K(n)&&i>n&&(i=t+ie(q((n-t)/r,r))*r):i<t?i=t:!K(n)&&i>n&&(i=t+ie(q((n-t)/r,r))*r),q(i,r)},Je=(e,t,n)=>e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)];function Qe(e,t){const n=vr(e,t.values,t.min),r=br(e,t.values,t.max);let o=t.values.slice();return function(s){let a=Ze(s,n,r,t.step);return o=Je(o,e,s),o[e]=a,o}}function Sr(e,t){const n=t.values[e]+t.step;return Qe(e,t)(n)}function Ir(e,t){const n=t.values[e]-t.step;return Qe(e,t)(n)}var Lr=(e,t)=>{let n=e.findIndex(i=>t-i<0);if(n===0)return n;if(n===-1)return e.length-1;let r=e[n-1],o=e[n];return z(r-t)<z(o-t)?n-1:n},Nr=(e,t,n,r)=>e.map((o,i)=>({min:i===0?t:e[i-1]+r,max:i===e.length-1?n:e[i+1]-r,value:o})),Dr=(e,t)=>{const[n,r]=e,[o,i]=t;return s=>n===r||o===i?o:o+(i-o)/(r-n)*(s-n)},Vr=(e,t=0,n=10)=>{const r=Math.pow(n,t);return J(e*r)/r},Ee=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},et=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const o=10**Math.max(Ee(e),Ee(n));e=Math.round(e*o),n=Math.round(n*o),r=t==="+"?e+n:e-n,r/=o}return r},Or=(e,t)=>et(L(e),"+",t),Mr=(e,t)=>et(L(e),"-",t),Cr=e=>e!=null?`${e}px`:void 0;function tt(e){if(!Br(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=tt(o))}return n}var Br=e=>e&&typeof e=="object"&&e.constructor===Object;function Rr(e,t){const n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=o)}return n}function Fr(e,t){const n=performance.now();let r;function o(i){r=requestAnimationFrame(o),i-n>=t&&e()}return r=requestAnimationFrame(o),()=>cancelAnimationFrame(r)}function me(...e){const t=e.length===1?e[0]:e[1];(e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production"&&console.warn(t)}function Kr(...e){const t=e.length===1?e[0]:e[1];if((e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production")throw new Error(t)}function jr(e,t){if(e==null)throw new Error(t())}function qr(e,t,n){let r=[];for(const o of t)e[o]==null&&r.push(o);if(r.length>0)throw new Error(`[zag-js${` > ${n}`}] missing required props: ${r.join(", ")}`)}var _r=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),$r=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,we=e=>{const t={};let n;for(;n=$r.exec(e);)t[n[1]]=n[2];return t},Wr=(e,t)=>{if($(e)){if($(t))return`${e};${t}`;e=we(e)}else $(t)&&(t=we(t));return Object.assign({},e??{},t??{})};function Ur(...e){let t={};for(let n of e){for(let r in t){if(r.startsWith("on")&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=U(n[r],t[r]);continue}if(r==="className"||r==="class"){t[r]=_r(t[r],n[r]);continue}if(r==="style"){t[r]=Wr(t[r],n[r]);continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function zr(e,t,n){let r=[],o;return i=>{const s=e(i);return(s.length!==r.length||s.some((u,l)=>!Z(r[l],u)))&&(r=s,o=t(...s)),o}}function nt(){return{and:(...e)=>function(n){return e.every(r=>n.guard(r))},or:(...e)=>function(n){return e.some(r=>n.guard(r))},not:e=>function(n){return!n.guard(e)}}}function Hr(e){return e}function Xr(){return{guards:nt(),createMachine:e=>e,choose:e=>function({choose:n}){return n(e)?.actions}}}var rt=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(rt||{}),Yr="__init__";function Gr(e){const t=()=>e.getRootNode?.()??document,n=()=>D(t()),r=()=>n().defaultView??window,o=()=>Ne(t());return{...e,getRootNode:t,getDoc:n,getWin:r,getActiveElement:o,isActiveElement:a=>a===o(),getById:a=>t().getElementById(a)}}var W=(e,t=[])=>({parts:(...n)=>{if(Zr(t))return W(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>W(e,[...t,...n]),rename:n=>W(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${M(e)}"][data-part="${M(r)}"]`,`& [data-scope="${M(e)}"][data-part="${M(r)}"]`].join(", "),attrs:{"data-scope":M(e),"data-part":M(r)}}}),{})}),M=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Zr=e=>e.length===0;function Jr(e){const t={each(n){for(let r=0;r<e.frames?.length;r+=1){const o=e.frames[r];o&&n(o)}},addEventListener(n,r,o){return t.each(i=>{try{i.document.addEventListener(n,r,o)}catch{}}),()=>{try{t.removeEventListener(n,r,o)}catch{}}},removeEventListener(n,r,o){t.each(i=>{try{i.document.removeEventListener(n,r,o)}catch{}})}};return t}function Qr(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,o)=>{try{t?.addEventListener(n,r,o)}catch{}return()=>{try{t?.removeEventListener(n,r,o)}catch{}}},removeEventListener:(n,r,o)=>{try{t?.removeEventListener(n,r,o)}catch{}}}}var Ae="pointerdown.outside",ke="focus.outside";function eo(e){for(const t of e)if(v(t)&&F(t))return!0;return!1}var ot=e=>"clientY"in e;function to(e,t){if(!ot(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function no(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Te(e,t){if(!t||!ot(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,i=o&&e.clientY>t.offsetTop+t.clientHeight,s={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(o?16:0)},a={x:e.clientX,y:e.clientY};return no(s,a)?r||i:!1}function ro(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:o,onInteractOutside:i,defer:s}=t;if(!e)return;const a=D(e),u=A(e),l=Jr(u),m=Qr(u);function h(g,p){if(!v(p)||!p.isConnected||V(e,p)||to(e,g))return!1;const E=a.querySelector(`[aria-controls="${e.id}"]`);if(E){const P=re(E);if(Te(g,P))return!1}const I=re(e);return Te(g,I)?!1:!n?.(p)}const f=new Set,c=R(e?.getRootNode());function d(g){function p(E){const I=s&&!ge()?k:N=>N(),P=E??g,x=P?.composedPath?.()??[P?.target];I(()=>{const N=c?x[0]:O(g);if(!(!e||!h(g,N))){if(o||i){const Q=U(o,i);e.addEventListener(Ae,Q,{once:!0})}Pe(e,Ae,{bubbles:!1,cancelable:!0,detail:{originalEvent:P,contextmenu:Ve(P),focusable:eo(x),target:N}})}})}g.pointerType==="touch"?(f.forEach(E=>E()),f.add(y(a,"click",p,{once:!0})),f.add(m.addEventListener("click",p,{once:!0})),f.add(l.addEventListener("click",p,{once:!0}))):p()}const b=new Set,T=setTimeout(()=>{b.add(y(a,"pointerdown",d,!0)),b.add(m.addEventListener("pointerdown",d,!0)),b.add(l.addEventListener("pointerdown",d,!0))},0);function S(g){(s?k:E=>E())(()=>{const E=O(g);if(!(!e||!h(g,E))){if(r||i){const I=U(r,i);e.addEventListener(ke,I,{once:!0})}Pe(e,ke,{bubbles:!1,cancelable:!0,detail:{originalEvent:g,contextmenu:!1,focusable:F(E),target:E}})}})}return ge()||(b.add(y(a,"focusin",S,!0)),b.add(m.addEventListener("focusin",S,!0)),b.add(l.addEventListener("focusin",S,!0))),()=>{clearTimeout(T),f.forEach(g=>g()),b.forEach(g=>g())}}function it(e,t){const{defer:n}=t,r=n?k:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(ro(i,t))})),()=>{o.forEach(i=>i?.())}}function Pe(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,n);return e.dispatchEvent(o)}function oo(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t?.(r))};return y(D(e),"keydown",n,{capture:!0})}var w={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<n},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(n=>V(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>V(t,e))},add(e){const t=this.layers.push(e);e.node.style.setProperty("--layer-index",`${t}`)},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(r=>r.dismiss()),this.layers.splice(t,1),e.style.removeProperty("--layer-index"))},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e){this.layers[this.indexOf(e)]?.dismiss()},clear(){this.remove(this.layers[0].node)}},xe;function Se(){w.layers.forEach(({node:e})=>{e.style.pointerEvents=w.isBelowPointerBlockingLayer(e)?"none":"auto"})}function io(e){e.style.pointerEvents=""}function so(e,t){const n=D(e),r=[];if(w.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(xe=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t){const o=Wn(t,i=>{r.push(We(i,{pointerEvents:"auto"}))});r.push(o)}return()=>{w.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=xe,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(o=>o()))}}function ao(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){me("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,pointerBlocking:o,exclude:i,debug:s}=t,a={dismiss:r,node:e,pointerBlocking:o};w.add(a),Se();function u(c){const d=O(c.detail.originalEvent);w.isBelowPointerBlockingLayer(e)||w.isInBranch(d)||(t.onPointerDownOutside?.(c),t.onInteractOutside?.(c),!c.defaultPrevented&&(s&&console.log("onPointerDownOutside:",c.detail.originalEvent),r?.()))}function l(c){const d=O(c.detail.originalEvent);w.isInBranch(d)||(t.onFocusOutside?.(c),t.onInteractOutside?.(c),!c.defaultPrevented&&(s&&console.log("onFocusOutside:",c.detail.originalEvent),r?.()))}function m(c){w.isTopMost(e)&&(t.onEscapeKeyDown?.(c),!c.defaultPrevented&&r&&(c.preventDefault(),r()))}function h(c){if(!e)return!1;const d=typeof i=="function"?i():i,b=Array.isArray(d)?d:[d],T=t.persistentElements?.map(S=>S()).filter(v);return T&&b.push(...T),b.some(S=>V(S,c))||w.isInNestedLayer(e,c)}const f=[o?so(e,t.persistentElements):void 0,oo(e,m),it(e,{exclude:h,onFocusOutside:l,onPointerDownOutside:u,defer:t.defer})];return()=>{w.remove(e),Se(),io(e),f.forEach(c=>c?.())}}function co(e,t){const{defer:n}=t,r=n?k:i=>i(),o=[];return o.push(r(()=>{const i=pe(e)?e():e;o.push(ao(i,t))})),()=>{o.forEach(i=>i?.())}}function uo(e,t={}){const{defer:n}=t,r=n?k:i=>i(),o=[];return o.push(r(()=>{const i=pe(e)?e():e;if(!i){me("[@zag-js/dismissable] branch node is `null` or `undefined`");return}w.addBranch(i),o.push(()=>{w.removeBranch(i)})})),()=>{o.forEach(i=>i?.())}}exports.INIT_STATE=Yr;exports.MAX_Z_INDEX=ut;exports.MachineStatus=rt;exports.add=Ue;exports.addDomEvent=y;exports.addOrRemove=Gn;exports.ariaAttr=ft;exports.callAll=U;exports.clampValue=Ge;exports.clickIfLink=yn;exports.compact=tt;exports.contains=V;exports.createAnatomy=W;exports.createGuards=nt;exports.createMachine=Hr;exports.createScope=Gr;exports.dataAttr=lt;exports.decrementValue=Mr;exports.disableTextSelection=_e;exports.dispatchInputCheckedEvent=Jt;exports.dispatchInputValueEvent=Zt;exports.ensure=jr;exports.ensureProps=qr;exports.first=Hn;exports.flatArray=Xe;exports.fromLength=zn;exports.getActiveElement=Ne;exports.getBeforeInputValue=Mt;exports.getByTypeahead=Kn;exports.getClosestValueIndex=Lr;exports.getComputedStyle=Tt;exports.getDataUrl=Pt;exports.getDocument=D;exports.getEventKey=zt;exports.getEventPoint=ue;exports.getEventStep=Yt;exports.getEventTarget=O;exports.getFocusables=Fe;exports.getInitialFocus=un;exports.getNativeEvent=Oe;exports.getNextStepValue=Sr;exports.getPercentValue=Pr;exports.getPreviousStepValue=Ir;exports.getRelativePoint=En;exports.getTabIndex=cn;exports.getTabbables=j;exports.getValuePercent=Tr;exports.getValueRanges=Nr;exports.getValueTransformer=Dr;exports.getWindow=A;exports.hasProp=sr;exports.identity=ur;exports.incrementValue=Or;exports.invariant=Kr;exports.isAnchorElement=bt;exports.isApple=ce;exports.isComposingEvent=Kt;exports.isContextMenuEvent=Ve;exports.isDocument=se;exports.isDownloadingEvent=Ft;exports.isEditableElement=Le;exports.isEqual=Z;exports.isFocusable=F;exports.isFunction=pe;exports.isHTMLElement=v;exports.isIos=Y;exports.isLeftClick=_t;exports.isMac=G;exports.isModifierKey=$t;exports.isNull=ir;exports.isNumber=or;exports.isObject=rr;exports.isOpeningInNewTab=Rt;exports.isPrintableKey=jt;exports.isSafari=Dt;exports.isSelfTarget=Bt;exports.isShadowRoot=R;exports.isString=$;exports.isTabbable=ne;exports.isValidTabEvent=ln;exports.isValueAtMax=Er;exports.isValueAtMin=wr;exports.isValueWithinRange=Ar;exports.isVirtualClick=qt;exports.itemById=$e;exports.last=Xn;exports.memo=zr;exports.mergeProps=Ur;exports.mod=yr;exports.next=Zn;exports.nextById=Nn;exports.nextTick=je;exports.noop=lr;exports.observeAttributes=pn;exports.observeChildren=hn;exports.pick=Rr;exports.prev=Qn;exports.prevById=Dn;exports.proxyTabFocus=Sn;exports.query=Ln;exports.queryAll=In;exports.raf=k;exports.remove=ze;exports.requestPointerLock=wn;exports.roundToDpr=xr;exports.runIfFn=cr;exports.scrollIntoView=bn;exports.setElementChecked=Be;exports.setElementValue=Ce;exports.setRafTimeout=Fr;exports.setStyle=We;exports.setStyleProperty=Rn;exports.setValueAtIndex=Je;exports.setup=Xr;exports.snapValueToStep=Ze;exports.toArray=Un;exports.toFixedNumber=Vr;exports.toPx=Cr;exports.trackDismissableBranch=uo;exports.trackDismissableElement=co;exports.trackElementRect=Vn;exports.trackFormControl=rn;exports.trackInteractOutside=it;exports.trackPointerMove=Tn;exports.trackPress=Pn;exports.tryCatch=Ye;exports.uuid=fr;exports.visuallyHiddenStyle=qn;exports.warn=me;exports.wrap=gr;
|
|
3
|
+
//# sourceMappingURL=index-CHIISuTq.js.map
|