@reltio/remotes 1.4.975 → 1.4.977

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 (5) hide show
  1. package/264.js +1 -1
  2. package/352.js +1 -1
  3. package/805.js +1 -1
  4. package/870.js +1 -1
  5. package/package.json +1 -1
package/352.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[352],{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);t.Z=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.Z=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),p=a(71153),d=a.n(p);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(67075);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:p,onRemove:f,onDrop:v,droppingItem:E,isDroppable:x,classes:T}=e;const S=(0,n.useRef)(),R=O(),[I,A]=(0,n.useState)(null),[C,M]=(0,n.useState)(0),{cols:L,rowHeight:D,margin:P}=r,j=(0,n.useMemo)((()=>(e=>(e||[]).map(m))(a)),[a]),k=(0,u.pipe)(y,b(["autosizing"],a),l),z=(0,n.useCallback)((e=>A((t=>t?null:e))),[]),F=null!==I,U=(0,n.useCallback)(((e,t)=>{let n=!1;const i=a.map((a=>{if(a.id===t&&e){const t=((e,t)=>{const{margin:a,rowHeight:r}=t;return Math.ceil((e+a[1])/(r+a[1]))})(e,r);if(a.height!==t)return n=!0,function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){N(e,t,a[t])}))}return e}({},a,{minHeight:t,maxHeight:t,height:t})}return a}));n&&l(i)}),[a,r,l]);return i().createElement(i().Fragment,null,i().createElement(s.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>M(e)}),i().createElement(c(),{innerRef:S,layout:j,cols:L,draggableHandle:o,autoSize:!0,rowHeight:D,width:C,margin:P,onLayoutChange:k,isResizable:!F,isDraggable:!F,className:d()(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(p,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:z,onRemove:f,className:d()({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(67075),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:p}=(0,l.PWK)(s,t);return i().createElement(c.Z,{className:a,avatarText:u[0],icon:p?(0,l.vPL)("https://s3.amazonaws.com/reltio.images/api",p):null,variant:"square",rootClasses:n})}},39878:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(24328),l=a.n(r),n=a(67075),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}}},83735:(e,t,a)=>{a.r(t),a.d(t,{default:()=>sn});var r=a(24328),l=a.n(r),n=a(52730),i=a(33016),o=a(36138),c=a(67075),s=a(17440),u=a(87918),p=a.n(u),d=a(11326),f=a(7907),m=a(79002),h=a(89810),y=a(5260);var g=a(90436),v=a(79692);const b=(0,v.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"}}),E=e=>{let{title:t,children:a}=e;const r=b();return l().createElement("div",{className:r.root},l().createElement(g.Z,{variant:"body2",className:r.title},t),l().createElement("div",{className:r.content},a))};var x=a(17822);let O;!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"}(O||(O={}));var w=a(73487),N=a(78223),T=a(39878);const S=(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 R,I;!function(e){e.STRING="string",e.FLOAT="float",e.INTEGER="integer",e.BOOLEAN="boolean",e.DATE="date",e.SSN="SSN",e.UNKNOWN="unknown"}(R||(R={})),function(e){e.ENTITY_TYPE="entityType",e.ATTRIBUTE_TYPE="attributeType"}(I||(I={}));const A={[I.ATTRIBUTE_TYPE]:[{id:"FillRateView",type:O.FILL_RATE_CHART,title:"Fill rate"},{id:"UniquenessAnalysisView",type:O.UNIQUENESS_CHART,title:p().text("Uniqueness analysis")},{id:"SummaryView",type:O.SUMMARY,title:p().text("Summary")},{id:"ValidationView",type:O.VALIDATION,title:p().text("Profiles that violated validation function")},{id:"FrequencyAnalysis",type:O.FREQUENCY,title:p().text("Frequency analysis")},{id:"LengthStatistics",type:O.LENGTH,title:p().text("Length statistics")},{id:"PatternAnalysis",type:O.PATTERN,title:p().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:O.CROSSWALK,title:p().text("Source system analysis")},{id:"MonthDistribution",type:O.MONTH_DISTRIBUTION,title:p().text("Month distribution")},{id:"DayOfWeekDistribution",type:O.DAY_OF_WEEK_DISTRIBUTION,title:p().text("Day of week distribution")},{id:"DayOfMonthDistribution",type:O.DAY_OF_MONTH_DISTRIBUTION,title:p().text("Day of month distribution")},{id:"ValueDistribution",type:O.VALUE_DISTRIBUTION,title:p().text("Value distribution")},{id:"UnsupportedDataType",type:O.UNSUPPORTED,title:p().text("Unsupported Data Type")}],[I.ENTITY_TYPE]:[{id:"SummaryView",type:O.SUMMARY,title:p().text("Summary")}]},C={[I.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"}],[R.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"}],[R.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"}],[R.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"}],[R.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"}],[R.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 M(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){L(e,t,a[t])}))}return e}function L(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const D=(0,s.map)((e=>M({},e,{localizedValue:p().number(e.value)}))),P=e=>(0,s.isNil)(e)?"":`(${e}%)`,j=e=>(0,s.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),k=(0,s.curry)(((e,t,a)=>({advanced:[S(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"}))),z=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))},F=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 R.STRING;case c.oS0.TYPE_COUNT:case c.oS0.TYPE_DOLLAR:case c.oS0.TYPE_INT:case c.oS0.TYPE_LONG:return R.INTEGER;case c.oS0.TYPE_FLOAT:case c.oS0.TYPE_DOUBLE:case c.oS0.TYPE_NUMBER:return R.FLOAT;case c.oS0.TYPE_BOOLEAN:case c.oS0.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return R.BOOLEAN;case c.oS0.TYPE_ACTIVENESS_DATE:case c.oS0.TYPE_DATE:case c.oS0.TYPE_LOCAL_DATE:case c.oS0.TYPE_TIMESTAMP:return R.DATE;case c.oS0.TYPE_SSN:return R.SSN;default:return R.UNKNOWN}},U=e=>{let{percent:t,value:a}=e;return M({width:`${t}%`},a>0&&{minWidth:"3px"})},_=(0,s.pipe)((0,s.pluck)("percent"),(e=>Math.max(...e)));var V=a(71153),B=a.n(V);const H=(0,v.Z)({wrapper:{width:"100%",display:"flex",justifyContent:"center",margin:"auto",flexWrap:"wrap",flexDirection:"column",marginBottom:2},item:{display:"flex",alignItems:"center",height:19},itemColor:{width:12,height:12,marginRight:9,flexShrink:0}}),Y=e=>{let{payload:t}=e;const a=H();return l().createElement("div",{className:B()(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))))},Z=(0,v.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 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)}const G=(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=Z();return l().createElement("div",W({className:B()(n.bar,a)},r,{ref:t}))}));G.displayName="Bar";const q=G,Q=(0,v.Z)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"}}),$=e=>{let{label:t,value:a}=e;const r=Q();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:B()(r.label,r.chartDataLabel)},t),a)},K=(0,v.Z)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),X=e=>{let{data:t,title:a,DataRenderer:r=$}=e;const n=K();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 J(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){ee(e,t,a[t])}))}return e}function ee(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const te=(0,N.Z)(q),ae=e=>{let{label:t,value:a,percent:r}=e;return[{label:t,value:`${p().number(a)} ${P(r)}`}]},re=(0,T.Z)((e=>{let{data:t,colors:a,onItemClick:r}=e;const n=Z(),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(te,{className:o&&n.clickable,key:e.label,tooltipTitle:l().createElement(X,{data:ae(e)}),style:J({},U(e),{background:a[t]}),onClick:()=>i(e.group)})))),l().createElement("div",{className:n.legendWrapper},l().createElement(w.De,{layout:"vertical",align:"left",verticalAlign:"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%"},content:l().createElement(Y,null),payload:(t||[]).map(((e,t)=>{let{group:r,label:i,value:o,percent:s}=e;return{id:r,type:"square",color:a[t],value:l().createElement(l().Fragment,null,l().createElement("span",{className:n.legendLabel},i),l().createElement("span",{className:n.legendValue},`${(0,c.k7L)(o,999)} ${P(s)}`))}}))})))}));var le=a(17998),ne=a(39475),ie=a(82726);const oe=(0,v.Z)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:e=>e?0:"5px"},infoIcon:{position:"relative"}}))),ce=e=>{let{title:t,infoTooltipTitle:a,children:r}=e;const n=oe(!!r),i=!!a;return l().createElement(le.Z,{title:t,className:n.root,classes:{title:n.title}},i&&l().createElement(ne.k,{icon:ie.Z,size:"XXS",tooltipTitle:a,className:n.infoIcon}),r)};var se=a(54823);const ue=(0,v.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}})));function pe(){return pe=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},pe.apply(this,arguments)}const de=e=>{let{className: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,["className"]);const r=ue();return l().createElement(se.Z,pe({},a,{className:B()(r.viewContent,t)}))};var fe=a(1730);const me=(0,v.Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),he=e=>{let{config:t,children:a}=e;const r=me(),{type:n}=t;return l().createElement(fe.Z,{className:r.view,"data-reltio-id":`reltio-dq-dashboard-chart-${n}`},a)},ye=e=>{let{label:t,value:a}=e;const r=Q();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:B()(r.label,r.infoDataLabel)},t),a)},ge={[c.s9T.MISSING]:"#CE5C00",[c.s9T.EXISTS]:"#C4CE00"},ve=(0,s.map)((e=>{let{group:t}=e;return ge[t]||(0,c.f4_)(t)})),be=e=>({[c.s9T.MISSING]:p().text("Missing"),[c.s9T.EXISTS]:p().text("Exists")}[e]||e),Ee=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:be(t),group:t,value:a}})),(0,s.sortBy)((e=>Object.values(c.s9T).indexOf(e.group))),D),xe=e=>Object.keys(e).reduce(((t,a)=>(t[a]=Ee(e[a]),t)),{}),Oe=(0,s.propOr)({},"fillRate"),we=(0,s.pipe)(Oe,Ee,(0,s.when)(j,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,ve])),Ne=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:t===c.s9T.EXISTS?c.j5E.EXISTS:c.j5E.MISSING_VALUE,fieldName:a}]})),Te=z(Ne),Se=l().createContext(null);Se.displayName="ChartsDataContext";const Re=e=>{const{data:t,state:a,reload:l}=(0,r.useContext)(Se);return{data:(0,r.useMemo)((()=>e(t)),[t,e]),state:a,reload:l}},Ie=l().createContext(null);Ie.displayName="DVFContext";const Ae=l().createContext(null);Ae.displayName="DetailedAttributeTypeContext";const Ce=l().createContext(null);Ce.displayName="EntityTypeContext";const Me=e=>{const t=(0,n.useDispatch)(),a=(0,r.useContext)(Ae),l=(0,r.useContext)(Ce),i=(0,r.useContext)(Ie).data;return(0,s.pipe)(e({detailedAttributeType:a,entityTypeUri:l.uri,dvfs:i}),h.ui.actions.openSearch,t)},Le=e=>{let{config:t}=e;const{title:a}=t,{data:r,state:n,reload:i}=Re(we),{chartData:o,colors:c}=r,s=Me(Te),u=l().createElement(X,{title:p().text("Fill rate"),data:[{label:`${p().text("Exists")}:`,value:p().text("Profiles with data")},{label:`${p().text("Missing")}:`,value:p().text("Profiles without data")}],DataRenderer:ye});return l().createElement(he,{config:t},l().createElement(ce,{title:a,infoTooltipTitle:u}),l().createElement(de,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(re,{data:t,colors:c,onItemClick:s})})))},De={[c.dC6.UNIQUE]:"#4BAFFF",[c.dC6.NOT_UNIQUE]:"#C34980"},Pe=(0,s.map)((e=>{let{group:t}=e;return De[t]||(0,c.f4_)(t)})),je=e=>({[c.dC6.UNIQUE]:p().text("Unique"),[c.dC6.NOT_UNIQUE]:p().text("Not unique")}[e]||e),ke=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:je(t),group:t,value:a}})),(0,s.sortBy)((e=>Object.values(c.dC6).indexOf(e.group))),D),ze=(0,s.propOr)({},"uniqueness"),Fe=(0,s.pipe)(ze,ke,(0,s.when)(j,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,Pe])),Ue=e=>{let{config:t}=e;const{title:a}=t,{data:r,state:n,reload:i}=Re(Fe),{chartData:o,colors:c}=r,s=l().createElement(X,{title:p().text("Uniqueness analysis"),data:[{label:`${p().text("Unique")}:`,value:p().text("Number of values that only appear once and have no duplicates")},{label:`${p().text("Not unique")}:`,value:p().text("Number of values that have at least one duplicate in the list")}],DataRenderer:ye});return l().createElement(he,{config:t},l().createElement(ce,{title:a,infoTooltipTitle:s}),l().createElement(de,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(re,{data:t,colors:c})})))};var _e=a(82068),Ve=a(4614),Be=a(80030),He=a(7089);const Ye=(e,t)=>(e||[]).some((0,s.propEq)("attribute",t)),Ze=e=>[c.oS0.TYPE_FLOAT,c.oS0.TYPE_DOUBLE,c.oS0.TYPE_NUMBER].includes(e);let We;function Ge(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){qe(e,t,a[t])}))}return e}function qe(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.REQUIRED="required",e.RDM_LOOKUP="RDMLookup",e.CONTAIN_VF="containVF",e.REFERENCE="reference"}(We||(We={}));const Qe=(0,s.curry)(((e,t)=>e.every((e=>t.details[e.value])))),$e=(0,s.curry)(((e,t)=>{var a;return Qe(e,t)||(null===(a=t.children)||void 0===a?void 0:a.some((t=>$e(e,t))))})),Ke=(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})),Xe=(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)})),Je=(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 Xe(e,Ge({},t,{fieldName:l}))||(null===(a=t.children)||void 0===a?void 0:a.some((a=>Je(e,a,r.concat({name:t.name,label:t.label})))))})),et=(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||[]:et(e,a.children||[]);return(r||l.length)&&t.push(Object.assign({},a,l.length&&{children:l})),t}),[])));function tt(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){at(e,t,a[t])}))}return e}function at(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const rt=e=>{let{attrTypeItem:t,dvf:a=[],matchAttributes:r=[]}=e;const{uri:l,required:n,isAttributeReference:i}=t;return{[We.INCLUDED_IN_MATCHING]:r.includes(l),[We.CONTAIN_VF]:Ye(a,l),[We.REQUIRED]:!!n,[We.RDM_LOOKUP]:(0,c.lS4)(t),[We.REFERENCE]:i}},lt=e=>({[We.INCLUDED_IN_MATCHING]:p().text("Included in matching"),[We.CONTAIN_VF]:p().text("Has validation functions"),[We.REQUIRED]:p().text("Required"),[We.RDM_LOOKUP]:p().text("RDM"),[We.REFERENCE]:p().text("Reference attribute")}[e]||e),nt=(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?nt(e.children,t.concat({name:e.name,label:e.label}),a||(0,c.YkG)(e),r+1):[];return[{attributeItem:tt({},e,{fieldName:(0,c.Tde)(e.uri,t),isAttributeReference:(0,c.YkG)(e)||a}),level:r},...l]})))(e)}));function it(){return it=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},it.apply(this,arguments)}const ot=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",it({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 ct(){return ct=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},ct.apply(this,arguments)}const st=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",ct({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 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 pt=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:"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 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)}const ft=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",dt({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 mt(){return mt=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},mt.apply(this,arguments)}const ht=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",mt({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"}))},yt=(0,v.Z)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),gt={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let vt;!function(e){e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal"}(vt||(vt={}));const bt=e=>{let{detailType:t,size:a=gt.NORMAL,variant:r=vt.NORMAL}=e;const n=yt(a),i=B()(n.icon,n[r]);switch(t){case We.RDM_LOOKUP:return l().createElement(pt,{className:i});case We.CONTAIN_VF:return l().createElement(ot,{className:i});case We.INCLUDED_IN_MATCHING:return l().createElement(st,{className:i});case We.REFERENCE:return l().createElement(ft,{className:i});case We.REQUIRED:return l().createElement(ht,{className:i});default:return null}},Et=(0,v.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 xt(){return xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},xt.apply(this,arguments)}function Ot(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){wt(e,t,a[t])}))}return e}function wt(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Nt=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=Et(),{data:o,state:s}=(0,r.useContext)(Se);let u=vt.NORMAL;const p=s===y.o.LOADING,d=(e=>{var t;return 0===(null==e||null===(t=e.fillRate)||void 0===t?void 0:t[c.s9T.MISSING])})(o);return t===We.REQUIRED&&(p&&(u=vt.LOADING),p||d||(u=vt.BAD_QUALITY)),l().createElement(He.Z,xt({classes:Ot({root:B()(i.root,{[i.badQuality]:t===We.REQUIRED&&!p&&s!==y.o.INIT&&!d}),label:i.label},a),label:lt(t),icon:l().createElement(bt,{detailType:t,variant:u})},n))},Tt=(0,v.Z)({root:{display:"flex",flexWrap:"wrap",flexGrow:1}}),St=e=>{let{details:t,chipClasses:a={}}=e;const r=Tt();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(Nt,{key:t,detailType:t,classes:a})})))},Rt=(0,v.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"}}),It=e=>{let{title:t,children:a,className:r}=e;const n=Rt();return l().createElement("div",{className:B()(n.info,r)},l().createElement("div",{className:n.infoTitle},t),l().createElement("div",{className:n.infoContent},a))};function At(){return At=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},At.apply(this,arguments)}const Ct=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",At({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 Mt(){return Mt=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},Mt.apply(this,arguments)}const Lt=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",Mt({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 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)}const Pt=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",Dt({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 jt(){return jt=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},jt.apply(this,arguments)}const kt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",jt({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 zt(){return zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},zt.apply(this,arguments)}const Ft=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",zt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"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 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 _t=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Ut({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"})))},Vt=(0,v.Z)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}}}),Bt={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},Ht=e=>{let{type:t,size:a=Bt.SMALL}=e;const r=Vt(a);switch(F(t)){case R.STRING:return l().createElement(_t,{className:r.icon});case R.FLOAT:return l().createElement(Pt,{className:r.icon});case R.INTEGER:return l().createElement(kt,{className:r.icon});case R.BOOLEAN:return l().createElement(Ct,{className:r.icon});case R.DATE:return l().createElement(Lt,{className:r.icon});case R.SSN:return l().createElement(Ft,{className:r.icon});default:return l().createElement(_t,{className:r.icon})}},Yt=e=>{let{detailedAttributeType:t}=e;const a=Rt(),n=(e=>{const[t,a]=(0,r.useState)(null),l=(0,r.useContext)(Ce);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(Ve.Z,{size:"24",className:a.totalLoading}):(0,c.k7L)(n);return l().createElement("div",null,l().createElement("div",{className:a.header},l().createElement(It,{title:p().text("Profiles"),className:a.attributeTypeSummary},l().createElement(Be.ZP,{title:l().createElement(X,{data:[{label:p().text("Entities with exists attribute"),value:p().number(n)}]})},l().createElement("div",null,i))),l().createElement(It,{title:p().text("Data type"),className:a.attributeTypeSummary},(o=t.type,l().createElement(l().Fragment,null,l().createElement("div",{className:a.attributeTypeIconWrapper},l().createElement(Ht,{type:o,size:Bt.NORMAL})),p().text(o))))),l().createElement(St,{details:t.details}));var o},Zt=e=>{let{entityType:t}=e;const{data:a,state:i}=(0,r.useContext)(Se),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:d=0,sourceSystems:f=0}=(null==a?void 0:a.summary)||{},m=e=>i===y.o.LOADING?l().createElement(Ve.Z,{size:"24",className:g.totalLoading}):p().number(e),g=Rt();return l().createElement("div",{className:g.header},l().createElement(It,{title:p().text("Active profiles"),className:g.entitySummary},m(u)),l().createElement(It,{title:p().text("Inactive profiles"),className:g.entitySummary},m(d)),l().createElement(It,{title:p().text("Attributes"),className:g.entitySummary},p().number(o)),l().createElement(It,{title:p().text("Source systems"),className:g.entitySummary},m(f)))},Wt=l().createContext(null);Wt.displayName="DataLevelContext";const Gt=(0,v.Z)({content:{padding:"0 16px",marginTop:"4px"}}),qt=e=>{let{config:t}=e;const a=Gt(),n=(0,r.useContext)(Ae),i=(0,r.useContext)(Wt),o=(0,r.useContext)(Ce),s=i===I.ATTRIBUTE_TYPE,u=s?(0,c.idV)(n.label):(0,c.idV)(o.label);return l().createElement(he,{config:t},l().createElement(ce,{title:u}),l().createElement(_e.Z,{className:a.content},s?l().createElement(Yt,{detailedAttributeType:n}):l().createElement(Zt,{entityType:o})))};var Qt=a(65298);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 Kt=(0,v.Z)({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:"20px"}},errorMessage:{padding:"0 24px",fontSize:"14px",textAlign:"center"},errorTitle:{padding:"0 24px",fontSize:"16px",textAlign:"center"}}),Xt=l().createElement((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:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg98386349a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),l().createElement("g",{mask:"url(#svg98386349a)"},l().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:".3"}),l().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),l().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),l().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),l().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),l().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),l().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),l().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),l().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),l().createElement("path",{opacity:".5",d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),l().createElement("path",{opacity:".3",d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),l().createElement("path",{opacity:".8",d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),l().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),l().createElement("path",{opacity:".2",d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),l().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),l().createElement("g",{filter:"url(#filter0_d)"},l().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),l().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),l().createElement("path",{opacity:".15",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),l().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),l().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),l().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),l().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#paint0_linear)"}),l().createElement("g",{filter:"url(#filter1_d)"},l().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),l().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),l().createElement("g",{filter:"url(#filter2_d)"},l().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),l().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),l().createElement("defs",null,l().createElement("filter",{id:"filter0_d",x:"36.219",y:"37.875",width:"42.375",height:"42.375",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"}),l().createElement("feOffset",{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"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),l().createElement("filter",{id:"filter1_d",x:"51.688",y:"62.625",width:"11.438",height:"11.438",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"}),l().createElement("feOffset",{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"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),l().createElement("filter",{id:"filter2_d",x:"51.688",y:"44.063",width:"11.438",height:"23.813",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"}),l().createElement("feOffset",{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"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),l().createElement("linearGradient",{id:"paint0_linear",x1:"68.438",y1:"71.571",x2:"60.119",y2:"58.801",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopOpacity:"0"}),l().createElement("stop",{offset:"1"}))))}),null),Jt=e=>{let{config:t,icon:a=Xt,message:r,title:n}=e;const i=Kt(),{id:o,title:c}=t;return l().createElement(Qt.Z,{id:o},l().createElement(ce,{title:c}),l().createElement(_e.Z,{className:i.container},a,n&&l().createElement(g.Z,{className:i.errorTitle},n),r&&l().createElement(g.Z,{className:i.errorMessage},r)))},ea=e=>{let{keyword:t,entityTypeUri:a}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[S(a)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}},ta=e=>{let{fieldName:t,value:a,entityTypeUri:r}=e;return ea({keyword:`${c.j5E.EQUALS}(${t}, ${a})`,entityTypeUri:r})};function aa(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const ra=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}})),D),la=e=>(t,a)=>"asc"===e?t.value-a.value:a.value-t.value,na=(0,s.curry)(((e,t)=>{const a=t.map((t=>{const a=(e||[]).find((0,s.propEq)("uri",t.group));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){aa(e,t,a[t])}))}return e}({},t,{label:(null==a?void 0:a.name)||`"uri": "${t.label}"`,group:(null==a?void 0:a.name)||t.group,isActive:!!a&&a.status===c.lVm.ACTIVE})})),r=(e||[]).filter((e=>(0,s.propEq)("status",c.lVm.ACTIVE,e)&&!(0,s.any)((0,s.propEq)("group",e.uri),t))).map((e=>({label:e.name,group:e.name,value:0,isActive:!0})));return[...a,...D(r)]})),ia=ra("frequency"),oa=ra("pattern"),ca=(0,s.curry)(((e,t)=>{let{dvfs:a}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:(0,s.includes)(t,a.map((0,s.prop)("name")))?"analyticsAttributes.AttributeValidations.FunctionName":"analyticsAttributes.AttributeValidations.FunctionURI"}]})),sa=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return ta({fieldName:`${a.fieldName}`,value:t,entityTypeUri:r})})),ua=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:c.j5E.ON,values:[t],fieldName:a}]})),pa=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:a}]})),da=e=>{let{detailedAttributeType:t,entityTypeUri:a}=e;return(0,s.cond)([[c.j5n,(0,s.always)(sa)],[c.Lt4,(0,s.always)(z(ua))],[s.identity,(0,s.always)(z(pa))]])(t.type)({detailedAttributeType:t,entityTypeUri:a,dvfs:[]})},fa=z(ca),ma=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return ta({fieldName:`${a.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:r})}));var ha=a(79573),ya=a(45108),ga=a(92332),va=a(83088);const ba=(0,s.pipe)((0,s.split)("|"),(e=>{let[t,a]=e;return{label:t,percent:a}})),Ea={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"},xa=(0,v.Z)((e=>({colorBarContainer:{position:"relative",width:"100%",marginLeft:"16px",padding:"5px 0 6px",height:"100%",boxSizing:"border-box","&>span>div":{opacity:1,backgroundColor:t=>t?"#0072CE":e.palette.text.disabled,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:{display:"flex",alignItems:"center",height:"100%",lineHeight:"47px","&>div":{padding:"0 10px 0 16px",width:"100%",display:"flex"},"&>div>span":{width:"100%",justifyContent:"flex-end",flexGrow:1}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"47px",whiteSpace:"nowrap",overflow:"hidden","&:after":Ea},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":Ea},tooltipValue:{whiteSpace:"pre-wrap"}})));function Oa(){return Oa=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},Oa.apply(this,arguments)}function wa(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){Na(e,t,a[t])}))}return e}function Na(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Ta=e=>{let{className:t,headCellData: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","headCellData"]);const n=xa(),{label:i,percent:o}=ba(a.label),c=!!o,s=l().createElement(va.C,{value:i},l().createElement("div",{className:n.headLabel},i));return l().createElement("div",{className:B()(n.headCell,t)},l().createElement(ga.default,Oa({},r,{headCellData:wa({},a,{label:c?l().createElement("div",{className:n.labelPercantageWrapper},l().createElement("div",{className:n.labelWrapper},s),l().createElement("div",{className:n.percentsWrapper},l().createElement("span",{className:n.percentLabel},"0%"),l().createElement("span",{className:n.percentLabel},o,"%"))):s})})))};var Sa=a(59383),Ra=a(30488);const Ia=(0,Ra.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=xa(),u=(0,Sa.d)(n),p=l().createElement("div",{className:s.tooltipValue},t),d=!!o;return l().createElement(va.C,{value:p},l().createElement("div",{className:B()(s.attribute,u,i),onClick:n},d?l().createElement(o,{chartData:r}):c.P6Y.strings.removeLineBreaks(t)))}));var Aa=a(89902);const Ca=(0,N.Z)((e=>{let{value:t,maxValue:a,className:r}=e;return l().createElement(Aa.Z,{width:t,maxWidth:a,className:r})})),Ma=(0,Ra.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,isActive:i=!0},labelHeader:o,valueHeader:u,onClick:d}=e;const f=xa(i),m=(0,Sa.d)(d),h=l().createElement("span",{className:f.tooltipValue},n),y=0===t?"0":`${(0,c.k7L)(t,999)} ${P(r)}`,v=l().createElement(X,{data:[{label:o,value:h},{label:u,value:`${p().number(t)} ${P(r)}`}]});return l().createElement("div",{className:B()(f.numberContainer,m),onClick:d},l().createElement(g.Z,{className:f.numberWhithPercent},y),!(0,s.isNil)(a)&&l().createElement("div",{className:f.colorBarContainer},l().createElement(Ca,{value:t,maxValue:a,tooltipTitle:v,className:f.bar,showForDisabled:!0})))})),La=(0,v.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 Da(){return Da=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},Da.apply(this,arguments)}const Pa=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 d=La({width:t,height:a}),{headers:[f,m]=[],showValues:h=!0,sortable:y=!1,LabelRenderer:g}=i,v=(0,r.useMemo)((()=>({cellBorder:d.cellBorder})),[d]),b=(0,r.useMemo)((()=>Math.max(...n.map((e=>e.value)))),[n]),E=(0,r.useMemo)((()=>{const e=_(n),t=m||p().text("No of Profiles");return e?t.concat(`|${e}`):t}),[n,m]),x=(0,r.useMemo)((()=>[{id:"label",label:f||p().text("Attributes"),resizable:!1,headCellRenderer:Ta,attributeCellClassName:s,rowCellValueRenderer:Ia,initialWidth:.4*t,LabelRenderer:g},...h?[{id:"value",label:E,resizable:!1,headCellRenderer:Ta,rowCellValueRenderer:Ma,maxValue:b,initialWidth:.6*t,sortable:y}]:[]]),[E,b,t,f,h]),O=(0,r.useMemo)((()=>({onItemClick:c,labelHeader:f,valueHeader:m})),[c,f,m]);return l().createElement("div",{className:d.tableContainer},l().createElement(ya.Z,Da({columnsData:x,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:v,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:O},u)))},ja=(0,v.Z)((()=>({layoutItemContent:{padding:"0 0 10px"}}))),ka=(0,T.Z)((e=>{let{config:t,data:a,title:n,headers:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,titleChildren:u,state:p,onRefresh:d,labelCellClassName:f,LabelRenderer:m}=e;const h=ja(),[y,g]=(0,r.useState)("desc"),v=(0,r.useCallback)(((e,t)=>c?c(y)(e,t):la(y)(e,t)),[y]),b=()=>{g(ha.Dh)},E=(0,r.useMemo)((()=>[...a.sort(v)]),[v,a]);return l().createElement("div",null,l().createElement(he,{config:t},l().createElement(ce,{title:n,infoTooltipTitle:o},u),l().createElement(de,{className:h.layoutItemContent,data:E,loadingState:p,onRefresh:d},(e=>{let{data:t,width:a=0,height:r=0}=e;return l().createElement(Pa,{data:t,width:a,height:r,options:{headers:i,sortable:!!c,LabelRenderer:m},sorting:{field:"value",order:y},onSort:b,onItemClick:s,labelCellClassName:f})}))))}));var za=a(86689);function Fa(){return Fa=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},Fa.apply(this,arguments)}const Ua=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",Fa({width:"148",height:"148",viewBox:"0 0 148 148",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg3012965951a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"148",height:"148"},l().createElement("path",{d:"M74 148c40.869 0 74-33.131 74-74 0-40.87-33.131-74-74-74C33.13 0 0 33.13 0 74c0 40.869 33.13 74 74 74z",fill:"#fff"})),l().createElement("g",{mask:"url(#svg3012965951a)"},l().createElement("path",{d:"M74 148c40.869 0 74-33.131 74-74 0-40.87-33.131-74-74-74C33.13 0 0 33.13 0 74c0 40.869 33.13 74 74 74z",fill:"#0072CE",fillOpacity:".1"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 5.203h148V148H0V5.203z",fill:"url(#paint0_linear)"}),l().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},l().createElement("path",{opacity:".5",d:"M25.186 26.016h131.896V128.04H25.186V26.016z",fillOpacity:".8"}),l().createElement("path",{opacity:".9",d:"M16.766 26.021a4.626 4.626 0 014.623-4.63h129.406a4.623 4.623 0 014.623 4.63v88.107a4.625 4.625 0 01-4.623 4.631H21.389a4.623 4.623 0 01-4.623-4.631V26.021z"})),l().createElement("path",{opacity:".5",d:"M141.553 50.95a2.315 2.315 0 002.311-2.32 2.315 2.315 0 00-2.311-2.318 2.315 2.315 0 00-2.311 2.319 2.315 2.315 0 002.311 2.318zM133.465 50.95a2.315 2.315 0 002.311-2.32 2.315 2.315 0 00-2.311-2.318 2.314 2.314 0 00-2.311 2.319 2.314 2.314 0 002.311 2.318z",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.808 46.313a5.488 5.488 0 015.489 5.488v.035a5.488 5.488 0 01-10.977 0v-.035a5.488 5.488 0 015.488-5.489z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 46.19h37.054a2.029 2.029 0 010 4.057H47.102a2.028 2.028 0 110-4.057z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 53.725h67.006a1.45 1.45 0 010 2.898H46.523a1.449 1.449 0 110-2.898z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 58.941h21.62a.87.87 0 010 1.74h-21.62a.87.87 0 110-1.74z",fill:"#B1AABD"}),l().createElement("path",{opacity:".5",d:"M71.35 30.664H31.508a3.188 3.188 0 100 6.375H71.35a3.188 3.188 0 000-6.375z",fill:"#645F6D"}),l().createElement("path",{opacity:".5",d:"M141.553 72.972a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.318 2.315 2.315 0 00-2.311 2.318 2.315 2.315 0 002.311 2.319zM133.465 72.972a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.318 2.314 2.314 0 00-2.311 2.318 2.314 2.314 0 002.311 2.319z",fill:"#6DBCFF"}),l().createElement("path",{d:"M39.297 73.824a5.488 5.488 0 10-10.977 0v.035a5.488 5.488 0 0010.977 0v-.035z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 68.214h43.894a2.029 2.029 0 010 4.057H47.102a2.029 2.029 0 010-4.057z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 75.748h74.516a1.45 1.45 0 010 2.898H46.523a1.449 1.449 0 110-2.898z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 80.965h60.077a.87.87 0 010 1.739H45.943a.87.87 0 010-1.74z",fill:"#B1AABD"}),l().createElement("path",{opacity:".5",d:"M141.553 94.996a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.319 2.315 2.315 0 00-2.311 2.319 2.315 2.315 0 002.311 2.318zM133.465 94.996a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.319 2.314 2.314 0 00-2.311 2.319 2.314 2.314 0 002.311 2.318z",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.808 90.36a5.488 5.488 0 015.489 5.488v.035a5.488 5.488 0 11-10.977 0v-.035a5.488 5.488 0 015.488-5.489z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 90.237h58.915a2.028 2.028 0 010 4.057H47.102a2.029 2.029 0 010-4.057z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 97.772h49.096a1.449 1.449 0 110 2.897H46.524a1.448 1.448 0 110-2.897z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 102.988h21.62a.87.87 0 010 1.739h-21.62a.87.87 0 110-1.739z",fill:"#B1AABD"}),l().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M102.927 64.75l44.536 77.139-58.989 34.057-44.536-77.14.405-.234c4.06 9.263 12.074 16.712 22.462 19.616 18.103 5.059 36.562-5.599 41.232-23.805 2.679-10.449.235-21.113-5.757-29.26l.647-.374z",fill:"url(#paint1_linear)"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M56.352 103.62c10.385 10.611 27.223 10.611 37.609 0 10.385-10.612 10.385-27.816 0-38.427-10.386-10.611-27.224-10.611-37.61 0-10.385 10.611-10.385 27.815 0 38.427z",fill:"url(#paint2_linear)"}),l().createElement("g",{filter:"url(#filter0_d)",fillRule:"evenodd",clipRule:"evenodd"},l().createElement("path",{d:"M74.981 49.719c19.06 0 34.512 15.462 34.512 34.536a34.418 34.418 0 01-8.665 22.886l29.603 29.623a51.708 51.708 0 01-5.837 5.43l-29.705-29.725a34.338 34.338 0 01-19.908 6.322c-19.06 0-34.512-15.462-34.512-34.536S55.92 49.719 74.98 49.719zm0 10.265c-13.395 0-24.254 10.866-24.254 24.27 0 13.405 10.859 24.272 24.254 24.272 13.395 0 24.254-10.867 24.254-24.271S88.376 59.984 74.981 59.984z",fill:"#B5C8C9"}),l().createElement("path",{d:"M52.903 110.801c-7.598-6.335-12.434-15.876-12.434-26.546 0-19.074 15.451-34.536 34.512-34.536 10.663 0 20.197 4.839 26.528 12.442l-5.662 5.667c-4.862-6.175-12.401-10.14-20.866-10.14-14.662 0-26.548 11.895-26.548 26.567 0 8.47 3.962 16.015 10.132 20.88l-5.662 5.666z",fill:"#fff",fillOpacity:".4"})),l().createElement("g",{style:{mixBlendMode:"soft-light"},opacity:".4"},l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.352 103.62c10.385 10.611 27.223 10.611 37.609 0 10.385-10.612 10.385-27.816 0-38.427-10.386-10.611-27.224-10.611-37.61 0-10.385 10.611-10.385 27.815 0 38.427z",fill:"#D9F5FF"})),l().createElement("g",{style:{mixBlendMode:"overlay"}},l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.621 91.769c0-2.272.257-4.065.77-5.38.513-1.314 1.346-2.453 2.497-3.418 1.151-.964 2.026-1.847 2.625-2.648.6-.802.899-1.684.899-2.649 0-2.35-1.012-3.524-3.034-3.524-.933 0-1.688.343-2.263 1.027-.576.685-.88 1.61-.91 2.777h-7.888c.031-3.111 1.011-5.534 2.94-7.27 1.93-1.734 4.636-2.601 8.121-2.601 3.47 0 6.157.801 8.063 2.404 1.905 1.602 2.858 3.881 2.858 6.837 0 1.291-.257 2.466-.77 3.524-.513 1.058-1.338 2.139-2.474 3.243l-2.683 2.497c-.762.732-1.291 1.482-1.587 2.252-.295.77-.459 1.746-.49 2.929h-6.674zm-.957 7.094c0-1.151.416-2.096 1.249-2.835.832-.74 1.87-1.109 3.115-1.109s2.283.37 3.115 1.109c.833.739 1.249 1.684 1.249 2.835s-.416 2.096-1.249 2.835c-.832.739-1.87 1.109-3.115 1.109s-2.283-.37-3.115-1.109c-.833-.739-1.249-1.684-1.249-2.835z",fill:"#000",fillOpacity:".87"})),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.621 91.769c0-2.272.257-4.065.77-5.38.513-1.314 1.346-2.453 2.497-3.418 1.151-.964 2.026-1.847 2.625-2.648.6-.802.899-1.684.899-2.649 0-2.35-1.012-3.524-3.034-3.524-.933 0-1.688.343-2.263 1.027-.576.685-.88 1.61-.91 2.777h-7.888c.031-3.111 1.011-5.534 2.94-7.27 1.93-1.734 4.636-2.601 8.121-2.601 3.47 0 6.157.801 8.063 2.404 1.905 1.602 2.858 3.881 2.858 6.837 0 1.291-.257 2.466-.77 3.524-.513 1.058-1.338 2.139-2.474 3.243l-2.683 2.497c-.762.732-1.291 1.482-1.587 2.252-.295.77-.459 1.746-.49 2.929h-6.674zm-.957 7.094c0-1.151.416-2.096 1.249-2.835.832-.74 1.87-1.109 3.115-1.109s2.283.37 3.115 1.109c.833.739 1.249 1.684 1.249 2.835s-.416 2.096-1.249 2.835c-.832.739-1.87 1.109-3.115 1.109s-2.283-.37-3.115-1.109c-.833-.739-1.249-1.684-1.249-2.835z",fill:"#3C74B4",fillOpacity:".38"})),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear",x1:"74",y1:"5.203",x2:"74",y2:"148",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:"0"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear",x1:"123.612",y1:"142.028",x2:"76.729",y2:"122.717",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopOpacity:"0"}),l().createElement("stop",{offset:"1"})),l().createElement("linearGradient",{id:"paint2_linear",x1:"75.156",y1:"57.234",x2:"75.156",y2:"111.578",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#EEFBFF"}),l().createElement("stop",{offset:"1",stopColor:"#0072CE"})),l().createElement("filter",{id:"filter0_d",x:"36.469",y:"47.719",width:"97.962",height:"100.475",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"}),l().createElement("feOffset",{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"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"}))))},_a=(0,v.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.54)",marginLeft:"16px",paddingLeft:"16px",overflow:"hidden",textOverflow:"ellipsis"}})));function Va(){return Va=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},Va.apply(this,arguments)}const Ba=e=>{const{config:t}=e,{data:a,state:n,reload:i,errorCode:o}=(0,r.useContext)(Ie),u=(d=(0,r.useContext)(Ae).uri,(a||[]).filter((0,s.propEq)("attribute",d)));var d;const{data:f,state:m,reload:h}=Re((N=u,(0,s.pipe)(ra("dataValidationFunctions"),na(N)))),v=Me(fa),b=_a(),E=(0,r.useMemo)((()=>n===y.o.LOADED&&m===y.o.LOADED?y.o.LOADED:n===y.o.ERROR||m===y.o.ERROR?y.o.ERROR:y.o.LOADING),[m,n]),x=(0,r.useMemo)((()=>()=>{n===y.o.ERROR&&i(),m===y.o.ERROR&&h()}),[m,n,i,h]),O=l().createElement(va.C,{value:t.title},l().createElement(g.Z,{className:b.title},t.title)),w=[p().text("Validation function"),p().text("Count")];var N;return E===y.o.ERROR&&o===c.Xt7.DVF_NOT_CONFIGURED||0===f.length?l().createElement(Jt,Va({},e,{message:l().createElement(l().Fragment,null,p().text("There are no")," ",l().createElement(za.Z,{href:"https://docs.reltio.com/dvf/overview.html",target:"_blank"},p().text("Data Validation Functions"))," ",p().text("for this attribute type")),title:p().text("No data"),icon:l().createElement(Ua,null)})):l().createElement(ka,{config:t,title:"",headers:w,data:f,onItemClick:v,titleChildren:O,state:E,onRefresh:x})},Ha=(0,v.Z)((()=>({monoFontCell:{fontFamily:'"Roboto Mono", monospace'}}))),Ya=e=>{let{config:t}=e;const a=Ha(),{data:n,state:i,reload:o}=Re(ia),s=(0,r.useContext)(Ae).type,u=(0,c.Lt4)(s)?n.map((e=>M({},e,{label:p().date(Number(e.label),"L")}))):n,d=Me(da),f=[p().text("Value"),p().text("Count")],m=l().createElement(X,{title:p().text("Frequency analysis"),data:[{value:p().text("Shows the number of times each value occurs")}],DataRenderer:ye});return l().createElement(ka,{config:t,data:u,headers:f,title:t.title,infoTooltipTitle:m,onItemClick:d,state:i,onRefresh:o,labelCellClassName:B()({[a.monoFontCell]:(0,c.m6e)(s)})})};function Za(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){Wa(e,t,a[t])}))}return e}function Wa(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var Ga,qa;!function(e){e[e.sun=0]="sun",e[e.mon=1]="mon",e[e.tue=2]="tue",e[e.wed=3]="wed",e[e.thu=4]="thu",e[e.fri=5]="fri",e[e.sat=6]="sat"}(Ga||(Ga={})),function(e){e[e.jan=0]="jan",e[e.feb=1]="feb",e[e.mar=2]="mar",e[e.apr=3]="apr",e[e.may=4]="may",e[e.jun=5]="jun",e[e.jul=6]="jul",e[e.aug=7]="aug",e[e.sep=8]="sep",e[e.oct=9]="oct",e[e.nov=10]="nov",e[e.dec=11]="dec"}(qa||(qa={}));const Qa=e=>(0,s.pipe)((0,s.pathOr)({},[e,"data"]),Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:t,group:t,value:a}})),D);var $a;!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"}($a||($a={}));const Ka=(e,t)=>{const a={lengthStatistics:{[$a.MEDIAN]:p().text("Median"),[$a.AVERAGE]:p().text("Average"),[$a.MININMUN]:p().text("Minimum"),[$a.MAXIMUM]:p().text("Maximum")},valueDistribution:{[$a.MEDIAN]:p().text("Median"),[$a.AVERAGE]:p().text("Average"),[$a.MININMUN]:p().text("Minimum"),[$a.MAXIMUM]:p().text("Maximum")},crosswalkAnalysis:{[$a.NUMBER_OF_SOURCES]:p().text("No. of source systems"),[$a.AVG_NUMBER_OF_PROFILES]:p().text("Avg no. of profiles"),[$a.MIN_NUMBER_OF_PROFILES]:p().text("Min no. of profiles"),[$a.MAX_NUMBER_OF_PROFILES]:p().text("Max no. of profiles")}};return(0,s.pathOr)(null,[t,e],a)},Xa=e=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((t=>{let[a,r]=t;return{label:Ka(a,e),value:r}})),(0,s.filter)((e=>{let{label:t}=e;return t})),D),Ja=e=>t=>({chartData:Qa(e)(t),infoPanelData:Xa(e)(t)}),er=(e,t)=>(0,c.Lt4)(t)?p().date(Number(e),"L"):String(e),tr=(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)=>Ze(t)?`[${e}${a?"]":")"}`:e)(`${er(l,e)} - ${er(n,e)}`,e,i):er(l,e);return Za({},a,{label:o,group:[l,n,i?"last":""].toString()})}));return{infoPanelData:t.infoPanelData.map((t=>Za({},t,{value:(0,c.Lt4)(e)?p().date(Number(t.value),"L"):(0,c.k7L)(t.value,999),localizedValue:(0,c.Lt4)(e)?p().date(Number(t.value),"L"):t.localizedValue}))),chartData:r}})),ar=(0,s.pipe)(Ja("lengthStatistics"),tr("")),rr=(0,s.pipe)(Ja("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))))})),lr=Ja("monthDistribution"),nr=Ja("dayOfWeekDistribution"),ir=Ja("dayOfMonthDistribution"),or=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return ta({fieldName:`${a.fieldName}.day_of_week`,value:Ga[t.toLowerCase()],entityTypeUri:r})})),cr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return ta({fieldName:`${a.fieldName}.month`,value:qa[t.toLowerCase()],entityTypeUri:r})})),sr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return ta({fieldName:`${a.fieldName}.day_of_month`,value:t,entityTypeUri:r})})),ur=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;const[l,n]=t.split(",");return l===n?ta({fieldName:`${a.fieldName}.length`,value:l,entityTypeUri:r}):(e=>{let{fieldName:t,startRange:a,endRange:r,entityTypeUri:l}=e;return ea({keyword:`${c.j5E.IN_RANGE}(${t}, ${a}, ${r})`,entityTypeUri:l})})({fieldName:`${a.fieldName}.length`,startRange:l,endRange:n,entityTypeUri:r})})),pr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return ta({fieldName:`${a.fieldName}.crosswalk_sources`,value:t,entityTypeUri:r})})),dr=(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}]})),fr=(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}]})),mr=(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})),hr=(0,s.cond)([[c.Lt4,(0,s.always)(z(dr))],[Ze,(0,s.always)(z(mr))],[s.identity,(0,s.always)(z(fr))]]);function yr(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){gr(e,t,a[t])}))}return e}function gr(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const vr=(0,v.Z)((e=>({tooltipWrapper:yr({},e.tooltip,{padding:"4px 8px"})}))),br=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=vr();return r&&l().createElement("div",{className:u.tooltipWrapper},l().createElement(X,{data:[{label:s,value:c},{label:p().text("No of profiles"),value:p().number(o)}]}))},Er=(0,v.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"}}))),xr=e=>{let{data:t}=e;const a=Er();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(Be.ZP,{title:n},l().createElement("span",{className:a.chartInfoValue},r)):l().createElement("span",{className:a.chartInfoValue},r))})))},Or=(0,v.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"}}}))),wr=e=>{let{width:t,height:a,label:r,x:n,y:i}=e;const o=Or({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(va.C,{value:r},l().createElement("div",{className:o.xAxisLabel},r))))},Nr=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(wr,{width:s,height:n,label:c,x:t,y:a})};function Tr(){return Tr=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},Tr.apply(this,arguments)}const Sr=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=Er(),n=t?r.clickable:void 0;return l().createElement(w.Ae,Tr({},a,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},Rr=e=>{const{value:t}=e;return t>0?l().createElement(w.Ae,e):null};function Ir(){return Ir=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},Ir.apply(this,arguments)}const Ar=e=>{let{data:t,config:a,xAxisLabel:r,yAxisLabel:n,barTooltipTitle:i,infoPanelData:o,infoTooltipTitle:s,onItemClick:u,options:p={},state:d,onRefresh:f}=e;const m=Er(),{title:h}=a,{cartesianGrid:g,bar:v,xAxis:b,yAxis:E,labelForX:x,labelForY:O,barChart:N}=(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&&Nr,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)"}}}})(p),T=u&&(e=>{let{activePayload:t}=e;return u(t[0].payload.group)}),S=T?m.clickable:void 0,R=d===y.o.LOADED&&o.length>0;return l().createElement(he,{config:a},l().createElement(ce,{title:h,infoTooltipTitle:s}),R&&l().createElement(xr,{data:o}),l().createElement(de,{data:t,loadingState:d,onRefresh:f},(e=>{let{data:t,width:a=0,height:o=0}=e;return l().createElement("div",null,l().createElement(w.vz,Ir({width:a,height:o,data:t,onClick:T},N),l().createElement(w.q3,g),l().createElement(w.u,{content:l().createElement(br,{name:i}),cursor:l().createElement(Sr,{isClickable:!!T})}),l().createElement(w.$Q,Ir({},v,{shape:l().createElement(Rr,{className:S})})),l().createElement(w.B2,E,l().createElement(w.__,Ir({},O,{value:n}))),l().createElement(w.Kc,b,l().createElement(w.__,Ir({},x,{value:r})))))})))},Cr=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Re(ar),{chartData:i,infoPanelData:o}=a,c=Me(ur),s=l().createElement(X,{title:p().text("Length statistics"),data:[{value:p().text("Measures the string length of values")}],DataRenderer:ye});return l().createElement(Ar,{config:t,data:i,xAxisLabel:p().text("Length of values"),yAxisLabel:p().text("No. of profiles"),infoPanelData:o,barTooltipTitle:p().text("Length"),infoTooltipTitle:s,onItemClick:c,state:r,onRefresh:n})};var Mr=a(21210);const Lr=(0,v.Z)({icon:{width:"20px",height:"20px",borderRadius:"4px",fontSize:"14px",marginRight:"8px"},text:e=>{let{color:t}=e;return{backgroundColor:t}}}),Dr=e=>{let{chartData:t}=e;const{group:a,label:r}=t,n=Lr({color:(0,c.uap)("random0",a)});return l().createElement(l().Fragment,null,l().createElement(Mr.Z,{sourceType:a,className:n.icon,classes:{textRoot:n.text}}),r)};function Pr(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){jr(e,t,a[t])}))}return e}function jr(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}=Re(rr),{chartData:i}=a,o=Me(pr),c=[p().text("Source system"),p().text("Profiles")],s=l().createElement(X,{title:p().text("Source system analysis"),data:[{value:p().text("Distribution of source systems contributing to profiles")}],DataRenderer:ye});return l().createElement(ka,{config:Pr({},t),data:i,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:r,onRefresh:n,customComparator:la,LabelRenderer:Dr})},zr=e=>{let{config:t}=e;const a=(0,r.useContext)(Ae).type,{data:n,state:i,reload:o}=Re((e=>(0,s.pipe)(Ja("valueDistribution"),tr(e)))(a)),{chartData:c,infoPanelData:u}=n,d=Me(hr(a));return l().createElement(Ar,{config:t,data:c,xAxisLabel:p().text("Value"),yAxisLabel:p().text("No. of profiles"),infoPanelData:u,barTooltipTitle:p().text("Value"),onItemClick:d,state:i,onRefresh:o})},Fr=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Re(lr),{chartData:i,infoPanelData:o}=a,c=Me(cr);return l().createElement(Ar,{config:t,data:i,xAxisLabel:p().text("Months of the year"),yAxisLabel:p().text("No. of profiles"),infoPanelData:o,barTooltipTitle:p().text("Months of the year"),options:{showCategories:!0,barCategoryGap:"20%",interval:"preserveStartEnd"},onItemClick:c,state:r,onRefresh:n})},Ur=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Re(nr),{chartData:i,infoPanelData:o}=a,c=Me(or);return l().createElement(Ar,{config:t,data:i,xAxisLabel:p().text("Days of the week"),yAxisLabel:p().text("No. of profiles"),infoPanelData:o,barTooltipTitle:p().text("Days of the week"),options:{showCategories:!0,barCategoryGap:"25%",interval:"preserveStartEnd"},onItemClick:c,state:r,onRefresh:n})},_r=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Re(ir),{chartData:i,infoPanelData:o}=a,c=Me(sr);return l().createElement(Ar,{config:t,data:i,xAxisLabel:p().text("Days of the month"),yAxisLabel:p().text("No. of profiles"),infoPanelData:o,barTooltipTitle:p().text("Days of the month"),options:{showCategories:!0,interval:1},onItemClick:c,state:r,onRefresh:n})},Vr=e=>{let{config:t}=e;const a=Ha(),{data:r,state:n,reload:i}=Re(oa),o=Me(ma),c=[p().text("Value"),p().text("Count")],s=l().createElement(X,{title:p().text("Pattern analysis"),data:[]});return l().createElement(ka,{config:t,data:r,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:n,onRefresh:i,labelCellClassName:a.monoFontCell})};function Br(){return Br=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Br.apply(this,arguments)}class Hr{}Hr.getComponent=e=>{let{type:t,config:a,isFullscreen:r,onToggleFullscreen:n}=e;const i={config:a,isFullscreen:r,onToggleFullscreen:n};switch(t){case O.FILL_RATE_CHART:return l().createElement(Le,i);case O.UNIQUENESS_CHART:return l().createElement(Ue,i);case O.SUMMARY:return l().createElement(qt,i);case O.VALIDATION:return l().createElement(Ba,i);case O.FREQUENCY:return l().createElement(Ya,i);case O.LENGTH:return l().createElement(Cr,i);case O.CROSSWALK:return l().createElement(kr,i);case O.VALUE_DISTRIBUTION:return l().createElement(zr,i);case O.MONTH_DISTRIBUTION:return l().createElement(Fr,i);case O.DAY_OF_WEEK_DISTRIBUTION:return l().createElement(Ur,i);case O.DAY_OF_MONTH_DISTRIBUTION:return l().createElement(_r,i);case O.PATTERN:return l().createElement(Vr,i);default:return l().createElement(Jt,Br({},i,{message:p().text("Chart isn't supported for this data type")}))}};const Yr=Hr,Zr=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},Yr.getComponent({type:u,config:s,onToggleFullscreen:r,isFullscreen:n}),o)},Wr=(0,v.Z)({root:{overflow:"auto",backgroundColor:"#F9F9F9",height:"100%",flexGrow:1,padding:"4px"}}),Gr=(0,s.map)((0,s.assoc)("isStatic",!0)),qr={cols:4,rowHeight:10,margin:[12,12]},Qr=(0,r.memo)((e=>{let{views:t,layout:a,layoutOptions:n=qr}=e;const i=Wr(),o=(()=>{const[e,t]=(0,r.useState)(y.o.INIT),[a,l]=(0,r.useState)({}),n=(0,r.useContext)(Ce),i=(0,r.useContext)(Ae),o=(0,r.useContext)(Wt),s=null==i?void 0:i.fieldName,u=n.uri,p=e=>{console.error(e),t(y.o.ERROR),l({})},d=(0,r.useCallback)((async()=>{if(t(y.o.LOADING),o===I.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(p)}),[t,l,s,u]),f=(0,r.useCallback)((()=>{try{d()}catch(e){p(e)}}),[d]);return(0,r.useEffect)((()=>{f()}),[f]),{data:a,state:e,reload:f}})(),s=(0,r.useMemo)((()=>Gr(a)),[a]);return l().createElement("div",{className:i.root},l().createElement(Se.Provider,{value:o},l().createElement(x.Z,{LayoutItem:Zr,views:t,layout:s,layoutOptions:n})))}));var $r=a(50166),Kr=a(44443),Xr=a(43129),Jr=a(5336),el=a(83543),tl=a(98989),al=a(38402),rl=a(33286),ll=a(40435);const nl=(0,v.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"}}),il=e=>{let{details:t,classes:a,fillRateData:r,fillRateState:n}=e;const i=nl(),o=(0,s.prop)("iconRoot",a);return l().createElement("div",{className:i.root},Object.entries(t||{}).reverse().map((e=>{let[t,a]=e,u=vt.NORMAL;if(t===We.REQUIRED){const e=n===y.o.LOADING,t=0===(null==(p=r)||null===(d=p.find((0,s.propEq)("group",c.s9T.MISSING)))||void 0===d?void 0:d.value);e&&(u=vt.LOADING),e||t||(u=vt.BAD_QUALITY)}var p,d;return l().createElement("div",{key:t,className:B()(a&&(o||i.activeIcon),i.detailIcon)},a&&l().createElement(Be.ZP,{title:lt(t)},l().createElement("span",null,l().createElement(bt,{detailType:t,variant:u,size:gt.SMALL}))))})))},ol="rgba(0, 114, 206, 0.12)",cl=(0,v.Z)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:ol,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:ol}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"}}),sl=e=>{let{level:t,margin:a,hasChildren:r,isLastLevelItem:n,isCollapsed:i}=e;const o=cl(),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(rl.Z,{key:e,margin:a,level:e,className:o.line}))),c&&l().createElement(rl.Z,{margin:a,level:t,className:B()(o.line,!r&&t>0&&o.horizontalLine,r&&o.parentLine,n&&o.lastLevel)}))},ul=(0,v.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 pl(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){dl(e,t,a[t])}))}return e}function dl(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const fl=(0,T.Z)((e=>{let{data:t}=e;const a=ul(),r=ve(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:`${p().number(o)} ${P(i)}`}}));return j(t)?l().createElement("div",{className:a.bar},l().createElement("div",{className:B()(a.barPart,a.inactiveBarPart)})):l().createElement(Be.ZP,{title:l().createElement(X,{title:p().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:pl({},U(e),{background:r[t]})})))))})),ml=(0,v.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"}}),hl=e=>{let{detailedAttributeType:t,fillRateData:a,fillRateState:r,style:n,level:i,selected:o=!1,onClick:s,onCollapse:u=ha.ZT,isCollapsed:p=!1,isLastLevelItem:d=!1}=e;const f=ml(),m=!!t.children,h=!!a,y=(e=>(0,c.idV)(e.label||e.name))(t),g=p?tl.Z:el.Z,v=o?f.detailsIconSelected:f.detailsIcon;return l().createElement(al.Z,{style:n,selected:o,classes:{selected:f.selectedItem},onClick:m?void 0:()=>{s(t)},component:"div",className:B()(f.listItem,!m&&f.pointerCursor)},l().createElement("div",{className:f.content},!m&&l().createElement("div",{className:f.attributeType},l().createElement(Ht,{type:t.type})),l().createElement("div",{className:f.attribute},l().createElement(sl,{level:i,margin:20,hasChildren:m,isLastLevelItem:d,isCollapsed:p}),l().createElement(rl.Z,{margin:20,level:i,className:f.marginWrapper},l().createElement(va.C,{value:y},l().createElement("div",{className:B()(f.attributeLabel,o&&f.selectedAttributeLabel,m&&f.parentAttributeLabel)},m&&l().createElement(ll.Z,{size:"XXS",icon:g,onClick:u,className:f.collapseIcon}),y))),h&&!m&&l().createElement("div",{className:f.fillRate},l().createElement(fl,{data:a}))),l().createElement(il,{details:t.details,classes:{iconRoot:v},fillRateData:a,fillRateState:r})))},yl=(0,s.propOr)({},"attributeItem"),gl=(0,s.pipe)((0,s.find)((0,s.pipe)(yl,(0,s.either)(c.YkM,c.Or$),s.not)),yl),vl=e=>(0,s.pipe)(yl,(0,s.propEq)("fieldName",e)),bl=e=>(0,s.filter)((0,s.propEq)("group",e)),El=(0,s.reject)((0,s.path)(["attributeItem","children"])),xl=(0,s.pipe)(El,(0,s.prop)("length")),Ol=(e,t)=>(0,s.pipe)(El,(0,s.filter)((0,s.pipe)(yl,Ke(t))),(0,s.prop)("length"))(e),wl=(e,t)=>(0,s.pipe)(El,(0,s.filter)((0,s.pipe)(yl,Xe(t))),(0,s.prop)("length"))(e),Nl=(e,t)=>e.filter((e=>Qe(t,e.attributeItem))).length;let Tl;!function(e){e.NOT_EMPTY="notEmpty",e.EMPTY="empty"}(Tl||(Tl={}));const Sl=(e,t)=>{const a=Object.values(We).map((e=>({value:e,label:lt(e),group:"details"}))).map((a=>(0,s.assoc)("count",((e,t,a)=>e.filter((e=>Qe([...(0,s.filter)((0,s.propEq)("group","details"),a||[]),t],e.attributeItem))).length)(e,a,t),a))),r={label:p().text("All attribute properties"),value:"all",count:Nl(e,a),group:"details"};return{label:p().text("Attribute properties"),options:[r,...a]}},Rl=(0,s.pipe)(yl,(0,s.prop)("fieldName"));function Il(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var Al=a(92391),Cl=a(36444),Ml=a(33662),Ll=a(15793),Dl=a(21324),Pl=a(12231),jl=a(44962);function kl(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){zl(e,t,a[t])}))}return e}function zl(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Fl=(0,v.Z)((e=>({serachWrapper:{padding:"8px 10px 8px 16px",alignItems:"center",display:"flex"},filterByDetails:{width:"32px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"9px"},searchInput:{borderRadius:"2px",flexGrow:1},menu:{width:"256px!important",right:"0",paddingTop:"8px",top:"24px!important",margin:0},dropdownIndicator:{color:e.palette.text.secondary,cursor:"pointer"},dropDownIndicatorFilterApplied:{color:"#0072CE",cursor:"pointer"},dropDownIndicatorActive:{width:"32px",height:"32px",background:"rgba(0, 0, 0, 0.1)",borderRadius:"4px",display:"flex",justifyContent:"center",alignItems:"center"},dropdownMenuTitle:{fontWeight:500,fontSize:"20px",lineHeight:"55px",height:"55px",paddingLeft:"16px"},option:{paddingLeft:"4px",fontSize:"13px",height:"28px",filter:e=>e?"grayscale(0)":"grayscale(1)",opacity:e=>e?1:.5},typeIconWrapper:{width:"41px","& svg":{width:"20px",height:"20px"}},valueContainer:{marginLeft:0},counter:{marginLeft:"5px"}}))),Ul=e=>kl({},e,{borderBottom:"1px solid rgba(0, 0, 0, 0.08)",marginBottom:"5px",paddingTop:0,paddingBottom:"5px","&:last-child":{borderBottom:"none"}}),_l=e=>kl({},e,{zIndex:2}),Vl=e=>kl({},e,{maxHeight:"400px"}),Bl=e=>kl({},e,{padding:"6px 0 2px 18px",fontSize:"11px"});function Hl(){return Hl=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},Hl.apply(this,arguments)}const Yl=e=>{let{innerProps:t,innerRef:a,children:r,isFocused:n,isSelected:i,selectProps:{classes:o},label:s,data:u}=e;const p=!!u.count,d=Fl(p);return l().createElement(Pl.Z,Hl({className:d.option,ref:a,selected:n,component:"div"},t),"radio"===u.inputType?l().createElement(jl.Z,{checked:i}):l().createElement(l().Fragment,null,l().createElement(Dl.Z,{color:"primary",checked:i}),l().createElement("span",{className:d.typeIconWrapper},l().createElement(bt,{detailType:u.value}))),l().createElement(va.C,{value:s},l().createElement("div",{className:o["option--item"]},r)),l().createElement("span",{className:d.counter},(0,c.k7L)(u.count,999)))},Zl=(0,s.reject)((0,s.propEq)("value","all")),Wl=(e,t)=>(0,s.reject)((0,s.propEq)("group",e.group))(t),Gl=e=>(0,s.pipe)((0,s.filter)((0,s.propEq)("group",e)),Zl),ql=e=>(0,s.pipe)((0,s.reduce)(((t,a)=>t.concat(Gl(e)(a.options))),[]),Zl),Ql=(0,s.find)((0,s.propEq)("value","all")),$l=e=>{let{selectedFilterOptions:t=[],filterOptions:a,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=Fl(),u=(0,s.reduce)(((e,t)=>{if(t.options.length){const a=(0,s.head)(t.options)||{},{group:r,inputType:l}=a,n=(e||[]).filter((0,s.propEq)("group",r));if("radio"===l){if(!n.length)return e.concat(a)}else{const a=Ql(t.options);if(a&&Zl(n).length===Zl(t.options).length)return e.concat(a)}}return e}),t)(a),d=e=>e.selectProps.menuIsOpen?c.dropDownIndicatorActive:"",f=(0,r.useCallback)((()=>t.length?c.dropDownIndicatorFilterApplied:c.dropdownIndicator),[t]),[m,h]=(0,r.useState)(n||null);return l().createElement("div",{className:c.serachWrapper},l().createElement(Ml.Z,{className:c.searchInput,autofocus:!0,onSearch:e=>{h(e),i(e)},value:m,height:40,placeholder:p().text("Search attribute name"),"data-reltio-id":"reltio-dq-dashboard-attributes-search-input"}),l().createElement("div",{className:c.filterByDetails,"data-reltio-id":"reltio-dq-dashboard-attributes-filter"},l().createElement(Ll.Z,{value:u,options:a,onChange:(e,r)=>{const{action:l,option:n}=r;o(((e,r,l)=>{if("radio"===r.inputType)return[...Wl(r,l),r];{const i=(n=r.group,ql(n)(a).length===Gl(n)(t).length),o=Wl(r,l),c=ql(r.group)(a);return"all"===r.value?"select-option"===e?[...o,...c]:o:i?(0,s.without)([r],[...o,...c]):l}var n})(l,n,e))},TextFieldProps:{InputProps:{disableUnderline:!0}},isSearchable:!1,classes:{menu:c.menu,option:c.option,valueContainer:c.valueContainer},styles:{groupHeading:Bl,group:Ul,menu:_l,menuList:Vl},components:{DropdownIndicator:e=>l().createElement("div",{className:d(e)},l().createElement(Cl.Z,{className:f()})),IndicatorSeparator:ha.Vd,ClearIndicator:ha.Vd,MultiValue:ha.Vd,MenuList:e=>l().createElement(Al.F.MenuList,e,l().createElement("div",{className:c.dropdownMenuTitle},p().text("Filter")),e.children),Option:Yl,GroupHeading:e=>l().createElement(Al.F.GroupHeading,e,e.children)}})))},Kl=(0,v.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"},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}}))),Xl=e=>{var t;let{entityType:a,onAttributesListChange:i,defaultFieldName:o,defaultFilterOptions:u,defaultFilterText:d,disableAttributeSelection:f}=e;const m=Kl(),v=(0,r.useRef)(),[b,E]=(0,r.useState)(d||""),[x,O]=(0,r.useState)([]),[w,N]=(0,r.useState)(u||[]),[T,S]=(0,r.useState)({fieldName:o}),{data:R,state:I}=(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(xe).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}})(a.uri),A=null===(t=(0,r.useContext)(Ie))||void 0===t?void 0:t.state,C=((e,t)=>{var a;const l=(0,n.useSelector)(h.ZP.selectors.getMetadata),i=(0,r.useMemo)((()=>(e=>(0,s.pipe)(c.WN0,et(e),nt))(t)(l,e)),[l,e,t]),[o,u]=(0,r.useState)([]),p=e.uri,d=(0,r.useMemo)((()=>(0,c.qhs)(l,p)),[l,p]),f=null===(a=(0,r.useContext)(Ie))||void 0===a?void 0:a.data;return(0,r.useEffect)((()=>{f&&u(i.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){Il(e,t,a[t])}))}return e}({},e,{details:rt({attrTypeItem:e,dvf:f,matchAttributes:d})},e.children&&{children:e.children.map((t=>(t.details=rt({attrTypeItem:t,dvf:f,matchAttributes:d}),t.details.reference=e.isAttributeReference,t)))})})))}),[i,d,f]),o})(a,b),{filteredItems:M,filterOptions:L}=(0,r.useMemo)((()=>{const e=((e,t)=>{const a=bl("details")(e),r=(e=>(0,s.pipe)((0,s.filter)((0,s.pipe)(yl,(0,s.both)((0,s.prop)("children"),Qe(e)))),(0,s.map)(Rl)))(a)(t);return t.filter((e=>{let{attributeItem:t}=e;return r.some((e=>t.fieldName.startsWith(e)))||$e(a,t)}))})(w,C),t=((e,t)=>{const a=[{label:p().text("All"),value:"All",group:"emptiness",count:xl(e),inputType:"radio"},{label:p().text("With data"),value:Tl.NOT_EMPTY,group:"emptiness",count:Ol(e,t),inputType:"radio"},{label:p().text("W/o data"),value:Tl.EMPTY,group:"emptiness",count:wl(e,t),inputType:"radio"}];return{label:p().text("Attributes"),options:a}})(e,R),a=((e,t,a)=>{const r=(0,s.head)(bl("emptiness")(e));switch(null==r?void 0:r.value){case Tl.EMPTY:return a.filter((0,s.pipe)(yl,Je(t)));case Tl.NOT_EMPTY:return a.filter((0,s.pipe)(yl,Ke(t)));default:return a}})(w,R,e);return{filteredItems:a,filterOptions:[t,Sl(a,w)]}}),[C,w,R]),D=(0,r.useMemo)((()=>((e,t)=>e.filter((e=>{let{attributeItem:a}=e;return!t.some((e=>a.fieldName.startsWith(e)&&a.fieldName!==e))})))(M,x)),[M,x]),P=M.length,j=(0,r.useCallback)((0,c.DsO)(E,300),[]),k=e=>{i({selectedDetailedAttributeType:e,filterText:b,filterOptions:w}),S({fieldName:e.fieldName})},z=()=>{const e=((e,t)=>(0,s.pipe)((0,s.find)(vl(t)),(0,s.propOr)(null,"attributeItem"))(e))(M,T.fieldName)||gl(M);return(0,s.isEmpty)(e)||f?null:e};(0,r.useEffect)((()=>{var e,t,a;if(f)return void(null===(a=v.current)||void 0===a||a.scrollTo(0));if(M.length){const e=z();S({fieldName:(null==e?void 0:e.fieldName)||T.fieldName})}const r=((e,t)=>(0,s.findIndex)(vl(t))(e))(M,T.fieldName);r>-1?null===(e=v.current)||void 0===e||e.scrollToItem(r,"center"):null===(t=v.current)||void 0===t||t.scrollTo(0)}),[M]),(0,r.useEffect)((()=>{const e=z();i({selectedDetailedAttributeType:e,filterText:b,filterOptions:w})}),[b,w,T]),(0,r.useEffect)((()=>{S((e=>{let{fieldName:t}=e;return f?{fieldName:null}:{fieldName:t}}))}),[f]);const F=e=>{let{data:t,index:a,style:r}=e;const{attributeItem:n,level:i=0}=t[a],o=T.fieldName===n.fieldName,c=((e,t)=>e[t.fieldName])(R,n),u=a>0&&i>(0,s.pathOr)(-1,[a+1,"level"],D);return l().createElement(hl,{fillRateData:c,fillRateState:I,style:r,detailedAttributeType:n,level:i,onClick:k,selected:o,onCollapse:(p=n.fieldName,()=>{O((e=>e.includes(p)?e.filter((e=>e!==p)):e.concat(p)))}),isCollapsed:x.includes(n.fieldName),isLastLevelItem:u});var p},U=D.length,_=!!U,V=I===y.o.LOADING||A===y.o.LOADING;return l().createElement("div",{className:m.root},l().createElement(g.Z,{className:m.title},(0,c.idV)(a.label)," ",p().text("attributes"),l().createElement("span",{className:m.itemCount},`${P} ${B=P,1===B?p().text("item"):p().text("items")}`)),l().createElement($l,{selectedFilterOptions:w,onChangeFilterOptions:N,defaultFilterText:d,onChangeFilterText:j,filterOptions:L}),_&&l().createElement("div",{className:m.columnsTitle},l().createElement("div",null,p().text("Name")),l().createElement("div",null,p().text("Attribute details"))),l().createElement("div",{className:m.listWrapper,"data-reltio-id":"reltio-dq-dashboard-attributes-list"},l().createElement("div",{className:m.loaderWrapper},V&&l().createElement(Xr.Z,null)),_?l().createElement(Kr.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return l().createElement($r.FixedSizeList,{ref:v,itemCount:U,width:"100%",height:t,itemData:D,itemSize:48},F)})):!V&&l().createElement(Jr.Z,{height:250})));var B},Jl=(0,v.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 en(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){tn(e,t,a[t])}))}return e}function tn(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const an=(0,s.path)([0,"value"]),rn=e=>{var t,a;let{config:i,saveState:o,getSavedState:u}=e;const g=Jl(),{entityType:v,tabs:b,setEntityTypeByUri:x}=(()=>{const e=(0,n.useSelector)(h.ZP.selectors.getMetadata),t=(0,r.useMemo)((()=>e.entityTypes.filter(c.oDv)),[e.entityTypes]),a=(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})(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:(0,c.k7L)(Number((null==a?void 0:a[(0,c.nIW)(l)])||0),999),dataReltioId:`reltio-dq-dashboard-entity-tab-${t}`}}))),[t,a]),setEntityTypeByUri:(0,s.pipe)((0,c.nt9)(e),i)}})(),[w,N]=(0,r.useState)(null),{isLoaded:T,savedState:S}=(0,d.a)(u),M=(0,n.useSelector)(h.ZP.selectors.getCanUserGetDQStatistic),[L,D]=(0,r.useState)(),P=(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),p=(0,n.useSelector)(h.ZP.selectors.getDVFPath),d=e=>{console.error(e),i(y.o.ERROR),a([]),s(null==e?void 0:e.errorCode)},f=e=>{a(e.functions),i(y.o.LOADED)},m=(0,r.useCallback)((()=>{if(e)return i(y.o.LOADING),(0,c.HaQ)({dvfPath:p,tenant:u,entityTypeUri:e}).then(f).catch(d)}),[p,u,e]);return(0,r.useEffect)((()=>{m()}),[m]),{data:t,state:l,reload:m,errorCode:o}})(null==v?void 0:v.uri),j=null==b?void 0:b.map((e=>en({},e,{additionalLabel:l().createElement("span",{className:g.additionalLabel},"(",e.additionalLabel,")")}))),k=(0,r.useCallback)((e=>{(null==v?void 0:v.uri)!==e&&(N(null),x(e),L===I.ENTITY_TYPE&&o(en({dataLevel:L,entityTypeUri:e},H.current&&{filterOptions:H.current.filterOptions,filterText:H.current.filterText})))}),[null==v?void 0:v.uri]),z=(null===(t=i.layoutsByDataLevel)||void 0===t?void 0:t[I.ENTITY_TYPE])||C[I.ENTITY_TYPE],U=null===(a=i.layoutsByDataLevel)||void 0===a?void 0:a[I.ATTRIBUTE_TYPE],_=(0,r.useMemo)((()=>L===I.ENTITY_TYPE&&z?z:((e,t)=>{const a=F(t),r=(0,s.mergeLeft)(e,C[I.ATTRIBUTE_TYPE]);return r[a]||r.default||[]})(U,null==w?void 0:w.type)),[z,null==w?void 0:w.type,U,L]),V=(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 I.ATTRIBUTE_TYPE:return(e=>{switch(e){case R.INTEGER:case R.FLOAT:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART,O.VALUE_DISTRIBUTION];case R.BOOLEAN:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY];case R.STRING:return[O.LENGTH,O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART];case R.DATE:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART,O.VALUE_DISTRIBUTION,O.MONTH_DISTRIBUTION,O.DAY_OF_MONTH_DISTRIBUTION,O.DAY_OF_WEEK_DISTRIBUTION];case R.SSN:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART,O.PATTERN];case R.UNKNOWN:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART,O.LENGTH];default:return[]}})(F(t));case I.ENTITY_TYPE:return[O.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",O.UNSUPPORTED),e)}return e}),l)})(i.viewsByDataLevel,null==w?void 0:w.type,_,L)),[null==w?void 0:w.type,_,L]);(0,r.useEffect)((()=>{T&&(x(S.entityTypeUri||an(b)),D(z?S.dataLevel||I.ENTITY_TYPE:I.ATTRIBUTE_TYPE))}),[T]);const H=(0,r.useRef)(),Y=v&&M&&T;return l().createElement("div",{className:g.perspectiveView},l().createElement(E,{title:p().text("Data Quality")},v&&l().createElement(f.Z,{value:v.uri,tabs:j,onChange:k,scrollButtons:"auto"})),l().createElement("div",{className:g.content},Y&&l().createElement(l().Fragment,null,l().createElement(Ie.Provider,{value:P},l().createElement("div",{className:g.wrapper},z&&l().createElement("div",{className:B()(g.entityLevelButton,{[g.selectedButton]:L===I.ENTITY_TYPE}),onClick:()=>{N(null),D(I.ENTITY_TYPE)}},`${v.label} ${p().text("summary")}`),l().createElement(Xl,{entityType:v,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:a,filterOptions:r}=e;const l=null==t?void 0:t.fieldName,n={entityTypeUri:v.uri,fieldName:l,filterOptions:r,filterText:a,dataLevel:L};!l&&L!==I.ENTITY_TYPE||(0,s.equals)(H.current,n)||(o(n),H.current=n),l&&D(I.ATTRIBUTE_TYPE),N(t)},defaultFieldName:null==S?void 0:S.fieldName,defaultFilterText:null==S?void 0:S.filterText,defaultFilterOptions:null==S?void 0:S.filterOptions,disableAttributeSelection:L===I.ENTITY_TYPE})),(w||L===I.ENTITY_TYPE)&&l().createElement(Wt.Provider,{value:L},l().createElement(Ce.Provider,{value:v},l().createElement(Ae.Provider,{value:w},l().createElement(Qr,{views:V,layout:_})))))),!M&&l().createElement(m.ZP,{text:p().text("403: Permission denied"),secondaryText:p().text("Permission denied")})))};function ln(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const nn=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){ln(e,t,a[t])}))}return e}({},c.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}}),on=(0,i.Z)(nn),cn=(0,o.createGenerateClassName)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0}),sn=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:on},l().createElement(o.StylesProvider,{generateClassName:cn},l().createElement(rn,{config:a,saveState:i,getSavedState:u}))))}}}]);
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[352],{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);t.Z=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.Z=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),p=a(71153),d=a.n(p);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(67075);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:p,onRemove:f,onDrop:v,droppingItem:E,isDroppable:x,classes:T}=e;const S=(0,n.useRef)(),R=O(),[I,A]=(0,n.useState)(null),[C,M]=(0,n.useState)(0),{cols:L,rowHeight:P,margin:D}=r,j=(0,n.useMemo)((()=>(e=>(e||[]).map(m))(a)),[a]),k=(0,u.pipe)(y,b(["autosizing"],a),l),z=(0,n.useCallback)((e=>A((t=>t?null:e))),[]),F=null!==I,U=(0,n.useCallback)(((e,t)=>{let n=!1;const i=a.map((a=>{if(a.id===t&&e){const t=((e,t)=>{const{margin:a,rowHeight:r}=t;return Math.ceil((e+a[1])/(r+a[1]))})(e,r);if(a.height!==t)return n=!0,function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){N(e,t,a[t])}))}return e}({},a,{minHeight:t,maxHeight:t,height:t})}return a}));n&&l(i)}),[a,r,l]);return i().createElement(i().Fragment,null,i().createElement(s.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>M(e)}),i().createElement(c(),{innerRef:S,layout:j,cols:L,draggableHandle:o,autoSize:!0,rowHeight:P,width:C,margin:D,onLayoutChange:k,isResizable:!F,isDraggable:!F,className:d()(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(p,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:z,onRemove:f,className:d()({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(67075),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:p}=(0,l.PWK)(s,t);return i().createElement(c.Z,{className:a,avatarText:u[0],icon:p?(0,l.vPL)("https://s3.amazonaws.com/reltio.images/api",p):null,variant:"square",rootClasses:n})}},39878:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(24328),l=a.n(r),n=a(67075),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}}},83735:(e,t,a)=>{a.r(t),a.d(t,{default:()=>sn});var r=a(24328),l=a.n(r),n=a(52730),i=a(33016),o=a(36138),c=a(67075),s=a(17440),u=a(87918),p=a.n(u),d=a(11326),f=a(7907),m=a(79002),h=a(89810),y=a(5260);var g=a(90436),v=a(79692);const b=(0,v.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"}}),E=e=>{let{title:t,children:a}=e;const r=b();return l().createElement("div",{className:r.root},l().createElement(g.Z,{variant:"body2",className:r.title},t),l().createElement("div",{className:r.content},a))};var x=a(17822);let O;!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"}(O||(O={}));var w=a(73487),N=a(78223),T=a(39878);const S=(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 R,I;!function(e){e.STRING="string",e.FLOAT="float",e.INTEGER="integer",e.BOOLEAN="boolean",e.DATE="date",e.SSN="SSN",e.UNKNOWN="unknown"}(R||(R={})),function(e){e.ENTITY_TYPE="entityType",e.ATTRIBUTE_TYPE="attributeType"}(I||(I={}));const A={[I.ATTRIBUTE_TYPE]:[{id:"FillRateView",type:O.FILL_RATE_CHART,title:"Fill rate"},{id:"UniquenessAnalysisView",type:O.UNIQUENESS_CHART,title:p().text("Uniqueness analysis")},{id:"SummaryView",type:O.SUMMARY,title:p().text("Summary")},{id:"ValidationView",type:O.VALIDATION,title:p().text("Profiles that violated validation function")},{id:"FrequencyAnalysis",type:O.FREQUENCY,title:p().text("Frequency analysis")},{id:"LengthStatistics",type:O.LENGTH,title:p().text("Length statistics")},{id:"PatternAnalysis",type:O.PATTERN,title:p().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:O.CROSSWALK,title:p().text("Source system analysis")},{id:"MonthDistribution",type:O.MONTH_DISTRIBUTION,title:p().text("Month distribution")},{id:"DayOfWeekDistribution",type:O.DAY_OF_WEEK_DISTRIBUTION,title:p().text("Day of week distribution")},{id:"DayOfMonthDistribution",type:O.DAY_OF_MONTH_DISTRIBUTION,title:p().text("Day of month distribution")},{id:"ValueDistribution",type:O.VALUE_DISTRIBUTION,title:p().text("Value distribution")},{id:"UnsupportedDataType",type:O.UNSUPPORTED,title:p().text("Unsupported Data Type")}],[I.ENTITY_TYPE]:[{id:"SummaryView",type:O.SUMMARY,title:p().text("Summary")}]},C={[I.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"}],[R.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"}],[R.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"}],[R.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"}],[R.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"}],[R.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 M(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){L(e,t,a[t])}))}return e}function L(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const P=(0,s.map)((e=>M({},e,{localizedValue:p().number(e.value)}))),D=e=>(0,s.isNil)(e)?"":`(${e}%)`,j=e=>(0,s.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),k=(0,s.curry)(((e,t,a)=>({advanced:[S(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"}))),z=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))},F=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 R.STRING;case c.oS0.TYPE_COUNT:case c.oS0.TYPE_DOLLAR:case c.oS0.TYPE_INT:case c.oS0.TYPE_LONG:return R.INTEGER;case c.oS0.TYPE_FLOAT:case c.oS0.TYPE_DOUBLE:case c.oS0.TYPE_NUMBER:return R.FLOAT;case c.oS0.TYPE_BOOLEAN:case c.oS0.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return R.BOOLEAN;case c.oS0.TYPE_ACTIVENESS_DATE:case c.oS0.TYPE_DATE:case c.oS0.TYPE_LOCAL_DATE:case c.oS0.TYPE_TIMESTAMP:return R.DATE;case c.oS0.TYPE_SSN:return R.SSN;default:return R.UNKNOWN}},U=e=>{let{percent:t,value:a}=e;return M({width:`${t}%`},a>0&&{minWidth:"3px"})},_=(0,s.pipe)((0,s.pluck)("percent"),(e=>Math.max(...e)));var V=a(71153),B=a.n(V);const H=(0,v.Z)({wrapper:{width:"100%",display:"flex",justifyContent:"center",margin:"auto",flexWrap:"wrap",flexDirection:"column",marginBottom:2},item:{display:"flex",alignItems:"center",height:19},itemColor:{width:12,height:12,marginRight:9,flexShrink:0}}),Y=e=>{let{payload:t}=e;const a=H();return l().createElement("div",{className:B()(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))))},Z=(0,v.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 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)}const G=(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=Z();return l().createElement("div",W({className:B()(n.bar,a)},r,{ref:t}))}));G.displayName="Bar";const q=G,Q=(0,v.Z)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"}}),$=e=>{let{label:t,value:a}=e;const r=Q();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:B()(r.label,r.chartDataLabel)},t),a)},K=(0,v.Z)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),X=e=>{let{data:t,title:a,DataRenderer:r=$}=e;const n=K();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 J(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){ee(e,t,a[t])}))}return e}function ee(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const te=(0,N.Z)(q),ae=e=>{let{label:t,value:a,percent:r}=e;return[{label:t,value:`${p().number(a)} ${D(r)}`}]},re=(0,T.Z)((e=>{let{data:t,colors:a,onItemClick:r}=e;const n=Z(),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(te,{className:o&&n.clickable,key:e.label,tooltipTitle:l().createElement(X,{data:ae(e)}),style:J({},U(e),{background:a[t]}),onClick:()=>i(e.group)})))),l().createElement("div",{className:n.legendWrapper},l().createElement(w.De,{layout:"vertical",align:"left",verticalAlign:"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%"},content:l().createElement(Y,null),payload:(t||[]).map(((e,t)=>{let{group:r,label:i,value:o,percent:s}=e;return{id:r,type:"square",color:a[t],value:l().createElement(l().Fragment,null,l().createElement("span",{className:n.legendLabel},i),l().createElement("span",{className:n.legendValue},`${(0,c.k7L)(o,999)} ${D(s)}`))}}))})))}));var le=a(17998),ne=a(39475),ie=a(82726);const oe=(0,v.Z)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:e=>e?0:"5px"},infoIcon:{position:"relative"}}))),ce=e=>{let{title:t,infoTooltipTitle:a,children:r}=e;const n=oe(!!r),i=!!a;return l().createElement(le.Z,{title:t,className:n.root,classes:{title:n.title}},i&&l().createElement(ne.k,{icon:ie.Z,size:"XXS",tooltipTitle:a,className:n.infoIcon}),r)};var se=a(54823);const ue=(0,v.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}})));function pe(){return pe=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},pe.apply(this,arguments)}const de=e=>{let{className: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,["className"]);const r=ue();return l().createElement(se.Z,pe({},a,{className:B()(r.viewContent,t)}))};var fe=a(1730);const me=(0,v.Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),he=e=>{let{config:t,children:a}=e;const r=me(),{type:n}=t;return l().createElement(fe.Z,{className:r.view,"data-reltio-id":`reltio-dq-dashboard-chart-${n}`},a)},ye=e=>{let{label:t,value:a}=e;const r=Q();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:B()(r.label,r.infoDataLabel)},t),a)},ge={[c.s9T.MISSING]:"#CE5C00",[c.s9T.EXISTS]:"#C4CE00"},ve=(0,s.map)((e=>{let{group:t}=e;return ge[t]||(0,c.f4_)(t)})),be=e=>({[c.s9T.MISSING]:p().text("Missing"),[c.s9T.EXISTS]:p().text("Exists")}[e]||e),Ee=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:be(t),group:t,value:a}})),(0,s.sortBy)((e=>Object.values(c.s9T).indexOf(e.group))),P),xe=e=>Object.keys(e).reduce(((t,a)=>(t[a]=Ee(e[a]),t)),{}),Oe=(0,s.propOr)({},"fillRate"),we=(0,s.pipe)(Oe,Ee,(0,s.when)(j,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,ve])),Ne=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:t===c.s9T.EXISTS?c.j5E.EXISTS:c.j5E.MISSING_VALUE,fieldName:a}]})),Te=z(Ne),Se=l().createContext(null);Se.displayName="ChartsDataContext";const Re=e=>{const{data:t,state:a,reload:l}=(0,r.useContext)(Se);return{data:(0,r.useMemo)((()=>e(t)),[t,e]),state:a,reload:l}},Ie=l().createContext(null);Ie.displayName="DVFContext";const Ae=l().createContext(null);Ae.displayName="DetailedAttributeTypeContext";const Ce=l().createContext(null);Ce.displayName="EntityTypeContext";const Me=e=>{const t=(0,n.useDispatch)(),a=(0,r.useContext)(Ae),l=(0,r.useContext)(Ce),i=(0,r.useContext)(Ie).data;return(0,s.pipe)(e({detailedAttributeType:a,entityTypeUri:l.uri,dvfs:i}),h.ui.actions.openSearch,t)},Le=e=>{let{config:t}=e;const{title:a}=t,{data:r,state:n,reload:i}=Re(we),{chartData:o,colors:c}=r,s=Me(Te),u=l().createElement(X,{title:p().text("Fill rate"),data:[{label:`${p().text("Exists")}:`,value:p().text("Profiles with data")},{label:`${p().text("Missing")}:`,value:p().text("Profiles without data")}],DataRenderer:ye});return l().createElement(he,{config:t},l().createElement(ce,{title:a,infoTooltipTitle:u}),l().createElement(de,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(re,{data:t,colors:c,onItemClick:s})})))},Pe={[c.dC6.UNIQUE]:"#4BAFFF",[c.dC6.NOT_UNIQUE]:"#C34980"},De=(0,s.map)((e=>{let{group:t}=e;return Pe[t]||(0,c.f4_)(t)})),je=e=>({[c.dC6.UNIQUE]:p().text("Unique"),[c.dC6.NOT_UNIQUE]:p().text("Not unique")}[e]||e),ke=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:je(t),group:t,value:a}})),(0,s.sortBy)((e=>Object.values(c.dC6).indexOf(e.group))),P),ze=(0,s.propOr)({},"uniqueness"),Fe=(0,s.pipe)(ze,ke,(0,s.when)(j,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,De])),Ue=e=>{let{config:t}=e;const{title:a}=t,{data:r,state:n,reload:i}=Re(Fe),{chartData:o,colors:c}=r,s=l().createElement(X,{title:p().text("Uniqueness analysis"),data:[{label:`${p().text("Unique")}:`,value:p().text("Number of values that only appear once and have no duplicates")},{label:`${p().text("Not unique")}:`,value:p().text("Number of values that have at least one duplicate in the list")}],DataRenderer:ye});return l().createElement(he,{config:t},l().createElement(ce,{title:a,infoTooltipTitle:s}),l().createElement(de,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(re,{data:t,colors:c})})))};var _e=a(82068),Ve=a(4614),Be=a(80030),He=a(7089);const Ye=(e,t)=>(e||[]).some((0,s.propEq)("attribute",t)),Ze=e=>[c.oS0.TYPE_FLOAT,c.oS0.TYPE_DOUBLE,c.oS0.TYPE_NUMBER].includes(e);let We;function Ge(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){qe(e,t,a[t])}))}return e}function qe(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.REQUIRED="required",e.RDM_LOOKUP="RDMLookup",e.CONTAIN_VF="containVF",e.REFERENCE="reference"}(We||(We={}));const Qe=(0,s.curry)(((e,t)=>e.every((e=>t.details[e.value])))),$e=(0,s.curry)(((e,t)=>{var a;return Qe(e,t)||(null===(a=t.children)||void 0===a?void 0:a.some((t=>$e(e,t))))})),Ke=(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})),Xe=(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)})),Je=(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 Xe(e,Ge({},t,{fieldName:l}))||(null===(a=t.children)||void 0===a?void 0:a.some((a=>Je(e,a,r.concat({name:t.name,label:t.label})))))})),et=(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||[]:et(e,a.children||[]);return(r||l.length)&&t.push(Object.assign({},a,l.length&&{children:l})),t}),[])));function tt(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){at(e,t,a[t])}))}return e}function at(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const rt=e=>{let{attrTypeItem:t,dvf:a=[],matchAttributes:r=[]}=e;const{uri:l,required:n,isAttributeReference:i}=t;return{[We.INCLUDED_IN_MATCHING]:r.includes(l),[We.CONTAIN_VF]:Ye(a,l),[We.REQUIRED]:!!n,[We.RDM_LOOKUP]:(0,c.lS4)(t),[We.REFERENCE]:i}},lt=e=>({[We.INCLUDED_IN_MATCHING]:p().text("Included in matching"),[We.CONTAIN_VF]:p().text("Has validation functions"),[We.REQUIRED]:p().text("Required"),[We.RDM_LOOKUP]:p().text("RDM"),[We.REFERENCE]:p().text("Reference attribute")}[e]||e),nt=(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?nt(e.children,t.concat({name:e.name,label:e.label}),a||(0,c.YkG)(e),r+1):[];return[{attributeItem:tt({},e,{fieldName:(0,c.Tde)(e.uri,t),isAttributeReference:(0,c.YkG)(e)||a}),level:r},...l]})))(e)}));function it(){return it=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},it.apply(this,arguments)}const ot=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",it({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 ct(){return ct=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},ct.apply(this,arguments)}const st=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",ct({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 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 pt=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:"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 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)}const ft=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",dt({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 mt(){return mt=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},mt.apply(this,arguments)}const ht=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",mt({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"}))},yt=(0,v.Z)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),gt={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let vt;!function(e){e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal"}(vt||(vt={}));const bt=e=>{let{detailType:t,size:a=gt.NORMAL,variant:r=vt.NORMAL}=e;const n=yt(a),i=B()(n.icon,n[r]);switch(t){case We.RDM_LOOKUP:return l().createElement(pt,{className:i});case We.CONTAIN_VF:return l().createElement(ot,{className:i});case We.INCLUDED_IN_MATCHING:return l().createElement(st,{className:i});case We.REFERENCE:return l().createElement(ft,{className:i});case We.REQUIRED:return l().createElement(ht,{className:i});default:return null}},Et=(0,v.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 xt(){return xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},xt.apply(this,arguments)}function Ot(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){wt(e,t,a[t])}))}return e}function wt(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Nt=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=Et(),{data:o,state:s}=(0,r.useContext)(Se);let u=vt.NORMAL;const p=s===y.o.LOADING,d=(e=>{var t;return 0===(null==e||null===(t=e.fillRate)||void 0===t?void 0:t[c.s9T.MISSING])})(o);return t===We.REQUIRED&&(p&&(u=vt.LOADING),p||d||(u=vt.BAD_QUALITY)),l().createElement(He.Z,xt({classes:Ot({root:B()(i.root,{[i.badQuality]:t===We.REQUIRED&&!p&&s!==y.o.INIT&&!d}),label:i.label},a),label:lt(t),icon:l().createElement(bt,{detailType:t,variant:u})},n))},Tt=(0,v.Z)({root:{display:"flex",flexWrap:"wrap",flexGrow:1}}),St=e=>{let{details:t,chipClasses:a={}}=e;const r=Tt();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(Nt,{key:t,detailType:t,classes:a})})))},Rt=(0,v.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"}}),It=e=>{let{title:t,children:a,className:r}=e;const n=Rt();return l().createElement("div",{className:B()(n.info,r)},l().createElement("div",{className:n.infoTitle},t),l().createElement("div",{className:n.infoContent},a))};function At(){return At=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},At.apply(this,arguments)}const Ct=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",At({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 Mt(){return Mt=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},Mt.apply(this,arguments)}const Lt=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",Mt({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 Pt(){return Pt=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},Pt.apply(this,arguments)}const Dt=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",Pt({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 jt(){return jt=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},jt.apply(this,arguments)}const kt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",jt({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 zt(){return zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},zt.apply(this,arguments)}const Ft=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",zt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"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 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 _t=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}(e,["styles"]);return l().createElement("svg",Ut({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"})))},Vt=(0,v.Z)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}}}),Bt={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},Ht=e=>{let{type:t,size:a=Bt.SMALL}=e;const r=Vt(a);switch(F(t)){case R.STRING:return l().createElement(_t,{className:r.icon});case R.FLOAT:return l().createElement(Dt,{className:r.icon});case R.INTEGER:return l().createElement(kt,{className:r.icon});case R.BOOLEAN:return l().createElement(Ct,{className:r.icon});case R.DATE:return l().createElement(Lt,{className:r.icon});case R.SSN:return l().createElement(Ft,{className:r.icon});default:return l().createElement(_t,{className:r.icon})}},Yt=e=>{let{detailedAttributeType:t}=e;const a=Rt(),n=(e=>{const[t,a]=(0,r.useState)(null),l=(0,r.useContext)(Ce);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(Ve.Z,{size:"24",className:a.totalLoading}):(0,c.k7L)(n);return l().createElement("div",null,l().createElement("div",{className:a.header},l().createElement(It,{title:p().text("Profiles"),className:a.attributeTypeSummary},l().createElement(Be.ZP,{title:l().createElement(X,{data:[{label:p().text("Entities with exists attribute"),value:p().number(n)}]})},l().createElement("div",null,i))),l().createElement(It,{title:p().text("Data type"),className:a.attributeTypeSummary},(o=t.type,l().createElement(l().Fragment,null,l().createElement("div",{className:a.attributeTypeIconWrapper},l().createElement(Ht,{type:o,size:Bt.NORMAL})),p().text(o))))),l().createElement(St,{details:t.details}));var o},Zt=e=>{let{entityType:t}=e;const{data:a,state:i}=(0,r.useContext)(Se),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:d=0,sourceSystems:f=0}=(null==a?void 0:a.summary)||{},m=e=>i===y.o.LOADING?l().createElement(Ve.Z,{size:"24",className:g.totalLoading}):p().number(e),g=Rt();return l().createElement("div",{className:g.header},l().createElement(It,{title:p().text("Active profiles"),className:g.entitySummary},m(u)),l().createElement(It,{title:p().text("Inactive profiles"),className:g.entitySummary},m(d)),l().createElement(It,{title:p().text("Attributes"),className:g.entitySummary},p().number(o)),l().createElement(It,{title:p().text("Source systems"),className:g.entitySummary},m(f)))},Wt=l().createContext(null);Wt.displayName="DataLevelContext";const Gt=(0,v.Z)({content:{padding:"0 16px",marginTop:"4px"}}),qt=e=>{let{config:t}=e;const a=Gt(),n=(0,r.useContext)(Ae),i=(0,r.useContext)(Wt),o=(0,r.useContext)(Ce),s=i===I.ATTRIBUTE_TYPE,u=s?(0,c.idV)(n.label):(0,c.idV)(o.label);return l().createElement(he,{config:t},l().createElement(ce,{title:u}),l().createElement(_e.Z,{className:a.content},s?l().createElement(Yt,{detailedAttributeType:n}):l().createElement(Zt,{entityType:o})))};var Qt=a(65298);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 Kt=(0,v.Z)({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:"20px"}},errorMessage:{padding:"0 24px",fontSize:"14px",textAlign:"center"},errorTitle:{padding:"0 24px",fontSize:"16px",textAlign:"center"}}),Xt=l().createElement((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:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg98386349a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),l().createElement("g",{mask:"url(#svg98386349a)"},l().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:".3"}),l().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),l().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),l().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),l().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),l().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),l().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),l().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),l().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),l().createElement("path",{opacity:".5",d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),l().createElement("path",{opacity:".3",d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),l().createElement("path",{opacity:".8",d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),l().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),l().createElement("path",{opacity:".2",d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),l().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),l().createElement("g",{filter:"url(#filter0_d)"},l().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),l().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),l().createElement("path",{opacity:".15",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),l().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),l().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),l().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),l().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#paint0_linear)"}),l().createElement("g",{filter:"url(#filter1_d)"},l().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),l().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),l().createElement("g",{filter:"url(#filter2_d)"},l().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),l().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),l().createElement("defs",null,l().createElement("filter",{id:"filter0_d",x:"36.219",y:"37.875",width:"42.375",height:"42.375",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"}),l().createElement("feOffset",{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"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),l().createElement("filter",{id:"filter1_d",x:"51.688",y:"62.625",width:"11.438",height:"11.438",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"}),l().createElement("feOffset",{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"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),l().createElement("filter",{id:"filter2_d",x:"51.688",y:"44.063",width:"11.438",height:"23.813",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"}),l().createElement("feOffset",{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"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),l().createElement("linearGradient",{id:"paint0_linear",x1:"68.438",y1:"71.571",x2:"60.119",y2:"58.801",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopOpacity:"0"}),l().createElement("stop",{offset:"1"}))))}),null),Jt=e=>{let{config:t,icon:a=Xt,message:r,title:n}=e;const i=Kt(),{id:o,title:c}=t;return l().createElement(Qt.Z,{id:o},l().createElement(ce,{title:c}),l().createElement(_e.Z,{className:i.container},a,n&&l().createElement(g.Z,{className:i.errorTitle},n),r&&l().createElement(g.Z,{className:i.errorMessage},r)))},ea=e=>{let{keyword:t,entityTypeUri:a}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[S(a)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}},ta=e=>{let{fieldName:t,value:a,entityTypeUri:r}=e;return ea({keyword:`${c.j5E.EQUALS}(${t}, ${a})`,entityTypeUri:r})};function aa(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const ra=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}})),P),la=e=>(t,a)=>"asc"===e?t.value-a.value:a.value-t.value,na=(0,s.curry)(((e,t)=>{const a=t.map((t=>{const a=(e||[]).find((0,s.propEq)("uri",t.group));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){aa(e,t,a[t])}))}return e}({},t,{label:(null==a?void 0:a.name)||`"uri": "${t.label}"`,group:(null==a?void 0:a.name)||t.group,isActive:!!a&&a.status===c.lVm.ACTIVE})})),r=(e||[]).filter((e=>(0,s.propEq)("status",c.lVm.ACTIVE,e)&&!(0,s.any)((0,s.propEq)("group",e.uri),t))).map((e=>({label:e.name,group:e.name,value:0,isActive:!0})));return[...a,...P(r)]})),ia=ra("frequency"),oa=ra("pattern"),ca=(0,s.curry)(((e,t)=>{let{dvfs:a}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:(0,s.includes)(t,a.map((0,s.prop)("name")))?"analyticsAttributes.AttributeValidations.FunctionName":"analyticsAttributes.AttributeValidations.FunctionURI"}]})),sa=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return ta({fieldName:`${a.fieldName}`,value:t,entityTypeUri:r})})),ua=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:c.j5E.ON,values:[t],fieldName:a}]})),pa=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:a}]})),da=e=>{let{detailedAttributeType:t,entityTypeUri:a}=e;return(0,s.cond)([[c.j5n,(0,s.always)(sa)],[c.Lt4,(0,s.always)(z(ua))],[s.identity,(0,s.always)(z(pa))]])(t.type)({detailedAttributeType:t,entityTypeUri:a,dvfs:[]})},fa=z(ca),ma=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return ta({fieldName:`${a.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:r})}));var ha=a(79573),ya=a(45108),ga=a(92332),va=a(83088);const ba=(0,s.pipe)((0,s.split)("|"),(e=>{let[t,a]=e;return{label:t,percent:a}})),Ea={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"},xa=(0,v.Z)((e=>({colorBarContainer:{position:"relative",width:"100%",marginLeft:"16px",padding:"5px 0 6px",height:"100%",boxSizing:"border-box","&>span>div":{opacity:1,backgroundColor:t=>t?"#0072CE":e.palette.text.disabled,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:{display:"flex",alignItems:"center",height:"100%",lineHeight:"47px","&>div":{padding:"0 10px 0 16px",width:"100%",display:"flex"},"&>div>span":{width:"100%",justifyContent:"flex-end",flexGrow:1}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"47px",whiteSpace:"nowrap",overflow:"hidden","&:after":Ea},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":Ea},tooltipValue:{whiteSpace:"pre-wrap"}})));function Oa(){return Oa=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},Oa.apply(this,arguments)}function wa(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){Na(e,t,a[t])}))}return e}function Na(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Ta=e=>{let{className:t,headCellData: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","headCellData"]);const n=xa(),{label:i,percent:o}=ba(a.label),c=!!o,s=l().createElement(va.C,{value:i},l().createElement("div",{className:n.headLabel},i));return l().createElement("div",{className:B()(n.headCell,t)},l().createElement(ga.default,Oa({},r,{headCellData:wa({},a,{label:c?l().createElement("div",{className:n.labelPercantageWrapper},l().createElement("div",{className:n.labelWrapper},s),l().createElement("div",{className:n.percentsWrapper},l().createElement("span",{className:n.percentLabel},"0%"),l().createElement("span",{className:n.percentLabel},o,"%"))):s})})))};var Sa=a(59383),Ra=a(30488);const Ia=(0,Ra.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=xa(),u=(0,Sa.d)(n),p=l().createElement("div",{className:s.tooltipValue},t),d=!!o;return l().createElement(va.C,{value:p},l().createElement("div",{className:B()(s.attribute,u,i),onClick:n},d?l().createElement(o,{chartData:r}):c.P6Y.strings.removeLineBreaks(t)))}));var Aa=a(89902);const Ca=(0,N.Z)((e=>{let{value:t,maxValue:a,className:r}=e;return l().createElement(Aa.Z,{width:t,maxWidth:a,className:r})})),Ma=(0,Ra.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,isActive:i=!0},labelHeader:o,valueHeader:u,onClick:d}=e;const f=xa(i),m=(0,Sa.d)(d),h=l().createElement("span",{className:f.tooltipValue},n),y=0===t?"0":`${(0,c.k7L)(t,999)} ${D(r)}`,v=l().createElement(X,{data:[{label:o,value:h},{label:u,value:`${p().number(t)} ${D(r)}`}]});return l().createElement("div",{className:B()(f.numberContainer,m),onClick:d},l().createElement(g.Z,{className:f.numberWhithPercent},y),!(0,s.isNil)(a)&&l().createElement("div",{className:f.colorBarContainer},l().createElement(Ca,{value:t,maxValue:a,tooltipTitle:v,className:f.bar,showForDisabled:!0})))})),La=(0,v.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 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)}const Da=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 d=La({width:t,height:a}),{headers:[f,m]=[],showValues:h=!0,sortable:y=!1,LabelRenderer:g}=i,v=(0,r.useMemo)((()=>({cellBorder:d.cellBorder})),[d]),b=(0,r.useMemo)((()=>Math.max(...n.map((e=>e.value)))),[n]),E=(0,r.useMemo)((()=>{const e=_(n),t=m||p().text("No of Profiles");return e?t.concat(`|${e}`):t}),[n,m]),x=(0,r.useMemo)((()=>[{id:"label",label:f||p().text("Attributes"),resizable:!1,headCellRenderer:Ta,attributeCellClassName:s,rowCellValueRenderer:Ia,initialWidth:.4*t,LabelRenderer:g},...h?[{id:"value",label:E,resizable:!1,headCellRenderer:Ta,rowCellValueRenderer:Ma,maxValue:b,initialWidth:.6*t,sortable:y}]:[]]),[E,b,t,f,h]),O=(0,r.useMemo)((()=>({onItemClick:c,labelHeader:f,valueHeader:m})),[c,f,m]);return l().createElement("div",{className:d.tableContainer},l().createElement(ya.Z,Pa({columnsData:x,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:v,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:O},u)))},ja=(0,v.Z)((()=>({layoutItemContent:{padding:"0 0 10px"}}))),ka=(0,T.Z)((e=>{let{config:t,data:a,title:n,headers:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,titleChildren:u,state:p,onRefresh:d,labelCellClassName:f,LabelRenderer:m}=e;const h=ja(),[y,g]=(0,r.useState)("desc"),v=(0,r.useCallback)(((e,t)=>c?c(y)(e,t):la(y)(e,t)),[y]),b=()=>{g(ha.Dh)},E=(0,r.useMemo)((()=>[...a.sort(v)]),[v,a]);return l().createElement("div",null,l().createElement(he,{config:t},l().createElement(ce,{title:n,infoTooltipTitle:o},u),l().createElement(de,{className:h.layoutItemContent,data:E,loadingState:p,onRefresh:d},(e=>{let{data:t,width:a=0,height:r=0}=e;return l().createElement(Da,{data:t,width:a,height:r,options:{headers:i,sortable:!!c,LabelRenderer:m},sorting:{field:"value",order:y},onSort:b,onItemClick:s,labelCellClassName:f})}))))}));var za=a(86689);function Fa(){return Fa=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},Fa.apply(this,arguments)}const Ua=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",Fa({width:"148",height:"148",viewBox:"0 0 148 148",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l().createElement("mask",{id:"svg3012965951a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"148",height:"148"},l().createElement("path",{d:"M74 148c40.869 0 74-33.131 74-74 0-40.87-33.131-74-74-74C33.13 0 0 33.13 0 74c0 40.869 33.13 74 74 74z",fill:"#fff"})),l().createElement("g",{mask:"url(#svg3012965951a)"},l().createElement("path",{d:"M74 148c40.869 0 74-33.131 74-74 0-40.87-33.131-74-74-74C33.13 0 0 33.13 0 74c0 40.869 33.13 74 74 74z",fill:"#0072CE",fillOpacity:".1"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 5.203h148V148H0V5.203z",fill:"url(#paint0_linear)"}),l().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},l().createElement("path",{opacity:".5",d:"M25.186 26.016h131.896V128.04H25.186V26.016z",fillOpacity:".8"}),l().createElement("path",{opacity:".9",d:"M16.766 26.021a4.626 4.626 0 014.623-4.63h129.406a4.623 4.623 0 014.623 4.63v88.107a4.625 4.625 0 01-4.623 4.631H21.389a4.623 4.623 0 01-4.623-4.631V26.021z"})),l().createElement("path",{opacity:".5",d:"M141.553 50.95a2.315 2.315 0 002.311-2.32 2.315 2.315 0 00-2.311-2.318 2.315 2.315 0 00-2.311 2.319 2.315 2.315 0 002.311 2.318zM133.465 50.95a2.315 2.315 0 002.311-2.32 2.315 2.315 0 00-2.311-2.318 2.314 2.314 0 00-2.311 2.319 2.314 2.314 0 002.311 2.318z",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.808 46.313a5.488 5.488 0 015.489 5.488v.035a5.488 5.488 0 01-10.977 0v-.035a5.488 5.488 0 015.488-5.489z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 46.19h37.054a2.029 2.029 0 010 4.057H47.102a2.028 2.028 0 110-4.057z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 53.725h67.006a1.45 1.45 0 010 2.898H46.523a1.449 1.449 0 110-2.898z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 58.941h21.62a.87.87 0 010 1.74h-21.62a.87.87 0 110-1.74z",fill:"#B1AABD"}),l().createElement("path",{opacity:".5",d:"M71.35 30.664H31.508a3.188 3.188 0 100 6.375H71.35a3.188 3.188 0 000-6.375z",fill:"#645F6D"}),l().createElement("path",{opacity:".5",d:"M141.553 72.972a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.318 2.315 2.315 0 00-2.311 2.318 2.315 2.315 0 002.311 2.319zM133.465 72.972a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.318 2.314 2.314 0 00-2.311 2.318 2.314 2.314 0 002.311 2.319z",fill:"#6DBCFF"}),l().createElement("path",{d:"M39.297 73.824a5.488 5.488 0 10-10.977 0v.035a5.488 5.488 0 0010.977 0v-.035z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 68.214h43.894a2.029 2.029 0 010 4.057H47.102a2.029 2.029 0 010-4.057z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 75.748h74.516a1.45 1.45 0 010 2.898H46.523a1.449 1.449 0 110-2.898z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 80.965h60.077a.87.87 0 010 1.739H45.943a.87.87 0 010-1.74z",fill:"#B1AABD"}),l().createElement("path",{opacity:".5",d:"M141.553 94.996a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.319 2.315 2.315 0 00-2.311 2.319 2.315 2.315 0 002.311 2.318zM133.465 94.996a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.319 2.314 2.314 0 00-2.311 2.319 2.314 2.314 0 002.311 2.318z",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.808 90.36a5.488 5.488 0 015.489 5.488v.035a5.488 5.488 0 11-10.977 0v-.035a5.488 5.488 0 015.488-5.489z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 90.237h58.915a2.028 2.028 0 010 4.057H47.102a2.029 2.029 0 010-4.057z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 97.772h49.096a1.449 1.449 0 110 2.897H46.524a1.448 1.448 0 110-2.897z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 102.988h21.62a.87.87 0 010 1.739h-21.62a.87.87 0 110-1.739z",fill:"#B1AABD"}),l().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M102.927 64.75l44.536 77.139-58.989 34.057-44.536-77.14.405-.234c4.06 9.263 12.074 16.712 22.462 19.616 18.103 5.059 36.562-5.599 41.232-23.805 2.679-10.449.235-21.113-5.757-29.26l.647-.374z",fill:"url(#paint1_linear)"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M56.352 103.62c10.385 10.611 27.223 10.611 37.609 0 10.385-10.612 10.385-27.816 0-38.427-10.386-10.611-27.224-10.611-37.61 0-10.385 10.611-10.385 27.815 0 38.427z",fill:"url(#paint2_linear)"}),l().createElement("g",{filter:"url(#filter0_d)",fillRule:"evenodd",clipRule:"evenodd"},l().createElement("path",{d:"M74.981 49.719c19.06 0 34.512 15.462 34.512 34.536a34.418 34.418 0 01-8.665 22.886l29.603 29.623a51.708 51.708 0 01-5.837 5.43l-29.705-29.725a34.338 34.338 0 01-19.908 6.322c-19.06 0-34.512-15.462-34.512-34.536S55.92 49.719 74.98 49.719zm0 10.265c-13.395 0-24.254 10.866-24.254 24.27 0 13.405 10.859 24.272 24.254 24.272 13.395 0 24.254-10.867 24.254-24.271S88.376 59.984 74.981 59.984z",fill:"#B5C8C9"}),l().createElement("path",{d:"M52.903 110.801c-7.598-6.335-12.434-15.876-12.434-26.546 0-19.074 15.451-34.536 34.512-34.536 10.663 0 20.197 4.839 26.528 12.442l-5.662 5.667c-4.862-6.175-12.401-10.14-20.866-10.14-14.662 0-26.548 11.895-26.548 26.567 0 8.47 3.962 16.015 10.132 20.88l-5.662 5.666z",fill:"#fff",fillOpacity:".4"})),l().createElement("g",{style:{mixBlendMode:"soft-light"},opacity:".4"},l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.352 103.62c10.385 10.611 27.223 10.611 37.609 0 10.385-10.612 10.385-27.816 0-38.427-10.386-10.611-27.224-10.611-37.61 0-10.385 10.611-10.385 27.815 0 38.427z",fill:"#D9F5FF"})),l().createElement("g",{style:{mixBlendMode:"overlay"}},l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.621 91.769c0-2.272.257-4.065.77-5.38.513-1.314 1.346-2.453 2.497-3.418 1.151-.964 2.026-1.847 2.625-2.648.6-.802.899-1.684.899-2.649 0-2.35-1.012-3.524-3.034-3.524-.933 0-1.688.343-2.263 1.027-.576.685-.88 1.61-.91 2.777h-7.888c.031-3.111 1.011-5.534 2.94-7.27 1.93-1.734 4.636-2.601 8.121-2.601 3.47 0 6.157.801 8.063 2.404 1.905 1.602 2.858 3.881 2.858 6.837 0 1.291-.257 2.466-.77 3.524-.513 1.058-1.338 2.139-2.474 3.243l-2.683 2.497c-.762.732-1.291 1.482-1.587 2.252-.295.77-.459 1.746-.49 2.929h-6.674zm-.957 7.094c0-1.151.416-2.096 1.249-2.835.832-.74 1.87-1.109 3.115-1.109s2.283.37 3.115 1.109c.833.739 1.249 1.684 1.249 2.835s-.416 2.096-1.249 2.835c-.832.739-1.87 1.109-3.115 1.109s-2.283-.37-3.115-1.109c-.833-.739-1.249-1.684-1.249-2.835z",fill:"#000",fillOpacity:".87"})),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.621 91.769c0-2.272.257-4.065.77-5.38.513-1.314 1.346-2.453 2.497-3.418 1.151-.964 2.026-1.847 2.625-2.648.6-.802.899-1.684.899-2.649 0-2.35-1.012-3.524-3.034-3.524-.933 0-1.688.343-2.263 1.027-.576.685-.88 1.61-.91 2.777h-7.888c.031-3.111 1.011-5.534 2.94-7.27 1.93-1.734 4.636-2.601 8.121-2.601 3.47 0 6.157.801 8.063 2.404 1.905 1.602 2.858 3.881 2.858 6.837 0 1.291-.257 2.466-.77 3.524-.513 1.058-1.338 2.139-2.474 3.243l-2.683 2.497c-.762.732-1.291 1.482-1.587 2.252-.295.77-.459 1.746-.49 2.929h-6.674zm-.957 7.094c0-1.151.416-2.096 1.249-2.835.832-.74 1.87-1.109 3.115-1.109s2.283.37 3.115 1.109c.833.739 1.249 1.684 1.249 2.835s-.416 2.096-1.249 2.835c-.832.739-1.87 1.109-3.115 1.109s-2.283-.37-3.115-1.109c-.833-.739-1.249-1.684-1.249-2.835z",fill:"#3C74B4",fillOpacity:".38"})),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear",x1:"74",y1:"5.203",x2:"74",y2:"148",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:"0"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear",x1:"123.612",y1:"142.028",x2:"76.729",y2:"122.717",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopOpacity:"0"}),l().createElement("stop",{offset:"1"})),l().createElement("linearGradient",{id:"paint2_linear",x1:"75.156",y1:"57.234",x2:"75.156",y2:"111.578",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#EEFBFF"}),l().createElement("stop",{offset:"1",stopColor:"#0072CE"})),l().createElement("filter",{id:"filter0_d",x:"36.469",y:"47.719",width:"97.962",height:"100.475",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"}),l().createElement("feOffset",{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"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"}))))},_a=(0,v.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.54)",marginLeft:"16px",paddingLeft:"16px",overflow:"hidden",textOverflow:"ellipsis"}})));function Va(){return Va=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},Va.apply(this,arguments)}const Ba=e=>{const{config:t}=e,{data:a,state:n,reload:i,errorCode:o}=(0,r.useContext)(Ie),u=(d=(0,r.useContext)(Ae).uri,(a||[]).filter((0,s.propEq)("attribute",d)));var d;const{data:f,state:m,reload:h}=Re((N=u,(0,s.pipe)(ra("dataValidationFunctions"),na(N)))),v=Me(fa),b=_a(),E=(0,r.useMemo)((()=>n===y.o.LOADED&&m===y.o.LOADED?y.o.LOADED:n===y.o.ERROR||m===y.o.ERROR?y.o.ERROR:y.o.LOADING),[m,n]),x=(0,r.useMemo)((()=>()=>{n===y.o.ERROR&&i(),m===y.o.ERROR&&h()}),[m,n,i,h]),O=l().createElement(va.C,{value:t.title},l().createElement(g.Z,{className:b.title},t.title)),w=[p().text("Validation function"),p().text("Count")];var N;return E===y.o.ERROR&&o===c.Xt7.DVF_NOT_CONFIGURED||0===f.length?l().createElement(Jt,Va({},e,{message:l().createElement(l().Fragment,null,p().text("There are no")," ",l().createElement(za.Z,{href:"https://docs.reltio.com/dvf/overview.html",target:"_blank"},p().text("Data Validation Functions"))," ",p().text("for this attribute type")),title:p().text("No data"),icon:l().createElement(Ua,null)})):l().createElement(ka,{config:t,title:"",headers:w,data:f,onItemClick:v,titleChildren:O,state:E,onRefresh:x})},Ha=(0,v.Z)((()=>({monoFontCell:{fontFamily:'"Roboto Mono", monospace'}}))),Ya=e=>{let{config:t}=e;const a=Ha(),{data:n,state:i,reload:o}=Re(ia),s=(0,r.useContext)(Ae).type,u=(0,c.Lt4)(s)?((e,t)=>{const a=t===c.oS0.TYPE_TIMESTAMP?"L LTS":"L";return e.map((e=>M({},e,{label:p().date(Number(e.label),a)})))})(n,s):n,d=Me(da),f=[p().text("Value"),p().text("Count")],m=l().createElement(X,{title:p().text("Frequency analysis"),data:[{value:p().text("Shows the number of times each value occurs")}],DataRenderer:ye});return l().createElement(ka,{config:t,data:u,headers:f,title:t.title,infoTooltipTitle:m,onItemClick:d,state:i,onRefresh:o,labelCellClassName:B()({[a.monoFontCell]:(0,c.m6e)(s)})})};function Za(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){Wa(e,t,a[t])}))}return e}function Wa(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var Ga,qa;!function(e){e[e.sun=0]="sun",e[e.mon=1]="mon",e[e.tue=2]="tue",e[e.wed=3]="wed",e[e.thu=4]="thu",e[e.fri=5]="fri",e[e.sat=6]="sat"}(Ga||(Ga={})),function(e){e[e.jan=0]="jan",e[e.feb=1]="feb",e[e.mar=2]="mar",e[e.apr=3]="apr",e[e.may=4]="may",e[e.jun=5]="jun",e[e.jul=6]="jul",e[e.aug=7]="aug",e[e.sep=8]="sep",e[e.oct=9]="oct",e[e.nov=10]="nov",e[e.dec=11]="dec"}(qa||(qa={}));const Qa=e=>(0,s.pipe)((0,s.pathOr)({},[e,"data"]),Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:t,group:t,value:a}})),P);var $a;!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"}($a||($a={}));const Ka=(e,t)=>{const a={lengthStatistics:{[$a.MEDIAN]:p().text("Median"),[$a.AVERAGE]:p().text("Average"),[$a.MININMUN]:p().text("Minimum"),[$a.MAXIMUM]:p().text("Maximum")},valueDistribution:{[$a.MEDIAN]:p().text("Median"),[$a.AVERAGE]:p().text("Average"),[$a.MININMUN]:p().text("Minimum"),[$a.MAXIMUM]:p().text("Maximum")},crosswalkAnalysis:{[$a.NUMBER_OF_SOURCES]:p().text("No. of source systems"),[$a.AVG_NUMBER_OF_PROFILES]:p().text("Avg no. of profiles"),[$a.MIN_NUMBER_OF_PROFILES]:p().text("Min no. of profiles"),[$a.MAX_NUMBER_OF_PROFILES]:p().text("Max no. of profiles")}};return(0,s.pathOr)(null,[t,e],a)},Xa=e=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((t=>{let[a,r]=t;return{label:Ka(a,e),value:r}})),(0,s.filter)((e=>{let{label:t}=e;return t})),P),Ja=e=>t=>({chartData:Qa(e)(t),infoPanelData:Xa(e)(t)}),er=(e,t)=>(0,c.Lt4)(t)?p().date(Number(e),"L"):String(e),tr=(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)=>Ze(t)?`[${e}${a?"]":")"}`:e)(`${er(l,e)} - ${er(n,e)}`,e,i):er(l,e);return Za({},a,{label:o,group:[l,n,i?"last":""].toString()})}));return{infoPanelData:t.infoPanelData.map((t=>Za({},t,{value:(0,c.Lt4)(e)?p().date(Number(t.value),"L"):(0,c.k7L)(t.value,999),localizedValue:(0,c.Lt4)(e)?p().date(Number(t.value),"L"):t.localizedValue}))),chartData:r}})),ar=(0,s.pipe)(Ja("lengthStatistics"),tr("")),rr=(0,s.pipe)(Ja("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))))})),lr=Ja("monthDistribution"),nr=Ja("dayOfWeekDistribution"),ir=Ja("dayOfMonthDistribution"),or=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return ta({fieldName:`${a.fieldName}.day_of_week`,value:Ga[t.toLowerCase()],entityTypeUri:r})})),cr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return ta({fieldName:`${a.fieldName}.month`,value:qa[t.toLowerCase()],entityTypeUri:r})})),sr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return ta({fieldName:`${a.fieldName}.day_of_month`,value:t,entityTypeUri:r})})),ur=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;const[l,n]=t.split(",");return l===n?ta({fieldName:`${a.fieldName}.length`,value:l,entityTypeUri:r}):(e=>{let{fieldName:t,startRange:a,endRange:r,entityTypeUri:l}=e;return ea({keyword:`${c.j5E.IN_RANGE}(${t}, ${a}, ${r})`,entityTypeUri:l})})({fieldName:`${a.fieldName}.length`,startRange:l,endRange:n,entityTypeUri:r})})),pr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:r}=e;return ta({fieldName:`${a.fieldName}.crosswalk_sources`,value:t,entityTypeUri:r})})),dr=(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}]})),fr=(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}]})),mr=(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})),hr=(0,s.cond)([[c.Lt4,(0,s.always)(z(dr))],[Ze,(0,s.always)(z(mr))],[s.identity,(0,s.always)(z(fr))]]);function yr(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){gr(e,t,a[t])}))}return e}function gr(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const vr=(0,v.Z)((e=>({tooltipWrapper:yr({},e.tooltip,{padding:"4px 8px"})}))),br=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=vr();return r&&l().createElement("div",{className:u.tooltipWrapper},l().createElement(X,{data:[{label:s,value:c},{label:p().text("No of profiles"),value:p().number(o)}]}))},Er=(0,v.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"}}))),xr=e=>{let{data:t}=e;const a=Er();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(Be.ZP,{title:n},l().createElement("span",{className:a.chartInfoValue},r)):l().createElement("span",{className:a.chartInfoValue},r))})))},Or=(0,v.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"}}}))),wr=e=>{let{width:t,height:a,label:r,x:n,y:i}=e;const o=Or({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(va.C,{value:r},l().createElement("div",{className:o.xAxisLabel},r))))},Nr=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(wr,{width:s,height:n,label:c,x:t,y:a})};function Tr(){return Tr=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},Tr.apply(this,arguments)}const Sr=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=Er(),n=t?r.clickable:void 0;return l().createElement(w.Ae,Tr({},a,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},Rr=e=>{const{value:t}=e;return t>0?l().createElement(w.Ae,e):null};function Ir(){return Ir=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},Ir.apply(this,arguments)}const Ar=e=>{let{data:t,config:a,xAxisLabel:r,yAxisLabel:n,barTooltipTitle:i,infoPanelData:o,infoTooltipTitle:s,onItemClick:u,options:p={},state:d,onRefresh:f}=e;const m=Er(),{title:h}=a,{cartesianGrid:g,bar:v,xAxis:b,yAxis:E,labelForX:x,labelForY:O,barChart:N}=(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&&Nr,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)"}}}})(p),T=u&&(e=>{let{activePayload:t}=e;return u(t[0].payload.group)}),S=T?m.clickable:void 0,R=d===y.o.LOADED&&o.length>0;return l().createElement(he,{config:a},l().createElement(ce,{title:h,infoTooltipTitle:s}),R&&l().createElement(xr,{data:o}),l().createElement(de,{data:t,loadingState:d,onRefresh:f},(e=>{let{data:t,width:a=0,height:o=0}=e;return l().createElement("div",null,l().createElement(w.vz,Ir({width:a,height:o,data:t,onClick:T},N),l().createElement(w.q3,g),l().createElement(w.u,{content:l().createElement(br,{name:i}),cursor:l().createElement(Sr,{isClickable:!!T})}),l().createElement(w.$Q,Ir({},v,{shape:l().createElement(Rr,{className:S})})),l().createElement(w.B2,E,l().createElement(w.__,Ir({},O,{value:n}))),l().createElement(w.Kc,b,l().createElement(w.__,Ir({},x,{value:r})))))})))},Cr=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Re(ar),{chartData:i,infoPanelData:o}=a,c=Me(ur),s=l().createElement(X,{title:p().text("Length statistics"),data:[{value:p().text("Measures the string length of values")}],DataRenderer:ye});return l().createElement(Ar,{config:t,data:i,xAxisLabel:p().text("Length of values"),yAxisLabel:p().text("No. of profiles"),infoPanelData:o,barTooltipTitle:p().text("Length"),infoTooltipTitle:s,onItemClick:c,state:r,onRefresh:n})};var Mr=a(21210);const Lr=(0,v.Z)({icon:{width:"20px",height:"20px",borderRadius:"4px",fontSize:"14px",marginRight:"8px"},text:e=>{let{color:t}=e;return{backgroundColor:t}}}),Pr=e=>{let{chartData:t}=e;const{group:a,label:r}=t,n=Lr({color:(0,c.uap)("random0",a)});return l().createElement(l().Fragment,null,l().createElement(Mr.Z,{sourceType:a,className:n.icon,classes:{textRoot:n.text}}),r)};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){jr(e,t,a[t])}))}return e}function jr(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}=Re(rr),{chartData:i}=a,o=Me(pr),c=[p().text("Source system"),p().text("Profiles")],s=l().createElement(X,{title:p().text("Source system analysis"),data:[{value:p().text("Distribution of source systems contributing to profiles")}],DataRenderer:ye});return l().createElement(ka,{config:Dr({},t),data:i,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:r,onRefresh:n,customComparator:la,LabelRenderer:Pr})},zr=e=>{let{config:t}=e;const a=(0,r.useContext)(Ae).type,{data:n,state:i,reload:o}=Re((e=>(0,s.pipe)(Ja("valueDistribution"),tr(e)))(a)),{chartData:c,infoPanelData:u}=n,d=Me(hr(a));return l().createElement(Ar,{config:t,data:c,xAxisLabel:p().text("Value"),yAxisLabel:p().text("No. of profiles"),infoPanelData:u,barTooltipTitle:p().text("Value"),onItemClick:d,state:i,onRefresh:o})},Fr=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Re(lr),{chartData:i,infoPanelData:o}=a,c=Me(cr);return l().createElement(Ar,{config:t,data:i,xAxisLabel:p().text("Months of the year"),yAxisLabel:p().text("No. of profiles"),infoPanelData:o,barTooltipTitle:p().text("Months of the year"),options:{showCategories:!0,barCategoryGap:"20%",interval:"preserveStartEnd"},onItemClick:c,state:r,onRefresh:n})},Ur=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Re(nr),{chartData:i,infoPanelData:o}=a,c=Me(or);return l().createElement(Ar,{config:t,data:i,xAxisLabel:p().text("Days of the week"),yAxisLabel:p().text("No. of profiles"),infoPanelData:o,barTooltipTitle:p().text("Days of the week"),options:{showCategories:!0,barCategoryGap:"25%",interval:"preserveStartEnd"},onItemClick:c,state:r,onRefresh:n})},_r=e=>{let{config:t}=e;const{data:a,state:r,reload:n}=Re(ir),{chartData:i,infoPanelData:o}=a,c=Me(sr);return l().createElement(Ar,{config:t,data:i,xAxisLabel:p().text("Days of the month"),yAxisLabel:p().text("No. of profiles"),infoPanelData:o,barTooltipTitle:p().text("Days of the month"),options:{showCategories:!0,interval:1},onItemClick:c,state:r,onRefresh:n})},Vr=e=>{let{config:t}=e;const a=Ha(),{data:r,state:n,reload:i}=Re(oa),o=Me(ma),c=[p().text("Value"),p().text("Count")],s=l().createElement(X,{title:p().text("Pattern analysis"),data:[]});return l().createElement(ka,{config:t,data:r,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:n,onRefresh:i,labelCellClassName:a.monoFontCell})};function Br(){return Br=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Br.apply(this,arguments)}class Hr{}Hr.getComponent=e=>{let{type:t,config:a,isFullscreen:r,onToggleFullscreen:n}=e;const i={config:a,isFullscreen:r,onToggleFullscreen:n};switch(t){case O.FILL_RATE_CHART:return l().createElement(Le,i);case O.UNIQUENESS_CHART:return l().createElement(Ue,i);case O.SUMMARY:return l().createElement(qt,i);case O.VALIDATION:return l().createElement(Ba,i);case O.FREQUENCY:return l().createElement(Ya,i);case O.LENGTH:return l().createElement(Cr,i);case O.CROSSWALK:return l().createElement(kr,i);case O.VALUE_DISTRIBUTION:return l().createElement(zr,i);case O.MONTH_DISTRIBUTION:return l().createElement(Fr,i);case O.DAY_OF_WEEK_DISTRIBUTION:return l().createElement(Ur,i);case O.DAY_OF_MONTH_DISTRIBUTION:return l().createElement(_r,i);case O.PATTERN:return l().createElement(Vr,i);default:return l().createElement(Jt,Br({},i,{message:p().text("Chart isn't supported for this data type")}))}};const Yr=Hr,Zr=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},Yr.getComponent({type:u,config:s,onToggleFullscreen:r,isFullscreen:n}),o)},Wr=(0,v.Z)({root:{overflow:"auto",backgroundColor:"#F9F9F9",height:"100%",flexGrow:1,padding:"4px"}}),Gr=(0,s.map)((0,s.assoc)("isStatic",!0)),qr={cols:4,rowHeight:10,margin:[12,12]},Qr=(0,r.memo)((e=>{let{views:t,layout:a,layoutOptions:n=qr}=e;const i=Wr(),o=(()=>{const[e,t]=(0,r.useState)(y.o.INIT),[a,l]=(0,r.useState)({}),n=(0,r.useContext)(Ce),i=(0,r.useContext)(Ae),o=(0,r.useContext)(Wt),s=null==i?void 0:i.fieldName,u=n.uri,p=e=>{console.error(e),t(y.o.ERROR),l({})},d=(0,r.useCallback)((async()=>{if(t(y.o.LOADING),o===I.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(p)}),[t,l,s,u]),f=(0,r.useCallback)((()=>{try{d()}catch(e){p(e)}}),[d]);return(0,r.useEffect)((()=>{f()}),[f]),{data:a,state:e,reload:f}})(),s=(0,r.useMemo)((()=>Gr(a)),[a]);return l().createElement("div",{className:i.root},l().createElement(Se.Provider,{value:o},l().createElement(x.Z,{LayoutItem:Zr,views:t,layout:s,layoutOptions:n})))}));var $r=a(50166),Kr=a(44443),Xr=a(43129),Jr=a(5336),el=a(83543),tl=a(98989),al=a(38402),rl=a(33286),ll=a(40435);const nl=(0,v.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"}}),il=e=>{let{details:t,classes:a,fillRateData:r,fillRateState:n}=e;const i=nl(),o=(0,s.prop)("iconRoot",a);return l().createElement("div",{className:i.root},Object.entries(t||{}).reverse().map((e=>{let[t,a]=e,u=vt.NORMAL;if(t===We.REQUIRED){const e=n===y.o.LOADING,t=0===(null==(p=r)||null===(d=p.find((0,s.propEq)("group",c.s9T.MISSING)))||void 0===d?void 0:d.value);e&&(u=vt.LOADING),e||t||(u=vt.BAD_QUALITY)}var p,d;return l().createElement("div",{key:t,className:B()(a&&(o||i.activeIcon),i.detailIcon)},a&&l().createElement(Be.ZP,{title:lt(t)},l().createElement("span",null,l().createElement(bt,{detailType:t,variant:u,size:gt.SMALL}))))})))},ol="rgba(0, 114, 206, 0.12)",cl=(0,v.Z)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:ol,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:ol}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"}}),sl=e=>{let{level:t,margin:a,hasChildren:r,isLastLevelItem:n,isCollapsed:i}=e;const o=cl(),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(rl.Z,{key:e,margin:a,level:e,className:o.line}))),c&&l().createElement(rl.Z,{margin:a,level:t,className:B()(o.line,!r&&t>0&&o.horizontalLine,r&&o.parentLine,n&&o.lastLevel)}))},ul=(0,v.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 pl(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){dl(e,t,a[t])}))}return e}function dl(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const fl=(0,T.Z)((e=>{let{data:t}=e;const a=ul(),r=ve(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:`${p().number(o)} ${D(i)}`}}));return j(t)?l().createElement("div",{className:a.bar},l().createElement("div",{className:B()(a.barPart,a.inactiveBarPart)})):l().createElement(Be.ZP,{title:l().createElement(X,{title:p().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:pl({},U(e),{background:r[t]})})))))})),ml=(0,v.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"}}),hl=e=>{let{detailedAttributeType:t,fillRateData:a,fillRateState:r,style:n,level:i,selected:o=!1,onClick:s,onCollapse:u=ha.ZT,isCollapsed:p=!1,isLastLevelItem:d=!1}=e;const f=ml(),m=!!t.children,h=!!a,y=(e=>(0,c.idV)(e.label||e.name))(t),g=p?tl.Z:el.Z,v=o?f.detailsIconSelected:f.detailsIcon;return l().createElement(al.Z,{style:n,selected:o,classes:{selected:f.selectedItem},onClick:m?void 0:()=>{s(t)},component:"div",className:B()(f.listItem,!m&&f.pointerCursor)},l().createElement("div",{className:f.content},!m&&l().createElement("div",{className:f.attributeType},l().createElement(Ht,{type:t.type})),l().createElement("div",{className:f.attribute},l().createElement(sl,{level:i,margin:20,hasChildren:m,isLastLevelItem:d,isCollapsed:p}),l().createElement(rl.Z,{margin:20,level:i,className:f.marginWrapper},l().createElement(va.C,{value:y},l().createElement("div",{className:B()(f.attributeLabel,o&&f.selectedAttributeLabel,m&&f.parentAttributeLabel)},m&&l().createElement(ll.Z,{size:"XXS",icon:g,onClick:u,className:f.collapseIcon}),y))),h&&!m&&l().createElement("div",{className:f.fillRate},l().createElement(fl,{data:a}))),l().createElement(il,{details:t.details,classes:{iconRoot:v},fillRateData:a,fillRateState:r})))},yl=(0,s.propOr)({},"attributeItem"),gl=(0,s.pipe)((0,s.find)((0,s.pipe)(yl,(0,s.either)(c.YkM,c.Or$),s.not)),yl),vl=e=>(0,s.pipe)(yl,(0,s.propEq)("fieldName",e)),bl=e=>(0,s.filter)((0,s.propEq)("group",e)),El=(0,s.reject)((0,s.path)(["attributeItem","children"])),xl=(0,s.pipe)(El,(0,s.prop)("length")),Ol=(e,t)=>(0,s.pipe)(El,(0,s.filter)((0,s.pipe)(yl,Ke(t))),(0,s.prop)("length"))(e),wl=(e,t)=>(0,s.pipe)(El,(0,s.filter)((0,s.pipe)(yl,Xe(t))),(0,s.prop)("length"))(e),Nl=(e,t)=>e.filter((e=>Qe(t,e.attributeItem))).length;let Tl;!function(e){e.NOT_EMPTY="notEmpty",e.EMPTY="empty"}(Tl||(Tl={}));const Sl=(e,t)=>{const a=Object.values(We).map((e=>({value:e,label:lt(e),group:"details"}))).map((a=>(0,s.assoc)("count",((e,t,a)=>e.filter((e=>Qe([...(0,s.filter)((0,s.propEq)("group","details"),a||[]),t],e.attributeItem))).length)(e,a,t),a))),r={label:p().text("All attribute properties"),value:"all",count:Nl(e,a),group:"details"};return{label:p().text("Attribute properties"),options:[r,...a]}},Rl=(0,s.pipe)(yl,(0,s.prop)("fieldName"));function Il(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var Al=a(92391),Cl=a(36444),Ml=a(33662),Ll=a(15793),Pl=a(21324),Dl=a(12231),jl=a(44962);function kl(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){zl(e,t,a[t])}))}return e}function zl(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Fl=(0,v.Z)((e=>({serachWrapper:{padding:"8px 10px 8px 16px",alignItems:"center",display:"flex"},filterByDetails:{width:"32px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"9px"},searchInput:{borderRadius:"2px",flexGrow:1},menu:{width:"256px!important",right:"0",paddingTop:"8px",top:"24px!important",margin:0},dropdownIndicator:{color:e.palette.text.secondary,cursor:"pointer"},dropDownIndicatorFilterApplied:{color:"#0072CE",cursor:"pointer"},dropDownIndicatorActive:{width:"32px",height:"32px",background:"rgba(0, 0, 0, 0.1)",borderRadius:"4px",display:"flex",justifyContent:"center",alignItems:"center"},dropdownMenuTitle:{fontWeight:500,fontSize:"20px",lineHeight:"55px",height:"55px",paddingLeft:"16px"},option:{paddingLeft:"4px",fontSize:"13px",height:"28px",filter:e=>e?"grayscale(0)":"grayscale(1)",opacity:e=>e?1:.5},typeIconWrapper:{width:"41px","& svg":{width:"20px",height:"20px"}},valueContainer:{marginLeft:0},counter:{marginLeft:"5px"}}))),Ul=e=>kl({},e,{borderBottom:"1px solid rgba(0, 0, 0, 0.08)",marginBottom:"5px",paddingTop:0,paddingBottom:"5px","&:last-child":{borderBottom:"none"}}),_l=e=>kl({},e,{zIndex:2}),Vl=e=>kl({},e,{maxHeight:"400px"}),Bl=e=>kl({},e,{padding:"6px 0 2px 18px",fontSize:"11px"});function Hl(){return Hl=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},Hl.apply(this,arguments)}const Yl=e=>{let{innerProps:t,innerRef:a,children:r,isFocused:n,isSelected:i,selectProps:{classes:o},label:s,data:u}=e;const p=!!u.count,d=Fl(p);return l().createElement(Dl.Z,Hl({className:d.option,ref:a,selected:n,component:"div"},t),"radio"===u.inputType?l().createElement(jl.Z,{checked:i}):l().createElement(l().Fragment,null,l().createElement(Pl.Z,{color:"primary",checked:i}),l().createElement("span",{className:d.typeIconWrapper},l().createElement(bt,{detailType:u.value}))),l().createElement(va.C,{value:s},l().createElement("div",{className:o["option--item"]},r)),l().createElement("span",{className:d.counter},(0,c.k7L)(u.count,999)))},Zl=(0,s.reject)((0,s.propEq)("value","all")),Wl=(e,t)=>(0,s.reject)((0,s.propEq)("group",e.group))(t),Gl=e=>(0,s.pipe)((0,s.filter)((0,s.propEq)("group",e)),Zl),ql=e=>(0,s.pipe)((0,s.reduce)(((t,a)=>t.concat(Gl(e)(a.options))),[]),Zl),Ql=(0,s.find)((0,s.propEq)("value","all")),$l=e=>{let{selectedFilterOptions:t=[],filterOptions:a,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=Fl(),u=(0,s.reduce)(((e,t)=>{if(t.options.length){const a=(0,s.head)(t.options)||{},{group:r,inputType:l}=a,n=(e||[]).filter((0,s.propEq)("group",r));if("radio"===l){if(!n.length)return e.concat(a)}else{const a=Ql(t.options);if(a&&Zl(n).length===Zl(t.options).length)return e.concat(a)}}return e}),t)(a),d=e=>e.selectProps.menuIsOpen?c.dropDownIndicatorActive:"",f=(0,r.useCallback)((()=>t.length?c.dropDownIndicatorFilterApplied:c.dropdownIndicator),[t]),[m,h]=(0,r.useState)(n||null);return l().createElement("div",{className:c.serachWrapper},l().createElement(Ml.Z,{className:c.searchInput,autofocus:!0,onSearch:e=>{h(e),i(e)},value:m,height:40,placeholder:p().text("Search attribute name"),"data-reltio-id":"reltio-dq-dashboard-attributes-search-input"}),l().createElement("div",{className:c.filterByDetails,"data-reltio-id":"reltio-dq-dashboard-attributes-filter"},l().createElement(Ll.Z,{value:u,options:a,onChange:(e,r)=>{const{action:l,option:n}=r;o(((e,r,l)=>{if("radio"===r.inputType)return[...Wl(r,l),r];{const i=(n=r.group,ql(n)(a).length===Gl(n)(t).length),o=Wl(r,l),c=ql(r.group)(a);return"all"===r.value?"select-option"===e?[...o,...c]:o:i?(0,s.without)([r],[...o,...c]):l}var n})(l,n,e))},TextFieldProps:{InputProps:{disableUnderline:!0}},isSearchable:!1,classes:{menu:c.menu,option:c.option,valueContainer:c.valueContainer},styles:{groupHeading:Bl,group:Ul,menu:_l,menuList:Vl},components:{DropdownIndicator:e=>l().createElement("div",{className:d(e)},l().createElement(Cl.Z,{className:f()})),IndicatorSeparator:ha.Vd,ClearIndicator:ha.Vd,MultiValue:ha.Vd,MenuList:e=>l().createElement(Al.F.MenuList,e,l().createElement("div",{className:c.dropdownMenuTitle},p().text("Filter")),e.children),Option:Yl,GroupHeading:e=>l().createElement(Al.F.GroupHeading,e,e.children)}})))},Kl=(0,v.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"},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}}))),Xl=e=>{var t;let{entityType:a,onAttributesListChange:i,defaultFieldName:o,defaultFilterOptions:u,defaultFilterText:d,disableAttributeSelection:f}=e;const m=Kl(),v=(0,r.useRef)(),[b,E]=(0,r.useState)(d||""),[x,O]=(0,r.useState)([]),[w,N]=(0,r.useState)(u||[]),[T,S]=(0,r.useState)({fieldName:o}),{data:R,state:I}=(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(xe).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}})(a.uri),A=null===(t=(0,r.useContext)(Ie))||void 0===t?void 0:t.state,C=((e,t)=>{var a;const l=(0,n.useSelector)(h.ZP.selectors.getMetadata),i=(0,r.useMemo)((()=>(e=>(0,s.pipe)(c.WN0,et(e),nt))(t)(l,e)),[l,e,t]),[o,u]=(0,r.useState)([]),p=e.uri,d=(0,r.useMemo)((()=>(0,c.qhs)(l,p)),[l,p]),f=null===(a=(0,r.useContext)(Ie))||void 0===a?void 0:a.data;return(0,r.useEffect)((()=>{f&&u(i.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){Il(e,t,a[t])}))}return e}({},e,{details:rt({attrTypeItem:e,dvf:f,matchAttributes:d})},e.children&&{children:e.children.map((t=>(t.details=rt({attrTypeItem:t,dvf:f,matchAttributes:d}),t.details.reference=e.isAttributeReference,t)))})})))}),[i,d,f]),o})(a,b),{filteredItems:M,filterOptions:L}=(0,r.useMemo)((()=>{const e=((e,t)=>{const a=bl("details")(e),r=(e=>(0,s.pipe)((0,s.filter)((0,s.pipe)(yl,(0,s.both)((0,s.prop)("children"),Qe(e)))),(0,s.map)(Rl)))(a)(t);return t.filter((e=>{let{attributeItem:t}=e;return r.some((e=>t.fieldName.startsWith(e)))||$e(a,t)}))})(w,C),t=((e,t)=>{const a=[{label:p().text("All"),value:"All",group:"emptiness",count:xl(e),inputType:"radio"},{label:p().text("With data"),value:Tl.NOT_EMPTY,group:"emptiness",count:Ol(e,t),inputType:"radio"},{label:p().text("W/o data"),value:Tl.EMPTY,group:"emptiness",count:wl(e,t),inputType:"radio"}];return{label:p().text("Attributes"),options:a}})(e,R),a=((e,t,a)=>{const r=(0,s.head)(bl("emptiness")(e));switch(null==r?void 0:r.value){case Tl.EMPTY:return a.filter((0,s.pipe)(yl,Je(t)));case Tl.NOT_EMPTY:return a.filter((0,s.pipe)(yl,Ke(t)));default:return a}})(w,R,e);return{filteredItems:a,filterOptions:[t,Sl(a,w)]}}),[C,w,R]),P=(0,r.useMemo)((()=>((e,t)=>e.filter((e=>{let{attributeItem:a}=e;return!t.some((e=>a.fieldName.startsWith(e)&&a.fieldName!==e))})))(M,x)),[M,x]),D=M.length,j=(0,r.useCallback)((0,c.DsO)(E,300),[]),k=e=>{i({selectedDetailedAttributeType:e,filterText:b,filterOptions:w}),S({fieldName:e.fieldName})},z=()=>{const e=((e,t)=>(0,s.pipe)((0,s.find)(vl(t)),(0,s.propOr)(null,"attributeItem"))(e))(M,T.fieldName)||gl(M);return(0,s.isEmpty)(e)||f?null:e};(0,r.useEffect)((()=>{var e,t,a;if(f)return void(null===(a=v.current)||void 0===a||a.scrollTo(0));if(M.length){const e=z();S({fieldName:(null==e?void 0:e.fieldName)||T.fieldName})}const r=((e,t)=>(0,s.findIndex)(vl(t))(e))(M,T.fieldName);r>-1?null===(e=v.current)||void 0===e||e.scrollToItem(r,"center"):null===(t=v.current)||void 0===t||t.scrollTo(0)}),[M]),(0,r.useEffect)((()=>{const e=z();i({selectedDetailedAttributeType:e,filterText:b,filterOptions:w})}),[b,w,T]),(0,r.useEffect)((()=>{S((e=>{let{fieldName:t}=e;return f?{fieldName:null}:{fieldName:t}}))}),[f]);const F=e=>{let{data:t,index:a,style:r}=e;const{attributeItem:n,level:i=0}=t[a],o=T.fieldName===n.fieldName,c=((e,t)=>e[t.fieldName])(R,n),u=a>0&&i>(0,s.pathOr)(-1,[a+1,"level"],P);return l().createElement(hl,{fillRateData:c,fillRateState:I,style:r,detailedAttributeType:n,level:i,onClick:k,selected:o,onCollapse:(p=n.fieldName,()=>{O((e=>e.includes(p)?e.filter((e=>e!==p)):e.concat(p)))}),isCollapsed:x.includes(n.fieldName),isLastLevelItem:u});var p},U=P.length,_=!!U,V=I===y.o.LOADING||A===y.o.LOADING;return l().createElement("div",{className:m.root},l().createElement(g.Z,{className:m.title},(0,c.idV)(a.label)," ",p().text("attributes"),l().createElement("span",{className:m.itemCount},`${D} ${B=D,1===B?p().text("item"):p().text("items")}`)),l().createElement($l,{selectedFilterOptions:w,onChangeFilterOptions:N,defaultFilterText:d,onChangeFilterText:j,filterOptions:L}),_&&l().createElement("div",{className:m.columnsTitle},l().createElement("div",null,p().text("Name")),l().createElement("div",null,p().text("Attribute details"))),l().createElement("div",{className:m.listWrapper,"data-reltio-id":"reltio-dq-dashboard-attributes-list"},l().createElement("div",{className:m.loaderWrapper},V&&l().createElement(Xr.Z,null)),_?l().createElement(Kr.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return l().createElement($r.FixedSizeList,{ref:v,itemCount:U,width:"100%",height:t,itemData:P,itemSize:48},F)})):!V&&l().createElement(Jr.Z,{height:250})));var B},Jl=(0,v.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 en(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){tn(e,t,a[t])}))}return e}function tn(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const an=(0,s.path)([0,"value"]),rn=e=>{var t,a;let{config:i,saveState:o,getSavedState:u}=e;const g=Jl(),{entityType:v,tabs:b,setEntityTypeByUri:x}=(()=>{const e=(0,n.useSelector)(h.ZP.selectors.getMetadata),t=(0,r.useMemo)((()=>e.entityTypes.filter(c.oDv)),[e.entityTypes]),a=(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})(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:(0,c.k7L)(Number((null==a?void 0:a[(0,c.nIW)(l)])||0),999),dataReltioId:`reltio-dq-dashboard-entity-tab-${t}`}}))),[t,a]),setEntityTypeByUri:(0,s.pipe)((0,c.nt9)(e),i)}})(),[w,N]=(0,r.useState)(null),{isLoaded:T,savedState:S}=(0,d.a)(u),M=(0,n.useSelector)(h.ZP.selectors.getCanUserGetDQStatistic),[L,P]=(0,r.useState)(),D=(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),p=(0,n.useSelector)(h.ZP.selectors.getDVFPath),d=e=>{console.error(e),i(y.o.ERROR),a([]),s(null==e?void 0:e.errorCode)},f=e=>{a(e.functions),i(y.o.LOADED)},m=(0,r.useCallback)((()=>{if(e)return i(y.o.LOADING),(0,c.HaQ)({dvfPath:p,tenant:u,entityTypeUri:e}).then(f).catch(d)}),[p,u,e]);return(0,r.useEffect)((()=>{m()}),[m]),{data:t,state:l,reload:m,errorCode:o}})(null==v?void 0:v.uri),j=null==b?void 0:b.map((e=>en({},e,{additionalLabel:l().createElement("span",{className:g.additionalLabel},"(",e.additionalLabel,")")}))),k=(0,r.useCallback)((e=>{(null==v?void 0:v.uri)!==e&&(N(null),x(e),L===I.ENTITY_TYPE&&o(en({dataLevel:L,entityTypeUri:e},H.current&&{filterOptions:H.current.filterOptions,filterText:H.current.filterText})))}),[null==v?void 0:v.uri]),z=(null===(t=i.layoutsByDataLevel)||void 0===t?void 0:t[I.ENTITY_TYPE])||C[I.ENTITY_TYPE],U=null===(a=i.layoutsByDataLevel)||void 0===a?void 0:a[I.ATTRIBUTE_TYPE],_=(0,r.useMemo)((()=>L===I.ENTITY_TYPE&&z?z:((e,t)=>{const a=F(t),r=(0,s.mergeLeft)(e,C[I.ATTRIBUTE_TYPE]);return r[a]||r.default||[]})(U,null==w?void 0:w.type)),[z,null==w?void 0:w.type,U,L]),V=(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 I.ATTRIBUTE_TYPE:return(e=>{switch(e){case R.INTEGER:case R.FLOAT:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART,O.VALUE_DISTRIBUTION];case R.BOOLEAN:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY];case R.STRING:return[O.LENGTH,O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART];case R.DATE:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART,O.VALUE_DISTRIBUTION,O.MONTH_DISTRIBUTION,O.DAY_OF_MONTH_DISTRIBUTION,O.DAY_OF_WEEK_DISTRIBUTION];case R.SSN:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART,O.PATTERN];case R.UNKNOWN:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART,O.LENGTH];default:return[]}})(F(t));case I.ENTITY_TYPE:return[O.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",O.UNSUPPORTED),e)}return e}),l)})(i.viewsByDataLevel,null==w?void 0:w.type,_,L)),[null==w?void 0:w.type,_,L]);(0,r.useEffect)((()=>{T&&(x(S.entityTypeUri||an(b)),P(z?S.dataLevel||I.ENTITY_TYPE:I.ATTRIBUTE_TYPE))}),[T]);const H=(0,r.useRef)(),Y=v&&M&&T;return l().createElement("div",{className:g.perspectiveView},l().createElement(E,{title:p().text("Data Quality")},v&&l().createElement(f.Z,{value:v.uri,tabs:j,onChange:k,scrollButtons:"auto"})),l().createElement("div",{className:g.content},Y&&l().createElement(l().Fragment,null,l().createElement(Ie.Provider,{value:D},l().createElement("div",{className:g.wrapper},z&&l().createElement("div",{className:B()(g.entityLevelButton,{[g.selectedButton]:L===I.ENTITY_TYPE}),onClick:()=>{N(null),P(I.ENTITY_TYPE)}},`${v.label} ${p().text("summary")}`),l().createElement(Xl,{entityType:v,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:a,filterOptions:r}=e;const l=null==t?void 0:t.fieldName,n={entityTypeUri:v.uri,fieldName:l,filterOptions:r,filterText:a,dataLevel:L};!l&&L!==I.ENTITY_TYPE||(0,s.equals)(H.current,n)||(o(n),H.current=n),l&&P(I.ATTRIBUTE_TYPE),N(t)},defaultFieldName:null==S?void 0:S.fieldName,defaultFilterText:null==S?void 0:S.filterText,defaultFilterOptions:null==S?void 0:S.filterOptions,disableAttributeSelection:L===I.ENTITY_TYPE})),(w||L===I.ENTITY_TYPE)&&l().createElement(Wt.Provider,{value:L},l().createElement(Ce.Provider,{value:v},l().createElement(Ae.Provider,{value:w},l().createElement(Qr,{views:V,layout:_})))))),!M&&l().createElement(m.ZP,{text:p().text("403: Permission denied"),secondaryText:p().text("Permission denied")})))};function ln(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const nn=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){ln(e,t,a[t])}))}return e}({},c.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}}),on=(0,i.Z)(nn),cn=(0,o.createGenerateClassName)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0}),sn=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:on},l().createElement(o.StylesProvider,{generateClassName:cn},l().createElement(rn,{config:a,saveState:i,getSavedState:u}))))}}}]);