import{r as t,j as i}from"./vendor-react-DcxrbCFs.js";import{S as r}from"./c755b7060-D5F4Mt4E.js";import{q as s,a3 as o,s as e,a4 as n,V as c}from"./c4b350ac1-BTR_0NaM.js";import{u as a}from"./vendor-intl-C0z7gCkr.js";import{Y as m,S as d}from"./index-BSvCx8kl.js";import{u as l,a as p}from"./ce51edd53-D7JoPAjG.js";import"./vendor-ant-cds-BOj-tX6j.js";import"./vendor-base-ui-dYhdtXSh.js";import"./vendor-radix-BZeqcGXH.js";import"./vendor-virtual-sigx4wjL.js";import"./ca8998c31-6H5Q4Fd2.js";import"./vendor-zod-Zyr3BDtu.js";import"./vendor-zustand-BLLlCrLG.js";import"./vendor-icons-ChFdOXlJ.js";import"./vendor-lodash--OmUGVwS.js";import"./vendor-router-DD4soP8u.js";import"./vendor-query-DdY22HAU.js";import"./vendor-luxon-Y8l99kBI.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-motion-HFQQEH7Z.js";import"./vendor-growthbook-Bq25eETo.js";import"./c40b9b8f5-Da-ryo1W.js";import"./c4b43b0ae-760Yu4sg.js";import"./cbf215181-C3oidXTA.js";import"./c009a87a0-DXB61_5D.js";import"./c82022b5f-DK6eLSBd.js";import"./cc61d0d63-kW48LhDF.js";import"./c93f725a0-DejUT30N.js";import"./c85adc124-DNLst9Jo.js";import"./c26148d62-BlLiyl5z.js";import"./c0e977562-BYJ_xmcc.js";import"./c9f4bb49e-95JsAiB2.js";import"./cc2dfdfd3-C4WlGtCV.js";import"./c6a992d55-Bg3ygTzd.js";import"./c9e81e7b9-l4IaiKjm.js";import"./c5669b8e4-B184INBD.js";import"./cf57f6351-ChXug4Hw.js";import"./c0632795f-CL3ffsDQ.js";import"./cc2e285cb-B9NgZcZ2.js";import"./c1f96d614-DAkctE43.js";import"./cac5c74b6-D2snV6_H.js";import"./c627fcdb6-Cc-7gsFT.js";import"./c590fc197--sY4eEEU.js";import"./cbaad2c48-DRCBJU3Q.js";import"./c1d7d8319-yi8QLBnY.js";import"./cdd5b9598-Bh6YyBPI.js";import"./c393cb7f5-JWhvNgWh.js";import"./c4526f334-Ddtc7W1k.js";import"./c8c7c4e8f-DoGfpMPz.js";import"./c1d96b207-D0fAg0jr.js";import"./c9bba154c-DdQs_cXE.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=a(),x=s(),{data:y}=m(),k=y?.amber_ladder,{currency:_,limit:C}=l(k),w=p(),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 V="number"==typeof C&&C>0?v.formatNumber(C,{style:"currency",currency:_,maximumFractionDigits:0}):null,P=k?.resets_at;return i.jsx(d,{maxWidth:836,modalClassName:"!p-0",onDismiss:g,onAction:h,render:({handleDismiss:t})=>i.jsx(r,{content:{badgeText:n({id:"m6eb4z",intl:v}),title:n(null!==V?{id:"usage_credits"===w?"1vq9mv7":"1kwxm7c",intl:v,dangerouslyVisiblePublicValues:{amount:V}}:{id:"15mh5c7",intl:v}),bodyText:n({id:"1890wv6",intl:v}),bulletPoints:[n({id:"kbclan",intl:v}),n({id:"1lrxb1u",intl:v}),n({id:"yydody",intl:v})],ctaCaption:null!==V&&P?i.jsxs(i.Fragment,{children:[n({id:"1lycmb1",intl:v,dangerouslyVisiblePublicValues:{date:v.formatDate(P,{month:"short",day:"numeric",timeZone:"America/Los_Angeles"})}})," \xb7 ",i.jsx(c,{href:u,target:"_blank",rel:"noreferrer",className:"text-inherit",children:n({id:"1j285e",intl:v})})]}):void 0,ctaText:n({id:"1i4ln4g",intl:v}),ctaHref:j,dismissText:n({id:"10vpbd6",intl:v}),imageUrl:"/images/spotlights/kindling-hero.png",imageAlt:""},onCtaClick:N,onDismiss:()=>{e({href:null!==V?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};
