import{r as o,j as i}from"./vendor-react-Dp9pL_Wn.js";import{u as s}from"./caf7c7e06-DJYXCm3T.js";import{r as t,a as r}from"./c62933a29-BojHUSii.js";import{B as n,I as e}from"./vendor-ant-cds-bBedrtIN.js";import{m as a}from"./vendor-motion-EDlUw66k.js";import{B as m,P as d}from"./c6eedc03a-CsEFTfjy.js";import"./vendor-zod-0xcuG3aM.js";import"./c60f5ad19-R8w-svgU.js";import"./vendor-base-5_f7mmWg.js";import"./c32c0d97f-BRKlKuDE.js";import"./ca4e68303-2GEI1XEE.js";import"./ce5824dc6-DCrxq2nV.js";import"./c393cb7f5-B9bpbpka.js";import"./c41323917-D2qX4YRv.js";import"./vendor-intl-D2wGIp4M.js";import"./c57c2877c-CDK50aMX.js";import"./cd78d010c-Dyg6Wpc_.js";import"./c5f3f4681-re2ND0pU.js";import"./vendor-base-ui-DNypCIlh.js";import"./vendor-radix-Ch96tRrt.js";import"./vendor-virtual-DRz8lJfQ.js";import"./vendor-zustand-BeF8W8xk.js";import"./vendor-icons-CokWnmlw.js";import"./vendor-lodash-BvMLws5K.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-BwvgHhJ1.js";import"./vendor-zod-v3-CZy0YPWu.js";import"./vendor-luxon-CZxT8ieM.js";import"./vendor-growthbook-C66YtMMX.js";import"./vendor-infra-DayZK7Ds.js";const c=o.memo(({content:o,onCtaClick:c,onDismiss:j,maxWidth:p=580})=>{const v=s()()({defaultMessage:"Dismiss",id:"TDaF6J3c1i"}),l=t(o.pictogramName),f=void 0===l?r(o.iconName):void 0,u=void 0!==l?i.jsx(d,{asset:l,size:"sm"}):void 0!==f?i.jsx(e,{name:f,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(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:x,icon:u,action:b,onDismiss:j,dismissLabel:v,children:o.message})})})});c.displayName="HomeBannerV1Content";const j=o.memo(({content:s,enabled:t,onDismiss:r,onAction:n})=>{const e=s,a=o.useCallback(()=>{n()},[n]);return t?i.jsx(c,{content:e,onCtaClick:a,onDismiss:r}):null});j.displayName="HomeBannerV1";export{j as HomeBannerV1};
