@reltio/remotes 1.4.1521 → 1.4.1523

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 (87) hide show
  1. package/1032.js +1 -1
  2. package/1032.js.map +1 -1
  3. package/1268.js +1 -1
  4. package/1396.js +1 -1
  5. package/1396.js.map +1 -1
  6. package/1901.js +3 -0
  7. package/1901.js.map +1 -0
  8. package/233.js +2 -0
  9. package/233.js.map +1 -0
  10. package/316.js +2 -0
  11. package/316.js.map +1 -0
  12. package/3164.js +2 -0
  13. package/3164.js.map +1 -0
  14. package/3396.js +1 -1
  15. package/3396.js.map +1 -1
  16. package/3758.js +2 -0
  17. package/3758.js.map +1 -0
  18. package/385.js +2 -0
  19. package/385.js.map +1 -0
  20. package/4120.js +2 -0
  21. package/4120.js.map +1 -0
  22. package/4183.js +1 -1
  23. package/4183.js.map +1 -1
  24. package/4571.js +1 -1
  25. package/545.js +2 -0
  26. package/545.js.map +1 -0
  27. package/5605.js.map +1 -1
  28. package/566.js +2 -0
  29. package/566.js.map +1 -0
  30. package/{4407.css → 574.css} +1 -1
  31. package/574.css.map +1 -0
  32. package/574.js +2 -0
  33. package/574.js.map +1 -0
  34. package/{6046.js → 6211.js} +2 -2
  35. package/6211.js.map +1 -0
  36. package/6233.js +1 -1
  37. package/6233.js.map +1 -1
  38. package/6299.js.map +1 -1
  39. package/{5285.js → 6578.js} +2 -2
  40. package/6578.js.map +1 -0
  41. package/7198.js +2 -0
  42. package/7198.js.map +1 -0
  43. package/769.js +2 -0
  44. package/769.js.map +1 -0
  45. package/8594.js +2 -0
  46. package/8594.js.map +1 -0
  47. package/8684.js +1 -1
  48. package/{3294.js → 8768.js} +2 -2
  49. package/8768.js.map +1 -0
  50. package/9835.js +2 -0
  51. package/9835.js.map +1 -0
  52. package/package.json +1 -1
  53. package/remoteEntry.js +1 -1
  54. package/remoteEntry.js.map +1 -1
  55. package/3270.js +0 -2
  56. package/3270.js.map +0 -1
  57. package/3294.js.map +0 -1
  58. package/4407.css.map +0 -1
  59. package/4407.js +0 -2
  60. package/4407.js.map +0 -1
  61. package/5285.js.map +0 -1
  62. package/6046.js.map +0 -1
  63. package/6103.js +0 -2
  64. package/6103.js.map +0 -1
  65. package/6244.js +0 -2
  66. package/6244.js.map +0 -1
  67. package/6413.js +0 -3
  68. package/6413.js.map +0 -1
  69. package/6669.js +0 -2
  70. package/6669.js.map +0 -1
  71. package/6719.js +0 -2
  72. package/6719.js.map +0 -1
  73. package/6880.js +0 -2
  74. package/6880.js.map +0 -1
  75. package/8443.js +0 -2
  76. package/8443.js.map +0 -1
  77. package/8932.js +0 -2
  78. package/8932.js.map +0 -1
  79. package/929.js +0 -2
  80. package/929.js.map +0 -1
  81. package/9481.js +0 -2
  82. package/9481.js.map +0 -1
  83. package/9561.js +0 -2
  84. package/9561.js.map +0 -1
  85. package/9852.js +0 -2
  86. package/9852.js.map +0 -1
  87. /package/{6413.js.LICENSE.txt → 1901.js.LICENSE.txt} +0 -0
