"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("classnames"),i=require("react"),r=require("../LiveDotIndicator/LiveDotIndicator.js"),a=require("../Text/Text.js"),s=require("../Tooltip/Tooltip.js"),l=require("./IndicatorLive.scss.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=o(t),d={large:l.large,medium:l.medium,small:l.small},c={buttonLike:l.buttonLike,indicator:l.indicator},u={large:18,medium:16,small:16},m={live:l.live,offline:l.offline},v=function(t,i){return"live"===t?"Data receiving in real-time":e.jsxs(e.Fragment,{children:["Asset isn’t Live",i&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),"Last active: ",i]})]})},f=i.forwardRef((function(t,i){var o=t.className,f=t.testId,j=t.children,x=t.state,L=t.size,p=void 0===L?"medium":L,b=t.type,g=void 0===b?"buttonLike":b,q=t.lastActive,T=t.disableTooltip,I=j||("live"===x?"Live":"Offline");return e.jsx(s.Tooltip,{title:v(x,q),placement:"bottom-start",disabled:T,children:e.jsxs(a.Text,{tagName:"div",className:n.default(l.root,d[p],c[g],m[x],o),"data-testid":f,size:u[p],ref:i,children:[I,e.jsx(r.LiveDotIndicator,{state:x,className:l.dot})]})})}));exports.IndicatorLive=f;
//# sourceMappingURL=IndicatorLive.js.map
