import{r as t,j as o}from"./vendor-react-AXa6hZO5.js";import{S as s}from"./c755b7060-C_xQdvDe.js";import{b as r,d as n,I as e}from"./c6eedc03a-C8LSdtro.js";import{S as i}from"./index-D35RxkWr.js";import"./vendor-intl-BdADXLLt.js";import"./vendor-radix-jAWPQP1f.js";import"./vendor-lodash-D-zrMTUO.js";import"./vendor-zod-1gcJXWab.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-DsiQAprm.js";import"./vendor-motion-DGh7M6mr.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-router-B4CxQ1po.js";import"./vendor-query-B8PP3rYl.js";import"./vendor-growthbook-XJcBFzji.js";import"./c365fd3fe-Dmpsm876.js";import"./c70a3d12b-BI7Bbafv.js";import"./vendor-luxon-Y8l99kBI.js";import"./tree-sitter-BFuuT2ac.js";function a({src:t,alt:s,width:r,height:n,className:i}){return o.jsx(e,{src:t,alt:s,width:r,height:n,unoptimized:!0,className:i})}const m=t.memo(({content:t,enabled:s,onDismiss:r,onAction:n})=>{const e=t;if(!s)return null;const a=e.ctaHref.startsWith("http")||e.ctaHref.startsWith("https");return o.jsx(i,{modalSize:"xl",modalClassName:"!p-0 !rounded-2xl",onDismiss:r,onAction:n,render:({handleDismiss:t,handleAction:s})=>o.jsx(d,{content:e,isExternalLink:a,handleDismiss:t,handleAction:s})})});m.displayName="SpotlightV1";const d=t.memo(({content:e,isExternalLink:i,handleDismiss:m,handleAction:d})=>{const c=r(),p=t.useCallback(()=>{i?n({href:e.ctaHref,desktopBehavior:"open-in-browser"}):c.push(e.ctaHref),d()},[e.ctaHref,i,d,c]);return o.jsx(s,{content:e,onCtaClick:p,onDismiss:m,ImageComponent:a})});d.displayName="SpotlightV1Inner";export{m as SpotlightV1};
