@reltio/remotes 1.4.1417 → 1.4.1418

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/1375.js +1 -1
  2. package/1375.js.map +1 -1
  3. package/1400.js +2 -0
  4. package/1400.js.map +1 -0
  5. package/1478.js +1 -1
  6. package/2114.js +1 -1
  7. package/2491.js +1 -1
  8. package/2890.js +1 -1
  9. package/{8183.js → 3118.js} +2 -2
  10. package/3118.js.map +1 -0
  11. package/3273.js +1 -1
  12. package/3273.js.map +1 -1
  13. package/3294.js +2 -0
  14. package/3294.js.map +1 -0
  15. package/3469.js +2 -0
  16. package/3469.js.map +1 -0
  17. package/3540.js +1 -1
  18. package/3575.js +1 -1
  19. package/3937.js +2 -0
  20. package/3937.js.map +1 -0
  21. package/4015.js +1 -1
  22. package/{5937.js → 4183.js} +2 -2
  23. package/{5937.js.map → 4183.js.map} +1 -1
  24. package/4407.js +1 -1
  25. package/447.js +1 -1
  26. package/461.js +1 -1
  27. package/461.js.map +1 -1
  28. package/4843.js +1 -1
  29. package/4889.js +1 -1
  30. package/4889.js.map +1 -1
  31. package/5400.js +1 -1
  32. package/5400.js.map +1 -1
  33. package/5706.js +1 -1
  34. package/5706.js.map +1 -1
  35. package/5709.js +1 -1
  36. package/{4881.css → 5756.css} +1 -1
  37. package/{4881.css.map → 5756.css.map} +1 -1
  38. package/5756.js +2 -0
  39. package/5756.js.map +1 -0
  40. package/6103.js +1 -1
  41. package/6233.js +1 -1
  42. package/6233.js.map +1 -1
  43. package/6312.js +1 -1
  44. package/6312.js.map +1 -1
  45. package/6617.js +1 -1
  46. package/6669.js +1 -1
  47. package/755.js +2 -0
  48. package/755.js.map +1 -0
  49. package/8051.js +1 -1
  50. package/84.js +1 -1
  51. package/84.js.map +1 -1
  52. package/8443.js +1 -1
  53. package/8448.js +1 -1
  54. package/8847.js +1 -1
  55. package/9043.js +1 -1
  56. package/9043.js.map +1 -1
  57. package/9258.js +1 -1
  58. package/9258.js.map +1 -1
  59. package/9364.js +1 -1
  60. package/9364.js.map +1 -1
  61. package/9852.js +2 -0
  62. package/9852.js.map +1 -0
  63. package/package.json +1 -1
  64. package/remoteEntry.js +1 -1
  65. package/remoteEntry.js.map +1 -1
  66. package/4143.js +0 -2
  67. package/4143.js.map +0 -1
  68. package/4670.js +0 -2
  69. package/4670.js.map +0 -1
  70. package/4881.js +0 -2
  71. package/4881.js.map +0 -1
  72. package/5720.js +0 -2
  73. package/5720.js.map +0 -1
  74. package/7776.js +0 -2
  75. package/7776.js.map +0 -1
  76. package/8183.js.map +0 -1
  77. package/8225.js +0 -2
  78. package/8225.js.map +0 -1
  79. package/9630.js +0 -2
  80. package/9630.js.map +0 -1
