import{r as o,j as r}from"./vendor-react-Dp9pL_Wn.js";import{S as e}from"./c755b7060-HuCm6IIc.js";import{o as s,q as t,D as n}from"./c6eedc03a-CsEFTfjy.js";import{S as i}from"./index-DhMXk6CR.js";import"./cc2e285cb-XbqxPJb1.js";import"./caf7c7e06-DJYXCm3T.js";import"./vendor-zod-0xcuG3aM.js";import"./vendor-ant-cds-bBedrtIN.js";import"./vendor-base-ui-DNypCIlh.js";import"./vendor-radix-Ch96tRrt.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-virtual-DRz8lJfQ.js";import"./vendor-intl-D2wGIp4M.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-motion-EDlUw66k.js";import"./vendor-luxon-CZxT8ieM.js";import"./vendor-growthbook-C66YtMMX.js";import"./vendor-infra-DayZK7Ds.js";import"./c5669b8e4-DFSq88jr.js";import"./c5f4e1303-CiyIFgnl.js";import"./cbaad2c48-DaP34LG2.js";function a({src:o,alt:e,width:s,height:t,className:n}){return r.jsx("img",{loading:"lazy",src:o,alt:e,width:s,height:t,className:n})}const m=o.memo(({content:o,enabled:e,onDismiss:s,onAction:t})=>{const n=o;if(!e)return null;const a=n.ctaHref.startsWith("http")||n.ctaHref.startsWith("https");return r.jsx(i,{modalSize:"xl",modalClassName:"!p-0 !rounded-2xl",onDismiss:s,onAction:t,render:({handleDismiss:o,handleAction:e})=>r.jsx(d,{content:n,isExternalLink:a,handleDismiss:o,handleAction:e})})});m.displayName="SpotlightV1";const d=o.memo(({content:n,isExternalLink:i,handleDismiss:m,handleAction:d})=>{const p=s(),l=o.useCallback(()=>{i?t({href:n.ctaHref,desktopBehavior:"open-in-browser"}):p.push(n.ctaHref),d()},[n.ctaHref,i,d,p]);return r.jsx(e,{content:n,onCtaClick:l,onDismiss:m,ImageComponent:a,CtaCaptionLink:c})});function c({href:o,className:e,children:s}){return r.jsx(n,{href:o,webBehavior:"new-tab",desktopBehavior:"open-in-browser",rel:"noopener noreferrer",className:e,children:s})}d.displayName="SpotlightV1Inner";export{m as SpotlightV1};
