import{r as t,j as c,m as i}from"./vendor--leCAzSo.js";import{r as o}from"./index-DZuQva-j.js";import{I as r}from"./c6a992d55-6BAlo0Lz.js";import{P as s}from"./c6a992d55-RdkPKknR.js";import"./c723dd3dd-58n3MxoB.js";import"./ca9c256b9-7brFE8T2.js";import"./c57c2877c-dpgWZiV5.js";import"./cb5cdda9a-CSfiLIa6.js";import"./c51e217b4-KUwQQl_W.js";import"./tree-sitter-BFuuT2ac.js";import"./cc7a628cb-Ck0w3o1v.js";import"./ccc72bfa9-BCrwlmAf.js";import"./c627fcdb6-StvihmuW.js";import"./c81c3b080-gL5IZDBi.js";import"./c5669b8e4-CRyaPuva.js";import"./cac5c74b6-C0cSvAmv.js";import"./cf83a0aa1-DmYFrVyY.js";import"./c1f96d614-DCyDPEHq.js";import"./cc2e285cb-Ca1JzhKh.js";import"./c2f2d399f-VjB84GAO.js";import"./c590fc197-BYQ2NGDX.js";import"./ca4ffc4d4-CbmM1gBv.js";import"./c2044c1ea-BlzBXdTK.js";import"./c00e9f95f-CNZm4cpe.js";import"./ccca85712-ImSk5B4c.js";import"./c99a5852d-CqWfvGZh.js";import"./c52ce65c3-hxw67lU6.js";import"./c5decd681-BZF0LeWt.js";import"./c23fd7eb1-BDuXikeJ.js";import"./c4a0394fd-D55-gpaw.js";import"./c4ba74563-Dtts1God.js";import"./c59046d49-CJxbhTvt.js";const a=t.memo(({content:a,enabled:m,onDismiss:e,onAction:p})=>{const n=a,j=t.useCallback(()=>{p()},[p]),d=t.useCallback(()=>{e()},[e]);if(!m)return null;const f=n.buttonHref&&n.buttonText?{children:n.buttonText,href:n.buttonHref,onClick:j}:void 0,b=n.iconName?r[n.iconName]:void 0,l=n.pictogramName?s[n.pictogramName]:void 0;return c.jsx(i.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},className:"absolute top-0 left-0 right-0 z-50 p-3 flex justify-center",children:c.jsx("div",{style:{maxWidth:580},children:c.jsx(o,{message:n.message,...l?{pictogram:l}:{icon:b,variant:n.variant??"main"},onClose:d,button:f})})})});a.displayName="HomeBannerV1";export{a as HomeBannerV1};
