"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("../../../../utils/cn/cn.cjs.js"),n=require("../../../../src/components/ComplexTooltip/components/ComplexTooltipContent/complexTooltipContent.module.css"),s=require("../../../Typography/Typography.cjs.js"),h=require("../../../Icon/Icon.cjs.js"),a=require("../../../Icon/constants.cjs.js"),x=require("../../../TextButton/TextButton.cjs.js"),_=({style:t,title:i,description:l,link:o,isBlurred:c,className:u,onMouseEnter:p,onMouseLeave:d,onClose:r})=>e.jsxs("div",{className:m.cn(n.content,c&&n.blurred,u),"data-style":t,onMouseEnter:p,onMouseLeave:d,children:[e.jsxs("div",{className:n.contentHeader,children:[e.jsx(s.Typography,{as:"h4",defaultVariant:"headingSm",children:i}),r&&e.jsxs("button",{className:n.closeButton,onClick:r,children:["(",e.jsx(h.Icon,{name:a.EIconName.CLOSE,className:n.closeIcon}),")"]})]}),e.jsx(s.Typography,{as:"p",defaultVariant:"bodySm",children:l}),o&&e.jsx(x.TextButton,{suffixIcon:a.EIconName.ARROW_FORWARD,as:"a",href:o.url,target:"_blank",rel:"noopener noreferrer",inverted:t==="dark"&&!c||t==="light"&&c,children:o.label})]});exports.ComplexTooltipContent=_;
