import{__assign as r}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as s,jsxs as e,Fragment as t}from"react/jsx-runtime";import a from"classnames";import{ALERT_STATES as o,ALERT_ICONS as i}from"../constants.js";import{DQAlertsTooltip as l}from"./DQAlertsTooltip.js";import{useDQUnvalidatedContentStyles as n}from"../styles.js";import{isResolved as m}from"../utils.js";var c=function(c){var d,p,u=c.alert,f=c.alertsNum,N=c.alertState,h=c.isIssueData,j=c.linkToDQPage,v=n({}),g=m(u.status),D=g?i.Resolved:i[N];return s(l,r({alert:u,alertIcon:s(D,{className:a(v[N],v.alertIcon)}),linkToDQPage:j},{children:e("div",r({className:a(v.errorContainer,(d={},d[v.missingContainer]=h&&N===o.missing,d))},{children:[s(D,{className:a((p={},p[v[N]]=!g,p[v.Resolved]=g,p),v.alertIcon)}),s("div",{children:!g&&e(t,{children:[e("span",r({className:a(v[N],v.errorText)},{children:[N,": "]})),s("span",r({className:v.errorNum},{children:f}))]})})]}))}))};export{c as DQAlertTooltip};
