import{r as t,j as e}from"./vendor-react-Dp9pL_Wn.js";import{S as i}from"./c755b7060-HuCm6IIc.js";import{o as r,ad as s,ae as o,q as n,s as a,T as l}from"./c6eedc03a-CsEFTfjy.js";import{u as m}from"./vendor-intl-D2wGIp4M.js";import{u as d,a as c}from"./c57c2877c-CDK50aMX.js";import{S as p}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-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";const u="/admin-settings/claude-in-slack",j="https://support.claude.com/en/articles/15575654",b="https://support.claude.com/en/articles/11506255-get-started-with-claude-in-slack",g=t.memo(({enabled:g,onDismiss:h,onAction:v})=>{const x=m(),f=r(),{data:y}=s(),k=y?.amber_ladder,{currency:_,limit:w}=d(k),C=c(),A=o("kindling_ineligible_learn_more_url"),D=(()=>{try{return A&&"https://support.claude.com"===new URL(A).origin?A:b}catch{return b}})(),z=t.useCallback(()=>{v?.(),f.push(u)},[v,f]);if(!g)return null;const N="number"==typeof w&&w>0?x.formatNumber(w,{style:"currency",currency:_,maximumFractionDigits:0}):null,T=k?.resets_at;return e.jsx(p,{maxWidth:836,modalClassName:"!p-0",onDismiss:h,onAction:v,render:({handleDismiss:t})=>e.jsx(i,{content:{badgeText:a({id:"m6eb4z",intl:x}),title:a(null!==N?{id:"usage_credits"===C?"1vq9mv7":"1kwxm7c",intl:x,dangerouslyVisiblePublicValues:{amount:N}}:{id:"15mh5c7",intl:x}),bodyText:a({id:"1890wv6",intl:x}),bulletPoints:[a({id:"kbclan",intl:x}),a({id:"1lrxb1u",intl:x}),a({id:"yydody",intl:x})],ctaCaption:null!==N&&T?e.jsxs(e.Fragment,{children:[a({id:"1lycmb1",intl:x,dangerouslyVisiblePublicValues:{date:x.formatDate(T,{month:"short",day:"numeric",timeZone:"America/Los_Angeles"})}})," \xb7 ",e.jsx(l,{href:j,target:"_blank",rel:"noreferrer",className:"text-inherit",children:a({id:"1j285e",intl:x})})]}):void 0,ctaText:a({id:"1i4ln4g",intl:x}),ctaHref:u,dismissText:a({id:"10vpbd6",intl:x}),imageUrl:"/images/spotlights/kindling-hero.png",imageAlt:""},onCtaClick:z,onDismiss:()=>{n({href:null!==N?j:D}),t()},classNames:{ctaContainer:"text-center [&>p]:text-caption [&>p]:text-muted [&>p]:mb-1",rightPanelContainer:"overflow-hidden h-[533px]"}})})});g.displayName="KindlingSpotlight";export{g as KindlingSpotlight};
