import{o as t}from"./rolldown-runtime-iuO8RvI4.js";import{O_ as e,Tu as i}from"./shared-0-C4kdVF7Y.js";import{Mi as r,ki as s}from"./vendor-frame-CwiylG4Y.js";import{Pm as n,gp as a}from"./shared-1-3-6x7RKF.js";import{rn as l}from"./vendor-all-2-BJdkbLSj.js";import{al as o}from"./shared-4-6CEyRAHb.js";import{dt as m}from"./shared-3-D-Ux4aGn.js";import{A as d}from"./shared-18-C5QwAjwU.js";import{t as c}from"./c755b7060-BkfUUzd9.js";import{n as u,t as p}from"./c1b6e8683-BkS6VkXy.js";var h=t(r()),b=s(),g="/admin-settings/claude-in-slack",f="https://support.claude.com/en/articles/15575654",x="https://support.claude.com/en/articles/11506255-get-started-with-claude-in-slack",j=(0,h.memo)(({enabled:t,onDismiss:r,onAction:s})=>{const j=l(),y=i(),{data:k}=m(),_=k?.amber_ladder,{currency:v,limit:C}=p(_),w=u(),A=e("kindling_ineligible_learn_more_url"),D=(()=>{try{return A&&"https://support.claude.com"===new URL(A).origin?A:x}catch{return x}})(),P=(0,h.useCallback)(()=>{s?.(),y.push(g)},[s,y]);if(!t)return null;const T="number"==typeof C&&C>0?j.formatNumber(C,{style:"currency",currency:v,maximumFractionDigits:0}):null,N=_?.resets_at;return(0,b.jsx)(d,{maxWidth:836,modalClassName:"!p-0",onDismiss:r,onAction:s,render:({handleDismiss:t})=>(0,b.jsx)(c,{content:{badgeText:n({id:"m6eb4z",intl:j}),title:n(null!==T?{id:"usage_credits"===w?"1vq9mv7":"1kwxm7c",intl:j,dangerouslyVisiblePublicValues:{amount:T}}:{id:"15mh5c7",intl:j}),bodyText:n({id:"1890wv6",intl:j}),bulletPoints:[n({id:"kbclan",intl:j}),n({id:"1lrxb1u",intl:j}),n({id:"yydody",intl:j})],ctaCaption:null!==T&&N?(0,b.jsxs)(b.Fragment,{children:[n({id:"1lycmb1",intl:j,dangerouslyVisiblePublicValues:{date:j.formatDate(N,{month:"short",day:"numeric",timeZone:"America/Los_Angeles"})}})," \xb7 ",(0,b.jsx)(o,{href:f,target:"_blank",rel:"noreferrer",className:"text-inherit",children:n({id:"1j285e",intl:j})})]}):void 0,ctaText:n({id:"1i4ln4g",intl:j}),ctaHref:g,dismissText:n({id:"10vpbd6",intl:j}),imageUrl:"/images/spotlights/kindling-hero.png",imageAlt:""},onCtaClick:P,onDismiss:()=>{a({href:null!==T?f:D}),t()},classNames:{ctaContainer:"text-center [&>p]:text-caption [&>p]:text-muted [&>p]:mb-1",rightPanelContainer:"overflow-hidden h-[533px]"}})})});export{j as KindlingSpotlight};