import{Dd as e,Hy as t,If as n,Jf as r,Qd as i,Vf as a,ef as o,ff as s,jd as c,of as l,rf as u,uf as d,zf as f}from"./index-DDwwBb9e.js";var p=r(`clipboard-check`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`m9 14 2 2 4-4`,key:`df797q`}]]),m=t(),h=({type:t,size:r=12})=>{let h={size:r,strokeWidth:2.5};switch(t){case`string`:return(0,m.jsx)(e,{...h,color:`var(--chakra-colors-blue-500)`});case`number`:return(0,m.jsx)(s,{...h,color:`var(--chakra-colors-green-500)`});case`boolean`:return(0,m.jsx)(c,{size:r+2,strokeWidth:2.5,color:`var(--chakra-colors-teal-500)`});case`json`:return(0,m.jsx)(f,{...h,color:`var(--chakra-colors-purple-500)`});case`chat_messages`:return(0,m.jsx)(o,{...h,color:`var(--chakra-colors-orange-500)`});case`image`:return(0,m.jsx)(d,{...h,color:`var(--chakra-colors-gray-400)`});case`date`:return(0,m.jsx)(n,{...h,color:`var(--chakra-colors-yellow-600)`});case`list`:return(0,m.jsx)(u,{...h,color:`var(--chakra-colors-purple-400)`});case`rag_contexts`:return(0,m.jsx)(a,{...h,color:`var(--chakra-colors-cyan-500)`});case`spans`:return(0,m.jsx)(l,{...h,color:`var(--chakra-colors-gray-500)`});case`annotations`:return(0,m.jsx)(i,{...h,color:`var(--chakra-colors-yellow-500)`});case`evaluations`:return(0,m.jsx)(p,{...h,color:`var(--chakra-colors-green-600)`});default:return(0,m.jsx)(e,{...h,color:`var(--chakra-colors-gray-400)`})}},g=e=>{if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.keys(e);return t.length===1&&t[0]===`output`},_=e=>{if(e==null)return``;if(typeof e!=`object`)return String(e);if(Array.isArray(e))return JSON.stringify(e,null,2);if(g(e)){let t=e.output;return t==null?``:typeof t==`object`?JSON.stringify(t,null,2):String(t)}return JSON.stringify(e,null,2)},v=(e,t=500,n=62)=>{let r=(e.match(/\n/g)||[]).length;return e.length+r*n>t};export{_ as n,h as r,v as t};
//# sourceMappingURL=textOverflowHeuristic-C3zprzVY.js.map