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