@reltio/remotes 1.4.929 → 1.4.930

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/994.js +1 -1
  2. package/package.json +1 -1
package/994.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[994],{98989:(e,t,a)=>{var l=a(14859);t.Z=void 0;var r=l(a(24328)),n=(0,l(a(50175)).default)(r.default.createElement(r.default.Fragment,null,r.default.createElement("path",{d:"M10 17l5-5-5-5v10z"}),r.default.createElement("path",{fill:"none",d:"M0 24V0h24v24H0z"})),"ArrowRight");t.Z=n},82726:(e,t,a)=>{var l=a(14859);t.Z=void 0;var r=l(a(24328)),n=(0,l(a(50175)).default)(r.default.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.Z=n},43266:(e,t,a)=>{var l=a(14859);t.Z=void 0;var r=l(a(24328)),n=(0,l(a(50175)).default)(r.default.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");t.Z=n},21853:(e,t,a)=>{var l=a(14859);t.Z=void 0;var r=l(a(24328)),n=(0,l(a(50175)).default)(r.default.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.Z=n},88059:(e,t,a)=>{a.r(t),a.d(t,{default:()=>en});var l=a(24328),r=a.n(l),n=a(52730),i=a(33016),o=a(36138),c=a(7771),s=a(17440),u=a(87918),p=a.n(u),d=a(11326),f=a(7907),m=a(79002),h=a(89810),y=a(5260);var v=a(90436),g=a(79692);const E=(0,g.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"}}),b=e=>{let{title:t,children:a}=e;const l=E();return r().createElement("div",{className:l.root},r().createElement(v.Z,{variant:"body2",className:l.title},t),r().createElement("div",{className:l.content},a))};var x=a(17822);let O;!function(e){e.FILL_RATE_CHART="fillRate",e.UNIQUENESS_CHART="uniqueness",e.SUMMARY="summary",e.VALIDATION="validation",e.FREQUENCY="frequency",e.LENGTH="length",e.CROSSWALK="crosswalk",e.MONTH_DISTRIBUTION="monthDistribution",e.DAY_OF_WEEK_DISTRIBUTION="dayOfWeekDistribution",e.DAY_OF_MONTH_DISTRIBUTION="dayOfMonthDistribution",e.VALUE_DISTRIBUTION="valueDistribution",e.PATTERN="patternAnalysis",e.UNSUPPORTED="unsupported"}(O||(O={}));var w=a(45644),N=a(78223),T=a(39878);const S=(e,t,a)=>({attributes:(t||[]).map(((t,l)=>{let{filter:r,fieldName:n,values:i}=t;return{data:{uri:null==a?void 0:a.uri,entityTypeUri:e,fieldName:n},filter:r,id:`attribute_${l}`,operator:"and",values:i}})),entityTypes:[e],id:"group",operator:"or"});let R,I;!function(e){e.STRING="string",e.FLOAT="float",e.INTEGER="integer",e.BOOLEAN="boolean",e.DATE="date",e.SSN="SSN",e.UNKNOWN="unknown"}(R||(R={})),function(e){e.ENTITY_TYPE="entityType",e.ATTRIBUTE_TYPE="attributeType"}(I||(I={}));const A={[I.ATTRIBUTE_TYPE]:[{id:"FillRateView",type:O.FILL_RATE_CHART,title:"Fill rate"},{id:"UniquenessAnalysisView",type:O.UNIQUENESS_CHART,title:p().text("Uniqueness analysis")},{id:"SummaryView",type:O.SUMMARY,title:p().text("Summary")},{id:"ValidationView",type:O.VALIDATION,title:p().text("Profiles that violated validation function")},{id:"FrequencyAnalysis",type:O.FREQUENCY,title:p().text("Frequency analysis")},{id:"LengthStatistics",type:O.LENGTH,title:p().text("Length statistics")},{id:"PatternAnalysis",type:O.PATTERN,title:p().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:O.CROSSWALK,title:p().text("Crosswalk analysis")},{id:"MonthDistribution",type:O.MONTH_DISTRIBUTION,title:p().text("Month distribution")},{id:"DayOfWeekDistribution",type:O.DAY_OF_WEEK_DISTRIBUTION,title:p().text("Day of week distribution")},{id:"DayOfMonthDistribution",type:O.DAY_OF_MONTH_DISTRIBUTION,title:p().text("Day of month distribution")},{id:"ValueDistribution",type:O.VALUE_DISTRIBUTION,title:p().text("Value distribution")},{id:"UnsupportedDataType",type:O.UNSUPPORTED,title:p().text("Unsupported Data Type")}],[I.ENTITY_TYPE]:[{id:"SummaryView",type:O.SUMMARY,title:p().text("Summary")}]},C={[I.ATTRIBUTE_TYPE]:{default:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"LengthStatistics"},{x:0,y:38,width:4,height:19,id:"CrosswalkAnalysis"}],[R.SSN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"PatternAnalysis"},{x:0,y:38,width:4,height:19,id:"CrosswalkAnalysis"}],[R.BOOLEAN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"FrequencyAnalysis"},{x:0,y:19,width:4,height:19,id:"CrosswalkAnalysis"}],[R.DATE]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:0,y:38,width:4,height:19,id:"CrosswalkAnalysis"},{x:0,y:57,width:4,height:19,id:"ValueDistribution"},{x:0,y:76,width:2,height:19,id:"MonthDistribution"},{x:2,y:76,width:2,height:19,id:"DayOfWeekDistribution"},{x:0,y:95,width:4,height:19,id:"DayOfMonthDistribution"}],[R.INTEGER]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"ValueDistribution"},{x:0,y:38,width:4,height:19,id:"CrosswalkAnalysis"}],[R.FLOAT]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"ValueDistribution"},{x:0,y:38,width:4,height:19,id:"CrosswalkAnalysis"}]}};function M(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){D(e,t,a[t])}))}return e}function D(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const L=(0,s.map)((e=>M({},e,{localizedValue:p().number(e.value)}))),P=e=>(0,s.isNil)(e)?"":`(${e}%)`,j=e=>(0,s.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),F=(0,s.curry)(((e,t,a)=>({advanced:[S(t,a.map((0,s.when)((()=>(0,c.Lt4)(e.type)),(0,s.evolve)({values:(0,s.map)((0,c.mOr)(c.ZBU))}))),e)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}))),k=e=>t=>{let{detailedAttributeType:a,entityTypeUri:l,dvfs:r}=t;return(0,s.pipe)(e({fieldName:a.fieldName,entityTypeUri:l,dvfs:r}),F(a,l))},U=e=>{switch(e){case c.oS0.TYPE_BLOB:case c.oS0.TYPE_BLOG_URL:case c.oS0.TYPE_CIK_ID:case c.oS0.TYPE_ENTITY_ID:case c.oS0.TYPE_IMAGE_URL:case c.oS0.TYPE_STRING:case c.oS0.TYPE_TEXT:case c.oS0.TYPE_URL:return R.STRING;case c.oS0.TYPE_COUNT:case c.oS0.TYPE_DOLLAR:case c.oS0.TYPE_INT:case c.oS0.TYPE_LONG:return R.INTEGER;case c.oS0.TYPE_FLOAT:case c.oS0.TYPE_DOUBLE:case c.oS0.TYPE_NUMBER:return R.FLOAT;case c.oS0.TYPE_BOOLEAN:case c.oS0.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return R.BOOLEAN;case c.oS0.TYPE_ACTIVENESS_DATE:case c.oS0.TYPE_DATE:case c.oS0.TYPE_LOCAL_DATE:case c.oS0.TYPE_TIMESTAMP:return R.DATE;case c.oS0.TYPE_SSN:return R.SSN;default:return R.UNKNOWN}},z=e=>{let{percent:t,value:a}=e;return M({width:`${t}%`},a>0&&{minWidth:"3px"})},_=(0,s.pipe)((0,s.pluck)("percent"),(e=>Math.max(...e)));var V=a(71153),B=a.n(V);const H=(0,g.Z)({wrapper:{width:"100%",display:"flex",justifyContent:"center",margin:"auto",flexWrap:"wrap",flexDirection:"column",marginBottom:2},item:{display:"flex",alignItems:"center",height:19},itemColor:{width:12,height:12,marginRight:9,flexShrink:0}}),Y=e=>{let{payload:t}=e;const a=H();return r().createElement("div",{className:B()(a.wrapper)},t.map((e=>r().createElement("div",{key:e.id,className:a.item},r().createElement("div",{style:{background:e.color},className:a.itemColor}),e.value))))},Z=(0,g.Z)({root:{display:"flex",flexDirection:"column",height:"100%"},stackedBar:{width:"100%",display:"flex",flexWrap:"nowrap",marginTop:"13px"},bar:{height:"24px",flexGrow:1,position:"relative",width:"50%",transition:"width 0.7s","&:hover":{"&:after":{content:'""',background:"rgba(0, 0, 0, 0.1)"}},"&:after":{position:"absolute",top:"-3px",bottom:"-5px",left:"-5px",right:"-5px",transition:"background 0.3s",zIndex:1,pointerEvents:"none"}},inactivePart:{background:"#EFEFEF"},tooltipTitle:{fontSize:"11px"},tooltipFillRate:{marginTop:"4px"},tooltip:{background:"#fff",filter:"drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)) drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2))",padding:"5px 8px"},legendWrapper:{position:"relative",flexGrow:1},legendLabel:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},legendValue:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.87)"},clickable:{cursor:"pointer"}});function G(){return G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},G.apply(this,arguments)}const W=(0,l.forwardRef)(((e,t)=>{let{className:a}=e,l=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["className"]);const n=Z();return r().createElement("div",G({className:B()(n.bar,a)},l,{ref:t}))}));W.displayName="Bar";const q=W,Q=(0,g.Z)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"}}),$=e=>{let{label:t,value:a}=e;const l=Q();return r().createElement(r().Fragment,null,t&&r().createElement("span",{className:B()(l.label,l.chartDataLabel)},t),a)},K=(0,g.Z)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),X=e=>{let{data:t,title:a,DataRenderer:l=$}=e;const n=K();return r().createElement("div",{className:n.tooltipWrapper},a&&r().createElement("div",{className:n.title},a),t.map(((e,t)=>r().createElement("div",{key:t,className:n.row},r().createElement(l,e)))))};function J(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){ee(e,t,a[t])}))}return e}function ee(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const te=(0,N.Z)(q),ae=e=>{let{label:t,value:a,percent:l}=e;return[{label:t,value:`${p().number(a)} ${P(l)}`}]},le=(0,T.Z)((e=>{let{data:t,colors:a,onItemClick:l}=e;const n=Z(),i=l&&(e=>l(e)),o=!!l;return r().createElement("div",{className:n.root},r().createElement("div",{className:n.stackedBar},t.map(((e,t)=>r().createElement(te,{className:o&&n.clickable,key:e.label,tooltipTitle:r().createElement(X,{data:ae(e)}),style:J({},z(e),{background:a[t]}),onClick:()=>i(e.group)})))),r().createElement("div",{className:n.legendWrapper},r().createElement(w.De,{layout:"vertical",align:"left",verticalAlign:"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%"},content:r().createElement(Y,null),payload:(t||[]).map(((e,t)=>{let{group:l,label:i,value:o,percent:s}=e;return{id:l,type:"square",color:a[t],value:r().createElement(r().Fragment,null,r().createElement("span",{className:n.legendLabel},i),r().createElement("span",{className:n.legendValue},`${(0,c.k7L)(o,999)} ${P(s)}`))}}))})))}));var re=a(17998),ne=a(39475),ie=a(82726);const oe=(0,g.Z)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:e=>e?0:"5px"},infoIcon:{position:"relative"}}))),ce=e=>{let{title:t,infoTooltipTitle:a,children:l}=e;const n=oe(!!l),i=!!a;return r().createElement(re.Z,{title:t,className:n.root,classes:{title:n.title}},i&&r().createElement(ne.k,{icon:ie.Z,size:"XXS",tooltipTitle:a,className:n.infoIcon}),l)};var se=a(54823);const ue=(0,g.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}})));function pe(){return pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},pe.apply(this,arguments)}const de=e=>{let{className:t}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["className"]);const l=ue();return r().createElement(se.Z,pe({},a,{className:B()(l.viewContent,t)}))};var fe=a(1730);const me=(0,g.Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),he=e=>{let{config:t,children:a}=e;const l=me(),{type:n}=t;return r().createElement(fe.Z,{className:l.view,"data-reltio-id":`reltio-dq-dashboard-chart-${n}`},a)},ye=e=>{let{label:t,value:a}=e;const l=Q();return r().createElement(r().Fragment,null,t&&r().createElement("span",{className:B()(l.label,l.infoDataLabel)},t),a)},ve={[c.s9T.MISSING]:"#CE5C00",[c.s9T.EXISTS]:"#C4CE00"},ge=(0,s.map)((e=>{let{group:t}=e;return ve[t]||(0,c.f4_)(t)})),Ee=e=>({[c.s9T.MISSING]:p().text("Missing"),[c.s9T.EXISTS]:p().text("Exists")}[e]||e),be=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:Ee(t),group:t,value:a}})),(0,s.sortBy)((e=>Object.values(c.s9T).indexOf(e.group))),L),xe=e=>Object.keys(e).reduce(((t,a)=>(t[a]=be(e[a]),t)),{}),Oe=(0,s.propOr)({},"fillRate"),we=(0,s.pipe)(Oe,be,(0,s.when)(j,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,ge])),Ne=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:t===c.s9T.EXISTS?c.j5E.EXISTS:c.j5E.MISSING_VALUE,fieldName:a}]})),Te=k(Ne),Se=r().createContext(null);Se.displayName="ChartsDataContext";const Re=e=>{const{data:t,state:a,reload:r}=(0,l.useContext)(Se);return{data:(0,l.useMemo)((()=>e(t)),[t,e]),state:a,reload:r}},Ie=r().createContext(null);Ie.displayName="DVFContext";const Ae=r().createContext(null);Ae.displayName="DetailedAttributeTypeContext";const Ce=r().createContext(null);Ce.displayName="EntityTypeContext";const Me=e=>{const t=(0,n.useDispatch)(),a=(0,l.useContext)(Ae),r=(0,l.useContext)(Ce),i=(0,l.useContext)(Ie).data;return(0,s.pipe)(e({detailedAttributeType:a,entityTypeUri:r.uri,dvfs:i}),h.ui.actions.openSearch,t)},De=e=>{let{config:t}=e;const{title:a}=t,{data:l,state:n,reload:i}=Re(we),{chartData:o,colors:c}=l,s=Me(Te),u=r().createElement(X,{title:p().text("Fill rate"),data:[{label:`${p().text("Exists")}:`,value:p().text("Profiles with data")},{label:`${p().text("Missing")}:`,value:p().text("Profiles without data")}],DataRenderer:ye});return r().createElement(he,{config:t},r().createElement(ce,{title:a,infoTooltipTitle:u}),r().createElement(de,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return r().createElement(le,{data:t,colors:c,onItemClick:s})})))},Le={[c.dC6.UNIQUE]:"#4BAFFF",[c.dC6.NOT_UNIQUE]:"#C34980"},Pe=(0,s.map)((e=>{let{group:t}=e;return Le[t]||(0,c.f4_)(t)})),je=e=>({[c.dC6.UNIQUE]:p().text("Unique"),[c.dC6.NOT_UNIQUE]:p().text("Not unique")}[e]||e),Fe=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:je(t),group:t,value:a}})),(0,s.sortBy)((e=>Object.values(c.dC6).indexOf(e.group))),L),ke=(0,s.propOr)({},"uniqueness"),Ue=(0,s.pipe)(ke,Fe,(0,s.when)(j,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,Pe])),ze=e=>{let{config:t}=e;const{title:a}=t,{data:l,state:n,reload:i}=Re(Ue),{chartData:o,colors:c}=l,s=r().createElement(X,{title:p().text("Uniqueness analysis"),data:[{label:`${p().text("Unique")}:`,value:p().text("Number of values that only appear once and have no duplicates")},{label:`${p().text("Not unique")}:`,value:p().text("Number of values that have at least one duplicate in the list")}],DataRenderer:ye});return r().createElement(he,{config:t},r().createElement(ce,{title:a,infoTooltipTitle:s}),r().createElement(de,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return r().createElement(le,{data:t,colors:c})})))};var _e=a(82068),Ve=a(4614),Be=a(80030),He=a(7089);const Ye=(e,t)=>(e||[]).some((0,s.propEq)("attribute",t)),Ze=e=>[c.oS0.TYPE_FLOAT,c.oS0.TYPE_DOUBLE,c.oS0.TYPE_NUMBER].includes(e);let Ge;function We(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){qe(e,t,a[t])}))}return e}function qe(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}!function(e){e.INCLUDED_IN_MATCHING="includedInMatching",e.REQUIRED="required",e.RDM_LOOKUP="RDMLookup",e.CONTAIN_VF="containVF",e.REFERENCE="reference"}(Ge||(Ge={}));const Qe=(0,s.curry)(((e,t)=>e.every((e=>t.details[e.value])))),$e=(0,s.curry)(((e,t)=>{var a;return Qe(e,t)||(null===(a=t.children)||void 0===a?void 0:a.some((t=>$e(e,t))))})),Ke=(0,s.curry)(((e,t)=>{var a;const l=e[t.fieldName];return null==l||null===(a=l.find((0,s.propEq)("group",c.s9T.EXISTS)))||void 0===a?void 0:a.value})),Xe=(0,s.curry)(((e,t)=>{var a;const l=e[t.fieldName];return!(null!=l&&null!==(a=l.find((0,s.propEq)("group",c.s9T.EXISTS)))&&void 0!==a&&a.value)})),Je=(0,s.curry)((function(e,t){var a;let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=t.fieldName||(0,c.Tde)(t.uri,l);return Xe(e,We({},t,{fieldName:r}))||(null===(a=t.children)||void 0===a?void 0:a.some((a=>Je(e,a,l.concat({name:t.name,label:t.label})))))})),et=(0,s.curry)(((e,t)=>t.reduce(((t,a)=>{const l=((e,t)=>{var a;return null===(a=e.label||e.name)||void 0===a?void 0:a.toLowerCase().includes(t.toLowerCase())})(a,e),r=l?a.children||[]:et(e,a.children||[]);return(l||r.length)&&t.push(Object.assign({},a,r.length&&{children:r})),t}),[])));function tt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){at(e,t,a[t])}))}return e}function at(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const lt=e=>{let{attrTypeItem:t,dvf:a=[],matchAttributes:l=[]}=e;const{uri:r,required:n,isAttributeReference:i}=t;return{[Ge.INCLUDED_IN_MATCHING]:l.includes(r),[Ge.CONTAIN_VF]:Ye(a,r),[Ge.REQUIRED]:!!n,[Ge.RDM_LOOKUP]:(0,c.lS4)(t),[Ge.REFERENCE]:i}},rt=e=>({[Ge.INCLUDED_IN_MATCHING]:p().text("Included in matching"),[Ge.CONTAIN_VF]:p().text("Has validation functions"),[Ge.REQUIRED]:p().text("Required"),[Ge.RDM_LOOKUP]:p().text("RDM"),[Ge.REFERENCE]:p().text("Reference attribute")}[e]||e),nt=(0,s.curry)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return(0,s.pipe)((0,s.chain)((e=>{const r=e.children?nt(e.children,t.concat({name:e.name,label:e.label}),a||(0,c.YkG)(e),l+1):[];return[{attributeItem:tt({},e,{fieldName:(0,c.Tde)(e.uri,t),isAttributeReference:(0,c.YkG)(e)||a}),level:l},...r]})))(e)}));function it(){return it=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},it.apply(this,arguments)}const ot=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",it({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#6663F6"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 14.4h2.411c.016-.205.047-.405.093-.6H8.4v-1.2h3.012c.137-.215.296-.416.472-.6H8.4v-1.2h6v.011a3.896 3.896 0 011.8.287V8.4c0-.66-.54-1.2-1.2-1.2H7.8c-.66 0-1.2.54-1.2 1.2v7.8c0 .66.54 1.2 1.2 1.2h4.083a3.892 3.892 0 01-.979-1.8H8.4v-1.2zm6-4.2h-6V9h6v1.2zm2.58 5.934L18.852 18l-.852.852-1.872-1.872a2.66 2.66 0 01-1.434.42A2.695 2.695 0 0112 14.7c0-1.494 1.206-2.7 2.7-2.7 1.494 0 2.7 1.206 2.7 2.7 0 .528-.156 1.014-.42 1.434zm-2.28.066a1.5 1.5 0 10-.001-3.001A1.5 1.5 0 0014.7 16.2z",fill:"#fff"}))};function ct(){return ct=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ct.apply(this,arguments)}const st=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",ct({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#1DACF5"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4 9.6H9.3L12 6.9l2.7 2.7h-2.1v3.846l-3.6 3.6-.846-.846 3.246-3.246V9.6zm4.446 6.6l-.846.846L12.954 15l.846-.846 2.046 2.046z",fill:"#fff"}))};function ut(){return ut=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ut.apply(this,arguments)}const pt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",ut({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#7F22FD"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 9v1.2h1.2V9H8.4zm0 2.4v1.2h1.2v-1.2H8.4zm0 2.4V15h1.2v-1.2H8.4zM10.8 9v1.2h4.8V9h-4.8zm0 2.4v1.2h4.8v-1.2h-4.8zm0 2.4V15h4.8v-1.2h-4.8zm6-6v8.4H7.2V7.8h9.6zm1.2 9V6.6H6V17.4h12v-.6z",fill:"#fff"}))};function dt(){return dt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},dt.apply(this,arguments)}const ft=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",dt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#4B31E9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 15.6h1.8V15a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-3V9.6H8.4a.6.6 0 01-.6-.6V6.6a.6.6 0 01.6-.6H12a.6.6 0 01.6.6V9a.6.6 0 01-.6.6h-1.2v1.8h1.8v-.6a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-1.8v3z",fill:"#fff"}))};function mt(){return mt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},mt.apply(this,arguments)}const ht=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",mt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#80D2FC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6c-3.312 0-6 2.688-6 6s2.688 6 6 6 6-2.688 6-6-2.688-6-6-6zm-.6 4.96V9h1.2v1.96l1.698-.98.6 1.04L13.2 12l1.698.98-.6 1.04-1.698-.98V15h-1.2v-1.96l-1.698.98-.6-1.04L10.8 12l-1.698-.98.6-1.04 1.698.98zM7.2 12c0 2.646 2.154 4.8 4.8 4.8s4.8-2.154 4.8-4.8-2.154-4.8-4.8-4.8A4.806 4.806 0 007.2 12z",fill:"#fff"}))},yt=(0,g.Z)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),vt={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let gt;!function(e){e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal"}(gt||(gt={}));const Et=e=>{let{detailType:t,size:a=vt.NORMAL,variant:l=gt.NORMAL}=e;const n=yt(a),i=B()(n.icon,n[l]);switch(t){case Ge.RDM_LOOKUP:return r().createElement(pt,{className:i});case Ge.CONTAIN_VF:return r().createElement(ot,{className:i});case Ge.INCLUDED_IN_MATCHING:return r().createElement(st,{className:i});case Ge.REFERENCE:return r().createElement(ft,{className:i});case Ge.REQUIRED:return r().createElement(ht,{className:i});default:return null}},bt=(0,g.Z)({root:{height:"24px",maxWidth:"calc(100% - 8px)",margin:"0 4px 4px 0",borderRadius:"12px"},label:{fontSize:"12px",paddingLeft:"8px",paddingRight:"9px"},badQuality:{backgroundColor:"rgba(255, 23, 68, 0.12)"}});function xt(){return xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},xt.apply(this,arguments)}function Ot(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){wt(e,t,a[t])}))}return e}function wt(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Nt=e=>{let{detailType:t,classes:a}=e,n=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["detailType","classes"]);const i=bt(),{data:o,state:s}=(0,l.useContext)(Se);let u=gt.NORMAL;const p=s===y.o.LOADING,d=(e=>{var t;return 0===(null==e||null===(t=e.fillRate)||void 0===t?void 0:t[c.s9T.MISSING])})(o);return t===Ge.REQUIRED&&(p&&(u=gt.LOADING),p||d||(u=gt.BAD_QUALITY)),r().createElement(He.Z,xt({classes:Ot({root:B()(i.root,{[i.badQuality]:t===Ge.REQUIRED&&!p&&s!==y.o.INIT&&!d}),label:i.label},a),label:rt(t),icon:r().createElement(Et,{detailType:t,variant:u})},n))},Tt=(0,g.Z)({root:{display:"flex",flexWrap:"wrap",flexGrow:1}}),St=e=>{let{details:t,chipClasses:a={}}=e;const l=Tt();return r().createElement("div",{className:l.root},Object.entries(t||{}).filter((e=>{let[,t]=e;return t})).map((e=>{let[t]=e;return r().createElement(Nt,{key:t,detailType:t,classes:a})})))},Rt=(0,g.Z)({header:{display:"flex",paddingTop:"4px",marginBottom:"18px"},info:{display:"flex",flexDirection:"column","&:first-child":{borderRight:"1px solid rgba(0,0,0,0.12)",paddingRight:"24px",marginRight:"24px"}},infoTitle:{color:"rgba(0,0,0,0.54)",fontSize:"12px",lineHeight:"16px"},infoContent:{fontSize:"30px",lineHeight:"35px",padding:"5px 0 0",display:"flex",alignItems:"center"},attributeTypeIconWrapper:{width:"32px",height:"33px",background:"rgba(0, 0, 0, 0.05)",borderRadius:"4px",position:"relative",marginRight:"12px",flexShrink:0,"& svg":{position:"absolute",transform:"translate(-50%, -50%)",top:"50%",left:"50%"}},totalLoading:{padding:"4px 8px"}}),It=e=>{let{title:t,children:a}=e;const l=Rt();return r().createElement("div",{className:l.info},r().createElement("div",{className:l.infoTitle},t),r().createElement("div",{className:l.infoContent},a))};function At(){return At=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},At.apply(this,arguments)}const Ct=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",At({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg1279746712a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"15",height:"8"},r().createElement("path",{d:"M11.667 4H5C2.793 4 1 5.793 1 8s1.793 4 4 4h6.667c2.206 0 4-1.793 4-4s-1.794-4-4-4zm0 6.667H5a2.666 2.666 0 110-5.334h6.667a2.666 2.666 0 110 5.334zm0-4.667c-1.107 0-2 .893-2 2s.893 2 2 2c1.106 0 2-.893 2-2s-.894-2-2-2z",fill:"#000"})),r().createElement("g",{mask:"url(#svg1279746712a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Mt(){return Mt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Mt.apply(this,arguments)}const Dt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Mt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg208732808a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"14"},r().createElement("path",{d:"M7.992 1.333A6.663 6.663 0 001.332 8c0 3.68 2.98 6.667 6.66 6.667A6.67 6.67 0 0014.665 8a6.67 6.67 0 00-6.673-6.667zm.007 12A5.332 5.332 0 012.665 8 5.332 5.332 0 018 2.667 5.332 5.332 0 0113.332 8a5.332 5.332 0 01-5.333 5.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z",fill:"#000"})),r().createElement("g",{mask:"url(#svg208732808a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Lt(){return Lt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Lt.apply(this,arguments)}const Pt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Lt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg1638934380a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},r().createElement("path",{d:"M5.948 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2zM7.947 12v-1.1h1.1V12h-1.1zM13.65 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2z",fill:"#000"})),r().createElement("g",{mask:"url(#svg1638934380a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function jt(){return jt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},jt.apply(this,arguments)}const Ft=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",jt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("path",{d:"M2.11 12v-.825h1.331V5.169L2 5.741v-.89L3.331 4.3h1.045v6.875h1.089V12H2.11zM5.968 11.032l1.65-2.508c.242-.367.403-.62.484-.759.08-.147.136-.29.165-.429.03-.14.044-.341.044-.605v-.77a.778.778 0 00-.253-.583c-.169-.161-.389-.242-.66-.242h-1.21V4.3h1.1c.638 0 1.126.158 1.463.473.345.308.517.774.517 1.397v.462c0 .367-.018.645-.055.836-.037.19-.103.37-.198.539-.088.169-.264.455-.528.858l-1.518 2.299h2.519V12h-3.52v-.968zM13.544 10.262c0 .609-.147 1.052-.44 1.331-.293.271-.77.407-1.43.407h-1.298v-.825h1.397c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.239c0-.242-.073-.433-.22-.572-.147-.147-.341-.22-.583-.22h-1.067v-.825h.957a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.902c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187h-1.298V4.3h1.166c.623 0 1.093.14 1.408.418.323.271.484.704.484 1.298v.693c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.924z",fill:"#000",fillOpacity:".541"}))};function kt(){return kt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},kt.apply(this,arguments)}const Ut=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",kt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg924767730a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},r().createElement("path",{d:"M5.463 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H2.03v-.836h1.562c.271 0 .491-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.059-.396-.176-.528-.11-.14-.279-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473h1.463v.836H3.714c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM9.136 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H5.704v-.836h1.562c.27 0 .49-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.06-.396-.176-.528-.11-.14-.28-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473H8.96v.836H7.387c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM12.255 12l-1.683-6.886V12H9.68V4.3h1.562l1.694 6.886V4.3h.89V12h-1.572z",fill:"#000"})),r().createElement("g",{mask:"url(#svg924767730a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function zt(){return zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},zt.apply(this,arguments)}const _t=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",zt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg3578961193a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},r().createElement("path",{d:"M5.345 12l-.418-1.947H2.782L2.353 12h-.979l1.86-7.7h1.264L6.324 12h-.979zM3.85 5.026l-.89 4.202H4.75L3.85 5.026zM10.494 10.262c0 .63-.146 1.078-.44 1.342-.286.264-.763.396-1.43.396h-2.09V4.3h1.958c.653 0 1.13.132 1.43.396.308.264.462.704.462 1.32v.627c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.99zM9.427 5.917c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187H7.491v2.431h1.133a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.836zm.11 3.256c0-.242-.073-.433-.22-.572-.147-.147-.34-.22-.583-.22H7.491v2.794h1.232c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.173zM13.119 12c-.638 0-1.13-.154-1.474-.462-.337-.315-.506-.785-.506-1.408V6.17c0-.623.169-1.089.506-1.397.345-.315.836-.473 1.474-.473h1.342v.836h-1.452c-.271 0-.491.08-.66.242a.778.778 0 00-.253.583v4.378c0 .227.084.422.253.583.169.161.389.242.66.242h1.452V12h-1.342z",fill:"#000"})),r().createElement("g",{mask:"url(#svg3578961193a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))},Vt=(0,g.Z)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}}}),Bt={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},Ht=e=>{let{type:t,size:a=Bt.SMALL}=e;const l=Vt(a);switch(U(t)){case R.STRING:return r().createElement(_t,{className:l.icon});case R.FLOAT:return r().createElement(Pt,{className:l.icon});case R.INTEGER:return r().createElement(Ft,{className:l.icon});case R.BOOLEAN:return r().createElement(Ct,{className:l.icon});case R.DATE:return r().createElement(Dt,{className:l.icon});case R.SSN:return r().createElement(Ut,{className:l.icon});default:return r().createElement(_t,{className:l.icon})}},Yt=e=>{let{detailedAttributeType:t}=e;const a=Rt(),n=(e=>{const[t,a]=(0,l.useState)(null),r=(0,l.useContext)(Ce);return(0,l.useEffect)((()=>{if(r.uri&&e){const t={filter:c.j5E.EXISTS,fieldName:e},l={filter:c.j5E.EQUALS,fieldName:"type",values:[r.uri]};a(null),(0,c.j_Q)([t,l]).then((e=>{let{total:t}=e;a(t)}))}}),[r.uri,e]),t})(t.fieldName),i=null===n?r().createElement(Ve.Z,{size:"24",className:a.totalLoading}):(0,c.k7L)(n);return r().createElement("div",null,r().createElement("div",{className:a.header},r().createElement(It,{title:p().text("Profiles")},r().createElement(Be.ZP,{title:r().createElement(X,{data:[{label:p().text("Entities with exists attribute"),value:p().number(n)}]})},r().createElement("div",null,i))),r().createElement(It,{title:p().text("Data type")},(o=t.type,r().createElement(r().Fragment,null,r().createElement("div",{className:a.attributeTypeIconWrapper},r().createElement(Ht,{type:o,size:Bt.NORMAL})),p().text(o))))),r().createElement(St,{details:t.details}));var o},Zt=(0,g.Z)({content:{padding:"0 16px"}}),Gt=e=>{let{config:t}=e;const a=Zt(),n=(0,l.useContext)(Ae);return r().createElement(he,{config:t},r().createElement(ce,{title:(0,c.idV)(n.label)}),r().createElement(_e.Z,{className:a.content},r().createElement(Yt,{detailedAttributeType:n})))};var Wt=a(65298);function qt(){return qt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},qt.apply(this,arguments)}const Qt=(0,g.Z)({container:{height:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",padding:0,"& svg":{paddingTop:0,height:"88px",width:"88px",marginBottom:"20px"}},errorMessage:{padding:"0 24px",fontSize:"14px",textAlign:"center"},errorTitle:{padding:"0 24px",fontSize:"16px",textAlign:"center"}}),$t=r().createElement((e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",qt({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg98386349a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),r().createElement("g",{mask:"url(#svg98386349a)"},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:".3"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),r().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),r().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),r().createElement("path",{opacity:".5",d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".3",d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".8",d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),r().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".2",d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),r().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),r().createElement("g",{filter:"url(#filter0_d)"},r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),r().createElement("path",{opacity:".15",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),r().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#paint0_linear)"}),r().createElement("g",{filter:"url(#filter1_d)"},r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),r().createElement("g",{filter:"url(#filter2_d)"},r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),r().createElement("defs",null,r().createElement("filter",{id:"filter0_d",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"filter1_d",x:"51.688",y:"62.625",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"filter2_d",x:"51.688",y:"44.063",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("linearGradient",{id:"paint0_linear",x1:"68.438",y1:"71.571",x2:"60.119",y2:"58.801",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:"0"}),r().createElement("stop",{offset:"1"}))))}),null),Kt=e=>{let{config:t,icon:a=$t,message:l,title:n}=e;const i=Qt(),{id:o,title:c}=t;return r().createElement(Wt.Z,{id:o},r().createElement(ce,{title:c}),r().createElement(_e.Z,{className:i.container},a,n&&r().createElement(v.Z,{className:i.errorTitle},n),l&&r().createElement(v.Z,{className:i.errorMessage},l)))},Xt=e=>{let{keyword:t,entityTypeUri:a}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[S(a)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}},Jt=e=>{let{fieldName:t,value:a,entityTypeUri:l}=e;return Xt({keyword:`${c.j5E.EQUALS}(${t}, ${a})`,entityTypeUri:l})};function ea(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const ta=e=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:t,group:t,value:a}})),L),aa=(0,s.curry)(((e,t)=>{const a=t.map((t=>{const a=(e||[]).find((0,s.propEq)("uri",t.group));return function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){ea(e,t,a[t])}))}return e}({},t,{label:(null==a?void 0:a.name)||`"uri": "${t.label}"`,group:(null==a?void 0:a.name)||t.group,isActive:!!a&&a.status===c.lVm.ACTIVE})})),l=(e||[]).filter((e=>(0,s.propEq)("status",c.lVm.ACTIVE,e)&&!(0,s.any)((0,s.propEq)("group",e.uri),t))).map((e=>({label:e.name,group:e.name,value:0,isActive:!0})));return[...a,...L(l)]})),la=ta("frequency"),ra=ta("pattern"),na=(0,s.curry)(((e,t)=>{let{dvfs:a}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:(0,s.contains)(t,a.map((0,s.prop)("name")))?"analyticsAttributes.AttributeValidations.FunctionName":"analyticsAttributes.AttributeValidations.FunctionURI"}]})),ia=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Jt({fieldName:`${a.fieldName}`,value:t,entityTypeUri:l})})),oa=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:c.j5E.ON,values:[t],fieldName:a}]})),ca=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:a}]})),sa=e=>{let{detailedAttributeType:t,entityTypeUri:a}=e;return(0,s.cond)([[c.j5n,(0,s.always)(ia)],[c.Lt4,(0,s.always)(k(oa))],[s.identity,(0,s.always)(k(ca))]])(t.type)({detailedAttributeType:t,entityTypeUri:a,dvfs:[]})},ua=k(na),pa=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Jt({fieldName:`${a.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:l})}));var da=a(79573),fa=a(45108),ma=a(92332),ha=a(83088);const ya=(0,s.pipe)((0,s.split)("|"),(e=>{let[t,a]=e;return{label:t,percent:a}})),va={content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"},ga=(0,g.Z)((e=>({colorBarContainer:{position:"relative",width:"100%",marginLeft:"16px",padding:"5px 0 6px",height:"100%",boxSizing:"border-box","&>span>div":{opacity:1,backgroundColor:t=>t?"#0072CE":e.palette.text.disabled,zIndex:1}},numberWhithPercent:{fontSize:"13px",lineHeight:"15px",fontWeight:"normal",color:e.palette.text.primary,flexShrink:0,width:"90px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},numberContainer:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 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",bottom:"2px",left:"-5px",right:"-5px",transition:"background 0.3s"}},tooltipTitle:{color:"rgba(255, 255, 255, 0.6)"},headCell:{display:"flex",alignItems:"center",height:"100%","&>div":{padding:"0 16px",width:"100%"},"&>div>span":{width:"100%",justifyContent:"flex-end"}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden","&:after":va},labelPercantageWrapper:{display:"flex"},labelWrapper:{minWidth:"90px",position:"relative"},percentsWrapper:{marginLeft:"16px",display:"flex",width:"100%"},percentLabel:{color:e.palette.text.secondary,fontSize:"12px","&:first-child":{flexGrow:1}},attribute:{color:e.palette.text.primary,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",whiteSpace:"pre",overflow:"hidden",display:"flex",alignItems:"center",height:"100%",padding:"0 16px","&:after":va},tooltipValue:{whiteSpace:"pre-wrap"}})));function Ea(){return Ea=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ea.apply(this,arguments)}function ba(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){xa(e,t,a[t])}))}return e}function xa(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Oa=e=>{let{className:t,headCellData:a}=e,l=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["className","headCellData"]);const n=ga(),{label:i,percent:o}=ya(a.label),c=!!o,s=r().createElement(ha.C,{value:i},r().createElement("div",{className:n.headLabel},i));return r().createElement("div",{className:B()(n.headCell,t)},r().createElement(ma.default,Ea({},l,{headCellData:ba({},a,{label:c?r().createElement("div",{className:n.labelPercantageWrapper},r().createElement("div",{className:n.labelWrapper},s),r().createElement("div",{className:n.percentsWrapper},r().createElement("span",{className:n.percentLabel},"0%"),r().createElement("span",{className:n.percentLabel},o,"%"))):s})})))};var wa=a(59383),Na=a(30488);const Ta=(0,Na.Z)(((e,t)=>{let{onItemClick:a}=e,{rowValue:{group:l}}=t;return{onClick:a&&(()=>{a(l)})}}))((e=>{let{value:t="",columnData:a,onClick:l}=e;const{attributeCellClassName:n}=a,i=ga(),o=(0,wa.d)(l),s=r().createElement("div",{className:i.tooltipValue},t);return r().createElement(ha.C,{value:s},r().createElement("div",{className:B()(i.attribute,o,n),onClick:l},c.P6Y.strings.removeLineBreaks(t)))}));var Sa=a(89902);const Ra=(0,N.Z)((e=>{let{value:t,maxValue:a,className:l}=e;return r().createElement(Sa.Z,{width:t,maxWidth:a,className:l})})),Ia=(0,Na.Z)(((e,t)=>{let{onItemClick:a,valueHeader:l,labelHeader:r}=e,{rowValue:{group:n}}=t;return{onClick:a&&(()=>{a(n)}),valueHeader:l,labelHeader:r}}))((e=>{let{value:t,columnData:{maxValue:a},rowValue:{percent:l,label:n,isActive:i=!0},labelHeader:o,valueHeader:u,onClick:d}=e;const f=ga(i),m=(0,wa.d)(d),h=r().createElement("span",{className:f.tooltipValue},n),y=`${(0,c.k7L)(t,999)} ${P(l)}`,g=r().createElement(X,{data:[{label:o,value:h},{label:u,value:`${p().number(t)} ${P(l)}`}]});return r().createElement("div",{className:B()(f.numberContainer,m),onClick:d},r().createElement(v.Z,{className:f.numberWhithPercent},y),!(0,s.isNil)(a)&&r().createElement("div",{className:f.colorBarContainer},r().createElement(Ra,{value:t,maxValue:a,tooltipTitle:g,className:f.bar,showForDisabled:!0})))})),Aa=(0,g.Z)({tableContainer:e=>{let{width:t,height:a}=e;return{height:a,width:t,display:"flex",flexDirection:"column",marginTop:"2px"}},cellBorder:{borderLeft:"none",borderRight:"none!important"}});function Ca(){return Ca=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ca.apply(this,arguments)}const Ma=e=>{let{width:t,height:a,data:n,options:i={},basicTableRef:o,onItemClick:c,labelCellClassName:s}=e,u=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["width","height","data","options","basicTableRef","onItemClick","labelCellClassName"]);const d=Aa({width:t,height:a}),{headers:[f,m]=[],showValues:h=!0,sortable:y=!1}=i,v=(0,l.useMemo)((()=>({cellBorder:d.cellBorder})),[d]),g=(0,l.useMemo)((()=>Math.max(...n.map((e=>e.value)))),[n]),E=(0,l.useMemo)((()=>{const e=_(n),t=m||p().text("No of Profiles");return e?t.concat(`|${e}`):t}),[n,m]),b=(0,l.useMemo)((()=>[{id:"label",label:f||p().text("Attributes"),resizable:!1,headCellRenderer:Oa,attributeCellClassName:s,rowCellValueRenderer:Ta,initialWidth:.4*t},...h?[{id:"value",label:E,resizable:!1,headCellRenderer:Oa,rowCellValueRenderer:Ia,maxValue:g,initialWidth:.6*t,sortable:y}]:[]]),[E,g,t,f,h]),x=(0,l.useMemo)((()=>({onItemClick:c,labelHeader:f,valueHeader:m})),[c,f,m]);return r().createElement("div",{className:d.tableContainer},r().createElement(fa.Z,Ca({columnsData:b,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:v,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:x},u)))},Da=(0,g.Z)((()=>({layoutItemContent:{padding:"0 0 10px"}}))),La=(0,T.Z)((e=>{let{config:t,data:a,title:n,headers:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,titleChildren:u,state:p,onRefresh:d,labelCellClassName:f}=e;const m=Da(),[h,y]=(0,l.useState)("desc"),v=(0,l.useCallback)(((e,t)=>c?c(h)(e,t):(e=>(t,a)=>"asc"===e?t.value-a.value:a.value-t.value)(h)(e,t)),[h]),g=()=>{y(da.Dh)},E=(0,l.useMemo)((()=>[...a.sort(v)]),[v,a]);return r().createElement("div",null,r().createElement(he,{config:t},r().createElement(ce,{title:n,infoTooltipTitle:o},u),r().createElement(de,{className:m.layoutItemContent,data:E,loadingState:p,onRefresh:d},(e=>{let{data:t,width:a=0,height:l=0}=e;return r().createElement(Ma,{data:t,width:a,height:l,options:{headers:i,sortable:!!c},sorting:{field:"value",order:h},onSort:g,onItemClick:s,labelCellClassName:f})}))))}));var Pa=a(86689);function ja(){return ja=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ja.apply(this,arguments)}const Fa=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",ja({width:"148",height:"148",viewBox:"0 0 148 148",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg3012965951a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"148",height:"148"},r().createElement("path",{d:"M74 148c40.869 0 74-33.131 74-74 0-40.87-33.131-74-74-74C33.13 0 0 33.13 0 74c0 40.869 33.13 74 74 74z",fill:"#fff"})),r().createElement("g",{mask:"url(#svg3012965951a)"},r().createElement("path",{d:"M74 148c40.869 0 74-33.131 74-74 0-40.87-33.131-74-74-74C33.13 0 0 33.13 0 74c0 40.869 33.13 74 74 74z",fill:"#0072CE",fillOpacity:".1"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 5.203h148V148H0V5.203z",fill:"url(#paint0_linear)"}),r().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},r().createElement("path",{opacity:".5",d:"M25.186 26.016h131.896V128.04H25.186V26.016z",fillOpacity:".8"}),r().createElement("path",{opacity:".9",d:"M16.766 26.021a4.626 4.626 0 014.623-4.63h129.406a4.623 4.623 0 014.623 4.63v88.107a4.625 4.625 0 01-4.623 4.631H21.389a4.623 4.623 0 01-4.623-4.631V26.021z"})),r().createElement("path",{opacity:".5",d:"M141.553 50.95a2.315 2.315 0 002.311-2.32 2.315 2.315 0 00-2.311-2.318 2.315 2.315 0 00-2.311 2.319 2.315 2.315 0 002.311 2.318zM133.465 50.95a2.315 2.315 0 002.311-2.32 2.315 2.315 0 00-2.311-2.318 2.314 2.314 0 00-2.311 2.319 2.314 2.314 0 002.311 2.318z",fill:"#6DBCFF"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.808 46.313a5.488 5.488 0 015.489 5.488v.035a5.488 5.488 0 01-10.977 0v-.035a5.488 5.488 0 015.488-5.489z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 46.19h37.054a2.029 2.029 0 010 4.057H47.102a2.028 2.028 0 110-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 53.725h67.006a1.45 1.45 0 010 2.898H46.523a1.449 1.449 0 110-2.898z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 58.941h21.62a.87.87 0 010 1.74h-21.62a.87.87 0 110-1.74z",fill:"#B1AABD"}),r().createElement("path",{opacity:".5",d:"M71.35 30.664H31.508a3.188 3.188 0 100 6.375H71.35a3.188 3.188 0 000-6.375z",fill:"#645F6D"}),r().createElement("path",{opacity:".5",d:"M141.553 72.972a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.318 2.315 2.315 0 00-2.311 2.318 2.315 2.315 0 002.311 2.319zM133.465 72.972a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.318 2.314 2.314 0 00-2.311 2.318 2.314 2.314 0 002.311 2.319z",fill:"#6DBCFF"}),r().createElement("path",{d:"M39.297 73.824a5.488 5.488 0 10-10.977 0v.035a5.488 5.488 0 0010.977 0v-.035z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 68.214h43.894a2.029 2.029 0 010 4.057H47.102a2.029 2.029 0 010-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 75.748h74.516a1.45 1.45 0 010 2.898H46.523a1.449 1.449 0 110-2.898z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 80.965h60.077a.87.87 0 010 1.739H45.943a.87.87 0 010-1.74z",fill:"#B1AABD"}),r().createElement("path",{opacity:".5",d:"M141.553 94.996a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.319 2.315 2.315 0 00-2.311 2.319 2.315 2.315 0 002.311 2.318zM133.465 94.996a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.319 2.314 2.314 0 00-2.311 2.319 2.314 2.314 0 002.311 2.318z",fill:"#6DBCFF"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.808 90.36a5.488 5.488 0 015.489 5.488v.035a5.488 5.488 0 11-10.977 0v-.035a5.488 5.488 0 015.488-5.489z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 90.237h58.915a2.028 2.028 0 010 4.057H47.102a2.029 2.029 0 010-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 97.772h49.096a1.449 1.449 0 110 2.897H46.524a1.448 1.448 0 110-2.897z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 102.988h21.62a.87.87 0 010 1.739h-21.62a.87.87 0 110-1.739z",fill:"#B1AABD"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M102.927 64.75l44.536 77.139-58.989 34.057-44.536-77.14.405-.234c4.06 9.263 12.074 16.712 22.462 19.616 18.103 5.059 36.562-5.599 41.232-23.805 2.679-10.449.235-21.113-5.757-29.26l.647-.374z",fill:"url(#paint1_linear)"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M56.352 103.62c10.385 10.611 27.223 10.611 37.609 0 10.385-10.612 10.385-27.816 0-38.427-10.386-10.611-27.224-10.611-37.61 0-10.385 10.611-10.385 27.815 0 38.427z",fill:"url(#paint2_linear)"}),r().createElement("g",{filter:"url(#filter0_d)",fillRule:"evenodd",clipRule:"evenodd"},r().createElement("path",{d:"M74.981 49.719c19.06 0 34.512 15.462 34.512 34.536a34.418 34.418 0 01-8.665 22.886l29.603 29.623a51.708 51.708 0 01-5.837 5.43l-29.705-29.725a34.338 34.338 0 01-19.908 6.322c-19.06 0-34.512-15.462-34.512-34.536S55.92 49.719 74.98 49.719zm0 10.265c-13.395 0-24.254 10.866-24.254 24.27 0 13.405 10.859 24.272 24.254 24.272 13.395 0 24.254-10.867 24.254-24.271S88.376 59.984 74.981 59.984z",fill:"#B5C8C9"}),r().createElement("path",{d:"M52.903 110.801c-7.598-6.335-12.434-15.876-12.434-26.546 0-19.074 15.451-34.536 34.512-34.536 10.663 0 20.197 4.839 26.528 12.442l-5.662 5.667c-4.862-6.175-12.401-10.14-20.866-10.14-14.662 0-26.548 11.895-26.548 26.567 0 8.47 3.962 16.015 10.132 20.88l-5.662 5.666z",fill:"#fff",fillOpacity:".4"})),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.352 103.62c10.385 10.611 27.223 10.611 37.609 0 10.385-10.612 10.385-27.816 0-38.427-10.386-10.611-27.224-10.611-37.61 0-10.385 10.611-10.385 27.815 0 38.427z",fill:"#D9F5FF",opacity:".4"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.621 91.769c0-2.272.257-4.065.77-5.38.513-1.314 1.346-2.453 2.497-3.418 1.151-.964 2.026-1.847 2.625-2.648.6-.802.899-1.684.899-2.649 0-2.35-1.012-3.524-3.034-3.524-.933 0-1.688.343-2.263 1.027-.576.685-.88 1.61-.91 2.777h-7.888c.031-3.111 1.011-5.534 2.94-7.27 1.93-1.734 4.636-2.601 8.121-2.601 3.47 0 6.157.801 8.063 2.404 1.905 1.602 2.858 3.881 2.858 6.837 0 1.291-.257 2.466-.77 3.524-.513 1.058-1.338 2.139-2.474 3.243l-2.683 2.497c-.762.732-1.291 1.482-1.587 2.252-.295.77-.459 1.746-.49 2.929h-6.674zm-.957 7.094c0-1.151.416-2.096 1.249-2.835.832-.74 1.87-1.109 3.115-1.109s2.283.37 3.115 1.109c.833.739 1.249 1.684 1.249 2.835s-.416 2.096-1.249 2.835c-.832.739-1.87 1.109-3.115 1.109s-2.283-.37-3.115-1.109c-.833-.739-1.249-1.684-1.249-2.835z",fill:"#000",fillOpacity:".87"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.621 91.769c0-2.272.257-4.065.77-5.38.513-1.314 1.346-2.453 2.497-3.418 1.151-.964 2.026-1.847 2.625-2.648.6-.802.899-1.684.899-2.649 0-2.35-1.012-3.524-3.034-3.524-.933 0-1.688.343-2.263 1.027-.576.685-.88 1.61-.91 2.777h-7.888c.031-3.111 1.011-5.534 2.94-7.27 1.93-1.734 4.636-2.601 8.121-2.601 3.47 0 6.157.801 8.063 2.404 1.905 1.602 2.858 3.881 2.858 6.837 0 1.291-.257 2.466-.77 3.524-.513 1.058-1.338 2.139-2.474 3.243l-2.683 2.497c-.762.732-1.291 1.482-1.587 2.252-.295.77-.459 1.746-.49 2.929h-6.674zm-.957 7.094c0-1.151.416-2.096 1.249-2.835.832-.74 1.87-1.109 3.115-1.109s2.283.37 3.115 1.109c.833.739 1.249 1.684 1.249 2.835s-.416 2.096-1.249 2.835c-.832.739-1.87 1.109-3.115 1.109s-2.283-.37-3.115-1.109c-.833-.739-1.249-1.684-1.249-2.835z",fill:"#3C74B4",fillOpacity:".38"})),r().createElement("defs",null,r().createElement("linearGradient",{id:"paint0_linear",x1:"74",y1:"5.203",x2:"74",y2:"148",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:"0"}),r().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"paint1_linear",x1:"123.612",y1:"142.028",x2:"76.729",y2:"122.717",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:"0"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"paint2_linear",x1:"75.156",y1:"57.234",x2:"75.156",y2:"111.578",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#EEFBFF"}),r().createElement("stop",{offset:"1",stopColor:"#0072CE"})),r().createElement("filter",{id:"filter0_d",x:"36.469",y:"47.719",width:"97.962",height:"100.475",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"}))))},ka=(0,g.Z)((e=>({title:{whiteSpace:"nowrap",height:"24px",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"},titleCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.54)",marginLeft:"16px",paddingLeft:"16px",overflow:"hidden",textOverflow:"ellipsis"}})));function Ua(){return Ua=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ua.apply(this,arguments)}const za=e=>{const{config:t}=e,{data:a,state:n,reload:i,errorCode:o}=(0,l.useContext)(Ie),u=(d=(0,l.useContext)(Ae).uri,(a||[]).filter((0,s.propEq)("attribute",d)));var d;const{data:f,state:m,reload:h}=Re((N=u,(0,s.pipe)(ta("dataValidationFunctions"),aa(N)))),g=Me(ua),E=ka(),b=(0,l.useMemo)((()=>n===y.o.LOADED&&m===y.o.LOADED?y.o.LOADED:n===y.o.ERROR||m===y.o.ERROR?y.o.ERROR:y.o.LOADING),[m,n]),x=(0,l.useMemo)((()=>()=>{n===y.o.ERROR&&i(),m===y.o.ERROR&&h()}),[m,n,i,h]),O=r().createElement(ha.C,{value:t.title},r().createElement(v.Z,{className:E.title},t.title)),w=[p().text("Validation function"),p().text("Count")];var N;return b===y.o.ERROR&&o===c.Xt7.DVF_NOT_CONFIGURED||0===f.length?r().createElement(Kt,Ua({},e,{message:r().createElement(r().Fragment,null,p().text("There are no")," ",r().createElement(Pa.Z,{href:"https://docs.reltio.com/dvf/overview.html",target:"_blank"},p().text("Data Validation Functions"))," ",p().text("for this attribute type")),title:p().text("No data"),icon:r().createElement(Fa,null)})):r().createElement(La,{config:t,title:"",headers:w,data:f,onItemClick:g,titleChildren:O,state:b,onRefresh:x})},_a=(0,g.Z)((()=>({monoFontCell:{fontFamily:'"Roboto Mono", monospace'}}))),Va=e=>{let{config:t}=e;const a=_a(),{data:n,state:i,reload:o}=Re(la),s=(0,l.useContext)(Ae).type,u=(0,c.Lt4)(s)?n.map((e=>M({},e,{label:p().date(Number(e.label),"L")}))):n,d=Me(sa),f=[p().text("Value"),p().text("Count")],m=r().createElement(X,{title:p().text("Frequency analysis"),data:[{value:p().text("Shows the number of times each value occurs")}],DataRenderer:ye});return r().createElement(La,{config:t,data:u,headers:f,title:t.title,infoTooltipTitle:m,onItemClick:d,state:i,onRefresh:o,labelCellClassName:B()({[a.monoFontCell]:(0,c.m6e)(s)})})};function Ba(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Ha(e,t,a[t])}))}return e}function Ha(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var Ya,Za;!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"}(Ya||(Ya={})),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"}(Za||(Za={}));const Ga=e=>(0,s.pipe)((0,s.pathOr)({},[e,"data"]),Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:t,group:t,value:a}})),L);var Wa;!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"}(Wa||(Wa={}));const qa=(e,t)=>{const a={lengthStatistics:{[Wa.MEDIAN]:p().text("Median"),[Wa.AVERAGE]:p().text("Average"),[Wa.MININMUN]:p().text("Minimum"),[Wa.MAXIMUM]:p().text("Maximum")},valueDistribution:{[Wa.MEDIAN]:p().text("Median"),[Wa.AVERAGE]:p().text("Average"),[Wa.MININMUN]:p().text("Minimum"),[Wa.MAXIMUM]:p().text("Maximum")},crosswalkAnalysis:{[Wa.NUMBER_OF_SOURCES]:p().text("No. of source systems"),[Wa.AVG_NUMBER_OF_PROFILES]:p().text("Avg no. of profiles"),[Wa.MIN_NUMBER_OF_PROFILES]:p().text("Min no. of profiles"),[Wa.MAX_NUMBER_OF_PROFILES]:p().text("Max no. of profiles")}};return(0,s.pathOr)(null,[t,e],a)},Qa=e=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((t=>{let[a,l]=t;return{label:qa(a,e),value:l}})),(0,s.filter)((e=>{let{label:t}=e;return t})),L),$a=e=>t=>({chartData:Ga(e)(t),infoPanelData:Qa(e)(t)}),Ka=(e,t)=>(0,c.Lt4)(t)?p().date(Number(e),"L"):String(e),Xa=(0,s.curry)(((e,t)=>{const a=t.chartData.map(((a,l)=>{const[r,n=r]=a.group.split(" ").map(Number),i=l===t.chartData.length-1,o=r!==n?((e,t,a)=>Ze(t)?`[${e}${a?"]":")"}`:e)(`${Ka(r,e)} - ${Ka(n,e)}`,e,i):Ka(r,e);return Ba({},a,{label:o,group:[r,n,i?"last":""].toString()})}));return{infoPanelData:t.infoPanelData.map((t=>Ba({},t,{value:(0,c.Lt4)(e)?p().date(Number(t.value),"L"):(0,c.k7L)(t.value,999),localizedValue:(0,c.Lt4)(e)?p().date(Number(t.value),"L"):t.localizedValue}))),chartData:a}})),Ja=(0,s.pipe)($a("lengthStatistics"),Xa("")),el=(0,s.pipe)($a("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))))})),tl=$a("monthDistribution"),al=$a("dayOfWeekDistribution"),ll=$a("dayOfMonthDistribution"),rl=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Jt({fieldName:`${a.fieldName}.day_of_week`,value:Ya[t.toLowerCase()],entityTypeUri:l})})),nl=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Jt({fieldName:`${a.fieldName}.month`,value:Za[t.toLowerCase()],entityTypeUri:l})})),il=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Jt({fieldName:`${a.fieldName}.day_of_month`,value:t,entityTypeUri:l})})),ol=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;const[r,n]=t.split(",");return r===n?Jt({fieldName:`${a.fieldName}.length`,value:r,entityTypeUri:l}):(e=>{let{fieldName:t,startRange:a,endRange:l,entityTypeUri:r}=e;return Xt({keyword:`${c.j5E.IN_RANGE}(${t}, ${a}, ${l})`,entityTypeUri:r})})({fieldName:`${a.fieldName}.length`,startRange:r,endRange:n,entityTypeUri:l})})),cl=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Jt({fieldName:`${a.fieldName}.crosswalk_sources`,value:t,entityTypeUri:l})})),sl=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;const[l,r]=t.split(",");return[{filter:c.j5E.AFTER,values:[l],fieldName:a},{filter:c.j5E.BEFORE,values:[r],fieldName:a}]})),ul=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;const[l,r]=t.split(",");return[l===r?{filter:c.j5E.EQUALS,values:[[l]],fieldName:a}:{filter:c.j5E.IN_RANGE,values:[[l,r]],fieldName:a}]})),pl=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;const[l,r,n]=t.split(","),i=l===r,o=i?[{filter:c.j5E.EQUALS,values:[[l]],fieldName:a}]:[{filter:c.j5E.IN_RANGE,values:[[l,r]],fieldName:a}];return!n&&!i&&o.push({filter:c.j5E.NOT_EQUALS,values:[[r]],fieldName:a}),o})),dl=(0,s.cond)([[c.Lt4,(0,s.always)(k(sl))],[Ze,(0,s.always)(k(pl))],[s.identity,(0,s.always)(k(ul))]]);function fl(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){ml(e,t,a[t])}))}return e}function ml(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const hl=(0,g.Z)((e=>({tooltipWrapper:fl({},e.tooltip,{padding:"4px 8px"})}))),yl=e=>{var t;let{payload:a,active:l,name:n}=e;const i=null==a||null===(t=a[0])||void 0===t?void 0:t.payload,o=null==i?void 0:i.value,c=null==i?void 0:i.label,s=n?`${n}`:"",u=hl();return l&&r().createElement("div",{className:u.tooltipWrapper},r().createElement(X,{data:[{label:s,value:c},{label:p().text("No of profiles"),value:p().number(o)}]}))},vl=(0,g.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"}}))),gl=e=>{let{data:t}=e;const a=vl();return r().createElement("div",{className:a.chartInfoWrapper},t.map((e=>{let{label:t,value:l,localizedValue:n}=e;return r().createElement("div",{key:t,className:a.chartInfoItem},r().createElement("span",{className:a.chartInfoLabel},t,": "),l!==n?r().createElement(Be.ZP,{title:n},r().createElement("span",{className:a.chartInfoValue},l)):r().createElement("span",{className:a.chartInfoValue},l))})))},El=(0,g.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"}}}))),bl=e=>{let{width:t,height:a,label:l,x:n,y:i}=e;const o=El({width:t}),c=n-t/2;return r().createElement("foreignObject",{x:c,y:i,width:t,height:a},r().createElement("div",{className:o.labelWrapper},r().createElement(ha.C,{value:l},r().createElement("div",{className:o.xAxisLabel},l))))},xl=e=>{const{x:t,y:a,width:l,height:n,payload:i,visibleTicksCount:o}=e,{value:c}=i,s=l/o-4;return r().createElement(bl,{width:s,height:n,label:c,x:t,y:a})};function Ol(){return Ol=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ol.apply(this,arguments)}const wl=e=>{let{isClickable:t}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["isClickable"]);const l=vl(),n=t?l.clickable:void 0;return r().createElement(w.Ae,Ol({},a,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},Nl=e=>{const{value:t}=e;return t>0?r().createElement(w.Ae,e):null};function Tl(){return Tl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Tl.apply(this,arguments)}const Sl=e=>{let{data:t,config:a,xAxisLabel:l,yAxisLabel:n,barTooltipTitle:i,infoPanelData:o,infoTooltipTitle:s,onItemClick:u,options:p={},state:d,onRefresh:f}=e;const m=vl(),{title:h}=a,{cartesianGrid:v,bar:g,xAxis:E,yAxis:b,labelForX:x,labelForY:O,barChart:N}=(e=>{let{showCategories:t=!1,interval:a,barCategoryGap:l}=e;return{barChart:{barCategoryGap:l||"10%"},bar:{dataKey:"value",fill:"#0072CE",minPointSize:3,maxBarSize:50},xAxis:{tick:t&&xl,tickLine:!1,interval:a||0,dataKey:"label"},yAxis:{tickCount:8,axisLine:!1,tickLine:!1,tick:{fill:"#000"},width:60,tickFormatter:e=>(0,c.k7L)(e,999)},cartesianGrid:{stroke:"#000",strokeOpacity:"0.05",vertical:!1},labelForX:{position:"insideBottom",style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"},offset:t?-3:3},labelForY:{angle:270,position:"left",offset:-3,style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"}}}})(p),T=u&&(e=>{let{activePayload:t}=e;return u(t[0].payload.group)}),S=T?m.clickable:void 0,R=d===y.o.LOADED&&o.length>0;return r().createElement(he,{config:a},r().createElement(ce,{title:h,infoTooltipTitle:s}),R&&r().createElement(gl,{data:o}),r().createElement(de,{data:t,loadingState:d,onRefresh:f},(e=>{let{data:t,width:a=0,height:o=0}=e;return r().createElement("div",null,r().createElement(w.vz,Tl({width:a,height:o,data:t,onClick:T},N),r().createElement(w.q3,v),r().createElement(w.u,{content:r().createElement(yl,{name:i}),cursor:r().createElement(wl,{isClickable:!!T})}),r().createElement(w.$Q,Tl({},g,{shape:r().createElement(Nl,{className:S})})),r().createElement(w.B2,b,r().createElement(w.__,Tl({},O,{value:n}))),r().createElement(w.Kc,E,r().createElement(w.__,Tl({},x,{value:l})))))})))},Rl=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=Re(Ja),{chartData:i,infoPanelData:o}=a,c=Me(ol),s=r().createElement(X,{title:p().text("Length statistics"),data:[{value:p().text("Measures the string length of values")}],DataRenderer:ye});return r().createElement(Sl,{config:t,data:i,xAxisLabel:p().text("Length of values"),yAxisLabel:p().text("No. of profiles"),infoPanelData:o,barTooltipTitle:p().text("Length"),infoTooltipTitle:s,onItemClick:c,state:l,onRefresh:n})},Il=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=Re(el),{chartData:i,infoPanelData:o}=a,c=Me(cl);return r().createElement(Sl,{config:t,data:i,xAxisLabel:p().text("Source systems"),yAxisLabel:p().text("No. of profiles"),infoPanelData:o,barTooltipTitle:p().text("Source system"),options:{showCategories:!0},onItemClick:c,state:l,onRefresh:n})},Al=e=>{let{config:t}=e;const a=(0,l.useContext)(Ae).type,{data:n,state:i,reload:o}=Re((e=>(0,s.pipe)($a("valueDistribution"),Xa(e)))(a)),{chartData:c,infoPanelData:u}=n,d=Me(dl(a));return r().createElement(Sl,{config:t,data:c,xAxisLabel:p().text("Value"),yAxisLabel:p().text("No. of profiles"),infoPanelData:u,barTooltipTitle:p().text("Value"),onItemClick:d,state:i,onRefresh:o})},Cl=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=Re(tl),{chartData:i,infoPanelData:o}=a,c=Me(nl);return r().createElement(Sl,{config:t,data:i,xAxisLabel:p().text("Months of the year"),yAxisLabel:p().text("No. of profiles"),infoPanelData:o,barTooltipTitle:p().text("Months of the year"),options:{showCategories:!0,barCategoryGap:"20%",interval:"preserveStartEnd"},onItemClick:c,state:l,onRefresh:n})},Ml=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=Re(al),{chartData:i,infoPanelData:o}=a,c=Me(rl);return r().createElement(Sl,{config:t,data:i,xAxisLabel:p().text("Days of the week"),yAxisLabel:p().text("No. of profiles"),infoPanelData:o,barTooltipTitle:p().text("Days of the week"),options:{showCategories:!0,barCategoryGap:"25%",interval:"preserveStartEnd"},onItemClick:c,state:l,onRefresh:n})},Dl=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=Re(ll),{chartData:i,infoPanelData:o}=a,c=Me(il);return r().createElement(Sl,{config:t,data:i,xAxisLabel:p().text("Days of the month"),yAxisLabel:p().text("No. of profiles"),infoPanelData:o,barTooltipTitle:p().text("Days of the month"),options:{showCategories:!0,interval:1},onItemClick:c,state:l,onRefresh:n})},Ll=e=>{let{config:t}=e;const a=_a(),{data:l,state:n,reload:i}=Re(ra),o=Me(pa),c=[p().text("Value"),p().text("Count")],s=r().createElement(X,{title:p().text("Pattern analysis"),data:[]});return r().createElement(La,{config:t,data:l,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:n,onRefresh:i,labelCellClassName:a.monoFontCell})};function Pl(){return Pl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Pl.apply(this,arguments)}class jl{}jl.getComponent=e=>{let{type:t,config:a,isFullscreen:l,onToggleFullscreen:n}=e;const i={config:a,isFullscreen:l,onToggleFullscreen:n};switch(t){case O.FILL_RATE_CHART:return r().createElement(De,i);case O.UNIQUENESS_CHART:return r().createElement(ze,i);case O.SUMMARY:return r().createElement(Gt,i);case O.VALIDATION:return r().createElement(za,i);case O.FREQUENCY:return r().createElement(Va,i);case O.LENGTH:return r().createElement(Rl,i);case O.CROSSWALK:return r().createElement(Il,i);case O.VALUE_DISTRIBUTION:return r().createElement(Al,i);case O.MONTH_DISTRIBUTION:return r().createElement(Cl,i);case O.DAY_OF_WEEK_DISTRIBUTION:return r().createElement(Ml,i);case O.DAY_OF_MONTH_DISTRIBUTION:return r().createElement(Dl,i);case O.PATTERN:return r().createElement(Ll,i);default:return r().createElement(Kt,Pl({},i,{message:p().text("Chart isn't supported for this data type")}))}};const Fl=jl,kl=e=>{let{layoutItemConfig:t,views:a,onToggleFullscreen:l,isFullscreen:n,className:i,children:o,style:c}=e;const s=a.find((e=>{let{id:a}=e;return t.i===a}));if(!s)return null;const{type:u}=s;return r().createElement("div",{style:c,className:i},Fl.getComponent({type:u,config:s,onToggleFullscreen:l,isFullscreen:n}),o)},Ul=(0,g.Z)({root:{overflow:"auto",backgroundColor:"#F9F9F9",height:"100%",flexGrow:1,padding:"4px"}}),zl=(0,s.map)((0,s.assoc)("isStatic",!0)),_l={cols:4,rowHeight:10,margin:[12,12]},Vl=(0,l.memo)((e=>{let{views:t,layout:a,layoutOptions:n=_l}=e;const i=Ul(),o=(()=>{const[e,t]=(0,l.useState)(y.o.INIT),[a,r]=(0,l.useState)({}),n=(0,l.useContext)(Ce),i=(0,l.useContext)(Ae),o=null==i?void 0:i.fieldName,s=n.uri,u=e=>{console.error(e),t(y.o.ERROR),r({})},p=(0,l.useCallback)((()=>{if(o&&s)return t(y.o.LOADING),(0,c.TTx)({entityTypeUri:s,attributeFieldName:o}).then((e=>{r(e),t(y.o.LOADED)})).catch(u)}),[t,r,o,s]),d=(0,l.useCallback)((()=>{try{p()}catch(e){u(e)}}),[p]);return(0,l.useEffect)((()=>{d()}),[d]),{data:a,state:e,reload:d}})(),s=(0,l.useMemo)((()=>zl(a)),[a]);return r().createElement("div",{className:i.root},r().createElement(Se.Provider,{value:o},r().createElement(x.Z,{LayoutItem:kl,views:t,layout:s,layoutOptions:n})))}));var Bl=a(50166),Hl=a(88267),Yl=a(43129),Zl=a(5336),Gl=a(83543),Wl=a(98989),ql=a(38402),Ql=a(33286),$l=a(40435);const Kl=(0,g.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"}}),Xl=e=>{let{details:t,classes:a,fillRateData:l,fillRateState:n}=e;const i=Kl(),o=(0,s.prop)("iconRoot",a);return r().createElement("div",{className:i.root},Object.entries(t||{}).reverse().map((e=>{let[t,a]=e,u=gt.NORMAL;if(t===Ge.REQUIRED){const e=n===y.o.LOADING,t=0===(null==(p=l)||null===(d=p.find((0,s.propEq)("group",c.s9T.MISSING)))||void 0===d?void 0:d.value);e&&(u=gt.LOADING),e||t||(u=gt.BAD_QUALITY)}var p,d;return r().createElement("div",{key:t,className:B()(a&&(o||i.activeIcon),i.detailIcon)},a&&r().createElement(Be.ZP,{title:rt(t)},r().createElement("span",null,r().createElement(Et,{detailType:t,variant:u,size:vt.SMALL}))))})))},Jl="rgba(0, 114, 206, 0.12)",er=(0,g.Z)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:Jl,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:Jl}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"}}),tr=e=>{let{level:t,margin:a,hasChildren:l,isLastLevelItem:n,isCollapsed:i}=e;const o=er(),c=!i&&(t>0||l);return r().createElement("div",{className:o.linesWrapper},((e,t)=>t>0&&e?(0,s.range)(1,t+1):t>1?(0,s.range)(1,t):[])(l,t).map((e=>r().createElement(Ql.Z,{key:e,margin:a,level:e,className:o.line}))),c&&r().createElement(Ql.Z,{margin:a,level:t,className:B()(o.line,!l&&t>0&&o.horizontalLine,l&&o.parentLine,n&&o.lastLevel)}))},ar=(0,g.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 lr(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){rr(e,t,a[t])}))}return e}function rr(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const nr=(0,T.Z)((e=>{let{data:t}=e;const a=ar(),l=ge(t),n=t.map(((e,t)=>{let{label:n,percent:i,value:o}=e;return{label:r().createElement("span",null,r().createElement("div",{className:a.fillRateSquare,style:{background:l[t]}}),n),value:`${p().number(o)} ${P(i)}`}}));return j(t)?r().createElement("div",{className:a.bar},r().createElement("div",{className:B()(a.barPart,a.inactiveBarPart)})):r().createElement(Be.ZP,{title:r().createElement(X,{title:p().text("Fill rate"),data:n})},r().createElement("div",{className:a.bar},t.map(((e,t)=>r().createElement("div",{key:e.group,className:a.barPart,style:lr({},z(e),{background:l[t]})})))))})),ir=(0,g.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"}}),or=e=>{let{detailedAttributeType:t,fillRateData:a,fillRateState:l,style:n,level:i,selected:o=!1,onClick:s,onCollapse:u=da.ZT,isCollapsed:p=!1,isLastLevelItem:d=!1}=e;const f=ir(),m=!!t.children,h=!!a,y=(e=>(0,c.idV)(e.label||e.name))(t),v=p?Wl.Z:Gl.Z,g=o?f.detailsIconSelected:f.detailsIcon;return r().createElement(ql.Z,{style:n,selected:o,classes:{selected:f.selectedItem},onClick:m?void 0:()=>{s(t)},component:"div",className:B()(f.listItem,!m&&f.pointerCursor)},r().createElement("div",{className:f.content},!m&&r().createElement("div",{className:f.attributeType},r().createElement(Ht,{type:t.type})),r().createElement("div",{className:f.attribute},r().createElement(tr,{level:i,margin:20,hasChildren:m,isLastLevelItem:d,isCollapsed:p}),r().createElement(Ql.Z,{margin:20,level:i,className:f.marginWrapper},r().createElement(ha.C,{value:y},r().createElement("div",{className:B()(f.attributeLabel,o&&f.selectedAttributeLabel,m&&f.parentAttributeLabel)},m&&r().createElement($l.Z,{size:"XXS",icon:v,onClick:u,className:f.collapseIcon}),y))),h&&!m&&r().createElement("div",{className:f.fillRate},r().createElement(nr,{data:a}))),r().createElement(Xl,{details:t.details,classes:{iconRoot:g},fillRateData:a,fillRateState:l})))},cr=(0,s.propOr)({},"attributeItem"),sr=(0,s.pipe)((0,s.find)((0,s.pipe)(cr,(0,s.either)(c.YkM,c.Or$),s.not)),cr),ur=e=>(0,s.pipe)(cr,(0,s.propEq)("fieldName",e)),pr=e=>(0,s.filter)((0,s.propEq)("group",e)),dr=(0,s.reject)((0,s.path)(["attributeItem","children"])),fr=(0,s.pipe)(dr,(0,s.prop)("length")),mr=(e,t)=>(0,s.pipe)(dr,(0,s.filter)((0,s.pipe)(cr,Ke(t))),(0,s.prop)("length"))(e),hr=(e,t)=>(0,s.pipe)(dr,(0,s.filter)((0,s.pipe)(cr,Xe(t))),(0,s.prop)("length"))(e),yr=(e,t)=>e.filter((e=>Qe(t,e.attributeItem))).length;let vr;!function(e){e.NOT_EMPTY="notEmpty",e.EMPTY="empty"}(vr||(vr={}));const gr=(e,t)=>{const a=Object.values(Ge).map((e=>({value:e,label:rt(e),group:"details"}))).map((a=>(0,s.assoc)("count",((e,t,a)=>e.filter((e=>Qe([...(0,s.filter)((0,s.propEq)("group","details"),a||[]),t],e.attributeItem))).length)(e,a,t),a))),l={label:p().text("All attribute properties"),value:"all",count:yr(e,a),group:"details"};return{label:p().text("Attribute properties"),options:[l,...a]}},Er=(0,s.pipe)(cr,(0,s.prop)("fieldName"));function br(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var xr=a(92391),Or=a(36444),wr=a(33662),Nr=a(15793),Tr=a(21324),Sr=a(12231),Rr=a(44962);function Ir(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Ar(e,t,a[t])}))}return e}function Ar(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Cr=(0,g.Z)((e=>({serachWrapper:{padding:"8px 10px 8px 16px",alignItems:"center",display:"flex"},filterByDetails:{width:"32px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"9px"},searchInput:{borderRadius:"2px",flexGrow:1},menu:{width:"256px!important",right:"0",paddingTop:"8px",top:"24px!important",margin:0},dropdownIndicator:{color:e.palette.text.secondary,cursor:"pointer"},dropDownIndicatorFilterApplied:{color:"#0072CE",cursor:"pointer"},dropDownIndicatorActive:{width:"32px",height:"32px",background:"rgba(0, 0, 0, 0.1)",borderRadius:"4px",display:"flex",justifyContent:"center",alignItems:"center"},dropdownMenuTitle:{fontWeight:500,fontSize:"20px",lineHeight:"55px",height:"55px",paddingLeft:"16px"},option:{paddingLeft:"4px",fontSize:"13px",height:"28px",filter:e=>e?"grayscale(0)":"grayscale(1)",opacity:e=>e?1:.5},typeIconWrapper:{width:"41px","& svg":{width:"20px",height:"20px"}},valueContainer:{marginLeft:0},counter:{marginLeft:"5px"}}))),Mr=e=>Ir({},e,{borderBottom:"1px solid rgba(0, 0, 0, 0.08)",marginBottom:"5px",paddingTop:0,paddingBottom:"5px","&:last-child":{borderBottom:"none"}}),Dr=e=>Ir({},e,{zIndex:2}),Lr=e=>Ir({},e,{maxHeight:"400px"}),Pr=e=>Ir({},e,{padding:"6px 0 2px 18px",fontSize:"11px"});function jr(){return jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},jr.apply(this,arguments)}const Fr=e=>{let{innerProps:t,innerRef:a,children:l,isFocused:n,isSelected:i,selectProps:{classes:o},label:s,data:u}=e;const p=!!u.count,d=Cr(p);return r().createElement(Sr.Z,jr({className:d.option,ref:a,selected:n,component:"div"},t),"radio"===u.inputType?r().createElement(Rr.Z,{checked:i}):r().createElement(r().Fragment,null,r().createElement(Tr.Z,{color:"primary",checked:i}),r().createElement("span",{className:d.typeIconWrapper},r().createElement(Et,{detailType:u.value}))),r().createElement(ha.C,{value:s},r().createElement("div",{className:o["option--item"]},l)),r().createElement("span",{className:d.counter},(0,c.k7L)(u.count,999)))},kr=(0,s.reject)((0,s.propEq)("value","all")),Ur=(e,t)=>(0,s.reject)((0,s.propEq)("group",e.group))(t),zr=e=>(0,s.pipe)((0,s.filter)((0,s.propEq)("group",e)),kr),_r=e=>(0,s.pipe)((0,s.reduce)(((t,a)=>t.concat(zr(e)(a.options))),[]),kr),Vr=(0,s.find)((0,s.propEq)("value","all")),Br=e=>{let{selectedFilterOptions:t=[],filterOptions:a,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=Cr(),u=(0,s.reduce)(((e,t)=>{if(t.options.length){const a=(0,s.head)(t.options)||{},{group:l,inputType:r}=a,n=(e||[]).filter((0,s.propEq)("group",l));if("radio"===r){if(!n.length)return e.concat(a)}else{const a=Vr(t.options);if(a&&kr(n).length===kr(t.options).length)return e.concat(a)}}return e}),t)(a),d=e=>e.selectProps.menuIsOpen?c.dropDownIndicatorActive:"",f=(0,l.useCallback)((()=>t.length?c.dropDownIndicatorFilterApplied:c.dropdownIndicator),[t]),[m,h]=(0,l.useState)(n||null);return r().createElement("div",{className:c.serachWrapper},r().createElement(wr.Z,{className:c.searchInput,autofocus:!0,onSearch:e=>{h(e),i(e)},value:m,height:40,placeholder:p().text("Search attribute name"),"data-reltio-id":"reltio-dq-dashboard-attributes-search-input"}),r().createElement("div",{className:c.filterByDetails,"data-reltio-id":"reltio-dq-dashboard-attributes-filter"},r().createElement(Nr.Z,{value:u,options:a,onChange:(e,l)=>{const{action:r,option:n}=l;o(((e,l,r)=>{if("radio"===l.inputType)return[...Ur(l,r),l];{const i=(n=l.group,_r(n)(a).length===zr(n)(t).length),o=Ur(l,r),c=_r(l.group)(a);return"all"===l.value?"select-option"===e?[...o,...c]:o:i?(0,s.without)([l],[...o,...c]):r}var n})(r,n,e))},TextFieldProps:{InputProps:{disableUnderline:!0}},isSearchable:!1,classes:{menu:c.menu,option:c.option,valueContainer:c.valueContainer},styles:{groupHeading:Pr,group:Mr,menu:Dr,menuList:Lr},components:{DropdownIndicator:e=>r().createElement("div",{className:d(e)},r().createElement(Or.Z,{className:f()})),IndicatorSeparator:da.Vd,ClearIndicator:da.Vd,MultiValue:da.Vd,MenuList:e=>r().createElement(xr.F.MenuList,e,r().createElement("div",{className:c.dropdownMenuTitle},p().text("Filter")),e.children),Option:Fr,GroupHeading:e=>r().createElement(xr.F.GroupHeading,e,e.children)}})))},Hr=(0,g.Z)((e=>({root:{width:"480px",display:"flex",flexDirection:"column",borderRight:"solid 1px rgba(0, 0, 0, 0.12)",flexGrow:1},title:{height:"24px",margin:"16px",display:"flex",alignItems:"center"},itemCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px"},listWrapper:{flexGrow:1,overflow:"hidden",position:"relative"},columnsTitle:{height:"48px",display:"grid",gridGap:"32px",gridTemplateColumns:"308px 108px",alignItems:"center",padding:"0 16px",background:"rgba(0, 0, 0, 0.06)",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",fontWeight:500,fontSize:"12px",lineHeight:"16px",color:"rgba(0, 0, 0, 0.54)"},loaderWrapper:{position:"absolute",top:"0",left:"0",width:"100%",height:"4px",zIndex:1}}))),Yr=e=>{var t;let{entityType:a,onAttributesListChange:i,defaultFieldName:o,defaultFilterOptions:u,defaultFilterText:d,disableAttributeSelection:f}=e;const m=Hr(),g=(0,l.useRef)(),[E,b]=(0,l.useState)(d||""),[x,O]=(0,l.useState)([]),[w,N]=(0,l.useState)(u||[]),[T,S]=(0,l.useState)({fieldName:o}),{data:R,state:I}=(e=>{const[t,a]=(0,l.useState)(y.o.INIT),[r,n]=(0,l.useState)({}),i=e=>{console.error(e),a(y.o.ERROR),n({})},o=(0,l.useCallback)((()=>(a(y.o.LOADING),n({}),(0,c.aTW)({entityTypeUri:e}).then(xe).then((e=>{n(e),a(y.o.LOADED)})).catch(i))),[a,n,e]),s=(0,l.useCallback)((()=>{try{o()}catch(e){i(e)}}),[o]);return(0,l.useEffect)((()=>{s()}),[s]),{data:r,state:t,reload:s}})(a.uri),A=null===(t=(0,l.useContext)(Ie))||void 0===t?void 0:t.state,C=((e,t)=>{var a;const r=(0,n.useSelector)(h.ZP.selectors.getMetadata),i=(0,l.useMemo)((()=>(e=>(0,s.pipe)(c.WN0,et(e),nt))(t)(r,e)),[r,e,t]),[o,u]=(0,l.useState)([]),p=e.uri,d=(0,l.useMemo)((()=>(0,c.qhs)(r,p)),[r,p]),f=null===(a=(0,l.useContext)(Ie))||void 0===a?void 0:a.data;return(0,l.useEffect)((()=>{f&&u(i.map((0,s.evolve)({attributeItem:e=>function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){br(e,t,a[t])}))}return e}({},e,{details:lt({attrTypeItem:e,dvf:f,matchAttributes:d})},e.children&&{children:e.children.map((t=>(t.details=lt({attrTypeItem:t,dvf:f,matchAttributes:d}),t.details.reference=e.isAttributeReference,t)))})})))}),[i,d,f]),o})(a,E),{filteredItems:M,filterOptions:D}=(0,l.useMemo)((()=>{const e=((e,t)=>{const a=pr("details")(e),l=(e=>(0,s.pipe)((0,s.filter)((0,s.pipe)(cr,(0,s.both)((0,s.prop)("children"),Qe(e)))),(0,s.map)(Er)))(a)(t);return t.filter((e=>{let{attributeItem:t}=e;return l.some((e=>t.fieldName.startsWith(e)))||$e(a,t)}))})(w,C),t=((e,t)=>{const a=[{label:p().text("All"),value:"All",group:"emptiness",count:fr(e),inputType:"radio"},{label:p().text("With data"),value:vr.NOT_EMPTY,group:"emptiness",count:mr(e,t),inputType:"radio"},{label:p().text("W/o data"),value:vr.EMPTY,group:"emptiness",count:hr(e,t),inputType:"radio"}];return{label:p().text("Attributes"),options:a}})(e,R),a=((e,t,a)=>{const l=(0,s.head)(pr("emptiness")(e));switch(null==l?void 0:l.value){case vr.EMPTY:return a.filter((0,s.pipe)(cr,Je(t)));case vr.NOT_EMPTY:return a.filter((0,s.pipe)(cr,Ke(t)));default:return a}})(w,R,e);return{filteredItems:a,filterOptions:[t,gr(a,w)]}}),[C,w,R]),L=(0,l.useMemo)((()=>((e,t)=>e.filter((e=>{let{attributeItem:a}=e;return!t.some((e=>a.fieldName.startsWith(e)&&a.fieldName!==e))})))(M,x)),[M,x]),P=M.length,j=(0,l.useCallback)((0,c.DsO)(b,300),[]),F=e=>{i({selectedDetailedAttributeType:e,filterText:E,filterOptions:w}),S({fieldName:e.fieldName})},k=()=>{const e=((e,t)=>(0,s.pipe)((0,s.find)(ur(t)),(0,s.propOr)(null,"attributeItem"))(e))(M,T.fieldName)||sr(M);return(0,s.isEmpty)(e)||f?null:e};(0,l.useEffect)((()=>{var e,t,a;if(f)return void(null===(a=g.current)||void 0===a||a.scrollTo(0));if(M.length){const e=k();S({fieldName:(null==e?void 0:e.fieldName)||T.fieldName})}const l=((e,t)=>(0,s.findIndex)(ur(t))(e))(M,T.fieldName);l>-1?null===(e=g.current)||void 0===e||e.scrollToItem(l,"center"):null===(t=g.current)||void 0===t||t.scrollTo(0)}),[M]),(0,l.useEffect)((()=>{const e=k();i({selectedDetailedAttributeType:e,filterText:E,filterOptions:w})}),[E,w,T]),(0,l.useEffect)((()=>{S((e=>{let{fieldName:t}=e;return f?{fieldName:null}:{fieldName:t}}))}),[f]);const U=e=>{let{data:t,index:a,style:l}=e;const{attributeItem:n,level:i=0}=t[a],o=T.fieldName===n.fieldName,c=((e,t)=>e[t.fieldName])(R,n),u=a>0&&i>(0,s.pathOr)(-1,[a+1,"level"],L);return r().createElement(or,{fillRateData:c,fillRateState:I,style:l,detailedAttributeType:n,level:i,onClick:F,selected:o,onCollapse:(p=n.fieldName,()=>{O((e=>e.includes(p)?e.filter((e=>e!==p)):e.concat(p)))}),isCollapsed:x.includes(n.fieldName),isLastLevelItem:u});var p},z=L.length,_=!!z,V=I===y.o.LOADING||A===y.o.LOADING;return r().createElement("div",{className:m.root},r().createElement(v.Z,{className:m.title},(0,c.idV)(a.label)," ",p().text("attributes"),r().createElement("span",{className:m.itemCount},`${P} ${B=P,1===B?p().text("item"):p().text("items")}`)),r().createElement(Br,{selectedFilterOptions:w,onChangeFilterOptions:N,defaultFilterText:d,onChangeFilterText:j,filterOptions:D}),_&&r().createElement("div",{className:m.columnsTitle},r().createElement("div",null,p().text("Name")),r().createElement("div",null,p().text("Attribute details"))),r().createElement("div",{className:m.listWrapper,"data-reltio-id":"reltio-dq-dashboard-attributes-list"},r().createElement("div",{className:m.loaderWrapper},V&&r().createElement(Yl.Z,null)),_?r().createElement(Hl.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return r().createElement(Bl.FixedSizeList,{ref:g,itemCount:z,width:"100%",height:t,itemData:L,itemSize:48},U)})):!V&&r().createElement(Zl.Z,{height:250})));var B},Zr=(0,g.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 Gr(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Wr(e,t,a[t])}))}return e}function Wr(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const qr=(0,s.path)([0,"value"]),Qr=e=>{var t,a;let{config:i,saveState:o,getSavedState:u}=e;const v=Zr(),{entityType:g,tabs:E,setEntityTypeByUri:x}=(()=>{const e=(0,n.useSelector)(h.ZP.selectors.getMetadata),t=(0,l.useMemo)((()=>e.entityTypes.filter(c.oDv)),[e.entityTypes]),a=(e=>{const[t,a]=(0,l.useState)(null);return(0,l.useEffect)((()=>{const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:(0,s.pluck)("uri",e)}]);(0,c.FK9)({query:(0,c.ECL)({activeness:"active",filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}).then((e=>{let{type:t}=e;return a(t)})).catch((()=>a(null)))}),[e]),t})(t),[r,i]=(0,l.useState)(null);return{entityType:r,tabs:(0,l.useMemo)((()=>t.map(((e,t)=>{let{label:l,uri:r}=e;return{label:l,value:r,additionalLabel:(0,c.k7L)(Number((null==a?void 0:a[(0,c.nIW)(r)])||0),999),dataReltioId:`reltio-dq-dashboard-entity-tab-${t}`}}))),[t,a]),setEntityTypeByUri:(0,s.pipe)((0,c.nt9)(e),i)}})(),[w,N]=(0,l.useState)(null),{isLoaded:T,savedState:S}=(0,d.a)(u),M=(0,n.useSelector)(h.ZP.selectors.getCanUserGetDQStatistic),[D,L]=(0,l.useState)(),P=(e=>{const[t,a]=(0,l.useState)(null),[r,i]=(0,l.useState)(y.o.INIT),[o,s]=(0,l.useState)(),u=(0,n.useSelector)(h.ZP.selectors.getTenant),p=(0,n.useSelector)(h.ZP.selectors.getDVFPath),d=e=>{console.error(e),i(y.o.ERROR),a([]),s(null==e?void 0:e.errorCode)},f=e=>{a(e.functions),i(y.o.LOADED)},m=(0,l.useCallback)((()=>{if(e)return i(y.o.LOADING),(0,c.HaQ)({dvfPath:p,tenant:u,entityTypeUri:e}).then(f).catch(d)}),[p,u,e]);return(0,l.useEffect)((()=>{m()}),[m]),{data:t,state:r,reload:m,errorCode:o}})(null==g?void 0:g.uri),j=null==E?void 0:E.map((e=>Gr({},e,{additionalLabel:r().createElement("span",{className:v.additionalLabel},"(",e.additionalLabel,")")}))),F=(0,l.useCallback)((e=>{(null==g?void 0:g.uri)!==e&&(N(null),x(e),D===I.ENTITY_TYPE&&o(Gr({dataLevel:D,entityTypeUri:e},H.current&&{filterOptions:H.current.filterOptions,filterText:H.current.filterText})))}),[null==g?void 0:g.uri]),k=(null===(t=i.layoutsByDataLevel)||void 0===t?void 0:t[I.ENTITY_TYPE])||C[I.ENTITY_TYPE],z=null===(a=i.layoutsByDataLevel)||void 0===a?void 0:a[I.ATTRIBUTE_TYPE],_=(0,l.useMemo)((()=>D===I.ENTITY_TYPE&&k?k:((e,t)=>{const a=U(t),l=(0,s.mergeLeft)(e,C[I.ATTRIBUTE_TYPE]);return l[a]||l.default||[]})(z,null==w?void 0:w.type)),[k,null==w?void 0:w.type,z,D]),V=(0,l.useMemo)((()=>((e,t,a,l)=>{const r=(0,s.uniqBy)((0,s.prop)("id"),(0,s.concat)((null==e?void 0:e[l])||[],A[l]||[])),n=(e=>{switch(e){case I.ATTRIBUTE_TYPE:return(e=>{switch(e){case R.INTEGER:case R.FLOAT:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART,O.VALUE_DISTRIBUTION];case R.BOOLEAN:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY];case R.STRING:return[O.LENGTH,O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART];case R.DATE:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART,O.VALUE_DISTRIBUTION,O.MONTH_DISTRIBUTION,O.DAY_OF_MONTH_DISTRIBUTION,O.DAY_OF_WEEK_DISTRIBUTION];case R.SSN:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART,O.PATTERN];case R.UNKNOWN:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART,O.LENGTH];default:return[]}})(U(t));case I.ENTITY_TYPE:return[O.UNSUPPORTED];default:return[]}})(l);return a.reduce(((e,t)=>{const a=(0,s.prop)("type",e.find((0,s.propEq)("id",t.id)));if(!n.includes(a)){const a=e.findIndex((0,s.propEq)("id",t.id));if(-1!==a)return(0,s.adjust)(a,(0,s.assoc)("type",O.UNSUPPORTED),e)}return e}),r)})(i.viewsByDataLevel,null==w?void 0:w.type,_,D)),[null==w?void 0:w.type,_,D]);(0,l.useEffect)((()=>{T&&(x(S.entityTypeUri||qr(E)),L(k?S.dataLevel||I.ENTITY_TYPE:I.ATTRIBUTE_TYPE))}),[T]);const H=(0,l.useRef)(),Y=g&&M&&T;return r().createElement("div",{className:v.perspectiveView},r().createElement(b,{title:p().text("Data Quality")},g&&r().createElement(f.Z,{value:g.uri,tabs:j,onChange:F,scrollButtons:"auto"})),r().createElement("div",{className:v.content},Y&&r().createElement(r().Fragment,null,r().createElement(Ie.Provider,{value:P},r().createElement("div",{className:v.wrapper},k&&r().createElement("div",{className:B()(v.entityLevelButton,{[v.selectedButton]:D===I.ENTITY_TYPE}),onClick:()=>{N(null),L(I.ENTITY_TYPE)}},`${g.label} ${p().text("summary")}`),r().createElement(Yr,{entityType:g,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:a,filterOptions:l}=e;const r=null==t?void 0:t.fieldName,n={entityTypeUri:g.uri,fieldName:r,filterOptions:l,filterText:a,dataLevel:D};!r&&D!==I.ENTITY_TYPE||(0,s.equals)(H.current,n)||(o(n),H.current=n),r&&L(I.ATTRIBUTE_TYPE),N(t)},defaultFieldName:null==S?void 0:S.fieldName,defaultFilterText:null==S?void 0:S.filterText,defaultFilterOptions:null==S?void 0:S.filterOptions,disableAttributeSelection:D===I.ENTITY_TYPE})),(w||D===I.ENTITY_TYPE)&&r().createElement(Ce.Provider,{value:g},r().createElement(Ae.Provider,{value:w},r().createElement(Vl,{views:V,layout:_}))))),!M&&r().createElement(m.ZP,{text:p().text("403: Permission denied"),secondaryText:p().text("Permission denied")})))};function $r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Kr=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){$r(e,t,a[t])}))}return e}({},c.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}}),Xr=(0,i.Z)(Kr),Jr=(0,o.createGenerateClassName)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0}),en=e=>{let{store:t,config:a,saveState:i,getSavedState:s}=e;const u=(0,l.useCallback)((0,c.aYu)(s),[s]);return r().createElement(n.Provider,{store:t},r().createElement(o.ThemeProvider,{theme:Xr},r().createElement(o.StylesProvider,{generateClassName:Jr},r().createElement(Qr,{config:a,saveState:i,getSavedState:u}))))}}}]);
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[994],{98989:(e,t,a)=>{var l=a(14859);t.Z=void 0;var r=l(a(24328)),n=(0,l(a(50175)).default)(r.default.createElement(r.default.Fragment,null,r.default.createElement("path",{d:"M10 17l5-5-5-5v10z"}),r.default.createElement("path",{fill:"none",d:"M0 24V0h24v24H0z"})),"ArrowRight");t.Z=n},82726:(e,t,a)=>{var l=a(14859);t.Z=void 0;var r=l(a(24328)),n=(0,l(a(50175)).default)(r.default.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.Z=n},43266:(e,t,a)=>{var l=a(14859);t.Z=void 0;var r=l(a(24328)),n=(0,l(a(50175)).default)(r.default.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");t.Z=n},21853:(e,t,a)=>{var l=a(14859);t.Z=void 0;var r=l(a(24328)),n=(0,l(a(50175)).default)(r.default.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.Z=n},88059:(e,t,a)=>{a.r(t),a.d(t,{default:()=>en});var l=a(24328),r=a.n(l),n=a(52730),i=a(33016),o=a(36138),c=a(7771),s=a(17440),p=a(87918),u=a.n(p),d=a(11326),f=a(7907),m=a(79002),h=a(89810),y=a(5260);var v=a(90436),g=a(79692);const E=(0,g.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"}}),b=e=>{let{title:t,children:a}=e;const l=E();return r().createElement("div",{className:l.root},r().createElement(v.Z,{variant:"body2",className:l.title},t),r().createElement("div",{className:l.content},a))};var x=a(17822);let O;!function(e){e.FILL_RATE_CHART="fillRate",e.UNIQUENESS_CHART="uniqueness",e.SUMMARY="summary",e.VALIDATION="validation",e.FREQUENCY="frequency",e.LENGTH="length",e.CROSSWALK="crosswalk",e.MONTH_DISTRIBUTION="monthDistribution",e.DAY_OF_WEEK_DISTRIBUTION="dayOfWeekDistribution",e.DAY_OF_MONTH_DISTRIBUTION="dayOfMonthDistribution",e.VALUE_DISTRIBUTION="valueDistribution",e.PATTERN="patternAnalysis",e.UNSUPPORTED="unsupported"}(O||(O={}));var w=a(45644),N=a(78223),T=a(39878);const S=(e,t,a)=>({attributes:(t||[]).map(((t,l)=>{let{filter:r,fieldName:n,values:i}=t;return{data:{uri:null==a?void 0:a.uri,entityTypeUri:e,fieldName:n},filter:r,id:`attribute_${l}`,operator:"and",values:i}})),entityTypes:[e],id:"group",operator:"or"});let R,I;!function(e){e.STRING="string",e.FLOAT="float",e.INTEGER="integer",e.BOOLEAN="boolean",e.DATE="date",e.SSN="SSN",e.UNKNOWN="unknown"}(R||(R={})),function(e){e.ENTITY_TYPE="entityType",e.ATTRIBUTE_TYPE="attributeType"}(I||(I={}));const A={[I.ATTRIBUTE_TYPE]:[{id:"FillRateView",type:O.FILL_RATE_CHART,title:"Fill rate"},{id:"UniquenessAnalysisView",type:O.UNIQUENESS_CHART,title:u().text("Uniqueness analysis")},{id:"SummaryView",type:O.SUMMARY,title:u().text("Summary")},{id:"ValidationView",type:O.VALIDATION,title:u().text("Profiles that violated validation function")},{id:"FrequencyAnalysis",type:O.FREQUENCY,title:u().text("Frequency analysis")},{id:"LengthStatistics",type:O.LENGTH,title:u().text("Length statistics")},{id:"PatternAnalysis",type:O.PATTERN,title:u().text("Pattern analysis")},{id:"CrosswalkAnalysis",type:O.CROSSWALK,title:u().text("Crosswalk analysis")},{id:"MonthDistribution",type:O.MONTH_DISTRIBUTION,title:u().text("Month distribution")},{id:"DayOfWeekDistribution",type:O.DAY_OF_WEEK_DISTRIBUTION,title:u().text("Day of week distribution")},{id:"DayOfMonthDistribution",type:O.DAY_OF_MONTH_DISTRIBUTION,title:u().text("Day of month distribution")},{id:"ValueDistribution",type:O.VALUE_DISTRIBUTION,title:u().text("Value distribution")},{id:"UnsupportedDataType",type:O.UNSUPPORTED,title:u().text("Unsupported Data Type")}],[I.ENTITY_TYPE]:[{id:"SummaryView",type:O.SUMMARY,title:u().text("Summary")}]},C={[I.ATTRIBUTE_TYPE]:{default:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"LengthStatistics"},{x:0,y:38,width:4,height:19,id:"CrosswalkAnalysis"}],[R.SSN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"PatternAnalysis"},{x:0,y:38,width:4,height:19,id:"CrosswalkAnalysis"}],[R.BOOLEAN]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"FrequencyAnalysis"},{x:0,y:19,width:4,height:19,id:"CrosswalkAnalysis"}],[R.DATE]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:0,y:38,width:4,height:19,id:"CrosswalkAnalysis"},{x:0,y:57,width:4,height:19,id:"ValueDistribution"},{x:0,y:76,width:2,height:19,id:"MonthDistribution"},{x:2,y:76,width:2,height:19,id:"DayOfWeekDistribution"},{x:0,y:95,width:4,height:19,id:"DayOfMonthDistribution"}],[R.INTEGER]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"ValueDistribution"},{x:0,y:38,width:4,height:19,id:"CrosswalkAnalysis"}],[R.FLOAT]:[{x:0,y:0,width:2,height:11,id:"SummaryView"},{x:2,y:0,width:2,height:11,id:"ValidationView"},{x:0,y:11,width:2,height:8,id:"FillRateView"},{x:2,y:11,width:2,height:8,id:"UniquenessAnalysisView"},{x:0,y:19,width:2,height:19,id:"FrequencyAnalysis"},{x:2,y:19,width:2,height:19,id:"ValueDistribution"},{x:0,y:38,width:4,height:19,id:"CrosswalkAnalysis"}]}};function M(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){D(e,t,a[t])}))}return e}function D(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const L=(0,s.map)((e=>M({},e,{localizedValue:u().number(e.value)}))),P=e=>(0,s.isNil)(e)?"":`(${e}%)`,j=e=>(0,s.isEmpty)(e)||!e.find((e=>{let{value:t}=e;return t>0})),F=(0,s.curry)(((e,t,a)=>({advanced:[S(t,a.map((0,s.when)((()=>(0,c.Lt4)(e.type)),(0,s.evolve)({values:(0,s.map)((0,c.mOr)(c.ZBU))}))),e)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}))),k=e=>t=>{let{detailedAttributeType:a,entityTypeUri:l,dvfs:r}=t;return(0,s.pipe)(e({fieldName:a.fieldName,entityTypeUri:l,dvfs:r}),F(a,l))},U=e=>{switch(e){case c.oS0.TYPE_BLOB:case c.oS0.TYPE_BLOG_URL:case c.oS0.TYPE_CIK_ID:case c.oS0.TYPE_ENTITY_ID:case c.oS0.TYPE_IMAGE_URL:case c.oS0.TYPE_STRING:case c.oS0.TYPE_TEXT:case c.oS0.TYPE_URL:return R.STRING;case c.oS0.TYPE_COUNT:case c.oS0.TYPE_DOLLAR:case c.oS0.TYPE_INT:case c.oS0.TYPE_LONG:return R.INTEGER;case c.oS0.TYPE_FLOAT:case c.oS0.TYPE_DOUBLE:case c.oS0.TYPE_NUMBER:return R.FLOAT;case c.oS0.TYPE_BOOLEAN:case c.oS0.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return R.BOOLEAN;case c.oS0.TYPE_ACTIVENESS_DATE:case c.oS0.TYPE_DATE:case c.oS0.TYPE_LOCAL_DATE:case c.oS0.TYPE_TIMESTAMP:return R.DATE;case c.oS0.TYPE_SSN:return R.SSN;default:return R.UNKNOWN}},z=e=>{let{percent:t,value:a}=e;return M({width:`${t}%`},a>0&&{minWidth:"3px"})},_=(0,s.pipe)((0,s.pluck)("percent"),(e=>Math.max(...e)));var V=a(71153),B=a.n(V);const H=(0,g.Z)({wrapper:{width:"100%",display:"flex",justifyContent:"center",margin:"auto",flexWrap:"wrap",flexDirection:"column",marginBottom:2},item:{display:"flex",alignItems:"center",height:19},itemColor:{width:12,height:12,marginRight:9,flexShrink:0}}),Y=e=>{let{payload:t}=e;const a=H();return r().createElement("div",{className:B()(a.wrapper)},t.map((e=>r().createElement("div",{key:e.id,className:a.item},r().createElement("div",{style:{background:e.color},className:a.itemColor}),e.value))))},Z=(0,g.Z)({root:{display:"flex",flexDirection:"column",height:"100%"},stackedBar:{width:"100%",display:"flex",flexWrap:"nowrap",marginTop:"13px"},bar:{height:"24px",flexGrow:1,position:"relative",width:"50%",transition:"width 0.7s","&:hover":{"&:after":{content:'""',background:"rgba(0, 0, 0, 0.1)"}},"&:after":{position:"absolute",top:"-3px",bottom:"-5px",left:"-5px",right:"-5px",transition:"background 0.3s",zIndex:1,pointerEvents:"none"}},inactivePart:{background:"#EFEFEF"},tooltipTitle:{fontSize:"11px"},tooltipFillRate:{marginTop:"4px"},tooltip:{background:"#fff",filter:"drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)) drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2))",padding:"5px 8px"},legendWrapper:{position:"relative",flexGrow:1},legendLabel:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.54)",paddingRight:"8px"},legendValue:{fontSize:"13px",lineHeight:"18px",color:"rgba(0, 0, 0, 0.87)"},clickable:{cursor:"pointer"}});function G(){return G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},G.apply(this,arguments)}const W=(0,l.forwardRef)(((e,t)=>{let{className:a}=e,l=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["className"]);const n=Z();return r().createElement("div",G({className:B()(n.bar,a)},l,{ref:t}))}));W.displayName="Bar";const q=W,Q=(0,g.Z)({label:{whiteSpace:"nowrap",paddingRight:"9px"},infoDataLabel:{fontWeight:700},chartDataLabel:{color:"rgba(255, 255, 255, 0.75)"}}),$=e=>{let{label:t,value:a}=e;const l=Q();return r().createElement(r().Fragment,null,t&&r().createElement("span",{className:B()(l.label,l.chartDataLabel)},t),a)},K=(0,g.Z)({tooltipWrapper:{fontSize:"10px",fontWeight:400,lineHeight:"12px",color:"#FFFFFF"},title:{padding:"2px 0"},row:{padding:"2px 0"}}),X=e=>{let{data:t,title:a,DataRenderer:l=$}=e;const n=K();return r().createElement("div",{className:n.tooltipWrapper},a&&r().createElement("div",{className:n.title},a),t.map(((e,t)=>r().createElement("div",{key:t,className:n.row},r().createElement(l,e)))))};function J(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){ee(e,t,a[t])}))}return e}function ee(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const te=(0,N.Z)(q),ae=e=>{let{label:t,value:a,percent:l}=e;return[{label:t,value:`${u().number(a)} ${P(l)}`}]},le=(0,T.Z)((e=>{let{data:t,colors:a,onItemClick:l}=e;const n=Z(),i=l&&(e=>l(e)),o=!!l;return r().createElement("div",{className:n.root},r().createElement("div",{className:n.stackedBar},t.map(((e,t)=>r().createElement(te,{className:o&&n.clickable,key:e.label,tooltipTitle:r().createElement(X,{data:ae(e)}),style:J({},z(e),{background:a[t]}),onClick:()=>i(e.group)})))),r().createElement("div",{className:n.legendWrapper},r().createElement(w.De,{layout:"vertical",align:"left",verticalAlign:"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"100%",maxWidth:"100%"},content:r().createElement(Y,null),payload:(t||[]).map(((e,t)=>{let{group:l,label:i,value:o,percent:s}=e;return{id:l,type:"square",color:a[t],value:r().createElement(r().Fragment,null,r().createElement("span",{className:n.legendLabel},i),r().createElement("span",{className:n.legendValue},`${(0,c.k7L)(o,999)} ${P(s)}`))}}))})))}));var re=a(17998),ne=a(39475),ie=a(82726);const oe=(0,g.Z)((()=>({root:{padding:"0px 16px"},title:{fontSize:"16px",marginRight:e=>e?0:"5px"},infoIcon:{position:"relative"}}))),ce=e=>{let{title:t,infoTooltipTitle:a,children:l}=e;const n=oe(!!l),i=!!a;return r().createElement(re.Z,{title:t,className:n.root,classes:{title:n.title}},i&&r().createElement(ne.k,{icon:ie.Z,size:"XXS",tooltipTitle:a,className:n.infoIcon}),l)};var se=a(54823);const pe=(0,g.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 10px"}})));function ue(){return ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ue.apply(this,arguments)}const de=e=>{let{className:t}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["className"]);const l=pe();return r().createElement(se.Z,ue({},a,{className:B()(l.viewContent,t)}))};var fe=a(1730);const me=(0,g.Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),he=e=>{let{config:t,children:a}=e;const l=me(),{type:n}=t;return r().createElement(fe.Z,{className:l.view,"data-reltio-id":`reltio-dq-dashboard-chart-${n}`},a)},ye=e=>{let{label:t,value:a}=e;const l=Q();return r().createElement(r().Fragment,null,t&&r().createElement("span",{className:B()(l.label,l.infoDataLabel)},t),a)},ve={[c.s9T.MISSING]:"#CE5C00",[c.s9T.EXISTS]:"#C4CE00"},ge=(0,s.map)((e=>{let{group:t}=e;return ve[t]||(0,c.f4_)(t)})),Ee=e=>({[c.s9T.MISSING]:u().text("Missing"),[c.s9T.EXISTS]:u().text("Exists")}[e]||e),be=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:Ee(t),group:t,value:a}})),(0,s.sortBy)((e=>Object.values(c.s9T).indexOf(e.group))),L),xe=e=>Object.keys(e).reduce(((t,a)=>(t[a]=be(e[a]),t)),{}),Oe=(0,s.propOr)({},"fillRate"),we=(0,s.pipe)(Oe,be,(0,s.when)(j,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,ge])),Ne=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:t===c.s9T.EXISTS?c.j5E.EXISTS:c.j5E.MISSING_VALUE,fieldName:a}]})),Te=k(Ne),Se=r().createContext(null);Se.displayName="ChartsDataContext";const Re=e=>{const{data:t,state:a,reload:r}=(0,l.useContext)(Se);return{data:(0,l.useMemo)((()=>e(t)),[t,e]),state:a,reload:r}},Ie=r().createContext(null);Ie.displayName="DVFContext";const Ae=r().createContext(null);Ae.displayName="DetailedAttributeTypeContext";const Ce=r().createContext(null);Ce.displayName="EntityTypeContext";const Me=e=>{const t=(0,n.useDispatch)(),a=(0,l.useContext)(Ae),r=(0,l.useContext)(Ce),i=(0,l.useContext)(Ie).data;return(0,s.pipe)(e({detailedAttributeType:a,entityTypeUri:r.uri,dvfs:i}),h.ui.actions.openSearch,t)},De=e=>{let{config:t}=e;const{title:a}=t,{data:l,state:n,reload:i}=Re(we),{chartData:o,colors:c}=l,s=Me(Te),p=r().createElement(X,{title:u().text("Fill rate"),data:[{label:`${u().text("Exists")}:`,value:u().text("Profiles with data")},{label:`${u().text("Missing")}:`,value:u().text("Profiles without data")}],DataRenderer:ye});return r().createElement(he,{config:t},r().createElement(ce,{title:a,infoTooltipTitle:p}),r().createElement(de,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return r().createElement(le,{data:t,colors:c,onItemClick:s})})))},Le={[c.dC6.UNIQUE]:"#4BAFFF",[c.dC6.NOT_UNIQUE]:"#C34980"},Pe=(0,s.map)((e=>{let{group:t}=e;return Le[t]||(0,c.f4_)(t)})),je=e=>({[c.dC6.UNIQUE]:u().text("Unique"),[c.dC6.NOT_UNIQUE]:u().text("Not unique")}[e]||e),Fe=(0,s.pipe)(Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:je(t),group:t,value:a}})),(0,s.sortBy)((e=>Object.values(c.dC6).indexOf(e.group))),L),ke=(0,s.propOr)({},"uniqueness"),Ue=(0,s.pipe)(ke,Fe,(0,s.when)(j,(0,s.always)([])),(0,s.converge)(((e,t)=>({chartData:e,colors:t})),[s.identity,Pe])),ze=e=>{let{config:t}=e;const{title:a}=t,{data:l,state:n,reload:i}=Re(Ue),{chartData:o,colors:c}=l,s=r().createElement(X,{title:u().text("Uniqueness analysis"),data:[{label:`${u().text("Unique")}:`,value:u().text("Number of values that only appear once and have no duplicates")},{label:`${u().text("Not unique")}:`,value:u().text("Number of values that have at least one duplicate in the list")}],DataRenderer:ye});return r().createElement(he,{config:t},r().createElement(ce,{title:a,infoTooltipTitle:s}),r().createElement(de,{data:o,loadingState:n,onRefresh:i},(e=>{let{data:t}=e;return r().createElement(le,{data:t,colors:c})})))};var _e=a(82068),Ve=a(4614),Be=a(80030),He=a(7089);const Ye=(e,t)=>(e||[]).some((0,s.propEq)("attribute",t)),Ze=e=>[c.oS0.TYPE_FLOAT,c.oS0.TYPE_DOUBLE,c.oS0.TYPE_NUMBER].includes(e);let Ge;function We(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){qe(e,t,a[t])}))}return e}function qe(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}!function(e){e.INCLUDED_IN_MATCHING="includedInMatching",e.REQUIRED="required",e.RDM_LOOKUP="RDMLookup",e.CONTAIN_VF="containVF",e.REFERENCE="reference"}(Ge||(Ge={}));const Qe=(0,s.curry)(((e,t)=>e.every((e=>t.details[e.value])))),$e=(0,s.curry)(((e,t)=>{var a;return Qe(e,t)||(null===(a=t.children)||void 0===a?void 0:a.some((t=>$e(e,t))))})),Ke=(0,s.curry)(((e,t)=>{var a;const l=e[t.fieldName];return null==l||null===(a=l.find((0,s.propEq)("group",c.s9T.EXISTS)))||void 0===a?void 0:a.value})),Xe=(0,s.curry)(((e,t)=>{var a;const l=e[t.fieldName];return!(null!=l&&null!==(a=l.find((0,s.propEq)("group",c.s9T.EXISTS)))&&void 0!==a&&a.value)})),Je=(0,s.curry)((function(e,t){var a;let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=t.fieldName||(0,c.Tde)(t.uri,l);return Xe(e,We({},t,{fieldName:r}))||(null===(a=t.children)||void 0===a?void 0:a.some((a=>Je(e,a,l.concat({name:t.name,label:t.label})))))})),et=(0,s.curry)(((e,t)=>t.reduce(((t,a)=>{const l=((e,t)=>{var a;return null===(a=e.label||e.name)||void 0===a?void 0:a.toLowerCase().includes(t.toLowerCase())})(a,e),r=l?a.children||[]:et(e,a.children||[]);return(l||r.length)&&t.push(Object.assign({},a,r.length&&{children:r})),t}),[])));function tt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){at(e,t,a[t])}))}return e}function at(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const lt=e=>{let{attrTypeItem:t,dvf:a=[],matchAttributes:l=[]}=e;const{uri:r,required:n,isAttributeReference:i}=t;return{[Ge.INCLUDED_IN_MATCHING]:l.includes(r),[Ge.CONTAIN_VF]:Ye(a,r),[Ge.REQUIRED]:!!n,[Ge.RDM_LOOKUP]:(0,c.lS4)(t),[Ge.REFERENCE]:i}},rt=e=>({[Ge.INCLUDED_IN_MATCHING]:u().text("Included in matching"),[Ge.CONTAIN_VF]:u().text("Has validation functions"),[Ge.REQUIRED]:u().text("Required"),[Ge.RDM_LOOKUP]:u().text("RDM"),[Ge.REFERENCE]:u().text("Reference attribute")}[e]||e),nt=(0,s.curry)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return(0,s.pipe)((0,s.chain)((e=>{const r=e.children?nt(e.children,t.concat({name:e.name,label:e.label}),a||(0,c.YkG)(e),l+1):[];return[{attributeItem:tt({},e,{fieldName:(0,c.Tde)(e.uri,t),isAttributeReference:(0,c.YkG)(e)||a}),level:l},...r]})))(e)}));function it(){return it=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},it.apply(this,arguments)}const ot=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",it({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#6663F6"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 14.4h2.411c.016-.205.047-.405.093-.6H8.4v-1.2h3.012c.137-.215.296-.416.472-.6H8.4v-1.2h6v.011a3.896 3.896 0 011.8.287V8.4c0-.66-.54-1.2-1.2-1.2H7.8c-.66 0-1.2.54-1.2 1.2v7.8c0 .66.54 1.2 1.2 1.2h4.083a3.892 3.892 0 01-.979-1.8H8.4v-1.2zm6-4.2h-6V9h6v1.2zm2.58 5.934L18.852 18l-.852.852-1.872-1.872a2.66 2.66 0 01-1.434.42A2.695 2.695 0 0112 14.7c0-1.494 1.206-2.7 2.7-2.7 1.494 0 2.7 1.206 2.7 2.7 0 .528-.156 1.014-.42 1.434zm-2.28.066a1.5 1.5 0 10-.001-3.001A1.5 1.5 0 0014.7 16.2z",fill:"#fff"}))};function ct(){return ct=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ct.apply(this,arguments)}const st=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",ct({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#1DACF5"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4 9.6H9.3L12 6.9l2.7 2.7h-2.1v3.846l-3.6 3.6-.846-.846 3.246-3.246V9.6zm4.446 6.6l-.846.846L12.954 15l.846-.846 2.046 2.046z",fill:"#fff"}))};function pt(){return pt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},pt.apply(this,arguments)}const ut=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",pt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#7F22FD"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4 9v1.2h1.2V9H8.4zm0 2.4v1.2h1.2v-1.2H8.4zm0 2.4V15h1.2v-1.2H8.4zM10.8 9v1.2h4.8V9h-4.8zm0 2.4v1.2h4.8v-1.2h-4.8zm0 2.4V15h4.8v-1.2h-4.8zm6-6v8.4H7.2V7.8h9.6zm1.2 9V6.6H6V17.4h12v-.6z",fill:"#fff"}))};function dt(){return dt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},dt.apply(this,arguments)}const ft=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",dt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#4B31E9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 15.6h1.8V15a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-3V9.6H8.4a.6.6 0 01-.6-.6V6.6a.6.6 0 01.6-.6H12a.6.6 0 01.6.6V9a.6.6 0 01-.6.6h-1.2v1.8h1.8v-.6a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-1.8v3z",fill:"#fff"}))};function mt(){return mt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},mt.apply(this,arguments)}const ht=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",mt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#80D2FC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6c-3.312 0-6 2.688-6 6s2.688 6 6 6 6-2.688 6-6-2.688-6-6-6zm-.6 4.96V9h1.2v1.96l1.698-.98.6 1.04L13.2 12l1.698.98-.6 1.04-1.698-.98V15h-1.2v-1.96l-1.698.98-.6-1.04L10.8 12l-1.698-.98.6-1.04 1.698.98zM7.2 12c0 2.646 2.154 4.8 4.8 4.8s4.8-2.154 4.8-4.8-2.154-4.8-4.8-4.8A4.806 4.806 0 007.2 12z",fill:"#fff"}))},yt=(0,g.Z)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}},loading:{"& circle":{fill:"#AAAAAA"}},badQuality:{"& circle":{fill:"#FF1744"}}}),vt={SMALL:{width:22,height:22},NORMAL:{width:24,height:24}};let gt;!function(e){e.LOADING="loading",e.BAD_QUALITY="badQuality",e.NORMAL="normal"}(gt||(gt={}));const Et=e=>{let{detailType:t,size:a=vt.NORMAL,variant:l=gt.NORMAL}=e;const n=yt(a),i=B()(n.icon,n[l]);switch(t){case Ge.RDM_LOOKUP:return r().createElement(ut,{className:i});case Ge.CONTAIN_VF:return r().createElement(ot,{className:i});case Ge.INCLUDED_IN_MATCHING:return r().createElement(st,{className:i});case Ge.REFERENCE:return r().createElement(ft,{className:i});case Ge.REQUIRED:return r().createElement(ht,{className:i});default:return null}},bt=(0,g.Z)({root:{height:"24px",maxWidth:"calc(100% - 8px)",margin:"0 4px 4px 0",borderRadius:"12px"},label:{fontSize:"12px",paddingLeft:"8px",paddingRight:"9px"},badQuality:{backgroundColor:"rgba(255, 23, 68, 0.12)"}});function xt(){return xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},xt.apply(this,arguments)}function Ot(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){wt(e,t,a[t])}))}return e}function wt(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Nt=e=>{let{detailType:t,classes:a}=e,n=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["detailType","classes"]);const i=bt(),{data:o,state:s}=(0,l.useContext)(Se);let p=gt.NORMAL;const u=s===y.o.LOADING,d=(e=>{var t;return 0===(null==e||null===(t=e.fillRate)||void 0===t?void 0:t[c.s9T.MISSING])})(o);return t===Ge.REQUIRED&&(u&&(p=gt.LOADING),u||d||(p=gt.BAD_QUALITY)),r().createElement(He.Z,xt({classes:Ot({root:B()(i.root,{[i.badQuality]:t===Ge.REQUIRED&&!u&&s!==y.o.INIT&&!d}),label:i.label},a),label:rt(t),icon:r().createElement(Et,{detailType:t,variant:p})},n))},Tt=(0,g.Z)({root:{display:"flex",flexWrap:"wrap",flexGrow:1}}),St=e=>{let{details:t,chipClasses:a={}}=e;const l=Tt();return r().createElement("div",{className:l.root},Object.entries(t||{}).filter((e=>{let[,t]=e;return t})).map((e=>{let[t]=e;return r().createElement(Nt,{key:t,detailType:t,classes:a})})))},Rt=(0,g.Z)({header:{display:"flex",paddingTop:"4px",marginBottom:"18px"},info:{display:"flex",flexDirection:"column","&:first-child":{borderRight:"1px solid rgba(0,0,0,0.12)",paddingRight:"24px",marginRight:"24px"}},infoTitle:{color:"rgba(0,0,0,0.54)",fontSize:"12px",lineHeight:"16px"},infoContent:{fontSize:"30px",lineHeight:"35px",padding:"5px 0 0",display:"flex",alignItems:"center"},attributeTypeIconWrapper:{width:"32px",height:"33px",background:"rgba(0, 0, 0, 0.05)",borderRadius:"4px",position:"relative",marginRight:"12px",flexShrink:0,"& svg":{position:"absolute",transform:"translate(-50%, -50%)",top:"50%",left:"50%"}},totalLoading:{padding:"4px 8px"}}),It=e=>{let{title:t,children:a}=e;const l=Rt();return r().createElement("div",{className:l.info},r().createElement("div",{className:l.infoTitle},t),r().createElement("div",{className:l.infoContent},a))};function At(){return At=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},At.apply(this,arguments)}const Ct=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",At({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg1279746712a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"15",height:"8"},r().createElement("path",{d:"M11.667 4H5C2.793 4 1 5.793 1 8s1.793 4 4 4h6.667c2.206 0 4-1.793 4-4s-1.794-4-4-4zm0 6.667H5a2.666 2.666 0 110-5.334h6.667a2.666 2.666 0 110 5.334zm0-4.667c-1.107 0-2 .893-2 2s.893 2 2 2c1.106 0 2-.893 2-2s-.894-2-2-2z",fill:"#000"})),r().createElement("g",{mask:"url(#svg1279746712a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Mt(){return Mt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Mt.apply(this,arguments)}const Dt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Mt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg208732808a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"14"},r().createElement("path",{d:"M7.992 1.333A6.663 6.663 0 001.332 8c0 3.68 2.98 6.667 6.66 6.667A6.67 6.67 0 0014.665 8a6.67 6.67 0 00-6.673-6.667zm.007 12A5.332 5.332 0 012.665 8 5.332 5.332 0 018 2.667 5.332 5.332 0 0113.332 8a5.332 5.332 0 01-5.333 5.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z",fill:"#000"})),r().createElement("g",{mask:"url(#svg208732808a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function Lt(){return Lt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Lt.apply(this,arguments)}const Pt=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",Lt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg1638934380a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},r().createElement("path",{d:"M5.948 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2zM7.947 12v-1.1h1.1V12h-1.1zM13.65 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2z",fill:"#000"})),r().createElement("g",{mask:"url(#svg1638934380a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function jt(){return jt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},jt.apply(this,arguments)}const Ft=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",jt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("path",{d:"M2.11 12v-.825h1.331V5.169L2 5.741v-.89L3.331 4.3h1.045v6.875h1.089V12H2.11zM5.968 11.032l1.65-2.508c.242-.367.403-.62.484-.759.08-.147.136-.29.165-.429.03-.14.044-.341.044-.605v-.77a.778.778 0 00-.253-.583c-.169-.161-.389-.242-.66-.242h-1.21V4.3h1.1c.638 0 1.126.158 1.463.473.345.308.517.774.517 1.397v.462c0 .367-.018.645-.055.836-.037.19-.103.37-.198.539-.088.169-.264.455-.528.858l-1.518 2.299h2.519V12h-3.52v-.968zM13.544 10.262c0 .609-.147 1.052-.44 1.331-.293.271-.77.407-1.43.407h-1.298v-.825h1.397c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.239c0-.242-.073-.433-.22-.572-.147-.147-.341-.22-.583-.22h-1.067v-.825h.957a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.902c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187h-1.298V4.3h1.166c.623 0 1.093.14 1.408.418.323.271.484.704.484 1.298v.693c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.924z",fill:"#000",fillOpacity:".541"}))};function kt(){return kt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},kt.apply(this,arguments)}const Ut=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",kt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg924767730a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},r().createElement("path",{d:"M5.463 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H2.03v-.836h1.562c.271 0 .491-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.059-.396-.176-.528-.11-.14-.279-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473h1.463v.836H3.714c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM9.136 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H5.704v-.836h1.562c.27 0 .49-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.06-.396-.176-.528-.11-.14-.28-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473H8.96v.836H7.387c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM12.255 12l-1.683-6.886V12H9.68V4.3h1.562l1.694 6.886V4.3h.89V12h-1.572z",fill:"#000"})),r().createElement("g",{mask:"url(#svg924767730a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function zt(){return zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},zt.apply(this,arguments)}const _t=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",zt({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg3578961193a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},r().createElement("path",{d:"M5.345 12l-.418-1.947H2.782L2.353 12h-.979l1.86-7.7h1.264L6.324 12h-.979zM3.85 5.026l-.89 4.202H4.75L3.85 5.026zM10.494 10.262c0 .63-.146 1.078-.44 1.342-.286.264-.763.396-1.43.396h-2.09V4.3h1.958c.653 0 1.13.132 1.43.396.308.264.462.704.462 1.32v.627c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.99zM9.427 5.917c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187H7.491v2.431h1.133a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.836zm.11 3.256c0-.242-.073-.433-.22-.572-.147-.147-.34-.22-.583-.22H7.491v2.794h1.232c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.173zM13.119 12c-.638 0-1.13-.154-1.474-.462-.337-.315-.506-.785-.506-1.408V6.17c0-.623.169-1.089.506-1.397.345-.315.836-.473 1.474-.473h1.342v.836h-1.452c-.271 0-.491.08-.66.242a.778.778 0 00-.253.583v4.378c0 .227.084.422.253.583.169.161.389.242.66.242h1.452V12h-1.342z",fill:"#000"})),r().createElement("g",{mask:"url(#svg3578961193a)"},r().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))},Vt=(0,g.Z)({icon:e=>{let{width:t,height:a}=e;return{width:t,height:a}}}),Bt={SMALL:{width:16,height:16},NORMAL:{width:24,height:24}},Ht=e=>{let{type:t,size:a=Bt.SMALL}=e;const l=Vt(a);switch(U(t)){case R.STRING:return r().createElement(_t,{className:l.icon});case R.FLOAT:return r().createElement(Pt,{className:l.icon});case R.INTEGER:return r().createElement(Ft,{className:l.icon});case R.BOOLEAN:return r().createElement(Ct,{className:l.icon});case R.DATE:return r().createElement(Dt,{className:l.icon});case R.SSN:return r().createElement(Ut,{className:l.icon});default:return r().createElement(_t,{className:l.icon})}},Yt=e=>{let{detailedAttributeType:t}=e;const a=Rt(),n=(e=>{const[t,a]=(0,l.useState)(null),r=(0,l.useContext)(Ce);return(0,l.useEffect)((()=>{if(r.uri&&e){const t={filter:c.j5E.EXISTS,fieldName:e},l={filter:c.j5E.EQUALS,fieldName:"type",values:[r.uri]};a(null),(0,c.j_Q)([t,l]).then((e=>{let{total:t}=e;a(t)}))}}),[r.uri,e]),t})(t.fieldName),i=null===n?r().createElement(Ve.Z,{size:"24",className:a.totalLoading}):(0,c.k7L)(n);return r().createElement("div",null,r().createElement("div",{className:a.header},r().createElement(It,{title:u().text("Profiles")},r().createElement(Be.ZP,{title:r().createElement(X,{data:[{label:u().text("Entities with exists attribute"),value:u().number(n)}]})},r().createElement("div",null,i))),r().createElement(It,{title:u().text("Data type")},(o=t.type,r().createElement(r().Fragment,null,r().createElement("div",{className:a.attributeTypeIconWrapper},r().createElement(Ht,{type:o,size:Bt.NORMAL})),u().text(o))))),r().createElement(St,{details:t.details}));var o},Zt=(0,g.Z)({content:{padding:"0 16px"}}),Gt=e=>{let{config:t}=e;const a=Zt(),n=(0,l.useContext)(Ae);return r().createElement(he,{config:t},r().createElement(ce,{title:(0,c.idV)(n.label)}),r().createElement(_e.Z,{className:a.content},r().createElement(Yt,{detailedAttributeType:n})))};var Wt=a(65298);function qt(){return qt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},qt.apply(this,arguments)}const Qt=(0,g.Z)({container:{height:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",padding:0,"& svg":{paddingTop:0,height:"88px",width:"88px",marginBottom:"20px"}},errorMessage:{padding:"0 24px",fontSize:"14px",textAlign:"center"},errorTitle:{padding:"0 24px",fontSize:"16px",textAlign:"center"}}),$t=r().createElement((e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",qt({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg98386349a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),r().createElement("g",{mask:"url(#svg98386349a)"},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:".3"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),r().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),r().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),r().createElement("path",{opacity:".5",d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".3",d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".8",d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),r().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".2",d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),r().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),r().createElement("g",{filter:"url(#filter0_d)"},r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),r().createElement("path",{opacity:".15",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),r().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#paint0_linear)"}),r().createElement("g",{filter:"url(#filter1_d)"},r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),r().createElement("g",{filter:"url(#filter2_d)"},r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),r().createElement("defs",null,r().createElement("filter",{id:"filter0_d",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"filter1_d",x:"51.688",y:"62.625",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"filter2_d",x:"51.688",y:"44.063",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("linearGradient",{id:"paint0_linear",x1:"68.438",y1:"71.571",x2:"60.119",y2:"58.801",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:"0"}),r().createElement("stop",{offset:"1"}))))}),null),Kt=e=>{let{config:t,icon:a=$t,message:l,title:n}=e;const i=Qt(),{id:o,title:c}=t;return r().createElement(Wt.Z,{id:o},r().createElement(ce,{title:c}),r().createElement(_e.Z,{className:i.container},a,n&&r().createElement(v.Z,{className:i.errorTitle},n),l&&r().createElement(v.Z,{className:i.errorMessage},l)))},Xt=e=>{let{keyword:t,entityTypeUri:a}=e;return{keyword:{value:t,isRawFilter:!0},advanced:[S(a)],searchOptions:{searchByOv:!1,ovOnly:!1},version:"2.0"}},Jt=e=>{let{fieldName:t,value:a,entityTypeUri:l}=e;return Xt({keyword:`${c.j5E.EQUALS}(${t}, ${a})`,entityTypeUri:l})};function ea(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const ta=e=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:t,group:t,value:a}})),L),aa=(0,s.curry)(((e,t)=>{const a=t.map((t=>{const a=(e||[]).find((0,s.propEq)("uri",t.group));return function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){ea(e,t,a[t])}))}return e}({},t,{label:(null==a?void 0:a.name)||`"uri": "${t.label}"`,group:(null==a?void 0:a.name)||t.group,isActive:!!a&&a.status===c.lVm.ACTIVE})})),l=(e||[]).filter((e=>(0,s.propEq)("status",c.lVm.ACTIVE,e)&&!(0,s.any)((0,s.propEq)("group",e.uri),t))).map((e=>({label:e.name,group:e.name,value:0,isActive:!0})));return[...a,...L(l)]})),la=ta("frequency"),ra=ta("pattern"),na=(0,s.curry)(((e,t)=>{let{dvfs:a}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:(0,s.contains)(t,a.map((0,s.prop)("name")))?"analyticsAttributes.AttributeValidations.FunctionName":"analyticsAttributes.AttributeValidations.FunctionURI"}]})),ia=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Jt({fieldName:`${a.fieldName}`,value:t,entityTypeUri:l})})),oa=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:c.j5E.ON,values:[t],fieldName:a}]})),ca=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;return[{filter:c.j5E.EQUALS,values:[[t]],fieldName:a}]})),sa=e=>{let{detailedAttributeType:t,entityTypeUri:a}=e;return(0,s.cond)([[c.j5n,(0,s.always)(ia)],[c.Lt4,(0,s.always)(k(oa))],[s.identity,(0,s.always)(k(ca))]])(t.type)({detailedAttributeType:t,entityTypeUri:a,dvfs:[]})},pa=k(na),ua=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Jt({fieldName:`${a.fieldName}.pattern`,value:`"${t}"`,entityTypeUri:l})}));var da=a(79573),fa=a(45108),ma=a(92332),ha=a(83088);const ya=(0,s.pipe)((0,s.split)("|"),(e=>{let[t,a]=e;return{label:t,percent:a}})),va={content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"},ga=(0,g.Z)((e=>({colorBarContainer:{position:"relative",width:"100%",marginLeft:"16px",padding:"5px 0 6px",height:"100%",boxSizing:"border-box","&>span>div":{opacity:1,backgroundColor:t=>t?"#0072CE":e.palette.text.disabled,zIndex:1}},numberWhithPercent:{fontSize:"13px",lineHeight:"15px",fontWeight:"normal",color:e.palette.text.primary,flexShrink:0,width:"90px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},numberContainer:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 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",bottom:"2px",left:"-5px",right:"-5px",transition:"background 0.3s"}},tooltipTitle:{color:"rgba(255, 255, 255, 0.6)"},headCell:{display:"flex",alignItems:"center",height:"100%","&>div":{padding:"0 16px",width:"100%"},"&>div>span":{width:"100%",justifyContent:"flex-end"}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden","&:after":va},labelPercantageWrapper:{display:"flex"},labelWrapper:{minWidth:"90px",position:"relative"},percentsWrapper:{marginLeft:"16px",display:"flex",width:"100%"},percentLabel:{color:e.palette.text.secondary,fontSize:"12px","&:first-child":{flexGrow:1}},attribute:{color:e.palette.text.primary,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",whiteSpace:"pre",overflow:"hidden",display:"flex",alignItems:"center",height:"100%",padding:"0 16px","&:after":va},tooltipValue:{whiteSpace:"pre-wrap"}})));function Ea(){return Ea=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ea.apply(this,arguments)}function ba(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){xa(e,t,a[t])}))}return e}function xa(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Oa=e=>{let{className:t,headCellData:a}=e,l=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["className","headCellData"]);const n=ga(),{label:i,percent:o}=ya(a.label),c=!!o,s=r().createElement(ha.C,{value:i},r().createElement("div",{className:n.headLabel},i));return r().createElement("div",{className:B()(n.headCell,t)},r().createElement(ma.default,Ea({},l,{headCellData:ba({},a,{label:c?r().createElement("div",{className:n.labelPercantageWrapper},r().createElement("div",{className:n.labelWrapper},s),r().createElement("div",{className:n.percentsWrapper},r().createElement("span",{className:n.percentLabel},"0%"),r().createElement("span",{className:n.percentLabel},o,"%"))):s})})))};var wa=a(59383),Na=a(30488);const Ta=(0,Na.Z)(((e,t)=>{let{onItemClick:a}=e,{rowValue:{group:l}}=t;return{onClick:a&&(()=>{a(l)})}}))((e=>{let{value:t="",columnData:a,onClick:l}=e;const{attributeCellClassName:n}=a,i=ga(),o=(0,wa.d)(l),s=r().createElement("div",{className:i.tooltipValue},t);return r().createElement(ha.C,{value:s},r().createElement("div",{className:B()(i.attribute,o,n),onClick:l},c.P6Y.strings.removeLineBreaks(t)))}));var Sa=a(89902);const Ra=(0,N.Z)((e=>{let{value:t,maxValue:a,className:l}=e;return r().createElement(Sa.Z,{width:t,maxWidth:a,className:l})})),Ia=(0,Na.Z)(((e,t)=>{let{onItemClick:a,valueHeader:l,labelHeader:r}=e,{rowValue:{group:n}}=t;return{onClick:a&&(()=>{a(n)}),valueHeader:l,labelHeader:r}}))((e=>{let{value:t,columnData:{maxValue:a},rowValue:{percent:l,label:n,isActive:i=!0},labelHeader:o,valueHeader:p,onClick:d}=e;const f=ga(i),m=(0,wa.d)(d),h=r().createElement("span",{className:f.tooltipValue},n),y=`${(0,c.k7L)(t,999)} ${P(l)}`,g=r().createElement(X,{data:[{label:o,value:h},{label:p,value:`${u().number(t)} ${P(l)}`}]});return r().createElement("div",{className:B()(f.numberContainer,m),onClick:d},r().createElement(v.Z,{className:f.numberWhithPercent},y),!(0,s.isNil)(a)&&r().createElement("div",{className:f.colorBarContainer},r().createElement(Ra,{value:t,maxValue:a,tooltipTitle:g,className:f.bar,showForDisabled:!0})))})),Aa=(0,g.Z)({tableContainer:e=>{let{width:t,height:a}=e;return{height:a,width:t,display:"flex",flexDirection:"column",marginTop:"2px"}},cellBorder:{borderLeft:"none",borderRight:"none!important"}});function Ca(){return Ca=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ca.apply(this,arguments)}const Ma=e=>{let{width:t,height:a,data:n,options:i={},basicTableRef:o,onItemClick:c,labelCellClassName:s}=e,p=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["width","height","data","options","basicTableRef","onItemClick","labelCellClassName"]);const d=Aa({width:t,height:a}),{headers:[f,m]=[],showValues:h=!0,sortable:y=!1}=i,v=(0,l.useMemo)((()=>({cellBorder:d.cellBorder})),[d]),g=(0,l.useMemo)((()=>Math.max(...n.map((e=>e.value)))),[n]),E=(0,l.useMemo)((()=>{const e=_(n),t=m||u().text("No of Profiles");return e?t.concat(`|${e}`):t}),[n,m]),b=(0,l.useMemo)((()=>[{id:"label",label:f||u().text("Attributes"),resizable:!1,headCellRenderer:Oa,attributeCellClassName:s,rowCellValueRenderer:Ta,initialWidth:.4*t},...h?[{id:"value",label:E,resizable:!1,headCellRenderer:Oa,rowCellValueRenderer:Ia,maxValue:g,initialWidth:.6*t,sortable:y}]:[]]),[E,g,t,f,h]),x=(0,l.useMemo)((()=>({onItemClick:c,labelHeader:f,valueHeader:m})),[c,f,m]);return r().createElement("div",{className:d.tableContainer},r().createElement(fa.Z,Ca({columnsData:b,rowsData:n,headRowHeight:48,getRowCellHeight:()=>28,classes:v,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:o,context:x},p)))},Da=(0,g.Z)((()=>({layoutItemContent:{padding:"0 0 10px"}}))),La=(0,T.Z)((e=>{let{config:t,data:a,title:n,headers:i,infoTooltipTitle:o,customComparator:c,onItemClick:s,titleChildren:p,state:u,onRefresh:d,labelCellClassName:f}=e;const m=Da(),[h,y]=(0,l.useState)("desc"),v=(0,l.useCallback)(((e,t)=>c?c(h)(e,t):(e=>(t,a)=>"asc"===e?t.value-a.value:a.value-t.value)(h)(e,t)),[h]),g=()=>{y(da.Dh)},E=(0,l.useMemo)((()=>[...a.sort(v)]),[v,a]);return r().createElement("div",null,r().createElement(he,{config:t},r().createElement(ce,{title:n,infoTooltipTitle:o},p),r().createElement(de,{className:m.layoutItemContent,data:E,loadingState:u,onRefresh:d},(e=>{let{data:t,width:a=0,height:l=0}=e;return r().createElement(Ma,{data:t,width:a,height:l,options:{headers:i,sortable:!!c},sorting:{field:"value",order:h},onSort:g,onItemClick:s,labelCellClassName:f})}))))}));var Pa=a(86689);function ja(){return ja=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ja.apply(this,arguments)}const Fa=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return r().createElement("svg",ja({width:"148",height:"148",viewBox:"0 0 148 148",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),r().createElement("mask",{id:"svg3012965951a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"148",height:"148"},r().createElement("path",{d:"M74 148c40.869 0 74-33.131 74-74 0-40.87-33.131-74-74-74C33.13 0 0 33.13 0 74c0 40.869 33.13 74 74 74z",fill:"#fff"})),r().createElement("g",{mask:"url(#svg3012965951a)"},r().createElement("path",{d:"M74 148c40.869 0 74-33.131 74-74 0-40.87-33.131-74-74-74C33.13 0 0 33.13 0 74c0 40.869 33.13 74 74 74z",fill:"#0072CE",fillOpacity:".1"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 5.203h148V148H0V5.203z",fill:"url(#paint0_linear)"}),r().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},r().createElement("path",{opacity:".5",d:"M25.186 26.016h131.896V128.04H25.186V26.016z",fillOpacity:".8"}),r().createElement("path",{opacity:".9",d:"M16.766 26.021a4.626 4.626 0 014.623-4.63h129.406a4.623 4.623 0 014.623 4.63v88.107a4.625 4.625 0 01-4.623 4.631H21.389a4.623 4.623 0 01-4.623-4.631V26.021z"})),r().createElement("path",{opacity:".5",d:"M141.553 50.95a2.315 2.315 0 002.311-2.32 2.315 2.315 0 00-2.311-2.318 2.315 2.315 0 00-2.311 2.319 2.315 2.315 0 002.311 2.318zM133.465 50.95a2.315 2.315 0 002.311-2.32 2.315 2.315 0 00-2.311-2.318 2.314 2.314 0 00-2.311 2.319 2.314 2.314 0 002.311 2.318z",fill:"#6DBCFF"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.808 46.313a5.488 5.488 0 015.489 5.488v.035a5.488 5.488 0 01-10.977 0v-.035a5.488 5.488 0 015.488-5.489z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 46.19h37.054a2.029 2.029 0 010 4.057H47.102a2.028 2.028 0 110-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 53.725h67.006a1.45 1.45 0 010 2.898H46.523a1.449 1.449 0 110-2.898z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 58.941h21.62a.87.87 0 010 1.74h-21.62a.87.87 0 110-1.74z",fill:"#B1AABD"}),r().createElement("path",{opacity:".5",d:"M71.35 30.664H31.508a3.188 3.188 0 100 6.375H71.35a3.188 3.188 0 000-6.375z",fill:"#645F6D"}),r().createElement("path",{opacity:".5",d:"M141.553 72.972a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.318 2.315 2.315 0 00-2.311 2.318 2.315 2.315 0 002.311 2.319zM133.465 72.972a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.318 2.314 2.314 0 00-2.311 2.318 2.314 2.314 0 002.311 2.319z",fill:"#6DBCFF"}),r().createElement("path",{d:"M39.297 73.824a5.488 5.488 0 10-10.977 0v.035a5.488 5.488 0 0010.977 0v-.035z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 68.214h43.894a2.029 2.029 0 010 4.057H47.102a2.029 2.029 0 010-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 75.748h74.516a1.45 1.45 0 010 2.898H46.523a1.449 1.449 0 110-2.898z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 80.965h60.077a.87.87 0 010 1.739H45.943a.87.87 0 010-1.74z",fill:"#B1AABD"}),r().createElement("path",{opacity:".5",d:"M141.553 94.996a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.319 2.315 2.315 0 00-2.311 2.319 2.315 2.315 0 002.311 2.318zM133.465 94.996a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.319 2.314 2.314 0 00-2.311 2.319 2.314 2.314 0 002.311 2.318z",fill:"#6DBCFF"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.808 90.36a5.488 5.488 0 015.489 5.488v.035a5.488 5.488 0 11-10.977 0v-.035a5.488 5.488 0 015.488-5.489z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 90.237h58.915a2.028 2.028 0 010 4.057H47.102a2.029 2.029 0 010-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 97.772h49.096a1.449 1.449 0 110 2.897H46.524a1.448 1.448 0 110-2.897z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 102.988h21.62a.87.87 0 010 1.739h-21.62a.87.87 0 110-1.739z",fill:"#B1AABD"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M102.927 64.75l44.536 77.139-58.989 34.057-44.536-77.14.405-.234c4.06 9.263 12.074 16.712 22.462 19.616 18.103 5.059 36.562-5.599 41.232-23.805 2.679-10.449.235-21.113-5.757-29.26l.647-.374z",fill:"url(#paint1_linear)"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M56.352 103.62c10.385 10.611 27.223 10.611 37.609 0 10.385-10.612 10.385-27.816 0-38.427-10.386-10.611-27.224-10.611-37.61 0-10.385 10.611-10.385 27.815 0 38.427z",fill:"url(#paint2_linear)"}),r().createElement("g",{filter:"url(#filter0_d)",fillRule:"evenodd",clipRule:"evenodd"},r().createElement("path",{d:"M74.981 49.719c19.06 0 34.512 15.462 34.512 34.536a34.418 34.418 0 01-8.665 22.886l29.603 29.623a51.708 51.708 0 01-5.837 5.43l-29.705-29.725a34.338 34.338 0 01-19.908 6.322c-19.06 0-34.512-15.462-34.512-34.536S55.92 49.719 74.98 49.719zm0 10.265c-13.395 0-24.254 10.866-24.254 24.27 0 13.405 10.859 24.272 24.254 24.272 13.395 0 24.254-10.867 24.254-24.271S88.376 59.984 74.981 59.984z",fill:"#B5C8C9"}),r().createElement("path",{d:"M52.903 110.801c-7.598-6.335-12.434-15.876-12.434-26.546 0-19.074 15.451-34.536 34.512-34.536 10.663 0 20.197 4.839 26.528 12.442l-5.662 5.667c-4.862-6.175-12.401-10.14-20.866-10.14-14.662 0-26.548 11.895-26.548 26.567 0 8.47 3.962 16.015 10.132 20.88l-5.662 5.666z",fill:"#fff",fillOpacity:".4"})),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.352 103.62c10.385 10.611 27.223 10.611 37.609 0 10.385-10.612 10.385-27.816 0-38.427-10.386-10.611-27.224-10.611-37.61 0-10.385 10.611-10.385 27.815 0 38.427z",fill:"#D9F5FF",opacity:".4"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.621 91.769c0-2.272.257-4.065.77-5.38.513-1.314 1.346-2.453 2.497-3.418 1.151-.964 2.026-1.847 2.625-2.648.6-.802.899-1.684.899-2.649 0-2.35-1.012-3.524-3.034-3.524-.933 0-1.688.343-2.263 1.027-.576.685-.88 1.61-.91 2.777h-7.888c.031-3.111 1.011-5.534 2.94-7.27 1.93-1.734 4.636-2.601 8.121-2.601 3.47 0 6.157.801 8.063 2.404 1.905 1.602 2.858 3.881 2.858 6.837 0 1.291-.257 2.466-.77 3.524-.513 1.058-1.338 2.139-2.474 3.243l-2.683 2.497c-.762.732-1.291 1.482-1.587 2.252-.295.77-.459 1.746-.49 2.929h-6.674zm-.957 7.094c0-1.151.416-2.096 1.249-2.835.832-.74 1.87-1.109 3.115-1.109s2.283.37 3.115 1.109c.833.739 1.249 1.684 1.249 2.835s-.416 2.096-1.249 2.835c-.832.739-1.87 1.109-3.115 1.109s-2.283-.37-3.115-1.109c-.833-.739-1.249-1.684-1.249-2.835z",fill:"#000",fillOpacity:".87"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.621 91.769c0-2.272.257-4.065.77-5.38.513-1.314 1.346-2.453 2.497-3.418 1.151-.964 2.026-1.847 2.625-2.648.6-.802.899-1.684.899-2.649 0-2.35-1.012-3.524-3.034-3.524-.933 0-1.688.343-2.263 1.027-.576.685-.88 1.61-.91 2.777h-7.888c.031-3.111 1.011-5.534 2.94-7.27 1.93-1.734 4.636-2.601 8.121-2.601 3.47 0 6.157.801 8.063 2.404 1.905 1.602 2.858 3.881 2.858 6.837 0 1.291-.257 2.466-.77 3.524-.513 1.058-1.338 2.139-2.474 3.243l-2.683 2.497c-.762.732-1.291 1.482-1.587 2.252-.295.77-.459 1.746-.49 2.929h-6.674zm-.957 7.094c0-1.151.416-2.096 1.249-2.835.832-.74 1.87-1.109 3.115-1.109s2.283.37 3.115 1.109c.833.739 1.249 1.684 1.249 2.835s-.416 2.096-1.249 2.835c-.832.739-1.87 1.109-3.115 1.109s-2.283-.37-3.115-1.109c-.833-.739-1.249-1.684-1.249-2.835z",fill:"#3C74B4",fillOpacity:".38"})),r().createElement("defs",null,r().createElement("linearGradient",{id:"paint0_linear",x1:"74",y1:"5.203",x2:"74",y2:"148",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:"0"}),r().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"paint1_linear",x1:"123.612",y1:"142.028",x2:"76.729",y2:"122.717",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:"0"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"paint2_linear",x1:"75.156",y1:"57.234",x2:"75.156",y2:"111.578",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#EEFBFF"}),r().createElement("stop",{offset:"1",stopColor:"#0072CE"})),r().createElement("filter",{id:"filter0_d",x:"36.469",y:"47.719",width:"97.962",height:"100.475",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"}))))},ka=(0,g.Z)((e=>({title:{whiteSpace:"nowrap",height:"24px",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"},titleCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.54)",marginLeft:"16px",paddingLeft:"16px",overflow:"hidden",textOverflow:"ellipsis"}})));function Ua(){return Ua=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ua.apply(this,arguments)}const za=e=>{const{config:t}=e,{data:a,state:n,reload:i,errorCode:o}=(0,l.useContext)(Ie),p=(d=(0,l.useContext)(Ae).uri,(a||[]).filter((0,s.propEq)("attribute",d)));var d;const{data:f,state:m,reload:h}=Re((N=p,(0,s.pipe)(ta("dataValidationFunctions"),aa(N)))),g=Me(pa),E=ka(),b=(0,l.useMemo)((()=>n===y.o.LOADED&&m===y.o.LOADED?y.o.LOADED:n===y.o.ERROR||m===y.o.ERROR?y.o.ERROR:y.o.LOADING),[m,n]),x=(0,l.useMemo)((()=>()=>{n===y.o.ERROR&&i(),m===y.o.ERROR&&h()}),[m,n,i,h]),O=r().createElement(ha.C,{value:t.title},r().createElement(v.Z,{className:E.title},t.title)),w=[u().text("Validation function"),u().text("Count")];var N;return b===y.o.ERROR&&o===c.Xt7.DVF_NOT_CONFIGURED||0===f.length?r().createElement(Kt,Ua({},e,{message:r().createElement(r().Fragment,null,u().text("There are no")," ",r().createElement(Pa.Z,{href:"https://docs.reltio.com/dvf/overview.html",target:"_blank"},u().text("Data Validation Functions"))," ",u().text("for this attribute type")),title:u().text("No data"),icon:r().createElement(Fa,null)})):r().createElement(La,{config:t,title:"",headers:w,data:f,onItemClick:g,titleChildren:O,state:b,onRefresh:x})},_a=(0,g.Z)((()=>({monoFontCell:{fontFamily:'"Roboto Mono", monospace'}}))),Va=e=>{let{config:t}=e;const a=_a(),{data:n,state:i,reload:o}=Re(la),s=(0,l.useContext)(Ae).type,p=(0,c.Lt4)(s)?n.map((e=>M({},e,{label:u().date(Number(e.label),"L")}))):n,d=Me(sa),f=[u().text("Value"),u().text("Count")],m=r().createElement(X,{title:u().text("Frequency analysis"),data:[{value:u().text("Shows the number of times each value occurs")}],DataRenderer:ye});return r().createElement(La,{config:t,data:p,headers:f,title:t.title,infoTooltipTitle:m,onItemClick:d,state:i,onRefresh:o,labelCellClassName:B()({[a.monoFontCell]:(0,c.m6e)(s)})})};function Ba(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Ha(e,t,a[t])}))}return e}function Ha(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var Ya,Za;!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"}(Ya||(Ya={})),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"}(Za||(Za={}));const Ga=e=>(0,s.pipe)((0,s.pathOr)({},[e,"data"]),Object.entries,(0,s.map)((e=>{let[t,a]=e;return{label:t,group:t,value:a}})),L);var Wa;!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"}(Wa||(Wa={}));const qa=(e,t)=>{const a={lengthStatistics:{[Wa.MEDIAN]:u().text("Median"),[Wa.AVERAGE]:u().text("Average"),[Wa.MININMUN]:u().text("Minimum"),[Wa.MAXIMUM]:u().text("Maximum")},valueDistribution:{[Wa.MEDIAN]:u().text("Median"),[Wa.AVERAGE]:u().text("Average"),[Wa.MININMUN]:u().text("Minimum"),[Wa.MAXIMUM]:u().text("Maximum")},crosswalkAnalysis:{[Wa.NUMBER_OF_SOURCES]:u().text("No. of source systems"),[Wa.AVG_NUMBER_OF_PROFILES]:u().text("Avg no. of profiles"),[Wa.MIN_NUMBER_OF_PROFILES]:u().text("Min no. of profiles"),[Wa.MAX_NUMBER_OF_PROFILES]:u().text("Max no. of profiles")}};return(0,s.pathOr)(null,[t,e],a)},Qa=e=>(0,s.pipe)((0,s.propOr)({},e),Object.entries,(0,s.map)((t=>{let[a,l]=t;return{label:qa(a,e),value:l}})),(0,s.filter)((e=>{let{label:t}=e;return t})),L),$a=e=>t=>({chartData:Ga(e)(t),infoPanelData:Qa(e)(t)}),Ka=(e,t)=>(0,c.Lt4)(t)?u().date(Number(e),"L"):String(e),Xa=(0,s.curry)(((e,t)=>{const a=(0,s.pipe)((0,s.prop)("group"),(0,s.split)(" "),s.head,Number),l=t.chartData.sort((0,s.ascend)(a)).map(((a,l)=>{const[r,n=r]=a.group.split(" ").map(Number),i=l===t.chartData.length-1,o=r!==n?((e,t,a)=>Ze(t)?`[${e}${a?"]":")"}`:e)(`${Ka(r,e)} - ${Ka(n,e)}`,e,i):Ka(r,e);return Ba({},a,{label:o,group:[r,n,i?"last":""].toString()})}));return{infoPanelData:t.infoPanelData.map((t=>Ba({},t,{value:(0,c.Lt4)(e)?u().date(Number(t.value),"L"):(0,c.k7L)(t.value,999),localizedValue:(0,c.Lt4)(e)?u().date(Number(t.value),"L"):t.localizedValue}))),chartData:l}})),Ja=(0,s.pipe)($a("lengthStatistics"),Xa("")),el=(0,s.pipe)($a("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))))})),tl=$a("monthDistribution"),al=$a("dayOfWeekDistribution"),ll=$a("dayOfMonthDistribution"),rl=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Jt({fieldName:`${a.fieldName}.day_of_week`,value:Ya[t.toLowerCase()],entityTypeUri:l})})),nl=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Jt({fieldName:`${a.fieldName}.month`,value:Za[t.toLowerCase()],entityTypeUri:l})})),il=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Jt({fieldName:`${a.fieldName}.day_of_month`,value:t,entityTypeUri:l})})),ol=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;const[r,n]=t.split(",");return r===n?Jt({fieldName:`${a.fieldName}.length`,value:r,entityTypeUri:l}):(e=>{let{fieldName:t,startRange:a,endRange:l,entityTypeUri:r}=e;return Xt({keyword:`${c.j5E.IN_RANGE}(${t}, ${a}, ${l})`,entityTypeUri:r})})({fieldName:`${a.fieldName}.length`,startRange:r,endRange:n,entityTypeUri:l})})),cl=(0,s.curry)(((e,t)=>{let{detailedAttributeType:a,entityTypeUri:l}=e;return Jt({fieldName:`${a.fieldName}.crosswalk_sources`,value:t,entityTypeUri:l})})),sl=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;const[l,r]=t.split(",");return[{filter:c.j5E.AFTER,values:[l],fieldName:a},{filter:c.j5E.BEFORE,values:[r],fieldName:a}]})),pl=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;const[l,r]=t.split(",");return[l===r?{filter:c.j5E.EQUALS,values:[[l]],fieldName:a}:{filter:c.j5E.IN_RANGE,values:[[l,r]],fieldName:a}]})),ul=(0,s.curry)(((e,t)=>{let{fieldName:a}=e;const[l,r,n]=t.split(","),i=l===r,o=i?[{filter:c.j5E.EQUALS,values:[[l]],fieldName:a}]:[{filter:c.j5E.IN_RANGE,values:[[l,r]],fieldName:a}];return!n&&!i&&o.push({filter:c.j5E.NOT_EQUALS,values:[[r]],fieldName:a}),o})),dl=(0,s.cond)([[c.Lt4,(0,s.always)(k(sl))],[Ze,(0,s.always)(k(ul))],[s.identity,(0,s.always)(k(pl))]]);function fl(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){ml(e,t,a[t])}))}return e}function ml(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const hl=(0,g.Z)((e=>({tooltipWrapper:fl({},e.tooltip,{padding:"4px 8px"})}))),yl=e=>{var t;let{payload:a,active:l,name:n}=e;const i=null==a||null===(t=a[0])||void 0===t?void 0:t.payload,o=null==i?void 0:i.value,c=null==i?void 0:i.label,s=n?`${n}`:"",p=hl();return l&&r().createElement("div",{className:p.tooltipWrapper},r().createElement(X,{data:[{label:s,value:c},{label:u().text("No of profiles"),value:u().number(o)}]}))},vl=(0,g.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"}}))),gl=e=>{let{data:t}=e;const a=vl();return r().createElement("div",{className:a.chartInfoWrapper},t.map((e=>{let{label:t,value:l,localizedValue:n}=e;return r().createElement("div",{key:t,className:a.chartInfoItem},r().createElement("span",{className:a.chartInfoLabel},t,": "),l!==n?r().createElement(Be.ZP,{title:n},r().createElement("span",{className:a.chartInfoValue},l)):r().createElement("span",{className:a.chartInfoValue},l))})))},El=(0,g.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"}}}))),bl=e=>{let{width:t,height:a,label:l,x:n,y:i}=e;const o=El({width:t}),c=n-t/2;return r().createElement("foreignObject",{x:c,y:i,width:t,height:a},r().createElement("div",{className:o.labelWrapper},r().createElement(ha.C,{value:l},r().createElement("div",{className:o.xAxisLabel},l))))},xl=e=>{const{x:t,y:a,width:l,height:n,payload:i,visibleTicksCount:o}=e,{value:c}=i,s=l/o-4;return r().createElement(bl,{width:s,height:n,label:c,x:t,y:a})};function Ol(){return Ol=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ol.apply(this,arguments)}const wl=e=>{let{isClickable:t}=e,a=function(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["isClickable"]);const l=vl(),n=t?l.clickable:void 0;return r().createElement(w.Ae,Ol({},a,{className:n,fill:"#000",opacity:"0.1",pointerEvents:"visibleFill"}))},Nl=e=>{const{value:t}=e;return t>0?r().createElement(w.Ae,e):null};function Tl(){return Tl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Tl.apply(this,arguments)}const Sl=e=>{let{data:t,config:a,xAxisLabel:l,yAxisLabel:n,barTooltipTitle:i,infoPanelData:o,infoTooltipTitle:s,onItemClick:p,options:u={},state:d,onRefresh:f}=e;const m=vl(),{title:h}=a,{cartesianGrid:v,bar:g,xAxis:E,yAxis:b,labelForX:x,labelForY:O,barChart:N}=(e=>{let{showCategories:t=!1,interval:a,barCategoryGap:l}=e;return{barChart:{barCategoryGap:l||"10%"},bar:{dataKey:"value",fill:"#0072CE",minPointSize:3,maxBarSize:50},xAxis:{tick:t&&xl,tickLine:!1,interval:a||0,dataKey:"label"},yAxis:{tickCount:8,axisLine:!1,tickLine:!1,tick:{fill:"#000"},width:60,tickFormatter:e=>(0,c.k7L)(e,999)},cartesianGrid:{stroke:"#000",strokeOpacity:"0.05",vertical:!1},labelForX:{position:"insideBottom",style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"},offset:t?-3:3},labelForY:{angle:270,position:"left",offset:-3,style:{textAnchor:"middle",fontSize:"10px",fill:"rgba(0, 0, 0, 0.54)"}}}})(u),T=p&&(e=>{let{activePayload:t}=e;return p(t[0].payload.group)}),S=T?m.clickable:void 0,R=d===y.o.LOADED&&o.length>0;return r().createElement(he,{config:a},r().createElement(ce,{title:h,infoTooltipTitle:s}),R&&r().createElement(gl,{data:o}),r().createElement(de,{data:t,loadingState:d,onRefresh:f},(e=>{let{data:t,width:a=0,height:o=0}=e;return r().createElement("div",null,r().createElement(w.vz,Tl({width:a,height:o,data:t,onClick:T},N),r().createElement(w.q3,v),r().createElement(w.u,{content:r().createElement(yl,{name:i}),cursor:r().createElement(wl,{isClickable:!!T})}),r().createElement(w.$Q,Tl({},g,{shape:r().createElement(Nl,{className:S})})),r().createElement(w.B2,b,r().createElement(w.__,Tl({},O,{value:n}))),r().createElement(w.Kc,E,r().createElement(w.__,Tl({},x,{value:l})))))})))},Rl=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=Re(Ja),{chartData:i,infoPanelData:o}=a,c=Me(ol),s=r().createElement(X,{title:u().text("Length statistics"),data:[{value:u().text("Measures the string length of values")}],DataRenderer:ye});return r().createElement(Sl,{config:t,data:i,xAxisLabel:u().text("Length of values"),yAxisLabel:u().text("No. of profiles"),infoPanelData:o,barTooltipTitle:u().text("Length"),infoTooltipTitle:s,onItemClick:c,state:l,onRefresh:n})},Il=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=Re(el),{chartData:i,infoPanelData:o}=a,c=Me(cl);return r().createElement(Sl,{config:t,data:i,xAxisLabel:u().text("Source systems"),yAxisLabel:u().text("No. of profiles"),infoPanelData:o,barTooltipTitle:u().text("Source system"),options:{showCategories:!0},onItemClick:c,state:l,onRefresh:n})},Al=e=>{let{config:t}=e;const a=(0,l.useContext)(Ae).type,{data:n,state:i,reload:o}=Re((e=>(0,s.pipe)($a("valueDistribution"),Xa(e)))(a)),{chartData:c,infoPanelData:p}=n,d=Me(dl(a));return r().createElement(Sl,{config:t,data:c,xAxisLabel:u().text("Value"),yAxisLabel:u().text("No. of profiles"),infoPanelData:p,barTooltipTitle:u().text("Value"),onItemClick:d,state:i,onRefresh:o})},Cl=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=Re(tl),{chartData:i,infoPanelData:o}=a,c=Me(nl);return r().createElement(Sl,{config:t,data:i,xAxisLabel:u().text("Months of the year"),yAxisLabel:u().text("No. of profiles"),infoPanelData:o,barTooltipTitle:u().text("Months of the year"),options:{showCategories:!0,barCategoryGap:"20%",interval:"preserveStartEnd"},onItemClick:c,state:l,onRefresh:n})},Ml=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=Re(al),{chartData:i,infoPanelData:o}=a,c=Me(rl);return r().createElement(Sl,{config:t,data:i,xAxisLabel:u().text("Days of the week"),yAxisLabel:u().text("No. of profiles"),infoPanelData:o,barTooltipTitle:u().text("Days of the week"),options:{showCategories:!0,barCategoryGap:"25%",interval:"preserveStartEnd"},onItemClick:c,state:l,onRefresh:n})},Dl=e=>{let{config:t}=e;const{data:a,state:l,reload:n}=Re(ll),{chartData:i,infoPanelData:o}=a,c=Me(il);return r().createElement(Sl,{config:t,data:i,xAxisLabel:u().text("Days of the month"),yAxisLabel:u().text("No. of profiles"),infoPanelData:o,barTooltipTitle:u().text("Days of the month"),options:{showCategories:!0,interval:1},onItemClick:c,state:l,onRefresh:n})},Ll=e=>{let{config:t}=e;const a=_a(),{data:l,state:n,reload:i}=Re(ra),o=Me(ua),c=[u().text("Value"),u().text("Count")],s=r().createElement(X,{title:u().text("Pattern analysis"),data:[]});return r().createElement(La,{config:t,data:l,headers:c,title:t.title,infoTooltipTitle:s,onItemClick:o,state:n,onRefresh:i,labelCellClassName:a.monoFontCell})};function Pl(){return Pl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Pl.apply(this,arguments)}class jl{}jl.getComponent=e=>{let{type:t,config:a,isFullscreen:l,onToggleFullscreen:n}=e;const i={config:a,isFullscreen:l,onToggleFullscreen:n};switch(t){case O.FILL_RATE_CHART:return r().createElement(De,i);case O.UNIQUENESS_CHART:return r().createElement(ze,i);case O.SUMMARY:return r().createElement(Gt,i);case O.VALIDATION:return r().createElement(za,i);case O.FREQUENCY:return r().createElement(Va,i);case O.LENGTH:return r().createElement(Rl,i);case O.CROSSWALK:return r().createElement(Il,i);case O.VALUE_DISTRIBUTION:return r().createElement(Al,i);case O.MONTH_DISTRIBUTION:return r().createElement(Cl,i);case O.DAY_OF_WEEK_DISTRIBUTION:return r().createElement(Ml,i);case O.DAY_OF_MONTH_DISTRIBUTION:return r().createElement(Dl,i);case O.PATTERN:return r().createElement(Ll,i);default:return r().createElement(Kt,Pl({},i,{message:u().text("Chart isn't supported for this data type")}))}};const Fl=jl,kl=e=>{let{layoutItemConfig:t,views:a,onToggleFullscreen:l,isFullscreen:n,className:i,children:o,style:c}=e;const s=a.find((e=>{let{id:a}=e;return t.i===a}));if(!s)return null;const{type:p}=s;return r().createElement("div",{style:c,className:i},Fl.getComponent({type:p,config:s,onToggleFullscreen:l,isFullscreen:n}),o)},Ul=(0,g.Z)({root:{overflow:"auto",backgroundColor:"#F9F9F9",height:"100%",flexGrow:1,padding:"4px"}}),zl=(0,s.map)((0,s.assoc)("isStatic",!0)),_l={cols:4,rowHeight:10,margin:[12,12]},Vl=(0,l.memo)((e=>{let{views:t,layout:a,layoutOptions:n=_l}=e;const i=Ul(),o=(()=>{const[e,t]=(0,l.useState)(y.o.INIT),[a,r]=(0,l.useState)({}),n=(0,l.useContext)(Ce),i=(0,l.useContext)(Ae),o=null==i?void 0:i.fieldName,s=n.uri,p=e=>{console.error(e),t(y.o.ERROR),r({})},u=(0,l.useCallback)((()=>{if(o&&s)return t(y.o.LOADING),(0,c.TTx)({entityTypeUri:s,attributeFieldName:o}).then((e=>{r(e),t(y.o.LOADED)})).catch(p)}),[t,r,o,s]),d=(0,l.useCallback)((()=>{try{u()}catch(e){p(e)}}),[u]);return(0,l.useEffect)((()=>{d()}),[d]),{data:a,state:e,reload:d}})(),s=(0,l.useMemo)((()=>zl(a)),[a]);return r().createElement("div",{className:i.root},r().createElement(Se.Provider,{value:o},r().createElement(x.Z,{LayoutItem:kl,views:t,layout:s,layoutOptions:n})))}));var Bl=a(50166),Hl=a(88267),Yl=a(43129),Zl=a(5336),Gl=a(83543),Wl=a(98989),ql=a(38402),Ql=a(33286),$l=a(40435);const Kl=(0,g.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"}}),Xl=e=>{let{details:t,classes:a,fillRateData:l,fillRateState:n}=e;const i=Kl(),o=(0,s.prop)("iconRoot",a);return r().createElement("div",{className:i.root},Object.entries(t||{}).reverse().map((e=>{let[t,a]=e,p=gt.NORMAL;if(t===Ge.REQUIRED){const e=n===y.o.LOADING,t=0===(null==(u=l)||null===(d=u.find((0,s.propEq)("group",c.s9T.MISSING)))||void 0===d?void 0:d.value);e&&(p=gt.LOADING),e||t||(p=gt.BAD_QUALITY)}var u,d;return r().createElement("div",{key:t,className:B()(a&&(o||i.activeIcon),i.detailIcon)},a&&r().createElement(Be.ZP,{title:rt(t)},r().createElement("span",null,r().createElement(Et,{detailType:t,variant:p,size:vt.SMALL}))))})))},Jl="rgba(0, 114, 206, 0.12)",er=(0,g.Z)({linesWrapper:{position:"absolute",left:"9px",top:0,bottom:0},line:{position:"absolute",width:"2px",background:Jl,bottom:0,zIndex:2,left:0,top:0},horizontalLine:{"&:after":{content:'""',position:"absolute",left:"2px",top:"15px",width:"3px",height:"2px",background:Jl}},parentLine:{left:"20px",top:"34px"},lastLevel:{bottom:"31px"}}),tr=e=>{let{level:t,margin:a,hasChildren:l,isLastLevelItem:n,isCollapsed:i}=e;const o=er(),c=!i&&(t>0||l);return r().createElement("div",{className:o.linesWrapper},((e,t)=>t>0&&e?(0,s.range)(1,t+1):t>1?(0,s.range)(1,t):[])(l,t).map((e=>r().createElement(Ql.Z,{key:e,margin:a,level:e,className:o.line}))),c&&r().createElement(Ql.Z,{margin:a,level:t,className:B()(o.line,!l&&t>0&&o.horizontalLine,l&&o.parentLine,n&&o.lastLevel)}))},ar=(0,g.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 lr(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){rr(e,t,a[t])}))}return e}function rr(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const nr=(0,T.Z)((e=>{let{data:t}=e;const a=ar(),l=ge(t),n=t.map(((e,t)=>{let{label:n,percent:i,value:o}=e;return{label:r().createElement("span",null,r().createElement("div",{className:a.fillRateSquare,style:{background:l[t]}}),n),value:`${u().number(o)} ${P(i)}`}}));return j(t)?r().createElement("div",{className:a.bar},r().createElement("div",{className:B()(a.barPart,a.inactiveBarPart)})):r().createElement(Be.ZP,{title:r().createElement(X,{title:u().text("Fill rate"),data:n})},r().createElement("div",{className:a.bar},t.map(((e,t)=>r().createElement("div",{key:e.group,className:a.barPart,style:lr({},z(e),{background:l[t]})})))))})),ir=(0,g.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"}}),or=e=>{let{detailedAttributeType:t,fillRateData:a,fillRateState:l,style:n,level:i,selected:o=!1,onClick:s,onCollapse:p=da.ZT,isCollapsed:u=!1,isLastLevelItem:d=!1}=e;const f=ir(),m=!!t.children,h=!!a,y=(e=>(0,c.idV)(e.label||e.name))(t),v=u?Wl.Z:Gl.Z,g=o?f.detailsIconSelected:f.detailsIcon;return r().createElement(ql.Z,{style:n,selected:o,classes:{selected:f.selectedItem},onClick:m?void 0:()=>{s(t)},component:"div",className:B()(f.listItem,!m&&f.pointerCursor)},r().createElement("div",{className:f.content},!m&&r().createElement("div",{className:f.attributeType},r().createElement(Ht,{type:t.type})),r().createElement("div",{className:f.attribute},r().createElement(tr,{level:i,margin:20,hasChildren:m,isLastLevelItem:d,isCollapsed:u}),r().createElement(Ql.Z,{margin:20,level:i,className:f.marginWrapper},r().createElement(ha.C,{value:y},r().createElement("div",{className:B()(f.attributeLabel,o&&f.selectedAttributeLabel,m&&f.parentAttributeLabel)},m&&r().createElement($l.Z,{size:"XXS",icon:v,onClick:p,className:f.collapseIcon}),y))),h&&!m&&r().createElement("div",{className:f.fillRate},r().createElement(nr,{data:a}))),r().createElement(Xl,{details:t.details,classes:{iconRoot:g},fillRateData:a,fillRateState:l})))},cr=(0,s.propOr)({},"attributeItem"),sr=(0,s.pipe)((0,s.find)((0,s.pipe)(cr,(0,s.either)(c.YkM,c.Or$),s.not)),cr),pr=e=>(0,s.pipe)(cr,(0,s.propEq)("fieldName",e)),ur=e=>(0,s.filter)((0,s.propEq)("group",e)),dr=(0,s.reject)((0,s.path)(["attributeItem","children"])),fr=(0,s.pipe)(dr,(0,s.prop)("length")),mr=(e,t)=>(0,s.pipe)(dr,(0,s.filter)((0,s.pipe)(cr,Ke(t))),(0,s.prop)("length"))(e),hr=(e,t)=>(0,s.pipe)(dr,(0,s.filter)((0,s.pipe)(cr,Xe(t))),(0,s.prop)("length"))(e),yr=(e,t)=>e.filter((e=>Qe(t,e.attributeItem))).length;let vr;!function(e){e.NOT_EMPTY="notEmpty",e.EMPTY="empty"}(vr||(vr={}));const gr=(e,t)=>{const a=Object.values(Ge).map((e=>({value:e,label:rt(e),group:"details"}))).map((a=>(0,s.assoc)("count",((e,t,a)=>e.filter((e=>Qe([...(0,s.filter)((0,s.propEq)("group","details"),a||[]),t],e.attributeItem))).length)(e,a,t),a))),l={label:u().text("All attribute properties"),value:"all",count:yr(e,a),group:"details"};return{label:u().text("Attribute properties"),options:[l,...a]}},Er=(0,s.pipe)(cr,(0,s.prop)("fieldName"));function br(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var xr=a(92391),Or=a(36444),wr=a(33662),Nr=a(15793),Tr=a(21324),Sr=a(12231),Rr=a(44962);function Ir(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Ar(e,t,a[t])}))}return e}function Ar(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Cr=(0,g.Z)((e=>({serachWrapper:{padding:"8px 10px 8px 16px",alignItems:"center",display:"flex"},filterByDetails:{width:"32px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"9px"},searchInput:{borderRadius:"2px",flexGrow:1},menu:{width:"256px!important",right:"0",paddingTop:"8px",top:"24px!important",margin:0},dropdownIndicator:{color:e.palette.text.secondary,cursor:"pointer"},dropDownIndicatorFilterApplied:{color:"#0072CE",cursor:"pointer"},dropDownIndicatorActive:{width:"32px",height:"32px",background:"rgba(0, 0, 0, 0.1)",borderRadius:"4px",display:"flex",justifyContent:"center",alignItems:"center"},dropdownMenuTitle:{fontWeight:500,fontSize:"20px",lineHeight:"55px",height:"55px",paddingLeft:"16px"},option:{paddingLeft:"4px",fontSize:"13px",height:"28px",filter:e=>e?"grayscale(0)":"grayscale(1)",opacity:e=>e?1:.5},typeIconWrapper:{width:"41px","& svg":{width:"20px",height:"20px"}},valueContainer:{marginLeft:0},counter:{marginLeft:"5px"}}))),Mr=e=>Ir({},e,{borderBottom:"1px solid rgba(0, 0, 0, 0.08)",marginBottom:"5px",paddingTop:0,paddingBottom:"5px","&:last-child":{borderBottom:"none"}}),Dr=e=>Ir({},e,{zIndex:2}),Lr=e=>Ir({},e,{maxHeight:"400px"}),Pr=e=>Ir({},e,{padding:"6px 0 2px 18px",fontSize:"11px"});function jr(){return jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},jr.apply(this,arguments)}const Fr=e=>{let{innerProps:t,innerRef:a,children:l,isFocused:n,isSelected:i,selectProps:{classes:o},label:s,data:p}=e;const u=!!p.count,d=Cr(u);return r().createElement(Sr.Z,jr({className:d.option,ref:a,selected:n,component:"div"},t),"radio"===p.inputType?r().createElement(Rr.Z,{checked:i}):r().createElement(r().Fragment,null,r().createElement(Tr.Z,{color:"primary",checked:i}),r().createElement("span",{className:d.typeIconWrapper},r().createElement(Et,{detailType:p.value}))),r().createElement(ha.C,{value:s},r().createElement("div",{className:o["option--item"]},l)),r().createElement("span",{className:d.counter},(0,c.k7L)(p.count,999)))},kr=(0,s.reject)((0,s.propEq)("value","all")),Ur=(e,t)=>(0,s.reject)((0,s.propEq)("group",e.group))(t),zr=e=>(0,s.pipe)((0,s.filter)((0,s.propEq)("group",e)),kr),_r=e=>(0,s.pipe)((0,s.reduce)(((t,a)=>t.concat(zr(e)(a.options))),[]),kr),Vr=(0,s.find)((0,s.propEq)("value","all")),Br=e=>{let{selectedFilterOptions:t=[],filterOptions:a,defaultFilterText:n,onChangeFilterText:i,onChangeFilterOptions:o}=e;const c=Cr(),p=(0,s.reduce)(((e,t)=>{if(t.options.length){const a=(0,s.head)(t.options)||{},{group:l,inputType:r}=a,n=(e||[]).filter((0,s.propEq)("group",l));if("radio"===r){if(!n.length)return e.concat(a)}else{const a=Vr(t.options);if(a&&kr(n).length===kr(t.options).length)return e.concat(a)}}return e}),t)(a),d=e=>e.selectProps.menuIsOpen?c.dropDownIndicatorActive:"",f=(0,l.useCallback)((()=>t.length?c.dropDownIndicatorFilterApplied:c.dropdownIndicator),[t]),[m,h]=(0,l.useState)(n||null);return r().createElement("div",{className:c.serachWrapper},r().createElement(wr.Z,{className:c.searchInput,autofocus:!0,onSearch:e=>{h(e),i(e)},value:m,height:40,placeholder:u().text("Search attribute name"),"data-reltio-id":"reltio-dq-dashboard-attributes-search-input"}),r().createElement("div",{className:c.filterByDetails,"data-reltio-id":"reltio-dq-dashboard-attributes-filter"},r().createElement(Nr.Z,{value:p,options:a,onChange:(e,l)=>{const{action:r,option:n}=l;o(((e,l,r)=>{if("radio"===l.inputType)return[...Ur(l,r),l];{const i=(n=l.group,_r(n)(a).length===zr(n)(t).length),o=Ur(l,r),c=_r(l.group)(a);return"all"===l.value?"select-option"===e?[...o,...c]:o:i?(0,s.without)([l],[...o,...c]):r}var n})(r,n,e))},TextFieldProps:{InputProps:{disableUnderline:!0}},isSearchable:!1,classes:{menu:c.menu,option:c.option,valueContainer:c.valueContainer},styles:{groupHeading:Pr,group:Mr,menu:Dr,menuList:Lr},components:{DropdownIndicator:e=>r().createElement("div",{className:d(e)},r().createElement(Or.Z,{className:f()})),IndicatorSeparator:da.Vd,ClearIndicator:da.Vd,MultiValue:da.Vd,MenuList:e=>r().createElement(xr.F.MenuList,e,r().createElement("div",{className:c.dropdownMenuTitle},u().text("Filter")),e.children),Option:Fr,GroupHeading:e=>r().createElement(xr.F.GroupHeading,e,e.children)}})))},Hr=(0,g.Z)((e=>({root:{width:"480px",display:"flex",flexDirection:"column",borderRight:"solid 1px rgba(0, 0, 0, 0.12)",flexGrow:1},title:{height:"24px",margin:"16px",display:"flex",alignItems:"center"},itemCount:{color:e.palette.text.secondary,borderLeft:"1px solid rgba(0, 0, 0, 0.12)",marginLeft:"16px",paddingLeft:"16px"},listWrapper:{flexGrow:1,overflow:"hidden",position:"relative"},columnsTitle:{height:"48px",display:"grid",gridGap:"32px",gridTemplateColumns:"308px 108px",alignItems:"center",padding:"0 16px",background:"rgba(0, 0, 0, 0.06)",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",fontWeight:500,fontSize:"12px",lineHeight:"16px",color:"rgba(0, 0, 0, 0.54)"},loaderWrapper:{position:"absolute",top:"0",left:"0",width:"100%",height:"4px",zIndex:1}}))),Yr=e=>{var t;let{entityType:a,onAttributesListChange:i,defaultFieldName:o,defaultFilterOptions:p,defaultFilterText:d,disableAttributeSelection:f}=e;const m=Hr(),g=(0,l.useRef)(),[E,b]=(0,l.useState)(d||""),[x,O]=(0,l.useState)([]),[w,N]=(0,l.useState)(p||[]),[T,S]=(0,l.useState)({fieldName:o}),{data:R,state:I}=(e=>{const[t,a]=(0,l.useState)(y.o.INIT),[r,n]=(0,l.useState)({}),i=e=>{console.error(e),a(y.o.ERROR),n({})},o=(0,l.useCallback)((()=>(a(y.o.LOADING),n({}),(0,c.aTW)({entityTypeUri:e}).then(xe).then((e=>{n(e),a(y.o.LOADED)})).catch(i))),[a,n,e]),s=(0,l.useCallback)((()=>{try{o()}catch(e){i(e)}}),[o]);return(0,l.useEffect)((()=>{s()}),[s]),{data:r,state:t,reload:s}})(a.uri),A=null===(t=(0,l.useContext)(Ie))||void 0===t?void 0:t.state,C=((e,t)=>{var a;const r=(0,n.useSelector)(h.ZP.selectors.getMetadata),i=(0,l.useMemo)((()=>(e=>(0,s.pipe)(c.WN0,et(e),nt))(t)(r,e)),[r,e,t]),[o,p]=(0,l.useState)([]),u=e.uri,d=(0,l.useMemo)((()=>(0,c.qhs)(r,u)),[r,u]),f=null===(a=(0,l.useContext)(Ie))||void 0===a?void 0:a.data;return(0,l.useEffect)((()=>{f&&p(i.map((0,s.evolve)({attributeItem:e=>function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){br(e,t,a[t])}))}return e}({},e,{details:lt({attrTypeItem:e,dvf:f,matchAttributes:d})},e.children&&{children:e.children.map((t=>(t.details=lt({attrTypeItem:t,dvf:f,matchAttributes:d}),t.details.reference=e.isAttributeReference,t)))})})))}),[i,d,f]),o})(a,E),{filteredItems:M,filterOptions:D}=(0,l.useMemo)((()=>{const e=((e,t)=>{const a=ur("details")(e),l=(e=>(0,s.pipe)((0,s.filter)((0,s.pipe)(cr,(0,s.both)((0,s.prop)("children"),Qe(e)))),(0,s.map)(Er)))(a)(t);return t.filter((e=>{let{attributeItem:t}=e;return l.some((e=>t.fieldName.startsWith(e)))||$e(a,t)}))})(w,C),t=((e,t)=>{const a=[{label:u().text("All"),value:"All",group:"emptiness",count:fr(e),inputType:"radio"},{label:u().text("With data"),value:vr.NOT_EMPTY,group:"emptiness",count:mr(e,t),inputType:"radio"},{label:u().text("W/o data"),value:vr.EMPTY,group:"emptiness",count:hr(e,t),inputType:"radio"}];return{label:u().text("Attributes"),options:a}})(e,R),a=((e,t,a)=>{const l=(0,s.head)(ur("emptiness")(e));switch(null==l?void 0:l.value){case vr.EMPTY:return a.filter((0,s.pipe)(cr,Je(t)));case vr.NOT_EMPTY:return a.filter((0,s.pipe)(cr,Ke(t)));default:return a}})(w,R,e);return{filteredItems:a,filterOptions:[t,gr(a,w)]}}),[C,w,R]),L=(0,l.useMemo)((()=>((e,t)=>e.filter((e=>{let{attributeItem:a}=e;return!t.some((e=>a.fieldName.startsWith(e)&&a.fieldName!==e))})))(M,x)),[M,x]),P=M.length,j=(0,l.useCallback)((0,c.DsO)(b,300),[]),F=e=>{i({selectedDetailedAttributeType:e,filterText:E,filterOptions:w}),S({fieldName:e.fieldName})},k=()=>{const e=((e,t)=>(0,s.pipe)((0,s.find)(pr(t)),(0,s.propOr)(null,"attributeItem"))(e))(M,T.fieldName)||sr(M);return(0,s.isEmpty)(e)||f?null:e};(0,l.useEffect)((()=>{var e,t,a;if(f)return void(null===(a=g.current)||void 0===a||a.scrollTo(0));if(M.length){const e=k();S({fieldName:(null==e?void 0:e.fieldName)||T.fieldName})}const l=((e,t)=>(0,s.findIndex)(pr(t))(e))(M,T.fieldName);l>-1?null===(e=g.current)||void 0===e||e.scrollToItem(l,"center"):null===(t=g.current)||void 0===t||t.scrollTo(0)}),[M]),(0,l.useEffect)((()=>{const e=k();i({selectedDetailedAttributeType:e,filterText:E,filterOptions:w})}),[E,w,T]),(0,l.useEffect)((()=>{S((e=>{let{fieldName:t}=e;return f?{fieldName:null}:{fieldName:t}}))}),[f]);const U=e=>{let{data:t,index:a,style:l}=e;const{attributeItem:n,level:i=0}=t[a],o=T.fieldName===n.fieldName,c=((e,t)=>e[t.fieldName])(R,n),p=a>0&&i>(0,s.pathOr)(-1,[a+1,"level"],L);return r().createElement(or,{fillRateData:c,fillRateState:I,style:l,detailedAttributeType:n,level:i,onClick:F,selected:o,onCollapse:(u=n.fieldName,()=>{O((e=>e.includes(u)?e.filter((e=>e!==u)):e.concat(u)))}),isCollapsed:x.includes(n.fieldName),isLastLevelItem:p});var u},z=L.length,_=!!z,V=I===y.o.LOADING||A===y.o.LOADING;return r().createElement("div",{className:m.root},r().createElement(v.Z,{className:m.title},(0,c.idV)(a.label)," ",u().text("attributes"),r().createElement("span",{className:m.itemCount},`${P} ${B=P,1===B?u().text("item"):u().text("items")}`)),r().createElement(Br,{selectedFilterOptions:w,onChangeFilterOptions:N,defaultFilterText:d,onChangeFilterText:j,filterOptions:D}),_&&r().createElement("div",{className:m.columnsTitle},r().createElement("div",null,u().text("Name")),r().createElement("div",null,u().text("Attribute details"))),r().createElement("div",{className:m.listWrapper,"data-reltio-id":"reltio-dq-dashboard-attributes-list"},r().createElement("div",{className:m.loaderWrapper},V&&r().createElement(Yl.Z,null)),_?r().createElement(Hl.Z,{refreshMode:"debounce",refreshRate:100,handleHeight:!0},(e=>{let{height:t=250}=e;return r().createElement(Bl.FixedSizeList,{ref:g,itemCount:z,width:"100%",height:t,itemData:L,itemSize:48},U)})):!V&&r().createElement(Zl.Z,{height:250})));var B},Zr=(0,g.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 Gr(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){Wr(e,t,a[t])}))}return e}function Wr(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const qr=(0,s.path)([0,"value"]),Qr=e=>{var t,a;let{config:i,saveState:o,getSavedState:p}=e;const v=Zr(),{entityType:g,tabs:E,setEntityTypeByUri:x}=(()=>{const e=(0,n.useSelector)(h.ZP.selectors.getMetadata),t=(0,l.useMemo)((()=>e.entityTypes.filter(c.oDv)),[e.entityTypes]),a=(e=>{const[t,a]=(0,l.useState)(null);return(0,l.useEffect)((()=>{const t=(0,c.Uqd)()([{fieldName:"type",filter:c.j5E.EQUALS,values:(0,s.pluck)("uri",e)}]);(0,c.FK9)({query:(0,c.ECL)({activeness:"active",filter:t}),body:[{fieldName:"type",pageSize:101,pageNo:1}]}).then((e=>{let{type:t}=e;return a(t)})).catch((()=>a(null)))}),[e]),t})(t),[r,i]=(0,l.useState)(null);return{entityType:r,tabs:(0,l.useMemo)((()=>t.map(((e,t)=>{let{label:l,uri:r}=e;return{label:l,value:r,additionalLabel:(0,c.k7L)(Number((null==a?void 0:a[(0,c.nIW)(r)])||0),999),dataReltioId:`reltio-dq-dashboard-entity-tab-${t}`}}))),[t,a]),setEntityTypeByUri:(0,s.pipe)((0,c.nt9)(e),i)}})(),[w,N]=(0,l.useState)(null),{isLoaded:T,savedState:S}=(0,d.a)(p),M=(0,n.useSelector)(h.ZP.selectors.getCanUserGetDQStatistic),[D,L]=(0,l.useState)(),P=(e=>{const[t,a]=(0,l.useState)(null),[r,i]=(0,l.useState)(y.o.INIT),[o,s]=(0,l.useState)(),p=(0,n.useSelector)(h.ZP.selectors.getTenant),u=(0,n.useSelector)(h.ZP.selectors.getDVFPath),d=e=>{console.error(e),i(y.o.ERROR),a([]),s(null==e?void 0:e.errorCode)},f=e=>{a(e.functions),i(y.o.LOADED)},m=(0,l.useCallback)((()=>{if(e)return i(y.o.LOADING),(0,c.HaQ)({dvfPath:u,tenant:p,entityTypeUri:e}).then(f).catch(d)}),[u,p,e]);return(0,l.useEffect)((()=>{m()}),[m]),{data:t,state:r,reload:m,errorCode:o}})(null==g?void 0:g.uri),j=null==E?void 0:E.map((e=>Gr({},e,{additionalLabel:r().createElement("span",{className:v.additionalLabel},"(",e.additionalLabel,")")}))),F=(0,l.useCallback)((e=>{(null==g?void 0:g.uri)!==e&&(N(null),x(e),D===I.ENTITY_TYPE&&o(Gr({dataLevel:D,entityTypeUri:e},H.current&&{filterOptions:H.current.filterOptions,filterText:H.current.filterText})))}),[null==g?void 0:g.uri]),k=(null===(t=i.layoutsByDataLevel)||void 0===t?void 0:t[I.ENTITY_TYPE])||C[I.ENTITY_TYPE],z=null===(a=i.layoutsByDataLevel)||void 0===a?void 0:a[I.ATTRIBUTE_TYPE],_=(0,l.useMemo)((()=>D===I.ENTITY_TYPE&&k?k:((e,t)=>{const a=U(t),l=(0,s.mergeLeft)(e,C[I.ATTRIBUTE_TYPE]);return l[a]||l.default||[]})(z,null==w?void 0:w.type)),[k,null==w?void 0:w.type,z,D]),V=(0,l.useMemo)((()=>((e,t,a,l)=>{const r=(0,s.uniqBy)((0,s.prop)("id"),(0,s.concat)((null==e?void 0:e[l])||[],A[l]||[])),n=(e=>{switch(e){case I.ATTRIBUTE_TYPE:return(e=>{switch(e){case R.INTEGER:case R.FLOAT:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART,O.VALUE_DISTRIBUTION];case R.BOOLEAN:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY];case R.STRING:return[O.LENGTH,O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART];case R.DATE:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART,O.VALUE_DISTRIBUTION,O.MONTH_DISTRIBUTION,O.DAY_OF_MONTH_DISTRIBUTION,O.DAY_OF_WEEK_DISTRIBUTION];case R.SSN:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART,O.PATTERN];case R.UNKNOWN:return[O.SUMMARY,O.CROSSWALK,O.VALIDATION,O.FILL_RATE_CHART,O.FREQUENCY,O.UNIQUENESS_CHART,O.LENGTH];default:return[]}})(U(t));case I.ENTITY_TYPE:return[O.UNSUPPORTED];default:return[]}})(l);return a.reduce(((e,t)=>{const a=(0,s.prop)("type",e.find((0,s.propEq)("id",t.id)));if(!n.includes(a)){const a=e.findIndex((0,s.propEq)("id",t.id));if(-1!==a)return(0,s.adjust)(a,(0,s.assoc)("type",O.UNSUPPORTED),e)}return e}),r)})(i.viewsByDataLevel,null==w?void 0:w.type,_,D)),[null==w?void 0:w.type,_,D]);(0,l.useEffect)((()=>{T&&(x(S.entityTypeUri||qr(E)),L(k?S.dataLevel||I.ENTITY_TYPE:I.ATTRIBUTE_TYPE))}),[T]);const H=(0,l.useRef)(),Y=g&&M&&T;return r().createElement("div",{className:v.perspectiveView},r().createElement(b,{title:u().text("Data Quality")},g&&r().createElement(f.Z,{value:g.uri,tabs:j,onChange:F,scrollButtons:"auto"})),r().createElement("div",{className:v.content},Y&&r().createElement(r().Fragment,null,r().createElement(Ie.Provider,{value:P},r().createElement("div",{className:v.wrapper},k&&r().createElement("div",{className:B()(v.entityLevelButton,{[v.selectedButton]:D===I.ENTITY_TYPE}),onClick:()=>{N(null),L(I.ENTITY_TYPE)}},`${g.label} ${u().text("summary")}`),r().createElement(Yr,{entityType:g,onAttributesListChange:e=>{let{selectedDetailedAttributeType:t,filterText:a,filterOptions:l}=e;const r=null==t?void 0:t.fieldName,n={entityTypeUri:g.uri,fieldName:r,filterOptions:l,filterText:a,dataLevel:D};!r&&D!==I.ENTITY_TYPE||(0,s.equals)(H.current,n)||(o(n),H.current=n),r&&L(I.ATTRIBUTE_TYPE),N(t)},defaultFieldName:null==S?void 0:S.fieldName,defaultFilterText:null==S?void 0:S.filterText,defaultFilterOptions:null==S?void 0:S.filterOptions,disableAttributeSelection:D===I.ENTITY_TYPE})),(w||D===I.ENTITY_TYPE)&&r().createElement(Ce.Provider,{value:g},r().createElement(Ae.Provider,{value:w},r().createElement(Vl,{views:V,layout:_}))))),!M&&r().createElement(m.ZP,{text:u().text("403: Permission denied"),secondaryText:u().text("Permission denied")})))};function $r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const Kr=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),l.forEach((function(t){$r(e,t,a[t])}))}return e}({},c.rSc,{tooltip:{borderRadius:"4px",backgroundColor:"rgba(96, 96, 96, 0.9)",maxWidth:"300px"}}),Xr=(0,i.Z)(Kr),Jr=(0,o.createGenerateClassName)({productionPrefix:"DQDashboardPerspective",disableGlobal:!0}),en=e=>{let{store:t,config:a,saveState:i,getSavedState:s}=e;const p=(0,l.useCallback)((0,c.aYu)(s),[s]);return r().createElement(n.Provider,{store:t},r().createElement(o.ThemeProvider,{theme:Xr},r().createElement(o.StylesProvider,{generateClassName:Jr},r().createElement(Qr,{config:a,saveState:i,getSavedState:p}))))}}}]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reltio/remotes",
3
- "version": "1.4.929",
3
+ "version": "1.4.930",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "main.js",
6
6
  "publishConfig": {