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