1import{d as c,c as d,e as g,q as e,x as n,P as l,n as r,a6 as m}from"./fcNvPc3T.js";const x={class:"min-w-[120px] flex-shrink-0"},b={class:"text-sm font-semibold truncate"},y={class:"flex items-center gap-6 flex-grow justify-end"},u={class:"text-right min-w-[80px]"},h={class:"text-right min-w-[80px]"},f={class:"text-base font-semibold text-red-500"},w={class:"text-right min-w-[100px]"},k={class:"text-base font-semibold"},C={class:"text-right min-w-[100px]"},S={class:"text-base font-semibold"},v={class:"flex-shrink-0"},N=["href"],q=c({__name:"WidgetStatsInline",props:{displayName:{},balance:{},equity:{},gainPercentage:{},drawdown:{},accountSlug:{},theme:{default:"auto"},bgColor:{}},setup(t){const s=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format,o=i=>i==null?"N/A":`${i>=0?"+":""}${i.toFixed(2)}%`;return(i,a)=>(d(),g("div",{class:l(["w-full flex items-center justify-between gap-6 px-5 py-4 border-b",{"text-gray-900 border-gray-200":t.theme==="light","text-white border-gray-700":t.theme==="dark","text-gray-950 dark:text-white border-gray-200 dark:border-gray-700":t.theme==="auto","bg-white":t.theme==="light"&&!t.bgColor,"bg-gray-950":t.theme==="dark"&&!t.bgColor,"bg-white dark:bg-gray-950":t.theme==="auto"&&!t.bgColor}]),style:m(t.bgColor?{backgroundColor:t.bgColor}:{})},[e("div",x,[e("p",b,n(t.displayName),1)]),e("div",y,[e("div",u,[a[0]||(a[0]=e("p",{class:"text-xs opacity-70"}," Gain ",-1)),e("p",{class:l(["text-base font-semibold",(t.gainPercentage??0)>=0?"text-green-500":"text-red-500"])},n(o(t.gainPercentage)),3)]),e("div",h,[a[1]||(a[1]=e("p",{class:"text-xs opacity-70"}," Drawdown ",-1)),e("p",f,n(o(t.drawdown)),1)]),e("div",w,[a[2]||(a[2]=e("p",{class:"text-xs opacity-70"}," Balance ",-1)),e("p",k,n(t.balance!==null&&t.balance!==void 0?r(s)(t.balance):"N/A"),1)]),e("div",C,[a[3]||(a[3]=e("p",{class:"text-xs opacity-70"}," Equity ",-1)),e("p",S,n(t.equity!==null&&t.equity!==void 0?r(s)(t.equity):"N/A"),1)])]),e("div",v,[e("a",{href:`/account/${t.accountSlug}`,target:"_blank",class:"text-xs opacity-40 hover:opacity-100 transition-opacity",title:"View on ShowMyTrades"}," â ",8,N)])],6))}}),P=Object.assign(q,{__name:"WidgetStatsInline"});export{P as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.