import{Hy as e,Sf as t,Zv as n,cd as r,dg as i,lf as a,m_ as o,pl as s,rv as c}from"./index-DDwwBb9e.js";var l=e(),u=`https://langwatch.ai/docs`;function d(e){return/^https?:\/\//i.test(e)?e:e.startsWith(`/`)?`${u}${e}`:`${u}/${e}`}function f({description:e,docHref:u,docLabel:f=`Read more`}){let p=u?d(u):void 0,m=p?/^https?:\/\//i.test(p):!1;return(0,l.jsxs)(r.Root,{positioning:{placement:`right-start`},children:[(0,l.jsx)(r.Trigger,{asChild:!0,children:(0,l.jsx)(c,{"aria-label":`More info`,size:`xs`,variant:`ghost`,color:`fg.muted`,marginLeft:1,minWidth:`auto`,height:`auto`,padding:0,children:(0,l.jsx)(a,{size:14})})}),(0,l.jsxs)(r.Content,{maxWidth:`sm`,children:[(0,l.jsx)(r.Arrow,{children:(0,l.jsx)(r.ArrowTip,{})}),(0,l.jsx)(r.Body,{children:(0,l.jsxs)(i,{align:`stretch`,gap:2,children:[(0,l.jsx)(n,{fontSize:`sm`,children:e}),p&&(0,l.jsx)(s,{href:p,color:`orange.600`,fontSize:`xs`,fontWeight:`medium`,isExternal:m,children:(0,l.jsxs)(o,{gap:1,display:`inline-flex`,children:[(0,l.jsx)(n,{as:`span`,children:f}),m&&(0,l.jsx)(t,{size:10})]})})]})})]})]})}export{f as t};
//# sourceMappingURL=FieldInfoTooltip-CZp3jidB.js.map