@reltio/remotes 1.4.1194 → 1.4.1195

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/1049.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[1049],{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:()=>N});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)))),v=(0,p.curry)(((e,t,r)=>(0,p.mergeAll)([r,(0,p.pick)(e,t)]))),b=(0,p.curry)(((e,t,r)=>(r||[]).map((r=>(0,p.pipe)((0,p.prop)("id"),g(t),(0,p.defaultTo)({}),v(e,p.__,r))(r)))));var E=r(79692),x=r(66269);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:v,droppingItem:E,isDroppable:x,classes:S}=e;const N=(0,n.useRef)(),R=O(),[I,A]=(0,n.useState)(null),[D,L]=(0,n.useState)(0),{cols:C,rowHeight:P,margin:_}=a,j=(0,n.useMemo)((()=>(e=>(e||[]).map(m))(r)),[r]),k=(0,p.pipe)(y,b(["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=>L(e)}),i().createElement(c(),{innerRef:N,layout:j,cols:C,draggableHandle:o,autoSize:!0,rowHeight:P,width:D,margin:_,onLayoutChange:k,isResizable:!U,isDraggable:!U,className:u()(R.gridLayout,{[R.gridFullscreen]:U}),onDrop:(e,t,r)=>{v&&v(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 N=(0,n.memo)(S)},94175:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(59431),l=r(66269),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(66269),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"},31440:(e,t,r)=>{r.r(t),r.d(t,{default:()=>vo});var a=r(24328),l=r.n(a),n=r(52730),i=r(33016),o=r(36138),c=r(66269),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 v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b;!function(e){e.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"}(b||(b={}));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){v(e,t,r[t])}))}return e}({},c.N0y,b);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:"ValidationViewTimeSeries",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 N=l().createContext(null);N.displayName="DVFContext";const R=l().createContext(null);R.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 L=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({})},v=e=>{p(e),o(I.o.LOADED)},b=(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);v(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]),v)).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{b()}catch(e){g(e)}}),[b]);return(0,a.useEffect)((()=>{E()}),[E]),(0,a.useMemo)((()=>({data:s,state:i,reload:E})),[s,i,E])},C=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 P;!function(e){e.TODAY="today",e.LAST_7_DAYS="7days",e.LAST_30_DAYS="30days"}(P||(P={}));const _=(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:[_(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}},H=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")})}),[])},W=(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,[])},$=e=>+(100*Number(e)).toFixed(2);let q;!function(e){e.RESOLVED="resolved",e.UNRESOLVED="unresolved"}(q||(q={}));const Q={[q.RESOLVED]:"#7F22FD",[q.UNRESOLVED]:"#F085F2"},K=(0,d.map)((e=>{let{group:t}=e;return Q[t]||(0,c.f4_)(t)})),X=e=>{let[t,r]=e;return M([{value:t.total,label:f().text("Mapped values"),group:q.RESOLVED,dataReltioId:"reltio-dq-dashboard-transcode-mapped"},{value:r.total,label:f().text("Unmapped values"),group:q.UNRESOLVED,dataReltioId:"reltio-dq-dashboard-transcode-unmapped"}])},J=e=>[{filter:c.j5E.EQUALS,fieldName:"rdmLookups.resolved",values:[e!==q.RESOLVED]}],ee=z((()=>J)),te=(e,t)=>(e||[]).some((0,d.allPass)([(0,d.propEq)("attribute",t),(0,d.propEq)("status",c.lVm.ACTIVE)])),re=e=>[c.oS0.TYPE_FLOAT,c.oS0.TYPE_DOUBLE,c.oS0.TYPE_NUMBER].includes(e),ae=e=>(0,c.idV)(e.label||e.name);let le;function ne(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){ie(e,t,r[t])}))}return e}function ie(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"}(le||(le={}));const oe=(0,d.curry)(((e,t)=>e.some((e=>t.details[e.value])))),ce=(0,d.curry)(((e,t)=>{var r;return 0===e.length||oe(e,t)||(null===(r=t.children)||void 0===r?void 0:r.some((t=>ce(e,t))))})),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?void 0:r.value})),pe=(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)})),de=(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 pe(e,ne({},t,{fieldName:l}))||(null===(r=t.children)||void 0===r?void 0:r.some((r=>de(e,r,a.concat({name:t.name,label:t.label})))))})),ue=(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||[]:ue(e,r.children||[]);return(a||l.length)&&t.push(Object.assign({},r,l.length&&{children:l})),t}),[])));function fe(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){me(e,t,r[t])}))}return e}function me(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const he=e=>{let{attrTypeItem:t,dvf:r=[],matchAttributes:a=[]}=e;const{uri:l,required:n,isAttributeReference:i}=t;return{[le.INCLUDED_IN_MATCHING]:a.includes(l),[le.CONTAIN_VF]:te(r,l),[le.REQUIRED]:!!n,[le.REFERENCE]:i,[le.RDM_LOOKUP]:(0,c.lS4)(t)}},ye=e=>({[le.INCLUDED_IN_MATCHING]:f().text("Included in match rule"),[le.CONTAIN_VF]:f().text("Has validation functions"),[le.REQUIRED]:f().text("Required"),[le.REFERENCE]:f().text("Reference attribute"),[le.RDM_LOOKUP]:f().text("RDM")}[e]||e),ge=(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?ge(e.children,t.concat({name:e.name,label:e.label}),r||(0,c.YkG)(e),a+1):[];return[{attributeItem:fe({},e,{fieldName:(0,c.Tde)(e.uri,t),isAttributeReference:(0,c.YkG)(e)||r}),level:a},...l]})))(e)})),ve=(0,d.prop)("isAttributeReference");let be;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(be||(be={}));const Ee=l().createContext(null);Ee.displayName="DataLevelContext";const xe=l().createContext(null);xe.displayName="TimeRangeContext";var Oe=r(67268),we=r(95038),Te=r.n(we);function Se(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ne=()=>[{label:f().text("Today"),value:P.TODAY},{label:f().text("Last 7 days"),value:P.LAST_7_DAYS},{label:f().text("Last 30 days"),value:P.LAST_30_DAYS}],Re=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){Se(e,t,r[t])}))}return e}({group:r,label:f().date(r,"MMM D, YYYY")},e(a))})),(0,d.sortBy)((0,d.prop)("group"))),Ie=(0,d.propOr)(1,d.__,{[P.TODAY]:1,[P.LAST_7_DAYS]:7,[P.LAST_30_DAYS]:30}),Ae=e=>{var t;return null==e||null===(t=e.options)||void 0===t?void 0:t.timeSeries};var De=r(79692);const Le=(0,De.Z)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"}}),Ce=e=>{let{label:t,value:r}=e;const a=Le();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:p()(a.label,a.infoDataLabel)},t),r)},Pe=e=>{let{label:t,value:r}=e;const a=Le();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:p()(a.label,a.chartDataLabel)},t),r)},_e=(0,De.Z)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),je=e=>{let{data:t,title:r,DataRenderer:a=Pe}=e;const n=_e();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)))))},ke=(0,De.Z)({fillRateSquare:{height:"8px",width:"8px",display:"inline-block",marginRight:"5px",verticalAlign:"middle"}}),Me=e=>{let{data:t,title:r,getColor:a}=e;const n=ke(),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(je,{title:r,data:i})};var Ue=r(92778),Be=r(8818),Fe=r(75512),ze=r(30553),Ve=r(82726);const He=(0,De.Z)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:"5px",lineHeight:"24px"},infoIcon:{position:"relative"}}))),We=e=>{let{title:t,infoTooltipTitle:r,children:a}=e;const n=!!r,i=!!a,o=He(i);return l().createElement(Ue.Z,{title:t,className:o.root,classes:{title:o.title}},n&&l().createElement(Be.k,{icon:Ve.Z,size:"XXS",tooltipTitle:r,className:o.infoIcon}),i&&l().createElement(Fe.Z,{widthToHide:500},l().createElement(ze.Z,{height:24,margin:16}),a))};var Ye=r(10237);const Ze=(0,De.Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),Ge=e=>{let{config:t,children:r}=e;const n=Ze(),{type:i}=t,o=(0,a.useContext)(Ee),c=(0,a.useContext)(xe)===P.TODAY?`reltio-dq-dashboard-chart-${i}-${o}`:`reltio-dq-dashboard-chart-time-series-${i}-${o}`;return l().createElement(Ye.Z,{className:n.view,"data-reltio-id":c},r)},$e={[c.s9T.MISSING]:"#CE5C00",[c.s9T.EXISTS]:"#C4CE00"},qe=e=>$e[e]||(0,c.f4_)(e),Qe=(0,d.map)((e=>{let{group:t}=e;return qe(t)})),Ke=e=>({[c.s9T.MISSING]:f().text("Missing"),[c.s9T.EXISTS]:f().text("Exists")}[e]||e),Xe=(0,d.pipe)(Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:Ke(t),group:t,value:r}})),(0,d.sortBy)((e=>Object.values(c.s9T).indexOf(e.group))),M),Je=(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]=Xe(a.fillRate)),e}),{})),et=(0,d.propOr)({},"fillRate"),tt=(0,d.pipe)(et,Xe,(0,d.when)(B,(0,d.always)([])),(0,d.converge)(((e,t)=>({chartData:e,colors:t})),[d.identity,Qe])),rt=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:t===c.s9T.EXISTS?c.j5E.EXISTS:c.j5E.MISSING_VALUE,fieldName:r}]})),at=z(rt),lt=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])},nt=e=>{let{keyword:t,entityTypeUri:r}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[_(r)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}},it=e=>{let{fieldName:t,value:r,entityTypeUri:a}=e;return nt({keyword:`${c.j5E.EQUALS}(${t}, ${r})`,entityTypeUri:a})},ot=(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})),ct=e=>{const t=(0,n.useDispatch)(),r=(0,n.useSelector)(y.ZP.selectors.getMetadata),l=(0,a.useContext)(S),i=(0,a.useContext)(R);return(0,d.pipe)(e({detailedAttributeType:l,entityTypeUri:i.uri}),ot(r,i.uri),y.ui.actions.openSearch,t)};var st=r(44443),pt=r(2256),dt=r(4094),ut=r(32944),ft=r(94079),mt=r(43266);const ht=(0,De.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"}}))),yt=h.B9.ERROR,gt=e=>{let{onRefresh:t,height:r,errorData:a={},variant:n=be.SMALL}=e;const{Icon:i=yt,message:o,title:c}=a,s=ht({height:r});return l().createElement("div",{className:p()(s.container,s[`${n}`])},l().createElement(i,{className:s.icon}),c&&l().createElement(ft.Typography,{className:s.title},c),o&&l().createElement(ft.Typography,{className:s.message},o),!!t&&l().createElement(ft.Button,{className:s.refreshButton,startIcon:l().createElement(mt.Z,{color:"primary",className:s.refreshIcon}),onClick:t,"data-reltio-id":"reltio-dq-dashboard-chart-refresh-button"},l().createElement(ft.Typography,{variant:"button"},f().text("Refresh"))))},vt=(0,De.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"}}),bt=h.B9.NO_DATA,Et=e=>{let{height:t,data:r={},variant:a=be.SMALL}=e;const{Icon:n=bt,message:i,title:o}=r,c=vt({height:t});return l().createElement("div",{className:p()(c.container,c[`${a}`])},l().createElement(n,{className:c.icon}),o&&l().createElement(ft.Typography,{className:c.title},o),i&&l().createElement(ft.Typography,{className:c.message},i))},xt=(0,De.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}}))),Ot=e=>{let{loadingState:t,onRefresh:r,children:a,data:n,className:i}=e;const o=xt();return l().createElement(dt.Z,{className:p()(o.viewContent,i)},l().createElement(st.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(pt.Z,{error:l().createElement(gt,{errorData:{message:f().text("Something went wrong")},height:o,variant:be.SMALL})},a({data:n,width:i,height:o})):l().createElement(Et,{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(ut.Z,null);case I.o.ERROR:return l().createElement(gt,{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 wt=r(83348),Tt=r(84900),St=r(2899);const Nt=(0,De.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}}),Rt=e=>{let{payload:t}=e;const r=Nt();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 It(){return It=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},It.apply(this,arguments)}const At=(0,Tt.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=Nt();return l().createElement(St.De,It({layout:"vertical",align:"left",verticalAlign:"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%"},content:l().createElement(Rt,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 Dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Lt={content:'""',position:"absolute",background:"rgba(0, 0, 0, 0.38)",width:"1px",height:"4px",bottom:"-4px",left:0},Ct=(0,De.Z)({root:{display:"flex",flexDirection:"column",height:"100%"},stackedBar:{width:"100%",display:"flex",flexWrap:"nowrap",marginTop:"13px",position:"relative","&:before":Lt,"&: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){Dt(e,t,r[t])}))}return e}({},Lt,{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 Pt(){return Pt=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},Pt.apply(this,arguments)}const _t=(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=Ct();return l().createElement("div",Pt({className:p()(n.bar,r)},a,{ref:t}))}));_t.displayName="Bar";const jt=_t;function kt(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){Mt(e,t,r[t])}))}return e}function Mt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ut=(0,wt.Z)(jt),Bt=e=>{let{label:t,value:r,percent:a}=e;return[{label:t,value:`${f().number(r)} ${U(a)}`}]},Ft=(0,Tt.Z)((e=>{let{data:t,colors:r,classes:a={},onItemClick:n}=e;const i=Ct(),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(Ut,{className:p()(a.bar,c&&i.clickable),key:e.label,tooltipTitle:l().createElement(je,{data:Bt(e)}),style:kt({},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(At,{data:t,colors:r})))})),zt=()=>{const{data:e,state:t,reload:r}=lt(tt),{chartData:a,colors:n}=e,i=ct(at);return l().createElement(Ot,{data:a,loadingState:t,onRefresh:r},(e=>{let{data:t}=e;return l().createElement(Ft,{data:t,colors:n,onItemClick:i})}))},Vt=e=>{let{entityTypeUri:t,attributeFieldName:r,timeRange:l=P.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._)(),v=e=>{console.error(e),p(I.o.ERROR),f(null)},b=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=Ie(e),r=new Date,a=r.setDate(r.getDate()-t),l=Te().utc(r).format("YYYY-MM-DD");return{startDate:Te().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=Ie(r),o=new Date;o.setDate(o.getDate());let c=a,s=Math.round(a*l),p=Math.round(a*n),u=c-s,f=u/c,m=c-p,h=m/c;return{success:!0,data:{[t]:{timeSeries:(0,d.range)(0,i).map((()=>{const e={time:Te().utc(o).format("YYYY-MM-DD"),values:{fillRate:{missing:s,exists:u,fillRate:f},uniqueness:{notUnique:p,unique:m,uniqueness:h},violatedProfiles:{violatedProfilesCount:Math.round(100*(Math.random()+.5)),totalProfilesCount:3e3,data:{}}}};return(()=>{const e=0===o.getDay()||6===o.getDay()?-Math.ceil(Math.random()*a*.001):-Math.ceil(Math.random()*a*.02);c+=e,s=Math.ceil(s+e*Math.random()*.01*100-Math.random()*s*.01),u=c-s,f=u/c,p=Math.ceil(p+Math.random()*p*.02),m=c-p,h=m/c})(),o.setDate(o.getDate()-1),e})).reverse()}}}})({fieldName:r,timeRange:l,count:400,missingPercent:.18,notUniquePercent:.06})))).then((0,d.pipe)((0,d.pathOr)({},["data",r,"timeSeries"]),b)).catch(v)}),[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 Ht(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){Wt(e,t,r[t])}))}return e}function Wt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Yt=(0,De.Z)((e=>({tooltipWrapper:Ht({},e.tooltip,{padding:"4px 8px"})})));function Zt(){return Zt=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},Zt.apply(this,arguments)}const Gt=e=>{let{data:t,width:r,height:n,getTooltip:i,getColor:o,keys:s}=e;const p=Yt(),{cartesianGrid:u,tooltip:f,xAxis:m,yAxis:h,line:y,referenceLine:g}={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},referenceLine:{strokeDasharray:"3 3",stroke:"#000",isFront:!0}},v=(0,a.useCallback)((e=>l().createElement("div",{className:p.tooltipWrapper},i(e))),[i]),[b,E]=(0,a.useState)();return l().createElement(St.wW,{width:r,height:n,data:t,onMouseMove:e=>{e.isTooltipActive?E({group:e.activeLabel,values:(0,d.pluck)("value",e.activePayload)}):E(void 0)},onMouseLeave:()=>{E(void 0)}},b&&l().createElement(St.db,Zt({},g,{segment:[{x:b.group,y:0},{x:b.group,y:Math.max(...b.values)}]})),b&&b.values.map((e=>l().createElement(St.db,Zt({key:e},g,{segment:[{x:t[0].label,y:e},{x:b.group,y:e}]})))),l().createElement(St.q3,u),l().createElement(St.Kc,Zt({},m,{dataKey:"label"})),l().createElement(St.B2,h),s.map((e=>l().createElement(St.x1,Zt({},y,{key:e,dataKey:e,stroke:o?o(e):"#00439D"})))),l().createElement(St.u,Zt({},f,{content:v,cursor:null})))};function $t(){return $t=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},$t.apply(this,arguments)}const qt=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",$t({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("path",{d:"M10 16.667A6.676 6.676 0 013.333 10 6.676 6.676 0 0110 3.333 6.675 6.675 0 0116.667 10 6.675 6.675 0 0110 16.667zm0 1.666c4.6 0 8.333-3.733 8.333-8.333S14.6 1.667 10 1.667A8.336 8.336 0 001.667 10c0 4.6 3.733 8.333 8.333 8.333zM9.167 10v3.333h1.666V10h2.5L10 6.667 6.667 10h2.5z",fill:"#7BAB52"}))};function Qt(){return Qt=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},Qt.apply(this,arguments)}const Kt=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",Qt({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("path",{d:"M10 3.333A6.676 6.676 0 0116.667 10 6.675 6.675 0 0110 16.667 6.675 6.675 0 013.333 10 6.676 6.676 0 0110 3.333zm0-1.666A8.336 8.336 0 001.667 10c0 4.6 3.733 8.333 8.333 8.333S18.333 14.6 18.333 10 14.6 1.667 10 1.667zM10.833 10V6.667H9.167V10h-2.5L10 13.333 13.333 10h-2.5z",fill:"#FF1744"}))},Xt=(0,De.Z)((e=>({infoPanel:{display:"flex",alignItems:"center",gap:"10px",backgroundColor:"rgba(0, 0, 0, 0.05)",margin:"0 0 2px",padding:"6px 12px 6px",color:e.palette.text.secondary,fontSize:"13px",lineHeight:"20px"},info:{color:e.palette.text.primary,fontSize:"14px"},dynamicInfo:{display:"flex",alignItems:"center"},dynamicInfoPositive:{color:"#5C922E"},dynamicInfoNegative:{color:"#FF1744"},percent:{fontWeight:700,paddingRight:"4px"},dynamicIcon:{paddingRight:"4px"}}))),Jt=e=>{let{label:t,percentKey:r,dataKey:a,chartData:n}=e;const i=Xt(),o=(0,d.last)(n),s=o[a],u=o[r],f=((e,t)=>e.length<2?0:(0,d.pipe)((0,d.slice)(-2,1/0),(0,d.pluck)(t),(e=>{let[t,r]=e;return r-t}))(e))(n,r),m=f>0;return l().createElement("div",{className:i.infoPanel},l().createElement("span",null,t),l().createElement("span",{className:i.info},l().createElement("span",{className:i.percent},$(u),"%"),"(",(0,c.k7L)(s,999),")"),l().createElement("span",{className:p()(i.dynamicInfo,{[i.dynamicInfoPositive]:m,[i.dynamicInfoNegative]:!m})},0!==f&&l().createElement(l().Fragment,null,m?l().createElement(qt,{className:i.dynamicIcon}):l().createElement(Kt,{className:i.dynamicIcon}),$(Math.abs(f)),"%")))};function er(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){tr(e,t,r[t])}))}return e}function tr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rr=(0,De.Z)((e=>({todayWrapper:e=>{let{todayBlockHeight:t}=e;return{height:`${t}px`,position:"relative"}},tooltipWrapper:er({},e.tooltip,{padding:"4px 8px"}),todayLabel:{color:"rgba(0, 0, 102, 1)"}}))),ar=[c.s9T.EXISTS,c.s9T.MISSING],lr=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)(ar),Xe,(0,d.map)((e=>(0,d.assoc)("percent",a[e.group],e))))(e);return l().createElement(Me,{data:n,getColor:qe})}},nr=()=>{const e=rr({todayBlockHeight:60}),t=(0,a.useContext)(R),r=(0,a.useContext)(S),n=(0,a.useContext)(xe),i=t.uri,o=r.fieldName,s=(0,a.useMemo)((()=>[c.N0y.FILL_RATE]),[]),{data:p,state:u,reload:m}=Vt({entityTypeUri:i,attributeFieldName:o,timeRange:n,metrics:s}),h=(0,a.useMemo)((()=>Re(et)(p)),[p]),{chartData:y,colors:g}=(0,d.pipe)(d.last,(0,d.defaultTo)({}),(0,d.pick)(ar),(e=>tt({fillRate:e})))(h),v=`${f().text("Today: % of profiles with complete values")}:`;return l().createElement(Ot,{data:h,loadingState:u,onRefresh:m},(t=>{let{data:r,width:a,height:n}=t;return l().createElement(l().Fragment,null,l().createElement(Jt,{label:v,chartData:r,percentKey:c.N0y.FILL_RATE,dataKey:c.s9T.EXISTS}),l().createElement(Gt,{width:a,height:n-60-36,data:r,keys:ar,getColor:qe,getTooltip:lr}),l().createElement("div",{className:e.todayWrapper},l().createElement(ft.Typography,{variant:"caption",className:e.todayLabel},f().text("Today")),l().createElement(At,{data:y,colors:g})))}))};var ir=r(7089);const or=(0,De.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 cr(){return cr=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},cr.apply(this,arguments)}const sr=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=or(),i=(0,a.useContext)(xe),o=(e=>(0,d.pipe)(Ne,(0,d.find)((0,d.propEq)("value",e)),(0,d.propOr)("","label"))())(t?P.TODAY:i);return l().createElement(ir.Z,cr({classes:{root:p()(n.root,{[n.disabled]:!!t}),label:n.label},label:o},r))},pr=e=>{let{config:t}=e;const{title:r}=t,a=l().createElement(je,{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:Ce}),n=Ae(t);return l().createElement(Ge,{config:t},l().createElement(We,{title:r,infoTooltipTitle:a},n&&l().createElement(sr,null)),n?l().createElement(nr,null):l().createElement(zt,null))},dr={[c.dC6.UNIQUE]:"#4BAFFF",[c.dC6.NOT_UNIQUE]:"#C34980"},ur=e=>dr[e]||(0,c.f4_)(e),fr=(0,d.map)((e=>{let{group:t}=e;return ur(t)})),mr=e=>({[c.dC6.UNIQUE]:f().text("Unique"),[c.dC6.NOT_UNIQUE]:f().text("Not unique")}[e]||e),hr=(0,d.pipe)(Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:mr(t),group:t,value:r}})),(0,d.sortBy)((e=>Object.values(c.dC6).indexOf(e.group))),M),yr=(0,d.propOr)({},"uniqueness"),gr=(0,d.pipe)(yr,hr,(0,d.when)(B,(0,d.always)([])),(0,d.converge)(((e,t)=>({chartData:e,colors:t})),[d.identity,fr])),vr=()=>{const{data:e,state:t,reload:r}=lt(gr),{chartData:a,colors:n}=e;return l().createElement(Ot,{data:a,loadingState:t,onRefresh:r},(e=>{let{data:t}=e;return l().createElement(Ft,{data:t,colors:n})}))};function br(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){Er(e,t,r[t])}))}return e}function Er(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xr=(0,De.Z)((e=>({todayWrapper:e=>{let{todayBlockHeight:t}=e;return{height:`${t}px`,position:"relative"}},tooltipWrapper:br({},e.tooltip,{padding:"4px 8px"}),todayLabel:{color:"rgba(0, 0, 102, 1)"}}))),Or=[c.dC6.UNIQUE,c.dC6.NOT_UNIQUE],wr=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)(Or),hr,(0,d.map)((e=>(0,d.assoc)("percent",a[e.group],e))))(e);return l().createElement(Me,{data:n,getColor:ur})}},Tr=()=>{const e=xr({todayBlockHeight:60}),t=(0,a.useContext)(R),r=(0,a.useContext)(S),n=(0,a.useContext)(xe),i=t.uri,o=r.fieldName,s=(0,a.useMemo)((()=>[c.N0y.UNIQUENESS]),[]),{data:p,state:u,reload:m}=Vt({entityTypeUri:i,attributeFieldName:o,timeRange:n,metrics:s}),h=(0,a.useMemo)((()=>Re(yr)(p)),[p]),{chartData:y,colors:g}=(0,d.pipe)(d.last,(0,d.defaultTo)({}),(0,d.pick)(Or),(e=>gr({uniqueness:e})))(h),v=`${f().text("Today: % of profiles with unique values")}:`;return l().createElement(Ot,{data:h,loadingState:u,onRefresh:m},(t=>{let{data:r,width:a,height:n}=t;return l().createElement(l().Fragment,null,l().createElement(Jt,{label:v,chartData:r,percentKey:c.N0y.UNIQUENESS,dataKey:c.dC6.UNIQUE}),l().createElement(Gt,{width:a,height:n-60-36,data:r,keys:Or,getColor:ur,getTooltip:wr}),l().createElement("div",{className:e.todayWrapper},l().createElement(ft.Typography,{variant:"caption",className:e.todayLabel},f().text("Today")),l().createElement(At,{data:y,colors:g})))}))},Sr=e=>{let{config:t}=e;const{title:r}=t,a=l().createElement(je,{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:Ce}),n=Ae(t);return l().createElement(Ge,{config:t},l().createElement(We,{title:r,infoTooltipTitle:a},n&&l().createElement(sr,null)),n?l().createElement(Tr,null):l().createElement(vr,null))};function Nr(){return Nr=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},Nr.apply(this,arguments)}const Rr=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",Nr({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 Ir(){return Ir=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},Ir.apply(this,arguments)}const Ar=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",Ir({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 Dr(){return Dr=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},Dr.apply(this,arguments)}const Lr=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",Dr({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 Cr(){return Cr=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},Cr.apply(this,arguments)}const Pr=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",Cr({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 _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)}const jr=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",_r({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"}))},kr=(0,De.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),Mr={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let Ur;!function(e){e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal"}(Ur||(Ur={}));const Br=e=>{let{detailType:t,size:r=Mr.NORMAL,variant:a=Ur.NORMAL}=e;const n=kr(r),i=p()(n.icon,n[a]);switch(t){case le.RDM_LOOKUP:return l().createElement(Lr,{className:i});case le.CONTAIN_VF:return l().createElement(Rr,{className:i});case le.INCLUDED_IN_MATCHING:return l().createElement(Ar,{className:i});case le.REFERENCE:return l().createElement(Pr,{className:i});case le.REQUIRED:return l().createElement(jr,{className:i});default:return null}},Fr=(0,De.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 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)}function Vr(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){Hr(e,t,r[t])}))}return e}function Hr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Wr=e=>{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=Fr(),{data:o,state:s}=(0,a.useContext)(T);let d=Ur.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===le.REQUIRED&&(u&&(d=Ur.LOADING),u||f||(d=Ur.BAD_QUALITY)),l().createElement(ir.Z,zr({classes:Vr({root:p()(i.root,{[i.badQuality]:t===le.REQUIRED&&!u&&s!==I.o.INIT&&!f}),label:i.label},r),label:ye(t),icon:l().createElement(Br,{detailType:t,variant:d})},n))},Yr=(0,De.Z)({root:{display:"flex",flexWrap:"wrap",flexGrow:1}}),Zr=e=>{let{details:t,chipClasses:r={}}=e;const a=Yr();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(Wr,{key:t,detailType:t,classes:r})})))},Gr=(0,De.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"}}),$r=e=>{let{title:t,children:r,className:a,onClick:n,dataReltioId:i}=e;const o=Gr();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 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:"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 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:"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 Jr(){return Jr=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},Jr.apply(this,arguments)}const ea=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",Jr({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 ta(){return ta=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},ta.apply(this,arguments)}const ra=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",ta({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 aa(){return aa=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},aa.apply(this,arguments)}const la=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",aa({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 na(){return na=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},na.apply(this,arguments)}const ia=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",na({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"})))},oa=(0,De.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}}}),ca={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},sa=e=>{let{type:t,size:r=ca.SMALL}=e;const a=oa(r);switch(V(t)){case g.STRING:return l().createElement(ia,{className:a.icon});case g.FLOAT:return l().createElement(ea,{className:a.icon});case g.INTEGER:return l().createElement(ra,{className:a.icon});case g.BOOLEAN:return l().createElement(Qr,{className:a.icon});case g.DATE:return l().createElement(Xr,{className:a.icon});case g.SSN:return l().createElement(la,{className:a.icon});default:return l().createElement(ia,{className:a.icon})}},pa=e=>{let{detailedAttributeType:t}=e;const r=Gr(),n=(e=>{const[t,r]=(0,a.useState)(null),l=(0,a.useContext)(R),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(ft.CircularProgress,{size:"24",className:r.totalLoading}):(0,c.k7L)(n);return l().createElement("div",null,l().createElement("div",{className:r.header},l().createElement($r,{title:f().text("Profiles"),className:r.attributeTypeSummary},l().createElement(ft.Tooltip,{title:l().createElement(je,{data:[{label:f().text("Entities with exists attribute"),value:f().number(n)}]})},l().createElement("div",null,i))),l().createElement($r,{title:f().text("Data type"),className:r.attributeTypeSummary},(o=t.type,l().createElement(l().Fragment,null,l().createElement("div",{className:r.attributeTypeIconWrapper},l().createElement(sa,{type:o,size:ca.NORMAL})),f().text(o))))),l().createElement(Zr,{details:t.details}));var o},da=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(ft.CircularProgress,{size:"24",className:g.totalLoading}):f().number(e),g=Gr(),v=(0,n.useDispatch)(),b=ct(G),E=e=>{v(y.yC.actions.activityFilterUpdated(e)),b()};return l().createElement("div",{className:g.header},l().createElement($r,{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($r,{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($r,{title:f().text("Attributes"),className:g.entitySummary},f().number(o)),l().createElement($r,{title:f().text("Source systems"),className:g.entitySummary},h(m)))},ua=(0,De.Z)({content:{padding:"0 16px",marginTop:"4px"}}),fa=e=>{let{config:t}=e;const r=ua(),n=(0,a.useContext)(S),i=(0,a.useContext)(Ee),o=(0,a.useContext)(R),s=i===c.yn8.ATTRIBUTE_TYPE,p=s?(0,c.idV)(n.label):`${f().text("Entity")}: ${(0,c.idV)(o.label)}`;return l().createElement(Ge,{config:t},l().createElement(We,{title:p}),l().createElement(dt.Z,{className:r.content},s?l().createElement(pa,{detailedAttributeType:n}):l().createElement(da,{entityType:o})))};var ma=r(58141);const ha=(0,De.Z)({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}});function ya(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){ga(e,t,r[t])}))}return e}function ga(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const va=h.B9.ERROR,ba=e=>{let{config:t,errorData:r,titleChildren:a,infoTooltipTitle:n,onRefresh:i}=e;const{id:o,title:c}=t,s=ha();return l().createElement(ma.Z,{id:o},l().createElement(We,{title:c,infoTooltipTitle:n},a),l().createElement(dt.Z,{className:s.viewContent},l().createElement(st.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},l().createElement(gt,{errorData:ya({Icon:va},r),onRefresh:i,variant:be.SMALL}))))};function Ea(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){xa(e,t,r[t])}))}return e}function xa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Oa=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),wa=e=>{let{sortDirection:t,sortField:r}=e;return(e,a)=>"asc"===t?e[r]>a[r]?1:-1:e[r]<a[r]?1:-1},Ta=(e,t)=>t.filter((t=>e.find((0,d.propEq)("uri",t.group)))),Sa=(e,t)=>e.find((0,d.propEq)("uri",t)),Na=(0,d.curry)(((e,t)=>(0,d.pipe)(Ta,(0,d.map)((t=>{var r;return Ea({},t,{label:null===(r=Sa(e,t.group))||void 0===r?void 0:r.name})})))(e,t))),Ra=(0,d.pipe)((0,d.map)(ae),(0,d.slice)(1,1/0),(0,d.join)(" / ")),Ia=(0,d.curry)(((e,t,r)=>(0,d.pipe)(Ta,(0,d.map)((r=>{const{name:a,attribute:l}=Sa(e,r.group),n=(0,c.X3M)(t,l);return Ea({},r,{label:a,attributeLabel:Ra(n)})})))(e,r))),Aa=Oa("frequency"),Da=Oa("pattern"),La=(e,t)=>`${e}/analyticsAttributes/AttributeValidations/analyticsAttributes/${t}`,Ca=(e,t)=>{let{name:r,uri:a}=e;return[{filter:c.j5E.EQUALS,values:[[r]],fieldName:"analyticsAttributes.AttributeValidations.FunctionName",uri:La(t,"FunctionName")},{filter:c.j5E.EQUALS,values:[[a]],fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",uri:La(t,"FunctionURI")}]},Pa=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return it({fieldName:`${r.fieldName}`,value:t,entityTypeUri:a})})),_a=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.ON,values:[t],fieldName:r}]})),ja=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:r}]})),ka=e=>{let{detailedAttributeType:t,entityTypeUri:r}=e;return(0,d.cond)([[c.j5n,(0,d.always)(Pa)],[c.Lt4,(0,d.always)(z(_a))],[d.identity,(0,d.always)(z(ja))]])(t.type)({detailedAttributeType:t,entityTypeUri:r})},Ma=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return it({fieldName:`${r.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:a})})),Ua=e=>`(${e.length>=100?f().text("top")+" 100":e.length})`;let Ba;!function(e){e.VIOLATED_PERCENTAGE="violatedPercentage",e.VIOLATED_PROFILES_COUNT="violatedProfilesCount"}(Ba||(Ba={}));const Fa=e=>{const{totalProfilesCount:t,violatedProfilesCount:r}=e.violatedProfiles;return{[Ba.VIOLATED_PERCENTAGE]:Math.round(r/t*100),[Ba.VIOLATED_PROFILES_COUNT]:r}};var za=r(31276),Va=r(85709),Ha=r(92332);const Wa=(0,d.pipe)((0,d.split)("|"),(e=>{let[t,r]=e;return{label:t,maxValue:r}})),Ya=(e,t)=>(0,d.is)(Number,t[e])?f().number(t[e]):t[e],Za=e=>{let{children:t,handler:r,handleWidth:n=!0}=e;const i=(0,a.useRef)();return l().createElement(st.Z,{handleWidth:n,onResize:()=>{return r((e=i.current)&&e.clientWidth<e.scrollWidth);var e}},l().createElement(ft.RootRef,{rootRef:i},t))};function Ga(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){$a(e,t,r[t])}))}return e}function $a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qa={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"},Qa={background:"rgba(0, 0, 0, 0.38)",bottom:0,content:'""',height:"3px",left:0,position:"absolute",width:"1px"},Ka=(0,De.Z)((e=>({attribute:{"&:after":qa,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":qa},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":Ga({},Qa,{left:"initial",right:0}),"&:before":Qa,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 Xa(){return Xa=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},Xa.apply(this,arguments)}function Ja(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}function el(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tl=e=>{let{headCellData:t,headIndex:r}=e,n=function(e,t){if(null==e)return{};var r,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=Ka(0===r),{label:o,maxValue:s}=Wa(t.label),d=(0,c.k7L)(Number(s),999),u=!!s,[f,m]=(0,a.useState)(!1),h=l().createElement(Za,{handler:m},l().createElement(ft.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(Ha.default,Xa({},n,{headCellData:Ja({},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 rl=r(99256),al=r(32528);const ll=e=>{let{columnsHeaders:t,chartData:r}=e;const a=Ka();return l().createElement(je,{data:t.map((e=>{let{label:t,id:n}=e;return{label:l().createElement("span",{className:a.tooltipValue},t),value:Ya(n,r)}}))})},nl=(0,al.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=Ka(),u=(0,rl.d)(i),f=!!s;return l().createElement(ft.Tooltip,{title:l().createElement(ll,{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 il=r(43290);const ol=(0,al.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=Ka(),s=(0,rl.d)(i),u=0===t?"0":(0,c.k7L)(t,999);return l().createElement(ft.Tooltip,{title:l().createElement(ll,{columnsHeaders:n,chartData:a})},l().createElement("div",{className:p()(o.numberContainer,s),onClick:i},l().createElement(ft.Typography,{className:o.number},u),!(0,d.isNil)(r)&&l().createElement("div",{className:o.colorBarContainer},l().createElement(il.Z,{width:t,maxWidth:r,className:o.bar}))))})),cl=(0,De.Z)({tableContainer:e=>{let{width:t,height:r}=e;return{height:r,width:t,display:"flex",flexDirection:"column","& .hoveredRow":{background:"transparent"},"& .hoveredRow:after":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,backgroundColor:"rgba(0,0,0,0.07)",pointerEvents:"none"}}},cellBorder:{borderLeft:"none",borderRight:"none!important"}});function sl(){return sl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},sl.apply(this,arguments)}function pl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const dl=(e,t)=>t?`${e} ${t}`:e,ul=e=>{let{width:t,height:r,data:n,columnsOptions:i,basicTableRef:o,onItemClick:c,dataReltioId:s}=e,p=function(e,t){if(null==e)return{};var r,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=cl({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){pl(e,t,r[t])}))}return e}({resizable:!1,sortable:!1,headCellRenderer:tl,rowCellValueRenderer:nl,label:dl(e.label,e.secondLabel),initialWidth:t*e.width},"value"===e.id?{label:dl(e.label,e.secondLabel).concat(`|${m}`),maxValue:m,rowCellValueRenderer:ol}:{},(0,d.omit)(["label","width"],e))))),[i,m,t]),y=(0,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(Va.Z,sl({columnsData:h,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:f,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:g,hoverStateEnabled:!0},p)))},fl=(0,De.Z)((()=>({layoutItemContent:{padding:"0 0 10px"}}))),ml=(0,Tt.Z)((e=>{let{config:t,data:r,title:n,columnsOptions:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,titleChildren:p,state:d,onRefresh:u}=e;const f=fl(),[m,h]=(0,a.useState)("desc"),[y,g]=(0,a.useState)("value"),v=(0,a.useCallback)(((e,t)=>c?c({sortDirection:m,sortField:y})(e,t):wa({sortDirection:m,sortField:y})(e,t)),[m,y,c]),b=e=>{h((()=>y===e?(0,za.Dh)(m):m)),g(e)},E=(0,a.useMemo)((()=>[...r.sort(v)]),[v,r]);return l().createElement(Ge,{config:t},l().createElement(We,{title:n,infoTooltipTitle:o},p),l().createElement(Ot,{className:f.layoutItemContent,data:E,loadingState:d,onRefresh:u},(e=>{let{data:t,width:r=0,height:a=0}=e;return l().createElement(ul,{data:t,width:r,height:a,columnsOptions:i,sorting:{field:y,order:m},onSort:b,onItemClick:s})})))}));function hl(){return hl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},hl.apply(this,arguments)}const yl=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",hl({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 gl(){return gl=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},gl.apply(this,arguments)}const vl=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",gl({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 bl(){return bl=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},bl.apply(this,arguments)}const El=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",bl({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"}))))},xl=(0,De.Z)((e=>({title:{whiteSpace:"nowrap",height:"24px",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"},titleCount:{overflow:"hidden",lineHeight:"24px",textOverflow:"ellipsis"},viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"},countProfiles:{color:e.palette.text.primary,fontWeight:700}})));let Ol;!function(e){e.DVF_NOT_SUPPORTED="dvfNotSupported",e.DVF_NOT_CONFIGURE="dvfNotConfigured",e.DATA_VALID="dataValid",e.PERMISSION_DENIED="permissionDenied"}(Ol||(Ol={}));const wl=e=>{let{chartType:t,dataLevel:r,title:a,infoTooltipTitle:n,titleChildren:i,dvfConfigLink:o,config:s}=e;const p=xl();let d,u,m;const y=r===c.yn8.ATTRIBUTE_TYPE?f().text("attribute type"):f().text("entity type");switch(t){case Ol.DVF_NOT_SUPPORTED:d=El,m=f().text("Data validation functions are not supported for\nReference attributes at this time.");break;case Ol.DVF_NOT_CONFIGURE:d=vl,u=f().text("If we spot any validation issues, we’ll display them here."),m=l().createElement(l().Fragment,null,l().createElement(ft.Link,{href:o,target:"_blank",component:o?"a":"span",color:o?"primary":"inherit",underline:o?"hover":"none","data-reltio-id":"reltio-dq-dashboard-define-dvf-link"},`${f().text("Define some data validation functions")} `),f().text("for this ${dataSourceLabel} (or ask your Tenant Admin).",{dataSourceLabel:y}));break;case Ol.DATA_VALID:d=yl,u=f().text("We didn’t spot any validation issues for this ${dataSourceLabel}.\nYou can kick back and enjoy a cold one.",{dataSourceLabel:y}),m=f().text("Nice one!");break;case Ol.PERMISSION_DENIED:d=h.B9.ERROR,u=f().text("Please contact your Tenant Admin to change permissions"),m=f().text("You don’t currently have permission to view this chart")}return l().createElement(Ge,{config:s},l().createElement(We,{title:a,infoTooltipTitle:n},i),l().createElement(dt.Z,{className:p.viewContent},l().createElement(st.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=0}=e;return l().createElement(Et,{height:t,data:{Icon:d,title:m,message:u}})}))))},Tl=e=>{let{isDataValid:t,totalProfiles:r,invalidProfiles:a}=e;const n=xl();return l().createElement(ft.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")}`))},Sl=e=>{const{config:t}=e,r=(0,n.useSelector)(y.ZP.selectors.getMetadata),i=(0,a.useContext)(Ee),o=i===c.yn8.ATTRIBUTE_TYPE,{dvfs:s,dvfConfigLink:p}=(0,a.useContext)(N),{data:u,state:m,reload:h,errorCode:g}=s,v=(0,a.useContext)(S),b=(0,a.useContext)(R),E=b.uri,x=(o?((e,t)=>(e||[]).filter((0,d.propEq)("attribute",t)))(u,null==v?void 0:v.uri):u)||[],O=x.filter((0,d.propEq)("status",c.lVm.ACTIVE)),{data:w,state:T,reload:D}=lt(o?(e=>(0,d.pipe)(Oa("dataValidationFunctions"),Na(e)))(O):((e,t)=>(0,d.pipe)(Oa("dataValidationFunctions"),Ia(e,t)))(O,r)),L=(0,a.useMemo)((()=>[b]),[b]),P=(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])}),_=C(L)(E),j=ct((e=>t=>{let{entityTypeUri:r}=t;return t=>{const a=Sa(e,t);return(0,d.pipe)(Ca,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&&ve(v),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,H=!(k===I.o.ERROR&&g!==c.Xt7.DVF_NOT_CONFIGURED)&&!z&&k!==I.o.LOADING&&l().createElement(Tl,{isDataValid:V,totalProfiles:_,invalidProfiles:P}),W=l().createElement(je,{title:f().text("Profiles with invalid data"),data:[{value:f().text("Shows the number of profiles that violate active validation functions")}],DataRenderer:Ce}),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(wl,{config:t,chartType:B?Ol.DVF_NOT_SUPPORTED:z?Ol.DVF_NOT_CONFIGURE:V?Ol.DATA_VALID:U?Ol.PERMISSION_DENIED:void 0,title:f().text(t.title),infoTooltipTitle:W,titleChildren:H,dvfConfigLink:p,dataLevel:i}):l().createElement(ml,{config:t,title:f().text(t.title),data:w,onItemClick:j,titleChildren:H,state:k,onRefresh:M,customComparator:wa,infoTooltipTitle:W,columnsOptions:Y})},Nl=e=>{let{active:t,payload:r}=e;if(t&&r&&r.length){const{payload:e}=r[0],t=[{value:`${e.violatedPercentage}% (${(0,c.k7L)(+e.violatedProfilesCount)} ${f().text("profiles")})`}];return l().createElement(je,{title:e.label,data:t})}},Rl=e=>{const{config:t}=e,{title:r}=t,n=(0,a.useContext)(xe),i=(0,a.useContext)(R),o=(0,a.useContext)(S),s=i.uri,p=o.fieldName,d=(0,a.useMemo)((()=>[c.N0y.DATA_VALIDATION]),[]),{data:u,state:m,reload:h}=Vt({entityTypeUri:s,attributeFieldName:p,timeRange:n,metrics:d}),y=(0,a.useMemo)((()=>Re(Fa)(u)),[u]),g=l().createElement(je,{title:f().text("Profiles with invalid data"),data:[{value:f().text("Shows the number of profiles that violate active validation functions")}],DataRenderer:Ce}),v=`${f().text("Today: % of profiles with invalid data:")}:`;return l().createElement(Ge,{config:t},l().createElement(We,{title:r,infoTooltipTitle:g},l().createElement(sr,null)),l().createElement(Ot,{data:y,loadingState:m,onRefresh:h},(e=>{let{data:t,width:r,height:a}=e;return l().createElement(l().Fragment,null,l().createElement(Jt,{label:v,chartData:t,percentKey:Ba.VIOLATED_PERCENTAGE,dataKey:Ba.VIOLATED_PROFILES_COUNT}),l().createElement(Gt,{width:r,height:a-36,data:t,keys:[Ba.VIOLATED_PERCENTAGE],getTooltip:Nl}))})))},Il=e=>{const{config:t}=e,r=Ae(t);return l().createElement(Ge,{config:t},r?l().createElement(Rl,e):l().createElement(Sl,e))},Al=(0,De.Z)({monoFontCell:{fontFamily:'"Roboto Mono", monospace'}}),Dl=e=>{let{config:t}=e;const r=Al(),{data:n,state:i,reload:o}=lt(Aa),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=ct(ka),m=l().createElement(je,{title:f().text("Frequency analysis"),data:[{value:f().text("Shows the number of times each value occurs")}],DataRenderer:Ce}),h=[{id:"label",label:f().text("Value"),secondLabel:Ua(n),width:.4,cellClassName:p()({[r.monoFontCell]:(0,c.m6e)(s)})},{id:"value",label:f().text("Count"),width:.6}];return l().createElement(ml,{config:t,data:d,title:t.title,infoTooltipTitle:m,onItemClick:u,state:i,onRefresh:o,columnsOptions:h})};function Ll(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){Cl(e,t,r[t])}))}return e}function Cl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pl,_l;!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"}(Pl||(Pl={})),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"}(_l||(_l={}));const jl=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),kl="Reltio profiles",Ml="Source profiles",Ul=(0,d.pipe)((0,d.pathOr)({},["consolidationRate"]),(0,d.converge)(d.concat,[(0,d.pipe)((0,d.prop)("totalCrosswalksBySource"),(0,d.omit)(["ReltioCleanser"]),(e=>[Ll({},e,{label:Ml,group:Ml})])),(0,d.pipe)((0,d.prop)("totalEntities"),(e=>[(0,d.assoc)(kl,e,{label:kl,group:kl})]))]));var Bl;!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"}(Bl||(Bl={}));const Fl=(e,t)=>{const r={lengthStatistics:{[Bl.MEDIAN]:f().text("Median"),[Bl.AVERAGE]:f().text("Average"),[Bl.MININMUN]:f().text("Minimum"),[Bl.MAXIMUM]:f().text("Maximum")},valueDistribution:{[Bl.MEDIAN]:f().text("Median"),[Bl.AVERAGE]:f().text("Average"),[Bl.MININMUN]:f().text("Minimum"),[Bl.MAXIMUM]:f().text("Maximum")},crosswalkAnalysis:{[Bl.NUMBER_OF_SOURCES]:f().text("No. of source systems"),[Bl.AVG_NUMBER_OF_PROFILES]:f().text("Avg no. of profiles"),[Bl.MIN_NUMBER_OF_PROFILES]:f().text("Min no. of profiles"),[Bl.MAX_NUMBER_OF_PROFILES]:f().text("Max no. of profiles")}};return(0,d.pathOr)(null,[t,e],r)},zl=e=>(0,d.pipe)((0,d.propOr)({},e),Object.entries,(0,d.map)((t=>{let[r,a]=t;return{label:Fl(r,e),value:a}})),(0,d.filter)((e=>{let{label:t}=e;return t})),M),Vl=e=>t=>({chartData:jl(e)(t),infoPanelData:zl(e)(t)}),Hl=(e,t)=>(0,c.Lt4)(t)?(0,c.mB6)({dataTypeDefinition:{type:t}},Number(e)):f().number(e),Wl=(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)=>re(t)?`[${e}${r?"]":")"}`:e)(`${Hl(l,e)} - ${Hl(n,e)}`,e,i):Hl(l,e);return Ll({},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 Ll({},t,{value:r,localizedValue:(0,c.Lt4)(e)?r:t.localizedValue})})),chartData:a}})),Yl=(0,d.pipe)(Vl("lengthStatistics"),Wl("")),Zl=Vl("monthDistribution"),Gl=Vl("dayOfWeekDistribution"),$l=Vl("dayOfMonthDistribution"),ql=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return it({fieldName:`${r.fieldName}.day_of_week`,value:Pl[t.toLowerCase()],entityTypeUri:a})})),Ql=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return it({fieldName:`${r.fieldName}.month`,value:_l[t.toLowerCase()],entityTypeUri:a})})),Kl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return it({fieldName:`${r.fieldName}.day_of_month`,value:t,entityTypeUri:a})})),Xl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;const[l,n]=t.split(",");return l===n?it({fieldName:`${r.fieldName}.length`,value:l,entityTypeUri:a}):(e=>{let{fieldName:t,startRange:r,endRange:a,entityTypeUri:l}=e;return nt({keyword:`${c.j5E.IN_RANGE}(${t}, ${r}, ${a})`,entityTypeUri:l})})({fieldName:`${r.fieldName}.length`,startRange:l,endRange:n,entityTypeUri:a})})),Jl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return it({fieldName:`${r.fieldName}.crosswalk_sources`,value:t,entityTypeUri:a})})),en=(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}]})),tn=(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}]})),rn=(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})),an=(0,d.cond)([[c.Lt4,(0,d.always)(z(en))],[re,(0,d.always)(z(rn))],[d.identity,(0,d.always)(z(tn))]]),ln=(0,d.curry)(((e,t)=>t===kl?[]:[{filter:c.j5E.EQUALS,fieldName:"sourceSystems",values:[[t]]}])),nn=z(ln),on=(0,d.curry)(((e,t)=>!e||(0,d.propEq)("key",t,e)||t===kl?1:.12)),cn=e=>e>999?f().number(e,"0,0.0a").toUpperCase():e;function sn(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){pn(e,t,r[t])}))}return e}function pn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const dn=(0,De.Z)((e=>({tooltipWrapper:sn({},e.tooltip,{padding:"4px 8px"})}))),un=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=dn();return a&&l().createElement("div",{className:p.tooltipWrapper},l().createElement(je,{data:[{label:s,value:c},{label:f().text("No of profiles"),value:f().number(o)}]}))},fn=(0,De.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"}}))),mn=e=>{let{data:t}=e;const r=fn();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(ft.Tooltip,{title:n},l().createElement("span",{className:r.chartInfoValue},a)):l().createElement("span",{className:r.chartInfoValue},a))})))};var hn=r(88611);const yn=(0,De.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"}}}))),gn=e=>{let{width:t,height:r,label:a,x:n,y:i}=e;const o=yn({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(hn.C,{value:a},l().createElement("div",{className:o.xAxisLabel},a))))},vn=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(gn,{width:s,height:n,label:c,x:t,y:r})},bn=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&&vn,tickLine:!1,interval:r||0,dataKey:"label"},yAxis:{axisLine:!1,tickLine:!1,tick:n||{fill:"#000",fontSize:12},width:60,tickFormatter:cn,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 En(){return En=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},En.apply(this,arguments)}const xn=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=fn(),n=t?a.clickable:void 0;return l().createElement(St.Ae,En({},r,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},On=e=>{const{value:t}=e;return t>0?l().createElement(St.Ae,e):null};function wn(){return wn=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},wn.apply(this,arguments)}const Tn=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=fn(),{title:m}=r,{cartesianGrid:h,bar:y,xAxis:g,yAxis:v,labelForX:b,labelForY:E,barChart:x}=bn(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(Ge,{config:r},l().createElement(We,{title:m,infoTooltipTitle:c}),T&&l().createElement(mn,{data:o}),l().createElement(Ot,{data:t,loadingState:d,onRefresh:u},(e=>{let{data:t,width:r=0,height:o=0}=e;return l().createElement("div",null,l().createElement(St.vz,wn({width:r,height:o,data:t,onClick:O},x),l().createElement(St.q3,h),l().createElement(St.u,{content:l().createElement(un,{name:i}),cursor:l().createElement(xn,{isClickable:!!O})}),l().createElement(St.$Q,wn({},y,{shape:l().createElement(On,{className:w})})),l().createElement(St.B2,v,l().createElement(St.__,wn({},E,{value:n}))),l().createElement(St.Kc,g,l().createElement(St.__,wn({},b,{value:a})))))})))},Sn=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=lt(Yl),{chartData:i,infoPanelData:o}=r,c=ct(Xl),s=l().createElement(je,{title:f().text("Length statistics"),data:[{value:f().text("Measures the string length of values")}],DataRenderer:Ce});return l().createElement(Tn,{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 Nn=r(94175);const Rn=(0,De.Z)({icon:{width:"20px",height:"20px",borderRadius:"4px",fontSize:"14px",marginRight:"8px"},text:e=>{let{color:t}=e;return{backgroundColor:t}}}),In=e=>{let{chartData:t}=e;const{group:r,label:a}=t,n=Rn({color:(0,c.kW2)(r)});return l().createElement(l().Fragment,null,l().createElement(Nn.Z,{sourceType:r,className:n.icon,classes:{textRoot:n.text}}),a)};function An(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){Dn(e,t,r[t])}))}return e}function Dn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ln=e=>{let{config:t}=e;const r=(0,n.useSelector)(y.ZP.selectors.getMetadata),{data:a,state:i,reload:o}=lt((e=>(0,d.pipe)(Vl("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=ct(Jl),u=l().createElement(je,{title:f().text("Source system analysis"),data:[{value:f().text("Distribution of source systems contributing to profiles")}],DataRenderer:Ce}),m=[{id:"label",label:f().text("Source system"),secondLabel:`(${s.length})`,width:.4,sortable:!0,labelRenderer:In},{id:"value",label:f().text("Profiles"),width:.6,sortable:!0}];return l().createElement(ml,{config:An({},t),data:s,title:t.title,infoTooltipTitle:u,onItemClick:p,state:i,onRefresh:o,customComparator:wa,columnsOptions:m})},Cn=e=>{let{config:t}=e;const r=(0,a.useContext)(S).type,{data:n,state:i,reload:o}=lt((e=>(0,d.pipe)(Vl("valueDistribution"),Wl(e)))(r)),{chartData:c,infoPanelData:s}=n,p=ct(an(r));return l().createElement(Tn,{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})},Pn=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=lt(Zl),{chartData:i,infoPanelData:o}=r,c=ct(Ql);return l().createElement(Tn,{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})},_n=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=lt(Gl),{chartData:i,infoPanelData:o}=r,c=ct(ql);return l().createElement(Tn,{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})},jn=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=lt($l),{chartData:i,infoPanelData:o}=r,c=ct(Kl);return l().createElement(Tn,{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})},kn=e=>{let{config:t}=e;const r=Al(),{data:a,state:n,reload:i}=lt(Da),o=ct(Ma),c=l().createElement(je,{title:f().text("Pattern analysis"),data:[]}),s=[{id:"label",label:f().text("Value"),secondLabel:Ua(a),width:.4,cellClassName:r.monoFontCell},{id:"value",label:f().text("Count"),width:.6}];return l().createElement(ml,{config:t,data:a,title:t.title,infoTooltipTitle:c,onItemClick:o,state:n,onRefresh:i,columnsOptions:s})};function Mn(){return Mn=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},Mn.apply(this,arguments)}const Un=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=fn(),{cartesianGrid:v,xAxis:b,yAxis:E,labelForX:x,labelForY:O,barChart:w,bar:T}=bn(f),S=(0,d.curry)(((e,t)=>m&&m(e,t.group))),N=m?g.clickable:void 0;return l().createElement("div",{"data-reltio-id":y},l().createElement(St.vz,Mn({width:s,height:p,data:a},w,{margin:{top:15}}),l().createElement(St.q3,v),l().createElement(St.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(St.$Q,{stackId:"all",dataKey:e,opacity:i?i(e):1,fill:h(e),onMouseOver:o(e),onMouseLeave:o(null),key:e,label:r(t),maxBarSize:T.maxBarSize,onClick:S(e),className:N})))})(a),l().createElement(St.B2,E,l().createElement(St.__,Mn({},O,{value:r}))),l().createElement(St.Kc,b,l().createElement(St.__,Mn({},x,{value:t})))))};function Bn(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){Fn(e,t,r[t])}))}return e}function Fn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zn=(0,De.Z)({icon:e=>{let{color:t}=e;return{backgroundColor:t,flexShrink:0,fontSize:"14px",height:"12px",margin:" 0 8px 0 0",width:"12px"}}}),Vn=(0,De.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:Bn({},e.tooltip,{padding:"4px 8px"})}))),Hn=e=>{let{data:t}=e;const r=Vn(),{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(ft.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")})`))},Wn=e=>{let{chartData:t}=e;const{group:r,label:a}=t,n=zn({color:(0,c.kW2)(r)});return l().createElement(l().Fragment,null,l().createElement("div",{className:n.icon}),a)},Yn=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"},cn(Number(a))):null},Zn=e=>"Reltio profiles"===e?"#0072CE":(0,c.kW2)(e),Gn=l().createElement(je,{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.")}]}),$n=e=>{let{config:t}=e;const r=(0,n.useSelector)(y.ZP.selectors.getMetadata),i=Vn(),{title:o}=t,[s,u]=(0,a.useState)(),{data:m,state:h,reload:g}=lt(Ul),{data:v}=lt((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:b}=(0,a.useContext)(T),E=ct(nn),x=(0,a.useMemo)((()=>{const e=(0,d.pick)(["group","label"],m[0]);for(let t=v.length-1;t>=0;t--)e[v[t].group]=m[0][v[t].group];return[e,m[1]]}),[v,m]),O=(0,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(b.consolidationRate.totalEntities)}]:[{label:f().text("Source system"),value:(0,c.tH7)(r,s.key)},{label:f().text("Source profiles"),value:f().number(b.consolidationRate.totalCrosswalksBySource[s.key])}],l().createElement("div",{className:i.tooltipWrapper},l().createElement(je,{data:a}))}),[s,b,r]),w=(0,a.useCallback)((e=>()=>{if(e){const t=v.findIndex((0,d.propEq)("group",e));u({rowIndex:t,key:e})}else u(null)}),[u,v]),S=(0,a.useCallback)((e=>{if((0,d.isNil)(e))u(null);else{var t;const r=null===(t=v[e])||void 0===t?void 0:t.group;u({rowIndex:e,key:r})}}),[u,v]),N=e=>{if(!(0,d.isNil)(e)){var t;const r=null===(t=v[e])||void 0===t?void 0:t.group;E(r)}},R=[{id:"label",label:f().text("Source system"),secondLabel:`(${f().number(v.length)})`,resizable:!1,labelRenderer:Wn,width:.3},{id:"value",resizable:!1,label:f().text("Source profiles"),width:.7}];return l().createElement(Ge,{config:t},l().createElement(We,{title:o,infoTooltipTitle:Gn},b.consolidationRate&&l().createElement(Hn,{data:b})),l().createElement(Ot,{data:v,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(Un,{yAxisLabel:f().text("No. of profiles"),data:x,getTooltip:O,getBarOpacity:on(s),getBarColor:Zn,onBarSelect:w,width:256,height:t,options:{showCategories:!0,maxBarSize:40,yTickRenderer:Yn,tickCount:8},onItemClick:E,dataReltioId:"reltio-dq-dashboard-consolidation-rate-barchart",showTopLabel:!0}),l().createElement(ul,{data:v,width:r-256,height:t,columnsOptions:R,sorting:{field:"value",order:"desc"},onRowClick:N,onRowHover:S,hoverRowIndex:null==s?void 0:s.rowIndex,hoverStateEnabled:!0,dataReltioId:"reltio-dq-dashboard-consolidation-rate-tablechart"}))})))},qn=(0,De.Z)({content:{marginTop:"-13px"},bar:{height:"16px"}}),Qn=e=>{let{config:t}=e;const{title:r}=t,n=ct(ee),{data:i,state:o,reload:s}=(()=>{const e=(0,a.useContext)(R),[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(X).then(p).catch(s))),[o]);return(0,a.useEffect)((()=>{d()}),[d]),{data:l,state:t,reload:d}})(),p=K(i),d=qn(),u=l().createElement(je,{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:Ce});return l().createElement(Ge,{config:t},l().createElement(We,{title:r,infoTooltipTitle:u}),l().createElement(Ot,{data:i,loadingState:o,onRefresh:s,className:d.content},(e=>{let{data:t}=e;return l().createElement(Ft,{data:t,colors:p,onItemClick:n,classes:{bar:d.bar}})})))};function Kn(){return Kn=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},Kn.apply(this,arguments)}class Xn{}Xn.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(pr,i);case E.UNIQUENESS:return l().createElement(Sr,i);case E.SUMMARY:return l().createElement(fa,i);case E.DATA_VALIDATION:return l().createElement(Il,i);case E.FREQUENCY:return l().createElement(Dl,i);case E.LENGTH_STATISTIC:return l().createElement(Sn,i);case E.CROSSWALK_ANALYSIS:return l().createElement(Ln,i);case E.VALUE_DISTRIBUTION:return l().createElement(Cn,i);case E.MONTH_DISTRIBUTION:return l().createElement(Pn,i);case E.DAY_OF_WEEK_DISTRIBUTION:return l().createElement(_n,i);case E.DAY_OF_MONTH_DISTRIBUTION:return l().createElement(jn,i);case E.PATTERN:return l().createElement(kn,i);case E.CONSOLIDATION_RATE:return l().createElement($n,i);case E.RDM_TRANSCODE:return l().createElement(Qn,i);default:return l().createElement(ba,Kn({},i,{errorData:{message:f().text("Chart isn't supported for this data type")}}))}};const Jn=Xn,ei=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},Jn.getComponent({type:p,config:s,onToggleFullscreen:a,isFullscreen:n}),o)},ti=(0,De.Z)({root:{overflow:"auto",backgroundColor:"#EEEEEE",height:"100%",flexGrow:1,padding:"0 4px",boxSizing:"border-box"}}),ri=(0,d.map)((0,d.assoc)("isStatic",!0)),ai={cols:6,rowHeight:10,margin:[12,12]},li=(0,a.memo)((e=>{let{views:t,layout:r,layoutOptions:n=ai}=e;const i=ti(),o=(0,a.useMemo)((()=>ri(r)),[r]);return l().createElement("div",{className:i.root},l().createElement(Oe.Z,{LayoutItem:ei,views:t,layout:o,layoutOptions:n}))})),ni=e=>{let{dataLevel:t,views:r,layout:a,timeRange:n,isSliding:i=!1}=e;return(t===c.yn8.ATTRIBUTE_TYPE||i)&&l().createElement(xe.Provider,{value:n},l().createElement(Ee.Provider,{value:c.yn8.ATTRIBUTE_TYPE},l().createElement(li,{views:r,layout:a})))};var ii=r(15762);const oi=(0,De.Z)((e=>({breadcrumb:{fontSize:"16px",color:e.palette.text.primary},active:{color:"rgba(0, 0, 102, 1)"},clickable:{cursor:"pointer"}}))),ci=e=>{let{dataLevel:t,detailedAttributeType:r,onChange:a}=e;const n=oi();return l().createElement(ft.Breadcrumbs,{separator:l().createElement(ii.Z,{fontSize:"small"}),"aria-label":"breadcrumb"},[l().createElement(ft.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(ft.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 si=r(50166),pi=r(83543),di=r(98989),ui=r(31269),fi=r(22385);const mi=(0,De.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"}}),hi=e=>{let{details:t,classes:r,fillRateData:a,fillRateState:n}=e;const i=mi(),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=Ur.NORMAL;if(t===le.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=Ur.LOADING),e||t||(s=Ur.BAD_QUALITY)}var u,f;return l().createElement("div",{key:t,className:p()(r&&(o||i.activeIcon),i.detailIcon)},r&&l().createElement(ft.Tooltip,{title:ye(t)},l().createElement("span",null,l().createElement(Br,{detailType:t,variant:s,size:Mr.SMALL}))))})))},yi=(0,De.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 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){vi(e,t,r[t])}))}return e}function vi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const bi=(0,Tt.Z)((e=>{let{data:t}=e;const r=yi(),a=Qe(t);return B(t)?l().createElement("div",{className:r.bar},l().createElement("div",{className:p()(r.barPart,r.inactiveBarPart)})):l().createElement(ft.Tooltip,{title:l().createElement(Me,{title:f().text("Fill rate"),data:t,getColor:qe})},l().createElement("div",{className:r.bar},t.map(((e,t)=>l().createElement("div",{key:e.group,className:r.barPart,style:gi({},Y(e),{background:a[t]})})))))})),Ei="rgba(0, 114, 206, 0.12)",xi=(0,De.Z)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:Ei,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:Ei}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"},lastLevelSelected:{"&:after":{top:"13px"}}}),Oi=e=>{let{level:t,margin:r,hasChildren:a,isLastLevelItem:n,isCollapsed:i,isSelected:o=!1}=e;const c=xi(),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(ui.Z,{key:e,margin:r,level:e,className:c.line}))),s&&l().createElement(ui.Z,{margin:r,level:t,className:p()(c.line,!a&&t>0&&c.horizontalLine,a&&c.parentLine,n&&c.lastLevel,o&&n&&c.lastLevelSelected)}))},wi=(0,De.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"}}),Ti=e=>{let{detailedAttributeType:t,fillRateData:r,fillRateState:a,style:n,level:i,selected:o=!1,onClick:c,onCollapse:s=za.ZT,isCollapsed:u=!1,isLastLevelItem:f=!1,isLoading:m}=e;const h=wi(),y=!!t.children,g=!!r,v=ae(t),b=u?di.Z:pi.Z;return l().createElement(ft.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(sa,{type:t.type})),l().createElement("div",{className:h.attribute},l().createElement(Oi,{level:i,margin:20,hasChildren:y,isLastLevelItem:f,isCollapsed:u,isSelected:o}),l().createElement(ui.Z,{margin:20,level:i,className:h.marginWrapper},l().createElement(hn.C,{value:v},l().createElement("div",{className:p()(h.attributeLabel,y&&h.parentAttributeLabel)},y&&l().createElement(fi.Z,{size:"XXS",icon:b,onClick:s,className:h.collapseIcon}),v))),!m&&g&&!y&&l().createElement("div",{className:h.fillRate},l().createElement(bi,{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(hi,{details:t.details,classes:{iconRoot:h.detailsIcon,iconsWrapper:o&&h.iconsWrapper},fillRateData:r,fillRateState:a})))},Si=(0,d.propOr)({},"attributeItem"),Ni=(0,d.pipe)((0,d.find)((0,d.pipe)(Si,(0,d.either)(c.YkM,c.Or$),d.not)),Si),Ri=e=>(0,d.pipe)(Si,(0,d.propEq)("fieldName",e)),Ii=e=>(0,d.filter)((0,d.propEq)("group",e));let Ai;!function(e){e.SHOW_EMPTY="showEmpty"}(Ai||(Ai={}));const Di=[{label:f().text("Show attributes with no data"),value:Ai.SHOW_EMPTY,group:"emptiness"}],Li=(0,d.curry)(((e,t,r)=>{const a=(0,d.head)(Ii("emptiness")(e));return(null==a?void 0:a.value)===Ai.SHOW_EMPTY?r:r.filter((0,d.pipe)(Si,se(t)))})),Ci=e=>{const t=Object.values(le);return e.filter((0,d.pipe)((0,d.prop)("value"),(0,d.includes)(d.__,t)))},Pi=(0,d.pipe)(Si,(0,d.prop)("fieldName")),_i=(0,d.curry)(((e,t)=>{const r=(0,d.pipe)(Ii("details"),Ci)(e),a=(e=>(0,d.pipe)((0,d.filter)((0,d.pipe)(Si,(0,d.both)((0,d.prop)("children"),oe(e)))),(0,d.map)(Pi)))(r)(t);return t.filter((e=>{let{attributeItem:t}=e;return a.some((e=>t.fieldName.startsWith(e)))||ce(r,t)}))})),ji=(0,d.pipe)((0,d.map)(Si),(0,d.pluck)("fieldName"),d.identity);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}var Mi=r(36444),Ui=r(15115);const Bi=(0,De.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"}}))),Fi=e=>{let{isSelected:t,data:r,onChange:a}=e;const{count:n,label:i,value:o}=r,s=!(0,d.isNil)(n),p=Bi(!s||n>0);return l().createElement(ft.MenuItem,{className:p.option,component:"div",onClick:()=>a(r),"data-reltio-id":`reltio-dq-dashboard-option-${r.value}`},l().createElement(ft.Checkbox,{color:"primary",checked:t}),l().createElement("span",{className:p.typeIconWrapper},l().createElement(Br,{detailType:o})),l().createElement(hn.C,{value:i},l().createElement("div",{className:p.optionLabel},i)),s&&l().createElement("span",{className:p.counter},(0,c.k7L)(n,999)))},zi=(0,d.curry)(((e,t)=>!!t.find((0,d.propEq)("value",e.value)))),Vi=(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})),Hi=e=>{let{defaultFilterOptions:t=[],filterOptions:r,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=Bi(),[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 v=()=>u(null),b=e=>{h((0,d.ifElse)(zi(e),Vi(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(Ui.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(Mi.Z,{className:w})),l().createElement(ft.Popover,{open:!!s,anchorEl:s,onClose:()=>{h((0,d.always)(t)),v()},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{"data-reltio-id":"reltio-dq-dashboard-attributes-filter-popup"}},l().createElement("div",{className:c.menu},l().createElement(ft.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(ft.Typography,{variant:"caption",className:c.groupLabel},t),r.map((e=>{const t=zi(e,m);return l().createElement(Fi,{key:e.label,data:e,isSelected:t,onChange:b})})))})))),l().createElement("div",{className:c.actionsContainer},l().createElement(ft.Button,{onClick:()=>{h([])},className:c.clearAllButton,disabled:!E,"data-reltio-id":"reltio-dq-dashboard-filter-clear-all-button"},f().text("Clear all")),l().createElement(ft.Button,{onClick:()=>{h(t),v()},"data-reltio-id":"reltio-dq-dashboard-filter-cancel-button"},f().text("Cancel")),l().createElement(ft.Button,{color:"primary",onClick:()=>{o(m),v()},"data-reltio-id":"reltio-dq-dashboard-filter-apply-button"},f().text("Apply"))))))},Wi=(0,De.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)"}}}))),Yi=e=>{var t,r;let{entityType:i,onAttributesListChange:o,defaultFieldName:s,defaultFilterOptions:u,defaultFilterText:m,disableAttributeSelection:g}=e;const v=Wi(),b=(0,a.useRef)(),E=(0,a.useRef)(),[x,O]=(0,a.useState)(m||""),[w,S]=(0,a.useState)([]),[R,D]=(0,a.useState)(u||Di),[L,C]=(0,a.useState)({fieldName:s}),[P,_]=(0,a.useState)({}),{data:j}=(0,a.useContext)(T),k=null===(t=(0,a.useContext)(N))||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,ue(e),ge))(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)(N))||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){ki(e,t,r[t])}))}return e}({},e,{details:he({attrTypeItem:e,dvf:m,matchAttributes:f})},e.children&&{children:e.children.map((t=>(t.details=he({attrTypeItem:t,dvf:m,matchAttributes:f}),t.details.reference=e.isAttributeReference,t)))})})))}),[o,f,m]),s})(i,x),U=ji(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(Je).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)((()=>_(F)),[F]),(0,a.useEffect)((()=>{const e=(null==j?void 0:j.fillRate)&&Xe(null==j?void 0:j.fillRate),t=P[L.fieldName];_((r=>!e||(0,d.equals)(t,e)?r:(0,d.assoc)(L.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:H,filterOptions:W}=(0,a.useMemo)((()=>{const e=z===I.o.INIT||z===I.o.LOADING?M:Li(R,P,M),t=(e=>{const t=Object.values(le).map((e=>({value:e,label:ye(e),group:"details"}))).map((t=>(0,d.assoc)("count",((e,t)=>e.filter((e=>oe([t],e.attributeItem))).length)(e,t),t)));return{label:f().text("Attribute properties"),options:t}})(e);return{filteredItems:_i(R,e),filterOptions:[{label:"",options:Di},t]}}),[M,R,P,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))})))(H,w)),[H,w]),Z=H.length,G=e=>{o({selectedDetailedAttributeType:e,filterText:x,filterOptions:R}),C({fieldName:e.fieldName})},$=()=>{const e=((e,t)=>(0,d.pipe)((0,d.find)(Ri(t)),(0,d.propOr)(null,"attributeItem"))(e))(H,L.fieldName)||Ni(H);return(0,d.isEmpty)(e)||g?null:e};(0,a.useEffect)((()=>{var e,t,r;if(g)return void(null===(r=b.current)||void 0===r||r.scrollTo(0));if(H.length){const e=$();C({fieldName:(null==e?void 0:e.fieldName)||L.fieldName})}const a=((e,t)=>(0,d.findIndex)(Ri(t))(e))(H,L.fieldName);a>-1?null===(e=b.current)||void 0===e||e.scrollToItem(a,"center"):null===(t=b.current)||void 0===t||t.scrollTo(0)}),[H]),(0,a.useEffect)((()=>{const e=$();o({selectedDetailedAttributeType:e,filterText:x,filterOptions:R})}),[x,R,L]),(0,a.useEffect)((()=>{C((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=L.fieldName===n.fieldName,c=((e,t)=>e[t.fieldName])(P,n),s=r>0&&i>(0,d.pathOr)(-1,[r+1,"level"],Y);return l().createElement(Ti,{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:v.root},l().createElement("div",{className:v.title},f().text("Attributes"),l().createElement("span",{className:v.itemCount},`${Z} ${J=Z,1===J?f().text("item"):f().text("items")}`),l().createElement(Hi,{defaultFilterText:m,defaultFilterOptions:R,onChangeFilterOptions:D,onChangeFilterText:O,filterOptions:W})),l().createElement("div",{ref:E,className:p()(v.listWrapper,{[v.loadingAnimation]:V}),"data-reltio-id":"reltio-dq-dashboard-attributes-list"},X?l().createElement(st.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return l().createElement(si.FixedSizeList,{ref:b,itemCount:K,width:"100%",height:t,itemData:Y,itemSize:48,onScroll:q},Q)})):!V&&l().createElement(Et,{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},Zi=(0,De.Z)({root:{display:"flex",alignItems:"center",width:"100%"},title:{flexShrink:0,paddingLeft:"20px"},content:{overflow:"hidden",flexGrow:1}}),Gi=e=>{let{title:t,children:r}=e;const a=Zi();return l().createElement("div",{className:a.root},l().createElement(ft.Typography,{variant:"h6",className:a.title},t),l().createElement("div",{className:a.content},r))};var $i=r(51209);function qi(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){Qi(e,t,r[t])}))}return e}function Qi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ki={position:"absolute",content:'""',top:0,left:0,right:0,zIndex:1},Xi=(0,De.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":qi({},Ki,{top:"8px",height:"4px",background:"linear-gradient(180deg, #EEEEEE 0%, rgba(238, 238, 238, 0) 100%)",zIndex:1}),"&:after":qi({},Ki,{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"}}))),Ji=e=>{let{showEntityLevel:t,dataLevel:r,views:a,layout:n,entityType:i,isSliding:o=!1}=e;const s=Xi({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($i.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(Ee.Provider,{value:c.yn8.ENTITY_TYPE},l().createElement(li,{views:a,layout:n}))))};var eo=r(73698);const to=(0,De.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 ro(){return ro=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},ro.apply(this,arguments)}const ao=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=to(),s=e=>l().createElement("span",{className:o.counter},(0,c.k7L)(e,999));return l().createElement(eo.Z,ro({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)(za.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(ft.MenuItem,{key:r,value:r,classes:{root:o.optionRoot},"data-reltio-id":`${n}-${t}`},l().createElement(hn.C,{value:a},l().createElement(ft.Typography,{className:o.optionLabel},a)),!(0,d.isNil)(i)&&s(i))})))},lo=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(ao,{options:n,value:r,onChange:a,dataReltioOptionId:"reltio-dq-dashboard-entity-type-selector-option",dataReltioId:"reltio-dq-dashboard-entity-type-selector"})},no=e=>{let{value:t,onChange:r}=e;const n=(0,a.useMemo)((()=>Ne()),[]);return l().createElement(ao,{options:n,value:t,onChange:r,dataReltioOptionId:"reltio-dq-dashboard-time-range-selector-option",dataReltioId:"reltio-dq-dashboard-time-range-selector"})};function io(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){oo(e,t,r[t])}))}return e}function oo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const co={position:"absolute",content:'""',top:0,left:0,right:0,zIndex:1},so=(0,De.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":io({},co,{top:"8px",height:"4px",background:"linear-gradient(180deg, #EEEEEE 0%, rgba(238, 238, 238, 0) 100%)",zIndex:1}),"&:after":io({},co,{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 po(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uo=(0,d.path)([0,"uri"]),fo=e=>{var t,r,i,o,s,u;let{config:v,saveState:b,getSavedState:D}=e;const _=so({transitionTimeout:.3,attributeListWidth:360,entityLevelBarWidth:76}),j=(()=>{const e=(0,n.useSelector)(y.ZP.selectors.getMetadata);return(0,a.useMemo)((()=>e.entityTypes.filter(c.oDv)),[e.entityTypes])})(),[k,M]=(0,a.useState)(),[U,B]=(0,a.useState)(!1),[F,z]=(0,a.useState)(P.TODAY),Y=j&&k?(0,c.nt9)({entityTypes:j},k):null,Z=C(j),[G,$]=(0,a.useState)(null),{isLoaded:q,savedState:Q}=(0,m.a)(D),K=(0,n.useSelector)(y.ZP.selectors.getCanUserGetDQStatistic),[X,J]=(0,a.useState)(),ee=(0,n.useSelector)(y.ZP.selectors.getMetadata),te=ee&&Y&&((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)})(ee,Y),re=(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})(Y),ae=(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)},v=(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)((()=>{v()}),[v]),(0,a.useMemo)((()=>({data:t,state:l,reload:v,errorCode:o})),[t,l,v,o])})(null==Y?void 0:Y.uri),le=(0,a.useMemo)((()=>({dvfs:ae,dvfConfigLink:re})),[ae,re]),ne=(0,a.useRef)();(0,a.useEffect)((()=>{ne.current=Q}),[Q]);const ie=(0,a.useCallback)((e=>{if((null==Y?void 0:Y.uri)!==e){$(null),M(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){po(e,t,r[t])}))}return e}({dataLevel:c.yn8.ENTITY_TYPE,entityTypeUri:e},ne.current&&{filterOptions:ne.current.filterOptions,filterText:ne.current.filterText,fieldName:ne.current.fieldName});J(c.yn8.ENTITY_TYPE),b(t),ne.current=t}}),[null==Y?void 0:Y.uri]),oe=te?x.RDM_LOOKUP_EXIST:x.RDM_LOOKUP_NOT_EXIST,ce=(null===(t=v.layoutsByDataLevel)||void 0===t||null===(r=t[c.yn8.ENTITY_TYPE])||void 0===r?void 0:r[oe])||w[c.yn8.ENTITY_TYPE][oe],se=null===(i=v.layoutsByDataLevel)||void 0===i?void 0:i[c.yn8.ATTRIBUTE_TYPE],pe=(0,a.useMemo)((()=>((e,t,r)=>{const a=V(t),l=r===P.TODAY?null==e?void 0:e.today:null==e?void 0:e.timeRange,n=w[c.yn8.ATTRIBUTE_TYPE][r===P.TODAY?"today":"timeRange"],i=(0,d.mergeLeft)(l,n);return i[a]||i.default||[]})(se,null==G?void 0:G.type,F)),[null==G?void 0:G.type,se,F]),de=(0,a.useMemo)((()=>ce?((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 H({views:r,supportedViews:a,layout:t})})(v.viewsByDataLevel,ce):[]),[v.viewsByDataLevel,ce]),ue=(0,a.useMemo)((()=>W(de)),[de]),fe=L({entityType:Y,dataLevel:c.yn8.ENTITY_TYPE,metrics:ue}),me=(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 H({views:a,supportedViews:l,layout:r})})(v.viewsByDataLevel,null==G?void 0:G.type,pe)),[v.viewsByDataLevel,null==G?void 0:G.type,pe]),he=(0,a.useMemo)((()=>(0,d.pipe)(W,(e=>ve(G)?(0,d.reject)((0,d.equals)(c.N0y.DATA_VALIDATION))(e):e))(me)),[me,G]),ye=L({entityType:Y,detailedAttributeType:G,dataLevel:c.yn8.ATTRIBUTE_TYPE,metrics:he}),ge=(0,d.pipe)((0,d.map)((e=>(0,d.assoc)("entityCount",Z(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"))]))(j);(0,a.useEffect)((()=>{q&&(M(Q.entityTypeUri||uo(ge)),J(ce?Q.dataLevel||c.yn8.ENTITY_TYPE:c.yn8.ATTRIBUTE_TYPE))}),[q]),(0,a.useEffect)((()=>{B(!0),X===c.yn8.ENTITY_TYPE&&setTimeout((()=>{$(null)}),300),setTimeout((()=>{B(!1)}),300)}),[X]);const Ee=Y&&K&&q&&!!Z(k),xe=!!ce,Oe=X===c.yn8.ATTRIBUTE_TYPE&&!!(null!=(we=se)&&we.timeRange||null!==(Te=w[c.yn8.ATTRIBUTE_TYPE])&&void 0!==Te&&Te.timeRange);var we,Te;return l().createElement("div",{className:_.perspectiveView},l().createElement(Gi,{title:f().text("Data Quality")},Y&&l().createElement("div",{className:_.navigationWrapper},l().createElement(lo,{entityTypes:ge,entityTypeUri:Y.uri,onChange:ie}),l().createElement(ci,{dataLevel:X,detailedAttributeType:G,onChange:J}),Oe&&l().createElement("div",{className:_.timeRangeWrapper},l().createElement(no,{value:F,onChange:z})))),l().createElement("div",{className:p()(_.contentWrapper,{[_.contentWrapperEntityLevel]:X===c.yn8.ENTITY_TYPE,[_.contentWrapperOneSlide]:!Ee||!xe})},Ee&&l().createElement("div",{className:p()(_.content,{[_.contentWithEntityLevel]:xe})},l().createElement(N.Provider,{value:le},l().createElement(R.Provider,{value:Y},xe&&l().createElement(T.Provider,{value:fe},l().createElement(Ji,{showEntityLevel:()=>{J(c.yn8.ENTITY_TYPE)},dataLevel:X,views:de,layout:ce,entityType:Y,isSliding:U})),l().createElement(T.Provider,{value:ye},l().createElement(Yi,{entityType:Y,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:r,filterOptions:a}=e;const l=null==t?void 0:t.fieldName,n={entityTypeUri:Y.uri,fieldName:l,filterOptions:a,filterText:r,dataLevel:l?c.yn8.ATTRIBUTE_TYPE:X};(0,d.equals)(ne.current,n)||(b(n),ne.current=n),l&&J(c.yn8.ATTRIBUTE_TYPE),$(t)},defaultFieldName:null===(o=ne.current)||void 0===o?void 0:o.fieldName,defaultFilterText:null===(s=ne.current)||void 0===s?void 0:s.filterText,defaultFilterOptions:null===(u=ne.current)||void 0===u?void 0:u.filterOptions,disableAttributeSelection:X===c.yn8.ENTITY_TYPE}),l().createElement("div",{className:p()(_.attributeLevelWrapper,{[_.attributeLevelWithEntityLevel]:xe})},G&&l().createElement(S.Provider,{value:G},l().createElement(ni,{dataLevel:X,views:me,layout:pe,timeRange:F,isSliding:U}))))))),!K&&l().createElement(gt,{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}),q&&Y&&!Z(k)&&K&&l().createElement(Et,{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 mo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ho=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){mo(e,t,r[t])}))}return e}({},c.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}}),yo=(0,i.Z)(ho),go=(0,o.createGenerateClassName)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0}),vo=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:yo},l().createElement(o.StylesProvider,{generateClassName:go},l().createElement(fo,{config:r,saveState:i,getSavedState:p}))))}}}]);
2
+ //# sourceMappingURL=1049.js.map