import{r as t,j as i}from"./vendor-react-Dp9pL_Wn.js";import{S as r}from"./c755b7060-DRkHexVg.js";import{n as s,ad as e,ae as o,o as n,s as a,T as m}from"./c4b350ac1-KLFM4jkb.js";import{u as c}from"./vendor-intl-BDR1NhN_.js";import{u as d,a as l}from"./ce51edd53-D7nRwIEx.js";import{S as p}from"./index-CSvjYuL_.js";import"./c0f96d0e0-DGUPaEDS.js";import"./ca8998c31-P9hjFFxa.js";import"./vendor-zod-DIcz3Rbr.js";import"./vendor-ant-cds-DvTmcYA1.js";import"./vendor-base-ui-CdQU4JQh.js";import"./vendor-radix-D3USJ4lr.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-virtual-DRz8lJfQ.js";import"./vendor-zustand-CI9omAwJ.js";import"./vendor-icons-BBStP_8q.js";import"./vendor-lodash-CIro4mst.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-DgCRID2b.js";import"./vendor-motion-D7Z1qgzM.js";import"./vendor-luxon-Y8l99kBI.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-growthbook-C66YtMMX.js";import"./c40b9b8f5-CcFpJKg-.js";import"./c393cb7f5-HUvLXarC.js";import"./cbf215181-Bsdk_iVX.js";import"./c82022b5f-v1T93ITZ.js";import"./c627fcdb6-v1yU0Z6G.js";import"./c85adc124-DaXgLnIc.js";import"./c4b43b0ae-CSVSIKUp.js";import"./ce61829b3-0upsP-GZ.js";import"./c0632795f-DFHAnV4h.js";import"./c1f96d614-CNpmgQ8l.js";import"./c2591c98b-B0JYd9Jp.js";import"./c9bba154c-Bw59591Y.js";import"./c2a658aad-Db1B4w67.js";import"./c0e977562-B_Zbx8nl.js";import"./c9f4bb49e-CrIVzJHt.js";import"./cc2dfdfd3-BrnuP9el.js";import"./c6a992d55-BgxzHrh5.js";import"./c9e81e7b9-CQ79hI5E.js";import"./cdd5b9598-DXIbe6ku.js";import"./cf57f6351-BOW8NPIt.js";import"./c5669b8e4-B4xCGVen.js";import"./c93f725a0-BmtJGQGk.js";import"./c26148d62-Db4ihZzY.js";import"./c3a36db6f-BVEOyI7C.js";import"./cc2e285cb-ERZJd0nP.js";import"./c4526f334-DmmtJSHf.js";import"./cb59e2e62-DU7B8aps.js";import"./c009a87a0-BdYPxNaw.js";import"./c8c15d455-BRkvbsON.js";const j="/admin-settings/claude-in-slack",u="https://support.claude.com/en/articles/15575654",b="https://support.claude.com/en/articles/11506255-get-started-with-claude-in-slack",f=t.memo(({enabled:f,onDismiss:g,onAction:h})=>{const v=c(),x=s(),{data:y}=e(),k=y?.amber_ladder,{currency:_,limit:C}=d(k),w=l(),D=o("kindling_ineligible_learn_more_url"),A=(()=>{try{return D&&"https://support.claude.com"===new URL(D).origin?D:b}catch{return b}})(),N=t.useCallback(()=>{h?.(),x.push(j)},[h,x]);if(!f)return null;const T="number"==typeof C&&C>0?v.formatNumber(C,{style:"currency",currency:_,maximumFractionDigits:0}):null,P=k?.resets_at;return i.jsx(p,{maxWidth:836,modalClassName:"!p-0",onDismiss:g,onAction:h,render:({handleDismiss:t})=>i.jsx(r,{content:{badgeText:a({id:"m6eb4z",intl:v}),title:a(null!==T?{id:"usage_credits"===w?"1vq9mv7":"1kwxm7c",intl:v,dangerouslyVisiblePublicValues:{amount:T}}:{id:"15mh5c7",intl:v}),bodyText:a({id:"1890wv6",intl:v}),bulletPoints:[a({id:"kbclan",intl:v}),a({id:"1lrxb1u",intl:v}),a({id:"yydody",intl:v})],ctaCaption:null!==T&&P?i.jsxs(i.Fragment,{children:[a({id:"1lycmb1",intl:v,dangerouslyVisiblePublicValues:{date:v.formatDate(P,{month:"short",day:"numeric",timeZone:"America/Los_Angeles"})}})," \xb7 ",i.jsx(m,{href:u,target:"_blank",rel:"noreferrer",className:"text-inherit",children:a({id:"1j285e",intl:v})})]}):void 0,ctaText:a({id:"1i4ln4g",intl:v}),ctaHref:j,dismissText:a({id:"10vpbd6",intl:v}),imageUrl:"/images/spotlights/kindling-hero.png",imageAlt:""},onCtaClick:N,onDismiss:()=>{n({href:null!==T?u:A}),t()},classNames:{ctaContainer:"text-center [&>p]:text-caption [&>p]:text-muted [&>p]:mb-1",rightPanelContainer:"overflow-hidden h-[533px]"}})})});f.displayName="KindlingSpotlight";export{f as KindlingSpotlight};
