import{r as o,j as t}from"./vendor-react-AXa6hZO5.js";import{s as r}from"./index-C_tZnXTW.js";import{I as i}from"./c6a992d55-BW3IKNDf.js";import{P as s}from"./c6a992d55-yQe_3XHI.js";import{m}from"./vendor-motion-0BJMgYoH.js";import"./vendor-infra-CFC-WJ8N.js";import"./vendor-zod-CMvj0_Fd.js";import"./cec18ad9a-DiLjrOUd.js";import"./vendor-radix-glKlawmm.js";import"./vendor-intl-BdADXLLt.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-Dy3Nea9p.js";import"./vendor-lodash-BKAXkXVe.js";import"./vendor-router-BSYVf8By.js";import"./vendor-query-D7SPXjZv.js";import"./vendor-growthbook-XJcBFzji.js";import"./cdd5b9598-juLasKsB.js";import"./c2591c98b-9UrrTnB9.js";import"./vendor-luxon-D0OkDiyb.js";import"./c51f8bc6d-BS9P5nN1.js";import"./tree-sitter-BFuuT2ac.js";import"./cbaad2c48-Cw9eBfrj.js";import"./c2f2d399f-CK6G7tXa.js";import"./ce1bfd762-Cp6if1Qh.js";import"./c58e53d13-C1vky39N.js";import"./c74b56586-mtkDjNPf.js";import"./c606eaf84-CNZBcau1.js";import"./c32c0d97f-Ckznicg6.js";import"./cf83a0aa1-C3Bz3-rj.js";import"./c33b2042a-C-cNOeq_.js";import"./ca4ffc4d4-Ch3dLK-Z.js";import"./c2044c1ea-mO8qNqYx.js";import"./c00e9f95f-diXpglgD.js";import"./ccca85712-oYvKI1ep.js";import"./c99a5852d-CKMbxKu4.js";import"./c52ce65c3-HgcD_LIB.js";import"./c4a0394fd-CBNgydFr.js";import"./c42f08fdd-LqUuVa6D.js";import"./c4ba74563-Cu9cyVCM.js";import"./c59046d49-BIlvtwEN.js";import"./cd51897f0-D8RJUqSZ.js";import"./c23fd7eb1-C1tZ4w3C.js";const e=o.memo(({content:e,enabled:a,onDismiss:c,onAction:n})=>{const p=e,d=o.useCallback(()=>{n()},[n]),j=o.useCallback(()=>{c()},[c]);if(!a)return null;const f=p.buttonHref&&p.buttonText?{children:p.buttonText,href:p.buttonHref,onClick:d}:void 0,l=p.iconName?i[p.iconName]:void 0,v=p.pictogramName?s[p.pictogramName]:void 0;return t.jsx(m.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:t.jsx("div",{style:{maxWidth:580},children:t.jsx(r,{message:p.message,...v?{pictogram:v}:{icon:l,variant:p.variant??"main"},onClose:j,button:f})})})});e.displayName="HomeBannerV1";export{e as HomeBannerV1};
