import{r as e,j as t}from"./vendor-react-Dp9pL_Wn.js";import{u as o,M as s,d as i}from"./vendor-intl-D2wGIp4M.js";import{L as a,H as r}from"./index-DhMXk6CR.js";import{x as n}from"./c6eedc03a-CsEFTfjy.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-zod-0xcuG3aM.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-ant-cds-bBedrtIN.js";import"./vendor-base-ui-DNypCIlh.js";import"./vendor-radix-Ch96tRrt.js";import"./vendor-virtual-DRz8lJfQ.js";import"./vendor-query-BwvgHhJ1.js";import"./vendor-zustand-BeF8W8xk.js";import"./caf7c7e06-DJYXCm3T.js";import"./vendor-lodash-BvMLws5K.js";import"./vendor-icons-CokWnmlw.js";import"./vendor-motion-EDlUw66k.js";import"./c5669b8e4-DFSq88jr.js";import"./vendor-luxon-CZxT8ieM.js";import"./c5f4e1303-CiyIFgnl.js";import"./cbaad2c48-DaP34LG2.js";import"./vendor-growthbook-C66YtMMX.js";import"./vendor-zod-v3-CZy0YPWu.js";const d={shown:"claudeai.cowork.artifacts_nudge.shown",dismissed:"claudeai.cowork.artifacts_nudge.dismissed",clicked:"claudeai.cowork.artifacts_nudge.clicked",hovered:"claudeai.cowork.artifacts_nudge.hovered"},c=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 l({onDismiss:i,onClick:l,onVisibilityChange:m}){const u=o(),f=a({source:"artifacts_nudge"}),v=n(),p=e.useCallback(()=>{l(),f({prompt:u.formatMessage(c.chatWithClaudePrompt),title:u.formatMessage(c.newLiveArtifactTitle),requiresLocalSession:!v,draftSelections:{selectedFolders:[],selectedProjectUuids:new Set}}).catch(()=>{})},[l,f,u,v]);return t.jsx(r,{onDismiss:i,onClick:p,analyticsEvents:d,variant:"always-visible",onVisibilityChange:m,title:t.jsx(s,{defaultMessage:"Artifacts that stay up to date",id:"/K9pfSQfHg"}),body:t.jsx(s,{defaultMessage:"Make live artifacts\u2014a team digest, inbox tracker, or meeting brief\u2014that stay current with your connected tools.",id:"avAEvova7y"}),actionText:t.jsx(s,{defaultMessage:"Create with Claude",id:"st9QnC8LFC"})})}const m=e.memo(({enabled:e,onDismiss:o,onAction:s})=>e?t.jsx(l,{onDismiss:o,onClick:s}):null);m.displayName="CoworkArtifactsNudge";export{m as CoworkArtifactsNudge};
