"use strict";const o=require("react/jsx-runtime"),i=require("@mui/material/Box"),x=require("@mui/material/Typography"),a=require("./types.cjs"),d={xs:6,sm:8,md:10,lg:12,xl:14};function n({status:c,size:e="sm",label:s,pulse:l=!1,sx:t}){const u=a.toCssColor(a.statusToColor(c)),r=d[e];return o.jsxs(i,{sx:{display:"inline-flex",alignItems:"center",gap:.75,...typeof t=="object"&&!Array.isArray(t)?t:{}},children:[o.jsx(i,{sx:{width:r,height:r,borderRadius:"50%",backgroundColor:u,flexShrink:0,...l&&{animation:"ov-pulse 1.5s ease-in-out infinite","@keyframes ov-pulse":{"0%, 100%":{opacity:1},"50%":{opacity:.4}}}}}),s&&o.jsx(x,{variant:"body2",sx:{fontSize:e==="xs"?"var(--ov-text-xs)":"var(--ov-text-sm)",color:"var(--ov-fg-default)",lineHeight:1},children:s})]})}n.displayName="StatusDot";exports.StatusDot=n;
