@reltio/remotes 1.4.1079 → 1.4.1082

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/6071.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[6071],{50548:(e,t,n)=>{n.d(t,{l:()=>a});var r=n(24328),o=n.n(r);function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}const a=(e,t,n)=>{if(e&&t){const a=(0,r.memo)(n);return n=>o().createElement(e.Consumer,null,(e=>o().createElement(a,l({},n,t(e,n)))))}return n}},30488:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(38748),o=n(50548);const l=e=>t=>(0,o.l)(r.X,e,t)},20146:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),o=n.n(r),l=n(52730),a=n(71153),i=n.n(a),s=n(90436),c=n(22241),u=n(35674);const d=(0,n(79692).Z)({"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",display:"inline-flex",marginRight:"12px",borderRadius:"2px"},"entityType-medium":{padding:"2px 8px 3px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"15px",display:"inline-flex",marginRight:"16px"}}),p=e=>{let{entity:t,className:n,size:r="small"}=e;const a=d(),p=(0,l.useSelector)(u.ZP.selectors.getMetadata),m=t.type,f=(0,c.nt9)(p,m)||{},h=(0,c.VD3)(p,f,"typeColor")||c.rSc.palette.primary.main;return o().createElement(s.Z,{style:{backgroundColor:h,color:c.P6Y.Colors.getColor(h)?"#FFFFFF":"#212121"},className:i()(a[`entityType-${r}`],n),component:"div"},(0,c.jFi)(p,t))}},81487:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ut});var r=n(24328),o=n.n(r),l=n(52730),a=n(8598),i=n(36138),s=n(44443),c=n(22664),u=n(12212),d=n(97333),p=n(87918),m=n.n(p),f=n(35674),h=n(22241),g=n(69409),b=n(35722),y=n(55962),v=n(11326),x=n(82658),k=n(85457),E=n(70675),w=n(32158),C=n(95085),S=n(23759),O=n(10938),T=n(64435),M=n(33109),Z=n(75647),R=n(76368),U=n(38361),L=n(77194),z=n(28101),P=n(90436),N=n(80147),F=n(87685),H=n(40435),D=n(79692);const B=(0,D.Z)({header:{display:"flex",flexDirection:"row",alignItems:"center",padding:"16px 12px",borderBottom:"1px solid rgba(0, 0, 0, 0.12);"},closeButton:{marginRight:"12px"}}),j=e=>{let{title:t,className:n,onClose:r,children:l}=e;const a=B();return o().createElement("div",{className:n},o().createElement("div",{className:a.header},o().createElement(H.Z,{className:a.closeButton,icon:F.default,onClick:r}),t),l)};var $=n(99144),A=n(17440),I=n(79573),W=n(4270);let V;!function(e){e.Crosswalk="crosswalks",e.Source="source",e.Contributor="contributor"}(V||(V={}));const X=e=>(0,A.pipe)((0,A.map)((0,A.prop)("value")),A.sum)(e);function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){G(e,t,n[t])}))}return e}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _=e=>{let{data:t,width:n,height:o}=e;return(0,r.useMemo)((()=>{if(!n||!o)return{nodes:[],links:[]};const e=function(){let e=24,t=15,n=10,r=8,o=[1,1];function l(l){let{nodes:i,links:s}=l;const c={nodes:i,links:s};return function(e){let{nodes:t,links:n}=e;t.forEach((e=>{e.sourceLinks=[],e.targetLinks=[]})),n.forEach((e=>{e.source.sourceLinks.push(e),e.target.targetLinks.push(e)}))}(c),function(e){let{nodes:t}=e;t.forEach((e=>{e.value=Math.max(X(e.sourceLinks),X(e.targetLinks))}))}(c),function(t){let{nodes:n}=t;if(!n.length)return;let r,l=[n[0]],a=0;for(;l.length;)r=[],l.forEach((t=>{t.x=a,t.dx=e,t.targetLinks.forEach((e=>{r.indexOf(e.source)<0&&r.push(e.source)}))})),l=r,++a;if(n.forEach((e=>{e.x=a-1-e.x})),a>2){const t=(o[0]-2*e-22)/(a-2);n.forEach((n=>{n.sourceLinks&&0!=n.sourceLinks.length?n.x*=t:n.x=o[0]-e}))}else n[0].x=o[0]-e,n[1].x=n[0].x-22-e}(c),function(e){let{nodes:l,links:a}=e;const i=(0,A.pipe)((0,A.groupBy)((0,A.prop)("x")),A.toPairs,(0,A.sort)(((e,t)=>e[0]-t[0])),(0,A.map)((0,A.nth)(1)))(l);(function(){let e=(0,A.pipe)((0,A.map)((e=>(o[1]-(e.length-1)*r)/X(e))),(0,A.reduce)(Math.min,1/0))(i);const s=(0,A.pipe)((0,A.map)((e=>{var t;return e.value/((null===(t=e.targetLinks)||void 0===t?void 0:t.length)||1)})),(0,A.reduce)(Math.min,1/0))(l);e=Math.max(Math.min(e,t/s),n/s),i.forEach((t=>{t.forEach(((t,n)=>{t.y=n,t.dy=t.value*e}))})),a.forEach((t=>{t.dy=t.value*e}))})(),i.forEach((e=>{let t,n,l,a=0;const i=e.length;for(e.sort(((e,t)=>e.y-t.y)),l=0;l<i;++l)t=e[l],n=a-t.y,n>0&&(t.y+=n),a=t.y+t.dy+r;if(n=a-r-o[1],n>0)for(a=t.y-=n,l=i-2;l>=0;--l)t=e[l],n=t.y+t.dy+r-a,n>0&&(t.y-=n),a=t.y}));const s=(0,A.pipe)((0,A.map)((e=>(e.length-1)*r+(0,A.sum)((0,A.map)((e=>e.dy),e)))),(0,A.reduce)(Math.max,0))(i),c=(o[1]-s)/2;i.forEach((e=>{const{y:t,dy:n}=(0,A.last)(e),r=o[1]-(t+n);e.forEach((e=>{e.y+=r,c>0&&(e.y-=c)}))}))}(c),a(c),function(e){let{nodes:t}=e;(0,A.pipe)((0,A.groupBy)((0,A.prop)("x")),A.toPairs,(0,A.sort)(((e,t)=>t[0]-e[0])),(0,A.map)((0,A.nth)(1)))(t).forEach((e=>{(e=e.concat().sort(((e,t)=>e.y-t.y))).forEach(((t,n)=>{var o;if(null!==(o=t.sourceLinks)&&void 0!==o&&o.length){var l,a,i;const{target:o,ty:s,dy:c}=(0,A.last)(t.sourceLinks);let u=o.y+s+c-t.dy;(null===(l=e[n-1])||void 0===l?void 0:l.x)==t.x&&u<(null===(a=e[n-1])||void 0===a?void 0:a.y)+(null===(i=e[n-1])||void 0===i?void 0:i.dy)+r&&(u=e[n-1].y+e[n-1].dy+r),t.y>u&&(t.y=u)}}))}))}(c),c}function a(e){let{nodes:t}=e;(0,A.pipe)((0,A.groupBy)((0,A.prop)("x")),A.toPairs,(0,A.sort)(((e,t)=>e[0]-t[0])),(0,A.map)((0,A.nth)(1)))(t).forEach((e=>{e.forEach((e=>{var t,n;if(null!==(t=e.targetLinks)&&void 0!==t&&t.length){const t=[],n=e.targetLinks.map((e=>e.crosswalk.uuid)),r=[];e.targetLinks.forEach((function(e){-1==this.indexOf(e.source)&&this.push(e.source)}),r);for(let o=0;o<r.length;o++)for(let l=0;l<r[o].sourceLinks.length;l++){const a=n.indexOf(r[o].sourceLinks[l].crosswalk.uuid);-1!=a&&t.push(e.targetLinks[a])}e.targetLinks=t}if(null!==(n=e.sourceLinks)&&void 0!==n&&n.length){var r;const t=[];if(null!==(r=e.targetLinks)&&void 0!==r&&r.length){const n=e.sourceLinks.map((e=>e.crosswalk.uuid));for(let r=0;r<e.targetLinks.length;r++){const o=n.indexOf(e.targetLinks[r].crosswalk.uuid);-1!=o&&t.push(e.sourceLinks[o])}}const n=t.map((e=>e.crosswalk.uuid)),o=e.sourceLinks.filter((function(e){return-1==this.indexOf(e.crosswalk.uuid)}),n);if(e.sourceLinks=o.concat(t),t.length>0){let t=0;for(let e=0;e<o.length;e++)t+=o[e].dy;e.sizeForNewSources=t}}}))})),t.forEach((e=>{let t=0,n=e.sizeForNewSources||0;delete e.sizeForNewSources,e.sourceLinks.forEach((e=>{e.sy=t,t+=e.dy})),e.targetLinks.forEach((e=>{e.ty=n,n+=e.dy}))}))}return l.nodeWidth=()=>e,l.setNodeWidth=t=>(e=+t,l),l.nodePadding=()=>r,l.setNodePadding=e=>(r=+e,l),l.smallestNodeMaxHeight=()=>t,l.setSmallestNodeMaxHeight=e=>(t=+e,l),l.smallestNodeMinHeight=()=>n,l.setSmallestNodeMinHeight=e=>(n=+e,l),l.size=()=>o,l.setSize=e=>(o=e,l),l.update=e=>(a(e),e),l.link=()=>{let t=.5;function n(n){const r=!n.target.sourceLinks||0==n.target.sourceLinks.length,o=n.source.x+n.source.dx,l=n.target.x,a=(d=+(d=o),p=+(p=l),e=>d*(1-e)+p*e),i=a(t),s=a(1-t),c=n.source.y+n.sy-.13,u=n.target.y+n.ty-.13;var d,p;const m=r?"":`L${l+e},${u} L${l+e},${u+n.dy+.26}`;return c===u?`M${o},${c} \n L${l},${u}${m} \n L${l},${u+n.dy+.26} \n L${o},${c+n.dy+.26} Z`:`M${o},${c}\n C${i},${c} ${s},${u} ${l},${u}${m} \n L${l},${u+n.dy+.26} \n C${s},${u+n.dy+.26} ${i},${c+n.dy+.26} \n ${o},${c+n.dy+.26} Z`}return n.curvature=function(e){return arguments.length?(t=+e,n):t},n},l}().setNodeWidth(14).setNodePadding(20).setSize([o-2,n-2]),r=e.nodeWidth(),l=e.link(),a=(e=>{const t=e.nodes.map((e=>Y({},e))),n=n=>{const r=e.nodes.indexOf(n);return t[r]},r=e.links.map((e=>Y({},e,{source:n(e.source),target:n(e.target)})));return{nodes:t,links:r}})(t),{nodes:i,links:s}=e(a);return{nodes:i,links:s,nodeWidth:r,path:l}}),[t,o,n])};var q=n(90143),K=n(12147),Q=n(98685);const J=(0,D.Z)({tooltipTitle:{fontWeight:500,fontSize:"16px",lineHeight:"24px",letterSpacing:"0.15px",marginBottom:"8px",userSelect:"none"},tooltipRow:{display:"flex",alignItems:"center",fontSize:"13px",lineHeight:"15px",fontWeight:"normal","&:not(:last-child)":{marginBottom:"4px"}},tooltipIcon:{fontSize:"18px",color:"rgba(0, 0, 0, 0.54)",marginRight:"8px"},node:{stroke:"#000000",strokeWidth:1,strokeOpacity:.38},rootNode:{transform:"rotate(90deg)",userSelect:"none"}}),ee=e=>{let{user:t,time:n,children:r}=e;const l=J(),a=o().createElement("div",null,o().createElement("span",{className:l.tooltipTitle},m().text("Merge details")),o().createElement("div",{className:l.tooltipRow},o().createElement(K.Z,{className:l.tooltipIcon}),m().date(n,"L LTS")),o().createElement("div",{className:l.tooltipRow},o().createElement(Q.Z,{className:l.tooltipIcon}),t));return o().createElement(q.Z,{title:a,placement:"top"},r)},te=e=>{let{node:t,nodeWidth:n,highlightEnabled:l,isColored:a}=e;const i=J(),[s,c]=(0,r.useState)(0),u=(0,r.useRef)(null),{x:d,y:p,name:m,label:f,targetLinks:h,sourceLinks:g,entity:{crosswalks:b=[],merges:y}}=t,[v]=b,{isDimmed:x,highlightCrosswalk:k,removeHighlight:E}=(0,S.pu)(v),w=(0,S.nX)(v),C=null!=b&&b.length?g[b.length-1].sy+g[b.length-1].dy:0;return(0,r.useEffect)((()=>{var e;const n=t.dy,r=(null==u||null===(e=u.current)||void 0===e?void 0:e.clientWidth)||0;n<r&&c(n/2-r/2)}),[]),o().createElement("g",{transform:`translate(${d},${p})`},"ROOT"===m?o().createElement("text",{dy:-5,dx:s,ref:u,className:i.rootNode},f||""):o().createElement(o().Fragment,null,o().createElement("rect",{height:C,width:14,className:i.node,fill:a?w:"#F0F0F0",key:"node-main",opacity:l&&x?.19:1,onMouseEnter:()=>{l&&k()},onMouseLeave:()=>{l&&E()}}),!(null==h||!h.length)&&(()=>{const e=(0,A.pipe)((0,A.map)((0,A.prop)("source")),(0,A.groupBy)((0,A.prop)("time")))(h);return null==y?void 0:y.map(((t,r)=>{let{time:a,user:s}=t;const c=e[a];if(!c)return;const[u,d]=c.reduce(((e,t)=>{let{sourceLinks:n}=t;return[(0,A.min)((0,A.head)(n).ty,e[0]),(0,A.max)((0,A.last)(n).ty+(0,A.last)(n).dy,e[1])]}),[1/0,0]);return o().createElement(ee,{user:s,time:a,key:"node-"+r},o().createElement("rect",{transform:`translate(0,${u})`,height:d-u,width:n,className:i.node,fillOpacity:.54,fill:"#F0F0F0",opacity:l&&x?.38:1}))}))})()))},ne=e=>{let{link:t,path:n,highlightEnabled:r,isColored:l}=e;const{crosswalk:a}=t,i=(0,S.nX)(a),{isDimmed:s,highlightCrosswalk:c,removeHighlight:u}=(0,S.pu)(a);return o().createElement("path",{d:n,fill:l?i:"#F0F0F0",opacity:r&&s?.1:1,onMouseEnter:()=>{r&&c()},onMouseLeave:()=>{r&&u()}})},re=e=>{let{width:t,height:n,data:l,accentContributors:a}=e;const[i,s]=(0,r.useState)(!1),[c,u]=(0,r.useState)(0),[d,p]=(0,r.useState)(0),{links:m,nodes:f,nodeWidth:h,path:g}=_({data:l,width:t,height:n});(0,r.useEffect)((()=>{p(0),u(0)}),[t,n]);const b=(0,r.useMemo)((()=>f.map(((e,t)=>o().createElement(te,{highlightEnabled:a,isColored:a,node:e,nodeWidth:h,key:`SankeyNode-${t}`})))),[f,a,h,t,n]),y=(0,r.useMemo)((()=>m.map(((e,t)=>o().createElement(ne,{highlightEnabled:!a,isColored:!a,link:e,path:g(e),key:`SankeyLink-${t}`})))),[a,m,g]),v=e=>{const t=e.pageX,n=t-c;return u(t),n},x=()=>s(!1),k=i?"none":"auto",E=i?"move":"default";return o().createElement("svg",{width:t,height:n,cursor:E,onPointerDown:e=>{e.preventDefault(),s(!0),v(e)},onPointerMove:e=>{if(!i)return;const t=v(e);p(d+t)},onPointerUp:x,onPointerLeave:x},o().createElement("g",{transform:`translate(${d},${n}) rotate(-90)`,pointerEvents:k},o().createElement("g",null,y),o().createElement("g",null,b)))};function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const le=(0,A.curry)(((e,t)=>!e||e.some((0,h.aFF)(t)))),ae=(0,A.curry)(((e,t)=>(0,A.evolve)({crosswalks:(0,A.filter)(le(e)),merges:(0,A.map)((0,A.evolve)({losers:(0,A.map)(ae(e))}))},t))),ie=e=>{let t=1;const n=(0,A.pipe)((0,A.evolve)({crosswalks:(0,A.map)((e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){oe(e,t,n[t])}))}return e}({},e,{uuid:t++})))}),(0,A.evolve)({merges:(0,A.map)((0,A.evolve)({losers:(0,A.map)((e=>n(e)))}))}));return n(e)},se=e=>{const t=[],n=[],r=(e,o,l)=>{const{crosswalks:a=[],merges:i=[],uri:s="",label:c}=e;t.push({entity:e,name:s,time:l,label:c});const u=t.length-1,d=(0,A.pipe)((0,A.chain)((e=>{let{losers:t,time:n}=e;return(0,A.pipe)((0,A.filter)((e=>{var t,n;return(null===(t=e.crosswalks)||void 0===t?void 0:t.length)||(null===(n=e.merges)||void 0===n?void 0:n.length)})),(0,A.chain)((e=>r(e,u,n))))(t)})),(0,A.concat)(a))(i);return-1!=o&&d.forEach((e=>n.push({source:t[u],target:t[o],value:10,crosswalk:e}))),d};r(e,-1,Date.now());const o=(0,A.pipe)((0,A.chain)((e=>{let{source:t,target:n}=e;return[t,n]})),A.uniq)(n);return{nodes:t.filter((e=>o.includes(e))),links:n}},ce=(0,D.Z)((()=>({graph:{padding:"8px 12px",boxSizing:"border-box",height:"100%",width:"100%",maxHeight:"500px"}}))),ue=(0,r.memo)((e=>{let{crosswalkTree:t,entityLabel:n,visibleCrosswalks:r,accentContributors:l}=e;const a=ce(),i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;return(0,A.pipe)(ae(n),ie,se)({uri:"ROOT",label:t,crosswalks:[],merges:[{time:Date.now(),losers:[e]}]})}(t,n,r);return o().createElement("div",{className:a.graph},o().createElement(s.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:t=0,height:n=200}=e;return o().createElement(re,{width:t,height:n,data:i,accentContributors:l})})))}));var de=n(10765),pe=n(34802);function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fe(e,t,n[t])}))}return e}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var he=n(71285),ge=n(89468),be=n(71153),ye=n.n(be),ve=n(72753),xe=n(65549);function ke(){return ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke.apply(this,arguments)}const Ee=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return o().createElement("svg",ke({width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},n),o().createElement("defs",null,o().createElement("path",{d:"M17 13.138l4.5 4.5-4.5 4.5V18.5h-1.247l-3.488-3.479 1.413-1.414 2.901 2.893H17v-3.362zM17 1.5L21.5 6 17 10.5V7.138h-.421l-11.03 11H2v-2h2.723l11.03-11H17V1.5zm-11.45 4l3.294 3.286-1.414 1.413L4.723 7.5H2v-2h3.55z",id:"svg457070356a"})),o().createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o().createElement("mask",{id:"svg457070356b",fill:"#fff"},o().createElement("use",{xlinkHref:"#svg457070356a"})),o().createElement("path",{fillOpacity:".54",fill:"#000",mask:"url(#svg457070356b)",d:"M0 0h24v24H0z"})))};var we=n(22983),Ce=n(39475),Se=n(79935);const Oe=(0,D.Z)((e=>({root:{display:"flex",alignItems:"center",paddingRight:"8px","& button + button":{marginLeft:"4px"}},focusedIcon:e=>{let{isFocused:t}=e;return{width:28,height:28,color:t?"#000":"rgba(0, 0, 0, 0.54)",borderRadius:0}},title:{color:e.palette.text.secondary,paddingLeft:"6px",paddingRight:"2px"},uri:{lineHeight:"15px",color:e.palette.text.primary}}))),Te=e=>{let{contributorUri:t,focusable:n,disableAdd:r,disableUnmerge:l,onAdd:a,onUnmerge:i,onToggleFocus:s,onUnsubscribe:c,isFocused:u}=e;const d=Oe({isFocused:u});return o().createElement("div",{className:d.root},o().createElement(Ce.k,{size:"XXS",onClick:()=>s(),className:d.focusedIcon,icon:n&&ve.Z,disabled:!n,tooltipTitle:n&&m().text("Focus")}),o().createElement(P.Z,{variant:"body2",className:d.uri},o().createElement("span",{className:d.title},m().text("Entity ID:")),(0,h.nIW)(t)),o().createElement(Se.Z,null),a&&o().createElement(Ce.k,{size:"XS",icon:xe.Z,disabled:r,tooltipTitle:m().text("Add crosswalk"),showForDisabled:!0,onClick:()=>a()}),o().createElement(Ce.k,{size:"XS",icon:Ee,disabled:l,tooltipTitle:m().text("Unmerge"),showForDisabled:!0,onClick:()=>i()}),c&&o().createElement(Ce.k,{size:"XS",icon:we.Z,disabled:l,tooltipTitle:m().text("Unsubscribe"),showForDisabled:!0,onClick:()=>c()}))},Me=(0,D.Z)((()=>({root:e=>{let{contributorColor:t}=e;return{fontSize:"13px",position:"relative",display:"flex",flexDirection:"column",alignItems:"stretch",border:"1px solid rgba(0, 0, 0, 0.05)",paddingLeft:"8px","&:before":{content:'" "',borderLeft:`8px solid ${t}`,position:"absolute",top:-1,left:0,bottom:-1},"& > div + div":{marginTop:"1px"}}},editor:{padding:"0px 30px 0px 25px"}}))),Ze=e=>{let{className:t,contributorUri:n,accentContributor:a,crosswalksBySources:i,expandedSources:s,disableAddCrosswalk:c,disableEditCrosswalk:u,disableDeleteCrosswalk:d,disableUnmergeContributor:p,onUnmerge:m,onEdit:g,onDelete:b,onAdd:y,onToggleSourceExpanded:v,onUnsubscribeContributor:x}=e;const k=a?(0,h.GtP)(n):"rgba(0, 0, 0, 0.38)",E=Me({contributorColor:k}),w=(0,l.useSelector)(f.ZP.selectors.getDataTenants),C=(0,r.useRef)(null),[O]=(0,S.RT)();(0,r.useEffect)((()=>{var e;a&&O&&((0,A.pipe)((0,A.find)((e=>{let{source:t}=e;return t===O.type})),(0,A.propOr)({},"crosswalksByTypes"),A.values,A.flatten)(i).some((e=>(0,h.aFF)(O,e)&&e!==O))&&(null==C||null===(e=C.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})))}),[O]);const[T,M]=(0,r.useState)(!1),Z=(0,A.pipe)((0,A.pluck)("crosswalksByTypes"),(0,A.find)((e=>e[pe.Y.Simple].length||e[pe.Y.Empty].length)),(0,A.props)([pe.Y.Simple,pe.Y.Empty]),A.flatten,A.head)(i),{toggleCrosswalkFocus:R,isFocused:U}=(0,S.BF)(Z),L=(0,A.pipe)((0,A.pluck)("crosswalksByTypes"),(0,A.chain)(A.values),A.flatten)(i),z=(0,h.KMQ)(L,w);return o().createElement("div",{ref:C,className:ye()(E.root,t)},o().createElement(Te,{contributorUri:n,focusable:a&&!!Z,disableAdd:c,disableUnmerge:p,isFocused:a&&U,onToggleFocus:R,onAdd:Z&&(()=>M(!0)),onUnmerge:m,onUnsubscribe:z&&(()=>x({contributorUri:n,dataTenant:z,crosswalk:Z}))}),i.map((e=>{let{source:t,crosswalksByTypes:n}=e;return o().createElement(he.Z,{key:t,source:t,crosswalksByTypes:n,showCrosswalkColors:!a,crosswalksFocusEnabled:!a,expanded:null==s?void 0:s.includes(t),disableEditCrosswalk:u,disableDeleteCrosswalk:d,onEdit:g,onDelete:b,onToggleExpanded:()=>v(t)})})),T&&o().createElement(ge.Z,{className:E.editor,onAdd:e=>y({contributorCrosswalk:Z,crosswalk:e}),onClose:()=>M(!1)}))},Re=(0,D.Z)((()=>({table:{overflowY:"auto",overflowX:"hidden",paddingLeft:"16px",paddingRight:"6px"},tableRow:{"& + &":{marginTop:"10px"},margin:"auto",maxWidth:"448px"}})));function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Le(e,t,n[t])}))}return e}function Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ze=(0,r.memo)((e=>{let{accentContributors:t,entity:n,contributors:a,selectedAttributeTypes:i,onChangeVisibleCrosswalks:s,readOnly:c,onAddCrosswalk:u=I.ZT,onEditCrosswalk:d=I.ZT,onDeleteCrosswalk:p=I.ZT,onUnmergeContributor:m=I.ZT,onUnsubscribeContributor:g=I.ZT}=e;const b=(0,l.useSelector)(f.ZP.selectors.getMetadata),y=(0,h.nt9)(b,n.type),v=Re(),x=(0,r.useMemo)((()=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=e.crosswalks,o=(0,h.HQx)(e);return t.filter((e=>!(0,h.O27)(e.crosswalks))).map((t=>{let{uri:l,crosswalks:a}=t;return{contributorUri:l,crosswalksBySources:(0,A.pipe)((0,A.map)((e=>{if("relation"===e.ownerType){const t=o.find((0,h.aFF)(e));return t&&me({ownerType:"relation"},t)}{const t=r.find((0,h.aFF)(e));return t&&me({ownerType:"entity"},t)}})),(0,A.filter)((e=>!!e)),(0,de.o)(e.type,n))(a)}})).filter((e=>{let{crosswalksBySources:t}=e;return t.length>0}))}(n,a,i)),[n,a,i]),[k,E]=(0,r.useState)({}),w=(0,r.useMemo)((()=>((e,t)=>e.reduce(((e,n)=>{let{contributorUri:r,crosswalksBySources:o}=n;const l=(0,A.chain)((e=>{var n;let{source:o,crosswalksByTypes:l}=e;const a=null===(n=t[r])||void 0===n?void 0:n.includes(o);return l[pe.Y.Simple].concat(l[pe.Y.Empty]).concat(a?l[pe.Y.Dependent]:[])}),o);return e.concat(l)}),[]))(x,k)),[x,k]);(0,r.useEffect)((()=>{s(w)}),[w]);const C=(0,r.useCallback)((e=>{p({entityUri:null==n?void 0:n.uri,crosswalkId:e})}),[null==n?void 0:n.uri,p]),S=(0,r.useCallback)((e=>{d(Ue({},e,{entityUri:null==n?void 0:n.uri}))}),[null==n?void 0:n.uri,d]);return o().createElement("div",{className:v.table},x.map((e=>{let{contributorUri:r,crosswalksBySources:l}=e;return o().createElement(Ze,{key:r,className:v.tableRow,contributorUri:r,accentContributor:t,crosswalksBySources:l,disableAddCrosswalk:c||!(0,h.mkC)(y),disableEditCrosswalk:c||!(0,h.Zm0)(y),disableDeleteCrosswalk:c||!(0,h.a14)(y),disableUnmergeContributor:c||!(0,h.uGe)(h.BDP.UNMERGE,y),onAdd:e=>u(Ue({},e,{entity:n})),onDelete:C,onEdit:S,onUnmerge:()=>m(r),onUnsubscribeContributor:g,expandedSources:k[r],onToggleSourceExpanded:e=>{E((0,A.pipe)((0,A.unless)((0,A.has)(r),(0,A.assoc)(r,[])),(0,A.evolve)({[r]:(0,A.ifElse)((0,A.includes)(e),(0,A.without)([e]),(0,A.append)(e))})))}})})))}));var Pe=n(77277),Ne=n(8629),Fe=n(49429),He=n(38724),De=n(79249),Be=n(81556);const je=(0,D.Z)((e=>({container:{display:"flex",flexDirection:"column","& + &":{marginLeft:"16px"}},title:{fontSize:"13px",lineHeight:"15px",color:"#666666",marginBottom:"7px"},hintIcon:{width:"16px",height:"16px",verticalAlign:"middle"},graph:{width:"400px",height:"300px",borderRadius:"8px",background:"rgba(0, 0, 0, 0.03)",border:"1px solid rgba(0, 0, 0, 0.03)",position:"relative"},checkedIcon:{position:"absolute",height:"20px",width:"20px",right:"10px",top:"10px",color:e.palette.primary.main},selectedTree:{border:`1px solid ${e.palette.primary.main}`,background:"rgba(0, 114, 206, 0.05)"}}))),$e=e=>{let{coloredCrosswalks:t,crosswalkTree:n,selected:l,title:a,onSelect:i=I.ZT}=e;const s=je(),c=(0,r.useCallback)((e=>t.includes(e.uri)?(0,h.CJp)((0,h.uKF)(e)):"#CACCD1"),[t]);return o().createElement(S.hR,{getCrosswalkColor:c},o().createElement("div",{className:s.container,onClick:i},o().createElement("span",{className:s.title},a," ",o().createElement($.Z,{className:s.hintIcon})),o().createElement("div",{className:ye()(s.graph,{[`${s.selectedTree}`]:l})},l&&o().createElement(Be.Z,{className:s.checkedIcon}),o().createElement(ue,{crosswalkTree:n}))))},Ae=(0,D.Z)((e=>({dialogContainer:{maxWidth:"unset"},dialogTitle:{padding:"13px 16px 0 16px",fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px"},dialogContent:{display:"flex",flexDirection:"column",padding:"13px 16px 0 16px"},trees:{display:"flex"},uri:{fontSize:"13px",lineHeight:"15px",color:e.palette.text.primary,marginBottom:"15px"},title:{fontSize:"13px",lineHeight:"15px",color:e.palette.text.secondary,paddingRight:"2px"}}))),Ie=e=>{let{canUnmerge:t,contributor:n,crosswalkTree:l,onClose:a,onUnmergeContributor:i}=e;const s=Ae(),[c,u]=(0,r.useState)(h.MBD.Unmerge),d=(0,r.useCallback)((e=>(0,h.keo)(n,e).map((e=>{let{uri:t}=e;return t}))),[n]);return o().createElement(Ne.Z,{open:!0,onClose:a,classes:{paper:s.dialogContainer}},o().createElement(De.Z,{classes:{root:s.dialogTitle}},m().text("Unmerge")),o().createElement(He.Z,{classes:{root:s.dialogContent}},o().createElement(P.Z,{variant:"body2",className:s.uri},o().createElement("span",{className:s.title},m().text("Entity URI:")),(0,h.nIW)(n.uri).toUpperCase()),o().createElement("div",{className:s.trees},o().createElement($e,{onSelect:()=>u(h.MBD.Unmerge),selected:c===h.MBD.Unmerge,title:m().text("Unmerge"),crosswalkTree:l,coloredCrosswalks:d(!0)}),n.merges&&n.uri!==l.uri&&o().createElement($e,{onSelect:()=>u(h.MBD.TreeUnmerge),selected:c===h.MBD.TreeUnmerge,title:m().text("Tree unmerge"),crosswalkTree:l,coloredCrosswalks:d(!1)}))),o().createElement(Fe.Z,null,o().createElement(Pe.Z,{onClick:a},m().text("Cancel")),o().createElement(Pe.Z,{disabled:!t,onClick:()=>{i(c),a()},color:"primary"},m().text("Unmerge"))))},We=(0,D.Z)((e=>({dialogContainer:{maxWidth:"unset"},dialogTitle:{padding:"13px 16px 0 16px",fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px"},dialogContent:{display:"flex",flexDirection:"column",padding:"13px 16px 0 16px"},uri:{fontSize:"13px",lineHeight:"15px",color:e.palette.text.primary,marginBottom:"15px"},title:{fontSize:"13px",lineHeight:"15px",color:e.palette.text.secondary,paddingRight:"2px"}}))),Ve=e=>{let{canUnsubscribe:t,contributor:n,crosswalkTree:l,onClose:a,onUnsubscribeContributor:i}=e;const s=We(),c=(0,r.useMemo)((()=>(0,h.keo)(n,!0).map((e=>{let{uri:t}=e;return t}))),[n]);return o().createElement(Ne.Z,{open:!0,onClose:a,classes:{paper:s.dialogContainer}},o().createElement(De.Z,{classes:{root:s.dialogTitle}},m().text("Unsubscribe")),o().createElement(He.Z,{classes:{root:s.dialogContent}},o().createElement(P.Z,{variant:"body2",className:s.uri},o().createElement("span",{className:s.title},m().text("Entity URI:")),(0,h.nIW)(n.uri).toUpperCase()),o().createElement($e,{selected:!0,title:m().text("Unsubscribe"),crosswalkTree:l,coloredCrosswalks:c})),o().createElement(Fe.Z,null,o().createElement(Pe.Z,{onClick:a},m().text("Cancel")),o().createElement(Pe.Z,{disabled:!t,onClick:()=>{i(),a()},color:"primary"},m().text("Unsubscribe"))))},Xe=(0,D.Z)((e=>({root:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%"},modeSwitcher:{backgroundColor:e.palette.background.paper,marginTop:"8px"},infoIcon:{fontSize:"18px",marginRight:"8px"},hint:{color:e.palette.text.secondary,display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"flex-start",margin:"5px 12px 10px 12px"},hintText:{fontSize:"12px",lineHeight:"16px"},crosswalksList:{height:"100%",width:"calc(100% - 24px)",margin:"8px 12px",background:e.palette.divider,opacity:.2},pane:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",overflow:"hidden"},resizablePanesWrapper:{flexGrow:1,width:"100%"}})));function Ye(){return Ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ye.apply(this,arguments)}const Ge=(0,r.memo)((e=>{let{activeMode:t,contributors:n,crosswalkTree:l,entity:a,onChangeMode:i,onUnmergeContributor:s=I.ZT,onUnsubscribeContributor:c=I.ZT}=e,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["activeMode","contributors","crosswalkTree","entity","onChangeMode","onUnmergeContributor","onUnsubscribeContributor"]);const d=Xe(),[p,f]=(0,r.useState)("50%"),g=(0,r.useCallback)((e=>{let{percentageSize:t}=e;return f(t)}),[]),[b,y]=(0,r.useState)(),[v,x]=(0,r.useState)(),k=(0,r.useMemo)((()=>(0,h.Qbq)(l)>1),[l]),E=(0,r.useMemo)((()=>[{id:V.Crosswalk,title:m().text("Crosswalk")},{id:V.Source,title:m().text("Source")},{id:V.Contributor,title:m().text("Contributor")}]),[]),[w,C]=(0,r.useState)(),S=t===V.Contributor;return o().createElement("div",{className:d.root},b&&o().createElement(Ie,{canUnmerge:k,onClose:()=>y(null),onUnmergeContributor:e=>{s({entityUri:a.uri,contributorUri:b,operationType:e})},crosswalkTree:l,contributor:n.find((e=>{let{uri:t}=e;return t===b}))}),v&&o().createElement(Ve,{canUnsubscribe:k,onClose:()=>x(null),onUnsubscribeContributor:()=>c({dataTenant:v.dataTenant,crosswalk:v.crosswalk}),crosswalkTree:l,contributor:n.find((e=>{let{uri:t}=e;return t===v.contributorUri}))}),o().createElement(W.Z,{modes:E,modeId:t,className:d.modeSwitcher,onChange:i}),o().createElement(T.Z,{className:d.resizablePanesWrapper,orientation:"horizontal",size:p,minSize:170,maxSize:-170,allowResize:!0,onChange:g},o().createElement("div",{className:d.pane},l&&!(0,A.isEmpty)(w)&&o().createElement(ue,{entityLabel:(0,h.idV)(null==a?void 0:a.label),crosswalkTree:l,visibleCrosswalks:w,accentContributors:S})),o().createElement("div",{className:d.pane},o().createElement("div",{className:d.hint},o().createElement($.Z,{className:d.infoIcon}),o().createElement("span",{className:d.hintText},m().text("You can drag a crosswalk to add values to attributes swimlanes"))),a&&o().createElement(ze,Ye({onUnmergeContributor:y,onUnsubscribeContributor:x,accentContributors:S,contributors:n,entity:a,onChangeVisibleCrosswalks:C},u)))))}));var _e=n(29627);function qe(){return qe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qe.apply(this,arguments)}const Ke=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return o().createElement("svg",qe({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o().createElement("mask",{id:"svg4041339336a",masktype:"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"3",width:"19",height:"17"},o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S4.83 6.5 4 6.5 2.5 5.83 2.5 5zM21 20H8v-2h13v2zM8 10h13V8H8v2zm0-4V4h13v2H8zm0 10h13v-2H8v2zm-2.5.5v-3h-3v3h3z",fill:"#fff"})),o().createElement("g",{mask:"url(#svg4041339336a)"},o().createElement("path",{fillOpacity:".54",fill:"#000",d:"M0 0h24v24H0z"})))},Qe=e=>{console.error(e),d.Z.addError({title:m().text("Error"),message:(0,h.xU7)(e,m().text("Something went wrong"))})};var Je=n(73972),et=n(58651),tt=n(13896);function nt(){return nt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nt.apply(this,arguments)}const rt=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return o().createElement("svg",nt({width:"90",height:"90",viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o().createElement("circle",{cx:"45",cy:"45",r:"45",fill:"#0072CE",fillOpacity:".1"}),o().createElement("mask",{id:"svg985456408a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"90",height:"90"},o().createElement("circle",{cx:"45",cy:"45",r:"45",fill:"#fff"})),o().createElement("g",{mask:"url(#svg985456408a)"},o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.625 3.164h90V90h-90V3.164z",fill:"url(#paint0_linear)"}),o().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M66.01 19.992l20.615 20.615v52.337H32.83L18.281 79.131V19.99H66.01z",fill:"url(#paint1_linear)"}),o().createElement("path",{opacity:".06",fillRule:"evenodd",clipRule:"evenodd",d:"M16.523 20.39H87.54A2.46 2.46 0 0190 22.853v55.195a2.46 2.46 0 01-2.46 2.46H16.522a2.46 2.46 0 01-2.46-2.46V22.852a2.46 2.46 0 012.46-2.461z",fill:"#000"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.578 19.688h70.664c.971 0 1.758.787 1.758 1.757v55.196c0 .97-.787 1.757-1.758 1.757H17.578c-.97 0-1.758-.787-1.758-1.757V21.445c0-.97.787-1.758 1.758-1.758z",fill:"#fff"}),o().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M37.046 25.536c0-.583.472-1.055 1.055-1.055h14.633a1.055 1.055 0 110 2.11H38.101a1.055 1.055 0 01-1.055-1.055z",fill:"#B6C7DB"}),o().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.914 29.754c0-.582.472-1.054 1.055-1.054H60.54a1.055 1.055 0 110 2.11H37.969a1.055 1.055 0 01-1.055-1.056z",fill:"#979797"}),o().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M37.046 57.305c0-.583.472-1.055 1.055-1.055h14.633a1.055 1.055 0 110 2.11H38.101a1.055 1.055 0 01-1.055-1.055z",fill:"#B6C7DB"}),o().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.914 61.523c0-.582.472-1.054 1.055-1.054H60.54a1.055 1.055 0 110 2.11H37.969a1.055 1.055 0 01-1.055-1.056z",fill:"#979797"}),o().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M37.046 67.852c0-.583.472-1.055 1.055-1.055h28.696a1.055 1.055 0 110 2.11H38.1a1.055 1.055 0 01-1.055-1.055z",fill:"#B6C7DB"}),o().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.914 72.07c0-.582.472-1.054 1.055-1.054h26.087a1.055 1.055 0 110 2.109H37.97a1.055 1.055 0 01-1.055-1.055z",fill:"#979797"}),o().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M48.648 36.21c0-.582.472-1.054 1.054-1.054h28.696a1.055 1.055 0 110 2.11H49.702a1.055 1.055 0 01-1.054-1.055z",fill:"#B6C7DB"}),o().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M48.516 40.43c0-.583.472-1.055 1.054-1.055h22.572a1.055 1.055 0 110 2.11H49.57a1.055 1.055 0 01-1.054-1.055z",fill:"#979797"}),o().createElement("circle",{cx:"23.555",cy:"27.773",r:"3.164",fill:"#B6C7DB"}),o().createElement("circle",{cx:"23.555",cy:"27.773",r:"3.164",fill:"#B6C7DB"}),o().createElement("circle",{cx:"42.188",cy:"37.266",r:"2.109",fill:"#B6C7DB"}),o().createElement("circle",{cx:"42.188",cy:"47.813",r:"2.109",fill:"#B6C7DB"}),o().createElement("circle",{cx:"23.555",cy:"59.414",r:"3.164",fill:"#B6C7DB"}),o().createElement("circle",{cx:"23.555",cy:"69.961",r:"3.164",fill:"#B6C7DB"}),o().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M48.648 46.758c0-.583.472-1.055 1.054-1.055h28.696a1.055 1.055 0 110 2.11H49.702a1.055 1.055 0 01-1.054-1.055z",fill:"#B6C7DB"}),o().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M48.516 50.977c0-.583.472-1.055 1.054-1.055h26.088a1.055 1.055 0 110 2.11H49.57a1.055 1.055 0 01-1.054-1.055z",fill:"#979797"}),o().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M32.524 37.969v-2.813h-.703v14.191h3.93v-.703h-3.227v-9.972h3.227v-.703h-3.227z",fill:"#2B98F0"}),o().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M33.423 27.07l-1.242 1.243-1.243-1.243h2.485z",fill:"#000"}),o().createElement("path",{opacity:".6",fillRule:"evenodd",clipRule:"evenodd",d:"M17.578 7.734h65.39a2.11 2.11 0 012.11 2.11v6.328a2.11 2.11 0 01-2.11 2.11h-65.39a2.11 2.11 0 01-2.11-2.11V9.844a2.11 2.11 0 012.11-2.11z",fill:"#fff"}),o().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M20.39 13.008a2.11 2.11 0 012.11-2.11h24.61a2.11 2.11 0 110 4.22H22.5a2.11 2.11 0 01-2.11-2.11zM52.031 13.008a2.11 2.11 0 012.11-2.11h3.515a2.11 2.11 0 110 4.22h-3.515a2.11 2.11 0 01-2.11-2.11z",fill:"#979797"})),o().createElement("defs",null,o().createElement("linearGradient",{id:"paint0_linear",x1:"-5.625",y1:"3.164",x2:"-5.625",y2:"90",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),o().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),o().createElement("linearGradient",{id:"paint1_linear",x1:"93.557",y1:"63.672",x2:"54.451",y2:"27.31",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:".01"}),o().createElement("stop",{offset:"1"}))))},ot=(0,D.Z)((e=>({root:{height:"100%",overflow:"hidden",background:e.palette.background.default,display:"flex",flexDirection:"column",alignItems:"center",paddingTop:"115px"},info:{color:e.palette.text.secondary,fontSize:"16px",lineHeight:"24px",marginTop:"16px"}}))),lt=()=>{const e=ot();return o().createElement("div",{className:e.root},o().createElement(rt,null),o().createElement("span",{className:e.info},m().text("Please persist your profile to be able to edit crosswalks")))},at=(0,D.Z)({sourcesView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowX:"hidden",overflowY:"auto",fontFamily:"Roboto, Helvetica, Arial, sans-serif",display:"flex"},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},resizablePanesWrapper:{flexGrow:1,height:"100%"},pane:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",overflow:"hidden"},tabs:{marginLeft:"1px"}});var it;!function(e){e[e.Legend=0]="Legend",e[e.History=1]="History"}(it||(it={}));const st=(0,l.connect)((e=>({entity:f.ZP.selectors.getEntity(e),metadata:f.ZP.selectors.getMetadata(e),historyEvent:f.ZP.selectors.getHistoryEvent(e)})))((e=>{var t,n;let{config:a,entity:i,metadata:s,getSavedState:c,saveState:u,dispatch:d,historyEvent:p}=e;const F=at(),[H,D]=(0,r.useState)(V.Crosswalk),[B,$]=(0,r.useState)(0),W=e=>$((t=>t===e?null:e)),X=null!==B,Y=B===it.History,{isHistoryEnabled:G,isProfilePersisted:_}=(0,g.C)({isHistoryTabActive:Y,entity:i}),q=_?i:null,K=null==q?void 0:q.uri,Q=(0,h.nt9)(s,null==i?void 0:i.type),{historySlice:J}=(0,b.a)({entity:q,historyEvent:p}),[ee,te]=(0,r.useState)();(0,y.D)((()=>{te(void 0)}),[J]),(0,y.D)((()=>{te(void 0)}),[K]);const[ne,re]=(0,r.useState)(-480),oe=(0,r.useCallback)((e=>{let{percentageSize:t}=e;return re(t)}),[]),{isLoaded:le,savedState:ae}=(0,v.a)(c),[ie,se]=(0,r.useState)();(0,r.useEffect)((()=>{le&&se(ae.visibleColumns)}),[le]),(0,r.useEffect)((()=>{const e=!(0,A.equals)(ie,ae.visibleColumns);le&&e&&u({visibleColumns:ie})}),[ie]);const{crosswalkTree:ce,reload:ue}=(e=>{const[t,n]=(0,r.useState)(null),[o,l]=(0,r.useState)(!1),a=(0,_e._)(),i=e=>{console.warn("Failed to load crosswalk tree",e),n(null)},s=(0,r.useCallback)((()=>{e?(l(!0),a((0,h.wo0)({entityUri:e})).then((e=>{n(e)})).catch(i).finally((()=>{l(!1)}))):n(null)}),[e]);return(0,r.useEffect)((()=>{s()}),[s]),{isLoading:o,crosswalkTree:t,reload:s}})((null==J?void 0:J.aEntity.uri)||K),de=(0,r.useMemo)((()=>(0,h.b7X)(ce)),[ce]),pe=(0,r.useCallback)((()=>{K&&d(f.N5.entity.actions.loadEntity({viewId:a.id,uri:K}))}),[K,a,d]),me=(0,r.useCallback)((0,A.pipe)(pe,ue),[pe,ue]),{modifiedEntity:fe,crosswalksMap:he,newlyCreatedAttributes:ge,onDeleteAttribute:be,onPinAttribute:ye,onIgnoreAttribute:ve,onEditAttribute:xe,onAddAttribute:ke}=(0,x.Q)({entity:(null==J?void 0:J.aEntity)||q,onModify:me,onError:Qe}),{addCrosswalk:Ee,deleteCrosswalk:we,editCrosswalk:Ce,unmergeContributor:Se,unsubscribeContributor:Oe}=(e=>{let{onLoad:t=I.ZT,onSuccess:n=I.ZT,onError:o=I.ZT}=e;const{addCrosswalk:a,editCrosswalk:i,deleteCrosswalk:s}=(0,Je.P)({onLoad:t,onSuccess:n,onError:o}),c=(0,l.useSelector)(f.ZP.selectors.getDtssPath),u=(0,l.useSelector)(f.ZP.selectors.getTenant),d=(0,r.useCallback)((e=>{t(),e.then((()=>{n()})).catch(o)}),[t,o,n]);return{addCrosswalk:a,editCrosswalk:i,deleteCrosswalk:s,unmergeContributor:(0,r.useCallback)((e=>(0,A.pipe)(h.L8n,d)(e)),[d]),unsubscribeContributor:(0,r.useCallback)((e=>{let{crosswalk:t,dataTenant:n}=e;return(0,A.pipe)(h.R9X,(0,A.andThen)((e=>{if(!e.successful)throw new Error(m().text("Failed to unsubscribe contributor"));return e})),d)({dtssPath:c,value:t.value,type:t.type,sourceTable:t.sourceTable,dataTenant:n.id,customerTenant:u})}),[d,c,u])}})({onSuccess:me,onError:(0,r.useCallback)((e=>{Qe(e),e.errorCode===h.Xt7.CROSSWALK_NOT_FOUND&&me()}),[me])}),{historyFilter:Te,onApplyFilter:Me,onClearFilter:Ze,isLoading:Re,historicUris:Ue,historyWithTotal:Le,canLoadMore:ze,onLoadMore:Pe}=(0,k.k)({entity:q,enabled:G}),Ne=(e=>{let{activeMode:t,contributors:n}=e;const o=(0,r.useCallback)((e=>{var r;switch(t){case V.Source:return(0,h.kW2)(e.type);case V.Contributor:return(0,h.GtP)((null===(r=(0,h.A1W)(n,e))||void 0===r?void 0:r.uri)||"");case V.Crosswalk:return(0,h.CJp)((0,h.uKF)(e))}}),[t,n]),[l,a]=(0,r.useState)([]),i=(0,r.useRef)([]),s=(0,r.useCallback)((0,h.DsO)((()=>{a([...i.current])}),50),[]),c=(0,r.useCallback)((e=>{i.current=e,s(e)}),[s]),u=(0,r.useCallback)(((e,r)=>{if(e)if(r)if(t===V.Contributor){const t=(0,h.A1W)(n,e);c([e,...(null==t?void 0:t.crosswalks)||[]])}else c([e]);else c([])}),[t,c,n]),[d,p]=(0,r.useState)([]),m=(0,r.useCallback)(((e,t)=>(0,A.concat)(e.filter((e=>!(0,A.any)((0,h.aFF)(e),t))),t.filter((t=>!(0,A.any)((0,h.aFF)(t),e))))),[]),f=(0,r.useCallback)((e=>{if(e)if(t===V.Contributor){const t=(0,h.A1W)(n,e);p((n=>m([e,...(null==t?void 0:t.crosswalks)||[]],n)))}else p((t=>m([e],t)))}),[t,m,n]);return(0,r.useEffect)((()=>{p([])}),[t]),{getCrosswalkColor:o,highlightedCrosswalks:(0,r.useMemo)((()=>[...l,...d]),[l,d]),focusedCrosswalks:d,toggleCrosswalkFocus:f,setCrosswalkHighlighted:u}})({activeMode:H,contributors:de}),Fe=[{buttonProps:{id:it.Legend,icon:Ke,tooltipTitle:m().text("Legend")},title:o().createElement(P.Z,{variant:"h6"},m().text("Legend")),content:o().createElement(Ge,{activeMode:H,onChangeMode:D,entity:(null==J?void 0:J.aEntity)||q,crosswalkTree:ce,contributors:de,selectedAttributeTypes:ee,readOnly:!!J,onAddCrosswalk:Ee,onUnmergeContributor:Se,onUnsubscribeContributor:Oe,onEditCrosswalk:Ce,onDeleteCrosswalk:we})},{buttonProps:{id:it.History,icon:N.Z,tooltipTitle:m().text("History")},title:o().createElement(E.Z,{total:((null==Ue?void 0:Ue.length)||0)+1,entityType:Q,filter:Te,onApplyFilter:Me,onClearFilter:Ze}),content:_?o().createElement(w.Z,{isLoading:Re,historyWithTotal:Le,contributorsUris:Ue,entityUri:K,historyEvent:p,onLoadMore:Pe,canLoadMore:ze}):o().createElement(C.Z,null)}];return o().createElement("div",{className:F.sourcesView},o().createElement(S.hR,Ne,o().createElement(tt.DndProvider,{backend:et.default},o().createElement(O.Z,null),o().createElement(T.Z,{className:F.resizablePanesWrapper,orientation:"vertical",size:X?ne:"100%",minSize:480,maxSize:-480,allowResize:X,onChange:oe},o().createElement("div",{className:F.pane},o().createElement(M.Z,{entity:(null==J?void 0:J.aEntity)||i},J?o().createElement(Z.Z,null):o().createElement(R.a,null)),_?o().createElement(U.R,{attributeUris:ge},o().createElement(L.Z,{visibleColumns:ie,onChangeVisibleColumns:se,entity:fe,crosswalksMap:he,selectedAttributeTypes:ee,onSelectAttributeTypes:te,readOnly:!!J,onDelete:be,onPin:ye,onIgnore:ve,onEdit:xe,onAdd:ke})):o().createElement(lt,null)),o().createElement(j,{className:F.pane,title:null===(t=Fe[B])||void 0===t?void 0:t.title,onClose:()=>W(B)},null===(n=Fe[B])||void 0===n?void 0:n.content)))),o().createElement(z.G,{className:F.tabs,buttonsProps:(0,A.pipe)((0,A.reject)((0,A.propEq)("hidden",!0)),(0,A.pluck)("buttonProps"))(Fe),onButtonClick:W,activeIndexId:B}))})),ct=(0,i.createGenerateClassName)({productionPrefix:"sourcesPerspective",disableGlobal:!0}),ut=e=>{let{config:t,store:n,onResize:p,saveState:m,getSavedState:f}=e;const g=(0,r.useCallback)((0,h.aYu)(f),[f]);return o().createElement(l.Provider,{store:n},o().createElement(u.m.Provider,{value:t.id},o().createElement(i.StylesProvider,{generateClassName:ct},o().createElement(c.MuiPickersUtilsProvider,{utils:a.Z},o().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>null==p?void 0:p(Math.floor(e),Math.floor(t))}),t&&o().createElement(st,{config:t,saveState:m,getSavedState:g}),o().createElement(d.Z,null)))))}}}]);
package/658.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[658],{50548:(e,t,l)=>{l.d(t,{l:()=>i});var a=l(24328),r=l.n(a);function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},n.apply(this,arguments)}const i=(e,t,l)=>{if(e&&t){const i=(0,a.memo)(l);return l=>r().createElement(e.Consumer,null,(e=>r().createElement(i,n({},l,t(e,l)))))}return l}},30488:(e,t,l)=>{l.d(t,{Z:()=>n});var a=l(38748),r=l(50548);const n=e=>t=>(0,r.l)(a.X,e,t)},42011:(e,t,l)=>{l.d(t,{Z:()=>y});var a=l(13980),r=l.n(a),n=l(24328),i=l.n(n),o=l(71153),c=l.n(o),s=l(28899),p=l(87918),f=l.n(p),d=l(79573),m=l(17440);const h=(0,l(79692).Z)({pagination:{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"56px",borderTop:"1px solid rgba(0,0,0,0.12)",boxShadow:"none"},caption:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px"},selectRoot:{marginLeft:"5px",marginRight:"36px"},select:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px",textAlign:"right"},actions:{marginLeft:"32px"}});function E(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(l);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(l).filter((function(e){return Object.getOwnPropertyDescriptor(l,e).enumerable})))),a.forEach((function(t){u(e,t,l[t])}))}return e}function u(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}const g=e=>{let{classes:t={},count:l,rowsPerPageOptions:a,page:r,onChangePage:o,rowsPerPage:p,onChangeRowsPerPage:u,basicTableRef:g,labelRowsPerPage:y}=e;const v=h(),x=(0,n.useCallback)((()=>{(0,m.pathOr)(m.identity,["current","resetScrollbarPosition"],g)()}),[g]),_=(0,n.useCallback)((e=>{o(e),x()}),[o,x]),z=(0,n.useCallback)((e=>{o(0),u(e),x()}),[o,u,x]);return i().createElement(s.Z,{classes:E({},t,{root:c()(v.pagination,t.root),select:c()(v.select,t.select),caption:v.caption,selectRoot:v.selectRoot,actions:v.actions}),component:"div",labelRowsPerPage:y||f().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:l,count:a}=e;return f().text("${fromRow}-${toRow} of ${countRows}",{fromRow:f().number(t,"0,0"),toRow:f().number(l,"0,0"),countRows:f().number(a,"0,0")})},count:l,rowsPerPageOptions:a,page:r,onChangePage:(0,m.pipe)((0,m.nthArg)(1),_),rowsPerPage:p,onChangeRowsPerPage:(0,m.pipe)(d.NA,z)})};g.propTypes={classes:r().object,rowsPerPageOptions:r().arrayOf(r().number),count:r().number,page:r().number,onChangePage:r().func,rowsPerPage:r().number,onChangeRowsPerPage:r().func,basicTableRef:r().shape({current:r().object}),labelRowsPerPage:r().string};const y=i().memo(g)},28831:(e,t,l)=>{l.d(t,{Z:()=>f});var a=l(24328),r=l.n(a),n=l(71153),i=l.n(n),o=l(39475),c=l(38016);const s=(0,l(79692).Z)({collapseButton:{cursor:"pointer"},expandLess:{transform:"rotate( -180deg )"}});function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},p.apply(this,arguments)}const f=e=>{let{isOpen:t=!1,tooltipTitle:l}=e,a=function(e,t){if(null==e)return{};var l,a,r=function(e,t){if(null==e)return{};var l,a,r={},n=Object.keys(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||(r[l]=e[l]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(r[l]=e[l])}return r}(e,["isOpen","tooltipTitle"]);const n=s(),f={icon:c.Z,className:n.collapseButton,iconClassName:i()({[n.expandLess]:t})},d={tooltipTitle:l};return r().createElement(o.k,p({},f,d,a))}},79002:(e,t,l)=>{l.d(t,{B9:()=>h,tC:()=>m,ZP:()=>E});var a=l(24328),r=l.n(a),n=l(17440),i=l(90436),o=l(77277);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},c.apply(this,arguments)}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},s.apply(this,arguments)}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},p.apply(this,arguments)}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},f.apply(this,arguments)}const d=(0,l(79692).Z)((e=>({root:{display:"flex",flex:"1 1 auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"10px",overflow:"auto",height:"100%",minHeight:"350px",boxSizing:"border-box","& $text":{color:e.palette.text.secondary,fontSize:"20px",fontWeight:300,lineHeight:"24px",letterSpacing:"0.25px",textAlign:"center"},"& $secondaryText":{color:"rgba(0, 0, 0, 0.54)",fontSize:"15px",fontWeight:300,lineHeight:"18px",letterSpacing:"0.11px",textAlign:"center",paddingTop:"3px"}},embedded:{flexShrink:0,width:"190px",height:"190px",padding:"8px"},full:{width:"256px",height:"256px"},textBox:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:500,marginTop:"16px"},text:{},secondaryText:{},button:{minHeight:36,minWidth:64,maxWidth:500,padding:"10px 16px",borderRadius:"2px",boxShadow:"0 0 2px 0 rgba(0,0,0,0.12), 0 2px 2px 0 rgba(0,0,0,0.24), 0 0 8px 0 rgba(0,0,0,0.12), 0 8px 8px 0 rgba(0,0,0,0.24)",fontSize:"14px",fontWeight:500,lineHeight:"16px",marginTop:"24px"}})));let m;!function(e){e.full="full",e.embedded="embedded"}(m||(m={}));const h={SEARCH_RESULTS:e=>r().createElement("svg",c({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),r().createElement("defs",null,r().createElement("radialGradient",{cx:"50%",cy:"100%",fx:"50%",fy:"100%",r:"81.681%",gradientTransform:"matrix(.98998 0 0 .612 .005 .388)",id:"EmptySearchResults_svg__c"},r().createElement("stop",{stopColor:"#00BFFF",stopOpacity:.5,offset:"0%"}),r().createElement("stop",{stopColor:"#9EE8FF",stopOpacity:0,offset:"100%"})),r().createElement("radialGradient",{cx:"50%",cy:"111.651%",fx:"50%",fy:"111.651%",r:"87.693%",gradientTransform:"matrix(0 -.97693 .7263 0 -.31 1.605)",id:"EmptySearchResults_svg__f"},r().createElement("stop",{stopColor:"#91F8E5",stopOpacity:.6,offset:"0%"}),r().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),r().createElement("radialGradient",{cx:"50%",cy:"103.659%",fx:"50%",fy:"103.659%",r:"90.207%",gradientTransform:"matrix(0 -1 2.23905 0 -1.821 1.537)",id:"EmptySearchResults_svg__g"},r().createElement("stop",{stopColor:"#FFF",offset:"0%"}),r().createElement("stop",{stopColor:"#73FAFF",stopOpacity:.21,offset:"59.38%"}),r().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),r().createElement("linearGradient",{x1:"50%",y1:"170.771%",x2:"50%",y2:"10.303%",id:"EmptySearchResults_svg__e"},r().createElement("stop",{stopColor:"#91F8E5",offset:"0%"}),r().createElement("stop",{stopColor:"#99FCFF",stopOpacity:0,offset:"100%"})),r().createElement("filter",{x:"-25.9%",y:"-26.2%",width:"151.8%",height:"152.3%",filterUnits:"objectBoundingBox",id:"EmptySearchResults_svg__d"},r().createElement("feGaussianBlur",{stdDeviation:15,in:"SourceGraphic"})),r().createElement("circle",{id:"EmptySearchResults_svg__a",cx:128,cy:128,r:128})),r().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r().createElement("mask",{id:"EmptySearchResults_svg__b",fill:"#fff"},r().createElement("use",{xlinkHref:"#EmptySearchResults_svg__a"})),r().createElement("use",{fillOpacity:.2,fill:"#A792CD",xlinkHref:"#EmptySearchResults_svg__a"}),r().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},r().createElement("g",{transform:"translate(56 34)"},r().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},r().createElement("path",{d:"M0 6.99C0 3.13 3.137 0 7 0h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H7c-3.866 0-7-3.143-7-6.99V6.99z"}),r().createElement("path",{d:"M13 25.99c0-3.86 3.137-6.99 7-6.99h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H20c-3.866 0-7-3.143-7-6.99V25.99z",opacity:.4})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 45.833)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),r().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),r().createElement("path",{d:"M35.365.861h69.768a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M34.274 15.048h126.164a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),r().createElement("rect",{fill:"#645F6D",opacity:.5,x:21.756,y:17.46,width:87.022,height:12.004,rx:6.002}),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 87.302)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),r().createElement("rect",{fill:"#E3EBF4",x:0,y:1.091,width:20.668,height:20.734,rx:10.334}),r().createElement("path",{d:"M35.365.861h82.647a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M34.274 15.048H174.58a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M33.182 24.869h113.119a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 128.77)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),r().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),r().createElement("path",{d:"M35.365.861h110.929a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M34.274 15.048h92.443a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})))),r().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},r().createElement("path",{fill:"#446275",d:"M72.246 84.033l8.66 5-35.5 61.488-8.66-5-12.556-24.729-51.307-29.622 20.431-35.388 50.648 29.242z"}),r().createElement("path",{d:"M62.906 120.21l-80.091-46.24 10.5-18.188 50.647 29.242 28.284-.99 8.66 5-18 31.176z",fillOpacity:.2,fill:"#FFF"}),r().createElement("path",{d:"M27.566 75.558L3.877 109.065l-5.013-2.895 26.045-32.146 2.657 1.534zm9.467 5.466L13.345 114.53l-5.014-2.895L34.377 79.49l2.656 1.534zm8.158 4.71l-22.32 34.297-5.013-2.895L43.903 84.99l1.288.744z",fill:"#527585"}),r().createElement("path",{d:"M11.524 90.544l13.385-16.52 2.657 1.534-12.174 17.22-3.868-2.234zm9.467 5.467L34.377 79.49l2.656 1.534-12.174 17.22-3.868-2.233zm9.527 5.5L43.903 84.99l1.288.744-11.47 17.626-3.203-1.85z",fill:"#76A2B5",opacity:.6}),r().createElement("path",{d:"M.355 59.848l-23.689 33.507-5.013-2.895 26.045-32.146 2.657 1.534zm9.468 5.466L-13.866 98.82l-5.013-2.895L7.166 63.78l2.657 1.534zm8.158 4.71L-4.34 104.32l-5.014-2.895L16.692 69.28l1.289.744z",fillOpacity:.1,fill:"#000"}),r().createElement("g",null,r().createElement("path",{fill:"url(#EmptySearchResults_svg__c)",opacity:.993,filter:"url(#EmptySearchResults_svg__d)",d:"M.63 0h173.74L123 172H52z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"url(#EmptySearchResults_svg__e)",opacity:.3,d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"url(#EmptySearchResults_svg__f)",opacity:.3,d:"M4 2h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"url(#EmptySearchResults_svg__g)",d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"#FFF",opacity:.196,d:"M212.363 205.344l-1 1.732L60.418 124.52l4.977-8.62z"})),r().createElement("path",{fill:"#76A2B5",d:"M73.112 84.533l-35.5 61.488-.866-.5 35.5-61.488z"}),r().createElement("path",{fill:"#F3F3F3",d:"M80.906 89.033l-35.5 61.488-.866-.5 35.5-61.488z"}),r().createElement("path",{fill:"#538196",d:"M55.112 115.71l-17.5 30.311-.866-.5 17.5-30.31z"})))),SELECT_ATTRIBUTES:e=>r().createElement("svg",s({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),r().createElement("defs",null,r().createElement("linearGradient",{x1:"79.375%",y1:"86.747%",x2:"32.207%",y2:"33.403%",id:"SelectAttributes_svg__c"},r().createElement("stop",{stopColor:"#000",stopOpacity:0,offset:"0%"}),r().createElement("stop",{stopColor:"#000",offset:"100%"})),r().createElement("circle",{id:"SelectAttributes_svg__a",cx:128,cy:128,r:128})),r().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r().createElement("mask",{id:"SelectAttributes_svg__b",fill:"#fff"},r().createElement("use",{xlinkHref:"#SelectAttributes_svg__a"})),r().createElement("use",{fillOpacity:.2,fill:"#A792CD",xlinkHref:"#SelectAttributes_svg__a"}),r().createElement("path",{fill:"#F4F4F4",mask:"url(#SelectAttributes_svg__b)",d:"M-16 9h256v239H-16z"}),r().createElement("path",{fill:"url(#SelectAttributes_svg__c)",opacity:.05,mask:"url(#SelectAttributes_svg__b)",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865z"}),r().createElement("path",{d:"M53 58h202a7 7 0 017 7v157a7 7 0 01-7 7H53a7 7 0 01-7-7V65a7 7 0 017-7z",fill:"#000",opacity:.06,mask:"url(#SelectAttributes_svg__b)"}),r().createElement("g",{mask:"url(#SelectAttributes_svg__b)"},r().createElement("path",{d:"M56 56h201a5 5 0 015 5v157a5 5 0 01-5 5H56a5 5 0 01-5-5V61a5 5 0 015-5z",fill:"#FFF",fillRule:"evenodd"}),r().createElement("path",{d:"M114.376 69.635H156a3 3 0 010 6h-41.624a3 3 0 110-6z",fill:"#B6C7DB",fillRule:"evenodd",opacity:.8}),r().createElement("path",{d:"M114 81.635h64.205a3 3 0 010 6H114a3 3 0 110-6z",fill:"#979797",fillRule:"evenodd",opacity:.2}),r().createElement("path",{d:"M114.376 160H156a3 3 0 010 6h-41.624a3 3 0 010-6z",fill:"#B6C7DB",fillRule:"evenodd",opacity:.8}),r().createElement("path",{d:"M114 172h64.205a3 3 0 010 6H114a3 3 0 010-6z",fill:"#979797",fillRule:"evenodd",opacity:.2}),r().createElement("path",{d:"M114.376 190H196a3 3 0 010 6h-81.624a3 3 0 010-6z",fill:"#B6C7DB",fillRule:"evenodd",opacity:.8}),r().createElement("path",{d:"M114 202h74.205a3 3 0 010 6H114a3 3 0 010-6z",fill:"#979797",fillRule:"evenodd",opacity:.2}),r().createElement("path",{d:"M82 190a2 2 0 012 2v14a2 2 0 01-2 2H68a2 2 0 01-2-2v-14a2 2 0 012-2h14zm0 2H68v14h14v-14z",fillOpacity:.18,fill:"#000",fillRule:"nonzero"}),r().createElement("path",{d:"M138.376 100H220a3 3 0 010 6h-81.624a3 3 0 110-6z",fill:"#B6C7DB",fillRule:"evenodd",opacity:.8}),r().createElement("path",{d:"M138 112h64.205a3 3 0 010 6H138a3 3 0 010-6z",fill:"#979797",fillRule:"evenodd",opacity:.2}),r().createElement("path",{d:"M82 100a2 2 0 012 2v14a2 2 0 01-2 2H68a2 2 0 01-2-2v-14a2 2 0 012-2h14zm0 2H68v14h14v-14z",fillOpacity:.18,fill:"#000",fillRule:"nonzero"}),r().createElement("path",{d:"M138.376 130H220a3 3 0 010 6h-81.624a3 3 0 110-6z",fill:"#B6C7DB",fillRule:"evenodd",opacity:.8}),r().createElement("path",{d:"M138 142h74.205a3 3 0 010 6H138a3 3 0 010-6z",fill:"#979797",fillRule:"evenodd",opacity:.2}),r().createElement("path",{d:"M96.514 100h2v8h9.179v2h-9.179v28.365h9.179v2H96.514V100z",fill:"#2B98F0",fillRule:"nonzero",opacity:.2}),r().createElement("path",{d:"M82 70H68a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V72a2 2 0 00-2-2z",fill:"#2B98F0",fillRule:"nonzero"}),r().createElement("path",{d:"M80.097 73.255a1.5 1.5 0 012.224 2.007l-.103.114-8.157 8.156a1.5 1.5 0 01-2.007.103l-.114-.103-3.164-3.164a1.5 1.5 0 012.007-2.225l.114.103L73 80.35l7.097-7.095z",fill:"#FFF",fillRule:"nonzero"}),r().createElement("path",{d:"M82 160H68a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-14a2 2 0 00-2-2z",fill:"#2B98F0",fillRule:"nonzero"}),r().createElement("path",{d:"M80.097 163.255a1.5 1.5 0 012.224 2.007l-.103.114-8.157 8.156a1.5 1.5 0 01-2.007.103l-.114-.103-3.164-3.164a1.5 1.5 0 012.007-2.225l.114.103L73 170.35l7.097-7.095z",fill:"#FFF",fillRule:"nonzero"}),r().createElement("path",{d:"M82 130H68a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-14a2 2 0 00-2-2z",fill:"#2B98F0",fillRule:"nonzero"}),r().createElement("path",{d:"M80.097 133.255a1.5 1.5 0 012.224 2.007l-.103.114-8.157 8.156a1.5 1.5 0 01-2.007.103l-.114-.103-3.164-3.164a1.5 1.5 0 012.007-2.225l.114.103L73 140.35l7.097-7.095z",fill:"#FFF",fillRule:"nonzero"}),r().createElement("path",{fill:"#000",fillRule:"evenodd",opacity:.54,d:"M101.071 77l-3.535 3.536L94 77z"})),r().createElement("path",{d:"M56 22h186a6 6 0 016 6v18a6 6 0 01-6 6H56a6 6 0 01-6-6V28a6 6 0 016-6z",fill:"#FFF",opacity:.6,mask:"url(#SelectAttributes_svg__b)"}),r().createElement("path",{d:"M70 31h70a6 6 0 010 12H70a6 6 0 110-12zM160 31h10a6 6 0 010 12h-10a6 6 0 010-12z",fill:"#979797",opacity:.2,mask:"url(#SelectAttributes_svg__b)"}))),NO_DATA:e=>r().createElement("svg",p({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),r().createElement("defs",null,r().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__b"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:0,offset:"0%"}),r().createElement("stop",{stopColor:"#F4F4F4",offset:"100%"})),r().createElement("linearGradient",{x1:"69.573%",y1:"86.747%",x2:"38.144%",y2:"33.403%",id:"NoData_svg__d"},r().createElement("stop",{stopColor:"#000",stopOpacity:0,offset:"0%"}),r().createElement("stop",{stopColor:"#000",offset:"100%"})),r().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__e"},r().createElement("stop",{stopColor:"#EEFBFF",offset:"0%"}),r().createElement("stop",{stopColor:"#0072CE",offset:"100%"})),r().createElement("filter",{x:"-7.7%",y:"-7.5%",width:"115.3%",height:"115%",filterUnits:"objectBoundingBox",id:"NoData_svg__f"},r().createElement("feOffset",{dx:0,dy:2,in:"SourceAlpha",result:"shadowOffsetOuter1"}),r().createElement("feGaussianBlur",{stdDeviation:2,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),r().createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0",type:"matrix",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),r().createElement("feMerge",null,r().createElement("feMergeNode",{in:"shadowMatrixOuter1"}),r().createElement("feMergeNode",{in:"SourceGraphic"}))),r().createElement("circle",{id:"NoData_svg__a",cx:128,cy:128,r:128})),r().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r().createElement("mask",{id:"NoData_svg__c",fill:"#fff"},r().createElement("use",{xlinkHref:"#NoData_svg__a"})),r().createElement("use",{fillOpacity:.1,fill:"#0072CE",xlinkHref:"#NoData_svg__a"}),r().createElement("path",{fill:"url(#NoData_svg__b)",mask:"url(#NoData_svg__c)",d:"M0 9h256v247H0z"}),r().createElement("g",{mask:"url(#NoData_svg__c)"},r().createElement("g",{transform:"translate(29 37)"},r().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},r().createElement("path",{fillOpacity:.8,opacity:.5,d:"M14.565 8h228.144v176.476H14.565z"}),r().createElement("path",{d:"M0 8.01C0 3.586 3.576 0 7.997 0h223.838a7.997 7.997 0 017.997 8.01v152.401c0 4.424-3.577 8.01-7.997 8.01H7.997A7.997 7.997 0 010 160.411V8.01z"})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 42.105)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),r().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),r().createElement("path",{d:"M32.488.791h64.093a3.509 3.509 0 110 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M31.486 13.824h115.902a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),r().createElement("rect",{fill:"#645F6D",opacity:.5,x:19.986,y:16.04,width:79.944,height:11.028,rx:5.514}),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 80.2)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),r().createElement("rect",{fill:"#E3EBF4",x:0,y:1.003,width:18.987,height:19.048,rx:9.493}),r().createElement("path",{d:"M32.488.791h75.925a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M31.486 13.824h128.893a2.506 2.506 0 110 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M30.483 22.846h103.918a1.504 1.504 0 010 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 118.296)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),r().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),r().createElement("path",{d:"M32.488.791h101.906a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M31.486 13.824h84.924a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})))),r().createElement("g",{mask:"url(#NoData_svg__c)"},r().createElement("path",{d:"M154.445 45.134v154.072H36.625V45.134h.811C35.508 62.52 41.07 80.609 54.12 93.944c22.74 23.235 59.61 23.235 82.352 0 13.05-13.335 18.612-31.424 16.683-48.81h1.29z",fill:"url(#NoData_svg__d)",opacity:.1,transform:"rotate(-30 291.014 34.548)"}),r().createElement("path",{d:"M27.473 93.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"url(#NoData_svg__e)",opacity:.2,transform:"translate(70 86)"}),r().createElement("g",{filter:"url(#NoData_svg__f)",strokeWidth:1,fill:"none",transform:"translate(70 86)"},r().createElement("path",{d:"M59.697 0c32.97 0 59.697 26.746 59.697 59.738 0 15.185-5.662 29.047-14.988 39.587l51.204 51.24a89.336 89.336 0 01-10.097 9.392l-51.38-51.416c-9.73 6.888-21.61 10.936-34.436 10.936C26.727 119.477 0 92.73 0 59.738 0 26.746 26.727 0 59.697 0zm0 17.756c-23.17 0-41.953 18.796-41.953 41.982s18.783 41.982 41.953 41.982 41.953-18.796 41.953-41.982-18.783-41.982-41.953-41.982z",fill:"#B5C8C9"}),r().createElement("path",{d:"M21.508 105.656C8.365 94.698 0 78.196 0 59.738 0 26.746 26.727 0 59.697 0c18.444 0 34.935 8.37 45.885 21.523l-9.794 9.8c-8.408-10.68-21.45-17.537-36.091-17.537-25.361 0-45.92 20.573-45.92 45.952 0 14.652 6.852 27.702 17.525 36.117l-9.794 9.8z",fillOpacity:.4,fill:"#FFF"})),r().createElement("path",{d:"M97.473 179.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"#D9F5FF",opacity:.4,style:{mixBlendMode:"soft-light"}}),r().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.87,fill:"#000",style:{mixBlendMode:"overlay"}}),r().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.38,fill:"#3C74B4"})))),ERROR:e=>r().createElement("svg",f({width:88,height:88,viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r().createElement("mask",{id:"Error_svg__a",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(#Error_svg__a)"},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(#Error_svg__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(#Error_svg__paint0_linear)"}),r().createElement("g",{filter:"url(#Error_svg__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(#Error_svg__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:"Error_svg__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:"Error_svg__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:"Error_svg__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:"Error_svg__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}))))},E=e=>{let{variant:t=m.full,LogoRenderer:l=h.SEARCH_RESULTS,text:a,secondaryText:c,buttonTitle:s,onClick:p=n.identity,access:f}=e;const E=d(),u=f&&s;return r().createElement("div",{className:E.root},r().createElement(l,{className:E[`${t}`]}),r().createElement("div",{className:E.textBox},r().createElement(i.Z,{variant:"h5",classes:{h5:E.text}},a),c&&r().createElement(i.Z,{variant:"subtitle1",classes:{subtitle1:E.secondaryText}},c)),u&&r().createElement(o.Z,{className:E.button,variant:"contained",color:"primary",onClick:p},s))}},20146:(e,t,l)=>{l.d(t,{Z:()=>d});var a=l(24328),r=l.n(a),n=l(52730),i=l(71153),o=l.n(i),c=l(90436),s=l(22241),p=l(35674);const f=(0,l(79692).Z)({"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",display:"inline-flex",marginRight:"12px",borderRadius:"2px"},"entityType-medium":{padding:"2px 8px 3px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"15px",display:"inline-flex",marginRight:"16px"}}),d=e=>{let{entity:t,className:l,size:a="small"}=e;const i=f(),d=(0,n.useSelector)(p.ZP.selectors.getMetadata),m=t.type,h=(0,s.nt9)(d,m)||{},E=(0,s.VD3)(d,h,"typeColor")||s.rSc.palette.primary.main;return r().createElement(c.Z,{style:{backgroundColor:E,color:s.P6Y.Colors.getColor(E)?"#FFFFFF":"#212121"},className:o()(i[`entityType-${a}`],l),component:"div"},(0,s.jFi)(d,t))}},76283:(e,t,l)=>{l.d(t,{E:()=>m,Z:()=>h});var a=l(24328),r=l.n(a),n=l(4614),i=l(39475),o=l(61932),c=l(27291),s=l(79573),p=l(71153),f=l.n(p);const d=(0,l(79692).Z)({root:{display:"flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px"},check:{color:"#8CC152"}});let m;!function(e){e[e.INIT=1]="INIT",e[e.PROGRESS=2]="PROGRESS",e[e.SUCCESS=3]="SUCCESS",e[e.DONE=4]="DONE"}(m||(m={}));const h=e=>{let{classes:t={},tooltip:l="",onClick:a=s.ZT,mode:p=m.INIT}=e;const h=d();return r().createElement("div",{className:f()(h.root,t.root)},(()=>{switch(p){case m.INIT:return r().createElement(i.k,{className:t.button,size:"M",tooltipTitle:l,icon:o.Z,onClick:a});case m.PROGRESS:return r().createElement(n.Z,{className:t.spinner,size:24});case m.SUCCESS:return r().createElement(c.Z,{className:f()(h.check,t.check)});default:return null}})())}},66072:(e,t,l)=>{l.d(t,{Z:()=>z});var a=l(52730),r=l(35674),n=l(24328),i=l.n(n),o=l(71153),c=l.n(o),s=l(17440),p=l(22241),f=l(20146),d=l(18527),m=l(37573),h=l(76283);const E=e=>e&&e.scrollIntoView({block:"end",behavior:"smooth"}),u=e=>{e&&clearTimeout(e)},g=(e,t)=>{if(e&&t){const l=e.offsetTop,a=e.offsetTop+e.clientHeight,{clientHeight:r,scrollTop:n}=t;return l>=0&&a>n&&a<n+r}};var y=l(55962),v=l(79692),x=l(41128);const _=(0,v.Z)((e=>({"@keyframes animate":{from:{background:"transparent"},"66%":{background:"#f2e68e"},"100%":{background:"transparent"}},highlighted:{animationName:"$animate",animationDuration:"3s",animationIterationCount:1},item:{display:"flex",minHeight:"40px",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",flexDirection:"row","&:after":{content:"",minHeight:"inherit",fontSize:0},"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"}},clickable:{cursor:"pointer"},selected:{background:(0,x.U1)(e.palette.primary.main,.12),"&:hover":{background:(0,x.U1)(e.palette.primary.main,.24)}},inactive:{background:e.inactiveBackground,"&:hover":{background:e.inactiveHoverBackground},"&$selected":{background:e.inactiveSelectedBackground,"&:hover":{background:e.inactiveSelectedHoverBackground}}},justImported:{backgroundColor:"#FFFBEB !important"},avatar:{marginLeft:"20px"},image:{height:"32px",width:"32px",marginTop:"8px",marginBottom:"7px"},info:{marginLeft:"20px",flexGrow:1,display:"flex",flexDirection:"column",justifyContent:"center",fontSize:"13px",width:"100%",overflow:"hidden",overflowWrap:"break-word",wordWrap:"break-word"},label:{fontSize:"13px",lineHeight:"15px",fontWeight:500,color:e.palette.primary.main,marginRight:"17px",textDecoration:"none"},secondaryLabel:{marginRight:"12px"},businessCard:{color:"rgba(0, 0, 0, 0.54)"},secondRow:{display:"flex",marginTop:"2px",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",fontSize:"12px"}}))),z=(0,a.connect)((e=>({metadata:r.ZP.selectors.getMetadata(e)})))((e=>{let{entities:t,metadata:l,entityToHighlight:a,selectedEntityUri:r,onEntityClick:o,onEntityHover:v,entitiesImportStatus:x,entityButtonsRenderer:z}=e;const M=_(),F=(0,n.useRef)(null),b=(0,n.useRef)(null);return(0,y.D)((()=>{if(a){var e;const l=null===(e=F.current)||void 0===e?void 0:e.querySelectorAll(`[data-entity-uri='${a}']`);if(u(b.current),(null==l?void 0:l.length)>0){var t;const e=null===(t=F.current)||void 0===t?void 0:t.parentElement;g(l[0],e)||(E(l[0]),b.current=setTimeout((()=>{g(l[0],e)||E(l[0])}),1e3))}}return()=>{u(b.current)}}),[a]),i().createElement("div",{ref:F},(t||[]).map((e=>{const t=(0,p.idV)(e.label),n=e.secondaryLabel,E=(0,p.ptG)(l,e),u=(0,p.Fn9)(e),g=e.uri,y=(0,p.wwR)(e),_=(0,s.prop)(g,x);return i().createElement("div",{key:g,className:c()(M.item,{[M.clickable]:!!o,[M.selected]:g===r,[M.highlighted]:g===a,[M.inactive]:!u,[M.justImported]:_===h.E.SUCCESS}),onClick:o?()=>o(g):void 0,onMouseEnter:v?()=>v(g):void 0,onMouseLeave:v?()=>v(null):void 0,"data-entity-uri":g},i().createElement(m.Z,{entity:e,avatarClassName:M.avatar,imageClassName:M.image}),i().createElement("div",{className:M.info},i().createElement("div",null,i().createElement(d.Z,{value:y,className:M.label},t),n&&i().createElement("span",{className:M.secondaryLabel},n," "),E&&i().createElement("span",{className:M.businessCard},E)),i().createElement("div",{className:M.secondRow},i().createElement(f.Z,{entity:e}),i().createElement("div",null,(0,p.BTI)(e)))),z&&z(e))})))}))}}]);
package/8694.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[8694],{55234:(e,t,n)=>{n.d(t,{Z:()=>I});var r=n(24328),i=n.n(r),l=n(87918),a=n.n(l),o=n(71153),s=n.n(o),c=n(17440),u=n(52730),p=n(35674),d=n(22241),h=n(90436),f=n(15793),m=n(19602),E=n(59952),g=n(33117),b=n(79692);function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const T={input:e=>y({},e,{fontSize:"14px"}),menuPortal:e=>y({},e,{zIndex:1300})},x=(0,b.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"},noOptionsMessage:{fontSize:"14px"}});const I=e=>{let{entityType:t,selectedAttributes:n,className:l,onChange:o,title:b,disableUnderline:y,menuPlacement:v="bottom"}=e;const I=(0,u.useSelector)(p.ZP.selectors.getMetadata),O=x(),S=(0,r.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.reduce(((e,r)=>{if(r.hidden)return e;const i=`${n&&n+" / "}${r.label}`;e.push({label:r.label,value:r.uri,attrType:r,chipLabel:i,level:t});const l=(0,d.EUG)(I,r);return e.concat(l?S(l,t+1,i):[])}),[])}),[I]),N=(0,r.useMemo)((()=>S((null==t?void 0:t.attributes)||[])),[t,S]);return i().createElement("div",{className:s()(O.root,l)},i().createElement(h.Z,{className:O.title,variant:"subtitle1"},b||a().text("Attribute")),i().createElement(f.Z,{value:n,options:N,TextFieldProps:{InputProps:{disableUnderline:y},classes:{root:O.dropDownInput}},components:{DropdownIndicator:E.Z,MultiValue:e=>{let{data:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["data"]);return i().createElement(m.Z,n,t.chipLabel)},Option:e=>{let{isFocused:t,isSelected:n,data:r,label:l,innerProps:a}=e;return i().createElement("div",a,i().createElement(g.Z,{checked:n,level:r.level,data:r,label:l,labelInText:l,isFocused:t}))}},onChange:(0,c.pipe)((0,c.defaultTo)([]),o),styles:T,classes:O,menuPlacement:v,menuPortalTarget:document.body}))}},54238:(e,t,n)=>{n.d(t,{Z:()=>U});var r=n(24328),i=n.n(r),l=n(13980),a=n.n(l),o=n(53862);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}const c=e=>i().createElement("svg",s({width:20,height:18,viewBox:"0 0 20 18",xmlns:"http://www.w3.org/2000/svg"},e),i().createElement("path",{d:"M16 7.24V6h-4v1.24a8.417 8.417 0 00-2 .768V6H6v6h.29a8.497 8.497 0 00-.15.358l-.29.733.29.733.07.176H2c-1.1 0-2-.9-2-2V2C0 .9.9 0 2 0h14c1.1 0 2 .9 2 2v6.008a8.417 8.417 0 00-2-.768zM4 12V6H2v6h2zm0-8V2H2v2h2zm6 0V2H6v2h4zm6 0V2h-4v2h4zm-2 5a6.451 6.451 0 00-6 4.09 6.451 6.451 0 006 4.092 6.451 6.451 0 006-4.091A6.451 6.451 0 0014 9zm0 6.818a2.728 2.728 0 010-5.454 2.728 2.728 0 010 5.454zm0-4.363c-.905 0-1.636.73-1.636 1.636 0 .905.73 1.636 1.636 1.636.905 0 1.636-.73 1.636-1.636 0-.906-.73-1.636-1.636-1.636z",fill:"#000",fillRule:"nonzero",stroke:"none",strokeWidth:1,opacity:.54}));var u=n(17440),p=n(22241);function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){h(e,t,n[t])}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=e=>e.id===e.groupId,m=(0,u.curry)(((e,t)=>{let{id:n,groupId:r}=e;return t.groupId===r&&(n===t.id||n.startsWith(`${t.id}.`))})),E=(0,u.curry)(((e,t)=>{let{groupId:n}=e;return n===t.id})),g=(0,u.propOr)(!0,"hideable"),b=(e,t)=>{const n=((e,t)=>e.find((0,u.either)(E(t),m(t))))(e,t);return n?(n.children=b(n.children||[],t),e):e.concat(t)},y=(0,u.curry)(((e,t)=>p.P6Y.strings.search(t.label,e)||(t.children||[]).some(y(e)))),v=(0,u.reduce)(((e,t)=>b(e,{id:t.id,groupId:t.groupId,label:t.label,attrType:t.dataTypeDefinition})),[]),T=(0,u.curry)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,u.pipe)((0,u.filter)(y(e)),(0,u.chain)((t=>[{item:d({},t,{filterText:e}),level:n},...t.children?T(e,t.children,n+1):[]])))(t)})),x=(0,u.has)("columns"),I=e=>{let{id:t,label:n,columns:r}=e;return[{id:t,groupId:t,label:n},...r.map((0,u.assoc)("groupId",t))]},O=e=>e.children?(0,u.chain)(O,e.children):[e],S=(e,t)=>{const n=O(t),r=t=>e.includes(t.id);return f(t)?n.every(r):n.some(r)};var N=n(39475),P=n(22311),C=n(63485),D=n(26638),R=n(41008),_=n(33117),w=n(94792),M=n(71153),A=n.n(M);const k=(0,n(79692).Z)({popup:{minWidth:"200px"},groupItem:{backgroundColor:"rgba(0,0,0,0.04)"}}),L=e=>{let{item:t,onClick:n,checked:r,level:l,style:a,isFocused:o,isGroupItem:s}=e;const c=k();return i().createElement(_.Z,{key:t.id,onClick:n,checked:r,level:l,data:t,label:i().createElement(w.Z,{text:t.label,highlight:t.filterText}),labelInText:t.label,style:a,isFocused:o,hideIcon:s,className:A()({[c.groupItem]:s})})};L.propTypes={item:a().shape({label:a().string,filterText:a().string}),level:a().number,onClick:a().func,checked:a().bool,style:a().object,isGroupItem:a().bool,isFocused:a().bool};const Z=L;var j=n(87918),H=n.n(j);const G=e=>{let{columnsData:t,selectedColumns:n,onChangeColumns:l,title:a,tooltipTitle:o}=e;const s=k(),[d,h]=(0,r.useState)(null),[m,E]=(0,r.useState)(""),b=(0,r.useMemo)((()=>((e,t)=>(0,u.pipe)((0,u.chain)((0,u.when)(x,I)),(0,u.filter)((0,u.either)(f,g)),v,T(t))(e))(t,m)),[t,m]),y=(0,p.fW1)("label")(b)||308,_=(0,r.useMemo)((()=>(0,R.LG)(b)),[b]),w=(0,r.useCallback)((e=>{const t=(0,u.pipe)(O,(0,u.pluck)("id"))(e),r=S(n,e);l(r?(0,u.difference)(n,t):(0,u.uniq)((0,u.concat)(n,t)))}),[n,l]),M=(0,r.useCallback)((e=>{let{item:t}=e;return w(t)}),[w]),{focusIndex:A,handleKeyDown:L}=(0,D.t)({items:_,open,onSelectFocusedItem:M,selectedItems:n}),j=Math.min(300,32*_.length),G=Math.max(140,j+108);return i().createElement(i().Fragment,null,i().createElement(N.k,{tooltipTitle:o||H().text("Show/hide columns"),size:"L",icon:c,onClick:e=>h(e.currentTarget)}),i().createElement(P.Z,{className:s.popup,open:!!d,anchorEl:d,onClose:(0,u.pipe)((()=>h(null)),(()=>E(""))),onSearch:E,title:a||H().text("Show/hide columns"),containerWidth:y,containerHeight:G,searchInputOnKeyDown:L},i().createElement(C.Z,{fixedTitle:!1,height:j,renderItem:(e,t,r)=>{let{item:l,level:a=0}=t;return i().createElement(Z,{style:e,item:l,level:a,isFocused:A===r,checked:S(n,l),isGroupItem:f(l),onClick:w})},items:_,getItemSize:()=>32,containerWidth:y,focusIndex:A})))};G.propTypes={columnsData:o.uz,selectedColumns:a().arrayOf(a().string),onChangeColumns:a().func,title:a().string,tooltipTitle:a().string};const U=G},77875:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(24328),i=n.n(r),l=n(17440),a=n(87918),o=n.n(a),s=n(6782),c=n(86619),u=n(90590),p=n(79573);const d=(0,n(79692).Z)({root:{display:"flex",flex:1},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px",fontSize:"14px"},inputNumber:{minWidth:"60px",marginRight:10,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.03)"},inputUnit:{width:"100%"}}),h=[o().text("minutes"),o().text("hours"),o().text("days"),o().text("weeks"),o().text("months"),o().text("years")],f=e=>{let{interval:[t,n],onChange:r,onFocus:a}=e;const o=d(),f=(0,l.pipe)(p.NA,parseInt,(e=>[e,n]),r),m=(0,l.pipe)((e=>{let{value:n}=e;return[t,n]}),r);return i().createElement("div",{className:o.root},i().createElement(c.Z,{type:"number",value:t||"",onChange:f,inputProps:{min:1,onFocus:a},InputProps:{classes:{root:o.input}},className:o.inputNumber}),i().createElement(u.Z,{label:"",placeholder:(0,s.Z)(n),className:o.inputUnit,value:{value:n,label:(0,s.Z)(n)},options:h.map((e=>({value:e,label:(0,s.Z)(e)}))),onChange:m,TextFieldProps:{inputProps:{onFocus:a},InputProps:{classes:{root:o.input}}}}))}},33109:(e,t,n)=>{n.d(t,{Z:()=>T});var r=n(24328),i=n.n(r),l=n(13980),a=n.n(l),o=n(71153),s=n.n(o),c=n(52730),u=n(17440),p=n(90436),d=n(80030),h=n(87918),f=n.n(h),m=n(22241),E=n(35674),g=n(37573),b=n(20146);const y=(0,n(79692).Z)((e=>({profileBandWrapper:{flexShrink:0},profileBand:{display:"flex",padding:"16px 12px 16px 16px",alignItems:"flex-start",backgroundColor:"#fff",boxShadow:"inset 0 -1px 0 0 rgba(0,114,206,0.06), inset 0 1px 0 0 rgba(0,114,206,0.06);","&:after":{content:'""',minHeight:"inherit",fontSize:0}},inactive:{background:e.inactiveBackground},profileIcon:{marginRight:"12px"},imageProfileIcon:{width:"48px",height:"48px"},profileInfo:{display:"flex",flexDirection:"column",flex:"1 1 50%"},badge:{},label:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary,wordBreak:"break-word","&+ $specialInfo":{marginTop:"4px"}},secondaryLabel:{display:"inline-flex",color:e.palette.text.primary,marginTop:"2px",lineHeight:"16px",fontSize:"14px",fontWeight:400,"&+ $businessCard":{marginLeft:"12px"}},businessCard:{color:e.palette.text.secondary,display:"inline-flex",fontSize:"14px",marginTop:"4px",lineHeight:"1.2"},specialInfo:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",width:"100%",marginTop:"8px"},entityType:{display:"flex",flexWrap:"wrap"},entityId:{fontSize:"13px",color:e.palette.text.secondary,whiteSpace:"nowrap",cursor:"pointer","&:hover":{textDecoration:"underline"}}}))),v=e=>{let{className:t,entity:n,children:l,classes:a}=e;const o=y({classes:a}),h=(0,c.useSelector)(E.ZP.selectors.getMetadata),v=(0,r.useCallback)((()=>{navigator.clipboard.writeText((0,m.BTI)(n))}),[n]);if((0,u.isNil)(n))return null;const T=(0,m.idV)(n.label),x=n.secondaryLabel,I=(0,m.ptG)(h,n),O=(0,m.Fn9)(n),S=n.uri,N=(0,m.BTI)(n);return i().createElement("div",{className:s()(o.profileBandWrapper,t)},i().createElement("div",{className:s()(o.profileBand,{[o.inactive]:!O}),"data-entity-uri":S},i().createElement(g.Z,{key:n.uri,entity:n,avatarClassName:o.profileIcon,imageClassName:o.imageProfileIcon}),i().createElement("div",{className:o.profileInfo},i().createElement("div",null,i().createElement(p.Z,{variant:"h6",className:o.label},T),x&&i().createElement(p.Z,{variant:"subtitle2",className:o.secondaryLabel},x),I&&i().createElement(p.Z,{variant:"subtitle1",className:o.businessCard},I)),i().createElement("div",{className:o.specialInfo},i().createElement("div",{className:o.entityType},i().createElement(b.Z,{entity:n,size:"medium",className:o.badge}),!(0,m.ZiX)(S)&&i().createElement(d.ZP,{title:f().text("Copy to clipboard")},i().createElement(p.Z,{display:"inline",variant:"body2",className:o.entityId,onClick:v},f().text("Entity ID"),": ",N))))),l&&i().createElement("div",null,l)))};v.propTypes={className:a().string,entity:a().object,children:a().node,classes:a().object};const T=v},76368:(e,t,n)=>{n.d(t,{a:()=>C});var r=n(24328),i=n.n(r),l=n(87918),a=n.n(l),o=n(86689),s=n(78223),c=n(39475),u=n(67766),p=n(42767),d=n(22241);const h=(0,n(79692).Z)({container:{display:"flex",alignItems:"center"},link:{whiteSpace:"nowrap",marginRight:"9px"}}),f=(0,s.Z)(o.Z),m=e=>{let{total:t=0,onPrev:n,onNext:r,onSearchResultsClick:l,isPrevDisabled:o,isNextDisabled:s}=e;const m=h();return i().createElement("div",{className:m.container},i().createElement(f,{className:m.link,component:"button",variant:"caption",onClick:l,underline:"none",tooltipTitle:a().text("Go to search results")},(0,d.k7L)(t,1e6)," ",1===t?a().text("Search result"):a().text("Search results")),i().createElement(c.k,{size:"L",icon:u.Z,tooltipTitle:a().text("Go to previous profile"),onClick:n,disabled:o,showForDisabled:!0}),i().createElement(c.k,{size:"L",icon:p.Z,tooltipTitle:a().text("Go to next profile"),onClick:r,disabled:s,showForDisabled:!0}))};var E=n(52730),g=n(35674),b=n(17440),y=n(12212),v=n(29627);function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){x(e,t,n[t])}))}return e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class I{constructor(e){var t=this;let{data:{query:n,sortField:r,sortOrder:i},tenant:l,searchTenant:a,apiPath:o,dtssPath:s,globalSearchRequestOptions:c}=e;this.query=void 0,this.sortField=void 0,this.sortOrder=void 0,this.tenant=void 0,this.searchTenant=void 0,this.apiPath=void 0,this.dtssPath=void 0,this.globalSearchRequestOptions=void 0,this.isDT=()=>this.tenant!==this.searchTenant,this.getQueryFilter=()=>({rawFilter:this.query}),this.getEntities=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[t.getQueryFilter(),...e],i=T({},t.globalSearchRequestOptions,{sort:t.sortField,order:t.sortOrder,select:"uri,label,type",scoreEnabled:!1},n);return t.isDT()?(0,d.uqV)({filters:r,options:i,customerTenant:t.tenant,dataTenant:t.searchTenant,dtssPath:t.dtssPath}):(0,d.ZOr)(r,i)},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"uri",values:[e]}],{offset:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{offset:t,max:e}),this.requestTotal=()=>{const e=[this.getQueryFilter()],t=this.globalSearchRequestOptions;return(this.isDT()?(0,d.J$m)({filters:e,options:t,customerTenant:this.tenant,dataTenant:this.searchTenant,dtssPath:this.dtssPath}):(0,d.j_Q)(e,t)).then((e=>e.total))},this.query=n,this.sortField=r,this.sortOrder=i,this.tenant=l,this.searchTenant=a,this.apiPath=o,this.dtssPath=s,this.globalSearchRequestOptions=c}}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){S(e,t,n[t])}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class N{constructor(e){var t=this;let{data:n,tenant:r,apiPath:i}=e;this.searchBody=void 0,this.tenant=void 0,this.apiPath=void 0,this.getEntities=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[{rawFilter:t.searchBody.filter},...e];return(0,d.P2h)({apiPath:t.apiPath,tenant:t.tenant,searchBody:O({},t.searchBody,{filter:e.length?(0,d.Uqd)()(r):t.searchBody.filter}),options:n})},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"id",values:[(0,d.BTI)({uri:e})]}],{from:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{from:t,max:e}),this.requestTotal=()=>(0,d.dED)({apiPath:this.apiPath,tenant:this.tenant,searchBody:this.searchBody}).then((e=>e.count)),this.searchBody=n,this.tenant=r,this.apiPath=i}}const P=(e,t)=>(0,b.pipe)((0,b.map)((0,b.prop)("uri")),(0,b.reject)((e=>t.includes(e))))(e),C=()=>{const{total:e,onPrev:t,onNext:n,onSearchResultsClick:l,isPrevDisabled:a,isNextDisabled:o}=(()=>{const e=(0,v._)(),t=(0,v._)(),n=(0,v._)(),{uri:i,index:l,total:a,tenant:o,cache:s}=(0,E.useSelector)(g.ZP.selectors.getSearchNavigationData)||{},{type:c,data:u}=(0,E.useSelector)(g.ZP.selectors.getSearchProviderData)||{},p=(0,E.useSelector)(g.ZP.selectors.getTenant),h=(0,E.useSelector)(g.ZP.selectors.getApiPath),f=(0,E.useSelector)(g.ZP.selectors.getDtssPath),m=(0,E.useSelector)((e=>g.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]))),b=(0,r.useContext)(y.m),T=(0,E.useDispatch)(),[x,O]=(0,r.useState)(!1),S=(0,r.useMemo)((()=>((e,t)=>{switch(e){case"search":return new I(t);case"graphsearch":return new N(t)}})(c,{data:u,tenant:p,searchTenant:o,apiPath:h,dtssPath:f,globalSearchRequestOptions:m})),[c,u,p,o,h,f,m]),C=(0,r.useCallback)((e=>{T(g.yC.actions.updateSearchNavigationDataFields(e))}),[T]),D=(0,r.useCallback)((e=>{const t=p!==o?(0,d.wwR)({uri:e,dataTenant:o}):e;T(g.ui.actions.openEntity({uri:t,viewId:b,source:"navigation"}))}),[T,b,p,o]),R=(0,r.useCallback)((()=>{T(g.ui.actions.openPerspective({perspectiveId:c,viewId:b}))}),[T,c,b]);(0,r.useEffect)((()=>{l>=a?C({index:a-1}):l<0&&C({index:0})}),[a,l,C]);const _=(0,r.useCallback)(((e,r,i)=>{O(!0),t(S.requestTotal()).then((e=>C({total:e})));const l=i+1;return n(S.requestEntities(15,l)).then((t=>{if(t){if(t.length){const n=P(t,e);if(n.length>0)return C({cache:e.concat(n),uri:n[0],index:l+t.length-n.length}),void D(n[0]);if(i+t.length<r-1)return _(e,r-t.length,i+t.length)}C({index:l})}})).finally((()=>{O(!1)}))}),[S,C,D]),w=(0,r.useCallback)(((e,r)=>{O(!0),t(S.requestTotal()).then((e=>C({total:e})));const i=r-1,l=Math.max(0,r-15),a=15+Math.min(0,r-15);return n(S.requestEntities(a,l)).then((t=>{if(t){if(t.length){const n=P(t,e);if(n.length>0)return C({cache:n.concat(e),uri:n[n.length-1],index:i-(t.length-n.length)}),void D(n[n.length-1]);if(r-t.length>0)return w(e,r-t.length)}C({index:0})}})).finally((()=>{O(!1)}))}),[S,C,D]),M=(0,r.useCallback)(((t,n,r,i)=>{if(n<t.length){const l=t[n];return O(!0),e(S.checkEntity(l)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),M(e,n,r-1,i)}C({index:i+1,uri:l,cache:t,total:r}),D(l)})).finally((()=>{O(!1)}))}if(!(i>=r-1))return _(t,r,i);C({cache:t,total:r,index:r-1})}),[S,C,D,_]),A=(0,r.useCallback)(((t,n,r,i)=>{if(n>-1){const l=t[n];return O(!0),e(S.checkEntity(l)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),A(e,n-1,r-1,i-1)}C({index:i-1,uri:l,cache:t,total:r}),D(l)})).finally((()=>{O(!1)}))}if(!(i<=0))return w(t,i);C({index:0,cache:t,total:r})}),[S,C,D,w]),k=(0,r.useCallback)((()=>{if(s&&i){const e=s.indexOf(i)-1;A(s,e,a,l)}}),[A,s,i,a,l]),L=(0,r.useCallback)((()=>{if(s&&i){const e=s.indexOf(i)+1;M(s,e,a,l)}}),[M,s,i,a,l]);return{total:a,onPrev:k,onNext:L,onSearchResultsClick:R,isPrevDisabled:x||l<=0,isNextDisabled:x||l>=a-1}})();return(()=>{const{cache:e}=(0,E.useSelector)(g.ZP.selectors.getSearchNavigationData)||{},t=(0,E.useSelector)(g.ZP.selectors.getMode),n=(0,E.useSelector)(g.ZP.selectors.getEntity);return(0,d.uzs)(t)&&(null==e?void 0:e.includes(null==n?void 0:n.uri))})()?i().createElement(m,{total:e,onPrev:t,onNext:n,onSearchResultsClick:l,isPrevDisabled:a,isNextDisabled:o}):null}},15793:(e,t,n)=>{n.d(t,{Z:()=>C});var r=n(24328),i=n.n(r),l=n(13980),a=n.n(l),o=n(17440),s=n(70347);const c=(0,n(4515).Z)(s.ZP);var u=n(49861),p=n(12350),d=n(12231),h=n(21324),f=n(71153),m=n.n(f),E=n(83088);function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}function b(e){const{innerProps:t,innerRef:n,children:r,isFocused:l,isSelected:a,selectProps:{classes:o},label:s}=e;return i().createElement(d.Z,g({className:m()(o.option,{[o["option--selected"]]:a}),ref:n,selected:l,component:"div"},t),i().createElement(h.Z,{color:"primary",checked:a}),i().createElement(E.C,{value:s},i().createElement("div",{className:o["option--item"]},r)))}b.propTypes={children:a().node,innerProps:a().shape({id:a().string.isRequired,key:a().string,onClick:a().func.isRequired,onMouseMove:a().func.isRequired,onMouseOver:a().func.isRequired,tabIndex:a().number.isRequired}).isRequired,innerRef:a().oneOfType([a().oneOf([null]),a().func,a().shape({current:a().any.isRequired})]),isFocused:a().bool.isRequired,isSelected:a().bool.isRequired,label:a().string,selectProps:a().shape({classes:a().shape({option:a().string})})};const y={Option:b};var v=n(79692),T=n(79573);function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){O(e,t,n[t])}))}return e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const S=(0,v.Z)((e=>({label:{top:6,left:16},placeholder:e=>({display:!e.placeholder||e.label?"none":void 0}),"option--selected":{fontWeight:400},clearIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)},dropdownIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)}})));let N=0;function P(e){const{label:t,creatable:n,getOptions:l,loadingIndicator:a,components:s,classes:d,styles:h,onChange:f,onInputChange:m,menuPlacement:E="auto"}=e,g=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["label","creatable","getOptions","loadingIndicator","components","classes","styles","onChange","onInputChange","menuPlacement"]),b=n?c:l?p.Z:u.Z,[v,O]=(0,r.useState)(""),P=S((0,o.omit)(["classes"],e)),C="custom-select-"+N++,D=I({},y,s),R=(0,T.ze)(P,d),_=I({indicatorSeparator:e=>I({},e,{margin:"10px 0"}),loadingIndicator:e=>I({},e,{display:a?e.display:"none"}),loadingMessage:e=>I({},e,{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'})},h),w=t?{inputId:C,TextFieldProps:I({label:t,InputLabelProps:{htmlFor:C,shrink:!(!e.value||!e.value.length)||void 0,className:R.label}},e.TextFieldProps)}:{};return i().createElement(b,x({isMulti:!0,inputId:C,inputValue:v,onChange:function(e,t){f(e,t),"create-option"===t.action&&(O(""),m("",{action:"input-change"}))},onInputChange:function(e,t){let{action:n}=t;m(e,{action:n}),"set-value"!==n&&O(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:R,components:D,styles:_,menuPlacement:E,loadOptions:l},w,g))}P.defaultProps={creatable:!1,cacheOptions:!0,components:{},classes:{},placeholder:"",loadingIndicator:!1,onInputChange:()=>{},onChange:()=>{}},P.propTypes={creatable:a().bool,cacheOptions:a().bool,defaultOptions:a().bool,value:a().arrayOf(a().shape({label:a().string.isRequired,value:a().any})),options:a().arrayOf(a().shape({label:a().string.isRequired,value:a().any})),onChange:a().func,onInputChange:a().func,placeholder:a().string,label:a().string,loadingIndicator:a().bool,components:a().shape({ClearIndicator:a().func,Control:a().func,DropdownIndicator:a().func,DownChevron:a().func,CrossIcon:a().func,Group:a().func,GroupHeading:a().func,IndicatorsContainer:a().func,IndicatorSeparator:a().func,Input:a().func,LoadingIndicator:a().func,Menu:a().func,MenuList:a().func,MenuPortal:a().func,LoadingMessage:a().func,NoOptionsMessage:a().func,MultiValue:a().func,MultiValueContainer:a().func,MultiValueLabel:a().func,MultiValueRemove:a().func,Option:a().func,Placeholder:a().func,SelectContainer:a().func,SingleValue:a().func,ValueContainer:a().func}),classes:a().shape({control:a().string,valueContainer:a().string,multiValue:a().string,noOptionsMessage:a().string,singleValue:a().string,placeholder:a().string,menu:a().string,clearIndicator:a().string,dropdownIndicator:a().string,option:a().string,"option--selected":a().string,label:a().string}),styles:a().shape({clearIndicator:a().func,container:a().func,control:a().func,dropdownIndicator:a().func,group:a().func,groupHeading:a().func,indicatorsContainer:a().func,indicatorSeparator:a().func,input:a().func,loadingIndicator:a().func,loadingMessage:a().func,menu:a().func,menuList:a().func,menuPortal:a().func,multiValue:a().func,multiValueLabel:a().func,multiValueRemove:a().func,noOptionsMessage:a().func,option:a().func,placeholder:a().func,singleValue:a().func,valueContainer:a().func}),TextFieldProps:a().object,getOptions:a().func,menuPlacement:a().string,menuPortalTarget:a().object,getOptionValue:a().func,isSearchable:a().bool};const C=P},28101:(e,t,n)=>{n.d(t,{G:()=>h});var r=n(24328),i=n.n(r),l=n(71153),a=n.n(l),o=n(39475),s=n(79692),c=n(41128);const u=(0,s.Z)((e=>({container:{display:"flex",flexDirection:"column",flexShrink:0,width:"64px",paddingTop:"8px",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)"},active:{backgroundColor:(0,c.U1)(e.palette.primary.main,.12),color:e.palette.primary.main,"&:after":{content:'""',position:"absolute",height:"42px",width:"3px",backgroundColor:e.palette.primary.main,left:"-8px",borderRadius:"0 6px 6px 0"}},buttonWrapper:{position:"relative",width:"48px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",margin:"2px 8px",color:e.palette.text.secondary}})));function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const h=e=>{let{buttonsProps:t,activeIndexId:n,className:r,onButtonClick:l,classes:s={}}=e;const c=u(),{active:h,buttonWrapper:f}=s,m=d(s,["active","buttonWrapper"]);return i().createElement("div",{className:a()(c.container,r)},t.map((e=>{let{id:t}=e,r=d(e,["id"]);return i().createElement(o.k,p({},r,{classes:m,size:"S",key:t,className:a()({[a()(c.active,h)]:n===t},c.buttonWrapper,f),onClick:()=>l(t),"data-reltio-id":`reltio-profile-right-side-button-${t}`}))})))}},15422:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),i=n.n(r),l=n(90436);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const o=e=>i().createElement("svg",a({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),i().createElement("mask",{id:"AttributesList_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},i().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),i().createElement("g",{mask:"url(#AttributesList_svg__a)"},i().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#AttributesList_svg__b)"}),i().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z",fill:"url(#AttributesList_svg__c)"}),i().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M47 58h202a7 7 0 017 7v157a7 7 0 01-7 7H47a7 7 0 01-7-7V65a7 7 0 017-7z",fill:"#000"}),i().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 56h201a5 5 0 015 5v157a5 5 0 01-5 5H50a5 5 0 01-5-5V61a5 5 0 015-5z",fill:"#fff"}),i().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 72.635a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 84.635a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),i().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 163a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 175a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),i().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 193a3 3 0 013-3H190a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 205a3 3 0 013-3h74.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),i().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 103a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 115a3 3 0 013-3h64.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),i().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),i().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),i().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),i().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),i().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),i().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),i().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 133a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 145a3 3 0 013-3h74.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M92.514 108v-8h-2v40.365h11.178v-2h-9.178V110h9.178v-2h-9.178z",fill:"#2B98F0"}),i().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),i().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M50 22h186a6 6 0 016 6v18a6 6 0 01-6 6H50a6 6 0 01-6-6V28a6 6 0 016-6z",fill:"#fff"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zm90 0a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z",fill:"#979797"})),i().createElement("defs",null,i().createElement("linearGradient",{id:"AttributesList_svg__b",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},i().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),i().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),i().createElement("linearGradient",{id:"AttributesList_svg__c",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},i().createElement("stop",{stopOpacity:.01}),i().createElement("stop",{offset:1})))),s=(0,n(79692).Z)((e=>({root:{display:"flex",flex:"1 1 auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"auto",height:"100%",minHeight:"350px",boxSizing:"border-box",padding:"40px"},logo:{width:"190px",height:"190px"},textBox:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:400,marginTop:"24px"},text:{color:e.palette.text.primary,fontSize:"20px",fontWeight:500,lineHeight:"23px",textAlign:"center"},secondaryText:{color:e.palette.text.primary,fontSize:"14px",fontWeight:"normal",lineHeight:"16px",letterSpacing:"0.24px",textAlign:"center",paddingTop:"8px"}}))),c=e=>{let{IconRenderer:t=o,text:n,secondaryText:r}=e;const a=s();return i().createElement("div",{className:a.root},i().createElement(t,{className:a.logo}),i().createElement("div",{className:a.textBox},i().createElement(l.Z,{className:a.text},n),r&&i().createElement(l.Z,{className:a.secondaryText},r)))}},79935:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(24328),i=n.n(r);const l=()=>i().createElement("div",{style:{flex:1}})},15791:(e,t,n)=>{n.d(t,{Z:()=>T});var r=n(24328),i=n.n(r),l=n(52730),a=n(87918),o=n.n(a),s=n(17440),c=n(71153),u=n.n(c),p=n(90436),d=n(15793),h=n(59952),f=n(22241),m=n(35674),E=n(79692);function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){b(e,t,n[t])}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y={input:e=>g({},e,{fontSize:"14px"}),loadingMessage:e=>g({},e,{fontSize:"14px"}),menuPortal:e=>g({},e,{zIndex:1300})},v=(0,E.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"}}),T=e=>{let{selectedUsers:t,onChange:n,className:a,disableUnderline:c}=e;const E=v(),g=e=>({value:e,label:e}),b=e=>e.map(g),T=(0,l.useSelector)(m.ZP.selectors.getTenant),x=(0,l.useSelector)(m.ZP.selectors.getServicesPath),I=(0,r.useRef)();return i().createElement("div",{className:u()(E.root,a)},i().createElement(p.Z,{className:E.title,variant:"subtitle1"},o().text("User")),i().createElement(d.Z,{value:b(t),onChange:(0,s.pipe)((0,s.defaultTo)([]),(0,s.pluck)("value"),n),defaultOptions:!0,getOptions:e=>(I.current||(I.current=(0,f.kz_)({tenant:T,servicesPath:x})),I.current.then((0,s.pipe)((0,s.prop)("array"),(0,s.pluck)("username"),(e=>t=>e?t.filter((t=>f.P6Y.strings.search(t,e))):t)(e),b))),TextFieldProps:{InputProps:{disableUnderline:c},className:E.dropDownInput},components:{DropdownIndicator:h.Z},styles:y,classes:E,menuPortalTarget:document.body}))}},20414:(e,t,n)=>{let r;n.d(t,{I:()=>r}),function(e){e.MODEL_UPDATED="MODEL_UPDATED",e.ENTITY_REMOVED="ENTITY_REMOVED",e.ENTITY_CREATED="ENTITY_CREATED",e.ENTITY_CHANGED="ENTITY_CHANGED",e.ENTITIES_MERGED="ENTITIES_MERGED",e.ENTITIES_SPLITTED="ENTITIES_SPLITTED",e.ENTITY_LOST_MERGE="ENTITY_LOST_MERGE",e.RELATIONSHIP_CREATED="RELATIONSHIP_CREATED",e.RELATIONSHIP_REMOVED="RELATIONSHIP_REMOVED",e.RELATIONSHIP_CHANGED="RELATIONSHIP_CHANGED",e.POTENTIAL_MATCHES_FOUND="POTENTIAL_MATCHES_FOUND",e.NOT_MATCHES_SET="NOT_MATCHES_SET",e.NOT_MATCHES_RESET="NOT_MATCHES_RESET",e.PERIODIC_TASK_SCHEDULED="PERIODIC_TASK_SCHEDULED",e.ENTITIES_MERGED_MANUALLY="ENTITIES_MERGED_MANUALLY",e.POTENTIAL_MATCHES_REMOVED="POTENTIAL_MATCHES_REMOVED",e.ENTITIES_MERGED_ON_THE_FLY="ENTITIES_MERGED_ON_THE_FLY",e.USER_LOGIN="USER_LOGIN",e.USER_LOGOUT="USER_LOGOUT",e.USER_SEARCH="USER_SEARCH",e.USER_PROFILE_VIEW="USER_PROFILE_VIEW",e.COMMENT_ADDED="COMMENT_ADDED",e.COMMENT_UPDATED="COMMENT_UPDATED",e.COMMENT_DELETED="COMMENT_DELETED",e.ANALYTICS_ATTRIBUTES_CHANGED="ANALYTICS_ATTRIBUTES_CHANGED",e.GROUP_CREATED="GROUP_CREATED",e.GROUP_REMOVED="GROUP_REMOVED",e.GROUP_CHANGED="GROUP_CHANGED"}(r||(r={}))},57312:(e,t,n)=>{n.d(t,{te:()=>c,VV:()=>u,rx:()=>p,_V:()=>d,Xr:()=>h});var r=n(17440),i=n(87918),l=n.n(i),a=n(20414);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=(0,r.path)(["data","type"]),c=e=>{const{items:t,label:n}=e,[r]=t||[];return s(r)||n},u=(0,r.pipe)(c,(e=>(0,r.pipe)(r.values,(0,r.includes)(e))(a.I))),p=e=>(0,r.pipe)((0,r.propOr)([],"items"),(0,r.groupBy)(s),r.values,(0,r.ifElse)((e=>{let{length:t}=e;return t>1}),(0,r.map)((t=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}({},e,{items:t,itemsTotal:t.length}))),(()=>[e])))(e),d=e=>(0,r.isNil)(e)?"":"string"==typeof e?e:Array.isArray(e)?e.map(d).join(", "):(0,r.is)(Object,e)?d("value"in e?e.value:Object.values(e)):e.toString(),h=e=>({[a.I.COMMENT_ADDED]:l().text("Comment added"),[a.I.COMMENT_DELETED]:l().text("Comment deleted"),[a.I.COMMENT_UPDATED]:l().text("Comment updated"),[a.I.ENTITIES_MERGED]:l().text("Profile merged"),[a.I.ENTITIES_MERGED_MANUALLY]:l().text("Profile merged manually"),[a.I.ENTITIES_MERGED_ON_THE_FLY]:l().text("Profile merged on the fly"),[a.I.ENTITIES_SPLITTED]:l().text("Profile un-merged"),[a.I.ENTITY_CHANGED]:l().text("Profile updated"),[a.I.ENTITY_CREATED]:l().text("Profile created"),[a.I.ENTITY_LOST_MERGE]:l().text("Profile lost merge"),[a.I.ENTITY_REMOVED]:l().text("Profile removed"),[a.I.GROUP_CHANGED]:l().text("Group updated"),[a.I.GROUP_CREATED]:l().text("Group created"),[a.I.GROUP_REMOVED]:l().text("Group removed"),[a.I.MODEL_UPDATED]:l().text("Model was updated"),[a.I.NOT_MATCHES_RESET]:l().text("Not matches reset"),[a.I.NOT_MATCHES_SET]:l().text("Not matches set"),[a.I.PERIODIC_TASK_SCHEDULED]:l().text("Periodic task was scheduled"),[a.I.POTENTIAL_MATCHES_FOUND]:l().text("Potential matches found"),[a.I.POTENTIAL_MATCHES_REMOVED]:l().text("Potential matches removed"),[a.I.RELATIONSHIP_CHANGED]:l().text("Relationship updated"),[a.I.RELATIONSHIP_CREATED]:l().text("Relationship created"),[a.I.RELATIONSHIP_REMOVED]:l().text("Relationship removed"),[a.I.USER_LOGIN]:l().text("Logged in"),[a.I.USER_LOGOUT]:l().text("Logged out"),[a.I.USER_PROFILE_VIEW]:l().text("Profile viewed"),[a.I.USER_SEARCH]:l().text("Searched"),[a.I.ANALYTICS_ATTRIBUTES_CHANGED]:l().text("Analytics attribute changed")}[e]||"")},27446:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),i=n.n(r),l=n(95038),a=n.n(l),o=n(87918),s=n.n(o),c=n(17440),u=n(22241),p=n(86619),d=n(48348),h=n(59952),f=n(52346);const m=(0,n(79692).Z)({root:{flex:1},dropdownIndicator:{transition:"transform .15s ease"},inputRoot:{fontSize:"14px",height:46},input:{padding:"0 12px 0"},dateOptionLabel:{minWidth:"100px"},paper:{minWidth:"112px"}}),E=a().localeData().longDateFormat("L"),g=e=>{let{values:t,onChange:n,onFocus:l}=e;const a=E,o=(0,r.useRef)(null),[g,b]=(0,r.useState)(!1),y=m(),v=(0,r.useCallback)((()=>{b((e=>!e)),l()}),[l]),T=()=>{b(!1)};return i().createElement("div",{className:y.root},i().createElement(p.Z,{fullWidth:!0,value:t.map((e=>((e,t)=>(0,c.isNil)(e)?`${t}`:`${(0,u.mB6)({dataTypeDefinition:{type:u.oS0.TYPE_ACTIVENESS_DATE}},e)}`)(e,a))).join(" — "),onClick:v,variant:"filled",ref:o,InputProps:{endAdornment:i().createElement(h.Z,{selectProps:{classes:y,menuIsOpen:g},innerProps:{}}),disableUnderline:(0,c.isNil)(t),readOnly:!0,classes:{root:y.inputRoot,input:y.input}},InputLabelProps:{shrink:!1},placeholder:s().text(`${a} — ${a}`)}),i().createElement(d.Z,{variant:"menu",open:g,autoFocus:!1,classes:{paper:y.paper},anchorEl:o.current,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:g,style:{width:"100%"}}},i().createElement(f.Z,{values:t,onCancel:T,onApply:e=>{n(e),b(!1)},type:u.oS0.TYPE_ACTIVENESS_DATE})))}},70675:(e,t,n)=>{n.d(t,{Z:()=>ne});var r=n(24328),i=n.n(r),l=n(87918),a=n.n(l),o=n(85256),s=n(90436),c=n(17440),u=n(79935),p=n(36444),d=n(77277),h=n(79784),f=n(40435),m=n(37696),E=n(15791),g=n(55234),b=n(71153),y=n.n(b),v=n(90590),T=n(39034);const x=[T.K.WITHIN,T.K.AGO,T.K.BETWEEN],I=e=>({[T.K.WITHIN]:a().text("Within the last"),[T.K.AGO]:a().text("More than"),[T.K.BETWEEN]:a().text("Date range")}[e]||"");var O=n(77875),S=n(55962),N=n(27446),P=n(79692);const C=(0,P.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},intervalContainer:{display:"flex",justifyContent:"space-between"},typeInput:{width:160,marginRight:10}}),D=[null,null],R=[null,"hours"],_=e=>{let{value:t,onChange:n,className:l}=e;const o=C(),c=e=>e===T.K.WITHIN||e===T.K.AGO,u=e=>e===T.K.BETWEEN,p=u(null==t?void 0:t.type)?t.period:D,d=c(null==t?void 0:t.type)?t.period:R,[h,f]=(0,r.useState)(p),[m,E]=(0,r.useState)(d),g=(null==t?void 0:t.type)||T.K.WITHIN,b=e=>c(e)?m:u(e)?h:void 0,P=e=>{n({type:g,period:e})};return(0,S.D)((()=>{t?c(t.type)?E(t.period):u(t.type)&&f(t.period):(f(D),E(R))}),[t]),i().createElement("div",{className:y()(o.root,l)},i().createElement(s.Z,{className:o.title,variant:"subtitle1"},a().text("Date")),i().createElement("div",{className:o.intervalContainer},i().createElement(v.Z,{label:"",className:o.typeInput,value:{value:g,label:I(g)},options:x.map((e=>({value:e,label:I(e)}))),onChange:e=>{let{value:r}=e;(null==t?void 0:t.type)!==r&&n({period:b(r),type:r})}}),c(g)?i().createElement(O.Z,{interval:m,onChange:P}):i().createElement(N.Z,{values:h,onChange:P})))};var w=n(15793),M=n(59952),A=n(38323);const k=[A.M.UPDATE,A.M.MERGE,A.M.UNMERGE];function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Z(e,t,n[t])}))}return e}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const j={input:e=>L({},e,{fontSize:"14px"}),menuPortal:e=>L({},e,{zIndex:1300})},H=(0,P.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},valueContainer:{overflowY:"auto",height:44},option:{fontSize:"14px",height:"32px"}}),G=e=>{let{selectedHistoryActivityTypes:t,onChange:n,className:r}=e;const l=H(),o=e=>{return{value:e,label:(t=e,{[A.M.UPDATE]:a().text("Update"),[A.M.MERGE]:a().text("Merge"),[A.M.UNMERGE]:a().text("Unmerge")}[t]||"")};var t},u=e=>e.map(o),p=u(k);return i().createElement("div",{className:y()(l.root,r)},i().createElement(s.Z,{className:l.title,variant:"subtitle1"},a().text("Activity")),i().createElement(w.Z,{value:u(t),onChange:(0,c.pipe)((0,c.defaultTo)([]),(0,c.pluck)("value"),n),options:p,TextFieldProps:{classes:{root:l.dropDownInput}},components:{DropdownIndicator:M.Z},styles:j,classes:l,menuPlacement:"bottom",menuPortalTarget:document.body}))},U=(0,P.Z)({popup:{width:500,height:500,overflowY:"hidden",display:"flex",flexDirection:"column"},filterContainer:{padding:20,height:410,display:"flex",flexDirection:"column"},filterContainerScrollable:{overflowY:"auto"},filterItem:{marginTop:15},filterControls:{display:"flex",padding:"10px 12px 0",borderTop:"solid 1px rgba(0, 0, 0, 0.12)"},clearButton:{marginRight:"auto"},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px"}});function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const z=e=>{let{className:t,filter:n,onApplyFilter:l,onClearFilter:o,entityType:u}=e;const b=U(),[y,v]=(0,r.useState)(null),T=()=>v(null),[x,I]=(0,r.useState)(n);(0,r.useEffect)((()=>{I(n)}),[n]);const O=(0,c.curry)(((e,t)=>{I((n=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){F(e,t,n[t])}))}return e}({},n,{[e]:t})))})),{activities:S=[],attributes:N=[],dateRange:P=null,users:C=[]}=x||{};return i().createElement(i().Fragment,null,i().createElement(f.Z,{icon:p.Z,size:"L",onClick:e=>v(e.currentTarget),className:t}),i().createElement(h.ZP,{classes:{paper:b.popup},open:!!y,anchorEl:y,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},i().createElement("div",{className:b.filterContainer},i().createElement(s.Z,{variant:"h6"},a().text("Filter")),i().createElement("div",{className:b.filterContainerScrollable},i().createElement(_,{value:P,onChange:O("dateRange"),className:b.filterItem}),i().createElement(E.Z,{selectedUsers:C,onChange:O("users"),className:b.filterItem}),i().createElement(G,{selectedHistoryActivityTypes:S,onChange:O("activities"),className:b.filterItem}),i().createElement(g.Z,{selectedAttributes:N,entityType:u,onChange:O("attributes"),className:b.filterItem,title:a().text("Attribute updated")}))),i().createElement("div",{className:b.filterControls},i().createElement(d.Z,{onClick:o,className:b.clearButton},a().text("Clear all")),i().createElement(d.Z,{onClick:T},a().text("Cancel")),i().createElement(d.Z,{color:"primary",onClick:()=>{P&&(0,m.R)(P)?l(x):l((0,c.dissoc)("dateRange",x)),T()}},a().text("Apply")))))};var B=n(52730),V=n(43054),W=n(35674),Y=n(98538),$=n(12231),q=n(98281),K=n(79573);const X=(0,P.Z)({menuItem:{minHeight:"32px"},menuText:{fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"30px"},checkIcon:{position:"absolute",color:"rgba(0, 0, 0, 0.54)"}}),Q=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=K.ZT}=e;const l=X(),{text:a,selected:o,onClick:c}=n;return i().createElement($.Z,{classes:{root:l.menuItem},onClick:e=>{r(),c(e)},ref:t},o&&i().createElement(q.Z,{className:l.checkIcon}),i().createElement(s.Z,{classes:{root:l.menuText}},a))}));Q.displayName="MenuItemRenderer";const J=Q,ee=()=>{const e=(0,B.useSelector)(W.ZP.selectors.getHistoryMode),t=(0,B.useDispatch)(),n=e=>{t(W.N5.history.actions.setHistoryMode(e))},r=[{text:a().text("Compare to Current view"),selected:e===W.Z9.Current,onClick:()=>n(W.Z9.Current)},{text:a().text("Compare to Previous view"),selected:e===W.Z9.Previous,onClick:()=>n(W.Z9.Previous)}];return i().createElement(Y.Z,{MenuItemRenderer:J,buttonComponent:f.Z,buttonProps:{icon:V.Z,size:"L"},menuId:"history-menu",menuItems:r})},te=(0,P.Z)({root:{display:"flex",flex:1,alignItems:"center"},icon:{margin:4},divider:{backgroundColor:"rgba(0,0,0,0.12)",margin:"3px 19px"},count:{fontSize:14},filterButton:{marginRight:"-4px"}}),ne=e=>{let{total:t,entityType:n,filter:r,onApplyFilter:l,onClearFilter:p}=e;const d=te();return i().createElement("div",{className:d.root},i().createElement(s.Z,{variant:"h6"},a().text("History")),!(0,c.isNil)(t)&&i().createElement(i().Fragment,null,i().createElement(o.Z,{orientation:"vertical",flexItem:!0,className:d.divider}),i().createElement(s.Z,{variant:"body1",color:"textSecondary",className:d.count},1===t?a().text("${count} contributing profile",{count:t}):a().text("${count} contributing profiles",{count:t}))),i().createElement(u.Z,null),i().createElement(z,{className:d.filterButton,entityType:n,filter:r,onApplyFilter:l,onClearFilter:p}),i().createElement(ee,null))}},95085:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),i=n.n(r),l=n(87918),a=n.n(l),o=n(15422);const s=()=>i().createElement(o.Z,{text:a().text("History in the making"),secondaryText:a().text("When you create an event or perform an activity, it will show up here.")})},32158:(e,t,n)=>{n.d(t,{Z:()=>H});var r=n(24328),i=n.n(r),l=n(52730),a=n(44443),o=n(87918),s=n.n(o),c=n(17440),u=n(71153),p=n.n(u),d=n(22241),h=n(35674),f=n(77277),m=n(90436),E=n(57312),g=n(79692);const b=(0,g.Z)((()=>({historyRow:{position:"relative",padding:"8px 12px 16px",cursor:"pointer"},selected:{background:"rgba(0,0,0,0.05)","&:before":{content:'""',background:"rgba(0,0,0,0.05)",width:"100%",height:"100%",position:"absolute",left:"-100%",top:0}},rowHeader:{display:"flex",position:"relative"},badge:e=>{let{color:t}=e;return{position:"absolute",width:"2px",height:"100%",left:"-9px",pointerEvents:"none",background:t,"&:before":{height:"100%",width:"3px",content:'""',left:"-3px",background:t,position:"absolute",opacity:.06}}},title:{color:"rgba(0,0,0,0.87)",fontSize:"13px",letterSpacing:0,lineHeight:"16px",fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","&.bold":{fontWeight:500}},date:{marginLeft:"auto",color:"rgba(0,0,0,0.54)",fontSize:"11px",letterSpacing:0,lineHeight:"16px"},user:{color:"rgba(0,0,0,0.38)",fontSize:"12px",letterSpacing:0,lineHeight:"14px"}}))),y=e=>{let{change:t,isCurrent:n,isSelected:r,onClick:l}=e;const{uri:a,type:o,matchGroups:c,user:u,timestamp:h}=t,f=(0,d.GtP)(a),g=b({color:f});return i().createElement("div",{className:p()(g.historyRow,{[g.selected]:r}),onClick:l},i().createElement("div",{className:g.rowHeader},i().createElement("div",{className:g.badge}),i().createElement(m.Z,{className:p()(g.title,{bold:n})},n?s().text("Current view"):(0,E.Xr)(o)),!n&&i().createElement(m.Z,{className:g.date},s().date(h,"L LT"))),c&&i().createElement(m.Z,{className:g.title},s().text("Match rule:")," ",c.join(", ")),i().createElement(m.Z,{className:g.user},u))};var v=n(21256);const T=e=>e===v.b.FAKE_FILTERED_INCOMING||e===v.b.FAKE_FILTERED_OUTGOING,x=e=>{let{x:t,y:n,toX:r,toY:l,color:a,isDashed:o}=e;const s=((e,t,n,r)=>{const i=t>r,l=e<n,a=i?-6:6;return`M${e} ${t} L${l?n-12:n+12} ${t} ${l?`c 6 0 12 ${a} 12`:`c -6 0 -12 ${a} -12`} ${i?-12:12} L${n} ${r}`})(t,n,r,l);return i().createElement("path",{d:s,stroke:a,strokeWidth:2,fill:"none",strokeDasharray:o?"3,3":void 0})};function I(){return I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(this,arguments)}const O=(0,r.forwardRef)(((e,t)=>{let{x:n,y:r,color:l,isDashed:a,isCollapsed:o,showCollapseIcon:s,showLine:c}=e,u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["x","y","color","isDashed","isCollapsed","showCollapseIcon","showLine"]);const p=s?6:3;return i().createElement("g",I({},u,{ref:t}),c&&i().createElement("rect",{id:"line",x:n-p-4,y:r-p-4,width:2*p+8,height:2,fill:l}),i().createElement("circle",{cx:n,cy:r,r:p,fill:a?"#fff":l,stroke:l,strokeDasharray:a?"1,1":void 0,strokeWidth:2}),s&&i().createElement("g",{id:"icon"},i().createElement("rect",{x:n-4,y:r-1,width:8,height:2,fill:"#fff"}),o&&i().createElement("rect",{x:n-1,y:r-4,width:2,height:8,fill:"#fff"})))}));const S=(0,n(78223).Z)(O),N=(0,r.memo)((e=>{let{graphData:t,onHistoryCircleMouseOver:n}=e;const{historyLanes:r,rows:l}=t,a=[16],{links:o,rowLines:s,circles:c}=l.reduce(((e,t,o)=>{let{uri:s,height:c,uris:u,type:p,fakeType:h,index:f,timestamp:m,label:E}=t;const g=16*r[s].index+24,b=a[o];a.push(b+c);const y=T(h),I=y?u[0]:s,O=!(null!=u&&u.some((e=>r[e])));e.circles.push(i().createElement(S,{tooltipTitle:E,tooltipPlacement:"top",onMouseOver:n?()=>n(s,m,f):void 0,key:`circle-${I}-${o}`,x:g,y:b,color:(0,d.GtP)(I),isDashed:y,isCollapsed:O,showCollapseIcon:!!u,showLine:h===v.b.FAKE_NAVIGATE_PROFILE})),e.rowLines.push(i().createElement("rect",{key:`${I}-${f}`,x:g,y:b-8,width:"100%",height:16,fill:(0,d.GtP)(I),opacity:.06}));const N=p===v.b.ENTITIES_SPLITTED;return null==u||u.forEach((t=>{const n=r[t];if(!n)return;const a=l[o].height,s=16*n.index+24,c=N?b-a:b+a;g!==s&&e.links.push(i().createElement(x,{key:`link-${t}-${f}`,x:g,y:b,toX:s,toY:c,isDashed:T(h),color:(0,d.GtP)(t)}))})),e}),{links:[],circles:[],rowLines:[]}),u=16*Object.keys(r).length+24,p=a[a.length-1]-16;return Object.entries(r).forEach((e=>{let[t,n]=e;const r=16*n.index+24;n.lifeTime.forEach(((e,s)=>{var u;let{start:p,end:h}=e;if((null===(u=l[null==h?void 0:h.index])||void 0===u?void 0:u.type)===v.b.ENTITIES_SPLITTED)return;const f=(null==p?void 0:p.type)===v.b.ENTITIES_SPLITTED?(null==p?void 0:p.index)-1:null==p?void 0:p.index,m=(null==h?void 0:h.type)===v.b.ENTITIES_MERGED_MANUALLY||(null==h?void 0:h.type)===v.b.ENTITIES_MERGED?(null==h?void 0:h.index)+1:null==h?void 0:h.index,E=a[f]||a[a.length-2],g=a[m]||16;if(E<=g)return;const b=(0,d.GtP)(t);!h&&n.index>0&&c.push(i().createElement(O,{key:`initCircle-${t}-${s}`,x:r,y:g,color:b,showLine:!0})),o.unshift(i().createElement("path",{key:`line-${t}-${s}`,d:`M${r} ${E} L${r} ${g}`,stroke:b,strokeWidth:2}))}))})),i().createElement("svg",{className:"chart",width:u,height:p},i().createElement("g",{id:"rowLines"},s),i().createElement("g",{id:"links"},o),i().createElement("g",{id:"circles"},c))}));var P=n(87378);const C=(0,g.Z)({historyTree:{display:"grid",gridTemplateColumns:"auto 1fr",overflowY:"auto"},graph:{overflowX:"scroll",overflowY:"hidden"},history:{minWidth:344},buttonContainer:{gridColumnStart:1,gridColumnEnd:3,padding:"8px 16px"},shadow:{boxShadow:"inset -8px 0px 5px -5px rgba(0,0,0,0.1)"}});function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){R(e,t,n[t])}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _=e=>{let{historyData:t,isLoading:n,canLoadMore:o,onLoadMore:u,entityUri:m,historyEvent:E,findPreviousChange:g}=e;const b=C(),v=(0,l.useDispatch)(),T=(0,l.useSelector)(h.ZP.selectors.getIsEditableMode),x=(0,l.useSelector)(h.ZP.selectors.getMetadata),[I,O]=(0,r.useState)({historyLanes:{},rows:[]}),[S,R]=(0,r.useState)(!1),[_,w]=(0,r.useState)(-1);(0,r.useEffect)((()=>{if((0,c.isNil)(E))return void w(0);const e=e=>(null==e?void 0:e.uri)===((null==E?void 0:E.overrideUri)||m)&&(null==e?void 0:e.timestamp)===(null==E?void 0:E.aStamp),n=-1!==_?t.rows[_]:null,r=t.rows.findIndex((t=>e(t)));w(e(n)?_:r)}),[t.rows,E]);const M=(0,r.useRef)(null),A=(0,r.useCallback)((e=>{if(!(0,c.isNil)(e)){var n;const r=null===(n=t.rows)||void 0===n?void 0:n.map(((t,n)=>{var r;return D({},t,{height:null===(r=e.childNodes[n])||void 0===r?void 0:r.clientHeight})}));O({historyLanes:t.historyLanes,rows:r})}}),[t]),k=()=>{const{scrollWidth:e,clientWidth:t,scrollLeft:n}=(null==M?void 0:M.current)||{};R(n<e-t)};return i().createElement("div",{className:b.historyTree},n&&i().createElement(P.Z,null),i().createElement("div",{className:p()(b.graph,{[b.shadow]:S}),onScroll:k,ref:M},i().createElement(N,{onHistoryCircleMouseOver:(e,t,n)=>{if((0,c.isNil)(I.rows[n].label)){const r={time:t,select:"crosswalks"};(0,d.HvW)(e,r).then((e=>{let{crosswalks:t}=e;const r=t?(0,c.uniqBy)((0,c.prop)("type"),t).map((e=>{const t=(0,d.s5)(x,e.type);return t?t.label:null})).filter(c.identity).join(", "):s().text("No data");O((e=>D({},e,{rows:e.rows.map((e=>e.index===n?D({},e,{label:r}):e))})))}))}},graphData:I}),i().createElement(a.Z,{handleWidth:!0,onResize:k})),i().createElement("div",{ref:A,className:b.history},t.rows.map(((e,t)=>{const n=t===_,r=0===t;return i().createElement(y,{key:`row-${t}`,change:e,isCurrent:r,isSelected:n,onClick:()=>((e,t,n,r)=>{if(T){if(!window.confirm(s().text("Are you sure you want to go in history mode? All your changes will be lost.")))return;v(h.N5.mode.actions.modeUpdated(d.ARY.Viewing))}if(r&&!n||!r&&n)v(h.N5.history.actions.clearHistoryEvent()),w(0);else if(!r&&!n){const n=g(e-1,t.uri||m),r=g(e,t.uri||m),i=null==n?void 0:n.timestamp,l=null==r?void 0:r.timestamp,a=(null==t?void 0:t.uri)===m?null:null==t?void 0:t.uri;v(h.N5.history.actions.setHistoryEvent({aStamp:i,bStamp:l,overrideUri:a})),w(e)}})(t,e,n,r)})}))),o&&i().createElement("div",{className:b.buttonContainer},i().createElement(f.Z,{color:"primary",onClick:()=>u()},s().text("Show more"))))},w=(0,g.Z)({root:{display:"flex",flexWrap:"wrap",padding:"10px 15px"}}),M=(0,g.Z)({icon:e=>{let{color:t}=e;return{boxSizing:"border-box",borderWidth:2,borderStyle:"solid",borderColor:t,height:12,width:12,borderRadius:30,transition:"opacity 0.3s",margin:4}},active:e=>{let{color:t}=e;return{backgroundColor:t}},inactive:{backgroundColor:"white"},clickable:{cursor:"pointer"}}),A=e=>{let{value:t,isSelected:n=!0,onClick:r}=e;const l=(0,d.GtP)(t),a=M({color:l});return i().createElement("div",{className:p()(a.icon,{[a.inactive]:!n,[a.active]:n,[a.clickable]:!!r}),onClick:r})},k=e=>{let{values:t,selectedValues:n,entityUri:r,onSelectValues:l,className:a}=e;const o=w();return i().createElement("div",{className:p()(o.root,a)},i().createElement(A,{value:r}),(null==t?void 0:t.length)>0&&t.map((e=>i().createElement(A,{key:e,value:e,isSelected:null==n?void 0:n.includes(e),onClick:()=>(e=>{null!=n&&n.includes(e)?l((0,c.without)([e],n)):l([...n||[],e])})(e)}))))};function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Z=(e,t)=>e.reduce(((e,n,r)=>{let{start:i,end:l}=n;if(i){const n=t-i.timestamp;((0,c.isNil)(e.startDistance)||Math.abs(e.startDistance)>Math.abs(n)&&n>0)&&(e.startIndex=r,e.startDistance=n)}if(l){const n=t-l.timestamp;((0,c.isNil)(e.endDistance)||Math.abs(e.endDistance)>Math.abs(n)&&n<0)&&(e.endIndex=r,e.endDistance=n)}return e}),{startIndex:null,endIndex:null,startDistance:null,endDistance:null}),j=(0,g.Z)({root:{display:"flex",flexDirection:"column",overflow:"hidden",position:"relative",height:"100%"},borderBottom:{borderBottom:"1px solid rgba(0, 0, 0, 0.12)"}}),H=(0,r.memo)((e=>{let{isLoading:t,historyWithTotal:n,contributorsUris:l,entityUri:a,canLoadMore:o,onLoadMore:s,historyEvent:u}=e;const p=j(),[d,h]=(0,r.useState)(null);(0,r.useEffect)((()=>{h(l)}),[l]);const{historyData:f,findPreviousChange:m}=(e=>{let{entityUri:t,historyChanges:n,selectedUris:i}=e;return(0,r.useMemo)((()=>{const e={[t]:{index:0,lifeTime:[]}},r=[{user:"",timestamp:0,uri:t}],l=(0,c.curry)(((e,n,r)=>{const i=r.uri||t;if(e)if(Array.isArray(e)){if(r.type!==v.b.ENTITY_LOST_MERGE)return null;if(e.includes(i))return r;if(n&&r.uris)return e.some((e=>r.uris.includes(e)))?r:null}else{var l;if(i===e||n&&null!==(l=r.uris)&&void 0!==l&&l.includes(e))return r}return null})),a=(e,t,r)=>(0,c.pipe)((0,c.drop)(e+1),(0,c.find)(l(t,r)))(n),o=t=>(e[t]||i&&!i.includes(t)||(e[t]={index:Object.keys(e).length,lifeTime:[]}),e[t]),s=(e,t)=>{const n=e[e.length-1];!n||n.start&&(n.start.type!==v.b.ENTITY_CREATED||t.type!==v.b.ENTITIES_SPLITTED)?e.push({start:t,end:null}):n.start=t},u=(e,t)=>{let n=!0;if(e.length){const r=e[e.length-1];n=!((!r.start||r.start.timestamp<t.timestamp)&&(!r.end||r.end.timestamp>t.timestamp))}n&&e.push({start:null,end:null})},p=(e,t)=>{if(e.length){const n=e[e.length-1];n.start||(n.start=t)}e.push({start:null,end:t})},d=[];return null==n||n.forEach(((n,i)=>{var l;switch(n.type){case v.b.ENTITIES_SPLITTED:if(!a(i,n.uri||t,!1))return;{const e=n.uri,t=n.uris?[n.uris,e]:[e],r=a(i,t,!0);if(r&&(!e||e===r.uri))return}break;case v.b.ENTITY_LOST_MERGE:case v.b.RELATIONSHIP_CREATED:case v.b.RELATIONSHIP_REMOVED:case v.b.RELATIONSHIP_CHANGED:return}let c=!1;null===(l=n.uris)||void 0===l||l.forEach((e=>{o(e)||(c=!0)}));const h=o(n.uri||t);if(!h)return;const f=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){L(e,t,n[t])}))}return e}({},n);((t,n)=>{var i,l;switch(n.type){case v.b.ENTITY_CREATED:s(t,n);break;case v.b.ENTITIES_MERGED_ON_THE_FLY:case v.b.ENTITY_CHANGED:u(t,n);break;case v.b.ENTITY_LOST_MERGE:case v.b.ENTITY_REMOVED:p(t,n);break;case v.b.ENTITIES_SPLITTED:u(t,n),null===(i=n.uris)||void 0===i||i.forEach((t=>{const i=e[t];if(!i)return;const l=i.lifeTime.length;l?s(i.lifeTime,n):p(i.lifeTime,n),r.push({uri:t,user:n.user,type:n.type,fakeType:l?v.b.FAKE_UPDATE:v.b.FAKE_NAVIGATE_PROFILE,timestamp:n.timestamp})}));break;case v.b.ENTITIES_MERGED:case v.b.ENTITIES_MERGED_MANUALLY:u(t,n),null===(l=n.uris)||void 0===l||l.forEach((t=>{const r=e[t];r&&p(r.lifeTime,n)}))}})(h.lifeTime,f),c&&d.push(f),r.push(f)})),d.forEach((t=>{t.uris.forEach((i=>{e[i]||n.forEach((n=>{let{uri:l,uris:a,timestamp:o,user:s,type:u}=n;l===i&&(null==a||a.forEach((n=>{const i=e[n];if(!i)return;let l=null;switch(u){case v.b.ENTITIES_MERGED:case v.b.ENTITIES_MERGED_MANUALLY:l=v.b.FAKE_FILTERED_INCOMING;break;case v.b.ENTITIES_SPLITTED:l=v.b.FAKE_FILTERED_OUTGOING;break;default:return}const a={fakeType:l,uri:t.uri,uris:[n],type:u,user:s,timestamp:o},p=Z(i.lifeTime,t.timestamp);l===v.b.FAKE_FILTERED_INCOMING?(0,c.isNil)(p.endIndex)||(i.lifeTime[p.endIndex].end=a):(0,c.isNil)(p.startIndex)||(i.lifeTime[p.startIndex].start=a),r.splice(r.indexOf(t),0,a)})))}))}))})),r.forEach(((e,n)=>{e.index=n,e.uri=e.uri||t})),{historyData:{historyLanes:e,rows:r},findPreviousChange:(e,t)=>(0,c.pipe)((0,c.slice)(e+1,1/0),(0,c.find)(l(t,!1)))(r)}}),[t,n,i])})({entityUri:a,historyChanges:null==n?void 0:n.changes,selectedUris:d});return i().createElement("div",{className:p.root},i().createElement(k,{values:l,selectedValues:d,onSelectValues:h,entityUri:a,className:p.borderBottom}),i().createElement(_,{historyData:f,isLoading:t,onLoadMore:s,canLoadMore:o,entityUri:a,historyEvent:u,findPreviousChange:m}))}))},75647:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),i=n.n(r),l=n(52730),a=n(35674),o=n(77277),s=n(90436),c=n(17440),u=n(87918),p=n.n(u);const d=(0,n(79692).Z)({root:{display:"flex",alignItems:"flex-start"},slice:{fontWeight:500},cancelButton:{width:"88px",flexShrink:0,marginLeft:"15px"}}),h=()=>{const e=d(),t=(0,l.useSelector)(a.ZP.selectors.getHistoryEvent),n=(0,l.useDispatch)(),r=(0,c.pipe)(a.N5.history.actions.clearHistoryEvent,n);return t?i().createElement("div",{className:e.root},i().createElement(s.Z,{component:"div"},p().text("You are viewing a historic slice:")," ",i().createElement("span",{className:e.slice},p().date(t.aStamp,"llll"))),i().createElement(o.Z,{className:e.cancelButton,variant:"contained",color:"primary",onClick:r},p().text("Cancel"))):null}},85457:(e,t,n)=>{n.d(t,{k:()=>p});var r=n(24328),i=n(22241),l=n(38323),a=n(37696),o=n(29627);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={activities:[l.M.MERGE,l.M.UNMERGE,l.M.UPDATE]},p=e=>{let{entity:t,enabled:n}=e;const[l,c]=(0,r.useState)(u),[p,d]=(0,r.useState)(0),h=(0,r.useMemo)((()=>(0,a.Z)(l)),[l]),[f,m]=(0,r.useState)(null),[E,g]=(0,r.useState)(null),[b,y]=(0,r.useState)(!1),v=(0,o._)(),T=null==t?void 0:t.uri,x={max:32,order:"desc"},I=(0,i.O27)(null==l?void 0:l.attributes)||void 0;(0,r.useEffect)((()=>{T&&n&&(y(!0),v((0,i.kgP)(s({entityUri:T,historicUris:f,filter:h,showAll:I},x))).then(g).catch((e=>{console.warn("Failed to load history data",e),g(null)})).finally((()=>{y(!1)})))}),[h,I,f]),(0,r.useEffect)((()=>{T&&n&&(y(!0),v((0,i.wdF)({entityUri:T})).then((e=>{m(e)})).catch((e=>{console.warn("Failed to load history data",e),m(null)})).finally((()=>{y(!1)})),d(0))}),[T,null==t?void 0:t.updatedTime,n]);const O=(0,r.useCallback)((e=>{T&&f&&n&&(y(!0),v((0,i.kgP)(s({entityUri:T,historicUris:f,filter:h,showAll:I,offset:e},x))).then((e=>{g((t=>s({},t,{changes:[...null==t?void 0:t.changes,...e.changes]})))})).catch((e=>{console.warn("Failed to load history data",e)})).finally((()=>{y(!1)})))}),[f,h,n]),S=(0,r.useMemo)((()=>32*(p+1)<(null==E?void 0:E.total)),[E,p]),N=(0,r.useCallback)((e=>{d(0),c(e)}),[]),P=(0,r.useCallback)((()=>{N(s({},u))}),[]),C=(0,r.useCallback)((()=>{S&&(O(32*(p+1)),d(p+1))}),[O,p,S]);return{isLoading:b,canLoadMore:S,onLoadMore:C,onApplyFilter:N,onClearFilter:P,historicUris:f,historyWithTotal:E,historyFilter:l}}},69409:(e,t,n)=>{n.d(t,{C:()=>l});var r=n(24328),i=n(22241);const l=e=>{let{isHistoryTabActive:t,entity:n}=e;const[l,a]=(0,r.useState)(!1),o=null==n?void 0:n.uri;(0,r.useEffect)((()=>{t||a(!1)}),[o]),(0,r.useEffect)((()=>{t&&a(!0)}),[t]);const s=o&&!(0,i.ZiX)(o)&&!(0,i.biM)(n);return{isHistoryEnabled:l&&s,isProfilePersisted:s}}},35722:(e,t,n)=>{n.d(t,{a:()=>s});var r=n(24328),i=n(52730),l=n(35674),a=n(22241),o=n(29627);const s=e=>{let{entity:t,historyEvent:n}=e;const[s,c]=(0,r.useState)(!1),u=(0,i.useSelector)(l.ZP.selectors.getHistorySlice),p=(0,i.useDispatch)(),d=(0,o._)(),{aStamp:h,bStamp:f,overrideUri:m}=n||{},E=m||(null==t?void 0:t.uri);return(0,r.useEffect)((()=>{n&&E&&(c(!0),d(Promise.all([(0,a.lrH)(E,h),f&&1!==f?(0,a.lrH)(E,f):Promise.resolve(null)])).then((e=>{let[t,n]=e;p(l.N5.history.actions.setHistorySlice({aEntity:t,bEntity:n}))})).catch((e=>{console.warn("Failed to load entity slice",e)})).finally((()=>{c(!1)})))}),[h,f,E]),{isLoading:s,historySlice:u}}},21256:(e,t,n)=>{n.d(t,{b:()=>a});var r,i=n(20414);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.FAKE_NAVIGATE_PROFILE="FAKE_NAVIGATE_PROFILE",e.FAKE_FILTERED_INCOMING="FAKE_FILTERED_INCOMING",e.FAKE_FILTERED_OUTGOING="FAKE_FILTERED_OUTGOING",e.FAKE_UPDATE="FAKE_UPDATE"}(r||(r={}));const a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}({},i.I,r)},38323:(e,t,n)=>{let r;n.d(t,{M:()=>r}),function(e){e.UPDATE="UPDATE",e.MERGE="MERGE",e.UNMERGE="UNMERGE"}(r||(r={}))},37696:(e,t,n)=>{n.d(t,{Z:()=>f,R:()=>m});var r=n(95038),i=n.n(r),l=n(17440),a=n(22241),o=n(38323),s=n(20414),c=n(39034);const u=e=>(0,l.pipe)((0,l.map)(e),(0,l.join)(" or ")),p=e=>{const[t,n]=e;return i()().subtract(t,n).valueOf()},d=(0,l.chain)((0,l.cond)([[(0,l.equals)(o.M.MERGE),()=>[s.I.ENTITIES_MERGED,s.I.ENTITIES_MERGED_MANUALLY,s.I.ENTITIES_MERGED_ON_THE_FLY]],[(0,l.equals)(o.M.UNMERGE),()=>[s.I.ENTITIES_SPLITTED]],[(0,l.equals)(o.M.UPDATE),()=>[s.I.ENTITY_CHANGED]]])),h=(0,l.pipe)((0,l.defaultTo)([]),d,(0,l.concat)([s.I.ENTITY_CREATED,s.I.ENTITY_REMOVED,s.I.ENTITY_LOST_MERGE]),u((e=>`equals(type, '${e}')`))),f=(0,l.pipe)((0,l.defaultTo)({}),(0,l.reject)(a.O27),(0,l.evolve)({users:u((e=>`equals(user, '${(0,a.HRH)(e)}')`)),attributes:u((e=>`changes(${(0,a.HRH)(e.value)})`)),dateRange:e=>{let{type:t,period:n}=e;switch(t){case c.K.WITHIN:return`gte(timestamp, ${p(n)})`;case c.K.AGO:return`lte(timestamp, ${p(n)})`;case c.K.BETWEEN:{const[e,t]=n;return`gte(timestamp, ${e.valueOf()}) and lte(timestamp, ${i()(t).endOf("date").valueOf()})`}default:return""}}}),(0,l.over)((0,l.lensProp)("activities"),h),l.values,(0,l.reject)(a.O27),(0,l.append)("not equals(user, 'collaboration-service')"),(0,l.map)((e=>`(${e})`)),(0,l.join)(" and ")),m=e=>{if(e.type===c.K.AGO||e.type===c.K.WITHIN){const[t,n]=e.period;return"Number"===(0,l.type)(t)&&"String"===(0,l.type)(n)&&t>0}if(e.type===c.K.BETWEEN){const[t,n]=e.period;return t instanceof Date&&n instanceof Date}}},11326:(e,t,n)=>{n.d(t,{a:()=>i});var r=n(24328);const i=e=>{const[t,n]=(0,r.useState)(!1),[i,l]=(0,r.useState)({});return(0,r.useEffect)((()=>{e().then((e=>{l(e||{})})).then((e=>n(!0))).catch((e=>n(!0)))}),[]),{isLoaded:t,savedState:i}}},39034:(e,t,n)=>{let r,i;n.d(t,{K:()=>r,o:()=>i}),function(e){e.WITHIN="within",e.AGO="ago",e.BETWEEN="between"}(r||(r={})),function(e){e.INIT="init",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(i||(i={}))}}]);
package/9215.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[9215],{25601:(e,t,n)=>{n.d(t,{K:()=>h,N:()=>g});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),s=n(77277),c=n(12231),i=n(90436);const u=(0,n(79692).Z)((e=>({button:{padding:"9px 16px 9px 12px","& svg g path":{fill:e.palette.primary.main,fillOpacity:1}},iconButton:{"& svg g path":{fill:e.palette.primary.main,fillOpacity:1}},startIcon:{marginLeft:0,marginRight:"8px",width:"18px",height:"18px",alignItems:"center"},label:{whiteSpace:"nowrap",fontSize:"14px",lineHeight:"16px",letterSpacing:0},overflowStyle:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},menuIcon:{marginRight:"12px"},menuItem:{minHeight:"28px",padding:"2px 16px 2px 12px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}})));var m=n(79573),p=n(83088),f=n(39475);function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}let g;!function(e){e.iconButton="iconButton",e.button="button",e.menuItem="menuItem"}(g||(g={}));const h=(0,r.forwardRef)(((e,t)=>{let{className:n,mode:r=g.iconButton,label:l,disabled:h,icon:b,onClick:y=m.ZT,onMenuClose:v=m.ZT}=e,x=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","mode","label","disabled","icon","onClick","onMenuClose"]);const E=u();return(()=>{switch(r){case"iconButton":return a().createElement(f.k,d({disabled:h,className:o()(E.iconButton,n),size:"S",tooltipTitle:l,onClick:y,icon:b},x));case"button":return a().createElement(s.Z,d({className:o()(E.button,n),disabled:h,startIcon:a().createElement(b,null),onClick:y,color:"primary",classes:{startIcon:E.startIcon,label:E.label}},x),a().createElement(p.C,{value:l},a().createElement("div",{className:E.overflowStyle},l)));case"menuItem":{const e=()=>{v(),y()};return a().createElement(c.Z,d({classes:{root:E.menuItem},onClick:e,disabled:h,ref:t},x),a().createElement(a().Fragment,null,a().createElement(b,{className:E.menuIcon}),a().createElement(i.Z,{classes:{root:E.menuText}},l)))}}})()}));h.displayName="ActionButton"},33903:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),s=n(87918),c=n.n(s),i=n(61837),u=n(87685),m=n(80030);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}const f=e=>a().createElement("svg",p({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{d:"M18 2V0H0v2l7 8v8l4-2v-6z",fill:"currentColor",fillRule:"nonzero",stroke:"none",strokeWidth:1})),d=(0,n(79692).Z)((e=>({"filterIcon--enabled":{color:e.palette.primary.main},closeIcon:{position:"absolute",right:"3px",bottom:"3px",transform:"scale(0.5)"},button:{padding:"11px"}}))),g=e=>{let{enabled:t,onClick:n}=e;const r=d();return a().createElement(m.ZP,{title:t?c().text("Clear all filters"):c().text("Filter")},a().createElement(i.Z,{onClick:n,classes:{root:r.button}},t?a().createElement(a().Fragment,null,a().createElement(f,{className:r["filterIcon--enabled"]}),a().createElement(u.default,{color:"primary",className:r.closeIcon})):a().createElement(f,null)))};g.propTypes={enabled:o().bool,onClick:o().func};const h=g},75975:(e,t,n)=>{n.d(t,{ZP:()=>g});var r=n(17440),a=n(79573);function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s="CHANGE_COLUMNS",c="TOGGLE_FILTERS",i="CHANGE_FILTER",u="TOGGLE_SORT",m="CHANGE_PAGE",p="CHANGE_ROWS_PER_PAGE",f={changeColumns:(0,a.zD)(s),toggleFilters:(0,a.zD)(c),changeFilter:(0,a.zD)(i),toggleSort:(0,a.zD)(u),changePage:(0,a.zD)(m),changeRowsPerPage:(0,a.zD)(p)},d=(e,t)=>{const n=(0,r.difference)(e.visibleColumns,t),a=e=>n.includes(e);return(0,r.evolve)({visibleColumns:(0,r.always)(t),sorting:(0,r.when)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a(e.field)}),(()=>{const[e]=t;return{field:e,order:"asc"}})),filters:e=>(0,r.keys)(e).reduce(((e,t)=>a(t)?(0,r.dissoc)(t,e):e),e)},e)},g={reducer:(e,t)=>{switch(t.type){case s:{const n=t.payload;return d(e,n)}case c:{const t=!e.filters;return l({},e,{filters:t?{}:null,page:t?e.page:0})}case i:{const{columnId:n,filter:a}=t.payload;return(0,r.evolve)({filters:a?(0,r.assoc)(n,a):(0,r.dissoc)(n),page:(0,r.always)(0)},e)}case u:{const n=t.payload,o=(0,r.path)(["sorting","field"],e),s=(0,r.path)(["sorting","order"],e);return l({},e,{sorting:{field:n,order:(0,a.Dh)(n===o?s:null)},page:0})}case m:return l({},e,{page:t.payload});case p:return l({},e,{rowsPerPage:t.payload});default:return e}},actions:f,changeVisibleColumns:d}},1730:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(27556),a=n(13980),l=n.n(a),o=n(24328),s=n.n(o);function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=(0,n(79692).Z)((e=>({"basic-view__paper":c({display:"flex",flexDirection:"column"},e.basicView)})));function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}const p=(0,o.forwardRef)(((e,t)=>{let{children:n,className:a}=e,l=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["children","className"]);const o=u();return s().createElement(r.Z,m({ref:t,className:a,classes:{root:o["basic-view__paper"]}},l),n)}));p.displayName="BasicView",p.propTypes={children:l().node,className:l().string};const f=p},85596:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),s=n(22241),c=n(17440),i=n(64651),u=n(65629);function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}const p=e=>{let{relation:t={},inRelationTypes:n=[],outRelationTypes:l=[],onChange:o=c.identity,applyFirstByDefault:s=!1,reversedContextLabels:p=!1}=e,f=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["relation","inRelationTypes","outRelationTypes","onChange","applyFirstByDefault","reversedContextLabels"]);const{getRelationTypesOptions:d,fromEditorValue:g,toEditorValue:h}=(0,i.n)({reversedContextLabels:p}),b=(0,r.useMemo)((()=>d(n,l)),[d,n,l]),y=(0,r.useCallback)((0,c.pipe)(g(n,l),o),[g,n,l,o]),v=!!t.relationType;return(0,r.useEffect)((()=>{s&&b.length&&!v&&y(b[0])}),[b,s,y,v]),a().createElement(u.Z,m({value:h(t,b),options:b,onChange:y},f))};p.propTypes={className:o().string,relation:s.bNA,inRelationTypes:o().arrayOf(s.IYE),outRelationTypes:o().arrayOf(s.IYE),applyFirstByDefault:o().bool,reversedContextLabels:o().bool,onChange:o().func};const f=p},22834:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),s=n(85777);const c=(0,n(79692).Z)((e=>({label:{backgroundColor:"rgba(43,152,240,0.12)",fontSize:"12px",lineHeight:"14px",color:e.palette.text.primary,display:"flex",alignItems:"center",padding:"4px 8px"},container:{display:"flex",alignItems:"center",cursor:"pointer",marginBottom:"8px"}})));function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}const u=(0,r.forwardRef)(((e,t)=>{let{children:n,expanded:r,onExpand:l,className:u}=e,m=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["children","expanded","onExpand","className"]);const p=c();return a().createElement("div",i({onClick:l,ref:t,className:o()(p.container,u)},m),a().createElement(s.Z,{expanded:r}),a().createElement("div",{className:p.label},n))}));u.displayName="MatchRuleBadge";const m=u},10160:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),l=n(22241),o=n(35583),s=n(70170),c=n(3421);const i=e=>{let{entitiesMap:t,entity:n,match:r,metadata:i}=e;return(0,l.Pcm)(r)?a().createElement(s.Z,{transitiveMatchRules:(0,l.wB1)(i,r,t)}):a().createElement(c.Z,{matchRules:(0,l.LS0)(i,n.type,r.matchRules),Component:o.Z})}},6975:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l);const s=e=>{let{isMlMatch:t=!1}=e;return a().createElement(a().Fragment,null,t?o().text("Match IQ"):o().text("Match rules"))}},43977:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),a=n.n(r),l=n(6975);const o=(0,n(79692).Z)({title:{fontWeight:500,marginBottom:"9px"},body:{fontWeight:"normal",marginLeft:"16px"},container:{padding:"8px",fontSize:"12px",lineHeight:"14px"}}),s=e=>{let{isMlMatch:t=!1,matchRules:n}=e;const r=o();return a().createElement("div",{className:r.container},a().createElement("div",{className:r.title},a().createElement(l.Z,{isMlMatch:t})," "),a().createElement("div",{className:r.body},n.map((e=>a().createElement("div",{key:e.uri},`- ${e.label}`)))))}},45362:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),s=n(6975);const c=(0,n(79692).Z)((e=>({container:{fontSize:"13px",lineHeight:"15px"},title:{color:e.palette.text.secondary,marginBottom:"7px"},labelsContainer:{color:e.palette.text.primary,marginBottom:"8px"}}))),i=e=>{let{isMlMatch:t,matchRules:n,className:r}=e;const l=c();return a().createElement("div",{className:o()(l.container,r)},a().createElement("div",{className:l.title},a().createElement(s.Z,{isMlMatch:t})),a().createElement("div",{className:l.labelsContainer},n.map((e=>a().createElement("div",{key:e.uri},`- ${e.label}`)))))}},35583:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),a=n.n(r),l=n(43977),o=n(45362),s=n(78223),c=n(22834);const i=(0,n(79692).Z)({container:{display:"flex",flexDirection:"column",alignItems:"flex-start"},rulesContainer:{marginLeft:"16px"},icon:{height:"17px",width:"15px",marginRight:"5px"}});function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}const m=e=>a().createElement("svg",u({width:192,height:192,viewBox:"0 0 192 192",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),a().createElement("defs",null,a().createElement("linearGradient",{x1:"94.582%",y1:"6.451%",x2:"23.195%",y2:"83.323%",id:"MLMatch_svg__b"},a().createElement("stop",{stopColor:"#CDE1FF",offset:"0%"}),a().createElement("stop",{stopColor:"#AFFBF4",offset:"100%"})),a().createElement("linearGradient",{x1:"94.582%",y1:"6.594%",x2:"23.195%",y2:"83.214%",id:"MLMatch_svg__d"},a().createElement("stop",{stopColor:"#FFF",offset:"0%"}),a().createElement("stop",{stopColor:"#FDFFFF",offset:"100%"})),a().createElement("linearGradient",{x1:"93.837%",y1:"55.274%",x2:"29.292%",y2:"-20.431%",id:"MLMatch_svg__g"},a().createElement("stop",{stopColor:"#FFFCC7",stopOpacity:0,offset:"0%"}),a().createElement("stop",{stopColor:"#FFF470",offset:"100%"})),a().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"98.152%",id:"MLMatch_svg__i"},a().createElement("stop",{stopColor:"#83D6FF",offset:"0%"}),a().createElement("stop",{stopColor:"#72B9EF",offset:"100%"})),a().createElement("path",{d:"M1.821 66.003L34.263 9.94C36.633 5.813 45.673.594 51.398.072l64.445-.064c5.06-.241 14.821 5.084 17.888 10.395l31.467 54.503c3.186 5.518 2.765 16.592-.13 22.117l-30.948 53.481c-3.776 5.127-14.165 11.126-19.57 11.328l-62.134.061c-5.51-.264-15.934-5.764-18.758-10.655L1.856 86.155C-.846 81.475-.37 70.648 1.82 66.003z",id:"MLMatch_svg__a"}),a().createElement("path",{d:"M11.109 67.042l28.713-49.618C41.92 13.77 49.931 9.158 55.006 8.7l57.143.005c4.486-.209 13.147 4.516 15.871 9.223l27.954 48.298c2.83 4.89 2.467 14.696-.095 19.586l-27.391 47.334c-3.343 4.537-12.55 9.84-17.342 10.013l-55.094-.004c-4.886-.24-14.134-5.12-16.643-9.454L11.16 84.889c-2.4-4.147-1.989-13.735-.05-17.847z",id:"MLMatch_svg__c"}),a().createElement("path",{d:"M.995 0c26.4.684 47.59 22.234 47.59 48.72 0 26.23-23.795 34.53-23.795 56.987 0 3.703-3.011 6.705-6.725 6.705l-17.07-.001V68.985c6.466-1.238 11.353-6.923 11.353-13.75S7.46 42.722.995 41.485V0z",id:"MLMatch_svg__e"}),a().createElement("path",{d:"M47.353 0l-.087 41.235-.225.003c-7.588.167-13.688 6.37-13.688 13.997 0 7.683 6.19 13.92 13.854 14l-.091 43.265H27.887c-1.894-.56-3.197-1.234-3.91-2.025-.712-.79-1.357-2.275-1.933-4.455l-2.335-10.733c-.354-1.265-.674-2.183-.96-2.753-.286-.57-.784-1.281-1.494-2.134L2.002 70.367c-.846-.949-1.383-1.73-1.61-2.343-.228-.613-.356-1.626-.386-3.038V31.34c-.028-.785.044-1.37.216-1.757.173-.387.566-.848 1.18-1.382L28.368.885c.37-.367.665-.601.885-.704.22-.103.557-.163 1.01-.181h17.09z",id:"MLMatch_svg__h"})),a().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},a().createElement("g",{transform:"translate(12 6)"},a().createElement("use",{fill:"url(#MLMatch_svg__b)",xlinkHref:"#MLMatch_svg__a"}),a().createElement("use",{fill:"url(#MLMatch_svg__d)",opacity:.5,xlinkHref:"#MLMatch_svg__c"})),a().createElement("g",{transform:"translate(69.652 30.765)"},a().createElement("rect",{fill:"#363636",x:15.457,y:132.745,width:21.151,height:23.158,rx:10.576}),a().createElement("path",{d:"M48.146 118.763v18.93c0 7.198-5.944 13.035-13.277 13.035h-16.71c-7.333 0-13.278-5.837-13.278-13.036v-18.929a13 13 0 01.023-.763h43.22a13 13 0 01.022.763z",fill:"#717171"}),a().createElement("path",{d:"M41.348 137.2c0 7.199-4.947 13.035-11.048 13.035H16.395c-6.101 0-11.047-5.836-11.047-13.035v-18.965h36V137.2z",fill:"#828282"}),a().createElement("path",{d:"M47.51 138.235a4 4 0 110 8H4.556a4 4 0 110-8h42.956zm0-11a4 4 0 110 8H4.556a4 4 0 110-8h42.956zm0-11a4 4 0 110 8H4.556a4 4 0 110-8h42.956z",fill:"#B1B1B1"}),a().createElement("path",{d:"M24.999 138.234v8h-16v-8h16zm0-11v8h-16v-8h16zm0-11v8h-16v-8h16z",fill:"#C5C5C5"}),a().createElement("g",{transform:"translate(27)"},a().createElement("mask",{id:"MLMatch_svg__f",fill:"#fff"},a().createElement("use",{xlinkHref:"#MLMatch_svg__e"})),a().createElement("use",{fill:"#FFD44B",xlinkHref:"#MLMatch_svg__e"}),a().createElement("path",{d:"M-49 48.729C-49 21.583-27.155 0-.207 0 26.74 0 48.585 21.817 48.585 48.729c0 26.227-23.75 34.525-23.75 56.98a6.708 6.708 0 01-6.713 6.703h-38.208a6.708 6.708 0 01-6.712-6.704C-26.798 85.217-49 75.875-49 48.73z",fill:"#FFD347",mask:"url(#MLMatch_svg__f)"}),a().createElement("path",{d:"M-49 48.729C-49 21.583-27.155 0-.207 0 26.74 0 48.585 21.817 48.585 48.729c0 26.227-23.75 34.525-23.75 56.98a6.708 6.708 0 01-6.713 6.703h-38.208a6.708 6.708 0 01-6.712-6.704C-26.798 85.217-49 75.875-49 48.73z",fill:"#FFDE72",mask:"url(#MLMatch_svg__f)"}),a().createElement("path",{d:"M11.965 48.645c.17-7.171 7.488-10.693 13.863-6.802 7.245 4.422 4.05 16.311-4.742 16.548l-.268.004h-3.227l-4.608 56.092-5.995-.253 4.413-51.248.185-4.592-10.592.001v-6h10.83l.139-3.585.002-.165zm10.737-1.681c-2.54-1.55-4.64-.58-4.737 1.766l-.005.284-.131 3.38 2.99.001c2.852 0 3.999-3.945 2.011-5.347l-.128-.084z",fill:"#F3BE13",mask:"url(#MLMatch_svg__f)"}),a().createElement("ellipse",{fill:"url(#MLMatch_svg__g)",mask:"url(#MLMatch_svg__f)",cx:-1.89,cy:48.245,rx:36.534,ry:36.667}))),a().createElement("g",{transform:"translate(45.647 30.765)"},a().createElement("mask",{id:"MLMatch_svg__j",fill:"#fff"},a().createElement("use",{xlinkHref:"#MLMatch_svg__h"})),a().createElement("use",{fill:"url(#MLMatch_svg__i)",xlinkHref:"#MLMatch_svg__h"}),a().createElement("path",{fill:"#D6FCFA",fillRule:"nonzero",opacity:.5,mask:"url(#MLMatch_svg__j)",d:"M38.24 11.235v6l-3.55-.001-22.207 22.207h-18.13v-6H9.997l22.207-22.206zM25.682 40.779l13.8 13.799H50v6H36.997L21.439 45.021zM53.311 28.235v6h-13.65l-3.935 4.246-4.4-4.08 5.718-6.166zM14.248 52.235l20.52 20.52h3.695v6h-6.18l-20.52-20.52H-.647v-6zM21.353 84.235h8.95L40.4 94.332h16.753v6H37.915L27.817 90.235z"})),a().createElement("circle",{fill:"#008FD8",cx:94,cy:86,r:9})));var p=n(87918),f=n.n(p);const d=(0,s.Z)(c.Z),g=e=>{let{isMlMatch:t=!1,matchRules:n}=e;const s=i(),[c,u]=(0,r.useState)(!1),p=(0,r.useCallback)((()=>u((e=>!e))),[]);return a().createElement("div",{className:s.container},a().createElement(d,{tooltipTitle:a().createElement(l.Z,{matchRules:n,isMlMatch:t}),tooltipPlacement:"bottom-start",onExpand:p,expanded:c},t?a().createElement(a().Fragment,null,a().createElement(m,{className:s.icon}),f().text("Match IQ")):f().text("Rules")),c?a().createElement(o.Z,{className:s.rulesContainer,matchRules:n,isMlMatch:t}):null)}},3421:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),s=n(17440),c=n(22241);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}const u=e=>{let{matchRules:t,Component:n}=e,r=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["matchRules","Component"]);const[l,o]=(0,c.UkJ)(t);return a().createElement(a().Fragment,null,(0,s.isEmpty)(o)?null:a().createElement(n,i({matchRules:o},r)),(0,s.isEmpty)(l)?null:a().createElement(n,i({isMlMatch:!0,matchRules:l},r)))};u.propTypes={matchRules:c.p3$,Component:o().func};const m=u},70170:(e,t,n)=>{n.d(t,{Z:()=>E});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l),s=n(22834),c=n(85777),i=n(45362),u=n(3421),m=n(79692);const p=(0,m.Z)((e=>({label:{fontSize:"13px",lineHeight:"15px",color:e.palette.primary.light},container:{display:"flex",flexDirection:"column"},badge:{display:"flex",marginBottom:"8px",cursor:"pointer"},matchLabels:{marginLeft:"30px"}}))),f=e=>{let{label:t,matchRules:n}=e;const l=p(),[o,s]=(0,r.useState)(!1),m=(0,r.useCallback)((()=>s((e=>!e))),[]);return a().createElement("div",{className:l.container},a().createElement("div",{onClick:m,className:l.badge},a().createElement(c.Z,{expanded:o}),a().createElement("div",{className:l.label},t)),o?a().createElement(u.Z,{Component:i.Z,matchRules:n,className:l.matchLabels}):null)},d=(0,m.Z)({container:{display:"flex",flexDirection:"column"},rulesWrapper:{display:"flex",flexDirection:"column"}});var g=n(78223),h=n(43977);const b=(0,m.Z)({ruleWrapper:{paddingTop:"8px"},label:{fontWeight:500,fontSize:"12px"}}),y=e=>{let{transitiveMatchRules:t}=e;const n=b();return a().createElement(a().Fragment,null,t.map(((e,t)=>{let{label:r,matchRules:l}=e;return a().createElement("div",{key:t,className:n.ruleWrapper},a().createElement("div",{className:n.label},r),a().createElement(h.Z,{matchRules:l}))})))};function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}const x=(0,g.Z)(s.Z),E=e=>{let{transitiveMatchRules:t}=e;const n=d(),[l,s]=(0,r.useState)(!1),c=(0,r.useCallback)((()=>s((e=>!e))),[]);return a().createElement("div",{className:n.container},a().createElement(x,{tooltipTitle:a().createElement(y,{transitiveMatchRules:t}),tooltipPlacement:"bottom-start",onExpand:c,expanded:l},o().text("Transitive matches")),l?t.map(((e,t)=>a().createElement(f,v({key:t},e)))):null)}},84236:(e,t,n)=>{n.d(t,{H:()=>f});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}const c=e=>a().createElement("svg",s({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),a().createElement("defs",null,a().createElement("path",{d:"M17.045 20.455l1.41-1.41-3.41-3.41-1.41 1.41 3.41 3.41zm-9.5-12.41h3.5v5.59l-5.41 5.41 1.41 1.41 6-6v-6.41h3.5l-4.5-4.5-4.5 4.5z",id:"MergeDark_svg__a"})),a().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},a().createElement("mask",{id:"MergeDark_svg__b",fill:"#fff"},a().createElement("use",{xlinkHref:"#MergeDark_svg__a",transform:"rotate(90 12.045 12)"})),a().createElement("path",{fillOpacity:.54,fill:"#000",mask:"url(#MergeDark_svg__b)",d:"M0 0h24v24H0z"})));var i=n(79573),u=n(25601),m=n(50447);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}const f=(0,r.forwardRef)(((e,t)=>{let{className:n,mode:r=u.N.iconButton,onMenuClose:l=i.ZT,disabled:s=!1,entity:f,entities:d,onStartRequest:g,onFinishRequest:h,onError:b}=e,y=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","mode","onMenuClose","disabled","entity","entities","onStartRequest","onFinishRequest","onError"]);const{sendMergeAllRequest:v}=(0,m._)({entity:f,entities:d,onStartRequest:g,onFinishRequest:h,onError:b});return a().createElement(u.K,p({className:n,disabled:s,mode:r,label:o().text("Merge"),icon:c,onClick:v,onMenuClose:l,ref:t},y))}));f.displayName="mergeButton"},48376:(e,t,n)=>{n.d(t,{i:()=>f});var r=n(25601),a=n(24328),l=n.n(a);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}const s=e=>l().createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),l().createElement("defs",null,l().createElement("path",{d:"M17 13.138l4.5 4.5-4.5 4.5V18.5h-1.247l-3.488-3.479 1.413-1.414 2.901 2.893H17v-3.362zM17 1.5L21.5 6 17 10.5V7.138h-.421l-11.03 11H2v-2h2.723l11.03-11H17V1.5zm-11.45 4l3.294 3.286-1.414 1.413L4.723 7.5H2v-2h3.55z",id:"NotMatchDark_svg__a"})),l().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},l().createElement("mask",{id:"NotMatchDark_svg__b",fill:"#fff"},l().createElement("use",{xlinkHref:"#NotMatchDark_svg__a"})),l().createElement("path",{fillOpacity:.54,fill:"#000",mask:"url(#NotMatchDark_svg__b)",d:"M0 0h24v24H0z"})));var c=n(79573),i=n(87918),u=n.n(i),m=n(19278);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}const f=(0,a.forwardRef)(((e,t)=>{let{className:n,mode:a=r.N.iconButton,onMenuClose:o=c.ZT,disabled:i=!1,entity:f,entities:d,onStartRequest:g,onFinishRequest:h}=e,b=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","mode","onMenuClose","disabled","entity","entities","onStartRequest","onFinishRequest"]);const{sendMarkAsNotMatchRequest:y}=(0,m.m)({entity:f,entities:d,onStartRequest:g,onFinishRequest:h});return l().createElement(r.K,p({className:n,disabled:i,mode:a,label:u().text("Not a match"),icon:s,onClick:y,onMenuClose:o,ref:t},b))}));f.displayName="notMatchButton"},91026:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l),s=n(71153),c=n.n(s),i=n(22241);const u=(0,n(79692).Z)((e=>({container:{display:"flex",padding:"16px",overflow:"hidden"},image:{width:"40px",height:"40px"},info:{marginLeft:"12px",overflow:"hidden",display:"flex",flexDirection:"column"},label:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:400,fontSize:"13px",lineHeight:"15px",color:e.palette.primary.main},secondaryLabel:{marginTop:"4px",fontWeight:400,fontSize:"10px",lineHeight:"12px",color:e.palette.text.secondary,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},link:{textDecoration:"none"},thirdRow:{display:"flex",alignItems:"center",marginTop:"auto",paddingTop:"4px"},entityId:{display:"flex",alignItems:"baseline",fontWeight:400,fontSize:"12px",lineHeight:"16px"},entityIdLabel:{color:e.palette.text.secondary},entityIdValue:{marginLeft:"8px",color:e.palette.text.primary}})));var m=n(37573),p=n(18527),f=n(83088),d=n(20146);function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}const h=(0,r.memo)((e=>{let{entity:t,classes:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["entity","classes"]);const l=u(),{secondaryLabel:s,label:h,container:b}=n,y=(0,i.idV)(t.label),{secondaryLabel:v}=t;return a().createElement("div",g({className:c()(l.container,b)},r),a().createElement(m.Z,{entity:t,imageClassName:l.image}),a().createElement("div",{className:l.info},a().createElement(p.Z,{value:(0,i.wwR)(t),className:l.link},a().createElement(f.C,{value:y,placement:"top",showOnExceededHeight:!0},a().createElement("div",{className:c()(l.label,h)},y))),v&&a().createElement(f.C,{value:v,placement:"top",showOnExceededHeight:!0},a().createElement("div",{className:c()(l.secondaryLabel,s)},v)),a().createElement("div",{className:l.thirdRow},a().createElement(d.Z,{entity:t,size:"medium"}),a().createElement("div",{className:l.entityId},a().createElement("div",{className:l.entityIdLabel},o().text("ID:")),a().createElement("div",{className:l.entityIdValue},(0,i.BTI)(t))))))}))},11821:(e,t,n)=>{n.d(t,{h:()=>o});var r=n(24328),a=n.n(r);const l=(0,n(79692).Z)((e=>({contentWrapper:{display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)",marginLeft:"3px",transition:e.transitions.create(["width"],{duration:e.transitions.duration.enteringScreen})}}))),o=e=>{let{width:t,open:n,children:r}=e;const o=l();return a().createElement("div",{className:o.contentWrapper,style:{width:`${n?t:0}px`}},n&&a().createElement(a().Fragment,null,r))}},98273:(e,t,n)=>{n.d(t,{P:()=>p});var r=n(24328),a=n.n(r),l=n(87685);const o=(0,n(79692).Z)({container:{display:"flex",flexShrink:0,height:"63px",alignItems:"center",borderBottom:"1px solid rgba(0,0,0,0.12)"},icon:{margin:"0 12px"},divider:{backgroundColor:"rgba(0,0,0,0.12)",margin:"19px 17px"},secondTitle:{fontSize:"14px"}});var s=n(90436),c=n(85256),i=n(87918),u=n.n(i),m=n(39475);const p=e=>{let{onClose:t,mainTitle:n,secondTitle:r,content:i,rightContent:p}=e;const f=o();return a().createElement("div",{className:f.container},a().createElement(m.k,{size:"L",icon:l.default,onClick:t,className:f.icon,tooltipTitle:u().text("Close")}),i||a().createElement(a().Fragment,null,a().createElement(s.Z,{variant:"h6"},n),r&&a().createElement(a().Fragment,null,a().createElement(c.Z,{orientation:"vertical",flexItem:!0,className:f.divider}),a().createElement(s.Z,{variant:"body1",color:"textSecondary",className:f.secondTitle},r)),p))}},55310:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(13980),a=n.n(r),l=n(24328),o=n.n(l);const s=e=>{let{height:t,margin:n}=e;return o().createElement("div",{style:{width:"1px",height:`${t}px`,borderLeft:"1px solid rgba(0,0,0,0.38)",margin:`0 ${n}px`,flexShrink:"0"}})};s.propTypes={height:a().number,margin:a().number};const c=s},65629:(e,t,n)=>{n.d(t,{Z:()=>S});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),s=n(87918),c=n.n(s),i=n(17440),u=n(71153),m=n.n(u),p=n(12231),f=n(90436);const d=(0,n(79692).Z)({container:{display:"flex",alignItems:"center",height:"32px",minHeight:"32px",padding:0},text:{display:"flex",width:"calc(100% - 68px)"},textItem:{fontSize:"13px",lineHeight:"15px",marginRight:10},primaryTextItem:{flex:"1 0",flexBasis:0,maxWidth:"50%",overflow:"hidden",textOverflow:"ellipsis"},secondaryTextItem:{flex:"1 0",flexBasis:0,overflow:"hidden",textOverflow:"ellipsis"},icons:{transform:"scale(0.5)",position:"relative",flexShrink:0,width:"68px",bottom:"10px"},iconTop:{position:"absolute",top:0,left:0,zIndex:1},iconBottom:{position:"absolute",top:0,left:26,zIndex:0}});var g=n(42662),h=n(83088);function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}const y=e=>{let{innerRef:t,innerProps:n,selectOption:r,data:l}=e;const o=d(),{value:s,label:c,startObject:i,endObject:u}=l,y=i.objectType.label+" ↔ "+u.objectType.label;return a().createElement(p.Z,b({className:o.container,ref:t,key:s,onClick:()=>r({label:c,value:s,startObject:i,endObject:u})},n),a().createElement("div",{className:o.icons},a().createElement(g.Z,{className:o.iconTop,entityType:i.objectType}),a().createElement(g.Z,{className:o.iconBottom,entityType:u.objectType})),a().createElement("div",{className:o.text},a().createElement(h.C,{value:c},a().createElement(f.Z,{className:m()(o.textItem,o.primaryTextItem)},c)),a().createElement(h.C,{value:y},a().createElement(f.Z,{color:"textSecondary",className:m()(o.textItem,o.secondaryTextItem)},y))))};y.propTypes={innerRef:o().oneOfType([o().oneOf([null]),o().func,o().shape({current:o().any.isRequired})]),innerProps:o().object.isRequired,selectOption:o().func.isRequired,data:o().shape({value:o().string.isRequired,label:o().string.isRequired,startObject:o().object,endObject:o().object})};const v=y;var x=n(84425);function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const C=e=>{let{value:t={},options:n=[],onChange:l=i.identity,TextFieldProps:o}=e,s=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["value","options","onChange","TextFieldProps"]);const u=(0,r.useMemo)((()=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){O(e,t,n[t])}))}return e}({},(0,i.defaultTo)({},o),{"data-reltio-id":"relation-type-selector"})),[o]);return a().createElement(x.Z,E({value:t,options:n,onChange:l,label:c().text("Select relationship type "),components:{Option:v},TextFieldProps:u},s))},w=o().shape({label:o().string.isRequired,value:o().string.isRequired,startObject:o().object,endObject:o().object});C.propTypes={value:w,options:o().arrayOf(w),onChange:o().func};const S=C},55932:(e,t,n)=>{n.d(t,{V:()=>j});var r=n(24328),a=n.n(r),l=n(17440),o=n(29611),s=n(50581),c=n(94842),i=n(13980),u=n.n(i),m=n(87918),p=n.n(m),f=n(61837),d=n(43434),g=n(98685),h=n(71153),b=n.n(h),y=n(79692);const v=(0,y.Z)((e=>({comment:{display:"flex",flexDirection:"row",flex:1,marginLeft:"6px"},avatar:{height:"24px",width:"24px",margin:"3px 13px 0 0"},icon:{fill:"#537280",backgroundColor:"#EAEDEE"},firstLine:{display:"flex",flexDirection:"row"},info:{flex:1},author:{flex:1,fontWeight:"500",color:"rgba(0,0,0,0.87)",fontSize:"13px",lineHeight:"15px"},date:{color:"rgba(0, 0, 0, 0.54)",fontSize:"11px",marginRight:"17px",lineHeight:"15px"},text:{color:"rgba(0, 0, 0, 0.6)",fontSize:"13px",wordWrap:"break-word",wordBreak:"break-all",paddingRight:"10px"}}))),x=(0,y.Z)((e=>({circleButton:{maxWidth:"14px",maxHeight:"14px",border:"1px solid rgba(0, 0, 0, 0.3)",fontSize:"13px",color:"rgba(0, 0, 0, 0.6)",position:"absolute",top:"-11px",left:"5px",backgroundColor:"#ffffff","&:hover":{backgroundColor:"#f7f7f7"},"&.focused":{backgroundColor:"#f7f7f7"}},delimiter:{position:"relative",height:"4px",borderTop:"1px solid rgba(0, 0, 0, 0.3)",borderBottom:"1px solid rgba(0, 0, 0, 0.3)",margin:"15px 0 24px 0"}}))),E=(0,y.Z)((e=>({container:{padding:"5px 0",display:"flex",flexDirection:"column"},commentsContainer:{maxHeight:"300px",overflowY:"auto"},title:{margin:"0 0 8px 5px",fontSize:"14px",color:"rgba(0, 0, 0, 0.87)"},filledInputRoot:{backgroundColor:"rgba(0, 0, 0, 0.03)",padding:"0 6px",height:"40px",margin:"10px 17px 0 6px",fontSize:"14px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"},"&.focused":{backgroundColor:"rgba(0, 0, 0, 0.03)"}}}))),O=(0,y.Z)((e=>({messageContainer:{borderBottom:"1px solid rgba(0,0,0,0.3)",paddingBottom:"7px",marginBottom:"7px"}}))),C=e=>{let{author:t,classes:n,message:r,time:l}=e;const o=v();return a().createElement("div",{className:o.comment},a().createElement(d.Z,{className:o.avatar},a().createElement(g.Z,{className:o.icon})),a().createElement("div",{className:b()(o.info,n.messageContainer)},a().createElement("div",{className:o.firstLine},a().createElement("div",{className:o.author},t),a().createElement("span",{className:o.date},p().date(l,"L LT"))),a().createElement("div",{className:o.text},r)))};C.defaultProps={classes:{}},C.propTypes={classes:u().object,author:u().string,id:u().string,message:u().string,time:u().number};const w=e=>{let{comments:t,onClick:n}=e;const r=x();return a().createElement(a().Fragment,null,a().createElement(C,t[0]),a().createElement("div",{className:r.delimiter},a().createElement(f.Z,{className:r.circleButton,onClick:n},t.length-2)),a().createElement(C,t[t.length-1]))};w.propTypes={comments:u().arrayOf(u().shape({author:u().string,id:u().string,message:u().string,time:u().number})),onClick:u().func};const S=e=>{let{comments:t}=e;const n=O();return t.map((e=>{let{author:t,id:r,message:l,time:o}=e;return a().createElement(C,{classes:{messageContainer:n.messageContainer},key:r,author:t,message:l,time:o})}))};S.propTypes={comments:u().arrayOf(u().shape({author:u().string,id:u().string,message:u().string,time:u().number}))};var k=n(12132),P=n(40435);const _=e=>e.target.value,j=e=>{let{processInstanceComments:t,taskId:n,isTaskOpen:i}=e;const u=E(),[m,f]=(0,r.useState)(!1),[d,g]=(0,r.useState)(""),{comments:h,writeComment:b,readOnly:y}=(0,k.W)({processInstanceComments:t,taskId:n,isOpen:i}),v=(0,r.useCallback)((()=>{b(d),g("")}),[d,b]),x=(0,l.pipe)(_,g);return a().createElement("div",{className:u.container},a().createElement("div",{className:u.title}," ",p().text("Comments")," "),a().createElement("div",{className:u.commentsContainer},m||h.length<3?a().createElement(S,{comments:h}):a().createElement(w,{onClick:()=>f(!0),comments:h})),!y&&a().createElement(o.Z,{endAdornment:a().createElement(s.Z,{position:"end"},a().createElement(P.Z,{icon:c.Z,disabled:0===d.length,onClick:v})),classes:{root:u.filledInputRoot},placeholder:p().text("Write a comment"),value:d,onKeyPress:(0,l.when)((0,l.propEq)("key","Enter"),v),onChange:x,disableUnderline:!0}))};j.propTypes={processInstanceComments:u().arrayOf(u().shape({author:u().string,id:u().string,message:u().string,time:u().number})),taskId:u().string}},35782:(e,t,n)=>{n.d(t,{R:()=>s});var r=n(87918),a=n.n(r),l=n(22241),o=n(97333);const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{errorMessage:t,errorCode:n}=e;n!==l.Xt7.WORKFLOW_IS_NOT_REGISTERED_ERROR&&(console.error(e),o.Z.addError({title:a().text("Error"),message:t||a().text("Something went wrong...")}))}},35860:(e,t,n)=>{n.d(t,{rc:()=>a,Xs:()=>l,tg:()=>o});var r=n(17440);const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.find((0,r.startsWith)("changeRequests/"))},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r.pipe)(a,(0,r.unless)(r.isNil,(0,r.pipe)((0,r.split)("/"),(0,r.nth)(1))))(e)},o=e=>void 0===e||!0===e},4091:(e,t,n)=>{n.d(t,{r:()=>d});var r=n(24328),a=n(17440),l=n(52730),o=n(22241),s=n(35674),c=n(29627),i=n(14834),u=n(35782),m=n(36571),p=n(35860);const f=e=>({label:e,value:e}),d=e=>{let{assignee:t,taskId:n,isOpen:d}=e;const{updateTaskState:g}=(0,r.useContext)(i.O)||{},h=(0,l.useSelector)(s.ZP.selectors.getWorkflowPath),b=(0,l.useSelector)(s.ZP.selectors.getWorkflowEnvironmentUrl),y=(0,l.useSelector)(s.ZP.selectors.getTenant),v=(0,c._)(),x=(0,c._)(),[E,O]=(0,r.useState)(null),[C,w]=(0,r.useState)(),[S,k]=(0,r.useState)(!1),P=(0,m.Z)()("UPDATE_TASK")&&(0,p.tg)(d);(0,r.useEffect)((()=>{O(f(t))}),[t]);const _=(0,r.useCallback)((e=>{if(h&&P&&n){const t=(0,a.filter)((t=>t.value.toLowerCase().includes(e)));return C?Promise.resolve(t(C)):x((0,o.j2$)({taskId:n,workflowPath:h,environment:b,tenant:y})).then((e=>{const{data:n}=e,r=n.sort(((e,t)=>o.P6Y.strings.sort("asc",e,t))).map(f);return w(r),t(r)})).catch(u.R)}}),[h,n,b,y,C,w,P]),j=(0,r.useCallback)((e=>{if(h&&P&&n){const{value:t}=e;k(!0),v((0,o._C4)({taskId:n,workflowPath:h,environment:b,tenant:y,assignee:t})).then((()=>{O(f(t)),null==g||g(n,{assignee:t})})).catch(u.R).finally((()=>{k(!1)}))}}),[h,n,b,y,P]);return{assignee:E,getAssignees:_,updateAssignee:j,updateRequestIsInProgress:S,readOnly:!P}}},36571:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(52730),a=n(35674);const l=()=>{const e=(0,r.useSelector)(a.ZP.selectors.getWorkflowPath),t=(0,r.useSelector)(a.ZP.selectors.getCanUserStartProcessFromQuery),n=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowJobs),l=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowEnvironmentConfigJar),o=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowDefinition),s=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowConfigJar),c=(0,r.useSelector)(a.ZP.selectors.getCanUserViewProcessInstanceSearchQuery),i=(0,r.useSelector)(a.ZP.selectors.getCanUserUpdateWorkflowDataTask),u=(0,r.useSelector)(a.ZP.selectors.getCanUserUpdateProcessInstance),m=(0,r.useSelector)(a.ZP.selectors.getCanUserReadWorkflowDataTask),p=(0,r.useSelector)(a.ZP.selectors.getCanUserManageWorkflowEnvironmentDefinition),f=(0,r.useSelector)(a.ZP.selectors.getCanUserManageWorkflowDefinition),d=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobsValidateTasks),g=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobsUpdateTasks),h=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobsTerminateProcessInstance),b=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobsSyncBusinessProcessData),y=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobs),v=(0,r.useSelector)(a.ZP.selectors.getCanUserCreateWorkflowEnvironmentConfigJar),x=(0,r.useSelector)(a.ZP.selectors.getCanUserRegisterConfigEnvironments),E=(0,r.useSelector)(a.ZP.selectors.getCanUserCreateWorkflowConfigJar);return r=>{if(!e)return!1;switch(r){case"VIEW_PROCESS_DEFINITIONS":return o;case"DEPLOY_GENERIC_PROCESS_DEFINITION":return p;case"VIEW_JOBS":return n;case"START_JOB":return y||b&&h&&g&&d;case"VIEW_CUSTOM_JARS":return s||l;case"UPDATE_PROCESS_INSTANCE":return u;case"VIEW_TASKS":return m;case"REGISTER_TENANT":return x;case"START_PROCESS_INSTANCE":case"START_PROCESS_INSTANCE_SEARCH_QUERY":return t;case"VIEW_PROCESS_INSTANCE_COMMENTS":case"VIEW_PROCESS_INSTANCES":case"VIEW_PROCESS_INSTANCE_COUNT":return c;case"UPDATE_TASK":return i;case"DEPLOY_TENANT_PROCESS_DEFINITION":return f;case"DEPLOY_CUSTOM_JAR":return E&&v}return!1}}},12132:(e,t,n)=>{n.d(t,{W:()=>p});var r=n(24328),a=n(22241),l=n(35674),o=n(52730),s=n(29627),c=n(14834),i=n(35782),u=n(36571),m=n(35860);const p=e=>{let{processInstanceComments:t,taskId:n,isOpen:p}=e;const{updateTaskState:f}=(0,r.useContext)(c.O)||{},d=(0,o.useSelector)(l.ZP.selectors.getWorkflowPath),g=(0,o.useSelector)(l.ZP.selectors.getWorkflowEnvironmentUrl),h=(0,o.useSelector)(l.ZP.selectors.getTenant),b=(0,s._)(),[y,v]=(0,r.useState)([]),[x,E]=(0,r.useState)(!1),O=(0,u.Z)()("UPDATE_TASK")&&(0,m.tg)(p);(0,r.useEffect)((()=>{v(t||[])}),[t]);const C=(0,r.useCallback)((e=>{O&&(E(!0),b((0,a.tZe)({workflowPath:d,environment:g,tenant:h,taskId:n,comment:e}).then((()=>(0,a.yW4)({workflowPath:d,environment:g,tenant:h,taskId:n})))).then((e=>{let{processInstanceComments:t}=e;v(t||[]),null==f||f(n,{processInstanceComments:t})})).catch(i.R).finally((()=>E(!1))))}),[g,n,h,d,b,f,O]);return{comments:y,requestIsInProgress:x,writeComment:C,readOnly:!O}}},14834:(e,t,n)=>{n.d(t,{O:()=>a});var r=n(24328);const a=n.n(r)().createContext(null);a.displayName="WorkflowTasksContext"},17569:(e,t,n)=>{n.d(t,{o:()=>o});var r=n(24328),a=n(17440);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const o=e=>{let{actions:t,dispatch:n}=e;return(0,r.useMemo)((()=>Object.entries(t).reduce(((e,t)=>{let[r,o]=t;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}({},e,{[r]:(0,a.pipe)(o,n)})}),{})),[n,t])}},36852:(e,t,n)=>{n.d(t,{C:()=>p});var r=n(24328),a=n(52730),l=n(17440),o=n(22241),s=n(35674);function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=[],m=e=>console.error("Collaboration error",e),p=e=>{let{objectIds:t=u,objectTypes:n,enabled:i=!0}=e;const p=(0,a.useSelector)(s.ZP.selectors.getEntity),f=(0,a.useSelector)(s.ZP.selectors.getTenant),d=(0,a.useSelector)(s.ZP.selectors.getCollaborationPath),g=(0,a.useSelector)(s.ZP.selectors.isCollaborationEnabled)&&i,[h,b]=(0,r.useState)(null),[y,v]=(0,r.useState)([]),[x,E]=(0,r.useState)(null),[O,C]=(0,r.useState)(null),[w,S]=(0,r.useState)(!1),[k,P]=(0,r.useState)(!1),_=(0,r.useCallback)((e=>{E((t=>c({},t,e)))}),[]),j=null==p?void 0:p.uri,M=(0,r.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(g&&j&&!(0,o.ZiX)(j)){const n=e=>{console.warn("Collaboration error",e),E(null)};(0,l.pipe)(o.$oF,(0,l.andThen)((0,l.map)((0,l.props)(["objectId","comments"]))),(0,l.andThen)(l.fromPairs),(0,l.andThen)(t?E:_),(0,l.otherwise)(n))({uris:e,tenant:f,collaborationPath:d})}else E(null)}),[_,d,j,g,f]);(0,r.useEffect)((()=>{M(t,!0)}),[t,M]);const T=(0,r.useCallback)(((e,t)=>{(0,o.liG)({collaborationPath:d,tenant:f,relatedObjectUri:e,pageToken:t}).then((e=>{let{items:n,nextPageToken:r}=e;v((e=>t?(0,l.uniqBy)((0,l.prop)("commentId"),[...e,...n]):n)),b(r)})).catch(m)}),[d,f]),I=(0,r.useCallback)((e=>{P(!0),(0,o.d7q)({collaborationPath:d,tenant:f,commentId:e}).then(C).catch(m).finally((()=>P(!1)))}),[d,f]),N=(0,r.useCallback)((e=>{let{content:t,namedUsers:n,objectType:r,uri:a,relatedObjectUris:l}=e;S(!0);const s={objectId:a,content:t,relatedObjectUris:l,objectType:r,visibility:"public",namedUsers:n,permanentLink:""};return(0,o.Yrx)({collaborationPath:d,tenant:f,data:s}).then((e=>{let[t]=e;return((e,t)=>{C(e),E((n=>c({},n,{[t]:[...n[t]||[],{commentId:e.commentId,replies:0,status:"open"}]}))),v((t=>[e,...t]))})(t,a)})).catch(m).finally((()=>S(!1)))}),[d,f]),Z=(0,r.useCallback)((e=>{let{content:t,namedUsers:n,objectType:r,uri:a,relatedObjectUris:s,commentId:i,replies:u}=e;S(!0);const p={objectId:a,content:t,relatedObjectUris:s,objectType:r,visibility:"public",namedUsers:n,permanentLink:"",commentId:i,replies:u};return(0,o.uAg)({collaborationPath:d,tenant:f,data:p}).then((e=>(e=>{C(e),v((0,l.map)((0,l.when)((0,l.propEq)("commentId",e.commentId),(0,l.always)(e))))})(c({},e,{replies:u})))).catch(m).finally((()=>S(!1)))}),[d,f]),R=(0,r.useCallback)((e=>{let{uri:t,commentId:n}=e;S(!0),(0,o.YFy)({collaborationPath:d,tenant:f,commentId:n}).then((()=>((e,t)=>{C(null),E((n=>{const r=n[t]||[];return c({},n,{[t]:r.filter((t=>t.commentId!==e))})})),v((t=>t.filter((t=>t.commentId!==e))))})(n,t))).catch(m).finally((()=>S(!1)))}),[d,f]),L=(0,r.useCallback)(((e,t,n)=>{const r="resolve"===e.action?"resolved":"open";C("resolved"===r?e=>{if(e)return null}:t=>{if(t)return c({},t,{replies:[...t.replies,e]})}),E((e=>c({},e,{[t]:(e[t]||[]).map((e=>e.commentId===n?c({},e,{status:r,replies:e.replies+1}):e))}))),v((t=>t.map((t=>t.commentId===n?c({},t,{status:r,replies:[...t.replies,e]}):t))))}),[]),F=(0,r.useCallback)((e=>{let{content:t,namedUsers:n,commentId:r,action:a,uri:l}=e;S(!0);const s={content:t,action:a,namedUsers:n};return(0,o.PP2)({collaborationPath:d,tenant:f,commentId:r,data:s}).then((e=>{let[t]=e;return L(t,l,r)})).catch(m).finally((()=>S(!1)))}),[d,f,L]),D=(0,r.useCallback)((e=>{let{commentId:t,uri:n}=e;F({content:"",namedUsers:[],commentId:t,action:"resolve",uri:n})}),[F]),z=(0,r.useCallback)((e=>{let{commentId:t,uri:n}=e;F({content:"",namedUsers:[],commentId:t,action:"reopen",uri:n})}),[F]);return{clearCurrentComment:(0,r.useCallback)((()=>{C(null)}),[]),comments:y,commentsMap:x,createComment:N,createReply:F,currentComment:O,deleteComment:R,editComment:Z,getComment:I,getComments:T,getCommentsCount:M,loading:k,objectTypes:n,pageToken:h,reOpenThread:z,resolveThread:D,sending:w}}},19278:(e,t,n)=>{n.d(t,{m:()=>s});var r=n(22241),a=n(52730),l=n(35674),o=n(24328);const s=e=>{let{entities:t,entity:n,onFinishRequest:s,onStartRequest:c}=e;const i=(0,a.useSelector)(l.ZP.selectors.getTenant),u=(0,a.useSelector)(l.ZP.selectors.getDtssPath),[m,p]=(0,o.useState)(!1);return{isPending:m,sendMarkAsNotMatchRequest:(0,o.useCallback)((()=>{null==c||c(),p(!0);const e={dtssPath:u,customerTenant:i,entity:n,entities:t};((0,r.biM)(n)?(0,r.bMg)(e):(0,r.fZN)(e)).finally((()=>{null==s||s(),p(!1)}))}),[u,t,n,s,c,i])}}},23044:(e,t,n)=>{n.d(t,{s:()=>u});var r=n(24328),a=n(52730),l=n(35674),o=n(22241),s=n(18907),c=n(29627),i=n(17440);const u=e=>{let{enabled:t,entity:n,filter:u,onFinishLoading:m,onStartLoading:p,options:f,page:d,rowsPerPage:g,sorting:h}=e;const{order:b,field:y}=h||{},[v,x]=(0,r.useState)(0),[E,O]=(0,r.useState)([]),[C,w]=(0,r.useState)({}),S=(0,a.useSelector)(l.ZP.selectors.getTenant),k=(0,a.useSelector)(l.ZP.selectors.getDtssPath),P=(0,a.useSelector)(l.ZP.selectors.getDataTenants),_=(0,r.useMemo)((()=>({dtssPath:k,dataTenants:P,entity:n,customerTenant:S,dtssRequest:o.Rgl})),[k,P,n,S]),j=(0,r.useCallback)((0,o.U_T)(_,o.SP6),[_]),M=(0,s.a)(j),T=(0,s.a)(o.bFH),I=(0,i.prop)("uri",n),N=(0,c._)(),Z=(0,r.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t||(0,o.ZiX)(I))return x(0),O([]),void w({});null==p||p(),N((0,o.biM)(n)?T({dtssPath:k,entity:n,customerTenant:S,offset:d*g,max:g,force:e}):M({entityUri:I,offset:d*g,max:g,filter:u,sort:y,order:b,force:e,deep:f.showTransitiveMatches?void 0:1,activeness:f.showInactiveEntities?o.YJ7.ALL:o.YJ7.ACTIVE_ONLY})).then((e=>{const{response:t,total:n,originalResponse:r}=e;x(n),O(t),(0,o.B1H)(r).length>0&&w((0,o.KPC)(r))})).finally((()=>{null==m||m()}))}),[k,t,I,y,u,T,M,m,p,f,b,d,g,N,S]);return(0,r.useEffect)((()=>{Z()}),[Z]),{total:v,matches:E,entitiesMap:C,loadMatches:(0,r.useCallback)((()=>{Z(!0)}),[Z])}}},50447:(e,t,n)=>{n.d(t,{_:()=>c});var r=n(24328),a=n(52730),l=n(35674),o=n(22241),s=n(79573);const c=e=>{let{entities:t,entity:n,onFinishRequest:c,onStartRequest:i,onError:u=s.ZT}=e;const m=(0,a.useSelector)(l.ZP.selectors.getTenant),p=(0,a.useSelector)(l.ZP.selectors.getDtssPath),[f,d]=(0,r.useState)(!1);return{isPending:f,sendMergeAllRequest:(0,r.useCallback)((()=>{null==i||i(),d(!0);const e={dtssPath:p,customerTenant:m,entity:n,entities:t};((0,o.biM)(n)?(0,o.uJQ)(e):(0,o.OxG)(e)).catch(u).finally((()=>{null==c||c(),d(!1)}))}),[p,t,n,c,i,m])}}},18907:(e,t,n)=>{n.d(t,{a:()=>l});var r=n(24328),a=n(17440);const l=e=>(0,r.useCallback)((e=>{let t={},n=[];return async r=>{let{max:l,offset:o,force:s}=r,c=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(r,["max","offset","force"]),i=s;const u=Object.keys(t);if(i=i||!(0,a.equals)(Object.keys(c),u),!i)for(const e of u)i=i||!(0,a.equals)(t[e],c[e]);return i&&(n=await e(c),t=c),{response:n.slice(o,o+l),total:n.length,originalResponse:n}}})(e),[e])},64651:(e,t,n)=>{n.d(t,{n:()=>o});var r=n(24328),a=n(22241),l=n(17440);const o=e=>{let{reversedContextLabels:t}=e;return{getRelationTypesOptions:(0,r.useCallback)(((e,n)=>{const r={},o=(0,l.pipe)(a.PjQ,(0,l.tap)((e=>r[e]=(0,l.propOr)(0,e,r)+1))),s=(0,l.ascend)((0,l.prop)("label")),c=(0,l.curry)(((e,n)=>{let{uri:r,label:l,startObject:s,endObject:c}=n;const i=e===(t?a.Nsj.OUT:a.Nsj.IN)?s:c;return{label:{directionalLabel:o(i),typeLabel:l},value:`${r},${e}`,startObject:s,endObject:c}}));return e.map(c(a.Nsj.IN)).concat(n.map(c(a.Nsj.OUT))).map((0,l.evolve)({label:e=>{let{directionalLabel:t,typeLabel:n}=e;return t?r[t]>1?`${t} (${n})`:t:n}})).sort(s)}),[t]),fromEditorValue:(0,r.useCallback)(((e,t)=>n=>{const[r,o]=n.value.split(",");return{type:(o===a.Nsj.IN?e:t).find((0,l.propEq)("uri",r)),direction:o}}),[]),toEditorValue:(0,r.useCallback)(((e,t)=>t.find((0,l.propEq)("value",`${e.relationType},${e.direction}`))),[])}}},10:(e,t,n)=>{n.d(t,{U:()=>s});var r=n(24328),a=n(52730),l=n(22241),o=n(35674);const s=()=>{const[e,t]=(0,r.useState)([]),n=(0,a.useSelector)(o.ZP.selectors.getTenant),s=(0,a.useSelector)(o.ZP.selectors.getServicesPath),c=e=>{console.warn("Users error",e),t([])};return(0,r.useEffect)((()=>{(0,l.kz_)({tenant:n,servicesPath:s}).then((e=>{let{array:n}=e;return t(n)})).catch(c)}),[n,s]),e}}}]);