import{r as o,j as i}from"./vendor-react-Dp9pL_Wn.js";import{u as s}from"./c9a5287df-D_Z7ffFR.js";import{r,a as t}from"./c62933a29-BTmwOnJk.js";import{B as n,I as e}from"./vendor-ant-cds-BLsR_p72.js";import{m as a}from"./vendor-motion-EDlUw66k.js";import{B as m,P as d}from"./c2ee0272b-DPDuX889.js";import"./vendor-zod-B8MhECV7.js";import"./caf7c7e06-DiSIOZ2Y.js";import"./vendor-base-5_f7mmWg.js";import"./ca4e68303-2GEI1XEE.js";import"./ce5824dc6-DCrxq2nV.js";import"./cb3073067-VsOwq8wi.js";import"./c1e35bcba-VJ15EpPv.js";import"./c80791b3a-C9RrC3yS.js";import"./c7d6fc21a-XgEBZrGw.js";import"./vendor-intl-D2wGIp4M.js";import"./c86a1b907-DGD2pwio.js";import"./vendor-luxon-CZxT8ieM.js";import"./c33b2042a-BXM4oh1L.js";import"./index-XoaBlZfC.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-CRl6sF7K.js";import"./vendor-zustand-BeF8W8xk.js";import"./vendor-icons-DGChWNxR.js";import"./vendor-lodash-BvMLws5K.js";import"./vendor-radix-Dv3qPI0v.js";import"./vendor-base-ui-N1VQ4ctE.js";import"./c51e217b4-CQax1dv1.js";import"./c627fcdb6-1_bsVTpt.js";import"./vendor-virtual-DRz8lJfQ.js";import"./vendor-growthbook-HDTqppl-.js";import"./vendor-zod-v3-CZy0YPWu.js";const c=o.memo(({content:o,onCtaClick:c,onDismiss:j,maxWidth:p=580})=>{const v=s()()({defaultMessage:"Dismiss",id:"TDaF6J3c1i"}),l=r(o.pictogramName),b=void 0===l?t(o.iconName):void 0,u=void 0!==l?i.jsx(d,{asset:l,size:"sm"}):void 0!==b?i.jsx(e,{name:b,size:"md"}):null,f="danger"===o.variant||"warning"===o.variant?o.variant:"neutral",x=o.buttonText&&o.buttonHref?i.jsx(n,{variant:"primary",size:"sm",href:o.buttonHref,onClick:c,children:o.buttonText}):void 0;return i.jsx(a.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:f,icon:u,action:x,onDismiss:j,dismissLabel:v,children:o.message})})})}),j=o.memo(({content:s,enabled:r,onDismiss:t,onAction:n})=>{const e=s,a=o.useCallback(()=>{n()},[n]);return r?i.jsx(c,{content:e,onCtaClick:a,onDismiss:t}):null});export{j as HomeBannerV1};
