@reltio/remotes 1.4.1121 → 1.4.1122

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.
package/2712.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[2712],{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,u=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[d,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(d){case l.ICON_MODE:return c().createElement(a.Avatar,s({className:i()(t,null==p?void 0:p.iconRoot),src:r,onError:m},u));case l.TEXT_MODE:case l.ERROR_MODE:return c().createElement(a.Avatar,s({className:i()(t,null==p?void 0:p.textRoot)},u),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 u(){return u=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},u.apply(this,arguments)}const d=(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,u({ref:t,className:a,classes:{root:i["basic-view__paper"]}},n),r)}));d.displayName="BasicView",d.propTypes={children:n().node,className:n().string};const f=d},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}}},67268:(e,t,r)=>{r.d(t,{Z:()=>S});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),u=r(71153),d=r.n(u);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)))),b=(0,p.curry)(((e,t,r)=>(0,p.mergeAll)([r,(0,p.pick)(e,t)]))),v=(0,p.curry)(((e,t,r)=>(r||[]).map((r=>(0,p.pipe)((0,p.prop)("id"),g(t),(0,p.defaultTo)({}),b(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 N=e=>{let{views:t,layout:r,layoutOptions:l,onLayoutChanged:a,draggableHandle:o,LayoutItem:u,onRemove:f,onDrop:b,droppingItem:E,isDroppable:x,classes:N}=e;const S=(0,n.useRef)(),R=O(),[I,A]=(0,n.useState)(null),[C,L]=(0,n.useState)(0),{cols:D,rowHeight:P,margin:k}=l,_=(0,n.useMemo)((()=>(e=>(e||[]).map(m))(r)),[r]),j=(0,p.pipe)(y,v(["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:S,layout:_,cols:D,draggableHandle:o,autoSize:!0,rowHeight:P,width:C,margin:k,onLayoutChange:j,isResizable:!B,isDraggable:!B,className:d()(R.gridLayout,{[R.gridFullscreen]:B}),onDrop:(e,t,r)=>{b&&b(y(e),h(t),r)},droppingItem:E,isDroppable:x},_.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(u,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:M,onRemove:f,className:d()({fullscreen:l},N.item),isFullscreen:l},a))}))))};N.defaultProps={layoutOptions:{cols:4,rowHeight:30,margin:[15,15]},onConfigChanged:p.identity,onLayoutChanged:p.identity,classes:{}},N.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 S=(0,n.memo)(N)},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:u}=(0,a.PWK)(s,t),d=(0,a.tH7)(s,p)[0];return i().createElement(c.Z,{className:r,avatarText:d,icon:u?(0,a.vPL)("https://s3.amazonaws.com/reltio.images/api",u):null,variant:"square",rootClasses:n})}},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"},92712:(e,t,r)=>{r.r(t),r.d(t,{default:()=>mi});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),u=r(17440),d=r(87918),f=r.n(d),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 b;!function(e){e.UNSUPPORTED="unsupported",e.SUMMARY="summary",e.MONTH_DISTRIBUTION="monthDistribution",e.DAY_OF_WEEK_DISTRIBUTION="dayOfWeekDistribution",e.DAY_OF_MONTH_DISTRIBUTION="dayOfMonthDistribution"}(b||(b={}));const 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){g(e,t,r[t])}))}return e}({},c.N0y,b);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:v.FILL_RATE,title:f().text("Fill rate")},{id:"UniquenessAnalysisView",type:v.UNIQUENESS,title:f().text("Uniqueness analysis")},{id:"SummaryView",type:v.SUMMARY,title:f().text("Summary")},{id:"ValidationView",type:v.DATA_VALIDATION,title:f().text("Profiles with invalid data")},{id:"FrequencyAnalysis",type:v.FREQUENCY,title:f().text("Frequency analysis")},{id:"LengthStatistics",type:v.LENGTH_STATISTIC,title:f().text("Length statistics")},{id:"PatternAnalysis",type:v.PATTERN,title:f().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:v.CROSSWALK_ANALYSIS,title:f().text("Source system analysis")},{id:"MonthDistribution",type:v.MONTH_DISTRIBUTION,title:f().text("Month distribution")},{id:"DayOfWeekDistribution",type:v.DAY_OF_WEEK_DISTRIBUTION,title:f().text("Day of week distribution")},{id:"DayOfMonthDistribution",type:v.DAY_OF_MONTH_DISTRIBUTION,title:f().text("Day of month distribution")},{id:"ValueDistribution",type:v.VALUE_DISTRIBUTION,title:f().text("Value distribution")},{id:"UnsupportedDataType",type:v.UNSUPPORTED,title:f().text("Unsupported Data Type")}],[c.yn8.ENTITY_TYPE]:[{id:"SummaryView",type:v.SUMMARY,title:f().text("Summary")},{id:"ValidationView",type:v.DATA_VALIDATION,title:f().text("Profiles with invalid data")},{id:"ConsolidationRate",type:v.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 N=a().createContext(null);N.displayName="DVFContext";const S=a().createContext(null);S.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)({}),[d,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({})},b=e=>{p(e),o(R.o.LOADED)},v=(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,u.pipe)((0,u.path)(["consolidationRate","totalCrosswalksBySource"]),(0,u.omit)(["ReltioCleanser"]),u.keys,u.length)(n);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){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,u.pipe)((0,u.pathOr)({},["statistic",m]),b)).catch(g)}}),[o,p,y,m,h,a,n]);(0,l.useEffect)((()=>{const e=!!d&&Date.now()-d>18e4;a===c.yn8.ENTITY_TYPE&&e&&E()}));const E=(0,l.useCallback)((()=>{try{v()}catch(e){g(e)}}),[v]);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,u.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 P(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}const _=(0,u.map)((e=>P({},e,{localizedValue:f().number(e.value)}))),j=e=>(0,u.isNil)(e)?"":`(${e}%)`,M=e=>(0,u.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),B=(0,u.curry)(((e,t,r)=>({advanced:[D(t,r.map((0,u.when)((()=>(0,c.Lt4)(null==e?void 0:e.type)),(0,u.evolve)({values:(0,u.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,u.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,u.prop)("type",t.find((0,u.propEq)("id",l.id))),n=t.findIndex((0,u.propEq)("id",l.id));return-1!==n?r.includes(a)?e.concat(t[n]):e.concat((0,u.assoc)("type",v.UNSUPPORTED,t[n])):e.concat({id:l.id,type:v.UNSUPPORTED,title:f().text("Unsupported")})}),[])},V=(0,u.pipe)((0,u.defaultTo)([]),(0,u.pluck)("type"),(0,u.filter)((e=>Object.values(c.N0y).includes(e)))),H=e=>{let{percent:t,value:r}=e;return P({width:`${t}%`},r>0&&{minWidth:"3px"})},W=((0,u.pipe)((0,u.pluck)("percent"),(e=>Math.max(...e))),(0,u.pipe)((0,u.pluck)("value"),(e=>Math.max(...e))),(0,u.curry)(((e,t)=>t.map((t=>(0,u.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,u.allPass)([(0,u.propEq)("attribute",t),(0,u.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,u.curry)(((e,t)=>e.some((e=>t.details[e.value])))),J=(0,u.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,u.curry)(((e,t)=>{var r;const l=e[t.fieldName];return null==l||null===(r=l.find((0,u.propEq)("group",c.s9T.EXISTS)))||void 0===r?void 0:r.value})),te=(0,u.curry)(((e,t)=>{var r;const l=e[t.fieldName];return!(null!=l&&null!==(r=l.find((0,u.propEq)("group",c.s9T.EXISTS)))&&void 0!==r&&r.value)})),re=(0,u.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,u.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,u.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,u.pipe)((0,u.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,u.prop)("isAttributeReference");let pe;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(pe||(pe={}));const ue=a().createContext(null);ue.displayName="DataLevelContext";var de=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)"}}),be=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)},ve=(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=be}=e;const n=ve();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 Ne=(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}))}));Ne.displayName="Bar";const Se=Ne,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)(Se),De=e=>{let{label:t,value:r,percent:l}=e;return[{label:t,value:`${f().number(r)} ${j(l)}`}]},Pe=(0,he.Z)((e=>{let{data:t,colors:r,onItemClick:l}=e;const n=we(),i=l&&(e=>l(e)),o=!!l,s=(0,u.pipe)((0,u.pluck)("value"),u.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)} ${j(s)}`))}}))})))}));var ke=r(92778),_e=r(8818),je=r(82726);const Me=(0,ye.Z)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:"5px",lineHeight:"24px"},infoIcon:{position:"relative"}}))),Be=e=>{let{title:t,infoTooltipTitle:r,children:l}=e;const n=Me(!!l),i=!!r;return a().createElement(ke.Z,{title:t,className:n.root,classes:{title:n.title}},i&&a().createElement(_e.k,{icon:je.Z,size:"XXS",tooltipTitle:r,className:n.infoIcon}),l)};var Fe=r(44443),Ue=r(2256),ze=r(4094),Ve=r(32944),He=r(94079),We=r(43266);const Ye=(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"}}))),Ze=h.B9.ERROR,Ge=e=>{let{onRefresh:t,height:r,errorData:l={},variant:n=pe.SMALL}=e;const{Icon:i=Ze,message:o,title:c}=l,s=Ye({height:r});return a().createElement("div",{className:p()(s.container,s[`${n}`])},a().createElement(i,{className:s.icon}),c&&a().createElement(He.Typography,{className:s.title},c),o&&a().createElement(He.Typography,{className:s.message},o),!!t&&a().createElement(He.Button,{className:s.refreshButton,startIcon:a().createElement(We.Z,{color:"primary",className:s.refreshIcon}),onClick:t,"data-reltio-id":"reltio-dq-dashboard-chart-refresh-button"},a().createElement(He.Typography,{variant:"button"},f().text("Refresh"))))},$e=(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"}}),qe=h.B9.NO_DATA,Qe=e=>{let{height:t,data:r={},variant:l=pe.SMALL}=e;const{Icon:n=qe,message:i,title:o}=r,c=$e({height:t});return a().createElement("div",{className:p()(c.container,c[`${l}`])},a().createElement(n,{className:c.icon}),o&&a().createElement(He.Typography,{className:c.title},o),i&&a().createElement(He.Typography,{className:c.message},i))},Ke=(0,ye.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}}))),Xe=e=>{let{loadingState:t,onRefresh:r,children:l,data:n,className:i}=e;const o=Ke();return a().createElement(ze.Z,{className:p()(o.viewContent,i)},a().createElement(Fe.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(Ue.Z,{error:a().createElement(Ge,{errorData:{message:f().text("Something went wrong")},height:o,variant:pe.SMALL})},l({data:n,width:i,height:o})):a().createElement(Qe,{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(Ve.Z,null);case R.o.ERROR:return a().createElement(Ge,{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 Je=r(10237);const et=(0,ye.Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),tt=e=>{let{config:t,children:r}=e;const n=et(),{type:i}=t,o=(0,l.useContext)(ue);return a().createElement(Je.Z,{className:n.view,"data-reltio-id":`reltio-dq-dashboard-chart-${i}-${o}`},r)},rt=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)},lt={[c.s9T.MISSING]:"#CE5C00",[c.s9T.EXISTS]:"#C4CE00"},at=(0,u.map)((e=>{let{group:t}=e;return lt[t]||(0,c.f4_)(t)})),nt=e=>({[c.s9T.MISSING]:f().text("Missing"),[c.s9T.EXISTS]:f().text("Exists")}[e]||e),it=(0,u.pipe)(Object.entries,(0,u.map)((e=>{let[t,r]=e;return{label:nt(t),group:t,value:r}})),(0,u.sortBy)((e=>Object.values(c.s9T).indexOf(e.group))),_),ot=(0,u.pipe)((0,u.propOr)({},"statistic"),u.toPairs,(0,u.reduce)(((e,t)=>{let[r,l]=t;return null!=l&&l.fillRate&&(e[r]=it(l.fillRate)),e}),{})),ct=(0,u.propOr)({},"fillRate"),st=(0,u.pipe)(ct,it,(0,u.when)(M,(0,u.always)([])),(0,u.converge)(((e,t)=>({chartData:e,colors:t})),[u.identity,at])),pt=(0,u.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:t===c.s9T.EXISTS?c.j5E.EXISTS:c.j5E.MISSING_VALUE,fieldName:r}]})),ut=F(pt),dt=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])},ft=e=>{let{keyword:t,entityTypeUri:r}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[D(r)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}},mt=e=>{let{fieldName:t,value:r,entityTypeUri:l}=e;return ft({keyword:`${c.j5E.EQUALS}(${t}, ${r})`,entityTypeUri:l})},ht=(0,u.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,u.assoc)("keyword",{value:e,isRawFilter:!0},r)}return r})),yt=e=>{const t=(0,n.useDispatch)(),r=(0,n.useSelector)(y.ZP.selectors.getMetadata),a=(0,l.useContext)(T),i=(0,l.useContext)(S);return(0,u.pipe)(e({detailedAttributeType:a,entityTypeUri:i.uri}),ht(r,i.uri),y.ui.actions.openSearch,t)},gt=e=>{let{config:t}=e;const{title:r}=t,{data:l,state:n,reload:i}=dt(st),{chartData:o,colors:c}=l,s=yt(ut),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:rt});return a().createElement(tt,{config:t},a().createElement(Be,{title:r,infoTooltipTitle:p}),a().createElement(Xe,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return a().createElement(Pe,{data:t,colors:c,onItemClick:s})})))},bt={[c.dC6.UNIQUE]:"#4BAFFF",[c.dC6.NOT_UNIQUE]:"#C34980"},vt=(0,u.map)((e=>{let{group:t}=e;return bt[t]||(0,c.f4_)(t)})),Et=e=>({[c.dC6.UNIQUE]:f().text("Unique"),[c.dC6.NOT_UNIQUE]:f().text("Not unique")}[e]||e),xt=(0,u.pipe)(Object.entries,(0,u.map)((e=>{let[t,r]=e;return{label:Et(t),group:t,value:r}})),(0,u.sortBy)((e=>Object.values(c.dC6).indexOf(e.group))),_),Ot=(0,u.propOr)({},"uniqueness"),wt=(0,u.pipe)(Ot,xt,(0,u.when)(M,(0,u.always)([])),(0,u.converge)(((e,t)=>({chartData:e,colors:t})),[u.identity,vt])),Tt=e=>{let{config:t}=e;const{title:r}=t,{data:l,state:n,reload:i}=dt(wt),{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:rt});return a().createElement(tt,{config:t},a().createElement(Be,{title:r,infoTooltipTitle:s}),a().createElement(Xe,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return a().createElement(Pe,{data:t,colors:c})})))};var Nt=r(7089);function St(){return St=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},St.apply(this,arguments)}const Rt=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",St({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 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:"#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 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:"#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 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 Pt=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:"#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 _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",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"}))},jt=(0,ye.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),Mt={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let Bt;!function(e){e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal"}(Bt||(Bt={}));const Ft=e=>{let{detailType:t,size:r=Mt.NORMAL,variant:l=Bt.NORMAL}=e;const n=jt(r),i=p()(n.icon,n[l]);switch(t){case q.RDM_LOOKUP:return a().createElement(Lt,{className:i});case q.CONTAIN_VF:return a().createElement(Rt,{className:i});case q.INCLUDED_IN_MATCHING:return a().createElement(At,{className:i});case q.REFERENCE:return a().createElement(Pt,{className:i});case q.REQUIRED:return a().createElement(_t,{className:i});default:return null}},Ut=(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 zt(){return zt=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},zt.apply(this,arguments)}function Vt(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){Ht(e,t,r[t])}))}return e}function Ht(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Wt=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=Ut(),{data:o,state:s}=(0,l.useContext)(w);let u=Bt.NORMAL;const d=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&&(d&&(u=Bt.LOADING),d||f||(u=Bt.BAD_QUALITY)),a().createElement(Nt.Z,zt({classes:Vt({root:p()(i.root,{[i.badQuality]:t===q.REQUIRED&&!d&&s!==R.o.INIT&&!f}),label:i.label},r),label:oe(t),icon:a().createElement(Ft,{detailType:t,variant:u})},n))},Yt=(0,ye.Z)({root:{display:"flex",flexWrap:"wrap",flexGrow:1}}),Zt=e=>{let{details:t,chipClasses:r={}}=e;const l=Yt();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(Wt,{key:t,detailType:t,classes:r})})))},Gt=(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 $t(){return $t=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},$t.apply(this,arguments)}const qt=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=Gt();return a().createElement("div",$t({className:p()(o.info,l),onClick:n},i),a().createElement("div",{className:o.infoTitle},t),a().createElement("div",{className:o.infoContent},r))};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{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",Qt({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 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:"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 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:"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 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("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 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("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 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:"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"})))},cr=(0,ye.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}}}),sr={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},pr=e=>{let{type:t,size:r=sr.SMALL}=e;const l=cr(r);switch(U(t)){case E.STRING:return a().createElement(or,{className:l.icon});case E.FLOAT:return a().createElement(tr,{className:l.icon});case E.INTEGER:return a().createElement(lr,{className:l.icon});case E.BOOLEAN:return a().createElement(Kt,{className:l.icon});case E.DATE:return a().createElement(Jt,{className:l.icon});case E.SSN:return a().createElement(nr,{className:l.icon});default:return a().createElement(or,{className:l.icon})}},ur=e=>{let{detailedAttributeType:t}=e;const r=Gt(),n=(e=>{const[t,r]=(0,l.useState)(null),a=(0,l.useContext)(S),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(He.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(He.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(pr,{type:o,size:sr.NORMAL})),f().text(o))))),a().createElement(Zt,{details:t.details}));var o},dr=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,u.either)((0,u.prop)("label"),(0,u.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:d=0,sourceSystems:m=0}=(null==r?void 0:r.summary)||{},h=e=>i===R.o.LOADING?a().createElement(He.CircularProgress,{size:"24",className:g.totalLoading}):f().number(e),g=Gt(),b=(0,n.useDispatch)(),v=yt(Y),E=e=>{b(y.yC.actions.activityFilterUpdated(e)),v()};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),"data-reltio-id":"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),"data-reltio-id":"reltio-dq-dashboard-entitylevel-summary-inactiveProfiles"},h(d)),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)))},fr=(0,ye.Z)({content:{padding:"0 16px",marginTop:"4px"}}),mr=e=>{let{config:t}=e;const r=fr(),n=(0,l.useContext)(T),i=(0,l.useContext)(ue),o=(0,l.useContext)(S),s=i===c.yn8.ATTRIBUTE_TYPE,p=s?(0,c.idV)(n.label):`${f().text("Entity")}: ${(0,c.idV)(o.label)}`;return a().createElement(tt,{config:t},a().createElement(Be,{title:p}),a().createElement(ze.Z,{className:r.content},s?a().createElement(ur,{detailedAttributeType:n}):a().createElement(dr,{entityType:o})))};var hr=r(58141);const yr=(0,ye.Z)({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}});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){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 vr=h.B9.ERROR,Er=e=>{let{config:t,errorData:r,titleChildren:l,infoTooltipTitle:n,onRefresh:i}=e;const{id:o,title:c}=t,s=yr();return a().createElement(hr.Z,{id:o},a().createElement(Be,{title:c,infoTooltipTitle:n},l),a().createElement(ze.Z,{className:s.viewContent},a().createElement(Fe.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},a().createElement(Ge,{errorData:gr({Icon:vr},r),onRefresh:i,variant:pe.SMALL}))))};function xr(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){Or(e,t,r[t])}))}return e}function Or(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wr=e=>(0,u.pipe)((0,u.propOr)({},e),Object.entries,(0,u.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),_),Tr=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,u.propEq)("uri",t.group)))),Sr=(e,t)=>e.find((0,u.propEq)("uri",t)),Rr=(0,u.curry)(((e,t)=>(0,u.pipe)(Nr,(0,u.map)((t=>{var r;return xr({},t,{label:null===(r=Sr(e,t.group))||void 0===r?void 0:r.name})})))(e,t))),Ir=(0,u.pipe)((0,u.map)($),(0,u.slice)(1,1/0),(0,u.join)(" / ")),Ar=(0,u.curry)(((e,t,r)=>(0,u.pipe)(Nr,(0,u.map)((r=>{const{name:l,attribute:a}=Sr(e,r.group),n=(0,c.X3M)(t,a);return xr({},r,{label:l,attributeLabel:Ir(n)})})))(e,r))),Cr=wr("frequency"),Lr=wr("pattern"),Dr=(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:Dr(t,"FunctionName")},{filter:c.j5E.EQUALS,values:[[l]],fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",uri:Dr(t,"FunctionURI")}]},kr=(0,u.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return mt({fieldName:`${r.fieldName}`,value:t,entityTypeUri:l})})),_r=(0,u.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.ON,values:[t],fieldName:r}]})),jr=(0,u.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:r}]})),Mr=e=>{let{detailedAttributeType:t,entityTypeUri:r}=e;return(0,u.cond)([[c.j5n,(0,u.always)(kr)],[c.Lt4,(0,u.always)(F(_r))],[u.identity,(0,u.always)(F(jr))]])(t.type)({detailedAttributeType:t,entityTypeUri:r})},Br=(0,u.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return mt({fieldName:`${r.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:l})})),Fr=e=>`(${e.length>=100?f().text("top")+" 100":e.length})`;var Ur=r(31276),zr=r(85709),Vr=r(88611),Hr=r(92332);const Wr=(0,u.pipe)((0,u.split)("|"),(e=>{let[t,r]=e;return{label:t,maxValue:r}}));function Yr(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){Zr(e,t,r[t])}))}return e}function Zr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Gr={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"},$r={content:'""',position:"absolute",background:"rgba(0, 0, 0, 0.38)",width:"1px",height:"3px",bottom:0,left:0},qr=(0,ye.Z)((e=>({colorBarContainer:{position:"relative",width:"100%",marginLeft:"16px",padding:"5px 0 6px",height:"100%",boxSizing:"border-box","&>span":{display:"block"},"&>span>div":{opacity:1,zIndex:1}},number:{fontSize:"13px",lineHeight:"15px",fontWeight:"normal",color:e.palette.text.primary,flexShrink:0,width:"90px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},numberContainer:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 10px 0 16px",height:"100%"},bar:{borderRadius:"0 !important",minHeight:"16px !important",position:"initial !important","&:hover":{"&:after":{background:"rgba(0, 0, 0, 0.1)"}},"&:after":{content:'""',position:"absolute",top:"2px",left:"-3px",right:"-2px",bottom:"3px",transition:"background 0.3s"}},tooltipTitle:{color:"rgba(255, 255, 255, 0.6)"},headCell:{height:"100%",lineHeight:"47px","&>div":{padding:"0 10px 0 16px",display:"flex"},"&>div>span":{width:"100%",flexGrow:1,justifyContent:e=>e?"flex-start":"flex-end",flexDirection:e=>e?"row":"row-reverse",marginLeft:e=>e&&"auto!important"}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"47px",whiteSpace:"nowrap",overflow:"hidden","&:after":Gr},labelPercantageWrapper:{display:"flex",flexGrow:1},labelWrapper:{minWidth:"90px",position:"relative"},rangeWrapper:{marginLeft:"16px",display:"flex",width:"100%",lineHeight:"24px",alignItems:"flex-end",position:"relative","&:before":$r,"&:after":Yr({},$r,{right:0,left:"initial"})},rangeWrapperSortable:{marginLeft:"12px"},rangeLabel:{color:e.palette.text.secondary,fontSize:"12px","&:first-child":{flexGrow:1}},attribute:{color:e.palette.text.primary,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",whiteSpace:"pre",overflow:"hidden",display:"flex",alignItems:"center",height:"100%",padding:"0 16px","&:after":Gr},tooltipValue:{whiteSpace:"pre-wrap"}})));function Qr(){return Qr=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},Qr.apply(this,arguments)}function Kr(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){Xr(e,t,r[t])}))}return e}function Xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Jr=e=>{let{className:t,headCellData:r,headIndex:l}=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,["className","headCellData","headIndex"]);const i=qr(!l),{label:o,maxValue:s}=Wr(r.label),u=(0,c.k7L)(Number(s),999),d=!!s,f=a().createElement(Vr.C,{value:o},a().createElement("div",{className:i.headLabel},o));return a().createElement("div",{className:p()(i.headCell,t)},a().createElement(Hr.default,Qr({},n,{headCellData:Kr({},r,{label:d?a().createElement("div",{className:i.labelPercantageWrapper},a().createElement("div",{className:i.labelWrapper},f),a().createElement("div",{className:p()(i.rangeWrapper,{[i.rangeWrapperSortable]:r.sortable})},a().createElement("span",{className:i.rangeLabel},"0"),a().createElement("span",{className:i.rangeLabel},u))):f})})))};var el=r(99256),tl=r(32528);const rl=(0,tl.Z)(((e,t)=>{let{onItemClick:r}=e,{rowValue:{group:l}}=t;return{onClick:r&&(()=>{r(l)})}}))((e=>{let{value:t="",columnData:r,rowValue:l,onClick:n}=e;const{cellClassName:i,labelRenderer:o}=r,s=qr(),u=(0,el.d)(n),d=a().createElement("div",{className:s.tooltipValue},t),f=!!o;return a().createElement(Vr.C,{value:d},a().createElement("div",{className:p()(s.attribute,u,i),onClick:n},f?a().createElement(o,{chartData:l}):c.P6Y.strings.removeLineBreaks(t)))}));var ll=r(43290);const al=(0,me.Z)((e=>{let{value:t,maxValue:r,className:l}=e;return a().createElement(ll.Z,{width:t,maxWidth:r,className:l})})),nl=(0,tl.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=qr(),s=(0,el.d)(i),d=0===t?"0":(0,c.k7L)(t,999),m=e=>"value"===e?f().number(t):l[e],h=a().createElement(Ee,{data:n.map((e=>{let{label:t,id:r}=e;return{label:a().createElement("span",{className:o.tooltipValue},t),value:m(r)}}))});return a().createElement("div",{className:p()(o.numberContainer,s),onClick:i},a().createElement(He.Typography,{className:o.number},d),!(0,u.isNil)(r)&&a().createElement("div",{className:o.colorBarContainer},a().createElement(al,{value:t,maxValue:r,tooltipTitle:h,className:o.bar,showForDisabled:!0})))})),il=(0,ye.Z)({tableContainer:e=>{let{width:t,height:r}=e;return{height:r,width:t,display:"flex",flexDirection:"column"}},cellBorder:{borderLeft:"none",borderRight:"none!important"}});function ol(){return ol=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},ol.apply(this,arguments)}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}const sl=(e,t)=>t?`${e} ${t}`:e,pl=e=>{let{width:t,height:r,data:n,columnsOptions:i,basicTableRef:o,onItemClick:c}=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,["width","height","data","columnsOptions","basicTableRef","onItemClick"]);const p=il({width:t,height:r}),d=(0,l.useMemo)((()=>({cellBorder:p.cellBorder})),[p]),f=(0,l.useMemo)((()=>Math.max(...(0,u.pluck)("value",n))),[n]),m=(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){cl(e,t,r[t])}))}return e}({resizable:!1,sortable:!1,headCellRenderer:Jr,rowCellValueRenderer:rl,label:sl(e.label,e.secondLabel),initialWidth:t*e.width},"value"===e.id?{label:sl(e.label,e.secondLabel).concat(`|${f}`),maxValue:f,rowCellValueRenderer:nl}:{},(0,u.omit)(["label","width"],e))))),[i,f,t]),h=(0,l.useMemo)((()=>i.map((0,u.pick)(["id","label"]))),[i]),y=(0,l.useMemo)((()=>({onItemClick:c,columnsHeaders:h})),[c,h]);return a().createElement("div",{className:p.tableContainer},a().createElement(zr.Z,ol({columnsData:m,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:d,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:y},s)))},ul=(0,ye.Z)((()=>({layoutItemContent:{padding:"0 0 10px"}}))),dl=(0,he.Z)((e=>{let{config:t,data:r,title:n,columnsOptions:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,titleChildren:p,state:u,onRefresh:d}=e;const f=ul(),[m,h]=(0,l.useState)("desc"),[y,g]=(0,l.useState)("value"),b=(0,l.useCallback)(((e,t)=>c?c({sortDirection:m,sortField:y})(e,t):Tr({sortDirection:m,sortField:y})(e,t)),[m,y,c]),v=e=>{h((()=>y===e?(0,Ur.Dh)(m):m)),g(e)},E=(0,l.useMemo)((()=>[...r.sort(b)]),[b,r]);return a().createElement(tt,{config:t},a().createElement(Be,{title:n,infoTooltipTitle:o},p),a().createElement(Xe,{className:f.layoutItemContent,data:E,loadingState:u,onRefresh:d},(e=>{let{data:t,width:r=0,height:l=0}=e;return a().createElement(pl,{data:t,width:r,height:l,columnsOptions:i,sorting:{field:y,order:m},onSort:v,onItemClick:s})})))}));function fl(){return fl=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},fl.apply(this,arguments)}const ml=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",fl({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 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:"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 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 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",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:"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"}))))},vl=(0,ye.Z)((e=>({title:{whiteSpace:"nowrap",height:"24px",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"},titleCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px",overflow:"hidden",lineHeight:"24px",textOverflow:"ellipsis",fontSize:"14px"},viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"},countProfiles:{color:e.palette.text.primary}})));let El;!function(e){e.DVF_NOT_SUPPORTED="dvfNotSupported",e.DVF_NOT_CONFIGURE="dvfNotConfigured",e.DATA_VALID="dataValid",e.PERMISSION_DENIED="permissionDenied"}(El||(El={}));const xl=e=>{let{chartType:t,dataLevel:r,title:l,infoTooltipTitle:n,titleChildren:i,dvfConfigLink:o,config:s}=e;const p=vl();let u,d,m;const y=r===c.yn8.ATTRIBUTE_TYPE?f().text("attribute type"):f().text("entity type");switch(t){case El.DVF_NOT_SUPPORTED:u=bl,m=f().text("Data validation functions are not supported for\nReference attributes at this time.");break;case El.DVF_NOT_CONFIGURE:u=yl,d=f().text("If we spot any validation issues, we’ll display them here."),m=a().createElement(a().Fragment,null,a().createElement(He.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 El.DATA_VALID:u=ml,d=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 El.PERMISSION_DENIED:u=h.B9.ERROR,d=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(tt,{config:s},a().createElement(Be,{title:l,infoTooltipTitle:n},i),a().createElement(ze.Z,{className:p.viewContent},a().createElement(Fe.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=0}=e;return a().createElement(Qe,{height:t,data:{Icon:u,title:m,message:d}})}))))},Ol=e=>{let{isDataValid:t,totalProfiles:r,invalidProfiles:l,tooltipTitle:n}=e;const i=vl();return a().createElement(Vr.C,{value:n},a().createElement(He.Typography,{className:i.titleCount},t?f().text("0 profiles"):(0,u.isNil)(l)?null:a().createElement(a().Fragment,null,a().createElement("span",{className:i.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")}`)))},wl=e=>{const{config:t}=e,r=(0,n.useSelector)(y.ZP.selectors.getMetadata),i=(0,l.useContext)(ue),o=i===c.yn8.ATTRIBUTE_TYPE,{dvfs:s,dvfConfigLink:p}=(0,l.useContext)(N),{data:d,state:m,reload:h,errorCode:g}=s,b=(0,l.useContext)(T),v=(0,l.useContext)(S),E=v.uri,x=(o?((e,t)=>(e||[]).filter((0,u.propEq)("attribute",t)))(d,null==b?void 0:b.uri):d)||[],O=x.filter((0,u.propEq)("status",c.lVm.ACTIVE)),{data:w,state:A,reload:C}=dt(o?(e=>(0,u.pipe)(wr("dataValidationFunctions"),Rr(e)))(O):((e,t)=>(0,u.pipe)(wr("dataValidationFunctions"),Ar(e,t)))(O,r)),D=(0,l.useMemo)((()=>[v]),[v]),P=(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,u.pluck)("uri",O)),[O])}),k=L(D)(E),_=yt((e=>t=>{let{entityTypeUri:r}=t;return t=>{const l=Sr(e,t);return(0,u.pipe)(Pr,B(null,r))(l,r)}})(O)),j=(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(b),z=g===c.Xt7.DVF_NOT_CONFIGURED||0===(null==O?void 0:O.length)&&j!==R.o.ERROR&&m===R.o.LOADED,V=j===R.o.LOADED&&(null==O?void 0:O.length)>0&&0===w.length,H=!(j===R.o.ERROR&&g!==c.Xt7.DVF_NOT_CONFIGURED)&&!z&&j!==R.o.LOADING&&a().createElement(Ol,{isDataValid:V,totalProfiles:k,invalidProfiles:P,tooltipTitle:t.title}),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:rt}),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("Name"),secondLabel:`(${e})`,width:.37,sortable:!0},{id:"value",label:f().text("Count"),secondLabel:"(%)",width:.4,sortable:!0}])(t.length);var r})(i,w);return z||V||F?a().createElement(xl,{config:t,chartType:U?El.DVF_NOT_SUPPORTED:z?El.DVF_NOT_CONFIGURE:V?El.DATA_VALID:F?El.PERMISSION_DENIED:void 0,title:f().text(t.title),infoTooltipTitle:W,titleChildren:H,dvfConfigLink:p,dataLevel:i}):a().createElement(dl,{config:t,title:f().text(t.title),data:w,onItemClick:_,titleChildren:H,state:j,onRefresh:M,customComparator:Tr,infoTooltipTitle:W,columnsOptions:Y})},Tl=(0,ye.Z)({monoFontCell:{fontFamily:'"Roboto Mono", monospace'}}),Nl=e=>{let{config:t}=e;const r=Tl(),{data:n,state:i,reload:o}=dt(Cr),s=(0,l.useContext)(T).type,u=(0,c.Lt4)(s)?((e,t)=>e.map((e=>P({},e,{label:(0,c.mB6)({dataTypeDefinition:{type:t}},Number(e.label))}))))(n,s):n,d=yt(Mr),m=a().createElement(Ee,{title:f().text("Frequency analysis"),data:[{value:f().text("Shows the number of times each value occurs")}],DataRenderer:rt}),h=[{id:"label",label:f().text("Value"),secondLabel:Fr(n),width:.4,cellClassName:p()({[r.monoFontCell]:(0,c.m6e)(s)})},{id:"value",label:f().text("Count"),width:.6}];return a().createElement(dl,{config:t,data:u,title:t.title,infoTooltipTitle:m,onItemClick:d,state:i,onRefresh:o,columnsOptions:h})};function Sl(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){Rl(e,t,r[t])}))}return e}function Rl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Il,Al;!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"}(Il||(Il={})),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"}(Al||(Al={}));const Cl=e=>(0,u.pipe)((0,u.pathOr)({},[e,"data"]),Object.entries,(0,u.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),_),Ll="Reltio profiles",Dl="Source profiles",Pl=(0,u.pipe)((0,u.pathOr)({},["consolidationRate"]),(0,u.converge)(u.concat,[(0,u.pipe)((0,u.prop)("totalCrosswalksBySource"),(0,u.omit)(["ReltioCleanser"]),(e=>[Sl({},e,{label:Dl,group:Dl})])),(0,u.pipe)((0,u.prop)("totalEntities"),(e=>[(0,u.assoc)(Ll,e,{label:Ll,group:Ll})]))]));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 _l=(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,u.pathOr)(null,[t,e],r)},jl=e=>(0,u.pipe)((0,u.propOr)({},e),Object.entries,(0,u.map)((t=>{let[r,l]=t;return{label:_l(r,e),value:l}})),(0,u.filter)((e=>{let{label:t}=e;return t})),_),Ml=e=>t=>({chartData:Cl(e)(t),infoPanelData:jl(e)(t)}),Bl=(e,t)=>(0,c.Lt4)(t)?(0,c.mB6)({dataTypeDefinition:{type:t}},Number(e)):f().number(e),Fl=(0,u.curry)(((e,t)=>{const r=(0,u.pipe)((0,u.prop)("group"),(0,u.split)(" "),u.head,Number),l=t.chartData.sort((0,u.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)(`${Bl(a,e)} - ${Bl(n,e)}`,e,i):Bl(a,e);return Sl({},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 Sl({},t,{value:r,localizedValue:(0,c.Lt4)(e)?r:t.localizedValue})})),chartData:l}})),Ul=(0,u.pipe)(Ml("lengthStatistics"),Fl("")),zl=Ml("monthDistribution"),Vl=Ml("dayOfWeekDistribution"),Hl=Ml("dayOfMonthDistribution"),Wl=(0,u.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return mt({fieldName:`${r.fieldName}.day_of_week`,value:Il[t.toLowerCase()],entityTypeUri:l})})),Yl=(0,u.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return mt({fieldName:`${r.fieldName}.month`,value:Al[t.toLowerCase()],entityTypeUri:l})})),Zl=(0,u.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return mt({fieldName:`${r.fieldName}.day_of_month`,value:t,entityTypeUri:l})})),Gl=(0,u.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;const[a,n]=t.split(",");return a===n?mt({fieldName:`${r.fieldName}.length`,value:a,entityTypeUri:l}):(e=>{let{fieldName:t,startRange:r,endRange:l,entityTypeUri:a}=e;return ft({keyword:`${c.j5E.IN_RANGE}(${t}, ${r}, ${l})`,entityTypeUri:a})})({fieldName:`${r.fieldName}.length`,startRange:a,endRange:n,entityTypeUri:l})})),$l=(0,u.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:l}=e;return mt({fieldName:`${r.fieldName}.crosswalk_sources`,value:t,entityTypeUri:l})})),ql=(0,u.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}]})),Ql=(0,u.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}]})),Kl=(0,u.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})),Xl=(0,u.cond)([[c.Lt4,(0,u.always)(F(ql))],[G,(0,u.always)(F(Kl))],[u.identity,(0,u.always)(F(Ql))]]),Jl=(0,u.curry)(((e,t)=>{let{entityTypeUri:r}=e;return t===Ll?B(void 0,r,[]):(e=>{let{fieldName:t,value:r,entityTypeUri:l}=e;return ft({keyword:`${c.j5E.GT}(${t},${r})`,entityTypeUri:l})})({fieldName:`crosswalk_sources_count.${t}`,value:"'0'",entityTypeUri:r})})),ea=(0,u.curry)(((e,t)=>!e||(0,u.propEq)("key",t,e)||t==Ll?1:.12)),ta=e=>e>999?f().number(e,"0,0.0a").toUpperCase():e;function ra(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){la(e,t,r[t])}))}return e}function la(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const aa=(0,ye.Z)((e=>({tooltipWrapper:ra({},e.tooltip,{padding:"4px 8px"})}))),na=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=aa();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)}]}))},ia=(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"}}))),oa=e=>{let{data:t}=e;const r=ia();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(He.Tooltip,{title:n},a().createElement("span",{className:r.chartInfoValue},l)):a().createElement("span",{className:r.chartInfoValue},l))})))},ca=(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"}}}))),sa=e=>{let{width:t,height:r,label:l,x:n,y:i}=e;const o=ca({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(Vr.C,{value:l},a().createElement("div",{className:o.xAxisLabel},l))))},pa=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(sa,{width:s,height:n,label:c,x:t,y:r})},ua=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&&pa,tickLine:!1,interval:r||0,dataKey:"label"},yAxis:{axisLine:!1,tickLine:!1,tick:n||{fill:"#000",fontSize:12},width:60,tickFormatter:ta,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 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 fa=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=ia(),n=t?l.clickable:void 0;return a().createElement(fe.Ae,da({},r,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},ma=e=>{const{value:t}=e;return t>0?a().createElement(fe.Ae,e):null};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{data:t,config:r,xAxisLabel:l,yAxisLabel:n,barTooltipTitle:i,infoPanelData:o,infoTooltipTitle:c,onItemClick:s,options:p={},state:u,onRefresh:d}=e;const f=ia(),{title:m}=r,{cartesianGrid:h,bar:y,xAxis:g,yAxis:b,labelForX:v,labelForY:E,barChart:x}=ua(p),O=s&&(e=>{let{activePayload:t}=e;return s(t[0].payload.group)}),w=O?f.clickable:void 0,T=u===R.o.LOADED&&o.length>0;return a().createElement(tt,{config:r},a().createElement(Be,{title:m,infoTooltipTitle:c}),T&&a().createElement(oa,{data:o}),a().createElement(Xe,{data:t,loadingState:u,onRefresh:d},(e=>{let{data:t,width:r=0,height:o=0}=e;return a().createElement("div",null,a().createElement(fe.vz,ha({width:r,height:o,data:t,onClick:O},x),a().createElement(fe.q3,h),a().createElement(fe.u,{content:a().createElement(na,{name:i}),cursor:a().createElement(fa,{isClickable:!!O})}),a().createElement(fe.$Q,ha({},y,{shape:a().createElement(ma,{className:w})})),a().createElement(fe.B2,b,a().createElement(fe.__,ha({},E,{value:n}))),a().createElement(fe.Kc,g,a().createElement(fe.__,ha({},v,{value:l})))))})))},ga=e=>{let{config:t}=e;const{data:r,state:l,reload:n}=dt(Ul),{chartData:i,infoPanelData:o}=r,c=yt(Gl),s=a().createElement(Ee,{title:f().text("Length statistics"),data:[{value:f().text("Measures the string length of values")}],DataRenderer:rt});return a().createElement(ya,{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 ba=r(94175);const va=(0,ye.Z)({icon:{width:"20px",height:"20px",borderRadius:"4px",fontSize:"14px",marginRight:"8px"},text:e=>{let{color:t}=e;return{backgroundColor:t}}}),Ea=e=>{let{chartData:t}=e;const{group:r,label:l}=t,n=va({color:(0,c.kW2)(r)});return a().createElement(a().Fragment,null,a().createElement(ba.Z,{sourceType:r,className:n.icon,classes:{textRoot:n.text}}),l)};function xa(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){Oa(e,t,r[t])}))}return e}function Oa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wa=e=>{let{config:t}=e;const r=(0,n.useSelector)(y.ZP.selectors.getMetadata),{data:l,state:i,reload:o}=dt((e=>(0,u.pipe)(Ml("crosswalkAnalysis"),(0,u.applySpec)({chartData:(0,u.pipe)((0,u.prop)("chartData"),W(e)),infoPanelData:(0,u.pipe)((0,u.prop)("infoPanelData"),(0,u.map)((e=>(0,u.assoc)("value",(0,c.k7L)(e.value,999),e))))})))(r)),{chartData:s}=l,p=yt($l),d=a().createElement(Ee,{title:f().text("Source system analysis"),data:[{value:f().text("Distribution of source systems contributing to profiles")}],DataRenderer:rt}),m=[{id:"label",label:f().text("Source system"),secondLabel:`(${s.length})`,width:.4,sortable:!0,labelRenderer:Ea},{id:"value",label:f().text("Profiles"),width:.6,sortable:!0}];return a().createElement(dl,{config:xa({},t),data:s,title:t.title,infoTooltipTitle:d,onItemClick:p,state:i,onRefresh:o,customComparator:Tr,columnsOptions:m})},Ta=e=>{let{config:t}=e;const r=(0,l.useContext)(T).type,{data:n,state:i,reload:o}=dt((e=>(0,u.pipe)(Ml("valueDistribution"),Fl(e)))(r)),{chartData:c,infoPanelData:s}=n,p=yt(Xl(r));return a().createElement(ya,{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})},Na=e=>{let{config:t}=e;const{data:r,state:l,reload:n}=dt(zl),{chartData:i,infoPanelData:o}=r,c=yt(Yl);return a().createElement(ya,{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})},Sa=e=>{let{config:t}=e;const{data:r,state:l,reload:n}=dt(Vl),{chartData:i,infoPanelData:o}=r,c=yt(Wl);return a().createElement(ya,{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})},Ra=e=>{let{config:t}=e;const{data:r,state:l,reload:n}=dt(Hl),{chartData:i,infoPanelData:o}=r,c=yt(Zl);return a().createElement(ya,{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})},Ia=e=>{let{config:t}=e;const r=Tl(),{data:l,state:n,reload:i}=dt(Lr),o=yt(Br),c=a().createElement(Ee,{title:f().text("Pattern analysis"),data:[]}),s=[{id:"label",label:f().text("Value"),secondLabel:Fr(l),width:.4,cellClassName:r.monoFontCell},{id:"value",label:f().text("Count"),width:.6}];return a().createElement(dl,{config:t,data:l,title:t.title,infoTooltipTitle:c,onItemClick:o,state:n,onRefresh:i,columnsOptions:s})};function Aa(){return Aa=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},Aa.apply(this,arguments)}const Ca=e=>{let{xAxisLabel:t,yAxisLabel:r,data:l,getTooltip:n,getBarOpacity:i,barSelectHandler:o,width:s,height:p,showTopLabel:d=!1,options:f={},onItemClick:m,getBarColor:h,dataReltioId:y}=e;const g=ia(),{cartesianGrid:b,xAxis:v,yAxis:E,labelForX:x,labelForY:O,barChart:w,bar:T}=ua(f),N=(0,u.curry)(((e,t)=>m&&m(e,t.group))),S=m?g.clickable:void 0;return a().createElement("div",{"data-reltio-id":y},a().createElement(fe.vz,Aa({width:s,height:p,data:l},w,{margin:{top:15}}),a().createElement(fe.q3,b),a().createElement(fe.u,{content:n,cursor:null}),(e=>{const t=(0,u.pipe)(u.mergeAll,(0,u.omit)(["label","group"]),u.keys)(e),r=(0,u.curry)(((e,r)=>{let{x:l,y:n,width:i,value:o}=r;return d&&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:N(e),className:S})))})(l),a().createElement(fe.B2,E,a().createElement(fe.__,Aa({},O,{value:r}))),a().createElement(fe.Kc,v,a().createElement(fe.__,Aa({},x,{value:t})))))};function La(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){Da(e,t,r[t])}))}return e}function Da(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Pa={background:"rgba(0, 0, 0, 0.38)",bottom:0,content:'""',height:"3px",left:0,position:"absolute",width:"1px"},ka=(0,ye.Z)({icon:e=>{let{color:t}=e;return{backgroundColor:t,flexShrink:0,fontSize:"14px",height:"12px",margin:" 0 8px 0 16px",width:"12px"}}}),_a=(0,ye.Z)((e=>({headCell:{"&>div":{display:"flex",padding:"0 10px 0 0",justifyContent:e=>e?"flex-end":"flex-start"}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"47px",overflow:"hidden",whiteSpace:"nowrap",marginLeft:e=>e?"16px":0,"&::after":{content:'""',position:"absolute",right:0,top:0,width:"25px",height:"100%",background:e=>e?"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)":"transparent",pointerEvents:"none"}},labelPercantageWrapper:{display:"flex",flexGrow:1,paddingLeft:"16px"},labelWrapper:{minWidth:"90px",position:"relative","& div":{textAlign:"right"}},percentLabel:{"&:first-child":{flexGrow:1},color:e.palette.text.secondary,fontSize:"12px"},percentsWrapper:{"&:after":La({},Pa,{left:"initial",right:0}),"&:before":Pa,alignItems:"flex-end",display:"flex",lineHeight:"24px",marginLeft:"32px",position:"relative",width:"100%"}}))),ja=(0,ye.Z)((e=>({cellValue:{alignItems:"center",color:e.palette.text.primary,display:"flex",fontSize:"13px",fontWeight:"normal",height:"100%",lineHeight:"15px",overflow:"hidden",padding:"0 10px 0 0",whiteSpace:"pre",justifyContent:e=>e?"flex-start":"flex-end","&::after":{content:'""',position:"absolute",right:0,top:0,width:"25px",height:"100%",background:e=>e?"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)":"transparent",pointerEvents:"none"}},tooltip:{padding:0}}))),Ma=(0,ye.Z)((e=>({bar:{borderRadius:"0 !important",minHeight:"16px !important",opacity:1,position:"initial !important"},numberCellContainer:{alignItems:"center",display:"flex",flexDirection:"row",height:"100%",padding:"0 10px 0 16px"},numberCellValue:{color:e.palette.text.primary,flexShrink:0,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"90px",textAlign:"right"},colorBarContainer:{"&>span":{display:"block"},"&>span>div":{opacity:1,zIndex:1},boxSizing:"border-box",height:"100%",marginLeft:"32px",padding:"6px 0 6px",position:"relative",width:"100%"}}))),Ba=(0,ye.Z)((e=>({cellBorder:{borderLeft:"none",borderRight:"none!important"},consolidationRateWrapper:{"& .hoveredRow div::after":{background:"none"},"&>div:nth-of-type(2)":{marginBottom:"13px"},display:"flex"},ratePercent:{borderLeft:"1px solid rgba(0, 0, 0, 0.12)",fontWeight:700,lineHeight:"24px",marginLeft:"16px",overflow:"hidden",paddingLeft:"16px",textOverflow:"ellipsis"},tableContainer:{"& .hoveredRow div::after":{background:"none"}},tableWithSelectedRow:{"& .Table__grid__cell_wrapper_EWDDh":{opacity:.12},"& .Table__grid__cell_wrapper_EWDDh.hoveredRow":{opacity:1}},tooltipWrapper:La({},e.tooltip,{padding:"4px 8px"})}))),Fa=(0,ye.Z)({tooltip:{padding:"0!important"}});function Ua(){return Ua=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},Ua.apply(this,arguments)}function za(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){Va(e,t,r[t])}))}return e}function Va(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ha=e=>{let{className:t,headCellData:r,headIndex:l}=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,["className","headCellData","headIndex"]);const i=_a(0===l),[o,s]=r.label.split("|"),u=!!s,d=a().createElement(Vr.C,{value:o},a().createElement("div",{className:i.headLabel},o));return a().createElement("div",{className:p()(i.headCell,t)},a().createElement(Hr.default,Ua({},n,{headCellData:za({},r,{label:u?a().createElement("div",{className:i.labelPercantageWrapper},a().createElement("div",{className:i.labelWrapper},d),a().createElement("div",{className:i.percentsWrapper},a().createElement("span",{className:i.percentLabel},"0"),a().createElement("span",{className:i.percentLabel},(0,c.k7L)(Number(s),999)))):d})})))},Wa=(0,tl.Z)(((e,t)=>{let{onItemClick:r,tooltipData:l}=e,{rowValue:{group:a,clickData:n}}=t;return{onClick:r&&(()=>{r(n||a)}),tooltipData:l}}))((e=>{let{value:t="",columnData:r,tooltipData:l,columnIndex:n,rowValue:i,onClick:o}=e;const s=0===n,{labelRenderer:d}=r,f=ja(s),m=(0,el.d)(o),h=Fa(),y=!!d,g=(0,u.is)(Number,t)?(0,c.k7L)(t,999):c.P6Y.strings.removeLineBreaks(t);return a().createElement(He.Tooltip,{title:l,classes:{tooltip:h.tooltip}},a().createElement("div",{className:p()(f.cellValue,m),onClick:o},y?a().createElement(d,{chartData:i}):g))})),Ya=(0,tl.Z)(((e,t)=>{let{onItemClick:r,tooltipData:l}=e,{rowValue:{group:a,clickData:n}}=t;return{onClick:r&&(()=>{r(n||a)}),tooltipData:l}}))((e=>{let{value:t,columnData:{maxValue:r},tooltipData:l,onClick:n}=e;const i=Ma(),o=(0,el.d)(n),s=0===t?"0":`${(0,c.k7L)(t,999)}`,d=Fa();return a().createElement(He.Tooltip,{title:l,classes:d},a().createElement("div",{className:p()(i.numberCellContainer,o),onClick:n},a().createElement(He.Typography,{className:i.numberCellValue},s),!(0,u.isNil)(r)&&a().createElement("div",{className:i.colorBarContainer},a().createElement(ll.Z,{width:t,maxWidth:r,className:i.bar}))))})),Za=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)},Ga=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)),p=a().createElement(a().Fragment,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")})`));return a().createElement(Vr.C,{value:p},a().createElement(He.Typography,null,p))},$a=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"},ta(Number(l))):null},qa=e=>"Reltio profiles"===e?"#0072CE":(0,c.kW2)(e),Qa=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.")}]}),Ka=e=>{let{config:t}=e;const r=(0,n.useSelector)(y.ZP.selectors.getMetadata),i=Ba(),{title:o}=t,[s,d]=(0,l.useState)(),{data:m,state:h,reload:g}=dt(Pl),{data:b}=dt((e=>(0,u.pipe)((0,u.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,u.sort)((0,u.descend)((0,u.prop)("value")))))(r)),{data:v}=(0,l.useContext)(w),E=yt(Jl),x=(0,l.useMemo)((()=>{const e=(0,u.pick)(["group","label"],m[0]);for(let t=b.length-1;t>=0;t--)e[b[t].group]=m[0][b[t].group];return[e,m[1]]}),[b,m]),O=(0,l.useMemo)((()=>Math.max(...(0,u.pluck)("value",b))),[b]),T=(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(v.consolidationRate.totalEntities)}]:[{label:f().text("Source system"),value:(0,c.tH7)(r,s.key)},{label:f().text("Source profiles"),value:f().number(v.consolidationRate.totalCrosswalksBySource[s.key])},{label:f().text("Reltio profiles"),value:f().number(v.consolidationRate.totalEntitiesBySource[s.key])}],a().createElement("div",{className:i.tooltipWrapper},a().createElement(Ee,{data:l}))}),[s,v,r]),N=(0,l.useCallback)((e=>()=>{if(e){const t=b.findIndex((0,u.propEq)("group",e));d({rowIndex:t,key:e})}else d(null)}),[d,b]),S=(0,l.useCallback)((e=>{if((0,u.isNil)(e))d(null);else{var t;const r=null===(t=b[e])||void 0===t?void 0:t.group;d({rowIndex:e,key:r})}}),[d,b]),R=e=>{if(!(0,u.isNil)(e)){var t;const r=null===(t=b[e])||void 0===t?void 0:t.group;E(r)}},I=(0,l.useMemo)((()=>({onItemClick:R,tooltipData:T({active:!0})})),[R,T]);return a().createElement(tt,{config:t},a().createElement(Be,{title:o,infoTooltipTitle:Qa},v.consolidationRate&&a().createElement(Ga,{data:v})),a().createElement(Xe,{data:b,loadingState:h,onRefresh:g},(e=>{let{height:t=0,width:r=0}=e;const l=[{id:"label",label:`${f().text("Source system")} (${f().number(b.length)})`,resizable:!1,labelRenderer:Za,headCellRenderer:Ha,rowCellValueRenderer:Wa,initialWidth:.26*r},{id:"value",resizable:!1,label:`${f().text("Source profiles")}|${O}`,headCellRenderer:Ha,rowCellValueRenderer:Ya,initialWidth:.74*r,maxValue:O}];return a().createElement("div",{className:p()(i.consolidationRateWrapper,{[i.tableWithSelectedRow]:!(0,u.isNil)(null==s?void 0:s.rowIndex)&&-1!==(null==s?void 0:s.rowIndex)})},a().createElement(Ca,{yAxisLabel:f().text("No. of profiles"),data:x,getTooltip:T,getBarOpacity:ea(s),getBarColor:qa,barSelectHandler:N,width:256,height:t,options:{showCategories:!0,maxBarSize:40,yTickRenderer:$a,tickCount:8},onItemClick:E,dataReltioId:"reltio-dq-dashboard-consolidation-rate-barchart",showTopLabel:!0}),a().createElement(zr.Z,{columnsData:l,rowsData:b,headRowHeight:48,getRowCellHeight:()=>28,classes:{tableContainer:p()(i.tableContainer,{[i.tableWithSelectedRow]:!(0,u.isNil)(null==s?void 0:s.rowIndex)&&-1!==(null==s?void 0:s.rowIndex)}),cellBorder:i.cellBorder},defaultColumnWidth:50,defaultColumnMinWidth:50,context:I,width:r-256,height:t,hoverRowIndex:null==s?void 0:s.rowIndex,onRowClick:R,onRowHover:S,hoverStateEnabled:!0}))})))};function Xa(){return Xa=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},Xa.apply(this,arguments)}class Ja{}Ja.getComponent=e=>{let{type:t,config:r,isFullscreen:l,onToggleFullscreen:n}=e;const i={config:r,isFullscreen:l,onToggleFullscreen:n};switch(t){case v.FILL_RATE:return a().createElement(gt,i);case v.UNIQUENESS:return a().createElement(Tt,i);case v.SUMMARY:return a().createElement(mr,i);case v.DATA_VALIDATION:return a().createElement(wl,i);case v.FREQUENCY:return a().createElement(Nl,i);case v.LENGTH_STATISTIC:return a().createElement(ga,i);case v.CROSSWALK_ANALYSIS:return a().createElement(wa,i);case v.VALUE_DISTRIBUTION:return a().createElement(Ta,i);case v.MONTH_DISTRIBUTION:return a().createElement(Na,i);case v.DAY_OF_WEEK_DISTRIBUTION:return a().createElement(Sa,i);case v.DAY_OF_MONTH_DISTRIBUTION:return a().createElement(Ra,i);case v.PATTERN:return a().createElement(Ia,i);case v.CONSOLIDATION_RATE:return a().createElement(Ka,i);default:return a().createElement(Er,Xa({},i,{errorData:{message:f().text("Chart isn't supported for this data type")}}))}};const en=Ja,tn=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},en.getComponent({type:p,config:s,onToggleFullscreen:l,isFullscreen:n}),o)},rn=(0,ye.Z)({root:{overflow:"auto",backgroundColor:"#EEEEEE",height:"100%",flexGrow:1,padding:"0 4px",boxSizing:"border-box"}}),ln=(0,u.map)((0,u.assoc)("isStatic",!0)),an={cols:4,rowHeight:10,margin:[12,12]},nn=(0,l.memo)((e=>{let{views:t,layout:r,layoutOptions:n=an}=e;const i=rn(),o=(0,l.useMemo)((()=>ln(r)),[r]);return a().createElement("div",{className:i.root},a().createElement(de.Z,{LayoutItem:tn,views:t,layout:o,layoutOptions:n}))})),on=e=>{let{dataLevel:t,views:r,layout:l,isSliding:n=!1}=e;return(t===c.yn8.ATTRIBUTE_TYPE||n)&&a().createElement(ue.Provider,{value:c.yn8.ATTRIBUTE_TYPE},a().createElement(nn,{views:r,layout:l}))};var cn=r(15762);const sn=(0,ye.Z)((e=>({breadcrumb:{fontSize:"16px",color:e.palette.text.primary},active:{color:"rgba(0, 0, 102, 1)"},clickable:{cursor:"pointer"}}))),pn=e=>{let{dataLevel:t,detailedAttributeType:r,onChange:l}=e;const n=sn();return a().createElement(He.Breadcrumbs,{separator:a().createElement(cn.Z,{fontSize:"small"}),"aria-label":"breadcrumb"},[a().createElement(He.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(He.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 un=r(50166),dn=r(83543),fn=r(98989),mn=r(31269),hn=r(22385);const yn=(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"}}),gn=e=>{let{details:t,classes:r,fillRateData:l,fillRateState:n}=e;const i=yn(),o=(0,u.prop)("iconRoot",r);return a().createElement("div",{className:i.root},Object.entries(t||{}).reverse().map((e=>{let[t,r]=e,s=Bt.NORMAL;if(t===q.REQUIRED){const e=n===R.o.LOADING,t=0===(null==(d=l)||null===(f=d.find((0,u.propEq)("group",c.s9T.MISSING)))||void 0===f?void 0:f.value);e&&(s=Bt.LOADING),e||t||(s=Bt.BAD_QUALITY)}var d,f;return a().createElement("div",{key:t,className:p()(r&&(o||i.activeIcon),i.detailIcon)},r&&a().createElement(He.Tooltip,{title:oe(t)},a().createElement("span",null,a().createElement(Ft,{detailType:t,variant:s,size:Mt.SMALL}))))})))},bn=(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 vn(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){En(e,t,r[t])}))}return e}function En(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=(0,he.Z)((e=>{let{data:t}=e;const r=bn(),l=at(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)} ${j(i)}`}}));return M(t)?a().createElement("div",{className:r.bar},a().createElement("div",{className:p()(r.barPart,r.inactiveBarPart)})):a().createElement(He.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:vn({},H(e),{background:l[t]})})))))})),On="rgba(0, 114, 206, 0.12)",wn=(0,ye.Z)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:On,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:On}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"}}),Tn=e=>{let{level:t,margin:r,hasChildren:l,isLastLevelItem:n,isCollapsed:i}=e;const o=wn(),c=!i&&(t>0||l);return a().createElement("div",{className:o.linesWrapper},((e,t)=>t>0&&e?(0,u.range)(1,t+1):t>1?(0,u.range)(1,t):[])(l,t).map((e=>a().createElement(mn.Z,{key:e,margin:r,level:e,className:o.line}))),c&&a().createElement(mn.Z,{margin:r,level:t,className:p()(o.line,!l&&t>0&&o.horizontalLine,l&&o.parentLine,n&&o.lastLevel)}))},Nn=(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"}}),Sn=e=>{let{detailedAttributeType:t,fillRateData:r,fillRateState:l,style:n,level:i,selected:o=!1,onClick:c,onCollapse:s=Ur.ZT,isCollapsed:d=!1,isLastLevelItem:f=!1,isLoading:m}=e;const h=Nn(),y=!!t.children,g=!!r,b=$(t),v=d?fn.Z:dn.Z,E=o?h.detailsIconSelected:h.detailsIcon;return a().createElement(He.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(pr,{type:t.type})),a().createElement("div",{className:h.attribute},a().createElement(Tn,{level:i,margin:20,hasChildren:y,isLastLevelItem:f,isCollapsed:d}),a().createElement(mn.Z,{margin:20,level:i,className:h.marginWrapper},a().createElement(Vr.C,{value:b},a().createElement("div",{className:p()(h.attributeLabel,o&&h.selectedAttributeLabel,y&&h.parentAttributeLabel)},y&&a().createElement(hn.Z,{size:"XXS",icon:v,onClick:s,className:h.collapseIcon}),b))),!m&&g&&!y&&a().createElement("div",{className:h.fillRate},a().createElement(xn,{data:r})),m&&!y&&a().createElement("div",{className:h.fillRateLineLoader})),m?a().createElement("div",{className:h.iconsLoaderWrapper},(0,u.times)((e=>a().createElement("div",{className:h.iconLoaderWrapper,key:`unloadedIcon-${e}`},a().createElement("div",{className:p()(h.iconLoader,{[h.selectedIconLoader]:o})}))),5)):a().createElement(gn,{details:t.details,classes:{iconRoot:E},fillRateData:r,fillRateState:l})))},Rn=(0,u.propOr)({},"attributeItem"),In=(0,u.pipe)((0,u.find)((0,u.pipe)(Rn,(0,u.either)(c.YkM,c.Or$),u.not)),Rn),An=e=>(0,u.pipe)(Rn,(0,u.propEq)("fieldName",e)),Cn=e=>(0,u.filter)((0,u.propEq)("group",e));let Ln;!function(e){e.SHOW_EMPTY="showEmpty"}(Ln||(Ln={}));const Dn=(0,u.curry)(((e,t,r)=>{const l=(0,u.head)(Cn("emptiness")(e));return(null==l?void 0:l.value)===Ln.SHOW_EMPTY?r:r.filter((0,u.pipe)(Rn,ee(t)))})),Pn=e=>{const t=Object.values(q);return e.filter((0,u.pipe)((0,u.prop)("value"),(0,u.includes)(u.__,t)))},kn=(0,u.pipe)(Rn,(0,u.prop)("fieldName")),_n=(0,u.curry)(((e,t)=>{const r=(0,u.pipe)(Cn("details"),Pn)(e),l=(e=>(0,u.pipe)((0,u.filter)((0,u.pipe)(Rn,(0,u.both)((0,u.prop)("children"),X(e)))),(0,u.map)(kn)))(r)(t);return t.filter((e=>{let{attributeItem:t}=e;return l.some((e=>t.fieldName.startsWith(e)))||J(r,t)}))})),jn=(0,u.pipe)((0,u.map)(Rn),(0,u.pluck)("fieldName"),u.identity);function Mn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bn=r(36444),Fn=r(15115);const Un=(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"}}))),zn=e=>{let{isSelected:t,data:r,onChange:l}=e;const{count:n,label:i,value:o}=r,s=!(0,u.isNil)(n),p=Un(!s||n>0);return a().createElement(He.MenuItem,{className:p.option,component:"div",onClick:()=>l(r),"data-reltio-id":`reltio-dq-dashboard-option-${r.value}`},a().createElement(He.Checkbox,{color:"primary",checked:t}),a().createElement("span",{className:p.typeIconWrapper},a().createElement(Ft,{detailType:o})),a().createElement(Vr.C,{value:i},a().createElement("div",{className:p.optionLabel},i)),s&&a().createElement("span",{className:p.counter},(0,c.k7L)(n,999)))},Vn=(0,u.curry)(((e,t)=>!!t.find((0,u.propEq)("value",e.value)))),Hn=(0,u.curry)(((e,t)=>{const r=t.findIndex((0,u.propEq)("value",e.value));return-1!==r?(0,u.remove)(r,1,t):t})),Wn=e=>{let{defaultFilterOptions:t=[],filterOptions:r,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=Un(),[s,d]=(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,u.pipe)((0,u.pluck)("options"),u.flatten)(t);return e.filter((e=>{let{value:t}=e;return r.find((0,u.propEq)("value",t))}))})(t,r))}),[t,r]);const b=()=>d(null),v=e=>{h((0,u.ifElse)(Vn(e),Hn(e),(0,u.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(Fn.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=>d(e.currentTarget)},a().createElement(Bn.Z,{className:w})),a().createElement(He.Popover,{open:!!s,anchorEl:s,onClose:()=>{h((0,u.always)(t)),b()},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(He.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(He.Typography,{variant:"caption",className:c.groupLabel},t),r.map((e=>{const t=Vn(e,m);return a().createElement(zn,{key:e.label,data:e,isSelected:t,onChange:v})})))})))),a().createElement("div",{className:c.actionsContainer},a().createElement(He.Button,{onClick:()=>{h([])},className:c.clearAllButton,disabled:!E,"data-reltio-id":"reltio-dq-dashboard-filter-clear-all-button"},f().text("Clear all")),a().createElement(He.Button,{onClick:()=>{h(t),b()},"data-reltio-id":"reltio-dq-dashboard-filter-cancel-button"},f().text("Cancel")),a().createElement(He.Button,{color:"primary",onClick:()=>{o(m),b()},"data-reltio-id":"reltio-dq-dashboard-filter-apply-button"},f().text("Apply"))))))},Yn=(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)"}}}))),Zn=e=>{var t,r;let{entityType:i,onAttributesListChange:o,defaultFieldName:s,defaultFilterOptions:d,defaultFilterText:m,disableAttributeSelection:g}=e;const b=Yn(),v=(0,l.useRef)(),E=(0,l.useRef)(),[x,O]=(0,l.useState)(m||""),[T,S]=(0,l.useState)([]),[A,C]=(0,l.useState)(d||[]),[L,D]=(0,l.useState)({fieldName:s}),[P,k]=(0,l.useState)({}),{data:_}=(0,l.useContext)(w),j=null===(t=(0,l.useContext)(N))||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,u.pipe)(c.WN0,le(e),ce))(t)(i,e)),[i,e,t]),[s,p]=(0,l.useState)([]),d=e.uri,f=(0,l.useMemo)((()=>(0,c.qhs)(i,d)),[i,d]),m=null===(r=(0,l.useContext)(N))||void 0===r||null===(a=r.dvfs)||void 0===a?void 0:a.data;return(0,l.useEffect)((()=>{p([]),m&&p(o.map((0,u.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){Mn(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=jn(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(ot).then((e=>{i(e),a(R.o.LOADED)})).catch(s)}),[o,a,i,t]),u=(0,l.useCallback)((()=>{try{p()}catch(e){s(e)}}),[p]);return(0,l.useEffect)((()=>{u()}),[u]),{data:n,state:r,reload:u}})(i.uri,F);(0,l.useEffect)((()=>k(U)),[U]),(0,l.useEffect)((()=>{const e=(null==_?void 0:_.fillRate)&&it(null==_?void 0:_.fillRate),t=P[L.fieldName];k((r=>!e||(0,u.equals)(t,e)?r:(0,u.assoc)(L.fieldName,e,r)))}),[null==_?void 0:_.fillRate]);const V=z===R.o.LOADING||j===R.o.LOADING||z===R.o.INIT||j===R.o.INIT,{filteredItems:H,filterOptions:W}=(0,l.useMemo)((()=>{const e=z===R.o.INIT||z===R.o.LOADING?M:Dn(A,P,M),t=(e=>{const t=Object.values(q).map((e=>({value:e,label:oe(e),group:"details"}))).map((t=>(0,u.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:_n(A,e),filterOptions:[{label:"",options:[{label:f().text("Show attributes with no data"),value:Ln.SHOW_EMPTY,group:"emptiness"}]},t]}}),[M,A,P,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,u.pipe)((0,u.find)(An(t)),(0,u.propOr)(null,"attributeItem"))(e))(H,L.fieldName)||In(H);return(0,u.isEmpty)(e)||g?null:e};(0,l.useEffect)((()=>{var e,t,r;if(g)return void(null===(r=v.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,u.findIndex)(An(t))(e))(H,L.fieldName);l>-1?null===(e=v.current)||void 0===e||e.scrollToItem(l,"center"):null===(t=v.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])(P,n),s=r>0&&i>(0,u.pathOr)(-1,[r+1,"level"],Y);return a().createElement(Sn,{fillRateData:c,fillRateState:z,isLoading:V,style:l,detailedAttributeType:n,level:i,onClick:G,selected:o,onCollapse:(p=n.fieldName,()=>{S((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:b.root},a().createElement("div",{className:b.title},f().text("Attributes"),a().createElement("span",{className:b.itemCount},`${Z} ${te=Z,1===te?f().text("item"):f().text("items")}`),a().createElement(Wn,{defaultFilterText:m,defaultFilterOptions:A,onChangeFilterOptions:C,onChangeFilterText:O,filterOptions:W})),a().createElement("div",{ref:E,className:p()(b.listWrapper,{[b.loadingAnimation]:V}),"data-reltio-id":"reltio-dq-dashboard-attributes-list"},ee?a().createElement(Fe.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return a().createElement(un.FixedSizeList,{ref:v,itemCount:J,width:"100%",height:t,itemData:Y,itemSize:48,onScroll:Q},K)})):!V&&a().createElement(Qe,{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},Gn=(0,ye.Z)({root:{display:"flex",alignItems:"center",width:"100%"},title:{flexShrink:0,paddingLeft:"20px"},content:{overflow:"hidden",flexGrow:1}}),$n=e=>{let{title:t,children:r}=e;const l=Gn();return a().createElement("div",{className:l.root},a().createElement(He.Typography,{variant:"h6",className:l.title},t),a().createElement("div",{className:l.content},r))};var qn=r(51209);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=>({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":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"})}},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"}}))),ei=e=>{let{showEntityLevel:t,dataLevel:r,views:l,layout:n,entityType:i,isSliding:o=!1}=e;const s=Jn({transitionTimeout:.3,attributeListWidth:360,entityLevelBarWidth:76}),u=`${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(qn.Z,null),a().createElement("span",{className:s.expandButtonText},u)),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(ue.Provider,{value:c.yn8.ENTITY_TYPE},a().createElement(nn,{views:l,layout:n}))))},ti=(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}}))),ri=e=>{let{entityTypes:t,entityTypeUri:r,getEntityCount:l,onChange:n}=e;const i=ti(),o=(0,u.pipe)((0,u.map)((e=>(0,u.assoc)("entityCount",l(e.uri))(e))),(0,u.sortWith)([(e,t)=>{let{entityCount:r}=e,{entityCount:l}=t;return r===l||r>0&&l>0?0:0===r?1:-1},(0,u.ascend)((0,u.prop)("label"))]),(0,u.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(He.Select,{variant:"outlined",MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null,classes:{list:i.menu}},value:r,onChange:(0,u.pipe)(Ur.NA,n),renderValue:e=>{const{label:t,entityCount:r}=(0,u.find)((0,u.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(He.MenuItem,{key:r,value:r,classes:{root:i.optionRoot},"data-reltio-id":`reltio-dq-dashboard-entity-type-selector-option-${t}`},a().createElement(Vr.C,{value:l},a().createElement(He.Typography,{className:i.optionEntityLabel},l)),s(n))})))};function li(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){ai(e,t,r[t])}))}return e}function ai(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ni={position:"absolute",content:'""',top:0,left:0,right:0,zIndex:1},ii=(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":li({},ni,{top:"8px",height:"4px",background:"linear-gradient(180deg, #EEEEEE 0%, rgba(238, 238, 238, 0) 100%)",zIndex:1}),"&:after":li({},ni,{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 oi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ci=(0,u.path)([0,"uri"]),si=e=>{var t,r,i,o,s;let{config:d,saveState:g,getSavedState:b}=e;const A=ii({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,k]=(0,l.useState)(),[_,j]=(0,l.useState)(!1),M=D&&P?(0,c.nt9)({entityTypes:D},P):null,B=L(D),[F,H]=(0,l.useState)(null),{isLoaded:W,savedState:Y}=(0,m.a)(b),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),d=(0,n.useSelector)(y.ZP.selectors.getTenant);return(0,l.useEffect)((()=>{o((0,c.JUW)({servicesPath:s,tenant:d,environment:p})).then((e=>{var t;const l=null==e||null===(t=e.data)||void 0===t?void 0:t.apps.find((0,u.propEq)("name","Console")).uri;r(l)})).catch((()=>r(null)))}),[p,d,s]),(0,l.useEffect)((()=>{const r=t&&null!=e&&e.uri?(0,u.pipe)((0,u.split)("?"),(0,u.insert)(1,`datamodeler/entityDetails/${(0,c.nIW)(e.uri)}/validation?`),(0,u.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),u=(0,n.useSelector)(y.ZP.selectors.getDVFPath),d=(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)},b=(0,l.useCallback)((()=>{if(m)return e&&f?(s(void 0),i(R.o.LOADING),d((0,c.HaQ)({dvfPath:u,tenant:p,entityTypeUri:e,env:f})).then(g).catch(h)):void 0;h({errorCode:c.Xt7.ACCESS_DENIED})}),[u,p,e,f]);return(0,l.useEffect)((()=>{b()}),[b]),(0,l.useMemo)((()=>({data:t,state:a,reload:b,errorCode:o})),[t,a,b,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),k(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){oi(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=d.layoutsByDataLevel)||void 0===t?void 0:t[c.yn8.ENTITY_TYPE])||O[c.yn8.ENTITY_TYPE],te=null===(r=d.layoutsByDataLevel)||void 0===r?void 0:r[c.yn8.ATTRIBUTE_TYPE],re=(0,l.useMemo)((()=>((e,t)=>{const r=U(t),l=(0,u.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,u.uniqBy)((0,u.prop)("id"),(0,u.concat)((null==e?void 0:e[c.yn8.ENTITY_TYPE])||[],x[c.yn8.ENTITY_TYPE]||[])),l=[v.SUMMARY,v.CONSOLIDATION_RATE,v.DATA_VALIDATION];return z({views:r,supportedViews:l,layout:t})})(d.viewsByDataLevel,ee):[]),[d.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,u.uniqBy)((0,u.prop)("id"),(0,u.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[v.SUMMARY,v.CROSSWALK_ANALYSIS,v.DATA_VALIDATION,v.FILL_RATE,v.FREQUENCY,v.UNIQUENESS,v.VALUE_DISTRIBUTION];case E.BOOLEAN:return[v.SUMMARY,v.CROSSWALK_ANALYSIS,v.DATA_VALIDATION,v.FILL_RATE,v.FREQUENCY];case E.STRING:return[v.LENGTH_STATISTIC,v.SUMMARY,v.CROSSWALK_ANALYSIS,v.DATA_VALIDATION,v.FILL_RATE,v.FREQUENCY,v.UNIQUENESS];case E.DATE:return[v.SUMMARY,v.CROSSWALK_ANALYSIS,v.DATA_VALIDATION,v.FILL_RATE,v.FREQUENCY,v.UNIQUENESS,v.VALUE_DISTRIBUTION,v.MONTH_DISTRIBUTION,v.DAY_OF_MONTH_DISTRIBUTION,v.DAY_OF_WEEK_DISTRIBUTION];case E.SSN:return[v.SUMMARY,v.CROSSWALK_ANALYSIS,v.DATA_VALIDATION,v.FILL_RATE,v.FREQUENCY,v.UNIQUENESS,v.PATTERN];case E.UNKNOWN:return[v.SUMMARY,v.CROSSWALK_ANALYSIS,v.DATA_VALIDATION,v.FILL_RATE,v.FREQUENCY,v.UNIQUENESS,v.LENGTH_STATISTIC];default:return[]}})(U(t));return z({views:l,supportedViews:a,layout:r})})(d.viewsByDataLevel,null==F?void 0:F.type,re)),[d.viewsByDataLevel,null==F?void 0:F.type,re]),oe=(0,l.useMemo)((()=>(0,u.pipe)(V,(e=>se(F)?(0,u.reject)((0,u.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&&(k(Y.entityTypeUri||ci(D)),$(ee?Y.dataLevel||c.yn8.ENTITY_TYPE:c.yn8.ATTRIBUTE_TYPE))}),[W]),(0,l.useEffect)((()=>{j(!0),G===c.yn8.ENTITY_TYPE&&setTimeout((()=>{H(null)}),300),setTimeout((()=>{j(!1)}),300)}),[G]);const ue=M&&Z&&W&&!!B(P),de=!!ee;return a().createElement("div",{className:A.perspectiveView},a().createElement($n,{title:f().text("Data Quality")},M&&a().createElement("div",{className:A.navigationWrapper},a().createElement(ri,{entityTypes:D,entityTypeUri:M.uri,getEntityCount:B,onChange:J}),a().createElement(pn,{dataLevel:G,detailedAttributeType:F,onChange:$}))),a().createElement("div",{className:p()(A.contentWrapper,{[A.contentWrapperEntityLevel]:G===c.yn8.ENTITY_TYPE,[A.contentWrapperOneSlide]:!ue||!de})},ue&&a().createElement("div",{className:p()(A.content,{[A.contentWithEntityLevel]:de})},a().createElement(N.Provider,{value:K},a().createElement(S.Provider,{value:M},de&&a().createElement(w.Provider,{value:ne},a().createElement(ei,{showEntityLevel:()=>{$(c.yn8.ENTITY_TYPE)},dataLevel:G,views:le,layout:ee,entityType:M,isSliding:_})),a().createElement(w.Provider,{value:ce},a().createElement(Zn,{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,u.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]:de})},F&&a().createElement(T.Provider,{value:F},a().createElement(on,{dataLevel:G,views:ie,layout:re,isSliding:_}))))))),!Z&&a().createElement(Ge,{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(P)&&Z&&a().createElement(Qe,{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 pi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ui=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){pi(e,t,r[t])}))}return e}({},c.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}}),di=(0,i.Z)(ui),fi=(0,o.createGenerateClassName)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0}),mi=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:di},a().createElement(o.StylesProvider,{generateClassName:fi},a().createElement(si,{config:r,saveState:i,getSavedState:p}))))}}}]);