@reltio/remotes 1.4.1186 → 1.4.1187
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/5008.js +2 -0
- package/5008.js.map +1 -0
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
- package/remoteEntry.js.map +1 -1
- package/6303.js +0 -2
- package/6303.js.map +0 -1
package/6303.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[6303],{97991:(e,t,r)=>{r.d(t,{Z:()=>p});var a,l=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 a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}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"}(a||(a={}));const p=e=>{let{className:t,icon:r,avatarText:n,rootClasses:p}=e,d=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["className","icon","avatarText","rootClasses"]);const[u,f]=(0,o.useState)(null);(0,o.useEffect)((()=>{f(r?a.ICON_MODE:a.TEXT_MODE)}),[r,n]);const m=()=>{f(a.ERROR_MODE)};switch(u){case a.ICON_MODE:return c().createElement(l.Avatar,s({className:i()(t,null==p?void 0:p.iconRoot),src:r,onError:m},d));case a.TEXT_MODE:case a.ERROR_MODE:return c().createElement(l.Avatar,s({className:i()(t,null==p?void 0:p.textRoot)},d),n);default:return null}}},10237:(e,t,r)=>{r.d(t,{Z:()=>f});var a=r(27556),l=r(13980),n=r.n(l),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]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){s(e,t,r[t])}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const p=(0,r(79692).Z)((e=>({"basic-view__paper":c({display:"flex",flexDirection:"column"},e.basicView)})));function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},d.apply(this,arguments)}const u=(0,i.forwardRef)(((e,t)=>{let{children:r,className:l}=e,n=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["children","className"]);const i=p();return o().createElement(a.Z,d({ref:t,className:l,classes:{root:i["basic-view__paper"]}},n),r)}));u.displayName="BasicView",u.propTypes={children:n().node,className:n().string};const f=u},4094:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(24328),l=r.n(a),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 a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},c.apply(this,arguments)}const s=e=>{let{children:t,className:r}=e,a=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["children","className"]);const n=o();return l().createElement("div",c({className:i()(n["basic-view-content"],r)},a),t)}},92778:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(24328),l=r.n(a),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 a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},c.apply(this,arguments)}const s=e=>{let{title:t,children:r=null,classes:a={}}=e,s=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["title","children","classes"]);const p=o();return l().createElement(n.Z,c({className:a.root,classes:{root:p.toolbar}},s),l().createElement(i.Typography,{className:a.title,classes:{root:p.title},variant:"h6"},t),r)}},43290:(e,t,r)=>{r.d(t,{Z:()=>p});var a=r(24328),l=r.n(a),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,a.useCallback)((e=>(n?100*e/n:0)+"%"),[n]);return r?l().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 a=r(24328),l=r.n(a);class n extends l().Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){this.setState({error:e}),console.error(e)}render(){const{children:e,error:t}=this.props;return this.state.error?t:e}}},75512:(e,t,r)=>{r.d(t,{Z:()=>p});var a=r(13980),l=r.n(a),n=r(24328),i=r.n(n),o=r(44443);const c=()=>i().createElement("div",{style:{display:"none"}}),s=e=>{let{widthToHide:t,children:r}=e;return i().createElement(o.Z,{handleWidth:!0,render:e=>{let{width:a}=e;return a>t?i().createElement(i().Fragment,null,r):i().createElement(c,null)}})};s.propTypes={children:l().node,widthToHide:l().number.isRequired};const p=s},67268:(e,t,r)=>{r.d(t,{Z:()=>R});var a=r(13980),l=r.n(a),n=r(24328),i=r.n(n),o=r(66244),c=r.n(o),s=r(44443),p=r(17440),d=r(71153),u=r.n(d);function f(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}const m=e=>{let{x:t,y:r,width:a,height:l,id:n,minWidth:i,minHeight:o,maxWidth:c,maxHeight:s,isStatic:p}=e;return{x:t,y:r,w:a,h:l,minW:i,minH:o,maxW:c,maxH:s,i:n,static:p}},h=e=>{let{x:t,y:r,w:a,h:l,maxW:n,minW:i,minH:o,maxH:c,i:s}=e;return{x:t,y:r,width:a,height:l,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(81667);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 a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},w.apply(this,arguments)}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const S=e=>{let{views:t,layout:r,layoutOptions:a,onLayoutChanged:l,draggableHandle:o,LayoutItem:d,onRemove:f,onDrop:b,droppingItem:E,isDroppable:x,classes:S}=e;const R=(0,n.useRef)(),N=O(),[I,A]=(0,n.useState)(null),[D,C]=(0,n.useState)(0),{cols:L,rowHeight:_,margin:P}=a,j=(0,n.useMemo)((()=>(e=>(e||[]).map(m))(r)),[r]),k=(0,p.pipe)(y,v(["autosizing"],r),l),M=(0,n.useCallback)((e=>A((t=>t?null:e))),[]),U=null!==I,B=(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:a}=t;return Math.ceil((e+r[1])/(a+r[1]))})(e,a);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]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){T(e,t,r[t])}))}return e}({},r,{minHeight:t,maxHeight:t,height:t})}return r}));n&&l(i)}),[r,a,l]);return i().createElement(i().Fragment,null,i().createElement(s.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>C(e)}),i().createElement(c(),{innerRef:R,layout:j,cols:L,draggableHandle:o,autoSize:!0,rowHeight:_,width:D,margin:P,onLayoutChange:k,isResizable:!U,isDraggable:!U,className:u()(N.gridLayout,{[N.gridFullscreen]:U}),onDrop:(e,t,r)=>{b&&b(y(e),h(t),r)},droppingItem:E,isDroppable:x},j.map((e=>{const a=I===e.i,l=(g(r,e.i)||{}).autosizing?{AutosizeComponent:(n=e.i,i().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>{B(t,n)}}))}:{};var n;return i().createElement(d,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:M,onRemove:f,className:u()({fullscreen:a},S.item),isFullscreen:a},l))}))))};S.defaultProps={layoutOptions:{cols:4,rowHeight:30,margin:[15,15]},onConfigChanged:p.identity,onLayoutChanged:p.identity,classes:{}},S.propTypes={views:l().array,layout:l().array,layoutOptions:l().object,onConfigChanged:l().func,onLayoutChanged:l().func,onDrop:l().func,onRemove:l().func,LayoutItem:l().elementType,draggableHandle:l().string,isDroppable:l().bool,droppingItem:l().object,classes:l().shape({item:l().string})};const R=(0,n.memo)(S)},94175:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(59431),l=r(81667),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)(a.ZP.selectors.getMetadata),{uri:p,icon:d}=(0,l.PWK)(s,t),u=(0,l.tH7)(s,p)[0];return i().createElement(c.Z,{className:r,avatarText:u,icon:d?(0,l.vPL)("https://s3.amazonaws.com/reltio.images/api",d):null,variant:"square",rootClasses:n})}},30553:(e,t,r)=>{r.d(t,{Z:()=>c});var a=r(13980),l=r.n(a),n=r(24328),i=r.n(n);const o=e=>{let{height:t,margin:r}=e;return i().createElement("div",{style:{width:"1px",height:`${t}px`,borderLeft:"1px solid rgba(0,0,0,0.38)",margin:`0 ${r}px`,flexShrink:"0"}})};o.propTypes={height:l().number,margin:l().number};const c=o},84900:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(24328),l=r.n(a),n=r(81667),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 a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}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,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(t,["data"]);const p=(0,a.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]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){c(e,t,r[t])}))}return e}({},e,{percent:t[r]})))})(r)),[r]);return l().createElement(e,o({data:p},s))};return t.displayName="WithPercents",t}},99256:(e,t,r)=>{r.d(t,{d:()=>l});const a=(0,r(79692).Z)({clickable:{cursor:"pointer"}}),l=e=>{const t=a();return e?t.clickable:void 0}},2804:(e,t,r)=>{r.d(t,{a:()=>l});var a=r(24328);const l=e=>{const[t,r]=(0,a.useState)(!1),[l,n]=(0,a.useState)({});return(0,a.useEffect)((()=>{e().then((e=>{n(e||{})})).then((e=>r(!0))).catch((e=>r(!0)))}),[]),{isLoaded:t,savedState:l}}},67885:(e,t,r)=>{let a,l;r.d(t,{K:()=>a,o:()=>l}),function(e){e.WITHIN="within",e.AGO="ago",e.BETWEEN="between"}(a||(a={})),function(e){e.INIT="init",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(l||(l={}))},32944:(e,t,r)=>{r.d(t,{Z:()=>o});var a=r(24328),l=r.n(a),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 l().createElement(n.LinearProgress,{color:"secondary",className:e.loader})}},58141:(e,t,r)=>{r.d(t,{Z:()=>c});var a=r(24328),l=r.n(a),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 a=o();return l().createElement(i.H.Provider,{value:t},l().createElement(n.Z,{className:a.view},r))}},92316:(e,t,r)=>{r.d(t,{H:()=>l});var a=r(24328);const l=r.n(a)().createContext(null);l.displayName="DashboardViewIdContext"},6303:(e,t,r)=>{r.r(t),r.d(t,{default:()=>lo});var a=r(24328),l=r.n(a),n=r(52730),i=r(33016),o=r(36138),c=r(81667),s=r(71153),p=r.n(s),d=r(17440),u=r(87918),f=r.n(u),m=r(2804),h=r(21077),y=r(59431);let g;function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v;!function(e){e.STRING="string",e.FLOAT="float",e.INTEGER="integer",e.BOOLEAN="boolean",e.DATE="date",e.SSN="SSN",e.UNKNOWN="unknown"}(g||(g={})),function(e){e.UNSUPPORTED="unsupported",e.SUMMARY="summary",e.MONTH_DISTRIBUTION="monthDistribution",e.DAY_OF_WEEK_DISTRIBUTION="dayOfWeekDistribution",e.DAY_OF_MONTH_DISTRIBUTION="dayOfMonthDistribution",e.RDM_TRANSCODE="rdmTranscode"}(v||(v={}));const E=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){b(e,t,r[t])}))}return e}({},c.N0y,v);let x;!function(e){e.RDM_LOOKUP_EXIST="rdmLookupExist",e.RDM_LOOKUP_NOT_EXIST="rdmLookupNotExist"}(x||(x={}));const O={[c.yn8.ATTRIBUTE_TYPE]:[{id:"FillRateView",type:E.FILL_RATE,title:f().text("Fill rate")},{id:"UniquenessAnalysisView",type:E.UNIQUENESS,title:f().text("Uniqueness analysis")},{id:"SummaryView",type:E.SUMMARY,title:f().text("Summary")},{id:"ValidationView",type:E.DATA_VALIDATION,title:f().text("Profiles with invalid data")},{id:"FrequencyAnalysis",type:E.FREQUENCY,title:f().text("Frequency analysis")},{id:"LengthStatistics",type:E.LENGTH_STATISTIC,title:f().text("Length statistics")},{id:"PatternAnalysis",type:E.PATTERN,title:f().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:E.CROSSWALK_ANALYSIS,title:f().text("Source system analysis")},{id:"MonthDistribution",type:E.MONTH_DISTRIBUTION,title:f().text("Month distribution")},{id:"DayOfWeekDistribution",type:E.DAY_OF_WEEK_DISTRIBUTION,title:f().text("Day of week distribution")},{id:"DayOfMonthDistribution",type:E.DAY_OF_MONTH_DISTRIBUTION,title:f().text("Day of month distribution")},{id:"ValueDistribution",type:E.VALUE_DISTRIBUTION,title:f().text("Value distribution")},{id:"UnsupportedDataType",type:E.UNSUPPORTED,title:f().text("Unsupported Data Type")}],[c.yn8.ENTITY_TYPE]:[{id:"SummaryView",type:E.SUMMARY,title:f().text("Summary")},{id:"ValidationView",type:E.DATA_VALIDATION,title:f().text("Profiles with invalid data")},{id:"ConsolidationRate",type:E.CONSOLIDATION_RATE,title:f().text("Consolidation rate")},{id:"RDMTranscode",type:E.RDM_TRANSCODE,title:f().text("RDM value mapping status")}]},w={[c.yn8.ATTRIBUTE_TYPE]:{today:{default:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:3,height:19,id:"FrequencyAnalysis"},{x:3,y:19,width:3,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:6,height:19,id:"LengthStatistics"}],[g.SSN]:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:3,height:19,id:"FrequencyAnalysis"},{x:3,y:19,width:3,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:3,height:19,id:"PatternAnalysis"}],[g.BOOLEAN]:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"FrequencyAnalysis"},{x:0,y:19,width:3,height:19,id:"CrosswalkAnalysis"}],[g.DATE]:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:3,height:19,id:"FrequencyAnalysis"},{x:3,y:19,width:3,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:6,height:19,id:"ValueDistribution"}],[g.INTEGER]:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:3,height:19,id:"FrequencyAnalysis"},{x:3,y:19,width:3,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:6,height:19,id:"ValueDistribution"}],[g.FLOAT]:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:3,height:19,id:"FrequencyAnalysis"},{x:3,y:19,width:3,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:6,height:19,id:"ValueDistribution"}]}},[c.yn8.ENTITY_TYPE]:{[x.RDM_LOOKUP_EXIST]:[{x:0,y:0,width:4,height:7,id:"SummaryView"},{x:4,y:0,width:2,height:7,id:"RDMTranscode"},{x:0,y:7,width:6,height:18,id:"ConsolidationRate"},{x:0,y:25,width:6,height:12,id:"ValidationView"}],[x.RDM_LOOKUP_NOT_EXIST]:[{x:0,y:0,width:6,height:7,id:"SummaryView"},{x:0,y:7,width:6,height:18,id:"ConsolidationRate"},{x:0,y:25,width:6,height:12,id:"ValidationView"}]}},T=l().createContext(null);T.displayName="ChartsDataContext";const S=l().createContext(null);S.displayName="DetailedAttributeTypeContext";const R=l().createContext(null);R.displayName="DVFContext";const N=l().createContext(null);N.displayName="EntityTypeContext";var I=r(67885),A=r(67218);function D(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:l,metrics:n}=e;const[i,o]=(0,a.useState)(I.o.INIT),[s,p]=(0,a.useState)({}),[u,f]=(0,a.useState)(null),m=null==r?void 0:r.fieldName,h=null==t?void 0:t.uri,y=(0,A._)(),g=e=>{console.error(e),o(I.o.ERROR),p({})},b=e=>{p(e),o(I.o.LOADED)},v=(0,a.useCallback)((async()=>{if(h)if(f(Date.now()),o(I.o.LOADING),p({}),l===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}]}),a=(0,c.TTx)({entityTypeUri:h,dataLevel:l,metrics:n});y(Promise.all([t,r,a])).then((e=>{var t,r;let[a,l,n]=e;const i=(0,d.pipe)((0,d.path)(["consolidationRate","totalCrosswalksBySource"]),(0,d.omit)(["ReltioCleanser"]),d.keys,d.length)(n);b(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){D(e,t,r[t])}))}return e}({},n,{summary:{inactiveProfiles:null===(t=l.type)||void 0===t?void 0:t[(0,c.nIW)(h)],activeProfiles:null===(r=a.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:l,metrics:n})).then((0,d.pipe)((0,d.pathOr)({},["statistic",m]),b)).catch(g)}}),[o,p,y,m,h,l,n]);(0,a.useEffect)((()=>{const e=!!u&&Date.now()-u>18e4;l===c.yn8.ENTITY_TYPE&&e&&E()}));const E=(0,a.useCallback)((()=>{try{v()}catch(e){g(e)}}),[v]);return(0,a.useEffect)((()=>{E()}),[E]),(0,a.useMemo)((()=>({data:s,state:i,reload:E})),[s,i,E])},L=e=>{const[t,r]=(0,a.useState)(null),l=(0,A._)();return(0,a.useEffect)((()=>{const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:(0,d.pluck)("uri",e)}]);l((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)};let _;!function(e){e.TODAY="today",e.LAST_7_DAYS="7days",e.LAST_30_DAYS="30days"}(_||(_={}));const P=(e,t,r)=>({attributes:(t||[]).map(((t,a)=>{let{filter:l,fieldName:n,values:i,uri:o}=t;return{data:{uri:o||(null==r?void 0:r.uri),entityTypeUri:e,fieldName:n},filter:l,id:`attribute_${a}`,operator:c.tJI.and,values:i}})),entityTypes:[e],id:"group",operator:c.tJI.or});function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.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 M=(0,d.map)((e=>j({},e,{localizedValue:f().number(e.value)}))),U=e=>(0,d.isNil)(e)?"":`(${e}%)`,B=e=>(0,d.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),F=(0,d.curry)(((e,t,r)=>({advanced:[P(t,r.map((0,d.when)((()=>(0,c.Lt4)(null==e?void 0:e.type)),(0,d.evolve)({values:(0,d.map)((0,c.mOr)(c.ZBU))}))),e)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}))),z=e=>t=>{let{detailedAttributeType:r,entityTypeUri:a}=t;return(0,d.pipe)(e({fieldName:null==r?void 0:r.fieldName,entityTypeUri:a}),F(r,a))},V=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 g.STRING;case c.oS0.TYPE_COUNT:case c.oS0.TYPE_DOLLAR:case c.oS0.TYPE_INT:case c.oS0.TYPE_LONG:return g.INTEGER;case c.oS0.TYPE_FLOAT:case c.oS0.TYPE_DOUBLE:case c.oS0.TYPE_NUMBER:return g.FLOAT;case c.oS0.TYPE_BOOLEAN:case c.oS0.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return g.BOOLEAN;case c.oS0.TYPE_ACTIVENESS_DATE:case c.oS0.TYPE_DATE:case c.oS0.TYPE_LOCAL_DATE:case c.oS0.TYPE_TIMESTAMP:return g.DATE;case c.oS0.TYPE_SSN:return g.SSN;default:return g.UNKNOWN}},W=e=>{let{views:t,supportedViews:r,layout:a}=e;return a.reduce(((e,a)=>{const l=(0,d.prop)("type",t.find((0,d.propEq)("id",a.id))),n=t.findIndex((0,d.propEq)("id",a.id));return-1!==n?r.includes(l)?e.concat(t[n]):e.concat((0,d.assoc)("type",E.UNSUPPORTED,t[n])):e.concat({id:a.id,type:E.UNSUPPORTED,title:f().text("Unsupported")})}),[])},H=(0,d.pipe)((0,d.defaultTo)([]),(0,d.pluck)("type"),(0,d.filter)((e=>Object.values(c.N0y).includes(e)))),Y=e=>{let{percent:t,value:r}=e;return j({width:`${t}%`},r>0&&{minWidth:"3px"})},Z=((0,d.pipe)((0,d.pluck)("percent"),(e=>Math.max(...e))),(0,d.pipe)((0,d.pluck)("value"),(e=>Math.max(...e))),(0,d.curry)(((e,t)=>t.map((t=>(0,d.assoc)("label",(0,c.tH7)(e,t.group)||t.label,t)))))),G=e=>{let{entityTypeUri:t}=e;return()=>F(void 0,t,[])};let $;!function(e){e.RESOLVED="resolved",e.UNRESOLVED="unresolved"}($||($={}));const q={[$.RESOLVED]:"#7F22FD",[$.UNRESOLVED]:"#F085F2"},Q=(0,d.map)((e=>{let{group:t}=e;return q[t]||(0,c.f4_)(t)})),K=e=>{let[t,r]=e;return M([{value:t.total,label:f().text("Mapped values"),group:$.RESOLVED,dataReltioId:"reltio-dq-dashboard-transcode-mapped"},{value:r.total,label:f().text("Unmapped values"),group:$.UNRESOLVED,dataReltioId:"reltio-dq-dashboard-transcode-unmapped"}])},X=e=>[{filter:c.j5E.EQUALS,fieldName:"rdmLookups.resolved",values:[e!==$.RESOLVED]}],J=z((()=>X)),ee=(e,t)=>(e||[]).some((0,d.allPass)([(0,d.propEq)("attribute",t),(0,d.propEq)("status",c.lVm.ACTIVE)])),te=e=>[c.oS0.TYPE_FLOAT,c.oS0.TYPE_DOUBLE,c.oS0.TYPE_NUMBER].includes(e),re=e=>(0,c.idV)(e.label||e.name);let ae;function le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.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}!function(e){e.INCLUDED_IN_MATCHING="includedInMatching",e.CONTAIN_VF="containVF",e.REQUIRED="required",e.REFERENCE="reference",e.RDM_LOOKUP="RDMLookup"}(ae||(ae={}));const ie=(0,d.curry)(((e,t)=>e.some((e=>t.details[e.value])))),oe=(0,d.curry)(((e,t)=>{var r;return 0===e.length||ie(e,t)||(null===(r=t.children)||void 0===r?void 0:r.some((t=>oe(e,t))))})),ce=(0,d.curry)(((e,t)=>{var r;const a=e[t.fieldName];return null==a||null===(r=a.find((0,d.propEq)("group",c.s9T.EXISTS)))||void 0===r?void 0:r.value})),se=(0,d.curry)(((e,t)=>{var r;const a=e[t.fieldName];return!(null!=a&&null!==(r=a.find((0,d.propEq)("group",c.s9T.EXISTS)))&&void 0!==r&&r.value)})),pe=(0,d.curry)((function(e,t){var r;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const l=t.fieldName||(0,c.Tde)(t.uri,a);return se(e,le({},t,{fieldName:l}))||(null===(r=t.children)||void 0===r?void 0:r.some((r=>pe(e,r,a.concat({name:t.name,label:t.label})))))})),de=(0,d.curry)(((e,t)=>t.reduce(((t,r)=>{const a=((e,t)=>{var r;return null===(r=e.label||e.name)||void 0===r?void 0:r.toLowerCase().includes(t.toLowerCase())})(r,e),l=a?r.children||[]:de(e,r.children||[]);return(a||l.length)&&t.push(Object.assign({},r,l.length&&{children:l})),t}),[])));function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){fe(e,t,r[t])}))}return e}function fe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const me=e=>{let{attrTypeItem:t,dvf:r=[],matchAttributes:a=[]}=e;const{uri:l,required:n,isAttributeReference:i}=t;return{[ae.INCLUDED_IN_MATCHING]:a.includes(l),[ae.CONTAIN_VF]:ee(r,l),[ae.REQUIRED]:!!n,[ae.REFERENCE]:i,[ae.RDM_LOOKUP]:(0,c.lS4)(t)}},he=e=>({[ae.INCLUDED_IN_MATCHING]:f().text("Included in match rule"),[ae.CONTAIN_VF]:f().text("Has validation functions"),[ae.REQUIRED]:f().text("Required"),[ae.REFERENCE]:f().text("Reference attribute"),[ae.RDM_LOOKUP]:f().text("RDM")}[e]||e),ye=(0,d.curry)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return(0,d.pipe)((0,d.chain)((e=>{const l=e.children?ye(e.children,t.concat({name:e.name,label:e.label}),r||(0,c.YkG)(e),a+1):[];return[{attributeItem:ue({},e,{fieldName:(0,c.Tde)(e.uri,t),isAttributeReference:(0,c.YkG)(e)||r}),level:a},...l]})))(e)})),ge=(0,d.prop)("isAttributeReference");let be;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(be||(be={}));const ve=l().createContext(null);ve.displayName="DataLevelContext";const Ee=l().createContext(null);Ee.displayName="TimeRangeContext";var xe=r(67268),Oe=r(79692);const we=(0,Oe.Z)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"}}),Te=e=>{let{label:t,value:r}=e;const a=we();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:p()(a.label,a.infoDataLabel)},t),r)},Se=e=>{let{label:t,value:r}=e;const a=we();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:p()(a.label,a.chartDataLabel)},t),r)},Re=(0,Oe.Z)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),Ne=e=>{let{data:t,title:r,DataRenderer:a=Se}=e;const n=Re();return l().createElement("div",{className:n.tooltipWrapper},r&&l().createElement("div",{className:n.title},r),t.map(((e,t)=>l().createElement("div",{key:t,className:n.row},l().createElement(a,e)))))},Ie=(0,Oe.Z)({fillRateSquare:{height:"8px",width:"8px",display:"inline-block",marginRight:"5px",verticalAlign:"middle"}}),Ae=e=>{let{data:t,title:r,getColor:a}=e;const n=Ie(),i=t.map((e=>{let{label:t,percent:r,value:i,group:o}=e;return{label:l().createElement("span",null,l().createElement("div",{className:n.fillRateSquare,style:{background:a(o)}}),t),value:`${f().number(i)} ${U(r)}`}}));return l().createElement(Ne,{title:r,data:i})};var De=r(92778),Ce=r(8818),Le=r(75512),_e=r(30553),Pe=r(82726);const je=(0,Oe.Z)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:"5px",lineHeight:"24px"},infoIcon:{position:"relative"}}))),ke=e=>{let{title:t,infoTooltipTitle:r,children:a}=e;const n=!!r,i=!!a,o=je(i);return l().createElement(De.Z,{title:t,className:o.root,classes:{title:o.title}},n&&l().createElement(Ce.k,{icon:Pe.Z,size:"XXS",tooltipTitle:r,className:o.infoIcon}),i&&l().createElement(Le.Z,{widthToHide:500},l().createElement(_e.Z,{height:24,margin:16}),a))};var Me=r(10237);const Ue=(0,Oe.Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),Be=e=>{let{config:t,children:r}=e;const n=Ue(),{type:i}=t,o=(0,a.useContext)(ve),c=(0,a.useContext)(Ee)===_.TODAY?`reltio-dq-dashboard-chart-${i}-${o}`:`reltio-dq-dashboard-chart-time-series-${i}-${o}`;return l().createElement(Me.Z,{className:n.view,"data-reltio-id":c},r)},Fe={[c.s9T.MISSING]:"#CE5C00",[c.s9T.EXISTS]:"#C4CE00"},ze=e=>Fe[e]||(0,c.f4_)(e),Ve=(0,d.map)((e=>{let{group:t}=e;return ze(t)})),We=e=>({[c.s9T.MISSING]:f().text("Missing"),[c.s9T.EXISTS]:f().text("Exists")}[e]||e),He=(0,d.pipe)(Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:We(t),group:t,value:r}})),(0,d.sortBy)((e=>Object.values(c.s9T).indexOf(e.group))),M),Ye=(0,d.pipe)((0,d.propOr)({},"statistic"),d.toPairs,(0,d.reduce)(((e,t)=>{let[r,a]=t;return null!=a&&a.fillRate&&(e[r]=He(a.fillRate)),e}),{})),Ze=(0,d.propOr)({},"fillRate"),Ge=(0,d.pipe)(Ze,He,(0,d.when)(B,(0,d.always)([])),(0,d.converge)(((e,t)=>({chartData:e,colors:t})),[d.identity,Ve])),$e=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:t===c.s9T.EXISTS?c.j5E.EXISTS:c.j5E.MISSING_VALUE,fieldName:r}]})),qe=z($e),Qe=e=>{const{data:t,state:r,reload:l}=(0,a.useContext)(T),n=(0,a.useMemo)((()=>e(t)),[t,e]);return(0,a.useMemo)((()=>({data:n,state:r,reload:l})),[n,r,l])},Ke=e=>{let{keyword:t,entityTypeUri:r}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[P(r)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}},Xe=e=>{let{fieldName:t,value:r,entityTypeUri:a}=e;return Ke({keyword:`${c.j5E.EQUALS}(${t}, ${r})`,entityTypeUri:a})},Je=(0,d.curry)(((e,t,r)=>{var a;const l=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===(a=r.keyword)||void 0===a?void 0:a.value;if(l){const e=n?`(${n}) and ${l}`:l;return(0,d.assoc)("keyword",{value:e,isRawFilter:!0},r)}return r})),et=e=>{const t=(0,n.useDispatch)(),r=(0,n.useSelector)(y.ZP.selectors.getMetadata),l=(0,a.useContext)(S),i=(0,a.useContext)(N);return(0,d.pipe)(e({detailedAttributeType:l,entityTypeUri:i.uri}),Je(r,i.uri),y.ui.actions.openSearch,t)};var tt=r(44443),rt=r(2256),at=r(4094),lt=r(32944),nt=r(94079),it=r(43266);const ot=(0,Oe.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"}}))),ct=h.B9.ERROR,st=e=>{let{onRefresh:t,height:r,errorData:a={},variant:n=be.SMALL}=e;const{Icon:i=ct,message:o,title:c}=a,s=ot({height:r});return l().createElement("div",{className:p()(s.container,s[`${n}`])},l().createElement(i,{className:s.icon}),c&&l().createElement(nt.Typography,{className:s.title},c),o&&l().createElement(nt.Typography,{className:s.message},o),!!t&&l().createElement(nt.Button,{className:s.refreshButton,startIcon:l().createElement(it.Z,{color:"primary",className:s.refreshIcon}),onClick:t,"data-reltio-id":"reltio-dq-dashboard-chart-refresh-button"},l().createElement(nt.Typography,{variant:"button"},f().text("Refresh"))))},pt=(0,Oe.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"}}),dt=h.B9.NO_DATA,ut=e=>{let{height:t,data:r={},variant:a=be.SMALL}=e;const{Icon:n=dt,message:i,title:o}=r,c=pt({height:t});return l().createElement("div",{className:p()(c.container,c[`${a}`])},l().createElement(n,{className:c.icon}),o&&l().createElement(nt.Typography,{className:c.title},o),i&&l().createElement(nt.Typography,{className:c.message},i))},ft=(0,Oe.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}}))),mt=e=>{let{loadingState:t,onRefresh:r,children:a,data:n,className:i}=e;const o=ft();return l().createElement(at.Z,{className:p()(o.viewContent,i)},l().createElement(tt.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:i,height:o}=e;switch(t){case I.o.LOADED:return n&&0!==n.length?l().createElement(rt.Z,{error:l().createElement(st,{errorData:{message:f().text("Something went wrong")},height:o,variant:be.SMALL})},a({data:n,width:i,height:o})):l().createElement(ut,{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:be.SMALL});case I.o.LOADING:return l().createElement(lt.Z,null);case I.o.ERROR:return l().createElement(st,{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:be.SMALL});default:return l().createElement("div",null,"Loading...")}})))};var ht=r(83348),yt=r(84900),gt=r(2899);const bt=(0,Oe.Z)({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)"},legend:{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}}),vt=e=>{let{payload:t}=e;const r=bt();return l().createElement("div",{className:p()(r.legend)},t.map((e=>l().createElement("div",{key:e.id,className:r.item},l().createElement("div",{style:{background:e.color},className:r.itemColor}),e.value))))};function Et(){return Et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Et.apply(this,arguments)}const xt=(0,yt.Z)((e=>{let{data:t,colors:r}=e,a=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["data","colors"]);const n=bt();return l().createElement(gt.De,Et({layout:"vertical",align:"left",verticalAlign:"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%"},content:l().createElement(vt,null),payload:(t||[]).map(((e,t)=>{let{group:a,label:i,value:o,percent:s}=e;return{id:a,type:"square",color:r[t],value:l().createElement(l().Fragment,null,l().createElement("span",{className:n.legendLabel},i),l().createElement("span",{className:n.legendValue},`${(0,c.k7L)(o,999)} ${U(s)}`))}}))},a))}));function Ot(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={content:'""',position:"absolute",background:"rgba(0, 0, 0, 0.38)",width:"1px",height:"4px",bottom:"-4px",left:0},Tt=(0,Oe.Z)({root:{display:"flex",flexDirection:"column",height:"100%"},stackedBar:{width:"100%",display:"flex",flexWrap:"nowrap",marginTop:"13px",position:"relative","&:before":wt,"&:after":function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Ot(e,t,r[t])}))}return e}({},wt,{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:"-4px",left:"-3px",right:"-3px",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 St(){return St=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},St.apply(this,arguments)}const Rt=(0,a.forwardRef)(((e,t)=>{let{className:r}=e,a=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["className"]);const n=Tt();return l().createElement("div",St({className:p()(n.bar,r)},a,{ref:t}))}));Rt.displayName="Bar";const Nt=Rt;function It(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){At(e,t,r[t])}))}return e}function At(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Dt=(0,ht.Z)(Nt),Ct=e=>{let{label:t,value:r,percent:a}=e;return[{label:t,value:`${f().number(r)} ${U(a)}`}]},Lt=(0,yt.Z)((e=>{let{data:t,colors:r,classes:a={},onItemClick:n}=e;const i=Tt(),o=n&&(e=>n(e)),c=!!n,s=(0,d.pipe)((0,d.pluck)("value"),d.sum)(t);return l().createElement("div",{className:i.root},l().createElement("div",{className:p()(i.stackedBar,a.stackedBar)},t.map(((e,t)=>l().createElement(Dt,{className:p()(a.bar,c&&i.clickable),key:e.label,tooltipTitle:l().createElement(Ne,{data:Ct(e)}),style:It({},Y(e),{background:r[t]}),onClick:()=>o&&o(e.group),"data-reltio-id":e.dataReltioId})))),l().createElement("div",{className:i.rangeWrapper},l().createElement("span",{className:i.rangeValue},"0"),l().createElement("span",{className:i.rangeValue},f().number(s))),l().createElement("div",{className:i.legendWrapper},l().createElement(xt,{data:t,colors:r})))})),_t=()=>{const{data:e,state:t,reload:r}=Qe(Ge),{chartData:a,colors:n}=e,i=et(qe);return l().createElement(mt,{data:a,loadingState:t,onRefresh:r},(e=>{let{data:t}=e;return l().createElement(Lt,{data:t,colors:n,onItemClick:i})}))};var Pt=r(95038),jt=r.n(Pt);function kt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Mt=()=>[{label:f().text("Today"),value:_.TODAY},{label:f().text("Last 7 days"),value:_.LAST_7_DAYS},{label:f().text("Last 30 days"),value:_.LAST_30_DAYS}],Ut=e=>(0,d.pipe)((0,d.defaultTo)([]),(0,d.map)((t=>{let{time:r,values:a}=t;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){kt(e,t,r[t])}))}return e}({group:r,label:f().date(r,"MMM D")},e(a))})),(0,d.sortBy)((0,d.prop)("group"))),Bt=(0,d.propOr)(1,d.__,{[_.TODAY]:1,[_.LAST_7_DAYS]:7,[_.LAST_30_DAYS]:30}),Ft=e=>{let{entityTypeUri:t,attributeFieldName:r,timeRange:l=_.TODAY,dataLevel:i=c.yn8.ATTRIBUTE_TYPE,metrics:o}=e;const[s,p]=(0,a.useState)(I.o.INIT),[u,f]=(0,a.useState)(null),m=(0,n.useSelector)(y.ZP.selectors.getTenant),h=(0,n.useSelector)(y.ZP.selectors.getDqTimeSeriesPath),g=(0,A._)(),b=e=>{console.error(e),p(I.o.ERROR),f(null)},v=e=>{f(e),p(I.o.LOADED)},E=(0,a.useCallback)((()=>{if(!t)return;p(I.o.LOADING),f(null);const{startDate:e,endDate:a}=(e=>{const t=Bt(e),r=new Date,a=r.setDate(r.getDate()-t),l=jt().utc(r).format("YYYY-MM-DD");return{startDate:jt().utc(a).format("YYYY-MM-DD"),endDate:l}})(l);g((0,c.zl1)({timeSeriesServicePath:h,tenant:m,entityTypeUri:t,attribute:r,dataLevel:i,metrics:o,startDate:e,endDate:a})).catch((()=>Promise.resolve((e=>{let{fieldName:t,timeRange:r,count:a,missingPercent:l,notUniquePercent:n}=e;const i=Bt(r),o=.02,c=new Date;c.setDate(c.getDate());let s=a,p=Math.round(a*l+s*o-Math.random()*s*o*2),u=Math.round(a*n+s*o-Math.random()*s*o*2),f=s-p,m=f/s,h=s-u,y=h/s;return{success:!0,data:{[t]:{timeSeries:(0,d.range)(0,i).map((()=>{const e={time:jt().utc(c).format("YYYY-MM-DD"),values:{fillRate:{missing:p,exists:f,fillRate:m},uniqueness:{notUnique:u,unique:h,uniqueness:y}}};return(()=>{const e=0===c.getDay()||6===c.getDay()?-Math.ceil(Math.random()*a*.001):-Math.ceil(Math.random()*a*.02);p=Math.ceil(p+e*Math.random()*.01*100-Math.random()*p*.01),f=s-p,m=f/s,u=Math.ceil(u+e*Math.random()*o-Math.random()*u*o),h=s-u,y=h/s,s+=e})(),c.setDate(c.getDate()-1),e})).reverse()}}}})({fieldName:r,timeRange:l,count:400,missingPercent:.18,notUniquePercent:.06})))).then((0,d.pipe)((0,d.pathOr)({},["data",r,"timeSeries"]),v)).catch(b)}),[r,t,l,i,o,m]);return(0,a.useEffect)((()=>{E()}),[E]),(0,a.useMemo)((()=>({data:u,state:s,reload:E})),[u,s,E])};function zt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Vt(e,t,r[t])}))}return e}function Vt(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=(0,Oe.Z)((e=>({tooltipWrapper:zt({},e.tooltip,{padding:"4px 8px"})})));function Ht(){return Ht=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ht.apply(this,arguments)}const Yt=e=>{let{data:t,width:r,height:n,getTooltip:i,getColor:o,keys:s}=e;const p=Wt(),{cartesianGrid:d,tooltip:u,xAxis:f,yAxis:m,line:h}={xAxis:{type:"category",dataKey:"term",tick:{fill:"#000",opacity:"0.54"},angle:0,textAnchor:"middle",stroke:"#666",allowDuplicatedCategory:!1},yAxis:{dataKey:"",type:"number",tick:{fill:"#000",opacity:"0.54",width:void 0},stroke:"#666",tickFormatter:c.k7L,width:50},cartesianGrid:{strokeDasharray:"3 3",stroke:"#666",strokeOpacity:"0.4"},tooltip:{cursor:{fill:"#000",opacity:"0.1"}},line:{type:"linear",dataKey:"value",strokeWidth:3}},y=(0,a.useCallback)((e=>l().createElement("div",{className:p.tooltipWrapper},i(e))),[i]);return l().createElement(gt.wW,{width:r,height:n,data:t},l().createElement(gt.q3,d),l().createElement(gt.Kc,Ht({},f,{dataKey:"label"})),l().createElement(gt.B2,m),s.map((e=>l().createElement(gt.x1,Ht({},h,{key:e,dataKey:e,stroke:o(e)})))),l().createElement(gt.u,Ht({},u,{content:y,cursor:null})))};function Zt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Gt(e,t,r[t])}))}return e}function Gt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $t=(0,Oe.Z)((e=>({todayWrapper:e=>{let{todayBlockHeight:t}=e;return{height:`${t}px`,position:"relative"}},tooltipWrapper:Zt({},e.tooltip,{padding:"4px 8px"}),todayLabel:{color:"rgba(0, 0, 102, 1)"}}))),qt=[c.s9T.EXISTS,c.s9T.MISSING],Qt=e=>{let{active:t,payload:r}=e;if(t&&r&&r.length){const{payload:e}=r[0],t=+(100*Number(e.fillRate)).toFixed(2),a={[c.s9T.EXISTS]:t,[c.s9T.MISSING]:+(100-t).toFixed(2)},n=(0,d.pipe)((0,d.pick)(qt),He,(0,d.map)((e=>(0,d.assoc)("percent",a[e.group],e))))(e);return l().createElement(Ae,{data:n,getColor:ze})}},Kt=e=>{let{timeRange:t}=e;const r=$t({todayBlockHeight:60}),n=(0,a.useContext)(N),i=(0,a.useContext)(S),o=n.uri,s=i.fieldName,p=(0,a.useMemo)((()=>[c.N0y.FILL_RATE]),[]),{data:u,state:m,reload:h}=Ft({entityTypeUri:o,attributeFieldName:s,timeRange:t,metrics:p}),y=(0,a.useMemo)((()=>Ut(Ze)(u)),[u]),{chartData:g,colors:b}=(0,d.pipe)(d.last,(0,d.defaultTo)({}),(0,d.pick)(qt),(e=>Ge({fillRate:e})))(y);return l().createElement(mt,{data:y,loadingState:m,onRefresh:h},(e=>{let{data:t,width:a,height:n}=e;return l().createElement(l().Fragment,null,l().createElement(Yt,{width:a,height:n-60,data:t,keys:qt,getColor:ze,getTooltip:Qt}),l().createElement("div",{className:r.todayWrapper},l().createElement(nt.Typography,{variant:"caption",className:r.todayLabel},f().text("Today")),l().createElement(xt,{data:g,colors:b})))}))};var Xt=r(7089);const Jt=(0,Oe.Z)({root:{height:"18px",padding:"3px 8px",background:"rgba(43, 152, 240, 0.12)",border:"0.6px solid #2B98F0",borderRadius:"2px"},label:{fontSize:"12px",padding:0},disabled:{background:"rgba(153, 153, 153, 0.12)",border:"0.6px solid #999999"}});function er(){return er=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},er.apply(this,arguments)}const tr=e=>{let{disabled:t=!1}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["disabled"]);const n=Jt(),i=(0,a.useContext)(Ee),o=(e=>(0,d.pipe)(Mt,(0,d.find)((0,d.propEq)("value",e)),(0,d.propOr)("","label"))())(t?_.TODAY:i);return l().createElement(Xt.Z,er({classes:{root:p()(n.root,{[n.disabled]:!!t}),label:n.label},label:o},r))},rr=e=>{let{config:t}=e;const{title:r}=t,n=(0,a.useContext)(Ee),i=l().createElement(Ne,{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:Te});return l().createElement(Be,{config:t},l().createElement(ke,{title:r,infoTooltipTitle:i},n!==_.TODAY&&l().createElement(tr,null)),n===_.TODAY?l().createElement(_t,null):l().createElement(Kt,{timeRange:n}))},ar={[c.dC6.UNIQUE]:"#4BAFFF",[c.dC6.NOT_UNIQUE]:"#C34980"},lr=e=>ar[e]||(0,c.f4_)(e),nr=(0,d.map)((e=>{let{group:t}=e;return lr(t)})),ir=e=>({[c.dC6.UNIQUE]:f().text("Unique"),[c.dC6.NOT_UNIQUE]:f().text("Not unique")}[e]||e),or=(0,d.pipe)(Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:ir(t),group:t,value:r}})),(0,d.sortBy)((e=>Object.values(c.dC6).indexOf(e.group))),M),cr=(0,d.propOr)({},"uniqueness"),sr=(0,d.pipe)(cr,or,(0,d.when)(B,(0,d.always)([])),(0,d.converge)(((e,t)=>({chartData:e,colors:t})),[d.identity,nr])),pr=()=>{const{data:e,state:t,reload:r}=Qe(sr),{chartData:a,colors:n}=e;return l().createElement(mt,{data:a,loadingState:t,onRefresh:r},(e=>{let{data:t}=e;return l().createElement(Lt,{data:t,colors:n})}))};function dr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){ur(e,t,r[t])}))}return e}function ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fr=(0,Oe.Z)((e=>({todayWrapper:e=>{let{todayBlockHeight:t}=e;return{height:`${t}px`,position:"relative"}},tooltipWrapper:dr({},e.tooltip,{padding:"4px 8px"}),todayLabel:{color:"rgba(0, 0, 102, 1)"}}))),mr=[c.dC6.UNIQUE,c.dC6.NOT_UNIQUE],hr=e=>{let{active:t,payload:r}=e;if(t&&r&&r.length){const{payload:e}=r[0],t=+(100*Number(e.uniqueness)).toFixed(2),a={[c.dC6.UNIQUE]:t,[c.dC6.NOT_UNIQUE]:+(100-t).toFixed(2)},n=(0,d.pipe)((0,d.pick)(mr),or,(0,d.map)((e=>(0,d.assoc)("percent",a[e.group],e))))(e);return l().createElement(Ae,{data:n,getColor:lr})}},yr=e=>{let{timeRange:t}=e;const r=fr({todayBlockHeight:60}),n=(0,a.useContext)(N),i=(0,a.useContext)(S),o=n.uri,s=i.fieldName,p=(0,a.useMemo)((()=>[c.N0y.UNIQUENESS]),[]),{data:u,state:m,reload:h}=Ft({entityTypeUri:o,attributeFieldName:s,timeRange:t,metrics:p}),y=(0,a.useMemo)((()=>Ut(cr)(u)),[u]),{chartData:g,colors:b}=(0,d.pipe)(d.last,(0,d.defaultTo)({}),(0,d.pick)(mr),(e=>sr({uniqueness:e})))(y);return l().createElement(mt,{data:y,loadingState:m,onRefresh:h},(e=>{let{data:t,width:a,height:n}=e;return l().createElement(l().Fragment,null,l().createElement(Yt,{width:a,height:n-60,data:t,keys:mr,getColor:lr,getTooltip:hr}),l().createElement("div",{className:r.todayWrapper},l().createElement(nt.Typography,{variant:"caption",className:r.todayLabel},f().text("Today")),l().createElement(xt,{data:g,colors:b})))}))},gr=e=>{let{config:t}=e;const{title:r}=t,n=(0,a.useContext)(Ee),i=l().createElement(Ne,{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:Te});return l().createElement(Be,{config:t},l().createElement(ke,{title:r,infoTooltipTitle:i},n!==_.TODAY&&l().createElement(tr,null)),n===_.TODAY?l().createElement(pr,null):l().createElement(yr,{timeRange:n}))};function br(){return br=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},br.apply(this,arguments)}const vr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",br({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#6663F6"}),l().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 Er(){return Er=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Er.apply(this,arguments)}const xr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Er({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#1DACF5"}),l().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 Or(){return Or=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Or.apply(this,arguments)}const wr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Or({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#7F22FD"}),l().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 Tr(){return Tr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Tr.apply(this,arguments)}const Sr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Tr({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#4B31E9"}),l().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 Rr(){return Rr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Rr.apply(this,arguments)}const Nr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Rr({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#80D2FC"}),l().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"}))},Ir=(0,Oe.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),Ar={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let Dr;!function(e){e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal"}(Dr||(Dr={}));const Cr=e=>{let{detailType:t,size:r=Ar.NORMAL,variant:a=Dr.NORMAL}=e;const n=Ir(r),i=p()(n.icon,n[a]);switch(t){case ae.RDM_LOOKUP:return l().createElement(wr,{className:i});case ae.CONTAIN_VF:return l().createElement(vr,{className:i});case ae.INCLUDED_IN_MATCHING:return l().createElement(xr,{className:i});case ae.REFERENCE:return l().createElement(Sr,{className:i});case ae.REQUIRED:return l().createElement(Nr,{className:i});default:return null}},Lr=(0,Oe.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 _r(){return _r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_r.apply(this,arguments)}function Pr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){jr(e,t,r[t])}))}return e}function jr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kr=e=>{let{detailType:t,classes:r}=e,n=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["detailType","classes"]);const i=Lr(),{data:o,state:s}=(0,a.useContext)(T);let d=Dr.NORMAL;const u=s===I.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===ae.REQUIRED&&(u&&(d=Dr.LOADING),u||f||(d=Dr.BAD_QUALITY)),l().createElement(Xt.Z,_r({classes:Pr({root:p()(i.root,{[i.badQuality]:t===ae.REQUIRED&&!u&&s!==I.o.INIT&&!f}),label:i.label},r),label:he(t),icon:l().createElement(Cr,{detailType:t,variant:d})},n))},Mr=(0,Oe.Z)({root:{display:"flex",flexWrap:"wrap",flexGrow:1}}),Ur=e=>{let{details:t,chipClasses:r={}}=e;const a=Mr();return l().createElement("div",{className:a.root},Object.entries(t||{}).filter((e=>{let[,t]=e;return t})).map((e=>{let[t]=e;return l().createElement(kr,{key:t,detailType:t,classes:r})})))},Br=(0,Oe.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"}}),Fr=e=>{let{title:t,children:r,className:a,onClick:n,dataReltioId:i}=e;const o=Br();return l().createElement("div",{className:p()(o.info,a),onClick:n,"data-reltio-id":i},l().createElement("div",{className:o.infoTitle},t),l().createElement("div",{className:o.infoContent},r))};function zr(){return zr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},zr.apply(this,arguments)}const Vr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",zr({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg1279746712a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"15",height:"8"},l().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"})),l().createElement("g",{mask:"url(#svg1279746712a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Wr(){return Wr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Wr.apply(this,arguments)}const Hr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Wr({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg208732808a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"14"},l().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"})),l().createElement("g",{mask:"url(#svg208732808a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Yr(){return Yr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Yr.apply(this,arguments)}const Zr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Yr({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg1638934380a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},l().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"})),l().createElement("g",{mask:"url(#svg1638934380a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Gr(){return Gr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Gr.apply(this,arguments)}const $r=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Gr({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().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 qr(){return qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},qr.apply(this,arguments)}const Qr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",qr({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg924767730a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},l().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"})),l().createElement("g",{mask:"url(#svg924767730a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Kr(){return Kr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Kr.apply(this,arguments)}const Xr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Kr({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg3578961193a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},l().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"})),l().createElement("g",{mask:"url(#svg3578961193a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))},Jr=(0,Oe.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}}}),ea={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},ta=e=>{let{type:t,size:r=ea.SMALL}=e;const a=Jr(r);switch(V(t)){case g.STRING:return l().createElement(Xr,{className:a.icon});case g.FLOAT:return l().createElement(Zr,{className:a.icon});case g.INTEGER:return l().createElement($r,{className:a.icon});case g.BOOLEAN:return l().createElement(Vr,{className:a.icon});case g.DATE:return l().createElement(Hr,{className:a.icon});case g.SSN:return l().createElement(Qr,{className:a.icon});default:return l().createElement(Xr,{className:a.icon})}},ra=e=>{let{detailedAttributeType:t}=e;const r=Br(),n=(e=>{const[t,r]=(0,a.useState)(null),l=(0,a.useContext)(N),n=(0,A._)();return(0,a.useEffect)((()=>{if(l.uri&&e){const t={filter:c.j5E.EXISTS,fieldName:e},a={filter:c.j5E.EQUALS,fieldName:"type",values:[l.uri]},i={searchOptions:"strictTypeSearch"};r(null),n((0,c.j_Q)([t,a],i)).then((e=>{let{total:t}=e;return r(t)})).catch(console.error)}}),[l.uri,e]),t})(t.fieldName),i=null===n?l().createElement(nt.CircularProgress,{size:"24",className:r.totalLoading}):(0,c.k7L)(n);return l().createElement("div",null,l().createElement("div",{className:r.header},l().createElement(Fr,{title:f().text("Profiles"),className:r.attributeTypeSummary},l().createElement(nt.Tooltip,{title:l().createElement(Ne,{data:[{label:f().text("Entities with exists attribute"),value:f().number(n)}]})},l().createElement("div",null,i))),l().createElement(Fr,{title:f().text("Data type"),className:r.attributeTypeSummary},(o=t.type,l().createElement(l().Fragment,null,l().createElement("div",{className:r.attributeTypeIconWrapper},l().createElement(ta,{type:o,size:ea.NORMAL})),f().text(o))))),l().createElement(Ur,{details:t.details}));var o},aa=e=>{let{entityType:t}=e;const{data:r,state:i}=(0,a.useContext)(T),o=((e,t)=>{const r=t.attributes||[],a=t=>t.filter(c.Uty).filter((0,d.either)((0,d.prop)("label"),(0,d.prop)("name"))).reduce(((t,r)=>{const l=(0,c.EUG)(e,r);return null!=l&&l.length?[...t,r,...a(l)]:[...t,r]}),[]);return a(r).length})((0,n.useSelector)(y.ZP.selectors.getMetadata),t),{activeProfiles:s=0,inactiveProfiles:u=0,sourceSystems:m=0}=(null==r?void 0:r.summary)||{},h=e=>i===I.o.LOADING?l().createElement(nt.CircularProgress,{size:"24",className:g.totalLoading}):f().number(e),g=Br(),b=(0,n.useDispatch)(),v=et(G),E=e=>{b(y.yC.actions.activityFilterUpdated(e)),v()};return l().createElement("div",{className:g.header},l().createElement(Fr,{title:f().text("Active profiles"),className:p()(g.entitySummary,g.clickable),onClick:()=>E(c.Ng6.ACTIVE_ONLY),dataReltioId:"reltio-dq-dashboard-entitylevel-summary-activeProfiles"},h(s)),l().createElement(Fr,{title:f().text("Inactive profiles"),className:p()(g.entitySummary,g.clickable),onClick:()=>E(c.Ng6.INACTIVE_ONLY),dataReltioId:"reltio-dq-dashboard-entitylevel-summary-inactiveProfiles"},h(u)),l().createElement(Fr,{title:f().text("Attributes"),className:g.entitySummary},f().number(o)),l().createElement(Fr,{title:f().text("Source systems"),className:g.entitySummary},h(m)))},la=(0,Oe.Z)({content:{padding:"0 16px",marginTop:"4px"}}),na=e=>{let{config:t}=e;const r=la(),n=(0,a.useContext)(S),i=(0,a.useContext)(ve),o=(0,a.useContext)(N),s=i===c.yn8.ATTRIBUTE_TYPE,p=s?(0,c.idV)(n.label):`${f().text("Entity")}: ${(0,c.idV)(o.label)}`;return l().createElement(Be,{config:t},l().createElement(ke,{title:p}),l().createElement(at.Z,{className:r.content},s?l().createElement(ra,{detailedAttributeType:n}):l().createElement(aa,{entityType:o})))};var ia=r(58141);const oa=(0,Oe.Z)({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}});function ca(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){sa(e,t,r[t])}))}return e}function sa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pa=h.B9.ERROR,da=e=>{let{config:t,errorData:r,titleChildren:a,infoTooltipTitle:n,onRefresh:i}=e;const{id:o,title:c}=t,s=oa();return l().createElement(ia.Z,{id:o},l().createElement(ke,{title:c,infoTooltipTitle:n},a),l().createElement(at.Z,{className:s.viewContent},l().createElement(tt.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},l().createElement(st,{errorData:ca({Icon:pa},r),onRefresh:i,variant:be.SMALL}))))};function ua(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){fa(e,t,r[t])}))}return e}function fa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ma=e=>(0,d.pipe)((0,d.propOr)({},e),Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),M),ha=e=>{let{sortDirection:t,sortField:r}=e;return(e,a)=>"asc"===t?e[r]>a[r]?1:-1:e[r]<a[r]?1:-1},ya=(e,t)=>t.filter((t=>e.find((0,d.propEq)("uri",t.group)))),ga=(e,t)=>e.find((0,d.propEq)("uri",t)),ba=(0,d.curry)(((e,t)=>(0,d.pipe)(ya,(0,d.map)((t=>{var r;return ua({},t,{label:null===(r=ga(e,t.group))||void 0===r?void 0:r.name})})))(e,t))),va=(0,d.pipe)((0,d.map)(re),(0,d.slice)(1,1/0),(0,d.join)(" / ")),Ea=(0,d.curry)(((e,t,r)=>(0,d.pipe)(ya,(0,d.map)((r=>{const{name:a,attribute:l}=ga(e,r.group),n=(0,c.X3M)(t,l);return ua({},r,{label:a,attributeLabel:va(n)})})))(e,r))),xa=ma("frequency"),Oa=ma("pattern"),wa=(e,t)=>`${e}/analyticsAttributes/AttributeValidations/analyticsAttributes/${t}`,Ta=(e,t)=>{let{name:r,uri:a}=e;return[{filter:c.j5E.EQUALS,values:[[r]],fieldName:"analyticsAttributes.AttributeValidations.FunctionName",uri:wa(t,"FunctionName")},{filter:c.j5E.EQUALS,values:[[a]],fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",uri:wa(t,"FunctionURI")}]},Sa=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return Xe({fieldName:`${r.fieldName}`,value:t,entityTypeUri:a})})),Ra=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.ON,values:[t],fieldName:r}]})),Na=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:r}]})),Ia=e=>{let{detailedAttributeType:t,entityTypeUri:r}=e;return(0,d.cond)([[c.j5n,(0,d.always)(Sa)],[c.Lt4,(0,d.always)(z(Ra))],[d.identity,(0,d.always)(z(Na))]])(t.type)({detailedAttributeType:t,entityTypeUri:r})},Aa=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return Xe({fieldName:`${r.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:a})})),Da=e=>`(${e.length>=100?f().text("top")+" 100":e.length})`;var Ca=r(31276),La=r(85709),_a=r(92332);const Pa=(0,d.pipe)((0,d.split)("|"),(e=>{let[t,r]=e;return{label:t,maxValue:r}})),ja=(e,t)=>(0,d.is)(Number,t[e])?f().number(t[e]):t[e],ka=e=>{let{children:t,handler:r,handleWidth:n=!0}=e;const i=(0,a.useRef)();return l().createElement(tt.Z,{handleWidth:n,onResize:()=>{return r((e=i.current)&&e.clientWidth<e.scrollWidth);var e}},l().createElement(nt.RootRef,{rootRef:i},t))};function Ma(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Ua(e,t,r[t])}))}return e}function Ua(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ba={background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",content:'""',height:"100%",pointerEvents:"none",position:"absolute",right:0,top:0,width:"40px"},Fa={background:"rgba(0, 0, 0, 0.38)",bottom:0,content:'""',height:"3px",left:0,position:"absolute",width:"1px"},za=(0,Oe.Z)((e=>({attribute:{"&:after":Ba,alignItems:"center",color:e.palette.text.primary,display:"flex",fontSize:"13px",fontWeight:"normal",height:"100%",lineHeight:"15px",overflow:"hidden",padding:"0 16px",whiteSpace:"pre"},bar:{borderRadius:"0 !important",minHeight:"16px !important",position:"initial !important"},colorBarContainer:{"&>div":{opacity:1},boxSizing:"border-box",height:"100%",padding:"5px 0 6px",position:"relative",width:"100%"},headCell:{"&>div":{display:"flex",flexDirection:e=>e?"row":"row-revers",flexGrow:1,justifyContent:"flex-start",marginLeft:e=>!e&&"-26px",paddingLeft:"16px",paddingRight:e=>e&&"0"},"&>div>span":{flexGrow:1,justifyContent:e=>e?"flex-start":"flex-end",marginLeft:"0!important",width:"100%"},height:"100%",lineHeight:"47px"},headCellWithRange:{"&>div":{display:"flex",flexDirection:"row-revers",flexGrow:1,justifyContent:"flex-start",padding:"0 10px 0 16px"},"&>div>span":{flexGrow:1,justifyContent:"flex-start!important",width:"100%"},height:"100%",lineHeight:"47px"},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"47px",overflow:"hidden",position:"relative",whiteSpace:"nowrap","&.overflowed:after":Ba},labelWrapper:{maxWidth:"90px","&.sortable":{maxWidth:"68px"}},number:{color:e.palette.text.primary,flexShrink:0,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",marginRight:"32px",overflow:"hidden",textAlign:"right",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"90px"},numberContainer:{alignItems:"center",display:"flex",height:"100%",padding:"0 10px 0 16px"},rangeLabel:{"&:first-child":{flexGrow:1},color:e.palette.text.secondary,fontSize:"12px"},rangeWrapper:{"&:after":Ma({},Fa,{left:"initial",right:0}),"&:before":Fa,alignItems:"flex-end",display:"flex",flexGrow:1,lineHeight:"24px",marginLeft:"32px",maxWidth:"calc(100% - 122px)",position:"relative","&.sortable":{height:"100%",maxWidth:"calc(100% - 144px)"}},tooltipTitle:{color:"rgba(255, 255, 255, 0.6)"},tooltipValue:{whiteSpace:"pre-wrap"}})));function Va(){return Va=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Va.apply(this,arguments)}function Wa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Ha(e,t,r[t])}))}return e}function Ha(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ya=e=>{let{headCellData:t,headIndex:r}=e,n=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["headCellData","headIndex"]);const i=za(0===r),{label:o,maxValue:s}=Pa(t.label),d=(0,c.k7L)(Number(s),999),u=!!s,[f,m]=(0,a.useState)(!1),h=l().createElement(ka,{handler:m},l().createElement(nt.Tooltip,{title:f?o:""},l().createElement("div",{className:p()(i.headLabel,{overflowed:f})},o)));return l().createElement("div",{className:p()({[i.headCell]:!u,[i.headCellWithRange]:u})},l().createElement(_a.default,Va({},n,{headCellData:Wa({},t,{label:u?l().createElement(l().Fragment,null,l().createElement("div",{className:p()(i.rangeWrapper,{sortable:t.sortable})},l().createElement("span",{className:i.rangeLabel},"0"),l().createElement("span",{className:i.rangeLabel},d)),l().createElement("div",{className:p()({[i.labelWrapper]:!t.sortable,sortable:t.sortable})},h)):h})})))};var Za=r(99256),Ga=r(32528);const $a=e=>{let{columnsHeaders:t,chartData:r}=e;const a=za();return l().createElement(Ne,{data:t.map((e=>{let{label:t,id:n}=e;return{label:l().createElement("span",{className:a.tooltipValue},t),value:ja(n,r)}}))})},qa=(0,Ga.Z)(((e,t)=>{let{onItemClick:r,columnsHeaders:a}=e,{rowValue:{group:l}}=t;return{onClick:r&&(()=>{r(l)}),columnsHeaders:a}}))((e=>{let{value:t="",columnData:r,rowValue:a,columnsHeaders:n,onClick:i}=e;const{cellClassName:o,labelRenderer:s}=r,d=za(),u=(0,Za.d)(i),f=!!s;return l().createElement(nt.Tooltip,{title:l().createElement($a,{columnsHeaders:n,chartData:a})},l().createElement("div",{className:p()(d.attribute,u,o),onClick:i},f?l().createElement(s,{chartData:a}):c.P6Y.strings.removeLineBreaks(t)))}));var Qa=r(43290);const Ka=(0,Ga.Z)(((e,t)=>{let{onItemClick:r,columnsHeaders:a}=e,{rowValue:{group:l}}=t;return{onClick:r&&(()=>{r(l)}),columnsHeaders:a}}))((e=>{let{value:t,columnData:{maxValue:r},rowValue:a,columnsHeaders:n,onClick:i}=e;const o=za(),s=(0,Za.d)(i),u=0===t?"0":(0,c.k7L)(t,999);return l().createElement(nt.Tooltip,{title:l().createElement($a,{columnsHeaders:n,chartData:a})},l().createElement("div",{className:p()(o.numberContainer,s),onClick:i},l().createElement(nt.Typography,{className:o.number},u),!(0,d.isNil)(r)&&l().createElement("div",{className:o.colorBarContainer},l().createElement(Qa.Z,{width:t,maxWidth:r,className:o.bar}))))})),Xa=(0,Oe.Z)({tableContainer:e=>{let{width:t,height:r}=e;return{height:r,width:t,display:"flex",flexDirection:"column","& .hoveredRow":{background:"transparent"},"& .hoveredRow:after":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,backgroundColor:"rgba(0,0,0,0.07)",pointerEvents:"none"}}},cellBorder:{borderLeft:"none",borderRight:"none!important"}});function Ja(){return Ja=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ja.apply(this,arguments)}function el(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tl=(e,t)=>t?`${e} ${t}`:e,rl=e=>{let{width:t,height:r,data:n,columnsOptions:i,basicTableRef:o,onItemClick:c,dataReltioId:s}=e,p=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["width","height","data","columnsOptions","basicTableRef","onItemClick","dataReltioId"]);const u=Xa({width:t,height:r}),f=(0,a.useMemo)((()=>({cellBorder:u.cellBorder})),[u]),m=(0,a.useMemo)((()=>Math.max(...(0,d.pluck)("value",n))),[n]),h=(0,a.useMemo)((()=>i.map((e=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){el(e,t,r[t])}))}return e}({resizable:!1,sortable:!1,headCellRenderer:Ya,rowCellValueRenderer:qa,label:tl(e.label,e.secondLabel),initialWidth:t*e.width},"value"===e.id?{label:tl(e.label,e.secondLabel).concat(`|${m}`),maxValue:m,rowCellValueRenderer:Ka}:{},(0,d.omit)(["label","width"],e))))),[i,m,t]),y=(0,a.useMemo)((()=>i.map((0,d.pick)(["id","label"]))),[i]),g=(0,a.useMemo)((()=>({onItemClick:c,columnsHeaders:y})),[c,y]);return l().createElement("div",{className:u.tableContainer,"data-reltio-id":s},l().createElement(La.Z,Ja({columnsData:h,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:f,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:g,hoverStateEnabled:!0},p)))},al=(0,Oe.Z)((()=>({layoutItemContent:{padding:"0 0 10px"}}))),ll=(0,yt.Z)((e=>{let{config:t,data:r,title:n,columnsOptions:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,titleChildren:p,state:d,onRefresh:u}=e;const f=al(),[m,h]=(0,a.useState)("desc"),[y,g]=(0,a.useState)("value"),b=(0,a.useCallback)(((e,t)=>c?c({sortDirection:m,sortField:y})(e,t):ha({sortDirection:m,sortField:y})(e,t)),[m,y,c]),v=e=>{h((()=>y===e?(0,Ca.Dh)(m):m)),g(e)},E=(0,a.useMemo)((()=>[...r.sort(b)]),[b,r]);return l().createElement(Be,{config:t},l().createElement(ke,{title:n,infoTooltipTitle:o},p),l().createElement(mt,{className:f.layoutItemContent,data:E,loadingState:d,onRefresh:u},(e=>{let{data:t,width:r=0,height:a=0}=e;return l().createElement(rl,{data:t,width:r,height:a,columnsOptions:i,sorting:{field:y,order:m},onSort:v,onItemClick:s})})))}));function nl(){return nl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},nl.apply(this,arguments)}const il=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",nl({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg1830866123a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg1830866123a)"},l().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},l().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"}),l().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"})),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"29.318",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().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"}),l().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"}),l().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"}),l().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"}),l().createElement("rect",{opacity:".5",x:"19.854",y:"17.689",width:"29.914",height:"4.126",rx:"2.063",fill:"#645F6D"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"43.573",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("rect",{x:"19.854",y:"42.072",width:"7.105",height:"7.127",rx:"3.552",fill:"#E3EBF4"}),l().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"}),l().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"}),l().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"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"57.828",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().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"}),l().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"}),l().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"}),l().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"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 3.094h88V88H0V3.094z",fill:"url(#paint0_linear_3200_4362)"}),l().createElement("path",{d:"M79.893 76.85H21.308v14.184h58.585V76.85z",fill:"#F5C056"}),l().createElement("path",{d:"M79.893 76.85H74.6v14.184h5.293V76.85z",fill:"#E99B00"}),l().createElement("path",{d:"M48.73 76.893H26.283v14.184H48.73V76.893z",fill:"#FFEA5A"}),l().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"}),l().createElement("path",{d:"M61.253 70.383H39.949v2.663h21.304v-2.663z",fill:"#FFD264"}),l().createElement("path",{d:"M47.938 70.383h-4.185v2.663h4.185v-2.663z",fill:"#FFEA5A"}),l().createElement("path",{d:"M64.676 73.046h-28.15v3.804h28.15v-3.804z",fill:"#795D1A"}),l().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"}),l().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"}),l().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"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.676 73.046v3.804H50.601v-3.804h14.075z",fill:"#4F350B"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.253 70.383v2.663H50.6v-2.663h10.652z",fill:"#F4B046"}),l().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"}),l().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"}),l().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"}),l().createElement("path",{opacity:".519",d:"M72.665 13.32h-44.51v3.043h44.51v-3.044z",fill:"#F4B046"}),l().createElement("path",{d:"M48.318 73.046h-5.706v3.804h5.706v-3.804z",fill:"#96691F"}),l().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)"}),l().createElement("g",{filter:"url(#filter0_d_3200_4362)"},l().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"})),l().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"}),l().createElement("path",{d:"M56.909 54.302a8.681 8.681 0 100-17.362 8.681 8.681 0 000 17.362z",fill:"#FFCE66"}),l().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"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.202 10.656l10.862 25.341H54.83L43.646 10.705l4.556-.049z",fill:"#F83D3D"})),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3200_4362",x1:"0",y1:"3.094",x2:"0",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3200_4362",x1:"62.25",y1:"10.656",x2:"62.25",y2:"35.935",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#B93131"}),l().createElement("stop",{offset:"1",stopColor:"#831616"})),l().createElement("filter",{id:"filter0_d_3200_4362",x:"40.057",y:"30.77",width:"33.702",height:"33.703",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().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"}),l().createElement("feOffset",{dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"3"}),l().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"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3200_4362"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3200_4362",result:"shape"}))))};function ol(){return ol=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ol.apply(this,arguments)}const cl=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",ol({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg355575424a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg355575424a)"},l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_3488_11934)"}),l().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)"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),l().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"}),l().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"}),l().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"}),l().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),l().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"}),l().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"}),l().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)"}),l().createElement("g",{filter:"url(#filter0_d_3488_11934)",fillRule:"evenodd",clipRule:"evenodd"},l().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"}),l().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"}),l().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"}),l().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"}))),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3488_11934",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3488_11934",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopOpacity:".01"}),l().createElement("stop",{offset:"1"})),l().createElement("linearGradient",{id:"paint2_linear_3488_11934",x1:"86.975",y1:"77.519",x2:"49.809",y2:"46.968",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#90A4AE",stopOpacity:"0"}),l().createElement("stop",{offset:"1",stopOpacity:".75"})),l().createElement("filter",{id:"filter0_d_3488_11934",x:"32.168",y:"30.067",width:"53.209",height:"53.716",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().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"}),l().createElement("feOffset",{dx:"1",dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"2"}),l().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"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3488_11934"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3488_11934",result:"shape"}))))};function sl(){return sl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},sl.apply(this,arguments)}const pl=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",sl({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg1954152798a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg1954152798a)"},l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_4523_4542)"}),l().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)"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),l().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"}),l().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"}),l().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"}),l().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),l().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"}),l().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"}),l().createElement("g",{filter:"url(#filter0_d_4523_4542)"},l().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"})),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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)"}),l().createElement("g",{filter:"url(#filter1_d_4523_4542)"},l().createElement("circle",{cx:"57.406",cy:"47.781",r:"1.719",fill:"#fff"})),l().createElement("g",{filter:"url(#filter2_d_4523_4542)"},l().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"}))),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_4523_4542",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_4523_4542",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopOpacity:".01"}),l().createElement("stop",{offset:"1"})),l().createElement("linearGradient",{id:"paint2_linear_4523_4542",x1:"77.079",y1:"63.788",x2:"62.929",y2:"54.707",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopOpacity:".01"}),l().createElement("stop",{offset:"1"})),l().createElement("filter",{id:"filter0_d_4523_4542",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().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"}),l().createElement("feOffset",{dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"2"}),l().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"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4523_4542"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4523_4542",result:"shape"})),l().createElement("filter",{id:"filter1_d_4523_4542",x:"51.688",y:"44.063",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().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"}),l().createElement("feOffset",{dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"2"}),l().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"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4523_4542"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4523_4542",result:"shape"})),l().createElement("filter",{id:"filter2_d_4523_4542",x:"51.688",y:"50.25",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().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"}),l().createElement("feOffset",{dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"2"}),l().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"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4523_4542"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4523_4542",result:"shape"}))))},dl=(0,Oe.Z)((e=>({title:{whiteSpace:"nowrap",height:"24px",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"},titleCount:{overflow:"hidden",lineHeight:"24px",textOverflow:"ellipsis"},viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"},countProfiles:{color:e.palette.text.primary,fontWeight:700}})));let ul;!function(e){e.DVF_NOT_SUPPORTED="dvfNotSupported",e.DVF_NOT_CONFIGURE="dvfNotConfigured",e.DATA_VALID="dataValid",e.PERMISSION_DENIED="permissionDenied"}(ul||(ul={}));const fl=e=>{let{chartType:t,dataLevel:r,title:a,infoTooltipTitle:n,titleChildren:i,dvfConfigLink:o,config:s}=e;const p=dl();let d,u,m;const y=r===c.yn8.ATTRIBUTE_TYPE?f().text("attribute type"):f().text("entity type");switch(t){case ul.DVF_NOT_SUPPORTED:d=pl,m=f().text("Data validation functions are not supported for\nReference attributes at this time.");break;case ul.DVF_NOT_CONFIGURE:d=cl,u=f().text("If we spot any validation issues, we’ll display them here."),m=l().createElement(l().Fragment,null,l().createElement(nt.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 ul.DATA_VALID:d=il,u=f().text("We didn’t spot any validation issues for this ${dataSourceLabel}.\nYou can kick back and enjoy a cold one.",{dataSourceLabel:y}),m=f().text("Nice one!");break;case ul.PERMISSION_DENIED:d=h.B9.ERROR,u=f().text("Please contact your Tenant Admin to change permissions"),m=f().text("You don’t currently have permission to view this chart")}return l().createElement(Be,{config:s},l().createElement(ke,{title:a,infoTooltipTitle:n},i),l().createElement(at.Z,{className:p.viewContent},l().createElement(tt.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=0}=e;return l().createElement(ut,{height:t,data:{Icon:d,title:m,message:u}})}))))},ml=e=>{let{isDataValid:t,totalProfiles:r,invalidProfiles:a}=e;const n=dl();return l().createElement(nt.Typography,{className:n.titleCount},t?f().text("0 profiles"):(0,d.isNil)(a)?null:l().createElement(l().Fragment,null,l().createElement("span",{className:n.countProfiles},(0,c.k7L)(a)),` (${Math.round(a/r*100)}% ${f().text("out of")} ${(0,c.k7L)(r)}) ${1!==a?f().text("profiles"):f().text("profile")}`))},hl=e=>{const{config:t}=e,r=(0,n.useSelector)(y.ZP.selectors.getMetadata),i=(0,a.useContext)(ve),o=i===c.yn8.ATTRIBUTE_TYPE,{dvfs:s,dvfConfigLink:p}=(0,a.useContext)(R),{data:u,state:m,reload:h,errorCode:g}=s,b=(0,a.useContext)(S),v=(0,a.useContext)(N),E=v.uri,x=(o?((e,t)=>(e||[]).filter((0,d.propEq)("attribute",t)))(u,null==b?void 0:b.uri):u)||[],O=x.filter((0,d.propEq)("status",c.lVm.ACTIVE)),{data:w,state:T,reload:D}=Qe(o?(e=>(0,d.pipe)(ma("dataValidationFunctions"),ba(e)))(O):((e,t)=>(0,d.pipe)(ma("dataValidationFunctions"),Ea(e,t)))(O,r)),C=(0,a.useMemo)((()=>[v]),[v]),_=(e=>{let{entityTypeUri:t,dvfUris:r}=e;const[l,n]=(0,a.useState)(null),i=(0,A._)();return(0,a.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]),l})({entityTypeUri:E,dvfUris:(0,a.useMemo)((()=>(0,d.pluck)("uri",O)),[O])}),P=L(C)(E),j=et((e=>t=>{let{entityTypeUri:r}=t;return t=>{const a=ga(e,t);return(0,d.pipe)(Ta,F(null,r))(a,r)}})(O)),k=(0,a.useMemo)((()=>m===I.o.LOADED&&T===I.o.LOADED?I.o.LOADED:m===I.o.ERROR||T===I.o.ERROR?I.o.ERROR:I.o.LOADING),[T,m]),M=(0,a.useMemo)((()=>()=>{m===I.o.ERROR&&h(),T===I.o.ERROR&&D()}),[T,m,h,D]),U=g===c.Xt7.ACCESS_DENIED,B=o&&ge(b),z=g===c.Xt7.DVF_NOT_CONFIGURED||0===(null==O?void 0:O.length)&&k!==I.o.ERROR&&m===I.o.LOADED,V=k===I.o.LOADED&&(null==O?void 0:O.length)>0&&0===w.length,W=!(k===I.o.ERROR&&g!==c.Xt7.DVF_NOT_CONFIGURED)&&!z&&k!==I.o.LOADING&&l().createElement(ml,{isDataValid:V,totalProfiles:P,invalidProfiles:_}),H=l().createElement(Ne,{title:f().text("Profiles with invalid data"),data:[{value:f().text("Shows the number of profiles that violate active validation functions")}],DataRenderer:Te}),Y=((e,t)=>{return e===c.yn8.ATTRIBUTE_TYPE?(r=t.length,[{id:"label",label:f().text("Validation function"),secondLabel:`(${r})`,width:.4,sortable:!0},{id:"value",label:f().text("Profiles"),width:.6,sortable:!0}]):(e=>[{id:"attributeLabel",label:f().text("Attribute"),width:.23,sortable:!0},{id:"label",label:f().text("Validation function"),secondLabel:`(${e})`,width:.37,sortable:!0},{id:"value",label:f().text("Profiles"),width:.4,sortable:!0}])(t.length);var r})(i,w);return z||V||U?l().createElement(fl,{config:t,chartType:B?ul.DVF_NOT_SUPPORTED:z?ul.DVF_NOT_CONFIGURE:V?ul.DATA_VALID:U?ul.PERMISSION_DENIED:void 0,title:f().text(t.title),infoTooltipTitle:H,titleChildren:W,dvfConfigLink:p,dataLevel:i}):l().createElement(ll,{config:t,title:f().text(t.title),data:w,onItemClick:j,titleChildren:W,state:k,onRefresh:M,customComparator:ha,infoTooltipTitle:H,columnsOptions:Y})},yl=(0,Oe.Z)({monoFontCell:{fontFamily:'"Roboto Mono", monospace'}}),gl=e=>{let{config:t}=e;const r=yl(),{data:n,state:i,reload:o}=Qe(xa),s=(0,a.useContext)(S).type,d=(0,c.Lt4)(s)?((e,t)=>e.map((e=>j({},e,{label:(0,c.mB6)({dataTypeDefinition:{type:t}},Number(e.label))}))))(n,s):n,u=et(Ia),m=l().createElement(Ne,{title:f().text("Frequency analysis"),data:[{value:f().text("Shows the number of times each value occurs")}],DataRenderer:Te}),h=[{id:"label",label:f().text("Value"),secondLabel:Da(n),width:.4,cellClassName:p()({[r.monoFontCell]:(0,c.m6e)(s)})},{id:"value",label:f().text("Count"),width:.6}];return l().createElement(ll,{config:t,data:d,title:t.title,infoTooltipTitle:m,onItemClick:u,state:i,onRefresh:o,columnsOptions:h})};function bl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){vl(e,t,r[t])}))}return e}function vl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var El,xl;!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"}(El||(El={})),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"}(xl||(xl={}));const Ol=e=>(0,d.pipe)((0,d.pathOr)({},[e,"data"]),Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),M),wl="Reltio profiles",Tl="Source profiles",Sl=(0,d.pipe)((0,d.pathOr)({},["consolidationRate"]),(0,d.converge)(d.concat,[(0,d.pipe)((0,d.prop)("totalCrosswalksBySource"),(0,d.omit)(["ReltioCleanser"]),(e=>[bl({},e,{label:Tl,group:Tl})])),(0,d.pipe)((0,d.prop)("totalEntities"),(e=>[(0,d.assoc)(wl,e,{label:wl,group:wl})]))]));var Rl;!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"}(Rl||(Rl={}));const Nl=(e,t)=>{const r={lengthStatistics:{[Rl.MEDIAN]:f().text("Median"),[Rl.AVERAGE]:f().text("Average"),[Rl.MININMUN]:f().text("Minimum"),[Rl.MAXIMUM]:f().text("Maximum")},valueDistribution:{[Rl.MEDIAN]:f().text("Median"),[Rl.AVERAGE]:f().text("Average"),[Rl.MININMUN]:f().text("Minimum"),[Rl.MAXIMUM]:f().text("Maximum")},crosswalkAnalysis:{[Rl.NUMBER_OF_SOURCES]:f().text("No. of source systems"),[Rl.AVG_NUMBER_OF_PROFILES]:f().text("Avg no. of profiles"),[Rl.MIN_NUMBER_OF_PROFILES]:f().text("Min no. of profiles"),[Rl.MAX_NUMBER_OF_PROFILES]:f().text("Max no. of profiles")}};return(0,d.pathOr)(null,[t,e],r)},Il=e=>(0,d.pipe)((0,d.propOr)({},e),Object.entries,(0,d.map)((t=>{let[r,a]=t;return{label:Nl(r,e),value:a}})),(0,d.filter)((e=>{let{label:t}=e;return t})),M),Al=e=>t=>({chartData:Ol(e)(t),infoPanelData:Il(e)(t)}),Dl=(e,t)=>(0,c.Lt4)(t)?(0,c.mB6)({dataTypeDefinition:{type:t}},Number(e)):f().number(e),Cl=(0,d.curry)(((e,t)=>{const r=(0,d.pipe)((0,d.prop)("group"),(0,d.split)(" "),d.head,Number),a=t.chartData.sort((0,d.ascend)(r)).map(((r,a)=>{const[l,n=l]=r.group.split(" ").map(Number),i=a===t.chartData.length-1,o=l!==n?((e,t,r)=>te(t)?`[${e}${r?"]":")"}`:e)(`${Dl(l,e)} - ${Dl(n,e)}`,e,i):Dl(l,e);return bl({},r,{label:o,group:[l,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 bl({},t,{value:r,localizedValue:(0,c.Lt4)(e)?r:t.localizedValue})})),chartData:a}})),Ll=(0,d.pipe)(Al("lengthStatistics"),Cl("")),_l=Al("monthDistribution"),Pl=Al("dayOfWeekDistribution"),jl=Al("dayOfMonthDistribution"),kl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return Xe({fieldName:`${r.fieldName}.day_of_week`,value:El[t.toLowerCase()],entityTypeUri:a})})),Ml=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return Xe({fieldName:`${r.fieldName}.month`,value:xl[t.toLowerCase()],entityTypeUri:a})})),Ul=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return Xe({fieldName:`${r.fieldName}.day_of_month`,value:t,entityTypeUri:a})})),Bl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;const[l,n]=t.split(",");return l===n?Xe({fieldName:`${r.fieldName}.length`,value:l,entityTypeUri:a}):(e=>{let{fieldName:t,startRange:r,endRange:a,entityTypeUri:l}=e;return Ke({keyword:`${c.j5E.IN_RANGE}(${t}, ${r}, ${a})`,entityTypeUri:l})})({fieldName:`${r.fieldName}.length`,startRange:l,endRange:n,entityTypeUri:a})})),Fl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return Xe({fieldName:`${r.fieldName}.crosswalk_sources`,value:t,entityTypeUri:a})})),zl=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l]=t.split(",");return[{filter:c.j5E.AFTER,values:[a],fieldName:r},{filter:c.j5E.BEFORE,values:[l],fieldName:r}]})),Vl=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l]=t.split(",");return[a===l?{filter:c.j5E.EQUALS,values:[[a]],fieldName:r}:{filter:c.j5E.IN_RANGE,values:[[a,l]],fieldName:r}]})),Wl=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l,n]=t.split(","),i=a===l,o=i?[{filter:c.j5E.EQUALS,values:[[a]],fieldName:r}]:[{filter:c.j5E.IN_RANGE,values:[[a,l]],fieldName:r}];return!n&&!i&&o.push({filter:c.j5E.NOT_EQUALS,values:[[l]],fieldName:r}),o})),Hl=(0,d.cond)([[c.Lt4,(0,d.always)(z(zl))],[te,(0,d.always)(z(Wl))],[d.identity,(0,d.always)(z(Vl))]]),Yl=(0,d.curry)(((e,t)=>t===wl?[]:[{filter:c.j5E.EQUALS,fieldName:"sourceSystems",values:[[t]]}])),Zl=z(Yl),Gl=(0,d.curry)(((e,t)=>!e||(0,d.propEq)("key",t,e)||t===wl?1:.12)),$l=e=>e>999?f().number(e,"0,0.0a").toUpperCase():e;function ql(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Ql(e,t,r[t])}))}return e}function Ql(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Kl=(0,Oe.Z)((e=>({tooltipWrapper:ql({},e.tooltip,{padding:"4px 8px"})}))),Xl=e=>{var t;let{payload:r,active:a,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=Kl();return a&&l().createElement("div",{className:p.tooltipWrapper},l().createElement(Ne,{data:[{label:s,value:c},{label:f().text("No of profiles"),value:f().number(o)}]}))},Jl=(0,Oe.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"}}))),en=e=>{let{data:t}=e;const r=Jl();return l().createElement("div",{className:r.chartInfoWrapper},t.map((e=>{let{label:t,value:a,localizedValue:n}=e;return l().createElement("div",{key:t,className:r.chartInfoItem},l().createElement("span",{className:r.chartInfoLabel},t,": "),a!==n?l().createElement(nt.Tooltip,{title:n},l().createElement("span",{className:r.chartInfoValue},a)):l().createElement("span",{className:r.chartInfoValue},a))})))};var tn=r(88611);const rn=(0,Oe.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"}}}))),an=e=>{let{width:t,height:r,label:a,x:n,y:i}=e;const o=rn({width:t}),c=n-t/2;return l().createElement("foreignObject",{x:c,y:i,width:t,height:r},l().createElement("div",{className:o.labelWrapper},l().createElement(tn.C,{value:a},l().createElement("div",{className:o.xAxisLabel},a))))},ln=e=>{const{x:t,y:r,width:a,height:n,payload:i,visibleTicksCount:o}=e,{value:c}=i,s=a/o-4;return l().createElement(an,{width:s,height:n,label:c,x:t,y:r})},nn=e=>{let{showCategories:t=!1,interval:r,barCategoryGap:a,maxBarSize:l,yTickRenderer:n,tickCount:i}=e;return{barChart:{barCategoryGap:a||"10%"},bar:{dataKey:"value",fill:"#0072CE",minPointSize:3,maxBarSize:l||50},xAxis:{tick:t&&ln,tickLine:!1,interval:r||0,dataKey:"label"},yAxis:{axisLine:!1,tickLine:!1,tick:n||{fill:"#000",fontSize:12},width:60,tickFormatter:$l,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 on(){return on=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},on.apply(this,arguments)}const cn=e=>{let{isClickable:t}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["isClickable"]);const a=Jl(),n=t?a.clickable:void 0;return l().createElement(gt.Ae,on({},r,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},sn=e=>{const{value:t}=e;return t>0?l().createElement(gt.Ae,e):null};function pn(){return pn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},pn.apply(this,arguments)}const dn=e=>{let{data:t,config:r,xAxisLabel:a,yAxisLabel:n,barTooltipTitle:i,infoPanelData:o,infoTooltipTitle:c,onItemClick:s,options:p={},state:d,onRefresh:u}=e;const f=Jl(),{title:m}=r,{cartesianGrid:h,bar:y,xAxis:g,yAxis:b,labelForX:v,labelForY:E,barChart:x}=nn(p),O=s&&(e=>{let{activePayload:t}=e;return s(t[0].payload.group)}),w=O?f.clickable:void 0,T=d===I.o.LOADED&&o.length>0;return l().createElement(Be,{config:r},l().createElement(ke,{title:m,infoTooltipTitle:c}),T&&l().createElement(en,{data:o}),l().createElement(mt,{data:t,loadingState:d,onRefresh:u},(e=>{let{data:t,width:r=0,height:o=0}=e;return l().createElement("div",null,l().createElement(gt.vz,pn({width:r,height:o,data:t,onClick:O},x),l().createElement(gt.q3,h),l().createElement(gt.u,{content:l().createElement(Xl,{name:i}),cursor:l().createElement(cn,{isClickable:!!O})}),l().createElement(gt.$Q,pn({},y,{shape:l().createElement(sn,{className:w})})),l().createElement(gt.B2,b,l().createElement(gt.__,pn({},E,{value:n}))),l().createElement(gt.Kc,g,l().createElement(gt.__,pn({},v,{value:a})))))})))},un=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=Qe(Ll),{chartData:i,infoPanelData:o}=r,c=et(Bl),s=l().createElement(Ne,{title:f().text("Length statistics"),data:[{value:f().text("Measures the string length of values")}],DataRenderer:Te});return l().createElement(dn,{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:a,onRefresh:n})};var fn=r(94175);const mn=(0,Oe.Z)({icon:{width:"20px",height:"20px",borderRadius:"4px",fontSize:"14px",marginRight:"8px"},text:e=>{let{color:t}=e;return{backgroundColor:t}}}),hn=e=>{let{chartData:t}=e;const{group:r,label:a}=t,n=mn({color:(0,c.kW2)(r)});return l().createElement(l().Fragment,null,l().createElement(fn.Z,{sourceType:r,className:n.icon,classes:{textRoot:n.text}}),a)};function yn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){gn(e,t,r[t])}))}return e}function gn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const bn=e=>{let{config:t}=e;const r=(0,n.useSelector)(y.ZP.selectors.getMetadata),{data:a,state:i,reload:o}=Qe((e=>(0,d.pipe)(Al("crosswalkAnalysis"),(0,d.applySpec)({chartData:(0,d.pipe)((0,d.prop)("chartData"),Z(e)),infoPanelData:(0,d.pipe)((0,d.prop)("infoPanelData"),(0,d.map)((e=>(0,d.assoc)("value",(0,c.k7L)(e.value,999),e))))})))(r)),{chartData:s}=a,p=et(Fl),u=l().createElement(Ne,{title:f().text("Source system analysis"),data:[{value:f().text("Distribution of source systems contributing to profiles")}],DataRenderer:Te}),m=[{id:"label",label:f().text("Source system"),secondLabel:`(${s.length})`,width:.4,sortable:!0,labelRenderer:hn},{id:"value",label:f().text("Profiles"),width:.6,sortable:!0}];return l().createElement(ll,{config:yn({},t),data:s,title:t.title,infoTooltipTitle:u,onItemClick:p,state:i,onRefresh:o,customComparator:ha,columnsOptions:m})},vn=e=>{let{config:t}=e;const r=(0,a.useContext)(S).type,{data:n,state:i,reload:o}=Qe((e=>(0,d.pipe)(Al("valueDistribution"),Cl(e)))(r)),{chartData:c,infoPanelData:s}=n,p=et(Hl(r));return l().createElement(dn,{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})},En=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=Qe(_l),{chartData:i,infoPanelData:o}=r,c=et(Ml);return l().createElement(dn,{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:a,onRefresh:n})},xn=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=Qe(Pl),{chartData:i,infoPanelData:o}=r,c=et(kl);return l().createElement(dn,{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:a,onRefresh:n})},On=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=Qe(jl),{chartData:i,infoPanelData:o}=r,c=et(Ul);return l().createElement(dn,{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:a,onRefresh:n})},wn=e=>{let{config:t}=e;const r=yl(),{data:a,state:n,reload:i}=Qe(Oa),o=et(Aa),c=l().createElement(Ne,{title:f().text("Pattern analysis"),data:[]}),s=[{id:"label",label:f().text("Value"),secondLabel:Da(a),width:.4,cellClassName:r.monoFontCell},{id:"value",label:f().text("Count"),width:.6}];return l().createElement(ll,{config:t,data:a,title:t.title,infoTooltipTitle:c,onItemClick:o,state:n,onRefresh:i,columnsOptions:s})};function Tn(){return Tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Tn.apply(this,arguments)}const Sn=e=>{let{xAxisLabel:t,yAxisLabel:r,data:a,getTooltip:n,getBarOpacity:i,onBarSelect:o,width:s,height:p,showTopLabel:u=!1,options:f={},onItemClick:m,getBarColor:h,dataReltioId:y}=e;const g=Jl(),{cartesianGrid:b,xAxis:v,yAxis:E,labelForX:x,labelForY:O,barChart:w,bar:T}=nn(f),S=(0,d.curry)(((e,t)=>m&&m(e,t.group))),R=m?g.clickable:void 0;return l().createElement("div",{"data-reltio-id":y},l().createElement(gt.vz,Tn({width:s,height:p,data:a},w,{margin:{top:15}}),l().createElement(gt.q3,b),l().createElement(gt.u,{content:n,cursor:null}),(e=>{const t=(0,d.pipe)(d.mergeAll,(0,d.omit)(["label","group"]),d.keys)(e),r=(0,d.curry)(((e,r)=>{let{x:a,y:n,width:i,value:o}=r;return u&&e===t.length-1?l().createElement("text",{x:a+i/2,textAnchor:"middle",y:n-5,fontSize:"12px"},(0,c.k7L)(o,999)):null}));return t.map(((e,t)=>l().createElement(gt.$Q,{stackId:"all",dataKey:e,opacity:i?i(e):1,fill:h(e),onMouseOver:o(e),onMouseLeave:o(null),key:e,label:r(t),maxBarSize:T.maxBarSize,onClick:S(e),className:R})))})(a),l().createElement(gt.B2,E,l().createElement(gt.__,Tn({},O,{value:r}))),l().createElement(gt.Kc,v,l().createElement(gt.__,Tn({},x,{value:t})))))};function Rn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Nn(e,t,r[t])}))}return e}function Nn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const In=(0,Oe.Z)({icon:e=>{let{color:t}=e;return{backgroundColor:t,flexShrink:0,fontSize:"14px",height:"12px",margin:" 0 8px 0 0",width:"12px"}}}),An=(0,Oe.Z)((e=>({consolidationRateWrapper:{display:"flex"},ratePercent:{fontWeight:700,lineHeight:"24px",overflow:"hidden",textOverflow:"ellipsis"},tableWithSelectedRow:{"& .Table__grid__cell_wrapper_EWDDh":{opacity:.12},"& .Table__grid__cell_wrapper_EWDDh.hoveredRow":{opacity:1}},tooltipWrapper:Rn({},e.tooltip,{padding:"4px 8px"})}))),Dn=e=>{let{data:t}=e;const r=An(),{totalCrosswalks:a,totalEntities:n}=t.consolidationRate,i=t.consolidationRate.totalCrosswalksBySource.ReltioCleanser||0,o=(100*(1-n/(a-i))).toFixed(1),s="0"==o.split(".")[1]?o.split(".")[0]:f().number(Number(o));return l().createElement(nt.Typography,null,l().createElement("span",{className:r.ratePercent},s,"% "),l().createElement("span",null,`(${(0,c.k7L)(a-i,999)} ${f().text("to")} ${(0,c.k7L)(n,999)} ${f().text("profiles")})`))},Cn=e=>{let{chartData:t}=e;const{group:r,label:a}=t,n=In({color:(0,c.kW2)(r)});return l().createElement(l().Fragment,null,l().createElement("div",{className:n.icon}),a)},Ln=e=>{const{x:t,y:r,payload:{value:a},index:n}=e;return n%2==0?l().createElement("text",{fill:"#000",x:t,y:r,textAnchor:"middle",fontSize:"12px"},$l(Number(a))):null},_n=e=>"Reltio profiles"===e?"#0072CE":(0,c.kW2)(e),Pn=l().createElement(Ne,{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.")}]}),jn=e=>{let{config:t}=e;const r=(0,n.useSelector)(y.ZP.selectors.getMetadata),i=An(),{title:o}=t,[s,u]=(0,a.useState)(),{data:m,state:h,reload:g}=Qe(Sl),{data:b}=Qe((e=>(0,d.pipe)((0,d.pathOr)({},["consolidationRate"]),(e=>Object.keys((null==e?void 0:e.totalCrosswalksBySource)||[]).reduce(((t,r)=>"ReltioCleanser"!==r?t.concat({label:r,group:r,value:e.totalCrosswalksBySource[r]}):t),[])),Z(e),(0,d.sort)((0,d.descend)((0,d.prop)("value")))))(r)),{data:v}=(0,a.useContext)(T),E=et(Zl),x=(0,a.useMemo)((()=>{const e=(0,d.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,a.useCallback)((e=>{let{active:t}=e;if(!s||!t)return"";let a=[];return a="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])}],l().createElement("div",{className:i.tooltipWrapper},l().createElement(Ne,{data:a}))}),[s,v,r]),w=(0,a.useCallback)((e=>()=>{if(e){const t=b.findIndex((0,d.propEq)("group",e));u({rowIndex:t,key:e})}else u(null)}),[u,b]),S=(0,a.useCallback)((e=>{if((0,d.isNil)(e))u(null);else{var t;const r=null===(t=b[e])||void 0===t?void 0:t.group;u({rowIndex:e,key:r})}}),[u,b]),R=e=>{if(!(0,d.isNil)(e)){var t;const r=null===(t=b[e])||void 0===t?void 0:t.group;E(r)}},N=[{id:"label",label:f().text("Source system"),secondLabel:`(${f().number(b.length)})`,resizable:!1,labelRenderer:Cn,width:.3},{id:"value",resizable:!1,label:f().text("Source profiles"),width:.7}];return l().createElement(Be,{config:t},l().createElement(ke,{title:o,infoTooltipTitle:Pn},v.consolidationRate&&l().createElement(Dn,{data:v})),l().createElement(mt,{data:b,loadingState:h,onRefresh:g},(e=>{let{height:t=0,width:r=0}=e;return l().createElement("div",{className:p()(i.consolidationRateWrapper,{[i.tableWithSelectedRow]:!(0,d.isNil)(null==s?void 0:s.rowIndex)&&-1!==(null==s?void 0:s.rowIndex)})},l().createElement(Sn,{yAxisLabel:f().text("No. of profiles"),data:x,getTooltip:O,getBarOpacity:Gl(s),getBarColor:_n,onBarSelect:w,width:256,height:t,options:{showCategories:!0,maxBarSize:40,yTickRenderer:Ln,tickCount:8},onItemClick:E,dataReltioId:"reltio-dq-dashboard-consolidation-rate-barchart",showTopLabel:!0}),l().createElement(rl,{data:b,width:r-256,height:t,columnsOptions:N,sorting:{field:"value",order:"desc"},onRowClick:R,onRowHover:S,hoverRowIndex:null==s?void 0:s.rowIndex,hoverStateEnabled:!0,dataReltioId:"reltio-dq-dashboard-consolidation-rate-tablechart"}))})))},kn=(0,Oe.Z)({content:{marginTop:"-13px"},bar:{height:"16px"}}),Mn=e=>{let{config:t}=e;const{title:r}=t,n=et(J),{data:i,state:o,reload:s}=(()=>{const e=(0,a.useContext)(N),[t,r]=(0,a.useState)(I.o.INIT),[l,n]=(0,a.useState)([]),i=(0,A._)(),o=(0,a.useCallback)((t=>(0,c.j_Q)([{filter:c.j5E.EQUALS,fieldName:"type",values:[e.uri]},{filter:c.j5E.EQUALS,fieldName:"rdmLookups.resolved",values:[t]}])),[e]),s=e=>{console.error(e),r(I.o.ERROR),n([])},p=e=>{n(e),r(I.o.LOADED)},d=(0,a.useCallback)((()=>(r(I.o.LOADING),n([]),i(Promise.all([o(!0),o(!1)])).then(K).then(p).catch(s))),[o]);return(0,a.useEffect)((()=>{d()}),[d]),{data:l,state:t,reload:d}})(),p=Q(i),d=kn(),u=l().createElement(Ne,{title:f().text("RDM value mapping status"),data:[{value:f().text("The relative number and percentage of reference data values that have been mapped to canonical values and transcoded for use by Reltio Reference Data Management.")},{label:`${f().text("Mapped values")}:`,value:f().text("Values that have been mapped and transcoded")},{label:`${f().text("Unmapped values")}:`,value:f().text("Values that have not been mapped and transcoded")}],DataRenderer:Te});return l().createElement(Be,{config:t},l().createElement(ke,{title:r,infoTooltipTitle:u}),l().createElement(mt,{data:i,loadingState:o,onRefresh:s,className:d.content},(e=>{let{data:t}=e;return l().createElement(Lt,{data:t,colors:p,onItemClick:n,classes:{bar:d.bar}})})))};function Un(){return Un=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Un.apply(this,arguments)}class Bn{}Bn.getComponent=e=>{let{type:t,config:r,isFullscreen:a,onToggleFullscreen:n}=e;const i={config:r,isFullscreen:a,onToggleFullscreen:n};switch(t){case E.FILL_RATE:return l().createElement(rr,i);case E.UNIQUENESS:return l().createElement(gr,i);case E.SUMMARY:return l().createElement(na,i);case E.DATA_VALIDATION:return l().createElement(hl,i);case E.FREQUENCY:return l().createElement(gl,i);case E.LENGTH_STATISTIC:return l().createElement(un,i);case E.CROSSWALK_ANALYSIS:return l().createElement(bn,i);case E.VALUE_DISTRIBUTION:return l().createElement(vn,i);case E.MONTH_DISTRIBUTION:return l().createElement(En,i);case E.DAY_OF_WEEK_DISTRIBUTION:return l().createElement(xn,i);case E.DAY_OF_MONTH_DISTRIBUTION:return l().createElement(On,i);case E.PATTERN:return l().createElement(wn,i);case E.CONSOLIDATION_RATE:return l().createElement(jn,i);case E.RDM_TRANSCODE:return l().createElement(Mn,i);default:return l().createElement(da,Un({},i,{errorData:{message:f().text("Chart isn't supported for this data type")}}))}};const Fn=Bn,zn=e=>{let{layoutItemConfig:t,views:r,onToggleFullscreen:a,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 l().createElement("div",{style:c,className:i},Fn.getComponent({type:p,config:s,onToggleFullscreen:a,isFullscreen:n}),o)},Vn=(0,Oe.Z)({root:{overflow:"auto",backgroundColor:"#EEEEEE",height:"100%",flexGrow:1,padding:"0 4px",boxSizing:"border-box"}}),Wn=(0,d.map)((0,d.assoc)("isStatic",!0)),Hn={cols:6,rowHeight:10,margin:[12,12]},Yn=(0,a.memo)((e=>{let{views:t,layout:r,layoutOptions:n=Hn}=e;const i=Vn(),o=(0,a.useMemo)((()=>Wn(r)),[r]);return l().createElement("div",{className:i.root},l().createElement(xe.Z,{LayoutItem:zn,views:t,layout:o,layoutOptions:n}))})),Zn=e=>{let{dataLevel:t,views:r,layout:a,timeRange:n,isSliding:i=!1}=e;return(t===c.yn8.ATTRIBUTE_TYPE||i)&&l().createElement(Ee.Provider,{value:n},l().createElement(ve.Provider,{value:c.yn8.ATTRIBUTE_TYPE},l().createElement(Yn,{views:r,layout:a})))};var Gn=r(15762);const $n=(0,Oe.Z)((e=>({breadcrumb:{fontSize:"16px",color:e.palette.text.primary},active:{color:"rgba(0, 0, 102, 1)"},clickable:{cursor:"pointer"}}))),qn=e=>{let{dataLevel:t,detailedAttributeType:r,onChange:a}=e;const n=$n();return l().createElement(nt.Breadcrumbs,{separator:l().createElement(Gn.Z,{fontSize:"small"}),"aria-label":"breadcrumb"},[l().createElement(nt.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=>()=>{a(e)})(c.yn8.ENTITY_TYPE),"data-reltio-id":"reltio-dq-dashboard-breadcrumb-entity-level"},f().text("Entity overview"))].concat(t===c.yn8.ATTRIBUTE_TYPE?l().createElement(nt.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 Qn=r(50166),Kn=r(83543),Xn=r(98989),Jn=r(31269),ei=r(22385);const ti=(0,Oe.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"}}),ri=e=>{let{details:t,classes:r,fillRateData:a,fillRateState:n}=e;const i=ti(),o=(0,d.prop)("iconRoot",r),s=(0,d.prop)("iconsWrapper",r);return l().createElement("div",{className:p()(i.root,s)},Object.entries(t||{}).reverse().map((e=>{let[t,r]=e,s=Dr.NORMAL;if(t===ae.REQUIRED){const e=n===I.o.LOADING,t=0===(null==(u=a)||null===(f=u.find((0,d.propEq)("group",c.s9T.MISSING)))||void 0===f?void 0:f.value);e&&(s=Dr.LOADING),e||t||(s=Dr.BAD_QUALITY)}var u,f;return l().createElement("div",{key:t,className:p()(r&&(o||i.activeIcon),i.detailIcon)},r&&l().createElement(nt.Tooltip,{title:he(t)},l().createElement("span",null,l().createElement(Cr,{detailType:t,variant:s,size:Ar.SMALL}))))})))},ai=(0,Oe.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 li(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){ni(e,t,r[t])}))}return e}function ni(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ii=(0,yt.Z)((e=>{let{data:t}=e;const r=ai(),a=Ve(t);return B(t)?l().createElement("div",{className:r.bar},l().createElement("div",{className:p()(r.barPart,r.inactiveBarPart)})):l().createElement(nt.Tooltip,{title:l().createElement(Ae,{title:f().text("Fill rate"),data:t,getColor:ze})},l().createElement("div",{className:r.bar},t.map(((e,t)=>l().createElement("div",{key:e.group,className:r.barPart,style:li({},Y(e),{background:a[t]})})))))})),oi="rgba(0, 114, 206, 0.12)",ci=(0,Oe.Z)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:oi,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:oi}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"},lastLevelSelected:{"&:after":{top:"13px"}}}),si=e=>{let{level:t,margin:r,hasChildren:a,isLastLevelItem:n,isCollapsed:i,isSelected:o=!1}=e;const c=ci(),s=!i&&(t>0||a);return l().createElement("div",{className:c.linesWrapper},((e,t)=>t>0&&e?(0,d.range)(1,t+1):t>1?(0,d.range)(1,t):[])(a,t).map((e=>l().createElement(Jn.Z,{key:e,margin:r,level:e,className:c.line}))),s&&l().createElement(Jn.Z,{margin:r,level:t,className:p()(c.line,!a&&t>0&&c.horizontalLine,a&&c.parentLine,n&&c.lastLevel,o&&n&&c.lastLevelSelected)}))},pi=(0,Oe.Z)({listItem:{padding:"0 0 0 15px","&:after":{content:'""',left:0,right:0,position:"absolute",bottom:0,height:"1px",background:"rgba(0, 0, 0, 0.05)"}},selectedItem:{background:"white!important",border:"1px solid #000066",boxShadow:"0px 12px 17px -2px rgba(0, 0, 102, 0.06), 0px 5px 32px -4px rgba(0, 0, 102, 0.06), 0px 7px 8px -4px rgba(0, 0, 204, 0.1)",borderRadius:"6px",zIndex:1,paddingLeft:"14px","&:after":{display:"none"}},clickableItem:{cursor:"pointer","&:hover::after":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",backgroundColor:"rgba(0,0,0,0.07)",pointerEvents:"none",zIndex:1}},content:{display:"flex",alignItems:"center",width:"100%",height:"100%",position:"relative"},attribute:{paddingLeft:"9px",boxSizing:"border-box",width:"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",height:"100%",position:"relative",fontSize:"13px"},marginWrapper:{display:"inline-block",height:"100%",position:"relative",width:"100%"},attributeType:{position:"absolute",left:0,top:"8px"},fillRate:{position:"absolute",bottom:"8px",left:0,right:0,zIndex:1},attributeLabel:{padding:"8px 0 0 15px",position:"relative","&:after":{content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}},parentAttributeLabel:{padding:"14px 0 0 13px"},detailsIcon:{background:"white"},collapseIcon:{marginRight:"6px"},iconLoader:{width:"22px",height:"22px",border:"2px solid white",background:"rgba(196, 196, 196, 0.4)",borderRadius:"50%"},iconsLoaderWrapper:{paddingRight:"23px",paddingLeft:"28px",display:"flex"},iconLoaderWrapper:{width:"24px",height:"24px",backgroundColor:"white",borderRadius:"50%",marginRight:"-3px"},fillRateLineLoader:{height:"8px",width:"100%",background:"rgba(196, 196, 196, 0.4)",left:0,right:0,bottom:"8px",zIndex:1,position:"absolute"},iconsWrapper:{paddingRight:"11px"}}),di=e=>{let{detailedAttributeType:t,fillRateData:r,fillRateState:a,style:n,level:i,selected:o=!1,onClick:c,onCollapse:s=Ca.ZT,isCollapsed:u=!1,isLastLevelItem:f=!1,isLoading:m}=e;const h=pi(),y=!!t.children,g=!!r,b=re(t),v=u?Xn.Z:Kn.Z;return l().createElement(nt.ListItem,{style:n,selected:o,classes:{selected:h.selectedItem},onClick:y?void 0:()=>{c(t)},component:"div",className:p()(h.listItem,!y&&h.clickableItem)},l().createElement("div",{className:h.content},!y&&l().createElement("div",{className:h.attributeType},l().createElement(ta,{type:t.type})),l().createElement("div",{className:h.attribute},l().createElement(si,{level:i,margin:20,hasChildren:y,isLastLevelItem:f,isCollapsed:u,isSelected:o}),l().createElement(Jn.Z,{margin:20,level:i,className:h.marginWrapper},l().createElement(tn.C,{value:b},l().createElement("div",{className:p()(h.attributeLabel,y&&h.parentAttributeLabel)},y&&l().createElement(ei.Z,{size:"XXS",icon:v,onClick:s,className:h.collapseIcon}),b))),!m&&g&&!y&&l().createElement("div",{className:h.fillRate},l().createElement(ii,{data:r})),m&&!y&&l().createElement("div",{className:h.fillRateLineLoader})),m?l().createElement("div",{className:h.iconsLoaderWrapper},(0,d.times)((e=>l().createElement("div",{className:h.iconLoaderWrapper,key:`unloadedIcon-${e}`},l().createElement("div",{className:h.iconLoader}))),5)):l().createElement(ri,{details:t.details,classes:{iconRoot:h.detailsIcon,iconsWrapper:o&&h.iconsWrapper},fillRateData:r,fillRateState:a})))},ui=(0,d.propOr)({},"attributeItem"),fi=(0,d.pipe)((0,d.find)((0,d.pipe)(ui,(0,d.either)(c.YkM,c.Or$),d.not)),ui),mi=e=>(0,d.pipe)(ui,(0,d.propEq)("fieldName",e)),hi=e=>(0,d.filter)((0,d.propEq)("group",e));let yi;!function(e){e.SHOW_EMPTY="showEmpty"}(yi||(yi={}));const gi=[{label:f().text("Show attributes with no data"),value:yi.SHOW_EMPTY,group:"emptiness"}],bi=(0,d.curry)(((e,t,r)=>{const a=(0,d.head)(hi("emptiness")(e));return(null==a?void 0:a.value)===yi.SHOW_EMPTY?r:r.filter((0,d.pipe)(ui,ce(t)))})),vi=e=>{const t=Object.values(ae);return e.filter((0,d.pipe)((0,d.prop)("value"),(0,d.includes)(d.__,t)))},Ei=(0,d.pipe)(ui,(0,d.prop)("fieldName")),xi=(0,d.curry)(((e,t)=>{const r=(0,d.pipe)(hi("details"),vi)(e),a=(e=>(0,d.pipe)((0,d.filter)((0,d.pipe)(ui,(0,d.both)((0,d.prop)("children"),ie(e)))),(0,d.map)(Ei)))(r)(t);return t.filter((e=>{let{attributeItem:t}=e;return a.some((e=>t.fieldName.startsWith(e)))||oe(r,t)}))})),Oi=(0,d.pipe)((0,d.map)(ui),(0,d.pluck)("fieldName"),d.identity);function wi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ti=r(36444),Si=r(15115);const Ri=(0,Oe.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"}}))),Ni=e=>{let{isSelected:t,data:r,onChange:a}=e;const{count:n,label:i,value:o}=r,s=!(0,d.isNil)(n),p=Ri(!s||n>0);return l().createElement(nt.MenuItem,{className:p.option,component:"div",onClick:()=>a(r),"data-reltio-id":`reltio-dq-dashboard-option-${r.value}`},l().createElement(nt.Checkbox,{color:"primary",checked:t}),l().createElement("span",{className:p.typeIconWrapper},l().createElement(Cr,{detailType:o})),l().createElement(tn.C,{value:i},l().createElement("div",{className:p.optionLabel},i)),s&&l().createElement("span",{className:p.counter},(0,c.k7L)(n,999)))},Ii=(0,d.curry)(((e,t)=>!!t.find((0,d.propEq)("value",e.value)))),Ai=(0,d.curry)(((e,t)=>{const r=t.findIndex((0,d.propEq)("value",e.value));return-1!==r?(0,d.remove)(r,1,t):t})),Di=e=>{let{defaultFilterOptions:t=[],filterOptions:r,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=Ri(),[s,u]=(0,a.useState)(null),[m,h]=(0,a.useState)([]),[y,g]=(0,a.useState)(n||null);(0,a.useEffect)((()=>{h(((e,t)=>{const r=(0,d.pipe)((0,d.pluck)("options"),d.flatten)(t);return e.filter((e=>{let{value:t}=e;return r.find((0,d.propEq)("value",t))}))})(t,r))}),[t,r]);const b=()=>u(null),v=e=>{h((0,d.ifElse)(Ii(e),Ai(e),(0,d.concat)([e])))},E=!!m.length,x=!!s,O=p()(c.filterIconWrapper,{[c.filterIconWrapperActive]:x,[c.filterIconWrapperSelected]:E}),w=E?c.filterIconFilterApplied:c.filterIcon;return l().createElement("div",{className:c.searchWrapper},l().createElement("div",{"data-reltio-id":"reltio-dq-dashboard-attributes-search-input"},l().createElement(Si.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})}})),l().createElement("div",{className:c.filterByDetails,"data-reltio-id":"reltio-dq-dashboard-attributes-filter"},l().createElement("div",{className:O,onClick:e=>u(e.currentTarget)},l().createElement(Ti.Z,{className:w})),l().createElement(nt.Popover,{open:!!s,anchorEl:s,onClose:()=>{h((0,d.always)(t)),b()},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{"data-reltio-id":"reltio-dq-dashboard-attributes-filter-popup"}},l().createElement("div",{className:c.menu},l().createElement(nt.Typography,{variant:"h6",className:c.dropdownMenuTitle},f().text("Filter")),l().createElement("div",{className:c.valueContainer},r.map((e=>{let{label:t,options:r}=e;return l().createElement("div",{key:t},t&&l().createElement(nt.Typography,{variant:"caption",className:c.groupLabel},t),r.map((e=>{const t=Ii(e,m);return l().createElement(Ni,{key:e.label,data:e,isSelected:t,onChange:v})})))})))),l().createElement("div",{className:c.actionsContainer},l().createElement(nt.Button,{onClick:()=>{h([])},className:c.clearAllButton,disabled:!E,"data-reltio-id":"reltio-dq-dashboard-filter-clear-all-button"},f().text("Clear all")),l().createElement(nt.Button,{onClick:()=>{h(t),b()},"data-reltio-id":"reltio-dq-dashboard-filter-cancel-button"},f().text("Cancel")),l().createElement(nt.Button,{color:"primary",onClick:()=>{o(m),b()},"data-reltio-id":"reltio-dq-dashboard-filter-apply-button"},f().text("Apply"))))))},Ci=(0,Oe.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)"}}}))),Li=e=>{var t,r;let{entityType:i,onAttributesListChange:o,defaultFieldName:s,defaultFilterOptions:u,defaultFilterText:m,disableAttributeSelection:g}=e;const b=Ci(),v=(0,a.useRef)(),E=(0,a.useRef)(),[x,O]=(0,a.useState)(m||""),[w,S]=(0,a.useState)([]),[N,D]=(0,a.useState)(u||gi),[C,L]=(0,a.useState)({fieldName:s}),[_,P]=(0,a.useState)({}),{data:j}=(0,a.useContext)(T),k=null===(t=(0,a.useContext)(R))||void 0===t||null===(r=t.dvfs)||void 0===r?void 0:r.state,M=((e,t)=>{var r,l;const i=(0,n.useSelector)(y.ZP.selectors.getMetadata),o=(0,a.useMemo)((()=>(e=>(0,d.pipe)(c.WN0,de(e),ye))(t)(i,e)),[i,e,t]),[s,p]=(0,a.useState)([]),u=e.uri,f=(0,a.useMemo)((()=>(0,c.qhs)(i,u)),[i,u]),m=null===(r=(0,a.useContext)(R))||void 0===r||null===(l=r.dvfs)||void 0===l?void 0:l.data;return(0,a.useEffect)((()=>{p([]),m&&p(o.map((0,d.evolve)({attributeItem:e=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){wi(e,t,r[t])}))}return e}({},e,{details:me({attrTypeItem:e,dvf:m,matchAttributes:f})},e.children&&{children:e.children.map((t=>(t.details=me({attrTypeItem:t,dvf:m,matchAttributes:f}),t.details.reference=e.isAttributeReference,t)))})})))}),[o,f,m]),s})(i,x),U=Oi(M),B=(0,a.useMemo)((()=>U),[U.toString()]),{data:F,state:z}=((e,t)=>{const[r,l]=(0,a.useState)(I.o.INIT),[n,i]=(0,a.useState)({}),o=(0,A._)(),s=e=>{console.error(e),l(I.o.ERROR),i({})},p=(0,a.useCallback)((()=>{if(t.length)return l(I.o.LOADING),i({}),o((0,c.TTx)({entityTypeUri:e,attributes:t,dataLevel:c.yn8.ATTRIBUTE_TYPE,metrics:[c.N0y.FILL_RATE]})).then(Ye).then((e=>{i(e),l(I.o.LOADED)})).catch(s)}),[o,l,i,t]),d=(0,a.useCallback)((()=>{try{p()}catch(e){s(e)}}),[p]);return(0,a.useEffect)((()=>{d()}),[d]),{data:n,state:r,reload:d}})(i.uri,B);(0,a.useEffect)((()=>P(F)),[F]),(0,a.useEffect)((()=>{const e=(null==j?void 0:j.fillRate)&&He(null==j?void 0:j.fillRate),t=_[C.fieldName];P((r=>!e||(0,d.equals)(t,e)?r:(0,d.assoc)(C.fieldName,e,r)))}),[null==j?void 0:j.fillRate]);const V=z===I.o.LOADING||k===I.o.LOADING||z===I.o.INIT||k===I.o.INIT,{filteredItems:W,filterOptions:H}=(0,a.useMemo)((()=>{const e=z===I.o.INIT||z===I.o.LOADING?M:bi(N,_,M),t=(e=>{const t=Object.values(ae).map((e=>({value:e,label:he(e),group:"details"}))).map((t=>(0,d.assoc)("count",((e,t)=>e.filter((e=>ie([t],e.attributeItem))).length)(e,t),t)));return{label:f().text("Attribute properties"),options:t}})(e);return{filteredItems:xi(N,e),filterOptions:[{label:"",options:gi},t]}}),[M,N,_,z]),Y=(0,a.useMemo)((()=>((e,t)=>e.filter((e=>{let{attributeItem:r}=e;return!t.some((e=>r.fieldName.startsWith(e)&&r.fieldName!==e))})))(W,w)),[W,w]),Z=W.length,G=e=>{o({selectedDetailedAttributeType:e,filterText:x,filterOptions:N}),L({fieldName:e.fieldName})},$=()=>{const e=((e,t)=>(0,d.pipe)((0,d.find)(mi(t)),(0,d.propOr)(null,"attributeItem"))(e))(W,C.fieldName)||fi(W);return(0,d.isEmpty)(e)||g?null:e};(0,a.useEffect)((()=>{var e,t,r;if(g)return void(null===(r=v.current)||void 0===r||r.scrollTo(0));if(W.length){const e=$();L({fieldName:(null==e?void 0:e.fieldName)||C.fieldName})}const a=((e,t)=>(0,d.findIndex)(mi(t))(e))(W,C.fieldName);a>-1?null===(e=v.current)||void 0===e||e.scrollToItem(a,"center"):null===(t=v.current)||void 0===t||t.scrollTo(0)}),[W]),(0,a.useEffect)((()=>{const e=$();o({selectedDetailedAttributeType:e,filterText:x,filterOptions:N})}),[x,N,C]),(0,a.useEffect)((()=>{L((e=>{let{fieldName:t}=e;return g?{fieldName:null}:{fieldName:t}}))}),[g]);const q=e=>{let{scrollOffset:t}=e;if(E.current){var r,a;const e=null===(r=E.current)||void 0===r||null===(a=r.style)||void 0===a?void 0:a.borderTop;0===t&&(E.current.style.borderTop=""),t>0&&""===e&&(E.current.style.borderTop="1px solid rgba(0, 0, 0, 0.05)")}},Q=e=>{let{data:t,index:r,style:a}=e;const{attributeItem:n,level:i=0}=t[r],o=C.fieldName===n.fieldName,c=((e,t)=>e[t.fieldName])(_,n),s=r>0&&i>(0,d.pathOr)(-1,[r+1,"level"],Y);return l().createElement(di,{fillRateData:c,fillRateState:z,isLoading:V,style:a,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:w.includes(n.fieldName),isLastLevelItem:s});var p},K=Y.length,X=!!K;return l().createElement("div",{className:b.root},l().createElement("div",{className:b.title},f().text("Attributes"),l().createElement("span",{className:b.itemCount},`${Z} ${J=Z,1===J?f().text("item"):f().text("items")}`),l().createElement(Di,{defaultFilterText:m,defaultFilterOptions:N,onChangeFilterOptions:D,onChangeFilterText:O,filterOptions:H})),l().createElement("div",{ref:E,className:p()(b.listWrapper,{[b.loadingAnimation]:V}),"data-reltio-id":"reltio-dq-dashboard-attributes-list"},X?l().createElement(tt.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return l().createElement(Qn.FixedSizeList,{ref:v,itemCount:K,width:"100%",height:t,itemData:Y,itemSize:48,onScroll:q},Q)})):!V&&l().createElement(ut,{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:be.MEDIUM})));var J},_i=(0,Oe.Z)({root:{display:"flex",alignItems:"center",width:"100%"},title:{flexShrink:0,paddingLeft:"20px"},content:{overflow:"hidden",flexGrow:1}}),Pi=e=>{let{title:t,children:r}=e;const a=_i();return l().createElement("div",{className:a.root},l().createElement(nt.Typography,{variant:"h6",className:a.title},t),l().createElement("div",{className:a.content},r))};var ji=r(51209);function ki(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Mi(e,t,r[t])}))}return e}function Mi(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={position:"absolute",content:'""',top:0,left:0,right:0,zIndex:1},Bi=(0,Oe.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":ki({},Ui,{top:"8px",height:"4px",background:"linear-gradient(180deg, #EEEEEE 0%, rgba(238, 238, 238, 0) 100%)",zIndex:1}),"&:after":ki({},Ui,{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"}}))),Fi=e=>{let{showEntityLevel:t,dataLevel:r,views:a,layout:n,entityType:i,isSliding:o=!1}=e;const s=Bi({transitionTimeout:.3,attributeListWidth:360,entityLevelBarWidth:76}),d=`${f().text("Entity")}: ${(0,c.idV)(i.label)} ${f().text("overview")}`;return l().createElement("div",{className:s.entityLevelBarWrapper,onClick:t},l().createElement("div",{className:p()(s.entityLevelBar,{[s.entityLevelBarHidden]:r===c.yn8.ENTITY_TYPE}),"data-reltio-id":"reltio-dq-dashboard-entity-level-bar-button"},l().createElement("div",{className:s.expandButton},l().createElement(ji.Z,null),l().createElement("span",{className:s.expandButtonText},d)),f().text("Entity")),l().createElement("div",{className:p()(s.entityLevelLayout,{[s.entityLevelLayoutSliding]:r!==c.yn8.ENTITY_TYPE})},(r===c.yn8.ENTITY_TYPE||o)&&l().createElement(ve.Provider,{value:c.yn8.ENTITY_TYPE},l().createElement(Yn,{views:a,layout:n}))))};var zi=r(73698);const Vi=(0,Oe.Z)((e=>({counter:{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,minWidth:"128px",boxSizing:"border-box","&: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:{maxWidth:"184px",minWidth:"140px",display:"flex",paddingRight:"8px"},optionLabel:{flexGrow:1,fontSize:"13px",textOverflow:"ellipsis",overflow:"hidden",paddingRight:"10px",minWidth:0}})));function Wi(){return Wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Wi.apply(this,arguments)}const Hi=e=>{let{options:t,value:r,onChange:a,dataReltioOptionId:n}=e,i=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["options","value","onChange","dataReltioOptionId"]);const o=Vi(),s=e=>l().createElement("span",{className:o.counter},(0,c.k7L)(e,999));return l().createElement(zi.Z,Wi({variant:"outlined",MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null,classes:{list:o.menu}},value:r,onChange:(0,d.pipe)(Ca.NA,a),renderValue:e=>{const{label:r,count:a}=(0,d.find)((0,d.propEq)("value",e))(t);return l().createElement("div",{className:o.selectValue},r,!(0,d.isNil)(a)&&s(a))},className:o.selectRoot,classes:{outlined:o.select,icon:o.arrowIcon},autoWidth:!0},i),t.map(((e,t)=>{let{value:r,label:a,count:i}=e;return l().createElement(nt.MenuItem,{key:r,value:r,classes:{root:o.optionRoot},"data-reltio-id":`${n}-${t}`},l().createElement(tn.C,{value:a},l().createElement(nt.Typography,{className:o.optionLabel},a)),!(0,d.isNil)(i)&&s(i))})))},Yi=e=>{let{entityTypes:t,entityTypeUri:r,onChange:a}=e;const n=(0,d.pipe)((0,d.map)((e=>{let{label:t,uri:r,entityCount:a}=e;return{label:t,count:a,value:r}})))(t);return l().createElement(Hi,{options:n,value:r,onChange:a,dataReltioOptionId:"reltio-dq-dashboard-entity-type-selector-option",dataReltioId:"reltio-dq-dashboard-entity-type-selector"})},Zi=e=>{let{value:t,onChange:r}=e;const n=(0,a.useMemo)((()=>Mt()),[]);return l().createElement(Hi,{options:n,value:t,onChange:r,dataReltioOptionId:"reltio-dq-dashboard-time-range-selector-option",dataReltioId:"reltio-dq-dashboard-time-range-selector"})};function Gi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){$i(e,t,r[t])}))}return e}function $i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qi={position:"absolute",content:'""',top:0,left:0,right:0,zIndex:1},Qi=(0,Oe.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:a}=e;return{flexGrow:1,position:"absolute",top:"56px",bottom:0,left:`calc(-100% + ${t+r}px)`,width:"100%",height:"calc(100% - 56px)",transition:`left ${a}s`}},contentWrapperOneSlide:()=>({left:0,transition:"none"}),contentWrapperEntityLevel:()=>({left:0}),attributeLevelWrapper:()=>({verticalAlign:"top",width:"auto",height:"100%",flexGrow:1,position:"relative",marginTop:"-12px","&:before":Gi({},qi,{top:"8px",height:"4px",background:"linear-gradient(180deg, #EEEEEE 0%, rgba(238, 238, 238, 0) 100%)",zIndex:1}),"&:after":Gi({},qi,{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"},timeRangeWrapper:{flexGrow:1,display:"flex",flexDirection:"row-reverse",marginRight:"4px"}})));function Ki(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Xi=(0,d.path)([0,"uri"]),Ji=e=>{var t,r,i,o,s;let{config:u,saveState:b,getSavedState:v}=e;const D=Qi({transitionTimeout:.3,attributeListWidth:360,entityLevelBarWidth:76}),P=(()=>{const e=(0,n.useSelector)(y.ZP.selectors.getMetadata);return(0,a.useMemo)((()=>e.entityTypes.filter(c.oDv)),[e.entityTypes])})(),[j,k]=(0,a.useState)(),[M,U]=(0,a.useState)(!1),[B,F]=(0,a.useState)(_.TODAY),z=P&&j?(0,c.nt9)({entityTypes:P},j):null,Y=L(P),[Z,G]=(0,a.useState)(null),{isLoaded:$,savedState:q}=(0,m.a)(v),Q=(0,n.useSelector)(y.ZP.selectors.getCanUserGetDQStatistic),[K,X]=(0,a.useState)(),J=(0,n.useSelector)(y.ZP.selectors.getMetadata),ee=J&&z&&((e,t)=>{const r=e=>{var t;return(0,c.lS4)(e)||(null===(t=e.children)||void 0===t?void 0:t.some(r))};return(0,d.pipe)(c.WN0,(0,d.any)(r))(e,t)})(J,z),te=(e=>{const[t,r]=(0,a.useState)(null),[l,i]=(0,a.useState)(null),o=(0,A._)(),s=(0,n.useSelector)(y.ZP.selectors.getServicesPath),p=(0,n.useSelector)(y.ZP.selectors.getEnvironment),u=(0,n.useSelector)(y.ZP.selectors.getTenant);return(0,a.useEffect)((()=>{o((0,c.JUW)({servicesPath:s,tenant:u,environment:p})).then((e=>{var t;const a=null==e||null===(t=e.data)||void 0===t?void 0:t.apps.find((0,d.propEq)("name","Console")).uri;r(a)})).catch((()=>r(null)))}),[p,u,s]),(0,a.useEffect)((()=>{const r=t&&null!=e&&e.uri?(0,d.pipe)((0,d.split)("?"),(0,d.insert)(1,`datamodeler/entityDetails/${(0,c.nIW)(e.uri)}/validation?`),(0,d.join)(""))(t):null;i(r)}),[e,t]),l})(z),re=(e=>{const[t,r]=(0,a.useState)(null),[l,i]=(0,a.useState)(I.o.INIT),[o,s]=(0,a.useState)(),p=(0,n.useSelector)(y.ZP.selectors.getTenant),d=(0,n.useSelector)(y.ZP.selectors.getDVFPath),u=(0,A._)(),f=(0,n.useSelector)(y.ZP.selectors.getEnvironment),m=(0,n.useSelector)(y.ZP.selectors.getCanUserReadDVF),h=e=>{console.error(e),i(I.o.ERROR),r([]),s(null==e?void 0:e.errorCode)},g=e=>{r(e.functions),s(void 0),i(I.o.LOADED)},b=(0,a.useCallback)((()=>{if(m)return e&&f?(s(void 0),i(I.o.LOADING),u((0,c.HaQ)({dvfPath:d,tenant:p,entityTypeUri:e,env:f})).then(g).catch(h)):void 0;h({errorCode:c.Xt7.ACCESS_DENIED})}),[d,p,e,f]);return(0,a.useEffect)((()=>{b()}),[b]),(0,a.useMemo)((()=>({data:t,state:l,reload:b,errorCode:o})),[t,l,b,o])})(null==z?void 0:z.uri),ae=(0,a.useMemo)((()=>({dvfs:re,dvfConfigLink:te})),[re,te]),le=(0,a.useRef)();(0,a.useEffect)((()=>{le.current=q}),[q]);const ne=(0,a.useCallback)((e=>{if((null==z?void 0:z.uri)!==e){G(null),k(e);const t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Ki(e,t,r[t])}))}return e}({dataLevel:c.yn8.ENTITY_TYPE,entityTypeUri:e},le.current&&{filterOptions:le.current.filterOptions,filterText:le.current.filterText,fieldName:le.current.fieldName});X(c.yn8.ENTITY_TYPE),b(t),le.current=t}}),[null==z?void 0:z.uri]),ie=(null===(t=u.layoutsByDataLevel)||void 0===t?void 0:t[c.yn8.ENTITY_TYPE])||w[c.yn8.ENTITY_TYPE][ee?x.RDM_LOOKUP_EXIST:x.RDM_LOOKUP_NOT_EXIST],oe=null===(r=u.layoutsByDataLevel)||void 0===r?void 0:r[c.yn8.ATTRIBUTE_TYPE],ce=(0,a.useMemo)((()=>((e,t,r)=>{const a=V(t),l=r===_.TODAY?null==e?void 0:e.today:null==e?void 0:e.timeRange,n=w[c.yn8.ATTRIBUTE_TYPE][r===_.TODAY?"today":"timeRange"],i=(0,d.mergeLeft)(l,n);return i[a]||i.default||[]})(oe,null==Z?void 0:Z.type,B)),[null==Z?void 0:Z.type,oe,B]),se=(0,a.useMemo)((()=>ie?((e,t)=>{const r=(0,d.uniqBy)((0,d.prop)("id"),(0,d.concat)((null==e?void 0:e[c.yn8.ENTITY_TYPE])||[],O[c.yn8.ENTITY_TYPE]||[])),a=[E.SUMMARY,E.CONSOLIDATION_RATE,E.DATA_VALIDATION,E.RDM_TRANSCODE];return W({views:r,supportedViews:a,layout:t})})(u.viewsByDataLevel,ie):[]),[u.viewsByDataLevel,ie]),pe=(0,a.useMemo)((()=>H(se)),[se]),de=C({entityType:z,dataLevel:c.yn8.ENTITY_TYPE,metrics:pe}),ue=(0,a.useMemo)((()=>((e,t,r)=>{const a=(0,d.uniqBy)((0,d.prop)("id"),(0,d.concat)((null==e?void 0:e[c.yn8.ATTRIBUTE_TYPE])||[],O[c.yn8.ATTRIBUTE_TYPE]||[])),l=(e=>{switch(e){case g.INTEGER:case g.FLOAT:return[E.SUMMARY,E.CROSSWALK_ANALYSIS,E.DATA_VALIDATION,E.FILL_RATE,E.FREQUENCY,E.UNIQUENESS,E.VALUE_DISTRIBUTION];case g.BOOLEAN:return[E.SUMMARY,E.CROSSWALK_ANALYSIS,E.DATA_VALIDATION,E.FILL_RATE,E.FREQUENCY];case g.STRING:return[E.LENGTH_STATISTIC,E.SUMMARY,E.CROSSWALK_ANALYSIS,E.DATA_VALIDATION,E.FILL_RATE,E.FREQUENCY,E.UNIQUENESS];case g.DATE:return[E.SUMMARY,E.CROSSWALK_ANALYSIS,E.DATA_VALIDATION,E.FILL_RATE,E.FREQUENCY,E.UNIQUENESS,E.VALUE_DISTRIBUTION,E.MONTH_DISTRIBUTION,E.DAY_OF_MONTH_DISTRIBUTION,E.DAY_OF_WEEK_DISTRIBUTION];case g.SSN:return[E.SUMMARY,E.CROSSWALK_ANALYSIS,E.DATA_VALIDATION,E.FILL_RATE,E.FREQUENCY,E.UNIQUENESS,E.PATTERN];case g.UNKNOWN:return[E.SUMMARY,E.CROSSWALK_ANALYSIS,E.DATA_VALIDATION,E.FILL_RATE,E.FREQUENCY,E.UNIQUENESS,E.LENGTH_STATISTIC];default:return[]}})(V(t));return W({views:a,supportedViews:l,layout:r})})(u.viewsByDataLevel,null==Z?void 0:Z.type,ce)),[u.viewsByDataLevel,null==Z?void 0:Z.type,ce]),fe=(0,a.useMemo)((()=>(0,d.pipe)(H,(e=>ge(Z)?(0,d.reject)((0,d.equals)(c.N0y.DATA_VALIDATION))(e):e))(ue)),[ue,Z]),me=C({entityType:z,detailedAttributeType:Z,dataLevel:c.yn8.ATTRIBUTE_TYPE,metrics:fe}),he=(0,d.pipe)((0,d.map)((e=>(0,d.assoc)("entityCount",Y(e.uri))(e))),(0,d.sortWith)([(e,t)=>{let{entityCount:r}=e,{entityCount:a}=t;return r===a||r>0&&a>0?0:0===r?1:-1},(0,d.ascend)((0,d.prop)("label"))]))(P);(0,a.useEffect)((()=>{$&&(k(q.entityTypeUri||Xi(he)),X(ie?q.dataLevel||c.yn8.ENTITY_TYPE:c.yn8.ATTRIBUTE_TYPE))}),[$]),(0,a.useEffect)((()=>{U(!0),K===c.yn8.ENTITY_TYPE&&setTimeout((()=>{G(null)}),300),setTimeout((()=>{U(!1)}),300)}),[K]);const ye=z&&Q&&$&&!!Y(j),ve=!!ie,Ee=K===c.yn8.ATTRIBUTE_TYPE&&!!(null!=(xe=oe)&&xe.timeRange||null!==(Oe=w[c.yn8.ATTRIBUTE_TYPE])&&void 0!==Oe&&Oe.timeRange);var xe,Oe;return l().createElement("div",{className:D.perspectiveView},l().createElement(Pi,{title:f().text("Data Quality")},z&&l().createElement("div",{className:D.navigationWrapper},l().createElement(Yi,{entityTypes:he,entityTypeUri:z.uri,onChange:ne}),l().createElement(qn,{dataLevel:K,detailedAttributeType:Z,onChange:X}),Ee&&l().createElement("div",{className:D.timeRangeWrapper},l().createElement(Zi,{value:B,onChange:F})))),l().createElement("div",{className:p()(D.contentWrapper,{[D.contentWrapperEntityLevel]:K===c.yn8.ENTITY_TYPE,[D.contentWrapperOneSlide]:!ye||!ve})},ye&&l().createElement("div",{className:p()(D.content,{[D.contentWithEntityLevel]:ve})},l().createElement(R.Provider,{value:ae},l().createElement(N.Provider,{value:z},ve&&l().createElement(T.Provider,{value:de},l().createElement(Fi,{showEntityLevel:()=>{X(c.yn8.ENTITY_TYPE)},dataLevel:K,views:se,layout:ie,entityType:z,isSliding:M})),l().createElement(T.Provider,{value:me},l().createElement(Li,{entityType:z,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:r,filterOptions:a}=e;const l=null==t?void 0:t.fieldName,n={entityTypeUri:z.uri,fieldName:l,filterOptions:a,filterText:r,dataLevel:l?c.yn8.ATTRIBUTE_TYPE:K};(0,d.equals)(le.current,n)||(b(n),le.current=n),l&&X(c.yn8.ATTRIBUTE_TYPE),G(t)},defaultFieldName:null===(i=le.current)||void 0===i?void 0:i.fieldName,defaultFilterText:null===(o=le.current)||void 0===o?void 0:o.filterText,defaultFilterOptions:null===(s=le.current)||void 0===s?void 0:s.filterOptions,disableAttributeSelection:K===c.yn8.ENTITY_TYPE}),l().createElement("div",{className:p()(D.attributeLevelWrapper,{[D.attributeLevelWithEntityLevel]:ve})},Z&&l().createElement(S.Provider,{value:Z},l().createElement(Zn,{dataLevel:K,views:ue,layout:ce,timeRange:B,isSliding:M}))))))),!Q&&l().createElement(st,{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:be.LARGE}),$&&z&&!Y(j)&&Q&&l().createElement(ut,{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:be.LARGE})))};function eo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const to=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){eo(e,t,r[t])}))}return e}({},c.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}}),ro=(0,i.Z)(to),ao=(0,o.createGenerateClassName)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0}),lo=e=>{let{store:t,config:r,saveState:i,getSavedState:s}=e;const p=(0,a.useCallback)((0,c.aYu)(s),[s]);return l().createElement(n.Provider,{store:t},l().createElement(o.ThemeProvider,{theme:ro},l().createElement(o.StylesProvider,{generateClassName:ao},l().createElement(Ji,{config:r,saveState:i,getSavedState:p}))))}}}]);
|
|
2
|
-
//# sourceMappingURL=6303.js.map
|