{"version":3,"file":"openfeature.cjs","sources":["../../../src/utils/openfeature.ts"],"sourcesContent":["import { getLocalStorageProvider, getOFREPWebProvider } from '../internal/openFeature';\nimport { ProxyProvider } from '../internal/openFeature/proxy';\n\n/**\n * Create a new OpenFeature provider that proxies Grafana's own OFREP provider.\n *\n * Allows plugins to safely rely on the same OFREP evaluations as Grafana without sharing a mutable domain or provider instance.\n */\nexport function createOpenFeatureOFREPWebProvider() {\n  return new ProxyProvider(getOFREPWebProvider());\n}\n\n/**\n * Create a new OpenFeature provider that proxies Grafana's own localStorage provider.\n *\n * Allows plugins to safely rely on the same localStorage overrides as Grafana without sharing a mutable domain or provider instance.\n */\nexport function createOpenFeatureLocalStorageProvider() {\n  return new ProxyProvider(getLocalStorageProvider());\n}\n"],"names":["ProxyProvider","getOFREPWebProvider","getLocalStorageProvider"],"mappings":";;;;;;;;AAQO,SAAS,iCAAA,GAAoC;AAClD,EAAA,OAAO,IAAIA,mBAAA,CAAcC,yBAAA,EAAqB,CAAA;AAChD;AAOO,SAAS,qCAAA,GAAwC;AACtD,EAAA,OAAO,IAAID,mBAAA,CAAcE,6BAAA,EAAyB,CAAA;AACpD;;;;;"}