"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/objectWithoutProperties"),r=require("react/jsx-runtime"),i=require("classnames"),a=require("@material-ui/core"),o=require("./Tooltip.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=l(e),n=l(t),c=l(i),s=["classes","popperClassName","staticTitle","staticTitleHeight","title","titleClassName","titleWrapperClassName"];function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){p.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=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(e){var t=e.classes,i=void 0===t?{}:t,a=e.popperClassName,l=void 0===a?"":a,p=e.staticTitle,u=void 0===p?"":p,g=e.staticTitleHeight,f=void 0===g?0:g,h=e.title,m=e.titleClassName,v=void 0===m?"":m,x=e.titleWrapperClassName,j=void 0===x?"":x,O=n.default(e,s),y=b({staticTitleHeight:u?f||24:0});return r.jsx(o.Tooltip,d({interactive:!0,isFullScreen:!1,title:u||h?r.jsxs(r.Fragment,{children:[u&&r.jsx("div",{className:y.staticTitle,children:u}),r.jsx("div",{className:c.default(y.titleWrapper,j),children:r.jsx("div",{className:c.default(y.title,v),children:h})})]}):"",classes:d(d({},i),{},{popper:c.default(y.popper,i.popper,l)})},O))};
//# sourceMappingURL=ScrollableTooltip.js.map
