import{r as e,j as n}from"./vendor-react-Dp9pL_Wn.js";import{C as s}from"./c9bba154c-Bw59591Y.js";import{u as a,M as t}from"./vendor-intl-BDR1NhN_.js";import{C as i,A as r}from"./c40b9b8f5-CcFpJKg-.js";import{aZ as o,a_ as l,a$ as c}from"./c4b350ac1-KLFM4jkb.js";import{c as d}from"./vendor-ant-cds-DvTmcYA1.js";const m=e.memo(({skill:d,hideTryButton:m=!1,addedBy:p=r.Anthropic})=>{const h=a(),f=o(),u=e.useCallback(()=>{const e=new URLSearchParams({q:`/${d.name}`});f.push(`${l}?${e.toString()}`)},[f,d.name]);return n.jsx(i,{name:d.name,addedBy:p??void 0,description:d.description?{content:d.description,tooltip:h.formatMessage({defaultMessage:"Claude uses these descriptions when deciding which skills to use in chat.",id:"g08yMBD/54"})}:void 0,children:m?null:n.jsx("div",{className:"flex-1 flex items-center justify-center",children:n.jsxs(c,{variant:"secondary",className:"gap-1",onClick:u,children:[n.jsx(s,{size:16}),n.jsx(t,{defaultMessage:"Try in Cowork",id:"la/kX21r6k"})]})})})});m.displayName="BuiltInSkillDetailPanel";const p=Object.freeze(Object.defineProperty({__proto__:null,BuiltInSkillDetailPanel:m},Symbol.toStringTag,{value:"Module"})),h=["\xb7","\u2722","\u2736","\u273b","\u273d"];function f({className:e="text-accent-brand"}){return n.jsxs("span",{className:d("font-mono inline-block overflow-hidden text-center relative",e),"aria-hidden":"true",children:[n.jsx("span",{className:"invisible",children:"\u273d"}),n.jsx("style",{children:`\n          @keyframes codeSpinnerSpin {\n            ${[...h.map((e,n)=>{const s=2*n+"em";return`${(n/h.length*50).toFixed(2)}% { transform: translateY(-${s}); }`}),...h.map((e,n)=>{const s=50+n/h.length*50,a=2*(h.length-1-n)+"em";return`${s.toFixed(2)}% { transform: translateY(-${a}); }`})].join("\n            ")}\n          }\n          .code-spinner-animate {\n            animation: codeSpinnerSpin ${120*h.length*2}ms step-start infinite;\n          }\n        `}),n.jsx("span",{className:"block absolute left-0 right-0 select-none code-spinner-animate",style:{top:"-0.35em"},children:h.map((e,s)=>n.jsx("span",{className:"block",style:{lineHeight:"2em"},children:e},s))})]})}export{m as B,f as C,p as a};
