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