{"version":3,"names":["createContext","useContext","GroupCollectionContext","useGroupCollectionContext"],"sources":["group-collection-context.ts"],"sourcesContent":["import { type Accessor, createContext, useContext } from \"solid-js\";\n\n/**\n * Group-collection scope pushed by `<Combobox.Group>` consumers who want to\n * render nested `<Combobox.Collection>` output against their own sub-list\n * of items. `null` when outside any group → Collection falls back to\n * `root.filteredItems()`.\n */\nexport interface GroupCollectionContextValue {\n\titems: Accessor<readonly unknown[]>;\n}\n\nexport const GroupCollectionContext =\n\tcreateContext<GroupCollectionContextValue | null>(null);\n\nexport function useGroupCollectionContext(): GroupCollectionContextValue | null {\n\treturn useContext(GroupCollectionContext);\n}\n"],"mappings":"AAAA,SAAwBA,aAAa,EAAEC,UAAU,QAAQ,UAAU;;AAEnE;AACA;AACA;AACA;AACA;AACA;;AAKA,OAAO,MAAMC,sBAAsB,GAClCF,aAAa,CAAqC,IAAI,CAAC;AAExD,OAAO,SAASG,yBAAyBA,CAAA,EAAuC;EAC/E,OAAOF,UAAU,CAACC,sBAAsB,CAAC;AAC1C","ignoreList":[]}