@reltio/remotes 1.4.1186 → 1.4.1187

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