import{jsxs as e,jsx as a}from"react/jsx-runtime";import r from"classnames";import{Typography as i,Accordion as t,AccordionSummary as o,Tooltip as n,AccordionDetails as s}from"@material-ui/core";import l from"@material-ui/icons/ArrowForward";import{truncateString as c}from"../../Search/utils/truncate.js";import{useDQUnvalidatedContentStyles as d}from"../styles.js";import{UniversalLink as m}from"../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{MIXPANEL_ACTION_TYPES as u}from"../../../constants/mixpanel.js";import{DQAccordionDetailsContent as h}from"./DQAccordionDetailsContent.js";var p=function(p){var v=p.assetsData,f=p.maxHeight,D=p.onMouseLeave,N=p.onMouseEnter,x=p.tooltipRef,g=d({maxHeight:f});return e("div",{ref:x,className:g.container,onMouseLeave:D,onMouseEnter:N,children:[e("div",{children:[a(i,{className:g.headerText,"data-testid":"Status_badge__DQ_unvalidated_content",children:"Data Quality"}),a(i,{className:g.subheaderText,children:"Fusion real-time data quality rules for app data"})]}),a("div",{className:g.relative,children:a("div",{className:g.accordionsWrapper,children:Object.keys(v).map((function(i){var d,p=v[i];return e(t,{className:g.accordion,defaultExpanded:!0,children:[a(o,{className:r("large","stretched"),children:e("div",{className:g.headerWrapper,children:[a("span",{children:c(i,{maxChars:35,charsNumFromStart:13,charsNumFromEnd:12})}),a(n,{title:"Go to Data Quality page",children:a("div",{children:a(m,{className:g.link,href:null===(d=p[0])||void 0===d?void 0:d.linkToDQPage,onClick:function(){var e,a;null===(e=(a=window)[Symbol.for("logToMixpanel")])||void 0===e||e.call(a,u.REDIRECT.ASSET_DASHBOARD,{referer:"DQ Badge"})},children:a(l,{className:g.linkIcon})})})})]})}),a(s,{className:g.accordionDetails,children:a(h,{assets:p})})]},i)}))})})]})};export{p as DQUnvalidatedContent};
//# sourceMappingURL=DQUnvalidatedContent.js.map
