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