package/7198.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[7198],{8598:(e,t,n)=>{n.d(t,{Z:()=>o});var a=n(95038),r=n.n(a);const o=function(){function e(e){var t=void 0===e?{}:e,n=t.locale,a=t.instance,o=t.moment;this.yearFormat="YYYY",this.yearMonthFormat="MMMM YYYY",this.dateTime12hFormat="MMMM Do hh:mm a",this.dateTime24hFormat="MMMM Do HH:mm",this.time12hFormat="hh:mm A",this.time24hFormat="HH:mm",this.dateFormat="MMMM Do",this.moment=a||o||r(),this.locale=n}return e.prototype.parse=function(e,t){return""===e?null:this.moment(e,t,!0)},e.prototype.date=function(e){if(null===e)return null;var t=this.moment(e);return t.locale(this.locale),t},e.prototype.isValid=function(e){return this.moment(e).isValid()},e.prototype.isNull=function(e){return null===e},e.prototype.getDiff=function(e,t){return e.diff(t)},e.prototype.isAfter=function(e,t){return e.isAfter(t)},e.prototype.isBefore=function(e,t){return e.isBefore(t)},e.prototype.isAfterDay=function(e,t){return e.isAfter(t,"day")},e.prototype.isBeforeDay=function(e,t){return e.isBefore(t,"day")},e.prototype.isBeforeYear=function(e,t){return e.isBefore(t,"year")},e.prototype.isAfterYear=function(e,t){return e.isAfter(t,"year")},e.prototype.startOfDay=function(e){return e.clone().startOf("day")},e.prototype.endOfDay=function(e){return e.clone().endOf("day")},e.prototype.format=function(e,t){return e.locale(this.locale),e.format(t)},e.prototype.formatNumber=function(e){return e},e.prototype.getHours=function(e){return e.get("hours")},e.prototype.addDays=function(e,t){return t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days")},e.prototype.setHours=function(e,t){return e.clone().hours(t)},e.prototype.getMinutes=function(e){return e.get("minutes")},e.prototype.setMinutes=function(e,t){return e.clone().minutes(t)},e.prototype.getSeconds=function(e){return e.get("seconds")},e.prototype.setSeconds=function(e,t){return e.clone().seconds(t)},e.prototype.getMonth=function(e){return e.get("month")},e.prototype.isSameDay=function(e,t){return e.isSame(t,"day")},e.prototype.isSameMonth=function(e,t){return e.isSame(t,"month")},e.prototype.isSameYear=function(e,t){return e.isSame(t,"year")},e.prototype.isSameHour=function(e,t){return e.isSame(t,"hour")},e.prototype.setMonth=function(e,t){return e.clone().month(t)},e.prototype.getMeridiemText=function(e){return"am"===e?"AM":"PM"},e.prototype.startOfMonth=function(e){return e.clone().startOf("month")},e.prototype.endOfMonth=function(e){return e.clone().endOf("month")},e.prototype.getNextMonth=function(e){return e.clone().add(1,"month")},e.prototype.getPreviousMonth=function(e){return e.clone().subtract(1,"month")},e.prototype.getMonthArray=function(e){for(var t=[e.clone().startOf("year")];t.length<12;){var n=t[t.length-1];t.push(this.getNextMonth(n))}return t},e.prototype.getYear=function(e){return e.get("year")},e.prototype.setYear=function(e,t){return e.clone().set("year",t)},e.prototype.mergeDateAndTime=function(e,t){return this.setMinutes(this.setHours(e,this.getHours(t)),this.getMinutes(t))},e.prototype.getWeekdays=function(){return this.moment.weekdaysShort(!0)},e.prototype.isEqual=function(e,t){return null===e&&null===t||this.moment(e).isSame(t)},e.prototype.getWeekArray=function(e){for(var t=e.clone().startOf("month").startOf("week"),n=e.clone().endOf("month").endOf("week"),a=0,r=t,o=[];r.isBefore(n);){var i=Math.floor(a/7);o[i]=o[i]||[],o[i].push(r),r=r.clone().add(1,"day"),a+=1}return o},e.prototype.getYearRange=function(e,t){for(var n=this.moment(e).startOf("year"),a=this.moment(t).endOf("year"),r=[],o=n;o.isBefore(a);)r.push(o),o=o.clone().add(1,"year");return r},e.prototype.getCalendarHeaderText=function(e){return this.format(e,this.yearMonthFormat)},e.prototype.getYearText=function(e){return this.format(e,"YYYY")},e.prototype.getDatePickerHeaderText=function(e){return this.format(e,"ddd, MMM D")},e.prototype.getDateTimePickerHeaderText=function(e){return this.format(e,"MMM D")},e.prototype.getMonthText=function(e){return this.format(e,"MMMM")},e.prototype.getDayText=function(e){return this.format(e,"D")},e.prototype.getHourText=function(e,t){return this.format(e,t?"hh":"HH")},e.prototype.getMinuteText=function(e){return this.format(e,"mm")},e.prototype.getSecondText=function(e){return this.format(e,"ss")},e}()},27604:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.Z=o},71519:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11z"}),"EventBusy");t.Z=o},99144:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");t.Z=o},67766:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"KeyboardArrowLeft");t.Z=o},42767:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");t.Z=o},47603:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement(r.default.Fragment,null,r.default.createElement("path",{transform:"scale(1.2, 1.2)",fill:"none",d:"M0 0h20v20H0V0z"}),r.default.createElement("path",{transform:"scale(1.2, 1.2)",d:"M15.95 10.78c.03-.25.05-.51.05-.78s-.02-.53-.06-.78l1.69-1.32c.15-.12.19-.34.1-.51l-1.6-2.77c-.1-.18-.31-.24-.49-.18l-1.99.8c-.42-.32-.86-.58-1.35-.78L12 2.34c-.03-.2-.2-.34-.4-.34H8.4c-.2 0-.36.14-.39.34l-.3 2.12c-.49.2-.94.47-1.35.78l-1.99-.8c-.18-.07-.39 0-.49.18l-1.6 2.77c-.1.18-.06.39.1.51l1.69 1.32c-.04.25-.07.52-.07.78s.02.53.06.78L2.37 12.1c-.15.12-.19.34-.1.51l1.6 2.77c.1.18.31.24.49.18l1.99-.8c.42.32.86.58 1.35.78l.3 2.12c.04.2.2.34.4.34h3.2c.2 0 .37-.14.39-.34l.3-2.12c.49-.2.94-.47 1.35-.78l1.99.8c.18.07.39 0 .49-.18l1.6-2.77c.1-.18.06-.39-.1-.51l-1.67-1.32zM10 13c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"})),"Settings");t.Z=o},72753:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");t.Z=o},32528:(e,t,n)=>{n.d(t,{Z:()=>o});var a=n(13688),r=n(48852);const o=e=>t=>(0,r.l)(a.X,e,t)},58662:(e,t,n)=>{n.d(t,{Z:()=>y});var a=n(13980),r=n.n(a),o=n(24328),i=n.n(o),l=n(71153),s=n.n(l),c=n(94079),u=n(87918),p=n.n(u),d=n(31276),m=n(17440);const h=(0,n(79692).Z)({pagination:{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"56px",borderTop:"1px solid rgba(0,0,0,0.12)",boxShadow:"none"},caption:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px"},selectRoot:{marginLeft:"5px",marginRight:"36px"},select:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px",textAlign:"right"},actions:{marginLeft:"32px"}});function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){g(e,t,n[t])}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const b=e=>{let{classes:t={},count:n,rowsPerPageOptions:a,page:r,onChangePage:l,rowsPerPage:u,onChangeRowsPerPage:g,basicTableRef:b,labelRowsPerPage:y}=e;const v=h(),x=(0,o.useCallback)((()=>{(0,m.pathOr)(m.identity,["current","resetScrollbarPosition"],b)()}),[b]),E=(0,o.useCallback)((e=>{l(e),x()}),[l,x]),S=(0,o.useCallback)((e=>{l(0),g(e),x()}),[l,g,x]);return i().createElement(c.TablePagination,{classes:f({},t,{root:s()(v.pagination,t.root),select:s()(v.select,t.select),caption:v.caption,selectRoot:v.selectRoot,actions:v.actions}),component:"div",labelRowsPerPage:y||p().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:n,count:a}=e;return p().text("${fromRow}-${toRow} of ${countRows}",{fromRow:p().number(t,"0,0"),toRow:p().number(n,"0,0"),countRows:p().number(a,"0,0")})},count:n,rowsPerPageOptions:a,page:r,onChangePage:(0,m.pipe)((0,m.nthArg)(1),E),rowsPerPage:u,onChangeRowsPerPage:(0,m.pipe)(d.NA,S)})};b.propTypes={classes:r().object,rowsPerPageOptions:r().arrayOf(r().number),count:r().number,page:r().number,onChangePage:r().func,rowsPerPage:r().number,onChangeRowsPerPage:r().func,basicTableRef:r().shape({current:r().object}),labelRowsPerPage:r().string};const y=i().memo(b)},81137:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(24328),r=n.n(a),o=n(87918),i=n.n(o),l=n(94079);const s=(0,n(79692).Z)({paper:{minHeight:"180px"},title:{padding:"16px 16px 10px 16px",fontSize:"20px",fontWeight:500,letterSpacing:"0.25px",lineHeight:"24px"},content:{padding:"0 16px"},contentText:{marginBottom:0,fontSize:"16px",letterSpacing:"0.15px",lineHeight:"24px"},actionButtons:{display:"flex",paddingTop:"4px",fontSize:"14px",fontWeight:500,letterSpacing:0,lineHeight:"16px","& > div":{marginLeft:"auto"}},discardButton:{marginRight:"8px"}}),c=e=>{let{open:t,title:n,content:a,onCancel:o,cancelCaption:c=i().text("Cancel"),onDiscard:u,discardCaption:p="",onSave:d,saveCaption:m=i().text("Save"),disabledSave:h=!1}=e;const f=s();return r().createElement(l.Dialog,{open:t,onClose:o,classes:{paperScrollPaper:f.paper}},r().createElement(l.DialogTitle,{classes:{root:f.title}},n),r().createElement(l.DialogContent,{classes:{root:f.content}},r().createElement(l.DialogContentText,{classes:{root:f.contentText}},a)),r().createElement(l.DialogActions,{className:f.actionButtons,disableSpacing:!0},o&&r().createElement(l.Button,{onClick:o},c),r().createElement("div",null,u&&r().createElement(l.Button,{onClick:u,classes:{root:f.discardButton}},p),r().createElement(l.Button,{onClick:d,color:"primary",disabled:h,autoFocus:!0},m))))}},68439:(e,t,n)=>{n.d(t,{Z:()=>m});var a=n(24328),r=n.n(a),o=n(52730),i=n(71153),l=n.n(i),s=n(94079),c=n(67958),u=n(49885),p=n(95613);const d=(0,n(79692).Z)({"entityType-overflow":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",marginRight:"12px",borderRadius:"2px",flexShrink:0},"entityType-medium":{padding:"2px 8px 3px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"15px",marginRight:"16px",flexShrink:0}}),m=e=>{let{entity:t,className:n,size:a="small"}=e;const i=d(),m=(0,o.useSelector)(u.ZP.selectors.getMetadata),h=t.type,f=(0,c.nt9)(m,h)||{},g=(0,c.VD3)(m,f,"typeColor")||c.rSc.palette.primary.main,b=(0,c.jFi)(m,t);return r().createElement(p.Z,{value:b,placement:"top"},r().createElement(s.Typography,{style:{backgroundColor:g,color:c.P6Y.Colors.getColor(g)?"#FFFFFF":"#212121"},className:l()(i[`entityType-${a}`],i["entityType-overflow"],n),component:"div"},b))}},64459:(e,t,n)=>{n.d(t,{Z:()=>b});var a=n(24328),r=n.n(a),o=n(71153),i=n.n(o),l=n(52730),s=n(17440),c=n(94079),u=n(87918),p=n.n(u),d=n(67958),m=n(49885),h=n(53180),f=n(68439);const g=(0,n(79692).Z)((e=>({profileBandWrapper:{flexShrink:0},profileBand:{display:"flex",padding:"16px 12px 16px 16px",alignItems:"flex-start",backgroundColor:"#fff",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.12)",marginBottom:"1px","&:after":{content:'""',minHeight:"inherit",fontSize:0}},inactive:{background:e.inactiveBackground},profileIcon:{marginRight:"12px"},imageProfileIcon:{width:"48px",height:"48px"},profileInfo:{display:"flex",flexDirection:"column",flex:"1 1 50%"},badge:{},label:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary,wordBreak:"break-word","&+ $specialInfo":{marginTop:"4px"}},secondaryLabel:{display:"inline-flex",color:e.palette.text.primary,marginTop:"2px",lineHeight:"16px",fontSize:"14px",fontWeight:400,"&+ $businessCard":{marginLeft:"12px"}},businessCard:{color:e.palette.text.secondary,display:"inline-flex",fontSize:"14px",marginTop:"4px",lineHeight:"1.2"},specialInfo:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",width:"100%",marginTop:"8px"},entityType:{display:"flex",flexWrap:"wrap"},entityId:{fontSize:"13px",color:e.palette.text.secondary,whiteSpace:"nowrap",cursor:"pointer","&:hover":{textDecoration:"underline"}}}))),b=e=>{let{className:t,entity:n,children:o,classes:u,renderLabel:b=s.identity}=e;const y=g({classes:u}),v=(0,l.useSelector)(m.ZP.selectors.getMetadata),x=(0,l.useSelector)(m.ZP.selectors.getShowEntityId),E=(0,a.useCallback)((()=>{navigator.clipboard.writeText((0,d.BTI)(n))}),[n]);if((0,s.isNil)(n))return null;const S=(0,d.idV)(n.label),C=n.secondaryLabel,w=(0,d.ptG)(v,n),T=(0,d.Fn9)(n),O=n.uri,P=(0,d.BTI)(n);return r().createElement("div",{className:i()(y.profileBandWrapper,t)},r().createElement("div",{className:i()(y.profileBand,{[y.inactive]:!T}),"data-entity-uri":O},r().createElement(h.Z,{key:n.uri,entity:n,avatarClassName:y.profileIcon,imageClassName:y.imageProfileIcon}),r().createElement("div",{className:y.profileInfo},r().createElement("div",null,r().createElement(c.Typography,{variant:"h6",className:y.label},b(S)),C&&r().createElement(c.Typography,{variant:"subtitle2",className:y.secondaryLabel},C),w&&r().createElement(c.Typography,{variant:"subtitle1",className:y.businessCard},w)),r().createElement("div",{className:y.specialInfo},r().createElement("div",{className:y.entityType},r().createElement(f.Z,{entity:n,size:"medium",className:y.badge}),!(0,d.ZiX)(O)&&x&&r().createElement(c.Tooltip,{title:p().text("Copy to clipboard")},r().createElement(c.Typography,{display:"inline",variant:"body2",className:y.entityId,onClick:E},p().text("Entity ID"),": ",P))))),o&&r().createElement("div",null,o)))}},79618:(e,t,n)=>{n.d(t,{a:()=>L});var a=n(24328),r=n.n(a),o=n(94079),i=n(67766),l=n(42767),s=n(67958),c=n(71153),u=n.n(c),p=n(17440),d=n(87918),m=n.n(d),h=n(79468),f=n(83348),g=n(8818);const b=(0,n(79692).Z)({container:{display:"flex",alignItems:"center"},link:{whiteSpace:"nowrap",marginRight:"9px"}}),y=(0,f.Z)(o.Link),v=e=>{var t;let{className:n,total:o=0,onPrev:c,onNext:d,onSearchResultsClick:f,isPrevDisabled:v,isNextDisabled:x}=e;const E=b(),S=(0,a.useContext)(h.T),{OPEN_RESULTS:C,SEARCH_RESULT:w,SEARCH_RESULTS:T,NEXT_PROFILE:O,PREVIOUS_PROFILE:P}=(0,p.mergeRight)({OPEN_RESULTS:m().text("Go to search results"),SEARCH_RESULT:m().text("Search result"),SEARCH_RESULTS:m().text("Search results"),PREVIOUS_PROFILE:m().text("Go to previous profile"),NEXT_PROFILE:m().text("Go to next profile")},null!==(t=null==S?void 0:S.profileBand)&&void 0!==t?t:{});return r().createElement("div",{className:u()(E.container,n)},r().createElement(y,{className:E.link,component:"button",variant:"caption",onClick:f,underline:"none",tooltipTitle:C},(0,s.k7L)(o,1e6)," ",1===o?w:T),r().createElement(g.k,{size:"L",icon:i.Z,tooltipTitle:P,onClick:c,disabled:v,showForDisabled:!0}),r().createElement(g.k,{size:"L",icon:l.Z,tooltipTitle:O,onClick:d,disabled:x,showForDisabled:!0}))};var x=n(52730),E=n(49885),S=n(94622),C=n(47898),w=n(54198),T=n(85229);function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){P(e,t,n[t])}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class k{constructor(e){var t=this;let{data:{query:n,sortField:a,sortOrder:r},tenant:o,searchTenant:i,apiPath:l,dtssPath:c,globalSearchRequestOptions:u}=e;this.query=void 0,this.sortField=void 0,this.sortOrder=void 0,this.tenant=void 0,this.searchTenant=void 0,this.apiPath=void 0,this.dtssPath=void 0,this.globalSearchRequestOptions=void 0,this.isDT=()=>this.tenant!==this.searchTenant,this.getQueryFilter=()=>({rawFilter:this.query}),this.getEntities=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=[t.getQueryFilter(),...e],r=O({},t.globalSearchRequestOptions,{sort:t.sortField,order:t.sortOrder,select:"uri,label,type",scoreEnabled:!1},n);return t.isDT()?(0,s.uqV)({filters:a,options:r,customerTenant:t.tenant,dataTenant:t.searchTenant,dtssPath:t.dtssPath}):(0,s.ZOr)(a,r)},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"uri",values:[e]}],{offset:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{offset:t,max:e}),this.requestTotal=()=>{const e=[this.getQueryFilter()],t=this.globalSearchRequestOptions;return(this.isDT()?(0,s.J$m)({filters:e,options:t,customerTenant:this.tenant,dataTenant:this.searchTenant,dtssPath:this.dtssPath}):(0,s.j_Q)(e,t)).then((e=>e.total))},this.query=n,this.sortField=a,this.sortOrder=r,this.tenant=o,this.searchTenant=i,this.apiPath=l,this.dtssPath=c,this.globalSearchRequestOptions=u}}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){D(e,t,n[t])}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class N{constructor(e){var t=this;let{data:n,tenant:a,apiPath:r}=e;this.searchBody=void 0,this.tenant=void 0,this.apiPath=void 0,this.getEntities=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=[{rawFilter:t.searchBody.filter},...e];return(0,s.P2h)({apiPath:t.apiPath,tenant:t.tenant,searchBody:R({},t.searchBody,{filter:e.length?(0,s.Uqd)()(a):t.searchBody.filter}),options:n})},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"id",values:[(0,s.BTI)({uri:e})]}],{from:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{from:t,max:e}),this.requestTotal=()=>(0,s.dED)({apiPath:this.apiPath,tenant:this.tenant,searchBody:this.searchBody}).then((e=>e.count)),this.searchBody=n,this.tenant=a,this.apiPath=r}}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){I(e,t,n[t])}))}return e}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const j=(e,t)=>(0,p.pipe)((0,p.map)((0,p.prop)("uri")),(0,p.reject)((e=>t.includes(e))))(e),M=()=>{const e=(0,T._)(),t=(0,T._)(),n=(0,T._)(),{uri:r,index:o,total:i,tenant:l,cache:c}=(0,x.useSelector)(E.ZP.selectors.getSearchNavigationData)||{},{type:u,data:p}=(0,x.useSelector)(E.ZP.selectors.getSearchProviderData)||{},d=(0,x.useSelector)(E.ZP.selectors.getTenant),m=(0,x.useSelector)(E.ZP.selectors.getApiPath),h=(0,x.useSelector)(E.ZP.selectors.getDtssPath),f=(0,x.useSelector)((e=>E.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]))),{updateEntitiesNavigationLoadingState:g}=(0,S.M)(),b=(0,a.useContext)(C.m),y=(0,x.useDispatch)(),[v,O]=(0,a.useState)(!1),P=(0,a.useMemo)((()=>((e,t)=>{switch(e){case"search":return new k(t);case"graphsearch":return new N(t)}})(u,{data:p,tenant:d,searchTenant:l,apiPath:m,dtssPath:h,globalSearchRequestOptions:f})),[u,p,d,l,m,h,f]),R=(0,a.useCallback)((e=>{y(E.yC.actions.updateSearchNavigationDataFields(e))}),[y]),D=(0,a.useCallback)((e=>{const t=d!==l?(0,s.wwR)({uri:e,dataTenant:l}):e;y(E.ui.actions.openEntity({uri:t,viewId:b,source:"navigation"}))}),[y,b,d,l]),I=(0,a.useCallback)((()=>{y(E.ui.actions.openPerspective({perspectiveId:u,viewId:b}))}),[y,u,b]);(0,a.useEffect)((()=>{o>=i?R({index:i-1}):o<0&&R({index:0})}),[i,o,R]);const M=(0,w.u)();(0,a.useEffect)((()=>{const e=M(((e,t)=>{switch(e.type){case E.yC.constants.UPDATE_SEARCH_NAVIGATION_DATA_ON_MERGE:{const n=E.ZP.selectors.getSearchNavigationData(t);n&&R(((e,t)=>{const{winnerUri:n,losersUris:a=[]}=t,r=((e,t)=>{let{uri:n,index:a,total:r,cache:o}=e;if(t&&t!==n){if(o&&o.includes(n)){o=[...o];const e=o.indexOf(t);let i=o.indexOf(n);e>=0&&(o.splice(e,1),r--,e<i&&a--),i=o.indexOf(n),o.splice(i,1,t)}return n=t,Z({},e,{uri:n,index:a,cache:o,total:r})}return e})(e,n);return((e,t)=>{const{cache:n=[],index:a,total:r,uri:o}=e,i=t.filter((e=>n.includes(e)));if(0===i.length)return e;const l=r-i.length,s=n.indexOf(o);let c=a;for(const e of i)n.indexOf(e)<s&&c--;const u=n.filter((e=>!i.includes(e)));return Z({},e,{cache:u,index:c,total:l})})(r,a)})(n,e.payload));break}}}));return()=>e()}),[M,R]);const L=(0,a.useCallback)(((e,a,r)=>{O(!0),t(P.requestTotal()).then((e=>R({total:e})));const o=r+1;return n(P.requestEntities(15,o)).then((t=>{if(t){if(t.length){const n=j(t,e);if(n.length>0)return R({cache:e.concat(n),uri:n[0],index:o+t.length-n.length}),void D(n[0]);if(r+t.length<a-1)return L(e,a-t.length,r+t.length)}R({index:o})}})).finally((()=>{O(!1)}))}),[P,R,D]),z=(0,a.useCallback)(((e,a)=>{O(!0),t(P.requestTotal()).then((e=>R({total:e})));const r=a-1,o=Math.max(0,a-15),i=15+Math.min(0,a-15);return n(P.requestEntities(i,o)).then((t=>{if(t){if(t.length){const n=j(t,e);if(n.length>0)return R({cache:n.concat(e),uri:n[n.length-1],index:r-(t.length-n.length)}),void D(n[n.length-1]);if(a-t.length>0)return z(e,a-t.length)}R({index:0})}})).finally((()=>{O(!1)}))}),[P,R,D]),A=(0,a.useCallback)(((t,n,a,r)=>{if(n<t.length){const o=t[n];return O(!0),e(P.checkEntity(o)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),A(e,n,a-1,r)}R({index:r+1,uri:o,cache:t,total:a}),D(o)})).finally((()=>{O(!1)}))}if(!(r>=a-1))return L(t,a,r);R({cache:t,total:a,index:a-1})}),[P,R,D,L]),B=(0,a.useCallback)(((t,n,a,r)=>{if(n>-1){const o=t[n];return O(!0),e(P.checkEntity(o)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),B(e,n-1,a-1,r-1)}R({index:r-1,uri:o,cache:t,total:a}),D(o)})).finally((()=>{O(!1)}))}if(!(r<=0))return z(t,r);R({index:0,cache:t,total:a})}),[P,R,D,z]),F=(0,a.useCallback)((()=>{if(c&&r){const e=c.indexOf(r)-1;B(c,e,i,o)}}),[B,c,r,i,o]),U=(0,a.useCallback)((()=>{if(c&&r){const e=c.indexOf(r)+1;A(c,e,i,o)}}),[A,c,r,i,o]);return(0,a.useEffect)((()=>{g(v)}),[g,v]),(0,a.useEffect)((()=>()=>g(!1)),[]),{total:i,onPrev:F,onNext:U,onSearchResultsClick:I,isPrevDisabled:v||o<=0,isNextDisabled:v||o>=i-1}},L=e=>{let{className:t}=e;const{total:n,onPrev:a,onNext:o,onSearchResultsClick:i,isPrevDisabled:l,isNextDisabled:c}=M();return(()=>{const{cache:e}=(0,x.useSelector)(E.ZP.selectors.getSearchNavigationData)||{},t=(0,x.useSelector)(E.ZP.selectors.getMode),n=(0,x.useSelector)(E.ZP.selectors.getEntity);return(0,s.uzs)(t)&&(null==e?void 0:e.includes(null==n?void 0:n.uri))})()?r().createElement(v,{className:t,total:n,onPrev:a,onNext:o,onSearchResultsClick:i,isPrevDisabled:l,isNextDisabled:c}):null}},18798:(e,t,n)=>{n.d(t,{u:()=>m});var a=n(24328),r=n.n(a),o=n(71153),i=n.n(o),l=n(31396),s=n(60364),c=n(67958);const u=(0,n(79692).Z)((()=>({container:{position:"relative","& .Resizer":{zIndex:1,boxSizing:"border-box",backgroundClip:"padding-box","&.disabled":{cursor:"initial",height:0,margin:0},"&.horizontal":{height:"11px",backgroundImage:"linear-gradient(rgba(0,0,0,0.33), rgba(0,0,0,0.33))",backgroundRepeat:"no-repeat",backgroundSize:"100% 1px",backgroundPosition:"top",width:"100%",marginBottom:"-10px","&:not(.disabled):hover":{cursor:"row-resize",backgroundImage:"linear-gradient(rgba(0, 114, 206, 0), rgba(0, 114, 206, 0.35), rgba(0, 114, 206, 1))",backgroundSize:"100% 3px"}},"&.vertical":{width:"11px",backgroundImage:"linear-gradient(rgba(0,0,0,0.33), rgba(0,0,0,0.33))",backgroundRepeat:"no-repeat",backgroundSize:"1px 100%",backgroundPosition:"left",height:"100%",marginRight:"-10px","&:not(.disabled):hover":{cursor:"col-resize",backgroundImage:"linear-gradient(to left, rgba(0, 114, 206, 0.35), rgba(0, 114, 206, 1), rgba(0, 114, 206, 0.35))",backgroundSize:"3px 100%"}}}}}))),p=250,d=e=>"horizontal"===e,m=e=>{let{className:t,children:n,orientation:o,primary:m,defaultSize:h,size:f,minSize:g,maxSize:b,allowResize:y,debounceInterval:v=p,onChange:x}=e;const E=u(),S=(0,s.Z)(),[C,w]=(0,a.useState)(null),[T,O]=(0,a.useState)(!0),P=(0,a.useCallback)((()=>O(!0)),[]),k=(0,a.useCallback)((()=>O(!1)),[]),R=()=>d(o)?null==C?void 0:C.clientHeight:null==C?void 0:C.clientWidth,D=(0,a.useCallback)((0,c.DsO)((e=>{const t=R();x({percentageSize:e/t*100+"%",isMaxSize:b>0?e===b:e===t+b,isMinSize:e===g,size:e})}),v),[x,o,b,C]),N=(0,a.useMemo)((()=>({transition:S.transitions.create(d(o)?"height":"width",{easing:S.transitions.easing.sharp,duration:S.transitions.duration.leavingScreen})})),[o,S]);return"number"==typeof f&&f<0&&(f=(R()||0)+f),r().createElement("div",{ref:w,className:i()(E.container,t)},r().createElement(l.Z,{split:o,size:f,primary:m,allowResize:y,onChange:D,defaultSize:h,minSize:g,maxSize:b,onDragStarted:k,onDragFinished:P,pane1Style:T?N:void 0},n))};m.displayName="ResizablePanes"},54013:(e,t,n)=>{n.d(t,{Z:()=>u});var a=n(24328),r=n.n(a),o=n(47603),i=n(87918),l=n.n(i),s=n(8818),c=n(55847);const u=e=>{let{items:t,menuId:n}=e;return r().createElement(c.Z,{buttonComponent:s.k,buttonProps:{icon:o.Z,tooltipTitle:l().text("Settings"),size:"L"},menuId:n,menuItems:t})}},3409:(e,t,n)=>{n.d(t,{Z:()=>d});var a=n(24328),r=n.n(a),o=n(52730),i=n(49885),l=n(94079),s=n(17440),c=n(87918),u=n.n(c);const p=(0,n(79692).Z)({root:{display:"flex",alignItems:"flex-start"},slice:{fontWeight:500},cancelButton:{width:"88px",flexShrink:0,marginLeft:"15px"}}),d=()=>{const e=p(),t=(0,o.useSelector)(i.ZP.selectors.getHistoryEvent),n=(0,o.useDispatch)(),a=(0,s.pipe)(i.N5.history.actions.clearHistoryEvent,n);return t?r().createElement("div",{className:e.root},r().createElement(l.Typography,{component:"div"},u().text("You are viewing a historic slice:")," ",r().createElement("span",{className:e.slice},u().date(t.aStamp,"llll"))),r().createElement(l.Button,{className:e.cancelButton,variant:"contained",color:"primary",onClick:a},u().text("Cancel"))):null}},54198:(e,t,n)=>{n.d(t,{G:()=>i,u:()=>l});var a=n(24328),r=n.n(a);const o=(0,a.createContext)(null);o.displayName="ActionsHookContext";const i=e=>{let{children:t,hook:n}=e;return r().createElement(o.Provider,{value:n},t)},l=()=>{const e=(0,a.useContext)(o);if(!e)throw new Error("ActionsHookContext must be provided");return e}},94622:(e,t,n)=>{n.d(t,{f:()=>u,M:()=>p});var a=n(24328),r=n.n(a),o=n(31276);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=r().createContext({isLoading:!1,updateEntityLoadingState:o.ZT,updateEntitiesNavigationLoadingState:o.ZT,resetLoadingState:o.ZT}),c={entitiesNavigation:!1,entity:!1},u=e=>{let{children:t}=e;const n=(()=>{const[e,t]=(0,a.useState)(c),n=(0,a.useCallback)((e=>{t((t=>i({},t,{entity:e})))}),[]),r=(0,a.useCallback)((e=>{t((t=>i({},t,{entitiesNavigation:e})))}),[]),o=(0,a.useCallback)((()=>{t(c)}),[]);return{isLoading:Object.values(e).includes(!0),updateEntityLoadingState:n,updateEntitiesNavigationLoadingState:r,resetLoadingState:o}})();return r().createElement(s.Provider,{value:n},t)},p=()=>(0,a.useContext)(s)},79468:(e,t,n)=>{n.d(t,{T:()=>r});var a=n(24328);const r=n.n(a)().createContext({profileBand:{}});r.displayName="LabelsContext"},7718:(e,t,n)=>{n.d(t,{C:()=>h});var a=n(24328),r=n(52730),o=n(17440),i=n(67958),l=n(49885);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){c(e,t,n[t])}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=(e,t)=>t.filter((t=>t.replyId!==e)),p=(e,t)=>{const n=e.replies.findIndex((e=>{let{replyId:n}=e;return n===t.replyId})),a=[...e.replies];return a[n]=t,a},d=[],m=e=>console.error("Collaboration error",e),h=e=>{let{objectIds:t=d,objectTypes:n,enabled:c=!0}=e;const h=(0,r.useSelector)(l.ZP.selectors.getEntity),f=(0,r.useSelector)(l.ZP.selectors.getTenant),g=(0,r.useSelector)(l.ZP.selectors.getCollaborationPath),b=(0,r.useSelector)(l.ZP.selectors.isCollaborationEnabled)&&c,[y,v]=(0,a.useState)(null),[x,E]=(0,a.useState)([]),[S,C]=(0,a.useState)(null),[w,T]=(0,a.useState)(null),[O,P]=(0,a.useState)(!1),[k,R]=(0,a.useState)(!1),[D,N]=(0,a.useState)({}),Z=(0,a.useCallback)((e=>{C((t=>s({},t,e)))}),[]),I=null==h?void 0:h.uri,j=(0,a.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(b&&I&&!(0,i.ZiX)(I)){const n=e=>{console.warn("Collaboration error",e),C(null)};(0,o.pipe)(i.$oF,(0,o.andThen)((0,o.map)((0,o.props)(["objectId","comments"]))),(0,o.andThen)(o.fromPairs),(0,o.andThen)(t?C:Z),(0,o.otherwise)(n))({uris:e,tenant:f,collaborationPath:g})}else C(null)}),[Z,g,I,b,f]);(0,a.useEffect)((()=>{j(t,!0)}),[t,j]);const M=(0,a.useCallback)(((e,t)=>{(0,i.liG)({collaborationPath:g,tenant:f,relatedObjectUri:e,pageToken:t}).then((e=>{let{items:n,nextPageToken:a}=e;E((e=>t?(0,o.uniqBy)((0,o.prop)("commentId"),[...e,...n]):n)),v(a)})).catch(m)}),[g,f]),L=(0,a.useCallback)((e=>{R(!0),(0,i.d7q)({collaborationPath:g,tenant:f,commentId:e}).then(T).catch(m).finally((()=>R(!1)))}),[g,f]),z=(0,a.useCallback)((e=>{let{content:t,namedUsers:n,objectType:a,uri:r,relatedObjectUris:o}=e;P(!0);const l={objectId:r,content:t,relatedObjectUris:o,objectType:a,visibility:"public",namedUsers:n,permanentLink:`${window.location.href}&commentId=${encodeURIComponent("{commentId}")}`};return(0,i.Yrx)({collaborationPath:g,tenant:f,data:l}).then((e=>{let[t]=e;return((e,t)=>{T(e),C((n=>s({},n,{[t]:[...n[t]||[],{commentId:e.commentId,replies:0,status:"open"}]}))),E((t=>[e,...t]))})(t,r)})).catch(m).finally((()=>P(!1)))}),[g,f]),A=(0,a.useCallback)((e=>{let{content:t,namedUsers:n,objectType:a,uri:r,relatedObjectUris:l,commentId:c,replies:u}=e;P(!0);const p={objectId:r,content:t,relatedObjectUris:l,objectType:a,visibility:"public",namedUsers:n,commentId:c,replies:u};return(0,i.uAg)({collaborationPath:g,tenant:f,data:p}).then((e=>(e=>{T(e),E((0,o.map)((0,o.when)((0,o.propEq)("commentId",e.commentId),(0,o.always)(e))))})(s({},e,{replies:u})))).catch(m).finally((()=>P(!1)))}),[g,f]),B=(0,a.useCallback)((e=>{let{uri:t,commentId:n}=e;P(!0),(0,i.YFy)({collaborationPath:g,tenant:f,commentId:n}).then((()=>((e,t)=>{T(null),C((n=>{const a=n[t]||[];return s({},n,{[t]:a.filter((t=>t.commentId!==e))})})),E((t=>t.filter((t=>t.commentId!==e))))})(n,t))).catch(m).finally((()=>P(!1)))}),[g,f]),F=(0,a.useCallback)(((e,t,n,a)=>{const r="resolve"===e.action?"resolved":"open",{replyId:o}=e;T("resolved"===r?e=>{if(e)return null}:t=>{if(t)return s({},t,{replies:a?u(o,t.replies):[...t.replies,e]})}),C((e=>s({},e,{[t]:(e[t]||[]).map((e=>e.commentId===n?s({},e,{status:r,replies:a?e.replies-1:e.replies+1}):e))}))),E((t=>t.map((t=>t.commentId===n?s({},t,{status:r,replies:a?u(e.replyId,t.replies):[...t.replies,e]}):t))))}),[]),U=(0,a.useCallback)((e=>{let{uri:t,commentId:n,reply:a}=e;P(!0),(0,i.Mfr)({collaborationPath:g,tenant:f,commentId:n,replyId:a.replyId}).then((()=>F(a,t,n,!0))).catch(m).finally((()=>P(!1)))}),[g,F,f]),H=(0,a.useCallback)(((e,t)=>{T((t=>{if(t)return s({},t,{replies:p(t,e)})})),E((n=>n.map((n=>n.commentId===t?s({},n,{replies:p(n,e)}):n))))}),[]),V=(0,a.useCallback)((e=>{let{content:t,namedUsers:n,commentId:a,replyId:r}=e;P(!0);const o={content:t,namedUsers:n};return(0,i.ufV)({collaborationPath:g,tenant:f,commentId:a,replyId:r,data:o}).then((e=>H(e,a))).catch(m).finally((()=>P(!1)))}),[g,f,H]),_=(0,a.useCallback)((e=>{let{content:t,namedUsers:n,commentId:a,action:r,uri:o}=e;P(!0);const l={content:t,action:r,namedUsers:n};return(0,i.PP2)({collaborationPath:g,tenant:f,commentId:a,data:l}).then((e=>{let[t]=e;return F(t,o,a)})).catch(m).finally((()=>P(!1)))}),[g,f,F]),q=(0,a.useCallback)((e=>{let{commentId:t,uri:n}=e;_({content:"",namedUsers:[],commentId:t,action:"resolve",uri:n})}),[_]),Y=(0,a.useCallback)((e=>{let{commentId:t,uri:n}=e;_({content:"",namedUsers:[],commentId:t,action:"reopen",uri:n})}),[_]);return{clearCurrentComment:(0,a.useCallback)((()=>{T(null)}),[]),comments:x,commentsMap:S,getCommentState:(e,t)=>(0,o.pathOr)({},[e,t],D),updateCommentState:(e,t,n)=>{N((a=>{const r=[e,t],i=(0,o.path)(r,a);return(0,o.assocPath)(r,(0,o.mergeRight)(i,n),a)}))},clearCommentState:(e,t)=>N((0,o.dissocPath)([e,t])),createComment:z,createReply:_,currentComment:w,deleteComment:B,editComment:A,getComment:L,getComments:M,getCommentsCount:j,loading:k,objectTypes:n,pageToken:y,reOpenThread:Y,resolveThread:q,sending:O,deleteReply:U,editReply:V}}},37152:(e,t,n)=>{n.d(t,{a:()=>m});var a=n(24328),r=n(52730),o=n(17440),i=n(49885),l=n(67958),s=n(85229),c=n(30634);function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){p(e,t,n[t])}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,o.when)(o.identity,(0,o.pipe)(l.VGB,o.length,(0,o.times)((e=>e+1)))),m=e=>{let{sorting:t,filter:n,page:p,rowsPerPage:m,config:h,entity:f,relationActivityFilter:g,mode:b,searchByOv:y=!1}=e;const[v,x]=(0,a.useState)(!1),E=(0,r.useDispatch)(),S=(0,r.useSelector)(i.ZP.selectors.getTenant),C=(0,r.useSelector)(i.ZP.selectors.getMetadata),w=(0,r.useSelector)(i.ZP.selectors.getDtssPath),{activityFilter:T,globalFilter:O}=(0,r.useSelector)(i.ZP.selectors.getGlobalSearchRequestOptions)||{},P=(0,r.useSelector)(i.ZP.selectors.getProfileLastLoadedTime),k=(0,s._)(),R=e=>{const t=(0,o.when)(l.Kn2,(0,o.prop)("uri")),n=(0,o.pipe)(t,(0,l.pQZ)(C));return(0,o.evolve)({entityTypes:(0,o.filter)((0,l.kuw)(C)),inRelations:(0,o.filter)(n),outRelations:(0,o.filter)(n),nextEntry:R})(e)},D=h.suggested,N=(0,a.useMemo)((()=>({searchByOv:y})),[y]),Z=(0,a.useCallback)((()=>{if(null!=f&&f.uri){const e=u({},R(h.content),{sortBy:null==t?void 0:t.field,order:null==t?void 0:t.order,returnDates:!0,returnObjects:!0,activeness:{relation:g||l.Ng6.ALL,entity:T},max:m,offset:p*m,filter:(0,l.vyX)(O,n)||void 0,suggested:d(D)}),a=[e].concat((0,o.ifElse)(o.identity,(0,o.pipe)(l.VGB,(t=>t.map(((t,n)=>u({},t,{id:e.suggested[n]}))))),(0,o.always)([]))(D)),r=(0,o.cond)([[(0,o.pipe)((0,o.prop)("uri"),l.ZiX),()=>Promise.resolve([{total:0}])],[l.biM,e=>(0,l.n_1)({entityUri:e.uri,configs:a,customerTenant:S,dataTenant:e.dataTenant,dtssPath:w,options:N})],[o.T,e=>(0,l.N6e)(e.uri,a,N)]]);x(!0),k(r(f)).then((e=>{let[{connections:t,total:n}]=e;E(i.N5.relations.actions.relationsLoaded({id:h.id,connections:t,total:n}))})).finally((()=>{x(!1)}))}}),[T,C,h,E,w,null==f?void 0:f.uri,null==f?void 0:f.dataTenant,n,O,p,g,m,k,t,S,N,P]),I=(0,a.useRef)(!1);I.current=!1,(0,a.useEffect)((()=>{I.current=!0,Z()}),[Z]);const j=(0,c.D)(b);return(0,a.useEffect)((()=>{b!==l.ARY.Viewing||I.current||j===b||(I.current=!0,Z())}),[Z,b,j]),{isLoading:v,reload:Z}}},55451:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Wt});var a=n(24328),r=n.n(a),o=n(52730),i=n(8598),l=n(36138),s=n(44443),c=n(22664),u=n(87451),p=n(47898),d=n(585),m=n(49885),h=n(17440),f=n(67958),g=n(20562),b=n(37152),y=n(7718),v=n(41564),x=n(31274),E=n(40715),S=n(99136),C=n(58662);function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){T(e,t,n[t])}))}return e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const O={relationsTable:{},attributesTable:{}};var P=n(26180),k=n(31276),R=n(86361),D=n(87918),N=n.n(D);const Z="relation.type",I="relation.attributes",j=[{id:"entity.label",get label(){return N().text("Profile")},dataTypeDefinition:{type:f.oS0.TYPE_STRING},hideable:!1,filterable:!1,initialWidth:280,autoResize:!1},{id:Z,get label(){return N().text("Type")}},{id:"relation.label",get label(){return N().text("Directional Label")},filterable:!1,dataTypeDefinition:{type:f.oS0.TYPE_STRING}},{id:"relation.activeness.startDate",get label(){return N().text("Start Date")},dataTypeDefinition:{type:f.oS0.TYPE_ACTIVENESS_DATE}},{id:"relation.activeness.endDate",get label(){return N().text("End Date")},dataTypeDefinition:{type:f.oS0.TYPE_ACTIVENESS_DATE}},{id:I,get label(){return N().text("Attributes")},sortable:!1,filterable:!1,maxAttrsToShow:7}],M=(0,h.pluck)("id",j),L=[Z,I],z=[20,50,100],A=(0,h.pipe)(f.Tde,(0,h.concat)("relation.")),B=(0,h.pipe)((0,h.map)((e=>({id:A(e.uri),label:e.label,description:null==e?void 0:e.description,dataTypeDefinition:(0,f.PFL)(e)}))),(0,h.uniqBy)((0,h.prop)("id")));function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){U(e,t,n[t])}))}return e}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const H="CHANGE_RELATION_TYPE",V="APPLY_SAVED_STATE",_="SAVE_CURRENT_STATE",q=F({},P.ZP.actions,{changeRelationType:(0,k.zD)(H),applySavedState:(0,k.zD)(V),saveCurrentState:(0,k.zD)(_)}),Y=(0,h.assoc)("page",0),W=e=>(0,h.pipe)((0,h.prop)("visibleColumns"),(0,h.ifElse)((0,h.always)(e.currentRelationType),(0,h.without)(L),(0,h.concat)(L)),(0,h.intersection)(M))(e),G=e=>(0,h.path)(["visibleColumnsForRelationTypes",`${e.currentRelationType}`],e),$=e=>{const t=(0,h.either)(G,W)(e);return P.ZP.changeVisibleColumns(e,t)},X=(0,h.pipe)((0,h.propOr)(null,"filters"),(0,h.unless)(h.isNil,(0,h.filter)((e=>{let{filter:t,value:n}=e;return(0,f.jtL)(t,n)})))),K=e=>{const{currentRelationType:t,visibleColumns:n}=e;return(0,h.evolve)({visibleColumnsForRelationTypes:(0,h.assoc)(`${t}`,n)},e)},Q=(0,h.pipe)(K,(0,h.pick)(["currentRelationType","visibleColumnsForRelationTypes","filters","sorting"]));var J=n(37754),ee=n(94079),te=n(92778),ne=n(30553),ae=n(51229),re=n(54013),oe=n(1876),ie=n(60894),le=n(79026),se=n(79692);const ce=(0,se.Z)({select:{fontSize:"13px",color:"rgba(0,0,0,.6)",paddingLeft:"15px","&&":{paddingRight:"35px"}},selectMenu:{"& li":{fontSize:"13px",height:"32px"}},textField:{maxWidth:"100%"}}),ue=e=>{let{value:t,onChange:n,relationTypes:o,className:i}=e;const l=ce(),s=(0,a.useMemo)((()=>(0,h.pipe)((0,h.map)((e=>{let{label:t,uri:n}=e;return{label:t,value:n}})),(0,h.concat)([{value:"",label:N().text("All types")}]))(o)),[o]);return r().createElement("div",{className:i},r().createElement(le.Z,{displayEmpty:!0,disableUnderline:!0,classes:{select:l.select},TextFieldProps:{classes:{root:l.textField}},MenuProps:{classes:{list:l.selectMenu}},value:t||"",entries:s,onChange:e=>n(e||null)}))},pe=(0,se.Z)((e=>({header:{height:"56px",boxSizing:"border-box",paddingRight:"10px"},title:{fontSize:"16px"},total:{fontSize:"14px",color:e.palette.text.secondary,flexShrink:0,marginRight:"5px"},relationTypeSelector:{margin:"0px 10px 0 30px",overflow:"hidden"}}))),de=(0,a.memo)((e=>{let{total:t,filteringEnabled:n,onToggleFilters:o,columnsData:i,selectedColumns:l,currentRelationType:s,onRelationTypeChange:c,relationTypes:u,onChangeColumns:p,searchByOv:d,onToggleSearchByOv:m}=e;const h=pe(),f=(0,a.useMemo)((()=>[{selected:d,selectable:!0,text:N().text("Search by OV only"),onClick:m,id:"showNonOv"}]),[m,d]);return r().createElement(te.Z,{title:N().text("Relationships"),classes:{root:h.header,title:h.title}},u.length>0&&r().createElement(ue,{className:h.relationTypeSelector,value:s,onChange:c,relationTypes:u}),r().createElement(ne.Z,{height:28,margin:20}),r().createElement(ee.Typography,{variant:"caption",className:h.total},1===t?N().text("${count} record",{count:t}):N().text("${count} records",{count:t})),r().createElement(ae.Z,null),r().createElement(re.Z,{items:f,menuId:"relationships-view-settings"}),r().createElement(oe.Z,{enabled:n,onClick:o}),r().createElement(ne.Z,{height:28,margin:8}),r().createElement(ie.Z,{columnsData:i,selectedColumns:l,onChangeColumns:p}))}));var me=n(74402),he=n(97946),fe=n(85709),ge=n(25461),be=n(92332),ye=n(98448),ve=n(67353);const xe=(0,se.Z)((e=>({headCell:{display:"flex",alignItems:"center",height:"100%",width:"100%",fontSize:"12px",color:e.palette.text.secondary,background:"linear-gradient(0deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06)), #FFFFFF"},rowCell:{fontSize:"13px",overflow:"hidden",overflowWrap:"break-word"},inactiveRowCell:{opacity:.6},defaultWrapper:{padding:"15px 25px 0 25px","&:last-child":{paddingBottom:"15px"}},entityCell:{display:"flex",alignItems:"flex-start",padding:"15px"},entityAvatar:{transform:"scale(0.5)",margin:"-10px 0 -10px -10px"},inactiveEntityAvatar:{overflow:"initial","&:after":{content:'""',position:"absolute",backgroundColor:"rgb(209, 206, 206)",border:"1px solid rgba(0, 0, 0, 1)",borderRadius:"2px",width:"12px",right:0,bottom:0,height:"12px"},"& > img":{borderRadius:"50%",overflow:"hidden"}},entityLabel:{color:e.palette.primary.main,textDecoration:"none",fontWeight:500},attributesWrapper:{padding:"15px 25px 10px 25px",color:"rgba(0,0,0,0.87)"},commentsContainer:{marginLeft:"auto"},description:{marginLeft:"-22px"}}))),Ee=(0,ve.Z)((e=>{const t=xe(),{description:n}=null==e?void 0:e.headCellData;return r().createElement("div",{className:t.headCell},r().createElement(be.default,e),r().createElement(ye.Z,{description:n,className:t.description}))}));var Se=n(71153),Ce=n.n(Se),we=n(19603),Te=n(34e3),Oe=n(31039),Pe=n(94646);const ke=e=>{let{value:{entity:t,entityType:n,relation:a},isInactiveRelation:i}=e;const l=xe(),s=(0,o.useSelector)(m.ZP.selectors.getEntityUri);return r().createElement("div",{className:Ce()(l.entityCell,we.U)},r().createElement(Te.Z,{className:Ce()(l.entityAvatar,{[l.inactiveEntityAvatar]:i}),entityType:n}),r().createElement(Oe.Z,{value:(0,f.wwR)({uri:t.entityUri,dataTenant:t.dataTenant}),className:l.entityLabel},(0,f.idV)(t.entityLabel)),r().createElement("div",{className:l.commentsContainer,onClick:e=>e.stopPropagation()},r().createElement(Pe.Z,{uri:a.relationUri,relatedObjectUris:(0,f.wp9)(f.q7e.RELATION,{entityUri:s,connection:{relation:a,entity:t}}),objectType:f.q7e.RELATION,allowOnlyOneComment:!0})))};var Re=n(80931);const De=e=>{let{columnData:t,value:{attributes:n,attributeTypes:a}}=e;const o=xe();return r().createElement("div",{className:o.attributesWrapper,onClick:e=>e.stopPropagation()},r().createElement(Re.Z,{max:t.maxAttrsToShow,entity:{attributes:n},attrTypes:a,drawLines:!1}))};var Ne=n(72768);const Ze=e=>{let{value:t,columnData:{dataTypeDefinition:n}}=e;const a=xe();return r().createElement("div",{className:a.defaultWrapper},r().createElement(Ne.Z,{value:t,dataTypeDefinition:n}))};function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const je=(0,h.pipe)((0,h.split)("."),(0,h.slice)(2,1/0)),Me=e=>{if(e.startsWith("relation.attributes")){const t=je(e);return t.length>1?t.slice(0,-1):null}return null},Le=e=>{switch(e){case"entity.label":return ke;case"relation.attributes":return De;default:return Ze}},ze=(0,h.map)((e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){Ie(e,t,n[t])}))}return e}({sortable:!0,resizable:!0},e,{headCellRenderer:Ee,nestedPath:Me(e.id),rowCellValueRenderer:Le(e.id)}))),Ae=(0,h.cond)([[(0,h.pathEq)(["columnData","id"],"relation.attributes"),e=>{let{columnData:t,cell:n}=e;const a=(0,h.pipe)((0,h.path)(["values",0,"attributes"]),h.values,h.length)(n);return a>t.maxAttrsToShow?26*t.maxAttrsToShow+49:26*a+25}],[h.T,ge.Z]]);function Be(){return Be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Be.apply(this,arguments)}const Fe=e=>{let{cell:t,CellValueRenderer:n}=e,a=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["cell","CellValueRenderer"]);const o=xe();return r().createElement("div",{className:Ce()(o.rowCell,{[o.inactiveRowCell]:a.isInactiveRelation})},t.values.map(((e,t)=>r().createElement(n,Be({key:t,value:e},a)))))};var Ue=n(22983),He=n(43054),Ve=n(55847),_e=n(22385),qe=n(81137),Ye=n(83348);const We=(0,se.Z)((e=>({menuItem:{minHeight:"32px",color:e.palette.text.secondary},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"16px"},buttons:{display:"flex",alignItems:"center",paddingRight:"5px"}}))),Ge=(0,Ye.Z)(ee.MenuItem),$e=(0,a.forwardRef)(((e,t)=>{let{item:n,onMenuClose:a=k.ZT}=e;const o=We(),{icon:i,disabled:l,text:s,tooltip:c,onClick:u}=n;return r().createElement(Ge,{tooltipTitle:c,showForDisabled:!0,classes:{root:o.menuItem},onClick:e=>{a(),u(e)},disabled:l,ref:t},i,r().createElement(ee.Typography,{classes:{root:o.menuText}},s))}));$e.displayName="MenuItemRenderer";const Xe=$e,Ke=e=>{let{disableDelete:t,connection:{entity:n,relation:i},onMenuOpen:l=k.ZT,onMenuClose:s=k.ZT,onDelete:c}=e;const u=We(),p=(0,o.useSelector)(m.ZP.selectors.getMetadata),d=(0,h.pipe)((0,h.prop)("relationType"),(0,f.V3K)(p),(0,f.uGe)(f.BDP.DELETE))(i),g=!t&&d,[b,y]=(0,a.useState)(!1),v=()=>y(!1),x=[{disabled:!g,text:N().text("Delete"),icon:r().createElement(Ue.Z,null),tooltip:g?null:N().text("You don't have permissions to delete"),onClick:()=>y(!0)}],E=(0,a.useCallback)((()=>{b||s()}),[b,s]);return r().createElement("div",{className:u.buttons},r().createElement(Ve.Z,{MenuItemRenderer:Xe,menuId:"relationships-table-actions",buttonComponent:_e.Z,buttonProps:{icon:He.Z,size:"S"},menuItems:x,onMenuOpen:l,onMenuClose:E}),r().createElement(qe.Z,{open:b,title:N().text('Do you want to delete relationship "${label}"?',{label:(S=(0,f.idV)(n.entityLabel),S.length>17?`${S.substring(0,17)}...`:S)}),content:N().text("This relationship will be removed and all the values in the relationship will be permanently deleted. Are you sure you want to delete this relationship?"),onSave:(0,h.pipe)(v,s,c),onDiscard:(0,h.pipe)(v,s),saveCaption:N().text("Delete"),discardCaption:N().text("Cancel")}));var S},Qe=(0,se.Z)({tableContainer:{flex:1,overflow:"hidden",display:"flex",zIndex:0},hoveredRowRightContentWrapper:{width:"100%",pointerEvents:"none!important"},menuButtonContainer:{position:"absolute",top:"calc(50% - 12px)",right:0,pointerEvents:"all"},tooltipAnchor:{width:"100%",height:"1px"}});function Je(){return Je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Je.apply(this,arguments)}const et=(0,a.memo)((e=>{let{metadata:t,connections:n,columnsData:o,sorting:i,onSort:l,filters:s,onFilter:c,onRowClick:u,tableRef:p,onDelete:d,readOnly:m}=e;const g=Qe(),b=(0,a.useMemo)((()=>((e,t,n)=>(n||[]).map((n=>(0,h.pipe)((0,h.reduce)(((t,a)=>{let{id:r}=a;return(0,h.assoc)(r,((e,t,n)=>{let{entity:a,relation:r}=t;switch(n){case"entity.label":return{entity:a,entityType:(0,f.nt9)(e,a.entityType),relation:r};case"relation.type":return r.relationType;case"relation.label":return r.relationLabel;case"relation.activeness.startDate":return r.startDate;case"relation.activeness.endDate":return r.endDate;case"relation.attributes":return{attributes:r.object.attributes,attributeTypes:(0,f.V3K)(e,r.relationType).attributes};default:return((e,t)=>(0,h.pipe)((0,h.path)(["object","attributes"]),(0,f.tT_)(e))(t))(je(n),r)}})(e,n,r),t)}),{}),(0,h.assoc)("rawValue",n))(t))))(t,o,n)),[t,n,o]),y=(0,a.useMemo)((()=>ze(o)),[o]),{getDynamicRowCellHeight:v,changeRowCellHeight:x}=(0,me.Z)(),E=(0,a.useCallback)((0,h.either)(v,Ae),[v,Ae]),[S,C]=(0,a.useState)(null),w=(0,a.useCallback)((e=>{const t=!(0,f.Fn9)(e.rowValue.rawValue.relation);return r().createElement(he.Z,Je({onChangeHeight:x},e),r().createElement(Fe,Je({},e,{isInactiveRelation:t})))}),[x]),[T,O]=(0,a.useState)(!1),P=(0,a.useCallback)((()=>O(!0)),[]),k=(0,a.useCallback)((()=>{C(null),O(!1)}),[]),R=(0,a.useCallback)((e=>C((t=>T?t:e))),[T]),D=(0,a.useMemo)((()=>{const e=null!=S?b[S].rawValue:null,t=!(0,f.Fn9)(null==e?void 0:e.relation);return e&&r().createElement(r().Fragment,null,r().createElement(ee.Tooltip,{key:e.relation.relationUri,open:t,title:N().text("Inactive")},r().createElement("div",{className:g.tooltipAnchor})),r().createElement("div",{className:g.menuButtonContainer},r().createElement(Ke,{disableDelete:m,connection:e,onMenuOpen:P,onMenuClose:k,onDelete:()=>d(e.relation.relationUri)})))}),[d,b,S]);return r().createElement("div",{className:g.tableContainer},r().createElement(fe.Z,{fixFirstColumn:!0,columnsData:y,rowsData:b,sorting:i,onSort:l,filters:s,onFilter:c,defaultColumnWidth:250,defaultColumnMinWidth:200,headRowHeight:48,getRowCellHeight:E,renderRowCell:w,onRowClick:u,ref:p,hoverStateEnabled:!0,hoverRowIndex:S,onRowHover:R,hoveredRowRightContent:D,classes:{hoveredRowRightContentWrapper:g.hoveredRowRightContentWrapper}}))}));var tt=n(85229),nt=n(85965),at=n(39417),rt=n(10237),ot=n(63149),it=n(48017),lt=n(18798),st=n(66095),ct=n(20982),ut=n(99144),pt=n(65549),dt=n(52017),mt=n(90186);const ht=(0,se.Z)((()=>({tableRow:{"& + &":{marginTop:"4px"},margin:"auto",maxWidth:"448px"}})));function ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gt=(0,a.memo)((e=>{let{readOnly:t,relation:n,metadata:o,selectedAttributeTypes:i,onDeleteCrosswalk:l,onEditCrosswalk:s}=e;const c=ht(),u=(0,f.V3K)(o,n.type),p=(0,a.useMemo)((()=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,h.pipe)((0,h.propOr)([],"crosswalks"),(0,h.map)((0,h.assoc)("ownerType","entity")),(0,mt.o)(e.type,t))(e)}(n,i)),[n,i]),[d,m]=(0,a.useState)([]),g=(0,a.useCallback)((e=>{l({entityUri:n.uri,crosswalkId:e})}),[l,n.uri]),b=(0,a.useCallback)((e=>{s(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){ft(e,t,n[t])}))}return e}({entityUri:n.uri},e))}),[s,n.uri]);return r().createElement("div",null,p.map((e=>{let{source:n,crosswalksByTypes:a}=e;return r().createElement("div",{key:n,className:c.tableRow},r().createElement(dt.Z,{source:n,crosswalksByTypes:a,expanded:d.includes(n),disableEditCrosswalk:!(0,f.Zm0)(u)||t,disableDeleteCrosswalk:!(0,f.a14)(u)||t,onEdit:b,onDelete:g,onToggleExpanded:()=>{m((0,h.ifElse)((0,h.includes)(n),(0,h.without)([n]),(0,h.append)(n)))}}))})))}));var bt=n(79769);const yt=(0,se.Z)((e=>({header:{display:"flex",flexDirection:"row",alignItems:"center",padding:"20px 12px",borderBottom:"1px solid rgba(0, 0, 0, 0.12)"},title:{fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px",color:e.palette.text.primary,marginLeft:"12px"},hint:{color:e.palette.text.secondary,display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"flex-start",margin:"4px 14px 10px"},hintText:{marginLeft:"8px",fontSize:"12px",lineHeight:"16px"},buttons:{display:"flex",padding:"8px 6px 4px"},buttonLabel:{fontSize:"14px",fontWeight:500,lineHeight:"16px"},icon:{fontSize:"18px",marginRight:"8px"},editor:{paddingLeft:25,margin:"auto",maxWidth:"448px",boxSizing:"border-box",marginBottom:"4px"},tableContainer:{overflowY:"auto",overflowX:"hidden",paddingLeft:"16px",paddingRight:"6px"}}))),vt=(0,Ye.Z)(ee.Button),xt=(0,a.memo)((e=>{let{className:t,readOnly:n,relation:i,selectedAttributeTypes:l,onAddCrosswalk:s,onDeleteCrosswalk:c,onEditCrosswalk:u}=e;const p=yt(),d=(0,o.useSelector)(m.ZP.selectors.getMetadata),h=(0,f.V3K)(d,i.type),[g,b]=(0,a.useState)(!1),y=(0,f.mkC)(h)&&!n;return r().createElement("div",{className:t},r().createElement("div",{className:p.header},r().createElement("span",{className:p.title},N().text("Legend"))),r().createElement("div",{className:p.buttons},r().createElement(vt,{color:"primary",showForDisabled:!0,disabled:!y,tooltipTitle:y?null:N().text("You don't have permissions to add crosswalk"),onClick:()=>b(!0)},r().createElement(pt.Z,{className:p.icon}),r().createElement("div",{className:p.buttonLabel},N().text("Crosswalk")))),r().createElement("div",{className:p.hint},r().createElement(ut.Z,{className:p.icon}),r().createElement("span",{className:p.hintText},N().text("You can drag a crosswalk to add values to attributes swimlanes"))),r().createElement("div",{className:p.tableContainer},g&&r().createElement(bt.Z,{className:p.editor,onAdd:e=>s({entity:i,crosswalk:e}),onClose:()=>b(!1)}),r().createElement(gt,{readOnly:n,metadata:d,relation:i,selectedAttributeTypes:l,onDeleteCrosswalk:c,onEditCrosswalk:u})))}));var Et=n(95613),St=n(23147),Ct=n(94111),wt=n(64459),Tt=n(68439);const Ot=(0,se.Z)((e=>({entityInfo:{flex:"0 1 auto",overflow:"hidden",minWidth:"100px"},entityLabelContainer:{display:"flex",alignItems:"center",overflow:"hidden"},entityLabel:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary},infoIcon:{fontSize:"16px",color:e.palette.text.secondary,marginLeft:"5px"},profileBand:{margin:"-10px",maxWidth:"500px"},entityTypeBadge:{marginTop:"7px"}}))),Pt=e=>{let{entity:t}=e;const n=Ot(),a=(0,f.idV)(t.label);return r().createElement("div",{className:n.entityInfo},r().createElement("div",{className:n.entityLabelContainer},r().createElement(Et.Z,{value:a},r().createElement(ee.Typography,{variant:"h6",className:n.entityLabel,noWrap:!0},a)),r().createElement(Ct.Z,{title:r().createElement(wt.Z,{className:n.profileBand,entity:t}),placement:"right"},r().createElement(ut.Z,{className:n.infoIcon}))),r().createElement(Tt.Z,{className:n.entityTypeBadge,entity:t,size:"medium"}))},kt=(0,se.Z)((e=>({root:{flexShrink:0,overflow:"hidden",width:"110px"},label:{color:e.palette.text.secondary,fontSize:"13px"}}))),Rt=e=>{let{relation:t}=e;const n=kt(),{direction:a,relationLabel:o}=t;return r().createElement("div",{className:n.root},r().createElement(Et.Z,{value:o},r().createElement(ee.Typography,{variant:"subtitle2",className:n.label,align:"center",noWrap:!0},o)),r().createElement("svg",{width:"110",height:"12",fill:"black",fillOpacity:"0.3"},"out"===a&&r().createElement("polygon",{points:"94 0, 110 6, 94 12, 94 9, 0 9, 0 3, 94 3"}),"bidirectional"===a&&r().createElement("polygon",{points:"94 0, 110 6, 94 12, 94 9, 16 9, 16 12, 0 6, 16 0, 16 3, 94 3"}),"in"===a&&r().createElement("polygon",{points:"16 12, 0 6, 16 0, 16 3, 110 3, 110 9, 16 9"})))};var Dt=n(8459),Nt=n(27604);const Zt=(0,se.Z)((()=>({root:{"&:hover $editButton":{visibility:"visible"}},editButton:{visibility:"hidden",marginLeft:"4px",marginBottom:"4px"},paper:{width:"150px",border:"3px solid rgba(0, 0, 0, 0.3)",borderRadius:"4px",boxSizing:"border-box",overflow:"hidden"}}))),It=e=>{let{value:t=null,onChange:n,readOnly:o}=e;const i=Zt(),l=(0,a.useRef)(),[s,c]=(0,a.useState)(!1),u=()=>c(!1),[p,d]=(0,a.useState)(t),m=()=>{p!==t&&n(p),u()};return r().createElement("span",{ref:l,className:i.root},t&&(0,f.p6d)(t),r().createElement(_e.Z,{disabled:o,icon:Nt.Z,size:"XXS",className:i.editButton,onClick:()=>c(!0)}),r().createElement(ee.Popover,{classes:{paper:i.paper},open:s,anchorEl:l.current,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:14,horizontal:20},onKeyUp:e=>{"Enter"===e.key?m():"Escape"===e.key&&u()},onBackdropClick:m},r().createElement(Dt.Z,{InputProps:{autoFocus:!0,disableUnderline:!0,fullWidth:!0},size:"small",hiddenLabel:!0,label:void 0,value:p&&new Date(p),onChange:e=>d(e&&e.valueOf())})))},jt=(0,se.Z)((e=>({relationBand:{flexShrink:0,boxShadow:"inset 0px -1px 0px rgba(0,0,0,0.06)",padding:"16px 19px"},inactiveRelationBand:{opacity:.6,background:"rgba(185, 188, 197, 0.18)"},toolbar:{display:"flex",alignItems:"center",gap:"16px",marginBottom:"10px"},mainInfo:{display:"flex",gap:"16px",marginLeft:"40px"},detailsInfo:{display:"flex",gap:"34px",marginLeft:"40px",marginTop:"17px",color:e.palette.text.secondary,fontSize:"13px"},detailTitle:{color:e.palette.text.primary,flexShrink:0,marginRight:"4px"},directionalLabel:{display:"flex",overflow:"hidden","& span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},relationDate:{flexShrink:0},commentsContainer:{marginRight:"18px"}})));function Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){Lt(e,t,n[t])}))}return e}function Lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zt=(0,a.memo)((e=>{let{readOnly:t,entity:n,connection:a,onNavigateBack:o,onDelete:i,onChangeActivenessDate:l}=e;const s=!(0,f.Fn9)(a.relation),c=jt();return r().createElement("div",{className:Ce()(c.relationBand,we.U,{[c.inactiveRelationBand]:s})},r().createElement("div",{className:c.toolbar},r().createElement(_e.Z,{icon:St.Z,size:"S",onClick:()=>o()}),r().createElement(ee.Typography,{variant:"subtitle2",display:"inline"},N().text("Back to relationships")),r().createElement(ae.Z,null),r().createElement("div",{className:c.commentsContainer},r().createElement(Pe.Z,{uri:a.relation.relationUri,relatedObjectUris:(0,f.wp9)(f.q7e.RELATION,{entityUri:null==n?void 0:n.uri,connection:a}),objectType:f.q7e.RELATION,allowOnlyOneComment:!0})),r().createElement(Ke,{connection:a,onDelete:i,disableDelete:t})),r().createElement("div",{className:c.mainInfo},r().createElement(Pt,{entity:n}),r().createElement(Rt,{relation:a.relation}),r().createElement(Pt,{entity:Mt({},a.entity.object,{dataTenant:a.entity.dataTenant})})),r().createElement("div",{className:c.detailsInfo},r().createElement("div",{className:c.directionalLabel},r().createElement("span",{className:c.detailTitle},N().text("Directional label:")),r().createElement(Et.Z,{value:a.relation.relationLabel},r().createElement("span",null,a.relation.relationLabel))),r().createElement("div",{className:c.relationDate},r().createElement("span",{className:c.detailTitle},N().text("Start date:")),r().createElement(It,{value:a.relation.startDate,onChange:e=>l("startDate",e),readOnly:t})),r().createElement("div",{className:c.relationDate},r().createElement("span",{className:c.detailTitle},N().text("End date:")),r().createElement(It,{value:a.relation.endDate,onChange:e=>l("endDate",e),readOnly:t}))))})),At=e=>{console.error(e),d.Z.addError({title:N().text("Error"),message:(0,f.xU7)(e,N().text("Something went wrong"))})};var Bt=n(58651),Ft=n(13896);const Ut=(0,se.Z)({detailsView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},locked:{pointerEvents:"none"},resizablePanesWrapper:{flexGrow:1},pane:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",overflow:"hidden"}}),Ht=(0,a.memo)((e=>{let{entity:t,connection:n,visibleColumns:o,onClose:i,onDeleteConnection:l,onChangeConnection:s,onChangeVisibleColumns:c,readOnly:u}=e;const p=Ut(),d=(()=>{const[e,t]=(0,a.useState)([]),n=(0,a.useRef)([]),r=(0,a.useCallback)((0,f.DsO)((()=>{t([...n.current])}),50),[]),o=(0,a.useCallback)((e=>{n.current=e,r(e)}),[r]),i=(0,a.useCallback)(((e,t)=>{e&&o(t?[e]:[])}),[o]),[l,s]=(0,a.useState)([]),c=(0,a.useCallback)((e=>{e&&s((t=>{return n=[e],a=t,(0,h.concat)(n.filter((e=>!(0,h.any)((0,f.aFF)(e),a))),a.filter((e=>!(0,h.any)((0,f.aFF)(e),n))));var n,a}))}),[]);return{highlightedCrosswalks:(0,a.useMemo)((()=>[...e,...l]),[e,l]),focusedCrosswalks:l,toggleCrosswalkFocus:c,setCrosswalkHighlighted:i}})(),[m,g]=(0,a.useState)(-480),b=(0,a.useCallback)((e=>{let{percentageSize:t}=e;return g(t)}),[]),[y,v]=(0,a.useState)(),[x,E]=(0,a.useState)(!1),S=n.relation.relationUri,C=(0,tt._)(),w=(0,a.useCallback)((()=>E(!0)),[]),T=(0,a.useCallback)((()=>E(!1)),[]),O=(0,a.useCallback)((0,h.pipe)(l,w),[]),[P,k]=(0,a.useMemo)((()=>{const e=e=>{e.errorCode===f.Xt7.CROSSWALK_NOT_FOUND?(At(e),t()):e.errorCode===f.Xt7.OBJECT_NOT_FOUND?i(e):(At(e),T())},t=()=>{C((0,f._vs)(S)).then((e=>{s((0,h.assocPath)(["relation","object"],e,n)),T()})).catch(e)};return[e,t]}),[n,T,s,i]),{modifiedEntity:R,crosswalksMap:D,newlyCreatedAttributes:N,onPinAttribute:Z,onIgnoreAttribute:I,onAddAttribute:j,onEditAttribute:M,onDeleteAttribute:L}=(0,nt.Q)({entity:n.relation.object,onModify:k,onError:P,onLoad:w}),{addCrosswalk:z,deleteCrosswalk:A,editCrosswalk:B}=(0,at.P)({onSuccess:k,onError:P,onLoad:w}),F=(0,a.useCallback)(((e,t)=>{w(),(t?(0,f.rj2)({entityUri:S,attributeName:e,value:t}).then((()=>s((0,h.assocPath)(["relation",e],t,n)))):(0,f.X78)({entityUri:S,attributeName:e}).then((()=>s((0,h.dissocPath)(["relation",e],n))))).then(T).catch(P)}),[n,w,T,P]);return r().createElement(rt.Z,{className:p.detailsView},r().createElement(ot.hR,d,r().createElement(Ft.DndProvider,{backend:Bt.default},r().createElement(it.Z,null),r().createElement(lt.u,{className:Ce()(p.resizablePanesWrapper,{[p.locked]:x}),orientation:"vertical",size:m,minSize:600,maxSize:-480,allowResize:!0,onChange:b},r().createElement("div",{className:p.pane},r().createElement(zt,{readOnly:u,entity:t,connection:n,onNavigateBack:i,onDelete:O,onChangeActivenessDate:F}),r().createElement(st.R,{attributeUris:N},r().createElement(ct.Z,{readOnly:u,entity:R,crosswalksMap:D,isLoading:x,onPin:Z,onIgnore:I,onEdit:M,onAdd:j,onDelete:L,selectedAttributeTypes:y,onSelectAttributeTypes:v,visibleColumns:o,onChangeVisibleColumns:c}))),r().createElement(xt,{readOnly:u,className:p.pane,relation:n.relation.object,selectedAttributeTypes:y,onAddCrosswalk:z,onDeleteCrosswalk:A,onEditCrosswalk:B})))))})),Vt=(0,se.Z)({relationshipsView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowX:"hidden",overflowY:"auto",fontFamily:"Roboto, Helvetica, Arial, sans-serif",display:"flex",flexDirection:"column"},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},pane:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",position:"relative"}}),_t=(0,o.connect)(((e,t)=>{let{config:{id:n}}=t;return{entity:m.ZP.selectors.getEntity(e),metadata:m.ZP.selectors.getMetadata(e),connections:m.ZP.selectors.getConnectionsByViewId(e,n),total:m.ZP.selectors.getTotalByViewId(e,n)}}))((e=>{let{config:t,entity:n,metadata:o,connections:i,total:l,saveState:s,getSavedState:c,dispatch:u}=e;const p=Vt(),d=(0,a.useRef)(),T=(0,f.biM)(n),[k,D]=(0,a.useState)(!1),{type:N}=n||{},[{visibleColumns:Z,filters:I,page:A,rowsPerPage:U,sorting:W,currentRelationType:ee,stateToSave:te,entityTypeOfAppliedSavedState:ne},{changeColumns:ae,toggleFilters:re,changeFilter:oe,changePage:ie,changeRowsPerPage:le,toggleSort:se,changeRelationType:ce,saveCurrentState:ue,applySavedState:pe}]=(e=>{let{defaultColumns:t,defaultSorting:n,defaultRowsPerPage:r}=e;const o={visibleColumns:t,filters:null,sorting:n,page:0,rowsPerPage:r,currentRelationType:null,stateToSave:null,visibleColumnsForRelationTypes:{},entityTypeOfAppliedSavedState:null},[i,l]=(0,a.useReducer)(((e,t)=>{switch(t.type){case H:{const n=t.payload;return(0,h.pipe)(K,(0,h.assoc)("currentRelationType",n),$,Y)(e)}case V:{const{savedState:n,entityTypeUri:a}=t.payload,r=n?G(n):e.visibleColumns;return F({},e,n,{filters:n?X(n):e.filters,visibleColumns:r,entityTypeOfAppliedSavedState:a})}case _:return F({},e,{stateToSave:Q(e)});default:return P.ZP.reducer(e,t)}}),o);return[i,(0,R.o)({actions:q,dispatch:l})]})({defaultColumns:M,defaultRowsPerPage:z[0],defaultSorting:{field:M[0],order:"asc"}}),me=ne===N,{isLoading:he,relationsTableSavedState:fe,attributesTableSavedState:ge,updateRelationsTableSavedState:be,updateAttributesTableSavedState:ye}=(e=>{var t;let{getSavedState:n,saveState:r,entityTypeUri:o}=e;const[i,l]=(0,a.useState)(O),[s,c]=(0,a.useState)(null);(0,g.D)((()=>{s&&(l(w({},i,{relationsTable:s})),c(null))}),[o]);const[u,p]=(0,a.useState)(!0);return(0,a.useEffect)((()=>{n().then((e=>{l(e||O)})).then((e=>p(!1))).catch((e=>p(!1)))}),[]),{isLoading:u,relationsTableSavedState:null===(t=i.relationsTable)||void 0===t?void 0:t[o],attributesTableSavedState:i.attributesTable,updateRelationsTableSavedState:e=>{const t=w({},i.relationsTable,{[o]:e});c(t),r(w({},i,{relationsTable:t}))},updateAttributesTableSavedState:e=>{r(w({},i,{attributesTable:e}))}}})({getSavedState:c,saveState:s,entityTypeUri:N}),[ve,xe]=(0,a.useState)();(0,a.useEffect)((()=>{he||pe({savedState:fe,entityTypeUri:N})}),[he,N]),(0,a.useEffect)((()=>{he||xe(null==ge?void 0:ge.visibleColumns)}),[he]),(0,g.D)((()=>{me&&be(te)}),[te]),(0,g.D)((()=>{ie(0)}),[n]);const[Ee,Se]=(0,a.useState)(),Ce=(0,a.useCallback)((()=>{Se(null)}),[]),we=(0,a.useMemo)((()=>{const e=(0,f.io3)(o,N);return o.relationTypes.filter((0,h.both)((0,f.uGe)(f.BDP.READ),(t=>{let{startObject:n,endObject:a}=t;return e.some((0,h.either)((0,h.equals)(n.objectTypeURI),(0,h.equals)(a.objectTypeURI)))})))}),[o,N]),Te=(0,a.useMemo)((()=>((e,t)=>t?(0,h.pipe)((0,h.find)((e=>e.uri===t)),f.DK$,B,(0,h.concat)(j),(0,h.reject)((e=>{let{id:t}=e;return L.includes(t)})))(e):(e=>{return t=(0,h.assoc)("dataTypeDefinition",(e=>({type:f.oS0.TYPE_SELECT,options:e.map((e=>{let{uri:t,label:n}=e;return{value:t,label:n}}))}))(e)),e=>(0,h.adjust)(e.findIndex((0,h.propEq)("id","relation.type")),t,e);var t})(e)(j))(we,ee)),[we,ee]),Oe=(0,a.useMemo)((()=>Z.map((e=>Te.find((0,h.propEq)("id",e)))).filter(h.identity)),[Z,Te]),Pe=(0,a.useMemo)((()=>{const e=(0,h.pipe)((0,h.when)((0,h.always)(ee),(0,h.filter)((0,h.propEq)("uri",ee))),(0,h.map)((0,h.prop)("uri")))(we);return{id:t.id,content:{inRelations:e,outRelations:e}}}),[t.id,ee,we]),ke=(0,a.useMemo)((()=>((e,t)=>{const n=(0,J.Tz)(t,e);return(new f.MEy).addClause(n).build()})(I,Oe)),[I,Oe]),{isLoading:Re,reload:De}=(0,b.a)({page:A,rowsPerPage:U,config:Pe,entity:me?n:null,filter:ke,mode:f.ARY.Viewing,sorting:W,searchByOv:k}),Ne=!me||Re,Ze=(0,a.useCallback)((0,h.pipe)(se,ue),[se,ue]),Ie=(0,a.useCallback)((0,h.pipe)(oe,ue),[oe,ue]),je=(0,a.useCallback)((0,h.pipe)(re,ue),[re,ue]),Me=(0,a.useCallback)((0,h.pipe)(ae,ue),[ae,ue]),Le=(0,a.useCallback)((0,h.pipe)(ce,ue),[ce,ue]),ze=(0,a.useCallback)((e=>{xe(e),ye({visibleColumns:e})}),[ye]),Ae=null==i?void 0:i[Ee],Be=(0,a.useCallback)((e=>{u(m.N5.relations.actions.relationsLoaded({id:t.id,connections:(0,h.update)(Ee,e,i),total:l}))}),[Ae]),[Fe,Ue]=(0,a.useMemo)((()=>[(0,f.w3p)(i),[f.q7e.RELATION]]),[i]),He=(0,y.C)({objectIds:Fe,objectTypes:Ue,enabled:!T}),Ve=(0,a.useMemo)((()=>(0,f.Px$)(i)),[i]),_e=(0,a.useCallback)((e=>{At(e),e.errorCode===f.Xt7.OBJECT_NOT_FOUND&&De()}),[De]),qe=(0,a.useCallback)((e=>{(0,h.pipe)(f.VGk,(0,h.andThen)(De),(0,h.otherwise)(_e))(e)}),[De,_e]),Ye=(0,a.useCallback)((()=>{(0,h.pipe)(f.VGk,(0,h.andThen)((0,h.pipe)(Ce,De)),(0,h.otherwise)((e=>{e.errorCode===f.Xt7.OBJECT_NOT_FOUND&&Ce(),_e(e)})))(Ae.relation.relationUri)}),[Ae,De,Ce,_e]),We=(0,a.useCallback)((e=>{e&&_e(e),Ce()}),[_e,Ce]),Ge=(0,a.useCallback)((()=>{D(h.not)}),[D]);return r().createElement(v.e,{collaboration:He},r().createElement(x.X.Provider,{value:Ve},r().createElement("div",{className:p.relationshipsView},r().createElement(E.n,{entity:n}),r().createElement(de,{total:l,filteringEnabled:!!I,onToggleFilters:je,columnsData:Te,selectedColumns:Z,onChangeColumns:Me,relationTypes:we,currentRelationType:ee,onRelationTypeChange:Le,searchByOv:k,onToggleSearchByOv:Ge}),r().createElement("div",{className:p.pane},Ne&&r().createElement(S.Z,null),r().createElement(et,{readOnly:T,metadata:o,connections:i,columnsData:Oe,sorting:W,onSort:Ze,filters:I,onFilter:Ie,onRowClick:Se,tableRef:d,onDelete:qe}),r().createElement(C.Z,{count:l,rowsPerPageOptions:z,page:A,onChangePage:ie,rowsPerPage:U,onChangeRowsPerPage:le,basicTableRef:d})),Ae&&r().createElement(Ht,{readOnly:T,entity:n,visibleColumns:ve,onChangeVisibleColumns:ze,connection:Ae,onClose:We,onDeleteConnection:Ye,onChangeConnection:Be}))))}));function qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yt=(0,l.createGenerateClassName)({productionPrefix:"relationshipsPerspective",disableGlobal:!0}),Wt=e=>{let{config:t,store:n,onResize:h,saveState:g,getSavedState:b}=e;const y=(0,a.useCallback)((0,f.aYu)(b),[b]),v=(0,a.useContext)(u.Y),x=m.ZP.selectors.getShowAttributeDescription(n.getState()),E=(0,a.useMemo)((()=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){qt(e,t,n[t])}))}return e}({},v,{showDescription:x})),[v,x]);return r().createElement(o.Provider,{store:n},r().createElement(p.m.Provider,{value:t.id},r().createElement(u.Y.Provider,{value:E},r().createElement(l.StylesProvider,{generateClassName:Yt},r().createElement(c.MuiPickersUtilsProvider,{utils:i.Z},r().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>null==h?void 0:h(Math.floor(e),Math.floor(t))}),t&&r().createElement(_t,{config:t,saveState:g,getSavedState:y}),r().createElement(d.Z,null))))))}}}]);
2
+ //# sourceMappingURL=7198.js.map