@reltio/remotes 1.4.1639 → 1.4.1640

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/1039.js +1 -1
  2. package/1088.js +1 -1
  3. package/1146.js +1 -1
  4. package/1148.js +1 -1
  5. package/1334.js +1 -1
  6. package/1425.js +1 -1
  7. package/1554.js +1 -1
  8. package/1572.js +1 -1
  9. package/1664.js +1 -1
  10. package/1707.js +1 -1
  11. package/1790.js +1 -1
  12. package/2066.js +1 -1
  13. package/2400.js +1 -1
  14. package/3096.js +1 -1
  15. package/3348.js +1 -1
  16. package/3358.js +1 -1
  17. package/3373.js +1 -1
  18. package/3381.js +1 -1
  19. package/3383.js +1 -1
  20. package/3463.js +1 -1
  21. package/3469.js +1 -1
  22. package/3538.js +1 -1
  23. package/356.js +1 -1
  24. package/3785.js +1 -1
  25. package/3854.js +1 -1
  26. package/3902.js +1 -1
  27. package/3912.js +1 -1
  28. package/3926.js +1 -1
  29. package/415.js +1 -1
  30. package/4212.js +1 -1
  31. package/446.js +1 -1
  32. package/4481.js +1 -1
  33. package/4609.js +1 -1
  34. package/4610.js +1 -1
  35. package/4703.js +1 -1
  36. package/4806.js +1 -1
  37. package/4838.js +1 -1
  38. package/50.js +1 -1
  39. package/5039.js +1 -1
  40. package/5053.js +1 -1
  41. package/5108.js +1 -1
  42. package/5163.js +1 -1
  43. package/5292.js +1 -1
  44. package/5383.js +1 -1
  45. package/5617.js +1 -1
  46. package/6020.js +1 -1
  47. package/6287.js +1 -1
  48. package/636.js +1 -1
  49. package/6606.js +1 -1
  50. package/672.js +1 -1
  51. package/6844.js +1 -1
  52. package/6903.js +1 -1
  53. package/6945.js +1 -1
  54. package/7128.js +1 -1
  55. package/7303.js +1 -1
  56. package/7340.js +1 -1
  57. package/735.js +1 -1
  58. package/7422.js +1 -1
  59. package/7744.js +1 -1
  60. package/7896.js +1 -1
  61. package/7963.js +1 -1
  62. package/820.js +1 -1
  63. package/8207.js +1 -1
  64. package/829.js +1 -1
  65. package/8344.js +1 -1
  66. package/8565.js +1 -1
  67. package/8741.js +1 -1
  68. package/8893.js +1 -1
  69. package/9016.js +1 -1
  70. package/9050.js +1 -1
  71. package/9109.js +1 -1
  72. package/9283.js +1 -1
  73. package/9309.js +1 -1
  74. package/9328.js +1 -1
  75. package/938.js +1 -1
  76. package/9387.js +1 -1
  77. package/9464.js +1 -1
  78. package/9612.js +1 -1
  79. package/9652.js +1 -1
  80. package/9736.js +1 -1
  81. package/987.js +1 -1
  82. package/9952.js +1 -1
  83. package/9960.js +1 -1
  84. package/9990.js +1 -1
  85. package/main.js +1 -1
  86. package/package.json +1 -1
  87. package/remoteEntry.js +1 -1
