@reltio/remotes 1.4.1720 → 1.4.1721

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 (86) hide show
  1. package/1088.js +1 -1
  2. package/1148.js +1 -1
  3. package/1215.js +1 -1
  4. package/1334.js +1 -1
  5. package/1425.js +1 -1
  6. package/1550.js +1 -1
  7. package/1664.js +1 -1
  8. package/1707.js +1 -1
  9. package/1840.js +1 -1
  10. package/1840.js.map +1 -1
  11. package/2066.js +1 -1
  12. package/2345.js +1 -1
  13. package/2383.js +1 -1
  14. package/2400.js +1 -1
  15. package/2617.js +1 -1
  16. package/2857.js +1 -1
  17. package/2966.js +1 -1
  18. package/3004.js +1 -1
  19. package/3042.js +1 -1
  20. package/3096.js +1 -1
  21. package/3144.js +1 -1
  22. package/3191.js +1 -1
  23. package/3209.js +1 -1
  24. package/3348.js +1 -1
  25. package/3381.js +1 -1
  26. package/3383.js +1 -1
  27. package/3463.js +1 -1
  28. package/3469.js +1 -1
  29. package/3538.js +1 -1
  30. package/3639.js +1 -1
  31. package/3785.js +1 -1
  32. package/393.js +1 -1
  33. package/4038.js +1 -1
  34. package/4143.js +1 -1
  35. package/415.js +1 -1
  36. package/4212.js +1 -1
  37. package/4444.js +1 -1
  38. package/4481.js +1 -1
  39. package/4787.js +1 -1
  40. package/4838.js +1 -1
  41. package/4969.js +1 -1
  42. package/50.js +1 -1
  43. package/5039.js +1 -1
  44. package/5177.js +1 -1
  45. package/5201.js +1 -1
  46. package/5292.js +1 -1
  47. package/5383.js +1 -1
  48. package/5738.js +1 -1
  49. package/5769.js +1 -1
  50. package/6287.js +1 -1
  51. package/6422.js +1 -1
  52. package/6506.js +1 -1
  53. package/6578.js +1 -1
  54. package/658.js +1 -1
  55. package/6799.js +1 -1
  56. package/6844.js +1 -1
  57. package/6903.js +1 -1
  58. package/7074.js +1 -1
  59. package/7119.js +1 -1
  60. package/7237.js +1 -1
  61. package/7340.js +1 -1
  62. package/735.js +1 -1
  63. package/7407.js +1 -1
  64. package/7422.js +1 -1
  65. package/7468.js +1 -1
  66. package/7626.js +1 -1
  67. package/7719.js +1 -1
  68. package/7744.js +1 -1
  69. package/7896.js +1 -1
  70. package/820.js +1 -1
  71. package/8207.js +1 -1
  72. package/8216.js +1 -1
  73. package/829.js +1 -1
  74. package/8741.js +1 -1
  75. package/8786.js +1 -1
  76. package/9016.js +1 -1
  77. package/9032.js +1 -1
  78. package/9050.js +1 -1
  79. package/9109.js +1 -1
  80. package/9283.js +1 -1
  81. package/9328.js +1 -1
  82. package/9387.js +1 -1
  83. package/9719.js +1 -1
  84. package/main.js +1 -1
  85. package/package.json +1 -1
  86. package/remoteEntry.js +1 -1
package/5039.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="03d5ee42-97cd-4c85-b5eb-8b30e3354714",e._sentryDebugIdIdentifier="sentry-dbid-03d5ee42-97cd-4c85-b5eb-8b30e3354714")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1721"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5039],{42639:(e,t,a)=>{a.d(t,{Z:()=>d});var l=a(65439),r=a(71153),n=a.n(r),i=a(24328),o=a.n(i);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},c.apply(this,arguments)}var s=function(e){return e[e.ICON_MODE=0]="ICON_MODE",e[e.TEXT_MODE=1]="TEXT_MODE",e[e.ERROR_MODE=2]="ERROR_MODE",e}(s||{});const d=e=>{let{className:t,icon:a,avatarText:r,rootClasses:d}=e,p=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["className","icon","avatarText","rootClasses"]);const[u,m]=(0,i.useState)(null);(0,i.useEffect)((()=>{m(a?s.ICON_MODE:s.TEXT_MODE)}),[a,r]);const f=()=>{m(s.ERROR_MODE)};switch(u){case s.ICON_MODE:return o().createElement(l.Z,c({className:n()(t,null==d?void 0:d.iconRoot),src:a,onError:f},p));case s.TEXT_MODE:case s.ERROR_MODE:return o().createElement(l.Z,c({className:n()(t,null==d?void 0:d.textRoot)},p),r);default:return null}}},30488:(e,t,a)=>{a.d(t,{Z:()=>n});var l=a(38748),r=a(50548);const n=e=>t=>(0,r.l)(l.X,e,t)},82565:(e,t,a)=>{a.d(t,{Z:()=>p});var l=a(24328),r=a.n(l),n=a(12115);function i(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){o(e,t,a[t])}))}return e}function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const c=(0,a(72342).makeStyles)((e=>({basicViewPaper:i({display:"flex",flexDirection:"column"},e.basicView)})));function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},s.apply(this,arguments)}const d=(0,l.forwardRef)(((e,t)=>{let{children:a,className:l}=e,i=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["children","className"]);const o=c();return r().createElement(n.Z,s({ref:t,className:l,classes:{root:o.basicViewPaper}},i),a)}));d.displayName="BasicView";const p=d},82068:(e,t,a)=>{a.d(t,{Z:()=>s});var l=a(24328),r=a.n(l),n=a(71153),i=a.n(n);const o=(0,a(72342).makeStyles)({"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 l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},c.apply(this,arguments)}const s=e=>{let{children:t,className:a}=e,l=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["children","className"]);const n=o();return r().createElement("div",c({className:i()(n["basic-view-content"],a)},l),t)}},17998:(e,t,a)=>{a.d(t,{Z:()=>p});var l=a(24328),r=a.n(l),n=a(2507),i=a.n(n),o=a(26482),c=a(79312);const s=(0,a(72342).makeStyles)({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",minWidth:"20px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},d.apply(this,arguments)}const p=e=>{let{title:t="",children:a=null,classes:l={}}=e,n=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["title","children","classes"]);const p=s();return r().createElement(o.Z,d({className:l.root,classes:{root:p.toolbar}},n),r().createElement(c.Z,{className:l.title,classes:{root:p.title},variant:"h6"},i().text(t)),a)}},89902:(e,t,a)=>{a.d(t,{Z:()=>d});var l=a(24328),r=a.n(l),n=a(71153),i=a.n(n),o=a(50914);const c=(0,a(72342).makeStyles)((e=>({bar:{backgroundColor:e.palette.secondary.main,opacity:.12,position:"absolute",minHeight:"20px",minWidth:"5px",borderRadius:"2px",top:0,left:0,height:"100%"}}))),s=e=>(0,o.is)(Number,e),d=e=>{let{className:t,width:a=0,maxWidth:n}=e;const o=c(),d=(0,l.useCallback)((e=>(n?100*e/n:0)+"%"),[n]);return a?r().createElement("div",{className:i()(o.bar,t),style:{width:s(a)?d(a):a}}):null}},98538:(e,t,a)=>{a.d(t,{Z:()=>O});var l=a(24328),r=a.n(l),n=a(71153),i=a.n(n),o=a(50914),c=a(38677),s=a(18960),d=a(55962),p=a(80852),u=a(95341),m=a(79312),f=a(78223),h=a(47591);const y=(0,a(72342).makeStyles)((e=>({buttonRoot:{"&$selected":{color:e.palette.action.active,backgroundColor:(0,h.Fq)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,h.Fq)(e.palette.action.active,.15)}}},selected:{},paper:{minWidth:"112px"},menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}}))),g=(0,f.Z)(u.Z),E=(0,l.forwardRef)(((e,t)=>{let{item:a,onMenuClose:l=o.identity}=e;const n=y(),{disabled:i,text:c,tooltip:s,onClick:d,id:u="",selectable:f,selected:h}=a;return r().createElement(g,{tooltipTitle:s,showForDisabled:!0,classes:{root:n.menuItem},onClick:e=>{l(e),d(e)},disabled:i,ref:t,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${u}`},f&&r().createElement(p.Z,{checked:h,color:"primary"}),r().createElement(m.Z,{classes:{root:n.menuText}},c))}));E.displayName="MenuItemRenderer";const v=E;function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},x.apply(this,arguments)}function b(e){let{className:t,menuId:a,buttonComponent:n=c.Z,buttonContent:p,menuItems:u=[],buttonProps:m={},popoverProps:f={},onMenuOpen:h=o.identity,onMenuClose:g=o.identity,MenuItemRenderer:E=v}=e;const b=n,O=y(),w=(0,l.useRef)(),[S,T]=(0,l.useState)(!1);(0,d.D)((()=>{S?h():g()}),[S]);const R=(0,l.useCallback)((e=>{null==e||e.stopPropagation(),T((e=>!e))}),[]);return r().createElement(r().Fragment,null,r().createElement(b,x({"data-reltio-id":"drop-down-menu-button",ref:w,className:i()(O.buttonRoot,{[O.selected]:S},t),onClick:R,"aria-pressed":S,"aria-controls":S?a:void 0,"aria-haspopup":"true"},m),p),r().createElement(s.Z,x({id:a,variant:"menu",open:S,autoFocus:!1,classes:{paper:O.paper},anchorEl:w.current,onClose:R,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,MenuListProps:{autoFocusItem:S}},f),u.map(((e,t)=>r().createElement(E,{item:e,key:t,onMenuClose:R})))))}b.displayName="DropDownMenuButton";const O=b},79002:(e,t,a)=>{a.d(t,{B9:()=>y,tC:()=>h,ZP:()=>g});var l=a(24328),r=a.n(l),n=a(71153),i=a.n(n),o=a(50914),c=a(79312),s=a(38677);function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},d.apply(this,arguments)}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},p.apply(this,arguments)}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},u.apply(this,arguments)}function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},m.apply(this,arguments)}const f=(0,a(72342).makeStyles)((e=>({root:{display:"flex",flex:"1 1 auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"10px",overflow:"auto",height:"100%",minHeight:"350px",boxSizing:"border-box","&$root_small":{minHeight:"160px"},"& $text":{color:e.palette.text.primary,fontSize:"20px",fontWeight:500,lineHeight:"24px",letterSpacing:"0.25px",textAlign:"center"},"& $secondaryText":{color:e.palette.text.secondary,fontSize:"15px",fontWeight:300,lineHeight:"18px",letterSpacing:"0.11px",textAlign:"center",paddingTop:"3px"}},root_small:{},embedded:{flexShrink:0,width:"190px",height:"190px",padding:"8px"},full:{width:"256px",height:"256px"},textBox:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:500,marginTop:"16px"},text:{},secondaryText:{},button:{minHeight:36,minWidth:64,maxWidth:500,padding:"10px 16px",borderRadius:"2px",boxShadow:"0 0 2px 0 rgba(0,0,0,0.12), 0 2px 2px 0 rgba(0,0,0,0.24), 0 0 8px 0 rgba(0,0,0,0.12), 0 8px 8px 0 rgba(0,0,0,0.24)",fontSize:"14px",fontWeight:500,lineHeight:"16px",marginTop:"24px"}})));let h=function(e){return e.full="full",e.embedded="embedded",e.small="small",e}({});const y={SEARCH_RESULTS:e=>r().createElement("svg",d({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),r().createElement("defs",null,r().createElement("radialGradient",{cx:"50%",cy:"100%",fx:"50%",fy:"100%",r:"81.681%",gradientTransform:"matrix(.98998 0 0 .612 .005 .388)",id:"EmptySearchResults_svg__c"},r().createElement("stop",{stopColor:"#00BFFF",stopOpacity:.5,offset:"0%"}),r().createElement("stop",{stopColor:"#9EE8FF",stopOpacity:0,offset:"100%"})),r().createElement("radialGradient",{cx:"50%",cy:"111.651%",fx:"50%",fy:"111.651%",r:"87.693%",gradientTransform:"matrix(0 -.97693 .7263 0 -.31 1.605)",id:"EmptySearchResults_svg__f"},r().createElement("stop",{stopColor:"#91F8E5",stopOpacity:.6,offset:"0%"}),r().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),r().createElement("radialGradient",{cx:"50%",cy:"103.659%",fx:"50%",fy:"103.659%",r:"90.207%",gradientTransform:"matrix(0 -1 2.23905 0 -1.821 1.537)",id:"EmptySearchResults_svg__g"},r().createElement("stop",{stopColor:"#FFF",offset:"0%"}),r().createElement("stop",{stopColor:"#73FAFF",stopOpacity:.21,offset:"59.38%"}),r().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),r().createElement("linearGradient",{x1:"50%",y1:"170.771%",x2:"50%",y2:"10.303%",id:"EmptySearchResults_svg__e"},r().createElement("stop",{stopColor:"#91F8E5",offset:"0%"}),r().createElement("stop",{stopColor:"#99FCFF",stopOpacity:0,offset:"100%"})),r().createElement("filter",{x:"-25.9%",y:"-26.2%",width:"151.8%",height:"152.3%",filterUnits:"objectBoundingBox",id:"EmptySearchResults_svg__d"},r().createElement("feGaussianBlur",{stdDeviation:15,in:"SourceGraphic"})),r().createElement("circle",{id:"EmptySearchResults_svg__a",cx:128,cy:128,r:128})),r().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r().createElement("mask",{id:"EmptySearchResults_svg__b",fill:"#fff"},r().createElement("use",{xlinkHref:"#EmptySearchResults_svg__a"})),r().createElement("use",{fillOpacity:.2,fill:"#A792CD",xlinkHref:"#EmptySearchResults_svg__a"}),r().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},r().createElement("g",{transform:"translate(56 34)"},r().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},r().createElement("path",{d:"M0 6.99C0 3.13 3.137 0 7 0h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H7c-3.866 0-7-3.143-7-6.99V6.99z"}),r().createElement("path",{d:"M13 25.99c0-3.86 3.137-6.99 7-6.99h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H20c-3.866 0-7-3.143-7-6.99V25.99z",opacity:.4})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 45.833)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),r().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),r().createElement("path",{d:"M35.365.861h69.768a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M34.274 15.048h126.164a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),r().createElement("rect",{fill:"#645F6D",opacity:.5,x:21.756,y:17.46,width:87.022,height:12.004,rx:6.002}),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 87.302)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),r().createElement("rect",{fill:"#E3EBF4",x:0,y:1.091,width:20.668,height:20.734,rx:10.334}),r().createElement("path",{d:"M35.365.861h82.647a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M34.274 15.048H174.58a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M33.182 24.869h113.119a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 128.77)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),r().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),r().createElement("path",{d:"M35.365.861h110.929a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M34.274 15.048h92.443a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})))),r().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},r().createElement("path",{fill:"#446275",d:"M72.246 84.033l8.66 5-35.5 61.488-8.66-5-12.556-24.729-51.307-29.622 20.431-35.388 50.648 29.242z"}),r().createElement("path",{d:"M62.906 120.21l-80.091-46.24 10.5-18.188 50.647 29.242 28.284-.99 8.66 5-18 31.176z",fillOpacity:.2,fill:"#FFF"}),r().createElement("path",{d:"M27.566 75.558L3.877 109.065l-5.013-2.895 26.045-32.146 2.657 1.534zm9.467 5.466L13.345 114.53l-5.014-2.895L34.377 79.49l2.656 1.534zm8.158 4.71l-22.32 34.297-5.013-2.895L43.903 84.99l1.288.744z",fill:"#527585"}),r().createElement("path",{d:"M11.524 90.544l13.385-16.52 2.657 1.534-12.174 17.22-3.868-2.234zm9.467 5.467L34.377 79.49l2.656 1.534-12.174 17.22-3.868-2.233zm9.527 5.5L43.903 84.99l1.288.744-11.47 17.626-3.203-1.85z",fill:"#76A2B5",opacity:.6}),r().createElement("path",{d:"M.355 59.848l-23.689 33.507-5.013-2.895 26.045-32.146 2.657 1.534zm9.468 5.466L-13.866 98.82l-5.013-2.895L7.166 63.78l2.657 1.534zm8.158 4.71L-4.34 104.32l-5.014-2.895L16.692 69.28l1.289.744z",fillOpacity:.1,fill:"#000"}),r().createElement("g",null,r().createElement("path",{fill:"url(#EmptySearchResults_svg__c)",opacity:.993,filter:"url(#EmptySearchResults_svg__d)",d:"M.63 0h173.74L123 172H52z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"url(#EmptySearchResults_svg__e)",opacity:.3,d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"url(#EmptySearchResults_svg__f)",opacity:.3,d:"M4 2h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"url(#EmptySearchResults_svg__g)",d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"#FFF",opacity:.196,d:"M212.363 205.344l-1 1.732L60.418 124.52l4.977-8.62z"})),r().createElement("path",{fill:"#76A2B5",d:"M73.112 84.533l-35.5 61.488-.866-.5 35.5-61.488z"}),r().createElement("path",{fill:"#F3F3F3",d:"M80.906 89.033l-35.5 61.488-.866-.5 35.5-61.488z"}),r().createElement("path",{fill:"#538196",d:"M55.112 115.71l-17.5 30.311-.866-.5 17.5-30.31z"})))),SELECT_ATTRIBUTES:e=>r().createElement("svg",p({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),r().createElement("mask",{id:"SelectAttributes_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},r().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),r().createElement("g",{mask:"url(#SelectAttributes_svg__a)"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#SelectAttributes_svg__paint0_linear_0_19219)"}),r().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z",fill:"url(#SelectAttributes_svg__paint1_linear_0_19219)"}),r().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M47 58h202a7 7 0 017 7v157a7 7 0 01-7 7H47a7 7 0 01-7-7V65a7 7 0 017-7z",fill:"#000"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 56h201a5 5 0 015 5v157a5 5 0 01-5 5H50a5 5 0 01-5-5V61a5 5 0 015-5z",fill:"#fff"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 72.635a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 84.635a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 163a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 175a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 193a3 3 0 013-3H190a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 205a3 3 0 013-3h74.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 103a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 115a3 3 0 013-3h64.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),r().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 133a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 145a3 3 0 013-3h74.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M92.514 108v-8h-2V140.365h11.178v-2h-9.178V110h9.178v-2h-9.178z",fill:"#2B98F0"}),r().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),r().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M50 22h186a6 6 0 016 6v18a6 6 0 01-6 6H50a6 6 0 01-6-6V28a6 6 0 016-6z",fill:"#fff"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zM148 37a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z",fill:"#979797"})),r().createElement("defs",null,r().createElement("linearGradient",{id:"SelectAttributes_svg__paint0_linear_0_19219",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),r().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"SelectAttributes_svg__paint1_linear_0_19219",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:.01}),r().createElement("stop",{offset:1})))),NO_DATA:e=>r().createElement("svg",u({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),r().createElement("defs",null,r().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__b"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:0,offset:"0%"}),r().createElement("stop",{stopColor:"#F4F4F4",offset:"100%"})),r().createElement("linearGradient",{x1:"69.573%",y1:"86.747%",x2:"38.144%",y2:"33.403%",id:"NoData_svg__d"},r().createElement("stop",{stopColor:"#000",stopOpacity:0,offset:"0%"}),r().createElement("stop",{stopColor:"#000",offset:"100%"})),r().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__e"},r().createElement("stop",{stopColor:"#EEFBFF",offset:"0%"}),r().createElement("stop",{stopColor:"#0072CE",offset:"100%"})),r().createElement("filter",{x:"-7.7%",y:"-7.5%",width:"115.3%",height:"115%",filterUnits:"objectBoundingBox",id:"NoData_svg__f"},r().createElement("feOffset",{dx:0,dy:2,in:"SourceAlpha",result:"shadowOffsetOuter1"}),r().createElement("feGaussianBlur",{stdDeviation:2,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),r().createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0",type:"matrix",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),r().createElement("feMerge",null,r().createElement("feMergeNode",{in:"shadowMatrixOuter1"}),r().createElement("feMergeNode",{in:"SourceGraphic"}))),r().createElement("circle",{id:"NoData_svg__a",cx:128,cy:128,r:128})),r().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r().createElement("mask",{id:"NoData_svg__c",fill:"#fff"},r().createElement("use",{xlinkHref:"#NoData_svg__a"})),r().createElement("use",{fillOpacity:.1,fill:"#0072CE",xlinkHref:"#NoData_svg__a"}),r().createElement("path",{fill:"url(#NoData_svg__b)",mask:"url(#NoData_svg__c)",d:"M0 9h256v247H0z"}),r().createElement("g",{mask:"url(#NoData_svg__c)"},r().createElement("g",{transform:"translate(29 37)"},r().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},r().createElement("path",{fillOpacity:.8,opacity:.5,d:"M14.565 8h228.144v176.476H14.565z"}),r().createElement("path",{d:"M0 8.01C0 3.586 3.576 0 7.997 0h223.838a7.997 7.997 0 017.997 8.01v152.401c0 4.424-3.577 8.01-7.997 8.01H7.997A7.997 7.997 0 010 160.411V8.01z"})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 42.105)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),r().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),r().createElement("path",{d:"M32.488.791h64.093a3.509 3.509 0 110 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M31.486 13.824h115.902a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),r().createElement("rect",{fill:"#645F6D",opacity:.5,x:19.986,y:16.04,width:79.944,height:11.028,rx:5.514}),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 80.2)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),r().createElement("rect",{fill:"#E3EBF4",x:0,y:1.003,width:18.987,height:19.048,rx:9.493}),r().createElement("path",{d:"M32.488.791h75.925a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M31.486 13.824h128.893a2.506 2.506 0 110 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M30.483 22.846h103.918a1.504 1.504 0 010 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 118.296)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),r().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),r().createElement("path",{d:"M32.488.791h101.906a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M31.486 13.824h84.924a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})))),r().createElement("g",{mask:"url(#NoData_svg__c)"},r().createElement("path",{d:"M154.445 45.134v154.072H36.625V45.134h.811C35.508 62.52 41.07 80.609 54.12 93.944c22.74 23.235 59.61 23.235 82.352 0 13.05-13.335 18.612-31.424 16.683-48.81h1.29z",fill:"url(#NoData_svg__d)",opacity:.1,transform:"rotate(-30 291.014 34.548)"}),r().createElement("path",{d:"M27.473 93.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"url(#NoData_svg__e)",opacity:.2,transform:"translate(70 86)"}),r().createElement("g",{filter:"url(#NoData_svg__f)",strokeWidth:1,fill:"none",transform:"translate(70 86)"},r().createElement("path",{d:"M59.697 0c32.97 0 59.697 26.746 59.697 59.738 0 15.185-5.662 29.047-14.988 39.587l51.204 51.24a89.336 89.336 0 01-10.097 9.392l-51.38-51.416c-9.73 6.888-21.61 10.936-34.436 10.936C26.727 119.477 0 92.73 0 59.738 0 26.746 26.727 0 59.697 0zm0 17.756c-23.17 0-41.953 18.796-41.953 41.982s18.783 41.982 41.953 41.982 41.953-18.796 41.953-41.982-18.783-41.982-41.953-41.982z",fill:"#B5C8C9"}),r().createElement("path",{d:"M21.508 105.656C8.365 94.698 0 78.196 0 59.738 0 26.746 26.727 0 59.697 0c18.444 0 34.935 8.37 45.885 21.523l-9.794 9.8c-8.408-10.68-21.45-17.537-36.091-17.537-25.361 0-45.92 20.573-45.92 45.952 0 14.652 6.852 27.702 17.525 36.117l-9.794 9.8z",fillOpacity:.4,fill:"#FFF"})),r().createElement("path",{d:"M97.473 179.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"#D9F5FF",opacity:.4,style:{mixBlendMode:"soft-light"}}),r().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.87,fill:"#000",style:{mixBlendMode:"overlay"}}),r().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.38,fill:"#3C74B4"})))),ERROR:e=>r().createElement("svg",m({width:88,height:88,viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r().createElement("mask",{id:"Error_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:88,height:88},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),r().createElement("g",{mask:"url(#Error_svg__a)"},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:.3}),r().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),r().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),r().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),r().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),r().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),r().createElement("path",{opacity:.5,d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.3,d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.8,d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),r().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.2,d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),r().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),r().createElement("g",{filter:"url(#Error_svg__filter0_d)"},r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),r().createElement("path",{opacity:.15,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),r().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),r().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),r().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),r().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#Error_svg__paint0_linear)"}),r().createElement("g",{filter:"url(#Error_svg__filter1_d)"},r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),r().createElement("g",{filter:"url(#Error_svg__filter2_d)"},r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),r().createElement("defs",null,r().createElement("filter",{id:"Error_svg__filter0_d",x:36.219,y:37.875,width:42.375,height:42.375,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:2}),r().createElement("feGaussianBlur",{stdDeviation:2}),r().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"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"Error_svg__filter1_d",x:51.688,y:62.625,width:11.438,height:11.438,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:2}),r().createElement("feGaussianBlur",{stdDeviation:2}),r().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"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"Error_svg__filter2_d",x:51.688,y:44.063,width:11.438,height:23.813,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:2}),r().createElement("feGaussianBlur",{stdDeviation:2}),r().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"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("linearGradient",{id:"Error_svg__paint0_linear",x1:68.438,y1:71.571,x2:60.119,y2:58.801,gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:0}),r().createElement("stop",{offset:1}))))},g=e=>{let{variant:t=h.full,LogoRenderer:a=y.SEARCH_RESULTS,text:l,secondaryText:n,buttonTitle:d,onClick:p=o.identity,access:u}=e;const m=f(),g=u&&d;return r().createElement("div",{className:i()(m.root,m[`root_${t}`])},r().createElement(a,{className:m[`${t}`]}),r().createElement("div",{className:m.textBox},r().createElement(c.Z,{variant:"h5",classes:{h5:m.text}},l),n&&r().createElement(c.Z,{variant:"subtitle1",classes:{subtitle1:m.secondaryText}},n)),g&&r().createElement(s.Z,{className:m.button,variant:"contained",color:"primary",onClick:p},d))}},7882:(e,t,a)=>{a.d(t,{Z:()=>n});var l=a(24328),r=a.n(l);class n extends r().Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){this.setState({error:e}),console.error(e)}render(){const{children:e,error:t}=this.props;return this.state.error?t:e}}},58003:(e,t,a)=>{a.d(t,{Z:()=>o});var l=a(24328),r=a.n(l),n=a(88267);const i=()=>r().createElement("div",{style:{display:"none"}}),o=e=>{let{widthToHide:t,children:a}=e;return r().createElement(n.Z,{handleWidth:!0,render:e=>{let{width:l}=e;return l>t?r().createElement(r().Fragment,null,a):r().createElement(i,null)}})}},14593:(e,t,a)=>{a.d(t,{Z:()=>N});var l=a(24328),r=a.n(l),n=a(66244),i=a.n(n),o=a(88267),c=a(50914),s=a(71153),d=a.n(s);function p(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){u(e,t,a[t])}))}return e}function u(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function m(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}const f=e=>{let{x:t,y:a,width:l,height:r,id:n,minWidth:i,minHeight:o,maxWidth:c,maxHeight:s,isStatic:d}=e;return{x:t,y:a,w:l,h:r,minW:i,minH:o,maxW:c,maxH:s,i:n,static:d}},h=e=>{let{x:t,y:a,w:l,h:r,maxW:n,minW:i,minH:o,maxH:c,i:s}=e;return{x:t,y:a,width:l,height:r,minWidth:i,minHeight:o,maxWidth:n,maxHeight:c,id:s,isStatic:m(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},y=e=>(e||[]).map(h),g=(0,c.curry)(((e,t)=>(e||[]).find((0,c.propEq)("id",t)))),E=(0,c.curry)(((e,t,a)=>(0,c.mergeAll)([a,(0,c.pick)(e,t)]))),v=(0,c.curry)(((e,t,a)=>(a||[]).map((a=>(0,c.pipe)((0,c.prop)("id"),g(t),(0,c.defaultTo)({}),E(e,c.__,a))(a))))),x=(0,c.curry)(((e,t)=>t.map((a=>{const l=t.filter((e=>e.y===a.y)).map((t=>e[t.id]||!t.autosizing&&t.minHeight||0)),r=Math.max(...l);if(a.height!==r&&r){const e=a.autosizing?{minHeight:r,maxHeight:r}:{};return p({},a,e,{height:r})}return a})))),b=(0,c.curry)(((e,t)=>t.map((t=>{const a=e[t.id];return a&&t.autosizing?p({},t,{minHeight:a,maxHeight:a,height:a}):t}))));var O=a(79573),w=a(72342),S=a(98952);const T=(0,w.makeStyles)((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"},"&.customView .react-resizable-handle":{width:"10px",height:"10px"},"&.cssTransforms":{transitionProperty:"transform"},"&.react-draggable-dragging":{transition:"none",zIndex:8,willChange:"transform","& .react-resizable-handle":{backgroundImage:"none"}},"& .react-resizable-handle":{position:"absolute",width:"14px",height:"14px",bottom:0,right:0,zIndex:20,backgroundImage:`url('${(0,S.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"}},isResizing:{zIndex:9,willChange:"width, height",pointerEvents:"none"}})));function R(){return R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},R.apply(this,arguments)}const _={cols:4,rowHeight:30,margin:[15,15]},A=e=>{let{views:t,layout:a,layoutOptions:n=_,onLayoutChanged:s=O.ZT,draggableHandle:p,LayoutItem:u,onRemove:m,onDrop:E,droppingItem:w,isDroppable:S,isStatic:A,classes:N,onResize:D=O.ZT}=e;const I=(0,l.useRef)(),C=(0,l.useRef)({}),M=T(),[k,L]=(0,l.useState)(null),[P,F]=(0,l.useState)(null),[B,j]=(0,l.useState)(0),{cols:z,rowHeight:U,margin:V}=n,H=(0,l.useMemo)((()=>(e=>(e||[]).map(f))(a)),[a]),Y=(0,c.pipe)(y,v(["autosizing"],a),(0,c.ifElse)((0,c.always)(A),x(C.current),b(C.current)),s),W=(0,l.useCallback)((e=>F((t=>t?null:e))),[]),G=null!==P;return r().createElement(r().Fragment,null,r().createElement(o.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>j(e)}),!!B&&r().createElement(i(),{innerRef:I,layout:H,cols:z,draggableHandle:p,autoSize:!0,rowHeight:U,width:B,margin:V,onLayoutChange:A?void 0:Y,isResizable:!A&&!G,isDraggable:!A&&!G,className:d()(null==N?void 0:N.root,M.gridLayout,{[M.gridFullscreen]:G}),onDrop:(e,t,a)=>{E&&E(y(e),h(t),a)},droppingItem:w,isDroppable:!A&&S,onResizeStart:(e,t)=>L(t.i),onResizeStop:()=>L(null),onResize:D,"data-reltio-id":"reltio-grid-layout"},H.map((e=>{const l=P===e.i,i=k===e.i,c=(g(a,e.i)||{}).autosizing?{AutosizeComponent:(s=e.i,r().createElement(o.Z,{handleHeight:!0,onResize:(e,t)=>{if(t){const e=((e,t)=>{const{margin:a,rowHeight:l}=t;return Math.ceil((e+a[1])/(l+a[1]))})(t,n);e!==C.current[s]&&(C.current[s]=e,Y(H))}}}))}:{};var s;return r().createElement(u,R({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:W,onRemove:m,className:d()(null==N?void 0:N.item,{static:A,fullscreen:l,[M.isResizing]:i}),isFullscreen:l},c))}))))};A.displayName="ReltioGridLayout";const N=(0,l.memo)(A)},29742:(e,t,a)=>{a.d(t,{Z:()=>g});var l=a(24328),r=a.n(l),n=a(13264),i=a(2507),o=a.n(i),c=a(39475),s=a(98538),d=a(50914),p=a(80852),u=a(95341),m=a(79312);const f=(0,a(72342).makeStyles)((e=>({menuItem:{height:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px"},checkbox:{padding:0,marginRight:"15px"}}))),h=(0,l.forwardRef)(((e,t)=>{let{item:a,onMenuClose:l=d.identity}=e;const n=f(),{text:i,onClick:o,id:c,selected:s}=a;return r().createElement(u.Z,{classes:{root:n.menuItem},onClick:e=>{l(e),o(e)},ref:t,"data-modal":!0,"data-reltio-id":`reltio-settings-menu-item${c}`},r().createElement(p.Z,{checked:s,className:n.checkbox,color:"primary"}),r().createElement(m.Z,{classes:{root:n.menuText}},i))}));h.displayName="SettingsMenuItemRenderer";const y=h,g=e=>{let{items:t,menuId:a}=e;return r().createElement(s.Z,{buttonComponent:c.k,buttonProps:{icon:n.Z,tooltipTitle:o().text("Settings"),size:"L"},menuId:a,menuItems:t,MenuItemRenderer:y})}},21210:(e,t,a)=>{a.d(t,{Z:()=>c});var l=a(24328),r=a.n(l),n=a(98952),i=a(42639),o=a(14596);const c=e=>{let{sourceType:t,className:a,classes:l}=e;const c=(0,o.AH)(),{uri:s,icon:d}=(0,n.PWK)(c,t)||{},p=s?(0,n.tH7)(c,s)[0]:"",u=d?(0,n.vPL)("https://s3.amazonaws.com/reltio.images/api",d):null;return r().createElement(i.Z,{className:a,avatarText:p,icon:u,variant:"square",rootClasses:l})}},55310:(e,t,a)=>{a.d(t,{Z:()=>c});var l=a(13980),r=a.n(l),n=a(24328),i=a.n(n);const o=e=>{let{height:t,margin:a}=e;return i().createElement("div",{style:{width:"1px",height:`${t}px`,borderLeft:"1px solid rgba(0,0,0,0.38)",margin:`0 ${a}px`,flexShrink:"0"}})};o.propTypes={height:r().number,margin:r().number};const c=o},39878:(e,t,a)=>{a.d(t,{n:()=>s,Z:()=>d});var l=a(24328),r=a.n(l),n=a(98952),i=a(50914);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}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=(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]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){c(e,t,a[t])}))}return e}({},e,{percent:t[a]})))},d=e=>{const t=t=>{let{data:a}=t,n=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(t,["data"]);const i=(0,l.useMemo)((()=>a&&s(a)),[a]);return r().createElement(e,o({data:i},n))};return t.displayName="WithPercents",t}},59383:(e,t,a)=>{a.d(t,{d:()=>r});const l=(0,a(72342).makeStyles)({clickable:{cursor:"pointer"}}),r=e=>{const t=l();return e?t.clickable:void 0}},17569:(e,t,a)=>{a.d(t,{o:()=>i});var l=a(24328),r=a(50914);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 i=e=>{let{actions:t,dispatch:a}=e;return(0,l.useMemo)((()=>Object.entries(t).reduce(((e,t)=>{let[l,i]=t;return function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){n(e,t,a[t])}))}return e}({},e,{[l]:(0,r.pipe)(i,a)})}),{})),[a,t])}},11326:(e,t,a)=>{a.d(t,{a:()=>r});var l=a(24328);const r=e=>{const[t,a]=(0,l.useState)(!1),[r,n]=(0,l.useState)({});return(0,l.useEffect)((()=>{e().then((e=>{n(e||{})})).then((e=>a(!0))).catch((e=>a(!0)))}),[]),{isLoaded:t,savedState:r}}},39034:(e,t,a)=>{a.d(t,{o:()=>l});let l=function(e){return e.INIT="init",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error",e}({})},43129:(e,t,a)=>{a.d(t,{Z:()=>o});var l=a(24328),r=a.n(l),n=a(30750);const i=(0,a(72342).makeStyles)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),o=()=>{const e=i();return r().createElement(n.Z,{color:"primary",className:e.loader,"data-reltio-id":"dashboard-item-loader"})}},60355:(e,t,a)=>{a.d(t,{Z:()=>u});var l=a(24328),r=a.n(l),n=a(18960),i=a(95341),o=a(83993),c=a(82056),s=a(87037),d=a(50985);const p=(0,a(72342).makeStyles)((()=>({menuItemTitle:{fontSize:"13px",lineHeight:"15px"},openIcon:{padding:"4px",borderRadius:"2px",marginRight:"-10px"}}))),u=e=>{let{items:t}=e;const[a,u]=(0,l.useState)(null),m=Boolean(a),f=p(),h=()=>u(null),y=e=>()=>{h(),e()};return r().createElement(r().Fragment,null,r().createElement(s.Z,{className:f.openIcon,"aria-controls":"menu","aria-haspopup":"true",onClick:e=>u(e.currentTarget),size:"large"},r().createElement(d.Z,null)),r().createElement(n.Z,{id:"facet-menu",anchorEl:a,open:m,onClose:h,elevation:2,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},t.filter((e=>e.active)).map((e=>{let{id:t,icon:a,title:l,action:n,disabled:s=!1}=e;return r().createElement(i.Z,{key:t,onClick:y(n),disabled:s},r().createElement(o.Z,null,a),r().createElement(c.Z,{classes:{primary:f.menuItemTitle}},l))}))))}},65298:(e,t,a)=>{a.d(t,{Z:()=>c});var l=a(24328),r=a.n(l),n=a(82565),i=a(52388);const o=(0,a(72342).makeStyles)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden",boxShadow:"none"}}))),c=e=>{let{id:t,children:a}=e;const l=o();return r().createElement(i.H.Provider,{value:t},r().createElement(n.Z,{className:l.view,"data-reltio-id":`layout-item-${t}`},a))}},52388:(e,t,a)=>{a.d(t,{H:()=>r});var l=a(24328);const r=a.n(l)().createContext(null);r.displayName="DashboardViewIdContext"},45039:(e,t,a)=>{a.r(t),a.d(t,{ChartsDataProvider:()=>de,DQDashboardStateProvider:()=>Q,DVFContext:()=>ce,PermissionsProvider:()=>ee,ReloadFacetProvider:()=>v,ViewsFactory:()=>zo,default:()=>ws,useChartsDataContext:()=>pe,useChartsDataRequest:()=>gt,useDQDashboardState:()=>K,useDQDashboardStateActions:()=>X,useDVF:()=>ue,useDvfConfigLink:()=>me,useReloadFacet:()=>x});var l=a(24328),r=a.n(l),n=a(40476),i=a(73696),o=a(72342),c=a(54426),s=a(40855),d=a(41633),p=a(9366),u=a(98952),m=a(50914),f=a(37164),h=a(39034);const y=(0,l.createContext)(null),g=(0,l.createContext)(null),E=(0,l.createContext)(null),v=e=>{let{children:t}=e;const[a,n]=(0,l.useState)({}),[i,o]=(0,l.useState)({}),c=(0,l.useCallback)((e=>o(e?(0,m.assoc)(e,{}):{})),[]),s=(0,l.useCallback)((e=>{n((t=>{const a=(0,m.propOr)(0,e,t)+1;return(0,m.assoc)(e,a,t)}))}),[n]);return r().createElement(g.Provider,{value:s},r().createElement(y.Provider,{value:a},r().createElement(E.Provider,{value:{updateTime:e=>{let{dataLevel:t,actionId:a}=e;const l=Date.now();o((0,m.assocPath)([t,a],l))},updateTimes:i,resetUpdateTimes:c}},t)))},x=e=>{let{state:t,reload:a,dataLevel:r}=e;const n=(0,l.useContext)(y);if(void 0===n)throw new Error("useReloadFacet must be used within a ReloadFacetProvider");const i=n[r];(0,l.useEffect)((()=>{t!==h.o.LOADED&&t!==h.o.ERROR||a()}),[i])},b=e=>{let{action:t,dataLevel:a}=e;const{updateTime:r}=(0,l.useContext)(E),n=(0,l.useMemo)((()=>(0,f.x0)()),[]);return(0,l.useCallback)((()=>{r({actionId:n,dataLevel:a}),t()}),[t,a])},O=e=>{const{updateTimes:t,resetUpdateTimes:a}=(0,l.useContext)(E);return{updateTime:Math.min(...Object.values(t[e]||{})),resetUpdateTimes:a}};var w=a(52730),S=a(19701),T=a(45738);function R(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const _=(0,m.omit)(["LAST_DAY"],function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){R(e,t,a[t])}))}return e}({},u.bZE));var A=a(95038),N=a.n(A);const D=e=>{const t=N()();return e===u.bZE.LAST_WEEK?[N()(t).subtract(6,"days").valueOf(),t.valueOf()]:(0,u.VQ1)(e)},I=(0,m.path)([0,"uri"]),C=Object.values(_),M=(0,m.pipe)(D,(0,m.defaultTo)([]),(0,m.map)((e=>e&&new Date(e))));var k=a(79573),L=a(17569);function P(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){F(e,t,a[t])}))}return e}function F(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const B=(0,l.createContext)(null),j=(0,l.createContext)(null),z="SET_SELECTED_ENTITY_TYPE",U="SET_SELECTED_ATTRIBUTE_TYPE",V="CHANGE_PERIOD",H="CHANGE_ZOOM",Y="CHANGE_OV_STATE",W="ADD_EXPORT_LOADING_ID",G="DELETE_EXPORT_LOADING_ID",Z={setEntityType:(0,k.zD)(z),setDetailedAttributeType:(0,k.zD)(U),changeZoom:(0,k.zD)(H),changePeriod:(0,k.zD)(V),changeSearchByOv:(0,k.zD)(Y),addExportLoadingId:(0,k.zD)(W),deleteExportLoadingId:(0,k.zD)(G)},q=e=>new Date(e[0])>new Date(e[1])?[e[1],e[0]]:e,$=(e,t)=>{switch(t.type){case U:return P({},e,{detailedAttributeType:t.payload});case z:return P({},e,{entityType:t.payload});case V:return P({},e,{period:t.payload,dateRange:t.payload},t.payload?{zoom:null}:{});case H:return P({},e,t.payload?{zoom:q(t.payload),dateRange:[new Date(q(t.payload)[0]),new Date(q(t.payload)[1])]}:{});case Y:return P({},e,{searchByOv:t.payload});case W:return P({},e,{exportLoadingIds:P({},e.exportLoadingIds,{[t.payload]:!0})});case G:return P({},e,{exportLoadingIds:(0,m.dissoc)(t.payload,e.exportLoadingIds)})}},Q=e=>{let{children:t}=e;const[a,n]=(0,l.useReducer)($,{detailedAttributeType:null}),i=(0,L.o)({actions:Z,dispatch:n});return r().createElement(B.Provider,{value:a},r().createElement(j.Provider,{value:i},t))},K=()=>{const e=(0,l.useContext)(B);if(void 0===e)throw new Error("useViewState must be used within a DQDashboardStateProvider");return e},X=()=>{const e=(0,l.useContext)(j);if(void 0===e)throw new Error("useDQDashboardStateActions must be used within a DQDashboardStateProvider");return e},J=r().createContext(null),ee=e=>{var t,a;let{children:n,config:i}=e;const{permissions:o,requestState:c}=(()=>{const[e,t]=(0,l.useState)(null),[a,r]=(0,l.useState)(h.o.INIT),n=(0,S._)(),i=(0,w.useSelector)(T.ZP.selectors.getApiPath),o=(0,w.useSelector)(T.ZP.selectors.getTenant),c=e=>{t(e),r(h.o.LOADED)},s=e=>{console.warn(e),r(h.o.ERROR),t(null)},d=(0,l.useCallback)((()=>{r(h.o.LOADING),n((0,u.LCU)({tenant:o,apiPath:i})).then(c).catch(s)}),[i,o]);return(0,l.useEffect)((()=>{d()}),[d]),(0,l.useMemo)((()=>({permissions:e,requestState:a,reload:d})),[e,a])})(),s=null===(t=K())||void 0===t||null===(a=t.entityType)||void 0===a?void 0:a.uri,d=(0,w.useSelector)(T.ZP.selectors.getUserRoles),p=(0,w.useSelector)(T.ZP.selectors.getCanUserGetDQStatistic),f=(0,l.useMemo)((()=>c===h.o.LOADED&&(e=>{let{roles:t,tenantPermissions:a,entityTypeUri:l}=e;const r=e=>{let{filter:t,access:a}=e;return a&&(0,m.includes)("READ",a)&&!t},n=(e,t)=>(e||[]).filter((0,m.pipe)((0,m.prop)("role"),(0,m.includes)(m.__,t))),i=e=>{var t;return null===(t=a.find((0,m.propEq)("uri",e)))||void 0===t?void 0:t.permissions},o=n(i("configuration"),t),c=n(i(l),t);return(0,m.isEmpty)(o)?!!(0,m.isEmpty)(c)||c.some(r):o.some(r)})({roles:d,tenantPermissions:o,entityTypeUri:s})),[o,c,d,s]),y=!(0,m.isEmpty)(o),{showTimeSeries:g=!0,showErrorBands:E=!1,showExportButton:v=!0}=i;return r().createElement(J.Provider,{value:{isTimeSeriesAvailable:g&&f,hasRestrictions:y,canGetDQStatistic:p,permissionsLoadingState:c,showErrorBands:E,showExportButton:v}},n)},te=()=>(0,l.useContext)(J);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 le=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){ae(e,t,a[t])}))}return e}({},u.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}});var re=a(2507),ne=a.n(re),ie=a(11326),oe=a(35828);const ce=r().createContext(null);ce.displayName="DVFContext";const se=r().createContext(null),de=e=>{let{children:t}=e;const[a,n]=(0,l.useState)({});return r().createElement(se.Provider,{value:{chartsData:a,changeChartsData:e=>n(e)}},t)},pe=()=>(0,l.useContext)(se),ue=e=>{const[t,a]=(0,l.useState)([]),[r,n]=(0,l.useState)(h.o.INIT),[i,o]=(0,l.useState)(),c=(0,w.useSelector)(T.ZP.selectors.getTenant),s=(0,w.useSelector)(T.ZP.selectors.getDVFPath),d=(0,S._)(),p=(0,w.useSelector)(T.ZP.selectors.getEnvironment),m=(0,w.useSelector)(T.ZP.selectors.getCanUserReadDVF),f=e=>{console.warn(e),n(h.o.ERROR),a([]),o(null==e?void 0:e.errorCode)},y=e=>{a((null==e?void 0:e.functions)||[]),o(void 0),n(h.o.LOADED)},g=(0,l.useCallback)((()=>{if(m)return e&&p?(o(void 0),n(h.o.LOADING),d((0,u.HaQ)({dvfPath:s,tenant:c,entityTypeUri:e,env:p})).then(y).catch(f)):void 0;f({errorCode:u.Xt7.ACCESS_DENIED})}),[s,c,e,p]);return(0,l.useEffect)((()=>{g()}),[g]),(0,l.useMemo)((()=>({data:t,state:r,reload:g,errorCode:i})),[t,r,g,i])},me=e=>{const[t,a]=(0,l.useState)(null),[r,n]=(0,l.useState)(null),i=(0,S._)(),o=(0,w.useSelector)(T.ZP.selectors.getServicesPath),c=(0,w.useSelector)(T.ZP.selectors.getEnvironment),s=(0,w.useSelector)(T.ZP.selectors.getTenant);return(0,l.useEffect)((()=>{i((0,u.JUW)({servicesPath:o,tenant:s,environment:c})).then((e=>{var t;const l=null==e||null===(t=e.data)||void 0===t?void 0:t.apps.find((0,m.propEq)("name","Console")).uri;a("string"==typeof l?l:null)})).catch((()=>a(null)))}),[c,s,o]),(0,l.useEffect)((()=>{const a=t&&null!=e&&e.uri?(0,m.pipe)((0,m.split)("?"),(0,m.insert)(1,`datamodeler/entityDetails/${(0,u.nIW)(e.uri)}/validation?`),(0,m.join)(""))(t):null;n(a)}),[e,t]),r},fe=e=>{const[t,a]=(0,l.useState)(null),[r,n]=(0,l.useState)(h.o.INIT),i=(0,S._)(),o=e=>{let{type:t}=e;a(t),n(h.o.LOADED)},c=e=>{console.warn(e),n(h.o.ERROR),a(null)},s=(0,l.useCallback)((()=>{n(h.o.LOADING);const t=(0,u.Uqd)()([{fieldName:"type",filter:u.j5E.EQUALS,values:(0,m.pluck)("uri",e)}]);i((0,u.FK9)({query:(0,u.ECL)({activeness:"active",filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]})).then(o).catch(c)}),[e]);return(0,l.useEffect)((()=>{s()}),[s]),(0,l.useMemo)((()=>({getEntityCount:e=>Number((null==t?void 0:t[(0,u.nIW)(e)])||null),state:r})),[t,r])};var he=a(39878);let ye=function(e){return e.STRING="string",e.FLOAT="float",e.INTEGER="integer",e.BOOLEAN="boolean",e.DATE="date",e.SSN="SSN",e.UNKNOWN="unknown",e}({});function ge(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var Ee=function(e){return e.UNSUPPORTED="unsupported",e.SUMMARY="summary",e.MONTH_DISTRIBUTION="monthDistribution",e.DAY_OF_WEEK_DISTRIBUTION="dayOfWeekDistribution",e.DAY_OF_MONTH_DISTRIBUTION="dayOfMonthDistribution",e.RDM_TRANSCODE="rdmTranscode",e}(Ee||{});const ve=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){ge(e,t,a[t])}))}return e}({},u.N0y,Ee);let xe=function(e){return e.RDM_LOOKUP_EXIST="rdmLookupExist",e.RDM_LOOKUP_NOT_EXIST="rdmLookupNotExist",e}({});const be={[u.yn8.ATTRIBUTE_TYPE]:[{id:"FillRateView",type:ve.FILL_RATE,title:ne().text("Fill rate")},{id:"UniquenessAnalysisView",type:ve.UNIQUENESS,title:ne().text("Uniqueness analysis")},{id:"SummaryView",type:ve.SUMMARY,title:ne().text("Summary")},{id:"ValidationView",type:ve.DATA_VALIDATION,title:ne().text("Profiles with invalid data")},{id:"FrequencyAnalysis",type:ve.FREQUENCY,title:ne().text("Frequency analysis")},{id:"LengthStatistics",type:ve.LENGTH_STATISTIC,title:ne().text("Length statistics")},{id:"PatternAnalysis",type:ve.PATTERN,title:ne().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:ve.CROSSWALK_ANALYSIS,title:ne().text("Source system analysis")},{id:"ValueDistribution",type:ve.VALUE_DISTRIBUTION,title:ne().text("Value distribution")},{id:"UnsupportedDataType",type:ve.UNSUPPORTED,title:ne().text("Unsupported Data Type")},{id:"FillRateViewTimeSeries",type:ve.FILL_RATE,title:ne().text("Fill rate over time"),options:{timeSeries:!0}},{id:"UniquenessAnalysisViewTimeSeries",type:ve.UNIQUENESS,title:ne().text("Uniqueness analysis over time"),options:{timeSeries:!0}},{id:"ValidationViewTimeSeries",type:ve.DATA_VALIDATION,title:ne().text("Profiles with invalid data over time"),options:{timeSeries:!0}}],[u.yn8.ENTITY_TYPE]:[{id:"SummaryView",type:ve.SUMMARY,title:ne().text("Summary")},{id:"ValidationView",type:ve.DATA_VALIDATION,title:ne().text("Profiles with invalid data")},{id:"ConsolidationRate",type:ve.CONSOLIDATION_RATE,title:ne().text("Consolidation rate")},{id:"RDMTranscode",type:ve.RDM_TRANSCODE,title:ne().text("RDM value mapping status")}]},Oe={[u.yn8.ATTRIBUTE_TYPE]:{today:{default:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:3,height:19,id:"FrequencyAnalysis"},{x:3,y:19,width:3,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:6,height:19,id:"LengthStatistics"}],[ye.SSN]:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:3,height:19,id:"FrequencyAnalysis"},{x:3,y:19,width:3,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:3,height:19,id:"PatternAnalysis"}],[ye.BOOLEAN]:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"FrequencyAnalysis"},{x:0,y:19,width:3,height:19,id:"CrosswalkAnalysis"}],[ye.DATE]:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:3,height:19,id:"FrequencyAnalysis"},{x:3,y:19,width:3,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:6,height:19,id:"ValueDistribution"}],[ye.INTEGER]:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:3,height:19,id:"FrequencyAnalysis"},{x:3,y:19,width:3,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:6,height:19,id:"ValueDistribution"}],[ye.FLOAT]:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:3,height:19,id:"FrequencyAnalysis"},{x:3,y:19,width:3,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:6,height:19,id:"ValueDistribution"}]},timeRange:{default:[{x:0,y:0,width:6,height:6,id:"SummaryView"},{x:0,y:6,width:3,height:12,id:"ValidationView"},{x:3,y:6,width:3,height:12,id:"ValidationViewTimeSeries"},{x:0,y:18,width:3,height:12,id:"FillRateView"},{x:3,y:18,width:3,height:12,id:"FillRateViewTimeSeries"},{x:0,y:30,width:3,height:12,id:"UniquenessAnalysisView"},{x:3,y:30,width:3,height:12,id:"UniquenessAnalysisViewTimeSeries"},{x:0,y:42,width:3,height:14,id:"FrequencyAnalysis"},{x:3,y:42,width:3,height:14,id:"CrosswalkAnalysis"},{x:0,y:56,width:6,height:19,id:"LengthStatistics"}],SSN:[{x:0,y:0,width:6,height:6,id:"SummaryView"},{x:0,y:6,width:3,height:12,id:"ValidationView"},{x:3,y:6,width:3,height:12,id:"ValidationViewTimeSeries"},{x:0,y:18,width:3,height:12,id:"FillRateView"},{x:3,y:18,width:3,height:12,id:"FillRateViewTimeSeries"},{x:0,y:30,width:3,height:12,id:"UniquenessAnalysisView"},{x:3,y:30,width:3,height:12,id:"UniquenessAnalysisViewTimeSeries"},{x:0,y:42,width:3,height:14,id:"FrequencyAnalysis"},{x:3,y:42,width:3,height:14,id:"CrosswalkAnalysis"},{x:0,y:56,width:3,height:14,id:"PatternAnalysis"}],boolean:[{x:0,y:0,width:6,height:6,id:"SummaryView"},{x:0,y:6,width:3,height:12,id:"ValidationView"},{x:3,y:6,width:3,height:12,id:"ValidationViewTimeSeries"},{x:0,y:18,width:3,height:12,id:"FillRateView"},{x:3,y:18,width:3,height:12,id:"FillRateViewTimeSeries"},{x:0,y:30,width:3,height:12,id:"FrequencyAnalysis"},{x:3,y:30,width:3,height:12,id:"CrosswalkAnalysis"}],date:[{x:0,y:0,width:6,height:6,id:"SummaryView"},{x:0,y:6,width:3,height:12,id:"ValidationView"},{x:3,y:6,width:3,height:12,id:"ValidationViewTimeSeries"},{x:0,y:18,width:3,height:12,id:"FillRateView"},{x:3,y:18,width:3,height:12,id:"FillRateViewTimeSeries"},{x:0,y:30,width:3,height:12,id:"UniquenessAnalysisView"},{x:3,y:30,width:3,height:12,id:"UniquenessAnalysisViewTimeSeries"},{x:0,y:42,width:3,height:14,id:"FrequencyAnalysis"},{x:3,y:42,width:3,height:14,id:"CrosswalkAnalysis"},{x:0,y:56,width:6,height:19,id:"ValueDistribution"}],integer:[{x:0,y:0,width:6,height:6,id:"SummaryView"},{x:0,y:6,width:3,height:12,id:"ValidationView"},{x:3,y:6,width:3,height:12,id:"ValidationViewTimeSeries"},{x:0,y:18,width:3,height:12,id:"FillRateView"},{x:3,y:18,width:3,height:12,id:"FillRateViewTimeSeries"},{x:0,y:30,width:3,height:12,id:"UniquenessAnalysisView"},{x:3,y:30,width:3,height:12,id:"UniquenessAnalysisViewTimeSeries"},{x:0,y:42,width:3,height:14,id:"FrequencyAnalysis"},{x:3,y:42,width:3,height:14,id:"CrosswalkAnalysis"},{x:0,y:56,width:6,height:19,id:"ValueDistribution"}],float:[{x:0,y:0,width:6,height:6,id:"SummaryView"},{x:0,y:6,width:3,height:12,id:"ValidationView"},{x:3,y:6,width:3,height:12,id:"ValidationViewTimeSeries"},{x:0,y:18,width:3,height:12,id:"FillRateView"},{x:3,y:18,width:3,height:12,id:"FillRateViewTimeSeries"},{x:0,y:30,width:3,height:12,id:"UniquenessAnalysisView"},{x:3,y:30,width:3,height:12,id:"UniquenessAnalysisViewTimeSeries"},{x:0,y:42,width:3,height:14,id:"FrequencyAnalysis"},{x:3,y:42,width:3,height:14,id:"CrosswalkAnalysis"},{x:0,y:56,width:6,height:19,id:"ValueDistribution"}]}},[u.yn8.ENTITY_TYPE]:{[xe.RDM_LOOKUP_EXIST]:[{x:0,y:0,width:4,height:7,id:"SummaryView"},{x:4,y:0,width:2,height:7,id:"RDMTranscode"},{x:0,y:7,width:6,height:18,id:"ConsolidationRate"},{x:0,y:25,width:6,height:12,id:"ValidationView"}],[xe.RDM_LOOKUP_NOT_EXIST]:[{x:0,y:0,width:6,height:7,id:"SummaryView"},{x:0,y:7,width:6,height:18,id:"ConsolidationRate"},{x:0,y:25,width:6,height:12,id:"ValidationView"}]}},we=(e,t,a)=>({attributes:(t||[]).map(((t,l)=>{let{filter:r,fieldName:n,values:i=[],uri:o}=t;return{data:{uri:o||(null==a?void 0:a.uri),entityTypeUri:e,fieldName:n},filter:r,id:`attribute_${l}`,operator:u.tJI.and,values:i}})),entityTypes:[e],id:"group",operator:u.tJI.or});function Se(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Te(e,t,a[t])}))}return e}function Te(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,m.map)((e=>Se({},e,{localizedValue:ne().number(e.value)}))),_e=e=>(0,m.isNil)(e)?"":`${e}%`,Ae=e=>(0,m.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),Ne=(0,m.curry)(((e,t,a)=>({advanced:[we(t,a.map((0,m.when)((()=>(0,u.Lt4)(null==e?void 0:e.type)),(0,m.evolve)({values:(0,m.map)((0,u.mOr)(u.ZBU))}))),e)],version:"2.0"}))),De=e=>t=>{let{detailedAttributeType:a,entityTypeUri:l}=t;return(0,m.pipe)(e({fieldName:null==a?void 0:a.fieldName,entityTypeUri:l}),Ne(a,l))},Ie=e=>{switch(e){case u.oS0.TYPE_BLOB:case u.oS0.TYPE_BLOG_URL:case u.oS0.TYPE_CIK_ID:case u.oS0.TYPE_ENTITY_ID:case u.oS0.TYPE_IMAGE_URL:case u.oS0.TYPE_STRING:case u.oS0.TYPE_TEXT:case u.oS0.TYPE_URL:return ye.STRING;case u.oS0.TYPE_COUNT:case u.oS0.TYPE_DOLLAR:case u.oS0.TYPE_INT:case u.oS0.TYPE_LONG:return ye.INTEGER;case u.oS0.TYPE_FLOAT:case u.oS0.TYPE_DOUBLE:case u.oS0.TYPE_NUMBER:return ye.FLOAT;case u.oS0.TYPE_BOOLEAN:case u.oS0.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return ye.BOOLEAN;case u.oS0.TYPE_ACTIVENESS_DATE:case u.oS0.TYPE_DATE:case u.oS0.TYPE_LOCAL_DATE:case u.oS0.TYPE_TIMESTAMP:return ye.DATE;case u.oS0.TYPE_SSN:return ye.SSN;default:return ye.UNKNOWN}},Ce=e=>{let{views:t,supportedViews:a,layout:l}=e;return l.reduce(((e,l)=>{const r=(0,m.prop)("type",t.find((0,m.propEq)("id",l.id))),n=t.findIndex((0,m.propEq)("id",l.id));return-1!==n?a.includes(r)?e.concat(t[n]):e.concat((0,m.assoc)("type",ve.UNSUPPORTED,t[n])):e.concat({id:l.id,type:ve.UNSUPPORTED,title:ne().text("Unsupported")})}),[])},Me=(0,m.pipe)((0,m.defaultTo)([]),(0,m.pluck)("type"),(0,m.filter)((e=>Object.values(u.N0y).includes(e))),m.uniq),ke=e=>{let{percent:t,value:a}=e;return Se({width:`${t}%`},a>0&&{minWidth:"3px"})},Le=((0,m.pipe)((0,m.pluck)("percent"),(e=>Math.max(...e))),(0,m.curry)(((e,t)=>t.map((t=>(0,m.assoc)("label",(0,u.tH7)(e,t.group)||t.label,t)))))),Pe=e=>{let{entityTypeUri:t}=e;return()=>Ne(void 0,t,[])},Fe=e=>+(100*Number(e)).toFixed(1),Be=(0,m.curry)(((e,t)=>t.map((t=>Se({},t,{[e]:"number"==typeof t[e]?Fe(t[e]):null}))))),je=e=>(0,m.all)((0,m.equals)(h.o.LOADED),e)?h.o.LOADED:(0,m.any)((0,m.equals)(h.o.ERROR),e)?h.o.ERROR:(0,m.any)((0,m.equals)(h.o.LOADING),e)?h.o.LOADING:h.o.INIT,ze="No data available",Ue="There are 0 profiles";function Ve(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){He(e,t,a[t])}))}return e}function He(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Ye=e=>e<10?`0${e}`:`${e}`,We=e=>t=>{const a=(e=>(0,m.pipe)((0,m.propOr)([],"statisticData"),(0,m.defaultTo)([]),(0,m.map)((t=>{let{time:a,values:l}=t;return Ve({group:null==a?void 0:a._max_date,label:ne().date(null==a?void 0:a._max_date,"MMM D")},e(l))})),(0,m.sortBy)((0,m.prop)("group"))))(e)(t),l=(e=>(0,m.pipe)((0,m.propOr)([],"anomalyData"),(0,m.map)((t=>{let{time:a,values:l}=t;return{group:null==a?void 0:a._max_date,label:ne().date(null==a?void 0:a._max_date,"MMM D"),anomaly:(0,m.pipe)(e,(0,m.pick)(["lower","upper"]),m.values,(0,m.map)(Fe))(l)}})),(0,m.sortBy)((0,m.prop)("group"))))(e)(t);return(0,m.pipe)((0,m.pluck)("group"),m.uniq,(0,m.map)((e=>Ve({},(0,m.find)((0,m.propEq)("group",e),a),(0,m.find)((0,m.propEq)("group",e),l)))))([...a,...l])},Ge=e=>{const[t,a]=(0,u.RHh)(e,D),l=new Date(t),r=new Date(a);return{startDate:`${l.getFullYear()}-${Ye(l.getMonth()+1)}-${Ye(l.getDate())}`,endDate:`${r.getFullYear()}-${Ye(r.getMonth()+1)}-${Ye(r.getDate())}`}},Ze=e=>{var t;return!(null==e||null===(t=e.options)||void 0===t||!t.timeSeries)},qe=(e,t)=>(0,m.pipe)((0,m.pick)(t),(0,m.cond)([[(0,m.pipe)((0,m.either)((0,m.pipe)(m.keys,(0,m.all)((0,m.equals)("noData"))),m.isEmpty)),(0,m.always)(ne().text(ze))],[et,(0,m.always)(ne().text(Ue))],[m.T,(0,m.always)(ne().date(e.group,"MMM D, YYYY"))]]))(e),$e=e=>e!==u.bZE.LAST_DAY,Qe=(0,m.curry)(((e,t,a,l)=>{const{endDate:r}=Ge(e),n=N()().format("YYYY-MM-DD");return r===n?(0,m.pipe)((0,m.reject)((0,m.propEq)("group",n)),(0,m.append)(((e,t)=>{if(e===u.N0y.DATA_VALIDATION)return t.reduce(((e,t)=>(0,m.assoc)(t.group,t.value,e)),{group:N()().format("YYYY-MM-DD"),label:ne().date(N()(),"MMM D")});{var a;const l=(0,he.n)(t),r=(e=>{switch(e){case u.N0y.FILL_RATE:return u.s9T.EXISTS;case u.N0y.UNIQUENESS:return u.dC6.UNIQUE}})(e),n={group:N()().format("YYYY-MM-DD"),label:ne().date(N()(),"MMM D"),[e]:null===(a=l.find((0,m.propEq)("group",r)))||void 0===a?void 0:a.percent};return t.reduce(((e,t)=>(e[t.group]=t.value,e)),n)}})(a,t)))(l):l})),Ke=(0,m.curry)(((e,t)=>{const a=(0,m.map)((0,m.prop)("uri"),e);return(0,m.map)((0,m.pick)([...a,"group","label","noData"]),t)})),Xe=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(0,m.pipe)((0,m.omit)([...t,...a,"group","label"]),m.values,(0,m.cond)([[m.isEmpty,m.F],[(0,m.all)((0,m.equals)(0)),m.T],[m.T,m.F]]))(e)},Je=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(0,m.pipe)((0,m.omit)([...t,...a,"group","label"]),m.keys,m.isEmpty)(e)},et=(0,m.pipe)(m.values,(0,m.all)((0,m.equals)(0))),tt=r().createContext(null);tt.displayName="DataLevelContext";const at=(e,t)=>(e||[]).some((0,m.allPass)([(0,m.propEq)("attribute",t),(0,m.propEq)("status",u.lVm.ACTIVE)])),lt=e=>[u.oS0.TYPE_FLOAT,u.oS0.TYPE_DOUBLE,u.oS0.TYPE_NUMBER].includes(e),rt=e=>(0,u.idV)(e.label||e.name);let nt=function(e){return e.INCLUDED_IN_MATCHING="includedInMatching",e.CONTAIN_VF="containVF",e.REQUIRED="required",e.REFERENCE="reference",e.RDM_LOOKUP="RDMLookup",e}({});const it=(0,m.curry)(((e,t)=>e.some((e=>t.details[e.value])))),ot=(0,m.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,m.curry)(((e,t)=>{var a;const l=e[t.fieldName];return null==l||null===(a=l.find((0,m.propEq)("group",u.s9T.EXISTS)))||void 0===a?void 0:a.value})),st=(0,m.curry)(((e,t)=>t.reduce(((t,a)=>{const l=((e,t)=>{var a;return null===(a=e.label||e.name)||void 0===a?void 0:a.toLowerCase().includes(t.toLowerCase())})(a,e),r=l?a.children||[]:st(e,a.children||[]);return(l||r.length)&&t.push(Object.assign({},a,r.length&&{children:r})),t}),[])));function dt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){pt(e,t,a[t])}))}return e}function pt(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const ut=e=>{let{attrTypeItem:t,dvf:a=[],matchAttributes:l=[]}=e;const{uri:r,required:n,isAttributeReference:i}=t;return{[nt.INCLUDED_IN_MATCHING]:l.includes(r),[nt.CONTAIN_VF]:at(a,r),[nt.REQUIRED]:!!n,[nt.REFERENCE]:i,[nt.RDM_LOOKUP]:(0,u.lS4)(t)}},mt=e=>({[nt.INCLUDED_IN_MATCHING]:ne().text("Included in match rule"),[nt.CONTAIN_VF]:ne().text("Has validation functions"),[nt.REQUIRED]:ne().text("Required"),[nt.REFERENCE]:ne().text("Reference attribute"),[nt.RDM_LOOKUP]:ne().text("RDM")}[e]||e),ft=(0,m.curry)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return(0,m.pipe)((0,m.chain)((e=>{const r=e.children?ft(e.children,t.concat({name:e.name,label:e.label}),a||(0,u.YkG)(e),l+1):[];return[{attributeItem:dt({},e,{fieldName:(0,u.Tde)(e.uri,t),isAttributeReference:(0,u.YkG)(e)||a}),level:l},...r]})))(e)})),ht=(0,m.prop)("isAttributeReference");function yt(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const gt=e=>{let{entityType:t,detailedAttributeType:a,dataLevel:r,metrics:n}=e;const[i,o]=(0,l.useState)(h.o.INIT),[c,s]=(0,l.useState)({}),d=null==a?void 0:a.fieldName,p=null==t?void 0:t.uri,f=(0,S._)(),{searchByOv:y}=K(),g=e=>{console.warn(e),o(h.o.ERROR),s({})},E=e=>{s(e),o(h.o.LOADED)},v=(0,l.useCallback)((async()=>{if(p)if(o(h.o.LOADING),s({}),r===u.yn8.ENTITY_TYPE){const e=(0,u.Uqd)()([{fieldName:"type",filter:u.j5E.EQUALS,values:[p]}]),t=(0,u.FK9)({query:(0,u.ECL)({activeness:u.Ng6.ACTIVE_ONLY,filter:e}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}),a=(0,u.FK9)({query:(0,u.ECL)({activeness:u.Ng6.INACTIVE_ONLY,filter:e}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}),l=(0,u.TTx)({entityTypeUri:p,dataLevel:r,metrics:n,searchByOv:y});f(Promise.all([t,a,l])).then((e=>{let[t,a,l]=e;if((0,m.has)("error",l))g(l);else{var r,n;const e=(0,m.pipe)((0,m.path)(["consolidationRate","totalCrosswalksBySource"]),(0,m.omit)(["ReltioCleanser"]),m.keys,m.length)(l);E(function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){yt(e,t,a[t])}))}return e}({},l,{summary:{inactiveProfiles:null===(r=a.type)||void 0===r?void 0:r[(0,u.nIW)(p)],activeProfiles:null===(n=t.type)||void 0===n?void 0:n[(0,u.nIW)(p)],sourceSystems:e}}))}})).catch(g)}else{if(!d)return;f((0,u.TTx)({entityTypeUri:p,attributes:[d],dataLevel:r,metrics:n,searchByOv:y})).then((0,m.pipe)((0,m.pathOr)({},["statistic",d]),(0,m.ifElse)((0,m.has)("error"),g,E))).catch(g)}}),[o,s,f,d,p,r,n,y]),x=b({action:v,dataLevel:r});return(0,l.useEffect)((()=>{x()}),[x]),(0,l.useMemo)((()=>({data:c,state:i,reload:x})),[c,i,x])};var Et=a(14593),vt=a(71153),xt=a.n(vt);const bt=(0,o.makeStyles)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"},anomalyTitle:e=>{let{color:t}=e;return{width:"10px",height:"10px",backgroundColor:t,opacity:.12}},anomalyTitleBackground:{width:"10px",height:"10px",backgroundColor:"#fff",position:"absolute",top:0,left:0},anomalyTitleWrapper:{width:"10px",height:"10px",position:"relative",display:"inline-block",marginRight:"-3px"},anomalyValue:{paddingLeft:"16px"},row:{padding:"2px 0"}}),Ot=e=>{let{label:t,value:a}=e;const l=bt({});return r().createElement(r().Fragment,null,t&&r().createElement("span",{className:xt()(l.label,l.infoDataLabel)},t),a)},wt=e=>{let{label:t,value:a}=e;const l=bt({});return r().createElement(r().Fragment,null,t&&r().createElement("span",{className:xt()(l.label,l.chartDataLabel)},t),a)},St=(0,o.makeStyles)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),Tt=e=>{let{data:t,title:a,DataRenderer:l=wt,children:n}=e;const i=St();return r().createElement("div",{className:i.tooltipWrapper},a&&r().createElement("div",{className:i.title},a),t.map(((e,t)=>r().createElement("div",{key:t,className:i.row},r().createElement(l,e)))),n)},Rt=(0,o.makeStyles)({fillRateSquare:{height:"8px",width:"8px",display:"inline-block",marginRight:"5px",verticalAlign:"middle"}}),_t=e=>{let{value:t,percent:a}=e;return(0,m.isNil)(a)?ne().number(t):`(${ne().number(t)})`},At=e=>{let{data:t,title:a,getColor:l}=e;const n=Rt(),i=t.map((e=>{let{label:t,percent:a,value:i,group:o}=e;return{label:r().createElement("span",null,r().createElement("div",{className:n.fillRateSquare,style:{background:l(o)}}),t),value:`${_e(a)} ${_t({value:i,percent:a})}`}}));return r().createElement(Tt,{title:a,data:i})},Nt={[u.s9T.MISSING]:"#CE5C00",[u.s9T.EXISTS]:"#C4CE00"},Dt=e=>Nt[e]||(0,u.f4_)(e),It=(0,m.map)((e=>{let{group:t}=e;return Dt(t)})),Ct=e=>({[u.s9T.MISSING]:ne().text("Missing"),[u.s9T.EXISTS]:ne().text("Exists")}[e]||e),Mt=(0,m.pipe)(Object.entries,(0,m.map)((e=>{let[t,a]=e;return{label:Ct(t),group:t,value:a}})),(0,m.sortBy)((e=>Object.values(u.s9T).indexOf(e.group))),Re),kt=(0,m.pipe)((0,m.propOr)({},"statistic"),m.toPairs,(0,m.reduce)(((e,t)=>{let[a,l]=t;return null!=l&&l.fillRate?(0,m.assoc)(a,Mt(l.fillRate),e):e}),{})),Lt=(0,m.propOr)({},"fillRate"),Pt=(0,m.pipe)(Lt,Mt,(0,m.when)(Ae,(0,m.always)([])),(0,m.converge)(((e,t)=>({chartData:e,colors:t})),[m.identity,It])),Ft=(0,m.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:t===u.s9T.EXISTS?u.j5E.EXISTS:u.j5E.MISSING_VALUE,fieldName:a}]})),Bt=De(Ft),jt=e=>{const{chartsData:{data:t,state:a,reload:r}}=pe(),n=(0,l.useMemo)((()=>e(t)),[t,e]);return(0,l.useMemo)((()=>({data:n,state:a,reload:r})),[n,a,r])},zt=e=>{let{keyword:t,entityTypeUri:a}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[we(a)],version:"2.0"}},Ut=e=>{let{fieldName:t,value:a,entityTypeUri:l}=e;return zt({keyword:`${u.j5E.EQUALS}(${t}, ${a})`,entityTypeUri:l})};function Vt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Ht(e,t,a[t])}))}return e}function Ht(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Yt=(0,m.curry)(((e,t,a)=>{var l;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length>0?`(${u.NlI.NOT_LIST_EQUALS}(type, ${e.join(",")}))`:""}((0,u.k3T)(e,t)),n=null==a||null===(l=a.keyword)||void 0===l?void 0:l.value;if(r){const e=n?`(${n}) and ${r}`:r;return(0,m.assoc)("keyword",{value:e,isRawFilter:!0},a)}return a})),Wt=(0,m.curry)(((e,t)=>(0,m.assoc)("searchOptions",{searchByOv:e,ovOnly:e},t))),Gt=e=>{const t=(0,w.useDispatch)(),a=(0,w.useSelector)(T.ZP.selectors.getMetadata),{detailedAttributeType:l,entityType:r,searchByOv:n}=K(),i=(0,w.useSelector)(T.ZP.selectors.getGlobalFilter);return function(o){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Ng6.ACTIVE_ONLY;t(T.yC.actions.activityFilterUpdated(c)),t(T.yC.actions.globalFilterUpdated(Vt({},i,{isMuted:!0,query:null}))),(0,m.pipe)(e({detailedAttributeType:l,entityTypeUri:r.uri}),Yt(a,r.uri),Wt(n),T.ui.actions.openSearch,t)(o)}};var Zt=a(23883),qt=a(43129),$t=a(97245);const Qt="anomaly",Kt=(0,o.makeStyles)({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)"},legendHorizontal:{width:"100%",display:"flex",justifyContent:"left",margin:"auto",flexWrap:"wrap",flexDirection:"row",marginBottom:2},legendVertical:{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}}),Xt=e=>{let{payload:t,layout:a}=e;const l=Kt();return r().createElement("div",{className:xt()({[l.legendHorizontal]:"horizontal"===a,[l.legendVertical]:"vertical"===a})},t.map((e=>r().createElement("div",{key:`${e.id}-${e.dataKey}`,className:l.item},r().createElement("div",{style:{background:e.color,opacity:e.dataKey===Qt?.24:1},className:l.itemColor}),r().createElement("span",{className:l.legendLabel}," ",e.value)))))};function Jt(){return Jt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Jt.apply(this,arguments)}const ea=(0,he.Z)((e=>{let{data:t,colors:a}=e,l=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["data","colors"]);const n=Kt();return r().createElement($t.D,Jt({layout:"vertical",align:"left",verticalAlign:"top",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%",marginTop:"13px"},content:r().createElement(Xt,null),payload:(t||[]).map(((e,t)=>{let{group:l,label:i,value:o,percent:c}=e;return{id:l,type:"square",color:a[t],value:r().createElement(r().Fragment,null,r().createElement("span",{className:n.legendLabel},i),r().createElement("span",{className:n.legendValue},`${_e(c)} (${(0,u.k7L)(o,999)})`))}}))},l))}));var ta=a(60355);const aa="violatedProfiles",la="_";function ra(){return ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ra.apply(this,arguments)}const na=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",ra({xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24"},a),r().createElement("g",null,r().createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),r().createElement("g",null,r().createElement("path",{fillOpacity:".54",d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"})))},ia=(0,o.makeStyles)({menuButton:{position:"absolute",right:"10px"}}),oa=e=>{let{config:t,exportLoadingId:a}=e;const n=ia(),i=(0,l.useContext)(tt),{addExportLoadingId:o}=X(),{exportLoadingIds:c}=K(),s=(e=>{const t=(0,S._)(),a=(e=>{let{config:t}=e;const a=(0,w.useSelector)(T.ZP.selectors.getExportDQPath),r=(0,w.useSelector)(T.ZP.selectors.getTenant),{entityType:n,detailedAttributeType:i,dateRange:o}=K(),c=null==i?void 0:i.fieldName.replace("attributes.",""),s=null==i?void 0:i.fieldName,d=null==i?void 0:i.type,p=(0,l.useContext)(tt),{startDate:m,endDate:f}=Ge(o),h=Ze(t),y=Ze(t)?m.concat("_",f):N()().utc().format(),g="dataValidationFunctions"===t.type&&h?aa:t.type;return{tenant:r,entityType:(0,u.nIW)(n.uri),attributeType:s,exportDQPath:a,dataLevel:p,metrics:[g],period:[m,f],isTimeseries:h,getFileName:()=>r.concat(la,n.label||(0,u.nIW)(n.uri),`${c?la.concat(c):""}`,la,t.type,la,y,".csv"),dataType:d}})({config:e}),{deleteExportLoadingId:r}=X();return e=>t((0,u.Oz9)(a)).then((e=>e.arrayBuffer())).then((e=>{const t=new Blob([e],{type:"csv"}),l=URL.createObjectURL(t),r=document.createElement("a");r.href=l,r.download=a.getFileName(),document.body.appendChild(r),r.click(),document.body.removeChild(r)})).catch(console.error).finally((()=>r(e)))})(t),d=[{id:"download",title:ne().text("Download"),icon:r().createElement(na,null),active:!0,action:()=>{o(a),s(a)},disabled:(0,m.has)(a,c)}];return r().createElement("div",{className:n.menuButton,"data-reltio-id":`reltio-dq-dashboard-export-${i}-${t.type}`},r().createElement(ta.Z,{items:d}))};var ca=a(88267),sa=a(79002),da=a(7882),pa=a(82068),ua=a(38677),ma=a(79312),fa=a(24648);let ha=function(e){return e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e}({});const ya=(0,o.makeStyles)((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"}}))),ga=sa.B9.ERROR,Ea=e=>{let{onRefresh:t,height:a,errorData:l={},variant:n=ha.SMALL}=e;const{Icon:i=ga,message:o,title:c}=l,s=ya({height:a});return r().createElement("div",{className:xt()(s.container,s[`${n}`])},r().createElement(i,{className:s.icon}),c&&r().createElement(ma.Z,{className:s.title},c),o&&r().createElement(ma.Z,{className:s.message},o),!!t&&r().createElement(ua.Z,{className:s.refreshButton,startIcon:r().createElement(fa.Z,{color:"primary",className:s.refreshIcon}),onClick:t,"data-reltio-id":"reltio-dq-dashboard-chart-refresh-button"},r().createElement(ma.Z,{variant:"button"},ne().text("Refresh"))))},va=(0,o.makeStyles)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}}))),xa=e=>{let{loadingState:t,onRefresh:a,children:l,data:n,className:i}=e;const o=va();return r().createElement(pa.Z,{className:xt()(o.viewContent,i)},r().createElement(ca.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:i,height:o}=e;switch(t){case h.o.LOADED:return n&&0!==n.length?r().createElement(da.Z,{error:r().createElement(Ea,{errorData:{message:ne().text("Something went wrong")},height:o,variant:ha.SMALL})},l({data:n,width:i,height:o})):r().createElement(Ea,{height:o,errorData:{Icon:sa.B9.NO_DATA,message:ne().text("Go ahead and load some data. We’ll put it on the scales and let you know here if it measures up."),title:ne().text("Give us something to go on!")},variant:ha.SMALL});case h.o.LOADING:return r().createElement(qt.Z,null);case h.o.ERROR:return r().createElement(Ea,{errorData:{Icon:sa.B9.ERROR,message:ne().text("No need to fret - just refresh and it will work itself out."),title:ne().text("Oops! We ran into a problem.")},height:o,onRefresh:a,variant:ha.SMALL});default:return r().createElement("div",null,"Loading...")}})))};var ba=a(89025),Oa=a(17998),wa=a(39475),Sa=a(58003),Ta=a(55310);const Ra=(0,o.makeStyles)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:"5px",lineHeight:"24px"},infoIcon:{position:"relative"}}))),_a=e=>{let{title:t,infoTooltipTitle:a,children:n}=e;const i=!!a,o=!!n,c=Ra(o),s=(0,l.useContext)(tt)===u.yn8.ATTRIBUTE_TYPE;return r().createElement(Oa.Z,{title:t,className:c.root,classes:{title:c.title}},i&&r().createElement(wa.k,{icon:ba.Z,size:"XXS",tooltipTitle:a,className:c.infoIcon,tooltipPlacement:"top-start"}),o&&r().createElement(Sa.Z,{widthToHide:250},s&&r().createElement(Ta.Z,{height:24,margin:16}),n))};var Aa=a(82565);const Na=(0,o.makeStyles)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),Da=e=>{let{config:t,children:a}=e;const n=Na(),{type:i}=t,o=(0,l.useContext)(tt),{period:c}=K(),s=$e(c)?`reltio-dq-dashboard-chart-time-series-${i}-${o}`:`reltio-dq-dashboard-chart-${i}-${o}`;return r().createElement(Aa.Z,{className:n.view,"data-reltio-id":s},a)};var Ia=a(19926);const Ca=(0,o.makeStyles)({root:{height:"18px",padding:"3px 8px",background:"rgba(43, 152, 240, 0.12)",border:"0.6px solid #2B98F0",borderRadius:"2px"},label:{fontSize:"8px",padding:0},disabled:{background:"rgba(153, 153, 153, 0.12)",border:"0.6px solid #999999"}});function Ma(){return Ma=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ma.apply(this,arguments)}const ka=e=>{let{disabled:t=!1}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["disabled"]);const l=Ca(),{dateRange:n}=K(),i=t?ne().text("Today"):(o=n,(0,u.J6D)(o)?(0,u.mm2)(o):o.map((e=>ne().date(N()(e)))).join(" – "));var o;return r().createElement(Ia.Z,Ma({classes:{root:xt()(l.root,l.disabled),label:l.label},label:i},a))};function La(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Pa={content:'""',position:"absolute",background:"rgba(0, 0, 0, 0.38)",width:"1px",height:"4px",bottom:"-4px",left:0},Fa=(0,o.makeStyles)({root:{display:"flex",flexDirection:"column",height:"100%"},stackedBar:{width:"100%",display:"flex",flexWrap:"nowrap",marginTop:"13px",position:"relative","&:before":Pa,"&:after":function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){La(e,t,a[t])}))}return e}({},Pa,{right:0,left:"initial"})},bar:{height:"24px",flexGrow:1,position:"relative",width:"50%",transition:"width 0.7s","&:hover":{"&:after":{content:'""',background:"rgba(0, 0, 0, 0.1)"}},"&:after":{position:"absolute",top:"-3px",bottom:"-4px",left:"-3px",right:"-3px",transition:"background 0.3s",zIndex:1,pointerEvents:"none"}},inactivePart:{background:"#EFEFEF"},tooltipTitle:{fontSize:"11px"},tooltipFillRate:{marginTop:"4px"},tooltip:{background:"#fff",filter:"drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)) drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2))",padding:"5px 8px"},legendWrapper:{position:"relative",flexGrow:1},legendLabel:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},legendValue:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.87)"},clickable:{cursor:"pointer"},rangeWrapper:{display:"flex",justifyContent:"space-between",marginTop:"4px"},rangeValue:{color:"rgba(0, 0, 0, 0.54)",fontSize:"12px"},popper:{paddingTop:"6px"}});function Ba(){return Ba=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ba.apply(this,arguments)}const ja=(0,l.forwardRef)(((e,t)=>{let{className:a}=e,l=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["className"]);const n=Fa();return r().createElement("div",Ba({className:xt()(n.bar,a)},l,{ref:t}))}));ja.displayName="Bar";const za=ja;function Ua(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Va(e,t,a[t])}))}return e}function Va(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=>{let{label:t,value:a,percent:l}=e;return[{label:t,value:`${_e(l)} (${ne().number(a)})`}]},Ya=(0,he.Z)((e=>{let{classes:t={},colors:a,config:n,data:i,infoTooltipTitle:o,onItemClick:c,onRefresh:s,state:d}=e;const p=Fa(),y=c&&(e=>c(e)),g=!!c,E=(0,m.pipe)((0,m.pluck)("percent"),m.sum)(i),{title:v}=n,{period:x,exportLoadingIds:b}=K(),{showExportButton:O}=te(),w=(0,l.useMemo)((()=>O&&d===h.o.LOADED&&i.length>0),[d,i]),S=(0,l.useContext)(tt),T=(0,l.useMemo)((()=>(0,f.x0)()),[]);return r().createElement(Da,{config:n},r().createElement(_a,{title:v,infoTooltipTitle:o},$e(x)&&S===u.yn8.ATTRIBUTE_TYPE&&r().createElement(ka,{disabled:!0}),w&&r().createElement(oa,{config:n,exportLoadingId:T})),r().createElement(xa,{loadingState:d,onRefresh:s,data:i},(e=>{let{data:l}=e;return r().createElement("div",{className:p.root},(0,m.has)(T,b)&&r().createElement(qt.Z,null),r().createElement("div",{className:xt()(p.stackedBar,t.stackedBar)},l.map(((e,l)=>r().createElement(Zt.Z,{title:r().createElement(Tt,{data:Ha(e)}),followCursor:!0,key:e.label,classes:{popper:p.popper}},r().createElement(za,{className:xt()(t.bar,g&&p.clickable),style:Ua({},ke(e),{background:a[l]}),onClick:()=>y&&y(e.group),"data-reltio-id":e.dataReltioId}))))),r().createElement("div",{className:p.rangeWrapper},r().createElement("span",{className:p.rangeValue},"0"),r().createElement("span",{className:p.rangeValue},ne().number(E))),r().createElement("div",{className:xt()(p.legendWrapper,t.legendWrapper)},r().createElement(ea,{data:l,colors:a})))})))})),Wa=e=>{let{config:t,infoTooltipTitle:a}=e;const{data:l,state:n,reload:i}=jt(Pt),{chartData:o,colors:c}=l,s=Gt(Bt);return r().createElement(Ya,{data:o,colors:c,onItemClick:s,config:t,state:n,onRefresh:i,infoTooltipTitle:a})};function Ga(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Za=[u.N0y.FILL_RATE,u.N0y.UNIQUENESS],qa=e=>{let{entityTypeUri:t,attributeFieldName:a,period:r=_.LAST_WEEK,dataLevel:n=u.yn8.ATTRIBUTE_TYPE,metrics:i}=e;const[o,c]=(0,l.useState)(h.o.INIT),[s,d]=(0,l.useState)(null),p=(0,w.useSelector)(T.ZP.selectors.getTenant),f=(0,w.useSelector)(T.ZP.selectors.getMlDqPath),y=(0,S._)(),g=(0,l.useRef)(),E=te().showErrorBands&&(0,m.any)((0,m.includes)(m.__,Za),i),v=e=>{console.warn(e),c(h.o.ERROR),d(null)},x=e=>{d(e),c(h.o.LOADED)},O=[a,t,n,i,p].toString(),R=(0,l.useCallback)((()=>{if(!t)return;c(h.o.LOADING),d(null);const{startDate:e,endDate:l}=Ge(r);y((0,u.GFW)(function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Ga(e,t,a[t])}))}return e}({mlDqPath:f,tenant:p,entityTypeUri:t,attribute:a,dataLevel:n,metrics:i,startDate:e,endDate:l},E&&{anomaly:"prophet"}))).then((0,m.pipe)((0,m.applySpec)({statisticData:(0,m.pipe)((0,m.pathOr)({},["data",a,"timeSeries"])),anomalyData:(0,m.pipe)((0,m.pathOr)({},["dataAnomaly",a,"timeSeries"]))}),x)).catch(v)}),[O,r]),A=b({action:R,dataLevel:n});return(0,l.useEffect)((()=>{const e=((e,t)=>{const a=t?{startDate:(0,m.pipe)(m.last,(0,m.path)(["time","_max_date"]))(t),endDate:(0,m.pipe)(m.head,(0,m.path)(["time","_min_date"]))(t)}:null;if(a){const t=new Date(a.startDate),l=new Date(a.endDate),{startDate:r,endDate:n}=Ge(e),i=new Date(r),o=new Date(n);if(i>=t&&o<=l)return!1}return!0})(r,null==s?void 0:s.statisticData);(e||O!==(null==g?void 0:g.current))&&A(),g.current=O}),[A]),(0,l.useMemo)((()=>({data:s,state:o,reload:A})),[s,o,A])},$a=(0,m.curry)(((e,t)=>(0,m.pipe)((0,m.map)((0,m.props)(e)),m.flatten,(0,m.reject)(m.isNil))(t))),Qa=e=>Math.round(100*e)/100,Ka=e=>ne().date(e,"MMM D"),Xa=(e,t)=>{if(1===e.length)return e;const{startDate:a,endDate:l}=Ge(t),r=(0,m.findIndex)((0,m.propEq)("group",a),e),n=(0,m.findIndex)((0,m.propEq)("group",l),e)+1;return e&&t?(0,m.slice)(r,n,e):e};function Ja(){return Ja=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ja.apply(this,arguments)}const el=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Ja({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("path",{d:"M10 16.667A6.676 6.676 0 013.333 10 6.676 6.676 0 0110 3.333 6.675 6.675 0 0116.667 10 6.675 6.675 0 0110 16.667zm0 1.666c4.6 0 8.333-3.733 8.333-8.333S14.6 1.667 10 1.667A8.336 8.336 0 001.667 10c0 4.6 3.733 8.333 8.333 8.333zM9.167 10v3.333h1.666V10h2.5L10 6.667 6.667 10h2.5z",fill:"#7BAB52"}))};function tl(){return tl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},tl.apply(this,arguments)}const al=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",tl({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("path",{d:"M10 3.333A6.676 6.676 0 0116.667 10 6.675 6.675 0 0110 16.667 6.675 6.675 0 013.333 10 6.676 6.676 0 0110 3.333zm0-1.666A8.336 8.336 0 001.667 10c0 4.6 3.733 8.333 8.333 8.333S18.333 14.6 18.333 10 14.6 1.667 10 1.667zM10.833 10V6.667H9.167V10h-2.5L10 13.333 13.333 10h-2.5z",fill:"#FF1744"}))},ll=(0,o.makeStyles)((e=>({infoPanel:{display:"flex",alignItems:"center",gap:"10px",backgroundColor:"rgba(0, 0, 0, 0.05)",margin:"0 0 2px",padding:"6px 12px 6px",color:e.palette.text.secondary,fontSize:"13px",lineHeight:"20px"},info:{color:e.palette.text.primary,fontSize:"14px"},dynamicInfo:{display:"flex",alignItems:"center"},dynamicInfoPositive:{color:"#5C922E"},dynamicInfoNegative:{color:"#FF1744"},dynamicIcon:{paddingRight:"4px"},percent:{fontWeight:700,paddingRight:"4px"},period:{fontWeight:"bold"}}))),rl=e=>{let{label:t,info:a,dynamicPercent:l}=e;const n=ll(),i=l>0;return r().createElement("div",{className:n.infoPanel},t,r().createElement("span",{className:n.info},a),!!l&&r().createElement("span",{className:xt()(n.dynamicInfo,{[n.dynamicInfoPositive]:i,[n.dynamicInfoNegative]:!i})},i?r().createElement(el,{className:n.dynamicIcon}):r().createElement(al,{className:n.dynamicIcon}),Math.abs(l).toFixed(2),"%"))},nl=e=>{let{dateRange:t,infoLabel:a,percentKey:n,dataKey:i,chartData:o,areaKeys:c}=e;const s=ll(),d=(0,l.useMemo)((()=>Xa(o,t)),[o,t]),p=(0,m.last)(d),f=null==p?void 0:p[i],h=null==p?void 0:p[n],y=!(0,m.isNil)(h)&&n&&((e,t)=>{const a=(0,m.pipe)((0,m.pluck)(t),(0,m.reject)(m.isNil))(e);return a.length<2?0:(0,m.pipe)((0,m.slice)(-2,1/0),(e=>{let[t,a]=e;return a-t}),(e=>Math.round(1e4*e)/1e4))(a)})(d,n),g=(0,u.VQ1)(t)[1],E=N()().isSame(g,"day")?ne().text("Today"):ne().date(g),v=Je(p,[n],c)?ne().text(ze):Xe(p,[n],c)?ne().text(Ue):"",x=r().createElement(r().Fragment,null,r().createElement("span",{className:s.period},E,":"),(0,m.isNil)(h)?v:a),b=!(0,m.isNil)(h)&&r().createElement(r().Fragment,null,r().createElement("span",{className:s.percent},h,"%"),"(",(0,u.k7L)(f,999),")");return r().createElement(rl,{label:x,info:b,dynamicPercent:y})};var il=a(71142),ol=a(30840),cl=a(33618),sl=a(55484),dl=a(25556),pl=a(3131),ul=a(63004),ml=a(81073),fl=a(82655);function hl(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){yl(e,t,a[t])}))}return e}function yl(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var gl=function(e){return 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",e}(gl||{}),El=function(e){return 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",e}(El||{});const vl=e=>(0,m.pipe)((0,m.pathOr)({},[e,"data"]),Object.entries,(0,m.map)((e=>{let[t,a]=e;return{label:t,group:t,value:a}})),Re),xl="Reltio profiles",bl="Source profiles",Ol=(0,m.pipe)((0,m.pathOr)({},["consolidationRate"]),(0,m.converge)(m.concat,[(0,m.pipe)((0,m.prop)("totalCrosswalksBySource"),(0,m.omit)(["ReltioCleanser"]),(e=>[hl({},e,{label:bl,group:bl})])),(0,m.pipe)((0,m.prop)("totalEntities"),(e=>[(0,m.assoc)(xl,e,{label:xl,group:xl})]))]));var wl=function(e){return 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",e}(wl||{});const Sl=(e,t)=>{const a={lengthStatistics:{[wl.MEDIAN]:ne().text("Median"),[wl.AVERAGE]:ne().text("Average"),[wl.MININMUN]:ne().text("Minimum"),[wl.MAXIMUM]:ne().text("Maximum")},valueDistribution:{[wl.MEDIAN]:ne().text("Median"),[wl.AVERAGE]:ne().text("Average"),[wl.MININMUN]:ne().text("Minimum"),[wl.MAXIMUM]:ne().text("Maximum")},crosswalkAnalysis:{[wl.NUMBER_OF_SOURCES]:ne().text("No. of source systems"),[wl.AVG_NUMBER_OF_PROFILES]:ne().text("Avg no. of profiles"),[wl.MIN_NUMBER_OF_PROFILES]:ne().text("Min no. of profiles"),[wl.MAX_NUMBER_OF_PROFILES]:ne().text("Max no. of profiles")}};return(0,m.pathOr)(null,[t,e],a)},Tl=e=>(0,m.pipe)((0,m.propOr)({},e),Object.entries,(0,m.map)((t=>{let[a,l]=t;return{label:Sl(a,e),value:l}})),(0,m.filter)((e=>{let{label:t}=e;return t})),Re),Rl=e=>t=>({chartData:vl(e)(t),infoPanelData:Tl(e)(t)}),_l=(e,t)=>(0,u.Lt4)(t)?(0,u.mB6)({dataTypeDefinition:{type:t}},Number(e)):ne().number(e),Al=(0,m.curry)(((e,t)=>{const a=(0,m.pipe)((0,m.prop)("group"),(0,m.split)(" "),m.head,Number),l=t.chartData.sort((0,m.ascend)(a)).map(((a,l)=>{const[r,n=r]=a.group.split(" ").map(Number),i=l===t.chartData.length-1,o=r!==n?((e,t,a)=>lt(t)?`[${e}${a?"]":")"}`:e)(`${_l(r,e)} - ${_l(n,e)}`,e,i):_l(r,e);return hl({},a,{label:o,group:[r,n,i?"last":""].toString()})}));return{infoPanelData:t.infoPanelData.map((t=>{const a=(0,u.Lt4)(e)?(0,u.mB6)({dataTypeDefinition:{type:e}},Number(t.value)):(0,u.k7L)(t.value,999);return hl({},t,{value:a,localizedValue:(0,u.Lt4)(e)?a:t.localizedValue})})),chartData:l}})),Nl=(0,m.pipe)(Rl("lengthStatistics"),Al("")),Dl=Rl("monthDistribution"),Il=Rl("dayOfWeekDistribution"),Cl=Rl("dayOfMonthDistribution"),Ml=(0,m.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Ut({fieldName:`${a.fieldName}.day_of_week`,value:gl[t.toLowerCase()],entityTypeUri:l})})),kl=(0,m.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Ut({fieldName:`${a.fieldName}.month`,value:El[t.toLowerCase()],entityTypeUri:l})})),Ll=(0,m.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Ut({fieldName:`${a.fieldName}.day_of_month`,value:t,entityTypeUri:l})})),Pl=(0,m.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;const[r,n]=t.split(",");return r===n?Ut({fieldName:`${a.fieldName}.length`,value:r,entityTypeUri:l}):(e=>{let{fieldName:t,startRange:a,endRange:l,entityTypeUri:r}=e;return zt({keyword:`${u.j5E.IN_RANGE}(${t}, ${a}, ${l})`,entityTypeUri:r})})({fieldName:`${a.fieldName}.length`,startRange:r,endRange:n,entityTypeUri:l})})),Fl=(0,m.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Ut({fieldName:`${a.fieldName}.crosswalk_sources`,value:t,entityTypeUri:l})})),Bl=(0,m.curry)(((e,t)=>{let{fieldName:a}=e;const[l,r]=t.split(",");return[{filter:u.j5E.WITHIN,values:[[l,r]],fieldName:a}]})),jl=(0,m.curry)(((e,t)=>{let{fieldName:a}=e;const[l,r]=t.split(",");return[l===r?{filter:u.j5E.EQUALS,values:[[l]],fieldName:a}:{filter:u.j5E.IN_RANGE,values:[[l,r]],fieldName:a}]})),zl=(0,m.curry)(((e,t)=>{let{fieldName:a}=e;const[l,r,n]=t.split(","),i=l===r,o=i?[{filter:u.j5E.EQUALS,values:[[l]],fieldName:a}]:[{filter:u.j5E.IN_RANGE,values:[[l,r]],fieldName:a}];return!n&&!i&&o.push({filter:u.j5E.NOT_EQUALS,values:[[r]],fieldName:a}),o})),Ul=(0,m.cond)([[u.Lt4,(0,m.always)(De(Bl))],[lt,(0,m.always)(De(zl))],[m.identity,(0,m.always)(De(jl))]]),Vl=(0,m.curry)(((e,t)=>t===xl?[]:[{filter:u.j5E.EQUALS,fieldName:"sourceSystems",values:[[t]]}])),Hl=De(Vl),Yl=(0,m.curry)(((e,t)=>!e||(0,m.propEq)("key",t,e)||t===xl?1:.12)),Wl=e=>e>999?ne().number(e,"0,0.0a").toUpperCase():""+Math.round(1e3*e)/1e3,Gl=e=>{let{lineKeys:t,data:a,isPercent:l}=e;const r=((e,t)=>(0,m.pipe)($a(e),(e=>Math.min(...e)))(t))(t,a),n=((e,t)=>(0,m.pipe)($a(e),(e=>Math.max(...e)))(t))(t,a),{minYAxisValue:i,maxYAxisValue:o}=(e=>{let{minLineChartData:t,maxLineChartData:a,isPercent:l}=e;if(t===a)return l?0===(r=t)||100===r?{minYAxisValue:0,maxYAxisValue:100}:{minYAxisValue:r>50?Qa(2*r-100):0,maxYAxisValue:r>50?100:Qa(2*r)}:{minYAxisValue:"minData",maxYAxisValue:"maxData"};var r;const n=(a-t)/6,i=Qa(t-n),o=Qa(a+n);return{minYAxisValue:i>0?i:0,maxYAxisValue:l&&o>100?100:o}})({minLineChartData:r,maxLineChartData:n,isPercent:l});return{xAxis:{type:"category",dataKey:"group",tick:{fill:"#000",fontSize:"12px",style:{userSelect:"none"}},angle:0,textAnchor:"middle",stroke:"#666",tickLine:!1,dy:8,tickFormatter:Ka,interval:"preserveStartEnd",scale:"point",minTickGap:16},yAxis:{dataKey:"",type:"number",tick:{fill:"#000",fontSize:"12px",width:void 0,style:{userSelect:"none"}},stroke:"#666",tickFormatter:e=>Wl(e),tickCount:5,width:59,tickLine:!1,domain:i!==-1/0&&o!==-1/0?[i,o]:[0,i]},cartesianGrid:{strokeDasharray:"3 3",stroke:"#666",strokeOpacity:"0.4"},tooltip:{cursor:{fill:"#000",opacity:"0.1"}},line:{type:"linear",dataKey:"value",strokeWidth:3,dot:null,activeDot:{stroke:"white",strokeWidth:2,r:5}},referenceLine:{strokeDasharray:"3 3",stroke:"#000",isFront:!0},labelForY:{angle:270,position:"left",offset:-3,style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)",userSelect:"none"}},area:{activeDot:!1,fillOpacity:"0.24",stroke:"none"},legend:{verticalAlign:"bottom",align:"left"}}};function Zl(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){ql(e,t,a[t])}))}return e}function ql(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const $l=(0,o.makeStyles)((e=>({tooltipWrapper:Zl({},e.tooltip,{padding:"4px 8px"})})));function Ql(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Kl(e,t,a[t])}))}return e}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}function Xl(){return Xl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Xl.apply(this,arguments)}const Jl="#00439D",er=e=>{let{data:t,width:a,height:n,getTooltip:i,getColor:o,lineKeys:c,areaKeys:s,yAxisLabel:d,isPercent:p=!0,dateRange:u,changeZoom:f}=e;const h=$l(),{showErrorBands:y}=te(),{cartesianGrid:g,tooltip:E,xAxis:v,yAxis:x,line:b,referenceLine:O,labelForY:w,area:S,legend:T}=Gl({lineKeys:c,data:t,isPercent:p}),R=(0,l.useCallback)((e=>r().createElement("div",{className:h.tooltipWrapper},i(e))),[i]),[_,A]=(0,l.useState)(),[N,D]=(0,l.useState)(null),[I,C]=(0,l.useState)(null),M=(0,l.useMemo)((()=>Xa(t,u)),[t,u]),k=(0,l.useMemo)((()=>((e,t)=>{const a=t=>(0,m.path)([t,"group"],e);return e.reduce(((l,r,n)=>((e,t)=>t.every((t=>(0,m.isNil)(e[t])||isNaN(+e[t]))))(r,t)?((t,l)=>{const r=(0,m.last)(t),n=a(l===e.length-1?l:l+1);return r&&a(l)!==r.end||0===(null==t?void 0:t.length)?t.concat({start:a(0===l?l:l-1),end:n}):(0,m.assocPath)([t.length-1,"end"],n,t)})(l,n):l),[])})(M,c)),[M,c]),L=(0,l.useMemo)((()=>((e,t,a)=>e.reduce(((e,l,r,n)=>r+1===n.length?e:Je(l,t,a)&&Xe(n[r+1],t,a)||Xe(l,t,a)&&Je(n[r+1],t,a)?[...e,l.group]:e),[]))(M,c,s)),[M,c,s]),P=N&&I;return r().createElement(il.c,{width:a,height:n,data:M,onMouseMove:e=>{e.isTooltipActive&&e.activePayload?A({group:e.activeLabel,values:(0,m.pluck)("value",e.activePayload)}):A(void 0),N&&C(e.activeLabel)},onMouseLeave:()=>{A(void 0),C(null),D(null)},onMouseDown:e=>{(null==e?void 0:e.activeLabel)&&D(e.activeLabel)},onMouseUp:()=>{I&&f([N,I]),C(null),D(null)},margin:{top:12,right:20}},_&&r().createElement(ol.d,Xl({},O,{x:_.group})),_&&_.values.filter((e=>!Array.isArray(e))).every((0,m.either)(isNaN,m.isNil))&&!P&&k.map(((e,t)=>r().createElement(cl.z,{x1:e.start,x2:e.end,key:t}))),P&&r().createElement(cl.z,{x1:N,x2:I,strokeOpacity:.3}),r().createElement(sl.q,g),r().createElement(dl.K,v),r().createElement(pl.B,Xl({},x,{label:Ql({},w,{value:d})})),c.map((e=>r().createElement(ul.x,Xl({},b,{name:ne().text("Actual"),key:e,dataKey:e,stroke:o?o(e):Jl})))),L&&L.map((e=>r().createElement(ol.d,Xl({},O,{x:e,key:e,strokeDasharray:"12 4"})))),s&&s.map((e=>r().createElement(ml.u,Xl({},S,{name:ne().text("Error band"),dataKey:e,key:e,fill:o?o(e):Jl})))),r().createElement(fl.u,Xl({},E,{content:R,cursor:null,filterNull:!1})),s&&y&&r().createElement($t.D,Xl({},T,{content:r().createElement(Xt,null)})))},tr=e=>{let{data:t,color:a}=e;const l=bt({color:a}),n=[{label:r().createElement("div",{className:l.anomalyTitleWrapper},r().createElement("div",{className:l.anomalyTitleBackground}),r().createElement("div",{className:l.anomalyTitle})),value:ne().text("Error Band")},{label:r().createElement("span",{className:l.anomalyValue},ne().text("Low")),value:`${_e(t[0])}`},{label:r().createElement("span",{className:l.anomalyValue},ne().text("High")),value:`${_e(t[1])}`}];return r().createElement(r().Fragment,null,n.map(((e,t)=>r().createElement("div",{key:t,className:l.row},r().createElement(wt,e)))))},ar=(0,o.makeStyles)({monoFontCell:{fontFamily:'"Roboto Mono", monospace'},timeSeriesContent:{padding:"0 12px 10px"}}),lr=[u.s9T.EXISTS,u.s9T.MISSING],rr=[u.N0y.FILL_RATE],nr=()=>Dt(u.s9T.EXISTS),ir=e=>{let{active:t,payload:a}=e;if(t&&a&&a.length){var l;const{payload:e}=a[0],t=e.fillRate,n={[u.s9T.EXISTS]:t,[u.s9T.MISSING]:+(100-t).toFixed(2)},i=(0,m.pipe)((0,m.pick)(lr),(0,m.when)(et,(0,m.always)({})),Mt,(0,m.map)((e=>(0,m.assoc)("percent",n[e.group],e))),(0,m.map)((e=>{let{label:t,percent:a,value:l}=e;return{label:t,value:`${_e(a)} (${ne().number(l)})`}})))(e),o=qe(e,lr);return r().createElement(Tt,{data:i,title:o},(null===(l=e.anomaly)||void 0===l?void 0:l.length)>0&&r().createElement(tr,{data:e.anomaly,color:nr()}))}},or=e=>{let{config:t,infoTooltipTitle:a}=e;const n=ar(),{entityType:i,detailedAttributeType:o,period:c,dateRange:s,exportLoadingIds:d}=K(),{changeZoom:p}=X(),y=i.uri,g=o.fieldName,{data:E,state:v,reload:b}=qa({entityTypeUri:y,attributeFieldName:g,period:c,metrics:rr});x({state:v,reload:b,dataLevel:u.yn8.ATTRIBUTE_TYPE});const{data:O,state:w,reload:S}=jt(Pt),T=(0,l.useMemo)((()=>(0,m.pipe)(We(Lt),Be(u.N0y.FILL_RATE),Qe(c,O.chartData,u.N0y.FILL_RATE))(E)),[E,O]),R=(0,l.useCallback)((()=>{v===h.o.ERROR&&b(),w===h.o.ERROR&&S()}),[v,b,w,S]),{title:_}=t,A=`${ne().text("% of profiles with complete values")}:`,{showExportButton:N}=te(),D=(0,l.useMemo)((()=>N&&v===h.o.LOADED&&Xa(T,s).length>0),[T,s,v]),I=(0,l.useMemo)((()=>(0,f.x0)()),[]);return r().createElement(Da,{config:t},r().createElement(_a,{title:_,infoTooltipTitle:a},$e(c)&&r().createElement(ka,null),D&&r().createElement(oa,{config:t,exportLoadingId:I})),r().createElement(xa,{data:T,loadingState:je([v,w]),onRefresh:R,className:n.timeSeriesContent},(e=>{let{data:t,width:a,height:l}=e;return r().createElement(r().Fragment,null,(0,m.has)(I,d)&&r().createElement(qt.Z,null),r().createElement(nl,{infoLabel:A,dateRange:s,chartData:t,percentKey:u.N0y.FILL_RATE,dataKey:u.s9T.EXISTS,areaKeys:[Qt]}),r().createElement(er,{width:a,height:l-36,data:t,lineKeys:rr,areaKeys:[Qt],getTooltip:ir,getColor:nr,yAxisLabel:ne().text("% of profiles"),dateRange:s,changeZoom:p}))})))},cr=e=>{let{config:t}=e;const a=Ze(t),{showErrorBands:l}=te(),n=r().createElement(Tt,{title:ne().text("Fill rate"),data:[{label:`${ne().text("Exists")}:`,value:ne().text("Profiles with data")},{label:`${ne().text("Missing")}:`,value:ne().text("Profiles without data")},...a&&l?[{value:ne().text('Anomaly detection is the process of analyzing company data to\nfind data points that don\'t align with standard data patterns. The "Error Band" depicts the expected range.')}]:[]],DataRenderer:Ot});return r().createElement(r().Fragment,null,a?r().createElement(or,{config:t,infoTooltipTitle:n}):r().createElement(Wa,{config:t,infoTooltipTitle:n}))},sr={[u.dC6.UNIQUE]:"#4BAFFF",[u.dC6.NOT_UNIQUE]:"#C34980"},dr=e=>sr[e]||(0,u.f4_)(e),pr=(0,m.map)((e=>{let{group:t}=e;return dr(t)})),ur=e=>({[u.dC6.UNIQUE]:ne().text("Unique"),[u.dC6.NOT_UNIQUE]:ne().text("Not unique")}[e]||e),mr=(0,m.pipe)(Object.entries,(0,m.map)((e=>{let[t,a]=e;return{label:ur(t),group:t,value:a}})),(0,m.sortBy)((e=>Object.values(u.dC6).indexOf(e.group))),Re),fr=(0,m.propOr)({},"uniqueness"),hr=(0,m.pipe)(fr,mr,(0,m.when)(Ae,(0,m.always)([])),(0,m.converge)(((e,t)=>({chartData:e,colors:t})),[m.identity,pr])),yr=e=>{let{config:t,infoTooltipTitle:a}=e;const{data:l,state:n,reload:i}=jt(hr),{chartData:o,colors:c}=l;return r().createElement(Ya,{data:o,colors:c,config:t,state:n,onRefresh:i,infoTooltipTitle:a})},gr=[u.dC6.UNIQUE,u.dC6.NOT_UNIQUE],Er=[u.N0y.UNIQUENESS],vr=()=>dr(u.dC6.UNIQUE),xr=e=>{let{active:t,payload:a}=e;if(t&&a&&a.length){var l;const{payload:e}=a[0],t=e.uniqueness,n={[u.dC6.UNIQUE]:t,[u.dC6.NOT_UNIQUE]:+(100-t).toFixed(2)},i=(0,m.pipe)((0,m.pick)(gr),(0,m.when)(et,(0,m.always)({})),mr,(0,m.map)((e=>(0,m.assoc)("percent",n[e.group],e))),(0,m.map)((e=>{let{label:t,percent:a,value:l}=e;return{label:t,value:`${_e(a)} (${ne().number(l)})`}})))(e),o=qe(e,gr);return r().createElement(Tt,{data:i,title:o},(null===(l=e.anomaly)||void 0===l?void 0:l.length)>0&&r().createElement(tr,{data:e.anomaly,color:vr()}))}},br=e=>{let{config:t,infoTooltipTitle:a}=e;const n=ar(),{entityType:i,detailedAttributeType:o,period:c,dateRange:s,exportLoadingIds:d}=K(),{changeZoom:p}=X(),y=i.uri,g=o.fieldName,{data:E,state:v,reload:b}=qa({entityTypeUri:y,attributeFieldName:g,period:c,metrics:Er});x({state:v,reload:b,dataLevel:u.yn8.ATTRIBUTE_TYPE});const{data:O,state:w,reload:S}=jt(hr),T=(0,l.useMemo)((()=>(0,m.pipe)(We(fr),Be(u.N0y.UNIQUENESS),Qe(c,O.chartData,u.N0y.UNIQUENESS))(E)),[E,O]),R=(0,l.useCallback)((()=>{v===h.o.ERROR&&b(),w===h.o.ERROR&&S()}),[v,b,w,S]),{title:_}=t,A=`${ne().text("% of unique distinct values")}:`,{showExportButton:N}=te(),D=(0,l.useMemo)((()=>N&&v===h.o.LOADED&&Xa(T,s).length>0),[T,s,N,v]),I=(0,l.useMemo)((()=>(0,f.x0)()),[]);return r().createElement(Da,{config:t},r().createElement(_a,{title:_,infoTooltipTitle:a},$e(c)&&r().createElement(ka,null),D&&r().createElement(oa,{config:t,exportLoadingId:I})),r().createElement(xa,{data:T,loadingState:je([v,w]),onRefresh:R,className:n.timeSeriesContent},(e=>{let{data:t,width:a,height:l}=e;return r().createElement(r().Fragment,null,(0,m.has)(I,d)&&r().createElement(qt.Z,null),r().createElement(nl,{infoLabel:A,dateRange:s,chartData:t,percentKey:u.N0y.UNIQUENESS,dataKey:u.dC6.UNIQUE,areaKeys:[Qt]}),r().createElement(er,{width:a,height:l-36,data:t,lineKeys:Er,areaKeys:[Qt],getTooltip:xr,getColor:vr,yAxisLabel:ne().text("% of distinct values"),dateRange:s,changeZoom:p}))})))},Or=e=>{let{config:t}=e;const a=Ze(t),{showErrorBands:l}=te(),n=r().createElement(Tt,{title:ne().text("Uniqueness analysis"),data:[{label:`${ne().text("Unique")}:`,value:ne().text("Number of values that only appear once and have no duplicates")},{label:`${ne().text("Not unique")}:`,value:ne().text("Number of values that have at least one duplicate in the list")},...a&&l?[{value:ne().text('Anomaly detection is the process of analyzing company data to\nfind data points that don\'t align with standard data patterns. The "Error Band" depicts the expected range.')}]:[]],DataRenderer:Ot});return r().createElement(r().Fragment,null,a?r().createElement(br,{infoTooltipTitle:n,config:t}):r().createElement(yr,{config:t,infoTooltipTitle:n}))};var wr=a(90838);function Sr(){return Sr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Sr.apply(this,arguments)}const Tr=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Sr({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#6663F6"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 14.4h2.411c.016-.205.047-.405.093-.6H8.4v-1.2h3.012c.137-.215.296-.416.472-.6H8.4v-1.2h6v.011a3.896 3.896 0 011.8.287V8.4c0-.66-.54-1.2-1.2-1.2H7.8c-.66 0-1.2.54-1.2 1.2v7.8c0 .66.54 1.2 1.2 1.2h4.083a3.892 3.892 0 01-.979-1.8H8.4v-1.2zm6-4.2h-6V9h6v1.2zm2.58 5.934L18.852 18l-.852.852-1.872-1.872a2.66 2.66 0 01-1.434.42A2.695 2.695 0 0112 14.7c0-1.494 1.206-2.7 2.7-2.7 1.494 0 2.7 1.206 2.7 2.7 0 .528-.156 1.014-.42 1.434zm-2.28.066a1.5 1.5 0 10-.001-3.001A1.5 1.5 0 0014.7 16.2z",fill:"#fff"}))};function Rr(){return Rr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Rr.apply(this,arguments)}const _r=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Rr({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#1DACF5"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4 9.6H9.3L12 6.9l2.7 2.7h-2.1v3.846l-3.6 3.6-.846-.846 3.246-3.246V9.6zm4.446 6.6l-.846.846L12.954 15l.846-.846 2.046 2.046z",fill:"#fff"}))};function Ar(){return Ar=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ar.apply(this,arguments)}const Nr=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Ar({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#7F22FD"}),r().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 Dr(){return Dr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Dr.apply(this,arguments)}const Ir=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Dr({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#4B31E9"}),r().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 Cr(){return Cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Cr.apply(this,arguments)}const Mr=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Cr({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#80D2FC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6c-3.312 0-6 2.688-6 6s2.688 6 6 6 6-2.688 6-6-2.688-6-6-6zm-.6 4.96V9h1.2v1.96l1.698-.98.6 1.04L13.2 12l1.698.98-.6 1.04-1.698-.98V15h-1.2v-1.96l-1.698.98-.6-1.04L10.8 12l-1.698-.98.6-1.04 1.698.98zM7.2 12c0 2.646 2.154 4.8 4.8 4.8s4.8-2.154 4.8-4.8-2.154-4.8-4.8-4.8A4.806 4.806 0 007.2 12z",fill:"#fff"}))},kr=(0,o.makeStyles)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),Lr={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let Pr=function(e){return e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal",e}({});const Fr=e=>{let{detailType:t,size:a=Lr.NORMAL,variant:l=Pr.NORMAL}=e;const n=kr(a),i=xt()(n.icon,n[l]);switch(t){case nt.RDM_LOOKUP:return r().createElement(Nr,{className:i});case nt.CONTAIN_VF:return r().createElement(Tr,{className:i});case nt.INCLUDED_IN_MATCHING:return r().createElement(_r,{className:i});case nt.REFERENCE:return r().createElement(Ir,{className:i});case nt.REQUIRED:return r().createElement(Mr,{className:i});default:return null}},Br=(0,o.makeStyles)({root:{height:"24px",maxWidth:"calc(100% - 8px)",margin:"0 4px 4px 0",borderRadius:"12px",backgroundColor:"rgb(224, 224, 224)"},label:{fontSize:"12px",paddingLeft:"8px",paddingRight:"9px"},badQuality:{backgroundColor:"rgba(255, 23, 68, 0.12)"}});function jr(){return jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},jr.apply(this,arguments)}function zr(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Ur(e,t,a[t])}))}return e}function Ur(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Vr=e=>{let{detailType:t,classes:a}=e,l=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["detailType","classes"]);const n=Br(),{chartsData:{data:i,state:o}}=pe();let c=Pr.NORMAL;const s=o===h.o.LOADING,d=(e=>{var t;return 0===(null==e||null===(t=e.fillRate)||void 0===t?void 0:t[u.s9T.MISSING])})(i);return t===nt.REQUIRED&&(s&&(c=Pr.LOADING),s||d||(c=Pr.BAD_QUALITY)),r().createElement(Ia.Z,jr({classes:zr({root:xt()(n.root,{[n.badQuality]:t===nt.REQUIRED&&!s&&o!==h.o.INIT&&!d}),label:n.label},a),label:mt(t),icon:r().createElement(Fr,{detailType:t,variant:c})},l))},Hr=(0,o.makeStyles)({root:{display:"flex",flexWrap:"wrap",flexGrow:1},rootTimeRange:{marginLeft:"40px"}}),Yr=e=>{let{details:t,chipClasses:a={}}=e;const l=Hr(),{period:n}=K();return r().createElement("div",{className:xt()(l.root,{[l.rootTimeRange]:$e(n)})},Object.entries(t||{}).filter((e=>{let[,t]=e;return t})).map((e=>{let[t]=e;return r().createElement(Vr,{key:t,detailType:t,classes:a})})))},Wr=(0,o.makeStyles)({header:{display:"flex",paddingBottom:"16px"},info:{display:"flex",flexDirection:"column","&:not(:last-child)":{borderRight:"1px solid rgba(0,0,0,0.12)"}},entitySummary:{"&:not(:last-child)":{paddingRight:"48px",marginRight:"16px"}},attributeTypeSummary:{"&:not(:last-child)":{paddingRight:"24px",marginRight:"24px"}},infoTitle:{color:"rgba(0,0,0,0.54)",fontSize:"12px",lineHeight:"16px"},infoContent:{fontSize:"30px",lineHeight:"35px",padding:"4px 0 0",display:"flex",alignItems:"center"},attributeTypeIconWrapper:{width:"32px",height:"33px",background:"rgba(0, 0, 0, 0.05)",borderRadius:"4px",position:"relative",marginRight:"12px",flexShrink:0,"& svg":{position:"absolute",transform:"translate(-50%, -50%)",top:"50%",left:"50%"}},totalLoading:{padding:"4px 8px"},clickable:{color:"#000066",cursor:"pointer"},summaryWrapper:{display:"flex"}}),Gr=e=>{let{title:t,children:a,className:l,onClick:n,dataReltioId:i}=e;const o=Wr();return r().createElement("div",{className:xt()(o.info,l),onClick:n,"data-reltio-id":i},r().createElement("div",{className:o.infoTitle},t),r().createElement("div",{className:o.infoContent},a))};function Zr(){return Zr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Zr.apply(this,arguments)}const qr=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Zr({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg1279746712a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"15",height:"8"},r().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"})),r().createElement("g",{mask:"url(#svg1279746712a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function $r(){return $r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},$r.apply(this,arguments)}const Qr=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",$r({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg208732808a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"14"},r().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"})),r().createElement("g",{mask:"url(#svg208732808a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Kr(){return Kr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Kr.apply(this,arguments)}const Xr=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Kr({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg1638934380a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},r().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"})),r().createElement("g",{mask:"url(#svg1638934380a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Jr(){return Jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Jr.apply(this,arguments)}const en=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Jr({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().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 tn(){return tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},tn.apply(this,arguments)}const an=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",tn({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg924767730a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},r().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"})),r().createElement("g",{mask:"url(#svg924767730a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function ln(){return ln=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ln.apply(this,arguments)}const rn=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",ln({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg3578961193a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},r().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"})),r().createElement("g",{mask:"url(#svg3578961193a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))},nn=(0,o.makeStyles)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}}}),on={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},cn=e=>{let{type:t,size:a=on.SMALL}=e;const l=nn(a);switch(Ie(t)){case ye.STRING:return r().createElement(rn,{className:l.icon});case ye.FLOAT:return r().createElement(Xr,{className:l.icon});case ye.INTEGER:return r().createElement(en,{className:l.icon});case ye.BOOLEAN:return r().createElement(qr,{className:l.icon});case ye.DATE:return r().createElement(Qr,{className:l.icon});case ye.SSN:return r().createElement(an,{className:l.icon});default:return r().createElement(rn,{className:l.icon})}},sn=e=>{let{detailedAttributeType:t}=e;const a=Wr(),{entityType:n,period:i}=K(),o=(0,l.useMemo)((()=>[n]),[n]),c=fe(o).getEntityCount(n.uri),s=c?ne().number(c):r().createElement(wr.Z,{size:24,className:a.totalLoading});return r().createElement("div",{className:xt()({[a.summaryWrapper]:$e(i)})},r().createElement("div",{className:a.header},r().createElement(Gr,{title:ne().text("Active profiles"),className:a.attributeTypeSummary},r().createElement(Zt.Z,{title:r().createElement(Tt,{data:[{label:ne().text("Entities with exists attribute"),value:ne().number(c)}]})},r().createElement("div",null,s))),r().createElement(Gr,{title:ne().text("Data type"),className:a.attributeTypeSummary},(d=t.type,r().createElement(r().Fragment,null,r().createElement("div",{className:a.attributeTypeIconWrapper},r().createElement(cn,{type:d,size:on.NORMAL})),ne().text(d))))),r().createElement(Yr,{details:t.details}));var d},dn=e=>{let{entityType:t}=e;const{chartsData:{data:a,state:l}}=pe(),n=((e,t)=>{const a=(0,u.WN0)(e,t)||[],l=e=>e.reduce(((e,t)=>{const a=null==t?void 0:t.children;return null!=a&&a.length?[...e,t,...l(a)]:[...e,t]}),[]);return l(a).length})((0,w.useSelector)(T.ZP.selectors.getMetadata),t),{activeProfiles:i=0,inactiveProfiles:o=0,sourceSystems:c=0}=(null==a?void 0:a.summary)||{},s=e=>l===h.o.LOADING?r().createElement(wr.Z,{size:24,className:d.totalLoading}):ne().number(e),d=Wr(),p=Gt(Pe);return r().createElement("div",{className:d.header},r().createElement(Gr,{title:ne().text("Active profiles"),className:xt()(d.entitySummary,d.clickable),onClick:()=>p(u.Ng6.ACTIVE_ONLY,u.Ng6.ACTIVE_ONLY),dataReltioId:"reltio-dq-dashboard-entitylevel-summary-activeProfiles"},s(i)),r().createElement(Gr,{title:ne().text("Inactive profiles"),className:xt()(d.entitySummary,d.clickable),onClick:()=>p(u.Ng6.INACTIVE_ONLY,u.Ng6.INACTIVE_ONLY),dataReltioId:"reltio-dq-dashboard-entitylevel-summary-inactiveProfiles"},s(o)),r().createElement(Gr,{title:ne().text("Attributes"),className:d.entitySummary},ne().number(n)),r().createElement(Gr,{title:ne().text("Source systems"),className:d.entitySummary},s(c)))},pn=(0,o.makeStyles)({content:{padding:"0 16px",marginTop:"4px"}}),un=e=>{let{config:t}=e;const a=pn(),{detailedAttributeType:n,entityType:i}=K(),o=(0,l.useContext)(tt)===u.yn8.ATTRIBUTE_TYPE,c=o?(0,u.idV)(n.label):`${ne().text("Entity")}: ${(0,u.idV)(i.label)}`;return r().createElement(Da,{config:t},r().createElement(_a,{title:c}),r().createElement(pa.Z,{className:a.content},o?r().createElement(sn,{detailedAttributeType:n}):r().createElement(dn,{entityType:i})))};var mn=a(65298);const fn=(0,o.makeStyles)({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}});function hn(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){yn(e,t,a[t])}))}return e}function yn(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const gn=sa.B9.ERROR,En=e=>{let{config:t,errorData:a,titleChildren:l,infoTooltipTitle:n,onRefresh:i}=e;const{id:o,title:c}=t,s=fn();return r().createElement(mn.Z,{id:o},r().createElement(_a,{title:c,infoTooltipTitle:n},l),r().createElement(pa.Z,{className:s.viewContent},r().createElement(ca.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},r().createElement(Ea,{errorData:hn({Icon:gn},a),onRefresh:i,variant:ha.SMALL}))))};function vn(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){xn(e,t,a[t])}))}return e}function xn(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const bn=e=>(0,m.pipe)((0,m.propOr)({},e),Object.entries,(0,m.map)((e=>{let[t,a]=e;return{label:t,group:t,value:a}})),Re),On=e=>{let{sortDirection:t,sortField:a}=e;return(e,l)=>"asc"===t?e[a]>l[a]?1:-1:e[a]<l[a]?1:-1},wn=(e,t)=>t.filter((t=>e.find((0,m.propEq)("uri",t.group)))),Sn=(e,t)=>e.find((0,m.propEq)("uri",t)),Tn=(0,m.curry)(((e,t)=>(0,m.pipe)(wn,(0,m.map)((t=>{var a;return vn({},t,{label:null===(a=Sn(e,t.group))||void 0===a?void 0:a.name})})))(e,t))),Rn=(0,m.pipe)((0,m.map)(rt),(0,m.slice)(1,1/0),(0,m.join)(" / ")),_n=(0,m.curry)(((e,t,a)=>(0,m.pipe)(wn,(0,m.map)((a=>{const{name:l,attribute:r}=Sn(e,a.group),n=(0,u.X3M)(t,r);return vn({},a,{label:l,attributeLabel:Rn(n)})})))(e,a))),An=e=>(0,m.pipe)(bn("dataValidationFunctions"),Tn(e)),Nn=bn("frequency"),Dn=bn("pattern"),In=(e,t)=>`${e}/analyticsAttributes/AttributeValidations/analyticsAttributes/${t}`,Cn=(e,t)=>{let{name:a,uri:l}=e;return[{filter:u.j5E.EQUALS,values:[[a]],fieldName:"analyticsAttributes.AttributeValidations.FunctionName",uri:In(t,"FunctionName")},{filter:u.j5E.EQUALS,values:[[l]],fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",uri:In(t,"FunctionURI")}]},Mn=(0,m.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Ut({fieldName:`${a.fieldName}`,value:t,entityTypeUri:l})})),kn=(0,m.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:u.j5E.ON,values:[t],fieldName:a}]})),Ln=(0,m.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:u.j5E.EQUALS,values:[[t]],fieldName:a}]})),Pn=(0,m.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:u.j5E.EQUALS,values:[(0,u.gxP)(t)],fieldName:a}]})),Fn=e=>{let{detailedAttributeType:t,entityTypeUri:a}=e;return(0,m.cond)([[u.j5n,(0,m.always)(Mn)],[u.Lt4,(0,m.always)(De(kn))],[u.T6Y,(0,m.always)(De(Pn))],[m.identity,(0,m.always)(De(Ln))]])(t.type)({detailedAttributeType:t,entityTypeUri:a})},Bn=(0,m.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Ut({fieldName:`${a.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:l})})),jn=e=>`(${e.length>=100?ne().text("top")+" 100":e.length})`;function zn(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Un(e,t,a[t])}))}return e}function Un(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Vn="noData",Hn=e=>{let{functionsCount:t,period:a}=e;return[{id:"attributeLabel",label:ne().text("Attribute"),width:.23,sortable:!0},{id:"label",label:ne().text("Validation function"),secondLabel:`(${t})`,width:.37,sortable:!0},zn({id:"value",label:ne().text("Profiles"),width:.4,sortable:!0},$e(a)?{getBarColor:u.jLA}:{})]},Yn=e=>{let{functionsCount:t,period:a}=e;return[{id:"label",label:ne().text("Validation function"),secondLabel:`(${t})`,width:.4,sortable:!0},zn({id:"value",label:ne().text("Profiles"),width:.6,sortable:!0},$e(a)?{getBarColor:u.jLA}:{})]},Wn=(e,t,a)=>(e===u.yn8.ATTRIBUTE_TYPE?Yn:Hn)({functionsCount:t.length,period:a}),Gn=e=>{const{data:t}=(0,m.propOr)({},"violatedProfiles",e);return(0,m.when)((0,m.either)(m.isNil,m.isEmpty),(0,m.always)({[Vn]:null}))(t)};var Zn=a(55485);function qn(){return qn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},qn.apply(this,arguments)}const $n=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",qn({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),r().createElement("mask",{id:"svg1830866123a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},r().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),r().createElement("g",{mask:"url(#svg1830866123a)"},r().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},r().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"}),r().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"})),r().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"29.318",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),r().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"}),r().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"}),r().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"}),r().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"}),r().createElement("rect",{opacity:".5",x:"19.854",y:"17.689",width:"29.914",height:"4.126",rx:"2.063",fill:"#645F6D"}),r().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"43.573",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),r().createElement("rect",{x:"19.854",y:"42.072",width:"7.105",height:"7.127",rx:"3.552",fill:"#E3EBF4"}),r().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"}),r().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"}),r().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"}),r().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"57.828",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),r().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"}),r().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"}),r().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"}),r().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"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 3.094h88V88H0V3.094z",fill:"url(#paint0_linear_3200_4362)"}),r().createElement("path",{d:"M79.893 76.85H21.308v14.184h58.585V76.85z",fill:"#F5C056"}),r().createElement("path",{d:"M79.893 76.85H74.6v14.184h5.293V76.85z",fill:"#E99B00"}),r().createElement("path",{d:"M48.73 76.893H26.283v14.184H48.73V76.893z",fill:"#FFEA5A"}),r().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"}),r().createElement("path",{d:"M61.253 70.383H39.949v2.663h21.304v-2.663z",fill:"#FFD264"}),r().createElement("path",{d:"M47.938 70.383h-4.185v2.663h4.185v-2.663z",fill:"#FFEA5A"}),r().createElement("path",{d:"M64.676 73.046h-28.15v3.804h28.15v-3.804z",fill:"#795D1A"}),r().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"}),r().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"}),r().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"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.676 73.046v3.804H50.601v-3.804h14.075z",fill:"#4F350B"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.253 70.383v2.663H50.6v-2.663h10.652z",fill:"#F4B046"}),r().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"}),r().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"}),r().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"}),r().createElement("path",{opacity:".519",d:"M72.665 13.32h-44.51v3.043h44.51v-3.044z",fill:"#F4B046"}),r().createElement("path",{d:"M48.318 73.046h-5.706v3.804h5.706v-3.804z",fill:"#96691F"}),r().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)"}),r().createElement("g",{filter:"url(#filter0_d_3200_4362)"},r().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"})),r().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"}),r().createElement("path",{d:"M56.909 54.302a8.681 8.681 0 100-17.362 8.681 8.681 0 000 17.362z",fill:"#FFCE66"}),r().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"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.202 10.656l10.862 25.341H54.83L43.646 10.705l4.556-.049z",fill:"#F83D3D"})),r().createElement("defs",null,r().createElement("linearGradient",{id:"paint0_linear_3200_4362",x1:"0",y1:"3.094",x2:"0",y2:"88",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),r().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"paint1_linear_3200_4362",x1:"62.25",y1:"10.656",x2:"62.25",y2:"35.935",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#B93131"}),r().createElement("stop",{offset:"1",stopColor:"#831616"})),r().createElement("filter",{id:"filter0_d_3200_4362",x:"40.057",y:"30.77",width:"33.702",height:"33.703",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"3"}),r().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"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3200_4362"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3200_4362",result:"shape"}))))};function Qn(){return Qn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Qn.apply(this,arguments)}const Kn=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Qn({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),r().createElement("mask",{id:"svg355575424a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},r().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),r().createElement("g",{mask:"url(#svg355575424a)"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_3488_11934)"}),r().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)"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),r().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),r().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),r().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),r().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),r().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),r().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"}),r().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"}),r().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"}),r().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),r().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"}),r().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"}),r().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)"}),r().createElement("g",{filter:"url(#filter0_d_3488_11934)",fillRule:"evenodd",clipRule:"evenodd"},r().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"}),r().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"}),r().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"}),r().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"}))),r().createElement("defs",null,r().createElement("linearGradient",{id:"paint0_linear_3488_11934",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),r().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"paint1_linear_3488_11934",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".01"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"paint2_linear_3488_11934",x1:"86.975",y1:"77.519",x2:"49.809",y2:"46.968",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#90A4AE",stopOpacity:"0"}),r().createElement("stop",{offset:"1",stopOpacity:".75"})),r().createElement("filter",{id:"filter0_d_3488_11934",x:"32.168",y:"30.067",width:"53.209",height:"53.716",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dx:"1",dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().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"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3488_11934"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3488_11934",result:"shape"}))))};function Xn(){return Xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Xn.apply(this,arguments)}const Jn=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Xn({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),r().createElement("mask",{id:"svg1954152798a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},r().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),r().createElement("g",{mask:"url(#svg1954152798a)"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_4523_4542)"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M64.543 19.547L84.7 39.704V90.88H32.1L17.875 77.372V19.547h46.668z",fill:"url(#paint1_linear_4523_4542)"}),r().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"}),r().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"}),r().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"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 29.093c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 110 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),r().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"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 60.156c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 110 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),r().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 66.344c0-.57.462-1.031 1.031-1.031h28.059a1.031 1.031 0 010 2.063H37.254c-.57-.001-1.031-.463-1.031-1.032z",fill:"#B6C7DB"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 70.469c0-.57.462-1.031 1.031-1.031h25.508a1.031 1.031 0 010 2.063H37.125c-.57-.001-1.031-.463-1.031-1.032z",fill:"#979797"}),r().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 35.406c0-.57.461-1.031 1.03-1.031h28.06a1.031 1.031 0 010 2.063h-28.06c-.569 0-1.03-.462-1.03-1.032z",fill:"#B6C7DB"}),r().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"}),r().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),r().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),r().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),r().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),r().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),r().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),r().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 45.719c0-.57.461-1.032 1.03-1.032h28.06a1.031 1.031 0 010 2.063h-28.06c-.569 0-1.03-.462-1.03-1.031z",fill:"#B6C7DB"}),r().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"}),r().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"}),r().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),r().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"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M19.938 12.719c0-1.14.923-2.063 2.062-2.063h24.063a2.062 2.062 0 010 4.125H22a2.062 2.062 0 01-2.063-2.062zM50.875 12.719c0-1.14.923-2.063 2.063-2.063h3.437a2.062 2.062 0 110 4.125h-3.438a2.062 2.062 0 01-2.062-2.062z",fill:"#979797"}),r().createElement("g",{filter:"url(#filter0_d_4523_4542)"},r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#4A90E2"}),r().createElement("path",{opacity:".15",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#4A90E2"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#4A90E2"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#4A90E2"}),r().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#61A3F1"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.33 66.066 75.41h-2.029l-7.582-7.582 1.006-3.178.837-18.201z",fill:"url(#paint2_linear_4523_4542)"}),r().createElement("g",{filter:"url(#filter1_d_4523_4542)"},r().createElement("circle",{cx:"57.406",cy:"47.781",r:"1.719",fill:"#fff"})),r().createElement("g",{filter:"url(#filter2_d_4523_4542)"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M55.688 53.969a1.719 1.719 0 113.438 0v12.375a1.719 1.719 0 11-3.438 0V53.969z",fill:"#fff"}))),r().createElement("defs",null,r().createElement("linearGradient",{id:"paint0_linear_4523_4542",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),r().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"paint1_linear_4523_4542",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".01"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"paint2_linear_4523_4542",x1:"77.079",y1:"63.788",x2:"62.929",y2:"54.707",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".01"}),r().createElement("stop",{offset:"1"})),r().createElement("filter",{id:"filter0_d_4523_4542",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().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"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4523_4542"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4523_4542",result:"shape"})),r().createElement("filter",{id:"filter1_d_4523_4542",x:"51.688",y:"44.063",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().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"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4523_4542"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4523_4542",result:"shape"})),r().createElement("filter",{id:"filter2_d_4523_4542",x:"51.688",y:"50.25",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().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"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4523_4542"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4523_4542",result:"shape"}))))},ei=(0,o.makeStyles)((e=>({title:{whiteSpace:"nowrap",height:"24px",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"},titleCount:{fontSize:"14px",overflow:"hidden",lineHeight:"20px",textOverflow:"ellipsis"},viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"},countProfiles:{color:e.palette.text.primary,fontWeight:700},chartInfoPanel:{padding:"0 12px"}})));let ti=function(e){return e.DVF_NOT_SUPPORTED="dvfNotSupported",e.DVF_NOT_CONFIGURE="dvfNotConfigured",e.DATA_VALID="dataValid",e.PERMISSION_DENIED="permissionDenied",e}({});const ai=e=>{let{chartType:t,dataLevel:a,title:l,infoTooltipTitle:n,titleChildren:i,dvfConfigLink:o,config:c}=e;const s=ei();let d,p,m;const f=a===u.yn8.ATTRIBUTE_TYPE?ne().text("attribute type"):ne().text("entity type");switch(t){case ti.DVF_NOT_SUPPORTED:d=Jn,m=ne().text("Data validation functions are not supported for\nReference attributes at this time.");break;case ti.DVF_NOT_CONFIGURE:d=Kn,p=ne().text("If we spot any validation issues, we’ll display them here."),m=r().createElement(r().Fragment,null,r().createElement(Zn.Z,{href:o,target:"_blank",component:o?"a":"span",color:o?"primary":"inherit",underline:o?"hover":"none","data-reltio-id":"reltio-dq-dashboard-define-dvf-link"},`${ne().text("Define some data validation functions")} `),ne().text("for this ${dataSourceLabel} (or ask your Tenant Admin).",{dataSourceLabel:f}));break;case ti.DATA_VALID:d=$n,p=ne().text("We didn’t spot any validation issues for this ${dataSourceLabel}.\nYou can kick back and enjoy a cold one.",{dataSourceLabel:f}),m=ne().text("Nice one!");break;case ti.PERMISSION_DENIED:d=sa.B9.ERROR,p=ne().text("Please contact your Tenant Admin to change permissions"),m=ne().text("You don’t currently have permission to view this chart")}return r().createElement(Da,{config:c},r().createElement(_a,{title:l,infoTooltipTitle:n},i),r().createElement(pa.Z,{className:s.viewContent},r().createElement(ca.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=0}=e;return r().createElement(Ea,{height:t,errorData:{Icon:d,title:m,message:p}})}))))},li=e=>{let{dvfs:t,errorCode:a,state:r}=e;const n=(0,l.useContext)(tt),{detailedAttributeType:i}=K();return(0,l.useCallback)(((e,l)=>{const o=r===h.o.LOADED&&e===h.o.LOADED?h.o.LOADED:r===h.o.ERROR||e===h.o.ERROR?h.o.ERROR:h.o.LOADING,c=n===u.yn8.ATTRIBUTE_TYPE,s=a===u.Xt7.ACCESS_DENIED,d=c&&ht(i),p=a===u.Xt7.DVF_NOT_CONFIGURED||0===(null==t?void 0:t.length)&&o!==h.o.ERROR&&r===h.o.LOADED,m=o===h.o.LOADED&&(null==t?void 0:t.length)>0&&!l;return{type:d?ti.DVF_NOT_SUPPORTED:p?ti.DVF_NOT_CONFIGURE:m?ti.DATA_VALID:s?ti.PERMISSION_DENIED:void 0,chartState:o}}),[t,a,r,n,i])},ri=e=>{let{onlyActive:t=!0}=e;const{dvfs:a,dvfConfigLink:r}=(0,l.useContext)(ce),n=(0,l.useContext)(tt),{detailedAttributeType:i}=K(),{data:o,state:c,reload:s,errorCode:d}=a,p=n===u.yn8.ATTRIBUTE_TYPE,f=(0,l.useMemo)((()=>(p?((e,t)=>(e||[]).filter((0,m.propEq)("attribute",t)))(o,null==i?void 0:i.uri):o)||[]),[p,o,null==i?void 0:i.uri]);return{dvfs:(0,l.useMemo)((()=>t?f.filter((0,m.propEq)("status",u.lVm.ACTIVE)):f),[f,t]),dvfConfigLink:r,state:c,reload:s,errorCode:d}};var ni=a(45108),ii=a(92332);const oi=(0,m.pipe)((0,m.split)("|"),(e=>{let[t,a]=e;return{label:t,maxValue:a}})),ci=(e,t)=>(0,m.is)(Number,t[e])?ne().number(t[e]):t[e],si=e=>{let{children:t,handler:a,handleWidth:n=!0}=e;const i=(0,l.useRef)();return r().createElement(ca.Z,{handleWidth:n,onResize:()=>{return a((e=i.current)&&e.children[0].clientWidth<e.children[0].scrollWidth);var e}},r().createElement("div",{style:{overflow:"hidden"},ref:i},t))};function di(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){pi(e,t,a[t])}))}return e}function pi(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const ui={background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",content:'""',height:"100%",pointerEvents:"none",position:"absolute",right:0,top:0,width:"40px"},mi={background:"rgba(0, 0, 0, 0.38)",bottom:0,content:'""',height:"3px",left:0,position:"absolute",width:"1px"},fi=(0,o.makeStyles)((e=>({attribute:{"&:after":ui,alignItems:"center",color:e.palette.text.primary,display:"flex",fontSize:"13px",fontWeight:"normal",height:"100%",lineHeight:"15px",overflow:"hidden",padding:"0 16px",whiteSpace:"pre"},headCell:{"&>div":{display:"flex",flexDirection:e=>e?"row":"row-revers",flexGrow:1,justifyContent:"flex-start",marginLeft:e=>!e&&"-26px",paddingLeft:"16px",paddingRight:e=>e&&"0"},"&>div>span":{flexGrow:1,justifyContent:e=>e?"flex-start":"flex-end",marginLeft:"0!important",width:"100%"},height:"100%",lineHeight:"47px"},headCellWithRange:{"&>div":{display:"flex",flexDirection:"row-revers",flexGrow:1,justifyContent:"flex-start",padding:"0 10px 0 16px"},"&>div>span":{flexGrow:1,justifyContent:"flex-start!important",width:"100%"},height:"100%",lineHeight:"47px"},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"47px",overflow:"hidden",position:"relative",whiteSpace:"nowrap","&.overflowed:after":ui},labelWrapper:{maxWidth:"90px","&.sortable":{maxWidth:"68px"}},rangeLabel:{"&:first-child":{flexGrow:1},color:e.palette.text.secondary,fontSize:"12px"},rangeWrapper:{"&:after":di({},mi,{left:"initial",right:0}),"&:before":mi,alignItems:"flex-end",display:"flex",flexGrow:1,lineHeight:"24px",marginLeft:"32px",maxWidth:"calc(100% - 122px)",position:"relative","&.sortable":{height:"100%",maxWidth:"calc(100% - 144px)"}},tooltipTitle:{color:"rgba(255, 255, 255, 0.6)"},tooltipValue:{whiteSpace:"pre-wrap"},popper:{paddingTop:"6px"}}))),hi=(0,o.makeStyles)((e=>({bar:t=>{let{barColor:a}=t;return{borderRadius:"0 !important",minHeight:"16px !important",position:"initial !important",background:a||e.palette.secondary.main}},colorBarContainer:{"&>div":{opacity:1},boxSizing:"border-box",height:"100%",padding:"5px 0 6px",position:"relative",width:"100%"},numberContainer:{alignItems:"center",display:"flex",height:"100%",padding:"0 10px 0 16px"},number:{color:e.palette.text.primary,flexShrink:0,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",marginRight:"32px",overflow:"hidden",textAlign:"right",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"90px"},popper:{paddingTop:"6px"}})));function yi(){return yi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},yi.apply(this,arguments)}function gi(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Ei(e,t,a[t])}))}return e}function Ei(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const vi=e=>{let{headCellData:t,headIndex:a}=e,n=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["headCellData","headIndex"]);const i=fi(0===a),{label:o,maxValue:c}=oi(t.label),s=(0,u.k7L)(Number(c),999),d=!!c,[p,m]=(0,l.useState)(!1),f=r().createElement(si,{handler:m},r().createElement(Zt.Z,{title:p?o:""},r().createElement("div",{className:xt()(i.headLabel,{overflowed:p})},o)));return r().createElement("div",{className:xt()({[i.headCell]:!d,[i.headCellWithRange]:d})},r().createElement(ii.default,yi({},n,{headCellData:gi({},t,{label:d?r().createElement(r().Fragment,null,r().createElement("div",{className:xt()(i.rangeWrapper,{sortable:t.sortable})},r().createElement("span",{className:i.rangeLabel},"0"),r().createElement("span",{className:i.rangeLabel},s)),r().createElement("div",{className:xt()({[i.labelWrapper]:!t.sortable,sortable:t.sortable})},f)):f})})))};var xi=a(59383),bi=a(30488);const Oi=e=>{let{columnsHeaders:t,chartData:a}=e;const l=fi();return r().createElement(Tt,{data:t.map((e=>{let{label:t,id:n}=e;return{label:r().createElement("span",{className:l.tooltipValue},t),value:ci(n,a)}}))})},wi=(0,bi.Z)(((e,t)=>{let{onItemClick:a,columnsHeaders:l}=e,{rowValue:{group:r}}=t;return{onClick:a&&(()=>{a(r)}),columnsHeaders:l}}))((e=>{let{value:t="",columnData:a,rowValue:l,columnsHeaders:n,onClick:i}=e;const{cellClassName:o,variant:c,labelRenderer:s}=a,d=fi(),p=(0,xi.d)(i),m=!!s;return r().createElement(Zt.Z,{title:r().createElement(Oi,{columnsHeaders:n,chartData:l}),followCursor:!0,classes:{popper:d.popper}},r().createElement("div",{className:xt()(d.attribute,p,o),onClick:i},m?r().createElement(s,{variant:c,chartData:l}):u.P6Y.strings.removeLineBreaks(t)))}));var Si=a(89902);const Ti=(0,bi.Z)(((e,t)=>{let{onItemClick:a,columnsHeaders:l}=e,{rowValue:{group:r}}=t;return{onClick:a&&(()=>{a(r)}),columnsHeaders:l}}))((e=>{let{value:t,columnData:{maxValue:a,getBarColor:l},rowValue:n,columnsHeaders:i,onClick:o}=e;const c=hi({barColor:l&&l(n.group)}),s=(0,xi.d)(o),d=0===t?"0":(0,u.k7L)(t,999);return r().createElement(Zt.Z,{title:r().createElement(Oi,{columnsHeaders:i,chartData:n}),followCursor:!0,classes:{popper:c.popper}},r().createElement("div",{className:xt()(c.numberContainer,s),onClick:o},r().createElement(ma.Z,{className:c.number},d),!(0,m.isNil)(a)&&r().createElement("div",{className:c.colorBarContainer},r().createElement(Si.Z,{width:t,maxWidth:a,className:c.bar}))))})),Ri=(0,o.makeStyles)({tableContainer:e=>{let{width:t}=e;return{width:t,display:"flex",flexDirection:"column",flexGrow:1,"& .hoveredRow":{background:"transparent"},"& .hoveredRow:after":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,backgroundColor:"rgba(0,0,0,0.07)",pointerEvents:"none"}}},cellBorder:{borderLeft:"none",borderRight:"none!important"}});function _i(){return _i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},_i.apply(this,arguments)}function Ai(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Ni=(e,t)=>t?`${e} ${t}`:e,Di=e=>{let{width:t,height:a,data:n,columnsOptions:i,basicTableRef:o,onItemClick:c,dataReltioId:s}=e,d=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["width","height","data","columnsOptions","basicTableRef","onItemClick","dataReltioId"]);const p=Ri({width:t,height:a}),u=(0,l.useMemo)((()=>({cellBorder:p.cellBorder})),[p]),f=(0,l.useMemo)((()=>Math.max(...(0,m.pluck)("value",n))),[n]),h=(0,l.useMemo)((()=>i.map((e=>function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Ai(e,t,a[t])}))}return e}({resizable:!1,sortable:!1,headCellRenderer:vi,rowCellValueRenderer:wi,label:Ni(e.label,e.secondLabel),initialWidth:t*e.width},"value"===e.id?{label:Ni(e.label,e.secondLabel).concat(`|${f}`),maxValue:f,rowCellValueRenderer:Ti}:{},(0,m.omit)(["label","width"],e))))),[i,f,t]),y=(0,l.useMemo)((()=>i.map((0,m.pick)(["id","label"]))),[i]),g=(0,l.useMemo)((()=>({onItemClick:c,columnsHeaders:y})),[c,y]);return r().createElement("div",{className:p.tableContainer,"data-reltio-id":s},r().createElement(ni.Z,_i({columnsData:h,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:u,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:g,hoverStateEnabled:!0},d)))},Ii=(0,o.makeStyles)((()=>({layoutItemContent:{padding:"0 0 10px",display:"flex",flexDirection:"column"}}))),Ci=(0,he.Z)((e=>{let{config:t,data:a,title:n,columnsOptions:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,contentChildren:d,state:p,onRefresh:y,dataLevel:g=u.yn8.ATTRIBUTE_TYPE}=e;const E=Ii(),[v,x]=(0,l.useState)("desc"),[b,O]=(0,l.useState)("value"),w=(0,l.useCallback)(((e,t)=>c?c({sortDirection:v,sortField:b})(e,t):On({sortDirection:v,sortField:b})(e,t)),[v,b,c]),S=e=>{x((()=>b===e?(0,k.Dh)(v):v)),O(e)},T=(0,l.useMemo)((()=>[...a.sort(w)]),[w,a]),{showExportButton:R}=te(),_=(0,l.useMemo)((()=>R&&p===h.o.LOADED&&a.length>0),[p,a]),{period:A,exportLoadingIds:N}=K(),D=(0,l.useMemo)((()=>(0,f.x0)()),[]);return r().createElement(Da,{config:t},r().createElement(_a,{title:n,infoTooltipTitle:o},$e(A)&&g===u.yn8.ATTRIBUTE_TYPE&&r().createElement(ka,{disabled:!0}),_&&r().createElement(oa,{config:t,exportLoadingId:D})),r().createElement(xa,{className:E.layoutItemContent,data:T,loadingState:p,onRefresh:y},(e=>{let{data:t,width:a=0,height:l=0}=e;return r().createElement(r().Fragment,null,(0,m.has)(D,N)&&r().createElement(qt.Z,null),d,r().createElement(Di,{data:t,width:a,height:l,columnsOptions:i,sorting:{field:b,order:v},onSort:S,onItemClick:s}))})))})),Mi=e=>{let{isDataValid:t,totalProfiles:a,invalidProfiles:l}=e;const n=ei(),i=t?ne().text("0 profiles"):(0,m.isNil)(l)?null:r().createElement(r().Fragment,null,r().createElement("span",{className:n.countProfiles},(0,u.k7L)(l)),` (${Math.round(l/a*100)}% ${ne().text("out of")} ${(0,u.k7L)(a)})`);return i&&r().createElement(ma.Z,{className:n.titleCount},i)},ki=e=>{const t=ei(),{config:a}=e,n=ri({}),{dvfs:i,dvfConfigLink:o,errorCode:c,reload:s,state:d}=n,p=li(n),f=(0,w.useSelector)(T.ZP.selectors.getMetadata),y=(0,l.useContext)(tt),g=y===u.yn8.ATTRIBUTE_TYPE,{period:E,entityType:v}=K(),x=v.uri,{data:b,state:O,reload:R}=jt(g?An(i):((e,t)=>(0,m.pipe)(bn("dataValidationFunctions"),_n(e,t)))(i,f)),_=!!b.length,{type:A,chartState:N}=p(O,_),D=(0,l.useMemo)((()=>[v]),[v]),I=(e=>{let{entityTypeUri:t,dvfUris:a}=e;const[r,n]=(0,l.useState)(null),i=(0,S._)();return(0,l.useEffect)((()=>{const e=[{fieldName:"type",filter:u.j5E.EQUALS,values:[t]},{fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",filter:u.j5E.EQUALS,values:a}];i((0,u.j_Q)(e)).then((e=>{let{total:t}=e;return n(t)})).catch((()=>n(null)))}),[t,a]),r})({entityTypeUri:x,dvfUris:(0,l.useMemo)((()=>(0,m.pluck)("uri",i)),[i])}),{getEntityCount:C}=fe(D),M=C(x),k=Gt((e=>t=>{let{entityTypeUri:a}=t;return t=>{const l=Sn(e,t);return(0,m.pipe)(Cn,Ne(null,a))(l,a)}})(i)),L=!(N===h.o.ERROR&&c!==u.Xt7.DVF_NOT_CONFIGURED)&&A!==ti.DVF_NOT_CONFIGURE&&N!==h.o.LOADING&&r().createElement(Mi,{isDataValid:ti.DATA_VALID===A,totalProfiles:M,invalidProfiles:I}),P=r().createElement(Tt,{title:ne().text("Profiles with invalid data"),data:[{value:ne().text("Shows the number of profiles that violate active validation functions")}],DataRenderer:Ot}),F=r().createElement("div",{className:t.chartInfoPanel},r().createElement(rl,{label:`${ne().text("Profiles with invalid data")}:`,info:L})),B=Wn(y,b,E),j=(0,l.useCallback)((()=>{d===h.o.ERROR&&s(),O===h.o.ERROR&&R()}),[d,s,O,R]);return A?r().createElement(ai,{config:a,chartType:A,title:ne().text(a.title),infoTooltipTitle:P,dvfConfigLink:o,dataLevel:y}):r().createElement(Ci,{config:a,title:ne().text(a.title),data:b,onItemClick:k,state:N,onRefresh:j,customComparator:On,infoTooltipTitle:P,columnsOptions:B,contentChildren:F,dataLevel:y})},Li=[aa],Pi=(e,t)=>a=>{let{active:l,payload:n}=a;if(l&&n&&n.length){const{payload:a}=n[0],l=(0,m.pipe)((0,m.map)((t=>{const l=Sn(e,t);return{label:(0,u.idV)((null==l?void 0:l.label)||(null==l?void 0:l.name)),value:a[t],group:t}})),(0,m.reject)((0,m.propSatisfies)(m.isNil,"value")))(t),i=qe(a,t);return r().createElement(At,{title:i,data:l,getColor:u.jLA})}},Fi=e=>{const{config:t}=e,{title:a}=t,{period:n,dateRange:i,entityType:o,detailedAttributeType:c,exportLoadingIds:s}=K(),d=ri({onlyActive:!0}),{dvfs:p,dvfConfigLink:y,reload:g,state:E}=d,{changeZoom:v}=X(),b=li(d),O=(0,l.useContext)(tt),w=o.uri,S=null==c?void 0:c.fieldName,{data:T,state:R,reload:_}=qa({entityTypeUri:w,attributeFieldName:S,period:n,metrics:Li}),{data:A,state:N,reload:D}=jt(An(p)),I=(0,l.useMemo)((()=>(0,m.pipe)(We(Gn),Qe(n,A,u.N0y.DATA_VALIDATION),Ke(p))(T)),[T,A]);x({state:R,reload:_,dataLevel:u.yn8.ATTRIBUTE_TYPE});const C=(0,m.pipe)((0,m.reduce)(((e,t)=>e.concat((0,m.keys)(t))),[]),m.uniq,(0,m.without)(["label","group"]))(I),M=C.toString()!==Vn,{type:k,chartState:L}=b(je([R,N]),M),P=r().createElement(Tt,{title:ne().text("Profiles with invalid data over time"),data:[{value:ne().text("Shows the number of profiles that violate active validation functions")}],DataRenderer:Ot}),F=(0,l.useCallback)((()=>{E===h.o.ERROR&&g(),R===h.o.ERROR&&_(),N===h.o.ERROR&&D()}),[E,g,R,_,N,D]),B=r().createElement(ka,null),j=L===h.o.LOADING?h.o.LOADING:je([R,N]),{showExportButton:z}=te(),U=(0,l.useMemo)((()=>z&&R===h.o.LOADED&&Xa(I,i).length>0),[I,i,z,R]),V=(0,l.useMemo)((()=>(0,f.x0)()),[]);return k===ti.DVF_NOT_SUPPORTED||k===ti.PERMISSION_DENIED?r().createElement(ai,{config:t,chartType:k,title:ne().text(a),infoTooltipTitle:P,titleChildren:B,dvfConfigLink:y,dataLevel:O}):r().createElement(Da,{config:t},r().createElement(_a,{title:a,infoTooltipTitle:P},B,U&&r().createElement(oa,{config:t,exportLoadingId:V})),r().createElement(xa,{data:I,loadingState:j,onRefresh:F},(e=>{let{data:t,width:a,height:l}=e;return r().createElement("div",null,(0,m.has)(V,s)&&r().createElement(qt.Z,null),r().createElement(er,{width:a,height:l,data:t,lineKeys:C,getTooltip:Pi(p,C),getColor:u.jLA,yAxisLabel:ne().text("No. of profiles"),isPercent:!1,dateRange:i,changeZoom:v}))})))},Bi=e=>{const{config:t}=e,a=Ze(t);return r().createElement(Da,{config:t},a?r().createElement(Fi,e):r().createElement(ki,e))},ji=e=>{var t;let{config:a}=e;const n=ar(),{data:i,state:o,reload:c}=jt(Nn),s=null===(t=K().detailedAttributeType)||void 0===t?void 0:t.type,d=(0,l.useMemo)((()=>(0,u.Lt4)(s)?((e,t)=>e.map((e=>Se({},e,{label:(0,u.mB6)({dataTypeDefinition:{type:t}},Number(e.label))}))))(i,s):i),[i]),p=Gt(Fn),m=r().createElement(Tt,{title:ne().text("Frequency analysis"),data:[{value:ne().text("Shows the number of times each value occurs")}],DataRenderer:Ot}),f=[{id:"label",label:ne().text("Value"),secondLabel:jn(i),width:.4,cellClassName:xt()({[n.monoFontCell]:(0,u.m6e)(s)})},{id:"value",label:ne().text("Count"),width:.6}];return r().createElement(Ci,{config:a,data:d,title:a.title,infoTooltipTitle:m,onItemClick:p,state:o,onRefresh:c,columnsOptions:f})};var zi=a(80739),Ui=a(24908),Vi=a(81224),Hi=a(40007);const Yi=(0,o.makeStyles)((()=>({labelWrapper:e=>{let{width:t}=e;return{overflow:"hidden",width:`${t}px`,marginTop:"-3px"}},xAxisLabel:{textAlign:"center",whiteSpace:"nowrap",fontSize:"12px",paddingTop:"3px","&::first-letter":{textTransform:"capitalize"},"&:after":{top:"0",right:"0",width:"10px",height:"100%",content:'""',position:"absolute",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}}}))),Wi=e=>{let{width:t,height:a,label:l,x:n,y:i}=e;const o=Yi({width:t}),c=n-t/2;return r().createElement("foreignObject",{x:c,y:i,width:t,height:a},r().createElement("div",{className:o.labelWrapper},r().createElement(Hi.Z,{value:l},r().createElement("div",{className:o.xAxisLabel},l))))},Gi=e=>{const{x:t,y:a,width:l,height:n,payload:i,visibleTicksCount:o}=e,{value:c}=i,s=l/o-4;return r().createElement(Wi,{width:s,height:n,label:c,x:t,y:a})},Zi=e=>{let{showCategories:t=!1,interval:a,barCategoryGap:l,maxBarSize:r,yTickRenderer:n,tickCount:i}=e;return{barChart:{barCategoryGap:l||"10%"},bar:{dataKey:"value",fill:"#0072CE",minPointSize:3,maxBarSize:r||50},xAxis:{tick:t&&Gi,tickLine:!1,interval:a||0,dataKey:"label"},yAxis:{axisLine:!1,tickLine:!1,tick:n||{fill:"#000",fontSize:12},width:60,tickFormatter:Wl,tickCount:i||5},cartesianGrid:{stroke:"#000",strokeOpacity:"0.05",vertical:!1},labelForX:{position:"insideBottom",style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"},offset:t?0:3},labelForY:{angle:270,position:"left",offset:-3,style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"}}}};function qi(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){$i(e,t,a[t])}))}return e}function $i(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Qi=(0,o.makeStyles)((e=>({tooltipWrapper:qi({},e.tooltip,{padding:"4px 8px"})}))),Ki=e=>{var t;let{payload:a,active:l,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}`:"",d=Qi();return l&&r().createElement("div",{className:d.tooltipWrapper},r().createElement(Tt,{data:[{label:s,value:c},{label:ne().text("No of profiles"),value:ne().number(o)}]}))},Xi=(0,o.makeStyles)((()=>({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"}}))),Ji=e=>{let{data:t}=e;const a=Xi();return r().createElement("div",{className:a.chartInfoWrapper},t.map((e=>{let{label:t,value:l,localizedValue:n}=e;return r().createElement("div",{key:t,className:a.chartInfoItem},r().createElement("span",{className:a.chartInfoLabel},t,": "),l!==n?r().createElement(Zt.Z,{title:n},r().createElement("span",{className:a.chartInfoValue},l)):r().createElement("span",{className:a.chartInfoValue},l))})))};var eo=a(43624);function to(){return to=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},to.apply(this,arguments)}const ao=e=>{let{isClickable:t}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["isClickable"]);const l=Xi(),n=t?l.clickable:void 0;return r().createElement(eo.A,to({},a,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},lo=e=>{const{value:t}=e;return t>0?r().createElement(eo.A,e):null};function ro(){return ro=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ro.apply(this,arguments)}const no=e=>{let{data:t,config:a,xAxisLabel:n,yAxisLabel:i,barTooltipTitle:o,infoPanelData:c,infoTooltipTitle:s,onItemClick:d,options:p={},state:u,onRefresh:y}=e;const g=Xi(),{title:E}=a,{cartesianGrid:v,bar:x,xAxis:b,yAxis:O,labelForX:w,labelForY:S,barChart:T}=Zi(p),R=d&&(e=>(null==e?void 0:e.activePayload)&&d(e.activePayload[0].payload.group)),_=R?g.clickable:void 0,A=u===h.o.LOADED&&c.length>0,{showExportButton:N}=te(),D=(0,l.useMemo)((()=>N&&u===h.o.LOADED&&t.length>0),[u,t]),I=(0,l.useMemo)((()=>(0,f.x0)()),[]),{period:C,exportLoadingIds:M}=K();return r().createElement(Da,{config:a},r().createElement(_a,{title:E,infoTooltipTitle:s},$e(C)&&r().createElement(ka,{disabled:!0}),D&&r().createElement(oa,{config:a,exportLoadingId:I})),(0,m.has)(I,M)&&r().createElement("div",{style:{position:"relative"}},r().createElement(qt.Z,null)),A&&r().createElement(Ji,{data:c}),r().createElement(xa,{data:t,loadingState:u,onRefresh:y},(e=>{let{data:t,width:a=0,height:l=0}=e;return r().createElement("div",null,r().createElement(zi.v,ro({width:a,height:l,data:t,onClick:R},T),r().createElement(sl.q,v),r().createElement(fl.u,{content:r().createElement(Ki,{name:o}),cursor:r().createElement(ao,{isClickable:!!R})}),r().createElement(Ui.$,ro({},x,{shape:r().createElement(lo,{className:_})})),r().createElement(pl.B,O,r().createElement(Vi._,ro({},S,{value:i}))),r().createElement(dl.K,b,r().createElement(Vi._,ro({},w,{value:n})))))})))},io=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=jt(Nl),{chartData:i,infoPanelData:o}=a,c=Gt(Pl),s=r().createElement(Tt,{title:ne().text("Length statistics"),data:[{value:ne().text("Measures the string length of values")}],DataRenderer:Ot});return r().createElement(no,{config:t,data:i,xAxisLabel:ne().text("Length of values"),yAxisLabel:ne().text("No. of profiles"),infoPanelData:o,barTooltipTitle:ne().text("Length"),infoTooltipTitle:s,onItemClick:c,state:l,onRefresh:n})};var oo=a(21210);const co=(0,o.makeStyles)({icon:{width:"20px",height:"20px",borderRadius:"4px",fontSize:"14px",marginRight:"8px"},text:e=>{let{color:t}=e;return{backgroundColor:t}},label:e=>{let{color:t}=e;return{backgroundColor:t,flexShrink:0,fontSize:"14px",height:"12px",margin:" 0 8px 0 0",width:"12px"}}}),so="includeSourceIcon",po=e=>{let{chartData:t,variant:a}=e;const{group:l,label:n}=t,i=co({color:(0,u.kW2)(l)});return r().createElement(r().Fragment,null,a===so?r().createElement(oo.Z,{sourceType:l,className:i.icon,classes:{textRoot:i.text}}):r().createElement("div",{className:i.label}),n)};function uo(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){mo(e,t,a[t])}))}return e}function mo(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const fo=e=>{let{config:t}=e;const a=(0,w.useSelector)(T.ZP.selectors.getMetadata),{data:l,state:n,reload:i}=jt((e=>(0,m.pipe)(Rl("crosswalkAnalysis"),(0,m.applySpec)({chartData:(0,m.pipe)((0,m.prop)("chartData"),Le(e)),infoPanelData:(0,m.pipe)((0,m.prop)("infoPanelData"),(0,m.map)((e=>(0,m.assoc)("value",(0,u.k7L)(e.value,999),e))))})))(a)),{chartData:o}=l,c=Gt(Fl),s=r().createElement(Tt,{title:ne().text("Source system analysis"),data:[{value:ne().text("Distribution of source systems contributing to profiles")}],DataRenderer:Ot}),d=[{id:"label",label:ne().text("Source system"),secondLabel:`(${o.length})`,width:.4,sortable:!0,labelRenderer:po,variant:so},{id:"value",label:ne().text("Profiles"),width:.6,sortable:!0}];return r().createElement(Ci,{config:uo({},t),data:o,title:t.title,infoTooltipTitle:s,onItemClick:c,state:n,onRefresh:i,customComparator:On,columnsOptions:d})},ho=e=>{var t;let{config:a}=e;const l=null===(t=K().detailedAttributeType)||void 0===t?void 0:t.type,{data:n,state:i,reload:o}=jt((e=>(0,m.pipe)(Rl("valueDistribution"),Al(e)))(l)),{chartData:c,infoPanelData:s}=n,d=Gt(Ul(l));return r().createElement(no,{config:a,data:c,xAxisLabel:ne().text("Value"),yAxisLabel:ne().text("No. of profiles"),infoPanelData:s,barTooltipTitle:ne().text("Value"),onItemClick:d,state:i,onRefresh:o})},yo=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=jt(Dl),{chartData:i,infoPanelData:o}=a,c=Gt(kl);return r().createElement(no,{config:t,data:i,xAxisLabel:ne().text("Months of the year"),yAxisLabel:ne().text("No. of profiles"),infoPanelData:o,barTooltipTitle:ne().text("Months of the year"),options:{showCategories:!0,barCategoryGap:"20%",interval:"preserveStartEnd"},onItemClick:c,state:l,onRefresh:n})},go=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=jt(Il),{chartData:i,infoPanelData:o}=a,c=Gt(Ml);return r().createElement(no,{config:t,data:i,xAxisLabel:ne().text("Days of the week"),yAxisLabel:ne().text("No. of profiles"),infoPanelData:o,barTooltipTitle:ne().text("Days of the week"),options:{showCategories:!0,barCategoryGap:"25%",interval:"preserveStartEnd"},onItemClick:c,state:l,onRefresh:n})},Eo=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=jt(Cl),{chartData:i,infoPanelData:o}=a,c=Gt(Ll);return r().createElement(no,{config:t,data:i,xAxisLabel:ne().text("Days of the month"),yAxisLabel:ne().text("No. of profiles"),infoPanelData:o,barTooltipTitle:ne().text("Days of the month"),options:{showCategories:!0,interval:1},onItemClick:c,state:l,onRefresh:n})},vo=e=>{let{config:t}=e;const a=ar(),{data:l,state:n,reload:i}=jt(Dn),o=Gt(Bn),c=r().createElement(Tt,{title:ne().text("Pattern analysis"),data:[]}),s=[{id:"label",label:ne().text("Value"),secondLabel:jn(l),width:.4,cellClassName:a.monoFontCell},{id:"value",label:ne().text("Count"),width:.6}];return r().createElement(Ci,{config:t,data:l,title:t.title,infoTooltipTitle:c,onItemClick:o,state:n,onRefresh:i,columnsOptions:s})};function xo(){return xo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},xo.apply(this,arguments)}const bo=e=>{let{xAxisLabel:t,yAxisLabel:a,data:l,getTooltip:n,getBarOpacity:i,onBarSelect:o,width:c,height:s,showTopLabel:d=!1,options:p={},onItemClick:f,getBarColor:h,dataReltioId:y}=e;const g=Xi(),{cartesianGrid:E,xAxis:v,yAxis:x,labelForX:b,labelForY:O,barChart:w,bar:S}=Zi(p),T=(0,m.curry)(((e,t)=>f&&f(e))),R=f?g.clickable:void 0;return r().createElement("div",{"data-reltio-id":y},r().createElement(zi.v,xo({width:c,height:s,data:l},w,{margin:{top:15}}),r().createElement(sl.q,E),r().createElement(fl.u,{content:n,cursor:null}),(e=>{const t=(0,m.pipe)(m.mergeAll,(0,m.omit)(["label","group"]),m.keys)(e),a=(0,m.curry)(((e,a)=>{let{x:l,y:n,width:i,value:o}=a;return d&&e===t.length-1?r().createElement("text",{x:l+i/2,textAnchor:"middle",y:n-5,fontSize:"12px"},(0,u.k7L)(o,999)):null}));return t.map(((e,t)=>r().createElement(Ui.$,{stackId:"all",dataKey:e,opacity:i?i(e):1,fill:h(e),onMouseOver:o(e),onMouseLeave:o(null),key:e,label:a(t),maxBarSize:S.maxBarSize,onClick:T(e),className:R})))})(l),r().createElement(pl.B,x,r().createElement(Vi._,xo({},O,{value:a}))),r().createElement(dl.K,v,r().createElement(Vi._,xo({},b,{value:t})))))};function Oo(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){wo(e,t,a[t])}))}return e}function wo(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const So=(0,o.makeStyles)((e=>({consolidationRateWrapper:{display:"flex"},ratePercent:{fontWeight:700,lineHeight:"20px",overflow:"hidden",textOverflow:"ellipsis"},tableWithSelectedRow:{"& .Table__grid__cell_wrapper_EWDDh":{opacity:.12},"& .Table__grid__cell_wrapper_EWDDh.hoveredRow":{opacity:1}},tooltipWrapper:Oo({},e.tooltip,{padding:"4px 8px"})}))),To=e=>{let{data:t}=e;const a=So(),{totalCrosswalks:l,totalEntities:n}=t.consolidationRate,i=t.consolidationRate.totalCrosswalksBySource.ReltioCleanser||0,o=(100*(1-n/(l-i))).toFixed(1),c="0"==o.split(".")[1]?o.split(".")[0]:ne().number(Number(o));return r().createElement(r().Fragment,null,r().createElement("span",{className:a.ratePercent},c,"% "),r().createElement("span",null,`(${(0,u.k7L)(l-i,999)} ${ne().text("to")} ${(0,u.k7L)(n,999)} ${ne().text("profiles")})`))},Ro=e=>{const{x:t,y:a,payload:{value:l},index:n}=e;return n%2==0?r().createElement("text",{fill:"#000",x:t,y:a,textAnchor:"middle",fontSize:"12px"},Wl(Number(l))):null},_o=e=>"Reltio profiles"===e?"#0072CE":(0,u.kW2)(e),Ao=r().createElement(Tt,{title:ne().text("Consolidation rate"),data:[{value:ne().text("Consolidation rate is the measurement of the total number source profiles versus the number of Reltio profiles after removing duplicates.")},{value:ne().text("Consolidation rate helps to understand the data reduction achieved by matching.")}]}),No=e=>{let{config:t}=e;const a=(0,w.useSelector)(T.ZP.selectors.getMetadata),n=So(),{title:i}=t,[o,c]=(0,l.useState)(),{data:s,state:d,reload:p}=jt(Ol),{data:y}=jt((e=>(0,m.pipe)((0,m.pathOr)({},["consolidationRate"]),(e=>Object.keys((null==e?void 0:e.totalCrosswalksBySource)||[]).reduce(((t,a)=>"ReltioCleanser"!==a?t.concat({label:a,group:a,value:e.totalCrosswalksBySource[a]}):t),[])),Le(e),(0,m.sort)((0,m.descend)((0,m.prop)("value")))))(a)),{chartsData:{data:g}}=pe(),E=Gt(Hl),v=(0,l.useMemo)((()=>{const e=(0,m.pick)(["group","label"],s[0]);for(let t=y.length-1;t>=0;t--)e[y[t].group]=s[0][y[t].group];return[e,s[1]]}),[y,s]),x=(0,l.useCallback)((e=>{let{active:t}=e;if(!o||!t)return"";let l=[];return l="Reltio profiles"===(null==o?void 0:o.key)?[{label:ne().text("Reltio profiles"),value:ne().number(g.consolidationRate.totalEntities)}]:[{label:ne().text("Source system"),value:(0,u.tH7)(a,o.key)},{label:ne().text("Source profiles"),value:ne().number(g.consolidationRate.totalCrosswalksBySource[o.key])}],r().createElement("div",{className:n.tooltipWrapper},r().createElement(Tt,{data:l}))}),[o,g,a]),b=(0,l.useCallback)((e=>()=>{if(e){const t=y.findIndex((0,m.propEq)("group",e));c({rowIndex:t,key:e})}else c(null)}),[c,y]),O=(0,l.useCallback)((e=>{if((0,m.isNil)(e))c(null);else{var t;const a=null===(t=y[e])||void 0===t?void 0:t.group;c({rowIndex:e,key:a})}}),[c,y]),S=e=>{if(!(0,m.isNil)(e)){var t;const a=null===(t=y[e])||void 0===t?void 0:t.group;E(a)}},R=[{id:"label",label:ne().text("Source system"),secondLabel:`(${ne().number(y.length)})`,resizable:!1,labelRenderer:po,width:.3},{id:"value",resizable:!1,label:ne().text("Source profiles"),width:.7}],{showExportButton:_}=te(),A=(0,l.useMemo)((()=>_&&d===h.o.LOADED&&y.length>0),[d,y]),N=(0,l.useMemo)((()=>(0,f.x0)()),[]);return r().createElement(Da,{config:t},r().createElement(_a,{title:i,infoTooltipTitle:Ao},A&&r().createElement(oa,{config:t,exportLoadingId:N})),r().createElement(xa,{data:y,loadingState:d,onRefresh:p},(e=>{let{height:t=0,width:a=0}=e;const l=g.consolidationRate?t-34:t;return r().createElement(r().Fragment,null,g.consolidationRate&&r().createElement(rl,{label:`${ne().text("Consolidation rate")}:`,info:r().createElement(To,{data:g})}),r().createElement("div",{className:xt()(n.consolidationRateWrapper,{[n.tableWithSelectedRow]:!(0,m.isNil)(null==o?void 0:o.rowIndex)&&-1!==(null==o?void 0:o.rowIndex)})},r().createElement(bo,{yAxisLabel:ne().text("No. of profiles"),data:v,getTooltip:x,getBarOpacity:Yl(o),getBarColor:_o,onBarSelect:b,width:256,height:l,options:{showCategories:!0,maxBarSize:40,yTickRenderer:Ro,tickCount:8},onItemClick:E,dataReltioId:"reltio-dq-dashboard-consolidation-rate-barchart",showTopLabel:!0}),r().createElement(Di,{data:y,width:a-256,height:l,columnsOptions:R,sorting:{field:"value",order:"desc"},onRowClick:S,onRowHover:O,hoverRowIndex:null==o?void 0:o.rowIndex,hoverStateEnabled:!0,dataReltioId:"reltio-dq-dashboard-consolidation-rate-tablechart"})))})))};let Do=function(e){return e.RESOLVED="resolved",e.UNRESOLVED="unresolved",e}({});const Io={[Do.RESOLVED]:"#7F22FD",[Do.UNRESOLVED]:"#F085F2"},Co=(0,m.map)((e=>{let{group:t}=e;return Io[t]||(0,u.f4_)(t)})),Mo=e=>{let[t,a]=e;return Re([{value:t.total,label:ne().text("Mapped values"),group:Do.RESOLVED,dataReltioId:"reltio-dq-dashboard-transcode-mapped"},{value:a.total,label:ne().text("Unmapped values"),group:Do.UNRESOLVED,dataReltioId:"reltio-dq-dashboard-transcode-unmapped"}])},ko=e=>[{filter:u.j5E.EQUALS,fieldName:"rdmLookups.resolved",values:[e!==Do.RESOLVED]}],Lo=De((()=>ko)),Po=(0,o.makeStyles)({legendWrapper:{marginTop:"-13px"},bar:{height:"16px"}}),Fo=e=>{let{config:t}=e;const a=Gt(Lo),{data:n,state:i,reload:o}=(()=>{const{entityType:e}=K(),[t,a]=(0,l.useState)(h.o.INIT),[r,n]=(0,l.useState)([]),i=(0,S._)(),o=(0,l.useCallback)((t=>(0,u.j_Q)([{filter:u.j5E.EQUALS,fieldName:"type",values:[e.uri]},{filter:u.j5E.EQUALS,fieldName:"rdmLookups.resolved",values:[t]}])),[e]),c=e=>{console.warn(e),a(h.o.ERROR),n([])},s=e=>{n(e),a(h.o.LOADED)},d=(0,l.useCallback)((()=>(a(h.o.LOADING),n([]),i(Promise.all([o(!0),o(!1)])).then(Mo).then(s).catch(c))),[o]);return(0,l.useEffect)((()=>{d()}),[d]),{data:r,state:t,reload:d}})(),c=Co(n),s=Po(),d=r().createElement(Tt,{title:ne().text("RDM value mapping status"),data:[{value:ne().text("The relative number and percentage of reference data values that have been mapped to canonical values and transcoded for use by Reltio Reference Data Management.")},{label:`${ne().text("Mapped values")}:`,value:ne().text("Values that have been mapped and transcoded")},{label:`${ne().text("Unmapped values")}:`,value:ne().text("Values that have not been mapped and transcoded")}],DataRenderer:Ot});return r().createElement(Ya,{data:n,colors:c,onItemClick:a,classes:{bar:s.bar,legendWrapper:s.legendWrapper},config:t,onRefresh:o,state:i,infoTooltipTitle:d})};function Bo(){return Bo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Bo.apply(this,arguments)}class jo{}jo.getComponent=e=>{let{type:t,config:a,isFullscreen:l,onToggleFullscreen:n}=e;const i={config:a,isFullscreen:l,onToggleFullscreen:n};switch(t){case ve.FILL_RATE:return r().createElement(cr,i);case ve.UNIQUENESS:return r().createElement(Or,i);case ve.SUMMARY:return r().createElement(un,i);case ve.DATA_VALIDATION:return r().createElement(Bi,i);case ve.FREQUENCY:return r().createElement(ji,i);case ve.LENGTH_STATISTIC:return r().createElement(io,i);case ve.CROSSWALK_ANALYSIS:return r().createElement(fo,i);case ve.VALUE_DISTRIBUTION:return r().createElement(ho,i);case ve.MONTH_DISTRIBUTION:return r().createElement(yo,i);case ve.DAY_OF_WEEK_DISTRIBUTION:return r().createElement(go,i);case ve.DAY_OF_MONTH_DISTRIBUTION:return r().createElement(Eo,i);case ve.PATTERN:return r().createElement(vo,i);case ve.CONSOLIDATION_RATE:return r().createElement(No,i);case ve.RDM_TRANSCODE:return r().createElement(Fo,i);default:return r().createElement(En,Bo({},i,{errorData:{message:ne().text("Chart isn't supported for this data type")}}))}};const zo=jo,Uo=e=>{let{layoutItemConfig:t,views:a,onToggleFullscreen:l,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:d}=s;return r().createElement("div",{style:c,className:i},zo.getComponent({type:d,config:s,onToggleFullscreen:l,isFullscreen:n}),o)},Vo=(0,m.map)((0,m.assoc)("isStatic",!0)),Ho={cols:6,rowHeight:10,margin:[12,12]},Yo=(0,l.memo)((e=>{let{views:t,layout:a,layoutOptions:n=Ho}=e;const i=(0,l.useMemo)((()=>Vo(a)),[a]);return r().createElement(Et.Z,{LayoutItem:Uo,views:t,layout:i,layoutOptions:n})}));var Wo=a(85321);const Go=(0,o.makeStyles)({warning:{fontSize:"13px",color:"rgba(0, 0, 0, 0.54)",height:"47px",border:"1px solid rgba(0, 0, 0, 0.12)",margin:"14px 11px 0 12px",display:"flex",alignItems:"center",paddingLeft:"18px",overflow:"hidden",textOverflow:"ellipsis"},errorIcon:{color:"rgba(0, 0, 0, 0.54)",marginRight:"14px"}}),Zo=e=>{let{text:t}=e;const a=Go();return t&&r().createElement("div",{className:a.warning,"data-reltio-id":"dq-warning"},r().createElement(Wo.Z,{className:a.errorIcon}),t)};function qo(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){$o(e,t,a[t])}))}return e}function $o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Qo={position:"absolute",content:'""',top:0,left:0,right:0,zIndex:1},Ko=(0,o.makeStyles)((()=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowX:"hidden",overflowY:"auto",fontFamily:"Roboto, Helvetica, Arial, sans-serif",display:"flex",flexDirection:"column",background:"#EEEEEE"},content:{height:"calc(100% - 56px)",position:"relative"},attributeLevelWrapper:{verticalAlign:"top",width:"auto",height:"100%",flexGrow:1,position:"relative",marginTop:"-12px","&:before":qo({},Qo,{top:"8px",height:"4px",background:"linear-gradient(180deg, #EEEEEE 0%, rgba(238, 238, 238, 0) 100%)",zIndex:1}),"&:after":qo({},Qo,{height:"8px",background:"#EEEEEE"})},navigationWrapper:{display:"flex",padding:"18px 14px 18px 18px",alignItems:"center",gap:"16px"},headerRightSide:{flexGrow:1,display:"flex",flexDirection:"row-reverse",alignItems:"center"},periodSelector:{position:"relative",margin:"0 8px 0 16px",height:"30px",borderRadius:"6px",border:"1px solid rgba(0, 0, 0, 0.12)",flexBasis:"196px",overflow:"hidden"},paper:{boxShadow:"0px 12px 17px 2px rgba(0, 0, 102, 0.06), 0px 5px 32px 4px rgba(0, 0, 102, 0.06), 0px 7px 8px -4px rgba(0, 0, 204, 0.1)","& ul>div":{minWidth:"300px"}},input:{fontSize:"13px",height:"100%",padding:"1px 0 0 16px"},inputRoot:{backgroundColor:"transparent",paddingRight:4,height:"100%"},dropdownIndicator:{width:"18px",height:"18px","& svg":{width:"18px",height:"18px"}},layoutRoot:{overflow:"auto",backgroundColor:"#EEEEEE",height:"100%",flexGrow:1,padding:"0 4px",boxSizing:"border-box"}}))),Xo=e=>{var t;let{config:a,entityType:n}=e;const i=Ko(),{detailedAttributeType:o,searchByOv:c}=K(),{hasRestrictions:s,isTimeSeriesAvailable:d}=te(),p=null===(t=a.layoutsByDataLevel)||void 0===t?void 0:t[u.yn8.ATTRIBUTE_TYPE],f=(0,l.useMemo)((()=>((e,t,a)=>{const l=Ie(t),r=a&&(null==e?void 0:e.timeRange)||(null==e?void 0:e.today),n=a&&Oe[u.yn8.ATTRIBUTE_TYPE].timeRange||Oe[u.yn8.ATTRIBUTE_TYPE].today,i=(0,m.mergeLeft)(r,n);return i[l]||i.default||[]})(p,null==o?void 0:o.type,d&&!c)),[null==o?void 0:o.type,p,c]),h=(0,l.useMemo)((()=>((e,t,a)=>{const l=(0,m.uniqBy)((0,m.prop)("id"),(0,m.concat)((null==e?void 0:e[u.yn8.ATTRIBUTE_TYPE])||[],be[u.yn8.ATTRIBUTE_TYPE]||[])),r=(e=>{switch(e){case ye.INTEGER:case ye.FLOAT:return[ve.SUMMARY,ve.CROSSWALK_ANALYSIS,ve.DATA_VALIDATION,ve.FILL_RATE,ve.FREQUENCY,ve.UNIQUENESS,ve.VALUE_DISTRIBUTION];case ye.BOOLEAN:return[ve.SUMMARY,ve.CROSSWALK_ANALYSIS,ve.DATA_VALIDATION,ve.FILL_RATE,ve.FREQUENCY];case ye.STRING:return[ve.LENGTH_STATISTIC,ve.SUMMARY,ve.CROSSWALK_ANALYSIS,ve.DATA_VALIDATION,ve.FILL_RATE,ve.FREQUENCY,ve.UNIQUENESS];case ye.DATE:return[ve.SUMMARY,ve.CROSSWALK_ANALYSIS,ve.DATA_VALIDATION,ve.FILL_RATE,ve.FREQUENCY,ve.UNIQUENESS,ve.VALUE_DISTRIBUTION];case ye.SSN:return[ve.SUMMARY,ve.CROSSWALK_ANALYSIS,ve.DATA_VALIDATION,ve.FILL_RATE,ve.FREQUENCY,ve.UNIQUENESS,ve.PATTERN];case ye.UNKNOWN:return[ve.SUMMARY,ve.CROSSWALK_ANALYSIS,ve.DATA_VALIDATION,ve.FILL_RATE,ve.FREQUENCY,ve.UNIQUENESS,ve.LENGTH_STATISTIC];default:return[]}})(Ie(t));return Ce({views:l,supportedViews:r,layout:a})})(a.viewsByDataLevel,null==o?void 0:o.type,f)),[a.viewsByDataLevel,null==o?void 0:o.type,f]),y=(0,l.useMemo)((()=>(0,m.pipe)(Me,(e=>ht(o)?(0,m.reject)((0,m.equals)(u.N0y.DATA_VALIDATION))(e):e))(h)),[h,o]),g=gt({entityType:n,detailedAttributeType:o,dataLevel:u.yn8.ATTRIBUTE_TYPE,metrics:y}),{changeChartsData:E}=pe();return(0,l.useEffect)((()=>E(g)),[g]),x({state:g.state,reload:g.reload,dataLevel:u.yn8.ATTRIBUTE_TYPE}),r().createElement(tt.Provider,{value:u.yn8.ATTRIBUTE_TYPE},r().createElement("div",{className:i.layoutRoot},s&&r().createElement(Zo,{text:ne().text("Not seeing the data you expected for this attribute? Contact your tenant admin to verify permissions.")}),r().createElement(Yo,{views:h,layout:f})))};var Jo=a(62553),ec=a(78781);const tc=(0,o.makeStyles)((e=>({breadcrumb:{fontSize:"16px",color:e.palette.text.primary},active:{color:"rgba(0, 0, 102, 1)"},clickable:{cursor:"pointer"}}))),ac=e=>{let{dataLevel:t,onChange:a}=e;const l=tc(),{detailedAttributeType:n}=K(),{setDetailedAttributeType:i}=X();return r().createElement(Jo.Z,{separator:r().createElement(ec.Z,{fontSize:"small"}),"aria-label":"breadcrumb"},[r().createElement(ma.Z,{key:u.yn8.ENTITY_TYPE,className:xt()(l.breadcrumb,{[l.active]:t===u.yn8.ENTITY_TYPE,[l.clickable]:t===u.yn8.ATTRIBUTE_TYPE}),onClick:(e=>()=>{e===u.yn8.ENTITY_TYPE&&i(null),a(e)})(u.yn8.ENTITY_TYPE),"data-reltio-id":"reltio-dq-dashboard-breadcrumb-entity-level"},ne().text("Entity overview"))].concat(t===u.yn8.ATTRIBUTE_TYPE?r().createElement(ma.Z,{key:u.yn8.ATTRIBUTE_TYPE,className:xt()(l.breadcrumb,l.active),"data-reltio-id":"reltio-dq-dashboard-breadcrumb-attribute-level"},null==n?void 0:n.label):[]))},lc=e=>(0,m.pipe)((0,m.find)((0,m.propEq)("index",e)),(0,m.propOr)(0,"width")),rc=(0,m.pluck)("index"),nc=(0,o.makeStyles)((()=>({root:e=>{let{transitionTime:t}=e;return{transition:`left ${t}s ease 0s`,height:"100%",width:"100%",position:"absolute"}},pagesWrapper:e=>{let{pagesCount:t}=e;return{display:"flex",height:"100%",width:100*t+"%"}},page:{display:"flex"}}))),ic=e=>{let{page:t,children:a,pages:n,startSliding:i,endSliding:o}=e;const c=nc({transitionTime:.3,pagesCount:n.length}),[s,d]=(0,l.useState)(0);(0,l.useEffect)((()=>{i&&i(),setTimeout((()=>{d(t),o&&o()}),300)}),[t]);const p=rc(n[t]);return r().createElement(ca.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0},(e=>{let{width:l=250}=e;const i=(e=>{let{pages:t,width:a}=e;return t.reduce(((e,t)=>{const l=t.reduce(((e,t)=>e+((null==t?void 0:t.width)||0)),0);return e.push(t.map((e=>{let{width:t,index:r}=e;return t?{index:r,width:t}:{index:r,width:a-l}}))),e}),[])})({pages:n,width:l}),o=(e=>{let{page:t,pagesSettings:a}=e;const l=rc(a[t]),r=0===t?[]:rc(a[t-1]),n=(0,m.without)(l,r);return 0===t?0:-(0,m.pipe)((0,m.map)((e=>lc(e)(a[t-1]))),m.sum)(n)})({page:t,pagesSettings:i});return r().createElement("div",{className:c.root,style:{left:o}},r().createElement("div",{className:c.pagesWrapper},a.map(((e,a)=>{const l=t!==s||p.includes(a),n=(e=>{let{pagesSettings:t,page:a,pagePartIndex:l}=e;const r=rc(t[a]),n=Math.min(...r),i=Math.max(...r);return l<n||l>i?(0,m.pipe)((0,m.find)(((e,t)=>t!==a)),lc(l))(t):lc(l)(t[a])})({pagesSettings:i,page:t,pagePartIndex:a});return r().createElement("section",{className:c.page,style:{width:n},key:a},l&&e)}))))}))};var oc=a(28319);const cc=(0,o.makeStyles)((e=>({root:{width:"100%",height:"100%",verticalAlign:"top",position:"relative",boxSizing:"border-box"},entityLevelBar:{position:"absolute",top:0,bottom:0,right:"16px",width:"28px",background:"linear-gradient(0deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)), #FFFFFF",boxShadow:"0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.12), 0px 1px 3px rgba(0, 0, 0, 0.2)",color:e.palette.text.secondary,fontWeight:500,fontSize:"14px",writingMode:"vertical-rl",textTransform:"uppercase",cursor:"pointer",padding:"52px 0",marginBottom:"8px",lineHeight:"28px"},expandButton:{position:"absolute",top:"15px",left:"6px",writingMode:"initial",textTransform:"none",maxWidth:"24px",height:"24px",borderRadius:"12px",background:"#fff",boxShadow:"0px 2px 2px rgba(0, 0, 0, 0.14), 0px 3px 1px rgba(0, 0, 0, 0.12), 0px 1px 5px rgba(0, 0, 0, 0.2)",transition:"max-width 0.3s linear",zIndex:2,overflow:"hidden",display:"flex",lineHeight:"28px","&:hover":{maxWidth:"500px"}},expandButtonText:{paddingRight:"8px",fontSize:"12px",lineHeight:"24px",whiteSpace:"nowrap"}}))),sc=e=>{let{showEntityLevel:t,entityType:a}=e;const l=cc(),n=`${ne().text("Entity")}: ${(0,u.idV)(a.label)} ${ne().text("overview")}`;return r().createElement("div",{className:l.root,onClick:t},r().createElement("div",{className:l.entityLevelBar,"data-reltio-id":"reltio-dq-dashboard-entity-level-bar-button"},r().createElement("div",{className:l.expandButton},r().createElement(oc.Z,null),r().createElement("span",{className:l.expandButtonText},n)),ne().text("Entity")))};var dc=a(50166);function pc(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const uc=(0,m.propOr)({},"attributeItem"),mc=(0,m.pipe)((0,m.find)((0,m.pipe)(uc,(0,m.either)(u.YkM,u.Or$),m.not)),uc),fc=e=>(0,m.pipe)(uc,(0,m.propEq)("fieldName",e)),hc=e=>(0,m.filter)((0,m.propEq)("group",e));let yc=function(e){return e.SHOW_EMPTY="showEmpty",e}({});const gc=[{label:ne().text("Show attributes with no data"),value:yc.SHOW_EMPTY,group:"emptiness"}],Ec=(0,m.curry)(((e,t,a)=>{const l=(0,m.head)(hc("emptiness")(e));return(null==l?void 0:l.value)===yc.SHOW_EMPTY?a:a.filter((0,m.pipe)(uc,ct(t)))})),vc=e=>{const t=Object.values(nt);return e.filter((0,m.pipe)((0,m.prop)("value"),(0,m.includes)(m.__,t)))},xc=(0,m.pipe)(uc,(0,m.prop)("fieldName")),bc=(0,m.curry)(((e,t)=>{const a=(0,m.pipe)(hc("details"),vc)(e),l=(e=>(0,m.pipe)((0,m.filter)((0,m.pipe)(uc,(0,m.both)((0,m.prop)("children"),it(e)))),(0,m.map)(xc)))(a)(t);return t.filter((e=>{let{attributeItem:t}=e;return l.some((e=>t.fieldName.startsWith(e)))||ot(a,t)}))})),Oc=(0,m.pipe)((0,m.map)(uc),(0,m.pluck)("fieldName"),m.identity);var wc=a(35488),Sc=a(65643),Tc=a(89507),Rc=a(33286),_c=a(40435);const Ac=(0,o.makeStyles)({root:{paddingRight:"12px",paddingLeft:"20px",display:"flex",flexDirection:"row-reverse"},detailIcon:{marginLeft:"-5px",borderRadius:"50%",padding:"2px",width:"26px",height:"26px",boxSizing:"border-box"},activeIcon:{background:"white"}}),Nc=e=>{let{details:t,classes:a,fillRateData:l,fillRateState:n}=e;const i=Ac(),o=(0,m.prop)("iconRoot",a),c=(0,m.prop)("iconsWrapper",a);return r().createElement("div",{className:xt()(i.root,c)},Object.entries(t||{}).reverse().map((e=>{let[t,a]=e,c=Pr.NORMAL;if(t===nt.REQUIRED){const e=n===h.o.LOADING,t=0===(null==(s=l)||null===(d=s.find((0,m.propEq)("group",u.s9T.MISSING)))||void 0===d?void 0:d.value);e&&(c=Pr.LOADING),e||t||(c=Pr.BAD_QUALITY)}var s,d;return r().createElement("div",{key:t,className:xt()(a&&(o||i.activeIcon),i.detailIcon)},a&&r().createElement(Zt.Z,{title:mt(t)},r().createElement("span",null,r().createElement(Fr,{detailType:t,variant:c,size:Lr.SMALL}))))})))},Dc=(0,o.makeStyles)({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"},popper:{paddingTop:"6px"}});function Ic(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Cc(e,t,a[t])}))}return e}function Cc(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Mc=(0,he.Z)((e=>{let{data:t}=e;const a=Dc(),l=It(t);return Ae(t)?r().createElement("div",{className:a.bar},r().createElement("div",{className:xt()(a.barPart,a.inactiveBarPart)})):r().createElement(Zt.Z,{followCursor:!0,classes:{popper:a.popper},title:r().createElement(At,{title:ne().text("Fill rate"),data:t,getColor:Dt})},r().createElement("div",{className:a.bar},t.map(((e,t)=>r().createElement("div",{key:e.group,className:a.barPart,style:Ic({},ke(e),{background:l[t]})})))))})),kc="rgba(0, 114, 206, 0.12)",Lc=(0,o.makeStyles)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:kc,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:kc}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"},lastLevelSelected:{"&:after":{top:"13px"}}}),Pc=e=>{let{level:t,margin:a,hasChildren:l,isLastLevelItem:n,isCollapsed:i,isSelected:o=!1}=e;const c=Lc(),s=!i&&(t>0||l);return r().createElement("div",{className:c.linesWrapper},((e,t)=>t>0&&e?(0,m.range)(1,t+1):t>1?(0,m.range)(1,t):[])(l,t).map((e=>r().createElement(Rc.Z,{key:e,margin:a,level:e,className:c.line}))),s&&r().createElement(Rc.Z,{margin:a,level:t,className:xt()(c.line,!l&&t>0&&c.horizontalLine,l&&c.parentLine,n&&c.lastLevel,o&&n&&c.lastLevelSelected)}))},Fc=(0,o.makeStyles)((e=>({listItem:{padding:"0 0 0 15px","&:after":{content:'""',left:0,right:0,position:"absolute",bottom:0,height:"1px",background:"rgba(0, 0, 0, 0.05)"}},selectedItem:{background:"white!important",border:"1px solid #000066",boxShadow:"0px 12px 17px -2px rgba(0, 0, 102, 0.06), 0px 5px 32px -4px rgba(0, 0, 102, 0.06), 0px 7px 8px -4px rgba(0, 0, 204, 0.1)",borderRadius:"6px",zIndex:1,paddingLeft:"14px","&:after":{display:"none"}},clickableItem:{cursor:"pointer","&:hover::after":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",backgroundColor:"rgba(0,0,0,0.07)",pointerEvents:"none",zIndex:1}},content:{display:"flex",alignItems:"center",width:"100%",height:"100%",position:"relative"},attribute:{paddingLeft:"9px",boxSizing:"border-box",width:"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",height:"100%",position:"relative",fontSize:"13px"},marginWrapper:{display:"inline-block",height:"100%",position:"relative",width:"100%"},attributeType:{position:"absolute",left:0,top:"8px"},fillRate:{position:"absolute",bottom:"8px",left:0,right:0,zIndex:1},attributeLabel:{padding:"8px 0 0 15px",position:"relative","&:after":{content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}},parentAttributeLabel:{padding:"14px 0 0 13px"},detailsIcon:{background:"white"},collapseIcon:{marginRight:"6px"},iconLoader:{width:"22px",height:"22px",border:"2px solid white",background:"rgba(196, 196, 196, 0.4)",borderRadius:"50%"},iconsLoaderWrapper:{paddingRight:"23px",paddingLeft:"28px",display:"flex"},iconLoaderWrapper:{width:"24px",height:"24px",backgroundColor:"white",borderRadius:"50%",marginRight:"-3px"},fillRateLineLoader:{height:"8px",width:"100%",background:"rgba(196, 196, 196, 0.4)",left:0,right:0,bottom:"8px",zIndex:1,position:"absolute"},iconsWrapper:{paddingRight:"11px"},noData:{"&::before":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",backgroundColor:"rgba(0,0,0,0.07)",pointerEvents:"none",zIndex:1}},noDataLabel:{fontSize:"12px",color:e.palette.text.secondary,lineHeight:"16px",marginTop:"4px"}}))),Bc=e=>{let{detailedAttributeType:t,fillRateData:a,fillRateState:l,style:n,level:i,selected:o=!1,onClick:c,onCollapse:s=k.ZT,isCollapsed:d=!1,isLastLevelItem:p=!1,isLoading:u}=e;const f=Fc(),h=!!t.children,y=!!a,g=!y&&!u,E=rt(t),v=d?Tc.Z:Sc.Z;return r().createElement(wc.ZP,{style:n,selected:o,classes:{selected:f.selectedItem},onClick:h?void 0:()=>{c(t)},component:"div",className:xt()(f.listItem,{[f.clickableItem]:!h,[f.noData]:g})},r().createElement("div",{className:f.content},!h&&r().createElement("div",{className:f.attributeType},r().createElement(cn,{type:t.type})),r().createElement("div",{className:f.attribute},r().createElement(Pc,{level:i,margin:20,hasChildren:h,isLastLevelItem:p,isCollapsed:d,isSelected:o}),r().createElement(Rc.Z,{margin:20,level:i,className:f.marginWrapper},r().createElement(Hi.Z,{value:E},r().createElement("div",{className:xt()(f.attributeLabel,h&&f.parentAttributeLabel)},h&&r().createElement(_c.Z,{size:"XXS",icon:v,onClick:s,className:f.collapseIcon}),E,g&&!h&&r().createElement("div",{className:f.noDataLabel},ne().text("No data"))))),!u&&y&&!h&&r().createElement("div",{className:f.fillRate},r().createElement(Mc,{data:a})),u&&!h&&r().createElement("div",{className:f.fillRateLineLoader})),u?r().createElement("div",{className:f.iconsLoaderWrapper},(0,m.times)((e=>r().createElement("div",{className:f.iconLoaderWrapper,key:`unloadedIcon-${e}`},r().createElement("div",{className:f.iconLoader}))),5)):r().createElement(Nc,{details:t.details,classes:{iconRoot:f.detailsIcon,iconsWrapper:o&&f.iconsWrapper},fillRateData:a,fillRateState:l})))};var jc=a(80653),zc=a(47019),Uc=a(15115),Vc=a(80852),Hc=a(95341);const Yc=(0,o.makeStyles)((e=>({searchWrapper:{padding:"8px 0px 8px 16px",alignItems:"center",display:"flex",flexGrow:1,justifyContent:"flex-end",marginLeft:"-105px"},filterByDetails:{width:"32px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"9px"},searchInput:{borderRadius:"4px",width:"202px",minHeight:"32px!important",justifyContent:"flex-end",alignItems:"center",padding:"0 2px",boxSizing:"border-box","& input":{fontSize:"13px"},"& button":{padding:"2px"}},filledInput:{"& button:last-child":{backgroundColor:"rgba(0, 0, 0, 0.0509804)"}},menu:{width:"300px",paddingTop:"8px"},filterIcon:{color:e.palette.text.secondary},filterIconFilterApplied:{color:"#0072CE"},filterIconWrapper:{width:"32px",height:"32px",borderRadius:"4px",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",position:"relative","&:after":{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"4px",background:"rgba(0, 0, 0, 0.04)"},"&:hover":{"&:after":{content:'""'}}},filterIconWrapperActive:{background:"rgba(0, 0, 0, 0.04)","&:after":{content:'""',background:"rgba(0, 0, 0, 0.04)"}},filterIconWrapperSelected:{background:"rgba(0, 114, 206, 0.12)"},dropdownMenuTitle:{lineHeight:"48px",height:"48px",paddingLeft:"16px"},option:{paddingLeft:"5px",fontSize:"13px",height:"28px",lineHeight:"16px",letterSpacing:"normal",paddingRight:"19px",filter:e=>e?"grayscale(0)":"grayscale(1)",opacity:e=>e?1:.5},typeIconWrapper:{width:"28px",marginLeft:"1px","& svg":{width:"20px",height:"20px"}},valueContainer:{marginLeft:0},counter:{marginLeft:"5px"},optionLabel:{flexGrow:1},groupLabel:{textTransform:"uppercase",margin:"15px 16px 5px",letterSpacing:"0.1px",display:"block"},actionsContainer:{display:"flex",padding:"12px 5px 8px 12px"},clearAllButton:{marginRight:"auto"}}))),Wc=e=>{let{isSelected:t,data:a,onChange:l}=e;const{count:n,label:i,value:o}=a,c=!(0,m.isNil)(n),s=Yc(!c||n>0);return r().createElement(Hc.Z,{className:s.option,component:"div",onClick:()=>l(a),"data-reltio-id":`reltio-dq-dashboard-option-${a.value}`},r().createElement(Vc.Z,{color:"primary",checked:t}),r().createElement("span",{className:s.typeIconWrapper},r().createElement(Fr,{detailType:o})),r().createElement(Hi.Z,{value:i},r().createElement("div",{className:s.optionLabel},i)),c&&r().createElement("span",{className:s.counter},(0,u.k7L)(n,999)))},Gc=(0,m.curry)(((e,t)=>!!t.find((0,m.propEq)("value",e.value)))),Zc=(0,m.curry)(((e,t)=>{const a=t.findIndex((0,m.propEq)("value",e.value));return-1!==a?(0,m.remove)(a,1,t):t})),qc=e=>{let{defaultFilterOptions:t=[],filterOptions:a,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=Yc(),[s,d]=(0,l.useState)(null),[p,u]=(0,l.useState)([]),[f,h]=(0,l.useState)(n||null);(0,l.useEffect)((()=>{u(((e,t)=>{const a=(0,m.pipe)((0,m.pluck)("options"),m.flatten)(t);return e.filter((e=>{let{value:t}=e;return a.find((0,m.propEq)("value",t))}))})(t,a))}),[t,a]);const y=()=>d(null),g=e=>{u((0,m.ifElse)(Gc(e),Zc(e),(0,m.concat)([e])))},E=!!p.length,v=!!s,x=xt()(c.filterIconWrapper,{[c.filterIconWrapperActive]:v,[c.filterIconWrapperSelected]:E}),b=E?c.filterIconFilterApplied:c.filterIcon;return r().createElement("div",{className:c.searchWrapper},r().createElement("div",{"data-reltio-id":"reltio-dq-dashboard-attributes-search-input"},r().createElement(Uc.Z,{autofocus:!0,onChange:e=>{h(e),i(e||"")},initialValue:n||null,height:40,placeholder:ne().text("Search attribute name"),classes:{root:xt()(c.searchInput,{[c.filledInput]:!!f})}})),r().createElement("div",{className:c.filterByDetails,"data-reltio-id":"reltio-dq-dashboard-attributes-filter"},r().createElement("div",{className:x,onClick:e=>d(e.currentTarget)},r().createElement(jc.Z,{className:b})),r().createElement(zc.ZP,{open:!!s,anchorEl:s,onClose:()=>{u((0,m.always)(t)),y()},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{"data-reltio-id":"reltio-dq-dashboard-attributes-filter-popup"}},r().createElement("div",{className:c.menu},r().createElement(ma.Z,{variant:"h6",className:c.dropdownMenuTitle},ne().text("Filter")),r().createElement("div",{className:c.valueContainer},a.map((e=>{let{label:t,options:a}=e;return r().createElement("div",{key:t},t&&r().createElement(ma.Z,{variant:"caption",className:c.groupLabel},t),a.map((e=>{const t=Gc(e,p);return r().createElement(Wc,{key:e.label,data:e,isSelected:t,onChange:g})})))})))),r().createElement("div",{className:c.actionsContainer},r().createElement(ua.Z,{onClick:()=>{u([])},className:c.clearAllButton,disabled:!E,"data-reltio-id":"reltio-dq-dashboard-filter-clear-all-button"},ne().text("Clear all")),r().createElement(ua.Z,{onClick:()=>{u(t),y()},"data-reltio-id":"reltio-dq-dashboard-filter-cancel-button"},ne().text("Cancel")),r().createElement(ua.Z,{color:"primary",onClick:()=>{o(p),y()},"data-reltio-id":"reltio-dq-dashboard-filter-apply-button"},ne().text("Apply"))))))},$c=(0,o.makeStyles)((e=>({root:{width:"360px",minWidth:"360px",maxWidth:"360px",display:"flex",flexDirection:"column",background:"#fff",zIndex:1,marginBottom:"8px",borderRadius:"4px",boxShadow:"0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.12), 0px 1px 3px rgba(0, 0, 0, 0.2)"},title:{height:"24px",margin:"16px",display:"flex",alignItems:"center",fontSize:"16px",lineHeight:"24px",color:e.palette.text.primary},itemCount:{color:e.palette.text.primary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px"},listWrapper:{flexGrow:1,overflow:"hidden",position:"relative"},loadingAnimation:{"&:before":{position:"absolute",top:0,right:0,bottom:0,left:"50%",zIndex:1,width:"500%",marginLeft:"-250%",background:"linear-gradient(to right, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 54%) 50% 50%;",animation:"$loaderAnimation 0.8s linear infinite",content:'""',pointerEvents:"none"}},columnsTitle:{height:"48px",display:"grid",gridGap:"32px",gridTemplateColumns:"308px 108px",alignItems:"center",padding:"0 16px",background:"rgba(0, 0, 0, 0.06)",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",fontWeight:500,fontSize:"12px",lineHeight:"16px",color:e.palette.text.secondary},loaderWrapper:{position:"absolute",top:"0",left:"0",width:"100%",height:"4px",zIndex:1},"@keyframes loaderAnimation":{"0%":{transform:"translate(-30%, 0)"},"100%":{transform:"translate(30%, 0)"}}}))),Qc=e=>{var t,a;let{entityType:n,onAttributesListChange:i,defaultFieldName:o,defaultFilterOptions:c,defaultFilterText:s,disableAttributeSelection:d}=e;const p=$c(),f=(0,l.useRef)(),y=(0,l.useRef)(),[g,E]=(0,l.useState)(s||""),[v,x]=(0,l.useState)([]),[b,O]=(0,l.useState)(c||gc),[R,_]=(0,l.useState)(o),[A,N]=(0,l.useState)({}),{chartsData:{data:D}}=pe(),I=null===(t=(0,l.useContext)(ce))||void 0===t||null===(a=t.dvfs)||void 0===a?void 0:a.state,C=((e,t)=>{var a,r;const n=(0,w.useSelector)(T.ZP.selectors.getMetadata),i=(0,l.useMemo)((()=>(e=>(0,m.pipe)(u.WN0,st(e),ft))(t)(n,e)),[n,e,t]),[o,c]=(0,l.useState)([]),s=e.uri,d=(0,l.useMemo)((()=>(0,u.qhs)(n,s)),[n,s]),p=null===(a=(0,l.useContext)(ce))||void 0===a||null===(r=a.dvfs)||void 0===r?void 0:r.data;return(0,l.useEffect)((()=>{c([]),p&&c(i.map((0,m.evolve)({attributeItem:e=>function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){pc(e,t,a[t])}))}return e}({},e,{details:ut({attrTypeItem:e,dvf:p,matchAttributes:d})},e.children&&{children:e.children.map((t=>(t.details=ut({attrTypeItem:t,dvf:p,matchAttributes:d}),t.details.reference=e.isAttributeReference,t)))})})))}),[i,d,p]),o})(n,g),M=Oc(C),k=(0,l.useMemo)((()=>M),[M.toString()]),{data:L,state:P}=((e,t)=>{const[a,r]=(0,l.useState)(h.o.INIT),[n,i]=(0,l.useState)({}),o=(0,S._)(),{searchByOv:c}=K(),s=e=>{console.warn(e),r(h.o.ERROR),i({})},d=(0,l.useCallback)((()=>{if(t.length)return r(h.o.LOADING),i({}),o((0,u.TTx)({entityTypeUri:e,attributes:t,dataLevel:u.yn8.ATTRIBUTE_TYPE,metrics:[u.N0y.FILL_RATE],searchByOv:c})).then(kt).then((e=>{i(e),r(h.o.LOADED)})).catch(s)}),[o,r,i,t,c]),p=(0,l.useCallback)((()=>{try{d()}catch(e){s(e)}}),[d]);return(0,l.useEffect)((()=>{p()}),[p]),{data:n,state:a,reload:p}})(n.uri,k);(0,l.useEffect)((()=>N(L)),[L]),(0,l.useEffect)((()=>{const e=(null==D?void 0:D.fillRate)&&Mt(null==D?void 0:D.fillRate),t=A[R];N((a=>!e||(0,m.equals)(t,e)?a:(0,m.assoc)(R,e,a)))}),[null==D?void 0:D.fillRate]);const F=P===h.o.INIT||P===h.o.LOADING||I===h.o.LOADING||I===h.o.INIT,B=I===h.o.LOADED||I===h.o.ERROR,j=P===h.o.LOADED,{filteredItems:z,filterOptions:U}=(0,l.useMemo)((()=>{const e=j?Ec(b,A,C):C,t=(e=>{const t=Object.values(nt).map((e=>({value:e,label:mt(e),group:"details"}))).map((t=>(0,m.assoc)("count",((e,t)=>e.filter((e=>it([t],e.attributeItem))).length)(e,t),t)));return{label:ne().text("Attribute properties"),options:t}})(e);return{filteredItems:B?bc(b,e):e,filterOptions:[{label:"",options:gc},t]}}),[C,b,A,j,B]),V=(0,l.useMemo)((()=>((e,t)=>e.filter((e=>{let{attributeItem:a}=e;return!t.some((e=>a.fieldName.startsWith(e)&&a.fieldName!==e))})))(z,v)),[z,v]),H=z.length,Y=e=>{i({selectedDetailedAttributeType:e,filterText:g,filterOptions:b}),_(e.fieldName)},W=(0,l.useMemo)((()=>{const e=((e,t)=>(0,m.pipe)((0,m.find)(fc(t)),(0,m.propOr)(null,"attributeItem"))(e))(z,R)||mc(z);return(0,m.isEmpty)(e)||d?null:e}),[z,R,d]);(0,l.useEffect)((()=>{var e,t,a;if(d)return void(null===(a=f.current)||void 0===a||a.scrollTo(0));z.length&&null!=W&&W.fieldName&&_(W.fieldName);const l=((e,t)=>(0,m.findIndex)(fc(t))(e))(z,R);l>-1?null===(e=f.current)||void 0===e||e.scrollToItem(l,"center"):null===(t=f.current)||void 0===t||t.scrollTo(0)}),[z,W]),(0,l.useEffect)((()=>{i({selectedDetailedAttributeType:W,filterText:g,filterOptions:b})}),[g,b,W]),(0,l.useEffect)((()=>{_((e=>d?null:e))}),[d]);const G=e=>{let{scrollOffset:t}=e;if(y.current){var a,l;const e=null===(a=y.current)||void 0===a||null===(l=a.style)||void 0===l?void 0:l.borderTop;0===t&&(y.current.style.borderTop=""),t>0&&""===e&&(y.current.style.borderTop="1px solid rgba(0, 0, 0, 0.05)")}},Z=e=>{let{data:t,index:a,style:l}=e;const{attributeItem:n,level:i=0}=t[a],o=R===n.fieldName,c=((e,t)=>e[t.fieldName])(A,n),s=a>0&&i>(0,m.pathOr)(-1,[a+1,"level"],V);return r().createElement(Bc,{fillRateData:c,fillRateState:P,isLoading:F,style:l,detailedAttributeType:n,level:i,onClick:Y,selected:o,onCollapse:(d=n.fieldName,()=>{x((e=>e.includes(d)?e.filter((e=>e!==d)):e.concat(d)))}),isCollapsed:v.includes(n.fieldName),isLastLevelItem:s});var d},q=V.length,$=!!q,Q=!$&&(0===C.length||0===z.length&&B);return r().createElement("div",{className:p.root},r().createElement("div",{className:p.title},ne().text("Attributes"),r().createElement("span",{className:p.itemCount},`${H} ${X=H,1===X?ne().text("item"):ne().text("items")}`),r().createElement(qc,{defaultFilterText:s,defaultFilterOptions:b,onChangeFilterOptions:O,onChangeFilterText:E,filterOptions:U})),r().createElement("div",{ref:y,className:xt()(p.listWrapper,{[p.loadingAnimation]:F&&!Q}),"data-reltio-id":"reltio-dq-dashboard-attributes-list"},$?r().createElement(ca.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return r().createElement(dc.FixedSizeList,{ref:f,itemCount:q,width:"100%",height:t,itemData:V,itemSize:48,onScroll:G},Z)})):Q&&r().createElement(Ea,{height:349,errorData:{Icon:sa.B9.SEARCH_RESULTS,title:ne().text("No results found"),message:ne().text("Try adjusting your search or filter to find\nwhat you’re looking for")},variant:ha.MEDIUM})));var X},Kc=(0,o.makeStyles)({root:{display:"flex",alignItems:"center",width:"100%"},title:{flexShrink:0,paddingLeft:"20px"},content:{overflow:"hidden",flexGrow:1}}),Xc=e=>{let{title:t,children:a}=e;const l=Kc();return r().createElement("div",{className:l.root},r().createElement(ma.Z,{variant:"h6",className:l.title},t),r().createElement("div",{className:l.content},a))},Jc=()=>{const{canGetDQStatistic:e}=te(),t=e?{Icon:sa.B9.NO_DATA,title:ne().text("Give us something to go on!"),message:ne().text("Go ahead and load some data. We’ll put it on the scales and\nlet you know here if it measures up.")}:{title:ne().text("You don’t currently have permission to view this page"),message:ne().text(" Please contact your Tenant Admin to change permissions")};return r().createElement(Ea,{height:359,errorData:t,variant:ha.LARGE})};function es(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){ts(e,t,a[t])}))}return e}function ts(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const as={position:"absolute",content:'""',top:0,left:0,right:0,zIndex:1},ls=(0,o.makeStyles)((()=>({root:{width:"100%",height:"100%",position:"relative",marginTop:"-12px","&:before":es({},as,{top:"8px",height:"4px",background:"linear-gradient(180deg, #EEEEEE 0%, rgba(238, 238, 238, 0) 100%)",zIndex:1}),"&:after":es({},as,{height:"8px",background:"#EEEEEE"})},layoutRoot:{overflow:"auto",backgroundColor:"#EEEEEE",height:"100%",flexGrow:1,padding:"0 4px",boxSizing:"border-box"}}))),rs=e=>{var t,a;let{config:n,entityType:i}=e;const o=ls(),c=(0,w.useSelector)(T.ZP.selectors.getMetadata),s=c&&i&&((e,t)=>{const a=e=>{var t;return(0,u.lS4)(e)||(null===(t=e.children)||void 0===t?void 0:t.some(a))};return(0,m.pipe)(u.WN0,(0,m.any)(a))(e,t)})(c,i),d=s?xe.RDM_LOOKUP_EXIST:xe.RDM_LOOKUP_NOT_EXIST,{hasRestrictions:p}=te(),f=(null===(t=n.layoutsByDataLevel)||void 0===t||null===(a=t[u.yn8.ENTITY_TYPE])||void 0===a?void 0:a[d])||Oe[u.yn8.ENTITY_TYPE][d],h=(0,l.useMemo)((()=>f?((e,t)=>{const a=(0,m.uniqBy)((0,m.prop)("id"),(0,m.concat)((null==e?void 0:e[u.yn8.ENTITY_TYPE])||[],be[u.yn8.ENTITY_TYPE]||[])),l=[ve.SUMMARY,ve.CONSOLIDATION_RATE,ve.DATA_VALIDATION,ve.RDM_TRANSCODE];return Ce({views:a,supportedViews:l,layout:t})})(n.viewsByDataLevel,f):[]),[n.viewsByDataLevel,f]),y=(0,l.useMemo)((()=>Me(h)),[h]),g=gt({entityType:i,dataLevel:u.yn8.ENTITY_TYPE,metrics:y}),{changeChartsData:E}=pe();return(0,l.useEffect)((()=>E(g)),[g]),x({state:g.state,reload:g.reload,dataLevel:u.yn8.ENTITY_TYPE}),r().createElement("div",{className:xt()(o.root)},r().createElement(tt.Provider,{value:u.yn8.ENTITY_TYPE},r().createElement("div",{className:o.layoutRoot,"data-reltio-id":"dq-dashboard-entity-level-layout"},p&&r().createElement(Zo,{text:ne().text("Not seeing the data you expected for this entity type? Contact your tenant admin to verify permissions.")}),r().createElement(Yo,{views:h,layout:f}))))};var ns=a(20195);const is=(0,o.makeStyles)((e=>({counter:{fontSize:"10px",lineHeight:"12px",height:"12px",background:"rgba(0, 0, 0, 0.05)",padding:"1px 4px",borderRadius:"2px"},selectRoot:{"&>fieldset":{border:"none !important",outline:"none !important"}},select:{borderRadius:"6px !important",border:"1px solid rgba(0, 0, 0, 0.12)",padding:"3px 29px 3px 15px !important",fontSize:"18px",lineHeight:"24px",paddingRight:"30px",color:e.palette.text.primary,minWidth:"128px",boxSizing:"border-box","&:hover,&:focus":{background:"rgba(0, 0, 0, 0.05)",border:"none",padding:"4px 30px 4px 16px !important"}},selectValue:{display:"flex",alignItems:"center",gap:"9px"},arrowIcon:{height:"16px",top:"calc(50% - 8px)",right:"1px"},menu:{padding:"4px 0",display:"flex",flexDirection:"column",gap:"4px"},optionRoot:{maxWidth:"184px",minWidth:"140px",display:"flex",paddingRight:"8px"},optionLabel:{flexGrow:1,fontSize:"13px",textOverflow:"ellipsis",overflow:"hidden",paddingRight:"10px",minWidth:0}})));function os(){return os=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},os.apply(this,arguments)}const cs=e=>{let{options:t,value:a,onChange:l,dataReltioId:n,dataReltioOptionId:i,classes:o={}}=e,c=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["options","value","onChange","dataReltioId","dataReltioOptionId","classes"]);const s=is(),d=e=>r().createElement("span",{className:s.counter},(0,u.k7L)(e,999)),p=(0,k.ze)(o,{outlined:s.select,icon:s.arrowIcon});return r().createElement(ns.Z,os({variant:"outlined",MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},classes:{list:s.menu}},value:a,onChange:(0,m.pipe)(k.NA,l),renderValue:e=>{const{label:a,count:l}=(0,m.find)((0,m.propEq)("value",e))(t);return r().createElement("div",{className:s.selectValue},a,!(0,m.isNil)(l)&&d(l))},className:s.selectRoot,classes:p,autoWidth:!0,"data-reltio-id":n},c),t.map(((e,t)=>{let{value:a,label:l,count:n}=e;return r().createElement(Hc.Z,{key:a,value:a,classes:{root:s.optionRoot},"data-reltio-id":`${i}-${t}`},r().createElement(Hi.Z,{value:l},r().createElement(ma.Z,{className:s.optionLabel},l)),!(0,m.isNil)(n)&&d(n))})))},ss=e=>{let{entityTypes:t,entityTypeUri:a,onChange:l}=e;const n=(0,m.pipe)((0,m.map)((e=>{let{label:t,uri:a,entityCount:l}=e;return{label:t,count:l,value:a}})))(t);return r().createElement(cs,{options:n,value:a,onChange:l,dataReltioOptionId:"reltio-dq-dashboard-entity-type-selector-option",dataReltioId:"reltio-dq-dashboard-entity-type-selector"})};function ds(){return ds=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ds.apply(this,arguments)}const ps=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",ds({width:"256",height:"256",viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("g",null,r().createElement("g",null,r().createElement("circle",{cx:"128",cy:"128",r:"128",fill:"#0072CE",fillOpacity:".03"}),r().createElement("mask",{id:"svg1824010396a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"256",height:"256"},r().createElement("circle",{cx:"128",cy:"128",r:"128",fill:"#fff"})),r().createElement("g",{mask:"url(#svg1824010396a)"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#paint0_linear_2978_41880)"}),r().createElement("g",{fillRule:"evenodd",clipRule:"evenodd"},r().createElement("path",{d:"M40.755 44.17C40.755 38.002 45.76 33 51.92 33h251.675c6.167 0 11.166 5.001 11.166 11.17v160.596H40.755V44.171z",fill:"#5E7282"}),r().createElement("path",{d:"M50.371 43.106h255.685V195.71H50.371V43.106z",fill:"url(#paint1_linear_2978_41880)"}),r().createElement("path",{d:"M15.545 208.914c2.321.469 4.723.716 7.183.716H338.75c.22 0 .439-.002.658-.006-7.061 8.445-17.67 13.816-29.524 13.816H45.655c-12.111 0-22.916-5.597-29.968-14.349l-.142-.177z",fill:"#BDCBD8"}),r().createElement("path",{d:"M339.015 204.883v4.966H15v-4.966h324.015z",fill:"#D4DCDF"}),r().createElement("path",{d:"M201.107 213.991h-45.221a11.176 11.176 0 01-11.046-9.449h67.314a11.172 11.172 0 01-11.047 9.449z",fill:"url(#paint2_linear_2978_41880)"})),r().createElement("g",{filter:"url(#filter0_d_2978_41880)"},r().createElement("rect",{x:"81.703",y:"99",width:"170",height:"26",rx:"8",fill:"#D1E6FF"}),r().createElement("rect",{x:"84.703",y:"102",width:"164",height:"20",rx:"5",stroke:"#fff",strokeWidth:"6"})),r().createElement("g",{filter:"url(#filter1_d_2978_41880)"},r().createElement("mask",{id:"svg1824010396b",fill:"#fff"},r().createElement("rect",{x:"81",y:"105",width:"108",height:"14",rx:"2"})),r().createElement("rect",{x:"81",y:"105",width:"108",height:"14",rx:"2",fill:"#61A3F1"}),r().createElement("rect",{x:"81",y:"105",width:"108",height:"14",rx:"2",stroke:"#4A90E2",strokeWidth:"8",mask:"url(#svg1824010396b)"})),r().createElement("g",null,r().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M122.703 74a3 3 0 013-3h81.625a3 3 0 010 6h-81.625a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M146.703 86a3 3 0 013-3h34a3 3 0 110 6h-34a3 3 0 01-3-3zM136.703 139a3 3 0 013-3h54a3 3 0 110 6h-54a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M112.703 151a3 3 0 013-3h103a3 3 0 110 6h-103a3 3 0 01-3-3zM124.703 163a3 3 0 013-3h79a3 3 0 110 6h-79a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("g",{filter:"url(#filter2_ddd_2978_41880)"},r().createElement("g",null,r().createElement("g",null,r().createElement("path",{fill:"#A0C1D7",d:"M70.703 64h11v8h-11z"}),r().createElement("rect",{x:"62",y:"59",width:"28",height:"8",rx:"1",fill:"#BDD4E3"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.23 160.5c20.704 20.703 54.27 20.703 74.973 0 20.703-20.703 20.703-54.27 0-74.973-20.703-20.703-54.27-20.703-74.973 0-20.703 20.703-20.703 54.27 0 74.973z",fill:"#BDD4E3"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M113.427 85.988c20.463 20.652 20.404 53.981-.175 74.561-20.432 20.431-53.432 20.635-74.115.613l-.446-.439 74.736-74.735z",fill:"#A0C1D7"}),r().createElement("path",{opacity:".144",fillRule:"evenodd",clipRule:"evenodd",d:"M75.037 175.385c29.402 0 53.236-23.834 53.236-53.236a54.67 54.67 0 00-.106-3.399L100.45 91.037l-55.142 58.396 25.814 25.811c1.293.094 2.598.141 3.915.141z",fill:"url(#paint3_linear_2978_41880)"}),r().createElement("circle",{cx:"75.94",cy:"123.237",r:"44.723",fill:"#91B0C2"}),r().createElement("g",null,r().createElement("g",{filter:"url(#filter3_d_2978_41880)"},r().createElement("circle",{r:"42.793",transform:"matrix(-1 0 0 1 75.94 123.237)",fill:"#F7F4FF"}))),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M105.043 175.309l-10.298.861-20.313-20.152.863-2.292-9.973-9.982 18.679-6.882h-4.308l-8.943-8.951 4.545-10.532L94.35 90.74l37.888 37.162c-.343 20.088-11.146 37.627-27.195 47.407z",fill:"url(#paint4_linear_2978_41880)"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.703 123a8 8 0 0112.362-6.707l14.477-25.145A36.828 36.828 0 0075.703 86c-20.434 0-37 16.565-37 37h29z",fill:"url(#paint5_angular_2978_41880)"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M94.297 90.6l.24.138s-12.45 35.125-12.811 35.752a6.92 6.92 0 01-11.985-6.92c.361-.626 24.556-28.97 24.556-28.97z",fill:"#323232"}),r().createElement("circle",{cx:"75.94",cy:"123.237",r:"2.896",fill:"#EEEBF6"}),r().createElement("circle",{cx:"96.211",cy:"148.655",r:"2.574",fill:"#A0C3D7"}),r().createElement("circle",{cx:"107.15",cy:"131.924",r:"2.574",fill:"#A0C3D7"}),r().createElement("rect",{x:"62.427",y:"135.592",width:"27.027",height:"10.039",rx:"3",fill:"#A0C3D7"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M85.914 170.534H75.112l-21.605-21.472 2.126-2.775v-1.01L42.8 132.523l2.853-2.529 40.261 40.54z",fill:"url(#paint6_linear_2978_41880)"}),r().createElement("path",{opacity:".02",fillRule:"evenodd",clipRule:"evenodd",d:"M96.362 136.555h-4.988l-38.126-38.01 2.853-2.53 40.261 40.54z",fill:"url(#paint7_linear_2978_41880)"}),r().createElement("path",{opacity:".02",fillRule:"evenodd",clipRule:"evenodd",d:"M116.746 129.006h-4.988L73.632 90.995l2.853-2.53 40.261 40.541z",fill:"url(#paint8_linear_2978_41880)"}),r().createElement("path",{opacity:".02",fillRule:"evenodd",clipRule:"evenodd",d:"M85.793 152.41h-4.988l-38.126-38.011 2.852-2.53 40.262 40.541z",fill:"url(#paint9_linear_2978_41880)"}),r().createElement("circle",{cx:"75.618",cy:"155.734",r:"2.574",fill:"#A0C3D7"}),r().createElement("circle",{cx:"55.026",cy:"148.655",r:"2.574",fill:"#A0C3D7"}),r().createElement("circle",{cx:"44.73",cy:"131.924",r:"2.574",fill:"#A0C3D7"}),r().createElement("g",{fill:"#A0C3D7"},r().createElement("circle",{r:"2.574",transform:"matrix(1 0 0 -1 96.21 97.363)"}),r().createElement("circle",{r:"2.574",transform:"matrix(1 0 0 -1 107.149 114.094)"}),r().createElement("circle",{r:"2.574",transform:"matrix(1 0 0 -1 75.618 90.284)"}),r().createElement("circle",{r:"2.574",transform:"matrix(1 0 0 -1 55.026 97.363)"}),r().createElement("circle",{r:"2.574",transform:"matrix(1 0 0 -1 44.73 114.094)"}))))))))),r().createElement("defs",null,r().createElement("linearGradient",{id:"paint0_linear_2978_41880",x1:"-16",y1:"9",x2:"-16",y2:"256",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),r().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"paint1_linear_2978_41880",x1:"178.214",y1:"43.106",x2:"178.214",y2:"195.709",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#F2F9FB"}),r().createElement("stop",{offset:"1",stopColor:"#fff"})),r().createElement("linearGradient",{id:"paint2_linear_2978_41880",x1:"178.497",y1:"204.542",x2:"178.497",y2:"213.991",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#90AABF"}),r().createElement("stop",{offset:"1",stopColor:"#869DAE"})),r().createElement("linearGradient",{id:"paint3_linear_2978_41880",x1:"154.275",y1:"146.574",x2:"96.683",y2:"91.352",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".01"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"paint4_linear_2978_41880",x1:"60.762",y1:"143.327",x2:"114.747",y2:"176.019",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".87"}),r().createElement("stop",{offset:"1",stopOpacity:".01"})),r().createElement("linearGradient",{id:"paint6_linear_2978_41880",x1:"90.287",y1:"154.267",x2:"68.53",y2:"131.301",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".01"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"paint7_linear_2978_41880",x1:"100.735",y1:"120.288",x2:"78.978",y2:"97.322",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".01"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"paint8_linear_2978_41880",x1:"121.119",y1:"112.739",x2:"99.362",y2:"89.773",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".01"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"paint9_linear_2978_41880",x1:"90.166",y1:"136.143",x2:"68.409",y2:"113.177",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".01"}),r().createElement("stop",{offset:"1"})),r().createElement("filter",{id:"filter0_d_2978_41880",x:"77.703",y:"96",width:"178",height:"34",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:"1"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),r().createElement("filter",{id:"filter1_d_2978_41880",x:"77",y:"102",width:"116",height:"22",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:"1"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),r().createElement("filter",{id:"filter2_ddd_2978_41880",x:"-13.297",y:"28",width:"181.534",height:"189.17",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feMorphology",{radius:"4",operator:"erode",in:"SourceAlpha",result:"effect1_dropShadow_2978_41880"}),r().createElement("feOffset",{dy:"7"}),r().createElement("feGaussianBlur",{stdDeviation:"4"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.600156 0 0 0 0 0.745337 0 0 0 0 0.8625 0 0 0 0.1 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),r().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"}),r().createElement("feMorphology",{radius:"4",operator:"dilate",in:"SourceAlpha",result:"effect2_dropShadow_2978_41880"}),r().createElement("feOffset",{dy:"5"}),r().createElement("feGaussianBlur",{stdDeviation:"16"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0"}),r().createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_2978_41880",result:"effect2_dropShadow_2978_41880"}),r().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"}),r().createElement("feMorphology",{radius:"2",operator:"dilate",in:"SourceAlpha",result:"effect3_dropShadow_2978_41880"}),r().createElement("feOffset",{dy:"12"}),r().createElement("feGaussianBlur",{stdDeviation:"8.5"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0"}),r().createElement("feBlend",{mode:"normal",in2:"effect2_dropShadow_2978_41880",result:"effect3_dropShadow_2978_41880"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_2978_41880",result:"shape"})),r().createElement("filter",{id:"filter3_d_2978_41880",x:"29.148",y:"78.444",width:"93.585",height:"93.585",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),r().createElement("radialGradient",{id:"paint5_angular_2978_41880",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(-56.035 152.55 -12.515) scale(43.4058 65.5062)"},r().createElement("stop",{stopColor:"#CFE8FF"}),r().createElement("stop",{offset:".599",stopColor:"#D1F2F9",stopOpacity:"0"}))))},us=()=>r().createElement(sa.ZP,{LogoRenderer:ps,text:ne().text("Loading..."),secondaryText:ne().text("Please give us a moment while we load the page")});var ms=a(22658);const fs=(0,o.makeStyles)((e=>({root:{display:"flex",alignItems:"center"},updateTime:{color:e.palette.text.secondary,fontSize:"13px",paddingRight:"16px"}}))),hs=e=>{let{dataLevel:t}=e;const a=fs(),[,n]=(0,l.useState)(0),i=(()=>{const e=(0,l.useContext)(g);if(void 0===e)throw new Error("useReloadAllFacets must be used within a ReloadFacetProvider");return e})(),{updateTime:o}=O(t);(0,l.useEffect)((()=>{const e=setInterval((()=>n((e=>e+1))),1e4);return()=>clearInterval(e)}),[]);const c=N()(o);return c.isValid()&&r().createElement("div",{className:a.root},r().createElement("span",{className:a.updateTime},`${ne().text("Last updated")} ${c.fromNow()}`),r().createElement(wa.k,{tooltipTitle:ne().text("Refresh"),icon:ms.Z,onClick:()=>{i(t)},size:"S"}))};var ys=a(29742);const gs=(0,o.makeStyles)((()=>({settingsAttributeLevel:{marginLeft:"2px",marginRight:"2px"},settingsEntityLevel:{marginRight:"-8px",marginLeft:"8px"}}))),Es=e=>{let{dataLevel:t}=e;const a=gs(),{searchByOv:l}=K(),{changeSearchByOv:n}=X(),i=[{id:"ov",active:!0,onClick:()=>n(!l),text:ne().text("Show OV only"),selected:l}];return r().createElement("div",{className:xt()({[a.settingsEntityLevel]:t===u.yn8.ENTITY_TYPE,[a.settingsAttributeLevel]:t===u.yn8.ATTRIBUTE_TYPE})},r().createElement(ys.Z,{items:i,menuId:"dqSettingsMenu"}))};function vs(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const xs=e=>{var t,a,n;let{config:i,saveState:o,getSavedState:c}=e;const s=Ko(),d=(()=>{const e=(0,w.useSelector)(T.ZP.selectors.getMetadata);return(0,l.useMemo)((()=>e.entityTypes.filter(u.oDv)),[e.entityTypes])})(),{zoom:p,period:f,entityType:y,detailedAttributeType:g,searchByOv:E}=K(),{changeZoom:v,changePeriod:x,setEntityType:b,setDetailedAttributeType:S,changeSearchByOv:R}=X(),[_,A]=(0,l.useState)(""),{getEntityCount:D,state:k}=fe(d),{canGetDQStatistic:L,permissionsLoadingState:P,isTimeSeriesAvailable:F}=te(),[B,j]=(0,l.useState)(),{resetUpdateTimes:z}=O(B),U=me(y),V=ue(null==y?void 0:y.uri),H=(0,l.useMemo)((()=>({dvfs:V,dvfConfigLink:U})),[V,U]),Y=(0,l.useRef)(),{isLoaded:W,savedState:G}=(0,ie.a)(c),Z=P===h.o.ERROR||P===h.o.LOADED;(0,l.useEffect)((()=>{$({searchByOv:E})}),[E]),(0,l.useEffect)((()=>{const e=d&&_?(0,u.nt9)({entityTypes:d},_):null;b(e)}),[_]),(0,l.useEffect)((()=>{if(W&&Z){Y.current=G,R(!!G.searchByOv&&i.showOVSwitcher);const e=!!(0,u.nt9)({entityTypes:d},G.entityTypeUri);A(e?G.entityTypeUri:I(Q)),j(G.fieldName&&G.dataLevel||u.yn8.ENTITY_TYPE);const t=F?u.bZE.LAST_WEEK:u.bZE.LAST_DAY,a=F&&(C.includes(null==G?void 0:G.period)||Array.isArray(null==G?void 0:G.period))?G.period:t;x(a),G.zoom&&v(G.zoom)}}),[W,Z]),(0,l.useEffect)((()=>{B===u.yn8.ENTITY_TYPE&&$({fieldName:null,dataLevel:u.yn8.ENTITY_TYPE,entityTypeUri:_})}),[B,_]),(0,l.useEffect)((()=>{if(W&&B===u.yn8.ATTRIBUTE_TYPE){const{startDate:e,endDate:t}=Ge(f);$({period:[new Date(e),new Date(t)],zoom:p})}}),[p]),(0,l.useEffect)((()=>{W&&B===u.yn8.ATTRIBUTE_TYPE&&$({period:f})}),[f]);const q=(e=>{const t=(0,l.useRef)(),a=(0,l.useRef)(null);return(0,l.useCallback)(((l,r)=>{(null==t?void 0:t.current)&&clearTimeout(null==t?void 0:t.current),null!=a&&a.current||(a.current=r),(0,m.equals)(l,null==a?void 0:a.current)||(t.current=setTimeout((()=>{a.current=l,e(l)}),200))}),[e])})(o),$=e=>{const t=(e=>function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){vs(e,t,a[t])}))}return e}({fieldName:null,zoom:p||null,entityTypeUri:_,period:f,searchByOv:E},null==Y?void 0:Y.current,e))(e);q(t,Y.current),Y.current=t},Q=(0,l.useMemo)((()=>(e=>{let{entityTypes:t,getEntityCount:a}=e;return(0,m.pipe)((0,m.map)((e=>(0,m.assoc)("entityCount",a(e.uri))(e))),(0,m.sortWith)([(e,t)=>{let{entityCount:a}=e,{entityCount:l}=t;return a===l||a>0&&l>0?0:0===a?1:-1},(0,m.ascend)((0,m.prop)("label"))]))(t)})({entityTypes:d,getEntityCount:D})),[d,D]),J=(0,l.useCallback)((e=>{(null==y?void 0:y.uri)!==e&&(z(u.yn8.ENTITY_TYPE),S(null),A(e),j(u.yn8.ENTITY_TYPE))}),[null==y?void 0:y.uri]),ee=k!==h.o.LOADING&&W&&Z,ae=y&&L&&!!D(_),le=B===u.yn8.ATTRIBUTE_TYPE&&F,re=((e,t)=>e?[new Date(e[0]),new Date(e[1])]:t)(p,f);return ee?r().createElement("div",{className:s.perspectiveView},r().createElement(Xc,{title:ne().text("Data Quality")},y&&r().createElement("div",{className:s.navigationWrapper},r().createElement(ss,{entityTypes:Q,entityTypeUri:y.uri,onChange:J}),r().createElement(ac,{dataLevel:B,onChange:j}),r().createElement("div",{className:s.headerRightSide},i.showOVSwitcher&&r().createElement(Es,{dataLevel:B}),le&&r().createElement(oe.Z,{values:re,options:(0,u.cGG)(C),getValuesDateRange:M,onChange:x,className:s.periodSelector,TextFieldProps:{InputProps:{classes:{input:s.input,root:s.inputRoot},disableUnderline:!0}},MenuProps:{classes:{paper:s.paper}},classes:{dropdownIndicator:s.dropdownIndicator},DateRangePickerProps:{maxDate:N()().startOf("day").toDate()}}),r().createElement(hs,{dataLevel:B})))),ae?r().createElement("div",{className:s.content},r().createElement(ce.Provider,{value:H},r().createElement(de,null,r().createElement(ic,{page:B===u.yn8.ENTITY_TYPE?0:1,pages:[[{index:0},{index:2,width:372}],[{index:1,width:60},{index:2,width:360},{index:3}]]},r().createElement(de,null,r().createElement(rs,{config:i,entityType:y})),r().createElement(sc,{showEntityLevel:()=>{S(null),j(u.yn8.ENTITY_TYPE),z(u.yn8.ENTITY_TYPE)},entityType:y}),r().createElement(Qc,{entityType:y,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:a,filterOptions:l}=e;const r=null==t?void 0:t.fieldName;!r&&(0,m.equals)({filterText:a,filterOptions:l},(0,m.pick)([a,l],Y.current))||$({fieldName:r||null,filterOptions:l,filterText:a,dataLevel:r?u.yn8.ATTRIBUTE_TYPE:B}),r&&j(u.yn8.ATTRIBUTE_TYPE),(0,m.equals)(g,t)||(z(u.yn8.ATTRIBUTE_TYPE),t&&S(t))},defaultFieldName:null===(t=Y.current)||void 0===t?void 0:t.fieldName,defaultFilterText:null===(a=Y.current)||void 0===a?void 0:a.filterText,defaultFilterOptions:null===(n=Y.current)||void 0===n?void 0:n.filterOptions,disableAttributeSelection:B===u.yn8.ENTITY_TYPE}),r().createElement("div",{className:s.attributeLevelWrapper},g&&r().createElement(Xo,{config:i,entityType:y})))))):y&&r().createElement(Jc,null)):r().createElement(us,null)},bs=(0,n.Z)(le),Os=(0,c.Z)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0,seed:"dash"}),ws=e=>{let{config:t,saveState:a,getSavedState:n}=e;const c=(0,l.useCallback)((0,u.aYu)(n),[n]);return r().createElement(d._,{dateAdapter:p.Q},r().createElement(i.Z,{injectFirst:!0},r().createElement(o.ThemeProvider,{theme:bs},r().createElement(s.ZP,{generateClassName:Os},r().createElement(v,null,r().createElement(Q,null,r().createElement(ee,{config:t},r().createElement(xs,{config:t,saveState:a,getSavedState:c}))))))))}}}]);
1
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="03d5ee42-97cd-4c85-b5eb-8b30e3354714",e._sentryDebugIdIdentifier="sentry-dbid-03d5ee42-97cd-4c85-b5eb-8b30e3354714")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1722"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5039],{42639:(e,t,a)=>{a.d(t,{Z:()=>d});var l=a(65439),r=a(71153),n=a.n(r),i=a(24328),o=a.n(i);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},c.apply(this,arguments)}var s=function(e){return e[e.ICON_MODE=0]="ICON_MODE",e[e.TEXT_MODE=1]="TEXT_MODE",e[e.ERROR_MODE=2]="ERROR_MODE",e}(s||{});const d=e=>{let{className:t,icon:a,avatarText:r,rootClasses:d}=e,p=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["className","icon","avatarText","rootClasses"]);const[u,m]=(0,i.useState)(null);(0,i.useEffect)((()=>{m(a?s.ICON_MODE:s.TEXT_MODE)}),[a,r]);const f=()=>{m(s.ERROR_MODE)};switch(u){case s.ICON_MODE:return o().createElement(l.Z,c({className:n()(t,null==d?void 0:d.iconRoot),src:a,onError:f},p));case s.TEXT_MODE:case s.ERROR_MODE:return o().createElement(l.Z,c({className:n()(t,null==d?void 0:d.textRoot)},p),r);default:return null}}},30488:(e,t,a)=>{a.d(t,{Z:()=>n});var l=a(38748),r=a(50548);const n=e=>t=>(0,r.l)(l.X,e,t)},82565:(e,t,a)=>{a.d(t,{Z:()=>p});var l=a(24328),r=a.n(l),n=a(12115);function i(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){o(e,t,a[t])}))}return e}function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const c=(0,a(72342).makeStyles)((e=>({basicViewPaper:i({display:"flex",flexDirection:"column"},e.basicView)})));function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},s.apply(this,arguments)}const d=(0,l.forwardRef)(((e,t)=>{let{children:a,className:l}=e,i=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["children","className"]);const o=c();return r().createElement(n.Z,s({ref:t,className:l,classes:{root:o.basicViewPaper}},i),a)}));d.displayName="BasicView";const p=d},82068:(e,t,a)=>{a.d(t,{Z:()=>s});var l=a(24328),r=a.n(l),n=a(71153),i=a.n(n);const o=(0,a(72342).makeStyles)({"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 l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},c.apply(this,arguments)}const s=e=>{let{children:t,className:a}=e,l=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["children","className"]);const n=o();return r().createElement("div",c({className:i()(n["basic-view-content"],a)},l),t)}},17998:(e,t,a)=>{a.d(t,{Z:()=>p});var l=a(24328),r=a.n(l),n=a(2507),i=a.n(n),o=a(26482),c=a(79312);const s=(0,a(72342).makeStyles)({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",minWidth:"20px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},d.apply(this,arguments)}const p=e=>{let{title:t="",children:a=null,classes:l={}}=e,n=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["title","children","classes"]);const p=s();return r().createElement(o.Z,d({className:l.root,classes:{root:p.toolbar}},n),r().createElement(c.Z,{className:l.title,classes:{root:p.title},variant:"h6"},i().text(t)),a)}},89902:(e,t,a)=>{a.d(t,{Z:()=>d});var l=a(24328),r=a.n(l),n=a(71153),i=a.n(n),o=a(50914);const c=(0,a(72342).makeStyles)((e=>({bar:{backgroundColor:e.palette.secondary.main,opacity:.12,position:"absolute",minHeight:"20px",minWidth:"5px",borderRadius:"2px",top:0,left:0,height:"100%"}}))),s=e=>(0,o.is)(Number,e),d=e=>{let{className:t,width:a=0,maxWidth:n}=e;const o=c(),d=(0,l.useCallback)((e=>(n?100*e/n:0)+"%"),[n]);return a?r().createElement("div",{className:i()(o.bar,t),style:{width:s(a)?d(a):a}}):null}},98538:(e,t,a)=>{a.d(t,{Z:()=>O});var l=a(24328),r=a.n(l),n=a(71153),i=a.n(n),o=a(50914),c=a(38677),s=a(18960),d=a(55962),p=a(80852),u=a(95341),m=a(79312),f=a(78223),h=a(47591);const y=(0,a(72342).makeStyles)((e=>({buttonRoot:{"&$selected":{color:e.palette.action.active,backgroundColor:(0,h.Fq)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,h.Fq)(e.palette.action.active,.15)}}},selected:{},paper:{minWidth:"112px"},menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}}))),g=(0,f.Z)(u.Z),E=(0,l.forwardRef)(((e,t)=>{let{item:a,onMenuClose:l=o.identity}=e;const n=y(),{disabled:i,text:c,tooltip:s,onClick:d,id:u="",selectable:f,selected:h}=a;return r().createElement(g,{tooltipTitle:s,showForDisabled:!0,classes:{root:n.menuItem},onClick:e=>{l(e),d(e)},disabled:i,ref:t,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${u}`},f&&r().createElement(p.Z,{checked:h,color:"primary"}),r().createElement(m.Z,{classes:{root:n.menuText}},c))}));E.displayName="MenuItemRenderer";const v=E;function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},x.apply(this,arguments)}function b(e){let{className:t,menuId:a,buttonComponent:n=c.Z,buttonContent:p,menuItems:u=[],buttonProps:m={},popoverProps:f={},onMenuOpen:h=o.identity,onMenuClose:g=o.identity,MenuItemRenderer:E=v}=e;const b=n,O=y(),w=(0,l.useRef)(),[S,T]=(0,l.useState)(!1);(0,d.D)((()=>{S?h():g()}),[S]);const R=(0,l.useCallback)((e=>{null==e||e.stopPropagation(),T((e=>!e))}),[]);return r().createElement(r().Fragment,null,r().createElement(b,x({"data-reltio-id":"drop-down-menu-button",ref:w,className:i()(O.buttonRoot,{[O.selected]:S},t),onClick:R,"aria-pressed":S,"aria-controls":S?a:void 0,"aria-haspopup":"true"},m),p),r().createElement(s.Z,x({id:a,variant:"menu",open:S,autoFocus:!1,classes:{paper:O.paper},anchorEl:w.current,onClose:R,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,MenuListProps:{autoFocusItem:S}},f),u.map(((e,t)=>r().createElement(E,{item:e,key:t,onMenuClose:R})))))}b.displayName="DropDownMenuButton";const O=b},79002:(e,t,a)=>{a.d(t,{B9:()=>y,tC:()=>h,ZP:()=>g});var l=a(24328),r=a.n(l),n=a(71153),i=a.n(n),o=a(50914),c=a(79312),s=a(38677);function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},d.apply(this,arguments)}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},p.apply(this,arguments)}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},u.apply(this,arguments)}function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},m.apply(this,arguments)}const f=(0,a(72342).makeStyles)((e=>({root:{display:"flex",flex:"1 1 auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"10px",overflow:"auto",height:"100%",minHeight:"350px",boxSizing:"border-box","&$root_small":{minHeight:"160px"},"& $text":{color:e.palette.text.primary,fontSize:"20px",fontWeight:500,lineHeight:"24px",letterSpacing:"0.25px",textAlign:"center"},"& $secondaryText":{color:e.palette.text.secondary,fontSize:"15px",fontWeight:300,lineHeight:"18px",letterSpacing:"0.11px",textAlign:"center",paddingTop:"3px"}},root_small:{},embedded:{flexShrink:0,width:"190px",height:"190px",padding:"8px"},full:{width:"256px",height:"256px"},textBox:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:500,marginTop:"16px"},text:{},secondaryText:{},button:{minHeight:36,minWidth:64,maxWidth:500,padding:"10px 16px",borderRadius:"2px",boxShadow:"0 0 2px 0 rgba(0,0,0,0.12), 0 2px 2px 0 rgba(0,0,0,0.24), 0 0 8px 0 rgba(0,0,0,0.12), 0 8px 8px 0 rgba(0,0,0,0.24)",fontSize:"14px",fontWeight:500,lineHeight:"16px",marginTop:"24px"}})));let h=function(e){return e.full="full",e.embedded="embedded",e.small="small",e}({});const y={SEARCH_RESULTS:e=>r().createElement("svg",d({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),r().createElement("defs",null,r().createElement("radialGradient",{cx:"50%",cy:"100%",fx:"50%",fy:"100%",r:"81.681%",gradientTransform:"matrix(.98998 0 0 .612 .005 .388)",id:"EmptySearchResults_svg__c"},r().createElement("stop",{stopColor:"#00BFFF",stopOpacity:.5,offset:"0%"}),r().createElement("stop",{stopColor:"#9EE8FF",stopOpacity:0,offset:"100%"})),r().createElement("radialGradient",{cx:"50%",cy:"111.651%",fx:"50%",fy:"111.651%",r:"87.693%",gradientTransform:"matrix(0 -.97693 .7263 0 -.31 1.605)",id:"EmptySearchResults_svg__f"},r().createElement("stop",{stopColor:"#91F8E5",stopOpacity:.6,offset:"0%"}),r().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),r().createElement("radialGradient",{cx:"50%",cy:"103.659%",fx:"50%",fy:"103.659%",r:"90.207%",gradientTransform:"matrix(0 -1 2.23905 0 -1.821 1.537)",id:"EmptySearchResults_svg__g"},r().createElement("stop",{stopColor:"#FFF",offset:"0%"}),r().createElement("stop",{stopColor:"#73FAFF",stopOpacity:.21,offset:"59.38%"}),r().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),r().createElement("linearGradient",{x1:"50%",y1:"170.771%",x2:"50%",y2:"10.303%",id:"EmptySearchResults_svg__e"},r().createElement("stop",{stopColor:"#91F8E5",offset:"0%"}),r().createElement("stop",{stopColor:"#99FCFF",stopOpacity:0,offset:"100%"})),r().createElement("filter",{x:"-25.9%",y:"-26.2%",width:"151.8%",height:"152.3%",filterUnits:"objectBoundingBox",id:"EmptySearchResults_svg__d"},r().createElement("feGaussianBlur",{stdDeviation:15,in:"SourceGraphic"})),r().createElement("circle",{id:"EmptySearchResults_svg__a",cx:128,cy:128,r:128})),r().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r().createElement("mask",{id:"EmptySearchResults_svg__b",fill:"#fff"},r().createElement("use",{xlinkHref:"#EmptySearchResults_svg__a"})),r().createElement("use",{fillOpacity:.2,fill:"#A792CD",xlinkHref:"#EmptySearchResults_svg__a"}),r().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},r().createElement("g",{transform:"translate(56 34)"},r().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},r().createElement("path",{d:"M0 6.99C0 3.13 3.137 0 7 0h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H7c-3.866 0-7-3.143-7-6.99V6.99z"}),r().createElement("path",{d:"M13 25.99c0-3.86 3.137-6.99 7-6.99h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H20c-3.866 0-7-3.143-7-6.99V25.99z",opacity:.4})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 45.833)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),r().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),r().createElement("path",{d:"M35.365.861h69.768a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M34.274 15.048h126.164a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),r().createElement("rect",{fill:"#645F6D",opacity:.5,x:21.756,y:17.46,width:87.022,height:12.004,rx:6.002}),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 87.302)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),r().createElement("rect",{fill:"#E3EBF4",x:0,y:1.091,width:20.668,height:20.734,rx:10.334}),r().createElement("path",{d:"M35.365.861h82.647a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M34.274 15.048H174.58a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M33.182 24.869h113.119a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 128.77)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),r().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),r().createElement("path",{d:"M35.365.861h110.929a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M34.274 15.048h92.443a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})))),r().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},r().createElement("path",{fill:"#446275",d:"M72.246 84.033l8.66 5-35.5 61.488-8.66-5-12.556-24.729-51.307-29.622 20.431-35.388 50.648 29.242z"}),r().createElement("path",{d:"M62.906 120.21l-80.091-46.24 10.5-18.188 50.647 29.242 28.284-.99 8.66 5-18 31.176z",fillOpacity:.2,fill:"#FFF"}),r().createElement("path",{d:"M27.566 75.558L3.877 109.065l-5.013-2.895 26.045-32.146 2.657 1.534zm9.467 5.466L13.345 114.53l-5.014-2.895L34.377 79.49l2.656 1.534zm8.158 4.71l-22.32 34.297-5.013-2.895L43.903 84.99l1.288.744z",fill:"#527585"}),r().createElement("path",{d:"M11.524 90.544l13.385-16.52 2.657 1.534-12.174 17.22-3.868-2.234zm9.467 5.467L34.377 79.49l2.656 1.534-12.174 17.22-3.868-2.233zm9.527 5.5L43.903 84.99l1.288.744-11.47 17.626-3.203-1.85z",fill:"#76A2B5",opacity:.6}),r().createElement("path",{d:"M.355 59.848l-23.689 33.507-5.013-2.895 26.045-32.146 2.657 1.534zm9.468 5.466L-13.866 98.82l-5.013-2.895L7.166 63.78l2.657 1.534zm8.158 4.71L-4.34 104.32l-5.014-2.895L16.692 69.28l1.289.744z",fillOpacity:.1,fill:"#000"}),r().createElement("g",null,r().createElement("path",{fill:"url(#EmptySearchResults_svg__c)",opacity:.993,filter:"url(#EmptySearchResults_svg__d)",d:"M.63 0h173.74L123 172H52z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"url(#EmptySearchResults_svg__e)",opacity:.3,d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"url(#EmptySearchResults_svg__f)",opacity:.3,d:"M4 2h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"url(#EmptySearchResults_svg__g)",d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"#FFF",opacity:.196,d:"M212.363 205.344l-1 1.732L60.418 124.52l4.977-8.62z"})),r().createElement("path",{fill:"#76A2B5",d:"M73.112 84.533l-35.5 61.488-.866-.5 35.5-61.488z"}),r().createElement("path",{fill:"#F3F3F3",d:"M80.906 89.033l-35.5 61.488-.866-.5 35.5-61.488z"}),r().createElement("path",{fill:"#538196",d:"M55.112 115.71l-17.5 30.311-.866-.5 17.5-30.31z"})))),SELECT_ATTRIBUTES:e=>r().createElement("svg",p({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),r().createElement("mask",{id:"SelectAttributes_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},r().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),r().createElement("g",{mask:"url(#SelectAttributes_svg__a)"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#SelectAttributes_svg__paint0_linear_0_19219)"}),r().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z",fill:"url(#SelectAttributes_svg__paint1_linear_0_19219)"}),r().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M47 58h202a7 7 0 017 7v157a7 7 0 01-7 7H47a7 7 0 01-7-7V65a7 7 0 017-7z",fill:"#000"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 56h201a5 5 0 015 5v157a5 5 0 01-5 5H50a5 5 0 01-5-5V61a5 5 0 015-5z",fill:"#fff"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 72.635a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 84.635a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 163a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 175a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 193a3 3 0 013-3H190a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 205a3 3 0 013-3h74.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 103a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 115a3 3 0 013-3h64.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),r().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 133a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 145a3 3 0 013-3h74.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M92.514 108v-8h-2V140.365h11.178v-2h-9.178V110h9.178v-2h-9.178z",fill:"#2B98F0"}),r().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),r().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M50 22h186a6 6 0 016 6v18a6 6 0 01-6 6H50a6 6 0 01-6-6V28a6 6 0 016-6z",fill:"#fff"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zM148 37a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z",fill:"#979797"})),r().createElement("defs",null,r().createElement("linearGradient",{id:"SelectAttributes_svg__paint0_linear_0_19219",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),r().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"SelectAttributes_svg__paint1_linear_0_19219",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:.01}),r().createElement("stop",{offset:1})))),NO_DATA:e=>r().createElement("svg",u({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),r().createElement("defs",null,r().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__b"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:0,offset:"0%"}),r().createElement("stop",{stopColor:"#F4F4F4",offset:"100%"})),r().createElement("linearGradient",{x1:"69.573%",y1:"86.747%",x2:"38.144%",y2:"33.403%",id:"NoData_svg__d"},r().createElement("stop",{stopColor:"#000",stopOpacity:0,offset:"0%"}),r().createElement("stop",{stopColor:"#000",offset:"100%"})),r().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__e"},r().createElement("stop",{stopColor:"#EEFBFF",offset:"0%"}),r().createElement("stop",{stopColor:"#0072CE",offset:"100%"})),r().createElement("filter",{x:"-7.7%",y:"-7.5%",width:"115.3%",height:"115%",filterUnits:"objectBoundingBox",id:"NoData_svg__f"},r().createElement("feOffset",{dx:0,dy:2,in:"SourceAlpha",result:"shadowOffsetOuter1"}),r().createElement("feGaussianBlur",{stdDeviation:2,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),r().createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0",type:"matrix",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),r().createElement("feMerge",null,r().createElement("feMergeNode",{in:"shadowMatrixOuter1"}),r().createElement("feMergeNode",{in:"SourceGraphic"}))),r().createElement("circle",{id:"NoData_svg__a",cx:128,cy:128,r:128})),r().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r().createElement("mask",{id:"NoData_svg__c",fill:"#fff"},r().createElement("use",{xlinkHref:"#NoData_svg__a"})),r().createElement("use",{fillOpacity:.1,fill:"#0072CE",xlinkHref:"#NoData_svg__a"}),r().createElement("path",{fill:"url(#NoData_svg__b)",mask:"url(#NoData_svg__c)",d:"M0 9h256v247H0z"}),r().createElement("g",{mask:"url(#NoData_svg__c)"},r().createElement("g",{transform:"translate(29 37)"},r().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},r().createElement("path",{fillOpacity:.8,opacity:.5,d:"M14.565 8h228.144v176.476H14.565z"}),r().createElement("path",{d:"M0 8.01C0 3.586 3.576 0 7.997 0h223.838a7.997 7.997 0 017.997 8.01v152.401c0 4.424-3.577 8.01-7.997 8.01H7.997A7.997 7.997 0 010 160.411V8.01z"})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 42.105)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),r().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),r().createElement("path",{d:"M32.488.791h64.093a3.509 3.509 0 110 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M31.486 13.824h115.902a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),r().createElement("rect",{fill:"#645F6D",opacity:.5,x:19.986,y:16.04,width:79.944,height:11.028,rx:5.514}),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 80.2)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),r().createElement("rect",{fill:"#E3EBF4",x:0,y:1.003,width:18.987,height:19.048,rx:9.493}),r().createElement("path",{d:"M32.488.791h75.925a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M31.486 13.824h128.893a2.506 2.506 0 110 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M30.483 22.846h103.918a1.504 1.504 0 010 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 118.296)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),r().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),r().createElement("path",{d:"M32.488.791h101.906a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M31.486 13.824h84.924a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})))),r().createElement("g",{mask:"url(#NoData_svg__c)"},r().createElement("path",{d:"M154.445 45.134v154.072H36.625V45.134h.811C35.508 62.52 41.07 80.609 54.12 93.944c22.74 23.235 59.61 23.235 82.352 0 13.05-13.335 18.612-31.424 16.683-48.81h1.29z",fill:"url(#NoData_svg__d)",opacity:.1,transform:"rotate(-30 291.014 34.548)"}),r().createElement("path",{d:"M27.473 93.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"url(#NoData_svg__e)",opacity:.2,transform:"translate(70 86)"}),r().createElement("g",{filter:"url(#NoData_svg__f)",strokeWidth:1,fill:"none",transform:"translate(70 86)"},r().createElement("path",{d:"M59.697 0c32.97 0 59.697 26.746 59.697 59.738 0 15.185-5.662 29.047-14.988 39.587l51.204 51.24a89.336 89.336 0 01-10.097 9.392l-51.38-51.416c-9.73 6.888-21.61 10.936-34.436 10.936C26.727 119.477 0 92.73 0 59.738 0 26.746 26.727 0 59.697 0zm0 17.756c-23.17 0-41.953 18.796-41.953 41.982s18.783 41.982 41.953 41.982 41.953-18.796 41.953-41.982-18.783-41.982-41.953-41.982z",fill:"#B5C8C9"}),r().createElement("path",{d:"M21.508 105.656C8.365 94.698 0 78.196 0 59.738 0 26.746 26.727 0 59.697 0c18.444 0 34.935 8.37 45.885 21.523l-9.794 9.8c-8.408-10.68-21.45-17.537-36.091-17.537-25.361 0-45.92 20.573-45.92 45.952 0 14.652 6.852 27.702 17.525 36.117l-9.794 9.8z",fillOpacity:.4,fill:"#FFF"})),r().createElement("path",{d:"M97.473 179.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"#D9F5FF",opacity:.4,style:{mixBlendMode:"soft-light"}}),r().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.87,fill:"#000",style:{mixBlendMode:"overlay"}}),r().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.38,fill:"#3C74B4"})))),ERROR:e=>r().createElement("svg",m({width:88,height:88,viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r().createElement("mask",{id:"Error_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:88,height:88},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),r().createElement("g",{mask:"url(#Error_svg__a)"},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:.3}),r().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),r().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),r().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),r().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),r().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),r().createElement("path",{opacity:.5,d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.3,d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.8,d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),r().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.2,d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),r().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),r().createElement("g",{filter:"url(#Error_svg__filter0_d)"},r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),r().createElement("path",{opacity:.15,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),r().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),r().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),r().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),r().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#Error_svg__paint0_linear)"}),r().createElement("g",{filter:"url(#Error_svg__filter1_d)"},r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),r().createElement("g",{filter:"url(#Error_svg__filter2_d)"},r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),r().createElement("defs",null,r().createElement("filter",{id:"Error_svg__filter0_d",x:36.219,y:37.875,width:42.375,height:42.375,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:2}),r().createElement("feGaussianBlur",{stdDeviation:2}),r().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"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"Error_svg__filter1_d",x:51.688,y:62.625,width:11.438,height:11.438,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:2}),r().createElement("feGaussianBlur",{stdDeviation:2}),r().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"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"Error_svg__filter2_d",x:51.688,y:44.063,width:11.438,height:23.813,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:2}),r().createElement("feGaussianBlur",{stdDeviation:2}),r().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"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("linearGradient",{id:"Error_svg__paint0_linear",x1:68.438,y1:71.571,x2:60.119,y2:58.801,gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:0}),r().createElement("stop",{offset:1}))))},g=e=>{let{variant:t=h.full,LogoRenderer:a=y.SEARCH_RESULTS,text:l,secondaryText:n,buttonTitle:d,onClick:p=o.identity,access:u}=e;const m=f(),g=u&&d;return r().createElement("div",{className:i()(m.root,m[`root_${t}`])},r().createElement(a,{className:m[`${t}`]}),r().createElement("div",{className:m.textBox},r().createElement(c.Z,{variant:"h5",classes:{h5:m.text}},l),n&&r().createElement(c.Z,{variant:"subtitle1",classes:{subtitle1:m.secondaryText}},n)),g&&r().createElement(s.Z,{className:m.button,variant:"contained",color:"primary",onClick:p},d))}},7882:(e,t,a)=>{a.d(t,{Z:()=>n});var l=a(24328),r=a.n(l);class n extends r().Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){this.setState({error:e}),console.error(e)}render(){const{children:e,error:t}=this.props;return this.state.error?t:e}}},58003:(e,t,a)=>{a.d(t,{Z:()=>o});var l=a(24328),r=a.n(l),n=a(88267);const i=()=>r().createElement("div",{style:{display:"none"}}),o=e=>{let{widthToHide:t,children:a}=e;return r().createElement(n.Z,{handleWidth:!0,render:e=>{let{width:l}=e;return l>t?r().createElement(r().Fragment,null,a):r().createElement(i,null)}})}},14593:(e,t,a)=>{a.d(t,{Z:()=>N});var l=a(24328),r=a.n(l),n=a(66244),i=a.n(n),o=a(88267),c=a(50914),s=a(71153),d=a.n(s);function p(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){u(e,t,a[t])}))}return e}function u(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function m(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}const f=e=>{let{x:t,y:a,width:l,height:r,id:n,minWidth:i,minHeight:o,maxWidth:c,maxHeight:s,isStatic:d}=e;return{x:t,y:a,w:l,h:r,minW:i,minH:o,maxW:c,maxH:s,i:n,static:d}},h=e=>{let{x:t,y:a,w:l,h:r,maxW:n,minW:i,minH:o,maxH:c,i:s}=e;return{x:t,y:a,width:l,height:r,minWidth:i,minHeight:o,maxWidth:n,maxHeight:c,id:s,isStatic:m(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},y=e=>(e||[]).map(h),g=(0,c.curry)(((e,t)=>(e||[]).find((0,c.propEq)("id",t)))),E=(0,c.curry)(((e,t,a)=>(0,c.mergeAll)([a,(0,c.pick)(e,t)]))),v=(0,c.curry)(((e,t,a)=>(a||[]).map((a=>(0,c.pipe)((0,c.prop)("id"),g(t),(0,c.defaultTo)({}),E(e,c.__,a))(a))))),x=(0,c.curry)(((e,t)=>t.map((a=>{const l=t.filter((e=>e.y===a.y)).map((t=>e[t.id]||!t.autosizing&&t.minHeight||0)),r=Math.max(...l);if(a.height!==r&&r){const e=a.autosizing?{minHeight:r,maxHeight:r}:{};return p({},a,e,{height:r})}return a})))),b=(0,c.curry)(((e,t)=>t.map((t=>{const a=e[t.id];return a&&t.autosizing?p({},t,{minHeight:a,maxHeight:a,height:a}):t}))));var O=a(79573),w=a(72342),S=a(98952);const T=(0,w.makeStyles)((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"},"&.customView .react-resizable-handle":{width:"10px",height:"10px"},"&.cssTransforms":{transitionProperty:"transform"},"&.react-draggable-dragging":{transition:"none",zIndex:8,willChange:"transform","& .react-resizable-handle":{backgroundImage:"none"}},"& .react-resizable-handle":{position:"absolute",width:"14px",height:"14px",bottom:0,right:0,zIndex:20,backgroundImage:`url('${(0,S.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"}},isResizing:{zIndex:9,willChange:"width, height",pointerEvents:"none"}})));function R(){return R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},R.apply(this,arguments)}const _={cols:4,rowHeight:30,margin:[15,15]},A=e=>{let{views:t,layout:a,layoutOptions:n=_,onLayoutChanged:s=O.ZT,draggableHandle:p,LayoutItem:u,onRemove:m,onDrop:E,droppingItem:w,isDroppable:S,isStatic:A,classes:N,onResize:D=O.ZT}=e;const I=(0,l.useRef)(),C=(0,l.useRef)({}),M=T(),[k,L]=(0,l.useState)(null),[P,F]=(0,l.useState)(null),[B,j]=(0,l.useState)(0),{cols:z,rowHeight:U,margin:V}=n,H=(0,l.useMemo)((()=>(e=>(e||[]).map(f))(a)),[a]),Y=(0,c.pipe)(y,v(["autosizing"],a),(0,c.ifElse)((0,c.always)(A),x(C.current),b(C.current)),s),W=(0,l.useCallback)((e=>F((t=>t?null:e))),[]),G=null!==P;return r().createElement(r().Fragment,null,r().createElement(o.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>j(e)}),!!B&&r().createElement(i(),{innerRef:I,layout:H,cols:z,draggableHandle:p,autoSize:!0,rowHeight:U,width:B,margin:V,onLayoutChange:A?void 0:Y,isResizable:!A&&!G,isDraggable:!A&&!G,className:d()(null==N?void 0:N.root,M.gridLayout,{[M.gridFullscreen]:G}),onDrop:(e,t,a)=>{E&&E(y(e),h(t),a)},droppingItem:w,isDroppable:!A&&S,onResizeStart:(e,t)=>L(t.i),onResizeStop:()=>L(null),onResize:D,"data-reltio-id":"reltio-grid-layout"},H.map((e=>{const l=P===e.i,i=k===e.i,c=(g(a,e.i)||{}).autosizing?{AutosizeComponent:(s=e.i,r().createElement(o.Z,{handleHeight:!0,onResize:(e,t)=>{if(t){const e=((e,t)=>{const{margin:a,rowHeight:l}=t;return Math.ceil((e+a[1])/(l+a[1]))})(t,n);e!==C.current[s]&&(C.current[s]=e,Y(H))}}}))}:{};var s;return r().createElement(u,R({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:W,onRemove:m,className:d()(null==N?void 0:N.item,{static:A,fullscreen:l,[M.isResizing]:i}),isFullscreen:l},c))}))))};A.displayName="ReltioGridLayout";const N=(0,l.memo)(A)},29742:(e,t,a)=>{a.d(t,{Z:()=>g});var l=a(24328),r=a.n(l),n=a(13264),i=a(2507),o=a.n(i),c=a(39475),s=a(98538),d=a(50914),p=a(80852),u=a(95341),m=a(79312);const f=(0,a(72342).makeStyles)((e=>({menuItem:{height:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px"},checkbox:{padding:0,marginRight:"15px"}}))),h=(0,l.forwardRef)(((e,t)=>{let{item:a,onMenuClose:l=d.identity}=e;const n=f(),{text:i,onClick:o,id:c,selected:s}=a;return r().createElement(u.Z,{classes:{root:n.menuItem},onClick:e=>{l(e),o(e)},ref:t,"data-modal":!0,"data-reltio-id":`reltio-settings-menu-item${c}`},r().createElement(p.Z,{checked:s,className:n.checkbox,color:"primary"}),r().createElement(m.Z,{classes:{root:n.menuText}},i))}));h.displayName="SettingsMenuItemRenderer";const y=h,g=e=>{let{items:t,menuId:a}=e;return r().createElement(s.Z,{buttonComponent:c.k,buttonProps:{icon:n.Z,tooltipTitle:o().text("Settings"),size:"L"},menuId:a,menuItems:t,MenuItemRenderer:y})}},21210:(e,t,a)=>{a.d(t,{Z:()=>c});var l=a(24328),r=a.n(l),n=a(98952),i=a(42639),o=a(14596);const c=e=>{let{sourceType:t,className:a,classes:l}=e;const c=(0,o.AH)(),{uri:s,icon:d}=(0,n.PWK)(c,t)||{},p=s?(0,n.tH7)(c,s)[0]:"",u=d?(0,n.vPL)("https://s3.amazonaws.com/reltio.images/api",d):null;return r().createElement(i.Z,{className:a,avatarText:p,icon:u,variant:"square",rootClasses:l})}},55310:(e,t,a)=>{a.d(t,{Z:()=>c});var l=a(13980),r=a.n(l),n=a(24328),i=a.n(n);const o=e=>{let{height:t,margin:a}=e;return i().createElement("div",{style:{width:"1px",height:`${t}px`,borderLeft:"1px solid rgba(0,0,0,0.38)",margin:`0 ${a}px`,flexShrink:"0"}})};o.propTypes={height:r().number,margin:r().number};const c=o},39878:(e,t,a)=>{a.d(t,{n:()=>s,Z:()=>d});var l=a(24328),r=a.n(l),n=a(98952),i=a(50914);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}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=(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]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){c(e,t,a[t])}))}return e}({},e,{percent:t[a]})))},d=e=>{const t=t=>{let{data:a}=t,n=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(t,["data"]);const i=(0,l.useMemo)((()=>a&&s(a)),[a]);return r().createElement(e,o({data:i},n))};return t.displayName="WithPercents",t}},59383:(e,t,a)=>{a.d(t,{d:()=>r});const l=(0,a(72342).makeStyles)({clickable:{cursor:"pointer"}}),r=e=>{const t=l();return e?t.clickable:void 0}},17569:(e,t,a)=>{a.d(t,{o:()=>i});var l=a(24328),r=a(50914);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 i=e=>{let{actions:t,dispatch:a}=e;return(0,l.useMemo)((()=>Object.entries(t).reduce(((e,t)=>{let[l,i]=t;return function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){n(e,t,a[t])}))}return e}({},e,{[l]:(0,r.pipe)(i,a)})}),{})),[a,t])}},11326:(e,t,a)=>{a.d(t,{a:()=>r});var l=a(24328);const r=e=>{const[t,a]=(0,l.useState)(!1),[r,n]=(0,l.useState)({});return(0,l.useEffect)((()=>{e().then((e=>{n(e||{})})).then((e=>a(!0))).catch((e=>a(!0)))}),[]),{isLoaded:t,savedState:r}}},39034:(e,t,a)=>{a.d(t,{o:()=>l});let l=function(e){return e.INIT="init",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error",e}({})},43129:(e,t,a)=>{a.d(t,{Z:()=>o});var l=a(24328),r=a.n(l),n=a(30750);const i=(0,a(72342).makeStyles)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),o=()=>{const e=i();return r().createElement(n.Z,{color:"primary",className:e.loader,"data-reltio-id":"dashboard-item-loader"})}},60355:(e,t,a)=>{a.d(t,{Z:()=>u});var l=a(24328),r=a.n(l),n=a(18960),i=a(95341),o=a(83993),c=a(82056),s=a(87037),d=a(50985);const p=(0,a(72342).makeStyles)((()=>({menuItemTitle:{fontSize:"13px",lineHeight:"15px"},openIcon:{padding:"4px",borderRadius:"2px",marginRight:"-10px"}}))),u=e=>{let{items:t}=e;const[a,u]=(0,l.useState)(null),m=Boolean(a),f=p(),h=()=>u(null),y=e=>()=>{h(),e()};return r().createElement(r().Fragment,null,r().createElement(s.Z,{className:f.openIcon,"aria-controls":"menu","aria-haspopup":"true",onClick:e=>u(e.currentTarget),size:"large"},r().createElement(d.Z,null)),r().createElement(n.Z,{id:"facet-menu",anchorEl:a,open:m,onClose:h,elevation:2,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},t.filter((e=>e.active)).map((e=>{let{id:t,icon:a,title:l,action:n,disabled:s=!1}=e;return r().createElement(i.Z,{key:t,onClick:y(n),disabled:s},r().createElement(o.Z,null,a),r().createElement(c.Z,{classes:{primary:f.menuItemTitle}},l))}))))}},65298:(e,t,a)=>{a.d(t,{Z:()=>c});var l=a(24328),r=a.n(l),n=a(82565),i=a(52388);const o=(0,a(72342).makeStyles)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden",boxShadow:"none"}}))),c=e=>{let{id:t,children:a}=e;const l=o();return r().createElement(i.H.Provider,{value:t},r().createElement(n.Z,{className:l.view,"data-reltio-id":`layout-item-${t}`},a))}},52388:(e,t,a)=>{a.d(t,{H:()=>r});var l=a(24328);const r=a.n(l)().createContext(null);r.displayName="DashboardViewIdContext"},45039:(e,t,a)=>{a.r(t),a.d(t,{ChartsDataProvider:()=>de,DQDashboardStateProvider:()=>Q,DVFContext:()=>ce,PermissionsProvider:()=>ee,ReloadFacetProvider:()=>v,ViewsFactory:()=>zo,default:()=>ws,useChartsDataContext:()=>pe,useChartsDataRequest:()=>gt,useDQDashboardState:()=>K,useDQDashboardStateActions:()=>X,useDVF:()=>ue,useDvfConfigLink:()=>me,useReloadFacet:()=>x});var l=a(24328),r=a.n(l),n=a(40476),i=a(73696),o=a(72342),c=a(54426),s=a(40855),d=a(41633),p=a(9366),u=a(98952),m=a(50914),f=a(37164),h=a(39034);const y=(0,l.createContext)(null),g=(0,l.createContext)(null),E=(0,l.createContext)(null),v=e=>{let{children:t}=e;const[a,n]=(0,l.useState)({}),[i,o]=(0,l.useState)({}),c=(0,l.useCallback)((e=>o(e?(0,m.assoc)(e,{}):{})),[]),s=(0,l.useCallback)((e=>{n((t=>{const a=(0,m.propOr)(0,e,t)+1;return(0,m.assoc)(e,a,t)}))}),[n]);return r().createElement(g.Provider,{value:s},r().createElement(y.Provider,{value:a},r().createElement(E.Provider,{value:{updateTime:e=>{let{dataLevel:t,actionId:a}=e;const l=Date.now();o((0,m.assocPath)([t,a],l))},updateTimes:i,resetUpdateTimes:c}},t)))},x=e=>{let{state:t,reload:a,dataLevel:r}=e;const n=(0,l.useContext)(y);if(void 0===n)throw new Error("useReloadFacet must be used within a ReloadFacetProvider");const i=n[r];(0,l.useEffect)((()=>{t!==h.o.LOADED&&t!==h.o.ERROR||a()}),[i])},b=e=>{let{action:t,dataLevel:a}=e;const{updateTime:r}=(0,l.useContext)(E),n=(0,l.useMemo)((()=>(0,f.x0)()),[]);return(0,l.useCallback)((()=>{r({actionId:n,dataLevel:a}),t()}),[t,a])},O=e=>{const{updateTimes:t,resetUpdateTimes:a}=(0,l.useContext)(E);return{updateTime:Math.min(...Object.values(t[e]||{})),resetUpdateTimes:a}};var w=a(52730),S=a(19701),T=a(45738);function R(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const _=(0,m.omit)(["LAST_DAY"],function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){R(e,t,a[t])}))}return e}({},u.bZE));var A=a(95038),N=a.n(A);const D=e=>{const t=N()();return e===u.bZE.LAST_WEEK?[N()(t).subtract(6,"days").valueOf(),t.valueOf()]:(0,u.VQ1)(e)},I=(0,m.path)([0,"uri"]),C=Object.values(_),M=(0,m.pipe)(D,(0,m.defaultTo)([]),(0,m.map)((e=>e&&new Date(e))));var k=a(79573),L=a(17569);function P(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){F(e,t,a[t])}))}return e}function F(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const B=(0,l.createContext)(null),j=(0,l.createContext)(null),z="SET_SELECTED_ENTITY_TYPE",U="SET_SELECTED_ATTRIBUTE_TYPE",V="CHANGE_PERIOD",H="CHANGE_ZOOM",Y="CHANGE_OV_STATE",W="ADD_EXPORT_LOADING_ID",G="DELETE_EXPORT_LOADING_ID",Z={setEntityType:(0,k.zD)(z),setDetailedAttributeType:(0,k.zD)(U),changeZoom:(0,k.zD)(H),changePeriod:(0,k.zD)(V),changeSearchByOv:(0,k.zD)(Y),addExportLoadingId:(0,k.zD)(W),deleteExportLoadingId:(0,k.zD)(G)},q=e=>new Date(e[0])>new Date(e[1])?[e[1],e[0]]:e,$=(e,t)=>{switch(t.type){case U:return P({},e,{detailedAttributeType:t.payload});case z:return P({},e,{entityType:t.payload});case V:return P({},e,{period:t.payload,dateRange:t.payload},t.payload?{zoom:null}:{});case H:return P({},e,t.payload?{zoom:q(t.payload),dateRange:[new Date(q(t.payload)[0]),new Date(q(t.payload)[1])]}:{});case Y:return P({},e,{searchByOv:t.payload});case W:return P({},e,{exportLoadingIds:P({},e.exportLoadingIds,{[t.payload]:!0})});case G:return P({},e,{exportLoadingIds:(0,m.dissoc)(t.payload,e.exportLoadingIds)})}},Q=e=>{let{children:t}=e;const[a,n]=(0,l.useReducer)($,{detailedAttributeType:null}),i=(0,L.o)({actions:Z,dispatch:n});return r().createElement(B.Provider,{value:a},r().createElement(j.Provider,{value:i},t))},K=()=>{const e=(0,l.useContext)(B);if(void 0===e)throw new Error("useViewState must be used within a DQDashboardStateProvider");return e},X=()=>{const e=(0,l.useContext)(j);if(void 0===e)throw new Error("useDQDashboardStateActions must be used within a DQDashboardStateProvider");return e},J=r().createContext(null),ee=e=>{var t,a;let{children:n,config:i}=e;const{permissions:o,requestState:c}=(()=>{const[e,t]=(0,l.useState)(null),[a,r]=(0,l.useState)(h.o.INIT),n=(0,S._)(),i=(0,w.useSelector)(T.ZP.selectors.getApiPath),o=(0,w.useSelector)(T.ZP.selectors.getTenant),c=e=>{t(e),r(h.o.LOADED)},s=e=>{console.warn(e),r(h.o.ERROR),t(null)},d=(0,l.useCallback)((()=>{r(h.o.LOADING),n((0,u.LCU)({tenant:o,apiPath:i})).then(c).catch(s)}),[i,o]);return(0,l.useEffect)((()=>{d()}),[d]),(0,l.useMemo)((()=>({permissions:e,requestState:a,reload:d})),[e,a])})(),s=null===(t=K())||void 0===t||null===(a=t.entityType)||void 0===a?void 0:a.uri,d=(0,w.useSelector)(T.ZP.selectors.getUserRoles),p=(0,w.useSelector)(T.ZP.selectors.getCanUserGetDQStatistic),f=(0,l.useMemo)((()=>c===h.o.LOADED&&(e=>{let{roles:t,tenantPermissions:a,entityTypeUri:l}=e;const r=e=>{let{filter:t,access:a}=e;return a&&(0,m.includes)("READ",a)&&!t},n=(e,t)=>(e||[]).filter((0,m.pipe)((0,m.prop)("role"),(0,m.includes)(m.__,t))),i=e=>{var t;return null===(t=a.find((0,m.propEq)("uri",e)))||void 0===t?void 0:t.permissions},o=n(i("configuration"),t),c=n(i(l),t);return(0,m.isEmpty)(o)?!!(0,m.isEmpty)(c)||c.some(r):o.some(r)})({roles:d,tenantPermissions:o,entityTypeUri:s})),[o,c,d,s]),y=!(0,m.isEmpty)(o),{showTimeSeries:g=!0,showErrorBands:E=!1,showExportButton:v=!0}=i;return r().createElement(J.Provider,{value:{isTimeSeriesAvailable:g&&f,hasRestrictions:y,canGetDQStatistic:p,permissionsLoadingState:c,showErrorBands:E,showExportButton:v}},n)},te=()=>(0,l.useContext)(J);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 le=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){ae(e,t,a[t])}))}return e}({},u.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}});var re=a(2507),ne=a.n(re),ie=a(11326),oe=a(35828);const ce=r().createContext(null);ce.displayName="DVFContext";const se=r().createContext(null),de=e=>{let{children:t}=e;const[a,n]=(0,l.useState)({});return r().createElement(se.Provider,{value:{chartsData:a,changeChartsData:e=>n(e)}},t)},pe=()=>(0,l.useContext)(se),ue=e=>{const[t,a]=(0,l.useState)([]),[r,n]=(0,l.useState)(h.o.INIT),[i,o]=(0,l.useState)(),c=(0,w.useSelector)(T.ZP.selectors.getTenant),s=(0,w.useSelector)(T.ZP.selectors.getDVFPath),d=(0,S._)(),p=(0,w.useSelector)(T.ZP.selectors.getEnvironment),m=(0,w.useSelector)(T.ZP.selectors.getCanUserReadDVF),f=e=>{console.warn(e),n(h.o.ERROR),a([]),o(null==e?void 0:e.errorCode)},y=e=>{a((null==e?void 0:e.functions)||[]),o(void 0),n(h.o.LOADED)},g=(0,l.useCallback)((()=>{if(m)return e&&p?(o(void 0),n(h.o.LOADING),d((0,u.HaQ)({dvfPath:s,tenant:c,entityTypeUri:e,env:p})).then(y).catch(f)):void 0;f({errorCode:u.Xt7.ACCESS_DENIED})}),[s,c,e,p]);return(0,l.useEffect)((()=>{g()}),[g]),(0,l.useMemo)((()=>({data:t,state:r,reload:g,errorCode:i})),[t,r,g,i])},me=e=>{const[t,a]=(0,l.useState)(null),[r,n]=(0,l.useState)(null),i=(0,S._)(),o=(0,w.useSelector)(T.ZP.selectors.getServicesPath),c=(0,w.useSelector)(T.ZP.selectors.getEnvironment),s=(0,w.useSelector)(T.ZP.selectors.getTenant);return(0,l.useEffect)((()=>{i((0,u.JUW)({servicesPath:o,tenant:s,environment:c})).then((e=>{var t;const l=null==e||null===(t=e.data)||void 0===t?void 0:t.apps.find((0,m.propEq)("name","Console")).uri;a("string"==typeof l?l:null)})).catch((()=>a(null)))}),[c,s,o]),(0,l.useEffect)((()=>{const a=t&&null!=e&&e.uri?(0,m.pipe)((0,m.split)("?"),(0,m.insert)(1,`datamodeler/entityDetails/${(0,u.nIW)(e.uri)}/validation?`),(0,m.join)(""))(t):null;n(a)}),[e,t]),r},fe=e=>{const[t,a]=(0,l.useState)(null),[r,n]=(0,l.useState)(h.o.INIT),i=(0,S._)(),o=e=>{let{type:t}=e;a(t),n(h.o.LOADED)},c=e=>{console.warn(e),n(h.o.ERROR),a(null)},s=(0,l.useCallback)((()=>{n(h.o.LOADING);const t=(0,u.Uqd)()([{fieldName:"type",filter:u.j5E.EQUALS,values:(0,m.pluck)("uri",e)}]);i((0,u.FK9)({query:(0,u.ECL)({activeness:"active",filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]})).then(o).catch(c)}),[e]);return(0,l.useEffect)((()=>{s()}),[s]),(0,l.useMemo)((()=>({getEntityCount:e=>Number((null==t?void 0:t[(0,u.nIW)(e)])||null),state:r})),[t,r])};var he=a(39878);let ye=function(e){return e.STRING="string",e.FLOAT="float",e.INTEGER="integer",e.BOOLEAN="boolean",e.DATE="date",e.SSN="SSN",e.UNKNOWN="unknown",e}({});function ge(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var Ee=function(e){return e.UNSUPPORTED="unsupported",e.SUMMARY="summary",e.MONTH_DISTRIBUTION="monthDistribution",e.DAY_OF_WEEK_DISTRIBUTION="dayOfWeekDistribution",e.DAY_OF_MONTH_DISTRIBUTION="dayOfMonthDistribution",e.RDM_TRANSCODE="rdmTranscode",e}(Ee||{});const ve=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){ge(e,t,a[t])}))}return e}({},u.N0y,Ee);let xe=function(e){return e.RDM_LOOKUP_EXIST="rdmLookupExist",e.RDM_LOOKUP_NOT_EXIST="rdmLookupNotExist",e}({});const be={[u.yn8.ATTRIBUTE_TYPE]:[{id:"FillRateView",type:ve.FILL_RATE,title:ne().text("Fill rate")},{id:"UniquenessAnalysisView",type:ve.UNIQUENESS,title:ne().text("Uniqueness analysis")},{id:"SummaryView",type:ve.SUMMARY,title:ne().text("Summary")},{id:"ValidationView",type:ve.DATA_VALIDATION,title:ne().text("Profiles with invalid data")},{id:"FrequencyAnalysis",type:ve.FREQUENCY,title:ne().text("Frequency analysis")},{id:"LengthStatistics",type:ve.LENGTH_STATISTIC,title:ne().text("Length statistics")},{id:"PatternAnalysis",type:ve.PATTERN,title:ne().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:ve.CROSSWALK_ANALYSIS,title:ne().text("Source system analysis")},{id:"ValueDistribution",type:ve.VALUE_DISTRIBUTION,title:ne().text("Value distribution")},{id:"UnsupportedDataType",type:ve.UNSUPPORTED,title:ne().text("Unsupported Data Type")},{id:"FillRateViewTimeSeries",type:ve.FILL_RATE,title:ne().text("Fill rate over time"),options:{timeSeries:!0}},{id:"UniquenessAnalysisViewTimeSeries",type:ve.UNIQUENESS,title:ne().text("Uniqueness analysis over time"),options:{timeSeries:!0}},{id:"ValidationViewTimeSeries",type:ve.DATA_VALIDATION,title:ne().text("Profiles with invalid data over time"),options:{timeSeries:!0}}],[u.yn8.ENTITY_TYPE]:[{id:"SummaryView",type:ve.SUMMARY,title:ne().text("Summary")},{id:"ValidationView",type:ve.DATA_VALIDATION,title:ne().text("Profiles with invalid data")},{id:"ConsolidationRate",type:ve.CONSOLIDATION_RATE,title:ne().text("Consolidation rate")},{id:"RDMTranscode",type:ve.RDM_TRANSCODE,title:ne().text("RDM value mapping status")}]},Oe={[u.yn8.ATTRIBUTE_TYPE]:{today:{default:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:3,height:19,id:"FrequencyAnalysis"},{x:3,y:19,width:3,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:6,height:19,id:"LengthStatistics"}],[ye.SSN]:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:3,height:19,id:"FrequencyAnalysis"},{x:3,y:19,width:3,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:3,height:19,id:"PatternAnalysis"}],[ye.BOOLEAN]:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"FrequencyAnalysis"},{x:0,y:19,width:3,height:19,id:"CrosswalkAnalysis"}],[ye.DATE]:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:3,height:19,id:"FrequencyAnalysis"},{x:3,y:19,width:3,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:6,height:19,id:"ValueDistribution"}],[ye.INTEGER]:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:3,height:19,id:"FrequencyAnalysis"},{x:3,y:19,width:3,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:6,height:19,id:"ValueDistribution"}],[ye.FLOAT]:[{x:0,y:0,width:3,height:11,id:"SummaryView"},{x:3,y:0,width:3,height:11,id:"ValidationView"},{x:0,y:11,width:3,height:8,id:"FillRateView"},{x:3,y:11,width:3,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:3,height:19,id:"FrequencyAnalysis"},{x:3,y:19,width:3,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:6,height:19,id:"ValueDistribution"}]},timeRange:{default:[{x:0,y:0,width:6,height:6,id:"SummaryView"},{x:0,y:6,width:3,height:12,id:"ValidationView"},{x:3,y:6,width:3,height:12,id:"ValidationViewTimeSeries"},{x:0,y:18,width:3,height:12,id:"FillRateView"},{x:3,y:18,width:3,height:12,id:"FillRateViewTimeSeries"},{x:0,y:30,width:3,height:12,id:"UniquenessAnalysisView"},{x:3,y:30,width:3,height:12,id:"UniquenessAnalysisViewTimeSeries"},{x:0,y:42,width:3,height:14,id:"FrequencyAnalysis"},{x:3,y:42,width:3,height:14,id:"CrosswalkAnalysis"},{x:0,y:56,width:6,height:19,id:"LengthStatistics"}],SSN:[{x:0,y:0,width:6,height:6,id:"SummaryView"},{x:0,y:6,width:3,height:12,id:"ValidationView"},{x:3,y:6,width:3,height:12,id:"ValidationViewTimeSeries"},{x:0,y:18,width:3,height:12,id:"FillRateView"},{x:3,y:18,width:3,height:12,id:"FillRateViewTimeSeries"},{x:0,y:30,width:3,height:12,id:"UniquenessAnalysisView"},{x:3,y:30,width:3,height:12,id:"UniquenessAnalysisViewTimeSeries"},{x:0,y:42,width:3,height:14,id:"FrequencyAnalysis"},{x:3,y:42,width:3,height:14,id:"CrosswalkAnalysis"},{x:0,y:56,width:3,height:14,id:"PatternAnalysis"}],boolean:[{x:0,y:0,width:6,height:6,id:"SummaryView"},{x:0,y:6,width:3,height:12,id:"ValidationView"},{x:3,y:6,width:3,height:12,id:"ValidationViewTimeSeries"},{x:0,y:18,width:3,height:12,id:"FillRateView"},{x:3,y:18,width:3,height:12,id:"FillRateViewTimeSeries"},{x:0,y:30,width:3,height:12,id:"FrequencyAnalysis"},{x:3,y:30,width:3,height:12,id:"CrosswalkAnalysis"}],date:[{x:0,y:0,width:6,height:6,id:"SummaryView"},{x:0,y:6,width:3,height:12,id:"ValidationView"},{x:3,y:6,width:3,height:12,id:"ValidationViewTimeSeries"},{x:0,y:18,width:3,height:12,id:"FillRateView"},{x:3,y:18,width:3,height:12,id:"FillRateViewTimeSeries"},{x:0,y:30,width:3,height:12,id:"UniquenessAnalysisView"},{x:3,y:30,width:3,height:12,id:"UniquenessAnalysisViewTimeSeries"},{x:0,y:42,width:3,height:14,id:"FrequencyAnalysis"},{x:3,y:42,width:3,height:14,id:"CrosswalkAnalysis"},{x:0,y:56,width:6,height:19,id:"ValueDistribution"}],integer:[{x:0,y:0,width:6,height:6,id:"SummaryView"},{x:0,y:6,width:3,height:12,id:"ValidationView"},{x:3,y:6,width:3,height:12,id:"ValidationViewTimeSeries"},{x:0,y:18,width:3,height:12,id:"FillRateView"},{x:3,y:18,width:3,height:12,id:"FillRateViewTimeSeries"},{x:0,y:30,width:3,height:12,id:"UniquenessAnalysisView"},{x:3,y:30,width:3,height:12,id:"UniquenessAnalysisViewTimeSeries"},{x:0,y:42,width:3,height:14,id:"FrequencyAnalysis"},{x:3,y:42,width:3,height:14,id:"CrosswalkAnalysis"},{x:0,y:56,width:6,height:19,id:"ValueDistribution"}],float:[{x:0,y:0,width:6,height:6,id:"SummaryView"},{x:0,y:6,width:3,height:12,id:"ValidationView"},{x:3,y:6,width:3,height:12,id:"ValidationViewTimeSeries"},{x:0,y:18,width:3,height:12,id:"FillRateView"},{x:3,y:18,width:3,height:12,id:"FillRateViewTimeSeries"},{x:0,y:30,width:3,height:12,id:"UniquenessAnalysisView"},{x:3,y:30,width:3,height:12,id:"UniquenessAnalysisViewTimeSeries"},{x:0,y:42,width:3,height:14,id:"FrequencyAnalysis"},{x:3,y:42,width:3,height:14,id:"CrosswalkAnalysis"},{x:0,y:56,width:6,height:19,id:"ValueDistribution"}]}},[u.yn8.ENTITY_TYPE]:{[xe.RDM_LOOKUP_EXIST]:[{x:0,y:0,width:4,height:7,id:"SummaryView"},{x:4,y:0,width:2,height:7,id:"RDMTranscode"},{x:0,y:7,width:6,height:18,id:"ConsolidationRate"},{x:0,y:25,width:6,height:12,id:"ValidationView"}],[xe.RDM_LOOKUP_NOT_EXIST]:[{x:0,y:0,width:6,height:7,id:"SummaryView"},{x:0,y:7,width:6,height:18,id:"ConsolidationRate"},{x:0,y:25,width:6,height:12,id:"ValidationView"}]}},we=(e,t,a)=>({attributes:(t||[]).map(((t,l)=>{let{filter:r,fieldName:n,values:i=[],uri:o}=t;return{data:{uri:o||(null==a?void 0:a.uri),entityTypeUri:e,fieldName:n},filter:r,id:`attribute_${l}`,operator:u.tJI.and,values:i}})),entityTypes:[e],id:"group",operator:u.tJI.or});function Se(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Te(e,t,a[t])}))}return e}function Te(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,m.map)((e=>Se({},e,{localizedValue:ne().number(e.value)}))),_e=e=>(0,m.isNil)(e)?"":`${e}%`,Ae=e=>(0,m.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),Ne=(0,m.curry)(((e,t,a)=>({advanced:[we(t,a.map((0,m.when)((()=>(0,u.Lt4)(null==e?void 0:e.type)),(0,m.evolve)({values:(0,m.map)((0,u.mOr)(u.ZBU))}))),e)],version:"2.0"}))),De=e=>t=>{let{detailedAttributeType:a,entityTypeUri:l}=t;return(0,m.pipe)(e({fieldName:null==a?void 0:a.fieldName,entityTypeUri:l}),Ne(a,l))},Ie=e=>{switch(e){case u.oS0.TYPE_BLOB:case u.oS0.TYPE_BLOG_URL:case u.oS0.TYPE_CIK_ID:case u.oS0.TYPE_ENTITY_ID:case u.oS0.TYPE_IMAGE_URL:case u.oS0.TYPE_STRING:case u.oS0.TYPE_TEXT:case u.oS0.TYPE_URL:return ye.STRING;case u.oS0.TYPE_COUNT:case u.oS0.TYPE_DOLLAR:case u.oS0.TYPE_INT:case u.oS0.TYPE_LONG:return ye.INTEGER;case u.oS0.TYPE_FLOAT:case u.oS0.TYPE_DOUBLE:case u.oS0.TYPE_NUMBER:return ye.FLOAT;case u.oS0.TYPE_BOOLEAN:case u.oS0.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return ye.BOOLEAN;case u.oS0.TYPE_ACTIVENESS_DATE:case u.oS0.TYPE_DATE:case u.oS0.TYPE_LOCAL_DATE:case u.oS0.TYPE_TIMESTAMP:return ye.DATE;case u.oS0.TYPE_SSN:return ye.SSN;default:return ye.UNKNOWN}},Ce=e=>{let{views:t,supportedViews:a,layout:l}=e;return l.reduce(((e,l)=>{const r=(0,m.prop)("type",t.find((0,m.propEq)("id",l.id))),n=t.findIndex((0,m.propEq)("id",l.id));return-1!==n?a.includes(r)?e.concat(t[n]):e.concat((0,m.assoc)("type",ve.UNSUPPORTED,t[n])):e.concat({id:l.id,type:ve.UNSUPPORTED,title:ne().text("Unsupported")})}),[])},Me=(0,m.pipe)((0,m.defaultTo)([]),(0,m.pluck)("type"),(0,m.filter)((e=>Object.values(u.N0y).includes(e))),m.uniq),ke=e=>{let{percent:t,value:a}=e;return Se({width:`${t}%`},a>0&&{minWidth:"3px"})},Le=((0,m.pipe)((0,m.pluck)("percent"),(e=>Math.max(...e))),(0,m.curry)(((e,t)=>t.map((t=>(0,m.assoc)("label",(0,u.tH7)(e,t.group)||t.label,t)))))),Pe=e=>{let{entityTypeUri:t}=e;return()=>Ne(void 0,t,[])},Fe=e=>+(100*Number(e)).toFixed(1),Be=(0,m.curry)(((e,t)=>t.map((t=>Se({},t,{[e]:"number"==typeof t[e]?Fe(t[e]):null}))))),je=e=>(0,m.all)((0,m.equals)(h.o.LOADED),e)?h.o.LOADED:(0,m.any)((0,m.equals)(h.o.ERROR),e)?h.o.ERROR:(0,m.any)((0,m.equals)(h.o.LOADING),e)?h.o.LOADING:h.o.INIT,ze="No data available",Ue="There are 0 profiles";function Ve(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){He(e,t,a[t])}))}return e}function He(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Ye=e=>e<10?`0${e}`:`${e}`,We=e=>t=>{const a=(e=>(0,m.pipe)((0,m.propOr)([],"statisticData"),(0,m.defaultTo)([]),(0,m.map)((t=>{let{time:a,values:l}=t;return Ve({group:null==a?void 0:a._max_date,label:ne().date(null==a?void 0:a._max_date,"MMM D")},e(l))})),(0,m.sortBy)((0,m.prop)("group"))))(e)(t),l=(e=>(0,m.pipe)((0,m.propOr)([],"anomalyData"),(0,m.map)((t=>{let{time:a,values:l}=t;return{group:null==a?void 0:a._max_date,label:ne().date(null==a?void 0:a._max_date,"MMM D"),anomaly:(0,m.pipe)(e,(0,m.pick)(["lower","upper"]),m.values,(0,m.map)(Fe))(l)}})),(0,m.sortBy)((0,m.prop)("group"))))(e)(t);return(0,m.pipe)((0,m.pluck)("group"),m.uniq,(0,m.map)((e=>Ve({},(0,m.find)((0,m.propEq)("group",e),a),(0,m.find)((0,m.propEq)("group",e),l)))))([...a,...l])},Ge=e=>{const[t,a]=(0,u.RHh)(e,D),l=new Date(t),r=new Date(a);return{startDate:`${l.getFullYear()}-${Ye(l.getMonth()+1)}-${Ye(l.getDate())}`,endDate:`${r.getFullYear()}-${Ye(r.getMonth()+1)}-${Ye(r.getDate())}`}},Ze=e=>{var t;return!(null==e||null===(t=e.options)||void 0===t||!t.timeSeries)},qe=(e,t)=>(0,m.pipe)((0,m.pick)(t),(0,m.cond)([[(0,m.pipe)((0,m.either)((0,m.pipe)(m.keys,(0,m.all)((0,m.equals)("noData"))),m.isEmpty)),(0,m.always)(ne().text(ze))],[et,(0,m.always)(ne().text(Ue))],[m.T,(0,m.always)(ne().date(e.group,"MMM D, YYYY"))]]))(e),$e=e=>e!==u.bZE.LAST_DAY,Qe=(0,m.curry)(((e,t,a,l)=>{const{endDate:r}=Ge(e),n=N()().format("YYYY-MM-DD");return r===n?(0,m.pipe)((0,m.reject)((0,m.propEq)("group",n)),(0,m.append)(((e,t)=>{if(e===u.N0y.DATA_VALIDATION)return t.reduce(((e,t)=>(0,m.assoc)(t.group,t.value,e)),{group:N()().format("YYYY-MM-DD"),label:ne().date(N()(),"MMM D")});{var a;const l=(0,he.n)(t),r=(e=>{switch(e){case u.N0y.FILL_RATE:return u.s9T.EXISTS;case u.N0y.UNIQUENESS:return u.dC6.UNIQUE}})(e),n={group:N()().format("YYYY-MM-DD"),label:ne().date(N()(),"MMM D"),[e]:null===(a=l.find((0,m.propEq)("group",r)))||void 0===a?void 0:a.percent};return t.reduce(((e,t)=>(e[t.group]=t.value,e)),n)}})(a,t)))(l):l})),Ke=(0,m.curry)(((e,t)=>{const a=(0,m.map)((0,m.prop)("uri"),e);return(0,m.map)((0,m.pick)([...a,"group","label","noData"]),t)})),Xe=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(0,m.pipe)((0,m.omit)([...t,...a,"group","label"]),m.values,(0,m.cond)([[m.isEmpty,m.F],[(0,m.all)((0,m.equals)(0)),m.T],[m.T,m.F]]))(e)},Je=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(0,m.pipe)((0,m.omit)([...t,...a,"group","label"]),m.keys,m.isEmpty)(e)},et=(0,m.pipe)(m.values,(0,m.all)((0,m.equals)(0))),tt=r().createContext(null);tt.displayName="DataLevelContext";const at=(e,t)=>(e||[]).some((0,m.allPass)([(0,m.propEq)("attribute",t),(0,m.propEq)("status",u.lVm.ACTIVE)])),lt=e=>[u.oS0.TYPE_FLOAT,u.oS0.TYPE_DOUBLE,u.oS0.TYPE_NUMBER].includes(e),rt=e=>(0,u.idV)(e.label||e.name);let nt=function(e){return e.INCLUDED_IN_MATCHING="includedInMatching",e.CONTAIN_VF="containVF",e.REQUIRED="required",e.REFERENCE="reference",e.RDM_LOOKUP="RDMLookup",e}({});const it=(0,m.curry)(((e,t)=>e.some((e=>t.details[e.value])))),ot=(0,m.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,m.curry)(((e,t)=>{var a;const l=e[t.fieldName];return null==l||null===(a=l.find((0,m.propEq)("group",u.s9T.EXISTS)))||void 0===a?void 0:a.value})),st=(0,m.curry)(((e,t)=>t.reduce(((t,a)=>{const l=((e,t)=>{var a;return null===(a=e.label||e.name)||void 0===a?void 0:a.toLowerCase().includes(t.toLowerCase())})(a,e),r=l?a.children||[]:st(e,a.children||[]);return(l||r.length)&&t.push(Object.assign({},a,r.length&&{children:r})),t}),[])));function dt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){pt(e,t,a[t])}))}return e}function pt(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const ut=e=>{let{attrTypeItem:t,dvf:a=[],matchAttributes:l=[]}=e;const{uri:r,required:n,isAttributeReference:i}=t;return{[nt.INCLUDED_IN_MATCHING]:l.includes(r),[nt.CONTAIN_VF]:at(a,r),[nt.REQUIRED]:!!n,[nt.REFERENCE]:i,[nt.RDM_LOOKUP]:(0,u.lS4)(t)}},mt=e=>({[nt.INCLUDED_IN_MATCHING]:ne().text("Included in match rule"),[nt.CONTAIN_VF]:ne().text("Has validation functions"),[nt.REQUIRED]:ne().text("Required"),[nt.REFERENCE]:ne().text("Reference attribute"),[nt.RDM_LOOKUP]:ne().text("RDM")}[e]||e),ft=(0,m.curry)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return(0,m.pipe)((0,m.chain)((e=>{const r=e.children?ft(e.children,t.concat({name:e.name,label:e.label}),a||(0,u.YkG)(e),l+1):[];return[{attributeItem:dt({},e,{fieldName:(0,u.Tde)(e.uri,t),isAttributeReference:(0,u.YkG)(e)||a}),level:l},...r]})))(e)})),ht=(0,m.prop)("isAttributeReference");function yt(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const gt=e=>{let{entityType:t,detailedAttributeType:a,dataLevel:r,metrics:n}=e;const[i,o]=(0,l.useState)(h.o.INIT),[c,s]=(0,l.useState)({}),d=null==a?void 0:a.fieldName,p=null==t?void 0:t.uri,f=(0,S._)(),{searchByOv:y}=K(),g=e=>{console.warn(e),o(h.o.ERROR),s({})},E=e=>{s(e),o(h.o.LOADED)},v=(0,l.useCallback)((async()=>{if(p)if(o(h.o.LOADING),s({}),r===u.yn8.ENTITY_TYPE){const e=(0,u.Uqd)()([{fieldName:"type",filter:u.j5E.EQUALS,values:[p]}]),t=(0,u.FK9)({query:(0,u.ECL)({activeness:u.Ng6.ACTIVE_ONLY,filter:e}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}),a=(0,u.FK9)({query:(0,u.ECL)({activeness:u.Ng6.INACTIVE_ONLY,filter:e}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}),l=(0,u.TTx)({entityTypeUri:p,dataLevel:r,metrics:n,searchByOv:y});f(Promise.all([t,a,l])).then((e=>{let[t,a,l]=e;if((0,m.has)("error",l))g(l);else{var r,n;const e=(0,m.pipe)((0,m.path)(["consolidationRate","totalCrosswalksBySource"]),(0,m.omit)(["ReltioCleanser"]),m.keys,m.length)(l);E(function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){yt(e,t,a[t])}))}return e}({},l,{summary:{inactiveProfiles:null===(r=a.type)||void 0===r?void 0:r[(0,u.nIW)(p)],activeProfiles:null===(n=t.type)||void 0===n?void 0:n[(0,u.nIW)(p)],sourceSystems:e}}))}})).catch(g)}else{if(!d)return;f((0,u.TTx)({entityTypeUri:p,attributes:[d],dataLevel:r,metrics:n,searchByOv:y})).then((0,m.pipe)((0,m.pathOr)({},["statistic",d]),(0,m.ifElse)((0,m.has)("error"),g,E))).catch(g)}}),[o,s,f,d,p,r,n,y]),x=b({action:v,dataLevel:r});return(0,l.useEffect)((()=>{x()}),[x]),(0,l.useMemo)((()=>({data:c,state:i,reload:x})),[c,i,x])};var Et=a(14593),vt=a(71153),xt=a.n(vt);const bt=(0,o.makeStyles)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"},anomalyTitle:e=>{let{color:t}=e;return{width:"10px",height:"10px",backgroundColor:t,opacity:.12}},anomalyTitleBackground:{width:"10px",height:"10px",backgroundColor:"#fff",position:"absolute",top:0,left:0},anomalyTitleWrapper:{width:"10px",height:"10px",position:"relative",display:"inline-block",marginRight:"-3px"},anomalyValue:{paddingLeft:"16px"},row:{padding:"2px 0"}}),Ot=e=>{let{label:t,value:a}=e;const l=bt({});return r().createElement(r().Fragment,null,t&&r().createElement("span",{className:xt()(l.label,l.infoDataLabel)},t),a)},wt=e=>{let{label:t,value:a}=e;const l=bt({});return r().createElement(r().Fragment,null,t&&r().createElement("span",{className:xt()(l.label,l.chartDataLabel)},t),a)},St=(0,o.makeStyles)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),Tt=e=>{let{data:t,title:a,DataRenderer:l=wt,children:n}=e;const i=St();return r().createElement("div",{className:i.tooltipWrapper},a&&r().createElement("div",{className:i.title},a),t.map(((e,t)=>r().createElement("div",{key:t,className:i.row},r().createElement(l,e)))),n)},Rt=(0,o.makeStyles)({fillRateSquare:{height:"8px",width:"8px",display:"inline-block",marginRight:"5px",verticalAlign:"middle"}}),_t=e=>{let{value:t,percent:a}=e;return(0,m.isNil)(a)?ne().number(t):`(${ne().number(t)})`},At=e=>{let{data:t,title:a,getColor:l}=e;const n=Rt(),i=t.map((e=>{let{label:t,percent:a,value:i,group:o}=e;return{label:r().createElement("span",null,r().createElement("div",{className:n.fillRateSquare,style:{background:l(o)}}),t),value:`${_e(a)} ${_t({value:i,percent:a})}`}}));return r().createElement(Tt,{title:a,data:i})},Nt={[u.s9T.MISSING]:"#CE5C00",[u.s9T.EXISTS]:"#C4CE00"},Dt=e=>Nt[e]||(0,u.f4_)(e),It=(0,m.map)((e=>{let{group:t}=e;return Dt(t)})),Ct=e=>({[u.s9T.MISSING]:ne().text("Missing"),[u.s9T.EXISTS]:ne().text("Exists")}[e]||e),Mt=(0,m.pipe)(Object.entries,(0,m.map)((e=>{let[t,a]=e;return{label:Ct(t),group:t,value:a}})),(0,m.sortBy)((e=>Object.values(u.s9T).indexOf(e.group))),Re),kt=(0,m.pipe)((0,m.propOr)({},"statistic"),m.toPairs,(0,m.reduce)(((e,t)=>{let[a,l]=t;return null!=l&&l.fillRate?(0,m.assoc)(a,Mt(l.fillRate),e):e}),{})),Lt=(0,m.propOr)({},"fillRate"),Pt=(0,m.pipe)(Lt,Mt,(0,m.when)(Ae,(0,m.always)([])),(0,m.converge)(((e,t)=>({chartData:e,colors:t})),[m.identity,It])),Ft=(0,m.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:t===u.s9T.EXISTS?u.j5E.EXISTS:u.j5E.MISSING_VALUE,fieldName:a}]})),Bt=De(Ft),jt=e=>{const{chartsData:{data:t,state:a,reload:r}}=pe(),n=(0,l.useMemo)((()=>e(t)),[t,e]);return(0,l.useMemo)((()=>({data:n,state:a,reload:r})),[n,a,r])},zt=e=>{let{keyword:t,entityTypeUri:a}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[we(a)],version:"2.0"}},Ut=e=>{let{fieldName:t,value:a,entityTypeUri:l}=e;return zt({keyword:`${u.j5E.EQUALS}(${t}, ${a})`,entityTypeUri:l})};function Vt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Ht(e,t,a[t])}))}return e}function Ht(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Yt=(0,m.curry)(((e,t,a)=>{var l;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length>0?`(${u.NlI.NOT_LIST_EQUALS}(type, ${e.join(",")}))`:""}((0,u.k3T)(e,t)),n=null==a||null===(l=a.keyword)||void 0===l?void 0:l.value;if(r){const e=n?`(${n}) and ${r}`:r;return(0,m.assoc)("keyword",{value:e,isRawFilter:!0},a)}return a})),Wt=(0,m.curry)(((e,t)=>(0,m.assoc)("searchOptions",{searchByOv:e,ovOnly:e},t))),Gt=e=>{const t=(0,w.useDispatch)(),a=(0,w.useSelector)(T.ZP.selectors.getMetadata),{detailedAttributeType:l,entityType:r,searchByOv:n}=K(),i=(0,w.useSelector)(T.ZP.selectors.getGlobalFilter);return function(o){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Ng6.ACTIVE_ONLY;t(T.yC.actions.activityFilterUpdated(c)),t(T.yC.actions.globalFilterUpdated(Vt({},i,{isMuted:!0,query:null}))),(0,m.pipe)(e({detailedAttributeType:l,entityTypeUri:r.uri}),Yt(a,r.uri),Wt(n),T.ui.actions.openSearch,t)(o)}};var Zt=a(23883),qt=a(43129),$t=a(97245);const Qt="anomaly",Kt=(0,o.makeStyles)({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)"},legendHorizontal:{width:"100%",display:"flex",justifyContent:"left",margin:"auto",flexWrap:"wrap",flexDirection:"row",marginBottom:2},legendVertical:{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}}),Xt=e=>{let{payload:t,layout:a}=e;const l=Kt();return r().createElement("div",{className:xt()({[l.legendHorizontal]:"horizontal"===a,[l.legendVertical]:"vertical"===a})},t.map((e=>r().createElement("div",{key:`${e.id}-${e.dataKey}`,className:l.item},r().createElement("div",{style:{background:e.color,opacity:e.dataKey===Qt?.24:1},className:l.itemColor}),r().createElement("span",{className:l.legendLabel}," ",e.value)))))};function Jt(){return Jt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Jt.apply(this,arguments)}const ea=(0,he.Z)((e=>{let{data:t,colors:a}=e,l=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["data","colors"]);const n=Kt();return r().createElement($t.D,Jt({layout:"vertical",align:"left",verticalAlign:"top",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%",marginTop:"13px"},content:r().createElement(Xt,null),payload:(t||[]).map(((e,t)=>{let{group:l,label:i,value:o,percent:c}=e;return{id:l,type:"square",color:a[t],value:r().createElement(r().Fragment,null,r().createElement("span",{className:n.legendLabel},i),r().createElement("span",{className:n.legendValue},`${_e(c)} (${(0,u.k7L)(o,999)})`))}}))},l))}));var ta=a(60355);const aa="violatedProfiles",la="_";function ra(){return ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ra.apply(this,arguments)}const na=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",ra({xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24"},a),r().createElement("g",null,r().createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),r().createElement("g",null,r().createElement("path",{fillOpacity:".54",d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"})))},ia=(0,o.makeStyles)({menuButton:{position:"absolute",right:"10px"}}),oa=e=>{let{config:t,exportLoadingId:a}=e;const n=ia(),i=(0,l.useContext)(tt),{addExportLoadingId:o}=X(),{exportLoadingIds:c}=K(),s=(e=>{const t=(0,S._)(),a=(e=>{let{config:t}=e;const a=(0,w.useSelector)(T.ZP.selectors.getExportDQPath),r=(0,w.useSelector)(T.ZP.selectors.getTenant),{entityType:n,detailedAttributeType:i,dateRange:o}=K(),c=null==i?void 0:i.fieldName.replace("attributes.",""),s=null==i?void 0:i.fieldName,d=null==i?void 0:i.type,p=(0,l.useContext)(tt),{startDate:m,endDate:f}=Ge(o),h=Ze(t),y=Ze(t)?m.concat("_",f):N()().utc().format(),g="dataValidationFunctions"===t.type&&h?aa:t.type;return{tenant:r,entityType:(0,u.nIW)(n.uri),attributeType:s,exportDQPath:a,dataLevel:p,metrics:[g],period:[m,f],isTimeseries:h,getFileName:()=>r.concat(la,n.label||(0,u.nIW)(n.uri),`${c?la.concat(c):""}`,la,t.type,la,y,".csv"),dataType:d}})({config:e}),{deleteExportLoadingId:r}=X();return e=>t((0,u.Oz9)(a)).then((e=>e.arrayBuffer())).then((e=>{const t=new Blob([e],{type:"csv"}),l=URL.createObjectURL(t),r=document.createElement("a");r.href=l,r.download=a.getFileName(),document.body.appendChild(r),r.click(),document.body.removeChild(r)})).catch(console.error).finally((()=>r(e)))})(t),d=[{id:"download",title:ne().text("Download"),icon:r().createElement(na,null),active:!0,action:()=>{o(a),s(a)},disabled:(0,m.has)(a,c)}];return r().createElement("div",{className:n.menuButton,"data-reltio-id":`reltio-dq-dashboard-export-${i}-${t.type}`},r().createElement(ta.Z,{items:d}))};var ca=a(88267),sa=a(79002),da=a(7882),pa=a(82068),ua=a(38677),ma=a(79312),fa=a(24648);let ha=function(e){return e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e}({});const ya=(0,o.makeStyles)((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"}}))),ga=sa.B9.ERROR,Ea=e=>{let{onRefresh:t,height:a,errorData:l={},variant:n=ha.SMALL}=e;const{Icon:i=ga,message:o,title:c}=l,s=ya({height:a});return r().createElement("div",{className:xt()(s.container,s[`${n}`])},r().createElement(i,{className:s.icon}),c&&r().createElement(ma.Z,{className:s.title},c),o&&r().createElement(ma.Z,{className:s.message},o),!!t&&r().createElement(ua.Z,{className:s.refreshButton,startIcon:r().createElement(fa.Z,{color:"primary",className:s.refreshIcon}),onClick:t,"data-reltio-id":"reltio-dq-dashboard-chart-refresh-button"},r().createElement(ma.Z,{variant:"button"},ne().text("Refresh"))))},va=(0,o.makeStyles)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}}))),xa=e=>{let{loadingState:t,onRefresh:a,children:l,data:n,className:i}=e;const o=va();return r().createElement(pa.Z,{className:xt()(o.viewContent,i)},r().createElement(ca.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:i,height:o}=e;switch(t){case h.o.LOADED:return n&&0!==n.length?r().createElement(da.Z,{error:r().createElement(Ea,{errorData:{message:ne().text("Something went wrong")},height:o,variant:ha.SMALL})},l({data:n,width:i,height:o})):r().createElement(Ea,{height:o,errorData:{Icon:sa.B9.NO_DATA,message:ne().text("Go ahead and load some data. We’ll put it on the scales and let you know here if it measures up."),title:ne().text("Give us something to go on!")},variant:ha.SMALL});case h.o.LOADING:return r().createElement(qt.Z,null);case h.o.ERROR:return r().createElement(Ea,{errorData:{Icon:sa.B9.ERROR,message:ne().text("No need to fret - just refresh and it will work itself out."),title:ne().text("Oops! We ran into a problem.")},height:o,onRefresh:a,variant:ha.SMALL});default:return r().createElement("div",null,"Loading...")}})))};var ba=a(89025),Oa=a(17998),wa=a(39475),Sa=a(58003),Ta=a(55310);const Ra=(0,o.makeStyles)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:"5px",lineHeight:"24px"},infoIcon:{position:"relative"}}))),_a=e=>{let{title:t,infoTooltipTitle:a,children:n}=e;const i=!!a,o=!!n,c=Ra(o),s=(0,l.useContext)(tt)===u.yn8.ATTRIBUTE_TYPE;return r().createElement(Oa.Z,{title:t,className:c.root,classes:{title:c.title}},i&&r().createElement(wa.k,{icon:ba.Z,size:"XXS",tooltipTitle:a,className:c.infoIcon,tooltipPlacement:"top-start"}),o&&r().createElement(Sa.Z,{widthToHide:250},s&&r().createElement(Ta.Z,{height:24,margin:16}),n))};var Aa=a(82565);const Na=(0,o.makeStyles)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),Da=e=>{let{config:t,children:a}=e;const n=Na(),{type:i}=t,o=(0,l.useContext)(tt),{period:c}=K(),s=$e(c)?`reltio-dq-dashboard-chart-time-series-${i}-${o}`:`reltio-dq-dashboard-chart-${i}-${o}`;return r().createElement(Aa.Z,{className:n.view,"data-reltio-id":s},a)};var Ia=a(19926);const Ca=(0,o.makeStyles)({root:{height:"18px",padding:"3px 8px",background:"rgba(43, 152, 240, 0.12)",border:"0.6px solid #2B98F0",borderRadius:"2px"},label:{fontSize:"8px",padding:0},disabled:{background:"rgba(153, 153, 153, 0.12)",border:"0.6px solid #999999"}});function Ma(){return Ma=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ma.apply(this,arguments)}const ka=e=>{let{disabled:t=!1}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["disabled"]);const l=Ca(),{dateRange:n}=K(),i=t?ne().text("Today"):(o=n,(0,u.J6D)(o)?(0,u.mm2)(o):o.map((e=>ne().date(N()(e)))).join(" – "));var o;return r().createElement(Ia.Z,Ma({classes:{root:xt()(l.root,l.disabled),label:l.label},label:i},a))};function La(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Pa={content:'""',position:"absolute",background:"rgba(0, 0, 0, 0.38)",width:"1px",height:"4px",bottom:"-4px",left:0},Fa=(0,o.makeStyles)({root:{display:"flex",flexDirection:"column",height:"100%"},stackedBar:{width:"100%",display:"flex",flexWrap:"nowrap",marginTop:"13px",position:"relative","&:before":Pa,"&:after":function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){La(e,t,a[t])}))}return e}({},Pa,{right:0,left:"initial"})},bar:{height:"24px",flexGrow:1,position:"relative",width:"50%",transition:"width 0.7s","&:hover":{"&:after":{content:'""',background:"rgba(0, 0, 0, 0.1)"}},"&:after":{position:"absolute",top:"-3px",bottom:"-4px",left:"-3px",right:"-3px",transition:"background 0.3s",zIndex:1,pointerEvents:"none"}},inactivePart:{background:"#EFEFEF"},tooltipTitle:{fontSize:"11px"},tooltipFillRate:{marginTop:"4px"},tooltip:{background:"#fff",filter:"drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)) drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2))",padding:"5px 8px"},legendWrapper:{position:"relative",flexGrow:1},legendLabel:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},legendValue:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.87)"},clickable:{cursor:"pointer"},rangeWrapper:{display:"flex",justifyContent:"space-between",marginTop:"4px"},rangeValue:{color:"rgba(0, 0, 0, 0.54)",fontSize:"12px"},popper:{paddingTop:"6px"}});function Ba(){return Ba=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ba.apply(this,arguments)}const ja=(0,l.forwardRef)(((e,t)=>{let{className:a}=e,l=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["className"]);const n=Fa();return r().createElement("div",Ba({className:xt()(n.bar,a)},l,{ref:t}))}));ja.displayName="Bar";const za=ja;function Ua(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Va(e,t,a[t])}))}return e}function Va(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=>{let{label:t,value:a,percent:l}=e;return[{label:t,value:`${_e(l)} (${ne().number(a)})`}]},Ya=(0,he.Z)((e=>{let{classes:t={},colors:a,config:n,data:i,infoTooltipTitle:o,onItemClick:c,onRefresh:s,state:d}=e;const p=Fa(),y=c&&(e=>c(e)),g=!!c,E=(0,m.pipe)((0,m.pluck)("percent"),m.sum)(i),{title:v}=n,{period:x,exportLoadingIds:b}=K(),{showExportButton:O}=te(),w=(0,l.useMemo)((()=>O&&d===h.o.LOADED&&i.length>0),[d,i]),S=(0,l.useContext)(tt),T=(0,l.useMemo)((()=>(0,f.x0)()),[]);return r().createElement(Da,{config:n},r().createElement(_a,{title:v,infoTooltipTitle:o},$e(x)&&S===u.yn8.ATTRIBUTE_TYPE&&r().createElement(ka,{disabled:!0}),w&&r().createElement(oa,{config:n,exportLoadingId:T})),r().createElement(xa,{loadingState:d,onRefresh:s,data:i},(e=>{let{data:l}=e;return r().createElement("div",{className:p.root},(0,m.has)(T,b)&&r().createElement(qt.Z,null),r().createElement("div",{className:xt()(p.stackedBar,t.stackedBar)},l.map(((e,l)=>r().createElement(Zt.Z,{title:r().createElement(Tt,{data:Ha(e)}),followCursor:!0,key:e.label,classes:{popper:p.popper}},r().createElement(za,{className:xt()(t.bar,g&&p.clickable),style:Ua({},ke(e),{background:a[l]}),onClick:()=>y&&y(e.group),"data-reltio-id":e.dataReltioId}))))),r().createElement("div",{className:p.rangeWrapper},r().createElement("span",{className:p.rangeValue},"0"),r().createElement("span",{className:p.rangeValue},ne().number(E))),r().createElement("div",{className:xt()(p.legendWrapper,t.legendWrapper)},r().createElement(ea,{data:l,colors:a})))})))})),Wa=e=>{let{config:t,infoTooltipTitle:a}=e;const{data:l,state:n,reload:i}=jt(Pt),{chartData:o,colors:c}=l,s=Gt(Bt);return r().createElement(Ya,{data:o,colors:c,onItemClick:s,config:t,state:n,onRefresh:i,infoTooltipTitle:a})};function Ga(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Za=[u.N0y.FILL_RATE,u.N0y.UNIQUENESS],qa=e=>{let{entityTypeUri:t,attributeFieldName:a,period:r=_.LAST_WEEK,dataLevel:n=u.yn8.ATTRIBUTE_TYPE,metrics:i}=e;const[o,c]=(0,l.useState)(h.o.INIT),[s,d]=(0,l.useState)(null),p=(0,w.useSelector)(T.ZP.selectors.getTenant),f=(0,w.useSelector)(T.ZP.selectors.getMlDqPath),y=(0,S._)(),g=(0,l.useRef)(),E=te().showErrorBands&&(0,m.any)((0,m.includes)(m.__,Za),i),v=e=>{console.warn(e),c(h.o.ERROR),d(null)},x=e=>{d(e),c(h.o.LOADED)},O=[a,t,n,i,p].toString(),R=(0,l.useCallback)((()=>{if(!t)return;c(h.o.LOADING),d(null);const{startDate:e,endDate:l}=Ge(r);y((0,u.GFW)(function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Ga(e,t,a[t])}))}return e}({mlDqPath:f,tenant:p,entityTypeUri:t,attribute:a,dataLevel:n,metrics:i,startDate:e,endDate:l},E&&{anomaly:"prophet"}))).then((0,m.pipe)((0,m.applySpec)({statisticData:(0,m.pipe)((0,m.pathOr)({},["data",a,"timeSeries"])),anomalyData:(0,m.pipe)((0,m.pathOr)({},["dataAnomaly",a,"timeSeries"]))}),x)).catch(v)}),[O,r]),A=b({action:R,dataLevel:n});return(0,l.useEffect)((()=>{const e=((e,t)=>{const a=t?{startDate:(0,m.pipe)(m.last,(0,m.path)(["time","_max_date"]))(t),endDate:(0,m.pipe)(m.head,(0,m.path)(["time","_min_date"]))(t)}:null;if(a){const t=new Date(a.startDate),l=new Date(a.endDate),{startDate:r,endDate:n}=Ge(e),i=new Date(r),o=new Date(n);if(i>=t&&o<=l)return!1}return!0})(r,null==s?void 0:s.statisticData);(e||O!==(null==g?void 0:g.current))&&A(),g.current=O}),[A]),(0,l.useMemo)((()=>({data:s,state:o,reload:A})),[s,o,A])},$a=(0,m.curry)(((e,t)=>(0,m.pipe)((0,m.map)((0,m.props)(e)),m.flatten,(0,m.reject)(m.isNil))(t))),Qa=e=>Math.round(100*e)/100,Ka=e=>ne().date(e,"MMM D"),Xa=(e,t)=>{if(1===e.length)return e;const{startDate:a,endDate:l}=Ge(t),r=(0,m.findIndex)((0,m.propEq)("group",a),e),n=(0,m.findIndex)((0,m.propEq)("group",l),e)+1;return e&&t?(0,m.slice)(r,n,e):e};function Ja(){return Ja=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ja.apply(this,arguments)}const el=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Ja({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("path",{d:"M10 16.667A6.676 6.676 0 013.333 10 6.676 6.676 0 0110 3.333 6.675 6.675 0 0116.667 10 6.675 6.675 0 0110 16.667zm0 1.666c4.6 0 8.333-3.733 8.333-8.333S14.6 1.667 10 1.667A8.336 8.336 0 001.667 10c0 4.6 3.733 8.333 8.333 8.333zM9.167 10v3.333h1.666V10h2.5L10 6.667 6.667 10h2.5z",fill:"#7BAB52"}))};function tl(){return tl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},tl.apply(this,arguments)}const al=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",tl({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("path",{d:"M10 3.333A6.676 6.676 0 0116.667 10 6.675 6.675 0 0110 16.667 6.675 6.675 0 013.333 10 6.676 6.676 0 0110 3.333zm0-1.666A8.336 8.336 0 001.667 10c0 4.6 3.733 8.333 8.333 8.333S18.333 14.6 18.333 10 14.6 1.667 10 1.667zM10.833 10V6.667H9.167V10h-2.5L10 13.333 13.333 10h-2.5z",fill:"#FF1744"}))},ll=(0,o.makeStyles)((e=>({infoPanel:{display:"flex",alignItems:"center",gap:"10px",backgroundColor:"rgba(0, 0, 0, 0.05)",margin:"0 0 2px",padding:"6px 12px 6px",color:e.palette.text.secondary,fontSize:"13px",lineHeight:"20px"},info:{color:e.palette.text.primary,fontSize:"14px"},dynamicInfo:{display:"flex",alignItems:"center"},dynamicInfoPositive:{color:"#5C922E"},dynamicInfoNegative:{color:"#FF1744"},dynamicIcon:{paddingRight:"4px"},percent:{fontWeight:700,paddingRight:"4px"},period:{fontWeight:"bold"}}))),rl=e=>{let{label:t,info:a,dynamicPercent:l}=e;const n=ll(),i=l>0;return r().createElement("div",{className:n.infoPanel},t,r().createElement("span",{className:n.info},a),!!l&&r().createElement("span",{className:xt()(n.dynamicInfo,{[n.dynamicInfoPositive]:i,[n.dynamicInfoNegative]:!i})},i?r().createElement(el,{className:n.dynamicIcon}):r().createElement(al,{className:n.dynamicIcon}),Math.abs(l).toFixed(2),"%"))},nl=e=>{let{dateRange:t,infoLabel:a,percentKey:n,dataKey:i,chartData:o,areaKeys:c}=e;const s=ll(),d=(0,l.useMemo)((()=>Xa(o,t)),[o,t]),p=(0,m.last)(d),f=null==p?void 0:p[i],h=null==p?void 0:p[n],y=!(0,m.isNil)(h)&&n&&((e,t)=>{const a=(0,m.pipe)((0,m.pluck)(t),(0,m.reject)(m.isNil))(e);return a.length<2?0:(0,m.pipe)((0,m.slice)(-2,1/0),(e=>{let[t,a]=e;return a-t}),(e=>Math.round(1e4*e)/1e4))(a)})(d,n),g=(0,u.VQ1)(t)[1],E=N()().isSame(g,"day")?ne().text("Today"):ne().date(g),v=Je(p,[n],c)?ne().text(ze):Xe(p,[n],c)?ne().text(Ue):"",x=r().createElement(r().Fragment,null,r().createElement("span",{className:s.period},E,":"),(0,m.isNil)(h)?v:a),b=!(0,m.isNil)(h)&&r().createElement(r().Fragment,null,r().createElement("span",{className:s.percent},h,"%"),"(",(0,u.k7L)(f,999),")");return r().createElement(rl,{label:x,info:b,dynamicPercent:y})};var il=a(71142),ol=a(30840),cl=a(33618),sl=a(55484),dl=a(25556),pl=a(3131),ul=a(63004),ml=a(81073),fl=a(82655);function hl(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){yl(e,t,a[t])}))}return e}function yl(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var gl=function(e){return 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",e}(gl||{}),El=function(e){return 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",e}(El||{});const vl=e=>(0,m.pipe)((0,m.pathOr)({},[e,"data"]),Object.entries,(0,m.map)((e=>{let[t,a]=e;return{label:t,group:t,value:a}})),Re),xl="Reltio profiles",bl="Source profiles",Ol=(0,m.pipe)((0,m.pathOr)({},["consolidationRate"]),(0,m.converge)(m.concat,[(0,m.pipe)((0,m.prop)("totalCrosswalksBySource"),(0,m.omit)(["ReltioCleanser"]),(e=>[hl({},e,{label:bl,group:bl})])),(0,m.pipe)((0,m.prop)("totalEntities"),(e=>[(0,m.assoc)(xl,e,{label:xl,group:xl})]))]));var wl=function(e){return 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",e}(wl||{});const Sl=(e,t)=>{const a={lengthStatistics:{[wl.MEDIAN]:ne().text("Median"),[wl.AVERAGE]:ne().text("Average"),[wl.MININMUN]:ne().text("Minimum"),[wl.MAXIMUM]:ne().text("Maximum")},valueDistribution:{[wl.MEDIAN]:ne().text("Median"),[wl.AVERAGE]:ne().text("Average"),[wl.MININMUN]:ne().text("Minimum"),[wl.MAXIMUM]:ne().text("Maximum")},crosswalkAnalysis:{[wl.NUMBER_OF_SOURCES]:ne().text("No. of source systems"),[wl.AVG_NUMBER_OF_PROFILES]:ne().text("Avg no. of profiles"),[wl.MIN_NUMBER_OF_PROFILES]:ne().text("Min no. of profiles"),[wl.MAX_NUMBER_OF_PROFILES]:ne().text("Max no. of profiles")}};return(0,m.pathOr)(null,[t,e],a)},Tl=e=>(0,m.pipe)((0,m.propOr)({},e),Object.entries,(0,m.map)((t=>{let[a,l]=t;return{label:Sl(a,e),value:l}})),(0,m.filter)((e=>{let{label:t}=e;return t})),Re),Rl=e=>t=>({chartData:vl(e)(t),infoPanelData:Tl(e)(t)}),_l=(e,t)=>(0,u.Lt4)(t)?(0,u.mB6)({dataTypeDefinition:{type:t}},Number(e)):ne().number(e),Al=(0,m.curry)(((e,t)=>{const a=(0,m.pipe)((0,m.prop)("group"),(0,m.split)(" "),m.head,Number),l=t.chartData.sort((0,m.ascend)(a)).map(((a,l)=>{const[r,n=r]=a.group.split(" ").map(Number),i=l===t.chartData.length-1,o=r!==n?((e,t,a)=>lt(t)?`[${e}${a?"]":")"}`:e)(`${_l(r,e)} - ${_l(n,e)}`,e,i):_l(r,e);return hl({},a,{label:o,group:[r,n,i?"last":""].toString()})}));return{infoPanelData:t.infoPanelData.map((t=>{const a=(0,u.Lt4)(e)?(0,u.mB6)({dataTypeDefinition:{type:e}},Number(t.value)):(0,u.k7L)(t.value,999);return hl({},t,{value:a,localizedValue:(0,u.Lt4)(e)?a:t.localizedValue})})),chartData:l}})),Nl=(0,m.pipe)(Rl("lengthStatistics"),Al("")),Dl=Rl("monthDistribution"),Il=Rl("dayOfWeekDistribution"),Cl=Rl("dayOfMonthDistribution"),Ml=(0,m.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Ut({fieldName:`${a.fieldName}.day_of_week`,value:gl[t.toLowerCase()],entityTypeUri:l})})),kl=(0,m.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Ut({fieldName:`${a.fieldName}.month`,value:El[t.toLowerCase()],entityTypeUri:l})})),Ll=(0,m.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Ut({fieldName:`${a.fieldName}.day_of_month`,value:t,entityTypeUri:l})})),Pl=(0,m.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;const[r,n]=t.split(",");return r===n?Ut({fieldName:`${a.fieldName}.length`,value:r,entityTypeUri:l}):(e=>{let{fieldName:t,startRange:a,endRange:l,entityTypeUri:r}=e;return zt({keyword:`${u.j5E.IN_RANGE}(${t}, ${a}, ${l})`,entityTypeUri:r})})({fieldName:`${a.fieldName}.length`,startRange:r,endRange:n,entityTypeUri:l})})),Fl=(0,m.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Ut({fieldName:`${a.fieldName}.crosswalk_sources`,value:t,entityTypeUri:l})})),Bl=(0,m.curry)(((e,t)=>{let{fieldName:a}=e;const[l,r]=t.split(",");return[{filter:u.j5E.WITHIN,values:[[l,r]],fieldName:a}]})),jl=(0,m.curry)(((e,t)=>{let{fieldName:a}=e;const[l,r]=t.split(",");return[l===r?{filter:u.j5E.EQUALS,values:[[l]],fieldName:a}:{filter:u.j5E.IN_RANGE,values:[[l,r]],fieldName:a}]})),zl=(0,m.curry)(((e,t)=>{let{fieldName:a}=e;const[l,r,n]=t.split(","),i=l===r,o=i?[{filter:u.j5E.EQUALS,values:[[l]],fieldName:a}]:[{filter:u.j5E.IN_RANGE,values:[[l,r]],fieldName:a}];return!n&&!i&&o.push({filter:u.j5E.NOT_EQUALS,values:[[r]],fieldName:a}),o})),Ul=(0,m.cond)([[u.Lt4,(0,m.always)(De(Bl))],[lt,(0,m.always)(De(zl))],[m.identity,(0,m.always)(De(jl))]]),Vl=(0,m.curry)(((e,t)=>t===xl?[]:[{filter:u.j5E.EQUALS,fieldName:"sourceSystems",values:[[t]]}])),Hl=De(Vl),Yl=(0,m.curry)(((e,t)=>!e||(0,m.propEq)("key",t,e)||t===xl?1:.12)),Wl=e=>e>999?ne().number(e,"0,0.0a").toUpperCase():""+Math.round(1e3*e)/1e3,Gl=e=>{let{lineKeys:t,data:a,isPercent:l}=e;const r=((e,t)=>(0,m.pipe)($a(e),(e=>Math.min(...e)))(t))(t,a),n=((e,t)=>(0,m.pipe)($a(e),(e=>Math.max(...e)))(t))(t,a),{minYAxisValue:i,maxYAxisValue:o}=(e=>{let{minLineChartData:t,maxLineChartData:a,isPercent:l}=e;if(t===a)return l?0===(r=t)||100===r?{minYAxisValue:0,maxYAxisValue:100}:{minYAxisValue:r>50?Qa(2*r-100):0,maxYAxisValue:r>50?100:Qa(2*r)}:{minYAxisValue:"minData",maxYAxisValue:"maxData"};var r;const n=(a-t)/6,i=Qa(t-n),o=Qa(a+n);return{minYAxisValue:i>0?i:0,maxYAxisValue:l&&o>100?100:o}})({minLineChartData:r,maxLineChartData:n,isPercent:l});return{xAxis:{type:"category",dataKey:"group",tick:{fill:"#000",fontSize:"12px",style:{userSelect:"none"}},angle:0,textAnchor:"middle",stroke:"#666",tickLine:!1,dy:8,tickFormatter:Ka,interval:"preserveStartEnd",scale:"point",minTickGap:16},yAxis:{dataKey:"",type:"number",tick:{fill:"#000",fontSize:"12px",width:void 0,style:{userSelect:"none"}},stroke:"#666",tickFormatter:e=>Wl(e),tickCount:5,width:59,tickLine:!1,domain:i!==-1/0&&o!==-1/0?[i,o]:[0,i]},cartesianGrid:{strokeDasharray:"3 3",stroke:"#666",strokeOpacity:"0.4"},tooltip:{cursor:{fill:"#000",opacity:"0.1"}},line:{type:"linear",dataKey:"value",strokeWidth:3,dot:null,activeDot:{stroke:"white",strokeWidth:2,r:5}},referenceLine:{strokeDasharray:"3 3",stroke:"#000",isFront:!0},labelForY:{angle:270,position:"left",offset:-3,style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)",userSelect:"none"}},area:{activeDot:!1,fillOpacity:"0.24",stroke:"none"},legend:{verticalAlign:"bottom",align:"left"}}};function Zl(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){ql(e,t,a[t])}))}return e}function ql(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const $l=(0,o.makeStyles)((e=>({tooltipWrapper:Zl({},e.tooltip,{padding:"4px 8px"})})));function Ql(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Kl(e,t,a[t])}))}return e}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}function Xl(){return Xl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Xl.apply(this,arguments)}const Jl="#00439D",er=e=>{let{data:t,width:a,height:n,getTooltip:i,getColor:o,lineKeys:c,areaKeys:s,yAxisLabel:d,isPercent:p=!0,dateRange:u,changeZoom:f}=e;const h=$l(),{showErrorBands:y}=te(),{cartesianGrid:g,tooltip:E,xAxis:v,yAxis:x,line:b,referenceLine:O,labelForY:w,area:S,legend:T}=Gl({lineKeys:c,data:t,isPercent:p}),R=(0,l.useCallback)((e=>r().createElement("div",{className:h.tooltipWrapper},i(e))),[i]),[_,A]=(0,l.useState)(),[N,D]=(0,l.useState)(null),[I,C]=(0,l.useState)(null),M=(0,l.useMemo)((()=>Xa(t,u)),[t,u]),k=(0,l.useMemo)((()=>((e,t)=>{const a=t=>(0,m.path)([t,"group"],e);return e.reduce(((l,r,n)=>((e,t)=>t.every((t=>(0,m.isNil)(e[t])||isNaN(+e[t]))))(r,t)?((t,l)=>{const r=(0,m.last)(t),n=a(l===e.length-1?l:l+1);return r&&a(l)!==r.end||0===(null==t?void 0:t.length)?t.concat({start:a(0===l?l:l-1),end:n}):(0,m.assocPath)([t.length-1,"end"],n,t)})(l,n):l),[])})(M,c)),[M,c]),L=(0,l.useMemo)((()=>((e,t,a)=>e.reduce(((e,l,r,n)=>r+1===n.length?e:Je(l,t,a)&&Xe(n[r+1],t,a)||Xe(l,t,a)&&Je(n[r+1],t,a)?[...e,l.group]:e),[]))(M,c,s)),[M,c,s]),P=N&&I;return r().createElement(il.c,{width:a,height:n,data:M,onMouseMove:e=>{e.isTooltipActive&&e.activePayload?A({group:e.activeLabel,values:(0,m.pluck)("value",e.activePayload)}):A(void 0),N&&C(e.activeLabel)},onMouseLeave:()=>{A(void 0),C(null),D(null)},onMouseDown:e=>{(null==e?void 0:e.activeLabel)&&D(e.activeLabel)},onMouseUp:()=>{I&&f([N,I]),C(null),D(null)},margin:{top:12,right:20}},_&&r().createElement(ol.d,Xl({},O,{x:_.group})),_&&_.values.filter((e=>!Array.isArray(e))).every((0,m.either)(isNaN,m.isNil))&&!P&&k.map(((e,t)=>r().createElement(cl.z,{x1:e.start,x2:e.end,key:t}))),P&&r().createElement(cl.z,{x1:N,x2:I,strokeOpacity:.3}),r().createElement(sl.q,g),r().createElement(dl.K,v),r().createElement(pl.B,Xl({},x,{label:Ql({},w,{value:d})})),c.map((e=>r().createElement(ul.x,Xl({},b,{name:ne().text("Actual"),key:e,dataKey:e,stroke:o?o(e):Jl})))),L&&L.map((e=>r().createElement(ol.d,Xl({},O,{x:e,key:e,strokeDasharray:"12 4"})))),s&&s.map((e=>r().createElement(ml.u,Xl({},S,{name:ne().text("Error band"),dataKey:e,key:e,fill:o?o(e):Jl})))),r().createElement(fl.u,Xl({},E,{content:R,cursor:null,filterNull:!1})),s&&y&&r().createElement($t.D,Xl({},T,{content:r().createElement(Xt,null)})))},tr=e=>{let{data:t,color:a}=e;const l=bt({color:a}),n=[{label:r().createElement("div",{className:l.anomalyTitleWrapper},r().createElement("div",{className:l.anomalyTitleBackground}),r().createElement("div",{className:l.anomalyTitle})),value:ne().text("Error Band")},{label:r().createElement("span",{className:l.anomalyValue},ne().text("Low")),value:`${_e(t[0])}`},{label:r().createElement("span",{className:l.anomalyValue},ne().text("High")),value:`${_e(t[1])}`}];return r().createElement(r().Fragment,null,n.map(((e,t)=>r().createElement("div",{key:t,className:l.row},r().createElement(wt,e)))))},ar=(0,o.makeStyles)({monoFontCell:{fontFamily:'"Roboto Mono", monospace'},timeSeriesContent:{padding:"0 12px 10px"}}),lr=[u.s9T.EXISTS,u.s9T.MISSING],rr=[u.N0y.FILL_RATE],nr=()=>Dt(u.s9T.EXISTS),ir=e=>{let{active:t,payload:a}=e;if(t&&a&&a.length){var l;const{payload:e}=a[0],t=e.fillRate,n={[u.s9T.EXISTS]:t,[u.s9T.MISSING]:+(100-t).toFixed(2)},i=(0,m.pipe)((0,m.pick)(lr),(0,m.when)(et,(0,m.always)({})),Mt,(0,m.map)((e=>(0,m.assoc)("percent",n[e.group],e))),(0,m.map)((e=>{let{label:t,percent:a,value:l}=e;return{label:t,value:`${_e(a)} (${ne().number(l)})`}})))(e),o=qe(e,lr);return r().createElement(Tt,{data:i,title:o},(null===(l=e.anomaly)||void 0===l?void 0:l.length)>0&&r().createElement(tr,{data:e.anomaly,color:nr()}))}},or=e=>{let{config:t,infoTooltipTitle:a}=e;const n=ar(),{entityType:i,detailedAttributeType:o,period:c,dateRange:s,exportLoadingIds:d}=K(),{changeZoom:p}=X(),y=i.uri,g=o.fieldName,{data:E,state:v,reload:b}=qa({entityTypeUri:y,attributeFieldName:g,period:c,metrics:rr});x({state:v,reload:b,dataLevel:u.yn8.ATTRIBUTE_TYPE});const{data:O,state:w,reload:S}=jt(Pt),T=(0,l.useMemo)((()=>(0,m.pipe)(We(Lt),Be(u.N0y.FILL_RATE),Qe(c,O.chartData,u.N0y.FILL_RATE))(E)),[E,O]),R=(0,l.useCallback)((()=>{v===h.o.ERROR&&b(),w===h.o.ERROR&&S()}),[v,b,w,S]),{title:_}=t,A=`${ne().text("% of profiles with complete values")}:`,{showExportButton:N}=te(),D=(0,l.useMemo)((()=>N&&v===h.o.LOADED&&Xa(T,s).length>0),[T,s,v]),I=(0,l.useMemo)((()=>(0,f.x0)()),[]);return r().createElement(Da,{config:t},r().createElement(_a,{title:_,infoTooltipTitle:a},$e(c)&&r().createElement(ka,null),D&&r().createElement(oa,{config:t,exportLoadingId:I})),r().createElement(xa,{data:T,loadingState:je([v,w]),onRefresh:R,className:n.timeSeriesContent},(e=>{let{data:t,width:a,height:l}=e;return r().createElement(r().Fragment,null,(0,m.has)(I,d)&&r().createElement(qt.Z,null),r().createElement(nl,{infoLabel:A,dateRange:s,chartData:t,percentKey:u.N0y.FILL_RATE,dataKey:u.s9T.EXISTS,areaKeys:[Qt]}),r().createElement(er,{width:a,height:l-36,data:t,lineKeys:rr,areaKeys:[Qt],getTooltip:ir,getColor:nr,yAxisLabel:ne().text("% of profiles"),dateRange:s,changeZoom:p}))})))},cr=e=>{let{config:t}=e;const a=Ze(t),{showErrorBands:l}=te(),n=r().createElement(Tt,{title:ne().text("Fill rate"),data:[{label:`${ne().text("Exists")}:`,value:ne().text("Profiles with data")},{label:`${ne().text("Missing")}:`,value:ne().text("Profiles without data")},...a&&l?[{value:ne().text('Anomaly detection is the process of analyzing company data to\nfind data points that don\'t align with standard data patterns. The "Error Band" depicts the expected range.')}]:[]],DataRenderer:Ot});return r().createElement(r().Fragment,null,a?r().createElement(or,{config:t,infoTooltipTitle:n}):r().createElement(Wa,{config:t,infoTooltipTitle:n}))},sr={[u.dC6.UNIQUE]:"#4BAFFF",[u.dC6.NOT_UNIQUE]:"#C34980"},dr=e=>sr[e]||(0,u.f4_)(e),pr=(0,m.map)((e=>{let{group:t}=e;return dr(t)})),ur=e=>({[u.dC6.UNIQUE]:ne().text("Unique"),[u.dC6.NOT_UNIQUE]:ne().text("Not unique")}[e]||e),mr=(0,m.pipe)(Object.entries,(0,m.map)((e=>{let[t,a]=e;return{label:ur(t),group:t,value:a}})),(0,m.sortBy)((e=>Object.values(u.dC6).indexOf(e.group))),Re),fr=(0,m.propOr)({},"uniqueness"),hr=(0,m.pipe)(fr,mr,(0,m.when)(Ae,(0,m.always)([])),(0,m.converge)(((e,t)=>({chartData:e,colors:t})),[m.identity,pr])),yr=e=>{let{config:t,infoTooltipTitle:a}=e;const{data:l,state:n,reload:i}=jt(hr),{chartData:o,colors:c}=l;return r().createElement(Ya,{data:o,colors:c,config:t,state:n,onRefresh:i,infoTooltipTitle:a})},gr=[u.dC6.UNIQUE,u.dC6.NOT_UNIQUE],Er=[u.N0y.UNIQUENESS],vr=()=>dr(u.dC6.UNIQUE),xr=e=>{let{active:t,payload:a}=e;if(t&&a&&a.length){var l;const{payload:e}=a[0],t=e.uniqueness,n={[u.dC6.UNIQUE]:t,[u.dC6.NOT_UNIQUE]:+(100-t).toFixed(2)},i=(0,m.pipe)((0,m.pick)(gr),(0,m.when)(et,(0,m.always)({})),mr,(0,m.map)((e=>(0,m.assoc)("percent",n[e.group],e))),(0,m.map)((e=>{let{label:t,percent:a,value:l}=e;return{label:t,value:`${_e(a)} (${ne().number(l)})`}})))(e),o=qe(e,gr);return r().createElement(Tt,{data:i,title:o},(null===(l=e.anomaly)||void 0===l?void 0:l.length)>0&&r().createElement(tr,{data:e.anomaly,color:vr()}))}},br=e=>{let{config:t,infoTooltipTitle:a}=e;const n=ar(),{entityType:i,detailedAttributeType:o,period:c,dateRange:s,exportLoadingIds:d}=K(),{changeZoom:p}=X(),y=i.uri,g=o.fieldName,{data:E,state:v,reload:b}=qa({entityTypeUri:y,attributeFieldName:g,period:c,metrics:Er});x({state:v,reload:b,dataLevel:u.yn8.ATTRIBUTE_TYPE});const{data:O,state:w,reload:S}=jt(hr),T=(0,l.useMemo)((()=>(0,m.pipe)(We(fr),Be(u.N0y.UNIQUENESS),Qe(c,O.chartData,u.N0y.UNIQUENESS))(E)),[E,O]),R=(0,l.useCallback)((()=>{v===h.o.ERROR&&b(),w===h.o.ERROR&&S()}),[v,b,w,S]),{title:_}=t,A=`${ne().text("% of unique distinct values")}:`,{showExportButton:N}=te(),D=(0,l.useMemo)((()=>N&&v===h.o.LOADED&&Xa(T,s).length>0),[T,s,N,v]),I=(0,l.useMemo)((()=>(0,f.x0)()),[]);return r().createElement(Da,{config:t},r().createElement(_a,{title:_,infoTooltipTitle:a},$e(c)&&r().createElement(ka,null),D&&r().createElement(oa,{config:t,exportLoadingId:I})),r().createElement(xa,{data:T,loadingState:je([v,w]),onRefresh:R,className:n.timeSeriesContent},(e=>{let{data:t,width:a,height:l}=e;return r().createElement(r().Fragment,null,(0,m.has)(I,d)&&r().createElement(qt.Z,null),r().createElement(nl,{infoLabel:A,dateRange:s,chartData:t,percentKey:u.N0y.UNIQUENESS,dataKey:u.dC6.UNIQUE,areaKeys:[Qt]}),r().createElement(er,{width:a,height:l-36,data:t,lineKeys:Er,areaKeys:[Qt],getTooltip:xr,getColor:vr,yAxisLabel:ne().text("% of distinct values"),dateRange:s,changeZoom:p}))})))},Or=e=>{let{config:t}=e;const a=Ze(t),{showErrorBands:l}=te(),n=r().createElement(Tt,{title:ne().text("Uniqueness analysis"),data:[{label:`${ne().text("Unique")}:`,value:ne().text("Number of values that only appear once and have no duplicates")},{label:`${ne().text("Not unique")}:`,value:ne().text("Number of values that have at least one duplicate in the list")},...a&&l?[{value:ne().text('Anomaly detection is the process of analyzing company data to\nfind data points that don\'t align with standard data patterns. The "Error Band" depicts the expected range.')}]:[]],DataRenderer:Ot});return r().createElement(r().Fragment,null,a?r().createElement(br,{infoTooltipTitle:n,config:t}):r().createElement(yr,{config:t,infoTooltipTitle:n}))};var wr=a(90838);function Sr(){return Sr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Sr.apply(this,arguments)}const Tr=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Sr({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#6663F6"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 14.4h2.411c.016-.205.047-.405.093-.6H8.4v-1.2h3.012c.137-.215.296-.416.472-.6H8.4v-1.2h6v.011a3.896 3.896 0 011.8.287V8.4c0-.66-.54-1.2-1.2-1.2H7.8c-.66 0-1.2.54-1.2 1.2v7.8c0 .66.54 1.2 1.2 1.2h4.083a3.892 3.892 0 01-.979-1.8H8.4v-1.2zm6-4.2h-6V9h6v1.2zm2.58 5.934L18.852 18l-.852.852-1.872-1.872a2.66 2.66 0 01-1.434.42A2.695 2.695 0 0112 14.7c0-1.494 1.206-2.7 2.7-2.7 1.494 0 2.7 1.206 2.7 2.7 0 .528-.156 1.014-.42 1.434zm-2.28.066a1.5 1.5 0 10-.001-3.001A1.5 1.5 0 0014.7 16.2z",fill:"#fff"}))};function Rr(){return Rr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Rr.apply(this,arguments)}const _r=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Rr({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#1DACF5"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4 9.6H9.3L12 6.9l2.7 2.7h-2.1v3.846l-3.6 3.6-.846-.846 3.246-3.246V9.6zm4.446 6.6l-.846.846L12.954 15l.846-.846 2.046 2.046z",fill:"#fff"}))};function Ar(){return Ar=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ar.apply(this,arguments)}const Nr=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Ar({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#7F22FD"}),r().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 Dr(){return Dr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Dr.apply(this,arguments)}const Ir=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Dr({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#4B31E9"}),r().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 Cr(){return Cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Cr.apply(this,arguments)}const Mr=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Cr({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#80D2FC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6c-3.312 0-6 2.688-6 6s2.688 6 6 6 6-2.688 6-6-2.688-6-6-6zm-.6 4.96V9h1.2v1.96l1.698-.98.6 1.04L13.2 12l1.698.98-.6 1.04-1.698-.98V15h-1.2v-1.96l-1.698.98-.6-1.04L10.8 12l-1.698-.98.6-1.04 1.698.98zM7.2 12c0 2.646 2.154 4.8 4.8 4.8s4.8-2.154 4.8-4.8-2.154-4.8-4.8-4.8A4.806 4.806 0 007.2 12z",fill:"#fff"}))},kr=(0,o.makeStyles)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),Lr={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let Pr=function(e){return e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal",e}({});const Fr=e=>{let{detailType:t,size:a=Lr.NORMAL,variant:l=Pr.NORMAL}=e;const n=kr(a),i=xt()(n.icon,n[l]);switch(t){case nt.RDM_LOOKUP:return r().createElement(Nr,{className:i});case nt.CONTAIN_VF:return r().createElement(Tr,{className:i});case nt.INCLUDED_IN_MATCHING:return r().createElement(_r,{className:i});case nt.REFERENCE:return r().createElement(Ir,{className:i});case nt.REQUIRED:return r().createElement(Mr,{className:i});default:return null}},Br=(0,o.makeStyles)({root:{height:"24px",maxWidth:"calc(100% - 8px)",margin:"0 4px 4px 0",borderRadius:"12px",backgroundColor:"rgb(224, 224, 224)"},label:{fontSize:"12px",paddingLeft:"8px",paddingRight:"9px"},badQuality:{backgroundColor:"rgba(255, 23, 68, 0.12)"}});function jr(){return jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},jr.apply(this,arguments)}function zr(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Ur(e,t,a[t])}))}return e}function Ur(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Vr=e=>{let{detailType:t,classes:a}=e,l=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["detailType","classes"]);const n=Br(),{chartsData:{data:i,state:o}}=pe();let c=Pr.NORMAL;const s=o===h.o.LOADING,d=(e=>{var t;return 0===(null==e||null===(t=e.fillRate)||void 0===t?void 0:t[u.s9T.MISSING])})(i);return t===nt.REQUIRED&&(s&&(c=Pr.LOADING),s||d||(c=Pr.BAD_QUALITY)),r().createElement(Ia.Z,jr({classes:zr({root:xt()(n.root,{[n.badQuality]:t===nt.REQUIRED&&!s&&o!==h.o.INIT&&!d}),label:n.label},a),label:mt(t),icon:r().createElement(Fr,{detailType:t,variant:c})},l))},Hr=(0,o.makeStyles)({root:{display:"flex",flexWrap:"wrap",flexGrow:1},rootTimeRange:{marginLeft:"40px"}}),Yr=e=>{let{details:t,chipClasses:a={}}=e;const l=Hr(),{period:n}=K();return r().createElement("div",{className:xt()(l.root,{[l.rootTimeRange]:$e(n)})},Object.entries(t||{}).filter((e=>{let[,t]=e;return t})).map((e=>{let[t]=e;return r().createElement(Vr,{key:t,detailType:t,classes:a})})))},Wr=(0,o.makeStyles)({header:{display:"flex",paddingBottom:"16px"},info:{display:"flex",flexDirection:"column","&:not(:last-child)":{borderRight:"1px solid rgba(0,0,0,0.12)"}},entitySummary:{"&:not(:last-child)":{paddingRight:"48px",marginRight:"16px"}},attributeTypeSummary:{"&:not(:last-child)":{paddingRight:"24px",marginRight:"24px"}},infoTitle:{color:"rgba(0,0,0,0.54)",fontSize:"12px",lineHeight:"16px"},infoContent:{fontSize:"30px",lineHeight:"35px",padding:"4px 0 0",display:"flex",alignItems:"center"},attributeTypeIconWrapper:{width:"32px",height:"33px",background:"rgba(0, 0, 0, 0.05)",borderRadius:"4px",position:"relative",marginRight:"12px",flexShrink:0,"& svg":{position:"absolute",transform:"translate(-50%, -50%)",top:"50%",left:"50%"}},totalLoading:{padding:"4px 8px"},clickable:{color:"#000066",cursor:"pointer"},summaryWrapper:{display:"flex"}}),Gr=e=>{let{title:t,children:a,className:l,onClick:n,dataReltioId:i}=e;const o=Wr();return r().createElement("div",{className:xt()(o.info,l),onClick:n,"data-reltio-id":i},r().createElement("div",{className:o.infoTitle},t),r().createElement("div",{className:o.infoContent},a))};function Zr(){return Zr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Zr.apply(this,arguments)}const qr=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Zr({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg1279746712a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"15",height:"8"},r().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"})),r().createElement("g",{mask:"url(#svg1279746712a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function $r(){return $r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},$r.apply(this,arguments)}const Qr=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",$r({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg208732808a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"14"},r().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"})),r().createElement("g",{mask:"url(#svg208732808a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Kr(){return Kr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Kr.apply(this,arguments)}const Xr=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Kr({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg1638934380a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},r().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"})),r().createElement("g",{mask:"url(#svg1638934380a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Jr(){return Jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Jr.apply(this,arguments)}const en=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Jr({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().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 tn(){return tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},tn.apply(this,arguments)}const an=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",tn({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg924767730a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},r().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"})),r().createElement("g",{mask:"url(#svg924767730a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function ln(){return ln=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ln.apply(this,arguments)}const rn=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",ln({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg3578961193a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},r().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"})),r().createElement("g",{mask:"url(#svg3578961193a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))},nn=(0,o.makeStyles)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}}}),on={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},cn=e=>{let{type:t,size:a=on.SMALL}=e;const l=nn(a);switch(Ie(t)){case ye.STRING:return r().createElement(rn,{className:l.icon});case ye.FLOAT:return r().createElement(Xr,{className:l.icon});case ye.INTEGER:return r().createElement(en,{className:l.icon});case ye.BOOLEAN:return r().createElement(qr,{className:l.icon});case ye.DATE:return r().createElement(Qr,{className:l.icon});case ye.SSN:return r().createElement(an,{className:l.icon});default:return r().createElement(rn,{className:l.icon})}},sn=e=>{let{detailedAttributeType:t}=e;const a=Wr(),{entityType:n,period:i}=K(),o=(0,l.useMemo)((()=>[n]),[n]),c=fe(o).getEntityCount(n.uri),s=c?ne().number(c):r().createElement(wr.Z,{size:24,className:a.totalLoading});return r().createElement("div",{className:xt()({[a.summaryWrapper]:$e(i)})},r().createElement("div",{className:a.header},r().createElement(Gr,{title:ne().text("Active profiles"),className:a.attributeTypeSummary},r().createElement(Zt.Z,{title:r().createElement(Tt,{data:[{label:ne().text("Entities with exists attribute"),value:ne().number(c)}]})},r().createElement("div",null,s))),r().createElement(Gr,{title:ne().text("Data type"),className:a.attributeTypeSummary},(d=t.type,r().createElement(r().Fragment,null,r().createElement("div",{className:a.attributeTypeIconWrapper},r().createElement(cn,{type:d,size:on.NORMAL})),ne().text(d))))),r().createElement(Yr,{details:t.details}));var d},dn=e=>{let{entityType:t}=e;const{chartsData:{data:a,state:l}}=pe(),n=((e,t)=>{const a=(0,u.WN0)(e,t)||[],l=e=>e.reduce(((e,t)=>{const a=null==t?void 0:t.children;return null!=a&&a.length?[...e,t,...l(a)]:[...e,t]}),[]);return l(a).length})((0,w.useSelector)(T.ZP.selectors.getMetadata),t),{activeProfiles:i=0,inactiveProfiles:o=0,sourceSystems:c=0}=(null==a?void 0:a.summary)||{},s=e=>l===h.o.LOADING?r().createElement(wr.Z,{size:24,className:d.totalLoading}):ne().number(e),d=Wr(),p=Gt(Pe);return r().createElement("div",{className:d.header},r().createElement(Gr,{title:ne().text("Active profiles"),className:xt()(d.entitySummary,d.clickable),onClick:()=>p(u.Ng6.ACTIVE_ONLY,u.Ng6.ACTIVE_ONLY),dataReltioId:"reltio-dq-dashboard-entitylevel-summary-activeProfiles"},s(i)),r().createElement(Gr,{title:ne().text("Inactive profiles"),className:xt()(d.entitySummary,d.clickable),onClick:()=>p(u.Ng6.INACTIVE_ONLY,u.Ng6.INACTIVE_ONLY),dataReltioId:"reltio-dq-dashboard-entitylevel-summary-inactiveProfiles"},s(o)),r().createElement(Gr,{title:ne().text("Attributes"),className:d.entitySummary},ne().number(n)),r().createElement(Gr,{title:ne().text("Source systems"),className:d.entitySummary},s(c)))},pn=(0,o.makeStyles)({content:{padding:"0 16px",marginTop:"4px"}}),un=e=>{let{config:t}=e;const a=pn(),{detailedAttributeType:n,entityType:i}=K(),o=(0,l.useContext)(tt)===u.yn8.ATTRIBUTE_TYPE,c=o?(0,u.idV)(n.label):`${ne().text("Entity")}: ${(0,u.idV)(i.label)}`;return r().createElement(Da,{config:t},r().createElement(_a,{title:c}),r().createElement(pa.Z,{className:a.content},o?r().createElement(sn,{detailedAttributeType:n}):r().createElement(dn,{entityType:i})))};var mn=a(65298);const fn=(0,o.makeStyles)({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}});function hn(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){yn(e,t,a[t])}))}return e}function yn(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const gn=sa.B9.ERROR,En=e=>{let{config:t,errorData:a,titleChildren:l,infoTooltipTitle:n,onRefresh:i}=e;const{id:o,title:c}=t,s=fn();return r().createElement(mn.Z,{id:o},r().createElement(_a,{title:c,infoTooltipTitle:n},l),r().createElement(pa.Z,{className:s.viewContent},r().createElement(ca.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},r().createElement(Ea,{errorData:hn({Icon:gn},a),onRefresh:i,variant:ha.SMALL}))))};function vn(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){xn(e,t,a[t])}))}return e}function xn(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const bn=e=>(0,m.pipe)((0,m.propOr)({},e),Object.entries,(0,m.map)((e=>{let[t,a]=e;return{label:t,group:t,value:a}})),Re),On=e=>{let{sortDirection:t,sortField:a}=e;return(e,l)=>"asc"===t?e[a]>l[a]?1:-1:e[a]<l[a]?1:-1},wn=(e,t)=>t.filter((t=>e.find((0,m.propEq)("uri",t.group)))),Sn=(e,t)=>e.find((0,m.propEq)("uri",t)),Tn=(0,m.curry)(((e,t)=>(0,m.pipe)(wn,(0,m.map)((t=>{var a;return vn({},t,{label:null===(a=Sn(e,t.group))||void 0===a?void 0:a.name})})))(e,t))),Rn=(0,m.pipe)((0,m.map)(rt),(0,m.slice)(1,1/0),(0,m.join)(" / ")),_n=(0,m.curry)(((e,t,a)=>(0,m.pipe)(wn,(0,m.map)((a=>{const{name:l,attribute:r}=Sn(e,a.group),n=(0,u.X3M)(t,r);return vn({},a,{label:l,attributeLabel:Rn(n)})})))(e,a))),An=e=>(0,m.pipe)(bn("dataValidationFunctions"),Tn(e)),Nn=bn("frequency"),Dn=bn("pattern"),In=(e,t)=>`${e}/analyticsAttributes/AttributeValidations/analyticsAttributes/${t}`,Cn=(e,t)=>{let{name:a,uri:l}=e;return[{filter:u.j5E.EQUALS,values:[[a]],fieldName:"analyticsAttributes.AttributeValidations.FunctionName",uri:In(t,"FunctionName")},{filter:u.j5E.EQUALS,values:[[l]],fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",uri:In(t,"FunctionURI")}]},Mn=(0,m.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Ut({fieldName:`${a.fieldName}`,value:t,entityTypeUri:l})})),kn=(0,m.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:u.j5E.ON,values:[t],fieldName:a}]})),Ln=(0,m.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:u.j5E.EQUALS,values:[[t]],fieldName:a}]})),Pn=(0,m.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:u.j5E.EQUALS,values:[(0,u.gxP)(t)],fieldName:a}]})),Fn=e=>{let{detailedAttributeType:t,entityTypeUri:a}=e;return(0,m.cond)([[u.j5n,(0,m.always)(Mn)],[u.Lt4,(0,m.always)(De(kn))],[u.T6Y,(0,m.always)(De(Pn))],[m.identity,(0,m.always)(De(Ln))]])(t.type)({detailedAttributeType:t,entityTypeUri:a})},Bn=(0,m.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Ut({fieldName:`${a.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:l})})),jn=e=>`(${e.length>=100?ne().text("top")+" 100":e.length})`;function zn(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Un(e,t,a[t])}))}return e}function Un(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Vn="noData",Hn=e=>{let{functionsCount:t,period:a}=e;return[{id:"attributeLabel",label:ne().text("Attribute"),width:.23,sortable:!0},{id:"label",label:ne().text("Validation function"),secondLabel:`(${t})`,width:.37,sortable:!0},zn({id:"value",label:ne().text("Profiles"),width:.4,sortable:!0},$e(a)?{getBarColor:u.jLA}:{})]},Yn=e=>{let{functionsCount:t,period:a}=e;return[{id:"label",label:ne().text("Validation function"),secondLabel:`(${t})`,width:.4,sortable:!0},zn({id:"value",label:ne().text("Profiles"),width:.6,sortable:!0},$e(a)?{getBarColor:u.jLA}:{})]},Wn=(e,t,a)=>(e===u.yn8.ATTRIBUTE_TYPE?Yn:Hn)({functionsCount:t.length,period:a}),Gn=e=>{const{data:t}=(0,m.propOr)({},"violatedProfiles",e);return(0,m.when)((0,m.either)(m.isNil,m.isEmpty),(0,m.always)({[Vn]:null}))(t)};var Zn=a(55485);function qn(){return qn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},qn.apply(this,arguments)}const $n=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",qn({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),r().createElement("mask",{id:"svg1830866123a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},r().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),r().createElement("g",{mask:"url(#svg1830866123a)"},r().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},r().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"}),r().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"})),r().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"29.318",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),r().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"}),r().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"}),r().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"}),r().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"}),r().createElement("rect",{opacity:".5",x:"19.854",y:"17.689",width:"29.914",height:"4.126",rx:"2.063",fill:"#645F6D"}),r().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"43.573",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),r().createElement("rect",{x:"19.854",y:"42.072",width:"7.105",height:"7.127",rx:"3.552",fill:"#E3EBF4"}),r().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"}),r().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"}),r().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"}),r().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"57.828",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),r().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"}),r().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"}),r().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"}),r().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"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 3.094h88V88H0V3.094z",fill:"url(#paint0_linear_3200_4362)"}),r().createElement("path",{d:"M79.893 76.85H21.308v14.184h58.585V76.85z",fill:"#F5C056"}),r().createElement("path",{d:"M79.893 76.85H74.6v14.184h5.293V76.85z",fill:"#E99B00"}),r().createElement("path",{d:"M48.73 76.893H26.283v14.184H48.73V76.893z",fill:"#FFEA5A"}),r().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"}),r().createElement("path",{d:"M61.253 70.383H39.949v2.663h21.304v-2.663z",fill:"#FFD264"}),r().createElement("path",{d:"M47.938 70.383h-4.185v2.663h4.185v-2.663z",fill:"#FFEA5A"}),r().createElement("path",{d:"M64.676 73.046h-28.15v3.804h28.15v-3.804z",fill:"#795D1A"}),r().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"}),r().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"}),r().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"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.676 73.046v3.804H50.601v-3.804h14.075z",fill:"#4F350B"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.253 70.383v2.663H50.6v-2.663h10.652z",fill:"#F4B046"}),r().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"}),r().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"}),r().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"}),r().createElement("path",{opacity:".519",d:"M72.665 13.32h-44.51v3.043h44.51v-3.044z",fill:"#F4B046"}),r().createElement("path",{d:"M48.318 73.046h-5.706v3.804h5.706v-3.804z",fill:"#96691F"}),r().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)"}),r().createElement("g",{filter:"url(#filter0_d_3200_4362)"},r().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"})),r().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"}),r().createElement("path",{d:"M56.909 54.302a8.681 8.681 0 100-17.362 8.681 8.681 0 000 17.362z",fill:"#FFCE66"}),r().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"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.202 10.656l10.862 25.341H54.83L43.646 10.705l4.556-.049z",fill:"#F83D3D"})),r().createElement("defs",null,r().createElement("linearGradient",{id:"paint0_linear_3200_4362",x1:"0",y1:"3.094",x2:"0",y2:"88",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),r().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"paint1_linear_3200_4362",x1:"62.25",y1:"10.656",x2:"62.25",y2:"35.935",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#B93131"}),r().createElement("stop",{offset:"1",stopColor:"#831616"})),r().createElement("filter",{id:"filter0_d_3200_4362",x:"40.057",y:"30.77",width:"33.702",height:"33.703",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"3"}),r().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"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3200_4362"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3200_4362",result:"shape"}))))};function Qn(){return Qn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Qn.apply(this,arguments)}const Kn=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Qn({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),r().createElement("mask",{id:"svg355575424a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},r().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),r().createElement("g",{mask:"url(#svg355575424a)"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_3488_11934)"}),r().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)"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),r().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),r().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),r().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),r().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),r().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),r().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"}),r().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"}),r().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"}),r().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),r().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"}),r().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"}),r().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)"}),r().createElement("g",{filter:"url(#filter0_d_3488_11934)",fillRule:"evenodd",clipRule:"evenodd"},r().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"}),r().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"}),r().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"}),r().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"}))),r().createElement("defs",null,r().createElement("linearGradient",{id:"paint0_linear_3488_11934",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),r().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"paint1_linear_3488_11934",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".01"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"paint2_linear_3488_11934",x1:"86.975",y1:"77.519",x2:"49.809",y2:"46.968",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#90A4AE",stopOpacity:"0"}),r().createElement("stop",{offset:"1",stopOpacity:".75"})),r().createElement("filter",{id:"filter0_d_3488_11934",x:"32.168",y:"30.067",width:"53.209",height:"53.716",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dx:"1",dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().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"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3488_11934"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3488_11934",result:"shape"}))))};function Xn(){return Xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Xn.apply(this,arguments)}const Jn=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Xn({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),r().createElement("mask",{id:"svg1954152798a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},r().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),r().createElement("g",{mask:"url(#svg1954152798a)"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_4523_4542)"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M64.543 19.547L84.7 39.704V90.88H32.1L17.875 77.372V19.547h46.668z",fill:"url(#paint1_linear_4523_4542)"}),r().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"}),r().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"}),r().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"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 29.093c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 110 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),r().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"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 60.156c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 110 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),r().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 66.344c0-.57.462-1.031 1.031-1.031h28.059a1.031 1.031 0 010 2.063H37.254c-.57-.001-1.031-.463-1.031-1.032z",fill:"#B6C7DB"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 70.469c0-.57.462-1.031 1.031-1.031h25.508a1.031 1.031 0 010 2.063H37.125c-.57-.001-1.031-.463-1.031-1.032z",fill:"#979797"}),r().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 35.406c0-.57.461-1.031 1.03-1.031h28.06a1.031 1.031 0 010 2.063h-28.06c-.569 0-1.03-.462-1.03-1.032z",fill:"#B6C7DB"}),r().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"}),r().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),r().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),r().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),r().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),r().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),r().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),r().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 45.719c0-.57.461-1.032 1.03-1.032h28.06a1.031 1.031 0 010 2.063h-28.06c-.569 0-1.03-.462-1.03-1.031z",fill:"#B6C7DB"}),r().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"}),r().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"}),r().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),r().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"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M19.938 12.719c0-1.14.923-2.063 2.062-2.063h24.063a2.062 2.062 0 010 4.125H22a2.062 2.062 0 01-2.063-2.062zM50.875 12.719c0-1.14.923-2.063 2.063-2.063h3.437a2.062 2.062 0 110 4.125h-3.438a2.062 2.062 0 01-2.062-2.062z",fill:"#979797"}),r().createElement("g",{filter:"url(#filter0_d_4523_4542)"},r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#4A90E2"}),r().createElement("path",{opacity:".15",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#4A90E2"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#4A90E2"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#4A90E2"}),r().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#61A3F1"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.33 66.066 75.41h-2.029l-7.582-7.582 1.006-3.178.837-18.201z",fill:"url(#paint2_linear_4523_4542)"}),r().createElement("g",{filter:"url(#filter1_d_4523_4542)"},r().createElement("circle",{cx:"57.406",cy:"47.781",r:"1.719",fill:"#fff"})),r().createElement("g",{filter:"url(#filter2_d_4523_4542)"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M55.688 53.969a1.719 1.719 0 113.438 0v12.375a1.719 1.719 0 11-3.438 0V53.969z",fill:"#fff"}))),r().createElement("defs",null,r().createElement("linearGradient",{id:"paint0_linear_4523_4542",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),r().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"paint1_linear_4523_4542",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".01"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"paint2_linear_4523_4542",x1:"77.079",y1:"63.788",x2:"62.929",y2:"54.707",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".01"}),r().createElement("stop",{offset:"1"})),r().createElement("filter",{id:"filter0_d_4523_4542",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().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"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4523_4542"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4523_4542",result:"shape"})),r().createElement("filter",{id:"filter1_d_4523_4542",x:"51.688",y:"44.063",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().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"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4523_4542"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4523_4542",result:"shape"})),r().createElement("filter",{id:"filter2_d_4523_4542",x:"51.688",y:"50.25",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().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"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4523_4542"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4523_4542",result:"shape"}))))},ei=(0,o.makeStyles)((e=>({title:{whiteSpace:"nowrap",height:"24px",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"},titleCount:{fontSize:"14px",overflow:"hidden",lineHeight:"20px",textOverflow:"ellipsis"},viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"},countProfiles:{color:e.palette.text.primary,fontWeight:700},chartInfoPanel:{padding:"0 12px"}})));let ti=function(e){return e.DVF_NOT_SUPPORTED="dvfNotSupported",e.DVF_NOT_CONFIGURE="dvfNotConfigured",e.DATA_VALID="dataValid",e.PERMISSION_DENIED="permissionDenied",e}({});const ai=e=>{let{chartType:t,dataLevel:a,title:l,infoTooltipTitle:n,titleChildren:i,dvfConfigLink:o,config:c}=e;const s=ei();let d,p,m;const f=a===u.yn8.ATTRIBUTE_TYPE?ne().text("attribute type"):ne().text("entity type");switch(t){case ti.DVF_NOT_SUPPORTED:d=Jn,m=ne().text("Data validation functions are not supported for\nReference attributes at this time.");break;case ti.DVF_NOT_CONFIGURE:d=Kn,p=ne().text("If we spot any validation issues, we’ll display them here."),m=r().createElement(r().Fragment,null,r().createElement(Zn.Z,{href:o,target:"_blank",component:o?"a":"span",color:o?"primary":"inherit",underline:o?"hover":"none","data-reltio-id":"reltio-dq-dashboard-define-dvf-link"},`${ne().text("Define some data validation functions")} `),ne().text("for this ${dataSourceLabel} (or ask your Tenant Admin).",{dataSourceLabel:f}));break;case ti.DATA_VALID:d=$n,p=ne().text("We didn’t spot any validation issues for this ${dataSourceLabel}.\nYou can kick back and enjoy a cold one.",{dataSourceLabel:f}),m=ne().text("Nice one!");break;case ti.PERMISSION_DENIED:d=sa.B9.ERROR,p=ne().text("Please contact your Tenant Admin to change permissions"),m=ne().text("You don’t currently have permission to view this chart")}return r().createElement(Da,{config:c},r().createElement(_a,{title:l,infoTooltipTitle:n},i),r().createElement(pa.Z,{className:s.viewContent},r().createElement(ca.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=0}=e;return r().createElement(Ea,{height:t,errorData:{Icon:d,title:m,message:p}})}))))},li=e=>{let{dvfs:t,errorCode:a,state:r}=e;const n=(0,l.useContext)(tt),{detailedAttributeType:i}=K();return(0,l.useCallback)(((e,l)=>{const o=r===h.o.LOADED&&e===h.o.LOADED?h.o.LOADED:r===h.o.ERROR||e===h.o.ERROR?h.o.ERROR:h.o.LOADING,c=n===u.yn8.ATTRIBUTE_TYPE,s=a===u.Xt7.ACCESS_DENIED,d=c&&ht(i),p=a===u.Xt7.DVF_NOT_CONFIGURED||0===(null==t?void 0:t.length)&&o!==h.o.ERROR&&r===h.o.LOADED,m=o===h.o.LOADED&&(null==t?void 0:t.length)>0&&!l;return{type:d?ti.DVF_NOT_SUPPORTED:p?ti.DVF_NOT_CONFIGURE:m?ti.DATA_VALID:s?ti.PERMISSION_DENIED:void 0,chartState:o}}),[t,a,r,n,i])},ri=e=>{let{onlyActive:t=!0}=e;const{dvfs:a,dvfConfigLink:r}=(0,l.useContext)(ce),n=(0,l.useContext)(tt),{detailedAttributeType:i}=K(),{data:o,state:c,reload:s,errorCode:d}=a,p=n===u.yn8.ATTRIBUTE_TYPE,f=(0,l.useMemo)((()=>(p?((e,t)=>(e||[]).filter((0,m.propEq)("attribute",t)))(o,null==i?void 0:i.uri):o)||[]),[p,o,null==i?void 0:i.uri]);return{dvfs:(0,l.useMemo)((()=>t?f.filter((0,m.propEq)("status",u.lVm.ACTIVE)):f),[f,t]),dvfConfigLink:r,state:c,reload:s,errorCode:d}};var ni=a(45108),ii=a(92332);const oi=(0,m.pipe)((0,m.split)("|"),(e=>{let[t,a]=e;return{label:t,maxValue:a}})),ci=(e,t)=>(0,m.is)(Number,t[e])?ne().number(t[e]):t[e],si=e=>{let{children:t,handler:a,handleWidth:n=!0}=e;const i=(0,l.useRef)();return r().createElement(ca.Z,{handleWidth:n,onResize:()=>{return a((e=i.current)&&e.children[0].clientWidth<e.children[0].scrollWidth);var e}},r().createElement("div",{style:{overflow:"hidden"},ref:i},t))};function di(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){pi(e,t,a[t])}))}return e}function pi(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const ui={background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",content:'""',height:"100%",pointerEvents:"none",position:"absolute",right:0,top:0,width:"40px"},mi={background:"rgba(0, 0, 0, 0.38)",bottom:0,content:'""',height:"3px",left:0,position:"absolute",width:"1px"},fi=(0,o.makeStyles)((e=>({attribute:{"&:after":ui,alignItems:"center",color:e.palette.text.primary,display:"flex",fontSize:"13px",fontWeight:"normal",height:"100%",lineHeight:"15px",overflow:"hidden",padding:"0 16px",whiteSpace:"pre"},headCell:{"&>div":{display:"flex",flexDirection:e=>e?"row":"row-revers",flexGrow:1,justifyContent:"flex-start",marginLeft:e=>!e&&"-26px",paddingLeft:"16px",paddingRight:e=>e&&"0"},"&>div>span":{flexGrow:1,justifyContent:e=>e?"flex-start":"flex-end",marginLeft:"0!important",width:"100%"},height:"100%",lineHeight:"47px"},headCellWithRange:{"&>div":{display:"flex",flexDirection:"row-revers",flexGrow:1,justifyContent:"flex-start",padding:"0 10px 0 16px"},"&>div>span":{flexGrow:1,justifyContent:"flex-start!important",width:"100%"},height:"100%",lineHeight:"47px"},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"47px",overflow:"hidden",position:"relative",whiteSpace:"nowrap","&.overflowed:after":ui},labelWrapper:{maxWidth:"90px","&.sortable":{maxWidth:"68px"}},rangeLabel:{"&:first-child":{flexGrow:1},color:e.palette.text.secondary,fontSize:"12px"},rangeWrapper:{"&:after":di({},mi,{left:"initial",right:0}),"&:before":mi,alignItems:"flex-end",display:"flex",flexGrow:1,lineHeight:"24px",marginLeft:"32px",maxWidth:"calc(100% - 122px)",position:"relative","&.sortable":{height:"100%",maxWidth:"calc(100% - 144px)"}},tooltipTitle:{color:"rgba(255, 255, 255, 0.6)"},tooltipValue:{whiteSpace:"pre-wrap"},popper:{paddingTop:"6px"}}))),hi=(0,o.makeStyles)((e=>({bar:t=>{let{barColor:a}=t;return{borderRadius:"0 !important",minHeight:"16px !important",position:"initial !important",background:a||e.palette.secondary.main}},colorBarContainer:{"&>div":{opacity:1},boxSizing:"border-box",height:"100%",padding:"5px 0 6px",position:"relative",width:"100%"},numberContainer:{alignItems:"center",display:"flex",height:"100%",padding:"0 10px 0 16px"},number:{color:e.palette.text.primary,flexShrink:0,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",marginRight:"32px",overflow:"hidden",textAlign:"right",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"90px"},popper:{paddingTop:"6px"}})));function yi(){return yi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},yi.apply(this,arguments)}function gi(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Ei(e,t,a[t])}))}return e}function Ei(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const vi=e=>{let{headCellData:t,headIndex:a}=e,n=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["headCellData","headIndex"]);const i=fi(0===a),{label:o,maxValue:c}=oi(t.label),s=(0,u.k7L)(Number(c),999),d=!!c,[p,m]=(0,l.useState)(!1),f=r().createElement(si,{handler:m},r().createElement(Zt.Z,{title:p?o:""},r().createElement("div",{className:xt()(i.headLabel,{overflowed:p})},o)));return r().createElement("div",{className:xt()({[i.headCell]:!d,[i.headCellWithRange]:d})},r().createElement(ii.default,yi({},n,{headCellData:gi({},t,{label:d?r().createElement(r().Fragment,null,r().createElement("div",{className:xt()(i.rangeWrapper,{sortable:t.sortable})},r().createElement("span",{className:i.rangeLabel},"0"),r().createElement("span",{className:i.rangeLabel},s)),r().createElement("div",{className:xt()({[i.labelWrapper]:!t.sortable,sortable:t.sortable})},f)):f})})))};var xi=a(59383),bi=a(30488);const Oi=e=>{let{columnsHeaders:t,chartData:a}=e;const l=fi();return r().createElement(Tt,{data:t.map((e=>{let{label:t,id:n}=e;return{label:r().createElement("span",{className:l.tooltipValue},t),value:ci(n,a)}}))})},wi=(0,bi.Z)(((e,t)=>{let{onItemClick:a,columnsHeaders:l}=e,{rowValue:{group:r}}=t;return{onClick:a&&(()=>{a(r)}),columnsHeaders:l}}))((e=>{let{value:t="",columnData:a,rowValue:l,columnsHeaders:n,onClick:i}=e;const{cellClassName:o,variant:c,labelRenderer:s}=a,d=fi(),p=(0,xi.d)(i),m=!!s;return r().createElement(Zt.Z,{title:r().createElement(Oi,{columnsHeaders:n,chartData:l}),followCursor:!0,classes:{popper:d.popper}},r().createElement("div",{className:xt()(d.attribute,p,o),onClick:i},m?r().createElement(s,{variant:c,chartData:l}):u.P6Y.strings.removeLineBreaks(t)))}));var Si=a(89902);const Ti=(0,bi.Z)(((e,t)=>{let{onItemClick:a,columnsHeaders:l}=e,{rowValue:{group:r}}=t;return{onClick:a&&(()=>{a(r)}),columnsHeaders:l}}))((e=>{let{value:t,columnData:{maxValue:a,getBarColor:l},rowValue:n,columnsHeaders:i,onClick:o}=e;const c=hi({barColor:l&&l(n.group)}),s=(0,xi.d)(o),d=0===t?"0":(0,u.k7L)(t,999);return r().createElement(Zt.Z,{title:r().createElement(Oi,{columnsHeaders:i,chartData:n}),followCursor:!0,classes:{popper:c.popper}},r().createElement("div",{className:xt()(c.numberContainer,s),onClick:o},r().createElement(ma.Z,{className:c.number},d),!(0,m.isNil)(a)&&r().createElement("div",{className:c.colorBarContainer},r().createElement(Si.Z,{width:t,maxWidth:a,className:c.bar}))))})),Ri=(0,o.makeStyles)({tableContainer:e=>{let{width:t}=e;return{width:t,display:"flex",flexDirection:"column",flexGrow:1,"& .hoveredRow":{background:"transparent"},"& .hoveredRow:after":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,backgroundColor:"rgba(0,0,0,0.07)",pointerEvents:"none"}}},cellBorder:{borderLeft:"none",borderRight:"none!important"}});function _i(){return _i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},_i.apply(this,arguments)}function Ai(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Ni=(e,t)=>t?`${e} ${t}`:e,Di=e=>{let{width:t,height:a,data:n,columnsOptions:i,basicTableRef:o,onItemClick:c,dataReltioId:s}=e,d=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["width","height","data","columnsOptions","basicTableRef","onItemClick","dataReltioId"]);const p=Ri({width:t,height:a}),u=(0,l.useMemo)((()=>({cellBorder:p.cellBorder})),[p]),f=(0,l.useMemo)((()=>Math.max(...(0,m.pluck)("value",n))),[n]),h=(0,l.useMemo)((()=>i.map((e=>function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Ai(e,t,a[t])}))}return e}({resizable:!1,sortable:!1,headCellRenderer:vi,rowCellValueRenderer:wi,label:Ni(e.label,e.secondLabel),initialWidth:t*e.width},"value"===e.id?{label:Ni(e.label,e.secondLabel).concat(`|${f}`),maxValue:f,rowCellValueRenderer:Ti}:{},(0,m.omit)(["label","width"],e))))),[i,f,t]),y=(0,l.useMemo)((()=>i.map((0,m.pick)(["id","label"]))),[i]),g=(0,l.useMemo)((()=>({onItemClick:c,columnsHeaders:y})),[c,y]);return r().createElement("div",{className:p.tableContainer,"data-reltio-id":s},r().createElement(ni.Z,_i({columnsData:h,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:u,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:g,hoverStateEnabled:!0},d)))},Ii=(0,o.makeStyles)((()=>({layoutItemContent:{padding:"0 0 10px",display:"flex",flexDirection:"column"}}))),Ci=(0,he.Z)((e=>{let{config:t,data:a,title:n,columnsOptions:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,contentChildren:d,state:p,onRefresh:y,dataLevel:g=u.yn8.ATTRIBUTE_TYPE}=e;const E=Ii(),[v,x]=(0,l.useState)("desc"),[b,O]=(0,l.useState)("value"),w=(0,l.useCallback)(((e,t)=>c?c({sortDirection:v,sortField:b})(e,t):On({sortDirection:v,sortField:b})(e,t)),[v,b,c]),S=e=>{x((()=>b===e?(0,k.Dh)(v):v)),O(e)},T=(0,l.useMemo)((()=>[...a.sort(w)]),[w,a]),{showExportButton:R}=te(),_=(0,l.useMemo)((()=>R&&p===h.o.LOADED&&a.length>0),[p,a]),{period:A,exportLoadingIds:N}=K(),D=(0,l.useMemo)((()=>(0,f.x0)()),[]);return r().createElement(Da,{config:t},r().createElement(_a,{title:n,infoTooltipTitle:o},$e(A)&&g===u.yn8.ATTRIBUTE_TYPE&&r().createElement(ka,{disabled:!0}),_&&r().createElement(oa,{config:t,exportLoadingId:D})),r().createElement(xa,{className:E.layoutItemContent,data:T,loadingState:p,onRefresh:y},(e=>{let{data:t,width:a=0,height:l=0}=e;return r().createElement(r().Fragment,null,(0,m.has)(D,N)&&r().createElement(qt.Z,null),d,r().createElement(Di,{data:t,width:a,height:l,columnsOptions:i,sorting:{field:b,order:v},onSort:S,onItemClick:s}))})))})),Mi=e=>{let{isDataValid:t,totalProfiles:a,invalidProfiles:l}=e;const n=ei(),i=t?ne().text("0 profiles"):(0,m.isNil)(l)?null:r().createElement(r().Fragment,null,r().createElement("span",{className:n.countProfiles},(0,u.k7L)(l)),` (${Math.round(l/a*100)}% ${ne().text("out of")} ${(0,u.k7L)(a)})`);return i&&r().createElement(ma.Z,{className:n.titleCount},i)},ki=e=>{const t=ei(),{config:a}=e,n=ri({}),{dvfs:i,dvfConfigLink:o,errorCode:c,reload:s,state:d}=n,p=li(n),f=(0,w.useSelector)(T.ZP.selectors.getMetadata),y=(0,l.useContext)(tt),g=y===u.yn8.ATTRIBUTE_TYPE,{period:E,entityType:v}=K(),x=v.uri,{data:b,state:O,reload:R}=jt(g?An(i):((e,t)=>(0,m.pipe)(bn("dataValidationFunctions"),_n(e,t)))(i,f)),_=!!b.length,{type:A,chartState:N}=p(O,_),D=(0,l.useMemo)((()=>[v]),[v]),I=(e=>{let{entityTypeUri:t,dvfUris:a}=e;const[r,n]=(0,l.useState)(null),i=(0,S._)();return(0,l.useEffect)((()=>{const e=[{fieldName:"type",filter:u.j5E.EQUALS,values:[t]},{fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",filter:u.j5E.EQUALS,values:a}];i((0,u.j_Q)(e)).then((e=>{let{total:t}=e;return n(t)})).catch((()=>n(null)))}),[t,a]),r})({entityTypeUri:x,dvfUris:(0,l.useMemo)((()=>(0,m.pluck)("uri",i)),[i])}),{getEntityCount:C}=fe(D),M=C(x),k=Gt((e=>t=>{let{entityTypeUri:a}=t;return t=>{const l=Sn(e,t);return(0,m.pipe)(Cn,Ne(null,a))(l,a)}})(i)),L=!(N===h.o.ERROR&&c!==u.Xt7.DVF_NOT_CONFIGURED)&&A!==ti.DVF_NOT_CONFIGURE&&N!==h.o.LOADING&&r().createElement(Mi,{isDataValid:ti.DATA_VALID===A,totalProfiles:M,invalidProfiles:I}),P=r().createElement(Tt,{title:ne().text("Profiles with invalid data"),data:[{value:ne().text("Shows the number of profiles that violate active validation functions")}],DataRenderer:Ot}),F=r().createElement("div",{className:t.chartInfoPanel},r().createElement(rl,{label:`${ne().text("Profiles with invalid data")}:`,info:L})),B=Wn(y,b,E),j=(0,l.useCallback)((()=>{d===h.o.ERROR&&s(),O===h.o.ERROR&&R()}),[d,s,O,R]);return A?r().createElement(ai,{config:a,chartType:A,title:ne().text(a.title),infoTooltipTitle:P,dvfConfigLink:o,dataLevel:y}):r().createElement(Ci,{config:a,title:ne().text(a.title),data:b,onItemClick:k,state:N,onRefresh:j,customComparator:On,infoTooltipTitle:P,columnsOptions:B,contentChildren:F,dataLevel:y})},Li=[aa],Pi=(e,t)=>a=>{let{active:l,payload:n}=a;if(l&&n&&n.length){const{payload:a}=n[0],l=(0,m.pipe)((0,m.map)((t=>{const l=Sn(e,t);return{label:(0,u.idV)((null==l?void 0:l.label)||(null==l?void 0:l.name)),value:a[t],group:t}})),(0,m.reject)((0,m.propSatisfies)(m.isNil,"value")))(t),i=qe(a,t);return r().createElement(At,{title:i,data:l,getColor:u.jLA})}},Fi=e=>{const{config:t}=e,{title:a}=t,{period:n,dateRange:i,entityType:o,detailedAttributeType:c,exportLoadingIds:s}=K(),d=ri({onlyActive:!0}),{dvfs:p,dvfConfigLink:y,reload:g,state:E}=d,{changeZoom:v}=X(),b=li(d),O=(0,l.useContext)(tt),w=o.uri,S=null==c?void 0:c.fieldName,{data:T,state:R,reload:_}=qa({entityTypeUri:w,attributeFieldName:S,period:n,metrics:Li}),{data:A,state:N,reload:D}=jt(An(p)),I=(0,l.useMemo)((()=>(0,m.pipe)(We(Gn),Qe(n,A,u.N0y.DATA_VALIDATION),Ke(p))(T)),[T,A]);x({state:R,reload:_,dataLevel:u.yn8.ATTRIBUTE_TYPE});const C=(0,m.pipe)((0,m.reduce)(((e,t)=>e.concat((0,m.keys)(t))),[]),m.uniq,(0,m.without)(["label","group"]))(I),M=C.toString()!==Vn,{type:k,chartState:L}=b(je([R,N]),M),P=r().createElement(Tt,{title:ne().text("Profiles with invalid data over time"),data:[{value:ne().text("Shows the number of profiles that violate active validation functions")}],DataRenderer:Ot}),F=(0,l.useCallback)((()=>{E===h.o.ERROR&&g(),R===h.o.ERROR&&_(),N===h.o.ERROR&&D()}),[E,g,R,_,N,D]),B=r().createElement(ka,null),j=L===h.o.LOADING?h.o.LOADING:je([R,N]),{showExportButton:z}=te(),U=(0,l.useMemo)((()=>z&&R===h.o.LOADED&&Xa(I,i).length>0),[I,i,z,R]),V=(0,l.useMemo)((()=>(0,f.x0)()),[]);return k===ti.DVF_NOT_SUPPORTED||k===ti.PERMISSION_DENIED?r().createElement(ai,{config:t,chartType:k,title:ne().text(a),infoTooltipTitle:P,titleChildren:B,dvfConfigLink:y,dataLevel:O}):r().createElement(Da,{config:t},r().createElement(_a,{title:a,infoTooltipTitle:P},B,U&&r().createElement(oa,{config:t,exportLoadingId:V})),r().createElement(xa,{data:I,loadingState:j,onRefresh:F},(e=>{let{data:t,width:a,height:l}=e;return r().createElement("div",null,(0,m.has)(V,s)&&r().createElement(qt.Z,null),r().createElement(er,{width:a,height:l,data:t,lineKeys:C,getTooltip:Pi(p,C),getColor:u.jLA,yAxisLabel:ne().text("No. of profiles"),isPercent:!1,dateRange:i,changeZoom:v}))})))},Bi=e=>{const{config:t}=e,a=Ze(t);return r().createElement(Da,{config:t},a?r().createElement(Fi,e):r().createElement(ki,e))},ji=e=>{var t;let{config:a}=e;const n=ar(),{data:i,state:o,reload:c}=jt(Nn),s=null===(t=K().detailedAttributeType)||void 0===t?void 0:t.type,d=(0,l.useMemo)((()=>(0,u.Lt4)(s)?((e,t)=>e.map((e=>Se({},e,{label:(0,u.mB6)({dataTypeDefinition:{type:t}},Number(e.label))}))))(i,s):i),[i]),p=Gt(Fn),m=r().createElement(Tt,{title:ne().text("Frequency analysis"),data:[{value:ne().text("Shows the number of times each value occurs")}],DataRenderer:Ot}),f=[{id:"label",label:ne().text("Value"),secondLabel:jn(i),width:.4,cellClassName:xt()({[n.monoFontCell]:(0,u.m6e)(s)})},{id:"value",label:ne().text("Count"),width:.6}];return r().createElement(Ci,{config:a,data:d,title:a.title,infoTooltipTitle:m,onItemClick:p,state:o,onRefresh:c,columnsOptions:f})};var zi=a(80739),Ui=a(24908),Vi=a(81224),Hi=a(40007);const Yi=(0,o.makeStyles)((()=>({labelWrapper:e=>{let{width:t}=e;return{overflow:"hidden",width:`${t}px`,marginTop:"-3px"}},xAxisLabel:{textAlign:"center",whiteSpace:"nowrap",fontSize:"12px",paddingTop:"3px","&::first-letter":{textTransform:"capitalize"},"&:after":{top:"0",right:"0",width:"10px",height:"100%",content:'""',position:"absolute",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}}}))),Wi=e=>{let{width:t,height:a,label:l,x:n,y:i}=e;const o=Yi({width:t}),c=n-t/2;return r().createElement("foreignObject",{x:c,y:i,width:t,height:a},r().createElement("div",{className:o.labelWrapper},r().createElement(Hi.Z,{value:l},r().createElement("div",{className:o.xAxisLabel},l))))},Gi=e=>{const{x:t,y:a,width:l,height:n,payload:i,visibleTicksCount:o}=e,{value:c}=i,s=l/o-4;return r().createElement(Wi,{width:s,height:n,label:c,x:t,y:a})},Zi=e=>{let{showCategories:t=!1,interval:a,barCategoryGap:l,maxBarSize:r,yTickRenderer:n,tickCount:i}=e;return{barChart:{barCategoryGap:l||"10%"},bar:{dataKey:"value",fill:"#0072CE",minPointSize:3,maxBarSize:r||50},xAxis:{tick:t&&Gi,tickLine:!1,interval:a||0,dataKey:"label"},yAxis:{axisLine:!1,tickLine:!1,tick:n||{fill:"#000",fontSize:12},width:60,tickFormatter:Wl,tickCount:i||5},cartesianGrid:{stroke:"#000",strokeOpacity:"0.05",vertical:!1},labelForX:{position:"insideBottom",style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"},offset:t?0:3},labelForY:{angle:270,position:"left",offset:-3,style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"}}}};function qi(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){$i(e,t,a[t])}))}return e}function $i(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Qi=(0,o.makeStyles)((e=>({tooltipWrapper:qi({},e.tooltip,{padding:"4px 8px"})}))),Ki=e=>{var t;let{payload:a,active:l,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}`:"",d=Qi();return l&&r().createElement("div",{className:d.tooltipWrapper},r().createElement(Tt,{data:[{label:s,value:c},{label:ne().text("No of profiles"),value:ne().number(o)}]}))},Xi=(0,o.makeStyles)((()=>({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"}}))),Ji=e=>{let{data:t}=e;const a=Xi();return r().createElement("div",{className:a.chartInfoWrapper},t.map((e=>{let{label:t,value:l,localizedValue:n}=e;return r().createElement("div",{key:t,className:a.chartInfoItem},r().createElement("span",{className:a.chartInfoLabel},t,": "),l!==n?r().createElement(Zt.Z,{title:n},r().createElement("span",{className:a.chartInfoValue},l)):r().createElement("span",{className:a.chartInfoValue},l))})))};var eo=a(43624);function to(){return to=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},to.apply(this,arguments)}const ao=e=>{let{isClickable:t}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["isClickable"]);const l=Xi(),n=t?l.clickable:void 0;return r().createElement(eo.A,to({},a,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},lo=e=>{const{value:t}=e;return t>0?r().createElement(eo.A,e):null};function ro(){return ro=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ro.apply(this,arguments)}const no=e=>{let{data:t,config:a,xAxisLabel:n,yAxisLabel:i,barTooltipTitle:o,infoPanelData:c,infoTooltipTitle:s,onItemClick:d,options:p={},state:u,onRefresh:y}=e;const g=Xi(),{title:E}=a,{cartesianGrid:v,bar:x,xAxis:b,yAxis:O,labelForX:w,labelForY:S,barChart:T}=Zi(p),R=d&&(e=>(null==e?void 0:e.activePayload)&&d(e.activePayload[0].payload.group)),_=R?g.clickable:void 0,A=u===h.o.LOADED&&c.length>0,{showExportButton:N}=te(),D=(0,l.useMemo)((()=>N&&u===h.o.LOADED&&t.length>0),[u,t]),I=(0,l.useMemo)((()=>(0,f.x0)()),[]),{period:C,exportLoadingIds:M}=K();return r().createElement(Da,{config:a},r().createElement(_a,{title:E,infoTooltipTitle:s},$e(C)&&r().createElement(ka,{disabled:!0}),D&&r().createElement(oa,{config:a,exportLoadingId:I})),(0,m.has)(I,M)&&r().createElement("div",{style:{position:"relative"}},r().createElement(qt.Z,null)),A&&r().createElement(Ji,{data:c}),r().createElement(xa,{data:t,loadingState:u,onRefresh:y},(e=>{let{data:t,width:a=0,height:l=0}=e;return r().createElement("div",null,r().createElement(zi.v,ro({width:a,height:l,data:t,onClick:R},T),r().createElement(sl.q,v),r().createElement(fl.u,{content:r().createElement(Ki,{name:o}),cursor:r().createElement(ao,{isClickable:!!R})}),r().createElement(Ui.$,ro({},x,{shape:r().createElement(lo,{className:_})})),r().createElement(pl.B,O,r().createElement(Vi._,ro({},S,{value:i}))),r().createElement(dl.K,b,r().createElement(Vi._,ro({},w,{value:n})))))})))},io=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=jt(Nl),{chartData:i,infoPanelData:o}=a,c=Gt(Pl),s=r().createElement(Tt,{title:ne().text("Length statistics"),data:[{value:ne().text("Measures the string length of values")}],DataRenderer:Ot});return r().createElement(no,{config:t,data:i,xAxisLabel:ne().text("Length of values"),yAxisLabel:ne().text("No. of profiles"),infoPanelData:o,barTooltipTitle:ne().text("Length"),infoTooltipTitle:s,onItemClick:c,state:l,onRefresh:n})};var oo=a(21210);const co=(0,o.makeStyles)({icon:{width:"20px",height:"20px",borderRadius:"4px",fontSize:"14px",marginRight:"8px"},text:e=>{let{color:t}=e;return{backgroundColor:t}},label:e=>{let{color:t}=e;return{backgroundColor:t,flexShrink:0,fontSize:"14px",height:"12px",margin:" 0 8px 0 0",width:"12px"}}}),so="includeSourceIcon",po=e=>{let{chartData:t,variant:a}=e;const{group:l,label:n}=t,i=co({color:(0,u.kW2)(l)});return r().createElement(r().Fragment,null,a===so?r().createElement(oo.Z,{sourceType:l,className:i.icon,classes:{textRoot:i.text}}):r().createElement("div",{className:i.label}),n)};function uo(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){mo(e,t,a[t])}))}return e}function mo(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const fo=e=>{let{config:t}=e;const a=(0,w.useSelector)(T.ZP.selectors.getMetadata),{data:l,state:n,reload:i}=jt((e=>(0,m.pipe)(Rl("crosswalkAnalysis"),(0,m.applySpec)({chartData:(0,m.pipe)((0,m.prop)("chartData"),Le(e)),infoPanelData:(0,m.pipe)((0,m.prop)("infoPanelData"),(0,m.map)((e=>(0,m.assoc)("value",(0,u.k7L)(e.value,999),e))))})))(a)),{chartData:o}=l,c=Gt(Fl),s=r().createElement(Tt,{title:ne().text("Source system analysis"),data:[{value:ne().text("Distribution of source systems contributing to profiles")}],DataRenderer:Ot}),d=[{id:"label",label:ne().text("Source system"),secondLabel:`(${o.length})`,width:.4,sortable:!0,labelRenderer:po,variant:so},{id:"value",label:ne().text("Profiles"),width:.6,sortable:!0}];return r().createElement(Ci,{config:uo({},t),data:o,title:t.title,infoTooltipTitle:s,onItemClick:c,state:n,onRefresh:i,customComparator:On,columnsOptions:d})},ho=e=>{var t;let{config:a}=e;const l=null===(t=K().detailedAttributeType)||void 0===t?void 0:t.type,{data:n,state:i,reload:o}=jt((e=>(0,m.pipe)(Rl("valueDistribution"),Al(e)))(l)),{chartData:c,infoPanelData:s}=n,d=Gt(Ul(l));return r().createElement(no,{config:a,data:c,xAxisLabel:ne().text("Value"),yAxisLabel:ne().text("No. of profiles"),infoPanelData:s,barTooltipTitle:ne().text("Value"),onItemClick:d,state:i,onRefresh:o})},yo=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=jt(Dl),{chartData:i,infoPanelData:o}=a,c=Gt(kl);return r().createElement(no,{config:t,data:i,xAxisLabel:ne().text("Months of the year"),yAxisLabel:ne().text("No. of profiles"),infoPanelData:o,barTooltipTitle:ne().text("Months of the year"),options:{showCategories:!0,barCategoryGap:"20%",interval:"preserveStartEnd"},onItemClick:c,state:l,onRefresh:n})},go=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=jt(Il),{chartData:i,infoPanelData:o}=a,c=Gt(Ml);return r().createElement(no,{config:t,data:i,xAxisLabel:ne().text("Days of the week"),yAxisLabel:ne().text("No. of profiles"),infoPanelData:o,barTooltipTitle:ne().text("Days of the week"),options:{showCategories:!0,barCategoryGap:"25%",interval:"preserveStartEnd"},onItemClick:c,state:l,onRefresh:n})},Eo=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=jt(Cl),{chartData:i,infoPanelData:o}=a,c=Gt(Ll);return r().createElement(no,{config:t,data:i,xAxisLabel:ne().text("Days of the month"),yAxisLabel:ne().text("No. of profiles"),infoPanelData:o,barTooltipTitle:ne().text("Days of the month"),options:{showCategories:!0,interval:1},onItemClick:c,state:l,onRefresh:n})},vo=e=>{let{config:t}=e;const a=ar(),{data:l,state:n,reload:i}=jt(Dn),o=Gt(Bn),c=r().createElement(Tt,{title:ne().text("Pattern analysis"),data:[]}),s=[{id:"label",label:ne().text("Value"),secondLabel:jn(l),width:.4,cellClassName:a.monoFontCell},{id:"value",label:ne().text("Count"),width:.6}];return r().createElement(Ci,{config:t,data:l,title:t.title,infoTooltipTitle:c,onItemClick:o,state:n,onRefresh:i,columnsOptions:s})};function xo(){return xo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},xo.apply(this,arguments)}const bo=e=>{let{xAxisLabel:t,yAxisLabel:a,data:l,getTooltip:n,getBarOpacity:i,onBarSelect:o,width:c,height:s,showTopLabel:d=!1,options:p={},onItemClick:f,getBarColor:h,dataReltioId:y}=e;const g=Xi(),{cartesianGrid:E,xAxis:v,yAxis:x,labelForX:b,labelForY:O,barChart:w,bar:S}=Zi(p),T=(0,m.curry)(((e,t)=>f&&f(e))),R=f?g.clickable:void 0;return r().createElement("div",{"data-reltio-id":y},r().createElement(zi.v,xo({width:c,height:s,data:l},w,{margin:{top:15}}),r().createElement(sl.q,E),r().createElement(fl.u,{content:n,cursor:null}),(e=>{const t=(0,m.pipe)(m.mergeAll,(0,m.omit)(["label","group"]),m.keys)(e),a=(0,m.curry)(((e,a)=>{let{x:l,y:n,width:i,value:o}=a;return d&&e===t.length-1?r().createElement("text",{x:l+i/2,textAnchor:"middle",y:n-5,fontSize:"12px"},(0,u.k7L)(o,999)):null}));return t.map(((e,t)=>r().createElement(Ui.$,{stackId:"all",dataKey:e,opacity:i?i(e):1,fill:h(e),onMouseOver:o(e),onMouseLeave:o(null),key:e,label:a(t),maxBarSize:S.maxBarSize,onClick:T(e),className:R})))})(l),r().createElement(pl.B,x,r().createElement(Vi._,xo({},O,{value:a}))),r().createElement(dl.K,v,r().createElement(Vi._,xo({},b,{value:t})))))};function Oo(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){wo(e,t,a[t])}))}return e}function wo(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const So=(0,o.makeStyles)((e=>({consolidationRateWrapper:{display:"flex"},ratePercent:{fontWeight:700,lineHeight:"20px",overflow:"hidden",textOverflow:"ellipsis"},tableWithSelectedRow:{"& .Table__grid__cell_wrapper_EWDDh":{opacity:.12},"& .Table__grid__cell_wrapper_EWDDh.hoveredRow":{opacity:1}},tooltipWrapper:Oo({},e.tooltip,{padding:"4px 8px"})}))),To=e=>{let{data:t}=e;const a=So(),{totalCrosswalks:l,totalEntities:n}=t.consolidationRate,i=t.consolidationRate.totalCrosswalksBySource.ReltioCleanser||0,o=(100*(1-n/(l-i))).toFixed(1),c="0"==o.split(".")[1]?o.split(".")[0]:ne().number(Number(o));return r().createElement(r().Fragment,null,r().createElement("span",{className:a.ratePercent},c,"% "),r().createElement("span",null,`(${(0,u.k7L)(l-i,999)} ${ne().text("to")} ${(0,u.k7L)(n,999)} ${ne().text("profiles")})`))},Ro=e=>{const{x:t,y:a,payload:{value:l},index:n}=e;return n%2==0?r().createElement("text",{fill:"#000",x:t,y:a,textAnchor:"middle",fontSize:"12px"},Wl(Number(l))):null},_o=e=>"Reltio profiles"===e?"#0072CE":(0,u.kW2)(e),Ao=r().createElement(Tt,{title:ne().text("Consolidation rate"),data:[{value:ne().text("Consolidation rate is the measurement of the total number source profiles versus the number of Reltio profiles after removing duplicates.")},{value:ne().text("Consolidation rate helps to understand the data reduction achieved by matching.")}]}),No=e=>{let{config:t}=e;const a=(0,w.useSelector)(T.ZP.selectors.getMetadata),n=So(),{title:i}=t,[o,c]=(0,l.useState)(),{data:s,state:d,reload:p}=jt(Ol),{data:y}=jt((e=>(0,m.pipe)((0,m.pathOr)({},["consolidationRate"]),(e=>Object.keys((null==e?void 0:e.totalCrosswalksBySource)||[]).reduce(((t,a)=>"ReltioCleanser"!==a?t.concat({label:a,group:a,value:e.totalCrosswalksBySource[a]}):t),[])),Le(e),(0,m.sort)((0,m.descend)((0,m.prop)("value")))))(a)),{chartsData:{data:g}}=pe(),E=Gt(Hl),v=(0,l.useMemo)((()=>{const e=(0,m.pick)(["group","label"],s[0]);for(let t=y.length-1;t>=0;t--)e[y[t].group]=s[0][y[t].group];return[e,s[1]]}),[y,s]),x=(0,l.useCallback)((e=>{let{active:t}=e;if(!o||!t)return"";let l=[];return l="Reltio profiles"===(null==o?void 0:o.key)?[{label:ne().text("Reltio profiles"),value:ne().number(g.consolidationRate.totalEntities)}]:[{label:ne().text("Source system"),value:(0,u.tH7)(a,o.key)},{label:ne().text("Source profiles"),value:ne().number(g.consolidationRate.totalCrosswalksBySource[o.key])}],r().createElement("div",{className:n.tooltipWrapper},r().createElement(Tt,{data:l}))}),[o,g,a]),b=(0,l.useCallback)((e=>()=>{if(e){const t=y.findIndex((0,m.propEq)("group",e));c({rowIndex:t,key:e})}else c(null)}),[c,y]),O=(0,l.useCallback)((e=>{if((0,m.isNil)(e))c(null);else{var t;const a=null===(t=y[e])||void 0===t?void 0:t.group;c({rowIndex:e,key:a})}}),[c,y]),S=e=>{if(!(0,m.isNil)(e)){var t;const a=null===(t=y[e])||void 0===t?void 0:t.group;E(a)}},R=[{id:"label",label:ne().text("Source system"),secondLabel:`(${ne().number(y.length)})`,resizable:!1,labelRenderer:po,width:.3},{id:"value",resizable:!1,label:ne().text("Source profiles"),width:.7}],{showExportButton:_}=te(),A=(0,l.useMemo)((()=>_&&d===h.o.LOADED&&y.length>0),[d,y]),N=(0,l.useMemo)((()=>(0,f.x0)()),[]);return r().createElement(Da,{config:t},r().createElement(_a,{title:i,infoTooltipTitle:Ao},A&&r().createElement(oa,{config:t,exportLoadingId:N})),r().createElement(xa,{data:y,loadingState:d,onRefresh:p},(e=>{let{height:t=0,width:a=0}=e;const l=g.consolidationRate?t-34:t;return r().createElement(r().Fragment,null,g.consolidationRate&&r().createElement(rl,{label:`${ne().text("Consolidation rate")}:`,info:r().createElement(To,{data:g})}),r().createElement("div",{className:xt()(n.consolidationRateWrapper,{[n.tableWithSelectedRow]:!(0,m.isNil)(null==o?void 0:o.rowIndex)&&-1!==(null==o?void 0:o.rowIndex)})},r().createElement(bo,{yAxisLabel:ne().text("No. of profiles"),data:v,getTooltip:x,getBarOpacity:Yl(o),getBarColor:_o,onBarSelect:b,width:256,height:l,options:{showCategories:!0,maxBarSize:40,yTickRenderer:Ro,tickCount:8},onItemClick:E,dataReltioId:"reltio-dq-dashboard-consolidation-rate-barchart",showTopLabel:!0}),r().createElement(Di,{data:y,width:a-256,height:l,columnsOptions:R,sorting:{field:"value",order:"desc"},onRowClick:S,onRowHover:O,hoverRowIndex:null==o?void 0:o.rowIndex,hoverStateEnabled:!0,dataReltioId:"reltio-dq-dashboard-consolidation-rate-tablechart"})))})))};let Do=function(e){return e.RESOLVED="resolved",e.UNRESOLVED="unresolved",e}({});const Io={[Do.RESOLVED]:"#7F22FD",[Do.UNRESOLVED]:"#F085F2"},Co=(0,m.map)((e=>{let{group:t}=e;return Io[t]||(0,u.f4_)(t)})),Mo=e=>{let[t,a]=e;return Re([{value:t.total,label:ne().text("Mapped values"),group:Do.RESOLVED,dataReltioId:"reltio-dq-dashboard-transcode-mapped"},{value:a.total,label:ne().text("Unmapped values"),group:Do.UNRESOLVED,dataReltioId:"reltio-dq-dashboard-transcode-unmapped"}])},ko=e=>[{filter:u.j5E.EQUALS,fieldName:"rdmLookups.resolved",values:[e!==Do.RESOLVED]}],Lo=De((()=>ko)),Po=(0,o.makeStyles)({legendWrapper:{marginTop:"-13px"},bar:{height:"16px"}}),Fo=e=>{let{config:t}=e;const a=Gt(Lo),{data:n,state:i,reload:o}=(()=>{const{entityType:e}=K(),[t,a]=(0,l.useState)(h.o.INIT),[r,n]=(0,l.useState)([]),i=(0,S._)(),o=(0,l.useCallback)((t=>(0,u.j_Q)([{filter:u.j5E.EQUALS,fieldName:"type",values:[e.uri]},{filter:u.j5E.EQUALS,fieldName:"rdmLookups.resolved",values:[t]}])),[e]),c=e=>{console.warn(e),a(h.o.ERROR),n([])},s=e=>{n(e),a(h.o.LOADED)},d=(0,l.useCallback)((()=>(a(h.o.LOADING),n([]),i(Promise.all([o(!0),o(!1)])).then(Mo).then(s).catch(c))),[o]);return(0,l.useEffect)((()=>{d()}),[d]),{data:r,state:t,reload:d}})(),c=Co(n),s=Po(),d=r().createElement(Tt,{title:ne().text("RDM value mapping status"),data:[{value:ne().text("The relative number and percentage of reference data values that have been mapped to canonical values and transcoded for use by Reltio Reference Data Management.")},{label:`${ne().text("Mapped values")}:`,value:ne().text("Values that have been mapped and transcoded")},{label:`${ne().text("Unmapped values")}:`,value:ne().text("Values that have not been mapped and transcoded")}],DataRenderer:Ot});return r().createElement(Ya,{data:n,colors:c,onItemClick:a,classes:{bar:s.bar,legendWrapper:s.legendWrapper},config:t,onRefresh:o,state:i,infoTooltipTitle:d})};function Bo(){return Bo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Bo.apply(this,arguments)}class jo{}jo.getComponent=e=>{let{type:t,config:a,isFullscreen:l,onToggleFullscreen:n}=e;const i={config:a,isFullscreen:l,onToggleFullscreen:n};switch(t){case ve.FILL_RATE:return r().createElement(cr,i);case ve.UNIQUENESS:return r().createElement(Or,i);case ve.SUMMARY:return r().createElement(un,i);case ve.DATA_VALIDATION:return r().createElement(Bi,i);case ve.FREQUENCY:return r().createElement(ji,i);case ve.LENGTH_STATISTIC:return r().createElement(io,i);case ve.CROSSWALK_ANALYSIS:return r().createElement(fo,i);case ve.VALUE_DISTRIBUTION:return r().createElement(ho,i);case ve.MONTH_DISTRIBUTION:return r().createElement(yo,i);case ve.DAY_OF_WEEK_DISTRIBUTION:return r().createElement(go,i);case ve.DAY_OF_MONTH_DISTRIBUTION:return r().createElement(Eo,i);case ve.PATTERN:return r().createElement(vo,i);case ve.CONSOLIDATION_RATE:return r().createElement(No,i);case ve.RDM_TRANSCODE:return r().createElement(Fo,i);default:return r().createElement(En,Bo({},i,{errorData:{message:ne().text("Chart isn't supported for this data type")}}))}};const zo=jo,Uo=e=>{let{layoutItemConfig:t,views:a,onToggleFullscreen:l,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:d}=s;return r().createElement("div",{style:c,className:i},zo.getComponent({type:d,config:s,onToggleFullscreen:l,isFullscreen:n}),o)},Vo=(0,m.map)((0,m.assoc)("isStatic",!0)),Ho={cols:6,rowHeight:10,margin:[12,12]},Yo=(0,l.memo)((e=>{let{views:t,layout:a,layoutOptions:n=Ho}=e;const i=(0,l.useMemo)((()=>Vo(a)),[a]);return r().createElement(Et.Z,{LayoutItem:Uo,views:t,layout:i,layoutOptions:n})}));var Wo=a(85321);const Go=(0,o.makeStyles)({warning:{fontSize:"13px",color:"rgba(0, 0, 0, 0.54)",height:"47px",border:"1px solid rgba(0, 0, 0, 0.12)",margin:"14px 11px 0 12px",display:"flex",alignItems:"center",paddingLeft:"18px",overflow:"hidden",textOverflow:"ellipsis"},errorIcon:{color:"rgba(0, 0, 0, 0.54)",marginRight:"14px"}}),Zo=e=>{let{text:t}=e;const a=Go();return t&&r().createElement("div",{className:a.warning,"data-reltio-id":"dq-warning"},r().createElement(Wo.Z,{className:a.errorIcon}),t)};function qo(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){$o(e,t,a[t])}))}return e}function $o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Qo={position:"absolute",content:'""',top:0,left:0,right:0,zIndex:1},Ko=(0,o.makeStyles)((()=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowX:"hidden",overflowY:"auto",fontFamily:"Roboto, Helvetica, Arial, sans-serif",display:"flex",flexDirection:"column",background:"#EEEEEE"},content:{height:"calc(100% - 56px)",position:"relative"},attributeLevelWrapper:{verticalAlign:"top",width:"auto",height:"100%",flexGrow:1,position:"relative",marginTop:"-12px","&:before":qo({},Qo,{top:"8px",height:"4px",background:"linear-gradient(180deg, #EEEEEE 0%, rgba(238, 238, 238, 0) 100%)",zIndex:1}),"&:after":qo({},Qo,{height:"8px",background:"#EEEEEE"})},navigationWrapper:{display:"flex",padding:"18px 14px 18px 18px",alignItems:"center",gap:"16px"},headerRightSide:{flexGrow:1,display:"flex",flexDirection:"row-reverse",alignItems:"center"},periodSelector:{position:"relative",margin:"0 8px 0 16px",height:"30px",borderRadius:"6px",border:"1px solid rgba(0, 0, 0, 0.12)",flexBasis:"196px",overflow:"hidden"},paper:{boxShadow:"0px 12px 17px 2px rgba(0, 0, 102, 0.06), 0px 5px 32px 4px rgba(0, 0, 102, 0.06), 0px 7px 8px -4px rgba(0, 0, 204, 0.1)","& ul>div":{minWidth:"300px"}},input:{fontSize:"13px",height:"100%",padding:"1px 0 0 16px"},inputRoot:{backgroundColor:"transparent",paddingRight:4,height:"100%"},dropdownIndicator:{width:"18px",height:"18px","& svg":{width:"18px",height:"18px"}},layoutRoot:{overflow:"auto",backgroundColor:"#EEEEEE",height:"100%",flexGrow:1,padding:"0 4px",boxSizing:"border-box"}}))),Xo=e=>{var t;let{config:a,entityType:n}=e;const i=Ko(),{detailedAttributeType:o,searchByOv:c}=K(),{hasRestrictions:s,isTimeSeriesAvailable:d}=te(),p=null===(t=a.layoutsByDataLevel)||void 0===t?void 0:t[u.yn8.ATTRIBUTE_TYPE],f=(0,l.useMemo)((()=>((e,t,a)=>{const l=Ie(t),r=a&&(null==e?void 0:e.timeRange)||(null==e?void 0:e.today),n=a&&Oe[u.yn8.ATTRIBUTE_TYPE].timeRange||Oe[u.yn8.ATTRIBUTE_TYPE].today,i=(0,m.mergeLeft)(r,n);return i[l]||i.default||[]})(p,null==o?void 0:o.type,d&&!c)),[null==o?void 0:o.type,p,c]),h=(0,l.useMemo)((()=>((e,t,a)=>{const l=(0,m.uniqBy)((0,m.prop)("id"),(0,m.concat)((null==e?void 0:e[u.yn8.ATTRIBUTE_TYPE])||[],be[u.yn8.ATTRIBUTE_TYPE]||[])),r=(e=>{switch(e){case ye.INTEGER:case ye.FLOAT:return[ve.SUMMARY,ve.CROSSWALK_ANALYSIS,ve.DATA_VALIDATION,ve.FILL_RATE,ve.FREQUENCY,ve.UNIQUENESS,ve.VALUE_DISTRIBUTION];case ye.BOOLEAN:return[ve.SUMMARY,ve.CROSSWALK_ANALYSIS,ve.DATA_VALIDATION,ve.FILL_RATE,ve.FREQUENCY];case ye.STRING:return[ve.LENGTH_STATISTIC,ve.SUMMARY,ve.CROSSWALK_ANALYSIS,ve.DATA_VALIDATION,ve.FILL_RATE,ve.FREQUENCY,ve.UNIQUENESS];case ye.DATE:return[ve.SUMMARY,ve.CROSSWALK_ANALYSIS,ve.DATA_VALIDATION,ve.FILL_RATE,ve.FREQUENCY,ve.UNIQUENESS,ve.VALUE_DISTRIBUTION];case ye.SSN:return[ve.SUMMARY,ve.CROSSWALK_ANALYSIS,ve.DATA_VALIDATION,ve.FILL_RATE,ve.FREQUENCY,ve.UNIQUENESS,ve.PATTERN];case ye.UNKNOWN:return[ve.SUMMARY,ve.CROSSWALK_ANALYSIS,ve.DATA_VALIDATION,ve.FILL_RATE,ve.FREQUENCY,ve.UNIQUENESS,ve.LENGTH_STATISTIC];default:return[]}})(Ie(t));return Ce({views:l,supportedViews:r,layout:a})})(a.viewsByDataLevel,null==o?void 0:o.type,f)),[a.viewsByDataLevel,null==o?void 0:o.type,f]),y=(0,l.useMemo)((()=>(0,m.pipe)(Me,(e=>ht(o)?(0,m.reject)((0,m.equals)(u.N0y.DATA_VALIDATION))(e):e))(h)),[h,o]),g=gt({entityType:n,detailedAttributeType:o,dataLevel:u.yn8.ATTRIBUTE_TYPE,metrics:y}),{changeChartsData:E}=pe();return(0,l.useEffect)((()=>E(g)),[g]),x({state:g.state,reload:g.reload,dataLevel:u.yn8.ATTRIBUTE_TYPE}),r().createElement(tt.Provider,{value:u.yn8.ATTRIBUTE_TYPE},r().createElement("div",{className:i.layoutRoot},s&&r().createElement(Zo,{text:ne().text("Not seeing the data you expected for this attribute? Contact your tenant admin to verify permissions.")}),r().createElement(Yo,{views:h,layout:f})))};var Jo=a(62553),ec=a(78781);const tc=(0,o.makeStyles)((e=>({breadcrumb:{fontSize:"16px",color:e.palette.text.primary},active:{color:"rgba(0, 0, 102, 1)"},clickable:{cursor:"pointer"}}))),ac=e=>{let{dataLevel:t,onChange:a}=e;const l=tc(),{detailedAttributeType:n}=K(),{setDetailedAttributeType:i}=X();return r().createElement(Jo.Z,{separator:r().createElement(ec.Z,{fontSize:"small"}),"aria-label":"breadcrumb"},[r().createElement(ma.Z,{key:u.yn8.ENTITY_TYPE,className:xt()(l.breadcrumb,{[l.active]:t===u.yn8.ENTITY_TYPE,[l.clickable]:t===u.yn8.ATTRIBUTE_TYPE}),onClick:(e=>()=>{e===u.yn8.ENTITY_TYPE&&i(null),a(e)})(u.yn8.ENTITY_TYPE),"data-reltio-id":"reltio-dq-dashboard-breadcrumb-entity-level"},ne().text("Entity overview"))].concat(t===u.yn8.ATTRIBUTE_TYPE?r().createElement(ma.Z,{key:u.yn8.ATTRIBUTE_TYPE,className:xt()(l.breadcrumb,l.active),"data-reltio-id":"reltio-dq-dashboard-breadcrumb-attribute-level"},null==n?void 0:n.label):[]))},lc=e=>(0,m.pipe)((0,m.find)((0,m.propEq)("index",e)),(0,m.propOr)(0,"width")),rc=(0,m.pluck)("index"),nc=(0,o.makeStyles)((()=>({root:e=>{let{transitionTime:t}=e;return{transition:`left ${t}s ease 0s`,height:"100%",width:"100%",position:"absolute"}},pagesWrapper:e=>{let{pagesCount:t}=e;return{display:"flex",height:"100%",width:100*t+"%"}},page:{display:"flex"}}))),ic=e=>{let{page:t,children:a,pages:n,startSliding:i,endSliding:o}=e;const c=nc({transitionTime:.3,pagesCount:n.length}),[s,d]=(0,l.useState)(0);(0,l.useEffect)((()=>{i&&i(),setTimeout((()=>{d(t),o&&o()}),300)}),[t]);const p=rc(n[t]);return r().createElement(ca.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0},(e=>{let{width:l=250}=e;const i=(e=>{let{pages:t,width:a}=e;return t.reduce(((e,t)=>{const l=t.reduce(((e,t)=>e+((null==t?void 0:t.width)||0)),0);return e.push(t.map((e=>{let{width:t,index:r}=e;return t?{index:r,width:t}:{index:r,width:a-l}}))),e}),[])})({pages:n,width:l}),o=(e=>{let{page:t,pagesSettings:a}=e;const l=rc(a[t]),r=0===t?[]:rc(a[t-1]),n=(0,m.without)(l,r);return 0===t?0:-(0,m.pipe)((0,m.map)((e=>lc(e)(a[t-1]))),m.sum)(n)})({page:t,pagesSettings:i});return r().createElement("div",{className:c.root,style:{left:o}},r().createElement("div",{className:c.pagesWrapper},a.map(((e,a)=>{const l=t!==s||p.includes(a),n=(e=>{let{pagesSettings:t,page:a,pagePartIndex:l}=e;const r=rc(t[a]),n=Math.min(...r),i=Math.max(...r);return l<n||l>i?(0,m.pipe)((0,m.find)(((e,t)=>t!==a)),lc(l))(t):lc(l)(t[a])})({pagesSettings:i,page:t,pagePartIndex:a});return r().createElement("section",{className:c.page,style:{width:n},key:a},l&&e)}))))}))};var oc=a(28319);const cc=(0,o.makeStyles)((e=>({root:{width:"100%",height:"100%",verticalAlign:"top",position:"relative",boxSizing:"border-box"},entityLevelBar:{position:"absolute",top:0,bottom:0,right:"16px",width:"28px",background:"linear-gradient(0deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)), #FFFFFF",boxShadow:"0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.12), 0px 1px 3px rgba(0, 0, 0, 0.2)",color:e.palette.text.secondary,fontWeight:500,fontSize:"14px",writingMode:"vertical-rl",textTransform:"uppercase",cursor:"pointer",padding:"52px 0",marginBottom:"8px",lineHeight:"28px"},expandButton:{position:"absolute",top:"15px",left:"6px",writingMode:"initial",textTransform:"none",maxWidth:"24px",height:"24px",borderRadius:"12px",background:"#fff",boxShadow:"0px 2px 2px rgba(0, 0, 0, 0.14), 0px 3px 1px rgba(0, 0, 0, 0.12), 0px 1px 5px rgba(0, 0, 0, 0.2)",transition:"max-width 0.3s linear",zIndex:2,overflow:"hidden",display:"flex",lineHeight:"28px","&:hover":{maxWidth:"500px"}},expandButtonText:{paddingRight:"8px",fontSize:"12px",lineHeight:"24px",whiteSpace:"nowrap"}}))),sc=e=>{let{showEntityLevel:t,entityType:a}=e;const l=cc(),n=`${ne().text("Entity")}: ${(0,u.idV)(a.label)} ${ne().text("overview")}`;return r().createElement("div",{className:l.root,onClick:t},r().createElement("div",{className:l.entityLevelBar,"data-reltio-id":"reltio-dq-dashboard-entity-level-bar-button"},r().createElement("div",{className:l.expandButton},r().createElement(oc.Z,null),r().createElement("span",{className:l.expandButtonText},n)),ne().text("Entity")))};var dc=a(50166);function pc(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const uc=(0,m.propOr)({},"attributeItem"),mc=(0,m.pipe)((0,m.find)((0,m.pipe)(uc,(0,m.either)(u.YkM,u.Or$),m.not)),uc),fc=e=>(0,m.pipe)(uc,(0,m.propEq)("fieldName",e)),hc=e=>(0,m.filter)((0,m.propEq)("group",e));let yc=function(e){return e.SHOW_EMPTY="showEmpty",e}({});const gc=[{label:ne().text("Show attributes with no data"),value:yc.SHOW_EMPTY,group:"emptiness"}],Ec=(0,m.curry)(((e,t,a)=>{const l=(0,m.head)(hc("emptiness")(e));return(null==l?void 0:l.value)===yc.SHOW_EMPTY?a:a.filter((0,m.pipe)(uc,ct(t)))})),vc=e=>{const t=Object.values(nt);return e.filter((0,m.pipe)((0,m.prop)("value"),(0,m.includes)(m.__,t)))},xc=(0,m.pipe)(uc,(0,m.prop)("fieldName")),bc=(0,m.curry)(((e,t)=>{const a=(0,m.pipe)(hc("details"),vc)(e),l=(e=>(0,m.pipe)((0,m.filter)((0,m.pipe)(uc,(0,m.both)((0,m.prop)("children"),it(e)))),(0,m.map)(xc)))(a)(t);return t.filter((e=>{let{attributeItem:t}=e;return l.some((e=>t.fieldName.startsWith(e)))||ot(a,t)}))})),Oc=(0,m.pipe)((0,m.map)(uc),(0,m.pluck)("fieldName"),m.identity);var wc=a(35488),Sc=a(65643),Tc=a(89507),Rc=a(33286),_c=a(40435);const Ac=(0,o.makeStyles)({root:{paddingRight:"12px",paddingLeft:"20px",display:"flex",flexDirection:"row-reverse"},detailIcon:{marginLeft:"-5px",borderRadius:"50%",padding:"2px",width:"26px",height:"26px",boxSizing:"border-box"},activeIcon:{background:"white"}}),Nc=e=>{let{details:t,classes:a,fillRateData:l,fillRateState:n}=e;const i=Ac(),o=(0,m.prop)("iconRoot",a),c=(0,m.prop)("iconsWrapper",a);return r().createElement("div",{className:xt()(i.root,c)},Object.entries(t||{}).reverse().map((e=>{let[t,a]=e,c=Pr.NORMAL;if(t===nt.REQUIRED){const e=n===h.o.LOADING,t=0===(null==(s=l)||null===(d=s.find((0,m.propEq)("group",u.s9T.MISSING)))||void 0===d?void 0:d.value);e&&(c=Pr.LOADING),e||t||(c=Pr.BAD_QUALITY)}var s,d;return r().createElement("div",{key:t,className:xt()(a&&(o||i.activeIcon),i.detailIcon)},a&&r().createElement(Zt.Z,{title:mt(t)},r().createElement("span",null,r().createElement(Fr,{detailType:t,variant:c,size:Lr.SMALL}))))})))},Dc=(0,o.makeStyles)({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"},popper:{paddingTop:"6px"}});function Ic(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Cc(e,t,a[t])}))}return e}function Cc(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Mc=(0,he.Z)((e=>{let{data:t}=e;const a=Dc(),l=It(t);return Ae(t)?r().createElement("div",{className:a.bar},r().createElement("div",{className:xt()(a.barPart,a.inactiveBarPart)})):r().createElement(Zt.Z,{followCursor:!0,classes:{popper:a.popper},title:r().createElement(At,{title:ne().text("Fill rate"),data:t,getColor:Dt})},r().createElement("div",{className:a.bar},t.map(((e,t)=>r().createElement("div",{key:e.group,className:a.barPart,style:Ic({},ke(e),{background:l[t]})})))))})),kc="rgba(0, 114, 206, 0.12)",Lc=(0,o.makeStyles)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:kc,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:kc}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"},lastLevelSelected:{"&:after":{top:"13px"}}}),Pc=e=>{let{level:t,margin:a,hasChildren:l,isLastLevelItem:n,isCollapsed:i,isSelected:o=!1}=e;const c=Lc(),s=!i&&(t>0||l);return r().createElement("div",{className:c.linesWrapper},((e,t)=>t>0&&e?(0,m.range)(1,t+1):t>1?(0,m.range)(1,t):[])(l,t).map((e=>r().createElement(Rc.Z,{key:e,margin:a,level:e,className:c.line}))),s&&r().createElement(Rc.Z,{margin:a,level:t,className:xt()(c.line,!l&&t>0&&c.horizontalLine,l&&c.parentLine,n&&c.lastLevel,o&&n&&c.lastLevelSelected)}))},Fc=(0,o.makeStyles)((e=>({listItem:{padding:"0 0 0 15px","&:after":{content:'""',left:0,right:0,position:"absolute",bottom:0,height:"1px",background:"rgba(0, 0, 0, 0.05)"}},selectedItem:{background:"white!important",border:"1px solid #000066",boxShadow:"0px 12px 17px -2px rgba(0, 0, 102, 0.06), 0px 5px 32px -4px rgba(0, 0, 102, 0.06), 0px 7px 8px -4px rgba(0, 0, 204, 0.1)",borderRadius:"6px",zIndex:1,paddingLeft:"14px","&:after":{display:"none"}},clickableItem:{cursor:"pointer","&:hover::after":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",backgroundColor:"rgba(0,0,0,0.07)",pointerEvents:"none",zIndex:1}},content:{display:"flex",alignItems:"center",width:"100%",height:"100%",position:"relative"},attribute:{paddingLeft:"9px",boxSizing:"border-box",width:"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",height:"100%",position:"relative",fontSize:"13px"},marginWrapper:{display:"inline-block",height:"100%",position:"relative",width:"100%"},attributeType:{position:"absolute",left:0,top:"8px"},fillRate:{position:"absolute",bottom:"8px",left:0,right:0,zIndex:1},attributeLabel:{padding:"8px 0 0 15px",position:"relative","&:after":{content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}},parentAttributeLabel:{padding:"14px 0 0 13px"},detailsIcon:{background:"white"},collapseIcon:{marginRight:"6px"},iconLoader:{width:"22px",height:"22px",border:"2px solid white",background:"rgba(196, 196, 196, 0.4)",borderRadius:"50%"},iconsLoaderWrapper:{paddingRight:"23px",paddingLeft:"28px",display:"flex"},iconLoaderWrapper:{width:"24px",height:"24px",backgroundColor:"white",borderRadius:"50%",marginRight:"-3px"},fillRateLineLoader:{height:"8px",width:"100%",background:"rgba(196, 196, 196, 0.4)",left:0,right:0,bottom:"8px",zIndex:1,position:"absolute"},iconsWrapper:{paddingRight:"11px"},noData:{"&::before":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",backgroundColor:"rgba(0,0,0,0.07)",pointerEvents:"none",zIndex:1}},noDataLabel:{fontSize:"12px",color:e.palette.text.secondary,lineHeight:"16px",marginTop:"4px"}}))),Bc=e=>{let{detailedAttributeType:t,fillRateData:a,fillRateState:l,style:n,level:i,selected:o=!1,onClick:c,onCollapse:s=k.ZT,isCollapsed:d=!1,isLastLevelItem:p=!1,isLoading:u}=e;const f=Fc(),h=!!t.children,y=!!a,g=!y&&!u,E=rt(t),v=d?Tc.Z:Sc.Z;return r().createElement(wc.ZP,{style:n,selected:o,classes:{selected:f.selectedItem},onClick:h?void 0:()=>{c(t)},component:"div",className:xt()(f.listItem,{[f.clickableItem]:!h,[f.noData]:g})},r().createElement("div",{className:f.content},!h&&r().createElement("div",{className:f.attributeType},r().createElement(cn,{type:t.type})),r().createElement("div",{className:f.attribute},r().createElement(Pc,{level:i,margin:20,hasChildren:h,isLastLevelItem:p,isCollapsed:d,isSelected:o}),r().createElement(Rc.Z,{margin:20,level:i,className:f.marginWrapper},r().createElement(Hi.Z,{value:E},r().createElement("div",{className:xt()(f.attributeLabel,h&&f.parentAttributeLabel)},h&&r().createElement(_c.Z,{size:"XXS",icon:v,onClick:s,className:f.collapseIcon}),E,g&&!h&&r().createElement("div",{className:f.noDataLabel},ne().text("No data"))))),!u&&y&&!h&&r().createElement("div",{className:f.fillRate},r().createElement(Mc,{data:a})),u&&!h&&r().createElement("div",{className:f.fillRateLineLoader})),u?r().createElement("div",{className:f.iconsLoaderWrapper},(0,m.times)((e=>r().createElement("div",{className:f.iconLoaderWrapper,key:`unloadedIcon-${e}`},r().createElement("div",{className:f.iconLoader}))),5)):r().createElement(Nc,{details:t.details,classes:{iconRoot:f.detailsIcon,iconsWrapper:o&&f.iconsWrapper},fillRateData:a,fillRateState:l})))};var jc=a(80653),zc=a(47019),Uc=a(15115),Vc=a(80852),Hc=a(95341);const Yc=(0,o.makeStyles)((e=>({searchWrapper:{padding:"8px 0px 8px 16px",alignItems:"center",display:"flex",flexGrow:1,justifyContent:"flex-end",marginLeft:"-105px"},filterByDetails:{width:"32px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"9px"},searchInput:{borderRadius:"4px",width:"202px",minHeight:"32px!important",justifyContent:"flex-end",alignItems:"center",padding:"0 2px",boxSizing:"border-box","& input":{fontSize:"13px"},"& button":{padding:"2px"}},filledInput:{"& button:last-child":{backgroundColor:"rgba(0, 0, 0, 0.0509804)"}},menu:{width:"300px",paddingTop:"8px"},filterIcon:{color:e.palette.text.secondary},filterIconFilterApplied:{color:"#0072CE"},filterIconWrapper:{width:"32px",height:"32px",borderRadius:"4px",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",position:"relative","&:after":{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"4px",background:"rgba(0, 0, 0, 0.04)"},"&:hover":{"&:after":{content:'""'}}},filterIconWrapperActive:{background:"rgba(0, 0, 0, 0.04)","&:after":{content:'""',background:"rgba(0, 0, 0, 0.04)"}},filterIconWrapperSelected:{background:"rgba(0, 114, 206, 0.12)"},dropdownMenuTitle:{lineHeight:"48px",height:"48px",paddingLeft:"16px"},option:{paddingLeft:"5px",fontSize:"13px",height:"28px",lineHeight:"16px",letterSpacing:"normal",paddingRight:"19px",filter:e=>e?"grayscale(0)":"grayscale(1)",opacity:e=>e?1:.5},typeIconWrapper:{width:"28px",marginLeft:"1px","& svg":{width:"20px",height:"20px"}},valueContainer:{marginLeft:0},counter:{marginLeft:"5px"},optionLabel:{flexGrow:1},groupLabel:{textTransform:"uppercase",margin:"15px 16px 5px",letterSpacing:"0.1px",display:"block"},actionsContainer:{display:"flex",padding:"12px 5px 8px 12px"},clearAllButton:{marginRight:"auto"}}))),Wc=e=>{let{isSelected:t,data:a,onChange:l}=e;const{count:n,label:i,value:o}=a,c=!(0,m.isNil)(n),s=Yc(!c||n>0);return r().createElement(Hc.Z,{className:s.option,component:"div",onClick:()=>l(a),"data-reltio-id":`reltio-dq-dashboard-option-${a.value}`},r().createElement(Vc.Z,{color:"primary",checked:t}),r().createElement("span",{className:s.typeIconWrapper},r().createElement(Fr,{detailType:o})),r().createElement(Hi.Z,{value:i},r().createElement("div",{className:s.optionLabel},i)),c&&r().createElement("span",{className:s.counter},(0,u.k7L)(n,999)))},Gc=(0,m.curry)(((e,t)=>!!t.find((0,m.propEq)("value",e.value)))),Zc=(0,m.curry)(((e,t)=>{const a=t.findIndex((0,m.propEq)("value",e.value));return-1!==a?(0,m.remove)(a,1,t):t})),qc=e=>{let{defaultFilterOptions:t=[],filterOptions:a,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=Yc(),[s,d]=(0,l.useState)(null),[p,u]=(0,l.useState)([]),[f,h]=(0,l.useState)(n||null);(0,l.useEffect)((()=>{u(((e,t)=>{const a=(0,m.pipe)((0,m.pluck)("options"),m.flatten)(t);return e.filter((e=>{let{value:t}=e;return a.find((0,m.propEq)("value",t))}))})(t,a))}),[t,a]);const y=()=>d(null),g=e=>{u((0,m.ifElse)(Gc(e),Zc(e),(0,m.concat)([e])))},E=!!p.length,v=!!s,x=xt()(c.filterIconWrapper,{[c.filterIconWrapperActive]:v,[c.filterIconWrapperSelected]:E}),b=E?c.filterIconFilterApplied:c.filterIcon;return r().createElement("div",{className:c.searchWrapper},r().createElement("div",{"data-reltio-id":"reltio-dq-dashboard-attributes-search-input"},r().createElement(Uc.Z,{autofocus:!0,onChange:e=>{h(e),i(e||"")},initialValue:n||null,height:40,placeholder:ne().text("Search attribute name"),classes:{root:xt()(c.searchInput,{[c.filledInput]:!!f})}})),r().createElement("div",{className:c.filterByDetails,"data-reltio-id":"reltio-dq-dashboard-attributes-filter"},r().createElement("div",{className:x,onClick:e=>d(e.currentTarget)},r().createElement(jc.Z,{className:b})),r().createElement(zc.ZP,{open:!!s,anchorEl:s,onClose:()=>{u((0,m.always)(t)),y()},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{"data-reltio-id":"reltio-dq-dashboard-attributes-filter-popup"}},r().createElement("div",{className:c.menu},r().createElement(ma.Z,{variant:"h6",className:c.dropdownMenuTitle},ne().text("Filter")),r().createElement("div",{className:c.valueContainer},a.map((e=>{let{label:t,options:a}=e;return r().createElement("div",{key:t},t&&r().createElement(ma.Z,{variant:"caption",className:c.groupLabel},t),a.map((e=>{const t=Gc(e,p);return r().createElement(Wc,{key:e.label,data:e,isSelected:t,onChange:g})})))})))),r().createElement("div",{className:c.actionsContainer},r().createElement(ua.Z,{onClick:()=>{u([])},className:c.clearAllButton,disabled:!E,"data-reltio-id":"reltio-dq-dashboard-filter-clear-all-button"},ne().text("Clear all")),r().createElement(ua.Z,{onClick:()=>{u(t),y()},"data-reltio-id":"reltio-dq-dashboard-filter-cancel-button"},ne().text("Cancel")),r().createElement(ua.Z,{color:"primary",onClick:()=>{o(p),y()},"data-reltio-id":"reltio-dq-dashboard-filter-apply-button"},ne().text("Apply"))))))},$c=(0,o.makeStyles)((e=>({root:{width:"360px",minWidth:"360px",maxWidth:"360px",display:"flex",flexDirection:"column",background:"#fff",zIndex:1,marginBottom:"8px",borderRadius:"4px",boxShadow:"0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.12), 0px 1px 3px rgba(0, 0, 0, 0.2)"},title:{height:"24px",margin:"16px",display:"flex",alignItems:"center",fontSize:"16px",lineHeight:"24px",color:e.palette.text.primary},itemCount:{color:e.palette.text.primary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px"},listWrapper:{flexGrow:1,overflow:"hidden",position:"relative"},loadingAnimation:{"&:before":{position:"absolute",top:0,right:0,bottom:0,left:"50%",zIndex:1,width:"500%",marginLeft:"-250%",background:"linear-gradient(to right, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 54%) 50% 50%;",animation:"$loaderAnimation 0.8s linear infinite",content:'""',pointerEvents:"none"}},columnsTitle:{height:"48px",display:"grid",gridGap:"32px",gridTemplateColumns:"308px 108px",alignItems:"center",padding:"0 16px",background:"rgba(0, 0, 0, 0.06)",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",fontWeight:500,fontSize:"12px",lineHeight:"16px",color:e.palette.text.secondary},loaderWrapper:{position:"absolute",top:"0",left:"0",width:"100%",height:"4px",zIndex:1},"@keyframes loaderAnimation":{"0%":{transform:"translate(-30%, 0)"},"100%":{transform:"translate(30%, 0)"}}}))),Qc=e=>{var t,a;let{entityType:n,onAttributesListChange:i,defaultFieldName:o,defaultFilterOptions:c,defaultFilterText:s,disableAttributeSelection:d}=e;const p=$c(),f=(0,l.useRef)(),y=(0,l.useRef)(),[g,E]=(0,l.useState)(s||""),[v,x]=(0,l.useState)([]),[b,O]=(0,l.useState)(c||gc),[R,_]=(0,l.useState)(o),[A,N]=(0,l.useState)({}),{chartsData:{data:D}}=pe(),I=null===(t=(0,l.useContext)(ce))||void 0===t||null===(a=t.dvfs)||void 0===a?void 0:a.state,C=((e,t)=>{var a,r;const n=(0,w.useSelector)(T.ZP.selectors.getMetadata),i=(0,l.useMemo)((()=>(e=>(0,m.pipe)(u.WN0,st(e),ft))(t)(n,e)),[n,e,t]),[o,c]=(0,l.useState)([]),s=e.uri,d=(0,l.useMemo)((()=>(0,u.qhs)(n,s)),[n,s]),p=null===(a=(0,l.useContext)(ce))||void 0===a||null===(r=a.dvfs)||void 0===r?void 0:r.data;return(0,l.useEffect)((()=>{c([]),p&&c(i.map((0,m.evolve)({attributeItem:e=>function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){pc(e,t,a[t])}))}return e}({},e,{details:ut({attrTypeItem:e,dvf:p,matchAttributes:d})},e.children&&{children:e.children.map((t=>(t.details=ut({attrTypeItem:t,dvf:p,matchAttributes:d}),t.details.reference=e.isAttributeReference,t)))})})))}),[i,d,p]),o})(n,g),M=Oc(C),k=(0,l.useMemo)((()=>M),[M.toString()]),{data:L,state:P}=((e,t)=>{const[a,r]=(0,l.useState)(h.o.INIT),[n,i]=(0,l.useState)({}),o=(0,S._)(),{searchByOv:c}=K(),s=e=>{console.warn(e),r(h.o.ERROR),i({})},d=(0,l.useCallback)((()=>{if(t.length)return r(h.o.LOADING),i({}),o((0,u.TTx)({entityTypeUri:e,attributes:t,dataLevel:u.yn8.ATTRIBUTE_TYPE,metrics:[u.N0y.FILL_RATE],searchByOv:c})).then(kt).then((e=>{i(e),r(h.o.LOADED)})).catch(s)}),[o,r,i,t,c]),p=(0,l.useCallback)((()=>{try{d()}catch(e){s(e)}}),[d]);return(0,l.useEffect)((()=>{p()}),[p]),{data:n,state:a,reload:p}})(n.uri,k);(0,l.useEffect)((()=>N(L)),[L]),(0,l.useEffect)((()=>{const e=(null==D?void 0:D.fillRate)&&Mt(null==D?void 0:D.fillRate),t=A[R];N((a=>!e||(0,m.equals)(t,e)?a:(0,m.assoc)(R,e,a)))}),[null==D?void 0:D.fillRate]);const F=P===h.o.INIT||P===h.o.LOADING||I===h.o.LOADING||I===h.o.INIT,B=I===h.o.LOADED||I===h.o.ERROR,j=P===h.o.LOADED,{filteredItems:z,filterOptions:U}=(0,l.useMemo)((()=>{const e=j?Ec(b,A,C):C,t=(e=>{const t=Object.values(nt).map((e=>({value:e,label:mt(e),group:"details"}))).map((t=>(0,m.assoc)("count",((e,t)=>e.filter((e=>it([t],e.attributeItem))).length)(e,t),t)));return{label:ne().text("Attribute properties"),options:t}})(e);return{filteredItems:B?bc(b,e):e,filterOptions:[{label:"",options:gc},t]}}),[C,b,A,j,B]),V=(0,l.useMemo)((()=>((e,t)=>e.filter((e=>{let{attributeItem:a}=e;return!t.some((e=>a.fieldName.startsWith(e)&&a.fieldName!==e))})))(z,v)),[z,v]),H=z.length,Y=e=>{i({selectedDetailedAttributeType:e,filterText:g,filterOptions:b}),_(e.fieldName)},W=(0,l.useMemo)((()=>{const e=((e,t)=>(0,m.pipe)((0,m.find)(fc(t)),(0,m.propOr)(null,"attributeItem"))(e))(z,R)||mc(z);return(0,m.isEmpty)(e)||d?null:e}),[z,R,d]);(0,l.useEffect)((()=>{var e,t,a;if(d)return void(null===(a=f.current)||void 0===a||a.scrollTo(0));z.length&&null!=W&&W.fieldName&&_(W.fieldName);const l=((e,t)=>(0,m.findIndex)(fc(t))(e))(z,R);l>-1?null===(e=f.current)||void 0===e||e.scrollToItem(l,"center"):null===(t=f.current)||void 0===t||t.scrollTo(0)}),[z,W]),(0,l.useEffect)((()=>{i({selectedDetailedAttributeType:W,filterText:g,filterOptions:b})}),[g,b,W]),(0,l.useEffect)((()=>{_((e=>d?null:e))}),[d]);const G=e=>{let{scrollOffset:t}=e;if(y.current){var a,l;const e=null===(a=y.current)||void 0===a||null===(l=a.style)||void 0===l?void 0:l.borderTop;0===t&&(y.current.style.borderTop=""),t>0&&""===e&&(y.current.style.borderTop="1px solid rgba(0, 0, 0, 0.05)")}},Z=e=>{let{data:t,index:a,style:l}=e;const{attributeItem:n,level:i=0}=t[a],o=R===n.fieldName,c=((e,t)=>e[t.fieldName])(A,n),s=a>0&&i>(0,m.pathOr)(-1,[a+1,"level"],V);return r().createElement(Bc,{fillRateData:c,fillRateState:P,isLoading:F,style:l,detailedAttributeType:n,level:i,onClick:Y,selected:o,onCollapse:(d=n.fieldName,()=>{x((e=>e.includes(d)?e.filter((e=>e!==d)):e.concat(d)))}),isCollapsed:v.includes(n.fieldName),isLastLevelItem:s});var d},q=V.length,$=!!q,Q=!$&&(0===C.length||0===z.length&&B);return r().createElement("div",{className:p.root},r().createElement("div",{className:p.title},ne().text("Attributes"),r().createElement("span",{className:p.itemCount},`${H} ${X=H,1===X?ne().text("item"):ne().text("items")}`),r().createElement(qc,{defaultFilterText:s,defaultFilterOptions:b,onChangeFilterOptions:O,onChangeFilterText:E,filterOptions:U})),r().createElement("div",{ref:y,className:xt()(p.listWrapper,{[p.loadingAnimation]:F&&!Q}),"data-reltio-id":"reltio-dq-dashboard-attributes-list"},$?r().createElement(ca.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return r().createElement(dc.FixedSizeList,{ref:f,itemCount:q,width:"100%",height:t,itemData:V,itemSize:48,onScroll:G},Z)})):Q&&r().createElement(Ea,{height:349,errorData:{Icon:sa.B9.SEARCH_RESULTS,title:ne().text("No results found"),message:ne().text("Try adjusting your search or filter to find\nwhat you’re looking for")},variant:ha.MEDIUM})));var X},Kc=(0,o.makeStyles)({root:{display:"flex",alignItems:"center",width:"100%"},title:{flexShrink:0,paddingLeft:"20px"},content:{overflow:"hidden",flexGrow:1}}),Xc=e=>{let{title:t,children:a}=e;const l=Kc();return r().createElement("div",{className:l.root},r().createElement(ma.Z,{variant:"h6",className:l.title},t),r().createElement("div",{className:l.content},a))},Jc=()=>{const{canGetDQStatistic:e}=te(),t=e?{Icon:sa.B9.NO_DATA,title:ne().text("Give us something to go on!"),message:ne().text("Go ahead and load some data. We’ll put it on the scales and\nlet you know here if it measures up.")}:{title:ne().text("You don’t currently have permission to view this page"),message:ne().text(" Please contact your Tenant Admin to change permissions")};return r().createElement(Ea,{height:359,errorData:t,variant:ha.LARGE})};function es(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){ts(e,t,a[t])}))}return e}function ts(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const as={position:"absolute",content:'""',top:0,left:0,right:0,zIndex:1},ls=(0,o.makeStyles)((()=>({root:{width:"100%",height:"100%",position:"relative",marginTop:"-12px","&:before":es({},as,{top:"8px",height:"4px",background:"linear-gradient(180deg, #EEEEEE 0%, rgba(238, 238, 238, 0) 100%)",zIndex:1}),"&:after":es({},as,{height:"8px",background:"#EEEEEE"})},layoutRoot:{overflow:"auto",backgroundColor:"#EEEEEE",height:"100%",flexGrow:1,padding:"0 4px",boxSizing:"border-box"}}))),rs=e=>{var t,a;let{config:n,entityType:i}=e;const o=ls(),c=(0,w.useSelector)(T.ZP.selectors.getMetadata),s=c&&i&&((e,t)=>{const a=e=>{var t;return(0,u.lS4)(e)||(null===(t=e.children)||void 0===t?void 0:t.some(a))};return(0,m.pipe)(u.WN0,(0,m.any)(a))(e,t)})(c,i),d=s?xe.RDM_LOOKUP_EXIST:xe.RDM_LOOKUP_NOT_EXIST,{hasRestrictions:p}=te(),f=(null===(t=n.layoutsByDataLevel)||void 0===t||null===(a=t[u.yn8.ENTITY_TYPE])||void 0===a?void 0:a[d])||Oe[u.yn8.ENTITY_TYPE][d],h=(0,l.useMemo)((()=>f?((e,t)=>{const a=(0,m.uniqBy)((0,m.prop)("id"),(0,m.concat)((null==e?void 0:e[u.yn8.ENTITY_TYPE])||[],be[u.yn8.ENTITY_TYPE]||[])),l=[ve.SUMMARY,ve.CONSOLIDATION_RATE,ve.DATA_VALIDATION,ve.RDM_TRANSCODE];return Ce({views:a,supportedViews:l,layout:t})})(n.viewsByDataLevel,f):[]),[n.viewsByDataLevel,f]),y=(0,l.useMemo)((()=>Me(h)),[h]),g=gt({entityType:i,dataLevel:u.yn8.ENTITY_TYPE,metrics:y}),{changeChartsData:E}=pe();return(0,l.useEffect)((()=>E(g)),[g]),x({state:g.state,reload:g.reload,dataLevel:u.yn8.ENTITY_TYPE}),r().createElement("div",{className:xt()(o.root)},r().createElement(tt.Provider,{value:u.yn8.ENTITY_TYPE},r().createElement("div",{className:o.layoutRoot,"data-reltio-id":"dq-dashboard-entity-level-layout"},p&&r().createElement(Zo,{text:ne().text("Not seeing the data you expected for this entity type? Contact your tenant admin to verify permissions.")}),r().createElement(Yo,{views:h,layout:f}))))};var ns=a(20195);const is=(0,o.makeStyles)((e=>({counter:{fontSize:"10px",lineHeight:"12px",height:"12px",background:"rgba(0, 0, 0, 0.05)",padding:"1px 4px",borderRadius:"2px"},selectRoot:{"&>fieldset":{border:"none !important",outline:"none !important"}},select:{borderRadius:"6px !important",border:"1px solid rgba(0, 0, 0, 0.12)",padding:"3px 29px 3px 15px !important",fontSize:"18px",lineHeight:"24px",paddingRight:"30px",color:e.palette.text.primary,minWidth:"128px",boxSizing:"border-box","&:hover,&:focus":{background:"rgba(0, 0, 0, 0.05)",border:"none",padding:"4px 30px 4px 16px !important"}},selectValue:{display:"flex",alignItems:"center",gap:"9px"},arrowIcon:{height:"16px",top:"calc(50% - 8px)",right:"1px"},menu:{padding:"4px 0",display:"flex",flexDirection:"column",gap:"4px"},optionRoot:{maxWidth:"184px",minWidth:"140px",display:"flex",paddingRight:"8px"},optionLabel:{flexGrow:1,fontSize:"13px",textOverflow:"ellipsis",overflow:"hidden",paddingRight:"10px",minWidth:0}})));function os(){return os=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},os.apply(this,arguments)}const cs=e=>{let{options:t,value:a,onChange:l,dataReltioId:n,dataReltioOptionId:i,classes:o={}}=e,c=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["options","value","onChange","dataReltioId","dataReltioOptionId","classes"]);const s=is(),d=e=>r().createElement("span",{className:s.counter},(0,u.k7L)(e,999)),p=(0,k.ze)(o,{outlined:s.select,icon:s.arrowIcon});return r().createElement(ns.Z,os({variant:"outlined",MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},classes:{list:s.menu}},value:a,onChange:(0,m.pipe)(k.NA,l),renderValue:e=>{const{label:a,count:l}=(0,m.find)((0,m.propEq)("value",e))(t);return r().createElement("div",{className:s.selectValue},a,!(0,m.isNil)(l)&&d(l))},className:s.selectRoot,classes:p,autoWidth:!0,"data-reltio-id":n},c),t.map(((e,t)=>{let{value:a,label:l,count:n}=e;return r().createElement(Hc.Z,{key:a,value:a,classes:{root:s.optionRoot},"data-reltio-id":`${i}-${t}`},r().createElement(Hi.Z,{value:l},r().createElement(ma.Z,{className:s.optionLabel},l)),!(0,m.isNil)(n)&&d(n))})))},ss=e=>{let{entityTypes:t,entityTypeUri:a,onChange:l}=e;const n=(0,m.pipe)((0,m.map)((e=>{let{label:t,uri:a,entityCount:l}=e;return{label:t,count:l,value:a}})))(t);return r().createElement(cs,{options:n,value:a,onChange:l,dataReltioOptionId:"reltio-dq-dashboard-entity-type-selector-option",dataReltioId:"reltio-dq-dashboard-entity-type-selector"})};function ds(){return ds=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ds.apply(this,arguments)}const ps=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",ds({width:"256",height:"256",viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("g",null,r().createElement("g",null,r().createElement("circle",{cx:"128",cy:"128",r:"128",fill:"#0072CE",fillOpacity:".03"}),r().createElement("mask",{id:"svg1824010396a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"256",height:"256"},r().createElement("circle",{cx:"128",cy:"128",r:"128",fill:"#fff"})),r().createElement("g",{mask:"url(#svg1824010396a)"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#paint0_linear_2978_41880)"}),r().createElement("g",{fillRule:"evenodd",clipRule:"evenodd"},r().createElement("path",{d:"M40.755 44.17C40.755 38.002 45.76 33 51.92 33h251.675c6.167 0 11.166 5.001 11.166 11.17v160.596H40.755V44.171z",fill:"#5E7282"}),r().createElement("path",{d:"M50.371 43.106h255.685V195.71H50.371V43.106z",fill:"url(#paint1_linear_2978_41880)"}),r().createElement("path",{d:"M15.545 208.914c2.321.469 4.723.716 7.183.716H338.75c.22 0 .439-.002.658-.006-7.061 8.445-17.67 13.816-29.524 13.816H45.655c-12.111 0-22.916-5.597-29.968-14.349l-.142-.177z",fill:"#BDCBD8"}),r().createElement("path",{d:"M339.015 204.883v4.966H15v-4.966h324.015z",fill:"#D4DCDF"}),r().createElement("path",{d:"M201.107 213.991h-45.221a11.176 11.176 0 01-11.046-9.449h67.314a11.172 11.172 0 01-11.047 9.449z",fill:"url(#paint2_linear_2978_41880)"})),r().createElement("g",{filter:"url(#filter0_d_2978_41880)"},r().createElement("rect",{x:"81.703",y:"99",width:"170",height:"26",rx:"8",fill:"#D1E6FF"}),r().createElement("rect",{x:"84.703",y:"102",width:"164",height:"20",rx:"5",stroke:"#fff",strokeWidth:"6"})),r().createElement("g",{filter:"url(#filter1_d_2978_41880)"},r().createElement("mask",{id:"svg1824010396b",fill:"#fff"},r().createElement("rect",{x:"81",y:"105",width:"108",height:"14",rx:"2"})),r().createElement("rect",{x:"81",y:"105",width:"108",height:"14",rx:"2",fill:"#61A3F1"}),r().createElement("rect",{x:"81",y:"105",width:"108",height:"14",rx:"2",stroke:"#4A90E2",strokeWidth:"8",mask:"url(#svg1824010396b)"})),r().createElement("g",null,r().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M122.703 74a3 3 0 013-3h81.625a3 3 0 010 6h-81.625a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M146.703 86a3 3 0 013-3h34a3 3 0 110 6h-34a3 3 0 01-3-3zM136.703 139a3 3 0 013-3h54a3 3 0 110 6h-54a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M112.703 151a3 3 0 013-3h103a3 3 0 110 6h-103a3 3 0 01-3-3zM124.703 163a3 3 0 013-3h79a3 3 0 110 6h-79a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("g",{filter:"url(#filter2_ddd_2978_41880)"},r().createElement("g",null,r().createElement("g",null,r().createElement("path",{fill:"#A0C1D7",d:"M70.703 64h11v8h-11z"}),r().createElement("rect",{x:"62",y:"59",width:"28",height:"8",rx:"1",fill:"#BDD4E3"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.23 160.5c20.704 20.703 54.27 20.703 74.973 0 20.703-20.703 20.703-54.27 0-74.973-20.703-20.703-54.27-20.703-74.973 0-20.703 20.703-20.703 54.27 0 74.973z",fill:"#BDD4E3"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M113.427 85.988c20.463 20.652 20.404 53.981-.175 74.561-20.432 20.431-53.432 20.635-74.115.613l-.446-.439 74.736-74.735z",fill:"#A0C1D7"}),r().createElement("path",{opacity:".144",fillRule:"evenodd",clipRule:"evenodd",d:"M75.037 175.385c29.402 0 53.236-23.834 53.236-53.236a54.67 54.67 0 00-.106-3.399L100.45 91.037l-55.142 58.396 25.814 25.811c1.293.094 2.598.141 3.915.141z",fill:"url(#paint3_linear_2978_41880)"}),r().createElement("circle",{cx:"75.94",cy:"123.237",r:"44.723",fill:"#91B0C2"}),r().createElement("g",null,r().createElement("g",{filter:"url(#filter3_d_2978_41880)"},r().createElement("circle",{r:"42.793",transform:"matrix(-1 0 0 1 75.94 123.237)",fill:"#F7F4FF"}))),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M105.043 175.309l-10.298.861-20.313-20.152.863-2.292-9.973-9.982 18.679-6.882h-4.308l-8.943-8.951 4.545-10.532L94.35 90.74l37.888 37.162c-.343 20.088-11.146 37.627-27.195 47.407z",fill:"url(#paint4_linear_2978_41880)"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.703 123a8 8 0 0112.362-6.707l14.477-25.145A36.828 36.828 0 0075.703 86c-20.434 0-37 16.565-37 37h29z",fill:"url(#paint5_angular_2978_41880)"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M94.297 90.6l.24.138s-12.45 35.125-12.811 35.752a6.92 6.92 0 01-11.985-6.92c.361-.626 24.556-28.97 24.556-28.97z",fill:"#323232"}),r().createElement("circle",{cx:"75.94",cy:"123.237",r:"2.896",fill:"#EEEBF6"}),r().createElement("circle",{cx:"96.211",cy:"148.655",r:"2.574",fill:"#A0C3D7"}),r().createElement("circle",{cx:"107.15",cy:"131.924",r:"2.574",fill:"#A0C3D7"}),r().createElement("rect",{x:"62.427",y:"135.592",width:"27.027",height:"10.039",rx:"3",fill:"#A0C3D7"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M85.914 170.534H75.112l-21.605-21.472 2.126-2.775v-1.01L42.8 132.523l2.853-2.529 40.261 40.54z",fill:"url(#paint6_linear_2978_41880)"}),r().createElement("path",{opacity:".02",fillRule:"evenodd",clipRule:"evenodd",d:"M96.362 136.555h-4.988l-38.126-38.01 2.853-2.53 40.261 40.54z",fill:"url(#paint7_linear_2978_41880)"}),r().createElement("path",{opacity:".02",fillRule:"evenodd",clipRule:"evenodd",d:"M116.746 129.006h-4.988L73.632 90.995l2.853-2.53 40.261 40.541z",fill:"url(#paint8_linear_2978_41880)"}),r().createElement("path",{opacity:".02",fillRule:"evenodd",clipRule:"evenodd",d:"M85.793 152.41h-4.988l-38.126-38.011 2.852-2.53 40.262 40.541z",fill:"url(#paint9_linear_2978_41880)"}),r().createElement("circle",{cx:"75.618",cy:"155.734",r:"2.574",fill:"#A0C3D7"}),r().createElement("circle",{cx:"55.026",cy:"148.655",r:"2.574",fill:"#A0C3D7"}),r().createElement("circle",{cx:"44.73",cy:"131.924",r:"2.574",fill:"#A0C3D7"}),r().createElement("g",{fill:"#A0C3D7"},r().createElement("circle",{r:"2.574",transform:"matrix(1 0 0 -1 96.21 97.363)"}),r().createElement("circle",{r:"2.574",transform:"matrix(1 0 0 -1 107.149 114.094)"}),r().createElement("circle",{r:"2.574",transform:"matrix(1 0 0 -1 75.618 90.284)"}),r().createElement("circle",{r:"2.574",transform:"matrix(1 0 0 -1 55.026 97.363)"}),r().createElement("circle",{r:"2.574",transform:"matrix(1 0 0 -1 44.73 114.094)"}))))))))),r().createElement("defs",null,r().createElement("linearGradient",{id:"paint0_linear_2978_41880",x1:"-16",y1:"9",x2:"-16",y2:"256",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),r().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"paint1_linear_2978_41880",x1:"178.214",y1:"43.106",x2:"178.214",y2:"195.709",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#F2F9FB"}),r().createElement("stop",{offset:"1",stopColor:"#fff"})),r().createElement("linearGradient",{id:"paint2_linear_2978_41880",x1:"178.497",y1:"204.542",x2:"178.497",y2:"213.991",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#90AABF"}),r().createElement("stop",{offset:"1",stopColor:"#869DAE"})),r().createElement("linearGradient",{id:"paint3_linear_2978_41880",x1:"154.275",y1:"146.574",x2:"96.683",y2:"91.352",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".01"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"paint4_linear_2978_41880",x1:"60.762",y1:"143.327",x2:"114.747",y2:"176.019",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".87"}),r().createElement("stop",{offset:"1",stopOpacity:".01"})),r().createElement("linearGradient",{id:"paint6_linear_2978_41880",x1:"90.287",y1:"154.267",x2:"68.53",y2:"131.301",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".01"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"paint7_linear_2978_41880",x1:"100.735",y1:"120.288",x2:"78.978",y2:"97.322",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".01"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"paint8_linear_2978_41880",x1:"121.119",y1:"112.739",x2:"99.362",y2:"89.773",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".01"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"paint9_linear_2978_41880",x1:"90.166",y1:"136.143",x2:"68.409",y2:"113.177",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:".01"}),r().createElement("stop",{offset:"1"})),r().createElement("filter",{id:"filter0_d_2978_41880",x:"77.703",y:"96",width:"178",height:"34",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:"1"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),r().createElement("filter",{id:"filter1_d_2978_41880",x:"77",y:"102",width:"116",height:"22",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:"1"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),r().createElement("filter",{id:"filter2_ddd_2978_41880",x:"-13.297",y:"28",width:"181.534",height:"189.17",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feMorphology",{radius:"4",operator:"erode",in:"SourceAlpha",result:"effect1_dropShadow_2978_41880"}),r().createElement("feOffset",{dy:"7"}),r().createElement("feGaussianBlur",{stdDeviation:"4"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.600156 0 0 0 0 0.745337 0 0 0 0 0.8625 0 0 0 0.1 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),r().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"}),r().createElement("feMorphology",{radius:"4",operator:"dilate",in:"SourceAlpha",result:"effect2_dropShadow_2978_41880"}),r().createElement("feOffset",{dy:"5"}),r().createElement("feGaussianBlur",{stdDeviation:"16"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0"}),r().createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_2978_41880",result:"effect2_dropShadow_2978_41880"}),r().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"}),r().createElement("feMorphology",{radius:"2",operator:"dilate",in:"SourceAlpha",result:"effect3_dropShadow_2978_41880"}),r().createElement("feOffset",{dy:"12"}),r().createElement("feGaussianBlur",{stdDeviation:"8.5"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0"}),r().createElement("feBlend",{mode:"normal",in2:"effect2_dropShadow_2978_41880",result:"effect3_dropShadow_2978_41880"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_2978_41880",result:"shape"})),r().createElement("filter",{id:"filter3_d_2978_41880",x:"29.148",y:"78.444",width:"93.585",height:"93.585",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().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"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),r().createElement("radialGradient",{id:"paint5_angular_2978_41880",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(-56.035 152.55 -12.515) scale(43.4058 65.5062)"},r().createElement("stop",{stopColor:"#CFE8FF"}),r().createElement("stop",{offset:".599",stopColor:"#D1F2F9",stopOpacity:"0"}))))},us=()=>r().createElement(sa.ZP,{LogoRenderer:ps,text:ne().text("Loading..."),secondaryText:ne().text("Please give us a moment while we load the page")});var ms=a(22658);const fs=(0,o.makeStyles)((e=>({root:{display:"flex",alignItems:"center"},updateTime:{color:e.palette.text.secondary,fontSize:"13px",paddingRight:"16px"}}))),hs=e=>{let{dataLevel:t}=e;const a=fs(),[,n]=(0,l.useState)(0),i=(()=>{const e=(0,l.useContext)(g);if(void 0===e)throw new Error("useReloadAllFacets must be used within a ReloadFacetProvider");return e})(),{updateTime:o}=O(t);(0,l.useEffect)((()=>{const e=setInterval((()=>n((e=>e+1))),1e4);return()=>clearInterval(e)}),[]);const c=N()(o);return c.isValid()&&r().createElement("div",{className:a.root},r().createElement("span",{className:a.updateTime},`${ne().text("Last updated")} ${c.fromNow()}`),r().createElement(wa.k,{tooltipTitle:ne().text("Refresh"),icon:ms.Z,onClick:()=>{i(t)},size:"S"}))};var ys=a(29742);const gs=(0,o.makeStyles)((()=>({settingsAttributeLevel:{marginLeft:"2px",marginRight:"2px"},settingsEntityLevel:{marginRight:"-8px",marginLeft:"8px"}}))),Es=e=>{let{dataLevel:t}=e;const a=gs(),{searchByOv:l}=K(),{changeSearchByOv:n}=X(),i=[{id:"ov",active:!0,onClick:()=>n(!l),text:ne().text("Show OV only"),selected:l}];return r().createElement("div",{className:xt()({[a.settingsEntityLevel]:t===u.yn8.ENTITY_TYPE,[a.settingsAttributeLevel]:t===u.yn8.ATTRIBUTE_TYPE})},r().createElement(ys.Z,{items:i,menuId:"dqSettingsMenu"}))};function vs(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const xs=e=>{var t,a,n;let{config:i,saveState:o,getSavedState:c}=e;const s=Ko(),d=(()=>{const e=(0,w.useSelector)(T.ZP.selectors.getMetadata);return(0,l.useMemo)((()=>e.entityTypes.filter(u.oDv)),[e.entityTypes])})(),{zoom:p,period:f,entityType:y,detailedAttributeType:g,searchByOv:E}=K(),{changeZoom:v,changePeriod:x,setEntityType:b,setDetailedAttributeType:S,changeSearchByOv:R}=X(),[_,A]=(0,l.useState)(""),{getEntityCount:D,state:k}=fe(d),{canGetDQStatistic:L,permissionsLoadingState:P,isTimeSeriesAvailable:F}=te(),[B,j]=(0,l.useState)(),{resetUpdateTimes:z}=O(B),U=me(y),V=ue(null==y?void 0:y.uri),H=(0,l.useMemo)((()=>({dvfs:V,dvfConfigLink:U})),[V,U]),Y=(0,l.useRef)(),{isLoaded:W,savedState:G}=(0,ie.a)(c),Z=P===h.o.ERROR||P===h.o.LOADED;(0,l.useEffect)((()=>{$({searchByOv:E})}),[E]),(0,l.useEffect)((()=>{const e=d&&_?(0,u.nt9)({entityTypes:d},_):null;b(e)}),[_]),(0,l.useEffect)((()=>{if(W&&Z){Y.current=G,R(!!G.searchByOv&&i.showOVSwitcher);const e=!!(0,u.nt9)({entityTypes:d},G.entityTypeUri);A(e?G.entityTypeUri:I(Q)),j(G.fieldName&&G.dataLevel||u.yn8.ENTITY_TYPE);const t=F?u.bZE.LAST_WEEK:u.bZE.LAST_DAY,a=F&&(C.includes(null==G?void 0:G.period)||Array.isArray(null==G?void 0:G.period))?G.period:t;x(a),G.zoom&&v(G.zoom)}}),[W,Z]),(0,l.useEffect)((()=>{B===u.yn8.ENTITY_TYPE&&$({fieldName:null,dataLevel:u.yn8.ENTITY_TYPE,entityTypeUri:_})}),[B,_]),(0,l.useEffect)((()=>{if(W&&B===u.yn8.ATTRIBUTE_TYPE){const{startDate:e,endDate:t}=Ge(f);$({period:[new Date(e),new Date(t)],zoom:p})}}),[p]),(0,l.useEffect)((()=>{W&&B===u.yn8.ATTRIBUTE_TYPE&&$({period:f})}),[f]);const q=(e=>{const t=(0,l.useRef)(),a=(0,l.useRef)(null);return(0,l.useCallback)(((l,r)=>{(null==t?void 0:t.current)&&clearTimeout(null==t?void 0:t.current),null!=a&&a.current||(a.current=r),(0,m.equals)(l,null==a?void 0:a.current)||(t.current=setTimeout((()=>{a.current=l,e(l)}),200))}),[e])})(o),$=e=>{const t=(e=>function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){vs(e,t,a[t])}))}return e}({fieldName:null,zoom:p||null,entityTypeUri:_,period:f,searchByOv:E},null==Y?void 0:Y.current,e))(e);q(t,Y.current),Y.current=t},Q=(0,l.useMemo)((()=>(e=>{let{entityTypes:t,getEntityCount:a}=e;return(0,m.pipe)((0,m.map)((e=>(0,m.assoc)("entityCount",a(e.uri))(e))),(0,m.sortWith)([(e,t)=>{let{entityCount:a}=e,{entityCount:l}=t;return a===l||a>0&&l>0?0:0===a?1:-1},(0,m.ascend)((0,m.prop)("label"))]))(t)})({entityTypes:d,getEntityCount:D})),[d,D]),J=(0,l.useCallback)((e=>{(null==y?void 0:y.uri)!==e&&(z(u.yn8.ENTITY_TYPE),S(null),A(e),j(u.yn8.ENTITY_TYPE))}),[null==y?void 0:y.uri]),ee=k!==h.o.LOADING&&W&&Z,ae=y&&L&&!!D(_),le=B===u.yn8.ATTRIBUTE_TYPE&&F,re=((e,t)=>e?[new Date(e[0]),new Date(e[1])]:t)(p,f);return ee?r().createElement("div",{className:s.perspectiveView},r().createElement(Xc,{title:ne().text("Data Quality")},y&&r().createElement("div",{className:s.navigationWrapper},r().createElement(ss,{entityTypes:Q,entityTypeUri:y.uri,onChange:J}),r().createElement(ac,{dataLevel:B,onChange:j}),r().createElement("div",{className:s.headerRightSide},i.showOVSwitcher&&r().createElement(Es,{dataLevel:B}),le&&r().createElement(oe.Z,{values:re,options:(0,u.cGG)(C),getValuesDateRange:M,onChange:x,className:s.periodSelector,TextFieldProps:{InputProps:{classes:{input:s.input,root:s.inputRoot},disableUnderline:!0}},MenuProps:{classes:{paper:s.paper}},classes:{dropdownIndicator:s.dropdownIndicator},DateRangePickerProps:{maxDate:N()().startOf("day").toDate()}}),r().createElement(hs,{dataLevel:B})))),ae?r().createElement("div",{className:s.content},r().createElement(ce.Provider,{value:H},r().createElement(de,null,r().createElement(ic,{page:B===u.yn8.ENTITY_TYPE?0:1,pages:[[{index:0},{index:2,width:372}],[{index:1,width:60},{index:2,width:360},{index:3}]]},r().createElement(de,null,r().createElement(rs,{config:i,entityType:y})),r().createElement(sc,{showEntityLevel:()=>{S(null),j(u.yn8.ENTITY_TYPE),z(u.yn8.ENTITY_TYPE)},entityType:y}),r().createElement(Qc,{entityType:y,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:a,filterOptions:l}=e;const r=null==t?void 0:t.fieldName;!r&&(0,m.equals)({filterText:a,filterOptions:l},(0,m.pick)([a,l],Y.current))||$({fieldName:r||null,filterOptions:l,filterText:a,dataLevel:r?u.yn8.ATTRIBUTE_TYPE:B}),r&&j(u.yn8.ATTRIBUTE_TYPE),(0,m.equals)(g,t)||(z(u.yn8.ATTRIBUTE_TYPE),t&&S(t))},defaultFieldName:null===(t=Y.current)||void 0===t?void 0:t.fieldName,defaultFilterText:null===(a=Y.current)||void 0===a?void 0:a.filterText,defaultFilterOptions:null===(n=Y.current)||void 0===n?void 0:n.filterOptions,disableAttributeSelection:B===u.yn8.ENTITY_TYPE}),r().createElement("div",{className:s.attributeLevelWrapper},g&&r().createElement(Xo,{config:i,entityType:y})))))):y&&r().createElement(Jc,null)):r().createElement(us,null)},bs=(0,n.Z)(le),Os=(0,c.Z)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0,seed:"dash"}),ws=e=>{let{config:t,saveState:a,getSavedState:n}=e;const c=(0,l.useCallback)((0,u.aYu)(n),[n]);return r().createElement(d._,{dateAdapter:p.Q},r().createElement(i.Z,{injectFirst:!0},r().createElement(o.ThemeProvider,{theme:bs},r().createElement(s.ZP,{generateClassName:Os},r().createElement(v,null,r().createElement(Q,null,r().createElement(ee,{config:t},r().createElement(xs,{config:t,saveState:a,getSavedState:c}))))))))}}}]);
2
2
  //# sourceMappingURL=5039.js.map