import{o as i}from"./rolldown-runtime-iuO8RvI4.js";import{Mi as s,ki as a}from"./vendor-frame-CwiylG4Y.js";import{vr as t}from"./shared-6-Cf_fMhRZ.js";import{$ as o,R as n}from"./shared-frame-DbQbH4Yr.js";import{w as e}from"./vendor-all-3-CWo5e8Lw.js";import{wa as r}from"./shared-4-6CEyRAHb.js";import{a as m,o as l,t as d}from"./cdbbb92f5-Bsc56kX2.js";var c=i(s()),f=a(),j=(0,c.memo)(({content:i,onCtaClick:s,onDismiss:a,maxWidth:c=580})=>{const j=t()()({defaultMessage:"Dismiss",id:"TDaF6JVgG6"}),v=l(i.pictogramName),p=void 0===v?m(i.iconName):void 0,u=void 0!==v?(0,f.jsx)(d,{name:v,size:"sm"}):void 0!==p?(0,f.jsx)(o,{name:p,size:"md"}):null,x="danger"===i.variant||"warning"===i.variant?i.variant:"neutral",b=i.buttonText&&i.buttonHref?(0,f.jsx)(n,{variant:"primary",size:"sm",href:i.buttonHref,onClick:s,children:i.buttonText}):void 0;return(0,f.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:(0,f.jsx)("div",{style:{maxWidth:c},children:(0,f.jsx)(r,{variant:x,icon:u,action:b,onDismiss:a,dismissLabel:j,children:i.message})})})}),v=(0,c.memo)(({content:i,enabled:s,onDismiss:a,onAction:t})=>{const o=i,n=(0,c.useCallback)(()=>{t()},[t]);return s?(0,f.jsx)(j,{content:o,onCtaClick:n,onDismiss:a}):null});export{v as HomeBannerV1};