{"version":3,"names":["createContext","useContext","MenuGroupContext","useMenuGroupContext","ctx","Error"],"sources":["menu-group-context.ts"],"sourcesContent":["import { createContext, useContext } from \"solid-js\";\n\nexport interface MenuGroupContextValue {\n\tsetLabelId: (id: string | undefined) => void;\n}\n\nexport const MenuGroupContext = createContext<MenuGroupContextValue | null>(\n\tnull,\n);\n\nexport function useMenuGroupContext(): MenuGroupContextValue {\n\tconst ctx = useContext(MenuGroupContext);\n\tif (ctx == null) {\n\t\tthrow new Error(\n\t\t\t\"Base UI: MenuGroupContext is missing. <Menu.GroupLabel> must be inside <Menu.Group>.\",\n\t\t);\n\t}\n\treturn ctx;\n}\n"],"mappings":"AAAA,SAASA,aAAa,EAAEC,UAAU,QAAQ,UAAU;AAMpD,OAAO,MAAMC,gBAAgB,GAAGF,aAAa,CAC5C,IACD,CAAC;AAED,OAAO,SAASG,mBAAmBA,CAAA,EAA0B;EAC5D,MAAMC,GAAG,GAAGH,UAAU,CAACC,gBAAgB,CAAC;EACxC,IAAIE,GAAG,IAAI,IAAI,EAAE;IAChB,MAAM,IAAIC,KAAK,CACd,sFACD,CAAC;EACF;EACA,OAAOD,GAAG;AACX","ignoreList":[]}