import{o as e}from"./rolldown-runtime-iuO8RvI4.js";import{Mi as t,ki as a}from"./vendor-frame-CwiylG4Y.js";import{$t as i,nn as s,rn as o}from"./vendor-all-2-BJdkbLSj.js";import{Zc as r}from"./shared-3-D-Ux4aGn.js";import{Oi as n}from"./shared-8-C1HP2d2B.js";import{X as c}from"./index-C9LAU4f-.js";var d=e(t()),l=a(),f={shown:"claudeai.cowork.artifacts_nudge.shown",dismissed:"claudeai.cowork.artifacts_nudge.dismissed",clicked:"claudeai.cowork.artifacts_nudge.clicked",hovered:"claudeai.cowork.artifacts_nudge.hovered"},m=i({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"}});function u({onDismiss:e,onClick:t,onVisibilityChange:a}){const i=o(),u=n({source:"artifacts_nudge"}),w=r();return(0,l.jsx)(c,{onDismiss:e,onClick:(0,d.useCallback)(()=>{t(),u({prompt:i.formatMessage(m.chatWithClaudePrompt),title:i.formatMessage(m.newLiveArtifactTitle),requiresLocalSession:!w,draftSelections:{selectedFolders:[],selectedProjectUuids:new Set}}).catch(()=>{})},[t,u,i,w]),analyticsEvents:f,variant:"always-visible",onVisibilityChange:a,title:(0,l.jsx)(s,{defaultMessage:"Artifacts that stay up to date",id:"/K9pfSQfHg"}),body:(0,l.jsx)(s,{defaultMessage:"Make live artifacts\u2014a team digest, inbox tracker, or meeting brief\u2014that stay current with your connected tools.",id:"avAEvova7y"}),actionText:(0,l.jsx)(s,{defaultMessage:"Create with Claude",id:"st9QnC8LFC"})})}var w=(0,d.memo)(({enabled:e,onDismiss:t,onAction:a})=>e?(0,l.jsx)(u,{onDismiss:t,onClick:a}):null);export{w as CoworkArtifactsNudge};