import{r as o,j as i}from"./vendor-react-Dp9pL_Wn.js";import{u as s}from"./ca8998c31-P9hjFFxa.js";import{r as t,a as r}from"./c62933a29-Bny4k5NF.js";import{B as n,I as a}from"./vendor-ant-cds-DvTmcYA1.js";import{m as e}from"./vendor-motion-D7Z1qgzM.js";import{B as m,P as d}from"./c4b350ac1-KLFM4jkb.js";import"./vendor-zod-DIcz3Rbr.js";import"./cdabaac79-3sBTRaya.js";import"./ca4e68303-2GEI1XEE.js";import"./ce5824dc6-DCrxq2nV.js";import"./c5decd681-BZUxtT_J.js";import"./ca9bd5d1a-BwvQdQH8.js";import"./c1f96d614-CNpmgQ8l.js";import"./c393cb7f5-HUvLXarC.js";import"./ccca85712-CxU_jF8g.js";import"./c0f96d0e0-DGUPaEDS.js";import"./vendor-base-ui-CdQU4JQh.js";import"./vendor-radix-D3USJ4lr.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-virtual-DRz8lJfQ.js";import"./vendor-intl-BDR1NhN_.js";import"./vendor-zustand-CI9omAwJ.js";import"./vendor-icons-BBStP_8q.js";import"./vendor-lodash-CIro4mst.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-DgCRID2b.js";import"./vendor-luxon-Y8l99kBI.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-growthbook-C66YtMMX.js";const c=o.memo(({content:o,onCtaClick:c,onDismiss:j,maxWidth:p=580})=>{const l=s()()({defaultMessage:"Dismiss",id:"TDaF6J3c1i"}),v=t(o.pictogramName),u=void 0===v?r(o.iconName):void 0,f=void 0!==v?i.jsx(d,{asset:v,size:"sm"}):void 0!==u?i.jsx(a,{name:u,size:"md"}):null,x="danger"===o.variant||"warning"===o.variant?o.variant:"neutral",b=o.buttonText&&o.buttonHref?i.jsx(n,{variant:"primary",size:"sm",href:o.buttonHref,onClick:c,children:o.buttonText}):void 0;return i.jsx(e.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},className:"absolute left-0 right-0 top-0 z-50 flex justify-center p-3",children:i.jsx("div",{style:{maxWidth:p},children:i.jsx(m,{variant:x,icon:f,action:b,onDismiss:j,dismissLabel:l,children:o.message})})})});c.displayName="HomeBannerV1Content";const j=o.memo(({content:s,enabled:t,onDismiss:r,onAction:n})=>{const a=s,e=o.useCallback(()=>{n()},[n]);return t?i.jsx(c,{content:a,onCtaClick:e,onDismiss:r}):null});j.displayName="HomeBannerV1";export{j as HomeBannerV1};
