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{N as a,H as r}from"./index-XoaBlZfC.js";import{z as n}from"./c2ee0272b-DPDuX889.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-zod-B8MhECV7.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-ant-cds-BLsR_p72.js";import"./vendor-base-ui-N1VQ4ctE.js";import"./vendor-radix-Dv3qPI0v.js";import"./vendor-virtual-DRz8lJfQ.js";import"./vendor-query-CRl6sF7K.js";import"./vendor-zustand-BeF8W8xk.js";import"./c9a5287df-D_Z7ffFR.js";import"./vendor-icons-DGChWNxR.js";import"./vendor-motion-EDlUw66k.js";import"./vendor-lodash-BvMLws5K.js";import"./vendor-luxon-CZxT8ieM.js";import"./c51e217b4-CQax1dv1.js";import"./c627fcdb6-1_bsVTpt.js";import"./vendor-growthbook-HDTqppl-.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(),j=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:j,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);export{m as CoworkArtifactsNudge};
