import{r as o,j as i}from"./vendor-react-DcxrbCFs.js";import{u as t}from"./ca8998c31-6H5Q4Fd2.js";import{r as s,a as r}from"./c62933a29-BEQNsR_I.js";import{B as a,I as n}from"./vendor-ant-cds-BOj-tX6j.js";import{m as e}from"./vendor-motion-HFQQEH7Z.js";import{B as m,P as c}from"./c4b350ac1-BTR_0NaM.js";import"./vendor-zod-Zyr3BDtu.js";import"./cdabaac79-3sBTRaya.js";import"./ca4e68303-2GEI1XEE.js";import"./ce5824dc6-DCrxq2nV.js";import"./c5decd681-BZUxtT_J.js";import"./ca9bd5d1a-BwvQdQH8.js";import"./cc2e285cb-B9NgZcZ2.js";import"./cac5c74b6-D2snV6_H.js";import"./cd51897f0-DEXSdSlV.js";import"./ccca85712-CxU_jF8g.js";import"./c41323917-CuYqUzvj.js";import"./vendor-query-DdY22HAU.js";import"./vendor-base-ui-dYhdtXSh.js";import"./vendor-radix-BZeqcGXH.js";import"./vendor-virtual-sigx4wjL.js";import"./vendor-intl-C0z7gCkr.js";import"./vendor-zustand-BLLlCrLG.js";import"./vendor-icons-ChFdOXlJ.js";import"./vendor-lodash--OmUGVwS.js";import"./vendor-router-DD4soP8u.js";import"./vendor-luxon-Y8l99kBI.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-growthbook-Bq25eETo.js";const d=o.memo(({content:o,onCtaClick:d,onDismiss:j,maxWidth:p=580})=>{const l=t()()({defaultMessage:"Dismiss",id:"TDaF6J3c1i"}),v=s(o.pictogramName),u=void 0===v?r(o.iconName):void 0,x=void 0!==v?i.jsx(c,{asset:v,size:"sm"}):void 0!==u?i.jsx(n,{name:u,size:"md"}):null,b="danger"===o.variant||"warning"===o.variant?o.variant:"neutral",f=o.buttonText&&o.buttonHref?i.jsx(a,{variant:"primary",size:"sm",href:o.buttonHref,onClick:d,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:b,icon:x,action:f,onDismiss:j,dismissLabel:l,children:o.message})})})});d.displayName="HomeBannerV1Content";const j=o.memo(({content:t,enabled:s,onDismiss:r,onAction:a})=>{const n=t,e=o.useCallback(()=>{a()},[a]);return s?i.jsx(d,{content:n,onCtaClick:e,onDismiss:r}):null});j.displayName="HomeBannerV1";export{j as HomeBannerV1};
