import{u as t,r as a,j as e,M as i,d as s}from"./vendor--leCAzSo.js";import{K as o,H as r}from"./index-DZuQva-j.js";import"./c723dd3dd-58n3MxoB.js";import"./ca9c256b9-7brFE8T2.js";import"./c57c2877c-dpgWZiV5.js";import"./cb5cdda9a-CSfiLIa6.js";import"./c51e217b4-KUwQQl_W.js";import"./tree-sitter-BFuuT2ac.js";const c={shown:"claudeai.cowork.artifacts_nudge.shown",dismissed:"claudeai.cowork.artifacts_nudge.dismissed",clicked:"claudeai.cowork.artifacts_nudge.clicked",hovered:"claudeai.cowork.artifacts_nudge.hovered"},d=s({newLiveArtifactTitle:{defaultMessage:"New live artifact",id:"miJwdxJNt4"},chatWithClaudePrompt:{defaultMessage:"I want to make a live artifact. Explain what live artifacts are in Cowork, then look at my connectors (MCP servers), and ask me a few questions to figure out what kind of live artifact would be most useful for me.",id:"DuKKwQJrUn"}}),n=({onDismiss:s,onClick:n,onVisibilityChange:l})=>{const u=t(),m=o({source:"artifacts_nudge"}),f=a.useCallback(()=>{n(),m({prompt:u.formatMessage(d.chatWithClaudePrompt),title:u.formatMessage(d.newLiveArtifactTitle)}).catch(()=>{})},[n,m,u]);return e.jsx(r,{onDismiss:s,onClick:f,analyticsEvents:c,variant:"always-visible",onVisibilityChange:l,title:e.jsx(i,{defaultMessage:"Artifacts that stay up to date",id:"/K9pfSQfHg"}),body:e.jsx(i,{defaultMessage:"Make live artifacts—a team digest, inbox tracker, or meeting brief—that stay current with your connected tools.",id:"avAEvova7y"}),actionText:e.jsx(i,{defaultMessage:"Create with Claude",id:"st9QnC8LFC"})})},l=a.memo(({enabled:t,onDismiss:a,onAction:i})=>t?e.jsx(n,{onDismiss:a,onClick:i}):null);l.displayName="CoworkArtifactsNudge";export{l as CoworkArtifactsNudge};
