{"version":3,"names":["createContext","useContext","TooltipProviderContext","useTooltipProviderContext"],"sources":["tooltip-provider-context.ts"],"sourcesContent":["import { createContext, useContext } from \"solid-js\";\n\n/**\n * Context published by `<Tooltip.Provider>` so descendant tooltips can read\n * the provider-level default open/close delays. `FloatingDelayGroup` handles\n * the shared delay-ref and instant-phase coordination; this context carries\n * only the raw `delay` / `closeDelay` values so triggers can compute their\n * `restMs` overrides the same way React does.\n */\nexport interface TooltipProviderContextValue {\n\tdelay: number | undefined;\n\tcloseDelay: number | undefined;\n}\n\n/**\n * Solid 2's `useContext` throws `ContextNotFoundError` when the resolved\n * value is `undefined`, so the sentinel for \"no provider mounted\" is `null`\n * instead (matches the pattern used in `floating-tree.tsx`).\n */\nexport const TooltipProviderContext =\n\tcreateContext<TooltipProviderContextValue | null>(null);\n\nexport function useTooltipProviderContext(): TooltipProviderContextValue | null {\n\treturn useContext(TooltipProviderContext);\n}\n"],"mappings":"AAAA,SAASA,aAAa,EAAEC,UAAU,QAAQ,UAAU;;AAEpD;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,sBAAsB,GAClCF,aAAa,CAAqC,IAAI,CAAC;AAExD,OAAO,SAASG,yBAAyBA,CAAA,EAAuC;EAC/E,OAAOF,UAAU,CAACC,sBAAsB,CAAC;AAC1C","ignoreList":[]}