{"version":3,"file":"chromeHeaderHeight.mjs","sources":["../../../src/utils/chromeHeaderHeight.ts"],"sourcesContent":["type ChromeHeaderHeightHook = () => number;\n\nlet chromeHeaderHeightHook: ChromeHeaderHeightHook | undefined = undefined;\n\nexport const setChromeHeaderHeightHook = (hook: ChromeHeaderHeightHook) => {\n  chromeHeaderHeightHook = hook;\n};\n\nexport const useChromeHeaderHeight = () => {\n  if (!chromeHeaderHeightHook) {\n    if (process.env.NODE_ENV !== 'production') {\n      throw new Error('useChromeHeaderHeight hook not found in @grafana/runtime');\n    }\n    console.error('useChromeHeaderHeight hook not found');\n  }\n\n  return chromeHeaderHeightHook?.();\n};\n"],"names":[],"mappings":";AAEA,IAAI,sBAAA,GAA6D,KAAA,CAAA;AAE1D,MAAM,yBAAA,GAA4B,CAAC,IAAA,KAAiC;AACzE,EAAA,sBAAA,GAAyB,IAAA;AAC3B;AAEO,MAAM,wBAAwB,MAAM;AACzC,EAAA,IAAI,CAAC,sBAAA,EAAwB;AAC3B,IAAA,IAAI,OAAA,CAAQ,GAAA,CAAI,QAAA,KAAa,YAAA,EAAc;AACzC,MAAA,MAAM,IAAI,MAAM,0DAA0D,CAAA;AAAA,IAC5E;AACA,IAAA,OAAA,CAAQ,MAAM,sCAAsC,CAAA;AAAA,EACtD;AAEA,EAAA,OAAO,sBAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,sBAAA,EAAA;AACT;;;;"}