"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),i=require("classnames"),a=require("@material-ui/core"),r=require("./Tooltip.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(i),s=a.makeStyles((function(e){return{popper:{"& .MuiTooltip-tooltip":{backgroundColor:e.palette.background.b10,margin:12,marginTop:"7px !important",maxHeight:"calc(100vh - 24px)",maxWidth:500}},staticTitle:{fontSize:12,fontWeight:400,letterSpacing:"0.4px",lineHeight:"16px",whiteSpace:"nowrap",padding:"8px 8px 0 8px"},titleWrapper:{position:"relative","&::before, &::after":{content:'""',height:16,position:"absolute",width:"100%"},"&::before":{background:"linear-gradient(180deg, ".concat(e.palette.background.b10," 18.23%, rgba(59, 59, 59, 0) 100%)"),opacity:.8,top:0},"&::after":{background:"linear-gradient(0deg, ".concat(e.palette.background.b10," 18.23%, rgba(59, 59, 59, 0) 100%)"),bottom:0,opacity:.8,borderRadius:4}},title:{maxHeight:function(e){var t=e.staticTitleHeight;return"calc(100vh - ".concat((void 0===t?0:t)+24,"px)")},overflowY:"auto",padding:"8px 16px 8px 8px"}}}));exports.ScrollableTooltip=function(i){var a=i.classes,l=void 0===a?{}:a,p=i.popperClassName,n=void 0===p?"":p,c=i.staticTitle,d=void 0===c?"":c,u=i.staticTitleHeight,g=void 0===u?0:u,x=i.title,m=i.titleClassName,b=void 0===m?"":m,v=i.titleWrapperClassName,h=void 0===v?"":v,f=e.__rest(i,["classes","popperClassName","staticTitle","staticTitleHeight","title","titleClassName","titleWrapperClassName"]),T=s({staticTitleHeight:d?g||24:0});return t.jsx(r.Tooltip,e.__assign({interactive:!0,isFullScreen:!1,title:d||x?t.jsxs(t.Fragment,{children:[d&&t.jsx("div",{className:T.staticTitle,children:d}),t.jsx("div",{className:o.default(T.titleWrapper,h),children:t.jsx("div",{className:o.default(T.title,b),children:x})})]}):"",classes:e.__assign(e.__assign({},l),{popper:o.default(T.popper,l.popper,n)})},f))};
