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,1965 @@
|
|
|
1
|
+
import { d as on } from './internal2.js-BJdu5v6t.js';
|
|
2
|
+
import { ag as bind_props, af as spread_props, aq as ensure_array_like, _ as derived, ai as props_id, aj as attributes, ap as escape_html } 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, w as watch, e as boxWith, C as Context, r as Floating_layer, Q as afterTick, O as DOMContext, P as PresenceManager, a7 as boolToTrueOrUndef, k as createId, q as Portal, K as Popper_layer_force_mount, L as Popper_layer, f as createBitsAttrs, h as attachRef, u as ARROW_DOWN, V as PAGE_UP, H as HOME, x as ARROW_UP, W as PAGE_DOWN, j as boolToEmptyStrOrUndef, g as getDataOpenClosed, N as boolToStr, Y as getFloatingContentCSSVars, i as getDataTransitionAttrs, m as mergeProps, o as boolToStrTrueOrUndef, a8 as executeCallbacks, a9 as Previous, aa as isIOS } from './tooltip.js-0flEKjnb.js';
|
|
6
|
+
import { H as Hidden_input } from './hidden-input.js-3jXOp67_.js';
|
|
7
|
+
import { a as afterSleep } from './after-sleep.js-BBvqb2L4.js';
|
|
8
|
+
import { F as Floating_layer_anchor, S as Separator } from './sidebar.js-B-PyxBE9.js';
|
|
9
|
+
import { C as Chevron_down, D as DOMTypeahead, n as next, p as prev, f as forward, g as backward, h as boxAutoReset, i as getNextMatch } from './dialog.js-CSahHfdK.js';
|
|
10
|
+
import { I as Icon } from './AssistantAvatar.js-CR1xF68O.js';
|
|
11
|
+
import { C as Check } from './check.js-DlXI7kOF.js';
|
|
12
|
+
|
|
13
|
+
//#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/data-typeahead.svelte.js
|
|
14
|
+
var DataTypeahead = class {
|
|
15
|
+
#opts;
|
|
16
|
+
#candidateValues = derived(() => this.#opts.candidateValues());
|
|
17
|
+
#search;
|
|
18
|
+
constructor(opts) {
|
|
19
|
+
this.#opts = opts;
|
|
20
|
+
this.#search = boxAutoReset("", {
|
|
21
|
+
afterMs: 1e3,
|
|
22
|
+
getWindow: this.#opts.getWindow
|
|
23
|
+
});
|
|
24
|
+
this.handleTypeaheadSearch = this.handleTypeaheadSearch.bind(this);
|
|
25
|
+
this.resetTypeahead = this.resetTypeahead.bind(this);
|
|
26
|
+
}
|
|
27
|
+
handleTypeaheadSearch(key) {
|
|
28
|
+
if (!this.#opts.enabled() || !this.#candidateValues().length) return;
|
|
29
|
+
this.#search.current = this.#search.current + key;
|
|
30
|
+
const currentItem = this.#opts.getCurrentItem();
|
|
31
|
+
const currentMatch = this.#candidateValues().find((item) => item === currentItem) ?? "";
|
|
32
|
+
const values = this.#candidateValues().map((item) => item ?? "");
|
|
33
|
+
const nextMatch = getNextMatch(values, this.#search.current, currentMatch);
|
|
34
|
+
const newItem = this.#candidateValues().find((item) => item === nextMatch);
|
|
35
|
+
if (newItem) this.#opts.onMatch(newItem);
|
|
36
|
+
return newItem;
|
|
37
|
+
}
|
|
38
|
+
resetTypeahead() {
|
|
39
|
+
this.#search.current = "";
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
var FIRST_KEYS = [
|
|
43
|
+
ARROW_DOWN,
|
|
44
|
+
PAGE_UP,
|
|
45
|
+
HOME
|
|
46
|
+
];
|
|
47
|
+
var LAST_KEYS = [
|
|
48
|
+
ARROW_UP,
|
|
49
|
+
PAGE_DOWN,
|
|
50
|
+
"End"
|
|
51
|
+
];
|
|
52
|
+
var FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];
|
|
53
|
+
var selectAttrs = createBitsAttrs({
|
|
54
|
+
component: "select",
|
|
55
|
+
parts: [
|
|
56
|
+
"trigger",
|
|
57
|
+
"content",
|
|
58
|
+
"item",
|
|
59
|
+
"viewport",
|
|
60
|
+
"scroll-up-button",
|
|
61
|
+
"scroll-down-button",
|
|
62
|
+
"group",
|
|
63
|
+
"group-label",
|
|
64
|
+
"separator",
|
|
65
|
+
"arrow",
|
|
66
|
+
"input",
|
|
67
|
+
"content-wrapper",
|
|
68
|
+
"item-text",
|
|
69
|
+
"value"
|
|
70
|
+
]
|
|
71
|
+
});
|
|
72
|
+
var SelectRootContext = new Context("Select.Root | Combobox.Root");
|
|
73
|
+
var SelectGroupContext = new Context("Select.Group | Combobox.Group");
|
|
74
|
+
var SelectContentContext = new Context("Select.Content | Combobox.Content");
|
|
75
|
+
var SelectBaseRootState = class {
|
|
76
|
+
opts;
|
|
77
|
+
touchedInput = false;
|
|
78
|
+
inputNode = null;
|
|
79
|
+
contentNode = null;
|
|
80
|
+
contentPresence;
|
|
81
|
+
viewportNode = null;
|
|
82
|
+
triggerNode = null;
|
|
83
|
+
valueNode = null;
|
|
84
|
+
valueId = "";
|
|
85
|
+
highlightedNode = null;
|
|
86
|
+
#highlightedValue = derived(() => {
|
|
87
|
+
if (!this.highlightedNode) return null;
|
|
88
|
+
return this.highlightedNode.getAttribute("data-value");
|
|
89
|
+
});
|
|
90
|
+
get highlightedValue() {
|
|
91
|
+
return this.#highlightedValue();
|
|
92
|
+
}
|
|
93
|
+
set highlightedValue($$value) {
|
|
94
|
+
return this.#highlightedValue($$value);
|
|
95
|
+
}
|
|
96
|
+
#highlightedId = derived(() => {
|
|
97
|
+
if (!this.highlightedNode) return void 0;
|
|
98
|
+
return this.highlightedNode.id;
|
|
99
|
+
});
|
|
100
|
+
get highlightedId() {
|
|
101
|
+
return this.#highlightedId();
|
|
102
|
+
}
|
|
103
|
+
set highlightedId($$value) {
|
|
104
|
+
return this.#highlightedId($$value);
|
|
105
|
+
}
|
|
106
|
+
#highlightedLabel = derived(() => {
|
|
107
|
+
if (!this.highlightedNode) return null;
|
|
108
|
+
return this.highlightedNode.getAttribute("data-label");
|
|
109
|
+
});
|
|
110
|
+
get highlightedLabel() {
|
|
111
|
+
return this.#highlightedLabel();
|
|
112
|
+
}
|
|
113
|
+
set highlightedLabel($$value) {
|
|
114
|
+
return this.#highlightedLabel($$value);
|
|
115
|
+
}
|
|
116
|
+
contentIsPositioned = false;
|
|
117
|
+
isUsingKeyboard = false;
|
|
118
|
+
isCombobox = false;
|
|
119
|
+
domContext = new DOMContext(() => null);
|
|
120
|
+
constructor(opts) {
|
|
121
|
+
this.opts = opts;
|
|
122
|
+
this.isCombobox = opts.isCombobox;
|
|
123
|
+
this.contentPresence = new PresenceManager({
|
|
124
|
+
ref: boxWith(() => this.contentNode),
|
|
125
|
+
open: this.opts.open,
|
|
126
|
+
onComplete: () => {
|
|
127
|
+
this.opts.onOpenChangeComplete.current(this.opts.open.current);
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
setHighlightedNode(node, initial = false) {
|
|
132
|
+
this.highlightedNode = node;
|
|
133
|
+
if (node && (this.isUsingKeyboard || initial)) this.scrollHighlightedNodeIntoView(node);
|
|
134
|
+
}
|
|
135
|
+
scrollHighlightedNodeIntoView(node) {
|
|
136
|
+
if (!this.viewportNode || !this.contentIsPositioned) return;
|
|
137
|
+
node.scrollIntoView({ block: this.opts.scrollAlignment.current });
|
|
138
|
+
}
|
|
139
|
+
getCandidateNodes() {
|
|
140
|
+
const node = this.contentNode;
|
|
141
|
+
if (!node) return [];
|
|
142
|
+
return Array.from(node.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`));
|
|
143
|
+
}
|
|
144
|
+
setHighlightedToFirstCandidate(initial = false) {
|
|
145
|
+
this.setHighlightedNode(null);
|
|
146
|
+
let nodes = this.getCandidateNodes();
|
|
147
|
+
if (!nodes.length) return;
|
|
148
|
+
if (this.viewportNode) {
|
|
149
|
+
const viewportRect = this.viewportNode.getBoundingClientRect();
|
|
150
|
+
nodes = nodes.filter((node) => {
|
|
151
|
+
if (!this.viewportNode) return false;
|
|
152
|
+
const nodeRect = node.getBoundingClientRect();
|
|
153
|
+
return nodeRect.right <= viewportRect.right && nodeRect.left >= viewportRect.left && nodeRect.bottom <= viewportRect.bottom && nodeRect.top >= viewportRect.top;
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
this.setHighlightedNode(nodes[0], initial);
|
|
157
|
+
}
|
|
158
|
+
getNodeByValue(value) {
|
|
159
|
+
return this.getCandidateNodes().find((node) => node.dataset.value === value) ?? null;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Resolves the display label for a value: `items` entry when present, otherwise the
|
|
163
|
+
* mounted item's `data-label` or its text content.
|
|
164
|
+
*/
|
|
165
|
+
getLabelForValue(value) {
|
|
166
|
+
if (value === "") return "";
|
|
167
|
+
const fromItems = this.opts.items.current.find((item) => item.value === value)?.label;
|
|
168
|
+
if (fromItems !== void 0) return fromItems;
|
|
169
|
+
const node = this.getNodeByValue(value);
|
|
170
|
+
if (node) {
|
|
171
|
+
const dataLabel = node.getAttribute("data-label");
|
|
172
|
+
if (dataLabel !== null && dataLabel !== "") return dataLabel;
|
|
173
|
+
return node.textContent?.trim() ?? value;
|
|
174
|
+
}
|
|
175
|
+
return value;
|
|
176
|
+
}
|
|
177
|
+
setOpen(open) {
|
|
178
|
+
this.opts.open.current = open;
|
|
179
|
+
}
|
|
180
|
+
toggleOpen() {
|
|
181
|
+
this.opts.open.current = !this.opts.open.current;
|
|
182
|
+
}
|
|
183
|
+
handleOpen() {
|
|
184
|
+
this.setOpen(true);
|
|
185
|
+
}
|
|
186
|
+
handleClose() {
|
|
187
|
+
this.setHighlightedNode(null);
|
|
188
|
+
this.setOpen(false);
|
|
189
|
+
}
|
|
190
|
+
toggleMenu() {
|
|
191
|
+
this.toggleOpen();
|
|
192
|
+
}
|
|
193
|
+
getBitsAttr = (part) => {
|
|
194
|
+
return selectAttrs.getAttr(part, this.isCombobox ? "combobox" : void 0);
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
var SelectSingleRootState = class extends SelectBaseRootState {
|
|
198
|
+
opts;
|
|
199
|
+
isMulti = false;
|
|
200
|
+
#hasValue = derived(() => this.opts.value.current !== "");
|
|
201
|
+
get hasValue() {
|
|
202
|
+
return this.#hasValue();
|
|
203
|
+
}
|
|
204
|
+
set hasValue($$value) {
|
|
205
|
+
return this.#hasValue($$value);
|
|
206
|
+
}
|
|
207
|
+
#currentLabel = derived(() => {
|
|
208
|
+
if (!this.opts.items.current.length) return "";
|
|
209
|
+
return this.opts.items.current.find((item) => item.value === this.opts.value.current)?.label ?? "";
|
|
210
|
+
});
|
|
211
|
+
get currentLabel() {
|
|
212
|
+
return this.#currentLabel();
|
|
213
|
+
}
|
|
214
|
+
set currentLabel($$value) {
|
|
215
|
+
return this.#currentLabel($$value);
|
|
216
|
+
}
|
|
217
|
+
#candidateLabels = derived(() => {
|
|
218
|
+
if (!this.opts.items.current.length) return [];
|
|
219
|
+
return this.opts.items.current.filter((item) => !item.disabled).map((item) => item.label);
|
|
220
|
+
});
|
|
221
|
+
get candidateLabels() {
|
|
222
|
+
return this.#candidateLabels();
|
|
223
|
+
}
|
|
224
|
+
set candidateLabels($$value) {
|
|
225
|
+
return this.#candidateLabels($$value);
|
|
226
|
+
}
|
|
227
|
+
#dataTypeaheadEnabled = derived(() => {
|
|
228
|
+
if (this.isMulti) return false;
|
|
229
|
+
if (this.opts.items.current.length === 0) return false;
|
|
230
|
+
return true;
|
|
231
|
+
});
|
|
232
|
+
get dataTypeaheadEnabled() {
|
|
233
|
+
return this.#dataTypeaheadEnabled();
|
|
234
|
+
}
|
|
235
|
+
set dataTypeaheadEnabled($$value) {
|
|
236
|
+
return this.#dataTypeaheadEnabled($$value);
|
|
237
|
+
}
|
|
238
|
+
constructor(opts) {
|
|
239
|
+
super(opts);
|
|
240
|
+
this.opts = opts;
|
|
241
|
+
watch(() => this.opts.open.current, () => {
|
|
242
|
+
if (!this.opts.open.current) return;
|
|
243
|
+
this.setInitialHighlightedNode();
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
includesItem(itemValue) {
|
|
247
|
+
return this.opts.value.current === itemValue;
|
|
248
|
+
}
|
|
249
|
+
toggleItem(itemValue, itemLabel = itemValue) {
|
|
250
|
+
const newValue = this.includesItem(itemValue) ? "" : itemValue;
|
|
251
|
+
this.opts.value.current = newValue;
|
|
252
|
+
if (newValue !== "") this.opts.inputValue.current = itemLabel;
|
|
253
|
+
}
|
|
254
|
+
setInitialHighlightedNode() {
|
|
255
|
+
afterTick(() => {
|
|
256
|
+
if (this.highlightedNode && this.domContext.getDocument().contains(this.highlightedNode)) return;
|
|
257
|
+
if (this.opts.value.current !== "") {
|
|
258
|
+
const node = this.getNodeByValue(this.opts.value.current);
|
|
259
|
+
if (node) {
|
|
260
|
+
this.setHighlightedNode(node, true);
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
this.setHighlightedToFirstCandidate(true);
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
var SelectMultipleRootState = class extends SelectBaseRootState {
|
|
269
|
+
opts;
|
|
270
|
+
isMulti = true;
|
|
271
|
+
#hasValue = derived(() => this.opts.value.current.length > 0);
|
|
272
|
+
get hasValue() {
|
|
273
|
+
return this.#hasValue();
|
|
274
|
+
}
|
|
275
|
+
set hasValue($$value) {
|
|
276
|
+
return this.#hasValue($$value);
|
|
277
|
+
}
|
|
278
|
+
#valueSet = derived(() => new Set(this.opts.value.current));
|
|
279
|
+
constructor(opts) {
|
|
280
|
+
super(opts);
|
|
281
|
+
this.opts = opts;
|
|
282
|
+
watch(() => this.opts.open.current, () => {
|
|
283
|
+
if (!this.opts.open.current) return;
|
|
284
|
+
this.setInitialHighlightedNode();
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
includesItem(itemValue) {
|
|
288
|
+
return this.#valueSet().has(itemValue);
|
|
289
|
+
}
|
|
290
|
+
toggleItem(itemValue, itemLabel = itemValue) {
|
|
291
|
+
if (this.includesItem(itemValue)) this.opts.value.current = this.opts.value.current.filter((v) => v !== itemValue);
|
|
292
|
+
else this.opts.value.current = [...this.opts.value.current, itemValue];
|
|
293
|
+
this.opts.inputValue.current = itemLabel;
|
|
294
|
+
}
|
|
295
|
+
setInitialHighlightedNode() {
|
|
296
|
+
afterTick(() => {
|
|
297
|
+
if (!this.domContext) return;
|
|
298
|
+
if (this.highlightedNode && this.domContext.getDocument().contains(this.highlightedNode)) return;
|
|
299
|
+
if (this.opts.value.current.length && this.opts.value.current[0] !== "") {
|
|
300
|
+
const node = this.getNodeByValue(this.opts.value.current[0]);
|
|
301
|
+
if (node) {
|
|
302
|
+
this.setHighlightedNode(node, true);
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
this.setHighlightedToFirstCandidate(true);
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
var SelectRootState = class {
|
|
311
|
+
static create(props) {
|
|
312
|
+
const { type, ...rest } = props;
|
|
313
|
+
const rootState = type === "single" ? new SelectSingleRootState(rest) : new SelectMultipleRootState(rest);
|
|
314
|
+
return SelectRootContext.set(rootState);
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
var SelectTriggerState = class SelectTriggerState {
|
|
318
|
+
static create(opts) {
|
|
319
|
+
return new SelectTriggerState(opts, SelectRootContext.get());
|
|
320
|
+
}
|
|
321
|
+
opts;
|
|
322
|
+
root;
|
|
323
|
+
attachment;
|
|
324
|
+
#domTypeahead;
|
|
325
|
+
#dataTypeahead;
|
|
326
|
+
constructor(opts, root) {
|
|
327
|
+
this.opts = opts;
|
|
328
|
+
this.root = root;
|
|
329
|
+
this.attachment = attachRef(opts.ref, (v) => this.root.triggerNode = v);
|
|
330
|
+
this.root.domContext = new DOMContext(opts.ref);
|
|
331
|
+
this.#domTypeahead = new DOMTypeahead({
|
|
332
|
+
getCurrentItem: () => this.root.highlightedNode,
|
|
333
|
+
onMatch: (node) => {
|
|
334
|
+
this.root.setHighlightedNode(node);
|
|
335
|
+
},
|
|
336
|
+
getActiveElement: () => this.root.domContext.getActiveElement(),
|
|
337
|
+
getWindow: () => this.root.domContext.getWindow()
|
|
338
|
+
});
|
|
339
|
+
this.#dataTypeahead = new DataTypeahead({
|
|
340
|
+
getCurrentItem: () => {
|
|
341
|
+
if (this.root.isMulti) return "";
|
|
342
|
+
return this.root.currentLabel;
|
|
343
|
+
},
|
|
344
|
+
onMatch: (label) => {
|
|
345
|
+
if (this.root.isMulti) return;
|
|
346
|
+
if (!this.root.opts.items.current) return;
|
|
347
|
+
const matchedItem = this.root.opts.items.current.find((item) => item.label === label);
|
|
348
|
+
if (!matchedItem) return;
|
|
349
|
+
this.root.opts.value.current = matchedItem.value;
|
|
350
|
+
},
|
|
351
|
+
enabled: () => !this.root.isMulti && this.root.dataTypeaheadEnabled,
|
|
352
|
+
candidateValues: () => this.root.isMulti ? [] : this.root.candidateLabels,
|
|
353
|
+
getWindow: () => this.root.domContext.getWindow()
|
|
354
|
+
});
|
|
355
|
+
this.onkeydown = this.onkeydown.bind(this);
|
|
356
|
+
this.onpointerdown = this.onpointerdown.bind(this);
|
|
357
|
+
this.onpointerup = this.onpointerup.bind(this);
|
|
358
|
+
this.onclick = this.onclick.bind(this);
|
|
359
|
+
}
|
|
360
|
+
#handleOpen() {
|
|
361
|
+
this.root.opts.open.current = true;
|
|
362
|
+
this.#dataTypeahead.resetTypeahead();
|
|
363
|
+
this.#domTypeahead.resetTypeahead();
|
|
364
|
+
}
|
|
365
|
+
#handlePointerOpen(_) {
|
|
366
|
+
this.#handleOpen();
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Logic used to handle keyboard selection/deselection.
|
|
370
|
+
*
|
|
371
|
+
* If it returns true, it means the item was selected and whatever is calling
|
|
372
|
+
* this function should return early
|
|
373
|
+
*
|
|
374
|
+
*/
|
|
375
|
+
#handleKeyboardSelection() {
|
|
376
|
+
const isCurrentSelectedValue = this.root.highlightedValue === this.root.opts.value.current;
|
|
377
|
+
if (!this.root.opts.allowDeselect.current && isCurrentSelectedValue && !this.root.isMulti) {
|
|
378
|
+
this.root.handleClose();
|
|
379
|
+
return true;
|
|
380
|
+
}
|
|
381
|
+
if (this.root.highlightedValue !== null) this.root.toggleItem(this.root.highlightedValue, this.root.highlightedLabel ?? void 0);
|
|
382
|
+
if (!this.root.isMulti && !isCurrentSelectedValue) {
|
|
383
|
+
this.root.handleClose();
|
|
384
|
+
return true;
|
|
385
|
+
}
|
|
386
|
+
return false;
|
|
387
|
+
}
|
|
388
|
+
onkeydown(e) {
|
|
389
|
+
this.root.isUsingKeyboard = true;
|
|
390
|
+
if (e.key === "ArrowUp" || e.key === "ArrowDown") e.preventDefault();
|
|
391
|
+
if (!this.root.opts.open.current) {
|
|
392
|
+
if (e.key === "Enter" || e.key === " " || e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
393
|
+
e.preventDefault();
|
|
394
|
+
this.root.handleOpen();
|
|
395
|
+
} else if (!this.root.isMulti && this.root.dataTypeaheadEnabled) {
|
|
396
|
+
this.#dataTypeahead.handleTypeaheadSearch(e.key);
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
if (this.root.hasValue) return;
|
|
400
|
+
const candidateNodes = this.root.getCandidateNodes();
|
|
401
|
+
if (!candidateNodes.length) return;
|
|
402
|
+
if (e.key === "ArrowDown") {
|
|
403
|
+
const firstCandidate = candidateNodes[0];
|
|
404
|
+
this.root.setHighlightedNode(firstCandidate);
|
|
405
|
+
} else if (e.key === "ArrowUp") {
|
|
406
|
+
const lastCandidate = candidateNodes[candidateNodes.length - 1];
|
|
407
|
+
this.root.setHighlightedNode(lastCandidate);
|
|
408
|
+
}
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
if (e.key === "Tab") {
|
|
412
|
+
this.root.handleClose();
|
|
413
|
+
return;
|
|
414
|
+
}
|
|
415
|
+
if ((e.key === "Enter" || e.key === " " && this.#domTypeahead.search === "") && !e.isComposing) {
|
|
416
|
+
e.preventDefault();
|
|
417
|
+
if (this.#handleKeyboardSelection()) return;
|
|
418
|
+
}
|
|
419
|
+
if (e.key === "ArrowUp" && e.altKey) this.root.handleClose();
|
|
420
|
+
if (FIRST_LAST_KEYS.includes(e.key)) {
|
|
421
|
+
e.preventDefault();
|
|
422
|
+
const candidateNodes = this.root.getCandidateNodes();
|
|
423
|
+
const currHighlightedNode = this.root.highlightedNode;
|
|
424
|
+
const currIndex = currHighlightedNode ? candidateNodes.indexOf(currHighlightedNode) : -1;
|
|
425
|
+
const loop = this.root.opts.loop.current;
|
|
426
|
+
let nextItem;
|
|
427
|
+
if (e.key === "ArrowDown") nextItem = next(candidateNodes, currIndex, loop);
|
|
428
|
+
else if (e.key === "ArrowUp") nextItem = prev(candidateNodes, currIndex, loop);
|
|
429
|
+
else if (e.key === "PageDown") nextItem = forward(candidateNodes, currIndex, 10, loop);
|
|
430
|
+
else if (e.key === "PageUp") nextItem = backward(candidateNodes, currIndex, 10, loop);
|
|
431
|
+
else if (e.key === "Home") nextItem = candidateNodes[0];
|
|
432
|
+
else if (e.key === "End") nextItem = candidateNodes[candidateNodes.length - 1];
|
|
433
|
+
if (!nextItem) return;
|
|
434
|
+
this.root.setHighlightedNode(nextItem);
|
|
435
|
+
return;
|
|
436
|
+
}
|
|
437
|
+
const isModifierKey = e.ctrlKey || e.altKey || e.metaKey;
|
|
438
|
+
const isCharacterKey = e.key.length === 1;
|
|
439
|
+
const isSpaceKey = e.key === " ";
|
|
440
|
+
const candidateNodes = this.root.getCandidateNodes();
|
|
441
|
+
if (e.key === "Tab") return;
|
|
442
|
+
if (!isModifierKey && (isCharacterKey || isSpaceKey)) {
|
|
443
|
+
if (!this.#domTypeahead.handleTypeaheadSearch(e.key, candidateNodes) && isSpaceKey) {
|
|
444
|
+
e.preventDefault();
|
|
445
|
+
this.#handleKeyboardSelection();
|
|
446
|
+
}
|
|
447
|
+
return;
|
|
448
|
+
}
|
|
449
|
+
if (!this.root.highlightedNode) this.root.setHighlightedToFirstCandidate();
|
|
450
|
+
}
|
|
451
|
+
onclick(e) {
|
|
452
|
+
e.currentTarget.focus();
|
|
453
|
+
}
|
|
454
|
+
onpointerdown(e) {
|
|
455
|
+
if (this.root.opts.disabled.current) return;
|
|
456
|
+
if (e.pointerType === "touch") return e.preventDefault();
|
|
457
|
+
const target = e.target;
|
|
458
|
+
if (target?.hasPointerCapture(e.pointerId)) target?.releasePointerCapture(e.pointerId);
|
|
459
|
+
if (e.button === 0 && e.ctrlKey === false) {
|
|
460
|
+
if (this.root.opts.open.current === false) this.#handlePointerOpen(e);
|
|
461
|
+
else this.root.handleClose();
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
onpointerup(e) {
|
|
465
|
+
if (this.root.opts.disabled.current) return;
|
|
466
|
+
e.preventDefault();
|
|
467
|
+
if (e.pointerType === "touch") {
|
|
468
|
+
if (this.root.opts.open.current === false) this.#handlePointerOpen(e);
|
|
469
|
+
else this.root.handleClose();
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
#props = derived(() => ({
|
|
473
|
+
id: this.opts.id.current,
|
|
474
|
+
disabled: this.root.opts.disabled.current ? true : void 0,
|
|
475
|
+
"aria-haspopup": "listbox",
|
|
476
|
+
"aria-expanded": boolToStr(this.root.opts.open.current),
|
|
477
|
+
"aria-activedescendant": this.root.highlightedId,
|
|
478
|
+
"data-state": getDataOpenClosed(this.root.opts.open.current),
|
|
479
|
+
"data-disabled": boolToEmptyStrOrUndef(this.root.opts.disabled.current),
|
|
480
|
+
"data-placeholder": this.root.hasValue ? void 0 : "",
|
|
481
|
+
[this.root.getBitsAttr("trigger")]: "",
|
|
482
|
+
onpointerdown: this.onpointerdown,
|
|
483
|
+
onkeydown: this.onkeydown,
|
|
484
|
+
onclick: this.onclick,
|
|
485
|
+
onpointerup: this.onpointerup,
|
|
486
|
+
...this.attachment
|
|
487
|
+
}));
|
|
488
|
+
get props() {
|
|
489
|
+
return this.#props();
|
|
490
|
+
}
|
|
491
|
+
set props($$value) {
|
|
492
|
+
return this.#props($$value);
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
var SelectContentState = class SelectContentState {
|
|
496
|
+
static create(opts) {
|
|
497
|
+
return SelectContentContext.set(new SelectContentState(opts, SelectRootContext.get()));
|
|
498
|
+
}
|
|
499
|
+
opts;
|
|
500
|
+
root;
|
|
501
|
+
attachment;
|
|
502
|
+
isPositioned = false;
|
|
503
|
+
userHasScrolled = false;
|
|
504
|
+
domContext;
|
|
505
|
+
constructor(opts, root) {
|
|
506
|
+
this.opts = opts;
|
|
507
|
+
this.root = root;
|
|
508
|
+
this.attachment = attachRef(opts.ref, (v) => this.root.contentNode = v);
|
|
509
|
+
this.domContext = new DOMContext(this.opts.ref);
|
|
510
|
+
if (this.root.domContext === null) this.root.domContext = this.domContext;
|
|
511
|
+
watch(() => this.root.opts.open.current, () => {
|
|
512
|
+
if (this.root.opts.open.current) return;
|
|
513
|
+
this.root.contentIsPositioned = false;
|
|
514
|
+
this.isPositioned = false;
|
|
515
|
+
this.userHasScrolled = false;
|
|
516
|
+
});
|
|
517
|
+
watch([() => this.isPositioned, () => this.root.highlightedNode], () => {
|
|
518
|
+
if (!this.isPositioned || !this.root.highlightedNode) return;
|
|
519
|
+
this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode);
|
|
520
|
+
});
|
|
521
|
+
this.onpointermove = this.onpointermove.bind(this);
|
|
522
|
+
}
|
|
523
|
+
onpointermove(_) {
|
|
524
|
+
this.root.isUsingKeyboard = false;
|
|
525
|
+
}
|
|
526
|
+
#styles = derived(() => {
|
|
527
|
+
return getFloatingContentCSSVars(this.root.isCombobox ? "combobox" : "select");
|
|
528
|
+
});
|
|
529
|
+
onInteractOutside = (e) => {
|
|
530
|
+
if (e.target === this.root.triggerNode || e.target === this.root.inputNode) {
|
|
531
|
+
e.preventDefault();
|
|
532
|
+
return;
|
|
533
|
+
}
|
|
534
|
+
this.opts.onInteractOutside.current(e);
|
|
535
|
+
if (e.defaultPrevented) return;
|
|
536
|
+
this.root.handleClose();
|
|
537
|
+
};
|
|
538
|
+
onEscapeKeydown = (e) => {
|
|
539
|
+
this.opts.onEscapeKeydown.current(e);
|
|
540
|
+
if (e.defaultPrevented) return;
|
|
541
|
+
this.root.handleClose();
|
|
542
|
+
};
|
|
543
|
+
onOpenAutoFocus = (e) => {
|
|
544
|
+
e.preventDefault();
|
|
545
|
+
};
|
|
546
|
+
onCloseAutoFocus = (e) => {
|
|
547
|
+
e.preventDefault();
|
|
548
|
+
};
|
|
549
|
+
get shouldRender() {
|
|
550
|
+
return this.root.contentPresence.shouldRender;
|
|
551
|
+
}
|
|
552
|
+
#snippetProps = derived(() => ({ open: this.root.opts.open.current }));
|
|
553
|
+
get snippetProps() {
|
|
554
|
+
return this.#snippetProps();
|
|
555
|
+
}
|
|
556
|
+
set snippetProps($$value) {
|
|
557
|
+
return this.#snippetProps($$value);
|
|
558
|
+
}
|
|
559
|
+
#props = derived(() => ({
|
|
560
|
+
id: this.opts.id.current,
|
|
561
|
+
role: "listbox",
|
|
562
|
+
"aria-multiselectable": this.root.isMulti ? "true" : void 0,
|
|
563
|
+
"data-state": getDataOpenClosed(this.root.opts.open.current),
|
|
564
|
+
...getDataTransitionAttrs(this.root.contentPresence.transitionStatus),
|
|
565
|
+
[this.root.getBitsAttr("content")]: "",
|
|
566
|
+
style: {
|
|
567
|
+
display: "flex",
|
|
568
|
+
flexDirection: "column",
|
|
569
|
+
outline: "none",
|
|
570
|
+
boxSizing: "border-box",
|
|
571
|
+
pointerEvents: "auto",
|
|
572
|
+
...this.#styles()
|
|
573
|
+
},
|
|
574
|
+
onpointermove: this.onpointermove,
|
|
575
|
+
...this.attachment
|
|
576
|
+
}));
|
|
577
|
+
get props() {
|
|
578
|
+
return this.#props();
|
|
579
|
+
}
|
|
580
|
+
set props($$value) {
|
|
581
|
+
return this.#props($$value);
|
|
582
|
+
}
|
|
583
|
+
popperProps = {
|
|
584
|
+
onInteractOutside: this.onInteractOutside,
|
|
585
|
+
onEscapeKeydown: this.onEscapeKeydown,
|
|
586
|
+
onOpenAutoFocus: this.onOpenAutoFocus,
|
|
587
|
+
onCloseAutoFocus: this.onCloseAutoFocus,
|
|
588
|
+
trapFocus: false,
|
|
589
|
+
loop: false,
|
|
590
|
+
onPlaced: () => {
|
|
591
|
+
if (this.root.opts.open.current) {
|
|
592
|
+
this.root.contentIsPositioned = true;
|
|
593
|
+
this.isPositioned = true;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
var SelectItemState = class SelectItemState {
|
|
599
|
+
static create(opts) {
|
|
600
|
+
return new SelectItemState(opts, SelectRootContext.get());
|
|
601
|
+
}
|
|
602
|
+
opts;
|
|
603
|
+
root;
|
|
604
|
+
attachment;
|
|
605
|
+
#isSelected = derived(() => this.root.includesItem(this.opts.value.current));
|
|
606
|
+
get isSelected() {
|
|
607
|
+
return this.#isSelected();
|
|
608
|
+
}
|
|
609
|
+
set isSelected($$value) {
|
|
610
|
+
return this.#isSelected($$value);
|
|
611
|
+
}
|
|
612
|
+
#isHighlighted = derived(() => this.root.highlightedValue === this.opts.value.current);
|
|
613
|
+
get isHighlighted() {
|
|
614
|
+
return this.#isHighlighted();
|
|
615
|
+
}
|
|
616
|
+
set isHighlighted($$value) {
|
|
617
|
+
return this.#isHighlighted($$value);
|
|
618
|
+
}
|
|
619
|
+
#isHighlightedAndEnabled = derived(() => this.isHighlighted && !this.opts.disabled.current);
|
|
620
|
+
prevHighlighted = new Previous(() => this.isHighlighted);
|
|
621
|
+
mounted = false;
|
|
622
|
+
constructor(opts, root) {
|
|
623
|
+
this.opts = opts;
|
|
624
|
+
this.root = root;
|
|
625
|
+
this.attachment = attachRef(opts.ref);
|
|
626
|
+
watch([() => this.isHighlighted, () => this.prevHighlighted.current], () => {
|
|
627
|
+
if (this.isHighlighted) this.opts.onHighlight.current();
|
|
628
|
+
else if (this.prevHighlighted.current) this.opts.onUnhighlight.current();
|
|
629
|
+
});
|
|
630
|
+
watch(() => this.mounted, () => {
|
|
631
|
+
if (!this.mounted) return;
|
|
632
|
+
this.root.setInitialHighlightedNode();
|
|
633
|
+
});
|
|
634
|
+
this.onpointerdown = this.onpointerdown.bind(this);
|
|
635
|
+
this.onpointerup = this.onpointerup.bind(this);
|
|
636
|
+
this.onpointermove = this.onpointermove.bind(this);
|
|
637
|
+
}
|
|
638
|
+
handleSelect() {
|
|
639
|
+
if (this.opts.disabled.current) return;
|
|
640
|
+
const isCurrentSelectedValue = this.opts.value.current === this.root.opts.value.current;
|
|
641
|
+
if (!this.root.opts.allowDeselect.current && isCurrentSelectedValue && !this.root.isMulti) {
|
|
642
|
+
this.root.handleClose();
|
|
643
|
+
return;
|
|
644
|
+
}
|
|
645
|
+
this.root.toggleItem(this.opts.value.current, this.opts.label.current);
|
|
646
|
+
if (!this.root.isMulti && !isCurrentSelectedValue) this.root.handleClose();
|
|
647
|
+
}
|
|
648
|
+
#snippetProps = derived(() => ({
|
|
649
|
+
selected: this.isSelected,
|
|
650
|
+
highlighted: this.isHighlighted
|
|
651
|
+
}));
|
|
652
|
+
get snippetProps() {
|
|
653
|
+
return this.#snippetProps();
|
|
654
|
+
}
|
|
655
|
+
set snippetProps($$value) {
|
|
656
|
+
return this.#snippetProps($$value);
|
|
657
|
+
}
|
|
658
|
+
onpointerdown(e) {
|
|
659
|
+
e.preventDefault();
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* Using `pointerup` instead of `click` allows power users to pointerdown
|
|
663
|
+
* the trigger, then release pointerup on an item to select it vs having to do
|
|
664
|
+
* multiple clicks.
|
|
665
|
+
*/
|
|
666
|
+
onpointerup(e) {
|
|
667
|
+
if (e.defaultPrevented || !this.opts.ref.current) return;
|
|
668
|
+
/**
|
|
669
|
+
* For one reason or another, when it's a touch pointer and _not_ on IOS,
|
|
670
|
+
* we need to listen for the immediate click event to handle the selection,
|
|
671
|
+
* otherwise a click event will fire on the element _behind_ the item.
|
|
672
|
+
*/
|
|
673
|
+
if (e.pointerType === "touch" && !isIOS) {
|
|
674
|
+
on(this.opts.ref.current, "click", () => {
|
|
675
|
+
this.handleSelect();
|
|
676
|
+
this.root.setHighlightedNode(this.opts.ref.current);
|
|
677
|
+
}, { once: true });
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
e.preventDefault();
|
|
681
|
+
this.handleSelect();
|
|
682
|
+
if (e.pointerType === "touch") this.root.setHighlightedNode(this.opts.ref.current);
|
|
683
|
+
}
|
|
684
|
+
onpointermove(e) {
|
|
685
|
+
/**
|
|
686
|
+
* We don't want to highlight items on touch devices when scrolling,
|
|
687
|
+
* as this is confusing behavior, so we return here and instead handle
|
|
688
|
+
* the highlighting on the `pointerup` (or following `click`) event for
|
|
689
|
+
* touch devices only.
|
|
690
|
+
*/
|
|
691
|
+
if (e.pointerType === "touch") return;
|
|
692
|
+
if (this.root.highlightedNode !== this.opts.ref.current) this.root.setHighlightedNode(this.opts.ref.current);
|
|
693
|
+
}
|
|
694
|
+
#props = derived(() => ({
|
|
695
|
+
id: this.opts.id.current,
|
|
696
|
+
role: "option",
|
|
697
|
+
"aria-selected": this.isSelected ? "true" : void 0,
|
|
698
|
+
"data-value": this.opts.value.current,
|
|
699
|
+
"data-disabled": boolToEmptyStrOrUndef(this.opts.disabled.current),
|
|
700
|
+
"data-highlighted": boolToEmptyStrOrUndef(this.#isHighlightedAndEnabled()),
|
|
701
|
+
"data-selected": boolToEmptyStrOrUndef(this.isSelected),
|
|
702
|
+
"data-label": this.opts.label.current,
|
|
703
|
+
[this.root.getBitsAttr("item")]: "",
|
|
704
|
+
onpointermove: this.onpointermove,
|
|
705
|
+
onpointerdown: this.onpointerdown,
|
|
706
|
+
onpointerup: this.onpointerup,
|
|
707
|
+
...this.attachment
|
|
708
|
+
}));
|
|
709
|
+
get props() {
|
|
710
|
+
return this.#props();
|
|
711
|
+
}
|
|
712
|
+
set props($$value) {
|
|
713
|
+
return this.#props($$value);
|
|
714
|
+
}
|
|
715
|
+
};
|
|
716
|
+
var SelectGroupState = class SelectGroupState {
|
|
717
|
+
static create(opts) {
|
|
718
|
+
return SelectGroupContext.set(new SelectGroupState(opts, SelectRootContext.get()));
|
|
719
|
+
}
|
|
720
|
+
opts;
|
|
721
|
+
root;
|
|
722
|
+
labelNode = null;
|
|
723
|
+
attachment;
|
|
724
|
+
constructor(opts, root) {
|
|
725
|
+
this.opts = opts;
|
|
726
|
+
this.root = root;
|
|
727
|
+
this.attachment = attachRef(opts.ref);
|
|
728
|
+
}
|
|
729
|
+
#props = derived(() => ({
|
|
730
|
+
id: this.opts.id.current,
|
|
731
|
+
role: "group",
|
|
732
|
+
[this.root.getBitsAttr("group")]: "",
|
|
733
|
+
"aria-labelledby": this.labelNode?.id ?? void 0,
|
|
734
|
+
...this.attachment
|
|
735
|
+
}));
|
|
736
|
+
get props() {
|
|
737
|
+
return this.#props();
|
|
738
|
+
}
|
|
739
|
+
set props($$value) {
|
|
740
|
+
return this.#props($$value);
|
|
741
|
+
}
|
|
742
|
+
};
|
|
743
|
+
var SelectGroupHeadingState = class SelectGroupHeadingState {
|
|
744
|
+
static create(opts) {
|
|
745
|
+
return new SelectGroupHeadingState(opts, SelectGroupContext.get());
|
|
746
|
+
}
|
|
747
|
+
opts;
|
|
748
|
+
group;
|
|
749
|
+
attachment;
|
|
750
|
+
constructor(opts, group) {
|
|
751
|
+
this.opts = opts;
|
|
752
|
+
this.group = group;
|
|
753
|
+
this.attachment = attachRef(opts.ref, (v) => this.group.labelNode = v);
|
|
754
|
+
}
|
|
755
|
+
#props = derived(() => ({
|
|
756
|
+
id: this.opts.id.current,
|
|
757
|
+
[this.group.root.getBitsAttr("group-label")]: "",
|
|
758
|
+
...this.attachment
|
|
759
|
+
}));
|
|
760
|
+
get props() {
|
|
761
|
+
return this.#props();
|
|
762
|
+
}
|
|
763
|
+
set props($$value) {
|
|
764
|
+
return this.#props($$value);
|
|
765
|
+
}
|
|
766
|
+
};
|
|
767
|
+
var SelectHiddenInputState = class SelectHiddenInputState {
|
|
768
|
+
static create(opts) {
|
|
769
|
+
return new SelectHiddenInputState(opts, SelectRootContext.get());
|
|
770
|
+
}
|
|
771
|
+
opts;
|
|
772
|
+
root;
|
|
773
|
+
#shouldRender = derived(() => this.root.opts.name.current !== "");
|
|
774
|
+
get shouldRender() {
|
|
775
|
+
return this.#shouldRender();
|
|
776
|
+
}
|
|
777
|
+
set shouldRender($$value) {
|
|
778
|
+
return this.#shouldRender($$value);
|
|
779
|
+
}
|
|
780
|
+
constructor(opts, root) {
|
|
781
|
+
this.opts = opts;
|
|
782
|
+
this.root = root;
|
|
783
|
+
this.onfocus = this.onfocus.bind(this);
|
|
784
|
+
}
|
|
785
|
+
onfocus(e) {
|
|
786
|
+
e.preventDefault();
|
|
787
|
+
if (!this.root.isCombobox) this.root.triggerNode?.focus();
|
|
788
|
+
else this.root.inputNode?.focus();
|
|
789
|
+
}
|
|
790
|
+
#props = derived(() => ({
|
|
791
|
+
disabled: boolToTrueOrUndef(this.root.opts.disabled.current),
|
|
792
|
+
required: boolToTrueOrUndef(this.root.opts.required.current),
|
|
793
|
+
name: this.root.opts.name.current,
|
|
794
|
+
value: this.opts.value.current,
|
|
795
|
+
onfocus: this.onfocus
|
|
796
|
+
}));
|
|
797
|
+
get props() {
|
|
798
|
+
return this.#props();
|
|
799
|
+
}
|
|
800
|
+
set props($$value) {
|
|
801
|
+
return this.#props($$value);
|
|
802
|
+
}
|
|
803
|
+
};
|
|
804
|
+
var SelectViewportState = class SelectViewportState {
|
|
805
|
+
static create(opts) {
|
|
806
|
+
return new SelectViewportState(opts, SelectContentContext.get());
|
|
807
|
+
}
|
|
808
|
+
opts;
|
|
809
|
+
content;
|
|
810
|
+
root;
|
|
811
|
+
attachment;
|
|
812
|
+
prevScrollTop = 0;
|
|
813
|
+
constructor(opts, content) {
|
|
814
|
+
this.opts = opts;
|
|
815
|
+
this.content = content;
|
|
816
|
+
this.root = content.root;
|
|
817
|
+
this.attachment = attachRef(opts.ref, (v) => {
|
|
818
|
+
this.root.viewportNode = v;
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
#props = derived(() => ({
|
|
822
|
+
id: this.opts.id.current,
|
|
823
|
+
role: "presentation",
|
|
824
|
+
[this.root.getBitsAttr("viewport")]: "",
|
|
825
|
+
style: {
|
|
826
|
+
position: "relative",
|
|
827
|
+
flex: 1,
|
|
828
|
+
overflow: "auto"
|
|
829
|
+
},
|
|
830
|
+
...this.attachment
|
|
831
|
+
}));
|
|
832
|
+
get props() {
|
|
833
|
+
return this.#props();
|
|
834
|
+
}
|
|
835
|
+
set props($$value) {
|
|
836
|
+
return this.#props($$value);
|
|
837
|
+
}
|
|
838
|
+
};
|
|
839
|
+
var SelectScrollButtonImplState = class {
|
|
840
|
+
opts;
|
|
841
|
+
content;
|
|
842
|
+
root;
|
|
843
|
+
attachment;
|
|
844
|
+
autoScrollTimer = null;
|
|
845
|
+
userScrollTimer = -1;
|
|
846
|
+
isUserScrolling = false;
|
|
847
|
+
onAutoScroll = noop;
|
|
848
|
+
mounted = false;
|
|
849
|
+
constructor(opts, content) {
|
|
850
|
+
this.opts = opts;
|
|
851
|
+
this.content = content;
|
|
852
|
+
this.root = content.root;
|
|
853
|
+
this.attachment = attachRef(opts.ref);
|
|
854
|
+
watch([() => this.mounted], () => {
|
|
855
|
+
if (this.mounted) return;
|
|
856
|
+
this.isUserScrolling = false;
|
|
857
|
+
});
|
|
858
|
+
this.onpointerdown = this.onpointerdown.bind(this);
|
|
859
|
+
this.onpointermove = this.onpointermove.bind(this);
|
|
860
|
+
this.onpointerleave = this.onpointerleave.bind(this);
|
|
861
|
+
}
|
|
862
|
+
handleUserScroll() {
|
|
863
|
+
this.content.domContext.clearTimeout(this.userScrollTimer);
|
|
864
|
+
this.isUserScrolling = true;
|
|
865
|
+
this.userScrollTimer = this.content.domContext.setTimeout(() => {
|
|
866
|
+
this.isUserScrolling = false;
|
|
867
|
+
}, 200);
|
|
868
|
+
}
|
|
869
|
+
clearAutoScrollInterval() {
|
|
870
|
+
if (this.autoScrollTimer === null) return;
|
|
871
|
+
this.content.domContext.clearTimeout(this.autoScrollTimer);
|
|
872
|
+
this.autoScrollTimer = null;
|
|
873
|
+
}
|
|
874
|
+
onpointerdown(_) {
|
|
875
|
+
if (this.autoScrollTimer !== null) return;
|
|
876
|
+
this.content.userHasScrolled = true;
|
|
877
|
+
const autoScroll = (tick) => {
|
|
878
|
+
this.onAutoScroll();
|
|
879
|
+
this.autoScrollTimer = this.content.domContext.setTimeout(() => autoScroll(tick + 1), this.opts.delay.current(tick));
|
|
880
|
+
};
|
|
881
|
+
this.autoScrollTimer = this.content.domContext.setTimeout(() => autoScroll(1), this.opts.delay.current(0));
|
|
882
|
+
}
|
|
883
|
+
onpointermove(e) {
|
|
884
|
+
this.onpointerdown(e);
|
|
885
|
+
}
|
|
886
|
+
onpointerleave(_) {
|
|
887
|
+
this.clearAutoScrollInterval();
|
|
888
|
+
}
|
|
889
|
+
#props = derived(() => ({
|
|
890
|
+
id: this.opts.id.current,
|
|
891
|
+
"aria-hidden": boolToStrTrueOrUndef(true),
|
|
892
|
+
style: { flexShrink: 0 },
|
|
893
|
+
onpointerdown: this.onpointerdown,
|
|
894
|
+
onpointermove: this.onpointermove,
|
|
895
|
+
onpointerleave: this.onpointerleave,
|
|
896
|
+
...this.attachment
|
|
897
|
+
}));
|
|
898
|
+
get props() {
|
|
899
|
+
return this.#props();
|
|
900
|
+
}
|
|
901
|
+
set props($$value) {
|
|
902
|
+
return this.#props($$value);
|
|
903
|
+
}
|
|
904
|
+
};
|
|
905
|
+
var SelectScrollDownButtonState = class SelectScrollDownButtonState {
|
|
906
|
+
static create(opts) {
|
|
907
|
+
return new SelectScrollDownButtonState(new SelectScrollButtonImplState(opts, SelectContentContext.get()));
|
|
908
|
+
}
|
|
909
|
+
scrollButtonState;
|
|
910
|
+
content;
|
|
911
|
+
root;
|
|
912
|
+
canScrollDown = false;
|
|
913
|
+
scrollIntoViewTimer = null;
|
|
914
|
+
constructor(scrollButtonState) {
|
|
915
|
+
this.scrollButtonState = scrollButtonState;
|
|
916
|
+
this.content = scrollButtonState.content;
|
|
917
|
+
this.root = scrollButtonState.root;
|
|
918
|
+
this.scrollButtonState.onAutoScroll = this.handleAutoScroll;
|
|
919
|
+
watch([() => this.root.viewportNode, () => this.content.isPositioned], () => {
|
|
920
|
+
const viewport = this.root.viewportNode;
|
|
921
|
+
if (!viewport || !this.content.isPositioned) return;
|
|
922
|
+
this.handleScroll(true);
|
|
923
|
+
const onUserScroll = () => {
|
|
924
|
+
this.content.userHasScrolled = true;
|
|
925
|
+
};
|
|
926
|
+
return executeCallbacks(on(viewport, "scroll", () => this.handleScroll()), on(viewport, "wheel", onUserScroll, { passive: true }), on(viewport, "touchmove", onUserScroll, { passive: true }));
|
|
927
|
+
});
|
|
928
|
+
/**
|
|
929
|
+
* If the input value changes, this means that the filtered items may have changed,
|
|
930
|
+
* so we need to re-evaluate the scroll-ability of the list.
|
|
931
|
+
*/
|
|
932
|
+
watch([
|
|
933
|
+
() => this.root.opts.inputValue.current,
|
|
934
|
+
() => this.root.viewportNode,
|
|
935
|
+
() => this.content.isPositioned
|
|
936
|
+
], () => {
|
|
937
|
+
if (!this.root.viewportNode || !this.content.isPositioned) return;
|
|
938
|
+
this.handleScroll(true);
|
|
939
|
+
});
|
|
940
|
+
watch(() => this.scrollButtonState.mounted, () => {
|
|
941
|
+
if (!this.scrollButtonState.mounted) return;
|
|
942
|
+
if (this.scrollIntoViewTimer) clearTimeout(this.scrollIntoViewTimer);
|
|
943
|
+
this.scrollIntoViewTimer = afterSleep(5, () => {
|
|
944
|
+
if (this.content.userHasScrolled) return;
|
|
945
|
+
const activeItem = this.root.highlightedNode;
|
|
946
|
+
if (!activeItem) return;
|
|
947
|
+
this.root.scrollHighlightedNodeIntoView(activeItem);
|
|
948
|
+
});
|
|
949
|
+
});
|
|
950
|
+
}
|
|
951
|
+
/**
|
|
952
|
+
* @param manual - if true, it means the function was invoked manually outside of an event
|
|
953
|
+
* listener, so we don't call `handleUserScroll` to prevent the auto scroll from kicking in.
|
|
954
|
+
*/
|
|
955
|
+
handleScroll = (manual = false) => {
|
|
956
|
+
if (!manual) this.scrollButtonState.handleUserScroll();
|
|
957
|
+
if (!this.root.viewportNode) return;
|
|
958
|
+
const maxScroll = this.root.viewportNode.scrollHeight - this.root.viewportNode.clientHeight;
|
|
959
|
+
const paddingTop = Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop, 10);
|
|
960
|
+
this.canScrollDown = Math.ceil(this.root.viewportNode.scrollTop) < maxScroll - paddingTop;
|
|
961
|
+
};
|
|
962
|
+
handleAutoScroll = () => {
|
|
963
|
+
const viewport = this.root.viewportNode;
|
|
964
|
+
const selectedItem = this.root.highlightedNode;
|
|
965
|
+
if (!viewport || !selectedItem) return;
|
|
966
|
+
viewport.scrollTop = viewport.scrollTop + selectedItem.offsetHeight;
|
|
967
|
+
};
|
|
968
|
+
#props = derived(() => ({
|
|
969
|
+
...this.scrollButtonState.props,
|
|
970
|
+
[this.root.getBitsAttr("scroll-down-button")]: ""
|
|
971
|
+
}));
|
|
972
|
+
get props() {
|
|
973
|
+
return this.#props();
|
|
974
|
+
}
|
|
975
|
+
set props($$value) {
|
|
976
|
+
return this.#props($$value);
|
|
977
|
+
}
|
|
978
|
+
};
|
|
979
|
+
var SelectScrollUpButtonState = class SelectScrollUpButtonState {
|
|
980
|
+
static create(opts) {
|
|
981
|
+
return new SelectScrollUpButtonState(new SelectScrollButtonImplState(opts, SelectContentContext.get()));
|
|
982
|
+
}
|
|
983
|
+
scrollButtonState;
|
|
984
|
+
content;
|
|
985
|
+
root;
|
|
986
|
+
canScrollUp = false;
|
|
987
|
+
constructor(scrollButtonState) {
|
|
988
|
+
this.scrollButtonState = scrollButtonState;
|
|
989
|
+
this.content = scrollButtonState.content;
|
|
990
|
+
this.root = scrollButtonState.root;
|
|
991
|
+
this.scrollButtonState.onAutoScroll = this.handleAutoScroll;
|
|
992
|
+
watch([() => this.root.viewportNode, () => this.content.isPositioned], () => {
|
|
993
|
+
if (!this.root.viewportNode || !this.content.isPositioned) return;
|
|
994
|
+
this.handleScroll(true);
|
|
995
|
+
return on(this.root.viewportNode, "scroll", () => this.handleScroll());
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* @param manual - if true, it means the function was invoked manually outside of an event
|
|
1000
|
+
* listener, so we don't call `handleUserScroll` to prevent the auto scroll from kicking in.
|
|
1001
|
+
*/
|
|
1002
|
+
handleScroll = (manual = false) => {
|
|
1003
|
+
if (!manual) this.scrollButtonState.handleUserScroll();
|
|
1004
|
+
if (!this.root.viewportNode) return;
|
|
1005
|
+
const paddingTop = Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop, 10);
|
|
1006
|
+
this.canScrollUp = this.root.viewportNode.scrollTop - paddingTop > .1;
|
|
1007
|
+
};
|
|
1008
|
+
handleAutoScroll = () => {
|
|
1009
|
+
if (!this.root.viewportNode || !this.root.highlightedNode) return;
|
|
1010
|
+
this.root.viewportNode.scrollTop = this.root.viewportNode.scrollTop - this.root.highlightedNode.offsetHeight;
|
|
1011
|
+
};
|
|
1012
|
+
#props = derived(() => ({
|
|
1013
|
+
...this.scrollButtonState.props,
|
|
1014
|
+
[this.root.getBitsAttr("scroll-up-button")]: ""
|
|
1015
|
+
}));
|
|
1016
|
+
get props() {
|
|
1017
|
+
return this.#props();
|
|
1018
|
+
}
|
|
1019
|
+
set props($$value) {
|
|
1020
|
+
return this.#props($$value);
|
|
1021
|
+
}
|
|
1022
|
+
};
|
|
1023
|
+
//#endregion
|
|
1024
|
+
//#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/select/components/select-hidden-input.svelte
|
|
1025
|
+
function Select_hidden_input($$renderer, $$props) {
|
|
1026
|
+
$$renderer.component(($$renderer) => {
|
|
1027
|
+
let { value = void 0, autocomplete } = $$props;
|
|
1028
|
+
const hiddenInputState = SelectHiddenInputState.create({ value: boxWith(() => value) });
|
|
1029
|
+
let $$settled = true;
|
|
1030
|
+
let $$inner_renderer;
|
|
1031
|
+
function $$render_inner($$renderer) {
|
|
1032
|
+
if (hiddenInputState.shouldRender) {
|
|
1033
|
+
$$renderer.push("<!--[0-->");
|
|
1034
|
+
Hidden_input($$renderer, spread_props([hiddenInputState.props, {
|
|
1035
|
+
autocomplete,
|
|
1036
|
+
get value() {
|
|
1037
|
+
return value;
|
|
1038
|
+
},
|
|
1039
|
+
set value($$value) {
|
|
1040
|
+
value = $$value;
|
|
1041
|
+
$$settled = false;
|
|
1042
|
+
}
|
|
1043
|
+
}]));
|
|
1044
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1045
|
+
$$renderer.push(`<!--]-->`);
|
|
1046
|
+
}
|
|
1047
|
+
do {
|
|
1048
|
+
$$settled = true;
|
|
1049
|
+
$$inner_renderer = $$renderer.copy();
|
|
1050
|
+
$$render_inner($$inner_renderer);
|
|
1051
|
+
} while (!$$settled);
|
|
1052
|
+
$$renderer.subsume($$inner_renderer);
|
|
1053
|
+
bind_props($$props, { value });
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
//#endregion
|
|
1057
|
+
//#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/select/components/select-content.svelte
|
|
1058
|
+
function Select_content$1($$renderer, $$props) {
|
|
1059
|
+
$$renderer.component(($$renderer) => {
|
|
1060
|
+
const uid = props_id($$renderer);
|
|
1061
|
+
let { id = createId(uid), ref = null, forceMount = false, side = "bottom", onInteractOutside = noop, onEscapeKeydown = noop, children, child, preventScroll = false, style, $$slots, $$events, ...restProps } = $$props;
|
|
1062
|
+
const contentState = SelectContentState.create({
|
|
1063
|
+
id: boxWith(() => id),
|
|
1064
|
+
ref: boxWith(() => ref, (v) => ref = v),
|
|
1065
|
+
onInteractOutside: boxWith(() => onInteractOutside),
|
|
1066
|
+
onEscapeKeydown: boxWith(() => onEscapeKeydown)
|
|
1067
|
+
});
|
|
1068
|
+
const mergedProps = derived(() => mergeProps(restProps, contentState.props));
|
|
1069
|
+
if (forceMount) {
|
|
1070
|
+
$$renderer.push("<!--[0-->");
|
|
1071
|
+
{
|
|
1072
|
+
function popper($$renderer, { props, wrapperProps }) {
|
|
1073
|
+
const finalProps = mergeProps(props, { style: contentState.props.style }, { style });
|
|
1074
|
+
if (child) {
|
|
1075
|
+
$$renderer.push("<!--[0-->");
|
|
1076
|
+
child($$renderer, {
|
|
1077
|
+
props: finalProps,
|
|
1078
|
+
wrapperProps,
|
|
1079
|
+
...contentState.snippetProps
|
|
1080
|
+
});
|
|
1081
|
+
$$renderer.push(`<!---->`);
|
|
1082
|
+
} else {
|
|
1083
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...wrapperProps })}><div${attributes({ ...finalProps })}>`);
|
|
1084
|
+
children?.($$renderer);
|
|
1085
|
+
$$renderer.push(`<!----></div></div>`);
|
|
1086
|
+
}
|
|
1087
|
+
$$renderer.push(`<!--]-->`);
|
|
1088
|
+
}
|
|
1089
|
+
Popper_layer_force_mount($$renderer, spread_props([
|
|
1090
|
+
mergedProps(),
|
|
1091
|
+
contentState.popperProps,
|
|
1092
|
+
{
|
|
1093
|
+
ref: contentState.opts.ref,
|
|
1094
|
+
side,
|
|
1095
|
+
enabled: contentState.root.opts.open.current,
|
|
1096
|
+
id,
|
|
1097
|
+
preventScroll,
|
|
1098
|
+
forceMount: true,
|
|
1099
|
+
shouldRender: contentState.shouldRender,
|
|
1100
|
+
popper,
|
|
1101
|
+
$$slots: { popper: true }
|
|
1102
|
+
}
|
|
1103
|
+
]));
|
|
1104
|
+
}
|
|
1105
|
+
} else if (!forceMount) {
|
|
1106
|
+
$$renderer.push("<!--[1-->");
|
|
1107
|
+
{
|
|
1108
|
+
function popper($$renderer, { props, wrapperProps }) {
|
|
1109
|
+
const finalProps = mergeProps(props, { style: contentState.props.style }, { style });
|
|
1110
|
+
if (child) {
|
|
1111
|
+
$$renderer.push("<!--[0-->");
|
|
1112
|
+
child($$renderer, {
|
|
1113
|
+
props: finalProps,
|
|
1114
|
+
wrapperProps,
|
|
1115
|
+
...contentState.snippetProps
|
|
1116
|
+
});
|
|
1117
|
+
$$renderer.push(`<!---->`);
|
|
1118
|
+
} else {
|
|
1119
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...wrapperProps })}><div${attributes({ ...finalProps })}>`);
|
|
1120
|
+
children?.($$renderer);
|
|
1121
|
+
$$renderer.push(`<!----></div></div>`);
|
|
1122
|
+
}
|
|
1123
|
+
$$renderer.push(`<!--]-->`);
|
|
1124
|
+
}
|
|
1125
|
+
Popper_layer($$renderer, spread_props([
|
|
1126
|
+
mergedProps(),
|
|
1127
|
+
contentState.popperProps,
|
|
1128
|
+
{
|
|
1129
|
+
ref: contentState.opts.ref,
|
|
1130
|
+
side,
|
|
1131
|
+
open: contentState.root.opts.open.current,
|
|
1132
|
+
id,
|
|
1133
|
+
preventScroll,
|
|
1134
|
+
forceMount: false,
|
|
1135
|
+
shouldRender: contentState.shouldRender,
|
|
1136
|
+
popper,
|
|
1137
|
+
$$slots: { popper: true }
|
|
1138
|
+
}
|
|
1139
|
+
]));
|
|
1140
|
+
}
|
|
1141
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1142
|
+
$$renderer.push(`<!--]-->`);
|
|
1143
|
+
bind_props($$props, { ref });
|
|
1144
|
+
});
|
|
1145
|
+
}
|
|
1146
|
+
//#endregion
|
|
1147
|
+
//#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/mounted.svelte
|
|
1148
|
+
function Mounted($$renderer, $$props) {
|
|
1149
|
+
$$renderer.component(($$renderer) => {
|
|
1150
|
+
let { mounted = false, onMountedChange = noop } = $$props;
|
|
1151
|
+
bind_props($$props, { mounted });
|
|
1152
|
+
});
|
|
1153
|
+
}
|
|
1154
|
+
//#endregion
|
|
1155
|
+
//#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/select/components/select-item.svelte
|
|
1156
|
+
function Select_item$1($$renderer, $$props) {
|
|
1157
|
+
$$renderer.component(($$renderer) => {
|
|
1158
|
+
const uid = props_id($$renderer);
|
|
1159
|
+
let { id = createId(uid), ref = null, value, label = value, disabled = false, children, child, onHighlight = noop, onUnhighlight = noop, $$slots, $$events, ...restProps } = $$props;
|
|
1160
|
+
const itemState = SelectItemState.create({
|
|
1161
|
+
id: boxWith(() => id),
|
|
1162
|
+
ref: boxWith(() => ref, (v) => ref = v),
|
|
1163
|
+
value: boxWith(() => value),
|
|
1164
|
+
disabled: boxWith(() => disabled),
|
|
1165
|
+
label: boxWith(() => label),
|
|
1166
|
+
onHighlight: boxWith(() => onHighlight),
|
|
1167
|
+
onUnhighlight: boxWith(() => onUnhighlight)
|
|
1168
|
+
});
|
|
1169
|
+
const mergedProps = derived(() => mergeProps(restProps, itemState.props));
|
|
1170
|
+
let $$settled = true;
|
|
1171
|
+
let $$inner_renderer;
|
|
1172
|
+
function $$render_inner($$renderer) {
|
|
1173
|
+
if (child) {
|
|
1174
|
+
$$renderer.push("<!--[0-->");
|
|
1175
|
+
child($$renderer, {
|
|
1176
|
+
props: mergedProps(),
|
|
1177
|
+
...itemState.snippetProps
|
|
1178
|
+
});
|
|
1179
|
+
$$renderer.push(`<!---->`);
|
|
1180
|
+
} else {
|
|
1181
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1182
|
+
children?.($$renderer, itemState.snippetProps);
|
|
1183
|
+
$$renderer.push(`<!----></div>`);
|
|
1184
|
+
}
|
|
1185
|
+
$$renderer.push(`<!--]--> `);
|
|
1186
|
+
Mounted($$renderer, {
|
|
1187
|
+
get mounted() {
|
|
1188
|
+
return itemState.mounted;
|
|
1189
|
+
},
|
|
1190
|
+
set mounted($$value) {
|
|
1191
|
+
itemState.mounted = $$value;
|
|
1192
|
+
$$settled = false;
|
|
1193
|
+
}
|
|
1194
|
+
});
|
|
1195
|
+
$$renderer.push(`<!---->`);
|
|
1196
|
+
}
|
|
1197
|
+
do {
|
|
1198
|
+
$$settled = true;
|
|
1199
|
+
$$inner_renderer = $$renderer.copy();
|
|
1200
|
+
$$render_inner($$inner_renderer);
|
|
1201
|
+
} while (!$$settled);
|
|
1202
|
+
$$renderer.subsume($$inner_renderer);
|
|
1203
|
+
bind_props($$props, { ref });
|
|
1204
|
+
});
|
|
1205
|
+
}
|
|
1206
|
+
//#endregion
|
|
1207
|
+
//#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/select/components/select-group.svelte
|
|
1208
|
+
function Select_group$1($$renderer, $$props) {
|
|
1209
|
+
$$renderer.component(($$renderer) => {
|
|
1210
|
+
const uid = props_id($$renderer);
|
|
1211
|
+
let { id = createId(uid), ref = null, children, child, $$slots, $$events, ...restProps } = $$props;
|
|
1212
|
+
const groupState = SelectGroupState.create({
|
|
1213
|
+
id: boxWith(() => id),
|
|
1214
|
+
ref: boxWith(() => ref, (v) => ref = v)
|
|
1215
|
+
});
|
|
1216
|
+
const mergedProps = derived(() => mergeProps(restProps, groupState.props));
|
|
1217
|
+
if (child) {
|
|
1218
|
+
$$renderer.push("<!--[0-->");
|
|
1219
|
+
child($$renderer, { props: mergedProps() });
|
|
1220
|
+
$$renderer.push(`<!---->`);
|
|
1221
|
+
} else {
|
|
1222
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1223
|
+
children?.($$renderer);
|
|
1224
|
+
$$renderer.push(`<!----></div>`);
|
|
1225
|
+
}
|
|
1226
|
+
$$renderer.push(`<!--]-->`);
|
|
1227
|
+
bind_props($$props, { ref });
|
|
1228
|
+
});
|
|
1229
|
+
}
|
|
1230
|
+
//#endregion
|
|
1231
|
+
//#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/select/components/select-group-heading.svelte
|
|
1232
|
+
function Select_group_heading$1($$renderer, $$props) {
|
|
1233
|
+
$$renderer.component(($$renderer) => {
|
|
1234
|
+
const uid = props_id($$renderer);
|
|
1235
|
+
let { id = createId(uid), ref = null, child, children, $$slots, $$events, ...restProps } = $$props;
|
|
1236
|
+
const groupHeadingState = SelectGroupHeadingState.create({
|
|
1237
|
+
id: boxWith(() => id),
|
|
1238
|
+
ref: boxWith(() => ref, (v) => ref = v)
|
|
1239
|
+
});
|
|
1240
|
+
const mergedProps = derived(() => mergeProps(restProps, groupHeadingState.props));
|
|
1241
|
+
if (child) {
|
|
1242
|
+
$$renderer.push("<!--[0-->");
|
|
1243
|
+
child($$renderer, { props: mergedProps() });
|
|
1244
|
+
$$renderer.push(`<!---->`);
|
|
1245
|
+
} else {
|
|
1246
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1247
|
+
children?.($$renderer);
|
|
1248
|
+
$$renderer.push(`<!----></div>`);
|
|
1249
|
+
}
|
|
1250
|
+
$$renderer.push(`<!--]-->`);
|
|
1251
|
+
bind_props($$props, { ref });
|
|
1252
|
+
});
|
|
1253
|
+
}
|
|
1254
|
+
//#endregion
|
|
1255
|
+
//#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/select/components/select-viewport.svelte
|
|
1256
|
+
function Select_viewport($$renderer, $$props) {
|
|
1257
|
+
$$renderer.component(($$renderer) => {
|
|
1258
|
+
const uid = props_id($$renderer);
|
|
1259
|
+
let { id = createId(uid), ref = null, children, child, $$slots, $$events, ...restProps } = $$props;
|
|
1260
|
+
const viewportState = SelectViewportState.create({
|
|
1261
|
+
id: boxWith(() => id),
|
|
1262
|
+
ref: boxWith(() => ref, (v) => ref = v)
|
|
1263
|
+
});
|
|
1264
|
+
const mergedProps = derived(() => mergeProps(restProps, viewportState.props));
|
|
1265
|
+
if (child) {
|
|
1266
|
+
$$renderer.push("<!--[0-->");
|
|
1267
|
+
child($$renderer, { props: mergedProps() });
|
|
1268
|
+
$$renderer.push(`<!---->`);
|
|
1269
|
+
} else {
|
|
1270
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1271
|
+
children?.($$renderer);
|
|
1272
|
+
$$renderer.push(`<!----></div>`);
|
|
1273
|
+
}
|
|
1274
|
+
$$renderer.push(`<!--]-->`);
|
|
1275
|
+
bind_props($$props, { ref });
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
//#endregion
|
|
1279
|
+
//#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/select/components/select-scroll-down-button.svelte
|
|
1280
|
+
function Select_scroll_down_button$1($$renderer, $$props) {
|
|
1281
|
+
$$renderer.component(($$renderer) => {
|
|
1282
|
+
const uid = props_id($$renderer);
|
|
1283
|
+
let { id = createId(uid), ref = null, delay = () => 50, child, children, $$slots, $$events, ...restProps } = $$props;
|
|
1284
|
+
const scrollButtonState = SelectScrollDownButtonState.create({
|
|
1285
|
+
id: boxWith(() => id),
|
|
1286
|
+
ref: boxWith(() => ref, (v) => ref = v),
|
|
1287
|
+
delay: boxWith(() => delay)
|
|
1288
|
+
});
|
|
1289
|
+
const mergedProps = derived(() => mergeProps(restProps, scrollButtonState.props));
|
|
1290
|
+
let $$settled = true;
|
|
1291
|
+
let $$inner_renderer;
|
|
1292
|
+
function $$render_inner($$renderer) {
|
|
1293
|
+
if (scrollButtonState.canScrollDown) {
|
|
1294
|
+
$$renderer.push("<!--[0-->");
|
|
1295
|
+
Mounted($$renderer, {
|
|
1296
|
+
get mounted() {
|
|
1297
|
+
return scrollButtonState.scrollButtonState.mounted;
|
|
1298
|
+
},
|
|
1299
|
+
set mounted($$value) {
|
|
1300
|
+
scrollButtonState.scrollButtonState.mounted = $$value;
|
|
1301
|
+
$$settled = false;
|
|
1302
|
+
}
|
|
1303
|
+
});
|
|
1304
|
+
$$renderer.push(`<!----> `);
|
|
1305
|
+
if (child) {
|
|
1306
|
+
$$renderer.push("<!--[0-->");
|
|
1307
|
+
child($$renderer, { props: restProps });
|
|
1308
|
+
$$renderer.push(`<!---->`);
|
|
1309
|
+
} else {
|
|
1310
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1311
|
+
children?.($$renderer);
|
|
1312
|
+
$$renderer.push(`<!----></div>`);
|
|
1313
|
+
}
|
|
1314
|
+
$$renderer.push(`<!--]-->`);
|
|
1315
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1316
|
+
$$renderer.push(`<!--]-->`);
|
|
1317
|
+
}
|
|
1318
|
+
do {
|
|
1319
|
+
$$settled = true;
|
|
1320
|
+
$$inner_renderer = $$renderer.copy();
|
|
1321
|
+
$$render_inner($$inner_renderer);
|
|
1322
|
+
} while (!$$settled);
|
|
1323
|
+
$$renderer.subsume($$inner_renderer);
|
|
1324
|
+
bind_props($$props, { ref });
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
//#endregion
|
|
1328
|
+
//#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/select/components/select-scroll-up-button.svelte
|
|
1329
|
+
function Select_scroll_up_button$1($$renderer, $$props) {
|
|
1330
|
+
$$renderer.component(($$renderer) => {
|
|
1331
|
+
const uid = props_id($$renderer);
|
|
1332
|
+
let { id = createId(uid), ref = null, delay = () => 50, child, children, $$slots, $$events, ...restProps } = $$props;
|
|
1333
|
+
const scrollButtonState = SelectScrollUpButtonState.create({
|
|
1334
|
+
id: boxWith(() => id),
|
|
1335
|
+
ref: boxWith(() => ref, (v) => ref = v),
|
|
1336
|
+
delay: boxWith(() => delay)
|
|
1337
|
+
});
|
|
1338
|
+
const mergedProps = derived(() => mergeProps(restProps, scrollButtonState.props));
|
|
1339
|
+
let $$settled = true;
|
|
1340
|
+
let $$inner_renderer;
|
|
1341
|
+
function $$render_inner($$renderer) {
|
|
1342
|
+
if (scrollButtonState.canScrollUp) {
|
|
1343
|
+
$$renderer.push("<!--[0-->");
|
|
1344
|
+
Mounted($$renderer, {
|
|
1345
|
+
get mounted() {
|
|
1346
|
+
return scrollButtonState.scrollButtonState.mounted;
|
|
1347
|
+
},
|
|
1348
|
+
set mounted($$value) {
|
|
1349
|
+
scrollButtonState.scrollButtonState.mounted = $$value;
|
|
1350
|
+
$$settled = false;
|
|
1351
|
+
}
|
|
1352
|
+
});
|
|
1353
|
+
$$renderer.push(`<!----> `);
|
|
1354
|
+
if (child) {
|
|
1355
|
+
$$renderer.push("<!--[0-->");
|
|
1356
|
+
child($$renderer, { props: restProps });
|
|
1357
|
+
$$renderer.push(`<!---->`);
|
|
1358
|
+
} else {
|
|
1359
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1360
|
+
children?.($$renderer);
|
|
1361
|
+
$$renderer.push(`<!----></div>`);
|
|
1362
|
+
}
|
|
1363
|
+
$$renderer.push(`<!--]-->`);
|
|
1364
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1365
|
+
$$renderer.push(`<!--]-->`);
|
|
1366
|
+
}
|
|
1367
|
+
do {
|
|
1368
|
+
$$settled = true;
|
|
1369
|
+
$$inner_renderer = $$renderer.copy();
|
|
1370
|
+
$$render_inner($$inner_renderer);
|
|
1371
|
+
} while (!$$settled);
|
|
1372
|
+
$$renderer.subsume($$inner_renderer);
|
|
1373
|
+
bind_props($$props, { ref });
|
|
1374
|
+
});
|
|
1375
|
+
}
|
|
1376
|
+
//#endregion
|
|
1377
|
+
//#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/select/components/select.svelte
|
|
1378
|
+
function Select$1($$renderer, $$props) {
|
|
1379
|
+
$$renderer.component(($$renderer) => {
|
|
1380
|
+
let { value = void 0, onValueChange = noop, name = "", disabled = false, type, open = false, onOpenChange = noop, onOpenChangeComplete = noop, loop = false, scrollAlignment = "nearest", required = false, items = [], allowDeselect = false, autocomplete, children } = $$props;
|
|
1381
|
+
function handleDefaultValue() {
|
|
1382
|
+
if (value !== void 0) return;
|
|
1383
|
+
value = type === "single" ? "" : [];
|
|
1384
|
+
}
|
|
1385
|
+
handleDefaultValue();
|
|
1386
|
+
watch.pre(() => value, () => {
|
|
1387
|
+
handleDefaultValue();
|
|
1388
|
+
});
|
|
1389
|
+
let inputValue = "";
|
|
1390
|
+
const rootState = SelectRootState.create({
|
|
1391
|
+
type,
|
|
1392
|
+
value: boxWith(() => value, (v) => {
|
|
1393
|
+
value = v;
|
|
1394
|
+
onValueChange(v);
|
|
1395
|
+
}),
|
|
1396
|
+
disabled: boxWith(() => disabled),
|
|
1397
|
+
required: boxWith(() => required),
|
|
1398
|
+
open: boxWith(() => open, (v) => {
|
|
1399
|
+
open = v;
|
|
1400
|
+
onOpenChange(v);
|
|
1401
|
+
}),
|
|
1402
|
+
loop: boxWith(() => loop),
|
|
1403
|
+
scrollAlignment: boxWith(() => scrollAlignment),
|
|
1404
|
+
name: boxWith(() => name),
|
|
1405
|
+
isCombobox: false,
|
|
1406
|
+
items: boxWith(() => items),
|
|
1407
|
+
allowDeselect: boxWith(() => allowDeselect),
|
|
1408
|
+
inputValue: boxWith(() => inputValue, (v) => inputValue = v),
|
|
1409
|
+
onOpenChangeComplete: boxWith(() => onOpenChangeComplete)
|
|
1410
|
+
});
|
|
1411
|
+
let $$settled = true;
|
|
1412
|
+
let $$inner_renderer;
|
|
1413
|
+
function $$render_inner($$renderer) {
|
|
1414
|
+
Floating_layer($$renderer, {
|
|
1415
|
+
children: ($$renderer) => {
|
|
1416
|
+
children?.($$renderer);
|
|
1417
|
+
$$renderer.push(`<!---->`);
|
|
1418
|
+
}});
|
|
1419
|
+
$$renderer.push(`<!----> `);
|
|
1420
|
+
if (Array.isArray(rootState.opts.value.current)) {
|
|
1421
|
+
$$renderer.push("<!--[0-->");
|
|
1422
|
+
if (rootState.opts.value.current.length === 0) {
|
|
1423
|
+
$$renderer.push("<!--[0-->");
|
|
1424
|
+
Select_hidden_input($$renderer, { autocomplete });
|
|
1425
|
+
} else {
|
|
1426
|
+
$$renderer.push(`<!--[-1--><!--[-->`);
|
|
1427
|
+
const each_array = ensure_array_like(rootState.opts.value.current);
|
|
1428
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1429
|
+
let item = each_array[$$index];
|
|
1430
|
+
Select_hidden_input($$renderer, {
|
|
1431
|
+
value: item,
|
|
1432
|
+
autocomplete
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
$$renderer.push(`<!--]-->`);
|
|
1436
|
+
}
|
|
1437
|
+
$$renderer.push(`<!--]-->`);
|
|
1438
|
+
} else {
|
|
1439
|
+
$$renderer.push("<!--[-1-->");
|
|
1440
|
+
Select_hidden_input($$renderer, {
|
|
1441
|
+
autocomplete,
|
|
1442
|
+
get value() {
|
|
1443
|
+
return rootState.opts.value.current;
|
|
1444
|
+
},
|
|
1445
|
+
set value($$value) {
|
|
1446
|
+
rootState.opts.value.current = $$value;
|
|
1447
|
+
$$settled = false;
|
|
1448
|
+
}
|
|
1449
|
+
});
|
|
1450
|
+
}
|
|
1451
|
+
$$renderer.push(`<!--]-->`);
|
|
1452
|
+
}
|
|
1453
|
+
do {
|
|
1454
|
+
$$settled = true;
|
|
1455
|
+
$$inner_renderer = $$renderer.copy();
|
|
1456
|
+
$$render_inner($$inner_renderer);
|
|
1457
|
+
} while (!$$settled);
|
|
1458
|
+
$$renderer.subsume($$inner_renderer);
|
|
1459
|
+
bind_props($$props, {
|
|
1460
|
+
value,
|
|
1461
|
+
open
|
|
1462
|
+
});
|
|
1463
|
+
});
|
|
1464
|
+
}
|
|
1465
|
+
//#endregion
|
|
1466
|
+
//#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/select/components/select-trigger.svelte
|
|
1467
|
+
function Select_trigger$1($$renderer, $$props) {
|
|
1468
|
+
$$renderer.component(($$renderer) => {
|
|
1469
|
+
const uid = props_id($$renderer);
|
|
1470
|
+
let { id = createId(uid), ref = null, child, children, type = "button", $$slots, $$events, ...restProps } = $$props;
|
|
1471
|
+
const triggerState = SelectTriggerState.create({
|
|
1472
|
+
id: boxWith(() => id),
|
|
1473
|
+
ref: boxWith(() => ref, (v) => ref = v)
|
|
1474
|
+
});
|
|
1475
|
+
const mergedProps = derived(() => mergeProps(restProps, triggerState.props, { type }));
|
|
1476
|
+
if (Floating_layer_anchor) {
|
|
1477
|
+
$$renderer.push("<!--[-->");
|
|
1478
|
+
Floating_layer_anchor($$renderer, {
|
|
1479
|
+
id,
|
|
1480
|
+
ref: triggerState.opts.ref,
|
|
1481
|
+
children: ($$renderer) => {
|
|
1482
|
+
if (child) {
|
|
1483
|
+
$$renderer.push("<!--[0-->");
|
|
1484
|
+
child($$renderer, { props: mergedProps() });
|
|
1485
|
+
$$renderer.push(`<!---->`);
|
|
1486
|
+
} else {
|
|
1487
|
+
$$renderer.push(`<!--[-1--><button${attributes({ ...mergedProps() })}>`);
|
|
1488
|
+
children?.($$renderer);
|
|
1489
|
+
$$renderer.push(`<!----></button>`);
|
|
1490
|
+
}
|
|
1491
|
+
$$renderer.push(`<!--]-->`);
|
|
1492
|
+
}});
|
|
1493
|
+
$$renderer.push("<!--]-->");
|
|
1494
|
+
} else {
|
|
1495
|
+
$$renderer.push("<!--[!-->");
|
|
1496
|
+
$$renderer.push("<!--]-->");
|
|
1497
|
+
}
|
|
1498
|
+
bind_props($$props, { ref });
|
|
1499
|
+
});
|
|
1500
|
+
}
|
|
1501
|
+
//#endregion
|
|
1502
|
+
//#region src/lib/components/ui/select/select-portal.svelte
|
|
1503
|
+
function Select_portal($$renderer, $$props) {
|
|
1504
|
+
let { $$slots, $$events, ...restProps } = $$props;
|
|
1505
|
+
if (Portal) {
|
|
1506
|
+
$$renderer.push("<!--[-->");
|
|
1507
|
+
Portal($$renderer, spread_props([restProps]));
|
|
1508
|
+
$$renderer.push("<!--]-->");
|
|
1509
|
+
} else {
|
|
1510
|
+
$$renderer.push("<!--[!-->");
|
|
1511
|
+
$$renderer.push("<!--]-->");
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
//#endregion
|
|
1515
|
+
//#region src/lib/components/ui/select/select-scroll-down-button.svelte
|
|
1516
|
+
function Select_scroll_down_button($$renderer, $$props) {
|
|
1517
|
+
$$renderer.component(($$renderer) => {
|
|
1518
|
+
let { ref = null, class: className, $$slots, $$events, ...restProps } = $$props;
|
|
1519
|
+
let $$settled = true;
|
|
1520
|
+
let $$inner_renderer;
|
|
1521
|
+
function $$render_inner($$renderer) {
|
|
1522
|
+
if (Select_scroll_down_button$1) {
|
|
1523
|
+
$$renderer.push("<!--[-->");
|
|
1524
|
+
Select_scroll_down_button$1($$renderer, spread_props([
|
|
1525
|
+
{
|
|
1526
|
+
"data-slot": "select-scroll-down-button",
|
|
1527
|
+
class: cn("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className)
|
|
1528
|
+
},
|
|
1529
|
+
restProps,
|
|
1530
|
+
{
|
|
1531
|
+
get ref() {
|
|
1532
|
+
return ref;
|
|
1533
|
+
},
|
|
1534
|
+
set ref($$value) {
|
|
1535
|
+
ref = $$value;
|
|
1536
|
+
$$settled = false;
|
|
1537
|
+
},
|
|
1538
|
+
children: ($$renderer) => {
|
|
1539
|
+
Chevron_down($$renderer, {});
|
|
1540
|
+
},
|
|
1541
|
+
$$slots: { default: true }
|
|
1542
|
+
}
|
|
1543
|
+
]));
|
|
1544
|
+
$$renderer.push("<!--]-->");
|
|
1545
|
+
} else {
|
|
1546
|
+
$$renderer.push("<!--[!-->");
|
|
1547
|
+
$$renderer.push("<!--]-->");
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
do {
|
|
1551
|
+
$$settled = true;
|
|
1552
|
+
$$inner_renderer = $$renderer.copy();
|
|
1553
|
+
$$render_inner($$inner_renderer);
|
|
1554
|
+
} while (!$$settled);
|
|
1555
|
+
$$renderer.subsume($$inner_renderer);
|
|
1556
|
+
bind_props($$props, { ref });
|
|
1557
|
+
});
|
|
1558
|
+
}
|
|
1559
|
+
//#endregion
|
|
1560
|
+
//#region node_modules/.pnpm/@lucide+svelte@1.48.0_svelte@5.57.1_@typescript-eslint+types@8.70.1_/node_modules/@lucide/svelte/dist/icons/chevron-up.svelte
|
|
1561
|
+
function Chevron_up($$renderer, $$props) {
|
|
1562
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
1563
|
+
Icon($$renderer, spread_props([props, { icon: {
|
|
1564
|
+
"name": "chevron-up",
|
|
1565
|
+
"size": 24,
|
|
1566
|
+
"node": [["path", { "d": "m18 15-6-6-6 6" }]]
|
|
1567
|
+
} }]));
|
|
1568
|
+
}
|
|
1569
|
+
//#endregion
|
|
1570
|
+
//#region src/lib/components/ui/select/select-scroll-up-button.svelte
|
|
1571
|
+
function Select_scroll_up_button($$renderer, $$props) {
|
|
1572
|
+
$$renderer.component(($$renderer) => {
|
|
1573
|
+
let { ref = null, class: className, $$slots, $$events, ...restProps } = $$props;
|
|
1574
|
+
let $$settled = true;
|
|
1575
|
+
let $$inner_renderer;
|
|
1576
|
+
function $$render_inner($$renderer) {
|
|
1577
|
+
if (Select_scroll_up_button$1) {
|
|
1578
|
+
$$renderer.push("<!--[-->");
|
|
1579
|
+
Select_scroll_up_button$1($$renderer, spread_props([
|
|
1580
|
+
{
|
|
1581
|
+
"data-slot": "select-scroll-up-button",
|
|
1582
|
+
class: cn("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className)
|
|
1583
|
+
},
|
|
1584
|
+
restProps,
|
|
1585
|
+
{
|
|
1586
|
+
get ref() {
|
|
1587
|
+
return ref;
|
|
1588
|
+
},
|
|
1589
|
+
set ref($$value) {
|
|
1590
|
+
ref = $$value;
|
|
1591
|
+
$$settled = false;
|
|
1592
|
+
},
|
|
1593
|
+
children: ($$renderer) => {
|
|
1594
|
+
Chevron_up($$renderer, {});
|
|
1595
|
+
},
|
|
1596
|
+
$$slots: { default: true }
|
|
1597
|
+
}
|
|
1598
|
+
]));
|
|
1599
|
+
$$renderer.push("<!--]-->");
|
|
1600
|
+
} else {
|
|
1601
|
+
$$renderer.push("<!--[!-->");
|
|
1602
|
+
$$renderer.push("<!--]-->");
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
do {
|
|
1606
|
+
$$settled = true;
|
|
1607
|
+
$$inner_renderer = $$renderer.copy();
|
|
1608
|
+
$$render_inner($$inner_renderer);
|
|
1609
|
+
} while (!$$settled);
|
|
1610
|
+
$$renderer.subsume($$inner_renderer);
|
|
1611
|
+
bind_props($$props, { ref });
|
|
1612
|
+
});
|
|
1613
|
+
}
|
|
1614
|
+
//#endregion
|
|
1615
|
+
//#region src/lib/components/ui/select/select-content.svelte
|
|
1616
|
+
function Select_content($$renderer, $$props) {
|
|
1617
|
+
$$renderer.component(($$renderer) => {
|
|
1618
|
+
let { ref = null, class: className, sideOffset = 4, portalProps, children, preventScroll = true, $$slots, $$events, ...restProps } = $$props;
|
|
1619
|
+
let $$settled = true;
|
|
1620
|
+
let $$inner_renderer;
|
|
1621
|
+
function $$render_inner($$renderer) {
|
|
1622
|
+
Select_portal($$renderer, spread_props([portalProps, {
|
|
1623
|
+
children: ($$renderer) => {
|
|
1624
|
+
if (Select_content$1) {
|
|
1625
|
+
$$renderer.push("<!--[-->");
|
|
1626
|
+
Select_content$1($$renderer, spread_props([
|
|
1627
|
+
{
|
|
1628
|
+
sideOffset,
|
|
1629
|
+
preventScroll,
|
|
1630
|
+
"data-slot": "select-content",
|
|
1631
|
+
class: cn("relative z-50 max-h-(--bits-select-content-available-height) min-w-36 origin-(--bits-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-3xl bg-popover 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)
|
|
1632
|
+
},
|
|
1633
|
+
restProps,
|
|
1634
|
+
{
|
|
1635
|
+
get ref() {
|
|
1636
|
+
return ref;
|
|
1637
|
+
},
|
|
1638
|
+
set ref($$value) {
|
|
1639
|
+
ref = $$value;
|
|
1640
|
+
$$settled = false;
|
|
1641
|
+
},
|
|
1642
|
+
children: ($$renderer) => {
|
|
1643
|
+
Select_scroll_up_button($$renderer, {});
|
|
1644
|
+
$$renderer.push(`<!----> `);
|
|
1645
|
+
if (Select_viewport) {
|
|
1646
|
+
$$renderer.push("<!--[-->");
|
|
1647
|
+
Select_viewport($$renderer, {
|
|
1648
|
+
class: cn("h-(--bits-select-anchor-height) w-full min-w-(--bits-select-anchor-width) scroll-my-1"),
|
|
1649
|
+
children: ($$renderer) => {
|
|
1650
|
+
children?.($$renderer);
|
|
1651
|
+
$$renderer.push(`<!---->`);
|
|
1652
|
+
},
|
|
1653
|
+
$$slots: { default: true }
|
|
1654
|
+
});
|
|
1655
|
+
$$renderer.push("<!--]-->");
|
|
1656
|
+
} else {
|
|
1657
|
+
$$renderer.push("<!--[!-->");
|
|
1658
|
+
$$renderer.push("<!--]-->");
|
|
1659
|
+
}
|
|
1660
|
+
$$renderer.push(` `);
|
|
1661
|
+
Select_scroll_down_button($$renderer, {});
|
|
1662
|
+
$$renderer.push(`<!---->`);
|
|
1663
|
+
},
|
|
1664
|
+
$$slots: { default: true }
|
|
1665
|
+
}
|
|
1666
|
+
]));
|
|
1667
|
+
$$renderer.push("<!--]-->");
|
|
1668
|
+
} else {
|
|
1669
|
+
$$renderer.push("<!--[!-->");
|
|
1670
|
+
$$renderer.push("<!--]-->");
|
|
1671
|
+
}
|
|
1672
|
+
},
|
|
1673
|
+
$$slots: { default: true }
|
|
1674
|
+
}]));
|
|
1675
|
+
}
|
|
1676
|
+
do {
|
|
1677
|
+
$$settled = true;
|
|
1678
|
+
$$inner_renderer = $$renderer.copy();
|
|
1679
|
+
$$render_inner($$inner_renderer);
|
|
1680
|
+
} while (!$$settled);
|
|
1681
|
+
$$renderer.subsume($$inner_renderer);
|
|
1682
|
+
bind_props($$props, { ref });
|
|
1683
|
+
});
|
|
1684
|
+
}
|
|
1685
|
+
//#endregion
|
|
1686
|
+
//#region src/lib/components/ui/select/select-group-heading.svelte
|
|
1687
|
+
function Select_group_heading($$renderer, $$props) {
|
|
1688
|
+
$$renderer.component(($$renderer) => {
|
|
1689
|
+
let { ref = null, class: className, children, $$slots, $$events, ...restProps } = $$props;
|
|
1690
|
+
let $$settled = true;
|
|
1691
|
+
let $$inner_renderer;
|
|
1692
|
+
function $$render_inner($$renderer) {
|
|
1693
|
+
if (Select_group_heading$1) {
|
|
1694
|
+
$$renderer.push("<!--[-->");
|
|
1695
|
+
Select_group_heading$1($$renderer, spread_props([
|
|
1696
|
+
{
|
|
1697
|
+
"data-slot": "select-group-heading",
|
|
1698
|
+
class: cn("px-3 py-2.5 text-xs text-muted-foreground", className)
|
|
1699
|
+
},
|
|
1700
|
+
restProps,
|
|
1701
|
+
{
|
|
1702
|
+
get ref() {
|
|
1703
|
+
return ref;
|
|
1704
|
+
},
|
|
1705
|
+
set ref($$value) {
|
|
1706
|
+
ref = $$value;
|
|
1707
|
+
$$settled = false;
|
|
1708
|
+
},
|
|
1709
|
+
children: ($$renderer) => {
|
|
1710
|
+
children?.($$renderer);
|
|
1711
|
+
$$renderer.push(`<!---->`);
|
|
1712
|
+
},
|
|
1713
|
+
$$slots: { default: true }
|
|
1714
|
+
}
|
|
1715
|
+
]));
|
|
1716
|
+
$$renderer.push("<!--]-->");
|
|
1717
|
+
} else {
|
|
1718
|
+
$$renderer.push("<!--[!-->");
|
|
1719
|
+
$$renderer.push("<!--]-->");
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
do {
|
|
1723
|
+
$$settled = true;
|
|
1724
|
+
$$inner_renderer = $$renderer.copy();
|
|
1725
|
+
$$render_inner($$inner_renderer);
|
|
1726
|
+
} while (!$$settled);
|
|
1727
|
+
$$renderer.subsume($$inner_renderer);
|
|
1728
|
+
bind_props($$props, { ref });
|
|
1729
|
+
});
|
|
1730
|
+
}
|
|
1731
|
+
//#endregion
|
|
1732
|
+
//#region src/lib/components/ui/select/select-group.svelte
|
|
1733
|
+
function Select_group($$renderer, $$props) {
|
|
1734
|
+
$$renderer.component(($$renderer) => {
|
|
1735
|
+
let { ref = null, class: className, $$slots, $$events, ...restProps } = $$props;
|
|
1736
|
+
let $$settled = true;
|
|
1737
|
+
let $$inner_renderer;
|
|
1738
|
+
function $$render_inner($$renderer) {
|
|
1739
|
+
if (Select_group$1) {
|
|
1740
|
+
$$renderer.push("<!--[-->");
|
|
1741
|
+
Select_group$1($$renderer, spread_props([
|
|
1742
|
+
{
|
|
1743
|
+
"data-slot": "select-group",
|
|
1744
|
+
class: cn("scroll-my-1.5 p-1.5", className)
|
|
1745
|
+
},
|
|
1746
|
+
restProps,
|
|
1747
|
+
{
|
|
1748
|
+
get ref() {
|
|
1749
|
+
return ref;
|
|
1750
|
+
},
|
|
1751
|
+
set ref($$value) {
|
|
1752
|
+
ref = $$value;
|
|
1753
|
+
$$settled = false;
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
]));
|
|
1757
|
+
$$renderer.push("<!--]-->");
|
|
1758
|
+
} else {
|
|
1759
|
+
$$renderer.push("<!--[!-->");
|
|
1760
|
+
$$renderer.push("<!--]-->");
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
do {
|
|
1764
|
+
$$settled = true;
|
|
1765
|
+
$$inner_renderer = $$renderer.copy();
|
|
1766
|
+
$$render_inner($$inner_renderer);
|
|
1767
|
+
} while (!$$settled);
|
|
1768
|
+
$$renderer.subsume($$inner_renderer);
|
|
1769
|
+
bind_props($$props, { ref });
|
|
1770
|
+
});
|
|
1771
|
+
}
|
|
1772
|
+
//#endregion
|
|
1773
|
+
//#region src/lib/components/ui/select/select-item.svelte
|
|
1774
|
+
function Select_item($$renderer, $$props) {
|
|
1775
|
+
$$renderer.component(($$renderer) => {
|
|
1776
|
+
let { ref = null, class: className, value, label, children: childrenProp, $$slots, $$events, ...restProps } = $$props;
|
|
1777
|
+
let $$settled = true;
|
|
1778
|
+
let $$inner_renderer;
|
|
1779
|
+
function $$render_inner($$renderer) {
|
|
1780
|
+
{
|
|
1781
|
+
function children($$renderer, { selected, highlighted }) {
|
|
1782
|
+
$$renderer.push(`<span class="pointer-events-none absolute right-2 flex size-4 items-center justify-center">`);
|
|
1783
|
+
if (selected) {
|
|
1784
|
+
$$renderer.push("<!--[0-->");
|
|
1785
|
+
Check($$renderer, { class: "pointer-events-none" });
|
|
1786
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1787
|
+
$$renderer.push(`<!--]--></span> <span class="flex flex-1 shrink-0 gap-2 whitespace-nowrap">`);
|
|
1788
|
+
if (childrenProp) {
|
|
1789
|
+
$$renderer.push("<!--[0-->");
|
|
1790
|
+
childrenProp($$renderer, {
|
|
1791
|
+
selected,
|
|
1792
|
+
highlighted
|
|
1793
|
+
});
|
|
1794
|
+
$$renderer.push(`<!---->`);
|
|
1795
|
+
} else $$renderer.push(`<!--[-1-->${escape_html(label || value)}`);
|
|
1796
|
+
$$renderer.push(`<!--]--></span>`);
|
|
1797
|
+
}
|
|
1798
|
+
if (Select_item$1) {
|
|
1799
|
+
$$renderer.push("<!--[-->");
|
|
1800
|
+
Select_item$1($$renderer, spread_props([
|
|
1801
|
+
{
|
|
1802
|
+
value,
|
|
1803
|
+
label,
|
|
1804
|
+
"data-slot": "select-item",
|
|
1805
|
+
class: cn("relative flex w-full 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 not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", "data-highlighted:bg-accent data-highlighted:text-accent-foreground", className)
|
|
1806
|
+
},
|
|
1807
|
+
restProps,
|
|
1808
|
+
{
|
|
1809
|
+
get ref() {
|
|
1810
|
+
return ref;
|
|
1811
|
+
},
|
|
1812
|
+
set ref($$value) {
|
|
1813
|
+
ref = $$value;
|
|
1814
|
+
$$settled = false;
|
|
1815
|
+
},
|
|
1816
|
+
children,
|
|
1817
|
+
$$slots: { default: true }
|
|
1818
|
+
}
|
|
1819
|
+
]));
|
|
1820
|
+
$$renderer.push("<!--]-->");
|
|
1821
|
+
} else {
|
|
1822
|
+
$$renderer.push("<!--[!-->");
|
|
1823
|
+
$$renderer.push("<!--]-->");
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1827
|
+
do {
|
|
1828
|
+
$$settled = true;
|
|
1829
|
+
$$inner_renderer = $$renderer.copy();
|
|
1830
|
+
$$render_inner($$inner_renderer);
|
|
1831
|
+
} while (!$$settled);
|
|
1832
|
+
$$renderer.subsume($$inner_renderer);
|
|
1833
|
+
bind_props($$props, { ref });
|
|
1834
|
+
});
|
|
1835
|
+
}
|
|
1836
|
+
//#endregion
|
|
1837
|
+
//#region src/lib/components/ui/select/select-separator.svelte
|
|
1838
|
+
function Select_separator($$renderer, $$props) {
|
|
1839
|
+
$$renderer.component(($$renderer) => {
|
|
1840
|
+
let { ref = null, class: className, $$slots, $$events, ...restProps } = $$props;
|
|
1841
|
+
let $$settled = true;
|
|
1842
|
+
let $$inner_renderer;
|
|
1843
|
+
function $$render_inner($$renderer) {
|
|
1844
|
+
Separator($$renderer, spread_props([
|
|
1845
|
+
{
|
|
1846
|
+
"data-slot": "select-separator",
|
|
1847
|
+
class: cn("pointer-events-none -mx-1.5 my-1.5 h-px bg-border", className)
|
|
1848
|
+
},
|
|
1849
|
+
restProps,
|
|
1850
|
+
{
|
|
1851
|
+
get ref() {
|
|
1852
|
+
return ref;
|
|
1853
|
+
},
|
|
1854
|
+
set ref($$value) {
|
|
1855
|
+
ref = $$value;
|
|
1856
|
+
$$settled = false;
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
]));
|
|
1860
|
+
}
|
|
1861
|
+
do {
|
|
1862
|
+
$$settled = true;
|
|
1863
|
+
$$inner_renderer = $$renderer.copy();
|
|
1864
|
+
$$render_inner($$inner_renderer);
|
|
1865
|
+
} while (!$$settled);
|
|
1866
|
+
$$renderer.subsume($$inner_renderer);
|
|
1867
|
+
bind_props($$props, { ref });
|
|
1868
|
+
});
|
|
1869
|
+
}
|
|
1870
|
+
//#endregion
|
|
1871
|
+
//#region src/lib/components/ui/select/select-trigger.svelte
|
|
1872
|
+
function Select_trigger($$renderer, $$props) {
|
|
1873
|
+
$$renderer.component(($$renderer) => {
|
|
1874
|
+
let { ref = null, class: className, children, size = "default", $$slots, $$events, ...restProps } = $$props;
|
|
1875
|
+
let $$settled = true;
|
|
1876
|
+
let $$inner_renderer;
|
|
1877
|
+
function $$render_inner($$renderer) {
|
|
1878
|
+
if (Select_trigger$1) {
|
|
1879
|
+
$$renderer.push("<!--[-->");
|
|
1880
|
+
Select_trigger$1($$renderer, spread_props([
|
|
1881
|
+
{
|
|
1882
|
+
"data-slot": "select-trigger",
|
|
1883
|
+
"data-size": size,
|
|
1884
|
+
class: cn("flex w-fit items-center justify-between gap-1.5 rounded-3xl border border-transparent bg-input/50 px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow,background-color] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className)
|
|
1885
|
+
},
|
|
1886
|
+
restProps,
|
|
1887
|
+
{
|
|
1888
|
+
get ref() {
|
|
1889
|
+
return ref;
|
|
1890
|
+
},
|
|
1891
|
+
set ref($$value) {
|
|
1892
|
+
ref = $$value;
|
|
1893
|
+
$$settled = false;
|
|
1894
|
+
},
|
|
1895
|
+
children: ($$renderer) => {
|
|
1896
|
+
children?.($$renderer);
|
|
1897
|
+
$$renderer.push(`<!----> `);
|
|
1898
|
+
Chevron_down($$renderer, { class: "pointer-events-none size-4 text-muted-foreground" });
|
|
1899
|
+
$$renderer.push(`<!---->`);
|
|
1900
|
+
},
|
|
1901
|
+
$$slots: { default: true }
|
|
1902
|
+
}
|
|
1903
|
+
]));
|
|
1904
|
+
$$renderer.push("<!--]-->");
|
|
1905
|
+
} else {
|
|
1906
|
+
$$renderer.push("<!--[!-->");
|
|
1907
|
+
$$renderer.push("<!--]-->");
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
do {
|
|
1911
|
+
$$settled = true;
|
|
1912
|
+
$$inner_renderer = $$renderer.copy();
|
|
1913
|
+
$$render_inner($$inner_renderer);
|
|
1914
|
+
} while (!$$settled);
|
|
1915
|
+
$$renderer.subsume($$inner_renderer);
|
|
1916
|
+
bind_props($$props, { ref });
|
|
1917
|
+
});
|
|
1918
|
+
}
|
|
1919
|
+
//#endregion
|
|
1920
|
+
//#region src/lib/components/ui/select/select.svelte
|
|
1921
|
+
function Select($$renderer, $$props) {
|
|
1922
|
+
$$renderer.component(($$renderer) => {
|
|
1923
|
+
let { open = false, value = void 0, $$slots, $$events, ...restProps } = $$props;
|
|
1924
|
+
let $$settled = true;
|
|
1925
|
+
let $$inner_renderer;
|
|
1926
|
+
function $$render_inner($$renderer) {
|
|
1927
|
+
if (Select$1) {
|
|
1928
|
+
$$renderer.push("<!--[-->");
|
|
1929
|
+
Select$1($$renderer, spread_props([restProps, {
|
|
1930
|
+
get open() {
|
|
1931
|
+
return open;
|
|
1932
|
+
},
|
|
1933
|
+
set open($$value) {
|
|
1934
|
+
open = $$value;
|
|
1935
|
+
$$settled = false;
|
|
1936
|
+
},
|
|
1937
|
+
get value() {
|
|
1938
|
+
return value;
|
|
1939
|
+
},
|
|
1940
|
+
set value($$value) {
|
|
1941
|
+
value = $$value;
|
|
1942
|
+
$$settled = false;
|
|
1943
|
+
}
|
|
1944
|
+
}]));
|
|
1945
|
+
$$renderer.push("<!--]-->");
|
|
1946
|
+
} else {
|
|
1947
|
+
$$renderer.push("<!--[!-->");
|
|
1948
|
+
$$renderer.push("<!--]-->");
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1951
|
+
do {
|
|
1952
|
+
$$settled = true;
|
|
1953
|
+
$$inner_renderer = $$renderer.copy();
|
|
1954
|
+
$$render_inner($$inner_renderer);
|
|
1955
|
+
} while (!$$settled);
|
|
1956
|
+
$$renderer.subsume($$inner_renderer);
|
|
1957
|
+
bind_props($$props, {
|
|
1958
|
+
open,
|
|
1959
|
+
value
|
|
1960
|
+
});
|
|
1961
|
+
});
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
export { Select as S, Select_trigger as a, Select_content as b, Select_item as c, Select_separator as d, Select_group as e, Select_group_heading as f };
|
|
1965
|
+
//# sourceMappingURL=select.js-DGOA1VL9.js.map
|