@reltio/remotes 1.4.994 → 1.4.996

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/6505.js +1 -1
  2. package/7825.js +1 -1
  3. package/package.json +1 -1
package/6505.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[6505],{81819:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r.Z});var r=a(29611)},98989:(e,t,a)=>{var r=a(14859);t.Z=void 0;var l=r(a(24328)),n=(0,r(a(50175)).default)(l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M10 17l5-5-5-5v10z"}),l.default.createElement("path",{fill:"none",d:"M0 24V0h24v24H0z"})),"ArrowRight");t.Z=n},82726:(e,t,a)=>{var r=a(14859);t.Z=void 0;var l=r(a(24328)),n=(0,r(a(50175)).default)(l.default.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.Z=n},43266:(e,t,a)=>{var r=a(14859);t.Z=void 0;var l=r(a(24328)),n=(0,r(a(50175)).default)(l.default.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");t.Z=n},21853:(e,t,a)=>{var r=a(14859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=r(a(24328)),n=(0,r(a(50175)).default)(l.default.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.default=n},82068:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(24328),l=a.n(r),n=a(71153),i=a.n(n);const o=(0,a(79692).Z)({"basic-view-content":{flex:"1 1 auto",padding:"0 24px 24px","&:first-child":{paddingTop:"24px"}}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},c.apply(this,arguments)}const s=e=>{let{children:t,className:a}=e,r=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["children","className"]);const n=o();return l().createElement("div",c({className:i()(n["basic-view-content"],a)},r),t)}},17822:(e,t,a)=>{a.d(t,{Z:()=>S});var r=a(13980),l=a.n(r),n=a(24328),i=a.n(n),o=a(66244),c=a.n(o),s=a(44443),u=a(17440),d=a(71153),p=a.n(d);function f(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}const m=e=>{let{x:t,y:a,width:r,height:l,id:n,minWidth:i,minHeight:o,maxWidth:c,maxHeight:s,isStatic:u}=e;return{x:t,y:a,w:r,h:l,minW:i,minH:o,maxW:c,maxH:s,i:n,static:u}},h=e=>{let{x:t,y:a,w:r,h:l,maxW:n,minW:i,minH:o,maxH:c,i:s}=e;return{x:t,y:a,width:r,height:l,minWidth:i,minHeight:o,maxWidth:n,maxHeight:c,id:s,isStatic:f(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},y=e=>(e||[]).map(h),g=(0,u.curry)(((e,t)=>(e||[]).find((0,u.propEq)("id",t)))),v=(0,u.curry)(((e,t,a)=>(0,u.mergeAll)([a,(0,u.pick)(e,t)]))),b=(0,u.curry)(((e,t,a)=>(a||[]).map((a=>(0,u.pipe)((0,u.prop)("id"),g(t),(0,u.defaultTo)({}),v(e,u.__,a))(a)))));var E=a(79692),x=a(27502);const O=(0,E.Z)((e=>({gridLayout:{position:"relative",width:"100%","& .react-grid-item":{"&.react-grid-placeholder":{background:"rgba(0, 0, 0, 0.03)",border:"2px dashed rgba(0, 0, 0, 0.3)",borderRadius:"3px",transitionDuration:"100ms",zIndex:7,userSelect:"none","& .react-resizable-handle":{display:"none"}},"&.static .react-resizable-handle":{display:"none"},"&.cssTransforms":{transitionProperty:"transform"},"&.resizing":{zIndex:9,willChange:"width, height",pointerEvents:"none"},"&.react-draggable-dragging":{transition:"none",zIndex:8,willChange:"transform","& .react-resizable-handle":{backgroundImage:"none"}},"& .react-resizable-handle":{position:"absolute",width:"17px",height:"17px",bottom:0,right:0,zIndex:20,backgroundImage:`url('${(0,x.m5F)('<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path stroke="#505050" stroke-opacity=".54" d="M9.5 0v10M0 9.5h9M7.5 4v4M4 7.5h3"/>\n</svg>')}')`,backgroundRepeat:"no-repeat",backgroundOrigin:"content-box",boxSizing:"border-box",cursor:"se-resize"},"&.fullscreen":{visibility:"visible",position:"unset",width:"100% !important",height:"100% !important",transform:"translate(0) !important"}}},gridFullscreen:{height:"100% !important",overflowY:"hidden","& .react-resizable-handle, & .react-grid-item":{visibility:"hidden"}}})));function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},w.apply(this,arguments)}function N(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const T=e=>{let{views:t,layout:a,layoutOptions:r,onLayoutChanged:l,draggableHandle:o,LayoutItem:d,onRemove:f,onDrop:v,droppingItem:E,isDroppable:x,classes:T}=e;const S=(0,n.useRef)(),R=O(),[I,C]=(0,n.useState)(null),[A,D]=(0,n.useState)(0),{cols:L,rowHeight:P,margin:_}=r,j=(0,n.useMemo)((()=>(e=>(e||[]).map(m))(a)),[a]),M=(0,u.pipe)(y,b(["autosizing"],a),l),k=(0,n.useCallback)((e=>C((t=>t?null:e))),[]),F=null!==I,U=(0,n.useCallback)(((e,t)=>{let n=!1;const i=a.map((a=>{if(a.id===t&&e){const t=((e,t)=>{const{margin:a,rowHeight:r}=t;return Math.ceil((e+a[1])/(r+a[1]))})(e,r);if(a.height!==t)return n=!0,function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){N(e,t,a[t])}))}return e}({},a,{minHeight:t,maxHeight:t,height:t})}return a}));n&&l(i)}),[a,r,l]);return i().createElement(i().Fragment,null,i().createElement(s.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>D(e)}),i().createElement(c(),{innerRef:S,layout:j,cols:L,draggableHandle:o,autoSize:!0,rowHeight:P,width:A,margin:_,onLayoutChange:M,isResizable:!F,isDraggable:!F,className:p()(R.gridLayout,{[R.gridFullscreen]:F}),onDrop:(e,t,a)=>{v&&v(y(e),h(t),a)},droppingItem:E,isDroppable:x},j.map((e=>{const r=I===e.i,l=(g(a,e.i)||{}).autosizing?{AutosizeComponent:(n=e.i,i().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>{U(t,n)}}))}:{};var n;return i().createElement(d,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:k,onRemove:f,className:p()({fullscreen:r},T.item),isFullscreen:r},l))}))))};T.defaultProps={layoutOptions:{cols:4,rowHeight:30,margin:[15,15]},onConfigChanged:u.identity,onLayoutChanged:u.identity,classes:{}},T.propTypes={views:l().array,layout:l().array,layoutOptions:l().object,onConfigChanged:l().func,onLayoutChanged:l().func,onDrop:l().func,onRemove:l().func,LayoutItem:l().elementType,draggableHandle:l().string,isDroppable:l().bool,droppingItem:l().object,classes:l().shape({item:l().string})};const S=(0,n.memo)(T)},21210:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(89810),l=a(27502),n=a(24328),i=a.n(n),o=a(52730),c=a(42639);const s=e=>{let{sourceType:t,className:a,classes:n}=e;const s=(0,o.useSelector)(r.ZP.selectors.getMetadata),{label:u,icon:d}=(0,l.PWK)(s,t);return i().createElement(c.Z,{className:a,avatarText:u[0],icon:d?(0,l.vPL)("https://s3.amazonaws.com/reltio.images/api",d):null,variant:"square",rootClasses:n})}},39878:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(24328),l=a.n(r),n=a(27502),i=a(17440);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},o.apply(this,arguments)}function c(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const s=e=>{const t=t=>{let{data:a}=t,s=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(t,["data"]);const u=(0,r.useMemo)((()=>a&&(e=>{const t=(0,n.QK6)((0,i.pluck)("value",e),1);return e.map(((e,a)=>function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){c(e,t,a[t])}))}return e}({},e,{percent:t[a]})))})(a)),[a]);return l().createElement(e,o({data:u},s))};return t.displayName="WithPercents",t}},59383:(e,t,a)=>{a.d(t,{d:()=>l});const r=(0,a(79692).Z)({clickable:{cursor:"pointer"}}),l=e=>{const t=r();return e?t.clickable:void 0}},11326:(e,t,a)=>{a.d(t,{a:()=>l});var r=a(24328);const l=e=>{const[t,a]=(0,r.useState)(!1),[l,n]=(0,r.useState)({});return(0,r.useEffect)((()=>{e().then((e=>{n(e||{})})).then((e=>a(!0))).catch((e=>a(!0)))}),[]),{isLoaded:t,savedState:l}}},43129:(e,t,a)=>{a.d(t,{Z:()=>o});var r=a(24328),l=a.n(r),n=a(67358);const i=(0,a(79692).Z)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),o=()=>{const e=i();return l().createElement(n.Z,{color:"secondary",className:e.loader})}},65298:(e,t,a)=>{a.d(t,{Z:()=>c});var r=a(24328),l=a.n(r),n=a(1730),i=a(52388);const o=(0,a(79692).Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),c=e=>{let{id:t,children:a}=e;const r=o();return l().createElement(i.H.Provider,{value:t},l().createElement(n.Z,{className:r.view},a))}},52388:(e,t,a)=>{a.d(t,{H:()=>l});var r=a(24328);const l=a.n(r)().createContext(null);l.displayName="DashboardViewIdContext"},5260:(e,t,a)=>{let r;a.d(t,{o:()=>r}),function(e){e.INIT="init",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(r||(r={}))},26505:(e,t,a)=>{a.r(t),a.d(t,{default:()=>ln});var r=a(24328),l=a.n(r),n=a(52730),i=a(33016),o=a(36138),c=a(27502),s=a(17440),u=a(87918),d=a.n(u),p=a(11326),f=a(7907),m=a(79002),h=a(89810),y=a(5260);const g=e=>{const[t,a]=(0,r.useState)(null);return(0,r.useEffect)((()=>{const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:(0,s.pluck)("uri",e)}]);(0,c.FK9)({query:(0,c.ECL)({activeness:"active",filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}).then((e=>{let{type:t}=e;return a(t)})).catch((()=>a(null)))}),[e]),t};var v=a(90436),b=a(79692);const E=(0,b.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"}}),x=e=>{let{title:t,children:a}=e;const r=E();return l().createElement("div",{className:r.root},l().createElement(v.Z,{variant:"body2",className:r.title},t),l().createElement("div",{className:r.content},a))};var O=a(17822);let w;!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"}(w||(w={}));var N=a(73487),T=a(78223),S=a(39878);const R=(e,t,a)=>({attributes:(t||[]).map(((t,r)=>{let{filter:l,fieldName:n,values:i}=t;return{data:{uri:null==a?void 0:a.uri,entityTypeUri:e,fieldName:n},filter:l,id:`attribute_${r}`,operator:"and",values:i}})),entityTypes:[e],id:"group",operator:"or"});let I,C;!function(e){e.STRING="string",e.FLOAT="float",e.INTEGER="integer",e.BOOLEAN="boolean",e.DATE="date",e.SSN="SSN",e.UNKNOWN="unknown"}(I||(I={})),function(e){e.ENTITY_TYPE="entityType",e.ATTRIBUTE_TYPE="attributeType"}(C||(C={}));const A={[C.ATTRIBUTE_TYPE]:[{id:"FillRateView",type:w.FILL_RATE_CHART,title:"Fill rate"},{id:"UniquenessAnalysisView",type:w.UNIQUENESS_CHART,title:d().text("Uniqueness analysis")},{id:"SummaryView",type:w.SUMMARY,title:d().text("Summary")},{id:"ValidationView",type:w.VALIDATION,title:d().text("Profiles with invalid data")},{id:"FrequencyAnalysis",type:w.FREQUENCY,title:d().text("Frequency analysis")},{id:"LengthStatistics",type:w.LENGTH,title:d().text("Length statistics")},{id:"PatternAnalysis",type:w.PATTERN,title:d().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:w.CROSSWALK,title:d().text("Source system analysis")},{id:"MonthDistribution",type:w.MONTH_DISTRIBUTION,title:d().text("Month distribution")},{id:"DayOfWeekDistribution",type:w.DAY_OF_WEEK_DISTRIBUTION,title:d().text("Day of week distribution")},{id:"DayOfMonthDistribution",type:w.DAY_OF_MONTH_DISTRIBUTION,title:d().text("Day of month distribution")},{id:"ValueDistribution",type:w.VALUE_DISTRIBUTION,title:d().text("Value distribution")},{id:"UnsupportedDataType",type:w.UNSUPPORTED,title:d().text("Unsupported Data Type")}],[C.ENTITY_TYPE]:[{id:"SummaryView",type:w.SUMMARY,title:d().text("Summary")}]},D={[C.ATTRIBUTE_TYPE]:{default:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"LengthStatistics"}],[I.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"}],[I.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"}],[I.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"}],[I.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"}],[I.FLOAT]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}]}};function L(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){P(e,t,a[t])}))}return e}function P(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const _=(0,s.map)((e=>L({},e,{localizedValue:d().number(e.value)}))),j=e=>(0,s.isNil)(e)?"":`(${e}%)`,M=e=>(0,s.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),k=(0,s.curry)(((e,t,a)=>({advanced:[R(t,a.map((0,s.when)((()=>(0,c.Lt4)(e.type)),(0,s.evolve)({values:(0,s.map)((0,c.mOr)(c.ZBU))}))),e)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}))),F=e=>t=>{let{detailedAttributeType:a,entityTypeUri:r,dvfs:l}=t;return(0,s.pipe)(e({fieldName:a.fieldName,entityTypeUri:r,dvfs:l}),k(a,r))},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 I.STRING;case c.oS0.TYPE_COUNT:case c.oS0.TYPE_DOLLAR:case c.oS0.TYPE_INT:case c.oS0.TYPE_LONG:return I.INTEGER;case c.oS0.TYPE_FLOAT:case c.oS0.TYPE_DOUBLE:case c.oS0.TYPE_NUMBER:return I.FLOAT;case c.oS0.TYPE_BOOLEAN:case c.oS0.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return I.BOOLEAN;case c.oS0.TYPE_ACTIVENESS_DATE:case c.oS0.TYPE_DATE:case c.oS0.TYPE_LOCAL_DATE:case c.oS0.TYPE_TIMESTAMP:return I.DATE;case c.oS0.TYPE_SSN:return I.SSN;default:return I.UNKNOWN}},z=e=>{let{percent:t,value:a}=e;return L({width:`${t}%`},a>0&&{minWidth:"3px"})},B=(0,s.pipe)((0,s.pluck)("percent"),(e=>Math.max(...e)));var V=a(71153),H=a.n(V);const Z=(0,b.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}}),W=e=>{let{payload:t}=e;const a=Z();return l().createElement("div",{className:H()(a.wrapper)},t.map((e=>l().createElement("div",{key:e.id,className:a.item},l().createElement("div",{style:{background:e.color},className:a.itemColor}),e.value))))},Y=(0,b.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 G(){return G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},G.apply(this,arguments)}const q=(0,r.forwardRef)(((e,t)=>{let{className:a}=e,r=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["className"]);const n=Y();return l().createElement("div",G({className:H()(n.bar,a)},r,{ref:t}))}));q.displayName="Bar";const $=q,Q=(0,b.Z)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"}}),K=e=>{let{label:t,value:a}=e;const r=Q();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:H()(r.label,r.chartDataLabel)},t),a)},X=(0,b.Z)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),J=e=>{let{data:t,title:a,DataRenderer:r=K}=e;const n=X();return l().createElement("div",{className:n.tooltipWrapper},a&&l().createElement("div",{className:n.title},a),t.map(((e,t)=>l().createElement("div",{key:t,className:n.row},l().createElement(r,e)))))};function ee(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){te(e,t,a[t])}))}return e}function te(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const ae=(0,T.Z)($),re=e=>{let{label:t,value:a,percent:r}=e;return[{label:t,value:`${d().number(a)} ${j(r)}`}]},le=(0,S.Z)((e=>{let{data:t,colors:a,onItemClick:r}=e;const n=Y(),i=r&&(e=>r(e)),o=!!r;return l().createElement("div",{className:n.root},l().createElement("div",{className:n.stackedBar},t.map(((e,t)=>l().createElement(ae,{className:o&&n.clickable,key:e.label,tooltipTitle:l().createElement(J,{data:re(e)}),style:ee({},z(e),{background:a[t]}),onClick:()=>i(e.group)})))),l().createElement("div",{className:n.legendWrapper},l().createElement(N.De,{layout:"vertical",align:"left",verticalAlign:"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%"},content:l().createElement(W,null),payload:(t||[]).map(((e,t)=>{let{group:r,label:i,value:o,percent:s}=e;return{id:r,type:"square",color:a[t],value:l().createElement(l().Fragment,null,l().createElement("span",{className:n.legendLabel},i),l().createElement("span",{className:n.legendValue},`${(0,c.k7L)(o,999)} ${j(s)}`))}}))})))}));var ne=a(17998),ie=a(39475),oe=a(82726);const ce=(0,b.Z)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:"5px",lineHeight:"24px"},infoIcon:{position:"relative"}}))),se=e=>{let{title:t,infoTooltipTitle:a,children:r}=e;const n=ce(!!r),i=!!a;return l().createElement(ne.Z,{title:t,className:n.root,classes:{title:n.title}},i&&l().createElement(ie.k,{icon:oe.Z,size:"XXS",tooltipTitle:a,className:n.infoIcon}),r)};var ue=a(44443),de=a(7882),pe=a(82068),fe=a(43129),me=a(77277),he=a(43266);let ye;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(ye||(ye={}));const ge=(0,b.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"}}))),ve=m.B9.ERROR,be=e=>{let{onRefresh:t,height:a,errorData:r={},variant:n=ye.SMALL}=e;const{Icon:i=ve,message:o,title:c}=r,s=ge({height:a});return l().createElement("div",{className:H()(s.container,s[`${n}`])},l().createElement(i,{className:s.icon}),c&&l().createElement(v.Z,{className:s.title},c),o&&l().createElement(v.Z,{className:s.message},o),!!t&&l().createElement(me.Z,{className:s.refreshButton,startIcon:l().createElement(he.Z,{color:"primary",className:s.refreshIcon}),onClick:t},l().createElement(v.Z,{variant:"button"},d().text("Refresh"))))},Ee=(0,b.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"}}),xe=m.B9.NO_DATA,Oe=e=>{let{height:t,data:a={},variant:r=ye.SMALL}=e;const{Icon:n=xe,message:i,title:o}=a,c=Ee({height:t});return l().createElement("div",{className:H()(c.container,c[`${r}`])},l().createElement(n,{className:c.icon}),o&&l().createElement(v.Z,{className:c.title},o),i&&l().createElement(v.Z,{className:c.message},i))},we=(0,b.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}}))),Ne=e=>{let{loadingState:t,onRefresh:a,children:r,data:n,className:i}=e;const o=we();return l().createElement(pe.Z,{className:H()(o.viewContent,i)},l().createElement(ue.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:i,height:o}=e;switch(t){case y.o.LOADED:return n&&0!==n.length?l().createElement(de.Z,{error:l().createElement(be,{errorData:{message:d().text("Something went wrong")},height:o,variant:ye.SMALL})},r({data:n,width:i,height:o})):l().createElement(Oe,{height:o,data:{Icon:m.B9.NO_DATA,message:d().text("Go ahead and load some data. We’ll put it on the scales and let you know here if it measures up."),title:d().text("Give us something to go on!")},variant:ye.SMALL});case y.o.LOADING:return l().createElement(fe.Z,null);case y.o.ERROR:return l().createElement(be,{errorData:{Icon:m.B9.ERROR,message:d().text("No need to fret - just refresh and it will work itself out."),title:d().text("Oops! We ran into a problem.")},height:o,onRefresh:a,variant:ye.SMALL});default:return l().createElement("div",null,"Loading...")}})))};var Te=a(1730);const Se=(0,b.Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),Re=e=>{let{config:t,children:a}=e;const r=Se(),{type:n}=t;return l().createElement(Te.Z,{className:r.view,"data-reltio-id":`reltio-dq-dashboard-chart-${n}`},a)},Ie=e=>{let{label:t,value:a}=e;const r=Q();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:H()(r.label,r.infoDataLabel)},t),a)},Ce={[c.s9T.MISSING]:"#CE5C00",[c.s9T.EXISTS]:"#C4CE00"},Ae=(0,s.map)((e=>{let{group:t}=e;return Ce[t]||(0,c.f4_)(t)})),De=e=>({[c.s9T.MISSING]:d().text("Missing"),[c.s9T.EXISTS]:d().text("Exists")}[e]||e),Le=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:De(t),group:t,value:a}})),(0,s.sortBy)((e=>Object.values(c.s9T).indexOf(e.group))),_),Pe=e=>Object.keys(e).reduce(((t,a)=>(t[a]=Le(e[a]),t)),{}),_e=(0,s.propOr)({},"fillRate"),je=(0,s.pipe)(_e,Le,(0,s.when)(M,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,Ae])),Me=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:t===c.s9T.EXISTS?c.j5E.EXISTS:c.j5E.MISSING_VALUE,fieldName:a}]})),ke=F(Me),Fe=l().createContext(null);Fe.displayName="ChartsDataContext";const Ue=e=>{const{data:t,state:a,reload:l}=(0,r.useContext)(Fe);return{data:(0,r.useMemo)((()=>e(t)),[t,e]),state:a,reload:l}},ze=l().createContext(null);ze.displayName="DetailedAttributeTypeContext";const Be=l().createContext(null);Be.displayName="EntityTypeContext";const Ve=e=>{const t=(0,n.useDispatch)(),a=(0,r.useContext)(ze),l=(0,r.useContext)(Be);return(0,s.pipe)(e({detailedAttributeType:a,entityTypeUri:l.uri}),h.ui.actions.openSearch,t)},He=e=>{let{config:t}=e;const{title:a}=t,{data:r,state:n,reload:i}=Ue(je),{chartData:o,colors:c}=r,s=Ve(ke),u=l().createElement(J,{title:d().text("Fill rate"),data:[{label:`${d().text("Exists")}:`,value:d().text("Profiles with data")},{label:`${d().text("Missing")}:`,value:d().text("Profiles without data")}],DataRenderer:Ie});return l().createElement(Re,{config:t},l().createElement(se,{title:a,infoTooltipTitle:u}),l().createElement(Ne,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(le,{data:t,colors:c,onItemClick:s})})))},Ze={[c.dC6.UNIQUE]:"#4BAFFF",[c.dC6.NOT_UNIQUE]:"#C34980"},We=(0,s.map)((e=>{let{group:t}=e;return Ze[t]||(0,c.f4_)(t)})),Ye=e=>({[c.dC6.UNIQUE]:d().text("Unique"),[c.dC6.NOT_UNIQUE]:d().text("Not unique")}[e]||e),Ge=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:Ye(t),group:t,value:a}})),(0,s.sortBy)((e=>Object.values(c.dC6).indexOf(e.group))),_),qe=(0,s.propOr)({},"uniqueness"),$e=(0,s.pipe)(qe,Ge,(0,s.when)(M,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,We])),Qe=e=>{let{config:t}=e;const{title:a}=t,{data:r,state:n,reload:i}=Ue($e),{chartData:o,colors:c}=r,s=l().createElement(J,{title:d().text("Uniqueness analysis"),data:[{label:`${d().text("Unique")}:`,value:d().text("Number of values that only appear once and have no duplicates")},{label:`${d().text("Not unique")}:`,value:d().text("Number of values that have at least one duplicate in the list")}],DataRenderer:Ie});return l().createElement(Re,{config:t},l().createElement(se,{title:a,infoTooltipTitle:s}),l().createElement(Ne,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(le,{data:t,colors:c})})))};var Ke=a(4614),Xe=a(80030),Je=a(7089);const et=(e,t)=>(e||[]).some((0,s.propEq)("attribute",t)),tt=e=>[c.oS0.TYPE_FLOAT,c.oS0.TYPE_DOUBLE,c.oS0.TYPE_NUMBER].includes(e);let at;function rt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){lt(e,t,a[t])}))}return e}function lt(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}!function(e){e.INCLUDED_IN_MATCHING="includedInMatching",e.CONTAIN_VF="containVF",e.REQUIRED="required",e.REFERENCE="reference",e.RDM_LOOKUP="RDMLookup"}(at||(at={}));const nt=(0,s.curry)(((e,t)=>e.some((e=>t.details[e.value])))),it=(0,s.curry)(((e,t)=>{var a;return 0===e.length||nt(e,t)||(null===(a=t.children)||void 0===a?void 0:a.some((t=>it(e,t))))})),ot=(0,s.curry)(((e,t)=>{var a;const r=e[t.fieldName];return null==r||null===(a=r.find((0,s.propEq)("group",c.s9T.EXISTS)))||void 0===a?void 0:a.value})),ct=(0,s.curry)(((e,t)=>{var a;const r=e[t.fieldName];return!(null!=r&&null!==(a=r.find((0,s.propEq)("group",c.s9T.EXISTS)))&&void 0!==a&&a.value)})),st=(0,s.curry)((function(e,t){var a;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const l=t.fieldName||(0,c.Tde)(t.uri,r);return ct(e,rt({},t,{fieldName:l}))||(null===(a=t.children)||void 0===a?void 0:a.some((a=>st(e,a,r.concat({name:t.name,label:t.label})))))})),ut=(0,s.curry)(((e,t)=>t.reduce(((t,a)=>{const r=((e,t)=>{var a;return null===(a=e.label||e.name)||void 0===a?void 0:a.toLowerCase().includes(t.toLowerCase())})(a,e),l=r?a.children||[]:ut(e,a.children||[]);return(r||l.length)&&t.push(Object.assign({},a,l.length&&{children:l})),t}),[])));function dt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){pt(e,t,a[t])}))}return e}function pt(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const ft=e=>{let{attrTypeItem:t,dvf:a=[],matchAttributes:r=[]}=e;const{uri:l,required:n,isAttributeReference:i}=t;return{[at.INCLUDED_IN_MATCHING]:r.includes(l),[at.CONTAIN_VF]:et(a,l),[at.REQUIRED]:!!n,[at.REFERENCE]:i,[at.RDM_LOOKUP]:(0,c.lS4)(t)}},mt=e=>({[at.INCLUDED_IN_MATCHING]:d().text("Included in match rule"),[at.CONTAIN_VF]:d().text("Has validation functions"),[at.REQUIRED]:d().text("Required"),[at.REFERENCE]:d().text("Reference attribute"),[at.RDM_LOOKUP]:d().text("RDM")}[e]||e),ht=(0,s.curry)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return(0,s.pipe)((0,s.chain)((e=>{const l=e.children?ht(e.children,t.concat({name:e.name,label:e.label}),a||(0,c.YkG)(e),r+1):[];return[{attributeItem:dt({},e,{fieldName:(0,c.Tde)(e.uri,t),isAttributeReference:(0,c.YkG)(e)||a}),level:r},...l]})))(e)}));function yt(){return yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},yt.apply(this,arguments)}const gt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",yt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#6663F6"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 14.4h2.411c.016-.205.047-.405.093-.6H8.4v-1.2h3.012c.137-.215.296-.416.472-.6H8.4v-1.2h6v.011a3.896 3.896 0 011.8.287V8.4c0-.66-.54-1.2-1.2-1.2H7.8c-.66 0-1.2.54-1.2 1.2v7.8c0 .66.54 1.2 1.2 1.2h4.083a3.892 3.892 0 01-.979-1.8H8.4v-1.2zm6-4.2h-6V9h6v1.2zm2.58 5.934L18.852 18l-.852.852-1.872-1.872a2.66 2.66 0 01-1.434.42A2.695 2.695 0 0112 14.7c0-1.494 1.206-2.7 2.7-2.7 1.494 0 2.7 1.206 2.7 2.7 0 .528-.156 1.014-.42 1.434zm-2.28.066a1.5 1.5 0 10-.001-3.001A1.5 1.5 0 0014.7 16.2z",fill:"#fff"}))};function vt(){return vt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},vt.apply(this,arguments)}const bt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",vt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#1DACF5"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4 9.6H9.3L12 6.9l2.7 2.7h-2.1v3.846l-3.6 3.6-.846-.846 3.246-3.246V9.6zm4.446 6.6l-.846.846L12.954 15l.846-.846 2.046 2.046z",fill:"#fff"}))};function Et(){return Et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Et.apply(this,arguments)}const xt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Et({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#7F22FD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 9v1.2h1.2V9H8.4zm0 2.4v1.2h1.2v-1.2H8.4zm0 2.4V15h1.2v-1.2H8.4zM10.8 9v1.2h4.8V9h-4.8zm0 2.4v1.2h4.8v-1.2h-4.8zm0 2.4V15h4.8v-1.2h-4.8zm6-6v8.4H7.2V7.8h9.6zm1.2 9V6.6H6V17.4h12v-.6z",fill:"#fff"}))};function Ot(){return Ot=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Ot.apply(this,arguments)}const wt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Ot({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#4B31E9"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 15.6h1.8V15a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-3V9.6H8.4a.6.6 0 01-.6-.6V6.6a.6.6 0 01.6-.6H12a.6.6 0 01.6.6V9a.6.6 0 01-.6.6h-1.2v1.8h1.8v-.6a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-1.8v3z",fill:"#fff"}))};function Nt(){return Nt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Nt.apply(this,arguments)}const Tt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Nt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#80D2FC"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6c-3.312 0-6 2.688-6 6s2.688 6 6 6 6-2.688 6-6-2.688-6-6-6zm-.6 4.96V9h1.2v1.96l1.698-.98.6 1.04L13.2 12l1.698.98-.6 1.04-1.698-.98V15h-1.2v-1.96l-1.698.98-.6-1.04L10.8 12l-1.698-.98.6-1.04 1.698.98zM7.2 12c0 2.646 2.154 4.8 4.8 4.8s4.8-2.154 4.8-4.8-2.154-4.8-4.8-4.8A4.806 4.806 0 007.2 12z",fill:"#fff"}))},St=(0,b.Z)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),Rt={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let It;!function(e){e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal"}(It||(It={}));const Ct=e=>{let{detailType:t,size:a=Rt.NORMAL,variant:r=It.NORMAL}=e;const n=St(a),i=H()(n.icon,n[r]);switch(t){case at.RDM_LOOKUP:return l().createElement(xt,{className:i});case at.CONTAIN_VF:return l().createElement(gt,{className:i});case at.INCLUDED_IN_MATCHING:return l().createElement(bt,{className:i});case at.REFERENCE:return l().createElement(wt,{className:i});case at.REQUIRED:return l().createElement(Tt,{className:i});default:return null}},At=(0,b.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 Dt(){return Dt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Dt.apply(this,arguments)}function Lt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){Pt(e,t,a[t])}))}return e}function Pt(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const _t=e=>{let{detailType:t,classes:a}=e,n=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["detailType","classes"]);const i=At(),{data:o,state:s}=(0,r.useContext)(Fe);let u=It.NORMAL;const d=s===y.o.LOADING,p=(e=>{var t;return 0===(null==e||null===(t=e.fillRate)||void 0===t?void 0:t[c.s9T.MISSING])})(o);return t===at.REQUIRED&&(d&&(u=It.LOADING),d||p||(u=It.BAD_QUALITY)),l().createElement(Je.Z,Dt({classes:Lt({root:H()(i.root,{[i.badQuality]:t===at.REQUIRED&&!d&&s!==y.o.INIT&&!p}),label:i.label},a),label:mt(t),icon:l().createElement(Ct,{detailType:t,variant:u})},n))},jt=(0,b.Z)({root:{display:"flex",flexWrap:"wrap",flexGrow:1}}),Mt=e=>{let{details:t,chipClasses:a={}}=e;const r=jt();return l().createElement("div",{className:r.root},Object.entries(t||{}).filter((e=>{let[,t]=e;return t})).map((e=>{let[t]=e;return l().createElement(_t,{key:t,detailType:t,classes:a})})))},kt=(0,b.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"}}),Ft=e=>{let{title:t,children:a,className:r}=e;const n=kt();return l().createElement("div",{className:H()(n.info,r)},l().createElement("div",{className:n.infoTitle},t),l().createElement("div",{className:n.infoContent},a))};function Ut(){return Ut=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Ut.apply(this,arguments)}const zt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Ut({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg1279746712a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"15",height:"8"},l().createElement("path",{d:"M11.667 4H5C2.793 4 1 5.793 1 8s1.793 4 4 4h6.667c2.206 0 4-1.793 4-4s-1.794-4-4-4zm0 6.667H5a2.666 2.666 0 110-5.334h6.667a2.666 2.666 0 110 5.334zm0-4.667c-1.107 0-2 .893-2 2s.893 2 2 2c1.106 0 2-.893 2-2s-.894-2-2-2z",fill:"#000"})),l().createElement("g",{mask:"url(#svg1279746712a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Bt(){return Bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Bt.apply(this,arguments)}const Vt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Bt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg208732808a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"14"},l().createElement("path",{d:"M7.992 1.333A6.663 6.663 0 001.332 8c0 3.68 2.98 6.667 6.66 6.667A6.67 6.67 0 0014.665 8a6.67 6.67 0 00-6.673-6.667zm.007 12A5.332 5.332 0 012.665 8 5.332 5.332 0 018 2.667 5.332 5.332 0 0113.332 8a5.332 5.332 0 01-5.333 5.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z",fill:"#000"})),l().createElement("g",{mask:"url(#svg208732808a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Ht(){return Ht=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Ht.apply(this,arguments)}const Zt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Ht({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg1638934380a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},l().createElement("path",{d:"M5.948 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2zM7.947 12v-1.1h1.1V12h-1.1zM13.65 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2z",fill:"#000"})),l().createElement("g",{mask:"url(#svg1638934380a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Wt(){return Wt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Wt.apply(this,arguments)}const Yt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Wt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("path",{d:"M2.11 12v-.825h1.331V5.169L2 5.741v-.89L3.331 4.3h1.045v6.875h1.089V12H2.11zM5.968 11.032l1.65-2.508c.242-.367.403-.62.484-.759.08-.147.136-.29.165-.429.03-.14.044-.341.044-.605v-.77a.778.778 0 00-.253-.583c-.169-.161-.389-.242-.66-.242h-1.21V4.3h1.1c.638 0 1.126.158 1.463.473.345.308.517.774.517 1.397v.462c0 .367-.018.645-.055.836-.037.19-.103.37-.198.539-.088.169-.264.455-.528.858l-1.518 2.299h2.519V12h-3.52v-.968zM13.544 10.262c0 .609-.147 1.052-.44 1.331-.293.271-.77.407-1.43.407h-1.298v-.825h1.397c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.239c0-.242-.073-.433-.22-.572-.147-.147-.341-.22-.583-.22h-1.067v-.825h.957a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.902c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187h-1.298V4.3h1.166c.623 0 1.093.14 1.408.418.323.271.484.704.484 1.298v.693c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.924z",fill:"#000",fillOpacity:".541"}))};function Gt(){return Gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Gt.apply(this,arguments)}const qt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Gt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg924767730a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},l().createElement("path",{d:"M5.463 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H2.03v-.836h1.562c.271 0 .491-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.059-.396-.176-.528-.11-.14-.279-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473h1.463v.836H3.714c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM9.136 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H5.704v-.836h1.562c.27 0 .49-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.06-.396-.176-.528-.11-.14-.28-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473H8.96v.836H7.387c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM12.255 12l-1.683-6.886V12H9.68V4.3h1.562l1.694 6.886V4.3h.89V12h-1.572z",fill:"#000"})),l().createElement("g",{mask:"url(#svg924767730a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function $t(){return $t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},$t.apply(this,arguments)}const Qt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",$t({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg3578961193a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},l().createElement("path",{d:"M5.345 12l-.418-1.947H2.782L2.353 12h-.979l1.86-7.7h1.264L6.324 12h-.979zM3.85 5.026l-.89 4.202H4.75L3.85 5.026zM10.494 10.262c0 .63-.146 1.078-.44 1.342-.286.264-.763.396-1.43.396h-2.09V4.3h1.958c.653 0 1.13.132 1.43.396.308.264.462.704.462 1.32v.627c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.99zM9.427 5.917c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187H7.491v2.431h1.133a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.836zm.11 3.256c0-.242-.073-.433-.22-.572-.147-.147-.34-.22-.583-.22H7.491v2.794h1.232c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.173zM13.119 12c-.638 0-1.13-.154-1.474-.462-.337-.315-.506-.785-.506-1.408V6.17c0-.623.169-1.089.506-1.397.345-.315.836-.473 1.474-.473h1.342v.836h-1.452c-.271 0-.491.08-.66.242a.778.778 0 00-.253.583v4.378c0 .227.084.422.253.583.169.161.389.242.66.242h1.452V12h-1.342z",fill:"#000"})),l().createElement("g",{mask:"url(#svg3578961193a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))},Kt=(0,b.Z)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}}}),Xt={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},Jt=e=>{let{type:t,size:a=Xt.SMALL}=e;const r=Kt(a);switch(U(t)){case I.STRING:return l().createElement(Qt,{className:r.icon});case I.FLOAT:return l().createElement(Zt,{className:r.icon});case I.INTEGER:return l().createElement(Yt,{className:r.icon});case I.BOOLEAN:return l().createElement(zt,{className:r.icon});case I.DATE:return l().createElement(Vt,{className:r.icon});case I.SSN:return l().createElement(qt,{className:r.icon});default:return l().createElement(Qt,{className:r.icon})}},ea=e=>{let{detailedAttributeType:t}=e;const a=kt(),n=(e=>{const[t,a]=(0,r.useState)(null),l=(0,r.useContext)(Be);return(0,r.useEffect)((()=>{if(l.uri&&e){const t={filter:c.j5E.EXISTS,fieldName:e},r={filter:c.j5E.EQUALS,fieldName:"type",values:[l.uri]};a(null),(0,c.j_Q)([t,r]).then((e=>{let{total:t}=e;a(t)}))}}),[l.uri,e]),t})(t.fieldName),i=null===n?l().createElement(Ke.Z,{size:"24",className:a.totalLoading}):(0,c.k7L)(n);return l().createElement("div",null,l().createElement("div",{className:a.header},l().createElement(Ft,{title:d().text("Profiles"),className:a.attributeTypeSummary},l().createElement(Xe.ZP,{title:l().createElement(J,{data:[{label:d().text("Entities with exists attribute"),value:d().number(n)}]})},l().createElement("div",null,i))),l().createElement(Ft,{title:d().text("Data type"),className:a.attributeTypeSummary},(o=t.type,l().createElement(l().Fragment,null,l().createElement("div",{className:a.attributeTypeIconWrapper},l().createElement(Jt,{type:o,size:Xt.NORMAL})),d().text(o))))),l().createElement(Mt,{details:t.details}));var o},ta=e=>{let{entityType:t}=e;const{data:a,state:i}=(0,r.useContext)(Fe),o=((e,t)=>{const a=t.attributes||[],r=t=>t.filter(c.Uty).filter((0,s.either)((0,s.prop)("label"),(0,s.prop)("name"))).reduce(((t,a)=>{const l=(0,c.EUG)(e,a);return null!=l&&l.length?[...t,a,...r(l)]:[...t,a]}),[]);return r(a).length})((0,n.useSelector)(h.ZP.selectors.getMetadata),t),{activeProfiles:u=0,inactiveProfiles:p=0,sourceSystems:f=0}=(null==a?void 0:a.summary)||{},m=e=>i===y.o.LOADING?l().createElement(Ke.Z,{size:"24",className:g.totalLoading}):d().number(e),g=kt();return l().createElement("div",{className:g.header},l().createElement(Ft,{title:d().text("Active profiles"),className:g.entitySummary},m(u)),l().createElement(Ft,{title:d().text("Inactive profiles"),className:g.entitySummary},m(p)),l().createElement(Ft,{title:d().text("Attributes"),className:g.entitySummary},d().number(o)),l().createElement(Ft,{title:d().text("Source systems"),className:g.entitySummary},m(f)))},aa=l().createContext(null);aa.displayName="DataLevelContext";const ra=(0,b.Z)({content:{padding:"0 16px",marginTop:"4px"}}),la=e=>{let{config:t}=e;const a=ra(),n=(0,r.useContext)(ze),i=(0,r.useContext)(aa),o=(0,r.useContext)(Be),s=i===C.ATTRIBUTE_TYPE,u=s?(0,c.idV)(n.label):(0,c.idV)(o.label);return l().createElement(Re,{config:t},l().createElement(se,{title:u}),l().createElement(pe.Z,{className:a.content},s?l().createElement(ea,{detailedAttributeType:n}):l().createElement(ta,{entityType:o})))};var na=a(65298);const ia=(0,b.Z)({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}});function oa(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){ca(e,t,a[t])}))}return e}function ca(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const sa=m.B9.ERROR,ua=e=>{let{config:t,errorData:a,titleChildren:r,infoTooltipTitle:n,onRefresh:i}=e;const{id:o,title:c}=t,s=ia();return l().createElement(na.Z,{id:o},l().createElement(se,{title:c,infoTooltipTitle:n},r),l().createElement(pe.Z,{className:s.viewContent},l().createElement(ue.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},l().createElement(be,{errorData:oa({Icon:sa},a),onRefresh:i,variant:ye.SMALL}))))},da=e=>{let{keyword:t,entityTypeUri:a}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[R(a)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}},pa=e=>{let{fieldName:t,value:a,entityTypeUri:r}=e;return da({keyword:`${c.j5E.EQUALS}(${t}, ${a})`,entityTypeUri:r})};function fa(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const ma=e=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:t,group:t,value:a}})),_),ha=e=>{let{sortDirection:t,sortField:a}=e;return(e,r)=>"asc"===t?e[a]>r[a]?1:-1:e[a]<r[a]?1:-1},ya=(0,s.curry)(((e,t)=>t.filter((t=>e.find((0,s.propEq)("uri",t.group)))).map((t=>{const a=e.find((0,s.propEq)("uri",t.group)).name;return function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){fa(e,t,a[t])}))}return e}({},t,{label:a,group:a})})))),ga=ma("frequency"),va=ma("pattern"),ba=e=>[{filter:c.j5E.EQUALS,values:[[e]],fieldName:"analyticsAttributes.AttributeValidations.FunctionName"}],Ea=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return pa({fieldName:`${a.fieldName}`,value:t,entityTypeUri:r})})),xa=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:c.j5E.ON,values:[t],fieldName:a}]})),Oa=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:a}]})),wa=e=>{let{detailedAttributeType:t,entityTypeUri:a}=e;return(0,s.cond)([[c.j5n,(0,s.always)(Ea)],[c.Lt4,(0,s.always)(F(xa))],[s.identity,(0,s.always)(F(Oa))]])(t.type)({detailedAttributeType:t,entityTypeUri:a,dvfs:[]})},Na=F((()=>ba)),Ta=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return pa({fieldName:`${a.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:r})}));var Sa=a(79573),Ra=a(45108),Ia=a(92332),Ca=a(83088);const Aa=(0,s.pipe)((0,s.split)("|"),(e=>{let[t,a]=e;return{label:t,percent:a}})),Da={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"},La=(0,b.Z)((e=>({colorBarContainer:{position:"relative",width:"100%",marginLeft:"16px",padding:"5px 0 6px",height:"100%",boxSizing:"border-box","&>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":Da},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":Da},tooltipValue:{whiteSpace:"pre-wrap"}})));function Pa(){return Pa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Pa.apply(this,arguments)}function _a(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){ja(e,t,a[t])}))}return e}function ja(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Ma=e=>{let{className:t,headCellData:a,headIndex:r}=e,n=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["className","headCellData","headIndex"]);const i=La(!r),{label:o,percent:c}=Aa(a.label),s=!!c,u=l().createElement(Ca.C,{value:o},l().createElement("div",{className:i.headLabel},o));return l().createElement("div",{className:H()(i.headCell,t)},l().createElement(Ia.default,Pa({},n,{headCellData:_a({},a,{label:s?l().createElement("div",{className:i.labelPercantageWrapper},l().createElement("div",{className:i.labelWrapper},u),l().createElement("div",{className:i.percentsWrapper},l().createElement("span",{className:i.percentLabel},"0%"),l().createElement("span",{className:i.percentLabel},c,"%"))):u})})))};var ka=a(59383),Fa=a(30488);const Ua=(0,Fa.Z)(((e,t)=>{let{onItemClick:a}=e,{rowValue:{group:r}}=t;return{onClick:a&&(()=>{a(r)})}}))((e=>{let{value:t="",columnData:a,rowValue:r,onClick:n}=e;const{attributeCellClassName:i,LabelRenderer:o}=a,s=La(),u=(0,ka.d)(n),d=l().createElement("div",{className:s.tooltipValue},t),p=!!o;return l().createElement(Ca.C,{value:d},l().createElement("div",{className:H()(s.attribute,u,i),onClick:n},p?l().createElement(o,{chartData:r}):c.P6Y.strings.removeLineBreaks(t)))}));var za=a(89902);const Ba=(0,T.Z)((e=>{let{value:t,maxValue:a,className:r}=e;return l().createElement(za.Z,{width:t,maxWidth:a,className:r})})),Va=(0,Fa.Z)(((e,t)=>{let{onItemClick:a,valueHeader:r,labelHeader:l}=e,{rowValue:{group:n}}=t;return{onClick:a&&(()=>{a(n)}),valueHeader:r,labelHeader:l}}))((e=>{let{value:t,columnData:{maxValue:a},rowValue:{percent:r,label:n},labelHeader:i,valueHeader:o,onClick:u}=e;const p=La(),f=(0,ka.d)(u),m=l().createElement("span",{className:p.tooltipValue},n),h=0===t?"0":`${(0,c.k7L)(t,999)} ${j(r)}`,y=l().createElement(J,{data:[{label:i,value:m},{label:o,value:`${d().number(t)} ${j(r)}`}]});return l().createElement("div",{className:H()(p.numberContainer,f),onClick:u},l().createElement(v.Z,{className:p.numberWhithPercent},h),!(0,s.isNil)(a)&&l().createElement("div",{className:p.colorBarContainer},l().createElement(Ba,{value:t,maxValue:a,tooltipTitle:y,className:p.bar,showForDisabled:!0})))})),Ha=(0,b.Z)({tableContainer:e=>{let{width:t,height:a}=e;return{height:a,width:t,display:"flex",flexDirection:"column"}},cellBorder:{borderLeft:"none",borderRight:"none!important"}});function Za(){return Za=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Za.apply(this,arguments)}const Wa=e=>{let{width:t,height:a,data:n,options:i={},basicTableRef:o,onItemClick:c,labelCellClassName:s}=e,u=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["width","height","data","options","basicTableRef","onItemClick","labelCellClassName"]);const p=Ha({width:t,height:a}),{headers:[f,m]=[],showCountLabels:h=!1,showValues:y=!0,sortable:g=!1,LabelRenderer:v}=i,b=(0,r.useMemo)((()=>({cellBorder:p.cellBorder})),[p]),E=(0,r.useMemo)((()=>Math.max(...n.map((e=>e.value)))),[n]),x=(0,r.useMemo)((()=>{const e=B(n),t=m||d().text("No of Profiles");return e?t.concat(`|${e}`):t}),[n,m]),O=h?`${f} (${n.length})`:f,w=(0,r.useMemo)((()=>[{id:"label",label:O,resizable:!1,headCellRenderer:Ma,attributeCellClassName:s,rowCellValueRenderer:Ua,initialWidth:.4*t,sortable:g,LabelRenderer:v},...y?[{id:"value",label:x,resizable:!1,headCellRenderer:Ma,rowCellValueRenderer:Va,maxValue:E,initialWidth:.6*t,sortable:g}]:[]]),[x,E,t,f,y]),N=(0,r.useMemo)((()=>({onItemClick:c,labelHeader:f,valueHeader:m})),[c,f,m]);return l().createElement("div",{className:p.tableContainer},l().createElement(Ra.Z,Za({columnsData:w,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:b,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:N},u)))},Ya=(0,b.Z)((()=>({layoutItemContent:{padding:"0 0 10px"}}))),Ga=(0,S.Z)((e=>{let{config:t,data:a,title:n,headers:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,titleChildren:u,state:d,onRefresh:p,labelCellClassName:f,showCountLabels:m,LabelRenderer:h}=e;const y=Ya(),[g,v]=(0,r.useState)("desc"),[b,E]=(0,r.useState)("value"),x=(0,r.useCallback)(((e,t)=>c?c({sortDirection:g,sortField:b})(e,t):ha({sortDirection:g,sortField:b})(e,t)),[g,b]),O=e=>{v((()=>b===e?(0,Sa.Dh)(g):g)),E(e)},w=(0,r.useMemo)((()=>[...a.sort(x)]),[x,a]);return l().createElement("div",null,l().createElement(Re,{config:t},l().createElement(se,{title:n,infoTooltipTitle:o},u),l().createElement(Ne,{className:y.layoutItemContent,data:w,loadingState:d,onRefresh:p},(e=>{let{data:t,width:a=0,height:r=0}=e;return l().createElement(Wa,{data:t,width:a,height:r,options:{headers:i,sortable:!!c,showCountLabels:m,LabelRenderer:h},sorting:{field:b,order:g},onSort:O,onItemClick:s,labelCellClassName:f})}))))})),qa=l().createContext(null);qa.displayName="DVFContext";var $a=a(86689);function Qa(){return Qa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Qa.apply(this,arguments)}const Ka=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Qa({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg1830866123a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg1830866123a)"},l().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},l().createElement("path",{d:"M12.375 18.688a7 7 0 017-7h75.742a7 7 0 017 7v49.02a7 7 0 01-7 7H19.375a7 7 0 01-7-7v-49.02z"}),l().createElement("path",{opacity:".4",d:"M16.844 22.813a7 7 0 017-7h75.741a7 7 0 017 7v49.02a7 7 0 01-7 7H23.844a7 7 0 01-7-7v-49.02z"})),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"29.318",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 31.381a3.562 3.562 0 013.552-3.563 3.562 3.562 0 013.552 3.563 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 29.052c0-.726.588-1.313 1.313-1.313h23.983a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 33.553c0-.518.42-.938.938-.938h43.37a.938.938 0 010 1.876h-43.37a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 36.554c0-.31.252-.563.563-.563h13.993a.563.563 0 110 1.126H31.26a.563.563 0 01-.563-.563z",fill:"#B1AABD"}),l().createElement("rect",{opacity:".5",x:"19.854",y:"17.689",width:"29.914",height:"4.126",rx:"2.063",fill:"#645F6D"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"43.573",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("rect",{x:"19.854",y:"42.072",width:"7.105",height:"7.127",rx:"3.552",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 43.306c0-.725.588-1.313 1.313-1.313h28.41a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 47.808c0-.518.42-.938.938-.938h48.23a.938.938 0 110 1.876h-48.23a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 50.809c0-.31.252-.563.563-.563h38.884a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"57.828",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 59.891a3.562 3.562 0 013.552-3.564 3.562 3.562 0 013.552 3.564 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 57.561c0-.725.588-1.313 1.313-1.313h38.132a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 62.063c0-.518.42-.938.938-.938h31.778a.938.938 0 110 1.875H31.635a.938.938 0 01-.938-.937z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 65.064c0-.311.252-.563.563-.563h13.993a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 3.094h88V88H0V3.094z",fill:"url(#paint0_linear_3200_4362)"}),l().createElement("path",{d:"M79.893 76.85H21.308v14.184h58.585V76.85z",fill:"#F5C056"}),l().createElement("path",{d:"M79.893 76.85H74.6v14.184h5.293V76.85z",fill:"#E99B00"}),l().createElement("path",{d:"M48.73 76.893H26.283v14.184H48.73V76.893z",fill:"#FFEA5A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.894 57.829c-1.687-4.26 13.113-4.043 11.413 0-1.353 3.218-1.353 7.53 0 12.934H44.894C46 64.93 46 60.618 44.894 57.83z",fill:"#FFD264"}),l().createElement("path",{d:"M61.253 70.383H39.949v2.663h21.304v-2.663z",fill:"#FFD264"}),l().createElement("path",{d:"M47.938 70.383h-4.185v2.663h4.185v-2.663z",fill:"#FFEA5A"}),l().createElement("path",{d:"M64.676 73.046h-28.15v3.804h28.15v-3.804z",fill:"#795D1A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.764 16.363v5.325H15.602v.143c0 13.634 8.992 24.714 20.162 24.961v2.994c-14-.986-25.108-15.488-25.108-33.233v-.19h25.108z",fill:"#FFCB64"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.677 16.363v5.325h20.161v.143c0 13.634-8.991 24.714-20.161 24.961v2.994c13.999-.986 25.107-15.488 25.107-33.233v-.19H64.677z",fill:"#ED985C"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.307 57.829c-1.353 3.218-1.353 7.53 0 12.934h-5.706V54.715c3.278.026 6.556 1.091 5.706 3.114z",fill:"#F4B046"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.676 73.046v3.804H50.601v-3.804h14.075z",fill:"#4F350B"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.253 70.383v2.663H50.6v-2.663h10.652z",fill:"#F4B046"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.933 10.656a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-11.43 0-23.311-20.1-24.449-45.65h2.194l-.38-3.044h-1.898a91.212 91.212 0 01.01-2.663h49.045z",fill:"#FFCE66"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.937 10.656c.006.569.01 1.14.01 1.712v.952h-.044l-.241 3.043h.294c.126 24.948 1.435 39.335 3.123 45.65-8.89-3.2-15.661-20.403-16.308-45.65h1.465l-.241-3.044h-1.271a158.252 158.252 0 01.006-2.663h13.207z",fill:"#FFEA5A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.284 16.363h-3.91l.422-3.044h3.581a81.301 81.301 0 00-.01-2.663h4.566a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-.414 0-.828-.026-1.241-.078 11.92-1.382 19.899-20.946 21.114-45.572zm.083-5.707h-44.48 44.48z",fill:"#F4B046"}),l().createElement("path",{opacity:".519",d:"M72.665 13.32h-44.51v3.043h44.51v-3.044z",fill:"#F4B046"}),l().createElement("path",{d:"M48.318 73.046h-5.706v3.804h5.706v-3.804z",fill:"#96691F"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M65.526 10.656h4.235L58.973 35.935h-4.235l10.788-25.279z",fill:"url(#paint1_linear_3200_4362)"}),l().createElement("g",{filter:"url(#filter0_d_3200_4362)"},l().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#000"})),l().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#DD612C"}),l().createElement("path",{d:"M56.909 54.302a8.681 8.681 0 100-17.362 8.681 8.681 0 000 17.362z",fill:"#FFCE66"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.909 36.94a8.685 8.685 0 018.347 6.291c-5.74.351-10.312 5.02-10.51 10.8a8.699 8.699 0 01-6.008-5.47A11.212 11.212 0 0054.9 37.174a8.684 8.684 0 012.008-.234z",fill:"#FFF18C"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.202 10.656l10.862 25.341H54.83L43.646 10.705l4.556-.049z",fill:"#F83D3D"})),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3200_4362",x1:"0",y1:"3.094",x2:"0",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3200_4362",x1:"62.25",y1:"10.656",x2:"62.25",y2:"35.935",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#B93131"}),l().createElement("stop",{offset:"1",stopColor:"#831616"})),l().createElement("filter",{id:"filter0_d_3200_4362",x:"40.057",y:"30.77",width:"33.702",height:"33.703",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l().createElement("feOffset",{dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"3"}),l().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0335613 0 0 0 0 0.334579 0 0 0 0 0.412601 0 0 0 0.5 0"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3200_4362"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3200_4362",result:"shape"}))))};function Xa(){return Xa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Xa.apply(this,arguments)}const Ja=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Xa({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg355575424a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg355575424a)"},l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_3488_11934)"}),l().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M64.543 19.547L84.7 39.704V90.88H32.1L17.875 77.372V19.547h46.668z",fill:"url(#paint1_linear_3488_11934)"}),l().createElement("path",{opacity:".06",fillRule:"evenodd",clipRule:"evenodd",d:"M16.156 19.938h69.438A2.406 2.406 0 0188 22.343v53.968a2.406 2.406 0 01-2.406 2.407H16.156a2.406 2.406 0 01-2.406-2.406v-53.97a2.406 2.406 0 012.406-2.405z",fill:"#000"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 19.25H86.28c.95 0 1.719.77 1.719 1.719v53.968c0 .95-.77 1.72-1.719 1.72H17.187c-.949 0-1.718-.77-1.718-1.72V20.97c0-.95.77-1.719 1.719-1.719z",fill:"#fff"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 24.968c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 29.093c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 56.031c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 60.156c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 66.344c0-.57.462-1.031 1.031-1.031h28.059a1.031 1.031 0 010 2.062H37.254c-.57 0-1.031-.462-1.031-1.031z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 70.469c0-.57.462-1.031 1.031-1.031h25.508a1.031 1.031 0 010 2.062H37.125c-.57 0-1.031-.462-1.031-1.031z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 35.406c0-.57.461-1.031 1.03-1.031h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 39.531c0-.57.461-1.031 1.03-1.031H70.54a1.031 1.031 0 010 2.063H48.47c-.57 0-1.032-.462-1.032-1.032z",fill:"#979797"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 45.719c0-.57.461-1.032 1.03-1.032h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.031z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 49.844c0-.57.461-1.032 1.03-1.032h25.509a1.031 1.031 0 010 2.063H48.469c-.57 0-1.032-.462-1.032-1.031z",fill:"#979797"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M31.802 37.125v-2.75h-.688V48.251h3.843v-.688h-3.155v-9.75h3.155v-.688h-3.155z",fill:"#2B98F0"}),l().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),l().createElement("path",{opacity:".6",fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 7.563h63.937c1.14 0 2.063.923 2.063 2.062v6.188c0 1.139-.924 2.062-2.063 2.062H17.187a2.062 2.062 0 01-2.062-2.063V9.625c0-1.14.923-2.063 2.063-2.063z",fill:"#fff"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M19.938 12.719c0-1.14.923-2.063 2.062-2.063h24.063a2.063 2.063 0 010 4.125H22a2.062 2.062 0 01-2.063-2.062zM50.875 12.719c0-1.14.923-2.063 2.063-2.063h3.437a2.063 2.063 0 010 4.125h-3.438a2.062 2.062 0 01-2.062-2.062z",fill:"#979797"}),l().createElement("path",{opacity:".2",d:"M37.687 66.48l8.942 8.309v.958l19.925 19.702 31.064-.552 7.006-25.47-34.487-34.144-11.2.567c-3.238-1.86-5.34-3.02-6.306-3.48-.54-.258-.383 5.565-2.755 7.725-1.243 1.133-3.462 4.104-6.657 8.914l-5.532 17.47z",fill:"url(#paint2_linear_3488_11934)"}),l().createElement("g",{filter:"url(#filter0_d_3488_11934)",fillRule:"evenodd",clipRule:"evenodd"},l().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312a18.719 18.719 0 014.236 4.554l4.28-.699a23.425 23.425 0 012.392 6.47l-3.639 2.443c.262 2.058.2 4.18-.216 6.285l3.466 2.572a24.254 24.254 0 01-2.838 6.375l-4.231-.855a19.61 19.61 0 01-4.526 4.366l.62 4.34a23.426 23.426 0 01-6.409 2.551l-2.345-3.649a18.72 18.72 0 01-6.219-.1l-2.593 3.564a22.7 22.7 0 01-6.224-2.757l.912-4.304a18.715 18.715 0 01-4.281-4.567l-4.285.7a23.424 23.424 0 01-2.4-6.438l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14zM60.075 49.74c-2.804-1.248-6.112.064-7.388 2.93-1.276 2.867-.038 6.203 2.766 7.452 2.804 1.248 6.112-.064 7.388-2.93 1.276-2.867.038-6.203-2.766-7.452z",fill:"#6B93AC"}),l().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312c.779.597 1.503 1.25 2.168 1.95l-10.07 9.392a5.444 5.444 0 00-1.491-.983c-2.804-1.248-6.112.064-7.388 2.93a5.7 5.7 0 00.626 5.749l-10.071 9.39c-.502-.585-.965-1.2-1.39-1.84l-4.284.7a23.424 23.424 0 01-2.4-6.437l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14z",fill:"#7CA6BF"}),l().createElement("path",{d:"M62.886 42.644c6.409 2.854 9.24 10.479 6.322 17.03-2.917 6.553-10.478 9.552-16.887 6.698-6.409-2.853-9.24-10.478-6.322-17.03 2.917-6.553 10.478-9.551 16.887-6.698zm-1.32 2.966c-4.808-2.14-10.478.109-12.666 5.023-2.188 4.914-.065 10.633 4.742 12.773 4.806 2.14 10.477-.108 12.665-5.023 2.188-4.914.065-10.633-4.742-12.773z",fill:"#AAC4D5"}),l().createElement("path",{d:"M62.886 42.644a12.424 12.424 0 014.22 3.075l-2.366 2.207a9.317 9.317 0 00-3.175-2.316c-4.807-2.14-10.477.109-12.665 5.023-1.635 3.673-.863 7.795 1.638 10.536l-2.367 2.208c-3.325-3.656-4.35-9.145-2.172-14.035 2.917-6.553 10.478-9.551 16.887-6.698z",fill:"#CBDDE9"}))),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3488_11934",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3488_11934",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopOpacity:".01"}),l().createElement("stop",{offset:"1"})),l().createElement("linearGradient",{id:"paint2_linear_3488_11934",x1:"86.975",y1:"77.519",x2:"49.809",y2:"46.968",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#90A4AE",stopOpacity:"0"}),l().createElement("stop",{offset:"1",stopOpacity:".75"})),l().createElement("filter",{id:"filter0_d_3488_11934",x:"32.168",y:"30.067",width:"53.209",height:"53.716",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l().createElement("feOffset",{dx:"1",dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"2"}),l().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3488_11934"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3488_11934",result:"shape"}))))},er=(0,b.Z)((e=>({title:{whiteSpace:"nowrap",height:"24px",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"},titleCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px",overflow:"hidden",lineHeight:"24px",textOverflow:"ellipsis",fontSize:"14px"},container:{height:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",padding:0,"&>svg":{paddingTop:0,height:"88px",width:"88px",marginBottom:"14px"}},noDataMessage:{fontSize:"12px",textAlign:"center",whiteSpace:"pre-wrap"},noDataTitle:{fontSize:"13px",textAlign:"center",color:"rgba(0,0,0,0.87)",whiteSpace:"pre-wrap"},viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}})));let tr;!function(e){e.DVF_NOT_CONFIGURE="dvfNotConfigured",e.DATA_VALID="dataValid",e.PERMISSION_DENIED="permissionDenied"}(tr||(tr={}));const ar=e=>{let{chartType:t,title:a,infoTooltipTitle:r,titleChildren:n,dvfConfigLink:i,config:o}=e;const c=er();let s,u,p;switch(t){case tr.DVF_NOT_CONFIGURE:s=l().createElement(Ja,null),u=d().text("If we spot any validation issues, we’ll display them here."),p=l().createElement(l().Fragment,null,l().createElement($a.Z,{href:i,target:"_blank",component:i?"a":"span",color:i?"primary":"inherit",underline:i?"hover":"none"},d().text("Define some data validation functions"))," ",d().text("for this attribute (or ask your Tenant Admin)."));break;case tr.DATA_VALID:s=l().createElement(Ka,null),u=d().text("We didn’t spot any validation issues for this attribute type.\nYou can kick back and enjoy a cold one."),p=d().text("Nice one!");break;case tr.PERMISSION_DENIED:s=l().createElement(m.B9.ERROR,null),u=d().text("Please contact your Tenant Admin to change permissions"),p=d().text("You don’t currently have permission to view this page")}return l().createElement(Re,{config:o},l().createElement(se,{title:a,infoTooltipTitle:r},n),l().createElement(pe.Z,{className:c.viewContent},l().createElement("div",{className:c.container},s,p&&l().createElement(v.Z,{className:c.noDataTitle},p),u&&l().createElement(v.Z,{className:c.noDataMessage},u))))},rr=e=>{var t;const a=er(),{config:n}=e,{dvfs:i,dvfConfigLink:o}=(0,r.useContext)(qa),{data:u,state:p,reload:f,errorCode:m}=i,h=(0,r.useContext)(ze).uri,b=(0,r.useContext)(Be),E=b.uri,x=((e,t)=>(e||[]).filter((0,s.propEq)("attribute",t)))(u,h).filter((e=>e.status===c.lVm.ACTIVE)),{data:O,state:w,reload:N}=Ue((e=>(0,s.pipe)(ma("dataValidationFunctions"),ya(e)))(x)),T=(0,r.useMemo)((()=>[b]),[b]),S=(0,r.useMemo)((()=>x.map((e=>e.uri))),[x]),R=(e=>{let{entityTypeUri:t,dvfUris:a}=e;const[l,n]=(0,r.useState)(null);return(0,r.useEffect)((()=>{const e=[{fieldName:"type",filter:c.j5E.EQUALS,values:[t]},{fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",filter:c.j5E.EQUALS,values:a}];(0,c.j_Q)(e).then((e=>{let{total:t}=e;return n(t)})).catch((()=>n(null)))}),[t,a]),l})({entityTypeUri:E,dvfUris:S}),I=null===(t=g(T))||void 0===t?void 0:t[(0,c.nIW)(E)],C=Ve(Na),A=(0,r.useMemo)((()=>p===y.o.LOADED&&w===y.o.LOADED?y.o.LOADED:p===y.o.ERROR||w===y.o.ERROR?y.o.ERROR:y.o.LOADING),[w,p]),D=(0,r.useMemo)((()=>()=>{p===y.o.ERROR&&f(),w===y.o.ERROR&&N()}),[w,p,f,N]),L=m===c.Xt7.ACCESS_DENIED,P=m===c.Xt7.DVF_NOT_CONFIGURED||0===(null==x?void 0:x.length)&&!L,_=A===y.o.LOADED&&(null==x?void 0:x.length)>0&&0===O.length,j=!(A===y.o.ERROR&&m!==c.Xt7.DVF_NOT_CONFIGURED)&&!P&&A!==y.o.LOADING&&l().createElement(Ca.C,{value:n.title},l().createElement(v.Z,{className:a.titleCount},(e=>{let{isDataValid:t,totalProfiles:a,invalidProfiles:r}=e;return t?d().text("0 profiles"):(0,s.isNil)(r)?"":`${(0,c.k7L)(r)} (${Math.round(r/a*100)}%) ${1!==r?d().text("profiles"):d().text("profile")}`})({isDataValid:_,totalProfiles:I,invalidProfiles:R}))),M=[d().text("Validation function"),d().text("Profiles")],k=l().createElement(J,{title:d().text("Profiles with invalid data"),data:[{value:d().text("Shows the number of profiles that violate active validation functions")}],DataRenderer:Ie});return P||_||L?l().createElement(ar,{config:n,chartType:P?tr.DVF_NOT_CONFIGURE:_?tr.DATA_VALID:L?tr.PERMISSION_DENIED:void 0,title:d().text(n.title),infoTooltipTitle:k,titleChildren:j,dvfConfigLink:o}):l().createElement(Ga,{config:n,title:d().text(n.title),headers:M,data:O,onItemClick:C,titleChildren:j,state:A,onRefresh:D,customComparator:ha,infoTooltipTitle:k,showCountLabels:!0})},lr=(0,b.Z)((()=>({monoFontCell:{fontFamily:'"Roboto Mono", monospace'}}))),nr=e=>{let{config:t}=e;const a=lr(),{data:n,state:i,reload:o}=Ue(ga),s=(0,r.useContext)(ze).type,u=(0,c.Lt4)(s)?((e,t)=>{const a=t===c.oS0.TYPE_TIMESTAMP?"L LTS":"L";return e.map((e=>L({},e,{label:d().date(Number(e.label),a)})))})(n,s):n,p=Ve(wa),f=[d().text("Value"),d().text("Count")],m=l().createElement(J,{title:d().text("Frequency analysis"),data:[{value:d().text("Shows the number of times each value occurs")}],DataRenderer:Ie});return l().createElement(Ga,{config:t,data:u,headers:f,title:t.title,infoTooltipTitle:m,onItemClick:p,state:i,onRefresh:o,labelCellClassName:H()({[a.monoFontCell]:(0,c.m6e)(s)})})};function ir(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){or(e,t,a[t])}))}return e}function or(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var cr,sr;!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"}(cr||(cr={})),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"}(sr||(sr={}));const ur=e=>(0,s.pipe)((0,s.pathOr)({},[e,"data"]),Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:t,group:t,value:a}})),_);var dr;!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"}(dr||(dr={}));const pr=(e,t)=>{const a={lengthStatistics:{[dr.MEDIAN]:d().text("Median"),[dr.AVERAGE]:d().text("Average"),[dr.MININMUN]:d().text("Minimum"),[dr.MAXIMUM]:d().text("Maximum")},valueDistribution:{[dr.MEDIAN]:d().text("Median"),[dr.AVERAGE]:d().text("Average"),[dr.MININMUN]:d().text("Minimum"),[dr.MAXIMUM]:d().text("Maximum")},crosswalkAnalysis:{[dr.NUMBER_OF_SOURCES]:d().text("No. of source systems"),[dr.AVG_NUMBER_OF_PROFILES]:d().text("Avg no. of profiles"),[dr.MIN_NUMBER_OF_PROFILES]:d().text("Min no. of profiles"),[dr.MAX_NUMBER_OF_PROFILES]:d().text("Max no. of profiles")}};return(0,s.pathOr)(null,[t,e],a)},fr=e=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((t=>{let[a,r]=t;return{label:pr(a,e),value:r}})),(0,s.filter)((e=>{let{label:t}=e;return t})),_),mr=e=>t=>({chartData:ur(e)(t),infoPanelData:fr(e)(t)}),hr=(e,t)=>(0,c.Lt4)(t)?d().date(Number(e),"L"):String(e),yr=(0,s.curry)(((e,t)=>{const a=(0,s.pipe)((0,s.prop)("group"),(0,s.split)(" "),s.head,Number),r=t.chartData.sort((0,s.ascend)(a)).map(((a,r)=>{const[l,n=l]=a.group.split(" ").map(Number),i=r===t.chartData.length-1,o=l!==n?((e,t,a)=>tt(t)?`[${e}${a?"]":")"}`:e)(`${hr(l,e)} - ${hr(n,e)}`,e,i):hr(l,e);return ir({},a,{label:o,group:[l,n,i?"last":""].toString()})}));return{infoPanelData:t.infoPanelData.map((t=>ir({},t,{value:(0,c.Lt4)(e)?d().date(Number(t.value),"L"):(0,c.k7L)(t.value,999),localizedValue:(0,c.Lt4)(e)?d().date(Number(t.value),"L"):t.localizedValue}))),chartData:r}})),gr=(0,s.pipe)(mr("lengthStatistics"),yr("")),vr=(0,s.pipe)(mr("crosswalkAnalysis"),(0,s.applySpec)({chartData:(0,s.prop)("chartData"),infoPanelData:(0,s.pipe)((0,s.prop)("infoPanelData"),(0,s.map)((e=>(0,s.assoc)("value",(0,c.k7L)(e.value,999),e))))})),br=mr("monthDistribution"),Er=mr("dayOfWeekDistribution"),xr=mr("dayOfMonthDistribution"),Or=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return pa({fieldName:`${a.fieldName}.day_of_week`,value:cr[t.toLowerCase()],entityTypeUri:r})})),wr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return pa({fieldName:`${a.fieldName}.month`,value:sr[t.toLowerCase()],entityTypeUri:r})})),Nr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return pa({fieldName:`${a.fieldName}.day_of_month`,value:t,entityTypeUri:r})})),Tr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;const[l,n]=t.split(",");return l===n?pa({fieldName:`${a.fieldName}.length`,value:l,entityTypeUri:r}):(e=>{let{fieldName:t,startRange:a,endRange:r,entityTypeUri:l}=e;return da({keyword:`${c.j5E.IN_RANGE}(${t}, ${a}, ${r})`,entityTypeUri:l})})({fieldName:`${a.fieldName}.length`,startRange:l,endRange:n,entityTypeUri:r})})),Sr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return pa({fieldName:`${a.fieldName}.crosswalk_sources`,value:t,entityTypeUri:r})})),Rr=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;const[r,l]=t.split(",");return[{filter:c.j5E.AFTER,values:[r],fieldName:a},{filter:c.j5E.BEFORE,values:[l],fieldName:a}]})),Ir=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;const[r,l]=t.split(",");return[r===l?{filter:c.j5E.EQUALS,values:[[r]],fieldName:a}:{filter:c.j5E.IN_RANGE,values:[[r,l]],fieldName:a}]})),Cr=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;const[r,l,n]=t.split(","),i=r===l,o=i?[{filter:c.j5E.EQUALS,values:[[r]],fieldName:a}]:[{filter:c.j5E.IN_RANGE,values:[[r,l]],fieldName:a}];return!n&&!i&&o.push({filter:c.j5E.NOT_EQUALS,values:[[l]],fieldName:a}),o})),Ar=(0,s.cond)([[c.Lt4,(0,s.always)(F(Rr))],[tt,(0,s.always)(F(Cr))],[s.identity,(0,s.always)(F(Ir))]]);function Dr(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){Lr(e,t,a[t])}))}return e}function Lr(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Pr=(0,b.Z)((e=>({tooltipWrapper:Dr({},e.tooltip,{padding:"4px 8px"})}))),_r=e=>{var t;let{payload:a,active:r,name:n}=e;const i=null==a||null===(t=a[0])||void 0===t?void 0:t.payload,o=null==i?void 0:i.value,c=null==i?void 0:i.label,s=n?`${n}`:"",u=Pr();return r&&l().createElement("div",{className:u.tooltipWrapper},l().createElement(J,{data:[{label:s,value:c},{label:d().text("No of profiles"),value:d().number(o)}]}))},jr=(0,b.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"}}))),Mr=e=>{let{data:t}=e;const a=jr();return l().createElement("div",{className:a.chartInfoWrapper},t.map((e=>{let{label:t,value:r,localizedValue:n}=e;return l().createElement("div",{key:t,className:a.chartInfoItem},l().createElement("span",{className:a.chartInfoLabel},t,": "),r!==n?l().createElement(Xe.ZP,{title:n},l().createElement("span",{className:a.chartInfoValue},r)):l().createElement("span",{className:a.chartInfoValue},r))})))},kr=(0,b.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"}}}))),Fr=e=>{let{width:t,height:a,label:r,x:n,y:i}=e;const o=kr({width:t}),c=n-t/2;return l().createElement("foreignObject",{x:c,y:i,width:t,height:a},l().createElement("div",{className:o.labelWrapper},l().createElement(Ca.C,{value:r},l().createElement("div",{className:o.xAxisLabel},r))))},Ur=e=>{const{x:t,y:a,width:r,height:n,payload:i,visibleTicksCount:o}=e,{value:c}=i,s=r/o-4;return l().createElement(Fr,{width:s,height:n,label:c,x:t,y:a})};function zr(){return zr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},zr.apply(this,arguments)}const Br=e=>{let{isClickable:t}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["isClickable"]);const r=jr(),n=t?r.clickable:void 0;return l().createElement(N.Ae,zr({},a,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},Vr=e=>{const{value:t}=e;return t>0?l().createElement(N.Ae,e):null};function Hr(){return Hr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Hr.apply(this,arguments)}const Zr=e=>{let{data:t,config:a,xAxisLabel:r,yAxisLabel:n,barTooltipTitle:i,infoPanelData:o,infoTooltipTitle:s,onItemClick:u,options:d={},state:p,onRefresh:f}=e;const m=jr(),{title:h}=a,{cartesianGrid:g,bar:v,xAxis:b,yAxis:E,labelForX:x,labelForY:O,barChart:w}=(e=>{let{showCategories:t=!1,interval:a,barCategoryGap:r}=e;return{barChart:{barCategoryGap:r||"10%"},bar:{dataKey:"value",fill:"#0072CE",minPointSize:3,maxBarSize:50},xAxis:{tick:t&&Ur,tickLine:!1,interval:a||0,dataKey:"label"},yAxis:{tickCount:8,axisLine:!1,tickLine:!1,tick:{fill:"#000"},width:60,tickFormatter:e=>(0,c.k7L)(e,999)},cartesianGrid:{stroke:"#000",strokeOpacity:"0.05",vertical:!1},labelForX:{position:"insideBottom",style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"},offset:t?-3:3},labelForY:{angle:270,position:"left",offset:-3,style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"}}}})(d),T=u&&(e=>{let{activePayload:t}=e;return u(t[0].payload.group)}),S=T?m.clickable:void 0,R=p===y.o.LOADED&&o.length>0;return l().createElement(Re,{config:a},l().createElement(se,{title:h,infoTooltipTitle:s}),R&&l().createElement(Mr,{data:o}),l().createElement(Ne,{data:t,loadingState:p,onRefresh:f},(e=>{let{data:t,width:a=0,height:o=0}=e;return l().createElement("div",null,l().createElement(N.vz,Hr({width:a,height:o,data:t,onClick:T},w),l().createElement(N.q3,g),l().createElement(N.u,{content:l().createElement(_r,{name:i}),cursor:l().createElement(Br,{isClickable:!!T})}),l().createElement(N.$Q,Hr({},v,{shape:l().createElement(Vr,{className:S})})),l().createElement(N.B2,E,l().createElement(N.__,Hr({},O,{value:n}))),l().createElement(N.Kc,b,l().createElement(N.__,Hr({},x,{value:r})))))})))},Wr=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Ue(gr),{chartData:i,infoPanelData:o}=a,c=Ve(Tr),s=l().createElement(J,{title:d().text("Length statistics"),data:[{value:d().text("Measures the string length of values")}],DataRenderer:Ie});return l().createElement(Zr,{config:t,data:i,xAxisLabel:d().text("Length of values"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Length"),infoTooltipTitle:s,onItemClick:c,state:r,onRefresh:n})};var Yr=a(21210);const Gr=(0,b.Z)({icon:{width:"20px",height:"20px",borderRadius:"4px",fontSize:"14px",marginRight:"8px"},text:e=>{let{color:t}=e;return{backgroundColor:t}}}),qr=e=>{let{chartData:t}=e;const{group:a,label:r}=t,n=Gr({color:(0,c.uap)("random0",a)});return l().createElement(l().Fragment,null,l().createElement(Yr.Z,{sourceType:a,className:n.icon,classes:{textRoot:n.text}}),r)};function $r(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){Qr(e,t,a[t])}))}return e}function Qr(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Kr=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Ue(vr),{chartData:i}=a,o=Ve(Sr),c=[d().text("Source system"),d().text("Profiles")],s=l().createElement(J,{title:d().text("Source system analysis"),data:[{value:d().text("Distribution of source systems contributing to profiles")}],DataRenderer:Ie});return l().createElement(Ga,{config:$r({},t),data:i,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:r,onRefresh:n,customComparator:ha,LabelRenderer:qr})},Xr=e=>{let{config:t}=e;const a=(0,r.useContext)(ze).type,{data:n,state:i,reload:o}=Ue((e=>(0,s.pipe)(mr("valueDistribution"),yr(e)))(a)),{chartData:c,infoPanelData:u}=n,p=Ve(Ar(a));return l().createElement(Zr,{config:t,data:c,xAxisLabel:d().text("Value"),yAxisLabel:d().text("No. of profiles"),infoPanelData:u,barTooltipTitle:d().text("Value"),onItemClick:p,state:i,onRefresh:o})},Jr=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Ue(br),{chartData:i,infoPanelData:o}=a,c=Ve(wr);return l().createElement(Zr,{config:t,data:i,xAxisLabel:d().text("Months of the year"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Months of the year"),options:{showCategories:!0,barCategoryGap:"20%",interval:"preserveStartEnd"},onItemClick:c,state:r,onRefresh:n})},el=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Ue(Er),{chartData:i,infoPanelData:o}=a,c=Ve(Or);return l().createElement(Zr,{config:t,data:i,xAxisLabel:d().text("Days of the week"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Days of the week"),options:{showCategories:!0,barCategoryGap:"25%",interval:"preserveStartEnd"},onItemClick:c,state:r,onRefresh:n})},tl=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Ue(xr),{chartData:i,infoPanelData:o}=a,c=Ve(Nr);return l().createElement(Zr,{config:t,data:i,xAxisLabel:d().text("Days of the month"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Days of the month"),options:{showCategories:!0,interval:1},onItemClick:c,state:r,onRefresh:n})},al=e=>{let{config:t}=e;const a=lr(),{data:r,state:n,reload:i}=Ue(va),o=Ve(Ta),c=[d().text("Value"),d().text("Count")],s=l().createElement(J,{title:d().text("Pattern analysis"),data:[]});return l().createElement(Ga,{config:t,data:r,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:n,onRefresh:i,labelCellClassName:a.monoFontCell})};function rl(){return rl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},rl.apply(this,arguments)}class ll{}ll.getComponent=e=>{let{type:t,config:a,isFullscreen:r,onToggleFullscreen:n}=e;const i={config:a,isFullscreen:r,onToggleFullscreen:n};switch(t){case w.FILL_RATE_CHART:return l().createElement(He,i);case w.UNIQUENESS_CHART:return l().createElement(Qe,i);case w.SUMMARY:return l().createElement(la,i);case w.VALIDATION:return l().createElement(rr,i);case w.FREQUENCY:return l().createElement(nr,i);case w.LENGTH:return l().createElement(Wr,i);case w.CROSSWALK:return l().createElement(Kr,i);case w.VALUE_DISTRIBUTION:return l().createElement(Xr,i);case w.MONTH_DISTRIBUTION:return l().createElement(Jr,i);case w.DAY_OF_WEEK_DISTRIBUTION:return l().createElement(el,i);case w.DAY_OF_MONTH_DISTRIBUTION:return l().createElement(tl,i);case w.PATTERN:return l().createElement(al,i);default:return l().createElement(ua,rl({},i,{errorData:{message:d().text("Chart isn't supported for this data type")}}))}};const nl=ll,il=e=>{let{layoutItemConfig:t,views:a,onToggleFullscreen:r,isFullscreen:n,className:i,children:o,style:c}=e;const s=a.find((e=>{let{id:a}=e;return t.i===a}));if(!s)return null;const{type:u}=s;return l().createElement("div",{style:c,className:i},nl.getComponent({type:u,config:s,onToggleFullscreen:r,isFullscreen:n}),o)},ol=(0,b.Z)({root:{overflow:"auto",backgroundColor:"#F9F9F9",height:"100%",flexGrow:1,padding:"4px"}}),cl=(0,s.map)((0,s.assoc)("isStatic",!0)),sl={cols:4,rowHeight:10,margin:[12,12]},ul=(0,r.memo)((e=>{let{views:t,layout:a,layoutOptions:n=sl}=e;const i=ol(),o=(()=>{const[e,t]=(0,r.useState)(y.o.INIT),[a,l]=(0,r.useState)({}),n=(0,r.useContext)(Be),i=(0,r.useContext)(ze),o=(0,r.useContext)(aa),s=null==i?void 0:i.fieldName,u=n.uri,d=e=>{console.error(e),t(y.o.ERROR),l({})},p=(0,r.useCallback)((async()=>{if(t(y.o.LOADING),o===C.ENTITY_TYPE){var e,a;const r=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:[u]}]),i=await(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.ACTIVE_ONLY,filter:r}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}),o=await(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.INACTIVE_ONLY,filter:r}),body:[{fieldName:"type",pageSize:101,pageNo:1}]});return l({summary:{inactiveProfiles:null===(e=o.type)||void 0===e?void 0:e[(0,c.nIW)(n.uri)],activeProfiles:null===(a=i.type)||void 0===a?void 0:a[(0,c.nIW)(n.uri)],sourceSystems:8}}),void t(y.o.LOADED)}return(0,c.TTx)({entityTypeUri:u,attributeFieldName:s}).then((e=>{l(e),t(y.o.LOADED)})).catch(d)}),[t,l,s,u]),f=(0,r.useCallback)((()=>{try{p()}catch(e){d(e)}}),[p]);return(0,r.useEffect)((()=>{f()}),[f]),{data:a,state:e,reload:f}})(),s=(0,r.useMemo)((()=>cl(a)),[a]);return l().createElement("div",{className:i.root},l().createElement(Fe.Provider,{value:o},l().createElement(O.Z,{LayoutItem:il,views:t,layout:s,layoutOptions:n})))}));var dl=a(50166),pl=a(83543),fl=a(98989),ml=a(38402),hl=a(33286),yl=a(40435);const gl=(0,b.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"}}),vl=e=>{let{details:t,classes:a,fillRateData:r,fillRateState:n}=e;const i=gl(),o=(0,s.prop)("iconRoot",a);return l().createElement("div",{className:i.root},Object.entries(t||{}).reverse().map((e=>{let[t,a]=e,u=It.NORMAL;if(t===at.REQUIRED){const e=n===y.o.LOADING,t=0===(null==(d=r)||null===(p=d.find((0,s.propEq)("group",c.s9T.MISSING)))||void 0===p?void 0:p.value);e&&(u=It.LOADING),e||t||(u=It.BAD_QUALITY)}var d,p;return l().createElement("div",{key:t,className:H()(a&&(o||i.activeIcon),i.detailIcon)},a&&l().createElement(Xe.ZP,{title:mt(t)},l().createElement("span",null,l().createElement(Ct,{detailType:t,variant:u,size:Rt.SMALL}))))})))},bl="rgba(0, 114, 206, 0.12)",El=(0,b.Z)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:bl,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:bl}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"}}),xl=e=>{let{level:t,margin:a,hasChildren:r,isLastLevelItem:n,isCollapsed:i}=e;const o=El(),c=!i&&(t>0||r);return l().createElement("div",{className:o.linesWrapper},((e,t)=>t>0&&e?(0,s.range)(1,t+1):t>1?(0,s.range)(1,t):[])(r,t).map((e=>l().createElement(hl.Z,{key:e,margin:a,level:e,className:o.line}))),c&&l().createElement(hl.Z,{margin:a,level:t,className:H()(o.line,!r&&t>0&&o.horizontalLine,r&&o.parentLine,n&&o.lastLevel)}))},Ol=(0,b.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 wl(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){Nl(e,t,a[t])}))}return e}function Nl(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Tl=(0,S.Z)((e=>{let{data:t}=e;const a=Ol(),r=Ae(t),n=t.map(((e,t)=>{let{label:n,percent:i,value:o}=e;return{label:l().createElement("span",null,l().createElement("div",{className:a.fillRateSquare,style:{background:r[t]}}),n),value:`${d().number(o)} ${j(i)}`}}));return M(t)?l().createElement("div",{className:a.bar},l().createElement("div",{className:H()(a.barPart,a.inactiveBarPart)})):l().createElement(Xe.ZP,{title:l().createElement(J,{title:d().text("Fill rate"),data:n})},l().createElement("div",{className:a.bar},t.map(((e,t)=>l().createElement("div",{key:e.group,className:a.barPart,style:wl({},z(e),{background:r[t]})})))))})),Sl=(0,b.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"}}),Rl=e=>{let{detailedAttributeType:t,fillRateData:a,fillRateState:r,style:n,level:i,selected:o=!1,onClick:s,onCollapse:u=Sa.ZT,isCollapsed:d=!1,isLastLevelItem:p=!1}=e;const f=Sl(),m=!!t.children,h=!!a,y=(e=>(0,c.idV)(e.label||e.name))(t),g=d?fl.Z:pl.Z,v=o?f.detailsIconSelected:f.detailsIcon;return l().createElement(ml.Z,{style:n,selected:o,classes:{selected:f.selectedItem},onClick:m?void 0:()=>{s(t)},component:"div",className:H()(f.listItem,!m&&f.pointerCursor)},l().createElement("div",{className:f.content},!m&&l().createElement("div",{className:f.attributeType},l().createElement(Jt,{type:t.type})),l().createElement("div",{className:f.attribute},l().createElement(xl,{level:i,margin:20,hasChildren:m,isLastLevelItem:p,isCollapsed:d}),l().createElement(hl.Z,{margin:20,level:i,className:f.marginWrapper},l().createElement(Ca.C,{value:y},l().createElement("div",{className:H()(f.attributeLabel,o&&f.selectedAttributeLabel,m&&f.parentAttributeLabel)},m&&l().createElement(yl.Z,{size:"XXS",icon:g,onClick:u,className:f.collapseIcon}),y))),h&&!m&&l().createElement("div",{className:f.fillRate},l().createElement(Tl,{data:a}))),l().createElement(vl,{details:t.details,classes:{iconRoot:v},fillRateData:a,fillRateState:r})))},Il=(0,s.propOr)({},"attributeItem"),Cl=(0,s.pipe)((0,s.find)((0,s.pipe)(Il,(0,s.either)(c.YkM,c.Or$),s.not)),Il),Al=e=>(0,s.pipe)(Il,(0,s.propEq)("fieldName",e)),Dl=e=>(0,s.filter)((0,s.propEq)("group",e));let Ll;!function(e){e.SHOW_EMPTY="showEmpty"}(Ll||(Ll={}));const Pl=(0,s.curry)(((e,t,a)=>{const r=(0,s.head)(Dl("emptiness")(e));return(null==r?void 0:r.value)===Ll.SHOW_EMPTY?a:a.filter((0,s.pipe)(Il,ot(t)))})),_l=(0,s.pipe)(Il,(0,s.prop)("fieldName")),jl=(0,s.curry)(((e,t)=>{const a=Dl("details")(e),r=(e=>(0,s.pipe)((0,s.filter)((0,s.pipe)(Il,(0,s.both)((0,s.prop)("children"),nt(e)))),(0,s.map)(_l)))(a)(t);return t.filter((e=>{let{attributeItem:t}=e;return r.some((e=>t.fieldName.startsWith(e)))||it(a,t)}))}));function Ml(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var kl=a(36444),Fl=a(79784),Ul=a(15115),zl=a(21324),Bl=a(12231);const Vl=(0,b.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"}}))),Hl=e=>{let{isSelected:t,data:a,onChange:r}=e;const{count:n,label:i,value:o}=a,u=!(0,s.isNil)(n),d=Vl(!u||n>0);return l().createElement(Bl.Z,{className:d.option,component:"div",onClick:()=>r(a),"data-reltio-id":`reltio-dq-dashboard-option-${a.value}`},l().createElement(zl.Z,{color:"primary",checked:t}),l().createElement("span",{className:d.typeIconWrapper},l().createElement(Ct,{detailType:o})),l().createElement(Ca.C,{value:i},l().createElement("div",{className:d.optionLabel},i)),u&&l().createElement("span",{className:d.counter},(0,c.k7L)(n,999)))},Zl=(0,s.curry)(((e,t)=>!!t.find((0,s.propEq)("value",e.value)))),Wl=(0,s.curry)(((e,t)=>{const a=t.findIndex((0,s.propEq)("value",e.value));return-1!==a?(0,s.remove)(a,1,t):t})),Yl=e=>{let{defaultFilterOptions:t=[],filterOptions:a,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=Vl(),[u,p]=(0,r.useState)(null),[f,m]=(0,r.useState)(t),[h,y]=(0,r.useState)(n||null),g=()=>p(null),b=e=>{m((0,s.ifElse)(Zl(e),Wl(e),(0,s.concat)([e])))},E=!!f.length,x=!!u,O=H()(c.filterIconWrapper,{[c.filterIconWrapperActive]:x,[c.filterIconWrapperSelected]:E}),w=E?c.filterIconFilterApplied:c.filterIcon;return l().createElement("div",{className:c.serachWrapper},l().createElement(Ul.Z,{autofocus:!0,onChange:e=>{y(e),i(e||"")},initialValue:n||null,height:40,placeholder:d().text("Search attribute name"),"data-reltio-id":"reltio-dq-dashboard-attributes-search-input",classes:{root:H()(c.searchInput,{[c.filledInput]:!!h})}}),l().createElement("div",{className:c.filterByDetails,"data-reltio-id":"reltio-dq-dashboard-attributes-filter"},l().createElement("div",{className:O,onClick:e=>p(e.currentTarget)},l().createElement(kl.Z,{className:w})),l().createElement(Fl.ZP,{open:!!u,anchorEl:u,onClose:()=>{m((0,s.always)(t)),g()},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{"data-reltio-id":"reltio-dq-dashboard-attributes-filter-popup"}},l().createElement("div",{className:c.menu},l().createElement(v.Z,{variant:"h6",className:c.dropdownMenuTitle},d().text("Filter")),l().createElement("div",{className:c.valueContainer},a.map((e=>{let{label:t,options:a}=e;return l().createElement("div",{key:t},t&&l().createElement(v.Z,{variant:"caption",className:c.groupLabel},t),a.map((e=>{const t=Zl(e,f);return l().createElement(Hl,{key:e.label,data:e,isSelected:t,onChange:b})})))})))),l().createElement("div",{className:c.actionsContainer},l().createElement(me.Z,{onClick:()=>{m([])},className:c.clearAllButton,disabled:!E,"data-reltio-id":"reltio-dq-dashboard-filter-clear-all-button"},d().text("Clear all")),l().createElement(me.Z,{onClick:()=>{m(t),g()},"data-reltio-id":"reltio-dq-dashboard-filter-cancel-button"},d().text("Cancel")),l().createElement(me.Z,{color:"primary",onClick:()=>{o(f),g()},"data-reltio-id":"reltio-dq-dashboard-filter-apply-button"},d().text("Apply"))))))},Gl=(0,b.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}}))),ql=e=>{var t,a;let{entityType:i,onAttributesListChange:o,defaultFieldName:u,defaultFilterOptions:p,defaultFilterText:f,disableAttributeSelection:g}=e;const v=Gl(),b=(0,r.useRef)(),[E,x]=(0,r.useState)(f||""),[O,w]=(0,r.useState)([]),[N,T]=(0,r.useState)(p||[]),[S,R]=(0,r.useState)({fieldName:u}),{data:I,state:C}=(e=>{const[t,a]=(0,r.useState)(y.o.INIT),[l,n]=(0,r.useState)({}),i=e=>{console.error(e),a(y.o.ERROR),n({})},o=(0,r.useCallback)((()=>(a(y.o.LOADING),n({}),(0,c.aTW)({entityTypeUri:e}).then(Pe).then((e=>{n(e),a(y.o.LOADED)})).catch(i))),[a,n,e]),s=(0,r.useCallback)((()=>{try{o()}catch(e){i(e)}}),[o]);return(0,r.useEffect)((()=>{s()}),[s]),{data:l,state:t,reload:s}})(i.uri),A=null===(t=(0,r.useContext)(qa))||void 0===t||null===(a=t.dvfs)||void 0===a?void 0:a.state,D=((e,t)=>{var a,l;const i=(0,n.useSelector)(h.ZP.selectors.getMetadata),o=(0,r.useMemo)((()=>(e=>(0,s.pipe)(c.WN0,ut(e),ht))(t)(i,e)),[i,e,t]),[u,d]=(0,r.useState)([]),p=e.uri,f=(0,r.useMemo)((()=>(0,c.qhs)(i,p)),[i,p]),m=null===(a=(0,r.useContext)(qa))||void 0===a||null===(l=a.dvfs)||void 0===l?void 0:l.data;return(0,r.useEffect)((()=>{m&&d(o.map((0,s.evolve)({attributeItem:e=>function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){Ml(e,t,a[t])}))}return e}({},e,{details:ft({attrTypeItem:e,dvf:m,matchAttributes:f})},e.children&&{children:e.children.map((t=>(t.details=ft({attrTypeItem:t,dvf:m,matchAttributes:f}),t.details.reference=e.isAttributeReference,t)))})})))}),[o,f,m]),u})(i,E),{filteredItems:L,filterOptions:P}=(0,r.useMemo)((()=>{const e=Pl(N,I,D),t=(e=>{const t=Object.values(at).map((e=>({value:e,label:mt(e),group:"details"}))).map((t=>(0,s.assoc)("count",((e,t)=>e.filter((e=>nt([t],e.attributeItem))).length)(e,t),t)));return{label:d().text("Attribute properties"),options:t}})(e);return{filteredItems:jl(N,e),filterOptions:[{label:"",options:[{label:d().text("Show attributes with no data"),value:Ll.SHOW_EMPTY,group:"emptiness"}]},t]}}),[D,N,I]),_=(0,r.useMemo)((()=>((e,t)=>e.filter((e=>{let{attributeItem:a}=e;return!t.some((e=>a.fieldName.startsWith(e)&&a.fieldName!==e))})))(L,O)),[L,O]),j=L.length,M=e=>{o({selectedDetailedAttributeType:e,filterText:E,filterOptions:N}),R({fieldName:e.fieldName})},k=()=>{const e=((e,t)=>(0,s.pipe)((0,s.find)(Al(t)),(0,s.propOr)(null,"attributeItem"))(e))(L,S.fieldName)||Cl(L);return(0,s.isEmpty)(e)||g?null:e};(0,r.useEffect)((()=>{var e,t,a;if(g)return void(null===(a=b.current)||void 0===a||a.scrollTo(0));if(L.length){const e=k();R({fieldName:(null==e?void 0:e.fieldName)||S.fieldName})}const r=((e,t)=>(0,s.findIndex)(Al(t))(e))(L,S.fieldName);r>-1?null===(e=b.current)||void 0===e||e.scrollToItem(r,"center"):null===(t=b.current)||void 0===t||t.scrollTo(0)}),[L]),(0,r.useEffect)((()=>{const e=k();o({selectedDetailedAttributeType:e,filterText:E,filterOptions:N})}),[E,N,S]),(0,r.useEffect)((()=>{R((e=>{let{fieldName:t}=e;return g?{fieldName:null}:{fieldName:t}}))}),[g]);const F=e=>{let{data:t,index:a,style:r}=e;const{attributeItem:n,level:i=0}=t[a],o=S.fieldName===n.fieldName,c=((e,t)=>e[t.fieldName])(I,n),u=a>0&&i>(0,s.pathOr)(-1,[a+1,"level"],_);return l().createElement(Rl,{fillRateData:c,fillRateState:C,style:r,detailedAttributeType:n,level:i,onClick:M,selected:o,onCollapse:(d=n.fieldName,()=>{w((e=>e.includes(d)?e.filter((e=>e!==d)):e.concat(d)))}),isCollapsed:O.includes(n.fieldName),isLastLevelItem:u});var d},U=_.length,z=!!U,B=C===y.o.LOADING||A===y.o.LOADING||C===y.o.INIT||A===y.o.INIT;return l().createElement("div",{className:v.root},l().createElement("div",{className:v.title},d().text("Attributes"),l().createElement("span",{className:v.itemCount},`${j} ${V=j,1===V?d().text("item"):d().text("items")}`),l().createElement(Yl,{defaultFilterText:f,defaultFilterOptions:N,onChangeFilterOptions:T,onChangeFilterText:x,filterOptions:P})),l().createElement("div",{className:v.listWrapper,"data-reltio-id":"reltio-dq-dashboard-attributes-list"},l().createElement("div",{className:v.loaderWrapper},B&&l().createElement(fe.Z,null)),z?l().createElement(ue.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return l().createElement(dl.FixedSizeList,{ref:b,itemCount:U,width:"100%",height:t,itemData:_,itemSize:48},F)})):!B&&l().createElement(Oe,{height:349,data:{Icon:m.B9.SEARCH_RESULTS,title:d().text("No results found"),message:d().text("Try adjusting your search or filter to find\nwhat you’re looking for")},variant:ye.MEDIUM})));var V},$l=(0,b.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 Ql(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){Kl(e,t,a[t])}))}return e}function Kl(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Xl=(0,s.path)([0,"value"]),Jl=e=>{var t,a,i;let{config:o,saveState:u,getSavedState:v}=e;const b=$l(),{entityType:E,tabs:O,setEntityTypeByUri:N}=(()=>{const e=(0,n.useSelector)(h.ZP.selectors.getMetadata),t=(0,r.useMemo)((()=>e.entityTypes.filter(c.oDv)),[e.entityTypes]),a=g(t),[l,i]=(0,r.useState)(null);return{entityType:l,tabs:(0,r.useMemo)((()=>t.map(((e,t)=>{let{label:r,uri:l}=e;return{label:r,value:l,additionalLabel:Number((null==a?void 0:a[(0,c.nIW)(l)])||0),dataReltioId:`reltio-dq-dashboard-entity-tab-${t}`}}))),[t,a]),setEntityTypeByUri:(0,s.pipe)((0,c.nt9)(e),i)}})(),[T,S]=(0,r.useState)(null),{isLoaded:R,savedState:L}=(0,p.a)(v),P=(0,n.useSelector)(h.ZP.selectors.getCanUserGetDQStatistic),[_,j]=(0,r.useState)(),M=(e=>{const[t,a]=(0,r.useState)(null),[l,i]=(0,r.useState)(null),o=(0,n.useSelector)(h.ZP.selectors.getUIPath),u=(0,n.useSelector)(h.ZP.selectors.getEnvironment),d=(0,n.useSelector)(h.ZP.selectors.getTenant);return(0,r.useEffect)((()=>{(0,c.f_2)({uiPath:o,tenant:d,environment:u,options:{method:"GET"}}).then((e=>{var t;const r=null==e||null===(t=e.data)||void 0===t?void 0:t.apps.find((0,s.propEq)("name","Console")).uri;a(r)})).catch((()=>a(null)))}),[u,d]),(0,r.useEffect)((()=>{const a=t&&null!=e&&e.uri?(0,s.pipe)((0,s.split)("?"),(0,s.insert)(1,`datamodeler/entityDetails/${(0,c.nIW)(e.uri)}/validation?`),(0,s.join)(""))(t):null;i(a)}),[e,t]),l})(E),k=(e=>{const[t,a]=(0,r.useState)(null),[l,i]=(0,r.useState)(y.o.INIT),[o,s]=(0,r.useState)(),u=(0,n.useSelector)(h.ZP.selectors.getTenant),d=(0,n.useSelector)(h.ZP.selectors.getDVFPath),p=e=>{console.error(e),i(y.o.ERROR),a([]),s(null==e?void 0:e.errorCode)},f=e=>{a(e.functions),s(void 0),i(y.o.LOADED)},m=(0,r.useCallback)((()=>{if(e)return i(y.o.LOADING),(0,c.HaQ)({dvfPath:d,tenant:u,entityTypeUri:e}).then(f).catch(p)}),[d,u,e]);return(0,r.useEffect)((()=>{m()}),[m]),{data:t,state:l,reload:m,errorCode:o}})(null==E?void 0:E.uri),F={dvfs:k,dvfConfigLink:M},z=null==O?void 0:O.map((e=>Ql({},e,{additionalLabel:l().createElement("span",{className:b.additionalLabel},"(",(0,c.k7L)(e.additionalLabel,999),")")}))),B=(0,r.useCallback)((e=>{(null==E?void 0:E.uri)!==e&&(S(null),N(e),_===C.ENTITY_TYPE&&u(Ql({dataLevel:_,entityTypeUri:e},G.current&&{filterOptions:G.current.filterOptions,filterText:G.current.filterText})))}),[null==E?void 0:E.uri]),V=(null===(t=o.layoutsByDataLevel)||void 0===t?void 0:t[C.ENTITY_TYPE])||D[C.ENTITY_TYPE],Z=null===(a=o.layoutsByDataLevel)||void 0===a?void 0:a[C.ATTRIBUTE_TYPE],W=(0,r.useMemo)((()=>_===C.ENTITY_TYPE&&V?V:((e,t)=>{const a=U(t),r=(0,s.mergeLeft)(e,D[C.ATTRIBUTE_TYPE]);return r[a]||r.default||[]})(Z,null==T?void 0:T.type)),[V,null==T?void 0:T.type,Z,_]),Y=(0,r.useMemo)((()=>((e,t,a,r)=>{const l=(0,s.uniqBy)((0,s.prop)("id"),(0,s.concat)((null==e?void 0:e[r])||[],A[r]||[])),n=(e=>{switch(e){case C.ATTRIBUTE_TYPE:return(e=>{switch(e){case I.INTEGER:case I.FLOAT:return[w.SUMMARY,w.CROSSWALK,w.VALIDATION,w.FILL_RATE_CHART,w.FREQUENCY,w.UNIQUENESS_CHART,w.VALUE_DISTRIBUTION];case I.BOOLEAN:return[w.SUMMARY,w.CROSSWALK,w.VALIDATION,w.FILL_RATE_CHART,w.FREQUENCY];case I.STRING:return[w.LENGTH,w.SUMMARY,w.CROSSWALK,w.VALIDATION,w.FILL_RATE_CHART,w.FREQUENCY,w.UNIQUENESS_CHART];case I.DATE:return[w.SUMMARY,w.CROSSWALK,w.VALIDATION,w.FILL_RATE_CHART,w.FREQUENCY,w.UNIQUENESS_CHART,w.VALUE_DISTRIBUTION,w.MONTH_DISTRIBUTION,w.DAY_OF_MONTH_DISTRIBUTION,w.DAY_OF_WEEK_DISTRIBUTION];case I.SSN:return[w.SUMMARY,w.CROSSWALK,w.VALIDATION,w.FILL_RATE_CHART,w.FREQUENCY,w.UNIQUENESS_CHART,w.PATTERN];case I.UNKNOWN:return[w.SUMMARY,w.CROSSWALK,w.VALIDATION,w.FILL_RATE_CHART,w.FREQUENCY,w.UNIQUENESS_CHART,w.LENGTH];default:return[]}})(U(t));case C.ENTITY_TYPE:return[w.SUMMARY];default:return[]}})(r);return a.reduce(((e,t)=>{const a=(0,s.prop)("type",e.find((0,s.propEq)("id",t.id)));if(!n.includes(a)){const a=e.findIndex((0,s.propEq)("id",t.id));if(-1!==a)return(0,s.adjust)(a,(0,s.assoc)("type",w.UNSUPPORTED),e)}return e}),l)})(o.viewsByDataLevel,null==T?void 0:T.type,W,_)),[null==T?void 0:T.type,W,_]);(0,r.useEffect)((()=>{R&&(N(L.entityTypeUri||Xl(O)),j(V?L.dataLevel||C.ENTITY_TYPE:C.ATTRIBUTE_TYPE))}),[R]);const G=(0,r.useRef)(),q=!(null===(i=O.find((0,s.propEq)("value",null==E?void 0:E.uri)))||void 0===i||!i.additionalLabel),$=E&&P&&R&&q;return l().createElement("div",{className:b.perspectiveView},l().createElement(x,{title:d().text("Data Quality")},E&&l().createElement(f.Z,{value:E.uri,tabs:z,onChange:B,scrollButtons:"auto"})),l().createElement("div",{className:b.content},$&&l().createElement(l().Fragment,null,l().createElement(qa.Provider,{value:F},l().createElement("div",{className:b.wrapper},V&&l().createElement("div",{className:H()(b.entityLevelButton,{[b.selectedButton]:_===C.ENTITY_TYPE}),onClick:()=>{S(null),j(C.ENTITY_TYPE)}},`${E.label} ${d().text("summary")}`),l().createElement(ql,{entityType:E,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:a,filterOptions:r}=e;const l=null==t?void 0:t.fieldName,n={entityTypeUri:E.uri,fieldName:l,filterOptions:r,filterText:a,dataLevel:_};!l&&_!==C.ENTITY_TYPE||(0,s.equals)(G.current,n)||(u(n),G.current=n),l&&j(C.ATTRIBUTE_TYPE),S(t)},defaultFieldName:null==L?void 0:L.fieldName,defaultFilterText:null==L?void 0:L.filterText,defaultFilterOptions:null==L?void 0:L.filterOptions,disableAttributeSelection:_===C.ENTITY_TYPE})),(T||_===C.ENTITY_TYPE)&&l().createElement(aa.Provider,{value:_},l().createElement(Be.Provider,{value:E},l().createElement(ze.Provider,{value:T},l().createElement(ul,{views:Y,layout:W})))))),!P&&l().createElement(be,{height:359,errorData:{title:d().text("You don’t currently have permission to view this page"),message:d().text(" Please contact your Tenant Admin to change permissions")},variant:ye.LARGE}),R&&E&&!q&&P&&l().createElement(Oe,{height:359,data:{Icon:m.B9.NO_DATA,title:d().text("Give us something to go on!"),message:d().text("Go ahead and load some data. We’ll put it on the scales and\nlet you know here if it measures up.")},variant:ye.LARGE})))};function en(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const tn=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){en(e,t,a[t])}))}return e}({},c.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}}),an=(0,i.Z)(tn),rn=(0,o.createGenerateClassName)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0}),ln=e=>{let{store:t,config:a,saveState:i,getSavedState:s}=e;const u=(0,r.useCallback)((0,c.aYu)(s),[s]);return l().createElement(n.Provider,{store:t},l().createElement(o.ThemeProvider,{theme:an},l().createElement(o.StylesProvider,{generateClassName:rn},l().createElement(Jl,{config:a,saveState:i,getSavedState:u}))))}},15115:(e,t,a)=>{t.Z=void 0;var r=m(a(72579)),l=m(a(54073)),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var n=r?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(a,l,n):a[l]=e[l]}return a.default=e,t&&t.set(e,a),a}(a(24328)),i=m(a(13980)),o=m(a(71153)),c=m(a(16805)),s=m(a(2630)),u=m(a(81819)),d=m(a(21853)),p=m(a(87685));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function x(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(f,e);var t,a,i=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var a,r=E(e);if(t()){var l=E(this).constructor;a=Reflect.construct(r,arguments,l)}else a=r.apply(this,arguments);return v(this,a)}}(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),x(b(t=i.call(this,e)),"emitChange",(0,l.default)((function(e){return t.props.onChange(e)}),200)),x(b(t),"handleChange",(function(e){var a=(0,r.default)(e,["target","value"]);t.setState({value:a}),t.emitChange(a)})),x(b(t),"handleFocus",(function(){return t.inputRef.current.focus()})),x(b(t),"handleOpen",(function(){t.props.forceOpen||t.setState({open:!0},t.handleFocus)})),x(b(t),"handleClose",(function(){t.props.forceOpen||t.setState({open:!1}),t.setState({value:""}),t.emitChange()})),t.state={open:Boolean(t.props.initialValue),value:t.props.initialValue||""},t.inputRef=n.default.createRef(),t}return t=f,(a=[{key:"render",value:function(){var e=this.state,t=e.open,a=e.value,r=this.props,l=r.classes,i=r.placeholder,f=r.forceOpen,m=t||f,h=t||f&&a;return n.default.createElement("div",{className:(0,o.default)(c.default.searchInputContainer,x({},c.default.colored,m),l.root)},n.default.createElement(s.default,{name:"expand-input-btn",onClick:this.handleOpen},n.default.createElement(d.default,null)),m&&n.default.createElement(u.default,{value:a,disableUnderline:!0,className:c.default.searchInputField,classes:{input:c.default.input},placeholder:i,onChange:this.handleChange,inputProps:{ref:this.inputRef}}),h&&n.default.createElement(s.default,{name:"collapse-input-btn",onClick:this.handleClose},n.default.createElement(p.default,null)))}}])&&y(t.prototype,a),f}(n.PureComponent);t.Z=O,O.defaultProps={classes:{},forceOpen:!1},O.propTypes={classes:i.default.shape({root:i.default.string}),placeholder:i.default.string,forceOpen:i.default.bool,onChange:i.default.func.isRequired,initialValue:i.default.string}},16805:(e,t,a)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(0,((r=a(86698))&&r.__esModule?r:{default:r}).default)("<style>.Form__searchInputContainer_3vqs6{display:flex;min-height:48px}.Form__searchInputField_3mnAi{flex:1 1 auto;padding:2px}.Form__input_3ulP-::-ms-clear{display:none}.Form__colored_2WMqk{background-color:#fafafa}</style>"),t.default={searchInputContainer:"Form__searchInputContainer_3vqs6",searchInputField:"Form__searchInputField_3mnAi",input:"Form__input_3ulP-",colored:"Form__colored_2WMqk"}}}]);
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[6505],{81819:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r.Z});var r=a(29611)},98989:(e,t,a)=>{var r=a(14859);t.Z=void 0;var l=r(a(24328)),n=(0,r(a(50175)).default)(l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M10 17l5-5-5-5v10z"}),l.default.createElement("path",{fill:"none",d:"M0 24V0h24v24H0z"})),"ArrowRight");t.Z=n},82726:(e,t,a)=>{var r=a(14859);t.Z=void 0;var l=r(a(24328)),n=(0,r(a(50175)).default)(l.default.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.Z=n},43266:(e,t,a)=>{var r=a(14859);t.Z=void 0;var l=r(a(24328)),n=(0,r(a(50175)).default)(l.default.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");t.Z=n},21853:(e,t,a)=>{var r=a(14859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=r(a(24328)),n=(0,r(a(50175)).default)(l.default.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.default=n},82068:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(24328),l=a.n(r),n=a(71153),i=a.n(n);const o=(0,a(79692).Z)({"basic-view-content":{flex:"1 1 auto",padding:"0 24px 24px","&:first-child":{paddingTop:"24px"}}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},c.apply(this,arguments)}const s=e=>{let{children:t,className:a}=e,r=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["children","className"]);const n=o();return l().createElement("div",c({className:i()(n["basic-view-content"],a)},r),t)}},17822:(e,t,a)=>{a.d(t,{Z:()=>S});var r=a(13980),l=a.n(r),n=a(24328),i=a.n(n),o=a(66244),c=a.n(o),s=a(44443),u=a(17440),d=a(71153),p=a.n(d);function f(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}const m=e=>{let{x:t,y:a,width:r,height:l,id:n,minWidth:i,minHeight:o,maxWidth:c,maxHeight:s,isStatic:u}=e;return{x:t,y:a,w:r,h:l,minW:i,minH:o,maxW:c,maxH:s,i:n,static:u}},h=e=>{let{x:t,y:a,w:r,h:l,maxW:n,minW:i,minH:o,maxH:c,i:s}=e;return{x:t,y:a,width:r,height:l,minWidth:i,minHeight:o,maxWidth:n,maxHeight:c,id:s,isStatic:f(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},y=e=>(e||[]).map(h),g=(0,u.curry)(((e,t)=>(e||[]).find((0,u.propEq)("id",t)))),v=(0,u.curry)(((e,t,a)=>(0,u.mergeAll)([a,(0,u.pick)(e,t)]))),b=(0,u.curry)(((e,t,a)=>(a||[]).map((a=>(0,u.pipe)((0,u.prop)("id"),g(t),(0,u.defaultTo)({}),v(e,u.__,a))(a)))));var E=a(79692),x=a(27502);const O=(0,E.Z)((e=>({gridLayout:{position:"relative",width:"100%","& .react-grid-item":{"&.react-grid-placeholder":{background:"rgba(0, 0, 0, 0.03)",border:"2px dashed rgba(0, 0, 0, 0.3)",borderRadius:"3px",transitionDuration:"100ms",zIndex:7,userSelect:"none","& .react-resizable-handle":{display:"none"}},"&.static .react-resizable-handle":{display:"none"},"&.cssTransforms":{transitionProperty:"transform"},"&.resizing":{zIndex:9,willChange:"width, height",pointerEvents:"none"},"&.react-draggable-dragging":{transition:"none",zIndex:8,willChange:"transform","& .react-resizable-handle":{backgroundImage:"none"}},"& .react-resizable-handle":{position:"absolute",width:"17px",height:"17px",bottom:0,right:0,zIndex:20,backgroundImage:`url('${(0,x.m5F)('<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path stroke="#505050" stroke-opacity=".54" d="M9.5 0v10M0 9.5h9M7.5 4v4M4 7.5h3"/>\n</svg>')}')`,backgroundRepeat:"no-repeat",backgroundOrigin:"content-box",boxSizing:"border-box",cursor:"se-resize"},"&.fullscreen":{visibility:"visible",position:"unset",width:"100% !important",height:"100% !important",transform:"translate(0) !important"}}},gridFullscreen:{height:"100% !important",overflowY:"hidden","& .react-resizable-handle, & .react-grid-item":{visibility:"hidden"}}})));function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},w.apply(this,arguments)}function N(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const T=e=>{let{views:t,layout:a,layoutOptions:r,onLayoutChanged:l,draggableHandle:o,LayoutItem:d,onRemove:f,onDrop:v,droppingItem:E,isDroppable:x,classes:T}=e;const S=(0,n.useRef)(),R=O(),[I,C]=(0,n.useState)(null),[A,D]=(0,n.useState)(0),{cols:L,rowHeight:P,margin:_}=r,j=(0,n.useMemo)((()=>(e=>(e||[]).map(m))(a)),[a]),M=(0,u.pipe)(y,b(["autosizing"],a),l),k=(0,n.useCallback)((e=>C((t=>t?null:e))),[]),F=null!==I,U=(0,n.useCallback)(((e,t)=>{let n=!1;const i=a.map((a=>{if(a.id===t&&e){const t=((e,t)=>{const{margin:a,rowHeight:r}=t;return Math.ceil((e+a[1])/(r+a[1]))})(e,r);if(a.height!==t)return n=!0,function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){N(e,t,a[t])}))}return e}({},a,{minHeight:t,maxHeight:t,height:t})}return a}));n&&l(i)}),[a,r,l]);return i().createElement(i().Fragment,null,i().createElement(s.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>D(e)}),i().createElement(c(),{innerRef:S,layout:j,cols:L,draggableHandle:o,autoSize:!0,rowHeight:P,width:A,margin:_,onLayoutChange:M,isResizable:!F,isDraggable:!F,className:p()(R.gridLayout,{[R.gridFullscreen]:F}),onDrop:(e,t,a)=>{v&&v(y(e),h(t),a)},droppingItem:E,isDroppable:x},j.map((e=>{const r=I===e.i,l=(g(a,e.i)||{}).autosizing?{AutosizeComponent:(n=e.i,i().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>{U(t,n)}}))}:{};var n;return i().createElement(d,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:k,onRemove:f,className:p()({fullscreen:r},T.item),isFullscreen:r},l))}))))};T.defaultProps={layoutOptions:{cols:4,rowHeight:30,margin:[15,15]},onConfigChanged:u.identity,onLayoutChanged:u.identity,classes:{}},T.propTypes={views:l().array,layout:l().array,layoutOptions:l().object,onConfigChanged:l().func,onLayoutChanged:l().func,onDrop:l().func,onRemove:l().func,LayoutItem:l().elementType,draggableHandle:l().string,isDroppable:l().bool,droppingItem:l().object,classes:l().shape({item:l().string})};const S=(0,n.memo)(T)},21210:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(89810),l=a(27502),n=a(24328),i=a.n(n),o=a(52730),c=a(42639);const s=e=>{let{sourceType:t,className:a,classes:n}=e;const s=(0,o.useSelector)(r.ZP.selectors.getMetadata),{label:u,icon:d}=(0,l.PWK)(s,t);return i().createElement(c.Z,{className:a,avatarText:u[0],icon:d?(0,l.vPL)("https://s3.amazonaws.com/reltio.images/api",d):null,variant:"square",rootClasses:n})}},39878:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(24328),l=a.n(r),n=a(27502),i=a(17440);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},o.apply(this,arguments)}function c(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const s=e=>{const t=t=>{let{data:a}=t,s=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(t,["data"]);const u=(0,r.useMemo)((()=>a&&(e=>{const t=(0,n.QK6)((0,i.pluck)("value",e),1);return e.map(((e,a)=>function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){c(e,t,a[t])}))}return e}({},e,{percent:t[a]})))})(a)),[a]);return l().createElement(e,o({data:u},s))};return t.displayName="WithPercents",t}},59383:(e,t,a)=>{a.d(t,{d:()=>l});const r=(0,a(79692).Z)({clickable:{cursor:"pointer"}}),l=e=>{const t=r();return e?t.clickable:void 0}},11326:(e,t,a)=>{a.d(t,{a:()=>l});var r=a(24328);const l=e=>{const[t,a]=(0,r.useState)(!1),[l,n]=(0,r.useState)({});return(0,r.useEffect)((()=>{e().then((e=>{n(e||{})})).then((e=>a(!0))).catch((e=>a(!0)))}),[]),{isLoaded:t,savedState:l}}},43129:(e,t,a)=>{a.d(t,{Z:()=>o});var r=a(24328),l=a.n(r),n=a(67358);const i=(0,a(79692).Z)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),o=()=>{const e=i();return l().createElement(n.Z,{color:"secondary",className:e.loader})}},65298:(e,t,a)=>{a.d(t,{Z:()=>c});var r=a(24328),l=a.n(r),n=a(1730),i=a(52388);const o=(0,a(79692).Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),c=e=>{let{id:t,children:a}=e;const r=o();return l().createElement(i.H.Provider,{value:t},l().createElement(n.Z,{className:r.view},a))}},52388:(e,t,a)=>{a.d(t,{H:()=>l});var r=a(24328);const l=a.n(r)().createContext(null);l.displayName="DashboardViewIdContext"},5260:(e,t,a)=>{let r;a.d(t,{o:()=>r}),function(e){e.INIT="init",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(r||(r={}))},26505:(e,t,a)=>{a.r(t),a.d(t,{default:()=>ln});var r=a(24328),l=a.n(r),n=a(52730),i=a(33016),o=a(36138),c=a(27502),s=a(17440),u=a(87918),d=a.n(u),p=a(11326),f=a(7907),m=a(79002),h=a(89810),y=a(5260);const g=e=>{const[t,a]=(0,r.useState)(null);return(0,r.useEffect)((()=>{const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:(0,s.pluck)("uri",e)}]);(0,c.FK9)({query:(0,c.ECL)({activeness:"active",filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}).then((e=>{let{type:t}=e;return a(t)})).catch((()=>a(null)))}),[e]),t};var v=a(90436),b=a(79692);const E=(0,b.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"}}),x=e=>{let{title:t,children:a}=e;const r=E();return l().createElement("div",{className:r.root},l().createElement(v.Z,{variant:"body2",className:r.title},t),l().createElement("div",{className:r.content},a))};var O=a(17822);let w;!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"}(w||(w={}));var N=a(73487),T=a(78223),S=a(39878);const R=(e,t,a)=>({attributes:(t||[]).map(((t,r)=>{let{filter:l,fieldName:n,values:i}=t;return{data:{uri:null==a?void 0:a.uri,entityTypeUri:e,fieldName:n},filter:l,id:`attribute_${r}`,operator:"and",values:i}})),entityTypes:[e],id:"group",operator:"or"});let I,C;!function(e){e.STRING="string",e.FLOAT="float",e.INTEGER="integer",e.BOOLEAN="boolean",e.DATE="date",e.SSN="SSN",e.UNKNOWN="unknown"}(I||(I={})),function(e){e.ENTITY_TYPE="entityType",e.ATTRIBUTE_TYPE="attributeType"}(C||(C={}));const A={[C.ATTRIBUTE_TYPE]:[{id:"FillRateView",type:w.FILL_RATE_CHART,title:"Fill rate"},{id:"UniquenessAnalysisView",type:w.UNIQUENESS_CHART,title:d().text("Uniqueness analysis")},{id:"SummaryView",type:w.SUMMARY,title:d().text("Summary")},{id:"ValidationView",type:w.VALIDATION,title:d().text("Profiles with invalid data")},{id:"FrequencyAnalysis",type:w.FREQUENCY,title:d().text("Frequency analysis")},{id:"LengthStatistics",type:w.LENGTH,title:d().text("Length statistics")},{id:"PatternAnalysis",type:w.PATTERN,title:d().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:w.CROSSWALK,title:d().text("Source system analysis")},{id:"MonthDistribution",type:w.MONTH_DISTRIBUTION,title:d().text("Month distribution")},{id:"DayOfWeekDistribution",type:w.DAY_OF_WEEK_DISTRIBUTION,title:d().text("Day of week distribution")},{id:"DayOfMonthDistribution",type:w.DAY_OF_MONTH_DISTRIBUTION,title:d().text("Day of month distribution")},{id:"ValueDistribution",type:w.VALUE_DISTRIBUTION,title:d().text("Value distribution")},{id:"UnsupportedDataType",type:w.UNSUPPORTED,title:d().text("Unsupported Data Type")}],[C.ENTITY_TYPE]:[{id:"SummaryView",type:w.SUMMARY,title:d().text("Summary")}]},D={[C.ATTRIBUTE_TYPE]:{default:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"LengthStatistics"}],[I.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"}],[I.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"}],[I.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"}],[I.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"}],[I.FLOAT]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}]}};function L(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){P(e,t,a[t])}))}return e}function P(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const _=(0,s.map)((e=>L({},e,{localizedValue:d().number(e.value)}))),j=e=>(0,s.isNil)(e)?"":`(${e}%)`,M=e=>(0,s.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),k=(0,s.curry)(((e,t,a)=>({advanced:[R(t,a.map((0,s.when)((()=>(0,c.Lt4)(e.type)),(0,s.evolve)({values:(0,s.map)((0,c.mOr)(c.ZBU))}))),e)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}))),F=e=>t=>{let{detailedAttributeType:a,entityTypeUri:r,dvfs:l}=t;return(0,s.pipe)(e({fieldName:a.fieldName,entityTypeUri:r,dvfs:l}),k(a,r))},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 I.STRING;case c.oS0.TYPE_COUNT:case c.oS0.TYPE_DOLLAR:case c.oS0.TYPE_INT:case c.oS0.TYPE_LONG:return I.INTEGER;case c.oS0.TYPE_FLOAT:case c.oS0.TYPE_DOUBLE:case c.oS0.TYPE_NUMBER:return I.FLOAT;case c.oS0.TYPE_BOOLEAN:case c.oS0.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return I.BOOLEAN;case c.oS0.TYPE_ACTIVENESS_DATE:case c.oS0.TYPE_DATE:case c.oS0.TYPE_LOCAL_DATE:case c.oS0.TYPE_TIMESTAMP:return I.DATE;case c.oS0.TYPE_SSN:return I.SSN;default:return I.UNKNOWN}},z=e=>{let{percent:t,value:a}=e;return L({width:`${t}%`},a>0&&{minWidth:"3px"})},B=(0,s.pipe)((0,s.pluck)("percent"),(e=>Math.max(...e)));var V=a(71153),H=a.n(V);const Z=(0,b.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}}),W=e=>{let{payload:t}=e;const a=Z();return l().createElement("div",{className:H()(a.wrapper)},t.map((e=>l().createElement("div",{key:e.id,className:a.item},l().createElement("div",{style:{background:e.color},className:a.itemColor}),e.value))))},Y=(0,b.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 G(){return G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},G.apply(this,arguments)}const q=(0,r.forwardRef)(((e,t)=>{let{className:a}=e,r=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["className"]);const n=Y();return l().createElement("div",G({className:H()(n.bar,a)},r,{ref:t}))}));q.displayName="Bar";const $=q,Q=(0,b.Z)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"}}),K=e=>{let{label:t,value:a}=e;const r=Q();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:H()(r.label,r.chartDataLabel)},t),a)},X=(0,b.Z)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),J=e=>{let{data:t,title:a,DataRenderer:r=K}=e;const n=X();return l().createElement("div",{className:n.tooltipWrapper},a&&l().createElement("div",{className:n.title},a),t.map(((e,t)=>l().createElement("div",{key:t,className:n.row},l().createElement(r,e)))))};function ee(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){te(e,t,a[t])}))}return e}function te(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const ae=(0,T.Z)($),re=e=>{let{label:t,value:a,percent:r}=e;return[{label:t,value:`${d().number(a)} ${j(r)}`}]},le=(0,S.Z)((e=>{let{data:t,colors:a,onItemClick:r}=e;const n=Y(),i=r&&(e=>r(e)),o=!!r;return l().createElement("div",{className:n.root},l().createElement("div",{className:n.stackedBar},t.map(((e,t)=>l().createElement(ae,{className:o&&n.clickable,key:e.label,tooltipTitle:l().createElement(J,{data:re(e)}),style:ee({},z(e),{background:a[t]}),onClick:()=>i(e.group)})))),l().createElement("div",{className:n.legendWrapper},l().createElement(N.De,{layout:"vertical",align:"left",verticalAlign:"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%"},content:l().createElement(W,null),payload:(t||[]).map(((e,t)=>{let{group:r,label:i,value:o,percent:s}=e;return{id:r,type:"square",color:a[t],value:l().createElement(l().Fragment,null,l().createElement("span",{className:n.legendLabel},i),l().createElement("span",{className:n.legendValue},`${(0,c.k7L)(o,999)} ${j(s)}`))}}))})))}));var ne=a(17998),ie=a(39475),oe=a(82726);const ce=(0,b.Z)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:"5px",lineHeight:"24px"},infoIcon:{position:"relative"}}))),se=e=>{let{title:t,infoTooltipTitle:a,children:r}=e;const n=ce(!!r),i=!!a;return l().createElement(ne.Z,{title:t,className:n.root,classes:{title:n.title}},i&&l().createElement(ie.k,{icon:oe.Z,size:"XXS",tooltipTitle:a,className:n.infoIcon}),r)};var ue=a(44443),de=a(7882),pe=a(82068),fe=a(43129),me=a(77277),he=a(43266);let ye;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(ye||(ye={}));const ge=(0,b.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"}}))),ve=m.B9.ERROR,be=e=>{let{onRefresh:t,height:a,errorData:r={},variant:n=ye.SMALL}=e;const{Icon:i=ve,message:o,title:c}=r,s=ge({height:a});return l().createElement("div",{className:H()(s.container,s[`${n}`])},l().createElement(i,{className:s.icon}),c&&l().createElement(v.Z,{className:s.title},c),o&&l().createElement(v.Z,{className:s.message},o),!!t&&l().createElement(me.Z,{className:s.refreshButton,startIcon:l().createElement(he.Z,{color:"primary",className:s.refreshIcon}),onClick:t,"data-reltio-id":"reltio-dq-dashboard-chart-refresh-button"},l().createElement(v.Z,{variant:"button"},d().text("Refresh"))))},Ee=(0,b.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"}}),xe=m.B9.NO_DATA,Oe=e=>{let{height:t,data:a={},variant:r=ye.SMALL}=e;const{Icon:n=xe,message:i,title:o}=a,c=Ee({height:t});return l().createElement("div",{className:H()(c.container,c[`${r}`])},l().createElement(n,{className:c.icon}),o&&l().createElement(v.Z,{className:c.title},o),i&&l().createElement(v.Z,{className:c.message},i))},we=(0,b.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}}))),Ne=e=>{let{loadingState:t,onRefresh:a,children:r,data:n,className:i}=e;const o=we();return l().createElement(pe.Z,{className:H()(o.viewContent,i)},l().createElement(ue.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:i,height:o}=e;switch(t){case y.o.LOADED:return n&&0!==n.length?l().createElement(de.Z,{error:l().createElement(be,{errorData:{message:d().text("Something went wrong")},height:o,variant:ye.SMALL})},r({data:n,width:i,height:o})):l().createElement(Oe,{height:o,data:{Icon:m.B9.NO_DATA,message:d().text("Go ahead and load some data. We’ll put it on the scales and let you know here if it measures up."),title:d().text("Give us something to go on!")},variant:ye.SMALL});case y.o.LOADING:return l().createElement(fe.Z,null);case y.o.ERROR:return l().createElement(be,{errorData:{Icon:m.B9.ERROR,message:d().text("No need to fret - just refresh and it will work itself out."),title:d().text("Oops! We ran into a problem.")},height:o,onRefresh:a,variant:ye.SMALL});default:return l().createElement("div",null,"Loading...")}})))};var Te=a(1730);const Se=(0,b.Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),Re=e=>{let{config:t,children:a}=e;const r=Se(),{type:n}=t;return l().createElement(Te.Z,{className:r.view,"data-reltio-id":`reltio-dq-dashboard-chart-${n}`},a)},Ie=e=>{let{label:t,value:a}=e;const r=Q();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:H()(r.label,r.infoDataLabel)},t),a)},Ce={[c.s9T.MISSING]:"#CE5C00",[c.s9T.EXISTS]:"#C4CE00"},Ae=(0,s.map)((e=>{let{group:t}=e;return Ce[t]||(0,c.f4_)(t)})),De=e=>({[c.s9T.MISSING]:d().text("Missing"),[c.s9T.EXISTS]:d().text("Exists")}[e]||e),Le=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:De(t),group:t,value:a}})),(0,s.sortBy)((e=>Object.values(c.s9T).indexOf(e.group))),_),Pe=e=>Object.keys(e).reduce(((t,a)=>(t[a]=Le(e[a]),t)),{}),_e=(0,s.propOr)({},"fillRate"),je=(0,s.pipe)(_e,Le,(0,s.when)(M,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,Ae])),Me=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:t===c.s9T.EXISTS?c.j5E.EXISTS:c.j5E.MISSING_VALUE,fieldName:a}]})),ke=F(Me),Fe=l().createContext(null);Fe.displayName="ChartsDataContext";const Ue=e=>{const{data:t,state:a,reload:l}=(0,r.useContext)(Fe);return{data:(0,r.useMemo)((()=>e(t)),[t,e]),state:a,reload:l}},ze=l().createContext(null);ze.displayName="DetailedAttributeTypeContext";const Be=l().createContext(null);Be.displayName="EntityTypeContext";const Ve=e=>{const t=(0,n.useDispatch)(),a=(0,r.useContext)(ze),l=(0,r.useContext)(Be);return(0,s.pipe)(e({detailedAttributeType:a,entityTypeUri:l.uri}),h.ui.actions.openSearch,t)},He=e=>{let{config:t}=e;const{title:a}=t,{data:r,state:n,reload:i}=Ue(je),{chartData:o,colors:c}=r,s=Ve(ke),u=l().createElement(J,{title:d().text("Fill rate"),data:[{label:`${d().text("Exists")}:`,value:d().text("Profiles with data")},{label:`${d().text("Missing")}:`,value:d().text("Profiles without data")}],DataRenderer:Ie});return l().createElement(Re,{config:t},l().createElement(se,{title:a,infoTooltipTitle:u}),l().createElement(Ne,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(le,{data:t,colors:c,onItemClick:s})})))},Ze={[c.dC6.UNIQUE]:"#4BAFFF",[c.dC6.NOT_UNIQUE]:"#C34980"},We=(0,s.map)((e=>{let{group:t}=e;return Ze[t]||(0,c.f4_)(t)})),Ye=e=>({[c.dC6.UNIQUE]:d().text("Unique"),[c.dC6.NOT_UNIQUE]:d().text("Not unique")}[e]||e),Ge=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:Ye(t),group:t,value:a}})),(0,s.sortBy)((e=>Object.values(c.dC6).indexOf(e.group))),_),qe=(0,s.propOr)({},"uniqueness"),$e=(0,s.pipe)(qe,Ge,(0,s.when)(M,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,We])),Qe=e=>{let{config:t}=e;const{title:a}=t,{data:r,state:n,reload:i}=Ue($e),{chartData:o,colors:c}=r,s=l().createElement(J,{title:d().text("Uniqueness analysis"),data:[{label:`${d().text("Unique")}:`,value:d().text("Number of values that only appear once and have no duplicates")},{label:`${d().text("Not unique")}:`,value:d().text("Number of values that have at least one duplicate in the list")}],DataRenderer:Ie});return l().createElement(Re,{config:t},l().createElement(se,{title:a,infoTooltipTitle:s}),l().createElement(Ne,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(le,{data:t,colors:c})})))};var Ke=a(4614),Xe=a(80030),Je=a(7089);const et=(e,t)=>(e||[]).some((0,s.propEq)("attribute",t)),tt=e=>[c.oS0.TYPE_FLOAT,c.oS0.TYPE_DOUBLE,c.oS0.TYPE_NUMBER].includes(e);let at;function rt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){lt(e,t,a[t])}))}return e}function lt(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}!function(e){e.INCLUDED_IN_MATCHING="includedInMatching",e.CONTAIN_VF="containVF",e.REQUIRED="required",e.REFERENCE="reference",e.RDM_LOOKUP="RDMLookup"}(at||(at={}));const nt=(0,s.curry)(((e,t)=>e.some((e=>t.details[e.value])))),it=(0,s.curry)(((e,t)=>{var a;return 0===e.length||nt(e,t)||(null===(a=t.children)||void 0===a?void 0:a.some((t=>it(e,t))))})),ot=(0,s.curry)(((e,t)=>{var a;const r=e[t.fieldName];return null==r||null===(a=r.find((0,s.propEq)("group",c.s9T.EXISTS)))||void 0===a?void 0:a.value})),ct=(0,s.curry)(((e,t)=>{var a;const r=e[t.fieldName];return!(null!=r&&null!==(a=r.find((0,s.propEq)("group",c.s9T.EXISTS)))&&void 0!==a&&a.value)})),st=(0,s.curry)((function(e,t){var a;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const l=t.fieldName||(0,c.Tde)(t.uri,r);return ct(e,rt({},t,{fieldName:l}))||(null===(a=t.children)||void 0===a?void 0:a.some((a=>st(e,a,r.concat({name:t.name,label:t.label})))))})),ut=(0,s.curry)(((e,t)=>t.reduce(((t,a)=>{const r=((e,t)=>{var a;return null===(a=e.label||e.name)||void 0===a?void 0:a.toLowerCase().includes(t.toLowerCase())})(a,e),l=r?a.children||[]:ut(e,a.children||[]);return(r||l.length)&&t.push(Object.assign({},a,l.length&&{children:l})),t}),[])));function dt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){pt(e,t,a[t])}))}return e}function pt(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const ft=e=>{let{attrTypeItem:t,dvf:a=[],matchAttributes:r=[]}=e;const{uri:l,required:n,isAttributeReference:i}=t;return{[at.INCLUDED_IN_MATCHING]:r.includes(l),[at.CONTAIN_VF]:et(a,l),[at.REQUIRED]:!!n,[at.REFERENCE]:i,[at.RDM_LOOKUP]:(0,c.lS4)(t)}},mt=e=>({[at.INCLUDED_IN_MATCHING]:d().text("Included in match rule"),[at.CONTAIN_VF]:d().text("Has validation functions"),[at.REQUIRED]:d().text("Required"),[at.REFERENCE]:d().text("Reference attribute"),[at.RDM_LOOKUP]:d().text("RDM")}[e]||e),ht=(0,s.curry)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return(0,s.pipe)((0,s.chain)((e=>{const l=e.children?ht(e.children,t.concat({name:e.name,label:e.label}),a||(0,c.YkG)(e),r+1):[];return[{attributeItem:dt({},e,{fieldName:(0,c.Tde)(e.uri,t),isAttributeReference:(0,c.YkG)(e)||a}),level:r},...l]})))(e)}));function yt(){return yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},yt.apply(this,arguments)}const gt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",yt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#6663F6"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 14.4h2.411c.016-.205.047-.405.093-.6H8.4v-1.2h3.012c.137-.215.296-.416.472-.6H8.4v-1.2h6v.011a3.896 3.896 0 011.8.287V8.4c0-.66-.54-1.2-1.2-1.2H7.8c-.66 0-1.2.54-1.2 1.2v7.8c0 .66.54 1.2 1.2 1.2h4.083a3.892 3.892 0 01-.979-1.8H8.4v-1.2zm6-4.2h-6V9h6v1.2zm2.58 5.934L18.852 18l-.852.852-1.872-1.872a2.66 2.66 0 01-1.434.42A2.695 2.695 0 0112 14.7c0-1.494 1.206-2.7 2.7-2.7 1.494 0 2.7 1.206 2.7 2.7 0 .528-.156 1.014-.42 1.434zm-2.28.066a1.5 1.5 0 10-.001-3.001A1.5 1.5 0 0014.7 16.2z",fill:"#fff"}))};function vt(){return vt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},vt.apply(this,arguments)}const bt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",vt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#1DACF5"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4 9.6H9.3L12 6.9l2.7 2.7h-2.1v3.846l-3.6 3.6-.846-.846 3.246-3.246V9.6zm4.446 6.6l-.846.846L12.954 15l.846-.846 2.046 2.046z",fill:"#fff"}))};function Et(){return Et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Et.apply(this,arguments)}const xt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Et({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#7F22FD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 9v1.2h1.2V9H8.4zm0 2.4v1.2h1.2v-1.2H8.4zm0 2.4V15h1.2v-1.2H8.4zM10.8 9v1.2h4.8V9h-4.8zm0 2.4v1.2h4.8v-1.2h-4.8zm0 2.4V15h4.8v-1.2h-4.8zm6-6v8.4H7.2V7.8h9.6zm1.2 9V6.6H6V17.4h12v-.6z",fill:"#fff"}))};function Ot(){return Ot=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Ot.apply(this,arguments)}const wt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Ot({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#4B31E9"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 15.6h1.8V15a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-3V9.6H8.4a.6.6 0 01-.6-.6V6.6a.6.6 0 01.6-.6H12a.6.6 0 01.6.6V9a.6.6 0 01-.6.6h-1.2v1.8h1.8v-.6a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-1.8v3z",fill:"#fff"}))};function Nt(){return Nt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Nt.apply(this,arguments)}const Tt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Nt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#80D2FC"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6c-3.312 0-6 2.688-6 6s2.688 6 6 6 6-2.688 6-6-2.688-6-6-6zm-.6 4.96V9h1.2v1.96l1.698-.98.6 1.04L13.2 12l1.698.98-.6 1.04-1.698-.98V15h-1.2v-1.96l-1.698.98-.6-1.04L10.8 12l-1.698-.98.6-1.04 1.698.98zM7.2 12c0 2.646 2.154 4.8 4.8 4.8s4.8-2.154 4.8-4.8-2.154-4.8-4.8-4.8A4.806 4.806 0 007.2 12z",fill:"#fff"}))},St=(0,b.Z)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),Rt={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let It;!function(e){e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal"}(It||(It={}));const Ct=e=>{let{detailType:t,size:a=Rt.NORMAL,variant:r=It.NORMAL}=e;const n=St(a),i=H()(n.icon,n[r]);switch(t){case at.RDM_LOOKUP:return l().createElement(xt,{className:i});case at.CONTAIN_VF:return l().createElement(gt,{className:i});case at.INCLUDED_IN_MATCHING:return l().createElement(bt,{className:i});case at.REFERENCE:return l().createElement(wt,{className:i});case at.REQUIRED:return l().createElement(Tt,{className:i});default:return null}},At=(0,b.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 Dt(){return Dt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Dt.apply(this,arguments)}function Lt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){Pt(e,t,a[t])}))}return e}function Pt(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const _t=e=>{let{detailType:t,classes:a}=e,n=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["detailType","classes"]);const i=At(),{data:o,state:s}=(0,r.useContext)(Fe);let u=It.NORMAL;const d=s===y.o.LOADING,p=(e=>{var t;return 0===(null==e||null===(t=e.fillRate)||void 0===t?void 0:t[c.s9T.MISSING])})(o);return t===at.REQUIRED&&(d&&(u=It.LOADING),d||p||(u=It.BAD_QUALITY)),l().createElement(Je.Z,Dt({classes:Lt({root:H()(i.root,{[i.badQuality]:t===at.REQUIRED&&!d&&s!==y.o.INIT&&!p}),label:i.label},a),label:mt(t),icon:l().createElement(Ct,{detailType:t,variant:u})},n))},jt=(0,b.Z)({root:{display:"flex",flexWrap:"wrap",flexGrow:1}}),Mt=e=>{let{details:t,chipClasses:a={}}=e;const r=jt();return l().createElement("div",{className:r.root},Object.entries(t||{}).filter((e=>{let[,t]=e;return t})).map((e=>{let[t]=e;return l().createElement(_t,{key:t,detailType:t,classes:a})})))},kt=(0,b.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"}}),Ft=e=>{let{title:t,children:a,className:r}=e;const n=kt();return l().createElement("div",{className:H()(n.info,r)},l().createElement("div",{className:n.infoTitle},t),l().createElement("div",{className:n.infoContent},a))};function Ut(){return Ut=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Ut.apply(this,arguments)}const zt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Ut({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg1279746712a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"15",height:"8"},l().createElement("path",{d:"M11.667 4H5C2.793 4 1 5.793 1 8s1.793 4 4 4h6.667c2.206 0 4-1.793 4-4s-1.794-4-4-4zm0 6.667H5a2.666 2.666 0 110-5.334h6.667a2.666 2.666 0 110 5.334zm0-4.667c-1.107 0-2 .893-2 2s.893 2 2 2c1.106 0 2-.893 2-2s-.894-2-2-2z",fill:"#000"})),l().createElement("g",{mask:"url(#svg1279746712a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Bt(){return Bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Bt.apply(this,arguments)}const Vt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Bt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg208732808a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"14"},l().createElement("path",{d:"M7.992 1.333A6.663 6.663 0 001.332 8c0 3.68 2.98 6.667 6.66 6.667A6.67 6.67 0 0014.665 8a6.67 6.67 0 00-6.673-6.667zm.007 12A5.332 5.332 0 012.665 8 5.332 5.332 0 018 2.667 5.332 5.332 0 0113.332 8a5.332 5.332 0 01-5.333 5.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z",fill:"#000"})),l().createElement("g",{mask:"url(#svg208732808a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Ht(){return Ht=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Ht.apply(this,arguments)}const Zt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Ht({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg1638934380a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},l().createElement("path",{d:"M5.948 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2zM7.947 12v-1.1h1.1V12h-1.1zM13.65 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2z",fill:"#000"})),l().createElement("g",{mask:"url(#svg1638934380a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Wt(){return Wt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Wt.apply(this,arguments)}const Yt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Wt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("path",{d:"M2.11 12v-.825h1.331V5.169L2 5.741v-.89L3.331 4.3h1.045v6.875h1.089V12H2.11zM5.968 11.032l1.65-2.508c.242-.367.403-.62.484-.759.08-.147.136-.29.165-.429.03-.14.044-.341.044-.605v-.77a.778.778 0 00-.253-.583c-.169-.161-.389-.242-.66-.242h-1.21V4.3h1.1c.638 0 1.126.158 1.463.473.345.308.517.774.517 1.397v.462c0 .367-.018.645-.055.836-.037.19-.103.37-.198.539-.088.169-.264.455-.528.858l-1.518 2.299h2.519V12h-3.52v-.968zM13.544 10.262c0 .609-.147 1.052-.44 1.331-.293.271-.77.407-1.43.407h-1.298v-.825h1.397c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.239c0-.242-.073-.433-.22-.572-.147-.147-.341-.22-.583-.22h-1.067v-.825h.957a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.902c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187h-1.298V4.3h1.166c.623 0 1.093.14 1.408.418.323.271.484.704.484 1.298v.693c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.924z",fill:"#000",fillOpacity:".541"}))};function Gt(){return Gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Gt.apply(this,arguments)}const qt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Gt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg924767730a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},l().createElement("path",{d:"M5.463 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H2.03v-.836h1.562c.271 0 .491-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.059-.396-.176-.528-.11-.14-.279-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473h1.463v.836H3.714c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM9.136 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H5.704v-.836h1.562c.27 0 .49-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.06-.396-.176-.528-.11-.14-.28-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473H8.96v.836H7.387c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM12.255 12l-1.683-6.886V12H9.68V4.3h1.562l1.694 6.886V4.3h.89V12h-1.572z",fill:"#000"})),l().createElement("g",{mask:"url(#svg924767730a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function $t(){return $t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},$t.apply(this,arguments)}const Qt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",$t({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg3578961193a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},l().createElement("path",{d:"M5.345 12l-.418-1.947H2.782L2.353 12h-.979l1.86-7.7h1.264L6.324 12h-.979zM3.85 5.026l-.89 4.202H4.75L3.85 5.026zM10.494 10.262c0 .63-.146 1.078-.44 1.342-.286.264-.763.396-1.43.396h-2.09V4.3h1.958c.653 0 1.13.132 1.43.396.308.264.462.704.462 1.32v.627c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.99zM9.427 5.917c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187H7.491v2.431h1.133a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.836zm.11 3.256c0-.242-.073-.433-.22-.572-.147-.147-.34-.22-.583-.22H7.491v2.794h1.232c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.173zM13.119 12c-.638 0-1.13-.154-1.474-.462-.337-.315-.506-.785-.506-1.408V6.17c0-.623.169-1.089.506-1.397.345-.315.836-.473 1.474-.473h1.342v.836h-1.452c-.271 0-.491.08-.66.242a.778.778 0 00-.253.583v4.378c0 .227.084.422.253.583.169.161.389.242.66.242h1.452V12h-1.342z",fill:"#000"})),l().createElement("g",{mask:"url(#svg3578961193a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))},Kt=(0,b.Z)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}}}),Xt={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},Jt=e=>{let{type:t,size:a=Xt.SMALL}=e;const r=Kt(a);switch(U(t)){case I.STRING:return l().createElement(Qt,{className:r.icon});case I.FLOAT:return l().createElement(Zt,{className:r.icon});case I.INTEGER:return l().createElement(Yt,{className:r.icon});case I.BOOLEAN:return l().createElement(zt,{className:r.icon});case I.DATE:return l().createElement(Vt,{className:r.icon});case I.SSN:return l().createElement(qt,{className:r.icon});default:return l().createElement(Qt,{className:r.icon})}},ea=e=>{let{detailedAttributeType:t}=e;const a=kt(),n=(e=>{const[t,a]=(0,r.useState)(null),l=(0,r.useContext)(Be);return(0,r.useEffect)((()=>{if(l.uri&&e){const t={filter:c.j5E.EXISTS,fieldName:e},r={filter:c.j5E.EQUALS,fieldName:"type",values:[l.uri]};a(null),(0,c.j_Q)([t,r]).then((e=>{let{total:t}=e;a(t)}))}}),[l.uri,e]),t})(t.fieldName),i=null===n?l().createElement(Ke.Z,{size:"24",className:a.totalLoading}):(0,c.k7L)(n);return l().createElement("div",null,l().createElement("div",{className:a.header},l().createElement(Ft,{title:d().text("Profiles"),className:a.attributeTypeSummary},l().createElement(Xe.ZP,{title:l().createElement(J,{data:[{label:d().text("Entities with exists attribute"),value:d().number(n)}]})},l().createElement("div",null,i))),l().createElement(Ft,{title:d().text("Data type"),className:a.attributeTypeSummary},(o=t.type,l().createElement(l().Fragment,null,l().createElement("div",{className:a.attributeTypeIconWrapper},l().createElement(Jt,{type:o,size:Xt.NORMAL})),d().text(o))))),l().createElement(Mt,{details:t.details}));var o},ta=e=>{let{entityType:t}=e;const{data:a,state:i}=(0,r.useContext)(Fe),o=((e,t)=>{const a=t.attributes||[],r=t=>t.filter(c.Uty).filter((0,s.either)((0,s.prop)("label"),(0,s.prop)("name"))).reduce(((t,a)=>{const l=(0,c.EUG)(e,a);return null!=l&&l.length?[...t,a,...r(l)]:[...t,a]}),[]);return r(a).length})((0,n.useSelector)(h.ZP.selectors.getMetadata),t),{activeProfiles:u=0,inactiveProfiles:p=0,sourceSystems:f=0}=(null==a?void 0:a.summary)||{},m=e=>i===y.o.LOADING?l().createElement(Ke.Z,{size:"24",className:g.totalLoading}):d().number(e),g=kt();return l().createElement("div",{className:g.header},l().createElement(Ft,{title:d().text("Active profiles"),className:g.entitySummary},m(u)),l().createElement(Ft,{title:d().text("Inactive profiles"),className:g.entitySummary},m(p)),l().createElement(Ft,{title:d().text("Attributes"),className:g.entitySummary},d().number(o)),l().createElement(Ft,{title:d().text("Source systems"),className:g.entitySummary},m(f)))},aa=l().createContext(null);aa.displayName="DataLevelContext";const ra=(0,b.Z)({content:{padding:"0 16px",marginTop:"4px"}}),la=e=>{let{config:t}=e;const a=ra(),n=(0,r.useContext)(ze),i=(0,r.useContext)(aa),o=(0,r.useContext)(Be),s=i===C.ATTRIBUTE_TYPE,u=s?(0,c.idV)(n.label):(0,c.idV)(o.label);return l().createElement(Re,{config:t},l().createElement(se,{title:u}),l().createElement(pe.Z,{className:a.content},s?l().createElement(ea,{detailedAttributeType:n}):l().createElement(ta,{entityType:o})))};var na=a(65298);const ia=(0,b.Z)({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}});function oa(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){ca(e,t,a[t])}))}return e}function ca(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const sa=m.B9.ERROR,ua=e=>{let{config:t,errorData:a,titleChildren:r,infoTooltipTitle:n,onRefresh:i}=e;const{id:o,title:c}=t,s=ia();return l().createElement(na.Z,{id:o},l().createElement(se,{title:c,infoTooltipTitle:n},r),l().createElement(pe.Z,{className:s.viewContent},l().createElement(ue.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},l().createElement(be,{errorData:oa({Icon:sa},a),onRefresh:i,variant:ye.SMALL}))))},da=e=>{let{keyword:t,entityTypeUri:a}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[R(a)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}},pa=e=>{let{fieldName:t,value:a,entityTypeUri:r}=e;return da({keyword:`${c.j5E.EQUALS}(${t}, ${a})`,entityTypeUri:r})};function fa(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const ma=e=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:t,group:t,value:a}})),_),ha=e=>{let{sortDirection:t,sortField:a}=e;return(e,r)=>"asc"===t?e[a]>r[a]?1:-1:e[a]<r[a]?1:-1},ya=(0,s.curry)(((e,t)=>t.filter((t=>e.find((0,s.propEq)("uri",t.group)))).map((t=>{const a=e.find((0,s.propEq)("uri",t.group)).name;return function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){fa(e,t,a[t])}))}return e}({},t,{label:a,group:a})})))),ga=ma("frequency"),va=ma("pattern"),ba=e=>[{filter:c.j5E.EQUALS,values:[[e]],fieldName:"analyticsAttributes.AttributeValidations.FunctionName"}],Ea=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return pa({fieldName:`${a.fieldName}`,value:t,entityTypeUri:r})})),xa=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:c.j5E.ON,values:[t],fieldName:a}]})),Oa=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:a}]})),wa=e=>{let{detailedAttributeType:t,entityTypeUri:a}=e;return(0,s.cond)([[c.j5n,(0,s.always)(Ea)],[c.Lt4,(0,s.always)(F(xa))],[s.identity,(0,s.always)(F(Oa))]])(t.type)({detailedAttributeType:t,entityTypeUri:a,dvfs:[]})},Na=F((()=>ba)),Ta=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return pa({fieldName:`${a.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:r})}));var Sa=a(79573),Ra=a(45108),Ia=a(92332),Ca=a(83088);const Aa=(0,s.pipe)((0,s.split)("|"),(e=>{let[t,a]=e;return{label:t,percent:a}})),Da={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"},La=(0,b.Z)((e=>({colorBarContainer:{position:"relative",width:"100%",marginLeft:"16px",padding:"5px 0 6px",height:"100%",boxSizing:"border-box","&>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":Da},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":Da},tooltipValue:{whiteSpace:"pre-wrap"}})));function Pa(){return Pa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Pa.apply(this,arguments)}function _a(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){ja(e,t,a[t])}))}return e}function ja(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Ma=e=>{let{className:t,headCellData:a,headIndex:r}=e,n=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["className","headCellData","headIndex"]);const i=La(!r),{label:o,percent:c}=Aa(a.label),s=!!c,u=l().createElement(Ca.C,{value:o},l().createElement("div",{className:i.headLabel},o));return l().createElement("div",{className:H()(i.headCell,t)},l().createElement(Ia.default,Pa({},n,{headCellData:_a({},a,{label:s?l().createElement("div",{className:i.labelPercantageWrapper},l().createElement("div",{className:i.labelWrapper},u),l().createElement("div",{className:i.percentsWrapper},l().createElement("span",{className:i.percentLabel},"0%"),l().createElement("span",{className:i.percentLabel},c,"%"))):u})})))};var ka=a(59383),Fa=a(30488);const Ua=(0,Fa.Z)(((e,t)=>{let{onItemClick:a}=e,{rowValue:{group:r}}=t;return{onClick:a&&(()=>{a(r)})}}))((e=>{let{value:t="",columnData:a,rowValue:r,onClick:n}=e;const{attributeCellClassName:i,LabelRenderer:o}=a,s=La(),u=(0,ka.d)(n),d=l().createElement("div",{className:s.tooltipValue},t),p=!!o;return l().createElement(Ca.C,{value:d},l().createElement("div",{className:H()(s.attribute,u,i),onClick:n},p?l().createElement(o,{chartData:r}):c.P6Y.strings.removeLineBreaks(t)))}));var za=a(89902);const Ba=(0,T.Z)((e=>{let{value:t,maxValue:a,className:r}=e;return l().createElement(za.Z,{width:t,maxWidth:a,className:r})})),Va=(0,Fa.Z)(((e,t)=>{let{onItemClick:a,valueHeader:r,labelHeader:l}=e,{rowValue:{group:n}}=t;return{onClick:a&&(()=>{a(n)}),valueHeader:r,labelHeader:l}}))((e=>{let{value:t,columnData:{maxValue:a},rowValue:{percent:r,label:n},labelHeader:i,valueHeader:o,onClick:u}=e;const p=La(),f=(0,ka.d)(u),m=l().createElement("span",{className:p.tooltipValue},n),h=0===t?"0":`${(0,c.k7L)(t,999)} ${j(r)}`,y=l().createElement(J,{data:[{label:i,value:m},{label:o,value:`${d().number(t)} ${j(r)}`}]});return l().createElement("div",{className:H()(p.numberContainer,f),onClick:u},l().createElement(v.Z,{className:p.numberWhithPercent},h),!(0,s.isNil)(a)&&l().createElement("div",{className:p.colorBarContainer},l().createElement(Ba,{value:t,maxValue:a,tooltipTitle:y,className:p.bar,showForDisabled:!0})))})),Ha=(0,b.Z)({tableContainer:e=>{let{width:t,height:a}=e;return{height:a,width:t,display:"flex",flexDirection:"column"}},cellBorder:{borderLeft:"none",borderRight:"none!important"}});function Za(){return Za=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Za.apply(this,arguments)}const Wa=e=>{let{width:t,height:a,data:n,options:i={},basicTableRef:o,onItemClick:c,labelCellClassName:s}=e,u=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["width","height","data","options","basicTableRef","onItemClick","labelCellClassName"]);const p=Ha({width:t,height:a}),{headers:[f,m]=[],showCountLabels:h=!1,showValues:y=!0,sortable:g=!1,LabelRenderer:v}=i,b=(0,r.useMemo)((()=>({cellBorder:p.cellBorder})),[p]),E=(0,r.useMemo)((()=>Math.max(...n.map((e=>e.value)))),[n]),x=(0,r.useMemo)((()=>{const e=B(n),t=m||d().text("No of Profiles");return e?t.concat(`|${e}`):t}),[n,m]),O=h?`${f} (${n.length})`:f,w=(0,r.useMemo)((()=>[{id:"label",label:O,resizable:!1,headCellRenderer:Ma,attributeCellClassName:s,rowCellValueRenderer:Ua,initialWidth:.4*t,sortable:g,LabelRenderer:v},...y?[{id:"value",label:x,resizable:!1,headCellRenderer:Ma,rowCellValueRenderer:Va,maxValue:E,initialWidth:.6*t,sortable:g}]:[]]),[x,E,t,f,y]),N=(0,r.useMemo)((()=>({onItemClick:c,labelHeader:f,valueHeader:m})),[c,f,m]);return l().createElement("div",{className:p.tableContainer},l().createElement(Ra.Z,Za({columnsData:w,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:b,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:N},u)))},Ya=(0,b.Z)((()=>({layoutItemContent:{padding:"0 0 10px"}}))),Ga=(0,S.Z)((e=>{let{config:t,data:a,title:n,headers:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,titleChildren:u,state:d,onRefresh:p,labelCellClassName:f,showCountLabels:m,LabelRenderer:h}=e;const y=Ya(),[g,v]=(0,r.useState)("desc"),[b,E]=(0,r.useState)("value"),x=(0,r.useCallback)(((e,t)=>c?c({sortDirection:g,sortField:b})(e,t):ha({sortDirection:g,sortField:b})(e,t)),[g,b]),O=e=>{v((()=>b===e?(0,Sa.Dh)(g):g)),E(e)},w=(0,r.useMemo)((()=>[...a.sort(x)]),[x,a]);return l().createElement("div",null,l().createElement(Re,{config:t},l().createElement(se,{title:n,infoTooltipTitle:o},u),l().createElement(Ne,{className:y.layoutItemContent,data:w,loadingState:d,onRefresh:p},(e=>{let{data:t,width:a=0,height:r=0}=e;return l().createElement(Wa,{data:t,width:a,height:r,options:{headers:i,sortable:!!c,showCountLabels:m,LabelRenderer:h},sorting:{field:b,order:g},onSort:O,onItemClick:s,labelCellClassName:f})}))))})),qa=l().createContext(null);qa.displayName="DVFContext";var $a=a(86689);function Qa(){return Qa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Qa.apply(this,arguments)}const Ka=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Qa({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg1830866123a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg1830866123a)"},l().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},l().createElement("path",{d:"M12.375 18.688a7 7 0 017-7h75.742a7 7 0 017 7v49.02a7 7 0 01-7 7H19.375a7 7 0 01-7-7v-49.02z"}),l().createElement("path",{opacity:".4",d:"M16.844 22.813a7 7 0 017-7h75.741a7 7 0 017 7v49.02a7 7 0 01-7 7H23.844a7 7 0 01-7-7v-49.02z"})),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"29.318",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 31.381a3.562 3.562 0 013.552-3.563 3.562 3.562 0 013.552 3.563 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 29.052c0-.726.588-1.313 1.313-1.313h23.983a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 33.553c0-.518.42-.938.938-.938h43.37a.938.938 0 010 1.876h-43.37a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 36.554c0-.31.252-.563.563-.563h13.993a.563.563 0 110 1.126H31.26a.563.563 0 01-.563-.563z",fill:"#B1AABD"}),l().createElement("rect",{opacity:".5",x:"19.854",y:"17.689",width:"29.914",height:"4.126",rx:"2.063",fill:"#645F6D"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"43.573",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("rect",{x:"19.854",y:"42.072",width:"7.105",height:"7.127",rx:"3.552",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 43.306c0-.725.588-1.313 1.313-1.313h28.41a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 47.808c0-.518.42-.938.938-.938h48.23a.938.938 0 110 1.876h-48.23a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 50.809c0-.31.252-.563.563-.563h38.884a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"57.828",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 59.891a3.562 3.562 0 013.552-3.564 3.562 3.562 0 013.552 3.564 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 57.561c0-.725.588-1.313 1.313-1.313h38.132a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 62.063c0-.518.42-.938.938-.938h31.778a.938.938 0 110 1.875H31.635a.938.938 0 01-.938-.937z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 65.064c0-.311.252-.563.563-.563h13.993a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 3.094h88V88H0V3.094z",fill:"url(#paint0_linear_3200_4362)"}),l().createElement("path",{d:"M79.893 76.85H21.308v14.184h58.585V76.85z",fill:"#F5C056"}),l().createElement("path",{d:"M79.893 76.85H74.6v14.184h5.293V76.85z",fill:"#E99B00"}),l().createElement("path",{d:"M48.73 76.893H26.283v14.184H48.73V76.893z",fill:"#FFEA5A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.894 57.829c-1.687-4.26 13.113-4.043 11.413 0-1.353 3.218-1.353 7.53 0 12.934H44.894C46 64.93 46 60.618 44.894 57.83z",fill:"#FFD264"}),l().createElement("path",{d:"M61.253 70.383H39.949v2.663h21.304v-2.663z",fill:"#FFD264"}),l().createElement("path",{d:"M47.938 70.383h-4.185v2.663h4.185v-2.663z",fill:"#FFEA5A"}),l().createElement("path",{d:"M64.676 73.046h-28.15v3.804h28.15v-3.804z",fill:"#795D1A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.764 16.363v5.325H15.602v.143c0 13.634 8.992 24.714 20.162 24.961v2.994c-14-.986-25.108-15.488-25.108-33.233v-.19h25.108z",fill:"#FFCB64"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.677 16.363v5.325h20.161v.143c0 13.634-8.991 24.714-20.161 24.961v2.994c13.999-.986 25.107-15.488 25.107-33.233v-.19H64.677z",fill:"#ED985C"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.307 57.829c-1.353 3.218-1.353 7.53 0 12.934h-5.706V54.715c3.278.026 6.556 1.091 5.706 3.114z",fill:"#F4B046"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.676 73.046v3.804H50.601v-3.804h14.075z",fill:"#4F350B"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.253 70.383v2.663H50.6v-2.663h10.652z",fill:"#F4B046"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.933 10.656a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-11.43 0-23.311-20.1-24.449-45.65h2.194l-.38-3.044h-1.898a91.212 91.212 0 01.01-2.663h49.045z",fill:"#FFCE66"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.937 10.656c.006.569.01 1.14.01 1.712v.952h-.044l-.241 3.043h.294c.126 24.948 1.435 39.335 3.123 45.65-8.89-3.2-15.661-20.403-16.308-45.65h1.465l-.241-3.044h-1.271a158.252 158.252 0 01.006-2.663h13.207z",fill:"#FFEA5A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.284 16.363h-3.91l.422-3.044h3.581a81.301 81.301 0 00-.01-2.663h4.566a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-.414 0-.828-.026-1.241-.078 11.92-1.382 19.899-20.946 21.114-45.572zm.083-5.707h-44.48 44.48z",fill:"#F4B046"}),l().createElement("path",{opacity:".519",d:"M72.665 13.32h-44.51v3.043h44.51v-3.044z",fill:"#F4B046"}),l().createElement("path",{d:"M48.318 73.046h-5.706v3.804h5.706v-3.804z",fill:"#96691F"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M65.526 10.656h4.235L58.973 35.935h-4.235l10.788-25.279z",fill:"url(#paint1_linear_3200_4362)"}),l().createElement("g",{filter:"url(#filter0_d_3200_4362)"},l().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#000"})),l().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#DD612C"}),l().createElement("path",{d:"M56.909 54.302a8.681 8.681 0 100-17.362 8.681 8.681 0 000 17.362z",fill:"#FFCE66"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.909 36.94a8.685 8.685 0 018.347 6.291c-5.74.351-10.312 5.02-10.51 10.8a8.699 8.699 0 01-6.008-5.47A11.212 11.212 0 0054.9 37.174a8.684 8.684 0 012.008-.234z",fill:"#FFF18C"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.202 10.656l10.862 25.341H54.83L43.646 10.705l4.556-.049z",fill:"#F83D3D"})),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3200_4362",x1:"0",y1:"3.094",x2:"0",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3200_4362",x1:"62.25",y1:"10.656",x2:"62.25",y2:"35.935",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#B93131"}),l().createElement("stop",{offset:"1",stopColor:"#831616"})),l().createElement("filter",{id:"filter0_d_3200_4362",x:"40.057",y:"30.77",width:"33.702",height:"33.703",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l().createElement("feOffset",{dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"3"}),l().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0335613 0 0 0 0 0.334579 0 0 0 0 0.412601 0 0 0 0.5 0"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3200_4362"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3200_4362",result:"shape"}))))};function Xa(){return Xa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Xa.apply(this,arguments)}const Ja=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Xa({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg355575424a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg355575424a)"},l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_3488_11934)"}),l().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M64.543 19.547L84.7 39.704V90.88H32.1L17.875 77.372V19.547h46.668z",fill:"url(#paint1_linear_3488_11934)"}),l().createElement("path",{opacity:".06",fillRule:"evenodd",clipRule:"evenodd",d:"M16.156 19.938h69.438A2.406 2.406 0 0188 22.343v53.968a2.406 2.406 0 01-2.406 2.407H16.156a2.406 2.406 0 01-2.406-2.406v-53.97a2.406 2.406 0 012.406-2.405z",fill:"#000"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 19.25H86.28c.95 0 1.719.77 1.719 1.719v53.968c0 .95-.77 1.72-1.719 1.72H17.187c-.949 0-1.718-.77-1.718-1.72V20.97c0-.95.77-1.719 1.719-1.719z",fill:"#fff"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 24.968c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 29.093c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 56.031c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 60.156c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 66.344c0-.57.462-1.031 1.031-1.031h28.059a1.031 1.031 0 010 2.062H37.254c-.57 0-1.031-.462-1.031-1.031z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 70.469c0-.57.462-1.031 1.031-1.031h25.508a1.031 1.031 0 010 2.062H37.125c-.57 0-1.031-.462-1.031-1.031z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 35.406c0-.57.461-1.031 1.03-1.031h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 39.531c0-.57.461-1.031 1.03-1.031H70.54a1.031 1.031 0 010 2.063H48.47c-.57 0-1.032-.462-1.032-1.032z",fill:"#979797"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 45.719c0-.57.461-1.032 1.03-1.032h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.031z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 49.844c0-.57.461-1.032 1.03-1.032h25.509a1.031 1.031 0 010 2.063H48.469c-.57 0-1.032-.462-1.032-1.031z",fill:"#979797"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M31.802 37.125v-2.75h-.688V48.251h3.843v-.688h-3.155v-9.75h3.155v-.688h-3.155z",fill:"#2B98F0"}),l().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),l().createElement("path",{opacity:".6",fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 7.563h63.937c1.14 0 2.063.923 2.063 2.062v6.188c0 1.139-.924 2.062-2.063 2.062H17.187a2.062 2.062 0 01-2.062-2.063V9.625c0-1.14.923-2.063 2.063-2.063z",fill:"#fff"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M19.938 12.719c0-1.14.923-2.063 2.062-2.063h24.063a2.063 2.063 0 010 4.125H22a2.062 2.062 0 01-2.063-2.062zM50.875 12.719c0-1.14.923-2.063 2.063-2.063h3.437a2.063 2.063 0 010 4.125h-3.438a2.062 2.062 0 01-2.062-2.062z",fill:"#979797"}),l().createElement("path",{opacity:".2",d:"M37.687 66.48l8.942 8.309v.958l19.925 19.702 31.064-.552 7.006-25.47-34.487-34.144-11.2.567c-3.238-1.86-5.34-3.02-6.306-3.48-.54-.258-.383 5.565-2.755 7.725-1.243 1.133-3.462 4.104-6.657 8.914l-5.532 17.47z",fill:"url(#paint2_linear_3488_11934)"}),l().createElement("g",{filter:"url(#filter0_d_3488_11934)",fillRule:"evenodd",clipRule:"evenodd"},l().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312a18.719 18.719 0 014.236 4.554l4.28-.699a23.425 23.425 0 012.392 6.47l-3.639 2.443c.262 2.058.2 4.18-.216 6.285l3.466 2.572a24.254 24.254 0 01-2.838 6.375l-4.231-.855a19.61 19.61 0 01-4.526 4.366l.62 4.34a23.426 23.426 0 01-6.409 2.551l-2.345-3.649a18.72 18.72 0 01-6.219-.1l-2.593 3.564a22.7 22.7 0 01-6.224-2.757l.912-4.304a18.715 18.715 0 01-4.281-4.567l-4.285.7a23.424 23.424 0 01-2.4-6.438l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14zM60.075 49.74c-2.804-1.248-6.112.064-7.388 2.93-1.276 2.867-.038 6.203 2.766 7.452 2.804 1.248 6.112-.064 7.388-2.93 1.276-2.867.038-6.203-2.766-7.452z",fill:"#6B93AC"}),l().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312c.779.597 1.503 1.25 2.168 1.95l-10.07 9.392a5.444 5.444 0 00-1.491-.983c-2.804-1.248-6.112.064-7.388 2.93a5.7 5.7 0 00.626 5.749l-10.071 9.39c-.502-.585-.965-1.2-1.39-1.84l-4.284.7a23.424 23.424 0 01-2.4-6.437l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14z",fill:"#7CA6BF"}),l().createElement("path",{d:"M62.886 42.644c6.409 2.854 9.24 10.479 6.322 17.03-2.917 6.553-10.478 9.552-16.887 6.698-6.409-2.853-9.24-10.478-6.322-17.03 2.917-6.553 10.478-9.551 16.887-6.698zm-1.32 2.966c-4.808-2.14-10.478.109-12.666 5.023-2.188 4.914-.065 10.633 4.742 12.773 4.806 2.14 10.477-.108 12.665-5.023 2.188-4.914.065-10.633-4.742-12.773z",fill:"#AAC4D5"}),l().createElement("path",{d:"M62.886 42.644a12.424 12.424 0 014.22 3.075l-2.366 2.207a9.317 9.317 0 00-3.175-2.316c-4.807-2.14-10.477.109-12.665 5.023-1.635 3.673-.863 7.795 1.638 10.536l-2.367 2.208c-3.325-3.656-4.35-9.145-2.172-14.035 2.917-6.553 10.478-9.551 16.887-6.698z",fill:"#CBDDE9"}))),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3488_11934",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3488_11934",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopOpacity:".01"}),l().createElement("stop",{offset:"1"})),l().createElement("linearGradient",{id:"paint2_linear_3488_11934",x1:"86.975",y1:"77.519",x2:"49.809",y2:"46.968",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#90A4AE",stopOpacity:"0"}),l().createElement("stop",{offset:"1",stopOpacity:".75"})),l().createElement("filter",{id:"filter0_d_3488_11934",x:"32.168",y:"30.067",width:"53.209",height:"53.716",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l().createElement("feOffset",{dx:"1",dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"2"}),l().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3488_11934"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3488_11934",result:"shape"}))))},er=(0,b.Z)((e=>({title:{whiteSpace:"nowrap",height:"24px",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"},titleCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px",overflow:"hidden",lineHeight:"24px",textOverflow:"ellipsis",fontSize:"14px"},container:{height:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",padding:0,"&>svg":{paddingTop:0,height:"88px",width:"88px",marginBottom:"14px"}},noDataMessage:{fontSize:"12px",textAlign:"center",whiteSpace:"pre-wrap"},noDataTitle:{fontSize:"13px",textAlign:"center",color:"rgba(0,0,0,0.87)",whiteSpace:"pre-wrap"},viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}})));let tr;!function(e){e.DVF_NOT_CONFIGURE="dvfNotConfigured",e.DATA_VALID="dataValid",e.PERMISSION_DENIED="permissionDenied"}(tr||(tr={}));const ar=e=>{let{chartType:t,title:a,infoTooltipTitle:r,titleChildren:n,dvfConfigLink:i,config:o}=e;const c=er();let s,u,p;switch(t){case tr.DVF_NOT_CONFIGURE:s=l().createElement(Ja,null),u=d().text("If we spot any validation issues, we’ll display them here."),p=l().createElement(l().Fragment,null,l().createElement($a.Z,{href:i,target:"_blank",component:i?"a":"span",color:i?"primary":"inherit",underline:i?"hover":"none","data-reltio-id":"reltio-dq-dashboard-define-dvf-link"},d().text("Define some data validation functions"))," ",d().text("for this attribute (or ask your Tenant Admin)."));break;case tr.DATA_VALID:s=l().createElement(Ka,null),u=d().text("We didn’t spot any validation issues for this attribute type.\nYou can kick back and enjoy a cold one."),p=d().text("Nice one!");break;case tr.PERMISSION_DENIED:s=l().createElement(m.B9.ERROR,null),u=d().text("Please contact your Tenant Admin to change permissions"),p=d().text("You don’t currently have permission to view this page")}return l().createElement(Re,{config:o},l().createElement(se,{title:a,infoTooltipTitle:r},n),l().createElement(pe.Z,{className:c.viewContent},l().createElement("div",{className:c.container},s,p&&l().createElement(v.Z,{className:c.noDataTitle},p),u&&l().createElement(v.Z,{className:c.noDataMessage},u))))},rr=e=>{var t;const a=er(),{config:n}=e,{dvfs:i,dvfConfigLink:o}=(0,r.useContext)(qa),{data:u,state:p,reload:f,errorCode:m}=i,h=(0,r.useContext)(ze).uri,b=(0,r.useContext)(Be),E=b.uri,x=((e,t)=>(e||[]).filter((0,s.propEq)("attribute",t)))(u,h).filter((e=>e.status===c.lVm.ACTIVE)),{data:O,state:w,reload:N}=Ue((e=>(0,s.pipe)(ma("dataValidationFunctions"),ya(e)))(x)),T=(0,r.useMemo)((()=>[b]),[b]),S=(0,r.useMemo)((()=>x.map((e=>e.uri))),[x]),R=(e=>{let{entityTypeUri:t,dvfUris:a}=e;const[l,n]=(0,r.useState)(null);return(0,r.useEffect)((()=>{const e=[{fieldName:"type",filter:c.j5E.EQUALS,values:[t]},{fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",filter:c.j5E.EQUALS,values:a}];(0,c.j_Q)(e).then((e=>{let{total:t}=e;return n(t)})).catch((()=>n(null)))}),[t,a]),l})({entityTypeUri:E,dvfUris:S}),I=null===(t=g(T))||void 0===t?void 0:t[(0,c.nIW)(E)],C=Ve(Na),A=(0,r.useMemo)((()=>p===y.o.LOADED&&w===y.o.LOADED?y.o.LOADED:p===y.o.ERROR||w===y.o.ERROR?y.o.ERROR:y.o.LOADING),[w,p]),D=(0,r.useMemo)((()=>()=>{p===y.o.ERROR&&f(),w===y.o.ERROR&&N()}),[w,p,f,N]),L=m===c.Xt7.ACCESS_DENIED,P=m===c.Xt7.DVF_NOT_CONFIGURED||0===(null==x?void 0:x.length)&&!L,_=A===y.o.LOADED&&(null==x?void 0:x.length)>0&&0===O.length,j=!(A===y.o.ERROR&&m!==c.Xt7.DVF_NOT_CONFIGURED)&&!P&&A!==y.o.LOADING&&l().createElement(Ca.C,{value:n.title},l().createElement(v.Z,{className:a.titleCount},(e=>{let{isDataValid:t,totalProfiles:a,invalidProfiles:r}=e;return t?d().text("0 profiles"):(0,s.isNil)(r)?"":`${(0,c.k7L)(r)} (${Math.round(r/a*100)}%) ${1!==r?d().text("profiles"):d().text("profile")}`})({isDataValid:_,totalProfiles:I,invalidProfiles:R}))),M=[d().text("Validation function"),d().text("Profiles")],k=l().createElement(J,{title:d().text("Profiles with invalid data"),data:[{value:d().text("Shows the number of profiles that violate active validation functions")}],DataRenderer:Ie});return P||_||L?l().createElement(ar,{config:n,chartType:P?tr.DVF_NOT_CONFIGURE:_?tr.DATA_VALID:L?tr.PERMISSION_DENIED:void 0,title:d().text(n.title),infoTooltipTitle:k,titleChildren:j,dvfConfigLink:o}):l().createElement(Ga,{config:n,title:d().text(n.title),headers:M,data:O,onItemClick:C,titleChildren:j,state:A,onRefresh:D,customComparator:ha,infoTooltipTitle:k,showCountLabels:!0})},lr=(0,b.Z)((()=>({monoFontCell:{fontFamily:'"Roboto Mono", monospace'}}))),nr=e=>{let{config:t}=e;const a=lr(),{data:n,state:i,reload:o}=Ue(ga),s=(0,r.useContext)(ze).type,u=(0,c.Lt4)(s)?((e,t)=>{const a=t===c.oS0.TYPE_TIMESTAMP?"L LTS":"L";return e.map((e=>L({},e,{label:d().date(Number(e.label),a)})))})(n,s):n,p=Ve(wa),f=[d().text("Value"),d().text("Count")],m=l().createElement(J,{title:d().text("Frequency analysis"),data:[{value:d().text("Shows the number of times each value occurs")}],DataRenderer:Ie});return l().createElement(Ga,{config:t,data:u,headers:f,title:t.title,infoTooltipTitle:m,onItemClick:p,state:i,onRefresh:o,labelCellClassName:H()({[a.monoFontCell]:(0,c.m6e)(s)})})};function ir(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){or(e,t,a[t])}))}return e}function or(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var cr,sr;!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"}(cr||(cr={})),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"}(sr||(sr={}));const ur=e=>(0,s.pipe)((0,s.pathOr)({},[e,"data"]),Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:t,group:t,value:a}})),_);var dr;!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"}(dr||(dr={}));const pr=(e,t)=>{const a={lengthStatistics:{[dr.MEDIAN]:d().text("Median"),[dr.AVERAGE]:d().text("Average"),[dr.MININMUN]:d().text("Minimum"),[dr.MAXIMUM]:d().text("Maximum")},valueDistribution:{[dr.MEDIAN]:d().text("Median"),[dr.AVERAGE]:d().text("Average"),[dr.MININMUN]:d().text("Minimum"),[dr.MAXIMUM]:d().text("Maximum")},crosswalkAnalysis:{[dr.NUMBER_OF_SOURCES]:d().text("No. of source systems"),[dr.AVG_NUMBER_OF_PROFILES]:d().text("Avg no. of profiles"),[dr.MIN_NUMBER_OF_PROFILES]:d().text("Min no. of profiles"),[dr.MAX_NUMBER_OF_PROFILES]:d().text("Max no. of profiles")}};return(0,s.pathOr)(null,[t,e],a)},fr=e=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((t=>{let[a,r]=t;return{label:pr(a,e),value:r}})),(0,s.filter)((e=>{let{label:t}=e;return t})),_),mr=e=>t=>({chartData:ur(e)(t),infoPanelData:fr(e)(t)}),hr=(e,t)=>(0,c.Lt4)(t)?d().date(Number(e),"L"):String(e),yr=(0,s.curry)(((e,t)=>{const a=(0,s.pipe)((0,s.prop)("group"),(0,s.split)(" "),s.head,Number),r=t.chartData.sort((0,s.ascend)(a)).map(((a,r)=>{const[l,n=l]=a.group.split(" ").map(Number),i=r===t.chartData.length-1,o=l!==n?((e,t,a)=>tt(t)?`[${e}${a?"]":")"}`:e)(`${hr(l,e)} - ${hr(n,e)}`,e,i):hr(l,e);return ir({},a,{label:o,group:[l,n,i?"last":""].toString()})}));return{infoPanelData:t.infoPanelData.map((t=>ir({},t,{value:(0,c.Lt4)(e)?d().date(Number(t.value),"L"):(0,c.k7L)(t.value,999),localizedValue:(0,c.Lt4)(e)?d().date(Number(t.value),"L"):t.localizedValue}))),chartData:r}})),gr=(0,s.pipe)(mr("lengthStatistics"),yr("")),vr=(0,s.pipe)(mr("crosswalkAnalysis"),(0,s.applySpec)({chartData:(0,s.prop)("chartData"),infoPanelData:(0,s.pipe)((0,s.prop)("infoPanelData"),(0,s.map)((e=>(0,s.assoc)("value",(0,c.k7L)(e.value,999),e))))})),br=mr("monthDistribution"),Er=mr("dayOfWeekDistribution"),xr=mr("dayOfMonthDistribution"),Or=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return pa({fieldName:`${a.fieldName}.day_of_week`,value:cr[t.toLowerCase()],entityTypeUri:r})})),wr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return pa({fieldName:`${a.fieldName}.month`,value:sr[t.toLowerCase()],entityTypeUri:r})})),Nr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return pa({fieldName:`${a.fieldName}.day_of_month`,value:t,entityTypeUri:r})})),Tr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;const[l,n]=t.split(",");return l===n?pa({fieldName:`${a.fieldName}.length`,value:l,entityTypeUri:r}):(e=>{let{fieldName:t,startRange:a,endRange:r,entityTypeUri:l}=e;return da({keyword:`${c.j5E.IN_RANGE}(${t}, ${a}, ${r})`,entityTypeUri:l})})({fieldName:`${a.fieldName}.length`,startRange:l,endRange:n,entityTypeUri:r})})),Sr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return pa({fieldName:`${a.fieldName}.crosswalk_sources`,value:t,entityTypeUri:r})})),Rr=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;const[r,l]=t.split(",");return[{filter:c.j5E.AFTER,values:[r],fieldName:a},{filter:c.j5E.BEFORE,values:[l],fieldName:a}]})),Ir=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;const[r,l]=t.split(",");return[r===l?{filter:c.j5E.EQUALS,values:[[r]],fieldName:a}:{filter:c.j5E.IN_RANGE,values:[[r,l]],fieldName:a}]})),Cr=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;const[r,l,n]=t.split(","),i=r===l,o=i?[{filter:c.j5E.EQUALS,values:[[r]],fieldName:a}]:[{filter:c.j5E.IN_RANGE,values:[[r,l]],fieldName:a}];return!n&&!i&&o.push({filter:c.j5E.NOT_EQUALS,values:[[l]],fieldName:a}),o})),Ar=(0,s.cond)([[c.Lt4,(0,s.always)(F(Rr))],[tt,(0,s.always)(F(Cr))],[s.identity,(0,s.always)(F(Ir))]]);function Dr(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){Lr(e,t,a[t])}))}return e}function Lr(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Pr=(0,b.Z)((e=>({tooltipWrapper:Dr({},e.tooltip,{padding:"4px 8px"})}))),_r=e=>{var t;let{payload:a,active:r,name:n}=e;const i=null==a||null===(t=a[0])||void 0===t?void 0:t.payload,o=null==i?void 0:i.value,c=null==i?void 0:i.label,s=n?`${n}`:"",u=Pr();return r&&l().createElement("div",{className:u.tooltipWrapper},l().createElement(J,{data:[{label:s,value:c},{label:d().text("No of profiles"),value:d().number(o)}]}))},jr=(0,b.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"}}))),Mr=e=>{let{data:t}=e;const a=jr();return l().createElement("div",{className:a.chartInfoWrapper},t.map((e=>{let{label:t,value:r,localizedValue:n}=e;return l().createElement("div",{key:t,className:a.chartInfoItem},l().createElement("span",{className:a.chartInfoLabel},t,": "),r!==n?l().createElement(Xe.ZP,{title:n},l().createElement("span",{className:a.chartInfoValue},r)):l().createElement("span",{className:a.chartInfoValue},r))})))},kr=(0,b.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"}}}))),Fr=e=>{let{width:t,height:a,label:r,x:n,y:i}=e;const o=kr({width:t}),c=n-t/2;return l().createElement("foreignObject",{x:c,y:i,width:t,height:a},l().createElement("div",{className:o.labelWrapper},l().createElement(Ca.C,{value:r},l().createElement("div",{className:o.xAxisLabel},r))))},Ur=e=>{const{x:t,y:a,width:r,height:n,payload:i,visibleTicksCount:o}=e,{value:c}=i,s=r/o-4;return l().createElement(Fr,{width:s,height:n,label:c,x:t,y:a})};function zr(){return zr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},zr.apply(this,arguments)}const Br=e=>{let{isClickable:t}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["isClickable"]);const r=jr(),n=t?r.clickable:void 0;return l().createElement(N.Ae,zr({},a,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},Vr=e=>{const{value:t}=e;return t>0?l().createElement(N.Ae,e):null};function Hr(){return Hr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Hr.apply(this,arguments)}const Zr=e=>{let{data:t,config:a,xAxisLabel:r,yAxisLabel:n,barTooltipTitle:i,infoPanelData:o,infoTooltipTitle:s,onItemClick:u,options:d={},state:p,onRefresh:f}=e;const m=jr(),{title:h}=a,{cartesianGrid:g,bar:v,xAxis:b,yAxis:E,labelForX:x,labelForY:O,barChart:w}=(e=>{let{showCategories:t=!1,interval:a,barCategoryGap:r}=e;return{barChart:{barCategoryGap:r||"10%"},bar:{dataKey:"value",fill:"#0072CE",minPointSize:3,maxBarSize:50},xAxis:{tick:t&&Ur,tickLine:!1,interval:a||0,dataKey:"label"},yAxis:{tickCount:8,axisLine:!1,tickLine:!1,tick:{fill:"#000"},width:60,tickFormatter:e=>(0,c.k7L)(e,999)},cartesianGrid:{stroke:"#000",strokeOpacity:"0.05",vertical:!1},labelForX:{position:"insideBottom",style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"},offset:t?-3:3},labelForY:{angle:270,position:"left",offset:-3,style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"}}}})(d),T=u&&(e=>{let{activePayload:t}=e;return u(t[0].payload.group)}),S=T?m.clickable:void 0,R=p===y.o.LOADED&&o.length>0;return l().createElement(Re,{config:a},l().createElement(se,{title:h,infoTooltipTitle:s}),R&&l().createElement(Mr,{data:o}),l().createElement(Ne,{data:t,loadingState:p,onRefresh:f},(e=>{let{data:t,width:a=0,height:o=0}=e;return l().createElement("div",null,l().createElement(N.vz,Hr({width:a,height:o,data:t,onClick:T},w),l().createElement(N.q3,g),l().createElement(N.u,{content:l().createElement(_r,{name:i}),cursor:l().createElement(Br,{isClickable:!!T})}),l().createElement(N.$Q,Hr({},v,{shape:l().createElement(Vr,{className:S})})),l().createElement(N.B2,E,l().createElement(N.__,Hr({},O,{value:n}))),l().createElement(N.Kc,b,l().createElement(N.__,Hr({},x,{value:r})))))})))},Wr=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Ue(gr),{chartData:i,infoPanelData:o}=a,c=Ve(Tr),s=l().createElement(J,{title:d().text("Length statistics"),data:[{value:d().text("Measures the string length of values")}],DataRenderer:Ie});return l().createElement(Zr,{config:t,data:i,xAxisLabel:d().text("Length of values"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Length"),infoTooltipTitle:s,onItemClick:c,state:r,onRefresh:n})};var Yr=a(21210);const Gr=(0,b.Z)({icon:{width:"20px",height:"20px",borderRadius:"4px",fontSize:"14px",marginRight:"8px"},text:e=>{let{color:t}=e;return{backgroundColor:t}}}),qr=e=>{let{chartData:t}=e;const{group:a,label:r}=t,n=Gr({color:(0,c.uap)("random0",a)});return l().createElement(l().Fragment,null,l().createElement(Yr.Z,{sourceType:a,className:n.icon,classes:{textRoot:n.text}}),r)};function $r(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){Qr(e,t,a[t])}))}return e}function Qr(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Kr=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Ue(vr),{chartData:i}=a,o=Ve(Sr),c=[d().text("Source system"),d().text("Profiles")],s=l().createElement(J,{title:d().text("Source system analysis"),data:[{value:d().text("Distribution of source systems contributing to profiles")}],DataRenderer:Ie});return l().createElement(Ga,{config:$r({},t),data:i,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:r,onRefresh:n,customComparator:ha,LabelRenderer:qr})},Xr=e=>{let{config:t}=e;const a=(0,r.useContext)(ze).type,{data:n,state:i,reload:o}=Ue((e=>(0,s.pipe)(mr("valueDistribution"),yr(e)))(a)),{chartData:c,infoPanelData:u}=n,p=Ve(Ar(a));return l().createElement(Zr,{config:t,data:c,xAxisLabel:d().text("Value"),yAxisLabel:d().text("No. of profiles"),infoPanelData:u,barTooltipTitle:d().text("Value"),onItemClick:p,state:i,onRefresh:o})},Jr=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Ue(br),{chartData:i,infoPanelData:o}=a,c=Ve(wr);return l().createElement(Zr,{config:t,data:i,xAxisLabel:d().text("Months of the year"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Months of the year"),options:{showCategories:!0,barCategoryGap:"20%",interval:"preserveStartEnd"},onItemClick:c,state:r,onRefresh:n})},el=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Ue(Er),{chartData:i,infoPanelData:o}=a,c=Ve(Or);return l().createElement(Zr,{config:t,data:i,xAxisLabel:d().text("Days of the week"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Days of the week"),options:{showCategories:!0,barCategoryGap:"25%",interval:"preserveStartEnd"},onItemClick:c,state:r,onRefresh:n})},tl=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Ue(xr),{chartData:i,infoPanelData:o}=a,c=Ve(Nr);return l().createElement(Zr,{config:t,data:i,xAxisLabel:d().text("Days of the month"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Days of the month"),options:{showCategories:!0,interval:1},onItemClick:c,state:r,onRefresh:n})},al=e=>{let{config:t}=e;const a=lr(),{data:r,state:n,reload:i}=Ue(va),o=Ve(Ta),c=[d().text("Value"),d().text("Count")],s=l().createElement(J,{title:d().text("Pattern analysis"),data:[]});return l().createElement(Ga,{config:t,data:r,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:n,onRefresh:i,labelCellClassName:a.monoFontCell})};function rl(){return rl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},rl.apply(this,arguments)}class ll{}ll.getComponent=e=>{let{type:t,config:a,isFullscreen:r,onToggleFullscreen:n}=e;const i={config:a,isFullscreen:r,onToggleFullscreen:n};switch(t){case w.FILL_RATE_CHART:return l().createElement(He,i);case w.UNIQUENESS_CHART:return l().createElement(Qe,i);case w.SUMMARY:return l().createElement(la,i);case w.VALIDATION:return l().createElement(rr,i);case w.FREQUENCY:return l().createElement(nr,i);case w.LENGTH:return l().createElement(Wr,i);case w.CROSSWALK:return l().createElement(Kr,i);case w.VALUE_DISTRIBUTION:return l().createElement(Xr,i);case w.MONTH_DISTRIBUTION:return l().createElement(Jr,i);case w.DAY_OF_WEEK_DISTRIBUTION:return l().createElement(el,i);case w.DAY_OF_MONTH_DISTRIBUTION:return l().createElement(tl,i);case w.PATTERN:return l().createElement(al,i);default:return l().createElement(ua,rl({},i,{errorData:{message:d().text("Chart isn't supported for this data type")}}))}};const nl=ll,il=e=>{let{layoutItemConfig:t,views:a,onToggleFullscreen:r,isFullscreen:n,className:i,children:o,style:c}=e;const s=a.find((e=>{let{id:a}=e;return t.i===a}));if(!s)return null;const{type:u}=s;return l().createElement("div",{style:c,className:i},nl.getComponent({type:u,config:s,onToggleFullscreen:r,isFullscreen:n}),o)},ol=(0,b.Z)({root:{overflow:"auto",backgroundColor:"#F9F9F9",height:"100%",flexGrow:1,padding:"4px"}}),cl=(0,s.map)((0,s.assoc)("isStatic",!0)),sl={cols:4,rowHeight:10,margin:[12,12]},ul=(0,r.memo)((e=>{let{views:t,layout:a,layoutOptions:n=sl}=e;const i=ol(),o=(()=>{const[e,t]=(0,r.useState)(y.o.INIT),[a,l]=(0,r.useState)({}),n=(0,r.useContext)(Be),i=(0,r.useContext)(ze),o=(0,r.useContext)(aa),s=null==i?void 0:i.fieldName,u=n.uri,d=e=>{console.error(e),t(y.o.ERROR),l({})},p=(0,r.useCallback)((async()=>{if(t(y.o.LOADING),o===C.ENTITY_TYPE){var e,a;const r=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:[u]}]),i=await(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.ACTIVE_ONLY,filter:r}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}),o=await(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.INACTIVE_ONLY,filter:r}),body:[{fieldName:"type",pageSize:101,pageNo:1}]});return l({summary:{inactiveProfiles:null===(e=o.type)||void 0===e?void 0:e[(0,c.nIW)(n.uri)],activeProfiles:null===(a=i.type)||void 0===a?void 0:a[(0,c.nIW)(n.uri)],sourceSystems:8}}),void t(y.o.LOADED)}return(0,c.TTx)({entityTypeUri:u,attributeFieldName:s}).then((e=>{l(e),t(y.o.LOADED)})).catch(d)}),[t,l,s,u]),f=(0,r.useCallback)((()=>{try{p()}catch(e){d(e)}}),[p]);return(0,r.useEffect)((()=>{f()}),[f]),{data:a,state:e,reload:f}})(),s=(0,r.useMemo)((()=>cl(a)),[a]);return l().createElement("div",{className:i.root},l().createElement(Fe.Provider,{value:o},l().createElement(O.Z,{LayoutItem:il,views:t,layout:s,layoutOptions:n})))}));var dl=a(50166),pl=a(83543),fl=a(98989),ml=a(38402),hl=a(33286),yl=a(40435);const gl=(0,b.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"}}),vl=e=>{let{details:t,classes:a,fillRateData:r,fillRateState:n}=e;const i=gl(),o=(0,s.prop)("iconRoot",a);return l().createElement("div",{className:i.root},Object.entries(t||{}).reverse().map((e=>{let[t,a]=e,u=It.NORMAL;if(t===at.REQUIRED){const e=n===y.o.LOADING,t=0===(null==(d=r)||null===(p=d.find((0,s.propEq)("group",c.s9T.MISSING)))||void 0===p?void 0:p.value);e&&(u=It.LOADING),e||t||(u=It.BAD_QUALITY)}var d,p;return l().createElement("div",{key:t,className:H()(a&&(o||i.activeIcon),i.detailIcon)},a&&l().createElement(Xe.ZP,{title:mt(t)},l().createElement("span",null,l().createElement(Ct,{detailType:t,variant:u,size:Rt.SMALL}))))})))},bl="rgba(0, 114, 206, 0.12)",El=(0,b.Z)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:bl,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:bl}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"}}),xl=e=>{let{level:t,margin:a,hasChildren:r,isLastLevelItem:n,isCollapsed:i}=e;const o=El(),c=!i&&(t>0||r);return l().createElement("div",{className:o.linesWrapper},((e,t)=>t>0&&e?(0,s.range)(1,t+1):t>1?(0,s.range)(1,t):[])(r,t).map((e=>l().createElement(hl.Z,{key:e,margin:a,level:e,className:o.line}))),c&&l().createElement(hl.Z,{margin:a,level:t,className:H()(o.line,!r&&t>0&&o.horizontalLine,r&&o.parentLine,n&&o.lastLevel)}))},Ol=(0,b.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 wl(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){Nl(e,t,a[t])}))}return e}function Nl(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Tl=(0,S.Z)((e=>{let{data:t}=e;const a=Ol(),r=Ae(t),n=t.map(((e,t)=>{let{label:n,percent:i,value:o}=e;return{label:l().createElement("span",null,l().createElement("div",{className:a.fillRateSquare,style:{background:r[t]}}),n),value:`${d().number(o)} ${j(i)}`}}));return M(t)?l().createElement("div",{className:a.bar},l().createElement("div",{className:H()(a.barPart,a.inactiveBarPart)})):l().createElement(Xe.ZP,{title:l().createElement(J,{title:d().text("Fill rate"),data:n})},l().createElement("div",{className:a.bar},t.map(((e,t)=>l().createElement("div",{key:e.group,className:a.barPart,style:wl({},z(e),{background:r[t]})})))))})),Sl=(0,b.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"}}),Rl=e=>{let{detailedAttributeType:t,fillRateData:a,fillRateState:r,style:n,level:i,selected:o=!1,onClick:s,onCollapse:u=Sa.ZT,isCollapsed:d=!1,isLastLevelItem:p=!1}=e;const f=Sl(),m=!!t.children,h=!!a,y=(e=>(0,c.idV)(e.label||e.name))(t),g=d?fl.Z:pl.Z,v=o?f.detailsIconSelected:f.detailsIcon;return l().createElement(ml.Z,{style:n,selected:o,classes:{selected:f.selectedItem},onClick:m?void 0:()=>{s(t)},component:"div",className:H()(f.listItem,!m&&f.pointerCursor)},l().createElement("div",{className:f.content},!m&&l().createElement("div",{className:f.attributeType},l().createElement(Jt,{type:t.type})),l().createElement("div",{className:f.attribute},l().createElement(xl,{level:i,margin:20,hasChildren:m,isLastLevelItem:p,isCollapsed:d}),l().createElement(hl.Z,{margin:20,level:i,className:f.marginWrapper},l().createElement(Ca.C,{value:y},l().createElement("div",{className:H()(f.attributeLabel,o&&f.selectedAttributeLabel,m&&f.parentAttributeLabel)},m&&l().createElement(yl.Z,{size:"XXS",icon:g,onClick:u,className:f.collapseIcon}),y))),h&&!m&&l().createElement("div",{className:f.fillRate},l().createElement(Tl,{data:a}))),l().createElement(vl,{details:t.details,classes:{iconRoot:v},fillRateData:a,fillRateState:r})))},Il=(0,s.propOr)({},"attributeItem"),Cl=(0,s.pipe)((0,s.find)((0,s.pipe)(Il,(0,s.either)(c.YkM,c.Or$),s.not)),Il),Al=e=>(0,s.pipe)(Il,(0,s.propEq)("fieldName",e)),Dl=e=>(0,s.filter)((0,s.propEq)("group",e));let Ll;!function(e){e.SHOW_EMPTY="showEmpty"}(Ll||(Ll={}));const Pl=(0,s.curry)(((e,t,a)=>{const r=(0,s.head)(Dl("emptiness")(e));return(null==r?void 0:r.value)===Ll.SHOW_EMPTY?a:a.filter((0,s.pipe)(Il,ot(t)))})),_l=(0,s.pipe)(Il,(0,s.prop)("fieldName")),jl=(0,s.curry)(((e,t)=>{const a=Dl("details")(e),r=(e=>(0,s.pipe)((0,s.filter)((0,s.pipe)(Il,(0,s.both)((0,s.prop)("children"),nt(e)))),(0,s.map)(_l)))(a)(t);return t.filter((e=>{let{attributeItem:t}=e;return r.some((e=>t.fieldName.startsWith(e)))||it(a,t)}))}));function Ml(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var kl=a(36444),Fl=a(79784),Ul=a(15115),zl=a(21324),Bl=a(12231);const Vl=(0,b.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"}}))),Hl=e=>{let{isSelected:t,data:a,onChange:r}=e;const{count:n,label:i,value:o}=a,u=!(0,s.isNil)(n),d=Vl(!u||n>0);return l().createElement(Bl.Z,{className:d.option,component:"div",onClick:()=>r(a),"data-reltio-id":`reltio-dq-dashboard-option-${a.value}`},l().createElement(zl.Z,{color:"primary",checked:t}),l().createElement("span",{className:d.typeIconWrapper},l().createElement(Ct,{detailType:o})),l().createElement(Ca.C,{value:i},l().createElement("div",{className:d.optionLabel},i)),u&&l().createElement("span",{className:d.counter},(0,c.k7L)(n,999)))},Zl=(0,s.curry)(((e,t)=>!!t.find((0,s.propEq)("value",e.value)))),Wl=(0,s.curry)(((e,t)=>{const a=t.findIndex((0,s.propEq)("value",e.value));return-1!==a?(0,s.remove)(a,1,t):t})),Yl=e=>{let{defaultFilterOptions:t=[],filterOptions:a,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=Vl(),[u,p]=(0,r.useState)(null),[f,m]=(0,r.useState)(t),[h,y]=(0,r.useState)(n||null),g=()=>p(null),b=e=>{m((0,s.ifElse)(Zl(e),Wl(e),(0,s.concat)([e])))},E=!!f.length,x=!!u,O=H()(c.filterIconWrapper,{[c.filterIconWrapperActive]:x,[c.filterIconWrapperSelected]:E}),w=E?c.filterIconFilterApplied:c.filterIcon;return l().createElement("div",{className:c.serachWrapper},l().createElement(Ul.Z,{autofocus:!0,onChange:e=>{y(e),i(e||"")},initialValue:n||null,height:40,placeholder:d().text("Search attribute name"),"data-reltio-id":"reltio-dq-dashboard-attributes-search-input",classes:{root:H()(c.searchInput,{[c.filledInput]:!!h})}}),l().createElement("div",{className:c.filterByDetails,"data-reltio-id":"reltio-dq-dashboard-attributes-filter"},l().createElement("div",{className:O,onClick:e=>p(e.currentTarget)},l().createElement(kl.Z,{className:w})),l().createElement(Fl.ZP,{open:!!u,anchorEl:u,onClose:()=>{m((0,s.always)(t)),g()},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{"data-reltio-id":"reltio-dq-dashboard-attributes-filter-popup"}},l().createElement("div",{className:c.menu},l().createElement(v.Z,{variant:"h6",className:c.dropdownMenuTitle},d().text("Filter")),l().createElement("div",{className:c.valueContainer},a.map((e=>{let{label:t,options:a}=e;return l().createElement("div",{key:t},t&&l().createElement(v.Z,{variant:"caption",className:c.groupLabel},t),a.map((e=>{const t=Zl(e,f);return l().createElement(Hl,{key:e.label,data:e,isSelected:t,onChange:b})})))})))),l().createElement("div",{className:c.actionsContainer},l().createElement(me.Z,{onClick:()=>{m([])},className:c.clearAllButton,disabled:!E,"data-reltio-id":"reltio-dq-dashboard-filter-clear-all-button"},d().text("Clear all")),l().createElement(me.Z,{onClick:()=>{m(t),g()},"data-reltio-id":"reltio-dq-dashboard-filter-cancel-button"},d().text("Cancel")),l().createElement(me.Z,{color:"primary",onClick:()=>{o(f),g()},"data-reltio-id":"reltio-dq-dashboard-filter-apply-button"},d().text("Apply"))))))},Gl=(0,b.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}}))),ql=e=>{var t,a;let{entityType:i,onAttributesListChange:o,defaultFieldName:u,defaultFilterOptions:p,defaultFilterText:f,disableAttributeSelection:g}=e;const v=Gl(),b=(0,r.useRef)(),[E,x]=(0,r.useState)(f||""),[O,w]=(0,r.useState)([]),[N,T]=(0,r.useState)(p||[]),[S,R]=(0,r.useState)({fieldName:u}),{data:I,state:C}=(e=>{const[t,a]=(0,r.useState)(y.o.INIT),[l,n]=(0,r.useState)({}),i=e=>{console.error(e),a(y.o.ERROR),n({})},o=(0,r.useCallback)((()=>(a(y.o.LOADING),n({}),(0,c.aTW)({entityTypeUri:e}).then(Pe).then((e=>{n(e),a(y.o.LOADED)})).catch(i))),[a,n,e]),s=(0,r.useCallback)((()=>{try{o()}catch(e){i(e)}}),[o]);return(0,r.useEffect)((()=>{s()}),[s]),{data:l,state:t,reload:s}})(i.uri),A=null===(t=(0,r.useContext)(qa))||void 0===t||null===(a=t.dvfs)||void 0===a?void 0:a.state,D=((e,t)=>{var a,l;const i=(0,n.useSelector)(h.ZP.selectors.getMetadata),o=(0,r.useMemo)((()=>(e=>(0,s.pipe)(c.WN0,ut(e),ht))(t)(i,e)),[i,e,t]),[u,d]=(0,r.useState)([]),p=e.uri,f=(0,r.useMemo)((()=>(0,c.qhs)(i,p)),[i,p]),m=null===(a=(0,r.useContext)(qa))||void 0===a||null===(l=a.dvfs)||void 0===l?void 0:l.data;return(0,r.useEffect)((()=>{m&&d(o.map((0,s.evolve)({attributeItem:e=>function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){Ml(e,t,a[t])}))}return e}({},e,{details:ft({attrTypeItem:e,dvf:m,matchAttributes:f})},e.children&&{children:e.children.map((t=>(t.details=ft({attrTypeItem:t,dvf:m,matchAttributes:f}),t.details.reference=e.isAttributeReference,t)))})})))}),[o,f,m]),u})(i,E),{filteredItems:L,filterOptions:P}=(0,r.useMemo)((()=>{const e=Pl(N,I,D),t=(e=>{const t=Object.values(at).map((e=>({value:e,label:mt(e),group:"details"}))).map((t=>(0,s.assoc)("count",((e,t)=>e.filter((e=>nt([t],e.attributeItem))).length)(e,t),t)));return{label:d().text("Attribute properties"),options:t}})(e);return{filteredItems:jl(N,e),filterOptions:[{label:"",options:[{label:d().text("Show attributes with no data"),value:Ll.SHOW_EMPTY,group:"emptiness"}]},t]}}),[D,N,I]),_=(0,r.useMemo)((()=>((e,t)=>e.filter((e=>{let{attributeItem:a}=e;return!t.some((e=>a.fieldName.startsWith(e)&&a.fieldName!==e))})))(L,O)),[L,O]),j=L.length,M=e=>{o({selectedDetailedAttributeType:e,filterText:E,filterOptions:N}),R({fieldName:e.fieldName})},k=()=>{const e=((e,t)=>(0,s.pipe)((0,s.find)(Al(t)),(0,s.propOr)(null,"attributeItem"))(e))(L,S.fieldName)||Cl(L);return(0,s.isEmpty)(e)||g?null:e};(0,r.useEffect)((()=>{var e,t,a;if(g)return void(null===(a=b.current)||void 0===a||a.scrollTo(0));if(L.length){const e=k();R({fieldName:(null==e?void 0:e.fieldName)||S.fieldName})}const r=((e,t)=>(0,s.findIndex)(Al(t))(e))(L,S.fieldName);r>-1?null===(e=b.current)||void 0===e||e.scrollToItem(r,"center"):null===(t=b.current)||void 0===t||t.scrollTo(0)}),[L]),(0,r.useEffect)((()=>{const e=k();o({selectedDetailedAttributeType:e,filterText:E,filterOptions:N})}),[E,N,S]),(0,r.useEffect)((()=>{R((e=>{let{fieldName:t}=e;return g?{fieldName:null}:{fieldName:t}}))}),[g]);const F=e=>{let{data:t,index:a,style:r}=e;const{attributeItem:n,level:i=0}=t[a],o=S.fieldName===n.fieldName,c=((e,t)=>e[t.fieldName])(I,n),u=a>0&&i>(0,s.pathOr)(-1,[a+1,"level"],_);return l().createElement(Rl,{fillRateData:c,fillRateState:C,style:r,detailedAttributeType:n,level:i,onClick:M,selected:o,onCollapse:(d=n.fieldName,()=>{w((e=>e.includes(d)?e.filter((e=>e!==d)):e.concat(d)))}),isCollapsed:O.includes(n.fieldName),isLastLevelItem:u});var d},U=_.length,z=!!U,B=C===y.o.LOADING||A===y.o.LOADING||C===y.o.INIT||A===y.o.INIT;return l().createElement("div",{className:v.root},l().createElement("div",{className:v.title},d().text("Attributes"),l().createElement("span",{className:v.itemCount},`${j} ${V=j,1===V?d().text("item"):d().text("items")}`),l().createElement(Yl,{defaultFilterText:f,defaultFilterOptions:N,onChangeFilterOptions:T,onChangeFilterText:x,filterOptions:P})),l().createElement("div",{className:v.listWrapper,"data-reltio-id":"reltio-dq-dashboard-attributes-list"},l().createElement("div",{className:v.loaderWrapper},B&&l().createElement(fe.Z,null)),z?l().createElement(ue.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return l().createElement(dl.FixedSizeList,{ref:b,itemCount:U,width:"100%",height:t,itemData:_,itemSize:48},F)})):!B&&l().createElement(Oe,{height:349,data:{Icon:m.B9.SEARCH_RESULTS,title:d().text("No results found"),message:d().text("Try adjusting your search or filter to find\nwhat you’re looking for")},variant:ye.MEDIUM})));var V},$l=(0,b.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 Ql(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){Kl(e,t,a[t])}))}return e}function Kl(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Xl=(0,s.path)([0,"value"]),Jl=e=>{var t,a,i;let{config:o,saveState:u,getSavedState:v}=e;const b=$l(),{entityType:E,tabs:O,setEntityTypeByUri:N}=(()=>{const e=(0,n.useSelector)(h.ZP.selectors.getMetadata),t=(0,r.useMemo)((()=>e.entityTypes.filter(c.oDv)),[e.entityTypes]),a=g(t),[l,i]=(0,r.useState)(null);return{entityType:l,tabs:(0,r.useMemo)((()=>t.map(((e,t)=>{let{label:r,uri:l}=e;return{label:r,value:l,additionalLabel:Number((null==a?void 0:a[(0,c.nIW)(l)])||0),dataReltioId:`reltio-dq-dashboard-entity-tab-${t}`}}))),[t,a]),setEntityTypeByUri:(0,s.pipe)((0,c.nt9)(e),i)}})(),[T,S]=(0,r.useState)(null),{isLoaded:R,savedState:L}=(0,p.a)(v),P=(0,n.useSelector)(h.ZP.selectors.getCanUserGetDQStatistic),[_,j]=(0,r.useState)(),M=(e=>{const[t,a]=(0,r.useState)(null),[l,i]=(0,r.useState)(null),o=(0,n.useSelector)(h.ZP.selectors.getUIPath),u=(0,n.useSelector)(h.ZP.selectors.getEnvironment),d=(0,n.useSelector)(h.ZP.selectors.getTenant);return(0,r.useEffect)((()=>{(0,c.f_2)({uiPath:o,tenant:d,environment:u,options:{method:"GET"}}).then((e=>{var t;const r=null==e||null===(t=e.data)||void 0===t?void 0:t.apps.find((0,s.propEq)("name","Console")).uri;a(r)})).catch((()=>a(null)))}),[u,d]),(0,r.useEffect)((()=>{const a=t&&null!=e&&e.uri?(0,s.pipe)((0,s.split)("?"),(0,s.insert)(1,`datamodeler/entityDetails/${(0,c.nIW)(e.uri)}/validation?`),(0,s.join)(""))(t):null;i(a)}),[e,t]),l})(E),k=(e=>{const[t,a]=(0,r.useState)(null),[l,i]=(0,r.useState)(y.o.INIT),[o,s]=(0,r.useState)(),u=(0,n.useSelector)(h.ZP.selectors.getTenant),d=(0,n.useSelector)(h.ZP.selectors.getDVFPath),p=e=>{console.error(e),i(y.o.ERROR),a([]),s(null==e?void 0:e.errorCode)},f=e=>{a(e.functions),s(void 0),i(y.o.LOADED)},m=(0,r.useCallback)((()=>{if(e)return i(y.o.LOADING),(0,c.HaQ)({dvfPath:d,tenant:u,entityTypeUri:e}).then(f).catch(p)}),[d,u,e]);return(0,r.useEffect)((()=>{m()}),[m]),{data:t,state:l,reload:m,errorCode:o}})(null==E?void 0:E.uri),F={dvfs:k,dvfConfigLink:M},z=null==O?void 0:O.map((e=>Ql({},e,{additionalLabel:l().createElement("span",{className:b.additionalLabel},"(",(0,c.k7L)(e.additionalLabel,999),")")}))),B=(0,r.useCallback)((e=>{(null==E?void 0:E.uri)!==e&&(S(null),N(e),_===C.ENTITY_TYPE&&u(Ql({dataLevel:_,entityTypeUri:e},G.current&&{filterOptions:G.current.filterOptions,filterText:G.current.filterText})))}),[null==E?void 0:E.uri]),V=(null===(t=o.layoutsByDataLevel)||void 0===t?void 0:t[C.ENTITY_TYPE])||D[C.ENTITY_TYPE],Z=null===(a=o.layoutsByDataLevel)||void 0===a?void 0:a[C.ATTRIBUTE_TYPE],W=(0,r.useMemo)((()=>_===C.ENTITY_TYPE&&V?V:((e,t)=>{const a=U(t),r=(0,s.mergeLeft)(e,D[C.ATTRIBUTE_TYPE]);return r[a]||r.default||[]})(Z,null==T?void 0:T.type)),[V,null==T?void 0:T.type,Z,_]),Y=(0,r.useMemo)((()=>((e,t,a,r)=>{const l=(0,s.uniqBy)((0,s.prop)("id"),(0,s.concat)((null==e?void 0:e[r])||[],A[r]||[])),n=(e=>{switch(e){case C.ATTRIBUTE_TYPE:return(e=>{switch(e){case I.INTEGER:case I.FLOAT:return[w.SUMMARY,w.CROSSWALK,w.VALIDATION,w.FILL_RATE_CHART,w.FREQUENCY,w.UNIQUENESS_CHART,w.VALUE_DISTRIBUTION];case I.BOOLEAN:return[w.SUMMARY,w.CROSSWALK,w.VALIDATION,w.FILL_RATE_CHART,w.FREQUENCY];case I.STRING:return[w.LENGTH,w.SUMMARY,w.CROSSWALK,w.VALIDATION,w.FILL_RATE_CHART,w.FREQUENCY,w.UNIQUENESS_CHART];case I.DATE:return[w.SUMMARY,w.CROSSWALK,w.VALIDATION,w.FILL_RATE_CHART,w.FREQUENCY,w.UNIQUENESS_CHART,w.VALUE_DISTRIBUTION,w.MONTH_DISTRIBUTION,w.DAY_OF_MONTH_DISTRIBUTION,w.DAY_OF_WEEK_DISTRIBUTION];case I.SSN:return[w.SUMMARY,w.CROSSWALK,w.VALIDATION,w.FILL_RATE_CHART,w.FREQUENCY,w.UNIQUENESS_CHART,w.PATTERN];case I.UNKNOWN:return[w.SUMMARY,w.CROSSWALK,w.VALIDATION,w.FILL_RATE_CHART,w.FREQUENCY,w.UNIQUENESS_CHART,w.LENGTH];default:return[]}})(U(t));case C.ENTITY_TYPE:return[w.SUMMARY];default:return[]}})(r);return a.reduce(((e,t)=>{const a=(0,s.prop)("type",e.find((0,s.propEq)("id",t.id)));if(!n.includes(a)){const a=e.findIndex((0,s.propEq)("id",t.id));if(-1!==a)return(0,s.adjust)(a,(0,s.assoc)("type",w.UNSUPPORTED),e)}return e}),l)})(o.viewsByDataLevel,null==T?void 0:T.type,W,_)),[null==T?void 0:T.type,W,_]);(0,r.useEffect)((()=>{R&&(N(L.entityTypeUri||Xl(O)),j(V?L.dataLevel||C.ENTITY_TYPE:C.ATTRIBUTE_TYPE))}),[R]);const G=(0,r.useRef)(),q=!(null===(i=O.find((0,s.propEq)("value",null==E?void 0:E.uri)))||void 0===i||!i.additionalLabel),$=E&&P&&R&&q;return l().createElement("div",{className:b.perspectiveView},l().createElement(x,{title:d().text("Data Quality")},E&&l().createElement(f.Z,{value:E.uri,tabs:z,onChange:B,scrollButtons:"auto"})),l().createElement("div",{className:b.content},$&&l().createElement(l().Fragment,null,l().createElement(qa.Provider,{value:F},l().createElement("div",{className:b.wrapper},V&&l().createElement("div",{className:H()(b.entityLevelButton,{[b.selectedButton]:_===C.ENTITY_TYPE}),onClick:()=>{S(null),j(C.ENTITY_TYPE)}},`${E.label} ${d().text("summary")}`),l().createElement(ql,{entityType:E,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:a,filterOptions:r}=e;const l=null==t?void 0:t.fieldName,n={entityTypeUri:E.uri,fieldName:l,filterOptions:r,filterText:a,dataLevel:_};!l&&_!==C.ENTITY_TYPE||(0,s.equals)(G.current,n)||(u(n),G.current=n),l&&j(C.ATTRIBUTE_TYPE),S(t)},defaultFieldName:null==L?void 0:L.fieldName,defaultFilterText:null==L?void 0:L.filterText,defaultFilterOptions:null==L?void 0:L.filterOptions,disableAttributeSelection:_===C.ENTITY_TYPE})),(T||_===C.ENTITY_TYPE)&&l().createElement(aa.Provider,{value:_},l().createElement(Be.Provider,{value:E},l().createElement(ze.Provider,{value:T},l().createElement(ul,{views:Y,layout:W})))))),!P&&l().createElement(be,{height:359,errorData:{title:d().text("You don’t currently have permission to view this page"),message:d().text(" Please contact your Tenant Admin to change permissions")},variant:ye.LARGE}),R&&E&&!q&&P&&l().createElement(Oe,{height:359,data:{Icon:m.B9.NO_DATA,title:d().text("Give us something to go on!"),message:d().text("Go ahead and load some data. We’ll put it on the scales and\nlet you know here if it measures up.")},variant:ye.LARGE})))};function en(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const tn=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){en(e,t,a[t])}))}return e}({},c.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}}),an=(0,i.Z)(tn),rn=(0,o.createGenerateClassName)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0}),ln=e=>{let{store:t,config:a,saveState:i,getSavedState:s}=e;const u=(0,r.useCallback)((0,c.aYu)(s),[s]);return l().createElement(n.Provider,{store:t},l().createElement(o.ThemeProvider,{theme:an},l().createElement(o.StylesProvider,{generateClassName:rn},l().createElement(Jl,{config:a,saveState:i,getSavedState:u}))))}},15115:(e,t,a)=>{t.Z=void 0;var r=m(a(72579)),l=m(a(54073)),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var n=r?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(a,l,n):a[l]=e[l]}return a.default=e,t&&t.set(e,a),a}(a(24328)),i=m(a(13980)),o=m(a(71153)),c=m(a(16805)),s=m(a(2630)),u=m(a(81819)),d=m(a(21853)),p=m(a(87685));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function x(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(f,e);var t,a,i=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var a,r=E(e);if(t()){var l=E(this).constructor;a=Reflect.construct(r,arguments,l)}else a=r.apply(this,arguments);return v(this,a)}}(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),x(b(t=i.call(this,e)),"emitChange",(0,l.default)((function(e){return t.props.onChange(e)}),200)),x(b(t),"handleChange",(function(e){var a=(0,r.default)(e,["target","value"]);t.setState({value:a}),t.emitChange(a)})),x(b(t),"handleFocus",(function(){return t.inputRef.current.focus()})),x(b(t),"handleOpen",(function(){t.props.forceOpen||t.setState({open:!0},t.handleFocus)})),x(b(t),"handleClose",(function(){t.props.forceOpen||t.setState({open:!1}),t.setState({value:""}),t.emitChange()})),t.state={open:Boolean(t.props.initialValue),value:t.props.initialValue||""},t.inputRef=n.default.createRef(),t}return t=f,(a=[{key:"render",value:function(){var e=this.state,t=e.open,a=e.value,r=this.props,l=r.classes,i=r.placeholder,f=r.forceOpen,m=t||f,h=t||f&&a;return n.default.createElement("div",{className:(0,o.default)(c.default.searchInputContainer,x({},c.default.colored,m),l.root)},n.default.createElement(s.default,{name:"expand-input-btn",onClick:this.handleOpen},n.default.createElement(d.default,null)),m&&n.default.createElement(u.default,{value:a,disableUnderline:!0,className:c.default.searchInputField,classes:{input:c.default.input},placeholder:i,onChange:this.handleChange,inputProps:{ref:this.inputRef}}),h&&n.default.createElement(s.default,{name:"collapse-input-btn",onClick:this.handleClose},n.default.createElement(p.default,null)))}}])&&y(t.prototype,a),f}(n.PureComponent);t.Z=O,O.defaultProps={classes:{},forceOpen:!1},O.propTypes={classes:i.default.shape({root:i.default.string}),placeholder:i.default.string,forceOpen:i.default.bool,onChange:i.default.func.isRequired,initialValue:i.default.string}},16805:(e,t,a)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(0,((r=a(86698))&&r.__esModule?r:{default:r}).default)("<style>.Form__searchInputContainer_3vqs6{display:flex;min-height:48px}.Form__searchInputField_3mnAi{flex:1 1 auto;padding:2px}.Form__input_3ulP-::-ms-clear{display:none}.Form__colored_2WMqk{background-color:#fafafa}</style>"),t.default={searchInputContainer:"Form__searchInputContainer_3vqs6",searchInputField:"Form__searchInputField_3mnAi",input:"Form__input_3ulP-",colored:"Form__colored_2WMqk"}}}]);