import{r as e,j as s}from"./vendor-react-Dp9pL_Wn.js";import{c as t}from"./c0f96d0e0-DGUPaEDS.js";import{u as a}from"./ca8998c31-P9hjFFxa.js";import{f as l,D as i,B as n}from"./vendor-ant-cds-DvTmcYA1.js";const r=e.memo(({content:e,onCtaClick:r,onDismiss:d,ImageComponent:o,CtaCaptionLink:m,classNames:x})=>{const h=o??"img",f=m??c,p=a()(),j=e.ctaCaptionHref&&/^https?:\/\//.test(e.ctaCaptionHref)?e.ctaCaptionHref:void 0,u=p({defaultMessage:"Close",id:"rbrahOGMC3"}),g=e.imageAlt??e.title,b=s.jsx(i.Close,{render:s.jsx(n,{variant:"onContent",iconOnly:!0,icon:"X","aria-label":u,tooltip:!1})});return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"absolute inset-0 -z-10 flex",children:[s.jsx("div",{className:"w-full rounded-card bg-surface-0 md:w-1/2 md:rounded-e-none"}),s.jsx("div",{className:t("hidden rounded-e-[inherit] md:block md:w-1/2",x?.rightPanel??"bg-surface-2")})]}),s.jsx("div",{className:t("absolute md:hidden",x?.closeButton??"right-4 top-4"),children:b}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2",children:[s.jsxs("div",{className:t("flex flex-col justify-between gap-lg",x?.contentPanel??"p-xl md:pe-xl"),children:[s.jsxs("div",{className:"flex flex-col gap-md",children:[e.badgeText&&s.jsx(l,{variant:"accent",className:"self-start",children:e.badgeText}),s.jsx(i.Title,{className:"m-0 font-voice text-[28px] leading-tight",children:e.title}),e.bodyText&&s.jsx("p",{className:"whitespace-pre-line text-body text-secondary",children:e.bodyText}),e.bulletPoints&&e.bulletPoints.length>0&&(e.numberedSteps?s.jsx("ol",{role:"list",className:t("text-body text-secondary",x?.bulletList??"flex flex-col gap-sm"),children:e.bulletPoints.map((e,t)=>s.jsxs("li",{className:"flex items-start gap-sm",children:[s.jsx("span",{className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-surface-2 text-caption-medium text-primary",children:t+1}),s.jsx("span",{children:e})]},t))}):s.jsx("ul",{className:t("list-disc pl-5 text-body text-secondary",x?.bulletList??"flex flex-col gap-sm"),children:e.bulletPoints.map((e,t)=>s.jsx("li",{children:e},t))}))]}),s.jsxs("div",{className:t("flex flex-col gap-xs",x?.ctaContainer),children:[e.ctaCaption&&s.jsx("p",{className:"mb-2 text-body text-secondary",children:j?s.jsx(f,{href:j,className:"underline",children:e.ctaCaption}):e.ctaCaption}),s.jsx(n,{variant:"primary",onClick:r,children:e.ctaText}),s.jsx(n,{variant:"secondary",onClick:d,children:e.dismissText??"Later"})]})]}),s.jsxs("div",{className:t("relative hidden items-center justify-center rounded-e-[inherit] md:flex",x?.rightPanelContainer??"overflow-hidden"),children:[s.jsx(h,{src:e.imageUrl,alt:g,width:600,height:400,className:"h-full w-full object-cover"}),s.jsx("div",{className:t("absolute",x?.closeButton??"right-4 top-4"),children:b})]})]})]})});function c({href:e,className:t,children:a}){return s.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:t,children:a})}r.displayName="SpotlightV1Content";export{r as S};