package/672.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="135c4d16-168c-403b-926c-38bf71b82578",e._sentryDebugIdIdentifier="sentry-dbid-135c4d16-168c-403b-926c-38bf71b82578")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1640"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[672],{89323:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(68671)),l=n(52322),o=(0,r.default)((0,l.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"DragIndicator");t.Z=o},80516:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(68671)),l=n(52322),o=(0,r.default)((0,l.jsx)("path",{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"}),"Flag");t.Z=o},24648:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(68671)),l=n(52322),o=(0,r.default)((0,l.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");t.Z=o},83993:(e,t,n)=>{n.d(t,{Z:()=>h});var a=n(31461),r=n(7896),l=n(24328),o=n(6277),i=n(69075),c=n(65992),s=n(43853),u=n(33552),p=n(40602),d=n(52322);const m=["className"],f=(0,c.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,r.Z)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),h=l.forwardRef((function(e,t){const n=(0,s.Z)({props:e,name:"MuiListItemIcon"}),{className:c}=n,h=(0,a.Z)(n,m),g=l.useContext(p.Z),E=(0,r.Z)({},n,{alignItems:g.alignItems}),y=(e=>{const{alignItems:t,classes:n}=e,a={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,i.Z)(a,u.f,n)})(E);return(0,d.jsx)(f,(0,r.Z)({className:(0,o.default)(y.root,c),ownerState:E,ref:t},h))}))},153:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(89323);const c=(0,n(72342).makeStyles)({dragHandleContainer:{position:"relative",width:"100%",height:"inherit"},dragHandleVisibilityArea:{position:"absolute",top:0,left:0,width:"100%",height:"12px",zIndex:11,visibility:"hidden","&:hover $dragHandle":{visibility:"visible"},".react-draggable &":{visibility:"visible"}},dragHandle:{position:"absolute",width:"100%",display:"flex",justifyContent:"center",top:"-3px",zIndex:11,cursor:"move",visibility:"hidden"},dragIcon:{transform:"translateX(-50%) rotate(90deg)",color:"rgba(0, 0, 0, 0.3)",fontSize:"20px"}}),s=e=>{const t=t=>{const n=c();return r().createElement("div",{className:n.dragHandleContainer},r().createElement("div",{className:n.dragHandleVisibilityArea},r().createElement("div",{className:o()("viewDraggableHandle",n.dragHandle)},r().createElement(i.Z,{className:n.dragIcon}))),r().createElement(e,t))};return t.displayName="WithDragHandle",t}},55234:(e,t,n)=>{n.d(t,{Z:()=>x});var a=n(24328),r=n.n(a),l=n(2507),o=n.n(l),i=n(71153),c=n.n(i),s=n(50914),u=n(31421),p=n(79312),d=n(15793),m=n(19602),f=n(59952),h=n(33117),g=n(14596),E=n(72342);function y(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){b(e,t,n[t])}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v={input:e=>y({},e,{fontSize:"14px"}),menuPortal:e=>y({},e,{zIndex:1300})},O=(0,E.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"},noOptionsMessage:{fontSize:"14px"}});const x=e=>{let{entityType:t,selectedAttributes:n,className:l,onChange:i,title:E,disableUnderline:y,menuPlacement:b="bottom"}=e;const x=O(),S=(0,g.AH)(),w=(0,a.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.reduce(((e,a)=>{if(a.hidden)return e;const r=`${n&&n+" / "}${a.label}`;e.push({label:a.label,value:a.uri,attrType:a,chipLabel:r,level:t});const l=(0,u.EUG)(S,a);return e.concat(l?w(l,t+1,r):[])}),[])}),[S]),R=(0,a.useMemo)((()=>w((null==t?void 0:t.attributes)||[])),[t,w]);return r().createElement("div",{className:c()(x.root,l),"data-reltio-id":"attribute-selector"},r().createElement(p.Z,{className:x.title,variant:"subtitle1"},E||o().text("Attribute")),r().createElement(d.Z,{value:n,options:R,TextFieldProps:{InputProps:{disableUnderline:y},classes:{root:x.dropDownInput}},components:{DropdownIndicator:f.Z,MultiValue:e=>{let{data:t}=e,n=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["data"]);return r().createElement(m.Z,n,t.chipLabel)},Option:e=>{let{isFocused:t,isSelected:n,data:a,label:l,innerProps:o}=e;return r().createElement("div",o,r().createElement(h.Z,{checked:n,level:a.level,data:a,label:l,labelInText:l,isFocused:t}))}},onChange:(0,s.pipe)((0,s.defaultTo)([]),i),styles:v,classes:x,menuPlacement:b,menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1}))}},30488:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(38748),r=n(50548);const l=e=>t=>(0,r.l)(a.X,e,t)},33945:(e,t,n)=>{n.d(t,{Z:()=>g});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(2507),c=n.n(i),s=n(79573),u=n(50914),p=n(76799);const d=(0,n(72342).makeStyles)({pagination:{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"56px",flexShrink:0,borderTop:"1px solid rgba(0,0,0,0.12)",boxShadow:"none",boxSizing:"border-box",overflowY:"hidden",containerType:"inline-size","& .MuiInputBase-root":{display:"none","@container (min-width: 420px)":{display:"inline-flex"}}},caption:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px",display:"none","@container (min-width: 420px)":{display:"block"}},displayedRows:{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!important"}});function m(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){f(e,t,n[t])}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h=e=>{let{classes:t={},count:n,rowsPerPageOptions:l,page:i,onChangePage:f,rowsPerPage:h,onChangeRowsPerPage:g,basicTableRef:E,labelRowsPerPage:y}=e;const b=d(),v=(0,a.useCallback)((()=>{(0,u.pathOr)(u.identity,["current","resetScrollbarPosition"],E)()}),[E]),O=(0,a.useCallback)((e=>{f(e),v()}),[f,v]),x=(0,a.useCallback)((e=>{f(0),g(e),v()}),[f,g,v]);return r().createElement(p.Z,{classes:m({},t,{root:o()(b.pagination,t.root),select:o()(b.select,t.select),selectLabel:o()(b.caption,t.selectLabel),displayedRows:o()(b.displayedRows,t.displayedRows),input:o()(b.selectRoot,t.selectRoot),actions:b.actions}),backIconButtonProps:{size:"large"},nextIconButtonProps:{size:"large"},component:"div",labelRowsPerPage:y||c().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:n,count:a}=e;return c().text("${fromRow}-${toRow} of ${countRows}",{fromRow:c().number(t,"0,0"),toRow:c().number(n,"0,0"),countRows:c().number(a,"0,0")})},count:n,rowsPerPageOptions:l,page:i,onPageChange:(0,u.pipe)((0,u.nthArg)(1),O),rowsPerPage:h,onRowsPerPageChange:(0,u.pipe)(s.NA,x)})};h.displayName="BasicTablePagination";const g=(0,a.memo)(h)},82565:(e,t,n)=>{n.d(t,{Z:()=>p});var a=n(24328),r=n.n(a),l=n(12115);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){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 c=(0,n(72342).makeStyles)((e=>({basicViewPaper:o({display:"flex",flexDirection:"column"},e.basicView)})));function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},s.apply(this,arguments)}const u=(0,a.forwardRef)(((e,t)=>{let{children:n,className:a}=e,o=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["children","className"]);const i=c();return r().createElement(l.Z,s({ref:t,className:a,classes:{root:i.basicViewPaper}},o),n)}));u.displayName="BasicView";const p=u},17998:(e,t,n)=>{n.d(t,{Z:()=>p});var a=n(24328),r=n.n(a),l=n(2507),o=n.n(l),i=n(26482),c=n(79312);const s=(0,n(72342).makeStyles)({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",minWidth:"50px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function u(){return u=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},u.apply(this,arguments)}const p=e=>{let{title:t="",children:n=null,classes:a={}}=e,l=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["title","children","classes"]);const p=s();return r().createElement(i.Z,u({className:a.root,classes:{root:p.toolbar}},l),r().createElement(c.Z,{className:a.title,classes:{root:p.title},variant:"h6"},o().text(t)),n)}},28831:(e,t,n)=>{n.d(t,{Z:()=>p});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(39475),c=n(63655);const s=(0,n(72342).makeStyles)({collapseButton:{cursor:"pointer"},expandLess:{transform:"rotate( -180deg )"}});function u(){return u=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},u.apply(this,arguments)}const p=e=>{let{isOpen:t=!1,tooltipTitle:n}=e,a=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["isOpen","tooltipTitle"]);const l=s(),p={icon:c.Z,className:l.collapseButton,iconClassName:o()({[l.expandLess]:t})},d={tooltipTitle:n};return r().createElement(i.k,u({"data-reltio-id":"collapse-button"},p,d,a))}},89902:(e,t,n)=>{n.d(t,{Z:()=>u});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(50914);const c=(0,n(72342).makeStyles)((e=>({bar:{backgroundColor:e.palette.secondary.main,opacity:.12,position:"absolute",minHeight:"20px",minWidth:"5px",borderRadius:"2px",top:0,left:0,height:"100%"}}))),s=e=>(0,i.is)(Number,e),u=e=>{let{className:t,width:n=0,maxWidth:l}=e;const i=c(),u=(0,a.useCallback)((e=>(l?100*e/l:0)+"%"),[l]);return n?r().createElement("div",{className:o()(i.bar,t),style:{width:s(n)?u(n):n}}):null}},77875:(e,t,n)=>{n.d(t,{Z:()=>m});var a=n(24328),r=n.n(a),l=n(50914),o=n(31421),i=n(53242),c=n(90590),s=n(79573);const u=(0,n(72342).makeStyles)({root:{display:"flex",flex:1},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px",fontSize:"14px"},inputNumber:{minWidth:"60px",marginRight:10,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.03)"},inputUnit:{width:"100%"}});var p=n(7342);const d=["minutes","hours","days","weeks","months","years"],m=e=>{let{interval:[t,n],onChange:a,onFocus:m}=e;const f=u(),h=(0,l.pipe)(s.NA,parseInt,(e=>[e,n]),a),g=(0,l.pipe)((e=>{let{value:n}=e;return[t,n]}),a);return r().createElement("div",{className:f.root},r().createElement(i.Z,{variant:"standard",type:"number",value:t||"",onChange:h,inputProps:{min:1,onFocus:m},InputProps:{classes:{root:f.input}},className:f.inputNumber}),r().createElement(c.Z,{label:"",placeholder:(0,p.Z)(n),className:f.inputUnit,value:{value:n,label:(0,p.Z)((0,o.wsP)(n))},options:d.map((e=>({value:e,label:(0,p.Z)((0,o.wsP)(e))}))),onChange:g,TextFieldProps:{inputProps:{onFocus:m},InputProps:{classes:{root:f.input}}}}))}},98538:(e,t,n)=>{n.d(t,{Z:()=>x});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(50914),c=n(38677),s=n(18960),u=n(55962),p=n(80852),d=n(95341),m=n(79312),f=n(78223),h=n(47591);const g=(0,n(72342).makeStyles)((e=>({buttonRoot:{"&$selected":{color:e.palette.action.active,backgroundColor:(0,h.Fq)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,h.Fq)(e.palette.action.active,.15)}}},selected:{},paper:{minWidth:"112px"},menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}}))),E=(0,f.Z)(d.Z),y=(0,a.forwardRef)(((e,t)=>{let{item:n,onMenuClose:a=i.identity}=e;const l=g(),{disabled:o,text:c,tooltip:s,onClick:u,id:d="",selectable:f,selected:h}=n;return r().createElement(E,{tooltipTitle:s,showForDisabled:!0,classes:{root:l.menuItem},onClick:e=>{a(e),u(e)},disabled:o,ref:t,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${d}`},f&&r().createElement(p.Z,{checked:h,color:"primary"}),r().createElement(m.Z,{classes:{root:l.menuText}},c))}));y.displayName="MenuItemRenderer";const b=y;function v(){return v=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},v.apply(this,arguments)}function O(e){let{className:t,menuId:n,buttonComponent:l=c.Z,buttonContent:p,menuItems:d=[],buttonProps:m={},popoverProps:f={},onMenuOpen:h=i.identity,onMenuClose:E=i.identity,MenuItemRenderer:y=b}=e;const O=l,x=g(),S=(0,a.useRef)(),[w,R]=(0,a.useState)(!1);(0,u.D)((()=>{w?h():E()}),[w]);const T=(0,a.useCallback)((e=>{null==e||e.stopPropagation(),R((e=>!e))}),[]);return r().createElement(r().Fragment,null,r().createElement(O,v({"data-reltio-id":"drop-down-menu-button",ref:S,className:o()(x.buttonRoot,{[x.selected]:w},t),onClick:T,"aria-pressed":w,"aria-controls":w?n:void 0,"aria-haspopup":"true"},m),p),r().createElement(s.Z,v({id:n,variant:"menu",open:w,autoFocus:!1,classes:{paper:x.paper},anchorEl:S.current,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,MenuListProps:{autoFocusItem:w}},f),d.map(((e,t)=>r().createElement(y,{item:e,key:t,onMenuClose:T})))))}O.displayName="DropDownMenuButton";const x=O},96379:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(24328),r=n.n(a),l=n(98018),o=n(14596);function i(){return i=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},i.apply(this,arguments)}const c=e=>{const t=(0,o.$H)()||"";return r().createElement(l.ZP,i({},e,{storagePath:(n=t,n.endsWith("/")?n:n+"/")}));var n}},7882:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(24328),r=n.n(a);class l extends r().Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){this.setState({error:e}),console.error(e)}render(){const{children:e,error:t}=this.props;return this.state.error?t:e}}},52194:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(17998);const c=(0,n(72342).makeStyles)({container:{padding:"0 16px",minHeight:"48px",".react-draggable &":{paddingTop:"4px"}},title:{fontSize:"16px",lineHeight:"19px",justifyContent:"flex-start"}}),s=e=>{let{className:t,title:n,children:a}=e;const l=c();return r().createElement(i.Z,{title:n,classes:{root:o()(l.container,t),title:l.title}},a)}},15793:(e,t,n)=>{n.d(t,{Z:()=>P});var a=n(24328),r=n.n(a),l=n(13980),o=n.n(l),i=n(50914),c=n(70347);const s=(0,n(4515).Z)(c.ZP);var u=n(49861),p=n(12350),d=n(95341),m=n(80852),f=n(71153),h=n.n(f),g=n(40007);function E(){return E=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},E.apply(this,arguments)}function y(e){const{innerProps:t,innerRef:n,children:a,isFocused:l,isSelected:o,selectProps:{classes:i},label:c}=e;return r().createElement(d.Z,E({className:h()(i.option,{[i["option--selected"]]:o}),ref:n,selected:l,component:"div"},t),r().createElement(m.Z,{color:"primary",checked:o}),r().createElement(g.Z,{value:c},r().createElement("div",{className:i["option--item"]},a)))}y.propTypes={children:o().node,innerProps:o().shape({id:o().string.isRequired,key:o().string,onClick:o().func.isRequired,onMouseMove:o().func.isRequired,onMouseOver:o().func.isRequired,tabIndex:o().number.isRequired}).isRequired,innerRef:o().oneOfType([o().oneOf([null]),o().func,o().shape({current:o().any.isRequired})]),isFocused:o().bool.isRequired,isSelected:o().bool.isRequired,label:o().string,selectProps:o().shape({classes:o().shape({option:o().string})})};const b={Option:y};var v=n(72342),O=n(79573);function x(){return x=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},x.apply(this,arguments)}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){w(e,t,n[t])}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const R=(0,v.makeStyles)((e=>({label:{top:6,left:16},placeholder:e=>({display:!e.placeholder||e.label?"none":void 0}),"option--selected":{fontWeight:400},clearIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)},dropdownIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)}})));let T=0;function I(e){const{label:t,creatable:n,getOptions:l,loadingIndicator:o,components:c,classes:d,styles:m,onChange:f,onInputChange:h,menuPlacement:g="auto"}=e,E=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["label","creatable","getOptions","loadingIndicator","components","classes","styles","onChange","onInputChange","menuPlacement"]),y=n?s:l?p.Z:u.Z,[v,w]=(0,a.useState)(""),I=R((0,i.omit)(["classes"],e)),P="custom-select-"+T++,C=S({},b,c),M=(0,O.ze)(I,d),D=S({indicatorSeparator:e=>S({},e,{margin:"10px 0"}),loadingIndicator:e=>S({},e,{display:o?e.display:"none"}),loadingMessage:e=>S({},e,{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'})},m),N=t?{inputId:P,TextFieldProps:S({label:t,InputLabelProps:{htmlFor:P,shrink:!(!e.value||!e.value.length)||void 0,className:M.label}},e.TextFieldProps)}:{};return r().createElement(y,x({isMulti:!0,inputId:P,inputValue:v,onChange:function(e,t){f(e,t),"create-option"===t.action&&(w(""),h("",{action:"input-change"}))},onInputChange:function(e,t){let{action:n}=t;h(e,{action:n}),"set-value"!==n&&w(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:M,components:C,styles:D,menuPlacement:g,loadOptions:l},N,E))}I.defaultProps={creatable:!1,cacheOptions:!0,components:{},classes:{},placeholder:"",loadingIndicator:!1,onInputChange:()=>{},onChange:()=>{}},I.propTypes={creatable:o().bool,cacheOptions:o().bool,defaultOptions:o().bool,value:o().arrayOf(o().shape({label:o().string.isRequired,value:o().any})),options:o().arrayOf(o().shape({label:o().string.isRequired,value:o().any})),onChange:o().func,onInputChange:o().func,placeholder:o().string,label:o().string,loadingIndicator:o().bool,components:o().shape({ClearIndicator:o().func,Control:o().func,DropdownIndicator:o().func,DownChevron:o().func,CrossIcon:o().func,Group:o().func,GroupHeading:o().func,IndicatorsContainer:o().func,IndicatorSeparator:o().func,Input:o().func,LoadingIndicator:o().func,Menu:o().func,MenuList:o().func,MenuPortal:o().func,LoadingMessage:o().func,NoOptionsMessage:o().func,MultiValue:o().func,MultiValueContainer:o().func,MultiValueLabel:o().func,MultiValueRemove:o().func,Option:o().func,Placeholder:o().func,SelectContainer:o().func,SingleValue:o().func,ValueContainer:o().func}),classes:o().shape({control:o().string,valueContainer:o().string,multiValue:o().string,noOptionsMessage:o().string,singleValue:o().string,placeholder:o().string,menu:o().string,clearIndicator:o().string,dropdownIndicator:o().string,option:o().string,"option--selected":o().string,label:o().string}),styles:o().shape({clearIndicator:o().func,container:o().func,control:o().func,dropdownIndicator:o().func,group:o().func,groupHeading:o().func,indicatorsContainer:o().func,indicatorSeparator:o().func,input:o().func,loadingIndicator:o().func,loadingMessage:o().func,menu:o().func,menuList:o().func,menuPortal:o().func,multiValue:o().func,multiValueLabel:o().func,multiValueRemove:o().func,noOptionsMessage:o().func,option:o().func,placeholder:o().func,singleValue:o().func,valueContainer:o().func}),TextFieldProps:o().object,getOptions:o().func,menuPlacement:o().string,menuPortalTarget:o().object,menuShouldBlockScroll:o().bool,captureMenuScroll:o().bool,getOptionValue:o().func,isSearchable:o().bool,inputRef:o().shape({current:o().object})};const P=I},14593:(e,t,n)=>{n.d(t,{Z:()=>C});var a=n(24328),r=n.n(a),l=n(66244),o=n.n(l),i=n(44443),c=n(50914),s=n(71153),u=n.n(s);function p(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}function m(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}const f=e=>{let{x:t,y:n,width:a,height:r,id:l,minWidth:o,minHeight:i,maxWidth:c,maxHeight:s,isStatic:u}=e;return{x:t,y:n,w:a,h:r,minW:o,minH:i,maxW:c,maxH:s,i:l,static:u}},h=e=>{let{x:t,y:n,w:a,h:r,maxW:l,minW:o,minH:i,maxH:c,i:s}=e;return{x:t,y:n,width:a,height:r,minWidth:o,minHeight:i,maxWidth:l,maxHeight:c,id:s,isStatic:m(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},g=e=>(e||[]).map(h),E=(0,c.curry)(((e,t)=>(e||[]).find((0,c.propEq)("id",t)))),y=(0,c.curry)(((e,t,n)=>(0,c.mergeAll)([n,(0,c.pick)(e,t)]))),b=(0,c.curry)(((e,t,n)=>(n||[]).map((n=>(0,c.pipe)((0,c.prop)("id"),E(t),(0,c.defaultTo)({}),y(e,c.__,n))(n))))),v=(0,c.curry)(((e,t)=>t.map((n=>{const a=t.filter((e=>e.y===n.y)).map((t=>e[t.id]||!t.autosizing&&t.minHeight||0)),r=Math.max(...a);if(n.height!==r&&r){const e=n.autosizing?{minHeight:r,maxHeight:r}:{};return p({},n,e,{height:r})}return n})))),O=(0,c.curry)(((e,t)=>t.map((t=>{const n=e[t.id];return n&&t.autosizing?p({},t,{minHeight:n,maxHeight:n,height:n}):t}))));var x=n(79573),S=n(72342),w=n(31421);const R=(0,S.makeStyles)((e=>({gridLayout:{position:"relative",width:"100%","& .react-grid-item":{"&.react-grid-placeholder":{background:"rgba(0, 0, 0, 0.03)",border:"2px dashed rgba(0, 0, 0, 0.3)",borderRadius:"3px",transitionDuration:"100ms",zIndex:7,userSelect:"none","& .react-resizable-handle":{display:"none"}},"&.static .react-resizable-handle":{display:"none"},"&.customView .react-resizable-handle":{width:"10px",height:"10px"},"&.cssTransforms":{transitionProperty:"transform"},"&.react-draggable-dragging":{transition:"none",zIndex:8,willChange:"transform","& .react-resizable-handle":{backgroundImage:"none"}},"& .react-resizable-handle":{position:"absolute",width:"14px",height:"14px",bottom:0,right:0,zIndex:20,backgroundImage:`url('${(0,w.m5F)('<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path stroke="#505050" stroke-opacity=".54" d="M9.5 0v10M0 9.5h9M7.5 4v4M4 7.5h3"/>\n</svg>')}')`,backgroundRepeat:"no-repeat",backgroundOrigin:"content-box",boxSizing:"border-box",cursor:"se-resize"},"&.fullscreen":{visibility:"visible",position:"unset",width:"100% !important",height:"100% !important",transform:"translate(0) !important"}}},gridFullscreen:{height:"100% !important",overflowY:"hidden","& .react-resizable-handle, & .react-grid-item":{visibility:"hidden"}},isResizing:{zIndex:9,willChange:"width, height",pointerEvents:"none"}})));function T(){return T=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},T.apply(this,arguments)}const I={cols:4,rowHeight:30,margin:[15,15]},P=e=>{let{views:t,layout:n,layoutOptions:l=I,onLayoutChanged:s=x.ZT,draggableHandle:p,LayoutItem:d,onRemove:m,onDrop:y,droppingItem:S,isDroppable:w,isStatic:P,classes:C}=e;const M=(0,a.useRef)(),D=(0,a.useRef)({}),N=R(),[_,k]=(0,a.useState)(null),[F,A]=(0,a.useState)(null),[z,j]=(0,a.useState)(0),{cols:L,rowHeight:Z,margin:H}=l,U=(0,a.useMemo)((()=>(e=>(e||[]).map(f))(n)),[n]),B=(0,c.pipe)(g,b(["autosizing"],n),(0,c.ifElse)((0,c.always)(P),v(D.current),O(D.current)),s),V=(0,a.useCallback)((e=>A((t=>t?null:e))),[]),G=null!==F;return r().createElement(r().Fragment,null,r().createElement(i.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>j(e)}),!!z&&r().createElement(o(),{innerRef:M,layout:U,cols:L,draggableHandle:p,autoSize:!0,rowHeight:Z,width:z,margin:H,onLayoutChange:P?void 0:B,isResizable:!P&&!G,isDraggable:!P&&!G,className:u()(null==C?void 0:C.root,N.gridLayout,{[N.gridFullscreen]:G}),onDrop:(e,t,n)=>{y&&y(g(e),h(t),n)},droppingItem:S,isDroppable:!P&&w,onResizeStart:(e,t)=>k(t.i),onResizeStop:()=>k(null),"data-reltio-id":"reltio-grid-layout"},U.map((e=>{const a=F===e.i,o=_===e.i,c=(E(n,e.i)||{}).autosizing?{AutosizeComponent:(s=e.i,r().createElement(i.Z,{handleHeight:!0,onResize:(e,t)=>{if(t){const e=((e,t)=>{const{margin:n,rowHeight:a}=t;return Math.ceil((e+n[1])/(a+n[1]))})(t,l);e!==D.current[s]&&(D.current[s]=e,B(U))}}}))}:{};var s;return r().createElement(d,T({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:V,onRemove:m,className:u()(null==C?void 0:C.item,{static:P,fullscreen:a,[N.isResizing]:o}),isFullscreen:a},c))}))))};P.displayName="ReltioGridLayout";const C=(0,a.memo)(P)},79935:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(24328),r=n.n(a);const l=()=>r().createElement("div",{style:{flex:1}})},15791:(e,t,n)=>{n.d(t,{Z:()=>v});var a=n(24328),r=n.n(a),l=n(2507),o=n.n(l),i=n(50914),c=n(71153),s=n.n(c),u=n(79312),p=n(15793),d=n(59952),m=n(31421),f=n(14596),h=n(72342);function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){E(e,t,n[t])}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y={input:e=>g({},e,{fontSize:"14px"}),loadingMessage:e=>g({},e,{fontSize:"14px"}),menuPortal:e=>g({},e,{zIndex:1300})},b=(0,h.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"}}),v=e=>{let{selectedUsers:t,onChange:n,className:l,disableUnderline:c}=e;const h=b(),g=(0,f.Uv)(),E=(0,f.au)(),v=e=>({value:e,label:e}),O=e=>e.map(v),x=(0,a.useRef)();return r().createElement("div",{className:s()(h.root,l),"data-reltio-id":"user-selector"},r().createElement(u.Z,{className:h.title,variant:"subtitle1"},o().text("User")),r().createElement(p.Z,{value:O(t),onChange:(0,i.pipe)((0,i.defaultTo)([]),(0,i.pluck)("value"),n),defaultOptions:!0,getOptions:e=>(x.current||(x.current=(0,m.kz_)({tenant:g,servicesPath:E})),x.current.then((0,i.pipe)((0,i.pluck)("username"),(e=>t=>e?t.filter((t=>m.P6Y.strings.search(t,e))):t)(e),O))),TextFieldProps:{InputProps:{disableUnderline:c},className:h.dropDownInput},components:{DropdownIndicator:d.Z},styles:y,classes:h,menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1}))}},20414:(e,t,n)=>{let a;n.d(t,{I:()=>a}),function(e){e.MODEL_UPDATED="MODEL_UPDATED",e.ENTITY_REMOVED="ENTITY_REMOVED",e.ENTITY_CREATED="ENTITY_CREATED",e.ENTITY_CHANGED="ENTITY_CHANGED",e.ENTITIES_MERGED="ENTITIES_MERGED",e.ENTITIES_SPLITTED="ENTITIES_SPLITTED",e.ENTITY_LOST_MERGE="ENTITY_LOST_MERGE",e.RELATIONSHIP_CREATED="RELATIONSHIP_CREATED",e.RELATIONSHIP_REMOVED="RELATIONSHIP_REMOVED",e.RELATIONSHIP_CHANGED="RELATIONSHIP_CHANGED",e.POTENTIAL_MATCHES_FOUND="POTENTIAL_MATCHES_FOUND",e.NOT_MATCHES_SET="NOT_MATCHES_SET",e.NOT_MATCHES_RESET="NOT_MATCHES_RESET",e.PERIODIC_TASK_SCHEDULED="PERIODIC_TASK_SCHEDULED",e.ENTITIES_MERGED_MANUALLY="ENTITIES_MERGED_MANUALLY",e.POTENTIAL_MATCHES_REMOVED="POTENTIAL_MATCHES_REMOVED",e.ENTITIES_MERGED_ON_THE_FLY="ENTITIES_MERGED_ON_THE_FLY",e.USER_LOGIN="USER_LOGIN",e.USER_LOGOUT="USER_LOGOUT",e.USER_SEARCH="USER_SEARCH",e.USER_PROFILE_VIEW="USER_PROFILE_VIEW",e.COMMENT_ADDED="COMMENT_ADDED",e.COMMENT_UPDATED="COMMENT_UPDATED",e.COMMENT_DELETED="COMMENT_DELETED",e.ANALYTICS_ATTRIBUTES_CHANGED="ANALYTICS_ATTRIBUTES_CHANGED",e.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE="SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE",e.GROUP_CREATED="GROUP_CREATED",e.GROUP_REMOVED="GROUP_REMOVED",e.GROUP_CHANGED="GROUP_CHANGED"}(a||(a={}))},57312:(e,t,n)=>{n.d(t,{te:()=>p,Io:()=>d,rx:()=>m,_V:()=>f,Xr:()=>h});var a=n(31421),r=n(50914),l=n(2507),o=n.n(l),i=n(20414);function c(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){s(e,t,n[t])}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=(0,r.path)(["data","type"]),p=e=>{const{items:t,label:n}=e,[a]=t||[];return u(a)||n},d=e=>{const{items:t=[],label:n}=e,a=e=>{return t=u(e)||n,(0,r.pipe)(r.values,(0,r.includes)(t))(i.I);var t},l=(0,r.filter)(a)(t);return t.length!==l.length&&console.error("Activities not implemented:",(0,r.reject)(a)(t)),c({},e,{items:l,itemsTotal:l.length})},m=e=>(0,r.pipe)((0,r.propOr)([],"items"),(0,r.groupBy)(u),r.values,(0,r.ifElse)((e=>{let{length:t}=e;return t>1}),(0,r.map)((t=>c({},e,{items:t,itemsTotal:t.length}))),(()=>[e])))(e),f=(e,t,n,l)=>{const o=(0,a.zeJ)(n,t),i=(0,a.PFL)(o),c=(0,a.mB6)({attributePresentations:l,dataTypeDefinition:i});return(0,r.isNil)(e)?"":"string"==typeof e?o?c(e):e:Object.entries(e).flatMap((e=>{let[r,o]=e;return o.map((e=>f(e.value,(0,a.tCm)(t,r),n,l)))})).join(", ")},h=e=>({[i.I.COMMENT_ADDED]:o().text("Comment added"),[i.I.COMMENT_DELETED]:o().text("Comment deleted"),[i.I.COMMENT_UPDATED]:o().text("Comment updated"),[i.I.ENTITIES_MERGED]:o().text("Profile merged"),[i.I.ENTITIES_MERGED_MANUALLY]:o().text("Profile merged manually"),[i.I.ENTITIES_MERGED_ON_THE_FLY]:o().text("Profile merged on the fly"),[i.I.ENTITIES_SPLITTED]:o().text("Profile un-merged"),[i.I.ENTITY_CHANGED]:o().text("Profile updated"),[i.I.ENTITY_CREATED]:o().text("Profile created"),[i.I.ENTITY_LOST_MERGE]:o().text("Profile lost merge"),[i.I.ENTITY_REMOVED]:o().text("Profile removed"),[i.I.GROUP_CHANGED]:o().text("Group updated"),[i.I.GROUP_CREATED]:o().text("Group created"),[i.I.GROUP_REMOVED]:o().text("Group removed"),[i.I.MODEL_UPDATED]:o().text("Model was updated"),[i.I.NOT_MATCHES_RESET]:o().text("Not matches reset"),[i.I.NOT_MATCHES_SET]:o().text("Not matches set"),[i.I.PERIODIC_TASK_SCHEDULED]:o().text("Periodic task was scheduled"),[i.I.POTENTIAL_MATCHES_FOUND]:o().text("Potential matches found"),[i.I.POTENTIAL_MATCHES_REMOVED]:o().text("Potential matches removed"),[i.I.RELATIONSHIP_CHANGED]:o().text("Relationship updated"),[i.I.RELATIONSHIP_CREATED]:o().text("Relationship created"),[i.I.RELATIONSHIP_REMOVED]:o().text("Relationship removed"),[i.I.USER_LOGIN]:o().text("Logged in"),[i.I.USER_LOGOUT]:o().text("Logged out"),[i.I.USER_PROFILE_VIEW]:o().text("Profile viewed"),[i.I.USER_SEARCH]:o().text("Searched"),[i.I.ANALYTICS_ATTRIBUTES_CHANGED]:o().text("Analytics attribute changed"),[i.I.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE]:o().text("SFDC connector synchronization issue")}[e]||"")},27446:(e,t,n)=>{n.d(t,{Z:()=>y});var a=n(24328),r=n.n(a),l=n(95038),o=n.n(l),i=n(2507),c=n.n(i),s=n(50914),u=n(31421),p=n(79573),d=n(53242),m=n(47019),f=n(59952),h=n(98192);const g=(0,n(72342).makeStyles)({root:{flex:1},dropdownIndicator:{transition:"transform .15s ease"},inputRoot:{fontSize:"14px",height:46},input:{padding:"0 12px 0"},dateOptionLabel:{minWidth:"100px"},paper:{minWidth:"112px"}}),E=o().localeData().longDateFormat("L"),y=e=>{let{values:t,onChange:n,onFocus:l=p.ZT}=e;const o=E,i=(0,a.useRef)(null),[y,b]=(0,a.useState)(!1),v=g(),O=(0,a.useCallback)((()=>{b((e=>!e)),l()}),[l]);return r().createElement("div",{className:v.root},r().createElement(d.Z,{fullWidth:!0,value:t.map((e=>((e,t)=>(0,s.isNil)(e)?`${t}`:`${(0,u.mB6)({dataTypeDefinition:{type:u.oS0.TYPE_ACTIVENESS_DATE}},e)}`)(e,o))).join(" — "),onClick:O,variant:"filled",ref:i,InputProps:{endAdornment:r().createElement(f.Z,{selectProps:{classes:v,menuIsOpen:y},innerProps:{}}),disableUnderline:(0,s.isNil)(t),readOnly:!0,classes:{root:v.inputRoot,input:v.input}},InputLabelProps:{shrink:!1},placeholder:c().text(`${o} — ${o}`)}),r().createElement(m.ZP,{open:y,anchorEl:i.current,onClose:()=>{b(!1)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2},r().createElement(h.Z,{values:t,onApply:e=>{n(e),b(!1)},type:u.oS0.TYPE_ACTIVENESS_DATE})))}},43129:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(24328),r=n.n(a),l=n(30750);const o=(0,n(72342).makeStyles)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),i=()=>{const e=o();return r().createElement(l.Z,{color:"primary",className:e.loader,"data-reltio-id":"dashboard-item-loader"})}},60355:(e,t,n)=>{n.d(t,{Z:()=>d});var a=n(24328),r=n.n(a),l=n(18960),o=n(95341),i=n(83993),c=n(82056),s=n(87037),u=n(50985);const p=(0,n(72342).makeStyles)((()=>({menuItemTitle:{fontSize:"13px",lineHeight:"15px"},openIcon:{padding:"4px",borderRadius:"2px",marginRight:"-10px"}}))),d=e=>{let{items:t}=e;const[n,d]=(0,a.useState)(null),m=Boolean(n),f=p(),h=()=>d(null),g=e=>()=>{h(),e()};return r().createElement(r().Fragment,null,r().createElement(s.Z,{className:f.openIcon,"aria-controls":"menu","aria-haspopup":"true",onClick:e=>d(e.currentTarget),size:"large"},r().createElement(u.Z,null)),r().createElement(l.Z,{id:"facet-menu",anchorEl:n,open:m,onClose:h,elevation:2,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},t.filter((e=>e.active)).map((e=>{let{id:t,icon:n,title:a,action:l,disabled:s=!1}=e;return r().createElement(o.Z,{key:t,onClick:g(l),disabled:s},r().createElement(i.Z,null,n),r().createElement(c.Z,{classes:{primary:f.menuItemTitle}},a))}))))}},65298:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(24328),r=n.n(a),l=n(82565),o=n(52388);const i=(0,n(72342).makeStyles)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden",boxShadow:"none"}}))),c=e=>{let{id:t,children:n}=e;const a=i();return r().createElement(o.H.Provider,{value:t},r().createElement(l.Z,{className:a.view,"data-reltio-id":`layout-item-${t}`},n))}},52388:(e,t,n)=>{n.d(t,{H:()=>r});var a=n(24328);const r=n.n(a)().createContext(null);r.displayName="DashboardViewIdContext"},3330:(e,t,n)=>{n.d(t,{Z:()=>xn});var a=n(24328),r=n.n(a),l=n(153),o=n(31421),i=n(52730),c=n(50914),s=n(2507),u=n.n(s),p=n(73093),d=n(62321),m=n(33945),f=n(59464),h=n(39034);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 E=e=>{let{options:t,offset:n,max:r}=e;const[l,i]=(0,a.useState)([]),[s,u]=(0,a.useState)(0),[p,d]=(0,a.useState)(h.o.INIT),m=e=>{console.error(e),d(h.o.ERROR),i([])},f=(0,a.useCallback)((()=>{d(h.o.LOADING);const e=e=>{i(e.result||[]),u(e.total),d(h.o.LOADED)},a=t||{},{countResults:l}=a,s=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(a,["countResults"]);(async()=>{const{result:t=[],total:a}=await(0,o.cZV)(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){g(e,t,n[t])}))}return e}({offset:n,max:r},s));if(l){const n=t.map((e=>(0,o.OaI)((0,o.dWE)(e.query)))),r=(await(0,o.RGr)(n)).reduce(((e,t,n)=>{let{status:a,value:r,reason:l}=t;switch(a){case"fulfilled":return(0,c.assocPath)([n,"count"],r.total,e);case"rejected":console.error(l)}return e}),t);e({result:r,total:a})}else e({result:t,total:a})})().catch(m)}),[t,r,n]),E=()=>{try{f()}catch(e){m(e)}};return(0,a.useEffect)((()=>{E()}),[f]),{state:p,data:l,reload:E,total:s}},y=[10,25,50,100],[b]=y,v=e=>y.filter((t=>t!==e)).concat(e).sort(c.subtract);var O=n(65298),x=n(52194),S=n(19926),w=n(25744),R=n(63436),T=n(67322),I=n(24648),P=n(52388),C=n(60355),M=n(72342);const D=(0,M.makeStyles)((()=>({rightMenu:{display:"flex",flexGrow:1,justifyContent:"flex-end",alignItems:"center",height:"100%",gap:"8px",marginLeft:4},updatedChip:{background:"#FF9E1B",height:20,fontSize:"10px",color:"white",marginLeft:4}}))),N=e=>{let{title:t,onToggleFullscreen:n,isUpdated:l=!1,isFullscreen:o,onRemove:i,onRefresh:c,children:s}=e;const p=(0,a.useContext)(P.H),d=(0,a.useMemo)((()=>[{id:"refresh",title:u().text("Refresh"),icon:r().createElement(I.Z,{fontSize:"small"}),active:!!c,action:()=>c()},{id:"fullscreen",title:u().text("Fullscreen"),icon:r().createElement(w.Z,{fontSize:"small"}),active:!o,action:()=>n(p)},{id:"exitFullscreen",title:u().text("Exit fullscreen"),icon:r().createElement(R.Z,{fontSize:"small"}),active:o,action:()=>n(p)},{id:"remove",title:u().text("Remove"),icon:r().createElement(T.Z,{fontSize:"small"}),active:!!i,action:()=>{i(p),o&&n(p)}}]),[p,o,i,n,c]),m=D();return r().createElement(x.Z,{title:t},l&&r().createElement(S.Z,{label:u().text("Updated"),size:"small",className:m.updatedChip}),r().createElement("div",{className:m.rightMenu},s,r().createElement(C.Z,{items:d})))};var _=n(71153),k=n.n(_),F=n(7882),A=n(82068),z=n(79312);function j(){return j=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},j.apply(this,arguments)}const L=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["styles"]);return r().createElement("svg",j({width:"148",height:"148",viewBox:"0 0 148 148",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r().createElement("mask",{id:"svg2791016623a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"148",height:"148"},r().createElement("path",{d:"M74 148c40.869 0 74-33.131 74-74 0-40.87-33.131-74-74-74C33.13 0 0 33.13 0 74c0 40.869 33.13 74 74 74z",fill:"#fff"})),r().createElement("g",{mask:"url(#svg2791016623a)"},r().createElement("path",{d:"M74 148c40.869 0 74-33.131 74-74 0-40.87-33.131-74-74-74C33.13 0 0 33.13 0 74c0 40.869 33.13 74 74 74z",fill:"#0072CE",fillOpacity:".1"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 5.203h148V148H0V5.203z",fill:"url(#nodata__paint0_linear)"}),r().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},r().createElement("path",{opacity:".5",d:"M25.186 26.016h131.896V128.04H25.186V26.016z",fillOpacity:".8"}),r().createElement("path",{opacity:".9",d:"M16.766 26.021a4.626 4.626 0 014.623-4.63h129.406a4.623 4.623 0 014.623 4.63v88.107a4.625 4.625 0 01-4.623 4.631H21.389a4.623 4.623 0 01-4.623-4.631V26.021z"})),r().createElement("path",{opacity:".5",d:"M141.553 50.95a2.315 2.315 0 002.311-2.32 2.315 2.315 0 00-2.311-2.318 2.315 2.315 0 00-2.311 2.319 2.315 2.315 0 002.311 2.318zM133.465 50.95a2.315 2.315 0 002.311-2.32 2.315 2.315 0 00-2.311-2.318 2.314 2.314 0 00-2.311 2.319 2.314 2.314 0 002.311 2.318z",fill:"#6DBCFF"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.808 46.313a5.488 5.488 0 015.489 5.488v.035a5.488 5.488 0 01-10.977 0v-.035a5.488 5.488 0 015.488-5.489z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 46.19h37.054a2.029 2.029 0 010 4.057H47.102a2.028 2.028 0 110-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 53.725h67.006a1.45 1.45 0 010 2.898H46.523a1.449 1.449 0 110-2.898z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 58.941h21.62a.87.87 0 010 1.74h-21.62a.87.87 0 110-1.74z",fill:"#B1AABD"}),r().createElement("path",{opacity:".5",d:"M71.35 30.664H31.508a3.188 3.188 0 100 6.375H71.35a3.188 3.188 0 000-6.375z",fill:"#645F6D"}),r().createElement("path",{opacity:".5",d:"M141.553 72.972a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.318 2.315 2.315 0 00-2.311 2.318 2.315 2.315 0 002.311 2.319zM133.465 72.972a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.318 2.314 2.314 0 00-2.311 2.318 2.314 2.314 0 002.311 2.319z",fill:"#6DBCFF"}),r().createElement("path",{d:"M39.297 73.824a5.488 5.488 0 10-10.977 0v.035a5.488 5.488 0 0010.977 0v-.035z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 68.214h43.894a2.029 2.029 0 010 4.057H47.102a2.029 2.029 0 010-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 75.748h74.516a1.45 1.45 0 010 2.898H46.523a1.449 1.449 0 110-2.898z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 80.965h60.077a.87.87 0 010 1.739H45.943a.87.87 0 010-1.74z",fill:"#B1AABD"}),r().createElement("path",{opacity:".5",d:"M141.553 94.996a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.319 2.315 2.315 0 00-2.311 2.319 2.315 2.315 0 002.311 2.318zM133.465 94.996a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.319 2.314 2.314 0 00-2.311 2.319 2.314 2.314 0 002.311 2.318z",fill:"#6DBCFF"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.808 90.36a5.488 5.488 0 015.489 5.488v.035a5.488 5.488 0 11-10.977 0v-.035a5.488 5.488 0 015.488-5.489z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 90.237h58.915a2.028 2.028 0 010 4.057H47.102a2.029 2.029 0 010-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 97.772h49.096a1.449 1.449 0 110 2.897H46.524a1.448 1.448 0 110-2.897z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 102.988h21.62a.87.87 0 010 1.739h-21.62a.87.87 0 110-1.739z",fill:"#B1AABD"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M102.927 64.75l44.536 77.139-58.989 34.057-44.536-77.14.405-.234c4.06 9.263 12.074 16.712 22.462 19.616 18.103 5.059 36.562-5.599 41.232-23.805 2.679-10.449.235-21.113-5.757-29.26l.647-.374z",fill:"url(#nodata__paint1_linear)"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M56.352 103.62c10.385 10.611 27.223 10.611 37.609 0 10.385-10.612 10.385-27.816 0-38.427-10.386-10.611-27.224-10.611-37.61 0-10.385 10.611-10.385 27.815 0 38.427z",fill:"url(#nodata__paint2_linear)"}),r().createElement("g",{filter:"url(#nodata__filter0_d)",fillRule:"evenodd",clipRule:"evenodd"},r().createElement("path",{d:"M74.981 49.719c19.06 0 34.512 15.462 34.512 34.536a34.418 34.418 0 01-8.665 22.886l29.603 29.623a51.708 51.708 0 01-5.837 5.43l-29.705-29.725a34.338 34.338 0 01-19.908 6.322c-19.06 0-34.512-15.462-34.512-34.536S55.92 49.719 74.98 49.719zm0 10.265c-13.395 0-24.254 10.866-24.254 24.27 0 13.405 10.859 24.272 24.254 24.272 13.395 0 24.254-10.867 24.254-24.271S88.376 59.984 74.981 59.984z",fill:"#B5C8C9"}),r().createElement("path",{d:"M52.903 110.801c-7.598-6.335-12.434-15.876-12.434-26.546 0-19.074 15.451-34.536 34.512-34.536 10.663 0 20.197 4.839 26.528 12.442l-5.662 5.667c-4.862-6.175-12.401-10.14-20.866-10.14-14.662 0-26.548 11.895-26.548 26.567 0 8.47 3.962 16.015 10.132 20.88l-5.662 5.666z",fill:"#fff",fillOpacity:".4"})),r().createElement("g",{style:{mixBlendMode:"soft-light"},opacity:".4"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.352 103.62c10.385 10.611 27.223 10.611 37.609 0 10.385-10.612 10.385-27.816 0-38.427-10.386-10.611-27.224-10.611-37.61 0-10.385 10.611-10.385 27.815 0 38.427z",fill:"#D9F5FF"})),r().createElement("g",{style:{mixBlendMode:"overlay"}},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.621 91.769c0-2.272.257-4.065.77-5.38.513-1.314 1.346-2.453 2.497-3.418 1.151-.964 2.026-1.847 2.625-2.648.6-.802.899-1.684.899-2.649 0-2.35-1.012-3.524-3.034-3.524-.933 0-1.688.343-2.263 1.027-.576.685-.88 1.61-.91 2.777h-7.888c.031-3.111 1.011-5.534 2.94-7.27 1.93-1.734 4.636-2.601 8.121-2.601 3.47 0 6.157.801 8.063 2.404 1.905 1.602 2.858 3.881 2.858 6.837 0 1.291-.257 2.466-.77 3.524-.513 1.058-1.338 2.139-2.474 3.243l-2.683 2.497c-.762.732-1.291 1.482-1.587 2.252-.295.77-.459 1.746-.49 2.929h-6.674zm-.957 7.094c0-1.151.416-2.096 1.249-2.835.832-.74 1.87-1.109 3.115-1.109s2.283.37 3.115 1.109c.833.739 1.249 1.684 1.249 2.835s-.416 2.096-1.249 2.835c-.832.739-1.87 1.109-3.115 1.109s-2.283-.37-3.115-1.109c-.833-.739-1.249-1.684-1.249-2.835z",fill:"#000",fillOpacity:".87"})),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.621 91.769c0-2.272.257-4.065.77-5.38.513-1.314 1.346-2.453 2.497-3.418 1.151-.964 2.026-1.847 2.625-2.648.6-.802.899-1.684.899-2.649 0-2.35-1.012-3.524-3.034-3.524-.933 0-1.688.343-2.263 1.027-.576.685-.88 1.61-.91 2.777h-7.888c.031-3.111 1.011-5.534 2.94-7.27 1.93-1.734 4.636-2.601 8.121-2.601 3.47 0 6.157.801 8.063 2.404 1.905 1.602 2.858 3.881 2.858 6.837 0 1.291-.257 2.466-.77 3.524-.513 1.058-1.338 2.139-2.474 3.243l-2.683 2.497c-.762.732-1.291 1.482-1.587 2.252-.295.77-.459 1.746-.49 2.929h-6.674zm-.957 7.094c0-1.151.416-2.096 1.249-2.835.832-.74 1.87-1.109 3.115-1.109s2.283.37 3.115 1.109c.833.739 1.249 1.684 1.249 2.835s-.416 2.096-1.249 2.835c-.832.739-1.87 1.109-3.115 1.109s-2.283-.37-3.115-1.109c-.833-.739-1.249-1.684-1.249-2.835z",fill:"#3C74B4",fillOpacity:".38"})),r().createElement("defs",null,r().createElement("linearGradient",{id:"nodata__paint0_linear",x1:"74",y1:"5.203",x2:"74",y2:"148",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:"0"}),r().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"nodata__paint1_linear",x1:"123.612",y1:"142.028",x2:"76.729",y2:"122.717",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:"0"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"nodata__paint2_linear",x1:"75.156",y1:"57.234",x2:"75.156",y2:"111.578",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#EEFBFF"}),r().createElement("stop",{offset:"1",stopColor:"#0072CE"})),r().createElement("filter",{id:"nodata__filter0_d",x:"36.469",y:"47.719",width:"97.962",height:"100.475",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"}))))},Z=(0,M.makeStyles)((()=>({noDataContainer:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)"},icon:{height:"88px",width:"88px",marginBottom:"20px"}}))),H=()=>{const e=Z();return r().createElement("div",{className:e.noDataContainer},r().createElement(L,{className:e.icon}),r().createElement(z.Z,null,u().text("No Data")))};var U=n(38677);function B(){return B=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},B.apply(this,arguments)}const V=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["styles"]);return r().createElement("svg",B({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r().createElement("mask",{id:"svg3217593551a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),r().createElement("g",{mask:"url(#svg3217593551a)"},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:".3"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),r().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),r().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),r().createElement("path",{opacity:".5",d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".3",d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".8",d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),r().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".2",d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),r().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),r().createElement("g",{filter:"url(#error__filter0_d)"},r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),r().createElement("path",{opacity:".15",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),r().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#error__paint0_linear)"}),r().createElement("g",{filter:"url(#error__filter1_d)"},r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),r().createElement("g",{filter:"url(#error__filter2_d)"},r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),r().createElement("defs",null,r().createElement("filter",{id:"error__filter0_d",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"error__filter1_d",x:"51.688",y:"62.625",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"error__filter2_d",x:"51.688",y:"44.063",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("linearGradient",{id:"error__paint0_linear",x1:"68.438",y1:"71.571",x2:"60.119",y2:"58.801",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:"0"}),r().createElement("stop",{offset:"1"}))))},G=(0,M.makeStyles)((e=>({errorContainer:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)"},errorIcon:{height:"88px",width:"88px",marginBottom:"20px",paddingTop:"36px"},refreshButton:{color:e.palette.primary.main,marginTop:"10px"},refreshIcon:{width:"24px",height:"24px"}}))),W=e=>{let{onRefresh:t,message:n}=e;const a=G();return r().createElement("div",{className:a.errorContainer},r().createElement(V,{className:a.errorIcon}),r().createElement(z.Z,null,n),t&&r().createElement(U.Z,{className:a.refreshButton,startIcon:r().createElement(I.Z,{color:"primary",className:a.refreshIcon}),onClick:t},r().createElement(z.Z,{variant:"button"},u().text("Refresh"))))};var Y=n(43129),$=n(44443);const q=(0,M.makeStyles)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 16px"},toolbarRoot:{padding:"16px",minHeight:"18px",lineHeight:"18px",marginBottom:"8px","&:hover .viewDraggableHandle":{visibility:"visible"}},title:{fontSize:"16px",lineHeight:"19px",fontWeight:"normal",color:"rgba(0, 0, 0, 0.87)",letterSpacing:"0.15px"},dragIcon:{position:"absolute",left:"50%",top:"-3px",transform:"translateX(-50%) rotate(90deg)",color:"rgba(0, 0, 0, 0.3)",cursor:"move",zIndex:8,visibility:"hidden"}}))),K=e=>{let{loadingState:t,onRefresh:n,children:a,data:l,className:o,EmptyPlaceholder:i}=e;const c=q();return r().createElement(A.Z,{className:k()(c.viewContent,o),"data-reltio-id":"layout-item-content"},r().createElement($.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:o=0,height:c=0}=e;switch(t){case h.o.LOADED:return l&&0!==l.length?r().createElement(F.Z,{error:r().createElement(W,{message:u().text("Something went wrong")})},a({data:l,width:o,height:c})):i||r().createElement(H,null);case h.o.LOADING:return r().createElement(Y.Z,null);case h.o.ERROR:return r().createElement(W,{message:u().text("Error Loading Data"),onRefresh:n});default:return r().createElement("div",null)}})))};function X(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){Q(e,t,n[t])}))}return e}function Q(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=>{let{uiState:t,uri:n}=e;return"2.0"===t.version?X({},t,{currentSavedSearchUri:n}):X({},t.state,{curSavedSearchUri:n})},ee=(0,M.makeStyles)((()=>({activityLogFilter:{padding:"0 8px 0px 16px",borderBottom:"1px solid rgba(0,0,0,0.12)"},categorySelector:{whiteSpace:"nowrap",textTransform:"none",fontWeight:"normal"},inboxContent:{padding:0,borderTop:"1px solid rgba(0,0,0,0.12)"},content:{padding:0}}))),te=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:s}=e;const{id:h,title:g,options:y,max:x=b}=t,S=ee(),[w,R]=(0,a.useState)(0),[T,I]=(0,a.useState)(x),{data:P,state:C,reload:M,total:D}=E({options:y,max:T,offset:T*w}),_=(0,a.useMemo)((()=>(e=>e.map((e=>{let{uri:t,name:n,count:a}=e;return{value:a||0,label:n||"",group:t}})))(P)),[P]),k=(0,a.useMemo)((()=>v(x)),[x]),F=(0,i.useDispatch)(),A=(0,a.useCallback)((e=>{(0,c.pipe)((0,c.find)((0,c.propEq)("uri",e)),J,f.ui.actions.openSearch,F)(P)}),[F,P]);return(0,p.T)({state:C,reload:M}),r().createElement(O.Z,{id:h},r().createElement(N,{title:g,onToggleFullscreen:n,isFullscreen:o,isUpdated:l,onRefresh:M,onRemove:s}),r().createElement(K,{loadingState:C,onRefresh:M,data:_,className:S.content},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(d.Z,{width:n,height:a,data:t,options:{headers:[u().text("Name")],showValues:null==y?void 0:y.countResults},onItemClick:A})})),!!D&&r().createElement(m.Z,{page:w,count:D,rowsPerPage:T,onChangePage:R,onChangeRowsPerPage:I,rowsPerPageOptions:k}))}));var ne=n(45990),ae=n(12960);const re=(0,c.when)((0,c.pipe)((0,c.prop)("filter"),(0,c.includes)(c.__,[o.j5E.IN_RANGE,o.j5E.HAS_ALL])),(0,c.evolve)({values:o.FTe})),le=(0,c.curry)(((e,t)=>({filter:o.j5E.NOT_EQUALS,values:[t],fieldName:e}))),oe=e=>{var t,n,a;return{filter:null!==(t=null==e?void 0:e.filter)&&void 0!==t?t:o.j5E.EQUALS,values:null!==(n=null==e?void 0:e.values)&&void 0!==n?n:[],fieldName:null!==(a=null==e?void 0:e.fieldName)&&void 0!==a?a:""}},ie=e=>({filter:o.j5E.EQUALS,fieldName:"type",values:[e]}),ce=(0,c.curry)(((e,t)=>({filter:o.j5E.EQUALS,values:[t],fieldName:e}))),se=(0,c.curry)(((e,t,n)=>{const{fieldName:a}=n,r=(0,o.Yxg)(a)||(0,o.zeJ)(e,(0,o.h2W)(a,t));return r?(0,c.pipe)(re,(0,c.when)((()=>(0,o.EdS)(r.uri)),(0,c.assoc)("entityType",t)),(0,c.when)((()=>(0,o.Lt4)(r.type)),(0,c.evolve)({values:(0,c.map)((0,o.mOr)(o.ZBU))})))(n):null})),ue=e=>{let{filter:t,fieldName:n}=e;return t===o.j5E.EQUALS&&"type"===n},pe=(e,t)=>{let{filter:n,fieldName:a,values:r}=e;return n===o.j5E.EQUALS&&"type"===a&&(null==r?void 0:r[0])===t};function de(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){me(e,t,n[t])}))}return e}function me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fe=e=>{let{attribute:t,filters:n,globalFilter:a,searchByOv:r,activityFilter:l,pageSize:i,orderType:s}=e;const u=((e,t,n,a)=>{const r=(0,c.pipe)((0,c.map)(re),(0,o.Uqd)(),(0,o.vyX)(t))(e),l=r?[`filter=${r}`]:[];return n&&l.push("options=searchByOv"),a&&l.push(`activeness=${a}`),l.join("&")})(n,a,r,l),p=[{fieldName:t,pageNo:1,orderType:s,pageSize:i}];return(0,o.FK9)({query:u,body:p}).then((e=>(0,c.pipe)((0,c.prop)(t),(0,c.defaultTo)({}),Object.entries,(0,c.map)((e=>{let[t,n]=e;return{label:t,group:t,value:n}})),(0,c.sortWith)([(0,c.descend)((0,c.prop)("value")),(0,c.ascend)((0,c.prop)("label"))]))(e)))},he=(0,c.curry)(((e,t)=>{const n=t.map((t=>{let{label:n}=t;return{codeValue:n,type:e}}));return(0,o.hK$)(n).then((n=>{const a=n.flatMap((0,o.Z2f)(e));return t.map((e=>{const t=a.find((t=>{let{lookupCode:n}=t;return n===e.label}));return t?de({},e,{label:t.value}):e}))}))})),ge=(0,c.curry)(((e,t)=>t.map((0,c.pipe)((0,c.prop)("group"),le(e))))),Ee="Other",ye=(0,c.curry)(((e,t)=>{let{attribute:n,filters:a,globalFilter:r,searchByOv:l,activityFilter:i}=e;const s=(0,c.pipe)(ge(n),(0,c.concat)(a),(0,c.map)(re))(t),p=l&&"searchByOv";return(0,o.j_Q)(s,{globalFilter:r,activityFilter:i,searchOptions:p}).then((e=>{let{total:n}=e;return n>0?t.concat([{label:u().text("Other"),group:Ee,value:n}]):t}))})),be=(e,t)=>(0,o.xqc)(e,"configuration/roles/"+t),ve=(0,c.map)((e=>de({},e,{localizedValue:u().number(e.value)}))),Oe=(0,c.when)(o.EdS,o.Tde),xe=(0,c.ifElse)(o.EdS,o.Uk3,(0,c.always)(void 0)),Se=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=xe(e),a=t.some((e=>pe(e,n)));return n&&!a?[ie(n),...t]:t},we=(0,c.curry)(((e,t,n)=>{const a=Oe(e);return n===Ee?(0,c.pipe)((0,c.reject)((0,c.propEq)("group",Ee)),ge(a))(t):[ce(a,n)]})),Re=(0,c.curry)(((e,t,n)=>{var a,r;const l=xe(t)||(null===(a=n.find(ue))||void 0===a||null===(r=a.values)||void 0===r?void 0:r[0]);return{facets:n.map(se(e,l)).filter(c.identity)}}));const Te=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:s,onRemove:u}=e;const{id:d,title:m,filters:g,attributeUri:E,count:y,orderType:b,chartType:v,showOthers:x}=t,S=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,["id","title","filters","attributeUri","count","orderType","chartType","showOthers"]),w=v===o.$XE.MAP?100:8,{data:R,state:T,reload:I}=(e=>{let{filters:t,attributeUri:n,pageSize:r,orderType:l="reversedCount",options:s}=e;const[u,p]=(0,a.useState)([]),[d,m]=(0,a.useState)(h.o.INIT),g=(0,a.useContext)(ne.I),E=(0,a.useMemo)((()=>g.map(oe).concat(t||[])),[g,t]),y=(0,i.useSelector)(f.ZP.selectors.getMetadata),{globalFilter:b,activityFilter:v}=(0,i.useSelector)(f.ZP.selectors.getGlobalSearchRequestOptions),O=(0,i.useSelector)(f.ZP.selectors.getAttributePresentations),x=!(null==O||!O[n]),S=(0,i.useSelector)(f.ZP.selectors.getShowSearchByOv),w=null==s?void 0:s.showOthers,R=e=>{console.error(e),m(h.o.ERROR),p([])},T=(0,a.useCallback)((()=>{m(h.o.LOADING);const e=Se(n,E),t=Oe(n),a=(0,o.Yxg)(t)||(0,o.zeJ)(y,n);if(!a)return void R("Configuration is incorrect");const i=(0,c.pipe)(fe,(0,c.andThen)(((e,t)=>(0,c.pipe)((0,c.when)((()=>(0,o.CwH)(t)),he((0,o.To9)(t))),(0,c.when)((()=>(0,o.ian)(t)),(0,c.map)((t=>de({},t,{label:be(e,t.group)})))),(0,c.when)((()=>(0,o.Lt4)(t.type)),(0,c.map)((0,c.evolve)({label:(0,c.pipe)(o.ZBU,(0,o.mB6)({dataTypeDefinition:(0,o.PFL)(t)}))})))))(y,a)),(0,c.andThen)((0,c.unless)((0,c.always)(x),ve)),(0,c.andThen)((0,c.when)((0,c.always)(w),ye({attribute:t,filters:e,globalFilter:b,searchByOv:S,activityFilter:v}))),(0,c.andThen)((e=>{m(h.o.LOADED),p(e)})),(0,c.otherwise)(R));i({attribute:t,filters:e,globalFilter:b,searchByOv:S,activityFilter:v,pageSize:r,orderType:l})}),[m,n,y,w,E,b,S,v,r,l,x]),I=()=>{try{T()}catch(e){R(e)}};return(0,a.useEffect)((()=>{I()}),[T]),{state:d,data:u,reload:I}})({filters:g,attributeUri:E,pageSize:y||w,orderType:b,options:{showOthers:x}});(0,p.T)({state:T,reload:I});const P=(0,i.useDispatch)(),C=(0,i.useSelector)(f.ZP.selectors.getMetadata),M=(0,a.useContext)(ne.I),D=(0,a.useMemo)((()=>M.map(oe).concat(g||[])),[M,g]),_=(0,c.pipe)(we(E,R),(0,c.concat)(Se(E,D)),Re(C,E),f.ui.actions.openSearch,P);return r().createElement(O.Z,{id:d},r().createElement(N,{title:m,onToggleFullscreen:n,isUpdated:l,isFullscreen:s,onRefresh:I,onRemove:u}),r().createElement(K,{loadingState:T,onRefresh:I,data:R},(e=>{let{data:t,width:n=0,height:a=0}=e;return ae.Z.build(v,{data:t,width:Math.max(n,80),height:a,options:S,onItemClick:_})})))}));var Ie=n(45108),Pe=n(92332),Ce=n(40007);const Me={content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"},De=(0,M.makeStyles)((e=>({headCell:{display:"flex",alignItems:"center",height:"100%","&>div":{padding:"0 16px"}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden","&:after":Me},entityLabel:{color:e.palette.primary.main,textDecoration:"none",fontSize:"13px",fontWeight:500,lineHeight:"15px",whiteSpace:"nowrap",overflow:"hidden",display:"flex",alignItems:"center",height:"100%",padding:"0 16px","&:after":Me}})));function Ne(){return Ne=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},Ne.apply(this,arguments)}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){ke(e,t,n[t])}))}return e}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fe=e=>{let{className:t,headCellData:n}=e,a=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["className","headCellData"]);const l=De();return r().createElement("div",{className:k()(l.headCell,t)},r().createElement(Pe.default,Ne({},a,{headCellData:_e({},n,{label:r().createElement(Ce.Z,{value:n.label},r().createElement("div",{className:l.headLabel},n.label))})})))};var Ae=n(18527);const ze=e=>{let{value:t,rowValue:n}=e;const a=De(),l=(0,o.idV)(t);return r().createElement(Ce.Z,{value:l},r().createElement(Ae.Z,{value:(0,o.wwR)(n),className:a.entityLabel},l))},je=(0,M.makeStyles)({tableContainer:e=>{let{width:t,height:n}=e;return{height:n,width:t,display:"flex",flexDirection:"column"}},cellBorder:{borderLeft:"none",borderRight:"none"}}),Le=e=>{let{height:t,width:n,basicTableRef:a,data:l}=e;const o=je({width:n,height:t}),i=[{id:"label",label:u().text("Entity"),resizable:!1,headCellRenderer:Fe,rowCellValueRenderer:ze,initialWidth:n}],c={cellBorder:o.cellBorder};return r().createElement("div",{className:o.tableContainer},r().createElement(Ie.Z,{columnsData:i,rowsData:l,headRowHeight:48,getRowCellHeight:null,classes:c,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:a}))},Ze=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRemove:c}=e;const s=ee(),{id:u,title:d,filters:f,max:g=b}=t,E=(0,a.useMemo)((()=>v(g)),[g]),[y,x]=(0,a.useState)(g),[S,w]=(0,a.useState)(0),{data:R,state:T,reload:I,total:P}=(e=>{let{filters:t,max:n,offset:r}=e;const[l,i]=(0,a.useState)([]),[c,s]=(0,a.useState)(0),[u,p]=(0,a.useState)(h.o.INIT),d=(0,a.useContext)(ne.I),m=(0,a.useMemo)((()=>d.map(oe).concat(t||[])),[d,t]),f=e=>{console.error(e),p(h.o.ERROR)},g=(0,a.useCallback)((()=>{p(h.o.LOADING),Promise.all([(0,o.ZOr)(m,{max:n,offset:r}),(0,o.j_Q)(m,{max:n,offset:r})]).then((e=>{const[t,{total:n}]=e;i(t||[]),s(n),p(h.o.LOADED)})).catch(f)}),[m,n,r]),E=()=>{try{g()}catch(e){f(e)}};return(0,a.useEffect)((()=>{E()}),[g]),{state:u,data:l,reload:E,total:c}})({filters:f,max:y,offset:y*S});return(0,p.T)({state:T,reload:I}),r().createElement(O.Z,{id:u},r().createElement(N,{title:d,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRefresh:I,onRemove:c}),r().createElement(K,{loadingState:T,onRefresh:I,data:R,className:s.content},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(Le,{height:a,width:n,data:t})})),!!P&&r().createElement(m.Z,{page:S,count:P,rowsPerPage:y,onChangePage:w,onChangeRowsPerPage:x,rowsPerPageOptions:E}))}));var He=n(65643),Ue=n(78291);const Be=(0,M.makeStyles)({button:{whiteSpace:"nowrap",textTransform:"none",fontWeight:"normal"}}),Ve=(0,a.forwardRef)(((e,t)=>{let{editorLabel:n,onMenuToggle:a}=e;const l=Be();return r().createElement(U.Z,{ref:t,onClick:a,size:"small",className:l.button,endIcon:r().createElement(He.Z,null)},n)}));Ve.displayName="DashboardDateRangeSelector";const Ge=(0,Ue.Z)(Ve);var We=n(14806);var Ye=n(95038),$e=n.n(Ye);let qe;!function(e){e.HOUR="hour",e.DAY="day"}(qe||(qe={}));const Ke=(0,c.pipe)((e=>(0,o.RHh)(e,Xe)),(e=>{let[t,n]=e;return n-t>+$e().duration(1,"day")?qe.DAY:qe.HOUR})),Xe=e=>{const t=$e()();return e===o.bZE.LAST_WEEK?[$e()(t).subtract(6,"days").valueOf(),t.valueOf()]:(0,o.VQ1)(e)},Qe=(0,c.pipe)(Xe,(0,c.defaultTo)([]),(0,c.map)((e=>e&&new Date(e)))),Je=[{id:"created",types:["CREATED"],get label(){return u().text("New")},color:"#4BAFFF"},{id:"updated",types:["UPDATED"],get label(){return u().text("Updated")},color:"#0072CE"},{id:"deleted",types:["DELETED"],get label(){return u().text("Deleted")},color:"#F085F2"},{id:"matched",types:["POTENTIAL_MATCHES_FOUND"],get label(){return u().text("Matched")},color:"#C4CE00"},{id:"autoMerged",types:["MERGED","MERGED_ON_THE_FLY"],get label(){return u().text("Auto-merged")},color:"#CE5C00"},{id:"mergedManually",types:["MERGED_MANUALLY"],get label(){return u().text("Manually merged")},color:"#9E7ED3"},{id:"unmerged",types:["SPLITTED"],get label(){return u().text("Unmerged")},color:"#40CFBB"},{id:"notMatch",types:["NOT_MATCHES_SET"],get label(){return u().text("Not a match")},color:"#F97061"}],et=e=>Je.find((0,c.propEq)("id",e)),tt=(0,c.pipe)(et,(0,c.propOr)("","label")),nt=(0,c.pipe)(et,(0,c.prop)("color")),at=e=>{const[t,n]=(0,o.RHh)(e,Xe),a=e=>{let{facet:a,types:r}=e;return(0,o.NIY)({facet:a,startTime:t,endTime:n,types:r}).then((e=>{let{facets:t={},total:n=0}=e;return{total:n,data:t[a]}}))};return(()=>{const e=(0,c.chain)((0,c.prop)("types"),Je),t=(0,c.pipe)((0,c.propOr)([],"data"),(0,c.pluck)("term"));return a({facet:"type",types:e}).then((e=>t(e)))})().then((e=>e.length>0?(e=>{const r=(0,c.pipe)((0,c.map)((0,c.evolve)({term:e=>$e().utc(e).valueOf()})),(0,c.prepend)({term:t,count:0}),(0,c.append)({term:n,count:0}));return Promise.all(Je.map((t=>{let{types:n,id:l}=t;return((t=>t.some((t=>e.includes(t))))(n)?a({facet:"hour",types:n}):Promise.resolve({total:0,data:[]})).then((e=>{let{total:t,data:n}=e;return{total:t,data:r(n),event:l}}))})))})(e):[]))},rt=(0,c.curry)(((e,t)=>(0,c.pipe)((0,c.groupBy)((t=>{let{term:n}=t;return $e()(n).startOf(e)})),c.toPairs,(0,c.map)((e=>{let[t,n]=e;return{term:$e()(t).valueOf(),count:(0,c.sum)((0,c.pluck)("count",n))}})))(t))),lt=(0,c.curry)(((e,t)=>{const[n,...a]=t;return a.reduce(((t,n)=>{const a=(0,c.last)(t).term;let r=$e()(a).add(1,e).valueOf();const l=[];for(;r<n.term;)l.push({term:r,count:0}),r=$e()(r).add(1,e).valueOf();return t.concat(l,n)}),[n])})),ot=(0,c.curry)(((e,t)=>t.map((0,c.evolve)({data:(0,c.pipe)(rt(e),lt(e))})))),it=(0,c.cond)([[(0,c.equals)(qe.HOUR),(0,c.always)("LT")],[(0,c.equals)(qe.DAY),(0,c.always)("MMM D")]]),ct=e=>{let{x:t,y:n,payload:a,step:l}=e;return r().createElement("g",{transform:`translate(${t},${n})`},r().createElement("text",{x:0,y:0,dy:16,textAnchor:"middle",fill:"#666"},u().date(null==a?void 0:a.value,it(l))))},st=(0,M.makeStyles)({tooltipWrapper:{borderRadius:"4px",background:"rgba(0, 0, 0, 0.54)",padding:"6px 8px 7px 8px",color:"#FFFFFF","& p":{fontSize:"12px",lineHeight:"18px",padding:0,margin:0}},tooltipTitle:{fontWeight:500},tooltipItemColor:{width:8,height:8,marginRight:10,display:"inline-block"},legend:{display:"flex",flexWrap:"wrap",marginLeft:"20px",marginTop:"10px"},legendItem:{display:"flex",alignItems:"baseline","&:not(:last-child)":{marginRight:10},width:"140px",marginBottom:"5px",fontSize:"13px",color:"rgba(0, 0, 0, 0.54)"},legendItemColor:{width:12,height:12,marginRight:10,flexShrink:0,boxSizing:"border-box"},legendItemValue:{color:"rgba(0, 0, 0, 0.87)",marginLeft:"10px"}}),ut=(0,c.cond)([[(0,c.equals)(qe.HOUR),(0,c.always)("LT MMM D")],[(0,c.equals)(qe.DAY),(0,c.always)("ll")]]),pt=e=>{let{active:t,payload:n,label:a,step:l,events:o}=e;const i=st();return t&&r().createElement("div",{className:i.tooltipWrapper},r().createElement("p",{className:i.tooltipTitle},u().date(a,ut(l))),n.filter((e=>{let{name:t}=e;return o.includes(t)})).map((e=>{let{color:t,name:n,value:a}=e;return r().createElement("p",{key:n},r().createElement("span",{style:{background:t},className:i.tooltipItemColor}),`${tt(n)}: ${a}`)})))};var dt=n(23883);const mt=e=>{let{payload:t,selectedItems:n,onClick:a}=e;const l=st();return r().createElement("div",{className:l.legend},t.map((e=>{let{id:t,color:o,value:i}=e;const c=n.includes(t);return r().createElement("div",{key:t,className:l.legendItem},r().createElement(dt.Z,{title:c?u().text("Hide"):u().text("Show")},r().createElement("div",{style:c?{background:o}:{border:`${o} 1px solid`},className:l.legendItemColor,onClick:()=>a(t)})),tt(t),r().createElement("span",{className:l.legendItemValue},i))})))};function ft(){return ft=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},ft.apply(this,arguments)}const ht=e=>{let{data:t,width:n,height:l,step:i}=e;const[s,u]=(0,a.useState)((0,c.pluck)("event",t)),[p,d]=(0,a.useState)(null),{cartesianGrid:m,tooltip:f,xAxis:h,yAxis:g,line:E,legend:y}={xAxis:{type:"category",dataKey:"term",tick:{fill:"#000",opacity:"0.54"},angle:0,textAnchor:"middle",stroke:"#666",allowDuplicatedCategory:!1},yAxis:{dataKey:"",type:"number",tick:{fill:"#000",opacity:"0.54",width:void 0},stroke:"#666",tickFormatter:o.k7L,width:50},cartesianGrid:{strokeDasharray:"3 3",stroke:"#666",strokeOpacity:"0.4"},tooltip:{cursor:{fill:"#000",opacity:"0.1"}},line:{type:"linear",dataKey:"count",strokeWidth:3},legend:{wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"25%"}}},b=(0,a.useMemo)((()=>ot(i,t)),[i,t]),v=(0,a.useMemo)((()=>((e,t)=>{const n=(0,c.chain)((0,c.pipe)((0,c.prop)("data"),(0,c.pluck)("count")))(e),a=Math.min(...n),r=Math.max(...n);return Math.abs(r-a)<8?[0,7]:[0,"auto"]})(b)),[b]);return r().createElement(We.wW,{width:n,height:l},r().createElement(We.q3,m),r().createElement(We.Kc,ft({},h,{tick:r().createElement(ct,{step:i})})),r().createElement(We.B2,ft({},g,{tickCount:8,domain:v})),b.map((e=>{let{event:t,data:n}=e;const a=s.includes(t);return r().createElement(We.x1,ft({key:t,stroke:nt(t),name:t,data:n,dot:a&&{r:5,strokeWidth:2},activeDot:a&&{r:5,strokeWidth:2,onMouseEnter:()=>d(t),onMouseLeave:()=>d(null)},strokeOpacity:a?1:0},E))})),r().createElement(We.De,ft({content:r().createElement(mt,{selectedItems:s,onClick:e=>{u((0,c.ifElse)((0,c.includes)(e),(0,c.without)([e]),(0,c.append)(e)))}}),payload:b.map((e=>{let{event:t,total:n}=e;return{id:t,type:"square",color:nt(t),value:n}}))},y)),r().createElement(We.u,ft({},f,{content:r().createElement(pt,{step:i,events:p?[p]:s})})))};var gt=n(19701);const Et=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRemove:s}=e;const{id:u,title:d}=t,[m,f]=(0,a.useState)(o.bZE.LAST_WEEK),{state:g,data:E,step:y,reload:b}=(e=>{const[t,n]=(0,a.useState)([]),[r,l]=(0,a.useState)(Ke(e)),[o,i]=(0,a.useState)(h.o.INIT),s=(0,gt._)(),u=e=>{console.error(e),i(h.o.ERROR),n([])},p=(0,a.useCallback)((()=>{i(h.o.LOADING),l(Ke(e)),n([]);const t=(0,c.pipe)(at,s,(0,c.andThen)((e=>{i(h.o.LOADED),n(e)})),(0,c.otherwise)(u));t(e)}),[e.toString()]),d=()=>{try{p()}catch(e){u(e)}};return(0,a.useEffect)((()=>{d()}),[p]),{state:o,data:t,step:r,reload:d}})(m);return(0,p.T)({state:g,reload:b}),r().createElement(O.Z,{id:u},r().createElement(N,{title:d,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRefresh:b,onRemove:s},r().createElement(Ge,{values:m,options:(0,o.cGG)(),getValuesDateRange:Qe,onChange:f,MenuProps:{MenuListProps:{autoFocusItem:!0},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}})),r().createElement(K,{loadingState:g,onRefresh:b,data:E},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(ht,{data:t,width:Math.max(n,80),height:a,step:y})})))}));var yt=n(56215);function bt(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){vt(e,t,n[t])}))}return e}function vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ot=e=>`configuration/entityTypes/${e}`,xt=(0,c.pipe)((0,c.prop)("group"),Ot),St=(0,c.curry)(((e,t)=>t.map((t=>{const n=xt(t);return bt({},t,{label:(0,o.nt9)(e,n).label})})))),wt=(0,c.curry)(((e,t)=>{const n=(0,c.pipe)(xt,(0,o.io3)(e),(0,c.map)((0,o.nt9)(e)),(0,c.filter)(o.oDv),c.last),a=t.reduce(((e,t)=>{const a=n(t);if(a){const n=(0,o.nIW)(a.uri);return bt({},e,{[n]:(e[n]||0)+t.value})}return e}),{});return Object.entries(a).map((e=>{let[t,n]=e;return{group:t,label:t,value:n}}))})),Rt=(0,c.pipe)(Ot,ie,o.VGB),Tt=(0,c.pipe)((0,c.prop)("uri"),o.nIW),It=(0,c.curry)(((e,t)=>e.find((e=>e.group===t)))),Pt=e=>({label:e,group:e,value:0}),Ct=(0,c.curry)(((e,t)=>{let{entityTypes:n}=e;const a=(0,c.pipe)(Tt,(0,c.either)(It(t),Pt));return n.filter(o.oDv).map(a)})),Mt=[],Dt=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:s}=e;const{id:u,title:d,hideEmpty:m,orderType:g,inheritChildren:E}=t,{data:y,state:b,reload:v}=(e=>{let{orderType:t,inheritChildren:n,hideEmpty:r}=e;const[l,o]=(0,a.useState)([]),[s,u]=(0,a.useState)(h.o.INIT),p=(0,i.useSelector)(f.ZP.selectors.getMetadata),d=p.entityTypes.length,{globalFilter:m,activityFilter:g}=(0,i.useSelector)(f.ZP.selectors.getGlobalSearchRequestOptions),E=(0,i.useSelector)(f.ZP.selectors.getShowSearchByOv),y=e=>{console.error(e),u(h.o.ERROR),o([])},b=(0,a.useCallback)((()=>{u(h.o.LOADING);const e=(0,c.pipe)(fe,(0,c.andThen)((0,c.unless)((0,c.always)(r),Ct(p))),(0,c.andThen)((0,c.when)((0,c.always)(n),wt(p))),(0,c.andThen)(St(p)),(0,c.andThen)(ve),(0,c.andThen)((e=>{u(h.o.LOADED),o(e)})),(0,c.otherwise)(y));e({attribute:"type",pageSize:d,filters:Mt,globalFilter:m,searchByOv:E,activityFilter:g,orderType:t})}),[r,p,n,d,m,E,g,t]),v=()=>{try{b()}catch(e){y(e)}};return(0,a.useEffect)((()=>{v()}),[b]),{state:s,data:l,reload:v}})({hideEmpty:m,orderType:g,inheritChildren:E});(0,p.T)({state:b,reload:v});const x=(0,i.useDispatch)(),S=(0,i.useSelector)(f.ZP.selectors.getMetadata),w=(0,c.pipe)(Rt,Re(S,"type"),f.ui.actions.openSearch,x);return r().createElement(O.Z,{id:u},r().createElement(N,{title:d,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRefresh:v,onRemove:s}),r().createElement(K,{loadingState:b,onRefresh:v,data:y},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(yt.Z,{width:n,height:a,data:t,onItemClick:w})})))})),Nt=(0,M.makeStyles)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 16px"},iframe:{borderWidth:0,width:"100%",height:"100%"}}))),_t=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:a,isFullscreen:l,onRemove:o}=e;const{id:i,title:c,url:s}=t,u=Nt();return r().createElement(O.Z,{id:i},r().createElement(N,{title:c,onToggleFullscreen:n,isUpdated:a,isFullscreen:l,onRemove:o}),r().createElement(A.Z,{className:u.viewContent},r().createElement("iframe",{src:s,frameBorder:"0",className:u.iframe})))}));var kt=n(98538);let Ft;!function(e){e.MY="my",e.TEAM="team"}(Ft||(Ft={}));var At=n(44938),zt=n(96379),jt=n(80516);function Lt(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){Zt(e,t,n[t])}))}return e}function Zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ht=(0,c.cond)([[(0,c.equals)(Ft.MY),(0,c.always)(o.C82)],[(0,c.equals)(Ft.TEAM),(0,c.always)(o.h6J)],[c.T,(0,c.always)((()=>Promise.resolve({data:[]})))]]),Ut=(0,c.pipe)((0,c.propOr)([],"objectURIs"),c.head),Bt=(0,c.startsWith)("changeRequests/"),Vt=(0,c.complement)(c.isEmpty),Gt=(0,c.pipe)((0,c.map)(Ut),(0,c.filter)(o.WgC),(0,c.when)(Vt,o.DnY)),Wt=(0,c.pipe)((0,c.map)(Ut),(0,c.filter)(Bt),(0,c.map)((0,c.pipe)(o.E6I,(0,c.otherwise)((0,c.always)(null)))),(e=>Promise.all(e))),Yt=(0,c.converge)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Promise.all(t)}),[Gt,Wt]),$t=e=>{let{objectsInfo:t={},changes:n={},uri:a}=e;const r=e=>(0,c.path)([e,0],n),l=e=>{const{type:t}=r(e);return"CREATE_ENTITY"==t||"CREATE_RELATIONSHIP"==t?a+"/changes/"+e:e};return(0,c.pipe)(c.keys,(0,c.filter)(r),(0,c.sort)((0,c.descend)((0,c.pipe)(r,(0,c.prop)("createdTime")))),(0,c.map)((e=>Lt({},t[e],{uri:l(e)}))))(t)},qt=(e,t,n)=>(t=(0,c.reject)(c.isNil,t),n.map((0,c.pipe)((0,c.when)((0,c.pipe)(Ut,o.WgC),(e=>t=>{const n=e.find((0,c.propEq)("uri",Ut(t)));return n?Lt({},t,{objects:[n]}):t})(e)),(0,c.when)((0,c.pipe)(Ut,Bt),(e=>t=>{const n=e.find((0,c.propEq)("uri",Ut(t)));return n?Lt({},t,{objects:$t(n)}):t})(t))))),Kt=(0,c.curry)((async(e,t)=>{let{workflowPath:n,environment:a,tenant:r,assignee:l,max:o,offset:i}=t;const c=Ht(e),{data:s,total:u}=await c({workflowPath:n,environment:a,tenant:r,assignee:l,max:o,offset:i}),[p,d]=await Yt(s);return{data:qt(p,d,s),total:u}})),Xt=e=>e.dueDate&&e.dueDate<Date.now(),Qt=(0,M.makeStyles)((e=>({taskItem:{flex:1,display:"flex",padding:"15px",color:e.palette.text.primary,"&.Low":{borderLeft:"#F7F7F7 solid 3px"},"&.Medium":{borderLeft:"#F7DE03 solid 3px"},"&.High":{borderLeft:"#FF9800 solid 3px"},"&.Urgent":{borderLeft:"#F44336 solid 3px"}},taskInfo:{flex:1,paddingLeft:"15px",overflow:"hidden",overflowWrap:"anywhere"},titleContainer:{display:"flex",alignItems:"baseline"},taskTitle:{lineHeight:"18px",marginBottom:"6px"},taskDetail:{lineHeight:"15px",fontSize:"12px",margin:"5px 0"},taskDetailTitle:{color:e.palette.text.secondary,marginRight:"3px"},taskDueDate:{fontSize:"13px",lineHeight:"15px",marginLeft:"auto",flexShrink:0},flag:{height:"14px",width:"14px",stroke:"rgba(0,0,0,.54)",fill:"none",verticalAlign:"text-top",marginRight:"5px"},overdue:{"&$taskDueDate":{color:"#f44336"},"& $flag":{stroke:"#f44336",fill:"#f44336"}},entityLabel:{color:e.palette.primary.main,textDecoration:"none",fontSize:"13px",lineHeight:"15px"},hidden:{visibility:"hidden"}}))),Jt=e=>{let{uri:t,label:n,screen:a}=e;const l=Qt();return r().createElement(Ae.Z,{value:t,screen:a,className:l.entityLabel},(0,o.idV)(n))},en=e=>{let{object:t,metadata:n,processType:a}=e;if("startObjectUri"in t&&"endObjectUri"in t){const e=(0,o.V3K)(n,t.type);return r().createElement(r().Fragment,null,e.label," ",u().text("from")," ",r().createElement(Jt,{uri:t.startObjectUri,label:t.startObjectLabel})," ",u().text("to")," ",r().createElement(Jt,{uri:t.endObjectUri,label:t.endObjectLabel}))}{const e=(0,c.cond)([[(0,c.always)((0,c.equals)(a,o.Yj_.potentialMatchReview)),(0,c.always)("potentialMatches")],[(0,c.propSatisfies)(o.FP6,"uri"),(0,c.always)("dcrReview")],[c.T,(0,c.always)("profile")]])(t);return r().createElement(Jt,{uri:(0,o.wwR)(t),label:t.label,screen:e})}},tn=e=>{let{task:t,showAssignee:n}=e;const a=Qt(),l=t.objects||[],[c]=l,s=(0,i.useSelector)(f.ZP.selectors.getMetadata),p=c&&(0,o.nt9)(s,c.type);return r().createElement("div",{className:k()(a.taskItem,t.priorityClass),"data-reltio-id":"workflow-task-item"},r().createElement(zt.Z,{entityType:p}),r().createElement("div",{className:a.taskInfo},r().createElement("div",{className:a.titleContainer},r().createElement(z.Z,{className:a.taskTitle,variant:"subtitle1"},u().text(t.processDefinitionDisplayName)),r().createElement("div",{className:k()(a.taskDueDate,{[a.overdue]:Xt(t),[a.hidden]:!t.dueDate})},r().createElement(jt.Z,{className:a.flag}),u().date(t.dueDate,"L"))),l.map((e=>r().createElement("p",{key:e.uri,className:a.taskDetail},r().createElement(en,{object:e,processType:t.processType,metadata:s})))),r().createElement("p",{className:a.taskDetail},r().createElement("span",{className:a.taskDetailTitle},`${u().text("Created by")}:`),t.createdBy," ",u().text("on")," ",u().date(t.createTime,"L")),n&&t.assignee&&r().createElement("p",{className:a.taskDetail},r().createElement("span",{className:a.taskDetailTitle},`${u().text("Assigned to")}:`),t.assignee),r().createElement("p",{className:a.taskDetail},r().createElement("span",{className:a.taskDetailTitle},`${u().text("Step")}:`),t.displayName)))};var nn=n(56961);const an=e=>{let{width:t,height:n,tasksCategory:l,tasks:o}=e;const i=(0,a.useCallback)((e=>{let{data:t,index:n}=e;const a=n===t.length-1;return r().createElement("div",null,r().createElement(tn,{task:t[n],showAssignee:l!==Ft.MY}),!a&&r().createElement(nn.Z,{light:!0,variant:"inset"}))}),[l]);return r().createElement(At.Z,{width:t,height:n,data:o,defaultItemSize:115},i)};function rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ln=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:s}=e;const{id:d,title:g,pageSize:E=b}=t,y=ee(),[v,x]=(0,a.useState)(0),[S,w]=(0,a.useState)(E),[R,T]=(0,a.useState)(Ft.MY),I=(0,a.useMemo)((()=>({tasksCategory:R,max:S,offset:S*v})),[S,v,R]),P=(0,a.useMemo)((()=>({[Ft.MY]:u().text("My tasks"),[Ft.TEAM]:u().text("Team tasks")})),[]),C=(0,a.useMemo)((()=>Object.keys(P).map((e=>({text:P[e],onClick:()=>T(e)})))),[P]),{state:M,data:D,total:_,reload:k}=(e=>{const{tasksCategory:t}=e,n=(0,a.useMemo)((()=>(0,c.pick)(["max","offset"],e)),[e]),[r,l]=(0,a.useState)([]),[o,s]=(0,a.useState)(h.o.INIT),[u,p]=(0,a.useState)(),d=(0,i.useSelector)(f.ZP.selectors.getWorkflowPath),m=(0,i.useSelector)(f.ZP.selectors.getWorkflowEnvironmentUrl),g=(0,i.useSelector)(f.ZP.selectors.getTenant),E=(0,i.useSelector)(f.ZP.selectors.getUserName),y=t===Ft.MY?E:void 0,b=(0,gt._)(),v=e=>{console.error(e),s(h.o.ERROR),l([])},O=(0,a.useCallback)((()=>{s(h.o.LOADING);const e=(0,c.pipe)(Kt(t),b,(0,c.andThen)((e=>{let{data:t,total:n}=e;s(h.o.LOADED),l(t),p(n)})),(0,c.otherwise)(v));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){rn(e,t,n[t])}))}return e}({workflowPath:d,environment:m,tenant:g,assignee:y},n))}),[d,m,g,t,n]),x=()=>{try{O()}catch(e){v(e)}};return(0,a.useEffect)((()=>{x()}),[O]),{state:o,data:r,reload:x,total:u}})(I);return(0,p.T)({state:M,reload:k}),r().createElement(O.Z,{id:d},r().createElement(N,{title:g,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:s,onRefresh:k},r().createElement(kt.Z,{buttonProps:{className:y.categorySelector,endIcon:r().createElement(He.Z,null),size:"small"},buttonContent:P[R],menuId:"tasks-category-menu",menuItems:C})),r().createElement(K,{loadingState:M,onRefresh:k,data:D,className:y.inboxContent},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(an,{width:n,height:a,tasksCategory:R,tasks:t})})),!!_&&r().createElement(m.Z,{page:v,count:_,rowsPerPage:S,onChangePage:x,onChangeRowsPerPage:w}))}));var on=n(75067),cn=n(77434),sn=n(7278);const un=(0,a.memo)((e=>{let{config:t,isUpdated:n,isFullscreen:l,onToggleFullscreen:i,onRemove:s}=e;const{id:d,title:f,exportTypes:g}=t,E=ee(),[y,x]=(0,a.useState)(0),[S,w]=(0,a.useState)(b),R=(0,a.useMemo)((()=>v(b)),[]),[T,I]=(0,a.useState)({users:[],activities:[],dateRange:{type:o.KfU.WITHIN,period:[4,"months"]}}),{state:P,data:C,total:M,reload:D}=(e=>{let{filter:t,max:n,offset:r}=e;const[l,o]=(0,a.useState)([]),[i,s]=(0,a.useState)(0),[u,p]=(0,a.useState)(h.o.INIT),d=(0,gt._)(),m=e=>{console.error(e),p(h.o.ERROR)},f=(0,sn.d)({filter:t,max:n,offset:r}),g=(0,a.useCallback)((()=>{p(h.o.LOADING);const e=(0,c.pipe)(f,d,(0,c.andThen)((e=>{let{data:t,total:n}=e;o(t),s(n),p(h.o.LOADED)})),(0,c.otherwise)(m));e()}),[f]),E=()=>{try{g()}catch(e){m(e)}};return(0,a.useEffect)((()=>{E()}),[g]),{state:u,data:l,total:i,reload:E}})({filter:T,max:S,offset:y*S}),_=(0,a.useCallback)((e=>{I(e),x(0)}),[]);return(0,p.T)({state:P,reload:D}),r().createElement(O.Z,{id:d},r().createElement(N,{title:f,onToggleFullscreen:i,isUpdated:n,isFullscreen:l,onRemove:s,onRefresh:D}),r().createElement("div",{className:E.activityLogFilter},r().createElement(on.Z,{value:T,onChange:_,exportTypes:g})),r().createElement(K,{loadingState:P,onRefresh:D,data:C,className:E.content},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(cn.Z,{width:n,height:a,activities:t})})),!!M&&r().createElement(m.Z,{page:y,count:M,onChangePage:x,rowsPerPage:S,onChangeRowsPerPage:w,rowsPerPageOptions:R,labelRowsPerPage:u().text("Events per page:")}))}));function pn(){return pn=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},pn.apply(this,arguments)}const dn=e=>(0,l.Z)(e),mn=dn(un),fn=dn(_t),hn=dn(Te),gn=dn(Dt),En=dn(te),yn=dn(Ze),bn=dn(ln),vn=dn(Et);class On{}On.ViewTypes=o.dZX,On.getComponent=e=>{let{config:t,type:n,isUpdated:a,isFullscreen:l,onToggleFullscreen:o,onRemove:i}=e;const c={isUpdated:a,isFullscreen:l,onToggleFullscreen:o,onRemove:i};switch(n){case On.ViewTypes.ActivitiesViewFacet:return r().createElement(mn,pn({config:t},c));case On.ViewTypes.CustomActionViewFacet:return r().createElement(fn,pn({config:t},c));case On.ViewTypes.DashboardFacet:return r().createElement(hn,pn({config:t},c));case On.ViewTypes.EntitiesByTypeViewFacet:return r().createElement(gn,pn({config:t},c));case On.ViewTypes.FilteredSavedSearchesFacet:return r().createElement(En,pn({config:t},c));case On.ViewTypes.FilteredEntitiesViewFacet:return r().createElement(yn,pn({config:t},c));case On.ViewTypes.NotificationInboxFacet:return r().createElement(bn,pn({config:t},c));case On.ViewTypes.ProfileStatsFacet:return r().createElement(vn,pn({config:t},c))}},On.getChartType=e=>{const t={[On.ViewTypes.EntitiesByTypeViewFacet]:o.$XE.TREE,[On.ViewTypes.FilteredSavedSearchesFacet]:o.$XE.TABLE,[On.ViewTypes.FilteredEntitiesViewFacet]:o.$XE.TABLE,[On.ViewTypes.ProfileStatsFacet]:o.$XE.LINE,[On.ViewTypes.NotificationInboxFacet]:o.$XE.TABLE,[On.ViewTypes.ActivitiesViewFacet]:o.$XE.TABLE};return e.chartType||t[e.component]};const xn=On},46847:(e,t,n)=>{function a(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function l(e,t){try{var n=this.props,a=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,a)}finally{this.props=n,this.state=a}}function o(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,o=null,i=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?o="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(o="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==o||null!==i){var c=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==o?"\n "+o:"")+(null!==i?"\n "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=a,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=l;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var a=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,a)}}return e}n.r(t),n.d(t,{polyfill:()=>o}),a.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,l.__suppressDeprecationWarning=!0}}]);
1
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="135c4d16-168c-403b-926c-38bf71b82578",e._sentryDebugIdIdentifier="sentry-dbid-135c4d16-168c-403b-926c-38bf71b82578")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1641"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[672],{89323:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(68671)),l=n(52322),o=(0,r.default)((0,l.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"DragIndicator");t.Z=o},80516:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(68671)),l=n(52322),o=(0,r.default)((0,l.jsx)("path",{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"}),"Flag");t.Z=o},24648:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(68671)),l=n(52322),o=(0,r.default)((0,l.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");t.Z=o},83993:(e,t,n)=>{n.d(t,{Z:()=>h});var a=n(31461),r=n(7896),l=n(24328),o=n(6277),i=n(69075),c=n(65992),s=n(43853),u=n(33552),p=n(40602),d=n(52322);const m=["className"],f=(0,c.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,r.Z)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),h=l.forwardRef((function(e,t){const n=(0,s.Z)({props:e,name:"MuiListItemIcon"}),{className:c}=n,h=(0,a.Z)(n,m),g=l.useContext(p.Z),E=(0,r.Z)({},n,{alignItems:g.alignItems}),y=(e=>{const{alignItems:t,classes:n}=e,a={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,i.Z)(a,u.f,n)})(E);return(0,d.jsx)(f,(0,r.Z)({className:(0,o.default)(y.root,c),ownerState:E,ref:t},h))}))},153:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(89323);const c=(0,n(72342).makeStyles)({dragHandleContainer:{position:"relative",width:"100%",height:"inherit"},dragHandleVisibilityArea:{position:"absolute",top:0,left:0,width:"100%",height:"12px",zIndex:11,visibility:"hidden","&:hover $dragHandle":{visibility:"visible"},".react-draggable &":{visibility:"visible"}},dragHandle:{position:"absolute",width:"100%",display:"flex",justifyContent:"center",top:"-3px",zIndex:11,cursor:"move",visibility:"hidden"},dragIcon:{transform:"translateX(-50%) rotate(90deg)",color:"rgba(0, 0, 0, 0.3)",fontSize:"20px"}}),s=e=>{const t=t=>{const n=c();return r().createElement("div",{className:n.dragHandleContainer},r().createElement("div",{className:n.dragHandleVisibilityArea},r().createElement("div",{className:o()("viewDraggableHandle",n.dragHandle)},r().createElement(i.Z,{className:n.dragIcon}))),r().createElement(e,t))};return t.displayName="WithDragHandle",t}},55234:(e,t,n)=>{n.d(t,{Z:()=>x});var a=n(24328),r=n.n(a),l=n(2507),o=n.n(l),i=n(71153),c=n.n(i),s=n(50914),u=n(31421),p=n(79312),d=n(15793),m=n(19602),f=n(59952),h=n(33117),g=n(14596),E=n(72342);function y(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){b(e,t,n[t])}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v={input:e=>y({},e,{fontSize:"14px"}),menuPortal:e=>y({},e,{zIndex:1300})},O=(0,E.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"},noOptionsMessage:{fontSize:"14px"}});const x=e=>{let{entityType:t,selectedAttributes:n,className:l,onChange:i,title:E,disableUnderline:y,menuPlacement:b="bottom"}=e;const x=O(),S=(0,g.AH)(),w=(0,a.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.reduce(((e,a)=>{if(a.hidden)return e;const r=`${n&&n+" / "}${a.label}`;e.push({label:a.label,value:a.uri,attrType:a,chipLabel:r,level:t});const l=(0,u.EUG)(S,a);return e.concat(l?w(l,t+1,r):[])}),[])}),[S]),R=(0,a.useMemo)((()=>w((null==t?void 0:t.attributes)||[])),[t,w]);return r().createElement("div",{className:c()(x.root,l),"data-reltio-id":"attribute-selector"},r().createElement(p.Z,{className:x.title,variant:"subtitle1"},E||o().text("Attribute")),r().createElement(d.Z,{value:n,options:R,TextFieldProps:{InputProps:{disableUnderline:y},classes:{root:x.dropDownInput}},components:{DropdownIndicator:f.Z,MultiValue:e=>{let{data:t}=e,n=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["data"]);return r().createElement(m.Z,n,t.chipLabel)},Option:e=>{let{isFocused:t,isSelected:n,data:a,label:l,innerProps:o}=e;return r().createElement("div",o,r().createElement(h.Z,{checked:n,level:a.level,data:a,label:l,labelInText:l,isFocused:t}))}},onChange:(0,s.pipe)((0,s.defaultTo)([]),i),styles:v,classes:x,menuPlacement:b,menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1}))}},30488:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(38748),r=n(50548);const l=e=>t=>(0,r.l)(a.X,e,t)},33945:(e,t,n)=>{n.d(t,{Z:()=>g});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(2507),c=n.n(i),s=n(79573),u=n(50914),p=n(76799);const d=(0,n(72342).makeStyles)({pagination:{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"56px",flexShrink:0,borderTop:"1px solid rgba(0,0,0,0.12)",boxShadow:"none",boxSizing:"border-box",overflowY:"hidden",containerType:"inline-size","& .MuiInputBase-root":{display:"none","@container (min-width: 420px)":{display:"inline-flex"}}},caption:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px",display:"none","@container (min-width: 420px)":{display:"block"}},displayedRows:{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!important"}});function m(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){f(e,t,n[t])}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h=e=>{let{classes:t={},count:n,rowsPerPageOptions:l,page:i,onChangePage:f,rowsPerPage:h,onChangeRowsPerPage:g,basicTableRef:E,labelRowsPerPage:y}=e;const b=d(),v=(0,a.useCallback)((()=>{(0,u.pathOr)(u.identity,["current","resetScrollbarPosition"],E)()}),[E]),O=(0,a.useCallback)((e=>{f(e),v()}),[f,v]),x=(0,a.useCallback)((e=>{f(0),g(e),v()}),[f,g,v]);return r().createElement(p.Z,{classes:m({},t,{root:o()(b.pagination,t.root),select:o()(b.select,t.select),selectLabel:o()(b.caption,t.selectLabel),displayedRows:o()(b.displayedRows,t.displayedRows),input:o()(b.selectRoot,t.selectRoot),actions:b.actions}),backIconButtonProps:{size:"large"},nextIconButtonProps:{size:"large"},component:"div",labelRowsPerPage:y||c().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:n,count:a}=e;return c().text("${fromRow}-${toRow} of ${countRows}",{fromRow:c().number(t,"0,0"),toRow:c().number(n,"0,0"),countRows:c().number(a,"0,0")})},count:n,rowsPerPageOptions:l,page:i,onPageChange:(0,u.pipe)((0,u.nthArg)(1),O),rowsPerPage:h,onRowsPerPageChange:(0,u.pipe)(s.NA,x)})};h.displayName="BasicTablePagination";const g=(0,a.memo)(h)},82565:(e,t,n)=>{n.d(t,{Z:()=>p});var a=n(24328),r=n.n(a),l=n(12115);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){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 c=(0,n(72342).makeStyles)((e=>({basicViewPaper:o({display:"flex",flexDirection:"column"},e.basicView)})));function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},s.apply(this,arguments)}const u=(0,a.forwardRef)(((e,t)=>{let{children:n,className:a}=e,o=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["children","className"]);const i=c();return r().createElement(l.Z,s({ref:t,className:a,classes:{root:i.basicViewPaper}},o),n)}));u.displayName="BasicView";const p=u},17998:(e,t,n)=>{n.d(t,{Z:()=>p});var a=n(24328),r=n.n(a),l=n(2507),o=n.n(l),i=n(26482),c=n(79312);const s=(0,n(72342).makeStyles)({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",minWidth:"50px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function u(){return u=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},u.apply(this,arguments)}const p=e=>{let{title:t="",children:n=null,classes:a={}}=e,l=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["title","children","classes"]);const p=s();return r().createElement(i.Z,u({className:a.root,classes:{root:p.toolbar}},l),r().createElement(c.Z,{className:a.title,classes:{root:p.title},variant:"h6"},o().text(t)),n)}},28831:(e,t,n)=>{n.d(t,{Z:()=>p});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(39475),c=n(63655);const s=(0,n(72342).makeStyles)({collapseButton:{cursor:"pointer"},expandLess:{transform:"rotate( -180deg )"}});function u(){return u=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},u.apply(this,arguments)}const p=e=>{let{isOpen:t=!1,tooltipTitle:n}=e,a=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["isOpen","tooltipTitle"]);const l=s(),p={icon:c.Z,className:l.collapseButton,iconClassName:o()({[l.expandLess]:t})},d={tooltipTitle:n};return r().createElement(i.k,u({"data-reltio-id":"collapse-button"},p,d,a))}},89902:(e,t,n)=>{n.d(t,{Z:()=>u});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(50914);const c=(0,n(72342).makeStyles)((e=>({bar:{backgroundColor:e.palette.secondary.main,opacity:.12,position:"absolute",minHeight:"20px",minWidth:"5px",borderRadius:"2px",top:0,left:0,height:"100%"}}))),s=e=>(0,i.is)(Number,e),u=e=>{let{className:t,width:n=0,maxWidth:l}=e;const i=c(),u=(0,a.useCallback)((e=>(l?100*e/l:0)+"%"),[l]);return n?r().createElement("div",{className:o()(i.bar,t),style:{width:s(n)?u(n):n}}):null}},77875:(e,t,n)=>{n.d(t,{Z:()=>m});var a=n(24328),r=n.n(a),l=n(50914),o=n(31421),i=n(53242),c=n(90590),s=n(79573);const u=(0,n(72342).makeStyles)({root:{display:"flex",flex:1},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px",fontSize:"14px"},inputNumber:{minWidth:"60px",marginRight:10,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.03)"},inputUnit:{width:"100%"}});var p=n(7342);const d=["minutes","hours","days","weeks","months","years"],m=e=>{let{interval:[t,n],onChange:a,onFocus:m}=e;const f=u(),h=(0,l.pipe)(s.NA,parseInt,(e=>[e,n]),a),g=(0,l.pipe)((e=>{let{value:n}=e;return[t,n]}),a);return r().createElement("div",{className:f.root},r().createElement(i.Z,{variant:"standard",type:"number",value:t||"",onChange:h,inputProps:{min:1,onFocus:m},InputProps:{classes:{root:f.input}},className:f.inputNumber}),r().createElement(c.Z,{label:"",placeholder:(0,p.Z)(n),className:f.inputUnit,value:{value:n,label:(0,p.Z)((0,o.wsP)(n))},options:d.map((e=>({value:e,label:(0,p.Z)((0,o.wsP)(e))}))),onChange:g,TextFieldProps:{inputProps:{onFocus:m},InputProps:{classes:{root:f.input}}}}))}},98538:(e,t,n)=>{n.d(t,{Z:()=>x});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(50914),c=n(38677),s=n(18960),u=n(55962),p=n(80852),d=n(95341),m=n(79312),f=n(78223),h=n(47591);const g=(0,n(72342).makeStyles)((e=>({buttonRoot:{"&$selected":{color:e.palette.action.active,backgroundColor:(0,h.Fq)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,h.Fq)(e.palette.action.active,.15)}}},selected:{},paper:{minWidth:"112px"},menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}}))),E=(0,f.Z)(d.Z),y=(0,a.forwardRef)(((e,t)=>{let{item:n,onMenuClose:a=i.identity}=e;const l=g(),{disabled:o,text:c,tooltip:s,onClick:u,id:d="",selectable:f,selected:h}=n;return r().createElement(E,{tooltipTitle:s,showForDisabled:!0,classes:{root:l.menuItem},onClick:e=>{a(e),u(e)},disabled:o,ref:t,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${d}`},f&&r().createElement(p.Z,{checked:h,color:"primary"}),r().createElement(m.Z,{classes:{root:l.menuText}},c))}));y.displayName="MenuItemRenderer";const b=y;function v(){return v=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},v.apply(this,arguments)}function O(e){let{className:t,menuId:n,buttonComponent:l=c.Z,buttonContent:p,menuItems:d=[],buttonProps:m={},popoverProps:f={},onMenuOpen:h=i.identity,onMenuClose:E=i.identity,MenuItemRenderer:y=b}=e;const O=l,x=g(),S=(0,a.useRef)(),[w,R]=(0,a.useState)(!1);(0,u.D)((()=>{w?h():E()}),[w]);const T=(0,a.useCallback)((e=>{null==e||e.stopPropagation(),R((e=>!e))}),[]);return r().createElement(r().Fragment,null,r().createElement(O,v({"data-reltio-id":"drop-down-menu-button",ref:S,className:o()(x.buttonRoot,{[x.selected]:w},t),onClick:T,"aria-pressed":w,"aria-controls":w?n:void 0,"aria-haspopup":"true"},m),p),r().createElement(s.Z,v({id:n,variant:"menu",open:w,autoFocus:!1,classes:{paper:x.paper},anchorEl:S.current,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,MenuListProps:{autoFocusItem:w}},f),d.map(((e,t)=>r().createElement(y,{item:e,key:t,onMenuClose:T})))))}O.displayName="DropDownMenuButton";const x=O},96379:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(24328),r=n.n(a),l=n(98018),o=n(14596);function i(){return i=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},i.apply(this,arguments)}const c=e=>{const t=(0,o.$H)()||"";return r().createElement(l.ZP,i({},e,{storagePath:(n=t,n.endsWith("/")?n:n+"/")}));var n}},7882:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(24328),r=n.n(a);class l extends r().Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){this.setState({error:e}),console.error(e)}render(){const{children:e,error:t}=this.props;return this.state.error?t:e}}},52194:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(17998);const c=(0,n(72342).makeStyles)({container:{padding:"0 16px",minHeight:"48px",".react-draggable &":{paddingTop:"4px"}},title:{fontSize:"16px",lineHeight:"19px",justifyContent:"flex-start"}}),s=e=>{let{className:t,title:n,children:a}=e;const l=c();return r().createElement(i.Z,{title:n,classes:{root:o()(l.container,t),title:l.title}},a)}},15793:(e,t,n)=>{n.d(t,{Z:()=>P});var a=n(24328),r=n.n(a),l=n(13980),o=n.n(l),i=n(50914),c=n(70347);const s=(0,n(4515).Z)(c.ZP);var u=n(49861),p=n(12350),d=n(95341),m=n(80852),f=n(71153),h=n.n(f),g=n(40007);function E(){return E=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},E.apply(this,arguments)}function y(e){const{innerProps:t,innerRef:n,children:a,isFocused:l,isSelected:o,selectProps:{classes:i},label:c}=e;return r().createElement(d.Z,E({className:h()(i.option,{[i["option--selected"]]:o}),ref:n,selected:l,component:"div"},t),r().createElement(m.Z,{color:"primary",checked:o}),r().createElement(g.Z,{value:c},r().createElement("div",{className:i["option--item"]},a)))}y.propTypes={children:o().node,innerProps:o().shape({id:o().string.isRequired,key:o().string,onClick:o().func.isRequired,onMouseMove:o().func.isRequired,onMouseOver:o().func.isRequired,tabIndex:o().number.isRequired}).isRequired,innerRef:o().oneOfType([o().oneOf([null]),o().func,o().shape({current:o().any.isRequired})]),isFocused:o().bool.isRequired,isSelected:o().bool.isRequired,label:o().string,selectProps:o().shape({classes:o().shape({option:o().string})})};const b={Option:y};var v=n(72342),O=n(79573);function x(){return x=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},x.apply(this,arguments)}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){w(e,t,n[t])}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const R=(0,v.makeStyles)((e=>({label:{top:6,left:16},placeholder:e=>({display:!e.placeholder||e.label?"none":void 0}),"option--selected":{fontWeight:400},clearIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)},dropdownIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)}})));let T=0;function I(e){const{label:t,creatable:n,getOptions:l,loadingIndicator:o,components:c,classes:d,styles:m,onChange:f,onInputChange:h,menuPlacement:g="auto"}=e,E=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["label","creatable","getOptions","loadingIndicator","components","classes","styles","onChange","onInputChange","menuPlacement"]),y=n?s:l?p.Z:u.Z,[v,w]=(0,a.useState)(""),I=R((0,i.omit)(["classes"],e)),P="custom-select-"+T++,C=S({},b,c),M=(0,O.ze)(I,d),D=S({indicatorSeparator:e=>S({},e,{margin:"10px 0"}),loadingIndicator:e=>S({},e,{display:o?e.display:"none"}),loadingMessage:e=>S({},e,{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'})},m),N=t?{inputId:P,TextFieldProps:S({label:t,InputLabelProps:{htmlFor:P,shrink:!(!e.value||!e.value.length)||void 0,className:M.label}},e.TextFieldProps)}:{};return r().createElement(y,x({isMulti:!0,inputId:P,inputValue:v,onChange:function(e,t){f(e,t),"create-option"===t.action&&(w(""),h("",{action:"input-change"}))},onInputChange:function(e,t){let{action:n}=t;h(e,{action:n}),"set-value"!==n&&w(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:M,components:C,styles:D,menuPlacement:g,loadOptions:l},N,E))}I.defaultProps={creatable:!1,cacheOptions:!0,components:{},classes:{},placeholder:"",loadingIndicator:!1,onInputChange:()=>{},onChange:()=>{}},I.propTypes={creatable:o().bool,cacheOptions:o().bool,defaultOptions:o().bool,value:o().arrayOf(o().shape({label:o().string.isRequired,value:o().any})),options:o().arrayOf(o().shape({label:o().string.isRequired,value:o().any})),onChange:o().func,onInputChange:o().func,placeholder:o().string,label:o().string,loadingIndicator:o().bool,components:o().shape({ClearIndicator:o().func,Control:o().func,DropdownIndicator:o().func,DownChevron:o().func,CrossIcon:o().func,Group:o().func,GroupHeading:o().func,IndicatorsContainer:o().func,IndicatorSeparator:o().func,Input:o().func,LoadingIndicator:o().func,Menu:o().func,MenuList:o().func,MenuPortal:o().func,LoadingMessage:o().func,NoOptionsMessage:o().func,MultiValue:o().func,MultiValueContainer:o().func,MultiValueLabel:o().func,MultiValueRemove:o().func,Option:o().func,Placeholder:o().func,SelectContainer:o().func,SingleValue:o().func,ValueContainer:o().func}),classes:o().shape({control:o().string,valueContainer:o().string,multiValue:o().string,noOptionsMessage:o().string,singleValue:o().string,placeholder:o().string,menu:o().string,clearIndicator:o().string,dropdownIndicator:o().string,option:o().string,"option--selected":o().string,label:o().string}),styles:o().shape({clearIndicator:o().func,container:o().func,control:o().func,dropdownIndicator:o().func,group:o().func,groupHeading:o().func,indicatorsContainer:o().func,indicatorSeparator:o().func,input:o().func,loadingIndicator:o().func,loadingMessage:o().func,menu:o().func,menuList:o().func,menuPortal:o().func,multiValue:o().func,multiValueLabel:o().func,multiValueRemove:o().func,noOptionsMessage:o().func,option:o().func,placeholder:o().func,singleValue:o().func,valueContainer:o().func}),TextFieldProps:o().object,getOptions:o().func,menuPlacement:o().string,menuPortalTarget:o().object,menuShouldBlockScroll:o().bool,captureMenuScroll:o().bool,getOptionValue:o().func,isSearchable:o().bool,inputRef:o().shape({current:o().object})};const P=I},14593:(e,t,n)=>{n.d(t,{Z:()=>C});var a=n(24328),r=n.n(a),l=n(66244),o=n.n(l),i=n(44443),c=n(50914),s=n(71153),u=n.n(s);function p(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}function m(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}const f=e=>{let{x:t,y:n,width:a,height:r,id:l,minWidth:o,minHeight:i,maxWidth:c,maxHeight:s,isStatic:u}=e;return{x:t,y:n,w:a,h:r,minW:o,minH:i,maxW:c,maxH:s,i:l,static:u}},h=e=>{let{x:t,y:n,w:a,h:r,maxW:l,minW:o,minH:i,maxH:c,i:s}=e;return{x:t,y:n,width:a,height:r,minWidth:o,minHeight:i,maxWidth:l,maxHeight:c,id:s,isStatic:m(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},g=e=>(e||[]).map(h),E=(0,c.curry)(((e,t)=>(e||[]).find((0,c.propEq)("id",t)))),y=(0,c.curry)(((e,t,n)=>(0,c.mergeAll)([n,(0,c.pick)(e,t)]))),b=(0,c.curry)(((e,t,n)=>(n||[]).map((n=>(0,c.pipe)((0,c.prop)("id"),E(t),(0,c.defaultTo)({}),y(e,c.__,n))(n))))),v=(0,c.curry)(((e,t)=>t.map((n=>{const a=t.filter((e=>e.y===n.y)).map((t=>e[t.id]||!t.autosizing&&t.minHeight||0)),r=Math.max(...a);if(n.height!==r&&r){const e=n.autosizing?{minHeight:r,maxHeight:r}:{};return p({},n,e,{height:r})}return n})))),O=(0,c.curry)(((e,t)=>t.map((t=>{const n=e[t.id];return n&&t.autosizing?p({},t,{minHeight:n,maxHeight:n,height:n}):t}))));var x=n(79573),S=n(72342),w=n(31421);const R=(0,S.makeStyles)((e=>({gridLayout:{position:"relative",width:"100%","& .react-grid-item":{"&.react-grid-placeholder":{background:"rgba(0, 0, 0, 0.03)",border:"2px dashed rgba(0, 0, 0, 0.3)",borderRadius:"3px",transitionDuration:"100ms",zIndex:7,userSelect:"none","& .react-resizable-handle":{display:"none"}},"&.static .react-resizable-handle":{display:"none"},"&.customView .react-resizable-handle":{width:"10px",height:"10px"},"&.cssTransforms":{transitionProperty:"transform"},"&.react-draggable-dragging":{transition:"none",zIndex:8,willChange:"transform","& .react-resizable-handle":{backgroundImage:"none"}},"& .react-resizable-handle":{position:"absolute",width:"14px",height:"14px",bottom:0,right:0,zIndex:20,backgroundImage:`url('${(0,w.m5F)('<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path stroke="#505050" stroke-opacity=".54" d="M9.5 0v10M0 9.5h9M7.5 4v4M4 7.5h3"/>\n</svg>')}')`,backgroundRepeat:"no-repeat",backgroundOrigin:"content-box",boxSizing:"border-box",cursor:"se-resize"},"&.fullscreen":{visibility:"visible",position:"unset",width:"100% !important",height:"100% !important",transform:"translate(0) !important"}}},gridFullscreen:{height:"100% !important",overflowY:"hidden","& .react-resizable-handle, & .react-grid-item":{visibility:"hidden"}},isResizing:{zIndex:9,willChange:"width, height",pointerEvents:"none"}})));function T(){return T=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},T.apply(this,arguments)}const I={cols:4,rowHeight:30,margin:[15,15]},P=e=>{let{views:t,layout:n,layoutOptions:l=I,onLayoutChanged:s=x.ZT,draggableHandle:p,LayoutItem:d,onRemove:m,onDrop:y,droppingItem:S,isDroppable:w,isStatic:P,classes:C}=e;const M=(0,a.useRef)(),D=(0,a.useRef)({}),N=R(),[_,k]=(0,a.useState)(null),[F,A]=(0,a.useState)(null),[z,j]=(0,a.useState)(0),{cols:L,rowHeight:Z,margin:H}=l,U=(0,a.useMemo)((()=>(e=>(e||[]).map(f))(n)),[n]),B=(0,c.pipe)(g,b(["autosizing"],n),(0,c.ifElse)((0,c.always)(P),v(D.current),O(D.current)),s),V=(0,a.useCallback)((e=>A((t=>t?null:e))),[]),G=null!==F;return r().createElement(r().Fragment,null,r().createElement(i.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>j(e)}),!!z&&r().createElement(o(),{innerRef:M,layout:U,cols:L,draggableHandle:p,autoSize:!0,rowHeight:Z,width:z,margin:H,onLayoutChange:P?void 0:B,isResizable:!P&&!G,isDraggable:!P&&!G,className:u()(null==C?void 0:C.root,N.gridLayout,{[N.gridFullscreen]:G}),onDrop:(e,t,n)=>{y&&y(g(e),h(t),n)},droppingItem:S,isDroppable:!P&&w,onResizeStart:(e,t)=>k(t.i),onResizeStop:()=>k(null),"data-reltio-id":"reltio-grid-layout"},U.map((e=>{const a=F===e.i,o=_===e.i,c=(E(n,e.i)||{}).autosizing?{AutosizeComponent:(s=e.i,r().createElement(i.Z,{handleHeight:!0,onResize:(e,t)=>{if(t){const e=((e,t)=>{const{margin:n,rowHeight:a}=t;return Math.ceil((e+n[1])/(a+n[1]))})(t,l);e!==D.current[s]&&(D.current[s]=e,B(U))}}}))}:{};var s;return r().createElement(d,T({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:V,onRemove:m,className:u()(null==C?void 0:C.item,{static:P,fullscreen:a,[N.isResizing]:o}),isFullscreen:a},c))}))))};P.displayName="ReltioGridLayout";const C=(0,a.memo)(P)},79935:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(24328),r=n.n(a);const l=()=>r().createElement("div",{style:{flex:1}})},15791:(e,t,n)=>{n.d(t,{Z:()=>v});var a=n(24328),r=n.n(a),l=n(2507),o=n.n(l),i=n(50914),c=n(71153),s=n.n(c),u=n(79312),p=n(15793),d=n(59952),m=n(31421),f=n(14596),h=n(72342);function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){E(e,t,n[t])}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y={input:e=>g({},e,{fontSize:"14px"}),loadingMessage:e=>g({},e,{fontSize:"14px"}),menuPortal:e=>g({},e,{zIndex:1300})},b=(0,h.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"}}),v=e=>{let{selectedUsers:t,onChange:n,className:l,disableUnderline:c}=e;const h=b(),g=(0,f.Uv)(),E=(0,f.au)(),v=e=>({value:e,label:e}),O=e=>e.map(v),x=(0,a.useRef)();return r().createElement("div",{className:s()(h.root,l),"data-reltio-id":"user-selector"},r().createElement(u.Z,{className:h.title,variant:"subtitle1"},o().text("User")),r().createElement(p.Z,{value:O(t),onChange:(0,i.pipe)((0,i.defaultTo)([]),(0,i.pluck)("value"),n),defaultOptions:!0,getOptions:e=>(x.current||(x.current=(0,m.kz_)({tenant:g,servicesPath:E})),x.current.then((0,i.pipe)((0,i.pluck)("username"),(e=>t=>e?t.filter((t=>m.P6Y.strings.search(t,e))):t)(e),O))),TextFieldProps:{InputProps:{disableUnderline:c},className:h.dropDownInput},components:{DropdownIndicator:d.Z},styles:y,classes:h,menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1}))}},20414:(e,t,n)=>{let a;n.d(t,{I:()=>a}),function(e){e.MODEL_UPDATED="MODEL_UPDATED",e.ENTITY_REMOVED="ENTITY_REMOVED",e.ENTITY_CREATED="ENTITY_CREATED",e.ENTITY_CHANGED="ENTITY_CHANGED",e.ENTITIES_MERGED="ENTITIES_MERGED",e.ENTITIES_SPLITTED="ENTITIES_SPLITTED",e.ENTITY_LOST_MERGE="ENTITY_LOST_MERGE",e.RELATIONSHIP_CREATED="RELATIONSHIP_CREATED",e.RELATIONSHIP_REMOVED="RELATIONSHIP_REMOVED",e.RELATIONSHIP_CHANGED="RELATIONSHIP_CHANGED",e.POTENTIAL_MATCHES_FOUND="POTENTIAL_MATCHES_FOUND",e.NOT_MATCHES_SET="NOT_MATCHES_SET",e.NOT_MATCHES_RESET="NOT_MATCHES_RESET",e.PERIODIC_TASK_SCHEDULED="PERIODIC_TASK_SCHEDULED",e.ENTITIES_MERGED_MANUALLY="ENTITIES_MERGED_MANUALLY",e.POTENTIAL_MATCHES_REMOVED="POTENTIAL_MATCHES_REMOVED",e.ENTITIES_MERGED_ON_THE_FLY="ENTITIES_MERGED_ON_THE_FLY",e.USER_LOGIN="USER_LOGIN",e.USER_LOGOUT="USER_LOGOUT",e.USER_SEARCH="USER_SEARCH",e.USER_PROFILE_VIEW="USER_PROFILE_VIEW",e.COMMENT_ADDED="COMMENT_ADDED",e.COMMENT_UPDATED="COMMENT_UPDATED",e.COMMENT_DELETED="COMMENT_DELETED",e.ANALYTICS_ATTRIBUTES_CHANGED="ANALYTICS_ATTRIBUTES_CHANGED",e.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE="SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE",e.GROUP_CREATED="GROUP_CREATED",e.GROUP_REMOVED="GROUP_REMOVED",e.GROUP_CHANGED="GROUP_CHANGED"}(a||(a={}))},57312:(e,t,n)=>{n.d(t,{te:()=>p,Io:()=>d,rx:()=>m,_V:()=>f,Xr:()=>h});var a=n(31421),r=n(50914),l=n(2507),o=n.n(l),i=n(20414);function c(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){s(e,t,n[t])}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=(0,r.path)(["data","type"]),p=e=>{const{items:t,label:n}=e,[a]=t||[];return u(a)||n},d=e=>{const{items:t=[],label:n}=e,a=e=>{return t=u(e)||n,(0,r.pipe)(r.values,(0,r.includes)(t))(i.I);var t},l=(0,r.filter)(a)(t);return t.length!==l.length&&console.error("Activities not implemented:",(0,r.reject)(a)(t)),c({},e,{items:l,itemsTotal:l.length})},m=e=>(0,r.pipe)((0,r.propOr)([],"items"),(0,r.groupBy)(u),r.values,(0,r.ifElse)((e=>{let{length:t}=e;return t>1}),(0,r.map)((t=>c({},e,{items:t,itemsTotal:t.length}))),(()=>[e])))(e),f=(e,t,n,l)=>{const o=(0,a.zeJ)(n,t),i=(0,a.PFL)(o),c=(0,a.mB6)({attributePresentations:l,dataTypeDefinition:i});return(0,r.isNil)(e)?"":"string"==typeof e?o?c(e):e:Object.entries(e).flatMap((e=>{let[r,o]=e;return o.map((e=>f(e.value,(0,a.tCm)(t,r),n,l)))})).join(", ")},h=e=>({[i.I.COMMENT_ADDED]:o().text("Comment added"),[i.I.COMMENT_DELETED]:o().text("Comment deleted"),[i.I.COMMENT_UPDATED]:o().text("Comment updated"),[i.I.ENTITIES_MERGED]:o().text("Profile merged"),[i.I.ENTITIES_MERGED_MANUALLY]:o().text("Profile merged manually"),[i.I.ENTITIES_MERGED_ON_THE_FLY]:o().text("Profile merged on the fly"),[i.I.ENTITIES_SPLITTED]:o().text("Profile un-merged"),[i.I.ENTITY_CHANGED]:o().text("Profile updated"),[i.I.ENTITY_CREATED]:o().text("Profile created"),[i.I.ENTITY_LOST_MERGE]:o().text("Profile lost merge"),[i.I.ENTITY_REMOVED]:o().text("Profile removed"),[i.I.GROUP_CHANGED]:o().text("Group updated"),[i.I.GROUP_CREATED]:o().text("Group created"),[i.I.GROUP_REMOVED]:o().text("Group removed"),[i.I.MODEL_UPDATED]:o().text("Model was updated"),[i.I.NOT_MATCHES_RESET]:o().text("Not matches reset"),[i.I.NOT_MATCHES_SET]:o().text("Not matches set"),[i.I.PERIODIC_TASK_SCHEDULED]:o().text("Periodic task was scheduled"),[i.I.POTENTIAL_MATCHES_FOUND]:o().text("Potential matches found"),[i.I.POTENTIAL_MATCHES_REMOVED]:o().text("Potential matches removed"),[i.I.RELATIONSHIP_CHANGED]:o().text("Relationship updated"),[i.I.RELATIONSHIP_CREATED]:o().text("Relationship created"),[i.I.RELATIONSHIP_REMOVED]:o().text("Relationship removed"),[i.I.USER_LOGIN]:o().text("Logged in"),[i.I.USER_LOGOUT]:o().text("Logged out"),[i.I.USER_PROFILE_VIEW]:o().text("Profile viewed"),[i.I.USER_SEARCH]:o().text("Searched"),[i.I.ANALYTICS_ATTRIBUTES_CHANGED]:o().text("Analytics attribute changed"),[i.I.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE]:o().text("SFDC connector synchronization issue")}[e]||"")},27446:(e,t,n)=>{n.d(t,{Z:()=>y});var a=n(24328),r=n.n(a),l=n(95038),o=n.n(l),i=n(2507),c=n.n(i),s=n(50914),u=n(31421),p=n(79573),d=n(53242),m=n(47019),f=n(59952),h=n(98192);const g=(0,n(72342).makeStyles)({root:{flex:1},dropdownIndicator:{transition:"transform .15s ease"},inputRoot:{fontSize:"14px",height:46},input:{padding:"0 12px 0"},dateOptionLabel:{minWidth:"100px"},paper:{minWidth:"112px"}}),E=o().localeData().longDateFormat("L"),y=e=>{let{values:t,onChange:n,onFocus:l=p.ZT}=e;const o=E,i=(0,a.useRef)(null),[y,b]=(0,a.useState)(!1),v=g(),O=(0,a.useCallback)((()=>{b((e=>!e)),l()}),[l]);return r().createElement("div",{className:v.root},r().createElement(d.Z,{fullWidth:!0,value:t.map((e=>((e,t)=>(0,s.isNil)(e)?`${t}`:`${(0,u.mB6)({dataTypeDefinition:{type:u.oS0.TYPE_ACTIVENESS_DATE}},e)}`)(e,o))).join(" — "),onClick:O,variant:"filled",ref:i,InputProps:{endAdornment:r().createElement(f.Z,{selectProps:{classes:v,menuIsOpen:y},innerProps:{}}),disableUnderline:(0,s.isNil)(t),readOnly:!0,classes:{root:v.inputRoot,input:v.input}},InputLabelProps:{shrink:!1},placeholder:c().text(`${o} — ${o}`)}),r().createElement(m.ZP,{open:y,anchorEl:i.current,onClose:()=>{b(!1)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2},r().createElement(h.Z,{values:t,onApply:e=>{n(e),b(!1)},type:u.oS0.TYPE_ACTIVENESS_DATE})))}},43129:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(24328),r=n.n(a),l=n(30750);const o=(0,n(72342).makeStyles)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),i=()=>{const e=o();return r().createElement(l.Z,{color:"primary",className:e.loader,"data-reltio-id":"dashboard-item-loader"})}},60355:(e,t,n)=>{n.d(t,{Z:()=>d});var a=n(24328),r=n.n(a),l=n(18960),o=n(95341),i=n(83993),c=n(82056),s=n(87037),u=n(50985);const p=(0,n(72342).makeStyles)((()=>({menuItemTitle:{fontSize:"13px",lineHeight:"15px"},openIcon:{padding:"4px",borderRadius:"2px",marginRight:"-10px"}}))),d=e=>{let{items:t}=e;const[n,d]=(0,a.useState)(null),m=Boolean(n),f=p(),h=()=>d(null),g=e=>()=>{h(),e()};return r().createElement(r().Fragment,null,r().createElement(s.Z,{className:f.openIcon,"aria-controls":"menu","aria-haspopup":"true",onClick:e=>d(e.currentTarget),size:"large"},r().createElement(u.Z,null)),r().createElement(l.Z,{id:"facet-menu",anchorEl:n,open:m,onClose:h,elevation:2,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},t.filter((e=>e.active)).map((e=>{let{id:t,icon:n,title:a,action:l,disabled:s=!1}=e;return r().createElement(o.Z,{key:t,onClick:g(l),disabled:s},r().createElement(i.Z,null,n),r().createElement(c.Z,{classes:{primary:f.menuItemTitle}},a))}))))}},65298:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(24328),r=n.n(a),l=n(82565),o=n(52388);const i=(0,n(72342).makeStyles)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden",boxShadow:"none"}}))),c=e=>{let{id:t,children:n}=e;const a=i();return r().createElement(o.H.Provider,{value:t},r().createElement(l.Z,{className:a.view,"data-reltio-id":`layout-item-${t}`},n))}},52388:(e,t,n)=>{n.d(t,{H:()=>r});var a=n(24328);const r=n.n(a)().createContext(null);r.displayName="DashboardViewIdContext"},3330:(e,t,n)=>{n.d(t,{Z:()=>xn});var a=n(24328),r=n.n(a),l=n(153),o=n(31421),i=n(52730),c=n(50914),s=n(2507),u=n.n(s),p=n(73093),d=n(62321),m=n(33945),f=n(59464),h=n(39034);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 E=e=>{let{options:t,offset:n,max:r}=e;const[l,i]=(0,a.useState)([]),[s,u]=(0,a.useState)(0),[p,d]=(0,a.useState)(h.o.INIT),m=e=>{console.error(e),d(h.o.ERROR),i([])},f=(0,a.useCallback)((()=>{d(h.o.LOADING);const e=e=>{i(e.result||[]),u(e.total),d(h.o.LOADED)},a=t||{},{countResults:l}=a,s=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(a,["countResults"]);(async()=>{const{result:t=[],total:a}=await(0,o.cZV)(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){g(e,t,n[t])}))}return e}({offset:n,max:r},s));if(l){const n=t.map((e=>(0,o.OaI)((0,o.dWE)(e.query)))),r=(await(0,o.RGr)(n)).reduce(((e,t,n)=>{let{status:a,value:r,reason:l}=t;switch(a){case"fulfilled":return(0,c.assocPath)([n,"count"],r.total,e);case"rejected":console.error(l)}return e}),t);e({result:r,total:a})}else e({result:t,total:a})})().catch(m)}),[t,r,n]),E=()=>{try{f()}catch(e){m(e)}};return(0,a.useEffect)((()=>{E()}),[f]),{state:p,data:l,reload:E,total:s}},y=[10,25,50,100],[b]=y,v=e=>y.filter((t=>t!==e)).concat(e).sort(c.subtract);var O=n(65298),x=n(52194),S=n(19926),w=n(25744),R=n(63436),T=n(67322),I=n(24648),P=n(52388),C=n(60355),M=n(72342);const D=(0,M.makeStyles)((()=>({rightMenu:{display:"flex",flexGrow:1,justifyContent:"flex-end",alignItems:"center",height:"100%",gap:"8px",marginLeft:4},updatedChip:{background:"#FF9E1B",height:20,fontSize:"10px",color:"white",marginLeft:4}}))),N=e=>{let{title:t,onToggleFullscreen:n,isUpdated:l=!1,isFullscreen:o,onRemove:i,onRefresh:c,children:s}=e;const p=(0,a.useContext)(P.H),d=(0,a.useMemo)((()=>[{id:"refresh",title:u().text("Refresh"),icon:r().createElement(I.Z,{fontSize:"small"}),active:!!c,action:()=>c()},{id:"fullscreen",title:u().text("Fullscreen"),icon:r().createElement(w.Z,{fontSize:"small"}),active:!o,action:()=>n(p)},{id:"exitFullscreen",title:u().text("Exit fullscreen"),icon:r().createElement(R.Z,{fontSize:"small"}),active:o,action:()=>n(p)},{id:"remove",title:u().text("Remove"),icon:r().createElement(T.Z,{fontSize:"small"}),active:!!i,action:()=>{i(p),o&&n(p)}}]),[p,o,i,n,c]),m=D();return r().createElement(x.Z,{title:t},l&&r().createElement(S.Z,{label:u().text("Updated"),size:"small",className:m.updatedChip}),r().createElement("div",{className:m.rightMenu},s,r().createElement(C.Z,{items:d})))};var _=n(71153),k=n.n(_),F=n(7882),A=n(82068),z=n(79312);function j(){return j=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},j.apply(this,arguments)}const L=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["styles"]);return r().createElement("svg",j({width:"148",height:"148",viewBox:"0 0 148 148",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r().createElement("mask",{id:"svg2791016623a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"148",height:"148"},r().createElement("path",{d:"M74 148c40.869 0 74-33.131 74-74 0-40.87-33.131-74-74-74C33.13 0 0 33.13 0 74c0 40.869 33.13 74 74 74z",fill:"#fff"})),r().createElement("g",{mask:"url(#svg2791016623a)"},r().createElement("path",{d:"M74 148c40.869 0 74-33.131 74-74 0-40.87-33.131-74-74-74C33.13 0 0 33.13 0 74c0 40.869 33.13 74 74 74z",fill:"#0072CE",fillOpacity:".1"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 5.203h148V148H0V5.203z",fill:"url(#nodata__paint0_linear)"}),r().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},r().createElement("path",{opacity:".5",d:"M25.186 26.016h131.896V128.04H25.186V26.016z",fillOpacity:".8"}),r().createElement("path",{opacity:".9",d:"M16.766 26.021a4.626 4.626 0 014.623-4.63h129.406a4.623 4.623 0 014.623 4.63v88.107a4.625 4.625 0 01-4.623 4.631H21.389a4.623 4.623 0 01-4.623-4.631V26.021z"})),r().createElement("path",{opacity:".5",d:"M141.553 50.95a2.315 2.315 0 002.311-2.32 2.315 2.315 0 00-2.311-2.318 2.315 2.315 0 00-2.311 2.319 2.315 2.315 0 002.311 2.318zM133.465 50.95a2.315 2.315 0 002.311-2.32 2.315 2.315 0 00-2.311-2.318 2.314 2.314 0 00-2.311 2.319 2.314 2.314 0 002.311 2.318z",fill:"#6DBCFF"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.808 46.313a5.488 5.488 0 015.489 5.488v.035a5.488 5.488 0 01-10.977 0v-.035a5.488 5.488 0 015.488-5.489z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 46.19h37.054a2.029 2.029 0 010 4.057H47.102a2.028 2.028 0 110-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 53.725h67.006a1.45 1.45 0 010 2.898H46.523a1.449 1.449 0 110-2.898z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 58.941h21.62a.87.87 0 010 1.74h-21.62a.87.87 0 110-1.74z",fill:"#B1AABD"}),r().createElement("path",{opacity:".5",d:"M71.35 30.664H31.508a3.188 3.188 0 100 6.375H71.35a3.188 3.188 0 000-6.375z",fill:"#645F6D"}),r().createElement("path",{opacity:".5",d:"M141.553 72.972a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.318 2.315 2.315 0 00-2.311 2.318 2.315 2.315 0 002.311 2.319zM133.465 72.972a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.318 2.314 2.314 0 00-2.311 2.318 2.314 2.314 0 002.311 2.319z",fill:"#6DBCFF"}),r().createElement("path",{d:"M39.297 73.824a5.488 5.488 0 10-10.977 0v.035a5.488 5.488 0 0010.977 0v-.035z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 68.214h43.894a2.029 2.029 0 010 4.057H47.102a2.029 2.029 0 010-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 75.748h74.516a1.45 1.45 0 010 2.898H46.523a1.449 1.449 0 110-2.898z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 80.965h60.077a.87.87 0 010 1.739H45.943a.87.87 0 010-1.74z",fill:"#B1AABD"}),r().createElement("path",{opacity:".5",d:"M141.553 94.996a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.319 2.315 2.315 0 00-2.311 2.319 2.315 2.315 0 002.311 2.318zM133.465 94.996a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.319 2.314 2.314 0 00-2.311 2.319 2.314 2.314 0 002.311 2.318z",fill:"#6DBCFF"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.808 90.36a5.488 5.488 0 015.489 5.488v.035a5.488 5.488 0 11-10.977 0v-.035a5.488 5.488 0 015.488-5.489z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 90.237h58.915a2.028 2.028 0 010 4.057H47.102a2.029 2.029 0 010-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 97.772h49.096a1.449 1.449 0 110 2.897H46.524a1.448 1.448 0 110-2.897z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 102.988h21.62a.87.87 0 010 1.739h-21.62a.87.87 0 110-1.739z",fill:"#B1AABD"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M102.927 64.75l44.536 77.139-58.989 34.057-44.536-77.14.405-.234c4.06 9.263 12.074 16.712 22.462 19.616 18.103 5.059 36.562-5.599 41.232-23.805 2.679-10.449.235-21.113-5.757-29.26l.647-.374z",fill:"url(#nodata__paint1_linear)"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M56.352 103.62c10.385 10.611 27.223 10.611 37.609 0 10.385-10.612 10.385-27.816 0-38.427-10.386-10.611-27.224-10.611-37.61 0-10.385 10.611-10.385 27.815 0 38.427z",fill:"url(#nodata__paint2_linear)"}),r().createElement("g",{filter:"url(#nodata__filter0_d)",fillRule:"evenodd",clipRule:"evenodd"},r().createElement("path",{d:"M74.981 49.719c19.06 0 34.512 15.462 34.512 34.536a34.418 34.418 0 01-8.665 22.886l29.603 29.623a51.708 51.708 0 01-5.837 5.43l-29.705-29.725a34.338 34.338 0 01-19.908 6.322c-19.06 0-34.512-15.462-34.512-34.536S55.92 49.719 74.98 49.719zm0 10.265c-13.395 0-24.254 10.866-24.254 24.27 0 13.405 10.859 24.272 24.254 24.272 13.395 0 24.254-10.867 24.254-24.271S88.376 59.984 74.981 59.984z",fill:"#B5C8C9"}),r().createElement("path",{d:"M52.903 110.801c-7.598-6.335-12.434-15.876-12.434-26.546 0-19.074 15.451-34.536 34.512-34.536 10.663 0 20.197 4.839 26.528 12.442l-5.662 5.667c-4.862-6.175-12.401-10.14-20.866-10.14-14.662 0-26.548 11.895-26.548 26.567 0 8.47 3.962 16.015 10.132 20.88l-5.662 5.666z",fill:"#fff",fillOpacity:".4"})),r().createElement("g",{style:{mixBlendMode:"soft-light"},opacity:".4"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.352 103.62c10.385 10.611 27.223 10.611 37.609 0 10.385-10.612 10.385-27.816 0-38.427-10.386-10.611-27.224-10.611-37.61 0-10.385 10.611-10.385 27.815 0 38.427z",fill:"#D9F5FF"})),r().createElement("g",{style:{mixBlendMode:"overlay"}},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.621 91.769c0-2.272.257-4.065.77-5.38.513-1.314 1.346-2.453 2.497-3.418 1.151-.964 2.026-1.847 2.625-2.648.6-.802.899-1.684.899-2.649 0-2.35-1.012-3.524-3.034-3.524-.933 0-1.688.343-2.263 1.027-.576.685-.88 1.61-.91 2.777h-7.888c.031-3.111 1.011-5.534 2.94-7.27 1.93-1.734 4.636-2.601 8.121-2.601 3.47 0 6.157.801 8.063 2.404 1.905 1.602 2.858 3.881 2.858 6.837 0 1.291-.257 2.466-.77 3.524-.513 1.058-1.338 2.139-2.474 3.243l-2.683 2.497c-.762.732-1.291 1.482-1.587 2.252-.295.77-.459 1.746-.49 2.929h-6.674zm-.957 7.094c0-1.151.416-2.096 1.249-2.835.832-.74 1.87-1.109 3.115-1.109s2.283.37 3.115 1.109c.833.739 1.249 1.684 1.249 2.835s-.416 2.096-1.249 2.835c-.832.739-1.87 1.109-3.115 1.109s-2.283-.37-3.115-1.109c-.833-.739-1.249-1.684-1.249-2.835z",fill:"#000",fillOpacity:".87"})),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.621 91.769c0-2.272.257-4.065.77-5.38.513-1.314 1.346-2.453 2.497-3.418 1.151-.964 2.026-1.847 2.625-2.648.6-.802.899-1.684.899-2.649 0-2.35-1.012-3.524-3.034-3.524-.933 0-1.688.343-2.263 1.027-.576.685-.88 1.61-.91 2.777h-7.888c.031-3.111 1.011-5.534 2.94-7.27 1.93-1.734 4.636-2.601 8.121-2.601 3.47 0 6.157.801 8.063 2.404 1.905 1.602 2.858 3.881 2.858 6.837 0 1.291-.257 2.466-.77 3.524-.513 1.058-1.338 2.139-2.474 3.243l-2.683 2.497c-.762.732-1.291 1.482-1.587 2.252-.295.77-.459 1.746-.49 2.929h-6.674zm-.957 7.094c0-1.151.416-2.096 1.249-2.835.832-.74 1.87-1.109 3.115-1.109s2.283.37 3.115 1.109c.833.739 1.249 1.684 1.249 2.835s-.416 2.096-1.249 2.835c-.832.739-1.87 1.109-3.115 1.109s-2.283-.37-3.115-1.109c-.833-.739-1.249-1.684-1.249-2.835z",fill:"#3C74B4",fillOpacity:".38"})),r().createElement("defs",null,r().createElement("linearGradient",{id:"nodata__paint0_linear",x1:"74",y1:"5.203",x2:"74",y2:"148",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:"0"}),r().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"nodata__paint1_linear",x1:"123.612",y1:"142.028",x2:"76.729",y2:"122.717",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:"0"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"nodata__paint2_linear",x1:"75.156",y1:"57.234",x2:"75.156",y2:"111.578",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#EEFBFF"}),r().createElement("stop",{offset:"1",stopColor:"#0072CE"})),r().createElement("filter",{id:"nodata__filter0_d",x:"36.469",y:"47.719",width:"97.962",height:"100.475",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"}))))},Z=(0,M.makeStyles)((()=>({noDataContainer:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)"},icon:{height:"88px",width:"88px",marginBottom:"20px"}}))),H=()=>{const e=Z();return r().createElement("div",{className:e.noDataContainer},r().createElement(L,{className:e.icon}),r().createElement(z.Z,null,u().text("No Data")))};var U=n(38677);function B(){return B=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},B.apply(this,arguments)}const V=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["styles"]);return r().createElement("svg",B({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r().createElement("mask",{id:"svg3217593551a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),r().createElement("g",{mask:"url(#svg3217593551a)"},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:".3"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),r().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),r().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),r().createElement("path",{opacity:".5",d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".3",d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".8",d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),r().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".2",d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),r().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),r().createElement("g",{filter:"url(#error__filter0_d)"},r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),r().createElement("path",{opacity:".15",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),r().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#error__paint0_linear)"}),r().createElement("g",{filter:"url(#error__filter1_d)"},r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),r().createElement("g",{filter:"url(#error__filter2_d)"},r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),r().createElement("defs",null,r().createElement("filter",{id:"error__filter0_d",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"error__filter1_d",x:"51.688",y:"62.625",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"error__filter2_d",x:"51.688",y:"44.063",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("linearGradient",{id:"error__paint0_linear",x1:"68.438",y1:"71.571",x2:"60.119",y2:"58.801",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:"0"}),r().createElement("stop",{offset:"1"}))))},G=(0,M.makeStyles)((e=>({errorContainer:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)"},errorIcon:{height:"88px",width:"88px",marginBottom:"20px",paddingTop:"36px"},refreshButton:{color:e.palette.primary.main,marginTop:"10px"},refreshIcon:{width:"24px",height:"24px"}}))),W=e=>{let{onRefresh:t,message:n}=e;const a=G();return r().createElement("div",{className:a.errorContainer},r().createElement(V,{className:a.errorIcon}),r().createElement(z.Z,null,n),t&&r().createElement(U.Z,{className:a.refreshButton,startIcon:r().createElement(I.Z,{color:"primary",className:a.refreshIcon}),onClick:t},r().createElement(z.Z,{variant:"button"},u().text("Refresh"))))};var Y=n(43129),$=n(44443);const q=(0,M.makeStyles)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 16px"},toolbarRoot:{padding:"16px",minHeight:"18px",lineHeight:"18px",marginBottom:"8px","&:hover .viewDraggableHandle":{visibility:"visible"}},title:{fontSize:"16px",lineHeight:"19px",fontWeight:"normal",color:"rgba(0, 0, 0, 0.87)",letterSpacing:"0.15px"},dragIcon:{position:"absolute",left:"50%",top:"-3px",transform:"translateX(-50%) rotate(90deg)",color:"rgba(0, 0, 0, 0.3)",cursor:"move",zIndex:8,visibility:"hidden"}}))),K=e=>{let{loadingState:t,onRefresh:n,children:a,data:l,className:o,EmptyPlaceholder:i}=e;const c=q();return r().createElement(A.Z,{className:k()(c.viewContent,o),"data-reltio-id":"layout-item-content"},r().createElement($.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:o=0,height:c=0}=e;switch(t){case h.o.LOADED:return l&&0!==l.length?r().createElement(F.Z,{error:r().createElement(W,{message:u().text("Something went wrong")})},a({data:l,width:o,height:c})):i||r().createElement(H,null);case h.o.LOADING:return r().createElement(Y.Z,null);case h.o.ERROR:return r().createElement(W,{message:u().text("Error Loading Data"),onRefresh:n});default:return r().createElement("div",null)}})))};function X(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){Q(e,t,n[t])}))}return e}function Q(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=>{let{uiState:t,uri:n}=e;return"2.0"===t.version?X({},t,{currentSavedSearchUri:n}):X({},t.state,{curSavedSearchUri:n})},ee=(0,M.makeStyles)((()=>({activityLogFilter:{padding:"0 8px 0px 16px",borderBottom:"1px solid rgba(0,0,0,0.12)"},categorySelector:{whiteSpace:"nowrap",textTransform:"none",fontWeight:"normal"},inboxContent:{padding:0,borderTop:"1px solid rgba(0,0,0,0.12)"},content:{padding:0}}))),te=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:s}=e;const{id:h,title:g,options:y,max:x=b}=t,S=ee(),[w,R]=(0,a.useState)(0),[T,I]=(0,a.useState)(x),{data:P,state:C,reload:M,total:D}=E({options:y,max:T,offset:T*w}),_=(0,a.useMemo)((()=>(e=>e.map((e=>{let{uri:t,name:n,count:a}=e;return{value:a||0,label:n||"",group:t}})))(P)),[P]),k=(0,a.useMemo)((()=>v(x)),[x]),F=(0,i.useDispatch)(),A=(0,a.useCallback)((e=>{(0,c.pipe)((0,c.find)((0,c.propEq)("uri",e)),J,f.ui.actions.openSearch,F)(P)}),[F,P]);return(0,p.T)({state:C,reload:M}),r().createElement(O.Z,{id:h},r().createElement(N,{title:g,onToggleFullscreen:n,isFullscreen:o,isUpdated:l,onRefresh:M,onRemove:s}),r().createElement(K,{loadingState:C,onRefresh:M,data:_,className:S.content},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(d.Z,{width:n,height:a,data:t,options:{headers:[u().text("Name")],showValues:null==y?void 0:y.countResults},onItemClick:A})})),!!D&&r().createElement(m.Z,{page:w,count:D,rowsPerPage:T,onChangePage:R,onChangeRowsPerPage:I,rowsPerPageOptions:k}))}));var ne=n(45990),ae=n(12960);const re=(0,c.when)((0,c.pipe)((0,c.prop)("filter"),(0,c.includes)(c.__,[o.j5E.IN_RANGE,o.j5E.HAS_ALL])),(0,c.evolve)({values:o.FTe})),le=(0,c.curry)(((e,t)=>({filter:o.j5E.NOT_EQUALS,values:[t],fieldName:e}))),oe=e=>{var t,n,a;return{filter:null!==(t=null==e?void 0:e.filter)&&void 0!==t?t:o.j5E.EQUALS,values:null!==(n=null==e?void 0:e.values)&&void 0!==n?n:[],fieldName:null!==(a=null==e?void 0:e.fieldName)&&void 0!==a?a:""}},ie=e=>({filter:o.j5E.EQUALS,fieldName:"type",values:[e]}),ce=(0,c.curry)(((e,t)=>({filter:o.j5E.EQUALS,values:[t],fieldName:e}))),se=(0,c.curry)(((e,t,n)=>{const{fieldName:a}=n,r=(0,o.Yxg)(a)||(0,o.zeJ)(e,(0,o.h2W)(a,t));return r?(0,c.pipe)(re,(0,c.when)((()=>(0,o.EdS)(r.uri)),(0,c.assoc)("entityType",t)),(0,c.when)((()=>(0,o.Lt4)(r.type)),(0,c.evolve)({values:(0,c.map)((0,o.mOr)(o.ZBU))})))(n):null})),ue=e=>{let{filter:t,fieldName:n}=e;return t===o.j5E.EQUALS&&"type"===n},pe=(e,t)=>{let{filter:n,fieldName:a,values:r}=e;return n===o.j5E.EQUALS&&"type"===a&&(null==r?void 0:r[0])===t};function de(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){me(e,t,n[t])}))}return e}function me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fe=e=>{let{attribute:t,filters:n,globalFilter:a,searchByOv:r,activityFilter:l,pageSize:i,orderType:s}=e;const u=((e,t,n,a)=>{const r=(0,c.pipe)((0,c.map)(re),(0,o.Uqd)(),(0,o.vyX)(t))(e),l=r?[`filter=${r}`]:[];return n&&l.push("options=searchByOv"),a&&l.push(`activeness=${a}`),l.join("&")})(n,a,r,l),p=[{fieldName:t,pageNo:1,orderType:s,pageSize:i}];return(0,o.FK9)({query:u,body:p}).then((e=>(0,c.pipe)((0,c.prop)(t),(0,c.defaultTo)({}),Object.entries,(0,c.map)((e=>{let[t,n]=e;return{label:t,group:t,value:n}})),(0,c.sortWith)([(0,c.descend)((0,c.prop)("value")),(0,c.ascend)((0,c.prop)("label"))]))(e)))},he=(0,c.curry)(((e,t)=>{const n=t.map((t=>{let{label:n}=t;return{codeValue:n,type:e}}));return(0,o.hK$)(n).then((n=>{const a=n.flatMap((0,o.Z2f)(e));return t.map((e=>{const t=a.find((t=>{let{lookupCode:n}=t;return n===e.label}));return t?de({},e,{label:t.value}):e}))}))})),ge=(0,c.curry)(((e,t)=>t.map((0,c.pipe)((0,c.prop)("group"),le(e))))),Ee="Other",ye=(0,c.curry)(((e,t)=>{let{attribute:n,filters:a,globalFilter:r,searchByOv:l,activityFilter:i}=e;const s=(0,c.pipe)(ge(n),(0,c.concat)(a),(0,c.map)(re))(t),p=l&&"searchByOv";return(0,o.j_Q)(s,{globalFilter:r,activityFilter:i,searchOptions:p}).then((e=>{let{total:n}=e;return n>0?t.concat([{label:u().text("Other"),group:Ee,value:n}]):t}))})),be=(e,t)=>(0,o.xqc)(e,"configuration/roles/"+t),ve=(0,c.map)((e=>de({},e,{localizedValue:u().number(e.value)}))),Oe=(0,c.when)(o.EdS,o.Tde),xe=(0,c.ifElse)(o.EdS,o.Uk3,(0,c.always)(void 0)),Se=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=xe(e),a=t.some((e=>pe(e,n)));return n&&!a?[ie(n),...t]:t},we=(0,c.curry)(((e,t,n)=>{const a=Oe(e);return n===Ee?(0,c.pipe)((0,c.reject)((0,c.propEq)("group",Ee)),ge(a))(t):[ce(a,n)]})),Re=(0,c.curry)(((e,t,n)=>{var a,r;const l=xe(t)||(null===(a=n.find(ue))||void 0===a||null===(r=a.values)||void 0===r?void 0:r[0]);return{facets:n.map(se(e,l)).filter(c.identity)}}));const Te=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:s,onRemove:u}=e;const{id:d,title:m,filters:g,attributeUri:E,count:y,orderType:b,chartType:v,showOthers:x}=t,S=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,["id","title","filters","attributeUri","count","orderType","chartType","showOthers"]),w=v===o.$XE.MAP?100:8,{data:R,state:T,reload:I}=(e=>{let{filters:t,attributeUri:n,pageSize:r,orderType:l="reversedCount",options:s}=e;const[u,p]=(0,a.useState)([]),[d,m]=(0,a.useState)(h.o.INIT),g=(0,a.useContext)(ne.I),E=(0,a.useMemo)((()=>g.map(oe).concat(t||[])),[g,t]),y=(0,i.useSelector)(f.ZP.selectors.getMetadata),{globalFilter:b,activityFilter:v}=(0,i.useSelector)(f.ZP.selectors.getGlobalSearchRequestOptions),O=(0,i.useSelector)(f.ZP.selectors.getAttributePresentations),x=!(null==O||!O[n]),S=(0,i.useSelector)(f.ZP.selectors.getShowSearchByOv),w=null==s?void 0:s.showOthers,R=e=>{console.error(e),m(h.o.ERROR),p([])},T=(0,a.useCallback)((()=>{m(h.o.LOADING);const e=Se(n,E),t=Oe(n),a=(0,o.Yxg)(t)||(0,o.zeJ)(y,n);if(!a)return void R("Configuration is incorrect");const i=(0,c.pipe)(fe,(0,c.andThen)(((e,t)=>(0,c.pipe)((0,c.when)((()=>(0,o.CwH)(t)),he((0,o.To9)(t))),(0,c.when)((()=>(0,o.ian)(t)),(0,c.map)((t=>de({},t,{label:be(e,t.group)})))),(0,c.when)((()=>(0,o.Lt4)(t.type)),(0,c.map)((0,c.evolve)({label:(0,c.pipe)(o.ZBU,(0,o.mB6)({dataTypeDefinition:(0,o.PFL)(t)}))})))))(y,a)),(0,c.andThen)((0,c.unless)((0,c.always)(x),ve)),(0,c.andThen)((0,c.when)((0,c.always)(w),ye({attribute:t,filters:e,globalFilter:b,searchByOv:S,activityFilter:v}))),(0,c.andThen)((e=>{m(h.o.LOADED),p(e)})),(0,c.otherwise)(R));i({attribute:t,filters:e,globalFilter:b,searchByOv:S,activityFilter:v,pageSize:r,orderType:l})}),[m,n,y,w,E,b,S,v,r,l,x]),I=()=>{try{T()}catch(e){R(e)}};return(0,a.useEffect)((()=>{I()}),[T]),{state:d,data:u,reload:I}})({filters:g,attributeUri:E,pageSize:y||w,orderType:b,options:{showOthers:x}});(0,p.T)({state:T,reload:I});const P=(0,i.useDispatch)(),C=(0,i.useSelector)(f.ZP.selectors.getMetadata),M=(0,a.useContext)(ne.I),D=(0,a.useMemo)((()=>M.map(oe).concat(g||[])),[M,g]),_=(0,c.pipe)(we(E,R),(0,c.concat)(Se(E,D)),Re(C,E),f.ui.actions.openSearch,P);return r().createElement(O.Z,{id:d},r().createElement(N,{title:m,onToggleFullscreen:n,isUpdated:l,isFullscreen:s,onRefresh:I,onRemove:u}),r().createElement(K,{loadingState:T,onRefresh:I,data:R},(e=>{let{data:t,width:n=0,height:a=0}=e;return ae.Z.build(v,{data:t,width:Math.max(n,80),height:a,options:S,onItemClick:_})})))}));var Ie=n(45108),Pe=n(92332),Ce=n(40007);const Me={content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"},De=(0,M.makeStyles)((e=>({headCell:{display:"flex",alignItems:"center",height:"100%","&>div":{padding:"0 16px"}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden","&:after":Me},entityLabel:{color:e.palette.primary.main,textDecoration:"none",fontSize:"13px",fontWeight:500,lineHeight:"15px",whiteSpace:"nowrap",overflow:"hidden",display:"flex",alignItems:"center",height:"100%",padding:"0 16px","&:after":Me}})));function Ne(){return Ne=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},Ne.apply(this,arguments)}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){ke(e,t,n[t])}))}return e}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fe=e=>{let{className:t,headCellData:n}=e,a=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["className","headCellData"]);const l=De();return r().createElement("div",{className:k()(l.headCell,t)},r().createElement(Pe.default,Ne({},a,{headCellData:_e({},n,{label:r().createElement(Ce.Z,{value:n.label},r().createElement("div",{className:l.headLabel},n.label))})})))};var Ae=n(18527);const ze=e=>{let{value:t,rowValue:n}=e;const a=De(),l=(0,o.idV)(t);return r().createElement(Ce.Z,{value:l},r().createElement(Ae.Z,{value:(0,o.wwR)(n),className:a.entityLabel},l))},je=(0,M.makeStyles)({tableContainer:e=>{let{width:t,height:n}=e;return{height:n,width:t,display:"flex",flexDirection:"column"}},cellBorder:{borderLeft:"none",borderRight:"none"}}),Le=e=>{let{height:t,width:n,basicTableRef:a,data:l}=e;const o=je({width:n,height:t}),i=[{id:"label",label:u().text("Entity"),resizable:!1,headCellRenderer:Fe,rowCellValueRenderer:ze,initialWidth:n}],c={cellBorder:o.cellBorder};return r().createElement("div",{className:o.tableContainer},r().createElement(Ie.Z,{columnsData:i,rowsData:l,headRowHeight:48,getRowCellHeight:null,classes:c,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:a}))},Ze=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRemove:c}=e;const s=ee(),{id:u,title:d,filters:f,max:g=b}=t,E=(0,a.useMemo)((()=>v(g)),[g]),[y,x]=(0,a.useState)(g),[S,w]=(0,a.useState)(0),{data:R,state:T,reload:I,total:P}=(e=>{let{filters:t,max:n,offset:r}=e;const[l,i]=(0,a.useState)([]),[c,s]=(0,a.useState)(0),[u,p]=(0,a.useState)(h.o.INIT),d=(0,a.useContext)(ne.I),m=(0,a.useMemo)((()=>d.map(oe).concat(t||[])),[d,t]),f=e=>{console.error(e),p(h.o.ERROR)},g=(0,a.useCallback)((()=>{p(h.o.LOADING),Promise.all([(0,o.ZOr)(m,{max:n,offset:r}),(0,o.j_Q)(m,{max:n,offset:r})]).then((e=>{const[t,{total:n}]=e;i(t||[]),s(n),p(h.o.LOADED)})).catch(f)}),[m,n,r]),E=()=>{try{g()}catch(e){f(e)}};return(0,a.useEffect)((()=>{E()}),[g]),{state:u,data:l,reload:E,total:c}})({filters:f,max:y,offset:y*S});return(0,p.T)({state:T,reload:I}),r().createElement(O.Z,{id:u},r().createElement(N,{title:d,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRefresh:I,onRemove:c}),r().createElement(K,{loadingState:T,onRefresh:I,data:R,className:s.content},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(Le,{height:a,width:n,data:t})})),!!P&&r().createElement(m.Z,{page:S,count:P,rowsPerPage:y,onChangePage:w,onChangeRowsPerPage:x,rowsPerPageOptions:E}))}));var He=n(65643),Ue=n(78291);const Be=(0,M.makeStyles)({button:{whiteSpace:"nowrap",textTransform:"none",fontWeight:"normal"}}),Ve=(0,a.forwardRef)(((e,t)=>{let{editorLabel:n,onMenuToggle:a}=e;const l=Be();return r().createElement(U.Z,{ref:t,onClick:a,size:"small",className:l.button,endIcon:r().createElement(He.Z,null)},n)}));Ve.displayName="DashboardDateRangeSelector";const Ge=(0,Ue.Z)(Ve);var We=n(14806);var Ye=n(95038),$e=n.n(Ye);let qe;!function(e){e.HOUR="hour",e.DAY="day"}(qe||(qe={}));const Ke=(0,c.pipe)((e=>(0,o.RHh)(e,Xe)),(e=>{let[t,n]=e;return n-t>+$e().duration(1,"day")?qe.DAY:qe.HOUR})),Xe=e=>{const t=$e()();return e===o.bZE.LAST_WEEK?[$e()(t).subtract(6,"days").valueOf(),t.valueOf()]:(0,o.VQ1)(e)},Qe=(0,c.pipe)(Xe,(0,c.defaultTo)([]),(0,c.map)((e=>e&&new Date(e)))),Je=[{id:"created",types:["CREATED"],get label(){return u().text("New")},color:"#4BAFFF"},{id:"updated",types:["UPDATED"],get label(){return u().text("Updated")},color:"#0072CE"},{id:"deleted",types:["DELETED"],get label(){return u().text("Deleted")},color:"#F085F2"},{id:"matched",types:["POTENTIAL_MATCHES_FOUND"],get label(){return u().text("Matched")},color:"#C4CE00"},{id:"autoMerged",types:["MERGED","MERGED_ON_THE_FLY"],get label(){return u().text("Auto-merged")},color:"#CE5C00"},{id:"mergedManually",types:["MERGED_MANUALLY"],get label(){return u().text("Manually merged")},color:"#9E7ED3"},{id:"unmerged",types:["SPLITTED"],get label(){return u().text("Unmerged")},color:"#40CFBB"},{id:"notMatch",types:["NOT_MATCHES_SET"],get label(){return u().text("Not a match")},color:"#F97061"}],et=e=>Je.find((0,c.propEq)("id",e)),tt=(0,c.pipe)(et,(0,c.propOr)("","label")),nt=(0,c.pipe)(et,(0,c.prop)("color")),at=e=>{const[t,n]=(0,o.RHh)(e,Xe),a=e=>{let{facet:a,types:r}=e;return(0,o.NIY)({facet:a,startTime:t,endTime:n,types:r}).then((e=>{let{facets:t={},total:n=0}=e;return{total:n,data:t[a]}}))};return(()=>{const e=(0,c.chain)((0,c.prop)("types"),Je),t=(0,c.pipe)((0,c.propOr)([],"data"),(0,c.pluck)("term"));return a({facet:"type",types:e}).then((e=>t(e)))})().then((e=>e.length>0?(e=>{const r=(0,c.pipe)((0,c.map)((0,c.evolve)({term:e=>$e().utc(e).valueOf()})),(0,c.prepend)({term:t,count:0}),(0,c.append)({term:n,count:0}));return Promise.all(Je.map((t=>{let{types:n,id:l}=t;return((t=>t.some((t=>e.includes(t))))(n)?a({facet:"hour",types:n}):Promise.resolve({total:0,data:[]})).then((e=>{let{total:t,data:n}=e;return{total:t,data:r(n),event:l}}))})))})(e):[]))},rt=(0,c.curry)(((e,t)=>(0,c.pipe)((0,c.groupBy)((t=>{let{term:n}=t;return $e()(n).startOf(e)})),c.toPairs,(0,c.map)((e=>{let[t,n]=e;return{term:$e()(t).valueOf(),count:(0,c.sum)((0,c.pluck)("count",n))}})))(t))),lt=(0,c.curry)(((e,t)=>{const[n,...a]=t;return a.reduce(((t,n)=>{const a=(0,c.last)(t).term;let r=$e()(a).add(1,e).valueOf();const l=[];for(;r<n.term;)l.push({term:r,count:0}),r=$e()(r).add(1,e).valueOf();return t.concat(l,n)}),[n])})),ot=(0,c.curry)(((e,t)=>t.map((0,c.evolve)({data:(0,c.pipe)(rt(e),lt(e))})))),it=(0,c.cond)([[(0,c.equals)(qe.HOUR),(0,c.always)("LT")],[(0,c.equals)(qe.DAY),(0,c.always)("MMM D")]]),ct=e=>{let{x:t,y:n,payload:a,step:l}=e;return r().createElement("g",{transform:`translate(${t},${n})`},r().createElement("text",{x:0,y:0,dy:16,textAnchor:"middle",fill:"#666"},u().date(null==a?void 0:a.value,it(l))))},st=(0,M.makeStyles)({tooltipWrapper:{borderRadius:"4px",background:"rgba(0, 0, 0, 0.54)",padding:"6px 8px 7px 8px",color:"#FFFFFF","& p":{fontSize:"12px",lineHeight:"18px",padding:0,margin:0}},tooltipTitle:{fontWeight:500},tooltipItemColor:{width:8,height:8,marginRight:10,display:"inline-block"},legend:{display:"flex",flexWrap:"wrap",marginLeft:"20px",marginTop:"10px"},legendItem:{display:"flex",alignItems:"baseline","&:not(:last-child)":{marginRight:10},width:"140px",marginBottom:"5px",fontSize:"13px",color:"rgba(0, 0, 0, 0.54)"},legendItemColor:{width:12,height:12,marginRight:10,flexShrink:0,boxSizing:"border-box"},legendItemValue:{color:"rgba(0, 0, 0, 0.87)",marginLeft:"10px"}}),ut=(0,c.cond)([[(0,c.equals)(qe.HOUR),(0,c.always)("LT MMM D")],[(0,c.equals)(qe.DAY),(0,c.always)("ll")]]),pt=e=>{let{active:t,payload:n,label:a,step:l,events:o}=e;const i=st();return t&&r().createElement("div",{className:i.tooltipWrapper},r().createElement("p",{className:i.tooltipTitle},u().date(a,ut(l))),n.filter((e=>{let{name:t}=e;return o.includes(t)})).map((e=>{let{color:t,name:n,value:a}=e;return r().createElement("p",{key:n},r().createElement("span",{style:{background:t},className:i.tooltipItemColor}),`${tt(n)}: ${a}`)})))};var dt=n(23883);const mt=e=>{let{payload:t,selectedItems:n,onClick:a}=e;const l=st();return r().createElement("div",{className:l.legend},t.map((e=>{let{id:t,color:o,value:i}=e;const c=n.includes(t);return r().createElement("div",{key:t,className:l.legendItem},r().createElement(dt.Z,{title:c?u().text("Hide"):u().text("Show")},r().createElement("div",{style:c?{background:o}:{border:`${o} 1px solid`},className:l.legendItemColor,onClick:()=>a(t)})),tt(t),r().createElement("span",{className:l.legendItemValue},i))})))};function ft(){return ft=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},ft.apply(this,arguments)}const ht=e=>{let{data:t,width:n,height:l,step:i}=e;const[s,u]=(0,a.useState)((0,c.pluck)("event",t)),[p,d]=(0,a.useState)(null),{cartesianGrid:m,tooltip:f,xAxis:h,yAxis:g,line:E,legend:y}={xAxis:{type:"category",dataKey:"term",tick:{fill:"#000",opacity:"0.54"},angle:0,textAnchor:"middle",stroke:"#666",allowDuplicatedCategory:!1},yAxis:{dataKey:"",type:"number",tick:{fill:"#000",opacity:"0.54",width:void 0},stroke:"#666",tickFormatter:o.k7L,width:50},cartesianGrid:{strokeDasharray:"3 3",stroke:"#666",strokeOpacity:"0.4"},tooltip:{cursor:{fill:"#000",opacity:"0.1"}},line:{type:"linear",dataKey:"count",strokeWidth:3},legend:{wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:"25%"}}},b=(0,a.useMemo)((()=>ot(i,t)),[i,t]),v=(0,a.useMemo)((()=>((e,t)=>{const n=(0,c.chain)((0,c.pipe)((0,c.prop)("data"),(0,c.pluck)("count")))(e),a=Math.min(...n),r=Math.max(...n);return Math.abs(r-a)<8?[0,7]:[0,"auto"]})(b)),[b]);return r().createElement(We.wW,{width:n,height:l},r().createElement(We.q3,m),r().createElement(We.Kc,ft({},h,{tick:r().createElement(ct,{step:i})})),r().createElement(We.B2,ft({},g,{tickCount:8,domain:v})),b.map((e=>{let{event:t,data:n}=e;const a=s.includes(t);return r().createElement(We.x1,ft({key:t,stroke:nt(t),name:t,data:n,dot:a&&{r:5,strokeWidth:2},activeDot:a&&{r:5,strokeWidth:2,onMouseEnter:()=>d(t),onMouseLeave:()=>d(null)},strokeOpacity:a?1:0},E))})),r().createElement(We.De,ft({content:r().createElement(mt,{selectedItems:s,onClick:e=>{u((0,c.ifElse)((0,c.includes)(e),(0,c.without)([e]),(0,c.append)(e)))}}),payload:b.map((e=>{let{event:t,total:n}=e;return{id:t,type:"square",color:nt(t),value:n}}))},y)),r().createElement(We.u,ft({},f,{content:r().createElement(pt,{step:i,events:p?[p]:s})})))};var gt=n(19701);const Et=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRemove:s}=e;const{id:u,title:d}=t,[m,f]=(0,a.useState)(o.bZE.LAST_WEEK),{state:g,data:E,step:y,reload:b}=(e=>{const[t,n]=(0,a.useState)([]),[r,l]=(0,a.useState)(Ke(e)),[o,i]=(0,a.useState)(h.o.INIT),s=(0,gt._)(),u=e=>{console.error(e),i(h.o.ERROR),n([])},p=(0,a.useCallback)((()=>{i(h.o.LOADING),l(Ke(e)),n([]);const t=(0,c.pipe)(at,s,(0,c.andThen)((e=>{i(h.o.LOADED),n(e)})),(0,c.otherwise)(u));t(e)}),[e.toString()]),d=()=>{try{p()}catch(e){u(e)}};return(0,a.useEffect)((()=>{d()}),[p]),{state:o,data:t,step:r,reload:d}})(m);return(0,p.T)({state:g,reload:b}),r().createElement(O.Z,{id:u},r().createElement(N,{title:d,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRefresh:b,onRemove:s},r().createElement(Ge,{values:m,options:(0,o.cGG)(),getValuesDateRange:Qe,onChange:f,MenuProps:{MenuListProps:{autoFocusItem:!0},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}})),r().createElement(K,{loadingState:g,onRefresh:b,data:E},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(ht,{data:t,width:Math.max(n,80),height:a,step:y})})))}));var yt=n(56215);function bt(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){vt(e,t,n[t])}))}return e}function vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ot=e=>`configuration/entityTypes/${e}`,xt=(0,c.pipe)((0,c.prop)("group"),Ot),St=(0,c.curry)(((e,t)=>t.map((t=>{const n=xt(t);return bt({},t,{label:(0,o.nt9)(e,n).label})})))),wt=(0,c.curry)(((e,t)=>{const n=(0,c.pipe)(xt,(0,o.io3)(e),(0,c.map)((0,o.nt9)(e)),(0,c.filter)(o.oDv),c.last),a=t.reduce(((e,t)=>{const a=n(t);if(a){const n=(0,o.nIW)(a.uri);return bt({},e,{[n]:(e[n]||0)+t.value})}return e}),{});return Object.entries(a).map((e=>{let[t,n]=e;return{group:t,label:t,value:n}}))})),Rt=(0,c.pipe)(Ot,ie,o.VGB),Tt=(0,c.pipe)((0,c.prop)("uri"),o.nIW),It=(0,c.curry)(((e,t)=>e.find((e=>e.group===t)))),Pt=e=>({label:e,group:e,value:0}),Ct=(0,c.curry)(((e,t)=>{let{entityTypes:n}=e;const a=(0,c.pipe)(Tt,(0,c.either)(It(t),Pt));return n.filter(o.oDv).map(a)})),Mt=[],Dt=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:s}=e;const{id:u,title:d,hideEmpty:m,orderType:g,inheritChildren:E}=t,{data:y,state:b,reload:v}=(e=>{let{orderType:t,inheritChildren:n,hideEmpty:r}=e;const[l,o]=(0,a.useState)([]),[s,u]=(0,a.useState)(h.o.INIT),p=(0,i.useSelector)(f.ZP.selectors.getMetadata),d=p.entityTypes.length,{globalFilter:m,activityFilter:g}=(0,i.useSelector)(f.ZP.selectors.getGlobalSearchRequestOptions),E=(0,i.useSelector)(f.ZP.selectors.getShowSearchByOv),y=e=>{console.error(e),u(h.o.ERROR),o([])},b=(0,a.useCallback)((()=>{u(h.o.LOADING);const e=(0,c.pipe)(fe,(0,c.andThen)((0,c.unless)((0,c.always)(r),Ct(p))),(0,c.andThen)((0,c.when)((0,c.always)(n),wt(p))),(0,c.andThen)(St(p)),(0,c.andThen)(ve),(0,c.andThen)((e=>{u(h.o.LOADED),o(e)})),(0,c.otherwise)(y));e({attribute:"type",pageSize:d,filters:Mt,globalFilter:m,searchByOv:E,activityFilter:g,orderType:t})}),[r,p,n,d,m,E,g,t]),v=()=>{try{b()}catch(e){y(e)}};return(0,a.useEffect)((()=>{v()}),[b]),{state:s,data:l,reload:v}})({hideEmpty:m,orderType:g,inheritChildren:E});(0,p.T)({state:b,reload:v});const x=(0,i.useDispatch)(),S=(0,i.useSelector)(f.ZP.selectors.getMetadata),w=(0,c.pipe)(Rt,Re(S,"type"),f.ui.actions.openSearch,x);return r().createElement(O.Z,{id:u},r().createElement(N,{title:d,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRefresh:v,onRemove:s}),r().createElement(K,{loadingState:b,onRefresh:v,data:y},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(yt.Z,{width:n,height:a,data:t,onItemClick:w})})))})),Nt=(0,M.makeStyles)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 16px"},iframe:{borderWidth:0,width:"100%",height:"100%"}}))),_t=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:a,isFullscreen:l,onRemove:o}=e;const{id:i,title:c,url:s}=t,u=Nt();return r().createElement(O.Z,{id:i},r().createElement(N,{title:c,onToggleFullscreen:n,isUpdated:a,isFullscreen:l,onRemove:o}),r().createElement(A.Z,{className:u.viewContent},r().createElement("iframe",{src:s,frameBorder:"0",className:u.iframe})))}));var kt=n(98538);let Ft;!function(e){e.MY="my",e.TEAM="team"}(Ft||(Ft={}));var At=n(44938),zt=n(96379),jt=n(80516);function Lt(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){Zt(e,t,n[t])}))}return e}function Zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ht=(0,c.cond)([[(0,c.equals)(Ft.MY),(0,c.always)(o.C82)],[(0,c.equals)(Ft.TEAM),(0,c.always)(o.h6J)],[c.T,(0,c.always)((()=>Promise.resolve({data:[]})))]]),Ut=(0,c.pipe)((0,c.propOr)([],"objectURIs"),c.head),Bt=(0,c.startsWith)("changeRequests/"),Vt=(0,c.complement)(c.isEmpty),Gt=(0,c.pipe)((0,c.map)(Ut),(0,c.filter)(o.WgC),(0,c.when)(Vt,o.DnY)),Wt=(0,c.pipe)((0,c.map)(Ut),(0,c.filter)(Bt),(0,c.map)((0,c.pipe)(o.E6I,(0,c.otherwise)((0,c.always)(null)))),(e=>Promise.all(e))),Yt=(0,c.converge)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Promise.all(t)}),[Gt,Wt]),$t=e=>{let{objectsInfo:t={},changes:n={},uri:a}=e;const r=e=>(0,c.path)([e,0],n),l=e=>{const{type:t}=r(e);return"CREATE_ENTITY"==t||"CREATE_RELATIONSHIP"==t?a+"/changes/"+e:e};return(0,c.pipe)(c.keys,(0,c.filter)(r),(0,c.sort)((0,c.descend)((0,c.pipe)(r,(0,c.prop)("createdTime")))),(0,c.map)((e=>Lt({},t[e],{uri:l(e)}))))(t)},qt=(e,t,n)=>(t=(0,c.reject)(c.isNil,t),n.map((0,c.pipe)((0,c.when)((0,c.pipe)(Ut,o.WgC),(e=>t=>{const n=e.find((0,c.propEq)("uri",Ut(t)));return n?Lt({},t,{objects:[n]}):t})(e)),(0,c.when)((0,c.pipe)(Ut,Bt),(e=>t=>{const n=e.find((0,c.propEq)("uri",Ut(t)));return n?Lt({},t,{objects:$t(n)}):t})(t))))),Kt=(0,c.curry)((async(e,t)=>{let{workflowPath:n,environment:a,tenant:r,assignee:l,max:o,offset:i}=t;const c=Ht(e),{data:s,total:u}=await c({workflowPath:n,environment:a,tenant:r,assignee:l,max:o,offset:i}),[p,d]=await Yt(s);return{data:qt(p,d,s),total:u}})),Xt=e=>e.dueDate&&e.dueDate<Date.now(),Qt=(0,M.makeStyles)((e=>({taskItem:{flex:1,display:"flex",padding:"15px",color:e.palette.text.primary,"&.Low":{borderLeft:"#F7F7F7 solid 3px"},"&.Medium":{borderLeft:"#F7DE03 solid 3px"},"&.High":{borderLeft:"#FF9800 solid 3px"},"&.Urgent":{borderLeft:"#F44336 solid 3px"}},taskInfo:{flex:1,paddingLeft:"15px",overflow:"hidden",overflowWrap:"anywhere"},titleContainer:{display:"flex",alignItems:"baseline"},taskTitle:{lineHeight:"18px",marginBottom:"6px"},taskDetail:{lineHeight:"15px",fontSize:"12px",margin:"5px 0"},taskDetailTitle:{color:e.palette.text.secondary,marginRight:"3px"},taskDueDate:{fontSize:"13px",lineHeight:"15px",marginLeft:"auto",flexShrink:0},flag:{height:"14px",width:"14px",stroke:"rgba(0,0,0,.54)",fill:"none",verticalAlign:"text-top",marginRight:"5px"},overdue:{"&$taskDueDate":{color:"#f44336"},"& $flag":{stroke:"#f44336",fill:"#f44336"}},entityLabel:{color:e.palette.primary.main,textDecoration:"none",fontSize:"13px",lineHeight:"15px"},hidden:{visibility:"hidden"}}))),Jt=e=>{let{uri:t,label:n,screen:a}=e;const l=Qt();return r().createElement(Ae.Z,{value:t,screen:a,className:l.entityLabel},(0,o.idV)(n))},en=e=>{let{object:t,metadata:n,processType:a}=e;if("startObjectUri"in t&&"endObjectUri"in t){const e=(0,o.V3K)(n,t.type);return r().createElement(r().Fragment,null,e.label," ",u().text("from")," ",r().createElement(Jt,{uri:t.startObjectUri,label:t.startObjectLabel})," ",u().text("to")," ",r().createElement(Jt,{uri:t.endObjectUri,label:t.endObjectLabel}))}{const e=(0,c.cond)([[(0,c.always)((0,c.equals)(a,o.Yj_.potentialMatchReview)),(0,c.always)("potentialMatches")],[(0,c.propSatisfies)(o.FP6,"uri"),(0,c.always)("dcrReview")],[c.T,(0,c.always)("profile")]])(t);return r().createElement(Jt,{uri:(0,o.wwR)(t),label:t.label,screen:e})}},tn=e=>{let{task:t,showAssignee:n}=e;const a=Qt(),l=t.objects||[],[c]=l,s=(0,i.useSelector)(f.ZP.selectors.getMetadata),p=c&&(0,o.nt9)(s,c.type);return r().createElement("div",{className:k()(a.taskItem,t.priorityClass),"data-reltio-id":"workflow-task-item"},r().createElement(zt.Z,{entityType:p}),r().createElement("div",{className:a.taskInfo},r().createElement("div",{className:a.titleContainer},r().createElement(z.Z,{className:a.taskTitle,variant:"subtitle1"},u().text(t.processDefinitionDisplayName)),r().createElement("div",{className:k()(a.taskDueDate,{[a.overdue]:Xt(t),[a.hidden]:!t.dueDate})},r().createElement(jt.Z,{className:a.flag}),u().date(t.dueDate,"L"))),l.map((e=>r().createElement("p",{key:e.uri,className:a.taskDetail},r().createElement(en,{object:e,processType:t.processType,metadata:s})))),r().createElement("p",{className:a.taskDetail},r().createElement("span",{className:a.taskDetailTitle},`${u().text("Created by")}:`),t.createdBy," ",u().text("on")," ",u().date(t.createTime,"L")),n&&t.assignee&&r().createElement("p",{className:a.taskDetail},r().createElement("span",{className:a.taskDetailTitle},`${u().text("Assigned to")}:`),t.assignee),r().createElement("p",{className:a.taskDetail},r().createElement("span",{className:a.taskDetailTitle},`${u().text("Step")}:`),t.displayName)))};var nn=n(56961);const an=e=>{let{width:t,height:n,tasksCategory:l,tasks:o}=e;const i=(0,a.useCallback)((e=>{let{data:t,index:n}=e;const a=n===t.length-1;return r().createElement("div",null,r().createElement(tn,{task:t[n],showAssignee:l!==Ft.MY}),!a&&r().createElement(nn.Z,{light:!0,variant:"inset"}))}),[l]);return r().createElement(At.Z,{width:t,height:n,data:o,defaultItemSize:115},i)};function rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ln=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:s}=e;const{id:d,title:g,pageSize:E=b}=t,y=ee(),[v,x]=(0,a.useState)(0),[S,w]=(0,a.useState)(E),[R,T]=(0,a.useState)(Ft.MY),I=(0,a.useMemo)((()=>({tasksCategory:R,max:S,offset:S*v})),[S,v,R]),P=(0,a.useMemo)((()=>({[Ft.MY]:u().text("My tasks"),[Ft.TEAM]:u().text("Team tasks")})),[]),C=(0,a.useMemo)((()=>Object.keys(P).map((e=>({text:P[e],onClick:()=>T(e)})))),[P]),{state:M,data:D,total:_,reload:k}=(e=>{const{tasksCategory:t}=e,n=(0,a.useMemo)((()=>(0,c.pick)(["max","offset"],e)),[e]),[r,l]=(0,a.useState)([]),[o,s]=(0,a.useState)(h.o.INIT),[u,p]=(0,a.useState)(),d=(0,i.useSelector)(f.ZP.selectors.getWorkflowPath),m=(0,i.useSelector)(f.ZP.selectors.getWorkflowEnvironmentUrl),g=(0,i.useSelector)(f.ZP.selectors.getTenant),E=(0,i.useSelector)(f.ZP.selectors.getUserName),y=t===Ft.MY?E:void 0,b=(0,gt._)(),v=e=>{console.error(e),s(h.o.ERROR),l([])},O=(0,a.useCallback)((()=>{s(h.o.LOADING);const e=(0,c.pipe)(Kt(t),b,(0,c.andThen)((e=>{let{data:t,total:n}=e;s(h.o.LOADED),l(t),p(n)})),(0,c.otherwise)(v));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){rn(e,t,n[t])}))}return e}({workflowPath:d,environment:m,tenant:g,assignee:y},n))}),[d,m,g,t,n]),x=()=>{try{O()}catch(e){v(e)}};return(0,a.useEffect)((()=>{x()}),[O]),{state:o,data:r,reload:x,total:u}})(I);return(0,p.T)({state:M,reload:k}),r().createElement(O.Z,{id:d},r().createElement(N,{title:g,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:s,onRefresh:k},r().createElement(kt.Z,{buttonProps:{className:y.categorySelector,endIcon:r().createElement(He.Z,null),size:"small"},buttonContent:P[R],menuId:"tasks-category-menu",menuItems:C})),r().createElement(K,{loadingState:M,onRefresh:k,data:D,className:y.inboxContent},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(an,{width:n,height:a,tasksCategory:R,tasks:t})})),!!_&&r().createElement(m.Z,{page:v,count:_,rowsPerPage:S,onChangePage:x,onChangeRowsPerPage:w}))}));var on=n(75067),cn=n(77434),sn=n(7278);const un=(0,a.memo)((e=>{let{config:t,isUpdated:n,isFullscreen:l,onToggleFullscreen:i,onRemove:s}=e;const{id:d,title:f,exportTypes:g}=t,E=ee(),[y,x]=(0,a.useState)(0),[S,w]=(0,a.useState)(b),R=(0,a.useMemo)((()=>v(b)),[]),[T,I]=(0,a.useState)({users:[],activities:[],dateRange:{type:o.KfU.WITHIN,period:[4,"months"]}}),{state:P,data:C,total:M,reload:D}=(e=>{let{filter:t,max:n,offset:r}=e;const[l,o]=(0,a.useState)([]),[i,s]=(0,a.useState)(0),[u,p]=(0,a.useState)(h.o.INIT),d=(0,gt._)(),m=e=>{console.error(e),p(h.o.ERROR)},f=(0,sn.d)({filter:t,max:n,offset:r}),g=(0,a.useCallback)((()=>{p(h.o.LOADING);const e=(0,c.pipe)(f,d,(0,c.andThen)((e=>{let{data:t,total:n}=e;o(t),s(n),p(h.o.LOADED)})),(0,c.otherwise)(m));e()}),[f]),E=()=>{try{g()}catch(e){m(e)}};return(0,a.useEffect)((()=>{E()}),[g]),{state:u,data:l,total:i,reload:E}})({filter:T,max:S,offset:y*S}),_=(0,a.useCallback)((e=>{I(e),x(0)}),[]);return(0,p.T)({state:P,reload:D}),r().createElement(O.Z,{id:d},r().createElement(N,{title:f,onToggleFullscreen:i,isUpdated:n,isFullscreen:l,onRemove:s,onRefresh:D}),r().createElement("div",{className:E.activityLogFilter},r().createElement(on.Z,{value:T,onChange:_,exportTypes:g})),r().createElement(K,{loadingState:P,onRefresh:D,data:C,className:E.content},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(cn.Z,{width:n,height:a,activities:t})})),!!M&&r().createElement(m.Z,{page:y,count:M,onChangePage:x,rowsPerPage:S,onChangeRowsPerPage:w,rowsPerPageOptions:R,labelRowsPerPage:u().text("Events per page:")}))}));function pn(){return pn=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},pn.apply(this,arguments)}const dn=e=>(0,l.Z)(e),mn=dn(un),fn=dn(_t),hn=dn(Te),gn=dn(Dt),En=dn(te),yn=dn(Ze),bn=dn(ln),vn=dn(Et);class On{}On.ViewTypes=o.dZX,On.getComponent=e=>{let{config:t,type:n,isUpdated:a,isFullscreen:l,onToggleFullscreen:o,onRemove:i}=e;const c={isUpdated:a,isFullscreen:l,onToggleFullscreen:o,onRemove:i};switch(n){case On.ViewTypes.ActivitiesViewFacet:return r().createElement(mn,pn({config:t},c));case On.ViewTypes.CustomActionViewFacet:return r().createElement(fn,pn({config:t},c));case On.ViewTypes.DashboardFacet:return r().createElement(hn,pn({config:t},c));case On.ViewTypes.EntitiesByTypeViewFacet:return r().createElement(gn,pn({config:t},c));case On.ViewTypes.FilteredSavedSearchesFacet:return r().createElement(En,pn({config:t},c));case On.ViewTypes.FilteredEntitiesViewFacet:return r().createElement(yn,pn({config:t},c));case On.ViewTypes.NotificationInboxFacet:return r().createElement(bn,pn({config:t},c));case On.ViewTypes.ProfileStatsFacet:return r().createElement(vn,pn({config:t},c))}},On.getChartType=e=>{const t={[On.ViewTypes.EntitiesByTypeViewFacet]:o.$XE.TREE,[On.ViewTypes.FilteredSavedSearchesFacet]:o.$XE.TABLE,[On.ViewTypes.FilteredEntitiesViewFacet]:o.$XE.TABLE,[On.ViewTypes.ProfileStatsFacet]:o.$XE.LINE,[On.ViewTypes.NotificationInboxFacet]:o.$XE.TABLE,[On.ViewTypes.ActivitiesViewFacet]:o.$XE.TABLE};return e.chartType||t[e.component]};const xn=On},46847:(e,t,n)=>{function a(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function l(e,t){try{var n=this.props,a=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,a)}finally{this.props=n,this.state=a}}function o(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,o=null,i=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?o="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(o="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==o||null!==i){var c=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==o?"\n "+o:"")+(null!==i?"\n "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=a,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=l;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var a=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,a)}}return e}n.r(t),n.d(t,{polyfill:()=>o}),a.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,l.__suppressDeprecationWarning=!0}}]);
2
2
  //# sourceMappingURL=672.js.map