@reltio/remotes 1.4.1086 → 1.4.1087
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/1396.js +1 -0
- package/{1466.js → 1635.js} +1 -1
- package/183.js +1 -0
- package/1867.js +1 -1
- package/1920.js +1 -0
- package/2605.js +1 -0
- package/2890.js +1 -0
- package/3100.js +2 -0
- package/{2521.js.LICENSE.txt → 3100.js.LICENSE.txt} +0 -0
- package/3405.js +1 -0
- package/350.js +1 -0
- package/3980.js +1 -0
- package/4132.js +1 -0
- package/4190.js +1 -0
- package/4277.js +1 -0
- package/4279.js +1 -0
- package/4361.js +1 -0
- package/4689.js +1 -0
- package/{727.css → 4765.css} +0 -0
- package/4765.js +1 -0
- package/4803.js +1 -1
- package/{1707.js → 4843.js} +1 -1
- package/4944.js +1 -0
- package/5400.js +1 -0
- package/5686.js +1 -0
- package/5701.js +1 -0
- package/5709.js +1 -0
- package/5714.js +1 -0
- package/5884.js +1 -0
- package/5888.js +1 -0
- package/597.js +1 -0
- package/6248.js +1 -0
- package/6250.js +1 -0
- package/6425.js +1 -0
- package/{590.css → 6596.css} +0 -0
- package/6596.js +1 -0
- package/663.js +1 -0
- package/6685.js +1 -0
- package/6897.js +2 -0
- package/{4589.js.LICENSE.txt → 6897.js.LICENSE.txt} +0 -0
- package/6947.js +2 -0
- package/{7478.js.LICENSE.txt → 6947.js.LICENSE.txt} +0 -0
- package/7215.js +1 -0
- package/{3247.css → 7560.css} +0 -0
- package/7560.js +1 -0
- package/7638.js +1 -0
- package/{5411.css → 77.css} +0 -0
- package/77.js +1 -0
- package/7737.js +1 -1
- package/781.js +2 -0
- package/{888.js.LICENSE.txt → 781.js.LICENSE.txt} +0 -0
- package/8047.js +1 -0
- package/8122.js +1 -0
- package/8238.js +1 -0
- package/8419.js +1 -0
- package/8421.js +1 -0
- package/845.js +1 -0
- package/8716.js +2 -0
- package/{6952.js.LICENSE.txt → 8716.js.LICENSE.txt} +0 -0
- package/{2400.js → 8753.js} +1 -1
- package/8789.js +1 -0
- package/8794.js +1 -1
- package/8969.js +1 -0
- package/9290.js +1 -0
- package/9446.js +1 -0
- package/9551.js +1 -0
- package/9678.js +1 -0
- package/9774.js +1 -0
- package/main.js +1 -1
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
- package/1050.js +0 -1
- package/1071.js +0 -1
- package/1157.js +0 -1
- package/174.js +0 -1
- package/1962.js +0 -1
- package/229.js +0 -1
- package/2521.js +0 -2
- package/2547.js +0 -1
- package/2994.js +0 -1
- package/3027.js +0 -1
- package/3247.js +0 -1
- package/3319.js +0 -1
- package/3431.js +0 -1
- package/3628.js +0 -1
- package/3716.js +0 -1
- package/3845.js +0 -1
- package/4397.js +0 -1
- package/4478.js +0 -1
- package/4589.js +0 -2
- package/4614.js +0 -1
- package/5092.js +0 -1
- package/5108.js +0 -1
- package/5242.js +0 -1
- package/5406.js +0 -1
- package/5411.js +0 -1
- package/545.js +0 -1
- package/546.js +0 -1
- package/5674.js +0 -1
- package/590.js +0 -1
- package/6115.js +0 -1
- package/614.js +0 -1
- package/6156.js +0 -1
- package/64.js +0 -1
- package/6517.js +0 -1
- package/6538.js +0 -1
- package/6817.js +0 -1
- package/6952.js +0 -2
- package/696.js +0 -1
- package/727.js +0 -1
- package/7422.js +0 -1
- package/7478.js +0 -2
- package/7830.js +0 -1
- package/7890.js +0 -1
- package/8040.js +0 -1
- package/8405.js +0 -1
- package/86.js +0 -1
- package/8732.js +0 -1
- package/8741.js +0 -1
- package/8862.js +0 -1
- package/888.js +0 -2
- package/8899.js +0 -1
- package/9109.js +0 -1
- package/9147.js +0 -1
package/3027.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3027],{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:()=>g});var a=l(13980),r=l.n(a),n=l(24328),i=l.n(n),c=l(71153),o=l.n(c),s=l(28899),p=l(87918),d=l.n(p),f=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 u(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){E(e,t,l[t])}))}return e}function E(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}const y=e=>{let{classes:t={},count:l,rowsPerPageOptions:a,page:r,onChangePage:c,rowsPerPage:p,onChangeRowsPerPage:E,basicTableRef:y,labelRowsPerPage:g}=e;const v=h(),x=(0,n.useCallback)((()=>{(0,m.pathOr)(m.identity,["current","resetScrollbarPosition"],y)()}),[y]),_=(0,n.useCallback)((e=>{c(e),x()}),[c,x]),z=(0,n.useCallback)((e=>{c(0),E(e),x()}),[c,E,x]);return i().createElement(s.Z,{classes:u({},t,{root:o()(v.pagination,t.root),select:o()(v.select,t.select),caption:v.caption,selectRoot:v.selectRoot,actions:v.actions}),component:"div",labelRowsPerPage:g||d().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:l,count:a}=e;return d().text("${fromRow}-${toRow} of ${countRows}",{fromRow:d().number(t,"0,0"),toRow:d().number(l,"0,0"),countRows:d().number(a,"0,0")})},count:l,rowsPerPageOptions:a,page:r,onChangePage:(0,m.pipe)((0,m.nthArg)(1),_),rowsPerPage:p,onChangeRowsPerPage:(0,m.pipe)(f.NA,z)})};y.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 g=i().memo(y)},1730:(e,t,l)=>{l.d(t,{Z:()=>m});var a=l(27556),r=l(13980),n=l.n(r),i=l(24328),c=l.n(i);function o(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){s(e,t,l[t])}))}return e}function s(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}const p=(0,l(79692).Z)((e=>({"basic-view__paper":o({display:"flex",flexDirection:"column"},e.basicView)})));function d(){return d=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},d.apply(this,arguments)}const f=(0,i.forwardRef)(((e,t)=>{let{children:l,className:r}=e,n=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,["children","className"]);const i=p();return c().createElement(a.Z,d({ref:t,className:r,classes:{root:i["basic-view__paper"]}},n),l)}));f.displayName="BasicView",f.propTypes={children:n().node,className:n().string};const m=f},28831:(e,t,l)=>{l.d(t,{Z:()=>d});var a=l(24328),r=l.n(a),n=l(71153),i=l.n(n),c=l(39475),o=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 d=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(),d={icon:o.Z,className:n.collapseButton,iconClassName:i()({[n.expandLess]:t})},f={tooltipTitle:l};return r().createElement(c.k,p({},d,f,a))}},79002:(e,t,l)=>{l.d(t,{B9:()=>h,tC:()=>m,ZP:()=>u});var a=l(24328),r=l.n(a),n=l(17440),i=l(90436),c=l(77277);function o(){return o=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},o.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 d(){return d=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},d.apply(this,arguments)}const f=(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.primary,fontSize:"20px",fontWeight:500,lineHeight:"24px",letterSpacing:"0.25px",textAlign:"center"},"& $secondaryText":{color:e.palette.text.secondary,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",o({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",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),r().createElement("mask",{id:"SelectAttributes_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},r().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),r().createElement("g",{mask:"url(#SelectAttributes_svg__a)"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#SelectAttributes_svg__paint0_linear_0_19219)"}),r().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z",fill:"url(#SelectAttributes_svg__paint1_linear_0_19219)"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().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"}),r().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),r().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),r().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"}),r().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"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M92.514 108v-8h-2V140.365h11.178v-2h-9.178V110h9.178v-2h-9.178z",fill:"#2B98F0"}),r().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),r().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"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zM148 37a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z",fill:"#979797"})),r().createElement("defs",null,r().createElement("linearGradient",{id:"SelectAttributes_svg__paint0_linear_0_19219",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),r().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"SelectAttributes_svg__paint1_linear_0_19219",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:.01}),r().createElement("stop",{offset:1})))),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",d({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}))))},u=e=>{let{variant:t=m.full,LogoRenderer:l=h.SEARCH_RESULTS,text:a,secondaryText:o,buttonTitle:s,onClick:p=n.identity,access:d}=e;const u=f(),E=d&&s;return r().createElement("div",{className:u.root},r().createElement(l,{className:u[`${t}`]}),r().createElement("div",{className:u.textBox},r().createElement(i.Z,{variant:"h5",classes:{h5:u.text}},a),o&&r().createElement(i.Z,{variant:"subtitle1",classes:{subtitle1:u.secondaryText}},o)),E&&r().createElement(c.Z,{className:u.button,variant:"contained",color:"primary",onClick:p},s))}},20146:(e,t,l)=>{l.d(t,{Z:()=>f});var a=l(24328),r=l.n(a),n=l(52730),i=l(71153),c=l.n(i),o=l(90436),s=l(8813),p=l(35674);const d=(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"}}),f=e=>{let{entity:t,className:l,size:a="small"}=e;const i=d(),f=(0,n.useSelector)(p.ZP.selectors.getMetadata),m=t.type,h=(0,s.nt9)(f,m)||{},u=(0,s.VD3)(f,h,"typeColor")||s.rSc.palette.primary.main;return r().createElement(o.Z,{style:{backgroundColor:u,color:s.P6Y.Colors.getColor(u)?"#FFFFFF":"#212121"},className:c()(i[`entityType-${a}`],l),component:"div"},(0,s.jFi)(f,t))}},33109:(e,t,l)=>{l.d(t,{Z:()=>_});var a=l(24328),r=l.n(a),n=l(13980),i=l.n(n),c=l(71153),o=l.n(c),s=l(52730),p=l(17440),d=l(90436),f=l(80030),m=l(87918),h=l.n(m),u=l(8813),E=l(35674),y=l(37573),g=l(20146);const v=(0,l(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"}}}))),x=e=>{let{className:t,entity:l,children:n,classes:i}=e;const c=v({classes:i}),m=(0,s.useSelector)(E.ZP.selectors.getMetadata),x=(0,a.useCallback)((()=>{navigator.clipboard.writeText((0,u.BTI)(l))}),[l]);if((0,p.isNil)(l))return null;const _=(0,u.idV)(l.label),z=l.secondaryLabel,b=(0,u.ptG)(m,l),M=(0,u.Fn9)(l),B=l.uri,w=(0,u.BTI)(l);return r().createElement("div",{className:o()(c.profileBandWrapper,t)},r().createElement("div",{className:o()(c.profileBand,{[c.inactive]:!M}),"data-entity-uri":B},r().createElement(y.Z,{key:l.uri,entity:l,avatarClassName:c.profileIcon,imageClassName:c.imageProfileIcon}),r().createElement("div",{className:c.profileInfo},r().createElement("div",null,r().createElement(d.Z,{variant:"h6",className:c.label},_),z&&r().createElement(d.Z,{variant:"subtitle2",className:c.secondaryLabel},z),b&&r().createElement(d.Z,{variant:"subtitle1",className:c.businessCard},b)),r().createElement("div",{className:c.specialInfo},r().createElement("div",{className:c.entityType},r().createElement(g.Z,{entity:l,size:"medium",className:c.badge}),!(0,u.ZiX)(B)&&r().createElement(f.ZP,{title:h().text("Copy to clipboard")},r().createElement(d.Z,{display:"inline",variant:"body2",className:c.entityId,onClick:x},h().text("Entity ID"),": ",w))))),n&&r().createElement("div",null,n)))};x.propTypes={className:i().string,entity:i().object,children:i().node,classes:i().object};const _=x},91026:(e,t,l)=>{l.d(t,{Z:()=>E});var a=l(24328),r=l.n(a),n=l(87918),i=l.n(n),c=l(71153),o=l.n(c),s=l(8813);const p=(0,l(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 d=l(37573),f=l(18527),m=l(83088),h=l(20146);function u(){return u=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},u.apply(this,arguments)}const E=(0,a.memo)((e=>{let{entity:t,classes: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,["entity","classes"]);const n=p(),{secondaryLabel:c,label:E,container:y}=l,g=(0,s.idV)(t.label),{secondaryLabel:v}=t;return r().createElement("div",u({className:o()(n.container,y)},a),r().createElement(d.Z,{entity:t,imageClassName:n.image}),r().createElement("div",{className:n.info},r().createElement(f.Z,{value:(0,s.wwR)(t),className:n.link},r().createElement(m.C,{value:g,placement:"top",showOnExceededHeight:!0},r().createElement("div",{className:o()(n.label,E)},g))),v&&r().createElement(m.C,{value:v,placement:"top",showOnExceededHeight:!0},r().createElement("div",{className:o()(n.secondaryLabel,c)},v)),r().createElement("div",{className:n.thirdRow},r().createElement(h.Z,{entity:t,size:"medium"}),r().createElement("div",{className:n.entityId},r().createElement("div",{className:n.entityIdLabel},i().text("ID:")),r().createElement("div",{className:n.entityIdValue},(0,s.BTI)(t))))))}))}}]);
|
package/3247.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3247],{50548:(e,t,n)=>{n.d(t,{l:()=>i});var r=n(24328),o=n.n(r);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 i=(e,t,n)=>{if(e&&t){const i=(0,r.memo)(n);return n=>o().createElement(e.Consumer,null,(e=>o().createElement(i,a({},n,t(e,n)))))}return n}},25601:(e,t,n)=>{n.d(t,{K:()=>b,N:()=>g});var r=n(24328),o=n.n(r),a=n(71153),i=n.n(a),l=n(77277),s=n(12231),c=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 d=n(79573),p=n(83088),m=n(39475);function h(){return h=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},h.apply(this,arguments)}let g;!function(e){e.iconButton="iconButton",e.button="button",e.menuItem="menuItem"}(g||(g={}));const b=(0,r.forwardRef)(((e,t)=>{let{className:n,mode:r=g.iconButton,label:a,disabled:b,icon:f,onClick:y=d.ZT,onMenuClose:v=d.ZT}=e,x=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","mode","label","disabled","icon","onClick","onMenuClose"]);const E=u();return(()=>{switch(r){case"iconButton":return o().createElement(m.k,h({disabled:b,className:i()(E.iconButton,n),size:"S",tooltipTitle:a,onClick:y,icon:f},x));case"button":return o().createElement(l.Z,h({className:i()(E.button,n),disabled:b,startIcon:o().createElement(f,null),onClick:y,color:"primary",classes:{startIcon:E.startIcon,label:E.label}},x),o().createElement(p.C,{value:a},o().createElement("div",{className:E.overflowStyle},a)));case"menuItem":{const e=()=>{v(),y()};return o().createElement(s.Z,h({classes:{root:E.menuItem},onClick:e,disabled:b,ref:t},x),o().createElement(o().Fragment,null,o().createElement(f,{className:E.menuIcon}),o().createElement(c.Z,{classes:{root:E.menuText}},a)))}}})()}));b.displayName="ActionButton"},44938:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(24328),o=n.n(r),a=n(50166),i=n(44443),l=n(8813);const s=(0,n(79692).Z)({item:{overflow:"hidden"}});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){u(e,t,n[t])}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.memo)((e=>{let{width:t=0,height:n=0,defaultItemSize:u,data:d,children:p,itemKey:m,showNotMeasuredItems:h,listRef:g}=e;const b=s(),f=(0,r.useRef)({}),[y,v]=(0,r.useState)({}),x=(0,r.useCallback)((0,l.DsO)((()=>{v(c({},f.current))})),[]),E=(0,r.useCallback)(((e,t)=>m?m(t,e):t),[m]),w=(0,r.useRef)(),C=g||w;C.current&&C.current.resetAfterIndex(0,!1);const O=(0,r.useMemo)((()=>e=>{let{data:t,index:n,style:r}=e;const a=E(t,n);return o().createElement("div",{style:r,className:b.item},o().createElement("div",{style:h?void 0:{visibility:a in y?void 0:"hidden"}},o().createElement(i.Z,{handleHeight:!0,onResize:(e,t)=>{f.current[a]!==t&&(((e,t)=>{f.current=c({},f.current,{[e]:t})})(a,t),x())}}),p({data:t,index:n})))}),[p,h,E,x,!h&&y]);return o().createElement(a.VariableSizeList,{ref:C,width:t,height:n,itemCount:d.length,itemData:d,itemSize:e=>y[(e=>E(d,e))(e)]||u,itemKey:m},O)}))},42011:(e,t,n)=>{n.d(t,{Z:()=>y});var r=n(13980),o=n.n(r),a=n(24328),i=n.n(a),l=n(71153),s=n.n(l),c=n(28899),u=n(87918),d=n.n(u),p=n(79573),m=n(17440);const h=(0,n(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 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 f=e=>{let{classes:t={},count:n,rowsPerPageOptions:r,page:o,onChangePage:l,rowsPerPage:u,onChangeRowsPerPage:b,basicTableRef:f,labelRowsPerPage:y}=e;const v=h(),x=(0,a.useCallback)((()=>{(0,m.pathOr)(m.identity,["current","resetScrollbarPosition"],f)()}),[f]),E=(0,a.useCallback)((e=>{l(e),x()}),[l,x]),w=(0,a.useCallback)((e=>{l(0),b(e),x()}),[l,b,x]);return i().createElement(c.Z,{classes:g({},t,{root:s()(v.pagination,t.root),select:s()(v.select,t.select),caption:v.caption,selectRoot:v.selectRoot,actions:v.actions}),component:"div",labelRowsPerPage:y||d().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return d().text("${fromRow}-${toRow} of ${countRows}",{fromRow:d().number(t,"0,0"),toRow:d().number(n,"0,0"),countRows:d().number(r,"0,0")})},count:n,rowsPerPageOptions:r,page:o,onChangePage:(0,m.pipe)((0,m.nthArg)(1),E),rowsPerPage:u,onChangeRowsPerPage:(0,m.pipe)(p.NA,w)})};f.propTypes={classes:o().object,rowsPerPageOptions:o().arrayOf(o().number),count:o().number,page:o().number,onChangePage:o().func,rowsPerPage:o().number,onChangeRowsPerPage:o().func,basicTableRef:o().shape({current:o().object}),labelRowsPerPage:o().string};const y=i().memo(f)},1730:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(27556),o=n(13980),a=n.n(o),i=n(24328),l=n.n(i);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=(0,n(79692).Z)((e=>({"basic-view__paper":s({display:"flex",flexDirection:"column"},e.basicView)})));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)}const p=(0,i.forwardRef)(((e,t)=>{let{children:n,className:o}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","className"]);const i=u();return l().createElement(r.Z,d({ref:t,className:o,classes:{root:i["basic-view__paper"]}},a),n)}));p.displayName="BasicView",p.propTypes={children:a().node,className:a().string};const m=p},22118:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),o=n.n(r),a=n(87918),i=n.n(a),l=n(77277),s=n(8629),c=n(49429),u=n(38724),d=n(55999),p=n(79249);const m=(0,n(79692).Z)({paper:{minHeight:"180px"},title:{padding:"16px 16px 10px 16px",fontSize:"20px",fontWeight:500,letterSpacing:"0.25px",lineHeight:"24px"},content:{padding:"0 16px"},contentText:{marginBottom:0,fontSize:"16px",letterSpacing:"0.15px",lineHeight:"24px"},actionButtons:{display:"flex",paddingTop:"4px",fontSize:"14px",fontWeight:500,letterSpacing:0,lineHeight:"16px","& > div":{marginLeft:"auto"}},discardButton:{marginRight:"8px"}}),h=e=>{let{open:t,title:n,content:r,onCancel:a,cancelCaption:h=i().text("Cancel"),onDiscard:g,discardCaption:b="",onSave:f,saveCaption:y=i().text("Save"),disabledSave:v=!1}=e;const x=m();return o().createElement(s.Z,{open:t,onClose:a,classes:{paperScrollPaper:x.paper}},o().createElement(p.Z,{classes:{root:x.title}},n),o().createElement(u.Z,{classes:{root:x.content}},o().createElement(d.Z,{classes:{root:x.contentText}},r)),o().createElement(c.Z,{className:x.actionButtons,disableSpacing:!0},a&&o().createElement(l.Z,{onClick:a},h),o().createElement("div",null,g&&o().createElement(l.Z,{onClick:g,classes:{root:x.discardButton}},b),o().createElement(l.Z,{onClick:f,color:"primary",disabled:v,autoFocus:!0},y))))}},83415:(e,t,n)=>{n.d(t,{n:()=>y});const r=(0,n(79692).Z)({item:{marginBottom:"16px"},dense:{marginBottom:0}});var o=n(55962),a=n(24328),i=n.n(a),l=n(52730),s=n(35674),c=n(8813),u=n(76141),d=n(71153),p=n.n(d),m=n(17440),h=n(85596),g=n(93555),b=n(72283);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 y=e=>{let{connection:t,relatedEntity:n,inRelationTypes:d=[],outRelationTypes:y=[],showEmptyEditors:v,entityErrorMessage:x,onChangeAttribute:E,onRemoveAttribute:w,onAddAttributes:C,onChangeRelationType:O,onChangeEntity:T}=e;const R=r(),{relation:S,entity:P}=t,{attributes:N,uri:j,type:I="",direction:k}=S||{},_=Boolean(I),L=(0,l.useSelector)(s.ZP.selectors.getMetadata),Z=(0,a.useMemo)((()=>S&&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}({attributes:N},(0,c.p2l)(S))),[S,N]),A=(0,a.useMemo)((()=>(0,c.xF8)(L,I)),[I,L]),U=(0,a.useMemo)((()=>_?(0,c.jWj)(k===c.Nsj.OUT,L,[(0,c.V3K)(L,I)]):(0,m.uniq)((0,c.jWj)(!0,L,y).concat((0,c.jWj)(!1,L,d)))),[_,I,L,d,y]),D=(0,l.useSelector)((e=>s.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]))),z=(0,a.useMemo)((()=>S&&{relationType:S.type,direction:S.direction}),[S]),M=(0,a.useMemo)((()=>P&&{entityUri:P.uri,entityType:P.type,entityLabel:(0,c.idV)(P.label)}),[P]),B=(0,a.useMemo)((()=>P&&P.uri?d.filter((0,c.eHk)(!1,P,n,L)):d),[P,d,n,L]),F=(0,a.useMemo)((()=>P&&P.uri?y.filter((0,c.eHk)(!0,P,n,L)):y),[P,y,n,L]);(0,a.useEffect)((()=>{const{type:e,direction:t}=(0,c.z7d)(d,y)||{};!I&&e&&O&&O({type:e.uri,direction:t})}),[I,d,y,O]),(0,o.D)((()=>{const{type:e,direction:t}=(0,c.z7d)(B,F)||{};!I&&e&&O({type:e.uri,direction:t})}),[I,P,B,F,T]);const H=(0,a.useCallback)((e=>{let{type:t,direction:n}=e;O({type:t.uri,direction:n})}),[O]);return i().createElement(i().Fragment,null,O&&i().createElement(h.Z,{className:R.item,relation:z,metadata:L,inRelationTypes:d,outRelationTypes:y,onChange:H}),T&&i().createElement(g.Z,{errorMessage:x,className:R.item},i().createElement(b.Z,{key:I,className:p()({[R.dense]:x}),entity:M||{},entityTypesUris:U,max:20,globalSearchRequestOptions:D,mode:c.fO_.EDITING,onChange:T,onCreate:void 0,metadata:L,attributeTypesSelectionStrategy:void 0})),I&&i().createElement(u.Z,{attrTypes:A,entity:Z,showEmptyEditors:v,mode:c.fO_.EDITING,parentUri:j,onAddAttributes:C,onChangeAttribute:E,onDeleteAttribute:w}))}},85596:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(24328),o=n.n(r),a=n(13980),i=n.n(a),l=n(8813),s=n(17440),c=n(64651),u=n(65629);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)}const p=e=>{let{relation:t={},inRelationTypes:n=[],outRelationTypes:a=[],onChange:i=s.identity,applyFirstByDefault:l=!1,reversedContextLabels:p=!1}=e,m=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["relation","inRelationTypes","outRelationTypes","onChange","applyFirstByDefault","reversedContextLabels"]);const{getRelationTypesOptions:h,fromEditorValue:g,toEditorValue:b}=(0,c.n)({reversedContextLabels:p}),f=(0,r.useMemo)((()=>h(n,a)),[h,n,a]),y=(0,r.useCallback)((0,s.pipe)(g(n,a),i),[g,n,a,i]),v=!!t.relationType;return(0,r.useEffect)((()=>{l&&f.length&&!v&&y(f[0])}),[f,l,y,v]),o().createElement(u.Z,d({value:b(t,f),options:f,onChange:y},m))};p.propTypes={className:i().string,relation:l.bNA,inRelationTypes:i().arrayOf(l.IYE),outRelationTypes:i().arrayOf(l.IYE),applyFirstByDefault:i().bool,reversedContextLabels:i().bool,onChange:i().func};const m=p},20146:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),o=n.n(r),a=n(52730),i=n(71153),l=n.n(i),s=n(90436),c=n(8813),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 i=d(),p=(0,a.useSelector)(u.ZP.selectors.getMetadata),m=t.type,h=(0,c.nt9)(p,m)||{},g=(0,c.VD3)(p,h,"typeColor")||c.rSc.palette.primary.main;return o().createElement(s.Z,{style:{backgroundColor:g,color:c.P6Y.Colors.getColor(g)?"#FFFFFF":"#212121"},className:l()(i[`entityType-${r}`],n),component:"div"},(0,c.jFi)(p,t))}},92934:(e,t,n)=>{n.d(t,{Q:()=>c});var r=n(24328),o=n.n(r),a=n(87918),i=n.n(a),l=n(8813),s=n(72108);const c=(0,r.memo)((e=>{let{entityTypes:t,selectedEntityTypes:n,single:a,placeholder:c,enableEmptyValueUnderline:u,onChange:d,classes:p={},ListLabelProps:m={},disabled:h=!1}=e;const g=(0,r.useMemo)((()=>t.filter(l.oDv)),[t]);return o().createElement(s.S,{items:g,selectedItemsUris:n,single:a,placeholder:c,enableEmptyValueUnderline:u,onChange:d,classes:p,ListLabelProps:m,disabled:h,label:i().text("Entity type"),dataReltioId:"entity-type-selector",selectionPopupTitle:i().text("Select entity types")})}));c.displayName="EntityTypesSelector"},52194:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),o=n.n(r),a=n(71153),i=n.n(a),l=n(17998);const s=(0,n(79692).Z)({container:{padding:"0 16px",minHeight:"48px"},title:{fontSize:"16px",lineHeight:"19px",paddingTop:"16px",paddingBottom:"13px",justifyContent:"flex-start"}}),c=e=>{let{className:t,title:n,children:r}=e;const a=s();return o().createElement(l.Z,{title:n,classes:{root:i()(a.container,t),title:a.title}},r)}},72108:(e,t,n)=>{n.d(t,{S:()=>I});var r=n(24328),o=n.n(r),a=n(71153),i=n.n(a),l=n(17440),s=n(8813),c=n(86619),u=n(83543),d=n(80030),p=n(79692);const m=(0,p.Z)({listLabelContainer:{display:"flex",alignItems:"center",position:"relative",overflow:"hidden",whiteSpace:"nowrap",justifyContent:"space-between",height:"100%",width:"100%"},listLabel:{visibility:"hidden",position:"absolute",overflow:"hidden"},visibleItemsLabel:{textOverflow:"ellipsis",marginRight:"5px",overflow:"hidden",flex:1,flexBasis:"auto"},hiddenCount:{color:"rgba(0,0,0,0.87)",fontSize:"13px",lineHeight:"15px",padding:"5px 8px",borderRadius:"16px",backgroundColor:"rgba(0,0,0,.12)"}}),h=(e,t)=>{const{childNodes:n,clientLeft:r,clientWidth:o}=t;if(n.length>0){const[t]=Array.from(n),a=document.createRange();a.setStart(t,0);for(let n=0;n<e.length;n++){a.setEnd(t,a.endOffset+e[n].length);const{width:i}=a.getBoundingClientRect();if(r+i>o)return n;n!==e.length-1&&a.setEnd(t,a.endOffset+", ".length)}}return-1},g=e=>e.join(", "),b=e=>`calc(${(0,l.isNil)(e)?"100%":`${e}px`} - 35px)`,f=e=>{let{list:t,maxWidth:n}=e;const a=m(),i=(0,r.useRef)(),[l,s]=(0,r.useState)(0);(0,r.useEffect)((()=>{s(((e,t)=>{const n=e.length,r=((e,t)=>{if(t){const n=h(e,t);return-1===n?0:e.length-n}return 0})(e,t);return n-Math.max(1,n-r)})(t,i.current))}),[t]);const c=g(t),u=l>0,p=u?g(t.slice(0,-l)):c;return o().createElement(d.ZP,{title:u?c:""},o().createElement("div",{className:a.listLabelContainer},o().createElement("div",{style:{width:b(n)},className:a.listLabel,ref:i},c),o().createElement("div",{className:a.visibleItemsLabel},p),u&&o().createElement("div",{className:a.hiddenCount},`+${l}`)))};var y=n(40435),v=n(22311),x=n(26638),E=n(33117),w=n(94792),C=n(63485);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 T=(0,l.always)(32),R=(0,r.memo)((e=>{let{selectedItems:t,onItemClick:n,focusIndex:r,width:a,height:i}=e,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["selectedItems","onItemClick","focusIndex","width","height"]);return o().createElement(C.Z,O({getItemSize:T,renderItem:(e,a,i)=>{let{item:l}=a;const s=!!t.find((e=>l.uri===e)),c=i===r;return o().createElement(E.Z,{key:l.uri,onClick:n,checked:s,data:l,label:o().createElement(w.Z,{text:l.label,highlight:l.filterText}),labelInText:l.label,style:e,isFocused:c,hideIcon:!0,LogoIcon:l.LogoIcon})},focusIndex:r,fixedTitle:!1,disableHorizontalScrollbar:!0,width:a,height:i},l))}));R.displayName="SelectMetadataTypesList";const S=(0,p.Z)({root:{borderRadius:"4px 4px 0 0",margin:0,fontSize:"14px",letterSpacing:0,lineHeight:"16px"},inputLabel:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%",top:"calc(50% - 23px)"},inputText:{display:"flex",flexGrow:1,alignItems:"center",height:"25px",width:"calc(100% - 53px)",paddingTop:"18px",paddingBottom:"4px",color:"rgba(0,0,0,0.87)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},input:{width:0,cursor:"pointer","&[disabled]":{backgroundColor:"transparent",cursor:"default"},"&$emptyInput":{width:"100%"}},emptyInput:{},disabledInput:{},disabledPointer:{},disabledUnderline:{},inputRoot:{flex:1,paddingRight:"4px",fontSize:"14px",letterSpacing:0,lineHeight:"16px","&$disabledInput":{backgroundColor:"rgba(0, 0, 0, 0.03)",cursor:"pointer","&$disabledPointer":{cursor:"default"},"&$disabledUnderline::before":{borderBottomStyle:"solid"}}},icon:{transform:"rotate(0deg)",transition:"transform 0.35s ease"},"popup-opened-icon":{transform:"rotate(-180deg)"}});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 N(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){j(e,t,n[t])}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const I=(0,r.memo)((e=>{let{placeholder:t,classes:n={},items:a,selectedItemsUris:d,onChange:p,ListLabelProps:m={},disabled:h,enableEmptyValueUnderline:g,single:b,label:E,dataReltioId:w,selectionPopupTitle:C}=e;const O=S(),[T,j]=(0,r.useState)(!1),I=(0,r.useCallback)((()=>j(!0)),[]),k=(0,r.useCallback)((()=>j(!1)),[]),[_,L]=(0,r.useState)(""),Z=(0,r.useCallback)((()=>L("")),[]),A=(0,r.useCallback)((0,l.pipe)(Z,k),[k,Z]),U=a.filter((e=>{let{label:t}=e;return s.P6Y.strings.search(t,_)})).map(((e,t)=>({item:{item:N({},e,{filterText:_})},index:t}))),D=(0,r.useMemo)((()=>d.map((e=>a.find((0,l.propEq)("uri",e)))).map((0,l.prop)("label"))),[d,a]),z=(0,r.useCallback)(((e,t)=>{b?(p(t?[e.uri]:[]),A()):p(t?d.concat(e.uri):d.filter((t=>t!==e.uri)))}),[d,p,b,A]),M=(0,r.useCallback)((e=>{let{item:t}=e;const n=!d.includes(t.uri);z(t,n)}),[d,z]),{focusIndex:B,handleKeyDown:F}=(0,x.t)({items:U,open:T,onSelectFocusedItem:M,selectedItems:d,onClose:A}),H=(0,r.useRef)(),G=H.current?H.current.getBoundingClientRect().width:0,V=Math.max(G,255),W=0===d.length;return o().createElement(o().Fragment,null,o().createElement(c.Z,{label:E,ref:H,InputProps:{startAdornment:W&&!t?null:o().createElement("div",{className:i()(O.inputText,n.inputText)},W?o().createElement("div",null,t):o().createElement(f,P({},m,{list:D}))),classes:{root:O.inputRoot,input:i()(O.input,n.input,{[O.emptyInput]:W&&!t}),disabled:i()(O.disabledInput,{[O.disabledPointer]:h}),underline:O.disabledUnderline},endAdornment:o().createElement(y.Z,{size:"L",icon:u.Z,iconClassName:i()(O.icon,{[O["popup-opened-icon"]]:T}),disabled:h}),readOnly:!0,disabled:!0,disableUnderline:W&&!g},inputProps:{tabIndex:-1},InputLabelProps:{classes:{root:i()(O.inputLabel,n.label)}},value:"",onClick:h?void 0:I,classes:{root:i()(O.root,n.root)},margin:"dense",variant:"filled",disabled:h,"data-reltio-id":w}),o().createElement(v.Z,{open:T,anchorEl:H.current,onClose:A,onSearch:L,title:C,containerWidth:V,containerHeight:355,searchInputOnKeyDown:F,transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"left",vertical:"bottom"},PaperProps:{"data-reltio-id":`${w}-popup`}},o().createElement(R,{items:U,onItemClick:z,selectedItems:d,width:V,height:245,focusIndex:B})))}));I.displayName="MetadataTypesSelector"},33109:(e,t,n)=>{n.d(t,{Z:()=>E});var r=n(24328),o=n.n(r),a=n(13980),i=n.n(a),l=n(71153),s=n.n(l),c=n(52730),u=n(17440),d=n(90436),p=n(80030),m=n(87918),h=n.n(m),g=n(8813),b=n(35674),f=n(37573),y=n(20146);const v=(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"}}}))),x=e=>{let{className:t,entity:n,children:a,classes:i}=e;const l=v({classes:i}),m=(0,c.useSelector)(b.ZP.selectors.getMetadata),x=(0,r.useCallback)((()=>{navigator.clipboard.writeText((0,g.BTI)(n))}),[n]);if((0,u.isNil)(n))return null;const E=(0,g.idV)(n.label),w=n.secondaryLabel,C=(0,g.ptG)(m,n),O=(0,g.Fn9)(n),T=n.uri,R=(0,g.BTI)(n);return o().createElement("div",{className:s()(l.profileBandWrapper,t)},o().createElement("div",{className:s()(l.profileBand,{[l.inactive]:!O}),"data-entity-uri":T},o().createElement(f.Z,{key:n.uri,entity:n,avatarClassName:l.profileIcon,imageClassName:l.imageProfileIcon}),o().createElement("div",{className:l.profileInfo},o().createElement("div",null,o().createElement(d.Z,{variant:"h6",className:l.label},E),w&&o().createElement(d.Z,{variant:"subtitle2",className:l.secondaryLabel},w),C&&o().createElement(d.Z,{variant:"subtitle1",className:l.businessCard},C)),o().createElement("div",{className:l.specialInfo},o().createElement("div",{className:l.entityType},o().createElement(y.Z,{entity:n,size:"medium",className:l.badge}),!(0,g.ZiX)(T)&&o().createElement(p.ZP,{title:h().text("Copy to clipboard")},o().createElement(d.Z,{display:"inline",variant:"body2",className:l.entityId,onClick:x},h().text("Entity ID"),": ",R))))),a&&o().createElement("div",null,a)))};x.propTypes={className:i().string,entity:i().object,children:i().node,classes:i().object};const E=x},68977:(e,t,n)=>{n.d(t,{U:()=>c});var r=n(24328),o=n.n(r),a=n(87918),i=n.n(a),l=n(8813),s=n(72108);const c=(0,r.memo)((e=>{let{relationTypes:t,selectedRelationTypes:n,single:a,placeholder:c,enableEmptyValueUnderline:u,onChange:d,classes:p={},ListLabelProps:m={},disabled:h=!1}=e;const g=(0,r.useMemo)((()=>t.filter(l.Tt2)),[t]);return o().createElement(s.S,{items:g,selectedItemsUris:n,single:a,placeholder:c,enableEmptyValueUnderline:u,onChange:d,classes:p,ListLabelProps:m,disabled:h,label:i().text("Relation type"),dataReltioId:"relation-type-selector",selectionPopupTitle:i().text("Select relation types")})}));c.displayName="RelationTypesSelector"},28101:(e,t,n)=>{n.d(t,{G:()=>m});var r=n(24328),o=n.n(r),a=n(71153),i=n.n(a),l=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 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)}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const m=e=>{let{buttonsProps:t,activeIndexId:n,className:r,onButtonClick:a,classes:s={}}=e;const c=u(),{active:m,buttonWrapper:h}=s,g=p(s,["active","buttonWrapper"]);return o().createElement("div",{className:i()(c.container,r)},t.map((e=>{let{id:t}=e,r=p(e,["id"]);return o().createElement(l.k,d({},r,{classes:g,size:"S",key:t,className:i()({[i()(c.active,m)]:n===t},c.buttonWrapper,h),onClick:()=>a(t),"data-reltio-id":`reltio-profile-right-side-button-${t}`}))})))}},11821:(e,t,n)=>{n.d(t,{h:()=>i});var r=n(24328),o=n.n(r);const a=(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})}}))),i=e=>{let{width:t,open:n,children:r}=e;const i=a();return o().createElement("div",{className:i.contentWrapper,style:{width:`${n?t:0}px`}},n&&o().createElement(o().Fragment,null,r))}},15177:(e,t,n)=>{n.d(t,{Z:()=>k});var r=n(52730),o=n(35674),a=n(24328),i=n.n(a),l=n(8813),s=n(71153),c=n.n(s),u=n(87918),d=n.n(u),p=n(95544),m=n(90436),h=n(80687),g=n(1730),b=n(52194),f=n(89978),y=n(26978),v=n(79692);const x=(0,v.Z)({attributesContainer:{padding:"0 16px 16px 16px"},header:{marginBottom:"4px"},noCaption:{paddingTop:"16px"},noData:{fontSize:"13px",color:"rgba(0,0,0,0.54)"}}),E=(0,r.connect)((e=>({metadata:o.ZP.selectors.getMetadata(e)})))((e=>{let{className:t,entity:n={},metadata:s,caption:u="",excludeUris:v=[],includeUris:E=[],attributesCount:w=16}=e;const C=x(),O=(0,r.useSelector)(o.ZP.selectors.getPivotingAttributes),T=(0,a.useMemo)((()=>(0,y.U)(s,n.type,E,v)),[v,E,s,n.type]),R=(0,l.fyF)(T,n).filter((e=>{let{values:t}=e;return!(0,l.O27)(t)})).length>0;return R||!(0,l.O27)(u)?i().createElement(h.J.Provider,{value:O},i().createElement(g.Z,{className:t},u&&i().createElement(b.Z,{className:C.header,title:u}),i().createElement(p.Z,{className:c()(C.attributesContainer,{[C.noCaption]:!u})},R?i().createElement(f.Z,{entity:n,attrTypes:T,parentUri:n.uri,drawLines:!1,max:w}):i().createElement(m.Z,{className:C.noData},d().text("No data found"))))):null}));var w=n(17440),C=n(76141),O=n(12212),T=n(1108);const R=(0,v.Z)({attributesContainer:{padding:"0 16px 16px 16px"},header:{marginBottom:"4px"},noCaption:{paddingTop:"16px"}});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){P(e,t,n[t])}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const N=(0,r.connect)((e=>({metadata:o.ZP.selectors.getMetadata(e)})))((e=>{let{className:t,entity:n={},mode:s,metadata:u,caption:d="",excludeUris:m=[],includeUris:h=[],pinnedAttributes:f}=e;const v=R(),x=(0,r.useDispatch)(),E=(0,a.useContext)(O.m),P=(0,r.useSelector)(o.ZP.selectors.getUserRoles),N=(0,a.useMemo)((()=>(0,l.mC3)(f,P)),[f,P]),j=(0,r.useSelector)((e=>o.ZP.selectors.getModifiedEntity(e,n.uri)||{})),I=(0,a.useMemo)((()=>(0,y.U)(u,j.type,h,m)),[m,h,u,j.type]),k=(0,a.useCallback)((e=>(0,w.pipe)(o.N5.actions.addAttributes,x)(e.map((e=>S({},e,{viewId:E}))))),[E,x]),_=(0,a.useCallback)((e=>(0,w.pipe)(o.N5.actions.modifyAttribute,x)(S({},e,{viewId:E}))),[E,x]),L=(0,a.useCallback)((e=>(0,w.pipe)(o.N5.actions.removeAttribute,x)(S({},e,{viewId:E}))),[E,x]);return i().createElement(g.Z,{className:t},d&&i().createElement(b.Z,{className:v.header,title:d}),i().createElement(p.Z,{className:c()(v.attributesContainer,{[v.noCaption]:!d})},i().createElement(T.c.Provider,{value:N},i().createElement(C.Z,{entity:j,attrTypes:I,parentUri:j.uri,drawLines:!1,mode:s,showEmptyEditors:(0,l.ZiX)(j.uri),crosswalks:j.crosswalks,onAddAttributes:k,onChangeAttribute:_,onDeleteAttribute:L}))))}));var j=n(10609);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 k=(0,r.connect)(((e,t)=>({entity:t.entity||o.ZP.selectors.getEntityWithDiff(e),mode:t.mode||o.ZP.selectors.getMode(e)})))((e=>{let{mode:t=l.ARY.Viewing,attributesCount:n,pinnedAttributes:r,entity:o}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["mode","attributesCount","pinnedAttributes","entity"]);return i().createElement(j.u.Provider,{value:o},(0,l.uzs)(t)?i().createElement(E,I({attributesCount:n,entity:o},a)):i().createElement(N,I({mode:t,pinnedAttributes:r,entity:o},a)))}))},65629:(e,t,n)=>{n.d(t,{Z:()=>T});var r=n(24328),o=n.n(r),a=n(13980),i=n.n(a),l=n(87918),s=n.n(l),c=n(17440),u=n(71153),d=n.n(u),p=n(12231),m=n(90436);const h=(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),b=n(83088);function f(){return f=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},f.apply(this,arguments)}const y=e=>{let{innerRef:t,innerProps:n,selectOption:r,data:a}=e;const i=h(),{value:l,label:s,startObject:c,endObject:u}=a,y=c.objectType.label+" ↔ "+u.objectType.label;return o().createElement(p.Z,f({className:i.container,ref:t,key:l,onClick:()=>r({label:s,value:l,startObject:c,endObject:u})},n),o().createElement("div",{className:i.icons},o().createElement(g.Z,{className:i.iconTop,entityType:c.objectType}),o().createElement(g.Z,{className:i.iconBottom,entityType:u.objectType})),o().createElement("div",{className:i.text},o().createElement(b.C,{value:s},o().createElement(m.Z,{className:d()(i.textItem,i.primaryTextItem)},s)),o().createElement(b.C,{value:y},o().createElement(m.Z,{color:"textSecondary",className:d()(i.textItem,i.secondaryTextItem)},y))))};y.propTypes={innerRef:i().oneOfType([i().oneOf([null]),i().func,i().shape({current:i().any.isRequired})]),innerProps:i().object.isRequired,selectOption:i().func.isRequired,data:i().shape({value:i().string.isRequired,label:i().string.isRequired,startObject:i().object,endObject:i().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 w(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:a=c.identity,TextFieldProps:i}=e,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(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){w(e,t,n[t])}))}return e}({},(0,c.defaultTo)({},i),{"data-reltio-id":"relation-type-selector"})),[i]);return o().createElement(x.Z,E({value:t,options:n,onChange:a,label:s().text("Select relationship type "),components:{Option:v},TextFieldProps:u},l))},O=i().shape({label:i().string.isRequired,value:i().string.isRequired,startObject:i().object,endObject:i().object});C.propTypes={value:O,options:i().arrayOf(O),onChange:i().func};const T=C},32794:(e,t,n)=>{n.d(t,{R:()=>u});var r=n(24328),o=n(8813),a=n(17440),i=n(52730),l=n(35674);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=e=>{let{connection:t,onConnectionChange:n,relatedEntity:c}=e;const u=(0,i.useSelector)(l.ZP.selectors.getMetadata),d=(0,r.useCallback)((e=>n(s({},t,{relation:e}))),[t,n]),p=(0,r.useCallback)((0,a.pipe)((0,o.zE1)(t.relation),d),[t.relation,d]),m=(0,r.useCallback)((0,a.pipe)((0,o.lIv)(t.relation),d),[t.relation,d]),h=(0,r.useCallback)((0,a.pipe)((0,o.Ilm)(t.relation),d),[t.relation,d]),g=(0,r.useCallback)((e=>{let{type:r,direction:a}=e;const i={entity:t.entity&&(0,o.eHk)(a===o.Nsj.OUT,t.entity,c,u,(0,o.V3K)(u,r))?t.entity:null,relation:s({},t.relation,{attributes:{},type:r,direction:a})};n(i)}),[t,n,c,u]);return{onAddAttributes:p,onChangeAttribute:m,onRemoveAttribute:h,onChangeEntity:(0,r.useCallback)((e=>n(s({},t,{entity:e}))),[t,n]),onChangeRelationType:g}}},64651:(e,t,n)=>{n.d(t,{n:()=>i});var r=n(24328),o=n(8813),a=n(17440);const i=e=>{let{reversedContextLabels:t}=e;return{getRelationTypesOptions:(0,r.useCallback)(((e,n)=>{const r={},i=(0,a.pipe)(o.PjQ,(0,a.tap)((e=>r[e]=(0,a.propOr)(0,e,r)+1))),l=(0,a.ascend)((0,a.prop)("label")),s=(0,a.curry)(((e,n)=>{let{uri:r,label:a,startObject:l,endObject:s}=n;const c=e===(t?o.Nsj.OUT:o.Nsj.IN)?l:s;return{label:{directionalLabel:i(c),typeLabel:a},value:`${r},${e}`,startObject:l,endObject:s}}));return e.map(s(o.Nsj.IN)).concat(n.map(s(o.Nsj.OUT))).map((0,a.evolve)({label:e=>{let{directionalLabel:t,typeLabel:n}=e;return t?r[t]>1?`${t} (${n})`:t:n}})).sort(l)}),[t]),fromEditorValue:(0,r.useCallback)(((e,t)=>n=>{const[r,i]=n.value.split(",");return{type:(i===o.Nsj.IN?e:t).find((0,a.propEq)("uri",r)),direction:i}}),[]),toEditorValue:(0,r.useCallback)(((e,t)=>t.find((0,a.propEq)("value",`${e.relationType},${e.direction}`))),[])}}},13247:(e,t,n)=>{n.r(t),n.d(t,{default:()=>pn});var r=n(24328),o=n.n(r),a=n(52730),i=n(36138),l=n(97333),s=n(22664),c=n(52844),u=n(35674),d=n(87378),p=n(98996),m=n(17440),h=n(8813),g=n(87918),b=n.n(g),f=n(60715),y=n(35174);function v(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}const E=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=t.relations.filter((e=>!n.includes(e))).filter((0,m.either)((0,m.pipe)(h.nqN,(0,m.equals)(e)),(0,m.pipe)(h.j5q,(0,m.equals)(e))));n.push(...r);const o=(0,m.pipe)(w,(0,m.without)([e]))(r);return o.forEach((e=>E(e,t,n))),n},w=e=>(0,m.pipe)((0,m.chain)((e=>[(0,h.nqN)(e),(0,h.j5q)(e)])),m.uniq)(e),C=(e,t)=>{const n=(e=>{var t;const n=new Set,r=new Set;e.entities.forEach((e=>n.add(e.uri))),((null===(t=e.relations)||void 0===t?void 0:t.filter((e=>n.has(e.startObject.objectURI)&&n.has(e.endObject.objectURI))))||[]).forEach((e=>{r.add(`${e.startObject.objectURI}--${e.endObject.objectURI}--${e.uri}--${e.type}`)}));const o=e.entities.map((e=>({id:e.uri,name:e.label,entityTypeUri:e.type,traversedRelationsCount:e.traversedRelations,untraversedRelationsCount:e.untraversedRelations}))),a=[];return r.forEach((e=>{const[t,n,r,o]=e.split("--");a.push({from:t,to:n,key:r,relationTypeUri:o})})),{nodes:o,edges:a}})(t);n.nodes.forEach((t=>{e.hasNode(t.id)||e.addNode(t.id,{label:(0,h.idV)(t.name),entityTypeUri:t.entityTypeUri,traversedRelationsCount:t.traversedRelationsCount,untraversedRelationsCount:t.untraversedRelationsCount,x:1,y:1})})),n.edges.forEach((t=>{const n=t.from===t.to;e.hasEdge(t.key)||e.addEdgeWithKey(t.key,t.from,t.to,{size:1,color:"rgba(0, 0, 0, 0.2)",forceLabel:n,loop:n,relationTypeUri:t.relationTypeUri})}))},O=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=t.neighbors(e).filter((e=>!n.includes(e)));return n.push(...r),r.forEach((e=>O(e,t,n))),n};var T=n(29627);const R=e=>{const[t,n]=(0,r.useState)(null),[o,i]=(0,r.useState)(null),l=(0,a.useDispatch)(),[s,c]=(0,r.useState)(null),[d,g]=(0,r.useState)(!1),x=null==e?void 0:e.uri,R=(0,h.biM)(e),S=(0,T._)(),P=(0,r.useCallback)((function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return S((0,h.ZYI)({uri:e,deep:n,limitCreditsConsumption:!0,graphTypes:t?[(0,h.nIW)(t)]:null,activenessDate:null,max:t?200:3e3}))}),[t,S]);(0,r.useEffect)((()=>(!x||(0,h.ZiX)(x)||R||(g(!0),(0,h.ZYI)({uri:x,deep:t?2:1,limitCreditsConsumption:!0,graphTypes:t?[(0,h.nIW)(t)]:null,activenessDate:null,max:t?200:3e3}).then((e=>{const t=new p.MultiGraph;C(t,e),i(t),c(e)})).catch((e=>{console.error(e),c(null),l(u.ui.actions.errorSet((0,h.xU7)(e,b().text("Something went wrong"))))})).finally((()=>{g(!1)}))),()=>{i(null),c(null),g(!1)})),[x,R,l,t]);const N=(0,r.useCallback)((e=>{let{startEntityUri:t,endEntityUri:n,relationType:r,attributes:a,startDate:i,endDate:d}=e;return g(!0),(0,h.DsR)({startEntityUri:t,endEntityUri:n,relationType:r,attributes:a,startDate:i,endDate:d}).then((e=>{var t;if(null==e||null===(t=e[0])||void 0===t||!t.successful)throw null==e?void 0:e[0];const n=e[0].object,r=((e,t)=>{const n=t.startObject.objectURI,r=t.endObject.objectURI,o=[n,r],a=e.entities.map((0,m.prop)("uri")),i=o.find((e=>!(0,m.includes)(e,a))),l=i&&(t.startObject.objectURI===i?t.startObject:t.endObject),s=l&&{type:l.type,label:l.label,uri:l.objectURI,traversedRelations:0,untraversedRelations:1},c=v({},(0,m.pick)(["uri","type","attributes","startDate","endDate","crosswalks","direction"],t),{startObject:(0,m.pick)(["objectURI","directionalLabel"],t.startObject),endObject:(0,m.pick)(["objectURI","directionalLabel"],t.endObject)});return{entities:(s?e.entities.concat([s]):e.entities).map((e=>e.uri===n||e.uri===r?v({},e,{traversedRelations:e.traversedRelations+1}):e)),relations:e.relations.concat([c])}})(s,n);C(o,r);const a=[n.startObject.objectURI,n.endObject.objectURI],i=s.entities.map((0,m.prop)("uri"));a.map((e=>{if(i.includes(e)){const t=o.getNodeAttribute(e,"traversedRelationsCount");o.setNodeAttribute(e,"traversedRelationsCount",t+1)}})),c(r)})).catch((e=>{throw l(u.ui.actions.errorSet((0,h.xU7)(e,b().text("Something went wrong")))),e})).finally((()=>{g(!1)}))}),[l,s,o]),j=(0,r.useCallback)((e=>{g(!0),(0,h.VGk)(e).then((()=>{o.extremities(e).map((e=>{const t=o.getNodeAttribute(e,"traversedRelationsCount");o.setNodeAttribute(e,"traversedRelationsCount",t-1)})),o.dropEdge(e);const{updatedData:t,removedEntitiesUris:n}=((e,t,n,r)=>{const o=r.relations.find((0,m.propEq)("uri",t)),a=(0,h.nqN)(o),i=(0,h.j5q)(o),l=(0,y.toUndirected)(n),s=(0,m.cond)([[()=>!(0,f.Ar)(l,e,a),(0,m.always)(a)],[()=>!(0,f.Ar)(l,e,i),(0,m.always)(i)],[m.T,(0,m.always)(null)]])(),c=(0,m.evolve)({entities:(0,m.map)((e=>e.uri===a||e.uri===i?v({},e,{traversedRelations:e.traversedRelations-1}):e)),relations:(0,m.reject)((0,m.propEq)("uri",t))})(r),{updatedData:u,removedEntitiesUris:d}=s?((e,t)=>{const n=E(e,t),r=(0,m.pipe)(w,(0,m.append)(e),m.uniq)(n);return{updatedData:(0,m.evolve)({relations:(0,m.reject)((e=>n.includes(e))),entities:(0,m.reject)((e=>r.includes(e.uri)))})(t),removedEntitiesUris:r}})(s,c):{updatedData:c,removedEntitiesUris:[]};return{updatedData:u,removedEntitiesUris:d}})(x,e,o,s);((e,t)=>{(t||[]).forEach((t=>{e.dropNode(t)}))})(o,n),c(t)})).catch((e=>{l(u.ui.actions.errorSet((0,h.xU7)(e,b().text("Something went wrong"))))})).finally((()=>{g(!1)}))}),[l,o,x,s]),I=(0,r.useCallback)(((e,t)=>{const{nodes:n=[]}=t,r=(0,m.difference)(o.neighbors(e),n);((e,t,n,r)=>{const o=(0,y.toUndirected)(r),a=(e,t)=>{o.filterEdges(e,t,(e=>!!e)).forEach((e=>o.dropEdge(e)))};n.forEach((e=>{a(t,e),o.forEachNeighbor(e,(t=>{a(e,t)}))}));const i=[];return o.nodes().forEach((t=>{((e,t,n)=>(0,f.Ar)(e,t,n)?null:n)(o,e,t)&&i.push(t)})),(0,m.uniq)(i.reduce(((e,t)=>O(t,o,e)),[...i]))})(x,e,r,o).forEach((t=>{t!==x&&t!==e&&o.setNodeAttribute(t,"hidden",!0)}))}),[x,o]),k=(0,r.useCallback)((e=>{if(e&&!(0,h.ZiX)(e)&&!R){const t=o.getNodeAttribute(e,"untraversedRelationsCount");o.neighbors(e).forEach((e=>{o.setNodeAttribute(e,"hidden",!1)})),t>0&&(g(!0),P(e).then((t=>{const n=((e,t,n)=>{const{entities:r=[],relations:o=[]}=t;return{entities:r.reduce(((e,t)=>{if(e.some((e=>{let{uri:n}=e;return n===t.uri}))){if(t.uri===n){const r=e.findIndex((e=>{let{uri:t}=e;return t===n}));e[r]=v({},e[r],{traversedRelations:t.traversedRelations,untraversedRelations:t.untraversedRelations})}}else e.push(t);return e}),[...e.entities||[]]),relations:o.reduce(((e,t)=>(e.some((e=>{let{uri:n}=e;return n===t.uri}))||e.push(t),e)),[...e.relations||[]])}})(s,t,e);C(o,t);const r=t.entities.find((t=>t.uri===e));o.setNodeAttribute(e,"untraversedRelationsCount",r.untraversedRelations),o.setNodeAttribute(e,"traversedRelationsCount",r.traversedRelations),c(n)})).catch((e=>{console.error(e),l(u.ui.actions.errorSet((0,h.xU7)(e,b().text("Something went wrong"))))})).finally((()=>{g(!1)})))}}),[s,l,o,R,P]);return{graphLoading:d,data:s,graphologyGraph:o,graphTypeUri:t,setGraphTypeUri:n,onAddRelation:N,onDeleteRelation:j,onCollapseEntity:I,onExpandEntity:k}};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}const P=(e,t)=>{const 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){S(e,t,n[t])}))}return e}({},e,{[null==t?void 0:t.uri]:t}),r=Object.keys(n);return r.length>50&&delete n[r[0]],n},N=[25,50,100];function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const I=(e,t,n)=>{const{startObject:r,endObject:o,type:a}=t,{directionalLabel:i}=(0,h.nqN)(t)===n?r:o;return i||(0,h.Lmx)(e,a)},k=e=>{let{data:t,selectedEntityUri:n,mainEntityUri:o,graphTypeUri:i}=e;const[l,s]=(0,r.useState)({field:"",order:"asc"}),[c,d]=(0,r.useState)(0),[p,g]=(0,r.useState)(N[0]),[f,y]=(0,r.useState)([]),[v,x]=(0,r.useState)(!1),E=(0,a.useDispatch)(),w=(0,a.useSelector)(u.ZP.selectors.getMetadata),C=(0,r.useMemo)((()=>{const e=(null==t?void 0:t.entities)||[];return(0,m.zipObj)(e.map((0,m.prop)("uri")),e)}),[null==t?void 0:t.entities]),O=(0,r.useMemo)((()=>(0,m.pipe)((0,m.filter)((0,m.either)((0,m.pipe)(h.nqN,(0,m.equals)(n)),(0,m.pipe)(h.j5q,(0,m.equals)(n)))),(0,m.uniqBy)((0,m.prop)("uri")),(0,m.map)((e=>{const t=C[((e,t)=>{const n=(0,h.nqN)(t),r=(0,h.j5q)(t);return n===e?r:n})(n,e)];return{relation:e,entity:t,entityLabel:(0,h.idV)(t.label),entityTypeLabel:(0,h.jFi)(w,t),relationTypeLabel:I(w,e,t.uri)}})))((null==t?void 0:t.relations)||[])),[t,n,C,w]),{searchText:T,onChangeSearchText:R,filters:S,onFilter:P,relationTypesOptions:k,entityTypesOptions:_}=(e=>{const[t,n]=(0,r.useState)(""),[o,i]=(0,r.useState)({entityTypesUris:[],relationTypesUris:[]}),l=(0,a.useSelector)(u.ZP.selectors.getMetadata),s=(0,r.useMemo)((()=>(0,m.pipe)((0,m.map)((e=>{let{entity:t}=e;return t.type})),(0,m.concat)(m.__,o.entityTypesUris),m.uniq,(0,m.map)((0,h.nt9)(l)))(e)),[e,l,o.entityTypesUris]),c=(0,r.useMemo)((()=>(0,m.pipe)((0,m.map)((e=>{let{relation:t}=e;return t.type})),(0,m.concat)(m.__,o.relationTypesUris),m.uniq,(0,m.map)((0,h.V3K)(l)))(e)),[e,l,o.relationTypesUris]);return{searchText:t,onChangeSearchText:n,filters:o,onFilter:i,entityTypesOptions:s,relationTypesOptions:c}})(O),L=(0,r.useMemo)((()=>(0,m.pipe)((0,m.filter)((e=>{let{entityLabel:t,entity:n,relation:r}=e;const{entityTypesUris:o,relationTypesUris:a}=S;return t.toLowerCase().includes(T)&&(0,m.ifElse)((0,m.prop)("length"),(0,m.includes)(r.type),m.T)(a)&&(0,m.ifElse)((0,m.prop)("length"),(0,m.includes)(n.type),m.T)(o)})),l.field?(0,m.sort)(((e,t)=>h.P6Y.strings.sort(l.order,e[l.field],t[l.field]))):m.identity)(O)),[O,l,T,S]),Z=(0,r.useMemo)((()=>L.slice(c*p,c*p+p)),[L,c,p]),A=(0,r.useCallback)((e=>{x(!0),(0,h._vs)(e).then((e=>{y((t=>[...t,{initialRelation:e,relation:e}]))})).catch((e=>{E(u.ui.actions.errorSet((0,h.xU7)(e,b().text("Can't load relationship's attributes"))))})).finally((()=>x(!1)))}),[E]),U=(0,r.useCallback)((e=>{y((t=>t.map((t=>t.relation.uri===e.uri?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){j(e,t,n[t])}))}return e}({},t,{relation:e}):t))))}),[]);(0,r.useEffect)((()=>{d(0),R("")}),[n,i,R,P]),(0,r.useEffect)((()=>{P({entityTypesUris:[],relationTypesUris:[]})}),[i,o,P]),(0,r.useEffect)((()=>{d(0)}),[l,T,S]);const D=(0,r.useCallback)((e=>{y((t=>t.filter((t=>t.relation.uri!==e))))}),[]),z=(0,r.useCallback)(((e,t)=>{x(!0),(0,h.HH7)({oldRelation:e,newRelation:t}).then((()=>{D(t.uri)})).catch((e=>{E(u.ui.actions.errorSet((0,h.xU7)(e,b().text("Can't edit relationship"))))})).finally((()=>x(!1)))}),[D,E]);return{rowsData:Z,onSort:s,sorting:l,searchText:T,onChangeSearchText:R,filters:S,onFilter:P,entityTypesOptions:_,relationTypesOptions:k,editingRelations:f,onStartRelationEditing:A,onCancelRelationEditing:D,onUpdateEditingRelation:U,total:L.length,page:c,rowsPerPage:p,onPageChange:d,onRowsPerPageChange:g,onSaveEditingRelation:z,loading:v}},_=o().createContext({graphLoading:!1,data:null,graphologyGraph:null,selectedEntityLoading:!1,selectedEntity:null,onEntitySelect:()=>{},relationshipTable:{},onCollapseEntity:()=>{},onExpandEntity:()=>{}});_.displayName="GraphStateContext";var L=n(71153),Z=n.n(L),A=n(33109),U=n(62901),D=n(72316),z=n(95544),M=n(79692);const B=(0,M.Z)({comments:{display:"flex",justifyContent:"flex-end",marginTop:"10px"}}),F=(0,r.memo)((e=>{let{className:t}=e;const n=B(),r=(0,a.useSelector)(u.ZP.selectors.getEntity);return o().createElement(A.Z,{className:Z()(t,U.U),entity:r},o().createElement(z.Z,{className:n.comments},o().createElement(D.Z,{uri:r.uri,relatedObjectUris:(0,h.wp9)(h.q7e.ENTITY,{entityUri:r.uri}),objectType:h.q7e.ENTITY})))}));F.displayName="GraphProfileBand";const H=F;var G=n(11821),V=n(28101),W=n(82726);const q=(0,M.Z)({wrapper:{display:"flex",overflow:"hidden",marginLeft:"auto",flexShrink:0}});function $(){return $=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},$.apply(this,arguments)}const Y=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={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return o().createElement("svg",$({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7v2h2V7H6zm0 4v2h2v-2H6zm0 4v2h2v-2H6zm4-8v2h8V7h-8zm10-2v5.02a6.52 6.52 0 012 2.01V3H2v18h11.028a6.52 6.52 0 01-2.009-2H4V5h16zm-9.503 8a6.497 6.497 0 011.31-2H10v2h.497zM10 15.5c0-.168.006-.335.019-.5H10v.5zm0 0c0 .516.06 1.018.173 1.5H10v-1.5zm10.3 2.39L23.42 21 22 22.42l-3.12-3.12c-.69.44-1.51.7-2.39.7-2.48 0-4.49-2.01-4.49-4.5s2.01-4.5 4.5-4.5 4.5 2.01 4.5 4.5c0 .88-.26 1.69-.7 2.39zm-3.8.11a2.5 2.5 0 000-5 2.5 2.5 0 000 5z",fill:"currentColor"}))};var X=n(50548);const K=(0,X.l)(_,(0,m.pick)(["selectedEntity"]),(e=>{let{selectedEntity:t}=e;return o().createElement(A.Z,{entity:t})}));var Q=n(15177);const J=(0,M.Z)({noShadowBlock:{boxShadow:"none"},wrapper:{position:"relative",paddingRight:"1px",overflow:"auto"}}),ee=(0,X.l)(_,(0,m.pick)(["selectedEntity","selectedEntityLoading"]),(e=>{let{selectedEntity:t,selectedEntityLoading:n}=e;const r=J();return o().createElement("div",{className:r.wrapper},n&&o().createElement(d.Z,null),o().createElement(Q.Z,{entity:t,caption:b().text("Entity details"),className:r.noShadowBlock}))}));var te=n(90436),ne=n(42011),re=n(44443),oe=n(44938),ae=n(79573);const ie="1px solid rgba(0, 0, 0, 0.05)",le=(0,M.Z)({table:{flex:1,height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},tableBody:{height:"100%",overflow:"auto"},tableBodyWrapper:{height:"100%",overflow:"hidden"},tableRowWrapper:{borderBottom:ie},tableRow:{display:"flex",alignItems:"center","& > div":{flexShrink:0}},editingRow:{paddingTop:"8px"},headRow:{borderBottom:ie}});function se(){return se=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},se.apply(this,arguments)}const ce=(0,r.memo)((e=>{let{columnsData:t,sorting:n,onSort:r}=e;const a=le();return o().createElement("div",{className:Z()(a.tableRow,a.headRow)},t.map((e=>{const{id:t,sortable:a,headCellRenderer:i,columnClassName:l}=e,s=i,c=a?{sortField:n.field,sortOrder:n.order,sortHandler:()=>{r({field:t,order:n.field===t?(0,ae.Dh)(n.order):"asc"})}}:{};return o().createElement("div",{key:t,className:l},o().createElement(s,se({headCellData:e},c)))})))})),ue=(0,r.forwardRef)(((e,t)=>{let{classes:n,columnsData:a,rowsData:i,sorting:l,onSort:s,getRowKey:c,ExpandedRowRenderer:u,defaultRowHeight:d}=e;const p=le(),[m,h]=(0,r.useState)({width:0,height:0}),g=(0,r.useCallback)((e=>{let{data:t,index:r}=e;const i=t[r];return o().createElement("div",{className:Z()(p.tableRowWrapper,null==n?void 0:n.tableRowWrapper)},o().createElement("div",{className:Z()(p.tableRow,null==n?void 0:n.tableRow,{[p.editingRow]:i.expanded})},a.map((e=>{let{id:t,rowCellValueRenderer:n,columnClassName:r}=e;const a=n;return o().createElement("div",{key:t,className:r},o().createElement(a,{value:i[t],rowValue:i}))}))),i.expanded&&u&&o().createElement(u,{open:i.expanded,rowValue:i}))}),[a,u]),b=(0,r.useCallback)(((e,t)=>{h({width:e,height:t})}),[]),f=(0,r.useRef)(null);return(0,r.useImperativeHandle)(t,(()=>({resetScrollbarPosition:()=>{var e;null===(e=f.current)||void 0===e||e.scrollTo(0)}}))),o().createElement("div",{className:p.table},o().createElement(ce,{columnsData:a,sorting:l,onSort:s}),o().createElement("div",{className:p.tableBodyWrapper},o().createElement(re.Z,{handleHeight:!0,handleWidth:!0,onResize:b}),o().createElement("div",{className:p.tableBody},o().createElement(oe.Z,{listRef:f,width:m.width,height:m.height,data:i,defaultItemSize:d,itemKey:c,showNotMeasuredItems:!0},g))))})),de=(0,r.memo)(ue);var pe=n(92332),me=n(83088);const he="rgba(238, 238, 238, 1)",ge=(0,M.Z)({tableWithPagination:{flex:1,overflow:"hidden",paddingRight:"1px",display:"flex",flexDirection:"column"},tableContainer:{flex:1,overflow:"hidden"},profileColumn:{width:"200px"},relationshipTypeColumn:{width:"130px"},entityTypeColumn:{width:"140px"},row:{position:"relative","&:hover":{background:he}}});function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fe={content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"},ye=".collapsibleTableRow:hover &",ve=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){be(e,t,n[t])}))}return e}({},fe,{[ye]:{background:`linear-gradient(to right, rgba(238, 238, 238, 0), ${he} 100%)`}}),xe=(0,M.Z)((e=>({headCell:{position:"relative",display:"flex",alignItems:"center",height:"33px",padding:"6px 0 6px 16px","&>div":{flexDirection:"row"},"&>div>span[role=button]":{width:"calc(100% + 49px)"}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden","&:after":fe},defaultCell:{position:"relative",color:e.palette.text.primary,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",whiteSpace:"nowrap",overflow:"hidden",display:"flex",alignItems:"center",height:"100%",padding:"6px 16px","&:after":ve},clickable:{cursor:"pointer"},profileCell:{paddingTop:"3px",paddingBottom:"4px"},controlsCell:{position:"absolute",display:"flex",alignItems:"center",height:"100%",flexShrink:0,top:0,right:"9px",visibility:"hidden",[ye]:{visibility:"visible",background:he}},editingMode:{visibility:"visible"},hidden:{visibility:"hidden"},editButton:{marginRight:"7px"},entityAvatar:{width:"20px",height:"20px",marginRight:"8px"},actionButtons:{display:"flex",justifyContent:"flex-end",margin:"0 8px 10px","& > button":{fontSize:"14px",lineHeight:"16px",marginLeft:"8px",padding:"10px 8px",backgroundColor:"rgba(98, 2, 238, 0)"}},expandedRow:{padding:"6px 16px",fontSize:"13px"}})));function Ee(){return Ee=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},Ee.apply(this,arguments)}function we(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){Ce(e,t,n[t])}))}return e}function Ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Oe=e=>{let{className:t,headCellData:n}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","headCellData"]);const a=xe();return o().createElement("div",{className:Z()(a.headCell,t)},o().createElement(pe.default,Ee({},r,{headCellData:we({},n,{label:o().createElement(me.C,{value:n.label},o().createElement("div",{className:a.headLabel},n.label))})})))},Te=(0,r.memo)((e=>{let{value:t="",tooltip:n,onClick:r,className:a}=e;const i=xe();return n=n||t,o().createElement(me.C,{value:n},o().createElement("div",{className:Z()(i.defaultCell,a,{[i.clickable]:!!r}),onClick:r},t))}));var Re=n(37573);const Se=(0,X.l)(_,(e=>{let{onEntitySelect:t}=e;return{onClick:t}}),(e=>{let{value:t,rowValue:{entity:n},className:r,onClick:a}=e;const i=xe(),l=o().createElement(o().Fragment,null,o().createElement(Re.Z,{entity:n,avatarClassName:i.entityAvatar}),t);return o().createElement(Te,{value:l,tooltip:t,className:Z()(i.profileCell,r),onClick:()=>a(n.uri)})}));var Pe=n(77277),Ne=n(32794),je=n(83415);const Ie=(0,X.l)(_,((e,t)=>{let{relationshipTable:n}=e;return{editingRelationObject:n.editingRelations.find((e=>{var n;return e.initialRelation.uri===(null==t||null===(n=t.rowValue.relation)||void 0===n?void 0:n.uri)})),onUpdateEditingRelation:n.onUpdateEditingRelation,onCancelRelationEditing:n.onCancelRelationEditing,onSaveEditingRelation:n.onSaveEditingRelation}}),(e=>{let{open:t,editingRelationObject:n,onUpdateEditingRelation:i,onCancelRelationEditing:l,onSaveEditingRelation:s}=e;const c=(0,a.useDispatch)(),d=(0,a.useSelector)(u.ZP.selectors.getMetadata),{relation:p,initialRelation:g}=n,f=(0,r.useMemo)((()=>!(0,m.equals)(g,p)),[p,g]),y=xe(),v=(0,r.useCallback)((e=>{let{relation:t}=e;return i(t)}),[i]),x=(0,r.useCallback)((()=>l(p.uri)),[l,p.uri]),E=(0,r.useMemo)((()=>({relation:p})),[p]),{onAddAttributes:w,onChangeAttribute:C,onRemoveAttribute:O}=(0,Ne.R)({connection:E,onConnectionChange:v});return t?o().createElement("div",{className:y.expandedRow},o().createElement(je.n,{connection:E,onAddAttributes:w,onChangeAttribute:C,onRemoveAttribute:O}),o().createElement("div",{className:y.actionButtons},o().createElement(Pe.Z,{onClick:x},b().text("Cancel")),o().createElement(Pe.Z,{color:"primary",disabled:!f,onClick:()=>{(e=>{const t=(0,h.xkB)(d,{relation:{object:e}});return c(u.N5.errors.actions.errorsSet(t)),0===t.length})(p)&&s(g,p)}},b().text("Save")))):null}));var ke=n(39475),_e=n(27604),Le=n(22983),Ze=n(22118);const Ae=(0,X.l)(_,(0,m.pick)(["onDeleteRelation"]),(e=>{let{uri:t,open:n,onClose:r,onDeleteRelation:a}=e;return o().createElement(Ze.Z,{open:n,title:b().text("Do you want to make a clean break?"),content:b().text("To end this relationship, click Delete Relationship. To keep the connection, click Cancel."),saveCaption:b().text("Delete relationship"),discardCaption:b().text("Cancel"),onDiscard:r,onSave:()=>{a(t),r()}})})),Ue=(0,r.memo)((e=>{let{uri:t}=e;const[n,a]=(0,r.useState)(!1),i=(0,r.useCallback)((()=>a(!0)),[]),l=(0,r.useCallback)((()=>a(!1)),[]);return o().createElement(o().Fragment,null,o().createElement(ke.k,{icon:Le.Z,size:"XXS",tooltipTitle:b().text("Delete"),onClick:i}),o().createElement(Ae,{open:n,onClose:l,uri:t}))}));Ue.displayName="DeleteRelationButton";const De=Ue,ze=(0,X.l)(_,((e,t)=>{let{relationshipTable:{onStartRelationEditing:n,editingRelations:r}}=e;return{onEdit:n,isEditing:r.some((e=>{var n;return e.initialRelation.uri===(null==t||null===(n=t.rowValue.relation)||void 0===n?void 0:n.uri)}))}}),(e=>{let{rowValue:{relation:{uri:t}},className:n,onEdit:r,isEditing:a}=e;const i=xe();return o().createElement("div",{className:Z()(i.controlsCell,n,{[i.editingMode]:a})},o().createElement(ke.k,{className:Z()(i.editButton,{[i.hidden]:a}),icon:_e.Z,size:"XXS",tooltipTitle:b().text("Edit"),onClick:()=>r(t)}),o().createElement(De,{uri:t}))}));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){Be(e,t,n[t])}))}return e}function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fe=(e,t)=>t[e].relation.uri||`${e}`,He=(0,X.l)(_,(e=>{let{relationshipTable:t}=e;return Me({},t)}),(e=>{let{rowsData:t,sorting:n,onSort:a,total:i,page:l,rowsPerPage:s,onPageChange:c,onRowsPerPageChange:u,editingRelations:p,loading:m}=e;const h=ge(),g=(0,r.useMemo)((()=>[{id:"entityLabel",label:b().text("Profile"),headCellRenderer:Oe,rowCellValueRenderer:Se,sortable:!0,columnClassName:h.profileColumn},{id:"relationTypeLabel",label:b().text("Relationship type"),headCellRenderer:Oe,rowCellValueRenderer:Te,sortable:!0,columnClassName:h.relationshipTypeColumn},{id:"entityTypeLabel",label:b().text("Entity Type"),headCellRenderer:Oe,rowCellValueRenderer:Te,sortable:!0,columnClassName:h.entityTypeColumn},{id:"controls",label:"",headCellRenderer:Oe,rowCellValueRenderer:ze}]),[h]),f=(0,r.useRef)(null);(0,r.useEffect)((()=>{var e;null===(e=f.current)||void 0===e||e.resetScrollbarPosition()}),[t]);const y=(0,r.useMemo)((()=>t.map((e=>null!=p&&p.some((t=>{var n;return t.initialRelation.uri===(null==e||null===(n=e.relation)||void 0===n?void 0:n.uri)}))?Me({},e,{expanded:!0}):e))),[t,p]),v=(0,r.useMemo)((()=>({tableRow:Z()(h.row,"collapsibleTableRow")})),[h]);return o().createElement("div",{className:h.tableWithPagination},o().createElement("div",{className:h.tableContainer},o().createElement(de,{ref:f,columnsData:g,rowsData:y,sorting:n,onSort:a,getRowKey:Fe,ExpandedRowRenderer:Ie,defaultRowHeight:28,classes:v})),i>N[0]&&o().createElement(ne.Z,{count:i,rowsPerPageOptions:N,rowsPerPage:s,onChangeRowsPerPage:u,page:l,onChangePage:c,basicTableRef:f}),m&&o().createElement(d.Z,null))}));var Ge=n(36444),Ve=n(61837),We=n(33662);const qe=(0,M.Z)((e=>({inactiveSearchIcon:{color:e.palette.text.secondary},activeSearchIcon:{color:e.palette.text.primary},input:{fontSize:"14px","&::placeholder":{color:`${e.palette.text.secondary} !important`,opacity:1}}}))),$e=(0,X.l)(_,(0,m.pipe)((0,m.prop)("relationshipTable"),(0,m.pick)(["searchText","onChangeSearchText"])),(e=>{let{searchText:t,onChangeSearchText:n}=e;const r=qe();return o().createElement(We.Z,{fullWidth:!0,height:40,autofocus:!1,value:t,onSearch:n,placeholder:b().text("Search profiles"),classes:{input:r.input}})}));var Ye=n(92934),Xe=n(68977),Ke=n(8629);const Qe=(0,M.Z)((e=>({dialogPaper:{display:"flex",flexDirection:"column",padding:"12px 16px 8px"},title:{marginBottom:"21px",fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px",color:e.palette.text.primary},entityTypesSelector:{width:"468px",marginBottom:"20px"},relationTypesSelector:{width:"468px",marginBottom:"32px"},footer:{display:"flex"},clearAllButton:{marginRight:"auto"},cancelButton:{marginRight:"8px"}}))),Je=(0,X.l)(_,(0,m.pipe)((0,m.prop)("relationshipTable"),(0,m.pick)(["onFilter","filters","entityTypesOptions","relationTypesOptions"])),(e=>{let{open:t,onClose:n,filters:a,onFilter:i,entityTypesOptions:l,relationTypesOptions:s}=e;const c=Qe(),[u,d]=(0,r.useState)([]),[p,m]=(0,r.useState)([]),h=()=>{d(a.entityTypesUris),m(a.relationTypesUris),n()};return(0,r.useEffect)((()=>{d(a.entityTypesUris),m(a.relationTypesUris)}),[a.entityTypesUris,a.relationTypesUris]),o().createElement(Ke.Z,{classes:{paper:c.dialogPaper},onClose:h,open:t},o().createElement(te.Z,{className:c.title},b().text("Filter")),o().createElement(Ye.Q,{classes:{root:c.entityTypesSelector},entityTypes:l,selectedEntityTypes:u,enableEmptyValueUnderline:!0,onChange:d}),o().createElement(Xe.U,{classes:{root:c.relationTypesSelector},relationTypes:s,selectedRelationTypes:p,enableEmptyValueUnderline:!0,onChange:m}),o().createElement("div",{className:c.footer},o().createElement(Pe.Z,{className:c.clearAllButton,onClick:()=>{d([]),m([])}},b().text("Clear All")),o().createElement(Pe.Z,{className:c.cancelButton,onClick:h},b().text("Cancel")),o().createElement(Pe.Z,{onClick:()=>{i({entityTypesUris:u,relationTypesUris:p}),n()},color:"primary"},b().text("Apply"))))})),et=(0,M.Z)((e=>({wrapper:{display:"flex",alignItems:"center",paddingLeft:"16px",paddingRight:"2px"},iconButton:{marginLeft:"4px"},activeFiltersIcon:{color:e.palette.primary.main},inactiveFiltersIcon:{color:e.palette.text.secondary}}))),tt=(0,X.l)(_,(0,m.pipe)((0,m.prop)("relationshipTable"),(0,m.pick)(["filters"])),(e=>{let{filters:t}=e;const n=et(),[a,i]=(0,r.useState)(!1),{entityTypesUris:l,relationTypesUris:s}=t,c=l.length||s.length;return o().createElement("div",{className:n.wrapper},o().createElement($e,null),o().createElement(Ve.Z,{className:n.iconButton,onClick:()=>i(!0)},o().createElement(Ge.Z,{className:c?n.activeFiltersIcon:n.inactiveFiltersIcon})),o().createElement(Je,{open:a,onClose:()=>i(!1)}))})),nt=(0,M.Z)({caption:{marginLeft:"16px",marginTop:"12px",display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"14px",fontSize:"16px",lineHeight:"24px"},wrapper:{flex:1,display:"flex",flexDirection:"column",height:0}});var rt=n(25601),ot=n(65549),at=n(49429),it=n(38724),lt=n(79249);const st=(0,M.Z)((e=>({dialogPaper:{height:"600px",maxWidth:"600px"},dialogTitle:{padding:"12px 16px"},titleText:{color:e.palette.text.primary,fontSize:"18px",letterSpacing:0,lineHeight:"21px",fontWeight:"bold"},content:{padding:"8px 16px 0px",borderBottom:"1px solid rgba(0, 0, 0, 0.12)"},attributeList:{paddingTop:"22px"}}))),ct=(0,X.l)(_,(e=>{let{selectedEntity:t,onAddRelation:n}=e;return{selectedEntity:t,onAddRelation:n}}),(e=>{let{selectedEntity:t,open:n,onClose:i,onAddRelation:l}=e;const s=st(),c=(0,a.useSelector)(u.ZP.selectors.getMetadata),d=t.type,[p,m]=(0,r.useState)({}),{relation:g,entity:f}=p,{type:y,direction:v}=g||{},[x,E]=(0,r.useState)(!1),w=(0,a.useDispatch)();(0,r.useEffect)((()=>{n&&m({relation:{uri:(0,h.ncP)(),type:null,attributes:{}}})}),[n]);const{inRelations:C=[],outRelations:O=[]}=(0,r.useMemo)((()=>(0,h.UWq)(c,d)),[c,d]),T=(0,r.useCallback)((()=>{const e=(0,h.xkB)(c,{relation:{object:{relation:g}}});return w(u.N5.errors.actions.errorsSet(e)),0===e.length}),[g,c,w]),{onAddAttributes:R,onChangeAttribute:S,onRemoveAttribute:P,onChangeEntity:N,onChangeRelationType:j}=(0,Ne.R)({connection:p,onConnectionChange:m,relatedEntity:t});return o().createElement(Ke.Z,{open:n,fullWidth:!0,maxWidth:"sm",onClose:i,classes:{paper:s.dialogPaper}},o().createElement(lt.Z,{disableTypography:!0,classes:{root:s.dialogTitle}},o().createElement(te.Z,{variant:"subtitle1",classes:{root:s.titleText}},b().text("Add relationship"))),o().createElement(it.Z,{classes:{root:s.content}},o().createElement(je.n,{connection:p,onAddAttributes:R,onChangeAttribute:S,onRemoveAttribute:P,relatedEntity:t,inRelationTypes:C,outRelationTypes:O,onChangeRelationType:j,onChangeEntity:N})),o().createElement(at.Z,null,o().createElement(Pe.Z,{onClick:i},b().text("Cancel")),o().createElement(Pe.Z,{disabled:!(null!=p&&p.entity)||!y||x,color:"primary",onClick:()=>{const{type:e,attributes:n={},startDate:r,endDate:o}=g,a=v===h.Nsj.OUT?t.uri:f.uri,s=v===h.Nsj.OUT?f.uri:t.uri;T()&&(E(!0),l({startEntityUri:a,endEntityUri:s,relationType:e,attributes:n,startDate:r,endDate:o}).then((()=>{i()})).catch((e=>{console.error(e)})).finally((()=>{E(!1)})))}},b().text("Add"))))})),ut=()=>{const e=nt(),[t,n]=(0,r.useState)(!1);return o().createElement("div",{className:e.wrapper},o().createElement("div",{className:e.caption},o().createElement(te.Z,{variant:"subtitle1"},b().text("Relationships")),o().createElement(rt.K,{mode:rt.N.button,label:b().text("Add relationship"),icon:ot.Z,onClick:()=>{n(!0)}}),o().createElement(ct,{open:t,onClose:()=>{n(!1)}})),o().createElement(tt,null),o().createElement(He,null))};let dt;!function(e){e[e.Relationship=0]="Relationship",e[e.EntityDetails=1]="EntityDetails"}(dt||(dt={}));const pt=(0,r.memo)((()=>{var e;const t=q(),[n,a]=(0,r.useState)(null),i=(0,r.useCallback)((e=>{a((t=>t===e?null:e))}),[]),l=null!==n,s=(0,r.useMemo)((()=>[{buttonProps:{id:dt.Relationship,icon:Y,tooltipTitle:b().text("Relationship")},content:o().createElement(ut,null)},{buttonProps:{id:dt.EntityDetails,icon:W.Z,tooltipTitle:b().text("Entity Details")},content:o().createElement(ee,null)}]),[]);return o().createElement("div",{className:t.wrapper},o().createElement(G.h,{open:l,width:480},o().createElement(K,null),null===(e=s[n])||void 0===e?void 0:e.content),o().createElement(V.G,{buttonsProps:(0,m.pluck)("buttonProps",s),onButtonClick:i,activeIndexId:n}))}));pt.displayName="GraphRightSidePanel";const mt=pt;var ht=n(46339),gt=n(23304);const bt=(e,t,n)=>{var r;if(!t.label)return;const o=n.labelSize,a=n.labelFont,i=n.labelWeight;e.fillStyle=null!==(r=n.labelColor)&&void 0!==r&&r.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color,e.font=`${i} ${o}px ${a}`,e.fillText(t.label,t.x+t.size+11,t.y+o/3)},ft=(e,t,n)=>{const r=n.labelSize,o=n.labelFont,a=n.labelWeight;if(e.font=`${a} ${r}px ${o}`,e.fillStyle="#FFF",e.shadowOffsetX=0,e.shadowOffsetY=2,e.shadowBlur=3,e.shadowColor="rgba(0,0,0,0.2)","string"==typeof t.label){const n=e.measureText(t.label).width,o=Math.round(n+16),a=Math.round(r+2+4),i=Math.max(t.size,r/2)+2,l=Math.asin(a/2/i),s=Math.sqrt(Math.abs(Math.pow(i,2)-Math.pow(a/2,2)));e.beginPath(),e.moveTo(t.x+s,t.y+a/2),e.lineTo(t.x+i+o,t.y+a/2),e.lineTo(t.x+i+o,t.y-a/2),e.lineTo(t.x+s,t.y-a/2),e.arc(t.x,t.y,i,l,-l),e.closePath(),e.fill()}else e.beginPath(),e.arc(t.x,t.y,t.size+2,0,2*Math.PI),e.closePath(),e.fill();e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0,bt(e,t,n)};var yt=n(88586);class vt extends gt.AbstractNodeProgram{constructor(e){super(e,"\nattribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\nattribute float a_borderSize;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying vec4 v_color;\nvarying float v_border;\nvarying float v_borderRadius;\n\nconst float bias = 255.0 / 254.0;\nconst float radius = 0.5;\n\nvoid main() {\n gl_Position = vec4((u_matrix * vec3(a_position, 1)).xy, 0, 1);\n\n // Multiply the point size twice:\n // - x SCALING_RATIO to correct the canvas scaling\n // - x 2 to correct the formulae\n gl_PointSize = a_size * u_ratio * u_scale * 2.0;\n \n v_border = (1.0 / u_ratio) * (0.5 / a_size);\n v_borderRadius = radius - (radius * a_borderSize / a_size); // border radius in node's size (full size is 1)\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n}","\nprecision mediump float;\n\nvarying vec4 v_color; // base color of node\nvarying float v_border;\nvarying float v_borderRadius; // inner border radius\n\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0); // transparent color\nconst float radius = 0.5;\n\nvoid main(void) {\n float distToCenter = length(gl_PointCoord - vec2(0.5, 0.5)); // distance from current point to center of node\n\n if (distToCenter < v_borderRadius - v_border) // distance to inner border radius\n gl_FragColor = transparent;\n else if (distToCenter < v_borderRadius)\n gl_FragColor = mix(v_color, transparent, (v_borderRadius - distToCenter) / v_border);\n else if (distToCenter < radius - v_border) // distance to outer border radius\n gl_FragColor = v_color;\n else if (distToCenter < radius)\n gl_FragColor = mix(transparent, v_color, (radius - distToCenter) / v_border);\n else // points outside the button\n gl_FragColor = transparent;\n}\n",1,5),this.borderSize=void 0,this.borderSize=e.getAttribLocation(this.program,"a_borderSize"),this.bind()}bind(){super.bind();const e=this.gl;e.enableVertexAttribArray(this.borderSize),e.vertexAttribPointer(this.borderSize,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,16)}process(e,t,n){const r=this.array;let o=1*n*5;if(t||!e.inPath)return r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,void(r[o++]=0);r[o++]=e.x,r[o++]=e.y,r[o++]=e.size,r[o++]=(0,yt.floatColor)(e.color),r[o]=e.highlighted?4:2}render(e){const t=this.gl,n=this.program;t.useProgram(n),t.uniform1f(this.ratioLocation,1/Math.sqrt(e.ratio)),t.uniform1f(this.scaleLocation,e.scalingRatio),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.drawArrays(t.POINTS,0,this.array.length/5)}}class xt{constructor(){this.rebindTextureFns=[],this.images={},this.textureImage=void 0,this.hasReceivedImages=!1,this.pendingImagesFrameID=void 0,this.loadImage=(e,t)=>{if(this.images[e])return;const n=new Image;var r;n.addEventListener("load",(()=>{this.images[e]={status:"pending",image:n},"number"!=typeof this.pendingImagesFrameID&&(this.pendingImagesFrameID=requestAnimationFrame((()=>this.finalizePendingImages())))})),n.addEventListener("error",(()=>{this.images[e]={status:"error"}})),this.images[e]={status:"loading"},r=n,new URL(t,window.location.href).origin!==window.location.origin&&(r.crossOrigin=""),n.src=t},this.finalizePendingImages=()=>{this.pendingImagesFrameID=void 0;const e=[];for(const t in this.images){const n=this.images[t];"pending"===n.status&&e.push({id:t,image:n.image,size:Math.min(n.image.width,n.image.height)||1})}const t=document.createElement("canvas"),n=t.getContext("2d");t.width=e.reduce(((e,t)=>{let{size:n}=t;return e+n}),this.hasReceivedImages?this.textureImage.width:0),t.height=Math.max(this.hasReceivedImages?this.textureImage.height:0,...e.map((e=>{let{size:t}=e;return t})));let r=0;this.hasReceivedImages&&(n.putImageData(this.textureImage,0,0),r=this.textureImage.width),e.forEach((e=>{let{id:t,image:o,size:a}=e;const i=Math.min(128,a);let l=0,s=0;(o.width||0)>(o.height||0)?l=(o.width-o.height)/2:s=(o.height-o.width)/2,n.drawImage(o,l,s,a,a,r,0,i,i),this.images[t]={status:"ready",x:r,y:0,width:i,height:i},r+=i})),this.textureImage=n.getImageData(0,0,t.width,t.height),this.hasReceivedImages=!0,this.rebindTextureFns.forEach((e=>e()))}}}const Et={id:"defaultImage",path:(0,h.m5F)('\n<svg width="400px" height="400px" viewBox="0 0 400 400" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>Group</title>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="Group" fill-rule="nonzero">\n <rect id="Rectangle" fill="#DFE5E9" x="0" y="0" width="400" height="400"></rect>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M5.68434189e-14,387.023257 L5.68434189e-14,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 5.68434189e-14,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n </g>\n </g>\n</svg>\n')};class wt extends gt.AbstractNodeProgram{constructor(e,t){super(e,"\nattribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\nattribute vec4 a_texture;\nattribute float a_inactive;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying float v_border;\nvarying float v_inactive;\nvarying vec4 v_color;\nvarying vec4 v_texture;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n gl_Position = vec4((u_matrix * vec3(a_position, 1)).xy, 0, 1);\n\n // Multiply the point size twice:\n // - x SCALING_RATIO to correct the canvas scaling\n // - x 2 to correct the formulae\n gl_PointSize = a_size * u_ratio * u_scale * 2.0;\n\n v_border = (1.0 / u_ratio) * (0.5 / a_size);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n\n // Pass the texture coordinates:\n v_texture = a_texture;\n\n // Pass inactive property\n v_inactive = a_inactive;\n}","\nprecision mediump float;\n\nvarying float v_border;\nvarying float v_inactive;\nvarying vec4 v_color;\nvarying vec4 v_texture;\n\nuniform sampler2D u_atlas;\n\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\nconst float radius = 0.5;\n\n// convert color to gray\nvec4 toGrayscale(in vec4 color)\n{\n float average = (color.r + color.g + color.b) / 3.0;\n return vec4(average, average, average, 1.0);\n}\n\nvoid main(void) {\n vec4 color;\n\n // set texel as color of point\n if (v_texture.w > 0.0) {\n vec4 texel = texture2D(u_atlas, v_texture.xy + gl_PointCoord * v_texture.zw, -1.0);\n color = vec4(mix(v_color, texel, texel.a).rgb, max(texel.a, v_color.a));\n } else {\n color = v_color;\n }\n\n // convert color to gray\n if (v_inactive > 0.0) {\n color = toGrayscale(color);\n }\n\n // distance from point to center of node\n float dist = length(gl_PointCoord - vec2(0.5, 0.5));\n\n if (dist < radius - v_border) // points inside node\n gl_FragColor = color;\n else if (dist < radius) // border of node\n gl_FragColor = mix(transparent, color, (radius - dist) / v_border);\n else // points outside node\n gl_FragColor = transparent;\n}",1,9),this.imageLoader=void 0,this.texture=void 0,this.textureLocation=void 0,this.atlasLocation=void 0,this.latestRenderParams=void 0,this.inactive=void 0,this.imageLoader=new xt,this.imageLoader.rebindTextureFns.push((()=>{this&&this.rebindTexture&&this.rebindTexture(),t&&t.refresh&&t.refresh()})),this.imageLoader.textureImage=new ImageData(1,1),this.textureLocation=e.getAttribLocation(this.program,"a_texture"),this.inactive=e.getAttribLocation(this.program,"a_inactive");const n=e.getUniformLocation(this.program,"u_atlas");if(null===n)throw new Error("NodeProgramImage: error while getting atlasLocation");this.atlasLocation=n,this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array([0,0,0,0])),this.imageLoader.loadImage(Et.id,Et.path),this.bind()}bind(){super.bind();const e=this.gl;e.enableVertexAttribArray(this.textureLocation),e.enableVertexAttribArray(this.inactive),e.vertexAttribPointer(this.inactive,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.textureLocation,4,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,20)}process(e,t,n){const r=this.array;let o=1*n*9;const a=e.image;let i=a&&this.imageLoader.images[a];if("string"!=typeof a||i||this.imageLoader.loadImage(a,a),t)return r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,void(r[o++]=0);if(r[o++]=e.x,r[o++]=e.y,r[o++]=e.size,r[o++]=(0,yt.floatColor)(e.color),r[o++]=e.inactive?1:0,i&&"ready"===i.status||(i=this.imageLoader.images[Et.id]),i&&"ready"===i.status){const{width:e,height:t}=this.imageLoader.textureImage;r[o++]=i.x/e,r[o++]=i.y/t,r[o++]=i.width/e,r[o++]=i.height/t}else r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0}render(e){if(this.hasNothingToRender())return;this.latestRenderParams=e;const t=this.gl,n=this.program;t.useProgram(n),t.uniform1f(this.ratioLocation,1/Math.sqrt(e.ratio)),t.uniform1f(this.scaleLocation,e.scalingRatio),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1i(this.atlasLocation,0),t.drawArrays(t.POINTS,0,this.array.length/9)}rebindTexture(){const e=this.gl;e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this.texture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,this.imageLoader.textureImage),e.generateMipmap(e.TEXTURE_2D),this.latestRenderParams&&(this.bind(),this.bufferData(),this.render(this.latestRenderParams))}}const Ct=[{id:"expandIcon",path:(0,h.m5F)('<svg width="32" height="32" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="8" cy="8" r="8" fill="white"/>\n<circle cx="8" cy="8" r="7.5" stroke="black" stroke-opacity="0.541176"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M8.80013 7.20003V4H7.20013L7.20013 7.20003H4V8.80003H7.20013L7.20013 12H8.80013V8.80003H12V7.20003H8.80013Z" fill="black" fill-opacity="0.541176"/>\n</svg>')},{id:"collapseIcon",path:(0,h.m5F)('<svg width="32" height="32" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="8" cy="8" r="8" fill="white"/>\n<circle cx="8" cy="8" r="7.5" stroke="black" stroke-opacity="0.541176"/>\n<path d="M4 7.20004H12V8.80004H4V7.20004Z" fill="black" fill-opacity="0.541176"/>\n</svg>\n')}];class Ot extends gt.AbstractNodeProgram{constructor(e,t){super(e,"\nattribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\nattribute float a_buttonSize;\nattribute vec2 a_normals;\nattribute vec4 a_texture;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying float v_border;\nvarying vec4 v_texture;\nvarying vec4 v_color;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n float normalLength = length(a_normals);\n vec2 unitNormal = (a_normals) / normalLength;\n\n float pixelsThickness = max(normalLength, 1.0 * u_sqrtZoomRatio);\n float webGLThickness = pixelsThickness * u_correctionRatio;\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // Move the point\n float adaptedWebGLNodeRadius = a_size * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n vec2 compensationVector = vec2(-unitNormal.y, unitNormal.x) * (adaptedWebGLNodeRadius);\n\n // Set position\n gl_Position = vec4((u_matrix * vec3(a_position + compensationVector, 1)).xy, 0, 1);\n\n // Multiply the point size twice:\n // - x SCALING_RATIO to correct the canvas scaling\n // - x 2 to correct the formulae\n gl_PointSize = a_buttonSize * u_ratio * u_scale * 2.0;\n\n v_border = (1.0 / u_ratio) * (0.5 / a_size);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n\n // Pass the texture coordinates:\n v_texture = a_texture;\n}","\nprecision mediump float;\n\nvarying float v_border;\nvarying vec4 v_texture;\n\nuniform sampler2D u_atlas;\n\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\nconst vec4 black = vec4(0.0, 0.0, 0.0, 1.0);\nconst float bias = 255.0 / 254.0;\nconst float radius = 0.5;\n\nvoid main(void) {\n vec4 color;\n float distToCenter = length(gl_PointCoord - vec2(0.5, 0.5));\n\n // set texel as color of point\n if (v_texture.w > 0.0) {\n vec4 texel = texture2D(u_atlas, v_texture.xy + gl_PointCoord * v_texture.zw, -1.0);\n color = vec4(mix(black, texel, texel.a).rgb, max(texel.a, bias));\n } else {\n color = black;\n }\n\n if (distToCenter < radius - v_border) // points inside button\n gl_FragColor = color;\n else if (distToCenter < radius) // border of button\n gl_FragColor = mix(transparent, color, (0.5 - distToCenter) / v_border);\n else // points outside button\n gl_FragColor = transparent;\n}",2,11),this.imageLoader=void 0,this.texture=void 0,this.textureLocation=void 0,this.buttonSize=void 0,this.normals=void 0,this.correctionRatioLocation=void 0,this.sqrtZoomRatioLocation=void 0,this.atlasLocation=void 0,this.latestRenderParams=void 0,this.imageLoader=new xt,this.imageLoader.rebindTextureFns.push((()=>{this&&this.rebindTexture&&this.rebindTexture(),t&&t.refresh&&t.refresh()})),this.imageLoader.textureImage=new ImageData(1,1),this.textureLocation=e.getAttribLocation(this.program,"a_texture"),this.buttonSize=e.getAttribLocation(this.program,"a_buttonSize"),this.normals=e.getAttribLocation(this.program,"a_normals");const n=e.getUniformLocation(this.program,"u_correctionRatio");if(null===n)throw new Error("NodeButtonsProgram: error while getting correctionRatioLocation");this.correctionRatioLocation=n;const r=e.getUniformLocation(this.program,"u_sqrtZoomRatio");if(null===r)throw new Error("NodeButtonsProgram: error while getting sqrtZoomRatioLocation");this.sqrtZoomRatioLocation=r;const o=e.getUniformLocation(this.program,"u_atlas");if(null===o)throw new Error("NodeButtonsProgram: error while getting atlasLocation");this.atlasLocation=o,this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array([0,0,0,0])),Ct.map((e=>this.imageLoader.loadImage(e.id,e.path))),this.bind()}bind(){super.bind();const e=this.gl;e.enableVertexAttribArray(this.buttonSize),e.enableVertexAttribArray(this.normals),e.enableVertexAttribArray(this.textureLocation),e.vertexAttribPointer(this.buttonSize,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.normals,2,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,20),e.vertexAttribPointer(this.textureLocation,4,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,28)}process(e,t,n){const r=this.array;let o=2*n*11;const a=t||e.inactive&&!e.highlighted,[i,l]=e.buttonOffset||[0,0];let s=i*i+l*l,c=0,u=0;if(s&&(s=1/Math.sqrt(s),c=l*s,u=i*s),a||!e.showExpand)r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0;else{const t=this.imageLoader.images.expandIcon;if(r[o++]=e.x,r[o++]=e.y,r[o++]=e.size,r[o++]=(0,yt.floatColor)(e.color),r[o++]=e.buttonSize||0,r[o++]=c,r[o++]=-u,t&&"ready"===t.status){const{width:e,height:n}=this.imageLoader.textureImage;r[o++]=t.x/e,r[o++]=t.y/n,r[o++]=t.width/e,r[o++]=t.height/n}else r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0}if(a||!e.showCollapse)r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0;else{const t=this.imageLoader.images.collapseIcon;if(r[o++]=e.x,r[o++]=e.y,r[o++]=e.size,r[o++]=(0,yt.floatColor)(e.color),r[o++]=e.buttonSize||0,r[o++]=-c,r[o++]=-u,t&&"ready"===t.status){const{width:e,height:n}=this.imageLoader.textureImage;r[o++]=t.x/e,r[o++]=t.y/n,r[o++]=t.width/e,r[o++]=t.height/n}else r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0}}render(e){if(this.hasNothingToRender())return;this.latestRenderParams=e;const t=this.gl,n=this.program;t.useProgram(n),t.uniform1f(this.ratioLocation,1/Math.sqrt(e.ratio)),t.uniform1f(this.scaleLocation,e.scalingRatio),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.uniform1i(this.atlasLocation,1),t.drawArrays(t.POINTS,0,this.array.length/11)}rebindTexture(){const e=this.gl;e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.texture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,this.imageLoader.textureImage),e.generateMipmap(e.TEXTURE_2D),this.latestRenderParams&&(this.bind(),this.bufferData(),this.render(this.latestRenderParams))}}const Tt=e=>{let{children:t}=e;const n=(0,r.useMemo)((()=>({allowInvalidContainer:!0,defaultNodeType:"image",hoverRenderer:ft,labelRenderer:bt,nodeProgramClasses:{image:(0,gt.createNodeCompoundProgram)([wt,vt,Ot])},labelFont:"Roboto",labelSize:13,labelColor:{color:"rgba(0, 0, 0, 0.87)"}})),[]);return o().createElement(ht.C6,{graph:p.MultiGraph,style:{background:"transparent"},initialSettings:n},t)};var Rt=n(28833),St=n.n(Rt),Pt=n(3660),Nt=n.n(Pt),jt=n(28301),It=n.n(jt),kt=n(90690),_t=n(55962),Lt=n(31181),Zt=n(30284);const At=.6,Ut=(e,t,n,r,o)=>{if(t.loop){const{size:r,color:o}=t,a=n.x,i=n.y,l=n.size,s=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{x1:e-7*(n+r),y1:t,x2:e,y2:t+7*(n+r)}}(a,i,.6*l);if(e.strokeStyle=o,e.lineWidth=r,"arrow"===t.type){const{aX:t,aY:n,vX:c,vY:u}=((e,t,n,r,o)=>{const a=o+2,i=Math.sqrt(Math.pow(t-e.x1,2)+Math.pow(n-e.y1,2));return{aX:e.x1+(t-e.x1)*(i-a-r)/i,aY:e.y1+(n-e.y1)*(i-a-r)/i,vX:(t-e.x1)*a/i,vY:(n-e.y1)*a/i}})(s,a,i,l,r);e.beginPath(),e.moveTo(a,i),e.bezierCurveTo(s.x2,s.y2,s.x1,s.y1,t,n),e.stroke(),e.fillStyle=o,e.beginPath(),e.moveTo(t+c,n+u),e.lineTo(t+u*At,n-c*At),e.lineTo(t-u*At,n+c*At),e.lineTo(t+c,n+u),e.closePath(),e.fill()}else e.beginPath(),e.moveTo(a,i),e.bezierCurveTo(s.x1,s.y1,s.x2,s.y2,a,i),e.stroke()}(0,Zt.default)(e,t,n,r,o)};function Dt(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){zt(e,t,n[t])}))}return e}function zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mt=(e,t,n,r,o)=>e>n-o&&e<n+o&&t>r-o&&t<r+o&&Math.sqrt(Math.pow(e-n,2)+Math.pow(t-r,2))<o,Bt=(0,m.memoizeWith)(((e,t,n)=>n.type),h.uie),Ft={size:24,buttonSize:8,buttonOffset:[19,19]},Ht={size:12,buttonSize:6,buttonOffset:[8,13]},Gt=e=>{let{data:t,graph:n,syncLayout:o,workerLayout:i,layoutSettings:l,selectedNode:s,isDirected:c=!1,onNodeClick:d,onNodeCollapse:p,onNodeExpand:m,filters:h}=e;const g=(0,ht.Ys)(),b=(0,ht.sG)(),v=(0,ht.$j)(),x=(0,ht.eP)(),E=(0,a.useSelector)(u.ZP.selectors.getEntity),w=(0,a.useSelector)(u.ZP.selectors.getMetadata),C=(0,a.useSelector)(u.ZP.selectors.getAbsoluteImagePath)||"",[O,T]=(0,r.useState)(void 0),[R,S]=(0,r.useState)(null),[P,N]=(0,r.useState)({});(0,r.useEffect)((()=>{g.getCamera().setState({ratio:1.2})}),[n,g]),(0,r.useEffect)((()=>{if(S((0,y.toUndirected)(n)),b(n),o){const e=o(g.getGraph(),l);(0,Lt.animateNodes)(g.getGraph(),e,{duration:1e3})}if(i){const e=new i(g.getGraph(),l);e.start();const t=setTimeout((()=>{e.stop()}),5e3);return()=>{clearTimeout(t),e.kill()}}}),[t,n,o,i,g,l,b,c]);const j=(0,r.useCallback)((e=>{const t=g.getGraph(),n=null==E?void 0:E.uri;if(t&&R&&n&&e&&n!==e){const r=(0,f.Ar)(c?t:R,n,e),o=((e,t,n)=>{const r=[],o=n?"findOutEdge":"findEdge";return t&&t.reduce(((t,n)=>(r.push(e[o](t,n,(e=>!!e))),n))),r})(t,r,c);return r?{edges:o,nodes:r}:{}}return{}}),[g,null==E?void 0:E.uri,R,c]);(0,r.useEffect)((()=>{N(j(s))}),[s,j]),(0,r.useEffect)((()=>{v({enterNode:e=>{let{node:t}=e;T(t)},leaveNode:()=>{T(void 0)},clickNode:e=>{let{node:t}=e;d(t)},click:e=>{const t=(e=>{let{x:t,y:n}=e;const r=g.viewportToGraph({x:t,y:n}),o=g.getGraph(),a=o.nodes().map((e=>{const t=o.getNodeAttributes(e);return{nodeId:e,distance:Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2),hidden:t.hidden}})).sort(((e,t)=>e.distance-t.distance)).filter((e=>{let{hidden:t}=e;return!t}));return a.length>0?a[0].nodeId:null})(e);if(t){const n=g.getNodeDisplayData(t),r=g.framedGraphToViewport({x:n.x,y:n.y}),o=g.scaleSize(n.buttonOffset[0]),a=g.scaleSize(n.buttonOffset[1]),i=g.scaleSize(n.buttonSize),l=Mt(e.x,e.y,r.x+o,r.y-a,i),s=Mt(e.x,e.y,r.x+o,r.y+a,i);n.showExpand&&l&&(m(t),d(t)),n.showCollapse&&s&&(p(t,j(t)),d(t))}}})}),[g,v,d,p,m,j]),(0,r.useEffect)((()=>{const e=g.getGraph(),t=e.neighbors(s);x({nodeReducer:(n,r)=>{const{entityTypesUris:o=[]}=h||{},a=Bt(w,C,{type:r.entityTypeUri}),i=n===s?Ft:Ht,l=e.neighbors(n),c=l.map((t=>e.getNodeAttribute(t,"hidden"))).filter((e=>!!e)).length,u=Dt({},r,i,{color:"#0072CE",image:a,showExpand:r.untraversedRelationsCount>0||c>0,showCollapse:r.traversedRelationsCount>1&&l.length-c>1}),d=(P.nodes||[]).includes(n),p=O===n;return d||n===s||n===(null==E?void 0:E.uri)?(u.inPath=!0,n===(null==E?void 0:E.uri)&&(u.color="#00FFFF")):!t||t.includes(n)||s===n||s===(null==E?void 0:E.uri)||d||(p||(u.label=""),u.inactive=!0),p&&(u.highlighted=!0),![s,null==E?void 0:E.uri].includes(n)&&o.length>0&&!o.includes(r.entityTypeUri)&&(u.hidden=!0),u},edgeReducer:(t,n)=>{const{relationTypesUris:r=[]}=h||{},o=Dt({},n,{hidden:!1}),a=(P.edges||[]).includes(t);return(s&&s!==(null==E?void 0:E.uri)&&!e.hasExtremity(t,s)&&!a||r.length>0&&!r.includes(n.relationTypeUri))&&(o.hidden=!0),c&&(o.size=3),a&&(o.color="#0072CE",o.size=4),o},renderEdgeLabels:!0,edgeLabelRenderer:Ut,defaultEdgeType:c?"arrow":"line"})}),[g,x,O,s,P,null==E?void 0:E.uri,w,C,c,h])};let Vt;function Wt(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){qt(e,t,n[t])}))}return e}function qt(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.SIMPLE_NETWORK="Simple network",e.VERTICAL_TB="Vertical hierarchy",e.HORIZONTAL_LR="Horizontal hierarchy",e.DIRECTED_NETWORK="Directed Network"}(Vt||(Vt={}));const $t=e=>{let{data:t,graph:n,selectedNode:o,layout:a,onNodeClick:i,onNodeCollapse:l,onNodeExpand:s,filters:c}=e;const u=(0,kt.D)(t);(0,_t.D)((()=>{if(u){const e=(0,m.difference)(t.entities.map((0,m.prop)("uri")),u.entities.map((0,m.prop)("uri")));if(e.length){const t=n.copy();St().assign(t),e.forEach((e=>{n.setNodeAttribute(e,"x",t.getNodeAttribute(e,"x")),n.setNodeAttribute(e,"y",t.getNodeAttribute(e,"y"))}))}}}),[t]);const d=(0,r.useMemo)((()=>(St().assign(n),{settings:Wt({},Nt().inferSettings(n),{gravity:1})})),[n]);return Gt({workerLayout:It(),layoutSettings:d,data:t,graph:n,selectedNode:o,onNodeClick:i,isDirected:a===Vt.DIRECTED_NETWORK,onNodeCollapse:l,onNodeExpand:s,filters:c}),null};var Yt=n(36039);const Xt=(e,t,n,r)=>{const o=new Set;return t.length||t.push(Array.from(e)),e.forEach((t=>{n.add(t),r.forEach((r=>{r.from!==t||e.has(r.to)||n.has(r.to)||o.add(r.to)}))})),o.size&&t.push(Array.from(o)),((e,t,n)=>{const r=new Set;return e.forEach((e=>{t.forEach((t=>{t.from!==e||n.has(t.to)||r.add(t.to)}))})),!!r.size})(o,r,n)?Xt(o,t,n,r):t},Kt=(e,t,n,r)=>{if(e.length<10&&(t[r]=[...e]),e.length>10){const o=e.slice(10),a=e.slice(0,10);t[r]=a,t[r+1]=n[r+1]?[...n[r+1],...o]:o}if(t[r+1]||n[r+1]){const e=t[++r]||n[r];return Kt(e,t,n,r)}return t};function Qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jt=e=>{let{data:t,graph:n,selectedNode:o,layout:a,onNodeClick:i,onNodeCollapse:l,onNodeExpand:s,filters:c}=e;const u=(0,r.useCallback)((e=>{const t=e.copy(),n=(e=>{switch(e){case Vt.VERTICAL_TB:return 180;case Vt.HORIZONTAL_LR:return 270}})(a),r=((e,t)=>{const n=e.nodes,r=e.edges.filter((e=>e.from!==e.to)),o=((e,t,n)=>{const r=new Set;return t.forEach((t=>{e.some((e=>e.to===t.id))||r.add(t.id)})),r.size||r.add(n),r})(r,n,t),a=Xt(o,[],new Set,r);return Kt(a[0],[],a,0)})((e=>({nodes:e.nodes().map((e=>({id:e,name:""}))),edges:e.mapEdges(((e,t,n,r)=>({from:n,to:r,key:e,relationTypeUri:""})))}))(t),o),i=(e=>{const t=e.map((e=>e.length));return Math.max(...t)})(r);for(let e=0;e<r.length;++e)for(let n=0;n<r[e].length;++n)t.setNodeAttribute(r[e][n],"x",(s=n,(l=r[e].length)===(c=i)?5*s:1===l?5*(c-1)/2:5*(c-1)/(l+1)*(s+1))),t.setNodeAttribute(r[e][n],"y",10*e);var l,s,c;return Yt.rotation.assign(t,n,{degrees:!0}),t.reduceNodes(((e,t,n)=>{let{x:r,y:o}=n;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){Qt(e,t,n[t])}))}return e}({},e,{[t]:{x:r,y:o}})}),{})}),[a,o]);return Gt({syncLayout:u,data:t,graph:n,selectedNode:o,onNodeClick:i,onNodeCollapse:l,onNodeExpand:s,filters:c}),null};var en=n(84425);const tn=(0,M.Z)({graphTypeSelector:{minWidth:"200px",backgroundColor:"#FAFAFA",opacity:1,height:"40px"},filledInputRoot:{borderRadius:"4px"},valueContainer:{width:"auto",marginLeft:"16px"}}),nn=(0,X.l)(_,(e=>{let{graphTypeUri:t,setGraphTypeUri:n}=e;return{setGraphTypeUri:n,graphTypeUri:t}}),(e=>{let{graphTypeUri:t,setGraphTypeUri:n}=e;const i=tn(),l=(0,a.useSelector)(u.ZP.selectors.getMetadata),s=(0,a.useSelector)(u.ZP.selectors.getEntity),c=(0,r.useMemo)((()=>[{label:b().text("All"),value:null},...(0,h.mmY)(l,s.type).map((e=>{let{uri:t,label:n}=e;return{value:t,label:n}}))]),[s,l]),d=(0,r.useMemo)((()=>c.find((e=>e.value===t))),[c,t]);return o().createElement(en.Z,{classes:{valueContainer:i.valueContainer},className:i.graphTypeSelector,height:42,label:b().text("Graph type"),value:d,options:c,onChange:e=>n(e.value),TextFieldProps:{InputProps:{disableUnderline:!0,classes:{root:i.filledInputRoot}}}})})),rn=(0,M.Z)({graphLayoutSelector:{minWidth:"202px",backgroundColor:"#FAFAFA",opacity:1,marginLeft:"10px"},filledInputRoot:{borderRadius:"4px",height:"42px"}}),on=(0,r.memo)((e=>{let{value:t,onChangeHandler:n}=e;const r=rn(),a=[{label:b().text("Simple network"),value:Vt.SIMPLE_NETWORK},{label:b().text("Vertical hierarchy"),value:Vt.VERTICAL_TB},{label:b().text("Horizontal hierarchy"),value:Vt.HORIZONTAL_LR},{label:b().text("Directed network"),value:Vt.DIRECTED_NETWORK}];return o().createElement(en.Z,{className:r.graphLayoutSelector,label:b().text("Graph layout"),value:a.find((0,m.propEq)("value",t)),options:a,onChange:e=>n(e.value),TextFieldProps:{InputProps:{disableUnderline:!0,classes:{root:r.filledInputRoot}}}})})),an=(0,M.Z)({wrapper:{height:"100%",position:"relative"},selectors:{display:"flex",position:"absolute",top:"12px",right:"16px",zIndex:2},graph:{height:"calc(100% - 5px)"}}),ln=(0,X.l)(_,(e=>{let{data:t,graphologyGraph:n,selectedEntity:r,onEntitySelect:o,onCollapseEntity:a,onExpandEntity:i,relationshipTable:{filters:l}}=e;return{data:t,graph:n,selectedNode:null==r?void 0:r.uri,onNodeSelect:o,onNodeCollapse:a,onNodeExpand:i,filters:l}}),(e=>{let{data:t,graph:n,selectedNode:a,onNodeSelect:i,onNodeCollapse:l,onNodeExpand:s,filters:c}=e;const[u,d]=(0,r.useState)(Vt.SIMPLE_NETWORK),p=an(),m={data:t,graph:n,selectedNode:a,layout:u,onNodeClick:i,onNodeCollapse:l,onNodeExpand:s,filters:c};return o().createElement("div",{className:p.wrapper},o().createElement("div",{className:p.selectors},o().createElement(nn,null),o().createElement(on,{value:u,onChangeHandler:d})),o().createElement("div",{className:p.graph},n&&o().createElement(Tt,null,u===Vt.SIMPLE_NETWORK||u===Vt.DIRECTED_NETWORK?o().createElement($t,m):o().createElement(Jt,m))))})),sn=(0,M.Z)((e=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,fontFamily:"Roboto, Helvetica, Arial, sans-serif",overflowX:"hidden",overflowY:"auto",display:"flex",flexDirection:"column",backgroundColor:e.palette.background.default},graphWrapper:{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1},graphContainer:{display:"flex",overflow:"hidden",flexGrow:1},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"}}))),cn=(0,r.memo)((()=>{const e=sn(),t=(0,a.useSelector)(u.ZP.selectors.getEntity),n=(e=>{const{graphLoading:t,data:n,graphologyGraph:o,graphTypeUri:i,setGraphTypeUri:l,onAddRelation:s,onDeleteRelation:c,onCollapseEntity:d,onExpandEntity:p}=R(e),{selectedEntity:g,onEntitySelect:f,selectedEntityLoading:y}=((e,t)=>{const n=(0,T._)(),o=(0,a.useDispatch)(),[i,l]=(0,r.useState)(null),s=(0,r.useRef)({}),[c,d]=(0,r.useState)(!1),p=(0,r.useCallback)((e=>{const t=s.current[e];return t?Promise.resolve(t):(0,h.HvW)(e).then((e=>(s.current=P(s.current,e),e)))}),[]),g=(0,r.useCallback)((e=>{var r;const a=null==t||null===(r=t.entities)||void 0===r?void 0:r.find((0,m.propEq)("uri",e));a&&l(a),d(!0),n(p(e)).then(l).catch((e=>{o(u.ui.actions.errorSet((0,h.xU7)(e,b().text("Something went wrong"))))})).finally((()=>{d(!1)}))}),[o,t,n,p]);return(0,r.useEffect)((()=>{null!=e&&e.uri&&(s.current=P({},e),g(e.uri))}),[null==e?void 0:e.uri]),(0,r.useEffect)((()=>{const n=null==t?void 0:t.entities.find((e=>(null==i?void 0:i.uri)===e.uri));n||(null!=e&&e.uri?(s.current=P({},e),g(e.uri)):(s.current={},l(null)))}),[t]),{selectedEntityLoading:c,selectedEntity:i,onEntitySelect:g}})(e,n);return{graphLoading:t,data:n,graphologyGraph:o,selectedEntity:g,selectedEntityLoading:y,graphTypeUri:i,relationshipTable:k({data:n,selectedEntityUri:null==g?void 0:g.uri,mainEntityUri:null==e?void 0:e.uri,graphTypeUri:i}),onAddRelation:s,onDeleteRelation:c,onCollapseEntity:d,onExpandEntity:p,onEntitySelect:f,setGraphTypeUri:l}})(t),{graphLoading:i}=n;return o().createElement(_.Provider,{value:n},o().createElement("div",{className:e.perspectiveView},i&&o().createElement(d.Z,null),(null==t?void 0:t.uri)&&o().createElement("div",{className:e.graphContainer},o().createElement("div",{className:e.graphWrapper},o().createElement(H,null),o().createElement(ln,null)),o().createElement(mt,null))))}));cn.displayName="GraphPerspectiveView";const un=cn,dn=(0,i.createGenerateClassName)({productionPrefix:"graph",disableGlobal:!0}),pn=e=>{let{store:t}=e;return o().createElement(a.Provider,{store:t},o().createElement(i.StylesProvider,{generateClassName:dn},o().createElement(s.MuiPickersUtilsProvider,{utils:c.Z},o().createElement(un,null),o().createElement(l.Z,{showErrorFromStore:!0}))))}}}]);
|
package/3319.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3319],{50548:(e,t,n)=>{n.d(t,{l:()=>o});var a=n(24328),r=n.n(a);function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},l.apply(this,arguments)}const o=(e,t,n)=>{if(e&&t){const o=(0,a.memo)(n);return n=>r().createElement(e.Consumer,null,(e=>r().createElement(o,l({},n,t(e,n)))))}return n}},30488:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(38748),r=n(50548);const l=e=>t=>(0,r.l)(a.X,e,t)},54238:(e,t,n)=>{n.d(t,{Z:()=>U});var a=n(24328),r=n.n(a),l=n(13980),o=n.n(l),i=n(53862);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},s.apply(this,arguments)}const c=e=>r().createElement("svg",s({width:20,height:18,viewBox:"0 0 20 18",xmlns:"http://www.w3.org/2000/svg"},e),r().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(8813);function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){m(e,t,n[t])}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const b=e=>e.id===e.groupId,h=(0,u.curry)(((e,t)=>{let{id:n,groupId:a}=e;return t.groupId===a&&(n===t.id||n.startsWith(`${t.id}.`))})),g=(0,u.curry)(((e,t)=>{let{groupId:n}=e;return n===t.id})),f=(0,u.propOr)(!0,"hideable"),y=(e,t)=>{const n=((e,t)=>e.find((0,u.either)(g(t),h(t))))(e,t);return n?(n.children=y(n.children||[],t),e):e.concat(t)},v=(0,u.curry)(((e,t)=>p.P6Y.strings.search(t.label,e)||(t.children||[]).some(v(e)))),x=(0,u.reduce)(((e,t)=>y(e,{id:t.id,groupId:t.groupId,label:t.label,attrType:t.dataTypeDefinition})),[]),E=(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)(v(e)),(0,u.chain)((t=>[{item:d({},t,{filterText:e}),level:n},...t.children?E(e,t.children,n+1):[]])))(t)})),C=(0,u.has)("columns"),w=e=>{let{id:t,label:n,columns:a}=e;return[{id:t,groupId:t,label:n},...a.map((0,u.assoc)("groupId",t))]},S=e=>e.children?(0,u.chain)(S,e.children):[e],P=(e,t)=>{const n=S(t),a=t=>e.includes(t.id);return b(t)?n.every(a):n.some(a)};var O=n(39475),T=n(22311),k=n(63485),Z=n(26638),R=n(41008),j=n(33117),D=n(94792),N=n(71153),I=n.n(N);const F=(0,n(79692).Z)({popup:{minWidth:"200px"},groupItem:{backgroundColor:"rgba(0,0,0,0.04)"}}),z=e=>{let{item:t,onClick:n,checked:a,level:l,style:o,isFocused:i,isGroupItem:s}=e;const c=F();return r().createElement(j.Z,{key:t.id,onClick:n,checked:a,level:l,data:t,label:r().createElement(D.Z,{text:t.label,highlight:t.filterText}),labelInText:t.label,style:o,isFocused:i,hideIcon:s,className:I()({[c.groupItem]:s})})};z.propTypes={item:o().shape({label:o().string,filterText:o().string}),level:o().number,onClick:o().func,checked:o().bool,style:o().object,isGroupItem:o().bool,isFocused:o().bool};const A=z;var L=n(87918),B=n.n(L);const M=e=>{let{columnsData:t,selectedColumns:n,onChangeColumns:l,title:o,tooltipTitle:i}=e;const s=F(),[d,m]=(0,a.useState)(null),[h,g]=(0,a.useState)(""),y=(0,a.useMemo)((()=>((e,t)=>(0,u.pipe)((0,u.chain)((0,u.when)(C,w)),(0,u.filter)((0,u.either)(b,f)),x,E(t))(e))(t,h)),[t,h]),v=(0,p.fW1)("label")(y)||308,j=(0,a.useMemo)((()=>(0,R.LG)(y)),[y]),D=(0,a.useCallback)((e=>{const t=(0,u.pipe)(S,(0,u.pluck)("id"))(e),a=P(n,e);l(a?(0,u.difference)(n,t):(0,u.uniq)((0,u.concat)(n,t)))}),[n,l]),N=(0,a.useCallback)((e=>{let{item:t}=e;return D(t)}),[D]),{focusIndex:I,handleKeyDown:z}=(0,Z.t)({items:j,open,onSelectFocusedItem:N,selectedItems:n}),L=Math.min(300,32*j.length),M=Math.max(140,L+108);return r().createElement(r().Fragment,null,r().createElement(O.k,{tooltipTitle:i||B().text("Show/hide columns"),size:"L",icon:c,onClick:e=>m(e.currentTarget)}),r().createElement(T.Z,{className:s.popup,open:!!d,anchorEl:d,onClose:(0,u.pipe)((()=>m(null)),(()=>g(""))),onSearch:g,title:o||B().text("Show/hide columns"),containerWidth:v,containerHeight:M,searchInputOnKeyDown:z},r().createElement(k.Z,{fixedTitle:!1,height:L,renderItem:(e,t,a)=>{let{item:l,level:o=0}=t;return r().createElement(A,{style:e,item:l,level:o,isFocused:I===a,checked:P(n,l),isGroupItem:b(l),onClick:D})},items:j,getItemSize:()=>32,containerWidth:v,focusIndex:I})))};M.propTypes={columnsData:i.uz,selectedColumns:o().arrayOf(o().string),onChangeColumns:o().func,title:o().string,tooltipTitle:o().string};const U=M},33903:(e,t,n)=>{n.d(t,{Z:()=>g});var a=n(24328),r=n.n(a),l=n(13980),o=n.n(l),i=n(87918),s=n.n(i),c=n(61837),u=n(87685),p=n(80030);function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},d.apply(this,arguments)}const m=e=>r().createElement("svg",d({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},e),r().createElement("path",{d:"M18 2V0H0v2l7 8v8l4-2v-6z",fill:"currentColor",fillRule:"nonzero",stroke:"none",strokeWidth:1})),b=(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"}}))),h=e=>{let{enabled:t,onClick:n}=e;const a=b();return r().createElement(p.ZP,{title:t?s().text("Clear all filters"):s().text("Filter")},r().createElement(c.Z,{onClick:n,classes:{root:a.button}},t?r().createElement(r().Fragment,null,r().createElement(m,{className:a["filterIcon--enabled"]}),r().createElement(u.default,{color:"primary",className:a.closeIcon})):r().createElement(m,null)))};h.propTypes={enabled:o().bool,onClick:o().func};const g=h},42011:(e,t,n)=>{n.d(t,{Z:()=>y});var a=n(13980),r=n.n(a),l=n(24328),o=n.n(l),i=n(71153),s=n.n(i),c=n(28899),u=n(87918),p=n.n(u),d=n(79573),m=n(17440);const b=(0,n(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.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 f=e=>{let{classes:t={},count:n,rowsPerPageOptions:a,page:r,onChangePage:i,rowsPerPage:u,onChangeRowsPerPage:g,basicTableRef:f,labelRowsPerPage:y}=e;const v=b(),x=(0,l.useCallback)((()=>{(0,m.pathOr)(m.identity,["current","resetScrollbarPosition"],f)()}),[f]),E=(0,l.useCallback)((e=>{i(e),x()}),[i,x]),C=(0,l.useCallback)((e=>{i(0),g(e),x()}),[i,g,x]);return o().createElement(c.Z,{classes:h({},t,{root:s()(v.pagination,t.root),select:s()(v.select,t.select),caption:v.caption,selectRoot:v.selectRoot,actions:v.actions}),component:"div",labelRowsPerPage:y||p().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:n,count:a}=e;return p().text("${fromRow}-${toRow} of ${countRows}",{fromRow:p().number(t,"0,0"),toRow:p().number(n,"0,0"),countRows:p().number(a,"0,0")})},count:n,rowsPerPageOptions:a,page:r,onChangePage:(0,m.pipe)((0,m.nthArg)(1),E),rowsPerPage:u,onChangeRowsPerPage:(0,m.pipe)(d.NA,C)})};f.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=o().memo(f)},75975:(e,t,n)=>{n.d(t,{ZP:()=>h});var a=n(17440),r=n(79573);function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.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 i="CHANGE_COLUMNS",s="TOGGLE_FILTERS",c="CHANGE_FILTER",u="TOGGLE_SORT",p="CHANGE_PAGE",d="CHANGE_ROWS_PER_PAGE",m={changeColumns:(0,r.zD)(i),toggleFilters:(0,r.zD)(s),changeFilter:(0,r.zD)(c),toggleSort:(0,r.zD)(u),changePage:(0,r.zD)(p),changeRowsPerPage:(0,r.zD)(d)},b=(e,t)=>{const n=(0,a.difference)(e.visibleColumns,t),r=e=>n.includes(e);return(0,a.evolve)({visibleColumns:(0,a.always)(t),sorting:(0,a.when)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r(e.field)}),(()=>{const[e]=t;return{field:e,order:"asc"}})),filters:e=>(0,a.keys)(e).reduce(((e,t)=>r(t)?(0,a.dissoc)(t,e):e),e)},e)},h={reducer:(e,t)=>{switch(t.type){case i:{const n=t.payload;return b(e,n)}case s:{const t=!e.filters;return l({},e,{filters:t?{}:null,page:t?e.page:0})}case c:{const{columnId:n,filter:r}=t.payload;return(0,a.evolve)({filters:r?(0,a.assoc)(n,r):(0,a.dissoc)(n),page:(0,a.always)(0)},e)}case u:{const n=t.payload,o=(0,a.path)(["sorting","field"],e),i=(0,a.path)(["sorting","order"],e);return l({},e,{sorting:{field:n,order:(0,r.Dh)(n===o?i:null)},page:0})}case p:return l({},e,{page:t.payload});case d:return l({},e,{rowsPerPage:t.payload});default:return e}},actions:m,changeVisibleColumns:b}},1730:(e,t,n)=>{n.d(t,{Z:()=>m});var a=n(27556),r=n(13980),l=n.n(r),o=n(24328),i=n.n(o);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.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=(0,n(79692).Z)((e=>({"basic-view__paper":s({display:"flex",flexDirection:"column"},e.basicView)})));function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},p.apply(this,arguments)}const d=(0,o.forwardRef)(((e,t)=>{let{children:n,className:r}=e,l=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["children","className"]);const o=u();return i().createElement(a.Z,p({ref:t,className:r,classes:{root:o["basic-view__paper"]}},l),n)}));d.displayName="BasicView",d.propTypes={children:l().node,className:l().string};const m=d},22118:(e,t,n)=>{n.d(t,{Z:()=>b});var a=n(24328),r=n.n(a),l=n(87918),o=n.n(l),i=n(77277),s=n(8629),c=n(49429),u=n(38724),p=n(55999),d=n(79249);const m=(0,n(79692).Z)({paper:{minHeight:"180px"},title:{padding:"16px 16px 10px 16px",fontSize:"20px",fontWeight:500,letterSpacing:"0.25px",lineHeight:"24px"},content:{padding:"0 16px"},contentText:{marginBottom:0,fontSize:"16px",letterSpacing:"0.15px",lineHeight:"24px"},actionButtons:{display:"flex",paddingTop:"4px",fontSize:"14px",fontWeight:500,letterSpacing:0,lineHeight:"16px","& > div":{marginLeft:"auto"}},discardButton:{marginRight:"8px"}}),b=e=>{let{open:t,title:n,content:a,onCancel:l,cancelCaption:b=o().text("Cancel"),onDiscard:h,discardCaption:g="",onSave:f,saveCaption:y=o().text("Save"),disabledSave:v=!1}=e;const x=m();return r().createElement(s.Z,{open:t,onClose:l,classes:{paperScrollPaper:x.paper}},r().createElement(d.Z,{classes:{root:x.title}},n),r().createElement(u.Z,{classes:{root:x.content}},r().createElement(p.Z,{classes:{root:x.contentText}},a)),r().createElement(c.Z,{className:x.actionButtons,disableSpacing:!0},l&&r().createElement(i.Z,{onClick:l},b),r().createElement("div",null,h&&r().createElement(i.Z,{onClick:h,classes:{root:x.discardButton}},g),r().createElement(i.Z,{onClick:f,color:"primary",disabled:v,autoFocus:!0},y))))}},20146:(e,t,n)=>{n.d(t,{Z:()=>d});var a=n(24328),r=n.n(a),l=n(52730),o=n(71153),i=n.n(o),s=n(90436),c=n(8813),u=n(35674);const p=(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"}}),d=e=>{let{entity:t,className:n,size:a="small"}=e;const o=p(),d=(0,l.useSelector)(u.ZP.selectors.getMetadata),m=t.type,b=(0,c.nt9)(d,m)||{},h=(0,c.VD3)(d,b,"typeColor")||c.rSc.palette.primary.main;return r().createElement(s.Z,{style:{backgroundColor:h,color:c.P6Y.Colors.getColor(h)?"#FFFFFF":"#212121"},className:i()(o[`entityType-${a}`],n),component:"div"},(0,c.jFi)(d,t))}},33109:(e,t,n)=>{n.d(t,{Z:()=>E});var a=n(24328),r=n.n(a),l=n(13980),o=n.n(l),i=n(71153),s=n.n(i),c=n(52730),u=n(17440),p=n(90436),d=n(80030),m=n(87918),b=n.n(m),h=n(8813),g=n(35674),f=n(37573),y=n(20146);const v=(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"}}}))),x=e=>{let{className:t,entity:n,children:l,classes:o}=e;const i=v({classes:o}),m=(0,c.useSelector)(g.ZP.selectors.getMetadata),x=(0,a.useCallback)((()=>{navigator.clipboard.writeText((0,h.BTI)(n))}),[n]);if((0,u.isNil)(n))return null;const E=(0,h.idV)(n.label),C=n.secondaryLabel,w=(0,h.ptG)(m,n),S=(0,h.Fn9)(n),P=n.uri,O=(0,h.BTI)(n);return r().createElement("div",{className:s()(i.profileBandWrapper,t)},r().createElement("div",{className:s()(i.profileBand,{[i.inactive]:!S}),"data-entity-uri":P},r().createElement(f.Z,{key:n.uri,entity:n,avatarClassName:i.profileIcon,imageClassName:i.imageProfileIcon}),r().createElement("div",{className:i.profileInfo},r().createElement("div",null,r().createElement(p.Z,{variant:"h6",className:i.label},E),C&&r().createElement(p.Z,{variant:"subtitle2",className:i.secondaryLabel},C),w&&r().createElement(p.Z,{variant:"subtitle1",className:i.businessCard},w)),r().createElement("div",{className:i.specialInfo},r().createElement("div",{className:i.entityType},r().createElement(y.Z,{entity:n,size:"medium",className:i.badge}),!(0,h.ZiX)(P)&&r().createElement(d.ZP,{title:b().text("Copy to clipboard")},r().createElement(p.Z,{display:"inline",variant:"body2",className:i.entityId,onClick:x},b().text("Entity ID"),": ",O))))),l&&r().createElement("div",null,l)))};x.propTypes={className:o().string,entity:o().object,children:o().node,classes:o().object};const E=x},76368:(e,t,n)=>{n.d(t,{a:()=>k});var a=n(24328),r=n.n(a),l=n(87918),o=n.n(l),i=n(86689),s=n(78223),c=n(39475),u=n(67766),p=n(42767),d=n(8813);const m=(0,n(79692).Z)({container:{display:"flex",alignItems:"center"},link:{whiteSpace:"nowrap",marginRight:"9px"}}),b=(0,s.Z)(i.Z),h=e=>{let{total:t=0,onPrev:n,onNext:a,onSearchResultsClick:l,isPrevDisabled:i,isNextDisabled:s}=e;const h=m();return r().createElement("div",{className:h.container},r().createElement(b,{className:h.link,component:"button",variant:"caption",onClick:l,underline:"none",tooltipTitle:o().text("Go to search results")},(0,d.k7L)(t,1e6)," ",1===t?o().text("Search result"):o().text("Search results")),r().createElement(c.k,{size:"L",icon:u.Z,tooltipTitle:o().text("Go to previous profile"),onClick:n,disabled:i,showForDisabled:!0}),r().createElement(c.k,{size:"L",icon:p.Z,tooltipTitle:o().text("Go to next profile"),onClick:a,disabled:s,showForDisabled:!0}))};var g=n(52730),f=n(35674),y=n(17440),v=n(12212),x=n(29627);function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.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}class w{constructor(e){var t=this;let{data:{query:n,sortField:a,sortOrder:r},tenant:l,searchTenant:o,apiPath:i,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 a=[t.getQueryFilter(),...e],r=E({},t.globalSearchRequestOptions,{sort:t.sortField,order:t.sortOrder,select:"uri,label,type",scoreEnabled:!1},n);return t.isDT()?(0,d.uqV)({filters:a,options:r,customerTenant:t.tenant,dataTenant:t.searchTenant,dtssPath:t.dtssPath}):(0,d.ZOr)(a,r)},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=a,this.sortOrder=r,this.tenant=l,this.searchTenant=o,this.apiPath=i,this.dtssPath=s,this.globalSearchRequestOptions=c}}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){P(e,t,n[t])}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class O{constructor(e){var t=this;let{data:n,tenant:a,apiPath:r}=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 a=[{rawFilter:t.searchBody.filter},...e];return(0,d.P2h)({apiPath:t.apiPath,tenant:t.tenant,searchBody:S({},t.searchBody,{filter:e.length?(0,d.Uqd)()(a):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=a,this.apiPath=r}}const T=(e,t)=>(0,y.pipe)((0,y.map)((0,y.prop)("uri")),(0,y.reject)((e=>t.includes(e))))(e),k=()=>{const{total:e,onPrev:t,onNext:n,onSearchResultsClick:l,isPrevDisabled:o,isNextDisabled:i}=(()=>{const e=(0,x._)(),t=(0,x._)(),n=(0,x._)(),{uri:r,index:l,total:o,tenant:i,cache:s}=(0,g.useSelector)(f.ZP.selectors.getSearchNavigationData)||{},{type:c,data:u}=(0,g.useSelector)(f.ZP.selectors.getSearchProviderData)||{},p=(0,g.useSelector)(f.ZP.selectors.getTenant),m=(0,g.useSelector)(f.ZP.selectors.getApiPath),b=(0,g.useSelector)(f.ZP.selectors.getDtssPath),h=(0,g.useSelector)((e=>f.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]))),y=(0,a.useContext)(v.m),E=(0,g.useDispatch)(),[C,S]=(0,a.useState)(!1),P=(0,a.useMemo)((()=>((e,t)=>{switch(e){case"search":return new w(t);case"graphsearch":return new O(t)}})(c,{data:u,tenant:p,searchTenant:i,apiPath:m,dtssPath:b,globalSearchRequestOptions:h})),[c,u,p,i,m,b,h]),k=(0,a.useCallback)((e=>{E(f.yC.actions.updateSearchNavigationDataFields(e))}),[E]),Z=(0,a.useCallback)((e=>{const t=p!==i?(0,d.wwR)({uri:e,dataTenant:i}):e;E(f.ui.actions.openEntity({uri:t,viewId:y,source:"navigation"}))}),[E,y,p,i]),R=(0,a.useCallback)((()=>{E(f.ui.actions.openPerspective({perspectiveId:c,viewId:y}))}),[E,c,y]);(0,a.useEffect)((()=>{l>=o?k({index:o-1}):l<0&&k({index:0})}),[o,l,k]);const j=(0,a.useCallback)(((e,a,r)=>{S(!0),t(P.requestTotal()).then((e=>k({total:e})));const l=r+1;return n(P.requestEntities(15,l)).then((t=>{if(t){if(t.length){const n=T(t,e);if(n.length>0)return k({cache:e.concat(n),uri:n[0],index:l+t.length-n.length}),void Z(n[0]);if(r+t.length<a-1)return j(e,a-t.length,r+t.length)}k({index:l})}})).finally((()=>{S(!1)}))}),[P,k,Z]),D=(0,a.useCallback)(((e,a)=>{S(!0),t(P.requestTotal()).then((e=>k({total:e})));const r=a-1,l=Math.max(0,a-15),o=15+Math.min(0,a-15);return n(P.requestEntities(o,l)).then((t=>{if(t){if(t.length){const n=T(t,e);if(n.length>0)return k({cache:n.concat(e),uri:n[n.length-1],index:r-(t.length-n.length)}),void Z(n[n.length-1]);if(a-t.length>0)return D(e,a-t.length)}k({index:0})}})).finally((()=>{S(!1)}))}),[P,k,Z]),N=(0,a.useCallback)(((t,n,a,r)=>{if(n<t.length){const l=t[n];return S(!0),e(P.checkEntity(l)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),N(e,n,a-1,r)}k({index:r+1,uri:l,cache:t,total:a}),Z(l)})).finally((()=>{S(!1)}))}if(!(r>=a-1))return j(t,a,r);k({cache:t,total:a,index:a-1})}),[P,k,Z,j]),I=(0,a.useCallback)(((t,n,a,r)=>{if(n>-1){const l=t[n];return S(!0),e(P.checkEntity(l)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),I(e,n-1,a-1,r-1)}k({index:r-1,uri:l,cache:t,total:a}),Z(l)})).finally((()=>{S(!1)}))}if(!(r<=0))return D(t,r);k({index:0,cache:t,total:a})}),[P,k,Z,D]),F=(0,a.useCallback)((()=>{if(s&&r){const e=s.indexOf(r)-1;I(s,e,o,l)}}),[I,s,r,o,l]),z=(0,a.useCallback)((()=>{if(s&&r){const e=s.indexOf(r)+1;N(s,e,o,l)}}),[N,s,r,o,l]);return{total:o,onPrev:F,onNext:z,onSearchResultsClick:R,isPrevDisabled:C||l<=0,isNextDisabled:C||l>=o-1}})();return(()=>{const{cache:e}=(0,g.useSelector)(f.ZP.selectors.getSearchNavigationData)||{},t=(0,g.useSelector)(f.ZP.selectors.getMode),n=(0,g.useSelector)(f.ZP.selectors.getEntity);return(0,d.uzs)(t)&&(null==e?void 0:e.includes(null==n?void 0:n.uri))})()?r().createElement(h,{total:e,onPrev:t,onNext:n,onSearchResultsClick:l,isPrevDisabled:o,isNextDisabled:i}):null}},79935:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(24328),r=n.n(a);const l=()=>r().createElement("div",{style:{flex:1}})},55310:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(13980),r=n.n(a),l=n(24328),o=n.n(l);const i=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"}})};i.propTypes={height:r().number,margin:r().number};const s=i},17569:(e,t,n)=>{n.d(t,{o:()=>o});var a=n(24328),r=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,a.useMemo)((()=>Object.entries(t).reduce(((e,t)=>{let[a,o]=t;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){l(e,t,n[t])}))}return e}({},e,{[a]:(0,r.pipe)(o,n)})}),{})),[n,t])}},36852:(e,t,n)=>{n.d(t,{C:()=>d});var a=n(24328),r=n(52730),l=n(17440),o=n(8813),i=n(35674);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.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=[],p=e=>console.error("Collaboration error",e),d=e=>{let{objectIds:t=u,objectTypes:n,enabled:c=!0}=e;const d=(0,r.useSelector)(i.ZP.selectors.getEntity),m=(0,r.useSelector)(i.ZP.selectors.getTenant),b=(0,r.useSelector)(i.ZP.selectors.getCollaborationPath),h=(0,r.useSelector)(i.ZP.selectors.isCollaborationEnabled)&&c,[g,f]=(0,a.useState)(null),[y,v]=(0,a.useState)([]),[x,E]=(0,a.useState)(null),[C,w]=(0,a.useState)(null),[S,P]=(0,a.useState)(!1),[O,T]=(0,a.useState)(!1),k=(0,a.useCallback)((e=>{E((t=>s({},t,e)))}),[]),Z=null==d?void 0:d.uri,R=(0,a.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(h&&Z&&!(0,o.ZiX)(Z)){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:k),(0,l.otherwise)(n))({uris:e,tenant:m,collaborationPath:b})}else E(null)}),[k,b,Z,h,m]);(0,a.useEffect)((()=>{R(t,!0)}),[t,R]);const j=(0,a.useCallback)(((e,t)=>{(0,o.liG)({collaborationPath:b,tenant:m,relatedObjectUri:e,pageToken:t}).then((e=>{let{items:n,nextPageToken:a}=e;v((e=>t?(0,l.uniqBy)((0,l.prop)("commentId"),[...e,...n]):n)),f(a)})).catch(p)}),[b,m]),D=(0,a.useCallback)((e=>{T(!0),(0,o.d7q)({collaborationPath:b,tenant:m,commentId:e}).then(w).catch(p).finally((()=>T(!1)))}),[b,m]),N=(0,a.useCallback)((e=>{let{content:t,namedUsers:n,objectType:a,uri:r,relatedObjectUris:l}=e;P(!0);const i={objectId:r,content:t,relatedObjectUris:l,objectType:a,visibility:"public",namedUsers:n,permanentLink:""};return(0,o.Yrx)({collaborationPath:b,tenant:m,data:i}).then((e=>{let[t]=e;return((e,t)=>{w(e),E((n=>s({},n,{[t]:[...n[t]||[],{commentId:e.commentId,replies:0,status:"open"}]}))),v((t=>[e,...t]))})(t,r)})).catch(p).finally((()=>P(!1)))}),[b,m]),I=(0,a.useCallback)((e=>{let{content:t,namedUsers:n,objectType:a,uri:r,relatedObjectUris:i,commentId:c,replies:u}=e;P(!0);const d={objectId:r,content:t,relatedObjectUris:i,objectType:a,visibility:"public",namedUsers:n,permanentLink:"",commentId:c,replies:u};return(0,o.uAg)({collaborationPath:b,tenant:m,data:d}).then((e=>(e=>{w(e),v((0,l.map)((0,l.when)((0,l.propEq)("commentId",e.commentId),(0,l.always)(e))))})(s({},e,{replies:u})))).catch(p).finally((()=>P(!1)))}),[b,m]),F=(0,a.useCallback)((e=>{let{uri:t,commentId:n}=e;P(!0),(0,o.YFy)({collaborationPath:b,tenant:m,commentId:n}).then((()=>((e,t)=>{w(null),E((n=>{const a=n[t]||[];return s({},n,{[t]:a.filter((t=>t.commentId!==e))})})),v((t=>t.filter((t=>t.commentId!==e))))})(n,t))).catch(p).finally((()=>P(!1)))}),[b,m]),z=(0,a.useCallback)(((e,t,n)=>{const a="resolve"===e.action?"resolved":"open";w("resolved"===a?e=>{if(e)return null}:t=>{if(t)return s({},t,{replies:[...t.replies,e]})}),E((e=>s({},e,{[t]:(e[t]||[]).map((e=>e.commentId===n?s({},e,{status:a,replies:e.replies+1}):e))}))),v((t=>t.map((t=>t.commentId===n?s({},t,{status:a,replies:[...t.replies,e]}):t))))}),[]),A=(0,a.useCallback)((e=>{let{content:t,namedUsers:n,commentId:a,action:r,uri:l}=e;P(!0);const i={content:t,action:r,namedUsers:n};return(0,o.PP2)({collaborationPath:b,tenant:m,commentId:a,data:i}).then((e=>{let[t]=e;return z(t,l,a)})).catch(p).finally((()=>P(!1)))}),[b,m,z]),L=(0,a.useCallback)((e=>{let{commentId:t,uri:n}=e;A({content:"",namedUsers:[],commentId:t,action:"resolve",uri:n})}),[A]),B=(0,a.useCallback)((e=>{let{commentId:t,uri:n}=e;A({content:"",namedUsers:[],commentId:t,action:"reopen",uri:n})}),[A]);return{clearCurrentComment:(0,a.useCallback)((()=>{w(null)}),[]),comments:y,commentsMap:x,createComment:N,createReply:A,currentComment:C,deleteComment:F,editComment:I,getComment:D,getComments:j,getCommentsCount:R,loading:O,objectTypes:n,pageToken:g,reOpenThread:B,resolveThread:L,sending:S}}},80225:(e,t,n)=>{n.d(t,{a:()=>m});var a=n(24328),r=n(52730),l=n(17440),o=n(35674),i=n(8813),s=n(29627),c=n(90690);function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){p(e,t,n[t])}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,l.when)(l.identity,(0,l.pipe)(i.VGB,l.length,(0,l.times)((e=>e+1)))),m=e=>{let{sorting:t,filter:n,page:p,rowsPerPage:m,config:b,entity:h,relationActivityFilter:g,mode:f}=e;const[y,v]=(0,a.useState)(!1),x=(0,r.useDispatch)(),E=(0,r.useSelector)(o.ZP.selectors.getTenant),C=(0,r.useSelector)(o.ZP.selectors.getDtssPath),{activityFilter:w,globalFilter:S}=(0,r.useSelector)(o.ZP.selectors.getGlobalSearchRequestOptions)||{},P=(0,s._)(),O=b.suggested,T=(0,a.useCallback)((()=>{if(null!=h&&h.uri){const e=u({},b.content,{sortBy:null==t?void 0:t.field,order:null==t?void 0:t.order,returnDates:!0,returnObjects:!0,activeness:{relation:g||i.Ng6.ALL,entity:w},max:m,offset:p*m,filter:(0,i.vyX)(S,n)||void 0,suggested:d(O)}),a=[e].concat((0,l.ifElse)(l.identity,(0,l.pipe)(i.VGB,(t=>t.map(((t,n)=>u({},t,{id:e.suggested[n]}))))),(0,l.always)([]))(O)),r=(0,l.cond)([[(0,l.pipe)((0,l.prop)("uri"),i.ZiX),()=>Promise.resolve([{total:0}])],[i.biM,e=>(0,i.n_1)({entityUri:e.uri,configs:a,customerTenant:E,dataTenant:e.dataTenant,dtssPath:C})],[l.T,e=>(0,i.N6e)(e.uri,a)]]);v(!0),P(r(h)).then((e=>{let[{connections:t,total:n}]=e;x(o.N5.relations.actions.relationsLoaded({id:b.id,connections:t,total:n}))})).finally((()=>{v(!1)}))}}),[w,b,x,C,null==h?void 0:h.uri,null==h?void 0:h.dataTenant,n,S,p,g,m,P,t,E]),k=(0,a.useRef)(!1);k.current=!1,(0,a.useEffect)((()=>{k.current=!0,T()}),[T]);const Z=(0,c.D)(f);return(0,a.useEffect)((()=>{f!==i.ARY.Viewing||k.current||Z===f||(k.current=!0,T())}),[T,f,Z]),{isLoading:y,reload:T}}},10:(e,t,n)=>{n.d(t,{U:()=>i});var a=n(24328),r=n(52730),l=n(8813),o=n(35674);const i=()=>{const[e,t]=(0,a.useState)([]),n=(0,r.useSelector)(o.ZP.selectors.getTenant),i=(0,r.useSelector)(o.ZP.selectors.getServicesPath),s=e=>{console.warn("Users error",e),t([])};return(0,a.useEffect)((()=>{(0,l.kz_)({tenant:n,servicesPath:i}).then((e=>{let{array:n}=e;return t(n)})).catch(s)}),[n,i]),e}},98984:(e,t,n)=>{n.r(t),n.d(t,{default:()=>$t});var a=n(24328),r=n.n(a),l=n(52730),o=n(8598),i=n(36138),s=n(44443),c=n(22664),u=n(12212),p=n(97333),d=n(17440),m=n(35674),b=n(8813),h=n(10),g=n(55962),f=n(80225),y=n(36852),v=n(89575),x=n(58142),E=n(63929),C=n(33109),w=n(76368),S=n(87378),P=n(42011);function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){T(e,t,n[t])}))}return e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const k={relationsTable:{},attributesTable:{}};var Z=n(75975),R=n(79573),j=n(17569),D=n(87918),N=n.n(D);const I="relation.type",F="relation.attributes",z=[{id:"entity.label",get label(){return N().text("Profile")},dataTypeDefinition:{type:b.oS0.TYPE_STRING},hideable:!1,filterable:!1,initialWidth:280,autoResize:!1},{id:I,get label(){return N().text("Type")}},{id:"relation.label",get label(){return N().text("Directional Label")},filterable:!1,dataTypeDefinition:{type:b.oS0.TYPE_STRING}},{id:"relation.activeness.startDate",get label(){return N().text("Start Date")},dataTypeDefinition:{type:b.oS0.TYPE_ACTIVENESS_DATE}},{id:"relation.activeness.endDate",get label(){return N().text("End Date")},dataTypeDefinition:{type:b.oS0.TYPE_ACTIVENESS_DATE}},{id:F,get label(){return N().text("Attributes")},sortable:!1,filterable:!1,maxAttrsToShow:7}],A=(0,d.pluck)("id",z),L=[I,F],B=[20,50,100],M=(0,d.pipe)(b.Tde,(0,d.concat)("relation.")),U=(0,d.pipe)((0,d.map)((e=>({id:M(e.uri),label:e.label,dataTypeDefinition:(0,b.PFL)(e)}))),(0,d.uniqBy)((0,d.prop)("id")));function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){_(e,t,n[t])}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const W="CHANGE_RELATION_TYPE",H="APPLY_SAVED_STATE",q="SAVE_CURRENT_STATE",G=V({},Z.ZP.actions,{changeRelationType:(0,R.zD)(W),applySavedState:(0,R.zD)(H),saveCurrentState:(0,R.zD)(q)}),$=(0,d.assoc)("page",0),Y=e=>(0,d.pipe)((0,d.prop)("visibleColumns"),(0,d.ifElse)((0,d.always)(e.currentRelationType),(0,d.without)(L),(0,d.concat)(L)),(0,d.intersection)(A))(e),X=e=>(0,d.path)(["visibleColumnsForRelationTypes",`${e.currentRelationType}`],e),K=e=>{const t=(0,d.either)(X,Y)(e);return Z.ZP.changeVisibleColumns(e,t)},Q=e=>{const{currentRelationType:t,visibleColumns:n}=e;return(0,d.evolve)({visibleColumnsForRelationTypes:(0,d.assoc)(`${t}`,n)},e)},J=(0,d.pipe)(Q,(0,d.pick)(["currentRelationType","visibleColumnsForRelationTypes","filters","sorting"]));var ee=n(9377),te=n(90436),ne=n(17998),ae=n(55310),re=n(79935),le=n(33903),oe=n(54238),ie=n(1128),se=n(79692);const ce=(0,se.Z)({select:{fontSize:"13px",color:"rgba(0,0,0,.6)",paddingLeft:"15px","&&":{paddingRight:"35px"}},selectMenu:{"& li":{fontSize:"13px",height:"32px"}},textField:{maxWidth:"100%"}}),ue=e=>{let{value:t,onChange:n,relationTypes:l,className:o}=e;const i=ce(),s=(0,a.useMemo)((()=>(0,d.pipe)((0,d.map)((e=>{let{label:t,uri:n}=e;return{label:t,value:n}})),(0,d.concat)([{value:"",label:N().text("All types")}]))(l)),[l]);return r().createElement("div",{className:o},r().createElement(ie.Z,{displayEmpty:!0,disableUnderline:!0,classes:{select:i.select},TextFieldProps:{classes:{root:i.textField}},MenuProps:{classes:{list:i.selectMenu}},value:t||"",entries:s,onChange:e=>n(e||null)}))},pe=(0,se.Z)((e=>({header:{height:"56px",boxSizing:"border-box",paddingRight:"10px"},title:{fontSize:"16px"},total:{fontSize:"14px",color:e.palette.text.secondary,flexShrink:0,marginRight:"5px"},relationTypeSelector:{margin:"0px 10px 0 30px",overflow:"hidden"}}))),de=(0,a.memo)((e=>{let{total:t,filteringEnabled:n,onToggleFilters:a,columnsData:l,selectedColumns:o,currentRelationType:i,onRelationTypeChange:s,relationTypes:c,onChangeColumns:u}=e;const p=pe();return r().createElement(ne.Z,{title:N().text("Relationships"),classes:{root:p.header,title:p.title}},c.length>0&&r().createElement(ue,{className:p.relationTypeSelector,value:i,onChange:s,relationTypes:c}),r().createElement(ae.Z,{height:28,margin:20}),r().createElement(te.Z,{variant:"caption",className:p.total},1===t?N().text("${count} record",{count:t}):N().text("${count} records",{count:t})),r().createElement(re.Z,null),r().createElement(le.Z,{enabled:n,onClick:a}),r().createElement(ae.Z,{height:28,margin:8}),r().createElement(oe.Z,{columnsData:l,selectedColumns:o,onChangeColumns:u}))}));var me=n(16809),be=n(66678),he=n(45108),ge=n(80030),fe=n(85103),ye=n(92332),ve=n(25843);const xe=(0,se.Z)((e=>({headCell:{display:"flex",alignItems:"center",height:"100%",width:"100%",fontSize:"12px",color:e.palette.text.secondary,background:"linear-gradient(0deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06)), #FFFFFF"},rowCell:{fontSize:"13px",overflow:"hidden",overflowWrap:"break-word"},inactiveRowCell:{opacity:.6},defaultWrapper:{padding:"15px 25px 0 25px","&:last-child":{paddingBottom:"15px"}},entityCell:{display:"flex",alignItems:"flex-start",padding:"15px"},entityAvatar:{transform:"scale(0.5)",margin:"-10px 0 -10px -10px"},inactiveEntityAvatar:{overflow:"initial","&:after":{content:'""',position:"absolute",backgroundColor:"rgb(209, 206, 206)",border:"1px solid rgba(0, 0, 0, 1)",borderRadius:"2px",width:"12px",right:0,bottom:0,height:"12px"},"& > img":{borderRadius:"50%",overflow:"hidden"}},entityLabel:{color:e.palette.primary.main,textDecoration:"none",fontWeight:500},attributesWrapper:{padding:"15px 25px 10px 25px",color:"rgba(0,0,0,0.87)"},commentsContainer:{marginLeft:"auto"}}))),Ee=(0,ve.Z)((e=>{const t=xe();return r().createElement("div",{className:t.headCell},r().createElement(ye.default,e))}));var Ce=n(71153),we=n.n(Ce),Se=n(62901),Pe=n(42662),Oe=n(18527),Te=n(72316);const ke=e=>{let{value:{entity:t,entityType:n,relation:a},isInactiveRelation:o}=e;const i=xe(),s=(0,l.useSelector)(m.ZP.selectors.getEntityUri);return r().createElement("div",{className:we()(i.entityCell,Se.U)},r().createElement(Pe.Z,{className:we()(i.entityAvatar,{[i.inactiveEntityAvatar]:o}),entityType:n}),r().createElement(Oe.Z,{value:(0,b.wwR)({uri:t.entityUri,dataTenant:t.dataTenant}),className:i.entityLabel},(0,b.idV)(t.entityLabel)),r().createElement("div",{className:i.commentsContainer,onClick:e=>e.stopPropagation()},r().createElement(Te.Z,{uri:a.relationUri,relatedObjectUris:(0,b.wp9)(b.q7e.RELATION,{entityUri:s,connection:{relation:a,entity:t}}),objectType:b.q7e.RELATION,allowOnlyOneComment:!0})))};var Ze=n(89978);const Re=e=>{let{columnData:t,value:{attributes:n,attributeTypes:a}}=e;const l=xe();return r().createElement("div",{className:l.attributesWrapper,onClick:e=>e.stopPropagation()},r().createElement(Ze.Z,{max:t.maxAttrsToShow,entity:{attributes:n},attrTypes:a,drawLines:!1}))};var je=n(67586);const De=e=>{let{value:t,columnData:{dataTypeDefinition:n}}=e;const a=xe();return r().createElement("div",{className:a.defaultWrapper},r().createElement(je.Z,{value:t,dataTypeDefinition:n}))};function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ie=(0,d.pipe)((0,d.split)("."),(0,d.slice)(2,1/0)),Fe=e=>{if(e.startsWith("relation.attributes")){const t=Ie(e);return t.length>1?t.slice(0,-1):null}return null},ze=e=>{switch(e){case"entity.label":return ke;case"relation.attributes":return Re;default:return De}},Ae=(0,d.map)((e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){Ne(e,t,n[t])}))}return e}({sortable:!0,resizable:!0},e,{headCellRenderer:Ee,nestedPath:Fe(e.id),rowCellValueRenderer:ze(e.id)}))),Le=(0,d.cond)([[(0,d.pathEq)(["columnData","id"],"relation.attributes"),e=>{let{columnData:t,cell:n}=e;const a=(0,d.pipe)((0,d.path)(["values",0,"attributes"]),d.values,d.length)(n);return a>t.maxAttrsToShow?26*t.maxAttrsToShow+49:26*a+25}],[d.T,fe.Z]]);function Be(){return Be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Be.apply(this,arguments)}const Me=e=>{let{cell:t,CellValueRenderer:n}=e,a=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["cell","CellValueRenderer"]);const l=xe();return r().createElement("div",{className:we()(l.rowCell,{[l.inactiveRowCell]:a.isInactiveRelation})},t.values.map(((e,t)=>r().createElement(n,Be({key:t,value:e},a)))))};var Ue=n(22983),Ve=n(43054),_e=n(98538),We=n(40435),He=n(22118),qe=n(12231),Ge=n(78223);const $e=(0,se.Z)((e=>({menuItem:{minHeight:"32px",color:e.palette.text.secondary},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"16px"},buttons:{display:"flex",alignItems:"center",paddingRight:"5px"}}))),Ye=(0,Ge.Z)(qe.Z),Xe=(0,a.forwardRef)(((e,t)=>{let{item:n,onMenuClose:a=R.ZT}=e;const l=$e(),{icon:o,disabled:i,text:s,tooltip:c,onClick:u}=n;return r().createElement(Ye,{tooltipTitle:c,showForDisabled:!0,classes:{root:l.menuItem},onClick:e=>{a(),u(e)},disabled:i,ref:t},o,r().createElement(te.Z,{classes:{root:l.menuText}},s))}));Xe.displayName="MenuItemRenderer";const Ke=Xe,Qe=e=>{let{disableDelete:t,connection:{entity:n,relation:o},onMenuOpen:i=R.ZT,onMenuClose:s=R.ZT,onDelete:c}=e;const u=$e(),p=(0,l.useSelector)(m.ZP.selectors.getMetadata),h=(0,d.pipe)((0,d.prop)("relationType"),(0,b.V3K)(p),(0,b.uGe)(b.BDP.DELETE))(o),g=!t&&h,[f,y]=(0,a.useState)(!1),v=()=>y(!1),x=[{disabled:!g,text:N().text("Delete"),icon:r().createElement(Ue.Z,null),tooltip:g?null:N().text("You don't have permissions to delete"),onClick:()=>y(!0)}],E=(0,a.useCallback)((()=>{f||s()}),[f,s]);return r().createElement("div",{className:u.buttons},r().createElement(_e.Z,{MenuItemRenderer:Ke,menuId:"relationships-table-actions",buttonComponent:We.Z,buttonProps:{icon:Ve.Z,size:"S"},menuItems:x,onMenuOpen:i,onMenuClose:E}),r().createElement(He.Z,{open:f,title:N().text('Do you want to delete relationship "${label}"?',{label:(C=(0,b.idV)(n.entityLabel),C.length>17?`${C.substring(0,17)}...`:C)}),content:N().text("This relationship will be removed and all the values in the relationship will be permanently deleted. Are you sure you want to delete this relationship?"),onSave:(0,d.pipe)(v,s,c),onDiscard:(0,d.pipe)(v,s),saveCaption:N().text("Delete"),discardCaption:N().text("Cancel")}));var C},Je=(0,se.Z)({tableContainer:{flex:1,overflow:"hidden",display:"flex",zIndex:0},hoveredRowRightContentWrapper:{width:"100%",pointerEvents:"none!important"},menuButtonContainer:{position:"absolute",top:"calc(50% - 12px)",right:0,pointerEvents:"all"},tooltipAnchor:{width:"100%",height:"1px"}});function et(){return et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},et.apply(this,arguments)}const tt=(0,a.memo)((e=>{let{metadata:t,connections:n,columnsData:l,sorting:o,onSort:i,filters:s,onFilter:c,onRowClick:u,tableRef:p,onDelete:m,readOnly:h}=e;const g=Je(),f=(0,a.useMemo)((()=>((e,t,n)=>(n||[]).map((n=>(0,d.pipe)((0,d.reduce)(((t,a)=>{let{id:r}=a;return(0,d.assoc)(r,((e,t,n)=>{let{entity:a,relation:r}=t;switch(n){case"entity.label":return{entity:a,entityType:(0,b.nt9)(e,a.entityType),relation:r};case"relation.type":return r.relationType;case"relation.label":return r.relationLabel;case"relation.activeness.startDate":return r.startDate;case"relation.activeness.endDate":return r.endDate;case"relation.attributes":return{attributes:r.object.attributes,attributeTypes:(0,b.V3K)(e,r.relationType).attributes};default:return((e,t)=>(0,d.pipe)((0,d.path)(["object","attributes"]),(0,b.tT_)(e))(t))(Ie(n),r)}})(e,n,r),t)}),{}),(0,d.assoc)("rawValue",n))(t))))(t,l,n)),[t,n,l]),y=(0,a.useMemo)((()=>Ae(l)),[l]),{getDynamicRowCellHeight:v,changeRowCellHeight:x}=(0,me.Z)(),E=(0,a.useCallback)((0,d.either)(v,Le),[v,Le]),[C,w]=(0,a.useState)(null),S=(0,a.useCallback)((e=>{const t=!(0,b.Fn9)(e.rowValue.rawValue.relation);return r().createElement(be.Z,et({onChangeHeight:x},e),r().createElement(Me,et({},e,{isInactiveRelation:t})))}),[x]),[P,O]=(0,a.useState)(!1),T=(0,a.useCallback)((()=>O(!0)),[]),k=(0,a.useCallback)((()=>{w(null),O(!1)}),[]),Z=(0,a.useCallback)((e=>w((t=>P?t:e))),[P]),R=(0,a.useMemo)((()=>{const e=null!=C?f[C].rawValue:null,t=!(0,b.Fn9)(null==e?void 0:e.relation);return e&&r().createElement(r().Fragment,null,r().createElement(ge.ZP,{key:e.relation.relationUri,open:t,title:N().text("Inactive")},r().createElement("div",{className:g.tooltipAnchor})),r().createElement("div",{className:g.menuButtonContainer},r().createElement(Qe,{disableDelete:h,connection:e,onMenuOpen:T,onMenuClose:k,onDelete:()=>m(e.relation.relationUri)})))}),[m,f,C]);return r().createElement("div",{className:g.tableContainer},r().createElement(he.Z,{fixFirstColumn:!0,columnsData:y,rowsData:f,sorting:o,onSort:i,filters:s,onFilter:c,defaultColumnWidth:250,defaultColumnMinWidth:200,headRowHeight:48,getRowCellHeight:E,renderRowCell:S,onRowClick:u,ref:p,hoverStateEnabled:!0,hoverRowIndex:C,onRowHover:Z,hoveredRowRightContent:R,classes:{hoveredRowRightContentWrapper:g.hoveredRowRightContentWrapper}}))}));var nt=n(29627),at=n(82658),rt=n(73972),lt=n(1730),ot=n(23759),it=n(10938),st=n(64435),ct=n(38361),ut=n(77194),pt=n(99144),dt=n(65549),mt=n(77277),bt=n(71285),ht=n(10765);const gt=(0,se.Z)((()=>({tableRow:{"& + &":{marginTop:"4px"},margin:"auto",maxWidth:"448px"}})));function ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yt=(0,a.memo)((e=>{let{readOnly:t,relation:n,metadata:l,selectedAttributeTypes:o,onDeleteCrosswalk:i,onEditCrosswalk:s}=e;const c=gt(),u=(0,b.V3K)(l,n.type),p=(0,a.useMemo)((()=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,d.pipe)((0,d.propOr)([],"crosswalks"),(0,d.map)((0,d.assoc)("ownerType","entity")),(0,ht.o)(e.type,t))(e)}(n,o)),[n,o]),[m,h]=(0,a.useState)([]),g=(0,a.useCallback)((e=>{i({entityUri:n.uri,crosswalkId:e})}),[i,n.uri]),f=(0,a.useCallback)((e=>{s(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){ft(e,t,n[t])}))}return e}({entityUri:n.uri},e))}),[s,n.uri]);return r().createElement("div",null,p.map((e=>{let{source:n,crosswalksByTypes:a}=e;return r().createElement("div",{key:n,className:c.tableRow},r().createElement(bt.Z,{source:n,crosswalksByTypes:a,expanded:m.includes(n),disableEditCrosswalk:!(0,b.Zm0)(u)||t,disableDeleteCrosswalk:!(0,b.a14)(u)||t,onEdit:f,onDelete:g,onToggleExpanded:()=>{h((0,d.ifElse)((0,d.includes)(n),(0,d.without)([n]),(0,d.append)(n)))}}))})))}));var vt=n(89468);const xt=(0,se.Z)((e=>({header:{display:"flex",flexDirection:"row",alignItems:"center",padding:"20px 12px",borderBottom:"1px solid rgba(0, 0, 0, 0.12)"},title:{fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px",color:e.palette.text.primary,marginLeft:"12px"},hint:{color:e.palette.text.secondary,display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"flex-start",margin:"4px 14px 10px"},hintText:{marginLeft:"8px",fontSize:"12px",lineHeight:"16px"},buttons:{display:"flex",padding:"8px 6px 4px"},buttonLabel:{fontSize:"14px",fontWeight:500,lineHeight:"16px"},icon:{fontSize:"18px",marginRight:"8px"},editor:{paddingLeft:25,margin:"auto",maxWidth:"448px",boxSizing:"border-box",marginBottom:"4px"},tableContainer:{overflowY:"auto",overflowX:"hidden",paddingLeft:"16px",paddingRight:"6px"}}))),Et=(0,Ge.Z)(mt.Z),Ct=(0,a.memo)((e=>{let{className:t,readOnly:n,relation:o,selectedAttributeTypes:i,onAddCrosswalk:s,onDeleteCrosswalk:c,onEditCrosswalk:u}=e;const p=xt(),d=(0,l.useSelector)(m.ZP.selectors.getMetadata),h=(0,b.V3K)(d,o.type),[g,f]=(0,a.useState)(!1),y=(0,b.mkC)(h)&&!n;return r().createElement("div",{className:t},r().createElement("div",{className:p.header},r().createElement("span",{className:p.title},N().text("Legend"))),r().createElement("div",{className:p.buttons},r().createElement(Et,{color:"primary",showForDisabled:!0,disabled:!y,tooltipTitle:y?null:N().text("You don't have permissions to add crosswalk"),onClick:()=>f(!0)},r().createElement(dt.Z,{className:p.icon}),r().createElement("div",{className:p.buttonLabel},N().text("Crosswalk")))),r().createElement("div",{className:p.hint},r().createElement(pt.Z,{className:p.icon}),r().createElement("span",{className:p.hintText},N().text("You can drag a crosswalk to add values to attributes swimlanes"))),r().createElement("div",{className:p.tableContainer},g&&r().createElement(vt.Z,{className:p.editor,onAdd:e=>s({entity:o,crosswalk:e}),onClose:()=>f(!1)}),r().createElement(yt,{readOnly:n,metadata:d,relation:o,selectedAttributeTypes:i,onDeleteCrosswalk:c,onEditCrosswalk:u})))}));var wt=n(83088),St=n(23147),Pt=n(90143),Ot=n(20146);const Tt=(0,se.Z)((e=>({entityInfo:{flex:"0 1 auto",overflow:"hidden",minWidth:"100px"},entityLabelContainer:{display:"flex",alignItems:"center",overflow:"hidden"},entityLabel:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary},infoIcon:{fontSize:"16px",color:e.palette.text.secondary,marginLeft:"5px"},profileBand:{margin:"-10px",maxWidth:"500px"},entityTypeBadge:{marginTop:"7px"}}))),kt=e=>{let{entity:t}=e;const n=Tt(),a=(0,b.idV)(t.label);return r().createElement("div",{className:n.entityInfo},r().createElement("div",{className:n.entityLabelContainer},r().createElement(wt.C,{value:a},r().createElement(te.Z,{variant:"h6",className:n.entityLabel,noWrap:!0},a)),r().createElement(Pt.Z,{title:r().createElement(C.Z,{className:n.profileBand,entity:t}),placement:"right"},r().createElement(pt.Z,{className:n.infoIcon}))),r().createElement(Ot.Z,{className:n.entityTypeBadge,entity:t,size:"medium"}))},Zt=(0,se.Z)((e=>({root:{flexShrink:0,overflow:"hidden",width:"110px"},label:{color:e.palette.text.secondary,fontSize:"13px"}}))),Rt=e=>{let{relation:t}=e;const n=Zt(),{direction:a,relationLabel:l}=t;return r().createElement("div",{className:n.root},r().createElement(wt.C,{value:l},r().createElement(te.Z,{variant:"subtitle2",className:n.label,align:"center",noWrap:!0},l)),r().createElement("svg",{width:"110",height:"12",fill:"black",fillOpacity:"0.3"},"out"===a&&r().createElement("polygon",{points:"94 0, 110 6, 94 12, 94 9, 0 9, 0 3, 94 3"}),"bidirectional"===a&&r().createElement("polygon",{points:"94 0, 110 6, 94 12, 94 9, 16 9, 16 12, 0 6, 16 0, 16 3, 94 3"}),"in"===a&&r().createElement("polygon",{points:"16 12, 0 6, 16 0, 16 3, 110 3, 110 9, 16 9"})))};var jt=n(39600),Dt=n(27604),Nt=n(79784);const It=(0,se.Z)((()=>({root:{"&:hover $editButton":{visibility:"visible"}},editButton:{visibility:"hidden",marginLeft:"4px",marginBottom:"4px"},paper:{width:"150px",border:"3px solid rgba(0, 0, 0, 0.3)",borderRadius:"4px",boxSizing:"border-box",overflow:"hidden"}}))),Ft=e=>{let{value:t=null,onChange:n,readOnly:l}=e;const o=It(),i=(0,a.useRef)(),[s,c]=(0,a.useState)(!1),u=()=>c(!1),[p,d]=(0,a.useState)(t),m=()=>{p!==t&&n(p),u()};return r().createElement("span",{ref:i,className:o.root},t&&(0,b.p6d)(t),r().createElement(We.Z,{disabled:l,icon:Dt.Z,size:"XXS",className:o.editButton,onClick:()=>c(!0)}),r().createElement(Nt.ZP,{classes:{paper:o.paper},open:s,anchorEl:i.current,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:14,horizontal:20},onKeyUp:e=>{"Enter"===e.key?m():"Escape"===e.key&&u()},onBackdropClick:m},r().createElement(jt.Z,{InputProps:{autoFocus:!0,disableUnderline:!0,fullWidth:!0},size:"small",hiddenLabel:!0,label:void 0,value:p&&new Date(p),onChange:e=>d(e&&e.valueOf())})))},zt=(0,se.Z)((e=>({relationBand:{flexShrink:0,boxShadow:"inset 0px -1px 0px rgba(0,0,0,0.06)",padding:"16px 19px"},inactiveRelationBand:{opacity:.6,background:"rgba(185, 188, 197, 0.18)"},toolbar:{display:"flex",alignItems:"center",gap:"16px",marginBottom:"10px"},mainInfo:{display:"flex",gap:"16px",marginLeft:"40px"},detailsInfo:{display:"flex",gap:"34px",marginLeft:"40px",marginTop:"17px",color:e.palette.text.secondary,fontSize:"13px"},detailTitle:{color:e.palette.text.primary,flexShrink:0,marginRight:"4px"},directionalLabel:{display:"flex",overflow:"hidden","& span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},relationDate:{flexShrink:0},commentsContainer:{marginRight:"18px"}})));function At(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){Lt(e,t,n[t])}))}return e}function Lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bt=(0,a.memo)((e=>{let{readOnly:t,entity:n,connection:a,onNavigateBack:l,onDelete:o,onChangeActivenessDate:i}=e;const s=!(0,b.Fn9)(a.relation),c=zt();return r().createElement("div",{className:we()(c.relationBand,Se.U,{[c.inactiveRelationBand]:s})},r().createElement("div",{className:c.toolbar},r().createElement(We.Z,{icon:St.Z,size:"S",onClick:()=>l()}),r().createElement(te.Z,{variant:"subtitle2",display:"inline"},N().text("Back to relationships")),r().createElement(re.Z,null),r().createElement("div",{className:c.commentsContainer},r().createElement(Te.Z,{uri:a.relation.relationUri,relatedObjectUris:(0,b.wp9)(b.q7e.RELATION,{entityUri:null==n?void 0:n.uri,connection:a}),objectType:b.q7e.RELATION,allowOnlyOneComment:!0})),r().createElement(Qe,{connection:a,onDelete:o,disableDelete:t})),r().createElement("div",{className:c.mainInfo},r().createElement(kt,{entity:n}),r().createElement(Rt,{relation:a.relation}),r().createElement(kt,{entity:At({},a.entity.object,{dataTenant:a.entity.dataTenant})})),r().createElement("div",{className:c.detailsInfo},r().createElement("div",{className:c.directionalLabel},r().createElement("span",{className:c.detailTitle},N().text("Directional label:")),r().createElement(wt.C,{value:a.relation.relationLabel},r().createElement("span",null,a.relation.relationLabel))),r().createElement("div",{className:c.relationDate},r().createElement("span",{className:c.detailTitle},N().text("Start date:")),r().createElement(Ft,{value:a.relation.startDate,onChange:e=>i("startDate",e),readOnly:t})),r().createElement("div",{className:c.relationDate},r().createElement("span",{className:c.detailTitle},N().text("End date:")),r().createElement(Ft,{value:a.relation.endDate,onChange:e=>i("endDate",e),readOnly:t}))))})),Mt=e=>{console.error(e),p.Z.addError({title:N().text("Error"),message:(0,b.xU7)(e,N().text("Something went wrong"))})};var Ut=n(58651),Vt=n(13896);const _t=(0,se.Z)({detailsView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},locked:{pointerEvents:"none"},resizablePanesWrapper:{flexGrow:1},pane:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",overflow:"hidden"}}),Wt=(0,a.memo)((e=>{let{entity:t,connection:n,visibleColumns:l,onClose:o,onDeleteConnection:i,onChangeConnection:s,onChangeVisibleColumns:c,readOnly:u}=e;const p=_t(),m=(()=>{const[e,t]=(0,a.useState)([]),n=(0,a.useRef)([]),r=(0,a.useCallback)((0,b.DsO)((()=>{t([...n.current])}),50),[]),l=(0,a.useCallback)((e=>{n.current=e,r(e)}),[r]),o=(0,a.useCallback)(((e,t)=>{e&&l(t?[e]:[])}),[l]),[i,s]=(0,a.useState)([]),c=(0,a.useCallback)((e=>{e&&s((t=>{return n=[e],a=t,(0,d.concat)(n.filter((e=>!(0,d.any)((0,b.aFF)(e),a))),a.filter((e=>!(0,d.any)((0,b.aFF)(e),n))));var n,a}))}),[]);return{highlightedCrosswalks:(0,a.useMemo)((()=>[...e,...i]),[e,i]),focusedCrosswalks:i,toggleCrosswalkFocus:c,setCrosswalkHighlighted:o}})(),[h,g]=(0,a.useState)(-480),f=(0,a.useCallback)((e=>{let{percentageSize:t}=e;return g(t)}),[]),[y,v]=(0,a.useState)(),[x,E]=(0,a.useState)(!1),C=n.relation.relationUri,w=(0,nt._)(),S=(0,a.useCallback)((()=>E(!0)),[]),P=(0,a.useCallback)((()=>E(!1)),[]),O=(0,a.useCallback)((0,d.pipe)(i,S),[]),[T,k]=(0,a.useMemo)((()=>{const e=e=>{e.errorCode===b.Xt7.CROSSWALK_NOT_FOUND?(Mt(e),t()):e.errorCode===b.Xt7.OBJECT_NOT_FOUND?o(e):(Mt(e),P())},t=()=>{w((0,b._vs)(C)).then((e=>{s((0,d.assocPath)(["relation","object"],e,n)),P()})).catch(e)};return[e,t]}),[n,P,s,o]),{modifiedEntity:Z,crosswalksMap:R,newlyCreatedAttributes:j,onPinAttribute:D,onIgnoreAttribute:N,onAddAttribute:I,onEditAttribute:F,onDeleteAttribute:z}=(0,at.Q)({entity:n.relation.object,onModify:k,onError:T,onLoad:S}),{addCrosswalk:A,deleteCrosswalk:L,editCrosswalk:B}=(0,rt.P)({onSuccess:k,onError:T,onLoad:S}),M=(0,a.useCallback)(((e,t)=>{S(),(t?(0,b.rj2)({entityUri:C,attributeName:e,value:t}).then((()=>s((0,d.assocPath)(["relation",e],t,n)))):(0,b.X78)({entityUri:C,attributeName:e}).then((()=>s((0,d.dissocPath)(["relation",e],n))))).then(P).catch(T)}),[n,S,P,T]);return r().createElement(lt.Z,{className:p.detailsView},r().createElement(ot.hR,m,r().createElement(Vt.DndProvider,{backend:Ut.default},r().createElement(it.Z,null),r().createElement(st.Z,{className:we()(p.resizablePanesWrapper,{[p.locked]:x}),orientation:"vertical",size:h,minSize:600,maxSize:-480,allowResize:!0,onChange:f},r().createElement("div",{className:p.pane},r().createElement(Bt,{readOnly:u,entity:t,connection:n,onNavigateBack:o,onDelete:O,onChangeActivenessDate:M}),r().createElement(ct.R,{attributeUris:j},r().createElement(ut.Z,{readOnly:u,entity:Z,crosswalksMap:R,isLoading:x,onPin:D,onIgnore:N,onEdit:F,onAdd:I,onDelete:z,selectedAttributeTypes:y,onSelectAttributeTypes:v,visibleColumns:l,onChangeVisibleColumns:c}))),r().createElement(Ct,{readOnly:u,className:p.pane,relation:n.relation.object,selectedAttributeTypes:y,onAddCrosswalk:A,onDeleteCrosswalk:L,onEditCrosswalk:B})))))})),Ht=(0,se.Z)({relationshipsView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowX:"hidden",overflowY:"auto",fontFamily:"Roboto, Helvetica, Arial, sans-serif",display:"flex",flexDirection:"column"},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},pane:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",position:"relative"}}),qt=(0,l.connect)(((e,t)=>{let{config:{id:n}}=t;return{entity:m.ZP.selectors.getEntity(e),metadata:m.ZP.selectors.getMetadata(e),connections:m.ZP.selectors.getConnectionsByViewId(e,n),total:m.ZP.selectors.getTotalByViewId(e,n)}}))((e=>{let{config:t,entity:n,metadata:l,connections:o,total:i,saveState:s,getSavedState:c,dispatch:u}=e;const p=Ht(),T=(0,a.useRef)(),R=(0,h.U)(),D=(0,b.biM)(n),{type:N}=n||{},[{visibleColumns:I,filters:F,page:M,rowsPerPage:_,sorting:Y,currentRelationType:te,stateToSave:ne,entityTypeOfAppliedSavedState:ae},{changeColumns:re,toggleFilters:le,changeFilter:oe,changePage:ie,changeRowsPerPage:se,toggleSort:ce,changeRelationType:ue,saveCurrentState:pe,applySavedState:me}]=(e=>{let{defaultColumns:t,defaultSorting:n,defaultRowsPerPage:r}=e;const l={visibleColumns:t,filters:null,sorting:n,page:0,rowsPerPage:r,currentRelationType:null,stateToSave:null,visibleColumnsForRelationTypes:{},entityTypeOfAppliedSavedState:null},[o,i]=(0,a.useReducer)(((e,t)=>{switch(t.type){case W:{const n=t.payload;return(0,d.pipe)(Q,(0,d.assoc)("currentRelationType",n),K,$)(e)}case H:{const{savedState:n,entityTypeUri:a}=t.payload;return V({},e,n,{visibleColumns:n?X(n):e.visibleColumns,entityTypeOfAppliedSavedState:a})}case q:return V({},e,{stateToSave:J(e)});default:return Z.ZP.reducer(e,t)}}),l);return[o,(0,j.o)({actions:G,dispatch:i})]})({defaultColumns:A,defaultRowsPerPage:B[0],defaultSorting:{field:A[0],order:"asc"}}),be=ae===N,{isLoading:he,relationsTableSavedState:ge,attributesTableSavedState:fe,updateRelationsTableSavedState:ye,updateAttributesTableSavedState:ve}=(e=>{var t;let{getSavedState:n,saveState:r,entityTypeUri:l}=e;const[o,i]=(0,a.useState)(k),[s,c]=(0,a.useState)(null);(0,g.D)((()=>{s&&(i(O({},o,{relationsTable:s})),c(null))}),[l]);const[u,p]=(0,a.useState)(!0);return(0,a.useEffect)((()=>{n().then((e=>{i(e||k)})).then((e=>p(!1))).catch((e=>p(!1)))}),[]),{isLoading:u,relationsTableSavedState:null===(t=o.relationsTable)||void 0===t?void 0:t[l],attributesTableSavedState:o.attributesTable,updateRelationsTableSavedState:e=>{const t=O({},o.relationsTable,{[l]:e});c(t),r(O({},o,{relationsTable:t}))},updateAttributesTableSavedState:e=>{r(O({},o,{attributesTable:e}))}}})({getSavedState:c,saveState:s,entityTypeUri:N}),[xe,Ee]=(0,a.useState)();(0,a.useEffect)((()=>{he||me({savedState:ge,entityTypeUri:N})}),[he,N]),(0,a.useEffect)((()=>{he||Ee(null==fe?void 0:fe.visibleColumns)}),[he]),(0,g.D)((()=>{be&&ye(ne)}),[ne]),(0,g.D)((()=>{ie(0)}),[n]);const[Ce,we]=(0,a.useState)(),Se=(0,a.useCallback)((()=>{we(null)}),[]),Pe=(0,a.useMemo)((()=>{const e=(0,b.io3)(l,N);return l.relationTypes.filter((0,d.both)((0,b.uGe)(b.BDP.READ),(t=>{let{startObject:n,endObject:a}=t;return e.some((0,d.either)((0,d.equals)(n.objectTypeURI),(0,d.equals)(a.objectTypeURI)))})))}),[l,N]),Oe=(0,a.useMemo)((()=>((e,t)=>t?(0,d.pipe)((0,d.find)((e=>e.uri===t)),b.DK$,U,(0,d.concat)(z),(0,d.reject)((e=>{let{id:t}=e;return L.includes(t)})))(e):(e=>{return t=(0,d.assoc)("dataTypeDefinition",(e=>({type:b.oS0.TYPE_SELECT,options:e.map((e=>{let{uri:t,label:n}=e;return{value:t,label:n}}))}))(e)),e=>(0,d.adjust)(e.findIndex((0,d.propEq)("id","relation.type")),t,e);var t})(e)(z))(Pe,te)),[Pe,te]),Te=(0,a.useMemo)((()=>I.map((e=>Oe.find((0,d.propEq)("id",e)))).filter(d.identity)),[I,Oe]),ke=(0,a.useMemo)((()=>{const e=(0,d.pipe)((0,d.when)((0,d.always)(te),(0,d.filter)((0,d.propEq)("uri",te))),(0,d.map)((0,d.prop)("uri")))(Pe);return{id:t.id,content:{inRelations:e,outRelations:e}}}),[t.id,te,Pe]),Ze=(0,a.useMemo)((()=>((e,t)=>{const n=(0,ee.Tz)(t,e);return(new b.MEy).addClause(n).build()})(F,Te)),[F,Te]),{isLoading:Re,reload:je}=(0,f.a)({page:M,rowsPerPage:_,config:ke,entity:be?n:null,filter:Ze,mode:b.ARY.Viewing,sorting:Y}),De=!be||Re,Ne=(0,a.useCallback)((0,d.pipe)(ce,pe),[ce,pe]),Ie=(0,a.useCallback)((0,d.pipe)(oe,pe),[oe,pe]),Fe=(0,a.useCallback)((0,d.pipe)(le,pe),[le,pe]),ze=(0,a.useCallback)((0,d.pipe)(re,pe),[re,pe]),Ae=(0,a.useCallback)((0,d.pipe)(ue,pe),[ue,pe]),Le=(0,a.useCallback)((e=>{Ee(e),ve({visibleColumns:e})}),[ve]),Be=null==o?void 0:o[Ce],Me=(0,a.useCallback)((e=>{u(m.N5.relations.actions.relationsLoaded({id:t.id,connections:(0,d.update)(Ce,e,o),total:i}))}),[Be]),[Ue,Ve]=(0,a.useMemo)((()=>[(0,b.w3p)(o),[b.q7e.RELATION]]),[o]),_e=(0,y.C)({objectIds:Ue,objectTypes:Ve,enabled:!D}),We=(0,a.useMemo)((()=>(0,b.Px$)(o)),[o]),He=(0,a.useCallback)((e=>{Mt(e),e.errorCode===b.Xt7.OBJECT_NOT_FOUND&&je()}),[je]),qe=(0,a.useCallback)((e=>{(0,d.pipe)(b.VGk,(0,d.andThen)(je),(0,d.otherwise)(He))(e)}),[je,He]),Ge=(0,a.useCallback)((()=>{(0,d.pipe)(b.VGk,(0,d.andThen)((0,d.pipe)(Se,je)),(0,d.otherwise)((e=>{e.errorCode===b.Xt7.OBJECT_NOT_FOUND&&Se(),He(e)})))(Be.relation.relationUri)}),[Be,je,Se,He]),$e=(0,a.useCallback)((e=>{e&&He(e),Se()}),[He,Se]);return r().createElement(v.s.Provider,{value:R},r().createElement(x.h.Provider,{value:_e},r().createElement(E.X.Provider,{value:We},r().createElement("div",{className:p.relationshipsView},r().createElement(C.Z,{entity:n},r().createElement(w.a,null)),r().createElement(de,{total:i,filteringEnabled:!!F,onToggleFilters:Fe,columnsData:Oe,selectedColumns:I,onChangeColumns:ze,relationTypes:Pe,currentRelationType:te,onRelationTypeChange:Ae}),r().createElement("div",{className:p.pane},De&&r().createElement(S.Z,null),r().createElement(tt,{readOnly:D,metadata:l,connections:o,columnsData:Te,sorting:Y,onSort:Ne,filters:F,onFilter:Ie,onRowClick:we,tableRef:T,onDelete:qe}),r().createElement(P.Z,{count:i,rowsPerPageOptions:B,page:M,onChangePage:ie,rowsPerPage:_,onChangeRowsPerPage:se,basicTableRef:T})),Be&&r().createElement(Wt,{readOnly:D,entity:n,visibleColumns:xe,onChangeVisibleColumns:Le,connection:Be,onClose:$e,onDeleteConnection:Ge,onChangeConnection:Me})))))})),Gt=(0,i.createGenerateClassName)({productionPrefix:"relationshipsPerspective",disableGlobal:!0}),$t=e=>{let{config:t,store:n,onResize:d,saveState:m,getSavedState:h}=e;const g=(0,a.useCallback)((0,b.aYu)(h),[h]);return r().createElement(l.Provider,{store:n},r().createElement(u.m.Provider,{value:t.id},r().createElement(i.StylesProvider,{generateClassName:Gt},r().createElement(c.MuiPickersUtilsProvider,{utils:o.Z},r().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>null==d?void 0:d(Math.floor(e),Math.floor(t))}),t&&r().createElement(qt,{config:t,saveState:m,getSavedState:g}),r().createElement(p.Z,null)))))}}}]);
|