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