import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/objectWithoutProperties";import{jsx as r,jsxs as i,Fragment as o}from"react/jsx-runtime";import a from"classnames";import{makeStyles as p}from"@material-ui/core";import{Tooltip as n}from"./Tooltip.js";var c=["classes","popperClassName","staticTitle","staticTitleHeight","title","titleClassName","titleWrapperClassName"];function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function s(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?l(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var m=p((function(t){return{popper:{"& .MuiTooltip-tooltip":{backgroundColor:t.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(t.palette.background.b10," 18.23%, rgba(59, 59, 59, 0) 100%)"),opacity:.8,top:0},"&::after":{background:"linear-gradient(0deg, ".concat(t.palette.background.b10," 18.23%, rgba(59, 59, 59, 0) 100%)"),bottom:0,opacity:.8,borderRadius:4}},title:{maxHeight:function(t){var e=t.staticTitleHeight;return"calc(100vh - ".concat((void 0===e?0:e)+24,"px)")},overflowY:"auto",padding:"8px 16px 8px 8px"}}})),b=function(t){var p=t.classes,l=void 0===p?{}:p,b=t.popperClassName,d=void 0===b?"":b,g=t.staticTitle,u=void 0===g?"":g,f=t.staticTitleHeight,h=void 0===f?0:f,v=t.title,x=t.titleClassName,O=void 0===x?"":x,j=t.titleWrapperClassName,y=void 0===j?"":j,T=e(t,c),w=m({staticTitleHeight:u?h||24:0});return r(n,s({interactive:!0,isFullScreen:!1,title:u||v?i(o,{children:[u&&r("div",{className:w.staticTitle,children:u}),r("div",{className:a(w.titleWrapper,y),children:r("div",{className:a(w.title,O),children:v})})]}):"",classes:s(s({},l),{},{popper:a(w.popper,l.popper,d)})},T))};export{b as ScrollableTooltip};
//# sourceMappingURL=ScrollableTooltip.js.map
