"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),i=require("react"),r=require("classnames"),a=require("@material-ui/core"),n=require("@material-ui/icons/Timer"),o=require("./RealTimeSidebarContext.js"),s=require("./enums.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=l(r),p=l(n),u=a.makeStyles((function(e){return{iconWithText:{fontSize:20,lineHeight:"20px",marginRight:8},text:{fontSize:14,lineHeight:"16px",fontWeight:500,letterSpacing:1,textTransform:"uppercase"},icon:{fontSize:20,lineHeight:"20px"},cTpRtSidebarTitle:{display:"flex",flexDirection:"row",alignItems:"center",height:"50px",justifyContent:"normal",paddingLeft:"16px",zIndex:1,position:"absolute","&.vertical":{width:"100%",boxShadow:"16px 16px 16px ".concat(e.palette.background.b5),borderBottom:"1px solid ".concat(e.palette.background.b7),color:e.isLightTheme?e.palette.primary.text9:e.palette.primary.text1},"&.horizontal":{color:e.isLightTheme?e.palette.primary.text1:e.palette.primary.text6}}}}));var x=i.memo((function(){var r=u(),n=i.useContext(o),l=n.isSidebarOpen,x=n.orientation;return t.jsx("div",e.__assign({className:c.default(r.cTpRtSidebarTitle,x)},{children:l||x===s.ORIENTATIONS.horizontal?t.jsxs(t.Fragment,{children:[t.jsx(p.default,{className:r.iconWithText}),t.jsx(a.Typography,e.__assign({variant:"body2",component:"h4",className:r.text},{children:"Real-Time Values"}))]}):t.jsx(p.default,{className:r.icon})}))}));module.exports=x;
