import{r as t,j as e}from"./vendor-react-AXa6hZO5.js";import{u as i,M as a,d as o}from"./vendor-intl-BdADXLLt.js";import{K as s,H as r}from"./index-D35RxkWr.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-zod-1gcJXWab.js";import"./c6eedc03a-C8LSdtro.js";import"./vendor-lodash-D-zrMTUO.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-DsiQAprm.js";import"./vendor-motion-DGh7M6mr.js";import"./vendor-radix-jAWPQP1f.js";import"./vendor-router-B4CxQ1po.js";import"./vendor-query-B8PP3rYl.js";import"./vendor-growthbook-XJcBFzji.js";import"./c365fd3fe-Dmpsm876.js";import"./c70a3d12b-BI7Bbafv.js";import"./vendor-luxon-Y8l99kBI.js";import"./tree-sitter-BFuuT2ac.js";const n={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=o({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"}}),c=({onDismiss:o,onClick:c,onVisibilityChange:l})=>{const m=i(),u=s({source:"artifacts_nudge"}),f=t.useCallback(()=>{c(),u({prompt:m.formatMessage(d.chatWithClaudePrompt),title:m.formatMessage(d.newLiveArtifactTitle)}).catch(()=>{})},[c,u,m]);return e.jsx(r,{onDismiss:o,onClick:f,analyticsEvents:n,variant:"always-visible",onVisibilityChange:l,title:e.jsx(a,{defaultMessage:"Artifacts that stay up to date",id:"/K9pfSQfHg"}),body:e.jsx(a,{defaultMessage:"Make live artifacts\u2014a team digest, inbox tracker, or meeting brief\u2014that stay current with your connected tools.",id:"avAEvova7y"}),actionText:e.jsx(a,{defaultMessage:"Create with Claude",id:"st9QnC8LFC"})})},l=t.memo(({enabled:t,onDismiss:i,onAction:a})=>t?e.jsx(c,{onDismiss:i,onClick:a}):null);l.displayName="CoworkArtifactsNudge";export{l as CoworkArtifactsNudge};
