import{j as r}from"./react-vendor-MPLM8hiW.js";import{p as l,q as s}from"./index-saDuzM6I.js";import{ar as c,T as m,I as u}from"./icons-vendor-H2PpUqT3.js";import{L as b}from"./vendor-CwCtuXvS.js";const d={info:{bg:"bg-blue-50 dark:bg-blue-950/30 border-blue-200 dark:border-blue-800",text:"text-blue-800 dark:text-blue-200",icon:u},warning:{bg:"bg-amber-50 dark:bg-amber-950/30 border-amber-200 dark:border-amber-800",text:"text-amber-800 dark:text-amber-200",icon:m},success:{bg:"bg-green-50 dark:bg-green-950/30 border-green-200 dark:border-green-800",text:"text-green-800 dark:text-green-200",icon:c}};function x({entry:e}){const n=e.variant??"info",t=d[n],a=t.icon;return r.jsxs("div",{className:s("flex items-center gap-3 rounded-lg border p-3",t.bg),children:[r.jsx(a,{className:s("h-5 w-5 flex-shrink-0",t.text)}),r.jsx("span",{className:s("text-sm flex-1",t.text),children:e.text}),e.link&&r.jsx(b,{to:e.link.href,className:s("text-sm font-medium underline hover:no-underline flex-shrink-0",t.text),children:e.link.label})]})}function g({entry:e}){return e.src?r.jsx("iframe",{src:e.src,title:`Plugin injection: ${e.zone}`,className:"w-full border-0 rounded-lg min-h-[100px]",sandbox:"allow-scripts allow-forms",referrerPolicy:"no-referrer"}):null}function f(e,n){switch(e.type){case"banner":return r.jsx(x,{entry:e},`${e.pluginName}-${n}`);case"iframe":return r.jsx(g,{entry:e},`${e.pluginName}-${n}`);default:return null}}function E({name:e,className:n}){const a=l(i=>i.getInjectionZoneEntries)(e);return a.length===0?null:r.jsx("div",{className:s("space-y-2",n),children:a.map((i,o)=>f(i,o))})}export{E as I};
