@reltio/remotes 1.4.1002 → 1.4.1007

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/7874.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[7874],{50548:(e,t,r)=>{r.d(t,{l:()=>l});var n=r(24328),o=r.n(n);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}const l=(e,t,r)=>{if(e&&t){const l=(0,n.memo)(r);return r=>o().createElement(e.Consumer,null,(e=>o().createElement(l,a({},r,t(e,r)))))}return r}},78223:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(24328),o=r.n(n),a=r(80030),l=r(79692),i=r(13980),c=r.n(i);const s={tooltipTitle:c().node,tooltipPlacement:c().string,showForDisabled:c().bool};const p=(0,l.Z)((e=>({tooltip:e.tooltip,wrapper:{lineHeight:0}}))),u=e=>{const t=(0,n.forwardRef)(((t,r)=>{let{tooltipTitle:n,tooltipPlacement:l,showForDisabled:i=!1}=t,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,["tooltipTitle","tooltipPlacement","showForDisabled"]);const s=p();return n?o().createElement(a.ZP,{ref:r,title:n,placement:l||"bottom",disableFocusListener:!0,disableTouchListener:!0,classes:{tooltip:s.tooltip}},(t=>t?o().createElement("span",{className:s.wrapper},o().createElement(e,c)):o().createElement(e,c))(i)):o().createElement(e,c)}));return t.displayName="WithTooltip",t.propTypes=s,t}},97333:(e,t,r)=>{r.d(t,{Z:()=>v});var n=r(24328),o=r.n(n),a=r(52730),l=r(13980),i=r.n(l),c=r(71153),s=r.n(c),p=r(17440),u=r(87918),d=r.n(u),f=r(8560),m=r(74176),h=r(89810);const b=(0,r(79692).Z)((()=>({errorBlock:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",minHeight:"58px",zIndex:1e4}})));function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(this,arguments)}const y=e=>{const t=b(),r=(0,a.useSelector)(h.ZP.selectors.getAutoCloseInterval),l=(0,a.useSelector)(h.ZP.selectors.getUiError),i=(0,a.useDispatch)();return(0,n.useEffect)((()=>{l&&e.showErrorFromStore&&(y.addError({title:d().text("Error"),message:l}),i(h.ui.actions.errorSet(null)))}),[i,l,e.showErrorFromStore]),o().createElement(f.Z,{container:document.body},o().createElement(m.ZP,g({classes:{errorBlock:s()(t.errorBlock,(0,p.path)(["classes","errorBlock"],e))},autoCloseInterval:r},e)))};y.propTypes={showErrorFromStore:i().bool},y.addError=m.ZP.addError;const v=y},7421:(e,t,r)=>{r.d(t,{Z:()=>h});var n=r(24328),o=r.n(n),a=r(35379),l=r(8560),i=r(71153),c=r.n(i);const s=(0,r(79692).Z)({backdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:10},popper:{zIndex:1300}});var p=r(79573);const u=e=>{let{anchorEl:t,leftBackdropRef:r,rightBackdropRef:n,topBackdropRef:o,bottomBackdropRef:a,rafIdRef:l,lastResizeTimestamp:i=0}=e;if(t){if(Date.now()-i>100&&o.current&&r.current&&n.current&&a.current){const e=t.getBoundingClientRect();o.current.style.top="0",o.current.style.left="0",o.current.style.right="0",o.current.style.height=e.top+"px",r.current.style.top="0",r.current.style.left="0",r.current.style.width=e.left+"px",r.current.style.bottom="0",n.current.style.top="0",n.current.style.left=e.right+"px",n.current.style.right="0",n.current.style.bottom="0",a.current.style.top=e.bottom+"px",a.current.style.left="0",a.current.style.right="0",a.current.style.bottom="0",i=Date.now()}l.current=requestAnimationFrame((()=>u({anchorEl:t,leftBackdropRef:r,rightBackdropRef:n,topBackdropRef:o,bottomBackdropRef:a,rafIdRef:l,lastResizeTimestamp:i})))}};function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const m=(0,n.forwardRef)(((e,t)=>{let{modifiers:r,modal:i=!0,onClose:m,anchorEl:h,open:b,className:g}=e,y=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["modifiers","modal","onClose","anchorEl","open","className"]);const v=s(),x=(0,n.useRef)(),E=(0,n.useRef)(),O=(0,n.useRef)(),w=(0,n.useRef)(),S=(0,n.useRef)();(0,n.useEffect)((()=>{if(b&&i)return u({anchorEl:h,leftBackdropRef:x,rightBackdropRef:E,topBackdropRef:O,bottomBackdropRef:w,rafIdRef:S}),()=>cancelAnimationFrame(S.current)}),[h,b,i]);const j=(0,n.useMemo)((()=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){f(e,t,r[t])}))}return e}({},r,(0,p.w1)()?{computeStyle:{gpuAcceleration:!1}}:{})),[r]);return o().createElement(o().Fragment,null,i&&b&&o().createElement(l.Z,{container:document.body},o().createElement("div",{ref:O,className:v.backdrop,onClick:m}),o().createElement("div",{ref:E,className:v.backdrop,onClick:m}),o().createElement("div",{ref:w,className:v.backdrop,onClick:m}),o().createElement("div",{ref:x,className:v.backdrop,onClick:m})),o().createElement(a.Z,d({open:b,anchorEl:h},y,{modifiers:j,className:c()(g,v.popper),ref:t})))}));m.displayName="Popper",m.defaultProps={modifiers:{}};const h=m},28101:(e,t,r)=>{r.d(t,{G:()=>d});var n=r(24328),o=r.n(n),a=r(71153),l=r.n(a),i=r(39475),c=r(79692),s=r(41128);const p=(0,c.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,s.U1)(e.palette.primary.main,.12),"&: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,"&$active":{color:e.palette.primary.main}}})));function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}const d=e=>{let{buttonsProps:t,activeIndexId:r,className:n,onButtonClick:a}=e;const c=p();return o().createElement("div",{className:l()(c.container,n)},t.map((e=>{let{id:t}=e,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["id"]);return o().createElement(i.k,u({},n,{size:"S",key:t,className:l()({[c.active]:r===t},c.buttonWrapper),onClick:()=>a(t),"data-reltio-id":`reltio-profile-right-side-button-${t}`}))})))}},11821:(e,t,r)=>{r.d(t,{h:()=>l});var n=r(24328),o=r.n(n);const a=(0,r(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})}}))),l=e=>{let{width:t,open:r,children:n}=e;const l=a();return o().createElement("div",{className:l.contentWrapper,style:{width:`${r?t:0}px`}},r&&o().createElement(o().Fragment,null,n))}},98273:(e,t,r)=>{r.d(t,{P:()=>d});var n=r(24328),o=r.n(n),a=r(87685);const l=(0,r(79692).Z)({container:{display:"flex",flexShrink:0,height:"63px",alignItems:"center",borderBottom:"1px solid rgba(0,0,0,0.12)"},icon:{margin:"0 12px"},divider:{backgroundColor:"rgba(0,0,0,0.12)",margin:"19px 17px"},secondTitle:{fontSize:"14px"}});var i=r(90436),c=r(85256),s=r(87918),p=r.n(s),u=r(39475);const d=e=>{let{onClose:t,mainTitle:r,secondTitle:n,content:s,rightContent:d}=e;const f=l();return o().createElement("div",{className:f.container},o().createElement(u.k,{size:"L",icon:a.default,onClick:t,className:f.icon,tooltipTitle:p().text("Close")}),s||o().createElement(o().Fragment,null,o().createElement(i.Z,{variant:"h6"},r),n&&o().createElement(o().Fragment,null,o().createElement(c.Z,{orientation:"vertical",flexItem:!0,className:f.divider}),o().createElement(i.Z,{variant:"body1",color:"textSecondary",className:f.secondTitle},n)),d))}},40435:(e,t,r)=>{r.d(t,{Z:()=>p});var n=r(24328),o=r.n(n),a=r(61837),l=r(15459);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const c={XXS:"XXS",XS:"XS",S:"S",M:"M",MPlus:"MPlus",L:"L",XL:"XL"},s=(0,n.forwardRef)(((e,t)=>{const{classes:r,className:n,onClick:l,icon:s,size:p=c.XS,iconClassName:u}=e,d=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["classes","className","onClick","icon","size","iconClassName"]);return o().createElement(a.Z,i({ref:t,classes:{root:`${r[`root${p}`]} ${r.rootAll}`,disabled:r.disabled},onClick:l,className:n},d),s&&o().createElement(s,{classes:{root:r[`icon${p}`]},className:u}))}));s.displayName="SmallIconButton";const p=(0,l.Z)((()=>({rootAll:{padding:"0"},rootXXS:{height:"16px",width:"16px"},iconXXS:{fontSize:"16px"},rootXS:{height:"20px",width:"20px"},iconXS:{fontSize:"20px"},rootS:{height:"24px",width:"24px"},iconS:{fontSize:"24px"},rootM:{height:"30px",width:"30px"},rootMPlus:{height:"36px",width:"36px"},rootL:{height:"40px",width:"40px"},rootXL:{height:"48px",width:"48px"},disabled:{fillOpacity:.5}})))(s)},39475:(e,t,r)=>{r.d(t,{k:()=>a});var n=r(78223),o=r(40435);const a=(0,n.Z)(o.Z)},79573:(e,t,r)=>{r.d(t,{NA:()=>i,IR:()=>c,UW:()=>s,ZT:()=>p,Vd:()=>u,ze:()=>d,w1:()=>f,zD:()=>m,Dh:()=>h,Rx:()=>b});var n=r(17440),o=r(71153),a=r.n(o);function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const i=e=>e.target.value,c=e=>e.target.checked,s=e=>e.stopPropagation(),p=()=>{},u=()=>null,d=(e,t)=>(0,n.union)(Object.keys(e),Object.keys(t)).reduce(((r,n)=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){l(e,t,r[t])}))}return e}({},r,{[n]:a()(e[n],t[n])})),{}),f=()=>(0,n.compose)((0,n.either)((0,n.includes)("MSIE "),(0,n.includes)("Trident/")),(0,n.path)(["navigator","userAgent"]))(window),m=e=>t=>({type:e,payload:t}),h=e=>"asc"===e?"desc":"asc",b=e=>{try{return JSON.parse(e)}catch{return}}},55962:(e,t,r)=>{r.d(t,{D:()=>o});var n=r(24328);const o=(e,t)=>{const r=(0,n.useRef)(!1);(0,n.useEffect)((()=>{r.current?e():r.current=!0}),t)}},29627:(e,t,r)=>{r.d(t,{_:()=>l});var n=r(24328),o=r(79573);const a=new Promise((()=>{})),l=function(){let{cancelPrevious:e=!0,cancelOnUnmount:t=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(0,n.useRef)(o.ZT),l=()=>r.current();return(0,n.useEffect)((()=>()=>{t&&l()}),[]),(0,n.useCallback)((t=>(e&&l(),new Promise(((e,n)=>{r.current=()=>n("canceled"),t.then(e,n)})).catch((function(e){if("canceled"===e)return a;throw e})))),[])}},67186:(e,t,r)=>{r.r(t),r.d(t,{default:()=>te});var n=r(24328),o=r.n(n),a=r(52730),l=r(36138),i=r(97333),c=r(22664),s=r(52844),p=r(89810),u=r(87378),d=r(79692);const f=(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"}})));var m=r(79779),h=r(87918),b=r.n(h);const g=o().createContext({loading:!1,data:null});g.displayName="GraphStateContext";var y=r(71153),v=r.n(y),x=r(33109),E=r(62901),O=r(72316),w=r(95544);const S=(0,d.Z)({comments:{display:"flex",justifyContent:"flex-end",marginTop:"10px"}}),j=(0,n.memo)((e=>{let{className:t}=e;const r=S(),n=(0,a.useSelector)(p.ZP.selectors.getEntity),l=(0,a.useSelector)(p.ZP.selectors.getRangeColors);return o().createElement(x.Z,{className:v()(t,E.U),entity:n,rangeColorsConfig:l},o().createElement(w.Z,{className:r.comments},o().createElement(O.Z,{uri:n.uri,relatedObjectUris:(0,m.wp9)(m.q7e.ENTITY,{entityUri:n.uri}),objectType:m.q7e.ENTITY})))}));j.displayName="GraphProfileBand";const k=j;var P=r(17440),N=r(11821),R=r(98273),C=r(28101),Z=r(82726);const I=(0,d.Z)({wrapper:{display:"flex",overflow:"hidden",marginLeft:"auto",flexShrink:0}});function T(){return T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},T.apply(this,arguments)}const z=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["styles"]);return o().createElement("svg",T({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7v2h2V7H6zm0 4v2h2v-2H6zm0 4v2h2v-2H6zm4-8v2h8V7h-8zm10-2v5.02a6.52 6.52 0 012 2.01V3H2v18h11.028a6.52 6.52 0 01-2.009-2H4V5h16zm-9.503 8a6.497 6.497 0 011.31-2H10v2h.497zM10 15.5c0-.168.006-.335.019-.5H10v.5zm0 0c0 .516.06 1.018.173 1.5H10v-1.5zm10.3 2.39L23.42 21 22 22.42l-3.12-3.12c-.69.44-1.51.7-2.39.7-2.48 0-4.49-2.01-4.49-4.5s2.01-4.5 4.5-4.5 4.5 2.01 4.5 4.5c0 .88-.26 1.69-.7 2.39zm-3.8.11a2.5 2.5 0 000-5 2.5 2.5 0 000 5z",fill:"currentColor"}))};function D(){return D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},D.apply(this,arguments)}let B;!function(e){e[e.Relationship=0]="Relationship",e[e.EntityDetails=1]="EntityDetails"}(B||(B={}));const F=(0,n.memo)((()=>{var e,t;const r=I(),[a,l]=(0,n.useState)(null),i=(0,n.useCallback)((e=>{l((t=>t===e?null:e))}),[]),c=(0,n.useCallback)((()=>{l(null)}),[]),s=null!==a,p=(0,n.useMemo)((()=>[{buttonProps:{id:B.Relationship,icon:z,tooltipTitle:b().text("Relationship")},content:"Relationship",headerProps:{mainTitle:b().text("Relationship")}},{buttonProps:{id:B.EntityDetails,icon:Z.Z,tooltipTitle:b().text("Entity Details")},content:"Entity Details",headerProps:{mainTitle:b().text("Entity Details")}}]),[]);return o().createElement("div",{className:r.wrapper},o().createElement(N.h,{open:s,width:480},o().createElement(R.P,D({},null===(e=p[a])||void 0===e?void 0:e.headerProps,{onClose:c})),null===(t=p[a])||void 0===t?void 0:t.content),o().createElement(C.G,{buttonsProps:(0,P.pluck)("buttonProps",p),onButtonClick:i,activeIndexId:a}))}));F.displayName="GraphRightSidePanel";const X=F;var H=r(50548);var U=r(4986);const L=e=>{let{children:t}=e;return o().createElement("div",{style:{height:"calc(100% - 5px)"}},o().createElement(U.SigmaContainer,{style:{background:"transparent"}},t))};var M=r(98996),A=r.n(M),G=r(28833),$=r.n(G),V=r(3660),W=r.n(V);function Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){_(e,t,r[t])}))}return e}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const q=e=>{let{data:t}=e;const r=(0,U.useSigma)(),o=(0,U.useRegisterEvents)(),a=(0,U.useLoadGraph)(),l=(0,U.useSetSettings)(),[i,c]=(0,n.useState)({hoverNode:void 0,hoverNeighbours:void 0});return(0,n.useEffect)((()=>{const e=new(A());t.nodes.forEach((t=>{e.addNode(t.id,{label:t.name,size:21,color:"#0072CE"})})),t.edges.forEach((t=>{e.addEdge(t.from,t.to,{size:5})})),$().assign(e);const r=W().inferSettings(e);W().assign(e,{settings:r,iterations:600}),a(e)}),[a,t]),(0,n.useEffect)((()=>{o({enterNode:e=>{let{node:r}=e;c({hoverNode:r,hoverNeighbours:t.edges.filter((e=>e.from===r||e.to===r)).map((e=>{var n,o;const a=e.from===r?e.to:e.from;return null!==(n=null===(o=t.nodes.find((e=>e.id===a)))||void 0===o?void 0:o.id)&&void 0!==n?n:""}))})},leaveNode:()=>{c({hoverNode:void 0,hoverNeighbours:void 0})}})}),[r,o,t]),(0,n.useEffect)((()=>{l({nodeReducer:(e,t)=>{const r=Y({},t);return i.hoverNeighbours&&!i.hoverNeighbours.includes(e)&&i.hoverNode!==e&&(r.label="",r.color="#f6f6f6"),r},edgeReducer:(e,t)=>{const n=r.getGraph(),o=Y({},t,{hidden:!1});return i.hoverNode&&!n.hasExtremity(e,i.hoverNode)&&(o.hidden=!0),o}})}),[r,l,i]),null},J=(0,H.l)(g,(0,P.pick)(["data"]),(e=>{let{data:t}=e;const r=(0,n.useMemo)((()=>t&&(e=>{const t=new Set,r=new Set;e.entities.forEach((e=>t.add(e.uri))),e.relations.filter((e=>t.has(e.startObject.objectURI)&&t.has(e.endObject.objectURI))).forEach((e=>{r.has(`${e.endObject.objectURI}--${e.startObject.objectURI}`)||r.add(`${e.startObject.objectURI}--${e.endObject.objectURI}--${e.direction}`)}));const n=e.entities.map((e=>({id:e.uri,name:e.label}))),o=[];return r.forEach((e=>{const t=e.split("--");o.push({from:t[0],to:t[1]})})),{nodes:n,edges:o}})(t)),[t]);return r&&o().createElement(L,null,o().createElement(q,{data:r}))})),K=(0,n.memo)((()=>{const e=(0,a.useDispatch)();(0,n.useEffect)((()=>{e(p.N5.entity.actions.entityLoaded({uri:"entities/1IPdCSY1",type:"configuration/entityTypes/HCP"}))}),[e]);const t=f(),r=(0,a.useSelector)(p.ZP.selectors.getEntity),l=(e=>{const t=(0,a.useDispatch)(),[r,o]=(0,n.useState)(null),[l,i]=(0,n.useState)(!1),c=null==e?void 0:e.uri,s=(0,m.biM)(e);return(0,n.useEffect)((()=>(!c||(0,m.ZiX)(c)||s||(i(!0),(0,m.ZYI)({uri:c,deep:2,limitCreditsConsumption:!0,graphTypes:null,activenessDate:null}).then(o).catch((e=>{o(null),t(p.ui.actions.errorSet((0,m.xU7)(e,b().text("Something went wrong"))))})).finally((()=>{i(!1)}))),()=>{o(null),i(!1)})),[c,s,t]),{loading:l,data:r}})(r),{loading:i}=l;return o().createElement(g.Provider,{value:l},o().createElement("div",{className:t.perspectiveView},i&&o().createElement(u.Z,null),(null==r?void 0:r.uri)&&o().createElement("div",{className:t.graphContainer},o().createElement("div",{className:t.graphWrapper},o().createElement(k,null),o().createElement(J,null)),o().createElement(X,null))))}));K.displayName="GraphPerspectiveView";const Q=K,ee=(0,l.createGenerateClassName)({productionPrefix:"graph",disableGlobal:!0}),te=e=>{let{store:t}=e;return o().createElement(a.Provider,{store:t},o().createElement(l.StylesProvider,{generateClassName:ee},o().createElement(c.MuiPickersUtilsProvider,{utils:s.Z},o().createElement(Q,null),o().createElement(i.Z,{showErrorFromStore:!0}))))}}}]);