import{isProductionMode as t}from"../../../../shared/env.js";import{buildScript as i}from"./build-script.js";import{resolveBrowserHooksPath as e}from"./resolve-browser-hooks.js";async function l(){return{id:"Adobe Analytics",requiredEntitlements:["analytics"],async processContent(n,{getConfig:r}){const o=(await r())?.analytics?.adobe;!o?.scriptUrl||!t()&&!o.includeInDevelopment||(n.addSsrComponents([i(o.scriptUrl)],"head"),n.addBrowserPlugin(e()))}}}export{l as adobeAnalyticsPlugin};
