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