import{r as o,j as t}from"./vendor-react-AXa6hZO5.js";import{a as r}from"./c70a3d12b-BI7Bbafv.js";import{I as i}from"./c6a992d55-CZ0WBzb0.js";import{P as s}from"./c6a992d55-U5femuYf.js";import{m as e}from"./vendor-motion-DGh7M6mr.js";import"./c6eedc03a-C8LSdtro.js";import"./vendor-intl-BdADXLLt.js";import"./vendor-lodash-D-zrMTUO.js";import"./vendor-zod-1gcJXWab.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-DsiQAprm.js";import"./vendor-radix-jAWPQP1f.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-router-B4CxQ1po.js";import"./vendor-query-B8PP3rYl.js";import"./vendor-growthbook-XJcBFzji.js";import"./vendor-luxon-Y8l99kBI.js";import"./index-D35RxkWr.js";import"./c365fd3fe-Dmpsm876.js";import"./tree-sitter-BFuuT2ac.js";import"./c5c6275f4-CwS1TkkN.js";import"./c1f96d614-1YX05v6N.js";import"./c58e53d13-DpLEnNlU.js";import"./c4b350ac1-B0Q1ifEy.js";import"./c81c3b080-DntYlcbF.js";import"./cbaad2c48-DXEJneTA.js";import"./c5f4e1303-CSm_YC_Z.js";import"./cac5c74b6-Dk64jQfe.js";import"./cec18ad9a-C2gO96GZ.js";import"./ce51edd53-BJyZXl8k.js";import"./c2f2d399f-CK3sZ6oI.js";import"./c32c0d97f-B5y28Z66.js";import"./ce1bfd762-CyYdvT0D.js";import"./c42f14d14-D5j5RMnQ.js";import"./ca4ffc4d4-utxHxrDd.js";import"./c2044c1ea-iazg3WEu.js";import"./c00e9f95f-BmRIM43a.js";import"./ce65bc850-BqZ2_sRU.js";import"./cb965a0e9-Ccnz0SN3.js";import"./c99a5852d-WZzC5RM1.js";import"./c42be296f-DQd03pUH.js";import"./c4a0394fd-f9p8py3P.js";import"./c42f08fdd-B8crAiF_.js";import"./c4ba74563-Dw-RHOsh.js";import"./c61365050-C5-E_9Up.js";import"./c59046d49-Cqe0WWiz.js";import"./cd51897f0-B-IQioAc.js";import"./c23fd7eb1-Dt1jP75k.js";const m=o.memo(({content:m,enabled:c,onDismiss:a,onAction:p})=>{const n=m,d=o.useCallback(()=>{p()},[p]),j=o.useCallback(()=>{a()},[a]);if(!c)return null;const f=n.buttonHref&&n.buttonText?{children:n.buttonText,href:n.buttonHref,onClick:d}:void 0,l=n.iconName?i[n.iconName]:void 0,b=n.pictogramName?s[n.pictogramName]:void 0;return t.jsx(e.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:n.message,...b?{pictogram:b}:{icon:l,variant:n.variant??"main"},onClose:j,button:f})})})});m.displayName="HomeBannerV1";export{m as HomeBannerV1};
