import{r as o,j as r}from"./vendor-react-Dp9pL_Wn.js";import{S as e}from"./c755b7060-DbQxnzui.js";import{w as s,x as n,D as t}from"./c2ee0272b-DPDuX889.js";import{S as i}from"./index-XoaBlZfC.js";import"./c5669b8e4-CUL6Tg6A.js";import"./c9a5287df-D_Z7ffFR.js";import"./vendor-zod-B8MhECV7.js";import"./vendor-ant-cds-BLsR_p72.js";import"./vendor-base-ui-N1VQ4ctE.js";import"./vendor-radix-Dv3qPI0v.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-DGChWNxR.js";import"./vendor-lodash-BvMLws5K.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-CRl6sF7K.js";import"./vendor-zod-v3-CZy0YPWu.js";import"./vendor-motion-EDlUw66k.js";import"./vendor-luxon-CZxT8ieM.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-growthbook-HDTqppl-.js";import"./c51e217b4-CQax1dv1.js";import"./c627fcdb6-1_bsVTpt.js";function a({src:o,alt:e,width:s,height:n,className:t}){return r.jsx("img",{loading:"lazy",src:o,alt:e,width:s,height:n,className:t})}const m=o.memo(({content:o,enabled:e,onDismiss:s,onAction:n})=>{const t=o;if(!e)return null;const a=t.ctaHref.startsWith("http")||t.ctaHref.startsWith("https");return r.jsx(i,{modalSize:"xl",modalClassName:"!p-0 !rounded-2xl",onDismiss:s,onAction:n,render:({handleDismiss:o,handleAction:e})=>r.jsx(d,{content:t,isExternalLink:a,handleDismiss:o,handleAction:e})})}),d=o.memo(({content:t,isExternalLink:i,handleDismiss:m,handleAction:d})=>{const p=s(),l=o.useCallback(()=>{i?n({href:t.ctaHref,desktopBehavior:"open-in-browser"}):p.push(t.ctaHref),d()},[t.ctaHref,i,d,p]);return r.jsx(e,{content:t,onCtaClick:l,onDismiss:m,ImageComponent:a,CtaCaptionLink:c})});function c({href:o,className:e,children:s}){return r.jsx(t,{href:o,webBehavior:"new-tab",desktopBehavior:"open-in-browser",rel:"noopener noreferrer",className:e,children:s})}export{m as SpotlightV1};
