import{r as e,u as s,j as l,T as a}from"./vendor--leCAzSo.js";import{$ as t}from"./index-DZuQva-j.js";import{c as i,M as n,B as d}from"./ca9c256b9-7brFE8T2.js";const o=e.memo(({content:e,onCtaClick:o,onDismiss:c,ImageComponent:r,classNames:m})=>{const x=r??"img",h=s().formatMessage({defaultMessage:"Close",id:"rbrahOGMC3"}),b=e.imageAlt??e.title;return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"absolute inset-0 flex -z-10",children:[l.jsx("div",{className:"w-full md:w-1/2 bg-bg-000 rounded-2xl md:rounded-e-none md:rounded-s-2xl"}),l.jsx("div",{className:i("hidden md:block w-1/2 rounded-e-2xl",m?.rightPanel??"bg-bg-300")})]}),l.jsx("div",{className:i("absolute md:hidden",m?.closeButton??"top-4 right-4"),children:l.jsx(n,{onClose:c,"aria-label":h})}),l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2",children:[l.jsxs("div",{className:i("flex flex-col justify-between gap-6",m?.contentPanel??"p-6 md:pe-6"),children:[l.jsxs("div",{className:"flex flex-col gap-4",children:[e.badgeText&&l.jsx(t,{color:"secondary",size:"lg",className:"self-start",children:e.badgeText}),l.jsx(a,{asChild:!0,className:"font-title",children:l.jsx("h1",{children:e.title})}),e.bodyText&&l.jsx("p",{className:"text-text-300 font-base whitespace-pre-line",children:e.bodyText}),e.bulletPoints&&e.bulletPoints.length>0&&l.jsx("ul",{className:i("list-disc pl-5 text-text-300 font-base",m?.bulletList??"space-y-3"),children:e.bulletPoints.map((e,s)=>l.jsx("li",{children:e},s))})]}),l.jsxs("div",{className:i("flex flex-col gap-2",m?.ctaContainer),children:[e.ctaCaption&&l.jsx("p",{className:"text-text-300 font-base mb-2",children:e.ctaCaption}),l.jsx(d,{variant:"primary",className:"font-base-bold w-full",onClick:o,children:e.ctaText}),l.jsx(d,{variant:"secondary",className:"font-base-bold w-full",onClick:c,children:e.dismissText??"Later"})]})]}),l.jsxs("div",{className:i("relative hidden md:flex items-center justify-center rounded-e-2xl",m?.rightPanelContainer??"overflow-hidden"),children:[l.jsx(x,{src:e.imageUrl,alt:b,width:600,height:400,className:"w-full h-full object-cover"}),l.jsx("div",{className:i("absolute",m?.closeButton??"top-4 right-4"),children:l.jsx(n,{onClose:c,"aria-label":h})})]})]})]})});o.displayName="SpotlightV1Content";export{o as S};
