@reltio/remotes 1.4.1009 → 1.4.1012

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/1886.js +1 -1
  2. package/3771.js +1 -1
  3. package/package.json +1 -1
package/1886.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[1886],{28101:(e,t,n)=>{n.d(t,{G:()=>f});var r=n(24328),o=n.n(r),l=n(71153),a=n.n(l),i=n(39475),c=n(79692),s=n(41128);const d=(0,c.Z)((e=>({container:{display:"flex",flexDirection:"column",flexShrink:0,width:"64px",paddingTop:"8px",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)"},active:{backgroundColor:(0,s.U1)(e.palette.primary.main,.12),color:e.palette.primary.main,"&:after":{content:'""',position:"absolute",height:"42px",width:"3px",backgroundColor:e.palette.primary.main,left:"-8px",borderRadius:"0 6px 6px 0"}},buttonWrapper:{position:"relative",width:"48px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",margin:"2px 8px",color:e.palette.text.secondary}})));function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const f=e=>{let{buttonsProps:t,activeIndexId:n,className:r,onButtonClick:l,classes:c={}}=e;const s=d(),{active:f,buttonWrapper:m}=c,h=p(c,["active","buttonWrapper"]);return o().createElement("div",{className:a()(s.container,r)},t.map((e=>{let{id:t}=e,r=p(e,["id"]);return o().createElement(i.k,u({},r,{classes:h,size:"S",key:t,className:a()({[a()(s.active,f)]:n===t},s.buttonWrapper,m),onClick:()=>l(t),"data-reltio-id":`reltio-profile-right-side-button-${t}`}))})))}},11821:(e,t,n)=>{n.d(t,{h:()=>a});var r=n(24328),o=n.n(r);const l=(0,n(79692).Z)((e=>({contentWrapper:{display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)",marginLeft:"3px",transition:e.transitions.create(["width"],{duration:e.transitions.duration.enteringScreen})}}))),a=e=>{let{width:t,open:n,children:r}=e;const a=l();return o().createElement("div",{className:a.contentWrapper,style:{width:`${n?t:0}px`}},n&&o().createElement(o().Fragment,null,r))}},71886:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ae});var r=n(24328),o=n.n(r),l=n(52730),a=n(36138),i=n(97333),c=n(22664),s=n(52844),d=n(89810),u=n(87378),p=n(79692);const f=(0,p.Z)((e=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,fontFamily:"Roboto, Helvetica, Arial, sans-serif",overflowX:"hidden",overflowY:"auto",display:"flex",flexDirection:"column",backgroundColor:e.palette.background.default},graphWrapper:{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1},graphContainer:{display:"flex",overflow:"hidden",flexGrow:1},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"}})));var m=n(4171),h=n(87918),v=n.n(h),g=n(17440),b=n(29627);function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const E=(e,t)=>{const n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){y(e,t,n[t])}))}return e}({},e,{[null==t?void 0:t.uri]:t}),r=Object.keys(n);return r.length>50&&delete n[r[0]],n},x=o().createContext({graphLoading:!1,data:null,selectedEntityLoading:!1,selectedEntity:null,onEntitySelect:()=>{}});x.displayName="GraphStateContext";var w=n(71153),S=n.n(w),O=n(33109),N=n(62901),j=n(72316),k=n(95544);const P=(0,p.Z)({comments:{display:"flex",justifyContent:"flex-end",marginTop:"10px"}}),C=(0,r.memo)((e=>{let{className:t}=e;const n=P(),r=(0,l.useSelector)(d.ZP.selectors.getEntity),a=(0,l.useSelector)(d.ZP.selectors.getRangeColors);return o().createElement(O.Z,{className:S()(t,N.U),entity:r,rangeColorsConfig:a},o().createElement(k.Z,{className:n.comments},o().createElement(j.Z,{uri:r.uri,relatedObjectUris:(0,m.wp9)(m.q7e.ENTITY,{entityUri:r.uri}),objectType:m.q7e.ENTITY})))}));C.displayName="GraphProfileBand";const R=C;var Z=n(11821),I=n(28101),L=n(82726);const D=(0,p.Z)({wrapper:{display:"flex",overflow:"hidden",marginLeft:"auto",flexShrink:0}});function z(){return z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z.apply(this,arguments)}const H=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return o().createElement("svg",z({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7v2h2V7H6zm0 4v2h2v-2H6zm0 4v2h2v-2H6zm4-8v2h8V7h-8zm10-2v5.02a6.52 6.52 0 012 2.01V3H2v18h11.028a6.52 6.52 0 01-2.009-2H4V5h16zm-9.503 8a6.497 6.497 0 011.31-2H10v2h.497zM10 15.5c0-.168.006-.335.019-.5H10v.5zm0 0c0 .516.06 1.018.173 1.5H10v-1.5zm10.3 2.39L23.42 21 22 22.42l-3.12-3.12c-.69.44-1.51.7-2.39.7-2.48 0-4.49-2.01-4.49-4.5s2.01-4.5 4.5-4.5 4.5 2.01 4.5 4.5c0 .88-.26 1.69-.7 2.39zm-3.8.11a2.5 2.5 0 000-5 2.5 2.5 0 000 5z",fill:"currentColor"}))};var U=n(50548);const G=(0,U.l)(x,(0,g.pick)(["selectedEntity"]),(e=>{let{selectedEntity:t}=e;return o().createElement(O.Z,{entity:t})}));var T=n(15177);const W=(0,p.Z)({noShadowBlock:{boxShadow:"none"},wrapper:{position:"relative",paddingRight:"1px",overflow:"auto"}}),V=(0,U.l)(x,(0,g.pick)(["selectedEntity","selectedEntityLoading"]),(e=>{let{selectedEntity:t,selectedEntityLoading:n}=e;const r=W();return o().createElement("div",{className:r.wrapper},n&&o().createElement(u.Z,null),o().createElement(T.Z,{entity:t,caption:v().text("Entity details"),className:r.noShadowBlock}))}));let $;!function(e){e[e.Relationship=0]="Relationship",e[e.EntityDetails=1]="EntityDetails"}($||($={}));const B=(0,r.memo)((()=>{var e;const t=D(),[n,l]=(0,r.useState)(null),a=(0,r.useCallback)((e=>{l((t=>t===e?null:e))}),[]),i=null!==n,c=(0,r.useMemo)((()=>[{buttonProps:{id:$.Relationship,icon:H,tooltipTitle:v().text("Relationship")},content:"Relationship"},{buttonProps:{id:$.EntityDetails,icon:L.Z,tooltipTitle:v().text("Entity Details")},content:o().createElement(V,null)}]),[]);return o().createElement("div",{className:t.wrapper},o().createElement(Z.h,{open:i,width:480},o().createElement(G,null),null===(e=c[n])||void 0===e?void 0:e.content),o().createElement(I.G,{buttonsProps:(0,g.pluck)("buttonProps",c),onButtonClick:a,activeIndexId:n}))}));B.displayName="GraphRightSidePanel";const M=B;var F=n(4986);const Y=e=>{let{children:t}=e;return o().createElement("div",{style:{height:"calc(100% - 5px)"}},o().createElement(F.SigmaContainer,{style:{background:"transparent"}},t))};var _=n(98996),q=n.n(_),A=n(28833),X=n.n(A),J=n(3660),K=n.n(J);function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ee(e,t,n[t])}))}return e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const te=e=>{let{data:t,selectedNode:n,onNodeClick:o}=e;const l=(0,F.useSigma)(),a=(0,F.useRegisterEvents)(),i=(0,F.useLoadGraph)(),c=(0,F.useSetSettings)(),[s,d]=(0,r.useState)({hoverNode:void 0,hoverNeighbours:void 0});return(0,r.useEffect)((()=>{const e=new(q());t.nodes.forEach((t=>{e.addNode(t.id,{label:t.name,size:21,color:"#0072CE"})})),t.edges.forEach((t=>{e.addEdge(t.from,t.to,{size:5})})),X().assign(e);const n=K().inferSettings(e);K().assign(e,{settings:n,iterations:600}),i(e)}),[i,t]),(0,r.useEffect)((()=>{a({enterNode:e=>{let{node:n}=e;d({hoverNode:n,hoverNeighbours:t.edges.filter((e=>e.from===n||e.to===n)).map((e=>{var r,o;const l=e.from===n?e.to:e.from;return null!==(r=null===(o=t.nodes.find((e=>e.id===l)))||void 0===o?void 0:o.id)&&void 0!==r?r:""}))})},leaveNode:()=>{d({hoverNode:void 0,hoverNeighbours:void 0})},clickNode:e=>{let{node:t}=e;o(t)}})}),[l,a,t,o]),(0,r.useEffect)((()=>{c({nodeReducer:(e,t)=>{const r=Q({},t);return s.hoverNeighbours&&!s.hoverNeighbours.includes(e)&&s.hoverNode!==e&&(r.label="",r.color="#f6f6f6"),e===n&&(r.color="red"),r},edgeReducer:(e,t)=>{const n=l.getGraph(),r=Q({},t,{hidden:!1});return s.hoverNode&&!n.hasExtremity(e,s.hoverNode)&&(r.hidden=!0),r}})}),[l,c,s,n]),null},ne=(0,U.l)(x,(e=>{let{data:t,selectedEntity:n,onEntitySelect:r}=e;return{data:t,selectedNode:null==n?void 0:n.uri,onNodeSelect:r}}),(e=>{let{data:t,selectedNode:n,onNodeSelect:l}=e;const a=(0,r.useMemo)((()=>t&&(e=>{const t=new Set,n=new Set;e.entities.forEach((e=>t.add(e.uri))),e.relations.filter((e=>t.has(e.startObject.objectURI)&&t.has(e.endObject.objectURI))).forEach((e=>{n.has(`${e.endObject.objectURI}--${e.startObject.objectURI}`)||n.add(`${e.startObject.objectURI}--${e.endObject.objectURI}--${e.direction}`)}));const r=e.entities.map((e=>({id:e.uri,name:e.label}))),o=[];return n.forEach((e=>{const t=e.split("--");o.push({from:t[0],to:t[1]})})),{nodes:r,edges:o}})(t)),[t]);return a&&o().createElement(Y,null,o().createElement(te,{data:a,selectedNode:n,onNodeClick:l}))})),re=(0,r.memo)((()=>{const e=(0,l.useDispatch)();(0,r.useEffect)((()=>{e(d.N5.entity.actions.entityLoaded({uri:"entities/1IPdCSY1",type:"configuration/entityTypes/HCP"}))}),[e]);const t=f(),n=(0,l.useSelector)(d.ZP.selectors.getEntity),a=(e=>{const{graphLoading:t,data:n}=(e=>{const t=(0,l.useDispatch)(),[n,o]=(0,r.useState)(null),[a,i]=(0,r.useState)(!1),c=null==e?void 0:e.uri,s=(0,m.biM)(e);return(0,r.useEffect)((()=>(!c||(0,m.ZiX)(c)||s||(i(!0),(0,m.ZYI)({uri:c,deep:2,limitCreditsConsumption:!0,graphTypes:null,activenessDate:null}).then(o).catch((e=>{o(null),t(d.ui.actions.errorSet((0,m.xU7)(e,v().text("Something went wrong"))))})).finally((()=>{i(!1)}))),()=>{o(null),i(!1)})),[c,s,t]),{graphLoading:a,data:n}})(e),{selectedEntity:o,onEntitySelect:a,selectedEntityLoading:i}=((e,t)=>{const n=(0,b._)(),o=(0,l.useDispatch)(),[a,i]=(0,r.useState)(null),c=(0,r.useRef)({}),[s,u]=(0,r.useState)(!1),p=(0,r.useCallback)((e=>{var r;if(c.current[e])return void i(c.current[e]);const l=null==t||null===(r=t.entities)||void 0===r?void 0:r.find((0,g.propEq)("uri",e));l&&i(l),u(!0),n((0,m.HvW)(e)).then((e=>{c.current=E(c.current,e),i(e)})).catch((e=>{o(d.ui.actions.errorSet((0,m.xU7)(e,v().text("Something went wrong"))))})).finally((()=>{u(!1)}))}),[o,t,n]);return(0,r.useEffect)((()=>{null!=e&&e.uri&&(c.current=E({},e),p(e.uri))}),[null==e?void 0:e.uri]),{selectedEntityLoading:s,selectedEntity:a,onEntitySelect:p}})(e,n);return{graphLoading:t,data:n,selectedEntity:o,onEntitySelect:a,selectedEntityLoading:i}})(n),{graphLoading:i}=a;return o().createElement(x.Provider,{value:a},o().createElement("div",{className:t.perspectiveView},i&&o().createElement(u.Z,null),(null==n?void 0:n.uri)&&o().createElement("div",{className:t.graphContainer},o().createElement("div",{className:t.graphWrapper},o().createElement(R,null),o().createElement(ne,null)),o().createElement(M,null))))}));re.displayName="GraphPerspectiveView";const oe=re,le=(0,a.createGenerateClassName)({productionPrefix:"graph",disableGlobal:!0}),ae=e=>{let{store:t}=e;return o().createElement(l.Provider,{store:t},o().createElement(a.StylesProvider,{generateClassName:le},o().createElement(c.MuiPickersUtilsProvider,{utils:s.Z},o().createElement(oe,null),o().createElement(i.Z,{showErrorFromStore:!0}))))}}}]);
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[1886],{28101:(e,t,n)=>{n.d(t,{G:()=>f});var r=n(24328),o=n.n(r),l=n(71153),a=n.n(l),i=n(39475),c=n(79692),s=n(41128);const d=(0,c.Z)((e=>({container:{display:"flex",flexDirection:"column",flexShrink:0,width:"64px",paddingTop:"8px",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)"},active:{backgroundColor:(0,s.U1)(e.palette.primary.main,.12),color:e.palette.primary.main,"&:after":{content:'""',position:"absolute",height:"42px",width:"3px",backgroundColor:e.palette.primary.main,left:"-8px",borderRadius:"0 6px 6px 0"}},buttonWrapper:{position:"relative",width:"48px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",margin:"2px 8px",color:e.palette.text.secondary}})));function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const f=e=>{let{buttonsProps:t,activeIndexId:n,className:r,onButtonClick:l,classes:c={}}=e;const s=d(),{active:f,buttonWrapper:m}=c,h=p(c,["active","buttonWrapper"]);return o().createElement("div",{className:a()(s.container,r)},t.map((e=>{let{id:t}=e,r=p(e,["id"]);return o().createElement(i.k,u({},r,{classes:h,size:"S",key:t,className:a()({[a()(s.active,f)]:n===t},s.buttonWrapper,m),onClick:()=>l(t),"data-reltio-id":`reltio-profile-right-side-button-${t}`}))})))}},11821:(e,t,n)=>{n.d(t,{h:()=>a});var r=n(24328),o=n.n(r);const l=(0,n(79692).Z)((e=>({contentWrapper:{display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)",marginLeft:"3px",transition:e.transitions.create(["width"],{duration:e.transitions.duration.enteringScreen})}}))),a=e=>{let{width:t,open:n,children:r}=e;const a=l();return o().createElement("div",{className:a.contentWrapper,style:{width:`${n?t:0}px`}},n&&o().createElement(o().Fragment,null,r))}},71886:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ae});var r=n(24328),o=n.n(r),l=n(52730),a=n(36138),i=n(97333),c=n(22664),s=n(52844),d=n(89810),u=n(87378),p=n(79692);const f=(0,p.Z)((e=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,fontFamily:"Roboto, Helvetica, Arial, sans-serif",overflowX:"hidden",overflowY:"auto",display:"flex",flexDirection:"column",backgroundColor:e.palette.background.default},graphWrapper:{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1},graphContainer:{display:"flex",overflow:"hidden",flexGrow:1},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"}})));var m=n(4171),h=n(87918),v=n.n(h),g=n(17440),b=n(29627);function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const E=(e,t)=>{const n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){y(e,t,n[t])}))}return e}({},e,{[null==t?void 0:t.uri]:t}),r=Object.keys(n);return r.length>50&&delete n[r[0]],n},x=o().createContext({graphLoading:!1,data:null,selectedEntityLoading:!1,selectedEntity:null,onEntitySelect:()=>{}});x.displayName="GraphStateContext";var w=n(71153),S=n.n(w),O=n(33109),N=n(62901),j=n(72316),k=n(95544);const P=(0,p.Z)({comments:{display:"flex",justifyContent:"flex-end",marginTop:"10px"}}),C=(0,r.memo)((e=>{let{className:t}=e;const n=P(),r=(0,l.useSelector)(d.ZP.selectors.getEntity),a=(0,l.useSelector)(d.ZP.selectors.getRangeColors);return o().createElement(O.Z,{className:S()(t,N.U),entity:r,rangeColorsConfig:a},o().createElement(k.Z,{className:n.comments},o().createElement(j.Z,{uri:r.uri,relatedObjectUris:(0,m.wp9)(m.q7e.ENTITY,{entityUri:r.uri}),objectType:m.q7e.ENTITY})))}));C.displayName="GraphProfileBand";const R=C;var Z=n(11821),I=n(28101),L=n(82726);const D=(0,p.Z)({wrapper:{display:"flex",overflow:"hidden",marginLeft:"auto",flexShrink:0}});function z(){return z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z.apply(this,arguments)}const H=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return o().createElement("svg",z({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7v2h2V7H6zm0 4v2h2v-2H6zm0 4v2h2v-2H6zm4-8v2h8V7h-8zm10-2v5.02a6.52 6.52 0 012 2.01V3H2v18h11.028a6.52 6.52 0 01-2.009-2H4V5h16zm-9.503 8a6.497 6.497 0 011.31-2H10v2h.497zM10 15.5c0-.168.006-.335.019-.5H10v.5zm0 0c0 .516.06 1.018.173 1.5H10v-1.5zm10.3 2.39L23.42 21 22 22.42l-3.12-3.12c-.69.44-1.51.7-2.39.7-2.48 0-4.49-2.01-4.49-4.5s2.01-4.5 4.5-4.5 4.5 2.01 4.5 4.5c0 .88-.26 1.69-.7 2.39zm-3.8.11a2.5 2.5 0 000-5 2.5 2.5 0 000 5z",fill:"currentColor"}))};var U=n(50548);const G=(0,U.l)(x,(0,g.pick)(["selectedEntity"]),(e=>{let{selectedEntity:t}=e;return o().createElement(O.Z,{entity:t})}));var T=n(15177);const W=(0,p.Z)({noShadowBlock:{boxShadow:"none"},wrapper:{position:"relative",paddingRight:"1px",overflow:"auto"}}),V=(0,U.l)(x,(0,g.pick)(["selectedEntity","selectedEntityLoading"]),(e=>{let{selectedEntity:t,selectedEntityLoading:n}=e;const r=W();return o().createElement("div",{className:r.wrapper},n&&o().createElement(u.Z,null),o().createElement(T.Z,{entity:t,caption:v().text("Entity details"),className:r.noShadowBlock}))}));let $;!function(e){e[e.Relationship=0]="Relationship",e[e.EntityDetails=1]="EntityDetails"}($||($={}));const B=(0,r.memo)((()=>{var e;const t=D(),[n,l]=(0,r.useState)(null),a=(0,r.useCallback)((e=>{l((t=>t===e?null:e))}),[]),i=null!==n,c=(0,r.useMemo)((()=>[{buttonProps:{id:$.Relationship,icon:H,tooltipTitle:v().text("Relationship")},content:"Relationship"},{buttonProps:{id:$.EntityDetails,icon:L.Z,tooltipTitle:v().text("Entity Details")},content:o().createElement(V,null)}]),[]);return o().createElement("div",{className:t.wrapper},o().createElement(Z.h,{open:i,width:480},o().createElement(G,null),null===(e=c[n])||void 0===e?void 0:e.content),o().createElement(I.G,{buttonsProps:(0,g.pluck)("buttonProps",c),onButtonClick:a,activeIndexId:n}))}));B.displayName="GraphRightSidePanel";const M=B;var F=n(4986);const _=e=>{let{children:t}=e;return o().createElement("div",{style:{height:"calc(100% - 5px)"}},o().createElement(F.SigmaContainer,{style:{background:"transparent"}},t))};var q=n(98996),A=n.n(q),Y=n(28833),X=n.n(Y),J=n(3660),K=n.n(J);function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ee(e,t,n[t])}))}return e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const te=e=>{let{data:t,selectedNode:n,onNodeClick:o}=e;const l=(0,F.useSigma)(),a=(0,F.useRegisterEvents)(),i=(0,F.useLoadGraph)(),c=(0,F.useSetSettings)(),[s,d]=(0,r.useState)({hoverNode:void 0,hoverNeighbours:void 0});return(0,r.useEffect)((()=>{const e=new(A());t.nodes.forEach((t=>{e.addNode(t.id,{label:t.name,size:21,color:"#0072CE"})})),t.edges.forEach((t=>{e.addEdge(t.from,t.to,{size:5})})),X().assign(e);const n=K().inferSettings(e);K().assign(e,{settings:n,iterations:600}),i(e)}),[i,t]),(0,r.useEffect)((()=>{a({enterNode:e=>{let{node:n}=e;d({hoverNode:n,hoverNeighbours:t.edges.filter((e=>e.from===n||e.to===n)).map((e=>{var r,o;const l=e.from===n?e.to:e.from;return null!==(r=null===(o=t.nodes.find((e=>e.id===l)))||void 0===o?void 0:o.id)&&void 0!==r?r:""}))})},leaveNode:()=>{d({hoverNode:void 0,hoverNeighbours:void 0})},clickNode:e=>{let{node:t}=e;o(t)}})}),[l,a,t,o]),(0,r.useEffect)((()=>{c({nodeReducer:(e,t)=>{const r=Q({},t);return s.hoverNeighbours&&!s.hoverNeighbours.includes(e)&&s.hoverNode!==e&&(r.label="",r.color="#f6f6f6"),e===n&&(r.color="red"),r},edgeReducer:(e,t)=>{const n=l.getGraph(),r=Q({},t,{hidden:!1});return s.hoverNode&&!n.hasExtremity(e,s.hoverNode)&&(r.hidden=!0),r}})}),[l,c,s,n]),null},ne=(0,U.l)(x,(e=>{let{data:t,selectedEntity:n,onEntitySelect:r}=e;return{data:t,selectedNode:null==n?void 0:n.uri,onNodeSelect:r}}),(e=>{let{data:t,selectedNode:n,onNodeSelect:l}=e;const a=(0,r.useMemo)((()=>t&&(e=>{const t=new Set,n=new Set;e.entities.forEach((e=>t.add(e.uri))),e.relations.filter((e=>t.has(e.startObject.objectURI)&&t.has(e.endObject.objectURI))).forEach((e=>{n.has(`${e.endObject.objectURI}--${e.startObject.objectURI}`)||n.add(`${e.startObject.objectURI}--${e.endObject.objectURI}--${e.direction}`)}));const r=e.entities.map((e=>({id:e.uri,name:e.label}))),o=[];return n.forEach((e=>{const t=e.split("--");o.push({from:t[0],to:t[1]})})),{nodes:r,edges:o}})(t)),[t]);return a&&o().createElement(_,null,o().createElement(te,{data:a,selectedNode:n,onNodeClick:l}))})),re=(0,r.memo)((()=>{const e=(0,l.useDispatch)();(0,r.useEffect)((()=>{e(d.N5.entity.actions.entityLoaded(window.entity||{uri:"entities/1E4ASbuq",type:"configuration/entityTypes/HCP"}))}),[e]);const t=f(),n=(0,l.useSelector)(d.ZP.selectors.getEntity),a=(e=>{const{graphLoading:t,data:n}=(e=>{const t=(0,l.useDispatch)(),[n,o]=(0,r.useState)(null),[a,i]=(0,r.useState)(!1),c=null==e?void 0:e.uri,s=(0,m.biM)(e);return(0,r.useEffect)((()=>(!c||(0,m.ZiX)(c)||s||(i(!0),(0,m.ZYI)({uri:c,deep:2,limitCreditsConsumption:!0,graphTypes:null,activenessDate:null}).then(o).catch((e=>{o(null),t(d.ui.actions.errorSet((0,m.xU7)(e,v().text("Something went wrong"))))})).finally((()=>{i(!1)}))),()=>{o(null),i(!1)})),[c,s,t]),{graphLoading:a,data:n}})(e),{selectedEntity:o,onEntitySelect:a,selectedEntityLoading:i}=((e,t)=>{const n=(0,b._)(),o=(0,l.useDispatch)(),[a,i]=(0,r.useState)(null),c=(0,r.useRef)({}),[s,u]=(0,r.useState)(!1),p=(0,r.useCallback)((e=>{var r;if(c.current[e])return void i(c.current[e]);const l=null==t||null===(r=t.entities)||void 0===r?void 0:r.find((0,g.propEq)("uri",e));l&&i(l),u(!0),n((0,m.HvW)(e)).then((e=>{c.current=E(c.current,e),i(e)})).catch((e=>{o(d.ui.actions.errorSet((0,m.xU7)(e,v().text("Something went wrong"))))})).finally((()=>{u(!1)}))}),[o,t,n]);return(0,r.useEffect)((()=>{null!=e&&e.uri&&(c.current=E({},e),p(e.uri))}),[null==e?void 0:e.uri]),{selectedEntityLoading:s,selectedEntity:a,onEntitySelect:p}})(e,n);return{graphLoading:t,data:n,selectedEntity:o,onEntitySelect:a,selectedEntityLoading:i}})(n),{graphLoading:i}=a;return o().createElement(x.Provider,{value:a},o().createElement("div",{className:t.perspectiveView},i&&o().createElement(u.Z,null),(null==n?void 0:n.uri)&&o().createElement("div",{className:t.graphContainer},o().createElement("div",{className:t.graphWrapper},o().createElement(R,null),o().createElement(ne,null)),o().createElement(M,null))))}));re.displayName="GraphPerspectiveView";const oe=re,le=(0,a.createGenerateClassName)({productionPrefix:"graph",disableGlobal:!0}),ae=e=>{let{store:t}=e;return o().createElement(l.Provider,{store:t},o().createElement(a.StylesProvider,{generateClassName:le},o().createElement(c.MuiPickersUtilsProvider,{utils:s.Z},o().createElement(oe,null),o().createElement(i.Z,{showErrorFromStore:!0}))))}}}]);
package/3771.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3771],{81819:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a.Z});var a=r(29611)},69112:(e,t,r)=>{r.d(t,{Z:()=>p});var a=r(7560),l=r(54530),n=r(24328),i=(r(13980),r(6277));const o=(0,r(3752).Z)(n.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");var c=r(15459),s=r(57074),u=r(97580),d=n.forwardRef((function(e,t){var r=e.active,c=void 0!==r&&r,d=e.children,p=e.classes,f=e.className,m=e.direction,h=void 0===m?"asc":m,y=e.hideSortIcon,g=void 0!==y&&y,v=e.IconComponent,b=void 0===v?o:v,E=(0,l.Z)(e,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return n.createElement(s.Z,(0,a.Z)({className:(0,i.Z)(p.root,f,c&&p.active),component:"span",disableRipple:!0,ref:t},E),d,g&&!c?null:n.createElement(b,{className:(0,i.Z)(p.icon,p["iconDirection".concat((0,u.Z)(h))])}))}));const p=(0,c.Z)((function(e){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:e.palette.text.secondary},"&:hover":{color:e.palette.text.secondary,"& $icon":{opacity:.5}},"&$active":{color:e.palette.text.primary,"&& $icon":{opacity:1,color:e.palette.text.secondary}}},active:{},icon:{fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}}),{name:"MuiTableSortLabel"})(d)},98989:(e,t,r)=>{var a=r(14859);t.Z=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M10 17l5-5-5-5v10z"}),l.default.createElement("path",{fill:"none",d:"M0 24V0h24v24H0z"})),"ArrowRight");t.Z=n},82726:(e,t,r)=>{var a=r(14859);t.Z=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.Z=n},43266:(e,t,r)=>{var a=r(14859);t.Z=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");t.Z=n},21853:(e,t,r)=>{var a=r(14859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.default=n},82068:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(24328),l=r.n(a),n=r(71153),i=r.n(n);const o=(0,r(79692).Z)({"basic-view-content":{flex:"1 1 auto",padding:"0 24px 24px","&:first-child":{paddingTop:"24px"}}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},c.apply(this,arguments)}const s=e=>{let{children:t,className:r}=e,a=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["children","className"]);const n=o();return l().createElement("div",c({className:i()(n["basic-view-content"],r)},a),t)}},17822:(e,t,r)=>{r.d(t,{Z:()=>S});var a=r(13980),l=r.n(a),n=r(24328),i=r.n(n),o=r(66244),c=r.n(o),s=r(44443),u=r(17440),d=r(71153),p=r.n(d);function f(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}const m=e=>{let{x:t,y:r,width:a,height:l,id:n,minWidth:i,minHeight:o,maxWidth:c,maxHeight:s,isStatic:u}=e;return{x:t,y:r,w:a,h:l,minW:i,minH:o,maxW:c,maxH:s,i:n,static:u}},h=e=>{let{x:t,y:r,w:a,h:l,maxW:n,minW:i,minH:o,maxH:c,i:s}=e;return{x:t,y:r,width:a,height:l,minWidth:i,minHeight:o,maxWidth:n,maxHeight:c,id:s,isStatic:f(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},y=e=>(e||[]).map(h),g=(0,u.curry)(((e,t)=>(e||[]).find((0,u.propEq)("id",t)))),v=(0,u.curry)(((e,t,r)=>(0,u.mergeAll)([r,(0,u.pick)(e,t)]))),b=(0,u.curry)(((e,t,r)=>(r||[]).map((r=>(0,u.pipe)((0,u.prop)("id"),g(t),(0,u.defaultTo)({}),v(e,u.__,r))(r)))));var E=r(79692),x=r(4171);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 N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const T=e=>{let{views:t,layout:r,layoutOptions:a,onLayoutChanged:l,draggableHandle:o,LayoutItem:d,onRemove:f,onDrop:v,droppingItem:E,isDroppable:x,classes:T}=e;const S=(0,n.useRef)(),R=O(),[I,C]=(0,n.useState)(null),[A,D]=(0,n.useState)(0),{cols:L,rowHeight:P,margin:_}=a,j=(0,n.useMemo)((()=>(e=>(e||[]).map(m))(r)),[r]),M=(0,u.pipe)(y,b(["autosizing"],r),l),k=(0,n.useCallback)((e=>C((t=>t?null:e))),[]),F=null!==I,U=(0,n.useCallback)(((e,t)=>{let n=!1;const i=r.map((r=>{if(r.id===t&&e){const t=((e,t)=>{const{margin:r,rowHeight:a}=t;return Math.ceil((e+r[1])/(a+r[1]))})(e,a);if(r.height!==t)return n=!0,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){N(e,t,r[t])}))}return e}({},r,{minHeight:t,maxHeight:t,height:t})}return r}));n&&l(i)}),[r,a,l]);return i().createElement(i().Fragment,null,i().createElement(s.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>D(e)}),i().createElement(c(),{innerRef:S,layout:j,cols:L,draggableHandle:o,autoSize:!0,rowHeight:P,width:A,margin:_,onLayoutChange:M,isResizable:!F,isDraggable:!F,className:p()(R.gridLayout,{[R.gridFullscreen]:F}),onDrop:(e,t,r)=>{v&&v(y(e),h(t),r)},droppingItem:E,isDroppable:x},j.map((e=>{const a=I===e.i,l=(g(r,e.i)||{}).autosizing?{AutosizeComponent:(n=e.i,i().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>{U(t,n)}}))}:{};var n;return i().createElement(d,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:k,onRemove:f,className:p()({fullscreen:a},T.item),isFullscreen:a},l))}))))};T.defaultProps={layoutOptions:{cols:4,rowHeight:30,margin:[15,15]},onConfigChanged:u.identity,onLayoutChanged:u.identity,classes:{}},T.propTypes={views:l().array,layout:l().array,layoutOptions:l().object,onConfigChanged:l().func,onLayoutChanged:l().func,onDrop:l().func,onRemove:l().func,LayoutItem:l().elementType,draggableHandle:l().string,isDroppable:l().bool,droppingItem:l().object,classes:l().shape({item:l().string})};const S=(0,n.memo)(T)},21210:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(89810),l=r(4171),n=r(24328),i=r.n(n),o=r(52730),c=r(42639);const s=e=>{let{sourceType:t,className:r,classes:n}=e;const s=(0,o.useSelector)(a.ZP.selectors.getMetadata),{label:u,icon:d}=(0,l.PWK)(s,t);return i().createElement(c.Z,{className:r,avatarText:u[0],icon:d?(0,l.vPL)("https://s3.amazonaws.com/reltio.images/api",d):null,variant:"square",rootClasses:n})}},39878:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(24328),l=r.n(a),n=r(4171),i=r(17440);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},o.apply(this,arguments)}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=e=>{const t=t=>{let{data:r}=t,s=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(t,["data"]);const u=(0,a.useMemo)((()=>r&&(e=>{const t=(0,n.QK6)((0,i.pluck)("value",e),1);return e.map(((e,r)=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){c(e,t,r[t])}))}return e}({},e,{percent:t[r]})))})(r)),[r]);return l().createElement(e,o({data:u},s))};return t.displayName="WithPercents",t}},59383:(e,t,r)=>{r.d(t,{d:()=>l});const a=(0,r(79692).Z)({clickable:{cursor:"pointer"}}),l=e=>{const t=a();return e?t.clickable:void 0}},11326:(e,t,r)=>{r.d(t,{a:()=>l});var a=r(24328);const l=e=>{const[t,r]=(0,a.useState)(!1),[l,n]=(0,a.useState)({});return(0,a.useEffect)((()=>{e().then((e=>{n(e||{})})).then((e=>r(!0))).catch((e=>r(!0)))}),[]),{isLoaded:t,savedState:l}}},43129:(e,t,r)=>{r.d(t,{Z:()=>o});var a=r(24328),l=r.n(a),n=r(67358);const i=(0,r(79692).Z)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),o=()=>{const e=i();return l().createElement(n.Z,{color:"secondary",className:e.loader})}},65298:(e,t,r)=>{r.d(t,{Z:()=>c});var a=r(24328),l=r.n(a),n=r(1730),i=r(52388);const o=(0,r(79692).Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),c=e=>{let{id:t,children:r}=e;const a=o();return l().createElement(i.H.Provider,{value:t},l().createElement(n.Z,{className:a.view},r))}},52388:(e,t,r)=>{r.d(t,{H:()=>l});var a=r(24328);const l=r.n(a)().createContext(null);l.displayName="DashboardViewIdContext"},5260:(e,t,r)=>{let a;r.d(t,{o:()=>a}),function(e){e.INIT="init",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(a||(a={}))},26505:(e,t,r)=>{r.r(t),r.d(t,{default:()=>nn});var a=r(24328),l=r.n(a),n=r(52730),i=r(33016),o=r(36138),c=r(4171),s=r(17440),u=r(87918),d=r.n(u),p=r(11326),f=r(7907),m=r(79002),h=r(89810),y=r(5260),g=r(29627);const v=e=>{const[t,r]=(0,a.useState)(null),l=(0,g._)();return(0,a.useEffect)((()=>{const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:(0,s.pluck)("uri",e)}]);l((0,c.FK9)({query:(0,c.ECL)({activeness:"active",filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]})).then((e=>{let{type:t}=e;return r(t)})).catch((()=>r(null)))}),[e]),t};var b=r(90436),E=r(79692);const x=(0,E.Z)({root:{display:"flex",alignItems:"center",width:"100%",borderBottom:"solid 1px rgba(0, 0, 0, 0.12)"},title:{fontSize:"18px",flexShrink:0,padding:"0 20px"},content:{overflow:"hidden",flexGrow:1},updateButton:{height:36,width:36,padding:"0 20px"}}),O=e=>{let{title:t,children:r}=e;const a=x();return l().createElement("div",{className:a.root},l().createElement(b.Z,{variant:"body2",className:a.title},t),l().createElement("div",{className:a.content},r))};var w=r(17822);let N;!function(e){e.FILL_RATE_CHART="fillRate",e.UNIQUENESS_CHART="uniqueness",e.SUMMARY="summary",e.VALIDATION="validation",e.FREQUENCY="frequency",e.LENGTH="length",e.CROSSWALK="crosswalk",e.MONTH_DISTRIBUTION="monthDistribution",e.DAY_OF_WEEK_DISTRIBUTION="dayOfWeekDistribution",e.DAY_OF_MONTH_DISTRIBUTION="dayOfMonthDistribution",e.VALUE_DISTRIBUTION="valueDistribution",e.PATTERN="patternAnalysis",e.UNSUPPORTED="unsupported"}(N||(N={}));var T=r(73487),S=r(78223),R=r(39878);const I=(e,t,r)=>({attributes:(t||[]).map(((t,a)=>{let{filter:l,fieldName:n,values:i}=t;return{data:{uri:null==r?void 0:r.uri,entityTypeUri:e,fieldName:n},filter:l,id:`attribute_${a}`,operator:"and",values:i}})),entityTypes:[e],id:"group",operator:"or"});let C,A;!function(e){e.STRING="string",e.FLOAT="float",e.INTEGER="integer",e.BOOLEAN="boolean",e.DATE="date",e.SSN="SSN",e.UNKNOWN="unknown"}(C||(C={})),function(e){e.ENTITY_TYPE="entityType",e.ATTRIBUTE_TYPE="attributeType"}(A||(A={}));const D={[A.ATTRIBUTE_TYPE]:[{id:"FillRateView",type:N.FILL_RATE_CHART,title:"Fill rate"},{id:"UniquenessAnalysisView",type:N.UNIQUENESS_CHART,title:d().text("Uniqueness analysis")},{id:"SummaryView",type:N.SUMMARY,title:d().text("Summary")},{id:"ValidationView",type:N.VALIDATION,title:d().text("Profiles with invalid data")},{id:"FrequencyAnalysis",type:N.FREQUENCY,title:d().text("Frequency analysis")},{id:"LengthStatistics",type:N.LENGTH,title:d().text("Length statistics")},{id:"PatternAnalysis",type:N.PATTERN,title:d().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:N.CROSSWALK,title:d().text("Source system analysis")},{id:"MonthDistribution",type:N.MONTH_DISTRIBUTION,title:d().text("Month distribution")},{id:"DayOfWeekDistribution",type:N.DAY_OF_WEEK_DISTRIBUTION,title:d().text("Day of week distribution")},{id:"DayOfMonthDistribution",type:N.DAY_OF_MONTH_DISTRIBUTION,title:d().text("Day of month distribution")},{id:"ValueDistribution",type:N.VALUE_DISTRIBUTION,title:d().text("Value distribution")},{id:"UnsupportedDataType",type:N.UNSUPPORTED,title:d().text("Unsupported Data Type")}],[A.ENTITY_TYPE]:[{id:"SummaryView",type:N.SUMMARY,title:d().text("Summary")}]},L={[A.ATTRIBUTE_TYPE]:{default:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"LengthStatistics"}],[C.SSN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:2,height:19,id:"PatternAnalysis"}],[C.BOOLEAN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"FrequencyAnalysis"},{x:0,y:19,width:2,height:19,id:"CrosswalkAnalysis"}],[C.DATE]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"},{x:0,y:57,width:2,height:19,id:"MonthDistribution"},{x:2,y:57,width:2,height:19,id:"DayOfWeekDistribution"},{x:0,y:76,width:4,height:19,id:"DayOfMonthDistribution"}],[C.INTEGER]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}],[C.FLOAT]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}]}};function P(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){_(e,t,r[t])}))}return e}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const j=(0,s.map)((e=>P({},e,{localizedValue:d().number(e.value)}))),M=e=>(0,s.isNil)(e)?"":`(${e}%)`,k=e=>(0,s.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),F=(0,s.curry)(((e,t,r)=>({advanced:[I(t,r.map((0,s.when)((()=>(0,c.Lt4)(e.type)),(0,s.evolve)({values:(0,s.map)((0,c.mOr)(c.ZBU))}))),e)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}))),U=e=>t=>{let{detailedAttributeType:r,entityTypeUri:a,dvfs:l}=t;return(0,s.pipe)(e({fieldName:r.fieldName,entityTypeUri:a,dvfs:l}),F(r,a))},z=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 C.STRING;case c.oS0.TYPE_COUNT:case c.oS0.TYPE_DOLLAR:case c.oS0.TYPE_INT:case c.oS0.TYPE_LONG:return C.INTEGER;case c.oS0.TYPE_FLOAT:case c.oS0.TYPE_DOUBLE:case c.oS0.TYPE_NUMBER:return C.FLOAT;case c.oS0.TYPE_BOOLEAN:case c.oS0.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return C.BOOLEAN;case c.oS0.TYPE_ACTIVENESS_DATE:case c.oS0.TYPE_DATE:case c.oS0.TYPE_LOCAL_DATE:case c.oS0.TYPE_TIMESTAMP:return C.DATE;case c.oS0.TYPE_SSN:return C.SSN;default:return C.UNKNOWN}},B=e=>{let{percent:t,value:r}=e;return P({width:`${t}%`},r>0&&{minWidth:"3px"})},V=(0,s.pipe)((0,s.pluck)("percent"),(e=>Math.max(...e)));var H=r(71153),Z=r.n(H);const W=(0,E.Z)({wrapper:{width:"100%",display:"flex",justifyContent:"center",margin:"auto",flexWrap:"wrap",flexDirection:"column",marginBottom:2},item:{display:"flex",alignItems:"center",height:19},itemColor:{width:12,height:12,marginRight:9,flexShrink:0}}),Y=e=>{let{payload:t}=e;const r=W();return l().createElement("div",{className:Z()(r.wrapper)},t.map((e=>l().createElement("div",{key:e.id,className:r.item},l().createElement("div",{style:{background:e.color},className:r.itemColor}),e.value))))},G=(0,E.Z)({root:{display:"flex",flexDirection:"column",height:"100%"},stackedBar:{width:"100%",display:"flex",flexWrap:"nowrap",marginTop:"13px"},bar:{height:"24px",flexGrow:1,position:"relative",width:"50%",transition:"width 0.7s","&:hover":{"&:after":{content:'""',background:"rgba(0, 0, 0, 0.1)"}},"&:after":{position:"absolute",top:"-3px",bottom:"-5px",left:"-5px",right:"-5px",transition:"background 0.3s",zIndex:1,pointerEvents:"none"}},inactivePart:{background:"#EFEFEF"},tooltipTitle:{fontSize:"11px"},tooltipFillRate:{marginTop:"4px"},tooltip:{background:"#fff",filter:"drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)) drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2))",padding:"5px 8px"},legendWrapper:{position:"relative",flexGrow:1},legendLabel:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},legendValue:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.87)"},clickable:{cursor:"pointer"}});function q(){return q=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},q.apply(this,arguments)}const $=(0,a.forwardRef)(((e,t)=>{let{className:r}=e,a=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["className"]);const n=G();return l().createElement("div",q({className:Z()(n.bar,r)},a,{ref:t}))}));$.displayName="Bar";const Q=$,K=(0,E.Z)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"}}),X=e=>{let{label:t,value:r}=e;const a=K();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:Z()(a.label,a.chartDataLabel)},t),r)},J=(0,E.Z)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),ee=e=>{let{data:t,title:r,DataRenderer:a=X}=e;const n=J();return l().createElement("div",{className:n.tooltipWrapper},r&&l().createElement("div",{className:n.title},r),t.map(((e,t)=>l().createElement("div",{key:t,className:n.row},l().createElement(a,e)))))};function te(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){re(e,t,r[t])}))}return e}function re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ae=(0,S.Z)(Q),le=e=>{let{label:t,value:r,percent:a}=e;return[{label:t,value:`${d().number(r)} ${M(a)}`}]},ne=(0,R.Z)((e=>{let{data:t,colors:r,onItemClick:a}=e;const n=G(),i=a&&(e=>a(e)),o=!!a;return l().createElement("div",{className:n.root},l().createElement("div",{className:n.stackedBar},t.map(((e,t)=>l().createElement(ae,{className:o&&n.clickable,key:e.label,tooltipTitle:l().createElement(ee,{data:le(e)}),style:te({},B(e),{background:r[t]}),onClick:()=>i(e.group)})))),l().createElement("div",{className:n.legendWrapper},l().createElement(T.De,{layout:"vertical",align:"left",verticalAlign:"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%"},content:l().createElement(Y,null),payload:(t||[]).map(((e,t)=>{let{group:a,label:i,value:o,percent:s}=e;return{id:a,type:"square",color:r[t],value:l().createElement(l().Fragment,null,l().createElement("span",{className:n.legendLabel},i),l().createElement("span",{className:n.legendValue},`${(0,c.k7L)(o,999)} ${M(s)}`))}}))})))}));var ie=r(17998),oe=r(39475),ce=r(82726);const se=(0,E.Z)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:"5px",lineHeight:"24px"},infoIcon:{position:"relative"}}))),ue=e=>{let{title:t,infoTooltipTitle:r,children:a}=e;const n=se(!!a),i=!!r;return l().createElement(ie.Z,{title:t,className:n.root,classes:{title:n.title}},i&&l().createElement(oe.k,{icon:ce.Z,size:"XXS",tooltipTitle:r,className:n.infoIcon}),a)};var de=r(44443),pe=r(7882),fe=r(82068),me=r(43129),he=r(77277),ye=r(43266);let ge;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(ge||(ge={}));const ve=(0,E.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"}}))),be=m.B9.ERROR,Ee=e=>{let{onRefresh:t,height:r,errorData:a={},variant:n=ge.SMALL}=e;const{Icon:i=be,message:o,title:c}=a,s=ve({height:r});return l().createElement("div",{className:Z()(s.container,s[`${n}`])},l().createElement(i,{className:s.icon}),c&&l().createElement(b.Z,{className:s.title},c),o&&l().createElement(b.Z,{className:s.message},o),!!t&&l().createElement(he.Z,{className:s.refreshButton,startIcon:l().createElement(ye.Z,{color:"primary",className:s.refreshIcon}),onClick:t,"data-reltio-id":"reltio-dq-dashboard-chart-refresh-button"},l().createElement(b.Z,{variant:"button"},d().text("Refresh"))))},xe=(0,E.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"}}),Oe=m.B9.NO_DATA,we=e=>{let{height:t,data:r={},variant:a=ge.SMALL}=e;const{Icon:n=Oe,message:i,title:o}=r,c=xe({height:t});return l().createElement("div",{className:Z()(c.container,c[`${a}`])},l().createElement(n,{className:c.icon}),o&&l().createElement(b.Z,{className:c.title},o),i&&l().createElement(b.Z,{className:c.message},i))},Ne=(0,E.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}}))),Te=e=>{let{loadingState:t,onRefresh:r,children:a,data:n,className:i}=e;const o=Ne();return l().createElement(fe.Z,{className:Z()(o.viewContent,i)},l().createElement(de.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:i,height:o}=e;switch(t){case y.o.LOADED:return n&&0!==n.length?l().createElement(pe.Z,{error:l().createElement(Ee,{errorData:{message:d().text("Something went wrong")},height:o,variant:ge.SMALL})},a({data:n,width:i,height:o})):l().createElement(we,{height:o,data:{Icon:m.B9.NO_DATA,message:d().text("Go ahead and load some data. We’ll put it on the scales and let you know here if it measures up."),title:d().text("Give us something to go on!")},variant:ge.SMALL});case y.o.LOADING:return l().createElement(me.Z,null);case y.o.ERROR:return l().createElement(Ee,{errorData:{Icon:m.B9.ERROR,message:d().text("No need to fret - just refresh and it will work itself out."),title:d().text("Oops! We ran into a problem.")},height:o,onRefresh:r,variant:ge.SMALL});default:return l().createElement("div",null,"Loading...")}})))};var Se=r(1730);const Re=(0,E.Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),Ie=e=>{let{config:t,children:r}=e;const a=Re(),{type:n}=t;return l().createElement(Se.Z,{className:a.view,"data-reltio-id":`reltio-dq-dashboard-chart-${n}`},r)},Ce=e=>{let{label:t,value:r}=e;const a=K();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:Z()(a.label,a.infoDataLabel)},t),r)},Ae={[c.s9T.MISSING]:"#CE5C00",[c.s9T.EXISTS]:"#C4CE00"},De=(0,s.map)((e=>{let{group:t}=e;return Ae[t]||(0,c.f4_)(t)})),Le=e=>({[c.s9T.MISSING]:d().text("Missing"),[c.s9T.EXISTS]:d().text("Exists")}[e]||e),Pe=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,r]=e;return{label:Le(t),group:t,value:r}})),(0,s.sortBy)((e=>Object.values(c.s9T).indexOf(e.group))),j),_e=e=>Object.keys(e).reduce(((t,r)=>(t[r]=Pe(e[r]),t)),{}),je=(0,s.propOr)({},"fillRate"),Me=(0,s.pipe)(je,Pe,(0,s.when)(k,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,De])),ke=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:t===c.s9T.EXISTS?c.j5E.EXISTS:c.j5E.MISSING_VALUE,fieldName:r}]})),Fe=U(ke),Ue=l().createContext(null);Ue.displayName="ChartsDataContext";const ze=e=>{const{data:t,state:r,reload:l}=(0,a.useContext)(Ue);return{data:(0,a.useMemo)((()=>e(t)),[t,e]),state:r,reload:l}},Be=l().createContext(null);Be.displayName="DetailedAttributeTypeContext";const Ve=l().createContext(null);Ve.displayName="EntityTypeContext";const He=e=>{const t=(0,n.useDispatch)(),r=(0,a.useContext)(Be),l=(0,a.useContext)(Ve);return(0,s.pipe)(e({detailedAttributeType:r,entityTypeUri:l.uri}),h.ui.actions.openSearch,t)},Ze=e=>{let{config:t}=e;const{title:r}=t,{data:a,state:n,reload:i}=ze(Me),{chartData:o,colors:c}=a,s=He(Fe),u=l().createElement(ee,{title:d().text("Fill rate"),data:[{label:`${d().text("Exists")}:`,value:d().text("Profiles with data")},{label:`${d().text("Missing")}:`,value:d().text("Profiles without data")}],DataRenderer:Ce});return l().createElement(Ie,{config:t},l().createElement(ue,{title:r,infoTooltipTitle:u}),l().createElement(Te,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(ne,{data:t,colors:c,onItemClick:s})})))},We={[c.dC6.UNIQUE]:"#4BAFFF",[c.dC6.NOT_UNIQUE]:"#C34980"},Ye=(0,s.map)((e=>{let{group:t}=e;return We[t]||(0,c.f4_)(t)})),Ge=e=>({[c.dC6.UNIQUE]:d().text("Unique"),[c.dC6.NOT_UNIQUE]:d().text("Not unique")}[e]||e),qe=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,r]=e;return{label:Ge(t),group:t,value:r}})),(0,s.sortBy)((e=>Object.values(c.dC6).indexOf(e.group))),j),$e=(0,s.propOr)({},"uniqueness"),Qe=(0,s.pipe)($e,qe,(0,s.when)(k,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,Ye])),Ke=e=>{let{config:t}=e;const{title:r}=t,{data:a,state:n,reload:i}=ze(Qe),{chartData:o,colors:c}=a,s=l().createElement(ee,{title:d().text("Uniqueness analysis"),data:[{label:`${d().text("Unique")}:`,value:d().text("Number of values that only appear once and have no duplicates")},{label:`${d().text("Not unique")}:`,value:d().text("Number of values that have at least one duplicate in the list")}],DataRenderer:Ce});return l().createElement(Ie,{config:t},l().createElement(ue,{title:r,infoTooltipTitle:s}),l().createElement(Te,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(ne,{data:t,colors:c})})))};var Xe=r(4614),Je=r(80030),et=r(7089);const tt=(e,t)=>(e||[]).some((0,s.propEq)("attribute",t)),rt=e=>[c.oS0.TYPE_FLOAT,c.oS0.TYPE_DOUBLE,c.oS0.TYPE_NUMBER].includes(e);let at;function lt(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){nt(e,t,r[t])}))}return e}function nt(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"}(at||(at={}));const it=(0,s.curry)(((e,t)=>e.some((e=>t.details[e.value])))),ot=(0,s.curry)(((e,t)=>{var r;return 0===e.length||it(e,t)||(null===(r=t.children)||void 0===r?void 0:r.some((t=>ot(e,t))))})),ct=(0,s.curry)(((e,t)=>{var r;const a=e[t.fieldName];return null==a||null===(r=a.find((0,s.propEq)("group",c.s9T.EXISTS)))||void 0===r?void 0:r.value})),st=(0,s.curry)(((e,t)=>{var r;const a=e[t.fieldName];return!(null!=a&&null!==(r=a.find((0,s.propEq)("group",c.s9T.EXISTS)))&&void 0!==r&&r.value)})),ut=(0,s.curry)((function(e,t){var r;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const l=t.fieldName||(0,c.Tde)(t.uri,a);return st(e,lt({},t,{fieldName:l}))||(null===(r=t.children)||void 0===r?void 0:r.some((r=>ut(e,r,a.concat({name:t.name,label:t.label})))))})),dt=(0,s.curry)(((e,t)=>t.reduce(((t,r)=>{const a=((e,t)=>{var r;return null===(r=e.label||e.name)||void 0===r?void 0:r.toLowerCase().includes(t.toLowerCase())})(r,e),l=a?r.children||[]:dt(e,r.children||[]);return(a||l.length)&&t.push(Object.assign({},r,l.length&&{children:l})),t}),[])));function pt(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){ft(e,t,r[t])}))}return e}function ft(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const mt=e=>{let{attrTypeItem:t,dvf:r=[],matchAttributes:a=[]}=e;const{uri:l,required:n,isAttributeReference:i}=t;return{[at.INCLUDED_IN_MATCHING]:a.includes(l),[at.CONTAIN_VF]:tt(r,l),[at.REQUIRED]:!!n,[at.REFERENCE]:i,[at.RDM_LOOKUP]:(0,c.lS4)(t)}},ht=e=>({[at.INCLUDED_IN_MATCHING]:d().text("Included in match rule"),[at.CONTAIN_VF]:d().text("Has validation functions"),[at.REQUIRED]:d().text("Required"),[at.REFERENCE]:d().text("Reference attribute"),[at.RDM_LOOKUP]:d().text("RDM")}[e]||e),yt=(0,s.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,s.pipe)((0,s.chain)((e=>{const l=e.children?yt(e.children,t.concat({name:e.name,label:e.label}),r||(0,c.YkG)(e),a+1):[];return[{attributeItem:pt({},e,{fieldName:(0,c.Tde)(e.uri,t),isAttributeReference:(0,c.YkG)(e)||r}),level:a},...l]})))(e)}));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 vt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",gt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#6663F6"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 14.4h2.411c.016-.205.047-.405.093-.6H8.4v-1.2h3.012c.137-.215.296-.416.472-.6H8.4v-1.2h6v.011a3.896 3.896 0 011.8.287V8.4c0-.66-.54-1.2-1.2-1.2H7.8c-.66 0-1.2.54-1.2 1.2v7.8c0 .66.54 1.2 1.2 1.2h4.083a3.892 3.892 0 01-.979-1.8H8.4v-1.2zm6-4.2h-6V9h6v1.2zm2.58 5.934L18.852 18l-.852.852-1.872-1.872a2.66 2.66 0 01-1.434.42A2.695 2.695 0 0112 14.7c0-1.494 1.206-2.7 2.7-2.7 1.494 0 2.7 1.206 2.7 2.7 0 .528-.156 1.014-.42 1.434zm-2.28.066a1.5 1.5 0 10-.001-3.001A1.5 1.5 0 0014.7 16.2z",fill:"#fff"}))};function bt(){return bt=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},bt.apply(this,arguments)}const Et=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",bt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#1DACF5"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4 9.6H9.3L12 6.9l2.7 2.7h-2.1v3.846l-3.6 3.6-.846-.846 3.246-3.246V9.6zm4.446 6.6l-.846.846L12.954 15l.846-.846 2.046 2.046z",fill:"#fff"}))};function 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=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",xt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#7F22FD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 9v1.2h1.2V9H8.4zm0 2.4v1.2h1.2v-1.2H8.4zm0 2.4V15h1.2v-1.2H8.4zM10.8 9v1.2h4.8V9h-4.8zm0 2.4v1.2h4.8v-1.2h-4.8zm0 2.4V15h4.8v-1.2h-4.8zm6-6v8.4H7.2V7.8h9.6zm1.2 9V6.6H6V17.4h12v-.6z",fill:"#fff"}))};function wt(){return wt=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},wt.apply(this,arguments)}const Nt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",wt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#4B31E9"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 15.6h1.8V15a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-3V9.6H8.4a.6.6 0 01-.6-.6V6.6a.6.6 0 01.6-.6H12a.6.6 0 01.6.6V9a.6.6 0 01-.6.6h-1.2v1.8h1.8v-.6a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-1.8v3z",fill:"#fff"}))};function Tt(){return Tt=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},Tt.apply(this,arguments)}const St=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Tt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#80D2FC"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6c-3.312 0-6 2.688-6 6s2.688 6 6 6 6-2.688 6-6-2.688-6-6-6zm-.6 4.96V9h1.2v1.96l1.698-.98.6 1.04L13.2 12l1.698.98-.6 1.04-1.698-.98V15h-1.2v-1.96l-1.698.98-.6-1.04L10.8 12l-1.698-.98.6-1.04 1.698.98zM7.2 12c0 2.646 2.154 4.8 4.8 4.8s4.8-2.154 4.8-4.8-2.154-4.8-4.8-4.8A4.806 4.806 0 007.2 12z",fill:"#fff"}))},Rt=(0,E.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),It={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let Ct;!function(e){e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal"}(Ct||(Ct={}));const At=e=>{let{detailType:t,size:r=It.NORMAL,variant:a=Ct.NORMAL}=e;const n=Rt(r),i=Z()(n.icon,n[a]);switch(t){case at.RDM_LOOKUP:return l().createElement(Ot,{className:i});case at.CONTAIN_VF:return l().createElement(vt,{className:i});case at.INCLUDED_IN_MATCHING:return l().createElement(Et,{className:i});case at.REFERENCE:return l().createElement(Nt,{className:i});case at.REQUIRED:return l().createElement(St,{className:i});default:return null}},Dt=(0,E.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 Lt(){return Lt=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},Lt.apply(this,arguments)}function Pt(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}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 jt=e=>{let{detailType:t,classes:r}=e,n=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["detailType","classes"]);const i=Dt(),{data:o,state:s}=(0,a.useContext)(Ue);let u=Ct.NORMAL;const d=s===y.o.LOADING,p=(e=>{var t;return 0===(null==e||null===(t=e.fillRate)||void 0===t?void 0:t[c.s9T.MISSING])})(o);return t===at.REQUIRED&&(d&&(u=Ct.LOADING),d||p||(u=Ct.BAD_QUALITY)),l().createElement(et.Z,Lt({classes:Pt({root:Z()(i.root,{[i.badQuality]:t===at.REQUIRED&&!d&&s!==y.o.INIT&&!p}),label:i.label},r),label:ht(t),icon:l().createElement(At,{detailType:t,variant:u})},n))},Mt=(0,E.Z)({root:{display:"flex",flexWrap:"wrap",flexGrow:1}}),kt=e=>{let{details:t,chipClasses:r={}}=e;const a=Mt();return l().createElement("div",{className:a.root},Object.entries(t||{}).filter((e=>{let[,t]=e;return t})).map((e=>{let[t]=e;return l().createElement(jt,{key:t,detailType:t,classes:r})})))},Ft=(0,E.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:"16px",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"}}),Ut=e=>{let{title:t,children:r,className:a}=e;const n=Ft();return l().createElement("div",{className:Z()(n.info,a)},l().createElement("div",{className:n.infoTitle},t),l().createElement("div",{className:n.infoContent},r))};function zt(){return zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},zt.apply(this,arguments)}const Bt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",zt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg1279746712a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"15",height:"8"},l().createElement("path",{d:"M11.667 4H5C2.793 4 1 5.793 1 8s1.793 4 4 4h6.667c2.206 0 4-1.793 4-4s-1.794-4-4-4zm0 6.667H5a2.666 2.666 0 110-5.334h6.667a2.666 2.666 0 110 5.334zm0-4.667c-1.107 0-2 .893-2 2s.893 2 2 2c1.106 0 2-.893 2-2s-.894-2-2-2z",fill:"#000"})),l().createElement("g",{mask:"url(#svg1279746712a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Vt(){return Vt=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},Vt.apply(this,arguments)}const Ht=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Vt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg208732808a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"14"},l().createElement("path",{d:"M7.992 1.333A6.663 6.663 0 001.332 8c0 3.68 2.98 6.667 6.66 6.667A6.67 6.67 0 0014.665 8a6.67 6.67 0 00-6.673-6.667zm.007 12A5.332 5.332 0 012.665 8 5.332 5.332 0 018 2.667 5.332 5.332 0 0113.332 8a5.332 5.332 0 01-5.333 5.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z",fill:"#000"})),l().createElement("g",{mask:"url(#svg208732808a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Zt(){return Zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Zt.apply(this,arguments)}const Wt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Zt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg1638934380a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},l().createElement("path",{d:"M5.948 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2zM7.947 12v-1.1h1.1V12h-1.1zM13.65 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2z",fill:"#000"})),l().createElement("g",{mask:"url(#svg1638934380a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function 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 Gt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Yt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("path",{d:"M2.11 12v-.825h1.331V5.169L2 5.741v-.89L3.331 4.3h1.045v6.875h1.089V12H2.11zM5.968 11.032l1.65-2.508c.242-.367.403-.62.484-.759.08-.147.136-.29.165-.429.03-.14.044-.341.044-.605v-.77a.778.778 0 00-.253-.583c-.169-.161-.389-.242-.66-.242h-1.21V4.3h1.1c.638 0 1.126.158 1.463.473.345.308.517.774.517 1.397v.462c0 .367-.018.645-.055.836-.037.19-.103.37-.198.539-.088.169-.264.455-.528.858l-1.518 2.299h2.519V12h-3.52v-.968zM13.544 10.262c0 .609-.147 1.052-.44 1.331-.293.271-.77.407-1.43.407h-1.298v-.825h1.397c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.239c0-.242-.073-.433-.22-.572-.147-.147-.341-.22-.583-.22h-1.067v-.825h.957a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.902c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187h-1.298V4.3h1.166c.623 0 1.093.14 1.408.418.323.271.484.704.484 1.298v.693c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.924z",fill:"#000",fillOpacity:".541"}))};function 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 $t=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",qt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg924767730a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},l().createElement("path",{d:"M5.463 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H2.03v-.836h1.562c.271 0 .491-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.059-.396-.176-.528-.11-.14-.279-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473h1.463v.836H3.714c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM9.136 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H5.704v-.836h1.562c.27 0 .49-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.06-.396-.176-.528-.11-.14-.28-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473H8.96v.836H7.387c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM12.255 12l-1.683-6.886V12H9.68V4.3h1.562l1.694 6.886V4.3h.89V12h-1.572z",fill:"#000"})),l().createElement("g",{mask:"url(#svg924767730a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Qt(){return Qt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Qt.apply(this,arguments)}const Kt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Qt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg3578961193a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},l().createElement("path",{d:"M5.345 12l-.418-1.947H2.782L2.353 12h-.979l1.86-7.7h1.264L6.324 12h-.979zM3.85 5.026l-.89 4.202H4.75L3.85 5.026zM10.494 10.262c0 .63-.146 1.078-.44 1.342-.286.264-.763.396-1.43.396h-2.09V4.3h1.958c.653 0 1.13.132 1.43.396.308.264.462.704.462 1.32v.627c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.99zM9.427 5.917c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187H7.491v2.431h1.133a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.836zm.11 3.256c0-.242-.073-.433-.22-.572-.147-.147-.34-.22-.583-.22H7.491v2.794h1.232c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.173zM13.119 12c-.638 0-1.13-.154-1.474-.462-.337-.315-.506-.785-.506-1.408V6.17c0-.623.169-1.089.506-1.397.345-.315.836-.473 1.474-.473h1.342v.836h-1.452c-.271 0-.491.08-.66.242a.778.778 0 00-.253.583v4.378c0 .227.084.422.253.583.169.161.389.242.66.242h1.452V12h-1.342z",fill:"#000"})),l().createElement("g",{mask:"url(#svg3578961193a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))},Xt=(0,E.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}}}),Jt={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},er=e=>{let{type:t,size:r=Jt.SMALL}=e;const a=Xt(r);switch(z(t)){case C.STRING:return l().createElement(Kt,{className:a.icon});case C.FLOAT:return l().createElement(Wt,{className:a.icon});case C.INTEGER:return l().createElement(Gt,{className:a.icon});case C.BOOLEAN:return l().createElement(Bt,{className:a.icon});case C.DATE:return l().createElement(Ht,{className:a.icon});case C.SSN:return l().createElement($t,{className:a.icon});default:return l().createElement(Kt,{className:a.icon})}},tr=e=>{let{detailedAttributeType:t}=e;const r=Ft(),n=(e=>{const[t,r]=(0,a.useState)(null),l=(0,a.useContext)(Ve),n=(0,g._)();return(0,a.useEffect)((()=>{if(l.uri&&e){const t={filter:c.j5E.EXISTS,fieldName:e},a={filter:c.j5E.EQUALS,fieldName:"type",values:[l.uri]};r(null),n((0,c.j_Q)([t,a])).then((e=>{let{total:t}=e;return r(t)})).catch(console.error)}}),[l.uri,e]),t})(t.fieldName),i=null===n?l().createElement(Xe.Z,{size:"24",className:r.totalLoading}):(0,c.k7L)(n);return l().createElement("div",null,l().createElement("div",{className:r.header},l().createElement(Ut,{title:d().text("Profiles"),className:r.attributeTypeSummary},l().createElement(Je.ZP,{title:l().createElement(ee,{data:[{label:d().text("Entities with exists attribute"),value:d().number(n)}]})},l().createElement("div",null,i))),l().createElement(Ut,{title:d().text("Data type"),className:r.attributeTypeSummary},(o=t.type,l().createElement(l().Fragment,null,l().createElement("div",{className:r.attributeTypeIconWrapper},l().createElement(er,{type:o,size:Jt.NORMAL})),d().text(o))))),l().createElement(kt,{details:t.details}));var o},rr=e=>{let{entityType:t}=e;const{data:r,state:i}=(0,a.useContext)(Ue),o=((e,t)=>{const r=t.attributes||[],a=t=>t.filter(c.Uty).filter((0,s.either)((0,s.prop)("label"),(0,s.prop)("name"))).reduce(((t,r)=>{const l=(0,c.EUG)(e,r);return null!=l&&l.length?[...t,r,...a(l)]:[...t,r]}),[]);return a(r).length})((0,n.useSelector)(h.ZP.selectors.getMetadata),t),{activeProfiles:u=0,inactiveProfiles:p=0,sourceSystems:f=0}=(null==r?void 0:r.summary)||{},m=e=>i===y.o.LOADING?l().createElement(Xe.Z,{size:"24",className:g.totalLoading}):d().number(e),g=Ft();return l().createElement("div",{className:g.header},l().createElement(Ut,{title:d().text("Active profiles"),className:g.entitySummary},m(u)),l().createElement(Ut,{title:d().text("Inactive profiles"),className:g.entitySummary},m(p)),l().createElement(Ut,{title:d().text("Attributes"),className:g.entitySummary},d().number(o)),l().createElement(Ut,{title:d().text("Source systems"),className:g.entitySummary},m(f)))},ar=l().createContext(null);ar.displayName="DataLevelContext";const lr=(0,E.Z)({content:{padding:"0 16px",marginTop:"4px"}}),nr=e=>{let{config:t}=e;const r=lr(),n=(0,a.useContext)(Be),i=(0,a.useContext)(ar),o=(0,a.useContext)(Ve),s=i===A.ATTRIBUTE_TYPE,u=s?(0,c.idV)(n.label):(0,c.idV)(o.label);return l().createElement(Ie,{config:t},l().createElement(ue,{title:u}),l().createElement(fe.Z,{className:r.content},s?l().createElement(tr,{detailedAttributeType:n}):l().createElement(rr,{entityType:o})))};var ir=r(65298);const or=(0,E.Z)({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}});function cr(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){sr(e,t,r[t])}))}return e}function sr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ur=m.B9.ERROR,dr=e=>{let{config:t,errorData:r,titleChildren:a,infoTooltipTitle:n,onRefresh:i}=e;const{id:o,title:c}=t,s=or();return l().createElement(ir.Z,{id:o},l().createElement(ue,{title:c,infoTooltipTitle:n},a),l().createElement(fe.Z,{className:s.viewContent},l().createElement(de.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},l().createElement(Ee,{errorData:cr({Icon:ur},r),onRefresh:i,variant:ge.SMALL}))))},pr=e=>{let{keyword:t,entityTypeUri:r}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[I(r)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}},fr=e=>{let{fieldName:t,value:r,entityTypeUri:a}=e;return pr({keyword:`${c.j5E.EQUALS}(${t}, ${r})`,entityTypeUri:a})};function mr(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=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),j),yr=e=>{let{sortDirection:t,sortField:r}=e;return(e,a)=>"asc"===t?e[r]>a[r]?1:-1:e[r]<a[r]?1:-1},gr=(0,s.curry)(((e,t)=>t.filter((t=>e.find((0,s.propEq)("uri",t.group)))).map((t=>{const r=e.find((0,s.propEq)("uri",t.group)).name;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){mr(e,t,r[t])}))}return e}({},t,{label:r,group:r})})))),vr=hr("frequency"),br=hr("pattern"),Er=e=>[{filter:c.j5E.EQUALS,values:[[e]],fieldName:"analyticsAttributes.AttributeValidations.FunctionName"}],xr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}`,value:t,entityTypeUri:a})})),Or=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.ON,values:[t],fieldName:r}]})),wr=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:r}]})),Nr=e=>{let{detailedAttributeType:t,entityTypeUri:r}=e;return(0,s.cond)([[c.j5n,(0,s.always)(xr)],[c.Lt4,(0,s.always)(U(Or))],[s.identity,(0,s.always)(U(wr))]])(t.type)({detailedAttributeType:t,entityTypeUri:r,dvfs:[]})},Tr=U((()=>Er)),Sr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:a})}));var Rr=r(79573),Ir=r(45108),Cr=r(92332),Ar=r(83088);const Dr=(0,s.pipe)((0,s.split)("|"),(e=>{let[t,r]=e;return{label:t,percent:r}})),Lr={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"},Pr=(0,E.Z)((e=>({colorBarContainer:{position:"relative",width:"100%",marginLeft:"16px",padding:"5px 0 6px",height:"100%",boxSizing:"border-box","&>span":{display:"block"},"&>span>div":{opacity:1,zIndex:1}},numberWhithPercent:{fontSize:"13px",lineHeight:"15px",fontWeight:"normal",color:e.palette.text.primary,flexShrink:0,width:"90px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},numberContainer:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 10px 0 16px",height:"100%"},bar:{borderRadius:"0 !important",minHeight:"16px !important",position:"initial !important","&:hover":{"&:after":{background:"rgba(0, 0, 0, 0.1)"}},"&:after":{content:'""',position:"absolute",top:"2px",left:"-3px",right:"-2px",bottom:"3px",transition:"background 0.3s"}},tooltipTitle:{color:"rgba(255, 255, 255, 0.6)"},headCell:{height:"100%",lineHeight:"47px","&>div":{padding:"0 10px 0 16px",display:"flex"},"&>div>span":{width:"100%",flexGrow:1,justifyContent:e=>e?"flex-start":"flex-end",flexDirection:e=>e?"row":"row-reverse",marginLeft:e=>e&&"auto!important"}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"47px",whiteSpace:"nowrap",overflow:"hidden","&:after":Lr},labelPercantageWrapper:{display:"flex",flexGrow:1},labelWrapper:{minWidth:"90px",position:"relative"},percentsWrapper:{marginLeft:"11px",display:"flex",width:"100%"},percentLabel:{color:e.palette.text.secondary,fontSize:"12px","&:first-child":{flexGrow:1}},attribute:{color:e.palette.text.primary,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",whiteSpace:"pre",overflow:"hidden",display:"flex",alignItems:"center",height:"100%",padding:"0 16px","&:after":Lr},tooltipValue:{whiteSpace:"pre-wrap"}})));function _r(){return _r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_r.apply(this,arguments)}function jr(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){Mr(e,t,r[t])}))}return e}function Mr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kr=e=>{let{className:t,headCellData:r,headIndex:a}=e,n=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["className","headCellData","headIndex"]);const i=Pr(!a),{label:o,percent:c}=Dr(r.label),s=!!c,u=l().createElement(Ar.C,{value:o},l().createElement("div",{className:i.headLabel},o));return l().createElement("div",{className:Z()(i.headCell,t)},l().createElement(Cr.default,_r({},n,{headCellData:jr({},r,{label:s?l().createElement("div",{className:i.labelPercantageWrapper},l().createElement("div",{className:i.labelWrapper},u),l().createElement("div",{className:i.percentsWrapper},l().createElement("span",{className:i.percentLabel},"0%"),l().createElement("span",{className:i.percentLabel},c,"%"))):u})})))};var Fr=r(59383),Ur=r(30488);const zr=(0,Ur.Z)(((e,t)=>{let{onItemClick:r}=e,{rowValue:{group:a}}=t;return{onClick:r&&(()=>{r(a)})}}))((e=>{let{value:t="",columnData:r,rowValue:a,onClick:n}=e;const{attributeCellClassName:i,LabelRenderer:o}=r,s=Pr(),u=(0,Fr.d)(n),d=l().createElement("div",{className:s.tooltipValue},t),p=!!o;return l().createElement(Ar.C,{value:d},l().createElement("div",{className:Z()(s.attribute,u,i),onClick:n},p?l().createElement(o,{chartData:a}):c.P6Y.strings.removeLineBreaks(t)))}));var Br=r(89902);const Vr=(0,S.Z)((e=>{let{value:t,maxValue:r,className:a}=e;return l().createElement(Br.Z,{width:t,maxWidth:r,className:a})})),Hr=(0,Ur.Z)(((e,t)=>{let{onItemClick:r,valueHeader:a,labelHeader:l}=e,{rowValue:{group:n}}=t;return{onClick:r&&(()=>{r(n)}),valueHeader:a,labelHeader:l}}))((e=>{let{value:t,columnData:{maxValue:r},rowValue:{percent:a,label:n},labelHeader:i,valueHeader:o,onClick:u}=e;const p=Pr(),f=(0,Fr.d)(u),m=l().createElement("span",{className:p.tooltipValue},n),h=0===t?"0":`${(0,c.k7L)(t,999)} ${M(a)}`,y=l().createElement(ee,{data:[{label:i,value:m},{label:o,value:`${d().number(t)} ${M(a)}`}]});return l().createElement("div",{className:Z()(p.numberContainer,f),onClick:u},l().createElement(b.Z,{className:p.numberWhithPercent},h),!(0,s.isNil)(r)&&l().createElement("div",{className:p.colorBarContainer},l().createElement(Vr,{value:t,maxValue:r,tooltipTitle:y,className:p.bar,showForDisabled:!0})))})),Zr=(0,E.Z)({tableContainer:e=>{let{width:t,height:r}=e;return{height:r,width:t,display:"flex",flexDirection:"column"}},cellBorder:{borderLeft:"none",borderRight:"none!important"}});function Wr(){return Wr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Wr.apply(this,arguments)}const Yr=e=>{let{width:t,height:r,data:n,options:i={},basicTableRef:o,onItemClick:c,labelCellClassName:s}=e,u=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["width","height","data","options","basicTableRef","onItemClick","labelCellClassName"]);const p=Zr({width:t,height:r}),{headers:[f,m]=[],showCountLabels:h=!1,showValues:y=!0,sortable:g=!1,LabelRenderer:v}=i,b=(0,a.useMemo)((()=>({cellBorder:p.cellBorder})),[p]),E=(0,a.useMemo)((()=>Math.max(...n.map((e=>e.value)))),[n]),x=(0,a.useMemo)((()=>{const e=V(n),t=m||d().text("No of Profiles");return e?t.concat(`|${e}`):t}),[n,m]),O=h?`${f} (${n.length})`:f,w=(0,a.useMemo)((()=>[{id:"label",label:O,resizable:!1,headCellRenderer:kr,attributeCellClassName:s,rowCellValueRenderer:zr,initialWidth:.4*t,sortable:g,LabelRenderer:v},...y?[{id:"value",label:x,resizable:!1,headCellRenderer:kr,rowCellValueRenderer:Hr,maxValue:E,initialWidth:.6*t,sortable:g}]:[]]),[x,E,t,f,y]),N=(0,a.useMemo)((()=>({onItemClick:c,labelHeader:f,valueHeader:m})),[c,f,m]);return l().createElement("div",{className:p.tableContainer},l().createElement(Ir.Z,Wr({columnsData:w,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:b,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:N},u)))},Gr=(0,E.Z)((()=>({layoutItemContent:{padding:"0 0 10px"}}))),qr=(0,R.Z)((e=>{let{config:t,data:r,title:n,headers:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,titleChildren:u,state:d,onRefresh:p,labelCellClassName:f,showCountLabels:m,LabelRenderer:h}=e;const y=Gr(),[g,v]=(0,a.useState)("desc"),[b,E]=(0,a.useState)("value"),x=(0,a.useCallback)(((e,t)=>c?c({sortDirection:g,sortField:b})(e,t):yr({sortDirection:g,sortField:b})(e,t)),[g,b]),O=e=>{v((()=>b===e?(0,Rr.Dh)(g):g)),E(e)},w=(0,a.useMemo)((()=>[...r.sort(x)]),[x,r]);return l().createElement("div",null,l().createElement(Ie,{config:t},l().createElement(ue,{title:n,infoTooltipTitle:o},u),l().createElement(Te,{className:y.layoutItemContent,data:w,loadingState:d,onRefresh:p},(e=>{let{data:t,width:r=0,height:a=0}=e;return l().createElement(Yr,{data:t,width:r,height:a,options:{headers:i,sortable:!!c,showCountLabels:m,LabelRenderer:h},sorting:{field:b,order:g},onSort:O,onItemClick:s,labelCellClassName:f})}))))})),$r=l().createContext(null);$r.displayName="DVFContext";var Qr=r(86689);function Kr(){return Kr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Kr.apply(this,arguments)}const Xr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Kr({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg1830866123a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg1830866123a)"},l().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},l().createElement("path",{d:"M12.375 18.688a7 7 0 017-7h75.742a7 7 0 017 7v49.02a7 7 0 01-7 7H19.375a7 7 0 01-7-7v-49.02z"}),l().createElement("path",{opacity:".4",d:"M16.844 22.813a7 7 0 017-7h75.741a7 7 0 017 7v49.02a7 7 0 01-7 7H23.844a7 7 0 01-7-7v-49.02z"})),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"29.318",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 31.381a3.562 3.562 0 013.552-3.563 3.562 3.562 0 013.552 3.563 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 29.052c0-.726.588-1.313 1.313-1.313h23.983a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 33.553c0-.518.42-.938.938-.938h43.37a.938.938 0 010 1.876h-43.37a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 36.554c0-.31.252-.563.563-.563h13.993a.563.563 0 110 1.126H31.26a.563.563 0 01-.563-.563z",fill:"#B1AABD"}),l().createElement("rect",{opacity:".5",x:"19.854",y:"17.689",width:"29.914",height:"4.126",rx:"2.063",fill:"#645F6D"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"43.573",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("rect",{x:"19.854",y:"42.072",width:"7.105",height:"7.127",rx:"3.552",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 43.306c0-.725.588-1.313 1.313-1.313h28.41a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 47.808c0-.518.42-.938.938-.938h48.23a.938.938 0 110 1.876h-48.23a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 50.809c0-.31.252-.563.563-.563h38.884a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"57.828",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 59.891a3.562 3.562 0 013.552-3.564 3.562 3.562 0 013.552 3.564 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 57.561c0-.725.588-1.313 1.313-1.313h38.132a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 62.063c0-.518.42-.938.938-.938h31.778a.938.938 0 110 1.875H31.635a.938.938 0 01-.938-.937z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 65.064c0-.311.252-.563.563-.563h13.993a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 3.094h88V88H0V3.094z",fill:"url(#paint0_linear_3200_4362)"}),l().createElement("path",{d:"M79.893 76.85H21.308v14.184h58.585V76.85z",fill:"#F5C056"}),l().createElement("path",{d:"M79.893 76.85H74.6v14.184h5.293V76.85z",fill:"#E99B00"}),l().createElement("path",{d:"M48.73 76.893H26.283v14.184H48.73V76.893z",fill:"#FFEA5A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.894 57.829c-1.687-4.26 13.113-4.043 11.413 0-1.353 3.218-1.353 7.53 0 12.934H44.894C46 64.93 46 60.618 44.894 57.83z",fill:"#FFD264"}),l().createElement("path",{d:"M61.253 70.383H39.949v2.663h21.304v-2.663z",fill:"#FFD264"}),l().createElement("path",{d:"M47.938 70.383h-4.185v2.663h4.185v-2.663z",fill:"#FFEA5A"}),l().createElement("path",{d:"M64.676 73.046h-28.15v3.804h28.15v-3.804z",fill:"#795D1A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.764 16.363v5.325H15.602v.143c0 13.634 8.992 24.714 20.162 24.961v2.994c-14-.986-25.108-15.488-25.108-33.233v-.19h25.108z",fill:"#FFCB64"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.677 16.363v5.325h20.161v.143c0 13.634-8.991 24.714-20.161 24.961v2.994c13.999-.986 25.107-15.488 25.107-33.233v-.19H64.677z",fill:"#ED985C"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.307 57.829c-1.353 3.218-1.353 7.53 0 12.934h-5.706V54.715c3.278.026 6.556 1.091 5.706 3.114z",fill:"#F4B046"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.676 73.046v3.804H50.601v-3.804h14.075z",fill:"#4F350B"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.253 70.383v2.663H50.6v-2.663h10.652z",fill:"#F4B046"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.933 10.656a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-11.43 0-23.311-20.1-24.449-45.65h2.194l-.38-3.044h-1.898a91.212 91.212 0 01.01-2.663h49.045z",fill:"#FFCE66"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.937 10.656c.006.569.01 1.14.01 1.712v.952h-.044l-.241 3.043h.294c.126 24.948 1.435 39.335 3.123 45.65-8.89-3.2-15.661-20.403-16.308-45.65h1.465l-.241-3.044h-1.271a158.252 158.252 0 01.006-2.663h13.207z",fill:"#FFEA5A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.284 16.363h-3.91l.422-3.044h3.581a81.301 81.301 0 00-.01-2.663h4.566a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-.414 0-.828-.026-1.241-.078 11.92-1.382 19.899-20.946 21.114-45.572zm.083-5.707h-44.48 44.48z",fill:"#F4B046"}),l().createElement("path",{opacity:".519",d:"M72.665 13.32h-44.51v3.043h44.51v-3.044z",fill:"#F4B046"}),l().createElement("path",{d:"M48.318 73.046h-5.706v3.804h5.706v-3.804z",fill:"#96691F"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M65.526 10.656h4.235L58.973 35.935h-4.235l10.788-25.279z",fill:"url(#paint1_linear_3200_4362)"}),l().createElement("g",{filter:"url(#filter0_d_3200_4362)"},l().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#000"})),l().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#DD612C"}),l().createElement("path",{d:"M56.909 54.302a8.681 8.681 0 100-17.362 8.681 8.681 0 000 17.362z",fill:"#FFCE66"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.909 36.94a8.685 8.685 0 018.347 6.291c-5.74.351-10.312 5.02-10.51 10.8a8.699 8.699 0 01-6.008-5.47A11.212 11.212 0 0054.9 37.174a8.684 8.684 0 012.008-.234z",fill:"#FFF18C"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.202 10.656l10.862 25.341H54.83L43.646 10.705l4.556-.049z",fill:"#F83D3D"})),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3200_4362",x1:"0",y1:"3.094",x2:"0",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3200_4362",x1:"62.25",y1:"10.656",x2:"62.25",y2:"35.935",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#B93131"}),l().createElement("stop",{offset:"1",stopColor:"#831616"})),l().createElement("filter",{id:"filter0_d_3200_4362",x:"40.057",y:"30.77",width:"33.702",height:"33.703",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l().createElement("feOffset",{dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"3"}),l().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0335613 0 0 0 0 0.334579 0 0 0 0 0.412601 0 0 0 0.5 0"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3200_4362"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3200_4362",result:"shape"}))))};function Jr(){return Jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Jr.apply(this,arguments)}const ea=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Jr({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg355575424a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg355575424a)"},l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_3488_11934)"}),l().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M64.543 19.547L84.7 39.704V90.88H32.1L17.875 77.372V19.547h46.668z",fill:"url(#paint1_linear_3488_11934)"}),l().createElement("path",{opacity:".06",fillRule:"evenodd",clipRule:"evenodd",d:"M16.156 19.938h69.438A2.406 2.406 0 0188 22.343v53.968a2.406 2.406 0 01-2.406 2.407H16.156a2.406 2.406 0 01-2.406-2.406v-53.97a2.406 2.406 0 012.406-2.405z",fill:"#000"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 19.25H86.28c.95 0 1.719.77 1.719 1.719v53.968c0 .95-.77 1.72-1.719 1.72H17.187c-.949 0-1.718-.77-1.718-1.72V20.97c0-.95.77-1.719 1.719-1.719z",fill:"#fff"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 24.968c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 29.093c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 56.031c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 60.156c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 66.344c0-.57.462-1.031 1.031-1.031h28.059a1.031 1.031 0 010 2.062H37.254c-.57 0-1.031-.462-1.031-1.031z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 70.469c0-.57.462-1.031 1.031-1.031h25.508a1.031 1.031 0 010 2.062H37.125c-.57 0-1.031-.462-1.031-1.031z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 35.406c0-.57.461-1.031 1.03-1.031h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 39.531c0-.57.461-1.031 1.03-1.031H70.54a1.031 1.031 0 010 2.063H48.47c-.57 0-1.032-.462-1.032-1.032z",fill:"#979797"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 45.719c0-.57.461-1.032 1.03-1.032h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.031z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 49.844c0-.57.461-1.032 1.03-1.032h25.509a1.031 1.031 0 010 2.063H48.469c-.57 0-1.032-.462-1.032-1.031z",fill:"#979797"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M31.802 37.125v-2.75h-.688V48.251h3.843v-.688h-3.155v-9.75h3.155v-.688h-3.155z",fill:"#2B98F0"}),l().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),l().createElement("path",{opacity:".6",fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 7.563h63.937c1.14 0 2.063.923 2.063 2.062v6.188c0 1.139-.924 2.062-2.063 2.062H17.187a2.062 2.062 0 01-2.062-2.063V9.625c0-1.14.923-2.063 2.063-2.063z",fill:"#fff"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M19.938 12.719c0-1.14.923-2.063 2.062-2.063h24.063a2.063 2.063 0 010 4.125H22a2.062 2.062 0 01-2.063-2.062zM50.875 12.719c0-1.14.923-2.063 2.063-2.063h3.437a2.063 2.063 0 010 4.125h-3.438a2.062 2.062 0 01-2.062-2.062z",fill:"#979797"}),l().createElement("path",{opacity:".2",d:"M37.687 66.48l8.942 8.309v.958l19.925 19.702 31.064-.552 7.006-25.47-34.487-34.144-11.2.567c-3.238-1.86-5.34-3.02-6.306-3.48-.54-.258-.383 5.565-2.755 7.725-1.243 1.133-3.462 4.104-6.657 8.914l-5.532 17.47z",fill:"url(#paint2_linear_3488_11934)"}),l().createElement("g",{filter:"url(#filter0_d_3488_11934)",fillRule:"evenodd",clipRule:"evenodd"},l().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312a18.719 18.719 0 014.236 4.554l4.28-.699a23.425 23.425 0 012.392 6.47l-3.639 2.443c.262 2.058.2 4.18-.216 6.285l3.466 2.572a24.254 24.254 0 01-2.838 6.375l-4.231-.855a19.61 19.61 0 01-4.526 4.366l.62 4.34a23.426 23.426 0 01-6.409 2.551l-2.345-3.649a18.72 18.72 0 01-6.219-.1l-2.593 3.564a22.7 22.7 0 01-6.224-2.757l.912-4.304a18.715 18.715 0 01-4.281-4.567l-4.285.7a23.424 23.424 0 01-2.4-6.438l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14zM60.075 49.74c-2.804-1.248-6.112.064-7.388 2.93-1.276 2.867-.038 6.203 2.766 7.452 2.804 1.248 6.112-.064 7.388-2.93 1.276-2.867.038-6.203-2.766-7.452z",fill:"#6B93AC"}),l().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312c.779.597 1.503 1.25 2.168 1.95l-10.07 9.392a5.444 5.444 0 00-1.491-.983c-2.804-1.248-6.112.064-7.388 2.93a5.7 5.7 0 00.626 5.749l-10.071 9.39c-.502-.585-.965-1.2-1.39-1.84l-4.284.7a23.424 23.424 0 01-2.4-6.437l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14z",fill:"#7CA6BF"}),l().createElement("path",{d:"M62.886 42.644c6.409 2.854 9.24 10.479 6.322 17.03-2.917 6.553-10.478 9.552-16.887 6.698-6.409-2.853-9.24-10.478-6.322-17.03 2.917-6.553 10.478-9.551 16.887-6.698zm-1.32 2.966c-4.808-2.14-10.478.109-12.666 5.023-2.188 4.914-.065 10.633 4.742 12.773 4.806 2.14 10.477-.108 12.665-5.023 2.188-4.914.065-10.633-4.742-12.773z",fill:"#AAC4D5"}),l().createElement("path",{d:"M62.886 42.644a12.424 12.424 0 014.22 3.075l-2.366 2.207a9.317 9.317 0 00-3.175-2.316c-4.807-2.14-10.477.109-12.665 5.023-1.635 3.673-.863 7.795 1.638 10.536l-2.367 2.208c-3.325-3.656-4.35-9.145-2.172-14.035 2.917-6.553 10.478-9.551 16.887-6.698z",fill:"#CBDDE9"}))),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3488_11934",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3488_11934",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopOpacity:".01"}),l().createElement("stop",{offset:"1"})),l().createElement("linearGradient",{id:"paint2_linear_3488_11934",x1:"86.975",y1:"77.519",x2:"49.809",y2:"46.968",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#90A4AE",stopOpacity:"0"}),l().createElement("stop",{offset:"1",stopOpacity:".75"})),l().createElement("filter",{id:"filter0_d_3488_11934",x:"32.168",y:"30.067",width:"53.209",height:"53.716",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l().createElement("feOffset",{dx:"1",dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"2"}),l().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3488_11934"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3488_11934",result:"shape"}))))},ta=(0,E.Z)((e=>({title:{whiteSpace:"nowrap",height:"24px",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"},titleCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px",overflow:"hidden",lineHeight:"24px",textOverflow:"ellipsis",fontSize:"14px"},container:{height:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",padding:0,"&>svg":{paddingTop:0,height:"88px",width:"88px",marginBottom:"14px"}},noDataMessage:{fontSize:"12px",textAlign:"center",whiteSpace:"pre-wrap"},noDataTitle:{fontSize:"13px",textAlign:"center",color:"rgba(0,0,0,0.87)",whiteSpace:"pre-wrap"},viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}})));let ra;!function(e){e.DVF_NOT_CONFIGURE="dvfNotConfigured",e.DATA_VALID="dataValid",e.PERMISSION_DENIED="permissionDenied"}(ra||(ra={}));const aa=e=>{let{chartType:t,title:r,infoTooltipTitle:a,titleChildren:n,dvfConfigLink:i,config:o}=e;const c=ta();let s,u,p;switch(t){case ra.DVF_NOT_CONFIGURE:s=l().createElement(ea,null),u=d().text("If we spot any validation issues, we’ll display them here."),p=l().createElement(l().Fragment,null,l().createElement(Qr.Z,{href:i,target:"_blank",component:i?"a":"span",color:i?"primary":"inherit",underline:i?"hover":"none","data-reltio-id":"reltio-dq-dashboard-define-dvf-link"},d().text("Define some data validation functions"))," ",d().text("for this attribute (or ask your Tenant Admin)."));break;case ra.DATA_VALID:s=l().createElement(Xr,null),u=d().text("We didn’t spot any validation issues for this attribute type.\nYou can kick back and enjoy a cold one."),p=d().text("Nice one!");break;case ra.PERMISSION_DENIED:s=l().createElement(m.B9.ERROR,null),u=d().text("Please contact your Tenant Admin to change permissions"),p=d().text("You don’t currently have permission to view this page")}return l().createElement(Ie,{config:o},l().createElement(ue,{title:r,infoTooltipTitle:a},n),l().createElement(fe.Z,{className:c.viewContent},l().createElement("div",{className:c.container},s,p&&l().createElement(b.Z,{className:c.noDataTitle},p),u&&l().createElement(b.Z,{className:c.noDataMessage},u))))},la=e=>{var t;const r=ta(),{config:n}=e,{dvfs:i,dvfConfigLink:o}=(0,a.useContext)($r),{data:u,state:p,reload:f,errorCode:m}=i,h=(0,a.useContext)(Be).uri,E=(0,a.useContext)(Ve),x=E.uri,O=((e,t)=>(e||[]).filter((0,s.propEq)("attribute",t)))(u,h).filter((e=>e.status===c.lVm.ACTIVE)),{data:w,state:N,reload:T}=ze((e=>(0,s.pipe)(hr("dataValidationFunctions"),gr(e)))(O)),S=(0,a.useMemo)((()=>[E]),[E]),R=(0,a.useMemo)((()=>O.map((e=>e.uri))),[O]),I=(e=>{let{entityTypeUri:t,dvfUris:r}=e;const[l,n]=(0,a.useState)(null),i=(0,g._)();return(0,a.useEffect)((()=>{const e=[{fieldName:"type",filter:c.j5E.EQUALS,values:[t]},{fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",filter:c.j5E.EQUALS,values:r}];i((0,c.j_Q)(e)).then((e=>{let{total:t}=e;return n(t)})).catch((()=>n(null)))}),[t,r]),l})({entityTypeUri:x,dvfUris:R}),C=null===(t=v(S))||void 0===t?void 0:t[(0,c.nIW)(x)],A=He(Tr),D=(0,a.useMemo)((()=>p===y.o.LOADED&&N===y.o.LOADED?y.o.LOADED:p===y.o.ERROR||N===y.o.ERROR?y.o.ERROR:y.o.LOADING),[N,p]),L=(0,a.useMemo)((()=>()=>{p===y.o.ERROR&&f(),N===y.o.ERROR&&T()}),[N,p,f,T]),P=m===c.Xt7.ACCESS_DENIED,_=m===c.Xt7.DVF_NOT_CONFIGURED||0===(null==O?void 0:O.length)&&!P,j=D===y.o.LOADED&&(null==O?void 0:O.length)>0&&0===w.length,M=!(D===y.o.ERROR&&m!==c.Xt7.DVF_NOT_CONFIGURED)&&!_&&D!==y.o.LOADING&&l().createElement(Ar.C,{value:n.title},l().createElement(b.Z,{className:r.titleCount},(e=>{let{isDataValid:t,totalProfiles:r,invalidProfiles:a}=e;return t?d().text("0 profiles"):(0,s.isNil)(a)?"":`${(0,c.k7L)(a)} (${Math.round(a/r*100)}%) ${1!==a?d().text("profiles"):d().text("profile")}`})({isDataValid:j,totalProfiles:C,invalidProfiles:I}))),k=[d().text("Validation function"),d().text("Profiles")],F=l().createElement(ee,{title:d().text("Profiles with invalid data"),data:[{value:d().text("Shows the number of profiles that violate active validation functions")}],DataRenderer:Ce});return _||j||P?l().createElement(aa,{config:n,chartType:_?ra.DVF_NOT_CONFIGURE:j?ra.DATA_VALID:P?ra.PERMISSION_DENIED:void 0,title:d().text(n.title),infoTooltipTitle:F,titleChildren:M,dvfConfigLink:o}):l().createElement(qr,{config:n,title:d().text(n.title),headers:k,data:w,onItemClick:A,titleChildren:M,state:D,onRefresh:L,customComparator:yr,infoTooltipTitle:F,showCountLabels:!0})},na=(0,E.Z)((()=>({monoFontCell:{fontFamily:'"Roboto Mono", monospace'}}))),ia=e=>{let{config:t}=e;const r=na(),{data:n,state:i,reload:o}=ze(vr),s=(0,a.useContext)(Be).type,u=(0,c.Lt4)(s)?((e,t)=>{const r=t===c.oS0.TYPE_TIMESTAMP?"L LTS":"L";return e.map((e=>P({},e,{label:d().date(Number(e.label),r)})))})(n,s):n,p=He(Nr),f=[d().text("Value"),d().text("Count")],m=l().createElement(ee,{title:d().text("Frequency analysis"),data:[{value:d().text("Shows the number of times each value occurs")}],DataRenderer:Ce});return l().createElement(qr,{config:t,data:u,headers:f,title:t.title,infoTooltipTitle:m,onItemClick:p,state:i,onRefresh:o,labelCellClassName:Z()({[r.monoFontCell]:(0,c.m6e)(s)})})};function oa(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){ca(e,t,r[t])}))}return e}function ca(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var sa,ua;!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"}(sa||(sa={})),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"}(ua||(ua={}));const da=e=>(0,s.pipe)((0,s.pathOr)({},[e,"data"]),Object.entries,(0,s.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),j);var pa;!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"}(pa||(pa={}));const fa=(e,t)=>{const r={lengthStatistics:{[pa.MEDIAN]:d().text("Median"),[pa.AVERAGE]:d().text("Average"),[pa.MININMUN]:d().text("Minimum"),[pa.MAXIMUM]:d().text("Maximum")},valueDistribution:{[pa.MEDIAN]:d().text("Median"),[pa.AVERAGE]:d().text("Average"),[pa.MININMUN]:d().text("Minimum"),[pa.MAXIMUM]:d().text("Maximum")},crosswalkAnalysis:{[pa.NUMBER_OF_SOURCES]:d().text("No. of source systems"),[pa.AVG_NUMBER_OF_PROFILES]:d().text("Avg no. of profiles"),[pa.MIN_NUMBER_OF_PROFILES]:d().text("Min no. of profiles"),[pa.MAX_NUMBER_OF_PROFILES]:d().text("Max no. of profiles")}};return(0,s.pathOr)(null,[t,e],r)},ma=e=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((t=>{let[r,a]=t;return{label:fa(r,e),value:a}})),(0,s.filter)((e=>{let{label:t}=e;return t})),j),ha=e=>t=>({chartData:da(e)(t),infoPanelData:ma(e)(t)}),ya=(e,t)=>(0,c.Lt4)(t)?d().date(Number(e),"L"):d().number(e),ga=(0,s.curry)(((e,t)=>{const r=(0,s.pipe)((0,s.prop)("group"),(0,s.split)(" "),s.head,Number),a=t.chartData.sort((0,s.ascend)(r)).map(((r,a)=>{const[l,n=l]=r.group.split(" ").map(Number),i=a===t.chartData.length-1,o=l!==n?((e,t,r)=>rt(t)?`[${e}${r?"]":")"}`:e)(`${ya(l,e)} - ${ya(n,e)}`,e,i):ya(l,e);return oa({},r,{label:o,group:[l,n,i?"last":""].toString()})}));return{infoPanelData:t.infoPanelData.map((t=>oa({},t,{value:(0,c.Lt4)(e)?d().date(Number(t.value),"L"):(0,c.k7L)(t.value,999),localizedValue:(0,c.Lt4)(e)?d().date(Number(t.value),"L"):t.localizedValue}))),chartData:a}})),va=(0,s.pipe)(ha("lengthStatistics"),ga("")),ba=(0,s.pipe)(ha("crosswalkAnalysis"),(0,s.applySpec)({chartData:(0,s.prop)("chartData"),infoPanelData:(0,s.pipe)((0,s.prop)("infoPanelData"),(0,s.map)((e=>(0,s.assoc)("value",(0,c.k7L)(e.value,999),e))))})),Ea=ha("monthDistribution"),xa=ha("dayOfWeekDistribution"),Oa=ha("dayOfMonthDistribution"),wa=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}.day_of_week`,value:sa[t.toLowerCase()],entityTypeUri:a})})),Na=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}.month`,value:ua[t.toLowerCase()],entityTypeUri:a})})),Ta=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}.day_of_month`,value:t,entityTypeUri:a})})),Sa=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;const[l,n]=t.split(",");return l===n?fr({fieldName:`${r.fieldName}.length`,value:l,entityTypeUri:a}):(e=>{let{fieldName:t,startRange:r,endRange:a,entityTypeUri:l}=e;return pr({keyword:`${c.j5E.IN_RANGE}(${t}, ${r}, ${a})`,entityTypeUri:l})})({fieldName:`${r.fieldName}.length`,startRange:l,endRange:n,entityTypeUri:a})})),Ra=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}.crosswalk_sources`,value:t,entityTypeUri:a})})),Ia=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l]=t.split(",");return[{filter:c.j5E.AFTER,values:[a],fieldName:r},{filter:c.j5E.BEFORE,values:[l],fieldName:r}]})),Ca=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l]=t.split(",");return[a===l?{filter:c.j5E.EQUALS,values:[[a]],fieldName:r}:{filter:c.j5E.IN_RANGE,values:[[a,l]],fieldName:r}]})),Aa=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l,n]=t.split(","),i=a===l,o=i?[{filter:c.j5E.EQUALS,values:[[a]],fieldName:r}]:[{filter:c.j5E.IN_RANGE,values:[[a,l]],fieldName:r}];return!n&&!i&&o.push({filter:c.j5E.NOT_EQUALS,values:[[l]],fieldName:r}),o})),Da=(0,s.cond)([[c.Lt4,(0,s.always)(U(Ia))],[rt,(0,s.always)(U(Aa))],[s.identity,(0,s.always)(U(Ca))]]);function La(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){Pa(e,t,r[t])}))}return e}function Pa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _a=(0,E.Z)((e=>({tooltipWrapper:La({},e.tooltip,{padding:"4px 8px"})}))),ja=e=>{var t;let{payload:r,active:a,name:n}=e;const i=null==r||null===(t=r[0])||void 0===t?void 0:t.payload,o=null==i?void 0:i.value,c=null==i?void 0:i.label,s=n?`${n}`:"",u=_a();return a&&l().createElement("div",{className:u.tooltipWrapper},l().createElement(ee,{data:[{label:s,value:c},{label:d().text("No of profiles"),value:d().number(o)}]}))},Ma=(0,E.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"}}))),ka=e=>{let{data:t}=e;const r=Ma();return l().createElement("div",{className:r.chartInfoWrapper},t.map((e=>{let{label:t,value:a,localizedValue:n}=e;return l().createElement("div",{key:t,className:r.chartInfoItem},l().createElement("span",{className:r.chartInfoLabel},t,": "),a!==n?l().createElement(Je.ZP,{title:n},l().createElement("span",{className:r.chartInfoValue},a)):l().createElement("span",{className:r.chartInfoValue},a))})))},Fa=(0,E.Z)((()=>({labelWrapper:e=>{let{width:t}=e;return{overflow:"hidden",width:`${t}px`,marginTop:"-3px"}},xAxisLabel:{textAlign:"center",whiteSpace:"nowrap",textTransform:"capitalize","&:after":{top:"0",right:"0",width:"10px",height:"100%",content:'""',position:"absolute",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}}}))),Ua=e=>{let{width:t,height:r,label:a,x:n,y:i}=e;const o=Fa({width:t}),c=n-t/2;return l().createElement("foreignObject",{x:c,y:i,width:t,height:r},l().createElement("div",{className:o.labelWrapper},l().createElement(Ar.C,{value:a},l().createElement("div",{className:o.xAxisLabel},a))))},za=e=>{const{x:t,y:r,width:a,height:n,payload:i,visibleTicksCount:o}=e,{value:c}=i,s=a/o-4;return l().createElement(Ua,{width:s,height:n,label:c,x:t,y:r})};function Ba(){return Ba=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},Ba.apply(this,arguments)}const Va=e=>{let{isClickable:t}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["isClickable"]);const a=Ma(),n=t?a.clickable:void 0;return l().createElement(T.Ae,Ba({},r,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},Ha=e=>{const{value:t}=e;return t>0?l().createElement(T.Ae,e):null};function Za(){return Za=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},Za.apply(this,arguments)}const Wa=e=>{let{data:t,config:r,xAxisLabel:a,yAxisLabel:n,barTooltipTitle:i,infoPanelData:o,infoTooltipTitle:s,onItemClick:u,options:d={},state:p,onRefresh:f}=e;const m=Ma(),{title:h}=r,{cartesianGrid:g,bar:v,xAxis:b,yAxis:E,labelForX:x,labelForY:O,barChart:w}=(e=>{let{showCategories:t=!1,interval:r,barCategoryGap:a}=e;return{barChart:{barCategoryGap:a||"10%"},bar:{dataKey:"value",fill:"#0072CE",minPointSize:3,maxBarSize:50},xAxis:{tick:t&&za,tickLine:!1,interval:r||0,dataKey:"label"},yAxis:{tickCount:8,axisLine:!1,tickLine:!1,tick:{fill:"#000"},width:60,tickFormatter:e=>(0,c.k7L)(e,999)},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)"}}}})(d),N=u&&(e=>{let{activePayload:t}=e;return u(t[0].payload.group)}),S=N?m.clickable:void 0,R=p===y.o.LOADED&&o.length>0;return l().createElement(Ie,{config:r},l().createElement(ue,{title:h,infoTooltipTitle:s}),R&&l().createElement(ka,{data:o}),l().createElement(Te,{data:t,loadingState:p,onRefresh:f},(e=>{let{data:t,width:r=0,height:o=0}=e;return l().createElement("div",null,l().createElement(T.vz,Za({width:r,height:o,data:t,onClick:N},w),l().createElement(T.q3,g),l().createElement(T.u,{content:l().createElement(ja,{name:i}),cursor:l().createElement(Va,{isClickable:!!N})}),l().createElement(T.$Q,Za({},v,{shape:l().createElement(Ha,{className:S})})),l().createElement(T.B2,E,l().createElement(T.__,Za({},O,{value:n}))),l().createElement(T.Kc,b,l().createElement(T.__,Za({},x,{value:a})))))})))},Ya=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=ze(va),{chartData:i,infoPanelData:o}=r,c=He(Sa),s=l().createElement(ee,{title:d().text("Length statistics"),data:[{value:d().text("Measures the string length of values")}],DataRenderer:Ce});return l().createElement(Wa,{config:t,data:i,xAxisLabel:d().text("Length of values"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Length"),infoTooltipTitle:s,onItemClick:c,state:a,onRefresh:n})};var Ga=r(21210);const qa=(0,E.Z)({icon:{width:"20px",height:"20px",borderRadius:"4px",fontSize:"14px",marginRight:"8px"},text:e=>{let{color:t}=e;return{backgroundColor:t}}}),$a=e=>{let{chartData:t}=e;const{group:r,label:a}=t,n=qa({color:(0,c.uap)("random0",r)});return l().createElement(l().Fragment,null,l().createElement(Ga.Z,{sourceType:r,className:n.icon,classes:{textRoot:n.text}}),a)};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{config:t}=e;const{data:r,state:a,reload:n}=ze(ba),{chartData:i}=r,o=He(Ra),c=[d().text("Source system"),d().text("Profiles")],s=l().createElement(ee,{title:d().text("Source system analysis"),data:[{value:d().text("Distribution of source systems contributing to profiles")}],DataRenderer:Ce});return l().createElement(qr,{config:Qa({},t),data:i,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:a,onRefresh:n,customComparator:yr,LabelRenderer:$a})},Ja=e=>{let{config:t}=e;const r=(0,a.useContext)(Be).type,{data:n,state:i,reload:o}=ze((e=>(0,s.pipe)(ha("valueDistribution"),ga(e)))(r)),{chartData:c,infoPanelData:u}=n,p=He(Da(r));return l().createElement(Wa,{config:t,data:c,xAxisLabel:d().text("Value"),yAxisLabel:d().text("No. of profiles"),infoPanelData:u,barTooltipTitle:d().text("Value"),onItemClick:p,state:i,onRefresh:o})},el=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=ze(Ea),{chartData:i,infoPanelData:o}=r,c=He(Na);return l().createElement(Wa,{config:t,data:i,xAxisLabel:d().text("Months of the year"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Months of the year"),options:{showCategories:!0,barCategoryGap:"20%",interval:"preserveStartEnd"},onItemClick:c,state:a,onRefresh:n})},tl=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=ze(xa),{chartData:i,infoPanelData:o}=r,c=He(wa);return l().createElement(Wa,{config:t,data:i,xAxisLabel:d().text("Days of the week"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Days of the week"),options:{showCategories:!0,barCategoryGap:"25%",interval:"preserveStartEnd"},onItemClick:c,state:a,onRefresh:n})},rl=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=ze(Oa),{chartData:i,infoPanelData:o}=r,c=He(Ta);return l().createElement(Wa,{config:t,data:i,xAxisLabel:d().text("Days of the month"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Days of the month"),options:{showCategories:!0,interval:1},onItemClick:c,state:a,onRefresh:n})},al=e=>{let{config:t}=e;const r=na(),{data:a,state:n,reload:i}=ze(br),o=He(Sr),c=[d().text("Value"),d().text("Count")],s=l().createElement(ee,{title:d().text("Pattern analysis"),data:[]});return l().createElement(qr,{config:t,data:a,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:n,onRefresh:i,labelCellClassName:r.monoFontCell})};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)}class nl{}nl.getComponent=e=>{let{type:t,config:r,isFullscreen:a,onToggleFullscreen:n}=e;const i={config:r,isFullscreen:a,onToggleFullscreen:n};switch(t){case N.FILL_RATE_CHART:return l().createElement(Ze,i);case N.UNIQUENESS_CHART:return l().createElement(Ke,i);case N.SUMMARY:return l().createElement(nr,i);case N.VALIDATION:return l().createElement(la,i);case N.FREQUENCY:return l().createElement(ia,i);case N.LENGTH:return l().createElement(Ya,i);case N.CROSSWALK:return l().createElement(Xa,i);case N.VALUE_DISTRIBUTION:return l().createElement(Ja,i);case N.MONTH_DISTRIBUTION:return l().createElement(el,i);case N.DAY_OF_WEEK_DISTRIBUTION:return l().createElement(tl,i);case N.DAY_OF_MONTH_DISTRIBUTION:return l().createElement(rl,i);case N.PATTERN:return l().createElement(al,i);default:return l().createElement(dr,ll({},i,{errorData:{message:d().text("Chart isn't supported for this data type")}}))}};const il=nl,ol=e=>{let{layoutItemConfig:t,views:r,onToggleFullscreen:a,isFullscreen:n,className:i,children:o,style:c}=e;const s=r.find((e=>{let{id:r}=e;return t.i===r}));if(!s)return null;const{type:u}=s;return l().createElement("div",{style:c,className:i},il.getComponent({type:u,config:s,onToggleFullscreen:a,isFullscreen:n}),o)},cl=(0,E.Z)({root:{overflow:"auto",backgroundColor:"#F9F9F9",height:"100%",flexGrow:1,padding:"4px"}}),sl=(0,s.map)((0,s.assoc)("isStatic",!0)),ul={cols:4,rowHeight:10,margin:[12,12]},dl=(0,a.memo)((e=>{let{views:t,layout:r,layoutOptions:n=ul}=e;const i=cl(),o=(()=>{const[e,t]=(0,a.useState)(y.o.INIT),[r,l]=(0,a.useState)({}),n=(0,a.useContext)(Ve),i=(0,a.useContext)(Be),o=(0,a.useContext)(ar),s=null==i?void 0:i.fieldName,u=n.uri,d=(0,g._)(),p=e=>{console.error(e),t(y.o.ERROR),l({})},f=(0,a.useCallback)((async()=>{if(t(y.o.LOADING),o===A.ENTITY_TYPE){var e,r;const a=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:[u]}]),n=await(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.ACTIVE_ONLY,filter:a}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}),i=await(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.INACTIVE_ONLY,filter:a}),body:[{fieldName:"type",pageSize:101,pageNo:1}]});return l({summary:{inactiveProfiles:null===(e=i.type)||void 0===e?void 0:e[(0,c.nIW)(u)],activeProfiles:null===(r=n.type)||void 0===r?void 0:r[(0,c.nIW)(u)],sourceSystems:8}}),void t(y.o.LOADED)}return d((0,c.TTx)({entityTypeUri:u,attributeFieldName:s})).then((e=>{l(e),t(y.o.LOADED)})).catch(p)}),[t,l,s,u]),m=(0,a.useCallback)((()=>{try{f()}catch(e){p(e)}}),[f]);return(0,a.useEffect)((()=>{m()}),[m]),{data:r,state:e,reload:m}})(),s=(0,a.useMemo)((()=>sl(r)),[r]);return l().createElement("div",{className:i.root},l().createElement(Ue.Provider,{value:o},l().createElement(w.Z,{LayoutItem:ol,views:t,layout:s,layoutOptions:n})))}));var pl=r(50166),fl=r(83543),ml=r(98989),hl=r(38402),yl=r(33286),gl=r(40435);const vl=(0,E.Z)({root:{paddingRight:"23px",paddingLeft:"28px",display:"flex",flexDirection:"row-reverse"},detailIcon:{marginLeft:"-5px",borderRadius:"50%",padding:"2px",width:"26px",height:"26px",boxSizing:"border-box"},activeIcon:{background:"white"}}),bl=e=>{let{details:t,classes:r,fillRateData:a,fillRateState:n}=e;const i=vl(),o=(0,s.prop)("iconRoot",r);return l().createElement("div",{className:i.root},Object.entries(t||{}).reverse().map((e=>{let[t,r]=e,u=Ct.NORMAL;if(t===at.REQUIRED){const e=n===y.o.LOADING,t=0===(null==(d=a)||null===(p=d.find((0,s.propEq)("group",c.s9T.MISSING)))||void 0===p?void 0:p.value);e&&(u=Ct.LOADING),e||t||(u=Ct.BAD_QUALITY)}var d,p;return l().createElement("div",{key:t,className:Z()(r&&(o||i.activeIcon),i.detailIcon)},r&&l().createElement(Je.ZP,{title:ht(t)},l().createElement("span",null,l().createElement(At,{detailType:t,variant:u,size:It.SMALL}))))})))},El="rgba(0, 114, 206, 0.12)",xl=(0,E.Z)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:El,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:El}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"}}),Ol=e=>{let{level:t,margin:r,hasChildren:a,isLastLevelItem:n,isCollapsed:i}=e;const o=xl(),c=!i&&(t>0||a);return l().createElement("div",{className:o.linesWrapper},((e,t)=>t>0&&e?(0,s.range)(1,t+1):t>1?(0,s.range)(1,t):[])(a,t).map((e=>l().createElement(yl.Z,{key:e,margin:r,level:e,className:o.line}))),c&&l().createElement(yl.Z,{margin:r,level:t,className:Z()(o.line,!a&&t>0&&o.horizontalLine,a&&o.parentLine,n&&o.lastLevel)}))},wl=(0,E.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 Nl(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=(0,R.Z)((e=>{let{data:t}=e;const r=wl(),a=De(t),n=t.map(((e,t)=>{let{label:n,percent:i,value:o}=e;return{label:l().createElement("span",null,l().createElement("div",{className:r.fillRateSquare,style:{background:a[t]}}),n),value:`${d().number(o)} ${M(i)}`}}));return k(t)?l().createElement("div",{className:r.bar},l().createElement("div",{className:Z()(r.barPart,r.inactiveBarPart)})):l().createElement(Je.ZP,{title:l().createElement(ee,{title:d().text("Fill rate"),data:n})},l().createElement("div",{className:r.bar},t.map(((e,t)=>l().createElement("div",{key:e.group,className:r.barPart,style:Nl({},B(e),{background:a[t]})})))))})),Rl=(0,E.Z)({listItem:{padding:"0 0 0 15px","&:after":{content:'""',left:0,right:0,position:"absolute",bottom:0,height:"1px",background:"rgba(0, 0, 0, 0.05)"}},selectedItem:{background:"#F0F7FC !important"},pointerCursor:{cursor:"pointer"},content:{display:"flex",alignItems:"center",width:"100%",height:"100%",position:"relative"},attribute:{paddingLeft:"9px",boxSizing:"border-box",width:"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",height:"100%",position:"relative"},marginWrapper:{display:"inline-block",height:"100%",position:"relative",width:"100%"},attributeType:{position:"absolute",left:0,top:"8px"},fillRate:{position:"absolute",bottom:"8px",left:0,right:0,zIndex:1},attributeLabel:{padding:"8px 0 0 15px",position:"relative","&:after":{content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}},selectedAttributeLabel:{"&:after":{background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #F0F7FC 100%)"}},parentAttributeLabel:{padding:"14px 0 0 13px"},detailsIconSelected:{background:"#F0F7FC"},detailsIcon:{background:"white"},collapseIcon:{marginRight:"6px"}}),Il=e=>{let{detailedAttributeType:t,fillRateData:r,fillRateState:a,style:n,level:i,selected:o=!1,onClick:s,onCollapse:u=Rr.ZT,isCollapsed:d=!1,isLastLevelItem:p=!1}=e;const f=Rl(),m=!!t.children,h=!!r,y=(e=>(0,c.idV)(e.label||e.name))(t),g=d?ml.Z:fl.Z,v=o?f.detailsIconSelected:f.detailsIcon;return l().createElement(hl.Z,{style:n,selected:o,classes:{selected:f.selectedItem},onClick:m?void 0:()=>{s(t)},component:"div",className:Z()(f.listItem,!m&&f.pointerCursor)},l().createElement("div",{className:f.content},!m&&l().createElement("div",{className:f.attributeType},l().createElement(er,{type:t.type})),l().createElement("div",{className:f.attribute},l().createElement(Ol,{level:i,margin:20,hasChildren:m,isLastLevelItem:p,isCollapsed:d}),l().createElement(yl.Z,{margin:20,level:i,className:f.marginWrapper},l().createElement(Ar.C,{value:y},l().createElement("div",{className:Z()(f.attributeLabel,o&&f.selectedAttributeLabel,m&&f.parentAttributeLabel)},m&&l().createElement(gl.Z,{size:"XXS",icon:g,onClick:u,className:f.collapseIcon}),y))),h&&!m&&l().createElement("div",{className:f.fillRate},l().createElement(Sl,{data:r}))),l().createElement(bl,{details:t.details,classes:{iconRoot:v},fillRateData:r,fillRateState:a})))},Cl=(0,s.propOr)({},"attributeItem"),Al=(0,s.pipe)((0,s.find)((0,s.pipe)(Cl,(0,s.either)(c.YkM,c.Or$),s.not)),Cl),Dl=e=>(0,s.pipe)(Cl,(0,s.propEq)("fieldName",e)),Ll=e=>(0,s.filter)((0,s.propEq)("group",e));let Pl;!function(e){e.SHOW_EMPTY="showEmpty"}(Pl||(Pl={}));const _l=(0,s.curry)(((e,t,r)=>{const a=(0,s.head)(Ll("emptiness")(e));return(null==a?void 0:a.value)===Pl.SHOW_EMPTY?r:r.filter((0,s.pipe)(Cl,ct(t)))})),jl=(0,s.pipe)(Cl,(0,s.prop)("fieldName")),Ml=(0,s.curry)(((e,t)=>{const r=Ll("details")(e),a=(e=>(0,s.pipe)((0,s.filter)((0,s.pipe)(Cl,(0,s.both)((0,s.prop)("children"),it(e)))),(0,s.map)(jl)))(r)(t);return t.filter((e=>{let{attributeItem:t}=e;return a.some((e=>t.fieldName.startsWith(e)))||ot(r,t)}))}));function kl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Fl=r(36444),Ul=r(79784),zl=r(15115),Bl=r(21324),Vl=r(12231);const Hl=(0,E.Z)((e=>({serachWrapper:{padding:"8px 0px 8px 16px",alignItems:"center",display:"flex",flexGrow:1,justifyContent:"flex-end"},filterByDetails:{width:"32px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"9px"},searchInput:{borderRadius:"4px",width:"240px",minHeight:"32px!important",justifyContent:"flex-end",alignItems:"center",padding:"0 2px",boxSizing:"border-box","& input":{fontSize:"14px"},"& 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"}}))),Zl=e=>{let{isSelected:t,data:r,onChange:a}=e;const{count:n,label:i,value:o}=r,u=!(0,s.isNil)(n),d=Hl(!u||n>0);return l().createElement(Vl.Z,{className:d.option,component:"div",onClick:()=>a(r),"data-reltio-id":`reltio-dq-dashboard-option-${r.value}`},l().createElement(Bl.Z,{color:"primary",checked:t}),l().createElement("span",{className:d.typeIconWrapper},l().createElement(At,{detailType:o})),l().createElement(Ar.C,{value:i},l().createElement("div",{className:d.optionLabel},i)),u&&l().createElement("span",{className:d.counter},(0,c.k7L)(n,999)))},Wl=(0,s.curry)(((e,t)=>!!t.find((0,s.propEq)("value",e.value)))),Yl=(0,s.curry)(((e,t)=>{const r=t.findIndex((0,s.propEq)("value",e.value));return-1!==r?(0,s.remove)(r,1,t):t})),Gl=e=>{let{defaultFilterOptions:t=[],filterOptions:r,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=Hl(),[u,p]=(0,a.useState)(null),[f,m]=(0,a.useState)(t),[h,y]=(0,a.useState)(n||null),g=()=>p(null),v=e=>{m((0,s.ifElse)(Wl(e),Yl(e),(0,s.concat)([e])))},E=!!f.length,x=!!u,O=Z()(c.filterIconWrapper,{[c.filterIconWrapperActive]:x,[c.filterIconWrapperSelected]:E}),w=E?c.filterIconFilterApplied:c.filterIcon;return l().createElement("div",{className:c.serachWrapper},l().createElement(zl.Z,{autofocus:!0,onChange:e=>{y(e),i(e||"")},initialValue:n||null,height:40,placeholder:d().text("Search attribute name"),"data-reltio-id":"reltio-dq-dashboard-attributes-search-input",classes:{root:Z()(c.searchInput,{[c.filledInput]:!!h})}}),l().createElement("div",{className:c.filterByDetails,"data-reltio-id":"reltio-dq-dashboard-attributes-filter"},l().createElement("div",{className:O,onClick:e=>p(e.currentTarget)},l().createElement(Fl.Z,{className:w})),l().createElement(Ul.ZP,{open:!!u,anchorEl:u,onClose:()=>{m((0,s.always)(t)),g()},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{"data-reltio-id":"reltio-dq-dashboard-attributes-filter-popup"}},l().createElement("div",{className:c.menu},l().createElement(b.Z,{variant:"h6",className:c.dropdownMenuTitle},d().text("Filter")),l().createElement("div",{className:c.valueContainer},r.map((e=>{let{label:t,options:r}=e;return l().createElement("div",{key:t},t&&l().createElement(b.Z,{variant:"caption",className:c.groupLabel},t),r.map((e=>{const t=Wl(e,f);return l().createElement(Zl,{key:e.label,data:e,isSelected:t,onChange:v})})))})))),l().createElement("div",{className:c.actionsContainer},l().createElement(he.Z,{onClick:()=>{m([])},className:c.clearAllButton,disabled:!E,"data-reltio-id":"reltio-dq-dashboard-filter-clear-all-button"},d().text("Clear all")),l().createElement(he.Z,{onClick:()=>{m(t),g()},"data-reltio-id":"reltio-dq-dashboard-filter-cancel-button"},d().text("Cancel")),l().createElement(he.Z,{color:"primary",onClick:()=>{o(f),g()},"data-reltio-id":"reltio-dq-dashboard-filter-apply-button"},d().text("Apply"))))))},ql=(0,E.Z)((e=>({root:{width:"480px",display:"flex",flexDirection:"column",borderRight:"solid 1px rgba(0, 0, 0, 0.12)",flexGrow:1},title:{height:"24px",margin:"16px",display:"flex",alignItems:"center",fontSize:"12px",color:"rgba(0, 0, 0, 0.54);"},itemCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px"},listWrapper:{flexGrow:1,overflow:"hidden",position:"relative"},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:"rgba(0, 0, 0, 0.54)"},loaderWrapper:{position:"absolute",top:"0",left:"0",width:"100%",height:"4px",zIndex:1}}))),$l=e=>{var t,r;let{entityType:i,onAttributesListChange:o,defaultFieldName:u,defaultFilterOptions:p,defaultFilterText:f,disableAttributeSelection:v}=e;const b=ql(),E=(0,a.useRef)(),[x,O]=(0,a.useState)(f||""),[w,N]=(0,a.useState)([]),[T,S]=(0,a.useState)(p||[]),[R,I]=(0,a.useState)({fieldName:u}),{data:C,state:A}=(e=>{const[t,r]=(0,a.useState)(y.o.INIT),[l,n]=(0,a.useState)({}),i=(0,g._)(),o=e=>{console.error(e),r(y.o.ERROR),n({})},s=(0,a.useCallback)((()=>(r(y.o.LOADING),n({}),i((0,c.aTW)({entityTypeUri:e})).then(_e).then((e=>{n(e),r(y.o.LOADED)})).catch(o))),[r,n,e]),u=(0,a.useCallback)((()=>{try{s()}catch(e){o(e)}}),[s]);return(0,a.useEffect)((()=>{u()}),[u]),{data:l,state:t,reload:u}})(i.uri),D=null===(t=(0,a.useContext)($r))||void 0===t||null===(r=t.dvfs)||void 0===r?void 0:r.state,L=((e,t)=>{var r,l;const i=(0,n.useSelector)(h.ZP.selectors.getMetadata),o=(0,a.useMemo)((()=>(e=>(0,s.pipe)(c.WN0,dt(e),yt))(t)(i,e)),[i,e,t]),[u,d]=(0,a.useState)([]),p=e.uri,f=(0,a.useMemo)((()=>(0,c.qhs)(i,p)),[i,p]),m=null===(r=(0,a.useContext)($r))||void 0===r||null===(l=r.dvfs)||void 0===l?void 0:l.data;return(0,a.useEffect)((()=>{m&&d(o.map((0,s.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){kl(e,t,r[t])}))}return e}({},e,{details:mt({attrTypeItem:e,dvf:m,matchAttributes:f})},e.children&&{children:e.children.map((t=>(t.details=mt({attrTypeItem:t,dvf:m,matchAttributes:f}),t.details.reference=e.isAttributeReference,t)))})})))}),[o,f,m]),u})(i,x),{filteredItems:P,filterOptions:_}=(0,a.useMemo)((()=>{const e=_l(T,C,L),t=(e=>{const t=Object.values(at).map((e=>({value:e,label:ht(e),group:"details"}))).map((t=>(0,s.assoc)("count",((e,t)=>e.filter((e=>it([t],e.attributeItem))).length)(e,t),t)));return{label:d().text("Attribute properties"),options:t}})(e);return{filteredItems:Ml(T,e),filterOptions:[{label:"",options:[{label:d().text("Show attributes with no data"),value:Pl.SHOW_EMPTY,group:"emptiness"}]},t]}}),[L,T,C]),j=(0,a.useMemo)((()=>((e,t)=>e.filter((e=>{let{attributeItem:r}=e;return!t.some((e=>r.fieldName.startsWith(e)&&r.fieldName!==e))})))(P,w)),[P,w]),M=P.length,k=e=>{o({selectedDetailedAttributeType:e,filterText:x,filterOptions:T}),I({fieldName:e.fieldName})},F=()=>{const e=((e,t)=>(0,s.pipe)((0,s.find)(Dl(t)),(0,s.propOr)(null,"attributeItem"))(e))(P,R.fieldName)||Al(P);return(0,s.isEmpty)(e)||v?null:e};(0,a.useEffect)((()=>{var e,t,r;if(v)return void(null===(r=E.current)||void 0===r||r.scrollTo(0));if(P.length){const e=F();I({fieldName:(null==e?void 0:e.fieldName)||R.fieldName})}const a=((e,t)=>(0,s.findIndex)(Dl(t))(e))(P,R.fieldName);a>-1?null===(e=E.current)||void 0===e||e.scrollToItem(a,"center"):null===(t=E.current)||void 0===t||t.scrollTo(0)}),[P]),(0,a.useEffect)((()=>{const e=F();o({selectedDetailedAttributeType:e,filterText:x,filterOptions:T})}),[x,T,R]),(0,a.useEffect)((()=>{I((e=>{let{fieldName:t}=e;return v?{fieldName:null}:{fieldName:t}}))}),[v]);const U=e=>{let{data:t,index:r,style:a}=e;const{attributeItem:n,level:i=0}=t[r],o=R.fieldName===n.fieldName,c=((e,t)=>e[t.fieldName])(C,n),u=r>0&&i>(0,s.pathOr)(-1,[r+1,"level"],j);return l().createElement(Il,{fillRateData:c,fillRateState:A,style:a,detailedAttributeType:n,level:i,onClick:k,selected:o,onCollapse:(d=n.fieldName,()=>{N((e=>e.includes(d)?e.filter((e=>e!==d)):e.concat(d)))}),isCollapsed:w.includes(n.fieldName),isLastLevelItem:u});var d},z=j.length,B=!!z,V=A===y.o.LOADING||D===y.o.LOADING||A===y.o.INIT||D===y.o.INIT;return l().createElement("div",{className:b.root},l().createElement("div",{className:b.title},d().text("Attributes"),l().createElement("span",{className:b.itemCount},`${M} ${H=M,1===H?d().text("item"):d().text("items")}`),l().createElement(Gl,{defaultFilterText:f,defaultFilterOptions:T,onChangeFilterOptions:S,onChangeFilterText:O,filterOptions:_})),l().createElement("div",{className:b.listWrapper,"data-reltio-id":"reltio-dq-dashboard-attributes-list"},l().createElement("div",{className:b.loaderWrapper},V&&l().createElement(me.Z,null)),B?l().createElement(de.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return l().createElement(pl.FixedSizeList,{ref:E,itemCount:z,width:"100%",height:t,itemData:j,itemSize:48},U)})):!V&&l().createElement(we,{height:349,data:{Icon:m.B9.SEARCH_RESULTS,title:d().text("No results found"),message:d().text("Try adjusting your search or filter to find\nwhat you’re looking for")},variant:ge.MEDIUM})));var H},Ql=(0,E.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"},content:{display:"flex",flexGrow:1,overflow:"hidden"},additionalLabel:{color:e.palette.text.secondary,marginLeft:"10px"},entityLevelButton:{height:"48px",padding:"0 16px",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",borderRight:"1px solid rgba(0, 0, 0, 0.1)",fontSize:"16px",lineHeight:"48px",color:"rgba(0, 0, 0, 0.87)",cursor:"pointer"},selectedButton:{background:"#F0F7FC"},wrapper:{display:"flex",flexDirection:"column"}})));function Kl(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){Xl(e,t,r[t])}))}return e}function Xl(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,s.path)([0,"value"]),en=e=>{var t,r,i;let{config:o,saveState:u,getSavedState:b}=e;const E=Ql(),{entityType:x,tabs:w,setEntityTypeByUri:T}=(()=>{const e=(0,n.useSelector)(h.ZP.selectors.getMetadata),t=(0,a.useMemo)((()=>e.entityTypes.filter(c.oDv)),[e.entityTypes]),r=v(t),[l,i]=(0,a.useState)(null);return{entityType:l,tabs:(0,a.useMemo)((()=>t.map(((e,t)=>{let{label:a,uri:l}=e;return{label:a,value:l,additionalLabel:Number((null==r?void 0:r[(0,c.nIW)(l)])||0),dataReltioId:`reltio-dq-dashboard-entity-tab-${t}`}}))),[t,r]),setEntityTypeByUri:(0,s.pipe)((0,c.nt9)(e),i)}})(),[S,R]=(0,a.useState)(null),{isLoaded:I,savedState:P}=(0,p.a)(b),_=(0,n.useSelector)(h.ZP.selectors.getCanUserGetDQStatistic),[j,M]=(0,a.useState)(),k=(e=>{const[t,r]=(0,a.useState)(null),[l,i]=(0,a.useState)(null),o=(0,g._)(),u=(0,n.useSelector)(h.ZP.selectors.getUIPath),d=(0,n.useSelector)(h.ZP.selectors.getEnvironment),p=(0,n.useSelector)(h.ZP.selectors.getTenant);return(0,a.useEffect)((()=>{o((0,c.f_2)({uiPath:u,tenant:p,environment:d,options:{method:"GET"}})).then((e=>{var t;const a=null==e||null===(t=e.data)||void 0===t?void 0:t.apps.find((0,s.propEq)("name","Console")).uri;r(a)})).catch((()=>r(null)))}),[d,p,u]),(0,a.useEffect)((()=>{const r=t&&null!=e&&e.uri?(0,s.pipe)((0,s.split)("?"),(0,s.insert)(1,`datamodeler/entityDetails/${(0,c.nIW)(e.uri)}/validation?`),(0,s.join)(""))(t):null;i(r)}),[e,t]),l})(x),F=(e=>{const[t,r]=(0,a.useState)(null),[l,i]=(0,a.useState)(y.o.INIT),[o,s]=(0,a.useState)(),u=(0,n.useSelector)(h.ZP.selectors.getTenant),d=(0,n.useSelector)(h.ZP.selectors.getDVFPath),p=(0,g._)(),f=(0,n.useSelector)(h.ZP.selectors.getEnvironment),m=e=>{console.error(e),i(y.o.ERROR),r([]),s(null==e?void 0:e.errorCode)},v=e=>{r(e.functions),s(void 0),i(y.o.LOADED)},b=(0,a.useCallback)((()=>{if(e&&f)return i(y.o.LOADING),p((0,c.HaQ)({dvfPath:d,tenant:u,entityTypeUri:e,env:f})).then(v).catch(m)}),[d,u,e,f]);return(0,a.useEffect)((()=>{b()}),[b]),{data:t,state:l,reload:b,errorCode:o}})(null==x?void 0:x.uri),U={dvfs:F,dvfConfigLink:k},B=null==w?void 0:w.map((e=>Kl({},e,{additionalLabel:l().createElement("span",{className:E.additionalLabel},"(",(0,c.k7L)(e.additionalLabel,999),")")}))),V=(0,a.useCallback)((e=>{(null==x?void 0:x.uri)!==e&&(R(null),T(e),j===A.ENTITY_TYPE&&u(Kl({dataLevel:j,entityTypeUri:e},q.current&&{filterOptions:q.current.filterOptions,filterText:q.current.filterText})))}),[null==x?void 0:x.uri]),H=(null===(t=o.layoutsByDataLevel)||void 0===t?void 0:t[A.ENTITY_TYPE])||L[A.ENTITY_TYPE],W=null===(r=o.layoutsByDataLevel)||void 0===r?void 0:r[A.ATTRIBUTE_TYPE],Y=(0,a.useMemo)((()=>j===A.ENTITY_TYPE&&H?H:((e,t)=>{const r=z(t),a=(0,s.mergeLeft)(e,L[A.ATTRIBUTE_TYPE]);return a[r]||a.default||[]})(W,null==S?void 0:S.type)),[H,null==S?void 0:S.type,W,j]),G=(0,a.useMemo)((()=>((e,t,r,a)=>{const l=(0,s.uniqBy)((0,s.prop)("id"),(0,s.concat)((null==e?void 0:e[a])||[],D[a]||[])),n=(e=>{switch(e){case A.ATTRIBUTE_TYPE:return(e=>{switch(e){case C.INTEGER:case C.FLOAT:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART,N.VALUE_DISTRIBUTION];case C.BOOLEAN:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY];case C.STRING:return[N.LENGTH,N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART];case C.DATE:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART,N.VALUE_DISTRIBUTION,N.MONTH_DISTRIBUTION,N.DAY_OF_MONTH_DISTRIBUTION,N.DAY_OF_WEEK_DISTRIBUTION];case C.SSN:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART,N.PATTERN];case C.UNKNOWN:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART,N.LENGTH];default:return[]}})(z(t));case A.ENTITY_TYPE:return[N.SUMMARY];default:return[]}})(a);return r.reduce(((e,t)=>{const r=(0,s.prop)("type",e.find((0,s.propEq)("id",t.id)));if(!n.includes(r)){const r=e.findIndex((0,s.propEq)("id",t.id));if(-1!==r)return(0,s.adjust)(r,(0,s.assoc)("type",N.UNSUPPORTED),e)}return e}),l)})(o.viewsByDataLevel,null==S?void 0:S.type,Y,j)),[null==S?void 0:S.type,Y,j]);(0,a.useEffect)((()=>{I&&(T(P.entityTypeUri||Jl(w)),M(H?P.dataLevel||A.ENTITY_TYPE:A.ATTRIBUTE_TYPE))}),[I]);const q=(0,a.useRef)(),$=!(null===(i=w.find((0,s.propEq)("value",null==x?void 0:x.uri)))||void 0===i||!i.additionalLabel),Q=x&&_&&I&&$;return l().createElement("div",{className:E.perspectiveView},l().createElement(O,{title:d().text("Data Quality")},x&&l().createElement(f.Z,{value:x.uri,tabs:B,onChange:V,scrollButtons:"auto"})),l().createElement("div",{className:E.content},Q&&l().createElement(l().Fragment,null,l().createElement($r.Provider,{value:U},l().createElement("div",{className:E.wrapper},H&&l().createElement("div",{className:Z()(E.entityLevelButton,{[E.selectedButton]:j===A.ENTITY_TYPE}),onClick:()=>{R(null),M(A.ENTITY_TYPE)}},`${x.label} ${d().text("summary")}`),l().createElement($l,{entityType:x,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:r,filterOptions:a}=e;const l=null==t?void 0:t.fieldName,n={entityTypeUri:x.uri,fieldName:l,filterOptions:a,filterText:r,dataLevel:j};!l&&j!==A.ENTITY_TYPE||(0,s.equals)(q.current,n)||(u(n),q.current=n),l&&M(A.ATTRIBUTE_TYPE),R(t)},defaultFieldName:null==P?void 0:P.fieldName,defaultFilterText:null==P?void 0:P.filterText,defaultFilterOptions:null==P?void 0:P.filterOptions,disableAttributeSelection:j===A.ENTITY_TYPE})),(S||j===A.ENTITY_TYPE)&&l().createElement(ar.Provider,{value:j},l().createElement(Ve.Provider,{value:x},l().createElement(Be.Provider,{value:S},l().createElement(dl,{views:G,layout:Y})))))),!_&&l().createElement(Ee,{height:359,errorData:{title:d().text("You don’t currently have permission to view this page"),message:d().text(" Please contact your Tenant Admin to change permissions")},variant:ge.LARGE}),I&&x&&!$&&_&&l().createElement(we,{height:359,data:{Icon:m.B9.NO_DATA,title:d().text("Give us something to go on!"),message:d().text("Go ahead and load some data. We’ll put it on the scales and\nlet you know here if it measures up.")},variant:ge.LARGE})))};function tn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rn=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){tn(e,t,r[t])}))}return e}({},c.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}}),an=(0,i.Z)(rn),ln=(0,o.createGenerateClassName)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0}),nn=e=>{let{store:t,config:r,saveState:i,getSavedState:s}=e;const u=(0,a.useCallback)((0,c.aYu)(s),[s]);return l().createElement(n.Provider,{store:t},l().createElement(o.ThemeProvider,{theme:an},l().createElement(o.StylesProvider,{generateClassName:ln},l().createElement(en,{config:r,saveState:i,getSavedState:u}))))}},15115:(e,t,r)=>{t.Z=void 0;var a=m(r(72579)),l=m(r(54073)),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var n=a?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(r,l,n):r[l]=e[l]}return r.default=e,t&&t.set(e,r),r}(r(24328)),i=m(r(13980)),o=m(r(71153)),c=m(r(16805)),s=m(r(2630)),u=m(r(81819)),d=m(r(21853)),p=m(r(87685));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(f,e);var t,r,i=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var r,a=E(e);if(t()){var l=E(this).constructor;r=Reflect.construct(a,arguments,l)}else r=a.apply(this,arguments);return v(this,r)}}(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),x(b(t=i.call(this,e)),"emitChange",(0,l.default)((function(e){return t.props.onChange(e)}),200)),x(b(t),"handleChange",(function(e){var r=(0,a.default)(e,["target","value"]);t.setState({value:r}),t.emitChange(r)})),x(b(t),"handleFocus",(function(){return t.inputRef.current.focus()})),x(b(t),"handleOpen",(function(){t.props.forceOpen||t.setState({open:!0},t.handleFocus)})),x(b(t),"handleClose",(function(){t.props.forceOpen||t.setState({open:!1}),t.setState({value:""}),t.emitChange()})),t.state={open:Boolean(t.props.initialValue),value:t.props.initialValue||""},t.inputRef=n.default.createRef(),t}return t=f,(r=[{key:"render",value:function(){var e=this.state,t=e.open,r=e.value,a=this.props,l=a.classes,i=a.placeholder,f=a.forceOpen,m=t||f,h=t||f&&r;return n.default.createElement("div",{className:(0,o.default)(c.default.searchInputContainer,x({},c.default.colored,m),l.root)},n.default.createElement(s.default,{name:"expand-input-btn",onClick:this.handleOpen},n.default.createElement(d.default,null)),m&&n.default.createElement(u.default,{value:r,disableUnderline:!0,className:c.default.searchInputField,classes:{input:c.default.input},placeholder:i,onChange:this.handleChange,inputProps:{ref:this.inputRef}}),h&&n.default.createElement(s.default,{name:"collapse-input-btn",onClick:this.handleClose},n.default.createElement(p.default,null)))}}])&&y(t.prototype,r),f}(n.PureComponent);t.Z=O,O.defaultProps={classes:{},forceOpen:!1},O.propTypes={classes:i.default.shape({root:i.default.string}),placeholder:i.default.string,forceOpen:i.default.bool,onChange:i.default.func.isRequired,initialValue:i.default.string}},16805:(e,t,r)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(0,((a=r(86698))&&a.__esModule?a:{default:a}).default)("<style>.Form__searchInputContainer_3vqs6{display:flex;min-height:48px}.Form__searchInputField_3mnAi{flex:1 1 auto;padding:2px}.Form__input_3ulP-::-ms-clear{display:none}.Form__colored_2WMqk{background-color:#fafafa}</style>"),t.default={searchInputContainer:"Form__searchInputContainer_3vqs6",searchInputField:"Form__searchInputField_3mnAi",input:"Form__input_3ulP-",colored:"Form__colored_2WMqk"}}}]);
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3771],{81819:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r.Z});var r=a(29611)},69112:(e,t,a)=>{a.d(t,{Z:()=>p});var r=a(7560),l=a(54530),n=a(24328),i=(a(13980),a(6277));const o=(0,a(3752).Z)(n.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");var c=a(15459),s=a(57074),u=a(97580),d=n.forwardRef((function(e,t){var a=e.active,c=void 0!==a&&a,d=e.children,p=e.classes,f=e.className,m=e.direction,h=void 0===m?"asc":m,y=e.hideSortIcon,g=void 0!==y&&y,v=e.IconComponent,b=void 0===v?o:v,E=(0,l.Z)(e,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return n.createElement(s.Z,(0,r.Z)({className:(0,i.Z)(p.root,f,c&&p.active),component:"span",disableRipple:!0,ref:t},E),d,g&&!c?null:n.createElement(b,{className:(0,i.Z)(p.icon,p["iconDirection".concat((0,u.Z)(h))])}))}));const p=(0,c.Z)((function(e){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:e.palette.text.secondary},"&:hover":{color:e.palette.text.secondary,"& $icon":{opacity:.5}},"&$active":{color:e.palette.text.primary,"&& $icon":{opacity:1,color:e.palette.text.secondary}}},active:{},icon:{fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}}),{name:"MuiTableSortLabel"})(d)},98989:(e,t,a)=>{var r=a(14859);t.Z=void 0;var l=r(a(24328)),n=(0,r(a(50175)).default)(l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M10 17l5-5-5-5v10z"}),l.default.createElement("path",{fill:"none",d:"M0 24V0h24v24H0z"})),"ArrowRight");t.Z=n},82726:(e,t,a)=>{var r=a(14859);t.Z=void 0;var l=r(a(24328)),n=(0,r(a(50175)).default)(l.default.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.Z=n},43266:(e,t,a)=>{var r=a(14859);t.Z=void 0;var l=r(a(24328)),n=(0,r(a(50175)).default)(l.default.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");t.Z=n},21853:(e,t,a)=>{var r=a(14859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=r(a(24328)),n=(0,r(a(50175)).default)(l.default.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.default=n},82068:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(24328),l=a.n(r),n=a(71153),i=a.n(n);const o=(0,a(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 a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},c.apply(this,arguments)}const s=e=>{let{children:t,className:a}=e,r=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["children","className"]);const n=o();return l().createElement("div",c({className:i()(n["basic-view-content"],a)},r),t)}},17822:(e,t,a)=>{a.d(t,{Z:()=>S});var r=a(13980),l=a.n(r),n=a(24328),i=a.n(n),o=a(66244),c=a.n(o),s=a(44443),u=a(17440),d=a(71153),p=a.n(d);function f(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}const m=e=>{let{x:t,y:a,width:r,height:l,id:n,minWidth:i,minHeight:o,maxWidth:c,maxHeight:s,isStatic:u}=e;return{x:t,y:a,w:r,h:l,minW:i,minH:o,maxW:c,maxH:s,i:n,static:u}},h=e=>{let{x:t,y:a,w:r,h:l,maxW:n,minW:i,minH:o,maxH:c,i:s}=e;return{x:t,y:a,width:r,height:l,minWidth:i,minHeight:o,maxWidth:n,maxHeight:c,id:s,isStatic:f(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},y=e=>(e||[]).map(h),g=(0,u.curry)(((e,t)=>(e||[]).find((0,u.propEq)("id",t)))),v=(0,u.curry)(((e,t,a)=>(0,u.mergeAll)([a,(0,u.pick)(e,t)]))),b=(0,u.curry)(((e,t,a)=>(a||[]).map((a=>(0,u.pipe)((0,u.prop)("id"),g(t),(0,u.defaultTo)({}),v(e,u.__,a))(a)))));var E=a(79692),x=a(4171);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 a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},w.apply(this,arguments)}function N(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const T=e=>{let{views:t,layout:a,layoutOptions:r,onLayoutChanged:l,draggableHandle:o,LayoutItem:d,onRemove:f,onDrop:v,droppingItem:E,isDroppable:x,classes:T}=e;const S=(0,n.useRef)(),R=O(),[I,A]=(0,n.useState)(null),[C,D]=(0,n.useState)(0),{cols:L,rowHeight:P,margin:_}=r,j=(0,n.useMemo)((()=>(e=>(e||[]).map(m))(a)),[a]),M=(0,u.pipe)(y,b(["autosizing"],a),l),k=(0,n.useCallback)((e=>A((t=>t?null:e))),[]),F=null!==I,U=(0,n.useCallback)(((e,t)=>{let n=!1;const i=a.map((a=>{if(a.id===t&&e){const t=((e,t)=>{const{margin:a,rowHeight:r}=t;return Math.ceil((e+a[1])/(r+a[1]))})(e,r);if(a.height!==t)return n=!0,function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){N(e,t,a[t])}))}return e}({},a,{minHeight:t,maxHeight:t,height:t})}return a}));n&&l(i)}),[a,r,l]);return i().createElement(i().Fragment,null,i().createElement(s.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>D(e)}),i().createElement(c(),{innerRef:S,layout:j,cols:L,draggableHandle:o,autoSize:!0,rowHeight:P,width:C,margin:_,onLayoutChange:M,isResizable:!F,isDraggable:!F,className:p()(R.gridLayout,{[R.gridFullscreen]:F}),onDrop:(e,t,a)=>{v&&v(y(e),h(t),a)},droppingItem:E,isDroppable:x},j.map((e=>{const r=I===e.i,l=(g(a,e.i)||{}).autosizing?{AutosizeComponent:(n=e.i,i().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>{U(t,n)}}))}:{};var n;return i().createElement(d,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:k,onRemove:f,className:p()({fullscreen:r},T.item),isFullscreen:r},l))}))))};T.defaultProps={layoutOptions:{cols:4,rowHeight:30,margin:[15,15]},onConfigChanged:u.identity,onLayoutChanged:u.identity,classes:{}},T.propTypes={views:l().array,layout:l().array,layoutOptions:l().object,onConfigChanged:l().func,onLayoutChanged:l().func,onDrop:l().func,onRemove:l().func,LayoutItem:l().elementType,draggableHandle:l().string,isDroppable:l().bool,droppingItem:l().object,classes:l().shape({item:l().string})};const S=(0,n.memo)(T)},21210:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(89810),l=a(4171),n=a(24328),i=a.n(n),o=a(52730),c=a(42639);const s=e=>{let{sourceType:t,className:a,classes:n}=e;const s=(0,o.useSelector)(r.ZP.selectors.getMetadata),{label:u,icon:d}=(0,l.PWK)(s,t);return i().createElement(c.Z,{className:a,avatarText:u[0],icon:d?(0,l.vPL)("https://s3.amazonaws.com/reltio.images/api",d):null,variant:"square",rootClasses:n})}},39878:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(24328),l=a.n(r),n=a(4171),i=a(17440);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},o.apply(this,arguments)}function c(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const s=e=>{const t=t=>{let{data:a}=t,s=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(t,["data"]);const u=(0,r.useMemo)((()=>a&&(e=>{const t=(0,n.QK6)((0,i.pluck)("value",e),1);return e.map(((e,a)=>function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){c(e,t,a[t])}))}return e}({},e,{percent:t[a]})))})(a)),[a]);return l().createElement(e,o({data:u},s))};return t.displayName="WithPercents",t}},59383:(e,t,a)=>{a.d(t,{d:()=>l});const r=(0,a(79692).Z)({clickable:{cursor:"pointer"}}),l=e=>{const t=r();return e?t.clickable:void 0}},11326:(e,t,a)=>{a.d(t,{a:()=>l});var r=a(24328);const l=e=>{const[t,a]=(0,r.useState)(!1),[l,n]=(0,r.useState)({});return(0,r.useEffect)((()=>{e().then((e=>{n(e||{})})).then((e=>a(!0))).catch((e=>a(!0)))}),[]),{isLoaded:t,savedState:l}}},43129:(e,t,a)=>{a.d(t,{Z:()=>o});var r=a(24328),l=a.n(r),n=a(67358);const i=(0,a(79692).Z)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),o=()=>{const e=i();return l().createElement(n.Z,{color:"secondary",className:e.loader})}},65298:(e,t,a)=>{a.d(t,{Z:()=>c});var r=a(24328),l=a.n(r),n=a(1730),i=a(52388);const o=(0,a(79692).Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),c=e=>{let{id:t,children:a}=e;const r=o();return l().createElement(i.H.Provider,{value:t},l().createElement(n.Z,{className:r.view},a))}},52388:(e,t,a)=>{a.d(t,{H:()=>l});var r=a(24328);const l=a.n(r)().createContext(null);l.displayName="DashboardViewIdContext"},5260:(e,t,a)=>{let r;a.d(t,{o:()=>r}),function(e){e.INIT="init",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(r||(r={}))},26505:(e,t,a)=>{a.r(t),a.d(t,{default:()=>nn});var r=a(24328),l=a.n(r),n=a(52730),i=a(33016),o=a(36138),c=a(4171),s=a(17440),u=a(87918),d=a.n(u),p=a(11326),f=a(7907),m=a(79002),h=a(89810),y=a(5260),g=a(29627);const v=e=>{const[t,a]=(0,r.useState)(null),l=(0,g._)();return(0,r.useEffect)((()=>{const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:(0,s.pluck)("uri",e)}]);l((0,c.FK9)({query:(0,c.ECL)({activeness:"active",filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]})).then((e=>{let{type:t}=e;return a(t)})).catch((()=>a(null)))}),[e]),t};var b=a(90436),E=a(79692);const x=(0,E.Z)({root:{display:"flex",alignItems:"center",width:"100%",borderBottom:"solid 1px rgba(0, 0, 0, 0.12)"},title:{fontSize:"18px",flexShrink:0,padding:"0 20px"},content:{overflow:"hidden",flexGrow:1},updateButton:{height:36,width:36,padding:"0 20px"}}),O=e=>{let{title:t,children:a}=e;const r=x();return l().createElement("div",{className:r.root},l().createElement(b.Z,{variant:"body2",className:r.title},t),l().createElement("div",{className:r.content},a))};var w=a(17822);let N;!function(e){e.FILL_RATE_CHART="fillRate",e.UNIQUENESS_CHART="uniqueness",e.SUMMARY="summary",e.VALIDATION="validation",e.FREQUENCY="frequency",e.LENGTH="length",e.CROSSWALK="crosswalk",e.MONTH_DISTRIBUTION="monthDistribution",e.DAY_OF_WEEK_DISTRIBUTION="dayOfWeekDistribution",e.DAY_OF_MONTH_DISTRIBUTION="dayOfMonthDistribution",e.VALUE_DISTRIBUTION="valueDistribution",e.PATTERN="patternAnalysis",e.UNSUPPORTED="unsupported"}(N||(N={}));var T=a(73487),S=a(78223),R=a(39878);const I=(e,t,a)=>({attributes:(t||[]).map(((t,r)=>{let{filter:l,fieldName:n,values:i}=t;return{data:{uri:null==a?void 0:a.uri,entityTypeUri:e,fieldName:n},filter:l,id:`attribute_${r}`,operator:"and",values:i}})),entityTypes:[e],id:"group",operator:"or"});let A,C;!function(e){e.STRING="string",e.FLOAT="float",e.INTEGER="integer",e.BOOLEAN="boolean",e.DATE="date",e.SSN="SSN",e.UNKNOWN="unknown"}(A||(A={})),function(e){e.ENTITY_TYPE="entityType",e.ATTRIBUTE_TYPE="attributeType"}(C||(C={}));const D={[C.ATTRIBUTE_TYPE]:[{id:"FillRateView",type:N.FILL_RATE_CHART,title:"Fill rate"},{id:"UniquenessAnalysisView",type:N.UNIQUENESS_CHART,title:d().text("Uniqueness analysis")},{id:"SummaryView",type:N.SUMMARY,title:d().text("Summary")},{id:"ValidationView",type:N.VALIDATION,title:d().text("Profiles with invalid data")},{id:"FrequencyAnalysis",type:N.FREQUENCY,title:d().text("Frequency analysis")},{id:"LengthStatistics",type:N.LENGTH,title:d().text("Length statistics")},{id:"PatternAnalysis",type:N.PATTERN,title:d().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:N.CROSSWALK,title:d().text("Source system analysis")},{id:"MonthDistribution",type:N.MONTH_DISTRIBUTION,title:d().text("Month distribution")},{id:"DayOfWeekDistribution",type:N.DAY_OF_WEEK_DISTRIBUTION,title:d().text("Day of week distribution")},{id:"DayOfMonthDistribution",type:N.DAY_OF_MONTH_DISTRIBUTION,title:d().text("Day of month distribution")},{id:"ValueDistribution",type:N.VALUE_DISTRIBUTION,title:d().text("Value distribution")},{id:"UnsupportedDataType",type:N.UNSUPPORTED,title:d().text("Unsupported Data Type")}],[C.ENTITY_TYPE]:[{id:"SummaryView",type:N.SUMMARY,title:d().text("Summary")}]},L={[C.ATTRIBUTE_TYPE]:{default:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"LengthStatistics"}],[A.SSN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:2,height:19,id:"PatternAnalysis"}],[A.BOOLEAN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"FrequencyAnalysis"},{x:0,y:19,width:2,height:19,id:"CrosswalkAnalysis"}],[A.DATE]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"},{x:0,y:57,width:2,height:19,id:"MonthDistribution"},{x:2,y:57,width:2,height:19,id:"DayOfWeekDistribution"},{x:0,y:76,width:4,height:19,id:"DayOfMonthDistribution"}],[A.INTEGER]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}],[A.FLOAT]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}]}};function P(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){_(e,t,a[t])}))}return e}function _(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const j=(0,s.map)((e=>P({},e,{localizedValue:d().number(e.value)}))),M=e=>(0,s.isNil)(e)?"":`(${e}%)`,k=e=>(0,s.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),F=(0,s.curry)(((e,t,a)=>({advanced:[I(t,a.map((0,s.when)((()=>(0,c.Lt4)(e.type)),(0,s.evolve)({values:(0,s.map)((0,c.mOr)(c.ZBU))}))),e)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}))),U=e=>t=>{let{detailedAttributeType:a,entityTypeUri:r,dvfs:l}=t;return(0,s.pipe)(e({fieldName:a.fieldName,entityTypeUri:r,dvfs:l}),F(a,r))},z=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 A.STRING;case c.oS0.TYPE_COUNT:case c.oS0.TYPE_DOLLAR:case c.oS0.TYPE_INT:case c.oS0.TYPE_LONG:return A.INTEGER;case c.oS0.TYPE_FLOAT:case c.oS0.TYPE_DOUBLE:case c.oS0.TYPE_NUMBER:return A.FLOAT;case c.oS0.TYPE_BOOLEAN:case c.oS0.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return A.BOOLEAN;case c.oS0.TYPE_ACTIVENESS_DATE:case c.oS0.TYPE_DATE:case c.oS0.TYPE_LOCAL_DATE:case c.oS0.TYPE_TIMESTAMP:return A.DATE;case c.oS0.TYPE_SSN:return A.SSN;default:return A.UNKNOWN}},B=e=>{let{percent:t,value:a}=e;return P({width:`${t}%`},a>0&&{minWidth:"3px"})},V=(0,s.pipe)((0,s.pluck)("percent"),(e=>Math.max(...e)));var H=a(71153),Z=a.n(H);const W=(0,E.Z)({wrapper:{width:"100%",display:"flex",justifyContent:"center",margin:"auto",flexWrap:"wrap",flexDirection:"column",marginBottom:2},item:{display:"flex",alignItems:"center",height:19},itemColor:{width:12,height:12,marginRight:9,flexShrink:0}}),Y=e=>{let{payload:t}=e;const a=W();return l().createElement("div",{className:Z()(a.wrapper)},t.map((e=>l().createElement("div",{key:e.id,className:a.item},l().createElement("div",{style:{background:e.color},className:a.itemColor}),e.value))))},G=(0,E.Z)({root:{display:"flex",flexDirection:"column",height:"100%"},stackedBar:{width:"100%",display:"flex",flexWrap:"nowrap",marginTop:"13px"},bar:{height:"24px",flexGrow:1,position:"relative",width:"50%",transition:"width 0.7s","&:hover":{"&:after":{content:'""',background:"rgba(0, 0, 0, 0.1)"}},"&:after":{position:"absolute",top:"-3px",bottom:"-5px",left:"-5px",right:"-5px",transition:"background 0.3s",zIndex:1,pointerEvents:"none"}},inactivePart:{background:"#EFEFEF"},tooltipTitle:{fontSize:"11px"},tooltipFillRate:{marginTop:"4px"},tooltip:{background:"#fff",filter:"drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)) drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2))",padding:"5px 8px"},legendWrapper:{position:"relative",flexGrow:1},legendLabel:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},legendValue:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.87)"},clickable:{cursor:"pointer"}});function q(){return q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},q.apply(this,arguments)}const $=(0,r.forwardRef)(((e,t)=>{let{className:a}=e,r=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["className"]);const n=G();return l().createElement("div",q({className:Z()(n.bar,a)},r,{ref:t}))}));$.displayName="Bar";const Q=$,K=(0,E.Z)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"}}),X=e=>{let{label:t,value:a}=e;const r=K();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:Z()(r.label,r.chartDataLabel)},t),a)},J=(0,E.Z)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),ee=e=>{let{data:t,title:a,DataRenderer:r=X}=e;const n=J();return l().createElement("div",{className:n.tooltipWrapper},a&&l().createElement("div",{className:n.title},a),t.map(((e,t)=>l().createElement("div",{key:t,className:n.row},l().createElement(r,e)))))};function te(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){ae(e,t,a[t])}))}return e}function ae(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const re=(0,S.Z)(Q),le=e=>{let{label:t,value:a,percent:r}=e;return[{label:t,value:`${d().number(a)} ${M(r)}`}]},ne=(0,R.Z)((e=>{let{data:t,colors:a,onItemClick:r}=e;const n=G(),i=r&&(e=>r(e)),o=!!r;return l().createElement("div",{className:n.root},l().createElement("div",{className:n.stackedBar},t.map(((e,t)=>l().createElement(re,{className:o&&n.clickable,key:e.label,tooltipTitle:l().createElement(ee,{data:le(e)}),style:te({},B(e),{background:a[t]}),onClick:()=>i(e.group)})))),l().createElement("div",{className:n.legendWrapper},l().createElement(T.De,{layout:"vertical",align:"left",verticalAlign:"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%"},content:l().createElement(Y,null),payload:(t||[]).map(((e,t)=>{let{group:r,label:i,value:o,percent:s}=e;return{id:r,type:"square",color:a[t],value:l().createElement(l().Fragment,null,l().createElement("span",{className:n.legendLabel},i),l().createElement("span",{className:n.legendValue},`${(0,c.k7L)(o,999)} ${M(s)}`))}}))})))}));var ie=a(17998),oe=a(39475),ce=a(82726);const se=(0,E.Z)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:"5px",lineHeight:"24px"},infoIcon:{position:"relative"}}))),ue=e=>{let{title:t,infoTooltipTitle:a,children:r}=e;const n=se(!!r),i=!!a;return l().createElement(ie.Z,{title:t,className:n.root,classes:{title:n.title}},i&&l().createElement(oe.k,{icon:ce.Z,size:"XXS",tooltipTitle:a,className:n.infoIcon}),r)};var de=a(44443),pe=a(7882),fe=a(82068),me=a(43129),he=a(77277),ye=a(43266);let ge;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(ge||(ge={}));const ve=(0,E.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"}}))),be=m.B9.ERROR,Ee=e=>{let{onRefresh:t,height:a,errorData:r={},variant:n=ge.SMALL}=e;const{Icon:i=be,message:o,title:c}=r,s=ve({height:a});return l().createElement("div",{className:Z()(s.container,s[`${n}`])},l().createElement(i,{className:s.icon}),c&&l().createElement(b.Z,{className:s.title},c),o&&l().createElement(b.Z,{className:s.message},o),!!t&&l().createElement(he.Z,{className:s.refreshButton,startIcon:l().createElement(ye.Z,{color:"primary",className:s.refreshIcon}),onClick:t,"data-reltio-id":"reltio-dq-dashboard-chart-refresh-button"},l().createElement(b.Z,{variant:"button"},d().text("Refresh"))))},xe=(0,E.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"}}),Oe=m.B9.NO_DATA,we=e=>{let{height:t,data:a={},variant:r=ge.SMALL}=e;const{Icon:n=Oe,message:i,title:o}=a,c=xe({height:t});return l().createElement("div",{className:Z()(c.container,c[`${r}`])},l().createElement(n,{className:c.icon}),o&&l().createElement(b.Z,{className:c.title},o),i&&l().createElement(b.Z,{className:c.message},i))},Ne=(0,E.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}}))),Te=e=>{let{loadingState:t,onRefresh:a,children:r,data:n,className:i}=e;const o=Ne();return l().createElement(fe.Z,{className:Z()(o.viewContent,i)},l().createElement(de.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:i,height:o}=e;switch(t){case y.o.LOADED:return n&&0!==n.length?l().createElement(pe.Z,{error:l().createElement(Ee,{errorData:{message:d().text("Something went wrong")},height:o,variant:ge.SMALL})},r({data:n,width:i,height:o})):l().createElement(we,{height:o,data:{Icon:m.B9.NO_DATA,message:d().text("Go ahead and load some data. We’ll put it on the scales and let you know here if it measures up."),title:d().text("Give us something to go on!")},variant:ge.SMALL});case y.o.LOADING:return l().createElement(me.Z,null);case y.o.ERROR:return l().createElement(Ee,{errorData:{Icon:m.B9.ERROR,message:d().text("No need to fret - just refresh and it will work itself out."),title:d().text("Oops! We ran into a problem.")},height:o,onRefresh:a,variant:ge.SMALL});default:return l().createElement("div",null,"Loading...")}})))};var Se=a(1730);const Re=(0,E.Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),Ie=e=>{let{config:t,children:a}=e;const r=Re(),{type:n}=t;return l().createElement(Se.Z,{className:r.view,"data-reltio-id":`reltio-dq-dashboard-chart-${n}`},a)},Ae=e=>{let{label:t,value:a}=e;const r=K();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:Z()(r.label,r.infoDataLabel)},t),a)},Ce={[c.s9T.MISSING]:"#CE5C00",[c.s9T.EXISTS]:"#C4CE00"},De=(0,s.map)((e=>{let{group:t}=e;return Ce[t]||(0,c.f4_)(t)})),Le=e=>({[c.s9T.MISSING]:d().text("Missing"),[c.s9T.EXISTS]:d().text("Exists")}[e]||e),Pe=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:Le(t),group:t,value:a}})),(0,s.sortBy)((e=>Object.values(c.s9T).indexOf(e.group))),j),_e=e=>Object.keys(e).reduce(((t,a)=>(t[a]=Pe(e[a]),t)),{}),je=(0,s.propOr)({},"fillRate"),Me=(0,s.pipe)(je,Pe,(0,s.when)(k,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,De])),ke=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:t===c.s9T.EXISTS?c.j5E.EXISTS:c.j5E.MISSING_VALUE,fieldName:a}]})),Fe=U(ke),Ue=l().createContext(null);Ue.displayName="ChartsDataContext";const ze=e=>{const{data:t,state:a,reload:l}=(0,r.useContext)(Ue);return{data:(0,r.useMemo)((()=>e(t)),[t,e]),state:a,reload:l}},Be=l().createContext(null);Be.displayName="DetailedAttributeTypeContext";const Ve=l().createContext(null);Ve.displayName="EntityTypeContext";const He=e=>{const t=(0,n.useDispatch)(),a=(0,r.useContext)(Be),l=(0,r.useContext)(Ve);return(0,s.pipe)(e({detailedAttributeType:a,entityTypeUri:l.uri}),h.ui.actions.openSearch,t)},Ze=e=>{let{config:t}=e;const{title:a}=t,{data:r,state:n,reload:i}=ze(Me),{chartData:o,colors:c}=r,s=He(Fe),u=l().createElement(ee,{title:d().text("Fill rate"),data:[{label:`${d().text("Exists")}:`,value:d().text("Profiles with data")},{label:`${d().text("Missing")}:`,value:d().text("Profiles without data")}],DataRenderer:Ae});return l().createElement(Ie,{config:t},l().createElement(ue,{title:a,infoTooltipTitle:u}),l().createElement(Te,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(ne,{data:t,colors:c,onItemClick:s})})))},We={[c.dC6.UNIQUE]:"#4BAFFF",[c.dC6.NOT_UNIQUE]:"#C34980"},Ye=(0,s.map)((e=>{let{group:t}=e;return We[t]||(0,c.f4_)(t)})),Ge=e=>({[c.dC6.UNIQUE]:d().text("Unique"),[c.dC6.NOT_UNIQUE]:d().text("Not unique")}[e]||e),qe=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:Ge(t),group:t,value:a}})),(0,s.sortBy)((e=>Object.values(c.dC6).indexOf(e.group))),j),$e=(0,s.propOr)({},"uniqueness"),Qe=(0,s.pipe)($e,qe,(0,s.when)(k,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,Ye])),Ke=e=>{let{config:t}=e;const{title:a}=t,{data:r,state:n,reload:i}=ze(Qe),{chartData:o,colors:c}=r,s=l().createElement(ee,{title:d().text("Uniqueness analysis"),data:[{label:`${d().text("Unique")}:`,value:d().text("Number of values that only appear once and have no duplicates")},{label:`${d().text("Not unique")}:`,value:d().text("Number of values that have at least one duplicate in the list")}],DataRenderer:Ae});return l().createElement(Ie,{config:t},l().createElement(ue,{title:a,infoTooltipTitle:s}),l().createElement(Te,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(ne,{data:t,colors:c})})))};var Xe=a(4614),Je=a(80030),et=a(7089);const tt=(e,t)=>(e||[]).some((0,s.propEq)("attribute",t)),at=e=>[c.oS0.TYPE_FLOAT,c.oS0.TYPE_DOUBLE,c.oS0.TYPE_NUMBER].includes(e);let rt;function lt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){nt(e,t,a[t])}))}return e}function nt(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}!function(e){e.INCLUDED_IN_MATCHING="includedInMatching",e.CONTAIN_VF="containVF",e.REQUIRED="required",e.REFERENCE="reference",e.RDM_LOOKUP="RDMLookup"}(rt||(rt={}));const it=(0,s.curry)(((e,t)=>e.some((e=>t.details[e.value])))),ot=(0,s.curry)(((e,t)=>{var a;return 0===e.length||it(e,t)||(null===(a=t.children)||void 0===a?void 0:a.some((t=>ot(e,t))))})),ct=(0,s.curry)(((e,t)=>{var a;const r=e[t.fieldName];return null==r||null===(a=r.find((0,s.propEq)("group",c.s9T.EXISTS)))||void 0===a?void 0:a.value})),st=(0,s.curry)(((e,t)=>{var a;const r=e[t.fieldName];return!(null!=r&&null!==(a=r.find((0,s.propEq)("group",c.s9T.EXISTS)))&&void 0!==a&&a.value)})),ut=(0,s.curry)((function(e,t){var a;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const l=t.fieldName||(0,c.Tde)(t.uri,r);return st(e,lt({},t,{fieldName:l}))||(null===(a=t.children)||void 0===a?void 0:a.some((a=>ut(e,a,r.concat({name:t.name,label:t.label})))))})),dt=(0,s.curry)(((e,t)=>t.reduce(((t,a)=>{const r=((e,t)=>{var a;return null===(a=e.label||e.name)||void 0===a?void 0:a.toLowerCase().includes(t.toLowerCase())})(a,e),l=r?a.children||[]:dt(e,a.children||[]);return(r||l.length)&&t.push(Object.assign({},a,l.length&&{children:l})),t}),[])));function pt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){ft(e,t,a[t])}))}return e}function ft(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const mt=e=>{let{attrTypeItem:t,dvf:a=[],matchAttributes:r=[]}=e;const{uri:l,required:n,isAttributeReference:i}=t;return{[rt.INCLUDED_IN_MATCHING]:r.includes(l),[rt.CONTAIN_VF]:tt(a,l),[rt.REQUIRED]:!!n,[rt.REFERENCE]:i,[rt.RDM_LOOKUP]:(0,c.lS4)(t)}},ht=e=>({[rt.INCLUDED_IN_MATCHING]:d().text("Included in match rule"),[rt.CONTAIN_VF]:d().text("Has validation functions"),[rt.REQUIRED]:d().text("Required"),[rt.REFERENCE]:d().text("Reference attribute"),[rt.RDM_LOOKUP]:d().text("RDM")}[e]||e),yt=(0,s.curry)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return(0,s.pipe)((0,s.chain)((e=>{const l=e.children?yt(e.children,t.concat({name:e.name,label:e.label}),a||(0,c.YkG)(e),r+1):[];return[{attributeItem:pt({},e,{fieldName:(0,c.Tde)(e.uri,t),isAttributeReference:(0,c.YkG)(e)||a}),level:r},...l]})))(e)}));function gt(){return gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},gt.apply(this,arguments)}const vt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",gt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#6663F6"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 14.4h2.411c.016-.205.047-.405.093-.6H8.4v-1.2h3.012c.137-.215.296-.416.472-.6H8.4v-1.2h6v.011a3.896 3.896 0 011.8.287V8.4c0-.66-.54-1.2-1.2-1.2H7.8c-.66 0-1.2.54-1.2 1.2v7.8c0 .66.54 1.2 1.2 1.2h4.083a3.892 3.892 0 01-.979-1.8H8.4v-1.2zm6-4.2h-6V9h6v1.2zm2.58 5.934L18.852 18l-.852.852-1.872-1.872a2.66 2.66 0 01-1.434.42A2.695 2.695 0 0112 14.7c0-1.494 1.206-2.7 2.7-2.7 1.494 0 2.7 1.206 2.7 2.7 0 .528-.156 1.014-.42 1.434zm-2.28.066a1.5 1.5 0 10-.001-3.001A1.5 1.5 0 0014.7 16.2z",fill:"#fff"}))};function bt(){return bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},bt.apply(this,arguments)}const Et=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",bt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#1DACF5"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4 9.6H9.3L12 6.9l2.7 2.7h-2.1v3.846l-3.6 3.6-.846-.846 3.246-3.246V9.6zm4.446 6.6l-.846.846L12.954 15l.846-.846 2.046 2.046z",fill:"#fff"}))};function xt(){return xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},xt.apply(this,arguments)}const Ot=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",xt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#7F22FD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 9v1.2h1.2V9H8.4zm0 2.4v1.2h1.2v-1.2H8.4zm0 2.4V15h1.2v-1.2H8.4zM10.8 9v1.2h4.8V9h-4.8zm0 2.4v1.2h4.8v-1.2h-4.8zm0 2.4V15h4.8v-1.2h-4.8zm6-6v8.4H7.2V7.8h9.6zm1.2 9V6.6H6V17.4h12v-.6z",fill:"#fff"}))};function wt(){return wt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},wt.apply(this,arguments)}const Nt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",wt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#4B31E9"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 15.6h1.8V15a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-3V9.6H8.4a.6.6 0 01-.6-.6V6.6a.6.6 0 01.6-.6H12a.6.6 0 01.6.6V9a.6.6 0 01-.6.6h-1.2v1.8h1.8v-.6a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-1.8v3z",fill:"#fff"}))};function Tt(){return Tt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Tt.apply(this,arguments)}const St=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Tt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#80D2FC"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6c-3.312 0-6 2.688-6 6s2.688 6 6 6 6-2.688 6-6-2.688-6-6-6zm-.6 4.96V9h1.2v1.96l1.698-.98.6 1.04L13.2 12l1.698.98-.6 1.04-1.698-.98V15h-1.2v-1.96l-1.698.98-.6-1.04L10.8 12l-1.698-.98.6-1.04 1.698.98zM7.2 12c0 2.646 2.154 4.8 4.8 4.8s4.8-2.154 4.8-4.8-2.154-4.8-4.8-4.8A4.806 4.806 0 007.2 12z",fill:"#fff"}))},Rt=(0,E.Z)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),It={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let At;!function(e){e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal"}(At||(At={}));const Ct=e=>{let{detailType:t,size:a=It.NORMAL,variant:r=At.NORMAL}=e;const n=Rt(a),i=Z()(n.icon,n[r]);switch(t){case rt.RDM_LOOKUP:return l().createElement(Ot,{className:i});case rt.CONTAIN_VF:return l().createElement(vt,{className:i});case rt.INCLUDED_IN_MATCHING:return l().createElement(Et,{className:i});case rt.REFERENCE:return l().createElement(Nt,{className:i});case rt.REQUIRED:return l().createElement(St,{className:i});default:return null}},Dt=(0,E.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 Lt(){return Lt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Lt.apply(this,arguments)}function Pt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){_t(e,t,a[t])}))}return e}function _t(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const jt=e=>{let{detailType:t,classes:a}=e,n=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["detailType","classes"]);const i=Dt(),{data:o,state:s}=(0,r.useContext)(Ue);let u=At.NORMAL;const d=s===y.o.LOADING,p=(e=>{var t;return 0===(null==e||null===(t=e.fillRate)||void 0===t?void 0:t[c.s9T.MISSING])})(o);return t===rt.REQUIRED&&(d&&(u=At.LOADING),d||p||(u=At.BAD_QUALITY)),l().createElement(et.Z,Lt({classes:Pt({root:Z()(i.root,{[i.badQuality]:t===rt.REQUIRED&&!d&&s!==y.o.INIT&&!p}),label:i.label},a),label:ht(t),icon:l().createElement(Ct,{detailType:t,variant:u})},n))},Mt=(0,E.Z)({root:{display:"flex",flexWrap:"wrap",flexGrow:1}}),kt=e=>{let{details:t,chipClasses:a={}}=e;const r=Mt();return l().createElement("div",{className:r.root},Object.entries(t||{}).filter((e=>{let[,t]=e;return t})).map((e=>{let[t]=e;return l().createElement(jt,{key:t,detailType:t,classes:a})})))},Ft=(0,E.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:"16px",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"}}),Ut=e=>{let{title:t,children:a,className:r}=e;const n=Ft();return l().createElement("div",{className:Z()(n.info,r)},l().createElement("div",{className:n.infoTitle},t),l().createElement("div",{className:n.infoContent},a))};function zt(){return zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},zt.apply(this,arguments)}const Bt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",zt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg1279746712a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"15",height:"8"},l().createElement("path",{d:"M11.667 4H5C2.793 4 1 5.793 1 8s1.793 4 4 4h6.667c2.206 0 4-1.793 4-4s-1.794-4-4-4zm0 6.667H5a2.666 2.666 0 110-5.334h6.667a2.666 2.666 0 110 5.334zm0-4.667c-1.107 0-2 .893-2 2s.893 2 2 2c1.106 0 2-.893 2-2s-.894-2-2-2z",fill:"#000"})),l().createElement("g",{mask:"url(#svg1279746712a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Vt(){return Vt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Vt.apply(this,arguments)}const Ht=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Vt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg208732808a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"14"},l().createElement("path",{d:"M7.992 1.333A6.663 6.663 0 001.332 8c0 3.68 2.98 6.667 6.66 6.667A6.67 6.67 0 0014.665 8a6.67 6.67 0 00-6.673-6.667zm.007 12A5.332 5.332 0 012.665 8 5.332 5.332 0 018 2.667 5.332 5.332 0 0113.332 8a5.332 5.332 0 01-5.333 5.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z",fill:"#000"})),l().createElement("g",{mask:"url(#svg208732808a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Zt(){return Zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Zt.apply(this,arguments)}const Wt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Zt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg1638934380a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},l().createElement("path",{d:"M5.948 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2zM7.947 12v-1.1h1.1V12h-1.1zM13.65 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2z",fill:"#000"})),l().createElement("g",{mask:"url(#svg1638934380a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Yt(){return Yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Yt.apply(this,arguments)}const Gt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Yt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("path",{d:"M2.11 12v-.825h1.331V5.169L2 5.741v-.89L3.331 4.3h1.045v6.875h1.089V12H2.11zM5.968 11.032l1.65-2.508c.242-.367.403-.62.484-.759.08-.147.136-.29.165-.429.03-.14.044-.341.044-.605v-.77a.778.778 0 00-.253-.583c-.169-.161-.389-.242-.66-.242h-1.21V4.3h1.1c.638 0 1.126.158 1.463.473.345.308.517.774.517 1.397v.462c0 .367-.018.645-.055.836-.037.19-.103.37-.198.539-.088.169-.264.455-.528.858l-1.518 2.299h2.519V12h-3.52v-.968zM13.544 10.262c0 .609-.147 1.052-.44 1.331-.293.271-.77.407-1.43.407h-1.298v-.825h1.397c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.239c0-.242-.073-.433-.22-.572-.147-.147-.341-.22-.583-.22h-1.067v-.825h.957a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.902c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187h-1.298V4.3h1.166c.623 0 1.093.14 1.408.418.323.271.484.704.484 1.298v.693c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.924z",fill:"#000",fillOpacity:".541"}))};function qt(){return qt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},qt.apply(this,arguments)}const $t=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",qt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg924767730a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},l().createElement("path",{d:"M5.463 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H2.03v-.836h1.562c.271 0 .491-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.059-.396-.176-.528-.11-.14-.279-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473h1.463v.836H3.714c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM9.136 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H5.704v-.836h1.562c.27 0 .49-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.06-.396-.176-.528-.11-.14-.28-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473H8.96v.836H7.387c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM12.255 12l-1.683-6.886V12H9.68V4.3h1.562l1.694 6.886V4.3h.89V12h-1.572z",fill:"#000"})),l().createElement("g",{mask:"url(#svg924767730a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Qt(){return Qt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Qt.apply(this,arguments)}const Kt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Qt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg3578961193a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},l().createElement("path",{d:"M5.345 12l-.418-1.947H2.782L2.353 12h-.979l1.86-7.7h1.264L6.324 12h-.979zM3.85 5.026l-.89 4.202H4.75L3.85 5.026zM10.494 10.262c0 .63-.146 1.078-.44 1.342-.286.264-.763.396-1.43.396h-2.09V4.3h1.958c.653 0 1.13.132 1.43.396.308.264.462.704.462 1.32v.627c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.99zM9.427 5.917c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187H7.491v2.431h1.133a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.836zm.11 3.256c0-.242-.073-.433-.22-.572-.147-.147-.34-.22-.583-.22H7.491v2.794h1.232c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.173zM13.119 12c-.638 0-1.13-.154-1.474-.462-.337-.315-.506-.785-.506-1.408V6.17c0-.623.169-1.089.506-1.397.345-.315.836-.473 1.474-.473h1.342v.836h-1.452c-.271 0-.491.08-.66.242a.778.778 0 00-.253.583v4.378c0 .227.084.422.253.583.169.161.389.242.66.242h1.452V12h-1.342z",fill:"#000"})),l().createElement("g",{mask:"url(#svg3578961193a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))},Xt=(0,E.Z)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}}}),Jt={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},ea=e=>{let{type:t,size:a=Jt.SMALL}=e;const r=Xt(a);switch(z(t)){case A.STRING:return l().createElement(Kt,{className:r.icon});case A.FLOAT:return l().createElement(Wt,{className:r.icon});case A.INTEGER:return l().createElement(Gt,{className:r.icon});case A.BOOLEAN:return l().createElement(Bt,{className:r.icon});case A.DATE:return l().createElement(Ht,{className:r.icon});case A.SSN:return l().createElement($t,{className:r.icon});default:return l().createElement(Kt,{className:r.icon})}},ta=e=>{let{detailedAttributeType:t}=e;const a=Ft(),n=(e=>{const[t,a]=(0,r.useState)(null),l=(0,r.useContext)(Ve),n=(0,g._)();return(0,r.useEffect)((()=>{if(l.uri&&e){const t={filter:c.j5E.EXISTS,fieldName:e},r={filter:c.j5E.EQUALS,fieldName:"type",values:[l.uri]};a(null),n((0,c.j_Q)([t,r])).then((e=>{let{total:t}=e;return a(t)})).catch(console.error)}}),[l.uri,e]),t})(t.fieldName),i=null===n?l().createElement(Xe.Z,{size:"24",className:a.totalLoading}):(0,c.k7L)(n);return l().createElement("div",null,l().createElement("div",{className:a.header},l().createElement(Ut,{title:d().text("Profiles"),className:a.attributeTypeSummary},l().createElement(Je.ZP,{title:l().createElement(ee,{data:[{label:d().text("Entities with exists attribute"),value:d().number(n)}]})},l().createElement("div",null,i))),l().createElement(Ut,{title:d().text("Data type"),className:a.attributeTypeSummary},(o=t.type,l().createElement(l().Fragment,null,l().createElement("div",{className:a.attributeTypeIconWrapper},l().createElement(ea,{type:o,size:Jt.NORMAL})),d().text(o))))),l().createElement(kt,{details:t.details}));var o},aa=e=>{let{entityType:t}=e;const{data:a,state:i}=(0,r.useContext)(Ue),o=((e,t)=>{const a=t.attributes||[],r=t=>t.filter(c.Uty).filter((0,s.either)((0,s.prop)("label"),(0,s.prop)("name"))).reduce(((t,a)=>{const l=(0,c.EUG)(e,a);return null!=l&&l.length?[...t,a,...r(l)]:[...t,a]}),[]);return r(a).length})((0,n.useSelector)(h.ZP.selectors.getMetadata),t),{activeProfiles:u=0,inactiveProfiles:p=0,sourceSystems:f=0}=(null==a?void 0:a.summary)||{},m=e=>i===y.o.LOADING?l().createElement(Xe.Z,{size:"24",className:g.totalLoading}):d().number(e),g=Ft();return l().createElement("div",{className:g.header},l().createElement(Ut,{title:d().text("Active profiles"),className:g.entitySummary},m(u)),l().createElement(Ut,{title:d().text("Inactive profiles"),className:g.entitySummary},m(p)),l().createElement(Ut,{title:d().text("Attributes"),className:g.entitySummary},d().number(o)),l().createElement(Ut,{title:d().text("Source systems"),className:g.entitySummary},m(f)))},ra=l().createContext(null);ra.displayName="DataLevelContext";const la=(0,E.Z)({content:{padding:"0 16px",marginTop:"4px"}}),na=e=>{let{config:t}=e;const a=la(),n=(0,r.useContext)(Be),i=(0,r.useContext)(ra),o=(0,r.useContext)(Ve),s=i===C.ATTRIBUTE_TYPE,u=s?(0,c.idV)(n.label):(0,c.idV)(o.label);return l().createElement(Ie,{config:t},l().createElement(ue,{title:u}),l().createElement(fe.Z,{className:a.content},s?l().createElement(ta,{detailedAttributeType:n}):l().createElement(aa,{entityType:o})))};var ia=a(65298);const oa=(0,E.Z)({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}});function ca(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){sa(e,t,a[t])}))}return e}function sa(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const ua=m.B9.ERROR,da=e=>{let{config:t,errorData:a,titleChildren:r,infoTooltipTitle:n,onRefresh:i}=e;const{id:o,title:c}=t,s=oa();return l().createElement(ia.Z,{id:o},l().createElement(ue,{title:c,infoTooltipTitle:n},r),l().createElement(fe.Z,{className:s.viewContent},l().createElement(de.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},l().createElement(Ee,{errorData:ca({Icon:ua},a),onRefresh:i,variant:ge.SMALL}))))},pa=e=>{let{keyword:t,entityTypeUri:a}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[I(a)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}},fa=e=>{let{fieldName:t,value:a,entityTypeUri:r}=e;return pa({keyword:`${c.j5E.EQUALS}(${t}, ${a})`,entityTypeUri:r})};function ma(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const ha=e=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:t,group:t,value:a}})),j),ya=e=>{let{sortDirection:t,sortField:a}=e;return(e,r)=>"asc"===t?e[a]>r[a]?1:-1:e[a]<r[a]?1:-1},ga=(0,s.curry)(((e,t)=>t.filter((t=>e.find((0,s.propEq)("uri",t.group)))).map((t=>{const a=e.find((0,s.propEq)("uri",t.group)).name;return function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){ma(e,t,a[t])}))}return e}({},t,{label:a,group:a})})))),va=ha("frequency"),ba=ha("pattern"),Ea=e=>[{filter:c.j5E.EQUALS,values:[[e]],fieldName:"analyticsAttributes.AttributeValidations.FunctionName"}],xa=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return fa({fieldName:`${a.fieldName}`,value:t,entityTypeUri:r})})),Oa=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:c.j5E.ON,values:[t],fieldName:a}]})),wa=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:a}]})),Na=e=>{let{detailedAttributeType:t,entityTypeUri:a}=e;return(0,s.cond)([[c.j5n,(0,s.always)(xa)],[c.Lt4,(0,s.always)(U(Oa))],[s.identity,(0,s.always)(U(wa))]])(t.type)({detailedAttributeType:t,entityTypeUri:a,dvfs:[]})},Ta=U((()=>Ea)),Sa=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return fa({fieldName:`${a.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:r})}));var Ra=a(79573),Ia=a(45108),Aa=a(92332),Ca=a(83088);const Da=(0,s.pipe)((0,s.split)("|"),(e=>{let[t,a]=e;return{label:t,percent:a}})),La={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"},Pa=(0,E.Z)((e=>({colorBarContainer:{position:"relative",width:"100%",marginLeft:"16px",padding:"5px 0 6px",height:"100%",boxSizing:"border-box","&>span":{display:"block"},"&>span>div":{opacity:1,zIndex:1}},numberWhithPercent:{fontSize:"13px",lineHeight:"15px",fontWeight:"normal",color:e.palette.text.primary,flexShrink:0,width:"90px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},numberContainer:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 10px 0 16px",height:"100%"},bar:{borderRadius:"0 !important",minHeight:"16px !important",position:"initial !important","&:hover":{"&:after":{background:"rgba(0, 0, 0, 0.1)"}},"&:after":{content:'""',position:"absolute",top:"2px",left:"-3px",right:"-2px",bottom:"3px",transition:"background 0.3s"}},tooltipTitle:{color:"rgba(255, 255, 255, 0.6)"},headCell:{height:"100%",lineHeight:"47px","&>div":{padding:"0 10px 0 16px",display:"flex"},"&>div>span":{width:"100%",flexGrow:1,justifyContent:e=>e?"flex-start":"flex-end",flexDirection:e=>e?"row":"row-reverse",marginLeft:e=>e&&"auto!important"}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"47px",whiteSpace:"nowrap",overflow:"hidden","&:after":La},labelPercantageWrapper:{display:"flex",flexGrow:1},labelWrapper:{minWidth:"90px",position:"relative"},percentsWrapper:{marginLeft:"11px",display:"flex",width:"100%"},percentLabel:{color:e.palette.text.secondary,fontSize:"12px","&:first-child":{flexGrow:1}},attribute:{color:e.palette.text.primary,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",whiteSpace:"pre",overflow:"hidden",display:"flex",alignItems:"center",height:"100%",padding:"0 16px","&:after":La},tooltipValue:{whiteSpace:"pre-wrap"}})));function _a(){return _a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},_a.apply(this,arguments)}function ja(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){Ma(e,t,a[t])}))}return e}function Ma(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const ka=e=>{let{className:t,headCellData:a,headIndex:r}=e,n=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["className","headCellData","headIndex"]);const i=Pa(!r),{label:o,percent:c}=Da(a.label),s=!!c,u=l().createElement(Ca.C,{value:o},l().createElement("div",{className:i.headLabel},o));return l().createElement("div",{className:Z()(i.headCell,t)},l().createElement(Aa.default,_a({},n,{headCellData:ja({},a,{label:s?l().createElement("div",{className:i.labelPercantageWrapper},l().createElement("div",{className:i.labelWrapper},u),l().createElement("div",{className:i.percentsWrapper},l().createElement("span",{className:i.percentLabel},"0%"),l().createElement("span",{className:i.percentLabel},c,"%"))):u})})))};var Fa=a(59383),Ua=a(30488);const za=(0,Ua.Z)(((e,t)=>{let{onItemClick:a}=e,{rowValue:{group:r}}=t;return{onClick:a&&(()=>{a(r)})}}))((e=>{let{value:t="",columnData:a,rowValue:r,onClick:n}=e;const{attributeCellClassName:i,LabelRenderer:o}=a,s=Pa(),u=(0,Fa.d)(n),d=l().createElement("div",{className:s.tooltipValue},t),p=!!o;return l().createElement(Ca.C,{value:d},l().createElement("div",{className:Z()(s.attribute,u,i),onClick:n},p?l().createElement(o,{chartData:r}):c.P6Y.strings.removeLineBreaks(t)))}));var Ba=a(89902);const Va=(0,S.Z)((e=>{let{value:t,maxValue:a,className:r}=e;return l().createElement(Ba.Z,{width:t,maxWidth:a,className:r})})),Ha=(0,Ua.Z)(((e,t)=>{let{onItemClick:a,valueHeader:r,labelHeader:l}=e,{rowValue:{group:n}}=t;return{onClick:a&&(()=>{a(n)}),valueHeader:r,labelHeader:l}}))((e=>{let{value:t,columnData:{maxValue:a},rowValue:{percent:r,label:n},labelHeader:i,valueHeader:o,onClick:u}=e;const p=Pa(),f=(0,Fa.d)(u),m=l().createElement("span",{className:p.tooltipValue},n),h=0===t?"0":`${(0,c.k7L)(t,999)} ${M(r)}`,y=l().createElement(ee,{data:[{label:i,value:m},{label:o,value:`${d().number(t)} ${M(r)}`}]});return l().createElement("div",{className:Z()(p.numberContainer,f),onClick:u},l().createElement(b.Z,{className:p.numberWhithPercent},h),!(0,s.isNil)(a)&&l().createElement("div",{className:p.colorBarContainer},l().createElement(Va,{value:t,maxValue:a,tooltipTitle:y,className:p.bar,showForDisabled:!0})))})),Za=(0,E.Z)({tableContainer:e=>{let{width:t,height:a}=e;return{height:a,width:t,display:"flex",flexDirection:"column"}},cellBorder:{borderLeft:"none",borderRight:"none!important"}});function Wa(){return Wa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Wa.apply(this,arguments)}const Ya=e=>{let{width:t,height:a,data:n,options:i={},basicTableRef:o,onItemClick:c,labelCellClassName:s}=e,u=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["width","height","data","options","basicTableRef","onItemClick","labelCellClassName"]);const p=Za({width:t,height:a}),{headers:[f,m]=[],showCountLabels:h=!1,showValues:y=!0,sortable:g=!1,LabelRenderer:v}=i,b=(0,r.useMemo)((()=>({cellBorder:p.cellBorder})),[p]),E=(0,r.useMemo)((()=>Math.max(...n.map((e=>e.value)))),[n]),x=(0,r.useMemo)((()=>{const e=V(n),t=m||d().text("No of Profiles");return e?t.concat(`|${e}`):t}),[n,m]),O=h?`${f} (${n.length})`:f,w=(0,r.useMemo)((()=>[{id:"label",label:O,resizable:!1,headCellRenderer:ka,attributeCellClassName:s,rowCellValueRenderer:za,initialWidth:.4*t,sortable:g,LabelRenderer:v},...y?[{id:"value",label:x,resizable:!1,headCellRenderer:ka,rowCellValueRenderer:Ha,maxValue:E,initialWidth:.6*t,sortable:g}]:[]]),[x,E,t,f,y]),N=(0,r.useMemo)((()=>({onItemClick:c,labelHeader:f,valueHeader:m})),[c,f,m]);return l().createElement("div",{className:p.tableContainer},l().createElement(Ia.Z,Wa({columnsData:w,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:b,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:N},u)))},Ga=(0,E.Z)((()=>({layoutItemContent:{padding:"0 0 10px"}}))),qa=(0,R.Z)((e=>{let{config:t,data:a,title:n,headers:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,titleChildren:u,state:d,onRefresh:p,labelCellClassName:f,showCountLabels:m,LabelRenderer:h}=e;const y=Ga(),[g,v]=(0,r.useState)("desc"),[b,E]=(0,r.useState)("value"),x=(0,r.useCallback)(((e,t)=>c?c({sortDirection:g,sortField:b})(e,t):ya({sortDirection:g,sortField:b})(e,t)),[g,b]),O=e=>{v((()=>b===e?(0,Ra.Dh)(g):g)),E(e)},w=(0,r.useMemo)((()=>[...a.sort(x)]),[x,a]);return l().createElement("div",null,l().createElement(Ie,{config:t},l().createElement(ue,{title:n,infoTooltipTitle:o},u),l().createElement(Te,{className:y.layoutItemContent,data:w,loadingState:d,onRefresh:p},(e=>{let{data:t,width:a=0,height:r=0}=e;return l().createElement(Ya,{data:t,width:a,height:r,options:{headers:i,sortable:!!c,showCountLabels:m,LabelRenderer:h},sorting:{field:b,order:g},onSort:O,onItemClick:s,labelCellClassName:f})}))))})),$a=l().createContext(null);$a.displayName="DVFContext";var Qa=a(86689);function Ka(){return Ka=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Ka.apply(this,arguments)}const Xa=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Ka({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg1830866123a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg1830866123a)"},l().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},l().createElement("path",{d:"M12.375 18.688a7 7 0 017-7h75.742a7 7 0 017 7v49.02a7 7 0 01-7 7H19.375a7 7 0 01-7-7v-49.02z"}),l().createElement("path",{opacity:".4",d:"M16.844 22.813a7 7 0 017-7h75.741a7 7 0 017 7v49.02a7 7 0 01-7 7H23.844a7 7 0 01-7-7v-49.02z"})),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"29.318",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 31.381a3.562 3.562 0 013.552-3.563 3.562 3.562 0 013.552 3.563 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 29.052c0-.726.588-1.313 1.313-1.313h23.983a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 33.553c0-.518.42-.938.938-.938h43.37a.938.938 0 010 1.876h-43.37a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 36.554c0-.31.252-.563.563-.563h13.993a.563.563 0 110 1.126H31.26a.563.563 0 01-.563-.563z",fill:"#B1AABD"}),l().createElement("rect",{opacity:".5",x:"19.854",y:"17.689",width:"29.914",height:"4.126",rx:"2.063",fill:"#645F6D"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"43.573",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("rect",{x:"19.854",y:"42.072",width:"7.105",height:"7.127",rx:"3.552",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 43.306c0-.725.588-1.313 1.313-1.313h28.41a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 47.808c0-.518.42-.938.938-.938h48.23a.938.938 0 110 1.876h-48.23a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 50.809c0-.31.252-.563.563-.563h38.884a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"57.828",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 59.891a3.562 3.562 0 013.552-3.564 3.562 3.562 0 013.552 3.564 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 57.561c0-.725.588-1.313 1.313-1.313h38.132a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 62.063c0-.518.42-.938.938-.938h31.778a.938.938 0 110 1.875H31.635a.938.938 0 01-.938-.937z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 65.064c0-.311.252-.563.563-.563h13.993a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 3.094h88V88H0V3.094z",fill:"url(#paint0_linear_3200_4362)"}),l().createElement("path",{d:"M79.893 76.85H21.308v14.184h58.585V76.85z",fill:"#F5C056"}),l().createElement("path",{d:"M79.893 76.85H74.6v14.184h5.293V76.85z",fill:"#E99B00"}),l().createElement("path",{d:"M48.73 76.893H26.283v14.184H48.73V76.893z",fill:"#FFEA5A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.894 57.829c-1.687-4.26 13.113-4.043 11.413 0-1.353 3.218-1.353 7.53 0 12.934H44.894C46 64.93 46 60.618 44.894 57.83z",fill:"#FFD264"}),l().createElement("path",{d:"M61.253 70.383H39.949v2.663h21.304v-2.663z",fill:"#FFD264"}),l().createElement("path",{d:"M47.938 70.383h-4.185v2.663h4.185v-2.663z",fill:"#FFEA5A"}),l().createElement("path",{d:"M64.676 73.046h-28.15v3.804h28.15v-3.804z",fill:"#795D1A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.764 16.363v5.325H15.602v.143c0 13.634 8.992 24.714 20.162 24.961v2.994c-14-.986-25.108-15.488-25.108-33.233v-.19h25.108z",fill:"#FFCB64"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.677 16.363v5.325h20.161v.143c0 13.634-8.991 24.714-20.161 24.961v2.994c13.999-.986 25.107-15.488 25.107-33.233v-.19H64.677z",fill:"#ED985C"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.307 57.829c-1.353 3.218-1.353 7.53 0 12.934h-5.706V54.715c3.278.026 6.556 1.091 5.706 3.114z",fill:"#F4B046"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.676 73.046v3.804H50.601v-3.804h14.075z",fill:"#4F350B"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.253 70.383v2.663H50.6v-2.663h10.652z",fill:"#F4B046"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.933 10.656a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-11.43 0-23.311-20.1-24.449-45.65h2.194l-.38-3.044h-1.898a91.212 91.212 0 01.01-2.663h49.045z",fill:"#FFCE66"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.937 10.656c.006.569.01 1.14.01 1.712v.952h-.044l-.241 3.043h.294c.126 24.948 1.435 39.335 3.123 45.65-8.89-3.2-15.661-20.403-16.308-45.65h1.465l-.241-3.044h-1.271a158.252 158.252 0 01.006-2.663h13.207z",fill:"#FFEA5A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.284 16.363h-3.91l.422-3.044h3.581a81.301 81.301 0 00-.01-2.663h4.566a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-.414 0-.828-.026-1.241-.078 11.92-1.382 19.899-20.946 21.114-45.572zm.083-5.707h-44.48 44.48z",fill:"#F4B046"}),l().createElement("path",{opacity:".519",d:"M72.665 13.32h-44.51v3.043h44.51v-3.044z",fill:"#F4B046"}),l().createElement("path",{d:"M48.318 73.046h-5.706v3.804h5.706v-3.804z",fill:"#96691F"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M65.526 10.656h4.235L58.973 35.935h-4.235l10.788-25.279z",fill:"url(#paint1_linear_3200_4362)"}),l().createElement("g",{filter:"url(#filter0_d_3200_4362)"},l().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#000"})),l().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#DD612C"}),l().createElement("path",{d:"M56.909 54.302a8.681 8.681 0 100-17.362 8.681 8.681 0 000 17.362z",fill:"#FFCE66"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.909 36.94a8.685 8.685 0 018.347 6.291c-5.74.351-10.312 5.02-10.51 10.8a8.699 8.699 0 01-6.008-5.47A11.212 11.212 0 0054.9 37.174a8.684 8.684 0 012.008-.234z",fill:"#FFF18C"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.202 10.656l10.862 25.341H54.83L43.646 10.705l4.556-.049z",fill:"#F83D3D"})),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3200_4362",x1:"0",y1:"3.094",x2:"0",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3200_4362",x1:"62.25",y1:"10.656",x2:"62.25",y2:"35.935",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#B93131"}),l().createElement("stop",{offset:"1",stopColor:"#831616"})),l().createElement("filter",{id:"filter0_d_3200_4362",x:"40.057",y:"30.77",width:"33.702",height:"33.703",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l().createElement("feOffset",{dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"3"}),l().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0335613 0 0 0 0 0.334579 0 0 0 0 0.412601 0 0 0 0.5 0"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3200_4362"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3200_4362",result:"shape"}))))};function Ja(){return Ja=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Ja.apply(this,arguments)}const er=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Ja({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg355575424a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg355575424a)"},l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_3488_11934)"}),l().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M64.543 19.547L84.7 39.704V90.88H32.1L17.875 77.372V19.547h46.668z",fill:"url(#paint1_linear_3488_11934)"}),l().createElement("path",{opacity:".06",fillRule:"evenodd",clipRule:"evenodd",d:"M16.156 19.938h69.438A2.406 2.406 0 0188 22.343v53.968a2.406 2.406 0 01-2.406 2.407H16.156a2.406 2.406 0 01-2.406-2.406v-53.97a2.406 2.406 0 012.406-2.405z",fill:"#000"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 19.25H86.28c.95 0 1.719.77 1.719 1.719v53.968c0 .95-.77 1.72-1.719 1.72H17.187c-.949 0-1.718-.77-1.718-1.72V20.97c0-.95.77-1.719 1.719-1.719z",fill:"#fff"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 24.968c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 29.093c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 56.031c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 60.156c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 66.344c0-.57.462-1.031 1.031-1.031h28.059a1.031 1.031 0 010 2.062H37.254c-.57 0-1.031-.462-1.031-1.031z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 70.469c0-.57.462-1.031 1.031-1.031h25.508a1.031 1.031 0 010 2.062H37.125c-.57 0-1.031-.462-1.031-1.031z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 35.406c0-.57.461-1.031 1.03-1.031h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 39.531c0-.57.461-1.031 1.03-1.031H70.54a1.031 1.031 0 010 2.063H48.47c-.57 0-1.032-.462-1.032-1.032z",fill:"#979797"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 45.719c0-.57.461-1.032 1.03-1.032h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.031z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 49.844c0-.57.461-1.032 1.03-1.032h25.509a1.031 1.031 0 010 2.063H48.469c-.57 0-1.032-.462-1.032-1.031z",fill:"#979797"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M31.802 37.125v-2.75h-.688V48.251h3.843v-.688h-3.155v-9.75h3.155v-.688h-3.155z",fill:"#2B98F0"}),l().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),l().createElement("path",{opacity:".6",fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 7.563h63.937c1.14 0 2.063.923 2.063 2.062v6.188c0 1.139-.924 2.062-2.063 2.062H17.187a2.062 2.062 0 01-2.062-2.063V9.625c0-1.14.923-2.063 2.063-2.063z",fill:"#fff"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M19.938 12.719c0-1.14.923-2.063 2.062-2.063h24.063a2.063 2.063 0 010 4.125H22a2.062 2.062 0 01-2.063-2.062zM50.875 12.719c0-1.14.923-2.063 2.063-2.063h3.437a2.063 2.063 0 010 4.125h-3.438a2.062 2.062 0 01-2.062-2.062z",fill:"#979797"}),l().createElement("path",{opacity:".2",d:"M37.687 66.48l8.942 8.309v.958l19.925 19.702 31.064-.552 7.006-25.47-34.487-34.144-11.2.567c-3.238-1.86-5.34-3.02-6.306-3.48-.54-.258-.383 5.565-2.755 7.725-1.243 1.133-3.462 4.104-6.657 8.914l-5.532 17.47z",fill:"url(#paint2_linear_3488_11934)"}),l().createElement("g",{filter:"url(#filter0_d_3488_11934)",fillRule:"evenodd",clipRule:"evenodd"},l().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312a18.719 18.719 0 014.236 4.554l4.28-.699a23.425 23.425 0 012.392 6.47l-3.639 2.443c.262 2.058.2 4.18-.216 6.285l3.466 2.572a24.254 24.254 0 01-2.838 6.375l-4.231-.855a19.61 19.61 0 01-4.526 4.366l.62 4.34a23.426 23.426 0 01-6.409 2.551l-2.345-3.649a18.72 18.72 0 01-6.219-.1l-2.593 3.564a22.7 22.7 0 01-6.224-2.757l.912-4.304a18.715 18.715 0 01-4.281-4.567l-4.285.7a23.424 23.424 0 01-2.4-6.438l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14zM60.075 49.74c-2.804-1.248-6.112.064-7.388 2.93-1.276 2.867-.038 6.203 2.766 7.452 2.804 1.248 6.112-.064 7.388-2.93 1.276-2.867.038-6.203-2.766-7.452z",fill:"#6B93AC"}),l().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312c.779.597 1.503 1.25 2.168 1.95l-10.07 9.392a5.444 5.444 0 00-1.491-.983c-2.804-1.248-6.112.064-7.388 2.93a5.7 5.7 0 00.626 5.749l-10.071 9.39c-.502-.585-.965-1.2-1.39-1.84l-4.284.7a23.424 23.424 0 01-2.4-6.437l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14z",fill:"#7CA6BF"}),l().createElement("path",{d:"M62.886 42.644c6.409 2.854 9.24 10.479 6.322 17.03-2.917 6.553-10.478 9.552-16.887 6.698-6.409-2.853-9.24-10.478-6.322-17.03 2.917-6.553 10.478-9.551 16.887-6.698zm-1.32 2.966c-4.808-2.14-10.478.109-12.666 5.023-2.188 4.914-.065 10.633 4.742 12.773 4.806 2.14 10.477-.108 12.665-5.023 2.188-4.914.065-10.633-4.742-12.773z",fill:"#AAC4D5"}),l().createElement("path",{d:"M62.886 42.644a12.424 12.424 0 014.22 3.075l-2.366 2.207a9.317 9.317 0 00-3.175-2.316c-4.807-2.14-10.477.109-12.665 5.023-1.635 3.673-.863 7.795 1.638 10.536l-2.367 2.208c-3.325-3.656-4.35-9.145-2.172-14.035 2.917-6.553 10.478-9.551 16.887-6.698z",fill:"#CBDDE9"}))),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3488_11934",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3488_11934",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopOpacity:".01"}),l().createElement("stop",{offset:"1"})),l().createElement("linearGradient",{id:"paint2_linear_3488_11934",x1:"86.975",y1:"77.519",x2:"49.809",y2:"46.968",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#90A4AE",stopOpacity:"0"}),l().createElement("stop",{offset:"1",stopOpacity:".75"})),l().createElement("filter",{id:"filter0_d_3488_11934",x:"32.168",y:"30.067",width:"53.209",height:"53.716",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l().createElement("feOffset",{dx:"1",dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"2"}),l().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3488_11934"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3488_11934",result:"shape"}))))},tr=(0,E.Z)((e=>({title:{whiteSpace:"nowrap",height:"24px",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"},titleCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px",overflow:"hidden",lineHeight:"24px",textOverflow:"ellipsis",fontSize:"14px"},container:{height:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",padding:0,"&>svg":{paddingTop:0,height:"88px",width:"88px",marginBottom:"14px"}},noDataMessage:{fontSize:"12px",textAlign:"center",whiteSpace:"pre-wrap"},noDataTitle:{fontSize:"13px",textAlign:"center",color:"rgba(0,0,0,0.87)",whiteSpace:"pre-wrap"},viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}})));let ar;!function(e){e.DVF_NOT_CONFIGURE="dvfNotConfigured",e.DATA_VALID="dataValid",e.PERMISSION_DENIED="permissionDenied"}(ar||(ar={}));const rr=e=>{let{chartType:t,title:a,infoTooltipTitle:r,titleChildren:n,dvfConfigLink:i,config:o}=e;const c=tr();let s,u,p;switch(t){case ar.DVF_NOT_CONFIGURE:s=l().createElement(er,null),u=d().text("If we spot any validation issues, we’ll display them here."),p=l().createElement(l().Fragment,null,l().createElement(Qa.Z,{href:i,target:"_blank",component:i?"a":"span",color:i?"primary":"inherit",underline:i?"hover":"none","data-reltio-id":"reltio-dq-dashboard-define-dvf-link"},d().text("Define some data validation functions"))," ",d().text("for this attribute (or ask your Tenant Admin)."));break;case ar.DATA_VALID:s=l().createElement(Xa,null),u=d().text("We didn’t spot any validation issues for this attribute type.\nYou can kick back and enjoy a cold one."),p=d().text("Nice one!");break;case ar.PERMISSION_DENIED:s=l().createElement(m.B9.ERROR,null),u=d().text("Please contact your Tenant Admin to change permissions"),p=d().text("You don’t currently have permission to view this page")}return l().createElement(Ie,{config:o},l().createElement(ue,{title:a,infoTooltipTitle:r},n),l().createElement(fe.Z,{className:c.viewContent},l().createElement("div",{className:c.container},s,p&&l().createElement(b.Z,{className:c.noDataTitle},p),u&&l().createElement(b.Z,{className:c.noDataMessage},u))))},lr=e=>{var t;const a=tr(),{config:n}=e,{dvfs:i,dvfConfigLink:o}=(0,r.useContext)($a),{data:u,state:p,reload:f,errorCode:m}=i,h=(0,r.useContext)(Be).uri,E=(0,r.useContext)(Ve),x=E.uri,O=((e,t)=>(e||[]).filter((0,s.propEq)("attribute",t)))(u,h).filter((e=>e.status===c.lVm.ACTIVE)),{data:w,state:N,reload:T}=ze((e=>(0,s.pipe)(ha("dataValidationFunctions"),ga(e)))(O)),S=(0,r.useMemo)((()=>[E]),[E]),R=(0,r.useMemo)((()=>O.map((e=>e.uri))),[O]),I=(e=>{let{entityTypeUri:t,dvfUris:a}=e;const[l,n]=(0,r.useState)(null),i=(0,g._)();return(0,r.useEffect)((()=>{const e=[{fieldName:"type",filter:c.j5E.EQUALS,values:[t]},{fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",filter:c.j5E.EQUALS,values:a}];i((0,c.j_Q)(e)).then((e=>{let{total:t}=e;return n(t)})).catch((()=>n(null)))}),[t,a]),l})({entityTypeUri:x,dvfUris:R}),A=null===(t=v(S))||void 0===t?void 0:t[(0,c.nIW)(x)],C=He(Ta),D=(0,r.useMemo)((()=>p===y.o.LOADED&&N===y.o.LOADED?y.o.LOADED:p===y.o.ERROR||N===y.o.ERROR?y.o.ERROR:y.o.LOADING),[N,p]),L=(0,r.useMemo)((()=>()=>{p===y.o.ERROR&&f(),N===y.o.ERROR&&T()}),[N,p,f,T]),P=m===c.Xt7.ACCESS_DENIED,_=m===c.Xt7.DVF_NOT_CONFIGURED||0===(null==O?void 0:O.length)&&!P,j=D===y.o.LOADED&&(null==O?void 0:O.length)>0&&0===w.length,M=!(D===y.o.ERROR&&m!==c.Xt7.DVF_NOT_CONFIGURED)&&!_&&D!==y.o.LOADING&&l().createElement(Ca.C,{value:n.title},l().createElement(b.Z,{className:a.titleCount},(e=>{let{isDataValid:t,totalProfiles:a,invalidProfiles:r}=e;return t?d().text("0 profiles"):(0,s.isNil)(r)?"":`${(0,c.k7L)(r)} (${Math.round(r/a*100)}%) ${1!==r?d().text("profiles"):d().text("profile")}`})({isDataValid:j,totalProfiles:A,invalidProfiles:I}))),k=[d().text("Validation function"),d().text("Profiles")],F=l().createElement(ee,{title:d().text("Profiles with invalid data"),data:[{value:d().text("Shows the number of profiles that violate active validation functions")}],DataRenderer:Ae});return _||j||P?l().createElement(rr,{config:n,chartType:_?ar.DVF_NOT_CONFIGURE:j?ar.DATA_VALID:P?ar.PERMISSION_DENIED:void 0,title:d().text(n.title),infoTooltipTitle:F,titleChildren:M,dvfConfigLink:o}):l().createElement(qa,{config:n,title:d().text(n.title),headers:k,data:w,onItemClick:C,titleChildren:M,state:D,onRefresh:L,customComparator:ya,infoTooltipTitle:F,showCountLabels:!0})},nr=(0,E.Z)((()=>({monoFontCell:{fontFamily:'"Roboto Mono", monospace'}}))),ir=e=>{let{config:t}=e;const a=nr(),{data:n,state:i,reload:o}=ze(va),s=(0,r.useContext)(Be).type,u=(0,c.Lt4)(s)?((e,t)=>{const a=t===c.oS0.TYPE_TIMESTAMP?"L LTS":"L";return e.map((e=>P({},e,{label:d().date(Number(e.label),a)})))})(n,s):n,p=He(Na),f=[d().text("Value"),d().text("Count")],m=l().createElement(ee,{title:d().text("Frequency analysis"),data:[{value:d().text("Shows the number of times each value occurs")}],DataRenderer:Ae});return l().createElement(qa,{config:t,data:u,headers:f,title:t.title,infoTooltipTitle:m,onItemClick:p,state:i,onRefresh:o,labelCellClassName:Z()({[a.monoFontCell]:(0,c.m6e)(s)})})};function or(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){cr(e,t,a[t])}))}return e}function cr(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var sr,ur;!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"}(sr||(sr={})),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"}(ur||(ur={}));const dr=e=>(0,s.pipe)((0,s.pathOr)({},[e,"data"]),Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:t,group:t,value:a}})),j);var pr;!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"}(pr||(pr={}));const fr=(e,t)=>{const a={lengthStatistics:{[pr.MEDIAN]:d().text("Median"),[pr.AVERAGE]:d().text("Average"),[pr.MININMUN]:d().text("Minimum"),[pr.MAXIMUM]:d().text("Maximum")},valueDistribution:{[pr.MEDIAN]:d().text("Median"),[pr.AVERAGE]:d().text("Average"),[pr.MININMUN]:d().text("Minimum"),[pr.MAXIMUM]:d().text("Maximum")},crosswalkAnalysis:{[pr.NUMBER_OF_SOURCES]:d().text("No. of source systems"),[pr.AVG_NUMBER_OF_PROFILES]:d().text("Avg no. of profiles"),[pr.MIN_NUMBER_OF_PROFILES]:d().text("Min no. of profiles"),[pr.MAX_NUMBER_OF_PROFILES]:d().text("Max no. of profiles")}};return(0,s.pathOr)(null,[t,e],a)},mr=e=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((t=>{let[a,r]=t;return{label:fr(a,e),value:r}})),(0,s.filter)((e=>{let{label:t}=e;return t})),j),hr=e=>t=>({chartData:dr(e)(t),infoPanelData:mr(e)(t)}),yr=(e,t)=>(0,c.Lt4)(t)?d().date(Number(e),"L"):d().number(e),gr=(0,s.curry)(((e,t)=>{const a=(0,s.pipe)((0,s.prop)("group"),(0,s.split)(" "),s.head,Number),r=t.chartData.sort((0,s.ascend)(a)).map(((a,r)=>{const[l,n=l]=a.group.split(" ").map(Number),i=r===t.chartData.length-1,o=l!==n?((e,t,a)=>at(t)?`[${e}${a?"]":")"}`:e)(`${yr(l,e)} - ${yr(n,e)}`,e,i):yr(l,e);return or({},a,{label:o,group:[l,n,i?"last":""].toString()})}));return{infoPanelData:t.infoPanelData.map((t=>or({},t,{value:(0,c.Lt4)(e)?d().date(Number(t.value),"L"):(0,c.k7L)(t.value,999),localizedValue:(0,c.Lt4)(e)?d().date(Number(t.value),"L"):t.localizedValue}))),chartData:r}})),vr=(0,s.pipe)(hr("lengthStatistics"),gr("")),br=(0,s.pipe)(hr("crosswalkAnalysis"),(0,s.applySpec)({chartData:(0,s.prop)("chartData"),infoPanelData:(0,s.pipe)((0,s.prop)("infoPanelData"),(0,s.map)((e=>(0,s.assoc)("value",(0,c.k7L)(e.value,999),e))))})),Er=hr("monthDistribution"),xr=hr("dayOfWeekDistribution"),Or=hr("dayOfMonthDistribution"),wr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return fa({fieldName:`${a.fieldName}.day_of_week`,value:sr[t.toLowerCase()],entityTypeUri:r})})),Nr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return fa({fieldName:`${a.fieldName}.month`,value:ur[t.toLowerCase()],entityTypeUri:r})})),Tr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return fa({fieldName:`${a.fieldName}.day_of_month`,value:t,entityTypeUri:r})})),Sr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;const[l,n]=t.split(",");return l===n?fa({fieldName:`${a.fieldName}.length`,value:l,entityTypeUri:r}):(e=>{let{fieldName:t,startRange:a,endRange:r,entityTypeUri:l}=e;return pa({keyword:`${c.j5E.IN_RANGE}(${t}, ${a}, ${r})`,entityTypeUri:l})})({fieldName:`${a.fieldName}.length`,startRange:l,endRange:n,entityTypeUri:r})})),Rr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return fa({fieldName:`${a.fieldName}.crosswalk_sources`,value:t,entityTypeUri:r})})),Ir=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;const[r,l]=t.split(",");return[{filter:c.j5E.AFTER,values:[r],fieldName:a},{filter:c.j5E.BEFORE,values:[l],fieldName:a}]})),Ar=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;const[r,l]=t.split(",");return[r===l?{filter:c.j5E.EQUALS,values:[[r]],fieldName:a}:{filter:c.j5E.IN_RANGE,values:[[r,l]],fieldName:a}]})),Cr=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;const[r,l,n]=t.split(","),i=r===l,o=i?[{filter:c.j5E.EQUALS,values:[[r]],fieldName:a}]:[{filter:c.j5E.IN_RANGE,values:[[r,l]],fieldName:a}];return!n&&!i&&o.push({filter:c.j5E.NOT_EQUALS,values:[[l]],fieldName:a}),o})),Dr=(0,s.cond)([[c.Lt4,(0,s.always)(U(Ir))],[at,(0,s.always)(U(Cr))],[s.identity,(0,s.always)(U(Ar))]]);function Lr(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){Pr(e,t,a[t])}))}return e}function Pr(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const _r=(0,E.Z)((e=>({tooltipWrapper:Lr({},e.tooltip,{padding:"4px 8px"})}))),jr=e=>{var t;let{payload:a,active:r,name:n}=e;const i=null==a||null===(t=a[0])||void 0===t?void 0:t.payload,o=null==i?void 0:i.value,c=null==i?void 0:i.label,s=n?`${n}`:"",u=_r();return r&&l().createElement("div",{className:u.tooltipWrapper},l().createElement(ee,{data:[{label:s,value:c},{label:d().text("No of profiles"),value:d().number(o)}]}))},Mr=(0,E.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"}}))),kr=e=>{let{data:t}=e;const a=Mr();return l().createElement("div",{className:a.chartInfoWrapper},t.map((e=>{let{label:t,value:r,localizedValue:n}=e;return l().createElement("div",{key:t,className:a.chartInfoItem},l().createElement("span",{className:a.chartInfoLabel},t,": "),r!==n?l().createElement(Je.ZP,{title:n},l().createElement("span",{className:a.chartInfoValue},r)):l().createElement("span",{className:a.chartInfoValue},r))})))},Fr=(0,E.Z)((()=>({labelWrapper:e=>{let{width:t}=e;return{overflow:"hidden",width:`${t}px`,marginTop:"-3px"}},xAxisLabel:{textAlign:"center",whiteSpace:"nowrap",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"}}}))),Ur=e=>{let{width:t,height:a,label:r,x:n,y:i}=e;const o=Fr({width:t}),c=n-t/2;return l().createElement("foreignObject",{x:c,y:i,width:t,height:a},l().createElement("div",{className:o.labelWrapper},l().createElement(Ca.C,{value:r},l().createElement("div",{className:o.xAxisLabel},r))))},zr=e=>{const{x:t,y:a,width:r,height:n,payload:i,visibleTicksCount:o}=e,{value:c}=i,s=r/o-4;return l().createElement(Ur,{width:s,height:n,label:c,x:t,y:a})};function Br(){return Br=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Br.apply(this,arguments)}const Vr=e=>{let{isClickable:t}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["isClickable"]);const r=Mr(),n=t?r.clickable:void 0;return l().createElement(T.Ae,Br({},a,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},Hr=e=>{const{value:t}=e;return t>0?l().createElement(T.Ae,e):null};function Zr(){return Zr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Zr.apply(this,arguments)}const Wr=e=>{let{data:t,config:a,xAxisLabel:r,yAxisLabel:n,barTooltipTitle:i,infoPanelData:o,infoTooltipTitle:s,onItemClick:u,options:d={},state:p,onRefresh:f}=e;const m=Mr(),{title:h}=a,{cartesianGrid:g,bar:v,xAxis:b,yAxis:E,labelForX:x,labelForY:O,barChart:w}=(e=>{let{showCategories:t=!1,interval:a,barCategoryGap:r}=e;return{barChart:{barCategoryGap:r||"10%"},bar:{dataKey:"value",fill:"#0072CE",minPointSize:3,maxBarSize:50},xAxis:{tick:t&&zr,tickLine:!1,interval:a||0,dataKey:"label"},yAxis:{tickCount:8,axisLine:!1,tickLine:!1,tick:{fill:"#000"},width:60,tickFormatter:e=>(0,c.k7L)(e,999)},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)"}}}})(d),N=u&&(e=>{let{activePayload:t}=e;return u(t[0].payload.group)}),S=N?m.clickable:void 0,R=p===y.o.LOADED&&o.length>0;return l().createElement(Ie,{config:a},l().createElement(ue,{title:h,infoTooltipTitle:s}),R&&l().createElement(kr,{data:o}),l().createElement(Te,{data:t,loadingState:p,onRefresh:f},(e=>{let{data:t,width:a=0,height:o=0}=e;return l().createElement("div",null,l().createElement(T.vz,Zr({width:a,height:o,data:t,onClick:N},w),l().createElement(T.q3,g),l().createElement(T.u,{content:l().createElement(jr,{name:i}),cursor:l().createElement(Vr,{isClickable:!!N})}),l().createElement(T.$Q,Zr({},v,{shape:l().createElement(Hr,{className:S})})),l().createElement(T.B2,E,l().createElement(T.__,Zr({},O,{value:n}))),l().createElement(T.Kc,b,l().createElement(T.__,Zr({},x,{value:r})))))})))},Yr=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=ze(vr),{chartData:i,infoPanelData:o}=a,c=He(Sr),s=l().createElement(ee,{title:d().text("Length statistics"),data:[{value:d().text("Measures the string length of values")}],DataRenderer:Ae});return l().createElement(Wr,{config:t,data:i,xAxisLabel:d().text("Length of values"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Length"),infoTooltipTitle:s,onItemClick:c,state:r,onRefresh:n})};var Gr=a(21210);const qr=(0,E.Z)({icon:{width:"20px",height:"20px",borderRadius:"4px",fontSize:"14px",marginRight:"8px"},text:e=>{let{color:t}=e;return{backgroundColor:t}}}),$r=e=>{let{chartData:t}=e;const{group:a,label:r}=t,n=qr({color:(0,c.uap)("random0",a)});return l().createElement(l().Fragment,null,l().createElement(Gr.Z,{sourceType:a,className:n.icon,classes:{textRoot:n.text}}),r)};function Qr(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){Kr(e,t,a[t])}))}return e}function Kr(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Xr=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=ze(br),{chartData:i}=a,o=He(Rr),c=[d().text("Source system"),d().text("Profiles")],s=l().createElement(ee,{title:d().text("Source system analysis"),data:[{value:d().text("Distribution of source systems contributing to profiles")}],DataRenderer:Ae});return l().createElement(qa,{config:Qr({},t),data:i,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:r,onRefresh:n,customComparator:ya,LabelRenderer:$r})},Jr=e=>{let{config:t}=e;const a=(0,r.useContext)(Be).type,{data:n,state:i,reload:o}=ze((e=>(0,s.pipe)(hr("valueDistribution"),gr(e)))(a)),{chartData:c,infoPanelData:u}=n,p=He(Dr(a));return l().createElement(Wr,{config:t,data:c,xAxisLabel:d().text("Value"),yAxisLabel:d().text("No. of profiles"),infoPanelData:u,barTooltipTitle:d().text("Value"),onItemClick:p,state:i,onRefresh:o})},el=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=ze(Er),{chartData:i,infoPanelData:o}=a,c=He(Nr);return l().createElement(Wr,{config:t,data:i,xAxisLabel:d().text("Months of the year"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Months of the year"),options:{showCategories:!0,barCategoryGap:"20%",interval:"preserveStartEnd"},onItemClick:c,state:r,onRefresh:n})},tl=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=ze(xr),{chartData:i,infoPanelData:o}=a,c=He(wr);return l().createElement(Wr,{config:t,data:i,xAxisLabel:d().text("Days of the week"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Days of the week"),options:{showCategories:!0,barCategoryGap:"25%",interval:"preserveStartEnd"},onItemClick:c,state:r,onRefresh:n})},al=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=ze(Or),{chartData:i,infoPanelData:o}=a,c=He(Tr);return l().createElement(Wr,{config:t,data:i,xAxisLabel:d().text("Days of the month"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Days of the month"),options:{showCategories:!0,interval:1},onItemClick:c,state:r,onRefresh:n})},rl=e=>{let{config:t}=e;const a=nr(),{data:r,state:n,reload:i}=ze(ba),o=He(Sa),c=[d().text("Value"),d().text("Count")],s=l().createElement(ee,{title:d().text("Pattern analysis"),data:[]});return l().createElement(qa,{config:t,data:r,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:n,onRefresh:i,labelCellClassName:a.monoFontCell})};function ll(){return ll=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},ll.apply(this,arguments)}class nl{}nl.getComponent=e=>{let{type:t,config:a,isFullscreen:r,onToggleFullscreen:n}=e;const i={config:a,isFullscreen:r,onToggleFullscreen:n};switch(t){case N.FILL_RATE_CHART:return l().createElement(Ze,i);case N.UNIQUENESS_CHART:return l().createElement(Ke,i);case N.SUMMARY:return l().createElement(na,i);case N.VALIDATION:return l().createElement(lr,i);case N.FREQUENCY:return l().createElement(ir,i);case N.LENGTH:return l().createElement(Yr,i);case N.CROSSWALK:return l().createElement(Xr,i);case N.VALUE_DISTRIBUTION:return l().createElement(Jr,i);case N.MONTH_DISTRIBUTION:return l().createElement(el,i);case N.DAY_OF_WEEK_DISTRIBUTION:return l().createElement(tl,i);case N.DAY_OF_MONTH_DISTRIBUTION:return l().createElement(al,i);case N.PATTERN:return l().createElement(rl,i);default:return l().createElement(da,ll({},i,{errorData:{message:d().text("Chart isn't supported for this data type")}}))}};const il=nl,ol=e=>{let{layoutItemConfig:t,views:a,onToggleFullscreen:r,isFullscreen:n,className:i,children:o,style:c}=e;const s=a.find((e=>{let{id:a}=e;return t.i===a}));if(!s)return null;const{type:u}=s;return l().createElement("div",{style:c,className:i},il.getComponent({type:u,config:s,onToggleFullscreen:r,isFullscreen:n}),o)},cl=(0,E.Z)({root:{overflow:"auto",backgroundColor:"#F9F9F9",height:"100%",flexGrow:1,padding:"4px"}}),sl=(0,s.map)((0,s.assoc)("isStatic",!0)),ul={cols:4,rowHeight:10,margin:[12,12]},dl=(0,r.memo)((e=>{let{views:t,layout:a,layoutOptions:n=ul}=e;const i=cl(),o=(0,r.useMemo)((()=>sl(a)),[a]);return l().createElement("div",{className:i.root},l().createElement(w.Z,{LayoutItem:ol,views:t,layout:o,layoutOptions:n}))}));var pl=a(50166),fl=a(83543),ml=a(98989),hl=a(38402),yl=a(33286),gl=a(40435);const vl=(0,E.Z)({root:{paddingRight:"23px",paddingLeft:"28px",display:"flex",flexDirection:"row-reverse"},detailIcon:{marginLeft:"-5px",borderRadius:"50%",padding:"2px",width:"26px",height:"26px",boxSizing:"border-box"},activeIcon:{background:"white"}}),bl=e=>{let{details:t,classes:a,fillRateData:r,fillRateState:n}=e;const i=vl(),o=(0,s.prop)("iconRoot",a);return l().createElement("div",{className:i.root},Object.entries(t||{}).reverse().map((e=>{let[t,a]=e,u=At.NORMAL;if(t===rt.REQUIRED){const e=n===y.o.LOADING,t=0===(null==(d=r)||null===(p=d.find((0,s.propEq)("group",c.s9T.MISSING)))||void 0===p?void 0:p.value);e&&(u=At.LOADING),e||t||(u=At.BAD_QUALITY)}var d,p;return l().createElement("div",{key:t,className:Z()(a&&(o||i.activeIcon),i.detailIcon)},a&&l().createElement(Je.ZP,{title:ht(t)},l().createElement("span",null,l().createElement(Ct,{detailType:t,variant:u,size:It.SMALL}))))})))},El="rgba(0, 114, 206, 0.12)",xl=(0,E.Z)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:El,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:El}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"}}),Ol=e=>{let{level:t,margin:a,hasChildren:r,isLastLevelItem:n,isCollapsed:i}=e;const o=xl(),c=!i&&(t>0||r);return l().createElement("div",{className:o.linesWrapper},((e,t)=>t>0&&e?(0,s.range)(1,t+1):t>1?(0,s.range)(1,t):[])(r,t).map((e=>l().createElement(yl.Z,{key:e,margin:a,level:e,className:o.line}))),c&&l().createElement(yl.Z,{margin:a,level:t,className:Z()(o.line,!r&&t>0&&o.horizontalLine,r&&o.parentLine,n&&o.lastLevel)}))},wl=(0,E.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 Nl(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){Tl(e,t,a[t])}))}return e}function Tl(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Sl=(0,R.Z)((e=>{let{data:t}=e;const a=wl(),r=De(t),n=t.map(((e,t)=>{let{label:n,percent:i,value:o}=e;return{label:l().createElement("span",null,l().createElement("div",{className:a.fillRateSquare,style:{background:r[t]}}),n),value:`${d().number(o)} ${M(i)}`}}));return k(t)?l().createElement("div",{className:a.bar},l().createElement("div",{className:Z()(a.barPart,a.inactiveBarPart)})):l().createElement(Je.ZP,{title:l().createElement(ee,{title:d().text("Fill rate"),data:n})},l().createElement("div",{className:a.bar},t.map(((e,t)=>l().createElement("div",{key:e.group,className:a.barPart,style:Nl({},B(e),{background:r[t]})})))))})),Rl=(0,E.Z)({listItem:{padding:"0 0 0 15px","&:after":{content:'""',left:0,right:0,position:"absolute",bottom:0,height:"1px",background:"rgba(0, 0, 0, 0.05)"}},selectedItem:{background:"#F0F7FC !important"},pointerCursor:{cursor:"pointer"},content:{display:"flex",alignItems:"center",width:"100%",height:"100%",position:"relative"},attribute:{paddingLeft:"9px",boxSizing:"border-box",width:"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",height:"100%",position:"relative"},marginWrapper:{display:"inline-block",height:"100%",position:"relative",width:"100%"},attributeType:{position:"absolute",left:0,top:"8px"},fillRate:{position:"absolute",bottom:"8px",left:0,right:0,zIndex:1},attributeLabel:{padding:"8px 0 0 15px",position:"relative","&:after":{content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}},selectedAttributeLabel:{"&:after":{background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #F0F7FC 100%)"}},parentAttributeLabel:{padding:"14px 0 0 13px"},detailsIconSelected:{background:"#F0F7FC"},detailsIcon:{background:"white"},collapseIcon:{marginRight:"6px"}}),Il=e=>{let{detailedAttributeType:t,fillRateData:a,fillRateState:r,style:n,level:i,selected:o=!1,onClick:s,onCollapse:u=Ra.ZT,isCollapsed:d=!1,isLastLevelItem:p=!1}=e;const f=Rl(),m=!!t.children,h=!!a,y=(e=>(0,c.idV)(e.label||e.name))(t),g=d?ml.Z:fl.Z,v=o?f.detailsIconSelected:f.detailsIcon;return l().createElement(hl.Z,{style:n,selected:o,classes:{selected:f.selectedItem},onClick:m?void 0:()=>{s(t)},component:"div",className:Z()(f.listItem,!m&&f.pointerCursor)},l().createElement("div",{className:f.content},!m&&l().createElement("div",{className:f.attributeType},l().createElement(ea,{type:t.type})),l().createElement("div",{className:f.attribute},l().createElement(Ol,{level:i,margin:20,hasChildren:m,isLastLevelItem:p,isCollapsed:d}),l().createElement(yl.Z,{margin:20,level:i,className:f.marginWrapper},l().createElement(Ca.C,{value:y},l().createElement("div",{className:Z()(f.attributeLabel,o&&f.selectedAttributeLabel,m&&f.parentAttributeLabel)},m&&l().createElement(gl.Z,{size:"XXS",icon:g,onClick:u,className:f.collapseIcon}),y))),h&&!m&&l().createElement("div",{className:f.fillRate},l().createElement(Sl,{data:a}))),l().createElement(bl,{details:t.details,classes:{iconRoot:v},fillRateData:a,fillRateState:r})))},Al=(0,s.propOr)({},"attributeItem"),Cl=(0,s.pipe)((0,s.find)((0,s.pipe)(Al,(0,s.either)(c.YkM,c.Or$),s.not)),Al),Dl=e=>(0,s.pipe)(Al,(0,s.propEq)("fieldName",e)),Ll=e=>(0,s.filter)((0,s.propEq)("group",e));let Pl;!function(e){e.SHOW_EMPTY="showEmpty"}(Pl||(Pl={}));const _l=(0,s.curry)(((e,t,a)=>{const r=(0,s.head)(Ll("emptiness")(e));return(null==r?void 0:r.value)===Pl.SHOW_EMPTY?a:a.filter((0,s.pipe)(Al,ct(t)))})),jl=(0,s.pipe)(Al,(0,s.prop)("fieldName")),Ml=(0,s.curry)(((e,t)=>{const a=Ll("details")(e),r=(e=>(0,s.pipe)((0,s.filter)((0,s.pipe)(Al,(0,s.both)((0,s.prop)("children"),it(e)))),(0,s.map)(jl)))(a)(t);return t.filter((e=>{let{attributeItem:t}=e;return r.some((e=>t.fieldName.startsWith(e)))||ot(a,t)}))}));function kl(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var Fl=a(36444),Ul=a(79784),zl=a(15115),Bl=a(21324),Vl=a(12231);const Hl=(0,E.Z)((e=>({serachWrapper:{padding:"8px 0px 8px 16px",alignItems:"center",display:"flex",flexGrow:1,justifyContent:"flex-end"},filterByDetails:{width:"32px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"9px"},searchInput:{borderRadius:"4px",width:"240px",minHeight:"32px!important",justifyContent:"flex-end",alignItems:"center",padding:"0 2px",boxSizing:"border-box","& input":{fontSize:"14px"},"& 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"}}))),Zl=e=>{let{isSelected:t,data:a,onChange:r}=e;const{count:n,label:i,value:o}=a,u=!(0,s.isNil)(n),d=Hl(!u||n>0);return l().createElement(Vl.Z,{className:d.option,component:"div",onClick:()=>r(a),"data-reltio-id":`reltio-dq-dashboard-option-${a.value}`},l().createElement(Bl.Z,{color:"primary",checked:t}),l().createElement("span",{className:d.typeIconWrapper},l().createElement(Ct,{detailType:o})),l().createElement(Ca.C,{value:i},l().createElement("div",{className:d.optionLabel},i)),u&&l().createElement("span",{className:d.counter},(0,c.k7L)(n,999)))},Wl=(0,s.curry)(((e,t)=>!!t.find((0,s.propEq)("value",e.value)))),Yl=(0,s.curry)(((e,t)=>{const a=t.findIndex((0,s.propEq)("value",e.value));return-1!==a?(0,s.remove)(a,1,t):t})),Gl=e=>{let{defaultFilterOptions:t=[],filterOptions:a,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=Hl(),[u,p]=(0,r.useState)(null),[f,m]=(0,r.useState)(t),[h,y]=(0,r.useState)(n||null),g=()=>p(null),v=e=>{m((0,s.ifElse)(Wl(e),Yl(e),(0,s.concat)([e])))},E=!!f.length,x=!!u,O=Z()(c.filterIconWrapper,{[c.filterIconWrapperActive]:x,[c.filterIconWrapperSelected]:E}),w=E?c.filterIconFilterApplied:c.filterIcon;return l().createElement("div",{className:c.serachWrapper},l().createElement(zl.Z,{autofocus:!0,onChange:e=>{y(e),i(e||"")},initialValue:n||null,height:40,placeholder:d().text("Search attribute name"),"data-reltio-id":"reltio-dq-dashboard-attributes-search-input",classes:{root:Z()(c.searchInput,{[c.filledInput]:!!h})}}),l().createElement("div",{className:c.filterByDetails,"data-reltio-id":"reltio-dq-dashboard-attributes-filter"},l().createElement("div",{className:O,onClick:e=>p(e.currentTarget)},l().createElement(Fl.Z,{className:w})),l().createElement(Ul.ZP,{open:!!u,anchorEl:u,onClose:()=>{m((0,s.always)(t)),g()},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{"data-reltio-id":"reltio-dq-dashboard-attributes-filter-popup"}},l().createElement("div",{className:c.menu},l().createElement(b.Z,{variant:"h6",className:c.dropdownMenuTitle},d().text("Filter")),l().createElement("div",{className:c.valueContainer},a.map((e=>{let{label:t,options:a}=e;return l().createElement("div",{key:t},t&&l().createElement(b.Z,{variant:"caption",className:c.groupLabel},t),a.map((e=>{const t=Wl(e,f);return l().createElement(Zl,{key:e.label,data:e,isSelected:t,onChange:v})})))})))),l().createElement("div",{className:c.actionsContainer},l().createElement(he.Z,{onClick:()=>{m([])},className:c.clearAllButton,disabled:!E,"data-reltio-id":"reltio-dq-dashboard-filter-clear-all-button"},d().text("Clear all")),l().createElement(he.Z,{onClick:()=>{m(t),g()},"data-reltio-id":"reltio-dq-dashboard-filter-cancel-button"},d().text("Cancel")),l().createElement(he.Z,{color:"primary",onClick:()=>{o(f),g()},"data-reltio-id":"reltio-dq-dashboard-filter-apply-button"},d().text("Apply"))))))},ql=(0,E.Z)((e=>({root:{width:"480px",display:"flex",flexDirection:"column",borderRight:"solid 1px rgba(0, 0, 0, 0.12)",flexGrow:1},title:{height:"24px",margin:"16px",display:"flex",alignItems:"center",fontSize:"12px",color:"rgba(0, 0, 0, 0.54);"},itemCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px"},listWrapper:{flexGrow:1,overflow:"hidden",position:"relative"},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:"rgba(0, 0, 0, 0.54)"},loaderWrapper:{position:"absolute",top:"0",left:"0",width:"100%",height:"4px",zIndex:1}}))),$l=e=>{var t,a;let{entityType:i,onAttributesListChange:o,defaultFieldName:u,defaultFilterOptions:p,defaultFilterText:f,disableAttributeSelection:v}=e;const b=ql(),E=(0,r.useRef)(),[x,O]=(0,r.useState)(f||""),[w,N]=(0,r.useState)([]),[T,S]=(0,r.useState)(p||[]),[R,I]=(0,r.useState)({fieldName:u}),[A,C]=(0,r.useState)({}),{data:D}=(0,r.useContext)(Ue),{data:L,state:P}=(e=>{const[t,a]=(0,r.useState)(y.o.INIT),[l,n]=(0,r.useState)({}),i=(0,g._)(),o=e=>{console.error(e),a(y.o.ERROR),n({})},s=(0,r.useCallback)((()=>(a(y.o.LOADING),n({}),i((0,c.aTW)({entityTypeUri:e})).then(_e).then((e=>{n(e),a(y.o.LOADED)})).catch(o))),[a,n,e]),u=(0,r.useCallback)((()=>{try{s()}catch(e){o(e)}}),[s]);return(0,r.useEffect)((()=>{u()}),[u]),{data:l,state:t,reload:u}})(i.uri);(0,r.useEffect)((()=>C(L)),[L]),(0,r.useEffect)((()=>{const e=(null==D?void 0:D.fillRate)&&Pe(null==D?void 0:D.fillRate),t=A[R.fieldName];C((a=>!e||(0,s.equals)(t,e)?a:(0,s.assoc)(R.fieldName,e,a)))}),[null==D?void 0:D.fillRate]);const _=null===(t=(0,r.useContext)($a))||void 0===t||null===(a=t.dvfs)||void 0===a?void 0:a.state,j=((e,t)=>{var a,l;const i=(0,n.useSelector)(h.ZP.selectors.getMetadata),o=(0,r.useMemo)((()=>(e=>(0,s.pipe)(c.WN0,dt(e),yt))(t)(i,e)),[i,e,t]),[u,d]=(0,r.useState)([]),p=e.uri,f=(0,r.useMemo)((()=>(0,c.qhs)(i,p)),[i,p]),m=null===(a=(0,r.useContext)($a))||void 0===a||null===(l=a.dvfs)||void 0===l?void 0:l.data;return(0,r.useEffect)((()=>{m&&d(o.map((0,s.evolve)({attributeItem:e=>function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){kl(e,t,a[t])}))}return e}({},e,{details:mt({attrTypeItem:e,dvf:m,matchAttributes:f})},e.children&&{children:e.children.map((t=>(t.details=mt({attrTypeItem:t,dvf:m,matchAttributes:f}),t.details.reference=e.isAttributeReference,t)))})})))}),[o,f,m]),u})(i,x),{filteredItems:M,filterOptions:k}=(0,r.useMemo)((()=>{const e=_l(T,A,j),t=(e=>{const t=Object.values(rt).map((e=>({value:e,label:ht(e),group:"details"}))).map((t=>(0,s.assoc)("count",((e,t)=>e.filter((e=>it([t],e.attributeItem))).length)(e,t),t)));return{label:d().text("Attribute properties"),options:t}})(e);return{filteredItems:Ml(T,e),filterOptions:[{label:"",options:[{label:d().text("Show attributes with no data"),value:Pl.SHOW_EMPTY,group:"emptiness"}]},t]}}),[j,T,A]),F=(0,r.useMemo)((()=>((e,t)=>e.filter((e=>{let{attributeItem:a}=e;return!t.some((e=>a.fieldName.startsWith(e)&&a.fieldName!==e))})))(M,w)),[M,w]),U=M.length,z=e=>{o({selectedDetailedAttributeType:e,filterText:x,filterOptions:T}),I({fieldName:e.fieldName})},B=()=>{const e=((e,t)=>(0,s.pipe)((0,s.find)(Dl(t)),(0,s.propOr)(null,"attributeItem"))(e))(M,R.fieldName)||Cl(M);return(0,s.isEmpty)(e)||v?null:e};(0,r.useEffect)((()=>{var e,t,a;if(v)return void(null===(a=E.current)||void 0===a||a.scrollTo(0));if(M.length){const e=B();I({fieldName:(null==e?void 0:e.fieldName)||R.fieldName})}const r=((e,t)=>(0,s.findIndex)(Dl(t))(e))(M,R.fieldName);r>-1?null===(e=E.current)||void 0===e||e.scrollToItem(r,"center"):null===(t=E.current)||void 0===t||t.scrollTo(0)}),[M]),(0,r.useEffect)((()=>{const e=B();o({selectedDetailedAttributeType:e,filterText:x,filterOptions:T})}),[x,T,R]),(0,r.useEffect)((()=>{I((e=>{let{fieldName:t}=e;return v?{fieldName:null}:{fieldName:t}}))}),[v]);const V=e=>{let{data:t,index:a,style:r}=e;const{attributeItem:n,level:i=0}=t[a],o=R.fieldName===n.fieldName,c=((e,t)=>e[t.fieldName])(A,n),u=a>0&&i>(0,s.pathOr)(-1,[a+1,"level"],F);return l().createElement(Il,{fillRateData:c,fillRateState:P,style:r,detailedAttributeType:n,level:i,onClick:z,selected:o,onCollapse:(d=n.fieldName,()=>{N((e=>e.includes(d)?e.filter((e=>e!==d)):e.concat(d)))}),isCollapsed:w.includes(n.fieldName),isLastLevelItem:u});var d},H=F.length,Z=!!H,W=P===y.o.LOADING||_===y.o.LOADING||P===y.o.INIT||_===y.o.INIT;return l().createElement("div",{className:b.root},l().createElement("div",{className:b.title},d().text("Attributes"),l().createElement("span",{className:b.itemCount},`${U} ${Y=U,1===Y?d().text("item"):d().text("items")}`),l().createElement(Gl,{defaultFilterText:f,defaultFilterOptions:T,onChangeFilterOptions:S,onChangeFilterText:O,filterOptions:k})),l().createElement("div",{className:b.listWrapper,"data-reltio-id":"reltio-dq-dashboard-attributes-list"},l().createElement("div",{className:b.loaderWrapper},W&&l().createElement(me.Z,null)),Z?l().createElement(de.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return l().createElement(pl.FixedSizeList,{ref:E,itemCount:H,width:"100%",height:t,itemData:F,itemSize:48},V)})):!W&&l().createElement(we,{height:349,data:{Icon:m.B9.SEARCH_RESULTS,title:d().text("No results found"),message:d().text("Try adjusting your search or filter to find\nwhat you’re looking for")},variant:ge.MEDIUM})));var Y},Ql=(0,E.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"},content:{display:"flex",flexGrow:1,overflow:"hidden"},additionalLabel:{color:e.palette.text.secondary,marginLeft:"10px"},entityLevelButton:{height:"48px",padding:"0 16px",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",borderRight:"1px solid rgba(0, 0, 0, 0.1)",fontSize:"16px",lineHeight:"48px",color:"rgba(0, 0, 0, 0.87)",cursor:"pointer"},selectedButton:{background:"#F0F7FC"},wrapper:{display:"flex",flexDirection:"column"}})));function Kl(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){Xl(e,t,a[t])}))}return e}function Xl(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Jl=(0,s.path)([0,"value"]),en=e=>{var t,a,i;let{config:o,saveState:u,getSavedState:b}=e;const E=Ql(),{entityType:x,tabs:w,setEntityTypeByUri:T}=(()=>{const e=(0,n.useSelector)(h.ZP.selectors.getMetadata),t=(0,r.useMemo)((()=>e.entityTypes.filter(c.oDv)),[e.entityTypes]),a=v(t),[l,i]=(0,r.useState)(null);return{entityType:l,tabs:(0,r.useMemo)((()=>t.map(((e,t)=>{let{label:r,uri:l}=e;return{label:r,value:l,additionalLabel:Number((null==a?void 0:a[(0,c.nIW)(l)])||0),dataReltioId:`reltio-dq-dashboard-entity-tab-${t}`}}))),[t,a]),setEntityTypeByUri:(0,s.pipe)((0,c.nt9)(e),i)}})(),[S,R]=(0,r.useState)(null),{isLoaded:I,savedState:P}=(0,p.a)(b),_=(0,n.useSelector)(h.ZP.selectors.getCanUserGetDQStatistic),[j,M]=(0,r.useState)(),k=(e=>{const[t,a]=(0,r.useState)(null),[l,i]=(0,r.useState)(null),o=(0,g._)(),u=(0,n.useSelector)(h.ZP.selectors.getUIPath),d=(0,n.useSelector)(h.ZP.selectors.getEnvironment),p=(0,n.useSelector)(h.ZP.selectors.getTenant);return(0,r.useEffect)((()=>{o((0,c.f_2)({uiPath:u,tenant:p,environment:d,options:{method:"GET"}})).then((e=>{var t;const r=null==e||null===(t=e.data)||void 0===t?void 0:t.apps.find((0,s.propEq)("name","Console")).uri;a(r)})).catch((()=>a(null)))}),[d,p,u]),(0,r.useEffect)((()=>{const a=t&&null!=e&&e.uri?(0,s.pipe)((0,s.split)("?"),(0,s.insert)(1,`datamodeler/entityDetails/${(0,c.nIW)(e.uri)}/validation?`),(0,s.join)(""))(t):null;i(a)}),[e,t]),l})(x),F=(e=>{const[t,a]=(0,r.useState)(null),[l,i]=(0,r.useState)(y.o.INIT),[o,s]=(0,r.useState)(),u=(0,n.useSelector)(h.ZP.selectors.getTenant),d=(0,n.useSelector)(h.ZP.selectors.getDVFPath),p=(0,g._)(),f=(0,n.useSelector)(h.ZP.selectors.getEnvironment),m=e=>{console.error(e),i(y.o.ERROR),a([]),s(null==e?void 0:e.errorCode)},v=e=>{a(e.functions),s(void 0),i(y.o.LOADED)},b=(0,r.useCallback)((()=>{if(e&&f)return i(y.o.LOADING),p((0,c.HaQ)({dvfPath:d,tenant:u,entityTypeUri:e,env:f})).then(v).catch(m)}),[d,u,e,f]);return(0,r.useEffect)((()=>{b()}),[b]),{data:t,state:l,reload:b,errorCode:o}})(null==x?void 0:x.uri),U={dvfs:F,dvfConfigLink:k},B=(e=>{let{entityType:t,detailedAttributeType:a,dataLevel:l}=e;const[n,i]=(0,r.useState)(y.o.INIT),[o,s]=(0,r.useState)({}),u=null==a?void 0:a.fieldName,d=null==t?void 0:t.uri,p=(0,g._)(),f=e=>{console.error(e),i(y.o.ERROR),s({})},m=(0,r.useCallback)((async()=>{if(i(y.o.LOADING),l===C.ENTITY_TYPE){var e,r;const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:[d]}]),a=await(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.ACTIVE_ONLY,filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}),l=await(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.INACTIVE_ONLY,filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]});return s({summary:{inactiveProfiles:null===(e=l.type)||void 0===e?void 0:e[(0,c.nIW)(d)],activeProfiles:null===(r=a.type)||void 0===r?void 0:r[(0,c.nIW)(d)],sourceSystems:8}}),void i(y.o.LOADED)}if(t&&a)return p((0,c.TTx)({entityTypeUri:d,attributeFieldName:u})).then((e=>{s(e),i(y.o.LOADED)})).catch(f)}),[i,s,u,d]),h=(0,r.useCallback)((()=>{try{m()}catch(e){f(e)}}),[m]);return(0,r.useEffect)((()=>{h()}),[h]),{data:o,state:n,reload:h}})({entityType:x,detailedAttributeType:S,dataLevel:j}),V=null==w?void 0:w.map((e=>Kl({},e,{additionalLabel:l().createElement("span",{className:E.additionalLabel},"(",(0,c.k7L)(e.additionalLabel,999),")")}))),H=(0,r.useCallback)((e=>{(null==x?void 0:x.uri)!==e&&(R(null),T(e),j===C.ENTITY_TYPE&&u(Kl({dataLevel:j,entityTypeUri:e},$.current&&{filterOptions:$.current.filterOptions,filterText:$.current.filterText})))}),[null==x?void 0:x.uri]),W=(null===(t=o.layoutsByDataLevel)||void 0===t?void 0:t[C.ENTITY_TYPE])||L[C.ENTITY_TYPE],Y=null===(a=o.layoutsByDataLevel)||void 0===a?void 0:a[C.ATTRIBUTE_TYPE],G=(0,r.useMemo)((()=>j===C.ENTITY_TYPE&&W?W:((e,t)=>{const a=z(t),r=(0,s.mergeLeft)(e,L[C.ATTRIBUTE_TYPE]);return r[a]||r.default||[]})(Y,null==S?void 0:S.type)),[W,null==S?void 0:S.type,Y,j]),q=(0,r.useMemo)((()=>((e,t,a,r)=>{const l=(0,s.uniqBy)((0,s.prop)("id"),(0,s.concat)((null==e?void 0:e[r])||[],D[r]||[])),n=(e=>{switch(e){case C.ATTRIBUTE_TYPE:return(e=>{switch(e){case A.INTEGER:case A.FLOAT:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART,N.VALUE_DISTRIBUTION];case A.BOOLEAN:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY];case A.STRING:return[N.LENGTH,N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART];case A.DATE:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART,N.VALUE_DISTRIBUTION,N.MONTH_DISTRIBUTION,N.DAY_OF_MONTH_DISTRIBUTION,N.DAY_OF_WEEK_DISTRIBUTION];case A.SSN:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART,N.PATTERN];case A.UNKNOWN:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART,N.LENGTH];default:return[]}})(z(t));case C.ENTITY_TYPE:return[N.SUMMARY];default:return[]}})(r);return a.reduce(((e,t)=>{const a=(0,s.prop)("type",e.find((0,s.propEq)("id",t.id)));if(!n.includes(a)){const a=e.findIndex((0,s.propEq)("id",t.id));if(-1!==a)return(0,s.adjust)(a,(0,s.assoc)("type",N.UNSUPPORTED),e)}return e}),l)})(o.viewsByDataLevel,null==S?void 0:S.type,G,j)),[null==S?void 0:S.type,G,j]);(0,r.useEffect)((()=>{I&&(T(P.entityTypeUri||Jl(w)),M(W?P.dataLevel||C.ENTITY_TYPE:C.ATTRIBUTE_TYPE))}),[I]);const $=(0,r.useRef)(),Q=!(null===(i=w.find((0,s.propEq)("value",null==x?void 0:x.uri)))||void 0===i||!i.additionalLabel),K=x&&_&&I&&Q;return l().createElement("div",{className:E.perspectiveView},l().createElement(O,{title:d().text("Data Quality")},x&&l().createElement(f.Z,{value:x.uri,tabs:V,onChange:H,scrollButtons:"auto"})),l().createElement("div",{className:E.content},K&&l().createElement(l().Fragment,null,l().createElement(Ue.Provider,{value:B},l().createElement($a.Provider,{value:U},l().createElement("div",{className:E.wrapper},W&&l().createElement("div",{className:Z()(E.entityLevelButton,{[E.selectedButton]:j===C.ENTITY_TYPE}),onClick:()=>{R(null),M(C.ENTITY_TYPE)}},`${x.label} ${d().text("summary")}`),l().createElement($l,{entityType:x,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:a,filterOptions:r}=e;const l=null==t?void 0:t.fieldName,n={entityTypeUri:x.uri,fieldName:l,filterOptions:r,filterText:a,dataLevel:j};!l&&j!==C.ENTITY_TYPE||(0,s.equals)($.current,n)||(u(n),$.current=n),l&&M(C.ATTRIBUTE_TYPE),R(t)},defaultFieldName:null==P?void 0:P.fieldName,defaultFilterText:null==P?void 0:P.filterText,defaultFilterOptions:null==P?void 0:P.filterOptions,disableAttributeSelection:j===C.ENTITY_TYPE})),(S||j===C.ENTITY_TYPE)&&l().createElement(ra.Provider,{value:j},l().createElement(Ve.Provider,{value:x},l().createElement(Be.Provider,{value:S},l().createElement(dl,{views:q,layout:G}))))))),!_&&l().createElement(Ee,{height:359,errorData:{title:d().text("You don’t currently have permission to view this page"),message:d().text(" Please contact your Tenant Admin to change permissions")},variant:ge.LARGE}),I&&x&&!Q&&_&&l().createElement(we,{height:359,data:{Icon:m.B9.NO_DATA,title:d().text("Give us something to go on!"),message:d().text("Go ahead and load some data. We’ll put it on the scales and\nlet you know here if it measures up.")},variant:ge.LARGE})))};function tn(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const an=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){tn(e,t,a[t])}))}return e}({},c.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}}),rn=(0,i.Z)(an),ln=(0,o.createGenerateClassName)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0}),nn=e=>{let{store:t,config:a,saveState:i,getSavedState:s}=e;const u=(0,r.useCallback)((0,c.aYu)(s),[s]);return l().createElement(n.Provider,{store:t},l().createElement(o.ThemeProvider,{theme:rn},l().createElement(o.StylesProvider,{generateClassName:ln},l().createElement(en,{config:a,saveState:i,getSavedState:u}))))}},15115:(e,t,a)=>{t.Z=void 0;var r=m(a(72579)),l=m(a(54073)),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var n=r?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(a,l,n):a[l]=e[l]}return a.default=e,t&&t.set(e,a),a}(a(24328)),i=m(a(13980)),o=m(a(71153)),c=m(a(16805)),s=m(a(2630)),u=m(a(81819)),d=m(a(21853)),p=m(a(87685));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function x(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(f,e);var t,a,i=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var a,r=E(e);if(t()){var l=E(this).constructor;a=Reflect.construct(r,arguments,l)}else a=r.apply(this,arguments);return v(this,a)}}(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),x(b(t=i.call(this,e)),"emitChange",(0,l.default)((function(e){return t.props.onChange(e)}),200)),x(b(t),"handleChange",(function(e){var a=(0,r.default)(e,["target","value"]);t.setState({value:a}),t.emitChange(a)})),x(b(t),"handleFocus",(function(){return t.inputRef.current.focus()})),x(b(t),"handleOpen",(function(){t.props.forceOpen||t.setState({open:!0},t.handleFocus)})),x(b(t),"handleClose",(function(){t.props.forceOpen||t.setState({open:!1}),t.setState({value:""}),t.emitChange()})),t.state={open:Boolean(t.props.initialValue),value:t.props.initialValue||""},t.inputRef=n.default.createRef(),t}return t=f,(a=[{key:"render",value:function(){var e=this.state,t=e.open,a=e.value,r=this.props,l=r.classes,i=r.placeholder,f=r.forceOpen,m=t||f,h=t||f&&a;return n.default.createElement("div",{className:(0,o.default)(c.default.searchInputContainer,x({},c.default.colored,m),l.root)},n.default.createElement(s.default,{name:"expand-input-btn",onClick:this.handleOpen},n.default.createElement(d.default,null)),m&&n.default.createElement(u.default,{value:a,disableUnderline:!0,className:c.default.searchInputField,classes:{input:c.default.input},placeholder:i,onChange:this.handleChange,inputProps:{ref:this.inputRef}}),h&&n.default.createElement(s.default,{name:"collapse-input-btn",onClick:this.handleClose},n.default.createElement(p.default,null)))}}])&&y(t.prototype,a),f}(n.PureComponent);t.Z=O,O.defaultProps={classes:{},forceOpen:!1},O.propTypes={classes:i.default.shape({root:i.default.string}),placeholder:i.default.string,forceOpen:i.default.bool,onChange:i.default.func.isRequired,initialValue:i.default.string}},16805:(e,t,a)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(0,((r=a(86698))&&r.__esModule?r:{default:r}).default)("<style>.Form__searchInputContainer_3vqs6{display:flex;min-height:48px}.Form__searchInputField_3mnAi{flex:1 1 auto;padding:2px}.Form__input_3ulP-::-ms-clear{display:none}.Form__colored_2WMqk{background-color:#fafafa}</style>"),t.default={searchInputContainer:"Form__searchInputContainer_3vqs6",searchInputField:"Form__searchInputField_3mnAi",input:"Form__input_3ulP-",colored:"Form__colored_2WMqk"}}}]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reltio/remotes",
3
- "version": "1.4.1009",
3
+ "version": "1.4.1012",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "main.js",
6
6
  "publishConfig": {