package/4015.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[4015],{10237:(e,t,r)=>{r.d(t,{Z:()=>g});var n=r(27556),o=r(13980),a=r.n(o),i=r(24328),l=r.n(i);function s(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){d(e,t,r[t])}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c=(0,r(79692).Z)((e=>({"basic-view__paper":s({display:"flex",flexDirection:"column"},e.basicView)})));function h(){return h=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},h.apply(this,arguments)}const p=(0,i.forwardRef)(((e,t)=>{let{children:r,className:o}=e,a=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,["children","className"]);const i=c();return l().createElement(n.Z,h({ref:t,className:o,classes:{root:i["basic-view__paper"]}},a),r)}));p.displayName="BasicView",p.propTypes={children:a().node,className:a().string};const g=p},93416:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),o=r.n(n),a=r(71153),i=r.n(a),l=r(92778);const s=(0,r(79692).Z)({container:{padding:"0 16px",minHeight:"48px"},title:{fontSize:"16px",lineHeight:"19px",paddingTop:"16px",paddingBottom:"13px",justifyContent:"flex-start"}}),d=e=>{let{className:t,title:r,children:n}=e;const a=s();return o().createElement(l.Z,{title:r,classes:{root:i()(a.container,t),title:a.title}},n)}},55400:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(24328),o=r.n(n);const a=(0,r(79692).Z)({link:{textDecoration:"inherit",color:"inherit","&:visited":{textDecoration:"inherit",color:"inherit"}}}),i=e=>{let{to:t,children:r,onClick:n}=e;const i=a();return o().createElement("a",{href:t,onClick:e=>{n&&(n(),e.stopPropagation(),e.preventDefault())},className:i.link},r)}},37014:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(24328),o=r.n(n),a=r(57014);const i=e=>{let{className:t}=e;return o().createElement("img",{className:t,alt:"loading",src:(0,a.Uw1)("R0lGODlhFQALAKIAAP///8Hf75vL5Van0wB4v////wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCgAFACwAAAIAFQAHAAADLFi6zPSQFEGpGhgXkrEUQShc1bB1wxcGYzGUZ6eKJGVy8lS1aJxJjaAiAkkAACH5BAkKAAUALAAAAwAUAAUAAAMiWLFbJRC6QakCODjBxIzDlW3dB4UBBmhPWQygwrCR9FZDAgAh+QQJCgAFACwIAAMADAAFAAADFBiqVfIvgBmaWHeC6rCklrdw0JMAACH5BAkKAAUALAAAAgAUAAcAAAMkSLpU/vCRQWmLLmg967hYAIxBV4GRSJoWlo1A6X1usXGMUkcJACH5BAkKAAUALAAAAgAOAAcAAAMdWLpF/qSMORudcYg97M2b0BHXAHIelV0pxizQkwAAOw==")})}},58600:(e,t,r)=>{r.d(t,{ZP:()=>U});var n=r(24328),o=r.n(n),a=r(13980),i=r.n(a),l=r(12335),s=r(17440),d=r(67121),c=r(13896),h=r(46847),p=r(15459),g=r(6521);function u(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}var f=r(79692);const m=(0,f.Z)((()=>({"@global .rst__node":{minWidth:"100%",whiteSpace:"nowrap",position:"relative",textAlign:"left"},"@global .rst__node.rst__rtl":{textAlign:"right"},"@global .rst__nodeContent":{position:"absolute",top:0,bottom:0},"@global .rst__lineBlock, .rst__absoluteLineBlock":{height:"100%",position:"relative",display:"inline-block"},"@global .rst__absoluteLineBlock":{position:"absolute",top:0},"@global .rst__lineHalfHorizontalRight::before, .rst__lineFullVertical::after, .rst__lineHalfVerticalTop::after, .rst__lineHalfVerticalBottom::after":{position:"absolute",content:"",backgroundColor:"black"},"@global .rst__lineHalfHorizontalRight::before":{height:"1px",top:"50%",right:0,width:"50%"},"@global .rst__rtl.rst__lineHalfHorizontalRight::before":{left:0,right:"initial"},"@global .rst__lineFullVertical::after, .rst__lineHalfVerticalTop::after, .rst__lineHalfVerticalBottom::after":{width:"1px",left:"50%",top:0,height:"100%"},"@global .rst__rtl.rst__lineFullVertical::after, .rst__rtl.rst__lineHalfVerticalTop::after, .rst__rtl.rst__lineHalfVerticalBottom::after":{right:"50%",left:"initial"},"@global .rst__lineHalfVerticalTop::after":{height:"50%"},"@global .rst__lineHalfVerticalBottom::after":{top:"auto",bottom:0,height:"50%"},"@global .rst__highlightLineVertical":{zIndex:3},"@global .rst__highlightLineVertical::before":{position:"absolute",content:"",backgroundColor:"#36c2f6",width:"8px",marginLeft:"-4px",left:"50%",top:0,height:"100%"},"@global .rst__rtl.rst__highlightLineVertical::before":{marginLeft:"initial",marginRight:"-4px",left:"initial",right:"50%"},"@keyframes arrow-pulse":{"0%":{transform:"translate(0, 0)",opacity:0},"30%":{transform:"translate(0, 300%)",opacity:1},"70%":{transform:"translate(0, 700%)",opacity:1},"100%":{transform:"translate(0, 1000%)",opacity:0}},"@global .rst__highlightLineVertical::after":{content:"",position:"absolute",height:0,marginLeft:"-4px",left:"50%",top:0,borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"4px solid white",animation:"arrow-pulse 1s infinite linear both"},"@global .rst__rtl.rst__highlightLineVertical::after":{marginLeft:"initial",marginRight:"-4px",right:"50%",left:"initial"},"@global .rst__highlightTopLeftCorner::before":{zIndex:3,content:"",position:"absolute",borderTop:"solid 8px #36c2f6",borderLeft:"solid 8px #36c2f6",boxSizing:"border-box",height:"calc(50% + 4px)",top:"50%",marginTop:"-4px",right:0,width:"calc(50% + 4px)"},"@global .rst__rtl.rst__highlightTopLeftCorner::before":{borderRight:"solid 8px #36c2f6",borderLeft:"none",left:0,right:"initial"},"@global .rst__highlightBottomLeftCorner":{zIndex:3},"@global .rst__highlightBottomLeftCorner::before":{content:"",position:"absolute",borderBottom:"solid 8px #36c2f6",borderLeft:"solid 8px #36c2f6",boxSizing:"border-box",height:"calc(100% + 4px)",top:0,right:"12px",width:"calc(50% - 8px)"},"@global .rst__rtl.rst__highlightBottomLeftCorner::before":{borderRight:"solid 8px #36c2f6",borderLeft:"none",left:"12px",right:"initial"},"@global .rst__highlightBottomLeftCorner::after":{content:"",position:"absolute",height:0,right:0,top:"100%",marginTop:"-12px",borderTop:"12px solid transparent",borderBottom:"12px solid transparent",borderLeft:"12px solid #36c2f6"},"@global .rst__rtl.rst__highlightBottomLeftCorner::after":{left:0,right:"initial",borderRight:"12px solid #36c2f6",borderLeft:"none"}})));function b(){return b=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},b.apply(this,arguments)}const x=e=>{let{children:t,listIndex:r,swapFrom:a,swapLength:i,swapDepth:l,scaffoldBlockPxWidth:s,lowerSiblingCounts:d,connectDropTarget:c,isOver:h,draggedNode:p,canDrop:g,treeIndex:f,treeId:x,getPrevRow:y,node:D,path:w,rowDirection:I}=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,["children","listIndex","swapFrom","swapLength","swapDepth","scaffoldBlockPxWidth","lowerSiblingCounts","connectDropTarget","isOver","draggedNode","canDrop","treeIndex","treeId","getPrevRow","node","path","rowDirection"]);m();const _="rtl"===I?"rst__rtl":null,v=d.length,C=[];let P;return d.forEach(((e,t)=>{let n="";if(e>0?n=0===r?"rst__lineHalfHorizontalRight rst__lineHalfVerticalBottom":t===v-1?"rst__lineHalfHorizontalRight rst__lineFullVertical":"rst__lineFullVertical":0===r?n="rst__lineHalfHorizontalRight":t===v-1&&(n="rst__lineHalfVerticalTop rst__lineHalfHorizontalRight"),C.push(o().createElement("div",{key:`pre_${1+t}`,style:{width:s},className:u("rst__lineBlock",n,_)})),f!==r&&t===l){let e,n="";n=r===a+i-1?"rst__highlightBottomLeftCorner":f===a?"rst__highlightTopLeftCorner":"rst__highlightLineVertical",e="rtl"===I?{width:s,right:s*t}:{width:s,left:s*t},C.push(o().createElement("div",{key:t,style:e,className:u("rst__absoluteLineBlock",n,_)}))}})),P="rtl"===I?{right:s*v}:{left:s*v},c(o().createElement("div",b({},N,{className:u("rst__node",_)}),C,o().createElement("div",{className:"rst__nodeContent",style:P},n.Children.map(t,(e=>(0,n.cloneElement)(e,{isOver:h,canDrop:g,draggedNode:p}))))))};x.defaultProps={swapFrom:null,swapDepth:null,swapLength:null,canDrop:!1,draggedNode:null,rowDirection:"ltr"},x.propTypes={treeIndex:i().number.isRequired,treeId:i().string.isRequired,swapFrom:i().number,swapDepth:i().number,swapLength:i().number,scaffoldBlockPxWidth:i().number.isRequired,lowerSiblingCounts:i().arrayOf(i().number).isRequired,listIndex:i().number.isRequired,children:i().node.isRequired,connectDropTarget:i().func.isRequired,isOver:i().bool.isRequired,canDrop:i().bool,draggedNode:i().shape({}),getPrevRow:i().func.isRequired,node:i().shape({}).isRequired,path:i().arrayOf(i().oneOfType([i().string,i().number])).isRequired,rowDirection:i().string};const y=x;var D=r(21113);function w(){return w=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},w.apply(this,arguments)}function I(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){N(e,t,r[t])}))}return e}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _=e=>{let{scaffoldBlockPxWidth:t,toggleChildrenVisibility:r,connectDragPreview:n,connectDragSource:a,isDragging:i,canDrop:l,canDrag:s,node:d,title:c,subtitle:h,draggedNode:p,path:g,treeIndex:f,isSearchMatch:m,isSearchFocus:b,buttons:x,className:y,style:N,didDrop:_,treeId:v,isOver:C,parentNode:P,rowDirection:O}=e,T=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,["scaffoldBlockPxWidth","toggleChildrenVisibility","connectDragPreview","connectDragSource","isDragging","canDrop","canDrag","node","title","subtitle","draggedNode","path","treeIndex","isSearchMatch","isSearchFocus","buttons","className","style","didDrop","treeId","isOver","parentNode","rowDirection"]);const S=c||d.title,R=h||d.subtitle,A="rtl"===O?"rst__rtl":null;let E;s&&(E="function"==typeof d.children&&d.expanded?o().createElement("div",{className:"rst__loadingHandle"},o().createElement("div",{className:"rst__loadingCircle"},[...new Array(12)].map(((e,t)=>o().createElement("div",{key:t,className:u("rst__loadingCirclePoint",A)}))))):a(o().createElement("div",{className:"rst__moveHandle"}),{dropEffect:"copy"}));const k=p&&(0,D.SG)(p,d),M=!_&&i;let L={left:-.5*t};return"rtl"===O&&(L={right:-.5*t}),o().createElement("div",w({style:{height:"100%"}},T),r&&d.children&&(d.children.length>0||"function"==typeof d.children)&&o().createElement("div",null,o().createElement("button",{type:"button","aria-label":d.expanded?"Collapse":"Expand",className:u(d.expanded?"rst__collapseButton":"rst__expandButton",A),style:L,onClick:()=>r({node:d,path:g,treeIndex:f})}),d.expanded&&!i&&o().createElement("div",{style:{width:t},className:u("rst__lineChildren",A)})),o().createElement("div",{className:u("rst__rowWrapper",A)},n(o().createElement("div",{className:u("rst__row",M&&"rst__rowLandingPad",M&&!l&&"rst__rowCancelPad",m&&"rst__rowSearchMatch",b&&"rst__rowSearchFocus",A,y),style:I({opacity:k?.5:1},N)},E,o().createElement("div",{className:u("rst__rowContents",!s&&"rst__rowContentsDragDisabled",A)},o().createElement("div",{className:u("rst__rowLabel",A)},o().createElement("span",{className:u("rst__rowTitle",d.subtitle&&"rst__rowTitleWithSubtitle")},"function"==typeof S?S({node:d,path:g,treeIndex:f}):S),R&&o().createElement("span",{className:"rst__rowSubtitle"},"function"==typeof R?R({node:d,path:g,treeIndex:f}):R)),o().createElement("div",{className:"rst__rowToolbar"},x.map(((e,t)=>o().createElement("div",{key:t,className:"rst__toolbarButton"},e)))))))))};_.defaultProps={isSearchMatch:!1,isSearchFocus:!1,canDrag:!1,toggleChildrenVisibility:null,buttons:[],className:"",style:{},parentNode:null,draggedNode:null,canDrop:!1,title:null,subtitle:null,rowDirection:"ltr"},_.propTypes={node:i().shape({}).isRequired,title:i().oneOfType([i().func,i().node]),subtitle:i().oneOfType([i().func,i().node]),path:i().arrayOf(i().oneOfType([i().string,i().number])).isRequired,treeIndex:i().number.isRequired,treeId:i().string.isRequired,isSearchMatch:i().bool,isSearchFocus:i().bool,canDrag:i().bool,scaffoldBlockPxWidth:i().number.isRequired,toggleChildrenVisibility:i().func,buttons:i().arrayOf(i().node),className:i().string,style:i().shape({}),connectDragPreview:i().func.isRequired,connectDragSource:i().func.isRequired,parentNode:i().shape({}),isDragging:i().bool.isRequired,didDrop:i().bool.isRequired,draggedNode:i().shape({}),isOver:i().bool.isRequired,canDrop:i().bool,rowDirection:i().string};const v=_;function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class P extends n.Component{render(){const e=this.props,{children:t,connectDropTarget:r,treeId:a,drop:i}=e,l=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,["children","connectDropTarget","treeId","drop"]);return r(o().createElement("div",null,n.Children.map(t,(e=>(0,n.cloneElement)(e,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){C(e,t,r[t])}))}return e}({},l))))))}}P.defaultProps={canDrop:!1,draggedNode:null},P.propTypes={children:i().node.isRequired,connectDropTarget:i().func.isRequired,isOver:i().bool.isRequired,canDrop:i().bool,draggedNode:i().shape({}),treeId:i().string.isRequired,drop:i().func.isRequired};const O=P,T=(0,f.Z)((()=>({"@global .rst__placeholder":{position:"relative",height:"68px",maxWidth:"300px",padding:"10px"},"@global .rst__placeholder, .rst__placeholder > *":{boxSizing:"border-box"},"@global .rst__placeholder::before":{border:"3px dashed #d9d9d9",content:"",position:"absolute",top:"5px",right:"5px",bottom:"5px",left:"5px",zIndex:-1},"@global .rst__placeholderLandingPad, .rst__placeholderCancelPad":{border:"none !important",boxShadow:"none !important",outline:"none !important"},"@global .rst__placeholderLandingPad *, .rst__placeholderCancelPad *":{opacity:"0 !important"},"@global .rst__placeholderLandingPad::before, .rst__placeholderCancelPad::before":{backgroundColor:"lightblue",borderColor:"white"},"@global .rst__placeholderCancelPad::before":{backgroundColor:"#e6a8ad"}}))),S=e=>{let{isOver:t,canDrop:r}=e;return T(),o().createElement("div",{className:u("rst__placeholder",r&&"rst__placeholderLandingPad",r&&!t&&"rst__placeholderCancelPad")})};S.defaultProps={isOver:!1,canDrop:!1},S.propTypes={isOver:i().bool,canDrop:i().bool};const R=S,A=e=>{let t=[],r=[],n=null;return o=>{const a=Object.keys(o).sort(),i=a.map((e=>o[e]));return(i.length!==t.length||i.some(((e,r)=>e!==t[r]))||a.some(((e,t)=>e!==r[t])))&&(t=i,r=a,n=e(o)),n}},E=A(D.Lf),k=A(D.Pg),M=A(D.o5);var L=r(65758),F=r(75047);class j{constructor(e){this.hoverHandler=()=>{if(null===this.hoverProps)return;const{dropTargetProps:e,monitor:t,component:r}=this.hoverProps,n=t.getItem();if(!n)return;const o=this.getTargetDepth(e,t,r),a=n.node;(e.node!==this.lastDropTargetNode||o!==this.lastDropTargetDepth)&&(this.lastDropTargetNode=e.node,this.lastDropTargetDepth=o,this.dragHover({node:a,path:n.path,minimumTreeIndex:e.listIndex,depth:o}),this.hoverProps=null)},this.deferredCallHoverHandler=()=>{if(this.shouldSkipMoreFrames)return this.shouldSkipMoreFrames=!1,void(this.rafId=requestAnimationFrame(this.deferredCallHoverHandler));this.rafId=null,this.hoverHandler()},this.treeRef=e,this.resetDragVariables()}get startDrag(){return this.treeRef.startDrag}get dragHover(){return this.treeRef.dragHover}get endDrag(){return this.treeRef.endDrag}get drop(){return this.treeRef.drop}get treeId(){return this.treeRef.treeId}get dndType(){return this.treeRef.dndType}get treeData(){return this.treeRef.state.draggingTreeData||this.treeRef.props.treeData}get getNodeKey(){return this.treeRef.props.getNodeKey}get customCanDrop(){return this.treeRef.props.canDrop}get maxDepth(){return this.treeRef.props.maxDepth}resetDragVariables(){this.lastDropTargetNode=null,this.lastDropTargetDepth=null,this.hoverProps=null,this.lastCanDropResult=null,this.lastCanDropProps=null,this.shouldSkipMoreFrames=!1,this.rafId=null}getTargetDepth(e,t,r){let n=0;const o=e.getPrevRow();if(o){let{path:t}=o;!this.treeRef.canNodeHaveChildren(o.node)&&(t=t.slice(0,t.length-1)),n=Math.min(t.length,e.path.length)}let a,i=(t.getItem().path||[]).length;if(t.getItem().treeId!==this.treeId)if(i=0,r){const n=(0,F.findDOMNode)(r).getBoundingClientRect(),o=t.getSourceClientOffset().x-n.left;a=Math.round(o/e.scaffoldBlockPxWidth)}else a=e.path.length;else{const r="rtl"===e.rowDirection?-1:1;a=Math.round(r*t.getDifferenceFromInitialOffset().x/e.scaffoldBlockPxWidth)}let l=Math.min(n,Math.max(0,i+a-1));if(void 0!==this.maxDepth&&null!==this.maxDepth){const e=t.getItem().node,r=(0,D.hh)(e);l=Math.max(0,Math.min(l,this.maxDepth-r-1))}return l}canDrop(e,t){if(!t.isOver())return!1;const r=e.getPrevRow(),n=r?r.path:[],o=r?r.node:{},a=Math.round(t.getDifferenceFromInitialOffset().x/e.scaffoldBlockPxWidth),i={nodeId:void 0!==e.node.nodeId?e.node.nodeId:e.node,rowAbove:r,abovePath:n,aboveNodeId:void 0!==o.nodeId?o.nodeId:o,blocksOffset:a};if((0,s.equals)(this.lastCanDropProps,i))return this.lastCanDropResult;this.lastCanDropProps=i;const l=this.getTargetDepth(e,t,null);if(l>=n.length&&"function"==typeof o.children)return this.lastCanDropResult=!1;if("function"==typeof this.customCanDrop){const{node:r}=t.getItem(),n=E({treeData:this.treeData,newNode:r,depth:l,getNodeKey:this.getNodeKey,minimumTreeIndex:e.listIndex,expandParent:!0});return this.lastCanDropResult=this.customCanDrop({node:r,prevPath:t.getItem().path,prevParent:t.getItem().parentNode,prevTreeIndex:t.getItem().treeIndex,nextPath:n.path,nextParent:n.parentNode,nextTreeIndex:n.treeIndex})}return this.lastCanDropResult=!0}wrapSource(e){const t={beginDrag:e=>(this.startDrag(e),{node:e.node,parentNode:e.parentNode,path:e.path,treeIndex:e.treeIndex,treeId:e.treeId}),endDrag:(e,t)=>{this.rafId&&cancelAnimationFrame(this.rafId),this.endDrag(t.getDropResult()),this.resetDragVariables()},isDragging:(e,t)=>{const r=t.getItem().node;return e.node===r}};return(0,c.DragSource)(this.dndType,t,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging(),didDrop:t.didDrop()}}))(e)}wrapTarget(e){const t={drop:(e,t,r)=>{this.rafId&&cancelAnimationFrame(this.rafId);const n={node:t.getItem().node,path:t.getItem().path,treeIndex:t.getItem().treeIndex,treeId:this.treeId,minimumTreeIndex:e.treeIndex,depth:this.getTargetDepth(e,t,r)};return this.lastDropTargetNode=null,this.drop(n),n},hover:(e,t,r)=>{this.rafId?this.shouldSkipMoreFrames=!0:(this.shouldSkipMoreFrames=!1,this.hoverProps={dropTargetProps:e,monitor:t,component:r},this.rafId=requestAnimationFrame(this.deferredCallHoverHandler))},canDrop:this.canDrop.bind(this)};return(0,c.DropTarget)(this.dndType,t,(function(e,t){const r=t.getItem();return{connectDropTarget:e.dropTarget(),isOver:t.isOver(),canDrop:t.canDrop(),draggedNode:r?r.node:null}}))(e)}wrapPlaceholder(e){const t={drop:(e,t)=>{const{node:r,path:n,treeIndex:o}=t.getItem(),a={node:r,path:n,treeIndex:o,treeId:this.treeId,minimumTreeIndex:0,depth:0};return this.drop(a),a}};return(0,c.DropTarget)(this.dndType,t,(function(e,t){const r=t.getItem();return{connectDropTarget:e.dropTarget(),isOver:t.isOver(),canDrop:t.canDrop(),draggedNode:r?r.node:null}}))(e)}}function K(){return K=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},K.apply(this,arguments)}function V(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){H(e,t,r[t])}))}return e}function H(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let B=1;const z=e=>{const t=V({},e,{style:V({},e.theme.style,e.style),innerStyle:V({},e.theme.innerStyle,e.innerStyle),reactVirtualizedListProps:V({},e.theme.reactVirtualizedListProps,e.reactVirtualizedListProps)}),r={nodeContentRenderer:v,placeholderRenderer:R,rowHeight:62,scaffoldBlockPxWidth:44,slideRegionSize:100,treeNodeRenderer:y};return Object.keys(r).forEach((n=>{null===e[n]&&(t[n]=void 0!==e.theme[n]?e.theme[n]:r[n])})),t};class Z extends n.Component{constructor(e){super(e);const{dndType:t,nodeContentRenderer:r,treeNodeRenderer:n,isVirtualized:o,slideRegionSize:a}=z(e);this.dndManager=new j(this),this.treeId=`rst__${B}`,B+=1,this.dndType=t||this.treeId,this.nodeContentRenderer=this.dndManager.wrapSource(r),this.treePlaceholderRenderer=this.dndManager.wrapPlaceholder(O),this.treeNodeRenderer=this.dndManager.wrapTarget(n),o&&(this.scrollZoneVirtualList=(d._t||d.ZP)(l.aV),this.vStrength=(0,d.Kx)(a),this.hStrength=(0,d.v7)(a)),this.state={draggingTreeData:null,draggedNode:null,draggedMinimumTreeIndex:null,draggedDepth:null,searchMatches:[],searchFocusTreeIndex:null,dragging:!1,draggingExpandedPaths:[],ignoreOneTreeUpdate:!1,instanceProps:{treeData:this.props.treeData||[],searchQuery:null,searchFocusOffset:null,ignoreTreeChanges:!1}},this.toggleChildrenVisibility=this.toggleChildrenVisibility.bind(this),this.moveNode=this.moveNode.bind(this),this.startDrag=this.startDrag.bind(this),this.dragHover=this.dragHover.bind(this),this.endDrag=this.endDrag.bind(this),this.drop=this.drop.bind(this),this.handleDndMonitorChange=this.handleDndMonitorChange.bind(this)}componentDidMount(){Z.loadLazyChildren(this.props);const e=Z.search(this.props,this.state,!0,!0,!1);this.setState(e),this.clearMonitorSubscription=this.props.dragDropManager.getMonitor().subscribeToStateChange(this.handleDndMonitorChange)}static getDerivedStateFromProps(e,t){const{instanceProps:r}=t,n={};return(0,s.equals)(r.searchQuery,e.searchQuery)?r.searchFocusOffset!==e.searchFocusOffset&&Object.assign(n,Z.search(e,t,!0,!0,!0)):Object.assign(n,Z.search(e,t,!0,!0,!1)),r.searchQuery=e.searchQuery,r.searchFocusOffset=e.searchFocusOffset,n.instanceProps=r,n}componentDidUpdate(e,t){if(this.state.dragging!==t.dragging&&this.props.onDragStateChanged&&this.props.onDragStateChanged({isDragging:this.state.dragging,draggedNode:this.state.draggedNode}),this.state.dragging)if((0,s.equals)(this.props.treeData,e.treeData))this.state.draggingTreeData&&t.draggingTreeData!==this.state.draggingTreeData&&(0,D._p)({treeData:this.state.draggingTreeData,getNodeKey:this.props.getNodeKey,callback:e=>{let{node:t,path:r,lowerSiblingCounts:n,treeIndex:o}=e;t.pending&&t.expanded&&this.props.onLazyLoadChildren({node:t,path:r,lowerSiblingCounts:n,treeIndex:o})}});else{const{treeData:e}=(0,D.ZF)({treeData:this.props.treeData,path:t.draggedPath,getNodeKey:this.props.getNodeKey});this.setState((t=>{let{draggingExpandedPaths:r}=t;return{draggingTreeData:r.reduce(((e,t)=>{let r;try{r=(0,D.Gm)({treeData:e,path:t,newNode:e=>{let{node:t}=e;return V({},t,{expanded:!0})},getNodeKey:this.props.getNodeKey})}catch(t){r=e}return r}),e)}}))}else if(this.props.treeData!==e.treeData){const t=(0,s.equals)(this.props.treeData,e.treeData),{ignoreOneTreeUpdate:r,instanceProps:n}=this.state,o={};t||(r?o.ignoreOneTreeUpdate=!1:(o.searchFocusTreeIndex=null,Z.loadLazyChildren(this.props),Object.assign(o,Z.search(this.props,this.state,!1,!1,!1))),o.draggingTreeData=null,o.draggedNode=null,o.draggedMinimumTreeIndex=null,o.draggedDepth=null,o.dragging=!1,o.draggingExpandedPaths=[],o.instanceProps=V({},n,{treeData:this.props.treeData}),this.setState(o))}}componentWillUnmount(){this.clearMonitorSubscription()}getRows(e){return k({ignoreCollapsed:!0,getNodeKey:this.props.getNodeKey,treeData:e})}handleDndMonitorChange(){!this.props.dragDropManager.getMonitor().isDragging()&&this.state.draggingTreeData&&this.endDrag()}toggleChildrenVisibility(e){let{node:t,path:r}=e;const{instanceProps:n}=this.state,o=(0,D.Gm)({treeData:n.treeData,path:r,newNode:e=>{let{node:t}=e;return V({},t,{expanded:!t.expanded})},getNodeKey:this.props.getNodeKey});this.props.onChange(o),this.props.onVisibilityToggle({treeData:o,node:t,expanded:!t.expanded,path:r})}moveNode(e){let{node:t,path:r,treeIndex:n,depth:o,minimumTreeIndex:a}=e;const{treeData:i,treeIndex:l,path:s,parentNode:d}=(0,D.Lf)({treeData:this.state.draggingTreeData,newNode:t,depth:o,minimumTreeIndex:a,expandParent:!0,getNodeKey:this.props.getNodeKey});this.setState({draggingTreeData:null,draggedNode:null,draggedMinimumTreeIndex:null,draggedDepth:null,dragging:!1,draggingExpandedPaths:[]},(()=>{this.props.onChange(i),this.props.onMoveNode({treeData:i,node:t,treeIndex:l,path:s,nextPath:s,nextTreeIndex:l,prevPath:r,prevTreeIndex:n,nextParentNode:d})}))}static search(e,t,r,n,o){const{onChange:a,getNodeKey:i,searchFinishCallback:l,searchQuery:s,searchMethod:d,searchFocusOffset:c,onlyExpandSearchedNodes:h}=e,{instanceProps:p}=t;if(!s&&!d)return l&&l([]),{searchMatches:[]};const g={},{treeData:u,matches:f}=(0,D.sE)({getNodeKey:i,treeData:h?(0,D.Vk)({treeData:p.treeData,expanded:!1}):p.treeData,searchQuery:s,searchMethod:d||L.v2,searchFocusOffset:c,expandAllMatchPaths:n&&!o,expandFocusMatchPaths:!!n});n&&(g.ignoreOneTreeUpdate=!0,a(u)),l&&l(f);let m=null;return r&&null!==c&&c<f.length&&(m=f[c].treeIndex),g.searchMatches=f,g.searchFocusTreeIndex=m,g}startDrag(e){let{path:t}=e;this.setState((e=>{const{treeData:r,node:n,treeIndex:o}=(0,D.ZF)({treeData:e.instanceProps.treeData,path:t,getNodeKey:this.props.getNodeKey});return{draggingTreeData:r,draggedNode:n,draggedDepth:t.length-1,draggedMinimumTreeIndex:o,draggedPath:t,dragging:!0}}))}dragHover(e){let{node:t,depth:r,minimumTreeIndex:n}=e;this.state.draggedDepth===r&&this.state.draggedMinimumTreeIndex===n||this.setState((e=>{let{draggingTreeData:o,instanceProps:a,draggingExpandedPaths:i}=e;const l=o||a.treeData,d=E({treeData:l,newNode:t,depth:r,minimumTreeIndex:n,expandParent:!0,getNodeKey:this.props.getNodeKey}),c=this.getRows(d.treeData)[d.treeIndex].path.slice(0,-1),h=(0,s.pipe)((0,s.when)((0,s.always)((0,s.gt)(c.length,0)),(0,s.append)(c)),(0,s.uniqWith)((0,s.eqBy)(String)))(i);return{draggedNode:t,draggedDepth:r,draggedMinimumTreeIndex:n,draggingTreeData:(0,D.Gm)({treeData:l,path:c,newNode:e=>{let{node:t}=e;return V({},t,{expanded:!0})},getNodeKey:this.props.getNodeKey}),searchFocusTreeIndex:null,dragging:!0,draggingExpandedPaths:h}}))}endDrag(e){const{instanceProps:t}=this.state;if(e){if(e.treeId!==this.treeId){const{node:r,path:n,treeIndex:o}=e;let a=this.props.shouldCopyOnOutsideDrop;"function"==typeof a&&(a=a({node:r,prevTreeIndex:o,prevPath:n}));let i=this.state.draggingTreeData||t.treeData;a&&(i=(0,D.Gm)({treeData:t.treeData,path:n,newNode:e=>{let{node:t}=e;return V({},t)},getNodeKey:this.props.getNodeKey})),this.props.onChange(i),this.props.onMoveNode({treeData:i,node:r,treeIndex:null,path:null,nextPath:null,nextTreeIndex:null,prevPath:n,prevTreeIndex:o})}}else(()=>{this.setState({draggingTreeData:null,draggedNode:null,draggedMinimumTreeIndex:null,draggedDepth:null,dragging:!1})})()}drop(e){this.moveNode(e)}canNodeHaveChildren(e){const{canNodeHaveChildren:t}=this.props;return!t||t(e)}static loadLazyChildren(e){(0,D._p)({treeData:e.treeData,getNodeKey:e.getNodeKey,callback:t=>{let{node:r,path:n,lowerSiblingCounts:o,treeIndex:a}=t;r.pending&&(r.expanded||e.loadCollapsedLazyChildren)&&e.onLazyLoadChildren({node:r,path:n,lowerSiblingCounts:o,treeIndex:a,done:t=>e.onChange((0,D.Gm)({treeData:e.treeData,path:n,newNode:e=>{let{node:n}=e;return n===r?V({},n,{children:t}):n},getNodeKey:e.getNodeKey}),!0)})}})}renderRow(e,t){let{listIndex:r,style:n,getPrevRow:a,matchKeys:i,swapFrom:l,swapDepth:s,swapLength:d}=t;const{node:c,parentNode:h,path:p,lowerSiblingCounts:g,treeIndex:u}=e,{canDrag:f,generateNodeProps:m,scaffoldBlockPxWidth:b,searchFocusOffset:x,rowDirection:y}=z(this.props),D=this.treeNodeRenderer,w=this.nodeContentRenderer,I=p[p.length-1],N=I in i,_=N&&i[I]===x,v={node:c,parentNode:h,path:p,lowerSiblingCounts:g,treeIndex:u,isSearchMatch:N,isSearchFocus:_},C=m?m(v):{},P="function"!=typeof f?f:f(v),O={treeIndex:u,scaffoldBlockPxWidth:b,node:c,path:p,treeId:this.treeId,rowDirection:y};return o().createElement(D,K({style:n,key:I,listIndex:r,getPrevRow:a,lowerSiblingCounts:g,swapFrom:l,swapLength:d,swapDepth:s},O),o().createElement(w,K({parentNode:h,isSearchMatch:N,isSearchFocus:_,canDrag:P,toggleChildrenVisibility:this.toggleChildrenVisibility},O,C)))}render(){const{dragDropManager:e,style:t,className:r,innerStyle:n,rowHeight:a,isVirtualized:i,placeholderRenderer:s,reactVirtualizedListProps:d,getNodeKey:c,rowDirection:h}=z(this.props),{searchMatches:p,searchFocusTreeIndex:g,draggedNode:f,draggedDepth:m,draggedMinimumTreeIndex:b}=this.state,x=this.state.draggingTreeData||this.props.treeData,y="rtl"===h?"rst__rtl":null;let D,w=null,I=null;if(f&&null!==b){const e=E({treeData:x,newNode:f,depth:m,minimumTreeIndex:b,expandParent:!0,getNodeKey:c}),t=b;w=e.treeIndex,I=1+M({node:f}),D=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const o=[...e.slice(0,t),...e.slice(t+n)];return[...o.slice(0,r),...e.slice(t,t+n),...o.slice(r)]}(this.getRows(e.treeData),w,t,I)}else D=this.getRows(x);const N={};p.forEach(((e,t)=>{let{path:r}=e;N[r[r.length-1]]=t}));const _=null!==g?{scrollToIndex:g}:{};let v,C=t;if(D.length<1){const e=this.treePlaceholderRenderer,t=s;v=o().createElement(e,{treeId:this.treeId,drop:this.drop},o().createElement(t,null))}else if(i){C=V({height:"100%"},C);const t=this.scrollZoneVirtualList;v=o().createElement(l.qj,null,(r=>{let{height:i,width:l}=r;return o().createElement(t,K({},_,{dragDropManager:e,verticalStrength:this.vStrength,horizontalStrength:this.hStrength,speed:30,scrollToAlignment:"start",className:this.props.classes.rst__virtualScrollOverride,width:l,onScroll:e=>{let{scrollTop:t}=e;this.scrollTop=t},height:i,style:n,rowCount:D.length,estimatedRowSize:"function"!=typeof a?a:void 0,rowHeight:"function"!=typeof a?a:e=>{let{index:t}=e;return a({index:t,treeIndex:t,node:D[t].node,path:D[t].path})},rowRenderer:e=>{let{index:t,style:r}=e;return this.renderRow(D[t],{listIndex:t,style:r,getPrevRow:()=>D[t-1]||null,matchKeys:N,swapFrom:w,swapDepth:m,swapLength:I})}},d))}))}else v=D.map(((e,t)=>this.renderRow(e,{listIndex:t,style:{height:"function"!=typeof a?a:a({index:t,treeIndex:t,node:e.node,path:e.path})},getPrevRow:()=>D[t-1]||null,matchKeys:N,swapFrom:w,swapDepth:m,swapLength:I})));return o().createElement("div",{className:u("rst__tree",r,y),style:C},v)}}Z.propTypes={classes:i().object,dragDropManager:i().shape({getMonitor:i().func}).isRequired,treeData:i().arrayOf(i().object).isRequired,style:i().shape({}),className:i().string,innerStyle:i().shape({}),rowHeight:i().oneOfType([i().number,i().func]),slideRegionSize:i().number,reactVirtualizedListProps:i().shape({}),scaffoldBlockPxWidth:i().number,maxDepth:i().number,searchMethod:i().func,searchQuery:i().any,searchFocusOffset:i().number,searchFinishCallback:i().func,generateNodeProps:i().func,isVirtualized:i().bool,treeNodeRenderer:i().func,nodeContentRenderer:i().func,placeholderRenderer:i().func,theme:i().shape({style:i().shape({}),innerStyle:i().shape({}),reactVirtualizedListProps:i().shape({}),scaffoldBlockPxWidth:i().number,slideRegionSize:i().number,rowHeight:i().oneOfType([i().number,i().func]),treeNodeRenderer:i().func,nodeContentRenderer:i().func,placeholderRenderer:i().func}),getNodeKey:i().func,onChange:i().func.isRequired,onMoveNode:i().func,canDrag:i().oneOfType([i().func,i().bool]),canDrop:i().func,canNodeHaveChildren:i().func,shouldCopyOnOutsideDrop:i().oneOfType([i().func,i().bool]),onVisibilityToggle:i().func,dndType:i().string,onDragStateChanged:i().func,onlyExpandSearchedNodes:i().bool,rowDirection:i().string,onLazyLoadChildren:i().func,ignoreTreeChanges:i().bool},Z.defaultProps={canDrag:!0,canDrop:null,canNodeHaveChildren:()=>!0,className:"",dndType:null,generateNodeProps:null,getNodeKey:L.TS,innerStyle:{},isVirtualized:!0,maxDepth:null,treeNodeRenderer:null,nodeContentRenderer:null,onMoveNode:()=>{},onVisibilityToggle:()=>{},placeholderRenderer:null,reactVirtualizedListProps:{},rowHeight:null,scaffoldBlockPxWidth:null,searchFinishCallback:null,searchFocusOffset:null,searchMethod:null,searchQuery:null,shouldCopyOnOutsideDrop:!1,slideRegionSize:null,style:{},theme:{},onDragStateChanged:()=>{},onlyExpandSearchedNodes:!1,rowDirection:"ltr",onLazyLoadChildren:()=>{},ignoreTreeChanges:!1},(0,h.polyfill)(Z);const q=(0,p.Z)((()=>({"@global .ReactVirtualized__Grid__innerScrollContainer":{overflow:"visible !important"},"@global .ReactVirtualized__Grid":{outline:"none"},"@global .ReactVirtualized__List":{},rst__virtualScrollOverride:{overflow:"auto !important"},"@global .rst__rtl .ReactVirtualized__Grid__innerScrollContainer":{direction:"rtl"}})))(Z),W=e=>o().createElement(c.DndContext.Consumer,null,(t=>{let{dragDropManager:r}=t;return void 0===r?null:o().createElement(q,K({},e,{dragDropManager:r}))})),U=e=>o().createElement(g.l,null,o().createElement(W,e))},65758:(e,t,r)=>{function n(e){let{treeIndex:t}=e;return t}function o(e){return"string"==typeof e?e:null===e||"object"!=typeof e||!e.props||!e.props.children||"string"!=typeof e.props.children&&"object"!=typeof e.props.children?"":"string"==typeof e.props.children?e.props.children:e.props.children.map((e=>o(e))).join("")}function a(e,t,r,n,a){return"function"==typeof r[e]?String(r[e]({node:r,path:n,treeIndex:a})).indexOf(t)>-1:"object"==typeof r[e]?o(r[e]).indexOf(t)>-1:r[e]&&String(r[e]).indexOf(t)>-1}function i(e){let{node:t,path:r,treeIndex:n,searchQuery:o}=e;return a("title",o,t,r,n)||a("subtitle",o,t,r,n)}r.d(t,{TS:()=>n,v2:()=>i,ZP:()=>l});const l={defaultSearchMethod:i,defaultGetNodeKey:n}},21113:(e,t,r)=>{function n(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){o(e,t,r[t])}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){let{targetIndex:t,node:r,currentIndex:n,getNodeKey:o,path:i=[],lowerSiblingCounts:l=[],ignoreCollapsed:s=!0,isPseudoRoot:d=!1}=e;const c=d?[]:[...i,o({node:r,treeIndex:n})];if(n===t)return{node:r,lowerSiblingCounts:l,path:c};if(!r.children||s&&!0!==r.expanded)return{nextIndex:n+1};let h=n+1;const p=r.children.length;for(let e=0;e<p;e+=1){const n=a({ignoreCollapsed:s,getNodeKey:o,targetIndex:t,node:r.children[e],currentIndex:h,lowerSiblingCounts:[...l,p-e-1],path:c});if(n.node)return n;h=n.nextIndex}return{nextIndex:h}}function i(e){let{node:t,ignoreCollapsed:r=!0}=e;return a({getNodeKey:()=>{},ignoreCollapsed:r,node:t,currentIndex:0,targetIndex:-1}).nextIndex-1}function l(e){let{callback:t,getNodeKey:r,ignoreCollapsed:n,isPseudoRoot:o=!1,node:a,parentNode:i=null,currentIndex:s,path:d=[],lowerSiblingCounts:c=[]}=e;const h=o?[]:[...d,r({node:a,treeIndex:s})];if(!o&&!1===t(o?null:{node:a,parentNode:i,path:h,lowerSiblingCounts:c,treeIndex:s}))return!1;if(!a.children||!0!==a.expanded&&n&&!o)return s;let p=s;const g=a.children.length;if("function"!=typeof a.children)for(let e=0;e<g;e+=1)if(p=l({callback:t,getNodeKey:r,ignoreCollapsed:n,node:a.children[e],parentNode:o?null:a,currentIndex:p+1,lowerSiblingCounts:[...c,g-e-1],path:h}),!1===p)return!1;return p}function s(e){let{callback:t,getNodeKey:r,ignoreCollapsed:o,isPseudoRoot:a=!1,node:i,parentNode:l=null,currentIndex:d,path:c=[],lowerSiblingCounts:h=[]}=e;const p=n({},i),g=a?[]:[...c,r({node:p,treeIndex:d})],u={node:p,parentNode:l,path:g,lowerSiblingCounts:h,treeIndex:d};if(!p.children||!0!==p.expanded&&o&&!a)return{treeIndex:d,node:t(u)};let f=d;const m=p.children.length;return"function"!=typeof p.children&&(p.children=p.children.map(((e,n)=>{const i=s({callback:t,getNodeKey:r,ignoreCollapsed:o,node:e,parentNode:a?null:p,currentIndex:f+1,lowerSiblingCounts:[...h,m-n-1],path:g});return f=i.treeIndex,i.node}))),{node:t(u),treeIndex:f}}function d(e){let{treeData:t,getNodeKey:r,callback:n,ignoreCollapsed:o=!0}=e;!t||t.length<1||l({callback:n,getNodeKey:r,ignoreCollapsed:o,isPseudoRoot:!0,node:{children:t},currentIndex:-1,path:[],lowerSiblingCounts:[]})}function c(e){let{treeData:t,getNodeKey:r,callback:n,ignoreCollapsed:o=!0}=e;return!t||t.length<1?[]:s({callback:n,getNodeKey:r,ignoreCollapsed:o,isPseudoRoot:!0,node:{children:t},currentIndex:-1,path:[],lowerSiblingCounts:[]}).node.children}function h(e){let{treeData:t,expanded:r=!0}=e;return c({treeData:t,callback:e=>{let{node:t}=e;return n({},t,{expanded:r})},getNodeKey:e=>{let{treeIndex:t}=e;return t},ignoreCollapsed:!1})}function p(e){let{treeData:t,path:r,newNode:o,getNodeKey:a,ignoreCollapsed:l=!0}=e;const s="RESULT_MISS",d=e=>{let{isPseudoRoot:t=!1,node:c,currentTreeIndex:h,pathIndex:p}=e;if(!t&&a({node:c,treeIndex:h})!==r[p])return s;if(p>=r.length-1)return"function"==typeof o?o({node:c,treeIndex:h}):o;if(!c.children)throw new Error("Path referenced children of node with no children.");let g=h+1;for(let e=0;e<c.children.length;e+=1){const t=d({node:c.children[e],currentTreeIndex:g,pathIndex:p+1});if(t!==s)return n({},c,t?{children:[...c.children.slice(0,e),t,...c.children.slice(e+1)]}:{children:[...c.children.slice(0,e),...c.children.slice(e+1)]});g+=1+i({node:c.children[e],ignoreCollapsed:l})}return s},c=d({node:{children:t},currentTreeIndex:-1,pathIndex:-1,isPseudoRoot:!0});if(c===s)throw new Error("No node found at the given path.");return c.children}function g(e){let{treeData:t,path:r,getNodeKey:n,ignoreCollapsed:o=!0}=e,a=null,i=null;return{treeData:p({treeData:t,path:r,getNodeKey:n,ignoreCollapsed:o,newNode:e=>{let{node:t,treeIndex:r}=e;return a=t,i=r,null}}),node:a,treeIndex:i}}function u(e){let{targetDepth:t,minimumTreeIndex:r,newNode:o,ignoreCollapsed:a,expandParent:l,isPseudoRoot:s=!1,isLastChild:d,node:c,currentIndex:h,currentDepth:p,getNodeKey:g,path:f=[]}=e;const m=e=>s?[]:[...f,g({node:e,treeIndex:h})];if(h>=r-1||d&&(!c.children||!c.children.length)){if("function"==typeof c.children)throw new Error("Cannot add to children defined by a function");{const e=n({},c,l?{expanded:!0}:{},{children:c.children?[o,...c.children]:[o]});return{node:e,nextIndex:h+2,insertedTreeIndex:h+1,parentPath:m(e),parentNode:s?null:e}}}if(p>=t-1){if(!c.children||"function"==typeof c.children||!0!==c.expanded&&a&&!s)return{node:c,nextIndex:h+1};let e=h+1,t=null,l=null;for(let n=0;n<c.children.length;n+=1){if(e>=r){t=e,l=n;break}e+=1+i({node:c.children[n],ignoreCollapsed:a})}if(null===l){if(e<r&&!d)return{node:c,nextIndex:e};t=e,l=c.children.length}const p=n({},c,{children:[...c.children.slice(0,l),o,...c.children.slice(l)]});return{node:p,nextIndex:e,insertedTreeIndex:t,parentPath:m(p),parentNode:s?null:p}}if(!c.children||"function"==typeof c.children||!0!==c.expanded&&a&&!s)return{node:c,nextIndex:h+1};let b=null,x=null,y=null,D=h+1,w=c.children;"function"!=typeof w&&(w=w.map(((e,n)=>{if(null!==b)return e;const i=u({targetDepth:t,minimumTreeIndex:r,newNode:o,ignoreCollapsed:a,expandParent:l,isLastChild:d&&n===w.length-1,node:e,currentIndex:D,currentDepth:p+1,getNodeKey:g,path:[]});return"insertedTreeIndex"in i&&({insertedTreeIndex:b,parentNode:y,parentPath:x}=i),D=i.nextIndex,i.node})));const I=n({},c,{children:w}),N={node:I,nextIndex:D};return null!==b&&(N.insertedTreeIndex=b,N.parentPath=[...m(I),...x],N.parentNode=y),N}function f(e){let{treeData:t,depth:r,minimumTreeIndex:n,newNode:o,getNodeKey:a=(()=>{}),ignoreCollapsed:i=!0,expandParent:l=!1}=e;if(!t&&0===r)return{treeData:[o],treeIndex:0,path:[a({node:o,treeIndex:0})],parentNode:null};const s=u({targetDepth:r,minimumTreeIndex:n,newNode:o,ignoreCollapsed:i,expandParent:l,getNodeKey:a,isPseudoRoot:!0,isLastChild:!0,node:{children:t},currentIndex:-1,currentDepth:-1});if(!("insertedTreeIndex"in s))throw new Error("No suitable position found to insert.");const d=s.insertedTreeIndex;return{treeData:s.node.children,treeIndex:d,path:[...s.parentPath,a({node:o,treeIndex:d})],parentNode:s.parentNode}}function m(e){let{treeData:t,getNodeKey:r,ignoreCollapsed:n=!0}=e;if(!t||t.length<1)return[];const o=[];return d({treeData:t,getNodeKey:r,ignoreCollapsed:n,callback:e=>{o.push(e)}}),o}function b(e,t){return!!e.children&&"function"!=typeof e.children&&e.children.some((e=>e===t||b(e,t)))}function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.children?"function"==typeof e.children?t+1:e.children.reduce(((e,r)=>Math.max(e,x(r,t+1))),t):t}function y(e){let{getNodeKey:t,treeData:r,searchQuery:o,searchMethod:a,searchFocusOffset:i,expandAllMatchPaths:l=!1,expandFocusMatchPaths:s=!0}=e,d=0;const c=e=>{let{isPseudoRoot:r=!1,node:h,currentIndex:p,path:g=[]}=e,u=[],f=!1,m=!1;const b=r?[]:[...g,t({node:h,treeIndex:p})],x=r?null:{path:b,treeIndex:p},y=h.children&&"function"!=typeof h.children&&h.children.length>0;!r&&a(n({},x,{node:h,searchQuery:o}))&&(d===i&&(m=!0),d+=1,f=!0);let D=p;const w=n({},h);return y&&(w.children=w.children.map((e=>{const t=c({node:e,currentIndex:D+1,path:b});return t.node.expanded?D=t.treeIndex:D+=1,(t.matches.length>0||t.hasFocusMatch)&&(u=[...u,...t.matches],t.hasFocusMatch&&(m=!0),(l&&t.matches.length>0||(l||s)&&t.hasFocusMatch)&&(w.expanded=!0)),t.node}))),r||w.expanded||(u=u.map((e=>n({},e,{treeIndex:null})))),f&&(u=[n({},x,{node:w}),...u]),{node:u.length>0?w:h,matches:u,hasFocusMatch:m,treeIndex:D}},h=c({node:{children:r},isPseudoRoot:!0,currentIndex:-1});return{matches:h.matches,treeData:h.node.children}}r.d(t,{o5:()=>i,_p:()=>d,Vk:()=>h,Gm:()=>p,ZF:()=>g,Lf:()=>f,Pg:()=>m,SG:()=>b,hh:()=>x,sE:()=>y,ZP:()=>D});const D={find:y,getDepth:x,isDescendant:b,getTreeFromFlatData:function(e){let{flatData:t,getKey:r=(e=>e.id),getParentKey:o=(e=>e.parentId),rootKey:a="0"}=e;if(!t)return[];const i={};if(t.forEach((e=>{const t=o(e);t in i?i[t].push(e):i[t]=[e]})),!(a in i))return[];const l=e=>{const t=r(e);return t in i?n({},e,{children:i[t].map((e=>l(e)))}):n({},e)};return i[a].map((e=>l(e)))},getFlatDataFromTree:m,insertNode:f,addNodeUnderParent:function(e){let{treeData:t,newNode:r,parentKey:o=null,getNodeKey:a,ignoreCollapsed:l=!0,expandParent:s=!1,addAsFirstChild:d=!1}=e;if(null===o)return d?{treeData:[r,...t||[]],treeIndex:0}:{treeData:[...t||[],r],treeIndex:(t||[]).length};let h=null,p=!1;const g=c({treeData:t,getNodeKey:a,ignoreCollapsed:l,callback:e=>{let{node:t,treeIndex:a,path:c}=e;const g=c?c[c.length-1]:null;if(p||g!==o)return t;p=!0;const u=n({},t);if(s&&(u.expanded=!0),!u.children)return h=a+1,n({},u,{children:[r]});if("function"==typeof u.children)throw new Error("Cannot add to children defined by a function");let f=a+1;for(let e=0;e<u.children.length;e+=1)f+=1+i({node:u.children[e],ignoreCollapsed:l});return h=f,n({},u,{children:d?[r,...u.children]:[...u.children,r]})}});if(!p)throw new Error("No node found with the given key.");return{treeData:g,treeIndex:h}},getNodeAtPath:function(e){let{treeData:t,path:r,getNodeKey:n,ignoreCollapsed:o=!0}=e,a=null;try{p({treeData:t,path:r,getNodeKey:n,ignoreCollapsed:o,newNode:e=>{let{node:t,treeIndex:r}=e;return a={node:t,treeIndex:r},t}})}catch(e){}return a},removeNode:g,removeNodeAtPath:function(e){let{treeData:t,path:r,getNodeKey:n,ignoreCollapsed:o=!0}=e;return p({treeData:t,path:r,getNodeKey:n,ignoreCollapsed:o,newNode:null})},changeNodeAtPath:p,toggleExpandedForAll:h,map:c,walk:d,getVisibleNodeInfoAtIndex:function(e){let{treeData:t,index:r,getNodeKey:n}=e;if(!t||t.length<1)return null;const o=a({targetIndex:r,getNodeKey:n,node:{children:t,expanded:!0},currentIndex:-1,path:[],lowerSiblingCounts:[],isPseudoRoot:!0});return o.node?o:null},getVisibleNodeCount:function(e){let{treeData:t}=e;const r=e=>e.children&&!0===e.expanded&&"function"!=typeof e.children?1+e.children.reduce(((e,t)=>e+r(t)),0):1;return t.reduce(((e,t)=>e+r(t)),0)},getDescendantCount:i}},43775:(e,t,r)=>{r.d(t,{Z:()=>h});var n=r(24328),o=r.n(n),a=r(13980),i=r.n(a),l=r(94079);const s=(0,r(79692).Z)({onlyValue:{color:"rgba(0,0,0,.6)",fontSize:"13px",fontWeight:"normal",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},select:{fontSize:"13px",color:"rgba(0,0,0,.6)",paddingLeft:"15px","&&":{paddingRight:"35px"}},selectMenu:{"& li":{fontSize:"13px",height:"32px"}},textField:{maxWidth:"100%"}});var d=r(79026);const c=e=>{let{value:t,onChange:r,options:a,classes:i={},emptyLabel:c}=e;const h=s(),[p,...g]=a,u=0===g.length;(0,n.useEffect)((()=>{u&&t!==p.value&&r(p.value)}),[p.value]);const f=!!c;return o().createElement("div",{className:i.root},u?o().createElement(l.Typography,{className:i.onlyValue||h.onlyValue,variant:"h6"},p.label):o().createElement(d.Z,{displayEmpty:f,disableUnderline:!0,classes:{select:i.select||h.select},TextFieldProps:{classes:{root:i.textField||h.textField}},MenuProps:{classes:{list:i.selectMenu||h.selectMenu}},value:t||"",entries:f?[{value:"",label:c},...a]:a,onChange:e=>r(e||null)}))};c.propTypes={value:i().string,onChange:i().func,options:i().arrayOf(i().shape({value:i().string,label:i().string})),classes:i().shape({root:i().string,onlyValue:i().string,select:i().string,selectMenu:i().string,textField:i().string}),emptyLabel:i().string};const h=c},8962:(e,t,r)=>{r.d(t,{Z:()=>R});var n=r(52730),o=r(49885),a=r(24328),i=r.n(a),l=r(57014),s=r(71153),d=r.n(s),c=r(87918),h=r.n(c),p=r(94079),g=r(60995),u=r(10237),f=r(93416),m=r(80931),b=r(8261),x=r(79692);const y=(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)"}}),D=(0,n.connect)((e=>({metadata:o.ZP.selectors.getMetadata(e)})))((e=>{let{className:t,entity:r={},metadata:s,caption:c="",excludeUris:x=[],includeUris:D=[],attributesCount:w=16}=e;const I=y(),N=(0,n.useSelector)(o.ZP.selectors.getPivotingAttributes),_=(0,a.useMemo)((()=>(0,b.U)(s,r.type,D,x)),[x,D,s,r.type]),v=(0,l.fyF)(_,r).filter((e=>{let{values:t}=e;return!(0,l.O27)(t)})).length>0;return v||!(0,l.O27)(c)?i().createElement(g.J.Provider,{value:N},i().createElement(u.Z,{className:t},c&&i().createElement(f.Z,{className:I.header,title:c}),i().createElement(p.Box,{className:d()(I.attributesContainer,{[I.noCaption]:!c})},v?i().createElement(m.Z,{entity:r,attrTypes:_,parentUri:r.uri,drawLines:!1,max:w}):i().createElement(p.Typography,{className:I.noData},h().text("No data found"))))):null}));var w=r(17440),I=r(91262),N=r(39450),_=r(66784);const v=(0,x.Z)({attributesContainer:{overflow:"hidden",padding:"0 16px 16px 16px"},header:{marginBottom:"4px"},noCaption:{paddingTop:"16px"}});function C(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){P(e,t,r[t])}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const O=(0,n.connect)((e=>({metadata:o.ZP.selectors.getMetadata(e)})))((e=>{let{className:t,entity:r={},mode:s,metadata:c,caption:h="",excludeUris:g=[],includeUris:m=[],pinnedAttributes:x}=e;const y=v(),D=(0,n.useDispatch)(),P=(0,a.useContext)(N.m),O=(0,n.useSelector)(o.ZP.selectors.getUserRoles),T=(0,a.useMemo)((()=>(0,l.mC3)(x,O)),[x,O]),S=(0,n.useSelector)((e=>o.ZP.selectors.getModifiedEntity(e,r.uri)||{})),R=(0,a.useMemo)((()=>(0,b.U)(c,S.type,m,g)),[g,m,c,S.type]),A=(0,a.useCallback)((e=>(0,w.pipe)(o.N5.actions.addAttributes,D)(e.map((e=>C({},e,{viewId:P}))))),[P,D]),E=(0,a.useCallback)((e=>(0,w.pipe)(o.N5.actions.modifyAttribute,D)(C({},e,{viewId:P}))),[P,D]),k=(0,a.useCallback)((e=>(0,w.pipe)(o.N5.actions.removeAttribute,D)(C({},e,{viewId:P}))),[P,D]);return i().createElement(u.Z,{className:t},h&&i().createElement(f.Z,{className:y.header,title:h}),i().createElement(p.Box,{className:d()(y.attributesContainer,{[y.noCaption]:!h})},i().createElement(_.c.Provider,{value:T},i().createElement(I.Z,{entity:S,attrTypes:R,parentUri:S.uri,drawLines:!1,mode:s,showEmptyEditors:(0,l.ZiX)(S.uri),crosswalks:S.crosswalks,onAddAttributes:A,onChangeAttribute:E,onDeleteAttribute:k}))))}));var T=r(3185);function S(){return S=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},S.apply(this,arguments)}const R=(0,n.connect)(((e,t)=>({entity:t.entity||o.ZP.selectors.getEntityWithDiff(e),mode:t.mode||o.ZP.selectors.getMode(e)})))((e=>{let{mode:t=l.ARY.Viewing,attributesCount:r,pinnedAttributes:n,entity:o}=e,a=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,["mode","attributesCount","pinnedAttributes","entity"]);return i().createElement(T.u.Provider,{value:o},(0,l.uzs)(t)?i().createElement(D,S({attributesCount:r,entity:o},a)):i().createElement(O,S({mode:t,pinnedAttributes:n,entity:o},a)))}))},92898:(e,t,r)=>{r.d(t,{q:()=>o});var n=r(24328);const o=(e,t)=>{const r=(0,n.useRef)(!1);(0,n.useEffect)((()=>{t&&!r.current&&(r.current=!0,e())}),[e,t])}}}]);
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[4015],{10237:(e,t,r)=>{r.d(t,{Z:()=>g});var n=r(27556),o=r(13980),a=r.n(o),i=r(24328),l=r.n(i);function s(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){d(e,t,r[t])}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c=(0,r(79692).Z)((e=>({"basic-view__paper":s({display:"flex",flexDirection:"column"},e.basicView)})));function h(){return h=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},h.apply(this,arguments)}const p=(0,i.forwardRef)(((e,t)=>{let{children:r,className:o}=e,a=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,["children","className"]);const i=c();return l().createElement(n.Z,h({ref:t,className:o,classes:{root:i["basic-view__paper"]}},a),r)}));p.displayName="BasicView",p.propTypes={children:a().node,className:a().string};const g=p},93416:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),o=r.n(n),a=r(71153),i=r.n(a),l=r(92778);const s=(0,r(79692).Z)({container:{padding:"0 16px",minHeight:"48px"},title:{fontSize:"16px",lineHeight:"19px",paddingTop:"16px",paddingBottom:"13px",justifyContent:"flex-start"}}),d=e=>{let{className:t,title:r,children:n}=e;const a=s();return o().createElement(l.Z,{title:r,classes:{root:i()(a.container,t),title:a.title}},n)}},55400:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(24328),o=r.n(n);const a=(0,r(79692).Z)({link:{textDecoration:"inherit",color:"inherit","&:visited":{textDecoration:"inherit",color:"inherit"}}}),i=e=>{let{to:t,children:r,onClick:n}=e;const i=a();return o().createElement("a",{href:t,onClick:e=>{n&&(n(),e.stopPropagation(),e.preventDefault())},className:i.link},r)}},37014:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(24328),o=r.n(n),a=r(27950);const i=e=>{let{className:t}=e;return o().createElement("img",{className:t,alt:"loading",src:(0,a.Uw1)("R0lGODlhFQALAKIAAP///8Hf75vL5Van0wB4v////wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCgAFACwAAAIAFQAHAAADLFi6zPSQFEGpGhgXkrEUQShc1bB1wxcGYzGUZ6eKJGVy8lS1aJxJjaAiAkkAACH5BAkKAAUALAAAAwAUAAUAAAMiWLFbJRC6QakCODjBxIzDlW3dB4UBBmhPWQygwrCR9FZDAgAh+QQJCgAFACwIAAMADAAFAAADFBiqVfIvgBmaWHeC6rCklrdw0JMAACH5BAkKAAUALAAAAgAUAAcAAAMkSLpU/vCRQWmLLmg967hYAIxBV4GRSJoWlo1A6X1usXGMUkcJACH5BAkKAAUALAAAAgAOAAcAAAMdWLpF/qSMORudcYg97M2b0BHXAHIelV0pxizQkwAAOw==")})}},58600:(e,t,r)=>{r.d(t,{ZP:()=>U});var n=r(24328),o=r.n(n),a=r(13980),i=r.n(a),l=r(12335),s=r(17440),d=r(67121),c=r(13896),h=r(46847),p=r(15459),g=r(6521);function u(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}var f=r(79692);const m=(0,f.Z)((()=>({"@global .rst__node":{minWidth:"100%",whiteSpace:"nowrap",position:"relative",textAlign:"left"},"@global .rst__node.rst__rtl":{textAlign:"right"},"@global .rst__nodeContent":{position:"absolute",top:0,bottom:0},"@global .rst__lineBlock, .rst__absoluteLineBlock":{height:"100%",position:"relative",display:"inline-block"},"@global .rst__absoluteLineBlock":{position:"absolute",top:0},"@global .rst__lineHalfHorizontalRight::before, .rst__lineFullVertical::after, .rst__lineHalfVerticalTop::after, .rst__lineHalfVerticalBottom::after":{position:"absolute",content:"",backgroundColor:"black"},"@global .rst__lineHalfHorizontalRight::before":{height:"1px",top:"50%",right:0,width:"50%"},"@global .rst__rtl.rst__lineHalfHorizontalRight::before":{left:0,right:"initial"},"@global .rst__lineFullVertical::after, .rst__lineHalfVerticalTop::after, .rst__lineHalfVerticalBottom::after":{width:"1px",left:"50%",top:0,height:"100%"},"@global .rst__rtl.rst__lineFullVertical::after, .rst__rtl.rst__lineHalfVerticalTop::after, .rst__rtl.rst__lineHalfVerticalBottom::after":{right:"50%",left:"initial"},"@global .rst__lineHalfVerticalTop::after":{height:"50%"},"@global .rst__lineHalfVerticalBottom::after":{top:"auto",bottom:0,height:"50%"},"@global .rst__highlightLineVertical":{zIndex:3},"@global .rst__highlightLineVertical::before":{position:"absolute",content:"",backgroundColor:"#36c2f6",width:"8px",marginLeft:"-4px",left:"50%",top:0,height:"100%"},"@global .rst__rtl.rst__highlightLineVertical::before":{marginLeft:"initial",marginRight:"-4px",left:"initial",right:"50%"},"@keyframes arrow-pulse":{"0%":{transform:"translate(0, 0)",opacity:0},"30%":{transform:"translate(0, 300%)",opacity:1},"70%":{transform:"translate(0, 700%)",opacity:1},"100%":{transform:"translate(0, 1000%)",opacity:0}},"@global .rst__highlightLineVertical::after":{content:"",position:"absolute",height:0,marginLeft:"-4px",left:"50%",top:0,borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"4px solid white",animation:"arrow-pulse 1s infinite linear both"},"@global .rst__rtl.rst__highlightLineVertical::after":{marginLeft:"initial",marginRight:"-4px",right:"50%",left:"initial"},"@global .rst__highlightTopLeftCorner::before":{zIndex:3,content:"",position:"absolute",borderTop:"solid 8px #36c2f6",borderLeft:"solid 8px #36c2f6",boxSizing:"border-box",height:"calc(50% + 4px)",top:"50%",marginTop:"-4px",right:0,width:"calc(50% + 4px)"},"@global .rst__rtl.rst__highlightTopLeftCorner::before":{borderRight:"solid 8px #36c2f6",borderLeft:"none",left:0,right:"initial"},"@global .rst__highlightBottomLeftCorner":{zIndex:3},"@global .rst__highlightBottomLeftCorner::before":{content:"",position:"absolute",borderBottom:"solid 8px #36c2f6",borderLeft:"solid 8px #36c2f6",boxSizing:"border-box",height:"calc(100% + 4px)",top:0,right:"12px",width:"calc(50% - 8px)"},"@global .rst__rtl.rst__highlightBottomLeftCorner::before":{borderRight:"solid 8px #36c2f6",borderLeft:"none",left:"12px",right:"initial"},"@global .rst__highlightBottomLeftCorner::after":{content:"",position:"absolute",height:0,right:0,top:"100%",marginTop:"-12px",borderTop:"12px solid transparent",borderBottom:"12px solid transparent",borderLeft:"12px solid #36c2f6"},"@global .rst__rtl.rst__highlightBottomLeftCorner::after":{left:0,right:"initial",borderRight:"12px solid #36c2f6",borderLeft:"none"}})));function b(){return b=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},b.apply(this,arguments)}const x=e=>{let{children:t,listIndex:r,swapFrom:a,swapLength:i,swapDepth:l,scaffoldBlockPxWidth:s,lowerSiblingCounts:d,connectDropTarget:c,isOver:h,draggedNode:p,canDrop:g,treeIndex:f,treeId:x,getPrevRow:y,node:D,path:w,rowDirection:I}=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,["children","listIndex","swapFrom","swapLength","swapDepth","scaffoldBlockPxWidth","lowerSiblingCounts","connectDropTarget","isOver","draggedNode","canDrop","treeIndex","treeId","getPrevRow","node","path","rowDirection"]);m();const _="rtl"===I?"rst__rtl":null,v=d.length,C=[];let P;return d.forEach(((e,t)=>{let n="";if(e>0?n=0===r?"rst__lineHalfHorizontalRight rst__lineHalfVerticalBottom":t===v-1?"rst__lineHalfHorizontalRight rst__lineFullVertical":"rst__lineFullVertical":0===r?n="rst__lineHalfHorizontalRight":t===v-1&&(n="rst__lineHalfVerticalTop rst__lineHalfHorizontalRight"),C.push(o().createElement("div",{key:`pre_${1+t}`,style:{width:s},className:u("rst__lineBlock",n,_)})),f!==r&&t===l){let e,n="";n=r===a+i-1?"rst__highlightBottomLeftCorner":f===a?"rst__highlightTopLeftCorner":"rst__highlightLineVertical",e="rtl"===I?{width:s,right:s*t}:{width:s,left:s*t},C.push(o().createElement("div",{key:t,style:e,className:u("rst__absoluteLineBlock",n,_)}))}})),P="rtl"===I?{right:s*v}:{left:s*v},c(o().createElement("div",b({},N,{className:u("rst__node",_)}),C,o().createElement("div",{className:"rst__nodeContent",style:P},n.Children.map(t,(e=>(0,n.cloneElement)(e,{isOver:h,canDrop:g,draggedNode:p}))))))};x.defaultProps={swapFrom:null,swapDepth:null,swapLength:null,canDrop:!1,draggedNode:null,rowDirection:"ltr"},x.propTypes={treeIndex:i().number.isRequired,treeId:i().string.isRequired,swapFrom:i().number,swapDepth:i().number,swapLength:i().number,scaffoldBlockPxWidth:i().number.isRequired,lowerSiblingCounts:i().arrayOf(i().number).isRequired,listIndex:i().number.isRequired,children:i().node.isRequired,connectDropTarget:i().func.isRequired,isOver:i().bool.isRequired,canDrop:i().bool,draggedNode:i().shape({}),getPrevRow:i().func.isRequired,node:i().shape({}).isRequired,path:i().arrayOf(i().oneOfType([i().string,i().number])).isRequired,rowDirection:i().string};const y=x;var D=r(21113);function w(){return w=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},w.apply(this,arguments)}function I(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){N(e,t,r[t])}))}return e}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _=e=>{let{scaffoldBlockPxWidth:t,toggleChildrenVisibility:r,connectDragPreview:n,connectDragSource:a,isDragging:i,canDrop:l,canDrag:s,node:d,title:c,subtitle:h,draggedNode:p,path:g,treeIndex:f,isSearchMatch:m,isSearchFocus:b,buttons:x,className:y,style:N,didDrop:_,treeId:v,isOver:C,parentNode:P,rowDirection:O}=e,T=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,["scaffoldBlockPxWidth","toggleChildrenVisibility","connectDragPreview","connectDragSource","isDragging","canDrop","canDrag","node","title","subtitle","draggedNode","path","treeIndex","isSearchMatch","isSearchFocus","buttons","className","style","didDrop","treeId","isOver","parentNode","rowDirection"]);const S=c||d.title,R=h||d.subtitle,A="rtl"===O?"rst__rtl":null;let E;s&&(E="function"==typeof d.children&&d.expanded?o().createElement("div",{className:"rst__loadingHandle"},o().createElement("div",{className:"rst__loadingCircle"},[...new Array(12)].map(((e,t)=>o().createElement("div",{key:t,className:u("rst__loadingCirclePoint",A)}))))):a(o().createElement("div",{className:"rst__moveHandle"}),{dropEffect:"copy"}));const k=p&&(0,D.SG)(p,d),M=!_&&i;let L={left:-.5*t};return"rtl"===O&&(L={right:-.5*t}),o().createElement("div",w({style:{height:"100%"}},T),r&&d.children&&(d.children.length>0||"function"==typeof d.children)&&o().createElement("div",null,o().createElement("button",{type:"button","aria-label":d.expanded?"Collapse":"Expand",className:u(d.expanded?"rst__collapseButton":"rst__expandButton",A),style:L,onClick:()=>r({node:d,path:g,treeIndex:f})}),d.expanded&&!i&&o().createElement("div",{style:{width:t},className:u("rst__lineChildren",A)})),o().createElement("div",{className:u("rst__rowWrapper",A)},n(o().createElement("div",{className:u("rst__row",M&&"rst__rowLandingPad",M&&!l&&"rst__rowCancelPad",m&&"rst__rowSearchMatch",b&&"rst__rowSearchFocus",A,y),style:I({opacity:k?.5:1},N)},E,o().createElement("div",{className:u("rst__rowContents",!s&&"rst__rowContentsDragDisabled",A)},o().createElement("div",{className:u("rst__rowLabel",A)},o().createElement("span",{className:u("rst__rowTitle",d.subtitle&&"rst__rowTitleWithSubtitle")},"function"==typeof S?S({node:d,path:g,treeIndex:f}):S),R&&o().createElement("span",{className:"rst__rowSubtitle"},"function"==typeof R?R({node:d,path:g,treeIndex:f}):R)),o().createElement("div",{className:"rst__rowToolbar"},x.map(((e,t)=>o().createElement("div",{key:t,className:"rst__toolbarButton"},e)))))))))};_.defaultProps={isSearchMatch:!1,isSearchFocus:!1,canDrag:!1,toggleChildrenVisibility:null,buttons:[],className:"",style:{},parentNode:null,draggedNode:null,canDrop:!1,title:null,subtitle:null,rowDirection:"ltr"},_.propTypes={node:i().shape({}).isRequired,title:i().oneOfType([i().func,i().node]),subtitle:i().oneOfType([i().func,i().node]),path:i().arrayOf(i().oneOfType([i().string,i().number])).isRequired,treeIndex:i().number.isRequired,treeId:i().string.isRequired,isSearchMatch:i().bool,isSearchFocus:i().bool,canDrag:i().bool,scaffoldBlockPxWidth:i().number.isRequired,toggleChildrenVisibility:i().func,buttons:i().arrayOf(i().node),className:i().string,style:i().shape({}),connectDragPreview:i().func.isRequired,connectDragSource:i().func.isRequired,parentNode:i().shape({}),isDragging:i().bool.isRequired,didDrop:i().bool.isRequired,draggedNode:i().shape({}),isOver:i().bool.isRequired,canDrop:i().bool,rowDirection:i().string};const v=_;function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class P extends n.Component{render(){const e=this.props,{children:t,connectDropTarget:r,treeId:a,drop:i}=e,l=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,["children","connectDropTarget","treeId","drop"]);return r(o().createElement("div",null,n.Children.map(t,(e=>(0,n.cloneElement)(e,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){C(e,t,r[t])}))}return e}({},l))))))}}P.defaultProps={canDrop:!1,draggedNode:null},P.propTypes={children:i().node.isRequired,connectDropTarget:i().func.isRequired,isOver:i().bool.isRequired,canDrop:i().bool,draggedNode:i().shape({}),treeId:i().string.isRequired,drop:i().func.isRequired};const O=P,T=(0,f.Z)((()=>({"@global .rst__placeholder":{position:"relative",height:"68px",maxWidth:"300px",padding:"10px"},"@global .rst__placeholder, .rst__placeholder > *":{boxSizing:"border-box"},"@global .rst__placeholder::before":{border:"3px dashed #d9d9d9",content:"",position:"absolute",top:"5px",right:"5px",bottom:"5px",left:"5px",zIndex:-1},"@global .rst__placeholderLandingPad, .rst__placeholderCancelPad":{border:"none !important",boxShadow:"none !important",outline:"none !important"},"@global .rst__placeholderLandingPad *, .rst__placeholderCancelPad *":{opacity:"0 !important"},"@global .rst__placeholderLandingPad::before, .rst__placeholderCancelPad::before":{backgroundColor:"lightblue",borderColor:"white"},"@global .rst__placeholderCancelPad::before":{backgroundColor:"#e6a8ad"}}))),S=e=>{let{isOver:t,canDrop:r}=e;return T(),o().createElement("div",{className:u("rst__placeholder",r&&"rst__placeholderLandingPad",r&&!t&&"rst__placeholderCancelPad")})};S.defaultProps={isOver:!1,canDrop:!1},S.propTypes={isOver:i().bool,canDrop:i().bool};const R=S,A=e=>{let t=[],r=[],n=null;return o=>{const a=Object.keys(o).sort(),i=a.map((e=>o[e]));return(i.length!==t.length||i.some(((e,r)=>e!==t[r]))||a.some(((e,t)=>e!==r[t])))&&(t=i,r=a,n=e(o)),n}},E=A(D.Lf),k=A(D.Pg),M=A(D.o5);var L=r(65758),F=r(75047);class j{constructor(e){this.hoverHandler=()=>{if(null===this.hoverProps)return;const{dropTargetProps:e,monitor:t,component:r}=this.hoverProps,n=t.getItem();if(!n)return;const o=this.getTargetDepth(e,t,r),a=n.node;(e.node!==this.lastDropTargetNode||o!==this.lastDropTargetDepth)&&(this.lastDropTargetNode=e.node,this.lastDropTargetDepth=o,this.dragHover({node:a,path:n.path,minimumTreeIndex:e.listIndex,depth:o}),this.hoverProps=null)},this.deferredCallHoverHandler=()=>{if(this.shouldSkipMoreFrames)return this.shouldSkipMoreFrames=!1,void(this.rafId=requestAnimationFrame(this.deferredCallHoverHandler));this.rafId=null,this.hoverHandler()},this.treeRef=e,this.resetDragVariables()}get startDrag(){return this.treeRef.startDrag}get dragHover(){return this.treeRef.dragHover}get endDrag(){return this.treeRef.endDrag}get drop(){return this.treeRef.drop}get treeId(){return this.treeRef.treeId}get dndType(){return this.treeRef.dndType}get treeData(){return this.treeRef.state.draggingTreeData||this.treeRef.props.treeData}get getNodeKey(){return this.treeRef.props.getNodeKey}get customCanDrop(){return this.treeRef.props.canDrop}get maxDepth(){return this.treeRef.props.maxDepth}resetDragVariables(){this.lastDropTargetNode=null,this.lastDropTargetDepth=null,this.hoverProps=null,this.lastCanDropResult=null,this.lastCanDropProps=null,this.shouldSkipMoreFrames=!1,this.rafId=null}getTargetDepth(e,t,r){let n=0;const o=e.getPrevRow();if(o){let{path:t}=o;!this.treeRef.canNodeHaveChildren(o.node)&&(t=t.slice(0,t.length-1)),n=Math.min(t.length,e.path.length)}let a,i=(t.getItem().path||[]).length;if(t.getItem().treeId!==this.treeId)if(i=0,r){const n=(0,F.findDOMNode)(r).getBoundingClientRect(),o=t.getSourceClientOffset().x-n.left;a=Math.round(o/e.scaffoldBlockPxWidth)}else a=e.path.length;else{const r="rtl"===e.rowDirection?-1:1;a=Math.round(r*t.getDifferenceFromInitialOffset().x/e.scaffoldBlockPxWidth)}let l=Math.min(n,Math.max(0,i+a-1));if(void 0!==this.maxDepth&&null!==this.maxDepth){const e=t.getItem().node,r=(0,D.hh)(e);l=Math.max(0,Math.min(l,this.maxDepth-r-1))}return l}canDrop(e,t){if(!t.isOver())return!1;const r=e.getPrevRow(),n=r?r.path:[],o=r?r.node:{},a=Math.round(t.getDifferenceFromInitialOffset().x/e.scaffoldBlockPxWidth),i={nodeId:void 0!==e.node.nodeId?e.node.nodeId:e.node,rowAbove:r,abovePath:n,aboveNodeId:void 0!==o.nodeId?o.nodeId:o,blocksOffset:a};if((0,s.equals)(this.lastCanDropProps,i))return this.lastCanDropResult;this.lastCanDropProps=i;const l=this.getTargetDepth(e,t,null);if(l>=n.length&&"function"==typeof o.children)return this.lastCanDropResult=!1;if("function"==typeof this.customCanDrop){const{node:r}=t.getItem(),n=E({treeData:this.treeData,newNode:r,depth:l,getNodeKey:this.getNodeKey,minimumTreeIndex:e.listIndex,expandParent:!0});return this.lastCanDropResult=this.customCanDrop({node:r,prevPath:t.getItem().path,prevParent:t.getItem().parentNode,prevTreeIndex:t.getItem().treeIndex,nextPath:n.path,nextParent:n.parentNode,nextTreeIndex:n.treeIndex})}return this.lastCanDropResult=!0}wrapSource(e){const t={beginDrag:e=>(this.startDrag(e),{node:e.node,parentNode:e.parentNode,path:e.path,treeIndex:e.treeIndex,treeId:e.treeId}),endDrag:(e,t)=>{this.rafId&&cancelAnimationFrame(this.rafId),this.endDrag(t.getDropResult()),this.resetDragVariables()},isDragging:(e,t)=>{const r=t.getItem().node;return e.node===r}};return(0,c.DragSource)(this.dndType,t,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging(),didDrop:t.didDrop()}}))(e)}wrapTarget(e){const t={drop:(e,t,r)=>{this.rafId&&cancelAnimationFrame(this.rafId);const n={node:t.getItem().node,path:t.getItem().path,treeIndex:t.getItem().treeIndex,treeId:this.treeId,minimumTreeIndex:e.treeIndex,depth:this.getTargetDepth(e,t,r)};return this.lastDropTargetNode=null,this.drop(n),n},hover:(e,t,r)=>{this.rafId?this.shouldSkipMoreFrames=!0:(this.shouldSkipMoreFrames=!1,this.hoverProps={dropTargetProps:e,monitor:t,component:r},this.rafId=requestAnimationFrame(this.deferredCallHoverHandler))},canDrop:this.canDrop.bind(this)};return(0,c.DropTarget)(this.dndType,t,(function(e,t){const r=t.getItem();return{connectDropTarget:e.dropTarget(),isOver:t.isOver(),canDrop:t.canDrop(),draggedNode:r?r.node:null}}))(e)}wrapPlaceholder(e){const t={drop:(e,t)=>{const{node:r,path:n,treeIndex:o}=t.getItem(),a={node:r,path:n,treeIndex:o,treeId:this.treeId,minimumTreeIndex:0,depth:0};return this.drop(a),a}};return(0,c.DropTarget)(this.dndType,t,(function(e,t){const r=t.getItem();return{connectDropTarget:e.dropTarget(),isOver:t.isOver(),canDrop:t.canDrop(),draggedNode:r?r.node:null}}))(e)}}function K(){return K=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},K.apply(this,arguments)}function V(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){H(e,t,r[t])}))}return e}function H(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let B=1;const z=e=>{const t=V({},e,{style:V({},e.theme.style,e.style),innerStyle:V({},e.theme.innerStyle,e.innerStyle),reactVirtualizedListProps:V({},e.theme.reactVirtualizedListProps,e.reactVirtualizedListProps)}),r={nodeContentRenderer:v,placeholderRenderer:R,rowHeight:62,scaffoldBlockPxWidth:44,slideRegionSize:100,treeNodeRenderer:y};return Object.keys(r).forEach((n=>{null===e[n]&&(t[n]=void 0!==e.theme[n]?e.theme[n]:r[n])})),t};class Z extends n.Component{constructor(e){super(e);const{dndType:t,nodeContentRenderer:r,treeNodeRenderer:n,isVirtualized:o,slideRegionSize:a}=z(e);this.dndManager=new j(this),this.treeId=`rst__${B}`,B+=1,this.dndType=t||this.treeId,this.nodeContentRenderer=this.dndManager.wrapSource(r),this.treePlaceholderRenderer=this.dndManager.wrapPlaceholder(O),this.treeNodeRenderer=this.dndManager.wrapTarget(n),o&&(this.scrollZoneVirtualList=(d._t||d.ZP)(l.aV),this.vStrength=(0,d.Kx)(a),this.hStrength=(0,d.v7)(a)),this.state={draggingTreeData:null,draggedNode:null,draggedMinimumTreeIndex:null,draggedDepth:null,searchMatches:[],searchFocusTreeIndex:null,dragging:!1,draggingExpandedPaths:[],ignoreOneTreeUpdate:!1,instanceProps:{treeData:this.props.treeData||[],searchQuery:null,searchFocusOffset:null,ignoreTreeChanges:!1}},this.toggleChildrenVisibility=this.toggleChildrenVisibility.bind(this),this.moveNode=this.moveNode.bind(this),this.startDrag=this.startDrag.bind(this),this.dragHover=this.dragHover.bind(this),this.endDrag=this.endDrag.bind(this),this.drop=this.drop.bind(this),this.handleDndMonitorChange=this.handleDndMonitorChange.bind(this)}componentDidMount(){Z.loadLazyChildren(this.props);const e=Z.search(this.props,this.state,!0,!0,!1);this.setState(e),this.clearMonitorSubscription=this.props.dragDropManager.getMonitor().subscribeToStateChange(this.handleDndMonitorChange)}static getDerivedStateFromProps(e,t){const{instanceProps:r}=t,n={};return(0,s.equals)(r.searchQuery,e.searchQuery)?r.searchFocusOffset!==e.searchFocusOffset&&Object.assign(n,Z.search(e,t,!0,!0,!0)):Object.assign(n,Z.search(e,t,!0,!0,!1)),r.searchQuery=e.searchQuery,r.searchFocusOffset=e.searchFocusOffset,n.instanceProps=r,n}componentDidUpdate(e,t){if(this.state.dragging!==t.dragging&&this.props.onDragStateChanged&&this.props.onDragStateChanged({isDragging:this.state.dragging,draggedNode:this.state.draggedNode}),this.state.dragging)if((0,s.equals)(this.props.treeData,e.treeData))this.state.draggingTreeData&&t.draggingTreeData!==this.state.draggingTreeData&&(0,D._p)({treeData:this.state.draggingTreeData,getNodeKey:this.props.getNodeKey,callback:e=>{let{node:t,path:r,lowerSiblingCounts:n,treeIndex:o}=e;t.pending&&t.expanded&&this.props.onLazyLoadChildren({node:t,path:r,lowerSiblingCounts:n,treeIndex:o})}});else{const{treeData:e}=(0,D.ZF)({treeData:this.props.treeData,path:t.draggedPath,getNodeKey:this.props.getNodeKey});this.setState((t=>{let{draggingExpandedPaths:r}=t;return{draggingTreeData:r.reduce(((e,t)=>{let r;try{r=(0,D.Gm)({treeData:e,path:t,newNode:e=>{let{node:t}=e;return V({},t,{expanded:!0})},getNodeKey:this.props.getNodeKey})}catch(t){r=e}return r}),e)}}))}else if(this.props.treeData!==e.treeData){const t=(0,s.equals)(this.props.treeData,e.treeData),{ignoreOneTreeUpdate:r,instanceProps:n}=this.state,o={};t||(r?o.ignoreOneTreeUpdate=!1:(o.searchFocusTreeIndex=null,Z.loadLazyChildren(this.props),Object.assign(o,Z.search(this.props,this.state,!1,!1,!1))),o.draggingTreeData=null,o.draggedNode=null,o.draggedMinimumTreeIndex=null,o.draggedDepth=null,o.dragging=!1,o.draggingExpandedPaths=[],o.instanceProps=V({},n,{treeData:this.props.treeData}),this.setState(o))}}componentWillUnmount(){this.clearMonitorSubscription()}getRows(e){return k({ignoreCollapsed:!0,getNodeKey:this.props.getNodeKey,treeData:e})}handleDndMonitorChange(){!this.props.dragDropManager.getMonitor().isDragging()&&this.state.draggingTreeData&&this.endDrag()}toggleChildrenVisibility(e){let{node:t,path:r}=e;const{instanceProps:n}=this.state,o=(0,D.Gm)({treeData:n.treeData,path:r,newNode:e=>{let{node:t}=e;return V({},t,{expanded:!t.expanded})},getNodeKey:this.props.getNodeKey});this.props.onChange(o),this.props.onVisibilityToggle({treeData:o,node:t,expanded:!t.expanded,path:r})}moveNode(e){let{node:t,path:r,treeIndex:n,depth:o,minimumTreeIndex:a}=e;const{treeData:i,treeIndex:l,path:s,parentNode:d}=(0,D.Lf)({treeData:this.state.draggingTreeData,newNode:t,depth:o,minimumTreeIndex:a,expandParent:!0,getNodeKey:this.props.getNodeKey});this.setState({draggingTreeData:null,draggedNode:null,draggedMinimumTreeIndex:null,draggedDepth:null,dragging:!1,draggingExpandedPaths:[]},(()=>{this.props.onChange(i),this.props.onMoveNode({treeData:i,node:t,treeIndex:l,path:s,nextPath:s,nextTreeIndex:l,prevPath:r,prevTreeIndex:n,nextParentNode:d})}))}static search(e,t,r,n,o){const{onChange:a,getNodeKey:i,searchFinishCallback:l,searchQuery:s,searchMethod:d,searchFocusOffset:c,onlyExpandSearchedNodes:h}=e,{instanceProps:p}=t;if(!s&&!d)return l&&l([]),{searchMatches:[]};const g={},{treeData:u,matches:f}=(0,D.sE)({getNodeKey:i,treeData:h?(0,D.Vk)({treeData:p.treeData,expanded:!1}):p.treeData,searchQuery:s,searchMethod:d||L.v2,searchFocusOffset:c,expandAllMatchPaths:n&&!o,expandFocusMatchPaths:!!n});n&&(g.ignoreOneTreeUpdate=!0,a(u)),l&&l(f);let m=null;return r&&null!==c&&c<f.length&&(m=f[c].treeIndex),g.searchMatches=f,g.searchFocusTreeIndex=m,g}startDrag(e){let{path:t}=e;this.setState((e=>{const{treeData:r,node:n,treeIndex:o}=(0,D.ZF)({treeData:e.instanceProps.treeData,path:t,getNodeKey:this.props.getNodeKey});return{draggingTreeData:r,draggedNode:n,draggedDepth:t.length-1,draggedMinimumTreeIndex:o,draggedPath:t,dragging:!0}}))}dragHover(e){let{node:t,depth:r,minimumTreeIndex:n}=e;this.state.draggedDepth===r&&this.state.draggedMinimumTreeIndex===n||this.setState((e=>{let{draggingTreeData:o,instanceProps:a,draggingExpandedPaths:i}=e;const l=o||a.treeData,d=E({treeData:l,newNode:t,depth:r,minimumTreeIndex:n,expandParent:!0,getNodeKey:this.props.getNodeKey}),c=this.getRows(d.treeData)[d.treeIndex].path.slice(0,-1),h=(0,s.pipe)((0,s.when)((0,s.always)((0,s.gt)(c.length,0)),(0,s.append)(c)),(0,s.uniqWith)((0,s.eqBy)(String)))(i);return{draggedNode:t,draggedDepth:r,draggedMinimumTreeIndex:n,draggingTreeData:(0,D.Gm)({treeData:l,path:c,newNode:e=>{let{node:t}=e;return V({},t,{expanded:!0})},getNodeKey:this.props.getNodeKey}),searchFocusTreeIndex:null,dragging:!0,draggingExpandedPaths:h}}))}endDrag(e){const{instanceProps:t}=this.state;if(e){if(e.treeId!==this.treeId){const{node:r,path:n,treeIndex:o}=e;let a=this.props.shouldCopyOnOutsideDrop;"function"==typeof a&&(a=a({node:r,prevTreeIndex:o,prevPath:n}));let i=this.state.draggingTreeData||t.treeData;a&&(i=(0,D.Gm)({treeData:t.treeData,path:n,newNode:e=>{let{node:t}=e;return V({},t)},getNodeKey:this.props.getNodeKey})),this.props.onChange(i),this.props.onMoveNode({treeData:i,node:r,treeIndex:null,path:null,nextPath:null,nextTreeIndex:null,prevPath:n,prevTreeIndex:o})}}else(()=>{this.setState({draggingTreeData:null,draggedNode:null,draggedMinimumTreeIndex:null,draggedDepth:null,dragging:!1})})()}drop(e){this.moveNode(e)}canNodeHaveChildren(e){const{canNodeHaveChildren:t}=this.props;return!t||t(e)}static loadLazyChildren(e){(0,D._p)({treeData:e.treeData,getNodeKey:e.getNodeKey,callback:t=>{let{node:r,path:n,lowerSiblingCounts:o,treeIndex:a}=t;r.pending&&(r.expanded||e.loadCollapsedLazyChildren)&&e.onLazyLoadChildren({node:r,path:n,lowerSiblingCounts:o,treeIndex:a,done:t=>e.onChange((0,D.Gm)({treeData:e.treeData,path:n,newNode:e=>{let{node:n}=e;return n===r?V({},n,{children:t}):n},getNodeKey:e.getNodeKey}),!0)})}})}renderRow(e,t){let{listIndex:r,style:n,getPrevRow:a,matchKeys:i,swapFrom:l,swapDepth:s,swapLength:d}=t;const{node:c,parentNode:h,path:p,lowerSiblingCounts:g,treeIndex:u}=e,{canDrag:f,generateNodeProps:m,scaffoldBlockPxWidth:b,searchFocusOffset:x,rowDirection:y}=z(this.props),D=this.treeNodeRenderer,w=this.nodeContentRenderer,I=p[p.length-1],N=I in i,_=N&&i[I]===x,v={node:c,parentNode:h,path:p,lowerSiblingCounts:g,treeIndex:u,isSearchMatch:N,isSearchFocus:_},C=m?m(v):{},P="function"!=typeof f?f:f(v),O={treeIndex:u,scaffoldBlockPxWidth:b,node:c,path:p,treeId:this.treeId,rowDirection:y};return o().createElement(D,K({style:n,key:I,listIndex:r,getPrevRow:a,lowerSiblingCounts:g,swapFrom:l,swapLength:d,swapDepth:s},O),o().createElement(w,K({parentNode:h,isSearchMatch:N,isSearchFocus:_,canDrag:P,toggleChildrenVisibility:this.toggleChildrenVisibility},O,C)))}render(){const{dragDropManager:e,style:t,className:r,innerStyle:n,rowHeight:a,isVirtualized:i,placeholderRenderer:s,reactVirtualizedListProps:d,getNodeKey:c,rowDirection:h}=z(this.props),{searchMatches:p,searchFocusTreeIndex:g,draggedNode:f,draggedDepth:m,draggedMinimumTreeIndex:b}=this.state,x=this.state.draggingTreeData||this.props.treeData,y="rtl"===h?"rst__rtl":null;let D,w=null,I=null;if(f&&null!==b){const e=E({treeData:x,newNode:f,depth:m,minimumTreeIndex:b,expandParent:!0,getNodeKey:c}),t=b;w=e.treeIndex,I=1+M({node:f}),D=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const o=[...e.slice(0,t),...e.slice(t+n)];return[...o.slice(0,r),...e.slice(t,t+n),...o.slice(r)]}(this.getRows(e.treeData),w,t,I)}else D=this.getRows(x);const N={};p.forEach(((e,t)=>{let{path:r}=e;N[r[r.length-1]]=t}));const _=null!==g?{scrollToIndex:g}:{};let v,C=t;if(D.length<1){const e=this.treePlaceholderRenderer,t=s;v=o().createElement(e,{treeId:this.treeId,drop:this.drop},o().createElement(t,null))}else if(i){C=V({height:"100%"},C);const t=this.scrollZoneVirtualList;v=o().createElement(l.qj,null,(r=>{let{height:i,width:l}=r;return o().createElement(t,K({},_,{dragDropManager:e,verticalStrength:this.vStrength,horizontalStrength:this.hStrength,speed:30,scrollToAlignment:"start",className:this.props.classes.rst__virtualScrollOverride,width:l,onScroll:e=>{let{scrollTop:t}=e;this.scrollTop=t},height:i,style:n,rowCount:D.length,estimatedRowSize:"function"!=typeof a?a:void 0,rowHeight:"function"!=typeof a?a:e=>{let{index:t}=e;return a({index:t,treeIndex:t,node:D[t].node,path:D[t].path})},rowRenderer:e=>{let{index:t,style:r}=e;return this.renderRow(D[t],{listIndex:t,style:r,getPrevRow:()=>D[t-1]||null,matchKeys:N,swapFrom:w,swapDepth:m,swapLength:I})}},d))}))}else v=D.map(((e,t)=>this.renderRow(e,{listIndex:t,style:{height:"function"!=typeof a?a:a({index:t,treeIndex:t,node:e.node,path:e.path})},getPrevRow:()=>D[t-1]||null,matchKeys:N,swapFrom:w,swapDepth:m,swapLength:I})));return o().createElement("div",{className:u("rst__tree",r,y),style:C},v)}}Z.propTypes={classes:i().object,dragDropManager:i().shape({getMonitor:i().func}).isRequired,treeData:i().arrayOf(i().object).isRequired,style:i().shape({}),className:i().string,innerStyle:i().shape({}),rowHeight:i().oneOfType([i().number,i().func]),slideRegionSize:i().number,reactVirtualizedListProps:i().shape({}),scaffoldBlockPxWidth:i().number,maxDepth:i().number,searchMethod:i().func,searchQuery:i().any,searchFocusOffset:i().number,searchFinishCallback:i().func,generateNodeProps:i().func,isVirtualized:i().bool,treeNodeRenderer:i().func,nodeContentRenderer:i().func,placeholderRenderer:i().func,theme:i().shape({style:i().shape({}),innerStyle:i().shape({}),reactVirtualizedListProps:i().shape({}),scaffoldBlockPxWidth:i().number,slideRegionSize:i().number,rowHeight:i().oneOfType([i().number,i().func]),treeNodeRenderer:i().func,nodeContentRenderer:i().func,placeholderRenderer:i().func}),getNodeKey:i().func,onChange:i().func.isRequired,onMoveNode:i().func,canDrag:i().oneOfType([i().func,i().bool]),canDrop:i().func,canNodeHaveChildren:i().func,shouldCopyOnOutsideDrop:i().oneOfType([i().func,i().bool]),onVisibilityToggle:i().func,dndType:i().string,onDragStateChanged:i().func,onlyExpandSearchedNodes:i().bool,rowDirection:i().string,onLazyLoadChildren:i().func,ignoreTreeChanges:i().bool},Z.defaultProps={canDrag:!0,canDrop:null,canNodeHaveChildren:()=>!0,className:"",dndType:null,generateNodeProps:null,getNodeKey:L.TS,innerStyle:{},isVirtualized:!0,maxDepth:null,treeNodeRenderer:null,nodeContentRenderer:null,onMoveNode:()=>{},onVisibilityToggle:()=>{},placeholderRenderer:null,reactVirtualizedListProps:{},rowHeight:null,scaffoldBlockPxWidth:null,searchFinishCallback:null,searchFocusOffset:null,searchMethod:null,searchQuery:null,shouldCopyOnOutsideDrop:!1,slideRegionSize:null,style:{},theme:{},onDragStateChanged:()=>{},onlyExpandSearchedNodes:!1,rowDirection:"ltr",onLazyLoadChildren:()=>{},ignoreTreeChanges:!1},(0,h.polyfill)(Z);const q=(0,p.Z)((()=>({"@global .ReactVirtualized__Grid__innerScrollContainer":{overflow:"visible !important"},"@global .ReactVirtualized__Grid":{outline:"none"},"@global .ReactVirtualized__List":{},rst__virtualScrollOverride:{overflow:"auto !important"},"@global .rst__rtl .ReactVirtualized__Grid__innerScrollContainer":{direction:"rtl"}})))(Z),W=e=>o().createElement(c.DndContext.Consumer,null,(t=>{let{dragDropManager:r}=t;return void 0===r?null:o().createElement(q,K({},e,{dragDropManager:r}))})),U=e=>o().createElement(g.l,null,o().createElement(W,e))},65758:(e,t,r)=>{function n(e){let{treeIndex:t}=e;return t}function o(e){return"string"==typeof e?e:null===e||"object"!=typeof e||!e.props||!e.props.children||"string"!=typeof e.props.children&&"object"!=typeof e.props.children?"":"string"==typeof e.props.children?e.props.children:e.props.children.map((e=>o(e))).join("")}function a(e,t,r,n,a){return"function"==typeof r[e]?String(r[e]({node:r,path:n,treeIndex:a})).indexOf(t)>-1:"object"==typeof r[e]?o(r[e]).indexOf(t)>-1:r[e]&&String(r[e]).indexOf(t)>-1}function i(e){let{node:t,path:r,treeIndex:n,searchQuery:o}=e;return a("title",o,t,r,n)||a("subtitle",o,t,r,n)}r.d(t,{TS:()=>n,v2:()=>i,ZP:()=>l});const l={defaultSearchMethod:i,defaultGetNodeKey:n}},21113:(e,t,r)=>{function n(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){o(e,t,r[t])}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){let{targetIndex:t,node:r,currentIndex:n,getNodeKey:o,path:i=[],lowerSiblingCounts:l=[],ignoreCollapsed:s=!0,isPseudoRoot:d=!1}=e;const c=d?[]:[...i,o({node:r,treeIndex:n})];if(n===t)return{node:r,lowerSiblingCounts:l,path:c};if(!r.children||s&&!0!==r.expanded)return{nextIndex:n+1};let h=n+1;const p=r.children.length;for(let e=0;e<p;e+=1){const n=a({ignoreCollapsed:s,getNodeKey:o,targetIndex:t,node:r.children[e],currentIndex:h,lowerSiblingCounts:[...l,p-e-1],path:c});if(n.node)return n;h=n.nextIndex}return{nextIndex:h}}function i(e){let{node:t,ignoreCollapsed:r=!0}=e;return a({getNodeKey:()=>{},ignoreCollapsed:r,node:t,currentIndex:0,targetIndex:-1}).nextIndex-1}function l(e){let{callback:t,getNodeKey:r,ignoreCollapsed:n,isPseudoRoot:o=!1,node:a,parentNode:i=null,currentIndex:s,path:d=[],lowerSiblingCounts:c=[]}=e;const h=o?[]:[...d,r({node:a,treeIndex:s})];if(!o&&!1===t(o?null:{node:a,parentNode:i,path:h,lowerSiblingCounts:c,treeIndex:s}))return!1;if(!a.children||!0!==a.expanded&&n&&!o)return s;let p=s;const g=a.children.length;if("function"!=typeof a.children)for(let e=0;e<g;e+=1)if(p=l({callback:t,getNodeKey:r,ignoreCollapsed:n,node:a.children[e],parentNode:o?null:a,currentIndex:p+1,lowerSiblingCounts:[...c,g-e-1],path:h}),!1===p)return!1;return p}function s(e){let{callback:t,getNodeKey:r,ignoreCollapsed:o,isPseudoRoot:a=!1,node:i,parentNode:l=null,currentIndex:d,path:c=[],lowerSiblingCounts:h=[]}=e;const p=n({},i),g=a?[]:[...c,r({node:p,treeIndex:d})],u={node:p,parentNode:l,path:g,lowerSiblingCounts:h,treeIndex:d};if(!p.children||!0!==p.expanded&&o&&!a)return{treeIndex:d,node:t(u)};let f=d;const m=p.children.length;return"function"!=typeof p.children&&(p.children=p.children.map(((e,n)=>{const i=s({callback:t,getNodeKey:r,ignoreCollapsed:o,node:e,parentNode:a?null:p,currentIndex:f+1,lowerSiblingCounts:[...h,m-n-1],path:g});return f=i.treeIndex,i.node}))),{node:t(u),treeIndex:f}}function d(e){let{treeData:t,getNodeKey:r,callback:n,ignoreCollapsed:o=!0}=e;!t||t.length<1||l({callback:n,getNodeKey:r,ignoreCollapsed:o,isPseudoRoot:!0,node:{children:t},currentIndex:-1,path:[],lowerSiblingCounts:[]})}function c(e){let{treeData:t,getNodeKey:r,callback:n,ignoreCollapsed:o=!0}=e;return!t||t.length<1?[]:s({callback:n,getNodeKey:r,ignoreCollapsed:o,isPseudoRoot:!0,node:{children:t},currentIndex:-1,path:[],lowerSiblingCounts:[]}).node.children}function h(e){let{treeData:t,expanded:r=!0}=e;return c({treeData:t,callback:e=>{let{node:t}=e;return n({},t,{expanded:r})},getNodeKey:e=>{let{treeIndex:t}=e;return t},ignoreCollapsed:!1})}function p(e){let{treeData:t,path:r,newNode:o,getNodeKey:a,ignoreCollapsed:l=!0}=e;const s="RESULT_MISS",d=e=>{let{isPseudoRoot:t=!1,node:c,currentTreeIndex:h,pathIndex:p}=e;if(!t&&a({node:c,treeIndex:h})!==r[p])return s;if(p>=r.length-1)return"function"==typeof o?o({node:c,treeIndex:h}):o;if(!c.children)throw new Error("Path referenced children of node with no children.");let g=h+1;for(let e=0;e<c.children.length;e+=1){const t=d({node:c.children[e],currentTreeIndex:g,pathIndex:p+1});if(t!==s)return n({},c,t?{children:[...c.children.slice(0,e),t,...c.children.slice(e+1)]}:{children:[...c.children.slice(0,e),...c.children.slice(e+1)]});g+=1+i({node:c.children[e],ignoreCollapsed:l})}return s},c=d({node:{children:t},currentTreeIndex:-1,pathIndex:-1,isPseudoRoot:!0});if(c===s)throw new Error("No node found at the given path.");return c.children}function g(e){let{treeData:t,path:r,getNodeKey:n,ignoreCollapsed:o=!0}=e,a=null,i=null;return{treeData:p({treeData:t,path:r,getNodeKey:n,ignoreCollapsed:o,newNode:e=>{let{node:t,treeIndex:r}=e;return a=t,i=r,null}}),node:a,treeIndex:i}}function u(e){let{targetDepth:t,minimumTreeIndex:r,newNode:o,ignoreCollapsed:a,expandParent:l,isPseudoRoot:s=!1,isLastChild:d,node:c,currentIndex:h,currentDepth:p,getNodeKey:g,path:f=[]}=e;const m=e=>s?[]:[...f,g({node:e,treeIndex:h})];if(h>=r-1||d&&(!c.children||!c.children.length)){if("function"==typeof c.children)throw new Error("Cannot add to children defined by a function");{const e=n({},c,l?{expanded:!0}:{},{children:c.children?[o,...c.children]:[o]});return{node:e,nextIndex:h+2,insertedTreeIndex:h+1,parentPath:m(e),parentNode:s?null:e}}}if(p>=t-1){if(!c.children||"function"==typeof c.children||!0!==c.expanded&&a&&!s)return{node:c,nextIndex:h+1};let e=h+1,t=null,l=null;for(let n=0;n<c.children.length;n+=1){if(e>=r){t=e,l=n;break}e+=1+i({node:c.children[n],ignoreCollapsed:a})}if(null===l){if(e<r&&!d)return{node:c,nextIndex:e};t=e,l=c.children.length}const p=n({},c,{children:[...c.children.slice(0,l),o,...c.children.slice(l)]});return{node:p,nextIndex:e,insertedTreeIndex:t,parentPath:m(p),parentNode:s?null:p}}if(!c.children||"function"==typeof c.children||!0!==c.expanded&&a&&!s)return{node:c,nextIndex:h+1};let b=null,x=null,y=null,D=h+1,w=c.children;"function"!=typeof w&&(w=w.map(((e,n)=>{if(null!==b)return e;const i=u({targetDepth:t,minimumTreeIndex:r,newNode:o,ignoreCollapsed:a,expandParent:l,isLastChild:d&&n===w.length-1,node:e,currentIndex:D,currentDepth:p+1,getNodeKey:g,path:[]});return"insertedTreeIndex"in i&&({insertedTreeIndex:b,parentNode:y,parentPath:x}=i),D=i.nextIndex,i.node})));const I=n({},c,{children:w}),N={node:I,nextIndex:D};return null!==b&&(N.insertedTreeIndex=b,N.parentPath=[...m(I),...x],N.parentNode=y),N}function f(e){let{treeData:t,depth:r,minimumTreeIndex:n,newNode:o,getNodeKey:a=(()=>{}),ignoreCollapsed:i=!0,expandParent:l=!1}=e;if(!t&&0===r)return{treeData:[o],treeIndex:0,path:[a({node:o,treeIndex:0})],parentNode:null};const s=u({targetDepth:r,minimumTreeIndex:n,newNode:o,ignoreCollapsed:i,expandParent:l,getNodeKey:a,isPseudoRoot:!0,isLastChild:!0,node:{children:t},currentIndex:-1,currentDepth:-1});if(!("insertedTreeIndex"in s))throw new Error("No suitable position found to insert.");const d=s.insertedTreeIndex;return{treeData:s.node.children,treeIndex:d,path:[...s.parentPath,a({node:o,treeIndex:d})],parentNode:s.parentNode}}function m(e){let{treeData:t,getNodeKey:r,ignoreCollapsed:n=!0}=e;if(!t||t.length<1)return[];const o=[];return d({treeData:t,getNodeKey:r,ignoreCollapsed:n,callback:e=>{o.push(e)}}),o}function b(e,t){return!!e.children&&"function"!=typeof e.children&&e.children.some((e=>e===t||b(e,t)))}function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.children?"function"==typeof e.children?t+1:e.children.reduce(((e,r)=>Math.max(e,x(r,t+1))),t):t}function y(e){let{getNodeKey:t,treeData:r,searchQuery:o,searchMethod:a,searchFocusOffset:i,expandAllMatchPaths:l=!1,expandFocusMatchPaths:s=!0}=e,d=0;const c=e=>{let{isPseudoRoot:r=!1,node:h,currentIndex:p,path:g=[]}=e,u=[],f=!1,m=!1;const b=r?[]:[...g,t({node:h,treeIndex:p})],x=r?null:{path:b,treeIndex:p},y=h.children&&"function"!=typeof h.children&&h.children.length>0;!r&&a(n({},x,{node:h,searchQuery:o}))&&(d===i&&(m=!0),d+=1,f=!0);let D=p;const w=n({},h);return y&&(w.children=w.children.map((e=>{const t=c({node:e,currentIndex:D+1,path:b});return t.node.expanded?D=t.treeIndex:D+=1,(t.matches.length>0||t.hasFocusMatch)&&(u=[...u,...t.matches],t.hasFocusMatch&&(m=!0),(l&&t.matches.length>0||(l||s)&&t.hasFocusMatch)&&(w.expanded=!0)),t.node}))),r||w.expanded||(u=u.map((e=>n({},e,{treeIndex:null})))),f&&(u=[n({},x,{node:w}),...u]),{node:u.length>0?w:h,matches:u,hasFocusMatch:m,treeIndex:D}},h=c({node:{children:r},isPseudoRoot:!0,currentIndex:-1});return{matches:h.matches,treeData:h.node.children}}r.d(t,{o5:()=>i,_p:()=>d,Vk:()=>h,Gm:()=>p,ZF:()=>g,Lf:()=>f,Pg:()=>m,SG:()=>b,hh:()=>x,sE:()=>y,ZP:()=>D});const D={find:y,getDepth:x,isDescendant:b,getTreeFromFlatData:function(e){let{flatData:t,getKey:r=(e=>e.id),getParentKey:o=(e=>e.parentId),rootKey:a="0"}=e;if(!t)return[];const i={};if(t.forEach((e=>{const t=o(e);t in i?i[t].push(e):i[t]=[e]})),!(a in i))return[];const l=e=>{const t=r(e);return t in i?n({},e,{children:i[t].map((e=>l(e)))}):n({},e)};return i[a].map((e=>l(e)))},getFlatDataFromTree:m,insertNode:f,addNodeUnderParent:function(e){let{treeData:t,newNode:r,parentKey:o=null,getNodeKey:a,ignoreCollapsed:l=!0,expandParent:s=!1,addAsFirstChild:d=!1}=e;if(null===o)return d?{treeData:[r,...t||[]],treeIndex:0}:{treeData:[...t||[],r],treeIndex:(t||[]).length};let h=null,p=!1;const g=c({treeData:t,getNodeKey:a,ignoreCollapsed:l,callback:e=>{let{node:t,treeIndex:a,path:c}=e;const g=c?c[c.length-1]:null;if(p||g!==o)return t;p=!0;const u=n({},t);if(s&&(u.expanded=!0),!u.children)return h=a+1,n({},u,{children:[r]});if("function"==typeof u.children)throw new Error("Cannot add to children defined by a function");let f=a+1;for(let e=0;e<u.children.length;e+=1)f+=1+i({node:u.children[e],ignoreCollapsed:l});return h=f,n({},u,{children:d?[r,...u.children]:[...u.children,r]})}});if(!p)throw new Error("No node found with the given key.");return{treeData:g,treeIndex:h}},getNodeAtPath:function(e){let{treeData:t,path:r,getNodeKey:n,ignoreCollapsed:o=!0}=e,a=null;try{p({treeData:t,path:r,getNodeKey:n,ignoreCollapsed:o,newNode:e=>{let{node:t,treeIndex:r}=e;return a={node:t,treeIndex:r},t}})}catch(e){}return a},removeNode:g,removeNodeAtPath:function(e){let{treeData:t,path:r,getNodeKey:n,ignoreCollapsed:o=!0}=e;return p({treeData:t,path:r,getNodeKey:n,ignoreCollapsed:o,newNode:null})},changeNodeAtPath:p,toggleExpandedForAll:h,map:c,walk:d,getVisibleNodeInfoAtIndex:function(e){let{treeData:t,index:r,getNodeKey:n}=e;if(!t||t.length<1)return null;const o=a({targetIndex:r,getNodeKey:n,node:{children:t,expanded:!0},currentIndex:-1,path:[],lowerSiblingCounts:[],isPseudoRoot:!0});return o.node?o:null},getVisibleNodeCount:function(e){let{treeData:t}=e;const r=e=>e.children&&!0===e.expanded&&"function"!=typeof e.children?1+e.children.reduce(((e,t)=>e+r(t)),0):1;return t.reduce(((e,t)=>e+r(t)),0)},getDescendantCount:i}},43775:(e,t,r)=>{r.d(t,{Z:()=>h});var n=r(24328),o=r.n(n),a=r(13980),i=r.n(a),l=r(94079);const s=(0,r(79692).Z)({onlyValue:{color:"rgba(0,0,0,.6)",fontSize:"13px",fontWeight:"normal",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},select:{fontSize:"13px",color:"rgba(0,0,0,.6)",paddingLeft:"15px","&&":{paddingRight:"35px"}},selectMenu:{"& li":{fontSize:"13px",height:"32px"}},textField:{maxWidth:"100%"}});var d=r(79026);const c=e=>{let{value:t,onChange:r,options:a,classes:i={},emptyLabel:c}=e;const h=s(),[p,...g]=a,u=0===g.length;(0,n.useEffect)((()=>{u&&t!==p.value&&r(p.value)}),[p.value]);const f=!!c;return o().createElement("div",{className:i.root},u?o().createElement(l.Typography,{className:i.onlyValue||h.onlyValue,variant:"h6"},p.label):o().createElement(d.Z,{displayEmpty:f,disableUnderline:!0,classes:{select:i.select||h.select},TextFieldProps:{classes:{root:i.textField||h.textField}},MenuProps:{classes:{list:i.selectMenu||h.selectMenu}},value:t||"",entries:f?[{value:"",label:c},...a]:a,onChange:e=>r(e||null)}))};c.propTypes={value:i().string,onChange:i().func,options:i().arrayOf(i().shape({value:i().string,label:i().string})),classes:i().shape({root:i().string,onlyValue:i().string,select:i().string,selectMenu:i().string,textField:i().string}),emptyLabel:i().string};const h=c},8962:(e,t,r)=>{r.d(t,{Z:()=>R});var n=r(52730),o=r(49885),a=r(24328),i=r.n(a),l=r(27950),s=r(71153),d=r.n(s),c=r(87918),h=r.n(c),p=r(94079),g=r(60995),u=r(10237),f=r(93416),m=r(80931),b=r(8261),x=r(79692);const y=(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)"}}),D=(0,n.connect)((e=>({metadata:o.ZP.selectors.getMetadata(e)})))((e=>{let{className:t,entity:r={},metadata:s,caption:c="",excludeUris:x=[],includeUris:D=[],attributesCount:w=16}=e;const I=y(),N=(0,n.useSelector)(o.ZP.selectors.getPivotingAttributes),_=(0,a.useMemo)((()=>(0,b.U)(s,r.type,D,x)),[x,D,s,r.type]),v=(0,l.fyF)(_,r).filter((e=>{let{values:t}=e;return!(0,l.O27)(t)})).length>0;return v||!(0,l.O27)(c)?i().createElement(g.J.Provider,{value:N},i().createElement(u.Z,{className:t},c&&i().createElement(f.Z,{className:I.header,title:c}),i().createElement(p.Box,{className:d()(I.attributesContainer,{[I.noCaption]:!c})},v?i().createElement(m.Z,{entity:r,attrTypes:_,parentUri:r.uri,drawLines:!1,max:w}):i().createElement(p.Typography,{className:I.noData},h().text("No data found"))))):null}));var w=r(17440),I=r(91262),N=r(39450),_=r(66784);const v=(0,x.Z)({attributesContainer:{overflow:"hidden",padding:"0 16px 16px 16px"},header:{marginBottom:"4px"},noCaption:{paddingTop:"16px"}});function C(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){P(e,t,r[t])}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const O=(0,n.connect)((e=>({metadata:o.ZP.selectors.getMetadata(e)})))((e=>{let{className:t,entity:r={},mode:s,metadata:c,caption:h="",excludeUris:g=[],includeUris:m=[],pinnedAttributes:x}=e;const y=v(),D=(0,n.useDispatch)(),P=(0,a.useContext)(N.m),O=(0,n.useSelector)(o.ZP.selectors.getUserRoles),T=(0,a.useMemo)((()=>(0,l.mC3)(x,O)),[x,O]),S=(0,n.useSelector)((e=>o.ZP.selectors.getModifiedEntity(e,r.uri)||{})),R=(0,a.useMemo)((()=>(0,b.U)(c,S.type,m,g)),[g,m,c,S.type]),A=(0,a.useCallback)((e=>(0,w.pipe)(o.N5.actions.addAttributes,D)(e.map((e=>C({},e,{viewId:P}))))),[P,D]),E=(0,a.useCallback)((e=>(0,w.pipe)(o.N5.actions.modifyAttribute,D)(C({},e,{viewId:P}))),[P,D]),k=(0,a.useCallback)((e=>(0,w.pipe)(o.N5.actions.removeAttribute,D)(C({},e,{viewId:P}))),[P,D]);return i().createElement(u.Z,{className:t},h&&i().createElement(f.Z,{className:y.header,title:h}),i().createElement(p.Box,{className:d()(y.attributesContainer,{[y.noCaption]:!h})},i().createElement(_.c.Provider,{value:T},i().createElement(I.Z,{entity:S,attrTypes:R,parentUri:S.uri,drawLines:!1,mode:s,showEmptyEditors:(0,l.ZiX)(S.uri),crosswalks:S.crosswalks,onAddAttributes:A,onChangeAttribute:E,onDeleteAttribute:k}))))}));var T=r(3185);function S(){return S=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},S.apply(this,arguments)}const R=(0,n.connect)(((e,t)=>({entity:t.entity||o.ZP.selectors.getEntityWithDiff(e),mode:t.mode||o.ZP.selectors.getMode(e)})))((e=>{let{mode:t=l.ARY.Viewing,attributesCount:r,pinnedAttributes:n,entity:o}=e,a=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,["mode","attributesCount","pinnedAttributes","entity"]);return i().createElement(T.u.Provider,{value:o},(0,l.uzs)(t)?i().createElement(D,S({attributesCount:r,entity:o},a)):i().createElement(O,S({mode:t,pinnedAttributes:n,entity:o},a)))}))},92898:(e,t,r)=>{r.d(t,{q:()=>o});var n=r(24328);const o=(e,t)=>{const r=(0,n.useRef)(!1);(0,n.useEffect)((()=>{t&&!r.current&&(r.current=!0,e())}),[e,t])}}}]);
2
2
  //# sourceMappingURL=4015.js.map
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5937],{14363:(e,t,r)=>{r.d(t,{n:()=>g});const n=(0,r(79692).Z)({item:{marginBottom:"16px"},dense:{marginBottom:0}});var o=r(20562),a=r(24328),i=r.n(a),l=r(52730),s=r(49885),c=r(57014),u=r(91262),p=r(71153),d=r.n(p),b=r(17440),y=r(7154),f=r(26579),m=r(81077);function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const g=e=>{let{connection:t,relatedEntity:r,inRelationTypes:p=[],outRelationTypes:g=[],showEmptyEditors:Z,entityErrorMessage:S,onChangeAttribute:v,onRemoveAttribute:E,onAddAttributes:C,onChangeRelationType:O,onChangeEntity:P}=e;const w=n(),{relation:A,entity:R}=t,{attributes:T,uri:k,type:I="",direction:x}=A||{},j=Boolean(I),M=(0,l.useSelector)(s.ZP.selectors.getMetadata),D=(0,a.useMemo)((()=>A&&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){h(e,t,r[t])}))}return e}({attributes:T},(0,c.p2l)(A))),[A,T]),B=(0,a.useMemo)((()=>(0,c.xF8)(M,I)),[I,M]),L=(0,a.useMemo)((()=>j?(0,c.jWj)(x===c.Nsj.OUT,M,[(0,c.V3K)(M,I)]):(0,b.uniq)((0,c.jWj)(!0,M,g).concat((0,c.jWj)(!1,M,p)))),[j,I,M,p,g]),N=(0,l.useSelector)((e=>s.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]))),W=(0,a.useMemo)((()=>A&&{relationType:A.type,direction:A.direction}),[A]),V=(0,a.useMemo)((()=>R&&{entityUri:R.uri,entityType:R.type,entityLabel:(0,c.idV)(R.label)}),[R]),U=(0,a.useMemo)((()=>R&&R.uri?p.filter((0,c.eHk)(!1,R,r,M)):p),[R,p,r,M]),H=(0,a.useMemo)((()=>R&&R.uri?g.filter((0,c.eHk)(!0,R,r,M)):g),[R,g,r,M]);(0,a.useEffect)((()=>{const{type:e,direction:t}=(0,c.z7d)(p,g)||{};!I&&e&&O&&O({type:e.uri,direction:t})}),[I,p,g,O]),(0,o.D)((()=>{const{type:e,direction:t}=(0,c.z7d)(U,H)||{};!I&&e&&O({type:e.uri,direction:t})}),[I,R,U,H,P]);const F=(0,a.useCallback)((e=>{let{type:t,direction:r}=e;O({type:t.uri,direction:r})}),[O]);return i().createElement(i().Fragment,null,O&&i().createElement(y.Z,{className:w.item,relation:W,metadata:M,inRelationTypes:p,outRelationTypes:g,onChange:F}),P&&i().createElement(f.Z,{errorMessage:S,className:w.item},i().createElement(m.Z,{key:I,className:d()({[w.dense]:S}),entity:V||{},entityTypesUris:L,max:20,globalSearchRequestOptions:N,mode:c.fO_.EDITING,onChange:P,onCreate:void 0,metadata:M,attributeTypesSelectionStrategy:void 0})),I&&i().createElement(u.Z,{attrTypes:B,entity:D,showEmptyEditors:Z,mode:c.fO_.EDITING,parentUri:k,onAddAttributes:C,onChangeAttribute:v,onDeleteAttribute:E}))}},6230:(e,t,r)=>{r.d(t,{J:()=>c});var n=r(24328),o=r.n(n),a=r(87918),i=r.n(a),l=r(15689);function s(){return s=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},s.apply(this,arguments)}const c=e=>o().createElement(l.Z,s({message:i().text("No data available")},e))},46813:(e,t,r)=>{r.d(t,{Z:()=>b});var n=r(24328),o=r.n(n),a=r(17440),i=r(80030),l=r(79692);function s(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){c(e,t,r[t])}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=(0,a.range)(2,10).reduce(((e,t)=>s({},e,{[`&:nth-child(${t})`]:{paddingLeft:`calc(1em * (${t} - 2))`,"&::before":{content:'"└"',display:"inline-block",fontSize:"1em",marginRight:"5px",color:"rgba(255, 255, 255, 0.28)"}}})),{}),p=(0,l.Z)((e=>({tooltip:e.tooltip,tooltipContent:{minWidth:"165px",padding:"4px 2px 2px","& p":{fontSize:"11px",lineHeight:"13px",fontWeight:500,margin:0,color:"white"},"& ul":{listStyleType:"none",padding:0,margin:0,"& li":s({fontSize:"10px",lineHeight:"11px",fontWeight:500,color:"rgba(255, 255, 255, 0.7)",marginTop:"4px"},u,{"&:last-child":{color:"white"}}),"& li + li":{marginTop:"2px"}}}})));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)}const b=e=>{let{pathToTitle:t,children:r}=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,["pathToTitle","children"]);const l=p(),s=null!=t&&t.length?o().createElement("div",{className:l.tooltipContent},o().createElement("p",null,(0,a.last)(t)),t.length>2&&o().createElement("ul",null,t.map((e=>o().createElement("li",{key:e},e))))):"";return o().createElement(i.ZP,d({title:s,disableFocusListener:!0,classes:{tooltip:l.tooltip}},n),r)}},32371:(e,t,r)=>{r.d(t,{U:()=>c});var n=r(24328),o=r.n(n),a=r(87918),i=r.n(a),l=r(57014),s=r(42520);const c=(0,n.memo)((e=>{let{relationTypes:t,selectedRelationTypes:r,single:a,placeholder:c,enableEmptyValueUnderline:u,onChange:p,classes:d={},ListLabelProps:b={},disabled:y=!1}=e;const f=(0,n.useMemo)((()=>t.filter(l.Tt2)),[t]);return o().createElement(s.S,{items:f,selectedItemsUris:r,single:a,placeholder:c,enableEmptyValueUnderline:u,onChange:p,classes:d,ListLabelProps:b,disabled:y,label:i().text("Relation type"),dataReltioId:"relation-type-selector",selectionPopupTitle:i().text("Select relation types")})}));c.displayName="RelationTypesSelector"},32431:(e,t,r)=>{r.d(t,{Z:()=>p});var n=r(24328),o=r.n(n),a=r(99152),i=r(6487),l=r(95613);const s=(0,r(79692).Z)({tabsRoot:{width:"100%"},tabsScrollButton:{flex:"0 0 24px"},tabRoot:{fontSize:"0.875rem",padding:"7px 18px 5px","@media (min-width: 960px)":{minWidth:"inherit"},"&$disabled":{pointerEvents:"auto"}},labelWrapper:{whiteSpace:"nowrap",letterSpacing:"normal",display:"flex",flexDirection:"row",width:"100%"},label:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",fontWeight:500},disabled:{}});function c(){return c=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},c.apply(this,arguments)}function u(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}const p=e=>{let{value:t,tabs:r=[],onChange:n,tabClasses:p}=e,d=u(e,["value","tabs","onChange","tabClasses"]);const b=s(),y=(e,t)=>o().createElement("span",{className:b.labelWrapper},o().createElement(l.Z,{value:e},o().createElement("span",{className:b.label},e)),t);return o().createElement(a.Z,c({value:t,onChange:(e,t)=>n(t),classes:{root:b.tabsRoot,scrollButtons:b.tabsScrollButton},indicatorColor:"primary",textColor:"primary",variant:"scrollable",scrollButtons:"on"},d),r.map((e=>{let{label:t,value:r,additionalLabel:n,dataReltioId:a}=e,l=u(e,["label","value","additionalLabel","dataReltioId"]);return o().createElement(i.Z,c({classes:p||{root:b.tabRoot,disabled:b.disabled},key:r,value:r,label:y(t,n),"data-reltio-id":a},l))})))}},16025:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(24328),o=r.n(n),a=r(94574),i=r(63015);function l(){return l=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},l.apply(this,arguments)}function s(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){c(e,t,r[t])}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=e=>{let{classes: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,["classes"]);const n=(0,i.y)({});return o().createElement(a.Z,l({classes:s({},t,{focused:n.white})},r))}},77565:(e,t,r)=>{r.d(t,{Z:()=>f});var n=r(24328),o=r.n(n),a=r(13980),i=r.n(a),l=r(94079),s=r(83543);const c=(0,r(79692).Z)((()=>({viewMoreLessLink:{display:"flex",alignItems:"center",cursor:"pointer"},arrow:{marginRight:"8px",marginLeft:"-2px",transform:"rotate(0deg)",transition:"transform 0.35s ease"},rotated:{transform:"rotate(-180deg)"}})));var u=r(71153),p=r.n(u),d=r(87918),b=r.n(d);const y=e=>{let{active:t,onClick:r,className:n}=e;const a=c();return o().createElement(l.Link,{className:p()(a.viewMoreLessLink,n),onClick:r,underline:"none"},o().createElement(s.Z,{className:p()(a.arrow,{[a.rotated]:t})}),t?b().text("View less"):b().text("View more"))};y.propTypes={active:i().bool,onClick:i().func,className:i().string};const f=y},63072:(e,t,r)=>{r.d(t,{b:()=>i});var n=r(24328),o=r(57014),a=r(56764);const i=e=>{let{filter:t,max:r,offset:i,entityUri:l}=e;return(0,n.useCallback)((async()=>{const e=(0,a.U)(t),n=await(0,o.k6v)({filter:e,max:r,offset:i,entityUri:l}),{total:s}=await(0,o.FEC)({filter:e,entityUri:l});return{data:n,total:s}}),[t,r,i,l])}},78620:(e,t,r)=>{r.d(t,{R:()=>u});var n=r(24328),o=r(57014),a=r(17440),i=r(52730),l=r(49885);function s(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){c(e,t,r[t])}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=e=>{let{connection:t,onConnectionChange:r,relatedEntity:c}=e;const u=(0,i.useSelector)(l.ZP.selectors.getMetadata),p=(0,n.useCallback)((e=>r(s({},t,{relation:e}))),[t,r]),d=(0,n.useCallback)((0,a.pipe)((0,o.zE1)(t.relation),p),[t.relation,p]),b=(0,n.useCallback)((0,a.pipe)((0,o.lIv)(t.relation),p),[t.relation,p]),y=(0,n.useCallback)((0,a.pipe)((0,o.Ilm)(t.relation),p),[t.relation,p]),f=(0,n.useCallback)((e=>{let{type:n,direction:a}=e;const i={entity:t.entity&&(0,o.eHk)(a===o.Nsj.OUT,t.entity,c,u,(0,o.V3K)(u,n))?t.entity:null,relation:s({},t.relation,{attributes:{},type:n,direction:a})};r(i)}),[t,r,c,u]);return{onAddAttributes:d,onChangeAttribute:b,onRemoveAttribute:y,onChangeEntity:(0,n.useCallback)((e=>r(s({},t,{entity:e}))),[t,r]),onChangeRelationType:f}}},2804:(e,t,r)=>{r.d(t,{a:()=>o});var n=r(24328);const o=e=>{const[t,r]=(0,n.useState)(!1),[o,a]=(0,n.useState)({});return(0,n.useEffect)((()=>{e().then((e=>{a(e||{})})).then((e=>r(!0))).catch((e=>r(!0)))}),[]),{isLoaded:t,savedState:o}}},5937:(e,t,r)=>{r.r(t),r.d(t,{ALWAYS_VISIBLE_TYPE_URIS:()=>vn.S,ActionButton:()=>tn.K,ActionButtonMode:()=>tn.N,ActivityLog:()=>n.Z,ActivityLogFilter:()=>o.Z,ActivityTypes:()=>a.I,AddWorkflowButton:()=>Hr.G,ArrowExpandButton:()=>yr.Z,AssigneeSelector:()=>_r.Z,AsyncMountContext:()=>fo.g,AttributeGroupIcon:()=>on.Z,AttributeListItem:()=>c.Z,AttributeTitle:()=>nr.Z,AttributesFilterSelector:()=>pn.Z,AttributesFiltersBuilder:()=>ln.Z,AttributesFiltersButton:()=>an.Z,AttributesList:()=>d.Z,AttributesPager:()=>S.ZP,AttributesTable:()=>Zr.Z,AttributesValuesEditor:()=>un.Z,AttributesView:()=>u.Z,AutoSizeList:()=>x.Z,AvatarWithFallback:()=>j.Z,BarChart:()=>re.Z,BasicAttributeSelector:()=>nn.Z,BasicTable:()=>M.Z,BasicTableContext:()=>B.X,BasicTablePagination:()=>U.Z,BasicView:()=>K.Z,BasicViewContent:()=>ee.Z,BasicViewHeader:()=>te.Z,BlockImageGalleryDialogContext:()=>Zo.P,BranchDecorator:()=>p.Z,COMMENTS_CONTAINER_VISIBILITY_AREA:()=>Sn.U,CardinalityMessage:()=>v.Z,ChartsFactory:()=>ie.Z,ClickAwayProvider:()=>be,CollaborationContext:()=>So.h,CollaborationItem:()=>ye.J,CollapseButton:()=>fe.Z,CollapseRowButton:()=>$.Z,ColorBar:()=>me.Z,ColumnFilterType:()=>Zn.Dq,ColumnsDataType:()=>Zn.uz,ColumnsSettings:()=>N.Z,ColumnsSettingsPopup:()=>V.G,CommentsContainer:()=>he.Z,ConfigureColumnsPopup:()=>Ce.Z,ConfirmDeleteDialog:()=>gr.Z,ConfirmationDialog:()=>hr.Z,ConnectionEditor:()=>sn.n,ConnectionRelationTypeSelector:()=>Oe.Z,CrosswalkDragLayer:()=>Er.Z,CrosswalkEditor:()=>Or.Z,CrosswalkType:()=>Pr.Y,CrosswalksDisplayProvider:()=>wo.hR,DEFAULT_GOOGLE_MAP_OPTIONS:()=>En.Q3,DEFAULT_OVERLAY_OPTIONS:()=>En.r,DataTenantBadge:()=>gn.R,DataTypeValue:()=>Pe.Z,DataTypeValueEditor:()=>Be.Z,DateEditor:()=>De.Z,DateRangeEditor:()=>Me.Z,DateRangeTypes:()=>Wo.K,DefaultCellValueRenderer:()=>H.Z,DeltaTypes:()=>i.w,DragAndDrop:()=>cn.l,Drawer:()=>we.Z,DropDownEditor:()=>Te.Z,DropDownMenuButton:()=>Ae.Z,DropDownSelector:()=>Re.Z,DropdownIndicator:()=>ge.Z,DropdownIndicatorWithIconButton:()=>Ze.Z,EMPTY_STATE_ICONS:()=>Ue.B9,EMPTY_STATE_VARIANTS:()=>Ue.tC,EditableAttribute:()=>C.Z,EditableImageAttributesLine:()=>A.Z,EmptyState:()=>Ue.ZP,EmptyStub:()=>Cn.Vd,EntitiesMapContext:()=>Po.X,EntityAvatar:()=>He.Z,EntityContext:()=>Io.u,EntityCreator:()=>b.Z,EntityMarkerContext:()=>Ro.P,EntitySelector:()=>y.Z,EntityTypeBadge:()=>Fe.Z,EntityTypeIcon:()=>_e.Z,EntityTypesSelector:()=>qe.Q,EntityUriLink:()=>ze.Z,ErrorBoundary:()=>$e.Z,ErrorMessage:()=>Rr.Z,ErrorPopup:()=>Qe.Z,ErrorWrapper:()=>Ye.Z,ExpandableSearchInput:()=>sr.i,ExpandedAttributesProvider:()=>Ao.R,ExpandedValueTooltip:()=>Xe.Z,FacetViewHeader:()=>Je.Z,FileTypeEditor:()=>Ne.Z,FilterButton:()=>W.Z,FilterValueEditor:()=>Ie.Z,FlipCard:()=>st,HideOnShrink:()=>ct.Z,HierarchicalAttributeTooltip:()=>ut.Z,HighlightedValuesContext:()=>Mo.j,Highlighter:()=>pt.Z,HistoryActivityType:()=>Lr.M,HistoryChangeTypes:()=>Nr.b,HistoryDiffContext:()=>mo.m,HistoryHeader:()=>Mr.Z,HistoryPanelEmptyState:()=>Br.Z,HistoryView:()=>jr.Z,IdContext:()=>Oo.B,ImageAttributesLine:()=>w.Z,ImageGalleryDialog:()=>dt.C,ImportButton:()=>bt.Z,ImportModes:()=>bt.E,InlineAttributesPager:()=>pr.Z,InlineImageAttribute:()=>br.Z,InlineNestedAttribute:()=>ur.Z,InlineReferenceAttribute:()=>dr.Z,InterceptHandlersContext:()=>to.p,LabelsContext:()=>No.T,LightArrowTooltip:()=>fr.Z,LinearLoadIndicator:()=>yt.Z,Link:()=>ft.Z,LoadMoreButton:()=>Se.Z,LoadingSpinner:()=>mt.Z,MAP_DRAWING_MODES:()=>En.vl,MAP_MINIMUM_SCALE_RADIUS:()=>En.Pi,Marginator:()=>mr.Z,MatchRuleVariant:()=>gt.g,MatchRulesBlock:()=>ht.Z,MatchRulesSelector:()=>bn.Z,MenuList:()=>ve.Z,MenuWithPopper:()=>Ee.Z,MergeButton:()=>Kr.H,ModeSwitcher:()=>vt.Z,ModeSwitcherSelect:()=>Et.T,MoreAttributesButton:()=>f.Z,MultiSelect:()=>It.Z,MultiValueChip:()=>xe.Z,MultiValueSelector:()=>dn.Z,MultipleInput:()=>Ct.Z,NestedAttribute:()=>R.Z,NestedAttributeEditor:()=>m.Z,NoData:()=>We.J,NoResults:()=>Ve.X,NotMatchButton:()=>en.i,NumberEditor:()=>je.Z,OvIcon:()=>Wr.Z,PieChart:()=>ne.Z,PivotingAttributeContext:()=>Eo.J,Popper:()=>Ot.Z,PopupBoundariesContext:()=>ho.p,PopupWithArrow:()=>Pt.Z,PotentialMatchReviewCard:()=>wt.Z,ProfileBand:()=>At.Z,ProfileBandHistory:()=>Dr.Z,ProfileBandNavigation:()=>X.a,ProfileCard:()=>Rt.Z,ProfileMatchCard:()=>Jr.M,ProfilePerspectiveViewContext:()=>Co.j,ProfilesList:()=>rn.Z,QueryBuilderAttributeDataType:()=>Zn.eB,QueryBuilderAttributeType:()=>Zn.Xw,QueryBuilderRow:()=>Tt.Z,QueryBuilderRowsGroup:()=>kt.Z,ReactSelectOptionFilters:()=>xt.Z,ReactSortableTree:()=>jt.ZP,ReactSortableTreeHandlers:()=>Mt.ZP,ReactSortableTreeUtils:()=>Dt.ZP,ReadOnlyAttribute:()=>E.Z,ReadOnlyAttributeValuesBlock:()=>O.Z,ReadOnlyAttributesList:()=>P.Z,ReadOnlyAttributesPager:()=>I.Z,ReferenceAttribute:()=>T.Z,ReferenceAttributeEditor:()=>h.Z,RelatedObjectUrisContext:()=>ko.A,RelationEditor:()=>Vr.Z,RelationTypeSelector:()=>g.Z,RelationTypesSelector:()=>Ge.U,ReloadFacetProvider:()=>xo.DX,ReltioGridLayout:()=>Bt.Z,ReltioMap:()=>Ar.Z,RequestStates:()=>Wo.o,ResizablePanes:()=>Lt.Z,RowCellAutoSizer:()=>z.Z,SandboxAPIContext:()=>ro.Y,ScreenProfileBand:()=>J.n,ScrollToErrorContext:()=>Bo.M,ScrollToErrorProvider:()=>Bo.R,ScrollableTabs:()=>cr.Z,SearchFiltersContext:()=>jo.I,SearchInput:()=>Nt.Z,SearchValueContext:()=>Do.l,SelectionPopup:()=>Ut.Z,SelectionPopupPopper:()=>Gt,SelectorWithOnlyOptionAutoSelect:()=>zt.Z,SettingsMenu:()=>hn.Z,SideButtonsPanel:()=>$t.G,SidePanel:()=>Yt.h,SidePanelContentHeader:()=>Xt.P,SidePanelEmptyState:()=>Qt.Z,SimpleAttribute:()=>k.Z,SimpleAttributeEditor:()=>Z.Z,SimpleDropDownSelector:()=>Jt.Z,SimpleMatchRulesBlock:()=>Zt.Z,SmallIconButton:()=>er.Z,SmallIconButtonWithTooltip:()=>Kt.k,SnackbarContext:()=>eo.S,SortingType:()=>Zn.nI,SourceCrosswalksRow:()=>Cr.Z,SourceIcon:()=>tr.Z,SourceSystemsSelector:()=>yn.Z,Spacer:()=>rr.Z,TableContext:()=>B.X,TableWithBars:()=>oe.Z,TaskActionButtons:()=>Yr.o,TaskActions:()=>Fr.Z,TenantIcon:()=>fn.c,TenantsDropDownSelector:()=>mn.H,TextEditor:()=>ke.Z,TimestampEditor:()=>Le.Z,TransitiveMatchBlock:()=>St.Z,TreeChart:()=>ae.Z,UrlGeneratorsContext:()=>Lo.v,UsersContext:()=>vo.s,VerticalDivider:()=>or.Z,VerticalHeadingsTable:()=>ar.Z,ViewIdContext:()=>go.m,ViewMoreToggle:()=>ir.Z,VirtualGroupedList:()=>lr.Z,WhiteSearchInput:()=>Wt.Z,WorkflowComments:()=>qr.V,WorkflowTaskCard:()=>Ur.s,WorkflowTasksContext:()=>To.O,basicTableViewState:()=>G.ZP,buildColumnsFilter:()=>q.Tz,columnFilterToMdmFilter:()=>q.su,createStandardAction:()=>Cn.zD,defaultGetRowCellHeight:()=>F.Z,defaultRenderRowCell:()=>_.Z,enrichDataWithPercents:()=>le.n,getChecked:()=>Cn.IR,getValue:()=>Cn.NA,groupCrosswalksByTypesAndSources:()=>wr.o,isIE:()=>Cn.w1,mergeClasses:()=>Cn.ze,noop:()=>Cn.ZT,parseJSON:()=>Cn.Rx,stopPropagation:()=>Cn.UW,toggleSortOrder:()=>Cn.Dh,useAPI:()=>Tn.E,useActions:()=>Rn.o,useActivitiesLoader:()=>l.d,useAsyncMount:()=>kn.S,useAttributeExpanded:()=>Ao.Q,useBasicTableCellRenderer:()=>Y.Z,useClickableStyle:()=>se.d,useCollaboration:()=>In.C,useCommentsEntitiesMap:()=>xn.Q,useConfigPermissions:()=>Fn.l,useCrosswalkActions:()=>vr.P,useCrosswalkColor:()=>wo.nX,useCrosswalkFocus:()=>wo.BF,useCrosswalkHighlight:()=>wo.pu,useCustomScripts:()=>so,useDidUpdateEffect:()=>jn.D,useDynamicRowCellHeight:()=>Q.Z,useEditableConnection:()=>co.R,useHighlightedCrosswalks:()=>wo.RT,useHistory:()=>kr.k6,useHistoryDiff:()=>Ir.u,useHistoryEnabled:()=>xr.C,useHistorySlice:()=>Tr.a,useIsMountedRef:()=>yo.X,useKeyboardNavigation:()=>Vt.t,useMarkAsNotMatchRequest:()=>zn.m,useMatchesLoader:()=>_n.s,useMergeAllRequest:()=>Gn._,useModifiedEntity:()=>Sr.Q,usePagingSimulator:()=>qn.a,usePrevious:()=>Mn.D,useProfileActivitiesLoader:()=>s.b,useReadableSearchState:()=>uo.v,useRelationTypeSelector:()=>Dn.n,useRelationsLoader:()=>Bn.a,useReloadAllFacets:()=>xo.Hc,useReloadFacet:()=>xo.T,useRunOnceAfterValueInitialization:()=>Ln.q,useSafePromise:()=>Nn._,useSavedState:()=>Wn.a,useSavedStateForEntityType:()=>po.w,useScrollToAttributeError:()=>An.B,useSnackbar:()=>bo.D,useUsers:()=>Vn.U,useWhyDidYouUpdate:()=>Hn,useWorkflowAssignee:()=>Gr.r,useWorkflowCheckPermission:()=>$r.Z,useWorkflowComments:()=>zr.W,useWorkflowDefaultActionSuccessHandler:()=>Xr.b,useWorkflowTasks:()=>Qr.v,withAsyncMount:()=>Pn.Z,withContext:()=>wn.l,withFilterAtBottom:()=>L.Z,withPercents:()=>le.Z,withTableContext:()=>D.Z,withTooltip:()=>On.Z});var n=r(88234),o=r(46188),a=r(31537),i=r(99601),l=r(67486),s=r(63072),c=r(7785),u=r(8962),p=r(95974),d=r(91262),b=r(31588),y=r(81077),f=r(90473),m=r(62630),h=r(2163),g=r(27185),Z=r(18788),S=r(3094),v=r(93140),E=r(81303),C=r(96698),O=r(87760),P=r(80931),w=r(13074),A=r(24338),R=r(28751),T=r(72148),k=r(12068),I=r(24625),x=r(30739),j=r(97991),M=r(85709),D=r(32528),B=r(13688),L=r(67353),N=r(60894),W=r(1876),V=r(47458),U=r(58662),H=r(64091),F=r(25461),_=r(14838),q=r(99341),G=r(26180),z=r(97946),$=r(74566),Q=r(74402),Y=r(46177),X=r(93873),J=r(40715),K=r(10237),ee=r(4094),te=r(92778),re=r(40801),ne=r(79527),oe=r(83535),ae=r(3292),ie=r(66675),le=r(84900),se=r(99256),ce=r(24328),ue=r.n(ce),pe=r(1292);function de(){return de=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},de.apply(this,arguments)}const be=e=>ue().createElement(pe.Z,de({mouseEvent:"onMouseDown"},e));var ye=r(9371),fe=r(58241),me=r(43290),he=r(94646),ge=r(94113),Ze=r(96808),Se=r(6029),ve=r(14952),Ee=r(36179),Ce=r(89119),Oe=r(7154),Pe=r(72768),we=r(27652),Ae=r(55847),Re=r(24737),Te=r(79026),ke=r(81174),Ie=r(24754),xe=r(82455),je=r(31890),Me=r(59983),De=r(8459),Be=r(28117),Le=r(43305),Ne=r(27113),We=r(6230),Ve=r(94889),Ue=r(21077),He=r(53180),Fe=r(68439),_e=r(31254),qe=r(59725),Ge=r(32371),ze=r(31039),$e=r(2256),Qe=r(585),Ye=r(26579),Xe=r(95613),Je=r(93416),Ke=r(79692);const et=e=>`rotateY(${e?180:0}deg)`,tt=e=>`rotateX(${e?180:0}deg)`,rt=e=>`rotateY(${e?0:-180}deg)`,nt=e=>`rotateX(${e?0:-180}deg)`,ot=(0,Ke.Z)({back:e=>{let{isFlipped:t,direction:r}=e;return{WebkitBackfaceVisibility:"hidden",backfaceVisibility:"hidden",height:"100%",left:"0",position:t?"relative":"absolute",top:"0",transform:"horizontal"===r?rt(t):nt(t),transformStyle:"preserve-3d",transition:"0.7s",width:"100%",display:"flex"}},container:e=>{let{cardZIndex:t}=e;return{perspective:"1000px",zIndex:t}},flipper:{height:"100%",position:"relative",width:"100%"},front:e=>{let{isFlipped:t,direction:r}=e;return{WebkitBackfaceVisibility:"hidden",backfaceVisibility:"hidden",height:"100%",left:"0",position:t?"absolute":"relative",top:"0",transform:"horizontal"===r?et(t):tt(t),transformStyle:"preserve-3d",transition:"0.7s",width:"100%",zIndex:2,display:"flex"}}});var at=r(71153),it=r.n(at);const lt=(0,ce.forwardRef)(((e,t)=>{let{cardZIndex:r="auto",direction:n="vertical",isCardFlipped:o=!1,children:a,className:i}=e;const[l,s]=(0,ce.useState)(o),c=ot({cardZIndex:r,direction:n,isFlipped:l});return(0,ce.useEffect)((()=>{o!==l&&s(o)}),[o,l]),ue().createElement("div",{className:it()(c.flipper,i),ref:t},ue().createElement("div",{"data-id":"front",className:c.front},a[0]),ue().createElement("div",{"data-id":"back",className:c.back},a[1]))})),st=lt;var ct=r(75512),ut=r(46813),pt=r(27239),dt=r(81853),bt=r(81727),yt=r(99136),ft=r(55400),mt=r(37014),ht=r(22071),gt=r(77245),Zt=r(74615),St=r(93301),vt=r(83401),Et=r(22860),Ct=r(48809),Ot=r(66130),Pt=r(59601),wt=r(35071),At=r(64459),Rt=r(33310),Tt=r(23598),kt=r(41315),It=r(92575),xt=r(50905),jt=r(58600),Mt=r(65758),Dt=r(21113),Bt=r(67268),Lt=r(96955),Nt=r(94574),Wt=r(16025),Vt=r(54763),Ut=r(97820),Ht=r(25480),Ft=r(94079),_t=r(27556);function qt(){return qt=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},qt.apply(this,arguments)}const Gt=e=>{let{open:t,anchorEl:r,className:n,onClose:o,containerWidth:a,containerHeight:i,paperProps:l,listContent:s,externalInputField:c,classes:u={}}=e;const p=(0,Ht.Z)({containerWidth:a,containerHeight:i});return ue().createElement("div",{className:u.root},c,ue().createElement(Ot.Z,{open:t,onClose:o,anchorEl:r,placement:"bottom-start",transition:!0},(e=>{let{TransitionProps:t}=e;return ue().createElement(Ft.Grow,t,ue().createElement(_t.Z,qt({elevation:2},l),ue().createElement("div",{className:it()(p.container,n),style:{width:a}},ue().createElement("div",{className:p.list},s))))})))};var zt=r(43775),$t=r(39827),Qt=r(10159),Yt=r(52043),Xt=r(17308),Jt=r(31517),Kt=r(8818),er=r(22385),tr=r(94175),rr=r(51229),nr=r(95629),or=r(30553),ar=r(34635),ir=r(77565),lr=r(44890),sr=r(32152),cr=r(32431),ur=r(58896),pr=r(4073),dr=r(85592),br=r(22246),yr=r(19592),fr=r(94111),mr=r(31269),hr=r(81137),gr=r(85209),Zr=r(20982),Sr=r(85965),vr=r(39417),Er=r(48017),Cr=r(52017),Or=r(79769),Pr=r(77243),wr=r(90186),Ar=r(48747),Rr=r(76134),Tr=r(57730),kr=r(85890),Ir=r(76536),xr=r(71820),jr=r(54362),Mr=r(91515),Dr=r(3409),Br=r(6674),Lr=r(65942),Nr=r(55912),Wr=r(81149),Vr=r(11013),Ur=r(46626),Hr=r(26789),Fr=r(46628),_r=r(30078),qr=r(89140),Gr=r(5434),zr=r(43477),$r=r(22994),Qr=r(61756),Yr=r(65321),Xr=r(4109),Jr=r(49734),Kr=r(93428),en=r(30885),tn=r(98808),rn=r(82842),nn=r(99757),on=r(79821),an=r(63172),ln=r(12714),sn=r(14363),cn=r(6521),un=r(70215),pn=r(64731),dn=r(52309),bn=r(58970),yn=r(54337),fn=r(59651),mn=r(95474),hn=r(54013),gn=r(86776),Zn=r(94656),Sn=r(19603),vn=r(78836),En=r(97090),Cn=r(31276),On=r(83348),Pn=r(49965),wn=r(48852),An=r(11564),Rn=r(86361),Tn=r(9757),kn=r(96479),In=r(7718),xn=r(26313),jn=r(20562),Mn=r(30634),Dn=r(89846),Bn=r(37152),Ln=r(92898),Nn=r(85229),Wn=r(2804),Vn=r(17554);function Un(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Hn=(e,t)=>{const r=(0,ce.useRef)();(0,ce.useEffect)((()=>{if(r.current){const n=Object.keys(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){Un(e,t,r[t])}))}return e}({},r.current,t)),o={};n.forEach((e=>{r.current[e]!==t[e]&&(o[e]={from:r.current[e],to:t[e]})})),Object.keys(o).length&&console.log("[why-did-you-update]",e,o)}r.current=t}))};var Fn=r(52016),_n=r(28741),qn=r(20449),Gn=r(84504),zn=r(59119),$n=r(52730),Qn=r(49885),Yn=r(57014),Xn=r(58697),Jn=r.n(Xn),Kn=r(17440),eo=r(97094),to=r(47872),ro=r(60115),no=r(26929),oo=r(53607);function ao(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){io(e,t,r[t])}))}return e}function io(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const lo=(e,t)=>(e||[]).some((e=>{const r=new RegExp(`^${e}$`);return e.replace(/\/*$/,"")===t||e&&r.test(t)})),so=e=>{const t=e.reduce(((e,t)=>t.platform!==Yn.X1H.CLASSIC?[...e,ao({},t,{actionId:Jn()()})]:e),[]),r=(0,ce.useContext)(eo.S),{addInternalRequestInterceptor:n,addInternalResponseInterceptor:o,removeInternalRequestInterceptor:a,removeInternalResponseInterceptor:i}=(0,ce.useContext)(to.p),l=(0,ce.useContext)(ro.Y),s=(0,$n.useDispatch)(),c=(0,$n.useSelector)(Qn.ZP.selectors.getMetadata)||{},u=(0,$n.useSelector)(Qn.ZP.selectors.getEntity)||{},p=(0,$n.useSelector)(Qn.ZP.selectors.getUIPath),d=(0,$n.useSelector)(Qn.ZP.selectors.getServicesPath),b=(0,$n.useSelector)(Qn.ZP.selectors.getReltioPath),y=(0,$n.useSelector)(Qn.ZP.selectors.getTenant),f=(0,no.jm)(p,y),m=(0,$n.useSelector)(Qn.ZP.selectors.getApiPath),h=(0,$n.useSelector)(Qn.ZP.selectors.getWorkflowPath),g=(0,$n.useSelector)(Qn.ZP.selectors.getUser),Z=(0,$n.useSelector)(Qn.ZP.selectors.getEntityUri),S=(0,$n.useSelector)(Qn.ZP.selectors.getWorkflowEnvironmentUrl),v=(0,$r.Z)(),{type:E,data:C}=(0,$n.useSelector)(Qn.ZP.selectors.getSearchProviderData)||{},O=e=>s(Qn.ui.actions.openSearch(e)),P=(0,ce.useRef)({}),w=(0,ce.useRef)({}),A=(0,ce.useRef)({}),R=e=>{let{task:t,worker:n,config:o}=e;if(t)switch(t.action){case Yn.W0P.LOG:console.log(t.params);break;case Yn.W0P.MESSAGE:r(t.params);break;case Yn.W0P.REQUEST:var a,i;if("ui"!==(null===(a=t.params)||void 0===a||null===(i=a.headers)||void 0===i?void 0:i.origin))(0,oo.U)(ao({name:t.params.name,paramObject:t,permissions:o.action.permissions,worker:n,metadata:c,config:o,user:g,apiPath:m,servicesPath:d,tenant:y,workflowPath:h,entity:u,entityUri:Z,environment:S,query:"search"===E?null==C?void 0:C.query:null,openSearch:O,workflowCheckPermission:v},l));else{const{headers:e,id:r,url:n,method:o,data:a}=t.params,i=n.replace(b,m);P.current[e.requestId]&&(P.current[e.requestId].next(i,{body:a,id:r,task:t,headers:e,method:o}),P.current=(0,Kn.omit)([e.requestId],P.current))}break;case Yn.W0P.RETURN_PROCESSED_API_RESPONSE:case Yn.W0P.RETURN_PROCESSED_API_REQUEST:{const{id:e,data:r}=t.params;w.current[e]&&(w.current[e].next(r),w.current=(0,Kn.omit)([e],w.current));break}}};(0,ce.useEffect)((()=>(A.current=t.reduce(((e,t)=>{const r=(e=>{const{processApiResponse:t,processApiRequest:r,permissions:n,files:o}=e;return ao({action:{processApiResponse:t,processApiRequest:r,permissions:n,files:o}},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,["processApiResponse","processApiRequest","permissions","files"]))})(t);return ao({},e,{[t.actionId]:(0,Yn.QWZ)(f,R,r)})}),A.current),()=>{Object.keys(A.current).forEach((e=>{A.current[e].terminate()}))})),[e]);const T=e=>{let{options:r={},url:n,next:o}=e;const a=n.startsWith("/")&&!n.startsWith(m)?`${b}/api/${y}${n}`:`${b}${n.replace(m,"")}`,i=(0,Kn.pipe)((0,Kn.map)((0,Kn.pick)(["actionId","processApiRequest"])),(0,Kn.find)((e=>{let{processApiRequest:t}=e;return lo(t,a)})),(0,Kn.prop)("actionId"))(t);if(i){const e=Jn()();P.current=ao({},P.current,{[e]:{options:r,next:o,id:e}}),A.current[i].postMessage({action:"apiRequest",id:e,url:a,method:r.method,headers:ao({},r.headers,{origin:"ui",requestId:e,actionId:i}),data:r.body||r.data})}else o(n,r)},k=e=>{var r;let{url:n,response:o,next:a,options:i,abort:l}=e;if("ui"===(null==i||null===(r=i.headers)||void 0===r?void 0:r.origin))o.json().then((e=>{var t,r,n;w.current=ao({},w.current,{[i.headers.requestId]:{next:a}}),A.current[null===(t=i.headers)||void 0===t?void 0:t.actionId].postMessage({action:"response",result:{data:e},id:null==i?void 0:i.id,name:null==i||null===(r=i.task)||void 0===r||null===(n=r.params)||void 0===n?void 0:n.name})})).catch((e=>{l(e)}));else{const e=`${b}${n.replace(m,"")}`,r=(0,Kn.pipe)((0,Kn.map)((0,Kn.pick)(["actionId","processApiResponse"])),(0,Kn.find)((t=>{let{processApiResponse:r}=t;return lo(r,e)})),(0,Kn.prop)("actionId"))(t);if(r){const t=Jn()();o.json().then((n=>{w.current=ao({},w.current,{[t]:{next:a}}),A.current[r].postMessage({action:"apiResponse",id:t,url:e,method:i.method,data:n})})).catch((e=>{l(e)}))}else a(o)}};(0,ce.useEffect)((()=>{if(!(0,Yn.O27)(t))return n(T),o(k),()=>{a(T),i(k)}}),[e])};var co=r(78620),uo=r(41188),po=r(60641),bo=r(24605),yo=r(8159),fo=r(7142),mo=r(26005),ho=r(30268),go=r(39450),Zo=r(69891),So=r(3515),vo=r(49759),Eo=r(60995),Co=r(26481),Oo=r(52049),Po=r(31274),wo=r(63149),Ao=r(66095),Ro=r(91676),To=r(94150),ko=r(78101),Io=r(3185),xo=r(98884),jo=r(56259),Mo=r(43600),Do=r(72249),Bo=r(47137),Lo=r(72383),No=r(79468),Wo=r(67885)}}]);
2
- //# sourceMappingURL=5937.js.map
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[4183],{14363:(e,t,r)=>{r.d(t,{n:()=>g});const n=(0,r(79692).Z)({item:{marginBottom:"16px"},dense:{marginBottom:0}});var o=r(20562),a=r(24328),i=r.n(a),l=r(52730),s=r(49885),c=r(27950),u=r(91262),p=r(71153),d=r.n(p),b=r(17440),y=r(7154),f=r(26579),m=r(81077);function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const g=e=>{let{connection:t,relatedEntity:r,inRelationTypes:p=[],outRelationTypes:g=[],showEmptyEditors:Z,entityErrorMessage:S,onChangeAttribute:v,onRemoveAttribute:E,onAddAttributes:C,onChangeRelationType:O,onChangeEntity:P}=e;const w=n(),{relation:A,entity:R}=t,{attributes:T,uri:k,type:I="",direction:x}=A||{},j=Boolean(I),M=(0,l.useSelector)(s.ZP.selectors.getMetadata),D=(0,a.useMemo)((()=>A&&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){h(e,t,r[t])}))}return e}({attributes:T},(0,c.p2l)(A))),[A,T]),B=(0,a.useMemo)((()=>(0,c.xF8)(M,I)),[I,M]),L=(0,a.useMemo)((()=>j?(0,c.jWj)(x===c.Nsj.OUT,M,[(0,c.V3K)(M,I)]):(0,b.uniq)((0,c.jWj)(!0,M,g).concat((0,c.jWj)(!1,M,p)))),[j,I,M,p,g]),N=(0,l.useSelector)((e=>s.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]))),W=(0,a.useMemo)((()=>A&&{relationType:A.type,direction:A.direction}),[A]),V=(0,a.useMemo)((()=>R&&{entityUri:R.uri,entityType:R.type,entityLabel:(0,c.idV)(R.label)}),[R]),U=(0,a.useMemo)((()=>R&&R.uri?p.filter((0,c.eHk)(!1,R,r,M)):p),[R,p,r,M]),H=(0,a.useMemo)((()=>R&&R.uri?g.filter((0,c.eHk)(!0,R,r,M)):g),[R,g,r,M]);(0,a.useEffect)((()=>{const{type:e,direction:t}=(0,c.z7d)(p,g)||{};!I&&e&&O&&O({type:e.uri,direction:t})}),[I,p,g,O]),(0,o.D)((()=>{const{type:e,direction:t}=(0,c.z7d)(U,H)||{};!I&&e&&O({type:e.uri,direction:t})}),[I,R,U,H,P]);const F=(0,a.useCallback)((e=>{let{type:t,direction:r}=e;O({type:t.uri,direction:r})}),[O]);return i().createElement(i().Fragment,null,O&&i().createElement(y.Z,{className:w.item,relation:W,metadata:M,inRelationTypes:p,outRelationTypes:g,onChange:F}),P&&i().createElement(f.Z,{errorMessage:S,className:w.item},i().createElement(m.Z,{key:I,className:d()({[w.dense]:S}),entity:V||{},entityTypesUris:L,max:20,globalSearchRequestOptions:N,mode:c.fO_.EDITING,onChange:P,onCreate:void 0,metadata:M,attributeTypesSelectionStrategy:void 0})),I&&i().createElement(u.Z,{attrTypes:B,entity:D,showEmptyEditors:Z,mode:c.fO_.EDITING,parentUri:k,onAddAttributes:C,onChangeAttribute:v,onDeleteAttribute:E}))}},6230:(e,t,r)=>{r.d(t,{J:()=>c});var n=r(24328),o=r.n(n),a=r(87918),i=r.n(a),l=r(15689);function s(){return s=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},s.apply(this,arguments)}const c=e=>o().createElement(l.Z,s({message:i().text("No data available")},e))},46813:(e,t,r)=>{r.d(t,{Z:()=>b});var n=r(24328),o=r.n(n),a=r(17440),i=r(80030),l=r(79692);function s(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){c(e,t,r[t])}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=(0,a.range)(2,10).reduce(((e,t)=>s({},e,{[`&:nth-child(${t})`]:{paddingLeft:`calc(1em * (${t} - 2))`,"&::before":{content:'"└"',display:"inline-block",fontSize:"1em",marginRight:"5px",color:"rgba(255, 255, 255, 0.28)"}}})),{}),p=(0,l.Z)((e=>({tooltip:e.tooltip,tooltipContent:{minWidth:"165px",padding:"4px 2px 2px","& p":{fontSize:"11px",lineHeight:"13px",fontWeight:500,margin:0,color:"white"},"& ul":{listStyleType:"none",padding:0,margin:0,"& li":s({fontSize:"10px",lineHeight:"11px",fontWeight:500,color:"rgba(255, 255, 255, 0.7)",marginTop:"4px"},u,{"&:last-child":{color:"white"}}),"& li + li":{marginTop:"2px"}}}})));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)}const b=e=>{let{pathToTitle:t,children:r}=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,["pathToTitle","children"]);const l=p(),s=null!=t&&t.length?o().createElement("div",{className:l.tooltipContent},o().createElement("p",null,(0,a.last)(t)),t.length>2&&o().createElement("ul",null,t.map((e=>o().createElement("li",{key:e},e))))):"";return o().createElement(i.ZP,d({title:s,disableFocusListener:!0,classes:{tooltip:l.tooltip}},n),r)}},32371:(e,t,r)=>{r.d(t,{U:()=>c});var n=r(24328),o=r.n(n),a=r(87918),i=r.n(a),l=r(27950),s=r(42520);const c=(0,n.memo)((e=>{let{relationTypes:t,selectedRelationTypes:r,single:a,placeholder:c,enableEmptyValueUnderline:u,onChange:p,classes:d={},ListLabelProps:b={},disabled:y=!1}=e;const f=(0,n.useMemo)((()=>t.filter(l.Tt2)),[t]);return o().createElement(s.S,{items:f,selectedItemsUris:r,single:a,placeholder:c,enableEmptyValueUnderline:u,onChange:p,classes:d,ListLabelProps:b,disabled:y,label:i().text("Relation type"),dataReltioId:"relation-type-selector",selectionPopupTitle:i().text("Select relation types")})}));c.displayName="RelationTypesSelector"},32431:(e,t,r)=>{r.d(t,{Z:()=>p});var n=r(24328),o=r.n(n),a=r(99152),i=r(6487),l=r(95613);const s=(0,r(79692).Z)({tabsRoot:{width:"100%"},tabsScrollButton:{flex:"0 0 24px"},tabRoot:{fontSize:"0.875rem",padding:"7px 18px 5px","@media (min-width: 960px)":{minWidth:"inherit"},"&$disabled":{pointerEvents:"auto"}},labelWrapper:{whiteSpace:"nowrap",letterSpacing:"normal",display:"flex",flexDirection:"row",width:"100%"},label:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",fontWeight:500},disabled:{}});function c(){return c=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},c.apply(this,arguments)}function u(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}const p=e=>{let{value:t,tabs:r=[],onChange:n,tabClasses:p}=e,d=u(e,["value","tabs","onChange","tabClasses"]);const b=s(),y=(e,t)=>o().createElement("span",{className:b.labelWrapper},o().createElement(l.Z,{value:e},o().createElement("span",{className:b.label},e)),t);return o().createElement(a.Z,c({value:t,onChange:(e,t)=>n(t),classes:{root:b.tabsRoot,scrollButtons:b.tabsScrollButton},indicatorColor:"primary",textColor:"primary",variant:"scrollable",scrollButtons:"on"},d),r.map((e=>{let{label:t,value:r,additionalLabel:n,dataReltioId:a}=e,l=u(e,["label","value","additionalLabel","dataReltioId"]);return o().createElement(i.Z,c({classes:p||{root:b.tabRoot,disabled:b.disabled},key:r,value:r,label:y(t,n),"data-reltio-id":a},l))})))}},16025:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(24328),o=r.n(n),a=r(94574),i=r(63015);function l(){return l=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},l.apply(this,arguments)}function s(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){c(e,t,r[t])}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=e=>{let{classes: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,["classes"]);const n=(0,i.y)({});return o().createElement(a.Z,l({classes:s({},t,{focused:n.white})},r))}},77565:(e,t,r)=>{r.d(t,{Z:()=>f});var n=r(24328),o=r.n(n),a=r(13980),i=r.n(a),l=r(94079),s=r(83543);const c=(0,r(79692).Z)((()=>({viewMoreLessLink:{display:"flex",alignItems:"center",cursor:"pointer"},arrow:{marginRight:"8px",marginLeft:"-2px",transform:"rotate(0deg)",transition:"transform 0.35s ease"},rotated:{transform:"rotate(-180deg)"}})));var u=r(71153),p=r.n(u),d=r(87918),b=r.n(d);const y=e=>{let{active:t,onClick:r,className:n}=e;const a=c();return o().createElement(l.Link,{className:p()(a.viewMoreLessLink,n),onClick:r,underline:"none"},o().createElement(s.Z,{className:p()(a.arrow,{[a.rotated]:t})}),t?b().text("View less"):b().text("View more"))};y.propTypes={active:i().bool,onClick:i().func,className:i().string};const f=y},63072:(e,t,r)=>{r.d(t,{b:()=>i});var n=r(24328),o=r(27950),a=r(56764);const i=e=>{let{filter:t,max:r,offset:i,entityUri:l}=e;return(0,n.useCallback)((async()=>{const e=(0,a.U)(t),n=await(0,o.k6v)({filter:e,max:r,offset:i,entityUri:l}),{total:s}=await(0,o.FEC)({filter:e,entityUri:l});return{data:n,total:s}}),[t,r,i,l])}},78620:(e,t,r)=>{r.d(t,{R:()=>u});var n=r(24328),o=r(27950),a=r(17440),i=r(52730),l=r(49885);function s(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){c(e,t,r[t])}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=e=>{let{connection:t,onConnectionChange:r,relatedEntity:c}=e;const u=(0,i.useSelector)(l.ZP.selectors.getMetadata),p=(0,n.useCallback)((e=>r(s({},t,{relation:e}))),[t,r]),d=(0,n.useCallback)((0,a.pipe)((0,o.zE1)(t.relation),p),[t.relation,p]),b=(0,n.useCallback)((0,a.pipe)((0,o.lIv)(t.relation),p),[t.relation,p]),y=(0,n.useCallback)((0,a.pipe)((0,o.Ilm)(t.relation),p),[t.relation,p]),f=(0,n.useCallback)((e=>{let{type:n,direction:a}=e;const i={entity:t.entity&&(0,o.eHk)(a===o.Nsj.OUT,t.entity,c,u,(0,o.V3K)(u,n))?t.entity:null,relation:s({},t.relation,{attributes:{},type:n,direction:a})};r(i)}),[t,r,c,u]);return{onAddAttributes:d,onChangeAttribute:b,onRemoveAttribute:y,onChangeEntity:(0,n.useCallback)((e=>r(s({},t,{entity:e}))),[t,r]),onChangeRelationType:f}}},2804:(e,t,r)=>{r.d(t,{a:()=>o});var n=r(24328);const o=e=>{const[t,r]=(0,n.useState)(!1),[o,a]=(0,n.useState)({});return(0,n.useEffect)((()=>{e().then((e=>{a(e||{})})).then((e=>r(!0))).catch((e=>r(!0)))}),[]),{isLoaded:t,savedState:o}}},4183:(e,t,r)=>{r.r(t),r.d(t,{ALWAYS_VISIBLE_TYPE_URIS:()=>vn.S,ActionButton:()=>tn.K,ActionButtonMode:()=>tn.N,ActivityLog:()=>n.Z,ActivityLogFilter:()=>o.Z,ActivityTypes:()=>a.I,AddWorkflowButton:()=>Hr.G,ArrowExpandButton:()=>yr.Z,AssigneeSelector:()=>_r.Z,AsyncMountContext:()=>fo.g,AttributeGroupIcon:()=>on.Z,AttributeListItem:()=>c.Z,AttributeTitle:()=>nr.Z,AttributesFilterSelector:()=>pn.Z,AttributesFiltersBuilder:()=>ln.Z,AttributesFiltersButton:()=>an.Z,AttributesList:()=>d.Z,AttributesPager:()=>S.ZP,AttributesTable:()=>Zr.Z,AttributesValuesEditor:()=>un.Z,AttributesView:()=>u.Z,AutoSizeList:()=>x.Z,AvatarWithFallback:()=>j.Z,BarChart:()=>re.Z,BasicAttributeSelector:()=>nn.Z,BasicTable:()=>M.Z,BasicTableContext:()=>B.X,BasicTablePagination:()=>U.Z,BasicView:()=>K.Z,BasicViewContent:()=>ee.Z,BasicViewHeader:()=>te.Z,BlockImageGalleryDialogContext:()=>Zo.P,BranchDecorator:()=>p.Z,COMMENTS_CONTAINER_VISIBILITY_AREA:()=>Sn.U,CardinalityMessage:()=>v.Z,ChartsFactory:()=>ie.Z,ClickAwayProvider:()=>be,CollaborationContext:()=>So.h,CollaborationItem:()=>ye.J,CollapseButton:()=>fe.Z,CollapseRowButton:()=>$.Z,ColorBar:()=>me.Z,ColumnFilterType:()=>Zn.Dq,ColumnsDataType:()=>Zn.uz,ColumnsSettings:()=>N.Z,ColumnsSettingsPopup:()=>V.G,CommentsContainer:()=>he.Z,ConfigureColumnsPopup:()=>Ce.Z,ConfirmDeleteDialog:()=>gr.Z,ConfirmationDialog:()=>hr.Z,ConnectionEditor:()=>sn.n,ConnectionRelationTypeSelector:()=>Oe.Z,CrosswalkDragLayer:()=>Er.Z,CrosswalkEditor:()=>Or.Z,CrosswalkType:()=>Pr.Y,CrosswalksDisplayProvider:()=>wo.hR,DEFAULT_GOOGLE_MAP_OPTIONS:()=>En.Q3,DEFAULT_OVERLAY_OPTIONS:()=>En.r,DataTenantBadge:()=>gn.R,DataTypeValue:()=>Pe.Z,DataTypeValueEditor:()=>Be.Z,DateEditor:()=>De.Z,DateRangeEditor:()=>Me.Z,DateRangeTypes:()=>Wo.K,DefaultCellValueRenderer:()=>H.Z,DeltaTypes:()=>i.w,DragAndDrop:()=>cn.l,Drawer:()=>we.Z,DropDownEditor:()=>Te.Z,DropDownMenuButton:()=>Ae.Z,DropDownSelector:()=>Re.Z,DropdownIndicator:()=>ge.Z,DropdownIndicatorWithIconButton:()=>Ze.Z,EMPTY_STATE_ICONS:()=>Ue.B9,EMPTY_STATE_VARIANTS:()=>Ue.tC,EditableAttribute:()=>C.Z,EditableImageAttributesLine:()=>A.Z,EmptyState:()=>Ue.ZP,EmptyStub:()=>Cn.Vd,EntitiesMapContext:()=>Po.X,EntityAvatar:()=>He.Z,EntityContext:()=>Io.u,EntityCreator:()=>b.Z,EntityMarkerContext:()=>Ro.P,EntitySelector:()=>y.Z,EntityTypeBadge:()=>Fe.Z,EntityTypeIcon:()=>_e.Z,EntityTypesSelector:()=>qe.Q,EntityUriLink:()=>ze.Z,ErrorBoundary:()=>$e.Z,ErrorMessage:()=>Rr.Z,ErrorPopup:()=>Qe.Z,ErrorWrapper:()=>Ye.Z,ExpandableSearchInput:()=>sr.i,ExpandedAttributesProvider:()=>Ao.R,ExpandedValueTooltip:()=>Xe.Z,FacetViewHeader:()=>Je.Z,FileTypeEditor:()=>Ne.Z,FilterButton:()=>W.Z,FilterValueEditor:()=>Ie.Z,FlipCard:()=>st,HideOnShrink:()=>ct.Z,HierarchicalAttributeTooltip:()=>ut.Z,HighlightedValuesContext:()=>Mo.j,Highlighter:()=>pt.Z,HistoryActivityType:()=>Lr.M,HistoryChangeTypes:()=>Nr.b,HistoryDiffContext:()=>mo.m,HistoryHeader:()=>Mr.Z,HistoryPanelEmptyState:()=>Br.Z,HistoryView:()=>jr.Z,IdContext:()=>Oo.B,ImageAttributesLine:()=>w.Z,ImageGalleryDialog:()=>dt.C,ImportButton:()=>bt.Z,ImportModes:()=>bt.E,InlineAttributesPager:()=>pr.Z,InlineImageAttribute:()=>br.Z,InlineNestedAttribute:()=>ur.Z,InlineReferenceAttribute:()=>dr.Z,InterceptHandlersContext:()=>to.p,LabelsContext:()=>No.T,LightArrowTooltip:()=>fr.Z,LinearLoadIndicator:()=>yt.Z,Link:()=>ft.Z,LoadMoreButton:()=>Se.Z,LoadingSpinner:()=>mt.Z,MAP_DRAWING_MODES:()=>En.vl,MAP_MINIMUM_SCALE_RADIUS:()=>En.Pi,Marginator:()=>mr.Z,MatchRuleVariant:()=>gt.g,MatchRulesBlock:()=>ht.Z,MatchRulesSelector:()=>bn.Z,MenuList:()=>ve.Z,MenuWithPopper:()=>Ee.Z,MergeButton:()=>Kr.H,ModeSwitcher:()=>vt.Z,ModeSwitcherSelect:()=>Et.T,MoreAttributesButton:()=>f.Z,MultiSelect:()=>It.Z,MultiValueChip:()=>xe.Z,MultiValueSelector:()=>dn.Z,MultipleInput:()=>Ct.Z,NestedAttribute:()=>R.Z,NestedAttributeEditor:()=>m.Z,NoData:()=>We.J,NoResults:()=>Ve.X,NotMatchButton:()=>en.i,NumberEditor:()=>je.Z,OvIcon:()=>Wr.Z,PieChart:()=>ne.Z,PivotingAttributeContext:()=>Eo.J,Popper:()=>Ot.Z,PopupBoundariesContext:()=>ho.p,PopupWithArrow:()=>Pt.Z,PotentialMatchReviewCard:()=>wt.Z,ProfileBand:()=>At.Z,ProfileBandHistory:()=>Dr.Z,ProfileBandNavigation:()=>X.a,ProfileCard:()=>Rt.Z,ProfileMatchCard:()=>Jr.M,ProfilePerspectiveViewContext:()=>Co.j,ProfilesList:()=>rn.Z,QueryBuilderAttributeDataType:()=>Zn.eB,QueryBuilderAttributeType:()=>Zn.Xw,QueryBuilderRow:()=>Tt.Z,QueryBuilderRowsGroup:()=>kt.Z,ReactSelectOptionFilters:()=>xt.Z,ReactSortableTree:()=>jt.ZP,ReactSortableTreeHandlers:()=>Mt.ZP,ReactSortableTreeUtils:()=>Dt.ZP,ReadOnlyAttribute:()=>E.Z,ReadOnlyAttributeValuesBlock:()=>O.Z,ReadOnlyAttributesList:()=>P.Z,ReadOnlyAttributesPager:()=>I.Z,ReferenceAttribute:()=>T.Z,ReferenceAttributeEditor:()=>h.Z,RelatedObjectUrisContext:()=>ko.A,RelationEditor:()=>Vr.Z,RelationTypeSelector:()=>g.Z,RelationTypesSelector:()=>Ge.U,ReloadFacetProvider:()=>xo.DX,ReltioGridLayout:()=>Bt.Z,ReltioMap:()=>Ar.Z,RequestStates:()=>Wo.o,ResizablePanes:()=>Lt.Z,RowCellAutoSizer:()=>z.Z,SandboxAPIContext:()=>ro.Y,ScreenProfileBand:()=>J.n,ScrollToErrorContext:()=>Bo.M,ScrollToErrorProvider:()=>Bo.R,ScrollableTabs:()=>cr.Z,SearchFiltersContext:()=>jo.I,SearchInput:()=>Nt.Z,SearchValueContext:()=>Do.l,SelectionPopup:()=>Ut.Z,SelectionPopupPopper:()=>Gt,SelectorWithOnlyOptionAutoSelect:()=>zt.Z,SettingsMenu:()=>hn.Z,SideButtonsPanel:()=>$t.G,SidePanel:()=>Yt.h,SidePanelContentHeader:()=>Xt.P,SidePanelEmptyState:()=>Qt.Z,SimpleAttribute:()=>k.Z,SimpleAttributeEditor:()=>Z.Z,SimpleDropDownSelector:()=>Jt.Z,SimpleMatchRulesBlock:()=>Zt.Z,SmallIconButton:()=>er.Z,SmallIconButtonWithTooltip:()=>Kt.k,SnackbarContext:()=>eo.S,SortingType:()=>Zn.nI,SourceCrosswalksRow:()=>Cr.Z,SourceIcon:()=>tr.Z,SourceSystemsSelector:()=>yn.Z,Spacer:()=>rr.Z,TableContext:()=>B.X,TableWithBars:()=>oe.Z,TaskActionButtons:()=>Yr.o,TaskActions:()=>Fr.Z,TenantIcon:()=>fn.c,TenantsDropDownSelector:()=>mn.H,TextEditor:()=>ke.Z,TimestampEditor:()=>Le.Z,TransitiveMatchBlock:()=>St.Z,TreeChart:()=>ae.Z,UrlGeneratorsContext:()=>Lo.v,UsersContext:()=>vo.s,VerticalDivider:()=>or.Z,VerticalHeadingsTable:()=>ar.Z,ViewIdContext:()=>go.m,ViewMoreToggle:()=>ir.Z,VirtualGroupedList:()=>lr.Z,WhiteSearchInput:()=>Wt.Z,WorkflowComments:()=>qr.V,WorkflowTaskCard:()=>Ur.s,WorkflowTasksContext:()=>To.O,basicTableViewState:()=>G.ZP,buildColumnsFilter:()=>q.Tz,columnFilterToMdmFilter:()=>q.su,createStandardAction:()=>Cn.zD,defaultGetRowCellHeight:()=>F.Z,defaultRenderRowCell:()=>_.Z,enrichDataWithPercents:()=>le.n,getChecked:()=>Cn.IR,getValue:()=>Cn.NA,groupCrosswalksByTypesAndSources:()=>wr.o,isIE:()=>Cn.w1,mergeClasses:()=>Cn.ze,noop:()=>Cn.ZT,parseJSON:()=>Cn.Rx,stopPropagation:()=>Cn.UW,toggleSortOrder:()=>Cn.Dh,useAPI:()=>Tn.E,useActions:()=>Rn.o,useActivitiesLoader:()=>l.d,useAsyncMount:()=>kn.S,useAttributeExpanded:()=>Ao.Q,useBasicTableCellRenderer:()=>Y.Z,useClickableStyle:()=>se.d,useCollaboration:()=>In.C,useCommentsEntitiesMap:()=>xn.Q,useConfigPermissions:()=>Fn.l,useCrosswalkActions:()=>vr.P,useCrosswalkColor:()=>wo.nX,useCrosswalkFocus:()=>wo.BF,useCrosswalkHighlight:()=>wo.pu,useCustomScripts:()=>so,useDidUpdateEffect:()=>jn.D,useDynamicRowCellHeight:()=>Q.Z,useEditableConnection:()=>co.R,useHighlightedCrosswalks:()=>wo.RT,useHistory:()=>kr.k6,useHistoryDiff:()=>Ir.u,useHistoryEnabled:()=>xr.C,useHistorySlice:()=>Tr.a,useIsMountedRef:()=>yo.X,useKeyboardNavigation:()=>Vt.t,useMarkAsNotMatchRequest:()=>zn.m,useMatchesLoader:()=>_n.s,useMergeAllRequest:()=>Gn._,useModifiedEntity:()=>Sr.Q,usePagingSimulator:()=>qn.a,usePrevious:()=>Mn.D,useProfileActivitiesLoader:()=>s.b,useReadableSearchState:()=>uo.v,useRelationTypeSelector:()=>Dn.n,useRelationsLoader:()=>Bn.a,useReloadAllFacets:()=>xo.Hc,useReloadFacet:()=>xo.T,useRunOnceAfterValueInitialization:()=>Ln.q,useSafePromise:()=>Nn._,useSavedState:()=>Wn.a,useSavedStateForEntityType:()=>po.w,useScrollToAttributeError:()=>An.B,useSnackbar:()=>bo.D,useUsers:()=>Vn.U,useWhyDidYouUpdate:()=>Hn,useWorkflowAssignee:()=>Gr.r,useWorkflowCheckPermission:()=>$r.Z,useWorkflowComments:()=>zr.W,useWorkflowDefaultActionSuccessHandler:()=>Xr.b,useWorkflowTasks:()=>Qr.v,withAsyncMount:()=>Pn.Z,withContext:()=>wn.l,withFilterAtBottom:()=>L.Z,withPercents:()=>le.Z,withTableContext:()=>D.Z,withTooltip:()=>On.Z});var n=r(88234),o=r(46188),a=r(31537),i=r(99601),l=r(67486),s=r(63072),c=r(7785),u=r(8962),p=r(95974),d=r(91262),b=r(31588),y=r(81077),f=r(90473),m=r(62630),h=r(2163),g=r(27185),Z=r(18788),S=r(3094),v=r(93140),E=r(81303),C=r(96698),O=r(87760),P=r(80931),w=r(13074),A=r(24338),R=r(28751),T=r(72148),k=r(12068),I=r(24625),x=r(30739),j=r(97991),M=r(85709),D=r(32528),B=r(13688),L=r(67353),N=r(60894),W=r(1876),V=r(47458),U=r(58662),H=r(64091),F=r(25461),_=r(14838),q=r(99341),G=r(26180),z=r(97946),$=r(74566),Q=r(74402),Y=r(46177),X=r(93873),J=r(40715),K=r(10237),ee=r(4094),te=r(92778),re=r(40801),ne=r(79527),oe=r(83535),ae=r(3292),ie=r(66675),le=r(84900),se=r(99256),ce=r(24328),ue=r.n(ce),pe=r(1292);function de(){return de=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},de.apply(this,arguments)}const be=e=>ue().createElement(pe.Z,de({mouseEvent:"onMouseDown"},e));var ye=r(9371),fe=r(58241),me=r(43290),he=r(94646),ge=r(94113),Ze=r(96808),Se=r(6029),ve=r(14952),Ee=r(36179),Ce=r(89119),Oe=r(7154),Pe=r(72768),we=r(27652),Ae=r(55847),Re=r(24737),Te=r(79026),ke=r(81174),Ie=r(24754),xe=r(82455),je=r(31890),Me=r(59983),De=r(8459),Be=r(28117),Le=r(43305),Ne=r(27113),We=r(6230),Ve=r(94889),Ue=r(21077),He=r(53180),Fe=r(68439),_e=r(34e3),qe=r(59725),Ge=r(32371),ze=r(31039),$e=r(2256),Qe=r(585),Ye=r(26579),Xe=r(95613),Je=r(93416),Ke=r(79692);const et=e=>`rotateY(${e?180:0}deg)`,tt=e=>`rotateX(${e?180:0}deg)`,rt=e=>`rotateY(${e?0:-180}deg)`,nt=e=>`rotateX(${e?0:-180}deg)`,ot=(0,Ke.Z)({back:e=>{let{isFlipped:t,direction:r}=e;return{WebkitBackfaceVisibility:"hidden",backfaceVisibility:"hidden",height:"100%",left:"0",position:t?"relative":"absolute",top:"0",transform:"horizontal"===r?rt(t):nt(t),transformStyle:"preserve-3d",transition:"0.7s",width:"100%",display:"flex"}},container:e=>{let{cardZIndex:t}=e;return{perspective:"1000px",zIndex:t}},flipper:{height:"100%",position:"relative",width:"100%"},front:e=>{let{isFlipped:t,direction:r}=e;return{WebkitBackfaceVisibility:"hidden",backfaceVisibility:"hidden",height:"100%",left:"0",position:t?"absolute":"relative",top:"0",transform:"horizontal"===r?et(t):tt(t),transformStyle:"preserve-3d",transition:"0.7s",width:"100%",zIndex:2,display:"flex"}}});var at=r(71153),it=r.n(at);const lt=(0,ce.forwardRef)(((e,t)=>{let{cardZIndex:r="auto",direction:n="vertical",isCardFlipped:o=!1,children:a,className:i}=e;const[l,s]=(0,ce.useState)(o),c=ot({cardZIndex:r,direction:n,isFlipped:l});return(0,ce.useEffect)((()=>{o!==l&&s(o)}),[o,l]),ue().createElement("div",{className:it()(c.flipper,i),ref:t},ue().createElement("div",{"data-id":"front",className:c.front},a[0]),ue().createElement("div",{"data-id":"back",className:c.back},a[1]))})),st=lt;var ct=r(75512),ut=r(46813),pt=r(27239),dt=r(81853),bt=r(81727),yt=r(99136),ft=r(55400),mt=r(37014),ht=r(22071),gt=r(77245),Zt=r(74615),St=r(93301),vt=r(83401),Et=r(22860),Ct=r(48809),Ot=r(66130),Pt=r(59601),wt=r(35071),At=r(64459),Rt=r(33310),Tt=r(17349),kt=r(41315),It=r(92575),xt=r(50905),jt=r(58600),Mt=r(65758),Dt=r(21113),Bt=r(67268),Lt=r(96955),Nt=r(94574),Wt=r(16025),Vt=r(54763),Ut=r(97820),Ht=r(25480),Ft=r(94079),_t=r(27556);function qt(){return qt=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},qt.apply(this,arguments)}const Gt=e=>{let{open:t,anchorEl:r,className:n,onClose:o,containerWidth:a,containerHeight:i,paperProps:l,listContent:s,externalInputField:c,classes:u={}}=e;const p=(0,Ht.Z)({containerWidth:a,containerHeight:i});return ue().createElement("div",{className:u.root},c,ue().createElement(Ot.Z,{open:t,onClose:o,anchorEl:r,placement:"bottom-start",transition:!0},(e=>{let{TransitionProps:t}=e;return ue().createElement(Ft.Grow,t,ue().createElement(_t.Z,qt({elevation:2},l),ue().createElement("div",{className:it()(p.container,n),style:{width:a}},ue().createElement("div",{className:p.list},s))))})))};var zt=r(43775),$t=r(39827),Qt=r(10159),Yt=r(52043),Xt=r(17308),Jt=r(31517),Kt=r(8818),er=r(22385),tr=r(94175),rr=r(51229),nr=r(95629),or=r(30553),ar=r(34635),ir=r(77565),lr=r(44890),sr=r(32152),cr=r(32431),ur=r(58896),pr=r(4073),dr=r(85592),br=r(22246),yr=r(19592),fr=r(94111),mr=r(31269),hr=r(81137),gr=r(85209),Zr=r(20982),Sr=r(85965),vr=r(39417),Er=r(48017),Cr=r(52017),Or=r(79769),Pr=r(77243),wr=r(90186),Ar=r(48747),Rr=r(76134),Tr=r(57730),kr=r(85890),Ir=r(76536),xr=r(71820),jr=r(54362),Mr=r(91515),Dr=r(3409),Br=r(6674),Lr=r(65942),Nr=r(55912),Wr=r(81149),Vr=r(11013),Ur=r(46626),Hr=r(26789),Fr=r(46628),_r=r(30078),qr=r(89140),Gr=r(5434),zr=r(43477),$r=r(22994),Qr=r(61756),Yr=r(65321),Xr=r(4109),Jr=r(49734),Kr=r(93428),en=r(30885),tn=r(98808),rn=r(82842),nn=r(99757),on=r(79821),an=r(63172),ln=r(12714),sn=r(14363),cn=r(6521),un=r(70215),pn=r(64731),dn=r(52309),bn=r(58970),yn=r(54337),fn=r(59651),mn=r(95474),hn=r(54013),gn=r(86776),Zn=r(94656),Sn=r(19603),vn=r(78836),En=r(97090),Cn=r(31276),On=r(83348),Pn=r(49965),wn=r(48852),An=r(11564),Rn=r(86361),Tn=r(9757),kn=r(96479),In=r(7718),xn=r(26313),jn=r(20562),Mn=r(30634),Dn=r(89846),Bn=r(37152),Ln=r(92898),Nn=r(85229),Wn=r(2804),Vn=r(17554);function Un(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Hn=(e,t)=>{const r=(0,ce.useRef)();(0,ce.useEffect)((()=>{if(r.current){const n=Object.keys(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){Un(e,t,r[t])}))}return e}({},r.current,t)),o={};n.forEach((e=>{r.current[e]!==t[e]&&(o[e]={from:r.current[e],to:t[e]})})),Object.keys(o).length&&console.log("[why-did-you-update]",e,o)}r.current=t}))};var Fn=r(52016),_n=r(28741),qn=r(20449),Gn=r(84504),zn=r(59119),$n=r(52730),Qn=r(49885),Yn=r(27950),Xn=r(58697),Jn=r.n(Xn),Kn=r(17440),eo=r(97094),to=r(47872),ro=r(60115),no=r(26929),oo=r(53607);function ao(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){io(e,t,r[t])}))}return e}function io(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const lo=(e,t)=>(e||[]).some((e=>{const r=new RegExp(`^${e}$`);return e.replace(/\/*$/,"")===t||e&&r.test(t)})),so=e=>{const t=e.reduce(((e,t)=>t.platform!==Yn.X1H.CLASSIC?[...e,ao({},t,{actionId:Jn()()})]:e),[]),r=(0,ce.useContext)(eo.S),{addInternalRequestInterceptor:n,addInternalResponseInterceptor:o,removeInternalRequestInterceptor:a,removeInternalResponseInterceptor:i}=(0,ce.useContext)(to.p),l=(0,ce.useContext)(ro.Y),s=(0,$n.useDispatch)(),c=(0,$n.useSelector)(Qn.ZP.selectors.getMetadata)||{},u=(0,$n.useSelector)(Qn.ZP.selectors.getEntity)||{},p=(0,$n.useSelector)(Qn.ZP.selectors.getUIPath),d=(0,$n.useSelector)(Qn.ZP.selectors.getServicesPath),b=(0,$n.useSelector)(Qn.ZP.selectors.getReltioPath),y=(0,$n.useSelector)(Qn.ZP.selectors.getTenant),f=(0,no.jm)(p,y),m=(0,$n.useSelector)(Qn.ZP.selectors.getApiPath),h=(0,$n.useSelector)(Qn.ZP.selectors.getWorkflowPath),g=(0,$n.useSelector)(Qn.ZP.selectors.getUser),Z=(0,$n.useSelector)(Qn.ZP.selectors.getEntityUri),S=(0,$n.useSelector)(Qn.ZP.selectors.getWorkflowEnvironmentUrl),v=(0,$r.Z)(),{type:E,data:C}=(0,$n.useSelector)(Qn.ZP.selectors.getSearchProviderData)||{},O=e=>s(Qn.ui.actions.openSearch(e)),P=(0,ce.useRef)({}),w=(0,ce.useRef)({}),A=(0,ce.useRef)({}),R=e=>{let{task:t,worker:n,config:o}=e;if(t)switch(t.action){case Yn.W0P.LOG:console.log(t.params);break;case Yn.W0P.MESSAGE:r(t.params);break;case Yn.W0P.REQUEST:var a,i;if("ui"!==(null===(a=t.params)||void 0===a||null===(i=a.headers)||void 0===i?void 0:i.origin))(0,oo.U)(ao({name:t.params.name,paramObject:t,permissions:o.action.permissions,worker:n,metadata:c,config:o,user:g,apiPath:m,servicesPath:d,tenant:y,workflowPath:h,entity:u,entityUri:Z,environment:S,query:"search"===E?null==C?void 0:C.query:null,openSearch:O,workflowCheckPermission:v},l));else{const{headers:e,id:r,url:n,method:o,data:a}=t.params,i=n.replace(b,m);P.current[e.requestId]&&(P.current[e.requestId].next(i,{body:a,id:r,task:t,headers:e,method:o}),P.current=(0,Kn.omit)([e.requestId],P.current))}break;case Yn.W0P.RETURN_PROCESSED_API_RESPONSE:case Yn.W0P.RETURN_PROCESSED_API_REQUEST:{const{id:e,data:r}=t.params;w.current[e]&&(w.current[e].next(r),w.current=(0,Kn.omit)([e],w.current));break}}};(0,ce.useEffect)((()=>(A.current=t.reduce(((e,t)=>{const r=(e=>{const{processApiResponse:t,processApiRequest:r,permissions:n,files:o}=e;return ao({action:{processApiResponse:t,processApiRequest:r,permissions:n,files:o}},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,["processApiResponse","processApiRequest","permissions","files"]))})(t);return ao({},e,{[t.actionId]:(0,Yn.QWZ)(f,R,r)})}),A.current),()=>{Object.keys(A.current).forEach((e=>{A.current[e].terminate()}))})),[e]);const T=e=>{let{options:r={},url:n,next:o}=e;const a=n.startsWith("/")&&!n.startsWith(m)?`${b}/api/${y}${n}`:`${b}${n.replace(m,"")}`,i=(0,Kn.pipe)((0,Kn.map)((0,Kn.pick)(["actionId","processApiRequest"])),(0,Kn.find)((e=>{let{processApiRequest:t}=e;return lo(t,a)})),(0,Kn.prop)("actionId"))(t);if(i){const e=Jn()();P.current=ao({},P.current,{[e]:{options:r,next:o,id:e}}),A.current[i].postMessage({action:"apiRequest",id:e,url:a,method:r.method,headers:ao({},r.headers,{origin:"ui",requestId:e,actionId:i}),data:r.body||r.data})}else o(n,r)},k=e=>{var r;let{url:n,response:o,next:a,options:i,abort:l}=e;if("ui"===(null==i||null===(r=i.headers)||void 0===r?void 0:r.origin))o.json().then((e=>{var t,r,n;w.current=ao({},w.current,{[i.headers.requestId]:{next:a}}),A.current[null===(t=i.headers)||void 0===t?void 0:t.actionId].postMessage({action:"response",result:{data:e},id:null==i?void 0:i.id,name:null==i||null===(r=i.task)||void 0===r||null===(n=r.params)||void 0===n?void 0:n.name})})).catch((e=>{l(e)}));else{const e=`${b}${n.replace(m,"")}`,r=(0,Kn.pipe)((0,Kn.map)((0,Kn.pick)(["actionId","processApiResponse"])),(0,Kn.find)((t=>{let{processApiResponse:r}=t;return lo(r,e)})),(0,Kn.prop)("actionId"))(t);if(r){const t=Jn()();o.json().then((n=>{w.current=ao({},w.current,{[t]:{next:a}}),A.current[r].postMessage({action:"apiResponse",id:t,url:e,method:i.method,data:n})})).catch((e=>{l(e)}))}else a(o)}};(0,ce.useEffect)((()=>{if(!(0,Yn.O27)(t))return n(T),o(k),()=>{a(T),i(k)}}),[e])};var co=r(78620),uo=r(41188),po=r(60641),bo=r(24605),yo=r(8159),fo=r(7142),mo=r(26005),ho=r(30268),go=r(39450),Zo=r(69891),So=r(3515),vo=r(49759),Eo=r(60995),Co=r(26481),Oo=r(52049),Po=r(31274),wo=r(63149),Ao=r(66095),Ro=r(91676),To=r(94150),ko=r(78101),Io=r(3185),xo=r(98884),jo=r(56259),Mo=r(43600),Do=r(72249),Bo=r(47137),Lo=r(72383),No=r(79468),Wo=r(67885)}}]);
2
+ //# sourceMappingURL=4183.js.map