import{o as e}from"./rolldown-runtime-iuO8RvI4.js";import{Mi as t,ki as r}from"./vendor-frame-CwiylG4Y.js";import{t as a}from"./ca740f614-BM7vLQDh.js";import{Ln as n}from"./vendor-all-6-BsAVZMtu.js";var o=e(t(),1),i=o.forwardRef((e,t)=>o.createElement(n,{ref:t,...e,weights:a}));i.displayName="EyeIcon";var s=i,m=r(),c=e=>new Intl.NumberFormat("en",{notation:"compact",compactDisplay:"short",maximumFractionDigits:1}).format(e),d=({viewCount:e,isLoading:t=!1,size:r="sm",background:a=!1,variant:n="default"})=>{if(t||!e)return null;const o="dark"===n?"text-description-text-300":"",{container:i,iconSize:d}={xs:{container:`flex items-center gap-1 text-xs ${"dark"===n?o:"text-text-300"}`,iconSize:12},sm:{container:`flex items-center gap-1 text-xs leading-none ${"dark"===n?o:"text-text-500"}`,iconSize:14}}[r];return(0,m.jsxs)("div",{className:`${i} ${a?"rounded-md border-0.5 border-border-300 bg-bg-000 px-2 py-0.5":""}`,children:[(0,m.jsx)(s,{size:d,className:"relative top-[0.5px]"}),(0,m.jsx)("span",{children:c(e)})]})};export{c as n,d as t};