"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("classnames"),r=require("../constants.js"),t=require("./DQAlertsTooltip.js"),a=require("../styles.js"),l=require("../utils.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=i(s);exports.DQAlertTooltip=function(s){var i,o,u=s.alert,c=s.alertsNum,d=s.alertState,j=s.isIssueData,m=s.linkToDQPage,x=a.useDQUnvalidatedContentStyles({}),T=l.isResolved(u.status),f=T?r.ALERT_ICONS.Resolved:r.ALERT_ICONS[d];return e.jsx(t.DQAlertsTooltip,{alert:u,alertIcon:e.jsx(f,{className:n.default(x[d],x.alertIcon)}),linkToDQPage:m,children:e.jsxs("div",{className:n.default(x.errorContainer,(i={},i[x.missingContainer]=j&&d===r.ALERT_STATES.missing,i)),children:[e.jsx(f,{className:n.default((o={},o[x[d]]=!T,o[x.Resolved]=T,o),x.alertIcon)}),e.jsx("div",{children:!T&&e.jsxs(e.Fragment,{children:[e.jsxs("span",{className:n.default(x[d],x.errorText),children:[d,": "]}),e.jsx("span",{className:x.errorNum,children:c})]})})]})})};
