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{E as s,H as r}from"./index-C_tZnXTW.js";import"./vendor-infra-CFC-WJ8N.js";import"./vendor-zod-CMvj0_Fd.js";import"./cec18ad9a-DiLjrOUd.js";import"./vendor-radix-glKlawmm.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-Dy3Nea9p.js";import"./vendor-lodash-BKAXkXVe.js";import"./vendor-motion-0BJMgYoH.js";import"./vendor-router-BSYVf8By.js";import"./vendor-query-D7SPXjZv.js";import"./vendor-growthbook-XJcBFzji.js";import"./cdd5b9598-juLasKsB.js";import"./c2591c98b-9UrrTnB9.js";import"./vendor-luxon-D0OkDiyb.js";import"./c51f8bc6d-BS9P5nN1.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:m})=>{const l=i(),u=s({source:"artifacts_nudge"}),f=t.useCallback(()=>{c(),u({prompt:l.formatMessage(d.chatWithClaudePrompt),title:l.formatMessage(d.newLiveArtifactTitle)}).catch(()=>{})},[c,u,l]);return e.jsx(r,{onDismiss:o,onClick:f,analyticsEvents:n,variant:"always-visible",onVisibilityChange:m,title:e.jsx(a,{defaultMessage:"Artifacts that stay up to date",id:"/K9pfSQfHg"}),body:e.jsx(a,{defaultMessage:"Make live artifacts—a team digest, inbox tracker, or meeting brief—that stay current with your connected tools.",id:"avAEvova7y"}),actionText:e.jsx(a,{defaultMessage:"Create with Claude",id:"st9QnC8LFC"})})},m=t.memo(({enabled:t,onDismiss:i,onAction:a})=>t?e.jsx(c,{onDismiss:i,onClick:a}):null);m.displayName="CoworkArtifactsNudge";export{m as CoworkArtifactsNudge};
