@reltio/remotes 1.4.1021 → 1.4.1024

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/6326.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[6326],{81819:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a.Z});var a=r(29611)},69112:(e,t,r)=>{r.d(t,{Z:()=>p});var a=r(7560),l=r(54530),n=r(24328),i=(r(13980),r(6277));const o=(0,r(3752).Z)(n.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");var c=r(15459),s=r(57074),u=r(97580),d=n.forwardRef((function(e,t){var r=e.active,c=void 0!==r&&r,d=e.children,p=e.classes,f=e.className,m=e.direction,h=void 0===m?"asc":m,y=e.hideSortIcon,g=void 0!==y&&y,v=e.IconComponent,b=void 0===v?o:v,E=(0,l.Z)(e,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return n.createElement(s.Z,(0,a.Z)({className:(0,i.Z)(p.root,f,c&&p.active),component:"span",disableRipple:!0,ref:t},E),d,g&&!c?null:n.createElement(b,{className:(0,i.Z)(p.icon,p["iconDirection".concat((0,u.Z)(h))])}))}));const p=(0,c.Z)((function(e){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:e.palette.text.secondary},"&:hover":{color:e.palette.text.secondary,"& $icon":{opacity:.5}},"&$active":{color:e.palette.text.primary,"&& $icon":{opacity:1,color:e.palette.text.secondary}}},active:{},icon:{fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}}),{name:"MuiTableSortLabel"})(d)},98989:(e,t,r)=>{var a=r(14859);t.Z=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M10 17l5-5-5-5v10z"}),l.default.createElement("path",{fill:"none",d:"M0 24V0h24v24H0z"})),"ArrowRight");t.Z=n},82726:(e,t,r)=>{var a=r(14859);t.Z=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.Z=n},43266:(e,t,r)=>{var a=r(14859);t.Z=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");t.Z=n},21853:(e,t,r)=>{var a=r(14859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.default=n},82068:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(24328),l=r.n(a),n=r(71153),i=r.n(n);const o=(0,r(79692).Z)({"basic-view-content":{flex:"1 1 auto",padding:"0 24px 24px","&:first-child":{paddingTop:"24px"}}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},c.apply(this,arguments)}const s=e=>{let{children:t,className:r}=e,a=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["children","className"]);const n=o();return l().createElement("div",c({className:i()(n["basic-view-content"],r)},a),t)}},17822:(e,t,r)=>{r.d(t,{Z:()=>S});var a=r(13980),l=r.n(a),n=r(24328),i=r.n(n),o=r(66244),c=r.n(o),s=r(44443),u=r(17440),d=r(71153),p=r.n(d);function f(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}const m=e=>{let{x:t,y:r,width:a,height:l,id:n,minWidth:i,minHeight:o,maxWidth:c,maxHeight:s,isStatic:u}=e;return{x:t,y:r,w:a,h:l,minW:i,minH:o,maxW:c,maxH:s,i:n,static:u}},h=e=>{let{x:t,y:r,w:a,h:l,maxW:n,minW:i,minH:o,maxH:c,i:s}=e;return{x:t,y:r,width:a,height:l,minWidth:i,minHeight:o,maxWidth:n,maxHeight:c,id:s,isStatic:f(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},y=e=>(e||[]).map(h),g=(0,u.curry)(((e,t)=>(e||[]).find((0,u.propEq)("id",t)))),v=(0,u.curry)(((e,t,r)=>(0,u.mergeAll)([r,(0,u.pick)(e,t)]))),b=(0,u.curry)(((e,t,r)=>(r||[]).map((r=>(0,u.pipe)((0,u.prop)("id"),g(t),(0,u.defaultTo)({}),v(e,u.__,r))(r)))));var E=r(79692),x=r(4171);const O=(0,E.Z)((e=>({gridLayout:{position:"relative",width:"100%","& .react-grid-item":{"&.react-grid-placeholder":{background:"rgba(0, 0, 0, 0.03)",border:"2px dashed rgba(0, 0, 0, 0.3)",borderRadius:"3px",transitionDuration:"100ms",zIndex:7,userSelect:"none","& .react-resizable-handle":{display:"none"}},"&.static .react-resizable-handle":{display:"none"},"&.cssTransforms":{transitionProperty:"transform"},"&.resizing":{zIndex:9,willChange:"width, height",pointerEvents:"none"},"&.react-draggable-dragging":{transition:"none",zIndex:8,willChange:"transform","& .react-resizable-handle":{backgroundImage:"none"}},"& .react-resizable-handle":{position:"absolute",width:"17px",height:"17px",bottom:0,right:0,zIndex:20,backgroundImage:`url('${(0,x.m5F)('<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path stroke="#505050" stroke-opacity=".54" d="M9.5 0v10M0 9.5h9M7.5 4v4M4 7.5h3"/>\n</svg>')}')`,backgroundRepeat:"no-repeat",backgroundOrigin:"content-box",boxSizing:"border-box",cursor:"se-resize"},"&.fullscreen":{visibility:"visible",position:"unset",width:"100% !important",height:"100% !important",transform:"translate(0) !important"}}},gridFullscreen:{height:"100% !important",overflowY:"hidden","& .react-resizable-handle, & .react-grid-item":{visibility:"hidden"}}})));function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},w.apply(this,arguments)}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const T=e=>{let{views:t,layout:r,layoutOptions:a,onLayoutChanged:l,draggableHandle:o,LayoutItem:d,onRemove:f,onDrop:v,droppingItem:E,isDroppable:x,classes:T}=e;const S=(0,n.useRef)(),R=O(),[I,A]=(0,n.useState)(null),[C,D]=(0,n.useState)(0),{cols:L,rowHeight:P,margin:_}=a,j=(0,n.useMemo)((()=>(e=>(e||[]).map(m))(r)),[r]),M=(0,u.pipe)(y,b(["autosizing"],r),l),k=(0,n.useCallback)((e=>A((t=>t?null:e))),[]),F=null!==I,U=(0,n.useCallback)(((e,t)=>{let n=!1;const i=r.map((r=>{if(r.id===t&&e){const t=((e,t)=>{const{margin:r,rowHeight:a}=t;return Math.ceil((e+r[1])/(a+r[1]))})(e,a);if(r.height!==t)return n=!0,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){N(e,t,r[t])}))}return e}({},r,{minHeight:t,maxHeight:t,height:t})}return r}));n&&l(i)}),[r,a,l]);return i().createElement(i().Fragment,null,i().createElement(s.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>D(e)}),i().createElement(c(),{innerRef:S,layout:j,cols:L,draggableHandle:o,autoSize:!0,rowHeight:P,width:C,margin:_,onLayoutChange:M,isResizable:!F,isDraggable:!F,className:p()(R.gridLayout,{[R.gridFullscreen]:F}),onDrop:(e,t,r)=>{v&&v(y(e),h(t),r)},droppingItem:E,isDroppable:x},j.map((e=>{const a=I===e.i,l=(g(r,e.i)||{}).autosizing?{AutosizeComponent:(n=e.i,i().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>{U(t,n)}}))}:{};var n;return i().createElement(d,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:k,onRemove:f,className:p()({fullscreen:a},T.item),isFullscreen:a},l))}))))};T.defaultProps={layoutOptions:{cols:4,rowHeight:30,margin:[15,15]},onConfigChanged:u.identity,onLayoutChanged:u.identity,classes:{}},T.propTypes={views:l().array,layout:l().array,layoutOptions:l().object,onConfigChanged:l().func,onLayoutChanged:l().func,onDrop:l().func,onRemove:l().func,LayoutItem:l().elementType,draggableHandle:l().string,isDroppable:l().bool,droppingItem:l().object,classes:l().shape({item:l().string})};const S=(0,n.memo)(T)},21210:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(89810),l=r(4171),n=r(24328),i=r.n(n),o=r(52730),c=r(42639);const s=e=>{let{sourceType:t,className:r,classes:n}=e;const s=(0,o.useSelector)(a.ZP.selectors.getMetadata),{label:u,icon:d}=(0,l.PWK)(s,t);return i().createElement(c.Z,{className:r,avatarText:u[0],icon:d?(0,l.vPL)("https://s3.amazonaws.com/reltio.images/api",d):null,variant:"square",rootClasses:n})}},39878:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(24328),l=r.n(a),n=r(4171),i=r(17440);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},o.apply(this,arguments)}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=e=>{const t=t=>{let{data:r}=t,s=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(t,["data"]);const u=(0,a.useMemo)((()=>r&&(e=>{const t=(0,n.QK6)((0,i.pluck)("value",e),1);return e.map(((e,r)=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){c(e,t,r[t])}))}return e}({},e,{percent:t[r]})))})(r)),[r]);return l().createElement(e,o({data:u},s))};return t.displayName="WithPercents",t}},59383:(e,t,r)=>{r.d(t,{d:()=>l});const a=(0,r(79692).Z)({clickable:{cursor:"pointer"}}),l=e=>{const t=a();return e?t.clickable:void 0}},11326:(e,t,r)=>{r.d(t,{a:()=>l});var a=r(24328);const l=e=>{const[t,r]=(0,a.useState)(!1),[l,n]=(0,a.useState)({});return(0,a.useEffect)((()=>{e().then((e=>{n(e||{})})).then((e=>r(!0))).catch((e=>r(!0)))}),[]),{isLoaded:t,savedState:l}}},43129:(e,t,r)=>{r.d(t,{Z:()=>o});var a=r(24328),l=r.n(a),n=r(67358);const i=(0,r(79692).Z)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),o=()=>{const e=i();return l().createElement(n.Z,{color:"secondary",className:e.loader})}},65298:(e,t,r)=>{r.d(t,{Z:()=>c});var a=r(24328),l=r.n(a),n=r(1730),i=r(52388);const o=(0,r(79692).Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),c=e=>{let{id:t,children:r}=e;const a=o();return l().createElement(i.H.Provider,{value:t},l().createElement(n.Z,{className:a.view},r))}},52388:(e,t,r)=>{r.d(t,{H:()=>l});var a=r(24328);const l=r.n(a)().createContext(null);l.displayName="DashboardViewIdContext"},5260:(e,t,r)=>{let a;r.d(t,{o:()=>a}),function(e){e.INIT="init",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(a||(a={}))},43349:(e,t,r)=>{r.r(t),r.d(t,{default:()=>nn});var a=r(24328),l=r.n(a),n=r(52730),i=r(33016),o=r(36138),c=r(4171),s=r(71153),u=r.n(s),d=r(17440),p=r(87918),f=r.n(p),m=r(11326),h=r(7907),y=r(79002),g=r(89810);let v,b,E;!function(e){e.FILL_RATE_CHART="fillRate",e.UNIQUENESS_CHART="uniqueness",e.SUMMARY="summary",e.VALIDATION="validation",e.FREQUENCY="frequency",e.LENGTH="length",e.CROSSWALK="crosswalk",e.MONTH_DISTRIBUTION="monthDistribution",e.DAY_OF_WEEK_DISTRIBUTION="dayOfWeekDistribution",e.DAY_OF_MONTH_DISTRIBUTION="dayOfMonthDistribution",e.VALUE_DISTRIBUTION="valueDistribution",e.PATTERN="patternAnalysis",e.UNSUPPORTED="unsupported"}(v||(v={})),function(e){e.STRING="string",e.FLOAT="float",e.INTEGER="integer",e.BOOLEAN="boolean",e.DATE="date",e.SSN="SSN",e.UNKNOWN="unknown"}(b||(b={})),function(e){e.ENTITY_TYPE="entityType",e.ATTRIBUTE_TYPE="attributeType"}(E||(E={}));const x={[E.ATTRIBUTE_TYPE]:[{id:"FillRateView",type:v.FILL_RATE_CHART,title:"Fill rate"},{id:"UniquenessAnalysisView",type:v.UNIQUENESS_CHART,title:f().text("Uniqueness analysis")},{id:"SummaryView",type:v.SUMMARY,title:f().text("Summary")},{id:"ValidationView",type:v.VALIDATION,title:f().text("Profiles with invalid data")},{id:"FrequencyAnalysis",type:v.FREQUENCY,title:f().text("Frequency analysis")},{id:"LengthStatistics",type:v.LENGTH,title:f().text("Length statistics")},{id:"PatternAnalysis",type:v.PATTERN,title:f().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:v.CROSSWALK,title:f().text("Source system analysis")},{id:"MonthDistribution",type:v.MONTH_DISTRIBUTION,title:f().text("Month distribution")},{id:"DayOfWeekDistribution",type:v.DAY_OF_WEEK_DISTRIBUTION,title:f().text("Day of week distribution")},{id:"DayOfMonthDistribution",type:v.DAY_OF_MONTH_DISTRIBUTION,title:f().text("Day of month distribution")},{id:"ValueDistribution",type:v.VALUE_DISTRIBUTION,title:f().text("Value distribution")},{id:"UnsupportedDataType",type:v.UNSUPPORTED,title:f().text("Unsupported Data Type")}],[E.ENTITY_TYPE]:[{id:"SummaryView",type:v.SUMMARY,title:f().text("Summary")}]},O={[E.ATTRIBUTE_TYPE]:{default:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"LengthStatistics"}],[b.SSN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:2,height:19,id:"PatternAnalysis"}],[b.BOOLEAN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"FrequencyAnalysis"},{x:0,y:19,width:2,height:19,id:"CrosswalkAnalysis"}],[b.DATE]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"},{x:0,y:57,width:2,height:19,id:"MonthDistribution"},{x:2,y:57,width:2,height:19,id:"DayOfWeekDistribution"},{x:0,y:76,width:4,height:19,id:"DayOfMonthDistribution"}],[b.INTEGER]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}],[b.FLOAT]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}]}},w=l().createContext(null);w.displayName="ChartsDataContext";const N=l().createContext(null);N.displayName="DataLevelContext";const T=l().createContext(null);T.displayName="DetailedAttributeTypeContext";const S=l().createContext(null);S.displayName="DVFContext";const R=l().createContext(null);R.displayName="EntityTypeContext";var I=r(5260),A=r(29627);const C=e=>{const[t,r]=(0,a.useState)(null),l=(0,A._)();return(0,a.useEffect)((()=>{const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:(0,d.pluck)("uri",e)}]);l((0,c.FK9)({query:(0,c.ECL)({activeness:"active",filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]})).then((e=>{let{type:t}=e;return r(t)})).catch((()=>r(null)))}),[e]),e=>Number((null==t?void 0:t[(0,c.nIW)(e)])||0)},D=(e,t,r)=>({attributes:(t||[]).map(((t,a)=>{let{filter:l,fieldName:n,values:i}=t;return{data:{uri:null==r?void 0:r.uri,entityTypeUri:e,fieldName:n},filter:l,id:`attribute_${a}`,operator:"and",values:i}})),entityTypes:[e],id:"group",operator:"or"});function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){P(e,t,r[t])}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _=(0,d.map)((e=>L({},e,{localizedValue:f().number(e.value)}))),j=e=>(0,d.isNil)(e)?"":`(${e}%)`,M=e=>(0,d.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),k=(0,d.curry)(((e,t,r)=>({advanced:[D(t,r.map((0,d.when)((()=>(0,c.Lt4)(e.type)),(0,d.evolve)({values:(0,d.map)((0,c.mOr)(c.ZBU))}))),e)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}))),F=e=>t=>{let{detailedAttributeType:r,entityTypeUri:a,dvfs:l}=t;return(0,d.pipe)(e({fieldName:r.fieldName,entityTypeUri:a,dvfs:l}),k(r,a))},U=e=>{switch(e){case c.oS0.TYPE_BLOB:case c.oS0.TYPE_BLOG_URL:case c.oS0.TYPE_CIK_ID:case c.oS0.TYPE_ENTITY_ID:case c.oS0.TYPE_IMAGE_URL:case c.oS0.TYPE_STRING:case c.oS0.TYPE_TEXT:case c.oS0.TYPE_URL:return b.STRING;case c.oS0.TYPE_COUNT:case c.oS0.TYPE_DOLLAR:case c.oS0.TYPE_INT:case c.oS0.TYPE_LONG:return b.INTEGER;case c.oS0.TYPE_FLOAT:case c.oS0.TYPE_DOUBLE:case c.oS0.TYPE_NUMBER:return b.FLOAT;case c.oS0.TYPE_BOOLEAN:case c.oS0.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return b.BOOLEAN;case c.oS0.TYPE_ACTIVENESS_DATE:case c.oS0.TYPE_DATE:case c.oS0.TYPE_LOCAL_DATE:case c.oS0.TYPE_TIMESTAMP:return b.DATE;case c.oS0.TYPE_SSN:return b.SSN;default:return b.UNKNOWN}},z=e=>{let{percent:t,value:r}=e;return L({width:`${t}%`},r>0&&{minWidth:"3px"})},B=(0,d.pipe)((0,d.pluck)("percent"),(e=>Math.max(...e)));let V;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(V||(V={}));var H=r(50166),Z=r(44443),W=r(43129),Y=r(83543),G=r(98989),$=r(38402),q=r(79573),Q=r(33286),K=r(83088),X=r(40435);function J(){return J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},J.apply(this,arguments)}const ee=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",J({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg1279746712a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"15",height:"8"},l().createElement("path",{d:"M11.667 4H5C2.793 4 1 5.793 1 8s1.793 4 4 4h6.667c2.206 0 4-1.793 4-4s-1.794-4-4-4zm0 6.667H5a2.666 2.666 0 110-5.334h6.667a2.666 2.666 0 110 5.334zm0-4.667c-1.107 0-2 .893-2 2s.893 2 2 2c1.106 0 2-.893 2-2s-.894-2-2-2z",fill:"#000"})),l().createElement("g",{mask:"url(#svg1279746712a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function te(){return te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},te.apply(this,arguments)}const re=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",te({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg208732808a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"14"},l().createElement("path",{d:"M7.992 1.333A6.663 6.663 0 001.332 8c0 3.68 2.98 6.667 6.66 6.667A6.67 6.67 0 0014.665 8a6.67 6.67 0 00-6.673-6.667zm.007 12A5.332 5.332 0 012.665 8 5.332 5.332 0 018 2.667 5.332 5.332 0 0113.332 8a5.332 5.332 0 01-5.333 5.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z",fill:"#000"})),l().createElement("g",{mask:"url(#svg208732808a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function ae(){return ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ae.apply(this,arguments)}const le=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",ae({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg1638934380a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},l().createElement("path",{d:"M5.948 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2zM7.947 12v-1.1h1.1V12h-1.1zM13.65 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2z",fill:"#000"})),l().createElement("g",{mask:"url(#svg1638934380a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function ne(){return ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ne.apply(this,arguments)}const ie=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",ne({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("path",{d:"M2.11 12v-.825h1.331V5.169L2 5.741v-.89L3.331 4.3h1.045v6.875h1.089V12H2.11zM5.968 11.032l1.65-2.508c.242-.367.403-.62.484-.759.08-.147.136-.29.165-.429.03-.14.044-.341.044-.605v-.77a.778.778 0 00-.253-.583c-.169-.161-.389-.242-.66-.242h-1.21V4.3h1.1c.638 0 1.126.158 1.463.473.345.308.517.774.517 1.397v.462c0 .367-.018.645-.055.836-.037.19-.103.37-.198.539-.088.169-.264.455-.528.858l-1.518 2.299h2.519V12h-3.52v-.968zM13.544 10.262c0 .609-.147 1.052-.44 1.331-.293.271-.77.407-1.43.407h-1.298v-.825h1.397c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.239c0-.242-.073-.433-.22-.572-.147-.147-.341-.22-.583-.22h-1.067v-.825h.957a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.902c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187h-1.298V4.3h1.166c.623 0 1.093.14 1.408.418.323.271.484.704.484 1.298v.693c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.924z",fill:"#000",fillOpacity:".541"}))};function oe(){return oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},oe.apply(this,arguments)}const ce=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",oe({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg924767730a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},l().createElement("path",{d:"M5.463 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H2.03v-.836h1.562c.271 0 .491-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.059-.396-.176-.528-.11-.14-.279-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473h1.463v.836H3.714c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM9.136 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H5.704v-.836h1.562c.27 0 .49-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.06-.396-.176-.528-.11-.14-.28-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473H8.96v.836H7.387c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM12.255 12l-1.683-6.886V12H9.68V4.3h1.562l1.694 6.886V4.3h.89V12h-1.572z",fill:"#000"})),l().createElement("g",{mask:"url(#svg924767730a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function se(){return se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},se.apply(this,arguments)}const ue=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",se({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg3578961193a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},l().createElement("path",{d:"M5.345 12l-.418-1.947H2.782L2.353 12h-.979l1.86-7.7h1.264L6.324 12h-.979zM3.85 5.026l-.89 4.202H4.75L3.85 5.026zM10.494 10.262c0 .63-.146 1.078-.44 1.342-.286.264-.763.396-1.43.396h-2.09V4.3h1.958c.653 0 1.13.132 1.43.396.308.264.462.704.462 1.32v.627c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.99zM9.427 5.917c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187H7.491v2.431h1.133a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.836zm.11 3.256c0-.242-.073-.433-.22-.572-.147-.147-.34-.22-.583-.22H7.491v2.794h1.232c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.173zM13.119 12c-.638 0-1.13-.154-1.474-.462-.337-.315-.506-.785-.506-1.408V6.17c0-.623.169-1.089.506-1.397.345-.315.836-.473 1.474-.473h1.342v.836h-1.452c-.271 0-.491.08-.66.242a.778.778 0 00-.253.583v4.378c0 .227.084.422.253.583.169.161.389.242.66.242h1.452V12h-1.342z",fill:"#000"})),l().createElement("g",{mask:"url(#svg3578961193a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};var de=r(79692);const pe=(0,de.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}}}),fe={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},me=e=>{let{type:t,size:r=fe.SMALL}=e;const a=pe(r);switch(U(t)){case b.STRING:return l().createElement(ue,{className:a.icon});case b.FLOAT:return l().createElement(le,{className:a.icon});case b.INTEGER:return l().createElement(ie,{className:a.icon});case b.BOOLEAN:return l().createElement(ee,{className:a.icon});case b.DATE:return l().createElement(re,{className:a.icon});case b.SSN:return l().createElement(ce,{className:a.icon});default:return l().createElement(ue,{className:a.icon})}};let he;function ye(){return ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ye.apply(this,arguments)}!function(e){e.INCLUDED_IN_MATCHING="includedInMatching",e.CONTAIN_VF="containVF",e.REQUIRED="required",e.REFERENCE="reference",e.RDM_LOOKUP="RDMLookup"}(he||(he={}));const ge=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",ye({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#6663F6"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 14.4h2.411c.016-.205.047-.405.093-.6H8.4v-1.2h3.012c.137-.215.296-.416.472-.6H8.4v-1.2h6v.011a3.896 3.896 0 011.8.287V8.4c0-.66-.54-1.2-1.2-1.2H7.8c-.66 0-1.2.54-1.2 1.2v7.8c0 .66.54 1.2 1.2 1.2h4.083a3.892 3.892 0 01-.979-1.8H8.4v-1.2zm6-4.2h-6V9h6v1.2zm2.58 5.934L18.852 18l-.852.852-1.872-1.872a2.66 2.66 0 01-1.434.42A2.695 2.695 0 0112 14.7c0-1.494 1.206-2.7 2.7-2.7 1.494 0 2.7 1.206 2.7 2.7 0 .528-.156 1.014-.42 1.434zm-2.28.066a1.5 1.5 0 10-.001-3.001A1.5 1.5 0 0014.7 16.2z",fill:"#fff"}))};function ve(){return ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ve.apply(this,arguments)}const be=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",ve({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#1DACF5"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4 9.6H9.3L12 6.9l2.7 2.7h-2.1v3.846l-3.6 3.6-.846-.846 3.246-3.246V9.6zm4.446 6.6l-.846.846L12.954 15l.846-.846 2.046 2.046z",fill:"#fff"}))};function Ee(){return Ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ee.apply(this,arguments)}const xe=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Ee({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#7F22FD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 9v1.2h1.2V9H8.4zm0 2.4v1.2h1.2v-1.2H8.4zm0 2.4V15h1.2v-1.2H8.4zM10.8 9v1.2h4.8V9h-4.8zm0 2.4v1.2h4.8v-1.2h-4.8zm0 2.4V15h4.8v-1.2h-4.8zm6-6v8.4H7.2V7.8h9.6zm1.2 9V6.6H6V17.4h12v-.6z",fill:"#fff"}))};function Oe(){return Oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Oe.apply(this,arguments)}const we=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Oe({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#4B31E9"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 15.6h1.8V15a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-3V9.6H8.4a.6.6 0 01-.6-.6V6.6a.6.6 0 01.6-.6H12a.6.6 0 01.6.6V9a.6.6 0 01-.6.6h-1.2v1.8h1.8v-.6a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-1.8v3z",fill:"#fff"}))};function Ne(){return Ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ne.apply(this,arguments)}const Te=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Ne({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#80D2FC"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6c-3.312 0-6 2.688-6 6s2.688 6 6 6 6-2.688 6-6-2.688-6-6-6zm-.6 4.96V9h1.2v1.96l1.698-.98.6 1.04L13.2 12l1.698.98-.6 1.04-1.698-.98V15h-1.2v-1.96l-1.698.98-.6-1.04L10.8 12l-1.698-.98.6-1.04 1.698.98zM7.2 12c0 2.646 2.154 4.8 4.8 4.8s4.8-2.154 4.8-4.8-2.154-4.8-4.8-4.8A4.806 4.806 0 007.2 12z",fill:"#fff"}))},Se=(0,de.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),Re={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let Ie;!function(e){e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal"}(Ie||(Ie={}));const Ae=e=>{let{detailType:t,size:r=Re.NORMAL,variant:a=Ie.NORMAL}=e;const n=Se(r),i=u()(n.icon,n[a]);switch(t){case he.RDM_LOOKUP:return l().createElement(xe,{className:i});case he.CONTAIN_VF:return l().createElement(ge,{className:i});case he.INCLUDED_IN_MATCHING:return l().createElement(be,{className:i});case he.REFERENCE:return l().createElement(we,{className:i});case he.REQUIRED:return l().createElement(Te,{className:i});default:return null}};var Ce=r(80030);const De=(e,t)=>(e||[]).some((0,d.propEq)("attribute",t)),Le=e=>[c.oS0.TYPE_FLOAT,c.oS0.TYPE_DOUBLE,c.oS0.TYPE_NUMBER].includes(e);function Pe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){_e(e,t,r[t])}))}return e}function _e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const je=(0,d.curry)(((e,t)=>e.some((e=>t.details[e.value])))),Me=(0,d.curry)(((e,t)=>{var r;return 0===e.length||je(e,t)||(null===(r=t.children)||void 0===r?void 0:r.some((t=>Me(e,t))))})),ke=(0,d.curry)(((e,t)=>{var r;const a=e[t.fieldName];return null==a||null===(r=a.find((0,d.propEq)("group",c.s9T.EXISTS)))||void 0===r?void 0:r.value})),Fe=(0,d.curry)(((e,t)=>{var r;const a=e[t.fieldName];return!(null!=a&&null!==(r=a.find((0,d.propEq)("group",c.s9T.EXISTS)))&&void 0!==r&&r.value)})),Ue=(0,d.curry)((function(e,t){var r;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const l=t.fieldName||(0,c.Tde)(t.uri,a);return Fe(e,Pe({},t,{fieldName:l}))||(null===(r=t.children)||void 0===r?void 0:r.some((r=>Ue(e,r,a.concat({name:t.name,label:t.label})))))})),ze=(0,d.curry)(((e,t)=>t.reduce(((t,r)=>{const a=((e,t)=>{var r;return null===(r=e.label||e.name)||void 0===r?void 0:r.toLowerCase().includes(t.toLowerCase())})(r,e),l=a?r.children||[]:ze(e,r.children||[]);return(a||l.length)&&t.push(Object.assign({},r,l.length&&{children:l})),t}),[])));function Be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Ve(e,t,r[t])}))}return e}function Ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const He=e=>{let{attrTypeItem:t,dvf:r=[],matchAttributes:a=[]}=e;const{uri:l,required:n,isAttributeReference:i}=t;return{[he.INCLUDED_IN_MATCHING]:a.includes(l),[he.CONTAIN_VF]:De(r,l),[he.REQUIRED]:!!n,[he.REFERENCE]:i,[he.RDM_LOOKUP]:(0,c.lS4)(t)}},Ze=e=>({[he.INCLUDED_IN_MATCHING]:f().text("Included in match rule"),[he.CONTAIN_VF]:f().text("Has validation functions"),[he.REQUIRED]:f().text("Required"),[he.REFERENCE]:f().text("Reference attribute"),[he.RDM_LOOKUP]:f().text("RDM")}[e]||e),We=(0,d.curry)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return(0,d.pipe)((0,d.chain)((e=>{const l=e.children?We(e.children,t.concat({name:e.name,label:e.label}),r||(0,c.YkG)(e),a+1):[];return[{attributeItem:Be({},e,{fieldName:(0,c.Tde)(e.uri,t),isAttributeReference:(0,c.YkG)(e)||r}),level:a},...l]})))(e)})),Ye=(0,de.Z)({root:{paddingRight:"23px",paddingLeft:"28px",display:"flex",flexDirection:"row-reverse"},detailIcon:{marginLeft:"-5px",borderRadius:"50%",padding:"2px",width:"26px",height:"26px",boxSizing:"border-box"},activeIcon:{background:"white"}}),Ge=e=>{let{details:t,classes:r,fillRateData:a,fillRateState:n}=e;const i=Ye(),o=(0,d.prop)("iconRoot",r);return l().createElement("div",{className:i.root},Object.entries(t||{}).reverse().map((e=>{let[t,r]=e,s=Ie.NORMAL;if(t===he.REQUIRED){const e=n===I.o.LOADING,t=0===(null==(p=a)||null===(f=p.find((0,d.propEq)("group",c.s9T.MISSING)))||void 0===f?void 0:f.value);e&&(s=Ie.LOADING),e||t||(s=Ie.BAD_QUALITY)}var p,f;return l().createElement("div",{key:t,className:u()(r&&(o||i.activeIcon),i.detailIcon)},r&&l().createElement(Ce.ZP,{title:Ze(t)},l().createElement("span",null,l().createElement(Ae,{detailType:t,variant:s,size:Re.SMALL}))))})))},$e="rgba(0, 114, 206, 0.12)",qe=(0,de.Z)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:$e,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:$e}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"}}),Qe=e=>{let{level:t,margin:r,hasChildren:a,isLastLevelItem:n,isCollapsed:i}=e;const o=qe(),c=!i&&(t>0||a);return l().createElement("div",{className:o.linesWrapper},((e,t)=>t>0&&e?(0,d.range)(1,t+1):t>1?(0,d.range)(1,t):[])(a,t).map((e=>l().createElement(Q.Z,{key:e,margin:r,level:e,className:o.line}))),c&&l().createElement(Q.Z,{margin:r,level:t,className:u()(o.line,!a&&t>0&&o.horizontalLine,a&&o.parentLine,n&&o.lastLevel)}))};var Ke=r(39878);const Xe=(0,de.Z)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"}}),Je=e=>{let{label:t,value:r}=e;const a=Xe();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:u()(a.label,a.chartDataLabel)},t),r)},et=(0,de.Z)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),tt=e=>{let{data:t,title:r,DataRenderer:a=Je}=e;const n=et();return l().createElement("div",{className:n.tooltipWrapper},r&&l().createElement("div",{className:n.title},r),t.map(((e,t)=>l().createElement("div",{key:t,className:n.row},l().createElement(a,e)))))},rt={[c.s9T.MISSING]:"#CE5C00",[c.s9T.EXISTS]:"#C4CE00"},at=(0,d.map)((e=>{let{group:t}=e;return rt[t]||(0,c.f4_)(t)})),lt=e=>({[c.s9T.MISSING]:f().text("Missing"),[c.s9T.EXISTS]:f().text("Exists")}[e]||e),nt=(0,d.pipe)(Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:lt(t),group:t,value:r}})),(0,d.sortBy)((e=>Object.values(c.s9T).indexOf(e.group))),_),it=e=>Object.keys(e).reduce(((t,r)=>(t[r]=nt(e[r]),t)),{}),ot=(0,d.propOr)({},"fillRate"),ct=(0,d.pipe)(ot,nt,(0,d.when)(M,(0,d.always)([])),(0,d.converge)(((e,t)=>({chartData:e,colors:t})),[d.identity,at])),st=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:t===c.s9T.EXISTS?c.j5E.EXISTS:c.j5E.MISSING_VALUE,fieldName:r}]})),ut=F(st),dt=(0,de.Z)({bar:{width:"100%",display:"flex",flexWrap:"nowrap"},barPart:{height:"8px",flexGrow:1},fillRateSquare:{height:"8px",width:"8px",display:"inline-block",marginRight:"5px",verticalAlign:"middle"},inactiveBarPart:{background:"#EFEFEF"}});function pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){ft(e,t,r[t])}))}return e}function ft(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const mt=(0,Ke.Z)((e=>{let{data:t}=e;const r=dt(),a=at(t),n=t.map(((e,t)=>{let{label:n,percent:i,value:o}=e;return{label:l().createElement("span",null,l().createElement("div",{className:r.fillRateSquare,style:{background:a[t]}}),n),value:`${f().number(o)} ${j(i)}`}}));return M(t)?l().createElement("div",{className:r.bar},l().createElement("div",{className:u()(r.barPart,r.inactiveBarPart)})):l().createElement(Ce.ZP,{title:l().createElement(tt,{title:f().text("Fill rate"),data:n})},l().createElement("div",{className:r.bar},t.map(((e,t)=>l().createElement("div",{key:e.group,className:r.barPart,style:pt({},z(e),{background:a[t]})})))))})),ht=(0,de.Z)({listItem:{padding:"0 0 0 15px","&:after":{content:'""',left:0,right:0,position:"absolute",bottom:0,height:"1px",background:"rgba(0, 0, 0, 0.05)"}},selectedItem:{background:"#F0F7FC !important"},pointerCursor:{cursor:"pointer"},content:{display:"flex",alignItems:"center",width:"100%",height:"100%",position:"relative"},attribute:{paddingLeft:"9px",boxSizing:"border-box",width:"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",height:"100%",position:"relative"},marginWrapper:{display:"inline-block",height:"100%",position:"relative",width:"100%"},attributeType:{position:"absolute",left:0,top:"8px"},fillRate:{position:"absolute",bottom:"8px",left:0,right:0,zIndex:1},attributeLabel:{padding:"8px 0 0 15px",position:"relative","&:after":{content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}},selectedAttributeLabel:{"&:after":{background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #F0F7FC 100%)"}},parentAttributeLabel:{padding:"14px 0 0 13px"},detailsIconSelected:{background:"#F0F7FC"},detailsIcon:{background:"white"},collapseIcon:{marginRight:"6px"}}),yt=e=>{let{detailedAttributeType:t,fillRateData:r,fillRateState:a,style:n,level:i,selected:o=!1,onClick:s,onCollapse:d=q.ZT,isCollapsed:p=!1,isLastLevelItem:f=!1}=e;const m=ht(),h=!!t.children,y=!!r,g=(e=>(0,c.idV)(e.label||e.name))(t),v=p?G.Z:Y.Z,b=o?m.detailsIconSelected:m.detailsIcon;return l().createElement($.Z,{style:n,selected:o,classes:{selected:m.selectedItem},onClick:h?void 0:()=>{s(t)},component:"div",className:u()(m.listItem,!h&&m.pointerCursor)},l().createElement("div",{className:m.content},!h&&l().createElement("div",{className:m.attributeType},l().createElement(me,{type:t.type})),l().createElement("div",{className:m.attribute},l().createElement(Qe,{level:i,margin:20,hasChildren:h,isLastLevelItem:f,isCollapsed:p}),l().createElement(Q.Z,{margin:20,level:i,className:m.marginWrapper},l().createElement(K.C,{value:g},l().createElement("div",{className:u()(m.attributeLabel,o&&m.selectedAttributeLabel,h&&m.parentAttributeLabel)},h&&l().createElement(X.Z,{size:"XXS",icon:v,onClick:d,className:m.collapseIcon}),g))),y&&!h&&l().createElement("div",{className:m.fillRate},l().createElement(mt,{data:r}))),l().createElement(Ge,{details:t.details,classes:{iconRoot:b},fillRateData:r,fillRateState:a})))},gt=(0,d.propOr)({},"attributeItem"),vt=(0,d.pipe)((0,d.find)((0,d.pipe)(gt,(0,d.either)(c.YkM,c.Or$),d.not)),gt),bt=e=>(0,d.pipe)(gt,(0,d.propEq)("fieldName",e)),Et=e=>(0,d.filter)((0,d.propEq)("group",e));let xt;!function(e){e.SHOW_EMPTY="showEmpty"}(xt||(xt={}));const Ot=(0,d.curry)(((e,t,r)=>{const a=(0,d.head)(Et("emptiness")(e));return(null==a?void 0:a.value)===xt.SHOW_EMPTY?r:r.filter((0,d.pipe)(gt,ke(t)))})),wt=(0,d.pipe)(gt,(0,d.prop)("fieldName")),Nt=(0,d.curry)(((e,t)=>{const r=Et("details")(e),a=(e=>(0,d.pipe)((0,d.filter)((0,d.pipe)(gt,(0,d.both)((0,d.prop)("children"),je(e)))),(0,d.map)(wt)))(r)(t);return t.filter((e=>{let{attributeItem:t}=e;return a.some((e=>t.fieldName.startsWith(e)))||Me(r,t)}))}));function Tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var St=r(77277),Rt=r(36444),It=r(79784),At=r(90436),Ct=r(15115),Dt=r(21324),Lt=r(12231);const Pt=(0,de.Z)((e=>({serachWrapper:{padding:"8px 0px 8px 16px",alignItems:"center",display:"flex",flexGrow:1,justifyContent:"flex-end"},filterByDetails:{width:"32px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"9px"},searchInput:{borderRadius:"4px",width:"240px",minHeight:"32px!important",justifyContent:"flex-end",alignItems:"center",padding:"0 2px",boxSizing:"border-box","& input":{fontSize:"14px"},"& button":{padding:"2px"}},filledInput:{"& button:last-child":{backgroundColor:"rgba(0, 0, 0, 0.0509804)"}},menu:{width:"300px",paddingTop:"8px"},filterIcon:{color:e.palette.text.secondary},filterIconFilterApplied:{color:"#0072CE"},filterIconWrapper:{width:"32px",height:"32px",borderRadius:"4px",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",position:"relative","&:after":{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"4px",background:"rgba(0, 0, 0, 0.04)"},"&:hover":{"&:after":{content:'""'}}},filterIconWrapperActive:{background:"rgba(0, 0, 0, 0.04)","&:after":{content:'""',background:"rgba(0, 0, 0, 0.04)"}},filterIconWrapperSelected:{background:"rgba(0, 114, 206, 0.12)"},dropdownMenuTitle:{lineHeight:"48px",height:"48px",paddingLeft:"16px"},option:{paddingLeft:"5px",fontSize:"13px",height:"28px",lineHeight:"16px",letterSpacing:"normal",paddingRight:"19px",filter:e=>e?"grayscale(0)":"grayscale(1)",opacity:e=>e?1:.5},typeIconWrapper:{width:"28px",marginLeft:"1px","& svg":{width:"20px",height:"20px"}},valueContainer:{marginLeft:0},counter:{marginLeft:"5px"},optionLabel:{flexGrow:1},groupLabel:{textTransform:"uppercase",margin:"15px 16px 5px",letterSpacing:"0.1px",display:"block"},actionsContainer:{display:"flex",padding:"12px 5px 8px 12px"},clearAllButton:{marginRight:"auto"}}))),_t=e=>{let{isSelected:t,data:r,onChange:a}=e;const{count:n,label:i,value:o}=r,s=!(0,d.isNil)(n),u=Pt(!s||n>0);return l().createElement(Lt.Z,{className:u.option,component:"div",onClick:()=>a(r),"data-reltio-id":`reltio-dq-dashboard-option-${r.value}`},l().createElement(Dt.Z,{color:"primary",checked:t}),l().createElement("span",{className:u.typeIconWrapper},l().createElement(Ae,{detailType:o})),l().createElement(K.C,{value:i},l().createElement("div",{className:u.optionLabel},i)),s&&l().createElement("span",{className:u.counter},(0,c.k7L)(n,999)))},jt=(0,d.curry)(((e,t)=>!!t.find((0,d.propEq)("value",e.value)))),Mt=(0,d.curry)(((e,t)=>{const r=t.findIndex((0,d.propEq)("value",e.value));return-1!==r?(0,d.remove)(r,1,t):t})),kt=e=>{let{defaultFilterOptions:t=[],filterOptions:r,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=Pt(),[s,p]=(0,a.useState)(null),[m,h]=(0,a.useState)(t),[y,g]=(0,a.useState)(n||null),v=()=>p(null),b=e=>{h((0,d.ifElse)(jt(e),Mt(e),(0,d.concat)([e])))},E=!!m.length,x=!!s,O=u()(c.filterIconWrapper,{[c.filterIconWrapperActive]:x,[c.filterIconWrapperSelected]:E}),w=E?c.filterIconFilterApplied:c.filterIcon;return l().createElement("div",{className:c.serachWrapper},l().createElement(Ct.Z,{autofocus:!0,onChange:e=>{g(e),i(e||"")},initialValue:n||null,height:40,placeholder:f().text("Search attribute name"),"data-reltio-id":"reltio-dq-dashboard-attributes-search-input",classes:{root:u()(c.searchInput,{[c.filledInput]:!!y})}}),l().createElement("div",{className:c.filterByDetails,"data-reltio-id":"reltio-dq-dashboard-attributes-filter"},l().createElement("div",{className:O,onClick:e=>p(e.currentTarget)},l().createElement(Rt.Z,{className:w})),l().createElement(It.ZP,{open:!!s,anchorEl:s,onClose:()=>{h((0,d.always)(t)),v()},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{"data-reltio-id":"reltio-dq-dashboard-attributes-filter-popup"}},l().createElement("div",{className:c.menu},l().createElement(At.Z,{variant:"h6",className:c.dropdownMenuTitle},f().text("Filter")),l().createElement("div",{className:c.valueContainer},r.map((e=>{let{label:t,options:r}=e;return l().createElement("div",{key:t},t&&l().createElement(At.Z,{variant:"caption",className:c.groupLabel},t),r.map((e=>{const t=jt(e,m);return l().createElement(_t,{key:e.label,data:e,isSelected:t,onChange:b})})))})))),l().createElement("div",{className:c.actionsContainer},l().createElement(St.Z,{onClick:()=>{h([])},className:c.clearAllButton,disabled:!E,"data-reltio-id":"reltio-dq-dashboard-filter-clear-all-button"},f().text("Clear all")),l().createElement(St.Z,{onClick:()=>{h(t),v()},"data-reltio-id":"reltio-dq-dashboard-filter-cancel-button"},f().text("Cancel")),l().createElement(St.Z,{color:"primary",onClick:()=>{o(m),v()},"data-reltio-id":"reltio-dq-dashboard-filter-apply-button"},f().text("Apply"))))))},Ft=(0,de.Z)({container:e=>{let{height:t}=e;return{height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",margin:"0 auto",paddingBottom:t>239?"30px":0,boxSizing:"border-box"}},small:{"& $icon":{maxHeight:"88px"},"& $message":{fontSize:"12px"},"& $title":{fontSize:"13px",fontWeight:400,marginBottom:0}},medium:{"& $icon":{maxHeight:"190px",marginBottom:"24px"}},large:{"& $icon":{maxHeight:"256px",marginBottom:"24px"}},icon:e=>{let{height:t}=e;return{paddingTop:0,marginBottom:t>170?"16px":"4px"}},message:{padding:"0 24px",fontSize:"14px",textAlign:"center",whiteSpace:"pre-wrap"},title:{padding:"0 24px",fontSize:"20px",textAlign:"center",color:"rgba(0,0,0,0.87)",fontWeight:500,marginBottom:"8px"}}),Ut=y.B9.NO_DATA,zt=e=>{let{height:t,data:r={},variant:a=V.SMALL}=e;const{Icon:n=Ut,message:i,title:o}=r,c=Ft({height:t});return l().createElement("div",{className:u()(c.container,c[`${a}`])},l().createElement(n,{className:c.icon}),o&&l().createElement(At.Z,{className:c.title},o),i&&l().createElement(At.Z,{className:c.message},i))},Bt=(0,de.Z)((e=>({root:{width:"480px",display:"flex",flexDirection:"column",borderRight:"solid 1px rgba(0, 0, 0, 0.12)",flexGrow:1},title:{height:"24px",margin:"16px",display:"flex",alignItems:"center",fontSize:"12px",color:"rgba(0, 0, 0, 0.54);"},itemCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px"},listWrapper:{flexGrow:1,overflow:"hidden",position:"relative"},columnsTitle:{height:"48px",display:"grid",gridGap:"32px",gridTemplateColumns:"308px 108px",alignItems:"center",padding:"0 16px",background:"rgba(0, 0, 0, 0.06)",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",fontWeight:500,fontSize:"12px",lineHeight:"16px",color:"rgba(0, 0, 0, 0.54)"},loaderWrapper:{position:"absolute",top:"0",left:"0",width:"100%",height:"4px",zIndex:1}}))),Vt=e=>{var t,r;let{entityType:i,onAttributesListChange:o,defaultFieldName:s,defaultFilterOptions:u,defaultFilterText:p,disableAttributeSelection:m}=e;const h=Bt(),v=(0,a.useRef)(),b=(0,a.useRef)(),[E,x]=(0,a.useState)(p||""),[O,N]=(0,a.useState)([]),[T,R]=(0,a.useState)(u||[]),[C,D]=(0,a.useState)({fieldName:s}),[L,P]=(0,a.useState)({}),{data:_}=(0,a.useContext)(w),{data:j,state:M}=(e=>{const[t,r]=(0,a.useState)(I.o.INIT),[l,n]=(0,a.useState)({}),i=(0,A._)(),o=e=>{console.error(e),r(I.o.ERROR),n({})},s=(0,a.useCallback)((()=>(r(I.o.LOADING),n({}),i((0,c.aTW)({entityTypeUri:e})).then(it).then((e=>{n(e),r(I.o.LOADED)})).catch(o))),[r,n,e]),u=(0,a.useCallback)((()=>{try{s()}catch(e){o(e)}}),[s]);return(0,a.useEffect)((()=>{u()}),[u]),{data:l,state:t,reload:u}})(i.uri);(0,a.useEffect)((()=>P(j)),[j]),(0,a.useEffect)((()=>{const e=(null==_?void 0:_.fillRate)&&nt(null==_?void 0:_.fillRate),t=L[C.fieldName];P((r=>!e||(0,d.equals)(t,e)?r:(0,d.assoc)(C.fieldName,e,r)))}),[null==_?void 0:_.fillRate]);const k=null===(t=(0,a.useContext)(S))||void 0===t||null===(r=t.dvfs)||void 0===r?void 0:r.state,F=((e,t)=>{var r,l;const i=(0,n.useSelector)(g.ZP.selectors.getMetadata),o=(0,a.useMemo)((()=>(e=>(0,d.pipe)(c.WN0,ze(e),We))(t)(i,e)),[i,e,t]),[s,u]=(0,a.useState)([]),p=e.uri,f=(0,a.useMemo)((()=>(0,c.qhs)(i,p)),[i,p]),m=null===(r=(0,a.useContext)(S))||void 0===r||null===(l=r.dvfs)||void 0===l?void 0:l.data;return(0,a.useEffect)((()=>{m&&u(o.map((0,d.evolve)({attributeItem:e=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Tt(e,t,r[t])}))}return e}({},e,{details:He({attrTypeItem:e,dvf:m,matchAttributes:f})},e.children&&{children:e.children.map((t=>(t.details=He({attrTypeItem:t,dvf:m,matchAttributes:f}),t.details.reference=e.isAttributeReference,t)))})})))}),[o,f,m]),s})(i,E),{filteredItems:U,filterOptions:z}=(0,a.useMemo)((()=>{const e=Ot(T,L,F),t=(e=>{const t=Object.values(he).map((e=>({value:e,label:Ze(e),group:"details"}))).map((t=>(0,d.assoc)("count",((e,t)=>e.filter((e=>je([t],e.attributeItem))).length)(e,t),t)));return{label:f().text("Attribute properties"),options:t}})(e);return{filteredItems:Nt(T,e),filterOptions:[{label:"",options:[{label:f().text("Show attributes with no data"),value:xt.SHOW_EMPTY,group:"emptiness"}]},t]}}),[F,T,L]),B=(0,a.useMemo)((()=>((e,t)=>e.filter((e=>{let{attributeItem:r}=e;return!t.some((e=>r.fieldName.startsWith(e)&&r.fieldName!==e))})))(U,O)),[U,O]),Y=U.length,G=e=>{o({selectedDetailedAttributeType:e,filterText:E,filterOptions:T}),D({fieldName:e.fieldName})},$=()=>{const e=((e,t)=>(0,d.pipe)((0,d.find)(bt(t)),(0,d.propOr)(null,"attributeItem"))(e))(U,C.fieldName)||vt(U);return(0,d.isEmpty)(e)||m?null:e};(0,a.useEffect)((()=>{var e,t,r;if(m)return void(null===(r=v.current)||void 0===r||r.scrollTo(0));if(U.length){const e=$();D({fieldName:(null==e?void 0:e.fieldName)||C.fieldName})}const a=((e,t)=>(0,d.findIndex)(bt(t))(e))(U,C.fieldName);a>-1?null===(e=v.current)||void 0===e||e.scrollToItem(a,"center"):null===(t=v.current)||void 0===t||t.scrollTo(0)}),[U]),(0,a.useEffect)((()=>{const e=$();o({selectedDetailedAttributeType:e,filterText:E,filterOptions:T})}),[E,T,C]),(0,a.useEffect)((()=>{D((e=>{let{fieldName:t}=e;return m?{fieldName:null}:{fieldName:t}}))}),[m]);const q=e=>{let{scrollOffset:t}=e;if(b.current){var r,a;const e=null===(r=b.current)||void 0===r||null===(a=r.style)||void 0===a?void 0:a.borderTop;0===t&&(b.current.style.borderTop=""),t>0&&""===e&&(b.current.style.borderTop="1px solid rgba(0, 0, 0, 0.05)")}},Q=e=>{let{data:t,index:r,style:a}=e;const{attributeItem:n,level:i=0}=t[r],o=C.fieldName===n.fieldName,c=((e,t)=>e[t.fieldName])(L,n),s=r>0&&i>(0,d.pathOr)(-1,[r+1,"level"],B);return l().createElement(yt,{fillRateData:c,fillRateState:M,style:a,detailedAttributeType:n,level:i,onClick:G,selected:o,onCollapse:(u=n.fieldName,()=>{N((e=>e.includes(u)?e.filter((e=>e!==u)):e.concat(u)))}),isCollapsed:O.includes(n.fieldName),isLastLevelItem:s});var u},K=B.length,X=!!K,J=M===I.o.LOADING||k===I.o.LOADING||M===I.o.INIT||k===I.o.INIT;return l().createElement("div",{className:h.root},l().createElement("div",{className:h.title},f().text("Attributes"),l().createElement("span",{className:h.itemCount},`${Y} ${ee=Y,1===ee?f().text("item"):f().text("items")}`),l().createElement(kt,{defaultFilterText:p,defaultFilterOptions:T,onChangeFilterOptions:R,onChangeFilterText:x,filterOptions:z})),l().createElement("div",{ref:b,className:h.listWrapper,"data-reltio-id":"reltio-dq-dashboard-attributes-list"},l().createElement("div",{className:h.loaderWrapper},J&&l().createElement(W.Z,null)),X?l().createElement(Z.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return l().createElement(H.FixedSizeList,{ref:v,itemCount:K,width:"100%",height:t,itemData:B,itemSize:48,onScroll:q},Q)})):!J&&l().createElement(zt,{height:349,data:{Icon:y.B9.SEARCH_RESULTS,title:f().text("No results found"),message:f().text("Try adjusting your search or filter to find\nwhat you’re looking for")},variant:V.MEDIUM})));var ee};var Ht=r(43266);const Zt=(0,de.Z)((e=>({container:e=>{let{height:t}=e;return{height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",margin:"0 auto",paddingBottom:t>239?"30px":0,boxSizing:"border-box"}},small:{"& $icon":{maxHeight:"88px"},"& $message":{fontSize:"12px"},"& $title":{fontSize:"13px",fontWeight:400,marginBottom:0},"& $refreshButton":{marginTop:"2px",padding:0}},medium:{"& $icon":{maxHeight:"190px",marginBottom:"24px"}},large:{"& $icon":{height:"256px",width:"256px",marginBottom:"24px"}},icon:e=>{let{height:t}=e;return{paddingTop:0,marginBottom:t>170?"16px":"4px"}},message:{padding:"0 24px",fontSize:"14px",textAlign:"center",whiteSpace:"pre-wrap"},title:{padding:"0 24px",fontSize:"20px",textAlign:"center",color:"rgba(0,0,0,0.87)",fontWeight:500,marginBottom:"8px"},refreshButton:{color:e.palette.primary.main,marginTop:"12px",padding:"6px 8px"},refreshIcon:{width:"24px",height:"24px"}}))),Wt=y.B9.ERROR,Yt=e=>{let{onRefresh:t,height:r,errorData:a={},variant:n=V.SMALL}=e;const{Icon:i=Wt,message:o,title:c}=a,s=Zt({height:r});return l().createElement("div",{className:u()(s.container,s[`${n}`])},l().createElement(i,{className:s.icon}),c&&l().createElement(At.Z,{className:s.title},c),o&&l().createElement(At.Z,{className:s.message},o),!!t&&l().createElement(St.Z,{className:s.refreshButton,startIcon:l().createElement(Ht.Z,{color:"primary",className:s.refreshIcon}),onClick:t,"data-reltio-id":"reltio-dq-dashboard-chart-refresh-button"},l().createElement(At.Z,{variant:"button"},f().text("Refresh"))))},Gt=(0,de.Z)({root:{display:"flex",alignItems:"center",width:"100%",borderBottom:"solid 1px rgba(0, 0, 0, 0.12)"},title:{fontSize:"18px",flexShrink:0,padding:"0 20px"},content:{overflow:"hidden",flexGrow:1},updateButton:{height:36,width:36,padding:"0 20px"}}),$t=e=>{let{title:t,children:r}=e;const a=Gt();return l().createElement("div",{className:a.root},l().createElement(At.Z,{variant:"body2",className:a.title},t),l().createElement("div",{className:a.content},r))};var qt=r(17822),Qt=r(73487),Kt=r(78223);const Xt=(0,de.Z)({wrapper:{width:"100%",display:"flex",justifyContent:"center",margin:"auto",flexWrap:"wrap",flexDirection:"column",marginBottom:2},item:{display:"flex",alignItems:"center",height:19},itemColor:{width:12,height:12,marginRight:9,flexShrink:0}}),Jt=e=>{let{payload:t}=e;const r=Xt();return l().createElement("div",{className:u()(r.wrapper)},t.map((e=>l().createElement("div",{key:e.id,className:r.item},l().createElement("div",{style:{background:e.color},className:r.itemColor}),e.value))))},er=(0,de.Z)({root:{display:"flex",flexDirection:"column",height:"100%"},stackedBar:{width:"100%",display:"flex",flexWrap:"nowrap",marginTop:"13px"},bar:{height:"24px",flexGrow:1,position:"relative",width:"50%",transition:"width 0.7s","&:hover":{"&:after":{content:'""',background:"rgba(0, 0, 0, 0.1)"}},"&:after":{position:"absolute",top:"-3px",bottom:"-5px",left:"-5px",right:"-5px",transition:"background 0.3s",zIndex:1,pointerEvents:"none"}},inactivePart:{background:"#EFEFEF"},tooltipTitle:{fontSize:"11px"},tooltipFillRate:{marginTop:"4px"},tooltip:{background:"#fff",filter:"drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)) drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2))",padding:"5px 8px"},legendWrapper:{position:"relative",flexGrow:1},legendLabel:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},legendValue:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.87)"},clickable:{cursor:"pointer"}});function tr(){return tr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},tr.apply(this,arguments)}const rr=(0,a.forwardRef)(((e,t)=>{let{className:r}=e,a=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["className"]);const n=er();return l().createElement("div",tr({className:u()(n.bar,r)},a,{ref:t}))}));rr.displayName="Bar";const ar=rr;function lr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){nr(e,t,r[t])}))}return e}function nr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ir=(0,Kt.Z)(ar),or=e=>{let{label:t,value:r,percent:a}=e;return[{label:t,value:`${f().number(r)} ${j(a)}`}]},cr=(0,Ke.Z)((e=>{let{data:t,colors:r,onItemClick:a}=e;const n=er(),i=a&&(e=>a(e)),o=!!a;return l().createElement("div",{className:n.root},l().createElement("div",{className:n.stackedBar},t.map(((e,t)=>l().createElement(ir,{className:o&&n.clickable,key:e.label,tooltipTitle:l().createElement(tt,{data:or(e)}),style:lr({},z(e),{background:r[t]}),onClick:()=>i(e.group)})))),l().createElement("div",{className:n.legendWrapper},l().createElement(Qt.De,{layout:"vertical",align:"left",verticalAlign:"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%"},content:l().createElement(Jt,null),payload:(t||[]).map(((e,t)=>{let{group:a,label:i,value:o,percent:s}=e;return{id:a,type:"square",color:r[t],value:l().createElement(l().Fragment,null,l().createElement("span",{className:n.legendLabel},i),l().createElement("span",{className:n.legendValue},`${(0,c.k7L)(o,999)} ${j(s)}`))}}))})))}));var sr=r(17998),ur=r(39475),dr=r(82726);const pr=(0,de.Z)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:"5px",lineHeight:"24px"},infoIcon:{position:"relative"}}))),fr=e=>{let{title:t,infoTooltipTitle:r,children:a}=e;const n=pr(!!a),i=!!r;return l().createElement(sr.Z,{title:t,className:n.root,classes:{title:n.title}},i&&l().createElement(ur.k,{icon:dr.Z,size:"XXS",tooltipTitle:r,className:n.infoIcon}),a)};var mr=r(7882),hr=r(82068);const yr=(0,de.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}}))),gr=e=>{let{loadingState:t,onRefresh:r,children:a,data:n,className:i}=e;const o=yr();return l().createElement(hr.Z,{className:u()(o.viewContent,i)},l().createElement(Z.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:i,height:o}=e;switch(t){case I.o.LOADED:return n&&0!==n.length?l().createElement(mr.Z,{error:l().createElement(Yt,{errorData:{message:f().text("Something went wrong")},height:o,variant:V.SMALL})},a({data:n,width:i,height:o})):l().createElement(zt,{height:o,data:{Icon:y.B9.NO_DATA,message:f().text("Go ahead and load some data. We’ll put it on the scales and let you know here if it measures up."),title:f().text("Give us something to go on!")},variant:V.SMALL});case I.o.LOADING:return l().createElement(W.Z,null);case I.o.ERROR:return l().createElement(Yt,{errorData:{Icon:y.B9.ERROR,message:f().text("No need to fret - just refresh and it will work itself out."),title:f().text("Oops! We ran into a problem.")},height:o,onRefresh:r,variant:V.SMALL});default:return l().createElement("div",null,"Loading...")}})))};var vr=r(1730);const br=(0,de.Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),Er=e=>{let{config:t,children:r}=e;const a=br(),{type:n}=t;return l().createElement(vr.Z,{className:a.view,"data-reltio-id":`reltio-dq-dashboard-chart-${n}`},r)},xr=e=>{let{label:t,value:r}=e;const a=Xe();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:u()(a.label,a.infoDataLabel)},t),r)},Or=e=>{const{data:t,state:r,reload:l}=(0,a.useContext)(w);return{data:(0,a.useMemo)((()=>e(t)),[t,e]),state:r,reload:l}},wr=e=>{const t=(0,n.useDispatch)(),r=(0,a.useContext)(T),l=(0,a.useContext)(R);return(0,d.pipe)(e({detailedAttributeType:r,entityTypeUri:l.uri}),g.ui.actions.openSearch,t)},Nr=e=>{let{config:t}=e;const{title:r}=t,{data:a,state:n,reload:i}=Or(ct),{chartData:o,colors:c}=a,s=wr(ut),u=l().createElement(tt,{title:f().text("Fill rate"),data:[{label:`${f().text("Exists")}:`,value:f().text("Profiles with data")},{label:`${f().text("Missing")}:`,value:f().text("Profiles without data")}],DataRenderer:xr});return l().createElement(Er,{config:t},l().createElement(fr,{title:r,infoTooltipTitle:u}),l().createElement(gr,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(cr,{data:t,colors:c,onItemClick:s})})))},Tr={[c.dC6.UNIQUE]:"#4BAFFF",[c.dC6.NOT_UNIQUE]:"#C34980"},Sr=(0,d.map)((e=>{let{group:t}=e;return Tr[t]||(0,c.f4_)(t)})),Rr=e=>({[c.dC6.UNIQUE]:f().text("Unique"),[c.dC6.NOT_UNIQUE]:f().text("Not unique")}[e]||e),Ir=(0,d.pipe)(Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:Rr(t),group:t,value:r}})),(0,d.sortBy)((e=>Object.values(c.dC6).indexOf(e.group))),_),Ar=(0,d.propOr)({},"uniqueness"),Cr=(0,d.pipe)(Ar,Ir,(0,d.when)(M,(0,d.always)([])),(0,d.converge)(((e,t)=>({chartData:e,colors:t})),[d.identity,Sr])),Dr=e=>{let{config:t}=e;const{title:r}=t,{data:a,state:n,reload:i}=Or(Cr),{chartData:o,colors:c}=a,s=l().createElement(tt,{title:f().text("Uniqueness analysis"),data:[{label:`${f().text("Unique")}:`,value:f().text("Number of values that only appear once and have no duplicates")},{label:`${f().text("Not unique")}:`,value:f().text("Number of values that have at least one duplicate in the list")}],DataRenderer:xr});return l().createElement(Er,{config:t},l().createElement(fr,{title:r,infoTooltipTitle:s}),l().createElement(gr,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(cr,{data:t,colors:c})})))};var Lr=r(4614),Pr=r(7089);const _r=(0,de.Z)({root:{height:"24px",maxWidth:"calc(100% - 8px)",margin:"0 4px 4px 0",borderRadius:"12px"},label:{fontSize:"12px",paddingLeft:"8px",paddingRight:"9px"},badQuality:{backgroundColor:"rgba(255, 23, 68, 0.12)"}});function jr(){return jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},jr.apply(this,arguments)}function Mr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){kr(e,t,r[t])}))}return e}function kr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Fr=e=>{let{detailType:t,classes:r}=e,n=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["detailType","classes"]);const i=_r(),{data:o,state:s}=(0,a.useContext)(w);let d=Ie.NORMAL;const p=s===I.o.LOADING,f=(e=>{var t;return 0===(null==e||null===(t=e.fillRate)||void 0===t?void 0:t[c.s9T.MISSING])})(o);return t===he.REQUIRED&&(p&&(d=Ie.LOADING),p||f||(d=Ie.BAD_QUALITY)),l().createElement(Pr.Z,jr({classes:Mr({root:u()(i.root,{[i.badQuality]:t===he.REQUIRED&&!p&&s!==I.o.INIT&&!f}),label:i.label},r),label:Ze(t),icon:l().createElement(Ae,{detailType:t,variant:d})},n))},Ur=(0,de.Z)({root:{display:"flex",flexWrap:"wrap",flexGrow:1}}),zr=e=>{let{details:t,chipClasses:r={}}=e;const a=Ur();return l().createElement("div",{className:a.root},Object.entries(t||{}).filter((e=>{let[,t]=e;return t})).map((e=>{let[t]=e;return l().createElement(Fr,{key:t,detailType:t,classes:r})})))},Br=(0,de.Z)({header:{display:"flex",paddingBottom:"16px"},info:{display:"flex",flexDirection:"column","&:not(:last-child)":{borderRight:"1px solid rgba(0,0,0,0.12)"}},entitySummary:{"&:not(:last-child)":{paddingRight:"16px",marginRight:"16px"}},attributeTypeSummary:{"&:not(:last-child)":{paddingRight:"24px",marginRight:"24px"}},infoTitle:{color:"rgba(0,0,0,0.54)",fontSize:"12px",lineHeight:"16px"},infoContent:{fontSize:"30px",lineHeight:"35px",padding:"4px 0 0",display:"flex",alignItems:"center"},attributeTypeIconWrapper:{width:"32px",height:"33px",background:"rgba(0, 0, 0, 0.05)",borderRadius:"4px",position:"relative",marginRight:"12px",flexShrink:0,"& svg":{position:"absolute",transform:"translate(-50%, -50%)",top:"50%",left:"50%"}},totalLoading:{padding:"4px 8px"}}),Vr=e=>{let{title:t,children:r,className:a}=e;const n=Br();return l().createElement("div",{className:u()(n.info,a)},l().createElement("div",{className:n.infoTitle},t),l().createElement("div",{className:n.infoContent},r))},Hr=e=>{let{detailedAttributeType:t}=e;const r=Br(),n=(e=>{const[t,r]=(0,a.useState)(null),l=(0,a.useContext)(R),n=(0,A._)();return(0,a.useEffect)((()=>{if(l.uri&&e){const t={filter:c.j5E.EXISTS,fieldName:e},a={filter:c.j5E.EQUALS,fieldName:"type",values:[l.uri]};r(null),n((0,c.j_Q)([t,a])).then((e=>{let{total:t}=e;return r(t)})).catch(console.error)}}),[l.uri,e]),t})(t.fieldName),i=null===n?l().createElement(Lr.Z,{size:"24",className:r.totalLoading}):(0,c.k7L)(n);return l().createElement("div",null,l().createElement("div",{className:r.header},l().createElement(Vr,{title:f().text("Profiles"),className:r.attributeTypeSummary},l().createElement(Ce.ZP,{title:l().createElement(tt,{data:[{label:f().text("Entities with exists attribute"),value:f().number(n)}]})},l().createElement("div",null,i))),l().createElement(Vr,{title:f().text("Data type"),className:r.attributeTypeSummary},(o=t.type,l().createElement(l().Fragment,null,l().createElement("div",{className:r.attributeTypeIconWrapper},l().createElement(me,{type:o,size:fe.NORMAL})),f().text(o))))),l().createElement(zr,{details:t.details}));var o},Zr=e=>{let{entityType:t}=e;const{data:r,state:i}=(0,a.useContext)(w),o=((e,t)=>{const r=t.attributes||[],a=t=>t.filter(c.Uty).filter((0,d.either)((0,d.prop)("label"),(0,d.prop)("name"))).reduce(((t,r)=>{const l=(0,c.EUG)(e,r);return null!=l&&l.length?[...t,r,...a(l)]:[...t,r]}),[]);return a(r).length})((0,n.useSelector)(g.ZP.selectors.getMetadata),t),{activeProfiles:s=0,inactiveProfiles:u=0,sourceSystems:p=0}=(null==r?void 0:r.summary)||{},m=e=>i===I.o.LOADING?l().createElement(Lr.Z,{size:"24",className:h.totalLoading}):f().number(e),h=Br();return l().createElement("div",{className:h.header},l().createElement(Vr,{title:f().text("Active profiles"),className:h.entitySummary},m(s)),l().createElement(Vr,{title:f().text("Inactive profiles"),className:h.entitySummary},m(u)),l().createElement(Vr,{title:f().text("Attributes"),className:h.entitySummary},f().number(o)),l().createElement(Vr,{title:f().text("Source systems"),className:h.entitySummary},m(p)))},Wr=(0,de.Z)({content:{padding:"0 16px",marginTop:"4px"}}),Yr=e=>{let{config:t}=e;const r=Wr(),n=(0,a.useContext)(T),i=(0,a.useContext)(N),o=(0,a.useContext)(R),s=i===E.ATTRIBUTE_TYPE,u=s?(0,c.idV)(n.label):(0,c.idV)(o.label);return l().createElement(Er,{config:t},l().createElement(fr,{title:u}),l().createElement(hr.Z,{className:r.content},s?l().createElement(Hr,{detailedAttributeType:n}):l().createElement(Zr,{entityType:o})))};var Gr=r(65298);const $r=(0,de.Z)({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}});function qr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Qr(e,t,r[t])}))}return e}function Qr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Kr=y.B9.ERROR,Xr=e=>{let{config:t,errorData:r,titleChildren:a,infoTooltipTitle:n,onRefresh:i}=e;const{id:o,title:c}=t,s=$r();return l().createElement(Gr.Z,{id:o},l().createElement(fr,{title:c,infoTooltipTitle:n},a),l().createElement(hr.Z,{className:s.viewContent},l().createElement(Z.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},l().createElement(Yt,{errorData:qr({Icon:Kr},r),onRefresh:i,variant:V.SMALL}))))},Jr=e=>{let{keyword:t,entityTypeUri:r}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[D(r)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}},ea=e=>{let{fieldName:t,value:r,entityTypeUri:a}=e;return Jr({keyword:`${c.j5E.EQUALS}(${t}, ${r})`,entityTypeUri:a})};function ta(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ra=e=>(0,d.pipe)((0,d.propOr)({},e),Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),_),aa=e=>{let{sortDirection:t,sortField:r}=e;return(e,a)=>"asc"===t?e[r]>a[r]?1:-1:e[r]<a[r]?1:-1},la=(0,d.curry)(((e,t)=>t.filter((t=>e.find((0,d.propEq)("uri",t.group)))).map((t=>{const r=e.find((0,d.propEq)("uri",t.group)).name;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){ta(e,t,r[t])}))}return e}({},t,{label:r,group:r})})))),na=ra("frequency"),ia=ra("pattern"),oa=e=>[{filter:c.j5E.EQUALS,values:[[e]],fieldName:"analyticsAttributes.AttributeValidations.FunctionName"}],ca=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return ea({fieldName:`${r.fieldName}`,value:t,entityTypeUri:a})})),sa=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.ON,values:[t],fieldName:r}]})),ua=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:r}]})),da=e=>{let{detailedAttributeType:t,entityTypeUri:r}=e;return(0,d.cond)([[c.j5n,(0,d.always)(ca)],[c.Lt4,(0,d.always)(F(sa))],[d.identity,(0,d.always)(F(ua))]])(t.type)({detailedAttributeType:t,entityTypeUri:r,dvfs:[]})},pa=F((()=>oa)),fa=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return ea({fieldName:`${r.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:a})})),ma=e=>`(${e.length>=100?f().text("top")+" 100":e.length})`;var ha=r(45108),ya=r(92332);const ga=(0,d.pipe)((0,d.split)("|"),(e=>{let[t,r]=e;return{label:t,percent:r}})),va={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"},ba=(0,de.Z)((e=>({colorBarContainer:{position:"relative",width:"100%",marginLeft:"16px",padding:"5px 0 6px",height:"100%",boxSizing:"border-box","&>span":{display:"block"},"&>span>div":{opacity:1,zIndex:1}},numberWhithPercent:{fontSize:"13px",lineHeight:"15px",fontWeight:"normal",color:e.palette.text.primary,flexShrink:0,width:"90px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},numberContainer:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 10px 0 16px",height:"100%"},bar:{borderRadius:"0 !important",minHeight:"16px !important",position:"initial !important","&:hover":{"&:after":{background:"rgba(0, 0, 0, 0.1)"}},"&:after":{content:'""',position:"absolute",top:"2px",left:"-3px",right:"-2px",bottom:"3px",transition:"background 0.3s"}},tooltipTitle:{color:"rgba(255, 255, 255, 0.6)"},headCell:{height:"100%",lineHeight:"47px","&>div":{padding:"0 10px 0 16px",display:"flex"},"&>div>span":{width:"100%",flexGrow:1,justifyContent:e=>e?"flex-start":"flex-end",flexDirection:e=>e?"row":"row-reverse",marginLeft:e=>e&&"auto!important"}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"47px",whiteSpace:"nowrap",overflow:"hidden","&:after":va},labelPercantageWrapper:{display:"flex",flexGrow:1},labelWrapper:{minWidth:"90px",position:"relative"},percentsWrapper:{marginLeft:"11px",display:"flex",width:"100%"},percentLabel:{color:e.palette.text.secondary,fontSize:"12px","&:first-child":{flexGrow:1}},attribute:{color:e.palette.text.primary,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",whiteSpace:"pre",overflow:"hidden",display:"flex",alignItems:"center",height:"100%",padding:"0 16px","&:after":va},tooltipValue:{whiteSpace:"pre-wrap"}})));function Ea(){return Ea=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ea.apply(this,arguments)}function xa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Oa(e,t,r[t])}))}return e}function Oa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wa=e=>{let{className:t,headCellData:r,headIndex:a}=e,n=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["className","headCellData","headIndex"]);const i=ba(!a),{label:o,percent:c}=ga(r.label),s=!!c,d=l().createElement(K.C,{value:o},l().createElement("div",{className:i.headLabel},o));return l().createElement("div",{className:u()(i.headCell,t)},l().createElement(ya.default,Ea({},n,{headCellData:xa({},r,{label:s?l().createElement("div",{className:i.labelPercantageWrapper},l().createElement("div",{className:i.labelWrapper},d),l().createElement("div",{className:i.percentsWrapper},l().createElement("span",{className:i.percentLabel},"0%"),l().createElement("span",{className:i.percentLabel},c,"%"))):d})})))};var Na=r(59383),Ta=r(30488);const Sa=(0,Ta.Z)(((e,t)=>{let{onItemClick:r}=e,{rowValue:{group:a}}=t;return{onClick:r&&(()=>{r(a)})}}))((e=>{let{value:t="",columnData:r,rowValue:a,onClick:n}=e;const{labelCellClassName:i,labelRenderer:o}=r,s=ba(),d=(0,Na.d)(n),p=l().createElement("div",{className:s.tooltipValue},t),f=!!o;return l().createElement(K.C,{value:p},l().createElement("div",{className:u()(s.attribute,d,i),onClick:n},f?l().createElement(o,{chartData:a}):c.P6Y.strings.removeLineBreaks(t)))}));var Ra=r(89902);const Ia=(0,Kt.Z)((e=>{let{value:t,maxValue:r,className:a}=e;return l().createElement(Ra.Z,{width:t,maxWidth:r,className:a})})),Aa=(0,Ta.Z)(((e,t)=>{let{onItemClick:r,valueHeader:a,labelHeader:l}=e,{rowValue:{group:n}}=t;return{onClick:r&&(()=>{r(n)}),valueHeader:a,labelHeader:l}}))((e=>{let{value:t,columnData:{maxValue:r},rowValue:{percent:a,label:n},labelHeader:i,valueHeader:o,onClick:s}=e;const p=ba(),m=(0,Na.d)(s),h=l().createElement("span",{className:p.tooltipValue},n),y=0===t?"0":`${(0,c.k7L)(t,999)} ${j(a)}`,g=l().createElement(tt,{data:[{label:i,value:h},{label:o,value:`${f().number(t)} ${j(a)}`}]});return l().createElement("div",{className:u()(p.numberContainer,m),onClick:s},l().createElement(At.Z,{className:p.numberWhithPercent},y),!(0,d.isNil)(r)&&l().createElement("div",{className:p.colorBarContainer},l().createElement(Ia,{value:t,maxValue:r,tooltipTitle:g,className:p.bar,showForDisabled:!0})))})),Ca=(0,de.Z)({tableContainer:e=>{let{width:t,height:r}=e;return{height:r,width:t,display:"flex",flexDirection:"column"}},cellBorder:{borderLeft:"none",borderRight:"none!important"}});function Da(){return Da=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Da.apply(this,arguments)}const La=e=>{let{width:t,height:r,data:n,options:i={},basicTableRef:o,onItemClick:c}=e,s=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["width","height","data","options","basicTableRef","onItemClick"]);const u=Ca({width:t,height:r}),{headers:[d,p]=[],сountLabel:m,showValues:h=!0,sortable:y=!1,labelCellClassName:g,LabelRenderer:v}=i,b=(0,a.useMemo)((()=>({cellBorder:u.cellBorder})),[u]),E=(0,a.useMemo)((()=>Math.max(...n.map((e=>e.value)))),[n]),x=(0,a.useMemo)((()=>{const e=B(n),t=p||f().text("No of Profiles");return e?t.concat(`|${e}`):t}),[n,p]),O=m?`${d} ${m}`:d,w=(0,a.useMemo)((()=>[{id:"label",label:O,resizable:!1,headCellRenderer:wa,labelCellClassName:g,rowCellValueRenderer:Sa,initialWidth:.4*t,sortable:y,labelRenderer:v},...h?[{id:"value",label:x,resizable:!1,headCellRenderer:wa,rowCellValueRenderer:Aa,maxValue:E,initialWidth:.6*t,sortable:y}]:[]]),[x,E,t,O,h,g,y,v]),N=(0,a.useMemo)((()=>({onItemClick:c,labelHeader:d,valueHeader:p})),[c,d,p]);return l().createElement("div",{className:u.tableContainer},l().createElement(ha.Z,Da({columnsData:w,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:b,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:N},s)))},Pa=(0,de.Z)((()=>({layoutItemContent:{padding:"0 0 10px"}}))),_a=(0,Ke.Z)((e=>{let{config:t,data:r,title:n,headers:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,titleChildren:u,state:d,onRefresh:p,labelCellClassName:f,сountLabel:m,LabelRenderer:h}=e;const y=Pa(),[g,v]=(0,a.useState)("desc"),[b,E]=(0,a.useState)("value"),x=(0,a.useCallback)(((e,t)=>c?c({sortDirection:g,sortField:b})(e,t):aa({sortDirection:g,sortField:b})(e,t)),[g,b,c]),O=e=>{v((()=>b===e?(0,q.Dh)(g):g)),E(e)},w=(0,a.useMemo)((()=>[...r.sort(x)]),[x,r]);return l().createElement("div",null,l().createElement(Er,{config:t},l().createElement(fr,{title:n,infoTooltipTitle:o},u),l().createElement(gr,{className:y.layoutItemContent,data:w,loadingState:d,onRefresh:p},(e=>{let{data:t,width:r=0,height:a=0}=e;return l().createElement(La,{data:t,width:r,height:a,options:{headers:i,sortable:!!c,сountLabel:m,labelCellClassName:f,LabelRenderer:h},sorting:{field:b,order:g},onSort:O,onItemClick:s})}))))})),ja=(0,de.Z)((e=>({title:{whiteSpace:"nowrap",height:"24px",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"},titleCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px",overflow:"hidden",lineHeight:"24px",textOverflow:"ellipsis",fontSize:"14px"},container:{height:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",padding:0,"&>svg":{paddingTop:0,height:"88px",width:"88px",marginBottom:"14px"}},noDataMessage:{fontSize:"12px",textAlign:"center",whiteSpace:"pre-wrap"},noDataTitle:{fontSize:"13px",textAlign:"center",color:"rgba(0,0,0,0.87)",whiteSpace:"pre-wrap"},viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}})));var Ma=r(86689);function ka(){return ka=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ka.apply(this,arguments)}const Fa=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",ka({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg1830866123a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg1830866123a)"},l().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},l().createElement("path",{d:"M12.375 18.688a7 7 0 017-7h75.742a7 7 0 017 7v49.02a7 7 0 01-7 7H19.375a7 7 0 01-7-7v-49.02z"}),l().createElement("path",{opacity:".4",d:"M16.844 22.813a7 7 0 017-7h75.741a7 7 0 017 7v49.02a7 7 0 01-7 7H23.844a7 7 0 01-7-7v-49.02z"})),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"29.318",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 31.381a3.562 3.562 0 013.552-3.563 3.562 3.562 0 013.552 3.563 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 29.052c0-.726.588-1.313 1.313-1.313h23.983a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 33.553c0-.518.42-.938.938-.938h43.37a.938.938 0 010 1.876h-43.37a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 36.554c0-.31.252-.563.563-.563h13.993a.563.563 0 110 1.126H31.26a.563.563 0 01-.563-.563z",fill:"#B1AABD"}),l().createElement("rect",{opacity:".5",x:"19.854",y:"17.689",width:"29.914",height:"4.126",rx:"2.063",fill:"#645F6D"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"43.573",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("rect",{x:"19.854",y:"42.072",width:"7.105",height:"7.127",rx:"3.552",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 43.306c0-.725.588-1.313 1.313-1.313h28.41a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 47.808c0-.518.42-.938.938-.938h48.23a.938.938 0 110 1.876h-48.23a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 50.809c0-.31.252-.563.563-.563h38.884a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"57.828",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 59.891a3.562 3.562 0 013.552-3.564 3.562 3.562 0 013.552 3.564 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 57.561c0-.725.588-1.313 1.313-1.313h38.132a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 62.063c0-.518.42-.938.938-.938h31.778a.938.938 0 110 1.875H31.635a.938.938 0 01-.938-.937z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 65.064c0-.311.252-.563.563-.563h13.993a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 3.094h88V88H0V3.094z",fill:"url(#paint0_linear_3200_4362)"}),l().createElement("path",{d:"M79.893 76.85H21.308v14.184h58.585V76.85z",fill:"#F5C056"}),l().createElement("path",{d:"M79.893 76.85H74.6v14.184h5.293V76.85z",fill:"#E99B00"}),l().createElement("path",{d:"M48.73 76.893H26.283v14.184H48.73V76.893z",fill:"#FFEA5A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.894 57.829c-1.687-4.26 13.113-4.043 11.413 0-1.353 3.218-1.353 7.53 0 12.934H44.894C46 64.93 46 60.618 44.894 57.83z",fill:"#FFD264"}),l().createElement("path",{d:"M61.253 70.383H39.949v2.663h21.304v-2.663z",fill:"#FFD264"}),l().createElement("path",{d:"M47.938 70.383h-4.185v2.663h4.185v-2.663z",fill:"#FFEA5A"}),l().createElement("path",{d:"M64.676 73.046h-28.15v3.804h28.15v-3.804z",fill:"#795D1A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.764 16.363v5.325H15.602v.143c0 13.634 8.992 24.714 20.162 24.961v2.994c-14-.986-25.108-15.488-25.108-33.233v-.19h25.108z",fill:"#FFCB64"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.677 16.363v5.325h20.161v.143c0 13.634-8.991 24.714-20.161 24.961v2.994c13.999-.986 25.107-15.488 25.107-33.233v-.19H64.677z",fill:"#ED985C"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.307 57.829c-1.353 3.218-1.353 7.53 0 12.934h-5.706V54.715c3.278.026 6.556 1.091 5.706 3.114z",fill:"#F4B046"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.676 73.046v3.804H50.601v-3.804h14.075z",fill:"#4F350B"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.253 70.383v2.663H50.6v-2.663h10.652z",fill:"#F4B046"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.933 10.656a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-11.43 0-23.311-20.1-24.449-45.65h2.194l-.38-3.044h-1.898a91.212 91.212 0 01.01-2.663h49.045z",fill:"#FFCE66"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.937 10.656c.006.569.01 1.14.01 1.712v.952h-.044l-.241 3.043h.294c.126 24.948 1.435 39.335 3.123 45.65-8.89-3.2-15.661-20.403-16.308-45.65h1.465l-.241-3.044h-1.271a158.252 158.252 0 01.006-2.663h13.207z",fill:"#FFEA5A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.284 16.363h-3.91l.422-3.044h3.581a81.301 81.301 0 00-.01-2.663h4.566a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-.414 0-.828-.026-1.241-.078 11.92-1.382 19.899-20.946 21.114-45.572zm.083-5.707h-44.48 44.48z",fill:"#F4B046"}),l().createElement("path",{opacity:".519",d:"M72.665 13.32h-44.51v3.043h44.51v-3.044z",fill:"#F4B046"}),l().createElement("path",{d:"M48.318 73.046h-5.706v3.804h5.706v-3.804z",fill:"#96691F"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M65.526 10.656h4.235L58.973 35.935h-4.235l10.788-25.279z",fill:"url(#paint1_linear_3200_4362)"}),l().createElement("g",{filter:"url(#filter0_d_3200_4362)"},l().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#000"})),l().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#DD612C"}),l().createElement("path",{d:"M56.909 54.302a8.681 8.681 0 100-17.362 8.681 8.681 0 000 17.362z",fill:"#FFCE66"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.909 36.94a8.685 8.685 0 018.347 6.291c-5.74.351-10.312 5.02-10.51 10.8a8.699 8.699 0 01-6.008-5.47A11.212 11.212 0 0054.9 37.174a8.684 8.684 0 012.008-.234z",fill:"#FFF18C"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.202 10.656l10.862 25.341H54.83L43.646 10.705l4.556-.049z",fill:"#F83D3D"})),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3200_4362",x1:"0",y1:"3.094",x2:"0",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3200_4362",x1:"62.25",y1:"10.656",x2:"62.25",y2:"35.935",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#B93131"}),l().createElement("stop",{offset:"1",stopColor:"#831616"})),l().createElement("filter",{id:"filter0_d_3200_4362",x:"40.057",y:"30.77",width:"33.702",height:"33.703",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l().createElement("feOffset",{dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"3"}),l().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0335613 0 0 0 0 0.334579 0 0 0 0 0.412601 0 0 0 0.5 0"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3200_4362"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3200_4362",result:"shape"}))))};function Ua(){return Ua=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ua.apply(this,arguments)}const za=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Ua({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg355575424a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg355575424a)"},l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_3488_11934)"}),l().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M64.543 19.547L84.7 39.704V90.88H32.1L17.875 77.372V19.547h46.668z",fill:"url(#paint1_linear_3488_11934)"}),l().createElement("path",{opacity:".06",fillRule:"evenodd",clipRule:"evenodd",d:"M16.156 19.938h69.438A2.406 2.406 0 0188 22.343v53.968a2.406 2.406 0 01-2.406 2.407H16.156a2.406 2.406 0 01-2.406-2.406v-53.97a2.406 2.406 0 012.406-2.405z",fill:"#000"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 19.25H86.28c.95 0 1.719.77 1.719 1.719v53.968c0 .95-.77 1.72-1.719 1.72H17.187c-.949 0-1.718-.77-1.718-1.72V20.97c0-.95.77-1.719 1.719-1.719z",fill:"#fff"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 24.968c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 29.093c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 56.031c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 60.156c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 66.344c0-.57.462-1.031 1.031-1.031h28.059a1.031 1.031 0 010 2.062H37.254c-.57 0-1.031-.462-1.031-1.031z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 70.469c0-.57.462-1.031 1.031-1.031h25.508a1.031 1.031 0 010 2.062H37.125c-.57 0-1.031-.462-1.031-1.031z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 35.406c0-.57.461-1.031 1.03-1.031h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 39.531c0-.57.461-1.031 1.03-1.031H70.54a1.031 1.031 0 010 2.063H48.47c-.57 0-1.032-.462-1.032-1.032z",fill:"#979797"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 45.719c0-.57.461-1.032 1.03-1.032h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.031z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 49.844c0-.57.461-1.032 1.03-1.032h25.509a1.031 1.031 0 010 2.063H48.469c-.57 0-1.032-.462-1.032-1.031z",fill:"#979797"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M31.802 37.125v-2.75h-.688V48.251h3.843v-.688h-3.155v-9.75h3.155v-.688h-3.155z",fill:"#2B98F0"}),l().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),l().createElement("path",{opacity:".6",fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 7.563h63.937c1.14 0 2.063.923 2.063 2.062v6.188c0 1.139-.924 2.062-2.063 2.062H17.187a2.062 2.062 0 01-2.062-2.063V9.625c0-1.14.923-2.063 2.063-2.063z",fill:"#fff"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M19.938 12.719c0-1.14.923-2.063 2.062-2.063h24.063a2.063 2.063 0 010 4.125H22a2.062 2.062 0 01-2.063-2.062zM50.875 12.719c0-1.14.923-2.063 2.063-2.063h3.437a2.063 2.063 0 010 4.125h-3.438a2.062 2.062 0 01-2.062-2.062z",fill:"#979797"}),l().createElement("path",{opacity:".2",d:"M37.687 66.48l8.942 8.309v.958l19.925 19.702 31.064-.552 7.006-25.47-34.487-34.144-11.2.567c-3.238-1.86-5.34-3.02-6.306-3.48-.54-.258-.383 5.565-2.755 7.725-1.243 1.133-3.462 4.104-6.657 8.914l-5.532 17.47z",fill:"url(#paint2_linear_3488_11934)"}),l().createElement("g",{filter:"url(#filter0_d_3488_11934)",fillRule:"evenodd",clipRule:"evenodd"},l().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312a18.719 18.719 0 014.236 4.554l4.28-.699a23.425 23.425 0 012.392 6.47l-3.639 2.443c.262 2.058.2 4.18-.216 6.285l3.466 2.572a24.254 24.254 0 01-2.838 6.375l-4.231-.855a19.61 19.61 0 01-4.526 4.366l.62 4.34a23.426 23.426 0 01-6.409 2.551l-2.345-3.649a18.72 18.72 0 01-6.219-.1l-2.593 3.564a22.7 22.7 0 01-6.224-2.757l.912-4.304a18.715 18.715 0 01-4.281-4.567l-4.285.7a23.424 23.424 0 01-2.4-6.438l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14zM60.075 49.74c-2.804-1.248-6.112.064-7.388 2.93-1.276 2.867-.038 6.203 2.766 7.452 2.804 1.248 6.112-.064 7.388-2.93 1.276-2.867.038-6.203-2.766-7.452z",fill:"#6B93AC"}),l().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312c.779.597 1.503 1.25 2.168 1.95l-10.07 9.392a5.444 5.444 0 00-1.491-.983c-2.804-1.248-6.112.064-7.388 2.93a5.7 5.7 0 00.626 5.749l-10.071 9.39c-.502-.585-.965-1.2-1.39-1.84l-4.284.7a23.424 23.424 0 01-2.4-6.437l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14z",fill:"#7CA6BF"}),l().createElement("path",{d:"M62.886 42.644c6.409 2.854 9.24 10.479 6.322 17.03-2.917 6.553-10.478 9.552-16.887 6.698-6.409-2.853-9.24-10.478-6.322-17.03 2.917-6.553 10.478-9.551 16.887-6.698zm-1.32 2.966c-4.808-2.14-10.478.109-12.666 5.023-2.188 4.914-.065 10.633 4.742 12.773 4.806 2.14 10.477-.108 12.665-5.023 2.188-4.914.065-10.633-4.742-12.773z",fill:"#AAC4D5"}),l().createElement("path",{d:"M62.886 42.644a12.424 12.424 0 014.22 3.075l-2.366 2.207a9.317 9.317 0 00-3.175-2.316c-4.807-2.14-10.477.109-12.665 5.023-1.635 3.673-.863 7.795 1.638 10.536l-2.367 2.208c-3.325-3.656-4.35-9.145-2.172-14.035 2.917-6.553 10.478-9.551 16.887-6.698z",fill:"#CBDDE9"}))),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3488_11934",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3488_11934",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopOpacity:".01"}),l().createElement("stop",{offset:"1"})),l().createElement("linearGradient",{id:"paint2_linear_3488_11934",x1:"86.975",y1:"77.519",x2:"49.809",y2:"46.968",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#90A4AE",stopOpacity:"0"}),l().createElement("stop",{offset:"1",stopOpacity:".75"})),l().createElement("filter",{id:"filter0_d_3488_11934",x:"32.168",y:"30.067",width:"53.209",height:"53.716",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l().createElement("feOffset",{dx:"1",dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"2"}),l().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3488_11934"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3488_11934",result:"shape"}))))};let Ba;!function(e){e.DVF_NOT_CONFIGURE="dvfNotConfigured",e.DATA_VALID="dataValid",e.PERMISSION_DENIED="permissionDenied"}(Ba||(Ba={}));const Va=e=>{let{chartType:t,title:r,infoTooltipTitle:a,titleChildren:n,dvfConfigLink:i,config:o}=e;const c=ja();let s,u,d;switch(t){case Ba.DVF_NOT_CONFIGURE:s=l().createElement(za,null),u=f().text("If we spot any validation issues, we’ll display them here."),d=l().createElement(l().Fragment,null,l().createElement(Ma.Z,{href:i,target:"_blank",component:i?"a":"span",color:i?"primary":"inherit",underline:i?"hover":"none","data-reltio-id":"reltio-dq-dashboard-define-dvf-link"},f().text("Define some data validation functions"))," ",f().text("for this attribute (or ask your Tenant Admin)."));break;case Ba.DATA_VALID:s=l().createElement(Fa,null),u=f().text("We didn’t spot any validation issues for this attribute type.\nYou can kick back and enjoy a cold one."),d=f().text("Nice one!");break;case Ba.PERMISSION_DENIED:s=l().createElement(y.B9.ERROR,null),u=f().text("Please contact your Tenant Admin to change permissions"),d=f().text("You don’t currently have permission to view this page")}return l().createElement(Er,{config:o},l().createElement(fr,{title:r,infoTooltipTitle:a},n),l().createElement(hr.Z,{className:c.viewContent},l().createElement("div",{className:c.container},s,d&&l().createElement(At.Z,{className:c.noDataTitle},d),u&&l().createElement(At.Z,{className:c.noDataMessage},u))))},Ha=e=>{const t=ja(),{config:r}=e,{dvfs:n,dvfConfigLink:i}=(0,a.useContext)(S),{data:o,state:s,reload:u,errorCode:p}=n,m=(0,a.useContext)(T).uri,h=(0,a.useContext)(R),y=h.uri,g=((e,t)=>(e||[]).filter((0,d.propEq)("attribute",t)))(o,m).filter((e=>e.status===c.lVm.ACTIVE)),{data:v,state:b,reload:E}=Or((e=>(0,d.pipe)(ra("dataValidationFunctions"),la(e)))(g)),x=(0,a.useMemo)((()=>[h]),[h]),O=(0,a.useMemo)((()=>g.map((e=>e.uri))),[g]),w=(e=>{let{entityTypeUri:t,dvfUris:r}=e;const[l,n]=(0,a.useState)(null),i=(0,A._)();return(0,a.useEffect)((()=>{const e=[{fieldName:"type",filter:c.j5E.EQUALS,values:[t]},{fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",filter:c.j5E.EQUALS,values:r}];i((0,c.j_Q)(e)).then((e=>{let{total:t}=e;return n(t)})).catch((()=>n(null)))}),[t,r]),l})({entityTypeUri:y,dvfUris:O}),N=C(x)(y),D=wr(pa),L=(0,a.useMemo)((()=>s===I.o.LOADED&&b===I.o.LOADED?I.o.LOADED:s===I.o.ERROR||b===I.o.ERROR?I.o.ERROR:I.o.LOADING),[b,s]),P=(0,a.useMemo)((()=>()=>{s===I.o.ERROR&&u(),b===I.o.ERROR&&E()}),[b,s,u,E]),_=p===c.Xt7.ACCESS_DENIED,j=p===c.Xt7.DVF_NOT_CONFIGURED||0===(null==g?void 0:g.length)&&!_,M=L===I.o.LOADED&&(null==g?void 0:g.length)>0&&0===v.length,k=!(L===I.o.ERROR&&p!==c.Xt7.DVF_NOT_CONFIGURED)&&!j&&L!==I.o.LOADING&&l().createElement(K.C,{value:r.title},l().createElement(At.Z,{className:t.titleCount},(e=>{let{isDataValid:t,totalProfiles:r,invalidProfiles:a}=e;return t?f().text("0 profiles"):(0,d.isNil)(a)?"":`${(0,c.k7L)(a)} (${Math.round(a/r*100)}%) ${1!==a?f().text("profiles"):f().text("profile")}`})({isDataValid:M,totalProfiles:N,invalidProfiles:w}))),F=[f().text("Validation function"),f().text("Profiles")],U=`(${v.length})`,z=l().createElement(tt,{title:f().text("Profiles with invalid data"),data:[{value:f().text("Shows the number of profiles that violate active validation functions")}],DataRenderer:xr});return j||M||_?l().createElement(Va,{config:r,chartType:j?Ba.DVF_NOT_CONFIGURE:M?Ba.DATA_VALID:_?Ba.PERMISSION_DENIED:void 0,title:f().text(r.title),infoTooltipTitle:z,titleChildren:k,dvfConfigLink:i}):l().createElement(_a,{config:r,title:f().text(r.title),headers:F,data:v,onItemClick:D,titleChildren:k,state:L,onRefresh:P,customComparator:aa,infoTooltipTitle:z,сountLabel:U})},Za=(0,de.Z)((()=>({monoFontCell:{fontFamily:'"Roboto Mono", monospace'}}))),Wa=e=>{let{config:t}=e;const r=Za(),{data:n,state:i,reload:o}=Or(na),s=(0,a.useContext)(T).type,d=(0,c.Lt4)(s)?((e,t)=>{const r=t===c.oS0.TYPE_TIMESTAMP?"L LTS":"L";return e.map((e=>L({},e,{label:f().date(Number(e.label),r)})))})(n,s):n,p=wr(da),m=[f().text("Value"),f().text("Count")],h=ma(n),y=l().createElement(tt,{title:f().text("Frequency analysis"),data:[{value:f().text("Shows the number of times each value occurs")}],DataRenderer:xr});return l().createElement(_a,{config:t,data:d,headers:m,title:t.title,infoTooltipTitle:y,onItemClick:p,state:i,onRefresh:o,labelCellClassName:u()({[r.monoFontCell]:(0,c.m6e)(s)}),сountLabel:h})};function Ya(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Ga(e,t,r[t])}))}return e}function Ga(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $a,qa;!function(e){e[e.sun=0]="sun",e[e.mon=1]="mon",e[e.tue=2]="tue",e[e.wed=3]="wed",e[e.thu=4]="thu",e[e.fri=5]="fri",e[e.sat=6]="sat"}($a||($a={})),function(e){e[e.jan=0]="jan",e[e.feb=1]="feb",e[e.mar=2]="mar",e[e.apr=3]="apr",e[e.may=4]="may",e[e.jun=5]="jun",e[e.jul=6]="jul",e[e.aug=7]="aug",e[e.sep=8]="sep",e[e.oct=9]="oct",e[e.nov=10]="nov",e[e.dec=11]="dec"}(qa||(qa={}));const Qa=e=>(0,d.pipe)((0,d.pathOr)({},[e,"data"]),Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),_);var Ka;!function(e){e.AVERAGE="avg",e.MININMUN="min",e.MAXIMUM="max",e.MEDIAN="median",e.NUMBER_OF_SOURCES="numberOfSources",e.MIN_NUMBER_OF_PROFILES="minNumberOfProfiles",e.MAX_NUMBER_OF_PROFILES="maxNumberOfProfiles",e.AVG_NUMBER_OF_PROFILES="avgNumberOfProfiles"}(Ka||(Ka={}));const Xa=(e,t)=>{const r={lengthStatistics:{[Ka.MEDIAN]:f().text("Median"),[Ka.AVERAGE]:f().text("Average"),[Ka.MININMUN]:f().text("Minimum"),[Ka.MAXIMUM]:f().text("Maximum")},valueDistribution:{[Ka.MEDIAN]:f().text("Median"),[Ka.AVERAGE]:f().text("Average"),[Ka.MININMUN]:f().text("Minimum"),[Ka.MAXIMUM]:f().text("Maximum")},crosswalkAnalysis:{[Ka.NUMBER_OF_SOURCES]:f().text("No. of source systems"),[Ka.AVG_NUMBER_OF_PROFILES]:f().text("Avg no. of profiles"),[Ka.MIN_NUMBER_OF_PROFILES]:f().text("Min no. of profiles"),[Ka.MAX_NUMBER_OF_PROFILES]:f().text("Max no. of profiles")}};return(0,d.pathOr)(null,[t,e],r)},Ja=e=>(0,d.pipe)((0,d.propOr)({},e),Object.entries,(0,d.map)((t=>{let[r,a]=t;return{label:Xa(r,e),value:a}})),(0,d.filter)((e=>{let{label:t}=e;return t})),_),el=e=>t=>({chartData:Qa(e)(t),infoPanelData:Ja(e)(t)}),tl=(e,t)=>(0,c.Lt4)(t)?f().date(Number(e),"L"):f().number(e),rl=(0,d.curry)(((e,t)=>{const r=(0,d.pipe)((0,d.prop)("group"),(0,d.split)(" "),d.head,Number),a=t.chartData.sort((0,d.ascend)(r)).map(((r,a)=>{const[l,n=l]=r.group.split(" ").map(Number),i=a===t.chartData.length-1,o=l!==n?((e,t,r)=>Le(t)?`[${e}${r?"]":")"}`:e)(`${tl(l,e)} - ${tl(n,e)}`,e,i):tl(l,e);return Ya({},r,{label:o,group:[l,n,i?"last":""].toString()})}));return{infoPanelData:t.infoPanelData.map((t=>Ya({},t,{value:(0,c.Lt4)(e)?f().date(Number(t.value),"L"):(0,c.k7L)(t.value,999),localizedValue:(0,c.Lt4)(e)?f().date(Number(t.value),"L"):t.localizedValue}))),chartData:a}})),al=(0,d.pipe)(el("lengthStatistics"),rl("")),ll=(0,d.pipe)(el("crosswalkAnalysis"),(0,d.applySpec)({chartData:(0,d.prop)("chartData"),infoPanelData:(0,d.pipe)((0,d.prop)("infoPanelData"),(0,d.map)((e=>(0,d.assoc)("value",(0,c.k7L)(e.value,999),e))))})),nl=el("monthDistribution"),il=el("dayOfWeekDistribution"),ol=el("dayOfMonthDistribution"),cl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return ea({fieldName:`${r.fieldName}.day_of_week`,value:$a[t.toLowerCase()],entityTypeUri:a})})),sl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return ea({fieldName:`${r.fieldName}.month`,value:qa[t.toLowerCase()],entityTypeUri:a})})),ul=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return ea({fieldName:`${r.fieldName}.day_of_month`,value:t,entityTypeUri:a})})),dl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;const[l,n]=t.split(",");return l===n?ea({fieldName:`${r.fieldName}.length`,value:l,entityTypeUri:a}):(e=>{let{fieldName:t,startRange:r,endRange:a,entityTypeUri:l}=e;return Jr({keyword:`${c.j5E.IN_RANGE}(${t}, ${r}, ${a})`,entityTypeUri:l})})({fieldName:`${r.fieldName}.length`,startRange:l,endRange:n,entityTypeUri:a})})),pl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return ea({fieldName:`${r.fieldName}.crosswalk_sources`,value:t,entityTypeUri:a})})),fl=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l]=t.split(",");return[{filter:c.j5E.AFTER,values:[a],fieldName:r},{filter:c.j5E.BEFORE,values:[l],fieldName:r}]})),ml=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l]=t.split(",");return[a===l?{filter:c.j5E.EQUALS,values:[[a]],fieldName:r}:{filter:c.j5E.IN_RANGE,values:[[a,l]],fieldName:r}]})),hl=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l,n]=t.split(","),i=a===l,o=i?[{filter:c.j5E.EQUALS,values:[[a]],fieldName:r}]:[{filter:c.j5E.IN_RANGE,values:[[a,l]],fieldName:r}];return!n&&!i&&o.push({filter:c.j5E.NOT_EQUALS,values:[[l]],fieldName:r}),o})),yl=(0,d.cond)([[c.Lt4,(0,d.always)(F(fl))],[Le,(0,d.always)(F(hl))],[d.identity,(0,d.always)(F(ml))]]);function gl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){vl(e,t,r[t])}))}return e}function vl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const bl=(0,de.Z)((e=>({tooltipWrapper:gl({},e.tooltip,{padding:"4px 8px"})}))),El=e=>{var t;let{payload:r,active:a,name:n}=e;const i=null==r||null===(t=r[0])||void 0===t?void 0:t.payload,o=null==i?void 0:i.value,c=null==i?void 0:i.label,s=n?`${n}`:"",u=bl();return a&&l().createElement("div",{className:u.tooltipWrapper},l().createElement(tt,{data:[{label:s,value:c},{label:f().text("No of profiles"),value:f().number(o)}]}))},xl=(0,de.Z)((()=>({chartInfoLabel:{fontSize:"13px",lineHeight:"15px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},chartInfoValue:{fontSize:"13px",lineHeight:"15px",color:"rgba(0, 0, 0, 0.87)"},chartInfoWrapper:{display:"flex",backgroundColor:"rgba(0, 0, 0, 0.05)",margin:"0 12px 12px",padding:"9px 12px 8px"},chartInfoItem:{marginRight:"16px"},clickable:{cursor:"pointer"},title:{marginRight:"50px",fontSize:"16px"},root:{padding:"0 0 0 16px",minHeight:"auto",marginTop:"12px",marginBottom:"12px"}}))),Ol=e=>{let{data:t}=e;const r=xl();return l().createElement("div",{className:r.chartInfoWrapper},t.map((e=>{let{label:t,value:a,localizedValue:n}=e;return l().createElement("div",{key:t,className:r.chartInfoItem},l().createElement("span",{className:r.chartInfoLabel},t,": "),a!==n?l().createElement(Ce.ZP,{title:n},l().createElement("span",{className:r.chartInfoValue},a)):l().createElement("span",{className:r.chartInfoValue},a))})))},wl=(0,de.Z)((()=>({labelWrapper:e=>{let{width:t}=e;return{overflow:"hidden",width:`${t}px`,marginTop:"-3px"}},xAxisLabel:{textAlign:"center",whiteSpace:"nowrap",textTransform:"capitalize","&:after":{top:"0",right:"0",width:"10px",height:"100%",content:'""',position:"absolute",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}}}))),Nl=e=>{let{width:t,height:r,label:a,x:n,y:i}=e;const o=wl({width:t}),c=n-t/2;return l().createElement("foreignObject",{x:c,y:i,width:t,height:r},l().createElement("div",{className:o.labelWrapper},l().createElement(K.C,{value:a},l().createElement("div",{className:o.xAxisLabel},a))))},Tl=e=>{const{x:t,y:r,width:a,height:n,payload:i,visibleTicksCount:o}=e,{value:c}=i,s=a/o-4;return l().createElement(Nl,{width:s,height:n,label:c,x:t,y:r})};function Sl(){return Sl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Sl.apply(this,arguments)}const Rl=e=>{let{isClickable:t}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["isClickable"]);const a=xl(),n=t?a.clickable:void 0;return l().createElement(Qt.Ae,Sl({},r,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},Il=e=>{const{value:t}=e;return t>0?l().createElement(Qt.Ae,e):null};function Al(){return Al=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Al.apply(this,arguments)}const Cl=e=>{let{data:t,config:r,xAxisLabel:a,yAxisLabel:n,barTooltipTitle:i,infoPanelData:o,infoTooltipTitle:s,onItemClick:u,options:d={},state:p,onRefresh:f}=e;const m=xl(),{title:h}=r,{cartesianGrid:y,bar:g,xAxis:v,yAxis:b,labelForX:E,labelForY:x,barChart:O}=(e=>{let{showCategories:t=!1,interval:r,barCategoryGap:a}=e;return{barChart:{barCategoryGap:a||"10%"},bar:{dataKey:"value",fill:"#0072CE",minPointSize:3,maxBarSize:50},xAxis:{tick:t&&Tl,tickLine:!1,interval:r||0,dataKey:"label"},yAxis:{tickCount:8,axisLine:!1,tickLine:!1,tick:{fill:"#000"},width:60,tickFormatter:e=>(0,c.k7L)(e,999)},cartesianGrid:{stroke:"#000",strokeOpacity:"0.05",vertical:!1},labelForX:{position:"insideBottom",style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"},offset:t?-3:3},labelForY:{angle:270,position:"left",offset:-3,style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"}}}})(d),w=u&&(e=>{let{activePayload:t}=e;return u(t[0].payload.group)}),N=w?m.clickable:void 0,T=p===I.o.LOADED&&o.length>0;return l().createElement(Er,{config:r},l().createElement(fr,{title:h,infoTooltipTitle:s}),T&&l().createElement(Ol,{data:o}),l().createElement(gr,{data:t,loadingState:p,onRefresh:f},(e=>{let{data:t,width:r=0,height:o=0}=e;return l().createElement("div",null,l().createElement(Qt.vz,Al({width:r,height:o,data:t,onClick:w},O),l().createElement(Qt.q3,y),l().createElement(Qt.u,{content:l().createElement(El,{name:i}),cursor:l().createElement(Rl,{isClickable:!!w})}),l().createElement(Qt.$Q,Al({},g,{shape:l().createElement(Il,{className:N})})),l().createElement(Qt.B2,b,l().createElement(Qt.__,Al({},x,{value:n}))),l().createElement(Qt.Kc,v,l().createElement(Qt.__,Al({},E,{value:a})))))})))},Dl=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=Or(al),{chartData:i,infoPanelData:o}=r,c=wr(dl),s=l().createElement(tt,{title:f().text("Length statistics"),data:[{value:f().text("Measures the string length of values")}],DataRenderer:xr});return l().createElement(Cl,{config:t,data:i,xAxisLabel:f().text("Length of values"),yAxisLabel:f().text("No. of profiles"),infoPanelData:o,barTooltipTitle:f().text("Length"),infoTooltipTitle:s,onItemClick:c,state:a,onRefresh:n})};var Ll=r(21210);const Pl=(0,de.Z)({icon:{width:"20px",height:"20px",borderRadius:"4px",fontSize:"14px",marginRight:"8px"},text:e=>{let{color:t}=e;return{backgroundColor:t}}}),_l=e=>{let{chartData:t}=e;const{group:r,label:a}=t,n=Pl({color:(0,c.kW2)(r)});return l().createElement(l().Fragment,null,l().createElement(Ll.Z,{sourceType:r,className:n.icon,classes:{textRoot:n.text}}),a)};function jl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Ml(e,t,r[t])}))}return e}function Ml(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kl=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=Or(ll),{chartData:i}=r,o=wr(pl),c=[f().text("Source system"),f().text("Profiles")],s=l().createElement(tt,{title:f().text("Source system analysis"),data:[{value:f().text("Distribution of source systems contributing to profiles")}],DataRenderer:xr}),u=`(${i.length})`;return l().createElement(_a,{config:jl({},t),data:i,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:a,onRefresh:n,customComparator:aa,сountLabel:u,LabelRenderer:_l})},Fl=e=>{let{config:t}=e;const r=(0,a.useContext)(T).type,{data:n,state:i,reload:o}=Or((e=>(0,d.pipe)(el("valueDistribution"),rl(e)))(r)),{chartData:c,infoPanelData:s}=n,u=wr(yl(r));return l().createElement(Cl,{config:t,data:c,xAxisLabel:f().text("Value"),yAxisLabel:f().text("No. of profiles"),infoPanelData:s,barTooltipTitle:f().text("Value"),onItemClick:u,state:i,onRefresh:o})},Ul=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=Or(nl),{chartData:i,infoPanelData:o}=r,c=wr(sl);return l().createElement(Cl,{config:t,data:i,xAxisLabel:f().text("Months of the year"),yAxisLabel:f().text("No. of profiles"),infoPanelData:o,barTooltipTitle:f().text("Months of the year"),options:{showCategories:!0,barCategoryGap:"20%",interval:"preserveStartEnd"},onItemClick:c,state:a,onRefresh:n})},zl=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=Or(il),{chartData:i,infoPanelData:o}=r,c=wr(cl);return l().createElement(Cl,{config:t,data:i,xAxisLabel:f().text("Days of the week"),yAxisLabel:f().text("No. of profiles"),infoPanelData:o,barTooltipTitle:f().text("Days of the week"),options:{showCategories:!0,barCategoryGap:"25%",interval:"preserveStartEnd"},onItemClick:c,state:a,onRefresh:n})},Bl=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=Or(ol),{chartData:i,infoPanelData:o}=r,c=wr(ul);return l().createElement(Cl,{config:t,data:i,xAxisLabel:f().text("Days of the month"),yAxisLabel:f().text("No. of profiles"),infoPanelData:o,barTooltipTitle:f().text("Days of the month"),options:{showCategories:!0,interval:1},onItemClick:c,state:a,onRefresh:n})},Vl=e=>{let{config:t}=e;const r=Za(),{data:a,state:n,reload:i}=Or(ia),o=wr(fa),c=[f().text("Value"),f().text("Count")],s=l().createElement(tt,{title:f().text("Pattern analysis"),data:[]}),u=ma(a);return l().createElement(_a,{config:t,data:a,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:n,onRefresh:i,labelCellClassName:r.monoFontCell,сountLabel:u})};function Hl(){return Hl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Hl.apply(this,arguments)}class Zl{}Zl.getComponent=e=>{let{type:t,config:r,isFullscreen:a,onToggleFullscreen:n}=e;const i={config:r,isFullscreen:a,onToggleFullscreen:n};switch(t){case v.FILL_RATE_CHART:return l().createElement(Nr,i);case v.UNIQUENESS_CHART:return l().createElement(Dr,i);case v.SUMMARY:return l().createElement(Yr,i);case v.VALIDATION:return l().createElement(Ha,i);case v.FREQUENCY:return l().createElement(Wa,i);case v.LENGTH:return l().createElement(Dl,i);case v.CROSSWALK:return l().createElement(kl,i);case v.VALUE_DISTRIBUTION:return l().createElement(Fl,i);case v.MONTH_DISTRIBUTION:return l().createElement(Ul,i);case v.DAY_OF_WEEK_DISTRIBUTION:return l().createElement(zl,i);case v.DAY_OF_MONTH_DISTRIBUTION:return l().createElement(Bl,i);case v.PATTERN:return l().createElement(Vl,i);default:return l().createElement(Xr,Hl({},i,{errorData:{message:f().text("Chart isn't supported for this data type")}}))}};const Wl=Zl,Yl=e=>{let{layoutItemConfig:t,views:r,onToggleFullscreen:a,isFullscreen:n,className:i,children:o,style:c}=e;const s=r.find((e=>{let{id:r}=e;return t.i===r}));if(!s)return null;const{type:u}=s;return l().createElement("div",{style:c,className:i},Wl.getComponent({type:u,config:s,onToggleFullscreen:a,isFullscreen:n}),o)},Gl=(0,de.Z)({root:{overflow:"auto",backgroundColor:"#F9F9F9",height:"100%",flexGrow:1,padding:"4px"}}),$l=(0,d.map)((0,d.assoc)("isStatic",!0)),ql={cols:4,rowHeight:10,margin:[12,12]},Ql=(0,a.memo)((e=>{let{views:t,layout:r,layoutOptions:n=ql}=e;const i=Gl(),o=(0,a.useMemo)((()=>$l(r)),[r]);return l().createElement("div",{className:i.root},l().createElement(qt.Z,{LayoutItem:Yl,views:t,layout:o,layoutOptions:n}))})),Kl=(0,de.Z)((e=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowX:"hidden",overflowY:"auto",fontFamily:"Roboto, Helvetica, Arial, sans-serif",display:"flex",flexDirection:"column"},content:{display:"flex",flexGrow:1,overflow:"hidden"},additionalLabel:{color:e.palette.text.secondary,marginLeft:"10px"},entityLevelButton:{height:"48px",padding:"0 16px",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",borderRight:"1px solid rgba(0, 0, 0, 0.1)",fontSize:"16px",lineHeight:"48px",color:"rgba(0, 0, 0, 0.87)",cursor:"pointer"},selectedButton:{background:"#F0F7FC"},wrapper:{display:"flex",flexDirection:"column"}})));function Xl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Jl=(0,d.path)([0,"uri"]),en=e=>{var t,r,i,o,s;let{config:p,saveState:D,getSavedState:L}=e;const P=Kl(),_=(()=>{const e=(0,n.useSelector)(g.ZP.selectors.getMetadata);return(0,a.useMemo)((()=>e.entityTypes.filter(c.oDv)),[e.entityTypes])})(),[j,M]=(0,a.useState)(),k=_&&j?(0,c.nt9)({entityTypes:_},j):null,F=C(_),[z,B]=(0,a.useState)(null),{isLoaded:H,savedState:Z}=(0,m.a)(L),W=(0,n.useSelector)(g.ZP.selectors.getCanUserGetDQStatistic),[Y,G]=(0,a.useState)(),$=(e=>{const[t,r]=(0,a.useState)(null),[l,i]=(0,a.useState)(null),o=(0,A._)(),s=(0,n.useSelector)(g.ZP.selectors.getUIPath),u=(0,n.useSelector)(g.ZP.selectors.getEnvironment),p=(0,n.useSelector)(g.ZP.selectors.getTenant);return(0,a.useEffect)((()=>{o((0,c.f_2)({uiPath:s,tenant:p,environment:u,options:{method:"GET"}})).then((e=>{var t;const a=null==e||null===(t=e.data)||void 0===t?void 0:t.apps.find((0,d.propEq)("name","Console")).uri;r(a)})).catch((()=>r(null)))}),[u,p,s]),(0,a.useEffect)((()=>{const r=t&&null!=e&&e.uri?(0,d.pipe)((0,d.split)("?"),(0,d.insert)(1,`datamodeler/entityDetails/${(0,c.nIW)(e.uri)}/validation?`),(0,d.join)(""))(t):null;i(r)}),[e,t]),l})(k),q=(e=>{const[t,r]=(0,a.useState)(null),[l,i]=(0,a.useState)(I.o.INIT),[o,s]=(0,a.useState)(),u=(0,n.useSelector)(g.ZP.selectors.getTenant),d=(0,n.useSelector)(g.ZP.selectors.getDVFPath),p=(0,A._)(),f=(0,n.useSelector)(g.ZP.selectors.getEnvironment),m=e=>{console.error(e),i(I.o.ERROR),r([]),s(null==e?void 0:e.errorCode)},h=e=>{r(e.functions),s(void 0),i(I.o.LOADED)},y=(0,a.useCallback)((()=>{if(e&&f)return i(I.o.LOADING),p((0,c.HaQ)({dvfPath:d,tenant:u,entityTypeUri:e,env:f})).then(h).catch(m)}),[d,u,e,f]);return(0,a.useEffect)((()=>{y()}),[y]),{data:t,state:l,reload:y,errorCode:o}})(null==k?void 0:k.uri),Q={dvfs:q,dvfConfigLink:$},K=(0,a.useRef)();(0,a.useEffect)((()=>{K.current=Z}),[Z]);const X=(e=>{let{entityType:t,detailedAttributeType:r,dataLevel:l}=e;const[n,i]=(0,a.useState)(I.o.INIT),[o,s]=(0,a.useState)({}),u=null==r?void 0:r.fieldName,d=null==t?void 0:t.uri,p=(0,A._)(),f=e=>{console.error(e),i(I.o.ERROR),s({})},m=(0,a.useCallback)((async()=>{if(i(I.o.LOADING),l===E.ENTITY_TYPE){var e,a;const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:[d]}]),r=await(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.ACTIVE_ONLY,filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}),l=await(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.INACTIVE_ONLY,filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]});return s({summary:{inactiveProfiles:null===(e=l.type)||void 0===e?void 0:e[(0,c.nIW)(d)],activeProfiles:null===(a=r.type)||void 0===a?void 0:a[(0,c.nIW)(d)],sourceSystems:8}}),void i(I.o.LOADED)}if(t&&r)return p((0,c.TTx)({entityTypeUri:d,attributeFieldName:u})).then((e=>{s(e),i(I.o.LOADED)})).catch(f)}),[i,s,u,d]),h=(0,a.useCallback)((()=>{try{m()}catch(e){f(e)}}),[m]);return(0,a.useEffect)((()=>{h()}),[h]),{data:o,state:n,reload:h}})({entityType:k,detailedAttributeType:z,dataLevel:Y}),J=_.map(((e,t)=>{let{label:r,uri:a}=e;return{label:r,value:a,additionalLabel:l().createElement("span",{className:P.additionalLabel},"(",(0,c.k7L)(F(a),999),")"),dataReltioId:`reltio-dq-dashboard-entity-tab-${t}`}})),ee=(0,a.useCallback)((e=>{if((null==k?void 0:k.uri)!==e){B(null),M(e);const t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Xl(e,t,r[t])}))}return e}({dataLevel:Y,entityTypeUri:e},K.current&&{filterOptions:K.current.filterOptions,filterText:K.current.filterText,fieldName:K.current.fieldName});D(t),K.current=t}}),[null==k?void 0:k.uri]),te=(null===(t=p.layoutsByDataLevel)||void 0===t?void 0:t[E.ENTITY_TYPE])||O[E.ENTITY_TYPE],re=null===(r=p.layoutsByDataLevel)||void 0===r?void 0:r[E.ATTRIBUTE_TYPE],ae=(0,a.useMemo)((()=>Y===E.ENTITY_TYPE&&te?te:((e,t)=>{const r=U(t),a=(0,d.mergeLeft)(e,O[E.ATTRIBUTE_TYPE]);return a[r]||a.default||[]})(re,null==z?void 0:z.type)),[te,null==z?void 0:z.type,re,Y]),le=(0,a.useMemo)((()=>((e,t,r,a)=>{const l=(0,d.uniqBy)((0,d.prop)("id"),(0,d.concat)((null==e?void 0:e[a])||[],x[a]||[])),n=(e=>{switch(e){case E.ATTRIBUTE_TYPE:return(e=>{switch(e){case b.INTEGER:case b.FLOAT:return[v.SUMMARY,v.CROSSWALK,v.VALIDATION,v.FILL_RATE_CHART,v.FREQUENCY,v.UNIQUENESS_CHART,v.VALUE_DISTRIBUTION];case b.BOOLEAN:return[v.SUMMARY,v.CROSSWALK,v.VALIDATION,v.FILL_RATE_CHART,v.FREQUENCY];case b.STRING:return[v.LENGTH,v.SUMMARY,v.CROSSWALK,v.VALIDATION,v.FILL_RATE_CHART,v.FREQUENCY,v.UNIQUENESS_CHART];case b.DATE:return[v.SUMMARY,v.CROSSWALK,v.VALIDATION,v.FILL_RATE_CHART,v.FREQUENCY,v.UNIQUENESS_CHART,v.VALUE_DISTRIBUTION,v.MONTH_DISTRIBUTION,v.DAY_OF_MONTH_DISTRIBUTION,v.DAY_OF_WEEK_DISTRIBUTION];case b.SSN:return[v.SUMMARY,v.CROSSWALK,v.VALIDATION,v.FILL_RATE_CHART,v.FREQUENCY,v.UNIQUENESS_CHART,v.PATTERN];case b.UNKNOWN:return[v.SUMMARY,v.CROSSWALK,v.VALIDATION,v.FILL_RATE_CHART,v.FREQUENCY,v.UNIQUENESS_CHART,v.LENGTH];default:return[]}})(U(t));case E.ENTITY_TYPE:return[v.SUMMARY];default:return[]}})(a);return r.reduce(((e,t)=>{const r=(0,d.prop)("type",e.find((0,d.propEq)("id",t.id)));if(!n.includes(r)){const r=e.findIndex((0,d.propEq)("id",t.id));if(-1!==r)return(0,d.adjust)(r,(0,d.assoc)("type",v.UNSUPPORTED),e)}return e}),l)})(p.viewsByDataLevel,null==z?void 0:z.type,ae,Y)),[null==z?void 0:z.type,ae,Y]);(0,a.useEffect)((()=>{H&&(M(Z.entityTypeUri||Jl(_)),G(te?Z.dataLevel||E.ENTITY_TYPE:E.ATTRIBUTE_TYPE))}),[H]);const ne=k&&W&&H&&!!F(j);return l().createElement("div",{className:P.perspectiveView},l().createElement($t,{title:f().text("Data Quality")},k&&l().createElement(h.Z,{value:k.uri,tabs:J,onChange:ee,scrollButtons:"auto"})),l().createElement("div",{className:P.content},ne&&l().createElement(l().Fragment,null,l().createElement(w.Provider,{value:X},l().createElement(S.Provider,{value:Q},l().createElement("div",{className:P.wrapper},te&&l().createElement("div",{className:u()(P.entityLevelButton,{[P.selectedButton]:Y===E.ENTITY_TYPE}),onClick:()=>{B(null),G(E.ENTITY_TYPE)}},`${k.label} ${f().text("summary")}`),l().createElement(Vt,{entityType:k,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:r,filterOptions:a}=e;const l=null==t?void 0:t.fieldName,n={entityTypeUri:k.uri,fieldName:l,filterOptions:a,filterText:r,dataLevel:Y};(0,d.equals)(K.current,n)||(D(n),K.current=n),l&&G(E.ATTRIBUTE_TYPE),B(t)},defaultFieldName:null===(i=K.current)||void 0===i?void 0:i.fieldName,defaultFilterText:null===(o=K.current)||void 0===o?void 0:o.filterText,defaultFilterOptions:null===(s=K.current)||void 0===s?void 0:s.filterOptions,disableAttributeSelection:Y===E.ENTITY_TYPE})),(z||Y===E.ENTITY_TYPE)&&l().createElement(N.Provider,{value:Y},l().createElement(R.Provider,{value:k},l().createElement(T.Provider,{value:z},l().createElement(Ql,{views:le,layout:ae}))))))),!W&&l().createElement(Yt,{height:359,errorData:{title:f().text("You don’t currently have permission to view this page"),message:f().text(" Please contact your Tenant Admin to change permissions")},variant:V.LARGE}),H&&k&&!F(j)&&W&&l().createElement(zt,{height:359,data:{Icon:y.B9.NO_DATA,title:f().text("Give us something to go on!"),message:f().text("Go ahead and load some data. We’ll put it on the scales and\nlet you know here if it measures up.")},variant:V.LARGE})))};function tn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rn=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){tn(e,t,r[t])}))}return e}({},c.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}}),an=(0,i.Z)(rn),ln=(0,o.createGenerateClassName)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0}),nn=e=>{let{store:t,config:r,saveState:i,getSavedState:s}=e;const u=(0,a.useCallback)((0,c.aYu)(s),[s]);return l().createElement(n.Provider,{store:t},l().createElement(o.ThemeProvider,{theme:an},l().createElement(o.StylesProvider,{generateClassName:ln},l().createElement(en,{config:r,saveState:i,getSavedState:u}))))}},15115:(e,t,r)=>{t.Z=void 0;var a=m(r(72579)),l=m(r(54073)),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var n=a?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(r,l,n):r[l]=e[l]}return r.default=e,t&&t.set(e,r),r}(r(24328)),i=m(r(13980)),o=m(r(71153)),c=m(r(16805)),s=m(r(2630)),u=m(r(81819)),d=m(r(21853)),p=m(r(87685));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(f,e);var t,r,i=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var r,a=E(e);if(t()){var l=E(this).constructor;r=Reflect.construct(a,arguments,l)}else r=a.apply(this,arguments);return v(this,r)}}(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),x(b(t=i.call(this,e)),"emitChange",(0,l.default)((function(e){return t.props.onChange(e)}),200)),x(b(t),"handleChange",(function(e){var r=(0,a.default)(e,["target","value"]);t.setState({value:r}),t.emitChange(r)})),x(b(t),"handleFocus",(function(){return t.inputRef.current.focus()})),x(b(t),"handleOpen",(function(){t.props.forceOpen||t.setState({open:!0},t.handleFocus)})),x(b(t),"handleClose",(function(){t.props.forceOpen||t.setState({open:!1}),t.setState({value:""}),t.emitChange()})),t.state={open:Boolean(t.props.initialValue),value:t.props.initialValue||""},t.inputRef=n.default.createRef(),t}return t=f,(r=[{key:"render",value:function(){var e=this.state,t=e.open,r=e.value,a=this.props,l=a.classes,i=a.placeholder,f=a.forceOpen,m=t||f,h=t||f&&r;return n.default.createElement("div",{className:(0,o.default)(c.default.searchInputContainer,x({},c.default.colored,m),l.root)},n.default.createElement(s.default,{name:"expand-input-btn",onClick:this.handleOpen},n.default.createElement(d.default,null)),m&&n.default.createElement(u.default,{value:r,disableUnderline:!0,className:c.default.searchInputField,classes:{input:c.default.input},placeholder:i,onChange:this.handleChange,inputProps:{ref:this.inputRef}}),h&&n.default.createElement(s.default,{name:"collapse-input-btn",onClick:this.handleClose},n.default.createElement(p.default,null)))}}])&&y(t.prototype,r),f}(n.PureComponent);t.Z=O,O.defaultProps={classes:{},forceOpen:!1},O.propTypes={classes:i.default.shape({root:i.default.string}),placeholder:i.default.string,forceOpen:i.default.bool,onChange:i.default.func.isRequired,initialValue:i.default.string}},16805:(e,t,r)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(0,((a=r(86698))&&a.__esModule?a:{default:a}).default)("<style>.Form__searchInputContainer_3vqs6{display:flex;min-height:48px}.Form__searchInputField_3mnAi{flex:1 1 auto;padding:2px}.Form__input_3ulP-::-ms-clear{display:none}.Form__colored_2WMqk{background-color:#fafafa}</style>"),t.default={searchInputContainer:"Form__searchInputContainer_3vqs6",searchInputField:"Form__searchInputField_3mnAi",input:"Form__input_3ulP-",colored:"Form__colored_2WMqk"}}}]);
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[6326],{81819:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a.Z});var a=r(29611)},69112:(e,t,r)=>{r.d(t,{Z:()=>p});var a=r(7560),l=r(54530),n=r(24328),i=(r(13980),r(6277));const o=(0,r(3752).Z)(n.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");var c=r(15459),s=r(57074),u=r(97580),d=n.forwardRef((function(e,t){var r=e.active,c=void 0!==r&&r,d=e.children,p=e.classes,f=e.className,m=e.direction,h=void 0===m?"asc":m,y=e.hideSortIcon,g=void 0!==y&&y,v=e.IconComponent,b=void 0===v?o:v,E=(0,l.Z)(e,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return n.createElement(s.Z,(0,a.Z)({className:(0,i.Z)(p.root,f,c&&p.active),component:"span",disableRipple:!0,ref:t},E),d,g&&!c?null:n.createElement(b,{className:(0,i.Z)(p.icon,p["iconDirection".concat((0,u.Z)(h))])}))}));const p=(0,c.Z)((function(e){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:e.palette.text.secondary},"&:hover":{color:e.palette.text.secondary,"& $icon":{opacity:.5}},"&$active":{color:e.palette.text.primary,"&& $icon":{opacity:1,color:e.palette.text.secondary}}},active:{},icon:{fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}}),{name:"MuiTableSortLabel"})(d)},98989:(e,t,r)=>{var a=r(14859);t.Z=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M10 17l5-5-5-5v10z"}),l.default.createElement("path",{fill:"none",d:"M0 24V0h24v24H0z"})),"ArrowRight");t.Z=n},82726:(e,t,r)=>{var a=r(14859);t.Z=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.Z=n},43266:(e,t,r)=>{var a=r(14859);t.Z=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");t.Z=n},21853:(e,t,r)=>{var a=r(14859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.default=n},82068:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(24328),l=r.n(a),n=r(71153),i=r.n(n);const o=(0,r(79692).Z)({"basic-view-content":{flex:"1 1 auto",padding:"0 24px 24px","&:first-child":{paddingTop:"24px"}}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},c.apply(this,arguments)}const s=e=>{let{children:t,className:r}=e,a=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["children","className"]);const n=o();return l().createElement("div",c({className:i()(n["basic-view-content"],r)},a),t)}},17822:(e,t,r)=>{r.d(t,{Z:()=>S});var a=r(13980),l=r.n(a),n=r(24328),i=r.n(n),o=r(66244),c=r.n(o),s=r(44443),u=r(17440),d=r(71153),p=r.n(d);function f(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}const m=e=>{let{x:t,y:r,width:a,height:l,id:n,minWidth:i,minHeight:o,maxWidth:c,maxHeight:s,isStatic:u}=e;return{x:t,y:r,w:a,h:l,minW:i,minH:o,maxW:c,maxH:s,i:n,static:u}},h=e=>{let{x:t,y:r,w:a,h:l,maxW:n,minW:i,minH:o,maxH:c,i:s}=e;return{x:t,y:r,width:a,height:l,minWidth:i,minHeight:o,maxWidth:n,maxHeight:c,id:s,isStatic:f(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},y=e=>(e||[]).map(h),g=(0,u.curry)(((e,t)=>(e||[]).find((0,u.propEq)("id",t)))),v=(0,u.curry)(((e,t,r)=>(0,u.mergeAll)([r,(0,u.pick)(e,t)]))),b=(0,u.curry)(((e,t,r)=>(r||[]).map((r=>(0,u.pipe)((0,u.prop)("id"),g(t),(0,u.defaultTo)({}),v(e,u.__,r))(r)))));var E=r(79692),x=r(1627);const O=(0,E.Z)((e=>({gridLayout:{position:"relative",width:"100%","& .react-grid-item":{"&.react-grid-placeholder":{background:"rgba(0, 0, 0, 0.03)",border:"2px dashed rgba(0, 0, 0, 0.3)",borderRadius:"3px",transitionDuration:"100ms",zIndex:7,userSelect:"none","& .react-resizable-handle":{display:"none"}},"&.static .react-resizable-handle":{display:"none"},"&.cssTransforms":{transitionProperty:"transform"},"&.resizing":{zIndex:9,willChange:"width, height",pointerEvents:"none"},"&.react-draggable-dragging":{transition:"none",zIndex:8,willChange:"transform","& .react-resizable-handle":{backgroundImage:"none"}},"& .react-resizable-handle":{position:"absolute",width:"17px",height:"17px",bottom:0,right:0,zIndex:20,backgroundImage:`url('${(0,x.m5F)('<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path stroke="#505050" stroke-opacity=".54" d="M9.5 0v10M0 9.5h9M7.5 4v4M4 7.5h3"/>\n</svg>')}')`,backgroundRepeat:"no-repeat",backgroundOrigin:"content-box",boxSizing:"border-box",cursor:"se-resize"},"&.fullscreen":{visibility:"visible",position:"unset",width:"100% !important",height:"100% !important",transform:"translate(0) !important"}}},gridFullscreen:{height:"100% !important",overflowY:"hidden","& .react-resizable-handle, & .react-grid-item":{visibility:"hidden"}}})));function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},w.apply(this,arguments)}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const T=e=>{let{views:t,layout:r,layoutOptions:a,onLayoutChanged:l,draggableHandle:o,LayoutItem:d,onRemove:f,onDrop:v,droppingItem:E,isDroppable:x,classes:T}=e;const S=(0,n.useRef)(),R=O(),[I,A]=(0,n.useState)(null),[C,D]=(0,n.useState)(0),{cols:L,rowHeight:P,margin:_}=a,j=(0,n.useMemo)((()=>(e=>(e||[]).map(m))(r)),[r]),M=(0,u.pipe)(y,b(["autosizing"],r),l),k=(0,n.useCallback)((e=>A((t=>t?null:e))),[]),F=null!==I,U=(0,n.useCallback)(((e,t)=>{let n=!1;const i=r.map((r=>{if(r.id===t&&e){const t=((e,t)=>{const{margin:r,rowHeight:a}=t;return Math.ceil((e+r[1])/(a+r[1]))})(e,a);if(r.height!==t)return n=!0,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){N(e,t,r[t])}))}return e}({},r,{minHeight:t,maxHeight:t,height:t})}return r}));n&&l(i)}),[r,a,l]);return i().createElement(i().Fragment,null,i().createElement(s.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>D(e)}),i().createElement(c(),{innerRef:S,layout:j,cols:L,draggableHandle:o,autoSize:!0,rowHeight:P,width:C,margin:_,onLayoutChange:M,isResizable:!F,isDraggable:!F,className:p()(R.gridLayout,{[R.gridFullscreen]:F}),onDrop:(e,t,r)=>{v&&v(y(e),h(t),r)},droppingItem:E,isDroppable:x},j.map((e=>{const a=I===e.i,l=(g(r,e.i)||{}).autosizing?{AutosizeComponent:(n=e.i,i().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>{U(t,n)}}))}:{};var n;return i().createElement(d,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:k,onRemove:f,className:p()({fullscreen:a},T.item),isFullscreen:a},l))}))))};T.defaultProps={layoutOptions:{cols:4,rowHeight:30,margin:[15,15]},onConfigChanged:u.identity,onLayoutChanged:u.identity,classes:{}},T.propTypes={views:l().array,layout:l().array,layoutOptions:l().object,onConfigChanged:l().func,onLayoutChanged:l().func,onDrop:l().func,onRemove:l().func,LayoutItem:l().elementType,draggableHandle:l().string,isDroppable:l().bool,droppingItem:l().object,classes:l().shape({item:l().string})};const S=(0,n.memo)(T)},21210:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(89810),l=r(1627),n=r(24328),i=r.n(n),o=r(52730),c=r(42639);const s=e=>{let{sourceType:t,className:r,classes:n}=e;const s=(0,o.useSelector)(a.ZP.selectors.getMetadata),{label:u,icon:d}=(0,l.PWK)(s,t);return i().createElement(c.Z,{className:r,avatarText:u[0],icon:d?(0,l.vPL)("https://s3.amazonaws.com/reltio.images/api",d):null,variant:"square",rootClasses:n})}},39878:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(24328),l=r.n(a),n=r(1627),i=r(17440);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},o.apply(this,arguments)}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=e=>{const t=t=>{let{data:r}=t,s=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(t,["data"]);const u=(0,a.useMemo)((()=>r&&(e=>{const t=(0,n.QK6)((0,i.pluck)("value",e),1);return e.map(((e,r)=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){c(e,t,r[t])}))}return e}({},e,{percent:t[r]})))})(r)),[r]);return l().createElement(e,o({data:u},s))};return t.displayName="WithPercents",t}},59383:(e,t,r)=>{r.d(t,{d:()=>l});const a=(0,r(79692).Z)({clickable:{cursor:"pointer"}}),l=e=>{const t=a();return e?t.clickable:void 0}},11326:(e,t,r)=>{r.d(t,{a:()=>l});var a=r(24328);const l=e=>{const[t,r]=(0,a.useState)(!1),[l,n]=(0,a.useState)({});return(0,a.useEffect)((()=>{e().then((e=>{n(e||{})})).then((e=>r(!0))).catch((e=>r(!0)))}),[]),{isLoaded:t,savedState:l}}},43129:(e,t,r)=>{r.d(t,{Z:()=>o});var a=r(24328),l=r.n(a),n=r(67358);const i=(0,r(79692).Z)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),o=()=>{const e=i();return l().createElement(n.Z,{color:"secondary",className:e.loader})}},65298:(e,t,r)=>{r.d(t,{Z:()=>c});var a=r(24328),l=r.n(a),n=r(1730),i=r(52388);const o=(0,r(79692).Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),c=e=>{let{id:t,children:r}=e;const a=o();return l().createElement(i.H.Provider,{value:t},l().createElement(n.Z,{className:a.view},r))}},52388:(e,t,r)=>{r.d(t,{H:()=>l});var a=r(24328);const l=r.n(a)().createContext(null);l.displayName="DashboardViewIdContext"},5260:(e,t,r)=>{let a;r.d(t,{o:()=>a}),function(e){e.INIT="init",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(a||(a={}))},43349:(e,t,r)=>{r.r(t),r.d(t,{default:()=>nn});var a=r(24328),l=r.n(a),n=r(52730),i=r(33016),o=r(36138),c=r(1627),s=r(71153),u=r.n(s),d=r(17440),p=r(87918),f=r.n(p),m=r(11326),h=r(7907),y=r(79002),g=r(89810);let v,b,E;!function(e){e.FILL_RATE_CHART="fillRate",e.UNIQUENESS_CHART="uniqueness",e.SUMMARY="summary",e.VALIDATION="validation",e.FREQUENCY="frequency",e.LENGTH="length",e.CROSSWALK="crosswalk",e.MONTH_DISTRIBUTION="monthDistribution",e.DAY_OF_WEEK_DISTRIBUTION="dayOfWeekDistribution",e.DAY_OF_MONTH_DISTRIBUTION="dayOfMonthDistribution",e.VALUE_DISTRIBUTION="valueDistribution",e.PATTERN="patternAnalysis",e.UNSUPPORTED="unsupported"}(v||(v={})),function(e){e.STRING="string",e.FLOAT="float",e.INTEGER="integer",e.BOOLEAN="boolean",e.DATE="date",e.SSN="SSN",e.UNKNOWN="unknown"}(b||(b={})),function(e){e.ENTITY_TYPE="entityType",e.ATTRIBUTE_TYPE="attributeType"}(E||(E={}));const x={[E.ATTRIBUTE_TYPE]:[{id:"FillRateView",type:v.FILL_RATE_CHART,title:"Fill rate"},{id:"UniquenessAnalysisView",type:v.UNIQUENESS_CHART,title:f().text("Uniqueness analysis")},{id:"SummaryView",type:v.SUMMARY,title:f().text("Summary")},{id:"ValidationView",type:v.VALIDATION,title:f().text("Profiles with invalid data")},{id:"FrequencyAnalysis",type:v.FREQUENCY,title:f().text("Frequency analysis")},{id:"LengthStatistics",type:v.LENGTH,title:f().text("Length statistics")},{id:"PatternAnalysis",type:v.PATTERN,title:f().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:v.CROSSWALK,title:f().text("Source system analysis")},{id:"MonthDistribution",type:v.MONTH_DISTRIBUTION,title:f().text("Month distribution")},{id:"DayOfWeekDistribution",type:v.DAY_OF_WEEK_DISTRIBUTION,title:f().text("Day of week distribution")},{id:"DayOfMonthDistribution",type:v.DAY_OF_MONTH_DISTRIBUTION,title:f().text("Day of month distribution")},{id:"ValueDistribution",type:v.VALUE_DISTRIBUTION,title:f().text("Value distribution")},{id:"UnsupportedDataType",type:v.UNSUPPORTED,title:f().text("Unsupported Data Type")}],[E.ENTITY_TYPE]:[{id:"SummaryView",type:v.SUMMARY,title:f().text("Summary")}]},O={[E.ATTRIBUTE_TYPE]:{default:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"LengthStatistics"}],[b.SSN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:2,height:19,id:"PatternAnalysis"}],[b.BOOLEAN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"FrequencyAnalysis"},{x:0,y:19,width:2,height:19,id:"CrosswalkAnalysis"}],[b.DATE]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"},{x:0,y:57,width:2,height:19,id:"MonthDistribution"},{x:2,y:57,width:2,height:19,id:"DayOfWeekDistribution"},{x:0,y:76,width:4,height:19,id:"DayOfMonthDistribution"}],[b.INTEGER]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}],[b.FLOAT]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}]}},w=l().createContext(null);w.displayName="ChartsDataContext";const N=l().createContext(null);N.displayName="DataLevelContext";const T=l().createContext(null);T.displayName="DetailedAttributeTypeContext";const S=l().createContext(null);S.displayName="DVFContext";const R=l().createContext(null);R.displayName="EntityTypeContext";var I=r(5260),A=r(29627);const C=e=>{const[t,r]=(0,a.useState)(null),l=(0,A._)();return(0,a.useEffect)((()=>{const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:(0,d.pluck)("uri",e)}]);l((0,c.FK9)({query:(0,c.ECL)({activeness:"active",filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]})).then((e=>{let{type:t}=e;return r(t)})).catch((()=>r(null)))}),[e]),e=>Number((null==t?void 0:t[(0,c.nIW)(e)])||0)},D=(e,t,r)=>({attributes:(t||[]).map(((t,a)=>{let{filter:l,fieldName:n,values:i}=t;return{data:{uri:null==r?void 0:r.uri,entityTypeUri:e,fieldName:n},filter:l,id:`attribute_${a}`,operator:"and",values:i}})),entityTypes:[e],id:"group",operator:"or"});function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){P(e,t,r[t])}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _=(0,d.map)((e=>L({},e,{localizedValue:f().number(e.value)}))),j=e=>(0,d.isNil)(e)?"":`(${e}%)`,M=e=>(0,d.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),k=(0,d.curry)(((e,t,r)=>({advanced:[D(t,r.map((0,d.when)((()=>(0,c.Lt4)(e.type)),(0,d.evolve)({values:(0,d.map)((0,c.mOr)(c.ZBU))}))),e)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}))),F=e=>t=>{let{detailedAttributeType:r,entityTypeUri:a,dvfs:l}=t;return(0,d.pipe)(e({fieldName:r.fieldName,entityTypeUri:a,dvfs:l}),k(r,a))},U=e=>{switch(e){case c.oS0.TYPE_BLOB:case c.oS0.TYPE_BLOG_URL:case c.oS0.TYPE_CIK_ID:case c.oS0.TYPE_ENTITY_ID:case c.oS0.TYPE_IMAGE_URL:case c.oS0.TYPE_STRING:case c.oS0.TYPE_TEXT:case c.oS0.TYPE_URL:return b.STRING;case c.oS0.TYPE_COUNT:case c.oS0.TYPE_DOLLAR:case c.oS0.TYPE_INT:case c.oS0.TYPE_LONG:return b.INTEGER;case c.oS0.TYPE_FLOAT:case c.oS0.TYPE_DOUBLE:case c.oS0.TYPE_NUMBER:return b.FLOAT;case c.oS0.TYPE_BOOLEAN:case c.oS0.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return b.BOOLEAN;case c.oS0.TYPE_ACTIVENESS_DATE:case c.oS0.TYPE_DATE:case c.oS0.TYPE_LOCAL_DATE:case c.oS0.TYPE_TIMESTAMP:return b.DATE;case c.oS0.TYPE_SSN:return b.SSN;default:return b.UNKNOWN}},z=e=>{let{percent:t,value:r}=e;return L({width:`${t}%`},r>0&&{minWidth:"3px"})},B=(0,d.pipe)((0,d.pluck)("percent"),(e=>Math.max(...e)));let V;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(V||(V={}));var H=r(50166),Z=r(44443),W=r(43129),Y=r(83543),G=r(98989),$=r(38402),q=r(79573),Q=r(33286),K=r(83088),X=r(40435);function J(){return J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},J.apply(this,arguments)}const ee=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",J({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg1279746712a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"15",height:"8"},l().createElement("path",{d:"M11.667 4H5C2.793 4 1 5.793 1 8s1.793 4 4 4h6.667c2.206 0 4-1.793 4-4s-1.794-4-4-4zm0 6.667H5a2.666 2.666 0 110-5.334h6.667a2.666 2.666 0 110 5.334zm0-4.667c-1.107 0-2 .893-2 2s.893 2 2 2c1.106 0 2-.893 2-2s-.894-2-2-2z",fill:"#000"})),l().createElement("g",{mask:"url(#svg1279746712a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function te(){return te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},te.apply(this,arguments)}const re=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",te({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg208732808a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"14"},l().createElement("path",{d:"M7.992 1.333A6.663 6.663 0 001.332 8c0 3.68 2.98 6.667 6.66 6.667A6.67 6.67 0 0014.665 8a6.67 6.67 0 00-6.673-6.667zm.007 12A5.332 5.332 0 012.665 8 5.332 5.332 0 018 2.667 5.332 5.332 0 0113.332 8a5.332 5.332 0 01-5.333 5.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z",fill:"#000"})),l().createElement("g",{mask:"url(#svg208732808a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function ae(){return ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ae.apply(this,arguments)}const le=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",ae({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg1638934380a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},l().createElement("path",{d:"M5.948 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2zM7.947 12v-1.1h1.1V12h-1.1zM13.65 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2z",fill:"#000"})),l().createElement("g",{mask:"url(#svg1638934380a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function ne(){return ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ne.apply(this,arguments)}const ie=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",ne({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("path",{d:"M2.11 12v-.825h1.331V5.169L2 5.741v-.89L3.331 4.3h1.045v6.875h1.089V12H2.11zM5.968 11.032l1.65-2.508c.242-.367.403-.62.484-.759.08-.147.136-.29.165-.429.03-.14.044-.341.044-.605v-.77a.778.778 0 00-.253-.583c-.169-.161-.389-.242-.66-.242h-1.21V4.3h1.1c.638 0 1.126.158 1.463.473.345.308.517.774.517 1.397v.462c0 .367-.018.645-.055.836-.037.19-.103.37-.198.539-.088.169-.264.455-.528.858l-1.518 2.299h2.519V12h-3.52v-.968zM13.544 10.262c0 .609-.147 1.052-.44 1.331-.293.271-.77.407-1.43.407h-1.298v-.825h1.397c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.239c0-.242-.073-.433-.22-.572-.147-.147-.341-.22-.583-.22h-1.067v-.825h.957a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.902c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187h-1.298V4.3h1.166c.623 0 1.093.14 1.408.418.323.271.484.704.484 1.298v.693c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.924z",fill:"#000",fillOpacity:".541"}))};function oe(){return oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},oe.apply(this,arguments)}const ce=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",oe({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg924767730a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},l().createElement("path",{d:"M5.463 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H2.03v-.836h1.562c.271 0 .491-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.059-.396-.176-.528-.11-.14-.279-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473h1.463v.836H3.714c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM9.136 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H5.704v-.836h1.562c.27 0 .49-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.06-.396-.176-.528-.11-.14-.28-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473H8.96v.836H7.387c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM12.255 12l-1.683-6.886V12H9.68V4.3h1.562l1.694 6.886V4.3h.89V12h-1.572z",fill:"#000"})),l().createElement("g",{mask:"url(#svg924767730a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function se(){return se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},se.apply(this,arguments)}const ue=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",se({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg3578961193a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},l().createElement("path",{d:"M5.345 12l-.418-1.947H2.782L2.353 12h-.979l1.86-7.7h1.264L6.324 12h-.979zM3.85 5.026l-.89 4.202H4.75L3.85 5.026zM10.494 10.262c0 .63-.146 1.078-.44 1.342-.286.264-.763.396-1.43.396h-2.09V4.3h1.958c.653 0 1.13.132 1.43.396.308.264.462.704.462 1.32v.627c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.99zM9.427 5.917c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187H7.491v2.431h1.133a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.836zm.11 3.256c0-.242-.073-.433-.22-.572-.147-.147-.34-.22-.583-.22H7.491v2.794h1.232c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.173zM13.119 12c-.638 0-1.13-.154-1.474-.462-.337-.315-.506-.785-.506-1.408V6.17c0-.623.169-1.089.506-1.397.345-.315.836-.473 1.474-.473h1.342v.836h-1.452c-.271 0-.491.08-.66.242a.778.778 0 00-.253.583v4.378c0 .227.084.422.253.583.169.161.389.242.66.242h1.452V12h-1.342z",fill:"#000"})),l().createElement("g",{mask:"url(#svg3578961193a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};var de=r(79692);const pe=(0,de.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}}}),fe={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},me=e=>{let{type:t,size:r=fe.SMALL}=e;const a=pe(r);switch(U(t)){case b.STRING:return l().createElement(ue,{className:a.icon});case b.FLOAT:return l().createElement(le,{className:a.icon});case b.INTEGER:return l().createElement(ie,{className:a.icon});case b.BOOLEAN:return l().createElement(ee,{className:a.icon});case b.DATE:return l().createElement(re,{className:a.icon});case b.SSN:return l().createElement(ce,{className:a.icon});default:return l().createElement(ue,{className:a.icon})}};let he;function ye(){return ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ye.apply(this,arguments)}!function(e){e.INCLUDED_IN_MATCHING="includedInMatching",e.CONTAIN_VF="containVF",e.REQUIRED="required",e.REFERENCE="reference",e.RDM_LOOKUP="RDMLookup"}(he||(he={}));const ge=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",ye({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#6663F6"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 14.4h2.411c.016-.205.047-.405.093-.6H8.4v-1.2h3.012c.137-.215.296-.416.472-.6H8.4v-1.2h6v.011a3.896 3.896 0 011.8.287V8.4c0-.66-.54-1.2-1.2-1.2H7.8c-.66 0-1.2.54-1.2 1.2v7.8c0 .66.54 1.2 1.2 1.2h4.083a3.892 3.892 0 01-.979-1.8H8.4v-1.2zm6-4.2h-6V9h6v1.2zm2.58 5.934L18.852 18l-.852.852-1.872-1.872a2.66 2.66 0 01-1.434.42A2.695 2.695 0 0112 14.7c0-1.494 1.206-2.7 2.7-2.7 1.494 0 2.7 1.206 2.7 2.7 0 .528-.156 1.014-.42 1.434zm-2.28.066a1.5 1.5 0 10-.001-3.001A1.5 1.5 0 0014.7 16.2z",fill:"#fff"}))};function ve(){return ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ve.apply(this,arguments)}const be=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",ve({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#1DACF5"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4 9.6H9.3L12 6.9l2.7 2.7h-2.1v3.846l-3.6 3.6-.846-.846 3.246-3.246V9.6zm4.446 6.6l-.846.846L12.954 15l.846-.846 2.046 2.046z",fill:"#fff"}))};function Ee(){return Ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ee.apply(this,arguments)}const xe=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Ee({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#7F22FD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 9v1.2h1.2V9H8.4zm0 2.4v1.2h1.2v-1.2H8.4zm0 2.4V15h1.2v-1.2H8.4zM10.8 9v1.2h4.8V9h-4.8zm0 2.4v1.2h4.8v-1.2h-4.8zm0 2.4V15h4.8v-1.2h-4.8zm6-6v8.4H7.2V7.8h9.6zm1.2 9V6.6H6V17.4h12v-.6z",fill:"#fff"}))};function Oe(){return Oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Oe.apply(this,arguments)}const we=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Oe({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#4B31E9"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 15.6h1.8V15a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-3V9.6H8.4a.6.6 0 01-.6-.6V6.6a.6.6 0 01.6-.6H12a.6.6 0 01.6.6V9a.6.6 0 01-.6.6h-1.2v1.8h1.8v-.6a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-1.8v3z",fill:"#fff"}))};function Ne(){return Ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ne.apply(this,arguments)}const Te=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Ne({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#80D2FC"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6c-3.312 0-6 2.688-6 6s2.688 6 6 6 6-2.688 6-6-2.688-6-6-6zm-.6 4.96V9h1.2v1.96l1.698-.98.6 1.04L13.2 12l1.698.98-.6 1.04-1.698-.98V15h-1.2v-1.96l-1.698.98-.6-1.04L10.8 12l-1.698-.98.6-1.04 1.698.98zM7.2 12c0 2.646 2.154 4.8 4.8 4.8s4.8-2.154 4.8-4.8-2.154-4.8-4.8-4.8A4.806 4.806 0 007.2 12z",fill:"#fff"}))},Se=(0,de.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),Re={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let Ie;!function(e){e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal"}(Ie||(Ie={}));const Ae=e=>{let{detailType:t,size:r=Re.NORMAL,variant:a=Ie.NORMAL}=e;const n=Se(r),i=u()(n.icon,n[a]);switch(t){case he.RDM_LOOKUP:return l().createElement(xe,{className:i});case he.CONTAIN_VF:return l().createElement(ge,{className:i});case he.INCLUDED_IN_MATCHING:return l().createElement(be,{className:i});case he.REFERENCE:return l().createElement(we,{className:i});case he.REQUIRED:return l().createElement(Te,{className:i});default:return null}};var Ce=r(80030);const De=(e,t)=>(e||[]).some((0,d.propEq)("attribute",t)),Le=e=>[c.oS0.TYPE_FLOAT,c.oS0.TYPE_DOUBLE,c.oS0.TYPE_NUMBER].includes(e);function Pe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){_e(e,t,r[t])}))}return e}function _e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const je=(0,d.curry)(((e,t)=>e.some((e=>t.details[e.value])))),Me=(0,d.curry)(((e,t)=>{var r;return 0===e.length||je(e,t)||(null===(r=t.children)||void 0===r?void 0:r.some((t=>Me(e,t))))})),ke=(0,d.curry)(((e,t)=>{var r;const a=e[t.fieldName];return null==a||null===(r=a.find((0,d.propEq)("group",c.s9T.EXISTS)))||void 0===r?void 0:r.value})),Fe=(0,d.curry)(((e,t)=>{var r;const a=e[t.fieldName];return!(null!=a&&null!==(r=a.find((0,d.propEq)("group",c.s9T.EXISTS)))&&void 0!==r&&r.value)})),Ue=(0,d.curry)((function(e,t){var r;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const l=t.fieldName||(0,c.Tde)(t.uri,a);return Fe(e,Pe({},t,{fieldName:l}))||(null===(r=t.children)||void 0===r?void 0:r.some((r=>Ue(e,r,a.concat({name:t.name,label:t.label})))))})),ze=(0,d.curry)(((e,t)=>t.reduce(((t,r)=>{const a=((e,t)=>{var r;return null===(r=e.label||e.name)||void 0===r?void 0:r.toLowerCase().includes(t.toLowerCase())})(r,e),l=a?r.children||[]:ze(e,r.children||[]);return(a||l.length)&&t.push(Object.assign({},r,l.length&&{children:l})),t}),[])));function Be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Ve(e,t,r[t])}))}return e}function Ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const He=e=>{let{attrTypeItem:t,dvf:r=[],matchAttributes:a=[]}=e;const{uri:l,required:n,isAttributeReference:i}=t;return{[he.INCLUDED_IN_MATCHING]:a.includes(l),[he.CONTAIN_VF]:De(r,l),[he.REQUIRED]:!!n,[he.REFERENCE]:i,[he.RDM_LOOKUP]:(0,c.lS4)(t)}},Ze=e=>({[he.INCLUDED_IN_MATCHING]:f().text("Included in match rule"),[he.CONTAIN_VF]:f().text("Has validation functions"),[he.REQUIRED]:f().text("Required"),[he.REFERENCE]:f().text("Reference attribute"),[he.RDM_LOOKUP]:f().text("RDM")}[e]||e),We=(0,d.curry)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return(0,d.pipe)((0,d.chain)((e=>{const l=e.children?We(e.children,t.concat({name:e.name,label:e.label}),r||(0,c.YkG)(e),a+1):[];return[{attributeItem:Be({},e,{fieldName:(0,c.Tde)(e.uri,t),isAttributeReference:(0,c.YkG)(e)||r}),level:a},...l]})))(e)})),Ye=(0,de.Z)({root:{paddingRight:"23px",paddingLeft:"28px",display:"flex",flexDirection:"row-reverse"},detailIcon:{marginLeft:"-5px",borderRadius:"50%",padding:"2px",width:"26px",height:"26px",boxSizing:"border-box"},activeIcon:{background:"white"}}),Ge=e=>{let{details:t,classes:r,fillRateData:a,fillRateState:n}=e;const i=Ye(),o=(0,d.prop)("iconRoot",r);return l().createElement("div",{className:i.root},Object.entries(t||{}).reverse().map((e=>{let[t,r]=e,s=Ie.NORMAL;if(t===he.REQUIRED){const e=n===I.o.LOADING,t=0===(null==(p=a)||null===(f=p.find((0,d.propEq)("group",c.s9T.MISSING)))||void 0===f?void 0:f.value);e&&(s=Ie.LOADING),e||t||(s=Ie.BAD_QUALITY)}var p,f;return l().createElement("div",{key:t,className:u()(r&&(o||i.activeIcon),i.detailIcon)},r&&l().createElement(Ce.ZP,{title:Ze(t)},l().createElement("span",null,l().createElement(Ae,{detailType:t,variant:s,size:Re.SMALL}))))})))},$e="rgba(0, 114, 206, 0.12)",qe=(0,de.Z)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:$e,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:$e}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"}}),Qe=e=>{let{level:t,margin:r,hasChildren:a,isLastLevelItem:n,isCollapsed:i}=e;const o=qe(),c=!i&&(t>0||a);return l().createElement("div",{className:o.linesWrapper},((e,t)=>t>0&&e?(0,d.range)(1,t+1):t>1?(0,d.range)(1,t):[])(a,t).map((e=>l().createElement(Q.Z,{key:e,margin:r,level:e,className:o.line}))),c&&l().createElement(Q.Z,{margin:r,level:t,className:u()(o.line,!a&&t>0&&o.horizontalLine,a&&o.parentLine,n&&o.lastLevel)}))};var Ke=r(39878);const Xe=(0,de.Z)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"}}),Je=e=>{let{label:t,value:r}=e;const a=Xe();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:u()(a.label,a.chartDataLabel)},t),r)},et=(0,de.Z)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),tt=e=>{let{data:t,title:r,DataRenderer:a=Je}=e;const n=et();return l().createElement("div",{className:n.tooltipWrapper},r&&l().createElement("div",{className:n.title},r),t.map(((e,t)=>l().createElement("div",{key:t,className:n.row},l().createElement(a,e)))))},rt={[c.s9T.MISSING]:"#CE5C00",[c.s9T.EXISTS]:"#C4CE00"},at=(0,d.map)((e=>{let{group:t}=e;return rt[t]||(0,c.f4_)(t)})),lt=e=>({[c.s9T.MISSING]:f().text("Missing"),[c.s9T.EXISTS]:f().text("Exists")}[e]||e),nt=(0,d.pipe)(Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:lt(t),group:t,value:r}})),(0,d.sortBy)((e=>Object.values(c.s9T).indexOf(e.group))),_),it=e=>Object.keys(e).reduce(((t,r)=>(t[r]=nt(e[r]),t)),{}),ot=(0,d.propOr)({},"fillRate"),ct=(0,d.pipe)(ot,nt,(0,d.when)(M,(0,d.always)([])),(0,d.converge)(((e,t)=>({chartData:e,colors:t})),[d.identity,at])),st=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:t===c.s9T.EXISTS?c.j5E.EXISTS:c.j5E.MISSING_VALUE,fieldName:r}]})),ut=F(st),dt=(0,de.Z)({bar:{width:"100%",display:"flex",flexWrap:"nowrap"},barPart:{height:"8px",flexGrow:1},fillRateSquare:{height:"8px",width:"8px",display:"inline-block",marginRight:"5px",verticalAlign:"middle"},inactiveBarPart:{background:"#EFEFEF"}});function pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){ft(e,t,r[t])}))}return e}function ft(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const mt=(0,Ke.Z)((e=>{let{data:t}=e;const r=dt(),a=at(t),n=t.map(((e,t)=>{let{label:n,percent:i,value:o}=e;return{label:l().createElement("span",null,l().createElement("div",{className:r.fillRateSquare,style:{background:a[t]}}),n),value:`${f().number(o)} ${j(i)}`}}));return M(t)?l().createElement("div",{className:r.bar},l().createElement("div",{className:u()(r.barPart,r.inactiveBarPart)})):l().createElement(Ce.ZP,{title:l().createElement(tt,{title:f().text("Fill rate"),data:n})},l().createElement("div",{className:r.bar},t.map(((e,t)=>l().createElement("div",{key:e.group,className:r.barPart,style:pt({},z(e),{background:a[t]})})))))})),ht=(0,de.Z)({listItem:{padding:"0 0 0 15px","&:after":{content:'""',left:0,right:0,position:"absolute",bottom:0,height:"1px",background:"rgba(0, 0, 0, 0.05)"}},selectedItem:{background:"#F0F7FC !important"},pointerCursor:{cursor:"pointer"},content:{display:"flex",alignItems:"center",width:"100%",height:"100%",position:"relative"},attribute:{paddingLeft:"9px",boxSizing:"border-box",width:"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",height:"100%",position:"relative"},marginWrapper:{display:"inline-block",height:"100%",position:"relative",width:"100%"},attributeType:{position:"absolute",left:0,top:"8px"},fillRate:{position:"absolute",bottom:"8px",left:0,right:0,zIndex:1},attributeLabel:{padding:"8px 0 0 15px",position:"relative","&:after":{content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}},selectedAttributeLabel:{"&:after":{background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #F0F7FC 100%)"}},parentAttributeLabel:{padding:"14px 0 0 13px"},detailsIconSelected:{background:"#F0F7FC"},detailsIcon:{background:"white"},collapseIcon:{marginRight:"6px"}}),yt=e=>{let{detailedAttributeType:t,fillRateData:r,fillRateState:a,style:n,level:i,selected:o=!1,onClick:s,onCollapse:d=q.ZT,isCollapsed:p=!1,isLastLevelItem:f=!1}=e;const m=ht(),h=!!t.children,y=!!r,g=(e=>(0,c.idV)(e.label||e.name))(t),v=p?G.Z:Y.Z,b=o?m.detailsIconSelected:m.detailsIcon;return l().createElement($.Z,{style:n,selected:o,classes:{selected:m.selectedItem},onClick:h?void 0:()=>{s(t)},component:"div",className:u()(m.listItem,!h&&m.pointerCursor)},l().createElement("div",{className:m.content},!h&&l().createElement("div",{className:m.attributeType},l().createElement(me,{type:t.type})),l().createElement("div",{className:m.attribute},l().createElement(Qe,{level:i,margin:20,hasChildren:h,isLastLevelItem:f,isCollapsed:p}),l().createElement(Q.Z,{margin:20,level:i,className:m.marginWrapper},l().createElement(K.C,{value:g},l().createElement("div",{className:u()(m.attributeLabel,o&&m.selectedAttributeLabel,h&&m.parentAttributeLabel)},h&&l().createElement(X.Z,{size:"XXS",icon:v,onClick:d,className:m.collapseIcon}),g))),y&&!h&&l().createElement("div",{className:m.fillRate},l().createElement(mt,{data:r}))),l().createElement(Ge,{details:t.details,classes:{iconRoot:b},fillRateData:r,fillRateState:a})))},gt=(0,d.propOr)({},"attributeItem"),vt=(0,d.pipe)((0,d.find)((0,d.pipe)(gt,(0,d.either)(c.YkM,c.Or$),d.not)),gt),bt=e=>(0,d.pipe)(gt,(0,d.propEq)("fieldName",e)),Et=e=>(0,d.filter)((0,d.propEq)("group",e));let xt;!function(e){e.SHOW_EMPTY="showEmpty"}(xt||(xt={}));const Ot=(0,d.curry)(((e,t,r)=>{const a=(0,d.head)(Et("emptiness")(e));return(null==a?void 0:a.value)===xt.SHOW_EMPTY?r:r.filter((0,d.pipe)(gt,ke(t)))})),wt=(0,d.pipe)(gt,(0,d.prop)("fieldName")),Nt=(0,d.curry)(((e,t)=>{const r=Et("details")(e),a=(e=>(0,d.pipe)((0,d.filter)((0,d.pipe)(gt,(0,d.both)((0,d.prop)("children"),je(e)))),(0,d.map)(wt)))(r)(t);return t.filter((e=>{let{attributeItem:t}=e;return a.some((e=>t.fieldName.startsWith(e)))||Me(r,t)}))}));function Tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var St=r(77277),Rt=r(36444),It=r(79784),At=r(90436),Ct=r(15115),Dt=r(21324),Lt=r(12231);const Pt=(0,de.Z)((e=>({serachWrapper:{padding:"8px 0px 8px 16px",alignItems:"center",display:"flex",flexGrow:1,justifyContent:"flex-end"},filterByDetails:{width:"32px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"9px"},searchInput:{borderRadius:"4px",width:"240px",minHeight:"32px!important",justifyContent:"flex-end",alignItems:"center",padding:"0 2px",boxSizing:"border-box","& input":{fontSize:"14px"},"& button":{padding:"2px"}},filledInput:{"& button:last-child":{backgroundColor:"rgba(0, 0, 0, 0.0509804)"}},menu:{width:"300px",paddingTop:"8px"},filterIcon:{color:e.palette.text.secondary},filterIconFilterApplied:{color:"#0072CE"},filterIconWrapper:{width:"32px",height:"32px",borderRadius:"4px",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",position:"relative","&:after":{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"4px",background:"rgba(0, 0, 0, 0.04)"},"&:hover":{"&:after":{content:'""'}}},filterIconWrapperActive:{background:"rgba(0, 0, 0, 0.04)","&:after":{content:'""',background:"rgba(0, 0, 0, 0.04)"}},filterIconWrapperSelected:{background:"rgba(0, 114, 206, 0.12)"},dropdownMenuTitle:{lineHeight:"48px",height:"48px",paddingLeft:"16px"},option:{paddingLeft:"5px",fontSize:"13px",height:"28px",lineHeight:"16px",letterSpacing:"normal",paddingRight:"19px",filter:e=>e?"grayscale(0)":"grayscale(1)",opacity:e=>e?1:.5},typeIconWrapper:{width:"28px",marginLeft:"1px","& svg":{width:"20px",height:"20px"}},valueContainer:{marginLeft:0},counter:{marginLeft:"5px"},optionLabel:{flexGrow:1},groupLabel:{textTransform:"uppercase",margin:"15px 16px 5px",letterSpacing:"0.1px",display:"block"},actionsContainer:{display:"flex",padding:"12px 5px 8px 12px"},clearAllButton:{marginRight:"auto"}}))),_t=e=>{let{isSelected:t,data:r,onChange:a}=e;const{count:n,label:i,value:o}=r,s=!(0,d.isNil)(n),u=Pt(!s||n>0);return l().createElement(Lt.Z,{className:u.option,component:"div",onClick:()=>a(r),"data-reltio-id":`reltio-dq-dashboard-option-${r.value}`},l().createElement(Dt.Z,{color:"primary",checked:t}),l().createElement("span",{className:u.typeIconWrapper},l().createElement(Ae,{detailType:o})),l().createElement(K.C,{value:i},l().createElement("div",{className:u.optionLabel},i)),s&&l().createElement("span",{className:u.counter},(0,c.k7L)(n,999)))},jt=(0,d.curry)(((e,t)=>!!t.find((0,d.propEq)("value",e.value)))),Mt=(0,d.curry)(((e,t)=>{const r=t.findIndex((0,d.propEq)("value",e.value));return-1!==r?(0,d.remove)(r,1,t):t})),kt=e=>{let{defaultFilterOptions:t=[],filterOptions:r,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=Pt(),[s,p]=(0,a.useState)(null),[m,h]=(0,a.useState)(t),[y,g]=(0,a.useState)(n||null),v=()=>p(null),b=e=>{h((0,d.ifElse)(jt(e),Mt(e),(0,d.concat)([e])))},E=!!m.length,x=!!s,O=u()(c.filterIconWrapper,{[c.filterIconWrapperActive]:x,[c.filterIconWrapperSelected]:E}),w=E?c.filterIconFilterApplied:c.filterIcon;return l().createElement("div",{className:c.serachWrapper},l().createElement(Ct.Z,{autofocus:!0,onChange:e=>{g(e),i(e||"")},initialValue:n||null,height:40,placeholder:f().text("Search attribute name"),"data-reltio-id":"reltio-dq-dashboard-attributes-search-input",classes:{root:u()(c.searchInput,{[c.filledInput]:!!y})}}),l().createElement("div",{className:c.filterByDetails,"data-reltio-id":"reltio-dq-dashboard-attributes-filter"},l().createElement("div",{className:O,onClick:e=>p(e.currentTarget)},l().createElement(Rt.Z,{className:w})),l().createElement(It.ZP,{open:!!s,anchorEl:s,onClose:()=>{h((0,d.always)(t)),v()},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{"data-reltio-id":"reltio-dq-dashboard-attributes-filter-popup"}},l().createElement("div",{className:c.menu},l().createElement(At.Z,{variant:"h6",className:c.dropdownMenuTitle},f().text("Filter")),l().createElement("div",{className:c.valueContainer},r.map((e=>{let{label:t,options:r}=e;return l().createElement("div",{key:t},t&&l().createElement(At.Z,{variant:"caption",className:c.groupLabel},t),r.map((e=>{const t=jt(e,m);return l().createElement(_t,{key:e.label,data:e,isSelected:t,onChange:b})})))})))),l().createElement("div",{className:c.actionsContainer},l().createElement(St.Z,{onClick:()=>{h([])},className:c.clearAllButton,disabled:!E,"data-reltio-id":"reltio-dq-dashboard-filter-clear-all-button"},f().text("Clear all")),l().createElement(St.Z,{onClick:()=>{h(t),v()},"data-reltio-id":"reltio-dq-dashboard-filter-cancel-button"},f().text("Cancel")),l().createElement(St.Z,{color:"primary",onClick:()=>{o(m),v()},"data-reltio-id":"reltio-dq-dashboard-filter-apply-button"},f().text("Apply"))))))},Ft=(0,de.Z)({container:e=>{let{height:t}=e;return{height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",margin:"0 auto",paddingBottom:t>239?"30px":0,boxSizing:"border-box"}},small:{"& $icon":{maxHeight:"88px"},"& $message":{fontSize:"12px"},"& $title":{fontSize:"13px",fontWeight:400,marginBottom:0}},medium:{"& $icon":{maxHeight:"190px",marginBottom:"24px"}},large:{"& $icon":{maxHeight:"256px",marginBottom:"24px"}},icon:e=>{let{height:t}=e;return{paddingTop:0,marginBottom:t>170?"16px":"4px"}},message:{padding:"0 24px",fontSize:"14px",textAlign:"center",whiteSpace:"pre-wrap"},title:{padding:"0 24px",fontSize:"20px",textAlign:"center",color:"rgba(0,0,0,0.87)",fontWeight:500,marginBottom:"8px"}}),Ut=y.B9.NO_DATA,zt=e=>{let{height:t,data:r={},variant:a=V.SMALL}=e;const{Icon:n=Ut,message:i,title:o}=r,c=Ft({height:t});return l().createElement("div",{className:u()(c.container,c[`${a}`])},l().createElement(n,{className:c.icon}),o&&l().createElement(At.Z,{className:c.title},o),i&&l().createElement(At.Z,{className:c.message},i))},Bt=(0,de.Z)((e=>({root:{width:"480px",display:"flex",flexDirection:"column",borderRight:"solid 1px rgba(0, 0, 0, 0.12)",flexGrow:1},title:{height:"24px",margin:"16px",display:"flex",alignItems:"center",fontSize:"12px",color:"rgba(0, 0, 0, 0.54);"},itemCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px"},listWrapper:{flexGrow:1,overflow:"hidden",position:"relative"},columnsTitle:{height:"48px",display:"grid",gridGap:"32px",gridTemplateColumns:"308px 108px",alignItems:"center",padding:"0 16px",background:"rgba(0, 0, 0, 0.06)",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",fontWeight:500,fontSize:"12px",lineHeight:"16px",color:"rgba(0, 0, 0, 0.54)"},loaderWrapper:{position:"absolute",top:"0",left:"0",width:"100%",height:"4px",zIndex:1}}))),Vt=e=>{var t,r;let{entityType:i,onAttributesListChange:o,defaultFieldName:s,defaultFilterOptions:u,defaultFilterText:p,disableAttributeSelection:m}=e;const h=Bt(),v=(0,a.useRef)(),b=(0,a.useRef)(),[E,x]=(0,a.useState)(p||""),[O,N]=(0,a.useState)([]),[T,R]=(0,a.useState)(u||[]),[C,D]=(0,a.useState)({fieldName:s}),[L,P]=(0,a.useState)({}),{data:_}=(0,a.useContext)(w),{data:j,state:M}=(e=>{const[t,r]=(0,a.useState)(I.o.INIT),[l,n]=(0,a.useState)({}),i=(0,A._)(),o=e=>{console.error(e),r(I.o.ERROR),n({})},s=(0,a.useCallback)((()=>(r(I.o.LOADING),n({}),i((0,c.aTW)({entityTypeUri:e})).then(it).then((e=>{n(e),r(I.o.LOADED)})).catch(o))),[r,n,e]),u=(0,a.useCallback)((()=>{try{s()}catch(e){o(e)}}),[s]);return(0,a.useEffect)((()=>{u()}),[u]),{data:l,state:t,reload:u}})(i.uri);(0,a.useEffect)((()=>P(j)),[j]),(0,a.useEffect)((()=>{const e=(null==_?void 0:_.fillRate)&&nt(null==_?void 0:_.fillRate),t=L[C.fieldName];P((r=>!e||(0,d.equals)(t,e)?r:(0,d.assoc)(C.fieldName,e,r)))}),[null==_?void 0:_.fillRate]);const k=null===(t=(0,a.useContext)(S))||void 0===t||null===(r=t.dvfs)||void 0===r?void 0:r.state,F=((e,t)=>{var r,l;const i=(0,n.useSelector)(g.ZP.selectors.getMetadata),o=(0,a.useMemo)((()=>(e=>(0,d.pipe)(c.WN0,ze(e),We))(t)(i,e)),[i,e,t]),[s,u]=(0,a.useState)([]),p=e.uri,f=(0,a.useMemo)((()=>(0,c.qhs)(i,p)),[i,p]),m=null===(r=(0,a.useContext)(S))||void 0===r||null===(l=r.dvfs)||void 0===l?void 0:l.data;return(0,a.useEffect)((()=>{m&&u(o.map((0,d.evolve)({attributeItem:e=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Tt(e,t,r[t])}))}return e}({},e,{details:He({attrTypeItem:e,dvf:m,matchAttributes:f})},e.children&&{children:e.children.map((t=>(t.details=He({attrTypeItem:t,dvf:m,matchAttributes:f}),t.details.reference=e.isAttributeReference,t)))})})))}),[o,f,m]),s})(i,E),{filteredItems:U,filterOptions:z}=(0,a.useMemo)((()=>{const e=Ot(T,L,F),t=(e=>{const t=Object.values(he).map((e=>({value:e,label:Ze(e),group:"details"}))).map((t=>(0,d.assoc)("count",((e,t)=>e.filter((e=>je([t],e.attributeItem))).length)(e,t),t)));return{label:f().text("Attribute properties"),options:t}})(e);return{filteredItems:Nt(T,e),filterOptions:[{label:"",options:[{label:f().text("Show attributes with no data"),value:xt.SHOW_EMPTY,group:"emptiness"}]},t]}}),[F,T,L]),B=(0,a.useMemo)((()=>((e,t)=>e.filter((e=>{let{attributeItem:r}=e;return!t.some((e=>r.fieldName.startsWith(e)&&r.fieldName!==e))})))(U,O)),[U,O]),Y=U.length,G=e=>{o({selectedDetailedAttributeType:e,filterText:E,filterOptions:T}),D({fieldName:e.fieldName})},$=()=>{const e=((e,t)=>(0,d.pipe)((0,d.find)(bt(t)),(0,d.propOr)(null,"attributeItem"))(e))(U,C.fieldName)||vt(U);return(0,d.isEmpty)(e)||m?null:e};(0,a.useEffect)((()=>{var e,t,r;if(m)return void(null===(r=v.current)||void 0===r||r.scrollTo(0));if(U.length){const e=$();D({fieldName:(null==e?void 0:e.fieldName)||C.fieldName})}const a=((e,t)=>(0,d.findIndex)(bt(t))(e))(U,C.fieldName);a>-1?null===(e=v.current)||void 0===e||e.scrollToItem(a,"center"):null===(t=v.current)||void 0===t||t.scrollTo(0)}),[U]),(0,a.useEffect)((()=>{const e=$();o({selectedDetailedAttributeType:e,filterText:E,filterOptions:T})}),[E,T,C]),(0,a.useEffect)((()=>{D((e=>{let{fieldName:t}=e;return m?{fieldName:null}:{fieldName:t}}))}),[m]);const q=e=>{let{scrollOffset:t}=e;if(b.current){var r,a;const e=null===(r=b.current)||void 0===r||null===(a=r.style)||void 0===a?void 0:a.borderTop;0===t&&(b.current.style.borderTop=""),t>0&&""===e&&(b.current.style.borderTop="1px solid rgba(0, 0, 0, 0.05)")}},Q=e=>{let{data:t,index:r,style:a}=e;const{attributeItem:n,level:i=0}=t[r],o=C.fieldName===n.fieldName,c=((e,t)=>e[t.fieldName])(L,n),s=r>0&&i>(0,d.pathOr)(-1,[r+1,"level"],B);return l().createElement(yt,{fillRateData:c,fillRateState:M,style:a,detailedAttributeType:n,level:i,onClick:G,selected:o,onCollapse:(u=n.fieldName,()=>{N((e=>e.includes(u)?e.filter((e=>e!==u)):e.concat(u)))}),isCollapsed:O.includes(n.fieldName),isLastLevelItem:s});var u},K=B.length,X=!!K,J=M===I.o.LOADING||k===I.o.LOADING||M===I.o.INIT||k===I.o.INIT;return l().createElement("div",{className:h.root},l().createElement("div",{className:h.title},f().text("Attributes"),l().createElement("span",{className:h.itemCount},`${Y} ${ee=Y,1===ee?f().text("item"):f().text("items")}`),l().createElement(kt,{defaultFilterText:p,defaultFilterOptions:T,onChangeFilterOptions:R,onChangeFilterText:x,filterOptions:z})),l().createElement("div",{ref:b,className:h.listWrapper,"data-reltio-id":"reltio-dq-dashboard-attributes-list"},l().createElement("div",{className:h.loaderWrapper},J&&l().createElement(W.Z,null)),X?l().createElement(Z.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return l().createElement(H.FixedSizeList,{ref:v,itemCount:K,width:"100%",height:t,itemData:B,itemSize:48,onScroll:q},Q)})):!J&&l().createElement(zt,{height:349,data:{Icon:y.B9.SEARCH_RESULTS,title:f().text("No results found"),message:f().text("Try adjusting your search or filter to find\nwhat you’re looking for")},variant:V.MEDIUM})));var ee};var Ht=r(43266);const Zt=(0,de.Z)((e=>({container:e=>{let{height:t}=e;return{height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",margin:"0 auto",paddingBottom:t>239?"30px":0,boxSizing:"border-box"}},small:{"& $icon":{maxHeight:"88px"},"& $message":{fontSize:"12px"},"& $title":{fontSize:"13px",fontWeight:400,marginBottom:0},"& $refreshButton":{marginTop:"2px",padding:0}},medium:{"& $icon":{maxHeight:"190px",marginBottom:"24px"}},large:{"& $icon":{height:"256px",width:"256px",marginBottom:"24px"}},icon:e=>{let{height:t}=e;return{paddingTop:0,marginBottom:t>170?"16px":"4px"}},message:{padding:"0 24px",fontSize:"14px",textAlign:"center",whiteSpace:"pre-wrap"},title:{padding:"0 24px",fontSize:"20px",textAlign:"center",color:"rgba(0,0,0,0.87)",fontWeight:500,marginBottom:"8px"},refreshButton:{color:e.palette.primary.main,marginTop:"12px",padding:"6px 8px"},refreshIcon:{width:"24px",height:"24px"}}))),Wt=y.B9.ERROR,Yt=e=>{let{onRefresh:t,height:r,errorData:a={},variant:n=V.SMALL}=e;const{Icon:i=Wt,message:o,title:c}=a,s=Zt({height:r});return l().createElement("div",{className:u()(s.container,s[`${n}`])},l().createElement(i,{className:s.icon}),c&&l().createElement(At.Z,{className:s.title},c),o&&l().createElement(At.Z,{className:s.message},o),!!t&&l().createElement(St.Z,{className:s.refreshButton,startIcon:l().createElement(Ht.Z,{color:"primary",className:s.refreshIcon}),onClick:t,"data-reltio-id":"reltio-dq-dashboard-chart-refresh-button"},l().createElement(At.Z,{variant:"button"},f().text("Refresh"))))},Gt=(0,de.Z)({root:{display:"flex",alignItems:"center",width:"100%",borderBottom:"solid 1px rgba(0, 0, 0, 0.12)"},title:{fontSize:"18px",flexShrink:0,padding:"0 20px"},content:{overflow:"hidden",flexGrow:1},updateButton:{height:36,width:36,padding:"0 20px"}}),$t=e=>{let{title:t,children:r}=e;const a=Gt();return l().createElement("div",{className:a.root},l().createElement(At.Z,{variant:"body2",className:a.title},t),l().createElement("div",{className:a.content},r))};var qt=r(17822),Qt=r(73487),Kt=r(78223);const Xt=(0,de.Z)({wrapper:{width:"100%",display:"flex",justifyContent:"center",margin:"auto",flexWrap:"wrap",flexDirection:"column",marginBottom:2},item:{display:"flex",alignItems:"center",height:19},itemColor:{width:12,height:12,marginRight:9,flexShrink:0}}),Jt=e=>{let{payload:t}=e;const r=Xt();return l().createElement("div",{className:u()(r.wrapper)},t.map((e=>l().createElement("div",{key:e.id,className:r.item},l().createElement("div",{style:{background:e.color},className:r.itemColor}),e.value))))},er=(0,de.Z)({root:{display:"flex",flexDirection:"column",height:"100%"},stackedBar:{width:"100%",display:"flex",flexWrap:"nowrap",marginTop:"13px"},bar:{height:"24px",flexGrow:1,position:"relative",width:"50%",transition:"width 0.7s","&:hover":{"&:after":{content:'""',background:"rgba(0, 0, 0, 0.1)"}},"&:after":{position:"absolute",top:"-3px",bottom:"-5px",left:"-5px",right:"-5px",transition:"background 0.3s",zIndex:1,pointerEvents:"none"}},inactivePart:{background:"#EFEFEF"},tooltipTitle:{fontSize:"11px"},tooltipFillRate:{marginTop:"4px"},tooltip:{background:"#fff",filter:"drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)) drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2))",padding:"5px 8px"},legendWrapper:{position:"relative",flexGrow:1},legendLabel:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},legendValue:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.87)"},clickable:{cursor:"pointer"}});function tr(){return tr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},tr.apply(this,arguments)}const rr=(0,a.forwardRef)(((e,t)=>{let{className:r}=e,a=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["className"]);const n=er();return l().createElement("div",tr({className:u()(n.bar,r)},a,{ref:t}))}));rr.displayName="Bar";const ar=rr;function lr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){nr(e,t,r[t])}))}return e}function nr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ir=(0,Kt.Z)(ar),or=e=>{let{label:t,value:r,percent:a}=e;return[{label:t,value:`${f().number(r)} ${j(a)}`}]},cr=(0,Ke.Z)((e=>{let{data:t,colors:r,onItemClick:a}=e;const n=er(),i=a&&(e=>a(e)),o=!!a;return l().createElement("div",{className:n.root},l().createElement("div",{className:n.stackedBar},t.map(((e,t)=>l().createElement(ir,{className:o&&n.clickable,key:e.label,tooltipTitle:l().createElement(tt,{data:or(e)}),style:lr({},z(e),{background:r[t]}),onClick:()=>i(e.group)})))),l().createElement("div",{className:n.legendWrapper},l().createElement(Qt.De,{layout:"vertical",align:"left",verticalAlign:"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%"},content:l().createElement(Jt,null),payload:(t||[]).map(((e,t)=>{let{group:a,label:i,value:o,percent:s}=e;return{id:a,type:"square",color:r[t],value:l().createElement(l().Fragment,null,l().createElement("span",{className:n.legendLabel},i),l().createElement("span",{className:n.legendValue},`${(0,c.k7L)(o,999)} ${j(s)}`))}}))})))}));var sr=r(17998),ur=r(39475),dr=r(82726);const pr=(0,de.Z)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:"5px",lineHeight:"24px"},infoIcon:{position:"relative"}}))),fr=e=>{let{title:t,infoTooltipTitle:r,children:a}=e;const n=pr(!!a),i=!!r;return l().createElement(sr.Z,{title:t,className:n.root,classes:{title:n.title}},i&&l().createElement(ur.k,{icon:dr.Z,size:"XXS",tooltipTitle:r,className:n.infoIcon}),a)};var mr=r(7882),hr=r(82068);const yr=(0,de.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}}))),gr=e=>{let{loadingState:t,onRefresh:r,children:a,data:n,className:i}=e;const o=yr();return l().createElement(hr.Z,{className:u()(o.viewContent,i)},l().createElement(Z.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:i,height:o}=e;switch(t){case I.o.LOADED:return n&&0!==n.length?l().createElement(mr.Z,{error:l().createElement(Yt,{errorData:{message:f().text("Something went wrong")},height:o,variant:V.SMALL})},a({data:n,width:i,height:o})):l().createElement(zt,{height:o,data:{Icon:y.B9.NO_DATA,message:f().text("Go ahead and load some data. We’ll put it on the scales and let you know here if it measures up."),title:f().text("Give us something to go on!")},variant:V.SMALL});case I.o.LOADING:return l().createElement(W.Z,null);case I.o.ERROR:return l().createElement(Yt,{errorData:{Icon:y.B9.ERROR,message:f().text("No need to fret - just refresh and it will work itself out."),title:f().text("Oops! We ran into a problem.")},height:o,onRefresh:r,variant:V.SMALL});default:return l().createElement("div",null,"Loading...")}})))};var vr=r(1730);const br=(0,de.Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),Er=e=>{let{config:t,children:r}=e;const a=br(),{type:n}=t;return l().createElement(vr.Z,{className:a.view,"data-reltio-id":`reltio-dq-dashboard-chart-${n}`},r)},xr=e=>{let{label:t,value:r}=e;const a=Xe();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:u()(a.label,a.infoDataLabel)},t),r)},Or=e=>{const{data:t,state:r,reload:l}=(0,a.useContext)(w);return{data:(0,a.useMemo)((()=>e(t)),[t,e]),state:r,reload:l}},wr=e=>{const t=(0,n.useDispatch)(),r=(0,a.useContext)(T),l=(0,a.useContext)(R);return(0,d.pipe)(e({detailedAttributeType:r,entityTypeUri:l.uri}),g.ui.actions.openSearch,t)},Nr=e=>{let{config:t}=e;const{title:r}=t,{data:a,state:n,reload:i}=Or(ct),{chartData:o,colors:c}=a,s=wr(ut),u=l().createElement(tt,{title:f().text("Fill rate"),data:[{label:`${f().text("Exists")}:`,value:f().text("Profiles with data")},{label:`${f().text("Missing")}:`,value:f().text("Profiles without data")}],DataRenderer:xr});return l().createElement(Er,{config:t},l().createElement(fr,{title:r,infoTooltipTitle:u}),l().createElement(gr,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(cr,{data:t,colors:c,onItemClick:s})})))},Tr={[c.dC6.UNIQUE]:"#4BAFFF",[c.dC6.NOT_UNIQUE]:"#C34980"},Sr=(0,d.map)((e=>{let{group:t}=e;return Tr[t]||(0,c.f4_)(t)})),Rr=e=>({[c.dC6.UNIQUE]:f().text("Unique"),[c.dC6.NOT_UNIQUE]:f().text("Not unique")}[e]||e),Ir=(0,d.pipe)(Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:Rr(t),group:t,value:r}})),(0,d.sortBy)((e=>Object.values(c.dC6).indexOf(e.group))),_),Ar=(0,d.propOr)({},"uniqueness"),Cr=(0,d.pipe)(Ar,Ir,(0,d.when)(M,(0,d.always)([])),(0,d.converge)(((e,t)=>({chartData:e,colors:t})),[d.identity,Sr])),Dr=e=>{let{config:t}=e;const{title:r}=t,{data:a,state:n,reload:i}=Or(Cr),{chartData:o,colors:c}=a,s=l().createElement(tt,{title:f().text("Uniqueness analysis"),data:[{label:`${f().text("Unique")}:`,value:f().text("Number of values that only appear once and have no duplicates")},{label:`${f().text("Not unique")}:`,value:f().text("Number of values that have at least one duplicate in the list")}],DataRenderer:xr});return l().createElement(Er,{config:t},l().createElement(fr,{title:r,infoTooltipTitle:s}),l().createElement(gr,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(cr,{data:t,colors:c})})))};var Lr=r(4614),Pr=r(7089);const _r=(0,de.Z)({root:{height:"24px",maxWidth:"calc(100% - 8px)",margin:"0 4px 4px 0",borderRadius:"12px"},label:{fontSize:"12px",paddingLeft:"8px",paddingRight:"9px"},badQuality:{backgroundColor:"rgba(255, 23, 68, 0.12)"}});function jr(){return jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},jr.apply(this,arguments)}function Mr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){kr(e,t,r[t])}))}return e}function kr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Fr=e=>{let{detailType:t,classes:r}=e,n=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["detailType","classes"]);const i=_r(),{data:o,state:s}=(0,a.useContext)(w);let d=Ie.NORMAL;const p=s===I.o.LOADING,f=(e=>{var t;return 0===(null==e||null===(t=e.fillRate)||void 0===t?void 0:t[c.s9T.MISSING])})(o);return t===he.REQUIRED&&(p&&(d=Ie.LOADING),p||f||(d=Ie.BAD_QUALITY)),l().createElement(Pr.Z,jr({classes:Mr({root:u()(i.root,{[i.badQuality]:t===he.REQUIRED&&!p&&s!==I.o.INIT&&!f}),label:i.label},r),label:Ze(t),icon:l().createElement(Ae,{detailType:t,variant:d})},n))},Ur=(0,de.Z)({root:{display:"flex",flexWrap:"wrap",flexGrow:1}}),zr=e=>{let{details:t,chipClasses:r={}}=e;const a=Ur();return l().createElement("div",{className:a.root},Object.entries(t||{}).filter((e=>{let[,t]=e;return t})).map((e=>{let[t]=e;return l().createElement(Fr,{key:t,detailType:t,classes:r})})))},Br=(0,de.Z)({header:{display:"flex",paddingBottom:"16px"},info:{display:"flex",flexDirection:"column","&:not(:last-child)":{borderRight:"1px solid rgba(0,0,0,0.12)"}},entitySummary:{"&:not(:last-child)":{paddingRight:"16px",marginRight:"16px"}},attributeTypeSummary:{"&:not(:last-child)":{paddingRight:"24px",marginRight:"24px"}},infoTitle:{color:"rgba(0,0,0,0.54)",fontSize:"12px",lineHeight:"16px"},infoContent:{fontSize:"30px",lineHeight:"35px",padding:"4px 0 0",display:"flex",alignItems:"center"},attributeTypeIconWrapper:{width:"32px",height:"33px",background:"rgba(0, 0, 0, 0.05)",borderRadius:"4px",position:"relative",marginRight:"12px",flexShrink:0,"& svg":{position:"absolute",transform:"translate(-50%, -50%)",top:"50%",left:"50%"}},totalLoading:{padding:"4px 8px"}}),Vr=e=>{let{title:t,children:r,className:a}=e;const n=Br();return l().createElement("div",{className:u()(n.info,a)},l().createElement("div",{className:n.infoTitle},t),l().createElement("div",{className:n.infoContent},r))},Hr=e=>{let{detailedAttributeType:t}=e;const r=Br(),n=(e=>{const[t,r]=(0,a.useState)(null),l=(0,a.useContext)(R),n=(0,A._)();return(0,a.useEffect)((()=>{if(l.uri&&e){const t={filter:c.j5E.EXISTS,fieldName:e},a={filter:c.j5E.EQUALS,fieldName:"type",values:[l.uri]};r(null),n((0,c.j_Q)([t,a])).then((e=>{let{total:t}=e;return r(t)})).catch(console.error)}}),[l.uri,e]),t})(t.fieldName),i=null===n?l().createElement(Lr.Z,{size:"24",className:r.totalLoading}):(0,c.k7L)(n);return l().createElement("div",null,l().createElement("div",{className:r.header},l().createElement(Vr,{title:f().text("Profiles"),className:r.attributeTypeSummary},l().createElement(Ce.ZP,{title:l().createElement(tt,{data:[{label:f().text("Entities with exists attribute"),value:f().number(n)}]})},l().createElement("div",null,i))),l().createElement(Vr,{title:f().text("Data type"),className:r.attributeTypeSummary},(o=t.type,l().createElement(l().Fragment,null,l().createElement("div",{className:r.attributeTypeIconWrapper},l().createElement(me,{type:o,size:fe.NORMAL})),f().text(o))))),l().createElement(zr,{details:t.details}));var o},Zr=e=>{let{entityType:t}=e;const{data:r,state:i}=(0,a.useContext)(w),o=((e,t)=>{const r=t.attributes||[],a=t=>t.filter(c.Uty).filter((0,d.either)((0,d.prop)("label"),(0,d.prop)("name"))).reduce(((t,r)=>{const l=(0,c.EUG)(e,r);return null!=l&&l.length?[...t,r,...a(l)]:[...t,r]}),[]);return a(r).length})((0,n.useSelector)(g.ZP.selectors.getMetadata),t),{activeProfiles:s=0,inactiveProfiles:u=0,sourceSystems:p=0}=(null==r?void 0:r.summary)||{},m=e=>i===I.o.LOADING?l().createElement(Lr.Z,{size:"24",className:h.totalLoading}):f().number(e),h=Br();return l().createElement("div",{className:h.header},l().createElement(Vr,{title:f().text("Active profiles"),className:h.entitySummary},m(s)),l().createElement(Vr,{title:f().text("Inactive profiles"),className:h.entitySummary},m(u)),l().createElement(Vr,{title:f().text("Attributes"),className:h.entitySummary},f().number(o)),l().createElement(Vr,{title:f().text("Source systems"),className:h.entitySummary},m(p)))},Wr=(0,de.Z)({content:{padding:"0 16px",marginTop:"4px"}}),Yr=e=>{let{config:t}=e;const r=Wr(),n=(0,a.useContext)(T),i=(0,a.useContext)(N),o=(0,a.useContext)(R),s=i===E.ATTRIBUTE_TYPE,u=s?(0,c.idV)(n.label):(0,c.idV)(o.label);return l().createElement(Er,{config:t},l().createElement(fr,{title:u}),l().createElement(hr.Z,{className:r.content},s?l().createElement(Hr,{detailedAttributeType:n}):l().createElement(Zr,{entityType:o})))};var Gr=r(65298);const $r=(0,de.Z)({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}});function qr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Qr(e,t,r[t])}))}return e}function Qr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Kr=y.B9.ERROR,Xr=e=>{let{config:t,errorData:r,titleChildren:a,infoTooltipTitle:n,onRefresh:i}=e;const{id:o,title:c}=t,s=$r();return l().createElement(Gr.Z,{id:o},l().createElement(fr,{title:c,infoTooltipTitle:n},a),l().createElement(hr.Z,{className:s.viewContent},l().createElement(Z.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},l().createElement(Yt,{errorData:qr({Icon:Kr},r),onRefresh:i,variant:V.SMALL}))))},Jr=e=>{let{keyword:t,entityTypeUri:r}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[D(r)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}},ea=e=>{let{fieldName:t,value:r,entityTypeUri:a}=e;return Jr({keyword:`${c.j5E.EQUALS}(${t}, ${r})`,entityTypeUri:a})};function ta(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ra=e=>(0,d.pipe)((0,d.propOr)({},e),Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),_),aa=e=>{let{sortDirection:t,sortField:r}=e;return(e,a)=>"asc"===t?e[r]>a[r]?1:-1:e[r]<a[r]?1:-1},la=(0,d.curry)(((e,t)=>t.filter((t=>e.find((0,d.propEq)("uri",t.group)))).map((t=>{const r=e.find((0,d.propEq)("uri",t.group)).name;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){ta(e,t,r[t])}))}return e}({},t,{label:r,group:r})})))),na=ra("frequency"),ia=ra("pattern"),oa=e=>[{filter:c.j5E.EQUALS,values:[[e]],fieldName:"analyticsAttributes.AttributeValidations.FunctionName"}],ca=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return ea({fieldName:`${r.fieldName}`,value:t,entityTypeUri:a})})),sa=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.ON,values:[t],fieldName:r}]})),ua=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:r}]})),da=e=>{let{detailedAttributeType:t,entityTypeUri:r}=e;return(0,d.cond)([[c.j5n,(0,d.always)(ca)],[c.Lt4,(0,d.always)(F(sa))],[d.identity,(0,d.always)(F(ua))]])(t.type)({detailedAttributeType:t,entityTypeUri:r,dvfs:[]})},pa=F((()=>oa)),fa=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return ea({fieldName:`${r.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:a})})),ma=e=>`(${e.length>=100?f().text("top")+" 100":e.length})`;var ha=r(45108),ya=r(92332);const ga=(0,d.pipe)((0,d.split)("|"),(e=>{let[t,r]=e;return{label:t,percent:r}})),va={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"},ba=(0,de.Z)((e=>({colorBarContainer:{position:"relative",width:"100%",marginLeft:"16px",padding:"5px 0 6px",height:"100%",boxSizing:"border-box","&>span":{display:"block"},"&>span>div":{opacity:1,zIndex:1}},numberWhithPercent:{fontSize:"13px",lineHeight:"15px",fontWeight:"normal",color:e.palette.text.primary,flexShrink:0,width:"90px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},numberContainer:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 10px 0 16px",height:"100%"},bar:{borderRadius:"0 !important",minHeight:"16px !important",position:"initial !important","&:hover":{"&:after":{background:"rgba(0, 0, 0, 0.1)"}},"&:after":{content:'""',position:"absolute",top:"2px",left:"-3px",right:"-2px",bottom:"3px",transition:"background 0.3s"}},tooltipTitle:{color:"rgba(255, 255, 255, 0.6)"},headCell:{height:"100%",lineHeight:"47px","&>div":{padding:"0 10px 0 16px",display:"flex"},"&>div>span":{width:"100%",flexGrow:1,justifyContent:e=>e?"flex-start":"flex-end",flexDirection:e=>e?"row":"row-reverse",marginLeft:e=>e&&"auto!important"}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"47px",whiteSpace:"nowrap",overflow:"hidden","&:after":va},labelPercantageWrapper:{display:"flex",flexGrow:1},labelWrapper:{minWidth:"90px",position:"relative"},percentsWrapper:{marginLeft:"11px",display:"flex",width:"100%"},percentLabel:{color:e.palette.text.secondary,fontSize:"12px","&:first-child":{flexGrow:1}},attribute:{color:e.palette.text.primary,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",whiteSpace:"pre",overflow:"hidden",display:"flex",alignItems:"center",height:"100%",padding:"0 16px","&:after":va},tooltipValue:{whiteSpace:"pre-wrap"}})));function Ea(){return Ea=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ea.apply(this,arguments)}function xa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Oa(e,t,r[t])}))}return e}function Oa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wa=e=>{let{className:t,headCellData:r,headIndex:a}=e,n=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["className","headCellData","headIndex"]);const i=ba(!a),{label:o,percent:c}=ga(r.label),s=!!c,d=l().createElement(K.C,{value:o},l().createElement("div",{className:i.headLabel},o));return l().createElement("div",{className:u()(i.headCell,t)},l().createElement(ya.default,Ea({},n,{headCellData:xa({},r,{label:s?l().createElement("div",{className:i.labelPercantageWrapper},l().createElement("div",{className:i.labelWrapper},d),l().createElement("div",{className:i.percentsWrapper},l().createElement("span",{className:i.percentLabel},"0%"),l().createElement("span",{className:i.percentLabel},c,"%"))):d})})))};var Na=r(59383),Ta=r(30488);const Sa=(0,Ta.Z)(((e,t)=>{let{onItemClick:r}=e,{rowValue:{group:a}}=t;return{onClick:r&&(()=>{r(a)})}}))((e=>{let{value:t="",columnData:r,rowValue:a,onClick:n}=e;const{labelCellClassName:i,labelRenderer:o}=r,s=ba(),d=(0,Na.d)(n),p=l().createElement("div",{className:s.tooltipValue},t),f=!!o;return l().createElement(K.C,{value:p},l().createElement("div",{className:u()(s.attribute,d,i),onClick:n},f?l().createElement(o,{chartData:a}):c.P6Y.strings.removeLineBreaks(t)))}));var Ra=r(89902);const Ia=(0,Kt.Z)((e=>{let{value:t,maxValue:r,className:a}=e;return l().createElement(Ra.Z,{width:t,maxWidth:r,className:a})})),Aa=(0,Ta.Z)(((e,t)=>{let{onItemClick:r,valueHeader:a,labelHeader:l}=e,{rowValue:{group:n}}=t;return{onClick:r&&(()=>{r(n)}),valueHeader:a,labelHeader:l}}))((e=>{let{value:t,columnData:{maxValue:r},rowValue:{percent:a,label:n},labelHeader:i,valueHeader:o,onClick:s}=e;const p=ba(),m=(0,Na.d)(s),h=l().createElement("span",{className:p.tooltipValue},n),y=0===t?"0":`${(0,c.k7L)(t,999)} ${j(a)}`,g=l().createElement(tt,{data:[{label:i,value:h},{label:o,value:`${f().number(t)} ${j(a)}`}]});return l().createElement("div",{className:u()(p.numberContainer,m),onClick:s},l().createElement(At.Z,{className:p.numberWhithPercent},y),!(0,d.isNil)(r)&&l().createElement("div",{className:p.colorBarContainer},l().createElement(Ia,{value:t,maxValue:r,tooltipTitle:g,className:p.bar,showForDisabled:!0})))})),Ca=(0,de.Z)({tableContainer:e=>{let{width:t,height:r}=e;return{height:r,width:t,display:"flex",flexDirection:"column"}},cellBorder:{borderLeft:"none",borderRight:"none!important"}});function Da(){return Da=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Da.apply(this,arguments)}const La=e=>{let{width:t,height:r,data:n,options:i={},basicTableRef:o,onItemClick:c}=e,s=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["width","height","data","options","basicTableRef","onItemClick"]);const u=Ca({width:t,height:r}),{headers:[d,p]=[],сountLabel:m,showValues:h=!0,sortable:y=!1,labelCellClassName:g,LabelRenderer:v}=i,b=(0,a.useMemo)((()=>({cellBorder:u.cellBorder})),[u]),E=(0,a.useMemo)((()=>Math.max(...n.map((e=>e.value)))),[n]),x=(0,a.useMemo)((()=>{const e=B(n),t=p||f().text("No of Profiles");return e?t.concat(`|${e}`):t}),[n,p]),O=m?`${d} ${m}`:d,w=(0,a.useMemo)((()=>[{id:"label",label:O,resizable:!1,headCellRenderer:wa,labelCellClassName:g,rowCellValueRenderer:Sa,initialWidth:.4*t,sortable:y,labelRenderer:v},...h?[{id:"value",label:x,resizable:!1,headCellRenderer:wa,rowCellValueRenderer:Aa,maxValue:E,initialWidth:.6*t,sortable:y}]:[]]),[x,E,t,O,h,g,y,v]),N=(0,a.useMemo)((()=>({onItemClick:c,labelHeader:d,valueHeader:p})),[c,d,p]);return l().createElement("div",{className:u.tableContainer},l().createElement(ha.Z,Da({columnsData:w,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:b,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:N},s)))},Pa=(0,de.Z)((()=>({layoutItemContent:{padding:"0 0 10px"}}))),_a=(0,Ke.Z)((e=>{let{config:t,data:r,title:n,headers:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,titleChildren:u,state:d,onRefresh:p,labelCellClassName:f,сountLabel:m,LabelRenderer:h}=e;const y=Pa(),[g,v]=(0,a.useState)("desc"),[b,E]=(0,a.useState)("value"),x=(0,a.useCallback)(((e,t)=>c?c({sortDirection:g,sortField:b})(e,t):aa({sortDirection:g,sortField:b})(e,t)),[g,b,c]),O=e=>{v((()=>b===e?(0,q.Dh)(g):g)),E(e)},w=(0,a.useMemo)((()=>[...r.sort(x)]),[x,r]);return l().createElement("div",null,l().createElement(Er,{config:t},l().createElement(fr,{title:n,infoTooltipTitle:o},u),l().createElement(gr,{className:y.layoutItemContent,data:w,loadingState:d,onRefresh:p},(e=>{let{data:t,width:r=0,height:a=0}=e;return l().createElement(La,{data:t,width:r,height:a,options:{headers:i,sortable:!!c,сountLabel:m,labelCellClassName:f,LabelRenderer:h},sorting:{field:b,order:g},onSort:O,onItemClick:s})}))))})),ja=(0,de.Z)((e=>({title:{whiteSpace:"nowrap",height:"24px",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"},titleCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px",overflow:"hidden",lineHeight:"24px",textOverflow:"ellipsis",fontSize:"14px"},container:{height:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",padding:0,"&>svg":{paddingTop:0,height:"88px",width:"88px",marginBottom:"14px"}},noDataMessage:{fontSize:"12px",textAlign:"center",whiteSpace:"pre-wrap"},noDataTitle:{fontSize:"13px",textAlign:"center",color:"rgba(0,0,0,0.87)",whiteSpace:"pre-wrap"},viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}})));var Ma=r(86689);function ka(){return ka=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ka.apply(this,arguments)}const Fa=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",ka({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg1830866123a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg1830866123a)"},l().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},l().createElement("path",{d:"M12.375 18.688a7 7 0 017-7h75.742a7 7 0 017 7v49.02a7 7 0 01-7 7H19.375a7 7 0 01-7-7v-49.02z"}),l().createElement("path",{opacity:".4",d:"M16.844 22.813a7 7 0 017-7h75.741a7 7 0 017 7v49.02a7 7 0 01-7 7H23.844a7 7 0 01-7-7v-49.02z"})),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"29.318",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 31.381a3.562 3.562 0 013.552-3.563 3.562 3.562 0 013.552 3.563 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 29.052c0-.726.588-1.313 1.313-1.313h23.983a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 33.553c0-.518.42-.938.938-.938h43.37a.938.938 0 010 1.876h-43.37a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 36.554c0-.31.252-.563.563-.563h13.993a.563.563 0 110 1.126H31.26a.563.563 0 01-.563-.563z",fill:"#B1AABD"}),l().createElement("rect",{opacity:".5",x:"19.854",y:"17.689",width:"29.914",height:"4.126",rx:"2.063",fill:"#645F6D"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"43.573",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("rect",{x:"19.854",y:"42.072",width:"7.105",height:"7.127",rx:"3.552",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 43.306c0-.725.588-1.313 1.313-1.313h28.41a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 47.808c0-.518.42-.938.938-.938h48.23a.938.938 0 110 1.876h-48.23a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 50.809c0-.31.252-.563.563-.563h38.884a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"57.828",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 59.891a3.562 3.562 0 013.552-3.564 3.562 3.562 0 013.552 3.564 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 57.561c0-.725.588-1.313 1.313-1.313h38.132a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 62.063c0-.518.42-.938.938-.938h31.778a.938.938 0 110 1.875H31.635a.938.938 0 01-.938-.937z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 65.064c0-.311.252-.563.563-.563h13.993a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 3.094h88V88H0V3.094z",fill:"url(#paint0_linear_3200_4362)"}),l().createElement("path",{d:"M79.893 76.85H21.308v14.184h58.585V76.85z",fill:"#F5C056"}),l().createElement("path",{d:"M79.893 76.85H74.6v14.184h5.293V76.85z",fill:"#E99B00"}),l().createElement("path",{d:"M48.73 76.893H26.283v14.184H48.73V76.893z",fill:"#FFEA5A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.894 57.829c-1.687-4.26 13.113-4.043 11.413 0-1.353 3.218-1.353 7.53 0 12.934H44.894C46 64.93 46 60.618 44.894 57.83z",fill:"#FFD264"}),l().createElement("path",{d:"M61.253 70.383H39.949v2.663h21.304v-2.663z",fill:"#FFD264"}),l().createElement("path",{d:"M47.938 70.383h-4.185v2.663h4.185v-2.663z",fill:"#FFEA5A"}),l().createElement("path",{d:"M64.676 73.046h-28.15v3.804h28.15v-3.804z",fill:"#795D1A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.764 16.363v5.325H15.602v.143c0 13.634 8.992 24.714 20.162 24.961v2.994c-14-.986-25.108-15.488-25.108-33.233v-.19h25.108z",fill:"#FFCB64"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.677 16.363v5.325h20.161v.143c0 13.634-8.991 24.714-20.161 24.961v2.994c13.999-.986 25.107-15.488 25.107-33.233v-.19H64.677z",fill:"#ED985C"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.307 57.829c-1.353 3.218-1.353 7.53 0 12.934h-5.706V54.715c3.278.026 6.556 1.091 5.706 3.114z",fill:"#F4B046"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.676 73.046v3.804H50.601v-3.804h14.075z",fill:"#4F350B"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.253 70.383v2.663H50.6v-2.663h10.652z",fill:"#F4B046"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.933 10.656a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-11.43 0-23.311-20.1-24.449-45.65h2.194l-.38-3.044h-1.898a91.212 91.212 0 01.01-2.663h49.045z",fill:"#FFCE66"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.937 10.656c.006.569.01 1.14.01 1.712v.952h-.044l-.241 3.043h.294c.126 24.948 1.435 39.335 3.123 45.65-8.89-3.2-15.661-20.403-16.308-45.65h1.465l-.241-3.044h-1.271a158.252 158.252 0 01.006-2.663h13.207z",fill:"#FFEA5A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.284 16.363h-3.91l.422-3.044h3.581a81.301 81.301 0 00-.01-2.663h4.566a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-.414 0-.828-.026-1.241-.078 11.92-1.382 19.899-20.946 21.114-45.572zm.083-5.707h-44.48 44.48z",fill:"#F4B046"}),l().createElement("path",{opacity:".519",d:"M72.665 13.32h-44.51v3.043h44.51v-3.044z",fill:"#F4B046"}),l().createElement("path",{d:"M48.318 73.046h-5.706v3.804h5.706v-3.804z",fill:"#96691F"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M65.526 10.656h4.235L58.973 35.935h-4.235l10.788-25.279z",fill:"url(#paint1_linear_3200_4362)"}),l().createElement("g",{filter:"url(#filter0_d_3200_4362)"},l().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#000"})),l().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#DD612C"}),l().createElement("path",{d:"M56.909 54.302a8.681 8.681 0 100-17.362 8.681 8.681 0 000 17.362z",fill:"#FFCE66"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.909 36.94a8.685 8.685 0 018.347 6.291c-5.74.351-10.312 5.02-10.51 10.8a8.699 8.699 0 01-6.008-5.47A11.212 11.212 0 0054.9 37.174a8.684 8.684 0 012.008-.234z",fill:"#FFF18C"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.202 10.656l10.862 25.341H54.83L43.646 10.705l4.556-.049z",fill:"#F83D3D"})),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3200_4362",x1:"0",y1:"3.094",x2:"0",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3200_4362",x1:"62.25",y1:"10.656",x2:"62.25",y2:"35.935",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#B93131"}),l().createElement("stop",{offset:"1",stopColor:"#831616"})),l().createElement("filter",{id:"filter0_d_3200_4362",x:"40.057",y:"30.77",width:"33.702",height:"33.703",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l().createElement("feOffset",{dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"3"}),l().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0335613 0 0 0 0 0.334579 0 0 0 0 0.412601 0 0 0 0.5 0"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3200_4362"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3200_4362",result:"shape"}))))};function Ua(){return Ua=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ua.apply(this,arguments)}const za=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Ua({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg355575424a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg355575424a)"},l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_3488_11934)"}),l().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M64.543 19.547L84.7 39.704V90.88H32.1L17.875 77.372V19.547h46.668z",fill:"url(#paint1_linear_3488_11934)"}),l().createElement("path",{opacity:".06",fillRule:"evenodd",clipRule:"evenodd",d:"M16.156 19.938h69.438A2.406 2.406 0 0188 22.343v53.968a2.406 2.406 0 01-2.406 2.407H16.156a2.406 2.406 0 01-2.406-2.406v-53.97a2.406 2.406 0 012.406-2.405z",fill:"#000"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 19.25H86.28c.95 0 1.719.77 1.719 1.719v53.968c0 .95-.77 1.72-1.719 1.72H17.187c-.949 0-1.718-.77-1.718-1.72V20.97c0-.95.77-1.719 1.719-1.719z",fill:"#fff"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 24.968c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 29.093c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 56.031c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 60.156c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 66.344c0-.57.462-1.031 1.031-1.031h28.059a1.031 1.031 0 010 2.062H37.254c-.57 0-1.031-.462-1.031-1.031z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 70.469c0-.57.462-1.031 1.031-1.031h25.508a1.031 1.031 0 010 2.062H37.125c-.57 0-1.031-.462-1.031-1.031z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 35.406c0-.57.461-1.031 1.03-1.031h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 39.531c0-.57.461-1.031 1.03-1.031H70.54a1.031 1.031 0 010 2.063H48.47c-.57 0-1.032-.462-1.032-1.032z",fill:"#979797"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 45.719c0-.57.461-1.032 1.03-1.032h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.031z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 49.844c0-.57.461-1.032 1.03-1.032h25.509a1.031 1.031 0 010 2.063H48.469c-.57 0-1.032-.462-1.032-1.031z",fill:"#979797"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M31.802 37.125v-2.75h-.688V48.251h3.843v-.688h-3.155v-9.75h3.155v-.688h-3.155z",fill:"#2B98F0"}),l().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),l().createElement("path",{opacity:".6",fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 7.563h63.937c1.14 0 2.063.923 2.063 2.062v6.188c0 1.139-.924 2.062-2.063 2.062H17.187a2.062 2.062 0 01-2.062-2.063V9.625c0-1.14.923-2.063 2.063-2.063z",fill:"#fff"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M19.938 12.719c0-1.14.923-2.063 2.062-2.063h24.063a2.063 2.063 0 010 4.125H22a2.062 2.062 0 01-2.063-2.062zM50.875 12.719c0-1.14.923-2.063 2.063-2.063h3.437a2.063 2.063 0 010 4.125h-3.438a2.062 2.062 0 01-2.062-2.062z",fill:"#979797"}),l().createElement("path",{opacity:".2",d:"M37.687 66.48l8.942 8.309v.958l19.925 19.702 31.064-.552 7.006-25.47-34.487-34.144-11.2.567c-3.238-1.86-5.34-3.02-6.306-3.48-.54-.258-.383 5.565-2.755 7.725-1.243 1.133-3.462 4.104-6.657 8.914l-5.532 17.47z",fill:"url(#paint2_linear_3488_11934)"}),l().createElement("g",{filter:"url(#filter0_d_3488_11934)",fillRule:"evenodd",clipRule:"evenodd"},l().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312a18.719 18.719 0 014.236 4.554l4.28-.699a23.425 23.425 0 012.392 6.47l-3.639 2.443c.262 2.058.2 4.18-.216 6.285l3.466 2.572a24.254 24.254 0 01-2.838 6.375l-4.231-.855a19.61 19.61 0 01-4.526 4.366l.62 4.34a23.426 23.426 0 01-6.409 2.551l-2.345-3.649a18.72 18.72 0 01-6.219-.1l-2.593 3.564a22.7 22.7 0 01-6.224-2.757l.912-4.304a18.715 18.715 0 01-4.281-4.567l-4.285.7a23.424 23.424 0 01-2.4-6.438l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14zM60.075 49.74c-2.804-1.248-6.112.064-7.388 2.93-1.276 2.867-.038 6.203 2.766 7.452 2.804 1.248 6.112-.064 7.388-2.93 1.276-2.867.038-6.203-2.766-7.452z",fill:"#6B93AC"}),l().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312c.779.597 1.503 1.25 2.168 1.95l-10.07 9.392a5.444 5.444 0 00-1.491-.983c-2.804-1.248-6.112.064-7.388 2.93a5.7 5.7 0 00.626 5.749l-10.071 9.39c-.502-.585-.965-1.2-1.39-1.84l-4.284.7a23.424 23.424 0 01-2.4-6.437l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14z",fill:"#7CA6BF"}),l().createElement("path",{d:"M62.886 42.644c6.409 2.854 9.24 10.479 6.322 17.03-2.917 6.553-10.478 9.552-16.887 6.698-6.409-2.853-9.24-10.478-6.322-17.03 2.917-6.553 10.478-9.551 16.887-6.698zm-1.32 2.966c-4.808-2.14-10.478.109-12.666 5.023-2.188 4.914-.065 10.633 4.742 12.773 4.806 2.14 10.477-.108 12.665-5.023 2.188-4.914.065-10.633-4.742-12.773z",fill:"#AAC4D5"}),l().createElement("path",{d:"M62.886 42.644a12.424 12.424 0 014.22 3.075l-2.366 2.207a9.317 9.317 0 00-3.175-2.316c-4.807-2.14-10.477.109-12.665 5.023-1.635 3.673-.863 7.795 1.638 10.536l-2.367 2.208c-3.325-3.656-4.35-9.145-2.172-14.035 2.917-6.553 10.478-9.551 16.887-6.698z",fill:"#CBDDE9"}))),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3488_11934",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3488_11934",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopOpacity:".01"}),l().createElement("stop",{offset:"1"})),l().createElement("linearGradient",{id:"paint2_linear_3488_11934",x1:"86.975",y1:"77.519",x2:"49.809",y2:"46.968",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#90A4AE",stopOpacity:"0"}),l().createElement("stop",{offset:"1",stopOpacity:".75"})),l().createElement("filter",{id:"filter0_d_3488_11934",x:"32.168",y:"30.067",width:"53.209",height:"53.716",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l().createElement("feOffset",{dx:"1",dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"2"}),l().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3488_11934"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3488_11934",result:"shape"}))))};let Ba;!function(e){e.DVF_NOT_CONFIGURE="dvfNotConfigured",e.DATA_VALID="dataValid",e.PERMISSION_DENIED="permissionDenied"}(Ba||(Ba={}));const Va=e=>{let{chartType:t,title:r,infoTooltipTitle:a,titleChildren:n,dvfConfigLink:i,config:o}=e;const c=ja();let s,u,d;switch(t){case Ba.DVF_NOT_CONFIGURE:s=l().createElement(za,null),u=f().text("If we spot any validation issues, we’ll display them here."),d=l().createElement(l().Fragment,null,l().createElement(Ma.Z,{href:i,target:"_blank",component:i?"a":"span",color:i?"primary":"inherit",underline:i?"hover":"none","data-reltio-id":"reltio-dq-dashboard-define-dvf-link"},f().text("Define some data validation functions"))," ",f().text("for this attribute (or ask your Tenant Admin)."));break;case Ba.DATA_VALID:s=l().createElement(Fa,null),u=f().text("We didn’t spot any validation issues for this attribute type.\nYou can kick back and enjoy a cold one."),d=f().text("Nice one!");break;case Ba.PERMISSION_DENIED:s=l().createElement(y.B9.ERROR,null),u=f().text("Please contact your Tenant Admin to change permissions"),d=f().text("You don’t currently have permission to view this page")}return l().createElement(Er,{config:o},l().createElement(fr,{title:r,infoTooltipTitle:a},n),l().createElement(hr.Z,{className:c.viewContent},l().createElement("div",{className:c.container},s,d&&l().createElement(At.Z,{className:c.noDataTitle},d),u&&l().createElement(At.Z,{className:c.noDataMessage},u))))},Ha=e=>{const t=ja(),{config:r}=e,{dvfs:n,dvfConfigLink:i}=(0,a.useContext)(S),{data:o,state:s,reload:u,errorCode:p}=n,m=(0,a.useContext)(T).uri,h=(0,a.useContext)(R),y=h.uri,g=((e,t)=>(e||[]).filter((0,d.propEq)("attribute",t)))(o,m).filter((e=>e.status===c.lVm.ACTIVE)),{data:v,state:b,reload:E}=Or((e=>(0,d.pipe)(ra("dataValidationFunctions"),la(e)))(g)),x=(0,a.useMemo)((()=>[h]),[h]),O=(0,a.useMemo)((()=>g.map((e=>e.uri))),[g]),w=(e=>{let{entityTypeUri:t,dvfUris:r}=e;const[l,n]=(0,a.useState)(null),i=(0,A._)();return(0,a.useEffect)((()=>{const e=[{fieldName:"type",filter:c.j5E.EQUALS,values:[t]},{fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",filter:c.j5E.EQUALS,values:r}];i((0,c.j_Q)(e)).then((e=>{let{total:t}=e;return n(t)})).catch((()=>n(null)))}),[t,r]),l})({entityTypeUri:y,dvfUris:O}),N=C(x)(y),D=wr(pa),L=(0,a.useMemo)((()=>s===I.o.LOADED&&b===I.o.LOADED?I.o.LOADED:s===I.o.ERROR||b===I.o.ERROR?I.o.ERROR:I.o.LOADING),[b,s]),P=(0,a.useMemo)((()=>()=>{s===I.o.ERROR&&u(),b===I.o.ERROR&&E()}),[b,s,u,E]),_=p===c.Xt7.ACCESS_DENIED,j=p===c.Xt7.DVF_NOT_CONFIGURED||0===(null==g?void 0:g.length)&&!_,M=L===I.o.LOADED&&(null==g?void 0:g.length)>0&&0===v.length,k=!(L===I.o.ERROR&&p!==c.Xt7.DVF_NOT_CONFIGURED)&&!j&&L!==I.o.LOADING&&l().createElement(K.C,{value:r.title},l().createElement(At.Z,{className:t.titleCount},(e=>{let{isDataValid:t,totalProfiles:r,invalidProfiles:a}=e;return t?f().text("0 profiles"):(0,d.isNil)(a)?"":`${(0,c.k7L)(a)} (${Math.round(a/r*100)}%) ${1!==a?f().text("profiles"):f().text("profile")}`})({isDataValid:M,totalProfiles:N,invalidProfiles:w}))),F=[f().text("Validation function"),f().text("Profiles")],U=`(${v.length})`,z=l().createElement(tt,{title:f().text("Profiles with invalid data"),data:[{value:f().text("Shows the number of profiles that violate active validation functions")}],DataRenderer:xr});return j||M||_?l().createElement(Va,{config:r,chartType:j?Ba.DVF_NOT_CONFIGURE:M?Ba.DATA_VALID:_?Ba.PERMISSION_DENIED:void 0,title:f().text(r.title),infoTooltipTitle:z,titleChildren:k,dvfConfigLink:i}):l().createElement(_a,{config:r,title:f().text(r.title),headers:F,data:v,onItemClick:D,titleChildren:k,state:L,onRefresh:P,customComparator:aa,infoTooltipTitle:z,сountLabel:U})},Za=(0,de.Z)((()=>({monoFontCell:{fontFamily:'"Roboto Mono", monospace'}}))),Wa=e=>{let{config:t}=e;const r=Za(),{data:n,state:i,reload:o}=Or(na),s=(0,a.useContext)(T).type,d=(0,c.Lt4)(s)?((e,t)=>{const r=t===c.oS0.TYPE_TIMESTAMP?"L LTS":"L";return e.map((e=>L({},e,{label:f().date(Number(e.label),r)})))})(n,s):n,p=wr(da),m=[f().text("Value"),f().text("Count")],h=ma(n),y=l().createElement(tt,{title:f().text("Frequency analysis"),data:[{value:f().text("Shows the number of times each value occurs")}],DataRenderer:xr});return l().createElement(_a,{config:t,data:d,headers:m,title:t.title,infoTooltipTitle:y,onItemClick:p,state:i,onRefresh:o,labelCellClassName:u()({[r.monoFontCell]:(0,c.m6e)(s)}),сountLabel:h})};function Ya(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Ga(e,t,r[t])}))}return e}function Ga(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $a,qa;!function(e){e[e.sun=0]="sun",e[e.mon=1]="mon",e[e.tue=2]="tue",e[e.wed=3]="wed",e[e.thu=4]="thu",e[e.fri=5]="fri",e[e.sat=6]="sat"}($a||($a={})),function(e){e[e.jan=0]="jan",e[e.feb=1]="feb",e[e.mar=2]="mar",e[e.apr=3]="apr",e[e.may=4]="may",e[e.jun=5]="jun",e[e.jul=6]="jul",e[e.aug=7]="aug",e[e.sep=8]="sep",e[e.oct=9]="oct",e[e.nov=10]="nov",e[e.dec=11]="dec"}(qa||(qa={}));const Qa=e=>(0,d.pipe)((0,d.pathOr)({},[e,"data"]),Object.entries,(0,d.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),_);var Ka;!function(e){e.AVERAGE="avg",e.MININMUN="min",e.MAXIMUM="max",e.MEDIAN="median",e.NUMBER_OF_SOURCES="numberOfSources",e.MIN_NUMBER_OF_PROFILES="minNumberOfProfiles",e.MAX_NUMBER_OF_PROFILES="maxNumberOfProfiles",e.AVG_NUMBER_OF_PROFILES="avgNumberOfProfiles"}(Ka||(Ka={}));const Xa=(e,t)=>{const r={lengthStatistics:{[Ka.MEDIAN]:f().text("Median"),[Ka.AVERAGE]:f().text("Average"),[Ka.MININMUN]:f().text("Minimum"),[Ka.MAXIMUM]:f().text("Maximum")},valueDistribution:{[Ka.MEDIAN]:f().text("Median"),[Ka.AVERAGE]:f().text("Average"),[Ka.MININMUN]:f().text("Minimum"),[Ka.MAXIMUM]:f().text("Maximum")},crosswalkAnalysis:{[Ka.NUMBER_OF_SOURCES]:f().text("No. of source systems"),[Ka.AVG_NUMBER_OF_PROFILES]:f().text("Avg no. of profiles"),[Ka.MIN_NUMBER_OF_PROFILES]:f().text("Min no. of profiles"),[Ka.MAX_NUMBER_OF_PROFILES]:f().text("Max no. of profiles")}};return(0,d.pathOr)(null,[t,e],r)},Ja=e=>(0,d.pipe)((0,d.propOr)({},e),Object.entries,(0,d.map)((t=>{let[r,a]=t;return{label:Xa(r,e),value:a}})),(0,d.filter)((e=>{let{label:t}=e;return t})),_),el=e=>t=>({chartData:Qa(e)(t),infoPanelData:Ja(e)(t)}),tl=(e,t)=>(0,c.Lt4)(t)?f().date(Number(e),"L"):f().number(e),rl=(0,d.curry)(((e,t)=>{const r=(0,d.pipe)((0,d.prop)("group"),(0,d.split)(" "),d.head,Number),a=t.chartData.sort((0,d.ascend)(r)).map(((r,a)=>{const[l,n=l]=r.group.split(" ").map(Number),i=a===t.chartData.length-1,o=l!==n?((e,t,r)=>Le(t)?`[${e}${r?"]":")"}`:e)(`${tl(l,e)} - ${tl(n,e)}`,e,i):tl(l,e);return Ya({},r,{label:o,group:[l,n,i?"last":""].toString()})}));return{infoPanelData:t.infoPanelData.map((t=>Ya({},t,{value:(0,c.Lt4)(e)?f().date(Number(t.value),"L"):(0,c.k7L)(t.value,999),localizedValue:(0,c.Lt4)(e)?f().date(Number(t.value),"L"):t.localizedValue}))),chartData:a}})),al=(0,d.pipe)(el("lengthStatistics"),rl("")),ll=(0,d.pipe)(el("crosswalkAnalysis"),(0,d.applySpec)({chartData:(0,d.prop)("chartData"),infoPanelData:(0,d.pipe)((0,d.prop)("infoPanelData"),(0,d.map)((e=>(0,d.assoc)("value",(0,c.k7L)(e.value,999),e))))})),nl=el("monthDistribution"),il=el("dayOfWeekDistribution"),ol=el("dayOfMonthDistribution"),cl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return ea({fieldName:`${r.fieldName}.day_of_week`,value:$a[t.toLowerCase()],entityTypeUri:a})})),sl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return ea({fieldName:`${r.fieldName}.month`,value:qa[t.toLowerCase()],entityTypeUri:a})})),ul=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return ea({fieldName:`${r.fieldName}.day_of_month`,value:t,entityTypeUri:a})})),dl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;const[l,n]=t.split(",");return l===n?ea({fieldName:`${r.fieldName}.length`,value:l,entityTypeUri:a}):(e=>{let{fieldName:t,startRange:r,endRange:a,entityTypeUri:l}=e;return Jr({keyword:`${c.j5E.IN_RANGE}(${t}, ${r}, ${a})`,entityTypeUri:l})})({fieldName:`${r.fieldName}.length`,startRange:l,endRange:n,entityTypeUri:a})})),pl=(0,d.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return ea({fieldName:`${r.fieldName}.crosswalk_sources`,value:t,entityTypeUri:a})})),fl=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l]=t.split(",");return[{filter:c.j5E.AFTER,values:[a],fieldName:r},{filter:c.j5E.BEFORE,values:[l],fieldName:r}]})),ml=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l]=t.split(",");return[a===l?{filter:c.j5E.EQUALS,values:[[a]],fieldName:r}:{filter:c.j5E.IN_RANGE,values:[[a,l]],fieldName:r}]})),hl=(0,d.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l,n]=t.split(","),i=a===l,o=i?[{filter:c.j5E.EQUALS,values:[[a]],fieldName:r}]:[{filter:c.j5E.IN_RANGE,values:[[a,l]],fieldName:r}];return!n&&!i&&o.push({filter:c.j5E.NOT_EQUALS,values:[[l]],fieldName:r}),o})),yl=(0,d.cond)([[c.Lt4,(0,d.always)(F(fl))],[Le,(0,d.always)(F(hl))],[d.identity,(0,d.always)(F(ml))]]);function gl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){vl(e,t,r[t])}))}return e}function vl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const bl=(0,de.Z)((e=>({tooltipWrapper:gl({},e.tooltip,{padding:"4px 8px"})}))),El=e=>{var t;let{payload:r,active:a,name:n}=e;const i=null==r||null===(t=r[0])||void 0===t?void 0:t.payload,o=null==i?void 0:i.value,c=null==i?void 0:i.label,s=n?`${n}`:"",u=bl();return a&&l().createElement("div",{className:u.tooltipWrapper},l().createElement(tt,{data:[{label:s,value:c},{label:f().text("No of profiles"),value:f().number(o)}]}))},xl=(0,de.Z)((()=>({chartInfoLabel:{fontSize:"13px",lineHeight:"15px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},chartInfoValue:{fontSize:"13px",lineHeight:"15px",color:"rgba(0, 0, 0, 0.87)"},chartInfoWrapper:{display:"flex",backgroundColor:"rgba(0, 0, 0, 0.05)",margin:"0 12px 12px",padding:"9px 12px 8px"},chartInfoItem:{marginRight:"16px"},clickable:{cursor:"pointer"},title:{marginRight:"50px",fontSize:"16px"},root:{padding:"0 0 0 16px",minHeight:"auto",marginTop:"12px",marginBottom:"12px"}}))),Ol=e=>{let{data:t}=e;const r=xl();return l().createElement("div",{className:r.chartInfoWrapper},t.map((e=>{let{label:t,value:a,localizedValue:n}=e;return l().createElement("div",{key:t,className:r.chartInfoItem},l().createElement("span",{className:r.chartInfoLabel},t,": "),a!==n?l().createElement(Ce.ZP,{title:n},l().createElement("span",{className:r.chartInfoValue},a)):l().createElement("span",{className:r.chartInfoValue},a))})))},wl=(0,de.Z)((()=>({labelWrapper:e=>{let{width:t}=e;return{overflow:"hidden",width:`${t}px`,marginTop:"-3px"}},xAxisLabel:{textAlign:"center",whiteSpace:"nowrap",textTransform:"capitalize","&:after":{top:"0",right:"0",width:"10px",height:"100%",content:'""',position:"absolute",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}}}))),Nl=e=>{let{width:t,height:r,label:a,x:n,y:i}=e;const o=wl({width:t}),c=n-t/2;return l().createElement("foreignObject",{x:c,y:i,width:t,height:r},l().createElement("div",{className:o.labelWrapper},l().createElement(K.C,{value:a},l().createElement("div",{className:o.xAxisLabel},a))))},Tl=e=>{const{x:t,y:r,width:a,height:n,payload:i,visibleTicksCount:o}=e,{value:c}=i,s=a/o-4;return l().createElement(Nl,{width:s,height:n,label:c,x:t,y:r})};function Sl(){return Sl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Sl.apply(this,arguments)}const Rl=e=>{let{isClickable:t}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["isClickable"]);const a=xl(),n=t?a.clickable:void 0;return l().createElement(Qt.Ae,Sl({},r,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},Il=e=>{const{value:t}=e;return t>0?l().createElement(Qt.Ae,e):null};function Al(){return Al=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Al.apply(this,arguments)}const Cl=e=>{let{data:t,config:r,xAxisLabel:a,yAxisLabel:n,barTooltipTitle:i,infoPanelData:o,infoTooltipTitle:s,onItemClick:u,options:d={},state:p,onRefresh:f}=e;const m=xl(),{title:h}=r,{cartesianGrid:y,bar:g,xAxis:v,yAxis:b,labelForX:E,labelForY:x,barChart:O}=(e=>{let{showCategories:t=!1,interval:r,barCategoryGap:a}=e;return{barChart:{barCategoryGap:a||"10%"},bar:{dataKey:"value",fill:"#0072CE",minPointSize:3,maxBarSize:50},xAxis:{tick:t&&Tl,tickLine:!1,interval:r||0,dataKey:"label"},yAxis:{tickCount:8,axisLine:!1,tickLine:!1,tick:{fill:"#000"},width:60,tickFormatter:e=>(0,c.k7L)(e,999)},cartesianGrid:{stroke:"#000",strokeOpacity:"0.05",vertical:!1},labelForX:{position:"insideBottom",style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"},offset:t?-3:3},labelForY:{angle:270,position:"left",offset:-3,style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"}}}})(d),w=u&&(e=>{let{activePayload:t}=e;return u(t[0].payload.group)}),N=w?m.clickable:void 0,T=p===I.o.LOADED&&o.length>0;return l().createElement(Er,{config:r},l().createElement(fr,{title:h,infoTooltipTitle:s}),T&&l().createElement(Ol,{data:o}),l().createElement(gr,{data:t,loadingState:p,onRefresh:f},(e=>{let{data:t,width:r=0,height:o=0}=e;return l().createElement("div",null,l().createElement(Qt.vz,Al({width:r,height:o,data:t,onClick:w},O),l().createElement(Qt.q3,y),l().createElement(Qt.u,{content:l().createElement(El,{name:i}),cursor:l().createElement(Rl,{isClickable:!!w})}),l().createElement(Qt.$Q,Al({},g,{shape:l().createElement(Il,{className:N})})),l().createElement(Qt.B2,b,l().createElement(Qt.__,Al({},x,{value:n}))),l().createElement(Qt.Kc,v,l().createElement(Qt.__,Al({},E,{value:a})))))})))},Dl=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=Or(al),{chartData:i,infoPanelData:o}=r,c=wr(dl),s=l().createElement(tt,{title:f().text("Length statistics"),data:[{value:f().text("Measures the string length of values")}],DataRenderer:xr});return l().createElement(Cl,{config:t,data:i,xAxisLabel:f().text("Length of values"),yAxisLabel:f().text("No. of profiles"),infoPanelData:o,barTooltipTitle:f().text("Length"),infoTooltipTitle:s,onItemClick:c,state:a,onRefresh:n})};var Ll=r(21210);const Pl=(0,de.Z)({icon:{width:"20px",height:"20px",borderRadius:"4px",fontSize:"14px",marginRight:"8px"},text:e=>{let{color:t}=e;return{backgroundColor:t}}}),_l=e=>{let{chartData:t}=e;const{group:r,label:a}=t,n=Pl({color:(0,c.kW2)(r)});return l().createElement(l().Fragment,null,l().createElement(Ll.Z,{sourceType:r,className:n.icon,classes:{textRoot:n.text}}),a)};function jl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Ml(e,t,r[t])}))}return e}function Ml(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kl=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=Or(ll),{chartData:i}=r,o=wr(pl),c=[f().text("Source system"),f().text("Profiles")],s=l().createElement(tt,{title:f().text("Source system analysis"),data:[{value:f().text("Distribution of source systems contributing to profiles")}],DataRenderer:xr}),u=`(${i.length})`;return l().createElement(_a,{config:jl({},t),data:i,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:a,onRefresh:n,customComparator:aa,сountLabel:u,LabelRenderer:_l})},Fl=e=>{let{config:t}=e;const r=(0,a.useContext)(T).type,{data:n,state:i,reload:o}=Or((e=>(0,d.pipe)(el("valueDistribution"),rl(e)))(r)),{chartData:c,infoPanelData:s}=n,u=wr(yl(r));return l().createElement(Cl,{config:t,data:c,xAxisLabel:f().text("Value"),yAxisLabel:f().text("No. of profiles"),infoPanelData:s,barTooltipTitle:f().text("Value"),onItemClick:u,state:i,onRefresh:o})},Ul=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=Or(nl),{chartData:i,infoPanelData:o}=r,c=wr(sl);return l().createElement(Cl,{config:t,data:i,xAxisLabel:f().text("Months of the year"),yAxisLabel:f().text("No. of profiles"),infoPanelData:o,barTooltipTitle:f().text("Months of the year"),options:{showCategories:!0,barCategoryGap:"20%",interval:"preserveStartEnd"},onItemClick:c,state:a,onRefresh:n})},zl=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=Or(il),{chartData:i,infoPanelData:o}=r,c=wr(cl);return l().createElement(Cl,{config:t,data:i,xAxisLabel:f().text("Days of the week"),yAxisLabel:f().text("No. of profiles"),infoPanelData:o,barTooltipTitle:f().text("Days of the week"),options:{showCategories:!0,barCategoryGap:"25%",interval:"preserveStartEnd"},onItemClick:c,state:a,onRefresh:n})},Bl=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=Or(ol),{chartData:i,infoPanelData:o}=r,c=wr(ul);return l().createElement(Cl,{config:t,data:i,xAxisLabel:f().text("Days of the month"),yAxisLabel:f().text("No. of profiles"),infoPanelData:o,barTooltipTitle:f().text("Days of the month"),options:{showCategories:!0,interval:1},onItemClick:c,state:a,onRefresh:n})},Vl=e=>{let{config:t}=e;const r=Za(),{data:a,state:n,reload:i}=Or(ia),o=wr(fa),c=[f().text("Value"),f().text("Count")],s=l().createElement(tt,{title:f().text("Pattern analysis"),data:[]}),u=ma(a);return l().createElement(_a,{config:t,data:a,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:n,onRefresh:i,labelCellClassName:r.monoFontCell,сountLabel:u})};function Hl(){return Hl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Hl.apply(this,arguments)}class Zl{}Zl.getComponent=e=>{let{type:t,config:r,isFullscreen:a,onToggleFullscreen:n}=e;const i={config:r,isFullscreen:a,onToggleFullscreen:n};switch(t){case v.FILL_RATE_CHART:return l().createElement(Nr,i);case v.UNIQUENESS_CHART:return l().createElement(Dr,i);case v.SUMMARY:return l().createElement(Yr,i);case v.VALIDATION:return l().createElement(Ha,i);case v.FREQUENCY:return l().createElement(Wa,i);case v.LENGTH:return l().createElement(Dl,i);case v.CROSSWALK:return l().createElement(kl,i);case v.VALUE_DISTRIBUTION:return l().createElement(Fl,i);case v.MONTH_DISTRIBUTION:return l().createElement(Ul,i);case v.DAY_OF_WEEK_DISTRIBUTION:return l().createElement(zl,i);case v.DAY_OF_MONTH_DISTRIBUTION:return l().createElement(Bl,i);case v.PATTERN:return l().createElement(Vl,i);default:return l().createElement(Xr,Hl({},i,{errorData:{message:f().text("Chart isn't supported for this data type")}}))}};const Wl=Zl,Yl=e=>{let{layoutItemConfig:t,views:r,onToggleFullscreen:a,isFullscreen:n,className:i,children:o,style:c}=e;const s=r.find((e=>{let{id:r}=e;return t.i===r}));if(!s)return null;const{type:u}=s;return l().createElement("div",{style:c,className:i},Wl.getComponent({type:u,config:s,onToggleFullscreen:a,isFullscreen:n}),o)},Gl=(0,de.Z)({root:{overflow:"auto",backgroundColor:"#F9F9F9",height:"100%",flexGrow:1,padding:"4px"}}),$l=(0,d.map)((0,d.assoc)("isStatic",!0)),ql={cols:4,rowHeight:10,margin:[12,12]},Ql=(0,a.memo)((e=>{let{views:t,layout:r,layoutOptions:n=ql}=e;const i=Gl(),o=(0,a.useMemo)((()=>$l(r)),[r]);return l().createElement("div",{className:i.root},l().createElement(qt.Z,{LayoutItem:Yl,views:t,layout:o,layoutOptions:n}))})),Kl=(0,de.Z)((e=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowX:"hidden",overflowY:"auto",fontFamily:"Roboto, Helvetica, Arial, sans-serif",display:"flex",flexDirection:"column"},content:{display:"flex",flexGrow:1,overflow:"hidden"},additionalLabel:{color:e.palette.text.secondary,marginLeft:"10px"},entityLevelButton:{height:"48px",padding:"0 16px",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",borderRight:"1px solid rgba(0, 0, 0, 0.1)",fontSize:"16px",lineHeight:"48px",color:"rgba(0, 0, 0, 0.87)",cursor:"pointer"},selectedButton:{background:"#F0F7FC"},wrapper:{display:"flex",flexDirection:"column"}})));function Xl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Jl=(0,d.path)([0,"uri"]),en=e=>{var t,r,i,o,s;let{config:p,saveState:D,getSavedState:L}=e;const P=Kl(),_=(()=>{const e=(0,n.useSelector)(g.ZP.selectors.getMetadata);return(0,a.useMemo)((()=>e.entityTypes.filter(c.oDv)),[e.entityTypes])})(),[j,M]=(0,a.useState)(),k=_&&j?(0,c.nt9)({entityTypes:_},j):null,F=C(_),[z,B]=(0,a.useState)(null),{isLoaded:H,savedState:Z}=(0,m.a)(L),W=(0,n.useSelector)(g.ZP.selectors.getCanUserGetDQStatistic),[Y,G]=(0,a.useState)(),$=(e=>{const[t,r]=(0,a.useState)(null),[l,i]=(0,a.useState)(null),o=(0,A._)(),s=(0,n.useSelector)(g.ZP.selectors.getUIPath),u=(0,n.useSelector)(g.ZP.selectors.getEnvironment),p=(0,n.useSelector)(g.ZP.selectors.getTenant);return(0,a.useEffect)((()=>{o((0,c.f_2)({uiPath:s,tenant:p,environment:u,options:{method:"GET"}})).then((e=>{var t;const a=null==e||null===(t=e.data)||void 0===t?void 0:t.apps.find((0,d.propEq)("name","Console")).uri;r(a)})).catch((()=>r(null)))}),[u,p,s]),(0,a.useEffect)((()=>{const r=t&&null!=e&&e.uri?(0,d.pipe)((0,d.split)("?"),(0,d.insert)(1,`datamodeler/entityDetails/${(0,c.nIW)(e.uri)}/validation?`),(0,d.join)(""))(t):null;i(r)}),[e,t]),l})(k),q=(e=>{const[t,r]=(0,a.useState)(null),[l,i]=(0,a.useState)(I.o.INIT),[o,s]=(0,a.useState)(),u=(0,n.useSelector)(g.ZP.selectors.getTenant),d=(0,n.useSelector)(g.ZP.selectors.getDVFPath),p=(0,A._)(),f=(0,n.useSelector)(g.ZP.selectors.getEnvironment),m=e=>{console.error(e),i(I.o.ERROR),r([]),s(null==e?void 0:e.errorCode)},h=e=>{r(e.functions),s(void 0),i(I.o.LOADED)},y=(0,a.useCallback)((()=>{if(e&&f)return i(I.o.LOADING),p((0,c.HaQ)({dvfPath:d,tenant:u,entityTypeUri:e,env:f})).then(h).catch(m)}),[d,u,e,f]);return(0,a.useEffect)((()=>{y()}),[y]),{data:t,state:l,reload:y,errorCode:o}})(null==k?void 0:k.uri),Q={dvfs:q,dvfConfigLink:$},K=(0,a.useRef)();(0,a.useEffect)((()=>{K.current=Z}),[Z]);const X=(e=>{let{entityType:t,detailedAttributeType:r,dataLevel:l}=e;const[n,i]=(0,a.useState)(I.o.INIT),[o,s]=(0,a.useState)({}),u=null==r?void 0:r.fieldName,d=null==t?void 0:t.uri,p=(0,A._)(),f=e=>{console.error(e),i(I.o.ERROR),s({})},m=(0,a.useCallback)((async()=>{if(i(I.o.LOADING),l===E.ENTITY_TYPE){var e,a;const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:[d]}]),r=await(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.ACTIVE_ONLY,filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}),l=await(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.INACTIVE_ONLY,filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]});return s({summary:{inactiveProfiles:null===(e=l.type)||void 0===e?void 0:e[(0,c.nIW)(d)],activeProfiles:null===(a=r.type)||void 0===a?void 0:a[(0,c.nIW)(d)],sourceSystems:8}}),void i(I.o.LOADED)}if(t&&r)return p((0,c.TTx)({entityTypeUri:d,attributeFieldName:u})).then((e=>{s(e),i(I.o.LOADED)})).catch(f)}),[i,s,u,d]),h=(0,a.useCallback)((()=>{try{m()}catch(e){f(e)}}),[m]);return(0,a.useEffect)((()=>{h()}),[h]),{data:o,state:n,reload:h}})({entityType:k,detailedAttributeType:z,dataLevel:Y}),J=_.map(((e,t)=>{let{label:r,uri:a}=e;return{label:r,value:a,additionalLabel:l().createElement("span",{className:P.additionalLabel},"(",(0,c.k7L)(F(a),999),")"),dataReltioId:`reltio-dq-dashboard-entity-tab-${t}`}})),ee=(0,a.useCallback)((e=>{if((null==k?void 0:k.uri)!==e){B(null),M(e);const t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Xl(e,t,r[t])}))}return e}({dataLevel:Y,entityTypeUri:e},K.current&&{filterOptions:K.current.filterOptions,filterText:K.current.filterText,fieldName:K.current.fieldName});D(t),K.current=t}}),[null==k?void 0:k.uri]),te=(null===(t=p.layoutsByDataLevel)||void 0===t?void 0:t[E.ENTITY_TYPE])||O[E.ENTITY_TYPE],re=null===(r=p.layoutsByDataLevel)||void 0===r?void 0:r[E.ATTRIBUTE_TYPE],ae=(0,a.useMemo)((()=>Y===E.ENTITY_TYPE&&te?te:((e,t)=>{const r=U(t),a=(0,d.mergeLeft)(e,O[E.ATTRIBUTE_TYPE]);return a[r]||a.default||[]})(re,null==z?void 0:z.type)),[te,null==z?void 0:z.type,re,Y]),le=(0,a.useMemo)((()=>((e,t,r,a)=>{const l=(0,d.uniqBy)((0,d.prop)("id"),(0,d.concat)((null==e?void 0:e[a])||[],x[a]||[])),n=(e=>{switch(e){case E.ATTRIBUTE_TYPE:return(e=>{switch(e){case b.INTEGER:case b.FLOAT:return[v.SUMMARY,v.CROSSWALK,v.VALIDATION,v.FILL_RATE_CHART,v.FREQUENCY,v.UNIQUENESS_CHART,v.VALUE_DISTRIBUTION];case b.BOOLEAN:return[v.SUMMARY,v.CROSSWALK,v.VALIDATION,v.FILL_RATE_CHART,v.FREQUENCY];case b.STRING:return[v.LENGTH,v.SUMMARY,v.CROSSWALK,v.VALIDATION,v.FILL_RATE_CHART,v.FREQUENCY,v.UNIQUENESS_CHART];case b.DATE:return[v.SUMMARY,v.CROSSWALK,v.VALIDATION,v.FILL_RATE_CHART,v.FREQUENCY,v.UNIQUENESS_CHART,v.VALUE_DISTRIBUTION,v.MONTH_DISTRIBUTION,v.DAY_OF_MONTH_DISTRIBUTION,v.DAY_OF_WEEK_DISTRIBUTION];case b.SSN:return[v.SUMMARY,v.CROSSWALK,v.VALIDATION,v.FILL_RATE_CHART,v.FREQUENCY,v.UNIQUENESS_CHART,v.PATTERN];case b.UNKNOWN:return[v.SUMMARY,v.CROSSWALK,v.VALIDATION,v.FILL_RATE_CHART,v.FREQUENCY,v.UNIQUENESS_CHART,v.LENGTH];default:return[]}})(U(t));case E.ENTITY_TYPE:return[v.SUMMARY];default:return[]}})(a);return r.reduce(((e,t)=>{const r=(0,d.prop)("type",e.find((0,d.propEq)("id",t.id)));if(!n.includes(r)){const r=e.findIndex((0,d.propEq)("id",t.id));if(-1!==r)return(0,d.adjust)(r,(0,d.assoc)("type",v.UNSUPPORTED),e)}return e}),l)})(p.viewsByDataLevel,null==z?void 0:z.type,ae,Y)),[null==z?void 0:z.type,ae,Y]);(0,a.useEffect)((()=>{H&&(M(Z.entityTypeUri||Jl(_)),G(te?Z.dataLevel||E.ENTITY_TYPE:E.ATTRIBUTE_TYPE))}),[H]);const ne=k&&W&&H&&!!F(j);return l().createElement("div",{className:P.perspectiveView},l().createElement($t,{title:f().text("Data Quality")},k&&l().createElement(h.Z,{value:k.uri,tabs:J,onChange:ee,scrollButtons:"auto"})),l().createElement("div",{className:P.content},ne&&l().createElement(l().Fragment,null,l().createElement(w.Provider,{value:X},l().createElement(S.Provider,{value:Q},l().createElement("div",{className:P.wrapper},te&&l().createElement("div",{className:u()(P.entityLevelButton,{[P.selectedButton]:Y===E.ENTITY_TYPE}),onClick:()=>{B(null),G(E.ENTITY_TYPE)}},`${k.label} ${f().text("summary")}`),l().createElement(Vt,{entityType:k,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:r,filterOptions:a}=e;const l=null==t?void 0:t.fieldName,n={entityTypeUri:k.uri,fieldName:l,filterOptions:a,filterText:r,dataLevel:Y};(0,d.equals)(K.current,n)||(D(n),K.current=n),l&&G(E.ATTRIBUTE_TYPE),B(t)},defaultFieldName:null===(i=K.current)||void 0===i?void 0:i.fieldName,defaultFilterText:null===(o=K.current)||void 0===o?void 0:o.filterText,defaultFilterOptions:null===(s=K.current)||void 0===s?void 0:s.filterOptions,disableAttributeSelection:Y===E.ENTITY_TYPE})),(z||Y===E.ENTITY_TYPE)&&l().createElement(N.Provider,{value:Y},l().createElement(R.Provider,{value:k},l().createElement(T.Provider,{value:z},l().createElement(Ql,{views:le,layout:ae}))))))),!W&&l().createElement(Yt,{height:359,errorData:{title:f().text("You don’t currently have permission to view this page"),message:f().text(" Please contact your Tenant Admin to change permissions")},variant:V.LARGE}),H&&k&&!F(j)&&W&&l().createElement(zt,{height:359,data:{Icon:y.B9.NO_DATA,title:f().text("Give us something to go on!"),message:f().text("Go ahead and load some data. We’ll put it on the scales and\nlet you know here if it measures up.")},variant:V.LARGE})))};function tn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rn=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){tn(e,t,r[t])}))}return e}({},c.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}}),an=(0,i.Z)(rn),ln=(0,o.createGenerateClassName)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0}),nn=e=>{let{store:t,config:r,saveState:i,getSavedState:s}=e;const u=(0,a.useCallback)((0,c.aYu)(s),[s]);return l().createElement(n.Provider,{store:t},l().createElement(o.ThemeProvider,{theme:an},l().createElement(o.StylesProvider,{generateClassName:ln},l().createElement(en,{config:r,saveState:i,getSavedState:u}))))}},15115:(e,t,r)=>{t.Z=void 0;var a=m(r(72579)),l=m(r(54073)),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var n=a?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(r,l,n):r[l]=e[l]}return r.default=e,t&&t.set(e,r),r}(r(24328)),i=m(r(13980)),o=m(r(71153)),c=m(r(16805)),s=m(r(2630)),u=m(r(81819)),d=m(r(21853)),p=m(r(87685));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(f,e);var t,r,i=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var r,a=E(e);if(t()){var l=E(this).constructor;r=Reflect.construct(a,arguments,l)}else r=a.apply(this,arguments);return v(this,r)}}(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),x(b(t=i.call(this,e)),"emitChange",(0,l.default)((function(e){return t.props.onChange(e)}),200)),x(b(t),"handleChange",(function(e){var r=(0,a.default)(e,["target","value"]);t.setState({value:r}),t.emitChange(r)})),x(b(t),"handleFocus",(function(){return t.inputRef.current.focus()})),x(b(t),"handleOpen",(function(){t.props.forceOpen||t.setState({open:!0},t.handleFocus)})),x(b(t),"handleClose",(function(){t.props.forceOpen||t.setState({open:!1}),t.setState({value:""}),t.emitChange()})),t.state={open:Boolean(t.props.initialValue),value:t.props.initialValue||""},t.inputRef=n.default.createRef(),t}return t=f,(r=[{key:"render",value:function(){var e=this.state,t=e.open,r=e.value,a=this.props,l=a.classes,i=a.placeholder,f=a.forceOpen,m=t||f,h=t||f&&r;return n.default.createElement("div",{className:(0,o.default)(c.default.searchInputContainer,x({},c.default.colored,m),l.root)},n.default.createElement(s.default,{name:"expand-input-btn",onClick:this.handleOpen},n.default.createElement(d.default,null)),m&&n.default.createElement(u.default,{value:r,disableUnderline:!0,className:c.default.searchInputField,classes:{input:c.default.input},placeholder:i,onChange:this.handleChange,inputProps:{ref:this.inputRef}}),h&&n.default.createElement(s.default,{name:"collapse-input-btn",onClick:this.handleClose},n.default.createElement(p.default,null)))}}])&&y(t.prototype,r),f}(n.PureComponent);t.Z=O,O.defaultProps={classes:{},forceOpen:!1},O.propTypes={classes:i.default.shape({root:i.default.string}),placeholder:i.default.string,forceOpen:i.default.bool,onChange:i.default.func.isRequired,initialValue:i.default.string}},16805:(e,t,r)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(0,((a=r(86698))&&a.__esModule?a:{default:a}).default)("<style>.Form__searchInputContainer_3vqs6{display:flex;min-height:48px}.Form__searchInputField_3mnAi{flex:1 1 auto;padding:2px}.Form__input_3ulP-::-ms-clear{display:none}.Form__colored_2WMqk{background-color:#fafafa}</style>"),t.default={searchInputContainer:"Form__searchInputContainer_3vqs6",searchInputField:"Form__searchInputField_3mnAi",input:"Form__input_3ulP-",colored:"Form__colored_2WMqk"}}}]);