@reltio/remotes 1.4.1015 → 1.4.1016

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/6563.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[6563],{81819:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a.Z});var a=r(29611)},69112:(e,t,r)=>{r.d(t,{Z:()=>p});var a=r(7560),l=r(54530),n=r(24328),i=(r(13980),r(6277));const o=(0,r(3752).Z)(n.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");var c=r(15459),s=r(57074),u=r(97580),d=n.forwardRef((function(e,t){var r=e.active,c=void 0!==r&&r,d=e.children,p=e.classes,f=e.className,m=e.direction,h=void 0===m?"asc":m,y=e.hideSortIcon,g=void 0!==y&&y,v=e.IconComponent,b=void 0===v?o:v,E=(0,l.Z)(e,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return n.createElement(s.Z,(0,a.Z)({className:(0,i.Z)(p.root,f,c&&p.active),component:"span",disableRipple:!0,ref:t},E),d,g&&!c?null:n.createElement(b,{className:(0,i.Z)(p.icon,p["iconDirection".concat((0,u.Z)(h))])}))}));const p=(0,c.Z)((function(e){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:e.palette.text.secondary},"&:hover":{color:e.palette.text.secondary,"& $icon":{opacity:.5}},"&$active":{color:e.palette.text.primary,"&& $icon":{opacity:1,color:e.palette.text.secondary}}},active:{},icon:{fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}}),{name:"MuiTableSortLabel"})(d)},98989:(e,t,r)=>{var a=r(14859);t.Z=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M10 17l5-5-5-5v10z"}),l.default.createElement("path",{fill:"none",d:"M0 24V0h24v24H0z"})),"ArrowRight");t.Z=n},82726:(e,t,r)=>{var a=r(14859);t.Z=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.Z=n},43266:(e,t,r)=>{var a=r(14859);t.Z=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");t.Z=n},21853:(e,t,r)=>{var a=r(14859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.default=n},82068:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(24328),l=r.n(a),n=r(71153),i=r.n(n);const o=(0,r(79692).Z)({"basic-view-content":{flex:"1 1 auto",padding:"0 24px 24px","&:first-child":{paddingTop:"24px"}}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},c.apply(this,arguments)}const s=e=>{let{children:t,className:r}=e,a=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["children","className"]);const n=o();return l().createElement("div",c({className:i()(n["basic-view-content"],r)},a),t)}},17822:(e,t,r)=>{r.d(t,{Z:()=>S});var a=r(13980),l=r.n(a),n=r(24328),i=r.n(n),o=r(66244),c=r.n(o),s=r(44443),u=r(17440),d=r(71153),p=r.n(d);function f(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}const m=e=>{let{x:t,y:r,width:a,height:l,id:n,minWidth:i,minHeight:o,maxWidth:c,maxHeight:s,isStatic:u}=e;return{x:t,y:r,w:a,h:l,minW:i,minH:o,maxW:c,maxH:s,i:n,static:u}},h=e=>{let{x:t,y:r,w:a,h:l,maxW:n,minW:i,minH:o,maxH:c,i:s}=e;return{x:t,y:r,width:a,height:l,minWidth:i,minHeight:o,maxWidth:n,maxHeight:c,id:s,isStatic:f(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},y=e=>(e||[]).map(h),g=(0,u.curry)(((e,t)=>(e||[]).find((0,u.propEq)("id",t)))),v=(0,u.curry)(((e,t,r)=>(0,u.mergeAll)([r,(0,u.pick)(e,t)]))),b=(0,u.curry)(((e,t,r)=>(r||[]).map((r=>(0,u.pipe)((0,u.prop)("id"),g(t),(0,u.defaultTo)({}),v(e,u.__,r))(r)))));var E=r(79692),x=r(4171);const O=(0,E.Z)((e=>({gridLayout:{position:"relative",width:"100%","& .react-grid-item":{"&.react-grid-placeholder":{background:"rgba(0, 0, 0, 0.03)",border:"2px dashed rgba(0, 0, 0, 0.3)",borderRadius:"3px",transitionDuration:"100ms",zIndex:7,userSelect:"none","& .react-resizable-handle":{display:"none"}},"&.static .react-resizable-handle":{display:"none"},"&.cssTransforms":{transitionProperty:"transform"},"&.resizing":{zIndex:9,willChange:"width, height",pointerEvents:"none"},"&.react-draggable-dragging":{transition:"none",zIndex:8,willChange:"transform","& .react-resizable-handle":{backgroundImage:"none"}},"& .react-resizable-handle":{position:"absolute",width:"17px",height:"17px",bottom:0,right:0,zIndex:20,backgroundImage:`url('${(0,x.m5F)('<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path stroke="#505050" stroke-opacity=".54" d="M9.5 0v10M0 9.5h9M7.5 4v4M4 7.5h3"/>\n</svg>')}')`,backgroundRepeat:"no-repeat",backgroundOrigin:"content-box",boxSizing:"border-box",cursor:"se-resize"},"&.fullscreen":{visibility:"visible",position:"unset",width:"100% !important",height:"100% !important",transform:"translate(0) !important"}}},gridFullscreen:{height:"100% !important",overflowY:"hidden","& .react-resizable-handle, & .react-grid-item":{visibility:"hidden"}}})));function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},w.apply(this,arguments)}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const T=e=>{let{views:t,layout:r,layoutOptions:a,onLayoutChanged:l,draggableHandle:o,LayoutItem:d,onRemove:f,onDrop:v,droppingItem:E,isDroppable:x,classes:T}=e;const S=(0,n.useRef)(),R=O(),[I,A]=(0,n.useState)(null),[C,D]=(0,n.useState)(0),{cols:L,rowHeight:P,margin:_}=a,j=(0,n.useMemo)((()=>(e=>(e||[]).map(m))(r)),[r]),M=(0,u.pipe)(y,b(["autosizing"],r),l),k=(0,n.useCallback)((e=>A((t=>t?null:e))),[]),F=null!==I,U=(0,n.useCallback)(((e,t)=>{let n=!1;const i=r.map((r=>{if(r.id===t&&e){const t=((e,t)=>{const{margin:r,rowHeight:a}=t;return Math.ceil((e+r[1])/(a+r[1]))})(e,a);if(r.height!==t)return n=!0,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){N(e,t,r[t])}))}return e}({},r,{minHeight:t,maxHeight:t,height:t})}return r}));n&&l(i)}),[r,a,l]);return i().createElement(i().Fragment,null,i().createElement(s.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>D(e)}),i().createElement(c(),{innerRef:S,layout:j,cols:L,draggableHandle:o,autoSize:!0,rowHeight:P,width:C,margin:_,onLayoutChange:M,isResizable:!F,isDraggable:!F,className:p()(R.gridLayout,{[R.gridFullscreen]:F}),onDrop:(e,t,r)=>{v&&v(y(e),h(t),r)},droppingItem:E,isDroppable:x},j.map((e=>{const a=I===e.i,l=(g(r,e.i)||{}).autosizing?{AutosizeComponent:(n=e.i,i().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>{U(t,n)}}))}:{};var n;return i().createElement(d,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:k,onRemove:f,className:p()({fullscreen:a},T.item),isFullscreen:a},l))}))))};T.defaultProps={layoutOptions:{cols:4,rowHeight:30,margin:[15,15]},onConfigChanged:u.identity,onLayoutChanged:u.identity,classes:{}},T.propTypes={views:l().array,layout:l().array,layoutOptions:l().object,onConfigChanged:l().func,onLayoutChanged:l().func,onDrop:l().func,onRemove:l().func,LayoutItem:l().elementType,draggableHandle:l().string,isDroppable:l().bool,droppingItem:l().object,classes:l().shape({item:l().string})};const S=(0,n.memo)(T)},21210:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(89810),l=r(4171),n=r(24328),i=r.n(n),o=r(52730),c=r(42639);const s=e=>{let{sourceType:t,className:r,classes:n}=e;const s=(0,o.useSelector)(a.ZP.selectors.getMetadata),{label:u,icon:d}=(0,l.PWK)(s,t);return i().createElement(c.Z,{className:r,avatarText:u[0],icon:d?(0,l.vPL)("https://s3.amazonaws.com/reltio.images/api",d):null,variant:"square",rootClasses:n})}},39878:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(24328),l=r.n(a),n=r(4171),i=r(17440);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},o.apply(this,arguments)}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=e=>{const t=t=>{let{data:r}=t,s=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(t,["data"]);const u=(0,a.useMemo)((()=>r&&(e=>{const t=(0,n.QK6)((0,i.pluck)("value",e),1);return e.map(((e,r)=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){c(e,t,r[t])}))}return e}({},e,{percent:t[r]})))})(r)),[r]);return l().createElement(e,o({data:u},s))};return t.displayName="WithPercents",t}},59383:(e,t,r)=>{r.d(t,{d:()=>l});const a=(0,r(79692).Z)({clickable:{cursor:"pointer"}}),l=e=>{const t=a();return e?t.clickable:void 0}},11326:(e,t,r)=>{r.d(t,{a:()=>l});var a=r(24328);const l=e=>{const[t,r]=(0,a.useState)(!1),[l,n]=(0,a.useState)({});return(0,a.useEffect)((()=>{e().then((e=>{n(e||{})})).then((e=>r(!0))).catch((e=>r(!0)))}),[]),{isLoaded:t,savedState:l}}},43129:(e,t,r)=>{r.d(t,{Z:()=>o});var a=r(24328),l=r.n(a),n=r(67358);const i=(0,r(79692).Z)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),o=()=>{const e=i();return l().createElement(n.Z,{color:"secondary",className:e.loader})}},65298:(e,t,r)=>{r.d(t,{Z:()=>c});var a=r(24328),l=r.n(a),n=r(1730),i=r(52388);const o=(0,r(79692).Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),c=e=>{let{id:t,children:r}=e;const a=o();return l().createElement(i.H.Provider,{value:t},l().createElement(n.Z,{className:a.view},r))}},52388:(e,t,r)=>{r.d(t,{H:()=>l});var a=r(24328);const l=r.n(a)().createContext(null);l.displayName="DashboardViewIdContext"},5260:(e,t,r)=>{let a;r.d(t,{o:()=>a}),function(e){e.INIT="init",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(a||(a={}))},94875:(e,t,r)=>{r.r(t),r.d(t,{default:()=>nn});var a=r(24328),l=r.n(a),n=r(52730),i=r(33016),o=r(36138),c=r(4171),s=r(17440),u=r(87918),d=r.n(u),p=r(11326),f=r(7907),m=r(79002),h=r(89810),y=r(5260),g=r(29627);const v=e=>{const[t,r]=(0,a.useState)(null),l=(0,g._)();return(0,a.useEffect)((()=>{const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:(0,s.pluck)("uri",e)}]);l((0,c.FK9)({query:(0,c.ECL)({activeness:"active",filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]})).then((e=>{let{type:t}=e;return r(t)})).catch((()=>r(null)))}),[e]),t};var b=r(90436),E=r(79692);const x=(0,E.Z)({root:{display:"flex",alignItems:"center",width:"100%",borderBottom:"solid 1px rgba(0, 0, 0, 0.12)"},title:{fontSize:"18px",flexShrink:0,padding:"0 20px"},content:{overflow:"hidden",flexGrow:1},updateButton:{height:36,width:36,padding:"0 20px"}}),O=e=>{let{title:t,children:r}=e;const a=x();return l().createElement("div",{className:a.root},l().createElement(b.Z,{variant:"body2",className:a.title},t),l().createElement("div",{className:a.content},r))};var w=r(17822);let N;!function(e){e.FILL_RATE_CHART="fillRate",e.UNIQUENESS_CHART="uniqueness",e.SUMMARY="summary",e.VALIDATION="validation",e.FREQUENCY="frequency",e.LENGTH="length",e.CROSSWALK="crosswalk",e.MONTH_DISTRIBUTION="monthDistribution",e.DAY_OF_WEEK_DISTRIBUTION="dayOfWeekDistribution",e.DAY_OF_MONTH_DISTRIBUTION="dayOfMonthDistribution",e.VALUE_DISTRIBUTION="valueDistribution",e.PATTERN="patternAnalysis",e.UNSUPPORTED="unsupported"}(N||(N={}));var T=r(73487),S=r(78223),R=r(39878);const I=(e,t,r)=>({attributes:(t||[]).map(((t,a)=>{let{filter:l,fieldName:n,values:i}=t;return{data:{uri:null==r?void 0:r.uri,entityTypeUri:e,fieldName:n},filter:l,id:`attribute_${a}`,operator:"and",values:i}})),entityTypes:[e],id:"group",operator:"or"});let A,C;!function(e){e.STRING="string",e.FLOAT="float",e.INTEGER="integer",e.BOOLEAN="boolean",e.DATE="date",e.SSN="SSN",e.UNKNOWN="unknown"}(A||(A={})),function(e){e.ENTITY_TYPE="entityType",e.ATTRIBUTE_TYPE="attributeType"}(C||(C={}));const D={[C.ATTRIBUTE_TYPE]:[{id:"FillRateView",type:N.FILL_RATE_CHART,title:"Fill rate"},{id:"UniquenessAnalysisView",type:N.UNIQUENESS_CHART,title:d().text("Uniqueness analysis")},{id:"SummaryView",type:N.SUMMARY,title:d().text("Summary")},{id:"ValidationView",type:N.VALIDATION,title:d().text("Profiles with invalid data")},{id:"FrequencyAnalysis",type:N.FREQUENCY,title:d().text("Frequency analysis")},{id:"LengthStatistics",type:N.LENGTH,title:d().text("Length statistics")},{id:"PatternAnalysis",type:N.PATTERN,title:d().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:N.CROSSWALK,title:d().text("Source system analysis")},{id:"MonthDistribution",type:N.MONTH_DISTRIBUTION,title:d().text("Month distribution")},{id:"DayOfWeekDistribution",type:N.DAY_OF_WEEK_DISTRIBUTION,title:d().text("Day of week distribution")},{id:"DayOfMonthDistribution",type:N.DAY_OF_MONTH_DISTRIBUTION,title:d().text("Day of month distribution")},{id:"ValueDistribution",type:N.VALUE_DISTRIBUTION,title:d().text("Value distribution")},{id:"UnsupportedDataType",type:N.UNSUPPORTED,title:d().text("Unsupported Data Type")}],[C.ENTITY_TYPE]:[{id:"SummaryView",type:N.SUMMARY,title:d().text("Summary")}]},L={[C.ATTRIBUTE_TYPE]:{default:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"LengthStatistics"}],[A.SSN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:2,height:19,id:"PatternAnalysis"}],[A.BOOLEAN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"FrequencyAnalysis"},{x:0,y:19,width:2,height:19,id:"CrosswalkAnalysis"}],[A.DATE]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"},{x:0,y:57,width:2,height:19,id:"MonthDistribution"},{x:2,y:57,width:2,height:19,id:"DayOfWeekDistribution"},{x:0,y:76,width:4,height:19,id:"DayOfMonthDistribution"}],[A.INTEGER]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}],[A.FLOAT]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}]}};function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){_(e,t,r[t])}))}return e}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const j=(0,s.map)((e=>P({},e,{localizedValue:d().number(e.value)}))),M=e=>(0,s.isNil)(e)?"":`(${e}%)`,k=e=>(0,s.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),F=(0,s.curry)(((e,t,r)=>({advanced:[I(t,r.map((0,s.when)((()=>(0,c.Lt4)(e.type)),(0,s.evolve)({values:(0,s.map)((0,c.mOr)(c.ZBU))}))),e)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}))),U=e=>t=>{let{detailedAttributeType:r,entityTypeUri:a,dvfs:l}=t;return(0,s.pipe)(e({fieldName:r.fieldName,entityTypeUri:a,dvfs:l}),F(r,a))},z=e=>{switch(e){case c.oS0.TYPE_BLOB:case c.oS0.TYPE_BLOG_URL:case c.oS0.TYPE_CIK_ID:case c.oS0.TYPE_ENTITY_ID:case c.oS0.TYPE_IMAGE_URL:case c.oS0.TYPE_STRING:case c.oS0.TYPE_TEXT:case c.oS0.TYPE_URL:return A.STRING;case c.oS0.TYPE_COUNT:case c.oS0.TYPE_DOLLAR:case c.oS0.TYPE_INT:case c.oS0.TYPE_LONG:return A.INTEGER;case c.oS0.TYPE_FLOAT:case c.oS0.TYPE_DOUBLE:case c.oS0.TYPE_NUMBER:return A.FLOAT;case c.oS0.TYPE_BOOLEAN:case c.oS0.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return A.BOOLEAN;case c.oS0.TYPE_ACTIVENESS_DATE:case c.oS0.TYPE_DATE:case c.oS0.TYPE_LOCAL_DATE:case c.oS0.TYPE_TIMESTAMP:return A.DATE;case c.oS0.TYPE_SSN:return A.SSN;default:return A.UNKNOWN}},B=e=>{let{percent:t,value:r}=e;return P({width:`${t}%`},r>0&&{minWidth:"3px"})},V=(0,s.pipe)((0,s.pluck)("percent"),(e=>Math.max(...e)));var H=r(71153),Z=r.n(H);const W=(0,E.Z)({wrapper:{width:"100%",display:"flex",justifyContent:"center",margin:"auto",flexWrap:"wrap",flexDirection:"column",marginBottom:2},item:{display:"flex",alignItems:"center",height:19},itemColor:{width:12,height:12,marginRight:9,flexShrink:0}}),Y=e=>{let{payload:t}=e;const r=W();return l().createElement("div",{className:Z()(r.wrapper)},t.map((e=>l().createElement("div",{key:e.id,className:r.item},l().createElement("div",{style:{background:e.color},className:r.itemColor}),e.value))))},G=(0,E.Z)({root:{display:"flex",flexDirection:"column",height:"100%"},stackedBar:{width:"100%",display:"flex",flexWrap:"nowrap",marginTop:"13px"},bar:{height:"24px",flexGrow:1,position:"relative",width:"50%",transition:"width 0.7s","&:hover":{"&:after":{content:'""',background:"rgba(0, 0, 0, 0.1)"}},"&:after":{position:"absolute",top:"-3px",bottom:"-5px",left:"-5px",right:"-5px",transition:"background 0.3s",zIndex:1,pointerEvents:"none"}},inactivePart:{background:"#EFEFEF"},tooltipTitle:{fontSize:"11px"},tooltipFillRate:{marginTop:"4px"},tooltip:{background:"#fff",filter:"drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)) drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2))",padding:"5px 8px"},legendWrapper:{position:"relative",flexGrow:1},legendLabel:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},legendValue:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.87)"},clickable:{cursor:"pointer"}});function q(){return q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},q.apply(this,arguments)}const $=(0,a.forwardRef)(((e,t)=>{let{className:r}=e,a=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["className"]);const n=G();return l().createElement("div",q({className:Z()(n.bar,r)},a,{ref:t}))}));$.displayName="Bar";const Q=$,K=(0,E.Z)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"}}),X=e=>{let{label:t,value:r}=e;const a=K();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:Z()(a.label,a.chartDataLabel)},t),r)},J=(0,E.Z)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),ee=e=>{let{data:t,title:r,DataRenderer:a=X}=e;const n=J();return l().createElement("div",{className:n.tooltipWrapper},r&&l().createElement("div",{className:n.title},r),t.map(((e,t)=>l().createElement("div",{key:t,className:n.row},l().createElement(a,e)))))};function te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){re(e,t,r[t])}))}return e}function re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ae=(0,S.Z)(Q),le=e=>{let{label:t,value:r,percent:a}=e;return[{label:t,value:`${d().number(r)} ${M(a)}`}]},ne=(0,R.Z)((e=>{let{data:t,colors:r,onItemClick:a}=e;const n=G(),i=a&&(e=>a(e)),o=!!a;return l().createElement("div",{className:n.root},l().createElement("div",{className:n.stackedBar},t.map(((e,t)=>l().createElement(ae,{className:o&&n.clickable,key:e.label,tooltipTitle:l().createElement(ee,{data:le(e)}),style:te({},B(e),{background:r[t]}),onClick:()=>i(e.group)})))),l().createElement("div",{className:n.legendWrapper},l().createElement(T.De,{layout:"vertical",align:"left",verticalAlign:"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%"},content:l().createElement(Y,null),payload:(t||[]).map(((e,t)=>{let{group:a,label:i,value:o,percent:s}=e;return{id:a,type:"square",color:r[t],value:l().createElement(l().Fragment,null,l().createElement("span",{className:n.legendLabel},i),l().createElement("span",{className:n.legendValue},`${(0,c.k7L)(o,999)} ${M(s)}`))}}))})))}));var ie=r(17998),oe=r(39475),ce=r(82726);const se=(0,E.Z)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:"5px",lineHeight:"24px"},infoIcon:{position:"relative"}}))),ue=e=>{let{title:t,infoTooltipTitle:r,children:a}=e;const n=se(!!a),i=!!r;return l().createElement(ie.Z,{title:t,className:n.root,classes:{title:n.title}},i&&l().createElement(oe.k,{icon:ce.Z,size:"XXS",tooltipTitle:r,className:n.infoIcon}),a)};var de=r(44443),pe=r(7882),fe=r(82068),me=r(43129),he=r(77277),ye=r(43266);let ge;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(ge||(ge={}));const ve=(0,E.Z)((e=>({container:e=>{let{height:t}=e;return{height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",margin:"0 auto",paddingBottom:t>239?"30px":0,boxSizing:"border-box"}},small:{"& $icon":{maxHeight:"88px"},"& $message":{fontSize:"12px"},"& $title":{fontSize:"13px",fontWeight:400,marginBottom:0},"& $refreshButton":{marginTop:"2px",padding:0}},medium:{"& $icon":{maxHeight:"190px",marginBottom:"24px"}},large:{"& $icon":{height:"256px",width:"256px",marginBottom:"24px"}},icon:e=>{let{height:t}=e;return{paddingTop:0,marginBottom:t>170?"16px":"4px"}},message:{padding:"0 24px",fontSize:"14px",textAlign:"center",whiteSpace:"pre-wrap"},title:{padding:"0 24px",fontSize:"20px",textAlign:"center",color:"rgba(0,0,0,0.87)",fontWeight:500,marginBottom:"8px"},refreshButton:{color:e.palette.primary.main,marginTop:"12px",padding:"6px 8px"},refreshIcon:{width:"24px",height:"24px"}}))),be=m.B9.ERROR,Ee=e=>{let{onRefresh:t,height:r,errorData:a={},variant:n=ge.SMALL}=e;const{Icon:i=be,message:o,title:c}=a,s=ve({height:r});return l().createElement("div",{className:Z()(s.container,s[`${n}`])},l().createElement(i,{className:s.icon}),c&&l().createElement(b.Z,{className:s.title},c),o&&l().createElement(b.Z,{className:s.message},o),!!t&&l().createElement(he.Z,{className:s.refreshButton,startIcon:l().createElement(ye.Z,{color:"primary",className:s.refreshIcon}),onClick:t,"data-reltio-id":"reltio-dq-dashboard-chart-refresh-button"},l().createElement(b.Z,{variant:"button"},d().text("Refresh"))))},xe=(0,E.Z)({container:e=>{let{height:t}=e;return{height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",margin:"0 auto",paddingBottom:t>239?"30px":0,boxSizing:"border-box"}},small:{"& $icon":{maxHeight:"88px"},"& $message":{fontSize:"12px"},"& $title":{fontSize:"13px",fontWeight:400,marginBottom:0}},medium:{"& $icon":{maxHeight:"190px",marginBottom:"24px"}},large:{"& $icon":{maxHeight:"256px",marginBottom:"24px"}},icon:e=>{let{height:t}=e;return{paddingTop:0,marginBottom:t>170?"16px":"4px"}},message:{padding:"0 24px",fontSize:"14px",textAlign:"center",whiteSpace:"pre-wrap"},title:{padding:"0 24px",fontSize:"20px",textAlign:"center",color:"rgba(0,0,0,0.87)",fontWeight:500,marginBottom:"8px"}}),Oe=m.B9.NO_DATA,we=e=>{let{height:t,data:r={},variant:a=ge.SMALL}=e;const{Icon:n=Oe,message:i,title:o}=r,c=xe({height:t});return l().createElement("div",{className:Z()(c.container,c[`${a}`])},l().createElement(n,{className:c.icon}),o&&l().createElement(b.Z,{className:c.title},o),i&&l().createElement(b.Z,{className:c.message},i))},Ne=(0,E.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}}))),Te=e=>{let{loadingState:t,onRefresh:r,children:a,data:n,className:i}=e;const o=Ne();return l().createElement(fe.Z,{className:Z()(o.viewContent,i)},l().createElement(de.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:i,height:o}=e;switch(t){case y.o.LOADED:return n&&0!==n.length?l().createElement(pe.Z,{error:l().createElement(Ee,{errorData:{message:d().text("Something went wrong")},height:o,variant:ge.SMALL})},a({data:n,width:i,height:o})):l().createElement(we,{height:o,data:{Icon:m.B9.NO_DATA,message:d().text("Go ahead and load some data. We’ll put it on the scales and let you know here if it measures up."),title:d().text("Give us something to go on!")},variant:ge.SMALL});case y.o.LOADING:return l().createElement(me.Z,null);case y.o.ERROR:return l().createElement(Ee,{errorData:{Icon:m.B9.ERROR,message:d().text("No need to fret - just refresh and it will work itself out."),title:d().text("Oops! We ran into a problem.")},height:o,onRefresh:r,variant:ge.SMALL});default:return l().createElement("div",null,"Loading...")}})))};var Se=r(1730);const Re=(0,E.Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),Ie=e=>{let{config:t,children:r}=e;const a=Re(),{type:n}=t;return l().createElement(Se.Z,{className:a.view,"data-reltio-id":`reltio-dq-dashboard-chart-${n}`},r)},Ae=e=>{let{label:t,value:r}=e;const a=K();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:Z()(a.label,a.infoDataLabel)},t),r)},Ce={[c.s9T.MISSING]:"#CE5C00",[c.s9T.EXISTS]:"#C4CE00"},De=(0,s.map)((e=>{let{group:t}=e;return Ce[t]||(0,c.f4_)(t)})),Le=e=>({[c.s9T.MISSING]:d().text("Missing"),[c.s9T.EXISTS]:d().text("Exists")}[e]||e),Pe=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,r]=e;return{label:Le(t),group:t,value:r}})),(0,s.sortBy)((e=>Object.values(c.s9T).indexOf(e.group))),j),_e=e=>Object.keys(e).reduce(((t,r)=>(t[r]=Pe(e[r]),t)),{}),je=(0,s.propOr)({},"fillRate"),Me=(0,s.pipe)(je,Pe,(0,s.when)(k,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,De])),ke=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:t===c.s9T.EXISTS?c.j5E.EXISTS:c.j5E.MISSING_VALUE,fieldName:r}]})),Fe=U(ke),Ue=l().createContext(null);Ue.displayName="ChartsDataContext";const ze=e=>{const{data:t,state:r,reload:l}=(0,a.useContext)(Ue);return{data:(0,a.useMemo)((()=>e(t)),[t,e]),state:r,reload:l}},Be=l().createContext(null);Be.displayName="DetailedAttributeTypeContext";const Ve=l().createContext(null);Ve.displayName="EntityTypeContext";const He=e=>{const t=(0,n.useDispatch)(),r=(0,a.useContext)(Be),l=(0,a.useContext)(Ve);return(0,s.pipe)(e({detailedAttributeType:r,entityTypeUri:l.uri}),h.ui.actions.openSearch,t)},Ze=e=>{let{config:t}=e;const{title:r}=t,{data:a,state:n,reload:i}=ze(Me),{chartData:o,colors:c}=a,s=He(Fe),u=l().createElement(ee,{title:d().text("Fill rate"),data:[{label:`${d().text("Exists")}:`,value:d().text("Profiles with data")},{label:`${d().text("Missing")}:`,value:d().text("Profiles without data")}],DataRenderer:Ae});return l().createElement(Ie,{config:t},l().createElement(ue,{title:r,infoTooltipTitle:u}),l().createElement(Te,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(ne,{data:t,colors:c,onItemClick:s})})))},We={[c.dC6.UNIQUE]:"#4BAFFF",[c.dC6.NOT_UNIQUE]:"#C34980"},Ye=(0,s.map)((e=>{let{group:t}=e;return We[t]||(0,c.f4_)(t)})),Ge=e=>({[c.dC6.UNIQUE]:d().text("Unique"),[c.dC6.NOT_UNIQUE]:d().text("Not unique")}[e]||e),qe=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,r]=e;return{label:Ge(t),group:t,value:r}})),(0,s.sortBy)((e=>Object.values(c.dC6).indexOf(e.group))),j),$e=(0,s.propOr)({},"uniqueness"),Qe=(0,s.pipe)($e,qe,(0,s.when)(k,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,Ye])),Ke=e=>{let{config:t}=e;const{title:r}=t,{data:a,state:n,reload:i}=ze(Qe),{chartData:o,colors:c}=a,s=l().createElement(ee,{title:d().text("Uniqueness analysis"),data:[{label:`${d().text("Unique")}:`,value:d().text("Number of values that only appear once and have no duplicates")},{label:`${d().text("Not unique")}:`,value:d().text("Number of values that have at least one duplicate in the list")}],DataRenderer:Ae});return l().createElement(Ie,{config:t},l().createElement(ue,{title:r,infoTooltipTitle:s}),l().createElement(Te,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(ne,{data:t,colors:c})})))};var Xe=r(4614),Je=r(80030),et=r(7089);const tt=(e,t)=>(e||[]).some((0,s.propEq)("attribute",t)),rt=e=>[c.oS0.TYPE_FLOAT,c.oS0.TYPE_DOUBLE,c.oS0.TYPE_NUMBER].includes(e);let at;function lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){nt(e,t,r[t])}))}return e}function nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}!function(e){e.INCLUDED_IN_MATCHING="includedInMatching",e.CONTAIN_VF="containVF",e.REQUIRED="required",e.REFERENCE="reference",e.RDM_LOOKUP="RDMLookup"}(at||(at={}));const it=(0,s.curry)(((e,t)=>e.some((e=>t.details[e.value])))),ot=(0,s.curry)(((e,t)=>{var r;return 0===e.length||it(e,t)||(null===(r=t.children)||void 0===r?void 0:r.some((t=>ot(e,t))))})),ct=(0,s.curry)(((e,t)=>{var r;const a=e[t.fieldName];return null==a||null===(r=a.find((0,s.propEq)("group",c.s9T.EXISTS)))||void 0===r?void 0:r.value})),st=(0,s.curry)(((e,t)=>{var r;const a=e[t.fieldName];return!(null!=a&&null!==(r=a.find((0,s.propEq)("group",c.s9T.EXISTS)))&&void 0!==r&&r.value)})),ut=(0,s.curry)((function(e,t){var r;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const l=t.fieldName||(0,c.Tde)(t.uri,a);return st(e,lt({},t,{fieldName:l}))||(null===(r=t.children)||void 0===r?void 0:r.some((r=>ut(e,r,a.concat({name:t.name,label:t.label})))))})),dt=(0,s.curry)(((e,t)=>t.reduce(((t,r)=>{const a=((e,t)=>{var r;return null===(r=e.label||e.name)||void 0===r?void 0:r.toLowerCase().includes(t.toLowerCase())})(r,e),l=a?r.children||[]:dt(e,r.children||[]);return(a||l.length)&&t.push(Object.assign({},r,l.length&&{children:l})),t}),[])));function pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){ft(e,t,r[t])}))}return e}function ft(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const mt=e=>{let{attrTypeItem:t,dvf:r=[],matchAttributes:a=[]}=e;const{uri:l,required:n,isAttributeReference:i}=t;return{[at.INCLUDED_IN_MATCHING]:a.includes(l),[at.CONTAIN_VF]:tt(r,l),[at.REQUIRED]:!!n,[at.REFERENCE]:i,[at.RDM_LOOKUP]:(0,c.lS4)(t)}},ht=e=>({[at.INCLUDED_IN_MATCHING]:d().text("Included in match rule"),[at.CONTAIN_VF]:d().text("Has validation functions"),[at.REQUIRED]:d().text("Required"),[at.REFERENCE]:d().text("Reference attribute"),[at.RDM_LOOKUP]:d().text("RDM")}[e]||e),yt=(0,s.curry)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return(0,s.pipe)((0,s.chain)((e=>{const l=e.children?yt(e.children,t.concat({name:e.name,label:e.label}),r||(0,c.YkG)(e),a+1):[];return[{attributeItem:pt({},e,{fieldName:(0,c.Tde)(e.uri,t),isAttributeReference:(0,c.YkG)(e)||r}),level:a},...l]})))(e)}));function gt(){return gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},gt.apply(this,arguments)}const vt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",gt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#6663F6"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 14.4h2.411c.016-.205.047-.405.093-.6H8.4v-1.2h3.012c.137-.215.296-.416.472-.6H8.4v-1.2h6v.011a3.896 3.896 0 011.8.287V8.4c0-.66-.54-1.2-1.2-1.2H7.8c-.66 0-1.2.54-1.2 1.2v7.8c0 .66.54 1.2 1.2 1.2h4.083a3.892 3.892 0 01-.979-1.8H8.4v-1.2zm6-4.2h-6V9h6v1.2zm2.58 5.934L18.852 18l-.852.852-1.872-1.872a2.66 2.66 0 01-1.434.42A2.695 2.695 0 0112 14.7c0-1.494 1.206-2.7 2.7-2.7 1.494 0 2.7 1.206 2.7 2.7 0 .528-.156 1.014-.42 1.434zm-2.28.066a1.5 1.5 0 10-.001-3.001A1.5 1.5 0 0014.7 16.2z",fill:"#fff"}))};function bt(){return bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},bt.apply(this,arguments)}const Et=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",bt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#1DACF5"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4 9.6H9.3L12 6.9l2.7 2.7h-2.1v3.846l-3.6 3.6-.846-.846 3.246-3.246V9.6zm4.446 6.6l-.846.846L12.954 15l.846-.846 2.046 2.046z",fill:"#fff"}))};function xt(){return xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},xt.apply(this,arguments)}const Ot=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",xt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#7F22FD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 9v1.2h1.2V9H8.4zm0 2.4v1.2h1.2v-1.2H8.4zm0 2.4V15h1.2v-1.2H8.4zM10.8 9v1.2h4.8V9h-4.8zm0 2.4v1.2h4.8v-1.2h-4.8zm0 2.4V15h4.8v-1.2h-4.8zm6-6v8.4H7.2V7.8h9.6zm1.2 9V6.6H6V17.4h12v-.6z",fill:"#fff"}))};function wt(){return wt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},wt.apply(this,arguments)}const Nt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",wt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#4B31E9"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 15.6h1.8V15a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-3V9.6H8.4a.6.6 0 01-.6-.6V6.6a.6.6 0 01.6-.6H12a.6.6 0 01.6.6V9a.6.6 0 01-.6.6h-1.2v1.8h1.8v-.6a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-1.8v3z",fill:"#fff"}))};function Tt(){return Tt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Tt.apply(this,arguments)}const St=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Tt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#80D2FC"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6c-3.312 0-6 2.688-6 6s2.688 6 6 6 6-2.688 6-6-2.688-6-6-6zm-.6 4.96V9h1.2v1.96l1.698-.98.6 1.04L13.2 12l1.698.98-.6 1.04-1.698-.98V15h-1.2v-1.96l-1.698.98-.6-1.04L10.8 12l-1.698-.98.6-1.04 1.698.98zM7.2 12c0 2.646 2.154 4.8 4.8 4.8s4.8-2.154 4.8-4.8-2.154-4.8-4.8-4.8A4.806 4.806 0 007.2 12z",fill:"#fff"}))},Rt=(0,E.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),It={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let At;!function(e){e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal"}(At||(At={}));const Ct=e=>{let{detailType:t,size:r=It.NORMAL,variant:a=At.NORMAL}=e;const n=Rt(r),i=Z()(n.icon,n[a]);switch(t){case at.RDM_LOOKUP:return l().createElement(Ot,{className:i});case at.CONTAIN_VF:return l().createElement(vt,{className:i});case at.INCLUDED_IN_MATCHING:return l().createElement(Et,{className:i});case at.REFERENCE:return l().createElement(Nt,{className:i});case at.REQUIRED:return l().createElement(St,{className:i});default:return null}},Dt=(0,E.Z)({root:{height:"24px",maxWidth:"calc(100% - 8px)",margin:"0 4px 4px 0",borderRadius:"12px"},label:{fontSize:"12px",paddingLeft:"8px",paddingRight:"9px"},badQuality:{backgroundColor:"rgba(255, 23, 68, 0.12)"}});function Lt(){return Lt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Lt.apply(this,arguments)}function Pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){_t(e,t,r[t])}))}return e}function _t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const jt=e=>{let{detailType:t,classes:r}=e,n=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["detailType","classes"]);const i=Dt(),{data:o,state:s}=(0,a.useContext)(Ue);let u=At.NORMAL;const d=s===y.o.LOADING,p=(e=>{var t;return 0===(null==e||null===(t=e.fillRate)||void 0===t?void 0:t[c.s9T.MISSING])})(o);return t===at.REQUIRED&&(d&&(u=At.LOADING),d||p||(u=At.BAD_QUALITY)),l().createElement(et.Z,Lt({classes:Pt({root:Z()(i.root,{[i.badQuality]:t===at.REQUIRED&&!d&&s!==y.o.INIT&&!p}),label:i.label},r),label:ht(t),icon:l().createElement(Ct,{detailType:t,variant:u})},n))},Mt=(0,E.Z)({root:{display:"flex",flexWrap:"wrap",flexGrow:1}}),kt=e=>{let{details:t,chipClasses:r={}}=e;const a=Mt();return l().createElement("div",{className:a.root},Object.entries(t||{}).filter((e=>{let[,t]=e;return t})).map((e=>{let[t]=e;return l().createElement(jt,{key:t,detailType:t,classes:r})})))},Ft=(0,E.Z)({header:{display:"flex",paddingBottom:"16px"},info:{display:"flex",flexDirection:"column","&:not(:last-child)":{borderRight:"1px solid rgba(0,0,0,0.12)"}},entitySummary:{"&:not(:last-child)":{paddingRight:"16px",marginRight:"16px"}},attributeTypeSummary:{"&:not(:last-child)":{paddingRight:"24px",marginRight:"24px"}},infoTitle:{color:"rgba(0,0,0,0.54)",fontSize:"12px",lineHeight:"16px"},infoContent:{fontSize:"30px",lineHeight:"35px",padding:"4px 0 0",display:"flex",alignItems:"center"},attributeTypeIconWrapper:{width:"32px",height:"33px",background:"rgba(0, 0, 0, 0.05)",borderRadius:"4px",position:"relative",marginRight:"12px",flexShrink:0,"& svg":{position:"absolute",transform:"translate(-50%, -50%)",top:"50%",left:"50%"}},totalLoading:{padding:"4px 8px"}}),Ut=e=>{let{title:t,children:r,className:a}=e;const n=Ft();return l().createElement("div",{className:Z()(n.info,a)},l().createElement("div",{className:n.infoTitle},t),l().createElement("div",{className:n.infoContent},r))};function zt(){return zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},zt.apply(this,arguments)}const Bt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",zt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg1279746712a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"15",height:"8"},l().createElement("path",{d:"M11.667 4H5C2.793 4 1 5.793 1 8s1.793 4 4 4h6.667c2.206 0 4-1.793 4-4s-1.794-4-4-4zm0 6.667H5a2.666 2.666 0 110-5.334h6.667a2.666 2.666 0 110 5.334zm0-4.667c-1.107 0-2 .893-2 2s.893 2 2 2c1.106 0 2-.893 2-2s-.894-2-2-2z",fill:"#000"})),l().createElement("g",{mask:"url(#svg1279746712a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Vt(){return Vt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Vt.apply(this,arguments)}const Ht=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Vt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg208732808a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"14"},l().createElement("path",{d:"M7.992 1.333A6.663 6.663 0 001.332 8c0 3.68 2.98 6.667 6.66 6.667A6.67 6.67 0 0014.665 8a6.67 6.67 0 00-6.673-6.667zm.007 12A5.332 5.332 0 012.665 8 5.332 5.332 0 018 2.667 5.332 5.332 0 0113.332 8a5.332 5.332 0 01-5.333 5.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z",fill:"#000"})),l().createElement("g",{mask:"url(#svg208732808a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Zt(){return Zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Zt.apply(this,arguments)}const Wt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Zt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg1638934380a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},l().createElement("path",{d:"M5.948 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2zM7.947 12v-1.1h1.1V12h-1.1zM13.65 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2z",fill:"#000"})),l().createElement("g",{mask:"url(#svg1638934380a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Yt(){return Yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Yt.apply(this,arguments)}const Gt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Yt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("path",{d:"M2.11 12v-.825h1.331V5.169L2 5.741v-.89L3.331 4.3h1.045v6.875h1.089V12H2.11zM5.968 11.032l1.65-2.508c.242-.367.403-.62.484-.759.08-.147.136-.29.165-.429.03-.14.044-.341.044-.605v-.77a.778.778 0 00-.253-.583c-.169-.161-.389-.242-.66-.242h-1.21V4.3h1.1c.638 0 1.126.158 1.463.473.345.308.517.774.517 1.397v.462c0 .367-.018.645-.055.836-.037.19-.103.37-.198.539-.088.169-.264.455-.528.858l-1.518 2.299h2.519V12h-3.52v-.968zM13.544 10.262c0 .609-.147 1.052-.44 1.331-.293.271-.77.407-1.43.407h-1.298v-.825h1.397c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.239c0-.242-.073-.433-.22-.572-.147-.147-.341-.22-.583-.22h-1.067v-.825h.957a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.902c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187h-1.298V4.3h1.166c.623 0 1.093.14 1.408.418.323.271.484.704.484 1.298v.693c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.924z",fill:"#000",fillOpacity:".541"}))};function qt(){return qt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},qt.apply(this,arguments)}const $t=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",qt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg924767730a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},l().createElement("path",{d:"M5.463 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H2.03v-.836h1.562c.271 0 .491-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.059-.396-.176-.528-.11-.14-.279-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473h1.463v.836H3.714c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM9.136 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H5.704v-.836h1.562c.27 0 .49-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.06-.396-.176-.528-.11-.14-.28-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473H8.96v.836H7.387c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM12.255 12l-1.683-6.886V12H9.68V4.3h1.562l1.694 6.886V4.3h.89V12h-1.572z",fill:"#000"})),l().createElement("g",{mask:"url(#svg924767730a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Qt(){return Qt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Qt.apply(this,arguments)}const Kt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Qt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg3578961193a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},l().createElement("path",{d:"M5.345 12l-.418-1.947H2.782L2.353 12h-.979l1.86-7.7h1.264L6.324 12h-.979zM3.85 5.026l-.89 4.202H4.75L3.85 5.026zM10.494 10.262c0 .63-.146 1.078-.44 1.342-.286.264-.763.396-1.43.396h-2.09V4.3h1.958c.653 0 1.13.132 1.43.396.308.264.462.704.462 1.32v.627c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.99zM9.427 5.917c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187H7.491v2.431h1.133a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.836zm.11 3.256c0-.242-.073-.433-.22-.572-.147-.147-.34-.22-.583-.22H7.491v2.794h1.232c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.173zM13.119 12c-.638 0-1.13-.154-1.474-.462-.337-.315-.506-.785-.506-1.408V6.17c0-.623.169-1.089.506-1.397.345-.315.836-.473 1.474-.473h1.342v.836h-1.452c-.271 0-.491.08-.66.242a.778.778 0 00-.253.583v4.378c0 .227.084.422.253.583.169.161.389.242.66.242h1.452V12h-1.342z",fill:"#000"})),l().createElement("g",{mask:"url(#svg3578961193a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))},Xt=(0,E.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}}}),Jt={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},er=e=>{let{type:t,size:r=Jt.SMALL}=e;const a=Xt(r);switch(z(t)){case A.STRING:return l().createElement(Kt,{className:a.icon});case A.FLOAT:return l().createElement(Wt,{className:a.icon});case A.INTEGER:return l().createElement(Gt,{className:a.icon});case A.BOOLEAN:return l().createElement(Bt,{className:a.icon});case A.DATE:return l().createElement(Ht,{className:a.icon});case A.SSN:return l().createElement($t,{className:a.icon});default:return l().createElement(Kt,{className:a.icon})}},tr=e=>{let{detailedAttributeType:t}=e;const r=Ft(),n=(e=>{const[t,r]=(0,a.useState)(null),l=(0,a.useContext)(Ve),n=(0,g._)();return(0,a.useEffect)((()=>{if(l.uri&&e){const t={filter:c.j5E.EXISTS,fieldName:e},a={filter:c.j5E.EQUALS,fieldName:"type",values:[l.uri]};r(null),n((0,c.j_Q)([t,a])).then((e=>{let{total:t}=e;return r(t)})).catch(console.error)}}),[l.uri,e]),t})(t.fieldName),i=null===n?l().createElement(Xe.Z,{size:"24",className:r.totalLoading}):(0,c.k7L)(n);return l().createElement("div",null,l().createElement("div",{className:r.header},l().createElement(Ut,{title:d().text("Profiles"),className:r.attributeTypeSummary},l().createElement(Je.ZP,{title:l().createElement(ee,{data:[{label:d().text("Entities with exists attribute"),value:d().number(n)}]})},l().createElement("div",null,i))),l().createElement(Ut,{title:d().text("Data type"),className:r.attributeTypeSummary},(o=t.type,l().createElement(l().Fragment,null,l().createElement("div",{className:r.attributeTypeIconWrapper},l().createElement(er,{type:o,size:Jt.NORMAL})),d().text(o))))),l().createElement(kt,{details:t.details}));var o},rr=e=>{let{entityType:t}=e;const{data:r,state:i}=(0,a.useContext)(Ue),o=((e,t)=>{const r=t.attributes||[],a=t=>t.filter(c.Uty).filter((0,s.either)((0,s.prop)("label"),(0,s.prop)("name"))).reduce(((t,r)=>{const l=(0,c.EUG)(e,r);return null!=l&&l.length?[...t,r,...a(l)]:[...t,r]}),[]);return a(r).length})((0,n.useSelector)(h.ZP.selectors.getMetadata),t),{activeProfiles:u=0,inactiveProfiles:p=0,sourceSystems:f=0}=(null==r?void 0:r.summary)||{},m=e=>i===y.o.LOADING?l().createElement(Xe.Z,{size:"24",className:g.totalLoading}):d().number(e),g=Ft();return l().createElement("div",{className:g.header},l().createElement(Ut,{title:d().text("Active profiles"),className:g.entitySummary},m(u)),l().createElement(Ut,{title:d().text("Inactive profiles"),className:g.entitySummary},m(p)),l().createElement(Ut,{title:d().text("Attributes"),className:g.entitySummary},d().number(o)),l().createElement(Ut,{title:d().text("Source systems"),className:g.entitySummary},m(f)))},ar=l().createContext(null);ar.displayName="DataLevelContext";const lr=(0,E.Z)({content:{padding:"0 16px",marginTop:"4px"}}),nr=e=>{let{config:t}=e;const r=lr(),n=(0,a.useContext)(Be),i=(0,a.useContext)(ar),o=(0,a.useContext)(Ve),s=i===C.ATTRIBUTE_TYPE,u=s?(0,c.idV)(n.label):(0,c.idV)(o.label);return l().createElement(Ie,{config:t},l().createElement(ue,{title:u}),l().createElement(fe.Z,{className:r.content},s?l().createElement(tr,{detailedAttributeType:n}):l().createElement(rr,{entityType:o})))};var ir=r(65298);const or=(0,E.Z)({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}});function cr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){sr(e,t,r[t])}))}return e}function sr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ur=m.B9.ERROR,dr=e=>{let{config:t,errorData:r,titleChildren:a,infoTooltipTitle:n,onRefresh:i}=e;const{id:o,title:c}=t,s=or();return l().createElement(ir.Z,{id:o},l().createElement(ue,{title:c,infoTooltipTitle:n},a),l().createElement(fe.Z,{className:s.viewContent},l().createElement(de.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},l().createElement(Ee,{errorData:cr({Icon:ur},r),onRefresh:i,variant:ge.SMALL}))))},pr=e=>{let{keyword:t,entityTypeUri:r}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[I(r)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}},fr=e=>{let{fieldName:t,value:r,entityTypeUri:a}=e;return pr({keyword:`${c.j5E.EQUALS}(${t}, ${r})`,entityTypeUri:a})};function mr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hr=e=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),j),yr=e=>{let{sortDirection:t,sortField:r}=e;return(e,a)=>"asc"===t?e[r]>a[r]?1:-1:e[r]<a[r]?1:-1},gr=(0,s.curry)(((e,t)=>t.filter((t=>e.find((0,s.propEq)("uri",t.group)))).map((t=>{const r=e.find((0,s.propEq)("uri",t.group)).name;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){mr(e,t,r[t])}))}return e}({},t,{label:r,group:r})})))),vr=hr("frequency"),br=hr("pattern"),Er=e=>[{filter:c.j5E.EQUALS,values:[[e]],fieldName:"analyticsAttributes.AttributeValidations.FunctionName"}],xr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}`,value:t,entityTypeUri:a})})),Or=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.ON,values:[t],fieldName:r}]})),wr=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:r}]})),Nr=e=>{let{detailedAttributeType:t,entityTypeUri:r}=e;return(0,s.cond)([[c.j5n,(0,s.always)(xr)],[c.Lt4,(0,s.always)(U(Or))],[s.identity,(0,s.always)(U(wr))]])(t.type)({detailedAttributeType:t,entityTypeUri:r,dvfs:[]})},Tr=U((()=>Er)),Sr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:a})}));var Rr=r(79573),Ir=r(45108),Ar=r(92332),Cr=r(83088);const Dr=(0,s.pipe)((0,s.split)("|"),(e=>{let[t,r]=e;return{label:t,percent:r}})),Lr={content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"},Pr=(0,E.Z)((e=>({colorBarContainer:{position:"relative",width:"100%",marginLeft:"16px",padding:"5px 0 6px",height:"100%",boxSizing:"border-box","&>span":{display:"block"},"&>span>div":{opacity:1,zIndex:1}},numberWhithPercent:{fontSize:"13px",lineHeight:"15px",fontWeight:"normal",color:e.palette.text.primary,flexShrink:0,width:"90px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},numberContainer:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 10px 0 16px",height:"100%"},bar:{borderRadius:"0 !important",minHeight:"16px !important",position:"initial !important","&:hover":{"&:after":{background:"rgba(0, 0, 0, 0.1)"}},"&:after":{content:'""',position:"absolute",top:"2px",left:"-3px",right:"-2px",bottom:"3px",transition:"background 0.3s"}},tooltipTitle:{color:"rgba(255, 255, 255, 0.6)"},headCell:{height:"100%",lineHeight:"47px","&>div":{padding:"0 10px 0 16px",display:"flex"},"&>div>span":{width:"100%",flexGrow:1,justifyContent:e=>e?"flex-start":"flex-end",flexDirection:e=>e?"row":"row-reverse",marginLeft:e=>e&&"auto!important"}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"47px",whiteSpace:"nowrap",overflow:"hidden","&:after":Lr},labelPercantageWrapper:{display:"flex",flexGrow:1},labelWrapper:{minWidth:"90px",position:"relative"},percentsWrapper:{marginLeft:"11px",display:"flex",width:"100%"},percentLabel:{color:e.palette.text.secondary,fontSize:"12px","&:first-child":{flexGrow:1}},attribute:{color:e.palette.text.primary,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",whiteSpace:"pre",overflow:"hidden",display:"flex",alignItems:"center",height:"100%",padding:"0 16px","&:after":Lr},tooltipValue:{whiteSpace:"pre-wrap"}})));function _r(){return _r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_r.apply(this,arguments)}function jr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Mr(e,t,r[t])}))}return e}function Mr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kr=e=>{let{className:t,headCellData:r,headIndex:a}=e,n=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["className","headCellData","headIndex"]);const i=Pr(!a),{label:o,percent:c}=Dr(r.label),s=!!c,u=l().createElement(Cr.C,{value:o},l().createElement("div",{className:i.headLabel},o));return l().createElement("div",{className:Z()(i.headCell,t)},l().createElement(Ar.default,_r({},n,{headCellData:jr({},r,{label:s?l().createElement("div",{className:i.labelPercantageWrapper},l().createElement("div",{className:i.labelWrapper},u),l().createElement("div",{className:i.percentsWrapper},l().createElement("span",{className:i.percentLabel},"0%"),l().createElement("span",{className:i.percentLabel},c,"%"))):u})})))};var Fr=r(59383),Ur=r(30488);const zr=(0,Ur.Z)(((e,t)=>{let{onItemClick:r}=e,{rowValue:{group:a}}=t;return{onClick:r&&(()=>{r(a)})}}))((e=>{let{value:t="",columnData:r,rowValue:a,onClick:n}=e;const{labelCellClassName:i,labelRenderer:o}=r,s=Pr(),u=(0,Fr.d)(n),d=l().createElement("div",{className:s.tooltipValue},t),p=!!o;return l().createElement(Cr.C,{value:d},l().createElement("div",{className:Z()(s.attribute,u,i),onClick:n},p?l().createElement(o,{chartData:a}):c.P6Y.strings.removeLineBreaks(t)))}));var Br=r(89902);const Vr=(0,S.Z)((e=>{let{value:t,maxValue:r,className:a}=e;return l().createElement(Br.Z,{width:t,maxWidth:r,className:a})})),Hr=(0,Ur.Z)(((e,t)=>{let{onItemClick:r,valueHeader:a,labelHeader:l}=e,{rowValue:{group:n}}=t;return{onClick:r&&(()=>{r(n)}),valueHeader:a,labelHeader:l}}))((e=>{let{value:t,columnData:{maxValue:r},rowValue:{percent:a,label:n},labelHeader:i,valueHeader:o,onClick:u}=e;const p=Pr(),f=(0,Fr.d)(u),m=l().createElement("span",{className:p.tooltipValue},n),h=0===t?"0":`${(0,c.k7L)(t,999)} ${M(a)}`,y=l().createElement(ee,{data:[{label:i,value:m},{label:o,value:`${d().number(t)} ${M(a)}`}]});return l().createElement("div",{className:Z()(p.numberContainer,f),onClick:u},l().createElement(b.Z,{className:p.numberWhithPercent},h),!(0,s.isNil)(r)&&l().createElement("div",{className:p.colorBarContainer},l().createElement(Vr,{value:t,maxValue:r,tooltipTitle:y,className:p.bar,showForDisabled:!0})))})),Zr=(0,E.Z)({tableContainer:e=>{let{width:t,height:r}=e;return{height:r,width:t,display:"flex",flexDirection:"column"}},cellBorder:{borderLeft:"none",borderRight:"none!important"}});function Wr(){return Wr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Wr.apply(this,arguments)}const Yr=e=>{let{width:t,height:r,data:n,options:i={},basicTableRef:o,onItemClick:c}=e,s=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["width","height","data","options","basicTableRef","onItemClick"]);const u=Zr({width:t,height:r}),{headers:[p,f]=[],showCountLabels:m=!1,showValues:h=!0,sortable:y=!1,labelCellClassName:g,LabelRenderer:v}=i,b=(0,a.useMemo)((()=>({cellBorder:u.cellBorder})),[u]),E=(0,a.useMemo)((()=>Math.max(...n.map((e=>e.value)))),[n]),x=(0,a.useMemo)((()=>{const e=V(n),t=f||d().text("No of Profiles");return e?t.concat(`|${e}`):t}),[n,f]),O=m?`${p} (${n.length})`:p,w=(0,a.useMemo)((()=>[{id:"label",label:O,resizable:!1,headCellRenderer:kr,labelCellClassName:g,rowCellValueRenderer:zr,initialWidth:.4*t,sortable:y,labelRenderer:v},...h?[{id:"value",label:x,resizable:!1,headCellRenderer:kr,rowCellValueRenderer:Hr,maxValue:E,initialWidth:.6*t,sortable:y}]:[]]),[x,E,t,O,h,g,y,v]),N=(0,a.useMemo)((()=>({onItemClick:c,labelHeader:p,valueHeader:f})),[c,p,f]);return l().createElement("div",{className:u.tableContainer},l().createElement(Ir.Z,Wr({columnsData:w,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:b,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:N},s)))},Gr=(0,E.Z)((()=>({layoutItemContent:{padding:"0 0 10px"}}))),qr=(0,R.Z)((e=>{let{config:t,data:r,title:n,headers:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,titleChildren:u,state:d,onRefresh:p,labelCellClassName:f,showCountLabels:m,LabelRenderer:h}=e;const y=Gr(),[g,v]=(0,a.useState)("desc"),[b,E]=(0,a.useState)("value"),x=(0,a.useCallback)(((e,t)=>c?c({sortDirection:g,sortField:b})(e,t):yr({sortDirection:g,sortField:b})(e,t)),[g,b,c]),O=e=>{v((()=>b===e?(0,Rr.Dh)(g):g)),E(e)},w=(0,a.useMemo)((()=>[...r.sort(x)]),[x,r]);return l().createElement("div",null,l().createElement(Ie,{config:t},l().createElement(ue,{title:n,infoTooltipTitle:o},u),l().createElement(Te,{className:y.layoutItemContent,data:w,loadingState:d,onRefresh:p},(e=>{let{data:t,width:r=0,height:a=0}=e;return l().createElement(Yr,{data:t,width:r,height:a,options:{headers:i,sortable:!!c,showCountLabels:m,labelCellClassName:f,LabelRenderer:h},sorting:{field:b,order:g},onSort:O,onItemClick:s})}))))})),$r=l().createContext(null);$r.displayName="DVFContext";var Qr=r(86689);function Kr(){return Kr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Kr.apply(this,arguments)}const Xr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Kr({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg1830866123a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg1830866123a)"},l().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},l().createElement("path",{d:"M12.375 18.688a7 7 0 017-7h75.742a7 7 0 017 7v49.02a7 7 0 01-7 7H19.375a7 7 0 01-7-7v-49.02z"}),l().createElement("path",{opacity:".4",d:"M16.844 22.813a7 7 0 017-7h75.741a7 7 0 017 7v49.02a7 7 0 01-7 7H23.844a7 7 0 01-7-7v-49.02z"})),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"29.318",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 31.381a3.562 3.562 0 013.552-3.563 3.562 3.562 0 013.552 3.563 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 29.052c0-.726.588-1.313 1.313-1.313h23.983a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 33.553c0-.518.42-.938.938-.938h43.37a.938.938 0 010 1.876h-43.37a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 36.554c0-.31.252-.563.563-.563h13.993a.563.563 0 110 1.126H31.26a.563.563 0 01-.563-.563z",fill:"#B1AABD"}),l().createElement("rect",{opacity:".5",x:"19.854",y:"17.689",width:"29.914",height:"4.126",rx:"2.063",fill:"#645F6D"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"43.573",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("rect",{x:"19.854",y:"42.072",width:"7.105",height:"7.127",rx:"3.552",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 43.306c0-.725.588-1.313 1.313-1.313h28.41a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 47.808c0-.518.42-.938.938-.938h48.23a.938.938 0 110 1.876h-48.23a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 50.809c0-.31.252-.563.563-.563h38.884a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"57.828",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 59.891a3.562 3.562 0 013.552-3.564 3.562 3.562 0 013.552 3.564 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 57.561c0-.725.588-1.313 1.313-1.313h38.132a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 62.063c0-.518.42-.938.938-.938h31.778a.938.938 0 110 1.875H31.635a.938.938 0 01-.938-.937z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 65.064c0-.311.252-.563.563-.563h13.993a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 3.094h88V88H0V3.094z",fill:"url(#paint0_linear_3200_4362)"}),l().createElement("path",{d:"M79.893 76.85H21.308v14.184h58.585V76.85z",fill:"#F5C056"}),l().createElement("path",{d:"M79.893 76.85H74.6v14.184h5.293V76.85z",fill:"#E99B00"}),l().createElement("path",{d:"M48.73 76.893H26.283v14.184H48.73V76.893z",fill:"#FFEA5A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.894 57.829c-1.687-4.26 13.113-4.043 11.413 0-1.353 3.218-1.353 7.53 0 12.934H44.894C46 64.93 46 60.618 44.894 57.83z",fill:"#FFD264"}),l().createElement("path",{d:"M61.253 70.383H39.949v2.663h21.304v-2.663z",fill:"#FFD264"}),l().createElement("path",{d:"M47.938 70.383h-4.185v2.663h4.185v-2.663z",fill:"#FFEA5A"}),l().createElement("path",{d:"M64.676 73.046h-28.15v3.804h28.15v-3.804z",fill:"#795D1A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.764 16.363v5.325H15.602v.143c0 13.634 8.992 24.714 20.162 24.961v2.994c-14-.986-25.108-15.488-25.108-33.233v-.19h25.108z",fill:"#FFCB64"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.677 16.363v5.325h20.161v.143c0 13.634-8.991 24.714-20.161 24.961v2.994c13.999-.986 25.107-15.488 25.107-33.233v-.19H64.677z",fill:"#ED985C"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.307 57.829c-1.353 3.218-1.353 7.53 0 12.934h-5.706V54.715c3.278.026 6.556 1.091 5.706 3.114z",fill:"#F4B046"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.676 73.046v3.804H50.601v-3.804h14.075z",fill:"#4F350B"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.253 70.383v2.663H50.6v-2.663h10.652z",fill:"#F4B046"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.933 10.656a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-11.43 0-23.311-20.1-24.449-45.65h2.194l-.38-3.044h-1.898a91.212 91.212 0 01.01-2.663h49.045z",fill:"#FFCE66"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.937 10.656c.006.569.01 1.14.01 1.712v.952h-.044l-.241 3.043h.294c.126 24.948 1.435 39.335 3.123 45.65-8.89-3.2-15.661-20.403-16.308-45.65h1.465l-.241-3.044h-1.271a158.252 158.252 0 01.006-2.663h13.207z",fill:"#FFEA5A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.284 16.363h-3.91l.422-3.044h3.581a81.301 81.301 0 00-.01-2.663h4.566a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-.414 0-.828-.026-1.241-.078 11.92-1.382 19.899-20.946 21.114-45.572zm.083-5.707h-44.48 44.48z",fill:"#F4B046"}),l().createElement("path",{opacity:".519",d:"M72.665 13.32h-44.51v3.043h44.51v-3.044z",fill:"#F4B046"}),l().createElement("path",{d:"M48.318 73.046h-5.706v3.804h5.706v-3.804z",fill:"#96691F"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M65.526 10.656h4.235L58.973 35.935h-4.235l10.788-25.279z",fill:"url(#paint1_linear_3200_4362)"}),l().createElement("g",{filter:"url(#filter0_d_3200_4362)"},l().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#000"})),l().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#DD612C"}),l().createElement("path",{d:"M56.909 54.302a8.681 8.681 0 100-17.362 8.681 8.681 0 000 17.362z",fill:"#FFCE66"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.909 36.94a8.685 8.685 0 018.347 6.291c-5.74.351-10.312 5.02-10.51 10.8a8.699 8.699 0 01-6.008-5.47A11.212 11.212 0 0054.9 37.174a8.684 8.684 0 012.008-.234z",fill:"#FFF18C"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.202 10.656l10.862 25.341H54.83L43.646 10.705l4.556-.049z",fill:"#F83D3D"})),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3200_4362",x1:"0",y1:"3.094",x2:"0",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3200_4362",x1:"62.25",y1:"10.656",x2:"62.25",y2:"35.935",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#B93131"}),l().createElement("stop",{offset:"1",stopColor:"#831616"})),l().createElement("filter",{id:"filter0_d_3200_4362",x:"40.057",y:"30.77",width:"33.702",height:"33.703",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l().createElement("feOffset",{dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"3"}),l().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0335613 0 0 0 0 0.334579 0 0 0 0 0.412601 0 0 0 0.5 0"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3200_4362"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3200_4362",result:"shape"}))))};function Jr(){return Jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Jr.apply(this,arguments)}const ea=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Jr({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg355575424a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg355575424a)"},l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_3488_11934)"}),l().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M64.543 19.547L84.7 39.704V90.88H32.1L17.875 77.372V19.547h46.668z",fill:"url(#paint1_linear_3488_11934)"}),l().createElement("path",{opacity:".06",fillRule:"evenodd",clipRule:"evenodd",d:"M16.156 19.938h69.438A2.406 2.406 0 0188 22.343v53.968a2.406 2.406 0 01-2.406 2.407H16.156a2.406 2.406 0 01-2.406-2.406v-53.97a2.406 2.406 0 012.406-2.405z",fill:"#000"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 19.25H86.28c.95 0 1.719.77 1.719 1.719v53.968c0 .95-.77 1.72-1.719 1.72H17.187c-.949 0-1.718-.77-1.718-1.72V20.97c0-.95.77-1.719 1.719-1.719z",fill:"#fff"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 24.968c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 29.093c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 56.031c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 60.156c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 66.344c0-.57.462-1.031 1.031-1.031h28.059a1.031 1.031 0 010 2.062H37.254c-.57 0-1.031-.462-1.031-1.031z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 70.469c0-.57.462-1.031 1.031-1.031h25.508a1.031 1.031 0 010 2.062H37.125c-.57 0-1.031-.462-1.031-1.031z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 35.406c0-.57.461-1.031 1.03-1.031h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 39.531c0-.57.461-1.031 1.03-1.031H70.54a1.031 1.031 0 010 2.063H48.47c-.57 0-1.032-.462-1.032-1.032z",fill:"#979797"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 45.719c0-.57.461-1.032 1.03-1.032h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.031z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 49.844c0-.57.461-1.032 1.03-1.032h25.509a1.031 1.031 0 010 2.063H48.469c-.57 0-1.032-.462-1.032-1.031z",fill:"#979797"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M31.802 37.125v-2.75h-.688V48.251h3.843v-.688h-3.155v-9.75h3.155v-.688h-3.155z",fill:"#2B98F0"}),l().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),l().createElement("path",{opacity:".6",fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 7.563h63.937c1.14 0 2.063.923 2.063 2.062v6.188c0 1.139-.924 2.062-2.063 2.062H17.187a2.062 2.062 0 01-2.062-2.063V9.625c0-1.14.923-2.063 2.063-2.063z",fill:"#fff"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M19.938 12.719c0-1.14.923-2.063 2.062-2.063h24.063a2.063 2.063 0 010 4.125H22a2.062 2.062 0 01-2.063-2.062zM50.875 12.719c0-1.14.923-2.063 2.063-2.063h3.437a2.063 2.063 0 010 4.125h-3.438a2.062 2.062 0 01-2.062-2.062z",fill:"#979797"}),l().createElement("path",{opacity:".2",d:"M37.687 66.48l8.942 8.309v.958l19.925 19.702 31.064-.552 7.006-25.47-34.487-34.144-11.2.567c-3.238-1.86-5.34-3.02-6.306-3.48-.54-.258-.383 5.565-2.755 7.725-1.243 1.133-3.462 4.104-6.657 8.914l-5.532 17.47z",fill:"url(#paint2_linear_3488_11934)"}),l().createElement("g",{filter:"url(#filter0_d_3488_11934)",fillRule:"evenodd",clipRule:"evenodd"},l().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312a18.719 18.719 0 014.236 4.554l4.28-.699a23.425 23.425 0 012.392 6.47l-3.639 2.443c.262 2.058.2 4.18-.216 6.285l3.466 2.572a24.254 24.254 0 01-2.838 6.375l-4.231-.855a19.61 19.61 0 01-4.526 4.366l.62 4.34a23.426 23.426 0 01-6.409 2.551l-2.345-3.649a18.72 18.72 0 01-6.219-.1l-2.593 3.564a22.7 22.7 0 01-6.224-2.757l.912-4.304a18.715 18.715 0 01-4.281-4.567l-4.285.7a23.424 23.424 0 01-2.4-6.438l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14zM60.075 49.74c-2.804-1.248-6.112.064-7.388 2.93-1.276 2.867-.038 6.203 2.766 7.452 2.804 1.248 6.112-.064 7.388-2.93 1.276-2.867.038-6.203-2.766-7.452z",fill:"#6B93AC"}),l().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312c.779.597 1.503 1.25 2.168 1.95l-10.07 9.392a5.444 5.444 0 00-1.491-.983c-2.804-1.248-6.112.064-7.388 2.93a5.7 5.7 0 00.626 5.749l-10.071 9.39c-.502-.585-.965-1.2-1.39-1.84l-4.284.7a23.424 23.424 0 01-2.4-6.437l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14z",fill:"#7CA6BF"}),l().createElement("path",{d:"M62.886 42.644c6.409 2.854 9.24 10.479 6.322 17.03-2.917 6.553-10.478 9.552-16.887 6.698-6.409-2.853-9.24-10.478-6.322-17.03 2.917-6.553 10.478-9.551 16.887-6.698zm-1.32 2.966c-4.808-2.14-10.478.109-12.666 5.023-2.188 4.914-.065 10.633 4.742 12.773 4.806 2.14 10.477-.108 12.665-5.023 2.188-4.914.065-10.633-4.742-12.773z",fill:"#AAC4D5"}),l().createElement("path",{d:"M62.886 42.644a12.424 12.424 0 014.22 3.075l-2.366 2.207a9.317 9.317 0 00-3.175-2.316c-4.807-2.14-10.477.109-12.665 5.023-1.635 3.673-.863 7.795 1.638 10.536l-2.367 2.208c-3.325-3.656-4.35-9.145-2.172-14.035 2.917-6.553 10.478-9.551 16.887-6.698z",fill:"#CBDDE9"}))),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3488_11934",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3488_11934",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopOpacity:".01"}),l().createElement("stop",{offset:"1"})),l().createElement("linearGradient",{id:"paint2_linear_3488_11934",x1:"86.975",y1:"77.519",x2:"49.809",y2:"46.968",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#90A4AE",stopOpacity:"0"}),l().createElement("stop",{offset:"1",stopOpacity:".75"})),l().createElement("filter",{id:"filter0_d_3488_11934",x:"32.168",y:"30.067",width:"53.209",height:"53.716",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l().createElement("feOffset",{dx:"1",dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"2"}),l().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3488_11934"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3488_11934",result:"shape"}))))},ta=(0,E.Z)((e=>({title:{whiteSpace:"nowrap",height:"24px",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"},titleCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px",overflow:"hidden",lineHeight:"24px",textOverflow:"ellipsis",fontSize:"14px"},container:{height:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",padding:0,"&>svg":{paddingTop:0,height:"88px",width:"88px",marginBottom:"14px"}},noDataMessage:{fontSize:"12px",textAlign:"center",whiteSpace:"pre-wrap"},noDataTitle:{fontSize:"13px",textAlign:"center",color:"rgba(0,0,0,0.87)",whiteSpace:"pre-wrap"},viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}})));let ra;!function(e){e.DVF_NOT_CONFIGURE="dvfNotConfigured",e.DATA_VALID="dataValid",e.PERMISSION_DENIED="permissionDenied"}(ra||(ra={}));const aa=e=>{let{chartType:t,title:r,infoTooltipTitle:a,titleChildren:n,dvfConfigLink:i,config:o}=e;const c=ta();let s,u,p;switch(t){case ra.DVF_NOT_CONFIGURE:s=l().createElement(ea,null),u=d().text("If we spot any validation issues, we’ll display them here."),p=l().createElement(l().Fragment,null,l().createElement(Qr.Z,{href:i,target:"_blank",component:i?"a":"span",color:i?"primary":"inherit",underline:i?"hover":"none","data-reltio-id":"reltio-dq-dashboard-define-dvf-link"},d().text("Define some data validation functions"))," ",d().text("for this attribute (or ask your Tenant Admin)."));break;case ra.DATA_VALID:s=l().createElement(Xr,null),u=d().text("We didn’t spot any validation issues for this attribute type.\nYou can kick back and enjoy a cold one."),p=d().text("Nice one!");break;case ra.PERMISSION_DENIED:s=l().createElement(m.B9.ERROR,null),u=d().text("Please contact your Tenant Admin to change permissions"),p=d().text("You don’t currently have permission to view this page")}return l().createElement(Ie,{config:o},l().createElement(ue,{title:r,infoTooltipTitle:a},n),l().createElement(fe.Z,{className:c.viewContent},l().createElement("div",{className:c.container},s,p&&l().createElement(b.Z,{className:c.noDataTitle},p),u&&l().createElement(b.Z,{className:c.noDataMessage},u))))},la=e=>{var t;const r=ta(),{config:n}=e,{dvfs:i,dvfConfigLink:o}=(0,a.useContext)($r),{data:u,state:p,reload:f,errorCode:m}=i,h=(0,a.useContext)(Be).uri,E=(0,a.useContext)(Ve),x=E.uri,O=((e,t)=>(e||[]).filter((0,s.propEq)("attribute",t)))(u,h).filter((e=>e.status===c.lVm.ACTIVE)),{data:w,state:N,reload:T}=ze((e=>(0,s.pipe)(hr("dataValidationFunctions"),gr(e)))(O)),S=(0,a.useMemo)((()=>[E]),[E]),R=(0,a.useMemo)((()=>O.map((e=>e.uri))),[O]),I=(e=>{let{entityTypeUri:t,dvfUris:r}=e;const[l,n]=(0,a.useState)(null),i=(0,g._)();return(0,a.useEffect)((()=>{const e=[{fieldName:"type",filter:c.j5E.EQUALS,values:[t]},{fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",filter:c.j5E.EQUALS,values:r}];i((0,c.j_Q)(e)).then((e=>{let{total:t}=e;return n(t)})).catch((()=>n(null)))}),[t,r]),l})({entityTypeUri:x,dvfUris:R}),A=null===(t=v(S))||void 0===t?void 0:t[(0,c.nIW)(x)],C=He(Tr),D=(0,a.useMemo)((()=>p===y.o.LOADED&&N===y.o.LOADED?y.o.LOADED:p===y.o.ERROR||N===y.o.ERROR?y.o.ERROR:y.o.LOADING),[N,p]),L=(0,a.useMemo)((()=>()=>{p===y.o.ERROR&&f(),N===y.o.ERROR&&T()}),[N,p,f,T]),P=m===c.Xt7.ACCESS_DENIED,_=m===c.Xt7.DVF_NOT_CONFIGURED||0===(null==O?void 0:O.length)&&!P,j=D===y.o.LOADED&&(null==O?void 0:O.length)>0&&0===w.length,M=!(D===y.o.ERROR&&m!==c.Xt7.DVF_NOT_CONFIGURED)&&!_&&D!==y.o.LOADING&&l().createElement(Cr.C,{value:n.title},l().createElement(b.Z,{className:r.titleCount},(e=>{let{isDataValid:t,totalProfiles:r,invalidProfiles:a}=e;return t?d().text("0 profiles"):(0,s.isNil)(a)?"":`${(0,c.k7L)(a)} (${Math.round(a/r*100)}%) ${1!==a?d().text("profiles"):d().text("profile")}`})({isDataValid:j,totalProfiles:A,invalidProfiles:I}))),k=[d().text("Validation function"),d().text("Profiles")],F=l().createElement(ee,{title:d().text("Profiles with invalid data"),data:[{value:d().text("Shows the number of profiles that violate active validation functions")}],DataRenderer:Ae});return _||j||P?l().createElement(aa,{config:n,chartType:_?ra.DVF_NOT_CONFIGURE:j?ra.DATA_VALID:P?ra.PERMISSION_DENIED:void 0,title:d().text(n.title),infoTooltipTitle:F,titleChildren:M,dvfConfigLink:o}):l().createElement(qr,{config:n,title:d().text(n.title),headers:k,data:w,onItemClick:C,titleChildren:M,state:D,onRefresh:L,customComparator:yr,infoTooltipTitle:F,showCountLabels:!0})},na=(0,E.Z)((()=>({monoFontCell:{fontFamily:'"Roboto Mono", monospace'}}))),ia=e=>{let{config:t}=e;const r=na(),{data:n,state:i,reload:o}=ze(vr),s=(0,a.useContext)(Be).type,u=(0,c.Lt4)(s)?((e,t)=>{const r=t===c.oS0.TYPE_TIMESTAMP?"L LTS":"L";return e.map((e=>P({},e,{label:d().date(Number(e.label),r)})))})(n,s):n,p=He(Nr),f=[d().text("Value"),d().text("Count")],m=l().createElement(ee,{title:d().text("Frequency analysis"),data:[{value:d().text("Shows the number of times each value occurs")}],DataRenderer:Ae});return l().createElement(qr,{config:t,data:u,headers:f,title:t.title,infoTooltipTitle:m,onItemClick:p,state:i,onRefresh:o,labelCellClassName:Z()({[r.monoFontCell]:(0,c.m6e)(s)})})};function oa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){ca(e,t,r[t])}))}return e}function ca(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var sa,ua;!function(e){e[e.sun=0]="sun",e[e.mon=1]="mon",e[e.tue=2]="tue",e[e.wed=3]="wed",e[e.thu=4]="thu",e[e.fri=5]="fri",e[e.sat=6]="sat"}(sa||(sa={})),function(e){e[e.jan=0]="jan",e[e.feb=1]="feb",e[e.mar=2]="mar",e[e.apr=3]="apr",e[e.may=4]="may",e[e.jun=5]="jun",e[e.jul=6]="jul",e[e.aug=7]="aug",e[e.sep=8]="sep",e[e.oct=9]="oct",e[e.nov=10]="nov",e[e.dec=11]="dec"}(ua||(ua={}));const da=e=>(0,s.pipe)((0,s.pathOr)({},[e,"data"]),Object.entries,(0,s.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),j);var pa;!function(e){e.AVERAGE="avg",e.MININMUN="min",e.MAXIMUM="max",e.MEDIAN="median",e.NUMBER_OF_SOURCES="numberOfSources",e.MIN_NUMBER_OF_PROFILES="minNumberOfProfiles",e.MAX_NUMBER_OF_PROFILES="maxNumberOfProfiles",e.AVG_NUMBER_OF_PROFILES="avgNumberOfProfiles"}(pa||(pa={}));const fa=(e,t)=>{const r={lengthStatistics:{[pa.MEDIAN]:d().text("Median"),[pa.AVERAGE]:d().text("Average"),[pa.MININMUN]:d().text("Minimum"),[pa.MAXIMUM]:d().text("Maximum")},valueDistribution:{[pa.MEDIAN]:d().text("Median"),[pa.AVERAGE]:d().text("Average"),[pa.MININMUN]:d().text("Minimum"),[pa.MAXIMUM]:d().text("Maximum")},crosswalkAnalysis:{[pa.NUMBER_OF_SOURCES]:d().text("No. of source systems"),[pa.AVG_NUMBER_OF_PROFILES]:d().text("Avg no. of profiles"),[pa.MIN_NUMBER_OF_PROFILES]:d().text("Min no. of profiles"),[pa.MAX_NUMBER_OF_PROFILES]:d().text("Max no. of profiles")}};return(0,s.pathOr)(null,[t,e],r)},ma=e=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((t=>{let[r,a]=t;return{label:fa(r,e),value:a}})),(0,s.filter)((e=>{let{label:t}=e;return t})),j),ha=e=>t=>({chartData:da(e)(t),infoPanelData:ma(e)(t)}),ya=(e,t)=>(0,c.Lt4)(t)?d().date(Number(e),"L"):d().number(e),ga=(0,s.curry)(((e,t)=>{const r=(0,s.pipe)((0,s.prop)("group"),(0,s.split)(" "),s.head,Number),a=t.chartData.sort((0,s.ascend)(r)).map(((r,a)=>{const[l,n=l]=r.group.split(" ").map(Number),i=a===t.chartData.length-1,o=l!==n?((e,t,r)=>rt(t)?`[${e}${r?"]":")"}`:e)(`${ya(l,e)} - ${ya(n,e)}`,e,i):ya(l,e);return oa({},r,{label:o,group:[l,n,i?"last":""].toString()})}));return{infoPanelData:t.infoPanelData.map((t=>oa({},t,{value:(0,c.Lt4)(e)?d().date(Number(t.value),"L"):(0,c.k7L)(t.value,999),localizedValue:(0,c.Lt4)(e)?d().date(Number(t.value),"L"):t.localizedValue}))),chartData:a}})),va=(0,s.pipe)(ha("lengthStatistics"),ga("")),ba=(0,s.pipe)(ha("crosswalkAnalysis"),(0,s.applySpec)({chartData:(0,s.prop)("chartData"),infoPanelData:(0,s.pipe)((0,s.prop)("infoPanelData"),(0,s.map)((e=>(0,s.assoc)("value",(0,c.k7L)(e.value,999),e))))})),Ea=ha("monthDistribution"),xa=ha("dayOfWeekDistribution"),Oa=ha("dayOfMonthDistribution"),wa=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}.day_of_week`,value:sa[t.toLowerCase()],entityTypeUri:a})})),Na=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}.month`,value:ua[t.toLowerCase()],entityTypeUri:a})})),Ta=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}.day_of_month`,value:t,entityTypeUri:a})})),Sa=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;const[l,n]=t.split(",");return l===n?fr({fieldName:`${r.fieldName}.length`,value:l,entityTypeUri:a}):(e=>{let{fieldName:t,startRange:r,endRange:a,entityTypeUri:l}=e;return pr({keyword:`${c.j5E.IN_RANGE}(${t}, ${r}, ${a})`,entityTypeUri:l})})({fieldName:`${r.fieldName}.length`,startRange:l,endRange:n,entityTypeUri:a})})),Ra=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}.crosswalk_sources`,value:t,entityTypeUri:a})})),Ia=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l]=t.split(",");return[{filter:c.j5E.AFTER,values:[a],fieldName:r},{filter:c.j5E.BEFORE,values:[l],fieldName:r}]})),Aa=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l]=t.split(",");return[a===l?{filter:c.j5E.EQUALS,values:[[a]],fieldName:r}:{filter:c.j5E.IN_RANGE,values:[[a,l]],fieldName:r}]})),Ca=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l,n]=t.split(","),i=a===l,o=i?[{filter:c.j5E.EQUALS,values:[[a]],fieldName:r}]:[{filter:c.j5E.IN_RANGE,values:[[a,l]],fieldName:r}];return!n&&!i&&o.push({filter:c.j5E.NOT_EQUALS,values:[[l]],fieldName:r}),o})),Da=(0,s.cond)([[c.Lt4,(0,s.always)(U(Ia))],[rt,(0,s.always)(U(Ca))],[s.identity,(0,s.always)(U(Aa))]]);function La(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Pa(e,t,r[t])}))}return e}function Pa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _a=(0,E.Z)((e=>({tooltipWrapper:La({},e.tooltip,{padding:"4px 8px"})}))),ja=e=>{var t;let{payload:r,active:a,name:n}=e;const i=null==r||null===(t=r[0])||void 0===t?void 0:t.payload,o=null==i?void 0:i.value,c=null==i?void 0:i.label,s=n?`${n}`:"",u=_a();return a&&l().createElement("div",{className:u.tooltipWrapper},l().createElement(ee,{data:[{label:s,value:c},{label:d().text("No of profiles"),value:d().number(o)}]}))},Ma=(0,E.Z)((()=>({chartInfoLabel:{fontSize:"13px",lineHeight:"15px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},chartInfoValue:{fontSize:"13px",lineHeight:"15px",color:"rgba(0, 0, 0, 0.87)"},chartInfoWrapper:{display:"flex",backgroundColor:"rgba(0, 0, 0, 0.05)",margin:"0 12px 12px",padding:"9px 12px 8px"},chartInfoItem:{marginRight:"16px"},clickable:{cursor:"pointer"},title:{marginRight:"50px",fontSize:"16px"},root:{padding:"0 0 0 16px",minHeight:"auto",marginTop:"12px",marginBottom:"12px"}}))),ka=e=>{let{data:t}=e;const r=Ma();return l().createElement("div",{className:r.chartInfoWrapper},t.map((e=>{let{label:t,value:a,localizedValue:n}=e;return l().createElement("div",{key:t,className:r.chartInfoItem},l().createElement("span",{className:r.chartInfoLabel},t,": "),a!==n?l().createElement(Je.ZP,{title:n},l().createElement("span",{className:r.chartInfoValue},a)):l().createElement("span",{className:r.chartInfoValue},a))})))},Fa=(0,E.Z)((()=>({labelWrapper:e=>{let{width:t}=e;return{overflow:"hidden",width:`${t}px`,marginTop:"-3px"}},xAxisLabel:{textAlign:"center",whiteSpace:"nowrap",textTransform:"capitalize","&:after":{top:"0",right:"0",width:"10px",height:"100%",content:'""',position:"absolute",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}}}))),Ua=e=>{let{width:t,height:r,label:a,x:n,y:i}=e;const o=Fa({width:t}),c=n-t/2;return l().createElement("foreignObject",{x:c,y:i,width:t,height:r},l().createElement("div",{className:o.labelWrapper},l().createElement(Cr.C,{value:a},l().createElement("div",{className:o.xAxisLabel},a))))},za=e=>{const{x:t,y:r,width:a,height:n,payload:i,visibleTicksCount:o}=e,{value:c}=i,s=a/o-4;return l().createElement(Ua,{width:s,height:n,label:c,x:t,y:r})};function Ba(){return Ba=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ba.apply(this,arguments)}const Va=e=>{let{isClickable:t}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["isClickable"]);const a=Ma(),n=t?a.clickable:void 0;return l().createElement(T.Ae,Ba({},r,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},Ha=e=>{const{value:t}=e;return t>0?l().createElement(T.Ae,e):null};function Za(){return Za=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Za.apply(this,arguments)}const Wa=e=>{let{data:t,config:r,xAxisLabel:a,yAxisLabel:n,barTooltipTitle:i,infoPanelData:o,infoTooltipTitle:s,onItemClick:u,options:d={},state:p,onRefresh:f}=e;const m=Ma(),{title:h}=r,{cartesianGrid:g,bar:v,xAxis:b,yAxis:E,labelForX:x,labelForY:O,barChart:w}=(e=>{let{showCategories:t=!1,interval:r,barCategoryGap:a}=e;return{barChart:{barCategoryGap:a||"10%"},bar:{dataKey:"value",fill:"#0072CE",minPointSize:3,maxBarSize:50},xAxis:{tick:t&&za,tickLine:!1,interval:r||0,dataKey:"label"},yAxis:{tickCount:8,axisLine:!1,tickLine:!1,tick:{fill:"#000"},width:60,tickFormatter:e=>(0,c.k7L)(e,999)},cartesianGrid:{stroke:"#000",strokeOpacity:"0.05",vertical:!1},labelForX:{position:"insideBottom",style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"},offset:t?-3:3},labelForY:{angle:270,position:"left",offset:-3,style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"}}}})(d),N=u&&(e=>{let{activePayload:t}=e;return u(t[0].payload.group)}),S=N?m.clickable:void 0,R=p===y.o.LOADED&&o.length>0;return l().createElement(Ie,{config:r},l().createElement(ue,{title:h,infoTooltipTitle:s}),R&&l().createElement(ka,{data:o}),l().createElement(Te,{data:t,loadingState:p,onRefresh:f},(e=>{let{data:t,width:r=0,height:o=0}=e;return l().createElement("div",null,l().createElement(T.vz,Za({width:r,height:o,data:t,onClick:N},w),l().createElement(T.q3,g),l().createElement(T.u,{content:l().createElement(ja,{name:i}),cursor:l().createElement(Va,{isClickable:!!N})}),l().createElement(T.$Q,Za({},v,{shape:l().createElement(Ha,{className:S})})),l().createElement(T.B2,E,l().createElement(T.__,Za({},O,{value:n}))),l().createElement(T.Kc,b,l().createElement(T.__,Za({},x,{value:a})))))})))},Ya=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=ze(va),{chartData:i,infoPanelData:o}=r,c=He(Sa),s=l().createElement(ee,{title:d().text("Length statistics"),data:[{value:d().text("Measures the string length of values")}],DataRenderer:Ae});return l().createElement(Wa,{config:t,data:i,xAxisLabel:d().text("Length of values"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Length"),infoTooltipTitle:s,onItemClick:c,state:a,onRefresh:n})};var Ga=r(21210);const qa=(0,E.Z)({icon:{width:"20px",height:"20px",borderRadius:"4px",fontSize:"14px",marginRight:"8px"},text:e=>{let{color:t}=e;return{backgroundColor:t}}}),$a=e=>{let{chartData:t}=e;const{group:r,label:a}=t,n=qa({color:(0,c.kW2)(r)});return l().createElement(l().Fragment,null,l().createElement(Ga.Z,{sourceType:r,className:n.icon,classes:{textRoot:n.text}}),a)};function Qa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Ka(e,t,r[t])}))}return e}function Ka(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Xa=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=ze(ba),{chartData:i}=r,o=He(Ra),c=[d().text("Source system"),d().text("Profiles")],s=l().createElement(ee,{title:d().text("Source system analysis"),data:[{value:d().text("Distribution of source systems contributing to profiles")}],DataRenderer:Ae});return l().createElement(qr,{config:Qa({},t),data:i,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:a,onRefresh:n,customComparator:yr,LabelRenderer:$a})},Ja=e=>{let{config:t}=e;const r=(0,a.useContext)(Be).type,{data:n,state:i,reload:o}=ze((e=>(0,s.pipe)(ha("valueDistribution"),ga(e)))(r)),{chartData:c,infoPanelData:u}=n,p=He(Da(r));return l().createElement(Wa,{config:t,data:c,xAxisLabel:d().text("Value"),yAxisLabel:d().text("No. of profiles"),infoPanelData:u,barTooltipTitle:d().text("Value"),onItemClick:p,state:i,onRefresh:o})},el=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=ze(Ea),{chartData:i,infoPanelData:o}=r,c=He(Na);return l().createElement(Wa,{config:t,data:i,xAxisLabel:d().text("Months of the year"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Months of the year"),options:{showCategories:!0,barCategoryGap:"20%",interval:"preserveStartEnd"},onItemClick:c,state:a,onRefresh:n})},tl=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=ze(xa),{chartData:i,infoPanelData:o}=r,c=He(wa);return l().createElement(Wa,{config:t,data:i,xAxisLabel:d().text("Days of the week"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Days of the week"),options:{showCategories:!0,barCategoryGap:"25%",interval:"preserveStartEnd"},onItemClick:c,state:a,onRefresh:n})},rl=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=ze(Oa),{chartData:i,infoPanelData:o}=r,c=He(Ta);return l().createElement(Wa,{config:t,data:i,xAxisLabel:d().text("Days of the month"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Days of the month"),options:{showCategories:!0,interval:1},onItemClick:c,state:a,onRefresh:n})},al=e=>{let{config:t}=e;const r=na(),{data:a,state:n,reload:i}=ze(br),o=He(Sr),c=[d().text("Value"),d().text("Count")],s=l().createElement(ee,{title:d().text("Pattern analysis"),data:[]});return l().createElement(qr,{config:t,data:a,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:n,onRefresh:i,labelCellClassName:r.monoFontCell})};function ll(){return ll=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ll.apply(this,arguments)}class nl{}nl.getComponent=e=>{let{type:t,config:r,isFullscreen:a,onToggleFullscreen:n}=e;const i={config:r,isFullscreen:a,onToggleFullscreen:n};switch(t){case N.FILL_RATE_CHART:return l().createElement(Ze,i);case N.UNIQUENESS_CHART:return l().createElement(Ke,i);case N.SUMMARY:return l().createElement(nr,i);case N.VALIDATION:return l().createElement(la,i);case N.FREQUENCY:return l().createElement(ia,i);case N.LENGTH:return l().createElement(Ya,i);case N.CROSSWALK:return l().createElement(Xa,i);case N.VALUE_DISTRIBUTION:return l().createElement(Ja,i);case N.MONTH_DISTRIBUTION:return l().createElement(el,i);case N.DAY_OF_WEEK_DISTRIBUTION:return l().createElement(tl,i);case N.DAY_OF_MONTH_DISTRIBUTION:return l().createElement(rl,i);case N.PATTERN:return l().createElement(al,i);default:return l().createElement(dr,ll({},i,{errorData:{message:d().text("Chart isn't supported for this data type")}}))}};const il=nl,ol=e=>{let{layoutItemConfig:t,views:r,onToggleFullscreen:a,isFullscreen:n,className:i,children:o,style:c}=e;const s=r.find((e=>{let{id:r}=e;return t.i===r}));if(!s)return null;const{type:u}=s;return l().createElement("div",{style:c,className:i},il.getComponent({type:u,config:s,onToggleFullscreen:a,isFullscreen:n}),o)},cl=(0,E.Z)({root:{overflow:"auto",backgroundColor:"#F9F9F9",height:"100%",flexGrow:1,padding:"4px"}}),sl=(0,s.map)((0,s.assoc)("isStatic",!0)),ul={cols:4,rowHeight:10,margin:[12,12]},dl=(0,a.memo)((e=>{let{views:t,layout:r,layoutOptions:n=ul}=e;const i=cl(),o=(0,a.useMemo)((()=>sl(r)),[r]);return l().createElement("div",{className:i.root},l().createElement(w.Z,{LayoutItem:ol,views:t,layout:o,layoutOptions:n}))}));var pl=r(50166),fl=r(83543),ml=r(98989),hl=r(38402),yl=r(33286),gl=r(40435);const vl=(0,E.Z)({root:{paddingRight:"23px",paddingLeft:"28px",display:"flex",flexDirection:"row-reverse"},detailIcon:{marginLeft:"-5px",borderRadius:"50%",padding:"2px",width:"26px",height:"26px",boxSizing:"border-box"},activeIcon:{background:"white"}}),bl=e=>{let{details:t,classes:r,fillRateData:a,fillRateState:n}=e;const i=vl(),o=(0,s.prop)("iconRoot",r);return l().createElement("div",{className:i.root},Object.entries(t||{}).reverse().map((e=>{let[t,r]=e,u=At.NORMAL;if(t===at.REQUIRED){const e=n===y.o.LOADING,t=0===(null==(d=a)||null===(p=d.find((0,s.propEq)("group",c.s9T.MISSING)))||void 0===p?void 0:p.value);e&&(u=At.LOADING),e||t||(u=At.BAD_QUALITY)}var d,p;return l().createElement("div",{key:t,className:Z()(r&&(o||i.activeIcon),i.detailIcon)},r&&l().createElement(Je.ZP,{title:ht(t)},l().createElement("span",null,l().createElement(Ct,{detailType:t,variant:u,size:It.SMALL}))))})))},El="rgba(0, 114, 206, 0.12)",xl=(0,E.Z)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:El,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:El}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"}}),Ol=e=>{let{level:t,margin:r,hasChildren:a,isLastLevelItem:n,isCollapsed:i}=e;const o=xl(),c=!i&&(t>0||a);return l().createElement("div",{className:o.linesWrapper},((e,t)=>t>0&&e?(0,s.range)(1,t+1):t>1?(0,s.range)(1,t):[])(a,t).map((e=>l().createElement(yl.Z,{key:e,margin:r,level:e,className:o.line}))),c&&l().createElement(yl.Z,{margin:r,level:t,className:Z()(o.line,!a&&t>0&&o.horizontalLine,a&&o.parentLine,n&&o.lastLevel)}))},wl=(0,E.Z)({bar:{width:"100%",display:"flex",flexWrap:"nowrap"},barPart:{height:"8px",flexGrow:1},fillRateSquare:{height:"8px",width:"8px",display:"inline-block",marginRight:"5px",verticalAlign:"middle"},inactiveBarPart:{background:"#EFEFEF"}});function Nl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Tl(e,t,r[t])}))}return e}function Tl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Sl=(0,R.Z)((e=>{let{data:t}=e;const r=wl(),a=De(t),n=t.map(((e,t)=>{let{label:n,percent:i,value:o}=e;return{label:l().createElement("span",null,l().createElement("div",{className:r.fillRateSquare,style:{background:a[t]}}),n),value:`${d().number(o)} ${M(i)}`}}));return k(t)?l().createElement("div",{className:r.bar},l().createElement("div",{className:Z()(r.barPart,r.inactiveBarPart)})):l().createElement(Je.ZP,{title:l().createElement(ee,{title:d().text("Fill rate"),data:n})},l().createElement("div",{className:r.bar},t.map(((e,t)=>l().createElement("div",{key:e.group,className:r.barPart,style:Nl({},B(e),{background:a[t]})})))))})),Rl=(0,E.Z)({listItem:{padding:"0 0 0 15px","&:after":{content:'""',left:0,right:0,position:"absolute",bottom:0,height:"1px",background:"rgba(0, 0, 0, 0.05)"}},selectedItem:{background:"#F0F7FC !important"},pointerCursor:{cursor:"pointer"},content:{display:"flex",alignItems:"center",width:"100%",height:"100%",position:"relative"},attribute:{paddingLeft:"9px",boxSizing:"border-box",width:"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",height:"100%",position:"relative"},marginWrapper:{display:"inline-block",height:"100%",position:"relative",width:"100%"},attributeType:{position:"absolute",left:0,top:"8px"},fillRate:{position:"absolute",bottom:"8px",left:0,right:0,zIndex:1},attributeLabel:{padding:"8px 0 0 15px",position:"relative","&:after":{content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}},selectedAttributeLabel:{"&:after":{background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #F0F7FC 100%)"}},parentAttributeLabel:{padding:"14px 0 0 13px"},detailsIconSelected:{background:"#F0F7FC"},detailsIcon:{background:"white"},collapseIcon:{marginRight:"6px"}}),Il=e=>{let{detailedAttributeType:t,fillRateData:r,fillRateState:a,style:n,level:i,selected:o=!1,onClick:s,onCollapse:u=Rr.ZT,isCollapsed:d=!1,isLastLevelItem:p=!1}=e;const f=Rl(),m=!!t.children,h=!!r,y=(e=>(0,c.idV)(e.label||e.name))(t),g=d?ml.Z:fl.Z,v=o?f.detailsIconSelected:f.detailsIcon;return l().createElement(hl.Z,{style:n,selected:o,classes:{selected:f.selectedItem},onClick:m?void 0:()=>{s(t)},component:"div",className:Z()(f.listItem,!m&&f.pointerCursor)},l().createElement("div",{className:f.content},!m&&l().createElement("div",{className:f.attributeType},l().createElement(er,{type:t.type})),l().createElement("div",{className:f.attribute},l().createElement(Ol,{level:i,margin:20,hasChildren:m,isLastLevelItem:p,isCollapsed:d}),l().createElement(yl.Z,{margin:20,level:i,className:f.marginWrapper},l().createElement(Cr.C,{value:y},l().createElement("div",{className:Z()(f.attributeLabel,o&&f.selectedAttributeLabel,m&&f.parentAttributeLabel)},m&&l().createElement(gl.Z,{size:"XXS",icon:g,onClick:u,className:f.collapseIcon}),y))),h&&!m&&l().createElement("div",{className:f.fillRate},l().createElement(Sl,{data:r}))),l().createElement(bl,{details:t.details,classes:{iconRoot:v},fillRateData:r,fillRateState:a})))},Al=(0,s.propOr)({},"attributeItem"),Cl=(0,s.pipe)((0,s.find)((0,s.pipe)(Al,(0,s.either)(c.YkM,c.Or$),s.not)),Al),Dl=e=>(0,s.pipe)(Al,(0,s.propEq)("fieldName",e)),Ll=e=>(0,s.filter)((0,s.propEq)("group",e));let Pl;!function(e){e.SHOW_EMPTY="showEmpty"}(Pl||(Pl={}));const _l=(0,s.curry)(((e,t,r)=>{const a=(0,s.head)(Ll("emptiness")(e));return(null==a?void 0:a.value)===Pl.SHOW_EMPTY?r:r.filter((0,s.pipe)(Al,ct(t)))})),jl=(0,s.pipe)(Al,(0,s.prop)("fieldName")),Ml=(0,s.curry)(((e,t)=>{const r=Ll("details")(e),a=(e=>(0,s.pipe)((0,s.filter)((0,s.pipe)(Al,(0,s.both)((0,s.prop)("children"),it(e)))),(0,s.map)(jl)))(r)(t);return t.filter((e=>{let{attributeItem:t}=e;return a.some((e=>t.fieldName.startsWith(e)))||ot(r,t)}))}));function kl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Fl=r(36444),Ul=r(79784),zl=r(15115),Bl=r(21324),Vl=r(12231);const Hl=(0,E.Z)((e=>({serachWrapper:{padding:"8px 0px 8px 16px",alignItems:"center",display:"flex",flexGrow:1,justifyContent:"flex-end"},filterByDetails:{width:"32px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"9px"},searchInput:{borderRadius:"4px",width:"240px",minHeight:"32px!important",justifyContent:"flex-end",alignItems:"center",padding:"0 2px",boxSizing:"border-box","& input":{fontSize:"14px"},"& button":{padding:"2px"}},filledInput:{"& button:last-child":{backgroundColor:"rgba(0, 0, 0, 0.0509804)"}},menu:{width:"300px",paddingTop:"8px"},filterIcon:{color:e.palette.text.secondary},filterIconFilterApplied:{color:"#0072CE"},filterIconWrapper:{width:"32px",height:"32px",borderRadius:"4px",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",position:"relative","&:after":{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"4px",background:"rgba(0, 0, 0, 0.04)"},"&:hover":{"&:after":{content:'""'}}},filterIconWrapperActive:{background:"rgba(0, 0, 0, 0.04)","&:after":{content:'""',background:"rgba(0, 0, 0, 0.04)"}},filterIconWrapperSelected:{background:"rgba(0, 114, 206, 0.12)"},dropdownMenuTitle:{lineHeight:"48px",height:"48px",paddingLeft:"16px"},option:{paddingLeft:"5px",fontSize:"13px",height:"28px",lineHeight:"16px",letterSpacing:"normal",paddingRight:"19px",filter:e=>e?"grayscale(0)":"grayscale(1)",opacity:e=>e?1:.5},typeIconWrapper:{width:"28px",marginLeft:"1px","& svg":{width:"20px",height:"20px"}},valueContainer:{marginLeft:0},counter:{marginLeft:"5px"},optionLabel:{flexGrow:1},groupLabel:{textTransform:"uppercase",margin:"15px 16px 5px",letterSpacing:"0.1px",display:"block"},actionsContainer:{display:"flex",padding:"12px 5px 8px 12px"},clearAllButton:{marginRight:"auto"}}))),Zl=e=>{let{isSelected:t,data:r,onChange:a}=e;const{count:n,label:i,value:o}=r,u=!(0,s.isNil)(n),d=Hl(!u||n>0);return l().createElement(Vl.Z,{className:d.option,component:"div",onClick:()=>a(r),"data-reltio-id":`reltio-dq-dashboard-option-${r.value}`},l().createElement(Bl.Z,{color:"primary",checked:t}),l().createElement("span",{className:d.typeIconWrapper},l().createElement(Ct,{detailType:o})),l().createElement(Cr.C,{value:i},l().createElement("div",{className:d.optionLabel},i)),u&&l().createElement("span",{className:d.counter},(0,c.k7L)(n,999)))},Wl=(0,s.curry)(((e,t)=>!!t.find((0,s.propEq)("value",e.value)))),Yl=(0,s.curry)(((e,t)=>{const r=t.findIndex((0,s.propEq)("value",e.value));return-1!==r?(0,s.remove)(r,1,t):t})),Gl=e=>{let{defaultFilterOptions:t=[],filterOptions:r,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=Hl(),[u,p]=(0,a.useState)(null),[f,m]=(0,a.useState)(t),[h,y]=(0,a.useState)(n||null),g=()=>p(null),v=e=>{m((0,s.ifElse)(Wl(e),Yl(e),(0,s.concat)([e])))},E=!!f.length,x=!!u,O=Z()(c.filterIconWrapper,{[c.filterIconWrapperActive]:x,[c.filterIconWrapperSelected]:E}),w=E?c.filterIconFilterApplied:c.filterIcon;return l().createElement("div",{className:c.serachWrapper},l().createElement(zl.Z,{autofocus:!0,onChange:e=>{y(e),i(e||"")},initialValue:n||null,height:40,placeholder:d().text("Search attribute name"),"data-reltio-id":"reltio-dq-dashboard-attributes-search-input",classes:{root:Z()(c.searchInput,{[c.filledInput]:!!h})}}),l().createElement("div",{className:c.filterByDetails,"data-reltio-id":"reltio-dq-dashboard-attributes-filter"},l().createElement("div",{className:O,onClick:e=>p(e.currentTarget)},l().createElement(Fl.Z,{className:w})),l().createElement(Ul.ZP,{open:!!u,anchorEl:u,onClose:()=>{m((0,s.always)(t)),g()},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{"data-reltio-id":"reltio-dq-dashboard-attributes-filter-popup"}},l().createElement("div",{className:c.menu},l().createElement(b.Z,{variant:"h6",className:c.dropdownMenuTitle},d().text("Filter")),l().createElement("div",{className:c.valueContainer},r.map((e=>{let{label:t,options:r}=e;return l().createElement("div",{key:t},t&&l().createElement(b.Z,{variant:"caption",className:c.groupLabel},t),r.map((e=>{const t=Wl(e,f);return l().createElement(Zl,{key:e.label,data:e,isSelected:t,onChange:v})})))})))),l().createElement("div",{className:c.actionsContainer},l().createElement(he.Z,{onClick:()=>{m([])},className:c.clearAllButton,disabled:!E,"data-reltio-id":"reltio-dq-dashboard-filter-clear-all-button"},d().text("Clear all")),l().createElement(he.Z,{onClick:()=>{m(t),g()},"data-reltio-id":"reltio-dq-dashboard-filter-cancel-button"},d().text("Cancel")),l().createElement(he.Z,{color:"primary",onClick:()=>{o(f),g()},"data-reltio-id":"reltio-dq-dashboard-filter-apply-button"},d().text("Apply"))))))},ql=(0,E.Z)((e=>({root:{width:"480px",display:"flex",flexDirection:"column",borderRight:"solid 1px rgba(0, 0, 0, 0.12)",flexGrow:1},title:{height:"24px",margin:"16px",display:"flex",alignItems:"center",fontSize:"12px",color:"rgba(0, 0, 0, 0.54);"},itemCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px"},listWrapper:{flexGrow:1,overflow:"hidden",position:"relative"},columnsTitle:{height:"48px",display:"grid",gridGap:"32px",gridTemplateColumns:"308px 108px",alignItems:"center",padding:"0 16px",background:"rgba(0, 0, 0, 0.06)",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",fontWeight:500,fontSize:"12px",lineHeight:"16px",color:"rgba(0, 0, 0, 0.54)"},loaderWrapper:{position:"absolute",top:"0",left:"0",width:"100%",height:"4px",zIndex:1}}))),$l=e=>{var t,r;let{entityType:i,onAttributesListChange:o,defaultFieldName:u,defaultFilterOptions:p,defaultFilterText:f,disableAttributeSelection:v}=e;const b=ql(),E=(0,a.useRef)(),x=(0,a.useRef)(),[O,w]=(0,a.useState)(f||""),[N,T]=(0,a.useState)([]),[S,R]=(0,a.useState)(p||[]),[I,A]=(0,a.useState)({fieldName:u}),[C,D]=(0,a.useState)({}),{data:L}=(0,a.useContext)(Ue),{data:P,state:_}=(e=>{const[t,r]=(0,a.useState)(y.o.INIT),[l,n]=(0,a.useState)({}),i=(0,g._)(),o=e=>{console.error(e),r(y.o.ERROR),n({})},s=(0,a.useCallback)((()=>(r(y.o.LOADING),n({}),i((0,c.aTW)({entityTypeUri:e})).then(_e).then((e=>{n(e),r(y.o.LOADED)})).catch(o))),[r,n,e]),u=(0,a.useCallback)((()=>{try{s()}catch(e){o(e)}}),[s]);return(0,a.useEffect)((()=>{u()}),[u]),{data:l,state:t,reload:u}})(i.uri);(0,a.useEffect)((()=>D(P)),[P]),(0,a.useEffect)((()=>{const e=(null==L?void 0:L.fillRate)&&Pe(null==L?void 0:L.fillRate),t=C[I.fieldName];D((r=>!e||(0,s.equals)(t,e)?r:(0,s.assoc)(I.fieldName,e,r)))}),[null==L?void 0:L.fillRate]);const j=null===(t=(0,a.useContext)($r))||void 0===t||null===(r=t.dvfs)||void 0===r?void 0:r.state,M=((e,t)=>{var r,l;const i=(0,n.useSelector)(h.ZP.selectors.getMetadata),o=(0,a.useMemo)((()=>(e=>(0,s.pipe)(c.WN0,dt(e),yt))(t)(i,e)),[i,e,t]),[u,d]=(0,a.useState)([]),p=e.uri,f=(0,a.useMemo)((()=>(0,c.qhs)(i,p)),[i,p]),m=null===(r=(0,a.useContext)($r))||void 0===r||null===(l=r.dvfs)||void 0===l?void 0:l.data;return(0,a.useEffect)((()=>{m&&d(o.map((0,s.evolve)({attributeItem:e=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){kl(e,t,r[t])}))}return e}({},e,{details:mt({attrTypeItem:e,dvf:m,matchAttributes:f})},e.children&&{children:e.children.map((t=>(t.details=mt({attrTypeItem:t,dvf:m,matchAttributes:f}),t.details.reference=e.isAttributeReference,t)))})})))}),[o,f,m]),u})(i,O),{filteredItems:k,filterOptions:F}=(0,a.useMemo)((()=>{const e=_l(S,C,M),t=(e=>{const t=Object.values(at).map((e=>({value:e,label:ht(e),group:"details"}))).map((t=>(0,s.assoc)("count",((e,t)=>e.filter((e=>it([t],e.attributeItem))).length)(e,t),t)));return{label:d().text("Attribute properties"),options:t}})(e);return{filteredItems:Ml(S,e),filterOptions:[{label:"",options:[{label:d().text("Show attributes with no data"),value:Pl.SHOW_EMPTY,group:"emptiness"}]},t]}}),[M,S,C]),U=(0,a.useMemo)((()=>((e,t)=>e.filter((e=>{let{attributeItem:r}=e;return!t.some((e=>r.fieldName.startsWith(e)&&r.fieldName!==e))})))(k,N)),[k,N]),z=k.length,B=e=>{o({selectedDetailedAttributeType:e,filterText:O,filterOptions:S}),A({fieldName:e.fieldName})},V=()=>{const e=((e,t)=>(0,s.pipe)((0,s.find)(Dl(t)),(0,s.propOr)(null,"attributeItem"))(e))(k,I.fieldName)||Cl(k);return(0,s.isEmpty)(e)||v?null:e};(0,a.useEffect)((()=>{var e,t,r;if(v)return void(null===(r=E.current)||void 0===r||r.scrollTo(0));if(k.length){const e=V();A({fieldName:(null==e?void 0:e.fieldName)||I.fieldName})}const a=((e,t)=>(0,s.findIndex)(Dl(t))(e))(k,I.fieldName);a>-1?null===(e=E.current)||void 0===e||e.scrollToItem(a,"center"):null===(t=E.current)||void 0===t||t.scrollTo(0)}),[k]),(0,a.useEffect)((()=>{const e=V();o({selectedDetailedAttributeType:e,filterText:O,filterOptions:S})}),[O,S,I]),(0,a.useEffect)((()=>{A((e=>{let{fieldName:t}=e;return v?{fieldName:null}:{fieldName:t}}))}),[v]);const H=e=>{let{scrollOffset:t}=e;if(x.current){var r,a;const e=null===(r=x.current)||void 0===r||null===(a=r.style)||void 0===a?void 0:a.borderTop;0===t&&(x.current.style.borderTop=""),t>0&&""===e&&(x.current.style.borderTop="1px solid rgba(0, 0, 0, 0.05)")}},Z=e=>{let{data:t,index:r,style:a}=e;const{attributeItem:n,level:i=0}=t[r],o=I.fieldName===n.fieldName,c=((e,t)=>e[t.fieldName])(C,n),u=r>0&&i>(0,s.pathOr)(-1,[r+1,"level"],U);return l().createElement(Il,{fillRateData:c,fillRateState:_,style:a,detailedAttributeType:n,level:i,onClick:B,selected:o,onCollapse:(d=n.fieldName,()=>{T((e=>e.includes(d)?e.filter((e=>e!==d)):e.concat(d)))}),isCollapsed:N.includes(n.fieldName),isLastLevelItem:u});var d},W=U.length,Y=!!W,G=_===y.o.LOADING||j===y.o.LOADING||_===y.o.INIT||j===y.o.INIT;return l().createElement("div",{className:b.root},l().createElement("div",{className:b.title},d().text("Attributes"),l().createElement("span",{className:b.itemCount},`${z} ${q=z,1===q?d().text("item"):d().text("items")}`),l().createElement(Gl,{defaultFilterText:f,defaultFilterOptions:S,onChangeFilterOptions:R,onChangeFilterText:w,filterOptions:F})),l().createElement("div",{ref:x,className:b.listWrapper,"data-reltio-id":"reltio-dq-dashboard-attributes-list"},l().createElement("div",{className:b.loaderWrapper},G&&l().createElement(me.Z,null)),Y?l().createElement(de.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return l().createElement(pl.FixedSizeList,{ref:E,itemCount:W,width:"100%",height:t,itemData:U,itemSize:48,onScroll:H},Z)})):!G&&l().createElement(we,{height:349,data:{Icon:m.B9.SEARCH_RESULTS,title:d().text("No results found"),message:d().text("Try adjusting your search or filter to find\nwhat you’re looking for")},variant:ge.MEDIUM})));var q},Ql=(0,E.Z)((e=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowX:"hidden",overflowY:"auto",fontFamily:"Roboto, Helvetica, Arial, sans-serif",display:"flex",flexDirection:"column"},content:{display:"flex",flexGrow:1,overflow:"hidden"},additionalLabel:{color:e.palette.text.secondary,marginLeft:"10px"},entityLevelButton:{height:"48px",padding:"0 16px",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",borderRight:"1px solid rgba(0, 0, 0, 0.1)",fontSize:"16px",lineHeight:"48px",color:"rgba(0, 0, 0, 0.87)",cursor:"pointer"},selectedButton:{background:"#F0F7FC"},wrapper:{display:"flex",flexDirection:"column"}})));function Kl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Xl(e,t,r[t])}))}return e}function Xl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Jl=(0,s.path)([0,"value"]),en=e=>{var t,r,i;let{config:o,saveState:u,getSavedState:b}=e;const E=Ql(),{entityType:x,tabs:w,setEntityTypeByUri:T}=(()=>{const e=(0,n.useSelector)(h.ZP.selectors.getMetadata),t=(0,a.useMemo)((()=>e.entityTypes.filter(c.oDv)),[e.entityTypes]),r=v(t),[l,i]=(0,a.useState)(null);return{entityType:l,tabs:(0,a.useMemo)((()=>t.map(((e,t)=>{let{label:a,uri:l}=e;return{label:a,value:l,additionalLabel:Number((null==r?void 0:r[(0,c.nIW)(l)])||0),dataReltioId:`reltio-dq-dashboard-entity-tab-${t}`}}))),[t,r]),setEntityTypeByUri:(0,s.pipe)((0,c.nt9)(e),i)}})(),[S,R]=(0,a.useState)(null),{isLoaded:I,savedState:P}=(0,p.a)(b),_=(0,n.useSelector)(h.ZP.selectors.getCanUserGetDQStatistic),[j,M]=(0,a.useState)(),k=(e=>{const[t,r]=(0,a.useState)(null),[l,i]=(0,a.useState)(null),o=(0,g._)(),u=(0,n.useSelector)(h.ZP.selectors.getUIPath),d=(0,n.useSelector)(h.ZP.selectors.getEnvironment),p=(0,n.useSelector)(h.ZP.selectors.getTenant);return(0,a.useEffect)((()=>{o((0,c.f_2)({uiPath:u,tenant:p,environment:d,options:{method:"GET"}})).then((e=>{var t;const a=null==e||null===(t=e.data)||void 0===t?void 0:t.apps.find((0,s.propEq)("name","Console")).uri;r(a)})).catch((()=>r(null)))}),[d,p,u]),(0,a.useEffect)((()=>{const r=t&&null!=e&&e.uri?(0,s.pipe)((0,s.split)("?"),(0,s.insert)(1,`datamodeler/entityDetails/${(0,c.nIW)(e.uri)}/validation?`),(0,s.join)(""))(t):null;i(r)}),[e,t]),l})(x),F=(e=>{const[t,r]=(0,a.useState)(null),[l,i]=(0,a.useState)(y.o.INIT),[o,s]=(0,a.useState)(),u=(0,n.useSelector)(h.ZP.selectors.getTenant),d=(0,n.useSelector)(h.ZP.selectors.getDVFPath),p=(0,g._)(),f=(0,n.useSelector)(h.ZP.selectors.getEnvironment),m=e=>{console.error(e),i(y.o.ERROR),r([]),s(null==e?void 0:e.errorCode)},v=e=>{r(e.functions),s(void 0),i(y.o.LOADED)},b=(0,a.useCallback)((()=>{if(e&&f)return i(y.o.LOADING),p((0,c.HaQ)({dvfPath:d,tenant:u,entityTypeUri:e,env:f})).then(v).catch(m)}),[d,u,e,f]);return(0,a.useEffect)((()=>{b()}),[b]),{data:t,state:l,reload:b,errorCode:o}})(null==x?void 0:x.uri),U={dvfs:F,dvfConfigLink:k},B=(e=>{let{entityType:t,detailedAttributeType:r,dataLevel:l}=e;const[n,i]=(0,a.useState)(y.o.INIT),[o,s]=(0,a.useState)({}),u=null==r?void 0:r.fieldName,d=null==t?void 0:t.uri,p=(0,g._)(),f=e=>{console.error(e),i(y.o.ERROR),s({})},m=(0,a.useCallback)((async()=>{if(i(y.o.LOADING),l===C.ENTITY_TYPE){var e,a;const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:[d]}]),r=await(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.ACTIVE_ONLY,filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}),l=await(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.INACTIVE_ONLY,filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]});return s({summary:{inactiveProfiles:null===(e=l.type)||void 0===e?void 0:e[(0,c.nIW)(d)],activeProfiles:null===(a=r.type)||void 0===a?void 0:a[(0,c.nIW)(d)],sourceSystems:8}}),void i(y.o.LOADED)}if(t&&r)return p((0,c.TTx)({entityTypeUri:d,attributeFieldName:u})).then((e=>{s(e),i(y.o.LOADED)})).catch(f)}),[i,s,u,d]),h=(0,a.useCallback)((()=>{try{m()}catch(e){f(e)}}),[m]);return(0,a.useEffect)((()=>{h()}),[h]),{data:o,state:n,reload:h}})({entityType:x,detailedAttributeType:S,dataLevel:j}),V=null==w?void 0:w.map((e=>Kl({},e,{additionalLabel:l().createElement("span",{className:E.additionalLabel},"(",(0,c.k7L)(e.additionalLabel,999),")")}))),H=(0,a.useCallback)((e=>{(null==x?void 0:x.uri)!==e&&(R(null),T(e),j===C.ENTITY_TYPE&&u(Kl({dataLevel:j,entityTypeUri:e},$.current&&{filterOptions:$.current.filterOptions,filterText:$.current.filterText})))}),[null==x?void 0:x.uri]),W=(null===(t=o.layoutsByDataLevel)||void 0===t?void 0:t[C.ENTITY_TYPE])||L[C.ENTITY_TYPE],Y=null===(r=o.layoutsByDataLevel)||void 0===r?void 0:r[C.ATTRIBUTE_TYPE],G=(0,a.useMemo)((()=>j===C.ENTITY_TYPE&&W?W:((e,t)=>{const r=z(t),a=(0,s.mergeLeft)(e,L[C.ATTRIBUTE_TYPE]);return a[r]||a.default||[]})(Y,null==S?void 0:S.type)),[W,null==S?void 0:S.type,Y,j]),q=(0,a.useMemo)((()=>((e,t,r,a)=>{const l=(0,s.uniqBy)((0,s.prop)("id"),(0,s.concat)((null==e?void 0:e[a])||[],D[a]||[])),n=(e=>{switch(e){case C.ATTRIBUTE_TYPE:return(e=>{switch(e){case A.INTEGER:case A.FLOAT:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART,N.VALUE_DISTRIBUTION];case A.BOOLEAN:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY];case A.STRING:return[N.LENGTH,N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART];case A.DATE:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART,N.VALUE_DISTRIBUTION,N.MONTH_DISTRIBUTION,N.DAY_OF_MONTH_DISTRIBUTION,N.DAY_OF_WEEK_DISTRIBUTION];case A.SSN:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART,N.PATTERN];case A.UNKNOWN:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART,N.LENGTH];default:return[]}})(z(t));case C.ENTITY_TYPE:return[N.SUMMARY];default:return[]}})(a);return r.reduce(((e,t)=>{const r=(0,s.prop)("type",e.find((0,s.propEq)("id",t.id)));if(!n.includes(r)){const r=e.findIndex((0,s.propEq)("id",t.id));if(-1!==r)return(0,s.adjust)(r,(0,s.assoc)("type",N.UNSUPPORTED),e)}return e}),l)})(o.viewsByDataLevel,null==S?void 0:S.type,G,j)),[null==S?void 0:S.type,G,j]);(0,a.useEffect)((()=>{I&&(T(P.entityTypeUri||Jl(w)),M(W?P.dataLevel||C.ENTITY_TYPE:C.ATTRIBUTE_TYPE))}),[I]);const $=(0,a.useRef)(),Q=!(null===(i=w.find((0,s.propEq)("value",null==x?void 0:x.uri)))||void 0===i||!i.additionalLabel),K=x&&_&&I&&Q;return l().createElement("div",{className:E.perspectiveView},l().createElement(O,{title:d().text("Data Quality")},x&&l().createElement(f.Z,{value:x.uri,tabs:V,onChange:H,scrollButtons:"auto"})),l().createElement("div",{className:E.content},K&&l().createElement(l().Fragment,null,l().createElement(Ue.Provider,{value:B},l().createElement($r.Provider,{value:U},l().createElement("div",{className:E.wrapper},W&&l().createElement("div",{className:Z()(E.entityLevelButton,{[E.selectedButton]:j===C.ENTITY_TYPE}),onClick:()=>{R(null),M(C.ENTITY_TYPE)}},`${x.label} ${d().text("summary")}`),l().createElement($l,{entityType:x,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:r,filterOptions:a}=e;const l=null==t?void 0:t.fieldName,n={entityTypeUri:x.uri,fieldName:l,filterOptions:a,filterText:r,dataLevel:j};!l&&j!==C.ENTITY_TYPE||(0,s.equals)($.current,n)||(u(n),$.current=n),l&&M(C.ATTRIBUTE_TYPE),R(t)},defaultFieldName:null==P?void 0:P.fieldName,defaultFilterText:null==P?void 0:P.filterText,defaultFilterOptions:null==P?void 0:P.filterOptions,disableAttributeSelection:j===C.ENTITY_TYPE})),(S||j===C.ENTITY_TYPE)&&l().createElement(ar.Provider,{value:j},l().createElement(Ve.Provider,{value:x},l().createElement(Be.Provider,{value:S},l().createElement(dl,{views:q,layout:G}))))))),!_&&l().createElement(Ee,{height:359,errorData:{title:d().text("You don’t currently have permission to view this page"),message:d().text(" Please contact your Tenant Admin to change permissions")},variant:ge.LARGE}),I&&x&&!Q&&_&&l().createElement(we,{height:359,data:{Icon:m.B9.NO_DATA,title:d().text("Give us something to go on!"),message:d().text("Go ahead and load some data. We’ll put it on the scales and\nlet you know here if it measures up.")},variant:ge.LARGE})))};function tn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rn=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){tn(e,t,r[t])}))}return e}({},c.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}}),an=(0,i.Z)(rn),ln=(0,o.createGenerateClassName)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0}),nn=e=>{let{store:t,config:r,saveState:i,getSavedState:s}=e;const u=(0,a.useCallback)((0,c.aYu)(s),[s]);return l().createElement(n.Provider,{store:t},l().createElement(o.ThemeProvider,{theme:an},l().createElement(o.StylesProvider,{generateClassName:ln},l().createElement(en,{config:r,saveState:i,getSavedState:u}))))}},15115:(e,t,r)=>{t.Z=void 0;var a=m(r(72579)),l=m(r(54073)),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var n=a?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(r,l,n):r[l]=e[l]}return r.default=e,t&&t.set(e,r),r}(r(24328)),i=m(r(13980)),o=m(r(71153)),c=m(r(16805)),s=m(r(2630)),u=m(r(81819)),d=m(r(21853)),p=m(r(87685));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(f,e);var t,r,i=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var r,a=E(e);if(t()){var l=E(this).constructor;r=Reflect.construct(a,arguments,l)}else r=a.apply(this,arguments);return v(this,r)}}(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),x(b(t=i.call(this,e)),"emitChange",(0,l.default)((function(e){return t.props.onChange(e)}),200)),x(b(t),"handleChange",(function(e){var r=(0,a.default)(e,["target","value"]);t.setState({value:r}),t.emitChange(r)})),x(b(t),"handleFocus",(function(){return t.inputRef.current.focus()})),x(b(t),"handleOpen",(function(){t.props.forceOpen||t.setState({open:!0},t.handleFocus)})),x(b(t),"handleClose",(function(){t.props.forceOpen||t.setState({open:!1}),t.setState({value:""}),t.emitChange()})),t.state={open:Boolean(t.props.initialValue),value:t.props.initialValue||""},t.inputRef=n.default.createRef(),t}return t=f,(r=[{key:"render",value:function(){var e=this.state,t=e.open,r=e.value,a=this.props,l=a.classes,i=a.placeholder,f=a.forceOpen,m=t||f,h=t||f&&r;return n.default.createElement("div",{className:(0,o.default)(c.default.searchInputContainer,x({},c.default.colored,m),l.root)},n.default.createElement(s.default,{name:"expand-input-btn",onClick:this.handleOpen},n.default.createElement(d.default,null)),m&&n.default.createElement(u.default,{value:r,disableUnderline:!0,className:c.default.searchInputField,classes:{input:c.default.input},placeholder:i,onChange:this.handleChange,inputProps:{ref:this.inputRef}}),h&&n.default.createElement(s.default,{name:"collapse-input-btn",onClick:this.handleClose},n.default.createElement(p.default,null)))}}])&&y(t.prototype,r),f}(n.PureComponent);t.Z=O,O.defaultProps={classes:{},forceOpen:!1},O.propTypes={classes:i.default.shape({root:i.default.string}),placeholder:i.default.string,forceOpen:i.default.bool,onChange:i.default.func.isRequired,initialValue:i.default.string}},16805:(e,t,r)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(0,((a=r(86698))&&a.__esModule?a:{default:a}).default)("<style>.Form__searchInputContainer_3vqs6{display:flex;min-height:48px}.Form__searchInputField_3mnAi{flex:1 1 auto;padding:2px}.Form__input_3ulP-::-ms-clear{display:none}.Form__colored_2WMqk{background-color:#fafafa}</style>"),t.default={searchInputContainer:"Form__searchInputContainer_3vqs6",searchInputField:"Form__searchInputField_3mnAi",input:"Form__input_3ulP-",colored:"Form__colored_2WMqk"}}}]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reltio/remotes",
3
- "version": "1.4.1015",
3
+ "version": "1.4.1016",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "main.js",
6
6
  "publishConfig": {
package/remoteEntry.js CHANGED
@@ -1 +1 @@
1
- var remotes;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,d,f,h,c,p,m,v,g,y,b={61266:(e,r,t)=>{var n={"./components":()=>Promise.all([t.e(7751),t.e(8148),t.e(5176),t.e(1867),t.e(9394),t.e(64),t.e(1071),t.e(7773),t.e(219),t.e(614),t.e(8242),t.e(2637),t.e(6244),t.e(1466),t.e(3567),t.e(3357),t.e(5637),t.e(4328),t.e(3723),t.e(3061),t.e(8523),t.e(9810),t.e(8751),t.e(4079),t.e(6558),t.e(3033),t.e(2602),t.e(6733),t.e(2805),t.e(4805),t.e(9958)]).then((()=>()=>t(59958))),"./mdm-sdk":()=>Promise.all([t.e(7751),t.e(3723),t.e(1707)]).then((()=>()=>t(71707))),"./mdm-module":()=>Promise.all([t.e(7751),t.e(9394),t.e(3723),t.e(8523),t.e(9810),t.e(2400)]).then((()=>()=>t(72400))),"./dashboard":()=>Promise.all([t.e(7751),t.e(8148),t.e(5176),t.e(9394),t.e(64),t.e(7773),t.e(219),t.e(8242),t.e(6244),t.e(3357),t.e(9546),t.e(4328),t.e(3723),t.e(3061),t.e(8523),t.e(9810),t.e(8751),t.e(6558),t.e(3033),t.e(2805),t.e(1434)]).then((()=>()=>t(11434))),"./dq-dashboard":()=>Promise.all([t.e(7751),t.e(8148),t.e(5176),t.e(1867),t.e(9394),t.e(7773),t.e(8242),t.e(6244),t.e(4328),t.e(3723),t.e(3061),t.e(8523),t.e(9810),t.e(8751),t.e(6558),t.e(6733),t.e(3771)]).then((()=>()=>t(26505))),"./graph":()=>Promise.all([t.e(7751),t.e(8148),t.e(5176),t.e(9394),t.e(64),t.e(1071),t.e(7773),t.e(614),t.e(1466),t.e(7110),t.e(4328),t.e(3723),t.e(3061),t.e(8523),t.e(9810),t.e(8751),t.e(4079),t.e(3033),t.e(2602),t.e(1886)]).then((()=>()=>t(71886))),"./search":()=>Promise.all([t.e(7751),t.e(8148),t.e(5176),t.e(1867),t.e(9394),t.e(64),t.e(1071),t.e(7773),t.e(219),t.e(614),t.e(8242),t.e(2637),t.e(1466),t.e(6290),t.e(3567),t.e(9650),t.e(4328),t.e(3723),t.e(3061),t.e(8523),t.e(9810),t.e(8751),t.e(4079),t.e(6558),t.e(3033),t.e(2602),t.e(6733),t.e(4805),t.e(7864)]).then((()=>()=>t(27864)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},w={};function P(e){var r=w[e];if(void 0!==r)return r.exports;var t=w[e]={id:e,loaded:!1,exports:{}};return b[e].call(t.exports,t,t.exports,P),t.loaded=!0,t.exports}P.m=b,P.c=w,P.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return P.d(r,{a:r}),r},P.d=(e,r)=>{for(var t in r)P.o(r,t)&&!P.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},P.f={},P.e=e=>Promise.all(Object.keys(P.f).reduce(((r,t)=>(P.f[t](e,r),r)),[])),P.u=e=>e+".js",P.miniCssF=e=>(4351===e?"remotes":e)+".css",P.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),P.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@reltio/remotes:",P.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var d=s[u];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==r+o){i=d;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,P.nc&&i.setAttribute("nonce",P.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(h);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},P.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},P.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),P.j=4351,(()=>{P.S={};var e={},r={};P.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];P.o(P.S,t)||(P.S[t]={});var a=P.S[t],i="@reltio/remotes",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@material-ui/core","4.11.3",(()=>Promise.all([P.e(8148),P.e(5176),P.e(1867),P.e(64),P.e(1071),P.e(219),P.e(614),P.e(2637),P.e(6290),P.e(1135),P.e(4328),P.e(3061),P.e(3980)]).then((()=>()=>P(81135))))),l("@material-ui/pickers","3.2.0",(()=>Promise.all([P.e(8148),P.e(1867),P.e(1071),P.e(5026),P.e(4328),P.e(3061),P.e(4079),P.e(8794)]).then((()=>()=>P(65026))))),l("@material-ui/styles","4.11.3",(()=>Promise.all([P.e(2393),P.e(4328),P.e(7737)]).then((()=>()=>P(92393))))),l("react-dnd","9.5.1",(()=>Promise.all([P.e(3348),P.e(4328),P.e(8523),P.e(8570)]).then((()=>()=>P(53348)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;P.g.importScripts&&(e=P.g.location+"");var r=P.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),P.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(l=e[a]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():o(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,l=1,s=!0;;l++,i++){var u,d,f=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(d=(typeof(u=r[i]))[0]))return!s||("u"==f?l>n&&!o:""==f!=o);if("u"==d){if(!s||"u"!=f)return!1}else if(s)if(f==d)if(l<=n){if(u!=e[l])return!1}else{if(o?u>e[l]:u<e[l])return!1;u!=e[l]&&(s=!1)}else if("s"!=f&&"n"!=f){if(o||l<=n)return!1;s=!1,l--}else{if(l<=n||d<f!=o)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,l--)}}var h=[],c=h.pop.bind(h);for(i=1;i<e.length;i++){var p=e[i];h.push(1==p?c()|c():2==p?c()&c():p?a(p,r):!c())}return!!c()},i=(e,r)=>{var t=P.S[e];if(!t||!P.o(t,r))throw new Error("Shared module "+r+" doesn't exist in shared scope "+e);return t},l=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},s=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",u=(e,r,t,n)=>{var o=l(e,t);return a(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(s(e,t,o,n)),d(e[t][o])},d=e=>(e.loaded=1,e.get()),h=(f=e=>function(r,t,n,o){var a=P.I(r);return a&&a.then?a.then(e.bind(e,r,P.S[r],t,n,o)):e(r,P.S[r],t,n,o)})(((e,r,t,n)=>(i(e,t),u(r,0,t,n)))),c=f(((e,r,t,n,o)=>r&&P.o(r,t)?u(r,0,t,n):o())),p={},m={24328:()=>h("default","react",[1,17,0,2]),36138:()=>c("default","@material-ui/styles",[1,4,11,3],(()=>P.e(2393).then((()=>()=>P(92393))))),75047:()=>h("default","react-dom",[1,17,0,2]),94079:()=>c("default","@material-ui/core",[1,4,11,3],(()=>Promise.all([P.e(5176),P.e(1867),P.e(64),P.e(219),P.e(614),P.e(2637),P.e(6290),P.e(1135)]).then((()=>()=>P(81135))))),28523:()=>h("default","redux",[1,4,1,2]),95038:()=>h("default","moment",[1,2,29,1]),17440:()=>h("default","ramda",[2,0,27,1]),87918:()=>h("default","ui-i18n",[1,1,3,1]),22664:()=>c("default","@material-ui/pickers",[1,3,1,1],(()=>Promise.all([P.e(1867),P.e(1071),P.e(5026),P.e(4079)]).then((()=>()=>P(65026))))),71153:()=>h("default","classnames",[1,2,3,1]),13896:()=>c("default","react-dnd",[1,9,5,1],(()=>P.e(3348).then((()=>()=>P(53348))))),52730:()=>h("default","react-redux",[1,7,2,6])},v={3061:[36138,75047],3723:[95038,17440,87918],4079:[94079],4328:[24328],8523:[28523],8751:[22664,71153,13896,52730]},P.f.consumes=(e,r)=>{P.o(v,e)&&v[e].forEach((e=>{if(P.o(p,e))return r.push(p[e]);var t=r=>{p[e]=0,P.m[e]=t=>{delete P.c[e],t.exports=r()}},n=r=>{delete p[e],P.m[e]=t=>{throw delete P.c[e],r}};try{var o=m[e]();o.then?r.push(p[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},g=e=>new Promise(((r,t)=>{var n=P.miniCssF(e),o=P.p+n;if(((e,r)=>{for(var t=document.getElementsByTagName("link"),n=0;n<t.length;n++){var o=(i=t[n]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(o===e||o===r))return i}var a=document.getElementsByTagName("style");for(n=0;n<a.length;n++){var i;if((o=(i=a[n]).getAttribute("data-href"))===e||o===r)return i}})(n,o))return r();((e,r,t,n)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=a=>{if(o.onerror=o.onload=null,"load"===a.type)t();else{var i=a&&("load"===a.type?"missing":a.type),l=a&&a.target&&a.target.href||r,s=new Error("Loading CSS chunk "+e+" failed.\n("+l+")");s.code="CSS_CHUNK_LOAD_FAILED",s.type=i,s.request=l,o.parentNode.removeChild(o),n(s)}},o.href=r,document.head.appendChild(o)})(e,o,r,t)})),y={4351:0},P.f.miniCss=(e,r)=>{y[e]?r.push(y[e]):0!==y[e]&&{1886:1,7864:1}[e]&&r.push(y[e]=g(e).then((()=>{y[e]=0}),(r=>{throw delete y[e],r})))},(()=>{var e={4351:0};P.f.j=(r,t)=>{var n=P.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(3061|4079|4328|8523)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=P.p+P.u(r),i=new Error;P.l(a,(t=>{if(P.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)P.o(i,n)&&(P.m[n]=i[n]);l&&l(P)}for(r&&r(t);s<a.length;s++)o=a[s],P.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var S=P(61266);remotes=S})();
1
+ var remotes;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,d,f,h,c,p,m,v,g,y,b={61266:(e,r,t)=>{var n={"./components":()=>Promise.all([t.e(7751),t.e(8148),t.e(5176),t.e(1867),t.e(9394),t.e(64),t.e(1071),t.e(7773),t.e(219),t.e(614),t.e(8242),t.e(2637),t.e(6244),t.e(1466),t.e(3567),t.e(3357),t.e(5637),t.e(4328),t.e(3723),t.e(3061),t.e(8523),t.e(9810),t.e(8751),t.e(4079),t.e(6558),t.e(3033),t.e(2602),t.e(6733),t.e(2805),t.e(4805),t.e(9958)]).then((()=>()=>t(59958))),"./mdm-sdk":()=>Promise.all([t.e(7751),t.e(3723),t.e(1707)]).then((()=>()=>t(71707))),"./mdm-module":()=>Promise.all([t.e(7751),t.e(9394),t.e(3723),t.e(8523),t.e(9810),t.e(2400)]).then((()=>()=>t(72400))),"./dashboard":()=>Promise.all([t.e(7751),t.e(8148),t.e(5176),t.e(9394),t.e(64),t.e(7773),t.e(219),t.e(8242),t.e(6244),t.e(3357),t.e(9546),t.e(4328),t.e(3723),t.e(3061),t.e(8523),t.e(9810),t.e(8751),t.e(6558),t.e(3033),t.e(2805),t.e(1434)]).then((()=>()=>t(11434))),"./dq-dashboard":()=>Promise.all([t.e(7751),t.e(8148),t.e(5176),t.e(1867),t.e(9394),t.e(7773),t.e(8242),t.e(6244),t.e(4328),t.e(3723),t.e(3061),t.e(8523),t.e(9810),t.e(8751),t.e(6558),t.e(6733),t.e(6563)]).then((()=>()=>t(94875))),"./graph":()=>Promise.all([t.e(7751),t.e(8148),t.e(5176),t.e(9394),t.e(64),t.e(1071),t.e(7773),t.e(614),t.e(1466),t.e(7110),t.e(4328),t.e(3723),t.e(3061),t.e(8523),t.e(9810),t.e(8751),t.e(4079),t.e(3033),t.e(2602),t.e(1886)]).then((()=>()=>t(71886))),"./search":()=>Promise.all([t.e(7751),t.e(8148),t.e(5176),t.e(1867),t.e(9394),t.e(64),t.e(1071),t.e(7773),t.e(219),t.e(614),t.e(8242),t.e(2637),t.e(1466),t.e(6290),t.e(3567),t.e(9650),t.e(4328),t.e(3723),t.e(3061),t.e(8523),t.e(9810),t.e(8751),t.e(4079),t.e(6558),t.e(3033),t.e(2602),t.e(6733),t.e(4805),t.e(7864)]).then((()=>()=>t(27864)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},w={};function P(e){var r=w[e];if(void 0!==r)return r.exports;var t=w[e]={id:e,loaded:!1,exports:{}};return b[e].call(t.exports,t,t.exports,P),t.loaded=!0,t.exports}P.m=b,P.c=w,P.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return P.d(r,{a:r}),r},P.d=(e,r)=>{for(var t in r)P.o(r,t)&&!P.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},P.f={},P.e=e=>Promise.all(Object.keys(P.f).reduce(((r,t)=>(P.f[t](e,r),r)),[])),P.u=e=>e+".js",P.miniCssF=e=>(4351===e?"remotes":e)+".css",P.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),P.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@reltio/remotes:",P.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var d=s[u];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==r+o){i=d;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,P.nc&&i.setAttribute("nonce",P.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(h);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},P.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},P.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),P.j=4351,(()=>{P.S={};var e={},r={};P.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];P.o(P.S,t)||(P.S[t]={});var a=P.S[t],i="@reltio/remotes",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@material-ui/core","4.11.3",(()=>Promise.all([P.e(8148),P.e(5176),P.e(1867),P.e(64),P.e(1071),P.e(219),P.e(614),P.e(2637),P.e(6290),P.e(1135),P.e(4328),P.e(3061),P.e(3980)]).then((()=>()=>P(81135))))),l("@material-ui/pickers","3.2.0",(()=>Promise.all([P.e(8148),P.e(1867),P.e(1071),P.e(5026),P.e(4328),P.e(3061),P.e(4079),P.e(8794)]).then((()=>()=>P(65026))))),l("@material-ui/styles","4.11.3",(()=>Promise.all([P.e(2393),P.e(4328),P.e(7737)]).then((()=>()=>P(92393))))),l("react-dnd","9.5.1",(()=>Promise.all([P.e(3348),P.e(4328),P.e(8523),P.e(8570)]).then((()=>()=>P(53348)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;P.g.importScripts&&(e=P.g.location+"");var r=P.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),P.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(l=e[a]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():o(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,l=1,s=!0;;l++,i++){var u,d,f=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(d=(typeof(u=r[i]))[0]))return!s||("u"==f?l>n&&!o:""==f!=o);if("u"==d){if(!s||"u"!=f)return!1}else if(s)if(f==d)if(l<=n){if(u!=e[l])return!1}else{if(o?u>e[l]:u<e[l])return!1;u!=e[l]&&(s=!1)}else if("s"!=f&&"n"!=f){if(o||l<=n)return!1;s=!1,l--}else{if(l<=n||d<f!=o)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,l--)}}var h=[],c=h.pop.bind(h);for(i=1;i<e.length;i++){var p=e[i];h.push(1==p?c()|c():2==p?c()&c():p?a(p,r):!c())}return!!c()},i=(e,r)=>{var t=P.S[e];if(!t||!P.o(t,r))throw new Error("Shared module "+r+" doesn't exist in shared scope "+e);return t},l=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},s=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",u=(e,r,t,n)=>{var o=l(e,t);return a(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(s(e,t,o,n)),d(e[t][o])},d=e=>(e.loaded=1,e.get()),h=(f=e=>function(r,t,n,o){var a=P.I(r);return a&&a.then?a.then(e.bind(e,r,P.S[r],t,n,o)):e(r,P.S[r],t,n,o)})(((e,r,t,n)=>(i(e,t),u(r,0,t,n)))),c=f(((e,r,t,n,o)=>r&&P.o(r,t)?u(r,0,t,n):o())),p={},m={24328:()=>h("default","react",[1,17,0,2]),36138:()=>c("default","@material-ui/styles",[1,4,11,3],(()=>P.e(2393).then((()=>()=>P(92393))))),75047:()=>h("default","react-dom",[1,17,0,2]),94079:()=>c("default","@material-ui/core",[1,4,11,3],(()=>Promise.all([P.e(5176),P.e(1867),P.e(64),P.e(219),P.e(614),P.e(2637),P.e(6290),P.e(1135)]).then((()=>()=>P(81135))))),28523:()=>h("default","redux",[1,4,1,2]),95038:()=>h("default","moment",[1,2,29,1]),17440:()=>h("default","ramda",[2,0,27,1]),87918:()=>h("default","ui-i18n",[1,1,3,1]),22664:()=>c("default","@material-ui/pickers",[1,3,1,1],(()=>Promise.all([P.e(1867),P.e(1071),P.e(5026),P.e(4079)]).then((()=>()=>P(65026))))),71153:()=>h("default","classnames",[1,2,3,1]),13896:()=>c("default","react-dnd",[1,9,5,1],(()=>P.e(3348).then((()=>()=>P(53348))))),52730:()=>h("default","react-redux",[1,7,2,6])},v={3061:[36138,75047],3723:[95038,17440,87918],4079:[94079],4328:[24328],8523:[28523],8751:[22664,71153,13896,52730]},P.f.consumes=(e,r)=>{P.o(v,e)&&v[e].forEach((e=>{if(P.o(p,e))return r.push(p[e]);var t=r=>{p[e]=0,P.m[e]=t=>{delete P.c[e],t.exports=r()}},n=r=>{delete p[e],P.m[e]=t=>{throw delete P.c[e],r}};try{var o=m[e]();o.then?r.push(p[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},g=e=>new Promise(((r,t)=>{var n=P.miniCssF(e),o=P.p+n;if(((e,r)=>{for(var t=document.getElementsByTagName("link"),n=0;n<t.length;n++){var o=(i=t[n]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(o===e||o===r))return i}var a=document.getElementsByTagName("style");for(n=0;n<a.length;n++){var i;if((o=(i=a[n]).getAttribute("data-href"))===e||o===r)return i}})(n,o))return r();((e,r,t,n)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=a=>{if(o.onerror=o.onload=null,"load"===a.type)t();else{var i=a&&("load"===a.type?"missing":a.type),l=a&&a.target&&a.target.href||r,s=new Error("Loading CSS chunk "+e+" failed.\n("+l+")");s.code="CSS_CHUNK_LOAD_FAILED",s.type=i,s.request=l,o.parentNode.removeChild(o),n(s)}},o.href=r,document.head.appendChild(o)})(e,o,r,t)})),y={4351:0},P.f.miniCss=(e,r)=>{y[e]?r.push(y[e]):0!==y[e]&&{1886:1,7864:1}[e]&&r.push(y[e]=g(e).then((()=>{y[e]=0}),(r=>{throw delete y[e],r})))},(()=>{var e={4351:0};P.f.j=(r,t)=>{var n=P.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(3061|4079|4328|8523)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=P.p+P.u(r),i=new Error;P.l(a,(t=>{if(P.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)P.o(i,n)&&(P.m[n]=i[n]);l&&l(P)}for(r&&r(t);s<a.length;s++)o=a[s],P.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var S=P(61266);remotes=S})();
package/3771.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3771],{81819:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a.Z});var a=r(29611)},69112:(e,t,r)=>{r.d(t,{Z:()=>p});var a=r(7560),l=r(54530),n=r(24328),i=(r(13980),r(6277));const o=(0,r(3752).Z)(n.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");var c=r(15459),s=r(57074),u=r(97580),d=n.forwardRef((function(e,t){var r=e.active,c=void 0!==r&&r,d=e.children,p=e.classes,f=e.className,m=e.direction,h=void 0===m?"asc":m,y=e.hideSortIcon,g=void 0!==y&&y,v=e.IconComponent,b=void 0===v?o:v,E=(0,l.Z)(e,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return n.createElement(s.Z,(0,a.Z)({className:(0,i.Z)(p.root,f,c&&p.active),component:"span",disableRipple:!0,ref:t},E),d,g&&!c?null:n.createElement(b,{className:(0,i.Z)(p.icon,p["iconDirection".concat((0,u.Z)(h))])}))}));const p=(0,c.Z)((function(e){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:e.palette.text.secondary},"&:hover":{color:e.palette.text.secondary,"& $icon":{opacity:.5}},"&$active":{color:e.palette.text.primary,"&& $icon":{opacity:1,color:e.palette.text.secondary}}},active:{},icon:{fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}}),{name:"MuiTableSortLabel"})(d)},98989:(e,t,r)=>{var a=r(14859);t.Z=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M10 17l5-5-5-5v10z"}),l.default.createElement("path",{fill:"none",d:"M0 24V0h24v24H0z"})),"ArrowRight");t.Z=n},82726:(e,t,r)=>{var a=r(14859);t.Z=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.Z=n},43266:(e,t,r)=>{var a=r(14859);t.Z=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");t.Z=n},21853:(e,t,r)=>{var a=r(14859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=a(r(24328)),n=(0,a(r(50175)).default)(l.default.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.default=n},82068:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(24328),l=r.n(a),n=r(71153),i=r.n(n);const o=(0,r(79692).Z)({"basic-view-content":{flex:"1 1 auto",padding:"0 24px 24px","&:first-child":{paddingTop:"24px"}}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},c.apply(this,arguments)}const s=e=>{let{children:t,className:r}=e,a=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["children","className"]);const n=o();return l().createElement("div",c({className:i()(n["basic-view-content"],r)},a),t)}},17822:(e,t,r)=>{r.d(t,{Z:()=>S});var a=r(13980),l=r.n(a),n=r(24328),i=r.n(n),o=r(66244),c=r.n(o),s=r(44443),u=r(17440),d=r(71153),p=r.n(d);function f(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}const m=e=>{let{x:t,y:r,width:a,height:l,id:n,minWidth:i,minHeight:o,maxWidth:c,maxHeight:s,isStatic:u}=e;return{x:t,y:r,w:a,h:l,minW:i,minH:o,maxW:c,maxH:s,i:n,static:u}},h=e=>{let{x:t,y:r,w:a,h:l,maxW:n,minW:i,minH:o,maxH:c,i:s}=e;return{x:t,y:r,width:a,height:l,minWidth:i,minHeight:o,maxWidth:n,maxHeight:c,id:s,isStatic:f(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},y=e=>(e||[]).map(h),g=(0,u.curry)(((e,t)=>(e||[]).find((0,u.propEq)("id",t)))),v=(0,u.curry)(((e,t,r)=>(0,u.mergeAll)([r,(0,u.pick)(e,t)]))),b=(0,u.curry)(((e,t,r)=>(r||[]).map((r=>(0,u.pipe)((0,u.prop)("id"),g(t),(0,u.defaultTo)({}),v(e,u.__,r))(r)))));var E=r(79692),x=r(4171);const O=(0,E.Z)((e=>({gridLayout:{position:"relative",width:"100%","& .react-grid-item":{"&.react-grid-placeholder":{background:"rgba(0, 0, 0, 0.03)",border:"2px dashed rgba(0, 0, 0, 0.3)",borderRadius:"3px",transitionDuration:"100ms",zIndex:7,userSelect:"none","& .react-resizable-handle":{display:"none"}},"&.static .react-resizable-handle":{display:"none"},"&.cssTransforms":{transitionProperty:"transform"},"&.resizing":{zIndex:9,willChange:"width, height",pointerEvents:"none"},"&.react-draggable-dragging":{transition:"none",zIndex:8,willChange:"transform","& .react-resizable-handle":{backgroundImage:"none"}},"& .react-resizable-handle":{position:"absolute",width:"17px",height:"17px",bottom:0,right:0,zIndex:20,backgroundImage:`url('${(0,x.m5F)('<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path stroke="#505050" stroke-opacity=".54" d="M9.5 0v10M0 9.5h9M7.5 4v4M4 7.5h3"/>\n</svg>')}')`,backgroundRepeat:"no-repeat",backgroundOrigin:"content-box",boxSizing:"border-box",cursor:"se-resize"},"&.fullscreen":{visibility:"visible",position:"unset",width:"100% !important",height:"100% !important",transform:"translate(0) !important"}}},gridFullscreen:{height:"100% !important",overflowY:"hidden","& .react-resizable-handle, & .react-grid-item":{visibility:"hidden"}}})));function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},w.apply(this,arguments)}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const T=e=>{let{views:t,layout:r,layoutOptions:a,onLayoutChanged:l,draggableHandle:o,LayoutItem:d,onRemove:f,onDrop:v,droppingItem:E,isDroppable:x,classes:T}=e;const S=(0,n.useRef)(),R=O(),[I,A]=(0,n.useState)(null),[C,D]=(0,n.useState)(0),{cols:L,rowHeight:P,margin:_}=a,j=(0,n.useMemo)((()=>(e=>(e||[]).map(m))(r)),[r]),M=(0,u.pipe)(y,b(["autosizing"],r),l),k=(0,n.useCallback)((e=>A((t=>t?null:e))),[]),F=null!==I,U=(0,n.useCallback)(((e,t)=>{let n=!1;const i=r.map((r=>{if(r.id===t&&e){const t=((e,t)=>{const{margin:r,rowHeight:a}=t;return Math.ceil((e+r[1])/(a+r[1]))})(e,a);if(r.height!==t)return n=!0,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){N(e,t,r[t])}))}return e}({},r,{minHeight:t,maxHeight:t,height:t})}return r}));n&&l(i)}),[r,a,l]);return i().createElement(i().Fragment,null,i().createElement(s.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>D(e)}),i().createElement(c(),{innerRef:S,layout:j,cols:L,draggableHandle:o,autoSize:!0,rowHeight:P,width:C,margin:_,onLayoutChange:M,isResizable:!F,isDraggable:!F,className:p()(R.gridLayout,{[R.gridFullscreen]:F}),onDrop:(e,t,r)=>{v&&v(y(e),h(t),r)},droppingItem:E,isDroppable:x},j.map((e=>{const a=I===e.i,l=(g(r,e.i)||{}).autosizing?{AutosizeComponent:(n=e.i,i().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>{U(t,n)}}))}:{};var n;return i().createElement(d,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:k,onRemove:f,className:p()({fullscreen:a},T.item),isFullscreen:a},l))}))))};T.defaultProps={layoutOptions:{cols:4,rowHeight:30,margin:[15,15]},onConfigChanged:u.identity,onLayoutChanged:u.identity,classes:{}},T.propTypes={views:l().array,layout:l().array,layoutOptions:l().object,onConfigChanged:l().func,onLayoutChanged:l().func,onDrop:l().func,onRemove:l().func,LayoutItem:l().elementType,draggableHandle:l().string,isDroppable:l().bool,droppingItem:l().object,classes:l().shape({item:l().string})};const S=(0,n.memo)(T)},21210:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(89810),l=r(4171),n=r(24328),i=r.n(n),o=r(52730),c=r(42639);const s=e=>{let{sourceType:t,className:r,classes:n}=e;const s=(0,o.useSelector)(a.ZP.selectors.getMetadata),{label:u,icon:d}=(0,l.PWK)(s,t);return i().createElement(c.Z,{className:r,avatarText:u[0],icon:d?(0,l.vPL)("https://s3.amazonaws.com/reltio.images/api",d):null,variant:"square",rootClasses:n})}},39878:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(24328),l=r.n(a),n=r(4171),i=r(17440);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},o.apply(this,arguments)}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=e=>{const t=t=>{let{data:r}=t,s=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(t,["data"]);const u=(0,a.useMemo)((()=>r&&(e=>{const t=(0,n.QK6)((0,i.pluck)("value",e),1);return e.map(((e,r)=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){c(e,t,r[t])}))}return e}({},e,{percent:t[r]})))})(r)),[r]);return l().createElement(e,o({data:u},s))};return t.displayName="WithPercents",t}},59383:(e,t,r)=>{r.d(t,{d:()=>l});const a=(0,r(79692).Z)({clickable:{cursor:"pointer"}}),l=e=>{const t=a();return e?t.clickable:void 0}},11326:(e,t,r)=>{r.d(t,{a:()=>l});var a=r(24328);const l=e=>{const[t,r]=(0,a.useState)(!1),[l,n]=(0,a.useState)({});return(0,a.useEffect)((()=>{e().then((e=>{n(e||{})})).then((e=>r(!0))).catch((e=>r(!0)))}),[]),{isLoaded:t,savedState:l}}},43129:(e,t,r)=>{r.d(t,{Z:()=>o});var a=r(24328),l=r.n(a),n=r(67358);const i=(0,r(79692).Z)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),o=()=>{const e=i();return l().createElement(n.Z,{color:"secondary",className:e.loader})}},65298:(e,t,r)=>{r.d(t,{Z:()=>c});var a=r(24328),l=r.n(a),n=r(1730),i=r(52388);const o=(0,r(79692).Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),c=e=>{let{id:t,children:r}=e;const a=o();return l().createElement(i.H.Provider,{value:t},l().createElement(n.Z,{className:a.view},r))}},52388:(e,t,r)=>{r.d(t,{H:()=>l});var a=r(24328);const l=r.n(a)().createContext(null);l.displayName="DashboardViewIdContext"},5260:(e,t,r)=>{let a;r.d(t,{o:()=>a}),function(e){e.INIT="init",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(a||(a={}))},26505:(e,t,r)=>{r.r(t),r.d(t,{default:()=>nn});var a=r(24328),l=r.n(a),n=r(52730),i=r(33016),o=r(36138),c=r(4171),s=r(17440),u=r(87918),d=r.n(u),p=r(11326),f=r(7907),m=r(79002),h=r(89810),y=r(5260),g=r(29627);const v=e=>{const[t,r]=(0,a.useState)(null),l=(0,g._)();return(0,a.useEffect)((()=>{const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:(0,s.pluck)("uri",e)}]);l((0,c.FK9)({query:(0,c.ECL)({activeness:"active",filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]})).then((e=>{let{type:t}=e;return r(t)})).catch((()=>r(null)))}),[e]),t};var b=r(90436),E=r(79692);const x=(0,E.Z)({root:{display:"flex",alignItems:"center",width:"100%",borderBottom:"solid 1px rgba(0, 0, 0, 0.12)"},title:{fontSize:"18px",flexShrink:0,padding:"0 20px"},content:{overflow:"hidden",flexGrow:1},updateButton:{height:36,width:36,padding:"0 20px"}}),O=e=>{let{title:t,children:r}=e;const a=x();return l().createElement("div",{className:a.root},l().createElement(b.Z,{variant:"body2",className:a.title},t),l().createElement("div",{className:a.content},r))};var w=r(17822);let N;!function(e){e.FILL_RATE_CHART="fillRate",e.UNIQUENESS_CHART="uniqueness",e.SUMMARY="summary",e.VALIDATION="validation",e.FREQUENCY="frequency",e.LENGTH="length",e.CROSSWALK="crosswalk",e.MONTH_DISTRIBUTION="monthDistribution",e.DAY_OF_WEEK_DISTRIBUTION="dayOfWeekDistribution",e.DAY_OF_MONTH_DISTRIBUTION="dayOfMonthDistribution",e.VALUE_DISTRIBUTION="valueDistribution",e.PATTERN="patternAnalysis",e.UNSUPPORTED="unsupported"}(N||(N={}));var T=r(73487),S=r(78223),R=r(39878);const I=(e,t,r)=>({attributes:(t||[]).map(((t,a)=>{let{filter:l,fieldName:n,values:i}=t;return{data:{uri:null==r?void 0:r.uri,entityTypeUri:e,fieldName:n},filter:l,id:`attribute_${a}`,operator:"and",values:i}})),entityTypes:[e],id:"group",operator:"or"});let A,C;!function(e){e.STRING="string",e.FLOAT="float",e.INTEGER="integer",e.BOOLEAN="boolean",e.DATE="date",e.SSN="SSN",e.UNKNOWN="unknown"}(A||(A={})),function(e){e.ENTITY_TYPE="entityType",e.ATTRIBUTE_TYPE="attributeType"}(C||(C={}));const D={[C.ATTRIBUTE_TYPE]:[{id:"FillRateView",type:N.FILL_RATE_CHART,title:"Fill rate"},{id:"UniquenessAnalysisView",type:N.UNIQUENESS_CHART,title:d().text("Uniqueness analysis")},{id:"SummaryView",type:N.SUMMARY,title:d().text("Summary")},{id:"ValidationView",type:N.VALIDATION,title:d().text("Profiles with invalid data")},{id:"FrequencyAnalysis",type:N.FREQUENCY,title:d().text("Frequency analysis")},{id:"LengthStatistics",type:N.LENGTH,title:d().text("Length statistics")},{id:"PatternAnalysis",type:N.PATTERN,title:d().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:N.CROSSWALK,title:d().text("Source system analysis")},{id:"MonthDistribution",type:N.MONTH_DISTRIBUTION,title:d().text("Month distribution")},{id:"DayOfWeekDistribution",type:N.DAY_OF_WEEK_DISTRIBUTION,title:d().text("Day of week distribution")},{id:"DayOfMonthDistribution",type:N.DAY_OF_MONTH_DISTRIBUTION,title:d().text("Day of month distribution")},{id:"ValueDistribution",type:N.VALUE_DISTRIBUTION,title:d().text("Value distribution")},{id:"UnsupportedDataType",type:N.UNSUPPORTED,title:d().text("Unsupported Data Type")}],[C.ENTITY_TYPE]:[{id:"SummaryView",type:N.SUMMARY,title:d().text("Summary")}]},L={[C.ATTRIBUTE_TYPE]:{default:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"LengthStatistics"}],[A.SSN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:2,height:19,id:"PatternAnalysis"}],[A.BOOLEAN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"FrequencyAnalysis"},{x:0,y:19,width:2,height:19,id:"CrosswalkAnalysis"}],[A.DATE]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"},{x:0,y:57,width:2,height:19,id:"MonthDistribution"},{x:2,y:57,width:2,height:19,id:"DayOfWeekDistribution"},{x:0,y:76,width:4,height:19,id:"DayOfMonthDistribution"}],[A.INTEGER]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}],[A.FLOAT]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"CrosswalkAnalysis"},{x:0,y:38,width:4,height:19,id:"ValueDistribution"}]}};function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){_(e,t,r[t])}))}return e}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const j=(0,s.map)((e=>P({},e,{localizedValue:d().number(e.value)}))),M=e=>(0,s.isNil)(e)?"":`(${e}%)`,k=e=>(0,s.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),F=(0,s.curry)(((e,t,r)=>({advanced:[I(t,r.map((0,s.when)((()=>(0,c.Lt4)(e.type)),(0,s.evolve)({values:(0,s.map)((0,c.mOr)(c.ZBU))}))),e)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}))),U=e=>t=>{let{detailedAttributeType:r,entityTypeUri:a,dvfs:l}=t;return(0,s.pipe)(e({fieldName:r.fieldName,entityTypeUri:a,dvfs:l}),F(r,a))},z=e=>{switch(e){case c.oS0.TYPE_BLOB:case c.oS0.TYPE_BLOG_URL:case c.oS0.TYPE_CIK_ID:case c.oS0.TYPE_ENTITY_ID:case c.oS0.TYPE_IMAGE_URL:case c.oS0.TYPE_STRING:case c.oS0.TYPE_TEXT:case c.oS0.TYPE_URL:return A.STRING;case c.oS0.TYPE_COUNT:case c.oS0.TYPE_DOLLAR:case c.oS0.TYPE_INT:case c.oS0.TYPE_LONG:return A.INTEGER;case c.oS0.TYPE_FLOAT:case c.oS0.TYPE_DOUBLE:case c.oS0.TYPE_NUMBER:return A.FLOAT;case c.oS0.TYPE_BOOLEAN:case c.oS0.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return A.BOOLEAN;case c.oS0.TYPE_ACTIVENESS_DATE:case c.oS0.TYPE_DATE:case c.oS0.TYPE_LOCAL_DATE:case c.oS0.TYPE_TIMESTAMP:return A.DATE;case c.oS0.TYPE_SSN:return A.SSN;default:return A.UNKNOWN}},B=e=>{let{percent:t,value:r}=e;return P({width:`${t}%`},r>0&&{minWidth:"3px"})},V=(0,s.pipe)((0,s.pluck)("percent"),(e=>Math.max(...e)));var H=r(71153),Z=r.n(H);const W=(0,E.Z)({wrapper:{width:"100%",display:"flex",justifyContent:"center",margin:"auto",flexWrap:"wrap",flexDirection:"column",marginBottom:2},item:{display:"flex",alignItems:"center",height:19},itemColor:{width:12,height:12,marginRight:9,flexShrink:0}}),Y=e=>{let{payload:t}=e;const r=W();return l().createElement("div",{className:Z()(r.wrapper)},t.map((e=>l().createElement("div",{key:e.id,className:r.item},l().createElement("div",{style:{background:e.color},className:r.itemColor}),e.value))))},G=(0,E.Z)({root:{display:"flex",flexDirection:"column",height:"100%"},stackedBar:{width:"100%",display:"flex",flexWrap:"nowrap",marginTop:"13px"},bar:{height:"24px",flexGrow:1,position:"relative",width:"50%",transition:"width 0.7s","&:hover":{"&:after":{content:'""',background:"rgba(0, 0, 0, 0.1)"}},"&:after":{position:"absolute",top:"-3px",bottom:"-5px",left:"-5px",right:"-5px",transition:"background 0.3s",zIndex:1,pointerEvents:"none"}},inactivePart:{background:"#EFEFEF"},tooltipTitle:{fontSize:"11px"},tooltipFillRate:{marginTop:"4px"},tooltip:{background:"#fff",filter:"drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)) drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2))",padding:"5px 8px"},legendWrapper:{position:"relative",flexGrow:1},legendLabel:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},legendValue:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.87)"},clickable:{cursor:"pointer"}});function q(){return q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},q.apply(this,arguments)}const $=(0,a.forwardRef)(((e,t)=>{let{className:r}=e,a=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["className"]);const n=G();return l().createElement("div",q({className:Z()(n.bar,r)},a,{ref:t}))}));$.displayName="Bar";const Q=$,K=(0,E.Z)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"}}),X=e=>{let{label:t,value:r}=e;const a=K();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:Z()(a.label,a.chartDataLabel)},t),r)},J=(0,E.Z)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),ee=e=>{let{data:t,title:r,DataRenderer:a=X}=e;const n=J();return l().createElement("div",{className:n.tooltipWrapper},r&&l().createElement("div",{className:n.title},r),t.map(((e,t)=>l().createElement("div",{key:t,className:n.row},l().createElement(a,e)))))};function te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){re(e,t,r[t])}))}return e}function re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ae=(0,S.Z)(Q),le=e=>{let{label:t,value:r,percent:a}=e;return[{label:t,value:`${d().number(r)} ${M(a)}`}]},ne=(0,R.Z)((e=>{let{data:t,colors:r,onItemClick:a}=e;const n=G(),i=a&&(e=>a(e)),o=!!a;return l().createElement("div",{className:n.root},l().createElement("div",{className:n.stackedBar},t.map(((e,t)=>l().createElement(ae,{className:o&&n.clickable,key:e.label,tooltipTitle:l().createElement(ee,{data:le(e)}),style:te({},B(e),{background:r[t]}),onClick:()=>i(e.group)})))),l().createElement("div",{className:n.legendWrapper},l().createElement(T.De,{layout:"vertical",align:"left",verticalAlign:"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%"},content:l().createElement(Y,null),payload:(t||[]).map(((e,t)=>{let{group:a,label:i,value:o,percent:s}=e;return{id:a,type:"square",color:r[t],value:l().createElement(l().Fragment,null,l().createElement("span",{className:n.legendLabel},i),l().createElement("span",{className:n.legendValue},`${(0,c.k7L)(o,999)} ${M(s)}`))}}))})))}));var ie=r(17998),oe=r(39475),ce=r(82726);const se=(0,E.Z)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:"5px",lineHeight:"24px"},infoIcon:{position:"relative"}}))),ue=e=>{let{title:t,infoTooltipTitle:r,children:a}=e;const n=se(!!a),i=!!r;return l().createElement(ie.Z,{title:t,className:n.root,classes:{title:n.title}},i&&l().createElement(oe.k,{icon:ce.Z,size:"XXS",tooltipTitle:r,className:n.infoIcon}),a)};var de=r(44443),pe=r(7882),fe=r(82068),me=r(43129),he=r(77277),ye=r(43266);let ge;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(ge||(ge={}));const ve=(0,E.Z)((e=>({container:e=>{let{height:t}=e;return{height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",margin:"0 auto",paddingBottom:t>239?"30px":0,boxSizing:"border-box"}},small:{"& $icon":{maxHeight:"88px"},"& $message":{fontSize:"12px"},"& $title":{fontSize:"13px",fontWeight:400,marginBottom:0},"& $refreshButton":{marginTop:"2px",padding:0}},medium:{"& $icon":{maxHeight:"190px",marginBottom:"24px"}},large:{"& $icon":{height:"256px",width:"256px",marginBottom:"24px"}},icon:e=>{let{height:t}=e;return{paddingTop:0,marginBottom:t>170?"16px":"4px"}},message:{padding:"0 24px",fontSize:"14px",textAlign:"center",whiteSpace:"pre-wrap"},title:{padding:"0 24px",fontSize:"20px",textAlign:"center",color:"rgba(0,0,0,0.87)",fontWeight:500,marginBottom:"8px"},refreshButton:{color:e.palette.primary.main,marginTop:"12px",padding:"6px 8px"},refreshIcon:{width:"24px",height:"24px"}}))),be=m.B9.ERROR,Ee=e=>{let{onRefresh:t,height:r,errorData:a={},variant:n=ge.SMALL}=e;const{Icon:i=be,message:o,title:c}=a,s=ve({height:r});return l().createElement("div",{className:Z()(s.container,s[`${n}`])},l().createElement(i,{className:s.icon}),c&&l().createElement(b.Z,{className:s.title},c),o&&l().createElement(b.Z,{className:s.message},o),!!t&&l().createElement(he.Z,{className:s.refreshButton,startIcon:l().createElement(ye.Z,{color:"primary",className:s.refreshIcon}),onClick:t,"data-reltio-id":"reltio-dq-dashboard-chart-refresh-button"},l().createElement(b.Z,{variant:"button"},d().text("Refresh"))))},xe=(0,E.Z)({container:e=>{let{height:t}=e;return{height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",margin:"0 auto",paddingBottom:t>239?"30px":0,boxSizing:"border-box"}},small:{"& $icon":{maxHeight:"88px"},"& $message":{fontSize:"12px"},"& $title":{fontSize:"13px",fontWeight:400,marginBottom:0}},medium:{"& $icon":{maxHeight:"190px",marginBottom:"24px"}},large:{"& $icon":{maxHeight:"256px",marginBottom:"24px"}},icon:e=>{let{height:t}=e;return{paddingTop:0,marginBottom:t>170?"16px":"4px"}},message:{padding:"0 24px",fontSize:"14px",textAlign:"center",whiteSpace:"pre-wrap"},title:{padding:"0 24px",fontSize:"20px",textAlign:"center",color:"rgba(0,0,0,0.87)",fontWeight:500,marginBottom:"8px"}}),Oe=m.B9.NO_DATA,we=e=>{let{height:t,data:r={},variant:a=ge.SMALL}=e;const{Icon:n=Oe,message:i,title:o}=r,c=xe({height:t});return l().createElement("div",{className:Z()(c.container,c[`${a}`])},l().createElement(n,{className:c.icon}),o&&l().createElement(b.Z,{className:c.title},o),i&&l().createElement(b.Z,{className:c.message},i))},Ne=(0,E.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}}))),Te=e=>{let{loadingState:t,onRefresh:r,children:a,data:n,className:i}=e;const o=Ne();return l().createElement(fe.Z,{className:Z()(o.viewContent,i)},l().createElement(de.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:i,height:o}=e;switch(t){case y.o.LOADED:return n&&0!==n.length?l().createElement(pe.Z,{error:l().createElement(Ee,{errorData:{message:d().text("Something went wrong")},height:o,variant:ge.SMALL})},a({data:n,width:i,height:o})):l().createElement(we,{height:o,data:{Icon:m.B9.NO_DATA,message:d().text("Go ahead and load some data. We’ll put it on the scales and let you know here if it measures up."),title:d().text("Give us something to go on!")},variant:ge.SMALL});case y.o.LOADING:return l().createElement(me.Z,null);case y.o.ERROR:return l().createElement(Ee,{errorData:{Icon:m.B9.ERROR,message:d().text("No need to fret - just refresh and it will work itself out."),title:d().text("Oops! We ran into a problem.")},height:o,onRefresh:r,variant:ge.SMALL});default:return l().createElement("div",null,"Loading...")}})))};var Se=r(1730);const Re=(0,E.Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),Ie=e=>{let{config:t,children:r}=e;const a=Re(),{type:n}=t;return l().createElement(Se.Z,{className:a.view,"data-reltio-id":`reltio-dq-dashboard-chart-${n}`},r)},Ae=e=>{let{label:t,value:r}=e;const a=K();return l().createElement(l().Fragment,null,t&&l().createElement("span",{className:Z()(a.label,a.infoDataLabel)},t),r)},Ce={[c.s9T.MISSING]:"#CE5C00",[c.s9T.EXISTS]:"#C4CE00"},De=(0,s.map)((e=>{let{group:t}=e;return Ce[t]||(0,c.f4_)(t)})),Le=e=>({[c.s9T.MISSING]:d().text("Missing"),[c.s9T.EXISTS]:d().text("Exists")}[e]||e),Pe=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,r]=e;return{label:Le(t),group:t,value:r}})),(0,s.sortBy)((e=>Object.values(c.s9T).indexOf(e.group))),j),_e=e=>Object.keys(e).reduce(((t,r)=>(t[r]=Pe(e[r]),t)),{}),je=(0,s.propOr)({},"fillRate"),Me=(0,s.pipe)(je,Pe,(0,s.when)(k,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,De])),ke=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:t===c.s9T.EXISTS?c.j5E.EXISTS:c.j5E.MISSING_VALUE,fieldName:r}]})),Fe=U(ke),Ue=l().createContext(null);Ue.displayName="ChartsDataContext";const ze=e=>{const{data:t,state:r,reload:l}=(0,a.useContext)(Ue);return{data:(0,a.useMemo)((()=>e(t)),[t,e]),state:r,reload:l}},Be=l().createContext(null);Be.displayName="DetailedAttributeTypeContext";const Ve=l().createContext(null);Ve.displayName="EntityTypeContext";const He=e=>{const t=(0,n.useDispatch)(),r=(0,a.useContext)(Be),l=(0,a.useContext)(Ve);return(0,s.pipe)(e({detailedAttributeType:r,entityTypeUri:l.uri}),h.ui.actions.openSearch,t)},Ze=e=>{let{config:t}=e;const{title:r}=t,{data:a,state:n,reload:i}=ze(Me),{chartData:o,colors:c}=a,s=He(Fe),u=l().createElement(ee,{title:d().text("Fill rate"),data:[{label:`${d().text("Exists")}:`,value:d().text("Profiles with data")},{label:`${d().text("Missing")}:`,value:d().text("Profiles without data")}],DataRenderer:Ae});return l().createElement(Ie,{config:t},l().createElement(ue,{title:r,infoTooltipTitle:u}),l().createElement(Te,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(ne,{data:t,colors:c,onItemClick:s})})))},We={[c.dC6.UNIQUE]:"#4BAFFF",[c.dC6.NOT_UNIQUE]:"#C34980"},Ye=(0,s.map)((e=>{let{group:t}=e;return We[t]||(0,c.f4_)(t)})),Ge=e=>({[c.dC6.UNIQUE]:d().text("Unique"),[c.dC6.NOT_UNIQUE]:d().text("Not unique")}[e]||e),qe=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,r]=e;return{label:Ge(t),group:t,value:r}})),(0,s.sortBy)((e=>Object.values(c.dC6).indexOf(e.group))),j),$e=(0,s.propOr)({},"uniqueness"),Qe=(0,s.pipe)($e,qe,(0,s.when)(k,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,Ye])),Ke=e=>{let{config:t}=e;const{title:r}=t,{data:a,state:n,reload:i}=ze(Qe),{chartData:o,colors:c}=a,s=l().createElement(ee,{title:d().text("Uniqueness analysis"),data:[{label:`${d().text("Unique")}:`,value:d().text("Number of values that only appear once and have no duplicates")},{label:`${d().text("Not unique")}:`,value:d().text("Number of values that have at least one duplicate in the list")}],DataRenderer:Ae});return l().createElement(Ie,{config:t},l().createElement(ue,{title:r,infoTooltipTitle:s}),l().createElement(Te,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return l().createElement(ne,{data:t,colors:c})})))};var Xe=r(4614),Je=r(80030),et=r(7089);const tt=(e,t)=>(e||[]).some((0,s.propEq)("attribute",t)),rt=e=>[c.oS0.TYPE_FLOAT,c.oS0.TYPE_DOUBLE,c.oS0.TYPE_NUMBER].includes(e);let at;function lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){nt(e,t,r[t])}))}return e}function nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}!function(e){e.INCLUDED_IN_MATCHING="includedInMatching",e.CONTAIN_VF="containVF",e.REQUIRED="required",e.REFERENCE="reference",e.RDM_LOOKUP="RDMLookup"}(at||(at={}));const it=(0,s.curry)(((e,t)=>e.some((e=>t.details[e.value])))),ot=(0,s.curry)(((e,t)=>{var r;return 0===e.length||it(e,t)||(null===(r=t.children)||void 0===r?void 0:r.some((t=>ot(e,t))))})),ct=(0,s.curry)(((e,t)=>{var r;const a=e[t.fieldName];return null==a||null===(r=a.find((0,s.propEq)("group",c.s9T.EXISTS)))||void 0===r?void 0:r.value})),st=(0,s.curry)(((e,t)=>{var r;const a=e[t.fieldName];return!(null!=a&&null!==(r=a.find((0,s.propEq)("group",c.s9T.EXISTS)))&&void 0!==r&&r.value)})),ut=(0,s.curry)((function(e,t){var r;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const l=t.fieldName||(0,c.Tde)(t.uri,a);return st(e,lt({},t,{fieldName:l}))||(null===(r=t.children)||void 0===r?void 0:r.some((r=>ut(e,r,a.concat({name:t.name,label:t.label})))))})),dt=(0,s.curry)(((e,t)=>t.reduce(((t,r)=>{const a=((e,t)=>{var r;return null===(r=e.label||e.name)||void 0===r?void 0:r.toLowerCase().includes(t.toLowerCase())})(r,e),l=a?r.children||[]:dt(e,r.children||[]);return(a||l.length)&&t.push(Object.assign({},r,l.length&&{children:l})),t}),[])));function pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){ft(e,t,r[t])}))}return e}function ft(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const mt=e=>{let{attrTypeItem:t,dvf:r=[],matchAttributes:a=[]}=e;const{uri:l,required:n,isAttributeReference:i}=t;return{[at.INCLUDED_IN_MATCHING]:a.includes(l),[at.CONTAIN_VF]:tt(r,l),[at.REQUIRED]:!!n,[at.REFERENCE]:i,[at.RDM_LOOKUP]:(0,c.lS4)(t)}},ht=e=>({[at.INCLUDED_IN_MATCHING]:d().text("Included in match rule"),[at.CONTAIN_VF]:d().text("Has validation functions"),[at.REQUIRED]:d().text("Required"),[at.REFERENCE]:d().text("Reference attribute"),[at.RDM_LOOKUP]:d().text("RDM")}[e]||e),yt=(0,s.curry)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return(0,s.pipe)((0,s.chain)((e=>{const l=e.children?yt(e.children,t.concat({name:e.name,label:e.label}),r||(0,c.YkG)(e),a+1):[];return[{attributeItem:pt({},e,{fieldName:(0,c.Tde)(e.uri,t),isAttributeReference:(0,c.YkG)(e)||r}),level:a},...l]})))(e)}));function gt(){return gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},gt.apply(this,arguments)}const vt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",gt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#6663F6"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 14.4h2.411c.016-.205.047-.405.093-.6H8.4v-1.2h3.012c.137-.215.296-.416.472-.6H8.4v-1.2h6v.011a3.896 3.896 0 011.8.287V8.4c0-.66-.54-1.2-1.2-1.2H7.8c-.66 0-1.2.54-1.2 1.2v7.8c0 .66.54 1.2 1.2 1.2h4.083a3.892 3.892 0 01-.979-1.8H8.4v-1.2zm6-4.2h-6V9h6v1.2zm2.58 5.934L18.852 18l-.852.852-1.872-1.872a2.66 2.66 0 01-1.434.42A2.695 2.695 0 0112 14.7c0-1.494 1.206-2.7 2.7-2.7 1.494 0 2.7 1.206 2.7 2.7 0 .528-.156 1.014-.42 1.434zm-2.28.066a1.5 1.5 0 10-.001-3.001A1.5 1.5 0 0014.7 16.2z",fill:"#fff"}))};function bt(){return bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},bt.apply(this,arguments)}const Et=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",bt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#1DACF5"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4 9.6H9.3L12 6.9l2.7 2.7h-2.1v3.846l-3.6 3.6-.846-.846 3.246-3.246V9.6zm4.446 6.6l-.846.846L12.954 15l.846-.846 2.046 2.046z",fill:"#fff"}))};function xt(){return xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},xt.apply(this,arguments)}const Ot=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",xt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#7F22FD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 9v1.2h1.2V9H8.4zm0 2.4v1.2h1.2v-1.2H8.4zm0 2.4V15h1.2v-1.2H8.4zM10.8 9v1.2h4.8V9h-4.8zm0 2.4v1.2h4.8v-1.2h-4.8zm0 2.4V15h4.8v-1.2h-4.8zm6-6v8.4H7.2V7.8h9.6zm1.2 9V6.6H6V17.4h12v-.6z",fill:"#fff"}))};function wt(){return wt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},wt.apply(this,arguments)}const Nt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",wt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#4B31E9"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 15.6h1.8V15a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-3V9.6H8.4a.6.6 0 01-.6-.6V6.6a.6.6 0 01.6-.6H12a.6.6 0 01.6.6V9a.6.6 0 01-.6.6h-1.2v1.8h1.8v-.6a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-1.8v3z",fill:"#fff"}))};function Tt(){return Tt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Tt.apply(this,arguments)}const St=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Tt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#80D2FC"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6c-3.312 0-6 2.688-6 6s2.688 6 6 6 6-2.688 6-6-2.688-6-6-6zm-.6 4.96V9h1.2v1.96l1.698-.98.6 1.04L13.2 12l1.698.98-.6 1.04-1.698-.98V15h-1.2v-1.96l-1.698.98-.6-1.04L10.8 12l-1.698-.98.6-1.04 1.698.98zM7.2 12c0 2.646 2.154 4.8 4.8 4.8s4.8-2.154 4.8-4.8-2.154-4.8-4.8-4.8A4.806 4.806 0 007.2 12z",fill:"#fff"}))},Rt=(0,E.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),It={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let At;!function(e){e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal"}(At||(At={}));const Ct=e=>{let{detailType:t,size:r=It.NORMAL,variant:a=At.NORMAL}=e;const n=Rt(r),i=Z()(n.icon,n[a]);switch(t){case at.RDM_LOOKUP:return l().createElement(Ot,{className:i});case at.CONTAIN_VF:return l().createElement(vt,{className:i});case at.INCLUDED_IN_MATCHING:return l().createElement(Et,{className:i});case at.REFERENCE:return l().createElement(Nt,{className:i});case at.REQUIRED:return l().createElement(St,{className:i});default:return null}},Dt=(0,E.Z)({root:{height:"24px",maxWidth:"calc(100% - 8px)",margin:"0 4px 4px 0",borderRadius:"12px"},label:{fontSize:"12px",paddingLeft:"8px",paddingRight:"9px"},badQuality:{backgroundColor:"rgba(255, 23, 68, 0.12)"}});function Lt(){return Lt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Lt.apply(this,arguments)}function Pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){_t(e,t,r[t])}))}return e}function _t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const jt=e=>{let{detailType:t,classes:r}=e,n=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["detailType","classes"]);const i=Dt(),{data:o,state:s}=(0,a.useContext)(Ue);let u=At.NORMAL;const d=s===y.o.LOADING,p=(e=>{var t;return 0===(null==e||null===(t=e.fillRate)||void 0===t?void 0:t[c.s9T.MISSING])})(o);return t===at.REQUIRED&&(d&&(u=At.LOADING),d||p||(u=At.BAD_QUALITY)),l().createElement(et.Z,Lt({classes:Pt({root:Z()(i.root,{[i.badQuality]:t===at.REQUIRED&&!d&&s!==y.o.INIT&&!p}),label:i.label},r),label:ht(t),icon:l().createElement(Ct,{detailType:t,variant:u})},n))},Mt=(0,E.Z)({root:{display:"flex",flexWrap:"wrap",flexGrow:1}}),kt=e=>{let{details:t,chipClasses:r={}}=e;const a=Mt();return l().createElement("div",{className:a.root},Object.entries(t||{}).filter((e=>{let[,t]=e;return t})).map((e=>{let[t]=e;return l().createElement(jt,{key:t,detailType:t,classes:r})})))},Ft=(0,E.Z)({header:{display:"flex",paddingBottom:"16px"},info:{display:"flex",flexDirection:"column","&:not(:last-child)":{borderRight:"1px solid rgba(0,0,0,0.12)"}},entitySummary:{"&:not(:last-child)":{paddingRight:"16px",marginRight:"16px"}},attributeTypeSummary:{"&:not(:last-child)":{paddingRight:"24px",marginRight:"24px"}},infoTitle:{color:"rgba(0,0,0,0.54)",fontSize:"12px",lineHeight:"16px"},infoContent:{fontSize:"30px",lineHeight:"35px",padding:"4px 0 0",display:"flex",alignItems:"center"},attributeTypeIconWrapper:{width:"32px",height:"33px",background:"rgba(0, 0, 0, 0.05)",borderRadius:"4px",position:"relative",marginRight:"12px",flexShrink:0,"& svg":{position:"absolute",transform:"translate(-50%, -50%)",top:"50%",left:"50%"}},totalLoading:{padding:"4px 8px"}}),Ut=e=>{let{title:t,children:r,className:a}=e;const n=Ft();return l().createElement("div",{className:Z()(n.info,a)},l().createElement("div",{className:n.infoTitle},t),l().createElement("div",{className:n.infoContent},r))};function zt(){return zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},zt.apply(this,arguments)}const Bt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",zt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg1279746712a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"15",height:"8"},l().createElement("path",{d:"M11.667 4H5C2.793 4 1 5.793 1 8s1.793 4 4 4h6.667c2.206 0 4-1.793 4-4s-1.794-4-4-4zm0 6.667H5a2.666 2.666 0 110-5.334h6.667a2.666 2.666 0 110 5.334zm0-4.667c-1.107 0-2 .893-2 2s.893 2 2 2c1.106 0 2-.893 2-2s-.894-2-2-2z",fill:"#000"})),l().createElement("g",{mask:"url(#svg1279746712a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Vt(){return Vt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Vt.apply(this,arguments)}const Ht=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Vt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg208732808a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"14"},l().createElement("path",{d:"M7.992 1.333A6.663 6.663 0 001.332 8c0 3.68 2.98 6.667 6.66 6.667A6.67 6.67 0 0014.665 8a6.67 6.67 0 00-6.673-6.667zm.007 12A5.332 5.332 0 012.665 8 5.332 5.332 0 018 2.667 5.332 5.332 0 0113.332 8a5.332 5.332 0 01-5.333 5.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z",fill:"#000"})),l().createElement("g",{mask:"url(#svg208732808a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Zt(){return Zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Zt.apply(this,arguments)}const Wt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Zt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg1638934380a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},l().createElement("path",{d:"M5.948 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2zM7.947 12v-1.1h1.1V12h-1.1zM13.65 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2z",fill:"#000"})),l().createElement("g",{mask:"url(#svg1638934380a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Yt(){return Yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Yt.apply(this,arguments)}const Gt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Yt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("path",{d:"M2.11 12v-.825h1.331V5.169L2 5.741v-.89L3.331 4.3h1.045v6.875h1.089V12H2.11zM5.968 11.032l1.65-2.508c.242-.367.403-.62.484-.759.08-.147.136-.29.165-.429.03-.14.044-.341.044-.605v-.77a.778.778 0 00-.253-.583c-.169-.161-.389-.242-.66-.242h-1.21V4.3h1.1c.638 0 1.126.158 1.463.473.345.308.517.774.517 1.397v.462c0 .367-.018.645-.055.836-.037.19-.103.37-.198.539-.088.169-.264.455-.528.858l-1.518 2.299h2.519V12h-3.52v-.968zM13.544 10.262c0 .609-.147 1.052-.44 1.331-.293.271-.77.407-1.43.407h-1.298v-.825h1.397c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.239c0-.242-.073-.433-.22-.572-.147-.147-.341-.22-.583-.22h-1.067v-.825h.957a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.902c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187h-1.298V4.3h1.166c.623 0 1.093.14 1.408.418.323.271.484.704.484 1.298v.693c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.924z",fill:"#000",fillOpacity:".541"}))};function qt(){return qt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},qt.apply(this,arguments)}const $t=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",qt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg924767730a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},l().createElement("path",{d:"M5.463 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H2.03v-.836h1.562c.271 0 .491-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.059-.396-.176-.528-.11-.14-.279-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473h1.463v.836H3.714c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM9.136 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H5.704v-.836h1.562c.27 0 .49-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.06-.396-.176-.528-.11-.14-.28-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473H8.96v.836H7.387c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM12.255 12l-1.683-6.886V12H9.68V4.3h1.562l1.694 6.886V4.3h.89V12h-1.572z",fill:"#000"})),l().createElement("g",{mask:"url(#svg924767730a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Qt(){return Qt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Qt.apply(this,arguments)}const Kt=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Qt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("mask",{id:"svg3578961193a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},l().createElement("path",{d:"M5.345 12l-.418-1.947H2.782L2.353 12h-.979l1.86-7.7h1.264L6.324 12h-.979zM3.85 5.026l-.89 4.202H4.75L3.85 5.026zM10.494 10.262c0 .63-.146 1.078-.44 1.342-.286.264-.763.396-1.43.396h-2.09V4.3h1.958c.653 0 1.13.132 1.43.396.308.264.462.704.462 1.32v.627c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.99zM9.427 5.917c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187H7.491v2.431h1.133a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.836zm.11 3.256c0-.242-.073-.433-.22-.572-.147-.147-.34-.22-.583-.22H7.491v2.794h1.232c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.173zM13.119 12c-.638 0-1.13-.154-1.474-.462-.337-.315-.506-.785-.506-1.408V6.17c0-.623.169-1.089.506-1.397.345-.315.836-.473 1.474-.473h1.342v.836h-1.452c-.271 0-.491.08-.66.242a.778.778 0 00-.253.583v4.378c0 .227.084.422.253.583.169.161.389.242.66.242h1.452V12h-1.342z",fill:"#000"})),l().createElement("g",{mask:"url(#svg3578961193a)"},l().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))},Xt=(0,E.Z)({icon:e=>{let{width:t,height:r}=e;return{width:t,height:r}}}),Jt={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},er=e=>{let{type:t,size:r=Jt.SMALL}=e;const a=Xt(r);switch(z(t)){case A.STRING:return l().createElement(Kt,{className:a.icon});case A.FLOAT:return l().createElement(Wt,{className:a.icon});case A.INTEGER:return l().createElement(Gt,{className:a.icon});case A.BOOLEAN:return l().createElement(Bt,{className:a.icon});case A.DATE:return l().createElement(Ht,{className:a.icon});case A.SSN:return l().createElement($t,{className:a.icon});default:return l().createElement(Kt,{className:a.icon})}},tr=e=>{let{detailedAttributeType:t}=e;const r=Ft(),n=(e=>{const[t,r]=(0,a.useState)(null),l=(0,a.useContext)(Ve),n=(0,g._)();return(0,a.useEffect)((()=>{if(l.uri&&e){const t={filter:c.j5E.EXISTS,fieldName:e},a={filter:c.j5E.EQUALS,fieldName:"type",values:[l.uri]};r(null),n((0,c.j_Q)([t,a])).then((e=>{let{total:t}=e;return r(t)})).catch(console.error)}}),[l.uri,e]),t})(t.fieldName),i=null===n?l().createElement(Xe.Z,{size:"24",className:r.totalLoading}):(0,c.k7L)(n);return l().createElement("div",null,l().createElement("div",{className:r.header},l().createElement(Ut,{title:d().text("Profiles"),className:r.attributeTypeSummary},l().createElement(Je.ZP,{title:l().createElement(ee,{data:[{label:d().text("Entities with exists attribute"),value:d().number(n)}]})},l().createElement("div",null,i))),l().createElement(Ut,{title:d().text("Data type"),className:r.attributeTypeSummary},(o=t.type,l().createElement(l().Fragment,null,l().createElement("div",{className:r.attributeTypeIconWrapper},l().createElement(er,{type:o,size:Jt.NORMAL})),d().text(o))))),l().createElement(kt,{details:t.details}));var o},rr=e=>{let{entityType:t}=e;const{data:r,state:i}=(0,a.useContext)(Ue),o=((e,t)=>{const r=t.attributes||[],a=t=>t.filter(c.Uty).filter((0,s.either)((0,s.prop)("label"),(0,s.prop)("name"))).reduce(((t,r)=>{const l=(0,c.EUG)(e,r);return null!=l&&l.length?[...t,r,...a(l)]:[...t,r]}),[]);return a(r).length})((0,n.useSelector)(h.ZP.selectors.getMetadata),t),{activeProfiles:u=0,inactiveProfiles:p=0,sourceSystems:f=0}=(null==r?void 0:r.summary)||{},m=e=>i===y.o.LOADING?l().createElement(Xe.Z,{size:"24",className:g.totalLoading}):d().number(e),g=Ft();return l().createElement("div",{className:g.header},l().createElement(Ut,{title:d().text("Active profiles"),className:g.entitySummary},m(u)),l().createElement(Ut,{title:d().text("Inactive profiles"),className:g.entitySummary},m(p)),l().createElement(Ut,{title:d().text("Attributes"),className:g.entitySummary},d().number(o)),l().createElement(Ut,{title:d().text("Source systems"),className:g.entitySummary},m(f)))},ar=l().createContext(null);ar.displayName="DataLevelContext";const lr=(0,E.Z)({content:{padding:"0 16px",marginTop:"4px"}}),nr=e=>{let{config:t}=e;const r=lr(),n=(0,a.useContext)(Be),i=(0,a.useContext)(ar),o=(0,a.useContext)(Ve),s=i===C.ATTRIBUTE_TYPE,u=s?(0,c.idV)(n.label):(0,c.idV)(o.label);return l().createElement(Ie,{config:t},l().createElement(ue,{title:u}),l().createElement(fe.Z,{className:r.content},s?l().createElement(tr,{detailedAttributeType:n}):l().createElement(rr,{entityType:o})))};var ir=r(65298);const or=(0,E.Z)({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}});function cr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){sr(e,t,r[t])}))}return e}function sr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ur=m.B9.ERROR,dr=e=>{let{config:t,errorData:r,titleChildren:a,infoTooltipTitle:n,onRefresh:i}=e;const{id:o,title:c}=t,s=or();return l().createElement(ir.Z,{id:o},l().createElement(ue,{title:c,infoTooltipTitle:n},a),l().createElement(fe.Z,{className:s.viewContent},l().createElement(de.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},l().createElement(Ee,{errorData:cr({Icon:ur},r),onRefresh:i,variant:ge.SMALL}))))},pr=e=>{let{keyword:t,entityTypeUri:r}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[I(r)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}},fr=e=>{let{fieldName:t,value:r,entityTypeUri:a}=e;return pr({keyword:`${c.j5E.EQUALS}(${t}, ${r})`,entityTypeUri:a})};function mr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hr=e=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),j),yr=e=>{let{sortDirection:t,sortField:r}=e;return(e,a)=>"asc"===t?e[r]>a[r]?1:-1:e[r]<a[r]?1:-1},gr=(0,s.curry)(((e,t)=>t.filter((t=>e.find((0,s.propEq)("uri",t.group)))).map((t=>{const r=e.find((0,s.propEq)("uri",t.group)).name;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){mr(e,t,r[t])}))}return e}({},t,{label:r,group:r})})))),vr=hr("frequency"),br=hr("pattern"),Er=e=>[{filter:c.j5E.EQUALS,values:[[e]],fieldName:"analyticsAttributes.AttributeValidations.FunctionName"}],xr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}`,value:t,entityTypeUri:a})})),Or=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.ON,values:[t],fieldName:r}]})),wr=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:r}]})),Nr=e=>{let{detailedAttributeType:t,entityTypeUri:r}=e;return(0,s.cond)([[c.j5n,(0,s.always)(xr)],[c.Lt4,(0,s.always)(U(Or))],[s.identity,(0,s.always)(U(wr))]])(t.type)({detailedAttributeType:t,entityTypeUri:r,dvfs:[]})},Tr=U((()=>Er)),Sr=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:a})}));var Rr=r(79573),Ir=r(45108),Ar=r(92332),Cr=r(83088);const Dr=(0,s.pipe)((0,s.split)("|"),(e=>{let[t,r]=e;return{label:t,percent:r}})),Lr={content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"},Pr=(0,E.Z)((e=>({colorBarContainer:{position:"relative",width:"100%",marginLeft:"16px",padding:"5px 0 6px",height:"100%",boxSizing:"border-box","&>span":{display:"block"},"&>span>div":{opacity:1,zIndex:1}},numberWhithPercent:{fontSize:"13px",lineHeight:"15px",fontWeight:"normal",color:e.palette.text.primary,flexShrink:0,width:"90px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},numberContainer:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 10px 0 16px",height:"100%"},bar:{borderRadius:"0 !important",minHeight:"16px !important",position:"initial !important","&:hover":{"&:after":{background:"rgba(0, 0, 0, 0.1)"}},"&:after":{content:'""',position:"absolute",top:"2px",left:"-3px",right:"-2px",bottom:"3px",transition:"background 0.3s"}},tooltipTitle:{color:"rgba(255, 255, 255, 0.6)"},headCell:{height:"100%",lineHeight:"47px","&>div":{padding:"0 10px 0 16px",display:"flex"},"&>div>span":{width:"100%",flexGrow:1,justifyContent:e=>e?"flex-start":"flex-end",flexDirection:e=>e?"row":"row-reverse",marginLeft:e=>e&&"auto!important"}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"47px",whiteSpace:"nowrap",overflow:"hidden","&:after":Lr},labelPercantageWrapper:{display:"flex",flexGrow:1},labelWrapper:{minWidth:"90px",position:"relative"},percentsWrapper:{marginLeft:"11px",display:"flex",width:"100%"},percentLabel:{color:e.palette.text.secondary,fontSize:"12px","&:first-child":{flexGrow:1}},attribute:{color:e.palette.text.primary,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",whiteSpace:"pre",overflow:"hidden",display:"flex",alignItems:"center",height:"100%",padding:"0 16px","&:after":Lr},tooltipValue:{whiteSpace:"pre-wrap"}})));function _r(){return _r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_r.apply(this,arguments)}function jr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Mr(e,t,r[t])}))}return e}function Mr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kr=e=>{let{className:t,headCellData:r,headIndex:a}=e,n=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["className","headCellData","headIndex"]);const i=Pr(!a),{label:o,percent:c}=Dr(r.label),s=!!c,u=l().createElement(Cr.C,{value:o},l().createElement("div",{className:i.headLabel},o));return l().createElement("div",{className:Z()(i.headCell,t)},l().createElement(Ar.default,_r({},n,{headCellData:jr({},r,{label:s?l().createElement("div",{className:i.labelPercantageWrapper},l().createElement("div",{className:i.labelWrapper},u),l().createElement("div",{className:i.percentsWrapper},l().createElement("span",{className:i.percentLabel},"0%"),l().createElement("span",{className:i.percentLabel},c,"%"))):u})})))};var Fr=r(59383),Ur=r(30488);const zr=(0,Ur.Z)(((e,t)=>{let{onItemClick:r}=e,{rowValue:{group:a}}=t;return{onClick:r&&(()=>{r(a)})}}))((e=>{let{value:t="",columnData:r,rowValue:a,onClick:n}=e;const{attributeCellClassName:i,LabelRenderer:o}=r,s=Pr(),u=(0,Fr.d)(n),d=l().createElement("div",{className:s.tooltipValue},t),p=!!o;return l().createElement(Cr.C,{value:d},l().createElement("div",{className:Z()(s.attribute,u,i),onClick:n},p?l().createElement(o,{chartData:a}):c.P6Y.strings.removeLineBreaks(t)))}));var Br=r(89902);const Vr=(0,S.Z)((e=>{let{value:t,maxValue:r,className:a}=e;return l().createElement(Br.Z,{width:t,maxWidth:r,className:a})})),Hr=(0,Ur.Z)(((e,t)=>{let{onItemClick:r,valueHeader:a,labelHeader:l}=e,{rowValue:{group:n}}=t;return{onClick:r&&(()=>{r(n)}),valueHeader:a,labelHeader:l}}))((e=>{let{value:t,columnData:{maxValue:r},rowValue:{percent:a,label:n},labelHeader:i,valueHeader:o,onClick:u}=e;const p=Pr(),f=(0,Fr.d)(u),m=l().createElement("span",{className:p.tooltipValue},n),h=0===t?"0":`${(0,c.k7L)(t,999)} ${M(a)}`,y=l().createElement(ee,{data:[{label:i,value:m},{label:o,value:`${d().number(t)} ${M(a)}`}]});return l().createElement("div",{className:Z()(p.numberContainer,f),onClick:u},l().createElement(b.Z,{className:p.numberWhithPercent},h),!(0,s.isNil)(r)&&l().createElement("div",{className:p.colorBarContainer},l().createElement(Vr,{value:t,maxValue:r,tooltipTitle:y,className:p.bar,showForDisabled:!0})))})),Zr=(0,E.Z)({tableContainer:e=>{let{width:t,height:r}=e;return{height:r,width:t,display:"flex",flexDirection:"column"}},cellBorder:{borderLeft:"none",borderRight:"none!important"}});function Wr(){return Wr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Wr.apply(this,arguments)}const Yr=e=>{let{width:t,height:r,data:n,options:i={},basicTableRef:o,onItemClick:c,labelCellClassName:s}=e,u=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["width","height","data","options","basicTableRef","onItemClick","labelCellClassName"]);const p=Zr({width:t,height:r}),{headers:[f,m]=[],showCountLabels:h=!1,showValues:y=!0,sortable:g=!1,LabelRenderer:v}=i,b=(0,a.useMemo)((()=>({cellBorder:p.cellBorder})),[p]),E=(0,a.useMemo)((()=>Math.max(...n.map((e=>e.value)))),[n]),x=(0,a.useMemo)((()=>{const e=V(n),t=m||d().text("No of Profiles");return e?t.concat(`|${e}`):t}),[n,m]),O=h?`${f} (${n.length})`:f,w=(0,a.useMemo)((()=>[{id:"label",label:O,resizable:!1,headCellRenderer:kr,attributeCellClassName:s,rowCellValueRenderer:zr,initialWidth:.4*t,sortable:g,LabelRenderer:v},...y?[{id:"value",label:x,resizable:!1,headCellRenderer:kr,rowCellValueRenderer:Hr,maxValue:E,initialWidth:.6*t,sortable:g}]:[]]),[x,E,t,f,y]),N=(0,a.useMemo)((()=>({onItemClick:c,labelHeader:f,valueHeader:m})),[c,f,m]);return l().createElement("div",{className:p.tableContainer},l().createElement(Ir.Z,Wr({columnsData:w,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:b,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:N},u)))},Gr=(0,E.Z)((()=>({layoutItemContent:{padding:"0 0 10px"}}))),qr=(0,R.Z)((e=>{let{config:t,data:r,title:n,headers:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,titleChildren:u,state:d,onRefresh:p,labelCellClassName:f,showCountLabels:m,LabelRenderer:h}=e;const y=Gr(),[g,v]=(0,a.useState)("desc"),[b,E]=(0,a.useState)("value"),x=(0,a.useCallback)(((e,t)=>c?c({sortDirection:g,sortField:b})(e,t):yr({sortDirection:g,sortField:b})(e,t)),[g,b]),O=e=>{v((()=>b===e?(0,Rr.Dh)(g):g)),E(e)},w=(0,a.useMemo)((()=>[...r.sort(x)]),[x,r]);return l().createElement("div",null,l().createElement(Ie,{config:t},l().createElement(ue,{title:n,infoTooltipTitle:o},u),l().createElement(Te,{className:y.layoutItemContent,data:w,loadingState:d,onRefresh:p},(e=>{let{data:t,width:r=0,height:a=0}=e;return l().createElement(Yr,{data:t,width:r,height:a,options:{headers:i,sortable:!!c,showCountLabels:m,LabelRenderer:h},sorting:{field:b,order:g},onSort:O,onItemClick:s,labelCellClassName:f})}))))})),$r=l().createContext(null);$r.displayName="DVFContext";var Qr=r(86689);function Kr(){return Kr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Kr.apply(this,arguments)}const Xr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Kr({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg1830866123a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg1830866123a)"},l().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},l().createElement("path",{d:"M12.375 18.688a7 7 0 017-7h75.742a7 7 0 017 7v49.02a7 7 0 01-7 7H19.375a7 7 0 01-7-7v-49.02z"}),l().createElement("path",{opacity:".4",d:"M16.844 22.813a7 7 0 017-7h75.741a7 7 0 017 7v49.02a7 7 0 01-7 7H23.844a7 7 0 01-7-7v-49.02z"})),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"29.318",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 31.381a3.562 3.562 0 013.552-3.563 3.562 3.562 0 013.552 3.563 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 29.052c0-.726.588-1.313 1.313-1.313h23.983a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 33.553c0-.518.42-.938.938-.938h43.37a.938.938 0 010 1.876h-43.37a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 36.554c0-.31.252-.563.563-.563h13.993a.563.563 0 110 1.126H31.26a.563.563 0 01-.563-.563z",fill:"#B1AABD"}),l().createElement("rect",{opacity:".5",x:"19.854",y:"17.689",width:"29.914",height:"4.126",rx:"2.063",fill:"#645F6D"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"43.573",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("rect",{x:"19.854",y:"42.072",width:"7.105",height:"7.127",rx:"3.552",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 43.306c0-.725.588-1.313 1.313-1.313h28.41a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 47.808c0-.518.42-.938.938-.938h48.23a.938.938 0 110 1.876h-48.23a.938.938 0 01-.938-.938z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 50.809c0-.31.252-.563.563-.563h38.884a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),l().createElement("ellipse",{opacity:".5",cx:"87.908",cy:"57.828",rx:"1.496",ry:"1.5",fill:"#6DBCFF"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.854 59.891a3.562 3.562 0 013.552-3.564 3.562 3.562 0 013.552 3.564 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z",fill:"#E3EBF4"}),l().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 57.561c0-.725.588-1.313 1.313-1.313h38.132a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z",fill:"#B1AABD"}),l().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 62.063c0-.518.42-.938.938-.938h31.778a.938.938 0 110 1.875H31.635a.938.938 0 01-.938-.937z",fill:"#B1AABD"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.697 65.064c0-.311.252-.563.563-.563h13.993a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z",fill:"#B1AABD"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 3.094h88V88H0V3.094z",fill:"url(#paint0_linear_3200_4362)"}),l().createElement("path",{d:"M79.893 76.85H21.308v14.184h58.585V76.85z",fill:"#F5C056"}),l().createElement("path",{d:"M79.893 76.85H74.6v14.184h5.293V76.85z",fill:"#E99B00"}),l().createElement("path",{d:"M48.73 76.893H26.283v14.184H48.73V76.893z",fill:"#FFEA5A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.894 57.829c-1.687-4.26 13.113-4.043 11.413 0-1.353 3.218-1.353 7.53 0 12.934H44.894C46 64.93 46 60.618 44.894 57.83z",fill:"#FFD264"}),l().createElement("path",{d:"M61.253 70.383H39.949v2.663h21.304v-2.663z",fill:"#FFD264"}),l().createElement("path",{d:"M47.938 70.383h-4.185v2.663h4.185v-2.663z",fill:"#FFEA5A"}),l().createElement("path",{d:"M64.676 73.046h-28.15v3.804h28.15v-3.804z",fill:"#795D1A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.764 16.363v5.325H15.602v.143c0 13.634 8.992 24.714 20.162 24.961v2.994c-14-.986-25.108-15.488-25.108-33.233v-.19h25.108z",fill:"#FFCB64"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.677 16.363v5.325h20.161v.143c0 13.634-8.991 24.714-20.161 24.961v2.994c13.999-.986 25.107-15.488 25.107-33.233v-.19H64.677z",fill:"#ED985C"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.307 57.829c-1.353 3.218-1.353 7.53 0 12.934h-5.706V54.715c3.278.026 6.556 1.091 5.706 3.114z",fill:"#F4B046"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.676 73.046v3.804H50.601v-3.804h14.075z",fill:"#4F350B"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.253 70.383v2.663H50.6v-2.663h10.652z",fill:"#F4B046"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.933 10.656a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-11.43 0-23.311-20.1-24.449-45.65h2.194l-.38-3.044h-1.898a91.212 91.212 0 01.01-2.663h49.045z",fill:"#FFCE66"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.937 10.656c.006.569.01 1.14.01 1.712v.952h-.044l-.241 3.043h.294c.126 24.948 1.435 39.335 3.123 45.65-8.89-3.2-15.661-20.403-16.308-45.65h1.465l-.241-3.044h-1.271a158.252 158.252 0 01.006-2.663h13.207z",fill:"#FFEA5A"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.284 16.363h-3.91l.422-3.044h3.581a81.301 81.301 0 00-.01-2.663h4.566a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-.414 0-.828-.026-1.241-.078 11.92-1.382 19.899-20.946 21.114-45.572zm.083-5.707h-44.48 44.48z",fill:"#F4B046"}),l().createElement("path",{opacity:".519",d:"M72.665 13.32h-44.51v3.043h44.51v-3.044z",fill:"#F4B046"}),l().createElement("path",{d:"M48.318 73.046h-5.706v3.804h5.706v-3.804z",fill:"#96691F"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M65.526 10.656h4.235L58.973 35.935h-4.235l10.788-25.279z",fill:"url(#paint1_linear_3200_4362)"}),l().createElement("g",{filter:"url(#filter0_d_3200_4362)"},l().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#000"})),l().createElement("path",{d:"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z",fill:"#DD612C"}),l().createElement("path",{d:"M56.909 54.302a8.681 8.681 0 100-17.362 8.681 8.681 0 000 17.362z",fill:"#FFCE66"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.909 36.94a8.685 8.685 0 018.347 6.291c-5.74.351-10.312 5.02-10.51 10.8a8.699 8.699 0 01-6.008-5.47A11.212 11.212 0 0054.9 37.174a8.684 8.684 0 012.008-.234z",fill:"#FFF18C"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.202 10.656l10.862 25.341H54.83L43.646 10.705l4.556-.049z",fill:"#F83D3D"})),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3200_4362",x1:"0",y1:"3.094",x2:"0",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3200_4362",x1:"62.25",y1:"10.656",x2:"62.25",y2:"35.935",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#B93131"}),l().createElement("stop",{offset:"1",stopColor:"#831616"})),l().createElement("filter",{id:"filter0_d_3200_4362",x:"40.057",y:"30.77",width:"33.702",height:"33.703",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l().createElement("feOffset",{dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"3"}),l().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0335613 0 0 0 0 0.334579 0 0 0 0 0.412601 0 0 0 0.5 0"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3200_4362"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3200_4362",result:"shape"}))))};function Jr(){return Jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Jr.apply(this,arguments)}const ea=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",Jr({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#0072CE",fillOpacity:".1"}),l().createElement("mask",{id:"svg355575424a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},l().createElement("circle",{cx:"44",cy:"44",r:"44",fill:"#fff"})),l().createElement("g",{mask:"url(#svg355575424a)"},l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.5 3.094h88V88h-88V3.094z",fill:"url(#paint0_linear_3488_11934)"}),l().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M64.543 19.547L84.7 39.704V90.88H32.1L17.875 77.372V19.547h46.668z",fill:"url(#paint1_linear_3488_11934)"}),l().createElement("path",{opacity:".06",fillRule:"evenodd",clipRule:"evenodd",d:"M16.156 19.938h69.438A2.406 2.406 0 0188 22.343v53.968a2.406 2.406 0 01-2.406 2.407H16.156a2.406 2.406 0 01-2.406-2.406v-53.97a2.406 2.406 0 012.406-2.405z",fill:"#000"}),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 19.25H86.28c.95 0 1.719.77 1.719 1.719v53.968c0 .95-.77 1.72-1.719 1.72H17.187c-.949 0-1.718-.77-1.718-1.72V20.97c0-.95.77-1.719 1.719-1.719z",fill:"#fff"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 24.968c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 29.093c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 56.031c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 60.156c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M36.223 66.344c0-.57.462-1.031 1.031-1.031h28.059a1.031 1.031 0 010 2.062H37.254c-.57 0-1.031-.462-1.031-1.031z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.094 70.469c0-.57.462-1.031 1.031-1.031h25.508a1.031 1.031 0 010 2.062H37.125c-.57 0-1.031-.462-1.031-1.031z",fill:"#979797"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 35.406c0-.57.461-1.031 1.03-1.031h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.032z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 39.531c0-.57.461-1.031 1.03-1.031H70.54a1.031 1.031 0 010 2.063H48.47c-.57 0-1.032-.462-1.032-1.032z",fill:"#979797"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"27.156",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"36.438",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"41.25",cy:"46.75",r:"2.063",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"58.094",r:"3.094",fill:"#B6C7DB"}),l().createElement("circle",{cx:"23.031",cy:"68.406",r:"3.094",fill:"#B6C7DB"}),l().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M47.567 45.719c0-.57.461-1.032 1.03-1.032h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.031z",fill:"#B6C7DB"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M47.438 49.844c0-.57.461-1.032 1.03-1.032h25.509a1.031 1.031 0 010 2.063H48.469c-.57 0-1.032-.462-1.032-1.031z",fill:"#979797"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M31.802 37.125v-2.75h-.688V48.251h3.843v-.688h-3.155v-9.75h3.155v-.688h-3.155z",fill:"#2B98F0"}),l().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z",fill:"#000"}),l().createElement("path",{opacity:".6",fillRule:"evenodd",clipRule:"evenodd",d:"M17.188 7.563h63.937c1.14 0 2.063.923 2.063 2.062v6.188c0 1.139-.924 2.062-2.063 2.062H17.187a2.062 2.062 0 01-2.062-2.063V9.625c0-1.14.923-2.063 2.063-2.063z",fill:"#fff"}),l().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M19.938 12.719c0-1.14.923-2.063 2.062-2.063h24.063a2.063 2.063 0 010 4.125H22a2.062 2.062 0 01-2.063-2.062zM50.875 12.719c0-1.14.923-2.063 2.063-2.063h3.437a2.063 2.063 0 010 4.125h-3.438a2.062 2.062 0 01-2.062-2.062z",fill:"#979797"}),l().createElement("path",{opacity:".2",d:"M37.687 66.48l8.942 8.309v.958l19.925 19.702 31.064-.552 7.006-25.47-34.487-34.144-11.2.567c-3.238-1.86-5.34-3.02-6.306-3.48-.54-.258-.383 5.565-2.755 7.725-1.243 1.133-3.462 4.104-6.657 8.914l-5.532 17.47z",fill:"url(#paint2_linear_3488_11934)"}),l().createElement("g",{filter:"url(#filter0_d_3488_11934)",fillRule:"evenodd",clipRule:"evenodd"},l().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312a18.719 18.719 0 014.236 4.554l4.28-.699a23.425 23.425 0 012.392 6.47l-3.639 2.443c.262 2.058.2 4.18-.216 6.285l3.466 2.572a24.254 24.254 0 01-2.838 6.375l-4.231-.855a19.61 19.61 0 01-4.526 4.366l.62 4.34a23.426 23.426 0 01-6.409 2.551l-2.345-3.649a18.72 18.72 0 01-6.219-.1l-2.593 3.564a22.7 22.7 0 01-6.224-2.757l.912-4.304a18.715 18.715 0 01-4.281-4.567l-4.285.7a23.424 23.424 0 01-2.4-6.438l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14zM60.075 49.74c-2.804-1.248-6.112.064-7.388 2.93-1.276 2.867-.038 6.203 2.766 7.452 2.804 1.248 6.112-.064 7.388-2.93 1.276-2.867.038-6.203-2.766-7.452z",fill:"#6B93AC"}),l().createElement("path",{d:"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312c.779.597 1.503 1.25 2.168 1.95l-10.07 9.392a5.444 5.444 0 00-1.491-.983c-2.804-1.248-6.112.064-7.388 2.93a5.7 5.7 0 00.626 5.749l-10.071 9.39c-.502-.585-.965-1.2-1.39-1.84l-4.284.7a23.424 23.424 0 01-2.4-6.437l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14z",fill:"#7CA6BF"}),l().createElement("path",{d:"M62.886 42.644c6.409 2.854 9.24 10.479 6.322 17.03-2.917 6.553-10.478 9.552-16.887 6.698-6.409-2.853-9.24-10.478-6.322-17.03 2.917-6.553 10.478-9.551 16.887-6.698zm-1.32 2.966c-4.808-2.14-10.478.109-12.666 5.023-2.188 4.914-.065 10.633 4.742 12.773 4.806 2.14 10.477-.108 12.665-5.023 2.188-4.914.065-10.633-4.742-12.773z",fill:"#AAC4D5"}),l().createElement("path",{d:"M62.886 42.644a12.424 12.424 0 014.22 3.075l-2.366 2.207a9.317 9.317 0 00-3.175-2.316c-4.807-2.14-10.477.109-12.665 5.023-1.635 3.673-.863 7.795 1.638 10.536l-2.367 2.208c-3.325-3.656-4.35-9.145-2.172-14.035 2.917-6.553 10.478-9.551 16.887-6.698z",fill:"#CBDDE9"}))),l().createElement("defs",null,l().createElement("linearGradient",{id:"paint0_linear_3488_11934",x1:"-5.5",y1:"3.094",x2:"-5.5",y2:"88",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),l().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"paint1_linear_3488_11934",x1:"91.478",y1:"62.257",x2:"53.241",y2:"26.703",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopOpacity:".01"}),l().createElement("stop",{offset:"1"})),l().createElement("linearGradient",{id:"paint2_linear_3488_11934",x1:"86.975",y1:"77.519",x2:"49.809",y2:"46.968",gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#90A4AE",stopOpacity:"0"}),l().createElement("stop",{offset:"1",stopOpacity:".75"})),l().createElement("filter",{id:"filter0_d_3488_11934",x:"32.168",y:"30.067",width:"53.209",height:"53.716",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l().createElement("feOffset",{dx:"1",dy:"2"}),l().createElement("feGaussianBlur",{stdDeviation:"2"}),l().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),l().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3488_11934"}),l().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3488_11934",result:"shape"}))))},ta=(0,E.Z)((e=>({title:{whiteSpace:"nowrap",height:"24px",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"},titleCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px",overflow:"hidden",lineHeight:"24px",textOverflow:"ellipsis",fontSize:"14px"},container:{height:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",padding:0,"&>svg":{paddingTop:0,height:"88px",width:"88px",marginBottom:"14px"}},noDataMessage:{fontSize:"12px",textAlign:"center",whiteSpace:"pre-wrap"},noDataTitle:{fontSize:"13px",textAlign:"center",color:"rgba(0,0,0,0.87)",whiteSpace:"pre-wrap"},viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}})));let ra;!function(e){e.DVF_NOT_CONFIGURE="dvfNotConfigured",e.DATA_VALID="dataValid",e.PERMISSION_DENIED="permissionDenied"}(ra||(ra={}));const aa=e=>{let{chartType:t,title:r,infoTooltipTitle:a,titleChildren:n,dvfConfigLink:i,config:o}=e;const c=ta();let s,u,p;switch(t){case ra.DVF_NOT_CONFIGURE:s=l().createElement(ea,null),u=d().text("If we spot any validation issues, we’ll display them here."),p=l().createElement(l().Fragment,null,l().createElement(Qr.Z,{href:i,target:"_blank",component:i?"a":"span",color:i?"primary":"inherit",underline:i?"hover":"none","data-reltio-id":"reltio-dq-dashboard-define-dvf-link"},d().text("Define some data validation functions"))," ",d().text("for this attribute (or ask your Tenant Admin)."));break;case ra.DATA_VALID:s=l().createElement(Xr,null),u=d().text("We didn’t spot any validation issues for this attribute type.\nYou can kick back and enjoy a cold one."),p=d().text("Nice one!");break;case ra.PERMISSION_DENIED:s=l().createElement(m.B9.ERROR,null),u=d().text("Please contact your Tenant Admin to change permissions"),p=d().text("You don’t currently have permission to view this page")}return l().createElement(Ie,{config:o},l().createElement(ue,{title:r,infoTooltipTitle:a},n),l().createElement(fe.Z,{className:c.viewContent},l().createElement("div",{className:c.container},s,p&&l().createElement(b.Z,{className:c.noDataTitle},p),u&&l().createElement(b.Z,{className:c.noDataMessage},u))))},la=e=>{var t;const r=ta(),{config:n}=e,{dvfs:i,dvfConfigLink:o}=(0,a.useContext)($r),{data:u,state:p,reload:f,errorCode:m}=i,h=(0,a.useContext)(Be).uri,E=(0,a.useContext)(Ve),x=E.uri,O=((e,t)=>(e||[]).filter((0,s.propEq)("attribute",t)))(u,h).filter((e=>e.status===c.lVm.ACTIVE)),{data:w,state:N,reload:T}=ze((e=>(0,s.pipe)(hr("dataValidationFunctions"),gr(e)))(O)),S=(0,a.useMemo)((()=>[E]),[E]),R=(0,a.useMemo)((()=>O.map((e=>e.uri))),[O]),I=(e=>{let{entityTypeUri:t,dvfUris:r}=e;const[l,n]=(0,a.useState)(null),i=(0,g._)();return(0,a.useEffect)((()=>{const e=[{fieldName:"type",filter:c.j5E.EQUALS,values:[t]},{fieldName:"analyticsAttributes.AttributeValidations.FunctionURI",filter:c.j5E.EQUALS,values:r}];i((0,c.j_Q)(e)).then((e=>{let{total:t}=e;return n(t)})).catch((()=>n(null)))}),[t,r]),l})({entityTypeUri:x,dvfUris:R}),A=null===(t=v(S))||void 0===t?void 0:t[(0,c.nIW)(x)],C=He(Tr),D=(0,a.useMemo)((()=>p===y.o.LOADED&&N===y.o.LOADED?y.o.LOADED:p===y.o.ERROR||N===y.o.ERROR?y.o.ERROR:y.o.LOADING),[N,p]),L=(0,a.useMemo)((()=>()=>{p===y.o.ERROR&&f(),N===y.o.ERROR&&T()}),[N,p,f,T]),P=m===c.Xt7.ACCESS_DENIED,_=m===c.Xt7.DVF_NOT_CONFIGURED||0===(null==O?void 0:O.length)&&!P,j=D===y.o.LOADED&&(null==O?void 0:O.length)>0&&0===w.length,M=!(D===y.o.ERROR&&m!==c.Xt7.DVF_NOT_CONFIGURED)&&!_&&D!==y.o.LOADING&&l().createElement(Cr.C,{value:n.title},l().createElement(b.Z,{className:r.titleCount},(e=>{let{isDataValid:t,totalProfiles:r,invalidProfiles:a}=e;return t?d().text("0 profiles"):(0,s.isNil)(a)?"":`${(0,c.k7L)(a)} (${Math.round(a/r*100)}%) ${1!==a?d().text("profiles"):d().text("profile")}`})({isDataValid:j,totalProfiles:A,invalidProfiles:I}))),k=[d().text("Validation function"),d().text("Profiles")],F=l().createElement(ee,{title:d().text("Profiles with invalid data"),data:[{value:d().text("Shows the number of profiles that violate active validation functions")}],DataRenderer:Ae});return _||j||P?l().createElement(aa,{config:n,chartType:_?ra.DVF_NOT_CONFIGURE:j?ra.DATA_VALID:P?ra.PERMISSION_DENIED:void 0,title:d().text(n.title),infoTooltipTitle:F,titleChildren:M,dvfConfigLink:o}):l().createElement(qr,{config:n,title:d().text(n.title),headers:k,data:w,onItemClick:C,titleChildren:M,state:D,onRefresh:L,customComparator:yr,infoTooltipTitle:F,showCountLabels:!0})},na=(0,E.Z)((()=>({monoFontCell:{fontFamily:'"Roboto Mono", monospace'}}))),ia=e=>{let{config:t}=e;const r=na(),{data:n,state:i,reload:o}=ze(vr),s=(0,a.useContext)(Be).type,u=(0,c.Lt4)(s)?((e,t)=>{const r=t===c.oS0.TYPE_TIMESTAMP?"L LTS":"L";return e.map((e=>P({},e,{label:d().date(Number(e.label),r)})))})(n,s):n,p=He(Nr),f=[d().text("Value"),d().text("Count")],m=l().createElement(ee,{title:d().text("Frequency analysis"),data:[{value:d().text("Shows the number of times each value occurs")}],DataRenderer:Ae});return l().createElement(qr,{config:t,data:u,headers:f,title:t.title,infoTooltipTitle:m,onItemClick:p,state:i,onRefresh:o,labelCellClassName:Z()({[r.monoFontCell]:(0,c.m6e)(s)})})};function oa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){ca(e,t,r[t])}))}return e}function ca(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var sa,ua;!function(e){e[e.sun=0]="sun",e[e.mon=1]="mon",e[e.tue=2]="tue",e[e.wed=3]="wed",e[e.thu=4]="thu",e[e.fri=5]="fri",e[e.sat=6]="sat"}(sa||(sa={})),function(e){e[e.jan=0]="jan",e[e.feb=1]="feb",e[e.mar=2]="mar",e[e.apr=3]="apr",e[e.may=4]="may",e[e.jun=5]="jun",e[e.jul=6]="jul",e[e.aug=7]="aug",e[e.sep=8]="sep",e[e.oct=9]="oct",e[e.nov=10]="nov",e[e.dec=11]="dec"}(ua||(ua={}));const da=e=>(0,s.pipe)((0,s.pathOr)({},[e,"data"]),Object.entries,(0,s.map)((e=>{let[t,r]=e;return{label:t,group:t,value:r}})),j);var pa;!function(e){e.AVERAGE="avg",e.MININMUN="min",e.MAXIMUM="max",e.MEDIAN="median",e.NUMBER_OF_SOURCES="numberOfSources",e.MIN_NUMBER_OF_PROFILES="minNumberOfProfiles",e.MAX_NUMBER_OF_PROFILES="maxNumberOfProfiles",e.AVG_NUMBER_OF_PROFILES="avgNumberOfProfiles"}(pa||(pa={}));const fa=(e,t)=>{const r={lengthStatistics:{[pa.MEDIAN]:d().text("Median"),[pa.AVERAGE]:d().text("Average"),[pa.MININMUN]:d().text("Minimum"),[pa.MAXIMUM]:d().text("Maximum")},valueDistribution:{[pa.MEDIAN]:d().text("Median"),[pa.AVERAGE]:d().text("Average"),[pa.MININMUN]:d().text("Minimum"),[pa.MAXIMUM]:d().text("Maximum")},crosswalkAnalysis:{[pa.NUMBER_OF_SOURCES]:d().text("No. of source systems"),[pa.AVG_NUMBER_OF_PROFILES]:d().text("Avg no. of profiles"),[pa.MIN_NUMBER_OF_PROFILES]:d().text("Min no. of profiles"),[pa.MAX_NUMBER_OF_PROFILES]:d().text("Max no. of profiles")}};return(0,s.pathOr)(null,[t,e],r)},ma=e=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((t=>{let[r,a]=t;return{label:fa(r,e),value:a}})),(0,s.filter)((e=>{let{label:t}=e;return t})),j),ha=e=>t=>({chartData:da(e)(t),infoPanelData:ma(e)(t)}),ya=(e,t)=>(0,c.Lt4)(t)?d().date(Number(e),"L"):d().number(e),ga=(0,s.curry)(((e,t)=>{const r=(0,s.pipe)((0,s.prop)("group"),(0,s.split)(" "),s.head,Number),a=t.chartData.sort((0,s.ascend)(r)).map(((r,a)=>{const[l,n=l]=r.group.split(" ").map(Number),i=a===t.chartData.length-1,o=l!==n?((e,t,r)=>rt(t)?`[${e}${r?"]":")"}`:e)(`${ya(l,e)} - ${ya(n,e)}`,e,i):ya(l,e);return oa({},r,{label:o,group:[l,n,i?"last":""].toString()})}));return{infoPanelData:t.infoPanelData.map((t=>oa({},t,{value:(0,c.Lt4)(e)?d().date(Number(t.value),"L"):(0,c.k7L)(t.value,999),localizedValue:(0,c.Lt4)(e)?d().date(Number(t.value),"L"):t.localizedValue}))),chartData:a}})),va=(0,s.pipe)(ha("lengthStatistics"),ga("")),ba=(0,s.pipe)(ha("crosswalkAnalysis"),(0,s.applySpec)({chartData:(0,s.prop)("chartData"),infoPanelData:(0,s.pipe)((0,s.prop)("infoPanelData"),(0,s.map)((e=>(0,s.assoc)("value",(0,c.k7L)(e.value,999),e))))})),Ea=ha("monthDistribution"),xa=ha("dayOfWeekDistribution"),Oa=ha("dayOfMonthDistribution"),wa=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}.day_of_week`,value:sa[t.toLowerCase()],entityTypeUri:a})})),Na=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}.month`,value:ua[t.toLowerCase()],entityTypeUri:a})})),Ta=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}.day_of_month`,value:t,entityTypeUri:a})})),Sa=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;const[l,n]=t.split(",");return l===n?fr({fieldName:`${r.fieldName}.length`,value:l,entityTypeUri:a}):(e=>{let{fieldName:t,startRange:r,endRange:a,entityTypeUri:l}=e;return pr({keyword:`${c.j5E.IN_RANGE}(${t}, ${r}, ${a})`,entityTypeUri:l})})({fieldName:`${r.fieldName}.length`,startRange:l,endRange:n,entityTypeUri:a})})),Ra=(0,s.curry)(((e,t)=>{let{detailedAttributeType:r,entityTypeUri:a}=e;return fr({fieldName:`${r.fieldName}.crosswalk_sources`,value:t,entityTypeUri:a})})),Ia=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l]=t.split(",");return[{filter:c.j5E.AFTER,values:[a],fieldName:r},{filter:c.j5E.BEFORE,values:[l],fieldName:r}]})),Aa=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l]=t.split(",");return[a===l?{filter:c.j5E.EQUALS,values:[[a]],fieldName:r}:{filter:c.j5E.IN_RANGE,values:[[a,l]],fieldName:r}]})),Ca=(0,s.curry)(((e,t)=>{let{fieldName:r}=e;const[a,l,n]=t.split(","),i=a===l,o=i?[{filter:c.j5E.EQUALS,values:[[a]],fieldName:r}]:[{filter:c.j5E.IN_RANGE,values:[[a,l]],fieldName:r}];return!n&&!i&&o.push({filter:c.j5E.NOT_EQUALS,values:[[l]],fieldName:r}),o})),Da=(0,s.cond)([[c.Lt4,(0,s.always)(U(Ia))],[rt,(0,s.always)(U(Ca))],[s.identity,(0,s.always)(U(Aa))]]);function La(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Pa(e,t,r[t])}))}return e}function Pa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _a=(0,E.Z)((e=>({tooltipWrapper:La({},e.tooltip,{padding:"4px 8px"})}))),ja=e=>{var t;let{payload:r,active:a,name:n}=e;const i=null==r||null===(t=r[0])||void 0===t?void 0:t.payload,o=null==i?void 0:i.value,c=null==i?void 0:i.label,s=n?`${n}`:"",u=_a();return a&&l().createElement("div",{className:u.tooltipWrapper},l().createElement(ee,{data:[{label:s,value:c},{label:d().text("No of profiles"),value:d().number(o)}]}))},Ma=(0,E.Z)((()=>({chartInfoLabel:{fontSize:"13px",lineHeight:"15px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},chartInfoValue:{fontSize:"13px",lineHeight:"15px",color:"rgba(0, 0, 0, 0.87)"},chartInfoWrapper:{display:"flex",backgroundColor:"rgba(0, 0, 0, 0.05)",margin:"0 12px 12px",padding:"9px 12px 8px"},chartInfoItem:{marginRight:"16px"},clickable:{cursor:"pointer"},title:{marginRight:"50px",fontSize:"16px"},root:{padding:"0 0 0 16px",minHeight:"auto",marginTop:"12px",marginBottom:"12px"}}))),ka=e=>{let{data:t}=e;const r=Ma();return l().createElement("div",{className:r.chartInfoWrapper},t.map((e=>{let{label:t,value:a,localizedValue:n}=e;return l().createElement("div",{key:t,className:r.chartInfoItem},l().createElement("span",{className:r.chartInfoLabel},t,": "),a!==n?l().createElement(Je.ZP,{title:n},l().createElement("span",{className:r.chartInfoValue},a)):l().createElement("span",{className:r.chartInfoValue},a))})))},Fa=(0,E.Z)((()=>({labelWrapper:e=>{let{width:t}=e;return{overflow:"hidden",width:`${t}px`,marginTop:"-3px"}},xAxisLabel:{textAlign:"center",whiteSpace:"nowrap",textTransform:"capitalize","&:after":{top:"0",right:"0",width:"10px",height:"100%",content:'""',position:"absolute",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}}}))),Ua=e=>{let{width:t,height:r,label:a,x:n,y:i}=e;const o=Fa({width:t}),c=n-t/2;return l().createElement("foreignObject",{x:c,y:i,width:t,height:r},l().createElement("div",{className:o.labelWrapper},l().createElement(Cr.C,{value:a},l().createElement("div",{className:o.xAxisLabel},a))))},za=e=>{const{x:t,y:r,width:a,height:n,payload:i,visibleTicksCount:o}=e,{value:c}=i,s=a/o-4;return l().createElement(Ua,{width:s,height:n,label:c,x:t,y:r})};function Ba(){return Ba=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ba.apply(this,arguments)}const Va=e=>{let{isClickable:t}=e,r=function(e,t){if(null==e)return{};var r,a,l=function(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["isClickable"]);const a=Ma(),n=t?a.clickable:void 0;return l().createElement(T.Ae,Ba({},r,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},Ha=e=>{const{value:t}=e;return t>0?l().createElement(T.Ae,e):null};function Za(){return Za=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Za.apply(this,arguments)}const Wa=e=>{let{data:t,config:r,xAxisLabel:a,yAxisLabel:n,barTooltipTitle:i,infoPanelData:o,infoTooltipTitle:s,onItemClick:u,options:d={},state:p,onRefresh:f}=e;const m=Ma(),{title:h}=r,{cartesianGrid:g,bar:v,xAxis:b,yAxis:E,labelForX:x,labelForY:O,barChart:w}=(e=>{let{showCategories:t=!1,interval:r,barCategoryGap:a}=e;return{barChart:{barCategoryGap:a||"10%"},bar:{dataKey:"value",fill:"#0072CE",minPointSize:3,maxBarSize:50},xAxis:{tick:t&&za,tickLine:!1,interval:r||0,dataKey:"label"},yAxis:{tickCount:8,axisLine:!1,tickLine:!1,tick:{fill:"#000"},width:60,tickFormatter:e=>(0,c.k7L)(e,999)},cartesianGrid:{stroke:"#000",strokeOpacity:"0.05",vertical:!1},labelForX:{position:"insideBottom",style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"},offset:t?-3:3},labelForY:{angle:270,position:"left",offset:-3,style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"}}}})(d),N=u&&(e=>{let{activePayload:t}=e;return u(t[0].payload.group)}),S=N?m.clickable:void 0,R=p===y.o.LOADED&&o.length>0;return l().createElement(Ie,{config:r},l().createElement(ue,{title:h,infoTooltipTitle:s}),R&&l().createElement(ka,{data:o}),l().createElement(Te,{data:t,loadingState:p,onRefresh:f},(e=>{let{data:t,width:r=0,height:o=0}=e;return l().createElement("div",null,l().createElement(T.vz,Za({width:r,height:o,data:t,onClick:N},w),l().createElement(T.q3,g),l().createElement(T.u,{content:l().createElement(ja,{name:i}),cursor:l().createElement(Va,{isClickable:!!N})}),l().createElement(T.$Q,Za({},v,{shape:l().createElement(Ha,{className:S})})),l().createElement(T.B2,E,l().createElement(T.__,Za({},O,{value:n}))),l().createElement(T.Kc,b,l().createElement(T.__,Za({},x,{value:a})))))})))},Ya=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=ze(va),{chartData:i,infoPanelData:o}=r,c=He(Sa),s=l().createElement(ee,{title:d().text("Length statistics"),data:[{value:d().text("Measures the string length of values")}],DataRenderer:Ae});return l().createElement(Wa,{config:t,data:i,xAxisLabel:d().text("Length of values"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Length"),infoTooltipTitle:s,onItemClick:c,state:a,onRefresh:n})};var Ga=r(21210);const qa=(0,E.Z)({icon:{width:"20px",height:"20px",borderRadius:"4px",fontSize:"14px",marginRight:"8px"},text:e=>{let{color:t}=e;return{backgroundColor:t}}}),$a=e=>{let{chartData:t}=e;const{group:r,label:a}=t,n=qa({color:(0,c.uap)("random0",r)});return l().createElement(l().Fragment,null,l().createElement(Ga.Z,{sourceType:r,className:n.icon,classes:{textRoot:n.text}}),a)};function Qa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Ka(e,t,r[t])}))}return e}function Ka(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Xa=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=ze(ba),{chartData:i}=r,o=He(Ra),c=[d().text("Source system"),d().text("Profiles")],s=l().createElement(ee,{title:d().text("Source system analysis"),data:[{value:d().text("Distribution of source systems contributing to profiles")}],DataRenderer:Ae});return l().createElement(qr,{config:Qa({},t),data:i,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:a,onRefresh:n,customComparator:yr,LabelRenderer:$a})},Ja=e=>{let{config:t}=e;const r=(0,a.useContext)(Be).type,{data:n,state:i,reload:o}=ze((e=>(0,s.pipe)(ha("valueDistribution"),ga(e)))(r)),{chartData:c,infoPanelData:u}=n,p=He(Da(r));return l().createElement(Wa,{config:t,data:c,xAxisLabel:d().text("Value"),yAxisLabel:d().text("No. of profiles"),infoPanelData:u,barTooltipTitle:d().text("Value"),onItemClick:p,state:i,onRefresh:o})},el=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=ze(Ea),{chartData:i,infoPanelData:o}=r,c=He(Na);return l().createElement(Wa,{config:t,data:i,xAxisLabel:d().text("Months of the year"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Months of the year"),options:{showCategories:!0,barCategoryGap:"20%",interval:"preserveStartEnd"},onItemClick:c,state:a,onRefresh:n})},tl=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=ze(xa),{chartData:i,infoPanelData:o}=r,c=He(wa);return l().createElement(Wa,{config:t,data:i,xAxisLabel:d().text("Days of the week"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Days of the week"),options:{showCategories:!0,barCategoryGap:"25%",interval:"preserveStartEnd"},onItemClick:c,state:a,onRefresh:n})},rl=e=>{let{config:t}=e;const{data:r,state:a,reload:n}=ze(Oa),{chartData:i,infoPanelData:o}=r,c=He(Ta);return l().createElement(Wa,{config:t,data:i,xAxisLabel:d().text("Days of the month"),yAxisLabel:d().text("No. of profiles"),infoPanelData:o,barTooltipTitle:d().text("Days of the month"),options:{showCategories:!0,interval:1},onItemClick:c,state:a,onRefresh:n})},al=e=>{let{config:t}=e;const r=na(),{data:a,state:n,reload:i}=ze(br),o=He(Sr),c=[d().text("Value"),d().text("Count")],s=l().createElement(ee,{title:d().text("Pattern analysis"),data:[]});return l().createElement(qr,{config:t,data:a,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:n,onRefresh:i,labelCellClassName:r.monoFontCell})};function ll(){return ll=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ll.apply(this,arguments)}class nl{}nl.getComponent=e=>{let{type:t,config:r,isFullscreen:a,onToggleFullscreen:n}=e;const i={config:r,isFullscreen:a,onToggleFullscreen:n};switch(t){case N.FILL_RATE_CHART:return l().createElement(Ze,i);case N.UNIQUENESS_CHART:return l().createElement(Ke,i);case N.SUMMARY:return l().createElement(nr,i);case N.VALIDATION:return l().createElement(la,i);case N.FREQUENCY:return l().createElement(ia,i);case N.LENGTH:return l().createElement(Ya,i);case N.CROSSWALK:return l().createElement(Xa,i);case N.VALUE_DISTRIBUTION:return l().createElement(Ja,i);case N.MONTH_DISTRIBUTION:return l().createElement(el,i);case N.DAY_OF_WEEK_DISTRIBUTION:return l().createElement(tl,i);case N.DAY_OF_MONTH_DISTRIBUTION:return l().createElement(rl,i);case N.PATTERN:return l().createElement(al,i);default:return l().createElement(dr,ll({},i,{errorData:{message:d().text("Chart isn't supported for this data type")}}))}};const il=nl,ol=e=>{let{layoutItemConfig:t,views:r,onToggleFullscreen:a,isFullscreen:n,className:i,children:o,style:c}=e;const s=r.find((e=>{let{id:r}=e;return t.i===r}));if(!s)return null;const{type:u}=s;return l().createElement("div",{style:c,className:i},il.getComponent({type:u,config:s,onToggleFullscreen:a,isFullscreen:n}),o)},cl=(0,E.Z)({root:{overflow:"auto",backgroundColor:"#F9F9F9",height:"100%",flexGrow:1,padding:"4px"}}),sl=(0,s.map)((0,s.assoc)("isStatic",!0)),ul={cols:4,rowHeight:10,margin:[12,12]},dl=(0,a.memo)((e=>{let{views:t,layout:r,layoutOptions:n=ul}=e;const i=cl(),o=(0,a.useMemo)((()=>sl(r)),[r]);return l().createElement("div",{className:i.root},l().createElement(w.Z,{LayoutItem:ol,views:t,layout:o,layoutOptions:n}))}));var pl=r(50166),fl=r(83543),ml=r(98989),hl=r(38402),yl=r(33286),gl=r(40435);const vl=(0,E.Z)({root:{paddingRight:"23px",paddingLeft:"28px",display:"flex",flexDirection:"row-reverse"},detailIcon:{marginLeft:"-5px",borderRadius:"50%",padding:"2px",width:"26px",height:"26px",boxSizing:"border-box"},activeIcon:{background:"white"}}),bl=e=>{let{details:t,classes:r,fillRateData:a,fillRateState:n}=e;const i=vl(),o=(0,s.prop)("iconRoot",r);return l().createElement("div",{className:i.root},Object.entries(t||{}).reverse().map((e=>{let[t,r]=e,u=At.NORMAL;if(t===at.REQUIRED){const e=n===y.o.LOADING,t=0===(null==(d=a)||null===(p=d.find((0,s.propEq)("group",c.s9T.MISSING)))||void 0===p?void 0:p.value);e&&(u=At.LOADING),e||t||(u=At.BAD_QUALITY)}var d,p;return l().createElement("div",{key:t,className:Z()(r&&(o||i.activeIcon),i.detailIcon)},r&&l().createElement(Je.ZP,{title:ht(t)},l().createElement("span",null,l().createElement(Ct,{detailType:t,variant:u,size:It.SMALL}))))})))},El="rgba(0, 114, 206, 0.12)",xl=(0,E.Z)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:El,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:El}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"}}),Ol=e=>{let{level:t,margin:r,hasChildren:a,isLastLevelItem:n,isCollapsed:i}=e;const o=xl(),c=!i&&(t>0||a);return l().createElement("div",{className:o.linesWrapper},((e,t)=>t>0&&e?(0,s.range)(1,t+1):t>1?(0,s.range)(1,t):[])(a,t).map((e=>l().createElement(yl.Z,{key:e,margin:r,level:e,className:o.line}))),c&&l().createElement(yl.Z,{margin:r,level:t,className:Z()(o.line,!a&&t>0&&o.horizontalLine,a&&o.parentLine,n&&o.lastLevel)}))},wl=(0,E.Z)({bar:{width:"100%",display:"flex",flexWrap:"nowrap"},barPart:{height:"8px",flexGrow:1},fillRateSquare:{height:"8px",width:"8px",display:"inline-block",marginRight:"5px",verticalAlign:"middle"},inactiveBarPart:{background:"#EFEFEF"}});function Nl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Tl(e,t,r[t])}))}return e}function Tl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Sl=(0,R.Z)((e=>{let{data:t}=e;const r=wl(),a=De(t),n=t.map(((e,t)=>{let{label:n,percent:i,value:o}=e;return{label:l().createElement("span",null,l().createElement("div",{className:r.fillRateSquare,style:{background:a[t]}}),n),value:`${d().number(o)} ${M(i)}`}}));return k(t)?l().createElement("div",{className:r.bar},l().createElement("div",{className:Z()(r.barPart,r.inactiveBarPart)})):l().createElement(Je.ZP,{title:l().createElement(ee,{title:d().text("Fill rate"),data:n})},l().createElement("div",{className:r.bar},t.map(((e,t)=>l().createElement("div",{key:e.group,className:r.barPart,style:Nl({},B(e),{background:a[t]})})))))})),Rl=(0,E.Z)({listItem:{padding:"0 0 0 15px","&:after":{content:'""',left:0,right:0,position:"absolute",bottom:0,height:"1px",background:"rgba(0, 0, 0, 0.05)"}},selectedItem:{background:"#F0F7FC !important"},pointerCursor:{cursor:"pointer"},content:{display:"flex",alignItems:"center",width:"100%",height:"100%",position:"relative"},attribute:{paddingLeft:"9px",boxSizing:"border-box",width:"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",height:"100%",position:"relative"},marginWrapper:{display:"inline-block",height:"100%",position:"relative",width:"100%"},attributeType:{position:"absolute",left:0,top:"8px"},fillRate:{position:"absolute",bottom:"8px",left:0,right:0,zIndex:1},attributeLabel:{padding:"8px 0 0 15px",position:"relative","&:after":{content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"}},selectedAttributeLabel:{"&:after":{background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #F0F7FC 100%)"}},parentAttributeLabel:{padding:"14px 0 0 13px"},detailsIconSelected:{background:"#F0F7FC"},detailsIcon:{background:"white"},collapseIcon:{marginRight:"6px"}}),Il=e=>{let{detailedAttributeType:t,fillRateData:r,fillRateState:a,style:n,level:i,selected:o=!1,onClick:s,onCollapse:u=Rr.ZT,isCollapsed:d=!1,isLastLevelItem:p=!1}=e;const f=Rl(),m=!!t.children,h=!!r,y=(e=>(0,c.idV)(e.label||e.name))(t),g=d?ml.Z:fl.Z,v=o?f.detailsIconSelected:f.detailsIcon;return l().createElement(hl.Z,{style:n,selected:o,classes:{selected:f.selectedItem},onClick:m?void 0:()=>{s(t)},component:"div",className:Z()(f.listItem,!m&&f.pointerCursor)},l().createElement("div",{className:f.content},!m&&l().createElement("div",{className:f.attributeType},l().createElement(er,{type:t.type})),l().createElement("div",{className:f.attribute},l().createElement(Ol,{level:i,margin:20,hasChildren:m,isLastLevelItem:p,isCollapsed:d}),l().createElement(yl.Z,{margin:20,level:i,className:f.marginWrapper},l().createElement(Cr.C,{value:y},l().createElement("div",{className:Z()(f.attributeLabel,o&&f.selectedAttributeLabel,m&&f.parentAttributeLabel)},m&&l().createElement(gl.Z,{size:"XXS",icon:g,onClick:u,className:f.collapseIcon}),y))),h&&!m&&l().createElement("div",{className:f.fillRate},l().createElement(Sl,{data:r}))),l().createElement(bl,{details:t.details,classes:{iconRoot:v},fillRateData:r,fillRateState:a})))},Al=(0,s.propOr)({},"attributeItem"),Cl=(0,s.pipe)((0,s.find)((0,s.pipe)(Al,(0,s.either)(c.YkM,c.Or$),s.not)),Al),Dl=e=>(0,s.pipe)(Al,(0,s.propEq)("fieldName",e)),Ll=e=>(0,s.filter)((0,s.propEq)("group",e));let Pl;!function(e){e.SHOW_EMPTY="showEmpty"}(Pl||(Pl={}));const _l=(0,s.curry)(((e,t,r)=>{const a=(0,s.head)(Ll("emptiness")(e));return(null==a?void 0:a.value)===Pl.SHOW_EMPTY?r:r.filter((0,s.pipe)(Al,ct(t)))})),jl=(0,s.pipe)(Al,(0,s.prop)("fieldName")),Ml=(0,s.curry)(((e,t)=>{const r=Ll("details")(e),a=(e=>(0,s.pipe)((0,s.filter)((0,s.pipe)(Al,(0,s.both)((0,s.prop)("children"),it(e)))),(0,s.map)(jl)))(r)(t);return t.filter((e=>{let{attributeItem:t}=e;return a.some((e=>t.fieldName.startsWith(e)))||ot(r,t)}))}));function kl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Fl=r(36444),Ul=r(79784),zl=r(15115),Bl=r(21324),Vl=r(12231);const Hl=(0,E.Z)((e=>({serachWrapper:{padding:"8px 0px 8px 16px",alignItems:"center",display:"flex",flexGrow:1,justifyContent:"flex-end"},filterByDetails:{width:"32px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"9px"},searchInput:{borderRadius:"4px",width:"240px",minHeight:"32px!important",justifyContent:"flex-end",alignItems:"center",padding:"0 2px",boxSizing:"border-box","& input":{fontSize:"14px"},"& button":{padding:"2px"}},filledInput:{"& button:last-child":{backgroundColor:"rgba(0, 0, 0, 0.0509804)"}},menu:{width:"300px",paddingTop:"8px"},filterIcon:{color:e.palette.text.secondary},filterIconFilterApplied:{color:"#0072CE"},filterIconWrapper:{width:"32px",height:"32px",borderRadius:"4px",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",position:"relative","&:after":{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"4px",background:"rgba(0, 0, 0, 0.04)"},"&:hover":{"&:after":{content:'""'}}},filterIconWrapperActive:{background:"rgba(0, 0, 0, 0.04)","&:after":{content:'""',background:"rgba(0, 0, 0, 0.04)"}},filterIconWrapperSelected:{background:"rgba(0, 114, 206, 0.12)"},dropdownMenuTitle:{lineHeight:"48px",height:"48px",paddingLeft:"16px"},option:{paddingLeft:"5px",fontSize:"13px",height:"28px",lineHeight:"16px",letterSpacing:"normal",paddingRight:"19px",filter:e=>e?"grayscale(0)":"grayscale(1)",opacity:e=>e?1:.5},typeIconWrapper:{width:"28px",marginLeft:"1px","& svg":{width:"20px",height:"20px"}},valueContainer:{marginLeft:0},counter:{marginLeft:"5px"},optionLabel:{flexGrow:1},groupLabel:{textTransform:"uppercase",margin:"15px 16px 5px",letterSpacing:"0.1px",display:"block"},actionsContainer:{display:"flex",padding:"12px 5px 8px 12px"},clearAllButton:{marginRight:"auto"}}))),Zl=e=>{let{isSelected:t,data:r,onChange:a}=e;const{count:n,label:i,value:o}=r,u=!(0,s.isNil)(n),d=Hl(!u||n>0);return l().createElement(Vl.Z,{className:d.option,component:"div",onClick:()=>a(r),"data-reltio-id":`reltio-dq-dashboard-option-${r.value}`},l().createElement(Bl.Z,{color:"primary",checked:t}),l().createElement("span",{className:d.typeIconWrapper},l().createElement(Ct,{detailType:o})),l().createElement(Cr.C,{value:i},l().createElement("div",{className:d.optionLabel},i)),u&&l().createElement("span",{className:d.counter},(0,c.k7L)(n,999)))},Wl=(0,s.curry)(((e,t)=>!!t.find((0,s.propEq)("value",e.value)))),Yl=(0,s.curry)(((e,t)=>{const r=t.findIndex((0,s.propEq)("value",e.value));return-1!==r?(0,s.remove)(r,1,t):t})),Gl=e=>{let{defaultFilterOptions:t=[],filterOptions:r,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=Hl(),[u,p]=(0,a.useState)(null),[f,m]=(0,a.useState)(t),[h,y]=(0,a.useState)(n||null),g=()=>p(null),v=e=>{m((0,s.ifElse)(Wl(e),Yl(e),(0,s.concat)([e])))},E=!!f.length,x=!!u,O=Z()(c.filterIconWrapper,{[c.filterIconWrapperActive]:x,[c.filterIconWrapperSelected]:E}),w=E?c.filterIconFilterApplied:c.filterIcon;return l().createElement("div",{className:c.serachWrapper},l().createElement(zl.Z,{autofocus:!0,onChange:e=>{y(e),i(e||"")},initialValue:n||null,height:40,placeholder:d().text("Search attribute name"),"data-reltio-id":"reltio-dq-dashboard-attributes-search-input",classes:{root:Z()(c.searchInput,{[c.filledInput]:!!h})}}),l().createElement("div",{className:c.filterByDetails,"data-reltio-id":"reltio-dq-dashboard-attributes-filter"},l().createElement("div",{className:O,onClick:e=>p(e.currentTarget)},l().createElement(Fl.Z,{className:w})),l().createElement(Ul.ZP,{open:!!u,anchorEl:u,onClose:()=>{m((0,s.always)(t)),g()},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{"data-reltio-id":"reltio-dq-dashboard-attributes-filter-popup"}},l().createElement("div",{className:c.menu},l().createElement(b.Z,{variant:"h6",className:c.dropdownMenuTitle},d().text("Filter")),l().createElement("div",{className:c.valueContainer},r.map((e=>{let{label:t,options:r}=e;return l().createElement("div",{key:t},t&&l().createElement(b.Z,{variant:"caption",className:c.groupLabel},t),r.map((e=>{const t=Wl(e,f);return l().createElement(Zl,{key:e.label,data:e,isSelected:t,onChange:v})})))})))),l().createElement("div",{className:c.actionsContainer},l().createElement(he.Z,{onClick:()=>{m([])},className:c.clearAllButton,disabled:!E,"data-reltio-id":"reltio-dq-dashboard-filter-clear-all-button"},d().text("Clear all")),l().createElement(he.Z,{onClick:()=>{m(t),g()},"data-reltio-id":"reltio-dq-dashboard-filter-cancel-button"},d().text("Cancel")),l().createElement(he.Z,{color:"primary",onClick:()=>{o(f),g()},"data-reltio-id":"reltio-dq-dashboard-filter-apply-button"},d().text("Apply"))))))},ql=(0,E.Z)((e=>({root:{width:"480px",display:"flex",flexDirection:"column",borderRight:"solid 1px rgba(0, 0, 0, 0.12)",flexGrow:1},title:{height:"24px",margin:"16px",display:"flex",alignItems:"center",fontSize:"12px",color:"rgba(0, 0, 0, 0.54);"},itemCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px"},listWrapper:{flexGrow:1,overflow:"hidden",position:"relative"},columnsTitle:{height:"48px",display:"grid",gridGap:"32px",gridTemplateColumns:"308px 108px",alignItems:"center",padding:"0 16px",background:"rgba(0, 0, 0, 0.06)",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",fontWeight:500,fontSize:"12px",lineHeight:"16px",color:"rgba(0, 0, 0, 0.54)"},loaderWrapper:{position:"absolute",top:"0",left:"0",width:"100%",height:"4px",zIndex:1}}))),$l=e=>{var t,r;let{entityType:i,onAttributesListChange:o,defaultFieldName:u,defaultFilterOptions:p,defaultFilterText:f,disableAttributeSelection:v}=e;const b=ql(),E=(0,a.useRef)(),x=(0,a.useRef)(),[O,w]=(0,a.useState)(f||""),[N,T]=(0,a.useState)([]),[S,R]=(0,a.useState)(p||[]),[I,A]=(0,a.useState)({fieldName:u}),[C,D]=(0,a.useState)({}),{data:L}=(0,a.useContext)(Ue),{data:P,state:_}=(e=>{const[t,r]=(0,a.useState)(y.o.INIT),[l,n]=(0,a.useState)({}),i=(0,g._)(),o=e=>{console.error(e),r(y.o.ERROR),n({})},s=(0,a.useCallback)((()=>(r(y.o.LOADING),n({}),i((0,c.aTW)({entityTypeUri:e})).then(_e).then((e=>{n(e),r(y.o.LOADED)})).catch(o))),[r,n,e]),u=(0,a.useCallback)((()=>{try{s()}catch(e){o(e)}}),[s]);return(0,a.useEffect)((()=>{u()}),[u]),{data:l,state:t,reload:u}})(i.uri);(0,a.useEffect)((()=>D(P)),[P]),(0,a.useEffect)((()=>{const e=(null==L?void 0:L.fillRate)&&Pe(null==L?void 0:L.fillRate),t=C[I.fieldName];D((r=>!e||(0,s.equals)(t,e)?r:(0,s.assoc)(I.fieldName,e,r)))}),[null==L?void 0:L.fillRate]);const j=null===(t=(0,a.useContext)($r))||void 0===t||null===(r=t.dvfs)||void 0===r?void 0:r.state,M=((e,t)=>{var r,l;const i=(0,n.useSelector)(h.ZP.selectors.getMetadata),o=(0,a.useMemo)((()=>(e=>(0,s.pipe)(c.WN0,dt(e),yt))(t)(i,e)),[i,e,t]),[u,d]=(0,a.useState)([]),p=e.uri,f=(0,a.useMemo)((()=>(0,c.qhs)(i,p)),[i,p]),m=null===(r=(0,a.useContext)($r))||void 0===r||null===(l=r.dvfs)||void 0===l?void 0:l.data;return(0,a.useEffect)((()=>{m&&d(o.map((0,s.evolve)({attributeItem:e=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){kl(e,t,r[t])}))}return e}({},e,{details:mt({attrTypeItem:e,dvf:m,matchAttributes:f})},e.children&&{children:e.children.map((t=>(t.details=mt({attrTypeItem:t,dvf:m,matchAttributes:f}),t.details.reference=e.isAttributeReference,t)))})})))}),[o,f,m]),u})(i,O),{filteredItems:k,filterOptions:F}=(0,a.useMemo)((()=>{const e=_l(S,C,M),t=(e=>{const t=Object.values(at).map((e=>({value:e,label:ht(e),group:"details"}))).map((t=>(0,s.assoc)("count",((e,t)=>e.filter((e=>it([t],e.attributeItem))).length)(e,t),t)));return{label:d().text("Attribute properties"),options:t}})(e);return{filteredItems:Ml(S,e),filterOptions:[{label:"",options:[{label:d().text("Show attributes with no data"),value:Pl.SHOW_EMPTY,group:"emptiness"}]},t]}}),[M,S,C]),U=(0,a.useMemo)((()=>((e,t)=>e.filter((e=>{let{attributeItem:r}=e;return!t.some((e=>r.fieldName.startsWith(e)&&r.fieldName!==e))})))(k,N)),[k,N]),z=k.length,B=e=>{o({selectedDetailedAttributeType:e,filterText:O,filterOptions:S}),A({fieldName:e.fieldName})},V=()=>{const e=((e,t)=>(0,s.pipe)((0,s.find)(Dl(t)),(0,s.propOr)(null,"attributeItem"))(e))(k,I.fieldName)||Cl(k);return(0,s.isEmpty)(e)||v?null:e};(0,a.useEffect)((()=>{var e,t,r;if(v)return void(null===(r=E.current)||void 0===r||r.scrollTo(0));if(k.length){const e=V();A({fieldName:(null==e?void 0:e.fieldName)||I.fieldName})}const a=((e,t)=>(0,s.findIndex)(Dl(t))(e))(k,I.fieldName);a>-1?null===(e=E.current)||void 0===e||e.scrollToItem(a,"center"):null===(t=E.current)||void 0===t||t.scrollTo(0)}),[k]),(0,a.useEffect)((()=>{const e=V();o({selectedDetailedAttributeType:e,filterText:O,filterOptions:S})}),[O,S,I]),(0,a.useEffect)((()=>{A((e=>{let{fieldName:t}=e;return v?{fieldName:null}:{fieldName:t}}))}),[v]);const H=e=>{let{scrollOffset:t}=e;if(x.current){var r,a;const e=null===(r=x.current)||void 0===r||null===(a=r.style)||void 0===a?void 0:a.borderTop;0===t&&(x.current.style.borderTop=""),t>0&&""===e&&(x.current.style.borderTop="1px solid rgba(0, 0, 0, 0.05)")}},Z=e=>{let{data:t,index:r,style:a}=e;const{attributeItem:n,level:i=0}=t[r],o=I.fieldName===n.fieldName,c=((e,t)=>e[t.fieldName])(C,n),u=r>0&&i>(0,s.pathOr)(-1,[r+1,"level"],U);return l().createElement(Il,{fillRateData:c,fillRateState:_,style:a,detailedAttributeType:n,level:i,onClick:B,selected:o,onCollapse:(d=n.fieldName,()=>{T((e=>e.includes(d)?e.filter((e=>e!==d)):e.concat(d)))}),isCollapsed:N.includes(n.fieldName),isLastLevelItem:u});var d},W=U.length,Y=!!W,G=_===y.o.LOADING||j===y.o.LOADING||_===y.o.INIT||j===y.o.INIT;return l().createElement("div",{className:b.root},l().createElement("div",{className:b.title},d().text("Attributes"),l().createElement("span",{className:b.itemCount},`${z} ${q=z,1===q?d().text("item"):d().text("items")}`),l().createElement(Gl,{defaultFilterText:f,defaultFilterOptions:S,onChangeFilterOptions:R,onChangeFilterText:w,filterOptions:F})),l().createElement("div",{ref:x,className:b.listWrapper,"data-reltio-id":"reltio-dq-dashboard-attributes-list"},l().createElement("div",{className:b.loaderWrapper},G&&l().createElement(me.Z,null)),Y?l().createElement(de.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return l().createElement(pl.FixedSizeList,{ref:E,itemCount:W,width:"100%",height:t,itemData:U,itemSize:48,onScroll:H},Z)})):!G&&l().createElement(we,{height:349,data:{Icon:m.B9.SEARCH_RESULTS,title:d().text("No results found"),message:d().text("Try adjusting your search or filter to find\nwhat you’re looking for")},variant:ge.MEDIUM})));var q},Ql=(0,E.Z)((e=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowX:"hidden",overflowY:"auto",fontFamily:"Roboto, Helvetica, Arial, sans-serif",display:"flex",flexDirection:"column"},content:{display:"flex",flexGrow:1,overflow:"hidden"},additionalLabel:{color:e.palette.text.secondary,marginLeft:"10px"},entityLevelButton:{height:"48px",padding:"0 16px",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",borderRight:"1px solid rgba(0, 0, 0, 0.1)",fontSize:"16px",lineHeight:"48px",color:"rgba(0, 0, 0, 0.87)",cursor:"pointer"},selectedButton:{background:"#F0F7FC"},wrapper:{display:"flex",flexDirection:"column"}})));function Kl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Xl(e,t,r[t])}))}return e}function Xl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Jl=(0,s.path)([0,"value"]),en=e=>{var t,r,i;let{config:o,saveState:u,getSavedState:b}=e;const E=Ql(),{entityType:x,tabs:w,setEntityTypeByUri:T}=(()=>{const e=(0,n.useSelector)(h.ZP.selectors.getMetadata),t=(0,a.useMemo)((()=>e.entityTypes.filter(c.oDv)),[e.entityTypes]),r=v(t),[l,i]=(0,a.useState)(null);return{entityType:l,tabs:(0,a.useMemo)((()=>t.map(((e,t)=>{let{label:a,uri:l}=e;return{label:a,value:l,additionalLabel:Number((null==r?void 0:r[(0,c.nIW)(l)])||0),dataReltioId:`reltio-dq-dashboard-entity-tab-${t}`}}))),[t,r]),setEntityTypeByUri:(0,s.pipe)((0,c.nt9)(e),i)}})(),[S,R]=(0,a.useState)(null),{isLoaded:I,savedState:P}=(0,p.a)(b),_=(0,n.useSelector)(h.ZP.selectors.getCanUserGetDQStatistic),[j,M]=(0,a.useState)(),k=(e=>{const[t,r]=(0,a.useState)(null),[l,i]=(0,a.useState)(null),o=(0,g._)(),u=(0,n.useSelector)(h.ZP.selectors.getUIPath),d=(0,n.useSelector)(h.ZP.selectors.getEnvironment),p=(0,n.useSelector)(h.ZP.selectors.getTenant);return(0,a.useEffect)((()=>{o((0,c.f_2)({uiPath:u,tenant:p,environment:d,options:{method:"GET"}})).then((e=>{var t;const a=null==e||null===(t=e.data)||void 0===t?void 0:t.apps.find((0,s.propEq)("name","Console")).uri;r(a)})).catch((()=>r(null)))}),[d,p,u]),(0,a.useEffect)((()=>{const r=t&&null!=e&&e.uri?(0,s.pipe)((0,s.split)("?"),(0,s.insert)(1,`datamodeler/entityDetails/${(0,c.nIW)(e.uri)}/validation?`),(0,s.join)(""))(t):null;i(r)}),[e,t]),l})(x),F=(e=>{const[t,r]=(0,a.useState)(null),[l,i]=(0,a.useState)(y.o.INIT),[o,s]=(0,a.useState)(),u=(0,n.useSelector)(h.ZP.selectors.getTenant),d=(0,n.useSelector)(h.ZP.selectors.getDVFPath),p=(0,g._)(),f=(0,n.useSelector)(h.ZP.selectors.getEnvironment),m=e=>{console.error(e),i(y.o.ERROR),r([]),s(null==e?void 0:e.errorCode)},v=e=>{r(e.functions),s(void 0),i(y.o.LOADED)},b=(0,a.useCallback)((()=>{if(e&&f)return i(y.o.LOADING),p((0,c.HaQ)({dvfPath:d,tenant:u,entityTypeUri:e,env:f})).then(v).catch(m)}),[d,u,e,f]);return(0,a.useEffect)((()=>{b()}),[b]),{data:t,state:l,reload:b,errorCode:o}})(null==x?void 0:x.uri),U={dvfs:F,dvfConfigLink:k},B=(e=>{let{entityType:t,detailedAttributeType:r,dataLevel:l}=e;const[n,i]=(0,a.useState)(y.o.INIT),[o,s]=(0,a.useState)({}),u=null==r?void 0:r.fieldName,d=null==t?void 0:t.uri,p=(0,g._)(),f=e=>{console.error(e),i(y.o.ERROR),s({})},m=(0,a.useCallback)((async()=>{if(i(y.o.LOADING),l===C.ENTITY_TYPE){var e,a;const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:[d]}]),r=await(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.ACTIVE_ONLY,filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}),l=await(0,c.FK9)({query:(0,c.ECL)({activeness:c.YJ7.INACTIVE_ONLY,filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]});return s({summary:{inactiveProfiles:null===(e=l.type)||void 0===e?void 0:e[(0,c.nIW)(d)],activeProfiles:null===(a=r.type)||void 0===a?void 0:a[(0,c.nIW)(d)],sourceSystems:8}}),void i(y.o.LOADED)}if(t&&r)return p((0,c.TTx)({entityTypeUri:d,attributeFieldName:u})).then((e=>{s(e),i(y.o.LOADED)})).catch(f)}),[i,s,u,d]),h=(0,a.useCallback)((()=>{try{m()}catch(e){f(e)}}),[m]);return(0,a.useEffect)((()=>{h()}),[h]),{data:o,state:n,reload:h}})({entityType:x,detailedAttributeType:S,dataLevel:j}),V=null==w?void 0:w.map((e=>Kl({},e,{additionalLabel:l().createElement("span",{className:E.additionalLabel},"(",(0,c.k7L)(e.additionalLabel,999),")")}))),H=(0,a.useCallback)((e=>{(null==x?void 0:x.uri)!==e&&(R(null),T(e),j===C.ENTITY_TYPE&&u(Kl({dataLevel:j,entityTypeUri:e},$.current&&{filterOptions:$.current.filterOptions,filterText:$.current.filterText})))}),[null==x?void 0:x.uri]),W=(null===(t=o.layoutsByDataLevel)||void 0===t?void 0:t[C.ENTITY_TYPE])||L[C.ENTITY_TYPE],Y=null===(r=o.layoutsByDataLevel)||void 0===r?void 0:r[C.ATTRIBUTE_TYPE],G=(0,a.useMemo)((()=>j===C.ENTITY_TYPE&&W?W:((e,t)=>{const r=z(t),a=(0,s.mergeLeft)(e,L[C.ATTRIBUTE_TYPE]);return a[r]||a.default||[]})(Y,null==S?void 0:S.type)),[W,null==S?void 0:S.type,Y,j]),q=(0,a.useMemo)((()=>((e,t,r,a)=>{const l=(0,s.uniqBy)((0,s.prop)("id"),(0,s.concat)((null==e?void 0:e[a])||[],D[a]||[])),n=(e=>{switch(e){case C.ATTRIBUTE_TYPE:return(e=>{switch(e){case A.INTEGER:case A.FLOAT:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART,N.VALUE_DISTRIBUTION];case A.BOOLEAN:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY];case A.STRING:return[N.LENGTH,N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART];case A.DATE:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART,N.VALUE_DISTRIBUTION,N.MONTH_DISTRIBUTION,N.DAY_OF_MONTH_DISTRIBUTION,N.DAY_OF_WEEK_DISTRIBUTION];case A.SSN:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART,N.PATTERN];case A.UNKNOWN:return[N.SUMMARY,N.CROSSWALK,N.VALIDATION,N.FILL_RATE_CHART,N.FREQUENCY,N.UNIQUENESS_CHART,N.LENGTH];default:return[]}})(z(t));case C.ENTITY_TYPE:return[N.SUMMARY];default:return[]}})(a);return r.reduce(((e,t)=>{const r=(0,s.prop)("type",e.find((0,s.propEq)("id",t.id)));if(!n.includes(r)){const r=e.findIndex((0,s.propEq)("id",t.id));if(-1!==r)return(0,s.adjust)(r,(0,s.assoc)("type",N.UNSUPPORTED),e)}return e}),l)})(o.viewsByDataLevel,null==S?void 0:S.type,G,j)),[null==S?void 0:S.type,G,j]);(0,a.useEffect)((()=>{I&&(T(P.entityTypeUri||Jl(w)),M(W?P.dataLevel||C.ENTITY_TYPE:C.ATTRIBUTE_TYPE))}),[I]);const $=(0,a.useRef)(),Q=!(null===(i=w.find((0,s.propEq)("value",null==x?void 0:x.uri)))||void 0===i||!i.additionalLabel),K=x&&_&&I&&Q;return l().createElement("div",{className:E.perspectiveView},l().createElement(O,{title:d().text("Data Quality")},x&&l().createElement(f.Z,{value:x.uri,tabs:V,onChange:H,scrollButtons:"auto"})),l().createElement("div",{className:E.content},K&&l().createElement(l().Fragment,null,l().createElement(Ue.Provider,{value:B},l().createElement($r.Provider,{value:U},l().createElement("div",{className:E.wrapper},W&&l().createElement("div",{className:Z()(E.entityLevelButton,{[E.selectedButton]:j===C.ENTITY_TYPE}),onClick:()=>{R(null),M(C.ENTITY_TYPE)}},`${x.label} ${d().text("summary")}`),l().createElement($l,{entityType:x,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:r,filterOptions:a}=e;const l=null==t?void 0:t.fieldName,n={entityTypeUri:x.uri,fieldName:l,filterOptions:a,filterText:r,dataLevel:j};!l&&j!==C.ENTITY_TYPE||(0,s.equals)($.current,n)||(u(n),$.current=n),l&&M(C.ATTRIBUTE_TYPE),R(t)},defaultFieldName:null==P?void 0:P.fieldName,defaultFilterText:null==P?void 0:P.filterText,defaultFilterOptions:null==P?void 0:P.filterOptions,disableAttributeSelection:j===C.ENTITY_TYPE})),(S||j===C.ENTITY_TYPE)&&l().createElement(ar.Provider,{value:j},l().createElement(Ve.Provider,{value:x},l().createElement(Be.Provider,{value:S},l().createElement(dl,{views:q,layout:G}))))))),!_&&l().createElement(Ee,{height:359,errorData:{title:d().text("You don’t currently have permission to view this page"),message:d().text(" Please contact your Tenant Admin to change permissions")},variant:ge.LARGE}),I&&x&&!Q&&_&&l().createElement(we,{height:359,data:{Icon:m.B9.NO_DATA,title:d().text("Give us something to go on!"),message:d().text("Go ahead and load some data. We’ll put it on the scales and\nlet you know here if it measures up.")},variant:ge.LARGE})))};function tn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rn=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){tn(e,t,r[t])}))}return e}({},c.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}}),an=(0,i.Z)(rn),ln=(0,o.createGenerateClassName)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0}),nn=e=>{let{store:t,config:r,saveState:i,getSavedState:s}=e;const u=(0,a.useCallback)((0,c.aYu)(s),[s]);return l().createElement(n.Provider,{store:t},l().createElement(o.ThemeProvider,{theme:an},l().createElement(o.StylesProvider,{generateClassName:ln},l().createElement(en,{config:r,saveState:i,getSavedState:u}))))}},15115:(e,t,r)=>{t.Z=void 0;var a=m(r(72579)),l=m(r(54073)),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var n=a?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(r,l,n):r[l]=e[l]}return r.default=e,t&&t.set(e,r),r}(r(24328)),i=m(r(13980)),o=m(r(71153)),c=m(r(16805)),s=m(r(2630)),u=m(r(81819)),d=m(r(21853)),p=m(r(87685));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(f,e);var t,r,i=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var r,a=E(e);if(t()){var l=E(this).constructor;r=Reflect.construct(a,arguments,l)}else r=a.apply(this,arguments);return v(this,r)}}(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),x(b(t=i.call(this,e)),"emitChange",(0,l.default)((function(e){return t.props.onChange(e)}),200)),x(b(t),"handleChange",(function(e){var r=(0,a.default)(e,["target","value"]);t.setState({value:r}),t.emitChange(r)})),x(b(t),"handleFocus",(function(){return t.inputRef.current.focus()})),x(b(t),"handleOpen",(function(){t.props.forceOpen||t.setState({open:!0},t.handleFocus)})),x(b(t),"handleClose",(function(){t.props.forceOpen||t.setState({open:!1}),t.setState({value:""}),t.emitChange()})),t.state={open:Boolean(t.props.initialValue),value:t.props.initialValue||""},t.inputRef=n.default.createRef(),t}return t=f,(r=[{key:"render",value:function(){var e=this.state,t=e.open,r=e.value,a=this.props,l=a.classes,i=a.placeholder,f=a.forceOpen,m=t||f,h=t||f&&r;return n.default.createElement("div",{className:(0,o.default)(c.default.searchInputContainer,x({},c.default.colored,m),l.root)},n.default.createElement(s.default,{name:"expand-input-btn",onClick:this.handleOpen},n.default.createElement(d.default,null)),m&&n.default.createElement(u.default,{value:r,disableUnderline:!0,className:c.default.searchInputField,classes:{input:c.default.input},placeholder:i,onChange:this.handleChange,inputProps:{ref:this.inputRef}}),h&&n.default.createElement(s.default,{name:"collapse-input-btn",onClick:this.handleClose},n.default.createElement(p.default,null)))}}])&&y(t.prototype,r),f}(n.PureComponent);t.Z=O,O.defaultProps={classes:{},forceOpen:!1},O.propTypes={classes:i.default.shape({root:i.default.string}),placeholder:i.default.string,forceOpen:i.default.bool,onChange:i.default.func.isRequired,initialValue:i.default.string}},16805:(e,t,r)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(0,((a=r(86698))&&a.__esModule?a:{default:a}).default)("<style>.Form__searchInputContainer_3vqs6{display:flex;min-height:48px}.Form__searchInputField_3mnAi{flex:1 1 auto;padding:2px}.Form__input_3ulP-::-ms-clear{display:none}.Form__colored_2WMqk{background-color:#fafafa}</style>"),t.default={searchInputContainer:"Form__searchInputContainer_3vqs6",searchInputField:"Form__searchInputField_3mnAi",input:"Form__input_3ulP-",colored:"Form__colored_2WMqk"}}}]);