@reltio/remotes 1.4.1122 → 1.4.1123

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/6027.js +1 -1
  2. package/7990.js +1 -1
  3. package/8442.js +1 -1
  4. package/package.json +1 -1
package/7990.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[7990],{97991:(e,t,r)=>{r.d(t,{Z:()=>p});var l,a=r(94079),n=r(71153),i=r.n(n),o=r(24328),c=r.n(o);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},s.apply(this,arguments)}!function(e){e[e.ICON_MODE=0]="ICON_MODE",e[e.TEXT_MODE=1]="TEXT_MODE",e[e.ERROR_MODE=2]="ERROR_MODE"}(l||(l={}));const p=e=>{let{className:t,icon:r,avatarText:n,rootClasses:p}=e,d=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["className","icon","avatarText","rootClasses"]);const[u,f]=(0,o.useState)(null);(0,o.useEffect)((()=>{f(r?l.ICON_MODE:l.TEXT_MODE)}),[r,n]);const m=()=>{f(l.ERROR_MODE)};switch(u){case l.ICON_MODE:return c().createElement(a.Avatar,s({className:i()(t,null==p?void 0:p.iconRoot),src:r,onError:m},d));case l.TEXT_MODE:case l.ERROR_MODE:return c().createElement(a.Avatar,s({className:i()(t,null==p?void 0:p.textRoot)},d),n);default:return null}}},10237:(e,t,r)=>{r.d(t,{Z:()=>f});var l=r(27556),a=r(13980),n=r.n(a),i=r(24328),o=r.n(i);function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){s(e,t,r[t])}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const p=(0,r(79692).Z)((e=>({"basic-view__paper":c({display:"flex",flexDirection:"column"},e.basicView)})));function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},d.apply(this,arguments)}const u=(0,i.forwardRef)(((e,t)=>{let{children:r,className:a}=e,n=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["children","className"]);const i=p();return o().createElement(l.Z,d({ref:t,className:a,classes:{root:i["basic-view__paper"]}},n),r)}));u.displayName="BasicView",u.propTypes={children:n().node,className:n().string};const f=u},4094:(e,t,r)=>{r.d(t,{Z:()=>s});var l=r(24328),a=r.n(l),n=r(71153),i=r.n(n);const o=(0,r(79692).Z)({"basic-view-content":{flex:"1 1 auto",padding:"0 24px 24px","&:first-child":{paddingTop:"24px"}}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},c.apply(this,arguments)}const s=e=>{let{children:t,className:r}=e,l=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["children","className"]);const n=o();return a().createElement("div",c({className:i()(n["basic-view-content"],r)},l),t)}},92778:(e,t,r)=>{r.d(t,{Z:()=>s});var l=r(24328),a=r.n(l),n=r(15223),i=r(94079);const o=(0,r(79692).Z)({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},c.apply(this,arguments)}const s=e=>{let{title:t,children:r=null,classes:l={}}=e,s=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["title","children","classes"]);const p=o();return a().createElement(n.Z,c({className:l.root,classes:{root:p.toolbar}},s),a().createElement(i.Typography,{className:l.title,classes:{root:p.title},variant:"h6"},t),r)}},43290:(e,t,r)=>{r.d(t,{Z:()=>p});var l=r(24328),a=r.n(l),n=r(71153),i=r.n(n),o=r(17440);const c=(0,r(79692).Z)((e=>({bar:{backgroundColor:e.palette.secondary.main,opacity:.12,position:"absolute",minHeight:"20px",minWidth:"5px",borderRadius:"2px",top:0,left:0,height:"100%"}}))),s=e=>(0,o.is)(Number,e),p=e=>{let{className:t,width:r=0,maxWidth:n}=e;const o=c(),p=(0,l.useCallback)((e=>(n?100*e/n:0)+"%"),[n]);return r?a().createElement("div",{className:i()(o.bar,t),style:{width:s(r)?p(r):r}}):null}},2256:(e,t,r)=>{r.d(t,{Z:()=>n});var l=r(24328),a=r.n(l);class n extends a().Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){this.setState({error:e}),console.error(e)}render(){const{children:e,error:t}=this.props;return this.state.error?t:e}}},75512:(e,t,r)=>{r.d(t,{Z:()=>p});var l=r(13980),a=r.n(l),n=r(24328),i=r.n(n),o=r(44443);const c=()=>i().createElement("div",{style:{display:"none"}}),s=e=>{let{widthToHide:t,children:r}=e;return i().createElement(o.Z,{handleWidth:!0,render:e=>{let{width:l}=e;return l>t?i().createElement(i().Fragment,null,r):i().createElement(c,null)}})};s.propTypes={children:a().node,widthToHide:a().number.isRequired};const p=s},67268:(e,t,r)=>{r.d(t,{Z:()=>N});var l=r(13980),a=r.n(l),n=r(24328),i=r.n(n),o=r(66244),c=r.n(o),s=r(44443),p=r(17440),d=r(71153),u=r.n(d);function f(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}const m=e=>{let{x:t,y:r,width:l,height:a,id:n,minWidth:i,minHeight:o,maxWidth:c,maxHeight:s,isStatic:p}=e;return{x:t,y:r,w:l,h:a,minW:i,minH:o,maxW:c,maxH:s,i:n,static:p}},h=e=>{let{x:t,y:r,w:l,h:a,maxW:n,minW:i,minH:o,maxH:c,i:s}=e;return{x:t,y:r,width:l,height:a,minWidth:i,minHeight:o,maxWidth:n,maxHeight:c,id:s,isStatic:f(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},y=e=>(e||[]).map(h),g=(0,p.curry)(((e,t)=>(e||[]).find((0,p.propEq)("id",t)))),v=(0,p.curry)(((e,t,r)=>(0,p.mergeAll)([r,(0,p.pick)(e,t)]))),b=(0,p.curry)(((e,t,r)=>(r||[]).map((r=>(0,p.pipe)((0,p.prop)("id"),g(t),(0,p.defaultTo)({}),v(e,p.__,r))(r)))));var E=r(79692),x=r(99493);const O=(0,E.Z)((e=>({gridLayout:{position:"relative",width:"100%","& .react-grid-item":{"&.react-grid-placeholder":{background:"rgba(0, 0, 0, 0.03)",border:"2px dashed rgba(0, 0, 0, 0.3)",borderRadius:"3px",transitionDuration:"100ms",zIndex:7,userSelect:"none","& .react-resizable-handle":{display:"none"}},"&.static .react-resizable-handle":{display:"none"},"&.cssTransforms":{transitionProperty:"transform"},"&.resizing":{zIndex:9,willChange:"width, height",pointerEvents:"none"},"&.react-draggable-dragging":{transition:"none",zIndex:8,willChange:"transform","& .react-resizable-handle":{backgroundImage:"none"}},"& .react-resizable-handle":{position:"absolute",width:"17px",height:"17px",bottom:0,right:0,zIndex:20,backgroundImage:`url('${(0,x.m5F)('<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path stroke="#505050" stroke-opacity=".54" d="M9.5 0v10M0 9.5h9M7.5 4v4M4 7.5h3"/>\n</svg>')}')`,backgroundRepeat:"no-repeat",backgroundOrigin:"content-box",boxSizing:"border-box",cursor:"se-resize"},"&.fullscreen":{visibility:"visible",position:"unset",width:"100% !important",height:"100% !important",transform:"translate(0) !important"}}},gridFullscreen:{height:"100% !important",overflowY:"hidden","& .react-resizable-handle, & .react-grid-item":{visibility:"hidden"}}})));function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},w.apply(this,arguments)}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const S=e=>{let{views:t,layout:r,layoutOptions:l,onLayoutChanged:a,draggableHandle:o,LayoutItem:d,onRemove:f,onDrop:v,droppingItem:E,isDroppable:x,classes:S}=e;const N=(0,n.useRef)(),R=O(),[I,A]=(0,n.useState)(null),[C,L]=(0,n.useState)(0),{cols:D,rowHeight:_,margin:P}=l,j=(0,n.useMemo)((()=>(e=>(e||[]).map(m))(r)),[r]),k=(0,p.pipe)(y,b(["autosizing"],r),a),M=(0,n.useCallback)((e=>A((t=>t?null:e))),[]),B=null!==I,F=(0,n.useCallback)(((e,t)=>{let n=!1;const i=r.map((r=>{if(r.id===t&&e){const t=((e,t)=>{const{margin:r,rowHeight:l}=t;return Math.ceil((e+r[1])/(l+r[1]))})(e,l);if(r.height!==t)return n=!0,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){T(e,t,r[t])}))}return e}({},r,{minHeight:t,maxHeight:t,height:t})}return r}));n&&a(i)}),[r,l,a]);return i().createElement(i().Fragment,null,i().createElement(s.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>L(e)}),i().createElement(c(),{innerRef:N,layout:j,cols:D,draggableHandle:o,autoSize:!0,rowHeight:_,width:C,margin:P,onLayoutChange:k,isResizable:!B,isDraggable:!B,className:u()(R.gridLayout,{[R.gridFullscreen]:B}),onDrop:(e,t,r)=>{v&&v(y(e),h(t),r)},droppingItem:E,isDroppable:x},j.map((e=>{const l=I===e.i,a=(g(r,e.i)||{}).autosizing?{AutosizeComponent:(n=e.i,i().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>{F(t,n)}}))}:{};var n;return i().createElement(d,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:M,onRemove:f,className:u()({fullscreen:l},S.item),isFullscreen:l},a))}))))};S.defaultProps={layoutOptions:{cols:4,rowHeight:30,margin:[15,15]},onConfigChanged:p.identity,onLayoutChanged:p.identity,classes:{}},S.propTypes={views:a().array,layout:a().array,layoutOptions:a().object,onConfigChanged:a().func,onLayoutChanged:a().func,onDrop:a().func,onRemove:a().func,LayoutItem:a().elementType,draggableHandle:a().string,isDroppable:a().bool,droppingItem:a().object,classes:a().shape({item:a().string})};const N=(0,n.memo)(S)},94175:(e,t,r)=>{r.d(t,{Z:()=>s});var l=r(87638),a=r(99493),n=r(24328),i=r.n(n),o=r(52730),c=r(97991);const s=e=>{let{sourceType:t,className:r,classes:n}=e;const s=(0,o.useSelector)(l.ZP.selectors.getMetadata),{uri:p,icon:d}=(0,a.PWK)(s,t),u=(0,a.tH7)(s,p)[0];return i().createElement(c.Z,{className:r,avatarText:u,icon:d?(0,a.vPL)("https://s3.amazonaws.com/reltio.images/api",d):null,variant:"square",rootClasses:n})}},30553:(e,t,r)=>{r.d(t,{Z:()=>c});var l=r(13980),a=r.n(l),n=r(24328),i=r.n(n);const o=e=>{let{height:t,margin:r}=e;return i().createElement("div",{style:{width:"1px",height:`${t}px`,borderLeft:"1px solid rgba(0,0,0,0.38)",margin:`0 ${r}px`,flexShrink:"0"}})};o.propTypes={height:a().number,margin:a().number};const c=o},84900:(e,t,r)=>{r.d(t,{Z:()=>s});var l=r(24328),a=r.n(l),n=r(99493),i=r(17440);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},o.apply(this,arguments)}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=e=>{const t=t=>{let{data:r}=t,s=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(t,["data"]);const p=(0,l.useMemo)((()=>r&&(e=>{const t=(0,n.QK6)((0,i.pluck)("value",e),1);return e.map(((e,r)=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){c(e,t,r[t])}))}return e}({},e,{percent:t[r]})))})(r)),[r]);return a().createElement(e,o({data:p},s))};return t.displayName="WithPercents",t}},99256:(e,t,r)=>{r.d(t,{d:()=>a});const l=(0,r(79692).Z)({clickable:{cursor:"pointer"}}),a=e=>{const t=l();return e?t.clickable:void 0}},2804:(e,t,r)=>{r.d(t,{a:()=>a});var l=r(24328);const a=e=>{const[t,r]=(0,l.useState)(!1),[a,n]=(0,l.useState)({});return(0,l.useEffect)((()=>{e().then((e=>{n(e||{})})).then((e=>r(!0))).catch((e=>r(!0)))}),[]),{isLoaded:t,savedState:a}}},67885:(e,t,r)=>{let l,a;r.d(t,{K:()=>l,o:()=>a}),function(e){e.WITHIN="within",e.AGO="ago",e.BETWEEN="between"}(l||(l={})),function(e){e.INIT="init",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(a||(a={}))},32944:(e,t,r)=>{r.d(t,{Z:()=>o});var l=r(24328),a=r.n(l),n=r(94079);const i=(0,r(79692).Z)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),o=()=>{const e=i();return a().createElement(n.LinearProgress,{color:"secondary",className:e.loader})}},58141:(e,t,r)=>{r.d(t,{Z:()=>c});var l=r(24328),a=r.n(l),n=r(10237),i=r(92316);const o=(0,r(79692).Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),c=e=>{let{id:t,children:r}=e;const l=o();return a().createElement(i.H.Provider,{value:t},a().createElement(n.Z,{className:l.view},r))}},92316:(e,t,r)=>{r.d(t,{H:()=>a});var l=r(24328);const a=r.n(l)().createContext(null);a.displayName="DashboardViewIdContext"},17990:(e,t,r)=>{r.r(t),r.d(t,{default:()=>oi});var l=r(24328),a=r.n(l),n=r(52730),i=r(33016),o=r(36138),c=r(99493),s=r(71153),p=r.n(s),d=r(17440),u=r(87918),f=r.n(u),m=r(2804),h=r(21077),y=r(87638);function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v;!function(e){e.UNSUPPORTED="unsupported",e.SUMMARY="summary",e.MONTH_DISTRIBUTION="monthDistribution",e.DAY_OF_WEEK_DISTRIBUTION="dayOfWeekDistribution",e.DAY_OF_MONTH_DISTRIBUTION="dayOfMonthDistribution"}(v||(v={}));const b=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){g(e,t,r[t])}))}return e}({},c.N0y,v);let E;!function(e){e.STRING="string",e.FLOAT="float",e.INTEGER="integer",e.BOOLEAN="boolean",e.DATE="date",e.SSN="SSN",e.UNKNOWN="unknown"}(E||(E={}));const x={[c.yn8.ATTRIBUTE_TYPE]:[{id:"FillRateView",type:b.FILL_RATE,title:f().text("Fill rate")},{id:"UniquenessAnalysisView",type:b.UNIQUENESS,title:f().text("Uniqueness analysis")},{id:"SummaryView",type:b.SUMMARY,title:f().text("Summary")},{id:"ValidationView",type:b.DATA_VALIDATION,title:f().text("Profiles with invalid data")},{id:"FrequencyAnalysis",type:b.FREQUENCY,title:f().text("Frequency analysis")},{id:"LengthStatistics",type:b.LENGTH_STATISTIC,title:f().text("Length statistics")},{id:"PatternAnalysis",type:b.PATTERN,title:f().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:b.CROSSWALK_ANALYSIS,title:f().text("Source system analysis")},{id:"MonthDistribution",type:b.MONTH_DISTRIBUTION,title:f().text("Month distribution")},{id:"DayOfWeekDistribution",type:b.DAY_OF_WEEK_DISTRIBUTION,title:f().text("Day of week distribution")},{id:"DayOfMonthDistribution",type:b.DAY_OF_MONTH_DISTRIBUTION,title:f().text("Day of month distribution")},{id:"ValueDistribution",type:b.VALUE_DISTRIBUTION,title:f().text("Value distribution")},{id:"UnsupportedDataType",type:b.UNSUPPORTED,title:f().text("Unsupported Data Type")}],[c.yn8.ENTITY_TYPE]:[{id:"SummaryView",type:b.SUMMARY,title:f().text("Summary")},{id:"ValidationView",type:b.DATA_VALIDATION,title:f().text("Profiles with invalid data")},{id:"ConsolidationRate",type:b.CONSOLIDATION_RATE,title:f().text("Consolidation rate")}]},O={[c.yn8.ATTRIBUTE_TYPE]:{default:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"LengthStatistics"}],[E.SSN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:2,height:19,id:"PatternAnalysis"}],[E.BOOLEAN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"FrequencyAnalysis"},{x:0,y:19,width:2,height:19,id:"CrosswalkAnalysis"}],[E.DATE]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}],[E.INTEGER]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}],[E.FLOAT]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}]},[c.yn8.ENTITY_TYPE]:[{x:0,y:0,width:6,height:6,id:"SummaryView"},{x:0,y:6,width:6,height:18,id:"ConsolidationRate"},{x:0,y:24,width:4,height:12,id:"ValidationView"}]},w=a().createContext(null);w.displayName="ChartsDataContext";const T=a().createContext(null);T.displayName="DetailedAttributeTypeContext";const S=a().createContext(null);S.displayName="DVFContext";const N=a().createContext(null);N.displayName="EntityTypeContext";var R=r(67885),I=r(67218);function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const C=e=>{let{entityType:t,detailedAttributeType:r,dataLevel:a,metrics:n}=e;const[i,o]=(0,l.useState)(R.o.INIT),[s,p]=(0,l.useState)({}),[u,f]=(0,l.useState)(null),m=null==r?void 0:r.fieldName,h=null==t?void 0:t.uri,y=(0,I._)(),g=e=>{console.error(e),o(R.o.ERROR),p({})},v=e=>{p(e),o(R.o.LOADED)},b=(0,l.useCallback)((async()=>{if(h)if(f(Date.now()),o(R.o.LOADING),p({}),a===c.yn8.ENTITY_TYPE){const e=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:[h]}]),t=(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.ACTIVE_ONLY,filter:e}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}),r=(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.INACTIVE_ONLY,filter:e}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}),l=(0,c.TTx)({entityTypeUri:h,dataLevel:a,metrics:n});y(Promise.all([t,r,l])).then((e=>{var t,r;let[l,a,n]=e;const i=(0,d.pipe)((0,d.path)(["consolidationRate","totalCrosswalksBySource"]),(0,d.omit)(["ReltioCleanser"]),d.keys,d.length)(n);v(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){A(e,t,r[t])}))}return e}({},n,{summary:{inactiveProfiles:null===(t=a.type)||void 0===t?void 0:t[(0,c.nIW)(h)],activeProfiles:null===(r=l.type)||void 0===r?void 0:r[(0,c.nIW)(h)],sourceSystems:i}}))})).catch(g)}else{if(!m)return;y((0,c.TTx)({entityTypeUri:h,attributes:[m],dataLevel:a,metrics:n})).then((0,d.pipe)((0,d.pathOr)({},["statistic",m]),v)).catch(g)}}),[o,p,y,m,h,a,n]);(0,l.useEffect)((()=>{const e=!!u&&Date.now()-u>18e4;a===c.yn8.ENTITY_TYPE&&e&&E()}));const E=(0,l.useCallback)((()=>{try{b()}catch(e){g(e)}}),[b]);return(0,l.useEffect)((()=>{E()}),[E]),(0,l.useMemo)((()=>({data:s,state:i,reload:E})),[s,i,E])},L=e=>{const[t,r]=(0,l.useState)(null),a=(0,I._)();return(0,l.useEffect)((()=>{const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:(0,d.pluck)("uri",e)}]);a((0,c.FK9)({query:(0,c.ECL)({activeness:"active",filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]})).then((e=>{let{type:t}=e;return r(t)})).catch((()=>r(null)))}),[e]),e=>Number((null==t?void 0:t[(0,c.nIW)(e)])||0)},D=(e,t,r)=>({attributes:(t||[]).map(((t,l)=>{let{filter:a,fieldName:n,values:i,uri:o}=t;return{data:{uri:o||(null==r?void 0:r.uri),entityTypeUri:e,fieldName:n},filter:a,id:`attribute_${l}`,operator:c.tJI.and,values:i}})),entityTypes:[e],id:"group",operator:c.tJI.or});function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){P(e,t,r[t])}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const j=(0,d.map)((e=>_({},e,{localizedValue:f().number(e.value)}))),k=e=>(0,d.isNil)(e)?"":`(${e}%)`,M=e=>(0,d.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),B=(0,d.curry)(((e,t,r)=>({advanced:[D(t,r.map((0,d.when)((()=>(0,c.Lt4)(null==e?void 0:e.type)),(0,d.evolve)({values:(0,d.map)((0,c.mOr)(c.ZBU))}))),e)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}))),F=e=>t=>{let{detailedAttributeType:r,entityTypeUri:l}=t;return(0,d.pipe)(e({fieldName:null==r?void 0:r.fieldName,entityTypeUri:l}),B(r,l))},U=e=>{switch(e){case c.oS0.TYPE_BLOB:case c.oS0.TYPE_BLOG_URL:case c.oS0.TYPE_CIK_ID:case c.oS0.TYPE_ENTITY_ID:case c.oS0.TYPE_IMAGE_URL:case c.oS0.TYPE_STRING:case c.oS0.TYPE_TEXT:case c.oS0.TYPE_URL:return E.STRING;case c.oS0.TYPE_COUNT:case c.oS0.TYPE_DOLLAR:case c.oS0.TYPE_INT:case c.oS0.TYPE_LONG:return E.INTEGER;case c.oS0.TYPE_FLOAT:case c.oS0.TYPE_DOUBLE:case c.oS0.TYPE_NUMBER:return E.FLOAT;case c.oS0.TYPE_BOOLEAN:case c.oS0.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return E.BOOLEAN;case c.oS0.TYPE_ACTIVENESS_DATE:case c.oS0.TYPE_DATE:case c.oS0.TYPE_LOCAL_DATE:case c.oS0.TYPE_TIMESTAMP:return E.DATE;case c.oS0.TYPE_SSN:return E.SSN;default:return E.UNKNOWN}},z=e=>{let{views:t,supportedViews:r,layout:l}=e;return l.reduce(((e,l)=>{const a=(0,d.prop)("type",t.find((0,d.propEq)("id",l.id))),n=t.findIndex((0,d.propEq)("id",l.id));return-1!==n?r.includes(a)?e.concat(t[n]):e.concat((0,d.assoc)("type",b.UNSUPPORTED,t[n])):e.concat({id:l.id,type:b.UNSUPPORTED,title:f().text("Unsupported")})}),[])},V=(0,d.pipe)((0,d.defaultTo)([]),(0,d.pluck)("type"),(0,d.filter)((e=>Object.values(c.N0y).includes(e)))),H=e=>{let{percent:t,value:r}=e;return _({width:`${t}%`},r>0&&{minWidth:"3px"})},W=((0,d.pipe)((0,d.pluck)("percent"),(e=>Math.max(...e))),(0,d.pipe)((0,d.pluck)("value"),(e=>Math.max(...e))),(0,d.curry)(((e,t)=>t.map((t=>(0,d.assoc)("label",(0,c.tH7)(e,t.group)||t.label,t)))))),Y=e=>{let{entityTypeUri:t}=e;return()=>B(void 0,t,[])},Z=(e,t)=>(e||[]).some((0,d.allPass)([(0,d.propEq)("attribute",t),(0,d.propEq)("status",c.lVm.ACTIVE)])),G=e=>[c.oS0.TYPE_FLOAT,c.oS0.TYPE_DOUBLE,c.oS0.TYPE_NUMBER].includes(e),$=e=>(0,c.idV)(e.label||e.name);let q;function Q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){K(e,t,r[t])}))}return e}function K(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}!function(e){e.INCLUDED_IN_MATCHING="includedInMatching",e.CONTAIN_VF="containVF",e.REQUIRED="required",e.REFERENCE="reference",e.RDM_LOOKUP="RDMLookup"}(q||(q={}));const X=(0,d.curry)(((e,t)=>e.some((e=>t.details[e.value])))),J=(0,d.curry)(((e,t)=>{var r;return 0===e.length||X(e,t)||(null===(r=t.children)||void 0===r?void 0:r.some((t=>J(e,t))))})),ee=(0,d.curry)(((e,t)=>{var r;const l=e[t.fieldName];return null==l||null===(r=l.find((0,d.propEq)("group",c.s9T.EXISTS)))||void 0===r?void 0:r.value})),te=(0,d.curry)(((e,t)=>{var r;const l=e[t.fieldName];return!(null!=l&&null!==(r=l.find((0,d.propEq)("group",c.s9T.EXISTS)))&&void 0!==r&&r.value)})),re=(0,d.curry)((function(e,t){var r;let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const a=t.fieldName||(0,c.Tde)(t.uri,l);return te(e,Q({},t,{fieldName:a}))||(null===(r=t.children)||void 0===r?void 0:r.some((r=>re(e,r,l.concat({name:t.name,label:t.label})))))})),le=(0,d.curry)(((e,t)=>t.reduce(((t,r)=>{const l=((e,t)=>{var r;return null===(r=e.label||e.name)||void 0===r?void 0:r.toLowerCase().includes(t.toLowerCase())})(r,e),a=l?r.children||[]:le(e,r.children||[]);return(l||a.length)&&t.push(Object.assign({},r,a.length&&{children:a})),t}),[])));function ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){ne(e,t,r[t])}))}return e}function ne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ie=e=>{let{attrTypeItem:t,dvf:r=[],matchAttributes:l=[]}=e;const{uri:a,required:n,isAttributeReference:i}=t;return{[q.INCLUDED_IN_MATCHING]:l.includes(a),[q.CONTAIN_VF]:Z(r,a),[q.REQUIRED]:!!n,[q.REFERENCE]:i,[q.RDM_LOOKUP]:(0,c.lS4)(t)}},oe=e=>({[q.INCLUDED_IN_MATCHING]:f().text("Included in match rule"),[q.CONTAIN_VF]:f().text("Has validation functions"),[q.REQUIRED]:f().text("Required"),[q.REFERENCE]:f().text("Reference attribute"),[q.RDM_LOOKUP]:f().text("RDM")}[e]||e),ce=(0,d.curry)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return(0,d.pipe)((0,d.chain)((e=>{const a=e.children?ce(e.children,t.concat({name:e.name,label:e.label}),r||(0,c.YkG)(e),l+1):[];return[{attributeItem:ae({},e,{fieldName:(0,c.Tde)(e.uri,t),isAttributeReference:(0,c.YkG)(e)||r}),level:l},...a]})))(e)})),se=(0,d.prop)("isAttributeReference");let pe;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(pe||(pe={}));const de=a().createContext(null);de.displayName="DataLevelContext";var ue=r(67268),fe=r(2899),me=r(83348),he=r(84900),ye=r(79692);const ge=(0,ye.Z)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"}}),ve=e=>{let{label:t,value:r}=e;const l=ge();return a().createElement(a().Fragment,null,t&&a().createElement("span",{className:p()(l.label,l.chartDataLabel)},t),r)},be=(0,ye.Z)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),Ee=e=>{let{data:t,title:r,DataRenderer:l=ve}=e;const n=be();return a().createElement("div",{className:n.tooltipWrapper},r&&a().createElement("div",{className:n.title},r),t.map(((e,t)=>a().createElement("div",{key:t,className:n.row},a().createElement(l,e)))))};function xe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Oe={content:'""',position:"absolute",background:"rgba(0, 0, 0, 0.38)",width:"1px",height:"4px",bottom:"-4px",left:0},we=(0,ye.Z)({root:{display:"flex",flexDirection:"column",height:"100%"},stackedBar:{width:"100%",display:"flex",flexWrap:"nowrap",marginTop:"13px",position:"relative","&:before":Oe,"&:after":function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){xe(e,t,r[t])}))}return e}({},Oe,{right:0,left:"initial"})},bar:{height:"24px",flexGrow:1,position:"relative",width:"50%",transition:"width 0.7s","&:hover":{"&:after":{content:'""',background:"rgba(0, 0, 0, 0.1)"}},"&:after":{position:"absolute",top:"-3px",bottom:"-5px",left:"-5px",right:"-5px",transition:"background 0.3s",zIndex:1,pointerEvents:"none"}},inactivePart:{background:"#EFEFEF"},tooltipTitle:{fontSize:"11px"},tooltipFillRate:{marginTop:"4px"},tooltip:{background:"#fff",filter:"drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)) drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2))",padding:"5px 8px"},legendWrapper:{position:"relative",flexGrow:1},legendLabel:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},legendValue:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.87)"},clickable:{cursor:"pointer"},rangeWrapper:{display:"flex",justifyContent:"space-between",marginTop:"4px"},rangeValue:{color:"rgba(0, 0, 0, 0.54)",fontSize:"12px"}});function Te(){return Te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Te.apply(this,arguments)}const Se=(0,l.forwardRef)(((e,t)=>{let{className:r}=e,l=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["className"]);const n=we();return a().createElement("div",Te({className:p()(n.bar,r)},l,{ref:t}))}));Se.displayName="Bar";const Ne=Se,Re=(0,ye.Z)({wrapper:{width:"100%",display:"flex",justifyContent:"center",margin:"auto",flexWrap:"wrap",flexDirection:"column",marginBottom:2},item:{display:"flex",alignItems:"center",height:19},itemColor:{width:12,height:12,marginRight:9,flexShrink:0}}),Ie=e=>{let{payload:t}=e;const r=Re();return a().createElement("div",{className:p()(r.wrapper)},t.map((e=>a().createElement("div",{key:e.id,className:r.item},a().createElement("div",{style:{background:e.color},className:r.itemColor}),e.value))))};function Ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){Ce(e,t,r[t])}))}return e}function Ce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Le=(0,me.Z)(Ne),De=e=>{let{label:t,value:r,percent:l}=e;return[{label:t,value:`${f().number(r)} ${k(l)}`}]},_e=(0,he.Z)((e=>{let{data:t,colors:r,onItemClick:l}=e;const n=we(),i=l&&(e=>l(e)),o=!!l,s=(0,d.pipe)((0,d.pluck)("value"),d.sum)(t);return a().createElement("div",{className:n.root},a().createElement("div",{className:n.stackedBar},t.map(((e,t)=>a().createElement(Le,{className:o&&n.clickable,key:e.label,tooltipTitle:a().createElement(Ee,{data:De(e)}),style:Ae({},H(e),{background:r[t]}),onClick:()=>i(e.group)})))),a().createElement("div",{className:n.rangeWrapper},a().createElement("span",{className:n.rangeValue},"0"),a().createElement("span",{className:n.rangeValue},f().number(s))),a().createElement("div",{className:n.legendWrapper},a().createElement(fe.De,{layout:"vertical",align:"left",verticalAlign:"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%"},content:a().createElement(Ie,null),payload:(t||[]).map(((e,t)=>{let{group:l,label:i,value:o,percent:s}=e;return{id:l,type:"square",color:r[t],value:a().createElement(a().Fragment,null,a().createElement("span",{className:n.legendLabel},i),a().createElement("span",{className:n.legendValue},`${(0,c.k7L)(o,999)} ${k(s)}`))}}))})))}));var Pe=r(92778),je=r(8818),ke=r(75512),Me=r(30553),Be=r(82726);const Fe=(0,ye.Z)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:"5px",lineHeight:"24px"},infoIcon:{position:"relative"}}))),Ue=e=>{let{title:t,infoTooltipTitle:r,children:l}=e;const n=!!r,i=!!l,o=Fe(i);return a().createElement(Pe.Z,{title:t,className:o.root,classes:{title:o.title}},n&&a().createElement(je.k,{icon:Be.Z,size:"XXS",tooltipTitle:r,className:o.infoIcon}),i&&a().createElement(ke.Z,{widthToHide:500},a().createElement(Me.Z,{height:24,margin:16}),l))};var ze=r(44443),Ve=r(2256),He=r(4094),We=r(32944),Ye=r(94079),Ze=r(43266);const Ge=(0,ye.Z)((e=>({container:e=>{let{height:t}=e;return{height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",margin:"0 auto",paddingBottom:t>239?"30px":0,boxSizing:"border-box"}},small:{"& $icon":{maxHeight:"88px"},"& $message":{fontSize:"12px"},"& $title":{fontSize:"13px",fontWeight:400,marginBottom:0},"& $refreshButton":{marginTop:"2px",padding:0}},medium:{"& $icon":{maxHeight:"190px",marginBottom:"24px"}},large:{"& $icon":{height:"256px",width:"256px",marginBottom:"24px"}},icon:e=>{let{height:t}=e;return{paddingTop:0,marginBottom:t>170?"16px":"4px"}},message:{padding:"0 24px",fontSize:"14px",textAlign:"center",whiteSpace:"pre-wrap"},title:{padding:"0 24px",fontSize:"20px",textAlign:"center",color:"rgba(0,0,0,0.87)",fontWeight:500,marginBottom:"8px"},refreshButton:{color:e.palette.primary.main,marginTop:"12px",padding:"6px 8px"},refreshIcon:{width:"24px",height:"24px"}}))),$e=h.B9.ERROR,qe=e=>{let{onRefresh:t,height:r,errorData:l={},variant:n=pe.SMALL}=e;const{Icon:i=$e,message:o,title:c}=l,s=Ge({height:r});return a().createElement("div",{className:p()(s.container,s[`${n}`])},a().createElement(i,{className:s.icon}),c&&a().createElement(Ye.Typography,{className:s.title},c),o&&a().createElement(Ye.Typography,{className:s.message},o),!!t&&a().createElement(Ye.Button,{className:s.refreshButton,startIcon:a().createElement(Ze.Z,{color:"primary",className:s.refreshIcon}),onClick:t,"data-reltio-id":"reltio-dq-dashboard-chart-refresh-button"},a().createElement(Ye.Typography,{variant:"button"},f().text("Refresh"))))},Qe=(0,ye.Z)({container:e=>{let{height:t}=e;return{height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",margin:"0 auto",paddingBottom:t>239?"30px":0,boxSizing:"border-box"}},small:{"& $icon":{maxHeight:"88px"},"& $message":{fontSize:"12px"},"& $title":{fontSize:"13px",fontWeight:400,marginBottom:0}},medium:{"& $icon":{maxHeight:"190px",marginBottom:"24px"}},large:{"& $icon":{maxHeight:"256px",marginBottom:"24px"}},icon:e=>{let{height:t}=e;return{paddingTop:0,marginBottom:t>170?"16px":"4px"}},message:{padding:"0 24px",fontSize:"14px",textAlign:"center",whiteSpace:"pre-wrap"},title:{padding:"0 24px",fontSize:"20px",textAlign:"center",color:"rgba(0,0,0,0.87)",fontWeight:500,marginBottom:"8px",whiteSpace:"pre-wrap"}}),Ke=h.B9.NO_DATA,Xe=e=>{let{height:t,data:r={},variant:l=pe.SMALL}=e;const{Icon:n=Ke,message:i,title:o}=r,c=Qe({height:t});return a().createElement("div",{className:p()(c.container,c[`${l}`])},a().createElement(n,{className:c.icon}),o&&a().createElement(Ye.Typography,{className:c.title},o),i&&a().createElement(Ye.Typography,{className:c.message},i))},Je=(0,ye.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}}))),et=e=>{let{loadingState:t,onRefresh:r,children:l,data:n,className:i}=e;const o=Je();return a().createElement(He.Z,{className:p()(o.viewContent,i)},a().createElement(ze.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:i,height:o}=e;switch(t){case R.o.LOADED:return n&&0!==n.length?a().createElement(Ve.Z,{error:a().createElement(qe,{errorData:{message:f().text("Something went wrong")},height:o,variant:pe.SMALL})},l({data:n,width:i,height:o})):a().createElement(Xe,{height:o,data:{Icon:h.B9.NO_DATA,message:f().text("Go ahead and load some data. We’ll put it on the scales and let you know here if it measures up."),title:f().text("Give us something to go on!")},variant:pe.SMALL});case R.o.LOADING:return a().createElement(We.Z,null);case R.o.ERROR:return a().createElement(qe,{errorData:{Icon:h.B9.ERROR,message:f().text("No need to fret - just refresh and it will work itself out."),title:f().text("Oops! We ran into a problem.")},height:o,onRefresh:r,variant:pe.SMALL});default:return a().createElement("div",null,"Loading...")}})))};var tt=r(10237);const rt=(0,ye.Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),lt=e=>{let{config:t,children:r}=e;const n=rt(),{type:i}=t,o=(0,l.useContext)(de);return a().createElement(tt.Z,{className:n.view,"data-reltio-id":`reltio-dq-dashboard-chart-${i}-${o}`},r)},at=e=>{let{label:t,value:r}=e;const l=ge();return a().createElement(a().Fragment,null,t&&a().createElement("span",{className:p()(l.label,l.infoDataLabel)},t),r)},nt={[c.s9T.MISSING]:"#CE5C00",[c.s9T.EXISTS]:"#C4CE00"},it=(0,d.map)((e=>{let{group:t}=e;return nt[t]||(0,c.f4_)(t)})),ot=e=>({[c.s9T.MISSING]:f().text("Missing"),[c.s9T.EXISTS]:f().text("Exists")}[e]||e),ct=(0,d.pipe)(Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:ot(t),group:t,value:r}})),(0,d.sortBy)((e=>Object.values(c.s9T).indexOf(e.group))),j),st=(0,d.pipe)((0,d.propOr)({},"statistic"),d.toPairs,(0,d.reduce)(((e,t)=>{let[r,l]=t;return null!=l&&l.fillRate&&(e[r]=ct(l.fillRate)),e}),{})),pt=(0,d.propOr)({},"fillRate"),dt=(0,d.pipe)(pt,ct,(0,d.when)(M,(0,d.always)([])),(0,d.converge)(((e,t)=>({chartData:e,colors:t})),[d.identity,it])),ut=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:t===c.s9T.EXISTS?c.j5E.EXISTS:c.j5E.MISSING_VALUE,fieldName:r}]})),ft=F(ut),mt=e=>{const{data:t,state:r,reload:a}=(0,l.useContext)(w),n=(0,l.useMemo)((()=>e(t)),[t,e]);return(0,l.useMemo)((()=>({data:n,state:r,reload:a})),[n,r,a])},ht=e=>{let{keyword:t,entityTypeUri:r}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[D(r)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}},yt=e=>{let{fieldName:t,value:r,entityTypeUri:l}=e;return ht({keyword:`${c.j5E.EQUALS}(${t}, ${r})`,entityTypeUri:l})},gt=(0,d.curry)(((e,t,r)=>{var l;const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length>0?`(${c.NlI.NOT_LIST_EQUALS}(type, ${e.join(",")}))`:""}((0,c.k3T)(e,t)),n=null==r||null===(l=r.keyword)||void 0===l?void 0:l.value;if(a){const e=n?`(${n}) and ${a}`:a;return(0,d.assoc)("keyword",{value:e,isRawFilter:!0},r)}return r})),vt=e=>{const t=(0,n.useDispatch)(),r=(0,n.useSelector)(y.ZP.selectors.getMetadata),a=(0,l.useContext)(T),i=(0,l.useContext)(N);return(0,d.pipe)(e({detailedAttributeType:a,entityTypeUri:i.uri}),gt(r,i.uri),y.ui.actions.openSearch,t)},bt=e=>{let{config:t}=e;const{title:r}=t,{data:l,state:n,reload:i}=mt(dt),{chartData:o,colors:c}=l,s=vt(ft),p=a().createElement(Ee,{title:f().text("Fill rate"),data:[{label:`${f().text("Exists")}:`,value:f().text("Profiles with data")},{label:`${f().text("Missing")}:`,value:f().text("Profiles without data")}],DataRenderer:at});return a().createElement(lt,{config:t},a().createElement(Ue,{title:r,infoTooltipTitle:p}),a().createElement(et,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return a().createElement(_e,{data:t,colors:c,onItemClick:s})})))},Et={[c.dC6.UNIQUE]:"#4BAFFF",[c.dC6.NOT_UNIQUE]:"#C34980"},xt=(0,d.map)((e=>{let{group:t}=e;return Et[t]||(0,c.f4_)(t)})),Ot=e=>({[c.dC6.UNIQUE]:f().text("Unique"),[c.dC6.NOT_UNIQUE]:f().text("Not unique")}[e]||e),wt=(0,d.pipe)(Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:Ot(t),group:t,value:r}})),(0,d.sortBy)((e=>Object.values(c.dC6).indexOf(e.group))),j),Tt=(0,d.propOr)({},"uniqueness"),St=(0,d.pipe)(Tt,wt,(0,d.when)(M,(0,d.always)([])),(0,d.converge)(((e,t)=>({chartData:e,colors:t})),[d.identity,xt])),Nt=e=>{let{config:t}=e;const{title:r}=t,{data:l,state:n,reload:i}=mt(St),{chartData:o,colors:c}=l,s=a().createElement(Ee,{title:f().text("Uniqueness analysis"),data:[{label:`${f().text("Unique")}:`,value:f().text("Number of values that only appear once and have no duplicates")},{label:`${f().text("Not unique")}:`,value:f().text("Number of values that have at least one duplicate in the list")}],DataRenderer:at});return a().createElement(lt,{config:t},a().createElement(Ue,{title:r,infoTooltipTitle:s}),a().createElement(et,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return a().createElement(_e,{data:t,colors:c})})))};var Rt=r(7089);function It(){return It=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},It.apply(this,arguments)}const At=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",It({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#6663F6"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 14.4h2.411c.016-.205.047-.405.093-.6H8.4v-1.2h3.012c.137-.215.296-.416.472-.6H8.4v-1.2h6v.011a3.896 3.896 0 011.8.287V8.4c0-.66-.54-1.2-1.2-1.2H7.8c-.66 0-1.2.54-1.2 1.2v7.8c0 .66.54 1.2 1.2 1.2h4.083a3.892 3.892 0 01-.979-1.8H8.4v-1.2zm6-4.2h-6V9h6v1.2zm2.58 5.934L18.852 18l-.852.852-1.872-1.872a2.66 2.66 0 01-1.434.42A2.695 2.695 0 0112 14.7c0-1.494 1.206-2.7 2.7-2.7 1.494 0 2.7 1.206 2.7 2.7 0 .528-.156 1.014-.42 1.434zm-2.28.066a1.5 1.5 0 10-.001-3.001A1.5 1.5 0 0014.7 16.2z",fill:"#fff"}))};function Ct(){return Ct=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Ct.apply(this,arguments)}const Lt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",Ct({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#1DACF5"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4 9.6H9.3L12 6.9l2.7 2.7h-2.1v3.846l-3.6 3.6-.846-.846 3.246-3.246V9.6zm4.446 6.6l-.846.846L12.954 15l.846-.846 2.046 2.046z",fill:"#fff"}))};function Dt(){return Dt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Dt.apply(this,arguments)}const _t=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",Dt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#7F22FD"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 9v1.2h1.2V9H8.4zm0 2.4v1.2h1.2v-1.2H8.4zm0 2.4V15h1.2v-1.2H8.4zM10.8 9v1.2h4.8V9h-4.8zm0 2.4v1.2h4.8v-1.2h-4.8zm0 2.4V15h4.8v-1.2h-4.8zm6-6v8.4H7.2V7.8h9.6zm1.2 9V6.6H6V17.4h12v-.6z",fill:"#fff"}))};function Pt(){return Pt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Pt.apply(this,arguments)}const jt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",Pt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#4B31E9"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 15.6h1.8V15a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-3V9.6H8.4a.6.6 0 01-.6-.6V6.6a.6.6 0 01.6-.6H12a.6.6 0 01.6.6V9a.6.6 0 01-.6.6h-1.2v1.8h1.8v-.6a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-1.8v3z",fill:"#fff"}))};function kt(){return kt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},kt.apply(this,arguments)}const Mt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",kt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#80D2FC"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6c-3.312 0-6 2.688-6 6s2.688 6 6 6 6-2.688 6-6-2.688-6-6-6zm-.6 4.96V9h1.2v1.96l1.698-.98.6 1.04L13.2 12l1.698.98-.6 1.04-1.698-.98V15h-1.2v-1.96l-1.698.98-.6-1.04L10.8 12l-1.698-.98.6-1.04 1.698.98zM7.2 12c0 2.646 2.154 4.8 4.8 4.8s4.8-2.154 4.8-4.8-2.154-4.8-4.8-4.8A4.806 4.806 0 007.2 12z",fill:"#fff"}))},Bt=(0,ye.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),Ft={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let Ut;!function(e){e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal"}(Ut||(Ut={}));const zt=e=>{let{detailType:t,size:r=Ft.NORMAL,variant:l=Ut.NORMAL}=e;const n=Bt(r),i=p()(n.icon,n[l]);switch(t){case q.RDM_LOOKUP:return a().createElement(_t,{className:i});case q.CONTAIN_VF:return a().createElement(At,{className:i});case q.INCLUDED_IN_MATCHING:return a().createElement(Lt,{className:i});case q.REFERENCE:return a().createElement(jt,{className:i});case q.REQUIRED:return a().createElement(Mt,{className:i});default:return null}},Vt=(0,ye.Z)({root:{height:"24px",maxWidth:"calc(100% - 8px)",margin:"0 4px 4px 0",borderRadius:"12px"},label:{fontSize:"12px",paddingLeft:"8px",paddingRight:"9px"},badQuality:{backgroundColor:"rgba(255, 23, 68, 0.12)"}});function Ht(){return Ht=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Ht.apply(this,arguments)}function Wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){Yt(e,t,r[t])}))}return e}function Yt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Zt=e=>{let{detailType:t,classes:r}=e,n=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["detailType","classes"]);const i=Vt(),{data:o,state:s}=(0,l.useContext)(w);let d=Ut.NORMAL;const u=s===R.o.LOADING,f=(e=>{var t;return 0===(null==e||null===(t=e.fillRate)||void 0===t?void 0:t[c.s9T.MISSING])})(o);return t===q.REQUIRED&&(u&&(d=Ut.LOADING),u||f||(d=Ut.BAD_QUALITY)),a().createElement(Rt.Z,Ht({classes:Wt({root:p()(i.root,{[i.badQuality]:t===q.REQUIRED&&!u&&s!==R.o.INIT&&!f}),label:i.label},r),label:oe(t),icon:a().createElement(zt,{detailType:t,variant:d})},n))},Gt=(0,ye.Z)({root:{display:"flex",flexWrap:"wrap",flexGrow:1}}),$t=e=>{let{details:t,chipClasses:r={}}=e;const l=Gt();return a().createElement("div",{className:l.root},Object.entries(t||{}).filter((e=>{let[,t]=e;return t})).map((e=>{let[t]=e;return a().createElement(Zt,{key:t,detailType:t,classes:r})})))},qt=(0,ye.Z)({header:{display:"flex",paddingBottom:"16px"},info:{display:"flex",flexDirection:"column","&:not(:last-child)":{borderRight:"1px solid rgba(0,0,0,0.12)"}},entitySummary:{"&:not(:last-child)":{paddingRight:"48px",marginRight:"16px"}},attributeTypeSummary:{"&:not(:last-child)":{paddingRight:"24px",marginRight:"24px"}},infoTitle:{color:"rgba(0,0,0,0.54)",fontSize:"12px",lineHeight:"16px"},infoContent:{fontSize:"30px",lineHeight:"35px",padding:"4px 0 0",display:"flex",alignItems:"center"},attributeTypeIconWrapper:{width:"32px",height:"33px",background:"rgba(0, 0, 0, 0.05)",borderRadius:"4px",position:"relative",marginRight:"12px",flexShrink:0,"& svg":{position:"absolute",transform:"translate(-50%, -50%)",top:"50%",left:"50%"}},totalLoading:{padding:"4px 8px"},clickable:{color:"#000066",cursor:"pointer"}});function Qt(){return Qt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Qt.apply(this,arguments)}const Kt=e=>{let{title:t,children:r,className:l,onClick:n}=e,i=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["title","children","className","onClick"]);const o=qt();return a().createElement("div",Qt({className:p()(o.info,l),onClick:n},i),a().createElement("div",{className:o.infoTitle},t),a().createElement("div",{className:o.infoContent},r))};function Xt(){return Xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Xt.apply(this,arguments)}const Jt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",Xt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("mask",{id:"svg1279746712a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"15",height:"8"},a().createElement("path",{d:"M11.667 4H5C2.793 4 1 5.793 1 8s1.793 4 4 4h6.667c2.206 0 4-1.793 4-4s-1.794-4-4-4zm0 6.667H5a2.666 2.666 0 110-5.334h6.667a2.666 2.666 0 110 5.334zm0-4.667c-1.107 0-2 .893-2 2s.893 2 2 2c1.106 0 2-.893 2-2s-.894-2-2-2z",fill:"#000"})),a().createElement("g",{mask:"url(#svg1279746712a)"},a().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function er(){return er=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},er.apply(this,arguments)}const tr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",er({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("mask",{id:"svg208732808a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"14"},a().createElement("path",{d:"M7.992 1.333A6.663 6.663 0 001.332 8c0 3.68 2.98 6.667 6.66 6.667A6.67 6.67 0 0014.665 8a6.67 6.67 0 00-6.673-6.667zm.007 12A5.332 5.332 0 012.665 8 5.332 5.332 0 018 2.667 5.332 5.332 0 0113.332 8a5.332 5.332 0 01-5.333 5.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z",fill:"#000"})),a().createElement("g",{mask:"url(#svg208732808a)"},a().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function rr(){return rr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},rr.apply(this,arguments)}const lr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",rr({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("mask",{id:"svg1638934380a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},a().createElement("path",{d:"M5.948 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2zM7.947 12v-1.1h1.1V12h-1.1zM13.65 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2z",fill:"#000"})),a().createElement("g",{mask:"url(#svg1638934380a)"},a().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function ar(){return ar=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},ar.apply(this,arguments)}const nr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",ar({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("path",{d:"M2.11 12v-.825h1.331V5.169L2 5.741v-.89L3.331 4.3h1.045v6.875h1.089V12H2.11zM5.968 11.032l1.65-2.508c.242-.367.403-.62.484-.759.08-.147.136-.29.165-.429.03-.14.044-.341.044-.605v-.77a.778.778 0 00-.253-.583c-.169-.161-.389-.242-.66-.242h-1.21V4.3h1.1c.638 0 1.126.158 1.463.473.345.308.517.774.517 1.397v.462c0 .367-.018.645-.055.836-.037.19-.103.37-.198.539-.088.169-.264.455-.528.858l-1.518 2.299h2.519V12h-3.52v-.968zM13.544 10.262c0 .609-.147 1.052-.44 1.331-.293.271-.77.407-1.43.407h-1.298v-.825h1.397c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.239c0-.242-.073-.433-.22-.572-.147-.147-.341-.22-.583-.22h-1.067v-.825h.957a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.902c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187h-1.298V4.3h1.166c.623 0 1.093.14 1.408.418.323.271.484.704.484 1.298v.693c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.924z",fill:"#000",fillOpacity:".541"}))};function ir(){return ir=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},ir.apply(this,arguments)}const or=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",ir({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("mask",{id:"svg924767730a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},a().createElement("path",{d:"M5.463 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H2.03v-.836h1.562c.271 0 .491-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.059-.396-.176-.528-.11-.14-.279-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473h1.463v.836H3.714c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM9.136 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H5.704v-.836h1.562c.27 0 .49-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.06-.396-.176-.528-.11-.14-.28-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473H8.96v.836H7.387c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM12.255 12l-1.683-6.886V12H9.68V4.3h1.562l1.694 6.886V4.3h.89V12h-1.572z",fill:"#000"})),a().createElement("g",{mask:"url(#svg924767730a)"},a().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function cr(){return cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},cr.apply(this,arguments)}const sr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",cr({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("mask",{id:"svg3578961193a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},a().createElement("path",{d:"M5.345 12l-.418-1.947H2.782L2.353 12h-.979l1.86-7.7h1.264L6.324 12h-.979zM3.85 5.026l-.89 4.202H4.75L3.85 5.026zM10.494 10.262c0 .63-.146 1.078-.44 1.342-.286.264-.763.396-1.43.396h-2.09V4.3h1.958c.653 0 1.13.132 1.43.396.308.264.462.704.462 1.32v.627c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.99zM9.427 5.917c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187H7.491v2.431h1.133a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.836zm.11 3.256c0-.242-.073-.433-.22-.572-.147-.147-.34-.22-.583-.22H7.491v2.794h1.232c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.173zM13.119 12c-.638 0-1.13-.154-1.474-.462-.337-.315-.506-.785-.506-1.408V6.17c0-.623.169-1.089.506-1.397.345-.315.836-.473 1.474-.473h1.342v.836h-1.452c-.271 0-.491.08-.66.242a.778.778 0 00-.253.583v4.378c0 .227.084.422.253.583.169.161.389.242.66.242h1.452V12h-1.342z",fill:"#000"})),a().createElement("g",{mask:"url(#svg3578961193a)"},a().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))},pr=(0,ye.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}}}),dr={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},ur=e=>{let{type:t,size:r=dr.SMALL}=e;const l=pr(r);switch(U(t)){case E.STRING:return a().createElement(sr,{className:l.icon});case E.FLOAT:return a().createElement(lr,{className:l.icon});case E.INTEGER:return a().createElement(nr,{className:l.icon});case E.BOOLEAN:return a().createElement(Jt,{className:l.icon});case E.DATE:return a().createElement(tr,{className:l.icon});case E.SSN:return a().createElement(or,{className:l.icon});default:return a().createElement(sr,{className:l.icon})}},fr=e=>{let{detailedAttributeType:t}=e;const r=qt(),n=(e=>{const[t,r]=(0,l.useState)(null),a=(0,l.useContext)(N),n=(0,I._)();return(0,l.useEffect)((()=>{if(a.uri&&e){const t={filter:c.j5E.EXISTS,fieldName:e},l={filter:c.j5E.EQUALS,fieldName:"type",values:[a.uri]},i={searchOptions:"strictTypeSearch"};r(null),n((0,c.j_Q)([t,l],i)).then((e=>{let{total:t}=e;return r(t)})).catch(console.error)}}),[a.uri,e]),t})(t.fieldName),i=null===n?a().createElement(Ye.CircularProgress,{size:"24",className:r.totalLoading}):(0,c.k7L)(n);return a().createElement("div",null,a().createElement("div",{className:r.header},a().createElement(Kt,{title:f().text("Profiles"),className:r.attributeTypeSummary},a().createElement(Ye.Tooltip,{title:a().createElement(Ee,{data:[{label:f().text("Entities with exists attribute"),value:f().number(n)}]})},a().createElement("div",null,i))),a().createElement(Kt,{title:f().text("Data type"),className:r.attributeTypeSummary},(o=t.type,a().createElement(a().Fragment,null,a().createElement("div",{className:r.attributeTypeIconWrapper},a().createElement(ur,{type:o,size:dr.NORMAL})),f().text(o))))),a().createElement($t,{details:t.details}));var o},mr=e=>{let{entityType:t}=e;const{data:r,state:i}=(0,l.useContext)(w),o=((e,t)=>{const r=t.attributes||[],l=t=>t.filter(c.Uty).filter((0,d.either)((0,d.prop)("label"),(0,d.prop)("name"))).reduce(((t,r)=>{const a=(0,c.EUG)(e,r);return null!=a&&a.length?[...t,r,...l(a)]:[...t,r]}),[]);return l(r).length})((0,n.useSelector)(y.ZP.selectors.getMetadata),t),{activeProfiles:s=0,inactiveProfiles:u=0,sourceSystems:m=0}=(null==r?void 0:r.summary)||{},h=e=>i===R.o.LOADING?a().createElement(Ye.CircularProgress,{size:"24",className:g.totalLoading}):f().number(e),g=qt(),v=(0,n.useDispatch)(),b=vt(Y),E=e=>{v(y.yC.actions.activityFilterUpdated(e)),b()};return a().createElement("div",{className:g.header},a().createElement(Kt,{title:f().text("Active profiles"),className:p()(g.entitySummary,g.clickable),onClick:()=>E(c.Ng6.ACTIVE_ONLY),"data-reltio-id":"reltio-dq-dashboard-entitylevel-summary-activeProfiles"},h(s)),a().createElement(Kt,{title:f().text("Inactive profiles"),className:p()(g.entitySummary,g.clickable),onClick:()=>E(c.Ng6.INACTIVE_ONLY),"data-reltio-id":"reltio-dq-dashboard-entitylevel-summary-inactiveProfiles"},h(u)),a().createElement(Kt,{title:f().text("Attributes"),className:g.entitySummary},f().number(o)),a().createElement(Kt,{title:f().text("Source systems"),className:g.entitySummary},h(m)))},hr=(0,ye.Z)({content:{padding:"0 16px",marginTop:"4px"}}),yr=e=>{let{config:t}=e;const r=hr(),n=(0,l.useContext)(T),i=(0,l.useContext)(de),o=(0,l.useContext)(N),s=i===c.yn8.ATTRIBUTE_TYPE,p=s?(0,c.idV)(n.label):`${f().text("Entity")}: ${(0,c.idV)(o.label)}`;return a().createElement(lt,{config:t},a().createElement(Ue,{title:p}),a().createElement(He.Z,{className:r.content},s?a().createElement(fr,{detailedAttributeType:n}):a().createElement(mr,{entityType:o})))};var gr=r(58141);const vr=(0,ye.Z)({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}});function br(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){Er(e,t,r[t])}))}return e}function Er(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xr=h.B9.ERROR,Or=e=>{let{config:t,errorData:r,titleChildren:l,infoTooltipTitle:n,onRefresh:i}=e;const{id:o,title:c}=t,s=vr();return a().createElement(gr.Z,{id:o},a().createElement(Ue,{title:c,infoTooltipTitle:n},l),a().createElement(He.Z,{className:s.viewContent},a().createElement(ze.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},a().createElement(qe,{errorData:br({Icon:xr},r),onRefresh:i,variant:pe.SMALL}))))};function wr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){Tr(e,t,r[t])}))}return e}function Tr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Sr=e=>(0,d.pipe)((0,d.propOr)({},e),Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),j),Nr=e=>{let{sortDirection:t,sortField:r}=e;return(e,l)=>"asc"===t?e[r]>l[r]?1:-1:e[r]<l[r]?1:-1},Rr=(e,t)=>t.filter((t=>e.find((0,d.propEq)("uri",t.group)))),Ir=(e,t)=>e.find((0,d.propEq)("uri",t)),Ar=(0,d.curry)(((e,t)=>(0,d.pipe)(Rr,(0,d.map)((t=>{var r;return wr({},t,{label:null===(r=Ir(e,t.group))||void 0===r?void 0:r.name})})))(e,t))),Cr=(0,d.pipe)((0,d.map)($),(0,d.slice)(1,1/0),(0,d.join)(" / ")),Lr=(0,d.curry)(((e,t,r)=>(0,d.pipe)(Rr,(0,d.map)((r=>{const{name:l,attribute:a}=Ir(e,r.group),n=(0,c.X3M)(t,a);return wr({},r,{label:l,attributeLabel:Cr(n)})})))(e,r))),Dr=Sr("frequency"),_r=Sr("pattern"),Pr=(e,t)=>`${e}/analyticsAttributes/AttributeValidations/analyticsAttributes/${t}`,jr=(e,t)=>{let{name:r,uri:l}=e;return[{filter:c.j5E.EQUALS,values:[[r]],fieldName:"analyticsAttributes.AttributeValidations.FunctionName",uri:Pr(t,"FunctionName")},{filter:c.j5E.EQUALS,values:[[l]],fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",uri:Pr(t,"FunctionURI")}]},kr=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return yt({fieldName:`${r.fieldName}`,value:t,entityTypeUri:l})})),Mr=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.ON,values:[t],fieldName:r}]})),Br=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:r}]})),Fr=e=>{let{detailedAttributeType:t,entityTypeUri:r}=e;return(0,d.cond)([[c.j5n,(0,d.always)(kr)],[c.Lt4,(0,d.always)(F(Mr))],[d.identity,(0,d.always)(F(Br))]])(t.type)({detailedAttributeType:t,entityTypeUri:r})},Ur=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return yt({fieldName:`${r.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:l})})),zr=e=>`(${e.length>=100?f().text("top")+" 100":e.length})`;var Vr=r(31276),Hr=r(85709),Wr=r(92332);const Yr=(0,d.pipe)((0,d.split)("|"),(e=>{let[t,r]=e;return{label:t,maxValue:r}})),Zr=(e,t)=>(0,d.is)(Number,t[e])?f().number(t[e]):t[e],Gr=e=>{let{children:t,handler:r,handleWidth:n=!0}=e;const i=(0,l.useRef)();return a().createElement(ze.Z,{handleWidth:n,onResize:()=>{return r((e=i.current)&&e.clientWidth<e.scrollWidth);var e}},a().createElement(Ye.RootRef,{rootRef:i},t))};function $r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){qr(e,t,r[t])}))}return e}function qr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Qr={background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",content:'""',height:"100%",pointerEvents:"none",position:"absolute",right:0,top:0,width:"40px"},Kr={background:"rgba(0, 0, 0, 0.38)",bottom:0,content:'""',height:"3px",left:0,position:"absolute",width:"1px"},Xr=(0,ye.Z)((e=>({attribute:{"&:after":Qr,alignItems:"center",color:e.palette.text.primary,display:"flex",fontSize:"13px",fontWeight:"normal",height:"100%",lineHeight:"15px",overflow:"hidden",padding:"0 16px",whiteSpace:"pre"},bar:{borderRadius:"0 !important",minHeight:"16px !important",position:"initial !important"},colorBarContainer:{"&>div":{opacity:1},boxSizing:"border-box",height:"100%",padding:"5px 0 6px",position:"relative",width:"100%"},headCell:{"&>div":{display:"flex",flexDirection:e=>e?"row":"row-revers",flexGrow:1,justifyContent:"flex-start",marginLeft:e=>!e&&"-26px",paddingLeft:"16px",paddingRight:e=>e&&"0"},"&>div>span":{flexGrow:1,justifyContent:e=>e?"flex-start":"flex-end",marginLeft:"0!important",width:"100%"},height:"100%",lineHeight:"47px"},headCellWithRange:{"&>div":{display:"flex",flexDirection:"row-revers",flexGrow:1,justifyContent:"flex-start",padding:"0 10px 0 16px"},"&>div>span":{flexGrow:1,justifyContent:"flex-start!important",width:"100%"},height:"100%",lineHeight:"47px"},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"47px",overflow:"hidden",position:"relative",whiteSpace:"nowrap","&.overflowed:after":Qr},labelWrapper:{maxWidth:"90px","&.sortable":{maxWidth:"68px"}},number:{color:e.palette.text.primary,flexShrink:0,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",marginRight:"32px",overflow:"hidden",textAlign:"right",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"90px"},numberContainer:{alignItems:"center",display:"flex",height:"100%",padding:"0 10px 0 16px"},rangeLabel:{"&:first-child":{flexGrow:1},color:e.palette.text.secondary,fontSize:"12px"},rangeWrapper:{"&:after":$r({},Kr,{left:"initial",right:0}),"&:before":Kr,alignItems:"flex-end",display:"flex",flexGrow:1,lineHeight:"24px",marginLeft:"32px",maxWidth:"calc(100% - 122px)",position:"relative","&.sortable":{height:"100%",maxWidth:"calc(100% - 144px)"}},tooltipTitle:{color:"rgba(255, 255, 255, 0.6)"},tooltipValue:{whiteSpace:"pre-wrap"}})));function Jr(){return Jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Jr.apply(this,arguments)}function el(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){tl(e,t,r[t])}))}return e}function tl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rl=e=>{let{headCellData:t,headIndex:r}=e,n=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["headCellData","headIndex"]);const i=Xr(0===r),{label:o,maxValue:s}=Yr(t.label),d=(0,c.k7L)(Number(s),999),u=!!s,[f,m]=(0,l.useState)(!1),h=a().createElement(Gr,{handler:m},a().createElement(Ye.Tooltip,{title:f?o:""},a().createElement("div",{className:p()(i.headLabel,{overflowed:f})},o)));return a().createElement("div",{className:p()({[i.headCell]:!u,[i.headCellWithRange]:u})},a().createElement(Wr.default,Jr({},n,{headCellData:el({},t,{label:u?a().createElement(a().Fragment,null,a().createElement("div",{className:p()(i.rangeWrapper,{sortable:t.sortable})},a().createElement("span",{className:i.rangeLabel},"0"),a().createElement("span",{className:i.rangeLabel},d)),a().createElement("div",{className:p()({[i.labelWrapper]:!t.sortable,sortable:t.sortable})},h)):h})})))};var ll=r(99256),al=r(32528);const nl=e=>{let{columnsHeaders:t,chartData:r}=e;const l=Xr();return a().createElement(Ee,{data:t.map((e=>{let{label:t,id:n}=e;return{label:a().createElement("span",{className:l.tooltipValue},t),value:Zr(n,r)}}))})},il=(0,al.Z)(((e,t)=>{let{onItemClick:r,columnsHeaders:l}=e,{rowValue:{group:a}}=t;return{onClick:r&&(()=>{r(a)}),columnsHeaders:l}}))((e=>{let{value:t="",columnData:r,rowValue:l,columnsHeaders:n,onClick:i}=e;const{cellClassName:o,labelRenderer:s}=r,d=Xr(),u=(0,ll.d)(i),f=!!s;return a().createElement(Ye.Tooltip,{title:a().createElement(nl,{columnsHeaders:n,chartData:l})},a().createElement("div",{className:p()(d.attribute,u,o),onClick:i},f?a().createElement(s,{chartData:l}):c.P6Y.strings.removeLineBreaks(t)))}));var ol=r(43290);const cl=(0,al.Z)(((e,t)=>{let{onItemClick:r,columnsHeaders:l}=e,{rowValue:{group:a}}=t;return{onClick:r&&(()=>{r(a)}),columnsHeaders:l}}))((e=>{let{value:t,columnData:{maxValue:r},rowValue:l,columnsHeaders:n,onClick:i}=e;const o=Xr(),s=(0,ll.d)(i),u=0===t?"0":(0,c.k7L)(t,999);return a().createElement(Ye.Tooltip,{title:a().createElement(nl,{columnsHeaders:n,chartData:l})},a().createElement("div",{className:p()(o.numberContainer,s),onClick:i},a().createElement(Ye.Typography,{className:o.number},u),!(0,d.isNil)(r)&&a().createElement("div",{className:o.colorBarContainer},a().createElement(ol.Z,{width:t,maxWidth:r,className:o.bar}))))})),sl=(0,ye.Z)({tableContainer:e=>{let{width:t,height:r}=e;return{height:r,width:t,display:"flex",flexDirection:"column","& .hoveredRow":{background:"transparent"},"& .hoveredRow:after":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,backgroundColor:"rgba(0,0,0,0.07)",pointerEvents:"none"}}},cellBorder:{borderLeft:"none",borderRight:"none!important"}});function pl(){return pl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},pl.apply(this,arguments)}function dl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ul=(e,t)=>t?`${e} ${t}`:e,fl=e=>{let{width:t,height:r,data:n,columnsOptions:i,basicTableRef:o,onItemClick:c,dataReltioId:s}=e,p=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["width","height","data","columnsOptions","basicTableRef","onItemClick","dataReltioId"]);const u=sl({width:t,height:r}),f=(0,l.useMemo)((()=>({cellBorder:u.cellBorder})),[u]),m=(0,l.useMemo)((()=>Math.max(...(0,d.pluck)("value",n))),[n]),h=(0,l.useMemo)((()=>i.map((e=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){dl(e,t,r[t])}))}return e}({resizable:!1,sortable:!1,headCellRenderer:rl,rowCellValueRenderer:il,label:ul(e.label,e.secondLabel),initialWidth:t*e.width},"value"===e.id?{label:ul(e.label,e.secondLabel).concat(`|${m}`),maxValue:m,rowCellValueRenderer:cl}:{},(0,d.omit)(["label","width"],e))))),[i,m,t]),y=(0,l.useMemo)((()=>i.map((0,d.pick)(["id","label"]))),[i]),g=(0,l.useMemo)((()=>({onItemClick:c,columnsHeaders:y})),[c,y]);return a().createElement("div",{className:u.tableContainer,"data-reltio-id":s},a().createElement(Hr.Z,pl({columnsData:h,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:f,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:g,hoverStateEnabled:!0},p)))},ml=(0,ye.Z)((()=>({layoutItemContent:{padding:"0 0 10px"}}))),hl=(0,he.Z)((e=>{let{config:t,data:r,title:n,columnsOptions:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,titleChildren:p,state:d,onRefresh:u}=e;const f=ml(),[m,h]=(0,l.useState)("desc"),[y,g]=(0,l.useState)("value"),v=(0,l.useCallback)(((e,t)=>c?c({sortDirection:m,sortField:y})(e,t):Nr({sortDirection:m,sortField:y})(e,t)),[m,y,c]),b=e=>{h((()=>y===e?(0,Vr.Dh)(m):m)),g(e)},E=(0,l.useMemo)((()=>[...r.sort(v)]),[v,r]);return a().createElement(lt,{config:t},a().createElement(Ue,{title:n,infoTooltipTitle:o},p),a().createElement(et,{className:f.layoutItemContent,data:E,loadingState:d,onRefresh:u},(e=>{let{data:t,width:r=0,height:l=0}=e;return a().createElement(fl,{data:t,width:r,height:l,columnsOptions:i,sorting:{field:y,order:m},onSort:b,onItemClick:s})})))}));function yl(){return yl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},yl.apply(this,arguments)}const gl=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",yl({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),a().createElement("mask",{id:"svg1830866123a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},a().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),a().createElement("g",{mask:"url(#svg1830866123a)"},a().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},a().createElement("path",{d:"M12.375 18.688a7 7 0 017-7h75.742a7 7 0 017 7v49.02a7 7 0 01-7 7H19.375a7 7 0 01-7-7v-49.02z"}),a().createElement("path",{opacity:".4",d:"M16.844 22.813a7 7 0 017-7h75.741a7 7 0 017 7v49.02a7 7 0 01-7 7H23.844a7 7 0 01-7-7v-49.02z"})),a().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"29.318",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 31.381a3.562 3.562 0 013.552-3.563 3.562 3.562 0 013.552 3.563 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),a().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 29.052c0-.726.588-1.313 1.313-1.313h23.983a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),a().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 33.553c0-.518.42-.938.938-.938h43.37a.938.938 0 010 1.876h-43.37a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 36.554c0-.31.252-.563.563-.563h13.993a.563.563 0 110 1.126H31.26a.563.563 0 01-.563-.563z",fill:"#B1AABD"}),a().createElement("rect",{opacity:".5",x:"19.854",y:"17.689",width:"29.914",height:"4.126",rx:"2.063",fill:"#645F6D"}),a().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"43.573",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),a().createElement("rect",{x:"19.854",y:"42.072",width:"7.105",height:"7.127",rx:"3.552",fill:"#E3EBF4"}),a().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 43.306c0-.725.588-1.313 1.313-1.313h28.41a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),a().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 47.808c0-.518.42-.938.938-.938h48.23a.938.938 0 110 1.876h-48.23a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 50.809c0-.31.252-.563.563-.563h38.884a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),a().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"57.828",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 59.891a3.562 3.562 0 013.552-3.564 3.562 3.562 0 013.552 3.564 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),a().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 57.561c0-.725.588-1.313 1.313-1.313h38.132a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),a().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 62.063c0-.518.42-.938.938-.938h31.778a.938.938 0 110 1.875H31.635a.938.938 0 01-.938-.937z",fill:"#B1AABD"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 65.064c0-.311.252-.563.563-.563h13.993a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 3.094h88V88H0V3.094z",fill:"url(#paint0_linear_3200_4362)"}),a().createElement("path",{d:"M79.893 76.85H21.308v14.184h58.585V76.85z",fill:"#F5C056"}),a().createElement("path",{d:"M79.893 76.85H74.6v14.184h5.293V76.85z",fill:"#E99B00"}),a().createElement("path",{d:"M48.73 76.893H26.283v14.184H48.73V76.893z",fill:"#FFEA5A"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.894 57.829c-1.687-4.26 13.113-4.043 11.413 0-1.353 3.218-1.353 7.53 0 12.934H44.894C46 64.93 46 60.618 44.894 57.83z",fill:"#FFD264"}),a().createElement("path",{d:"M61.253 70.383H39.949v2.663h21.304v-2.663z",fill:"#FFD264"}),a().createElement("path",{d:"M47.938 70.383h-4.185v2.663h4.185v-2.663z",fill:"#FFEA5A"}),a().createElement("path",{d:"M64.676 73.046h-28.15v3.804h28.15v-3.804z",fill:"#795D1A"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.764 16.363v5.325H15.602v.143c0 13.634 8.992 24.714 20.162 24.961v2.994c-14-.986-25.108-15.488-25.108-33.233v-.19h25.108z",fill:"#FFCB64"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.677 16.363v5.325h20.161v.143c0 13.634-8.991 24.714-20.161 24.961v2.994c13.999-.986 25.107-15.488 25.107-33.233v-.19H64.677z",fill:"#ED985C"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.307 57.829c-1.353 3.218-1.353 7.53 0 12.934h-5.706V54.715c3.278.026 6.556 1.091 5.706 3.114z",fill:"#F4B046"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.676 73.046v3.804H50.601v-3.804h14.075z",fill:"#4F350B"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.253 70.383v2.663H50.6v-2.663h10.652z",fill:"#F4B046"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.933 10.656a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-11.43 0-23.311-20.1-24.449-45.65h2.194l-.38-3.044h-1.898a91.212 91.212 0 01.01-2.663h49.045z",fill:"#FFCE66"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.937 10.656c.006.569.01 1.14.01 1.712v.952h-.044l-.241 3.043h.294c.126 24.948 1.435 39.335 3.123 45.65-8.89-3.2-15.661-20.403-16.308-45.65h1.465l-.241-3.044h-1.271a158.252 158.252 0 01.006-2.663h13.207z",fill:"#FFEA5A"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.284 16.363h-3.91l.422-3.044h3.581a81.301 81.301 0 00-.01-2.663h4.566a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-.414 0-.828-.026-1.241-.078 11.92-1.382 19.899-20.946 21.114-45.572zm.083-5.707h-44.48 44.48z",fill:"#F4B046"}),a().createElement("path",{opacity:".519",d:"M72.665 13.32h-44.51v3.043h44.51v-3.044z",fill:"#F4B046"}),a().createElement("path",{d:"M48.318 73.046h-5.706v3.804h5.706v-3.804z",fill:"#96691F"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M65.526 10.656h4.235L58.973 35.935h-4.235l10.788-25.279z",fill:"url(#paint1_linear_3200_4362)"}),a().createElement("g",{filter:"url(#filter0_d_3200_4362)"},a().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#000"})),a().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#DD612C"}),a().createElement("path",{d:"M56.909 54.302a8.681 8.681 0 100-17.362 8.681 8.681 0 000 17.362z",fill:"#FFCE66"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.909 36.94a8.685 8.685 0 018.347 6.291c-5.74.351-10.312 5.02-10.51 10.8a8.699 8.699 0 01-6.008-5.47A11.212 11.212 0 0054.9 37.174a8.684 8.684 0 012.008-.234z",fill:"#FFF18C"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.202 10.656l10.862 25.341H54.83L43.646 10.705l4.556-.049z",fill:"#F83D3D"})),a().createElement("defs",null,a().createElement("linearGradient",{id:"paint0_linear_3200_4362",x1:"0",y1:"3.094",x2:"0",y2:"88",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),a().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),a().createElement("linearGradient",{id:"paint1_linear_3200_4362",x1:"62.25",y1:"10.656",x2:"62.25",y2:"35.935",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopColor:"#B93131"}),a().createElement("stop",{offset:"1",stopColor:"#831616"})),a().createElement("filter",{id:"filter0_d_3200_4362",x:"40.057",y:"30.77",width:"33.702",height:"33.703",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a().createElement("feOffset",{dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"3"}),a().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0335613 0 0 0 0 0.334579 0 0 0 0 0.412601 0 0 0 0.5 0"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3200_4362"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3200_4362",result:"shape"}))))};function vl(){return vl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},vl.apply(this,arguments)}const bl=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",vl({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),a().createElement("mask",{id:"svg355575424a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},a().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),a().createElement("g",{mask:"url(#svg355575424a)"},a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_3488_11934)"}),a().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M64.543 19.547L84.7 39.704V90.88H32.1L17.875 77.372V19.547h46.668z",fill:"url(#paint1_linear_3488_11934)"}),a().createElement("path",{opacity:".06",fillRule:"evenodd",clipRule:"evenodd",d:"M16.156 19.938h69.438A2.406 2.406 0 0188 22.343v53.968a2.406 2.406 0 01-2.406 2.407H16.156a2.406 2.406 0 01-2.406-2.406v-53.97a2.406 2.406 0 012.406-2.405z",fill:"#000"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 19.25H86.28c.95 0 1.719.77 1.719 1.719v53.968c0 .95-.77 1.72-1.719 1.72H17.187c-.949 0-1.718-.77-1.718-1.72V20.97c0-.95.77-1.719 1.719-1.719z",fill:"#fff"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 24.968c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 29.093c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 56.031c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 60.156c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 66.344c0-.57.462-1.031 1.031-1.031h28.059a1.031 1.031 0 010 2.062H37.254c-.57 0-1.031-.462-1.031-1.031z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 70.469c0-.57.462-1.031 1.031-1.031h25.508a1.031 1.031 0 010 2.062H37.125c-.57 0-1.031-.462-1.031-1.031z",fill:"#979797"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 35.406c0-.57.461-1.031 1.03-1.031h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.032z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 39.531c0-.57.461-1.031 1.03-1.031H70.54a1.031 1.031 0 010 2.063H48.47c-.57 0-1.032-.462-1.032-1.032z",fill:"#979797"}),a().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),a().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),a().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),a().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),a().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),a().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 45.719c0-.57.461-1.032 1.03-1.032h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.031z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 49.844c0-.57.461-1.032 1.03-1.032h25.509a1.031 1.031 0 010 2.063H48.469c-.57 0-1.032-.462-1.032-1.031z",fill:"#979797"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M31.802 37.125v-2.75h-.688V48.251h3.843v-.688h-3.155v-9.75h3.155v-.688h-3.155z",fill:"#2B98F0"}),a().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),a().createElement("path",{opacity:".6",fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 7.563h63.937c1.14 0 2.063.923 2.063 2.062v6.188c0 1.139-.924 2.062-2.063 2.062H17.187a2.062 2.062 0 01-2.062-2.063V9.625c0-1.14.923-2.063 2.063-2.063z",fill:"#fff"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M19.938 12.719c0-1.14.923-2.063 2.062-2.063h24.063a2.063 2.063 0 010 4.125H22a2.062 2.062 0 01-2.063-2.062zM50.875 12.719c0-1.14.923-2.063 2.063-2.063h3.437a2.063 2.063 0 010 4.125h-3.438a2.062 2.062 0 01-2.062-2.062z",fill:"#979797"}),a().createElement("path",{opacity:".2",d:"M37.687 66.48l8.942 8.309v.958l19.925 19.702 31.064-.552 7.006-25.47-34.487-34.144-11.2.567c-3.238-1.86-5.34-3.02-6.306-3.48-.54-.258-.383 5.565-2.755 7.725-1.243 1.133-3.462 4.104-6.657 8.914l-5.532 17.47z",fill:"url(#paint2_linear_3488_11934)"}),a().createElement("g",{filter:"url(#filter0_d_3488_11934)",fillRule:"evenodd",clipRule:"evenodd"},a().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312a18.719 18.719 0 014.236 4.554l4.28-.699a23.425 23.425 0 012.392 6.47l-3.639 2.443c.262 2.058.2 4.18-.216 6.285l3.466 2.572a24.254 24.254 0 01-2.838 6.375l-4.231-.855a19.61 19.61 0 01-4.526 4.366l.62 4.34a23.426 23.426 0 01-6.409 2.551l-2.345-3.649a18.72 18.72 0 01-6.219-.1l-2.593 3.564a22.7 22.7 0 01-6.224-2.757l.912-4.304a18.715 18.715 0 01-4.281-4.567l-4.285.7a23.424 23.424 0 01-2.4-6.438l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14zM60.075 49.74c-2.804-1.248-6.112.064-7.388 2.93-1.276 2.867-.038 6.203 2.766 7.452 2.804 1.248 6.112-.064 7.388-2.93 1.276-2.867.038-6.203-2.766-7.452z",fill:"#6B93AC"}),a().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312c.779.597 1.503 1.25 2.168 1.95l-10.07 9.392a5.444 5.444 0 00-1.491-.983c-2.804-1.248-6.112.064-7.388 2.93a5.7 5.7 0 00.626 5.749l-10.071 9.39c-.502-.585-.965-1.2-1.39-1.84l-4.284.7a23.424 23.424 0 01-2.4-6.437l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14z",fill:"#7CA6BF"}),a().createElement("path",{d:"M62.886 42.644c6.409 2.854 9.24 10.479 6.322 17.03-2.917 6.553-10.478 9.552-16.887 6.698-6.409-2.853-9.24-10.478-6.322-17.03 2.917-6.553 10.478-9.551 16.887-6.698zm-1.32 2.966c-4.808-2.14-10.478.109-12.666 5.023-2.188 4.914-.065 10.633 4.742 12.773 4.806 2.14 10.477-.108 12.665-5.023 2.188-4.914.065-10.633-4.742-12.773z",fill:"#AAC4D5"}),a().createElement("path",{d:"M62.886 42.644a12.424 12.424 0 014.22 3.075l-2.366 2.207a9.317 9.317 0 00-3.175-2.316c-4.807-2.14-10.477.109-12.665 5.023-1.635 3.673-.863 7.795 1.638 10.536l-2.367 2.208c-3.325-3.656-4.35-9.145-2.172-14.035 2.917-6.553 10.478-9.551 16.887-6.698z",fill:"#CBDDE9"}))),a().createElement("defs",null,a().createElement("linearGradient",{id:"paint0_linear_3488_11934",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),a().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),a().createElement("linearGradient",{id:"paint1_linear_3488_11934",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopOpacity:".01"}),a().createElement("stop",{offset:"1"})),a().createElement("linearGradient",{id:"paint2_linear_3488_11934",x1:"86.975",y1:"77.519",x2:"49.809",y2:"46.968",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopColor:"#90A4AE",stopOpacity:"0"}),a().createElement("stop",{offset:"1",stopOpacity:".75"})),a().createElement("filter",{id:"filter0_d_3488_11934",x:"32.168",y:"30.067",width:"53.209",height:"53.716",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a().createElement("feOffset",{dx:"1",dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"2"}),a().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3488_11934"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3488_11934",result:"shape"}))))};function El(){return El=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},El.apply(this,arguments)}const xl=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",El({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),a().createElement("mask",{id:"svg1954152798a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},a().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),a().createElement("g",{mask:"url(#svg1954152798a)"},a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_4523_4542)"}),a().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M64.543 19.547L84.7 39.704V90.88H32.1L17.875 77.372V19.547h46.668z",fill:"url(#paint1_linear_4523_4542)"}),a().createElement("path",{opacity:".06",fillRule:"evenodd",clipRule:"evenodd",d:"M16.156 19.938h69.438A2.406 2.406 0 0188 22.343v53.968a2.406 2.406 0 01-2.406 2.407H16.156a2.406 2.406 0 01-2.406-2.406v-53.97a2.406 2.406 0 012.406-2.405z",fill:"#000"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 19.25H86.28c.95 0 1.719.77 1.719 1.719v53.968c0 .95-.77 1.72-1.719 1.72H17.187c-.949 0-1.718-.77-1.718-1.72V20.97c0-.95.77-1.719 1.719-1.719z",fill:"#fff"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 24.968c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 29.093c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 110 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 56.031c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 60.156c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 110 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 66.344c0-.57.462-1.031 1.031-1.031h28.059a1.031 1.031 0 010 2.063H37.254c-.57-.001-1.031-.463-1.031-1.032z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 70.469c0-.57.462-1.031 1.031-1.031h25.508a1.031 1.031 0 010 2.063H37.125c-.57-.001-1.031-.463-1.031-1.032z",fill:"#979797"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 35.406c0-.57.461-1.031 1.03-1.031h28.06a1.031 1.031 0 010 2.063h-28.06c-.569 0-1.03-.462-1.03-1.032z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 39.531c0-.57.461-1.031 1.03-1.031H70.54a1.031 1.031 0 010 2.063H48.47c-.57 0-1.032-.462-1.032-1.032z",fill:"#979797"}),a().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),a().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),a().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),a().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),a().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),a().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 45.719c0-.57.461-1.032 1.03-1.032h28.06a1.031 1.031 0 010 2.063h-28.06c-.569 0-1.03-.462-1.03-1.031z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 49.844c0-.57.461-1.032 1.03-1.032h25.509a1.031 1.031 0 010 2.063H48.469c-.57 0-1.032-.462-1.032-1.031z",fill:"#979797"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M31.802 37.125v-2.75h-.688V48.251h3.843v-.688h-3.155v-9.75h3.155v-.688h-3.155z",fill:"#2B98F0"}),a().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),a().createElement("path",{opacity:".6",fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 7.563h63.937c1.14 0 2.063.923 2.063 2.062v6.188c0 1.139-.924 2.062-2.063 2.062H17.187a2.062 2.062 0 01-2.062-2.063V9.625c0-1.14.923-2.063 2.063-2.063z",fill:"#fff"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M19.938 12.719c0-1.14.923-2.063 2.062-2.063h24.063a2.062 2.062 0 010 4.125H22a2.062 2.062 0 01-2.063-2.062zM50.875 12.719c0-1.14.923-2.063 2.063-2.063h3.437a2.062 2.062 0 110 4.125h-3.438a2.062 2.062 0 01-2.062-2.062z",fill:"#979797"}),a().createElement("g",{filter:"url(#filter0_d_4523_4542)"},a().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),a().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#4A90E2"}),a().createElement("path",{opacity:".15",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#4A90E2"}),a().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#4A90E2"}),a().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#4A90E2"}),a().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#61A3F1"}),a().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.33 66.066 75.41h-2.029l-7.582-7.582 1.006-3.178.837-18.201z",fill:"url(#paint2_linear_4523_4542)"}),a().createElement("g",{filter:"url(#filter1_d_4523_4542)"},a().createElement("circle",{cx:"57.406",cy:"47.781",r:"1.719",fill:"#fff"})),a().createElement("g",{filter:"url(#filter2_d_4523_4542)"},a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M55.688 53.969a1.719 1.719 0 113.438 0v12.375a1.719 1.719 0 11-3.438 0V53.969z",fill:"#fff"}))),a().createElement("defs",null,a().createElement("linearGradient",{id:"paint0_linear_4523_4542",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),a().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),a().createElement("linearGradient",{id:"paint1_linear_4523_4542",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopOpacity:".01"}),a().createElement("stop",{offset:"1"})),a().createElement("linearGradient",{id:"paint2_linear_4523_4542",x1:"77.079",y1:"63.788",x2:"62.929",y2:"54.707",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopOpacity:".01"}),a().createElement("stop",{offset:"1"})),a().createElement("filter",{id:"filter0_d_4523_4542",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a().createElement("feOffset",{dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"2"}),a().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4523_4542"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4523_4542",result:"shape"})),a().createElement("filter",{id:"filter1_d_4523_4542",x:"51.688",y:"44.063",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a().createElement("feOffset",{dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"2"}),a().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4523_4542"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4523_4542",result:"shape"})),a().createElement("filter",{id:"filter2_d_4523_4542",x:"51.688",y:"50.25",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a().createElement("feOffset",{dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"2"}),a().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4523_4542"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4523_4542",result:"shape"}))))},Ol=(0,ye.Z)((e=>({title:{whiteSpace:"nowrap",height:"24px",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"},titleCount:{overflow:"hidden",lineHeight:"24px",textOverflow:"ellipsis"},viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"},countProfiles:{color:e.palette.text.primary,fontWeight:700}})));let wl;!function(e){e.DVF_NOT_SUPPORTED="dvfNotSupported",e.DVF_NOT_CONFIGURE="dvfNotConfigured",e.DATA_VALID="dataValid",e.PERMISSION_DENIED="permissionDenied"}(wl||(wl={}));const Tl=e=>{let{chartType:t,dataLevel:r,title:l,infoTooltipTitle:n,titleChildren:i,dvfConfigLink:o,config:s}=e;const p=Ol();let d,u,m;const y=r===c.yn8.ATTRIBUTE_TYPE?f().text("attribute type"):f().text("entity type");switch(t){case wl.DVF_NOT_SUPPORTED:d=xl,m=f().text("Data validation functions are not supported for\nReference attributes at this time.");break;case wl.DVF_NOT_CONFIGURE:d=bl,u=f().text("If we spot any validation issues, we’ll display them here."),m=a().createElement(a().Fragment,null,a().createElement(Ye.Link,{href:o,target:"_blank",component:o?"a":"span",color:o?"primary":"inherit",underline:o?"hover":"none","data-reltio-id":"reltio-dq-dashboard-define-dvf-link"},`${f().text("Define some data validation functions")} `),f().text("for this ${dataSourceLabel} (or ask your Tenant Admin).",{dataSourceLabel:y}));break;case wl.DATA_VALID:d=gl,u=f().text("We didn’t spot any validation issues for this ${dataSourceLabel}.\nYou can kick back and enjoy a cold one.",{dataSourceLabel:y}),m=f().text("Nice one!");break;case wl.PERMISSION_DENIED:d=h.B9.ERROR,u=f().text("Please contact your Tenant Admin to change permissions"),m=f().text("You don’t currently have permission to view this chart")}return a().createElement(lt,{config:s},a().createElement(Ue,{title:l,infoTooltipTitle:n},i),a().createElement(He.Z,{className:p.viewContent},a().createElement(ze.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=0}=e;return a().createElement(Xe,{height:t,data:{Icon:d,title:m,message:u}})}))))},Sl=e=>{let{isDataValid:t,totalProfiles:r,invalidProfiles:l}=e;const n=Ol();return a().createElement(Ye.Typography,{className:n.titleCount},t?f().text("0 profiles"):(0,d.isNil)(l)?null:a().createElement(a().Fragment,null,a().createElement("span",{className:n.countProfiles},(0,c.k7L)(l)),` (${Math.round(l/r*100)}% ${f().text("out of")} ${(0,c.k7L)(r)}) ${1!==l?f().text("profiles"):f().text("profile")}`))},Nl=e=>{const{config:t}=e,r=(0,n.useSelector)(y.ZP.selectors.getMetadata),i=(0,l.useContext)(de),o=i===c.yn8.ATTRIBUTE_TYPE,{dvfs:s,dvfConfigLink:p}=(0,l.useContext)(S),{data:u,state:m,reload:h,errorCode:g}=s,v=(0,l.useContext)(T),b=(0,l.useContext)(N),E=b.uri,x=(o?((e,t)=>(e||[]).filter((0,d.propEq)("attribute",t)))(u,null==v?void 0:v.uri):u)||[],O=x.filter((0,d.propEq)("status",c.lVm.ACTIVE)),{data:w,state:A,reload:C}=mt(o?(e=>(0,d.pipe)(Sr("dataValidationFunctions"),Ar(e)))(O):((e,t)=>(0,d.pipe)(Sr("dataValidationFunctions"),Lr(e,t)))(O,r)),D=(0,l.useMemo)((()=>[b]),[b]),_=(e=>{let{entityTypeUri:t,dvfUris:r}=e;const[a,n]=(0,l.useState)(null),i=(0,I._)();return(0,l.useEffect)((()=>{const e=[{fieldName:"type",filter:c.j5E.EQUALS,values:[t]},{fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",filter:c.j5E.EQUALS,values:r}];i((0,c.j_Q)(e)).then((e=>{let{total:t}=e;return n(t)})).catch((()=>n(null)))}),[t,r]),a})({entityTypeUri:E,dvfUris:(0,l.useMemo)((()=>(0,d.pluck)("uri",O)),[O])}),P=L(D)(E),j=vt((e=>t=>{let{entityTypeUri:r}=t;return t=>{const l=Ir(e,t);return(0,d.pipe)(jr,B(null,r))(l,r)}})(O)),k=(0,l.useMemo)((()=>m===R.o.LOADED&&A===R.o.LOADED?R.o.LOADED:m===R.o.ERROR||A===R.o.ERROR?R.o.ERROR:R.o.LOADING),[A,m]),M=(0,l.useMemo)((()=>()=>{m===R.o.ERROR&&h(),A===R.o.ERROR&&C()}),[A,m,h,C]),F=g===c.Xt7.ACCESS_DENIED,U=o&&se(v),z=g===c.Xt7.DVF_NOT_CONFIGURED||0===(null==O?void 0:O.length)&&k!==R.o.ERROR&&m===R.o.LOADED,V=k===R.o.LOADED&&(null==O?void 0:O.length)>0&&0===w.length,H=!(k===R.o.ERROR&&g!==c.Xt7.DVF_NOT_CONFIGURED)&&!z&&k!==R.o.LOADING&&a().createElement(Sl,{isDataValid:V,totalProfiles:P,invalidProfiles:_}),W=a().createElement(Ee,{title:f().text("Profiles with invalid data"),data:[{value:f().text("Shows the number of profiles that violate active validation functions")}],DataRenderer:at}),Y=((e,t)=>{return e===c.yn8.ATTRIBUTE_TYPE?(r=t.length,[{id:"label",label:f().text("Validation function"),secondLabel:`(${r})`,width:.4,sortable:!0},{id:"value",label:f().text("Profiles"),width:.6,sortable:!0}]):(e=>[{id:"attributeLabel",label:f().text("Attribute"),width:.23,sortable:!0},{id:"label",label:f().text("Validation function"),secondLabel:`(${e})`,width:.37,sortable:!0},{id:"value",label:f().text("Profiles"),width:.4,sortable:!0}])(t.length);var r})(i,w);return z||V||F?a().createElement(Tl,{config:t,chartType:U?wl.DVF_NOT_SUPPORTED:z?wl.DVF_NOT_CONFIGURE:V?wl.DATA_VALID:F?wl.PERMISSION_DENIED:void 0,title:f().text(t.title),infoTooltipTitle:W,titleChildren:H,dvfConfigLink:p,dataLevel:i}):a().createElement(hl,{config:t,title:f().text(t.title),data:w,onItemClick:j,titleChildren:H,state:k,onRefresh:M,customComparator:Nr,infoTooltipTitle:W,columnsOptions:Y})},Rl=(0,ye.Z)({monoFontCell:{fontFamily:'"Roboto Mono", monospace'}}),Il=e=>{let{config:t}=e;const r=Rl(),{data:n,state:i,reload:o}=mt(Dr),s=(0,l.useContext)(T).type,d=(0,c.Lt4)(s)?((e,t)=>e.map((e=>_({},e,{label:(0,c.mB6)({dataTypeDefinition:{type:t}},Number(e.label))}))))(n,s):n,u=vt(Fr),m=a().createElement(Ee,{title:f().text("Frequency analysis"),data:[{value:f().text("Shows the number of times each value occurs")}],DataRenderer:at}),h=[{id:"label",label:f().text("Value"),secondLabel:zr(n),width:.4,cellClassName:p()({[r.monoFontCell]:(0,c.m6e)(s)})},{id:"value",label:f().text("Count"),width:.6}];return a().createElement(hl,{config:t,data:d,title:t.title,infoTooltipTitle:m,onItemClick:u,state:i,onRefresh:o,columnsOptions:h})};function Al(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){Cl(e,t,r[t])}))}return e}function Cl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ll,Dl;!function(e){e[e.sun=0]="sun",e[e.mon=1]="mon",e[e.tue=2]="tue",e[e.wed=3]="wed",e[e.thu=4]="thu",e[e.fri=5]="fri",e[e.sat=6]="sat"}(Ll||(Ll={})),function(e){e[e.jan=0]="jan",e[e.feb=1]="feb",e[e.mar=2]="mar",e[e.apr=3]="apr",e[e.may=4]="may",e[e.jun=5]="jun",e[e.jul=6]="jul",e[e.aug=7]="aug",e[e.sep=8]="sep",e[e.oct=9]="oct",e[e.nov=10]="nov",e[e.dec=11]="dec"}(Dl||(Dl={}));const _l=e=>(0,d.pipe)((0,d.pathOr)({},[e,"data"]),Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),j),Pl="Reltio profiles",jl="Source profiles",kl=(0,d.pipe)((0,d.pathOr)({},["consolidationRate"]),(0,d.converge)(d.concat,[(0,d.pipe)((0,d.prop)("totalCrosswalksBySource"),(0,d.omit)(["ReltioCleanser"]),(e=>[Al({},e,{label:jl,group:jl})])),(0,d.pipe)((0,d.prop)("totalEntities"),(e=>[(0,d.assoc)(Pl,e,{label:Pl,group:Pl})]))]));var Ml;!function(e){e.AVERAGE="avg",e.MININMUN="min",e.MAXIMUM="max",e.MEDIAN="median",e.NUMBER_OF_SOURCES="numberOfSources",e.MIN_NUMBER_OF_PROFILES="minNumberOfProfiles",e.MAX_NUMBER_OF_PROFILES="maxNumberOfProfiles",e.AVG_NUMBER_OF_PROFILES="avgNumberOfProfiles"}(Ml||(Ml={}));const Bl=(e,t)=>{const r={lengthStatistics:{[Ml.MEDIAN]:f().text("Median"),[Ml.AVERAGE]:f().text("Average"),[Ml.MININMUN]:f().text("Minimum"),[Ml.MAXIMUM]:f().text("Maximum")},valueDistribution:{[Ml.MEDIAN]:f().text("Median"),[Ml.AVERAGE]:f().text("Average"),[Ml.MININMUN]:f().text("Minimum"),[Ml.MAXIMUM]:f().text("Maximum")},crosswalkAnalysis:{[Ml.NUMBER_OF_SOURCES]:f().text("No. of source systems"),[Ml.AVG_NUMBER_OF_PROFILES]:f().text("Avg no. of profiles"),[Ml.MIN_NUMBER_OF_PROFILES]:f().text("Min no. of profiles"),[Ml.MAX_NUMBER_OF_PROFILES]:f().text("Max no. of profiles")}};return(0,d.pathOr)(null,[t,e],r)},Fl=e=>(0,d.pipe)((0,d.propOr)({},e),Object.entries,(0,d.map)((t=>{let[r,l]=t;return{label:Bl(r,e),value:l}})),(0,d.filter)((e=>{let{label:t}=e;return t})),j),Ul=e=>t=>({chartData:_l(e)(t),infoPanelData:Fl(e)(t)}),zl=(e,t)=>(0,c.Lt4)(t)?(0,c.mB6)({dataTypeDefinition:{type:t}},Number(e)):f().number(e),Vl=(0,d.curry)(((e,t)=>{const r=(0,d.pipe)((0,d.prop)("group"),(0,d.split)(" "),d.head,Number),l=t.chartData.sort((0,d.ascend)(r)).map(((r,l)=>{const[a,n=a]=r.group.split(" ").map(Number),i=l===t.chartData.length-1,o=a!==n?((e,t,r)=>G(t)?`[${e}${r?"]":")"}`:e)(`${zl(a,e)} - ${zl(n,e)}`,e,i):zl(a,e);return Al({},r,{label:o,group:[a,n,i?"last":""].toString()})}));return{infoPanelData:t.infoPanelData.map((t=>{const r=(0,c.Lt4)(e)?(0,c.mB6)({dataTypeDefinition:{type:e}},Number(t.value)):(0,c.k7L)(t.value,999);return Al({},t,{value:r,localizedValue:(0,c.Lt4)(e)?r:t.localizedValue})})),chartData:l}})),Hl=(0,d.pipe)(Ul("lengthStatistics"),Vl("")),Wl=Ul("monthDistribution"),Yl=Ul("dayOfWeekDistribution"),Zl=Ul("dayOfMonthDistribution"),Gl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return yt({fieldName:`${r.fieldName}.day_of_week`,value:Ll[t.toLowerCase()],entityTypeUri:l})})),$l=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return yt({fieldName:`${r.fieldName}.month`,value:Dl[t.toLowerCase()],entityTypeUri:l})})),ql=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return yt({fieldName:`${r.fieldName}.day_of_month`,value:t,entityTypeUri:l})})),Ql=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;const[a,n]=t.split(",");return a===n?yt({fieldName:`${r.fieldName}.length`,value:a,entityTypeUri:l}):(e=>{let{fieldName:t,startRange:r,endRange:l,entityTypeUri:a}=e;return ht({keyword:`${c.j5E.IN_RANGE}(${t}, ${r}, ${l})`,entityTypeUri:a})})({fieldName:`${r.fieldName}.length`,startRange:a,endRange:n,entityTypeUri:l})})),Kl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return yt({fieldName:`${r.fieldName}.crosswalk_sources`,value:t,entityTypeUri:l})})),Xl=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;const[l,a]=t.split(",");return[{filter:c.j5E.AFTER,values:[l],fieldName:r},{filter:c.j5E.BEFORE,values:[a],fieldName:r}]})),Jl=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;const[l,a]=t.split(",");return[l===a?{filter:c.j5E.EQUALS,values:[[l]],fieldName:r}:{filter:c.j5E.IN_RANGE,values:[[l,a]],fieldName:r}]})),ea=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;const[l,a,n]=t.split(","),i=l===a,o=i?[{filter:c.j5E.EQUALS,values:[[l]],fieldName:r}]:[{filter:c.j5E.IN_RANGE,values:[[l,a]],fieldName:r}];return!n&&!i&&o.push({filter:c.j5E.NOT_EQUALS,values:[[a]],fieldName:r}),o})),ta=(0,d.cond)([[c.Lt4,(0,d.always)(F(Xl))],[G,(0,d.always)(F(ea))],[d.identity,(0,d.always)(F(Jl))]]),ra=(0,d.curry)(((e,t)=>{let{entityTypeUri:r}=e;return t===Pl?B(void 0,r,[]):(e=>{let{fieldName:t,value:r,entityTypeUri:l}=e;return ht({keyword:`${c.j5E.GT}(${t},${r})`,entityTypeUri:l})})({fieldName:`crosswalk_sources_count.${t}`,value:"'0'",entityTypeUri:r})})),la=(0,d.curry)(((e,t)=>!e||(0,d.propEq)("key",t,e)||t==Pl?1:.12)),aa=e=>e>999?f().number(e,"0,0.0a").toUpperCase():e;function na(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){ia(e,t,r[t])}))}return e}function ia(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oa=(0,ye.Z)((e=>({tooltipWrapper:na({},e.tooltip,{padding:"4px 8px"})}))),ca=e=>{var t;let{payload:r,active:l,name:n}=e;const i=null==r||null===(t=r[0])||void 0===t?void 0:t.payload,o=null==i?void 0:i.value,c=null==i?void 0:i.label,s=n?`${n}`:"",p=oa();return l&&a().createElement("div",{className:p.tooltipWrapper},a().createElement(Ee,{data:[{label:s,value:c},{label:f().text("No of profiles"),value:f().number(o)}]}))},sa=(0,ye.Z)((()=>({chartInfoLabel:{fontSize:"13px",lineHeight:"15px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},chartInfoValue:{fontSize:"13px",lineHeight:"15px",color:"rgba(0, 0, 0, 0.87)"},chartInfoWrapper:{display:"flex",backgroundColor:"rgba(0, 0, 0, 0.05)",margin:"0 12px 12px",padding:"9px 12px 8px"},chartInfoItem:{marginRight:"16px"},clickable:{cursor:"pointer"},title:{marginRight:"50px",fontSize:"16px"},root:{padding:"0 0 0 16px",minHeight:"auto",marginTop:"12px",marginBottom:"12px"}}))),pa=e=>{let{data:t}=e;const r=sa();return a().createElement("div",{className:r.chartInfoWrapper},t.map((e=>{let{label:t,value:l,localizedValue:n}=e;return a().createElement("div",{key:t,className:r.chartInfoItem},a().createElement("span",{className:r.chartInfoLabel},t,": "),l!==n?a().createElement(Ye.Tooltip,{title:n},a().createElement("span",{className:r.chartInfoValue},l)):a().createElement("span",{className:r.chartInfoValue},l))})))};var da=r(88611);const ua=(0,ye.Z)((()=>({labelWrapper:e=>{let{width:t}=e;return{overflow:"hidden",width:`${t}px`,marginTop:"-3px"}},xAxisLabel:{textAlign:"center",whiteSpace:"nowrap",fontSize:"12px","&::first-letter":{textTransform:"capitalize"},"&:after":{top:"0",right:"0",width:"10px",height:"100%",content:'""',position:"absolute",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}}}))),fa=e=>{let{width:t,height:r,label:l,x:n,y:i}=e;const o=ua({width:t}),c=n-t/2;return a().createElement("foreignObject",{x:c,y:i,width:t,height:r},a().createElement("div",{className:o.labelWrapper},a().createElement(da.C,{value:l},a().createElement("div",{className:o.xAxisLabel},l))))},ma=e=>{const{x:t,y:r,width:l,height:n,payload:i,visibleTicksCount:o}=e,{value:c}=i,s=l/o-4;return a().createElement(fa,{width:s,height:n,label:c,x:t,y:r})},ha=e=>{let{showCategories:t=!1,interval:r,barCategoryGap:l,maxBarSize:a,yTickRenderer:n,tickCount:i}=e;return{barChart:{barCategoryGap:l||"10%"},bar:{dataKey:"value",fill:"#0072CE",minPointSize:3,maxBarSize:a||50},xAxis:{tick:t&&ma,tickLine:!1,interval:r||0,dataKey:"label"},yAxis:{axisLine:!1,tickLine:!1,tick:n||{fill:"#000",fontSize:12},width:60,tickFormatter:aa,tickCount:i||5},cartesianGrid:{stroke:"#000",strokeOpacity:"0.05",vertical:!1},labelForX:{position:"insideBottom",style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"},offset:t?-3:3},labelForY:{angle:270,position:"left",offset:-3,style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"}}}};function ya(){return ya=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},ya.apply(this,arguments)}const ga=e=>{let{isClickable:t}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["isClickable"]);const l=sa(),n=t?l.clickable:void 0;return a().createElement(fe.Ae,ya({},r,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},va=e=>{const{value:t}=e;return t>0?a().createElement(fe.Ae,e):null};function ba(){return ba=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},ba.apply(this,arguments)}const Ea=e=>{let{data:t,config:r,xAxisLabel:l,yAxisLabel:n,barTooltipTitle:i,infoPanelData:o,infoTooltipTitle:c,onItemClick:s,options:p={},state:d,onRefresh:u}=e;const f=sa(),{title:m}=r,{cartesianGrid:h,bar:y,xAxis:g,yAxis:v,labelForX:b,labelForY:E,barChart:x}=ha(p),O=s&&(e=>{let{activePayload:t}=e;return s(t[0].payload.group)}),w=O?f.clickable:void 0,T=d===R.o.LOADED&&o.length>0;return a().createElement(lt,{config:r},a().createElement(Ue,{title:m,infoTooltipTitle:c}),T&&a().createElement(pa,{data:o}),a().createElement(et,{data:t,loadingState:d,onRefresh:u},(e=>{let{data:t,width:r=0,height:o=0}=e;return a().createElement("div",null,a().createElement(fe.vz,ba({width:r,height:o,data:t,onClick:O},x),a().createElement(fe.q3,h),a().createElement(fe.u,{content:a().createElement(ca,{name:i}),cursor:a().createElement(ga,{isClickable:!!O})}),a().createElement(fe.$Q,ba({},y,{shape:a().createElement(va,{className:w})})),a().createElement(fe.B2,v,a().createElement(fe.__,ba({},E,{value:n}))),a().createElement(fe.Kc,g,a().createElement(fe.__,ba({},b,{value:l})))))})))},xa=e=>{let{config:t}=e;const{data:r,state:l,reload:n}=mt(Hl),{chartData:i,infoPanelData:o}=r,c=vt(Ql),s=a().createElement(Ee,{title:f().text("Length statistics"),data:[{value:f().text("Measures the string length of values")}],DataRenderer:at});return a().createElement(Ea,{config:t,data:i,xAxisLabel:f().text("Length of values"),yAxisLabel:f().text("No. of profiles"),infoPanelData:o,barTooltipTitle:f().text("Length"),infoTooltipTitle:s,onItemClick:c,state:l,onRefresh:n})};var Oa=r(94175);const wa=(0,ye.Z)({icon:{width:"20px",height:"20px",borderRadius:"4px",fontSize:"14px",marginRight:"8px"},text:e=>{let{color:t}=e;return{backgroundColor:t}}}),Ta=e=>{let{chartData:t}=e;const{group:r,label:l}=t,n=wa({color:(0,c.kW2)(r)});return a().createElement(a().Fragment,null,a().createElement(Oa.Z,{sourceType:r,className:n.icon,classes:{textRoot:n.text}}),l)};function Sa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){Na(e,t,r[t])}))}return e}function Na(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ra=e=>{let{config:t}=e;const r=(0,n.useSelector)(y.ZP.selectors.getMetadata),{data:l,state:i,reload:o}=mt((e=>(0,d.pipe)(Ul("crosswalkAnalysis"),(0,d.applySpec)({chartData:(0,d.pipe)((0,d.prop)("chartData"),W(e)),infoPanelData:(0,d.pipe)((0,d.prop)("infoPanelData"),(0,d.map)((e=>(0,d.assoc)("value",(0,c.k7L)(e.value,999),e))))})))(r)),{chartData:s}=l,p=vt(Kl),u=a().createElement(Ee,{title:f().text("Source system analysis"),data:[{value:f().text("Distribution of source systems contributing to profiles")}],DataRenderer:at}),m=[{id:"label",label:f().text("Source system"),secondLabel:`(${s.length})`,width:.4,sortable:!0,labelRenderer:Ta},{id:"value",label:f().text("Profiles"),width:.6,sortable:!0}];return a().createElement(hl,{config:Sa({},t),data:s,title:t.title,infoTooltipTitle:u,onItemClick:p,state:i,onRefresh:o,customComparator:Nr,columnsOptions:m})},Ia=e=>{let{config:t}=e;const r=(0,l.useContext)(T).type,{data:n,state:i,reload:o}=mt((e=>(0,d.pipe)(Ul("valueDistribution"),Vl(e)))(r)),{chartData:c,infoPanelData:s}=n,p=vt(ta(r));return a().createElement(Ea,{config:t,data:c,xAxisLabel:f().text("Value"),yAxisLabel:f().text("No. of profiles"),infoPanelData:s,barTooltipTitle:f().text("Value"),onItemClick:p,state:i,onRefresh:o})},Aa=e=>{let{config:t}=e;const{data:r,state:l,reload:n}=mt(Wl),{chartData:i,infoPanelData:o}=r,c=vt($l);return a().createElement(Ea,{config:t,data:i,xAxisLabel:f().text("Months of the year"),yAxisLabel:f().text("No. of profiles"),infoPanelData:o,barTooltipTitle:f().text("Months of the year"),options:{showCategories:!0,barCategoryGap:"20%",interval:"preserveStartEnd"},onItemClick:c,state:l,onRefresh:n})},Ca=e=>{let{config:t}=e;const{data:r,state:l,reload:n}=mt(Yl),{chartData:i,infoPanelData:o}=r,c=vt(Gl);return a().createElement(Ea,{config:t,data:i,xAxisLabel:f().text("Days of the week"),yAxisLabel:f().text("No. of profiles"),infoPanelData:o,barTooltipTitle:f().text("Days of the week"),options:{showCategories:!0,barCategoryGap:"25%",interval:"preserveStartEnd"},onItemClick:c,state:l,onRefresh:n})},La=e=>{let{config:t}=e;const{data:r,state:l,reload:n}=mt(Zl),{chartData:i,infoPanelData:o}=r,c=vt(ql);return a().createElement(Ea,{config:t,data:i,xAxisLabel:f().text("Days of the month"),yAxisLabel:f().text("No. of profiles"),infoPanelData:o,barTooltipTitle:f().text("Days of the month"),options:{showCategories:!0,interval:1},onItemClick:c,state:l,onRefresh:n})},Da=e=>{let{config:t}=e;const r=Rl(),{data:l,state:n,reload:i}=mt(_r),o=vt(Ur),c=a().createElement(Ee,{title:f().text("Pattern analysis"),data:[]}),s=[{id:"label",label:f().text("Value"),secondLabel:zr(l),width:.4,cellClassName:r.monoFontCell},{id:"value",label:f().text("Count"),width:.6}];return a().createElement(hl,{config:t,data:l,title:t.title,infoTooltipTitle:c,onItemClick:o,state:n,onRefresh:i,columnsOptions:s})};function _a(){return _a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},_a.apply(this,arguments)}const Pa=e=>{let{xAxisLabel:t,yAxisLabel:r,data:l,getTooltip:n,getBarOpacity:i,barSelectHandler:o,width:s,height:p,showTopLabel:u=!1,options:f={},onItemClick:m,getBarColor:h,dataReltioId:y}=e;const g=sa(),{cartesianGrid:v,xAxis:b,yAxis:E,labelForX:x,labelForY:O,barChart:w,bar:T}=ha(f),S=(0,d.curry)(((e,t)=>m&&m(e,t.group))),N=m?g.clickable:void 0;return a().createElement("div",{"data-reltio-id":y},a().createElement(fe.vz,_a({width:s,height:p,data:l},w,{margin:{top:15}}),a().createElement(fe.q3,v),a().createElement(fe.u,{content:n,cursor:null}),(e=>{const t=(0,d.pipe)(d.mergeAll,(0,d.omit)(["label","group"]),d.keys)(e),r=(0,d.curry)(((e,r)=>{let{x:l,y:n,width:i,value:o}=r;return u&&e===t.length-1?a().createElement("text",{x:l+i/2,textAnchor:"middle",y:n-5,fontSize:"12px"},(0,c.k7L)(o,999)):null}));return t.map(((e,t)=>a().createElement(fe.$Q,{stackId:"all",dataKey:e,opacity:i?i(e):1,fill:h(e),onMouseOver:o(e),onMouseLeave:o(null),key:e,label:r(t),maxBarSize:T.maxBarSize,onClick:S(e),className:N})))})(l),a().createElement(fe.B2,E,a().createElement(fe.__,_a({},O,{value:r}))),a().createElement(fe.Kc,b,a().createElement(fe.__,_a({},x,{value:t})))))};function ja(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){ka(e,t,r[t])}))}return e}function ka(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ma=(0,ye.Z)({icon:e=>{let{color:t}=e;return{backgroundColor:t,flexShrink:0,fontSize:"14px",height:"12px",margin:" 0 8px 0 0",width:"12px"}}}),Ba=(0,ye.Z)((e=>({consolidationRateWrapper:{display:"flex"},ratePercent:{fontWeight:700,lineHeight:"24px",overflow:"hidden",textOverflow:"ellipsis"},tableWithSelectedRow:{"& .Table__grid__cell_wrapper_EWDDh":{opacity:.12},"& .Table__grid__cell_wrapper_EWDDh.hoveredRow":{opacity:1}},tooltipWrapper:ja({},e.tooltip,{padding:"4px 8px"})}))),Fa=e=>{let{data:t}=e;const r=Ba(),{totalCrosswalks:l,totalEntities:n}=t.consolidationRate,i=t.consolidationRate.totalCrosswalksBySource.ReltioCleanser||0,o=(100*(1-n/(l-i))).toFixed(1),s="0"==o.split(".")[1]?o.split(".")[0]:f().number(Number(o));return a().createElement(Ye.Typography,null,a().createElement("span",{className:r.ratePercent},s,"% "),a().createElement("span",null,`(${(0,c.k7L)(l-i,999)} ${f().text("to")} ${(0,c.k7L)(n,999)} ${f().text("profiles")})`))},Ua=e=>{let{chartData:t}=e;const{group:r,label:l}=t,n=Ma({color:(0,c.kW2)(r)});return a().createElement(a().Fragment,null,a().createElement("div",{className:n.icon}),l)},za=e=>{const{x:t,y:r,payload:{value:l},index:n}=e;return n%2==0?a().createElement("text",{fill:"#000",x:t,y:r,textAnchor:"middle",fontSize:"12px"},aa(Number(l))):null},Va=e=>"Reltio profiles"===e?"#0072CE":(0,c.kW2)(e),Ha=a().createElement(Ee,{title:f().text("Consolidation rate"),data:[{value:f().text("Consolidation rate is the measurement of the total number source profiles versus the number of Reltio profiles after removing duplicates.")},{value:f().text("Consolidation rate helps to understand the data reduction achieved by matching.")}]}),Wa=e=>{let{config:t}=e;const r=(0,n.useSelector)(y.ZP.selectors.getMetadata),i=Ba(),{title:o}=t,[s,u]=(0,l.useState)(),{data:m,state:h,reload:g}=mt(kl),{data:v}=mt((e=>(0,d.pipe)((0,d.pathOr)({},["consolidationRate"]),(e=>Object.keys((null==e?void 0:e.totalCrosswalksBySource)||[]).reduce(((t,r)=>"ReltioCleanser"!==r?t.concat({label:r,group:r,value:e.totalCrosswalksBySource[r]}):t),[])),W(e),(0,d.sort)((0,d.descend)((0,d.prop)("value")))))(r)),{data:b}=(0,l.useContext)(w),E=vt(ra),x=(0,l.useMemo)((()=>{const e=(0,d.pick)(["group","label"],m[0]);for(let t=v.length-1;t>=0;t--)e[v[t].group]=m[0][v[t].group];return[e,m[1]]}),[v,m]),O=(0,l.useCallback)((e=>{let{active:t}=e;if(!s||!t)return"";let l=[];return l="Reltio profiles"===(null==s?void 0:s.key)?[{label:f().text("Reltio profiles"),value:f().number(b.consolidationRate.totalEntities)}]:[{label:f().text("Source system"),value:(0,c.tH7)(r,s.key)},{label:f().text("Source profiles"),value:f().number(b.consolidationRate.totalCrosswalksBySource[s.key])}],a().createElement("div",{className:i.tooltipWrapper},a().createElement(Ee,{data:l}))}),[s,b,r]),T=(0,l.useCallback)((e=>()=>{if(e){const t=v.findIndex((0,d.propEq)("group",e));u({rowIndex:t,key:e})}else u(null)}),[u,v]),S=(0,l.useCallback)((e=>{if((0,d.isNil)(e))u(null);else{var t;const r=null===(t=v[e])||void 0===t?void 0:t.group;u({rowIndex:e,key:r})}}),[u,v]),N=e=>{if(!(0,d.isNil)(e)){var t;const r=null===(t=v[e])||void 0===t?void 0:t.group;E(r)}},R=[{id:"label",label:f().text("Source system"),secondLabel:`(${f().number(v.length)})`,resizable:!1,labelRenderer:Ua,width:.3},{id:"value",resizable:!1,label:f().text("Source profiles"),width:.7}];return a().createElement(lt,{config:t},a().createElement(Ue,{title:o,infoTooltipTitle:Ha},b.consolidationRate&&a().createElement(Fa,{data:b})),a().createElement(et,{data:v,loadingState:h,onRefresh:g},(e=>{let{height:t=0,width:r=0}=e;return a().createElement("div",{className:p()(i.consolidationRateWrapper,{[i.tableWithSelectedRow]:!(0,d.isNil)(null==s?void 0:s.rowIndex)&&-1!==(null==s?void 0:s.rowIndex)})},a().createElement(Pa,{yAxisLabel:f().text("No. of profiles"),data:x,getTooltip:O,getBarOpacity:la(s),getBarColor:Va,barSelectHandler:T,width:256,height:t,options:{showCategories:!0,maxBarSize:40,yTickRenderer:za,tickCount:8},onItemClick:E,dataReltioId:"reltio-dq-dashboard-consolidation-rate-barchart",showTopLabel:!0}),a().createElement(fl,{data:v,width:r-256,height:t,columnsOptions:R,sorting:{field:"value",order:"desc"},onRowClick:N,onRowHover:S,hoverRowIndex:null==s?void 0:s.rowIndex,hoverStateEnabled:!0,dataReltioId:"reltio-dq-dashboard-consolidation-rate-tablechart"}))})))};function Ya(){return Ya=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Ya.apply(this,arguments)}class Za{}Za.getComponent=e=>{let{type:t,config:r,isFullscreen:l,onToggleFullscreen:n}=e;const i={config:r,isFullscreen:l,onToggleFullscreen:n};switch(t){case b.FILL_RATE:return a().createElement(bt,i);case b.UNIQUENESS:return a().createElement(Nt,i);case b.SUMMARY:return a().createElement(yr,i);case b.DATA_VALIDATION:return a().createElement(Nl,i);case b.FREQUENCY:return a().createElement(Il,i);case b.LENGTH_STATISTIC:return a().createElement(xa,i);case b.CROSSWALK_ANALYSIS:return a().createElement(Ra,i);case b.VALUE_DISTRIBUTION:return a().createElement(Ia,i);case b.MONTH_DISTRIBUTION:return a().createElement(Aa,i);case b.DAY_OF_WEEK_DISTRIBUTION:return a().createElement(Ca,i);case b.DAY_OF_MONTH_DISTRIBUTION:return a().createElement(La,i);case b.PATTERN:return a().createElement(Da,i);case b.CONSOLIDATION_RATE:return a().createElement(Wa,i);default:return a().createElement(Or,Ya({},i,{errorData:{message:f().text("Chart isn't supported for this data type")}}))}};const Ga=Za,$a=e=>{let{layoutItemConfig:t,views:r,onToggleFullscreen:l,isFullscreen:n,className:i,children:o,style:c}=e;const s=r.find((e=>{let{id:r}=e;return t.i===r}));if(!s)return null;const{type:p}=s;return a().createElement("div",{style:c,className:i},Ga.getComponent({type:p,config:s,onToggleFullscreen:l,isFullscreen:n}),o)},qa=(0,ye.Z)({root:{overflow:"auto",backgroundColor:"#EEEEEE",height:"100%",flexGrow:1,padding:"0 4px",boxSizing:"border-box"}}),Qa=(0,d.map)((0,d.assoc)("isStatic",!0)),Ka={cols:4,rowHeight:10,margin:[12,12]},Xa=(0,l.memo)((e=>{let{views:t,layout:r,layoutOptions:n=Ka}=e;const i=qa(),o=(0,l.useMemo)((()=>Qa(r)),[r]);return a().createElement("div",{className:i.root},a().createElement(ue.Z,{LayoutItem:$a,views:t,layout:o,layoutOptions:n}))})),Ja=e=>{let{dataLevel:t,views:r,layout:l,isSliding:n=!1}=e;return(t===c.yn8.ATTRIBUTE_TYPE||n)&&a().createElement(de.Provider,{value:c.yn8.ATTRIBUTE_TYPE},a().createElement(Xa,{views:r,layout:l}))};var en=r(15762);const tn=(0,ye.Z)((e=>({breadcrumb:{fontSize:"16px",color:e.palette.text.primary},active:{color:"rgba(0, 0, 102, 1)"},clickable:{cursor:"pointer"}}))),rn=e=>{let{dataLevel:t,detailedAttributeType:r,onChange:l}=e;const n=tn();return a().createElement(Ye.Breadcrumbs,{separator:a().createElement(en.Z,{fontSize:"small"}),"aria-label":"breadcrumb"},[a().createElement(Ye.Typography,{key:c.yn8.ENTITY_TYPE,className:p()(n.breadcrumb,{[n.active]:t===c.yn8.ENTITY_TYPE,[n.clickable]:t===c.yn8.ATTRIBUTE_TYPE}),onClick:(e=>()=>{l(e)})(c.yn8.ENTITY_TYPE),"data-reltio-id":"reltio-dq-dashboard-breadcrumb-entity-level"},f().text("Entity overview"))].concat(t===c.yn8.ATTRIBUTE_TYPE?a().createElement(Ye.Typography,{key:c.yn8.ATTRIBUTE_TYPE,className:p()(n.breadcrumb,n.active),"data-reltio-id":"reltio-dq-dashboard-breadcrumb-attribute-level"},null==r?void 0:r.label):[]))};var ln=r(50166),an=r(83543),nn=r(98989),on=r(31269),cn=r(22385);const sn=(0,ye.Z)({root:{paddingRight:"12px",paddingLeft:"20px",display:"flex",flexDirection:"row-reverse"},detailIcon:{marginLeft:"-5px",borderRadius:"50%",padding:"2px",width:"26px",height:"26px",boxSizing:"border-box"},activeIcon:{background:"white"}}),pn=e=>{let{details:t,classes:r,fillRateData:l,fillRateState:n}=e;const i=sn(),o=(0,d.prop)("iconRoot",r);return a().createElement("div",{className:i.root},Object.entries(t||{}).reverse().map((e=>{let[t,r]=e,s=Ut.NORMAL;if(t===q.REQUIRED){const e=n===R.o.LOADING,t=0===(null==(u=l)||null===(f=u.find((0,d.propEq)("group",c.s9T.MISSING)))||void 0===f?void 0:f.value);e&&(s=Ut.LOADING),e||t||(s=Ut.BAD_QUALITY)}var u,f;return a().createElement("div",{key:t,className:p()(r&&(o||i.activeIcon),i.detailIcon)},r&&a().createElement(Ye.Tooltip,{title:oe(t)},a().createElement("span",null,a().createElement(zt,{detailType:t,variant:s,size:Ft.SMALL}))))})))},dn=(0,ye.Z)({bar:{width:"100%",display:"flex",flexWrap:"nowrap"},barPart:{height:"8px",flexGrow:1},fillRateSquare:{height:"8px",width:"8px",display:"inline-block",marginRight:"5px",verticalAlign:"middle"},inactiveBarPart:{background:"#EFEFEF"}});function un(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){fn(e,t,r[t])}))}return e}function fn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const mn=(0,he.Z)((e=>{let{data:t}=e;const r=dn(),l=it(t),n=t.map(((e,t)=>{let{label:n,percent:i,value:o}=e;return{label:a().createElement("span",null,a().createElement("div",{className:r.fillRateSquare,style:{background:l[t]}}),n),value:`${f().number(o)} ${k(i)}`}}));return M(t)?a().createElement("div",{className:r.bar},a().createElement("div",{className:p()(r.barPart,r.inactiveBarPart)})):a().createElement(Ye.Tooltip,{title:a().createElement(Ee,{title:f().text("Fill rate"),data:n})},a().createElement("div",{className:r.bar},t.map(((e,t)=>a().createElement("div",{key:e.group,className:r.barPart,style:un({},H(e),{background:l[t]})})))))})),hn="rgba(0, 114, 206, 0.12)",yn=(0,ye.Z)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:hn,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:hn}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"}}),gn=e=>{let{level:t,margin:r,hasChildren:l,isLastLevelItem:n,isCollapsed:i}=e;const o=yn(),c=!i&&(t>0||l);return a().createElement("div",{className:o.linesWrapper},((e,t)=>t>0&&e?(0,d.range)(1,t+1):t>1?(0,d.range)(1,t):[])(l,t).map((e=>a().createElement(on.Z,{key:e,margin:r,level:e,className:o.line}))),c&&a().createElement(on.Z,{margin:r,level:t,className:p()(o.line,!l&&t>0&&o.horizontalLine,l&&o.parentLine,n&&o.lastLevel)}))},vn=(0,ye.Z)({listItem:{padding:"0 0 0 15px","&:after":{content:'""',left:0,right:0,position:"absolute",bottom:0,height:"1px",background:"rgba(0, 0, 0, 0.05)"}},selectedItem:{background:"#F0F7FC !important"},pointerCursor:{cursor:"pointer"},content:{display:"flex",alignItems:"center",width:"100%",height:"100%",position:"relative"},attribute:{paddingLeft:"9px",boxSizing:"border-box",width:"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",height:"100%",position:"relative",fontSize:"13px"},marginWrapper:{display:"inline-block",height:"100%",position:"relative",width:"100%"},attributeType:{position:"absolute",left:0,top:"8px"},fillRate:{position:"absolute",bottom:"8px",left:0,right:0,zIndex:1},attributeLabel:{padding:"8px 0 0 15px",position:"relative","&:after":{content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}},selectedAttributeLabel:{"&:after":{background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #F0F7FC 100%)"}},parentAttributeLabel:{padding:"14px 0 0 13px"},detailsIconSelected:{background:"#F0F7FC"},detailsIcon:{background:"white"},collapseIcon:{marginRight:"6px"},iconLoader:{width:"22px",height:"22px",border:"2px solid white",background:"rgba(196, 196, 196, 0.4)",borderRadius:"50%"},selectedIconLoader:{border:"2px solid #F0F7FC"},iconsLoaderWrapper:{paddingRight:"23px",paddingLeft:"28px",display:"flex"},iconLoaderWrapper:{width:"24px",height:"24px",backgroundColor:"white",borderRadius:"50%",marginRight:"-3px"},fillRateLineLoader:{height:"8px",width:"100%",background:"rgba(196, 196, 196, 0.4)",left:0,right:0,bottom:"8px",zIndex:1,position:"absolute"}}),bn=e=>{let{detailedAttributeType:t,fillRateData:r,fillRateState:l,style:n,level:i,selected:o=!1,onClick:c,onCollapse:s=Vr.ZT,isCollapsed:u=!1,isLastLevelItem:f=!1,isLoading:m}=e;const h=vn(),y=!!t.children,g=!!r,v=$(t),b=u?nn.Z:an.Z,E=o?h.detailsIconSelected:h.detailsIcon;return a().createElement(Ye.ListItem,{style:n,selected:o,classes:{selected:h.selectedItem},onClick:y?void 0:()=>{c(t)},component:"div",className:p()(h.listItem,!y&&h.pointerCursor)},a().createElement("div",{className:h.content},!y&&a().createElement("div",{className:h.attributeType},a().createElement(ur,{type:t.type})),a().createElement("div",{className:h.attribute},a().createElement(gn,{level:i,margin:20,hasChildren:y,isLastLevelItem:f,isCollapsed:u}),a().createElement(on.Z,{margin:20,level:i,className:h.marginWrapper},a().createElement(da.C,{value:v},a().createElement("div",{className:p()(h.attributeLabel,o&&h.selectedAttributeLabel,y&&h.parentAttributeLabel)},y&&a().createElement(cn.Z,{size:"XXS",icon:b,onClick:s,className:h.collapseIcon}),v))),!m&&g&&!y&&a().createElement("div",{className:h.fillRate},a().createElement(mn,{data:r})),m&&!y&&a().createElement("div",{className:h.fillRateLineLoader})),m?a().createElement("div",{className:h.iconsLoaderWrapper},(0,d.times)((e=>a().createElement("div",{className:h.iconLoaderWrapper,key:`unloadedIcon-${e}`},a().createElement("div",{className:p()(h.iconLoader,{[h.selectedIconLoader]:o})}))),5)):a().createElement(pn,{details:t.details,classes:{iconRoot:E},fillRateData:r,fillRateState:l})))},En=(0,d.propOr)({},"attributeItem"),xn=(0,d.pipe)((0,d.find)((0,d.pipe)(En,(0,d.either)(c.YkM,c.Or$),d.not)),En),On=e=>(0,d.pipe)(En,(0,d.propEq)("fieldName",e)),wn=e=>(0,d.filter)((0,d.propEq)("group",e));let Tn;!function(e){e.SHOW_EMPTY="showEmpty"}(Tn||(Tn={}));const Sn=(0,d.curry)(((e,t,r)=>{const l=(0,d.head)(wn("emptiness")(e));return(null==l?void 0:l.value)===Tn.SHOW_EMPTY?r:r.filter((0,d.pipe)(En,ee(t)))})),Nn=e=>{const t=Object.values(q);return e.filter((0,d.pipe)((0,d.prop)("value"),(0,d.includes)(d.__,t)))},Rn=(0,d.pipe)(En,(0,d.prop)("fieldName")),In=(0,d.curry)(((e,t)=>{const r=(0,d.pipe)(wn("details"),Nn)(e),l=(e=>(0,d.pipe)((0,d.filter)((0,d.pipe)(En,(0,d.both)((0,d.prop)("children"),X(e)))),(0,d.map)(Rn)))(r)(t);return t.filter((e=>{let{attributeItem:t}=e;return l.some((e=>t.fieldName.startsWith(e)))||J(r,t)}))})),An=(0,d.pipe)((0,d.map)(En),(0,d.pluck)("fieldName"),d.identity);function Cn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ln=r(36444),Dn=r(15115);const _n=(0,ye.Z)((e=>({searchWrapper:{padding:"8px 0px 8px 16px",alignItems:"center",display:"flex",flexGrow:1,justifyContent:"flex-end",marginLeft:"-105px"},filterByDetails:{width:"32px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"9px"},searchInput:{borderRadius:"4px",width:"202px",minHeight:"32px!important",justifyContent:"flex-end",alignItems:"center",padding:"0 2px",boxSizing:"border-box","& input":{fontSize:"13px"},"& button":{padding:"2px"}},filledInput:{"& button:last-child":{backgroundColor:"rgba(0, 0, 0, 0.0509804)"}},menu:{width:"300px",paddingTop:"8px"},filterIcon:{color:e.palette.text.secondary},filterIconFilterApplied:{color:"#0072CE"},filterIconWrapper:{width:"32px",height:"32px",borderRadius:"4px",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",position:"relative","&:after":{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"4px",background:"rgba(0, 0, 0, 0.04)"},"&:hover":{"&:after":{content:'""'}}},filterIconWrapperActive:{background:"rgba(0, 0, 0, 0.04)","&:after":{content:'""',background:"rgba(0, 0, 0, 0.04)"}},filterIconWrapperSelected:{background:"rgba(0, 114, 206, 0.12)"},dropdownMenuTitle:{lineHeight:"48px",height:"48px",paddingLeft:"16px"},option:{paddingLeft:"5px",fontSize:"13px",height:"28px",lineHeight:"16px",letterSpacing:"normal",paddingRight:"19px",filter:e=>e?"grayscale(0)":"grayscale(1)",opacity:e=>e?1:.5},typeIconWrapper:{width:"28px",marginLeft:"1px","& svg":{width:"20px",height:"20px"}},valueContainer:{marginLeft:0},counter:{marginLeft:"5px"},optionLabel:{flexGrow:1},groupLabel:{textTransform:"uppercase",margin:"15px 16px 5px",letterSpacing:"0.1px",display:"block"},actionsContainer:{display:"flex",padding:"12px 5px 8px 12px"},clearAllButton:{marginRight:"auto"}}))),Pn=e=>{let{isSelected:t,data:r,onChange:l}=e;const{count:n,label:i,value:o}=r,s=!(0,d.isNil)(n),p=_n(!s||n>0);return a().createElement(Ye.MenuItem,{className:p.option,component:"div",onClick:()=>l(r),"data-reltio-id":`reltio-dq-dashboard-option-${r.value}`},a().createElement(Ye.Checkbox,{color:"primary",checked:t}),a().createElement("span",{className:p.typeIconWrapper},a().createElement(zt,{detailType:o})),a().createElement(da.C,{value:i},a().createElement("div",{className:p.optionLabel},i)),s&&a().createElement("span",{className:p.counter},(0,c.k7L)(n,999)))},jn=(0,d.curry)(((e,t)=>!!t.find((0,d.propEq)("value",e.value)))),kn=(0,d.curry)(((e,t)=>{const r=t.findIndex((0,d.propEq)("value",e.value));return-1!==r?(0,d.remove)(r,1,t):t})),Mn=e=>{let{defaultFilterOptions:t=[],filterOptions:r,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=_n(),[s,u]=(0,l.useState)(null),[m,h]=(0,l.useState)([]),[y,g]=(0,l.useState)(n||null);(0,l.useEffect)((()=>{h(((e,t)=>{const r=(0,d.pipe)((0,d.pluck)("options"),d.flatten)(t);return e.filter((e=>{let{value:t}=e;return r.find((0,d.propEq)("value",t))}))})(t,r))}),[t,r]);const v=()=>u(null),b=e=>{h((0,d.ifElse)(jn(e),kn(e),(0,d.concat)([e])))},E=!!m.length,x=!!s,O=p()(c.filterIconWrapper,{[c.filterIconWrapperActive]:x,[c.filterIconWrapperSelected]:E}),w=E?c.filterIconFilterApplied:c.filterIcon;return a().createElement("div",{className:c.searchWrapper},a().createElement("div",{"data-reltio-id":"reltio-dq-dashboard-attributes-search-input"},a().createElement(Dn.Z,{autofocus:!0,onChange:e=>{g(e),i(e||"")},initialValue:n||null,height:40,placeholder:f().text("Search attribute name"),classes:{root:p()(c.searchInput,{[c.filledInput]:!!y})}})),a().createElement("div",{className:c.filterByDetails,"data-reltio-id":"reltio-dq-dashboard-attributes-filter"},a().createElement("div",{className:O,onClick:e=>u(e.currentTarget)},a().createElement(Ln.Z,{className:w})),a().createElement(Ye.Popover,{open:!!s,anchorEl:s,onClose:()=>{h((0,d.always)(t)),v()},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{"data-reltio-id":"reltio-dq-dashboard-attributes-filter-popup"}},a().createElement("div",{className:c.menu},a().createElement(Ye.Typography,{variant:"h6",className:c.dropdownMenuTitle},f().text("Filter")),a().createElement("div",{className:c.valueContainer},r.map((e=>{let{label:t,options:r}=e;return a().createElement("div",{key:t},t&&a().createElement(Ye.Typography,{variant:"caption",className:c.groupLabel},t),r.map((e=>{const t=jn(e,m);return a().createElement(Pn,{key:e.label,data:e,isSelected:t,onChange:b})})))})))),a().createElement("div",{className:c.actionsContainer},a().createElement(Ye.Button,{onClick:()=>{h([])},className:c.clearAllButton,disabled:!E,"data-reltio-id":"reltio-dq-dashboard-filter-clear-all-button"},f().text("Clear all")),a().createElement(Ye.Button,{onClick:()=>{h(t),v()},"data-reltio-id":"reltio-dq-dashboard-filter-cancel-button"},f().text("Cancel")),a().createElement(Ye.Button,{color:"primary",onClick:()=>{o(m),v()},"data-reltio-id":"reltio-dq-dashboard-filter-apply-button"},f().text("Apply"))))))},Bn=(0,ye.Z)((e=>({root:{width:"360px",minWidth:"360px",maxWidth:"360px",display:"flex",flexDirection:"column",background:"#fff",zIndex:1,marginBottom:"8px",borderRadius:"4px",boxShadow:"0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.12), 0px 1px 3px rgba(0, 0, 0, 0.2)"},title:{height:"24px",margin:"16px",display:"flex",alignItems:"center",fontSize:"16px",lineHeight:"24px",color:e.palette.text.primary},itemCount:{color:e.palette.text.primary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px"},listWrapper:{flexGrow:1,overflow:"hidden",position:"relative"},loadingAnimation:{"&:before":{position:"absolute",top:0,right:0,bottom:0,left:"50%",zIndex:1,width:"500%",marginLeft:"-250%",background:"linear-gradient(to right, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 54%) 50% 50%;",animation:"$loaderAnimation 0.8s linear infinite",content:'""',pointerEvents:"none"}},columnsTitle:{height:"48px",display:"grid",gridGap:"32px",gridTemplateColumns:"308px 108px",alignItems:"center",padding:"0 16px",background:"rgba(0, 0, 0, 0.06)",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",fontWeight:500,fontSize:"12px",lineHeight:"16px",color:e.palette.text.secondary},loaderWrapper:{position:"absolute",top:"0",left:"0",width:"100%",height:"4px",zIndex:1},"@keyframes loaderAnimation":{"0%":{transform:"translate(-30%, 0)"},"100%":{transform:"translate(30%, 0)"}}}))),Fn=e=>{var t,r;let{entityType:i,onAttributesListChange:o,defaultFieldName:s,defaultFilterOptions:u,defaultFilterText:m,disableAttributeSelection:g}=e;const v=Bn(),b=(0,l.useRef)(),E=(0,l.useRef)(),[x,O]=(0,l.useState)(m||""),[T,N]=(0,l.useState)([]),[A,C]=(0,l.useState)(u||[]),[L,D]=(0,l.useState)({fieldName:s}),[_,P]=(0,l.useState)({}),{data:j}=(0,l.useContext)(w),k=null===(t=(0,l.useContext)(S))||void 0===t||null===(r=t.dvfs)||void 0===r?void 0:r.state,M=((e,t)=>{var r,a;const i=(0,n.useSelector)(y.ZP.selectors.getMetadata),o=(0,l.useMemo)((()=>(e=>(0,d.pipe)(c.WN0,le(e),ce))(t)(i,e)),[i,e,t]),[s,p]=(0,l.useState)([]),u=e.uri,f=(0,l.useMemo)((()=>(0,c.qhs)(i,u)),[i,u]),m=null===(r=(0,l.useContext)(S))||void 0===r||null===(a=r.dvfs)||void 0===a?void 0:a.data;return(0,l.useEffect)((()=>{p([]),m&&p(o.map((0,d.evolve)({attributeItem:e=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){Cn(e,t,r[t])}))}return e}({},e,{details:ie({attrTypeItem:e,dvf:m,matchAttributes:f})},e.children&&{children:e.children.map((t=>(t.details=ie({attrTypeItem:t,dvf:m,matchAttributes:f}),t.details.reference=e.isAttributeReference,t)))})})))}),[o,f,m]),s})(i,x),B=An(M),F=(0,l.useMemo)((()=>B),[B.toString()]),{data:U,state:z}=((e,t)=>{const[r,a]=(0,l.useState)(R.o.INIT),[n,i]=(0,l.useState)({}),o=(0,I._)(),s=e=>{console.error(e),a(R.o.ERROR),i({})},p=(0,l.useCallback)((()=>{if(t.length)return a(R.o.LOADING),i({}),o((0,c.TTx)({entityTypeUri:e,attributes:t,dataLevel:c.yn8.ATTRIBUTE_TYPE,metrics:[c.N0y.FILL_RATE]})).then(st).then((e=>{i(e),a(R.o.LOADED)})).catch(s)}),[o,a,i,t]),d=(0,l.useCallback)((()=>{try{p()}catch(e){s(e)}}),[p]);return(0,l.useEffect)((()=>{d()}),[d]),{data:n,state:r,reload:d}})(i.uri,F);(0,l.useEffect)((()=>P(U)),[U]),(0,l.useEffect)((()=>{const e=(null==j?void 0:j.fillRate)&&ct(null==j?void 0:j.fillRate),t=_[L.fieldName];P((r=>!e||(0,d.equals)(t,e)?r:(0,d.assoc)(L.fieldName,e,r)))}),[null==j?void 0:j.fillRate]);const V=z===R.o.LOADING||k===R.o.LOADING||z===R.o.INIT||k===R.o.INIT,{filteredItems:H,filterOptions:W}=(0,l.useMemo)((()=>{const e=z===R.o.INIT||z===R.o.LOADING?M:Sn(A,_,M),t=(e=>{const t=Object.values(q).map((e=>({value:e,label:oe(e),group:"details"}))).map((t=>(0,d.assoc)("count",((e,t)=>e.filter((e=>X([t],e.attributeItem))).length)(e,t),t)));return{label:f().text("Attribute properties"),options:t}})(e);return{filteredItems:In(A,e),filterOptions:[{label:"",options:[{label:f().text("Show attributes with no data"),value:Tn.SHOW_EMPTY,group:"emptiness"}]},t]}}),[M,A,_,z]),Y=(0,l.useMemo)((()=>((e,t)=>e.filter((e=>{let{attributeItem:r}=e;return!t.some((e=>r.fieldName.startsWith(e)&&r.fieldName!==e))})))(H,T)),[H,T]),Z=H.length,G=e=>{o({selectedDetailedAttributeType:e,filterText:x,filterOptions:A}),D({fieldName:e.fieldName})},$=()=>{const e=((e,t)=>(0,d.pipe)((0,d.find)(On(t)),(0,d.propOr)(null,"attributeItem"))(e))(H,L.fieldName)||xn(H);return(0,d.isEmpty)(e)||g?null:e};(0,l.useEffect)((()=>{var e,t,r;if(g)return void(null===(r=b.current)||void 0===r||r.scrollTo(0));if(H.length){const e=$();D({fieldName:(null==e?void 0:e.fieldName)||L.fieldName})}const l=((e,t)=>(0,d.findIndex)(On(t))(e))(H,L.fieldName);l>-1?null===(e=b.current)||void 0===e||e.scrollToItem(l,"center"):null===(t=b.current)||void 0===t||t.scrollTo(0)}),[H]),(0,l.useEffect)((()=>{const e=$();o({selectedDetailedAttributeType:e,filterText:x,filterOptions:A})}),[x,A,L]),(0,l.useEffect)((()=>{D((e=>{let{fieldName:t}=e;return g?{fieldName:null}:{fieldName:t}}))}),[g]);const Q=e=>{let{scrollOffset:t}=e;if(E.current){var r,l;const e=null===(r=E.current)||void 0===r||null===(l=r.style)||void 0===l?void 0:l.borderTop;0===t&&(E.current.style.borderTop=""),t>0&&""===e&&(E.current.style.borderTop="1px solid rgba(0, 0, 0, 0.05)")}},K=e=>{let{data:t,index:r,style:l}=e;const{attributeItem:n,level:i=0}=t[r],o=L.fieldName===n.fieldName,c=((e,t)=>e[t.fieldName])(_,n),s=r>0&&i>(0,d.pathOr)(-1,[r+1,"level"],Y);return a().createElement(bn,{fillRateData:c,fillRateState:z,isLoading:V,style:l,detailedAttributeType:n,level:i,onClick:G,selected:o,onCollapse:(p=n.fieldName,()=>{N((e=>e.includes(p)?e.filter((e=>e!==p)):e.concat(p)))}),isCollapsed:T.includes(n.fieldName),isLastLevelItem:s});var p},J=Y.length,ee=!!J;return a().createElement("div",{className:v.root},a().createElement("div",{className:v.title},f().text("Attributes"),a().createElement("span",{className:v.itemCount},`${Z} ${te=Z,1===te?f().text("item"):f().text("items")}`),a().createElement(Mn,{defaultFilterText:m,defaultFilterOptions:A,onChangeFilterOptions:C,onChangeFilterText:O,filterOptions:W})),a().createElement("div",{ref:E,className:p()(v.listWrapper,{[v.loadingAnimation]:V}),"data-reltio-id":"reltio-dq-dashboard-attributes-list"},ee?a().createElement(ze.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return a().createElement(ln.FixedSizeList,{ref:b,itemCount:J,width:"100%",height:t,itemData:Y,itemSize:48,onScroll:Q},K)})):!V&&a().createElement(Xe,{height:349,data:{Icon:h.B9.SEARCH_RESULTS,title:f().text("No results found"),message:f().text("Try adjusting your search or filter to find\nwhat you’re looking for")},variant:pe.MEDIUM})));var te},Un=(0,ye.Z)({root:{display:"flex",alignItems:"center",width:"100%"},title:{flexShrink:0,paddingLeft:"20px"},content:{overflow:"hidden",flexGrow:1}}),zn=e=>{let{title:t,children:r}=e;const l=Un();return a().createElement("div",{className:l.root},a().createElement(Ye.Typography,{variant:"h6",className:l.title},t),a().createElement("div",{className:l.content},r))};var Vn=r(51209);function Hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){Wn(e,t,r[t])}))}return e}function Wn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Yn={position:"absolute",content:'""',top:0,left:0,right:0,zIndex:1},Zn=(0,ye.Z)((e=>({entityLevelBarWrapper:e=>{let{attributeListWidth:t}=e;return{width:`calc(100% - ${t-12}px)`,height:"100%",verticalAlign:"top",position:"relative",boxSizing:"border-box"}},entityLevelBar:t=>{let{transitionTimeout:r}=t;return{position:"absolute",top:0,bottom:0,right:"16px",width:"28px",background:"linear-gradient(0deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)), #FFFFFF",boxShadow:"0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.12), 0px 1px 3px rgba(0, 0, 0, 0.2)",color:e.palette.text.secondary,fontWeight:500,fontSize:"14px",writingMode:"vertical-rl",textTransform:"uppercase",cursor:"pointer",transition:`opacity ${r}s`,padding:"52px 0",marginBottom:"8px",lineHeight:"28px"}},entityLevelBarHidden:()=>({opacity:0}),entityLevelLayout:e=>{let{transitionTimeout:t}=e;return{width:"100%",height:"100%",position:"relative",left:0,transition:`left ${t}s`,marginTop:"-12px","&:before":Hn({},Yn,{top:"8px",height:"4px",background:"linear-gradient(180deg, #EEEEEE 0%, rgba(238, 238, 238, 0) 100%)",zIndex:1}),"&:after":Hn({},Yn,{height:"8px",background:"#EEEEEE"})}},entityLevelLayoutSliding:e=>{let{entityLevelBarWidth:t}=e;return{left:`-${t}px`}},expandButton:{position:"absolute",top:"15px",left:"6px",writingMode:"initial",textTransform:"none",maxWidth:"24px",height:"24px",borderRadius:"12px",background:"#fff",boxShadow:"0px 2px 2px rgba(0, 0, 0, 0.14), 0px 3px 1px rgba(0, 0, 0, 0.12), 0px 1px 5px rgba(0, 0, 0, 0.2)",transition:"max-width 0.3s linear",zIndex:2,overflow:"hidden",display:"flex",lineHeight:"28px","&:hover":{maxWidth:"500px"}},expandButtonText:{paddingRight:"8px",fontSize:"12px",lineHeight:"24px"}}))),Gn=e=>{let{showEntityLevel:t,dataLevel:r,views:l,layout:n,entityType:i,isSliding:o=!1}=e;const s=Zn({transitionTimeout:.3,attributeListWidth:360,entityLevelBarWidth:76}),d=`${f().text("Entity")}: ${(0,c.idV)(i.label)} ${f().text("overview")}`;return a().createElement("div",{className:s.entityLevelBarWrapper,onClick:t},a().createElement("div",{className:p()(s.entityLevelBar,{[s.entityLevelBarHidden]:r===c.yn8.ENTITY_TYPE}),"data-reltio-id":"reltio-dq-dashboard-entity-level-bar-button"},a().createElement("div",{className:s.expandButton},a().createElement(Vn.Z,null),a().createElement("span",{className:s.expandButtonText},d)),f().text("Entity")),a().createElement("div",{className:p()(s.entityLevelLayout,{[s.entityLevelLayoutSliding]:r!==c.yn8.ENTITY_TYPE})},(r===c.yn8.ENTITY_TYPE||o)&&a().createElement(de.Provider,{value:c.yn8.ENTITY_TYPE},a().createElement(Xa,{views:l,layout:n}))))},$n=(0,ye.Z)((e=>({additionalLabel:{fontSize:"10px",lineHeight:"12px",height:"12px",background:"rgba(0, 0, 0, 0.05)",padding:"1px 4px",borderRadius:"2px"},selectRoot:{"&>fieldset":{border:"none !important",outline:"none !important"}},select:{borderRadius:"6px !important",border:"1px solid rgba(0, 0, 0, 0.05)",padding:"3px 29px 3px 15px !important",fontSize:"18px",lineHeight:"24px",paddingRight:"30px",color:e.palette.text.primary,"&:hover,&:focus":{background:"rgba(0, 0, 0, 0.05)",border:"none",padding:"4px 30px 4px 16px !important"}},selectValue:{display:"flex",alignItems:"center",gap:"9px"},arrowIcon:{height:"16px",top:"calc(50% - 8px)",right:"1px"},menu:{padding:"4px 0",display:"flex",flexDirection:"column",gap:"4px"},optionRoot:{width:"184px",display:"flex",paddingRight:"8px"},optionEntityLabel:{flexGrow:1,fontSize:"13px",textOverflow:"ellipsis",overflow:"hidden",paddingRight:"10px",minWidth:0}}))),qn=e=>{let{entityTypes:t,entityTypeUri:r,getEntityCount:l,onChange:n}=e;const i=$n(),o=(0,d.pipe)((0,d.map)((e=>(0,d.assoc)("entityCount",l(e.uri))(e))),(0,d.sortWith)([(e,t)=>{let{entityCount:r}=e,{entityCount:l}=t;return r===l||r>0&&l>0?0:0===r?1:-1},(0,d.ascend)((0,d.prop)("label"))]),(0,d.map)((e=>{let{label:t,uri:r,entityCount:l}=e;return{label:t,entityCount:l,value:r}})))(t),s=e=>a().createElement("span",{className:i.additionalLabel},(0,c.k7L)(e,999));return a().createElement(Ye.Select,{variant:"outlined",MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null,classes:{list:i.menu}},value:r,onChange:(0,d.pipe)(Vr.NA,n),renderValue:e=>{const{label:t,entityCount:r}=(0,d.find)((0,d.propEq)("value",e))(o);return a().createElement("div",{className:i.selectValue},t,s(r))},className:i.selectRoot,classes:{outlined:i.select,icon:i.arrowIcon},autoWidth:!0,"data-reltio-id":"reltio-dq-dashboard-entity-type-selector"},o.map(((e,t)=>{let{value:r,label:l,entityCount:n}=e;return a().createElement(Ye.MenuItem,{key:r,value:r,classes:{root:i.optionRoot},"data-reltio-id":`reltio-dq-dashboard-entity-type-selector-option-${t}`},a().createElement(da.C,{value:l},a().createElement(Ye.Typography,{className:i.optionEntityLabel},l)),s(n))})))};function Qn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){Kn(e,t,r[t])}))}return e}function Kn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Xn={position:"absolute",content:'""',top:0,left:0,right:0,zIndex:1},Jn=(0,ye.Z)((e=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowX:"hidden",overflowY:"auto",fontFamily:"Roboto, Helvetica, Arial, sans-serif",display:"flex",flexDirection:"column",background:"#EEEEEE"},content:()=>({display:"flex",height:"100%",whiteSpace:"nowrap",marginLeft:"12px"}),contentWithEntityLevel:e=>{let{attributeListWidth:t,entityLevelBarWidth:r}=e;return{width:`calc(200% - ${t+r}px)`,marginLeft:"0"}},additionalLabel:{color:e.palette.text.secondary,marginLeft:"10px"},contentWrapper:e=>{let{attributeListWidth:t,entityLevelBarWidth:r,transitionTimeout:l}=e;return{flexGrow:1,position:"absolute",top:"56px",bottom:0,left:`calc(-100% + ${t+r}px)`,width:"100%",height:"calc(100% - 56px)",transition:`left ${l}s`}},contentWrapperOneSlide:()=>({left:0,transition:"none"}),contentWrapperEntityLevel:()=>({left:0}),attributeLevelWrapper:()=>({verticalAlign:"top",width:"auto",height:"100%",flexGrow:1,position:"relative",marginTop:"-12px","&:before":Qn({},Xn,{top:"8px",height:"4px",background:"linear-gradient(180deg, #EEEEEE 0%, rgba(238, 238, 238, 0) 100%)",zIndex:1}),"&:after":Qn({},Xn,{height:"8px",background:"#EEEEEE"})}),attributeLevelWithEntityLevel:e=>{let{attributeListWidth:t,entityLevelBarWidth:r}=e;return{width:`calc(100% - ${t+r}px)`}},navigationWrapper:{display:"flex",gap:"16px",padding:"12px",alignItems:"center"}})));function ei(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ti=(0,d.path)([0,"uri"]),ri=e=>{var t,r,i,o,s;let{config:u,saveState:g,getSavedState:v}=e;const A=Jn({transitionTimeout:.3,attributeListWidth:360,entityLevelBarWidth:76}),D=(()=>{const e=(0,n.useSelector)(y.ZP.selectors.getMetadata);return(0,l.useMemo)((()=>e.entityTypes.filter(c.oDv)),[e.entityTypes])})(),[_,P]=(0,l.useState)(),[j,k]=(0,l.useState)(!1),M=D&&_?(0,c.nt9)({entityTypes:D},_):null,B=L(D),[F,H]=(0,l.useState)(null),{isLoaded:W,savedState:Y}=(0,m.a)(v),Z=(0,n.useSelector)(y.ZP.selectors.getCanUserGetDQStatistic),[G,$]=(0,l.useState)(),q=(e=>{const[t,r]=(0,l.useState)(null),[a,i]=(0,l.useState)(null),o=(0,I._)(),s=(0,n.useSelector)(y.ZP.selectors.getServicesPath),p=(0,n.useSelector)(y.ZP.selectors.getEnvironment),u=(0,n.useSelector)(y.ZP.selectors.getTenant);return(0,l.useEffect)((()=>{o((0,c.JUW)({servicesPath:s,tenant:u,environment:p})).then((e=>{var t;const l=null==e||null===(t=e.data)||void 0===t?void 0:t.apps.find((0,d.propEq)("name","Console")).uri;r(l)})).catch((()=>r(null)))}),[p,u,s]),(0,l.useEffect)((()=>{const r=t&&null!=e&&e.uri?(0,d.pipe)((0,d.split)("?"),(0,d.insert)(1,`datamodeler/entityDetails/${(0,c.nIW)(e.uri)}/validation?`),(0,d.join)(""))(t):null;i(r)}),[e,t]),a})(M),Q=(e=>{const[t,r]=(0,l.useState)(null),[a,i]=(0,l.useState)(R.o.INIT),[o,s]=(0,l.useState)(),p=(0,n.useSelector)(y.ZP.selectors.getTenant),d=(0,n.useSelector)(y.ZP.selectors.getDVFPath),u=(0,I._)(),f=(0,n.useSelector)(y.ZP.selectors.getEnvironment),m=(0,n.useSelector)(y.ZP.selectors.getCanUserReadDVF),h=e=>{console.error(e),i(R.o.ERROR),r([]),s(null==e?void 0:e.errorCode)},g=e=>{r(e.functions),s(void 0),i(R.o.LOADED)},v=(0,l.useCallback)((()=>{if(m)return e&&f?(s(void 0),i(R.o.LOADING),u((0,c.HaQ)({dvfPath:d,tenant:p,entityTypeUri:e,env:f})).then(g).catch(h)):void 0;h({errorCode:c.Xt7.ACCESS_DENIED})}),[d,p,e,f]);return(0,l.useEffect)((()=>{v()}),[v]),(0,l.useMemo)((()=>({data:t,state:a,reload:v,errorCode:o})),[t,a,v,o])})(null==M?void 0:M.uri),K=(0,l.useMemo)((()=>({dvfs:Q,dvfConfigLink:q})),[Q,q]),X=(0,l.useRef)();(0,l.useEffect)((()=>{X.current=Y}),[Y]);const J=(0,l.useCallback)((e=>{if((null==M?void 0:M.uri)!==e){H(null),P(e);const t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){ei(e,t,r[t])}))}return e}({dataLevel:c.yn8.ENTITY_TYPE,entityTypeUri:e},X.current&&{filterOptions:X.current.filterOptions,filterText:X.current.filterText,fieldName:X.current.fieldName});$(c.yn8.ENTITY_TYPE),g(t),X.current=t}}),[null==M?void 0:M.uri]),ee=(null===(t=u.layoutsByDataLevel)||void 0===t?void 0:t[c.yn8.ENTITY_TYPE])||O[c.yn8.ENTITY_TYPE],te=null===(r=u.layoutsByDataLevel)||void 0===r?void 0:r[c.yn8.ATTRIBUTE_TYPE],re=(0,l.useMemo)((()=>((e,t)=>{const r=U(t),l=(0,d.mergeLeft)(e,O[c.yn8.ATTRIBUTE_TYPE]);return l[r]||l.default||[]})(te,null==F?void 0:F.type)),[null==F?void 0:F.type,te]),le=(0,l.useMemo)((()=>ee?((e,t)=>{const r=(0,d.uniqBy)((0,d.prop)("id"),(0,d.concat)((null==e?void 0:e[c.yn8.ENTITY_TYPE])||[],x[c.yn8.ENTITY_TYPE]||[])),l=[b.SUMMARY,b.CONSOLIDATION_RATE,b.DATA_VALIDATION];return z({views:r,supportedViews:l,layout:t})})(u.viewsByDataLevel,ee):[]),[u.viewsByDataLevel,ee]),ae=(0,l.useMemo)((()=>V(le)),[le]),ne=C({entityType:M,dataLevel:c.yn8.ENTITY_TYPE,metrics:ae}),ie=(0,l.useMemo)((()=>((e,t,r)=>{const l=(0,d.uniqBy)((0,d.prop)("id"),(0,d.concat)((null==e?void 0:e[c.yn8.ATTRIBUTE_TYPE])||[],x[c.yn8.ATTRIBUTE_TYPE]||[])),a=(e=>{switch(e){case E.INTEGER:case E.FLOAT:return[b.SUMMARY,b.CROSSWALK_ANALYSIS,b.DATA_VALIDATION,b.FILL_RATE,b.FREQUENCY,b.UNIQUENESS,b.VALUE_DISTRIBUTION];case E.BOOLEAN:return[b.SUMMARY,b.CROSSWALK_ANALYSIS,b.DATA_VALIDATION,b.FILL_RATE,b.FREQUENCY];case E.STRING:return[b.LENGTH_STATISTIC,b.SUMMARY,b.CROSSWALK_ANALYSIS,b.DATA_VALIDATION,b.FILL_RATE,b.FREQUENCY,b.UNIQUENESS];case E.DATE:return[b.SUMMARY,b.CROSSWALK_ANALYSIS,b.DATA_VALIDATION,b.FILL_RATE,b.FREQUENCY,b.UNIQUENESS,b.VALUE_DISTRIBUTION,b.MONTH_DISTRIBUTION,b.DAY_OF_MONTH_DISTRIBUTION,b.DAY_OF_WEEK_DISTRIBUTION];case E.SSN:return[b.SUMMARY,b.CROSSWALK_ANALYSIS,b.DATA_VALIDATION,b.FILL_RATE,b.FREQUENCY,b.UNIQUENESS,b.PATTERN];case E.UNKNOWN:return[b.SUMMARY,b.CROSSWALK_ANALYSIS,b.DATA_VALIDATION,b.FILL_RATE,b.FREQUENCY,b.UNIQUENESS,b.LENGTH_STATISTIC];default:return[]}})(U(t));return z({views:l,supportedViews:a,layout:r})})(u.viewsByDataLevel,null==F?void 0:F.type,re)),[u.viewsByDataLevel,null==F?void 0:F.type,re]),oe=(0,l.useMemo)((()=>(0,d.pipe)(V,(e=>se(F)?(0,d.reject)((0,d.equals)(c.N0y.DATA_VALIDATION))(e):e))(ie)),[ie,F]),ce=C({entityType:M,detailedAttributeType:F,dataLevel:c.yn8.ATTRIBUTE_TYPE,metrics:oe});(0,l.useEffect)((()=>{W&&(P(Y.entityTypeUri||ti(D)),$(ee?Y.dataLevel||c.yn8.ENTITY_TYPE:c.yn8.ATTRIBUTE_TYPE))}),[W]),(0,l.useEffect)((()=>{k(!0),G===c.yn8.ENTITY_TYPE&&setTimeout((()=>{H(null)}),300),setTimeout((()=>{k(!1)}),300)}),[G]);const de=M&&Z&&W&&!!B(_),ue=!!ee;return a().createElement("div",{className:A.perspectiveView},a().createElement(zn,{title:f().text("Data Quality")},M&&a().createElement("div",{className:A.navigationWrapper},a().createElement(qn,{entityTypes:D,entityTypeUri:M.uri,getEntityCount:B,onChange:J}),a().createElement(rn,{dataLevel:G,detailedAttributeType:F,onChange:$}))),a().createElement("div",{className:p()(A.contentWrapper,{[A.contentWrapperEntityLevel]:G===c.yn8.ENTITY_TYPE,[A.contentWrapperOneSlide]:!de||!ue})},de&&a().createElement("div",{className:p()(A.content,{[A.contentWithEntityLevel]:ue})},a().createElement(S.Provider,{value:K},a().createElement(N.Provider,{value:M},ue&&a().createElement(w.Provider,{value:ne},a().createElement(Gn,{showEntityLevel:()=>{$(c.yn8.ENTITY_TYPE)},dataLevel:G,views:le,layout:ee,entityType:M,isSliding:j})),a().createElement(w.Provider,{value:ce},a().createElement(Fn,{entityType:M,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:r,filterOptions:l}=e;const a=null==t?void 0:t.fieldName,n={entityTypeUri:M.uri,fieldName:a,filterOptions:l,filterText:r,dataLevel:G};(0,d.equals)(X.current,n)||(g(n),X.current=n),a&&$(c.yn8.ATTRIBUTE_TYPE),H(t)},defaultFieldName:null===(i=X.current)||void 0===i?void 0:i.fieldName,defaultFilterText:null===(o=X.current)||void 0===o?void 0:o.filterText,defaultFilterOptions:null===(s=X.current)||void 0===s?void 0:s.filterOptions,disableAttributeSelection:G===c.yn8.ENTITY_TYPE}),a().createElement("div",{className:p()(A.attributeLevelWrapper,{[A.attributeLevelWithEntityLevel]:ue})},F&&a().createElement(T.Provider,{value:F},a().createElement(Ja,{dataLevel:G,views:ie,layout:re,isSliding:j}))))))),!Z&&a().createElement(qe,{height:359,errorData:{title:f().text("You don’t currently have permission to view this page"),message:f().text(" Please contact your Tenant Admin to change permissions")},variant:pe.LARGE}),W&&M&&!B(_)&&Z&&a().createElement(Xe,{height:359,data:{Icon:h.B9.NO_DATA,title:f().text("Give us something to go on!"),message:f().text("Go ahead and load some data. We’ll put it on the scales and\nlet you know here if it measures up.")},variant:pe.LARGE})))};function li(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ai=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){li(e,t,r[t])}))}return e}({},c.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}}),ni=(0,i.Z)(ai),ii=(0,o.createGenerateClassName)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0}),oi=e=>{let{store:t,config:r,saveState:i,getSavedState:s}=e;const p=(0,l.useCallback)((0,c.aYu)(s),[s]);return a().createElement(n.Provider,{store:t},a().createElement(o.ThemeProvider,{theme:ni},a().createElement(o.StylesProvider,{generateClassName:ii},a().createElement(ri,{config:r,saveState:i,getSavedState:p}))))}}}]);
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[7990],{97991:(e,t,r)=>{r.d(t,{Z:()=>p});var l,a=r(94079),n=r(71153),i=r.n(n),o=r(24328),c=r.n(o);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},s.apply(this,arguments)}!function(e){e[e.ICON_MODE=0]="ICON_MODE",e[e.TEXT_MODE=1]="TEXT_MODE",e[e.ERROR_MODE=2]="ERROR_MODE"}(l||(l={}));const p=e=>{let{className:t,icon:r,avatarText:n,rootClasses:p}=e,d=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["className","icon","avatarText","rootClasses"]);const[u,f]=(0,o.useState)(null);(0,o.useEffect)((()=>{f(r?l.ICON_MODE:l.TEXT_MODE)}),[r,n]);const m=()=>{f(l.ERROR_MODE)};switch(u){case l.ICON_MODE:return c().createElement(a.Avatar,s({className:i()(t,null==p?void 0:p.iconRoot),src:r,onError:m},d));case l.TEXT_MODE:case l.ERROR_MODE:return c().createElement(a.Avatar,s({className:i()(t,null==p?void 0:p.textRoot)},d),n);default:return null}}},10237:(e,t,r)=>{r.d(t,{Z:()=>f});var l=r(27556),a=r(13980),n=r.n(a),i=r(24328),o=r.n(i);function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){s(e,t,r[t])}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const p=(0,r(79692).Z)((e=>({"basic-view__paper":c({display:"flex",flexDirection:"column"},e.basicView)})));function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},d.apply(this,arguments)}const u=(0,i.forwardRef)(((e,t)=>{let{children:r,className:a}=e,n=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["children","className"]);const i=p();return o().createElement(l.Z,d({ref:t,className:a,classes:{root:i["basic-view__paper"]}},n),r)}));u.displayName="BasicView",u.propTypes={children:n().node,className:n().string};const f=u},4094:(e,t,r)=>{r.d(t,{Z:()=>s});var l=r(24328),a=r.n(l),n=r(71153),i=r.n(n);const o=(0,r(79692).Z)({"basic-view-content":{flex:"1 1 auto",padding:"0 24px 24px","&:first-child":{paddingTop:"24px"}}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},c.apply(this,arguments)}const s=e=>{let{children:t,className:r}=e,l=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["children","className"]);const n=o();return a().createElement("div",c({className:i()(n["basic-view-content"],r)},l),t)}},92778:(e,t,r)=>{r.d(t,{Z:()=>s});var l=r(24328),a=r.n(l),n=r(15223),i=r(94079);const o=(0,r(79692).Z)({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},c.apply(this,arguments)}const s=e=>{let{title:t,children:r=null,classes:l={}}=e,s=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["title","children","classes"]);const p=o();return a().createElement(n.Z,c({className:l.root,classes:{root:p.toolbar}},s),a().createElement(i.Typography,{className:l.title,classes:{root:p.title},variant:"h6"},t),r)}},43290:(e,t,r)=>{r.d(t,{Z:()=>p});var l=r(24328),a=r.n(l),n=r(71153),i=r.n(n),o=r(17440);const c=(0,r(79692).Z)((e=>({bar:{backgroundColor:e.palette.secondary.main,opacity:.12,position:"absolute",minHeight:"20px",minWidth:"5px",borderRadius:"2px",top:0,left:0,height:"100%"}}))),s=e=>(0,o.is)(Number,e),p=e=>{let{className:t,width:r=0,maxWidth:n}=e;const o=c(),p=(0,l.useCallback)((e=>(n?100*e/n:0)+"%"),[n]);return r?a().createElement("div",{className:i()(o.bar,t),style:{width:s(r)?p(r):r}}):null}},2256:(e,t,r)=>{r.d(t,{Z:()=>n});var l=r(24328),a=r.n(l);class n extends a().Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){this.setState({error:e}),console.error(e)}render(){const{children:e,error:t}=this.props;return this.state.error?t:e}}},75512:(e,t,r)=>{r.d(t,{Z:()=>p});var l=r(13980),a=r.n(l),n=r(24328),i=r.n(n),o=r(44443);const c=()=>i().createElement("div",{style:{display:"none"}}),s=e=>{let{widthToHide:t,children:r}=e;return i().createElement(o.Z,{handleWidth:!0,render:e=>{let{width:l}=e;return l>t?i().createElement(i().Fragment,null,r):i().createElement(c,null)}})};s.propTypes={children:a().node,widthToHide:a().number.isRequired};const p=s},67268:(e,t,r)=>{r.d(t,{Z:()=>N});var l=r(13980),a=r.n(l),n=r(24328),i=r.n(n),o=r(66244),c=r.n(o),s=r(44443),p=r(17440),d=r(71153),u=r.n(d);function f(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}const m=e=>{let{x:t,y:r,width:l,height:a,id:n,minWidth:i,minHeight:o,maxWidth:c,maxHeight:s,isStatic:p}=e;return{x:t,y:r,w:l,h:a,minW:i,minH:o,maxW:c,maxH:s,i:n,static:p}},h=e=>{let{x:t,y:r,w:l,h:a,maxW:n,minW:i,minH:o,maxH:c,i:s}=e;return{x:t,y:r,width:l,height:a,minWidth:i,minHeight:o,maxWidth:n,maxHeight:c,id:s,isStatic:f(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},y=e=>(e||[]).map(h),g=(0,p.curry)(((e,t)=>(e||[]).find((0,p.propEq)("id",t)))),v=(0,p.curry)(((e,t,r)=>(0,p.mergeAll)([r,(0,p.pick)(e,t)]))),b=(0,p.curry)(((e,t,r)=>(r||[]).map((r=>(0,p.pipe)((0,p.prop)("id"),g(t),(0,p.defaultTo)({}),v(e,p.__,r))(r)))));var E=r(79692),x=r(99493);const O=(0,E.Z)((e=>({gridLayout:{position:"relative",width:"100%","& .react-grid-item":{"&.react-grid-placeholder":{background:"rgba(0, 0, 0, 0.03)",border:"2px dashed rgba(0, 0, 0, 0.3)",borderRadius:"3px",transitionDuration:"100ms",zIndex:7,userSelect:"none","& .react-resizable-handle":{display:"none"}},"&.static .react-resizable-handle":{display:"none"},"&.cssTransforms":{transitionProperty:"transform"},"&.resizing":{zIndex:9,willChange:"width, height",pointerEvents:"none"},"&.react-draggable-dragging":{transition:"none",zIndex:8,willChange:"transform","& .react-resizable-handle":{backgroundImage:"none"}},"& .react-resizable-handle":{position:"absolute",width:"17px",height:"17px",bottom:0,right:0,zIndex:20,backgroundImage:`url('${(0,x.m5F)('<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path stroke="#505050" stroke-opacity=".54" d="M9.5 0v10M0 9.5h9M7.5 4v4M4 7.5h3"/>\n</svg>')}')`,backgroundRepeat:"no-repeat",backgroundOrigin:"content-box",boxSizing:"border-box",cursor:"se-resize"},"&.fullscreen":{visibility:"visible",position:"unset",width:"100% !important",height:"100% !important",transform:"translate(0) !important"}}},gridFullscreen:{height:"100% !important",overflowY:"hidden","& .react-resizable-handle, & .react-grid-item":{visibility:"hidden"}}})));function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},w.apply(this,arguments)}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const S=e=>{let{views:t,layout:r,layoutOptions:l,onLayoutChanged:a,draggableHandle:o,LayoutItem:d,onRemove:f,onDrop:v,droppingItem:E,isDroppable:x,classes:S}=e;const N=(0,n.useRef)(),R=O(),[I,A]=(0,n.useState)(null),[C,L]=(0,n.useState)(0),{cols:D,rowHeight:_,margin:P}=l,j=(0,n.useMemo)((()=>(e=>(e||[]).map(m))(r)),[r]),k=(0,p.pipe)(y,b(["autosizing"],r),a),M=(0,n.useCallback)((e=>A((t=>t?null:e))),[]),B=null!==I,F=(0,n.useCallback)(((e,t)=>{let n=!1;const i=r.map((r=>{if(r.id===t&&e){const t=((e,t)=>{const{margin:r,rowHeight:l}=t;return Math.ceil((e+r[1])/(l+r[1]))})(e,l);if(r.height!==t)return n=!0,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){T(e,t,r[t])}))}return e}({},r,{minHeight:t,maxHeight:t,height:t})}return r}));n&&a(i)}),[r,l,a]);return i().createElement(i().Fragment,null,i().createElement(s.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>L(e)}),i().createElement(c(),{innerRef:N,layout:j,cols:D,draggableHandle:o,autoSize:!0,rowHeight:_,width:C,margin:P,onLayoutChange:k,isResizable:!B,isDraggable:!B,className:u()(R.gridLayout,{[R.gridFullscreen]:B}),onDrop:(e,t,r)=>{v&&v(y(e),h(t),r)},droppingItem:E,isDroppable:x},j.map((e=>{const l=I===e.i,a=(g(r,e.i)||{}).autosizing?{AutosizeComponent:(n=e.i,i().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>{F(t,n)}}))}:{};var n;return i().createElement(d,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:M,onRemove:f,className:u()({fullscreen:l},S.item),isFullscreen:l},a))}))))};S.defaultProps={layoutOptions:{cols:4,rowHeight:30,margin:[15,15]},onConfigChanged:p.identity,onLayoutChanged:p.identity,classes:{}},S.propTypes={views:a().array,layout:a().array,layoutOptions:a().object,onConfigChanged:a().func,onLayoutChanged:a().func,onDrop:a().func,onRemove:a().func,LayoutItem:a().elementType,draggableHandle:a().string,isDroppable:a().bool,droppingItem:a().object,classes:a().shape({item:a().string})};const N=(0,n.memo)(S)},94175:(e,t,r)=>{r.d(t,{Z:()=>s});var l=r(87638),a=r(99493),n=r(24328),i=r.n(n),o=r(52730),c=r(97991);const s=e=>{let{sourceType:t,className:r,classes:n}=e;const s=(0,o.useSelector)(l.ZP.selectors.getMetadata),{uri:p,icon:d}=(0,a.PWK)(s,t),u=(0,a.tH7)(s,p)[0];return i().createElement(c.Z,{className:r,avatarText:u,icon:d?(0,a.vPL)("https://s3.amazonaws.com/reltio.images/api",d):null,variant:"square",rootClasses:n})}},30553:(e,t,r)=>{r.d(t,{Z:()=>c});var l=r(13980),a=r.n(l),n=r(24328),i=r.n(n);const o=e=>{let{height:t,margin:r}=e;return i().createElement("div",{style:{width:"1px",height:`${t}px`,borderLeft:"1px solid rgba(0,0,0,0.38)",margin:`0 ${r}px`,flexShrink:"0"}})};o.propTypes={height:a().number,margin:a().number};const c=o},84900:(e,t,r)=>{r.d(t,{Z:()=>s});var l=r(24328),a=r.n(l),n=r(99493),i=r(17440);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},o.apply(this,arguments)}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=e=>{const t=t=>{let{data:r}=t,s=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(t,["data"]);const p=(0,l.useMemo)((()=>r&&(e=>{const t=(0,n.QK6)((0,i.pluck)("value",e),1);return e.map(((e,r)=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){c(e,t,r[t])}))}return e}({},e,{percent:t[r]})))})(r)),[r]);return a().createElement(e,o({data:p},s))};return t.displayName="WithPercents",t}},99256:(e,t,r)=>{r.d(t,{d:()=>a});const l=(0,r(79692).Z)({clickable:{cursor:"pointer"}}),a=e=>{const t=l();return e?t.clickable:void 0}},2804:(e,t,r)=>{r.d(t,{a:()=>a});var l=r(24328);const a=e=>{const[t,r]=(0,l.useState)(!1),[a,n]=(0,l.useState)({});return(0,l.useEffect)((()=>{e().then((e=>{n(e||{})})).then((e=>r(!0))).catch((e=>r(!0)))}),[]),{isLoaded:t,savedState:a}}},67885:(e,t,r)=>{let l,a;r.d(t,{K:()=>l,o:()=>a}),function(e){e.WITHIN="within",e.AGO="ago",e.BETWEEN="between"}(l||(l={})),function(e){e.INIT="init",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(a||(a={}))},32944:(e,t,r)=>{r.d(t,{Z:()=>o});var l=r(24328),a=r.n(l),n=r(94079);const i=(0,r(79692).Z)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),o=()=>{const e=i();return a().createElement(n.LinearProgress,{color:"secondary",className:e.loader})}},58141:(e,t,r)=>{r.d(t,{Z:()=>c});var l=r(24328),a=r.n(l),n=r(10237),i=r(92316);const o=(0,r(79692).Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),c=e=>{let{id:t,children:r}=e;const l=o();return a().createElement(i.H.Provider,{value:t},a().createElement(n.Z,{className:l.view},r))}},92316:(e,t,r)=>{r.d(t,{H:()=>a});var l=r(24328);const a=r.n(l)().createContext(null);a.displayName="DashboardViewIdContext"},17990:(e,t,r)=>{r.r(t),r.d(t,{default:()=>oi});var l=r(24328),a=r.n(l),n=r(52730),i=r(33016),o=r(36138),c=r(99493),s=r(71153),p=r.n(s),d=r(17440),u=r(87918),f=r.n(u),m=r(2804),h=r(21077),y=r(87638);function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v;!function(e){e.UNSUPPORTED="unsupported",e.SUMMARY="summary",e.MONTH_DISTRIBUTION="monthDistribution",e.DAY_OF_WEEK_DISTRIBUTION="dayOfWeekDistribution",e.DAY_OF_MONTH_DISTRIBUTION="dayOfMonthDistribution"}(v||(v={}));const b=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){g(e,t,r[t])}))}return e}({},c.N0y,v);let E;!function(e){e.STRING="string",e.FLOAT="float",e.INTEGER="integer",e.BOOLEAN="boolean",e.DATE="date",e.SSN="SSN",e.UNKNOWN="unknown"}(E||(E={}));const x={[c.yn8.ATTRIBUTE_TYPE]:[{id:"FillRateView",type:b.FILL_RATE,title:f().text("Fill rate")},{id:"UniquenessAnalysisView",type:b.UNIQUENESS,title:f().text("Uniqueness analysis")},{id:"SummaryView",type:b.SUMMARY,title:f().text("Summary")},{id:"ValidationView",type:b.DATA_VALIDATION,title:f().text("Profiles with invalid data")},{id:"FrequencyAnalysis",type:b.FREQUENCY,title:f().text("Frequency analysis")},{id:"LengthStatistics",type:b.LENGTH_STATISTIC,title:f().text("Length statistics")},{id:"PatternAnalysis",type:b.PATTERN,title:f().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:b.CROSSWALK_ANALYSIS,title:f().text("Source system analysis")},{id:"MonthDistribution",type:b.MONTH_DISTRIBUTION,title:f().text("Month distribution")},{id:"DayOfWeekDistribution",type:b.DAY_OF_WEEK_DISTRIBUTION,title:f().text("Day of week distribution")},{id:"DayOfMonthDistribution",type:b.DAY_OF_MONTH_DISTRIBUTION,title:f().text("Day of month distribution")},{id:"ValueDistribution",type:b.VALUE_DISTRIBUTION,title:f().text("Value distribution")},{id:"UnsupportedDataType",type:b.UNSUPPORTED,title:f().text("Unsupported Data Type")}],[c.yn8.ENTITY_TYPE]:[{id:"SummaryView",type:b.SUMMARY,title:f().text("Summary")},{id:"ValidationView",type:b.DATA_VALIDATION,title:f().text("Profiles with invalid data")},{id:"ConsolidationRate",type:b.CONSOLIDATION_RATE,title:f().text("Consolidation rate")}]},O={[c.yn8.ATTRIBUTE_TYPE]:{default:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"LengthStatistics"}],[E.SSN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:2,height:19,id:"PatternAnalysis"}],[E.BOOLEAN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"FrequencyAnalysis"},{x:0,y:19,width:2,height:19,id:"CrosswalkAnalysis"}],[E.DATE]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}],[E.INTEGER]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}],[E.FLOAT]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}]},[c.yn8.ENTITY_TYPE]:[{x:0,y:0,width:6,height:6,id:"SummaryView"},{x:0,y:6,width:6,height:18,id:"ConsolidationRate"},{x:0,y:24,width:4,height:12,id:"ValidationView"}]},w=a().createContext(null);w.displayName="ChartsDataContext";const T=a().createContext(null);T.displayName="DetailedAttributeTypeContext";const S=a().createContext(null);S.displayName="DVFContext";const N=a().createContext(null);N.displayName="EntityTypeContext";var R=r(67885),I=r(67218);function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const C=e=>{let{entityType:t,detailedAttributeType:r,dataLevel:a,metrics:n}=e;const[i,o]=(0,l.useState)(R.o.INIT),[s,p]=(0,l.useState)({}),[u,f]=(0,l.useState)(null),m=null==r?void 0:r.fieldName,h=null==t?void 0:t.uri,y=(0,I._)(),g=e=>{console.error(e),o(R.o.ERROR),p({})},v=e=>{p(e),o(R.o.LOADED)},b=(0,l.useCallback)((async()=>{if(h)if(f(Date.now()),o(R.o.LOADING),p({}),a===c.yn8.ENTITY_TYPE){const e=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:[h]}]),t=(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.ACTIVE_ONLY,filter:e}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}),r=(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.INACTIVE_ONLY,filter:e}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}),l=(0,c.TTx)({entityTypeUri:h,dataLevel:a,metrics:n});y(Promise.all([t,r,l])).then((e=>{var t,r;let[l,a,n]=e;const i=(0,d.pipe)((0,d.path)(["consolidationRate","totalCrosswalksBySource"]),(0,d.omit)(["ReltioCleanser"]),d.keys,d.length)(n);v(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){A(e,t,r[t])}))}return e}({},n,{summary:{inactiveProfiles:null===(t=a.type)||void 0===t?void 0:t[(0,c.nIW)(h)],activeProfiles:null===(r=l.type)||void 0===r?void 0:r[(0,c.nIW)(h)],sourceSystems:i}}))})).catch(g)}else{if(!m)return;y((0,c.TTx)({entityTypeUri:h,attributes:[m],dataLevel:a,metrics:n})).then((0,d.pipe)((0,d.pathOr)({},["statistic",m]),v)).catch(g)}}),[o,p,y,m,h,a,n]);(0,l.useEffect)((()=>{const e=!!u&&Date.now()-u>18e4;a===c.yn8.ENTITY_TYPE&&e&&E()}));const E=(0,l.useCallback)((()=>{try{b()}catch(e){g(e)}}),[b]);return(0,l.useEffect)((()=>{E()}),[E]),(0,l.useMemo)((()=>({data:s,state:i,reload:E})),[s,i,E])},L=e=>{const[t,r]=(0,l.useState)(null),a=(0,I._)();return(0,l.useEffect)((()=>{const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:(0,d.pluck)("uri",e)}]);a((0,c.FK9)({query:(0,c.ECL)({activeness:"active",filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]})).then((e=>{let{type:t}=e;return r(t)})).catch((()=>r(null)))}),[e]),e=>Number((null==t?void 0:t[(0,c.nIW)(e)])||0)},D=(e,t,r)=>({attributes:(t||[]).map(((t,l)=>{let{filter:a,fieldName:n,values:i,uri:o}=t;return{data:{uri:o||(null==r?void 0:r.uri),entityTypeUri:e,fieldName:n},filter:a,id:`attribute_${l}`,operator:c.tJI.and,values:i}})),entityTypes:[e],id:"group",operator:c.tJI.or});function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){P(e,t,r[t])}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const j=(0,d.map)((e=>_({},e,{localizedValue:f().number(e.value)}))),k=e=>(0,d.isNil)(e)?"":`(${e}%)`,M=e=>(0,d.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),B=(0,d.curry)(((e,t,r)=>({advanced:[D(t,r.map((0,d.when)((()=>(0,c.Lt4)(null==e?void 0:e.type)),(0,d.evolve)({values:(0,d.map)((0,c.mOr)(c.ZBU))}))),e)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}))),F=e=>t=>{let{detailedAttributeType:r,entityTypeUri:l}=t;return(0,d.pipe)(e({fieldName:null==r?void 0:r.fieldName,entityTypeUri:l}),B(r,l))},U=e=>{switch(e){case c.oS0.TYPE_BLOB:case c.oS0.TYPE_BLOG_URL:case c.oS0.TYPE_CIK_ID:case c.oS0.TYPE_ENTITY_ID:case c.oS0.TYPE_IMAGE_URL:case c.oS0.TYPE_STRING:case c.oS0.TYPE_TEXT:case c.oS0.TYPE_URL:return E.STRING;case c.oS0.TYPE_COUNT:case c.oS0.TYPE_DOLLAR:case c.oS0.TYPE_INT:case c.oS0.TYPE_LONG:return E.INTEGER;case c.oS0.TYPE_FLOAT:case c.oS0.TYPE_DOUBLE:case c.oS0.TYPE_NUMBER:return E.FLOAT;case c.oS0.TYPE_BOOLEAN:case c.oS0.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return E.BOOLEAN;case c.oS0.TYPE_ACTIVENESS_DATE:case c.oS0.TYPE_DATE:case c.oS0.TYPE_LOCAL_DATE:case c.oS0.TYPE_TIMESTAMP:return E.DATE;case c.oS0.TYPE_SSN:return E.SSN;default:return E.UNKNOWN}},z=e=>{let{views:t,supportedViews:r,layout:l}=e;return l.reduce(((e,l)=>{const a=(0,d.prop)("type",t.find((0,d.propEq)("id",l.id))),n=t.findIndex((0,d.propEq)("id",l.id));return-1!==n?r.includes(a)?e.concat(t[n]):e.concat((0,d.assoc)("type",b.UNSUPPORTED,t[n])):e.concat({id:l.id,type:b.UNSUPPORTED,title:f().text("Unsupported")})}),[])},V=(0,d.pipe)((0,d.defaultTo)([]),(0,d.pluck)("type"),(0,d.filter)((e=>Object.values(c.N0y).includes(e)))),H=e=>{let{percent:t,value:r}=e;return _({width:`${t}%`},r>0&&{minWidth:"3px"})},W=((0,d.pipe)((0,d.pluck)("percent"),(e=>Math.max(...e))),(0,d.pipe)((0,d.pluck)("value"),(e=>Math.max(...e))),(0,d.curry)(((e,t)=>t.map((t=>(0,d.assoc)("label",(0,c.tH7)(e,t.group)||t.label,t)))))),Y=e=>{let{entityTypeUri:t}=e;return()=>B(void 0,t,[])},Z=(e,t)=>(e||[]).some((0,d.allPass)([(0,d.propEq)("attribute",t),(0,d.propEq)("status",c.lVm.ACTIVE)])),G=e=>[c.oS0.TYPE_FLOAT,c.oS0.TYPE_DOUBLE,c.oS0.TYPE_NUMBER].includes(e),$=e=>(0,c.idV)(e.label||e.name);let q;function Q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){K(e,t,r[t])}))}return e}function K(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}!function(e){e.INCLUDED_IN_MATCHING="includedInMatching",e.CONTAIN_VF="containVF",e.REQUIRED="required",e.REFERENCE="reference",e.RDM_LOOKUP="RDMLookup"}(q||(q={}));const X=(0,d.curry)(((e,t)=>e.some((e=>t.details[e.value])))),J=(0,d.curry)(((e,t)=>{var r;return 0===e.length||X(e,t)||(null===(r=t.children)||void 0===r?void 0:r.some((t=>J(e,t))))})),ee=(0,d.curry)(((e,t)=>{var r;const l=e[t.fieldName];return null==l||null===(r=l.find((0,d.propEq)("group",c.s9T.EXISTS)))||void 0===r?void 0:r.value})),te=(0,d.curry)(((e,t)=>{var r;const l=e[t.fieldName];return!(null!=l&&null!==(r=l.find((0,d.propEq)("group",c.s9T.EXISTS)))&&void 0!==r&&r.value)})),re=(0,d.curry)((function(e,t){var r;let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const a=t.fieldName||(0,c.Tde)(t.uri,l);return te(e,Q({},t,{fieldName:a}))||(null===(r=t.children)||void 0===r?void 0:r.some((r=>re(e,r,l.concat({name:t.name,label:t.label})))))})),le=(0,d.curry)(((e,t)=>t.reduce(((t,r)=>{const l=((e,t)=>{var r;return null===(r=e.label||e.name)||void 0===r?void 0:r.toLowerCase().includes(t.toLowerCase())})(r,e),a=l?r.children||[]:le(e,r.children||[]);return(l||a.length)&&t.push(Object.assign({},r,a.length&&{children:a})),t}),[])));function ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){ne(e,t,r[t])}))}return e}function ne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ie=e=>{let{attrTypeItem:t,dvf:r=[],matchAttributes:l=[]}=e;const{uri:a,required:n,isAttributeReference:i}=t;return{[q.INCLUDED_IN_MATCHING]:l.includes(a),[q.CONTAIN_VF]:Z(r,a),[q.REQUIRED]:!!n,[q.REFERENCE]:i,[q.RDM_LOOKUP]:(0,c.lS4)(t)}},oe=e=>({[q.INCLUDED_IN_MATCHING]:f().text("Included in match rule"),[q.CONTAIN_VF]:f().text("Has validation functions"),[q.REQUIRED]:f().text("Required"),[q.REFERENCE]:f().text("Reference attribute"),[q.RDM_LOOKUP]:f().text("RDM")}[e]||e),ce=(0,d.curry)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return(0,d.pipe)((0,d.chain)((e=>{const a=e.children?ce(e.children,t.concat({name:e.name,label:e.label}),r||(0,c.YkG)(e),l+1):[];return[{attributeItem:ae({},e,{fieldName:(0,c.Tde)(e.uri,t),isAttributeReference:(0,c.YkG)(e)||r}),level:l},...a]})))(e)})),se=(0,d.prop)("isAttributeReference");let pe;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(pe||(pe={}));const de=a().createContext(null);de.displayName="DataLevelContext";var ue=r(67268),fe=r(2899),me=r(83348),he=r(84900),ye=r(79692);const ge=(0,ye.Z)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"}}),ve=e=>{let{label:t,value:r}=e;const l=ge();return a().createElement(a().Fragment,null,t&&a().createElement("span",{className:p()(l.label,l.chartDataLabel)},t),r)},be=(0,ye.Z)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),Ee=e=>{let{data:t,title:r,DataRenderer:l=ve}=e;const n=be();return a().createElement("div",{className:n.tooltipWrapper},r&&a().createElement("div",{className:n.title},r),t.map(((e,t)=>a().createElement("div",{key:t,className:n.row},a().createElement(l,e)))))};function xe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Oe={content:'""',position:"absolute",background:"rgba(0, 0, 0, 0.38)",width:"1px",height:"4px",bottom:"-4px",left:0},we=(0,ye.Z)({root:{display:"flex",flexDirection:"column",height:"100%"},stackedBar:{width:"100%",display:"flex",flexWrap:"nowrap",marginTop:"13px",position:"relative","&:before":Oe,"&:after":function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){xe(e,t,r[t])}))}return e}({},Oe,{right:0,left:"initial"})},bar:{height:"24px",flexGrow:1,position:"relative",width:"50%",transition:"width 0.7s","&:hover":{"&:after":{content:'""',background:"rgba(0, 0, 0, 0.1)"}},"&:after":{position:"absolute",top:"-3px",bottom:"-5px",left:"-5px",right:"-5px",transition:"background 0.3s",zIndex:1,pointerEvents:"none"}},inactivePart:{background:"#EFEFEF"},tooltipTitle:{fontSize:"11px"},tooltipFillRate:{marginTop:"4px"},tooltip:{background:"#fff",filter:"drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)) drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2))",padding:"5px 8px"},legendWrapper:{position:"relative",flexGrow:1},legendLabel:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},legendValue:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.87)"},clickable:{cursor:"pointer"},rangeWrapper:{display:"flex",justifyContent:"space-between",marginTop:"4px"},rangeValue:{color:"rgba(0, 0, 0, 0.54)",fontSize:"12px"}});function Te(){return Te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Te.apply(this,arguments)}const Se=(0,l.forwardRef)(((e,t)=>{let{className:r}=e,l=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["className"]);const n=we();return a().createElement("div",Te({className:p()(n.bar,r)},l,{ref:t}))}));Se.displayName="Bar";const Ne=Se,Re=(0,ye.Z)({wrapper:{width:"100%",display:"flex",justifyContent:"center",margin:"auto",flexWrap:"wrap",flexDirection:"column",marginBottom:2},item:{display:"flex",alignItems:"center",height:19},itemColor:{width:12,height:12,marginRight:9,flexShrink:0}}),Ie=e=>{let{payload:t}=e;const r=Re();return a().createElement("div",{className:p()(r.wrapper)},t.map((e=>a().createElement("div",{key:e.id,className:r.item},a().createElement("div",{style:{background:e.color},className:r.itemColor}),e.value))))};function Ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){Ce(e,t,r[t])}))}return e}function Ce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Le=(0,me.Z)(Ne),De=e=>{let{label:t,value:r,percent:l}=e;return[{label:t,value:`${f().number(r)} ${k(l)}`}]},_e=(0,he.Z)((e=>{let{data:t,colors:r,onItemClick:l}=e;const n=we(),i=l&&(e=>l(e)),o=!!l,s=(0,d.pipe)((0,d.pluck)("value"),d.sum)(t);return a().createElement("div",{className:n.root},a().createElement("div",{className:n.stackedBar},t.map(((e,t)=>a().createElement(Le,{className:o&&n.clickable,key:e.label,tooltipTitle:a().createElement(Ee,{data:De(e)}),style:Ae({},H(e),{background:r[t]}),onClick:()=>i(e.group)})))),a().createElement("div",{className:n.rangeWrapper},a().createElement("span",{className:n.rangeValue},"0"),a().createElement("span",{className:n.rangeValue},f().number(s))),a().createElement("div",{className:n.legendWrapper},a().createElement(fe.De,{layout:"vertical",align:"left",verticalAlign:"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%"},content:a().createElement(Ie,null),payload:(t||[]).map(((e,t)=>{let{group:l,label:i,value:o,percent:s}=e;return{id:l,type:"square",color:r[t],value:a().createElement(a().Fragment,null,a().createElement("span",{className:n.legendLabel},i),a().createElement("span",{className:n.legendValue},`${(0,c.k7L)(o,999)} ${k(s)}`))}}))})))}));var Pe=r(92778),je=r(8818),ke=r(75512),Me=r(30553),Be=r(82726);const Fe=(0,ye.Z)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:"5px",lineHeight:"24px"},infoIcon:{position:"relative"}}))),Ue=e=>{let{title:t,infoTooltipTitle:r,children:l}=e;const n=!!r,i=!!l,o=Fe(i);return a().createElement(Pe.Z,{title:t,className:o.root,classes:{title:o.title}},n&&a().createElement(je.k,{icon:Be.Z,size:"XXS",tooltipTitle:r,className:o.infoIcon}),i&&a().createElement(ke.Z,{widthToHide:500},a().createElement(Me.Z,{height:24,margin:16}),l))};var ze=r(44443),Ve=r(2256),He=r(4094),We=r(32944),Ye=r(94079),Ze=r(43266);const Ge=(0,ye.Z)((e=>({container:e=>{let{height:t}=e;return{height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",margin:"0 auto",paddingBottom:t>239?"30px":0,boxSizing:"border-box"}},small:{"& $icon":{maxHeight:"88px"},"& $message":{fontSize:"12px"},"& $title":{fontSize:"13px",fontWeight:400,marginBottom:0},"& $refreshButton":{marginTop:"2px",padding:0}},medium:{"& $icon":{maxHeight:"190px",marginBottom:"24px"}},large:{"& $icon":{height:"256px",width:"256px",marginBottom:"24px"}},icon:e=>{let{height:t}=e;return{paddingTop:0,marginBottom:t>170?"16px":"4px"}},message:{padding:"0 24px",fontSize:"14px",textAlign:"center",whiteSpace:"pre-wrap"},title:{padding:"0 24px",fontSize:"20px",textAlign:"center",color:"rgba(0,0,0,0.87)",fontWeight:500,marginBottom:"8px"},refreshButton:{color:e.palette.primary.main,marginTop:"12px",padding:"6px 8px"},refreshIcon:{width:"24px",height:"24px"}}))),$e=h.B9.ERROR,qe=e=>{let{onRefresh:t,height:r,errorData:l={},variant:n=pe.SMALL}=e;const{Icon:i=$e,message:o,title:c}=l,s=Ge({height:r});return a().createElement("div",{className:p()(s.container,s[`${n}`])},a().createElement(i,{className:s.icon}),c&&a().createElement(Ye.Typography,{className:s.title},c),o&&a().createElement(Ye.Typography,{className:s.message},o),!!t&&a().createElement(Ye.Button,{className:s.refreshButton,startIcon:a().createElement(Ze.Z,{color:"primary",className:s.refreshIcon}),onClick:t,"data-reltio-id":"reltio-dq-dashboard-chart-refresh-button"},a().createElement(Ye.Typography,{variant:"button"},f().text("Refresh"))))},Qe=(0,ye.Z)({container:e=>{let{height:t}=e;return{height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",margin:"0 auto",paddingBottom:t>239?"30px":0,boxSizing:"border-box"}},small:{"& $icon":{maxHeight:"88px"},"& $message":{fontSize:"12px"},"& $title":{fontSize:"13px",fontWeight:400,marginBottom:0}},medium:{"& $icon":{maxHeight:"190px",marginBottom:"24px"}},large:{"& $icon":{maxHeight:"256px",marginBottom:"24px"}},icon:e=>{let{height:t}=e;return{paddingTop:0,marginBottom:t>170?"16px":"4px"}},message:{padding:"0 24px",fontSize:"14px",textAlign:"center",whiteSpace:"pre-wrap"},title:{padding:"0 24px",fontSize:"20px",textAlign:"center",color:"rgba(0,0,0,0.87)",fontWeight:500,marginBottom:"8px",whiteSpace:"pre-wrap"}}),Ke=h.B9.NO_DATA,Xe=e=>{let{height:t,data:r={},variant:l=pe.SMALL}=e;const{Icon:n=Ke,message:i,title:o}=r,c=Qe({height:t});return a().createElement("div",{className:p()(c.container,c[`${l}`])},a().createElement(n,{className:c.icon}),o&&a().createElement(Ye.Typography,{className:c.title},o),i&&a().createElement(Ye.Typography,{className:c.message},i))},Je=(0,ye.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}}))),et=e=>{let{loadingState:t,onRefresh:r,children:l,data:n,className:i}=e;const o=Je();return a().createElement(He.Z,{className:p()(o.viewContent,i)},a().createElement(ze.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:i,height:o}=e;switch(t){case R.o.LOADED:return n&&0!==n.length?a().createElement(Ve.Z,{error:a().createElement(qe,{errorData:{message:f().text("Something went wrong")},height:o,variant:pe.SMALL})},l({data:n,width:i,height:o})):a().createElement(Xe,{height:o,data:{Icon:h.B9.NO_DATA,message:f().text("Go ahead and load some data. We’ll put it on the scales and let you know here if it measures up."),title:f().text("Give us something to go on!")},variant:pe.SMALL});case R.o.LOADING:return a().createElement(We.Z,null);case R.o.ERROR:return a().createElement(qe,{errorData:{Icon:h.B9.ERROR,message:f().text("No need to fret - just refresh and it will work itself out."),title:f().text("Oops! We ran into a problem.")},height:o,onRefresh:r,variant:pe.SMALL});default:return a().createElement("div",null,"Loading...")}})))};var tt=r(10237);const rt=(0,ye.Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),lt=e=>{let{config:t,children:r}=e;const n=rt(),{type:i}=t,o=(0,l.useContext)(de);return a().createElement(tt.Z,{className:n.view,"data-reltio-id":`reltio-dq-dashboard-chart-${i}-${o}`},r)},at=e=>{let{label:t,value:r}=e;const l=ge();return a().createElement(a().Fragment,null,t&&a().createElement("span",{className:p()(l.label,l.infoDataLabel)},t),r)},nt={[c.s9T.MISSING]:"#CE5C00",[c.s9T.EXISTS]:"#C4CE00"},it=(0,d.map)((e=>{let{group:t}=e;return nt[t]||(0,c.f4_)(t)})),ot=e=>({[c.s9T.MISSING]:f().text("Missing"),[c.s9T.EXISTS]:f().text("Exists")}[e]||e),ct=(0,d.pipe)(Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:ot(t),group:t,value:r}})),(0,d.sortBy)((e=>Object.values(c.s9T).indexOf(e.group))),j),st=(0,d.pipe)((0,d.propOr)({},"statistic"),d.toPairs,(0,d.reduce)(((e,t)=>{let[r,l]=t;return null!=l&&l.fillRate&&(e[r]=ct(l.fillRate)),e}),{})),pt=(0,d.propOr)({},"fillRate"),dt=(0,d.pipe)(pt,ct,(0,d.when)(M,(0,d.always)([])),(0,d.converge)(((e,t)=>({chartData:e,colors:t})),[d.identity,it])),ut=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:t===c.s9T.EXISTS?c.j5E.EXISTS:c.j5E.MISSING_VALUE,fieldName:r}]})),ft=F(ut),mt=e=>{const{data:t,state:r,reload:a}=(0,l.useContext)(w),n=(0,l.useMemo)((()=>e(t)),[t,e]);return(0,l.useMemo)((()=>({data:n,state:r,reload:a})),[n,r,a])},ht=e=>{let{keyword:t,entityTypeUri:r}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[D(r)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}},yt=e=>{let{fieldName:t,value:r,entityTypeUri:l}=e;return ht({keyword:`${c.j5E.EQUALS}(${t}, ${r})`,entityTypeUri:l})},gt=(0,d.curry)(((e,t,r)=>{var l;const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length>0?`(${c.NlI.NOT_LIST_EQUALS}(type, ${e.join(",")}))`:""}((0,c.k3T)(e,t)),n=null==r||null===(l=r.keyword)||void 0===l?void 0:l.value;if(a){const e=n?`(${n}) and ${a}`:a;return(0,d.assoc)("keyword",{value:e,isRawFilter:!0},r)}return r})),vt=e=>{const t=(0,n.useDispatch)(),r=(0,n.useSelector)(y.ZP.selectors.getMetadata),a=(0,l.useContext)(T),i=(0,l.useContext)(N);return(0,d.pipe)(e({detailedAttributeType:a,entityTypeUri:i.uri}),gt(r,i.uri),y.ui.actions.openSearch,t)},bt=e=>{let{config:t}=e;const{title:r}=t,{data:l,state:n,reload:i}=mt(dt),{chartData:o,colors:c}=l,s=vt(ft),p=a().createElement(Ee,{title:f().text("Fill rate"),data:[{label:`${f().text("Exists")}:`,value:f().text("Profiles with data")},{label:`${f().text("Missing")}:`,value:f().text("Profiles without data")}],DataRenderer:at});return a().createElement(lt,{config:t},a().createElement(Ue,{title:r,infoTooltipTitle:p}),a().createElement(et,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return a().createElement(_e,{data:t,colors:c,onItemClick:s})})))},Et={[c.dC6.UNIQUE]:"#4BAFFF",[c.dC6.NOT_UNIQUE]:"#C34980"},xt=(0,d.map)((e=>{let{group:t}=e;return Et[t]||(0,c.f4_)(t)})),Ot=e=>({[c.dC6.UNIQUE]:f().text("Unique"),[c.dC6.NOT_UNIQUE]:f().text("Not unique")}[e]||e),wt=(0,d.pipe)(Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:Ot(t),group:t,value:r}})),(0,d.sortBy)((e=>Object.values(c.dC6).indexOf(e.group))),j),Tt=(0,d.propOr)({},"uniqueness"),St=(0,d.pipe)(Tt,wt,(0,d.when)(M,(0,d.always)([])),(0,d.converge)(((e,t)=>({chartData:e,colors:t})),[d.identity,xt])),Nt=e=>{let{config:t}=e;const{title:r}=t,{data:l,state:n,reload:i}=mt(St),{chartData:o,colors:c}=l,s=a().createElement(Ee,{title:f().text("Uniqueness analysis"),data:[{label:`${f().text("Unique")}:`,value:f().text("Number of values that only appear once and have no duplicates")},{label:`${f().text("Not unique")}:`,value:f().text("Number of values that have at least one duplicate in the list")}],DataRenderer:at});return a().createElement(lt,{config:t},a().createElement(Ue,{title:r,infoTooltipTitle:s}),a().createElement(et,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return a().createElement(_e,{data:t,colors:c})})))};var Rt=r(7089);function It(){return It=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},It.apply(this,arguments)}const At=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",It({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#6663F6"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 14.4h2.411c.016-.205.047-.405.093-.6H8.4v-1.2h3.012c.137-.215.296-.416.472-.6H8.4v-1.2h6v.011a3.896 3.896 0 011.8.287V8.4c0-.66-.54-1.2-1.2-1.2H7.8c-.66 0-1.2.54-1.2 1.2v7.8c0 .66.54 1.2 1.2 1.2h4.083a3.892 3.892 0 01-.979-1.8H8.4v-1.2zm6-4.2h-6V9h6v1.2zm2.58 5.934L18.852 18l-.852.852-1.872-1.872a2.66 2.66 0 01-1.434.42A2.695 2.695 0 0112 14.7c0-1.494 1.206-2.7 2.7-2.7 1.494 0 2.7 1.206 2.7 2.7 0 .528-.156 1.014-.42 1.434zm-2.28.066a1.5 1.5 0 10-.001-3.001A1.5 1.5 0 0014.7 16.2z",fill:"#fff"}))};function Ct(){return Ct=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Ct.apply(this,arguments)}const Lt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",Ct({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#1DACF5"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4 9.6H9.3L12 6.9l2.7 2.7h-2.1v3.846l-3.6 3.6-.846-.846 3.246-3.246V9.6zm4.446 6.6l-.846.846L12.954 15l.846-.846 2.046 2.046z",fill:"#fff"}))};function Dt(){return Dt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Dt.apply(this,arguments)}const _t=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",Dt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#7F22FD"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 9v1.2h1.2V9H8.4zm0 2.4v1.2h1.2v-1.2H8.4zm0 2.4V15h1.2v-1.2H8.4zM10.8 9v1.2h4.8V9h-4.8zm0 2.4v1.2h4.8v-1.2h-4.8zm0 2.4V15h4.8v-1.2h-4.8zm6-6v8.4H7.2V7.8h9.6zm1.2 9V6.6H6V17.4h12v-.6z",fill:"#fff"}))};function Pt(){return Pt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Pt.apply(this,arguments)}const jt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",Pt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#4B31E9"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 15.6h1.8V15a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-3V9.6H8.4a.6.6 0 01-.6-.6V6.6a.6.6 0 01.6-.6H12a.6.6 0 01.6.6V9a.6.6 0 01-.6.6h-1.2v1.8h1.8v-.6a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-1.8v3z",fill:"#fff"}))};function kt(){return kt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},kt.apply(this,arguments)}const Mt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",kt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#80D2FC"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6c-3.312 0-6 2.688-6 6s2.688 6 6 6 6-2.688 6-6-2.688-6-6-6zm-.6 4.96V9h1.2v1.96l1.698-.98.6 1.04L13.2 12l1.698.98-.6 1.04-1.698-.98V15h-1.2v-1.96l-1.698.98-.6-1.04L10.8 12l-1.698-.98.6-1.04 1.698.98zM7.2 12c0 2.646 2.154 4.8 4.8 4.8s4.8-2.154 4.8-4.8-2.154-4.8-4.8-4.8A4.806 4.806 0 007.2 12z",fill:"#fff"}))},Bt=(0,ye.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),Ft={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let Ut;!function(e){e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal"}(Ut||(Ut={}));const zt=e=>{let{detailType:t,size:r=Ft.NORMAL,variant:l=Ut.NORMAL}=e;const n=Bt(r),i=p()(n.icon,n[l]);switch(t){case q.RDM_LOOKUP:return a().createElement(_t,{className:i});case q.CONTAIN_VF:return a().createElement(At,{className:i});case q.INCLUDED_IN_MATCHING:return a().createElement(Lt,{className:i});case q.REFERENCE:return a().createElement(jt,{className:i});case q.REQUIRED:return a().createElement(Mt,{className:i});default:return null}},Vt=(0,ye.Z)({root:{height:"24px",maxWidth:"calc(100% - 8px)",margin:"0 4px 4px 0",borderRadius:"12px"},label:{fontSize:"12px",paddingLeft:"8px",paddingRight:"9px"},badQuality:{backgroundColor:"rgba(255, 23, 68, 0.12)"}});function Ht(){return Ht=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Ht.apply(this,arguments)}function Wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){Yt(e,t,r[t])}))}return e}function Yt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Zt=e=>{let{detailType:t,classes:r}=e,n=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["detailType","classes"]);const i=Vt(),{data:o,state:s}=(0,l.useContext)(w);let d=Ut.NORMAL;const u=s===R.o.LOADING,f=(e=>{var t;return 0===(null==e||null===(t=e.fillRate)||void 0===t?void 0:t[c.s9T.MISSING])})(o);return t===q.REQUIRED&&(u&&(d=Ut.LOADING),u||f||(d=Ut.BAD_QUALITY)),a().createElement(Rt.Z,Ht({classes:Wt({root:p()(i.root,{[i.badQuality]:t===q.REQUIRED&&!u&&s!==R.o.INIT&&!f}),label:i.label},r),label:oe(t),icon:a().createElement(zt,{detailType:t,variant:d})},n))},Gt=(0,ye.Z)({root:{display:"flex",flexWrap:"wrap",flexGrow:1}}),$t=e=>{let{details:t,chipClasses:r={}}=e;const l=Gt();return a().createElement("div",{className:l.root},Object.entries(t||{}).filter((e=>{let[,t]=e;return t})).map((e=>{let[t]=e;return a().createElement(Zt,{key:t,detailType:t,classes:r})})))},qt=(0,ye.Z)({header:{display:"flex",paddingBottom:"16px"},info:{display:"flex",flexDirection:"column","&:not(:last-child)":{borderRight:"1px solid rgba(0,0,0,0.12)"}},entitySummary:{"&:not(:last-child)":{paddingRight:"48px",marginRight:"16px"}},attributeTypeSummary:{"&:not(:last-child)":{paddingRight:"24px",marginRight:"24px"}},infoTitle:{color:"rgba(0,0,0,0.54)",fontSize:"12px",lineHeight:"16px"},infoContent:{fontSize:"30px",lineHeight:"35px",padding:"4px 0 0",display:"flex",alignItems:"center"},attributeTypeIconWrapper:{width:"32px",height:"33px",background:"rgba(0, 0, 0, 0.05)",borderRadius:"4px",position:"relative",marginRight:"12px",flexShrink:0,"& svg":{position:"absolute",transform:"translate(-50%, -50%)",top:"50%",left:"50%"}},totalLoading:{padding:"4px 8px"},clickable:{color:"#000066",cursor:"pointer"}}),Qt=e=>{let{title:t,children:r,className:l,onClick:n,dataReltioId:i}=e;const o=qt();return a().createElement("div",{className:p()(o.info,l),onClick:n,"data-reltio-id":i},a().createElement("div",{className:o.infoTitle},t),a().createElement("div",{className:o.infoContent},r))};function Kt(){return Kt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Kt.apply(this,arguments)}const Xt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",Kt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("mask",{id:"svg1279746712a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"15",height:"8"},a().createElement("path",{d:"M11.667 4H5C2.793 4 1 5.793 1 8s1.793 4 4 4h6.667c2.206 0 4-1.793 4-4s-1.794-4-4-4zm0 6.667H5a2.666 2.666 0 110-5.334h6.667a2.666 2.666 0 110 5.334zm0-4.667c-1.107 0-2 .893-2 2s.893 2 2 2c1.106 0 2-.893 2-2s-.894-2-2-2z",fill:"#000"})),a().createElement("g",{mask:"url(#svg1279746712a)"},a().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Jt(){return Jt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Jt.apply(this,arguments)}const er=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",Jt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("mask",{id:"svg208732808a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"14"},a().createElement("path",{d:"M7.992 1.333A6.663 6.663 0 001.332 8c0 3.68 2.98 6.667 6.66 6.667A6.67 6.67 0 0014.665 8a6.67 6.67 0 00-6.673-6.667zm.007 12A5.332 5.332 0 012.665 8 5.332 5.332 0 018 2.667 5.332 5.332 0 0113.332 8a5.332 5.332 0 01-5.333 5.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z",fill:"#000"})),a().createElement("g",{mask:"url(#svg208732808a)"},a().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function tr(){return tr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},tr.apply(this,arguments)}const rr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",tr({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("mask",{id:"svg1638934380a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},a().createElement("path",{d:"M5.948 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2zM7.947 12v-1.1h1.1V12h-1.1zM13.65 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2z",fill:"#000"})),a().createElement("g",{mask:"url(#svg1638934380a)"},a().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function lr(){return lr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},lr.apply(this,arguments)}const ar=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",lr({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("path",{d:"M2.11 12v-.825h1.331V5.169L2 5.741v-.89L3.331 4.3h1.045v6.875h1.089V12H2.11zM5.968 11.032l1.65-2.508c.242-.367.403-.62.484-.759.08-.147.136-.29.165-.429.03-.14.044-.341.044-.605v-.77a.778.778 0 00-.253-.583c-.169-.161-.389-.242-.66-.242h-1.21V4.3h1.1c.638 0 1.126.158 1.463.473.345.308.517.774.517 1.397v.462c0 .367-.018.645-.055.836-.037.19-.103.37-.198.539-.088.169-.264.455-.528.858l-1.518 2.299h2.519V12h-3.52v-.968zM13.544 10.262c0 .609-.147 1.052-.44 1.331-.293.271-.77.407-1.43.407h-1.298v-.825h1.397c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.239c0-.242-.073-.433-.22-.572-.147-.147-.341-.22-.583-.22h-1.067v-.825h.957a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.902c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187h-1.298V4.3h1.166c.623 0 1.093.14 1.408.418.323.271.484.704.484 1.298v.693c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.924z",fill:"#000",fillOpacity:".541"}))};function nr(){return nr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},nr.apply(this,arguments)}const ir=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",nr({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("mask",{id:"svg924767730a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},a().createElement("path",{d:"M5.463 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H2.03v-.836h1.562c.271 0 .491-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.059-.396-.176-.528-.11-.14-.279-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473h1.463v.836H3.714c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM9.136 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H5.704v-.836h1.562c.27 0 .49-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.06-.396-.176-.528-.11-.14-.28-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473H8.96v.836H7.387c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM12.255 12l-1.683-6.886V12H9.68V4.3h1.562l1.694 6.886V4.3h.89V12h-1.572z",fill:"#000"})),a().createElement("g",{mask:"url(#svg924767730a)"},a().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function or(){return or=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},or.apply(this,arguments)}const cr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",or({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("mask",{id:"svg3578961193a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},a().createElement("path",{d:"M5.345 12l-.418-1.947H2.782L2.353 12h-.979l1.86-7.7h1.264L6.324 12h-.979zM3.85 5.026l-.89 4.202H4.75L3.85 5.026zM10.494 10.262c0 .63-.146 1.078-.44 1.342-.286.264-.763.396-1.43.396h-2.09V4.3h1.958c.653 0 1.13.132 1.43.396.308.264.462.704.462 1.32v.627c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.99zM9.427 5.917c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187H7.491v2.431h1.133a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.836zm.11 3.256c0-.242-.073-.433-.22-.572-.147-.147-.34-.22-.583-.22H7.491v2.794h1.232c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.173zM13.119 12c-.638 0-1.13-.154-1.474-.462-.337-.315-.506-.785-.506-1.408V6.17c0-.623.169-1.089.506-1.397.345-.315.836-.473 1.474-.473h1.342v.836h-1.452c-.271 0-.491.08-.66.242a.778.778 0 00-.253.583v4.378c0 .227.084.422.253.583.169.161.389.242.66.242h1.452V12h-1.342z",fill:"#000"})),a().createElement("g",{mask:"url(#svg3578961193a)"},a().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))},sr=(0,ye.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}}}),pr={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},dr=e=>{let{type:t,size:r=pr.SMALL}=e;const l=sr(r);switch(U(t)){case E.STRING:return a().createElement(cr,{className:l.icon});case E.FLOAT:return a().createElement(rr,{className:l.icon});case E.INTEGER:return a().createElement(ar,{className:l.icon});case E.BOOLEAN:return a().createElement(Xt,{className:l.icon});case E.DATE:return a().createElement(er,{className:l.icon});case E.SSN:return a().createElement(ir,{className:l.icon});default:return a().createElement(cr,{className:l.icon})}},ur=e=>{let{detailedAttributeType:t}=e;const r=qt(),n=(e=>{const[t,r]=(0,l.useState)(null),a=(0,l.useContext)(N),n=(0,I._)();return(0,l.useEffect)((()=>{if(a.uri&&e){const t={filter:c.j5E.EXISTS,fieldName:e},l={filter:c.j5E.EQUALS,fieldName:"type",values:[a.uri]},i={searchOptions:"strictTypeSearch"};r(null),n((0,c.j_Q)([t,l],i)).then((e=>{let{total:t}=e;return r(t)})).catch(console.error)}}),[a.uri,e]),t})(t.fieldName),i=null===n?a().createElement(Ye.CircularProgress,{size:"24",className:r.totalLoading}):(0,c.k7L)(n);return a().createElement("div",null,a().createElement("div",{className:r.header},a().createElement(Qt,{title:f().text("Profiles"),className:r.attributeTypeSummary},a().createElement(Ye.Tooltip,{title:a().createElement(Ee,{data:[{label:f().text("Entities with exists attribute"),value:f().number(n)}]})},a().createElement("div",null,i))),a().createElement(Qt,{title:f().text("Data type"),className:r.attributeTypeSummary},(o=t.type,a().createElement(a().Fragment,null,a().createElement("div",{className:r.attributeTypeIconWrapper},a().createElement(dr,{type:o,size:pr.NORMAL})),f().text(o))))),a().createElement($t,{details:t.details}));var o},fr=e=>{let{entityType:t}=e;const{data:r,state:i}=(0,l.useContext)(w),o=((e,t)=>{const r=t.attributes||[],l=t=>t.filter(c.Uty).filter((0,d.either)((0,d.prop)("label"),(0,d.prop)("name"))).reduce(((t,r)=>{const a=(0,c.EUG)(e,r);return null!=a&&a.length?[...t,r,...l(a)]:[...t,r]}),[]);return l(r).length})((0,n.useSelector)(y.ZP.selectors.getMetadata),t),{activeProfiles:s=0,inactiveProfiles:u=0,sourceSystems:m=0}=(null==r?void 0:r.summary)||{},h=e=>i===R.o.LOADING?a().createElement(Ye.CircularProgress,{size:"24",className:g.totalLoading}):f().number(e),g=qt(),v=(0,n.useDispatch)(),b=vt(Y),E=e=>{v(y.yC.actions.activityFilterUpdated(e)),b()};return a().createElement("div",{className:g.header},a().createElement(Qt,{title:f().text("Active profiles"),className:p()(g.entitySummary,g.clickable),onClick:()=>E(c.Ng6.ACTIVE_ONLY),dataReltioId:"reltio-dq-dashboard-entitylevel-summary-activeProfiles"},h(s)),a().createElement(Qt,{title:f().text("Inactive profiles"),className:p()(g.entitySummary,g.clickable),onClick:()=>E(c.Ng6.INACTIVE_ONLY),dataReltioId:"reltio-dq-dashboard-entitylevel-summary-inactiveProfiles"},h(u)),a().createElement(Qt,{title:f().text("Attributes"),className:g.entitySummary},f().number(o)),a().createElement(Qt,{title:f().text("Source systems"),className:g.entitySummary},h(m)))},mr=(0,ye.Z)({content:{padding:"0 16px",marginTop:"4px"}}),hr=e=>{let{config:t}=e;const r=mr(),n=(0,l.useContext)(T),i=(0,l.useContext)(de),o=(0,l.useContext)(N),s=i===c.yn8.ATTRIBUTE_TYPE,p=s?(0,c.idV)(n.label):`${f().text("Entity")}: ${(0,c.idV)(o.label)}`;return a().createElement(lt,{config:t},a().createElement(Ue,{title:p}),a().createElement(He.Z,{className:r.content},s?a().createElement(ur,{detailedAttributeType:n}):a().createElement(fr,{entityType:o})))};var yr=r(58141);const gr=(0,ye.Z)({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}});function vr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){br(e,t,r[t])}))}return e}function br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Er=h.B9.ERROR,xr=e=>{let{config:t,errorData:r,titleChildren:l,infoTooltipTitle:n,onRefresh:i}=e;const{id:o,title:c}=t,s=gr();return a().createElement(yr.Z,{id:o},a().createElement(Ue,{title:c,infoTooltipTitle:n},l),a().createElement(He.Z,{className:s.viewContent},a().createElement(ze.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},a().createElement(qe,{errorData:vr({Icon:Er},r),onRefresh:i,variant:pe.SMALL}))))};function Or(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){wr(e,t,r[t])}))}return e}function wr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Tr=e=>(0,d.pipe)((0,d.propOr)({},e),Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),j),Sr=e=>{let{sortDirection:t,sortField:r}=e;return(e,l)=>"asc"===t?e[r]>l[r]?1:-1:e[r]<l[r]?1:-1},Nr=(e,t)=>t.filter((t=>e.find((0,d.propEq)("uri",t.group)))),Rr=(e,t)=>e.find((0,d.propEq)("uri",t)),Ir=(0,d.curry)(((e,t)=>(0,d.pipe)(Nr,(0,d.map)((t=>{var r;return Or({},t,{label:null===(r=Rr(e,t.group))||void 0===r?void 0:r.name})})))(e,t))),Ar=(0,d.pipe)((0,d.map)($),(0,d.slice)(1,1/0),(0,d.join)(" / ")),Cr=(0,d.curry)(((e,t,r)=>(0,d.pipe)(Nr,(0,d.map)((r=>{const{name:l,attribute:a}=Rr(e,r.group),n=(0,c.X3M)(t,a);return Or({},r,{label:l,attributeLabel:Ar(n)})})))(e,r))),Lr=Tr("frequency"),Dr=Tr("pattern"),_r=(e,t)=>`${e}/analyticsAttributes/AttributeValidations/analyticsAttributes/${t}`,Pr=(e,t)=>{let{name:r,uri:l}=e;return[{filter:c.j5E.EQUALS,values:[[r]],fieldName:"analyticsAttributes.AttributeValidations.FunctionName",uri:_r(t,"FunctionName")},{filter:c.j5E.EQUALS,values:[[l]],fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",uri:_r(t,"FunctionURI")}]},jr=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return yt({fieldName:`${r.fieldName}`,value:t,entityTypeUri:l})})),kr=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.ON,values:[t],fieldName:r}]})),Mr=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:r}]})),Br=e=>{let{detailedAttributeType:t,entityTypeUri:r}=e;return(0,d.cond)([[c.j5n,(0,d.always)(jr)],[c.Lt4,(0,d.always)(F(kr))],[d.identity,(0,d.always)(F(Mr))]])(t.type)({detailedAttributeType:t,entityTypeUri:r})},Fr=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return yt({fieldName:`${r.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:l})})),Ur=e=>`(${e.length>=100?f().text("top")+" 100":e.length})`;var zr=r(31276),Vr=r(85709),Hr=r(92332);const Wr=(0,d.pipe)((0,d.split)("|"),(e=>{let[t,r]=e;return{label:t,maxValue:r}})),Yr=(e,t)=>(0,d.is)(Number,t[e])?f().number(t[e]):t[e],Zr=e=>{let{children:t,handler:r,handleWidth:n=!0}=e;const i=(0,l.useRef)();return a().createElement(ze.Z,{handleWidth:n,onResize:()=>{return r((e=i.current)&&e.clientWidth<e.scrollWidth);var e}},a().createElement(Ye.RootRef,{rootRef:i},t))};function Gr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){$r(e,t,r[t])}))}return e}function $r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qr={background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",content:'""',height:"100%",pointerEvents:"none",position:"absolute",right:0,top:0,width:"40px"},Qr={background:"rgba(0, 0, 0, 0.38)",bottom:0,content:'""',height:"3px",left:0,position:"absolute",width:"1px"},Kr=(0,ye.Z)((e=>({attribute:{"&:after":qr,alignItems:"center",color:e.palette.text.primary,display:"flex",fontSize:"13px",fontWeight:"normal",height:"100%",lineHeight:"15px",overflow:"hidden",padding:"0 16px",whiteSpace:"pre"},bar:{borderRadius:"0 !important",minHeight:"16px !important",position:"initial !important"},colorBarContainer:{"&>div":{opacity:1},boxSizing:"border-box",height:"100%",padding:"5px 0 6px",position:"relative",width:"100%"},headCell:{"&>div":{display:"flex",flexDirection:e=>e?"row":"row-revers",flexGrow:1,justifyContent:"flex-start",marginLeft:e=>!e&&"-26px",paddingLeft:"16px",paddingRight:e=>e&&"0"},"&>div>span":{flexGrow:1,justifyContent:e=>e?"flex-start":"flex-end",marginLeft:"0!important",width:"100%"},height:"100%",lineHeight:"47px"},headCellWithRange:{"&>div":{display:"flex",flexDirection:"row-revers",flexGrow:1,justifyContent:"flex-start",padding:"0 10px 0 16px"},"&>div>span":{flexGrow:1,justifyContent:"flex-start!important",width:"100%"},height:"100%",lineHeight:"47px"},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"47px",overflow:"hidden",position:"relative",whiteSpace:"nowrap","&.overflowed:after":qr},labelWrapper:{maxWidth:"90px","&.sortable":{maxWidth:"68px"}},number:{color:e.palette.text.primary,flexShrink:0,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",marginRight:"32px",overflow:"hidden",textAlign:"right",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"90px"},numberContainer:{alignItems:"center",display:"flex",height:"100%",padding:"0 10px 0 16px"},rangeLabel:{"&:first-child":{flexGrow:1},color:e.palette.text.secondary,fontSize:"12px"},rangeWrapper:{"&:after":Gr({},Qr,{left:"initial",right:0}),"&:before":Qr,alignItems:"flex-end",display:"flex",flexGrow:1,lineHeight:"24px",marginLeft:"32px",maxWidth:"calc(100% - 122px)",position:"relative","&.sortable":{height:"100%",maxWidth:"calc(100% - 144px)"}},tooltipTitle:{color:"rgba(255, 255, 255, 0.6)"},tooltipValue:{whiteSpace:"pre-wrap"}})));function Xr(){return Xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Xr.apply(this,arguments)}function Jr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){el(e,t,r[t])}))}return e}function el(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tl=e=>{let{headCellData:t,headIndex:r}=e,n=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["headCellData","headIndex"]);const i=Kr(0===r),{label:o,maxValue:s}=Wr(t.label),d=(0,c.k7L)(Number(s),999),u=!!s,[f,m]=(0,l.useState)(!1),h=a().createElement(Zr,{handler:m},a().createElement(Ye.Tooltip,{title:f?o:""},a().createElement("div",{className:p()(i.headLabel,{overflowed:f})},o)));return a().createElement("div",{className:p()({[i.headCell]:!u,[i.headCellWithRange]:u})},a().createElement(Hr.default,Xr({},n,{headCellData:Jr({},t,{label:u?a().createElement(a().Fragment,null,a().createElement("div",{className:p()(i.rangeWrapper,{sortable:t.sortable})},a().createElement("span",{className:i.rangeLabel},"0"),a().createElement("span",{className:i.rangeLabel},d)),a().createElement("div",{className:p()({[i.labelWrapper]:!t.sortable,sortable:t.sortable})},h)):h})})))};var rl=r(99256),ll=r(32528);const al=e=>{let{columnsHeaders:t,chartData:r}=e;const l=Kr();return a().createElement(Ee,{data:t.map((e=>{let{label:t,id:n}=e;return{label:a().createElement("span",{className:l.tooltipValue},t),value:Yr(n,r)}}))})},nl=(0,ll.Z)(((e,t)=>{let{onItemClick:r,columnsHeaders:l}=e,{rowValue:{group:a}}=t;return{onClick:r&&(()=>{r(a)}),columnsHeaders:l}}))((e=>{let{value:t="",columnData:r,rowValue:l,columnsHeaders:n,onClick:i}=e;const{cellClassName:o,labelRenderer:s}=r,d=Kr(),u=(0,rl.d)(i),f=!!s;return a().createElement(Ye.Tooltip,{title:a().createElement(al,{columnsHeaders:n,chartData:l})},a().createElement("div",{className:p()(d.attribute,u,o),onClick:i},f?a().createElement(s,{chartData:l}):c.P6Y.strings.removeLineBreaks(t)))}));var il=r(43290);const ol=(0,ll.Z)(((e,t)=>{let{onItemClick:r,columnsHeaders:l}=e,{rowValue:{group:a}}=t;return{onClick:r&&(()=>{r(a)}),columnsHeaders:l}}))((e=>{let{value:t,columnData:{maxValue:r},rowValue:l,columnsHeaders:n,onClick:i}=e;const o=Kr(),s=(0,rl.d)(i),u=0===t?"0":(0,c.k7L)(t,999);return a().createElement(Ye.Tooltip,{title:a().createElement(al,{columnsHeaders:n,chartData:l})},a().createElement("div",{className:p()(o.numberContainer,s),onClick:i},a().createElement(Ye.Typography,{className:o.number},u),!(0,d.isNil)(r)&&a().createElement("div",{className:o.colorBarContainer},a().createElement(il.Z,{width:t,maxWidth:r,className:o.bar}))))})),cl=(0,ye.Z)({tableContainer:e=>{let{width:t,height:r}=e;return{height:r,width:t,display:"flex",flexDirection:"column","& .hoveredRow":{background:"transparent"},"& .hoveredRow:after":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,backgroundColor:"rgba(0,0,0,0.07)",pointerEvents:"none"}}},cellBorder:{borderLeft:"none",borderRight:"none!important"}});function sl(){return sl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},sl.apply(this,arguments)}function pl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const dl=(e,t)=>t?`${e} ${t}`:e,ul=e=>{let{width:t,height:r,data:n,columnsOptions:i,basicTableRef:o,onItemClick:c,dataReltioId:s}=e,p=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["width","height","data","columnsOptions","basicTableRef","onItemClick","dataReltioId"]);const u=cl({width:t,height:r}),f=(0,l.useMemo)((()=>({cellBorder:u.cellBorder})),[u]),m=(0,l.useMemo)((()=>Math.max(...(0,d.pluck)("value",n))),[n]),h=(0,l.useMemo)((()=>i.map((e=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){pl(e,t,r[t])}))}return e}({resizable:!1,sortable:!1,headCellRenderer:tl,rowCellValueRenderer:nl,label:dl(e.label,e.secondLabel),initialWidth:t*e.width},"value"===e.id?{label:dl(e.label,e.secondLabel).concat(`|${m}`),maxValue:m,rowCellValueRenderer:ol}:{},(0,d.omit)(["label","width"],e))))),[i,m,t]),y=(0,l.useMemo)((()=>i.map((0,d.pick)(["id","label"]))),[i]),g=(0,l.useMemo)((()=>({onItemClick:c,columnsHeaders:y})),[c,y]);return a().createElement("div",{className:u.tableContainer,"data-reltio-id":s},a().createElement(Vr.Z,sl({columnsData:h,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:f,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:g,hoverStateEnabled:!0},p)))},fl=(0,ye.Z)((()=>({layoutItemContent:{padding:"0 0 10px"}}))),ml=(0,he.Z)((e=>{let{config:t,data:r,title:n,columnsOptions:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,titleChildren:p,state:d,onRefresh:u}=e;const f=fl(),[m,h]=(0,l.useState)("desc"),[y,g]=(0,l.useState)("value"),v=(0,l.useCallback)(((e,t)=>c?c({sortDirection:m,sortField:y})(e,t):Sr({sortDirection:m,sortField:y})(e,t)),[m,y,c]),b=e=>{h((()=>y===e?(0,zr.Dh)(m):m)),g(e)},E=(0,l.useMemo)((()=>[...r.sort(v)]),[v,r]);return a().createElement(lt,{config:t},a().createElement(Ue,{title:n,infoTooltipTitle:o},p),a().createElement(et,{className:f.layoutItemContent,data:E,loadingState:d,onRefresh:u},(e=>{let{data:t,width:r=0,height:l=0}=e;return a().createElement(ul,{data:t,width:r,height:l,columnsOptions:i,sorting:{field:y,order:m},onSort:b,onItemClick:s})})))}));function hl(){return hl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},hl.apply(this,arguments)}const yl=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",hl({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),a().createElement("mask",{id:"svg1830866123a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},a().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),a().createElement("g",{mask:"url(#svg1830866123a)"},a().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},a().createElement("path",{d:"M12.375 18.688a7 7 0 017-7h75.742a7 7 0 017 7v49.02a7 7 0 01-7 7H19.375a7 7 0 01-7-7v-49.02z"}),a().createElement("path",{opacity:".4",d:"M16.844 22.813a7 7 0 017-7h75.741a7 7 0 017 7v49.02a7 7 0 01-7 7H23.844a7 7 0 01-7-7v-49.02z"})),a().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"29.318",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 31.381a3.562 3.562 0 013.552-3.563 3.562 3.562 0 013.552 3.563 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),a().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 29.052c0-.726.588-1.313 1.313-1.313h23.983a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),a().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 33.553c0-.518.42-.938.938-.938h43.37a.938.938 0 010 1.876h-43.37a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 36.554c0-.31.252-.563.563-.563h13.993a.563.563 0 110 1.126H31.26a.563.563 0 01-.563-.563z",fill:"#B1AABD"}),a().createElement("rect",{opacity:".5",x:"19.854",y:"17.689",width:"29.914",height:"4.126",rx:"2.063",fill:"#645F6D"}),a().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"43.573",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),a().createElement("rect",{x:"19.854",y:"42.072",width:"7.105",height:"7.127",rx:"3.552",fill:"#E3EBF4"}),a().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 43.306c0-.725.588-1.313 1.313-1.313h28.41a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),a().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 47.808c0-.518.42-.938.938-.938h48.23a.938.938 0 110 1.876h-48.23a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 50.809c0-.31.252-.563.563-.563h38.884a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),a().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"57.828",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 59.891a3.562 3.562 0 013.552-3.564 3.562 3.562 0 013.552 3.564 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),a().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 57.561c0-.725.588-1.313 1.313-1.313h38.132a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),a().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 62.063c0-.518.42-.938.938-.938h31.778a.938.938 0 110 1.875H31.635a.938.938 0 01-.938-.937z",fill:"#B1AABD"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 65.064c0-.311.252-.563.563-.563h13.993a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 3.094h88V88H0V3.094z",fill:"url(#paint0_linear_3200_4362)"}),a().createElement("path",{d:"M79.893 76.85H21.308v14.184h58.585V76.85z",fill:"#F5C056"}),a().createElement("path",{d:"M79.893 76.85H74.6v14.184h5.293V76.85z",fill:"#E99B00"}),a().createElement("path",{d:"M48.73 76.893H26.283v14.184H48.73V76.893z",fill:"#FFEA5A"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.894 57.829c-1.687-4.26 13.113-4.043 11.413 0-1.353 3.218-1.353 7.53 0 12.934H44.894C46 64.93 46 60.618 44.894 57.83z",fill:"#FFD264"}),a().createElement("path",{d:"M61.253 70.383H39.949v2.663h21.304v-2.663z",fill:"#FFD264"}),a().createElement("path",{d:"M47.938 70.383h-4.185v2.663h4.185v-2.663z",fill:"#FFEA5A"}),a().createElement("path",{d:"M64.676 73.046h-28.15v3.804h28.15v-3.804z",fill:"#795D1A"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.764 16.363v5.325H15.602v.143c0 13.634 8.992 24.714 20.162 24.961v2.994c-14-.986-25.108-15.488-25.108-33.233v-.19h25.108z",fill:"#FFCB64"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.677 16.363v5.325h20.161v.143c0 13.634-8.991 24.714-20.161 24.961v2.994c13.999-.986 25.107-15.488 25.107-33.233v-.19H64.677z",fill:"#ED985C"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.307 57.829c-1.353 3.218-1.353 7.53 0 12.934h-5.706V54.715c3.278.026 6.556 1.091 5.706 3.114z",fill:"#F4B046"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.676 73.046v3.804H50.601v-3.804h14.075z",fill:"#4F350B"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.253 70.383v2.663H50.6v-2.663h10.652z",fill:"#F4B046"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.933 10.656a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-11.43 0-23.311-20.1-24.449-45.65h2.194l-.38-3.044h-1.898a91.212 91.212 0 01.01-2.663h49.045z",fill:"#FFCE66"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.937 10.656c.006.569.01 1.14.01 1.712v.952h-.044l-.241 3.043h.294c.126 24.948 1.435 39.335 3.123 45.65-8.89-3.2-15.661-20.403-16.308-45.65h1.465l-.241-3.044h-1.271a158.252 158.252 0 01.006-2.663h13.207z",fill:"#FFEA5A"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.284 16.363h-3.91l.422-3.044h3.581a81.301 81.301 0 00-.01-2.663h4.566a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-.414 0-.828-.026-1.241-.078 11.92-1.382 19.899-20.946 21.114-45.572zm.083-5.707h-44.48 44.48z",fill:"#F4B046"}),a().createElement("path",{opacity:".519",d:"M72.665 13.32h-44.51v3.043h44.51v-3.044z",fill:"#F4B046"}),a().createElement("path",{d:"M48.318 73.046h-5.706v3.804h5.706v-3.804z",fill:"#96691F"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M65.526 10.656h4.235L58.973 35.935h-4.235l10.788-25.279z",fill:"url(#paint1_linear_3200_4362)"}),a().createElement("g",{filter:"url(#filter0_d_3200_4362)"},a().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#000"})),a().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#DD612C"}),a().createElement("path",{d:"M56.909 54.302a8.681 8.681 0 100-17.362 8.681 8.681 0 000 17.362z",fill:"#FFCE66"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.909 36.94a8.685 8.685 0 018.347 6.291c-5.74.351-10.312 5.02-10.51 10.8a8.699 8.699 0 01-6.008-5.47A11.212 11.212 0 0054.9 37.174a8.684 8.684 0 012.008-.234z",fill:"#FFF18C"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.202 10.656l10.862 25.341H54.83L43.646 10.705l4.556-.049z",fill:"#F83D3D"})),a().createElement("defs",null,a().createElement("linearGradient",{id:"paint0_linear_3200_4362",x1:"0",y1:"3.094",x2:"0",y2:"88",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),a().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),a().createElement("linearGradient",{id:"paint1_linear_3200_4362",x1:"62.25",y1:"10.656",x2:"62.25",y2:"35.935",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopColor:"#B93131"}),a().createElement("stop",{offset:"1",stopColor:"#831616"})),a().createElement("filter",{id:"filter0_d_3200_4362",x:"40.057",y:"30.77",width:"33.702",height:"33.703",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a().createElement("feOffset",{dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"3"}),a().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0335613 0 0 0 0 0.334579 0 0 0 0 0.412601 0 0 0 0.5 0"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3200_4362"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3200_4362",result:"shape"}))))};function gl(){return gl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},gl.apply(this,arguments)}const vl=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",gl({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),a().createElement("mask",{id:"svg355575424a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},a().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),a().createElement("g",{mask:"url(#svg355575424a)"},a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_3488_11934)"}),a().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M64.543 19.547L84.7 39.704V90.88H32.1L17.875 77.372V19.547h46.668z",fill:"url(#paint1_linear_3488_11934)"}),a().createElement("path",{opacity:".06",fillRule:"evenodd",clipRule:"evenodd",d:"M16.156 19.938h69.438A2.406 2.406 0 0188 22.343v53.968a2.406 2.406 0 01-2.406 2.407H16.156a2.406 2.406 0 01-2.406-2.406v-53.97a2.406 2.406 0 012.406-2.405z",fill:"#000"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 19.25H86.28c.95 0 1.719.77 1.719 1.719v53.968c0 .95-.77 1.72-1.719 1.72H17.187c-.949 0-1.718-.77-1.718-1.72V20.97c0-.95.77-1.719 1.719-1.719z",fill:"#fff"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 24.968c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 29.093c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 56.031c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 60.156c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 66.344c0-.57.462-1.031 1.031-1.031h28.059a1.031 1.031 0 010 2.062H37.254c-.57 0-1.031-.462-1.031-1.031z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 70.469c0-.57.462-1.031 1.031-1.031h25.508a1.031 1.031 0 010 2.062H37.125c-.57 0-1.031-.462-1.031-1.031z",fill:"#979797"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 35.406c0-.57.461-1.031 1.03-1.031h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.032z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 39.531c0-.57.461-1.031 1.03-1.031H70.54a1.031 1.031 0 010 2.063H48.47c-.57 0-1.032-.462-1.032-1.032z",fill:"#979797"}),a().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),a().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),a().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),a().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),a().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),a().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 45.719c0-.57.461-1.032 1.03-1.032h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.031z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 49.844c0-.57.461-1.032 1.03-1.032h25.509a1.031 1.031 0 010 2.063H48.469c-.57 0-1.032-.462-1.032-1.031z",fill:"#979797"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M31.802 37.125v-2.75h-.688V48.251h3.843v-.688h-3.155v-9.75h3.155v-.688h-3.155z",fill:"#2B98F0"}),a().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),a().createElement("path",{opacity:".6",fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 7.563h63.937c1.14 0 2.063.923 2.063 2.062v6.188c0 1.139-.924 2.062-2.063 2.062H17.187a2.062 2.062 0 01-2.062-2.063V9.625c0-1.14.923-2.063 2.063-2.063z",fill:"#fff"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M19.938 12.719c0-1.14.923-2.063 2.062-2.063h24.063a2.063 2.063 0 010 4.125H22a2.062 2.062 0 01-2.063-2.062zM50.875 12.719c0-1.14.923-2.063 2.063-2.063h3.437a2.063 2.063 0 010 4.125h-3.438a2.062 2.062 0 01-2.062-2.062z",fill:"#979797"}),a().createElement("path",{opacity:".2",d:"M37.687 66.48l8.942 8.309v.958l19.925 19.702 31.064-.552 7.006-25.47-34.487-34.144-11.2.567c-3.238-1.86-5.34-3.02-6.306-3.48-.54-.258-.383 5.565-2.755 7.725-1.243 1.133-3.462 4.104-6.657 8.914l-5.532 17.47z",fill:"url(#paint2_linear_3488_11934)"}),a().createElement("g",{filter:"url(#filter0_d_3488_11934)",fillRule:"evenodd",clipRule:"evenodd"},a().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312a18.719 18.719 0 014.236 4.554l4.28-.699a23.425 23.425 0 012.392 6.47l-3.639 2.443c.262 2.058.2 4.18-.216 6.285l3.466 2.572a24.254 24.254 0 01-2.838 6.375l-4.231-.855a19.61 19.61 0 01-4.526 4.366l.62 4.34a23.426 23.426 0 01-6.409 2.551l-2.345-3.649a18.72 18.72 0 01-6.219-.1l-2.593 3.564a22.7 22.7 0 01-6.224-2.757l.912-4.304a18.715 18.715 0 01-4.281-4.567l-4.285.7a23.424 23.424 0 01-2.4-6.438l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14zM60.075 49.74c-2.804-1.248-6.112.064-7.388 2.93-1.276 2.867-.038 6.203 2.766 7.452 2.804 1.248 6.112-.064 7.388-2.93 1.276-2.867.038-6.203-2.766-7.452z",fill:"#6B93AC"}),a().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312c.779.597 1.503 1.25 2.168 1.95l-10.07 9.392a5.444 5.444 0 00-1.491-.983c-2.804-1.248-6.112.064-7.388 2.93a5.7 5.7 0 00.626 5.749l-10.071 9.39c-.502-.585-.965-1.2-1.39-1.84l-4.284.7a23.424 23.424 0 01-2.4-6.437l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14z",fill:"#7CA6BF"}),a().createElement("path",{d:"M62.886 42.644c6.409 2.854 9.24 10.479 6.322 17.03-2.917 6.553-10.478 9.552-16.887 6.698-6.409-2.853-9.24-10.478-6.322-17.03 2.917-6.553 10.478-9.551 16.887-6.698zm-1.32 2.966c-4.808-2.14-10.478.109-12.666 5.023-2.188 4.914-.065 10.633 4.742 12.773 4.806 2.14 10.477-.108 12.665-5.023 2.188-4.914.065-10.633-4.742-12.773z",fill:"#AAC4D5"}),a().createElement("path",{d:"M62.886 42.644a12.424 12.424 0 014.22 3.075l-2.366 2.207a9.317 9.317 0 00-3.175-2.316c-4.807-2.14-10.477.109-12.665 5.023-1.635 3.673-.863 7.795 1.638 10.536l-2.367 2.208c-3.325-3.656-4.35-9.145-2.172-14.035 2.917-6.553 10.478-9.551 16.887-6.698z",fill:"#CBDDE9"}))),a().createElement("defs",null,a().createElement("linearGradient",{id:"paint0_linear_3488_11934",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),a().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),a().createElement("linearGradient",{id:"paint1_linear_3488_11934",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopOpacity:".01"}),a().createElement("stop",{offset:"1"})),a().createElement("linearGradient",{id:"paint2_linear_3488_11934",x1:"86.975",y1:"77.519",x2:"49.809",y2:"46.968",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopColor:"#90A4AE",stopOpacity:"0"}),a().createElement("stop",{offset:"1",stopOpacity:".75"})),a().createElement("filter",{id:"filter0_d_3488_11934",x:"32.168",y:"30.067",width:"53.209",height:"53.716",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a().createElement("feOffset",{dx:"1",dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"2"}),a().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3488_11934"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3488_11934",result:"shape"}))))};function bl(){return bl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},bl.apply(this,arguments)}const El=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["styles"]);return a().createElement("svg",bl({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),a().createElement("mask",{id:"svg1954152798a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},a().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),a().createElement("g",{mask:"url(#svg1954152798a)"},a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_4523_4542)"}),a().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M64.543 19.547L84.7 39.704V90.88H32.1L17.875 77.372V19.547h46.668z",fill:"url(#paint1_linear_4523_4542)"}),a().createElement("path",{opacity:".06",fillRule:"evenodd",clipRule:"evenodd",d:"M16.156 19.938h69.438A2.406 2.406 0 0188 22.343v53.968a2.406 2.406 0 01-2.406 2.407H16.156a2.406 2.406 0 01-2.406-2.406v-53.97a2.406 2.406 0 012.406-2.405z",fill:"#000"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 19.25H86.28c.95 0 1.719.77 1.719 1.719v53.968c0 .95-.77 1.72-1.719 1.72H17.187c-.949 0-1.718-.77-1.718-1.72V20.97c0-.95.77-1.719 1.719-1.719z",fill:"#fff"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 24.968c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 29.093c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 110 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 56.031c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 60.156c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 110 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 66.344c0-.57.462-1.031 1.031-1.031h28.059a1.031 1.031 0 010 2.063H37.254c-.57-.001-1.031-.463-1.031-1.032z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 70.469c0-.57.462-1.031 1.031-1.031h25.508a1.031 1.031 0 010 2.063H37.125c-.57-.001-1.031-.463-1.031-1.032z",fill:"#979797"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 35.406c0-.57.461-1.031 1.03-1.031h28.06a1.031 1.031 0 010 2.063h-28.06c-.569 0-1.03-.462-1.03-1.032z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 39.531c0-.57.461-1.031 1.03-1.031H70.54a1.031 1.031 0 010 2.063H48.47c-.57 0-1.032-.462-1.032-1.032z",fill:"#979797"}),a().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),a().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),a().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),a().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),a().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),a().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),a().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 45.719c0-.57.461-1.032 1.03-1.032h28.06a1.031 1.031 0 010 2.063h-28.06c-.569 0-1.03-.462-1.03-1.031z",fill:"#B6C7DB"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 49.844c0-.57.461-1.032 1.03-1.032h25.509a1.031 1.031 0 010 2.063H48.469c-.57 0-1.032-.462-1.032-1.031z",fill:"#979797"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M31.802 37.125v-2.75h-.688V48.251h3.843v-.688h-3.155v-9.75h3.155v-.688h-3.155z",fill:"#2B98F0"}),a().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),a().createElement("path",{opacity:".6",fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 7.563h63.937c1.14 0 2.063.923 2.063 2.062v6.188c0 1.139-.924 2.062-2.063 2.062H17.187a2.062 2.062 0 01-2.062-2.063V9.625c0-1.14.923-2.063 2.063-2.063z",fill:"#fff"}),a().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M19.938 12.719c0-1.14.923-2.063 2.062-2.063h24.063a2.062 2.062 0 010 4.125H22a2.062 2.062 0 01-2.063-2.062zM50.875 12.719c0-1.14.923-2.063 2.063-2.063h3.437a2.062 2.062 0 110 4.125h-3.438a2.062 2.062 0 01-2.062-2.062z",fill:"#979797"}),a().createElement("g",{filter:"url(#filter0_d_4523_4542)"},a().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),a().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#4A90E2"}),a().createElement("path",{opacity:".15",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#4A90E2"}),a().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#4A90E2"}),a().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#4A90E2"}),a().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#61A3F1"}),a().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.33 66.066 75.41h-2.029l-7.582-7.582 1.006-3.178.837-18.201z",fill:"url(#paint2_linear_4523_4542)"}),a().createElement("g",{filter:"url(#filter1_d_4523_4542)"},a().createElement("circle",{cx:"57.406",cy:"47.781",r:"1.719",fill:"#fff"})),a().createElement("g",{filter:"url(#filter2_d_4523_4542)"},a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M55.688 53.969a1.719 1.719 0 113.438 0v12.375a1.719 1.719 0 11-3.438 0V53.969z",fill:"#fff"}))),a().createElement("defs",null,a().createElement("linearGradient",{id:"paint0_linear_4523_4542",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),a().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),a().createElement("linearGradient",{id:"paint1_linear_4523_4542",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopOpacity:".01"}),a().createElement("stop",{offset:"1"})),a().createElement("linearGradient",{id:"paint2_linear_4523_4542",x1:"77.079",y1:"63.788",x2:"62.929",y2:"54.707",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopOpacity:".01"}),a().createElement("stop",{offset:"1"})),a().createElement("filter",{id:"filter0_d_4523_4542",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a().createElement("feOffset",{dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"2"}),a().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4523_4542"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4523_4542",result:"shape"})),a().createElement("filter",{id:"filter1_d_4523_4542",x:"51.688",y:"44.063",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a().createElement("feOffset",{dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"2"}),a().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4523_4542"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4523_4542",result:"shape"})),a().createElement("filter",{id:"filter2_d_4523_4542",x:"51.688",y:"50.25",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a().createElement("feOffset",{dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"2"}),a().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4523_4542"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4523_4542",result:"shape"}))))},xl=(0,ye.Z)((e=>({title:{whiteSpace:"nowrap",height:"24px",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"},titleCount:{overflow:"hidden",lineHeight:"24px",textOverflow:"ellipsis"},viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"},countProfiles:{color:e.palette.text.primary,fontWeight:700}})));let Ol;!function(e){e.DVF_NOT_SUPPORTED="dvfNotSupported",e.DVF_NOT_CONFIGURE="dvfNotConfigured",e.DATA_VALID="dataValid",e.PERMISSION_DENIED="permissionDenied"}(Ol||(Ol={}));const wl=e=>{let{chartType:t,dataLevel:r,title:l,infoTooltipTitle:n,titleChildren:i,dvfConfigLink:o,config:s}=e;const p=xl();let d,u,m;const y=r===c.yn8.ATTRIBUTE_TYPE?f().text("attribute type"):f().text("entity type");switch(t){case Ol.DVF_NOT_SUPPORTED:d=El,m=f().text("Data validation functions are not supported for\nReference attributes at this time.");break;case Ol.DVF_NOT_CONFIGURE:d=vl,u=f().text("If we spot any validation issues, we’ll display them here."),m=a().createElement(a().Fragment,null,a().createElement(Ye.Link,{href:o,target:"_blank",component:o?"a":"span",color:o?"primary":"inherit",underline:o?"hover":"none","data-reltio-id":"reltio-dq-dashboard-define-dvf-link"},`${f().text("Define some data validation functions")} `),f().text("for this ${dataSourceLabel} (or ask your Tenant Admin).",{dataSourceLabel:y}));break;case Ol.DATA_VALID:d=yl,u=f().text("We didn’t spot any validation issues for this ${dataSourceLabel}.\nYou can kick back and enjoy a cold one.",{dataSourceLabel:y}),m=f().text("Nice one!");break;case Ol.PERMISSION_DENIED:d=h.B9.ERROR,u=f().text("Please contact your Tenant Admin to change permissions"),m=f().text("You don’t currently have permission to view this chart")}return a().createElement(lt,{config:s},a().createElement(Ue,{title:l,infoTooltipTitle:n},i),a().createElement(He.Z,{className:p.viewContent},a().createElement(ze.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=0}=e;return a().createElement(Xe,{height:t,data:{Icon:d,title:m,message:u}})}))))},Tl=e=>{let{isDataValid:t,totalProfiles:r,invalidProfiles:l}=e;const n=xl();return a().createElement(Ye.Typography,{className:n.titleCount},t?f().text("0 profiles"):(0,d.isNil)(l)?null:a().createElement(a().Fragment,null,a().createElement("span",{className:n.countProfiles},(0,c.k7L)(l)),` (${Math.round(l/r*100)}% ${f().text("out of")} ${(0,c.k7L)(r)}) ${1!==l?f().text("profiles"):f().text("profile")}`))},Sl=e=>{const{config:t}=e,r=(0,n.useSelector)(y.ZP.selectors.getMetadata),i=(0,l.useContext)(de),o=i===c.yn8.ATTRIBUTE_TYPE,{dvfs:s,dvfConfigLink:p}=(0,l.useContext)(S),{data:u,state:m,reload:h,errorCode:g}=s,v=(0,l.useContext)(T),b=(0,l.useContext)(N),E=b.uri,x=(o?((e,t)=>(e||[]).filter((0,d.propEq)("attribute",t)))(u,null==v?void 0:v.uri):u)||[],O=x.filter((0,d.propEq)("status",c.lVm.ACTIVE)),{data:w,state:A,reload:C}=mt(o?(e=>(0,d.pipe)(Tr("dataValidationFunctions"),Ir(e)))(O):((e,t)=>(0,d.pipe)(Tr("dataValidationFunctions"),Cr(e,t)))(O,r)),D=(0,l.useMemo)((()=>[b]),[b]),_=(e=>{let{entityTypeUri:t,dvfUris:r}=e;const[a,n]=(0,l.useState)(null),i=(0,I._)();return(0,l.useEffect)((()=>{const e=[{fieldName:"type",filter:c.j5E.EQUALS,values:[t]},{fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",filter:c.j5E.EQUALS,values:r}];i((0,c.j_Q)(e)).then((e=>{let{total:t}=e;return n(t)})).catch((()=>n(null)))}),[t,r]),a})({entityTypeUri:E,dvfUris:(0,l.useMemo)((()=>(0,d.pluck)("uri",O)),[O])}),P=L(D)(E),j=vt((e=>t=>{let{entityTypeUri:r}=t;return t=>{const l=Rr(e,t);return(0,d.pipe)(Pr,B(null,r))(l,r)}})(O)),k=(0,l.useMemo)((()=>m===R.o.LOADED&&A===R.o.LOADED?R.o.LOADED:m===R.o.ERROR||A===R.o.ERROR?R.o.ERROR:R.o.LOADING),[A,m]),M=(0,l.useMemo)((()=>()=>{m===R.o.ERROR&&h(),A===R.o.ERROR&&C()}),[A,m,h,C]),F=g===c.Xt7.ACCESS_DENIED,U=o&&se(v),z=g===c.Xt7.DVF_NOT_CONFIGURED||0===(null==O?void 0:O.length)&&k!==R.o.ERROR&&m===R.o.LOADED,V=k===R.o.LOADED&&(null==O?void 0:O.length)>0&&0===w.length,H=!(k===R.o.ERROR&&g!==c.Xt7.DVF_NOT_CONFIGURED)&&!z&&k!==R.o.LOADING&&a().createElement(Tl,{isDataValid:V,totalProfiles:P,invalidProfiles:_}),W=a().createElement(Ee,{title:f().text("Profiles with invalid data"),data:[{value:f().text("Shows the number of profiles that violate active validation functions")}],DataRenderer:at}),Y=((e,t)=>{return e===c.yn8.ATTRIBUTE_TYPE?(r=t.length,[{id:"label",label:f().text("Validation function"),secondLabel:`(${r})`,width:.4,sortable:!0},{id:"value",label:f().text("Profiles"),width:.6,sortable:!0}]):(e=>[{id:"attributeLabel",label:f().text("Attribute"),width:.23,sortable:!0},{id:"label",label:f().text("Validation function"),secondLabel:`(${e})`,width:.37,sortable:!0},{id:"value",label:f().text("Profiles"),width:.4,sortable:!0}])(t.length);var r})(i,w);return z||V||F?a().createElement(wl,{config:t,chartType:U?Ol.DVF_NOT_SUPPORTED:z?Ol.DVF_NOT_CONFIGURE:V?Ol.DATA_VALID:F?Ol.PERMISSION_DENIED:void 0,title:f().text(t.title),infoTooltipTitle:W,titleChildren:H,dvfConfigLink:p,dataLevel:i}):a().createElement(ml,{config:t,title:f().text(t.title),data:w,onItemClick:j,titleChildren:H,state:k,onRefresh:M,customComparator:Sr,infoTooltipTitle:W,columnsOptions:Y})},Nl=(0,ye.Z)({monoFontCell:{fontFamily:'"Roboto Mono", monospace'}}),Rl=e=>{let{config:t}=e;const r=Nl(),{data:n,state:i,reload:o}=mt(Lr),s=(0,l.useContext)(T).type,d=(0,c.Lt4)(s)?((e,t)=>e.map((e=>_({},e,{label:(0,c.mB6)({dataTypeDefinition:{type:t}},Number(e.label))}))))(n,s):n,u=vt(Br),m=a().createElement(Ee,{title:f().text("Frequency analysis"),data:[{value:f().text("Shows the number of times each value occurs")}],DataRenderer:at}),h=[{id:"label",label:f().text("Value"),secondLabel:Ur(n),width:.4,cellClassName:p()({[r.monoFontCell]:(0,c.m6e)(s)})},{id:"value",label:f().text("Count"),width:.6}];return a().createElement(ml,{config:t,data:d,title:t.title,infoTooltipTitle:m,onItemClick:u,state:i,onRefresh:o,columnsOptions:h})};function Il(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){Al(e,t,r[t])}))}return e}function Al(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Cl,Ll;!function(e){e[e.sun=0]="sun",e[e.mon=1]="mon",e[e.tue=2]="tue",e[e.wed=3]="wed",e[e.thu=4]="thu",e[e.fri=5]="fri",e[e.sat=6]="sat"}(Cl||(Cl={})),function(e){e[e.jan=0]="jan",e[e.feb=1]="feb",e[e.mar=2]="mar",e[e.apr=3]="apr",e[e.may=4]="may",e[e.jun=5]="jun",e[e.jul=6]="jul",e[e.aug=7]="aug",e[e.sep=8]="sep",e[e.oct=9]="oct",e[e.nov=10]="nov",e[e.dec=11]="dec"}(Ll||(Ll={}));const Dl=e=>(0,d.pipe)((0,d.pathOr)({},[e,"data"]),Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),j),_l="Reltio profiles",Pl="Source profiles",jl=(0,d.pipe)((0,d.pathOr)({},["consolidationRate"]),(0,d.converge)(d.concat,[(0,d.pipe)((0,d.prop)("totalCrosswalksBySource"),(0,d.omit)(["ReltioCleanser"]),(e=>[Il({},e,{label:Pl,group:Pl})])),(0,d.pipe)((0,d.prop)("totalEntities"),(e=>[(0,d.assoc)(_l,e,{label:_l,group:_l})]))]));var kl;!function(e){e.AVERAGE="avg",e.MININMUN="min",e.MAXIMUM="max",e.MEDIAN="median",e.NUMBER_OF_SOURCES="numberOfSources",e.MIN_NUMBER_OF_PROFILES="minNumberOfProfiles",e.MAX_NUMBER_OF_PROFILES="maxNumberOfProfiles",e.AVG_NUMBER_OF_PROFILES="avgNumberOfProfiles"}(kl||(kl={}));const Ml=(e,t)=>{const r={lengthStatistics:{[kl.MEDIAN]:f().text("Median"),[kl.AVERAGE]:f().text("Average"),[kl.MININMUN]:f().text("Minimum"),[kl.MAXIMUM]:f().text("Maximum")},valueDistribution:{[kl.MEDIAN]:f().text("Median"),[kl.AVERAGE]:f().text("Average"),[kl.MININMUN]:f().text("Minimum"),[kl.MAXIMUM]:f().text("Maximum")},crosswalkAnalysis:{[kl.NUMBER_OF_SOURCES]:f().text("No. of source systems"),[kl.AVG_NUMBER_OF_PROFILES]:f().text("Avg no. of profiles"),[kl.MIN_NUMBER_OF_PROFILES]:f().text("Min no. of profiles"),[kl.MAX_NUMBER_OF_PROFILES]:f().text("Max no. of profiles")}};return(0,d.pathOr)(null,[t,e],r)},Bl=e=>(0,d.pipe)((0,d.propOr)({},e),Object.entries,(0,d.map)((t=>{let[r,l]=t;return{label:Ml(r,e),value:l}})),(0,d.filter)((e=>{let{label:t}=e;return t})),j),Fl=e=>t=>({chartData:Dl(e)(t),infoPanelData:Bl(e)(t)}),Ul=(e,t)=>(0,c.Lt4)(t)?(0,c.mB6)({dataTypeDefinition:{type:t}},Number(e)):f().number(e),zl=(0,d.curry)(((e,t)=>{const r=(0,d.pipe)((0,d.prop)("group"),(0,d.split)(" "),d.head,Number),l=t.chartData.sort((0,d.ascend)(r)).map(((r,l)=>{const[a,n=a]=r.group.split(" ").map(Number),i=l===t.chartData.length-1,o=a!==n?((e,t,r)=>G(t)?`[${e}${r?"]":")"}`:e)(`${Ul(a,e)} - ${Ul(n,e)}`,e,i):Ul(a,e);return Il({},r,{label:o,group:[a,n,i?"last":""].toString()})}));return{infoPanelData:t.infoPanelData.map((t=>{const r=(0,c.Lt4)(e)?(0,c.mB6)({dataTypeDefinition:{type:e}},Number(t.value)):(0,c.k7L)(t.value,999);return Il({},t,{value:r,localizedValue:(0,c.Lt4)(e)?r:t.localizedValue})})),chartData:l}})),Vl=(0,d.pipe)(Fl("lengthStatistics"),zl("")),Hl=Fl("monthDistribution"),Wl=Fl("dayOfWeekDistribution"),Yl=Fl("dayOfMonthDistribution"),Zl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return yt({fieldName:`${r.fieldName}.day_of_week`,value:Cl[t.toLowerCase()],entityTypeUri:l})})),Gl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return yt({fieldName:`${r.fieldName}.month`,value:Ll[t.toLowerCase()],entityTypeUri:l})})),$l=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return yt({fieldName:`${r.fieldName}.day_of_month`,value:t,entityTypeUri:l})})),ql=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;const[a,n]=t.split(",");return a===n?yt({fieldName:`${r.fieldName}.length`,value:a,entityTypeUri:l}):(e=>{let{fieldName:t,startRange:r,endRange:l,entityTypeUri:a}=e;return ht({keyword:`${c.j5E.IN_RANGE}(${t}, ${r}, ${l})`,entityTypeUri:a})})({fieldName:`${r.fieldName}.length`,startRange:a,endRange:n,entityTypeUri:l})})),Ql=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return yt({fieldName:`${r.fieldName}.crosswalk_sources`,value:t,entityTypeUri:l})})),Kl=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;const[l,a]=t.split(",");return[{filter:c.j5E.AFTER,values:[l],fieldName:r},{filter:c.j5E.BEFORE,values:[a],fieldName:r}]})),Xl=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;const[l,a]=t.split(",");return[l===a?{filter:c.j5E.EQUALS,values:[[l]],fieldName:r}:{filter:c.j5E.IN_RANGE,values:[[l,a]],fieldName:r}]})),Jl=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;const[l,a,n]=t.split(","),i=l===a,o=i?[{filter:c.j5E.EQUALS,values:[[l]],fieldName:r}]:[{filter:c.j5E.IN_RANGE,values:[[l,a]],fieldName:r}];return!n&&!i&&o.push({filter:c.j5E.NOT_EQUALS,values:[[a]],fieldName:r}),o})),ea=(0,d.cond)([[c.Lt4,(0,d.always)(F(Kl))],[G,(0,d.always)(F(Jl))],[d.identity,(0,d.always)(F(Xl))]]),ta=(0,d.curry)(((e,t)=>{let{entityTypeUri:r}=e;return t===_l?B(void 0,r,[]):(e=>{let{fieldName:t,value:r,entityTypeUri:l}=e;return ht({keyword:`${c.j5E.GT}(${t},${r})`,entityTypeUri:l})})({fieldName:`crosswalk_sources_count.${t}`,value:"'0'",entityTypeUri:r})})),ra=(0,d.curry)(((e,t)=>!e||(0,d.propEq)("key",t,e)||t==_l?1:.12)),la=e=>e>999?f().number(e,"0,0.0a").toUpperCase():e;function aa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){na(e,t,r[t])}))}return e}function na(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ia=(0,ye.Z)((e=>({tooltipWrapper:aa({},e.tooltip,{padding:"4px 8px"})}))),oa=e=>{var t;let{payload:r,active:l,name:n}=e;const i=null==r||null===(t=r[0])||void 0===t?void 0:t.payload,o=null==i?void 0:i.value,c=null==i?void 0:i.label,s=n?`${n}`:"",p=ia();return l&&a().createElement("div",{className:p.tooltipWrapper},a().createElement(Ee,{data:[{label:s,value:c},{label:f().text("No of profiles"),value:f().number(o)}]}))},ca=(0,ye.Z)((()=>({chartInfoLabel:{fontSize:"13px",lineHeight:"15px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},chartInfoValue:{fontSize:"13px",lineHeight:"15px",color:"rgba(0, 0, 0, 0.87)"},chartInfoWrapper:{display:"flex",backgroundColor:"rgba(0, 0, 0, 0.05)",margin:"0 12px 12px",padding:"9px 12px 8px"},chartInfoItem:{marginRight:"16px"},clickable:{cursor:"pointer"},title:{marginRight:"50px",fontSize:"16px"},root:{padding:"0 0 0 16px",minHeight:"auto",marginTop:"12px",marginBottom:"12px"}}))),sa=e=>{let{data:t}=e;const r=ca();return a().createElement("div",{className:r.chartInfoWrapper},t.map((e=>{let{label:t,value:l,localizedValue:n}=e;return a().createElement("div",{key:t,className:r.chartInfoItem},a().createElement("span",{className:r.chartInfoLabel},t,": "),l!==n?a().createElement(Ye.Tooltip,{title:n},a().createElement("span",{className:r.chartInfoValue},l)):a().createElement("span",{className:r.chartInfoValue},l))})))};var pa=r(88611);const da=(0,ye.Z)((()=>({labelWrapper:e=>{let{width:t}=e;return{overflow:"hidden",width:`${t}px`,marginTop:"-3px"}},xAxisLabel:{textAlign:"center",whiteSpace:"nowrap",fontSize:"12px","&::first-letter":{textTransform:"capitalize"},"&:after":{top:"0",right:"0",width:"10px",height:"100%",content:'""',position:"absolute",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}}}))),ua=e=>{let{width:t,height:r,label:l,x:n,y:i}=e;const o=da({width:t}),c=n-t/2;return a().createElement("foreignObject",{x:c,y:i,width:t,height:r},a().createElement("div",{className:o.labelWrapper},a().createElement(pa.C,{value:l},a().createElement("div",{className:o.xAxisLabel},l))))},fa=e=>{const{x:t,y:r,width:l,height:n,payload:i,visibleTicksCount:o}=e,{value:c}=i,s=l/o-4;return a().createElement(ua,{width:s,height:n,label:c,x:t,y:r})},ma=e=>{let{showCategories:t=!1,interval:r,barCategoryGap:l,maxBarSize:a,yTickRenderer:n,tickCount:i}=e;return{barChart:{barCategoryGap:l||"10%"},bar:{dataKey:"value",fill:"#0072CE",minPointSize:3,maxBarSize:a||50},xAxis:{tick:t&&fa,tickLine:!1,interval:r||0,dataKey:"label"},yAxis:{axisLine:!1,tickLine:!1,tick:n||{fill:"#000",fontSize:12},width:60,tickFormatter:la,tickCount:i||5},cartesianGrid:{stroke:"#000",strokeOpacity:"0.05",vertical:!1},labelForX:{position:"insideBottom",style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"},offset:t?-3:3},labelForY:{angle:270,position:"left",offset:-3,style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"}}}};function ha(){return ha=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},ha.apply(this,arguments)}const ya=e=>{let{isClickable:t}=e,r=function(e,t){if(null==e)return{};var r,l,a=function(e,t){if(null==e)return{};var r,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)r=n[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["isClickable"]);const l=ca(),n=t?l.clickable:void 0;return a().createElement(fe.Ae,ha({},r,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},ga=e=>{const{value:t}=e;return t>0?a().createElement(fe.Ae,e):null};function va(){return va=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},va.apply(this,arguments)}const ba=e=>{let{data:t,config:r,xAxisLabel:l,yAxisLabel:n,barTooltipTitle:i,infoPanelData:o,infoTooltipTitle:c,onItemClick:s,options:p={},state:d,onRefresh:u}=e;const f=ca(),{title:m}=r,{cartesianGrid:h,bar:y,xAxis:g,yAxis:v,labelForX:b,labelForY:E,barChart:x}=ma(p),O=s&&(e=>{let{activePayload:t}=e;return s(t[0].payload.group)}),w=O?f.clickable:void 0,T=d===R.o.LOADED&&o.length>0;return a().createElement(lt,{config:r},a().createElement(Ue,{title:m,infoTooltipTitle:c}),T&&a().createElement(sa,{data:o}),a().createElement(et,{data:t,loadingState:d,onRefresh:u},(e=>{let{data:t,width:r=0,height:o=0}=e;return a().createElement("div",null,a().createElement(fe.vz,va({width:r,height:o,data:t,onClick:O},x),a().createElement(fe.q3,h),a().createElement(fe.u,{content:a().createElement(oa,{name:i}),cursor:a().createElement(ya,{isClickable:!!O})}),a().createElement(fe.$Q,va({},y,{shape:a().createElement(ga,{className:w})})),a().createElement(fe.B2,v,a().createElement(fe.__,va({},E,{value:n}))),a().createElement(fe.Kc,g,a().createElement(fe.__,va({},b,{value:l})))))})))},Ea=e=>{let{config:t}=e;const{data:r,state:l,reload:n}=mt(Vl),{chartData:i,infoPanelData:o}=r,c=vt(ql),s=a().createElement(Ee,{title:f().text("Length statistics"),data:[{value:f().text("Measures the string length of values")}],DataRenderer:at});return a().createElement(ba,{config:t,data:i,xAxisLabel:f().text("Length of values"),yAxisLabel:f().text("No. of profiles"),infoPanelData:o,barTooltipTitle:f().text("Length"),infoTooltipTitle:s,onItemClick:c,state:l,onRefresh:n})};var xa=r(94175);const Oa=(0,ye.Z)({icon:{width:"20px",height:"20px",borderRadius:"4px",fontSize:"14px",marginRight:"8px"},text:e=>{let{color:t}=e;return{backgroundColor:t}}}),wa=e=>{let{chartData:t}=e;const{group:r,label:l}=t,n=Oa({color:(0,c.kW2)(r)});return a().createElement(a().Fragment,null,a().createElement(xa.Z,{sourceType:r,className:n.icon,classes:{textRoot:n.text}}),l)};function Ta(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){Sa(e,t,r[t])}))}return e}function Sa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Na=e=>{let{config:t}=e;const r=(0,n.useSelector)(y.ZP.selectors.getMetadata),{data:l,state:i,reload:o}=mt((e=>(0,d.pipe)(Fl("crosswalkAnalysis"),(0,d.applySpec)({chartData:(0,d.pipe)((0,d.prop)("chartData"),W(e)),infoPanelData:(0,d.pipe)((0,d.prop)("infoPanelData"),(0,d.map)((e=>(0,d.assoc)("value",(0,c.k7L)(e.value,999),e))))})))(r)),{chartData:s}=l,p=vt(Ql),u=a().createElement(Ee,{title:f().text("Source system analysis"),data:[{value:f().text("Distribution of source systems contributing to profiles")}],DataRenderer:at}),m=[{id:"label",label:f().text("Source system"),secondLabel:`(${s.length})`,width:.4,sortable:!0,labelRenderer:wa},{id:"value",label:f().text("Profiles"),width:.6,sortable:!0}];return a().createElement(ml,{config:Ta({},t),data:s,title:t.title,infoTooltipTitle:u,onItemClick:p,state:i,onRefresh:o,customComparator:Sr,columnsOptions:m})},Ra=e=>{let{config:t}=e;const r=(0,l.useContext)(T).type,{data:n,state:i,reload:o}=mt((e=>(0,d.pipe)(Fl("valueDistribution"),zl(e)))(r)),{chartData:c,infoPanelData:s}=n,p=vt(ea(r));return a().createElement(ba,{config:t,data:c,xAxisLabel:f().text("Value"),yAxisLabel:f().text("No. of profiles"),infoPanelData:s,barTooltipTitle:f().text("Value"),onItemClick:p,state:i,onRefresh:o})},Ia=e=>{let{config:t}=e;const{data:r,state:l,reload:n}=mt(Hl),{chartData:i,infoPanelData:o}=r,c=vt(Gl);return a().createElement(ba,{config:t,data:i,xAxisLabel:f().text("Months of the year"),yAxisLabel:f().text("No. of profiles"),infoPanelData:o,barTooltipTitle:f().text("Months of the year"),options:{showCategories:!0,barCategoryGap:"20%",interval:"preserveStartEnd"},onItemClick:c,state:l,onRefresh:n})},Aa=e=>{let{config:t}=e;const{data:r,state:l,reload:n}=mt(Wl),{chartData:i,infoPanelData:o}=r,c=vt(Zl);return a().createElement(ba,{config:t,data:i,xAxisLabel:f().text("Days of the week"),yAxisLabel:f().text("No. of profiles"),infoPanelData:o,barTooltipTitle:f().text("Days of the week"),options:{showCategories:!0,barCategoryGap:"25%",interval:"preserveStartEnd"},onItemClick:c,state:l,onRefresh:n})},Ca=e=>{let{config:t}=e;const{data:r,state:l,reload:n}=mt(Yl),{chartData:i,infoPanelData:o}=r,c=vt($l);return a().createElement(ba,{config:t,data:i,xAxisLabel:f().text("Days of the month"),yAxisLabel:f().text("No. of profiles"),infoPanelData:o,barTooltipTitle:f().text("Days of the month"),options:{showCategories:!0,interval:1},onItemClick:c,state:l,onRefresh:n})},La=e=>{let{config:t}=e;const r=Nl(),{data:l,state:n,reload:i}=mt(Dr),o=vt(Fr),c=a().createElement(Ee,{title:f().text("Pattern analysis"),data:[]}),s=[{id:"label",label:f().text("Value"),secondLabel:Ur(l),width:.4,cellClassName:r.monoFontCell},{id:"value",label:f().text("Count"),width:.6}];return a().createElement(ml,{config:t,data:l,title:t.title,infoTooltipTitle:c,onItemClick:o,state:n,onRefresh:i,columnsOptions:s})};function Da(){return Da=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Da.apply(this,arguments)}const _a=e=>{let{xAxisLabel:t,yAxisLabel:r,data:l,getTooltip:n,getBarOpacity:i,barSelectHandler:o,width:s,height:p,showTopLabel:u=!1,options:f={},onItemClick:m,getBarColor:h,dataReltioId:y}=e;const g=ca(),{cartesianGrid:v,xAxis:b,yAxis:E,labelForX:x,labelForY:O,barChart:w,bar:T}=ma(f),S=(0,d.curry)(((e,t)=>m&&m(e,t.group))),N=m?g.clickable:void 0;return a().createElement("div",{"data-reltio-id":y},a().createElement(fe.vz,Da({width:s,height:p,data:l},w,{margin:{top:15}}),a().createElement(fe.q3,v),a().createElement(fe.u,{content:n,cursor:null}),(e=>{const t=(0,d.pipe)(d.mergeAll,(0,d.omit)(["label","group"]),d.keys)(e),r=(0,d.curry)(((e,r)=>{let{x:l,y:n,width:i,value:o}=r;return u&&e===t.length-1?a().createElement("text",{x:l+i/2,textAnchor:"middle",y:n-5,fontSize:"12px"},(0,c.k7L)(o,999)):null}));return t.map(((e,t)=>a().createElement(fe.$Q,{stackId:"all",dataKey:e,opacity:i?i(e):1,fill:h(e),onMouseOver:o(e),onMouseLeave:o(null),key:e,label:r(t),maxBarSize:T.maxBarSize,onClick:S(e),className:N})))})(l),a().createElement(fe.B2,E,a().createElement(fe.__,Da({},O,{value:r}))),a().createElement(fe.Kc,b,a().createElement(fe.__,Da({},x,{value:t})))))};function Pa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){ja(e,t,r[t])}))}return e}function ja(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ka=(0,ye.Z)({icon:e=>{let{color:t}=e;return{backgroundColor:t,flexShrink:0,fontSize:"14px",height:"12px",margin:" 0 8px 0 0",width:"12px"}}}),Ma=(0,ye.Z)((e=>({consolidationRateWrapper:{display:"flex"},ratePercent:{fontWeight:700,lineHeight:"24px",overflow:"hidden",textOverflow:"ellipsis"},tableWithSelectedRow:{"& .Table__grid__cell_wrapper_EWDDh":{opacity:.12},"& .Table__grid__cell_wrapper_EWDDh.hoveredRow":{opacity:1}},tooltipWrapper:Pa({},e.tooltip,{padding:"4px 8px"})}))),Ba=e=>{let{data:t}=e;const r=Ma(),{totalCrosswalks:l,totalEntities:n}=t.consolidationRate,i=t.consolidationRate.totalCrosswalksBySource.ReltioCleanser||0,o=(100*(1-n/(l-i))).toFixed(1),s="0"==o.split(".")[1]?o.split(".")[0]:f().number(Number(o));return a().createElement(Ye.Typography,null,a().createElement("span",{className:r.ratePercent},s,"% "),a().createElement("span",null,`(${(0,c.k7L)(l-i,999)} ${f().text("to")} ${(0,c.k7L)(n,999)} ${f().text("profiles")})`))},Fa=e=>{let{chartData:t}=e;const{group:r,label:l}=t,n=ka({color:(0,c.kW2)(r)});return a().createElement(a().Fragment,null,a().createElement("div",{className:n.icon}),l)},Ua=e=>{const{x:t,y:r,payload:{value:l},index:n}=e;return n%2==0?a().createElement("text",{fill:"#000",x:t,y:r,textAnchor:"middle",fontSize:"12px"},la(Number(l))):null},za=e=>"Reltio profiles"===e?"#0072CE":(0,c.kW2)(e),Va=a().createElement(Ee,{title:f().text("Consolidation rate"),data:[{value:f().text("Consolidation rate is the measurement of the total number source profiles versus the number of Reltio profiles after removing duplicates.")},{value:f().text("Consolidation rate helps to understand the data reduction achieved by matching.")}]}),Ha=e=>{let{config:t}=e;const r=(0,n.useSelector)(y.ZP.selectors.getMetadata),i=Ma(),{title:o}=t,[s,u]=(0,l.useState)(),{data:m,state:h,reload:g}=mt(jl),{data:v}=mt((e=>(0,d.pipe)((0,d.pathOr)({},["consolidationRate"]),(e=>Object.keys((null==e?void 0:e.totalCrosswalksBySource)||[]).reduce(((t,r)=>"ReltioCleanser"!==r?t.concat({label:r,group:r,value:e.totalCrosswalksBySource[r]}):t),[])),W(e),(0,d.sort)((0,d.descend)((0,d.prop)("value")))))(r)),{data:b}=(0,l.useContext)(w),E=vt(ta),x=(0,l.useMemo)((()=>{const e=(0,d.pick)(["group","label"],m[0]);for(let t=v.length-1;t>=0;t--)e[v[t].group]=m[0][v[t].group];return[e,m[1]]}),[v,m]),O=(0,l.useCallback)((e=>{let{active:t}=e;if(!s||!t)return"";let l=[];return l="Reltio profiles"===(null==s?void 0:s.key)?[{label:f().text("Reltio profiles"),value:f().number(b.consolidationRate.totalEntities)}]:[{label:f().text("Source system"),value:(0,c.tH7)(r,s.key)},{label:f().text("Source profiles"),value:f().number(b.consolidationRate.totalCrosswalksBySource[s.key])}],a().createElement("div",{className:i.tooltipWrapper},a().createElement(Ee,{data:l}))}),[s,b,r]),T=(0,l.useCallback)((e=>()=>{if(e){const t=v.findIndex((0,d.propEq)("group",e));u({rowIndex:t,key:e})}else u(null)}),[u,v]),S=(0,l.useCallback)((e=>{if((0,d.isNil)(e))u(null);else{var t;const r=null===(t=v[e])||void 0===t?void 0:t.group;u({rowIndex:e,key:r})}}),[u,v]),N=e=>{if(!(0,d.isNil)(e)){var t;const r=null===(t=v[e])||void 0===t?void 0:t.group;E(r)}},R=[{id:"label",label:f().text("Source system"),secondLabel:`(${f().number(v.length)})`,resizable:!1,labelRenderer:Fa,width:.3},{id:"value",resizable:!1,label:f().text("Source profiles"),width:.7}];return a().createElement(lt,{config:t},a().createElement(Ue,{title:o,infoTooltipTitle:Va},b.consolidationRate&&a().createElement(Ba,{data:b})),a().createElement(et,{data:v,loadingState:h,onRefresh:g},(e=>{let{height:t=0,width:r=0}=e;return a().createElement("div",{className:p()(i.consolidationRateWrapper,{[i.tableWithSelectedRow]:!(0,d.isNil)(null==s?void 0:s.rowIndex)&&-1!==(null==s?void 0:s.rowIndex)})},a().createElement(_a,{yAxisLabel:f().text("No. of profiles"),data:x,getTooltip:O,getBarOpacity:ra(s),getBarColor:za,barSelectHandler:T,width:256,height:t,options:{showCategories:!0,maxBarSize:40,yTickRenderer:Ua,tickCount:8},onItemClick:E,dataReltioId:"reltio-dq-dashboard-consolidation-rate-barchart",showTopLabel:!0}),a().createElement(ul,{data:v,width:r-256,height:t,columnsOptions:R,sorting:{field:"value",order:"desc"},onRowClick:N,onRowHover:S,hoverRowIndex:null==s?void 0:s.rowIndex,hoverStateEnabled:!0,dataReltioId:"reltio-dq-dashboard-consolidation-rate-tablechart"}))})))};function Wa(){return Wa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Wa.apply(this,arguments)}class Ya{}Ya.getComponent=e=>{let{type:t,config:r,isFullscreen:l,onToggleFullscreen:n}=e;const i={config:r,isFullscreen:l,onToggleFullscreen:n};switch(t){case b.FILL_RATE:return a().createElement(bt,i);case b.UNIQUENESS:return a().createElement(Nt,i);case b.SUMMARY:return a().createElement(hr,i);case b.DATA_VALIDATION:return a().createElement(Sl,i);case b.FREQUENCY:return a().createElement(Rl,i);case b.LENGTH_STATISTIC:return a().createElement(Ea,i);case b.CROSSWALK_ANALYSIS:return a().createElement(Na,i);case b.VALUE_DISTRIBUTION:return a().createElement(Ra,i);case b.MONTH_DISTRIBUTION:return a().createElement(Ia,i);case b.DAY_OF_WEEK_DISTRIBUTION:return a().createElement(Aa,i);case b.DAY_OF_MONTH_DISTRIBUTION:return a().createElement(Ca,i);case b.PATTERN:return a().createElement(La,i);case b.CONSOLIDATION_RATE:return a().createElement(Ha,i);default:return a().createElement(xr,Wa({},i,{errorData:{message:f().text("Chart isn't supported for this data type")}}))}};const Za=Ya,Ga=e=>{let{layoutItemConfig:t,views:r,onToggleFullscreen:l,isFullscreen:n,className:i,children:o,style:c}=e;const s=r.find((e=>{let{id:r}=e;return t.i===r}));if(!s)return null;const{type:p}=s;return a().createElement("div",{style:c,className:i},Za.getComponent({type:p,config:s,onToggleFullscreen:l,isFullscreen:n}),o)},$a=(0,ye.Z)({root:{overflow:"auto",backgroundColor:"#EEEEEE",height:"100%",flexGrow:1,padding:"0 4px",boxSizing:"border-box"}}),qa=(0,d.map)((0,d.assoc)("isStatic",!0)),Qa={cols:4,rowHeight:10,margin:[12,12]},Ka=(0,l.memo)((e=>{let{views:t,layout:r,layoutOptions:n=Qa}=e;const i=$a(),o=(0,l.useMemo)((()=>qa(r)),[r]);return a().createElement("div",{className:i.root},a().createElement(ue.Z,{LayoutItem:Ga,views:t,layout:o,layoutOptions:n}))})),Xa=e=>{let{dataLevel:t,views:r,layout:l,isSliding:n=!1}=e;return(t===c.yn8.ATTRIBUTE_TYPE||n)&&a().createElement(de.Provider,{value:c.yn8.ATTRIBUTE_TYPE},a().createElement(Ka,{views:r,layout:l}))};var Ja=r(15762);const en=(0,ye.Z)((e=>({breadcrumb:{fontSize:"16px",color:e.palette.text.primary},active:{color:"rgba(0, 0, 102, 1)"},clickable:{cursor:"pointer"}}))),tn=e=>{let{dataLevel:t,detailedAttributeType:r,onChange:l}=e;const n=en();return a().createElement(Ye.Breadcrumbs,{separator:a().createElement(Ja.Z,{fontSize:"small"}),"aria-label":"breadcrumb"},[a().createElement(Ye.Typography,{key:c.yn8.ENTITY_TYPE,className:p()(n.breadcrumb,{[n.active]:t===c.yn8.ENTITY_TYPE,[n.clickable]:t===c.yn8.ATTRIBUTE_TYPE}),onClick:(e=>()=>{l(e)})(c.yn8.ENTITY_TYPE),"data-reltio-id":"reltio-dq-dashboard-breadcrumb-entity-level"},f().text("Entity overview"))].concat(t===c.yn8.ATTRIBUTE_TYPE?a().createElement(Ye.Typography,{key:c.yn8.ATTRIBUTE_TYPE,className:p()(n.breadcrumb,n.active),"data-reltio-id":"reltio-dq-dashboard-breadcrumb-attribute-level"},null==r?void 0:r.label):[]))};var rn=r(50166),ln=r(83543),an=r(98989),nn=r(31269),on=r(22385);const cn=(0,ye.Z)({root:{paddingRight:"12px",paddingLeft:"20px",display:"flex",flexDirection:"row-reverse"},detailIcon:{marginLeft:"-5px",borderRadius:"50%",padding:"2px",width:"26px",height:"26px",boxSizing:"border-box"},activeIcon:{background:"white"}}),sn=e=>{let{details:t,classes:r,fillRateData:l,fillRateState:n}=e;const i=cn(),o=(0,d.prop)("iconRoot",r),s=(0,d.prop)("iconsWrapper",r);return a().createElement("div",{className:p()(i.root,s)},Object.entries(t||{}).reverse().map((e=>{let[t,r]=e,s=Ut.NORMAL;if(t===q.REQUIRED){const e=n===R.o.LOADING,t=0===(null==(u=l)||null===(f=u.find((0,d.propEq)("group",c.s9T.MISSING)))||void 0===f?void 0:f.value);e&&(s=Ut.LOADING),e||t||(s=Ut.BAD_QUALITY)}var u,f;return a().createElement("div",{key:t,className:p()(r&&(o||i.activeIcon),i.detailIcon)},r&&a().createElement(Ye.Tooltip,{title:oe(t)},a().createElement("span",null,a().createElement(zt,{detailType:t,variant:s,size:Ft.SMALL}))))})))},pn=(0,ye.Z)({bar:{width:"100%",display:"flex",flexWrap:"nowrap"},barPart:{height:"8px",flexGrow:1},fillRateSquare:{height:"8px",width:"8px",display:"inline-block",marginRight:"5px",verticalAlign:"middle"},inactiveBarPart:{background:"#EFEFEF"}});function dn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){un(e,t,r[t])}))}return e}function un(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fn=(0,he.Z)((e=>{let{data:t}=e;const r=pn(),l=it(t),n=t.map(((e,t)=>{let{label:n,percent:i,value:o}=e;return{label:a().createElement("span",null,a().createElement("div",{className:r.fillRateSquare,style:{background:l[t]}}),n),value:`${f().number(o)} ${k(i)}`}}));return M(t)?a().createElement("div",{className:r.bar},a().createElement("div",{className:p()(r.barPart,r.inactiveBarPart)})):a().createElement(Ye.Tooltip,{title:a().createElement(Ee,{title:f().text("Fill rate"),data:n})},a().createElement("div",{className:r.bar},t.map(((e,t)=>a().createElement("div",{key:e.group,className:r.barPart,style:dn({},H(e),{background:l[t]})})))))})),mn="rgba(0, 114, 206, 0.12)",hn=(0,ye.Z)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:mn,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:mn}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"},lastLevelSelected:{"&:after":{top:"13px"}}}),yn=e=>{let{level:t,margin:r,hasChildren:l,isLastLevelItem:n,isCollapsed:i,isSelected:o=!1}=e;const c=hn(),s=!i&&(t>0||l);return a().createElement("div",{className:c.linesWrapper},((e,t)=>t>0&&e?(0,d.range)(1,t+1):t>1?(0,d.range)(1,t):[])(l,t).map((e=>a().createElement(nn.Z,{key:e,margin:r,level:e,className:c.line}))),s&&a().createElement(nn.Z,{margin:r,level:t,className:p()(c.line,!l&&t>0&&c.horizontalLine,l&&c.parentLine,n&&c.lastLevel,o&&n&&c.lastLevelSelected)}))},gn=(0,ye.Z)({listItem:{padding:"0 0 0 15px","&:after":{content:'""',left:0,right:0,position:"absolute",bottom:0,height:"1px",background:"rgba(0, 0, 0, 0.05)"}},selectedItem:{background:"white!important",border:"1px solid #000066",boxShadow:"0px 12px 17px -2px rgba(0, 0, 102, 0.06), 0px 5px 32px -4px rgba(0, 0, 102, 0.06), 0px 7px 8px -4px rgba(0, 0, 204, 0.1)",borderRadius:"6px",zIndex:1,paddingLeft:"14px","&:after":{display:"none"}},clickableItem:{cursor:"pointer","&:hover::after":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",backgroundColor:"rgba(0,0,0,0.07)",pointerEvents:"none",zIndex:1}},content:{display:"flex",alignItems:"center",width:"100%",height:"100%",position:"relative"},attribute:{paddingLeft:"9px",boxSizing:"border-box",width:"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",height:"100%",position:"relative",fontSize:"13px"},marginWrapper:{display:"inline-block",height:"100%",position:"relative",width:"100%"},attributeType:{position:"absolute",left:0,top:"8px"},fillRate:{position:"absolute",bottom:"8px",left:0,right:0,zIndex:1},attributeLabel:{padding:"8px 0 0 15px",position:"relative","&:after":{content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}},parentAttributeLabel:{padding:"14px 0 0 13px"},detailsIcon:{background:"white"},collapseIcon:{marginRight:"6px"},iconLoader:{width:"22px",height:"22px",border:"2px solid white",background:"rgba(196, 196, 196, 0.4)",borderRadius:"50%"},iconsLoaderWrapper:{paddingRight:"23px",paddingLeft:"28px",display:"flex"},iconLoaderWrapper:{width:"24px",height:"24px",backgroundColor:"white",borderRadius:"50%",marginRight:"-3px"},fillRateLineLoader:{height:"8px",width:"100%",background:"rgba(196, 196, 196, 0.4)",left:0,right:0,bottom:"8px",zIndex:1,position:"absolute"},iconsWrapper:{paddingRight:"11px"}}),vn=e=>{let{detailedAttributeType:t,fillRateData:r,fillRateState:l,style:n,level:i,selected:o=!1,onClick:c,onCollapse:s=zr.ZT,isCollapsed:u=!1,isLastLevelItem:f=!1,isLoading:m}=e;const h=gn(),y=!!t.children,g=!!r,v=$(t),b=u?an.Z:ln.Z;return a().createElement(Ye.ListItem,{style:n,selected:o,classes:{selected:h.selectedItem},onClick:y?void 0:()=>{c(t)},component:"div",className:p()(h.listItem,!y&&h.clickableItem)},a().createElement("div",{className:h.content},!y&&a().createElement("div",{className:h.attributeType},a().createElement(dr,{type:t.type})),a().createElement("div",{className:h.attribute},a().createElement(yn,{level:i,margin:20,hasChildren:y,isLastLevelItem:f,isCollapsed:u,isSelected:o}),a().createElement(nn.Z,{margin:20,level:i,className:h.marginWrapper},a().createElement(pa.C,{value:v},a().createElement("div",{className:p()(h.attributeLabel,y&&h.parentAttributeLabel)},y&&a().createElement(on.Z,{size:"XXS",icon:b,onClick:s,className:h.collapseIcon}),v))),!m&&g&&!y&&a().createElement("div",{className:h.fillRate},a().createElement(fn,{data:r})),m&&!y&&a().createElement("div",{className:h.fillRateLineLoader})),m?a().createElement("div",{className:h.iconsLoaderWrapper},(0,d.times)((e=>a().createElement("div",{className:h.iconLoaderWrapper,key:`unloadedIcon-${e}`},a().createElement("div",{className:h.iconLoader}))),5)):a().createElement(sn,{details:t.details,classes:{iconRoot:h.detailsIcon,iconsWrapper:o&&h.iconsWrapper},fillRateData:r,fillRateState:l})))},bn=(0,d.propOr)({},"attributeItem"),En=(0,d.pipe)((0,d.find)((0,d.pipe)(bn,(0,d.either)(c.YkM,c.Or$),d.not)),bn),xn=e=>(0,d.pipe)(bn,(0,d.propEq)("fieldName",e)),On=e=>(0,d.filter)((0,d.propEq)("group",e));let wn;!function(e){e.SHOW_EMPTY="showEmpty"}(wn||(wn={}));const Tn=[{label:f().text("Show attributes with no data"),value:wn.SHOW_EMPTY,group:"emptiness"}],Sn=(0,d.curry)(((e,t,r)=>{const l=(0,d.head)(On("emptiness")(e));return(null==l?void 0:l.value)===wn.SHOW_EMPTY?r:r.filter((0,d.pipe)(bn,ee(t)))})),Nn=e=>{const t=Object.values(q);return e.filter((0,d.pipe)((0,d.prop)("value"),(0,d.includes)(d.__,t)))},Rn=(0,d.pipe)(bn,(0,d.prop)("fieldName")),In=(0,d.curry)(((e,t)=>{const r=(0,d.pipe)(On("details"),Nn)(e),l=(e=>(0,d.pipe)((0,d.filter)((0,d.pipe)(bn,(0,d.both)((0,d.prop)("children"),X(e)))),(0,d.map)(Rn)))(r)(t);return t.filter((e=>{let{attributeItem:t}=e;return l.some((e=>t.fieldName.startsWith(e)))||J(r,t)}))})),An=(0,d.pipe)((0,d.map)(bn),(0,d.pluck)("fieldName"),d.identity);function Cn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ln=r(36444),Dn=r(15115);const _n=(0,ye.Z)((e=>({searchWrapper:{padding:"8px 0px 8px 16px",alignItems:"center",display:"flex",flexGrow:1,justifyContent:"flex-end",marginLeft:"-105px"},filterByDetails:{width:"32px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"9px"},searchInput:{borderRadius:"4px",width:"202px",minHeight:"32px!important",justifyContent:"flex-end",alignItems:"center",padding:"0 2px",boxSizing:"border-box","& input":{fontSize:"13px"},"& button":{padding:"2px"}},filledInput:{"& button:last-child":{backgroundColor:"rgba(0, 0, 0, 0.0509804)"}},menu:{width:"300px",paddingTop:"8px"},filterIcon:{color:e.palette.text.secondary},filterIconFilterApplied:{color:"#0072CE"},filterIconWrapper:{width:"32px",height:"32px",borderRadius:"4px",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",position:"relative","&:after":{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"4px",background:"rgba(0, 0, 0, 0.04)"},"&:hover":{"&:after":{content:'""'}}},filterIconWrapperActive:{background:"rgba(0, 0, 0, 0.04)","&:after":{content:'""',background:"rgba(0, 0, 0, 0.04)"}},filterIconWrapperSelected:{background:"rgba(0, 114, 206, 0.12)"},dropdownMenuTitle:{lineHeight:"48px",height:"48px",paddingLeft:"16px"},option:{paddingLeft:"5px",fontSize:"13px",height:"28px",lineHeight:"16px",letterSpacing:"normal",paddingRight:"19px",filter:e=>e?"grayscale(0)":"grayscale(1)",opacity:e=>e?1:.5},typeIconWrapper:{width:"28px",marginLeft:"1px","& svg":{width:"20px",height:"20px"}},valueContainer:{marginLeft:0},counter:{marginLeft:"5px"},optionLabel:{flexGrow:1},groupLabel:{textTransform:"uppercase",margin:"15px 16px 5px",letterSpacing:"0.1px",display:"block"},actionsContainer:{display:"flex",padding:"12px 5px 8px 12px"},clearAllButton:{marginRight:"auto"}}))),Pn=e=>{let{isSelected:t,data:r,onChange:l}=e;const{count:n,label:i,value:o}=r,s=!(0,d.isNil)(n),p=_n(!s||n>0);return a().createElement(Ye.MenuItem,{className:p.option,component:"div",onClick:()=>l(r),"data-reltio-id":`reltio-dq-dashboard-option-${r.value}`},a().createElement(Ye.Checkbox,{color:"primary",checked:t}),a().createElement("span",{className:p.typeIconWrapper},a().createElement(zt,{detailType:o})),a().createElement(pa.C,{value:i},a().createElement("div",{className:p.optionLabel},i)),s&&a().createElement("span",{className:p.counter},(0,c.k7L)(n,999)))},jn=(0,d.curry)(((e,t)=>!!t.find((0,d.propEq)("value",e.value)))),kn=(0,d.curry)(((e,t)=>{const r=t.findIndex((0,d.propEq)("value",e.value));return-1!==r?(0,d.remove)(r,1,t):t})),Mn=e=>{let{defaultFilterOptions:t=[],filterOptions:r,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=_n(),[s,u]=(0,l.useState)(null),[m,h]=(0,l.useState)([]),[y,g]=(0,l.useState)(n||null);(0,l.useEffect)((()=>{h(((e,t)=>{const r=(0,d.pipe)((0,d.pluck)("options"),d.flatten)(t);return e.filter((e=>{let{value:t}=e;return r.find((0,d.propEq)("value",t))}))})(t,r))}),[t,r]);const v=()=>u(null),b=e=>{h((0,d.ifElse)(jn(e),kn(e),(0,d.concat)([e])))},E=!!m.length,x=!!s,O=p()(c.filterIconWrapper,{[c.filterIconWrapperActive]:x,[c.filterIconWrapperSelected]:E}),w=E?c.filterIconFilterApplied:c.filterIcon;return a().createElement("div",{className:c.searchWrapper},a().createElement("div",{"data-reltio-id":"reltio-dq-dashboard-attributes-search-input"},a().createElement(Dn.Z,{autofocus:!0,onChange:e=>{g(e),i(e||"")},initialValue:n||null,height:40,placeholder:f().text("Search attribute name"),classes:{root:p()(c.searchInput,{[c.filledInput]:!!y})}})),a().createElement("div",{className:c.filterByDetails,"data-reltio-id":"reltio-dq-dashboard-attributes-filter"},a().createElement("div",{className:O,onClick:e=>u(e.currentTarget)},a().createElement(Ln.Z,{className:w})),a().createElement(Ye.Popover,{open:!!s,anchorEl:s,onClose:()=>{h((0,d.always)(t)),v()},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{"data-reltio-id":"reltio-dq-dashboard-attributes-filter-popup"}},a().createElement("div",{className:c.menu},a().createElement(Ye.Typography,{variant:"h6",className:c.dropdownMenuTitle},f().text("Filter")),a().createElement("div",{className:c.valueContainer},r.map((e=>{let{label:t,options:r}=e;return a().createElement("div",{key:t},t&&a().createElement(Ye.Typography,{variant:"caption",className:c.groupLabel},t),r.map((e=>{const t=jn(e,m);return a().createElement(Pn,{key:e.label,data:e,isSelected:t,onChange:b})})))})))),a().createElement("div",{className:c.actionsContainer},a().createElement(Ye.Button,{onClick:()=>{h([])},className:c.clearAllButton,disabled:!E,"data-reltio-id":"reltio-dq-dashboard-filter-clear-all-button"},f().text("Clear all")),a().createElement(Ye.Button,{onClick:()=>{h(t),v()},"data-reltio-id":"reltio-dq-dashboard-filter-cancel-button"},f().text("Cancel")),a().createElement(Ye.Button,{color:"primary",onClick:()=>{o(m),v()},"data-reltio-id":"reltio-dq-dashboard-filter-apply-button"},f().text("Apply"))))))},Bn=(0,ye.Z)((e=>({root:{width:"360px",minWidth:"360px",maxWidth:"360px",display:"flex",flexDirection:"column",background:"#fff",zIndex:1,marginBottom:"8px",borderRadius:"4px",boxShadow:"0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.12), 0px 1px 3px rgba(0, 0, 0, 0.2)"},title:{height:"24px",margin:"16px",display:"flex",alignItems:"center",fontSize:"16px",lineHeight:"24px",color:e.palette.text.primary},itemCount:{color:e.palette.text.primary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px"},listWrapper:{flexGrow:1,overflow:"hidden",position:"relative"},loadingAnimation:{"&:before":{position:"absolute",top:0,right:0,bottom:0,left:"50%",zIndex:1,width:"500%",marginLeft:"-250%",background:"linear-gradient(to right, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 54%) 50% 50%;",animation:"$loaderAnimation 0.8s linear infinite",content:'""',pointerEvents:"none"}},columnsTitle:{height:"48px",display:"grid",gridGap:"32px",gridTemplateColumns:"308px 108px",alignItems:"center",padding:"0 16px",background:"rgba(0, 0, 0, 0.06)",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",fontWeight:500,fontSize:"12px",lineHeight:"16px",color:e.palette.text.secondary},loaderWrapper:{position:"absolute",top:"0",left:"0",width:"100%",height:"4px",zIndex:1},"@keyframes loaderAnimation":{"0%":{transform:"translate(-30%, 0)"},"100%":{transform:"translate(30%, 0)"}}}))),Fn=e=>{var t,r;let{entityType:i,onAttributesListChange:o,defaultFieldName:s,defaultFilterOptions:u,defaultFilterText:m,disableAttributeSelection:g}=e;const v=Bn(),b=(0,l.useRef)(),E=(0,l.useRef)(),[x,O]=(0,l.useState)(m||""),[T,N]=(0,l.useState)([]),[A,C]=(0,l.useState)(u||Tn),[L,D]=(0,l.useState)({fieldName:s}),[_,P]=(0,l.useState)({}),{data:j}=(0,l.useContext)(w),k=null===(t=(0,l.useContext)(S))||void 0===t||null===(r=t.dvfs)||void 0===r?void 0:r.state,M=((e,t)=>{var r,a;const i=(0,n.useSelector)(y.ZP.selectors.getMetadata),o=(0,l.useMemo)((()=>(e=>(0,d.pipe)(c.WN0,le(e),ce))(t)(i,e)),[i,e,t]),[s,p]=(0,l.useState)([]),u=e.uri,f=(0,l.useMemo)((()=>(0,c.qhs)(i,u)),[i,u]),m=null===(r=(0,l.useContext)(S))||void 0===r||null===(a=r.dvfs)||void 0===a?void 0:a.data;return(0,l.useEffect)((()=>{p([]),m&&p(o.map((0,d.evolve)({attributeItem:e=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){Cn(e,t,r[t])}))}return e}({},e,{details:ie({attrTypeItem:e,dvf:m,matchAttributes:f})},e.children&&{children:e.children.map((t=>(t.details=ie({attrTypeItem:t,dvf:m,matchAttributes:f}),t.details.reference=e.isAttributeReference,t)))})})))}),[o,f,m]),s})(i,x),B=An(M),F=(0,l.useMemo)((()=>B),[B.toString()]),{data:U,state:z}=((e,t)=>{const[r,a]=(0,l.useState)(R.o.INIT),[n,i]=(0,l.useState)({}),o=(0,I._)(),s=e=>{console.error(e),a(R.o.ERROR),i({})},p=(0,l.useCallback)((()=>{if(t.length)return a(R.o.LOADING),i({}),o((0,c.TTx)({entityTypeUri:e,attributes:t,dataLevel:c.yn8.ATTRIBUTE_TYPE,metrics:[c.N0y.FILL_RATE]})).then(st).then((e=>{i(e),a(R.o.LOADED)})).catch(s)}),[o,a,i,t]),d=(0,l.useCallback)((()=>{try{p()}catch(e){s(e)}}),[p]);return(0,l.useEffect)((()=>{d()}),[d]),{data:n,state:r,reload:d}})(i.uri,F);(0,l.useEffect)((()=>P(U)),[U]),(0,l.useEffect)((()=>{const e=(null==j?void 0:j.fillRate)&&ct(null==j?void 0:j.fillRate),t=_[L.fieldName];P((r=>!e||(0,d.equals)(t,e)?r:(0,d.assoc)(L.fieldName,e,r)))}),[null==j?void 0:j.fillRate]);const V=z===R.o.LOADING||k===R.o.LOADING||z===R.o.INIT||k===R.o.INIT,{filteredItems:H,filterOptions:W}=(0,l.useMemo)((()=>{const e=z===R.o.INIT||z===R.o.LOADING?M:Sn(A,_,M),t=(e=>{const t=Object.values(q).map((e=>({value:e,label:oe(e),group:"details"}))).map((t=>(0,d.assoc)("count",((e,t)=>e.filter((e=>X([t],e.attributeItem))).length)(e,t),t)));return{label:f().text("Attribute properties"),options:t}})(e);return{filteredItems:In(A,e),filterOptions:[{label:"",options:Tn},t]}}),[M,A,_,z]),Y=(0,l.useMemo)((()=>((e,t)=>e.filter((e=>{let{attributeItem:r}=e;return!t.some((e=>r.fieldName.startsWith(e)&&r.fieldName!==e))})))(H,T)),[H,T]),Z=H.length,G=e=>{o({selectedDetailedAttributeType:e,filterText:x,filterOptions:A}),D({fieldName:e.fieldName})},$=()=>{const e=((e,t)=>(0,d.pipe)((0,d.find)(xn(t)),(0,d.propOr)(null,"attributeItem"))(e))(H,L.fieldName)||En(H);return(0,d.isEmpty)(e)||g?null:e};(0,l.useEffect)((()=>{var e,t,r;if(g)return void(null===(r=b.current)||void 0===r||r.scrollTo(0));if(H.length){const e=$();D({fieldName:(null==e?void 0:e.fieldName)||L.fieldName})}const l=((e,t)=>(0,d.findIndex)(xn(t))(e))(H,L.fieldName);l>-1?null===(e=b.current)||void 0===e||e.scrollToItem(l,"center"):null===(t=b.current)||void 0===t||t.scrollTo(0)}),[H]),(0,l.useEffect)((()=>{const e=$();o({selectedDetailedAttributeType:e,filterText:x,filterOptions:A})}),[x,A,L]),(0,l.useEffect)((()=>{D((e=>{let{fieldName:t}=e;return g?{fieldName:null}:{fieldName:t}}))}),[g]);const Q=e=>{let{scrollOffset:t}=e;if(E.current){var r,l;const e=null===(r=E.current)||void 0===r||null===(l=r.style)||void 0===l?void 0:l.borderTop;0===t&&(E.current.style.borderTop=""),t>0&&""===e&&(E.current.style.borderTop="1px solid rgba(0, 0, 0, 0.05)")}},K=e=>{let{data:t,index:r,style:l}=e;const{attributeItem:n,level:i=0}=t[r],o=L.fieldName===n.fieldName,c=((e,t)=>e[t.fieldName])(_,n),s=r>0&&i>(0,d.pathOr)(-1,[r+1,"level"],Y);return a().createElement(vn,{fillRateData:c,fillRateState:z,isLoading:V,style:l,detailedAttributeType:n,level:i,onClick:G,selected:o,onCollapse:(p=n.fieldName,()=>{N((e=>e.includes(p)?e.filter((e=>e!==p)):e.concat(p)))}),isCollapsed:T.includes(n.fieldName),isLastLevelItem:s});var p},J=Y.length,ee=!!J;return a().createElement("div",{className:v.root},a().createElement("div",{className:v.title},f().text("Attributes"),a().createElement("span",{className:v.itemCount},`${Z} ${te=Z,1===te?f().text("item"):f().text("items")}`),a().createElement(Mn,{defaultFilterText:m,defaultFilterOptions:A,onChangeFilterOptions:C,onChangeFilterText:O,filterOptions:W})),a().createElement("div",{ref:E,className:p()(v.listWrapper,{[v.loadingAnimation]:V}),"data-reltio-id":"reltio-dq-dashboard-attributes-list"},ee?a().createElement(ze.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return a().createElement(rn.FixedSizeList,{ref:b,itemCount:J,width:"100%",height:t,itemData:Y,itemSize:48,onScroll:Q},K)})):!V&&a().createElement(Xe,{height:349,data:{Icon:h.B9.SEARCH_RESULTS,title:f().text("No results found"),message:f().text("Try adjusting your search or filter to find\nwhat you’re looking for")},variant:pe.MEDIUM})));var te},Un=(0,ye.Z)({root:{display:"flex",alignItems:"center",width:"100%"},title:{flexShrink:0,paddingLeft:"20px"},content:{overflow:"hidden",flexGrow:1}}),zn=e=>{let{title:t,children:r}=e;const l=Un();return a().createElement("div",{className:l.root},a().createElement(Ye.Typography,{variant:"h6",className:l.title},t),a().createElement("div",{className:l.content},r))};var Vn=r(51209);function Hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){Wn(e,t,r[t])}))}return e}function Wn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Yn={position:"absolute",content:'""',top:0,left:0,right:0,zIndex:1},Zn=(0,ye.Z)((e=>({entityLevelBarWrapper:e=>{let{attributeListWidth:t}=e;return{width:`calc(100% - ${t-12}px)`,height:"100%",verticalAlign:"top",position:"relative",boxSizing:"border-box"}},entityLevelBar:t=>{let{transitionTimeout:r}=t;return{position:"absolute",top:0,bottom:0,right:"16px",width:"28px",background:"linear-gradient(0deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)), #FFFFFF",boxShadow:"0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.12), 0px 1px 3px rgba(0, 0, 0, 0.2)",color:e.palette.text.secondary,fontWeight:500,fontSize:"14px",writingMode:"vertical-rl",textTransform:"uppercase",cursor:"pointer",transition:`opacity ${r}s`,padding:"52px 0",marginBottom:"8px",lineHeight:"28px"}},entityLevelBarHidden:()=>({opacity:0}),entityLevelLayout:e=>{let{transitionTimeout:t}=e;return{width:"100%",height:"100%",position:"relative",left:0,transition:`left ${t}s`,marginTop:"-12px","&:before":Hn({},Yn,{top:"8px",height:"4px",background:"linear-gradient(180deg, #EEEEEE 0%, rgba(238, 238, 238, 0) 100%)",zIndex:1}),"&:after":Hn({},Yn,{height:"8px",background:"#EEEEEE"})}},entityLevelLayoutSliding:e=>{let{entityLevelBarWidth:t}=e;return{left:`-${t}px`}},expandButton:{position:"absolute",top:"15px",left:"6px",writingMode:"initial",textTransform:"none",maxWidth:"24px",height:"24px",borderRadius:"12px",background:"#fff",boxShadow:"0px 2px 2px rgba(0, 0, 0, 0.14), 0px 3px 1px rgba(0, 0, 0, 0.12), 0px 1px 5px rgba(0, 0, 0, 0.2)",transition:"max-width 0.3s linear",zIndex:2,overflow:"hidden",display:"flex",lineHeight:"28px","&:hover":{maxWidth:"500px"}},expandButtonText:{paddingRight:"8px",fontSize:"12px",lineHeight:"24px"}}))),Gn=e=>{let{showEntityLevel:t,dataLevel:r,views:l,layout:n,entityType:i,isSliding:o=!1}=e;const s=Zn({transitionTimeout:.3,attributeListWidth:360,entityLevelBarWidth:76}),d=`${f().text("Entity")}: ${(0,c.idV)(i.label)} ${f().text("overview")}`;return a().createElement("div",{className:s.entityLevelBarWrapper,onClick:t},a().createElement("div",{className:p()(s.entityLevelBar,{[s.entityLevelBarHidden]:r===c.yn8.ENTITY_TYPE}),"data-reltio-id":"reltio-dq-dashboard-entity-level-bar-button"},a().createElement("div",{className:s.expandButton},a().createElement(Vn.Z,null),a().createElement("span",{className:s.expandButtonText},d)),f().text("Entity")),a().createElement("div",{className:p()(s.entityLevelLayout,{[s.entityLevelLayoutSliding]:r!==c.yn8.ENTITY_TYPE})},(r===c.yn8.ENTITY_TYPE||o)&&a().createElement(de.Provider,{value:c.yn8.ENTITY_TYPE},a().createElement(Ka,{views:l,layout:n}))))},$n=(0,ye.Z)((e=>({additionalLabel:{fontSize:"10px",lineHeight:"12px",height:"12px",background:"rgba(0, 0, 0, 0.05)",padding:"1px 4px",borderRadius:"2px"},selectRoot:{"&>fieldset":{border:"none !important",outline:"none !important"}},select:{borderRadius:"6px !important",border:"1px solid rgba(0, 0, 0, 0.05)",padding:"3px 29px 3px 15px !important",fontSize:"18px",lineHeight:"24px",paddingRight:"30px",color:e.palette.text.primary,"&:hover,&:focus":{background:"rgba(0, 0, 0, 0.05)",border:"none",padding:"4px 30px 4px 16px !important"}},selectValue:{display:"flex",alignItems:"center",gap:"9px"},arrowIcon:{height:"16px",top:"calc(50% - 8px)",right:"1px"},menu:{padding:"4px 0",display:"flex",flexDirection:"column",gap:"4px"},optionRoot:{width:"184px",display:"flex",paddingRight:"8px"},optionEntityLabel:{flexGrow:1,fontSize:"13px",textOverflow:"ellipsis",overflow:"hidden",paddingRight:"10px",minWidth:0}}))),qn=e=>{let{entityTypes:t,entityTypeUri:r,onChange:l}=e;const n=$n(),i=(0,d.pipe)((0,d.map)((e=>{let{label:t,uri:r,entityCount:l}=e;return{label:t,entityCount:l,value:r}})))(t),o=e=>a().createElement("span",{className:n.additionalLabel},(0,c.k7L)(e,999));return a().createElement(Ye.Select,{variant:"outlined",MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null,classes:{list:n.menu}},value:r,onChange:(0,d.pipe)(zr.NA,l),renderValue:e=>{const{label:t,entityCount:r}=(0,d.find)((0,d.propEq)("value",e))(i);return a().createElement("div",{className:n.selectValue},t,o(r))},className:n.selectRoot,classes:{outlined:n.select,icon:n.arrowIcon},autoWidth:!0,"data-reltio-id":"reltio-dq-dashboard-entity-type-selector"},i.map(((e,t)=>{let{value:r,label:l,entityCount:i}=e;return a().createElement(Ye.MenuItem,{key:r,value:r,classes:{root:n.optionRoot},"data-reltio-id":`reltio-dq-dashboard-entity-type-selector-option-${t}`},a().createElement(pa.C,{value:l},a().createElement(Ye.Typography,{className:n.optionEntityLabel},l)),o(i))})))};function Qn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){Kn(e,t,r[t])}))}return e}function Kn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Xn={position:"absolute",content:'""',top:0,left:0,right:0,zIndex:1},Jn=(0,ye.Z)((e=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowX:"hidden",overflowY:"auto",fontFamily:"Roboto, Helvetica, Arial, sans-serif",display:"flex",flexDirection:"column",background:"#EEEEEE"},content:()=>({display:"flex",height:"100%",whiteSpace:"nowrap",marginLeft:"12px"}),contentWithEntityLevel:e=>{let{attributeListWidth:t,entityLevelBarWidth:r}=e;return{width:`calc(200% - ${t+r}px)`,marginLeft:"0"}},additionalLabel:{color:e.palette.text.secondary,marginLeft:"10px"},contentWrapper:e=>{let{attributeListWidth:t,entityLevelBarWidth:r,transitionTimeout:l}=e;return{flexGrow:1,position:"absolute",top:"56px",bottom:0,left:`calc(-100% + ${t+r}px)`,width:"100%",height:"calc(100% - 56px)",transition:`left ${l}s`}},contentWrapperOneSlide:()=>({left:0,transition:"none"}),contentWrapperEntityLevel:()=>({left:0}),attributeLevelWrapper:()=>({verticalAlign:"top",width:"auto",height:"100%",flexGrow:1,position:"relative",marginTop:"-12px","&:before":Qn({},Xn,{top:"8px",height:"4px",background:"linear-gradient(180deg, #EEEEEE 0%, rgba(238, 238, 238, 0) 100%)",zIndex:1}),"&:after":Qn({},Xn,{height:"8px",background:"#EEEEEE"})}),attributeLevelWithEntityLevel:e=>{let{attributeListWidth:t,entityLevelBarWidth:r}=e;return{width:`calc(100% - ${t+r}px)`}},navigationWrapper:{display:"flex",gap:"16px",padding:"12px",alignItems:"center"}})));function ei(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ti=(0,d.path)([0,"uri"]),ri=e=>{var t,r,i,o,s;let{config:u,saveState:g,getSavedState:v}=e;const A=Jn({transitionTimeout:.3,attributeListWidth:360,entityLevelBarWidth:76}),D=(()=>{const e=(0,n.useSelector)(y.ZP.selectors.getMetadata);return(0,l.useMemo)((()=>e.entityTypes.filter(c.oDv)),[e.entityTypes])})(),[_,P]=(0,l.useState)(),[j,k]=(0,l.useState)(!1),M=D&&_?(0,c.nt9)({entityTypes:D},_):null,B=L(D),[F,H]=(0,l.useState)(null),{isLoaded:W,savedState:Y}=(0,m.a)(v),Z=(0,n.useSelector)(y.ZP.selectors.getCanUserGetDQStatistic),[G,$]=(0,l.useState)(),q=(e=>{const[t,r]=(0,l.useState)(null),[a,i]=(0,l.useState)(null),o=(0,I._)(),s=(0,n.useSelector)(y.ZP.selectors.getServicesPath),p=(0,n.useSelector)(y.ZP.selectors.getEnvironment),u=(0,n.useSelector)(y.ZP.selectors.getTenant);return(0,l.useEffect)((()=>{o((0,c.JUW)({servicesPath:s,tenant:u,environment:p})).then((e=>{var t;const l=null==e||null===(t=e.data)||void 0===t?void 0:t.apps.find((0,d.propEq)("name","Console")).uri;r(l)})).catch((()=>r(null)))}),[p,u,s]),(0,l.useEffect)((()=>{const r=t&&null!=e&&e.uri?(0,d.pipe)((0,d.split)("?"),(0,d.insert)(1,`datamodeler/entityDetails/${(0,c.nIW)(e.uri)}/validation?`),(0,d.join)(""))(t):null;i(r)}),[e,t]),a})(M),Q=(e=>{const[t,r]=(0,l.useState)(null),[a,i]=(0,l.useState)(R.o.INIT),[o,s]=(0,l.useState)(),p=(0,n.useSelector)(y.ZP.selectors.getTenant),d=(0,n.useSelector)(y.ZP.selectors.getDVFPath),u=(0,I._)(),f=(0,n.useSelector)(y.ZP.selectors.getEnvironment),m=(0,n.useSelector)(y.ZP.selectors.getCanUserReadDVF),h=e=>{console.error(e),i(R.o.ERROR),r([]),s(null==e?void 0:e.errorCode)},g=e=>{r(e.functions),s(void 0),i(R.o.LOADED)},v=(0,l.useCallback)((()=>{if(m)return e&&f?(s(void 0),i(R.o.LOADING),u((0,c.HaQ)({dvfPath:d,tenant:p,entityTypeUri:e,env:f})).then(g).catch(h)):void 0;h({errorCode:c.Xt7.ACCESS_DENIED})}),[d,p,e,f]);return(0,l.useEffect)((()=>{v()}),[v]),(0,l.useMemo)((()=>({data:t,state:a,reload:v,errorCode:o})),[t,a,v,o])})(null==M?void 0:M.uri),K=(0,l.useMemo)((()=>({dvfs:Q,dvfConfigLink:q})),[Q,q]),X=(0,l.useRef)();(0,l.useEffect)((()=>{X.current=Y}),[Y]);const J=(0,l.useCallback)((e=>{if((null==M?void 0:M.uri)!==e){H(null),P(e);const t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){ei(e,t,r[t])}))}return e}({dataLevel:c.yn8.ENTITY_TYPE,entityTypeUri:e},X.current&&{filterOptions:X.current.filterOptions,filterText:X.current.filterText,fieldName:X.current.fieldName});$(c.yn8.ENTITY_TYPE),g(t),X.current=t}}),[null==M?void 0:M.uri]),ee=(null===(t=u.layoutsByDataLevel)||void 0===t?void 0:t[c.yn8.ENTITY_TYPE])||O[c.yn8.ENTITY_TYPE],te=null===(r=u.layoutsByDataLevel)||void 0===r?void 0:r[c.yn8.ATTRIBUTE_TYPE],re=(0,l.useMemo)((()=>((e,t)=>{const r=U(t),l=(0,d.mergeLeft)(e,O[c.yn8.ATTRIBUTE_TYPE]);return l[r]||l.default||[]})(te,null==F?void 0:F.type)),[null==F?void 0:F.type,te]),le=(0,l.useMemo)((()=>ee?((e,t)=>{const r=(0,d.uniqBy)((0,d.prop)("id"),(0,d.concat)((null==e?void 0:e[c.yn8.ENTITY_TYPE])||[],x[c.yn8.ENTITY_TYPE]||[])),l=[b.SUMMARY,b.CONSOLIDATION_RATE,b.DATA_VALIDATION];return z({views:r,supportedViews:l,layout:t})})(u.viewsByDataLevel,ee):[]),[u.viewsByDataLevel,ee]),ae=(0,l.useMemo)((()=>V(le)),[le]),ne=C({entityType:M,dataLevel:c.yn8.ENTITY_TYPE,metrics:ae}),ie=(0,l.useMemo)((()=>((e,t,r)=>{const l=(0,d.uniqBy)((0,d.prop)("id"),(0,d.concat)((null==e?void 0:e[c.yn8.ATTRIBUTE_TYPE])||[],x[c.yn8.ATTRIBUTE_TYPE]||[])),a=(e=>{switch(e){case E.INTEGER:case E.FLOAT:return[b.SUMMARY,b.CROSSWALK_ANALYSIS,b.DATA_VALIDATION,b.FILL_RATE,b.FREQUENCY,b.UNIQUENESS,b.VALUE_DISTRIBUTION];case E.BOOLEAN:return[b.SUMMARY,b.CROSSWALK_ANALYSIS,b.DATA_VALIDATION,b.FILL_RATE,b.FREQUENCY];case E.STRING:return[b.LENGTH_STATISTIC,b.SUMMARY,b.CROSSWALK_ANALYSIS,b.DATA_VALIDATION,b.FILL_RATE,b.FREQUENCY,b.UNIQUENESS];case E.DATE:return[b.SUMMARY,b.CROSSWALK_ANALYSIS,b.DATA_VALIDATION,b.FILL_RATE,b.FREQUENCY,b.UNIQUENESS,b.VALUE_DISTRIBUTION,b.MONTH_DISTRIBUTION,b.DAY_OF_MONTH_DISTRIBUTION,b.DAY_OF_WEEK_DISTRIBUTION];case E.SSN:return[b.SUMMARY,b.CROSSWALK_ANALYSIS,b.DATA_VALIDATION,b.FILL_RATE,b.FREQUENCY,b.UNIQUENESS,b.PATTERN];case E.UNKNOWN:return[b.SUMMARY,b.CROSSWALK_ANALYSIS,b.DATA_VALIDATION,b.FILL_RATE,b.FREQUENCY,b.UNIQUENESS,b.LENGTH_STATISTIC];default:return[]}})(U(t));return z({views:l,supportedViews:a,layout:r})})(u.viewsByDataLevel,null==F?void 0:F.type,re)),[u.viewsByDataLevel,null==F?void 0:F.type,re]),oe=(0,l.useMemo)((()=>(0,d.pipe)(V,(e=>se(F)?(0,d.reject)((0,d.equals)(c.N0y.DATA_VALIDATION))(e):e))(ie)),[ie,F]),ce=C({entityType:M,detailedAttributeType:F,dataLevel:c.yn8.ATTRIBUTE_TYPE,metrics:oe}),de=(0,d.pipe)((0,d.map)((e=>(0,d.assoc)("entityCount",B(e.uri))(e))),(0,d.sortWith)([(e,t)=>{let{entityCount:r}=e,{entityCount:l}=t;return r===l||r>0&&l>0?0:0===r?1:-1},(0,d.ascend)((0,d.prop)("label"))]))(D);(0,l.useEffect)((()=>{W&&(P(Y.entityTypeUri||ti(de)),$(ee?Y.dataLevel||c.yn8.ENTITY_TYPE:c.yn8.ATTRIBUTE_TYPE))}),[W]),(0,l.useEffect)((()=>{k(!0),G===c.yn8.ENTITY_TYPE&&setTimeout((()=>{H(null)}),300),setTimeout((()=>{k(!1)}),300)}),[G]);const ue=M&&Z&&W&&!!B(_),fe=!!ee;return a().createElement("div",{className:A.perspectiveView},a().createElement(zn,{title:f().text("Data Quality")},M&&a().createElement("div",{className:A.navigationWrapper},a().createElement(qn,{entityTypes:de,entityTypeUri:M.uri,onChange:J}),a().createElement(tn,{dataLevel:G,detailedAttributeType:F,onChange:$}))),a().createElement("div",{className:p()(A.contentWrapper,{[A.contentWrapperEntityLevel]:G===c.yn8.ENTITY_TYPE,[A.contentWrapperOneSlide]:!ue||!fe})},ue&&a().createElement("div",{className:p()(A.content,{[A.contentWithEntityLevel]:fe})},a().createElement(S.Provider,{value:K},a().createElement(N.Provider,{value:M},fe&&a().createElement(w.Provider,{value:ne},a().createElement(Gn,{showEntityLevel:()=>{$(c.yn8.ENTITY_TYPE)},dataLevel:G,views:le,layout:ee,entityType:M,isSliding:j})),a().createElement(w.Provider,{value:ce},a().createElement(Fn,{entityType:M,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:r,filterOptions:l}=e;const a=null==t?void 0:t.fieldName,n={entityTypeUri:M.uri,fieldName:a,filterOptions:l,filterText:r,dataLevel:G};(0,d.equals)(X.current,n)||(g(n),X.current=n),a&&$(c.yn8.ATTRIBUTE_TYPE),H(t)},defaultFieldName:null===(i=X.current)||void 0===i?void 0:i.fieldName,defaultFilterText:null===(o=X.current)||void 0===o?void 0:o.filterText,defaultFilterOptions:null===(s=X.current)||void 0===s?void 0:s.filterOptions,disableAttributeSelection:G===c.yn8.ENTITY_TYPE}),a().createElement("div",{className:p()(A.attributeLevelWrapper,{[A.attributeLevelWithEntityLevel]:fe})},F&&a().createElement(T.Provider,{value:F},a().createElement(Xa,{dataLevel:G,views:ie,layout:re,isSliding:j}))))))),!Z&&a().createElement(qe,{height:359,errorData:{title:f().text("You don’t currently have permission to view this page"),message:f().text(" Please contact your Tenant Admin to change permissions")},variant:pe.LARGE}),W&&M&&!B(_)&&Z&&a().createElement(Xe,{height:359,data:{Icon:h.B9.NO_DATA,title:f().text("Give us something to go on!"),message:f().text("Go ahead and load some data. We’ll put it on the scales and\nlet you know here if it measures up.")},variant:pe.LARGE})))};function li(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ai=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){li(e,t,r[t])}))}return e}({},c.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}}),ni=(0,i.Z)(ai),ii=(0,o.createGenerateClassName)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0}),oi=e=>{let{store:t,config:r,saveState:i,getSavedState:s}=e;const p=(0,l.useCallback)((0,c.aYu)(s),[s]);return a().createElement(n.Provider,{store:t},a().createElement(o.ThemeProvider,{theme:ni},a().createElement(o.StylesProvider,{generateClassName:ii},a().createElement(ri,{config:r,saveState:i,getSavedState:p}))))}}}]);