nolune 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESIGN.md +1622 -0
- package/LICENSE +21 -0
- package/README.md +226 -0
- package/build/client/_app/immutable/assets/0.CO3c3JBa.css +2 -0
- package/build/client/_app/immutable/assets/0.CO3c3JBa.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CO3c3JBa.css.gz +0 -0
- package/build/client/_app/immutable/assets/10.DiHYpJ-g.css +1 -0
- package/build/client/_app/immutable/assets/10.DiHYpJ-g.css.br +0 -0
- package/build/client/_app/immutable/assets/10.DiHYpJ-g.css.gz +0 -0
- package/build/client/_app/immutable/assets/14.D8mCg27h.css +1 -0
- package/build/client/_app/immutable/assets/14.D8mCg27h.css.br +0 -0
- package/build/client/_app/immutable/assets/14.D8mCg27h.css.gz +0 -0
- package/build/client/_app/immutable/assets/AssistantAvatar.BH1P1JPA.css +1 -0
- package/build/client/_app/immutable/assets/AssistantAvatar.BH1P1JPA.css.br +0 -0
- package/build/client/_app/immutable/assets/AssistantAvatar.BH1P1JPA.css.gz +0 -0
- package/build/client/_app/immutable/assets/AvatarPicker.BWZNEVEv.css +1 -0
- package/build/client/_app/immutable/assets/AvatarPicker.BWZNEVEv.css.br +0 -0
- package/build/client/_app/immutable/assets/AvatarPicker.BWZNEVEv.css.gz +0 -0
- package/build/client/_app/immutable/assets/DotGrid.uBe8QJ6R.css +1 -0
- package/build/client/_app/immutable/assets/DotGrid.uBe8QJ6R.css.br +0 -0
- package/build/client/_app/immutable/assets/DotGrid.uBe8QJ6R.css.gz +0 -0
- package/build/client/_app/immutable/assets/ModelMenu.CfwWh95X.css +1 -0
- package/build/client/_app/immutable/assets/ModelMenu.CfwWh95X.css.br +0 -0
- package/build/client/_app/immutable/assets/ModelMenu.CfwWh95X.css.gz +0 -0
- package/build/client/_app/immutable/assets/confirm.BpBhXN_i.mp3 +0 -0
- package/build/client/_app/immutable/assets/data.9aNBaxbh.json +1 -0
- package/build/client/_app/immutable/assets/data.9aNBaxbh.json.br +0 -0
- package/build/client/_app/immutable/assets/data.9aNBaxbh.json.gz +0 -0
- package/build/client/_app/immutable/assets/data.BF1r6TM-.json +1 -0
- package/build/client/_app/immutable/assets/data.BF1r6TM-.json.br +0 -0
- package/build/client/_app/immutable/assets/data.BF1r6TM-.json.gz +0 -0
- package/build/client/_app/immutable/assets/data.BnNTV_b6.json +1 -0
- package/build/client/_app/immutable/assets/data.BnNTV_b6.json.br +0 -0
- package/build/client/_app/immutable/assets/data.BnNTV_b6.json.gz +0 -0
- package/build/client/_app/immutable/assets/data.CreAftJo.json +1 -0
- package/build/client/_app/immutable/assets/data.CreAftJo.json.br +0 -0
- package/build/client/_app/immutable/assets/data.CreAftJo.json.gz +0 -0
- package/build/client/_app/immutable/assets/data.DKp8PYJD.json +1 -0
- package/build/client/_app/immutable/assets/data.DKp8PYJD.json.br +0 -0
- package/build/client/_app/immutable/assets/data.DKp8PYJD.json.gz +0 -0
- package/build/client/_app/immutable/assets/figtree-latin-ext-wght-italic.Q0qr0lrZ.woff2 +0 -0
- package/build/client/_app/immutable/assets/figtree-latin-ext-wght-normal.DCwSJGxG.woff2 +0 -0
- package/build/client/_app/immutable/assets/figtree-latin-wght-italic.BEAWuiTz.woff2 +0 -0
- package/build/client/_app/immutable/assets/figtree-latin-wght-normal.D_ZTVpCC.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-cyrillic-400-normal.BJkDdjbt.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-cyrillic-400-normal.DUd3efVn.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-cyrillic-500-normal.CAy0Dwk2.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-cyrillic-500-normal.CFTSF0cD.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-cyrillic-ext-400-normal.Co4MVjrD.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-cyrillic-ext-400-normal.FAIU8e3o.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-cyrillic-ext-500-normal.BDCQVX4y.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-cyrillic-ext-500-normal.BGV2-mDE.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-greek-400-normal.B_0AmgK7.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-greek-400-normal.ftNhKy_S.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-greek-500-normal.DNFqaoqB.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-greek-500-normal.kj_VgxTv.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-greek-ext-400-normal.BQ5yw6bY.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-greek-ext-400-normal.Be4g_LSk.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-greek-ext-500-normal.CGPEfoom.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-greek-ext-500-normal.g6G8W_LY.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-latin-400-normal.C3FQ26ho.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-latin-400-normal.DVTTRLHv.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-latin-500-normal.DknboRIW.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-latin-500-normal.Du17Nws8.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-latin-ext-400-normal.B2gPvaNr.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-latin-ext-400-normal.CbD3vWRE.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-latin-ext-500-normal.-0AGvlKU.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-latin-ext-500-normal.DPED3Y3R.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-symbols2-400-normal.C6JptOil.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-symbols2-400-normal.CpeG9ob9.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-symbols2-500-normal.0PpNbZw_.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-symbols2-500-normal.fxu0Prpo.woff +0 -0
- package/build/client/_app/immutable/assets/music.z3ymEIJM.mp3 +0 -0
- package/build/client/_app/immutable/assets/select.CV-KWLNP.css +1 -0
- package/build/client/_app/immutable/assets/select.CV-KWLNP.css.br +1 -0
- package/build/client/_app/immutable/assets/select.CV-KWLNP.css.gz +0 -0
- package/build/client/_app/immutable/assets/wash.BnjShmr3.mp3 +0 -0
- package/build/client/_app/immutable/assets/yap.SNl9LSqC.mp3 +0 -0
- package/build/client/_app/immutable/chunks/-FJ70HB3.js +1 -0
- package/build/client/_app/immutable/chunks/-FJ70HB3.js.br +0 -0
- package/build/client/_app/immutable/chunks/-FJ70HB3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/9J99lH1E.js +4 -0
- package/build/client/_app/immutable/chunks/9J99lH1E.js.br +0 -0
- package/build/client/_app/immutable/chunks/9J99lH1E.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B4AK16CS.js +1 -0
- package/build/client/_app/immutable/chunks/B4AK16CS.js.br +0 -0
- package/build/client/_app/immutable/chunks/B4AK16CS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B5IRm2KW.js +1 -0
- package/build/client/_app/immutable/chunks/B5IRm2KW.js.br +0 -0
- package/build/client/_app/immutable/chunks/B5IRm2KW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BAJE4yH_.js +9 -0
- package/build/client/_app/immutable/chunks/BAJE4yH_.js.br +0 -0
- package/build/client/_app/immutable/chunks/BAJE4yH_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BDCREBKE.js +1 -0
- package/build/client/_app/immutable/chunks/BDCREBKE.js.br +0 -0
- package/build/client/_app/immutable/chunks/BDCREBKE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BOf4cn4q.js +16 -0
- package/build/client/_app/immutable/chunks/BOf4cn4q.js.br +0 -0
- package/build/client/_app/immutable/chunks/BOf4cn4q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BOixjj3c.js +1 -0
- package/build/client/_app/immutable/chunks/BOixjj3c.js.br +1 -0
- package/build/client/_app/immutable/chunks/BOixjj3c.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BQb4WE-8.js +1 -0
- package/build/client/_app/immutable/chunks/BQb4WE-8.js.br +0 -0
- package/build/client/_app/immutable/chunks/BQb4WE-8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BTeK4a_a.js +1 -0
- package/build/client/_app/immutable/chunks/BTeK4a_a.js.br +0 -0
- package/build/client/_app/immutable/chunks/BTeK4a_a.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BYNjkfU_.js +1 -0
- package/build/client/_app/immutable/chunks/BYNjkfU_.js.br +0 -0
- package/build/client/_app/immutable/chunks/BYNjkfU_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BeDhKqx_.js +1 -0
- package/build/client/_app/immutable/chunks/BeDhKqx_.js.br +3 -0
- package/build/client/_app/immutable/chunks/BeDhKqx_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bjy-W4x2.js +81 -0
- package/build/client/_app/immutable/chunks/Bjy-W4x2.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bjy-W4x2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bmf5cCYM.js +1 -0
- package/build/client/_app/immutable/chunks/Bmf5cCYM.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bmf5cCYM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bo7a0aly.js +1 -0
- package/build/client/_app/immutable/chunks/Bo7a0aly.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bo7a0aly.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BvAz--0N.js +1 -0
- package/build/client/_app/immutable/chunks/BvAz--0N.js.br +0 -0
- package/build/client/_app/immutable/chunks/BvAz--0N.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C-5HEoLn.js +1 -0
- package/build/client/_app/immutable/chunks/C-5HEoLn.js.br +0 -0
- package/build/client/_app/immutable/chunks/C-5HEoLn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C7dZK71a.js +1 -0
- package/build/client/_app/immutable/chunks/C7dZK71a.js.br +0 -0
- package/build/client/_app/immutable/chunks/C7dZK71a.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C98TgtTN.js +1 -0
- package/build/client/_app/immutable/chunks/C98TgtTN.js.br +0 -0
- package/build/client/_app/immutable/chunks/C98TgtTN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C9u9ikCJ.js +1 -0
- package/build/client/_app/immutable/chunks/C9u9ikCJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/C9u9ikCJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CBy5xNAu.js +1 -0
- package/build/client/_app/immutable/chunks/CBy5xNAu.js.br +0 -0
- package/build/client/_app/immutable/chunks/CBy5xNAu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CCDGpt2Z.js +1 -0
- package/build/client/_app/immutable/chunks/CCDGpt2Z.js.br +0 -0
- package/build/client/_app/immutable/chunks/CCDGpt2Z.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CNU7dyxe.js +1 -0
- package/build/client/_app/immutable/chunks/CNU7dyxe.js.br +3 -0
- package/build/client/_app/immutable/chunks/CNU7dyxe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CNij7yXO.js +1 -0
- package/build/client/_app/immutable/chunks/CNij7yXO.js.br +0 -0
- package/build/client/_app/immutable/chunks/CNij7yXO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CPbGz0nD.js +1 -0
- package/build/client/_app/immutable/chunks/CPbGz0nD.js.br +0 -0
- package/build/client/_app/immutable/chunks/CPbGz0nD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ce5rxuHE.js +1 -0
- package/build/client/_app/immutable/chunks/Ce5rxuHE.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ce5rxuHE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CgJaNa38.js +1 -0
- package/build/client/_app/immutable/chunks/CgJaNa38.js.br +0 -0
- package/build/client/_app/immutable/chunks/CgJaNa38.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CgoZLTv2.js +1 -0
- package/build/client/_app/immutable/chunks/CgoZLTv2.js.br +0 -0
- package/build/client/_app/immutable/chunks/CgoZLTv2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ch-tX5Y1.js +1 -0
- package/build/client/_app/immutable/chunks/Ch-tX5Y1.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ch-tX5Y1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CkALdgl6.js +1 -0
- package/build/client/_app/immutable/chunks/CkALdgl6.js.br +0 -0
- package/build/client/_app/immutable/chunks/CkALdgl6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cn31HPZM.js +1 -0
- package/build/client/_app/immutable/chunks/Cn31HPZM.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cn31HPZM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CoVud_S-.js +1 -0
- package/build/client/_app/immutable/chunks/CoVud_S-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CoVud_S-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CraKVm2C.js +1 -0
- package/build/client/_app/immutable/chunks/CraKVm2C.js.br +0 -0
- package/build/client/_app/immutable/chunks/CraKVm2C.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D2KG5w4u.js +1 -0
- package/build/client/_app/immutable/chunks/D2KG5w4u.js.br +0 -0
- package/build/client/_app/immutable/chunks/D2KG5w4u.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DD7ObTOV.js +1 -0
- package/build/client/_app/immutable/chunks/DD7ObTOV.js.br +0 -0
- package/build/client/_app/immutable/chunks/DD7ObTOV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DD9f1wuL.js +1 -0
- package/build/client/_app/immutable/chunks/DD9f1wuL.js.br +0 -0
- package/build/client/_app/immutable/chunks/DD9f1wuL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DFMQ7Wtb.js +1 -0
- package/build/client/_app/immutable/chunks/DFMQ7Wtb.js.br +0 -0
- package/build/client/_app/immutable/chunks/DFMQ7Wtb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DFO_JKVL.js +1 -0
- package/build/client/_app/immutable/chunks/DFO_JKVL.js.br +0 -0
- package/build/client/_app/immutable/chunks/DFO_JKVL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DGyl1a-y.js +2 -0
- package/build/client/_app/immutable/chunks/DGyl1a-y.js.br +0 -0
- package/build/client/_app/immutable/chunks/DGyl1a-y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DM7BiLiI.js +1 -0
- package/build/client/_app/immutable/chunks/DM7BiLiI.js.br +0 -0
- package/build/client/_app/immutable/chunks/DM7BiLiI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DRu3YDxz.js +1 -0
- package/build/client/_app/immutable/chunks/DRu3YDxz.js.br +2 -0
- package/build/client/_app/immutable/chunks/DRu3YDxz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DTmdu5jU.js +1 -0
- package/build/client/_app/immutable/chunks/DTmdu5jU.js.br +0 -0
- package/build/client/_app/immutable/chunks/DTmdu5jU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DW6oei0W.js +1 -0
- package/build/client/_app/immutable/chunks/DW6oei0W.js.br +0 -0
- package/build/client/_app/immutable/chunks/DW6oei0W.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DZ_NkRbw.js +1 -0
- package/build/client/_app/immutable/chunks/DZ_NkRbw.js.br +0 -0
- package/build/client/_app/immutable/chunks/DZ_NkRbw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DfNBP7nd.js +1 -0
- package/build/client/_app/immutable/chunks/DfNBP7nd.js.br +0 -0
- package/build/client/_app/immutable/chunks/DfNBP7nd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DkhXP75k.js +1 -0
- package/build/client/_app/immutable/chunks/DkhXP75k.js.br +0 -0
- package/build/client/_app/immutable/chunks/DkhXP75k.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DpugZNaj.js +1 -0
- package/build/client/_app/immutable/chunks/DpugZNaj.js.br +0 -0
- package/build/client/_app/immutable/chunks/DpugZNaj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DuEN1GTI.js +5 -0
- package/build/client/_app/immutable/chunks/DuEN1GTI.js.br +0 -0
- package/build/client/_app/immutable/chunks/DuEN1GTI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DubTk1R0.js +1 -0
- package/build/client/_app/immutable/chunks/DubTk1R0.js.br +0 -0
- package/build/client/_app/immutable/chunks/DubTk1R0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dyxd9rrM.js +5 -0
- package/build/client/_app/immutable/chunks/Dyxd9rrM.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dyxd9rrM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/F14uK0sn.js +1 -0
- package/build/client/_app/immutable/chunks/F14uK0sn.js.br +1 -0
- package/build/client/_app/immutable/chunks/F14uK0sn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/GbStyEBD.js +1 -0
- package/build/client/_app/immutable/chunks/GbStyEBD.js.br +0 -0
- package/build/client/_app/immutable/chunks/GbStyEBD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/IV6C0355.js +1 -0
- package/build/client/_app/immutable/chunks/IV6C0355.js.br +0 -0
- package/build/client/_app/immutable/chunks/IV6C0355.js.gz +0 -0
- package/build/client/_app/immutable/chunks/KSWUKh8r.js +1 -0
- package/build/client/_app/immutable/chunks/KSWUKh8r.js.br +0 -0
- package/build/client/_app/immutable/chunks/KSWUKh8r.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Nhc5CiNi.js +1 -0
- package/build/client/_app/immutable/chunks/Nhc5CiNi.js.br +0 -0
- package/build/client/_app/immutable/chunks/Nhc5CiNi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/OrbH09aZ.js +318 -0
- package/build/client/_app/immutable/chunks/OrbH09aZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/OrbH09aZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/PnjGAuWf.js +1 -0
- package/build/client/_app/immutable/chunks/PnjGAuWf.js.br +0 -0
- package/build/client/_app/immutable/chunks/PnjGAuWf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ZoO6eRK-.js +1 -0
- package/build/client/_app/immutable/chunks/ZoO6eRK-.js.br +0 -0
- package/build/client/_app/immutable/chunks/ZoO6eRK-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/eHlSYfzc.js +67 -0
- package/build/client/_app/immutable/chunks/eHlSYfzc.js.br +0 -0
- package/build/client/_app/immutable/chunks/eHlSYfzc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/kUgLbqVN.js +1 -0
- package/build/client/_app/immutable/chunks/kUgLbqVN.js.br +0 -0
- package/build/client/_app/immutable/chunks/kUgLbqVN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/kW5akbMY.js +1 -0
- package/build/client/_app/immutable/chunks/kW5akbMY.js.br +0 -0
- package/build/client/_app/immutable/chunks/kW5akbMY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/lOC7RXgz.js +1 -0
- package/build/client/_app/immutable/chunks/lOC7RXgz.js.br +0 -0
- package/build/client/_app/immutable/chunks/lOC7RXgz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/mxa1wXkp.js +3 -0
- package/build/client/_app/immutable/chunks/mxa1wXkp.js.br +0 -0
- package/build/client/_app/immutable/chunks/mxa1wXkp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/q0g666o4.js +6 -0
- package/build/client/_app/immutable/chunks/q0g666o4.js.br +0 -0
- package/build/client/_app/immutable/chunks/q0g666o4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/rTK8FScS.js +1 -0
- package/build/client/_app/immutable/chunks/rTK8FScS.js.br +0 -0
- package/build/client/_app/immutable/chunks/rTK8FScS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/uBIymjUX.js +1 -0
- package/build/client/_app/immutable/chunks/uBIymjUX.js.br +0 -0
- package/build/client/_app/immutable/chunks/uBIymjUX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/vt9Yl3tP.js +1 -0
- package/build/client/_app/immutable/chunks/vt9Yl3tP.js.br +0 -0
- package/build/client/_app/immutable/chunks/vt9Yl3tP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/xihTtKlq.js +1 -0
- package/build/client/_app/immutable/chunks/xihTtKlq.js.br +1 -0
- package/build/client/_app/immutable/chunks/xihTtKlq.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.BBB0nTuC.js +2 -0
- package/build/client/_app/immutable/entry/app.BBB0nTuC.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BBB0nTuC.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CmBINDhZ.js +1 -0
- package/build/client/_app/immutable/entry/start.CmBINDhZ.js.br +1 -0
- package/build/client/_app/immutable/entry/start.CmBINDhZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.But357jM.js +1 -0
- package/build/client/_app/immutable/nodes/0.But357jM.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.But357jM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.DT8uBymP.js +1 -0
- package/build/client/_app/immutable/nodes/1.DT8uBymP.js.br +4 -0
- package/build/client/_app/immutable/nodes/1.DT8uBymP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.BacbVQXe.js +1 -0
- package/build/client/_app/immutable/nodes/10.BacbVQXe.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.BacbVQXe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.CF-CErr7.js +2 -0
- package/build/client/_app/immutable/nodes/11.CF-CErr7.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.CF-CErr7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.CAPJJBGQ.js +1 -0
- package/build/client/_app/immutable/nodes/12.CAPJJBGQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.CAPJJBGQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.DFyrYJal.js +1 -0
- package/build/client/_app/immutable/nodes/13.DFyrYJal.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.DFyrYJal.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.D35Ot9wm.js +46 -0
- package/build/client/_app/immutable/nodes/14.D35Ot9wm.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.D35Ot9wm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.Cp0A6oCa.js +1 -0
- package/build/client/_app/immutable/nodes/15.Cp0A6oCa.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.Cp0A6oCa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DFKUnwHk.js +1 -0
- package/build/client/_app/immutable/nodes/2.DFKUnwHk.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DFKUnwHk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.DtSCxjUL.js +1 -0
- package/build/client/_app/immutable/nodes/3.DtSCxjUL.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DtSCxjUL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BY04Tg68.js +2 -0
- package/build/client/_app/immutable/nodes/4.BY04Tg68.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BY04Tg68.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CXq_oj0Q.js +1 -0
- package/build/client/_app/immutable/nodes/5.CXq_oj0Q.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CXq_oj0Q.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BVjg5uYT.js +1 -0
- package/build/client/_app/immutable/nodes/6.BVjg5uYT.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BVjg5uYT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.BX0HQjn_.js +1 -0
- package/build/client/_app/immutable/nodes/7.BX0HQjn_.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BX0HQjn_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.De0kNeyT.js +4 -0
- package/build/client/_app/immutable/nodes/8.De0kNeyT.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.De0kNeyT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.CjcFLNkE.js +1 -0
- package/build/client/_app/immutable/nodes/9.CjcFLNkE.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CjcFLNkE.js.gz +0 -0
- package/build/client/_app/version.json +1 -0
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/client/apple-touch-icon.png +0 -0
- package/build/client/favicon.ico +0 -0
- package/build/client/robots.txt +3 -0
- package/build/client/robots.txt.br +0 -0
- package/build/client/robots.txt.gz +0 -0
- package/build/env.js +70 -0
- package/build/handler.js +26 -0
- package/build/index.js +149 -0
- package/build/server/chunks/chunks/AssistantAvatar.js-CR1xF68O.js +294 -0
- package/build/server/chunks/chunks/AvatarPicker.js-DZPhpy7w.js +136 -0
- package/build/server/chunks/chunks/Composer.js-mKR_nJD9.js +332 -0
- package/build/server/chunks/chunks/ComposerDock.js-CCH7a93l.js +58 -0
- package/build/server/chunks/chunks/CopyButton.js-BztgBjPI.js +81 -0
- package/build/server/chunks/chunks/DotGrid.js-CftrAYTh.js +107 -0
- package/build/server/chunks/chunks/LucideIcon.js-B_cwdnXZ.js +19 -0
- package/build/server/chunks/chunks/MemoryChangeItem.js-BBDjCjIq.js +2557 -0
- package/build/server/chunks/chunks/ModelMenu.js-DHccPOZS.js +510 -0
- package/build/server/chunks/chunks/MoveToFolderMenu.js-DI6yuRr_.js +288 -0
- package/build/server/chunks/chunks/NewChatForm.js-BesIRgmI.js +296 -0
- package/build/server/chunks/chunks/NewFolderDialog.js-BTTYnEvA.js +192 -0
- package/build/server/chunks/chunks/Notifications.js-BUIjQEFf.js +762 -0
- package/build/server/chunks/chunks/PageHeader.js-CBhoVn_r.js +59 -0
- package/build/server/chunks/chunks/RenameFolderDialog.js-DRXA1rE1.js +258 -0
- package/build/server/chunks/chunks/Rich.js-DEvHcohw.js +31 -0
- package/build/server/chunks/chunks/StepIcon.js-DbIHgd-j.js +38 -0
- package/build/server/chunks/chunks/TopBar.js-DL3V5e8_.js +34 -0
- package/build/server/chunks/chunks/TypedText.js-CBSV0Eww.js +62 -0
- package/build/server/chunks/chunks/UserAvatar.js-zDozVLYj.js +17 -0
- package/build/server/chunks/chunks/UserMenu.js-CD42Fp5q.js +960 -0
- package/build/server/chunks/chunks/access.js-0oJZgR4f.js +40 -0
- package/build/server/chunks/chunks/after-sleep.js-BBvqb2L4.js +10 -0
- package/build/server/chunks/chunks/alert-dialog.js-DFswoRFb.js +505 -0
- package/build/server/chunks/chunks/articles.js-DmiBPIor.js +16 -0
- package/build/server/chunks/chunks/auth.js-avakWenI.js +20044 -0
- package/build/server/chunks/chunks/avatars.js-CZXD-JBu.js +496 -0
- package/build/server/chunks/chunks/badge.js-CBKfxi1n.js +38 -0
- package/build/server/chunks/chunks/check.js-DlXI7kOF.js +15 -0
- package/build/server/chunks/chunks/chevron-right.js-D2YPHtEd.js +15 -0
- package/build/server/chunks/chunks/chevrons-up-down.js-kIInlPpp.js +15 -0
- package/build/server/chunks/chunks/client.js-DXLagFo3.js +120 -0
- package/build/server/chunks/chunks/clock.js-DLKiHbA7.js +19 -0
- package/build/server/chunks/chunks/collapsible.js-TEhMCaES.js +410 -0
- package/build/server/chunks/chunks/command.js-DYF1chyA.js +2231 -0
- package/build/server/chunks/chunks/core.js-fgH-0YTF.js +6 -0
- package/build/server/chunks/chunks/dialog.js-CSahHfdK.js +544 -0
- package/build/server/chunks/chunks/dist.js-Dgve-3EB.js +600 -0
- package/build/server/chunks/chunks/dist2.js-DzuN_1ds.js +347 -0
- package/build/server/chunks/chunks/dropdown-menu.js-CnOm2iRl.js +2396 -0
- package/build/server/chunks/chunks/env.js-l0sNRNKZ.js +2 -0
- package/build/server/chunks/chunks/eraser.js-CwqAwzLd.js +15 -0
- package/build/server/chunks/chunks/exports.js-DPPmkIPk.js +236 -0
- package/build/server/chunks/chunks/factory.js-B2lDZWU5.js +2344 -0
- package/build/server/chunks/chunks/files.js-BTCcxPsy.js +33 -0
- package/build/server/chunks/chunks/folder-input.js-bTjsbAVr.js +19 -0
- package/build/server/chunks/chunks/format.js-D-G-GNZJ.js +57 -0
- package/build/server/chunks/chunks/forms.js-TIFaBiDZ.js +4052 -0
- package/build/server/chunks/chunks/hidden-input.js-3jXOp67_.js +47 -0
- package/build/server/chunks/chunks/http.js-B-SIUg23.js +19 -0
- package/build/server/chunks/chunks/i18n.js-gmnYop5e.js +5049 -0
- package/build/server/chunks/chunks/icons.js-DqrSaQen.js +32087 -0
- package/build/server/chunks/chunks/index-server.js-BgjjN9Dl.js +146 -0
- package/build/server/chunks/chunks/internal.js-CPnM6pod.js +28 -0
- package/build/server/chunks/chunks/internal2.js-BJdu5v6t.js +1135 -0
- package/build/server/chunks/chunks/key-round.js-ALDn8H2Z.js +20 -0
- package/build/server/chunks/chunks/last-profile.js-CGCyMPCt.js +6 -0
- package/build/server/chunks/chunks/media-refs.js-CTbNjDi5.js +129 -0
- package/build/server/chunks/chunks/memory-categories.js-BMxcWbJ1.js +141 -0
- package/build/server/chunks/chunks/memory-export.js-B-0sQxo9.js +126 -0
- package/build/server/chunks/chunks/memory.js-BmjM2yTP.js +25 -0
- package/build/server/chunks/chunks/message-circle.js-Boy7xak8.js +15 -0
- package/build/server/chunks/chunks/motion.js-e6Xy0FvI.js +224 -0
- package/build/server/chunks/chunks/node.js-B1BYsTq2.js +9 -0
- package/build/server/chunks/chunks/node2.js-BoQ3pSBK.js +7 -0
- package/build/server/chunks/chunks/node3.js-DUajZgS1.js +2420 -0
- package/build/server/chunks/chunks/openai.js-usndTuuG.js +20473 -0
- package/build/server/chunks/chunks/paths.js-Dv5_wc5b.js +19 -0
- package/build/server/chunks/chunks/pencil.js-BBTMEZ3O.js +15 -0
- package/build/server/chunks/chunks/plus.js-BEkOQr9Q.js +15 -0
- package/build/server/chunks/chunks/preferences.svelte.js-CzoLtrIH.js +93 -0
- package/build/server/chunks/chunks/remote.js-DRgAwsBW.js +3 -0
- package/build/server/chunks/chunks/rolldown-runtime.js-n5G0F_TW.js +37 -0
- package/build/server/chunks/chunks/routing.js-CQ7vk27s.js +265 -0
- package/build/server/chunks/chunks/schedule.js-22hng-Kw.js +296 -0
- package/build/server/chunks/chunks/sdk.js-CRLWYx_O.js +42918 -0
- package/build/server/chunks/chunks/sdk2.js-Dp6IbCdi.js +13701 -0
- package/build/server/chunks/chunks/sdk3.js-DEwIpbCP.js +4 -0
- package/build/server/chunks/chunks/select.js-DGOA1VL9.js +1965 -0
- package/build/server/chunks/chunks/server.js-XxNf6kVC.js +3907 -0
- package/build/server/chunks/chunks/shared.js-1FwmeXhQ.js +789 -0
- package/build/server/chunks/chunks/sidebar.js-B-PyxBE9.js +1498 -0
- package/build/server/chunks/chunks/square-pen.js-B7nqpNVl.js +20 -0
- package/build/server/chunks/chunks/src.js-Cb-pJk2c.js +25288 -0
- package/build/server/chunks/chunks/state.js-CrwNc-tR.js +67 -0
- package/build/server/chunks/chunks/suggestions.js-DxdV1W1D.js +15 -0
- package/build/server/chunks/chunks/switch.js-CDuy0MzW.js +283 -0
- package/build/server/chunks/chunks/terminal.js-BEi5NMPR.js +15 -0
- package/build/server/chunks/chunks/textarea.js-DnOcXQXd.js +25 -0
- package/build/server/chunks/chunks/tint.js-D75gRPbz.js +165 -0
- package/build/server/chunks/chunks/tooltip.js-0flEKjnb.js +5863 -0
- package/build/server/chunks/chunks/uneval.js-C7SIrMEV.js +536 -0
- package/build/server/chunks/chunks/usage.js-BzKKyzUN.js +27 -0
- package/build/server/chunks/chunks/utils.js-rQQrRQUR.js +1020 -0
- package/build/server/chunks/chunks/utils2.js-BgS8NcJx.js +1167 -0
- package/build/server/chunks/chunks/zod.js-DkbjBCP6.js +18824 -0
- package/build/server/chunks/chunks/zod2.js-FNRC10wS.js +4 -0
- package/build/server/chunks/entries/endpoints/api/c/_id_/continue/_server.ts.js-DPkjAoli.js +45 -0
- package/build/server/chunks/entries/endpoints/api/c/_id_/effort/_server.ts.js-B8su8yn5.js +46 -0
- package/build/server/chunks/entries/endpoints/api/c/_id_/events/_server.ts.js-CLDxKKTx.js +73 -0
- package/build/server/chunks/entries/endpoints/api/c/_id_/folder/_server.ts.js-DT3NoKYe.js +54 -0
- package/build/server/chunks/entries/endpoints/api/c/_id_/media/_mediaId_/_server.ts.js-bvxQlwcS.js +52 -0
- package/build/server/chunks/entries/endpoints/api/c/_id_/messages/_server.ts.js-ClMX8O_R.js +57 -0
- package/build/server/chunks/entries/endpoints/api/c/_id_/preset/_server.ts.js-DQ8N5-g_.js +50 -0
- package/build/server/chunks/entries/endpoints/api/c/_id_/stop/_server.ts.js-4v8WbwCB.js +43 -0
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-lUrCowKV.js +78 -0
- package/build/server/chunks/entries/endpoints/api/hooks/_token_/_server.ts.js-CoqUCiud.js +49 -0
- package/build/server/chunks/entries/endpoints/api/icons/_name_/_server.ts.js-k_TzYggq.js +18 -0
- package/build/server/chunks/entries/endpoints/api/models/_server.ts.js-BnE6M4aY.js +56 -0
- package/build/server/chunks/entries/endpoints/api/notifications/_id_/continue/_server.ts.js-7cVqAe1A.js +50 -0
- package/build/server/chunks/entries/endpoints/api/notifications/_id_/dismiss/_server.ts.js-nebszEA8.js +42 -0
- package/build/server/chunks/entries/endpoints/api/notifications/clear/_server.ts.js-8UNQWqlv.js +43 -0
- package/build/server/chunks/entries/endpoints/api/notifications/seen/_server.ts.js-BigNQ41d.js +43 -0
- package/build/server/chunks/entries/endpoints/api/p/_slug_/folders/_folder_/files/_file_/_server.ts.js-CVZofPL8.js +56 -0
- package/build/server/chunks/entries/endpoints/api/p/_slug_/folders/_server.ts.js--huBNcxm.js +57 -0
- package/build/server/chunks/entries/endpoints/api/p/_slug_/memory/_id_/undo/_server.ts.js-DILraLKg.js +57 -0
- package/build/server/chunks/entries/endpoints/api/p/_slug_/running/_server.ts.js-DysLWyt1.js +79 -0
- package/build/server/chunks/entries/endpoints/api/p/_slug_/suggestions/_server.ts.js-B8HQNn05.js +53 -0
- package/build/server/chunks/entries/endpoints/api/p/_slug_/templates/_id_/cover/_server.ts.js-DCJqd-KE.js +59 -0
- package/build/server/chunks/entries/endpoints/api/p/_slug_/uploads/_id_/_server.ts.js-DJh0dkU7.js +44 -0
- package/build/server/chunks/entries/endpoints/api/p/_slug_/uploads/_server.ts.js-CQi0je7g.js +72 -0
- package/build/server/chunks/entries/endpoints/logout/_server.ts.js-iwUOTHUJ.js +46 -0
- package/build/server/chunks/entries/fallbacks/error.svelte.js-BjT9T-qE.js +22 -0
- package/build/server/chunks/entries/hooks.server.js-CA451orY.js +1956 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-DeA1Se1v.js +34 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-Cc0HS5vE.js +77 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-BP9VmKmv.js +20 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-BP2EdQl3.js +5 -0
- package/build/server/chunks/entries/pages/admin/_page.server.ts.js-BGy54zg7.js +310 -0
- package/build/server/chunks/entries/pages/admin/_page.svelte.js-DC0lzbwL.js +2092 -0
- package/build/server/chunks/entries/pages/login/_page.server.ts.js-to8Vy4NV.js +42 -0
- package/build/server/chunks/entries/pages/login/_page.svelte.js-CRFRcLqG.js +74 -0
- package/build/server/chunks/entries/pages/p/_slug_/_layout.server.ts.js-BATtKhxU.js +50 -0
- package/build/server/chunks/entries/pages/p/_slug_/_layout.svelte.js-B4A4RVlj.js +1897 -0
- package/build/server/chunks/entries/pages/p/_slug_/_page.server.ts.js-CwhG-rBA.js +71 -0
- package/build/server/chunks/entries/pages/p/_slug_/_page.svelte.js-v85HZSJv.js +132 -0
- package/build/server/chunks/entries/pages/p/_slug_/automations/_page.server.ts.js-BYjEh_94.js +269 -0
- package/build/server/chunks/entries/pages/p/_slug_/automations/_page.svelte.js-C9MxplNZ.js +423 -0
- package/build/server/chunks/entries/pages/p/_slug_/c/_id_/_page.server.ts.js-DqYn7Ov8.js +68 -0
- package/build/server/chunks/entries/pages/p/_slug_/c/_id_/_page.svelte.js-DO1qyELK.js +2072 -0
- package/build/server/chunks/entries/pages/p/_slug_/f/_folder_/_page.server.ts.js-DK68gPIS.js +101 -0
- package/build/server/chunks/entries/pages/p/_slug_/f/_folder_/_page.svelte.js-a31Wj0H5.js +321 -0
- package/build/server/chunks/entries/pages/p/_slug_/images/_page.server.ts.js-DYwxYJjv.js +145 -0
- package/build/server/chunks/entries/pages/p/_slug_/images/_page.svelte.js-H3zU7YA6.js +526 -0
- package/build/server/chunks/entries/pages/p/_slug_/memory/_page.server.ts.js-C6jVrFqG.js +99 -0
- package/build/server/chunks/entries/pages/p/_slug_/memory/_page.svelte.js-D54hFXGF.js +902 -0
- package/build/server/chunks/entries/pages/p/_slug_/settings/_page.server.ts.js-BvhbrusJ.js +106 -0
- package/build/server/chunks/entries/pages/p/_slug_/settings/_page.svelte.js-K9Rx0fue.js +581 -0
- package/build/server/chunks/entries/pages/p/_slug_/skills/_page.server.ts.js-X_toxkHr.js +45 -0
- package/build/server/chunks/entries/pages/p/_slug_/skills/_page.svelte.js-9BpNF-xF.js +132 -0
- package/build/server/chunks/entries/pages/p/_slug_/welcome/_page.server.ts.js-1d4vkOo-.js +129 -0
- package/build/server/chunks/entries/pages/p/_slug_/welcome/_page@.svelte.js-32N16gxF.js +223 -0
- package/build/server/chunks/entries/pages/profiles/_page.server.ts.js-CYu6Uj8H.js +32 -0
- package/build/server/chunks/entries/pages/profiles/_page.svelte.js-Bhw4E_wV.js +89 -0
- package/build/server/chunks/handler-CsXFmZYe.js +1735 -0
- package/build/server/chunks/index.js-kWlRiTFB.js +3700 -0
- package/build/server/chunks/manifest.js-BU_jyr1-.js +314 -0
- package/build/server/chunks/nodes/0.js-D4qm-LVJ.js +42 -0
- package/build/server/chunks/nodes/1.js-Fjtm11_Q.js +9 -0
- package/build/server/chunks/nodes/10.js-C0jWz6L_.js +45 -0
- package/build/server/chunks/nodes/11.js-CvxSawBf.js +45 -0
- package/build/server/chunks/nodes/12.js-CFwkqqPw.js +45 -0
- package/build/server/chunks/nodes/13.js-8e3_MY_4.js +45 -0
- package/build/server/chunks/nodes/14.js-dFhmLvor.js +45 -0
- package/build/server/chunks/nodes/15.js-alFwV-ia.js +45 -0
- package/build/server/chunks/nodes/2.js-DlqVofm5.js +46 -0
- package/build/server/chunks/nodes/3.js-B11kFzfi.js +45 -0
- package/build/server/chunks/nodes/4.js-CJOa-BdF.js +46 -0
- package/build/server/chunks/nodes/5.js-BiasAa82.js +50 -0
- package/build/server/chunks/nodes/6.js-vEMr5YOn.js +47 -0
- package/build/server/chunks/nodes/7.js-BwwcgtyP.js +45 -0
- package/build/server/chunks/nodes/8.js-Mqkjlq-6.js +45 -0
- package/build/server/chunks/nodes/9.js-DtRpQ_En.js +45 -0
- package/build/shims.js +33 -0
- package/dist/chunks/chunk-45BRG6A7.js +85 -0
- package/dist/chunks/chunk-CL6JQXXZ.js +38 -0
- package/dist/chunks/chunk-KZL3QNDA.js +14397 -0
- package/dist/chunks/chunk-N4H4AYCQ.js +20 -0
- package/dist/chunks/chunk-W4U7L4LF.js +47 -0
- package/dist/chunks/io-DMGTB3B7.js +12 -0
- package/dist/chunks/node-4RSVEEU6.js +2233 -0
- package/dist/chunks/node-BBTNNFRQ.js +20 -0
- package/dist/chunks/openai-LNQCFHTY.js +21690 -0
- package/dist/chunks/run-6LM42GJD.js +22287 -0
- package/dist/chunks/sdk-UNMKBESV.js +53 -0
- package/dist/chunks/sdk-Z2WD4F5K.js +30854 -0
- package/dist/chunks/zod-H7KMPIPH.js +19934 -0
- package/dist/cli.js +130 -0
- package/package.json +102 -0
- package/packages/core/drizzle/0000_init.sql +123 -0
- package/packages/core/drizzle/0001_triggers.sql +82 -0
- package/packages/core/drizzle/0002_default_preset.sql +1 -0
- package/packages/core/drizzle/0003_trigger_summary.sql +2 -0
- package/packages/core/drizzle/0004_skill_toggles.sql +1 -0
- package/packages/core/drizzle/0005_media.sql +21 -0
- package/packages/core/drizzle/0006_attachments.sql +25 -0
- package/packages/core/drizzle/0007_folders.sql +35 -0
- package/packages/core/drizzle/0008_avatars.sql +26 -0
- package/packages/core/drizzle/0009_subagents.sql +28 -0
- package/packages/core/drizzle/0010_soul.sql +1 -0
- package/packages/core/drizzle/0011_claude_plan.sql +1 -0
- package/packages/core/drizzle/0012_model_switch.sql +4 -0
- package/packages/core/drizzle/0013_nolune_format.sql +1 -0
- package/packages/core/drizzle/0014_nolune_rename.sql +3 -0
- package/packages/core/drizzle/0015_learn_from_chats.sql +2 -0
- package/packages/core/drizzle/0016_memory_changes.sql +19 -0
- package/packages/core/drizzle/0017_member_person_note.sql +1 -0
- package/packages/core/drizzle/meta/0000_snapshot.json +809 -0
- package/packages/core/drizzle/meta/0001_snapshot.json +1354 -0
- package/packages/core/drizzle/meta/0002_snapshot.json +1362 -0
- package/packages/core/drizzle/meta/0003_snapshot.json +1376 -0
- package/packages/core/drizzle/meta/0004_snapshot.json +1384 -0
- package/packages/core/drizzle/meta/0005_snapshot.json +1523 -0
- package/packages/core/drizzle/meta/0006_snapshot.json +1679 -0
- package/packages/core/drizzle/meta/0007_snapshot.json +1921 -0
- package/packages/core/drizzle/meta/0008_snapshot.json +1929 -0
- package/packages/core/drizzle/meta/0009_snapshot.json +2109 -0
- package/packages/core/drizzle/meta/0010_snapshot.json +2117 -0
- package/packages/core/drizzle/meta/0011_snapshot.json +2124 -0
- package/packages/core/drizzle/meta/0012_snapshot.json +2138 -0
- package/packages/core/drizzle/meta/0013_snapshot.json +2145 -0
- package/packages/core/drizzle/meta/0014_snapshot.json +2145 -0
- package/packages/core/drizzle/meta/0015_snapshot.json +2160 -0
- package/packages/core/drizzle/meta/0016_snapshot.json +2286 -0
- package/packages/core/drizzle/meta/0017_snapshot.json +2293 -0
- package/packages/core/drizzle/meta/_journal.json +132 -0
- package/packages/core/image-templates/app-icon/TEMPLATE.md +37 -0
- package/packages/core/image-templates/app-icon/cover.webp +0 -0
- package/packages/core/image-templates/coloring-page/TEMPLATE.md +14 -0
- package/packages/core/image-templates/coloring-page/cover.webp +0 -0
- package/packages/core/image-templates/concept-art/TEMPLATE.md +46 -0
- package/packages/core/image-templates/concept-art/cover.webp +0 -0
- package/packages/core/image-templates/couple-portrait/TEMPLATE.md +35 -0
- package/packages/core/image-templates/couple-portrait/cover.webp +0 -0
- package/packages/core/image-templates/dream-bouquet/TEMPLATE.md +36 -0
- package/packages/core/image-templates/dream-bouquet/cover.webp +0 -0
- package/packages/core/image-templates/family-crest/TEMPLATE.md +38 -0
- package/packages/core/image-templates/family-crest/cover.webp +0 -0
- package/packages/core/image-templates/nail-art/TEMPLATE.md +32 -0
- package/packages/core/image-templates/nail-art/cover.webp +0 -0
- package/packages/core/image-templates/outfit-board/TEMPLATE.md +46 -0
- package/packages/core/image-templates/outfit-board/cover.webp +0 -0
- package/packages/core/image-templates/party-invitation/TEMPLATE.md +49 -0
- package/packages/core/image-templates/party-invitation/cover.webp +0 -0
- package/packages/core/image-templates/photo-booth/TEMPLATE.md +33 -0
- package/packages/core/image-templates/photo-booth/cover.webp +0 -0
- package/packages/core/image-templates/scribble/TEMPLATE.md +29 -0
- package/packages/core/image-templates/scribble/cover.webp +0 -0
- package/packages/core/image-templates/sprite-sheet/TEMPLATE.md +45 -0
- package/packages/core/image-templates/sprite-sheet/cover.webp +0 -0
- package/packages/core/image-templates/sticker-pack/TEMPLATE.md +37 -0
- package/packages/core/image-templates/sticker-pack/cover.webp +0 -0
- package/packages/core/image-templates/storybook-page/TEMPLATE.md +34 -0
- package/packages/core/image-templates/storybook-page/cover.webp +0 -0
- package/packages/core/image-templates/tattoo/TEMPLATE.md +44 -0
- package/packages/core/image-templates/tattoo/cover.webp +0 -0
- package/packages/core/image-templates/tileable-texture/TEMPLATE.md +34 -0
- package/packages/core/image-templates/tileable-texture/cover.webp +0 -0
- package/packages/core/image-templates/tiny-world/TEMPLATE.md +15 -0
- package/packages/core/image-templates/tiny-world/cover.webp +0 -0
- package/packages/core/image-templates/trip-postcard/TEMPLATE.md +21 -0
- package/packages/core/image-templates/trip-postcard/cover.webp +0 -0
- package/packages/core/image-templates/wanted-poster/TEMPLATE.md +27 -0
- package/packages/core/image-templates/wanted-poster/cover.webp +0 -0
- package/packages/core/skills/automations/SKILL.md +91 -0
- package/packages/core/skills/generate-images/SKILL.md +115 -0
- package/packages/core/skills/nolune/SKILL.md +281 -0
- package/packages/core/skills/subagents/SKILL.md +91 -0
- package/packages/core/skills/view-images/SKILL.md +88 -0
|
@@ -0,0 +1,2396 @@
|
|
|
1
|
+
import { d as on } from './internal2.js-BJdu5v6t.js';
|
|
2
|
+
import { ag as bind_props, af as spread_props, ai as props_id, aj as attributes, _ as derived, am as clsx } from './server.js-XxNf6kVC.js';
|
|
3
|
+
import './client.js-DXLagFo3.js';
|
|
4
|
+
import { c as cn } from './utils2.js-BgS8NcJx.js';
|
|
5
|
+
import { n as noop, e as boxWith, r as Floating_layer, C as Context, P as PresenceManager, w as watch, f as createBitsAttrs, s as isHTMLElement$1, H as HOME, t as isWritableSymbol, B as BoxSymbol, A as ARROW_RIGHT, u as ARROW_DOWN, v as ARROW_LEFT, x as ARROW_UP, y as boxFrom, z as boxFlatten, G as toReadonlyBox, I as isBox, J as isWritableBox, k as createId, q as Portal, K as Popper_layer_force_mount, L as Popper_layer, h as attachRef, g as getDataOpenClosed, j as boolToEmptyStrOrUndef, N as boolToStr, m as mergeProps, O as DOMContext, Q as afterTick, R as isElement$1, U as isTabbable, V as PAGE_UP, W as PAGE_DOWN, X as isElementOrSVGElement, i as getDataTransitionAttrs, Y as getFloatingContentCSSVars, Z as getDocument, _ as tabbable, $ as isFocusable, a0 as focusable, a1 as isSelectableInput, a2 as ENTER, a3 as getAriaChecked } from './tooltip.js-0flEKjnb.js';
|
|
6
|
+
import { F as Floating_layer_anchor } from './sidebar.js-B-PyxBE9.js';
|
|
7
|
+
import { D as DOMTypeahead } from './dialog.js-CSahHfdK.js';
|
|
8
|
+
import { C as Check } from './check.js-DlXI7kOF.js';
|
|
9
|
+
import { C as Chevron_right } from './chevron-right.js-D2YPHtEd.js';
|
|
10
|
+
|
|
11
|
+
//#region node_modules/.pnpm/svelte-toolbelt@0.10.6_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5_cc67213a87dcbaa20076b15b91ff992d/node_modules/svelte-toolbelt/dist/box/box.svelte.js
|
|
12
|
+
function box(initialValue) {
|
|
13
|
+
let current = initialValue;
|
|
14
|
+
return {
|
|
15
|
+
[BoxSymbol]: true,
|
|
16
|
+
[isWritableSymbol]: true,
|
|
17
|
+
get current() {
|
|
18
|
+
return current;
|
|
19
|
+
},
|
|
20
|
+
set current(v) {
|
|
21
|
+
current = v;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
box.from = boxFrom;
|
|
26
|
+
box.with = boxWith;
|
|
27
|
+
box.flatten = boxFlatten;
|
|
28
|
+
box.readonly = toReadonlyBox;
|
|
29
|
+
box.isBox = isBox;
|
|
30
|
+
box.isWritableBox = isWritableBox;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/internal/locale.js
|
|
33
|
+
/**
|
|
34
|
+
* Detects the text direction in the element.
|
|
35
|
+
* @returns {Direction} The text direction ('ltr' for left-to-right or 'rtl' for right-to-left).
|
|
36
|
+
*/
|
|
37
|
+
function getElemDirection(elem) {
|
|
38
|
+
return window.getComputedStyle(elem).getPropertyValue("direction");
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A utility function that returns the next key based on the direction and orientation.
|
|
42
|
+
*/
|
|
43
|
+
function getNextKey(dir = "ltr", orientation = "horizontal") {
|
|
44
|
+
return {
|
|
45
|
+
horizontal: dir === "rtl" ? ARROW_LEFT : ARROW_RIGHT,
|
|
46
|
+
vertical: ARROW_DOWN
|
|
47
|
+
}[orientation];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A utility function that returns the previous key based on the direction and orientation.
|
|
51
|
+
*/
|
|
52
|
+
function getPrevKey(dir = "ltr", orientation = "horizontal") {
|
|
53
|
+
return {
|
|
54
|
+
horizontal: dir === "rtl" ? ARROW_RIGHT : ARROW_LEFT,
|
|
55
|
+
vertical: ARROW_UP
|
|
56
|
+
}[orientation];
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* A utility function that returns the next and previous keys based on the direction
|
|
60
|
+
* and orientation.
|
|
61
|
+
*/
|
|
62
|
+
function getDirectionalKeys(dir = "ltr", orientation = "horizontal") {
|
|
63
|
+
if (!["ltr", "rtl"].includes(dir)) dir = "ltr";
|
|
64
|
+
if (!["horizontal", "vertical"].includes(orientation)) orientation = "horizontal";
|
|
65
|
+
return {
|
|
66
|
+
nextKey: getNextKey(dir, orientation),
|
|
67
|
+
prevKey: getPrevKey(dir, orientation)
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/internal/roving-focus-group.js
|
|
72
|
+
var RovingFocusGroup = class {
|
|
73
|
+
#opts;
|
|
74
|
+
#currentTabStopId = box(null);
|
|
75
|
+
constructor(opts) {
|
|
76
|
+
this.#opts = opts;
|
|
77
|
+
}
|
|
78
|
+
getCandidateNodes() {
|
|
79
|
+
return [];
|
|
80
|
+
}
|
|
81
|
+
focusFirstCandidate() {
|
|
82
|
+
const items = this.getCandidateNodes();
|
|
83
|
+
if (!items.length) return;
|
|
84
|
+
items[0]?.focus();
|
|
85
|
+
}
|
|
86
|
+
handleKeydown(node, e, both = false) {
|
|
87
|
+
const rootNode = this.#opts.rootNode.current;
|
|
88
|
+
if (!rootNode || !node) return;
|
|
89
|
+
const items = this.getCandidateNodes();
|
|
90
|
+
if (!items.length) return;
|
|
91
|
+
const currentIndex = items.indexOf(node);
|
|
92
|
+
const { nextKey, prevKey } = getDirectionalKeys(getElemDirection(rootNode), this.#opts.orientation.current);
|
|
93
|
+
const loop = this.#opts.loop.current;
|
|
94
|
+
const keyToIndex = {
|
|
95
|
+
[nextKey]: currentIndex + 1,
|
|
96
|
+
[prevKey]: currentIndex - 1,
|
|
97
|
+
[HOME]: 0,
|
|
98
|
+
["End"]: items.length - 1
|
|
99
|
+
};
|
|
100
|
+
if (both) {
|
|
101
|
+
const altNextKey = nextKey === "ArrowDown" ? ARROW_RIGHT : ARROW_DOWN;
|
|
102
|
+
const altPrevKey = prevKey === "ArrowUp" ? ARROW_LEFT : ARROW_UP;
|
|
103
|
+
keyToIndex[altNextKey] = currentIndex + 1;
|
|
104
|
+
keyToIndex[altPrevKey] = currentIndex - 1;
|
|
105
|
+
}
|
|
106
|
+
let itemIndex = keyToIndex[e.key];
|
|
107
|
+
if (itemIndex === void 0) return;
|
|
108
|
+
e.preventDefault();
|
|
109
|
+
if (itemIndex < 0 && loop) itemIndex = items.length - 1;
|
|
110
|
+
else if (itemIndex === items.length && loop) itemIndex = 0;
|
|
111
|
+
const itemToFocus = items[itemIndex];
|
|
112
|
+
if (!itemToFocus) return;
|
|
113
|
+
itemToFocus.focus();
|
|
114
|
+
this.#currentTabStopId.current = itemToFocus.id;
|
|
115
|
+
this.#opts.onCandidateFocus?.(itemToFocus);
|
|
116
|
+
return itemToFocus;
|
|
117
|
+
}
|
|
118
|
+
getTabIndex(node) {
|
|
119
|
+
const items = this.getCandidateNodes();
|
|
120
|
+
const anyActive = this.#currentTabStopId.current !== null;
|
|
121
|
+
if (node && !anyActive && items[0] === node) {
|
|
122
|
+
this.#currentTabStopId.current = node.id;
|
|
123
|
+
return 0;
|
|
124
|
+
} else if (node?.id === this.#currentTabStopId.current) return 0;
|
|
125
|
+
return -1;
|
|
126
|
+
}
|
|
127
|
+
setCurrentTabStopId(id) {
|
|
128
|
+
this.#currentTabStopId.current = id;
|
|
129
|
+
}
|
|
130
|
+
focusCurrentTabStop() {
|
|
131
|
+
const currentTabStopId = this.#currentTabStopId.current;
|
|
132
|
+
if (!currentTabStopId) return;
|
|
133
|
+
const currentTabStop = this.#opts.rootNode.current?.querySelector(`#${currentTabStopId}`);
|
|
134
|
+
if (!currentTabStop || !isHTMLElement$1(currentTabStop)) return;
|
|
135
|
+
currentTabStop.focus();
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/internal/events.js
|
|
140
|
+
/**
|
|
141
|
+
* Creates a typed event dispatcher and listener pair for custom events
|
|
142
|
+
* @template T - The type of data that will be passed in the event detail
|
|
143
|
+
* @param eventName - The name of the custom event
|
|
144
|
+
* @param options - CustomEvent options (bubbles, cancelable, etc.)
|
|
145
|
+
*/
|
|
146
|
+
var CustomEventDispatcher = class {
|
|
147
|
+
eventName;
|
|
148
|
+
options;
|
|
149
|
+
constructor(eventName, options = {
|
|
150
|
+
bubbles: true,
|
|
151
|
+
cancelable: true
|
|
152
|
+
}) {
|
|
153
|
+
this.eventName = eventName;
|
|
154
|
+
this.options = options;
|
|
155
|
+
}
|
|
156
|
+
createEvent(detail) {
|
|
157
|
+
return new CustomEvent(this.eventName, {
|
|
158
|
+
...this.options,
|
|
159
|
+
detail
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
dispatch(element, detail) {
|
|
163
|
+
const event = this.createEvent(detail);
|
|
164
|
+
element.dispatchEvent(event);
|
|
165
|
+
return event;
|
|
166
|
+
}
|
|
167
|
+
listen(element, callback, options) {
|
|
168
|
+
const handler = (event) => {
|
|
169
|
+
callback(event);
|
|
170
|
+
};
|
|
171
|
+
return on(element, this.eventName, handler, options);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
//#endregion
|
|
175
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/menu/utils.js
|
|
176
|
+
var SELECTION_KEYS = [ENTER, " "];
|
|
177
|
+
var FIRST_KEYS = [
|
|
178
|
+
ARROW_DOWN,
|
|
179
|
+
PAGE_UP,
|
|
180
|
+
HOME
|
|
181
|
+
];
|
|
182
|
+
var LAST_KEYS = [
|
|
183
|
+
ARROW_UP,
|
|
184
|
+
PAGE_DOWN,
|
|
185
|
+
"End"
|
|
186
|
+
];
|
|
187
|
+
var FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];
|
|
188
|
+
var SUB_OPEN_KEYS = {
|
|
189
|
+
ltr: [...SELECTION_KEYS, ARROW_RIGHT],
|
|
190
|
+
rtl: [...SELECTION_KEYS, ARROW_LEFT]
|
|
191
|
+
};
|
|
192
|
+
var SUB_CLOSE_KEYS = {
|
|
193
|
+
ltr: [ARROW_LEFT],
|
|
194
|
+
rtl: [ARROW_RIGHT]
|
|
195
|
+
};
|
|
196
|
+
function isIndeterminate(checked) {
|
|
197
|
+
return checked === "indeterminate";
|
|
198
|
+
}
|
|
199
|
+
function getCheckedState(checked) {
|
|
200
|
+
return isIndeterminate(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
|
|
201
|
+
}
|
|
202
|
+
function isMouseEvent(event) {
|
|
203
|
+
return event.pointerType === "mouse";
|
|
204
|
+
}
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/internal/focus.js
|
|
207
|
+
/**
|
|
208
|
+
* A utility function that focuses an element.
|
|
209
|
+
*/
|
|
210
|
+
function focus(element, { select = false } = {}) {
|
|
211
|
+
if (!element || !element.focus) return;
|
|
212
|
+
const doc = getDocument(element);
|
|
213
|
+
if (doc.activeElement === element) return;
|
|
214
|
+
const previouslyFocusedElement = doc.activeElement;
|
|
215
|
+
element.focus({ preventScroll: true });
|
|
216
|
+
if (element !== previouslyFocusedElement && isSelectableInput(element) && select) element.select();
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Attempts to focus the first element in a list of candidates.
|
|
220
|
+
* Stops when focus is successful.
|
|
221
|
+
*/
|
|
222
|
+
function focusFirst(candidates, { select = false } = {}, getActiveElement) {
|
|
223
|
+
const previouslyFocusedElement = getActiveElement();
|
|
224
|
+
for (const candidate of candidates) {
|
|
225
|
+
focus(candidate, { select });
|
|
226
|
+
if (getActiveElement() !== previouslyFocusedElement) return true;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/utilities/is-using-keyboard/is-using-keyboard.svelte.js
|
|
231
|
+
var isUsingKeyboard = false;
|
|
232
|
+
var IsUsingKeyboard = class {
|
|
233
|
+
static _refs = 0;
|
|
234
|
+
static _cleanup;
|
|
235
|
+
constructor() {
|
|
236
|
+
/**
|
|
237
|
+
* `pointermove` fires constantly, so we only keep it attached while we're
|
|
238
|
+
* actually in keyboard mode and have something to switch off. Once it has
|
|
239
|
+
* flipped `isUsingKeyboard` back to `false`, the listener is removed again
|
|
240
|
+
* and mouse movement costs nothing until the next keypress.
|
|
241
|
+
*/
|
|
242
|
+
}
|
|
243
|
+
get current() {
|
|
244
|
+
return isUsingKeyboard;
|
|
245
|
+
}
|
|
246
|
+
set current(value) {
|
|
247
|
+
isUsingKeyboard = value;
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
//#endregion
|
|
251
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/internal/tabbable.js
|
|
252
|
+
function getTabbableOptions() {
|
|
253
|
+
return {
|
|
254
|
+
getShadowRoot: true,
|
|
255
|
+
displayCheck: typeof ResizeObserver === "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Gets all tabbable elements in the body and finds the next/previous tabbable element
|
|
260
|
+
* from the `currentNode` based on the `direction` provided.
|
|
261
|
+
* @param currentNode - the node we want to get the next/previous tabbable from
|
|
262
|
+
*/
|
|
263
|
+
function getTabbableFrom(currentNode, direction) {
|
|
264
|
+
if (!isTabbable(currentNode, getTabbableOptions())) return getTabbableFromFocusable(currentNode, direction);
|
|
265
|
+
const doc = getDocument(currentNode);
|
|
266
|
+
const allTabbable = tabbable(doc.body, getTabbableOptions());
|
|
267
|
+
if (direction === "prev") allTabbable.reverse();
|
|
268
|
+
const activeIndex = allTabbable.indexOf(currentNode);
|
|
269
|
+
if (activeIndex === -1) return doc.body;
|
|
270
|
+
return allTabbable.slice(activeIndex + 1)[0];
|
|
271
|
+
}
|
|
272
|
+
function getTabbableFromFocusable(currentNode, direction) {
|
|
273
|
+
const doc = getDocument(currentNode);
|
|
274
|
+
if (!isFocusable(currentNode, getTabbableOptions())) return doc.body;
|
|
275
|
+
const allFocusable = focusable(doc.body, getTabbableOptions());
|
|
276
|
+
if (direction === "prev") allFocusable.reverse();
|
|
277
|
+
const activeIndex = allFocusable.indexOf(currentNode);
|
|
278
|
+
if (activeIndex === -1) return doc.body;
|
|
279
|
+
return allFocusable.slice(activeIndex + 1).find((node) => isTabbable(node, getTabbableOptions())) ?? doc.body;
|
|
280
|
+
}
|
|
281
|
+
//#endregion
|
|
282
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/menu/menu.svelte.js
|
|
283
|
+
var MenuRootContext = new Context("Menu.Root");
|
|
284
|
+
var MenuMenuContext = new Context("Menu.Root | Menu.Sub");
|
|
285
|
+
var MenuContentContext = new Context("Menu.Content");
|
|
286
|
+
var MenuGroupContext = new Context("Menu.Group | Menu.RadioGroup");
|
|
287
|
+
var MenuRadioGroupContext = new Context("Menu.RadioGroup");
|
|
288
|
+
var MenuOpenEvent = new CustomEventDispatcher("bitsmenuopen", {
|
|
289
|
+
bubbles: false,
|
|
290
|
+
cancelable: true
|
|
291
|
+
});
|
|
292
|
+
var menuAttrs = createBitsAttrs({
|
|
293
|
+
component: "menu",
|
|
294
|
+
parts: [
|
|
295
|
+
"trigger",
|
|
296
|
+
"content",
|
|
297
|
+
"sub-trigger",
|
|
298
|
+
"item",
|
|
299
|
+
"group",
|
|
300
|
+
"group-heading",
|
|
301
|
+
"checkbox-group",
|
|
302
|
+
"checkbox-item",
|
|
303
|
+
"radio-group",
|
|
304
|
+
"radio-item",
|
|
305
|
+
"separator",
|
|
306
|
+
"sub-content",
|
|
307
|
+
"arrow"
|
|
308
|
+
]
|
|
309
|
+
});
|
|
310
|
+
var MenuSubmenuIntent = class {
|
|
311
|
+
#opts;
|
|
312
|
+
#cleanupDocMove = null;
|
|
313
|
+
#fallbackTimer = null;
|
|
314
|
+
#active = false;
|
|
315
|
+
#target = null;
|
|
316
|
+
#apex = null;
|
|
317
|
+
#pointerPoint = null;
|
|
318
|
+
#launchPoint = null;
|
|
319
|
+
constructor(opts) {
|
|
320
|
+
this.#opts = opts;
|
|
321
|
+
watch([
|
|
322
|
+
opts.triggerNode,
|
|
323
|
+
opts.contentNode,
|
|
324
|
+
opts.enabled
|
|
325
|
+
], ([triggerNode, contentNode, enabled]) => {
|
|
326
|
+
this.#reset();
|
|
327
|
+
if (!triggerNode || !contentNode || !enabled) return;
|
|
328
|
+
const onTriggerMove = (e) => {
|
|
329
|
+
if (!isMouseEvent(e)) return;
|
|
330
|
+
this.#launchPoint = {
|
|
331
|
+
x: e.clientX,
|
|
332
|
+
y: e.clientY
|
|
333
|
+
};
|
|
334
|
+
if (!this.#active) this.#preview(e, "content");
|
|
335
|
+
};
|
|
336
|
+
const onTriggerLeave = (e) => {
|
|
337
|
+
if (!isMouseEvent(e)) return;
|
|
338
|
+
this.#engage(e, "content");
|
|
339
|
+
};
|
|
340
|
+
const onContentMove = (e) => {
|
|
341
|
+
if (!isMouseEvent(e)) return;
|
|
342
|
+
if (!this.#active) this.#preview(e, "trigger");
|
|
343
|
+
};
|
|
344
|
+
const onContentLeave = (e) => {
|
|
345
|
+
if (!isMouseEvent(e)) return;
|
|
346
|
+
if (isElement$1(e.relatedTarget)) {
|
|
347
|
+
const selector = this.#opts.subContentSelector();
|
|
348
|
+
const matchedSubContent = e.relatedTarget.closest(selector);
|
|
349
|
+
if (matchedSubContent && matchedSubContent !== contentNode && matchedSubContent.id) {
|
|
350
|
+
if (!!contentNode.querySelector(`[aria-controls="${matchedSubContent.id}"]`)) return;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
this.#engage(e, "trigger");
|
|
354
|
+
};
|
|
355
|
+
const onTriggerEnter = (e) => {
|
|
356
|
+
if (!isMouseEvent(e)) return;
|
|
357
|
+
this.#disengage();
|
|
358
|
+
};
|
|
359
|
+
const onContentEnter = (e) => {
|
|
360
|
+
if (!isMouseEvent(e)) return;
|
|
361
|
+
this.#disengage();
|
|
362
|
+
};
|
|
363
|
+
triggerNode.addEventListener("pointermove", onTriggerMove);
|
|
364
|
+
triggerNode.addEventListener("pointerleave", onTriggerLeave);
|
|
365
|
+
triggerNode.addEventListener("pointerenter", onTriggerEnter);
|
|
366
|
+
contentNode.addEventListener("pointermove", onContentMove);
|
|
367
|
+
contentNode.addEventListener("pointerleave", onContentLeave);
|
|
368
|
+
contentNode.addEventListener("pointerenter", onContentEnter);
|
|
369
|
+
return () => {
|
|
370
|
+
triggerNode.removeEventListener("pointermove", onTriggerMove);
|
|
371
|
+
triggerNode.removeEventListener("pointerleave", onTriggerLeave);
|
|
372
|
+
triggerNode.removeEventListener("pointerenter", onTriggerEnter);
|
|
373
|
+
contentNode.removeEventListener("pointermove", onContentMove);
|
|
374
|
+
contentNode.removeEventListener("pointerleave", onContentLeave);
|
|
375
|
+
contentNode.removeEventListener("pointerenter", onContentEnter);
|
|
376
|
+
this.#reset();
|
|
377
|
+
};
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
#parentTargetRect() {
|
|
381
|
+
const parent = this.#opts.parentContentNode();
|
|
382
|
+
if (parent) return parent.getBoundingClientRect();
|
|
383
|
+
return this.#opts.triggerNode()?.getBoundingClientRect() ?? null;
|
|
384
|
+
}
|
|
385
|
+
#computePolygons(pointerPt, target) {
|
|
386
|
+
const triggerNode = this.#opts.triggerNode();
|
|
387
|
+
const contentNode = this.#opts.contentNode();
|
|
388
|
+
if (!triggerNode || !contentNode) return null;
|
|
389
|
+
const triggerRect = triggerNode.getBoundingClientRect();
|
|
390
|
+
const contentRect = contentNode.getBoundingClientRect();
|
|
391
|
+
const side = getSide(triggerRect, contentRect);
|
|
392
|
+
let apex;
|
|
393
|
+
let targetRect;
|
|
394
|
+
let sourceRect;
|
|
395
|
+
if (target === "content") {
|
|
396
|
+
apex = this.#active ? this.#apex ?? pointerPt : pointerPt;
|
|
397
|
+
targetRect = contentRect;
|
|
398
|
+
} else {
|
|
399
|
+
apex = this.#launchPoint ?? pointerPt;
|
|
400
|
+
targetRect = this.#parentTargetRect() ?? triggerRect;
|
|
401
|
+
sourceRect = contentRect;
|
|
402
|
+
}
|
|
403
|
+
this.#apex = apex;
|
|
404
|
+
return {
|
|
405
|
+
corridor: getCorridorPolygon(triggerRect, contentRect, side),
|
|
406
|
+
intent: getIntentPolygon(apex, targetRect, side, target, sourceRect),
|
|
407
|
+
targetRect,
|
|
408
|
+
side
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
#isInSafeZone(pt, corridor, intent) {
|
|
412
|
+
return isPointInPolygon(pt, corridor) || isPointInPolygon(pt, intent);
|
|
413
|
+
}
|
|
414
|
+
#preview(e, target) {
|
|
415
|
+
const pt = {
|
|
416
|
+
x: e.clientX,
|
|
417
|
+
y: e.clientY
|
|
418
|
+
};
|
|
419
|
+
if (!this.#computePolygons(pt, target)) return;
|
|
420
|
+
this.#target = target;
|
|
421
|
+
this.#pointerPoint = pt;
|
|
422
|
+
}
|
|
423
|
+
#engage(e, target) {
|
|
424
|
+
if (!this.#opts.enabled()) return;
|
|
425
|
+
const triggerNode = this.#opts.triggerNode();
|
|
426
|
+
const contentNode = this.#opts.contentNode();
|
|
427
|
+
if (!triggerNode || !contentNode) return;
|
|
428
|
+
const related = e.relatedTarget;
|
|
429
|
+
if (isElement$1(related)) {
|
|
430
|
+
if (target === "content" && contentNode.contains(related)) return;
|
|
431
|
+
if (target === "trigger" && triggerNode.contains(related)) return;
|
|
432
|
+
}
|
|
433
|
+
const pt = {
|
|
434
|
+
x: e.clientX,
|
|
435
|
+
y: e.clientY
|
|
436
|
+
};
|
|
437
|
+
const geo = this.#computePolygons(pt, target);
|
|
438
|
+
if (!geo) return;
|
|
439
|
+
if (!isInsideRect(pt, geo.targetRect) && !this.#isInSafeZone(pt, geo.corridor, geo.intent)) {
|
|
440
|
+
this.#clearVisuals();
|
|
441
|
+
return;
|
|
442
|
+
}
|
|
443
|
+
this.#active = true;
|
|
444
|
+
this.#target = target;
|
|
445
|
+
this.#pointerPoint = pt;
|
|
446
|
+
this.#opts.setIsPointerInTransit(true);
|
|
447
|
+
this.#attachDocMove();
|
|
448
|
+
this.#startFallback();
|
|
449
|
+
}
|
|
450
|
+
#disengageTimer = null;
|
|
451
|
+
#disengage() {
|
|
452
|
+
if (!this.#active) return;
|
|
453
|
+
const wasReturning = this.#target === "trigger";
|
|
454
|
+
this.#detachDocMove();
|
|
455
|
+
this.#clearFallback();
|
|
456
|
+
this.#active = false;
|
|
457
|
+
this.#clearVisuals();
|
|
458
|
+
if (wasReturning) {
|
|
459
|
+
this.#clearDisengageTimer();
|
|
460
|
+
this.#disengageTimer = setTimeout(() => {
|
|
461
|
+
this.#disengageTimer = null;
|
|
462
|
+
this.#opts.setIsPointerInTransit(false);
|
|
463
|
+
}, 100);
|
|
464
|
+
} else this.#opts.setIsPointerInTransit(false);
|
|
465
|
+
}
|
|
466
|
+
#clearDisengageTimer() {
|
|
467
|
+
if (this.#disengageTimer === null) return;
|
|
468
|
+
clearTimeout(this.#disengageTimer);
|
|
469
|
+
this.#disengageTimer = null;
|
|
470
|
+
}
|
|
471
|
+
#intentExit() {
|
|
472
|
+
const pointerPoint = this.#pointerPoint;
|
|
473
|
+
this.#detachDocMove();
|
|
474
|
+
this.#clearFallback();
|
|
475
|
+
this.#clearDisengageTimer();
|
|
476
|
+
this.#active = false;
|
|
477
|
+
this.#opts.setIsPointerInTransit(false);
|
|
478
|
+
this.#clearVisuals();
|
|
479
|
+
this.#opts.onIntentExit(pointerPoint);
|
|
480
|
+
}
|
|
481
|
+
#reset() {
|
|
482
|
+
this.#detachDocMove();
|
|
483
|
+
this.#clearFallback();
|
|
484
|
+
this.#clearDisengageTimer();
|
|
485
|
+
if (this.#active) this.#opts.setIsPointerInTransit(false);
|
|
486
|
+
this.#active = false;
|
|
487
|
+
this.#target = null;
|
|
488
|
+
this.#apex = null;
|
|
489
|
+
this.#pointerPoint = null;
|
|
490
|
+
this.#launchPoint = null;
|
|
491
|
+
}
|
|
492
|
+
#isPointerInDescendantSubContent(pt) {
|
|
493
|
+
const contentNode = this.#opts.contentNode();
|
|
494
|
+
if (!contentNode) return false;
|
|
495
|
+
const el = contentNode.ownerDocument.elementFromPoint(pt.x, pt.y);
|
|
496
|
+
if (!el) return false;
|
|
497
|
+
const selector = this.#opts.subContentSelector();
|
|
498
|
+
const subContent = el.closest(selector);
|
|
499
|
+
if (!subContent || subContent === contentNode) return false;
|
|
500
|
+
if (subContent.id) return !!contentNode.querySelector(`[aria-controls="${subContent.id}"]`);
|
|
501
|
+
return false;
|
|
502
|
+
}
|
|
503
|
+
#onDocMove = (e) => {
|
|
504
|
+
if (!this.#active || !this.#target) return;
|
|
505
|
+
if (!isMouseEvent(e)) return;
|
|
506
|
+
const triggerNode = this.#opts.triggerNode();
|
|
507
|
+
const contentNode = this.#opts.contentNode();
|
|
508
|
+
if (!triggerNode || !contentNode) {
|
|
509
|
+
this.#intentExit();
|
|
510
|
+
return;
|
|
511
|
+
}
|
|
512
|
+
this.#clearFallback();
|
|
513
|
+
const pt = {
|
|
514
|
+
x: e.clientX,
|
|
515
|
+
y: e.clientY
|
|
516
|
+
};
|
|
517
|
+
this.#pointerPoint = pt;
|
|
518
|
+
const triggerRect = triggerNode.getBoundingClientRect();
|
|
519
|
+
const contentRect = contentNode.getBoundingClientRect();
|
|
520
|
+
if (this.#target === "content" && isInsideRect(pt, contentRect)) {
|
|
521
|
+
this.#disengage();
|
|
522
|
+
return;
|
|
523
|
+
}
|
|
524
|
+
if (this.#target === "trigger" && isInsideInsetRect(pt, triggerRect, 4)) {
|
|
525
|
+
this.#disengage();
|
|
526
|
+
return;
|
|
527
|
+
}
|
|
528
|
+
if (this.#isPointerInDescendantSubContent(pt)) {
|
|
529
|
+
this.#startFallback();
|
|
530
|
+
return;
|
|
531
|
+
}
|
|
532
|
+
const geo = this.#computePolygons(pt, this.#target);
|
|
533
|
+
if (!geo) {
|
|
534
|
+
this.#intentExit();
|
|
535
|
+
return;
|
|
536
|
+
}
|
|
537
|
+
if (this.#isInSafeZone(pt, geo.corridor, geo.intent)) {
|
|
538
|
+
this.#startFallback();
|
|
539
|
+
return;
|
|
540
|
+
}
|
|
541
|
+
this.#intentExit();
|
|
542
|
+
};
|
|
543
|
+
#attachDocMove() {
|
|
544
|
+
if (this.#cleanupDocMove) return;
|
|
545
|
+
const doc = getDocument(this.#opts.triggerNode() ?? this.#opts.contentNode());
|
|
546
|
+
if (!doc) return;
|
|
547
|
+
doc.addEventListener("pointermove", this.#onDocMove, true);
|
|
548
|
+
this.#cleanupDocMove = () => {
|
|
549
|
+
doc.removeEventListener("pointermove", this.#onDocMove, true);
|
|
550
|
+
this.#cleanupDocMove = null;
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
#detachDocMove() {
|
|
554
|
+
this.#cleanupDocMove?.();
|
|
555
|
+
}
|
|
556
|
+
#startFallback() {
|
|
557
|
+
this.#clearFallback();
|
|
558
|
+
this.#fallbackTimer = setTimeout(() => {
|
|
559
|
+
this.#fallbackTimer = null;
|
|
560
|
+
if (this.#active) this.#intentExit();
|
|
561
|
+
}, 500);
|
|
562
|
+
}
|
|
563
|
+
#clearFallback() {
|
|
564
|
+
if (this.#fallbackTimer === null) return;
|
|
565
|
+
clearTimeout(this.#fallbackTimer);
|
|
566
|
+
this.#fallbackTimer = null;
|
|
567
|
+
}
|
|
568
|
+
#clearVisuals() {
|
|
569
|
+
this.#target = null;
|
|
570
|
+
this.#apex = null;
|
|
571
|
+
this.#pointerPoint = null;
|
|
572
|
+
}
|
|
573
|
+
};
|
|
574
|
+
function isPointInPolygon(point, polygon) {
|
|
575
|
+
const { x, y } = point;
|
|
576
|
+
let inside = false;
|
|
577
|
+
for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {
|
|
578
|
+
const xi = polygon[i].x;
|
|
579
|
+
const yi = polygon[i].y;
|
|
580
|
+
const xj = polygon[j].x;
|
|
581
|
+
const yj = polygon[j].y;
|
|
582
|
+
if (yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi) inside = !inside;
|
|
583
|
+
}
|
|
584
|
+
return inside;
|
|
585
|
+
}
|
|
586
|
+
function isInsideRect(point, rect) {
|
|
587
|
+
return point.x >= rect.left && point.x <= rect.right && point.y >= rect.top && point.y <= rect.bottom;
|
|
588
|
+
}
|
|
589
|
+
function isInsideInsetRect(point, rect, inset) {
|
|
590
|
+
return point.x >= rect.left + inset && point.x <= rect.right - inset && point.y >= rect.top + inset && point.y <= rect.bottom - inset;
|
|
591
|
+
}
|
|
592
|
+
function getSide(triggerRect, contentRect) {
|
|
593
|
+
const triggerCenterX = triggerRect.left + triggerRect.width / 2;
|
|
594
|
+
const triggerCenterY = triggerRect.top + triggerRect.height / 2;
|
|
595
|
+
const contentCenterX = contentRect.left + contentRect.width / 2;
|
|
596
|
+
const contentCenterY = contentRect.top + contentRect.height / 2;
|
|
597
|
+
const deltaX = contentCenterX - triggerCenterX;
|
|
598
|
+
const deltaY = contentCenterY - triggerCenterY;
|
|
599
|
+
if (Math.abs(deltaX) > Math.abs(deltaY)) return deltaX > 0 ? "right" : "left";
|
|
600
|
+
return deltaY > 0 ? "bottom" : "top";
|
|
601
|
+
}
|
|
602
|
+
function getCorridorPolygon(triggerRect, contentRect, side) {
|
|
603
|
+
const buffer = 2;
|
|
604
|
+
switch (side) {
|
|
605
|
+
case "top": return [
|
|
606
|
+
{
|
|
607
|
+
x: Math.min(triggerRect.left, contentRect.left) - buffer,
|
|
608
|
+
y: triggerRect.top
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
x: Math.min(triggerRect.left, contentRect.left) - buffer,
|
|
612
|
+
y: contentRect.bottom
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
x: Math.max(triggerRect.right, contentRect.right) + buffer,
|
|
616
|
+
y: contentRect.bottom
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
x: Math.max(triggerRect.right, contentRect.right) + buffer,
|
|
620
|
+
y: triggerRect.top
|
|
621
|
+
}
|
|
622
|
+
];
|
|
623
|
+
case "bottom": return [
|
|
624
|
+
{
|
|
625
|
+
x: Math.min(triggerRect.left, contentRect.left) - buffer,
|
|
626
|
+
y: triggerRect.bottom
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
x: Math.min(triggerRect.left, contentRect.left) - buffer,
|
|
630
|
+
y: contentRect.top
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
x: Math.max(triggerRect.right, contentRect.right) + buffer,
|
|
634
|
+
y: contentRect.top
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
x: Math.max(triggerRect.right, contentRect.right) + buffer,
|
|
638
|
+
y: triggerRect.bottom
|
|
639
|
+
}
|
|
640
|
+
];
|
|
641
|
+
case "left": return [
|
|
642
|
+
{
|
|
643
|
+
x: triggerRect.left,
|
|
644
|
+
y: Math.min(triggerRect.top, contentRect.top) - buffer
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
x: contentRect.right,
|
|
648
|
+
y: Math.min(triggerRect.top, contentRect.top) - buffer
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
x: contentRect.right,
|
|
652
|
+
y: Math.max(triggerRect.bottom, contentRect.bottom) + buffer
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
x: triggerRect.left,
|
|
656
|
+
y: Math.max(triggerRect.bottom, contentRect.bottom) + buffer
|
|
657
|
+
}
|
|
658
|
+
];
|
|
659
|
+
case "right": return [
|
|
660
|
+
{
|
|
661
|
+
x: triggerRect.right,
|
|
662
|
+
y: Math.min(triggerRect.top, contentRect.top) - buffer
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
x: contentRect.left,
|
|
666
|
+
y: Math.min(triggerRect.top, contentRect.top) - buffer
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
x: contentRect.left,
|
|
670
|
+
y: Math.max(triggerRect.bottom, contentRect.bottom) + buffer
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
x: triggerRect.right,
|
|
674
|
+
y: Math.max(triggerRect.bottom, contentRect.bottom) + buffer
|
|
675
|
+
}
|
|
676
|
+
];
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
function getIntentPolygon(exitPoint, targetRect, side, target, sourceRect) {
|
|
680
|
+
const edgeBuffer = 8;
|
|
681
|
+
const effectiveSide = target === "trigger" ? flipSide(side) : side;
|
|
682
|
+
const top = sourceRect ? Math.min(targetRect.top, sourceRect.top) - edgeBuffer : targetRect.top - edgeBuffer;
|
|
683
|
+
const bottom = sourceRect ? Math.max(targetRect.bottom, sourceRect.bottom) + edgeBuffer : targetRect.bottom + edgeBuffer;
|
|
684
|
+
const left = sourceRect ? Math.min(targetRect.left, sourceRect.left) - edgeBuffer : targetRect.left - edgeBuffer;
|
|
685
|
+
const right = sourceRect ? Math.max(targetRect.right, sourceRect.right) + edgeBuffer : targetRect.right + edgeBuffer;
|
|
686
|
+
switch (effectiveSide) {
|
|
687
|
+
case "right": return [
|
|
688
|
+
exitPoint,
|
|
689
|
+
{
|
|
690
|
+
x: targetRect.left,
|
|
691
|
+
y: top
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
x: targetRect.left,
|
|
695
|
+
y: bottom
|
|
696
|
+
}
|
|
697
|
+
];
|
|
698
|
+
case "left": return [
|
|
699
|
+
exitPoint,
|
|
700
|
+
{
|
|
701
|
+
x: targetRect.right,
|
|
702
|
+
y: top
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
x: targetRect.right,
|
|
706
|
+
y: bottom
|
|
707
|
+
}
|
|
708
|
+
];
|
|
709
|
+
case "bottom": return [
|
|
710
|
+
exitPoint,
|
|
711
|
+
{
|
|
712
|
+
x: left,
|
|
713
|
+
y: targetRect.top
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
x: right,
|
|
717
|
+
y: targetRect.top
|
|
718
|
+
}
|
|
719
|
+
];
|
|
720
|
+
case "top": return [
|
|
721
|
+
exitPoint,
|
|
722
|
+
{
|
|
723
|
+
x: left,
|
|
724
|
+
y: targetRect.bottom
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
x: right,
|
|
728
|
+
y: targetRect.bottom
|
|
729
|
+
}
|
|
730
|
+
];
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
function flipSide(side) {
|
|
734
|
+
switch (side) {
|
|
735
|
+
case "top": return "bottom";
|
|
736
|
+
case "bottom": return "top";
|
|
737
|
+
case "left": return "right";
|
|
738
|
+
case "right": return "left";
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
var MenuRootState = class MenuRootState {
|
|
742
|
+
static create(opts) {
|
|
743
|
+
const root = new MenuRootState(opts);
|
|
744
|
+
return MenuRootContext.set(root);
|
|
745
|
+
}
|
|
746
|
+
opts;
|
|
747
|
+
isUsingKeyboard = new IsUsingKeyboard();
|
|
748
|
+
ignoreCloseAutoFocus = false;
|
|
749
|
+
isPointerInTransit = false;
|
|
750
|
+
constructor(opts) {
|
|
751
|
+
this.opts = opts;
|
|
752
|
+
}
|
|
753
|
+
getBitsAttr = (part) => {
|
|
754
|
+
return menuAttrs.getAttr(part, this.opts.variant.current);
|
|
755
|
+
};
|
|
756
|
+
};
|
|
757
|
+
var MenuMenuState = class MenuMenuState {
|
|
758
|
+
static create(opts, root) {
|
|
759
|
+
return MenuMenuContext.set(new MenuMenuState(opts, root, null));
|
|
760
|
+
}
|
|
761
|
+
opts;
|
|
762
|
+
root;
|
|
763
|
+
parentMenu;
|
|
764
|
+
contentId = boxWith(() => "");
|
|
765
|
+
contentNode = null;
|
|
766
|
+
contentPresence;
|
|
767
|
+
triggerNode = null;
|
|
768
|
+
constructor(opts, root, parentMenu) {
|
|
769
|
+
this.opts = opts;
|
|
770
|
+
this.root = root;
|
|
771
|
+
this.parentMenu = parentMenu;
|
|
772
|
+
this.contentPresence = new PresenceManager({
|
|
773
|
+
ref: boxWith(() => this.contentNode),
|
|
774
|
+
open: this.opts.open,
|
|
775
|
+
onComplete: () => {
|
|
776
|
+
this.opts.onOpenChangeComplete.current(this.opts.open.current);
|
|
777
|
+
},
|
|
778
|
+
shouldSkipExitAnimation: () => {
|
|
779
|
+
if (this.root.opts.variant.current !== "menubar" || this.parentMenu !== null) return false;
|
|
780
|
+
return this.root.opts.shouldSkipExitAnimation?.() ?? false;
|
|
781
|
+
}
|
|
782
|
+
});
|
|
783
|
+
if (parentMenu) watch(() => parentMenu.opts.open.current, () => {
|
|
784
|
+
if (parentMenu.opts.open.current) return;
|
|
785
|
+
this.opts.open.current = false;
|
|
786
|
+
});
|
|
787
|
+
}
|
|
788
|
+
toggleOpen() {
|
|
789
|
+
this.opts.open.current = !this.opts.open.current;
|
|
790
|
+
}
|
|
791
|
+
onOpen() {
|
|
792
|
+
this.opts.open.current = true;
|
|
793
|
+
}
|
|
794
|
+
onClose() {
|
|
795
|
+
this.opts.open.current = false;
|
|
796
|
+
}
|
|
797
|
+
};
|
|
798
|
+
var MenuContentState = class MenuContentState {
|
|
799
|
+
static create(opts) {
|
|
800
|
+
return MenuContentContext.set(new MenuContentState(opts, MenuMenuContext.get()));
|
|
801
|
+
}
|
|
802
|
+
opts;
|
|
803
|
+
parentMenu;
|
|
804
|
+
rovingFocusGroup;
|
|
805
|
+
domContext;
|
|
806
|
+
attachment;
|
|
807
|
+
search = "";
|
|
808
|
+
#timer = 0;
|
|
809
|
+
#handleTypeaheadSearch;
|
|
810
|
+
mounted = false;
|
|
811
|
+
#isSub;
|
|
812
|
+
constructor(opts, parentMenu) {
|
|
813
|
+
this.opts = opts;
|
|
814
|
+
this.parentMenu = parentMenu;
|
|
815
|
+
this.domContext = new DOMContext(opts.ref);
|
|
816
|
+
this.attachment = attachRef(this.opts.ref, (v) => {
|
|
817
|
+
if (this.parentMenu.contentNode !== v) this.parentMenu.contentNode = v;
|
|
818
|
+
});
|
|
819
|
+
parentMenu.contentId = opts.id;
|
|
820
|
+
this.#isSub = opts.isSub ?? false;
|
|
821
|
+
this.onkeydown = this.onkeydown.bind(this);
|
|
822
|
+
this.onblur = this.onblur.bind(this);
|
|
823
|
+
this.onfocus = this.onfocus.bind(this);
|
|
824
|
+
this.handleInteractOutside = this.handleInteractOutside.bind(this);
|
|
825
|
+
new MenuSubmenuIntent({
|
|
826
|
+
contentNode: () => this.parentMenu.contentNode,
|
|
827
|
+
triggerNode: () => this.parentMenu.triggerNode,
|
|
828
|
+
parentContentNode: () => this.parentMenu.parentMenu?.contentNode ?? null,
|
|
829
|
+
subContentSelector: () => `[${this.parentMenu.root.getBitsAttr("sub-content")}]`,
|
|
830
|
+
enabled: () => this.parentMenu.opts.open.current && Boolean(this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))),
|
|
831
|
+
onIntentExit: (pointerPoint) => {
|
|
832
|
+
this.parentMenu.opts.open.current = false;
|
|
833
|
+
this.#dispatchPointerMoveToHoveredSubTrigger(pointerPoint);
|
|
834
|
+
},
|
|
835
|
+
setIsPointerInTransit: (value) => {
|
|
836
|
+
this.parentMenu.root.isPointerInTransit = value;
|
|
837
|
+
}
|
|
838
|
+
});
|
|
839
|
+
this.#handleTypeaheadSearch = new DOMTypeahead({
|
|
840
|
+
getActiveElement: () => this.domContext.getActiveElement(),
|
|
841
|
+
getWindow: () => this.domContext.getWindow()
|
|
842
|
+
}).handleTypeaheadSearch;
|
|
843
|
+
this.rovingFocusGroup = new RovingFocusGroup({
|
|
844
|
+
rootNode: boxWith(() => this.parentMenu.contentNode),
|
|
845
|
+
candidateAttr: this.parentMenu.root.getBitsAttr("item"),
|
|
846
|
+
loop: this.opts.loop,
|
|
847
|
+
orientation: boxWith(() => "vertical")
|
|
848
|
+
});
|
|
849
|
+
watch(() => this.parentMenu.contentNode, (contentNode) => {
|
|
850
|
+
if (!contentNode) return;
|
|
851
|
+
const handler = () => {
|
|
852
|
+
afterTick(() => {
|
|
853
|
+
if (!this.parentMenu.root.isUsingKeyboard.current) return;
|
|
854
|
+
this.rovingFocusGroup.focusFirstCandidate();
|
|
855
|
+
});
|
|
856
|
+
};
|
|
857
|
+
return MenuOpenEvent.listen(contentNode, handler);
|
|
858
|
+
});
|
|
859
|
+
}
|
|
860
|
+
#getCandidateNodes() {
|
|
861
|
+
const node = this.parentMenu.contentNode;
|
|
862
|
+
if (!node) return [];
|
|
863
|
+
return Array.from(node.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`));
|
|
864
|
+
}
|
|
865
|
+
#isPointerMovingToSubmenu() {
|
|
866
|
+
return this.parentMenu.root.isPointerInTransit;
|
|
867
|
+
}
|
|
868
|
+
#dispatchPointerMoveToHoveredSubTrigger(pointerPoint) {
|
|
869
|
+
if (!pointerPoint) return;
|
|
870
|
+
const parentContentNode = this.parentMenu.parentMenu?.contentNode;
|
|
871
|
+
if (!parentContentNode) return;
|
|
872
|
+
const hoveredNode = this.domContext.getDocument().elementFromPoint(pointerPoint.x, pointerPoint.y);
|
|
873
|
+
if (!isElement$1(hoveredNode)) return;
|
|
874
|
+
const hoveredSubTrigger = hoveredNode.closest(`[${this.parentMenu.root.getBitsAttr("sub-trigger")}]`);
|
|
875
|
+
if (!hoveredSubTrigger || !parentContentNode.contains(hoveredSubTrigger)) return;
|
|
876
|
+
if (hoveredSubTrigger === this.parentMenu.triggerNode) return;
|
|
877
|
+
hoveredSubTrigger.dispatchEvent(new PointerEvent("pointermove", {
|
|
878
|
+
bubbles: true,
|
|
879
|
+
cancelable: true,
|
|
880
|
+
pointerType: "mouse",
|
|
881
|
+
clientX: pointerPoint.x,
|
|
882
|
+
clientY: pointerPoint.y
|
|
883
|
+
}));
|
|
884
|
+
}
|
|
885
|
+
onCloseAutoFocus = (e) => {
|
|
886
|
+
this.opts.onCloseAutoFocus.current?.(e);
|
|
887
|
+
if (e.defaultPrevented || this.#isSub) return;
|
|
888
|
+
if (this.parentMenu.root.ignoreCloseAutoFocus) {
|
|
889
|
+
e.preventDefault();
|
|
890
|
+
return;
|
|
891
|
+
}
|
|
892
|
+
if (this.parentMenu.triggerNode && isTabbable(this.parentMenu.triggerNode)) {
|
|
893
|
+
e.preventDefault();
|
|
894
|
+
this.parentMenu.triggerNode.focus();
|
|
895
|
+
}
|
|
896
|
+
};
|
|
897
|
+
handleTabKeyDown(e) {
|
|
898
|
+
/**
|
|
899
|
+
* We locate the root `menu`'s trigger by going up the tree until
|
|
900
|
+
* we find a menu that has no parent. This will allow us to focus the next
|
|
901
|
+
* tabbable element before/after the root trigger.
|
|
902
|
+
*/
|
|
903
|
+
let rootMenu = this.parentMenu;
|
|
904
|
+
while (rootMenu.parentMenu !== null) rootMenu = rootMenu.parentMenu;
|
|
905
|
+
if (!rootMenu.triggerNode) return;
|
|
906
|
+
e.preventDefault();
|
|
907
|
+
const nodeToFocus = getTabbableFrom(rootMenu.triggerNode, e.shiftKey ? "prev" : "next");
|
|
908
|
+
if (nodeToFocus) {
|
|
909
|
+
/**
|
|
910
|
+
* We set a flag to ignore the `onCloseAutoFocus` event handler
|
|
911
|
+
* as well as the fallbacks inside the focus scope to prevent
|
|
912
|
+
* race conditions causing focus to fall back to the body even
|
|
913
|
+
* though we're trying to focus the next tabbable element.
|
|
914
|
+
*/
|
|
915
|
+
this.parentMenu.root.ignoreCloseAutoFocus = true;
|
|
916
|
+
rootMenu.onClose();
|
|
917
|
+
afterTick(() => {
|
|
918
|
+
nodeToFocus.focus();
|
|
919
|
+
afterTick(() => {
|
|
920
|
+
this.parentMenu.root.ignoreCloseAutoFocus = false;
|
|
921
|
+
});
|
|
922
|
+
});
|
|
923
|
+
} else this.domContext.getDocument().body.focus();
|
|
924
|
+
}
|
|
925
|
+
onkeydown(e) {
|
|
926
|
+
if (e.defaultPrevented) return;
|
|
927
|
+
if (e.key === "Tab") {
|
|
928
|
+
this.handleTabKeyDown(e);
|
|
929
|
+
return;
|
|
930
|
+
}
|
|
931
|
+
const target = e.target;
|
|
932
|
+
const currentTarget = e.currentTarget;
|
|
933
|
+
if (!isHTMLElement$1(target) || !isHTMLElement$1(currentTarget)) return;
|
|
934
|
+
const isKeydownInside = target.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id === this.parentMenu.contentId.current;
|
|
935
|
+
const isModifierKey = e.ctrlKey || e.altKey || e.metaKey;
|
|
936
|
+
const isCharacterKey = e.key.length === 1;
|
|
937
|
+
if (this.rovingFocusGroup.handleKeydown(target, e)) return;
|
|
938
|
+
if (e.code === "Space") return;
|
|
939
|
+
const candidateNodes = this.#getCandidateNodes();
|
|
940
|
+
if (isKeydownInside) {
|
|
941
|
+
if (!isModifierKey && isCharacterKey) this.#handleTypeaheadSearch(e.key, candidateNodes);
|
|
942
|
+
}
|
|
943
|
+
if (e.target?.id !== this.parentMenu.contentId.current) return;
|
|
944
|
+
if (!FIRST_LAST_KEYS.includes(e.key)) return;
|
|
945
|
+
e.preventDefault();
|
|
946
|
+
if (LAST_KEYS.includes(e.key)) candidateNodes.reverse();
|
|
947
|
+
focusFirst(candidateNodes, { select: false }, () => this.domContext.getActiveElement());
|
|
948
|
+
}
|
|
949
|
+
onblur(e) {
|
|
950
|
+
if (!isElement$1(e.currentTarget)) return;
|
|
951
|
+
if (!isElement$1(e.target)) return;
|
|
952
|
+
if (!e.currentTarget.contains?.(e.target)) {
|
|
953
|
+
this.domContext.getWindow().clearTimeout(this.#timer);
|
|
954
|
+
this.search = "";
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
onfocus(_) {
|
|
958
|
+
if (!this.parentMenu.root.isUsingKeyboard.current) return;
|
|
959
|
+
afterTick(() => this.rovingFocusGroup.focusFirstCandidate());
|
|
960
|
+
}
|
|
961
|
+
onItemEnter() {
|
|
962
|
+
return this.#isPointerMovingToSubmenu();
|
|
963
|
+
}
|
|
964
|
+
onItemLeave(e) {
|
|
965
|
+
if (e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))) return;
|
|
966
|
+
if (this.#isPointerMovingToSubmenu() || this.parentMenu.root.isUsingKeyboard.current) return;
|
|
967
|
+
this.parentMenu.contentNode?.focus({ preventScroll: true });
|
|
968
|
+
this.rovingFocusGroup.setCurrentTabStopId("");
|
|
969
|
+
}
|
|
970
|
+
onTriggerLeave() {
|
|
971
|
+
if (this.#isPointerMovingToSubmenu()) return true;
|
|
972
|
+
return false;
|
|
973
|
+
}
|
|
974
|
+
handleInteractOutside(e) {
|
|
975
|
+
if (!isElementOrSVGElement(e.target)) return;
|
|
976
|
+
const triggerId = this.parentMenu.triggerNode?.id;
|
|
977
|
+
if (e.target.id === triggerId) {
|
|
978
|
+
e.preventDefault();
|
|
979
|
+
return;
|
|
980
|
+
}
|
|
981
|
+
if (e.target.closest(`#${triggerId}`)) {
|
|
982
|
+
e.preventDefault();
|
|
983
|
+
return;
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* when the menu closes due to an outside pointer interaction (for example,
|
|
987
|
+
* clicking another dropdown trigger), avoid focusing this menu's trigger
|
|
988
|
+
* to prevent stealing focus from the new interaction target.
|
|
989
|
+
*/
|
|
990
|
+
this.parentMenu.root.ignoreCloseAutoFocus = true;
|
|
991
|
+
afterTick(() => {
|
|
992
|
+
this.parentMenu.root.ignoreCloseAutoFocus = false;
|
|
993
|
+
});
|
|
994
|
+
}
|
|
995
|
+
get shouldRender() {
|
|
996
|
+
return this.parentMenu.contentPresence.shouldRender;
|
|
997
|
+
}
|
|
998
|
+
#snippetProps = derived(() => ({ open: this.parentMenu.opts.open.current }));
|
|
999
|
+
get snippetProps() {
|
|
1000
|
+
return this.#snippetProps();
|
|
1001
|
+
}
|
|
1002
|
+
set snippetProps($$value) {
|
|
1003
|
+
return this.#snippetProps($$value);
|
|
1004
|
+
}
|
|
1005
|
+
#props = derived(() => ({
|
|
1006
|
+
id: this.opts.id.current,
|
|
1007
|
+
role: "menu",
|
|
1008
|
+
"aria-orientation": "vertical",
|
|
1009
|
+
[this.parentMenu.root.getBitsAttr("content")]: "",
|
|
1010
|
+
"data-state": getDataOpenClosed(this.parentMenu.opts.open.current),
|
|
1011
|
+
...getDataTransitionAttrs(this.parentMenu.contentPresence.transitionStatus),
|
|
1012
|
+
onkeydown: this.onkeydown,
|
|
1013
|
+
onblur: this.onblur,
|
|
1014
|
+
onfocus: this.onfocus,
|
|
1015
|
+
dir: this.parentMenu.root.opts.dir.current,
|
|
1016
|
+
style: {
|
|
1017
|
+
pointerEvents: "auto",
|
|
1018
|
+
contain: "layout style"
|
|
1019
|
+
},
|
|
1020
|
+
...this.attachment
|
|
1021
|
+
}));
|
|
1022
|
+
get props() {
|
|
1023
|
+
return this.#props();
|
|
1024
|
+
}
|
|
1025
|
+
set props($$value) {
|
|
1026
|
+
return this.#props($$value);
|
|
1027
|
+
}
|
|
1028
|
+
popperProps = { onCloseAutoFocus: (e) => this.onCloseAutoFocus(e) };
|
|
1029
|
+
};
|
|
1030
|
+
var MenuItemSharedState = class {
|
|
1031
|
+
opts;
|
|
1032
|
+
content;
|
|
1033
|
+
attachment;
|
|
1034
|
+
#isFocused = false;
|
|
1035
|
+
constructor(opts, content) {
|
|
1036
|
+
this.opts = opts;
|
|
1037
|
+
this.content = content;
|
|
1038
|
+
this.attachment = attachRef(this.opts.ref);
|
|
1039
|
+
this.onpointermove = this.onpointermove.bind(this);
|
|
1040
|
+
this.onpointerleave = this.onpointerleave.bind(this);
|
|
1041
|
+
this.onfocus = this.onfocus.bind(this);
|
|
1042
|
+
this.onblur = this.onblur.bind(this);
|
|
1043
|
+
}
|
|
1044
|
+
onpointermove(e) {
|
|
1045
|
+
if (e.defaultPrevented) return;
|
|
1046
|
+
if (!isMouseEvent(e)) return;
|
|
1047
|
+
if (this.opts.disabled.current) this.content.onItemLeave(e);
|
|
1048
|
+
else {
|
|
1049
|
+
if (this.content.onItemEnter()) return;
|
|
1050
|
+
const item = e.currentTarget;
|
|
1051
|
+
if (!isHTMLElement$1(item)) return;
|
|
1052
|
+
item.focus({ preventScroll: true });
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
onpointerleave(e) {
|
|
1056
|
+
if (e.defaultPrevented) return;
|
|
1057
|
+
if (!isMouseEvent(e)) return;
|
|
1058
|
+
this.content.onItemLeave(e);
|
|
1059
|
+
}
|
|
1060
|
+
onfocus(e) {
|
|
1061
|
+
afterTick(() => {
|
|
1062
|
+
if (e.defaultPrevented || this.opts.disabled.current) return;
|
|
1063
|
+
this.#isFocused = true;
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
onblur(e) {
|
|
1067
|
+
afterTick(() => {
|
|
1068
|
+
if (e.defaultPrevented) return;
|
|
1069
|
+
this.#isFocused = false;
|
|
1070
|
+
});
|
|
1071
|
+
}
|
|
1072
|
+
#props = derived(() => ({
|
|
1073
|
+
id: this.opts.id.current,
|
|
1074
|
+
tabindex: -1,
|
|
1075
|
+
role: "menuitem",
|
|
1076
|
+
"aria-disabled": boolToStr(this.opts.disabled.current),
|
|
1077
|
+
"data-disabled": boolToEmptyStrOrUndef(this.opts.disabled.current),
|
|
1078
|
+
"data-highlighted": this.#isFocused ? "" : void 0,
|
|
1079
|
+
[this.content.parentMenu.root.getBitsAttr("item")]: "",
|
|
1080
|
+
onpointermove: this.onpointermove,
|
|
1081
|
+
onpointerleave: this.onpointerleave,
|
|
1082
|
+
onfocus: this.onfocus,
|
|
1083
|
+
onblur: this.onblur,
|
|
1084
|
+
...this.attachment
|
|
1085
|
+
}));
|
|
1086
|
+
get props() {
|
|
1087
|
+
return this.#props();
|
|
1088
|
+
}
|
|
1089
|
+
set props($$value) {
|
|
1090
|
+
return this.#props($$value);
|
|
1091
|
+
}
|
|
1092
|
+
};
|
|
1093
|
+
var MenuItemState = class MenuItemState {
|
|
1094
|
+
static create(opts) {
|
|
1095
|
+
const item = new MenuItemSharedState(opts, MenuContentContext.get());
|
|
1096
|
+
return new MenuItemState(opts, item);
|
|
1097
|
+
}
|
|
1098
|
+
opts;
|
|
1099
|
+
item;
|
|
1100
|
+
root;
|
|
1101
|
+
#isPointerDown = false;
|
|
1102
|
+
constructor(opts, item) {
|
|
1103
|
+
this.opts = opts;
|
|
1104
|
+
this.item = item;
|
|
1105
|
+
this.root = item.content.parentMenu.root;
|
|
1106
|
+
this.onkeydown = this.onkeydown.bind(this);
|
|
1107
|
+
this.onclick = this.onclick.bind(this);
|
|
1108
|
+
this.onpointerdown = this.onpointerdown.bind(this);
|
|
1109
|
+
this.onpointerup = this.onpointerup.bind(this);
|
|
1110
|
+
}
|
|
1111
|
+
#handleSelect() {
|
|
1112
|
+
if (this.item.opts.disabled.current) return;
|
|
1113
|
+
const selectEvent = new CustomEvent("menuitemselect", {
|
|
1114
|
+
bubbles: true,
|
|
1115
|
+
cancelable: true
|
|
1116
|
+
});
|
|
1117
|
+
this.opts.onSelect.current(selectEvent);
|
|
1118
|
+
if (selectEvent.defaultPrevented) {
|
|
1119
|
+
this.item.content.parentMenu.root.isUsingKeyboard.current = false;
|
|
1120
|
+
return;
|
|
1121
|
+
}
|
|
1122
|
+
if (this.opts.closeOnSelect.current) this.item.content.parentMenu.root.opts.onClose();
|
|
1123
|
+
}
|
|
1124
|
+
onkeydown(e) {
|
|
1125
|
+
const isTypingAhead = this.item.content.search !== "";
|
|
1126
|
+
if (this.item.opts.disabled.current || isTypingAhead && e.key === " ") return;
|
|
1127
|
+
if (SELECTION_KEYS.includes(e.key)) {
|
|
1128
|
+
if (!isHTMLElement$1(e.currentTarget)) return;
|
|
1129
|
+
e.currentTarget.click();
|
|
1130
|
+
/**
|
|
1131
|
+
* We prevent default browser behavior for selection keys as they should trigger
|
|
1132
|
+
* a selection only:
|
|
1133
|
+
* - prevents space from scrolling the page.
|
|
1134
|
+
* - if keydown causes focus to move, prevents keydown from firing on the new target.
|
|
1135
|
+
*/
|
|
1136
|
+
e.preventDefault();
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
onclick(_) {
|
|
1140
|
+
if (this.item.opts.disabled.current) return;
|
|
1141
|
+
this.#handleSelect();
|
|
1142
|
+
}
|
|
1143
|
+
onpointerup(e) {
|
|
1144
|
+
if (e.defaultPrevented) return;
|
|
1145
|
+
if (!this.#isPointerDown) {
|
|
1146
|
+
if (!isHTMLElement$1(e.currentTarget)) return;
|
|
1147
|
+
e.currentTarget?.click();
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
onpointerdown(_) {
|
|
1151
|
+
this.#isPointerDown = true;
|
|
1152
|
+
}
|
|
1153
|
+
#props = derived(() => mergeProps(this.item.props, {
|
|
1154
|
+
onclick: this.onclick,
|
|
1155
|
+
onpointerdown: this.onpointerdown,
|
|
1156
|
+
onpointerup: this.onpointerup,
|
|
1157
|
+
onkeydown: this.onkeydown
|
|
1158
|
+
}));
|
|
1159
|
+
get props() {
|
|
1160
|
+
return this.#props();
|
|
1161
|
+
}
|
|
1162
|
+
set props($$value) {
|
|
1163
|
+
return this.#props($$value);
|
|
1164
|
+
}
|
|
1165
|
+
};
|
|
1166
|
+
var MenuSubTriggerState = class MenuSubTriggerState {
|
|
1167
|
+
static create(opts) {
|
|
1168
|
+
const content = MenuContentContext.get();
|
|
1169
|
+
const item = new MenuItemSharedState(opts, content);
|
|
1170
|
+
const submenu = MenuMenuContext.get();
|
|
1171
|
+
return new MenuSubTriggerState(opts, item, content, submenu);
|
|
1172
|
+
}
|
|
1173
|
+
opts;
|
|
1174
|
+
item;
|
|
1175
|
+
content;
|
|
1176
|
+
submenu;
|
|
1177
|
+
attachment;
|
|
1178
|
+
#openTimer = null;
|
|
1179
|
+
constructor(opts, item, content, submenu) {
|
|
1180
|
+
this.opts = opts;
|
|
1181
|
+
this.item = item;
|
|
1182
|
+
this.content = content;
|
|
1183
|
+
this.submenu = submenu;
|
|
1184
|
+
this.attachment = attachRef(this.opts.ref, (v) => this.submenu.triggerNode = v);
|
|
1185
|
+
this.onpointerleave = this.onpointerleave.bind(this);
|
|
1186
|
+
this.onpointermove = this.onpointermove.bind(this);
|
|
1187
|
+
this.onkeydown = this.onkeydown.bind(this);
|
|
1188
|
+
this.onclick = this.onclick.bind(this);
|
|
1189
|
+
}
|
|
1190
|
+
#clearOpenTimer() {
|
|
1191
|
+
if (this.#openTimer === null) return;
|
|
1192
|
+
this.content.domContext.getWindow().clearTimeout(this.#openTimer);
|
|
1193
|
+
this.#openTimer = null;
|
|
1194
|
+
}
|
|
1195
|
+
onpointermove(e) {
|
|
1196
|
+
if (!isMouseEvent(e)) return;
|
|
1197
|
+
if (this.submenu.root.isPointerInTransit) {
|
|
1198
|
+
if (this.#openTimer !== null) this.#clearOpenTimer();
|
|
1199
|
+
return;
|
|
1200
|
+
}
|
|
1201
|
+
if (!this.item.opts.disabled.current && !this.submenu.opts.open.current && !this.#openTimer) {
|
|
1202
|
+
const openDelay = this.opts.openDelay.current;
|
|
1203
|
+
if (openDelay <= 0) {
|
|
1204
|
+
this.submenu.onOpen();
|
|
1205
|
+
return;
|
|
1206
|
+
}
|
|
1207
|
+
this.#openTimer = this.content.domContext.setTimeout(() => {
|
|
1208
|
+
if (this.submenu.root.isPointerInTransit) {
|
|
1209
|
+
this.#clearOpenTimer();
|
|
1210
|
+
return;
|
|
1211
|
+
}
|
|
1212
|
+
this.submenu.onOpen();
|
|
1213
|
+
this.#clearOpenTimer();
|
|
1214
|
+
}, openDelay);
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
onpointerleave(e) {
|
|
1218
|
+
if (!isMouseEvent(e)) return;
|
|
1219
|
+
this.#clearOpenTimer();
|
|
1220
|
+
}
|
|
1221
|
+
onkeydown(e) {
|
|
1222
|
+
const isTypingAhead = this.content.search !== "";
|
|
1223
|
+
if (this.item.opts.disabled.current || isTypingAhead && e.key === " ") return;
|
|
1224
|
+
if (SUB_OPEN_KEYS[this.submenu.root.opts.dir.current].includes(e.key)) {
|
|
1225
|
+
e.currentTarget.click();
|
|
1226
|
+
e.preventDefault();
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
onclick(e) {
|
|
1230
|
+
if (this.item.opts.disabled.current) return;
|
|
1231
|
+
/**
|
|
1232
|
+
* We manually focus because iOS Safari doesn't always focus on click (e.g. buttons)
|
|
1233
|
+
* and we rely heavily on `onFocusOutside` for submenus to close when switching
|
|
1234
|
+
* between separate submenus.
|
|
1235
|
+
*/
|
|
1236
|
+
if (!isHTMLElement$1(e.currentTarget)) return;
|
|
1237
|
+
e.currentTarget.focus();
|
|
1238
|
+
const selectEvent = new CustomEvent("menusubtriggerselect", {
|
|
1239
|
+
bubbles: true,
|
|
1240
|
+
cancelable: true
|
|
1241
|
+
});
|
|
1242
|
+
this.opts.onSelect.current(selectEvent);
|
|
1243
|
+
if (!this.submenu.opts.open.current) {
|
|
1244
|
+
this.submenu.onOpen();
|
|
1245
|
+
afterTick(() => {
|
|
1246
|
+
const contentNode = this.submenu.contentNode;
|
|
1247
|
+
if (!contentNode) return;
|
|
1248
|
+
MenuOpenEvent.dispatch(contentNode);
|
|
1249
|
+
});
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
#props = derived(() => mergeProps({
|
|
1253
|
+
"aria-haspopup": "menu",
|
|
1254
|
+
"aria-expanded": boolToStr(this.submenu.opts.open.current),
|
|
1255
|
+
"data-state": getDataOpenClosed(this.submenu.opts.open.current),
|
|
1256
|
+
"aria-controls": this.submenu.opts.open.current ? this.submenu.contentId.current : void 0,
|
|
1257
|
+
[this.submenu.root.getBitsAttr("sub-trigger")]: "",
|
|
1258
|
+
onclick: this.onclick,
|
|
1259
|
+
onpointermove: this.onpointermove,
|
|
1260
|
+
onpointerleave: this.onpointerleave,
|
|
1261
|
+
onkeydown: this.onkeydown,
|
|
1262
|
+
...this.attachment
|
|
1263
|
+
}, this.item.props));
|
|
1264
|
+
get props() {
|
|
1265
|
+
return this.#props();
|
|
1266
|
+
}
|
|
1267
|
+
set props($$value) {
|
|
1268
|
+
return this.#props($$value);
|
|
1269
|
+
}
|
|
1270
|
+
};
|
|
1271
|
+
var MenuSeparatorState = class MenuSeparatorState {
|
|
1272
|
+
static create(opts) {
|
|
1273
|
+
return new MenuSeparatorState(opts, MenuRootContext.get());
|
|
1274
|
+
}
|
|
1275
|
+
opts;
|
|
1276
|
+
root;
|
|
1277
|
+
attachment;
|
|
1278
|
+
constructor(opts, root) {
|
|
1279
|
+
this.opts = opts;
|
|
1280
|
+
this.root = root;
|
|
1281
|
+
this.attachment = attachRef(this.opts.ref);
|
|
1282
|
+
}
|
|
1283
|
+
#props = derived(() => ({
|
|
1284
|
+
id: this.opts.id.current,
|
|
1285
|
+
role: "separator",
|
|
1286
|
+
[this.root.getBitsAttr("separator")]: "",
|
|
1287
|
+
...this.attachment
|
|
1288
|
+
}));
|
|
1289
|
+
get props() {
|
|
1290
|
+
return this.#props();
|
|
1291
|
+
}
|
|
1292
|
+
set props($$value) {
|
|
1293
|
+
return this.#props($$value);
|
|
1294
|
+
}
|
|
1295
|
+
};
|
|
1296
|
+
var MenuRadioGroupState = class MenuRadioGroupState {
|
|
1297
|
+
static create(opts) {
|
|
1298
|
+
return MenuGroupContext.set(MenuRadioGroupContext.set(new MenuRadioGroupState(opts, MenuContentContext.get())));
|
|
1299
|
+
}
|
|
1300
|
+
opts;
|
|
1301
|
+
content;
|
|
1302
|
+
attachment;
|
|
1303
|
+
groupHeadingId = null;
|
|
1304
|
+
root;
|
|
1305
|
+
constructor(opts, content) {
|
|
1306
|
+
this.opts = opts;
|
|
1307
|
+
this.content = content;
|
|
1308
|
+
this.root = content.parentMenu.root;
|
|
1309
|
+
this.attachment = attachRef(this.opts.ref);
|
|
1310
|
+
}
|
|
1311
|
+
setValue(v) {
|
|
1312
|
+
this.opts.value.current = v;
|
|
1313
|
+
}
|
|
1314
|
+
#props = derived(() => ({
|
|
1315
|
+
id: this.opts.id.current,
|
|
1316
|
+
[this.root.getBitsAttr("radio-group")]: "",
|
|
1317
|
+
role: "group",
|
|
1318
|
+
"aria-labelledby": this.groupHeadingId,
|
|
1319
|
+
...this.attachment
|
|
1320
|
+
}));
|
|
1321
|
+
get props() {
|
|
1322
|
+
return this.#props();
|
|
1323
|
+
}
|
|
1324
|
+
set props($$value) {
|
|
1325
|
+
return this.#props($$value);
|
|
1326
|
+
}
|
|
1327
|
+
};
|
|
1328
|
+
var MenuRadioItemState = class MenuRadioItemState {
|
|
1329
|
+
static create(opts) {
|
|
1330
|
+
const radioGroup = MenuRadioGroupContext.get();
|
|
1331
|
+
const item = new MenuItemState(opts, new MenuItemSharedState(opts, radioGroup.content));
|
|
1332
|
+
return new MenuRadioItemState(opts, item, radioGroup);
|
|
1333
|
+
}
|
|
1334
|
+
opts;
|
|
1335
|
+
item;
|
|
1336
|
+
group;
|
|
1337
|
+
attachment;
|
|
1338
|
+
#isChecked = derived(() => this.group.opts.value.current === this.opts.value.current);
|
|
1339
|
+
get isChecked() {
|
|
1340
|
+
return this.#isChecked();
|
|
1341
|
+
}
|
|
1342
|
+
set isChecked($$value) {
|
|
1343
|
+
return this.#isChecked($$value);
|
|
1344
|
+
}
|
|
1345
|
+
constructor(opts, item, group) {
|
|
1346
|
+
this.opts = opts;
|
|
1347
|
+
this.item = item;
|
|
1348
|
+
this.group = group;
|
|
1349
|
+
this.attachment = attachRef(this.opts.ref);
|
|
1350
|
+
}
|
|
1351
|
+
selectValue() {
|
|
1352
|
+
this.group.setValue(this.opts.value.current);
|
|
1353
|
+
}
|
|
1354
|
+
#props = derived(() => ({
|
|
1355
|
+
[this.group.root.getBitsAttr("radio-item")]: "",
|
|
1356
|
+
...this.item.props,
|
|
1357
|
+
role: "menuitemradio",
|
|
1358
|
+
"aria-checked": getAriaChecked(this.isChecked),
|
|
1359
|
+
"data-state": getCheckedState(this.isChecked),
|
|
1360
|
+
...this.attachment
|
|
1361
|
+
}));
|
|
1362
|
+
get props() {
|
|
1363
|
+
return this.#props();
|
|
1364
|
+
}
|
|
1365
|
+
set props($$value) {
|
|
1366
|
+
return this.#props($$value);
|
|
1367
|
+
}
|
|
1368
|
+
};
|
|
1369
|
+
var DropdownMenuTriggerState = class DropdownMenuTriggerState {
|
|
1370
|
+
static create(opts) {
|
|
1371
|
+
return new DropdownMenuTriggerState(opts, MenuMenuContext.get());
|
|
1372
|
+
}
|
|
1373
|
+
opts;
|
|
1374
|
+
parentMenu;
|
|
1375
|
+
attachment;
|
|
1376
|
+
constructor(opts, parentMenu) {
|
|
1377
|
+
this.opts = opts;
|
|
1378
|
+
this.parentMenu = parentMenu;
|
|
1379
|
+
this.attachment = attachRef(this.opts.ref, (v) => this.parentMenu.triggerNode = v);
|
|
1380
|
+
}
|
|
1381
|
+
onclick = (e) => {
|
|
1382
|
+
/**
|
|
1383
|
+
* MacOS VoiceOver sends a click in Safari/Firefox bypassing the keydown event
|
|
1384
|
+
* when V0+Space is pressed. Since we already handle the keydown event and the
|
|
1385
|
+
* pointerdown events separately, we ignore it if the detail is not 0.
|
|
1386
|
+
*/
|
|
1387
|
+
if (this.opts.disabled.current || e.detail !== 0) return;
|
|
1388
|
+
this.parentMenu.toggleOpen();
|
|
1389
|
+
e.preventDefault();
|
|
1390
|
+
};
|
|
1391
|
+
onpointerdown = (e) => {
|
|
1392
|
+
if (this.opts.disabled.current) return;
|
|
1393
|
+
if (e.pointerType === "touch") return e.preventDefault();
|
|
1394
|
+
if (e.button === 0 && e.ctrlKey === false) {
|
|
1395
|
+
this.parentMenu.toggleOpen();
|
|
1396
|
+
if (!this.parentMenu.opts.open.current) e.preventDefault();
|
|
1397
|
+
}
|
|
1398
|
+
};
|
|
1399
|
+
onpointerup = (e) => {
|
|
1400
|
+
if (this.opts.disabled.current) return;
|
|
1401
|
+
if (e.pointerType === "touch") {
|
|
1402
|
+
e.preventDefault();
|
|
1403
|
+
this.parentMenu.toggleOpen();
|
|
1404
|
+
}
|
|
1405
|
+
};
|
|
1406
|
+
onkeydown = (e) => {
|
|
1407
|
+
if (this.opts.disabled.current) return;
|
|
1408
|
+
if (e.key === " " || e.key === "Enter") {
|
|
1409
|
+
this.parentMenu.toggleOpen();
|
|
1410
|
+
e.preventDefault();
|
|
1411
|
+
return;
|
|
1412
|
+
}
|
|
1413
|
+
if (e.key === "ArrowDown") {
|
|
1414
|
+
this.parentMenu.onOpen();
|
|
1415
|
+
e.preventDefault();
|
|
1416
|
+
}
|
|
1417
|
+
};
|
|
1418
|
+
#ariaControls = derived(() => {
|
|
1419
|
+
if (this.parentMenu.opts.open.current && this.parentMenu.contentId.current) return this.parentMenu.contentId.current;
|
|
1420
|
+
});
|
|
1421
|
+
#props = derived(() => ({
|
|
1422
|
+
id: this.opts.id.current,
|
|
1423
|
+
disabled: this.opts.disabled.current,
|
|
1424
|
+
"aria-haspopup": "menu",
|
|
1425
|
+
"aria-expanded": boolToStr(this.parentMenu.opts.open.current),
|
|
1426
|
+
"aria-controls": this.#ariaControls(),
|
|
1427
|
+
"data-disabled": boolToEmptyStrOrUndef(this.opts.disabled.current),
|
|
1428
|
+
"data-state": getDataOpenClosed(this.parentMenu.opts.open.current),
|
|
1429
|
+
[this.parentMenu.root.getBitsAttr("trigger")]: "",
|
|
1430
|
+
onclick: this.onclick,
|
|
1431
|
+
onpointerdown: this.onpointerdown,
|
|
1432
|
+
onpointerup: this.onpointerup,
|
|
1433
|
+
onkeydown: this.onkeydown,
|
|
1434
|
+
...this.attachment
|
|
1435
|
+
}));
|
|
1436
|
+
get props() {
|
|
1437
|
+
return this.#props();
|
|
1438
|
+
}
|
|
1439
|
+
set props($$value) {
|
|
1440
|
+
return this.#props($$value);
|
|
1441
|
+
}
|
|
1442
|
+
};
|
|
1443
|
+
var MenuSubmenuState = class {
|
|
1444
|
+
static create(opts) {
|
|
1445
|
+
const menu = MenuMenuContext.get();
|
|
1446
|
+
return MenuMenuContext.set(new MenuMenuState(opts, menu.root, menu));
|
|
1447
|
+
}
|
|
1448
|
+
};
|
|
1449
|
+
//#endregion
|
|
1450
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/menu/components/menu-sub.svelte
|
|
1451
|
+
function Menu_sub($$renderer, $$props) {
|
|
1452
|
+
$$renderer.component(($$renderer) => {
|
|
1453
|
+
let { open = false, onOpenChange = noop, onOpenChangeComplete = noop, children } = $$props;
|
|
1454
|
+
MenuSubmenuState.create({
|
|
1455
|
+
open: boxWith(() => open, (v) => {
|
|
1456
|
+
open = v;
|
|
1457
|
+
onOpenChange?.(v);
|
|
1458
|
+
}),
|
|
1459
|
+
onOpenChangeComplete: boxWith(() => onOpenChangeComplete)
|
|
1460
|
+
});
|
|
1461
|
+
Floating_layer($$renderer, {
|
|
1462
|
+
children: ($$renderer) => {
|
|
1463
|
+
children?.($$renderer);
|
|
1464
|
+
$$renderer.push(`<!---->`);
|
|
1465
|
+
}});
|
|
1466
|
+
bind_props($$props, { open });
|
|
1467
|
+
});
|
|
1468
|
+
}
|
|
1469
|
+
//#endregion
|
|
1470
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/menu/components/menu-item.svelte
|
|
1471
|
+
function Menu_item($$renderer, $$props) {
|
|
1472
|
+
$$renderer.component(($$renderer) => {
|
|
1473
|
+
const uid = props_id($$renderer);
|
|
1474
|
+
let { child, children, ref = null, id = createId(uid), disabled = false, onSelect = noop, closeOnSelect = true, $$slots, $$events, ...restProps } = $$props;
|
|
1475
|
+
const itemState = MenuItemState.create({
|
|
1476
|
+
id: boxWith(() => id),
|
|
1477
|
+
disabled: boxWith(() => disabled),
|
|
1478
|
+
onSelect: boxWith(() => onSelect),
|
|
1479
|
+
ref: boxWith(() => ref, (v) => ref = v),
|
|
1480
|
+
closeOnSelect: boxWith(() => closeOnSelect)
|
|
1481
|
+
});
|
|
1482
|
+
const mergedProps = derived(() => mergeProps(restProps, itemState.props));
|
|
1483
|
+
if (child) {
|
|
1484
|
+
$$renderer.push("<!--[0-->");
|
|
1485
|
+
child($$renderer, { props: mergedProps() });
|
|
1486
|
+
$$renderer.push(`<!---->`);
|
|
1487
|
+
} else {
|
|
1488
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1489
|
+
children?.($$renderer);
|
|
1490
|
+
$$renderer.push(`<!----></div>`);
|
|
1491
|
+
}
|
|
1492
|
+
$$renderer.push(`<!--]-->`);
|
|
1493
|
+
bind_props($$props, { ref });
|
|
1494
|
+
});
|
|
1495
|
+
}
|
|
1496
|
+
//#endregion
|
|
1497
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/menu/components/menu-radio-item.svelte
|
|
1498
|
+
function Menu_radio_item($$renderer, $$props) {
|
|
1499
|
+
$$renderer.component(($$renderer) => {
|
|
1500
|
+
const uid = props_id($$renderer);
|
|
1501
|
+
let { children, child, ref = null, value, onSelect = noop, id = createId(uid), disabled = false, closeOnSelect = true, $$slots, $$events, ...restProps } = $$props;
|
|
1502
|
+
const radioItemState = MenuRadioItemState.create({
|
|
1503
|
+
value: boxWith(() => value),
|
|
1504
|
+
id: boxWith(() => id),
|
|
1505
|
+
disabled: boxWith(() => disabled),
|
|
1506
|
+
onSelect: boxWith(() => handleSelect),
|
|
1507
|
+
ref: boxWith(() => ref, (v) => ref = v),
|
|
1508
|
+
closeOnSelect: boxWith(() => closeOnSelect)
|
|
1509
|
+
});
|
|
1510
|
+
function handleSelect(e) {
|
|
1511
|
+
onSelect(e);
|
|
1512
|
+
if (e.defaultPrevented) return;
|
|
1513
|
+
radioItemState.selectValue();
|
|
1514
|
+
}
|
|
1515
|
+
const mergedProps = derived(() => mergeProps(restProps, radioItemState.props));
|
|
1516
|
+
if (child) {
|
|
1517
|
+
$$renderer.push("<!--[0-->");
|
|
1518
|
+
child($$renderer, {
|
|
1519
|
+
props: mergedProps(),
|
|
1520
|
+
checked: radioItemState.isChecked
|
|
1521
|
+
});
|
|
1522
|
+
$$renderer.push(`<!---->`);
|
|
1523
|
+
} else {
|
|
1524
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1525
|
+
children?.($$renderer, { checked: radioItemState.isChecked });
|
|
1526
|
+
$$renderer.push(`<!----></div>`);
|
|
1527
|
+
}
|
|
1528
|
+
$$renderer.push(`<!--]-->`);
|
|
1529
|
+
bind_props($$props, { ref });
|
|
1530
|
+
});
|
|
1531
|
+
}
|
|
1532
|
+
//#endregion
|
|
1533
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/menu/components/menu-separator.svelte
|
|
1534
|
+
function Menu_separator($$renderer, $$props) {
|
|
1535
|
+
$$renderer.component(($$renderer) => {
|
|
1536
|
+
const uid = props_id($$renderer);
|
|
1537
|
+
let { ref = null, id = createId(uid), child, children, $$slots, $$events, ...restProps } = $$props;
|
|
1538
|
+
const separatorState = MenuSeparatorState.create({
|
|
1539
|
+
id: boxWith(() => id),
|
|
1540
|
+
ref: boxWith(() => ref, (v) => ref = v)
|
|
1541
|
+
});
|
|
1542
|
+
const mergedProps = derived(() => mergeProps(restProps, separatorState.props));
|
|
1543
|
+
if (child) {
|
|
1544
|
+
$$renderer.push("<!--[0-->");
|
|
1545
|
+
child($$renderer, { props: mergedProps() });
|
|
1546
|
+
$$renderer.push(`<!---->`);
|
|
1547
|
+
} else {
|
|
1548
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1549
|
+
children?.($$renderer);
|
|
1550
|
+
$$renderer.push(`<!----></div>`);
|
|
1551
|
+
}
|
|
1552
|
+
$$renderer.push(`<!--]-->`);
|
|
1553
|
+
bind_props($$props, { ref });
|
|
1554
|
+
});
|
|
1555
|
+
}
|
|
1556
|
+
//#endregion
|
|
1557
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/menu/components/menu-radio-group.svelte
|
|
1558
|
+
function Menu_radio_group($$renderer, $$props) {
|
|
1559
|
+
$$renderer.component(($$renderer) => {
|
|
1560
|
+
const uid = props_id($$renderer);
|
|
1561
|
+
let { id = createId(uid), children, child, ref = null, value = "", onValueChange = noop, $$slots, $$events, ...restProps } = $$props;
|
|
1562
|
+
const radioGroupState = MenuRadioGroupState.create({
|
|
1563
|
+
value: boxWith(() => value, (v) => {
|
|
1564
|
+
value = v;
|
|
1565
|
+
onValueChange(v);
|
|
1566
|
+
}),
|
|
1567
|
+
ref: boxWith(() => ref, (v) => ref = v),
|
|
1568
|
+
id: boxWith(() => id)
|
|
1569
|
+
});
|
|
1570
|
+
const mergedProps = derived(() => mergeProps(restProps, radioGroupState.props));
|
|
1571
|
+
if (child) {
|
|
1572
|
+
$$renderer.push("<!--[0-->");
|
|
1573
|
+
child($$renderer, { props: mergedProps() });
|
|
1574
|
+
$$renderer.push(`<!---->`);
|
|
1575
|
+
} else {
|
|
1576
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1577
|
+
children?.($$renderer);
|
|
1578
|
+
$$renderer.push(`<!----></div>`);
|
|
1579
|
+
}
|
|
1580
|
+
$$renderer.push(`<!--]-->`);
|
|
1581
|
+
bind_props($$props, {
|
|
1582
|
+
ref,
|
|
1583
|
+
value
|
|
1584
|
+
});
|
|
1585
|
+
});
|
|
1586
|
+
}
|
|
1587
|
+
//#endregion
|
|
1588
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/menu/components/menu-sub-content.svelte
|
|
1589
|
+
function Menu_sub_content($$renderer, $$props) {
|
|
1590
|
+
$$renderer.component(($$renderer) => {
|
|
1591
|
+
const uid = props_id($$renderer);
|
|
1592
|
+
let { id = createId(uid), ref = null, children, child, loop = true, onInteractOutside = noop, forceMount = false, onEscapeKeydown = noop, interactOutsideBehavior = "defer-otherwise-close", escapeKeydownBehavior = "defer-otherwise-close", onOpenAutoFocus: onOpenAutoFocusProp = noop, onCloseAutoFocus: onCloseAutoFocusProp = noop, onFocusOutside = noop, side = "right", trapFocus = false, style, $$slots, $$events, ...restProps } = $$props;
|
|
1593
|
+
const subContentState = MenuContentState.create({
|
|
1594
|
+
id: boxWith(() => id),
|
|
1595
|
+
loop: boxWith(() => loop),
|
|
1596
|
+
ref: boxWith(() => ref, (v) => ref = v),
|
|
1597
|
+
isSub: true,
|
|
1598
|
+
onCloseAutoFocus: boxWith(() => handleCloseAutoFocus)
|
|
1599
|
+
});
|
|
1600
|
+
function onkeydown(e) {
|
|
1601
|
+
const isKeyDownInside = e.currentTarget.contains(e.target);
|
|
1602
|
+
const isCloseKey = SUB_CLOSE_KEYS[subContentState.parentMenu.root.opts.dir.current].includes(e.key);
|
|
1603
|
+
if (isKeyDownInside && isCloseKey) {
|
|
1604
|
+
subContentState.parentMenu.onClose();
|
|
1605
|
+
subContentState.parentMenu.triggerNode?.focus();
|
|
1606
|
+
e.preventDefault();
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
const dataAttr = derived(() => subContentState.parentMenu.root.getBitsAttr("sub-content"));
|
|
1610
|
+
const mergedProps = derived(() => mergeProps(restProps, subContentState.props, {
|
|
1611
|
+
side,
|
|
1612
|
+
onkeydown,
|
|
1613
|
+
[dataAttr()]: ""
|
|
1614
|
+
}));
|
|
1615
|
+
function handleOpenAutoFocus(e) {
|
|
1616
|
+
onOpenAutoFocusProp(e);
|
|
1617
|
+
if (e.defaultPrevented) return;
|
|
1618
|
+
e.preventDefault();
|
|
1619
|
+
if (subContentState.parentMenu.root.isUsingKeyboard && subContentState.parentMenu.contentNode) MenuOpenEvent.dispatch(subContentState.parentMenu.contentNode);
|
|
1620
|
+
}
|
|
1621
|
+
function handleCloseAutoFocus(e) {
|
|
1622
|
+
onCloseAutoFocusProp(e);
|
|
1623
|
+
if (e.defaultPrevented) return;
|
|
1624
|
+
e.preventDefault();
|
|
1625
|
+
}
|
|
1626
|
+
function handleInteractOutside(e) {
|
|
1627
|
+
onInteractOutside(e);
|
|
1628
|
+
if (e.defaultPrevented) return;
|
|
1629
|
+
subContentState.parentMenu.onClose();
|
|
1630
|
+
}
|
|
1631
|
+
function handleEscapeKeydown(e) {
|
|
1632
|
+
onEscapeKeydown(e);
|
|
1633
|
+
if (e.defaultPrevented) return;
|
|
1634
|
+
subContentState.parentMenu.onClose();
|
|
1635
|
+
}
|
|
1636
|
+
function handleOnFocusOutside(e) {
|
|
1637
|
+
onFocusOutside(e);
|
|
1638
|
+
if (e.defaultPrevented) return;
|
|
1639
|
+
if (!isHTMLElement$1(e.target)) return;
|
|
1640
|
+
if (e.target.id === subContentState.parentMenu.triggerNode?.id) return;
|
|
1641
|
+
if ((subContentState.parentMenu.parentMenu?.contentNode)?.contains(e.target)) {
|
|
1642
|
+
subContentState.parentMenu.onClose();
|
|
1643
|
+
e.preventDefault();
|
|
1644
|
+
return;
|
|
1645
|
+
}
|
|
1646
|
+
const subContentSelector = `[${subContentState.parentMenu.root.getBitsAttr("sub-content")}]`;
|
|
1647
|
+
if (e.target.closest(subContentSelector)) {
|
|
1648
|
+
e.preventDefault();
|
|
1649
|
+
return;
|
|
1650
|
+
}
|
|
1651
|
+
subContentState.parentMenu.onClose();
|
|
1652
|
+
}
|
|
1653
|
+
if (forceMount) {
|
|
1654
|
+
$$renderer.push("<!--[0-->");
|
|
1655
|
+
{
|
|
1656
|
+
function popper($$renderer, { props, wrapperProps }) {
|
|
1657
|
+
const finalProps = mergeProps(props, mergedProps(), { style: getFloatingContentCSSVars("menu") }, { style });
|
|
1658
|
+
if (child) {
|
|
1659
|
+
$$renderer.push("<!--[0-->");
|
|
1660
|
+
child($$renderer, {
|
|
1661
|
+
props: finalProps,
|
|
1662
|
+
wrapperProps,
|
|
1663
|
+
...subContentState.snippetProps
|
|
1664
|
+
});
|
|
1665
|
+
$$renderer.push(`<!---->`);
|
|
1666
|
+
} else {
|
|
1667
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...wrapperProps })}><div${attributes({ ...finalProps })}>`);
|
|
1668
|
+
children?.($$renderer);
|
|
1669
|
+
$$renderer.push(`<!----></div></div>`);
|
|
1670
|
+
}
|
|
1671
|
+
$$renderer.push(`<!--]-->`);
|
|
1672
|
+
}
|
|
1673
|
+
Popper_layer_force_mount($$renderer, spread_props([mergedProps(), {
|
|
1674
|
+
ref: subContentState.opts.ref,
|
|
1675
|
+
interactOutsideBehavior,
|
|
1676
|
+
escapeKeydownBehavior,
|
|
1677
|
+
onOpenAutoFocus: handleOpenAutoFocus,
|
|
1678
|
+
enabled: subContentState.parentMenu.opts.open.current,
|
|
1679
|
+
onInteractOutside: handleInteractOutside,
|
|
1680
|
+
onEscapeKeydown: handleEscapeKeydown,
|
|
1681
|
+
onFocusOutside: handleOnFocusOutside,
|
|
1682
|
+
preventScroll: false,
|
|
1683
|
+
loop,
|
|
1684
|
+
trapFocus,
|
|
1685
|
+
shouldRender: subContentState.shouldRender,
|
|
1686
|
+
popper,
|
|
1687
|
+
$$slots: { popper: true }
|
|
1688
|
+
}]));
|
|
1689
|
+
}
|
|
1690
|
+
} else if (!forceMount) {
|
|
1691
|
+
$$renderer.push("<!--[1-->");
|
|
1692
|
+
{
|
|
1693
|
+
function popper($$renderer, { props, wrapperProps }) {
|
|
1694
|
+
const finalProps = mergeProps(props, mergedProps(), { style: getFloatingContentCSSVars("menu") }, { style });
|
|
1695
|
+
if (child) {
|
|
1696
|
+
$$renderer.push("<!--[0-->");
|
|
1697
|
+
child($$renderer, {
|
|
1698
|
+
props: finalProps,
|
|
1699
|
+
wrapperProps,
|
|
1700
|
+
...subContentState.snippetProps
|
|
1701
|
+
});
|
|
1702
|
+
$$renderer.push(`<!---->`);
|
|
1703
|
+
} else {
|
|
1704
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...wrapperProps })}><div${attributes({ ...finalProps })}>`);
|
|
1705
|
+
children?.($$renderer);
|
|
1706
|
+
$$renderer.push(`<!----></div></div>`);
|
|
1707
|
+
}
|
|
1708
|
+
$$renderer.push(`<!--]-->`);
|
|
1709
|
+
}
|
|
1710
|
+
Popper_layer($$renderer, spread_props([mergedProps(), {
|
|
1711
|
+
ref: subContentState.opts.ref,
|
|
1712
|
+
interactOutsideBehavior,
|
|
1713
|
+
escapeKeydownBehavior,
|
|
1714
|
+
onCloseAutoFocus: handleCloseAutoFocus,
|
|
1715
|
+
onOpenAutoFocus: handleOpenAutoFocus,
|
|
1716
|
+
open: subContentState.parentMenu.opts.open.current,
|
|
1717
|
+
onInteractOutside: handleInteractOutside,
|
|
1718
|
+
onEscapeKeydown: handleEscapeKeydown,
|
|
1719
|
+
onFocusOutside: handleOnFocusOutside,
|
|
1720
|
+
preventScroll: false,
|
|
1721
|
+
loop,
|
|
1722
|
+
trapFocus,
|
|
1723
|
+
shouldRender: subContentState.shouldRender,
|
|
1724
|
+
popper,
|
|
1725
|
+
$$slots: { popper: true }
|
|
1726
|
+
}]));
|
|
1727
|
+
}
|
|
1728
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1729
|
+
$$renderer.push(`<!--]-->`);
|
|
1730
|
+
bind_props($$props, { ref });
|
|
1731
|
+
});
|
|
1732
|
+
}
|
|
1733
|
+
//#endregion
|
|
1734
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/menu/components/menu-sub-trigger.svelte
|
|
1735
|
+
function Menu_sub_trigger($$renderer, $$props) {
|
|
1736
|
+
$$renderer.component(($$renderer) => {
|
|
1737
|
+
const uid = props_id($$renderer);
|
|
1738
|
+
let { id = createId(uid), disabled = false, ref = null, children, child, onSelect = noop, openDelay = 0, $$slots, $$events, ...restProps } = $$props;
|
|
1739
|
+
const subTriggerState = MenuSubTriggerState.create({
|
|
1740
|
+
disabled: boxWith(() => disabled),
|
|
1741
|
+
onSelect: boxWith(() => onSelect),
|
|
1742
|
+
id: boxWith(() => id),
|
|
1743
|
+
ref: boxWith(() => ref, (v) => ref = v),
|
|
1744
|
+
openDelay: boxWith(() => openDelay)
|
|
1745
|
+
});
|
|
1746
|
+
const mergedProps = derived(() => mergeProps(restProps, subTriggerState.props));
|
|
1747
|
+
Floating_layer_anchor($$renderer, {
|
|
1748
|
+
id,
|
|
1749
|
+
ref: subTriggerState.opts.ref,
|
|
1750
|
+
children: ($$renderer) => {
|
|
1751
|
+
if (child) {
|
|
1752
|
+
$$renderer.push("<!--[0-->");
|
|
1753
|
+
child($$renderer, { props: mergedProps() });
|
|
1754
|
+
$$renderer.push(`<!---->`);
|
|
1755
|
+
} else {
|
|
1756
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1757
|
+
children?.($$renderer);
|
|
1758
|
+
$$renderer.push(`<!----></div>`);
|
|
1759
|
+
}
|
|
1760
|
+
$$renderer.push(`<!--]-->`);
|
|
1761
|
+
}});
|
|
1762
|
+
bind_props($$props, { ref });
|
|
1763
|
+
});
|
|
1764
|
+
}
|
|
1765
|
+
//#endregion
|
|
1766
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/menu/components/menu.svelte
|
|
1767
|
+
function Menu($$renderer, $$props) {
|
|
1768
|
+
$$renderer.component(($$renderer) => {
|
|
1769
|
+
let { open = false, dir = "ltr", onOpenChange = noop, onOpenChangeComplete = noop, _internal_variant: variant = "dropdown-menu", _internal_should_skip_exit_animation: shouldSkipExitAnimation = void 0, children } = $$props;
|
|
1770
|
+
const root = MenuRootState.create({
|
|
1771
|
+
variant: boxWith(() => variant),
|
|
1772
|
+
dir: boxWith(() => dir),
|
|
1773
|
+
onClose: () => {
|
|
1774
|
+
open = false;
|
|
1775
|
+
onOpenChange(false);
|
|
1776
|
+
},
|
|
1777
|
+
shouldSkipExitAnimation: () => shouldSkipExitAnimation?.() ?? false
|
|
1778
|
+
});
|
|
1779
|
+
MenuMenuState.create({
|
|
1780
|
+
open: boxWith(() => open, (v) => {
|
|
1781
|
+
open = v;
|
|
1782
|
+
onOpenChange(v);
|
|
1783
|
+
}),
|
|
1784
|
+
onOpenChangeComplete: boxWith(() => onOpenChangeComplete)
|
|
1785
|
+
}, root);
|
|
1786
|
+
Floating_layer($$renderer, {
|
|
1787
|
+
children: ($$renderer) => {
|
|
1788
|
+
children?.($$renderer);
|
|
1789
|
+
$$renderer.push(`<!---->`);
|
|
1790
|
+
}});
|
|
1791
|
+
bind_props($$props, { open });
|
|
1792
|
+
});
|
|
1793
|
+
}
|
|
1794
|
+
//#endregion
|
|
1795
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/dropdown-menu/components/dropdown-menu-content.svelte
|
|
1796
|
+
function Dropdown_menu_content$1($$renderer, $$props) {
|
|
1797
|
+
$$renderer.component(($$renderer) => {
|
|
1798
|
+
const uid = props_id($$renderer);
|
|
1799
|
+
let { id = createId(uid), child, children, ref = null, loop = true, onInteractOutside = noop, onEscapeKeydown = noop, onCloseAutoFocus = noop, forceMount = false, trapFocus = false, style, $$slots, $$events, ...restProps } = $$props;
|
|
1800
|
+
const contentState = MenuContentState.create({
|
|
1801
|
+
id: boxWith(() => id),
|
|
1802
|
+
loop: boxWith(() => loop),
|
|
1803
|
+
ref: boxWith(() => ref, (v) => ref = v),
|
|
1804
|
+
onCloseAutoFocus: boxWith(() => onCloseAutoFocus)
|
|
1805
|
+
});
|
|
1806
|
+
const mergedProps = derived(() => mergeProps(restProps, contentState.props));
|
|
1807
|
+
function handleInteractOutside(e) {
|
|
1808
|
+
contentState.handleInteractOutside(e);
|
|
1809
|
+
if (e.defaultPrevented) return;
|
|
1810
|
+
onInteractOutside(e);
|
|
1811
|
+
if (e.defaultPrevented) return;
|
|
1812
|
+
if (e.target && e.target instanceof Element) {
|
|
1813
|
+
const subContentSelector = `[${contentState.parentMenu.root.getBitsAttr("sub-content")}]`;
|
|
1814
|
+
if (e.target.closest(subContentSelector)) return;
|
|
1815
|
+
}
|
|
1816
|
+
contentState.parentMenu.onClose();
|
|
1817
|
+
}
|
|
1818
|
+
function handleEscapeKeydown(e) {
|
|
1819
|
+
onEscapeKeydown(e);
|
|
1820
|
+
if (e.defaultPrevented) return;
|
|
1821
|
+
contentState.parentMenu.onClose();
|
|
1822
|
+
}
|
|
1823
|
+
if (forceMount) {
|
|
1824
|
+
$$renderer.push("<!--[0-->");
|
|
1825
|
+
{
|
|
1826
|
+
function popper($$renderer, { props, wrapperProps }) {
|
|
1827
|
+
const finalProps = mergeProps(props, { style: getFloatingContentCSSVars("dropdown-menu") }, { style });
|
|
1828
|
+
if (child) {
|
|
1829
|
+
$$renderer.push("<!--[0-->");
|
|
1830
|
+
child($$renderer, {
|
|
1831
|
+
props: finalProps,
|
|
1832
|
+
wrapperProps,
|
|
1833
|
+
...contentState.snippetProps
|
|
1834
|
+
});
|
|
1835
|
+
$$renderer.push(`<!---->`);
|
|
1836
|
+
} else {
|
|
1837
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...wrapperProps })}><div${attributes({ ...finalProps })}>`);
|
|
1838
|
+
children?.($$renderer);
|
|
1839
|
+
$$renderer.push(`<!----></div></div>`);
|
|
1840
|
+
}
|
|
1841
|
+
$$renderer.push(`<!--]-->`);
|
|
1842
|
+
}
|
|
1843
|
+
Popper_layer_force_mount($$renderer, spread_props([
|
|
1844
|
+
mergedProps(),
|
|
1845
|
+
contentState.popperProps,
|
|
1846
|
+
{
|
|
1847
|
+
ref: contentState.opts.ref,
|
|
1848
|
+
enabled: contentState.parentMenu.opts.open.current,
|
|
1849
|
+
onInteractOutside: handleInteractOutside,
|
|
1850
|
+
onEscapeKeydown: handleEscapeKeydown,
|
|
1851
|
+
trapFocus,
|
|
1852
|
+
loop,
|
|
1853
|
+
forceMount: true,
|
|
1854
|
+
id,
|
|
1855
|
+
shouldRender: contentState.shouldRender,
|
|
1856
|
+
popper,
|
|
1857
|
+
$$slots: { popper: true }
|
|
1858
|
+
}
|
|
1859
|
+
]));
|
|
1860
|
+
}
|
|
1861
|
+
} else if (!forceMount) {
|
|
1862
|
+
$$renderer.push("<!--[1-->");
|
|
1863
|
+
{
|
|
1864
|
+
function popper($$renderer, { props, wrapperProps }) {
|
|
1865
|
+
const finalProps = mergeProps(props, { style: getFloatingContentCSSVars("dropdown-menu") }, { style });
|
|
1866
|
+
if (child) {
|
|
1867
|
+
$$renderer.push("<!--[0-->");
|
|
1868
|
+
child($$renderer, {
|
|
1869
|
+
props: finalProps,
|
|
1870
|
+
wrapperProps,
|
|
1871
|
+
...contentState.snippetProps
|
|
1872
|
+
});
|
|
1873
|
+
$$renderer.push(`<!---->`);
|
|
1874
|
+
} else {
|
|
1875
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...wrapperProps })}><div${attributes({ ...finalProps })}>`);
|
|
1876
|
+
children?.($$renderer);
|
|
1877
|
+
$$renderer.push(`<!----></div></div>`);
|
|
1878
|
+
}
|
|
1879
|
+
$$renderer.push(`<!--]-->`);
|
|
1880
|
+
}
|
|
1881
|
+
Popper_layer($$renderer, spread_props([
|
|
1882
|
+
mergedProps(),
|
|
1883
|
+
contentState.popperProps,
|
|
1884
|
+
{
|
|
1885
|
+
ref: contentState.opts.ref,
|
|
1886
|
+
open: contentState.parentMenu.opts.open.current,
|
|
1887
|
+
onInteractOutside: handleInteractOutside,
|
|
1888
|
+
onEscapeKeydown: handleEscapeKeydown,
|
|
1889
|
+
trapFocus,
|
|
1890
|
+
loop,
|
|
1891
|
+
forceMount: false,
|
|
1892
|
+
id,
|
|
1893
|
+
shouldRender: contentState.shouldRender,
|
|
1894
|
+
popper,
|
|
1895
|
+
$$slots: { popper: true }
|
|
1896
|
+
}
|
|
1897
|
+
]));
|
|
1898
|
+
}
|
|
1899
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1900
|
+
$$renderer.push(`<!--]-->`);
|
|
1901
|
+
bind_props($$props, { ref });
|
|
1902
|
+
});
|
|
1903
|
+
}
|
|
1904
|
+
//#endregion
|
|
1905
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/menu/components/menu-trigger.svelte
|
|
1906
|
+
function Menu_trigger($$renderer, $$props) {
|
|
1907
|
+
$$renderer.component(($$renderer) => {
|
|
1908
|
+
const uid = props_id($$renderer);
|
|
1909
|
+
let { id = createId(uid), ref = null, child, children, disabled = false, type = "button", $$slots, $$events, ...restProps } = $$props;
|
|
1910
|
+
const triggerState = DropdownMenuTriggerState.create({
|
|
1911
|
+
id: boxWith(() => id),
|
|
1912
|
+
disabled: boxWith(() => disabled ?? false),
|
|
1913
|
+
ref: boxWith(() => ref, (v) => ref = v)
|
|
1914
|
+
});
|
|
1915
|
+
const mergedProps = derived(() => mergeProps(restProps, triggerState.props, { type }));
|
|
1916
|
+
Floating_layer_anchor($$renderer, {
|
|
1917
|
+
id,
|
|
1918
|
+
ref: triggerState.opts.ref,
|
|
1919
|
+
children: ($$renderer) => {
|
|
1920
|
+
if (child) {
|
|
1921
|
+
$$renderer.push("<!--[0-->");
|
|
1922
|
+
child($$renderer, { props: mergedProps() });
|
|
1923
|
+
$$renderer.push(`<!---->`);
|
|
1924
|
+
} else {
|
|
1925
|
+
$$renderer.push(`<!--[-1--><button${attributes({ ...mergedProps() })}>`);
|
|
1926
|
+
children?.($$renderer);
|
|
1927
|
+
$$renderer.push(`<!----></button>`);
|
|
1928
|
+
}
|
|
1929
|
+
$$renderer.push(`<!--]-->`);
|
|
1930
|
+
}});
|
|
1931
|
+
bind_props($$props, { ref });
|
|
1932
|
+
});
|
|
1933
|
+
}
|
|
1934
|
+
//#endregion
|
|
1935
|
+
//#region src/lib/components/ui/dropdown-menu/dropdown-menu-portal.svelte
|
|
1936
|
+
function Dropdown_menu_portal($$renderer, $$props) {
|
|
1937
|
+
let { $$slots, $$events, ...restProps } = $$props;
|
|
1938
|
+
if (Portal) {
|
|
1939
|
+
$$renderer.push("<!--[-->");
|
|
1940
|
+
Portal($$renderer, spread_props([restProps]));
|
|
1941
|
+
$$renderer.push("<!--]-->");
|
|
1942
|
+
} else {
|
|
1943
|
+
$$renderer.push("<!--[!-->");
|
|
1944
|
+
$$renderer.push("<!--]-->");
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
//#endregion
|
|
1948
|
+
//#region src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte
|
|
1949
|
+
function Dropdown_menu_content($$renderer, $$props) {
|
|
1950
|
+
$$renderer.component(($$renderer) => {
|
|
1951
|
+
let { ref = null, sideOffset = 4, align = "start", portalProps, class: className, $$slots, $$events, ...restProps } = $$props;
|
|
1952
|
+
let $$settled = true;
|
|
1953
|
+
let $$inner_renderer;
|
|
1954
|
+
function $$render_inner($$renderer) {
|
|
1955
|
+
Dropdown_menu_portal($$renderer, spread_props([portalProps, {
|
|
1956
|
+
children: ($$renderer) => {
|
|
1957
|
+
if (Dropdown_menu_content$1) {
|
|
1958
|
+
$$renderer.push("<!--[-->");
|
|
1959
|
+
Dropdown_menu_content$1($$renderer, spread_props([
|
|
1960
|
+
{
|
|
1961
|
+
"data-slot": "dropdown-menu-content",
|
|
1962
|
+
sideOffset,
|
|
1963
|
+
align,
|
|
1964
|
+
class: cn("z-50 max-h-(--bits-dropdown-menu-content-available-height) w-(--bits-dropdown-menu-anchor-width) min-w-48 origin-(--bits-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-3xl bg-popover p-1.5 text-popover-foreground shadow-lg ring-1 ring-foreground/5 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95", className)
|
|
1965
|
+
},
|
|
1966
|
+
restProps,
|
|
1967
|
+
{
|
|
1968
|
+
get ref() {
|
|
1969
|
+
return ref;
|
|
1970
|
+
},
|
|
1971
|
+
set ref($$value) {
|
|
1972
|
+
ref = $$value;
|
|
1973
|
+
$$settled = false;
|
|
1974
|
+
}
|
|
1975
|
+
}
|
|
1976
|
+
]));
|
|
1977
|
+
$$renderer.push("<!--]-->");
|
|
1978
|
+
} else {
|
|
1979
|
+
$$renderer.push("<!--[!-->");
|
|
1980
|
+
$$renderer.push("<!--]-->");
|
|
1981
|
+
}
|
|
1982
|
+
},
|
|
1983
|
+
$$slots: { default: true }
|
|
1984
|
+
}]));
|
|
1985
|
+
}
|
|
1986
|
+
do {
|
|
1987
|
+
$$settled = true;
|
|
1988
|
+
$$inner_renderer = $$renderer.copy();
|
|
1989
|
+
$$render_inner($$inner_renderer);
|
|
1990
|
+
} while (!$$settled);
|
|
1991
|
+
$$renderer.subsume($$inner_renderer);
|
|
1992
|
+
bind_props($$props, { ref });
|
|
1993
|
+
});
|
|
1994
|
+
}
|
|
1995
|
+
//#endregion
|
|
1996
|
+
//#region src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte
|
|
1997
|
+
function Dropdown_menu_item($$renderer, $$props) {
|
|
1998
|
+
$$renderer.component(($$renderer) => {
|
|
1999
|
+
let { ref = null, class: className, inset, variant = "default", $$slots, $$events, ...restProps } = $$props;
|
|
2000
|
+
let $$settled = true;
|
|
2001
|
+
let $$inner_renderer;
|
|
2002
|
+
function $$render_inner($$renderer) {
|
|
2003
|
+
if (Menu_item) {
|
|
2004
|
+
$$renderer.push("<!--[-->");
|
|
2005
|
+
Menu_item($$renderer, spread_props([
|
|
2006
|
+
{
|
|
2007
|
+
"data-slot": "dropdown-menu-item",
|
|
2008
|
+
"data-inset": inset,
|
|
2009
|
+
"data-variant": variant,
|
|
2010
|
+
class: cn("group/dropdown-menu-item relative flex cursor-default items-center gap-2.5 rounded-2xl px-3 py-2 text-sm font-medium outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-9.5 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive", className)
|
|
2011
|
+
},
|
|
2012
|
+
restProps,
|
|
2013
|
+
{
|
|
2014
|
+
get ref() {
|
|
2015
|
+
return ref;
|
|
2016
|
+
},
|
|
2017
|
+
set ref($$value) {
|
|
2018
|
+
ref = $$value;
|
|
2019
|
+
$$settled = false;
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
]));
|
|
2023
|
+
$$renderer.push("<!--]-->");
|
|
2024
|
+
} else {
|
|
2025
|
+
$$renderer.push("<!--[!-->");
|
|
2026
|
+
$$renderer.push("<!--]-->");
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
do {
|
|
2030
|
+
$$settled = true;
|
|
2031
|
+
$$inner_renderer = $$renderer.copy();
|
|
2032
|
+
$$render_inner($$inner_renderer);
|
|
2033
|
+
} while (!$$settled);
|
|
2034
|
+
$$renderer.subsume($$inner_renderer);
|
|
2035
|
+
bind_props($$props, { ref });
|
|
2036
|
+
});
|
|
2037
|
+
}
|
|
2038
|
+
//#endregion
|
|
2039
|
+
//#region src/lib/components/ui/dropdown-menu/dropdown-menu-label.svelte
|
|
2040
|
+
function Dropdown_menu_label($$renderer, $$props) {
|
|
2041
|
+
$$renderer.component(($$renderer) => {
|
|
2042
|
+
let { ref = null, class: className, inset, children, $$slots, $$events, ...restProps } = $$props;
|
|
2043
|
+
$$renderer.push(`<div${attributes({
|
|
2044
|
+
"data-slot": "dropdown-menu-label",
|
|
2045
|
+
"data-inset": inset,
|
|
2046
|
+
class: clsx(cn("px-3 py-2.5 text-xs text-muted-foreground data-inset:pl-9.5", className)),
|
|
2047
|
+
...restProps
|
|
2048
|
+
})}>`);
|
|
2049
|
+
children?.($$renderer);
|
|
2050
|
+
$$renderer.push(`<!----></div>`);
|
|
2051
|
+
bind_props($$props, { ref });
|
|
2052
|
+
});
|
|
2053
|
+
}
|
|
2054
|
+
//#endregion
|
|
2055
|
+
//#region src/lib/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte
|
|
2056
|
+
function Dropdown_menu_radio_group($$renderer, $$props) {
|
|
2057
|
+
$$renderer.component(($$renderer) => {
|
|
2058
|
+
let { ref = null, value = void 0, $$slots, $$events, ...restProps } = $$props;
|
|
2059
|
+
let $$settled = true;
|
|
2060
|
+
let $$inner_renderer;
|
|
2061
|
+
function $$render_inner($$renderer) {
|
|
2062
|
+
if (Menu_radio_group) {
|
|
2063
|
+
$$renderer.push("<!--[-->");
|
|
2064
|
+
Menu_radio_group($$renderer, spread_props([
|
|
2065
|
+
{ "data-slot": "dropdown-menu-radio-group" },
|
|
2066
|
+
restProps,
|
|
2067
|
+
{
|
|
2068
|
+
get ref() {
|
|
2069
|
+
return ref;
|
|
2070
|
+
},
|
|
2071
|
+
set ref($$value) {
|
|
2072
|
+
ref = $$value;
|
|
2073
|
+
$$settled = false;
|
|
2074
|
+
},
|
|
2075
|
+
get value() {
|
|
2076
|
+
return value;
|
|
2077
|
+
},
|
|
2078
|
+
set value($$value) {
|
|
2079
|
+
value = $$value;
|
|
2080
|
+
$$settled = false;
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
]));
|
|
2084
|
+
$$renderer.push("<!--]-->");
|
|
2085
|
+
} else {
|
|
2086
|
+
$$renderer.push("<!--[!-->");
|
|
2087
|
+
$$renderer.push("<!--]-->");
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
do {
|
|
2091
|
+
$$settled = true;
|
|
2092
|
+
$$inner_renderer = $$renderer.copy();
|
|
2093
|
+
$$render_inner($$inner_renderer);
|
|
2094
|
+
} while (!$$settled);
|
|
2095
|
+
$$renderer.subsume($$inner_renderer);
|
|
2096
|
+
bind_props($$props, {
|
|
2097
|
+
ref,
|
|
2098
|
+
value
|
|
2099
|
+
});
|
|
2100
|
+
});
|
|
2101
|
+
}
|
|
2102
|
+
//#endregion
|
|
2103
|
+
//#region src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte
|
|
2104
|
+
function Dropdown_menu_radio_item($$renderer, $$props) {
|
|
2105
|
+
$$renderer.component(($$renderer) => {
|
|
2106
|
+
let { ref = null, class: className, children: childrenProp, $$slots, $$events, ...restProps } = $$props;
|
|
2107
|
+
let $$settled = true;
|
|
2108
|
+
let $$inner_renderer;
|
|
2109
|
+
function $$render_inner($$renderer) {
|
|
2110
|
+
{
|
|
2111
|
+
function children($$renderer, { checked }) {
|
|
2112
|
+
$$renderer.push(`<span class="pointer-events-none absolute right-2 flex items-center justify-center" data-slot="dropdown-menu-radio-item-indicator">`);
|
|
2113
|
+
if (checked) {
|
|
2114
|
+
$$renderer.push("<!--[0-->");
|
|
2115
|
+
Check($$renderer, {});
|
|
2116
|
+
} else $$renderer.push("<!--[-1-->");
|
|
2117
|
+
$$renderer.push(`<!--]--></span> `);
|
|
2118
|
+
childrenProp?.($$renderer, { checked });
|
|
2119
|
+
$$renderer.push(`<!---->`);
|
|
2120
|
+
}
|
|
2121
|
+
if (Menu_radio_item) {
|
|
2122
|
+
$$renderer.push("<!--[-->");
|
|
2123
|
+
Menu_radio_item($$renderer, spread_props([
|
|
2124
|
+
{
|
|
2125
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
2126
|
+
class: cn("relative flex cursor-default items-center gap-2.5 rounded-2xl py-2 pr-8 pl-3 text-sm font-medium outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-9.5 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className)
|
|
2127
|
+
},
|
|
2128
|
+
restProps,
|
|
2129
|
+
{
|
|
2130
|
+
get ref() {
|
|
2131
|
+
return ref;
|
|
2132
|
+
},
|
|
2133
|
+
set ref($$value) {
|
|
2134
|
+
ref = $$value;
|
|
2135
|
+
$$settled = false;
|
|
2136
|
+
},
|
|
2137
|
+
children,
|
|
2138
|
+
$$slots: { default: true }
|
|
2139
|
+
}
|
|
2140
|
+
]));
|
|
2141
|
+
$$renderer.push("<!--]-->");
|
|
2142
|
+
} else {
|
|
2143
|
+
$$renderer.push("<!--[!-->");
|
|
2144
|
+
$$renderer.push("<!--]-->");
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
do {
|
|
2149
|
+
$$settled = true;
|
|
2150
|
+
$$inner_renderer = $$renderer.copy();
|
|
2151
|
+
$$render_inner($$inner_renderer);
|
|
2152
|
+
} while (!$$settled);
|
|
2153
|
+
$$renderer.subsume($$inner_renderer);
|
|
2154
|
+
bind_props($$props, { ref });
|
|
2155
|
+
});
|
|
2156
|
+
}
|
|
2157
|
+
//#endregion
|
|
2158
|
+
//#region src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte
|
|
2159
|
+
function Dropdown_menu_separator($$renderer, $$props) {
|
|
2160
|
+
$$renderer.component(($$renderer) => {
|
|
2161
|
+
let { ref = null, class: className, $$slots, $$events, ...restProps } = $$props;
|
|
2162
|
+
let $$settled = true;
|
|
2163
|
+
let $$inner_renderer;
|
|
2164
|
+
function $$render_inner($$renderer) {
|
|
2165
|
+
if (Menu_separator) {
|
|
2166
|
+
$$renderer.push("<!--[-->");
|
|
2167
|
+
Menu_separator($$renderer, spread_props([
|
|
2168
|
+
{
|
|
2169
|
+
"data-slot": "dropdown-menu-separator",
|
|
2170
|
+
class: cn("-mx-1.5 my-1.5 h-px bg-border/50", className)
|
|
2171
|
+
},
|
|
2172
|
+
restProps,
|
|
2173
|
+
{
|
|
2174
|
+
get ref() {
|
|
2175
|
+
return ref;
|
|
2176
|
+
},
|
|
2177
|
+
set ref($$value) {
|
|
2178
|
+
ref = $$value;
|
|
2179
|
+
$$settled = false;
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
]));
|
|
2183
|
+
$$renderer.push("<!--]-->");
|
|
2184
|
+
} else {
|
|
2185
|
+
$$renderer.push("<!--[!-->");
|
|
2186
|
+
$$renderer.push("<!--]-->");
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
do {
|
|
2190
|
+
$$settled = true;
|
|
2191
|
+
$$inner_renderer = $$renderer.copy();
|
|
2192
|
+
$$render_inner($$inner_renderer);
|
|
2193
|
+
} while (!$$settled);
|
|
2194
|
+
$$renderer.subsume($$inner_renderer);
|
|
2195
|
+
bind_props($$props, { ref });
|
|
2196
|
+
});
|
|
2197
|
+
}
|
|
2198
|
+
//#endregion
|
|
2199
|
+
//#region src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte
|
|
2200
|
+
function Dropdown_menu_sub_content($$renderer, $$props) {
|
|
2201
|
+
$$renderer.component(($$renderer) => {
|
|
2202
|
+
let { ref = null, class: className, $$slots, $$events, ...restProps } = $$props;
|
|
2203
|
+
let $$settled = true;
|
|
2204
|
+
let $$inner_renderer;
|
|
2205
|
+
function $$render_inner($$renderer) {
|
|
2206
|
+
if (Menu_sub_content) {
|
|
2207
|
+
$$renderer.push("<!--[-->");
|
|
2208
|
+
Menu_sub_content($$renderer, spread_props([
|
|
2209
|
+
{
|
|
2210
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
2211
|
+
class: cn("z-50 min-w-36 origin-(--bits-dropdown-menu-content-transform-origin) overflow-hidden rounded-3xl bg-popover p-1.5 text-popover-foreground shadow-lg ring-1 ring-foreground/5 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className)
|
|
2212
|
+
},
|
|
2213
|
+
restProps,
|
|
2214
|
+
{
|
|
2215
|
+
get ref() {
|
|
2216
|
+
return ref;
|
|
2217
|
+
},
|
|
2218
|
+
set ref($$value) {
|
|
2219
|
+
ref = $$value;
|
|
2220
|
+
$$settled = false;
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
]));
|
|
2224
|
+
$$renderer.push("<!--]-->");
|
|
2225
|
+
} else {
|
|
2226
|
+
$$renderer.push("<!--[!-->");
|
|
2227
|
+
$$renderer.push("<!--]-->");
|
|
2228
|
+
}
|
|
2229
|
+
}
|
|
2230
|
+
do {
|
|
2231
|
+
$$settled = true;
|
|
2232
|
+
$$inner_renderer = $$renderer.copy();
|
|
2233
|
+
$$render_inner($$inner_renderer);
|
|
2234
|
+
} while (!$$settled);
|
|
2235
|
+
$$renderer.subsume($$inner_renderer);
|
|
2236
|
+
bind_props($$props, { ref });
|
|
2237
|
+
});
|
|
2238
|
+
}
|
|
2239
|
+
//#endregion
|
|
2240
|
+
//#region src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte
|
|
2241
|
+
function Dropdown_menu_sub_trigger($$renderer, $$props) {
|
|
2242
|
+
$$renderer.component(($$renderer) => {
|
|
2243
|
+
let { ref = null, class: className, inset, children, $$slots, $$events, ...restProps } = $$props;
|
|
2244
|
+
let $$settled = true;
|
|
2245
|
+
let $$inner_renderer;
|
|
2246
|
+
function $$render_inner($$renderer) {
|
|
2247
|
+
if (Menu_sub_trigger) {
|
|
2248
|
+
$$renderer.push("<!--[-->");
|
|
2249
|
+
Menu_sub_trigger($$renderer, spread_props([
|
|
2250
|
+
{
|
|
2251
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
2252
|
+
"data-inset": inset,
|
|
2253
|
+
class: cn("flex cursor-default items-center gap-2 rounded-2xl px-3 py-2 text-sm font-medium outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-9.5 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className)
|
|
2254
|
+
},
|
|
2255
|
+
restProps,
|
|
2256
|
+
{
|
|
2257
|
+
get ref() {
|
|
2258
|
+
return ref;
|
|
2259
|
+
},
|
|
2260
|
+
set ref($$value) {
|
|
2261
|
+
ref = $$value;
|
|
2262
|
+
$$settled = false;
|
|
2263
|
+
},
|
|
2264
|
+
children: ($$renderer) => {
|
|
2265
|
+
children?.($$renderer);
|
|
2266
|
+
$$renderer.push(`<!----> `);
|
|
2267
|
+
Chevron_right($$renderer, { class: "cn-rtl-flip ml-auto" });
|
|
2268
|
+
$$renderer.push(`<!---->`);
|
|
2269
|
+
},
|
|
2270
|
+
$$slots: { default: true }
|
|
2271
|
+
}
|
|
2272
|
+
]));
|
|
2273
|
+
$$renderer.push("<!--]-->");
|
|
2274
|
+
} else {
|
|
2275
|
+
$$renderer.push("<!--[!-->");
|
|
2276
|
+
$$renderer.push("<!--]-->");
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
do {
|
|
2280
|
+
$$settled = true;
|
|
2281
|
+
$$inner_renderer = $$renderer.copy();
|
|
2282
|
+
$$render_inner($$inner_renderer);
|
|
2283
|
+
} while (!$$settled);
|
|
2284
|
+
$$renderer.subsume($$inner_renderer);
|
|
2285
|
+
bind_props($$props, { ref });
|
|
2286
|
+
});
|
|
2287
|
+
}
|
|
2288
|
+
//#endregion
|
|
2289
|
+
//#region src/lib/components/ui/dropdown-menu/dropdown-menu-sub.svelte
|
|
2290
|
+
function Dropdown_menu_sub($$renderer, $$props) {
|
|
2291
|
+
$$renderer.component(($$renderer) => {
|
|
2292
|
+
let { open = false, $$slots, $$events, ...restProps } = $$props;
|
|
2293
|
+
let $$settled = true;
|
|
2294
|
+
let $$inner_renderer;
|
|
2295
|
+
function $$render_inner($$renderer) {
|
|
2296
|
+
if (Menu_sub) {
|
|
2297
|
+
$$renderer.push("<!--[-->");
|
|
2298
|
+
Menu_sub($$renderer, spread_props([restProps, {
|
|
2299
|
+
get open() {
|
|
2300
|
+
return open;
|
|
2301
|
+
},
|
|
2302
|
+
set open($$value) {
|
|
2303
|
+
open = $$value;
|
|
2304
|
+
$$settled = false;
|
|
2305
|
+
}
|
|
2306
|
+
}]));
|
|
2307
|
+
$$renderer.push("<!--]-->");
|
|
2308
|
+
} else {
|
|
2309
|
+
$$renderer.push("<!--[!-->");
|
|
2310
|
+
$$renderer.push("<!--]-->");
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
do {
|
|
2314
|
+
$$settled = true;
|
|
2315
|
+
$$inner_renderer = $$renderer.copy();
|
|
2316
|
+
$$render_inner($$inner_renderer);
|
|
2317
|
+
} while (!$$settled);
|
|
2318
|
+
$$renderer.subsume($$inner_renderer);
|
|
2319
|
+
bind_props($$props, { open });
|
|
2320
|
+
});
|
|
2321
|
+
}
|
|
2322
|
+
//#endregion
|
|
2323
|
+
//#region src/lib/components/ui/dropdown-menu/dropdown-menu-trigger.svelte
|
|
2324
|
+
function Dropdown_menu_trigger($$renderer, $$props) {
|
|
2325
|
+
$$renderer.component(($$renderer) => {
|
|
2326
|
+
let { ref = null, $$slots, $$events, ...restProps } = $$props;
|
|
2327
|
+
let $$settled = true;
|
|
2328
|
+
let $$inner_renderer;
|
|
2329
|
+
function $$render_inner($$renderer) {
|
|
2330
|
+
if (Menu_trigger) {
|
|
2331
|
+
$$renderer.push("<!--[-->");
|
|
2332
|
+
Menu_trigger($$renderer, spread_props([
|
|
2333
|
+
{ "data-slot": "dropdown-menu-trigger" },
|
|
2334
|
+
restProps,
|
|
2335
|
+
{
|
|
2336
|
+
get ref() {
|
|
2337
|
+
return ref;
|
|
2338
|
+
},
|
|
2339
|
+
set ref($$value) {
|
|
2340
|
+
ref = $$value;
|
|
2341
|
+
$$settled = false;
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
]));
|
|
2345
|
+
$$renderer.push("<!--]-->");
|
|
2346
|
+
} else {
|
|
2347
|
+
$$renderer.push("<!--[!-->");
|
|
2348
|
+
$$renderer.push("<!--]-->");
|
|
2349
|
+
}
|
|
2350
|
+
}
|
|
2351
|
+
do {
|
|
2352
|
+
$$settled = true;
|
|
2353
|
+
$$inner_renderer = $$renderer.copy();
|
|
2354
|
+
$$render_inner($$inner_renderer);
|
|
2355
|
+
} while (!$$settled);
|
|
2356
|
+
$$renderer.subsume($$inner_renderer);
|
|
2357
|
+
bind_props($$props, { ref });
|
|
2358
|
+
});
|
|
2359
|
+
}
|
|
2360
|
+
//#endregion
|
|
2361
|
+
//#region src/lib/components/ui/dropdown-menu/dropdown-menu.svelte
|
|
2362
|
+
function Dropdown_menu($$renderer, $$props) {
|
|
2363
|
+
$$renderer.component(($$renderer) => {
|
|
2364
|
+
let { open = false, $$slots, $$events, ...restProps } = $$props;
|
|
2365
|
+
let $$settled = true;
|
|
2366
|
+
let $$inner_renderer;
|
|
2367
|
+
function $$render_inner($$renderer) {
|
|
2368
|
+
if (Menu) {
|
|
2369
|
+
$$renderer.push("<!--[-->");
|
|
2370
|
+
Menu($$renderer, spread_props([restProps, {
|
|
2371
|
+
get open() {
|
|
2372
|
+
return open;
|
|
2373
|
+
},
|
|
2374
|
+
set open($$value) {
|
|
2375
|
+
open = $$value;
|
|
2376
|
+
$$settled = false;
|
|
2377
|
+
}
|
|
2378
|
+
}]));
|
|
2379
|
+
$$renderer.push("<!--]-->");
|
|
2380
|
+
} else {
|
|
2381
|
+
$$renderer.push("<!--[!-->");
|
|
2382
|
+
$$renderer.push("<!--]-->");
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
do {
|
|
2386
|
+
$$settled = true;
|
|
2387
|
+
$$inner_renderer = $$renderer.copy();
|
|
2388
|
+
$$render_inner($$inner_renderer);
|
|
2389
|
+
} while (!$$settled);
|
|
2390
|
+
$$renderer.subsume($$inner_renderer);
|
|
2391
|
+
bind_props($$props, { open });
|
|
2392
|
+
});
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
export { Dropdown_menu as D, RovingFocusGroup as R, Dropdown_menu_trigger as a, Dropdown_menu_content as b, Dropdown_menu_label as c, Dropdown_menu_separator as d, Dropdown_menu_item as e, Dropdown_menu_sub as f, Dropdown_menu_sub_trigger as g, Dropdown_menu_sub_content as h, Dropdown_menu_radio_group as i, Dropdown_menu_radio_item as j };
|
|
2396
|
+
//# sourceMappingURL=dropdown-menu.js-CnOm2iRl.js.map
|