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