{"version":3,"names":["createContext","useContext","ComboboxChipContext","useComboboxChipContext","ctx","Error"],"sources":["chip-context.ts"],"sourcesContent":["import { type Accessor, createContext, useContext } from \"solid-js\";\n\nexport interface ComboboxChipContextValue {\n\tindex: Accessor<number>;\n}\n\nexport const ComboboxChipContext =\n\tcreateContext<ComboboxChipContextValue | null>(null);\n\nexport function useComboboxChipContext(): ComboboxChipContextValue {\n\tconst ctx = useContext(ComboboxChipContext);\n\tif (ctx == null) {\n\t\tthrow new Error(\n\t\t\t\"Base UI: useComboboxChipContext must be used within a <Combobox.Chip>.\",\n\t\t);\n\t}\n\treturn ctx;\n}\n"],"mappings":"AAAA,SAAwBA,aAAa,EAAEC,UAAU,QAAQ,UAAU;AAMnE,OAAO,MAAMC,mBAAmB,GAC/BF,aAAa,CAAkC,IAAI,CAAC;AAErD,OAAO,SAASG,sBAAsBA,CAAA,EAA6B;EAClE,MAAMC,GAAG,GAAGH,UAAU,CAACC,mBAAmB,CAAC;EAC3C,IAAIE,GAAG,IAAI,IAAI,EAAE;IAChB,MAAM,IAAIC,KAAK,CACd,wEACD,CAAC;EACF;EACA,OAAOD,GAAG;AACX","ignoreList":[]}