@reltio/remotes 1.4.1054 → 1.4.1055
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/{412.css → 525.css} +0 -0
- package/525.js +1 -0
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
- package/412.js +0 -1
package/{412.css → 525.css}
RENAMED
|
File without changes
|
package/525.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[525],{50548:(e,t,n)=>{n.d(t,{l:()=>i});var r=n(24328),a=n.n(r);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 i=(e,t,n)=>{if(e&&t){const i=(0,r.memo)(n);return n=>a().createElement(e.Consumer,null,(e=>a().createElement(i,o({},n,t(e,n)))))}return n}},44938:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(24328),a=n.n(r),o=n(50166),i=n(44443),l=n(22241);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 f=s(),b=(0,r.useRef)({}),[y,v]=(0,r.useState)({}),x=(0,r.useCallback)((0,l.DsO)((()=>{v(c({},b.current))})),[]),w=(0,r.useCallback)(((e,t)=>m?m(t,e):t),[m]),E=(0,r.useRef)(),C=g||E;C.current&&C.current.resetAfterIndex(0,!1);const T=(0,r.useMemo)((()=>e=>{let{data:t,index:n,style:r}=e;const o=w(t,n);return a().createElement("div",{style:r,className:f.item},a().createElement("div",{style:h?void 0:{visibility:o in y?void 0:"hidden"}},a().createElement(i.Z,{handleHeight:!0,onResize:(e,t)=>{b.current[o]!==t&&(((e,t)=>{b.current=c({},b.current,{[e]:t})})(o,t),x())}}),p({data:t,index:n})))}),[p,h,w,x,!h&&y]);return a().createElement(o.VariableSizeList,{ref:C,width:t,height:n,itemCount:d.length,itemData:d,itemSize:e=>y[(e=>w(d,e))(e)]||u,itemKey:m},T)}))},42011:(e,t,n)=>{n.d(t,{Z:()=>y});var r=n(13980),a=n.n(r),o=n(24328),i=n.n(o),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){f(e,t,n[t])}))}return e}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 b=e=>{let{classes:t={},count:n,rowsPerPageOptions:r,page:a,onChangePage:l,rowsPerPage:u,onChangeRowsPerPage:f,basicTableRef:b,labelRowsPerPage:y}=e;const v=h(),x=(0,o.useCallback)((()=>{(0,m.pathOr)(m.identity,["current","resetScrollbarPosition"],b)()}),[b]),w=(0,o.useCallback)((e=>{l(e),x()}),[l,x]),E=(0,o.useCallback)((e=>{l(0),f(e),x()}),[l,f,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:a,onChangePage:(0,m.pipe)((0,m.nthArg)(1),w),rowsPerPage:u,onChangeRowsPerPage:(0,m.pipe)(p.NA,E)})};b.propTypes={classes:a().object,rowsPerPageOptions:a().arrayOf(a().number),count:a().number,page:a().number,onChangePage:a().func,rowsPerPage:a().number,onChangeRowsPerPage:a().func,basicTableRef:a().shape({current:a().object}),labelRowsPerPage:a().string};const y=i().memo(b)},1730:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(27556),a=n(13980),o=n.n(a),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:a}=e,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["children","className"]);const i=u();return l().createElement(r.Z,d({ref:t,className:a,classes:{root:i["basic-view__paper"]}},o),n)}));p.displayName="BasicView",p.propTypes={children:o().node,className:o().string};const m=p},22118:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),a=n.n(r),o=n(87918),i=n.n(o),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:o,cancelCaption:h=i().text("Cancel"),onDiscard:g,discardCaption:f="",onSave:b,saveCaption:y=i().text("Save"),disabledSave:v=!1}=e;const x=m();return a().createElement(s.Z,{open:t,onClose:o,classes:{paperScrollPaper:x.paper}},a().createElement(p.Z,{classes:{root:x.title}},n),a().createElement(u.Z,{classes:{root:x.content}},a().createElement(d.Z,{classes:{root:x.contentText}},r)),a().createElement(c.Z,{className:x.actionButtons,disableSpacing:!0},o&&a().createElement(l.Z,{onClick:o},h),a().createElement("div",null,g&&a().createElement(l.Z,{onClick:g,classes:{root:x.discardButton}},f),a().createElement(l.Z,{onClick:b,color:"primary",disabled:v,autoFocus:!0},y))))}},20146:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),a=n.n(r),o=n(52730),i=n(71153),l=n.n(i),s=n(90436),c=n(22241),u=n(35674);const d=(0,n(79692).Z)({"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",display:"inline-flex",marginRight:"12px",borderRadius:"2px"},"entityType-medium":{padding:"2px 8px 3px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"15px",display:"inline-flex",marginRight:"16px"}}),p=e=>{let{entity:t,className:n,size:r="small"}=e;const i=d(),p=(0,o.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 a().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),a=n.n(r),o=n(87918),i=n.n(o),l=n(22241),s=n(72108);const c=(0,r.memo)((e=>{let{entityTypes:t,selectedEntityTypes:n,single:o,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 a().createElement(s.S,{items:g,selectedItemsUris:n,single:o,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),a=n.n(r),o=n(71153),i=n.n(o),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 o=s();return a().createElement(l.Z,{title:n,classes:{root:i()(o.container,t),title:o.title}},r)}},72108:(e,t,n)=>{n.d(t,{S:()=>N});var r=n(24328),a=n.n(r),o=n(71153),i=n.n(o),l=n(17440),s=n(22241),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:a}=t;if(n.length>0){const[t]=Array.from(n),o=document.createRange();o.setStart(t,0);for(let n=0;n<e.length;n++){o.setEnd(t,o.endOffset+e[n].length);const{width:i}=o.getBoundingClientRect();if(r+i>a)return n;n!==e.length-1&&o.setEnd(t,o.endOffset+", ".length)}}return-1},g=e=>e.join(", "),f=e=>`calc(${(0,l.isNil)(e)?"100%":`${e}px`} - 35px)`,b=e=>{let{list:t,maxWidth:n}=e;const o=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 a().createElement(d.ZP,{title:u?c:""},a().createElement("div",{className:o.listLabelContainer},a().createElement("div",{style:{width:f(n)},className:o.listLabel,ref:i},c),a().createElement("div",{className:o.visibleItemsLabel},p),u&&a().createElement("div",{className:o.hiddenCount},`+${l}`)))};var y=n(40435),v=n(22311),x=n(26638),w=n(33117),E=n(94792),C=n(63485);function T(){return T=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},T.apply(this,arguments)}const S=(0,l.always)(32),P=(0,r.memo)((e=>{let{selectedItems:t,onItemClick:n,focusIndex:r,width:o,height:i}=e,l=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["selectedItems","onItemClick","focusIndex","width","height"]);return a().createElement(C.Z,T({getItemSize:S,renderItem:(e,o,i)=>{let{item:l}=o;const s=!!t.find((e=>l.uri===e)),c=i===r;return a().createElement(w.Z,{key:l.uri,onClick:n,checked:s,data:l,label:a().createElement(E.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:o,height:i},l))}));P.displayName="SelectMetadataTypesList";const O=(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 R(){return R=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},R.apply(this,arguments)}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){L(e,t,n[t])}))}return e}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 N=(0,r.memo)((e=>{let{placeholder:t,classes:n={},items:o,selectedItemsUris:d,onChange:p,ListLabelProps:m={},disabled:h,enableEmptyValueUnderline:g,single:f,label:w,dataReltioId:E,selectionPopupTitle:C}=e;const T=O(),[S,L]=(0,r.useState)(!1),N=(0,r.useCallback)((()=>L(!0)),[]),I=(0,r.useCallback)((()=>L(!1)),[]),[k,j]=(0,r.useState)(""),Z=(0,r.useCallback)((()=>j("")),[]),z=(0,r.useCallback)((0,l.pipe)(Z,I),[I,Z]),A=o.filter((e=>{let{label:t}=e;return s.P6Y.strings.search(t,k)})).map(((e,t)=>({item:{item:_({},e,{filterText:k})},index:t}))),D=(0,r.useMemo)((()=>d.map((e=>o.find((0,l.propEq)("uri",e)))).map((0,l.prop)("label"))),[d,o]),U=(0,r.useCallback)(((e,t)=>{f?(p(t?[e.uri]:[]),z()):p(t?d.concat(e.uri):d.filter((t=>t!==e.uri)))}),[d,p,f,z]),M=(0,r.useCallback)((e=>{let{item:t}=e;const n=!d.includes(t.uri);U(t,n)}),[d,U]),{focusIndex:B,handleKeyDown:F}=(0,x.t)({items:A,open:S,onSelectFocusedItem:M,selectedItems:d,onClose:z}),G=(0,r.useRef)(),H=G.current?G.current.getBoundingClientRect().width:0,V=Math.max(H,255),W=0===d.length;return a().createElement(a().Fragment,null,a().createElement(c.Z,{label:w,ref:G,InputProps:{startAdornment:W&&!t?null:a().createElement("div",{className:i()(T.inputText,n.inputText)},W?a().createElement("div",null,t):a().createElement(b,R({},m,{list:D}))),classes:{root:T.inputRoot,input:i()(T.input,n.input,{[T.emptyInput]:W&&!t}),disabled:i()(T.disabledInput,{[T.disabledPointer]:h}),underline:T.disabledUnderline},endAdornment:a().createElement(y.Z,{size:"L",icon:u.Z,iconClassName:i()(T.icon,{[T["popup-opened-icon"]]:S}),disabled:h}),readOnly:!0,disabled:!0,disableUnderline:W&&!g},inputProps:{tabIndex:-1},InputLabelProps:{classes:{root:i()(T.inputLabel,n.label)}},value:"",onClick:h?void 0:N,classes:{root:i()(T.root,n.root)},margin:"dense",variant:"filled",disabled:h,"data-reltio-id":E}),a().createElement(v.Z,{open:S,anchorEl:G.current,onClose:z,onSearch:j,title:C,containerWidth:V,containerHeight:355,searchInputOnKeyDown:F,transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"left",vertical:"bottom"},PaperProps:{"data-reltio-id":`${E}-popup`}},a().createElement(P,{items:A,onItemClick:U,selectedItems:d,width:V,height:245,focusIndex:B})))}));N.displayName="MetadataTypesSelector"},33109:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(24328),a=n.n(r),o=n(13980),i=n.n(o),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(22241),f=n(35674),b=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:o,classes:i}=e;const l=v({classes:i}),m=(0,c.useSelector)(f.ZP.selectors.getMetadata),x=(0,r.useCallback)((()=>{navigator.clipboard.writeText((0,g.BTI)(n))}),[n]);if((0,u.isNil)(n))return null;const w=(0,g.idV)(n.label),E=n.secondaryLabel,C=(0,g.ptG)(m,n),T=(0,g.Fn9)(n),S=n.uri,P=(0,g.BTI)(n);return a().createElement("div",{className:s()(l.profileBandWrapper,t)},a().createElement("div",{className:s()(l.profileBand,{[l.inactive]:!T}),"data-entity-uri":S},a().createElement(b.Z,{key:n.uri,entity:n,avatarClassName:l.profileIcon,imageClassName:l.imageProfileIcon}),a().createElement("div",{className:l.profileInfo},a().createElement("div",null,a().createElement(d.Z,{variant:"h6",className:l.label},w),E&&a().createElement(d.Z,{variant:"subtitle2",className:l.secondaryLabel},E),C&&a().createElement(d.Z,{variant:"subtitle1",className:l.businessCard},C)),a().createElement("div",{className:l.specialInfo},a().createElement("div",{className:l.entityType},a().createElement(y.Z,{entity:n,size:"medium",className:l.badge}),!(0,g.ZiX)(S)&&a().createElement(p.ZP,{title:h().text("Copy to clipboard")},a().createElement(d.Z,{display:"inline",variant:"body2",className:l.entityId,onClick:x},h().text("Entity ID"),": ",P))))),o&&a().createElement("div",null,o)))};x.propTypes={className:i().string,entity:i().object,children:i().node,classes:i().object};const w=x},68977:(e,t,n)=>{n.d(t,{U:()=>c});var r=n(24328),a=n.n(r),o=n(87918),i=n.n(o),l=n(22241),s=n(72108);const c=(0,r.memo)((e=>{let{relationTypes:t,selectedRelationTypes:n,single:o,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 a().createElement(s.S,{items:g,selectedItemsUris:n,single:o,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),a=n.n(r),o=n(71153),i=n.n(o),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,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}const m=e=>{let{buttonsProps:t,activeIndexId:n,className:r,onButtonClick:o,classes:s={}}=e;const c=u(),{active:m,buttonWrapper:h}=s,g=p(s,["active","buttonWrapper"]);return a().createElement("div",{className:i()(c.container,r)},t.map((e=>{let{id:t}=e,r=p(e,["id"]);return a().createElement(l.k,d({},r,{classes:g,size:"S",key:t,className:i()({[i()(c.active,m)]:n===t},c.buttonWrapper,h),onClick:()=>o(t),"data-reltio-id":`reltio-profile-right-side-button-${t}`}))})))}},11821:(e,t,n)=>{n.d(t,{h:()=>i});var r=n(24328),a=n.n(r);const o=(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=o();return a().createElement("div",{className:i.contentWrapper,style:{width:`${n?t:0}px`}},n&&a().createElement(a().Fragment,null,r))}},15177:(e,t,n)=>{n.d(t,{Z:()=>I});var r=n(52730),a=n(35674),o=n(24328),i=n.n(o),l=n(22241),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),f=n(52194),b=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)"}}),w=(0,r.connect)((e=>({metadata:a.ZP.selectors.getMetadata(e)})))((e=>{let{className:t,entity:n={},metadata:s,caption:u="",excludeUris:v=[],includeUris:w=[],attributesCount:E=16}=e;const C=x(),T=(0,r.useSelector)(a.ZP.selectors.getPivotingAttributes),S=(0,o.useMemo)((()=>(0,y.U)(s,n.type,w,v)),[v,w,s,n.type]),P=(0,l.fyF)(S,n).filter((e=>{let{values:t}=e;return!(0,l.O27)(t)})).length>0;return P||!(0,l.O27)(u)?i().createElement(h.J.Provider,{value:T},i().createElement(g.Z,{className:t},u&&i().createElement(f.Z,{className:C.header,title:u}),i().createElement(p.Z,{className:c()(C.attributesContainer,{[C.noCaption]:!u})},P?i().createElement(b.Z,{entity:n,attrTypes:S,parentUri:n.uri,drawLines:!1,max:E}):i().createElement(m.Z,{className:C.noData},d().text("No data found"))))):null}));var E=n(17440),C=n(76141),T=n(12212);const S=(0,v.Z)({attributesContainer:{padding:"0 16px 16px 16px"},header:{marginBottom:"4px"},noCaption:{paddingTop:"16px"}});var P=n(1108);function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){R(e,t,n[t])}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _=(0,r.connect)((e=>({metadata:a.ZP.selectors.getMetadata(e)})))((e=>{let{className:t,entity:n={},mode:s,metadata:u,caption:d="",excludeUris:m=[],includeUris:h=[],pinnedAttributes:b}=e;const v=S(),x=(0,r.useDispatch)(),w=(0,o.useContext)(T.m),R=(0,r.useSelector)(a.ZP.selectors.getUserRoles),_=(0,o.useMemo)((()=>(0,l.mC3)(b,R)),[b,R]),L=(0,r.useSelector)((e=>a.ZP.selectors.getModifiedEntity(e,n.uri)||{})),N=(0,o.useMemo)((()=>(0,y.U)(u,L.type,h,m)),[m,h,u,L.type]),I=(0,o.useCallback)((e=>(0,E.pipe)(a.N5.actions.addAttributes,x)(e.map((e=>O({},e,{viewId:w}))))),[w,x]),k=(0,o.useCallback)((e=>(0,E.pipe)(a.N5.actions.modifyAttribute,x)(O({},e,{viewId:w}))),[w,x]),j=(0,o.useCallback)((e=>(0,E.pipe)(a.N5.actions.removeAttribute,x)(O({},e,{viewId:w}))),[w,x]);return i().createElement(g.Z,{className:t},d&&i().createElement(f.Z,{className:v.header,title:d}),i().createElement(p.Z,{className:c()(v.attributesContainer,{[v.noCaption]:!d})},i().createElement(P.c.Provider,{value:_},i().createElement(C.Z,{entity:L,attrTypes:N,parentUri:L.uri,drawLines:!1,mode:s,showEmptyEditors:(0,l.ZiX)(L.uri),crosswalks:L.crosswalks,onAddAttributes:I,onChangeAttribute:k,onDeleteAttribute:j}))))}));var L=n(10609);function N(){return N=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},N.apply(this,arguments)}const I=(0,r.connect)(((e,t)=>({entity:t.entity||a.ZP.selectors.getEntityWithDiff(e),mode:t.mode||a.ZP.selectors.getMode(e)})))((e=>{let{mode:t=l.ARY.Viewing,attributesCount:n,pinnedAttributes:r,entity:a}=e,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["mode","attributesCount","pinnedAttributes","entity"]);return i().createElement(L.u.Provider,{value:a},(0,l.uzs)(t)?i().createElement(w,N({attributesCount:n,entity:a},o)):i().createElement(_,N({mode:t,pinnedAttributes:r,entity:a},o)))}))},80525:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Xt});var r=n(24328),a=n.n(r),o=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(22241),h=n(87918),g=n.n(h),f=n(17440),b=n(60715),y=n(35174);const v=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,f.either)((0,f.pipe)(m.nqN,(0,f.equals)(e)),(0,f.pipe)(m.j5q,(0,f.equals)(e))));n.push(...r);const a=(0,f.pipe)(x,(0,f.without)([e]))(r);return a.forEach((e=>v(e,t,n))),n},x=e=>(0,f.pipe)((0,f.chain)((e=>[(0,m.nqN)(e),(0,m.j5q)(e)])),f.uniq)(e),w=e=>{const[t,n]=(0,r.useState)(null),[a,i]=(0,r.useState)(null),l=(0,o.useDispatch)(),[s,c]=(0,r.useState)(null),[d,h]=(0,r.useState)(!1),w=null==e?void 0:e.uri,E=(0,m.biM)(e);(0,r.useEffect)((()=>(!w||(0,m.ZiX)(w)||E||(h(!0),(0,m.ZYI)({uri:w,deep:t?2:1,limitCreditsConsumption:!0,graphTypes:t?[(0,m.nIW)(t)]:null,activenessDate:null,max:t?200:3e3}).then((e=>{const t=new p.MultiGraph;((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}`)}));const a=e.entities.map((e=>({id:e.uri,name:e.label,entityTypeUri:e.type,traversedRelationsCount:e.traversedRelations,untraversedRelationsCount:e.untraversedRelations}))),o=[];return r.forEach((e=>{const[t,n,r]=e.split("--");o.push({from:t,to:n,key:r})})),{nodes:a,edges:o}})(t);n.nodes.forEach((t=>{e.hasNode(t.id)||e.addNode(t.id,{label:(0,m.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})}))})(t,e),i(t),c(e)})).catch((e=>{console.error(e),c(null),l(u.ui.actions.errorSet((0,m.xU7)(e,g().text("Something went wrong"))))})).finally((()=>{h(!1)}))),()=>{i(null),c(null),h(!1)})),[w,E,l,t]);const C=(0,r.useCallback)((e=>{h(!0),(0,m.VGk)(e).then((()=>{a.dropEdge(e);const{updatedData:t,removedEntitiesUris:n}=((e,t,n,r)=>{const a=r.relations.find((0,f.propEq)("uri",t)),o=(0,m.nqN)(a),i=(0,m.j5q)(a),l=(0,y.toUndirected)(n),s=(0,f.cond)([[()=>!(0,b.Ar)(l,e,o),(0,f.always)(o)],[()=>!(0,b.Ar)(l,e,i),(0,f.always)(i)],[f.T,(0,f.always)(null)]])(),c=(0,f.evolve)({relations:(0,f.reject)((0,f.propEq)("uri",t))})(r),{updatedData:u,removedEntitiesUris:d}=s?((e,t)=>{const n=v(e,t),r=(0,f.pipe)(x,(0,f.append)(e),f.uniq)(n);return{updatedData:(0,f.evolve)({relations:(0,f.reject)((e=>n.includes(e))),entities:(0,f.reject)((e=>r.includes(e.uri)))})(t),removedEntitiesUris:r}})(s,c):{updatedData:c,removedEntitiesUris:[]};return{updatedData:u,removedEntitiesUris:d}})(w,e,a,s);((e,t)=>{(t||[]).forEach((t=>{e.dropNode(t)}))})(a,n),c(t)})).catch((e=>{l(u.ui.actions.errorSet((0,m.xU7)(e,g().text("Something went wrong"))))})).finally((()=>{h(!1)}))}),[l,a,w,s]);return{graphLoading:d,data:s,graphologyGraph:a,graphTypeUri:t,setGraphTypeUri:n,onDeleteRelation:C}};var E=n(29627);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 T=(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){C(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},S=[25,50,100],P=(e,t,n)=>{const{startObject:r,endObject:a,type:o}=t,{directionalLabel:i}=(0,m.nqN)(t)===n?r:a;return i||(0,m.Lmx)(e,o)},O=(e,t,n)=>{const[a,i]=(0,r.useState)({field:"",order:"asc"}),[l,s]=(0,r.useState)(0),[c,d]=(0,r.useState)(S[0]),[p,h]=(0,r.useState)([]),g=(0,o.useSelector)(u.ZP.selectors.getMetadata),b=(0,r.useMemo)((()=>{const t=(null==e?void 0:e.entities)||[];return(0,f.zipObj)(t.map((0,f.prop)("uri")),t)}),[null==e?void 0:e.entities]),y=(0,r.useMemo)((()=>(0,f.pipe)((0,f.filter)((0,f.either)((0,f.pipe)(m.nqN,(0,f.equals)(t)),(0,f.pipe)(m.j5q,(0,f.equals)(t)))),(0,f.uniqBy)((0,f.prop)("uri")),(0,f.map)((e=>{const n=b[((e,t)=>{const n=(0,m.nqN)(t),r=(0,m.j5q)(t);return n===e?r:n})(t,e)];return{relation:e,entity:n,entityLabel:(0,m.idV)(n.label),entityTypeLabel:(0,m.jFi)(g,n),relationTypeLabel:P(g,e,n.uri)}})))((null==e?void 0:e.relations)||[])),[e,t,b,g]),{searchText:v,onChangeSearchText:x,filters:w,onFilter:E,relationTypesOptions:C,entityTypesOptions:T}=(e=>{const[t,n]=(0,r.useState)(""),[a,i]=(0,r.useState)({entityTypesUris:[],relationTypesUris:[]}),l=(0,o.useSelector)(u.ZP.selectors.getMetadata);return{searchText:t,onChangeSearchText:n,filters:a,onFilter:i,entityTypesOptions:(0,r.useMemo)((()=>(0,f.pipe)((0,f.map)((e=>{let{entity:t}=e;return t.type})),f.uniq,(0,f.map)((0,m.nt9)(l)))(e)),[e,l]),relationTypesOptions:(0,r.useMemo)((()=>(0,f.pipe)((0,f.map)((e=>{let{relation:t}=e;return t.type})),f.uniq,(0,f.map)((0,m.V3K)(l)))(e)),[e,l])}})(y),O=(0,r.useMemo)((()=>(0,f.pipe)((0,f.filter)((e=>{let{entityLabel:t,entity:n,relation:r}=e;const{entityTypesUris:a,relationTypesUris:o}=w;return t.toLowerCase().includes(v)&&(0,f.ifElse)((0,f.prop)("length"),(0,f.includes)(r.type),f.T)(o)&&(0,f.ifElse)((0,f.prop)("length"),(0,f.includes)(n.type),f.T)(a)})),a.field?(0,f.sort)(((e,t)=>m.P6Y.strings.sort(a.order,e[a.field],t[a.field]))):f.identity)(y)),[y,a,v,w]),R=(0,r.useMemo)((()=>O.slice(l*c,l*c+c)),[O,l,c]),_=(0,r.useCallback)((e=>{h((t=>[...t,e]))}),[]),L=(0,r.useCallback)((e=>{h((t=>(0,f.without)([e],t)))}),[]);return(0,r.useEffect)((()=>{s(0),x(""),E({entityTypesUris:[],relationTypesUris:[]})}),[t,n,x,E]),(0,r.useEffect)((()=>{s(0)}),[a,v,w]),{rowsData:R,onSort:i,sorting:a,searchText:v,onChangeSearchText:x,filters:w,onFilter:E,entityTypesOptions:T,relationTypesOptions:C,editingRelations:p,onStartRelationEditing:_,onFinishRelationEditing:L,total:O.length,page:l,rowsPerPage:c,onPageChange:s,onRowsPerPageChange:d}},R=a().createContext({graphLoading:!1,data:null,graphologyGraph:null,selectedEntityLoading:!1,selectedEntity:null,onEntitySelect:()=>{},relationshipTable:{}});R.displayName="GraphStateContext";var _=n(71153),L=n.n(_),N=n(33109),I=n(62901),k=n(72316),j=n(95544),Z=n(79692);const z=(0,Z.Z)({comments:{display:"flex",justifyContent:"flex-end",marginTop:"10px"}}),A=(0,r.memo)((e=>{let{className:t}=e;const n=z(),r=(0,o.useSelector)(u.ZP.selectors.getEntity);return a().createElement(N.Z,{className:L()(t,I.U),entity:r},a().createElement(j.Z,{className:n.comments},a().createElement(k.Z,{uri:r.uri,relatedObjectUris:(0,m.wp9)(m.q7e.ENTITY,{entityUri:r.uri}),objectType:m.q7e.ENTITY})))}));A.displayName="GraphProfileBand";const D=A;var U=n(11821),M=n(28101),B=n(82726);const F=(0,Z.Z)({wrapper:{display:"flex",overflow:"hidden",marginLeft:"auto",flexShrink:0}});function G(){return G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}const H=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["styles"]);return a().createElement("svg",G({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),a().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 V=n(50548);const W=(0,V.l)(R,(0,f.pick)(["selectedEntity"]),(e=>{let{selectedEntity:t}=e;return a().createElement(N.Z,{entity:t})}));var q=n(15177);const $=(0,Z.Z)({noShadowBlock:{boxShadow:"none"},wrapper:{position:"relative",paddingRight:"1px",overflow:"auto"}}),X=(0,V.l)(R,(0,f.pick)(["selectedEntity","selectedEntityLoading"]),(e=>{let{selectedEntity:t,selectedEntityLoading:n}=e;const r=$();return a().createElement("div",{className:r.wrapper},n&&a().createElement(d.Z,null),a().createElement(q.Z,{entity:t,caption:g().text("Entity details"),className:r.noShadowBlock}))}));var Y=n(90436),K=n(42011),Q=n(44443),J=n(44938),ee=n(79573);const te="1px solid rgba(0, 0, 0, 0.05)",ne=(0,Z.Z)({table:{flex:1,height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},tableBody:{height:"100%",overflow:"auto"},tableBodyWrapper:{height:"100%",overflow:"hidden"},tableRowWrapper:{borderBottom:te},tableRow:{display:"flex",alignItems:"center","& > div":{flexShrink:0}},headRow:{borderBottom:te}});function re(){return re=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},re.apply(this,arguments)}const ae=(0,r.memo)((e=>{let{columnsData:t,sorting:n,onSort:r}=e;const o=ne();return a().createElement("div",{className:L()(o.tableRow,o.headRow)},t.map((e=>{const{id:t,sortable:o,headCellRenderer:i,columnClassName:l}=e,s=i,c=o?{sortField:n.field,sortOrder:n.order,sortHandler:()=>{r({field:t,order:n.field===t?(0,ee.Dh)(n.order):"asc"})}}:{};return a().createElement("div",{key:t,className:l},a().createElement(s,re({headCellData:e},c)))})))})),oe=(0,r.forwardRef)(((e,t)=>{let{classes:n,columnsData:o,rowsData:i,sorting:l,onSort:s,getRowKey:c,ExpandedRowRenderer:u,defaultRowHeight:d}=e;const p=ne(),[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 a().createElement("div",{className:L()(p.tableRowWrapper,null==n?void 0:n.tableRowWrapper)},a().createElement("div",{className:L()(p.tableRow,null==n?void 0:n.tableRow)},o.map((e=>{let{id:t,rowCellValueRenderer:n,columnClassName:r}=e;const o=n;return a().createElement("div",{key:t,className:r},a().createElement(o,{value:i[t],rowValue:i}))}))),i.expanded&&u&&a().createElement(u,{open:i.expanded,rowValue:i}))}),[o,u]),f=(0,r.useCallback)(((e,t)=>{h({width:e,height:t})}),[]),b=(0,r.useRef)(null);return(0,r.useImperativeHandle)(t,(()=>({resetScrollbarPosition:()=>{var e;null===(e=b.current)||void 0===e||e.scrollTo(0)}}))),a().createElement("div",{className:p.table},a().createElement(ae,{columnsData:o,sorting:l,onSort:s}),a().createElement("div",{className:p.tableBodyWrapper},a().createElement(Q.Z,{handleHeight:!0,handleWidth:!0,onResize:f}),a().createElement("div",{className:p.tableBody},a().createElement(J.Z,{listRef:b,width:m.width,height:m.height,data:i,defaultItemSize:d,itemKey:c,showNotMeasuredItems:!0},g))))})),ie=(0,r.memo)(oe);var le=n(92332),se=n(83088);const ce="rgba(238, 238, 238, 1)",ue=(0,Z.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:ce}}});function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pe={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"},me=".collapsibleTableRow:hover &",he=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){de(e,t,n[t])}))}return e}({},pe,{[me]:{background:`linear-gradient(to right, rgba(238, 238, 238, 0), ${ce} 100%)`}}),ge=(0,Z.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":pe},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":he},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",[me]:{visibility:"visible",background:ce}},editButton:{marginRight:"7px"},entityAvatar:{width:"20px",height:"20px",marginRight:"8px"}})));function fe(){return fe=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},fe.apply(this,arguments)}function be(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){ye(e,t,n[t])}))}return e}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ve=e=>{let{className:t,headCellData:n}=e,r=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","headCellData"]);const o=ge();return a().createElement("div",{className:L()(o.headCell,t)},a().createElement(le.default,fe({},r,{headCellData:be({},n,{label:a().createElement(se.C,{value:n.label},a().createElement("div",{className:o.headLabel},n.label))})})))},xe=(0,r.memo)((e=>{let{value:t="",tooltip:n,onClick:r,className:o}=e;const i=ge();return n=n||t,a().createElement(se.C,{value:n},a().createElement("div",{className:L()(i.defaultCell,o,{[i.clickable]:!!r}),onClick:r},t))}));var we=n(37573);const Ee=(0,V.l)(R,(e=>{let{onEntitySelect:t}=e;return{onClick:t}}),(e=>{let{value:t,rowValue:{entity:n},className:r,onClick:o}=e;const i=ge(),l=a().createElement(a().Fragment,null,a().createElement(we.Z,{entity:n,avatarClassName:i.entityAvatar}),t);return a().createElement(xe,{value:l,tooltip:t,className:L()(i.profileCell,r),onClick:()=>o(n.uri)})})),Ce=(0,r.memo)((e=>{let{open:t,rowValue:n}=e;return t?a().createElement("div",{style:{padding:"6px 16px",fontSize:"13px"}},n.relation.uri):null}));var Te=n(39475),Se=n(27604),Pe=n(22983),Oe=n(22118);const Re=(0,V.l)(R,(0,f.pick)(["onDeleteRelation"]),(e=>{let{uri:t,open:n,onClose:r,onDeleteRelation:o}=e;return a().createElement(Oe.Z,{open:n,title:g().text("Do you want to make a clean break?"),content:g().text("To end this relationship, click Delete Relationship. To keep the connection, click Cancel."),saveCaption:g().text("Delete relationship"),discardCaption:g().text("Cancel"),onDiscard:r,onSave:()=>{o(t),r()}})})),_e=(0,r.memo)((e=>{let{uri:t}=e;const[n,o]=(0,r.useState)(!1),i=(0,r.useCallback)((()=>o(!0)),[]),l=(0,r.useCallback)((()=>o(!1)),[]);return a().createElement(a().Fragment,null,a().createElement(Te.k,{icon:Pe.Z,size:"XXS",tooltipTitle:g().text("Delete"),onClick:i}),a().createElement(Re,{open:n,onClose:l,uri:t}))}));_e.displayName="DeleteRelationButton";const Le=_e,Ne=(0,V.l)(R,(e=>{let{relationshipTable:{onStartRelationEditing:t}}=e;return{onEdit:t}}),(e=>{let{rowValue:{relation:{uri:t}},className:n,onEdit:r}=e;const o=ge();return a().createElement("div",{className:L()(o.controlsCell,n)},a().createElement(Te.k,{className:o.editButton,icon:Se.Z,size:"XXS",tooltipTitle:g().text("Edit"),onClick:()=>r(t)}),a().createElement(Le,{uri:t}))}));function Ie(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){ke(e,t,n[t])}))}return e}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const je=(e,t)=>t[e].relation.uri||`${e}`,Ze=(0,V.l)(R,(e=>{let{relationshipTable:t}=e;return Ie({},t)}),(e=>{let{rowsData:t,sorting:n,onSort:o,total:i,page:l,rowsPerPage:s,onPageChange:c,onRowsPerPageChange:u,editingRelations:d}=e;const p=ue(),m=(0,r.useMemo)((()=>[{id:"entityLabel",label:g().text("Profile"),headCellRenderer:ve,rowCellValueRenderer:Ee,sortable:!0,columnClassName:p.profileColumn},{id:"relationTypeLabel",label:g().text("Relationship type"),headCellRenderer:ve,rowCellValueRenderer:xe,sortable:!0,columnClassName:p.relationshipTypeColumn},{id:"entityTypeLabel",label:g().text("Entity Type"),headCellRenderer:ve,rowCellValueRenderer:xe,sortable:!0,columnClassName:p.entityTypeColumn},{id:"controls",label:"",headCellRenderer:ve,rowCellValueRenderer:Ne}]),[p]),h=(0,r.useRef)(null);(0,r.useEffect)((()=>{var e;null===(e=h.current)||void 0===e||e.resetScrollbarPosition()}),[t]);const f=(0,r.useMemo)((()=>t.map((e=>{var t;return null!=d&&d.includes(null==e||null===(t=e.relation)||void 0===t?void 0:t.uri)?Ie({},e,{expanded:!0}):e}))),[t,d]),b=(0,r.useMemo)((()=>({tableRow:L()(p.row,"collapsibleTableRow")})),[p]);return a().createElement("div",{className:p.tableWithPagination},a().createElement("div",{className:p.tableContainer},a().createElement(ie,{ref:h,columnsData:m,rowsData:f,sorting:n,onSort:o,getRowKey:je,ExpandedRowRenderer:Ce,defaultRowHeight:28,classes:b})),i>S[0]&&a().createElement(K.Z,{count:i,rowsPerPageOptions:S,rowsPerPage:s,onChangeRowsPerPage:u,page:l,onChangePage:c,basicTableRef:h}))}));var ze=n(36444),Ae=n(61837),De=n(33662);const Ue=(0,Z.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}}}))),Me=(0,V.l)(R,(0,f.pipe)((0,f.prop)("relationshipTable"),(0,f.pick)(["searchText","onChangeSearchText"])),(e=>{let{searchText:t,onChangeSearchText:n}=e;const r=Ue();return a().createElement(De.Z,{fullWidth:!0,height:40,autofocus:!1,value:t,onSearch:n,placeholder:g().text("Search profiles"),classes:{input:r.input}})}));var Be=n(92934),Fe=n(68977),Ge=n(77277),He=n(8629);const Ve=(0,Z.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"}}))),We=(0,V.l)(R,(0,f.pipe)((0,f.prop)("relationshipTable"),(0,f.pick)(["onFilter","filters","entityTypesOptions","relationTypesOptions"])),(e=>{let{open:t,onClose:n,filters:o,onFilter:i,entityTypesOptions:l,relationTypesOptions:s}=e;const c=Ve(),[u,d]=(0,r.useState)([]),[p,m]=(0,r.useState)([]),h=()=>{d(o.entityTypesUris),m(o.relationTypesUris),n()};return(0,r.useEffect)((()=>{d(o.entityTypesUris),m(o.relationTypesUris)}),[o.entityTypesUris,o.relationTypesUris]),a().createElement(He.Z,{classes:{paper:c.dialogPaper},onClose:h,open:t},a().createElement(Y.Z,{className:c.title},g().text("Filter")),a().createElement(Be.Q,{classes:{root:c.entityTypesSelector},entityTypes:l,selectedEntityTypes:u,enableEmptyValueUnderline:!0,onChange:d}),a().createElement(Fe.U,{classes:{root:c.relationTypesSelector},relationTypes:s,selectedRelationTypes:p,enableEmptyValueUnderline:!0,onChange:m}),a().createElement("div",{className:c.footer},a().createElement(Ge.Z,{className:c.clearAllButton,onClick:()=>{d([]),m([])}},g().text("Clear All")),a().createElement(Ge.Z,{className:c.cancelButton,onClick:h},g().text("Cancel")),a().createElement(Ge.Z,{onClick:()=>{i({entityTypesUris:u,relationTypesUris:p}),n()},color:"primary"},g().text("Apply"))))})),qe=(0,Z.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}}))),$e=(0,V.l)(R,(0,f.pipe)((0,f.prop)("relationshipTable"),(0,f.pick)(["filters"])),(e=>{let{filters:t}=e;const n=qe(),[o,i]=(0,r.useState)(!1),{entityTypesUris:l,relationTypesUris:s}=t,c=l.length||s.length;return a().createElement("div",{className:n.wrapper},a().createElement(Me,null),a().createElement(Ae.Z,{className:n.iconButton,onClick:()=>i(!0)},a().createElement(ze.Z,{className:c?n.activeFiltersIcon:n.inactiveFiltersIcon})),a().createElement(We,{open:o,onClose:()=>i(!1)}))})),Xe=(0,Z.Z)({caption:{marginLeft:"16px",marginTop:"12px",marginBottom:"14px",fontSize:"16px",lineHeight:"24px"},wrapper:{flex:1,display:"flex",flexDirection:"column",height:0}}),Ye=()=>{const e=Xe();return a().createElement("div",{className:e.wrapper},a().createElement(Y.Z,{className:e.caption,variant:"subtitle1"},g().text("Relationships")),a().createElement($e,null),a().createElement(Ze,null))};let Ke;!function(e){e[e.Relationship=0]="Relationship",e[e.EntityDetails=1]="EntityDetails"}(Ke||(Ke={}));const Qe=(0,r.memo)((()=>{var e;const t=F(),[n,o]=(0,r.useState)(null),i=(0,r.useCallback)((e=>{o((t=>t===e?null:e))}),[]),l=null!==n,s=(0,r.useMemo)((()=>[{buttonProps:{id:Ke.Relationship,icon:H,tooltipTitle:g().text("Relationship")},content:a().createElement(Ye,null)},{buttonProps:{id:Ke.EntityDetails,icon:B.Z,tooltipTitle:g().text("Entity Details")},content:a().createElement(X,null)}]),[]);return a().createElement("div",{className:t.wrapper},a().createElement(U.h,{open:l,width:480},a().createElement(W,null),null===(e=s[n])||void 0===e?void 0:e.content),a().createElement(M.G,{buttonsProps:(0,f.pluck)("buttonProps",s),onButtonClick:i,activeIndexId:n}))}));Qe.displayName="GraphRightSidePanel";const Je=Qe;var et=n(46339),tt=n(23304);const nt=(e,t,n)=>{var r;if(!t.label)return;const a=n.labelSize,o=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} ${a}px ${o}`,e.fillText(t.label,t.x+t.size+11,t.y+a/3)},rt=(e,t,n)=>{const r=n.labelSize,a=n.labelFont,o=n.labelWeight;if(e.font=`${o} ${r}px ${a}`,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,a=Math.round(n+16),o=Math.round(r+2+4),i=Math.max(t.size,r/2)+2,l=Math.asin(o/2/i),s=Math.sqrt(Math.abs(Math.pow(i,2)-Math.pow(o/2,2)));e.beginPath(),e.moveTo(t.x+s,t.y+o/2),e.lineTo(t.x+i+a,t.y+o/2),e.lineTo(t.x+i+a,t.y-o/2),e.lineTo(t.x+s,t.y-o/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,nt(e,t,n)};var at=n(88586);class ot extends tt.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 a=1*n*5;if(t||!e.inPath)return r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,void(r[a++]=0);r[a++]=e.x,r[a++]=e.y,r[a++]=e.size,r[a++]=(0,at.floatColor)(e.color),r[a]=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 it{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:a,size:o}=e;const i=Math.min(128,o);let l=0,s=0;(a.width||0)>(a.height||0)?l=(a.width-a.height)/2:s=(a.height-a.width)/2,n.drawImage(a,l,s,o,o,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 lt={id:"defaultImage",path:(0,m.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 st extends tt.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 it,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(lt.id,lt.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 a=1*n*9;const o=e.image;let i=o&&this.imageLoader.images[o];if("string"!=typeof o||i||this.imageLoader.loadImage(o,o),t)return r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,void(r[a++]=0);if(r[a++]=e.x,r[a++]=e.y,r[a++]=e.size,r[a++]=(0,at.floatColor)(e.color),r[a++]=e.inactive?1:0,i&&"ready"===i.status||(i=this.imageLoader.images[lt.id]),i&&"ready"===i.status){const{width:e,height:t}=this.imageLoader.textureImage;r[a++]=i.x/e,r[a++]=i.y/t,r[a++]=i.width/e,r[a++]=i.height/t}else r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=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,m.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,m.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 ut extends tt.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 it,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 a=e.getUniformLocation(this.program,"u_atlas");if(null===a)throw new Error("NodeButtonsProgram: error while getting atlasLocation");this.atlasLocation=a,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 a=2*n*11;const o=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),o||0===e.untraversedRelationsCount)r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0;else{const t=this.imageLoader.images.expandIcon;if(r[a++]=e.x,r[a++]=e.y,r[a++]=e.size,r[a++]=(0,at.floatColor)(e.color),r[a++]=e.buttonSize||0,r[a++]=c,r[a++]=-u,t&&"ready"===t.status){const{width:e,height:n}=this.imageLoader.textureImage;r[a++]=t.x/e,r[a++]=t.y/n,r[a++]=t.width/e,r[a++]=t.height/n}else r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0}if(o||0===e.traversedRelationsCount)r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0;else{const t=this.imageLoader.images.collapseIcon;if(r[a++]=e.x,r[a++]=e.y,r[a++]=e.size,r[a++]=(0,at.floatColor)(e.color),r[a++]=e.buttonSize||0,r[a++]=-c,r[a++]=-u,t&&"ready"===t.status){const{width:e,height:n}=this.imageLoader.textureImage;r[a++]=t.x/e,r[a++]=t.y/n,r[a++]=t.width/e,r[a++]=t.height/n}else r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=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 dt=e=>{let{children:t}=e;const n=(0,r.useMemo)((()=>({allowInvalidContainer:!0,defaultNodeType:"image",hoverRenderer:rt,labelRenderer:nt,nodeProgramClasses:{image:(0,tt.createNodeCompoundProgram)([st,ot,ut])},labelFont:"Roboto",labelSize:13,labelColor:{color:"rgba(0, 0, 0, 0.87)"}})),[]);return a().createElement(et.C6,{graph:p.MultiGraph,style:{background:"transparent"},initialSettings:n},t)};var pt=n(28833),mt=n.n(pt),ht=n(3660),gt=n.n(ht),ft=n(28301),bt=n.n(ft),yt=n(31181),vt=n(30284);const xt=.6,wt=(e,t,n,r,a)=>{if(t.loop){const{size:r,color:a}=t,o=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)}}(o,i,.6*l);if(e.strokeStyle=a,e.lineWidth=r,"arrow"===t.type){const{aX:t,aY:n,vX:r,vY:c}=((e,t,n,r)=>{const a=Math.max(.5*r,5),o=Math.sqrt(Math.pow(t-e.x1,2)+Math.pow(n-e.y1,2));return{aX:e.x1+(t-e.x1)*(o-a-r)/o,aY:e.y1+(n-e.y1)*(o-a-r)/o,vX:(t-e.x1)*a/o,vY:(n-e.y1)*a/o}})(s,o,i,l);e.beginPath(),e.moveTo(o,i),e.bezierCurveTo(s.x2,s.y2,s.x1,s.y1,t,n),e.stroke(),e.fillStyle=a,e.beginPath(),e.moveTo(t+r,n+c),e.lineTo(t+c*xt,n-r*xt),e.lineTo(t-c*xt,n+r*xt),e.lineTo(t+r,n+c),e.closePath(),e.fill()}else e.beginPath(),e.moveTo(o,i),e.bezierCurveTo(s.x1,s.y1,s.x2,s.y2,o,i),e.stroke()}(0,vt.default)(e,t,n,r,a)};function Et(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){Ct(e,t,n[t])}))}return e}function Ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tt=(0,f.memoizeWith)(((e,t,n)=>n.type),m.uie),St={size:24,buttonSize:8,buttonOffset:[19,19]},Pt={size:12,buttonSize:6,buttonOffset:[8,13]},Ot=e=>{let{data:t,graph:n,syncLayout:a,workerLayout:i,layoutSettings:l,selectedNode:s,onNodeClick:c}=e;const d=(0,et.Ys)(),p=(0,et.sG)(),m=(0,et.$j)(),h=(0,et.eP)(),g=(0,o.useSelector)(u.ZP.selectors.getEntity),f=(0,o.useSelector)(u.ZP.selectors.getMetadata),v=(0,o.useSelector)(u.ZP.selectors.getAbsoluteImagePath)||"",[x,w]=(0,r.useState)(void 0),[E,C]=(0,r.useState)(null),[T,S]=(0,r.useState)({});(0,r.useEffect)((()=>{d.getCamera().setState({ratio:1.2})}),[n,d]),(0,r.useEffect)((()=>{if(C((0,y.toUndirected)(n)),p(n),a){const e=a(d.getGraph(),l);(0,yt.animateNodes)(d.getGraph(),e,{duration:1e3})}if(i){const e=new i(d.getGraph(),l);e.start();const t=setTimeout((()=>{e.stop()}),5e3);return()=>{clearTimeout(t),e.kill()}}}),[t,n,a,i,d,l,p]);const P=(0,r.useCallback)((e=>{const t=d.getGraph(),n=null==g?void 0:g.uri;if(t&&E&&n&&e&&n!==e){const r=(0,b.Ar)(E,n,e),a=((e,t)=>{const n=[];return t&&t.reduce(((t,r)=>(n.push(e.findEdge(t,r,(e=>!!e))||e.findEdge(r,t,(e=>!!e))),r))),n})(t,r);return{edges:a,nodes:r}}return{}}),[d,null==g?void 0:g.uri,E]);(0,r.useEffect)((()=>{S(P(s))}),[s,P]),(0,r.useEffect)((()=>{m({enterNode:e=>{let{node:t}=e;w(t)},leaveNode:()=>{w(void 0)},clickNode:e=>{let{node:t}=e;c(t)}})}),[d,m,c]),(0,r.useEffect)((()=>{const e=d.getGraph(),t=e.neighbors(s);h({nodeReducer:(e,n)=>{const r=Tt(f,v,{type:n.entityTypeUri}),a=Et({},n,e===s?St:Pt,{color:"#0072CE",image:r}),o=(T.nodes||[]).includes(e),i=x===e;return o||e===s?a.inPath=!0:!t||t.includes(e)||s===e||s===(null==g?void 0:g.uri)||o||(i||(a.label=""),a.inactive=!0),i&&(a.highlighted=!0),a},edgeReducer:(t,n)=>{const r=Et({},n,{hidden:!1}),a=(T.edges||[]).includes(t);return!s||s===(null==g?void 0:g.uri)||e.hasExtremity(t,s)||a||(r.hidden=!0),a&&(r.color="#0072CE",r.size=4),r},renderEdgeLabels:!0,edgeLabelRenderer:wt})}),[d,h,x,s,T,null==g?void 0:g.uri,f,v])};function Rt(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){_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 Lt=e=>{let{data:t,graph:n,selectedNode:a,onNodeClick:o}=e;const i=(0,r.useMemo)((()=>(mt().assign(n),{settings:Rt({},gt().inferSettings(n),{gravity:1})})),[n]);return Ot({workerLayout:bt(),layoutSettings:i,data:t,graph:n,selectedNode:a,onNodeClick:o}),null};var Nt=n(36039);let It;!function(e){e.SIMPLE_NETWORK="Simple network",e.VERTICAL_TB="Vertical hierarchy",e.HORIZONTAL_LR="Horizontal hierarchy"}(It||(It={}));const kt=(e,t,n,r)=>{const a=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)||a.add(r.to)}))})),a.size&&t.push(Array.from(a)),((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})(a,r,n)?kt(a,t,n,r):t},jt=(e,t,n,r)=>{if(e.length<10&&(t[r]=[...e]),e.length>10){const a=e.slice(10),o=e.slice(0,10);t[r]=o,t[r+1]=n[r+1]?[...n[r+1],...a]:a}if(t[r+1]||n[r+1]){const e=t[++r]||n[r];return jt(e,t,n,r)}return t};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 zt=e=>{let{data:t,graph:n,selectedNode:a,layout:o,onNodeClick:i}=e;const l=(0,r.useCallback)((e=>{const t=e.copy(),n=(e=>{switch(e){case It.VERTICAL_TB:return 180;case It.HORIZONTAL_LR:return 270}})(o),r=((e,t)=>{const n=e.nodes,r=e.edges.filter((e=>e.from!==e.to)),a=((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),o=kt(a,[],new Set,r);return jt(o[0],[],o,0)})((e=>({nodes:e.nodes().map((e=>({id:e,name:""}))),edges:e.mapEdges(((e,t,n,r)=>({from:n,to:r,key:e})))}))(t),a),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 Nt.rotation.assign(t,n,{degrees:!0}),t.reduceNodes(((e,t,n)=>{let{x:r,y:a}=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){Zt(e,t,n[t])}))}return e}({},e,{[t]:{x:r,y:a}})}),{})}),[o,a]);return Ot({syncLayout:l,data:t,graph:n,selectedNode:a,onNodeClick:i}),null};var At=n(84425);const Dt=(0,Z.Z)({graphTypeSelector:{minWidth:"200px",backgroundColor:"#FAFAFA",opacity:1,height:"40px"},filledInputRoot:{borderRadius:"4px"},valueContainer:{width:"auto",marginLeft:"16px"}}),Ut=(0,V.l)(R,(e=>{let{graphTypeUri:t,setGraphTypeUri:n}=e;return{setGraphTypeUri:n,graphTypeUri:t}}),(e=>{let{graphTypeUri:t,setGraphTypeUri:n}=e;const i=Dt(),l=(0,o.useSelector)(u.ZP.selectors.getMetadata),s=(0,o.useSelector)(u.ZP.selectors.getEntity),c=(0,r.useMemo)((()=>[{label:g().text("All"),value:null},...(0,m.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 a().createElement(At.Z,{classes:{valueContainer:i.valueContainer},className:i.graphTypeSelector,height:42,label:g().text("Graph type"),value:d,options:c,onChange:e=>n(e.value),TextFieldProps:{InputProps:{disableUnderline:!0,classes:{root:i.filledInputRoot}}}})})),Mt=(0,Z.Z)({graphLayoutSelector:{minWidth:"202px",backgroundColor:"#FAFAFA",opacity:1,marginLeft:"10px"},filledInputRoot:{borderRadius:"4px",height:"42px"}}),Bt=(0,r.memo)((e=>{let{value:t,onChangeHandler:n}=e;const r=Mt(),o=[{label:g().text("Simple network"),value:It.SIMPLE_NETWORK},{label:g().text("Vertical hierarchy"),value:It.VERTICAL_TB},{label:g().text("Horizontal hierarchy"),value:It.HORIZONTAL_LR}];return a().createElement(At.Z,{className:r.graphLayoutSelector,label:g().text("Graph layout"),value:o.find((0,f.propEq)("value",t)),options:o,onChange:e=>n(e.value),TextFieldProps:{InputProps:{disableUnderline:!0,classes:{root:r.filledInputRoot}}}})})),Ft=(0,Z.Z)({wrapper:{height:"100%",position:"relative"},selectors:{display:"flex",position:"absolute",top:"12px",right:"16px",zIndex:2},graph:{height:"calc(100% - 5px)"}});function Gt(){return Gt=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},Gt.apply(this,arguments)}const Ht=(0,V.l)(R,(e=>{let{data:t,graphologyGraph:n,selectedEntity:r,onEntitySelect:a}=e;return{data:t,graph:n,selectedNode:null==r?void 0:r.uri,onNodeSelect:a}}),(e=>{let{data:t,graph:n,selectedNode:o,onNodeSelect:i}=e;const[l,s]=(0,r.useState)(It.SIMPLE_NETWORK),c=Ft(),u={data:t,graph:n,selectedNode:o,onNodeClick:i};return a().createElement("div",{className:c.wrapper},a().createElement("div",{className:c.selectors},a().createElement(Ut,null),a().createElement(Bt,{value:l,onChangeHandler:s})),a().createElement("div",{className:c.graph},n&&a().createElement(dt,null,l===It.SIMPLE_NETWORK?a().createElement(Lt,u):a().createElement(zt,Gt({},u,{layout:l})))))})),Vt=(0,Z.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"}}))),Wt=(0,r.memo)((()=>{const e=Vt(),t=(0,o.useSelector)(u.ZP.selectors.getEntity),n=(e=>{const{graphLoading:t,data:n,graphologyGraph:a,graphTypeUri:i,setGraphTypeUri:l,onDeleteRelation:s}=w(e),{selectedEntity:c,onEntitySelect:d,selectedEntityLoading:p}=((e,t)=>{const n=(0,E._)(),a=(0,o.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,m.HvW)(e).then((e=>(s.current=T(s.current,e),e)))}),[]),h=(0,r.useCallback)((e=>{var r;const o=null==t||null===(r=t.entities)||void 0===r?void 0:r.find((0,f.propEq)("uri",e));o&&l(o),d(!0),n(p(e)).then(l).catch((e=>{a(u.ui.actions.errorSet((0,m.xU7)(e,g().text("Something went wrong"))))})).finally((()=>{d(!1)}))}),[a,t,n,p]);return(0,r.useEffect)((()=>{null!=e&&e.uri&&(s.current=T({},e),h(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=T({},e),h(e.uri)):(s.current={},l(null)))}),[t]),{selectedEntityLoading:c,selectedEntity:i,onEntitySelect:h}})(e,n);return{graphLoading:t,data:n,graphologyGraph:a,onDeleteRelation:s,selectedEntity:c,onEntitySelect:d,selectedEntityLoading:p,graphTypeUri:i,setGraphTypeUri:l,relationshipTable:O(n,null==c?void 0:c.uri,i)}})(t),{graphLoading:i}=n;return a().createElement(R.Provider,{value:n},a().createElement("div",{className:e.perspectiveView},i&&a().createElement(d.Z,null),(null==t?void 0:t.uri)&&a().createElement("div",{className:e.graphContainer},a().createElement("div",{className:e.graphWrapper},a().createElement(D,null),a().createElement(Ht,null)),a().createElement(Je,null))))}));Wt.displayName="GraphPerspectiveView";const qt=Wt,$t=(0,i.createGenerateClassName)({productionPrefix:"graph",disableGlobal:!0}),Xt=e=>{let{store:t}=e;return a().createElement(o.Provider,{store:t},a().createElement(i.StylesProvider,{generateClassName:$t},a().createElement(s.MuiPickersUtilsProvider,{utils:c.Z},a().createElement(qt,null),a().createElement(l.Z,{showErrorFromStore:!0}))))}}}]);
|
package/package.json
CHANGED
package/remoteEntry.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var remotes;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,d,f,h,c,m,p,v,g,y,b={55662:(e,r,t)=>{var n={"./components":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(64),t.e(1071),t.e(8899),t.e(5953),t.e(614),t.e(1466),t.e(1867),t.e(1607),t.e(2899),t.e(888),t.e(5127),t.e(1396),t.e(3124),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(6615),t.e(4079),t.e(9550),t.e(5092),t.e(658),t.e(8694),t.e(4589),t.e(546),t.e(9945),t.e(4064)]).then((()=>()=>t(30679))),"./mdm-sdk":()=>Promise.all([t.e(4803),t.e(9002),t.e(1707)]).then((()=>()=>t(71707))),"./mdm-module":()=>Promise.all([t.e(4803),t.e(9394),t.e(9002),t.e(8523),t.e(5674),t.e(2400)]).then((()=>()=>t(72400))),"./dashboard":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(64),t.e(8899),t.e(5953),t.e(1607),t.e(2899),t.e(2606),t.e(3124),t.e(6784),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(6615),t.e(9945),t.e(3269)]).then((()=>()=>t(11434))),"./dq-dashboard":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(5953),t.e(1867),t.e(1607),t.e(2899),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(864)]).then((()=>()=>t(54845))),"./graph":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(64),t.e(1071),t.e(8899),t.e(614),t.e(1466),t.e(1815),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(6615),t.e(4079),t.e(9550),t.e(5092),t.e(412)]).then((()=>()=>t(60412))),"./search":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(64),t.e(1071),t.e(8899),t.e(5953),t.e(614),t.e(1466),t.e(1867),t.e(2899),t.e(888),t.e(8040),t.e(5267),t.e(1396),t.e(6375),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(6615),t.e(4079),t.e(9550),t.e(5092),t.e(658),t.e(1242),t.e(6252)]).then((()=>()=>t(86761))),"./relationship-search":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(8899),t.e(5953),t.e(8040),t.e(6375),t.e(1050),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(6615),t.e(9550),t.e(658),t.e(1242),t.e(8534)]).then((()=>()=>t(50163))),"./profile":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(64),t.e(1071),t.e(8899),t.e(5953),t.e(614),t.e(1466),t.e(1607),t.e(888),t.e(9147),t.e(5127),t.e(2606),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(6615),t.e(4079),t.e(9550),t.e(5092),t.e(658),t.e(8694),t.e(4589),t.e(1962),t.e(8862)]).then((()=>()=>t(48862))),"./interactions":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(64),t.e(1071),t.e(8899),t.e(5953),t.e(614),t.e(1466),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(6615),t.e(4079),t.e(9550),t.e(5092),t.e(7830)]).then((()=>()=>t(47830))),"./sources":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(64),t.e(1071),t.e(5953),t.e(614),t.e(1466),t.e(1396),t.e(39),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(6615),t.e(4079),t.e(9550),t.e(5092),t.e(8694),t.e(546),t.e(6071)]).then((()=>()=>t(81487))),"./tags":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(64),t.e(1071),t.e(8899),t.e(5953),t.e(614),t.e(1466),t.e(1607),t.e(888),t.e(9147),t.e(5127),t.e(2606),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(6615),t.e(4079),t.e(9550),t.e(5092),t.e(658),t.e(8694),t.e(4589),t.e(1962),t.e(3845)]).then((()=>()=>t(53845)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},w={};function P(e){var r=w[e];if(void 0!==r)return r.exports;var t=w[e]={id:e,loaded:!1,exports:{}};return b[e].call(t.exports,t,t.exports,P),t.loaded=!0,t.exports}P.m=b,P.c=w,P.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return P.d(r,{a:r}),r},P.d=(e,r)=>{for(var t in r)P.o(r,t)&&!P.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},P.f={},P.e=e=>Promise.all(Object.keys(P.f).reduce(((r,t)=>(P.f[t](e,r),r)),[])),P.u=e=>e+".js",P.miniCssF=e=>(4351===e?"remotes":e)+".css",P.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),P.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@reltio/remotes:",P.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var d=s[u];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==r+o){i=d;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,P.nc&&i.setAttribute("nonce",P.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(h);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},P.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},P.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),P.j=4351,(()=>{P.S={};var e={},r={};P.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];P.o(P.S,t)||(P.S[t]={});var a=P.S[t],i="@reltio/remotes",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@material-ui/core","4.11.3",(()=>Promise.all([P.e(8148),P.e(1855),P.e(64),P.e(1071),P.e(8899),P.e(614),P.e(1867),P.e(9147),P.e(8040),P.e(5267),P.e(7478),P.e(4328),P.e(3061),P.e(3980)]).then((()=>()=>P(77478))))),l("@material-ui/pickers","3.2.0",(()=>Promise.all([P.e(8148),P.e(1071),P.e(1867),P.e(2521),P.e(4328),P.e(3061),P.e(4079),P.e(8794)]).then((()=>()=>P(65026))))),l("@material-ui/styles","4.11.3",(()=>Promise.all([P.e(2393),P.e(4328),P.e(7737)]).then((()=>()=>P(92393))))),l("react-dnd","9.5.1",(()=>Promise.all([P.e(3348),P.e(4328),P.e(8523),P.e(8570)]).then((()=>()=>P(53348)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;P.g.importScripts&&(e=P.g.location+"");var r=P.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),P.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(l=e[a]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():o(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,l=1,s=!0;;l++,i++){var u,d,f=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(d=(typeof(u=r[i]))[0]))return!s||("u"==f?l>n&&!o:""==f!=o);if("u"==d){if(!s||"u"!=f)return!1}else if(s)if(f==d)if(l<=n){if(u!=e[l])return!1}else{if(o?u>e[l]:u<e[l])return!1;u!=e[l]&&(s=!1)}else if("s"!=f&&"n"!=f){if(o||l<=n)return!1;s=!1,l--}else{if(l<=n||d<f!=o)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,l--)}}var h=[],c=h.pop.bind(h);for(i=1;i<e.length;i++){var m=e[i];h.push(1==m?c()|c():2==m?c()&c():m?a(m,r):!c())}return!!c()},i=(e,r)=>{var t=P.S[e];if(!t||!P.o(t,r))throw new Error("Shared module "+r+" doesn't exist in shared scope "+e);return t},l=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},s=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",u=(e,r,t,n)=>{var o=l(e,t);return a(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(s(e,t,o,n)),d(e[t][o])},d=e=>(e.loaded=1,e.get()),h=(f=e=>function(r,t,n,o){var a=P.I(r);return a&&a.then?a.then(e.bind(e,r,P.S[r],t,n,o)):e(r,P.S[r],t,n,o)})(((e,r,t,n)=>(i(e,t),u(r,0,t,n)))),c=f(((e,r,t,n,o)=>r&&P.o(r,t)?u(r,0,t,n):o())),m={},p={24328:()=>h("default","react",[1,17,0,2]),36138:()=>c("default","@material-ui/styles",[1,4,11,3],(()=>P.e(2393).then((()=>()=>P(92393))))),75047:()=>h("default","react-dom",[1,17,0,2]),94079:()=>c("default","@material-ui/core",[1,4,11,3],(()=>Promise.all([P.e(1855),P.e(64),P.e(8899),P.e(614),P.e(1867),P.e(9147),P.e(8040),P.e(5267),P.e(7478)]).then((()=>()=>P(77478))))),28523:()=>h("default","redux",[1,4,1,2]),95038:()=>h("default","moment",[1,2,29,1]),17440:()=>h("default","ramda",[2,0,27,1]),87918:()=>h("default","ui-i18n",[1,1,3,1]),22664:()=>c("default","@material-ui/pickers",[1,3,1,1],(()=>Promise.all([P.e(1071),P.e(1867),P.e(2521),P.e(4079)]).then((()=>()=>P(65026))))),71153:()=>h("default","classnames",[1,2,3,1]),13896:()=>c("default","react-dnd",[1,9,5,1],(()=>P.e(3348).then((()=>()=>P(53348))))),52730:()=>h("default","react-redux",[1,7,2,6])},v={3061:[36138,75047],4079:[94079],4328:[24328],5783:[22664,71153,13896,52730],8523:[28523],9002:[95038,17440,87918]},P.f.consumes=(e,r)=>{P.o(v,e)&&v[e].forEach((e=>{if(P.o(m,e))return r.push(m[e]);var t=r=>{m[e]=0,P.m[e]=t=>{delete P.c[e],t.exports=r()}},n=r=>{delete m[e],P.m[e]=t=>{throw delete P.c[e],r}};try{var o=p[e]();o.then?r.push(m[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},g=e=>new Promise(((r,t)=>{var n=P.miniCssF(e),o=P.p+n;if(((e,r)=>{for(var t=document.getElementsByTagName("link"),n=0;n<t.length;n++){var o=(i=t[n]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(o===e||o===r))return i}var a=document.getElementsByTagName("style");for(n=0;n<a.length;n++){var i;if((o=(i=a[n]).getAttribute("data-href"))===e||o===r)return i}})(n,o))return r();((e,r,t,n)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=a=>{if(o.onerror=o.onload=null,"load"===a.type)t();else{var i=a&&("load"===a.type?"missing":a.type),l=a&&a.target&&a.target.href||r,s=new Error("Loading CSS chunk "+e+" failed.\n("+l+")");s.code="CSS_CHUNK_LOAD_FAILED",s.type=i,s.request=l,o.parentNode.removeChild(o),n(s)}},o.href=r,document.head.appendChild(o)})(e,o,r,t)})),y={4351:0},P.f.miniCss=(e,r)=>{y[e]?r.push(y[e]):0!==y[e]&&{412:1,590:1,6252:1,8534:1}[e]&&r.push(y[e]=g(e).then((()=>{y[e]=0}),(r=>{throw delete y[e],r})))},(()=>{var e={4351:0};P.f.j=(r,t)=>{var n=P.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(3061|4079|4328|8523)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=P.p+P.u(r),i=new Error;P.l(a,(t=>{if(P.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)P.o(i,n)&&(P.m[n]=i[n]);l&&l(P)}for(r&&r(t);s<a.length;s++)o=a[s],P.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var S=P(55662);remotes=S})();
|
|
1
|
+
var remotes;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,d,f,h,c,m,p,v,g,y,b={55662:(e,r,t)=>{var n={"./components":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(64),t.e(1071),t.e(8899),t.e(5953),t.e(614),t.e(1466),t.e(1867),t.e(1607),t.e(2899),t.e(888),t.e(5127),t.e(1396),t.e(3124),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(6615),t.e(4079),t.e(9550),t.e(5092),t.e(658),t.e(8694),t.e(4589),t.e(546),t.e(9945),t.e(4064)]).then((()=>()=>t(30679))),"./mdm-sdk":()=>Promise.all([t.e(4803),t.e(9002),t.e(1707)]).then((()=>()=>t(71707))),"./mdm-module":()=>Promise.all([t.e(4803),t.e(9394),t.e(9002),t.e(8523),t.e(5674),t.e(2400)]).then((()=>()=>t(72400))),"./dashboard":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(64),t.e(8899),t.e(5953),t.e(1607),t.e(2899),t.e(2606),t.e(3124),t.e(6784),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(6615),t.e(9945),t.e(3269)]).then((()=>()=>t(11434))),"./dq-dashboard":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(5953),t.e(1867),t.e(1607),t.e(2899),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(864)]).then((()=>()=>t(54845))),"./graph":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(64),t.e(1071),t.e(8899),t.e(614),t.e(1466),t.e(1815),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(6615),t.e(4079),t.e(9550),t.e(5092),t.e(525)]).then((()=>()=>t(80525))),"./search":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(64),t.e(1071),t.e(8899),t.e(5953),t.e(614),t.e(1466),t.e(1867),t.e(2899),t.e(888),t.e(8040),t.e(5267),t.e(1396),t.e(6375),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(6615),t.e(4079),t.e(9550),t.e(5092),t.e(658),t.e(1242),t.e(6252)]).then((()=>()=>t(86761))),"./relationship-search":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(8899),t.e(5953),t.e(8040),t.e(6375),t.e(1050),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(6615),t.e(9550),t.e(658),t.e(1242),t.e(8534)]).then((()=>()=>t(50163))),"./profile":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(64),t.e(1071),t.e(8899),t.e(5953),t.e(614),t.e(1466),t.e(1607),t.e(888),t.e(9147),t.e(5127),t.e(2606),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(6615),t.e(4079),t.e(9550),t.e(5092),t.e(658),t.e(8694),t.e(4589),t.e(1962),t.e(8862)]).then((()=>()=>t(48862))),"./interactions":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(64),t.e(1071),t.e(8899),t.e(5953),t.e(614),t.e(1466),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(6615),t.e(4079),t.e(9550),t.e(5092),t.e(7830)]).then((()=>()=>t(47830))),"./sources":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(64),t.e(1071),t.e(5953),t.e(614),t.e(1466),t.e(1396),t.e(39),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(6615),t.e(4079),t.e(9550),t.e(5092),t.e(8694),t.e(546),t.e(6071)]).then((()=>()=>t(81487))),"./tags":()=>Promise.all([t.e(4803),t.e(8148),t.e(1855),t.e(9394),t.e(7952),t.e(64),t.e(1071),t.e(8899),t.e(5953),t.e(614),t.e(1466),t.e(1607),t.e(888),t.e(9147),t.e(5127),t.e(2606),t.e(4328),t.e(9002),t.e(3061),t.e(8523),t.e(5674),t.e(5783),t.e(5108),t.e(6615),t.e(4079),t.e(9550),t.e(5092),t.e(658),t.e(8694),t.e(4589),t.e(1962),t.e(3845)]).then((()=>()=>t(53845)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},w={};function P(e){var r=w[e];if(void 0!==r)return r.exports;var t=w[e]={id:e,loaded:!1,exports:{}};return b[e].call(t.exports,t,t.exports,P),t.loaded=!0,t.exports}P.m=b,P.c=w,P.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return P.d(r,{a:r}),r},P.d=(e,r)=>{for(var t in r)P.o(r,t)&&!P.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},P.f={},P.e=e=>Promise.all(Object.keys(P.f).reduce(((r,t)=>(P.f[t](e,r),r)),[])),P.u=e=>e+".js",P.miniCssF=e=>(4351===e?"remotes":e)+".css",P.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),P.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@reltio/remotes:",P.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var d=s[u];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==r+o){i=d;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,P.nc&&i.setAttribute("nonce",P.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(h);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},P.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},P.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),P.j=4351,(()=>{P.S={};var e={},r={};P.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];P.o(P.S,t)||(P.S[t]={});var a=P.S[t],i="@reltio/remotes",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@material-ui/core","4.11.3",(()=>Promise.all([P.e(8148),P.e(1855),P.e(64),P.e(1071),P.e(8899),P.e(614),P.e(1867),P.e(9147),P.e(8040),P.e(5267),P.e(7478),P.e(4328),P.e(3061),P.e(3980)]).then((()=>()=>P(77478))))),l("@material-ui/pickers","3.2.0",(()=>Promise.all([P.e(8148),P.e(1071),P.e(1867),P.e(2521),P.e(4328),P.e(3061),P.e(4079),P.e(8794)]).then((()=>()=>P(65026))))),l("@material-ui/styles","4.11.3",(()=>Promise.all([P.e(2393),P.e(4328),P.e(7737)]).then((()=>()=>P(92393))))),l("react-dnd","9.5.1",(()=>Promise.all([P.e(3348),P.e(4328),P.e(8523),P.e(8570)]).then((()=>()=>P(53348)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;P.g.importScripts&&(e=P.g.location+"");var r=P.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),P.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(l=e[a]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():o(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,l=1,s=!0;;l++,i++){var u,d,f=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(d=(typeof(u=r[i]))[0]))return!s||("u"==f?l>n&&!o:""==f!=o);if("u"==d){if(!s||"u"!=f)return!1}else if(s)if(f==d)if(l<=n){if(u!=e[l])return!1}else{if(o?u>e[l]:u<e[l])return!1;u!=e[l]&&(s=!1)}else if("s"!=f&&"n"!=f){if(o||l<=n)return!1;s=!1,l--}else{if(l<=n||d<f!=o)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,l--)}}var h=[],c=h.pop.bind(h);for(i=1;i<e.length;i++){var m=e[i];h.push(1==m?c()|c():2==m?c()&c():m?a(m,r):!c())}return!!c()},i=(e,r)=>{var t=P.S[e];if(!t||!P.o(t,r))throw new Error("Shared module "+r+" doesn't exist in shared scope "+e);return t},l=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},s=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",u=(e,r,t,n)=>{var o=l(e,t);return a(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(s(e,t,o,n)),d(e[t][o])},d=e=>(e.loaded=1,e.get()),h=(f=e=>function(r,t,n,o){var a=P.I(r);return a&&a.then?a.then(e.bind(e,r,P.S[r],t,n,o)):e(r,P.S[r],t,n,o)})(((e,r,t,n)=>(i(e,t),u(r,0,t,n)))),c=f(((e,r,t,n,o)=>r&&P.o(r,t)?u(r,0,t,n):o())),m={},p={24328:()=>h("default","react",[1,17,0,2]),36138:()=>c("default","@material-ui/styles",[1,4,11,3],(()=>P.e(2393).then((()=>()=>P(92393))))),75047:()=>h("default","react-dom",[1,17,0,2]),94079:()=>c("default","@material-ui/core",[1,4,11,3],(()=>Promise.all([P.e(1855),P.e(64),P.e(8899),P.e(614),P.e(1867),P.e(9147),P.e(8040),P.e(5267),P.e(7478)]).then((()=>()=>P(77478))))),28523:()=>h("default","redux",[1,4,1,2]),95038:()=>h("default","moment",[1,2,29,1]),17440:()=>h("default","ramda",[2,0,27,1]),87918:()=>h("default","ui-i18n",[1,1,3,1]),22664:()=>c("default","@material-ui/pickers",[1,3,1,1],(()=>Promise.all([P.e(1071),P.e(1867),P.e(2521),P.e(4079)]).then((()=>()=>P(65026))))),71153:()=>h("default","classnames",[1,2,3,1]),13896:()=>c("default","react-dnd",[1,9,5,1],(()=>P.e(3348).then((()=>()=>P(53348))))),52730:()=>h("default","react-redux",[1,7,2,6])},v={3061:[36138,75047],4079:[94079],4328:[24328],5783:[22664,71153,13896,52730],8523:[28523],9002:[95038,17440,87918]},P.f.consumes=(e,r)=>{P.o(v,e)&&v[e].forEach((e=>{if(P.o(m,e))return r.push(m[e]);var t=r=>{m[e]=0,P.m[e]=t=>{delete P.c[e],t.exports=r()}},n=r=>{delete m[e],P.m[e]=t=>{throw delete P.c[e],r}};try{var o=p[e]();o.then?r.push(m[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},g=e=>new Promise(((r,t)=>{var n=P.miniCssF(e),o=P.p+n;if(((e,r)=>{for(var t=document.getElementsByTagName("link"),n=0;n<t.length;n++){var o=(i=t[n]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(o===e||o===r))return i}var a=document.getElementsByTagName("style");for(n=0;n<a.length;n++){var i;if((o=(i=a[n]).getAttribute("data-href"))===e||o===r)return i}})(n,o))return r();((e,r,t,n)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=a=>{if(o.onerror=o.onload=null,"load"===a.type)t();else{var i=a&&("load"===a.type?"missing":a.type),l=a&&a.target&&a.target.href||r,s=new Error("Loading CSS chunk "+e+" failed.\n("+l+")");s.code="CSS_CHUNK_LOAD_FAILED",s.type=i,s.request=l,o.parentNode.removeChild(o),n(s)}},o.href=r,document.head.appendChild(o)})(e,o,r,t)})),y={4351:0},P.f.miniCss=(e,r)=>{y[e]?r.push(y[e]):0!==y[e]&&{525:1,590:1,6252:1,8534:1}[e]&&r.push(y[e]=g(e).then((()=>{y[e]=0}),(r=>{throw delete y[e],r})))},(()=>{var e={4351:0};P.f.j=(r,t)=>{var n=P.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(3061|4079|4328|8523)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=P.p+P.u(r),i=new Error;P.l(a,(t=>{if(P.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)P.o(i,n)&&(P.m[n]=i[n]);l&&l(P)}for(r&&r(t);s<a.length;s++)o=a[s],P.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var S=P(55662);remotes=S})();
|
package/412.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[412],{50548:(e,t,n)=>{n.d(t,{l:()=>o});var r=n(24328),a=n.n(r);function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}const o=(e,t,n)=>{if(e&&t){const o=(0,r.memo)(n);return n=>a().createElement(e.Consumer,null,(e=>a().createElement(o,l({},n,t(e,n)))))}return n}},44938:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),a=n.n(r),l=n(50166),o=n(44443),i=n(22241);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){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 u=(0,r.memo)((e=>{let{width:t=0,height:n=0,defaultItemSize:p,data:u,children:d,itemKey:m,showNotMeasuredItems:f,listRef:h}=e;const g=s(),y=(0,r.useRef)({}),[b,x]=(0,r.useState)({}),v=(0,r.useCallback)((0,i.DsO)((()=>{x(c({},y.current))})),[]),E=(0,r.useCallback)(((e,t)=>m?m(t,e):t),[m]),w=(0,r.useRef)(),O=h||w;O.current&&O.current.resetAfterIndex(0,!1);const C=(0,r.useMemo)((()=>e=>{let{data:t,index:n,style:r}=e;const l=E(t,n);return a().createElement("div",{style:r,className:g.item},a().createElement("div",{style:f?void 0:{visibility:l in b?void 0:"hidden"}},a().createElement(o.Z,{handleHeight:!0,onResize:(e,t)=>{y.current[l]!==t&&(((e,t)=>{y.current=c({},y.current,{[e]:t})})(l,t),v())}}),d({data:t,index:n})))}),[d,f,E,v,!f&&b]);return a().createElement(l.VariableSizeList,{ref:O,width:t,height:n,itemCount:u.length,itemData:u,itemSize:e=>b[(e=>E(u,e))(e)]||p,itemKey:m},C)}))},42011:(e,t,n)=>{n.d(t,{Z:()=>b});var r=n(13980),a=n.n(r),l=n(24328),o=n.n(l),i=n(71153),s=n.n(i),c=n(28899),p=n(87918),u=n.n(p),d=n(79573),m=n(17440);const f=(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]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){g(e,t,n[t])}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y=e=>{let{classes:t={},count:n,rowsPerPageOptions:r,page:a,onChangePage:i,rowsPerPage:p,onChangeRowsPerPage:g,basicTableRef:y,labelRowsPerPage:b}=e;const x=f(),v=(0,l.useCallback)((()=>{(0,m.pathOr)(m.identity,["current","resetScrollbarPosition"],y)()}),[y]),E=(0,l.useCallback)((e=>{i(e),v()}),[i,v]),w=(0,l.useCallback)((e=>{i(0),g(e),v()}),[i,g,v]);return o().createElement(c.Z,{classes:h({},t,{root:s()(x.pagination,t.root),select:s()(x.select,t.select),caption:x.caption,selectRoot:x.selectRoot,actions:x.actions}),component:"div",labelRowsPerPage:b||u().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return u().text("${fromRow}-${toRow} of ${countRows}",{fromRow:u().number(t,"0,0"),toRow:u().number(n,"0,0"),countRows:u().number(r,"0,0")})},count:n,rowsPerPageOptions:r,page:a,onChangePage:(0,m.pipe)((0,m.nthArg)(1),E),rowsPerPage:p,onChangeRowsPerPage:(0,m.pipe)(d.NA,w)})};y.propTypes={classes:a().object,rowsPerPageOptions:a().arrayOf(a().number),count:a().number,page:a().number,onChangePage:a().func,rowsPerPage:a().number,onChangeRowsPerPage:a().func,basicTableRef:a().shape({current:a().object}),labelRowsPerPage:a().string};const b=o().memo(y)},1730:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(27556),a=n(13980),l=n.n(a),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]):{},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 p=(0,n(79692).Z)((e=>({"basic-view__paper":s({display:"flex",flexDirection:"column"},e.basicView)})));function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}const d=(0,o.forwardRef)(((e,t)=>{let{children:n,className:a}=e,l=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["children","className"]);const o=p();return i().createElement(r.Z,u({ref:t,className:a,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:()=>f});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l),i=n(77277),s=n(8629),c=n(49429),p=n(38724),u=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"}}),f=e=>{let{open:t,title:n,content:r,onCancel:l,cancelCaption:f=o().text("Cancel"),onDiscard:h,discardCaption:g="",onSave:y,saveCaption:b=o().text("Save"),disabledSave:x=!1}=e;const v=m();return a().createElement(s.Z,{open:t,onClose:l,classes:{paperScrollPaper:v.paper}},a().createElement(d.Z,{classes:{root:v.title}},n),a().createElement(p.Z,{classes:{root:v.content}},a().createElement(u.Z,{classes:{root:v.contentText}},r)),a().createElement(c.Z,{className:v.actionButtons,disableSpacing:!0},l&&a().createElement(i.Z,{onClick:l},f),a().createElement("div",null,h&&a().createElement(i.Z,{onClick:h,classes:{root:v.discardButton}},g),a().createElement(i.Z,{onClick:y,color:"primary",disabled:x,autoFocus:!0},b))))}},20146:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(24328),a=n.n(r),l=n(52730),o=n(71153),i=n.n(o),s=n(90436),c=n(22241),p=n(35674);const u=(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:r="small"}=e;const o=u(),d=(0,l.useSelector)(p.ZP.selectors.getMetadata),m=t.type,f=(0,c.nt9)(d,m)||{},h=(0,c.VD3)(d,f,"typeColor")||c.rSc.palette.primary.main;return a().createElement(s.Z,{style:{backgroundColor:h,color:c.P6Y.Colors.getColor(h)?"#FFFFFF":"#212121"},className:i()(o[`entityType-${r}`],n),component:"div"},(0,c.jFi)(d,t))}},92934:(e,t,n)=>{n.d(t,{Q:()=>c});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l),i=n(22241),s=n(72108);const c=(0,r.memo)((e=>{let{entityTypes:t,selectedEntityTypes:n,single:l,placeholder:c,enableEmptyValueUnderline:p,onChange:u,classes:d={},ListLabelProps:m={},disabled:f=!1}=e;const h=(0,r.useMemo)((()=>t.filter(i.oDv)),[t]);return a().createElement(s.S,{items:h,selectedItemsUris:n,single:l,placeholder:c,enableEmptyValueUnderline:p,onChange:u,classes:d,ListLabelProps:m,disabled:f,label:o().text("Entity type"),dataReltioId:"entity-type-selector",selectionPopupTitle:o().text("Select entity types")})}));c.displayName="EntityTypesSelector"},52194:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=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 l=s();return a().createElement(i.Z,{title:n,classes:{root:o()(l.container,t),title:l.title}},r)}},72108:(e,t,n)=>{n.d(t,{S:()=>R});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(17440),s=n(22241),c=n(86619),p=n(83543),u=n(80030),d=n(79692);const m=(0,d.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)"}}),f=(e,t)=>{const{childNodes:n,clientLeft:r,clientWidth:a}=t;if(n.length>0){const[t]=Array.from(n),l=document.createRange();l.setStart(t,0);for(let n=0;n<e.length;n++){l.setEnd(t,l.endOffset+e[n].length);const{width:o}=l.getBoundingClientRect();if(r+o>a)return n;n!==e.length-1&&l.setEnd(t,l.endOffset+", ".length)}}return-1},h=e=>e.join(", "),g=e=>`calc(${(0,i.isNil)(e)?"100%":`${e}px`} - 35px)`,y=e=>{let{list:t,maxWidth:n}=e;const l=m(),o=(0,r.useRef)(),[i,s]=(0,r.useState)(0);(0,r.useEffect)((()=>{s(((e,t)=>{const n=e.length,r=((e,t)=>{if(t){const n=f(e,t);return-1===n?0:e.length-n}return 0})(e,t);return n-Math.max(1,n-r)})(t,o.current))}),[t]);const c=h(t),p=i>0,d=p?h(t.slice(0,-i)):c;return a().createElement(u.ZP,{title:p?c:""},a().createElement("div",{className:l.listLabelContainer},a().createElement("div",{style:{width:g(n)},className:l.listLabel,ref:o},c),a().createElement("div",{className:l.visibleItemsLabel},d),p&&a().createElement("div",{className:l.hiddenCount},`+${i}`)))};var b=n(40435),x=n(22311),v=n(26638),E=n(33117),w=n(94792),O=n(63485);function C(){return C=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},C.apply(this,arguments)}const S=(0,i.always)(32),P=(0,r.memo)((e=>{let{selectedItems:t,onItemClick:n,focusIndex:r,width:l,height:o}=e,i=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["selectedItems","onItemClick","focusIndex","width","height"]);return a().createElement(O.Z,C({getItemSize:S,renderItem:(e,l,o)=>{let{item:i}=l;const s=!!t.find((e=>i.uri===e)),c=o===r;return a().createElement(E.Z,{key:i.uri,onClick:n,checked:s,data:i,label:a().createElement(w.Z,{text:i.label,highlight:i.filterText}),labelInText:i.label,style:e,isFocused:c,hideIcon:!0,LogoIcon:i.LogoIcon})},focusIndex:r,fixedTitle:!1,disableHorizontalScrollbar:!0,width:l,height:o},i))}));P.displayName="SelectMetadataTypesList";const T=(0,d.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 N(){return N=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},N.apply(this,arguments)}function j(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){k(e,t,n[t])}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const R=(0,r.memo)((e=>{let{placeholder:t,classes:n={},items:l,selectedItemsUris:u,onChange:d,ListLabelProps:m={},disabled:f,enableEmptyValueUnderline:h,single:g,label:E,dataReltioId:w,selectionPopupTitle:O}=e;const C=T(),[S,k]=(0,r.useState)(!1),R=(0,r.useCallback)((()=>k(!0)),[]),Z=(0,r.useCallback)((()=>k(!1)),[]),[I,L]=(0,r.useState)(""),D=(0,r.useCallback)((()=>L("")),[]),U=(0,r.useCallback)((0,i.pipe)(D,Z),[Z,D]),z=l.filter((e=>{let{label:t}=e;return s.P6Y.strings.search(t,I)})).map(((e,t)=>({item:{item:j({},e,{filterText:I})},index:t}))),B=(0,r.useMemo)((()=>u.map((e=>l.find((0,i.propEq)("uri",e)))).map((0,i.prop)("label"))),[u,l]),M=(0,r.useCallback)(((e,t)=>{g?(d(t?[e.uri]:[]),U()):d(t?u.concat(e.uri):u.filter((t=>t!==e.uri)))}),[u,d,g,U]),A=(0,r.useCallback)((e=>{let{item:t}=e;const n=!u.includes(t.uri);M(t,n)}),[u,M]),{focusIndex:H,handleKeyDown:W}=(0,v.t)({items:z,open:S,onSelectFocusedItem:A,selectedItems:u,onClose:U}),F=(0,r.useRef)(),V=F.current?F.current.getBoundingClientRect().width:0,G=Math.max(V,255),q=0===u.length;return a().createElement(a().Fragment,null,a().createElement(c.Z,{label:E,ref:F,InputProps:{startAdornment:q&&!t?null:a().createElement("div",{className:o()(C.inputText,n.inputText)},q?a().createElement("div",null,t):a().createElement(y,N({},m,{list:B}))),classes:{root:C.inputRoot,input:o()(C.input,n.input,{[C.emptyInput]:q&&!t}),disabled:o()(C.disabledInput,{[C.disabledPointer]:f}),underline:C.disabledUnderline},endAdornment:a().createElement(b.Z,{size:"L",icon:p.Z,iconClassName:o()(C.icon,{[C["popup-opened-icon"]]:S}),disabled:f}),readOnly:!0,disabled:!0,disableUnderline:q&&!h},inputProps:{tabIndex:-1},InputLabelProps:{classes:{root:o()(C.inputLabel,n.label)}},value:"",onClick:f?void 0:R,classes:{root:o()(C.root,n.root)},margin:"dense",variant:"filled",disabled:f,"data-reltio-id":w}),a().createElement(x.Z,{open:S,anchorEl:F.current,onClose:U,onSearch:L,title:O,containerWidth:G,containerHeight:355,searchInputOnKeyDown:W,transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"left",vertical:"bottom"},PaperProps:{"data-reltio-id":`${w}-popup`}},a().createElement(P,{items:z,onItemClick:M,selectedItems:u,width:G,height:245,focusIndex:H})))}));R.displayName="MetadataTypesSelector"},33109:(e,t,n)=>{n.d(t,{Z:()=>E});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),i=n(71153),s=n.n(i),c=n(52730),p=n(17440),u=n(90436),d=n(80030),m=n(87918),f=n.n(m),h=n(22241),g=n(35674),y=n(37573),b=n(20146);const x=(0,n(79692).Z)((e=>({profileBandWrapper:{flexShrink:0},profileBand:{display:"flex",padding:"16px 12px 16px 16px",alignItems:"flex-start",backgroundColor:"#fff",boxShadow:"inset 0 -1px 0 0 rgba(0,114,206,0.06), inset 0 1px 0 0 rgba(0,114,206,0.06);","&:after":{content:'""',minHeight:"inherit",fontSize:0}},inactive:{background:e.inactiveBackground},profileIcon:{marginRight:"12px"},imageProfileIcon:{width:"48px",height:"48px"},profileInfo:{display:"flex",flexDirection:"column",flex:"1 1 50%"},badge:{},label:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary,wordBreak:"break-word","&+ $specialInfo":{marginTop:"4px"}},secondaryLabel:{display:"inline-flex",color:e.palette.text.primary,marginTop:"2px",lineHeight:"16px",fontSize:"14px",fontWeight:400,"&+ $businessCard":{marginLeft:"12px"}},businessCard:{color:e.palette.text.secondary,display:"inline-flex",fontSize:"14px",marginTop:"4px",lineHeight:"1.2"},specialInfo:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",width:"100%",marginTop:"8px"},entityType:{display:"flex",flexWrap:"wrap"},entityId:{fontSize:"13px",color:e.palette.text.secondary,whiteSpace:"nowrap",cursor:"pointer","&:hover":{textDecoration:"underline"}}}))),v=e=>{let{className:t,entity:n,children:l,classes:o}=e;const i=x({classes:o}),m=(0,c.useSelector)(g.ZP.selectors.getMetadata),v=(0,r.useCallback)((()=>{navigator.clipboard.writeText((0,h.BTI)(n))}),[n]);if((0,p.isNil)(n))return null;const E=(0,h.idV)(n.label),w=n.secondaryLabel,O=(0,h.ptG)(m,n),C=(0,h.Fn9)(n),S=n.uri,P=(0,h.BTI)(n);return a().createElement("div",{className:s()(i.profileBandWrapper,t)},a().createElement("div",{className:s()(i.profileBand,{[i.inactive]:!C}),"data-entity-uri":S},a().createElement(y.Z,{key:n.uri,entity:n,avatarClassName:i.profileIcon,imageClassName:i.imageProfileIcon}),a().createElement("div",{className:i.profileInfo},a().createElement("div",null,a().createElement(u.Z,{variant:"h6",className:i.label},E),w&&a().createElement(u.Z,{variant:"subtitle2",className:i.secondaryLabel},w),O&&a().createElement(u.Z,{variant:"subtitle1",className:i.businessCard},O)),a().createElement("div",{className:i.specialInfo},a().createElement("div",{className:i.entityType},a().createElement(b.Z,{entity:n,size:"medium",className:i.badge}),!(0,h.ZiX)(S)&&a().createElement(d.ZP,{title:f().text("Copy to clipboard")},a().createElement(u.Z,{display:"inline",variant:"body2",className:i.entityId,onClick:v},f().text("Entity ID"),": ",P))))),l&&a().createElement("div",null,l)))};v.propTypes={className:o().string,entity:o().object,children:o().node,classes:o().object};const E=v},68977:(e,t,n)=>{n.d(t,{U:()=>c});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l),i=n(22241),s=n(72108);const c=(0,r.memo)((e=>{let{relationTypes:t,selectedRelationTypes:n,single:l,placeholder:c,enableEmptyValueUnderline:p,onChange:u,classes:d={},ListLabelProps:m={},disabled:f=!1}=e;const h=(0,r.useMemo)((()=>t.filter(i.Tt2)),[t]);return a().createElement(s.S,{items:h,selectedItemsUris:n,single:l,placeholder:c,enableEmptyValueUnderline:p,onChange:u,classes:d,ListLabelProps:m,disabled:f,label:o().text("Relation type"),dataReltioId:"relation-type-selector",selectionPopupTitle:o().text("Select relation types")})}));c.displayName="RelationTypesSelector"},28101:(e,t,n)=>{n.d(t,{G:()=>m});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(39475),s=n(79692),c=n(41128);const p=(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 u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}const m=e=>{let{buttonsProps:t,activeIndexId:n,className:r,onButtonClick:l,classes:s={}}=e;const c=p(),{active:m,buttonWrapper:f}=s,h=d(s,["active","buttonWrapper"]);return a().createElement("div",{className:o()(c.container,r)},t.map((e=>{let{id:t}=e,r=d(e,["id"]);return a().createElement(i.k,u({},r,{classes:h,size:"S",key:t,className:o()({[o()(c.active,m)]:n===t},c.buttonWrapper,f),onClick:()=>l(t),"data-reltio-id":`reltio-profile-right-side-button-${t}`}))})))}},11821:(e,t,n)=>{n.d(t,{h:()=>o});var r=n(24328),a=n.n(r);const l=(0,n(79692).Z)((e=>({contentWrapper:{display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)",marginLeft:"3px",transition:e.transitions.create(["width"],{duration:e.transitions.duration.enteringScreen})}}))),o=e=>{let{width:t,open:n,children:r}=e;const o=l();return a().createElement("div",{className:o.contentWrapper,style:{width:`${n?t:0}px`}},n&&a().createElement(a().Fragment,null,r))}},15177:(e,t,n)=>{n.d(t,{Z:()=>Z});var r=n(52730),a=n(35674),l=n(24328),o=n.n(l),i=n(22241),s=n(71153),c=n.n(s),p=n(87918),u=n.n(p),d=n(95544),m=n(90436),f=n(80687),h=n(1730),g=n(52194),y=n(89978),b=n(26978),x=n(79692);const v=(0,x.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:a.ZP.selectors.getMetadata(e)})))((e=>{let{className:t,entity:n={},metadata:s,caption:p="",excludeUris:x=[],includeUris:E=[],attributesCount:w=16}=e;const O=v(),C=(0,r.useSelector)(a.ZP.selectors.getPivotingAttributes),S=(0,l.useMemo)((()=>(0,b.U)(s,n.type,E,x)),[x,E,s,n.type]),P=(0,i.fyF)(S,n).filter((e=>{let{values:t}=e;return!(0,i.O27)(t)})).length>0;return P||!(0,i.O27)(p)?o().createElement(f.J.Provider,{value:C},o().createElement(h.Z,{className:t},p&&o().createElement(g.Z,{className:O.header,title:p}),o().createElement(d.Z,{className:c()(O.attributesContainer,{[O.noCaption]:!p})},P?o().createElement(y.Z,{entity:n,attrTypes:S,parentUri:n.uri,drawLines:!1,max:w}):o().createElement(m.Z,{className:O.noData},u().text("No data found"))))):null}));var w=n(17440),O=n(76141),C=n(12212);const S=(0,x.Z)({attributesContainer:{padding:"0 16px 16px 16px"},header:{marginBottom:"4px"},noCaption:{paddingTop:"16px"}});var P=n(1108);function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){N(e,t,n[t])}))}return e}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const j=(0,r.connect)((e=>({metadata:a.ZP.selectors.getMetadata(e)})))((e=>{let{className:t,entity:n={},mode:s,metadata:p,caption:u="",excludeUris:m=[],includeUris:f=[],pinnedAttributes:y}=e;const x=S(),v=(0,r.useDispatch)(),E=(0,l.useContext)(C.m),N=(0,r.useSelector)(a.ZP.selectors.getUserRoles),j=(0,l.useMemo)((()=>(0,i.mC3)(y,N)),[y,N]),k=(0,r.useSelector)((e=>a.ZP.selectors.getModifiedEntity(e,n.uri)||{})),R=(0,l.useMemo)((()=>(0,b.U)(p,k.type,f,m)),[m,f,p,k.type]),Z=(0,l.useCallback)((e=>(0,w.pipe)(a.N5.actions.addAttributes,v)(e.map((e=>T({},e,{viewId:E}))))),[E,v]),I=(0,l.useCallback)((e=>(0,w.pipe)(a.N5.actions.modifyAttribute,v)(T({},e,{viewId:E}))),[E,v]),L=(0,l.useCallback)((e=>(0,w.pipe)(a.N5.actions.removeAttribute,v)(T({},e,{viewId:E}))),[E,v]);return o().createElement(h.Z,{className:t},u&&o().createElement(g.Z,{className:x.header,title:u}),o().createElement(d.Z,{className:c()(x.attributesContainer,{[x.noCaption]:!u})},o().createElement(P.c.Provider,{value:j},o().createElement(O.Z,{entity:k,attrTypes:R,parentUri:k.uri,drawLines:!1,mode:s,showEmptyEditors:(0,i.ZiX)(k.uri),crosswalks:k.crosswalks,onAddAttributes:Z,onChangeAttribute:I,onDeleteAttribute:L}))))}));var k=n(10609);function R(){return R=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},R.apply(this,arguments)}const Z=(0,r.connect)(((e,t)=>({entity:t.entity||a.ZP.selectors.getEntityWithDiff(e),mode:t.mode||a.ZP.selectors.getMode(e)})))((e=>{let{mode:t=i.ARY.Viewing,attributesCount:n,pinnedAttributes:r,entity:a}=e,l=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["mode","attributesCount","pinnedAttributes","entity"]);return o().createElement(k.u.Provider,{value:a},(0,i.uzs)(t)?o().createElement(E,R({attributesCount:n,entity:a},l)):o().createElement(j,R({mode:t,pinnedAttributes:r,entity:a},l)))}))},60412:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ut});var r=n(24328),a=n.n(r),l=n(52730),o=n(36138),i=n(97333),s=n(22664),c=n(52844),p=n(35674),u=n(87378),d=n(98996),m=n(22241),f=n(87918),h=n.n(f),g=n(17440),y=n(60715),b=n(35174);const x=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,g.either)((0,g.pipe)(m.nqN,(0,g.equals)(e)),(0,g.pipe)(m.j5q,(0,g.equals)(e))));n.push(...r);const a=(0,g.pipe)(v,(0,g.without)([e]))(r);return a.forEach((e=>x(e,t,n))),n},v=e=>(0,g.pipe)((0,g.chain)((e=>[(0,m.nqN)(e),(0,m.j5q)(e)])),g.uniq)(e),E=e=>{const[t,n]=(0,r.useState)(null),[a,o]=(0,r.useState)(null),i=(0,l.useDispatch)(),[s,c]=(0,r.useState)(null),[u,f]=(0,r.useState)(!1),E=null==e?void 0:e.uri,w=(0,m.biM)(e);(0,r.useEffect)((()=>(!E||(0,m.ZiX)(E)||w||(f(!0),(0,m.ZYI)({uri:E,deep:t?2:1,limitCreditsConsumption:!0,graphTypes:t?[(0,m.nIW)(t)]:null,activenessDate:null,max:t?200:3e3}).then((e=>{const t=new d.MultiGraph;((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}`)}));const a=e.entities.map((e=>({id:e.uri,name:e.label}))),l=[];return r.forEach((e=>{const[t,n,r]=e.split("--");l.push({from:t,to:n,key:r})})),{nodes:a,edges:l}})(t);n.nodes.forEach((t=>{e.hasNode(t.id)||e.addNode(t.id,{label:(0,m.idV)(t.name),size:21,color:"#0072CE",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})}))})(t,e),o(t),c(e)})).catch((e=>{console.error(e),c(null),i(p.ui.actions.errorSet((0,m.xU7)(e,h().text("Something went wrong"))))})).finally((()=>{f(!1)}))),()=>{o(null),c(null),f(!1)})),[E,w,i,t]);const O=(0,r.useCallback)((e=>{f(!0),(0,m.VGk)(e).then((()=>{a.dropEdge(e);const{updatedData:t,removedEntitiesUris:n}=((e,t,n,r)=>{const a=r.relations.find((0,g.propEq)("uri",t)),l=(0,m.nqN)(a),o=(0,m.j5q)(a),i=(0,b.toUndirected)(n),s=(0,g.cond)([[()=>!(0,y.Ar)(i,e,l),(0,g.always)(l)],[()=>!(0,y.Ar)(i,e,o),(0,g.always)(o)],[g.T,(0,g.always)(null)]])(),c=(0,g.evolve)({relations:(0,g.reject)((0,g.propEq)("uri",t))})(r),{updatedData:p,removedEntitiesUris:u}=s?((e,t)=>{const n=x(e,t),r=(0,g.pipe)(v,(0,g.append)(e),g.uniq)(n);return{updatedData:(0,g.evolve)({relations:(0,g.reject)((e=>n.includes(e))),entities:(0,g.reject)((e=>r.includes(e.uri)))})(t),removedEntitiesUris:r}})(s,c):{updatedData:c,removedEntitiesUris:[]};return{updatedData:p,removedEntitiesUris:u}})(E,e,a,s);((e,t)=>{(t||[]).forEach((t=>{e.dropNode(t)}))})(a,n),c(t)})).catch((e=>{i(p.ui.actions.errorSet((0,m.xU7)(e,h().text("Something went wrong"))))})).finally((()=>{f(!1)}))}),[i,a,E,s]);return{graphLoading:u,data:s,graphologyGraph:a,graphTypeUri:t,setGraphTypeUri:n,onDeleteRelation:O}};var w=n(29627);function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const C=(e,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){O(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},S=[25,50,100],P=(e,t,n)=>{const{startObject:r,endObject:a,type:l}=t,{directionalLabel:o}=(0,m.nqN)(t)===n?r:a;return o||(0,m.Lmx)(e,l)},T=(e,t,n)=>{const[a,o]=(0,r.useState)({field:"",order:"asc"}),[i,s]=(0,r.useState)(0),[c,u]=(0,r.useState)(S[0]),[d,f]=(0,r.useState)([]),h=(0,l.useSelector)(p.ZP.selectors.getMetadata),y=(0,r.useMemo)((()=>{const t=(null==e?void 0:e.entities)||[];return(0,g.zipObj)(t.map((0,g.prop)("uri")),t)}),[null==e?void 0:e.entities]),b=(0,r.useMemo)((()=>(0,g.pipe)((0,g.filter)((0,g.either)((0,g.pipe)(m.nqN,(0,g.equals)(t)),(0,g.pipe)(m.j5q,(0,g.equals)(t)))),(0,g.uniqBy)((0,g.prop)("uri")),(0,g.map)((e=>{const n=y[((e,t)=>{const n=(0,m.nqN)(t),r=(0,m.j5q)(t);return n===e?r:n})(t,e)];return{relation:e,entity:n,entityLabel:(0,m.idV)(n.label),entityTypeLabel:(0,m.jFi)(h,n),relationTypeLabel:P(h,e,n.uri)}})))((null==e?void 0:e.relations)||[])),[e,t,y,h]),{searchText:x,onChangeSearchText:v,filters:E,onFilter:w,relationTypesOptions:O,entityTypesOptions:C}=(e=>{const[t,n]=(0,r.useState)(""),[a,o]=(0,r.useState)({entityTypesUris:[],relationTypesUris:[]}),i=(0,l.useSelector)(p.ZP.selectors.getMetadata);return{searchText:t,onChangeSearchText:n,filters:a,onFilter:o,entityTypesOptions:(0,r.useMemo)((()=>(0,g.pipe)((0,g.map)((e=>{let{entity:t}=e;return t.type})),g.uniq,(0,g.map)((0,m.nt9)(i)))(e)),[e,i]),relationTypesOptions:(0,r.useMemo)((()=>(0,g.pipe)((0,g.map)((e=>{let{relation:t}=e;return t.type})),g.uniq,(0,g.map)((0,m.V3K)(i)))(e)),[e,i])}})(b),T=(0,r.useMemo)((()=>(0,g.pipe)((0,g.filter)((e=>{let{entityLabel:t,entity:n,relation:r}=e;const{entityTypesUris:a,relationTypesUris:l}=E;return t.toLowerCase().includes(x)&&(0,g.ifElse)((0,g.prop)("length"),(0,g.includes)(r.type),g.T)(l)&&(0,g.ifElse)((0,g.prop)("length"),(0,g.includes)(n.type),g.T)(a)})),a.field?(0,g.sort)(((e,t)=>m.P6Y.strings.sort(a.order,e[a.field],t[a.field]))):g.identity)(b)),[b,a,x,E]),N=(0,r.useMemo)((()=>T.slice(i*c,i*c+c)),[T,i,c]),j=(0,r.useCallback)((e=>{f((t=>[...t,e]))}),[]),k=(0,r.useCallback)((e=>{f((t=>(0,g.without)([e],t)))}),[]);return(0,r.useEffect)((()=>{s(0),v(""),w({entityTypesUris:[],relationTypesUris:[]})}),[t,n,v,w]),(0,r.useEffect)((()=>{s(0)}),[a,x,E]),{rowsData:N,onSort:o,sorting:a,searchText:x,onChangeSearchText:v,filters:E,onFilter:w,entityTypesOptions:C,relationTypesOptions:O,editingRelations:d,onStartRelationEditing:j,onFinishRelationEditing:k,total:T.length,page:i,rowsPerPage:c,onPageChange:s,onRowsPerPageChange:u}},N=a().createContext({graphLoading:!1,data:null,graphologyGraph:null,selectedEntityLoading:!1,selectedEntity:null,onEntitySelect:()=>{},relationshipTable:{}});N.displayName="GraphStateContext";var j=n(71153),k=n.n(j),R=n(33109),Z=n(62901),I=n(72316),L=n(95544),D=n(79692);const U=(0,D.Z)({comments:{display:"flex",justifyContent:"flex-end",marginTop:"10px"}}),z=(0,r.memo)((e=>{let{className:t}=e;const n=U(),r=(0,l.useSelector)(p.ZP.selectors.getEntity);return a().createElement(R.Z,{className:k()(t,Z.U),entity:r},a().createElement(L.Z,{className:n.comments},a().createElement(I.Z,{uri:r.uri,relatedObjectUris:(0,m.wp9)(m.q7e.ENTITY,{entityUri:r.uri}),objectType:m.q7e.ENTITY})))}));z.displayName="GraphProfileBand";const B=z;var M=n(11821),A=n(28101),H=n(82726);const W=(0,D.Z)({wrapper:{display:"flex",overflow:"hidden",marginLeft:"auto",flexShrink:0}});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 V=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["styles"]);return a().createElement("svg",F({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),a().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 G=n(50548);const q=(0,G.l)(N,(0,g.pick)(["selectedEntity"]),(e=>{let{selectedEntity:t}=e;return a().createElement(R.Z,{entity:t})}));var $=n(15177);const _=(0,D.Z)({noShadowBlock:{boxShadow:"none"},wrapper:{position:"relative",paddingRight:"1px",overflow:"auto"}}),Y=(0,G.l)(N,(0,g.pick)(["selectedEntity","selectedEntityLoading"]),(e=>{let{selectedEntity:t,selectedEntityLoading:n}=e;const r=_();return a().createElement("div",{className:r.wrapper},n&&a().createElement(u.Z,null),a().createElement($.Z,{entity:t,caption:h().text("Entity details"),className:r.noShadowBlock}))}));var K=n(90436),X=n(42011),Q=n(44443),J=n(44938),ee=n(79573);const te="1px solid rgba(0, 0, 0, 0.05)",ne=(0,D.Z)({table:{flex:1,height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},tableBody:{height:"100%",overflow:"auto"},tableBodyWrapper:{height:"100%",overflow:"hidden"},tableRowWrapper:{borderBottom:te},tableRow:{display:"flex",alignItems:"center","& > div":{flexShrink:0}},headRow:{borderBottom:te}});function re(){return re=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},re.apply(this,arguments)}const ae=(0,r.memo)((e=>{let{columnsData:t,sorting:n,onSort:r}=e;const l=ne();return a().createElement("div",{className:k()(l.tableRow,l.headRow)},t.map((e=>{const{id:t,sortable:l,headCellRenderer:o,columnClassName:i}=e,s=o,c=l?{sortField:n.field,sortOrder:n.order,sortHandler:()=>{r({field:t,order:n.field===t?(0,ee.Dh)(n.order):"asc"})}}:{};return a().createElement("div",{key:t,className:i},a().createElement(s,re({headCellData:e},c)))})))})),le=(0,r.forwardRef)(((e,t)=>{let{classes:n,columnsData:l,rowsData:o,sorting:i,onSort:s,getRowKey:c,ExpandedRowRenderer:p,defaultRowHeight:u}=e;const d=ne(),[m,f]=(0,r.useState)({width:0,height:0}),h=(0,r.useCallback)((e=>{let{data:t,index:r}=e;const o=t[r];return a().createElement("div",{className:k()(d.tableRowWrapper,null==n?void 0:n.tableRowWrapper)},a().createElement("div",{className:k()(d.tableRow,null==n?void 0:n.tableRow)},l.map((e=>{let{id:t,rowCellValueRenderer:n,columnClassName:r}=e;const l=n;return a().createElement("div",{key:t,className:r},a().createElement(l,{value:o[t],rowValue:o}))}))),o.expanded&&p&&a().createElement(p,{open:o.expanded,rowValue:o}))}),[l,p]),g=(0,r.useCallback)(((e,t)=>{f({width:e,height:t})}),[]),y=(0,r.useRef)(null);return(0,r.useImperativeHandle)(t,(()=>({resetScrollbarPosition:()=>{var e;null===(e=y.current)||void 0===e||e.scrollTo(0)}}))),a().createElement("div",{className:d.table},a().createElement(ae,{columnsData:l,sorting:i,onSort:s}),a().createElement("div",{className:d.tableBodyWrapper},a().createElement(Q.Z,{handleHeight:!0,handleWidth:!0,onResize:g}),a().createElement("div",{className:d.tableBody},a().createElement(J.Z,{listRef:y,width:m.width,height:m.height,data:o,defaultItemSize:u,itemKey:c,showNotMeasuredItems:!0},h))))})),oe=(0,r.memo)(le);var ie=n(92332),se=n(83088);const ce="rgba(238, 238, 238, 1)",pe=(0,D.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:ce}}});function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const de={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"},me=".collapsibleTableRow:hover &",fe=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){ue(e,t,n[t])}))}return e}({},de,{[me]:{background:`linear-gradient(to right, rgba(238, 238, 238, 0), ${ce} 100%)`}}),he=(0,D.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":de},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":fe},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",[me]:{visibility:"visible",background:ce}},editButton:{marginRight:"7px"},entityAvatar:{width:"20px",height:"20px",marginRight:"8px"}})));function ge(){return ge=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},ge.apply(this,arguments)}function ye(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 xe=e=>{let{className:t,headCellData:n}=e,r=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","headCellData"]);const l=he();return a().createElement("div",{className:k()(l.headCell,t)},a().createElement(ie.default,ge({},r,{headCellData:ye({},n,{label:a().createElement(se.C,{value:n.label},a().createElement("div",{className:l.headLabel},n.label))})})))},ve=(0,r.memo)((e=>{let{value:t="",tooltip:n,onClick:r,className:l}=e;const o=he();return n=n||t,a().createElement(se.C,{value:n},a().createElement("div",{className:k()(o.defaultCell,l,{[o.clickable]:!!r}),onClick:r},t))}));var Ee=n(37573);const we=(0,G.l)(N,(e=>{let{onEntitySelect:t}=e;return{onClick:t}}),(e=>{let{value:t,rowValue:{entity:n},className:r,onClick:l}=e;const o=he(),i=a().createElement(a().Fragment,null,a().createElement(Ee.Z,{entity:n,avatarClassName:o.entityAvatar}),t);return a().createElement(ve,{value:i,tooltip:t,className:k()(o.profileCell,r),onClick:()=>l(n.uri)})})),Oe=(0,r.memo)((e=>{let{open:t,rowValue:n}=e;return t?a().createElement("div",{style:{padding:"6px 16px",fontSize:"13px"}},n.relation.uri):null}));var Ce=n(39475),Se=n(27604),Pe=n(22983),Te=n(22118);const Ne=(0,G.l)(N,(0,g.pick)(["onDeleteRelation"]),(e=>{let{uri:t,open:n,onClose:r,onDeleteRelation:l}=e;return a().createElement(Te.Z,{open:n,title:h().text("Do you want to make a clean break?"),content:h().text("To end this relationship, click Delete Relationship. To keep the connection, click Cancel."),saveCaption:h().text("Delete relationship"),discardCaption:h().text("Cancel"),onDiscard:r,onSave:()=>{l(t),r()}})})),je=(0,r.memo)((e=>{let{uri:t}=e;const[n,l]=(0,r.useState)(!1),o=(0,r.useCallback)((()=>l(!0)),[]),i=(0,r.useCallback)((()=>l(!1)),[]);return a().createElement(a().Fragment,null,a().createElement(Ce.k,{icon:Pe.Z,size:"XXS",tooltipTitle:h().text("Delete"),onClick:o}),a().createElement(Ne,{open:n,onClose:i,uri:t}))}));je.displayName="DeleteRelationButton";const ke=je,Re=(0,G.l)(N,(e=>{let{relationshipTable:{onStartRelationEditing:t}}=e;return{onEdit:t}}),(e=>{let{rowValue:{relation:{uri:t}},className:n,onEdit:r}=e;const l=he();return a().createElement("div",{className:k()(l.controlsCell,n)},a().createElement(Ce.k,{className:l.editButton,icon:Se.Z,size:"XXS",tooltipTitle:h().text("Edit"),onClick:()=>r(t)}),a().createElement(ke,{uri:t}))}));function Ze(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){Ie(e,t,n[t])}))}return e}function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Le=(e,t)=>t[e].relation.uri||`${e}`,De=(0,G.l)(N,(e=>{let{relationshipTable:t}=e;return Ze({},t)}),(e=>{let{rowsData:t,sorting:n,onSort:l,total:o,page:i,rowsPerPage:s,onPageChange:c,onRowsPerPageChange:p,editingRelations:u}=e;const d=pe(),m=(0,r.useMemo)((()=>[{id:"entityLabel",label:h().text("Profile"),headCellRenderer:xe,rowCellValueRenderer:we,sortable:!0,columnClassName:d.profileColumn},{id:"relationTypeLabel",label:h().text("Relationship type"),headCellRenderer:xe,rowCellValueRenderer:ve,sortable:!0,columnClassName:d.relationshipTypeColumn},{id:"entityTypeLabel",label:h().text("Entity Type"),headCellRenderer:xe,rowCellValueRenderer:ve,sortable:!0,columnClassName:d.entityTypeColumn},{id:"controls",label:"",headCellRenderer:xe,rowCellValueRenderer:Re}]),[d]),f=(0,r.useRef)(null);(0,r.useEffect)((()=>{var e;null===(e=f.current)||void 0===e||e.resetScrollbarPosition()}),[t]);const g=(0,r.useMemo)((()=>t.map((e=>{var t;return null!=u&&u.includes(null==e||null===(t=e.relation)||void 0===t?void 0:t.uri)?Ze({},e,{expanded:!0}):e}))),[t,u]),y=(0,r.useMemo)((()=>({tableRow:k()(d.row,"collapsibleTableRow")})),[d]);return a().createElement("div",{className:d.tableWithPagination},a().createElement("div",{className:d.tableContainer},a().createElement(oe,{ref:f,columnsData:m,rowsData:g,sorting:n,onSort:l,getRowKey:Le,ExpandedRowRenderer:Oe,defaultRowHeight:28,classes:y})),o>S[0]&&a().createElement(X.Z,{count:o,rowsPerPageOptions:S,rowsPerPage:s,onChangeRowsPerPage:p,page:i,onChangePage:c,basicTableRef:f}))}));var Ue=n(36444),ze=n(61837),Be=n(33662);const Me=(0,D.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}}}))),Ae=(0,G.l)(N,(0,g.pipe)((0,g.prop)("relationshipTable"),(0,g.pick)(["searchText","onChangeSearchText"])),(e=>{let{searchText:t,onChangeSearchText:n}=e;const r=Me();return a().createElement(Be.Z,{fullWidth:!0,height:40,autofocus:!1,value:t,onSearch:n,placeholder:h().text("Search profiles"),classes:{input:r.input}})}));var He=n(92934),We=n(68977),Fe=n(77277),Ve=n(8629);const Ge=(0,D.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"}}))),qe=(0,G.l)(N,(0,g.pipe)((0,g.prop)("relationshipTable"),(0,g.pick)(["onFilter","filters","entityTypesOptions","relationTypesOptions"])),(e=>{let{open:t,onClose:n,filters:l,onFilter:o,entityTypesOptions:i,relationTypesOptions:s}=e;const c=Ge(),[p,u]=(0,r.useState)([]),[d,m]=(0,r.useState)([]),f=()=>{u(l.entityTypesUris),m(l.relationTypesUris),n()};return(0,r.useEffect)((()=>{u(l.entityTypesUris),m(l.relationTypesUris)}),[l.entityTypesUris,l.relationTypesUris]),a().createElement(Ve.Z,{classes:{paper:c.dialogPaper},onClose:f,open:t},a().createElement(K.Z,{className:c.title},h().text("Filter")),a().createElement(He.Q,{classes:{root:c.entityTypesSelector},entityTypes:i,selectedEntityTypes:p,enableEmptyValueUnderline:!0,onChange:u}),a().createElement(We.U,{classes:{root:c.relationTypesSelector},relationTypes:s,selectedRelationTypes:d,enableEmptyValueUnderline:!0,onChange:m}),a().createElement("div",{className:c.footer},a().createElement(Fe.Z,{className:c.clearAllButton,onClick:()=>{u([]),m([])}},h().text("Clear All")),a().createElement(Fe.Z,{className:c.cancelButton,onClick:f},h().text("Cancel")),a().createElement(Fe.Z,{onClick:()=>{o({entityTypesUris:p,relationTypesUris:d}),n()},color:"primary"},h().text("Apply"))))})),$e=(0,D.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}}))),_e=(0,G.l)(N,(0,g.pipe)((0,g.prop)("relationshipTable"),(0,g.pick)(["filters"])),(e=>{let{filters:t}=e;const n=$e(),[l,o]=(0,r.useState)(!1),{entityTypesUris:i,relationTypesUris:s}=t,c=i.length||s.length;return a().createElement("div",{className:n.wrapper},a().createElement(Ae,null),a().createElement(ze.Z,{className:n.iconButton,onClick:()=>o(!0)},a().createElement(Ue.Z,{className:c?n.activeFiltersIcon:n.inactiveFiltersIcon})),a().createElement(qe,{open:l,onClose:()=>o(!1)}))})),Ye=(0,D.Z)({caption:{marginLeft:"16px",marginTop:"12px",marginBottom:"14px",fontSize:"16px",lineHeight:"24px"},wrapper:{flex:1,display:"flex",flexDirection:"column",height:0}}),Ke=()=>{const e=Ye();return a().createElement("div",{className:e.wrapper},a().createElement(K.Z,{className:e.caption,variant:"subtitle1"},h().text("Relationships")),a().createElement(_e,null),a().createElement(De,null))};let Xe;!function(e){e[e.Relationship=0]="Relationship",e[e.EntityDetails=1]="EntityDetails"}(Xe||(Xe={}));const Qe=(0,r.memo)((()=>{var e;const t=W(),[n,l]=(0,r.useState)(null),o=(0,r.useCallback)((e=>{l((t=>t===e?null:e))}),[]),i=null!==n,s=(0,r.useMemo)((()=>[{buttonProps:{id:Xe.Relationship,icon:V,tooltipTitle:h().text("Relationship")},content:a().createElement(Ke,null)},{buttonProps:{id:Xe.EntityDetails,icon:H.Z,tooltipTitle:h().text("Entity Details")},content:a().createElement(Y,null)}]),[]);return a().createElement("div",{className:t.wrapper},a().createElement(M.h,{open:i,width:480},a().createElement(q,null),null===(e=s[n])||void 0===e?void 0:e.content),a().createElement(A.G,{buttonsProps:(0,g.pluck)("buttonProps",s),onButtonClick:o,activeIndexId:n}))}));Qe.displayName="GraphRightSidePanel";const Je=Qe;var et=n(46339);const tt=e=>{let{children:t}=e;return a().createElement(et.C6,{graph:d.MultiGraph,style:{background:"transparent"}},t)};var nt=n(28833),rt=n.n(nt),at=n(3660),lt=n.n(at),ot=n(28301),it=n.n(ot),st=n(31181),ct=n(30284);const pt=.6,ut=(e,t,n,r,a)=>{if(t.loop){const{size:r,color:a}=t,l=n.x,o=n.y,i=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)}}(l,o,.6*i);if(e.strokeStyle=a,e.lineWidth=r,"arrow"===t.type){const{aX:t,aY:n,vX:r,vY:c}=((e,t,n,r)=>{const a=Math.max(.5*r,5),l=Math.sqrt(Math.pow(t-e.x1,2)+Math.pow(n-e.y1,2));return{aX:e.x1+(t-e.x1)*(l-a-r)/l,aY:e.y1+(n-e.y1)*(l-a-r)/l,vX:(t-e.x1)*a/l,vY:(n-e.y1)*a/l}})(s,l,o,i);e.beginPath(),e.moveTo(l,o),e.bezierCurveTo(s.x2,s.y2,s.x1,s.y1,t,n),e.stroke(),e.fillStyle=a,e.beginPath(),e.moveTo(t+r,n+c),e.lineTo(t+c*pt,n-r*pt),e.lineTo(t-c*pt,n+r*pt),e.lineTo(t+r,n+c),e.closePath(),e.fill()}else e.beginPath(),e.moveTo(l,o),e.bezierCurveTo(s.x1,s.y1,s.x2,s.y2,l,o),e.stroke()}(0,ct.default)(e,t,n,r,a)};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){mt(e,t,n[t])}))}return e}function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ft=e=>{let{data:t,graph:n,syncLayout:a,workerLayout:o,layoutSettings:i,selectedNode:s,onNodeClick:c}=e;const u=(0,et.Ys)(),d=(0,et.sG)(),m=(0,et.$j)(),f=(0,et.eP)(),h=(0,l.useSelector)(p.ZP.selectors.getEntity),[g,x]=(0,r.useState)({hoverNode:void 0,hoverNeighbours:void 0}),[v,E]=(0,r.useState)(null),[w,O]=(0,r.useState)({});(0,r.useEffect)((()=>{u.getCamera().setState({ratio:1.2})}),[n,u]),(0,r.useEffect)((()=>{if(E((0,b.toUndirected)(n)),d(n),a){const e=a(u.getGraph(),i);(0,st.animateNodes)(u.getGraph(),e,{duration:1e3})}if(o){const e=new o(u.getGraph(),i);e.start();const t=setTimeout((()=>{e.stop()}),5e3);return()=>{clearTimeout(t),e.kill()}}}),[t,n,a,o,u,i,d]);const C=(0,r.useCallback)((e=>{const t=u.getGraph(),n=null==h?void 0:h.uri;if(t&&v&&n&&e&&n!==e){const r=(0,y.Ar)(v,n,e),a=((e,t)=>{const n=[];return t&&t.reduce(((t,r)=>(n.push(e.findEdge(t,r,(e=>!!e))||e.findEdge(r,t,(e=>!!e))),r))),n})(t,r);return{edges:a,nodes:r}}return{}}),[u,null==h?void 0:h.uri,v]);(0,r.useEffect)((()=>{O(C(s))}),[s,C]),(0,r.useEffect)((()=>{m({enterNode:e=>{let{node:t}=e;const n=u.getGraph();x({hoverNode:t,hoverNeighbours:n.neighbors(t)})},leaveNode:()=>{x({hoverNode:void 0,hoverNeighbours:void 0})},clickNode:e=>{let{node:t}=e;c(t)}})}),[u,m,c]),(0,r.useEffect)((()=>{f({nodeReducer:(e,t)=>{const n=dt({},t),r=(w.nodes||[]).includes(e);return!g.hoverNeighbours||g.hoverNeighbours.includes(e)||g.hoverNode===e||r||(n.label="",n.color="#f6f6f6"),e===s&&(n.color="red"),e===(null==h?void 0:h.uri)&&(n.color="green"),n},edgeReducer:(e,t)=>{const n=u.getGraph(),r=dt({},t,{hidden:!1}),a=(w.edges||[]).includes(e);return!g.hoverNode||n.hasExtremity(e,g.hoverNode)||a||(r.hidden=!0),a&&(r.color="#0072CE",r.size=4),r},renderEdgeLabels:!0,edgeLabelRenderer:ut})}),[u,f,g,s,w,null==h?void 0:h.uri])};function ht(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){gt(e,t,n[t])}))}return e}function gt(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=e=>{let{data:t,graph:n,selectedNode:a,onNodeClick:l}=e;const o=(0,r.useMemo)((()=>(rt().assign(n),{settings:ht({},lt().inferSettings(n),{gravity:1})})),[n]);return ft({workerLayout:it(),layoutSettings:o,data:t,graph:n,selectedNode:a,onNodeClick:l}),null};var bt=n(36039);let xt;!function(e){e.SIMPLE_NETWORK="Simple network",e.VERTICAL_TB="Vertical hierarchy",e.HORIZONTAL_LR="Horizontal hierarchy"}(xt||(xt={}));const vt=(e,t,n,r)=>{const a=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)||a.add(r.to)}))})),a.size&&t.push(Array.from(a)),((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})(a,r,n)?vt(a,t,n,r):t},Et=(e,t,n,r)=>{if(e.length<10&&(t[r]=[...e]),e.length>10){const a=e.slice(10),l=e.slice(0,10);t[r]=l,t[r+1]=n[r+1]?[...n[r+1],...a]:a}if(t[r+1]||n[r+1]){const e=t[++r]||n[r];return Et(e,t,n,r)}return t};function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ot=e=>{let{data:t,graph:n,selectedNode:a,layout:l,onNodeClick:o}=e;const i=(0,r.useCallback)((e=>{const t=e.copy(),n=(e=>{switch(e){case xt.VERTICAL_TB:return 180;case xt.HORIZONTAL_LR:return 270}})(l),r=((e,t)=>{const n=e.nodes,r=e.edges.filter((e=>e.from!==e.to)),a=((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),l=vt(a,[],new Set,r);return Et(l[0],[],l,0)})((e=>({nodes:e.nodes().map((e=>({id:e,name:""}))),edges:e.mapEdges(((e,t,n,r)=>({from:n,to:r,key:e})))}))(t),a),o=(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,(i=r[e].length)===(c=o)?5*s:1===i?5*(c-1)/2:5*(c-1)/(i+1)*(s+1))),t.setNodeAttribute(r[e][n],"y",10*e);var i,s,c;return bt.rotation.assign(t,n,{degrees:!0}),t.reduceNodes(((e,t,n)=>{let{x:r,y:a}=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){wt(e,t,n[t])}))}return e}({},e,{[t]:{x:r,y:a}})}),{})}),[l,a]);return ft({syncLayout:i,data:t,graph:n,selectedNode:a,onNodeClick:o}),null};var Ct=n(84425);const St=(0,D.Z)({graphTypeSelector:{minWidth:"200px",backgroundColor:"#FAFAFA",opacity:1,height:"40px"},filledInputRoot:{borderRadius:"4px"},valueContainer:{width:"auto",marginLeft:"16px"}}),Pt=(0,G.l)(N,(e=>{let{graphTypeUri:t,setGraphTypeUri:n}=e;return{setGraphTypeUri:n,graphTypeUri:t}}),(e=>{let{graphTypeUri:t,setGraphTypeUri:n}=e;const o=St(),i=(0,l.useSelector)(p.ZP.selectors.getMetadata),s=(0,l.useSelector)(p.ZP.selectors.getEntity),c=(0,r.useMemo)((()=>[{label:h().text("All"),value:null},...(0,m.mmY)(i,s.type).map((e=>{let{uri:t,label:n}=e;return{value:t,label:n}}))]),[s,i]),u=(0,r.useMemo)((()=>c.find((e=>e.value===t))),[c,t]);return a().createElement(Ct.Z,{classes:{valueContainer:o.valueContainer},className:o.graphTypeSelector,height:42,label:h().text("Graph type"),value:u,options:c,onChange:e=>n(e.value),TextFieldProps:{InputProps:{disableUnderline:!0,classes:{root:o.filledInputRoot}}}})})),Tt=(0,D.Z)({graphLayoutSelector:{minWidth:"202px",backgroundColor:"#FAFAFA",opacity:1,marginLeft:"10px"},filledInputRoot:{borderRadius:"4px",height:"42px"}}),Nt=(0,r.memo)((e=>{let{value:t,onChangeHandler:n}=e;const r=Tt(),l=[{label:h().text("Simple network"),value:xt.SIMPLE_NETWORK},{label:h().text("Vertical hierarchy"),value:xt.VERTICAL_TB},{label:h().text("Horizontal hierarchy"),value:xt.HORIZONTAL_LR}];return a().createElement(Ct.Z,{className:r.graphLayoutSelector,label:h().text("Graph layout"),value:l.find((0,g.propEq)("value",t)),options:l,onChange:e=>n(e.value),TextFieldProps:{InputProps:{disableUnderline:!0,classes:{root:r.filledInputRoot}}}})})),jt=(0,D.Z)({wrapper:{height:"100%",position:"relative"},selectors:{display:"flex",position:"absolute",top:"12px",right:"16px",zIndex:2},graph:{height:"calc(100% - 5px)"}});function kt(){return kt=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},kt.apply(this,arguments)}const Rt=(0,G.l)(N,(e=>{let{data:t,graphologyGraph:n,selectedEntity:r,onEntitySelect:a}=e;return{data:t,graph:n,selectedNode:null==r?void 0:r.uri,onNodeSelect:a}}),(e=>{let{data:t,graph:n,selectedNode:l,onNodeSelect:o}=e;const[i,s]=(0,r.useState)(xt.SIMPLE_NETWORK),c=jt(),p={data:t,graph:n,selectedNode:l,onNodeClick:o};return a().createElement("div",{className:c.wrapper},a().createElement("div",{className:c.selectors},a().createElement(Pt,null),a().createElement(Nt,{value:i,onChangeHandler:s})),a().createElement("div",{className:c.graph},n&&a().createElement(tt,null,i===xt.SIMPLE_NETWORK?a().createElement(yt,p):a().createElement(Ot,kt({},p,{layout:i})))))})),Zt=(0,D.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"}}))),It=(0,r.memo)((()=>{const e=Zt(),t=(0,l.useSelector)(p.ZP.selectors.getEntity),n=(e=>{const{graphLoading:t,data:n,graphologyGraph:a,graphTypeUri:o,setGraphTypeUri:i,onDeleteRelation:s}=E(e),{selectedEntity:c,onEntitySelect:u,selectedEntityLoading:d}=((e,t)=>{const n=(0,w._)(),a=(0,l.useDispatch)(),[o,i]=(0,r.useState)(null),s=(0,r.useRef)({}),[c,u]=(0,r.useState)(!1),d=(0,r.useCallback)((e=>{const t=s.current[e];return t?Promise.resolve(t):(0,m.HvW)(e).then((e=>(s.current=C(s.current,e),e)))}),[]),f=(0,r.useCallback)((e=>{var r;const l=null==t||null===(r=t.entities)||void 0===r?void 0:r.find((0,g.propEq)("uri",e));l&&i(l),u(!0),n(d(e)).then(i).catch((e=>{a(p.ui.actions.errorSet((0,m.xU7)(e,h().text("Something went wrong"))))})).finally((()=>{u(!1)}))}),[a,t,n,d]);return(0,r.useEffect)((()=>{null!=e&&e.uri&&(s.current=C({},e),f(e.uri))}),[null==e?void 0:e.uri]),(0,r.useEffect)((()=>{const n=null==t?void 0:t.entities.find((e=>(null==o?void 0:o.uri)===e.uri));n||(null!=e&&e.uri?(s.current=C({},e),f(e.uri)):(s.current={},i(null)))}),[t]),{selectedEntityLoading:c,selectedEntity:o,onEntitySelect:f}})(e,n);return{graphLoading:t,data:n,graphologyGraph:a,onDeleteRelation:s,selectedEntity:c,onEntitySelect:u,selectedEntityLoading:d,graphTypeUri:o,setGraphTypeUri:i,relationshipTable:T(n,null==c?void 0:c.uri,o)}})(t),{graphLoading:o}=n;return a().createElement(N.Provider,{value:n},a().createElement("div",{className:e.perspectiveView},o&&a().createElement(u.Z,null),(null==t?void 0:t.uri)&&a().createElement("div",{className:e.graphContainer},a().createElement("div",{className:e.graphWrapper},a().createElement(B,null),a().createElement(Rt,null)),a().createElement(Je,null))))}));It.displayName="GraphPerspectiveView";const Lt=It,Dt=(0,o.createGenerateClassName)({productionPrefix:"graph",disableGlobal:!0}),Ut=e=>{let{store:t}=e;return a().createElement(l.Provider,{store:t},a().createElement(o.StylesProvider,{generateClassName:Dt},a().createElement(s.MuiPickersUtilsProvider,{utils:c.Z},a().createElement(Lt,null),a().createElement(i.Z,{showErrorFromStore:!0}))))}}}]);
|